diff --git a/ui/assets/local/_app/immutable/assets/app.2HKGkkdr.css b/ui/assets/local/_app/immutable/assets/app.2HKGkkdr.css new file mode 100644 index 0000000000..9db194fcd3 --- /dev/null +++ b/ui/assets/local/_app/immutable/assets/app.2HKGkkdr.css @@ -0,0 +1 @@ +@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-cyrillic-ext-wght-normal.gWHutNtk.woff2) format("woff2-variations");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-cyrillic-wght-normal.x3mpJyrC.woff2) format("woff2-variations");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-greek-ext-wght-normal.L6TiHhs2.woff2) format("woff2-variations");unicode-range:u+1f??}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-greek-wght-normal.ERnVB3ZO.woff2) format("woff2-variations");unicode-range:u+0370-03ff}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-vietnamese-wght-normal.mV7lv8Vd.woff2) format("woff2-variations");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-latin-ext-wght-normal.Fo7f5M47.woff2) format("woff2-variations");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-latin-wght-normal.8DMS9JnF.woff2) format("woff2-variations");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-cyrillic-ext-400-normal.ShfNumKh.woff2) format("woff2"),url(./noto-sans-mono-cyrillic-ext-400-normal.RbG1ppRG.woff) format("woff");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-cyrillic-400-normal.d1_UN25R.woff2) format("woff2"),url(./noto-sans-mono-cyrillic-400-normal.EUkKa32Q.woff) format("woff");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-greek-ext-400-normal.FxyJYyRe.woff2) format("woff2"),url(./noto-sans-mono-greek-ext-400-normal.RCqqxuzj.woff) format("woff");unicode-range:u+1f??}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-greek-400-normal.Zlk2uUaP.woff2) format("woff2"),url(./noto-sans-mono-greek-400-normal.Oqg5aDJo.woff) format("woff");unicode-range:u+0370-03ff}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA8oABAAAAAAKLQAAA7GAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoECG4dgHIJCBmA/U1RBVEQAgUQRCAqqWKVCC4IeAAE2AiQDhCQEIAWEbgeJfgwHG+YjMwMmhc0Asv9DgjZGCPo7sZqDDyNEwgSIZmOzKywiQRkl4IEy+NiZYm7SjagwyrvTXGEHf1kd/9erNO8vsK+if3TtfbFl8PT599/vqurbB8/qB4+FDGKSQPFEwkcmJ8HMuj/gtv4NMNhAmzKiwEQs6nAKFijGjMKOi/7468q+quIqG3io3+939iLeNRH6m45qIqllCJlSmI53Ep1I/hWb7m9BwyuXnvCEeKgPr+v0+3NUig+MvlsS4odG5DaFzZWFAn4TGdVLen+Di1HFHAFhUzQgdrH+pxHgP61VnuzfVW+5jsDtHAdQuA6Si9ARpram5s9WauqAe/tYESmgvj7oDpJQJ2PjANgCKkBhAFjpMzpSRmgVeHJfat/4utalEWoQ2hKM6JTgNUnWx2evv/YVQKhlAIBiAMKDIaAP6GF8rXW6pWOHhZPOE092dsnlHHcstPKUM85FViqvTFaKRkcx1MwJJ0ymt+2bYwSk+pmFMjYJzwTO9q+pBjj797Jq4JwELXXA4QBZAwVCz28pME4Pxx3ADCgJPlEwLzkj5hUSKUds4KEQ49DE+ujSon6xbaViAn1YxI0uu+/Wml5qWEV8mYfYc0u4MMmwDh1U71Q29wRZ7iLFIYl/Em7gE3dAxKQ8K1sglSPQbClKVUAyEpKAIsuhdq2/njrHpnMgG2/jk5kzJSKdRn53yld6Ty/d4zTnb5yzc3cpX7d0kU7TMXcg7hRSkmkr2cW17GuJ+bOlJqtxJQlq7bNJZcWsFtYs0N7rnNPJOiUrQpuQZ69SBbPoiSMxJsslMbQWJHr4kMQgv/PUmWfDe2R19+YLxG8OCZ3vceKobxdh58+IeOz7JeZZva7iXbK61HcXizd0e8/PIP7erc4/Ju7fDFB2gwq86a3pN4/ay97HjIAuJwsiQ3t1cjeAGcshvrVHnfBK1IgaFD7kKNHwHIUUlKMJmc4MmnbD5hOk6fwEfxq2oJRDVyYpO/ZC1kCohax1HIQMbAuZ7fW1DSAQwS1797xzA2zX5VifTODFO2iaaPGtuY0mqlxadPOzzHknXftpr4/BII8BYn0/fXg/M2i05BF0zcjj0/SezjyUcjKuyUAvyhKA6fY7ljVCIxHQrkziMk7VBZg5kPcXkxflEjgA4Wp7vp/gnuM05LJxDdqrDgSOEDEFpRS00LPNlS0IAod3WioREqIwZa1GARvqvm2lcQ362K7VpYzYYc4j36b/ynmQJwRZisZnNLIwHjWJOUusOT7nQ/2n+h9hdQ1IuR+SFI73VMqCeNiEdT5mwoLzsf7zE5P8kn1U6zR5n36z/qT+EPDttPkStn7b8MfZB0F/nL53mZBQSg7T6OEnHXtN0qAAwBWADAJDoDXYK/wX2MlArc2EzC3mmOvPtuzYahpJJQn9m9KUq4IsqifE4P7jA8wpNJq1OYNKd6SzTVGalTnTcal5IAqG2ptRrM1pHCtzC6aFSykM9DRPMy/IAjOiU4rpRjSMwPJRdf+8eZzB0VGbbJUKy/p2BjTgfgFDVEZKhA6ZlCwo0l7tpkaOX7uGXbwyFI5dnqHs81Ygx6+iF+Yz4FjfRJcihpGeJ5zBLl66poO3Szc1lpOLZZOql+3r7oKBYEMHD7IhS6szR6XKHYhU7tbcBhRVoitOn5htI5lHLu+BY2fmjZJLAdqVrh9jixjYcTl33tWzed9XJoaoyEqETsqCAu0uZMJurG8nHNtRa37aB2Onehqf85SyL8+RLO02BjJnK9a3e72TqgDLGbrigI0snm+Xi+VtuHy5WrsKmbBavYy6ByYQOhAjhw/bYTB4/rw3SvbnZRv9WELr06umlNe07cm9bKx/eBhBZGBwz4mEvlnr4qurf7949f0PHbzgA+iyi74rznuj1dqrrj23Um71lBO24HL1+S4nRtavf9adnsxcbfdChGrRX67fCtaF+MrkLt+PTJjHUdkOzYVjG85HXphLIk7ZjwN58BbEHAq270YmbEO1S2yQgeVv98HH9nCd0bfPfNQaFzVaedUVmPs4KJft2sdBsKG1K9kpAyOr178JS/fscEe5JQwKKn69CnQjuopQXikPbJ6dJp6fzptn8Fu0Kils1azoeQbfmw7yR2w5ELolCtmdCEXEH9kcqBP8R+N+XiroEcyw0Yz7B19qEsGNLbSfml7HXdqQl+O9tcJiixymZGQ4TIstLOTGy/lioeN49XTJQA5fKnQar1Y7jZcIwYeaXhrv36Y4rT4eyco6Gx510FbJO6Y+K/NrKxMCwrizuWRZ5fLKQv4PZ4Asn96vNfkH1Sw1TnpI40ubFKbIoyPwGs8UpInEkEq4sX4ptm6OSel5drFlNerCCil1DCVX+JEpDUh2DkgMCyZIH1B1oEvgIMyhKrvjErtysuN6GhNxcWlseIPcZwoiCk7LdI30z2IuVlzKtZTgjk6Ji/2S0hWoEBT8fWYT19EE1DObzPjPOzhyJ5dUDifVxUkO/lRujkuiyL1Ski/orOWLxfX8+C5C7F4RL8x24Um5SSEueXHxLmphMDcVryHiXPOEIUChEuqCgjK1Kp6bkBCp56gENmqWlCYxCrC+B2c/22ReFG0kWzhNenHQXnrfPntc9FlW8kxy5ft3pZVReffz3fxTxX4wr5bx29HpB4NBdXKk/XIfYRjQSHwk8KX4042xtArdyJreGA3Rqe6pl6J0a4k+OT7c3JG6cFaaxjRlfMd/fUR4R3m0dEwgWFJDFC5RQsdKSXZoR5kA95g0cZsxzYdDv5nzXZZIKM+WLGFKJcKiTJtotnprmBgvqyoWF7vZJ6oTYWKl26NtRwO//zFKEyaY37pqVeb/fPDOl6Qms6Nr33RZO2n7YqjpyeB34f7Rt+cHmG1IY9kWhoMF8++a0JwIUZCtwtPCktVT09Sf8JPLz6UEWDbtFDpu79NYuf+TPqfN17jO+tQDdgH+IKoviiUKcFnEW8Zkye3pCxu5ExdZ8xP8gjyvewnDP0CPE2bdknhL3k8o2cHmbLO23sZh71huvcLJZR+f1qf03uSH6OLZzvwDWNr3vOjDAb7zbBV6kdzbIQS8MpYolsBk6ll1zE18APVMGxyI1KfBE49yIr9pM2grpWLCjwgQx30IJmMUECIZkeZrUdiVfoqodrE0sDXEMqwHi4SrNaTh77tkjnCLjkWPCi2L+kK4t10ddhApkRf34pqsrgX6t1js3yRT2565wDQ/2JJ5uHABFxxwniBjB6OxyQ04cLGXpkT1zcG0Hxlc31z5AJOHycPkYfIweRimiUkuQmNoZd7JbhZyPZGEDL5fZsiVq/QhZ0ngw4u8oGZbLvyIEiUyt9EeX0QzqSHVj1gu+T2Gaj+4pgIuOPAjA2cnXcwmG7HSLRF1VT++cVz0qPobIeS1TpRWo3A532NYL5FvKLplZL4k8k48aibZPlM0aWInTNGEsQhOPDqBfGKxDxYrdaEWHb3gkh7ghxNaCuCmnVgL76pB4USCrZBpesn40grCXDhZgFhTXjRAtBVEGbQVwKCtsMR5Ay44gEm2JRNZOM7JvxfJJFlow1wQhUQ4nu+Lx0JWVP/g19L6YkRJ/ceIUP8YimP9DVanRmXlBXz9fbbk/KChe3HrYaeBUuiY9ZuUX0XvY4BW6uwC8t503Rygg96LzVQr3023zpQHboZW2aBnYnapp+ckK7fklDtqtkhKU6ZQz8ha2eh1LSGfzQkP5fpPymN5Rq2dbJ+To9rKNgR9DD2XRSdys1ok5BNWa6E/fWy19JL1nRFjtde1A3Taf9FXFZ683uO9HnfnrOSx/KjWLhymdbSUskdB33r5n0b7HSnrKO/qsfQ7PW3Nz6sGpy66SvS1M8+irz3hqe0/KY/lGbV2oV1aR7VVNvB76zdw2dJ8+UwZT87o1Hsko2SSDdtvUs1KnemLTLVybMlns20grhmD01BMI7Vdgxn0kGQU6WVQsxnTdqwG1tiVz+aG58sZc73X4ifCqso6VpY/s9cCxEXfa5YWEP7e3FJ+y2qrmF0e54HKEOTJXi9XR15HgDYt+Hr6XTJhzv9jsv0P+OXY6SeA3zc7nCxezP3uDPAUgOBnhDN1NRLhtwCi2/RUWUIBiDYN2RBBdRRAYnILex3xSUERITlOk2mw/DWfxAFSQl06xDSJZtCb0KEdAsz0iAlrHKKWiFOFz0NiuPZDEm7JfoVbW8RagOyeup3Cbaxqb2t6zeyIt7rXu6MHRt7GV/TjLGGKALz5AzkufN2hOQFeRK/FJFEbVpNUfrhJZpRXk5weHkzKqHZsktdhycR8gzQdRYRc5ZOUVK4r4InCLPWa1CpSQ0WjVIvKT64MV4FvMXp+2AbNovXWdmWJJpqea1m4QJNq1Fij4Spiq2cTwzVdi3EZO1cXr6WoV7cywDxlpK1qgmkTpeeaYkJzX8766aWPvvpnT3deTHdenIDz7hmfNMNNJicnEVM+7+19SZdk1jfo1NQYU63rIyv7CRb0qGy37HSOJuuqAr4kLRurtZmmTUbzkjsam22miaatirc7rlevVpBdar68BtNyH1Spa5G0ToCkTcqOrtqF9bW5Gjm+RgkfiouUHaUf/iNfgRQxTIsOPfQzxAjjCUnh0mXL8284LnvkLepKQzdMK6675bYb0bMd1yOUcSGVNkzLdlzPD8IoTtIsL8qqbtquH8ZpXtZtP87rft7vJ5EpVBqdwWSxOSAEI1weXyAUiSVSmVyhVKk1WhTDCZ3eYDSZLXEtjlab3eF0uT1enz/xhxDom3n77wbqf6axoKHCVf97IYPbtdH9Ejwb42dxjL1WgVzJV3X3nyAOEr9t6pP8cj/XL1Oxil87NF/nAjoFLCAQMAgoGDgEJBQ0DCyc9EoDQCBgEFAwcAhIKGgYWDjplQGAQMAgoGDgEJBQ0DCwcNIrCwCBgEFAwcAhIKGgYWDhpFcOAAIBg4CCgUNAQkHDwMJJrzwABAEFA4e4K1kTl3PWzy+Xwx/s5P8Jxxmjou+ff6jTh/l7H5O2GmAg2jeBebk17DlgiOjghWj0erZDcxvVkc1ArLSLoe4V2u2ErZH8Z09vwGUAAA==) format("woff2"),url(./noto-sans-mono-vietnamese-400-normal.SBv5uTXX.woff) format("woff");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-latin-ext-400-normal.pKNVVoQn.woff2) format("woff2"),url(./noto-sans-mono-latin-ext-400-normal.9o3dvHje.woff) format("woff");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-latin-400-normal.uwj1jQ8m.woff2) format("woff2"),url(./noto-sans-mono-latin-400-normal.xnci5kZ6.woff) format("woff");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border-color:rgb(var(--color-border-primary));border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Inter,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}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}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}:root{--color-text-black:20 20 20;--color-text-white:248 250 252;--color-text-primary:20 20 20;--color-text-secondary:39 56 96;--color-text-inverse:248 250 252;--color-text-subtle:70 90 120;--color-text-danger:199 22 7;--color-text-information:68 76 231;--color-text-success:0 150 78;--color-text-warning:220 122 3;--color-text-pink:255 38 255;--color-text-brand:68 76 231;--color-surface-background:248 250 252;--color-surface-primary:255 255 255;--color-surface-secondary:248 250 252;--color-surface-subtle:201 217 240;--color-surface-table:20 20 20;--color-surface-success:213 255 235;--color-surface-success-loud:0 192 95;--color-surface-information:224 234 255;--color-surface-information-loud:68 76 231;--color-surface-danger:255 228 212;--color-surface-warning:255 244 198;--color-surface-brand:68 76 231;--color-surface-inverse:20 20 20;--color-surface-black:0 0 0;--color-interactive-surface:68 76 231;--color-interactive-hover:54 59 204;--color-interactive-active:47 52 164;--color-interactive-secondary-surface:255 255 255;--color-interactive-secondary-hover:232 239 255;--color-interactive-secondary-active:174 190 217;--color-interactive-danger-surface:255 155 112;--color-interactive-danger-hover:255 102 55;--color-interactive-danger-active:255 69 24;--color-interactive-ghost-hover:201 217 240;--color-interactive-ghost-active:201 217 240;--color-interactive-table-hover:224 234 255;--color-border-primary:20 20 20;--color-border-secondary:146 164 195;--color-border-subtle:174 190 217;--color-border-table:20 20 20;--color-border-inverse:248 250 252;--color-border-information:68 76 231;--color-border-success:0 192 95;--color-border-warning:254 195 33;--color-border-danger:255 69 24;--color-border-focus-info:68 76 231;--color-border-focus-danger:240 36 6}[data-theme=dark]{--color-text-black:20 20 20;--color-text-white:248 250 252;--color-text-primary:248 250 252;--color-text-secondary:146 164 195;--color-text-inverse:20 20 20;--color-text-subtle:70 90 120;--color-text-danger:255 102 55;--color-text-information:97 115 243;--color-text-success:0 192 95;--color-text-warning:248 162 8;--color-text-pink:255 97 250;--color-text-brand:128 152 249;--color-surface-background:20 20 20;--color-surface-primary:0 0 0;--color-surface-secondary:15 23 42;--color-surface-subtle:39 56 96;--color-surface-table:30 41 59;--color-surface-success:0 55 29;--color-surface-success-loud:0 192 95;--color-surface-information:26 28 76;--color-surface-information-loud:68 76 231;--color-surface-danger:69 5 5;--color-surface-warning:70 27 2;--color-surface-brand:97 115 243;--color-surface-inverse:248 250 252;--color-surface-black:0 0 0;--color-interactive-surface:68 76 231;--color-interactive-hover:54 59 204;--color-interactive-active:45 51 130;--color-interactive-secondary-surface:102 124 161;--color-interactive-secondary-hover:30 41 59;--color-interactive-secondary-active:39 56 96;--color-interactive-danger-surface:255 155 112;--color-interactive-danger-hover:255 102 55;--color-interactive-danger-active:255 69 24;--color-interactive-ghost-hover:70 90 120;--color-interactive-ghost-active:15 23 42;--color-interactive-table-hover:30 41 59;--color-border-primary:124 143 177;--color-border-secondary:70 90 120;--color-border-subtle:39 56 96;--color-border-table:30 41 59;--color-border-inverse:20 20 20;--color-border-information:97 115 243;--color-border-success:0 150 78;--color-border-warning:182 85 7;--color-border-danger:255 102 55;--color-border-focus-info:68 76 231;--color-border-focus-danger:240 36 6}h1{font-size:1.875rem}h1,h2{font-weight:500}h2{font-size:1.5rem}h3{font-size:1.25rem}h3,h4{font-weight:500}h4{font-size:1.125rem}h5{font-size:1rem}h5,h6{font-weight:500}.body-normal,h6{font-size:.875rem}.body-normal{font-weight:400}.body-medium{font-size:.875rem;font-weight:500}.body-small{font-size:.75rem;font-weight:400}.body-small-medium{font-size:.75rem;font-weight:500}.body-small-mono{font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.75rem;font-weight:400}*,body,html{box-sizing:border-box}body{background-color:rgb(var(--color-surface-background));color:rgb(var(--color-text-primary));font-size:.875rem;font-weight:400;overscroll-behavior:none;position:relative}input[type=search]::-webkit-search-cancel-button{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.surface-background{background-color:rgb(var(--color-surface-background));color:rgb(var(--color-text-primary))}.surface-primary{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.surface-secondary{background-color:rgb(var(--color-surface-secondary));color:rgb(var(--color-text-primary))}.surface-interactive{background-color:rgb(var(--color-interactive-surface));color:rgb(var(--color-text-primary))}.surface-interactive:focus-visible{background-color:rgb(var(--color-interactive-hover))}.surface-interactive:hover{background-color:rgb(var(--color-interactive-hover))}.surface-interactive:active{background-color:rgb(var(--color-interactive-active))}.surface-interactive-secondary{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.surface-interactive-secondary:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.surface-interactive-secondary:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.surface-interactive-secondary:active{background-color:rgb(var(--color-interactive-secondary-active))}.surface-interactive-danger{background-color:rgb(var(--color-interactive-danger-surface));color:rgb(var(--color-text-black))}.surface-interactive-danger:focus-visible{background-color:rgb(var(--color-interactive-danger-hover))}.surface-interactive-danger:hover{background-color:rgb(var(--color-interactive-danger-hover))}.surface-interactive-danger:active{background-color:rgb(var(--color-interactive-danger-active))}.surface-interactive-ghost{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.surface-interactive-ghost:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.surface-interactive-ghost:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.surface-interactive-ghost:active{background-color:rgb(var(--color-interactive-ghost-active))}.surface-inverse{background-color:rgb(var(--color-surface-inverse));color:rgb(var(--color-text-inverse))}.surface-subtle{background-color:rgb(var(--color-surface-subtle));color:rgb(var(--color-text-primary))}.surface-table{background-color:rgb(var(--color-surface-table));color:rgb(var(--color-text-inverse))}.surface-warning{background-color:rgb(var(--color-surface-subtle));color:rgb(var(--color-text-black))}.surface-black{background-color:rgb(var(--color-surface-black));color:rgb(var(--color-text-white))}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.not-sr-only{clip:auto;height:auto;margin:0;overflow:visible;padding:0;position:static;white-space:normal;width:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-bottom-6{bottom:-1.5rem}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.left-0{left:0}.left-1\/2{left:50%}.left-24{left:6rem}.left-\[60px\]{left:60px}.left-auto{left:auto}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-5{right:1.25rem}.right-8{right:2rem}.right-auto{right:auto}.top-0{top:0}.top-1{top:.25rem}.top-2{top:.5rem}.top-\[40px\]{top:40px}.top-\[50\%\]{top:50%}.top-\[540px\]{top:540px}.z-100{z-index:100}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[55\]{z-index:55}.z-\[99999\]{z-index:99999}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.order-6{order:6}.order-7{order:7}.col-span-2{grid-column:span 2/span 2}.float-right{float:right}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.m-auto{margin:auto}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-\[8px\]{margin-left:8px;margin-right:8px}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-bottom:.25rem;margin-top:.25rem}.my-12{margin-bottom:3rem;margin-top:3rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.my-4{margin-bottom:1rem;margin-top:1rem}.my-7{margin-bottom:1.75rem;margin-top:1.75rem}.my-8{margin-bottom:2rem;margin-top:2rem}.my-\[20vh\]{margin-bottom:20vh;margin-top:20vh}.-mb-2{margin-bottom:-.5rem}.-ml-2{margin-left:-.5rem}.-mr-2{margin-right:-.5rem}.-mt-12{margin-top:-3rem}.-mt-2{margin-top:-.5rem}.-mt-6{margin-top:-1.5rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-7{margin-left:1.75rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-5{margin-right:1.25rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-32{margin-top:8rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.box-border{box-sizing:border-box}.box-content{box-sizing:content-box}.block{display:block}.inline-block{display:inline-block}.\!inline{display:inline!important}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-auto{aspect-ratio:auto}.aspect-square{aspect-ratio:1/1}.h-0{height:0}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[224px\]{height:224px}.h-\[24px\]{height:24px}.h-\[540px\]{height:540px}.h-\[5px\]{height:5px}.h-\[64px\]{height:64px}.h-\[calc\(100\%-2\.5rem\)\]{height:calc(100% - 2.5rem)}.h-\[calc\(100\%-64px\)\]{height:calc(100% - 64px)}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.max-h-10{max-height:2.5rem}.max-h-20{max-height:5rem}.max-h-32{max-height:8rem}.max-h-40{max-height:10rem}.max-h-52{max-height:13rem}.max-h-96{max-height:24rem}.max-h-\[320px\]{max-height:320px}.max-h-fit{max-height:-moz-fit-content;max-height:fit-content}.min-h-80{min-height:20rem}.min-h-\[1\.25rem\]{min-height:1.25rem}.min-h-\[154px\]{min-height:154px}.min-h-\[2\.5rem\]{min-height:2.5rem}.min-h-\[24px\]{min-height:24px}.min-h-\[600px\]{min-height:600px}.min-h-fit{min-height:-moz-fit-content;min-height:fit-content}.min-h-screen{min-height:100vh}.w-0{width:0}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-1\/12{width:8.333333%}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\/12{width:16.666667%}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3\/12{width:25%}.w-32{width:8rem}.w-4{width:1rem}.w-4\/12{width:33.333333%}.w-40{width:10rem}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-6\/12{width:50%}.w-60{width:15rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-9\/12{width:75%}.w-96{width:24rem}.w-\[10rem\]{width:10rem}.w-\[1px\]{width:1px}.w-\[240px\]{width:240px}.w-\[24px\]{width:24px}.w-\[25rem\]{width:25rem}.w-\[265px\]{width:265px}.w-\[27rem\]{width:27rem}.w-\[32px\]{width:32px}.w-\[35vw\]{width:35vw}.w-\[500px\]{width:500px}.w-\[calc\(100\%-6rem\)\]{width:calc(100% - 6rem)}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-screen{width:100vw}.min-w-0{min-width:0}.min-w-\[280px\]{min-width:280px}.min-w-\[32px\]{min-width:32px}.min-w-\[600px\]{min-width:600px}.min-w-\[80px\]{min-width:80px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.min-w-full{min-width:100%}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-16{max-width:4rem}.max-w-60{max-width:15rem}.max-w-80{max-width:20rem}.max-w-\[3rem\]{max-width:3rem}.max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.max-w-lg{max-width:32rem}.max-w-xs{max-width:20rem}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-1\/3{flex-basis:33.333333%}.table-fixed{table-layout:fixed}.border-separate{border-collapse:separate}.border-spacing-0{--tw-border-spacing-x:0px;--tw-border-spacing-y:0px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.origin-bottom-left{transform-origin:bottom left}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-x-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x:-100%}.-translate-y-1\/2{--tw-translate-y:-50%}.-translate-y-1\/2,.-translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y:-100%}.translate-x-0{--tw-translate-x:0px}.translate-x-0,.translate-x-12{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-12{--tw-translate-x:3rem}.translate-x-\[10px\]{--tw-translate-x:10px}.translate-x-\[10px\],.translate-y-\[-10px\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-10px\]{--tw-translate-y:-10px}.translate-y-\[-50\%\]{--tw-translate-y:-50%}.transform,.translate-y-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-flow-row{grid-auto-flow:row}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[2rem\]{grid-template-columns:2rem}.grid-rows-\[fit-content\(1\.5rem\)_minmax\(3rem\,4rem\)_1fr_8rem\]{grid-template-rows:fit-content(1.5rem) minmax(3rem,4rem) 1fr 8rem}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.content-between{align-content:space-between}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-\[1px\]{gap:1px}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-4{row-gap:1rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.\!overflow-visible{overflow:visible!important}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-x-scroll{overflow-x:scroll}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;white-space:nowrap}.text-ellipsis,.truncate{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-break-spaces{white-space:break-spaces}.text-wrap{text-wrap:wrap}.text-nowrap{text-wrap:nowrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\[50\%\]{border-radius:50%}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-b-md{border-bottom-left-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-l-none{border-bottom-left-radius:0;border-top-left-radius:0}.rounded-r{border-bottom-right-radius:.25rem;border-top-right-radius:.25rem}.rounded-r-none{border-bottom-right-radius:0;border-top-right-radius:0}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.rounded-bl-lg{border-bottom-left-radius:.5rem}.rounded-bl-none{border-bottom-left-radius:0}.rounded-br{border-bottom-right-radius:.25rem}.rounded-br-lg{border-bottom-right-radius:.5rem}.rounded-br-none{border-bottom-right-radius:0}.rounded-tl-lg{border-top-left-radius:.5rem}.rounded-tl-none{border-top-left-radius:0}.rounded-tr{border-top-right-radius:.25rem}.rounded-tr-lg{border-top-right-radius:.5rem}.rounded-tr-none{border-top-right-radius:0}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-y{border-bottom-width:1px;border-top-width:1px}.\!border-l-0{border-left-width:0!important}.\!border-r-0{border-right-width:0!important}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0}.border-b-2{border-bottom-width:2px}.border-b-4{border-bottom-width:4px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-r-4{border-right-width:4px}.border-t{border-top-width:1px}.border-t-4{border-top-width:4px}.border-solid{border-style:solid}.border-\[transparent\]{border-color:transparent}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity))}.border-danger{border-color:rgb(var(--color-border-danger))}.border-green-200{--tw-border-opacity:1;border-color:rgb(174 255 216/var(--tw-border-opacity))}.border-information{border-color:rgb(var(--color-border-information))}.border-orange-500{--tw-border-opacity:1;border-color:rgb(249 115 22/var(--tw-border-opacity))}.border-primary{border-color:rgb(var(--color-border-primary))}.border-secondary{border-color:rgb(var(--color-border-secondary))}.border-slate-100{--tw-border-opacity:1;border-color:rgb(201 217 240/var(--tw-border-opacity))}.border-slate-200{--tw-border-opacity:1;border-color:rgb(174 190 217/var(--tw-border-opacity))}.border-slate-700{--tw-border-opacity:1;border-color:rgb(70 90 120/var(--tw-border-opacity))}.border-subtle{border-color:rgb(var(--color-border-subtle))}.border-success{border-color:rgb(var(--color-border-success))}.border-table{border-color:rgb(var(--color-border-table))}.border-transparent{border-color:transparent}.border-warning{border-color:rgb(var(--color-border-warning))}.border-white\/10{border-color:#ffffff1a}.border-b-transparent{border-bottom-color:transparent}.border-l-primary{border-left-color:rgb(var(--color-border-primary))}.border-l-transparent{border-left-color:transparent}.border-r-primary{border-right-color:rgb(var(--color-border-primary))}.border-r-transparent{border-right-color:transparent}.bg-\[\#DDD6FE\]{--tw-bg-opacity:1;background-color:rgb(221 214 254/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity:1;background-color:rgb(191 215 254/var(--tw-bg-opacity))}.bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 187 253/var(--tw-bg-opacity))}.bg-current{background-color:currentColor}.bg-danger{background-color:rgb(var(--color-surface-danger))}.bg-green-200{--tw-bg-opacity:1;background-color:rgb(174 255 216/var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(224 234 255/var(--tw-bg-opacity))}.bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(198 216 255/var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(68 76 231/var(--tw-bg-opacity))}.bg-information{background-color:rgb(var(--color-surface-information))}.bg-interactive{background-color:rgb(var(--color-interactive-surface))}.bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.bg-interactive-error{background-color:rgb(var(--color-interactive-danger-surface))}.bg-interactive-secondary-active{background-color:rgb(var(--color-interactive-secondary-active))}.bg-interactive-table-hover{background-color:rgb(var(--color-interactive-table-hover))}.bg-interactive\/50{background-color:rgb(var(--color-interactive-surface)/.5)}.bg-inverse{background-color:rgb(var(--color-surface-inverse))}.bg-off-black{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity:1;background-color:rgb(255 230 213/var(--tw-bg-opacity))}.bg-orange-200{--tw-bg-opacity:1;background-color:rgb(254 204 170/var(--tw-bg-opacity))}.bg-pink-200{--tw-bg-opacity:1;background-color:rgb(254 199 255/var(--tw-bg-opacity))}.bg-pink-50{--tw-bg-opacity:1;background-color:rgb(255 242 255/var(--tw-bg-opacity))}.bg-primary{background-color:rgb(var(--color-surface-primary))}.bg-purple-100{--tw-bg-opacity:1;background-color:rgb(239 233 254/var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity:1;background-color:rgb(226 214 254/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(255 228 212/var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity:1;background-color:rgb(255 196 168/var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity:1;background-color:rgb(255 102 55/var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(201 217 240/var(--tw-bg-opacity))}.bg-slate-100\/50{background-color:#c9d9f080}.bg-slate-200{--tw-bg-opacity:1;background-color:rgb(174 190 217/var(--tw-bg-opacity))}.bg-slate-800{--tw-bg-opacity:1;background-color:rgb(39 56 96/var(--tw-bg-opacity))}.bg-space-black{--tw-bg-opacity:1;background-color:rgb(20 20 20/var(--tw-bg-opacity))}.bg-subtle{background-color:rgb(var(--color-surface-subtle))}.bg-success{background-color:rgb(var(--color-surface-success))}.bg-transparent{background-color:transparent}.bg-warning{background-color:rgb(var(--color-surface-warning))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-white\/5{background-color:#ffffff0d}.bg-yellow-200{--tw-bg-opacity:1;background-color:rgb(254 233 137/var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-100{--tw-gradient-from:#dbe8fe var(--tw-gradient-from-position);--tw-gradient-to:rgba(219,232,254,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-blue-200{--tw-gradient-from:#bfd7fe var(--tw-gradient-from-position);--tw-gradient-to:rgba(191,215,254,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from:#444ce7 var(--tw-gradient-from-position);--tw-gradient-to:rgba(68,76,231,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-pink-100{--tw-gradient-from:#fee4ff var(--tw-gradient-from-position);--tw-gradient-to:rgba(254,228,255,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-red-100{--tw-gradient-from:#ffe4d4 var(--tw-gradient-from-position);--tw-gradient-to:rgba(255,228,212,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-100{--tw-gradient-from:#c9d9f0 var(--tw-gradient-from-position);--tw-gradient-to:rgba(201,217,240,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-yellow-100{--tw-gradient-from:#fff4c6 var(--tw-gradient-from-position);--tw-gradient-to:rgba(255,244,198,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-slate-200{--tw-gradient-to:rgba(174,190,217,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#aebed9 var(--tw-gradient-via-position),var(--tw-gradient-to)}.to-indigo-900{--tw-gradient-to:#2d3382 var(--tw-gradient-to-position)}.to-indigo-950{--tw-gradient-to:#1a1c4c var(--tw-gradient-to-position)}.to-pink-200{--tw-gradient-to:#fec7ff var(--tw-gradient-to-position)}.to-purple-100{--tw-gradient-to:#efe9fe var(--tw-gradient-to-position)}.to-red-200{--tw-gradient-to:#ffc4a8 var(--tw-gradient-to-position)}.to-slate-300{--tw-gradient-to:#92a4c3 var(--tw-gradient-to-position)}.to-yellow-200{--tw-gradient-to:#fee989 var(--tw-gradient-to-position)}.bg-fixed{background-attachment:fixed}.bg-clip-padding{background-clip:padding-box}.fill-current{fill:currentColor}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-px{padding:1px}.px-0{padding-left:0;padding-right:0}.px-0\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-bottom:0;padding-top:0}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-8{padding-bottom:2rem;padding-top:2rem}.\!pt-0{padding-top:0!important}.pb-0{padding-bottom:0}.pb-16{padding-bottom:4rem}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-24{padding-bottom:6rem}.pb-4{padding-bottom:1rem}.pl-0{padding-left:0}.pl-1{padding-left:.25rem}.pl-1\.5{padding-left:.375rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-5{padding-left:1.25rem}.pr-0{padding-right:0}.pr-0\.5{padding-right:.125rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pt-1{padding-top:.25rem}.pt-10{padding-top:2.5rem}.pt-2{padding-top:.5rem}.pt-24{padding-top:6rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.font-mono{font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-8xl{font-size:6rem;line-height:1}.text-\[0\.6rem\]{font-size:.6rem}.text-\[12px\]{font-size:12px}.text-\[12rem\]{font-size:12rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-10{line-height:2.5rem}.leading-3{line-height:.75rem}.leading-4{line-height:1rem}.leading-8{line-height:2rem}.leading-\[18px\]{line-height:18px}.\!text-space-black{--tw-text-opacity:1!important;color:rgb(20 20 20/var(--tw-text-opacity))!important}.text{color:rgb(var(--color-text-primary))}.text-\[\#C9D9F0\]{--tw-text-opacity:1;color:rgb(201 217 240/var(--tw-text-opacity))}.text-\[\#e9d5ff\]{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 100 216/var(--tw-text-opacity))}.text-danger{color:rgb(var(--color-text-danger))}.text-green-700{--tw-text-opacity:1;color:rgb(0 150 78/var(--tw-text-opacity))}.text-information{color:rgb(var(--color-text-information))}.text-inverse{color:rgb(var(--color-text-inverse))}.text-off-white{--tw-text-opacity:1;color:rgb(248 250 252/var(--tw-text-opacity))}.text-pink-700{--tw-text-opacity:1;color:rgb(211 0 216/var(--tw-text-opacity))}.text-primary{color:rgb(var(--color-text-primary))}.text-purple-200{--tw-text-opacity:1;color:rgb(226 214 254/var(--tw-text-opacity))}.text-red-400{--tw-text-opacity:1;color:rgb(255 102 55/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(199 22 7/var(--tw-text-opacity))}.text-secondary{color:rgb(var(--color-text-secondary))}.text-slate-100{--tw-text-opacity:1;color:rgb(201 217 240/var(--tw-text-opacity))}.text-slate-300{--tw-text-opacity:1;color:rgb(146 164 195/var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity:1;color:rgb(102 124 161/var(--tw-text-opacity))}.text-slate-700{--tw-text-opacity:1;color:rgb(70 90 120/var(--tw-text-opacity))}.text-subtle{color:rgb(var(--color-text-subtle))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity:1;color:rgb(182 85 7/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-65{opacity:.65}.opacity-90{opacity:.9}.opacity-\[\.35\]{opacity:.35}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-\[inset_0_0_0_2px\]{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[inset_0_0_0_2px\]{--tw-shadow:inset 0 0 0 2px;--tw-shadow-colored:inset 0 0 0 2px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.shadow-white{--tw-shadow-color:#fff;--tw-shadow:var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-2{outline-width:2px}.ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.brightness-50{--tw-brightness:brightness(.5)}.brightness-50,.invert{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert:invert(100%)}.\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-\[opacity\,transform\]{transition-duration:.15s;transition-property:opacity,transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-shadow{transition-duration:.15s;transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-width{transition-duration:.15s;transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:surface-interactive-secondary:hover{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.hover\:surface-interactive-secondary:hover:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:surface-interactive-secondary:hover:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:surface-interactive-secondary:hover:active{background-color:rgb(var(--color-interactive-secondary-active))}.hover\:surface-interactive-ghost:hover{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.hover\:surface-interactive-ghost:hover:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.hover\:surface-interactive-ghost:hover:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.hover\:surface-interactive-ghost:hover:active{background-color:rgb(var(--color-interactive-ghost-active))}.focus-visible\:surface-interactive-secondary:focus-visible{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.focus-visible\:surface-interactive-secondary:focus-visible:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:surface-interactive-secondary:focus-visible:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:surface-interactive-secondary:focus-visible:active{background-color:rgb(var(--color-interactive-secondary-active))}.focus-visible\:surface-interactive-ghost:focus-visible{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.focus-visible\:surface-interactive-ghost:focus-visible:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.focus-visible\:surface-interactive-ghost:focus-visible:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.focus-visible\:surface-interactive-ghost:focus-visible:active{background-color:rgb(var(--color-interactive-ghost-active))}.dark\:focus-within\:surface-primary:focus-within:where([data-theme=dark],[data-theme=dark] *){background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.placeholder\:text-secondary::-moz-placeholder{color:rgb(var(--color-text-secondary))}.placeholder\:text-secondary::placeholder{color:rgb(var(--color-text-secondary))}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:left-\[calc\(100\%_\+_1\.5rem\)\]:after{content:var(--tw-content);left:calc(100% + 1.5rem)}.after\:top-0:after{content:var(--tw-content);top:0}.after\:hidden:after{content:var(--tw-content);display:none}.after\:h-8:after{content:var(--tw-content);height:2rem}.after\:items-center:after{align-items:center;content:var(--tw-content)}.after\:rounded-md:after{border-radius:.375rem;content:var(--tw-content)}.after\:bg-slate-800:after{--tw-bg-opacity:1;background-color:rgb(39 56 96/var(--tw-bg-opacity));content:var(--tw-content)}.after\:p-1:after{content:var(--tw-content);padding:.25rem}.after\:px-2:after{content:var(--tw-content);padding-left:.5rem;padding-right:.5rem}.after\:text-xs:after{content:var(--tw-content);font-size:.75rem;line-height:1rem}.after\:text-white:after{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity));content:var(--tw-content)}.after\:content-\[attr\(data-tooltip\)\]:after{--tw-content:attr(data-tooltip);content:var(--tw-content)}.first\:pt-0:first-child{padding-top:0}.last\:border-b-0:last-child{border-bottom-width:0}.first-of-type\:rounded-bl-lg:first-of-type{border-bottom-left-radius:.5rem}.first-of-type\:rounded-tl:first-of-type{border-top-left-radius:.25rem}.first-of-type\:rounded-tl-lg:first-of-type{border-top-left-radius:.5rem}.first-of-type\:rounded-tr-lg:first-of-type{border-top-right-radius:.5rem}.last-of-type\:rounded-bl-lg:last-of-type{border-bottom-left-radius:.5rem}.last-of-type\:rounded-br-lg:last-of-type{border-bottom-right-radius:.5rem}.last-of-type\:border-0:last-of-type{border-width:0}.last-of-type\:border-b-0:last-of-type{border-bottom-width:0}.focus-within\:border-danger:focus-within{border-color:rgb(var(--color-border-danger))}.focus-within\:border-information:focus-within{border-color:rgb(var(--color-border-information))}.focus-within\:border-interactive:focus-within{border-color:rgb(var(--color-interactive-surface))}.focus-within\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}.focus-within\:ring-4:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-within\:ring-primary\/70:focus-within{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.hover\:scale-125:hover{--tw-scale-x:1.25;--tw-scale-y:1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:border-information:hover{border-color:rgb(var(--color-border-information))}.hover\:bg-interactive-hover:hover{background-color:rgb(var(--color-interactive-hover))}.hover\:bg-interactive-secondary-hover:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:bg-interactive-table-hover:hover{background-color:rgb(var(--color-interactive-table-hover))}.hover\:bg-slate-800:hover{--tw-bg-opacity:1;background-color:rgb(39 56 96/var(--tw-bg-opacity))}.hover\:bg-white:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:text-black:hover{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity:1;color:rgb(29 100 216/var(--tw-text-opacity))}.hover\:text-brand:hover{color:rgb(var(--color-text-brand))}.hover\:text-primary:hover{color:rgb(var(--color-text-primary))}.hover\:underline:hover{text-decoration-line:underline}.focus\:translate-y-0:focus{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\:rounded-sm:focus-visible{border-radius:.125rem}.focus-visible\:border-indigo-600:focus-visible{--tw-border-opacity:1;border-color:rgb(68 76 231/var(--tw-border-opacity))}.focus-visible\:border-inverse:focus-visible{border-color:rgb(var(--color-border-inverse))}.focus-visible\:border-table:focus-visible{border-color:rgb(var(--color-border-table))}.focus-visible\:border-transparent:focus-visible{border-color:transparent}.focus-visible\:bg-interactive-secondary-hover:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:text-brand:focus-visible{color:rgb(var(--color-text-brand))}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:ring-4:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-danger\/70:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-danger)/.7)}.focus-visible\:ring-primary\/70:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:focus-within .group-focus-within\:visible{visibility:visible}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:inline-block{display:inline-block}.group:hover .group-hover\:border-information{border-color:rgb(var(--color-border-information))}.group:hover .group-hover\:border-transparent{border-color:transparent}.group:hover .group-hover\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.group:hover .group-hover\:bg-interactive-secondary-hover{background-color:rgb(var(--color-interactive-secondary-hover))}.group:hover .group-hover\:opacity-100{opacity:1}.group:hover .group-hover\:opacity-90{opacity:.9}.group:hover .group-hover\:ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.group:hover .group-hover\:ring-primary\/70{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.group:focus .group-focus\:opacity-100{opacity:1}.group.surface-primary .group-\[\.surface-primary\]\:hover\:bg-black:hover{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.peer:checked~.peer-checked\:justify-end{justify-content:flex-end}.peer:checked~.peer-checked\:border-danger{border-color:rgb(var(--color-border-danger))}.peer:checked~.peer-checked\:border-interactive{border-color:rgb(var(--color-interactive-surface))}.peer:checked~.peer-checked\:bg-interactive{background-color:rgb(var(--color-interactive-surface))}.peer:checked~.peer-checked\:text-off-white{--tw-text-opacity:1;color:rgb(248 250 252/var(--tw-text-opacity))}.group:hover .peer:checked~.group-hover\:peer-checked\:border-transparent{border-color:transparent}.group:hover .peer:checked~.group-hover\:peer-checked\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.group:hover .peer:checked~.group-hover\:peer-checked\:bg-interactive-hover{background-color:rgb(var(--color-interactive-hover))}.peer:indeterminate~.peer-indeterminate\:border-interactive{border-color:rgb(var(--color-interactive-surface))}.peer:indeterminate~.peer-indeterminate\:bg-interactive{background-color:rgb(var(--color-interactive-surface))}.group:hover .peer:indeterminate~.group-hover\:peer-indeterminate\:border-transparent{border-color:transparent}.group:hover .peer:indeterminate~.group-hover\:peer-indeterminate\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.peer:focus-visible~.peer-focus-visible\:border-inverse{border-color:rgb(var(--color-border-inverse))}.peer:focus-visible~.peer-focus-visible\:border-transparent{border-color:transparent}.peer:focus-visible~.peer-focus-visible\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.peer:focus-visible~.peer-focus-visible\:bg-interactive-secondary-hover{background-color:rgb(var(--color-interactive-secondary-hover))}.peer:focus-visible~.peer-focus-visible\:ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.peer:focus-visible~.peer-focus-visible\:ring-primary\/70{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.peer:focus-visible:checked~.peer-focus-visible\:peer-checked\:bg-interactive-hover{background-color:rgb(var(--color-interactive-hover))}.data-\[nav\=open\]\:w-\[180px\][data-nav=open]{width:180px}.data-\[nav\=open\]\:grid-cols-\[100\%\][data-nav=open]{grid-template-columns:100%}.group[data-nav=open] .group-data-\[nav\=open\]\:visible{visibility:visible}.group[data-nav=closed] .group-data-\[nav\=closed\]\:hidden,.group[data-nav=open] .group-data-\[nav\=open\]\:hidden{display:none}.group[data-nav=open] .group-data-\[nav\=open\]\:rotate-180{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group[data-nav=open] .group-data-\[nav\=open\]\:justify-start{justify-content:flex-start}.group[data-nav=closed] .group-data-\[nav\=closed\]\:justify-center{justify-content:center}.group[data-nav=closed] .group-data-\[nav\=closed\]\:p-1{padding:.25rem}.group[data-nav=open] .group-data-\[nav\=open\]\:px-2\.5{padding-left:.625rem;padding-right:.625rem}.group[data-nav=open] .group-data-\[nav\=open\]\:py-2{padding-bottom:.5rem;padding-top:.5rem}.group[data-nav=open] .group-data-\[nav\=open\]\:opacity-100{opacity:1}.group[data-nav=closed] .group-data-\[nav\=closed\]\:hover\:after\:flex:hover:after{content:var(--tw-content);display:flex}@media not all and (min-width:1280px){.max-xl\:hidden{display:none}}@media not all and (min-width:1024px){.max-lg\:hidden{display:none}}@media not all and (min-width:768px){.max-md\:hidden{display:none}}@media not all and (min-width:640px){.max-sm\:flex{display:flex}.max-sm\:hidden{display:none}.max-sm\:flex-col{flex-direction:column}}@media (min-width:640px){.sm\:block{display:block}.sm\:grid{display:grid}.sm\:hidden{display:none}.sm\:w-\[20rem\]{width:20rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}}@media (min-width:768px){.md\:visible{visibility:visible}.md\:order-2{order:2}.md\:order-3{order:3}.md\:order-4{order:4}.md\:order-5{order:5}.md\:order-6{order:6}.md\:order-8{order:8}.md\:mt-6{margin-top:1.5rem}.md\:block{display:block}.md\:flex{display:flex}.md\:table-cell{display:table-cell}.md\:table-row{display:table-row}.md\:hidden{display:none}.md\:h-auto{height:auto}.md\:w-1\/2{width:50%}.md\:w-2\/3{width:66.666667%}.md\:w-32{width:8rem}.md\:w-80{width:20rem}.md\:w-\[26rem\]{width:26rem}.md\:w-auto{width:auto}.md\:max-w-full{max-width:100%}.md\:max-w-lg{max-width:32rem}.md\:table-fixed{table-layout:fixed}.md\:columns-2{-moz-columns:2;column-count:2}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-end{align-items:flex-end}.md\:items-center{align-items:center}.md\:gap-2{gap:.5rem}.md\:gap-4{gap:1rem}.md\:gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.md\:whitespace-normal{white-space:normal}.md\:rounded-full{border-radius:9999px}.md\:p-12{padding:3rem}.md\:p-8{padding:2rem}.md\:px-2{padding-left:.5rem;padding-right:.5rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:pb-0{padding-bottom:0}.md\:pr-24{padding-right:6rem}.md\:pt-20{padding-top:5rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:1024px){.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:w-1\/2{width:50%}.lg\:w-1\/3{width:33.333333%}.lg\:w-2\/3{width:66.666667%}.lg\:w-3\/4{width:75%}.lg\:w-3\/5{width:60%}.lg\:w-56{width:14rem}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:items-end{align-items:flex-end}.lg\:justify-start{justify-content:flex-start}.lg\:border-r-2{border-right-width:2px}.lg\:pr-2{padding-right:.5rem}}@media (min-width:1280px){.xl\:order-2{order:2}.xl\:order-3{order:3}.xl\:order-4{order:4}.xl\:order-5{order:5}.xl\:order-6{order:6}.xl\:order-7{order:7}.xl\:flex{display:flex}.xl\:table-cell{display:table-cell}.xl\:hidden{display:none}.xl\:w-1\/2{width:50%}.xl\:w-1\/3{width:33.333333%}.xl\:w-10{width:2.5rem}.xl\:w-2\/3{width:66.666667%}.xl\:w-80{width:20rem}.xl\:w-auto{width:auto}.xl\:min-w-\[520px\]{min-width:520px}.xl\:max-w-2xl{max-width:42rem}.xl\:columns-3{-moz-columns:3;column-count:3}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:flex-row{flex-direction:row}.xl\:flex-nowrap{flex-wrap:nowrap}.xl\:items-center{align-items:center}.xl\:gap-4{gap:1rem}.xl\:gap-x-16{-moz-column-gap:4rem;column-gap:4rem}.xl\:border-b-0{border-bottom-width:0}.xl\:border-r-2{border-right-width:2px}.xl\:px-4{padding-left:1rem;padding-right:1rem}.xl\:py-3{padding-bottom:.75rem;padding-top:.75rem}.xl\:pr-48{padding-right:12rem}.xl\:text-left{text-align:left}}@media (min-width:1536px){.\32xl\:w-1\/2{width:50%}}.dark\:border-slate-500:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(102 124 161/var(--tw-border-opacity))}.dark\:bg-pink-500:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 38 255/var(--tw-bg-opacity))}.dark\:bg-red-900:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(127 20 15/var(--tw-bg-opacity))}.dark\:bg-slate-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(87 110 143/var(--tw-bg-opacity))}.dark\:bg-yellow-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(220 122 3/var(--tw-bg-opacity))}.dark\:bg-gradient-to-r:where([data-theme=dark],[data-theme=dark] *){background-image:linear-gradient(to right,var(--tw-gradient-stops))}.dark\:from-slate-600:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-from:#576e8f var(--tw-gradient-from-position);--tw-gradient-to:rgba(87,110,143,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark\:via-slate-700:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-to:rgba(70,90,120,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#465a78 var(--tw-gradient-via-position),var(--tw-gradient-to)}.dark\:to-slate-800:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-to:#273860 var(--tw-gradient-to-position)}.dark\:text-slate-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(124 143 177/var(--tw-text-opacity))}.dark\:shadow-slate-900:where([data-theme=dark],[data-theme=dark] *){--tw-shadow-color:#1e293b;--tw-shadow:var(--tw-shadow-colored)}.dark\:invert:where([data-theme=dark],[data-theme=dark] *){--tw-invert:invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus-visible\:dark\:ring-success:where([data-theme=dark],[data-theme=dark] *):focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.group.surface-primary .group-\[\.surface-primary\]\:dark\:hover\:bg-white:hover:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:dark\:hover\:text-black:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.focus-visible\:\[\&_\[role\=button\]\]\:outline-none [role=button]:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:\[\&_\[role\=button\]\]\:ring-4 [role=button]:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:\[\&_\[role\=button\]\]\:ring-primary\/70 [role=button]:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.focus-visible\:\[\&_\[role\=button\]\]\:ring-success [role=button]:focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.focus-visible\:\[\&_a\]\:outline-none a:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:\[\&_a\]\:ring-4 a:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:\[\&_a\]\:ring-primary\/70 a:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.focus-visible\:\[\&_a\]\:ring-success a:focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.button-group>.\[\.button-group\>\&\:first-of-type\]\:rounded-l-lg:first-of-type{border-bottom-left-radius:.5rem;border-top-left-radius:.5rem}.button-group>.\[\.button-group\>\&\:last-of-type\]\:rounded-r-lg:last-of-type{border-bottom-right-radius:.5rem;border-top-right-radius:.5rem}.button-group>.\[\.button-group\>\&\]\:rounded-none,.input-group>.\[\.input-group\>\&\]\:rounded-none{border-radius:0}.input-group>.first\:\[\.input-group\>\&\]\:rounded-l:first-child{border-bottom-left-radius:.25rem;border-top-left-radius:.25rem}.input-group>.last\:\[\.input-group\>\&\]\:rounded-r:last-child{border-bottom-right-radius:.25rem;border-top-right-radius:.25rem} diff --git a/ui/assets/local/_app/immutable/assets/app.KSpRcRGR.css b/ui/assets/local/_app/immutable/assets/app.KSpRcRGR.css deleted file mode 100644 index 6406ad47a8..0000000000 --- a/ui/assets/local/_app/immutable/assets/app.KSpRcRGR.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-cyrillic-ext-wght-normal.gWHutNtk.woff2) format("woff2-variations");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-cyrillic-wght-normal.x3mpJyrC.woff2) format("woff2-variations");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-greek-ext-wght-normal.L6TiHhs2.woff2) format("woff2-variations");unicode-range:u+1f??}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-greek-wght-normal.ERnVB3ZO.woff2) format("woff2-variations");unicode-range:u+0370-03ff}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-vietnamese-wght-normal.mV7lv8Vd.woff2) format("woff2-variations");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-latin-ext-wght-normal.Fo7f5M47.woff2) format("woff2-variations");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-latin-wght-normal.8DMS9JnF.woff2) format("woff2-variations");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-cyrillic-ext-400-normal.ShfNumKh.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-cyrillic-ext-400-normal.RbG1ppRG.woff) format("woff");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-cyrillic-400-normal.d1_UN25R.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-cyrillic-400-normal.EUkKa32Q.woff) format("woff");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-greek-ext-400-normal.FxyJYyRe.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-greek-ext-400-normal.RCqqxuzj.woff) format("woff");unicode-range:u+1f??}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-greek-400-normal.Zlk2uUaP.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-greek-400-normal.Oqg5aDJo.woff) format("woff");unicode-range:u+0370-03ff}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA8oABAAAAAAKLQAAA7GAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoECG4dgHIJCBmA/U1RBVEQAgUQRCAqqWKVCC4IeAAE2AiQDhCQEIAWEbgeJfgwHG+YjMwMmhc0Asv9DgjZGCPo7sZqDDyNEwgSIZmOzKywiQRkl4IEy+NiZYm7SjagwyrvTXGEHf1kd/9erNO8vsK+if3TtfbFl8PT599/vqurbB8/qB4+FDGKSQPFEwkcmJ8HMuj/gtv4NMNhAmzKiwEQs6nAKFijGjMKOi/7468q+quIqG3io3+939iLeNRH6m45qIqllCJlSmI53Ep1I/hWb7m9BwyuXnvCEeKgPr+v0+3NUig+MvlsS4odG5DaFzZWFAn4TGdVLen+Di1HFHAFhUzQgdrH+pxHgP61VnuzfVW+5jsDtHAdQuA6Si9ARpram5s9WauqAe/tYESmgvj7oDpJQJ2PjANgCKkBhAFjpMzpSRmgVeHJfat/4utalEWoQ2hKM6JTgNUnWx2evv/YVQKhlAIBiAMKDIaAP6GF8rXW6pWOHhZPOE092dsnlHHcstPKUM85FViqvTFaKRkcx1MwJJ0ymt+2bYwSk+pmFMjYJzwTO9q+pBjj797Jq4JwELXXA4QBZAwVCz28pME4Pxx3ADCgJPlEwLzkj5hUSKUds4KEQ49DE+ujSon6xbaViAn1YxI0uu+/Wml5qWEV8mYfYc0u4MMmwDh1U71Q29wRZ7iLFIYl/Em7gE3dAxKQ8K1sglSPQbClKVUAyEpKAIsuhdq2/njrHpnMgG2/jk5kzJSKdRn53yld6Ty/d4zTnb5yzc3cpX7d0kU7TMXcg7hRSkmkr2cW17GuJ+bOlJqtxJQlq7bNJZcWsFtYs0N7rnNPJOiUrQpuQZ69SBbPoiSMxJsslMbQWJHr4kMQgv/PUmWfDe2R19+YLxG8OCZ3vceKobxdh58+IeOz7JeZZva7iXbK61HcXizd0e8/PIP7erc4/Ju7fDFB2gwq86a3pN4/ay97HjIAuJwsiQ3t1cjeAGcshvrVHnfBK1IgaFD7kKNHwHIUUlKMJmc4MmnbD5hOk6fwEfxq2oJRDVyYpO/ZC1kCohax1HIQMbAuZ7fW1DSAQwS1797xzA2zX5VifTODFO2iaaPGtuY0mqlxadPOzzHknXftpr4/BII8BYn0/fXg/M2i05BF0zcjj0/SezjyUcjKuyUAvyhKA6fY7ljVCIxHQrkziMk7VBZg5kPcXkxflEjgA4Wp7vp/gnuM05LJxDdqrDgSOEDEFpRS00LPNlS0IAod3WioREqIwZa1GARvqvm2lcQ362K7VpYzYYc4j36b/ynmQJwRZisZnNLIwHjWJOUusOT7nQ/2n+h9hdQ1IuR+SFI73VMqCeNiEdT5mwoLzsf7zE5P8kn1U6zR5n36z/qT+EPDttPkStn7b8MfZB0F/nL53mZBQSg7T6OEnHXtN0qAAwBWADAJDoDXYK/wX2MlArc2EzC3mmOvPtuzYahpJJQn9m9KUq4IsqifE4P7jA8wpNJq1OYNKd6SzTVGalTnTcal5IAqG2ptRrM1pHCtzC6aFSykM9DRPMy/IAjOiU4rpRjSMwPJRdf+8eZzB0VGbbJUKy/p2BjTgfgFDVEZKhA6ZlCwo0l7tpkaOX7uGXbwyFI5dnqHs81Ygx6+iF+Yz4FjfRJcihpGeJ5zBLl66poO3Szc1lpOLZZOql+3r7oKBYEMHD7IhS6szR6XKHYhU7tbcBhRVoitOn5htI5lHLu+BY2fmjZJLAdqVrh9jixjYcTl33tWzed9XJoaoyEqETsqCAu0uZMJurG8nHNtRa37aB2Onehqf85SyL8+RLO02BjJnK9a3e72TqgDLGbrigI0snm+Xi+VtuHy5WrsKmbBavYy6ByYQOhAjhw/bYTB4/rw3SvbnZRv9WELr06umlNe07cm9bKx/eBhBZGBwz4mEvlnr4qurf7949f0PHbzgA+iyi74rznuj1dqrrj23Um71lBO24HL1+S4nRtavf9adnsxcbfdChGrRX67fCtaF+MrkLt+PTJjHUdkOzYVjG85HXphLIk7ZjwN58BbEHAq270YmbEO1S2yQgeVv98HH9nCd0bfPfNQaFzVaedUVmPs4KJft2sdBsKG1K9kpAyOr178JS/fscEe5JQwKKn69CnQjuopQXikPbJ6dJp6fzptn8Fu0Kils1azoeQbfmw7yR2w5ELolCtmdCEXEH9kcqBP8R+N+XiroEcyw0Yz7B19qEsGNLbSfml7HXdqQl+O9tcJiixymZGQ4TIstLOTGy/lioeN49XTJQA5fKnQar1Y7jZcIwYeaXhrv36Y4rT4eyco6Gx510FbJO6Y+K/NrKxMCwrizuWRZ5fLKQv4PZ4Asn96vNfkH1Sw1TnpI40ubFKbIoyPwGs8UpInEkEq4sX4ptm6OSel5drFlNerCCil1DCVX+JEpDUh2DkgMCyZIH1B1oEvgIMyhKrvjErtysuN6GhNxcWlseIPcZwoiCk7LdI30z2IuVlzKtZTgjk6Ji/2S0hWoEBT8fWYT19EE1DObzPjPOzhyJ5dUDifVxUkO/lRujkuiyL1Ski/orOWLxfX8+C5C7F4RL8x24Um5SSEueXHxLmphMDcVryHiXPOEIUChEuqCgjK1Kp6bkBCp56gENmqWlCYxCrC+B2c/22ReFG0kWzhNenHQXnrfPntc9FlW8kxy5ft3pZVReffz3fxTxX4wr5bx29HpB4NBdXKk/XIfYRjQSHwk8KX4042xtArdyJreGA3Rqe6pl6J0a4k+OT7c3JG6cFaaxjRlfMd/fUR4R3m0dEwgWFJDFC5RQsdKSXZoR5kA95g0cZsxzYdDv5nzXZZIKM+WLGFKJcKiTJtotnprmBgvqyoWF7vZJ6oTYWKl26NtRwO//zFKEyaY37pqVeb/fPDOl6Qms6Nr33RZO2n7YqjpyeB34f7Rt+cHmG1IY9kWhoMF8++a0JwIUZCtwtPCktVT09Sf8JPLz6UEWDbtFDpu79NYuf+TPqfN17jO+tQDdgH+IKoviiUKcFnEW8Zkye3pCxu5ExdZ8xP8gjyvewnDP0CPE2bdknhL3k8o2cHmbLO23sZh71huvcLJZR+f1qf03uSH6OLZzvwDWNr3vOjDAb7zbBV6kdzbIQS8MpYolsBk6ll1zE18APVMGxyI1KfBE49yIr9pM2grpWLCjwgQx30IJmMUECIZkeZrUdiVfoqodrE0sDXEMqwHi4SrNaTh77tkjnCLjkWPCi2L+kK4t10ddhApkRf34pqsrgX6t1js3yRT2565wDQ/2JJ5uHABFxxwniBjB6OxyQ04cLGXpkT1zcG0Hxlc31z5AJOHycPkYfIweRimiUkuQmNoZd7JbhZyPZGEDL5fZsiVq/QhZ0ngw4u8oGZbLvyIEiUyt9EeX0QzqSHVj1gu+T2Gaj+4pgIuOPAjA2cnXcwmG7HSLRF1VT++cVz0qPobIeS1TpRWo3A532NYL5FvKLplZL4k8k48aibZPlM0aWInTNGEsQhOPDqBfGKxDxYrdaEWHb3gkh7ghxNaCuCmnVgL76pB4USCrZBpesn40grCXDhZgFhTXjRAtBVEGbQVwKCtsMR5Ay44gEm2JRNZOM7JvxfJJFlow1wQhUQ4nu+Lx0JWVP/g19L6YkRJ/ceIUP8YimP9DVanRmXlBXz9fbbk/KChe3HrYaeBUuiY9ZuUX0XvY4BW6uwC8t503Rygg96LzVQr3023zpQHboZW2aBnYnapp+ckK7fklDtqtkhKU6ZQz8ha2eh1LSGfzQkP5fpPymN5Rq2dbJ+To9rKNgR9DD2XRSdys1ok5BNWa6E/fWy19JL1nRFjtde1A3Taf9FXFZ683uO9HnfnrOSx/KjWLhymdbSUskdB33r5n0b7HSnrKO/qsfQ7PW3Nz6sGpy66SvS1M8+irz3hqe0/KY/lGbV2oV1aR7VVNvB76zdw2dJ8+UwZT87o1Hsko2SSDdtvUs1KnemLTLVybMlns20grhmD01BMI7Vdgxn0kGQU6WVQsxnTdqwG1tiVz+aG58sZc73X4ifCqso6VpY/s9cCxEXfa5YWEP7e3FJ+y2qrmF0e54HKEOTJXi9XR15HgDYt+Hr6XTJhzv9jsv0P+OXY6SeA3zc7nCxezP3uDPAUgOBnhDN1NRLhtwCi2/RUWUIBiDYN2RBBdRRAYnILex3xSUERITlOk2mw/DWfxAFSQl06xDSJZtCb0KEdAsz0iAlrHKKWiFOFz0NiuPZDEm7JfoVbW8RagOyeup3Cbaxqb2t6zeyIt7rXu6MHRt7GV/TjLGGKALz5AzkufN2hOQFeRK/FJFEbVpNUfrhJZpRXk5weHkzKqHZsktdhycR8gzQdRYRc5ZOUVK4r4InCLPWa1CpSQ0WjVIvKT64MV4FvMXp+2AbNovXWdmWJJpqea1m4QJNq1Fij4Spiq2cTwzVdi3EZO1cXr6WoV7cywDxlpK1qgmkTpeeaYkJzX8766aWPvvpnT3deTHdenIDz7hmfNMNNJicnEVM+7+19SZdk1jfo1NQYU63rIyv7CRb0qGy37HSOJuuqAr4kLRurtZmmTUbzkjsam22miaatirc7rlevVpBdar68BtNyH1Spa5G0ToCkTcqOrtqF9bW5Gjm+RgkfiouUHaUf/iNfgRQxTIsOPfQzxAjjCUnh0mXL8284LnvkLepKQzdMK6675bYb0bMd1yOUcSGVNkzLdlzPD8IoTtIsL8qqbtquH8ZpXtZtP87rft7vJ5EpVBqdwWSxOSAEI1weXyAUiSVSmVyhVKk1WhTDCZ3eYDSZLXEtjlab3eF0uT1enz/xhxDom3n77wbqf6axoKHCVf97IYPbtdH9Ejwb42dxjL1WgVzJV3X3nyAOEr9t6pP8cj/XL1Oxil87NF/nAjoFLCAQMAgoGDgEJBQ0DCyc9EoDQCBgEFAwcAhIKGgYWDjplQGAQMAgoGDgEJBQ0DCwcNIrCwCBgEFAwcAhIKGgYWDhpFcOAAIBg4CCgUNAQkHDwMJJrzwABAEFA4e4K1kTl3PWzy+Xwx/s5P8Jxxmjou+ff6jTh/l7H5O2GmAg2jeBebk17DlgiOjghWj0erZDcxvVkc1ArLSLoe4V2u2ErZH8Z09vwGUAAA==) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-vietnamese-400-normal.SBv5uTXX.woff) format("woff");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-latin-ext-400-normal.pKNVVoQn.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-latin-ext-400-normal.9o3dvHje.woff) format("woff");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-latin-400-normal.uwj1jQ8m.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-latin-400-normal.xnci5kZ6.woff) format("woff");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border-color:rgb(var(--color-border-primary));border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Inter,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}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}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}:root{--color-text-black:20 20 20;--color-text-white:248 250 252;--color-text-primary:20 20 20;--color-text-secondary:39 56 96;--color-text-inverse:248 250 252;--color-text-subtle:70 90 120;--color-text-danger:199 22 7;--color-text-information:68 76 231;--color-text-success:0 150 78;--color-text-warning:220 122 3;--color-text-pink:255 38 255;--color-text-brand:68 76 231;--color-surface-background:248 250 252;--color-surface-primary:255 255 255;--color-surface-secondary:248 250 252;--color-surface-subtle:201 217 240;--color-surface-table:20 20 20;--color-surface-success:213 255 235;--color-surface-success-loud:0 192 95;--color-surface-information:224 234 255;--color-surface-information-loud:68 76 231;--color-surface-danger:255 228 212;--color-surface-warning:255 244 198;--color-surface-brand:68 76 231;--color-surface-inverse:20 20 20;--color-surface-black:0 0 0;--color-interactive-surface:68 76 231;--color-interactive-hover:54 59 204;--color-interactive-active:47 52 164;--color-interactive-secondary-surface:255 255 255;--color-interactive-secondary-hover:232 239 255;--color-interactive-secondary-active:174 190 217;--color-interactive-danger-surface:255 155 112;--color-interactive-danger-hover:255 102 55;--color-interactive-danger-active:255 69 24;--color-interactive-ghost-hover:201 217 240;--color-interactive-ghost-active:201 217 240;--color-interactive-table-hover:224 234 255;--color-border-primary:20 20 20;--color-border-secondary:146 164 195;--color-border-subtle:174 190 217;--color-border-table:20 20 20;--color-border-inverse:248 250 252;--color-border-information:68 76 231;--color-border-success:0 192 95;--color-border-warning:254 195 33;--color-border-danger:255 69 24;--color-border-focus-info:68 76 231;--color-border-focus-danger:240 36 6}[data-theme=dark]{--color-text-black:20 20 20;--color-text-white:248 250 252;--color-text-primary:248 250 252;--color-text-secondary:146 164 195;--color-text-inverse:20 20 20;--color-text-subtle:70 90 120;--color-text-danger:255 102 55;--color-text-information:97 115 243;--color-text-success:0 192 95;--color-text-warning:248 162 8;--color-text-pink:255 97 250;--color-text-brand:128 152 249;--color-surface-background:20 20 20;--color-surface-primary:0 0 0;--color-surface-secondary:15 23 42;--color-surface-subtle:39 56 96;--color-surface-table:30 41 59;--color-surface-success:0 55 29;--color-surface-success-loud:0 192 95;--color-surface-information:26 28 76;--color-surface-information-loud:68 76 231;--color-surface-danger:69 5 5;--color-surface-warning:70 27 2;--color-surface-brand:97 115 243;--color-surface-inverse:248 250 252;--color-surface-black:0 0 0;--color-interactive-surface:68 76 231;--color-interactive-hover:54 59 204;--color-interactive-active:45 51 130;--color-interactive-secondary-surface:102 124 161;--color-interactive-secondary-hover:30 41 59;--color-interactive-secondary-active:39 56 96;--color-interactive-danger-surface:255 155 112;--color-interactive-danger-hover:255 102 55;--color-interactive-danger-active:255 69 24;--color-interactive-ghost-hover:70 90 120;--color-interactive-ghost-active:15 23 42;--color-interactive-table-hover:30 41 59;--color-border-primary:124 143 177;--color-border-secondary:70 90 120;--color-border-subtle:39 56 96;--color-border-table:30 41 59;--color-border-inverse:20 20 20;--color-border-information:97 115 243;--color-border-success:0 150 78;--color-border-warning:182 85 7;--color-border-danger:255 102 55;--color-border-focus-info:68 76 231;--color-border-focus-danger:240 36 6}h1{font-size:1.875rem}h1,h2{font-weight:500}h2{font-size:1.5rem}h3{font-size:1.25rem}h3,h4{font-weight:500}h4{font-size:1.125rem}h5{font-size:1rem}h5,h6{font-weight:500}.body-normal,h6{font-size:.875rem}.body-normal{font-weight:400}.body-medium{font-size:.875rem;font-weight:500}.body-small{font-size:.75rem;font-weight:400}.body-small-medium{font-size:.75rem;font-weight:500}.body-small-mono{font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.75rem;font-weight:400}*,body,html{box-sizing:border-box}body{background-color:rgb(var(--color-surface-background));color:rgb(var(--color-text-primary));font-size:.875rem;font-weight:400;overscroll-behavior:none;position:relative}input[type=search]::-webkit-search-cancel-button{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.surface-background{background-color:rgb(var(--color-surface-background));color:rgb(var(--color-text-primary))}.surface-primary{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.surface-secondary{background-color:rgb(var(--color-surface-secondary));color:rgb(var(--color-text-primary))}.surface-interactive{background-color:rgb(var(--color-interactive-surface));color:rgb(var(--color-text-primary))}.surface-interactive:focus-visible{background-color:rgb(var(--color-interactive-hover))}.surface-interactive:hover{background-color:rgb(var(--color-interactive-hover))}.surface-interactive:active{background-color:rgb(var(--color-interactive-active))}.surface-interactive-secondary{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.surface-interactive-secondary:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.surface-interactive-secondary:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.surface-interactive-secondary:active{background-color:rgb(var(--color-interactive-secondary-active))}.surface-interactive-danger{background-color:rgb(var(--color-interactive-danger-surface));color:rgb(var(--color-text-black))}.surface-interactive-danger:focus-visible{background-color:rgb(var(--color-interactive-danger-hover))}.surface-interactive-danger:hover{background-color:rgb(var(--color-interactive-danger-hover))}.surface-interactive-danger:active{background-color:rgb(var(--color-interactive-danger-active))}.surface-interactive-ghost{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.surface-interactive-ghost:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.surface-interactive-ghost:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.surface-interactive-ghost:active{background-color:rgb(var(--color-interactive-ghost-active))}.surface-inverse{background-color:rgb(var(--color-surface-inverse));color:rgb(var(--color-text-inverse))}.surface-subtle{background-color:rgb(var(--color-surface-subtle));color:rgb(var(--color-text-primary))}.surface-table{background-color:rgb(var(--color-surface-table));color:rgb(var(--color-text-inverse))}.surface-warning{background-color:rgb(var(--color-surface-subtle));color:rgb(var(--color-text-black))}.surface-black{background-color:rgb(var(--color-surface-black));color:rgb(var(--color-text-white))}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.not-sr-only{clip:auto;height:auto;margin:0;overflow:visible;padding:0;position:static;white-space:normal;width:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-bottom-5{bottom:-1.25rem}.-bottom-6{bottom:-1.5rem}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.left-0{left:0}.left-1\/2{left:50%}.left-24{left:6rem}.left-\[60px\]{left:60px}.left-auto{left:auto}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-5{right:1.25rem}.right-8{right:2rem}.right-auto{right:auto}.top-0{top:0}.top-1{top:.25rem}.top-2{top:.5rem}.top-\[40px\]{top:40px}.top-\[50\%\]{top:50%}.top-\[540px\]{top:540px}.z-100{z-index:100}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[55\]{z-index:55}.z-\[99999\]{z-index:99999}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.order-6{order:6}.order-7{order:7}.col-span-2{grid-column:span 2/span 2}.float-right{float:right}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.m-auto{margin:auto}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-\[8px\]{margin-left:8px;margin-right:8px}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-bottom:.25rem;margin-top:.25rem}.my-12{margin-bottom:3rem;margin-top:3rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.my-4{margin-bottom:1rem;margin-top:1rem}.my-7{margin-bottom:1.75rem;margin-top:1.75rem}.my-8{margin-bottom:2rem;margin-top:2rem}.my-\[20vh\]{margin-bottom:20vh;margin-top:20vh}.-mb-2{margin-bottom:-.5rem}.-ml-2{margin-left:-.5rem}.-mr-2{margin-right:-.5rem}.-mt-12{margin-top:-3rem}.-mt-2{margin-top:-.5rem}.-mt-6{margin-top:-1.5rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-7{margin-left:1.75rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-5{margin-right:1.25rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-32{margin-top:8rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.box-border{box-sizing:border-box}.box-content{box-sizing:content-box}.block{display:block}.inline-block{display:inline-block}.\!inline{display:inline!important}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-auto{aspect-ratio:auto}.aspect-square{aspect-ratio:1/1}.h-0{height:0}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[224px\]{height:224px}.h-\[24px\]{height:24px}.h-\[540px\]{height:540px}.h-\[5px\]{height:5px}.h-\[64px\]{height:64px}.h-\[calc\(100\%-2\.5rem\)\]{height:calc(100% - 2.5rem)}.h-\[calc\(100\%-64px\)\]{height:calc(100% - 64px)}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.max-h-10{max-height:2.5rem}.max-h-20{max-height:5rem}.max-h-32{max-height:8rem}.max-h-40{max-height:10rem}.max-h-52{max-height:13rem}.max-h-96{max-height:24rem}.max-h-\[320px\]{max-height:320px}.max-h-fit{max-height:-moz-fit-content;max-height:fit-content}.min-h-\[1\.25rem\]{min-height:1.25rem}.min-h-\[154px\]{min-height:154px}.min-h-\[2\.5rem\]{min-height:2.5rem}.min-h-\[24px\]{min-height:24px}.min-h-\[600px\]{min-height:600px}.min-h-fit{min-height:-moz-fit-content;min-height:fit-content}.min-h-screen{min-height:100vh}.w-0{width:0}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-1\/12{width:8.333333%}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\/12{width:16.666667%}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3\/12{width:25%}.w-32{width:8rem}.w-4{width:1rem}.w-4\/12{width:33.333333%}.w-40{width:10rem}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-6\/12{width:50%}.w-60{width:15rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-9\/12{width:75%}.w-96{width:24rem}.w-\[10rem\]{width:10rem}.w-\[1px\]{width:1px}.w-\[240px\]{width:240px}.w-\[24px\]{width:24px}.w-\[25rem\]{width:25rem}.w-\[265px\]{width:265px}.w-\[27rem\]{width:27rem}.w-\[32px\]{width:32px}.w-\[35vw\]{width:35vw}.w-\[500px\]{width:500px}.w-\[calc\(100\%-6rem\)\]{width:calc(100% - 6rem)}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-screen{width:100vw}.min-w-0{min-width:0}.min-w-\[280px\]{min-width:280px}.min-w-\[32px\]{min-width:32px}.min-w-\[600px\]{min-width:600px}.min-w-\[80px\]{min-width:80px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.min-w-full{min-width:100%}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-16{max-width:4rem}.max-w-60{max-width:15rem}.max-w-80{max-width:20rem}.max-w-\[3rem\]{max-width:3rem}.max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.max-w-lg{max-width:32rem}.max-w-xs{max-width:20rem}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-1\/3{flex-basis:33.333333%}.table-fixed{table-layout:fixed}.border-separate{border-collapse:separate}.border-spacing-0{--tw-border-spacing-x:0px;--tw-border-spacing-y:0px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.origin-bottom-left{transform-origin:bottom left}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-x-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x:-100%}.-translate-y-1\/2{--tw-translate-y:-50%}.-translate-y-1\/2,.-translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y:-100%}.translate-x-0{--tw-translate-x:0px}.translate-x-0,.translate-x-12{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-12{--tw-translate-x:3rem}.translate-x-\[10px\]{--tw-translate-x:10px}.translate-x-\[10px\],.translate-y-\[-10px\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-10px\]{--tw-translate-y:-10px}.translate-y-\[-50\%\]{--tw-translate-y:-50%}.transform,.translate-y-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.list-inside{list-style-position:inside}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-flow-row{grid-auto-flow:row}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[2rem\]{grid-template-columns:2rem}.grid-rows-\[fit-content\(1\.5rem\)_minmax\(3rem\,4rem\)_1fr_8rem\]{grid-template-rows:fit-content(1.5rem) minmax(3rem,4rem) 1fr 8rem}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.content-between{align-content:space-between}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-\[1px\]{gap:1px}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-4{row-gap:1rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.\!overflow-visible{overflow:visible!important}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-x-scroll{overflow-x:scroll}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;white-space:nowrap}.text-ellipsis,.truncate{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.whitespace-break-spaces{white-space:break-spaces}.text-wrap{text-wrap:wrap}.text-nowrap{text-wrap:nowrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\[50\%\]{border-radius:50%}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-b-md{border-bottom-left-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-l-none{border-bottom-left-radius:0;border-top-left-radius:0}.rounded-r{border-bottom-right-radius:.25rem;border-top-right-radius:.25rem}.rounded-r-none{border-bottom-right-radius:0;border-top-right-radius:0}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.rounded-bl-lg{border-bottom-left-radius:.5rem}.rounded-bl-none{border-bottom-left-radius:0}.rounded-br{border-bottom-right-radius:.25rem}.rounded-br-lg{border-bottom-right-radius:.5rem}.rounded-br-none{border-bottom-right-radius:0}.rounded-tl-lg{border-top-left-radius:.5rem}.rounded-tl-none{border-top-left-radius:0}.rounded-tr{border-top-right-radius:.25rem}.rounded-tr-lg{border-top-right-radius:.5rem}.rounded-tr-none{border-top-right-radius:0}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-y{border-bottom-width:1px;border-top-width:1px}.\!border-l-0{border-left-width:0!important}.\!border-r-0{border-right-width:0!important}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0}.border-b-2{border-bottom-width:2px}.border-b-4{border-bottom-width:4px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-r-4{border-right-width:4px}.border-t{border-top-width:1px}.border-t-4{border-top-width:4px}.border-solid{border-style:solid}.border-\[transparent\]{border-color:transparent}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity))}.border-danger{border-color:rgb(var(--color-border-danger))}.border-green-200{--tw-border-opacity:1;border-color:rgb(174 255 216/var(--tw-border-opacity))}.border-information{border-color:rgb(var(--color-border-information))}.border-orange-500{--tw-border-opacity:1;border-color:rgb(249 115 22/var(--tw-border-opacity))}.border-primary{border-color:rgb(var(--color-border-primary))}.border-secondary{border-color:rgb(var(--color-border-secondary))}.border-slate-100{--tw-border-opacity:1;border-color:rgb(201 217 240/var(--tw-border-opacity))}.border-slate-200{--tw-border-opacity:1;border-color:rgb(174 190 217/var(--tw-border-opacity))}.border-slate-700{--tw-border-opacity:1;border-color:rgb(70 90 120/var(--tw-border-opacity))}.border-subtle{border-color:rgb(var(--color-border-subtle))}.border-success{border-color:rgb(var(--color-border-success))}.border-table{border-color:rgb(var(--color-border-table))}.border-transparent{border-color:transparent}.border-warning{border-color:rgb(var(--color-border-warning))}.border-white\/10{border-color:#ffffff1a}.border-b-transparent{border-bottom-color:transparent}.border-l-primary{border-left-color:rgb(var(--color-border-primary))}.border-l-transparent{border-left-color:transparent}.border-r-primary{border-right-color:rgb(var(--color-border-primary))}.border-r-transparent{border-right-color:transparent}.bg-\[\#DDD6FE\]{--tw-bg-opacity:1;background-color:rgb(221 214 254/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity:1;background-color:rgb(191 215 254/var(--tw-bg-opacity))}.bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 187 253/var(--tw-bg-opacity))}.bg-current{background-color:currentColor}.bg-danger{background-color:rgb(var(--color-surface-danger))}.bg-green-200{--tw-bg-opacity:1;background-color:rgb(174 255 216/var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(224 234 255/var(--tw-bg-opacity))}.bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(198 216 255/var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(68 76 231/var(--tw-bg-opacity))}.bg-information{background-color:rgb(var(--color-surface-information))}.bg-interactive{background-color:rgb(var(--color-interactive-surface))}.bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.bg-interactive-error{background-color:rgb(var(--color-interactive-danger-surface))}.bg-interactive-secondary-active{background-color:rgb(var(--color-interactive-secondary-active))}.bg-interactive-table-hover{background-color:rgb(var(--color-interactive-table-hover))}.bg-interactive\/50{background-color:rgb(var(--color-interactive-surface)/.5)}.bg-inverse{background-color:rgb(var(--color-surface-inverse))}.bg-off-black{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity:1;background-color:rgb(255 230 213/var(--tw-bg-opacity))}.bg-orange-200{--tw-bg-opacity:1;background-color:rgb(254 204 170/var(--tw-bg-opacity))}.bg-pink-200{--tw-bg-opacity:1;background-color:rgb(254 199 255/var(--tw-bg-opacity))}.bg-pink-50{--tw-bg-opacity:1;background-color:rgb(255 242 255/var(--tw-bg-opacity))}.bg-primary{background-color:rgb(var(--color-surface-primary))}.bg-purple-100{--tw-bg-opacity:1;background-color:rgb(239 233 254/var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity:1;background-color:rgb(226 214 254/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(255 228 212/var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity:1;background-color:rgb(255 196 168/var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity:1;background-color:rgb(255 102 55/var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(201 217 240/var(--tw-bg-opacity))}.bg-slate-100\/50{background-color:#c9d9f080}.bg-slate-200{--tw-bg-opacity:1;background-color:rgb(174 190 217/var(--tw-bg-opacity))}.bg-slate-800{--tw-bg-opacity:1;background-color:rgb(39 56 96/var(--tw-bg-opacity))}.bg-space-black{--tw-bg-opacity:1;background-color:rgb(20 20 20/var(--tw-bg-opacity))}.bg-subtle{background-color:rgb(var(--color-surface-subtle))}.bg-success{background-color:rgb(var(--color-surface-success))}.bg-transparent{background-color:transparent}.bg-warning{background-color:rgb(var(--color-surface-warning))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-white\/5{background-color:#ffffff0d}.bg-yellow-200{--tw-bg-opacity:1;background-color:rgb(254 233 137/var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-100{--tw-gradient-from:#dbe8fe var(--tw-gradient-from-position);--tw-gradient-to:rgba(219,232,254,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-blue-200{--tw-gradient-from:#bfd7fe var(--tw-gradient-from-position);--tw-gradient-to:rgba(191,215,254,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from:#444ce7 var(--tw-gradient-from-position);--tw-gradient-to:rgba(68,76,231,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-pink-100{--tw-gradient-from:#fee4ff var(--tw-gradient-from-position);--tw-gradient-to:rgba(254,228,255,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-red-100{--tw-gradient-from:#ffe4d4 var(--tw-gradient-from-position);--tw-gradient-to:rgba(255,228,212,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-100{--tw-gradient-from:#c9d9f0 var(--tw-gradient-from-position);--tw-gradient-to:rgba(201,217,240,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-yellow-100{--tw-gradient-from:#fff4c6 var(--tw-gradient-from-position);--tw-gradient-to:rgba(255,244,198,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-slate-200{--tw-gradient-to:rgba(174,190,217,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#aebed9 var(--tw-gradient-via-position),var(--tw-gradient-to)}.to-indigo-900{--tw-gradient-to:#2d3382 var(--tw-gradient-to-position)}.to-indigo-950{--tw-gradient-to:#1a1c4c var(--tw-gradient-to-position)}.to-pink-200{--tw-gradient-to:#fec7ff var(--tw-gradient-to-position)}.to-purple-100{--tw-gradient-to:#efe9fe var(--tw-gradient-to-position)}.to-red-200{--tw-gradient-to:#ffc4a8 var(--tw-gradient-to-position)}.to-slate-300{--tw-gradient-to:#92a4c3 var(--tw-gradient-to-position)}.to-yellow-200{--tw-gradient-to:#fee989 var(--tw-gradient-to-position)}.bg-fixed{background-attachment:fixed}.bg-clip-padding{background-clip:padding-box}.fill-current{fill:currentColor}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-px{padding:1px}.px-0{padding-left:0;padding-right:0}.px-0\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-bottom:0;padding-top:0}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-8{padding-bottom:2rem;padding-top:2rem}.\!pt-0{padding-top:0!important}.pb-0{padding-bottom:0}.pb-16{padding-bottom:4rem}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-24{padding-bottom:6rem}.pb-4{padding-bottom:1rem}.pl-0{padding-left:0}.pl-1{padding-left:.25rem}.pl-1\.5{padding-left:.375rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-5{padding-left:1.25rem}.pr-0{padding-right:0}.pr-0\.5{padding-right:.125rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pt-1{padding-top:.25rem}.pt-10{padding-top:2.5rem}.pt-2{padding-top:.5rem}.pt-24{padding-top:6rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.font-mono{font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-8xl{font-size:6rem;line-height:1}.text-\[0\.6rem\]{font-size:.6rem}.text-\[12px\]{font-size:12px}.text-\[12rem\]{font-size:12rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-10{line-height:2.5rem}.leading-3{line-height:.75rem}.leading-4{line-height:1rem}.leading-8{line-height:2rem}.leading-\[18px\]{line-height:18px}.\!text-space-black{--tw-text-opacity:1!important;color:rgb(20 20 20/var(--tw-text-opacity))!important}.text{color:rgb(var(--color-text-primary))}.text-\[\#C9D9F0\]{--tw-text-opacity:1;color:rgb(201 217 240/var(--tw-text-opacity))}.text-\[\#e9d5ff\]{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 100 216/var(--tw-text-opacity))}.text-danger{color:rgb(var(--color-text-danger))}.text-green-700{--tw-text-opacity:1;color:rgb(0 150 78/var(--tw-text-opacity))}.text-information{color:rgb(var(--color-text-information))}.text-inverse{color:rgb(var(--color-text-inverse))}.text-off-white{--tw-text-opacity:1;color:rgb(248 250 252/var(--tw-text-opacity))}.text-pink-700{--tw-text-opacity:1;color:rgb(211 0 216/var(--tw-text-opacity))}.text-primary{color:rgb(var(--color-text-primary))}.text-purple-200{--tw-text-opacity:1;color:rgb(226 214 254/var(--tw-text-opacity))}.text-red-400{--tw-text-opacity:1;color:rgb(255 102 55/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(199 22 7/var(--tw-text-opacity))}.text-secondary{color:rgb(var(--color-text-secondary))}.text-slate-100{--tw-text-opacity:1;color:rgb(201 217 240/var(--tw-text-opacity))}.text-slate-300{--tw-text-opacity:1;color:rgb(146 164 195/var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity:1;color:rgb(102 124 161/var(--tw-text-opacity))}.text-slate-700{--tw-text-opacity:1;color:rgb(70 90 120/var(--tw-text-opacity))}.text-subtle{color:rgb(var(--color-text-subtle))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity:1;color:rgb(182 85 7/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-65{opacity:.65}.opacity-90{opacity:.9}.opacity-\[\.35\]{opacity:.35}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-\[inset_0_0_0_2px\]{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[inset_0_0_0_2px\]{--tw-shadow:inset 0 0 0 2px;--tw-shadow-colored:inset 0 0 0 2px var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-white{--tw-shadow-color:#fff;--tw-shadow:var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-2{outline-width:2px}.ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.brightness-50{--tw-brightness:brightness(.5)}.brightness-50,.invert{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert:invert(100%)}.\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-\[opacity\,transform\]{transition-duration:.15s;transition-property:opacity,transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-shadow{transition-duration:.15s;transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-width{transition-duration:.15s;transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:surface-interactive-secondary:hover{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.hover\:surface-interactive-secondary:hover:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:surface-interactive-secondary:hover:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:surface-interactive-secondary:hover:active{background-color:rgb(var(--color-interactive-secondary-active))}.hover\:surface-interactive-ghost:hover{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.hover\:surface-interactive-ghost:hover:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.hover\:surface-interactive-ghost:hover:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.hover\:surface-interactive-ghost:hover:active{background-color:rgb(var(--color-interactive-ghost-active))}.focus-visible\:surface-interactive-secondary:focus-visible{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.focus-visible\:surface-interactive-secondary:focus-visible:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:surface-interactive-secondary:focus-visible:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:surface-interactive-secondary:focus-visible:active{background-color:rgb(var(--color-interactive-secondary-active))}.focus-visible\:surface-interactive-ghost:focus-visible{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.focus-visible\:surface-interactive-ghost:focus-visible:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.focus-visible\:surface-interactive-ghost:focus-visible:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.focus-visible\:surface-interactive-ghost:focus-visible:active{background-color:rgb(var(--color-interactive-ghost-active))}.dark\:focus-within\:surface-primary:focus-within:where([data-theme=dark],[data-theme=dark] *){background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.placeholder\:text-secondary::-moz-placeholder{color:rgb(var(--color-text-secondary))}.placeholder\:text-secondary::placeholder{color:rgb(var(--color-text-secondary))}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:left-\[calc\(100\%_\+_1\.5rem\)\]:after{content:var(--tw-content);left:calc(100% + 1.5rem)}.after\:top-0:after{content:var(--tw-content);top:0}.after\:hidden:after{content:var(--tw-content);display:none}.after\:h-8:after{content:var(--tw-content);height:2rem}.after\:items-center:after{align-items:center;content:var(--tw-content)}.after\:rounded-md:after{border-radius:.375rem;content:var(--tw-content)}.after\:bg-slate-800:after{--tw-bg-opacity:1;background-color:rgb(39 56 96/var(--tw-bg-opacity));content:var(--tw-content)}.after\:p-1:after{content:var(--tw-content);padding:.25rem}.after\:px-2:after{content:var(--tw-content);padding-left:.5rem;padding-right:.5rem}.after\:text-xs:after{content:var(--tw-content);font-size:.75rem;line-height:1rem}.after\:text-white:after{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity));content:var(--tw-content)}.after\:content-\[attr\(data-tooltip\)\]:after{--tw-content:attr(data-tooltip);content:var(--tw-content)}.first\:pt-0:first-child{padding-top:0}.last\:border-b-0:last-child{border-bottom-width:0}.first-of-type\:rounded-bl-lg:first-of-type{border-bottom-left-radius:.5rem}.first-of-type\:rounded-tl:first-of-type{border-top-left-radius:.25rem}.first-of-type\:rounded-tl-lg:first-of-type{border-top-left-radius:.5rem}.first-of-type\:rounded-tr-lg:first-of-type{border-top-right-radius:.5rem}.last-of-type\:rounded-bl-lg:last-of-type{border-bottom-left-radius:.5rem}.last-of-type\:rounded-br-lg:last-of-type{border-bottom-right-radius:.5rem}.last-of-type\:border-0:last-of-type{border-width:0}.last-of-type\:border-b-0:last-of-type{border-bottom-width:0}.focus-within\:border-danger:focus-within{border-color:rgb(var(--color-border-danger))}.focus-within\:border-information:focus-within{border-color:rgb(var(--color-border-information))}.focus-within\:border-interactive:focus-within{border-color:rgb(var(--color-interactive-surface))}.focus-within\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}.focus-within\:ring-4:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-within\:ring-primary\/70:focus-within{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.hover\:scale-125:hover{--tw-scale-x:1.25;--tw-scale-y:1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:border-danger:hover{border-color:rgb(var(--color-border-danger))}.hover\:border-information:hover{border-color:rgb(var(--color-border-information))}.hover\:bg-interactive-hover:hover{background-color:rgb(var(--color-interactive-hover))}.hover\:bg-interactive-secondary-hover:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:bg-interactive-table-hover:hover{background-color:rgb(var(--color-interactive-table-hover))}.hover\:bg-slate-800:hover{--tw-bg-opacity:1;background-color:rgb(39 56 96/var(--tw-bg-opacity))}.hover\:bg-white:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:text-black:hover{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity:1;color:rgb(29 100 216/var(--tw-text-opacity))}.hover\:text-brand:hover{color:rgb(var(--color-text-brand))}.hover\:text-primary:hover{color:rgb(var(--color-text-primary))}.hover\:underline:hover{text-decoration-line:underline}.focus\:translate-y-0:focus{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\:rounded-sm:focus-visible{border-radius:.125rem}.focus-visible\:border-danger:focus-visible{border-color:rgb(var(--color-border-danger))}.focus-visible\:border-indigo-600:focus-visible{--tw-border-opacity:1;border-color:rgb(68 76 231/var(--tw-border-opacity))}.focus-visible\:border-information:focus-visible{border-color:rgb(var(--color-border-information))}.focus-visible\:border-inverse:focus-visible{border-color:rgb(var(--color-border-inverse))}.focus-visible\:border-table:focus-visible{border-color:rgb(var(--color-border-table))}.focus-visible\:border-transparent:focus-visible{border-color:transparent}.focus-visible\:bg-interactive-secondary-hover:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:text-brand:focus-visible{color:rgb(var(--color-text-brand))}.focus-visible\:shadow-\[0_0_0_4px_rgb\(249\,115\,22\,0\.7\)\]:focus-visible{--tw-shadow:0 0 0 4px rgb(249,115,22,.7);--tw-shadow-colored:0 0 0 4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus-visible\:shadow-\[0_0_0_4px_rgb\(97\,115\,243\,0\.7\)\]:focus-visible{--tw-shadow:0 0 0 4px rgb(97,115,243,.7);--tw-shadow-colored:0 0 0 4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:ring-4:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-danger\/70:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-danger)/.7)}.focus-visible\:ring-primary\/70:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.enabled\:hover\:border-information:hover:enabled{border-color:rgb(var(--color-border-information))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:focus-within .group-focus-within\:visible{visibility:visible}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:inline-block{display:inline-block}.group:hover .group-hover\:border-information{border-color:rgb(var(--color-border-information))}.group:hover .group-hover\:border-transparent{border-color:transparent}.group:hover .group-hover\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.group:hover .group-hover\:bg-interactive-secondary-hover{background-color:rgb(var(--color-interactive-secondary-hover))}.group:hover .group-hover\:opacity-100{opacity:1}.group:hover .group-hover\:opacity-90{opacity:.9}.group:hover .group-hover\:ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.group:hover .group-hover\:ring-primary\/70{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.group:focus .group-focus\:opacity-100{opacity:1}.group.surface-primary .group-\[\.surface-primary\]\:hover\:bg-black:hover{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.peer:checked~.peer-checked\:justify-end{justify-content:flex-end}.peer:checked~.peer-checked\:border-danger{border-color:rgb(var(--color-border-danger))}.peer:checked~.peer-checked\:border-interactive{border-color:rgb(var(--color-interactive-surface))}.peer:checked~.peer-checked\:bg-interactive{background-color:rgb(var(--color-interactive-surface))}.peer:checked~.peer-checked\:text-off-white{--tw-text-opacity:1;color:rgb(248 250 252/var(--tw-text-opacity))}.group:hover .peer:checked~.group-hover\:peer-checked\:border-transparent{border-color:transparent}.group:hover .peer:checked~.group-hover\:peer-checked\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.group:hover .peer:checked~.group-hover\:peer-checked\:bg-interactive-hover{background-color:rgb(var(--color-interactive-hover))}.peer:indeterminate~.peer-indeterminate\:border-interactive{border-color:rgb(var(--color-interactive-surface))}.peer:indeterminate~.peer-indeterminate\:bg-interactive{background-color:rgb(var(--color-interactive-surface))}.group:hover .peer:indeterminate~.group-hover\:peer-indeterminate\:border-transparent{border-color:transparent}.group:hover .peer:indeterminate~.group-hover\:peer-indeterminate\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.peer:focus-visible~.peer-focus-visible\:border-inverse{border-color:rgb(var(--color-border-inverse))}.peer:focus-visible~.peer-focus-visible\:border-transparent{border-color:transparent}.peer:focus-visible~.peer-focus-visible\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.peer:focus-visible~.peer-focus-visible\:bg-interactive-secondary-hover{background-color:rgb(var(--color-interactive-secondary-hover))}.peer:focus-visible~.peer-focus-visible\:ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.peer:focus-visible~.peer-focus-visible\:ring-primary\/70{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.peer:focus-visible:checked~.peer-focus-visible\:peer-checked\:bg-interactive-hover{background-color:rgb(var(--color-interactive-hover))}.data-\[nav\=open\]\:w-\[180px\][data-nav=open]{width:180px}.data-\[nav\=open\]\:grid-cols-\[100\%\][data-nav=open]{grid-template-columns:100%}.group[data-nav=open] .group-data-\[nav\=open\]\:visible{visibility:visible}.group[data-nav=closed] .group-data-\[nav\=closed\]\:hidden,.group[data-nav=open] .group-data-\[nav\=open\]\:hidden{display:none}.group[data-nav=open] .group-data-\[nav\=open\]\:rotate-180{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group[data-nav=open] .group-data-\[nav\=open\]\:justify-start{justify-content:flex-start}.group[data-nav=closed] .group-data-\[nav\=closed\]\:justify-center{justify-content:center}.group[data-nav=closed] .group-data-\[nav\=closed\]\:p-1{padding:.25rem}.group[data-nav=open] .group-data-\[nav\=open\]\:px-2\.5{padding-left:.625rem;padding-right:.625rem}.group[data-nav=open] .group-data-\[nav\=open\]\:py-2{padding-bottom:.5rem;padding-top:.5rem}.group[data-nav=open] .group-data-\[nav\=open\]\:opacity-100{opacity:1}.group[data-nav=closed] .group-data-\[nav\=closed\]\:hover\:after\:flex:hover:after{content:var(--tw-content);display:flex}@media not all and (min-width:1280px){.max-xl\:hidden{display:none}}@media not all and (min-width:1024px){.max-lg\:hidden{display:none}}@media not all and (min-width:768px){.max-md\:hidden{display:none}}@media not all and (min-width:640px){.max-sm\:flex{display:flex}.max-sm\:hidden{display:none}.max-sm\:flex-col{flex-direction:column}}@media (min-width:640px){.sm\:block{display:block}.sm\:grid{display:grid}.sm\:hidden{display:none}.sm\:w-\[20rem\]{width:20rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}}@media (min-width:768px){.md\:visible{visibility:visible}.md\:order-2{order:2}.md\:order-3{order:3}.md\:order-4{order:4}.md\:order-5{order:5}.md\:order-6{order:6}.md\:order-8{order:8}.md\:mt-6{margin-top:1.5rem}.md\:block{display:block}.md\:flex{display:flex}.md\:table-cell{display:table-cell}.md\:table-row{display:table-row}.md\:hidden{display:none}.md\:h-auto{height:auto}.md\:w-1\/2{width:50%}.md\:w-2\/3{width:66.666667%}.md\:w-32{width:8rem}.md\:w-80{width:20rem}.md\:w-\[26rem\]{width:26rem}.md\:w-auto{width:auto}.md\:max-w-full{max-width:100%}.md\:max-w-lg{max-width:32rem}.md\:table-fixed{table-layout:fixed}.md\:columns-2{-moz-columns:2;column-count:2}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-end{align-items:flex-end}.md\:items-center{align-items:center}.md\:gap-2{gap:.5rem}.md\:gap-4{gap:1rem}.md\:gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.md\:whitespace-normal{white-space:normal}.md\:rounded-full{border-radius:9999px}.md\:p-12{padding:3rem}.md\:p-8{padding:2rem}.md\:px-2{padding-left:.5rem;padding-right:.5rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:pb-0{padding-bottom:0}.md\:pr-24{padding-right:6rem}.md\:pt-20{padding-top:5rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:1024px){.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:w-1\/2{width:50%}.lg\:w-1\/3{width:33.333333%}.lg\:w-2\/3{width:66.666667%}.lg\:w-3\/4{width:75%}.lg\:w-3\/5{width:60%}.lg\:w-56{width:14rem}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:items-end{align-items:flex-end}.lg\:justify-start{justify-content:flex-start}.lg\:border-r-2{border-right-width:2px}.lg\:pr-2{padding-right:.5rem}}@media (min-width:1280px){.xl\:order-2{order:2}.xl\:order-3{order:3}.xl\:order-4{order:4}.xl\:order-5{order:5}.xl\:order-6{order:6}.xl\:order-7{order:7}.xl\:flex{display:flex}.xl\:table-cell{display:table-cell}.xl\:hidden{display:none}.xl\:w-1\/2{width:50%}.xl\:w-1\/3{width:33.333333%}.xl\:w-10{width:2.5rem}.xl\:w-2\/3{width:66.666667%}.xl\:w-80{width:20rem}.xl\:w-auto{width:auto}.xl\:min-w-\[520px\]{min-width:520px}.xl\:max-w-2xl{max-width:42rem}.xl\:columns-3{-moz-columns:3;column-count:3}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:flex-row{flex-direction:row}.xl\:flex-nowrap{flex-wrap:nowrap}.xl\:items-center{align-items:center}.xl\:gap-4{gap:1rem}.xl\:gap-x-16{-moz-column-gap:4rem;column-gap:4rem}.xl\:border-b-0{border-bottom-width:0}.xl\:border-r-2{border-right-width:2px}.xl\:px-4{padding-left:1rem;padding-right:1rem}.xl\:py-3{padding-bottom:.75rem;padding-top:.75rem}.xl\:pr-48{padding-right:12rem}.xl\:text-left{text-align:left}}@media (min-width:1536px){.\32xl\:w-1\/2{width:50%}}.dark\:border-slate-500:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(102 124 161/var(--tw-border-opacity))}.dark\:bg-pink-500:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 38 255/var(--tw-bg-opacity))}.dark\:bg-red-900:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(127 20 15/var(--tw-bg-opacity))}.dark\:bg-slate-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(87 110 143/var(--tw-bg-opacity))}.dark\:bg-yellow-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(220 122 3/var(--tw-bg-opacity))}.dark\:bg-gradient-to-r:where([data-theme=dark],[data-theme=dark] *){background-image:linear-gradient(to right,var(--tw-gradient-stops))}.dark\:from-slate-600:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-from:#576e8f var(--tw-gradient-from-position);--tw-gradient-to:rgba(87,110,143,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark\:via-slate-700:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-to:rgba(70,90,120,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#465a78 var(--tw-gradient-via-position),var(--tw-gradient-to)}.dark\:to-slate-800:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-to:#273860 var(--tw-gradient-to-position)}.dark\:text-slate-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(124 143 177/var(--tw-text-opacity))}.dark\:invert:where([data-theme=dark],[data-theme=dark] *){--tw-invert:invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus-visible\:dark\:ring-success:where([data-theme=dark],[data-theme=dark] *):focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.group.surface-primary .group-\[\.surface-primary\]\:dark\:hover\:bg-white:hover:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:dark\:hover\:text-black:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.focus-visible\:\[\&_\[role\=button\]\]\:outline-none [role=button]:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:\[\&_\[role\=button\]\]\:ring-4 [role=button]:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:\[\&_\[role\=button\]\]\:ring-primary\/70 [role=button]:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.focus-visible\:\[\&_\[role\=button\]\]\:ring-success [role=button]:focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.focus-visible\:\[\&_a\]\:outline-none a:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:\[\&_a\]\:ring-4 a:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:\[\&_a\]\:ring-primary\/70 a:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.focus-visible\:\[\&_a\]\:ring-success a:focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.button-group>.\[\.button-group\>\&\:first-of-type\]\:rounded-l-lg:first-of-type{border-bottom-left-radius:.5rem;border-top-left-radius:.5rem}.button-group>.\[\.button-group\>\&\:last-of-type\]\:rounded-r-lg:last-of-type{border-bottom-right-radius:.5rem;border-top-right-radius:.5rem}.button-group>.\[\.button-group\>\&\]\:rounded-none,.input-group>.\[\.input-group\>\&\]\:rounded-none{border-radius:0}.input-group>.first\:\[\.input-group\>\&\]\:rounded-l:first-child{border-bottom-left-radius:.25rem;border-top-left-radius:.25rem}.input-group>.last\:\[\.input-group\>\&\]\:rounded-r:last-child{border-bottom-right-radius:.25rem;border-top-right-radius:.25rem} diff --git a/ui/assets/local/_app/immutable/assets/app.Z_87GzT1.css b/ui/assets/local/_app/immutable/assets/app.Z_87GzT1.css deleted file mode 100644 index 119c097099..0000000000 --- a/ui/assets/local/_app/immutable/assets/app.Z_87GzT1.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-cyrillic-ext-wght-normal.gWHutNtk.woff2) format("woff2-variations");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-cyrillic-wght-normal.x3mpJyrC.woff2) format("woff2-variations");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-greek-ext-wght-normal.L6TiHhs2.woff2) format("woff2-variations");unicode-range:u+1f??}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-greek-wght-normal.ERnVB3ZO.woff2) format("woff2-variations");unicode-range:u+0370-03ff}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-vietnamese-wght-normal.mV7lv8Vd.woff2) format("woff2-variations");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-latin-ext-wght-normal.Fo7f5M47.woff2) format("woff2-variations");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-latin-wght-normal.8DMS9JnF.woff2) format("woff2-variations");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-cyrillic-ext-400-normal.ShfNumKh.woff2) format("woff2"),url(./noto-sans-mono-cyrillic-ext-400-normal.RbG1ppRG.woff) format("woff");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-cyrillic-400-normal.d1_UN25R.woff2) format("woff2"),url(./noto-sans-mono-cyrillic-400-normal.EUkKa32Q.woff) format("woff");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-greek-ext-400-normal.FxyJYyRe.woff2) format("woff2"),url(./noto-sans-mono-greek-ext-400-normal.RCqqxuzj.woff) format("woff");unicode-range:u+1f??}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-greek-400-normal.Zlk2uUaP.woff2) format("woff2"),url(./noto-sans-mono-greek-400-normal.Oqg5aDJo.woff) format("woff");unicode-range:u+0370-03ff}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA8oABAAAAAAKLQAAA7GAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoECG4dgHIJCBmA/U1RBVEQAgUQRCAqqWKVCC4IeAAE2AiQDhCQEIAWEbgeJfgwHG+YjMwMmhc0Asv9DgjZGCPo7sZqDDyNEwgSIZmOzKywiQRkl4IEy+NiZYm7SjagwyrvTXGEHf1kd/9erNO8vsK+if3TtfbFl8PT599/vqurbB8/qB4+FDGKSQPFEwkcmJ8HMuj/gtv4NMNhAmzKiwEQs6nAKFijGjMKOi/7468q+quIqG3io3+939iLeNRH6m45qIqllCJlSmI53Ep1I/hWb7m9BwyuXnvCEeKgPr+v0+3NUig+MvlsS4odG5DaFzZWFAn4TGdVLen+Di1HFHAFhUzQgdrH+pxHgP61VnuzfVW+5jsDtHAdQuA6Si9ARpram5s9WauqAe/tYESmgvj7oDpJQJ2PjANgCKkBhAFjpMzpSRmgVeHJfat/4utalEWoQ2hKM6JTgNUnWx2evv/YVQKhlAIBiAMKDIaAP6GF8rXW6pWOHhZPOE092dsnlHHcstPKUM85FViqvTFaKRkcx1MwJJ0ymt+2bYwSk+pmFMjYJzwTO9q+pBjj797Jq4JwELXXA4QBZAwVCz28pME4Pxx3ADCgJPlEwLzkj5hUSKUds4KEQ49DE+ujSon6xbaViAn1YxI0uu+/Wml5qWEV8mYfYc0u4MMmwDh1U71Q29wRZ7iLFIYl/Em7gE3dAxKQ8K1sglSPQbClKVUAyEpKAIsuhdq2/njrHpnMgG2/jk5kzJSKdRn53yld6Ty/d4zTnb5yzc3cpX7d0kU7TMXcg7hRSkmkr2cW17GuJ+bOlJqtxJQlq7bNJZcWsFtYs0N7rnNPJOiUrQpuQZ69SBbPoiSMxJsslMbQWJHr4kMQgv/PUmWfDe2R19+YLxG8OCZ3vceKobxdh58+IeOz7JeZZva7iXbK61HcXizd0e8/PIP7erc4/Ju7fDFB2gwq86a3pN4/ay97HjIAuJwsiQ3t1cjeAGcshvrVHnfBK1IgaFD7kKNHwHIUUlKMJmc4MmnbD5hOk6fwEfxq2oJRDVyYpO/ZC1kCohax1HIQMbAuZ7fW1DSAQwS1797xzA2zX5VifTODFO2iaaPGtuY0mqlxadPOzzHknXftpr4/BII8BYn0/fXg/M2i05BF0zcjj0/SezjyUcjKuyUAvyhKA6fY7ljVCIxHQrkziMk7VBZg5kPcXkxflEjgA4Wp7vp/gnuM05LJxDdqrDgSOEDEFpRS00LPNlS0IAod3WioREqIwZa1GARvqvm2lcQ362K7VpYzYYc4j36b/ynmQJwRZisZnNLIwHjWJOUusOT7nQ/2n+h9hdQ1IuR+SFI73VMqCeNiEdT5mwoLzsf7zE5P8kn1U6zR5n36z/qT+EPDttPkStn7b8MfZB0F/nL53mZBQSg7T6OEnHXtN0qAAwBWADAJDoDXYK/wX2MlArc2EzC3mmOvPtuzYahpJJQn9m9KUq4IsqifE4P7jA8wpNJq1OYNKd6SzTVGalTnTcal5IAqG2ptRrM1pHCtzC6aFSykM9DRPMy/IAjOiU4rpRjSMwPJRdf+8eZzB0VGbbJUKy/p2BjTgfgFDVEZKhA6ZlCwo0l7tpkaOX7uGXbwyFI5dnqHs81Ygx6+iF+Yz4FjfRJcihpGeJ5zBLl66poO3Szc1lpOLZZOql+3r7oKBYEMHD7IhS6szR6XKHYhU7tbcBhRVoitOn5htI5lHLu+BY2fmjZJLAdqVrh9jixjYcTl33tWzed9XJoaoyEqETsqCAu0uZMJurG8nHNtRa37aB2Onehqf85SyL8+RLO02BjJnK9a3e72TqgDLGbrigI0snm+Xi+VtuHy5WrsKmbBavYy6ByYQOhAjhw/bYTB4/rw3SvbnZRv9WELr06umlNe07cm9bKx/eBhBZGBwz4mEvlnr4qurf7949f0PHbzgA+iyi74rznuj1dqrrj23Um71lBO24HL1+S4nRtavf9adnsxcbfdChGrRX67fCtaF+MrkLt+PTJjHUdkOzYVjG85HXphLIk7ZjwN58BbEHAq270YmbEO1S2yQgeVv98HH9nCd0bfPfNQaFzVaedUVmPs4KJft2sdBsKG1K9kpAyOr178JS/fscEe5JQwKKn69CnQjuopQXikPbJ6dJp6fzptn8Fu0Kils1azoeQbfmw7yR2w5ELolCtmdCEXEH9kcqBP8R+N+XiroEcyw0Yz7B19qEsGNLbSfml7HXdqQl+O9tcJiixymZGQ4TIstLOTGy/lioeN49XTJQA5fKnQar1Y7jZcIwYeaXhrv36Y4rT4eyco6Gx510FbJO6Y+K/NrKxMCwrizuWRZ5fLKQv4PZ4Asn96vNfkH1Sw1TnpI40ubFKbIoyPwGs8UpInEkEq4sX4ptm6OSel5drFlNerCCil1DCVX+JEpDUh2DkgMCyZIH1B1oEvgIMyhKrvjErtysuN6GhNxcWlseIPcZwoiCk7LdI30z2IuVlzKtZTgjk6Ji/2S0hWoEBT8fWYT19EE1DObzPjPOzhyJ5dUDifVxUkO/lRujkuiyL1Ski/orOWLxfX8+C5C7F4RL8x24Um5SSEueXHxLmphMDcVryHiXPOEIUChEuqCgjK1Kp6bkBCp56gENmqWlCYxCrC+B2c/22ReFG0kWzhNenHQXnrfPntc9FlW8kxy5ft3pZVReffz3fxTxX4wr5bx29HpB4NBdXKk/XIfYRjQSHwk8KX4042xtArdyJreGA3Rqe6pl6J0a4k+OT7c3JG6cFaaxjRlfMd/fUR4R3m0dEwgWFJDFC5RQsdKSXZoR5kA95g0cZsxzYdDv5nzXZZIKM+WLGFKJcKiTJtotnprmBgvqyoWF7vZJ6oTYWKl26NtRwO//zFKEyaY37pqVeb/fPDOl6Qms6Nr33RZO2n7YqjpyeB34f7Rt+cHmG1IY9kWhoMF8++a0JwIUZCtwtPCktVT09Sf8JPLz6UEWDbtFDpu79NYuf+TPqfN17jO+tQDdgH+IKoviiUKcFnEW8Zkye3pCxu5ExdZ8xP8gjyvewnDP0CPE2bdknhL3k8o2cHmbLO23sZh71huvcLJZR+f1qf03uSH6OLZzvwDWNr3vOjDAb7zbBV6kdzbIQS8MpYolsBk6ll1zE18APVMGxyI1KfBE49yIr9pM2grpWLCjwgQx30IJmMUECIZkeZrUdiVfoqodrE0sDXEMqwHi4SrNaTh77tkjnCLjkWPCi2L+kK4t10ddhApkRf34pqsrgX6t1js3yRT2565wDQ/2JJ5uHABFxxwniBjB6OxyQ04cLGXpkT1zcG0Hxlc31z5AJOHycPkYfIweRimiUkuQmNoZd7JbhZyPZGEDL5fZsiVq/QhZ0ngw4u8oGZbLvyIEiUyt9EeX0QzqSHVj1gu+T2Gaj+4pgIuOPAjA2cnXcwmG7HSLRF1VT++cVz0qPobIeS1TpRWo3A532NYL5FvKLplZL4k8k48aibZPlM0aWInTNGEsQhOPDqBfGKxDxYrdaEWHb3gkh7ghxNaCuCmnVgL76pB4USCrZBpesn40grCXDhZgFhTXjRAtBVEGbQVwKCtsMR5Ay44gEm2JRNZOM7JvxfJJFlow1wQhUQ4nu+Lx0JWVP/g19L6YkRJ/ceIUP8YimP9DVanRmXlBXz9fbbk/KChe3HrYaeBUuiY9ZuUX0XvY4BW6uwC8t503Rygg96LzVQr3023zpQHboZW2aBnYnapp+ckK7fklDtqtkhKU6ZQz8ha2eh1LSGfzQkP5fpPymN5Rq2dbJ+To9rKNgR9DD2XRSdys1ok5BNWa6E/fWy19JL1nRFjtde1A3Taf9FXFZ683uO9HnfnrOSx/KjWLhymdbSUskdB33r5n0b7HSnrKO/qsfQ7PW3Nz6sGpy66SvS1M8+irz3hqe0/KY/lGbV2oV1aR7VVNvB76zdw2dJ8+UwZT87o1Hsko2SSDdtvUs1KnemLTLVybMlns20grhmD01BMI7Vdgxn0kGQU6WVQsxnTdqwG1tiVz+aG58sZc73X4ifCqso6VpY/s9cCxEXfa5YWEP7e3FJ+y2qrmF0e54HKEOTJXi9XR15HgDYt+Hr6XTJhzv9jsv0P+OXY6SeA3zc7nCxezP3uDPAUgOBnhDN1NRLhtwCi2/RUWUIBiDYN2RBBdRRAYnILex3xSUERITlOk2mw/DWfxAFSQl06xDSJZtCb0KEdAsz0iAlrHKKWiFOFz0NiuPZDEm7JfoVbW8RagOyeup3Cbaxqb2t6zeyIt7rXu6MHRt7GV/TjLGGKALz5AzkufN2hOQFeRK/FJFEbVpNUfrhJZpRXk5weHkzKqHZsktdhycR8gzQdRYRc5ZOUVK4r4InCLPWa1CpSQ0WjVIvKT64MV4FvMXp+2AbNovXWdmWJJpqea1m4QJNq1Fij4Spiq2cTwzVdi3EZO1cXr6WoV7cywDxlpK1qgmkTpeeaYkJzX8766aWPvvpnT3deTHdenIDz7hmfNMNNJicnEVM+7+19SZdk1jfo1NQYU63rIyv7CRb0qGy37HSOJuuqAr4kLRurtZmmTUbzkjsam22miaatirc7rlevVpBdar68BtNyH1Spa5G0ToCkTcqOrtqF9bW5Gjm+RgkfiouUHaUf/iNfgRQxTIsOPfQzxAjjCUnh0mXL8284LnvkLepKQzdMK6675bYb0bMd1yOUcSGVNkzLdlzPD8IoTtIsL8qqbtquH8ZpXtZtP87rft7vJ5EpVBqdwWSxOSAEI1weXyAUiSVSmVyhVKk1WhTDCZ3eYDSZLXEtjlab3eF0uT1enz/xhxDom3n77wbqf6axoKHCVf97IYPbtdH9Ejwb42dxjL1WgVzJV3X3nyAOEr9t6pP8cj/XL1Oxil87NF/nAjoFLCAQMAgoGDgEJBQ0DCyc9EoDQCBgEFAwcAhIKGgYWDjplQGAQMAgoGDgEJBQ0DCwcNIrCwCBgEFAwcAhIKGgYWDhpFcOAAIBg4CCgUNAQkHDwMJJrzwABAEFA4e4K1kTl3PWzy+Xwx/s5P8Jxxmjou+ff6jTh/l7H5O2GmAg2jeBebk17DlgiOjghWj0erZDcxvVkc1ArLSLoe4V2u2ErZH8Z09vwGUAAA==) format("woff2"),url(./noto-sans-mono-vietnamese-400-normal.SBv5uTXX.woff) format("woff");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-latin-ext-400-normal.pKNVVoQn.woff2) format("woff2"),url(./noto-sans-mono-latin-ext-400-normal.9o3dvHje.woff) format("woff");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-latin-400-normal.uwj1jQ8m.woff2) format("woff2"),url(./noto-sans-mono-latin-400-normal.xnci5kZ6.woff) format("woff");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border-color:rgb(var(--color-border-primary));border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Inter,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}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}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}:root{--color-text-black:20 20 20;--color-text-white:248 250 252;--color-text-primary:20 20 20;--color-text-secondary:39 56 96;--color-text-inverse:248 250 252;--color-text-subtle:70 90 120;--color-text-danger:199 22 7;--color-text-information:68 76 231;--color-text-success:0 150 78;--color-text-warning:220 122 3;--color-text-pink:255 38 255;--color-text-brand:68 76 231;--color-surface-background:248 250 252;--color-surface-primary:255 255 255;--color-surface-secondary:248 250 252;--color-surface-subtle:201 217 240;--color-surface-table:20 20 20;--color-surface-success:213 255 235;--color-surface-success-loud:0 192 95;--color-surface-information:224 234 255;--color-surface-information-loud:68 76 231;--color-surface-danger:255 228 212;--color-surface-warning:255 244 198;--color-surface-brand:68 76 231;--color-surface-inverse:20 20 20;--color-surface-black:0 0 0;--color-interactive-surface:68 76 231;--color-interactive-hover:54 59 204;--color-interactive-active:47 52 164;--color-interactive-secondary-surface:255 255 255;--color-interactive-secondary-hover:232 239 255;--color-interactive-secondary-active:174 190 217;--color-interactive-danger-surface:255 155 112;--color-interactive-danger-hover:255 102 55;--color-interactive-danger-active:255 69 24;--color-interactive-ghost-hover:201 217 240;--color-interactive-ghost-active:201 217 240;--color-interactive-table-hover:224 234 255;--color-border-primary:20 20 20;--color-border-secondary:146 164 195;--color-border-subtle:174 190 217;--color-border-table:20 20 20;--color-border-inverse:248 250 252;--color-border-information:68 76 231;--color-border-success:0 192 95;--color-border-warning:254 195 33;--color-border-danger:255 69 24;--color-border-focus-info:68 76 231;--color-border-focus-danger:240 36 6}[data-theme=dark]{--color-text-black:20 20 20;--color-text-white:248 250 252;--color-text-primary:248 250 252;--color-text-secondary:146 164 195;--color-text-inverse:20 20 20;--color-text-subtle:70 90 120;--color-text-danger:255 102 55;--color-text-information:97 115 243;--color-text-success:0 192 95;--color-text-warning:248 162 8;--color-text-pink:255 97 250;--color-text-brand:128 152 249;--color-surface-background:20 20 20;--color-surface-primary:0 0 0;--color-surface-secondary:15 23 42;--color-surface-subtle:39 56 96;--color-surface-table:30 41 59;--color-surface-success:0 55 29;--color-surface-success-loud:0 192 95;--color-surface-information:26 28 76;--color-surface-information-loud:68 76 231;--color-surface-danger:69 5 5;--color-surface-warning:70 27 2;--color-surface-brand:97 115 243;--color-surface-inverse:248 250 252;--color-surface-black:0 0 0;--color-interactive-surface:68 76 231;--color-interactive-hover:54 59 204;--color-interactive-active:45 51 130;--color-interactive-secondary-surface:102 124 161;--color-interactive-secondary-hover:30 41 59;--color-interactive-secondary-active:39 56 96;--color-interactive-danger-surface:255 155 112;--color-interactive-danger-hover:255 102 55;--color-interactive-danger-active:255 69 24;--color-interactive-ghost-hover:70 90 120;--color-interactive-ghost-active:15 23 42;--color-interactive-table-hover:30 41 59;--color-border-primary:124 143 177;--color-border-secondary:70 90 120;--color-border-subtle:39 56 96;--color-border-table:30 41 59;--color-border-inverse:20 20 20;--color-border-information:97 115 243;--color-border-success:0 150 78;--color-border-warning:182 85 7;--color-border-danger:255 102 55;--color-border-focus-info:68 76 231;--color-border-focus-danger:240 36 6}h1{font-size:1.875rem}h1,h2{font-weight:500}h2{font-size:1.5rem}h3{font-size:1.25rem}h3,h4{font-weight:500}h4{font-size:1.125rem}h5{font-size:1rem}h5,h6{font-weight:500}.body-normal,h6{font-size:.875rem}.body-normal{font-weight:400}.body-medium{font-size:.875rem;font-weight:500}.body-small{font-size:.75rem;font-weight:400}.body-small-medium{font-size:.75rem;font-weight:500}.body-small-mono{font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.75rem;font-weight:400}*,body,html{box-sizing:border-box}body{background-color:rgb(var(--color-surface-background));color:rgb(var(--color-text-primary));font-size:.875rem;font-weight:400;overscroll-behavior:none;position:relative}input[type=search]::-webkit-search-cancel-button{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.surface-background{background-color:rgb(var(--color-surface-background));color:rgb(var(--color-text-primary))}.surface-primary{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.surface-secondary{background-color:rgb(var(--color-surface-secondary));color:rgb(var(--color-text-primary))}.surface-interactive{background-color:rgb(var(--color-interactive-surface));color:rgb(var(--color-text-primary))}.surface-interactive:focus-visible{background-color:rgb(var(--color-interactive-hover))}.surface-interactive:hover{background-color:rgb(var(--color-interactive-hover))}.surface-interactive:active{background-color:rgb(var(--color-interactive-active))}.surface-interactive-secondary{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.surface-interactive-secondary:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.surface-interactive-secondary:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.surface-interactive-secondary:active{background-color:rgb(var(--color-interactive-secondary-active))}.surface-interactive-danger{background-color:rgb(var(--color-interactive-danger-surface));color:rgb(var(--color-text-black))}.surface-interactive-danger:focus-visible{background-color:rgb(var(--color-interactive-danger-hover))}.surface-interactive-danger:hover{background-color:rgb(var(--color-interactive-danger-hover))}.surface-interactive-danger:active{background-color:rgb(var(--color-interactive-danger-active))}.surface-interactive-ghost{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.surface-interactive-ghost:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.surface-interactive-ghost:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.surface-interactive-ghost:active{background-color:rgb(var(--color-interactive-ghost-active))}.surface-inverse{background-color:rgb(var(--color-surface-inverse));color:rgb(var(--color-text-inverse))}.surface-subtle{background-color:rgb(var(--color-surface-subtle));color:rgb(var(--color-text-primary))}.surface-table{background-color:rgb(var(--color-surface-table));color:rgb(var(--color-text-inverse))}.surface-warning{background-color:rgb(var(--color-surface-subtle));color:rgb(var(--color-text-black))}.surface-black{background-color:rgb(var(--color-surface-black));color:rgb(var(--color-text-white))}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.not-sr-only{clip:auto;height:auto;margin:0;overflow:visible;padding:0;position:static;white-space:normal;width:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-bottom-5{bottom:-1.25rem}.-bottom-6{bottom:-1.5rem}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.left-0{left:0}.left-1\/2{left:50%}.left-24{left:6rem}.left-\[60px\]{left:60px}.left-auto{left:auto}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-5{right:1.25rem}.right-8{right:2rem}.right-auto{right:auto}.top-0{top:0}.top-1{top:.25rem}.top-2{top:.5rem}.top-\[40px\]{top:40px}.top-\[50\%\]{top:50%}.top-\[540px\]{top:540px}.z-100{z-index:100}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[55\]{z-index:55}.z-\[99999\]{z-index:99999}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.order-6{order:6}.order-7{order:7}.col-span-2{grid-column:span 2/span 2}.float-right{float:right}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.m-auto{margin:auto}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-\[8px\]{margin-left:8px;margin-right:8px}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-bottom:.25rem;margin-top:.25rem}.my-12{margin-bottom:3rem;margin-top:3rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.my-4{margin-bottom:1rem;margin-top:1rem}.my-7{margin-bottom:1.75rem;margin-top:1.75rem}.my-8{margin-bottom:2rem;margin-top:2rem}.my-\[20vh\]{margin-bottom:20vh;margin-top:20vh}.-mb-2{margin-bottom:-.5rem}.-ml-2{margin-left:-.5rem}.-mr-2{margin-right:-.5rem}.-mt-12{margin-top:-3rem}.-mt-2{margin-top:-.5rem}.-mt-6{margin-top:-1.5rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-7{margin-left:1.75rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-5{margin-right:1.25rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-32{margin-top:8rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.box-border{box-sizing:border-box}.box-content{box-sizing:content-box}.block{display:block}.inline-block{display:inline-block}.\!inline{display:inline!important}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-auto{aspect-ratio:auto}.aspect-square{aspect-ratio:1/1}.h-0{height:0}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[224px\]{height:224px}.h-\[24px\]{height:24px}.h-\[540px\]{height:540px}.h-\[5px\]{height:5px}.h-\[64px\]{height:64px}.h-\[calc\(100\%-2\.5rem\)\]{height:calc(100% - 2.5rem)}.h-\[calc\(100\%-64px\)\]{height:calc(100% - 64px)}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.max-h-10{max-height:2.5rem}.max-h-20{max-height:5rem}.max-h-32{max-height:8rem}.max-h-40{max-height:10rem}.max-h-52{max-height:13rem}.max-h-96{max-height:24rem}.max-h-\[320px\]{max-height:320px}.max-h-fit{max-height:-moz-fit-content;max-height:fit-content}.min-h-\[1\.25rem\]{min-height:1.25rem}.min-h-\[154px\]{min-height:154px}.min-h-\[2\.5rem\]{min-height:2.5rem}.min-h-\[24px\]{min-height:24px}.min-h-\[600px\]{min-height:600px}.min-h-fit{min-height:-moz-fit-content;min-height:fit-content}.min-h-screen{min-height:100vh}.w-0{width:0}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-1\/12{width:8.333333%}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\/12{width:16.666667%}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3\/12{width:25%}.w-32{width:8rem}.w-4{width:1rem}.w-4\/12{width:33.333333%}.w-40{width:10rem}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-6\/12{width:50%}.w-60{width:15rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-9\/12{width:75%}.w-96{width:24rem}.w-\[10rem\]{width:10rem}.w-\[1px\]{width:1px}.w-\[240px\]{width:240px}.w-\[24px\]{width:24px}.w-\[25rem\]{width:25rem}.w-\[265px\]{width:265px}.w-\[27rem\]{width:27rem}.w-\[32px\]{width:32px}.w-\[35vw\]{width:35vw}.w-\[500px\]{width:500px}.w-\[calc\(100\%-6rem\)\]{width:calc(100% - 6rem)}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-screen{width:100vw}.min-w-0{min-width:0}.min-w-\[280px\]{min-width:280px}.min-w-\[32px\]{min-width:32px}.min-w-\[600px\]{min-width:600px}.min-w-\[80px\]{min-width:80px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.min-w-full{min-width:100%}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-16{max-width:4rem}.max-w-60{max-width:15rem}.max-w-80{max-width:20rem}.max-w-\[3rem\]{max-width:3rem}.max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.max-w-lg{max-width:32rem}.max-w-xs{max-width:20rem}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-1\/3{flex-basis:33.333333%}.table-fixed{table-layout:fixed}.border-separate{border-collapse:separate}.border-spacing-0{--tw-border-spacing-x:0px;--tw-border-spacing-y:0px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.origin-bottom-left{transform-origin:bottom left}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-x-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x:-100%}.-translate-y-1\/2{--tw-translate-y:-50%}.-translate-y-1\/2,.-translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y:-100%}.translate-x-0{--tw-translate-x:0px}.translate-x-0,.translate-x-12{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-12{--tw-translate-x:3rem}.translate-x-\[10px\]{--tw-translate-x:10px}.translate-x-\[10px\],.translate-y-\[-10px\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-10px\]{--tw-translate-y:-10px}.translate-y-\[-50\%\]{--tw-translate-y:-50%}.transform,.translate-y-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.list-inside{list-style-position:inside}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-flow-row{grid-auto-flow:row}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[2rem\]{grid-template-columns:2rem}.grid-rows-\[fit-content\(1\.5rem\)_minmax\(3rem\,4rem\)_1fr_8rem\]{grid-template-rows:fit-content(1.5rem) minmax(3rem,4rem) 1fr 8rem}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.content-between{align-content:space-between}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-\[1px\]{gap:1px}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-4{row-gap:1rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.\!overflow-visible{overflow:visible!important}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-x-scroll{overflow-x:scroll}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;white-space:nowrap}.text-ellipsis,.truncate{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.whitespace-break-spaces{white-space:break-spaces}.text-wrap{text-wrap:wrap}.text-nowrap{text-wrap:nowrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\[50\%\]{border-radius:50%}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-b-md{border-bottom-left-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-l-none{border-bottom-left-radius:0;border-top-left-radius:0}.rounded-r{border-bottom-right-radius:.25rem;border-top-right-radius:.25rem}.rounded-r-none{border-bottom-right-radius:0;border-top-right-radius:0}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.rounded-bl-lg{border-bottom-left-radius:.5rem}.rounded-bl-none{border-bottom-left-radius:0}.rounded-br{border-bottom-right-radius:.25rem}.rounded-br-lg{border-bottom-right-radius:.5rem}.rounded-br-none{border-bottom-right-radius:0}.rounded-tl-lg{border-top-left-radius:.5rem}.rounded-tl-none{border-top-left-radius:0}.rounded-tr{border-top-right-radius:.25rem}.rounded-tr-lg{border-top-right-radius:.5rem}.rounded-tr-none{border-top-right-radius:0}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-y{border-bottom-width:1px;border-top-width:1px}.\!border-l-0{border-left-width:0!important}.\!border-r-0{border-right-width:0!important}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0}.border-b-2{border-bottom-width:2px}.border-b-4{border-bottom-width:4px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-r-4{border-right-width:4px}.border-t{border-top-width:1px}.border-t-4{border-top-width:4px}.border-solid{border-style:solid}.border-\[transparent\]{border-color:transparent}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity))}.border-danger{border-color:rgb(var(--color-border-danger))}.border-green-200{--tw-border-opacity:1;border-color:rgb(174 255 216/var(--tw-border-opacity))}.border-information{border-color:rgb(var(--color-border-information))}.border-orange-500{--tw-border-opacity:1;border-color:rgb(249 115 22/var(--tw-border-opacity))}.border-primary{border-color:rgb(var(--color-border-primary))}.border-secondary{border-color:rgb(var(--color-border-secondary))}.border-slate-100{--tw-border-opacity:1;border-color:rgb(201 217 240/var(--tw-border-opacity))}.border-slate-200{--tw-border-opacity:1;border-color:rgb(174 190 217/var(--tw-border-opacity))}.border-slate-700{--tw-border-opacity:1;border-color:rgb(70 90 120/var(--tw-border-opacity))}.border-subtle{border-color:rgb(var(--color-border-subtle))}.border-success{border-color:rgb(var(--color-border-success))}.border-table{border-color:rgb(var(--color-border-table))}.border-transparent{border-color:transparent}.border-warning{border-color:rgb(var(--color-border-warning))}.border-white\/10{border-color:#ffffff1a}.border-b-transparent{border-bottom-color:transparent}.border-l-primary{border-left-color:rgb(var(--color-border-primary))}.border-l-transparent{border-left-color:transparent}.border-r-primary{border-right-color:rgb(var(--color-border-primary))}.border-r-transparent{border-right-color:transparent}.bg-\[\#DDD6FE\]{--tw-bg-opacity:1;background-color:rgb(221 214 254/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity:1;background-color:rgb(191 215 254/var(--tw-bg-opacity))}.bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 187 253/var(--tw-bg-opacity))}.bg-current{background-color:currentColor}.bg-danger{background-color:rgb(var(--color-surface-danger))}.bg-green-200{--tw-bg-opacity:1;background-color:rgb(174 255 216/var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(224 234 255/var(--tw-bg-opacity))}.bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(198 216 255/var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(68 76 231/var(--tw-bg-opacity))}.bg-information{background-color:rgb(var(--color-surface-information))}.bg-interactive{background-color:rgb(var(--color-interactive-surface))}.bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.bg-interactive-error{background-color:rgb(var(--color-interactive-danger-surface))}.bg-interactive-secondary-active{background-color:rgb(var(--color-interactive-secondary-active))}.bg-interactive-table-hover{background-color:rgb(var(--color-interactive-table-hover))}.bg-interactive\/50{background-color:rgb(var(--color-interactive-surface)/.5)}.bg-inverse{background-color:rgb(var(--color-surface-inverse))}.bg-off-black{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity:1;background-color:rgb(255 230 213/var(--tw-bg-opacity))}.bg-orange-200{--tw-bg-opacity:1;background-color:rgb(254 204 170/var(--tw-bg-opacity))}.bg-pink-200{--tw-bg-opacity:1;background-color:rgb(254 199 255/var(--tw-bg-opacity))}.bg-pink-50{--tw-bg-opacity:1;background-color:rgb(255 242 255/var(--tw-bg-opacity))}.bg-primary{background-color:rgb(var(--color-surface-primary))}.bg-purple-100{--tw-bg-opacity:1;background-color:rgb(239 233 254/var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity:1;background-color:rgb(226 214 254/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(255 228 212/var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity:1;background-color:rgb(255 196 168/var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity:1;background-color:rgb(255 102 55/var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(201 217 240/var(--tw-bg-opacity))}.bg-slate-100\/50{background-color:#c9d9f080}.bg-slate-200{--tw-bg-opacity:1;background-color:rgb(174 190 217/var(--tw-bg-opacity))}.bg-slate-800{--tw-bg-opacity:1;background-color:rgb(39 56 96/var(--tw-bg-opacity))}.bg-space-black{--tw-bg-opacity:1;background-color:rgb(20 20 20/var(--tw-bg-opacity))}.bg-subtle{background-color:rgb(var(--color-surface-subtle))}.bg-success{background-color:rgb(var(--color-surface-success))}.bg-transparent{background-color:transparent}.bg-warning{background-color:rgb(var(--color-surface-warning))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-white\/5{background-color:#ffffff0d}.bg-yellow-200{--tw-bg-opacity:1;background-color:rgb(254 233 137/var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-100{--tw-gradient-from:#dbe8fe var(--tw-gradient-from-position);--tw-gradient-to:rgba(219,232,254,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-blue-200{--tw-gradient-from:#bfd7fe var(--tw-gradient-from-position);--tw-gradient-to:rgba(191,215,254,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from:#444ce7 var(--tw-gradient-from-position);--tw-gradient-to:rgba(68,76,231,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-pink-100{--tw-gradient-from:#fee4ff var(--tw-gradient-from-position);--tw-gradient-to:rgba(254,228,255,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-red-100{--tw-gradient-from:#ffe4d4 var(--tw-gradient-from-position);--tw-gradient-to:rgba(255,228,212,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-100{--tw-gradient-from:#c9d9f0 var(--tw-gradient-from-position);--tw-gradient-to:rgba(201,217,240,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-yellow-100{--tw-gradient-from:#fff4c6 var(--tw-gradient-from-position);--tw-gradient-to:rgba(255,244,198,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-slate-200{--tw-gradient-to:rgba(174,190,217,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#aebed9 var(--tw-gradient-via-position),var(--tw-gradient-to)}.to-indigo-900{--tw-gradient-to:#2d3382 var(--tw-gradient-to-position)}.to-indigo-950{--tw-gradient-to:#1a1c4c var(--tw-gradient-to-position)}.to-pink-200{--tw-gradient-to:#fec7ff var(--tw-gradient-to-position)}.to-purple-100{--tw-gradient-to:#efe9fe var(--tw-gradient-to-position)}.to-red-200{--tw-gradient-to:#ffc4a8 var(--tw-gradient-to-position)}.to-slate-300{--tw-gradient-to:#92a4c3 var(--tw-gradient-to-position)}.to-yellow-200{--tw-gradient-to:#fee989 var(--tw-gradient-to-position)}.bg-fixed{background-attachment:fixed}.bg-clip-padding{background-clip:padding-box}.fill-current{fill:currentColor}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-px{padding:1px}.px-0{padding-left:0;padding-right:0}.px-0\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-bottom:0;padding-top:0}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-8{padding-bottom:2rem;padding-top:2rem}.\!pt-0{padding-top:0!important}.pb-0{padding-bottom:0}.pb-16{padding-bottom:4rem}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-24{padding-bottom:6rem}.pb-4{padding-bottom:1rem}.pl-0{padding-left:0}.pl-1{padding-left:.25rem}.pl-1\.5{padding-left:.375rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-5{padding-left:1.25rem}.pr-0{padding-right:0}.pr-0\.5{padding-right:.125rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pt-1{padding-top:.25rem}.pt-10{padding-top:2.5rem}.pt-2{padding-top:.5rem}.pt-24{padding-top:6rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.font-mono{font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-8xl{font-size:6rem;line-height:1}.text-\[0\.6rem\]{font-size:.6rem}.text-\[12px\]{font-size:12px}.text-\[12rem\]{font-size:12rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-10{line-height:2.5rem}.leading-3{line-height:.75rem}.leading-4{line-height:1rem}.leading-8{line-height:2rem}.leading-\[18px\]{line-height:18px}.\!text-space-black{--tw-text-opacity:1!important;color:rgb(20 20 20/var(--tw-text-opacity))!important}.text{color:rgb(var(--color-text-primary))}.text-\[\#C9D9F0\]{--tw-text-opacity:1;color:rgb(201 217 240/var(--tw-text-opacity))}.text-\[\#e9d5ff\]{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 100 216/var(--tw-text-opacity))}.text-danger{color:rgb(var(--color-text-danger))}.text-green-700{--tw-text-opacity:1;color:rgb(0 150 78/var(--tw-text-opacity))}.text-information{color:rgb(var(--color-text-information))}.text-inverse{color:rgb(var(--color-text-inverse))}.text-off-white{--tw-text-opacity:1;color:rgb(248 250 252/var(--tw-text-opacity))}.text-pink-700{--tw-text-opacity:1;color:rgb(211 0 216/var(--tw-text-opacity))}.text-primary{color:rgb(var(--color-text-primary))}.text-purple-200{--tw-text-opacity:1;color:rgb(226 214 254/var(--tw-text-opacity))}.text-red-400{--tw-text-opacity:1;color:rgb(255 102 55/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(199 22 7/var(--tw-text-opacity))}.text-secondary{color:rgb(var(--color-text-secondary))}.text-slate-100{--tw-text-opacity:1;color:rgb(201 217 240/var(--tw-text-opacity))}.text-slate-300{--tw-text-opacity:1;color:rgb(146 164 195/var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity:1;color:rgb(102 124 161/var(--tw-text-opacity))}.text-slate-700{--tw-text-opacity:1;color:rgb(70 90 120/var(--tw-text-opacity))}.text-subtle{color:rgb(var(--color-text-subtle))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity:1;color:rgb(182 85 7/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-65{opacity:.65}.opacity-90{opacity:.9}.opacity-\[\.35\]{opacity:.35}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-\[inset_0_0_0_2px\]{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[inset_0_0_0_2px\]{--tw-shadow:inset 0 0 0 2px;--tw-shadow-colored:inset 0 0 0 2px var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-white{--tw-shadow-color:#fff;--tw-shadow:var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-2{outline-width:2px}.ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.brightness-50{--tw-brightness:brightness(.5)}.brightness-50,.invert{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert:invert(100%)}.\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-\[opacity\,transform\]{transition-duration:.15s;transition-property:opacity,transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-shadow{transition-duration:.15s;transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-width{transition-duration:.15s;transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:surface-interactive-secondary:hover{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.hover\:surface-interactive-secondary:hover:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:surface-interactive-secondary:hover:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:surface-interactive-secondary:hover:active{background-color:rgb(var(--color-interactive-secondary-active))}.hover\:surface-interactive-ghost:hover{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.hover\:surface-interactive-ghost:hover:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.hover\:surface-interactive-ghost:hover:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.hover\:surface-interactive-ghost:hover:active{background-color:rgb(var(--color-interactive-ghost-active))}.focus-visible\:surface-interactive-secondary:focus-visible{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.focus-visible\:surface-interactive-secondary:focus-visible:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:surface-interactive-secondary:focus-visible:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:surface-interactive-secondary:focus-visible:active{background-color:rgb(var(--color-interactive-secondary-active))}.focus-visible\:surface-interactive-ghost:focus-visible{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.focus-visible\:surface-interactive-ghost:focus-visible:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.focus-visible\:surface-interactive-ghost:focus-visible:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.focus-visible\:surface-interactive-ghost:focus-visible:active{background-color:rgb(var(--color-interactive-ghost-active))}.dark\:focus-within\:surface-primary:focus-within:where([data-theme=dark],[data-theme=dark] *){background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.placeholder\:text-secondary::-moz-placeholder{color:rgb(var(--color-text-secondary))}.placeholder\:text-secondary::placeholder{color:rgb(var(--color-text-secondary))}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:left-\[calc\(100\%_\+_1\.5rem\)\]:after{content:var(--tw-content);left:calc(100% + 1.5rem)}.after\:top-0:after{content:var(--tw-content);top:0}.after\:hidden:after{content:var(--tw-content);display:none}.after\:h-8:after{content:var(--tw-content);height:2rem}.after\:items-center:after{align-items:center;content:var(--tw-content)}.after\:rounded-md:after{border-radius:.375rem;content:var(--tw-content)}.after\:bg-slate-800:after{--tw-bg-opacity:1;background-color:rgb(39 56 96/var(--tw-bg-opacity));content:var(--tw-content)}.after\:p-1:after{content:var(--tw-content);padding:.25rem}.after\:px-2:after{content:var(--tw-content);padding-left:.5rem;padding-right:.5rem}.after\:text-xs:after{content:var(--tw-content);font-size:.75rem;line-height:1rem}.after\:text-white:after{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity));content:var(--tw-content)}.after\:content-\[attr\(data-tooltip\)\]:after{--tw-content:attr(data-tooltip);content:var(--tw-content)}.first\:pt-0:first-child{padding-top:0}.last\:border-b-0:last-child{border-bottom-width:0}.first-of-type\:rounded-bl-lg:first-of-type{border-bottom-left-radius:.5rem}.first-of-type\:rounded-tl:first-of-type{border-top-left-radius:.25rem}.first-of-type\:rounded-tl-lg:first-of-type{border-top-left-radius:.5rem}.first-of-type\:rounded-tr-lg:first-of-type{border-top-right-radius:.5rem}.last-of-type\:rounded-bl-lg:last-of-type{border-bottom-left-radius:.5rem}.last-of-type\:rounded-br-lg:last-of-type{border-bottom-right-radius:.5rem}.last-of-type\:border-0:last-of-type{border-width:0}.last-of-type\:border-b-0:last-of-type{border-bottom-width:0}.focus-within\:border-danger:focus-within{border-color:rgb(var(--color-border-danger))}.focus-within\:border-information:focus-within{border-color:rgb(var(--color-border-information))}.focus-within\:border-interactive:focus-within{border-color:rgb(var(--color-interactive-surface))}.focus-within\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}.focus-within\:ring-4:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-within\:ring-primary\/70:focus-within{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.hover\:scale-125:hover{--tw-scale-x:1.25;--tw-scale-y:1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:border-danger:hover{border-color:rgb(var(--color-border-danger))}.hover\:border-information:hover{border-color:rgb(var(--color-border-information))}.hover\:bg-interactive-hover:hover{background-color:rgb(var(--color-interactive-hover))}.hover\:bg-interactive-secondary-hover:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:bg-interactive-table-hover:hover{background-color:rgb(var(--color-interactive-table-hover))}.hover\:bg-slate-800:hover{--tw-bg-opacity:1;background-color:rgb(39 56 96/var(--tw-bg-opacity))}.hover\:bg-white:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:text-black:hover{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity:1;color:rgb(29 100 216/var(--tw-text-opacity))}.hover\:text-brand:hover{color:rgb(var(--color-text-brand))}.hover\:text-primary:hover{color:rgb(var(--color-text-primary))}.hover\:underline:hover{text-decoration-line:underline}.focus\:translate-y-0:focus{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\:rounded-sm:focus-visible{border-radius:.125rem}.focus-visible\:border-danger:focus-visible{border-color:rgb(var(--color-border-danger))}.focus-visible\:border-indigo-600:focus-visible{--tw-border-opacity:1;border-color:rgb(68 76 231/var(--tw-border-opacity))}.focus-visible\:border-information:focus-visible{border-color:rgb(var(--color-border-information))}.focus-visible\:border-inverse:focus-visible{border-color:rgb(var(--color-border-inverse))}.focus-visible\:border-table:focus-visible{border-color:rgb(var(--color-border-table))}.focus-visible\:border-transparent:focus-visible{border-color:transparent}.focus-visible\:bg-interactive-secondary-hover:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:text-brand:focus-visible{color:rgb(var(--color-text-brand))}.focus-visible\:shadow-\[0_0_0_4px_rgb\(249\,115\,22\,0\.7\)\]:focus-visible{--tw-shadow:0 0 0 4px rgb(249,115,22,.7);--tw-shadow-colored:0 0 0 4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus-visible\:shadow-\[0_0_0_4px_rgb\(97\,115\,243\,0\.7\)\]:focus-visible{--tw-shadow:0 0 0 4px rgb(97,115,243,.7);--tw-shadow-colored:0 0 0 4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:ring-4:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-danger\/70:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-danger)/.7)}.focus-visible\:ring-primary\/70:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.enabled\:hover\:border-information:hover:enabled{border-color:rgb(var(--color-border-information))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:focus-within .group-focus-within\:visible{visibility:visible}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:inline-block{display:inline-block}.group:hover .group-hover\:border-information{border-color:rgb(var(--color-border-information))}.group:hover .group-hover\:border-transparent{border-color:transparent}.group:hover .group-hover\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.group:hover .group-hover\:bg-interactive-secondary-hover{background-color:rgb(var(--color-interactive-secondary-hover))}.group:hover .group-hover\:opacity-100{opacity:1}.group:hover .group-hover\:opacity-90{opacity:.9}.group:hover .group-hover\:ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.group:hover .group-hover\:ring-primary\/70{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.group:focus .group-focus\:opacity-100{opacity:1}.group.surface-primary .group-\[\.surface-primary\]\:hover\:bg-black:hover{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.peer:checked~.peer-checked\:justify-end{justify-content:flex-end}.peer:checked~.peer-checked\:border-danger{border-color:rgb(var(--color-border-danger))}.peer:checked~.peer-checked\:border-interactive{border-color:rgb(var(--color-interactive-surface))}.peer:checked~.peer-checked\:bg-interactive{background-color:rgb(var(--color-interactive-surface))}.peer:checked~.peer-checked\:text-off-white{--tw-text-opacity:1;color:rgb(248 250 252/var(--tw-text-opacity))}.group:hover .peer:checked~.group-hover\:peer-checked\:border-transparent{border-color:transparent}.group:hover .peer:checked~.group-hover\:peer-checked\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.group:hover .peer:checked~.group-hover\:peer-checked\:bg-interactive-hover{background-color:rgb(var(--color-interactive-hover))}.peer:indeterminate~.peer-indeterminate\:border-interactive{border-color:rgb(var(--color-interactive-surface))}.peer:indeterminate~.peer-indeterminate\:bg-interactive{background-color:rgb(var(--color-interactive-surface))}.group:hover .peer:indeterminate~.group-hover\:peer-indeterminate\:border-transparent{border-color:transparent}.group:hover .peer:indeterminate~.group-hover\:peer-indeterminate\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.peer:focus-visible~.peer-focus-visible\:border-inverse{border-color:rgb(var(--color-border-inverse))}.peer:focus-visible~.peer-focus-visible\:border-transparent{border-color:transparent}.peer:focus-visible~.peer-focus-visible\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.peer:focus-visible~.peer-focus-visible\:bg-interactive-secondary-hover{background-color:rgb(var(--color-interactive-secondary-hover))}.peer:focus-visible~.peer-focus-visible\:ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.peer:focus-visible~.peer-focus-visible\:ring-primary\/70{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.peer:focus-visible:checked~.peer-focus-visible\:peer-checked\:bg-interactive-hover{background-color:rgb(var(--color-interactive-hover))}.data-\[nav\=open\]\:w-\[180px\][data-nav=open]{width:180px}.data-\[nav\=open\]\:grid-cols-\[100\%\][data-nav=open]{grid-template-columns:100%}.group[data-nav=open] .group-data-\[nav\=open\]\:visible{visibility:visible}.group[data-nav=closed] .group-data-\[nav\=closed\]\:hidden,.group[data-nav=open] .group-data-\[nav\=open\]\:hidden{display:none}.group[data-nav=open] .group-data-\[nav\=open\]\:rotate-180{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group[data-nav=open] .group-data-\[nav\=open\]\:justify-start{justify-content:flex-start}.group[data-nav=closed] .group-data-\[nav\=closed\]\:justify-center{justify-content:center}.group[data-nav=closed] .group-data-\[nav\=closed\]\:p-1{padding:.25rem}.group[data-nav=open] .group-data-\[nav\=open\]\:px-2\.5{padding-left:.625rem;padding-right:.625rem}.group[data-nav=open] .group-data-\[nav\=open\]\:py-2{padding-bottom:.5rem;padding-top:.5rem}.group[data-nav=open] .group-data-\[nav\=open\]\:opacity-100{opacity:1}.group[data-nav=closed] .group-data-\[nav\=closed\]\:hover\:after\:flex:hover:after{content:var(--tw-content);display:flex}@media not all and (min-width:1280px){.max-xl\:hidden{display:none}}@media not all and (min-width:1024px){.max-lg\:hidden{display:none}}@media not all and (min-width:768px){.max-md\:hidden{display:none}}@media not all and (min-width:640px){.max-sm\:flex{display:flex}.max-sm\:hidden{display:none}.max-sm\:flex-col{flex-direction:column}}@media (min-width:640px){.sm\:block{display:block}.sm\:grid{display:grid}.sm\:hidden{display:none}.sm\:w-\[20rem\]{width:20rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}}@media (min-width:768px){.md\:visible{visibility:visible}.md\:order-2{order:2}.md\:order-3{order:3}.md\:order-4{order:4}.md\:order-5{order:5}.md\:order-6{order:6}.md\:order-8{order:8}.md\:mt-6{margin-top:1.5rem}.md\:block{display:block}.md\:flex{display:flex}.md\:table-cell{display:table-cell}.md\:table-row{display:table-row}.md\:hidden{display:none}.md\:h-auto{height:auto}.md\:w-1\/2{width:50%}.md\:w-2\/3{width:66.666667%}.md\:w-32{width:8rem}.md\:w-80{width:20rem}.md\:w-\[26rem\]{width:26rem}.md\:w-auto{width:auto}.md\:max-w-full{max-width:100%}.md\:max-w-lg{max-width:32rem}.md\:table-fixed{table-layout:fixed}.md\:columns-2{-moz-columns:2;column-count:2}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-end{align-items:flex-end}.md\:items-center{align-items:center}.md\:gap-2{gap:.5rem}.md\:gap-4{gap:1rem}.md\:gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.md\:whitespace-normal{white-space:normal}.md\:rounded-full{border-radius:9999px}.md\:p-12{padding:3rem}.md\:p-8{padding:2rem}.md\:px-2{padding-left:.5rem;padding-right:.5rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:pb-0{padding-bottom:0}.md\:pr-24{padding-right:6rem}.md\:pt-20{padding-top:5rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:1024px){.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:w-1\/2{width:50%}.lg\:w-1\/3{width:33.333333%}.lg\:w-2\/3{width:66.666667%}.lg\:w-3\/4{width:75%}.lg\:w-3\/5{width:60%}.lg\:w-56{width:14rem}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:items-end{align-items:flex-end}.lg\:justify-start{justify-content:flex-start}.lg\:border-r-2{border-right-width:2px}.lg\:pr-2{padding-right:.5rem}}@media (min-width:1280px){.xl\:order-2{order:2}.xl\:order-3{order:3}.xl\:order-4{order:4}.xl\:order-5{order:5}.xl\:order-6{order:6}.xl\:order-7{order:7}.xl\:flex{display:flex}.xl\:table-cell{display:table-cell}.xl\:hidden{display:none}.xl\:w-1\/2{width:50%}.xl\:w-1\/3{width:33.333333%}.xl\:w-10{width:2.5rem}.xl\:w-2\/3{width:66.666667%}.xl\:w-80{width:20rem}.xl\:w-auto{width:auto}.xl\:min-w-\[520px\]{min-width:520px}.xl\:max-w-2xl{max-width:42rem}.xl\:columns-3{-moz-columns:3;column-count:3}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:flex-row{flex-direction:row}.xl\:flex-nowrap{flex-wrap:nowrap}.xl\:items-center{align-items:center}.xl\:gap-4{gap:1rem}.xl\:gap-x-16{-moz-column-gap:4rem;column-gap:4rem}.xl\:border-b-0{border-bottom-width:0}.xl\:border-r-2{border-right-width:2px}.xl\:px-4{padding-left:1rem;padding-right:1rem}.xl\:py-3{padding-bottom:.75rem;padding-top:.75rem}.xl\:pr-48{padding-right:12rem}.xl\:text-left{text-align:left}}@media (min-width:1536px){.\32xl\:w-1\/2{width:50%}}.dark\:border-slate-500:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(102 124 161/var(--tw-border-opacity))}.dark\:bg-pink-500:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 38 255/var(--tw-bg-opacity))}.dark\:bg-red-900:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(127 20 15/var(--tw-bg-opacity))}.dark\:bg-slate-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(87 110 143/var(--tw-bg-opacity))}.dark\:bg-yellow-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(220 122 3/var(--tw-bg-opacity))}.dark\:bg-gradient-to-r:where([data-theme=dark],[data-theme=dark] *){background-image:linear-gradient(to right,var(--tw-gradient-stops))}.dark\:from-slate-600:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-from:#576e8f var(--tw-gradient-from-position);--tw-gradient-to:rgba(87,110,143,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark\:via-slate-700:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-to:rgba(70,90,120,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#465a78 var(--tw-gradient-via-position),var(--tw-gradient-to)}.dark\:to-slate-800:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-to:#273860 var(--tw-gradient-to-position)}.dark\:text-slate-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(124 143 177/var(--tw-text-opacity))}.dark\:invert:where([data-theme=dark],[data-theme=dark] *){--tw-invert:invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus-visible\:dark\:ring-success:where([data-theme=dark],[data-theme=dark] *):focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.group.surface-primary .group-\[\.surface-primary\]\:dark\:hover\:bg-white:hover:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:dark\:hover\:text-black:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.focus-visible\:\[\&_\[role\=button\]\]\:outline-none [role=button]:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:\[\&_\[role\=button\]\]\:ring-4 [role=button]:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:\[\&_\[role\=button\]\]\:ring-primary\/70 [role=button]:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.focus-visible\:\[\&_\[role\=button\]\]\:ring-success [role=button]:focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.focus-visible\:\[\&_a\]\:outline-none a:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:\[\&_a\]\:ring-4 a:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:\[\&_a\]\:ring-primary\/70 a:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.focus-visible\:\[\&_a\]\:ring-success a:focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.button-group>.\[\.button-group\>\&\:first-of-type\]\:rounded-l-lg:first-of-type{border-bottom-left-radius:.5rem;border-top-left-radius:.5rem}.button-group>.\[\.button-group\>\&\:last-of-type\]\:rounded-r-lg:last-of-type{border-bottom-right-radius:.5rem;border-top-right-radius:.5rem}.button-group>.\[\.button-group\>\&\]\:rounded-none,.input-group>.\[\.input-group\>\&\]\:rounded-none{border-radius:0}.input-group>.first\:\[\.input-group\>\&\]\:rounded-l:first-child{border-bottom-left-radius:.25rem;border-top-left-radius:.25rem}.input-group>.last\:\[\.input-group\>\&\]\:rounded-r:last-child{border-bottom-right-radius:.25rem;border-top-right-radius:.25rem} diff --git a/ui/assets/local/_app/immutable/assets/app.b1g12PEZ.css b/ui/assets/local/_app/immutable/assets/app.b1g12PEZ.css new file mode 100644 index 0000000000..f925925b40 --- /dev/null +++ b/ui/assets/local/_app/immutable/assets/app.b1g12PEZ.css @@ -0,0 +1 @@ +@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-cyrillic-ext-wght-normal.gWHutNtk.woff2) format("woff2-variations");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-cyrillic-wght-normal.x3mpJyrC.woff2) format("woff2-variations");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-greek-ext-wght-normal.L6TiHhs2.woff2) format("woff2-variations");unicode-range:u+1f??}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-greek-wght-normal.ERnVB3ZO.woff2) format("woff2-variations");unicode-range:u+0370-03ff}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-vietnamese-wght-normal.mV7lv8Vd.woff2) format("woff2-variations");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-latin-ext-wght-normal.Fo7f5M47.woff2) format("woff2-variations");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-latin-wght-normal.8DMS9JnF.woff2) format("woff2-variations");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-cyrillic-ext-400-normal.ShfNumKh.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-cyrillic-ext-400-normal.RbG1ppRG.woff) format("woff");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-cyrillic-400-normal.d1_UN25R.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-cyrillic-400-normal.EUkKa32Q.woff) format("woff");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-greek-ext-400-normal.FxyJYyRe.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-greek-ext-400-normal.RCqqxuzj.woff) format("woff");unicode-range:u+1f??}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-greek-400-normal.Zlk2uUaP.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-greek-400-normal.Oqg5aDJo.woff) format("woff");unicode-range:u+0370-03ff}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA8oABAAAAAAKLQAAA7GAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoECG4dgHIJCBmA/U1RBVEQAgUQRCAqqWKVCC4IeAAE2AiQDhCQEIAWEbgeJfgwHG+YjMwMmhc0Asv9DgjZGCPo7sZqDDyNEwgSIZmOzKywiQRkl4IEy+NiZYm7SjagwyrvTXGEHf1kd/9erNO8vsK+if3TtfbFl8PT599/vqurbB8/qB4+FDGKSQPFEwkcmJ8HMuj/gtv4NMNhAmzKiwEQs6nAKFijGjMKOi/7468q+quIqG3io3+939iLeNRH6m45qIqllCJlSmI53Ep1I/hWb7m9BwyuXnvCEeKgPr+v0+3NUig+MvlsS4odG5DaFzZWFAn4TGdVLen+Di1HFHAFhUzQgdrH+pxHgP61VnuzfVW+5jsDtHAdQuA6Si9ARpram5s9WauqAe/tYESmgvj7oDpJQJ2PjANgCKkBhAFjpMzpSRmgVeHJfat/4utalEWoQ2hKM6JTgNUnWx2evv/YVQKhlAIBiAMKDIaAP6GF8rXW6pWOHhZPOE092dsnlHHcstPKUM85FViqvTFaKRkcx1MwJJ0ymt+2bYwSk+pmFMjYJzwTO9q+pBjj797Jq4JwELXXA4QBZAwVCz28pME4Pxx3ADCgJPlEwLzkj5hUSKUds4KEQ49DE+ujSon6xbaViAn1YxI0uu+/Wml5qWEV8mYfYc0u4MMmwDh1U71Q29wRZ7iLFIYl/Em7gE3dAxKQ8K1sglSPQbClKVUAyEpKAIsuhdq2/njrHpnMgG2/jk5kzJSKdRn53yld6Ty/d4zTnb5yzc3cpX7d0kU7TMXcg7hRSkmkr2cW17GuJ+bOlJqtxJQlq7bNJZcWsFtYs0N7rnNPJOiUrQpuQZ69SBbPoiSMxJsslMbQWJHr4kMQgv/PUmWfDe2R19+YLxG8OCZ3vceKobxdh58+IeOz7JeZZva7iXbK61HcXizd0e8/PIP7erc4/Ju7fDFB2gwq86a3pN4/ay97HjIAuJwsiQ3t1cjeAGcshvrVHnfBK1IgaFD7kKNHwHIUUlKMJmc4MmnbD5hOk6fwEfxq2oJRDVyYpO/ZC1kCohax1HIQMbAuZ7fW1DSAQwS1797xzA2zX5VifTODFO2iaaPGtuY0mqlxadPOzzHknXftpr4/BII8BYn0/fXg/M2i05BF0zcjj0/SezjyUcjKuyUAvyhKA6fY7ljVCIxHQrkziMk7VBZg5kPcXkxflEjgA4Wp7vp/gnuM05LJxDdqrDgSOEDEFpRS00LPNlS0IAod3WioREqIwZa1GARvqvm2lcQ362K7VpYzYYc4j36b/ynmQJwRZisZnNLIwHjWJOUusOT7nQ/2n+h9hdQ1IuR+SFI73VMqCeNiEdT5mwoLzsf7zE5P8kn1U6zR5n36z/qT+EPDttPkStn7b8MfZB0F/nL53mZBQSg7T6OEnHXtN0qAAwBWADAJDoDXYK/wX2MlArc2EzC3mmOvPtuzYahpJJQn9m9KUq4IsqifE4P7jA8wpNJq1OYNKd6SzTVGalTnTcal5IAqG2ptRrM1pHCtzC6aFSykM9DRPMy/IAjOiU4rpRjSMwPJRdf+8eZzB0VGbbJUKy/p2BjTgfgFDVEZKhA6ZlCwo0l7tpkaOX7uGXbwyFI5dnqHs81Ygx6+iF+Yz4FjfRJcihpGeJ5zBLl66poO3Szc1lpOLZZOql+3r7oKBYEMHD7IhS6szR6XKHYhU7tbcBhRVoitOn5htI5lHLu+BY2fmjZJLAdqVrh9jixjYcTl33tWzed9XJoaoyEqETsqCAu0uZMJurG8nHNtRa37aB2Onehqf85SyL8+RLO02BjJnK9a3e72TqgDLGbrigI0snm+Xi+VtuHy5WrsKmbBavYy6ByYQOhAjhw/bYTB4/rw3SvbnZRv9WELr06umlNe07cm9bKx/eBhBZGBwz4mEvlnr4qurf7949f0PHbzgA+iyi74rznuj1dqrrj23Um71lBO24HL1+S4nRtavf9adnsxcbfdChGrRX67fCtaF+MrkLt+PTJjHUdkOzYVjG85HXphLIk7ZjwN58BbEHAq270YmbEO1S2yQgeVv98HH9nCd0bfPfNQaFzVaedUVmPs4KJft2sdBsKG1K9kpAyOr178JS/fscEe5JQwKKn69CnQjuopQXikPbJ6dJp6fzptn8Fu0Kils1azoeQbfmw7yR2w5ELolCtmdCEXEH9kcqBP8R+N+XiroEcyw0Yz7B19qEsGNLbSfml7HXdqQl+O9tcJiixymZGQ4TIstLOTGy/lioeN49XTJQA5fKnQar1Y7jZcIwYeaXhrv36Y4rT4eyco6Gx510FbJO6Y+K/NrKxMCwrizuWRZ5fLKQv4PZ4Asn96vNfkH1Sw1TnpI40ubFKbIoyPwGs8UpInEkEq4sX4ptm6OSel5drFlNerCCil1DCVX+JEpDUh2DkgMCyZIH1B1oEvgIMyhKrvjErtysuN6GhNxcWlseIPcZwoiCk7LdI30z2IuVlzKtZTgjk6Ji/2S0hWoEBT8fWYT19EE1DObzPjPOzhyJ5dUDifVxUkO/lRujkuiyL1Ski/orOWLxfX8+C5C7F4RL8x24Um5SSEueXHxLmphMDcVryHiXPOEIUChEuqCgjK1Kp6bkBCp56gENmqWlCYxCrC+B2c/22ReFG0kWzhNenHQXnrfPntc9FlW8kxy5ft3pZVReffz3fxTxX4wr5bx29HpB4NBdXKk/XIfYRjQSHwk8KX4042xtArdyJreGA3Rqe6pl6J0a4k+OT7c3JG6cFaaxjRlfMd/fUR4R3m0dEwgWFJDFC5RQsdKSXZoR5kA95g0cZsxzYdDv5nzXZZIKM+WLGFKJcKiTJtotnprmBgvqyoWF7vZJ6oTYWKl26NtRwO//zFKEyaY37pqVeb/fPDOl6Qms6Nr33RZO2n7YqjpyeB34f7Rt+cHmG1IY9kWhoMF8++a0JwIUZCtwtPCktVT09Sf8JPLz6UEWDbtFDpu79NYuf+TPqfN17jO+tQDdgH+IKoviiUKcFnEW8Zkye3pCxu5ExdZ8xP8gjyvewnDP0CPE2bdknhL3k8o2cHmbLO23sZh71huvcLJZR+f1qf03uSH6OLZzvwDWNr3vOjDAb7zbBV6kdzbIQS8MpYolsBk6ll1zE18APVMGxyI1KfBE49yIr9pM2grpWLCjwgQx30IJmMUECIZkeZrUdiVfoqodrE0sDXEMqwHi4SrNaTh77tkjnCLjkWPCi2L+kK4t10ddhApkRf34pqsrgX6t1js3yRT2565wDQ/2JJ5uHABFxxwniBjB6OxyQ04cLGXpkT1zcG0Hxlc31z5AJOHycPkYfIweRimiUkuQmNoZd7JbhZyPZGEDL5fZsiVq/QhZ0ngw4u8oGZbLvyIEiUyt9EeX0QzqSHVj1gu+T2Gaj+4pgIuOPAjA2cnXcwmG7HSLRF1VT++cVz0qPobIeS1TpRWo3A532NYL5FvKLplZL4k8k48aibZPlM0aWInTNGEsQhOPDqBfGKxDxYrdaEWHb3gkh7ghxNaCuCmnVgL76pB4USCrZBpesn40grCXDhZgFhTXjRAtBVEGbQVwKCtsMR5Ay44gEm2JRNZOM7JvxfJJFlow1wQhUQ4nu+Lx0JWVP/g19L6YkRJ/ceIUP8YimP9DVanRmXlBXz9fbbk/KChe3HrYaeBUuiY9ZuUX0XvY4BW6uwC8t503Rygg96LzVQr3023zpQHboZW2aBnYnapp+ckK7fklDtqtkhKU6ZQz8ha2eh1LSGfzQkP5fpPymN5Rq2dbJ+To9rKNgR9DD2XRSdys1ok5BNWa6E/fWy19JL1nRFjtde1A3Taf9FXFZ683uO9HnfnrOSx/KjWLhymdbSUskdB33r5n0b7HSnrKO/qsfQ7PW3Nz6sGpy66SvS1M8+irz3hqe0/KY/lGbV2oV1aR7VVNvB76zdw2dJ8+UwZT87o1Hsko2SSDdtvUs1KnemLTLVybMlns20grhmD01BMI7Vdgxn0kGQU6WVQsxnTdqwG1tiVz+aG58sZc73X4ifCqso6VpY/s9cCxEXfa5YWEP7e3FJ+y2qrmF0e54HKEOTJXi9XR15HgDYt+Hr6XTJhzv9jsv0P+OXY6SeA3zc7nCxezP3uDPAUgOBnhDN1NRLhtwCi2/RUWUIBiDYN2RBBdRRAYnILex3xSUERITlOk2mw/DWfxAFSQl06xDSJZtCb0KEdAsz0iAlrHKKWiFOFz0NiuPZDEm7JfoVbW8RagOyeup3Cbaxqb2t6zeyIt7rXu6MHRt7GV/TjLGGKALz5AzkufN2hOQFeRK/FJFEbVpNUfrhJZpRXk5weHkzKqHZsktdhycR8gzQdRYRc5ZOUVK4r4InCLPWa1CpSQ0WjVIvKT64MV4FvMXp+2AbNovXWdmWJJpqea1m4QJNq1Fij4Spiq2cTwzVdi3EZO1cXr6WoV7cywDxlpK1qgmkTpeeaYkJzX8766aWPvvpnT3deTHdenIDz7hmfNMNNJicnEVM+7+19SZdk1jfo1NQYU63rIyv7CRb0qGy37HSOJuuqAr4kLRurtZmmTUbzkjsam22miaatirc7rlevVpBdar68BtNyH1Spa5G0ToCkTcqOrtqF9bW5Gjm+RgkfiouUHaUf/iNfgRQxTIsOPfQzxAjjCUnh0mXL8284LnvkLepKQzdMK6675bYb0bMd1yOUcSGVNkzLdlzPD8IoTtIsL8qqbtquH8ZpXtZtP87rft7vJ5EpVBqdwWSxOSAEI1weXyAUiSVSmVyhVKk1WhTDCZ3eYDSZLXEtjlab3eF0uT1enz/xhxDom3n77wbqf6axoKHCVf97IYPbtdH9Ejwb42dxjL1WgVzJV3X3nyAOEr9t6pP8cj/XL1Oxil87NF/nAjoFLCAQMAgoGDgEJBQ0DCyc9EoDQCBgEFAwcAhIKGgYWDjplQGAQMAgoGDgEJBQ0DCwcNIrCwCBgEFAwcAhIKGgYWDhpFcOAAIBg4CCgUNAQkHDwMJJrzwABAEFA4e4K1kTl3PWzy+Xwx/s5P8Jxxmjou+ff6jTh/l7H5O2GmAg2jeBebk17DlgiOjghWj0erZDcxvVkc1ArLSLoe4V2u2ErZH8Z09vwGUAAA==) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-vietnamese-400-normal.SBv5uTXX.woff) format("woff");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-latin-ext-400-normal.pKNVVoQn.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-latin-ext-400-normal.9o3dvHje.woff) format("woff");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-latin-400-normal.uwj1jQ8m.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-latin-400-normal.xnci5kZ6.woff) format("woff");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border-color:rgb(var(--color-border-primary));border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Inter,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}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}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}:root{--color-text-black:20 20 20;--color-text-white:248 250 252;--color-text-primary:20 20 20;--color-text-secondary:39 56 96;--color-text-inverse:248 250 252;--color-text-subtle:70 90 120;--color-text-danger:199 22 7;--color-text-information:68 76 231;--color-text-success:0 150 78;--color-text-warning:220 122 3;--color-text-pink:255 38 255;--color-text-brand:68 76 231;--color-surface-background:248 250 252;--color-surface-primary:255 255 255;--color-surface-secondary:248 250 252;--color-surface-subtle:201 217 240;--color-surface-table:20 20 20;--color-surface-success:213 255 235;--color-surface-success-loud:0 192 95;--color-surface-information:224 234 255;--color-surface-information-loud:68 76 231;--color-surface-danger:255 228 212;--color-surface-warning:255 244 198;--color-surface-brand:68 76 231;--color-surface-inverse:20 20 20;--color-surface-black:0 0 0;--color-interactive-surface:68 76 231;--color-interactive-hover:54 59 204;--color-interactive-active:47 52 164;--color-interactive-secondary-surface:255 255 255;--color-interactive-secondary-hover:232 239 255;--color-interactive-secondary-active:174 190 217;--color-interactive-danger-surface:255 155 112;--color-interactive-danger-hover:255 102 55;--color-interactive-danger-active:255 69 24;--color-interactive-ghost-hover:201 217 240;--color-interactive-ghost-active:201 217 240;--color-interactive-table-hover:224 234 255;--color-border-primary:20 20 20;--color-border-secondary:146 164 195;--color-border-subtle:174 190 217;--color-border-table:20 20 20;--color-border-inverse:248 250 252;--color-border-information:68 76 231;--color-border-success:0 192 95;--color-border-warning:254 195 33;--color-border-danger:255 69 24;--color-border-focus-info:68 76 231;--color-border-focus-danger:240 36 6}[data-theme=dark]{--color-text-black:20 20 20;--color-text-white:248 250 252;--color-text-primary:248 250 252;--color-text-secondary:146 164 195;--color-text-inverse:20 20 20;--color-text-subtle:70 90 120;--color-text-danger:255 102 55;--color-text-information:97 115 243;--color-text-success:0 192 95;--color-text-warning:248 162 8;--color-text-pink:255 97 250;--color-text-brand:128 152 249;--color-surface-background:20 20 20;--color-surface-primary:0 0 0;--color-surface-secondary:15 23 42;--color-surface-subtle:39 56 96;--color-surface-table:30 41 59;--color-surface-success:0 55 29;--color-surface-success-loud:0 192 95;--color-surface-information:26 28 76;--color-surface-information-loud:68 76 231;--color-surface-danger:69 5 5;--color-surface-warning:70 27 2;--color-surface-brand:97 115 243;--color-surface-inverse:248 250 252;--color-surface-black:0 0 0;--color-interactive-surface:68 76 231;--color-interactive-hover:54 59 204;--color-interactive-active:45 51 130;--color-interactive-secondary-surface:102 124 161;--color-interactive-secondary-hover:30 41 59;--color-interactive-secondary-active:39 56 96;--color-interactive-danger-surface:255 155 112;--color-interactive-danger-hover:255 102 55;--color-interactive-danger-active:255 69 24;--color-interactive-ghost-hover:70 90 120;--color-interactive-ghost-active:15 23 42;--color-interactive-table-hover:30 41 59;--color-border-primary:124 143 177;--color-border-secondary:70 90 120;--color-border-subtle:39 56 96;--color-border-table:30 41 59;--color-border-inverse:20 20 20;--color-border-information:97 115 243;--color-border-success:0 150 78;--color-border-warning:182 85 7;--color-border-danger:255 102 55;--color-border-focus-info:68 76 231;--color-border-focus-danger:240 36 6}h1{font-size:1.875rem}h1,h2{font-weight:500}h2{font-size:1.5rem}h3{font-size:1.25rem}h3,h4{font-weight:500}h4{font-size:1.125rem}h5{font-size:1rem}h5,h6{font-weight:500}.body-normal,h6{font-size:.875rem}.body-normal{font-weight:400}.body-medium{font-size:.875rem;font-weight:500}.body-small{font-size:.75rem;font-weight:400}.body-small-medium{font-size:.75rem;font-weight:500}.body-small-mono{font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.75rem;font-weight:400}*,body,html{box-sizing:border-box}body{background-color:rgb(var(--color-surface-background));color:rgb(var(--color-text-primary));font-size:.875rem;font-weight:400;overscroll-behavior:none;position:relative}input[type=search]::-webkit-search-cancel-button{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.surface-background{background-color:rgb(var(--color-surface-background));color:rgb(var(--color-text-primary))}.surface-primary{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.surface-secondary{background-color:rgb(var(--color-surface-secondary));color:rgb(var(--color-text-primary))}.surface-interactive{background-color:rgb(var(--color-interactive-surface));color:rgb(var(--color-text-primary))}.surface-interactive:focus-visible{background-color:rgb(var(--color-interactive-hover))}.surface-interactive:hover{background-color:rgb(var(--color-interactive-hover))}.surface-interactive:active{background-color:rgb(var(--color-interactive-active))}.surface-interactive-secondary{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.surface-interactive-secondary:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.surface-interactive-secondary:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.surface-interactive-secondary:active{background-color:rgb(var(--color-interactive-secondary-active))}.surface-interactive-danger{background-color:rgb(var(--color-interactive-danger-surface));color:rgb(var(--color-text-black))}.surface-interactive-danger:focus-visible{background-color:rgb(var(--color-interactive-danger-hover))}.surface-interactive-danger:hover{background-color:rgb(var(--color-interactive-danger-hover))}.surface-interactive-danger:active{background-color:rgb(var(--color-interactive-danger-active))}.surface-interactive-ghost{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.surface-interactive-ghost:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.surface-interactive-ghost:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.surface-interactive-ghost:active{background-color:rgb(var(--color-interactive-ghost-active))}.surface-inverse{background-color:rgb(var(--color-surface-inverse));color:rgb(var(--color-text-inverse))}.surface-subtle{background-color:rgb(var(--color-surface-subtle));color:rgb(var(--color-text-primary))}.surface-table{background-color:rgb(var(--color-surface-table));color:rgb(var(--color-text-inverse))}.surface-warning{background-color:rgb(var(--color-surface-subtle));color:rgb(var(--color-text-black))}.surface-black{background-color:rgb(var(--color-surface-black));color:rgb(var(--color-text-white))}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.not-sr-only{clip:auto;height:auto;margin:0;overflow:visible;padding:0;position:static;white-space:normal;width:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-bottom-6{bottom:-1.5rem}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.left-0{left:0}.left-1\/2{left:50%}.left-24{left:6rem}.left-\[60px\]{left:60px}.left-auto{left:auto}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-5{right:1.25rem}.right-8{right:2rem}.right-auto{right:auto}.top-0{top:0}.top-1{top:.25rem}.top-2{top:.5rem}.top-\[40px\]{top:40px}.top-\[50\%\]{top:50%}.top-\[540px\]{top:540px}.z-100{z-index:100}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[55\]{z-index:55}.z-\[99999\]{z-index:99999}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.order-6{order:6}.order-7{order:7}.col-span-2{grid-column:span 2/span 2}.float-right{float:right}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.m-auto{margin:auto}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-\[8px\]{margin-left:8px;margin-right:8px}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-bottom:.25rem;margin-top:.25rem}.my-12{margin-bottom:3rem;margin-top:3rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.my-4{margin-bottom:1rem;margin-top:1rem}.my-7{margin-bottom:1.75rem;margin-top:1.75rem}.my-8{margin-bottom:2rem;margin-top:2rem}.my-\[20vh\]{margin-bottom:20vh;margin-top:20vh}.-mb-2{margin-bottom:-.5rem}.-ml-2{margin-left:-.5rem}.-mr-2{margin-right:-.5rem}.-mt-12{margin-top:-3rem}.-mt-2{margin-top:-.5rem}.-mt-6{margin-top:-1.5rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-7{margin-left:1.75rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-5{margin-right:1.25rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-32{margin-top:8rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.box-border{box-sizing:border-box}.box-content{box-sizing:content-box}.block{display:block}.inline-block{display:inline-block}.\!inline{display:inline!important}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-auto{aspect-ratio:auto}.aspect-square{aspect-ratio:1/1}.h-0{height:0}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[224px\]{height:224px}.h-\[24px\]{height:24px}.h-\[540px\]{height:540px}.h-\[5px\]{height:5px}.h-\[64px\]{height:64px}.h-\[calc\(100\%-2\.5rem\)\]{height:calc(100% - 2.5rem)}.h-\[calc\(100\%-64px\)\]{height:calc(100% - 64px)}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.max-h-10{max-height:2.5rem}.max-h-20{max-height:5rem}.max-h-32{max-height:8rem}.max-h-40{max-height:10rem}.max-h-52{max-height:13rem}.max-h-96{max-height:24rem}.max-h-\[320px\]{max-height:320px}.max-h-fit{max-height:-moz-fit-content;max-height:fit-content}.min-h-80{min-height:20rem}.min-h-\[1\.25rem\]{min-height:1.25rem}.min-h-\[154px\]{min-height:154px}.min-h-\[2\.5rem\]{min-height:2.5rem}.min-h-\[24px\]{min-height:24px}.min-h-\[600px\]{min-height:600px}.min-h-fit{min-height:-moz-fit-content;min-height:fit-content}.min-h-screen{min-height:100vh}.w-0{width:0}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-1\/12{width:8.333333%}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\/12{width:16.666667%}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3\/12{width:25%}.w-32{width:8rem}.w-4{width:1rem}.w-4\/12{width:33.333333%}.w-40{width:10rem}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-6\/12{width:50%}.w-60{width:15rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-9\/12{width:75%}.w-96{width:24rem}.w-\[10rem\]{width:10rem}.w-\[1px\]{width:1px}.w-\[240px\]{width:240px}.w-\[24px\]{width:24px}.w-\[25rem\]{width:25rem}.w-\[265px\]{width:265px}.w-\[27rem\]{width:27rem}.w-\[32px\]{width:32px}.w-\[35vw\]{width:35vw}.w-\[500px\]{width:500px}.w-\[calc\(100\%-6rem\)\]{width:calc(100% - 6rem)}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-screen{width:100vw}.min-w-0{min-width:0}.min-w-\[280px\]{min-width:280px}.min-w-\[32px\]{min-width:32px}.min-w-\[600px\]{min-width:600px}.min-w-\[80px\]{min-width:80px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.min-w-full{min-width:100%}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-16{max-width:4rem}.max-w-60{max-width:15rem}.max-w-80{max-width:20rem}.max-w-\[3rem\]{max-width:3rem}.max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.max-w-lg{max-width:32rem}.max-w-xs{max-width:20rem}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-1\/3{flex-basis:33.333333%}.table-fixed{table-layout:fixed}.border-separate{border-collapse:separate}.border-spacing-0{--tw-border-spacing-x:0px;--tw-border-spacing-y:0px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.origin-bottom-left{transform-origin:bottom left}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-x-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x:-100%}.-translate-y-1\/2{--tw-translate-y:-50%}.-translate-y-1\/2,.-translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y:-100%}.translate-x-0{--tw-translate-x:0px}.translate-x-0,.translate-x-12{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-12{--tw-translate-x:3rem}.translate-x-\[10px\]{--tw-translate-x:10px}.translate-x-\[10px\],.translate-y-\[-10px\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-10px\]{--tw-translate-y:-10px}.translate-y-\[-50\%\]{--tw-translate-y:-50%}.transform,.translate-y-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-flow-row{grid-auto-flow:row}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[2rem\]{grid-template-columns:2rem}.grid-rows-\[fit-content\(1\.5rem\)_minmax\(3rem\,4rem\)_1fr_8rem\]{grid-template-rows:fit-content(1.5rem) minmax(3rem,4rem) 1fr 8rem}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.content-between{align-content:space-between}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-\[1px\]{gap:1px}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-4{row-gap:1rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.\!overflow-visible{overflow:visible!important}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-x-scroll{overflow-x:scroll}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;white-space:nowrap}.text-ellipsis,.truncate{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-break-spaces{white-space:break-spaces}.text-wrap{text-wrap:wrap}.text-nowrap{text-wrap:nowrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\[50\%\]{border-radius:50%}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-b-md{border-bottom-left-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-l-none{border-bottom-left-radius:0;border-top-left-radius:0}.rounded-r{border-bottom-right-radius:.25rem;border-top-right-radius:.25rem}.rounded-r-none{border-bottom-right-radius:0;border-top-right-radius:0}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.rounded-bl-lg{border-bottom-left-radius:.5rem}.rounded-bl-none{border-bottom-left-radius:0}.rounded-br{border-bottom-right-radius:.25rem}.rounded-br-lg{border-bottom-right-radius:.5rem}.rounded-br-none{border-bottom-right-radius:0}.rounded-tl-lg{border-top-left-radius:.5rem}.rounded-tl-none{border-top-left-radius:0}.rounded-tr{border-top-right-radius:.25rem}.rounded-tr-lg{border-top-right-radius:.5rem}.rounded-tr-none{border-top-right-radius:0}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-y{border-bottom-width:1px;border-top-width:1px}.\!border-l-0{border-left-width:0!important}.\!border-r-0{border-right-width:0!important}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0}.border-b-2{border-bottom-width:2px}.border-b-4{border-bottom-width:4px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-r-4{border-right-width:4px}.border-t{border-top-width:1px}.border-t-4{border-top-width:4px}.border-solid{border-style:solid}.border-\[transparent\]{border-color:transparent}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity))}.border-danger{border-color:rgb(var(--color-border-danger))}.border-green-200{--tw-border-opacity:1;border-color:rgb(174 255 216/var(--tw-border-opacity))}.border-information{border-color:rgb(var(--color-border-information))}.border-orange-500{--tw-border-opacity:1;border-color:rgb(249 115 22/var(--tw-border-opacity))}.border-primary{border-color:rgb(var(--color-border-primary))}.border-secondary{border-color:rgb(var(--color-border-secondary))}.border-slate-100{--tw-border-opacity:1;border-color:rgb(201 217 240/var(--tw-border-opacity))}.border-slate-200{--tw-border-opacity:1;border-color:rgb(174 190 217/var(--tw-border-opacity))}.border-slate-700{--tw-border-opacity:1;border-color:rgb(70 90 120/var(--tw-border-opacity))}.border-subtle{border-color:rgb(var(--color-border-subtle))}.border-success{border-color:rgb(var(--color-border-success))}.border-table{border-color:rgb(var(--color-border-table))}.border-transparent{border-color:transparent}.border-warning{border-color:rgb(var(--color-border-warning))}.border-white\/10{border-color:#ffffff1a}.border-b-transparent{border-bottom-color:transparent}.border-l-primary{border-left-color:rgb(var(--color-border-primary))}.border-l-transparent{border-left-color:transparent}.border-r-primary{border-right-color:rgb(var(--color-border-primary))}.border-r-transparent{border-right-color:transparent}.bg-\[\#DDD6FE\]{--tw-bg-opacity:1;background-color:rgb(221 214 254/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity:1;background-color:rgb(191 215 254/var(--tw-bg-opacity))}.bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 187 253/var(--tw-bg-opacity))}.bg-current{background-color:currentColor}.bg-danger{background-color:rgb(var(--color-surface-danger))}.bg-green-200{--tw-bg-opacity:1;background-color:rgb(174 255 216/var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(224 234 255/var(--tw-bg-opacity))}.bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(198 216 255/var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(68 76 231/var(--tw-bg-opacity))}.bg-information{background-color:rgb(var(--color-surface-information))}.bg-interactive{background-color:rgb(var(--color-interactive-surface))}.bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.bg-interactive-error{background-color:rgb(var(--color-interactive-danger-surface))}.bg-interactive-secondary-active{background-color:rgb(var(--color-interactive-secondary-active))}.bg-interactive-table-hover{background-color:rgb(var(--color-interactive-table-hover))}.bg-interactive\/50{background-color:rgb(var(--color-interactive-surface)/.5)}.bg-inverse{background-color:rgb(var(--color-surface-inverse))}.bg-off-black{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity:1;background-color:rgb(255 230 213/var(--tw-bg-opacity))}.bg-orange-200{--tw-bg-opacity:1;background-color:rgb(254 204 170/var(--tw-bg-opacity))}.bg-pink-200{--tw-bg-opacity:1;background-color:rgb(254 199 255/var(--tw-bg-opacity))}.bg-pink-50{--tw-bg-opacity:1;background-color:rgb(255 242 255/var(--tw-bg-opacity))}.bg-primary{background-color:rgb(var(--color-surface-primary))}.bg-purple-100{--tw-bg-opacity:1;background-color:rgb(239 233 254/var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity:1;background-color:rgb(226 214 254/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(255 228 212/var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity:1;background-color:rgb(255 196 168/var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity:1;background-color:rgb(255 102 55/var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(201 217 240/var(--tw-bg-opacity))}.bg-slate-100\/50{background-color:#c9d9f080}.bg-slate-200{--tw-bg-opacity:1;background-color:rgb(174 190 217/var(--tw-bg-opacity))}.bg-slate-800{--tw-bg-opacity:1;background-color:rgb(39 56 96/var(--tw-bg-opacity))}.bg-space-black{--tw-bg-opacity:1;background-color:rgb(20 20 20/var(--tw-bg-opacity))}.bg-subtle{background-color:rgb(var(--color-surface-subtle))}.bg-success{background-color:rgb(var(--color-surface-success))}.bg-transparent{background-color:transparent}.bg-warning{background-color:rgb(var(--color-surface-warning))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-white\/5{background-color:#ffffff0d}.bg-yellow-200{--tw-bg-opacity:1;background-color:rgb(254 233 137/var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-100{--tw-gradient-from:#dbe8fe var(--tw-gradient-from-position);--tw-gradient-to:rgba(219,232,254,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-blue-200{--tw-gradient-from:#bfd7fe var(--tw-gradient-from-position);--tw-gradient-to:rgba(191,215,254,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from:#444ce7 var(--tw-gradient-from-position);--tw-gradient-to:rgba(68,76,231,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-pink-100{--tw-gradient-from:#fee4ff var(--tw-gradient-from-position);--tw-gradient-to:rgba(254,228,255,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-red-100{--tw-gradient-from:#ffe4d4 var(--tw-gradient-from-position);--tw-gradient-to:rgba(255,228,212,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-100{--tw-gradient-from:#c9d9f0 var(--tw-gradient-from-position);--tw-gradient-to:rgba(201,217,240,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-yellow-100{--tw-gradient-from:#fff4c6 var(--tw-gradient-from-position);--tw-gradient-to:rgba(255,244,198,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-slate-200{--tw-gradient-to:rgba(174,190,217,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#aebed9 var(--tw-gradient-via-position),var(--tw-gradient-to)}.to-indigo-900{--tw-gradient-to:#2d3382 var(--tw-gradient-to-position)}.to-indigo-950{--tw-gradient-to:#1a1c4c var(--tw-gradient-to-position)}.to-pink-200{--tw-gradient-to:#fec7ff var(--tw-gradient-to-position)}.to-purple-100{--tw-gradient-to:#efe9fe var(--tw-gradient-to-position)}.to-red-200{--tw-gradient-to:#ffc4a8 var(--tw-gradient-to-position)}.to-slate-300{--tw-gradient-to:#92a4c3 var(--tw-gradient-to-position)}.to-yellow-200{--tw-gradient-to:#fee989 var(--tw-gradient-to-position)}.bg-fixed{background-attachment:fixed}.bg-clip-padding{background-clip:padding-box}.fill-current{fill:currentColor}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-px{padding:1px}.px-0{padding-left:0;padding-right:0}.px-0\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-bottom:0;padding-top:0}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-8{padding-bottom:2rem;padding-top:2rem}.\!pt-0{padding-top:0!important}.pb-0{padding-bottom:0}.pb-16{padding-bottom:4rem}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-24{padding-bottom:6rem}.pb-4{padding-bottom:1rem}.pl-0{padding-left:0}.pl-1{padding-left:.25rem}.pl-1\.5{padding-left:.375rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-5{padding-left:1.25rem}.pr-0{padding-right:0}.pr-0\.5{padding-right:.125rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pt-1{padding-top:.25rem}.pt-10{padding-top:2.5rem}.pt-2{padding-top:.5rem}.pt-24{padding-top:6rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.font-mono{font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-8xl{font-size:6rem;line-height:1}.text-\[0\.6rem\]{font-size:.6rem}.text-\[12px\]{font-size:12px}.text-\[12rem\]{font-size:12rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-10{line-height:2.5rem}.leading-3{line-height:.75rem}.leading-4{line-height:1rem}.leading-8{line-height:2rem}.leading-\[18px\]{line-height:18px}.\!text-space-black{--tw-text-opacity:1!important;color:rgb(20 20 20/var(--tw-text-opacity))!important}.text{color:rgb(var(--color-text-primary))}.text-\[\#C9D9F0\]{--tw-text-opacity:1;color:rgb(201 217 240/var(--tw-text-opacity))}.text-\[\#e9d5ff\]{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 100 216/var(--tw-text-opacity))}.text-danger{color:rgb(var(--color-text-danger))}.text-green-700{--tw-text-opacity:1;color:rgb(0 150 78/var(--tw-text-opacity))}.text-information{color:rgb(var(--color-text-information))}.text-inverse{color:rgb(var(--color-text-inverse))}.text-off-white{--tw-text-opacity:1;color:rgb(248 250 252/var(--tw-text-opacity))}.text-pink-700{--tw-text-opacity:1;color:rgb(211 0 216/var(--tw-text-opacity))}.text-primary{color:rgb(var(--color-text-primary))}.text-purple-200{--tw-text-opacity:1;color:rgb(226 214 254/var(--tw-text-opacity))}.text-red-400{--tw-text-opacity:1;color:rgb(255 102 55/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(199 22 7/var(--tw-text-opacity))}.text-secondary{color:rgb(var(--color-text-secondary))}.text-slate-100{--tw-text-opacity:1;color:rgb(201 217 240/var(--tw-text-opacity))}.text-slate-300{--tw-text-opacity:1;color:rgb(146 164 195/var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity:1;color:rgb(102 124 161/var(--tw-text-opacity))}.text-slate-700{--tw-text-opacity:1;color:rgb(70 90 120/var(--tw-text-opacity))}.text-subtle{color:rgb(var(--color-text-subtle))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity:1;color:rgb(182 85 7/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-65{opacity:.65}.opacity-90{opacity:.9}.opacity-\[\.35\]{opacity:.35}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-\[inset_0_0_0_2px\]{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[inset_0_0_0_2px\]{--tw-shadow:inset 0 0 0 2px;--tw-shadow-colored:inset 0 0 0 2px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.shadow-white{--tw-shadow-color:#fff;--tw-shadow:var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-2{outline-width:2px}.ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.brightness-50{--tw-brightness:brightness(.5)}.brightness-50,.invert{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert:invert(100%)}.\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-\[opacity\,transform\]{transition-duration:.15s;transition-property:opacity,transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-shadow{transition-duration:.15s;transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-width{transition-duration:.15s;transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:surface-interactive-secondary:hover{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.hover\:surface-interactive-secondary:hover:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:surface-interactive-secondary:hover:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:surface-interactive-secondary:hover:active{background-color:rgb(var(--color-interactive-secondary-active))}.hover\:surface-interactive-ghost:hover{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.hover\:surface-interactive-ghost:hover:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.hover\:surface-interactive-ghost:hover:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.hover\:surface-interactive-ghost:hover:active{background-color:rgb(var(--color-interactive-ghost-active))}.focus-visible\:surface-interactive-secondary:focus-visible{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.focus-visible\:surface-interactive-secondary:focus-visible:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:surface-interactive-secondary:focus-visible:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:surface-interactive-secondary:focus-visible:active{background-color:rgb(var(--color-interactive-secondary-active))}.focus-visible\:surface-interactive-ghost:focus-visible{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.focus-visible\:surface-interactive-ghost:focus-visible:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.focus-visible\:surface-interactive-ghost:focus-visible:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.focus-visible\:surface-interactive-ghost:focus-visible:active{background-color:rgb(var(--color-interactive-ghost-active))}.dark\:focus-within\:surface-primary:focus-within:where([data-theme=dark],[data-theme=dark] *){background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.placeholder\:text-secondary::-moz-placeholder{color:rgb(var(--color-text-secondary))}.placeholder\:text-secondary::placeholder{color:rgb(var(--color-text-secondary))}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:left-\[calc\(100\%_\+_1\.5rem\)\]:after{content:var(--tw-content);left:calc(100% + 1.5rem)}.after\:top-0:after{content:var(--tw-content);top:0}.after\:hidden:after{content:var(--tw-content);display:none}.after\:h-8:after{content:var(--tw-content);height:2rem}.after\:items-center:after{align-items:center;content:var(--tw-content)}.after\:rounded-md:after{border-radius:.375rem;content:var(--tw-content)}.after\:bg-slate-800:after{--tw-bg-opacity:1;background-color:rgb(39 56 96/var(--tw-bg-opacity));content:var(--tw-content)}.after\:p-1:after{content:var(--tw-content);padding:.25rem}.after\:px-2:after{content:var(--tw-content);padding-left:.5rem;padding-right:.5rem}.after\:text-xs:after{content:var(--tw-content);font-size:.75rem;line-height:1rem}.after\:text-white:after{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity));content:var(--tw-content)}.after\:content-\[attr\(data-tooltip\)\]:after{--tw-content:attr(data-tooltip);content:var(--tw-content)}.first\:pt-0:first-child{padding-top:0}.last\:border-b-0:last-child{border-bottom-width:0}.first-of-type\:rounded-bl-lg:first-of-type{border-bottom-left-radius:.5rem}.first-of-type\:rounded-tl:first-of-type{border-top-left-radius:.25rem}.first-of-type\:rounded-tl-lg:first-of-type{border-top-left-radius:.5rem}.first-of-type\:rounded-tr-lg:first-of-type{border-top-right-radius:.5rem}.last-of-type\:rounded-bl-lg:last-of-type{border-bottom-left-radius:.5rem}.last-of-type\:rounded-br-lg:last-of-type{border-bottom-right-radius:.5rem}.last-of-type\:border-0:last-of-type{border-width:0}.last-of-type\:border-b-0:last-of-type{border-bottom-width:0}.focus-within\:border-danger:focus-within{border-color:rgb(var(--color-border-danger))}.focus-within\:border-information:focus-within{border-color:rgb(var(--color-border-information))}.focus-within\:border-interactive:focus-within{border-color:rgb(var(--color-interactive-surface))}.focus-within\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}.focus-within\:ring-4:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-within\:ring-primary\/70:focus-within{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.hover\:scale-125:hover{--tw-scale-x:1.25;--tw-scale-y:1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:border-information:hover{border-color:rgb(var(--color-border-information))}.hover\:bg-interactive-hover:hover{background-color:rgb(var(--color-interactive-hover))}.hover\:bg-interactive-secondary-hover:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:bg-interactive-table-hover:hover{background-color:rgb(var(--color-interactive-table-hover))}.hover\:bg-slate-800:hover{--tw-bg-opacity:1;background-color:rgb(39 56 96/var(--tw-bg-opacity))}.hover\:bg-white:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:text-black:hover{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity:1;color:rgb(29 100 216/var(--tw-text-opacity))}.hover\:text-brand:hover{color:rgb(var(--color-text-brand))}.hover\:text-primary:hover{color:rgb(var(--color-text-primary))}.hover\:underline:hover{text-decoration-line:underline}.focus\:translate-y-0:focus{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\:rounded-sm:focus-visible{border-radius:.125rem}.focus-visible\:border-indigo-600:focus-visible{--tw-border-opacity:1;border-color:rgb(68 76 231/var(--tw-border-opacity))}.focus-visible\:border-inverse:focus-visible{border-color:rgb(var(--color-border-inverse))}.focus-visible\:border-table:focus-visible{border-color:rgb(var(--color-border-table))}.focus-visible\:border-transparent:focus-visible{border-color:transparent}.focus-visible\:bg-interactive-secondary-hover:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:text-brand:focus-visible{color:rgb(var(--color-text-brand))}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:ring-4:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-danger\/70:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-danger)/.7)}.focus-visible\:ring-primary\/70:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:focus-within .group-focus-within\:visible{visibility:visible}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:inline-block{display:inline-block}.group:hover .group-hover\:border-information{border-color:rgb(var(--color-border-information))}.group:hover .group-hover\:border-transparent{border-color:transparent}.group:hover .group-hover\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.group:hover .group-hover\:bg-interactive-secondary-hover{background-color:rgb(var(--color-interactive-secondary-hover))}.group:hover .group-hover\:opacity-100{opacity:1}.group:hover .group-hover\:opacity-90{opacity:.9}.group:hover .group-hover\:ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.group:hover .group-hover\:ring-primary\/70{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.group:focus .group-focus\:opacity-100{opacity:1}.group.surface-primary .group-\[\.surface-primary\]\:hover\:bg-black:hover{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.peer:checked~.peer-checked\:justify-end{justify-content:flex-end}.peer:checked~.peer-checked\:border-danger{border-color:rgb(var(--color-border-danger))}.peer:checked~.peer-checked\:border-interactive{border-color:rgb(var(--color-interactive-surface))}.peer:checked~.peer-checked\:bg-interactive{background-color:rgb(var(--color-interactive-surface))}.peer:checked~.peer-checked\:text-off-white{--tw-text-opacity:1;color:rgb(248 250 252/var(--tw-text-opacity))}.group:hover .peer:checked~.group-hover\:peer-checked\:border-transparent{border-color:transparent}.group:hover .peer:checked~.group-hover\:peer-checked\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.group:hover .peer:checked~.group-hover\:peer-checked\:bg-interactive-hover{background-color:rgb(var(--color-interactive-hover))}.peer:indeterminate~.peer-indeterminate\:border-interactive{border-color:rgb(var(--color-interactive-surface))}.peer:indeterminate~.peer-indeterminate\:bg-interactive{background-color:rgb(var(--color-interactive-surface))}.group:hover .peer:indeterminate~.group-hover\:peer-indeterminate\:border-transparent{border-color:transparent}.group:hover .peer:indeterminate~.group-hover\:peer-indeterminate\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.peer:focus-visible~.peer-focus-visible\:border-inverse{border-color:rgb(var(--color-border-inverse))}.peer:focus-visible~.peer-focus-visible\:border-transparent{border-color:transparent}.peer:focus-visible~.peer-focus-visible\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.peer:focus-visible~.peer-focus-visible\:bg-interactive-secondary-hover{background-color:rgb(var(--color-interactive-secondary-hover))}.peer:focus-visible~.peer-focus-visible\:ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.peer:focus-visible~.peer-focus-visible\:ring-primary\/70{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.peer:focus-visible:checked~.peer-focus-visible\:peer-checked\:bg-interactive-hover{background-color:rgb(var(--color-interactive-hover))}.data-\[nav\=open\]\:w-\[180px\][data-nav=open]{width:180px}.data-\[nav\=open\]\:grid-cols-\[100\%\][data-nav=open]{grid-template-columns:100%}.group[data-nav=open] .group-data-\[nav\=open\]\:visible{visibility:visible}.group[data-nav=closed] .group-data-\[nav\=closed\]\:hidden,.group[data-nav=open] .group-data-\[nav\=open\]\:hidden{display:none}.group[data-nav=open] .group-data-\[nav\=open\]\:rotate-180{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group[data-nav=open] .group-data-\[nav\=open\]\:justify-start{justify-content:flex-start}.group[data-nav=closed] .group-data-\[nav\=closed\]\:justify-center{justify-content:center}.group[data-nav=closed] .group-data-\[nav\=closed\]\:p-1{padding:.25rem}.group[data-nav=open] .group-data-\[nav\=open\]\:px-2\.5{padding-left:.625rem;padding-right:.625rem}.group[data-nav=open] .group-data-\[nav\=open\]\:py-2{padding-bottom:.5rem;padding-top:.5rem}.group[data-nav=open] .group-data-\[nav\=open\]\:opacity-100{opacity:1}.group[data-nav=closed] .group-data-\[nav\=closed\]\:hover\:after\:flex:hover:after{content:var(--tw-content);display:flex}@media not all and (min-width:1280px){.max-xl\:hidden{display:none}}@media not all and (min-width:1024px){.max-lg\:hidden{display:none}}@media not all and (min-width:768px){.max-md\:hidden{display:none}}@media not all and (min-width:640px){.max-sm\:flex{display:flex}.max-sm\:hidden{display:none}.max-sm\:flex-col{flex-direction:column}}@media (min-width:640px){.sm\:block{display:block}.sm\:grid{display:grid}.sm\:hidden{display:none}.sm\:w-\[20rem\]{width:20rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}}@media (min-width:768px){.md\:visible{visibility:visible}.md\:order-2{order:2}.md\:order-3{order:3}.md\:order-4{order:4}.md\:order-5{order:5}.md\:order-6{order:6}.md\:order-8{order:8}.md\:mt-6{margin-top:1.5rem}.md\:block{display:block}.md\:flex{display:flex}.md\:table-cell{display:table-cell}.md\:table-row{display:table-row}.md\:hidden{display:none}.md\:h-auto{height:auto}.md\:w-1\/2{width:50%}.md\:w-2\/3{width:66.666667%}.md\:w-32{width:8rem}.md\:w-80{width:20rem}.md\:w-\[26rem\]{width:26rem}.md\:w-auto{width:auto}.md\:max-w-full{max-width:100%}.md\:max-w-lg{max-width:32rem}.md\:table-fixed{table-layout:fixed}.md\:columns-2{-moz-columns:2;column-count:2}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-end{align-items:flex-end}.md\:items-center{align-items:center}.md\:gap-2{gap:.5rem}.md\:gap-4{gap:1rem}.md\:gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.md\:whitespace-normal{white-space:normal}.md\:rounded-full{border-radius:9999px}.md\:p-12{padding:3rem}.md\:p-8{padding:2rem}.md\:px-2{padding-left:.5rem;padding-right:.5rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:pb-0{padding-bottom:0}.md\:pr-24{padding-right:6rem}.md\:pt-20{padding-top:5rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:1024px){.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:w-1\/2{width:50%}.lg\:w-1\/3{width:33.333333%}.lg\:w-2\/3{width:66.666667%}.lg\:w-3\/4{width:75%}.lg\:w-3\/5{width:60%}.lg\:w-56{width:14rem}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:items-end{align-items:flex-end}.lg\:justify-start{justify-content:flex-start}.lg\:border-r-2{border-right-width:2px}.lg\:pr-2{padding-right:.5rem}}@media (min-width:1280px){.xl\:order-2{order:2}.xl\:order-3{order:3}.xl\:order-4{order:4}.xl\:order-5{order:5}.xl\:order-6{order:6}.xl\:order-7{order:7}.xl\:flex{display:flex}.xl\:table-cell{display:table-cell}.xl\:hidden{display:none}.xl\:w-1\/2{width:50%}.xl\:w-1\/3{width:33.333333%}.xl\:w-10{width:2.5rem}.xl\:w-2\/3{width:66.666667%}.xl\:w-80{width:20rem}.xl\:w-auto{width:auto}.xl\:min-w-\[520px\]{min-width:520px}.xl\:max-w-2xl{max-width:42rem}.xl\:columns-3{-moz-columns:3;column-count:3}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:flex-row{flex-direction:row}.xl\:flex-nowrap{flex-wrap:nowrap}.xl\:items-center{align-items:center}.xl\:gap-4{gap:1rem}.xl\:gap-x-16{-moz-column-gap:4rem;column-gap:4rem}.xl\:border-b-0{border-bottom-width:0}.xl\:border-r-2{border-right-width:2px}.xl\:px-4{padding-left:1rem;padding-right:1rem}.xl\:py-3{padding-bottom:.75rem;padding-top:.75rem}.xl\:pr-48{padding-right:12rem}.xl\:text-left{text-align:left}}@media (min-width:1536px){.\32xl\:w-1\/2{width:50%}}.dark\:border-slate-500:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(102 124 161/var(--tw-border-opacity))}.dark\:bg-pink-500:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 38 255/var(--tw-bg-opacity))}.dark\:bg-red-900:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(127 20 15/var(--tw-bg-opacity))}.dark\:bg-slate-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(87 110 143/var(--tw-bg-opacity))}.dark\:bg-yellow-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(220 122 3/var(--tw-bg-opacity))}.dark\:bg-gradient-to-r:where([data-theme=dark],[data-theme=dark] *){background-image:linear-gradient(to right,var(--tw-gradient-stops))}.dark\:from-slate-600:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-from:#576e8f var(--tw-gradient-from-position);--tw-gradient-to:rgba(87,110,143,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark\:via-slate-700:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-to:rgba(70,90,120,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#465a78 var(--tw-gradient-via-position),var(--tw-gradient-to)}.dark\:to-slate-800:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-to:#273860 var(--tw-gradient-to-position)}.dark\:text-slate-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(124 143 177/var(--tw-text-opacity))}.dark\:shadow-slate-900:where([data-theme=dark],[data-theme=dark] *){--tw-shadow-color:#1e293b;--tw-shadow:var(--tw-shadow-colored)}.dark\:invert:where([data-theme=dark],[data-theme=dark] *){--tw-invert:invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus-visible\:dark\:ring-success:where([data-theme=dark],[data-theme=dark] *):focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.group.surface-primary .group-\[\.surface-primary\]\:dark\:hover\:bg-white:hover:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:dark\:hover\:text-black:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.focus-visible\:\[\&_\[role\=button\]\]\:outline-none [role=button]:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:\[\&_\[role\=button\]\]\:ring-4 [role=button]:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:\[\&_\[role\=button\]\]\:ring-primary\/70 [role=button]:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.focus-visible\:\[\&_\[role\=button\]\]\:ring-success [role=button]:focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.focus-visible\:\[\&_a\]\:outline-none a:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:\[\&_a\]\:ring-4 a:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:\[\&_a\]\:ring-primary\/70 a:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.focus-visible\:\[\&_a\]\:ring-success a:focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.button-group>.\[\.button-group\>\&\:first-of-type\]\:rounded-l-lg:first-of-type{border-bottom-left-radius:.5rem;border-top-left-radius:.5rem}.button-group>.\[\.button-group\>\&\:last-of-type\]\:rounded-r-lg:last-of-type{border-bottom-right-radius:.5rem;border-top-right-radius:.5rem}.button-group>.\[\.button-group\>\&\]\:rounded-none,.input-group>.\[\.input-group\>\&\]\:rounded-none{border-radius:0}.input-group>.first\:\[\.input-group\>\&\]\:rounded-l:first-child{border-bottom-left-radius:.25rem;border-top-left-radius:.25rem}.input-group>.last\:\[\.input-group\>\&\]\:rounded-r:last-child{border-bottom-right-radius:.25rem;border-top-right-radius:.25rem} diff --git a/ui/assets/local/_app/immutable/assets/codicon.wpoHPmsu.ttf b/ui/assets/local/_app/immutable/assets/codicon.wpoHPmsu.ttf new file mode 100644 index 0000000000..27ee4c68ca Binary files /dev/null and b/ui/assets/local/_app/immutable/assets/codicon.wpoHPmsu.ttf differ diff --git a/ui/assets/local/_app/immutable/assets/index.baDiGdeK.css b/ui/assets/local/_app/immutable/assets/index.baDiGdeK.css new file mode 100644 index 0000000000..6576eb820d --- /dev/null +++ b/ui/assets/local/_app/immutable/assets/index.baDiGdeK.css @@ -0,0 +1 @@ +.monaco-editor{--monaco-monospace-font:"SF Mono",Monaco,Menlo,Consolas,"Ubuntu Mono","Liberation Mono","DejaVu Sans Mono","Courier New",monospace;font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif}.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,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-aria-container{clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;top:0;width:1px}.monaco-diff-editor .synthetic-focus,.monaco-diff-editor [tabindex="-1"]:focus,.monaco-diff-editor [tabindex="0"]: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,.monaco-editor{opacity:1;outline-color:var(--vscode-focusBorder);outline-offset:-1px;outline-style:solid;outline-width:1px}.monaco-aria-container{left:-999em;position:absolute}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{-webkit-text-size-adjust:100%;color:var(--vscode-editor-foreground);overflow:visible;position:relative}.monaco-editor,.monaco-editor-background{background-color:var(--vscode-editor-background)}.monaco-editor .rangeHighlight{background-color:var(--vscode-editor-rangeHighlightBackground);border:1px solid var(--vscode-editor-rangeHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .rangeHighlight,.monaco-editor.hc-light .rangeHighlight{border-style:dotted}.monaco-editor .symbolHighlight{background-color:var(--vscode-editor-symbolHighlightBackground);border:1px solid var(--vscode-editor-symbolHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .symbolHighlight,.monaco-editor.hc-light .symbolHighlight{border-style:dotted}.monaco-editor .overflow-guard{overflow:hidden;position:relative}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor .margin-view-overlays>div,.monaco-editor .view-overlays>div{position:absolute;width:100%}.monaco-editor .squiggly-error{border-bottom:4px double var(--vscode-editorError-border)}.monaco-editor .squiggly-error:before{background:var(--vscode-editorError-background);content:"";display:block;height:100%;width:100%}.monaco-editor .squiggly-warning{border-bottom:4px double var(--vscode-editorWarning-border)}.monaco-editor .squiggly-warning:before{background:var(--vscode-editorWarning-background);content:"";display:block;height:100%;width:100%}.monaco-editor .squiggly-info{border-bottom:4px double var(--vscode-editorInfo-border)}.monaco-editor .squiggly-info:before{background:var(--vscode-editorInfo-background);content:"";display:block;height:100%;width:100%}.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{background:transparent;opacity:1;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{display:none;position:absolute}.monaco-scrollable-element>.shadow.top{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;display:block;height:3px;left:3px;top:0;width:100%}.monaco-scrollable-element>.shadow.left{box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset;display:block;height:100%;left:0;top:3px;width:3px}.monaco-scrollable-element>.shadow.top-left-corner{display:block;height:3px;left:0;top:0;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{background-color:transparent;border:none;color:transparent;margin:0;min-height:0;min-width:0;outline:none!important;overflow:hidden;padding:0;position:absolute;resize:none;z-index:-10}.monaco-editor .inputarea.ime-input{caret-color:var(--vscode-editorCursor-foreground);color:var(--vscode-editor-foreground);z-index:10}.monaco-editor .margin-view-overlays .line-numbers{bottom:0;box-sizing:border-box;cursor:default;display:inline-block;font-variant-numeric:tabular-nums;position:absolute;text-align:right;vertical-align:middle}.monaco-editor .relative-current-line-number{display:inline-block;text-align:left;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{pointer-events:none;position:absolute;top:0}.monaco-editor .blockDecorations-block{box-sizing:border-box;position:absolute}.monaco-editor .margin-view-overlays .current-line,.monaco-editor .view-overlays .current-line{box-sizing:border-box;display:block;height:100%;left:0;position:absolute;top:0}.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both{border-right:0}.monaco-editor .lines-content .cdr{height:100%;position:absolute}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .glyph-margin-widgets .cgmr{align-items:center;display:flex;justify-content:center;position:absolute}.monaco-editor .glyph-margin-widgets .cgmr.codicon-modifier-spin:before{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.monaco-editor .lines-content .core-guide{box-sizing:border-box;height:100%;position:absolute}.mtkcontrol{background:#960000!important;color:#fff!important}.mtkoverflow{background-color:var(--vscode-button-background,var(--vscode-editor-background));border-color:var(--vscode-contrastBorder);border-radius:2px;border-style:solid;border-width:1px;color:var(--vscode-button-foreground,var(--vscode-editor-foreground));cursor:pointer;padding:4px}.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{-moz-user-select:none;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{-moz-user-select:text;user-select:text;-webkit-user-select:text;-ms-user-select:text}.monaco-editor.enable-user-select{-moz-user-select:initial;user-select:auto;-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{bottom:0;position:absolute;top:0}.monaco-editor .mtkw,.monaco-editor .mtkz{color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .mtkz{display:inline-block}.monaco-editor .lines-decorations{background:#fff;position:absolute;top:0}.monaco-editor .margin-view-overlays .cldr{height:100%;position:absolute}.monaco-editor .margin-view-overlays .cmdr{height:100%;left:0;position:absolute;width:100%}.monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover .minimap-slider.active,.monaco-editor .minimap.slider-mouseover:hover .minimap-slider{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{left:-6px;position:absolute;width:6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{left:-1px;position:absolute;width:1px}.minimap.autohide{opacity:0;transition:opacity .5s}.minimap.autohide:hover{opacity:1}.monaco-editor .minimap{z-index:5}.monaco-editor .overlayWidgets{left:0;position:absolute;top:0}.monaco-editor .view-ruler{box-shadow:1px 0 0 0 var(--vscode-editorRuler-foreground) inset;position:absolute;top:0}.monaco-editor .scroll-decoration{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;height:6px;left:0;position:absolute;top:0}.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{box-sizing:border-box;overflow:hidden;position:absolute}.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{background:transparent!important;border-bottom-style:solid;border-bottom-width:2px}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{background:transparent!important;border-bottom-style:solid;border-bottom-width:1px}@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{color:var(--vscode-editorWhitespace-foreground)!important;position:absolute}.monaco-workbench .workbench-hover{background:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);border-radius:3px;box-shadow:0 2px 8px var(--vscode-widget-shadow);color:var(--vscode-editorHoverWidget-foreground);font-size:13px;line-height:19px;max-width:700px;overflow:hidden;position:relative;z-index:40}.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{pointer-events:none;position:absolute;z-index:41}.monaco-workbench .workbench-hover-pointer:after{background-color:var(--vscode-editorHoverWidget-background);border-bottom:1px solid var(--vscode-editorHoverWidget-border);border-right:1px solid var(--vscode-editorHoverWidget-border);content:"";height:5px;position:absolute;width:5px}.monaco-workbench .locked .workbench-hover-pointer:after{border-bottom-width:2px;border-right-width:2px;height:4px;width:4px}.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-color:var(--vscode-focusBorder);outline-offset:-1px;text-decoration:underline}.monaco-workbench .workbench-hover a:active,.monaco-workbench .workbench-hover a:hover{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-left:16px;margin-right:0}.monaco-hover{animation:fadein .1s linear;box-sizing:border-box;cursor:default;line-height:1.5em;overflow:hidden;position:absolute;-moz-user-select:text;user-select:text;-webkit-user-select:text;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){word-wrap:break-word;max-width:var(--vscode-hover-maxWidth,500px)}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents) hr{min-width:100%}.monaco-hover .code,.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6,.monaco-hover p,.monaco-hover ul{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{border-left:0;border-right:0;box-sizing:border-box;height:1px;margin:4px -8px -4px}.monaco-hover .code:first-child,.monaco-hover p:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover .code:last-child,.monaco-hover p:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ol,.monaco-hover ul{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{cursor:pointer;margin-right:16px}.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,.monaco-hover .hover-contents a.code-link:hover{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{border-bottom:1px solid transparent;color:var(--vscode-textLink-foreground);text-decoration:underline;text-underline-position:under}.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{display:inline-block;margin-bottom:4px}.monaco-hover-content .action-container a{-webkit-user-select:none;-moz-user-select:none;user-select:none}.monaco-hover-content .action-container.disabled{cursor:default;opacity:.4;pointer-events:none}.monaco-editor .rendered-markdown kbd{background-color:var(--vscode-keybindingLabel-background);border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);border-radius:3px;border-style:solid;border-width:1px;box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);color:var(--vscode-keybindingLabel-foreground);padding:1px 3px;vertical-align:middle}.rendered-markdown li:has(input[type=checkbox]){list-style-type:none}.context-view{position:absolute}.context-view.fixed{all:initial;color:inherit;font-family:inherit;font-size:13px;position:fixed}.monaco-list{height:100%;position:relative;white-space:nowrap;width:100%}.monaco-list.mouse-support{-moz-user-select:none;user-select:none;-webkit-user-select:none}.monaco-list>.monaco-scrollable-element{height:100%}.monaco-list-rows{height:100%;position:relative;width:100%}.monaco-list.horizontal-scrolling .monaco-list-rows{min-width:100%;width:auto}.monaco-list-row{box-sizing:border-box;overflow:hidden;position:absolute;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-multiple,.monaco-list.selection-single{outline:0!important}.monaco-drag-image{border-radius:10px;display:inline-block;font-size:12px;padding:1px 7px;position:absolute;z-index:1000}.monaco-list-type-filter-message{box-sizing:border-box;height:100%;left:0;opacity:.7;padding:40px 1em 1em;pointer-events:none;position:absolute;text-align:center;top:0;white-space:normal;width:100%}.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{box-sizing:border-box;display:none}.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{font-family:var(--monaco-monospace-font);line-height:15px}.monaco-select-box-dropdown-container.visible{border-bottom-left-radius:3px;border-bottom-right-radius:3px;display:flex;flex-direction:column;overflow:hidden;text-align:left;width:1px}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container{align-self:flex-start;box-sizing:border-box;flex:0 0 auto;overflow:hidden;padding-bottom:var(--dropdown-padding-bottom);padding-left:1px;padding-right:1px;padding-top:var(--dropdown-padding-top);width:100%}.monaco-select-box-dropdown-container>.select-box-details-pane{padding:5px}.hc-black .monaco-select-box-dropdown-container>.select-box-dropdown-list-container{padding-bottom:var(--dropdown-padding-bottom);padding-top:var(--dropdown-padding-top)}.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{float:left;overflow:hidden;padding-left:3.5px;text-overflow:ellipsis;white-space:nowrap}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-detail{float:left;opacity:.7;overflow:hidden;padding-left:3.5px;text-overflow:ellipsis;white-space:nowrap}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-decorator-right{float:right;overflow:hidden;padding-right:10px;text-overflow:ellipsis;white-space:nowrap}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.visually-hidden{height:1px;left:-10000px;overflow:hidden;position:absolute;top:auto;width:1px}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control{align-self:flex-start;flex:1 1 auto;opacity:0}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div{max-height:0;overflow:hidden}.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{border-radius:2px;cursor:pointer;width:100%}.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-height:18px;min-width:100px;padding:2px 23px 2px 8px}.mac .monaco-action-bar .action-item .monaco-select-box{border-radius:5px;font-size:11px}.monaco-action-bar{height:100%;white-space:nowrap}.monaco-action-bar .actions-container{align-items:center;display:flex;height:100%;margin:0 auto;padding:0;width:100%}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{align-items:center;cursor:pointer;display:block;justify-content:center;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar .action-item .codicon,.monaco-action-bar .action-item .icon{display:block}.monaco-action-bar .action-item .codicon{align-items:center;display:flex;height:16px;width:16px}.monaco-action-bar .action-label{border-radius:5px;display:flex;font-size:11px;padding:3px}.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{border-bottom:1px solid #bbb;display:block;margin-left:.8em;margin-right:.8em;padding-top:1px}.monaco-action-bar .action-item .action-label.separator{background-color:#bbb;cursor:default;height:16px;margin:5px 4px!important;min-width:1px;padding:0;width:1px}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{align-items:center;display:flex;flex:1;justify-content:center;margin-right:10px;max-width:170px;min-width:60px;overflow:hidden}.monaco-action-bar .action-item.action-dropdown-item{display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator{align-items:center;cursor:default;display:flex}.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{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center}.monaco-dropdown>.dropdown-label>.action-label.disabled{cursor:default}.monaco-dropdown-with-primary{border-radius:5px;display:flex!important;flex-direction:row}.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;line-height:16px;margin-left:-3px;padding-left:0;padding-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{background-position:50%;background-repeat:no-repeat;background-size:16px;display:block}.monaco-action-bar .action-item.menu-entry .action-label.icon{background-position:50%;background-repeat:no-repeat;background-size:16px;height:16px;width:16px}.monaco-dropdown-with-default{border-radius:5px;display:flex!important;flex-direction:row}.monaco-dropdown-with-default>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{background-position:50%;background-repeat:no-repeat;background-size:16px;height:16px;width: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;line-height:16px;margin-left:-3px;padding-left:0;padding-right:0}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{background-position:50%;background-repeat:no-repeat;background-size:16px;display:block}.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:#dedede66;border:1px solid hsla(0,0%,80%,.4);border-bottom-color:#bababa66;box-shadow:inset 0 -1px #bababa66;color:#555}.hc-black .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:1px solid #6fc3df;box-shadow:none;color:#fff}.hc-light .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:1px solid #0f4a85;box-shadow:none;color:#292929}.vs-dark .monaco-keybinding>.monaco-keybinding-key{background-color:#8080802b;border:1px solid rgba(51,51,51,.6);border-bottom-color:#4449;box-shadow:inset 0 -1px #4449;color:#ccc}.monaco-custom-toggle{border:1px solid transparent;border-radius:3px;box-sizing:border-box;cursor:pointer;float:left;height:20px;margin-left:2px;overflow:hidden;padding:1px;-moz-user-select:none;user-select:none;-webkit-user-select:none;width:20px}.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-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle,.hc-light .monaco-custom-toggle:hover{background:none}.monaco-custom-toggle.monaco-checkbox{background-size:16px!important;border:1px solid transparent;border-radius:3px;height:18px;margin-left:0;margin-right:9px;opacity:1;padding:0;width:18px}.monaco-action-bar .checkbox-action-item{align-items:center;display:flex}.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{-webkit-app-region:no-drag;border-radius:6px;left:50%;margin-left:-300px;position:absolute;width:600px;z-index:2550}.quick-input-titlebar{align-items:center;border-radius:inherit;display:flex}.quick-input-left-action-bar{display:flex;flex:1;margin-left:4px}.quick-input-title{overflow:hidden;padding:3px 0;text-align:center;text-overflow:ellipsis}.quick-input-right-action-bar{display:flex;flex:1;margin-right:4px}.quick-input-right-action-bar>.actions-container{justify-content:flex-end}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:50%;background-repeat:no-repeat;padding:2px}.quick-input-description{margin:6px 6px 6px 11px}.quick-input-header .quick-input-description{flex:1;margin:4px 2px}.quick-input-header{display:flex;padding:8px 6px 2px}.quick-input-widget.hidden-input .quick-input-header{margin-bottom:0;padding: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{display:flex;flex-grow:1;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{left:-10000px;position:absolute}.quick-input-count{align-items:center;align-self:center;display:flex;position:absolute;right:4px}.quick-input-count .monaco-count-badge{border-radius:2px;line-height:normal;min-height:auto;padding:2px 4px;vertical-align:middle}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{align-items:center;display:flex;font-size:11px;height:25px;padding:0 6px}.quick-input-message{margin-top:-1px;overflow-wrap:break-word;padding:5px}.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{max-height:440px;overflow:hidden;padding-bottom:5px}.quick-input-list .monaco-scrollable-element{padding:0 5px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;display:flex;height:100%;overflow:hidden;padding:0 6px}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-style:solid;border-top-width:1px}.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{display:flex;flex:1;height:100%;overflow:hidden}.quick-input-list .quick-input-list-checkbox{align-self:center;margin:0}.quick-input-list .quick-input-list-icon{align-items:center;background-position:0;background-repeat:no-repeat;background-size:16px;display:flex;height:22px;justify-content:center;padding-right:6px;width:16px}.quick-input-list .quick-input-list-rows{display:flex;flex:1;flex-direction:column;height:100%;margin-left:5px;overflow:hidden;text-overflow:ellipsis}.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{align-items:center;display:flex}.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{line-height:normal;opacity:.7;overflow:hidden;text-overflow:ellipsis}.quick-input-list .monaco-list .monaco-list-row .monaco-highlighted-label .highlight{background-color:unset;color:var(--vscode-list-highlightForeground)!important;font-weight:700}.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-right:4px;margin-top:1px}.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,.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry.focus-inside .quick-input-list-entry-action-bar .action-label,.quick-input-list .quick-input-list-entry:hover .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{font-size:12px;padding:4px 6px}.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{align-items:center;border:1px solid var(--vscode-button-border,transparent);border-radius:2px;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;line-height:18px;padding:4px;text-align:center;width:100%}.monaco-text-button:focus{outline-offset:2px!important}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled,.monaco-button.disabled:focus{cursor:default;opacity:.4!important}.monaco-text-button .codicon{color:inherit!important;margin:0 .2em}.monaco-text-button.monaco-text-button-with-short-label{flex-direction:row;flex-wrap:wrap;height:28px;overflow:hidden;padding:0 4px}.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;overflow:hidden;width:0}.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{align-items:center;display:flex;font-style:inherit;font-weight:400;justify-content:center;padding:4px 0}.monaco-button-dropdown{cursor:pointer;display:flex}.monaco-button-dropdown.disabled{cursor:default}.monaco-button-dropdown>.monaco-button:focus{outline-offset:-1px!important}.monaco-button-dropdown.disabled>.monaco-button-dropdown-separator,.monaco-button-dropdown.disabled>.monaco-button.disabled,.monaco-button-dropdown.disabled>.monaco-button.disabled:focus{opacity:.4!important}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-right-width:0!important}.monaco-button-dropdown .monaco-button-dropdown-separator{cursor:default;padding:4px 0}.monaco-button-dropdown .monaco-button-dropdown-separator>div{height:100%;width:1px}.monaco-button-dropdown>.monaco-button.monaco-dropdown-button{align-items:center;border:1px solid var(--vscode-button-border,transparent);border-left-width:0!important;border-radius:0 2px 2px 0;display:flex}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-radius:2px 0 0 2px}.monaco-description-button{align-items:center;display:flex;flex-direction:column;margin:4px 5px}.monaco-description-button .monaco-button-description{font-size:11px;font-style:italic;padding:4px 20px}.monaco-description-button .monaco-button-description,.monaco-description-button .monaco-button-label{align-items:center;display:flex;justify-content:center}.monaco-description-button .monaco-button-description>.codicon,.monaco-description-button .monaco-button-label>.codicon{color:inherit!important;margin:0 .2em}.monaco-button-dropdown.default-colors>.monaco-button,.monaco-button.default-colors{background-color:var(--vscode-button-background);color:var(--vscode-button-foreground)}.monaco-button-dropdown.default-colors>.monaco-button:hover,.monaco-button.default-colors:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-button-dropdown.default-colors>.monaco-button.secondary,.monaco-button.default-colors.secondary{background-color:var(--vscode-button-secondaryBackground);color:var(--vscode-button-secondaryForeground)}.monaco-button-dropdown.default-colors>.monaco-button.secondary:hover,.monaco-button.default-colors.secondary:hover{background-color:var(--vscode-button-secondaryHoverBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator{background-color:var(--vscode-button-background);border-bottom:1px solid var(--vscode-button-border);border-top: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{border-radius:11px;box-sizing:border-box;display:inline-block;font-size:11px;font-weight:400;line-height:11px;min-height:18px;min-width:18px;padding:3px 6px;text-align:center}.monaco-count-badge.long{border-radius:2px;line-height:normal;min-height:auto;padding:2px 3px}.monaco-progress-container{height:2px;overflow:hidden;width:100%}.monaco-progress-container .progress-bit{display:none;height:2px;left:0;position:absolute;width:2%}.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-duration:4s;animation-iteration-count:infinite;animation-name:progress;animation-timing-function:linear;transform:translateZ(0)}.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{border-radius:2px;box-sizing:border-box;display:block;font-size:inherit;padding:0;position:relative}.monaco-inputbox>.ibwrapper>.input,.monaco-inputbox>.ibwrapper>.mirror{padding:4px 6px}.monaco-inputbox>.ibwrapper{height:100%;position:relative;width:100%}.monaco-inputbox>.ibwrapper>.input{border:none;box-sizing:border-box;color:inherit;display:inline-block;font-family:inherit;font-size:inherit;height:100%;line-height:inherit;resize:none;width:100%}.monaco-inputbox>.ibwrapper>input{text-overflow:ellipsis}.monaco-inputbox>.ibwrapper>textarea.input{display:block;outline:none;scrollbar-width:none}.monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.ibwrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.ibwrapper>.mirror{word-wrap:break-word;box-sizing:border-box;display:inline-block;left:0;position:absolute;top:0;visibility:hidden;white-space:pre-wrap;width:100%}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{word-wrap:break-word;box-sizing:border-box;display:inline-block;font-size:12px;line-height:17px;margin-top:-1px;overflow:hidden;padding:.4em;text-align:left;width:100%}.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;height:16px;width:16px}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{font-size:13px;width:100%}.monaco-findInput>.controls{position:absolute;right:2px;top:3px}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.hc-light .monaco-findInput.highlight-0 .controls,.monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-0 .1s linear 0s}.hc-light .monaco-findInput.highlight-1 .controls,.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;touch-action:none;z-index:35}.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;height:100%;top:0;width:var(--vscode-sash-size)}.monaco-sash.horizontal{cursor:ns-resize;height:var(--vscode-sash-size);left:0;width:100%}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:" ";cursor:all-scroll;display:block;height:calc(var(--vscode-sash-size)*2);position:absolute;width:calc(var(--vscode-sash-size)*2);z-index:100}.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{bottom:calc(var(--vscode-sash-size)*-1);left:calc(var(--vscode-sash-size)*-.5)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{left:calc(var(--vscode-sash-size)*-1);top:calc(var(--vscode-sash-size)*-.5)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{right:calc(var(--vscode-sash-size)*-1);top:calc(var(--vscode-sash-size)*-.5)}.monaco-sash:before{background:transparent;content:"";height:100%;pointer-events:none;position:absolute;width:100%}.monaco-workbench:not(.reduce-motion) .monaco-sash:before{transition:background-color .1s ease-out}.monaco-sash.active:before,.monaco-sash.hover:before{background:var(--vscode-sash-hoverBorder)}.monaco-sash.vertical:before{left:calc(50% - var(--vscode-sash-hover-size)/2);width:var(--vscode-sash-hover-size)}.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{height:100%;position:relative;width:100%}.monaco-split-view2>.sash-container{height:100%;pointer-events:none;position:absolute;width:100%}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:auto}.monaco-split-view2>.monaco-scrollable-element{height:100%;width:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{height:100%;position:relative;white-space:nowrap;width:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{position:absolute;white-space:normal}.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{background-color:var(--separator-border);content:" ";left:0;pointer-events:none;position:absolute;top:0;z-index:5}.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;height:100%;overflow:hidden;position:relative;white-space:nowrap;width:100%}.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{font-weight:700;height:100%;overflow:hidden;text-overflow:ellipsis;width:100%}.monaco-table-td,.monaco-table-th{box-sizing:border-box;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{border-left:1px solid transparent;content:"";left:calc(var(--vscode-sash-size)/2);position:absolute;width:0}.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{align-items:center;display:flex;height:100%;position:relative}.monaco-tl-row.disabled{cursor:default}.monaco-tl-indent{height:100%;left:16px;pointer-events:none;position:absolute;top:0}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{border-left:1px solid transparent;box-sizing:border-box;display:inline-block;height:100%}.monaco-workbench:not(.reduce-motion) .monaco-tl-indent>.indent-guide{transition:border-color .1s linear}.monaco-tl-contents,.monaco-tl-twistie{height:100%}.monaco-tl-twistie{align-items:center;display:flex!important;flex-shrink:0;font-size:10px;justify-content:center;padding-right:6px;text-align:right;transform:translate(3px);width:16px}.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{border:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px;display:flex;margin:0 6px;max-width:200px;padding:3px;position:absolute;top:0;z-index:100}.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{align-items:center;cursor:grab;display:flex!important;justify-content:center;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{background-color:var(--vscode-sideBar-background);height:0;left:0;position:absolute;top:0;width:100%;z-index:13}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row.monaco-list-row{background-color:var(--vscode-sideBar-background);opacity:1!important;overflow:hidden;position:absolute;width:100%}.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{bottom:-3px;height:0;left:0;position:absolute;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{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-position:0;background-repeat:no-repeat;background-size:16px;display:inline-block;flex-shrink:0;height:22px;line-height:inherit!important;padding-right:6px;vertical-align:top;width:16px}.monaco-icon-label-iconpath{display:flex;height:16px;margin-top:2px;padding-left:2px;width:16px}.monaco-icon-label-container.disabled{color:var(--vscode-disabledForeground)}.monaco-icon-label>.monaco-icon-label-container{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.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{font-size:.9em;margin-left:.5em;opacity:.7;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-description-container>.label-description,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{font-style:italic}.monaco-icon-label.deprecated{opacity:.66;text-decoration:line-through}.monaco-icon-label.italic:after{font-style:italic}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{text-decoration:line-through}.monaco-icon-label:after{font-size:90%;font-weight:600;margin:auto 16px 0 5px;opacity:.75;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{align-items:center;display:flex;line-height:10px}.monaco-keybinding>.monaco-keybinding-key{border-radius:3px;border-style:solid;border-width:1px;display:inline-block;font-size:11px;margin:0 2px;padding:3px 5px;vertical-align:middle}.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{font-size:13px;height:0;line-height:14px;transform:translateY(-10px)}.monaco-editor .diff-hidden-lines .bottom.dragging,.monaco-editor .diff-hidden-lines .top.dragging,.monaco-editor .diff-hidden-lines:not(.dragging) .bottom:hover,.monaco-editor .diff-hidden-lines:not(.dragging) .top:hover{background-color:var(--vscode-focusBorder)}.monaco-editor .diff-hidden-lines .bottom,.monaco-editor .diff-hidden-lines .top{background-clip:padding-box;background-color:transparent;border-bottom:2px solid transparent;border-top:4px solid transparent;height:4px;transition:background-color .1s ease-out}.monaco-editor .diff-hidden-lines .bottom.canMoveTop:not(.canMoveBottom),.monaco-editor .diff-hidden-lines .top.canMoveTop:not(.canMoveBottom),.monaco-editor.draggingUnchangedRegion.canMoveTop:not(.canMoveBottom) *{cursor:n-resize!important}.monaco-editor .diff-hidden-lines .bottom:not(.canMoveTop).canMoveBottom,.monaco-editor .diff-hidden-lines .top:not(.canMoveTop).canMoveBottom,.monaco-editor.draggingUnchangedRegion:not(.canMoveTop).canMoveBottom *{cursor:s-resize!important}.monaco-editor .diff-hidden-lines .bottom.canMoveTop.canMoveBottom,.monaco-editor .diff-hidden-lines .top.canMoveTop.canMoveBottom,.monaco-editor.draggingUnchangedRegion.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{align-items:center;background:var(--vscode-editor-background);display:flex;justify-content:center;z-index:1}.monaco-editor .diff-hidden-lines .center{background:var(--vscode-diffEditor-unchangedRegionBackground);box-shadow:inset 0 -5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow),inset 0 5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow);color:var(--vscode-diffEditor-unchangedRegionForeground);display:block;height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .diff-hidden-lines .center span.codicon{vertical-align:middle}.monaco-editor .diff-hidden-lines .center a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important;cursor:pointer}.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 .movedModified,.monaco-editor .movedOriginal{border:2px solid var(--vscode-diffEditor-move-border)}.monaco-editor .movedModified.currentMove,.monaco-editor .movedOriginal.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{pointer-events:none;position:absolute}.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{border-left:3px solid var(--vscode-diffEditor-removedTextBackground);margin-left:-1px}.monaco-editor .char-insert.diff-range-empty{border-left:3px solid var(--vscode-diffEditor-insertedTextBackground)}.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{font-size:12px;height:12px;width: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:transparent}.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-diff-editor .delete-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-editor .insert-sign{align-items:center;display:flex!important;font-size:11px!important;opacity:.7!important}.monaco-diff-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-diff-editor.hc-light .delete-sign,.monaco-diff-editor.hc-light .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-editor.hc-black .insert-sign,.monaco-editor.hc-light .delete-sign,.monaco-editor.hc-light .insert-sign{opacity:1}.monaco-editor .inline-added-margin-view-zone,.monaco-editor .inline-deleted-margin-view-zone{text-align:right}.monaco-editor .arrow-revert-change{position:absolute;z-index:10}.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-diff-editor .char-insert,.monaco-editor .char-insert{background-color:var(--vscode-diffEditor-insertedTextBackground)}.monaco-diff-editor .line-insert,.monaco-editor .line-insert{background-color:var(--vscode-diffEditor-insertedLineBackground,var(--vscode-diffEditor-insertedTextBackground))}.monaco-editor .char-insert,.monaco-editor .line-insert{border:1px solid var(--vscode-diffEditor-insertedTextBorder);box-sizing:border-box}.monaco-editor.hc-black .char-insert,.monaco-editor.hc-black .line-insert,.monaco-editor.hc-light .char-insert,.monaco-editor.hc-light .line-insert{border-style:dashed}.monaco-editor .char-delete,.monaco-editor .line-delete{border:1px solid var(--vscode-diffEditor-removedTextBorder);box-sizing:border-box}.monaco-editor.hc-black .char-delete,.monaco-editor.hc-black .line-delete,.monaco-editor.hc-light .char-delete,.monaco-editor.hc-light .line-delete{border-style:dashed}.monaco-diff-editor .gutter-insert,.monaco-editor .gutter-insert,.monaco-editor .inline-added-margin-view-zone{background-color:var(--vscode-diffEditorGutter-insertedLineBackground,var(--vscode-diffEditor-insertedLineBackground),var(--vscode-diffEditor-insertedTextBackground))}.monaco-diff-editor .char-delete,.monaco-editor .char-delete{background-color:var(--vscode-diffEditor-removedTextBackground)}.monaco-diff-editor .line-delete,.monaco-editor .line-delete{background-color:var(--vscode-diffEditor-removedLineBackground,var(--vscode-diffEditor-removedTextBackground))}.monaco-diff-editor .gutter-delete,.monaco-editor .gutter-delete,.monaco-editor .inline-deleted-margin-view-zone{background-color:var(--vscode-diffEditorGutter-removedLineBackground,var(--vscode-diffEditor-removedLineBackground),var(--vscode-diffEditor-removedTextBackground))}.monaco-diff-editor.side-by-side .editor.modified{border-left:1px solid var(--vscode-diffEditor-border);box-shadow:-6px 0 5px -5px var(--vscode-scrollbar-shadow)}.monaco-diff-editor.side-by-side .editor.original{border-right:1px solid var(--vscode-diffEditor-border);box-shadow:6px 0 5px -5px var(--vscode-scrollbar-shadow)}.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{flex-grow:0;flex-shrink:0;overflow:hidden;position:relative}.monaco-diff-editor .gutter>div{position:absolute}.monaco-diff-editor .gutter .gutterItem{opacity:0;transition:opacity .7s}.monaco-diff-editor .gutter .gutterItem.showAlways{opacity:1;transition:none}.monaco-diff-editor .gutter .gutterItem.noTransition{transition:none}.monaco-diff-editor .gutter:hover .gutterItem{opacity:1;transition:opacity .1s ease-in-out}.monaco-diff-editor .gutter .gutterItem .background{border-left:2px solid var(--vscode-menu-border);height:100%;left:50%;position:absolute;width:1px}.monaco-diff-editor .gutter .gutterItem .buttons{align-items:center;display:flex;justify-content:center;position:absolute;width:100%}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar{height:-moz-fit-content;height:fit-content}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar .monaco-action-bar{line-height:1}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar .monaco-action-bar .actions-container{background:var(--vscode-editorGutter-commentRangeForeground);border-radius:4px;width:-moz-fit-content;width:fit-content}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar .monaco-action-bar .actions-container .action-item:hover{background:var(--vscode-toolbar-hoverBackground)}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar .monaco-action-bar .actions-container .action-item .action-label{padding:1px 2px}.monaco-component.diff-review{-moz-user-select:none;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{color:var(--vscode-editorLineNumber-foreground);display:inline-block;text-align:right}.monaco-component.diff-review .diff-review-summary{padding-left:10px}.monaco-component.diff-review .diff-review-shadow{box-shadow:var(--vscode-scrollbar-shadow) 0 -6px 6px -6px inset;position:absolute}.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;vertical-align:middle;width:10px}.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{height:16px;margin:2px 0;width:16px}.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);height:100%;overflow-y:hidden;position:relative;width:100%}.monaco-component.multiDiffEditor>div{height:100%;left:0;position:absolute;top:0;width:100%}.monaco-component.multiDiffEditor>div.placeholder{visibility:hidden}.monaco-component.multiDiffEditor>div.placeholder.visible{visibility:visible}.monaco-component.multiDiffEditor>div.placeholder{display:grid;place-content:center;place-items:center}.monaco-component.multiDiffEditor .active{--vscode-multiDiffEditor-border:var(--vscode-focusBorder)}.monaco-component.multiDiffEditor .multiDiffEntry{display:flex;flex:1;flex-direction:column;overflow:hidden}.monaco-component.multiDiffEditor .multiDiffEntry .collapse-button{cursor:pointer;margin:0 5px}.monaco-component.multiDiffEditor .multiDiffEntry .collapse-button a{display:block}.monaco-component.multiDiffEditor .multiDiffEntry .header{background:var(--vscode-editor-background);z-index:1000}.monaco-component.multiDiffEditor .multiDiffEntry .header:not(.collapsed) .header-content{border-bottom:1px solid var(--vscode-sideBarSectionHeader-border)}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content{align-items:center;background:var(--vscode-multiDiffEditor-headerBackground);border-top:1px solid var(--vscode-multiDiffEditor-border);color:var(--vscode-foreground);display:flex;margin:8px 0 0;padding:4px 5px}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content.shadow{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .file-path{display:flex;flex:1;min-width:0}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .file-path .title{font-size:14px;line-height:22px}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .file-path .title.original{flex:1;min-width:0;text-overflow:ellipsis}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .file-path .status{font-weight:600;line-height:22px;margin:0 10px;opacity:.75}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .actions{padding:0 8px}.monaco-component.multiDiffEditor .multiDiffEntry .editorParent{border-bottom:1px solid var(--vscode-multiDiffEditor-border);display:flex;flex:1;flex-direction:column;overflow:hidden}.monaco-component.multiDiffEditor .multiDiffEntry .editorContainer{flex:1}.monaco-editor .selection-anchor{background-color:#007acc;width:2px!important}.monaco-editor .bracket-match{background-color:var(--vscode-editorBracketMatch-background);border:1px solid var(--vscode-editorBracketMatch-border);box-sizing:border-box}.inline-editor-progress-decoration{display:inline-block;height:1em;width:1em}.inline-progress-widget{align-items:center;display:flex!important;justify-content:center}.inline-progress-widget .icon{font-size:80%!important}.inline-progress-widget:hover .icon{animation:none;font-size:90%!important}.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{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-inputValidation-infoBorder);border-radius:3px;color:var(--vscode-editorHoverWidget-foreground);padding:2px 4px}.monaco-editor .monaco-editor-overlaymessage .message p{margin-block:0}.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{border:8px solid transparent;height:0!important;left:2px;position:absolute;width:0!important;z-index:1000}.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.below .anchor.below,.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}.post-edit-widget{background-color:var(--vscode-editorWidget-background);border:1px solid var(--vscode-widget-border,transparent);border-radius:4px;box-shadow:0 0 8px 2px var(--vscode-widget-shadow);overflow:hidden}.post-edit-widget .monaco-button{border:none;border-radius:0;padding:2px}.post-edit-widget .monaco-button:hover{background-color:var(--vscode-button-secondaryHoverBackground)!important}.post-edit-widget .monaco-button .codicon{margin:0}@font-face{font-display:block;font-family:codicon;src:url(./codicon.wpoHPmsu.ttf) format("truetype")}.codicon[class*=codicon-]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font: 16px/1 codicon;text-align:center;text-decoration:none;text-rendering:auto;text-transform:none;-moz-user-select:none;user-select:none;-webkit-user-select:none}.codicon-wrench-subaction{opacity:.5}@keyframes codicon-spin{to{transform:rotate(1turn)}}.codicon-gear.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-notebook-state-executing.codicon-modifier-spin,.codicon-sync.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-enum,.monaco-editor .codicon.codicon-symbol-value,.monaco-workbench .codicon.codicon-symbol-enum,.monaco-workbench .codicon.codicon-symbol-value{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{align-items:center;display:flex;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{background-color:var(--vscode-editor-background);content:"";display:block;height:100%;left:0;opacity:.3;position:absolute;top:0;width:100%;z-index:1}.action-widget{background-color:var(--vscode-editorWidget-background);border:1px solid var(--vscode-editorWidget-border)!important;border-radius:2px;color:var(--vscode-editorWidget-foreground);display:block;font-size:13px;max-width:80vw;min-width:160px;width:100%;z-index:40}.context-view-block{z-index:-1}.context-view-block,.context-view-pointerBlock{cursor:auto;height:100%;left:0;position:fixed;top:0;width:100%}.context-view-pointerBlock{z-index:2}.action-widget .monaco-list{border:0!important;-moz-user-select:none;user-select:none;-webkit-user-select:none}.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{cursor:pointer;padding:0 10px;touch-action:none;white-space:nowrap;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 .focused,.action-widget .monaco-list .option-disabled .focused:before,.action-widget .monaco-list .option-disabled:before{-webkit-touch-callout:none;background-color:transparent!important;cursor:default!important;outline:0 solid!important;-webkit-user-select:none;-moz-user-select:none;user-select:none}.action-widget .monaco-list-row.action{align-items:center;display:flex;gap:6px}.action-widget .monaco-list-row.action.option-disabled,.action-widget .monaco-list-row.action.option-disabled .codicon,.action-widget .monaco-list:focus .monaco-list-row.focused.action.option-disabled,.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);border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);border-radius:3px;border-style:solid;border-width:1px;box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);color:var(--vscode-keybindingLabel-foreground)}.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{content:"";display:block;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{font-feature-settings:var(--vscode-editorCodeLens-fontFeatureSettings);color:var(--vscode-editorCodeLens-foreground);display:inline-block;font-family:var(--vscode-editorCodeLens-fontFamily),var(--vscode-editorCodeLens-fontFamilyDefault);font-size:var(--vscode-editorCodeLens-fontSize);line-height:var(--vscode-editorCodeLens-lineHeight);overflow:hidden;padding-right:calc(var(--vscode-editorCodeLens-fontSize)*.5);text-overflow:ellipsis;white-space:nowrap}.monaco-editor .codelens-decoration>a,.monaco-editor .codelens-decoration>span{-moz-user-select:none;user-select:none;-webkit-user-select:none;vertical-align:sub;white-space:nowrap}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{cursor:pointer}.monaco-editor .codelens-decoration>a:hover,.monaco-editor .codelens-decoration>a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration .codicon{color:currentColor!important;color:var(--vscode-editorCodeLens-foreground);font-size:var(--vscode-editorCodeLens-fontSize);line-height:var(--vscode-editorCodeLens-lineHeight);vertical-align:middle}.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;-moz-user-select:none;user-select:none;-webkit-user-select:none}.colorpicker-color-decoration,.hc-light .colorpicker-color-decoration{border:.1em solid #000;box-sizing:border-box;cursor:pointer;display:inline-block;height:.8em;line-height:.8em;margin:.1em .2em 0;width:.8em}.hc-black .colorpicker-color-decoration,.vs-dark .colorpicker-color-decoration{border:.1em solid #eee}.colorpicker-header{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;display:flex;height:24px;image-rendering:pixelated;position:relative}.colorpicker-header .picked-color{align-items:center;color:#fff;cursor:pointer;display:flex;flex:1;justify-content:center;line-height:24px;overflow:hidden;white-space:nowrap;width:240px}.colorpicker-header .picked-color .picked-color-presentation{margin-left:5px;margin-right:5px;white-space:nowrap}.colorpicker-header .picked-color .codicon{color:inherit;font-size:14px}.colorpicker-header .picked-color.light{color:#000}.colorpicker-header .original-color{cursor:pointer;width:74px;z-index:inherit}.standalone-colorpicker{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground)}.colorpicker-header.standalone-colorpicker{border-bottom:none}.colorpicker-header .close-button{background-color:var(--vscode-editorHoverWidget-background);border-left:1px solid var(--vscode-editorHoverWidget-border);cursor:pointer}.colorpicker-header .close-button-inner-div{height:100%;text-align:center;width:100%}.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{flex:1;height:150px;min-width:220px;overflow:hidden;position:relative}.colorpicker-body .saturation-box{height:150px;position:absolute}.colorpicker-body .saturation-selection{border:1px solid #fff;border-radius:100%;box-shadow:0 0 2px #000c;height:9px;margin:-5px 0 0 -5px;position:absolute;width:9px}.colorpicker-body .strip{height:150px;width:25px}.colorpicker-body .standalone-strip{height:122px;width:25px}.colorpicker-body .hue-strip{background:linear-gradient(180deg,red 0,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red);cursor:grab;margin-left:8px;position:relative}.colorpicker-body .opacity-strip{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;cursor:grab;image-rendering:pixelated;margin-left:8px;position:relative}.colorpicker-body .strip.grabbing{cursor:grabbing}.colorpicker-body .slider{border:1px solid hsla(0,0%,100%,.71);box-shadow:0 0 1px #000000d9;box-sizing:border-box;height:4px;left:-2px;position:absolute;top:0;width:calc(100% + 4px)}.colorpicker-body .strip .overlay{height:150px;pointer-events:none}.colorpicker-body .standalone-strip .standalone-overlay{height:122px;pointer-events:none}.standalone-colorpicker-body{border:1px solid transparent;border-bottom:1px solid var(--vscode-editorHoverWidget-border);display:block;overflow:hidden}.colorpicker-body .insert-button{background:var(--vscode-button-background);border:none;border-radius:2px;bottom:8px;color:var(--vscode-button-foreground);cursor:pointer;height:20px;padding:0;position:absolute;right:8px;width:58px}.colorpicker-body .insert-button:hover{background:var(--vscode-button-hoverBackground)}.monaco-editor .inlineSuggestionsHints.withBorder{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);z-index:39}.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;justify-content:center;min-width:19px}.monaco-editor .inlineSuggestionStatusBarItemLabel{margin-right:2px}.monaco-editor .peekview-widget .head{box-sizing:border-box;display:flex;flex-wrap:nowrap;justify-content:space-between}.monaco-editor .peekview-widget .head .peekview-title{align-items:baseline;display:flex;font-size:13px;margin-left:20px;min-width:0;overflow:hidden;text-overflow:ellipsis}.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 .dirname,.monaco-editor .peekview-widget .head .peekview-title .filename,.monaco-editor .peekview-widget .head .peekview-title .meta{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;padding-right:2px;text-align:right}.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{align-self:center;margin-right:4px}.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-bottom-style:solid;border-bottom-width:0;border-top-style:solid;border-top-width:0;position:relative}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-bottom-width:1px;border-top-width:1px}.monaco-editor .reference-zone-widget .inline{display:inline-block;vertical-align:top}.monaco-editor .reference-zone-widget .messages{height:100%;padding:3em 0;text-align:center;width:100%}.monaco-editor .reference-zone-widget .ref-tree{background-color:var(--vscode-peekViewResult-background);color:var(--vscode-peekViewResult-lineForeground);line-height:23px}.monaco-editor .reference-zone-widget .ref-tree .reference{overflow:hidden;text-overflow:ellipsis}.monaco-editor .reference-zone-widget .ref-tree .reference-file{color:var(--vscode-peekViewResult-fileForeground);display:inline-flex;height:100%;width:100%}.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-left:auto;margin-right:12px}.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 .inputarea.ime-input,.monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background{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{box-sizing:border-box;padding-bottom:2px;padding-right:2px}.monaco-editor .monaco-hover{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);border-radius:3px;color:var(--vscode-editorHoverWidget-foreground)}.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{display:flex;flex-direction:column;min-width:0}.monaco-editor .monaco-hover .hover-row .verbosity-actions{border-right:1px solid var(--vscode-editorHoverWidget-border);display:flex;flex-direction:column;justify-content:end;padding-left:5px;padding-right:5px}.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.hc-light .dnd-target,.monaco-editor.vs .dnd-target{border-right:2px dotted #000;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.hc-black.mac.mouse-default .view-lines,.monaco-editor.hc-light.mac.mouse-default .view-lines,.monaco-editor.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines{cursor:default}.monaco-editor.hc-black.mac.mouse-copy .view-lines,.monaco-editor.hc-light.mac.mouse-copy .view-lines,.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines{cursor:copy}.monaco-editor .findOptionsWidget{background-color:var(--vscode-editorWidget-background);border:2px solid var(--vscode-contrastBorder);box-shadow:0 0 8px 2px var(--vscode-widget-shadow);color:var(--vscode-editorWidget-foreground)}.monaco-editor .find-widget{background-color:var(--vscode-editorWidget-background);border-bottom:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-left:1px solid var(--vscode-widget-border);border-right:1px solid var(--vscode-widget-border);box-shadow:0 0 8px 2px var(--vscode-widget-shadow);box-sizing:border-box;color:var(--vscode-editorWidget-foreground);height:33px;line-height:19px;overflow:hidden;padding:0 4px;position:absolute;transform:translateY(calc(-100% - 10px));transition:transform .2s linear;z-index:35}.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-color:var(--vscode-focusBorder);outline-offset:-1px}.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{display:flex;font-size:12px;margin:3px 25px 0 17px}.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-bottom:2px;padding-top:2px}.monaco-editor .find-widget>.find-part .find-actions,.monaco-editor .find-widget>.replace-part .replace-actions{align-items:center;display:flex;height:25px}.monaco-editor .find-widget .monaco-findInput{display:flex;flex:1;vertical-align:middle}.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{box-sizing:border-box;display:flex;flex:initial;height:25px;line-height:23px;margin:0 0 0 3px;padding:2px 0 0 2px;text-align:center;vertical-align:middle}.monaco-editor .find-widget .button{align-items:center;background-position:50%;background-repeat:no-repeat;border-radius:5px;cursor:pointer;display:flex;flex:initial;height:16px;justify-content:center;margin-left:3px;padding:3px;width:16px}.monaco-editor .find-widget .codicon-find-selection{border-radius:5px;height:22px;padding:3px;width:22px}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{padding:1px 6px;top:-1px;width:auto}.monaco-editor .find-widget .button.toggle{border-radius:0;box-sizing:border-box;height:100%;left:3px;position:absolute;top:0;width:18px}.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{display:flex;flex:auto;flex-grow:0;flex-shrink:0;position:relative;vertical-align:middle}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;right:2px;top:3px}.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.next,.monaco-editor .find-widget.collapsed-find-widget .button.previous,.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);box-sizing:border-box;padding:1px}.monaco-editor .findScope{background-color:var(--vscode-editor-findRangeHighlightBackground)}.monaco-editor .find-widget .monaco-sash{background-color:var(--vscode-editorWidget-resizeBorder,var(--vscode-editorWidget-border));left:0!important}.monaco-editor.hc-black .find-widget .button:before{left:2px;position:relative;top:1px}.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;right:4px;top:5px}.monaco-editor .margin-view-overlays .codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-manual-expanded{align-items:center;cursor:pointer;display:flex;font-size:140%;justify-content:center;margin-left:2px;opacity:0;transition:opacity .5s}.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-collapsed,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-expanded,.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{transition:initial}.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon.codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays:hover .codicon{opacity:1}.monaco-editor .inline-folded:after{color:gray;content:"⋯";cursor:pointer;display:inline;line-height:1em;margin:.1em .2em 0}.monaco-editor .folded-background{background-color:var(--vscode-editor-foldBackground)}.monaco-editor .cldr.codicon.codicon-folding-collapsed,.monaco-editor .cldr.codicon.codicon-folding-expanded,.monaco-editor .cldr.codicon.codicon-folding-manual-collapsed,.monaco-editor .cldr.codicon.codicon-folding-manual-expanded{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{cursor:pointer;display:inline-block;text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-hidden{font-size:0;opacity: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{background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border);color:var(--vscode-editorGhostText-foreground)!important}.monaco-editor .snippet-placeholder{background-color:var(--vscode-editor-snippetTabstopHighlightBackground,transparent);min-width:2px;outline-color:var(--vscode-editor-snippetTabstopHighlightBorder,transparent);outline-style:solid;outline-width:1px}.monaco-editor .finish-snippet-placeholder{background-color:var(--vscode-editor-snippetFinalTabstopHighlightBackground,transparent);outline-color:var(--vscode-editor-snippetFinalTabstopHighlightBorder,transparent);outline-style:solid;outline-width:1px}.monaco-editor .suggest-widget{border-radius:3px;display:flex;flex-direction:column;width:430px;z-index:40}.monaco-editor .suggest-widget.message{align-items:center;flex-direction:row}.monaco-editor .suggest-details,.monaco-editor .suggest-widget{background-color:var(--vscode-editorSuggestWidget-background);border-color:var(--vscode-editorSuggestWidget-border);border-style:solid;border-width:1px;flex:0 1 auto;width:100%}.monaco-editor.hc-black .suggest-details,.monaco-editor.hc-black .suggest-widget,.monaco-editor.hc-light .suggest-details,.monaco-editor.hc-light .suggest-widget{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{border-top:1px solid var(--vscode-editorSuggestWidget-border);box-sizing:border-box;display:none;flex-flow:row nowrap;font-size:80%;justify-content:space-between;overflow:hidden;padding:0 4px;width:100%}.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.focused.string-label>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.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{-moz-user-select:none;user-select:none;-webkit-user-select:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{background-position:2px 2px;background-repeat:no-repeat;-mox-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:flex;padding-right:10px;touch-action:none;white-space:nowrap}.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;justify-content:space-between;overflow:hidden;text-overflow:ellipsis;white-space:pre}.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;cursor:pointer;font-size:14px;opacity:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;right:2px;top:6px}.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{opacity:.6;overflow:hidden;text-overflow:ellipsis}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{align-self:center;font-size:85%;line-height:normal;margin-left:12px;opacity:.4;overflow:hidden;text-overflow:ellipsis}.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 .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,.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.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-grow:1;flex-shrink: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{flex-shrink:4;max-width:70%;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:inline-block;height:18px;position:absolute;right:10px;visibility:hidden;width:18px}.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{background-position:50%;background-repeat:no-repeat;background-size:80%;display:block;height:16px;margin-left:2px;width:16px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{align-items:center;display:flex;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{border:.1em solid #000;display:inline-block;height:.7em;margin:0 0 0 .3em;width:.7em}.monaco-editor .suggest-details-container{z-index:41}.monaco-editor .suggest-details{color:var(--vscode-editorSuggestWidget-foreground);cursor:default;display:flex;flex-direction:column}.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;margin:0 24px 0 0;opacity:.7;overflow:hidden;padding:4px 0 12px 5px;text-overflow:ellipsis;white-space:pre}.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{min-height:calc(1rem + 8px);padding:0;white-space:normal}.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{word-wrap:break-word;white-space:pre-wrap}.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 ol,.monaco-editor .suggest-details ul{padding-left:20px}.monaco-editor .suggest-details p code{font-family:var(--monaco-monospace-font)}.monaco-editor .goto-definition-link{color:var(--vscode-editorLink-activeForeground)!important;cursor:pointer;text-decoration:underline}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;margin-right:4px;vertical-align:text-top}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{font-style:italic;opacity:.6}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{padding:8px 12px 0 20px;position:absolute;-moz-user-select:text;user-select:text;-webkit-user-select:text;white-space:pre}.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{color:inherit;opacity:.6}.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{border-bottom:1px solid transparent;color:var(--vscode-textLink-activeForeground);text-decoration:underline;text-underline-position:under}.monaco-editor .marker-widget .descriptioncontainer .filename{color:var(--vscode-textLink-activeForeground);cursor:pointer}.extension-editor .codicon.codicon-error,.extensions-viewlet>.extensions .codicon.codicon-error,.markers-panel .marker-icon .codicon.codicon-error,.markers-panel .marker-icon.error,.monaco-editor .zone-widget .codicon.codicon-error,.preferences-editor .codicon.codicon-error,.text-search-provider-messages .providerMessage .codicon.codicon-error{color:var(--vscode-problemsErrorIcon-foreground)}.extension-editor .codicon.codicon-warning,.extensions-viewlet>.extensions .codicon.codicon-warning,.markers-panel .marker-icon .codicon.codicon-warning,.markers-panel .marker-icon.warning,.monaco-editor .zone-widget .codicon.codicon-warning,.preferences-editor .codicon.codicon-warning,.text-search-provider-messages .providerMessage .codicon.codicon-warning{color:var(--vscode-problemsWarningIcon-foreground)}.extension-editor .codicon.codicon-info,.extensions-viewlet>.extensions .codicon.codicon-info,.markers-panel .marker-icon .codicon.codicon-info,.markers-panel .marker-icon.info,.monaco-editor .zone-widget .codicon.codicon-info,.preferences-editor .codicon.codicon-info,.text-search-provider-messages .providerMessage .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{color:var(--vscode-editorLink-activeForeground)!important;cursor:pointer}.monaco-editor .focused .selectionHighlight{background-color:var(--vscode-editor-selectionHighlightBackground);border:1px solid var(--vscode-editor-selectionHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .focused .selectionHighlight,.monaco-editor.hc-light .focused .selectionHighlight{border-style:dotted}.monaco-editor .wordHighlight{background-color:var(--vscode-editor-wordHighlightBackground);border:1px solid var(--vscode-editor-wordHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .wordHighlight,.monaco-editor.hc-light .wordHighlight{border-style:dotted}.monaco-editor .wordHighlightStrong{background-color:var(--vscode-editor-wordHighlightStrongBackground);border:1px solid var(--vscode-editor-wordHighlightStrongBorder);box-sizing:border-box}.monaco-editor.hc-black .wordHighlightStrong,.monaco-editor.hc-light .wordHighlightStrong{border-style:dotted}.monaco-editor .wordHighlightText{background-color:var(--vscode-editor-wordHighlightTextBackground);border:1px solid var(--vscode-editor-wordHighlightTextBorder);box-sizing:border-box}.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{font-size:0;opacity: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{background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border);color:var(--vscode-editorGhostText-foreground)!important}.monaco-editor .inlineEditHints.withBorder{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);z-index:39}.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{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);cursor:default;display:flex;flex-direction:column;line-height:1.5em;z-index:39}.hc-black .monaco-editor .parameter-hints-widget,.hc-light .monaco-editor .parameter-hints-widget{border-width:2px}.monaco-editor .parameter-hints-widget>.phwrapper{display:flex;flex-direction:row;max-width:440px}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0}.monaco-editor .parameter-hints-widget.multiple .body:before{border-left:1px solid var(--vscode-editorHoverWidget-border);content:"";display:block;height:100%;opacity:.5;position:absolute}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .body,.monaco-editor .parameter-hints-widget .monaco-scrollable-element{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{border-bottom:1px solid var(--vscode-editorHoverWidget-border);content:"";display:block;left:0;opacity:.5;padding-top:4px;position:absolute;width:100%}.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:normal}.monaco-editor .parameter-hints-widget .docs code{background-color:var(--vscode-textCodeBlock-background);border-radius:3px;font-family:var(--monaco-monospace-font);padding:0 .4em}.monaco-editor .parameter-hints-widget .docs .code,.monaco-editor .parameter-hints-widget .docs .monaco-tokenized-source{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .controls{align-items:center;display:none;flex-direction:column;justify-content:flex-end;min-width:22px}.monaco-editor .parameter-hints-widget.multiple .controls{display:flex;padding:0 2px}.monaco-editor .parameter-hints-widget.multiple .button{background-repeat:no-repeat;cursor:pointer;height:16px;width:16px}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px}.monaco-editor .parameter-hints-widget .overloads{font-family:var(--monaco-monospace-font);height:12px;line-height:12px;text-align:center}.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{border-radius:4px;color:inherit;z-index:100}.monaco-editor .rename-box.preview{padding:4px 4px 0}.monaco-editor .rename-box .rename-input-with-button{border-radius:2px;padding:3px;width:calc(100% - 8px)}.monaco-editor .rename-box .rename-input{padding:0;width:calc(100% - 8px)}.monaco-editor .rename-box .rename-input:focus{outline:none}.monaco-editor .rename-box .rename-suggestions-button{align-items:center;background-color:transparent;border:none;border-radius:5px;cursor:pointer;display:flex;padding:3px}.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{background-color:inherit;float:left}.monaco-editor .sticky-widget-lines-scrollable{background-color:inherit;display:inline-block;overflow:hidden;position:absolute;width:var(--vscode-editorStickyScroll-scrollableWidth)}.monaco-editor .sticky-widget-lines{background-color:inherit;position:absolute}.monaco-editor .sticky-line-content,.monaco-editor .sticky-line-number{background-color:inherit;color:var(--vscode-editorLineNumber-foreground);display:inline-block;position:absolute;white-space:nowrap}.monaco-editor .sticky-line-number .codicon-folding-collapsed,.monaco-editor .sticky-line-number .codicon-folding-expanded{float:right;transition:var(--vscode-editorStickyScroll-foldingOpacityTransition)}.monaco-editor .sticky-line-content{background-color:inherit;white-space:nowrap;width:var(--vscode-editorStickyScroll-scrollableWidth)}.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{background-color:var(--vscode-editorStickyScroll-background);box-shadow:var(--vscode-editorStickyScroll-shadow) 0 3px 2px -2px;right:auto!important;width:100%;z-index:4}.monaco-editor .sticky-widget.peek{background-color:var(--vscode-peekViewEditorStickyScroll-background)}.monaco-editor .unicode-highlight{background-color:var(--vscode-editorUnicodeHighlight-background);border:1px solid var(--vscode-editorUnicodeHighlight-border);box-sizing:border-box}.editor-banner{background:var(--vscode-banner-background);box-sizing:border-box;cursor:default;display:flex;font-size:12px;height:26px;overflow:visible;width:100%}.editor-banner .icon-container{align-items:center;display:flex;flex-shrink:0;padding:0 6px 0 10px}.editor-banner .icon-container.custom-icon{background-position:50%;background-repeat:no-repeat;background-size:16px;margin:0 6px 0 10px;padding:0;width:16px}.editor-banner .message-container{align-items:center;display:flex;line-height:26px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-banner .message-container p{margin-block-end:0;margin-block-start: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{margin:2px 8px;padding:0 12px;width:inherit}.editor-banner .message-actions-container a{margin-left:12px;padding:3px;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{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQ4LjAzNiA0LjAxSDQuMDA4VjMyLjAzaDQ0LjAyOFY0LjAxWk00LjAwOC4wMDhBNC4wMDMgNC4wMDMgMCAwIDAgLjAwNSA0LjAxVjMyLjAzYTQuMDAzIDQuMDAzIDAgMCAwIDQuMDAzIDQuMDAyaDQ0LjAyOGE0LjAwMyA0LjAwMyAwIDAgMCA0LjAwMy00LjAwMlY0LjAxQTQuMDAzIDQuMDAzIDAgMCAwIDQ4LjAzNi4wMDhINC4wMDhaTTguMDEgOC4wMTNoNC4wMDN2NC4wMDNIOC4wMVY4LjAxM1ptMTIuMDA4IDBoLTQuMDAydjQuMDAzaDQuMDAyVjguMDEzWm00LjAwMyAwaDQuMDAydjQuMDAzaC00LjAwMlY4LjAxM1ptMTIuMDA4IDBoLTQuMDAzdjQuMDAzaDQuMDAzVjguMDEzWm00LjAwMiAwaDQuMDAzdjQuMDAzSDQwLjAzVjguMDEzWm0tMjQuMDE1IDguMDA1SDguMDF2NC4wMDNoOC4wMDZ2LTQuMDAzWm00LjAwMiAwaDQuMDAzdjQuMDAzaC00LjAwM3YtNC4wMDNabTEyLjAwOCAwaC00LjAwM3Y0LjAwM2g0LjAwM3YtNC4wMDNabTEyLjAwOCAwdjQuMDAzaC04LjAwNXYtNC4wMDNoOC4wMDVabS0zMi4wMjEgOC4wMDVIOC4wMXY0LjAwM2g0LjAwM3YtNC4wMDNabTQuMDAzIDBoMjAuMDEzdjQuMDAzSDE2LjAxNnYtNC4wMDNabTI4LjAxOCAwSDQwLjAzdjQuMDAzaDQuMDAzdi00LjAwM1oiIGZpbGw9IiM0MjQyNDIiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDUzdjM2SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+) 50% no-repeat;border:4px solid #f6f6f6;border-radius:4px;height:36px;margin:0;min-height:0;min-width:0;overflow:hidden;padding:0;position:absolute;resize:none;width:58px}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQ4LjAzNiA0LjAxSDQuMDA4VjMyLjAzaDQ0LjAyOFY0LjAxWk00LjAwOC4wMDhBNC4wMDMgNC4wMDMgMCAwIDAgLjAwNSA0LjAxVjMyLjAzYTQuMDAzIDQuMDAzIDAgMCAwIDQuMDAzIDQuMDAyaDQ0LjAyOGE0LjAwMyA0LjAwMyAwIDAgMCA0LjAwMy00LjAwMlY0LjAxQTQuMDAzIDQuMDAzIDAgMCAwIDQ4LjAzNi4wMDhINC4wMDhaTTguMDEgOC4wMTNoNC4wMDN2NC4wMDNIOC4wMVY4LjAxM1ptMTIuMDA4IDBoLTQuMDAydjQuMDAzaDQuMDAyVjguMDEzWm00LjAwMyAwaDQuMDAydjQuMDAzaC00LjAwMlY4LjAxM1ptMTIuMDA4IDBoLTQuMDAzdjQuMDAzaDQuMDAzVjguMDEzWm00LjAwMiAwaDQuMDAzdjQuMDAzSDQwLjAzVjguMDEzWm0tMjQuMDE1IDguMDA1SDguMDF2NC4wMDNoOC4wMDZ2LTQuMDAzWm00LjAwMiAwaDQuMDAzdjQuMDAzaC00LjAwM3YtNC4wMDNabTEyLjAwOCAwaC00LjAwM3Y0LjAwM2g0LjAwM3YtNC4wMDNabTEyLjAwOCAwdjQuMDAzaC04LjAwNXYtNC4wMDNoOC4wMDVabS0zMi4wMjEgOC4wMDVIOC4wMXY0LjAwM2g0LjAwM3YtNC4wMDNabTQuMDAzIDBoMjAuMDEzdjQuMDAzSDE2LjAxNnYtNC4wMDNabTI4LjAxOCAwSDQwLjAzdjQuMDAzaDQuMDAzdi00LjAwM1oiIGZpbGw9IiNDNUM1QzUiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDUzdjM2SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+) 50% no-repeat;border:4px solid #252526}.monaco-editor .tokens-inspect-widget{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);padding:10px;-moz-user-select:text;user-select:text;-webkit-user-select:text;z-index:50}.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{background-color:var(--vscode-editorHoverWidget-border);border:0;height:1px}.monaco-editor .tokens-inspect-widget .tm-token{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget .tm-token-length{float:right;font-size:60%;font-weight:400}.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/ui/assets/local/_app/immutable/assets/nexus-form.0AsccRPT.css b/ui/assets/local/_app/immutable/assets/nexus-form.0AsccRPT.css deleted file mode 100644 index bfbcd2555b..0000000000 --- a/ui/assets/local/_app/immutable/assets/nexus-form.0AsccRPT.css +++ /dev/null @@ -1 +0,0 @@ -.error.svelte-1wpf05e.svelte-1wpf05e,.error.svelte-1wpf05e.svelte-1wpf05e:hover{border-color:rgb(var(--color-border-danger))}.error.svelte-1wpf05e.svelte-1wpf05e:focus-visible{--tw-shadow:0 0 0 4px rgb(249,115,22,.7);--tw-shadow-colored:0 0 0 4px var(--tw-shadow-color);border-color:rgb(var(--color-border-danger));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.count.svelte-1wpf05e.svelte-1wpf05e{bottom:-1.25rem;color:rgb(var(--color-text-primary));font-size:.875rem;font-weight:500;line-height:1.25rem;position:absolute;right:0;visibility:hidden}.count.svelte-1wpf05e>.warn.svelte-1wpf05e{color:rgb(234 103 12/var(--tw-text-opacity))}.count.svelte-1wpf05e>.error.svelte-1wpf05e,.count.svelte-1wpf05e>.warn.svelte-1wpf05e{--tw-text-opacity:1}.count.svelte-1wpf05e>.error.svelte-1wpf05e{color:rgb(199 22 7/var(--tw-text-opacity))}textarea.svelte-1wpf05e:focus+.count.svelte-1wpf05e{visibility:visible}textarea.svelte-1wpf05e.svelte-1wpf05e{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}textarea.svelte-1wpf05e.svelte-1wpf05e:where([data-theme=dark],[data-theme=dark] *){background-color:transparent}.preview.svelte-1wpf05e.svelte-1wpf05e{margin-bottom:1rem;margin-top:1rem}.preview.svelte-1wpf05e h1{font-size:2.25rem;line-height:2.5rem}.preview.svelte-1wpf05e h2{font-size:1.875rem;line-height:2.25rem}.preview.svelte-1wpf05e h3{font-size:1.5rem;line-height:2rem}.preview.svelte-1wpf05e h4{font-size:1.25rem;line-height:1.75rem}.preview.svelte-1wpf05e h5{font-size:1.125rem;line-height:1.75rem}.preview.svelte-1wpf05e h6{font-size:1rem;line-height:1.5rem}.preview.svelte-1wpf05e ol,.preview.svelte-1wpf05e ul{list-style-position:inside;list-style-type:disc} diff --git a/ui/assets/local/_app/immutable/chunks/abap.uAUKeg2c.js b/ui/assets/local/_app/immutable/chunks/abap.uAUKeg2c.js new file mode 100644 index 0000000000..99ed3c5b29 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/abap.uAUKeg2c.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"*"},brackets:[["[","]"],["(",")"]]},t={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"]]}};export{e as conf,t as language}; diff --git a/ui/assets/local/_app/immutable/chunks/accordion.N-Ppv0Ka.js b/ui/assets/local/_app/immutable/chunks/accordion.ewMbP6ia.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/accordion.N-Ppv0Ka.js rename to ui/assets/local/_app/immutable/chunks/accordion.ewMbP6ia.js index 87e70ef416..7b69f13886 100644 --- a/ui/assets/local/_app/immutable/chunks/accordion.N-Ppv0Ka.js +++ b/ui/assets/local/_app/immutable/chunks/accordion.ewMbP6ia.js @@ -1 +1 @@ -import{s as De,a as Z,z as le,h as D,b as V,t as se,j as q,k as H,d as N,l as ae,f as I,m as c,I as _e,F as de,i as Ae,n as m,p as x,G as ge,q as ie,u as $,g as ee,e as te,H as Ve,E as be,A as qe,v as He,B as he}from"./scheduler.1T9hOnFr.js";import{S as Ne,i as Pe,c as ne,a as oe,m as re,t as k,g as ve,b as y,e as pe,d as fe}from"./index.cVovwi_s.js";import{g as Se}from"./spread.rEx3vLA9.js";import{B as je}from"./badge.kH3kuYyU.js";import{I as Be}from"./icon.w8eknFMq.js";import{t as ke}from"./tw-merge.NbP7EmZe.js";import{v as we}from"./toaster.IevlZuOP.js";const ze=s=>({}),Ee=s=>({}),Ce=s=>({}),ye=s=>({});function Ie(s){let t,l;return t=new Be({props:{name:s[4]}}),{c(){ne(t.$$.fragment)},l(a){oe(t.$$.fragment,a)},m(a,o){re(t,a,o),l=!0},p(a,o){const p={};o&16&&(p.name=a[4]),t.$set(p)},i(a){l||(k(t.$$.fragment,a),l=!0)},o(a){y(t.$$.fragment,a),l=!1},d(a){fe(t,a)}}}function Te(s){let t,l;return t=new je({props:{class:"mr-2",type:"danger",$$slots:{default:[Fe]},$$scope:{ctx:s}}}),{c(){ne(t.$$.fragment)},l(a){oe(t.$$.fragment,a)},m(a,o){re(t,a,o),l=!0},p(a,o){const p={};o&8224&&(p.$$scope={dirty:o,ctx:a}),t.$set(p)},i(a){l||(k(t.$$.fragment,a),l=!0)},o(a){y(t.$$.fragment,a),l=!1},d(a){fe(t,a)}}}function Fe(s){let t;return{c(){t=se(s[5])},l(l){t=ae(l,s[5])},m(l,a){Ae(l,t,a)},p(l,a){a&32&&ie(t,l[5])},d(l){l&&I(t)}}}function Ge(s){let t,l,a,o,p,T,P,S,E,j,_,w,d,A,z,C,F,n,g,O,U,J,u,Q,ue,r=s[4]&&Ie(s);const R=s[10].summary,b=Z(R,s,s[13],ye),W=s[10].action,h=Z(W,s,s[13],Ee);_=new Be({props:{class:"m-2",name:s[0]?"chevron-up":"chevron-down"}});let f=s[5]&&Te(s);const X=s[10].default,v=Z(X,s,s[13],null);let Y=[{class:J=ke("surface-primary flex w-full cursor-default flex-col rounded-2xl border-2 border-subtle p-2 text-primary focus-within:ring-4 focus-within:ring-primary/70",s[6])},s[8]],K={};for(let e=0;e{r=null}),pe()),(!u||i&2)&&ie(T,e[1]),b&&b.p&&(!u||i&8192)&&$(b,R,e,e[13],u?te(R,e[13],i,Ce):ee(e[13]),ye),h&&h.p&&(!u||i&8192)&&$(h,W,e,e[13],u?te(W,e[13],i,ze):ee(e[13]),Ee);const B={};i&1&&(B.name=e[0]?"chevron-up":"chevron-down"),_.$set(B),e[5]?f?(f.p(e,i),i&32&&k(f,1)):(f=Te(e),f.c(),k(f,1),f.m(d,A)):f&&(ve(),y(f,1,1,()=>{f=null}),pe()),(!u||i&8)&&ie(z,e[3]),(!u||i&4&&C!==(C=e[2]+"-trigger"))&&c(l,"id",C),(!u||i&1)&&c(l,"aria-expanded",e[0]),(!u||i&4&&F!==(F=e[2]+"-content"))&&c(l,"aria-controls",F),v&&v.p&&(!u||i&8192)&&$(v,X,e,e[13],u?te(X,e[13],i,null):ee(e[13]),null),(!u||i&4&&O!==(O=e[2]+"-content"))&&c(g,"id",O),(!u||i&4&&U!==(U=e[2]+"-trigger"))&&c(g,"aria-labelledby",U),(!u||i&1)&&_e(g,"hidden",!e[0]),de(t,K=Se(Y,[(!u||i&64&&J!==(J=ke("surface-primary flex w-full cursor-default flex-col rounded-2xl border-2 border-subtle p-2 text-primary focus-within:ring-4 focus-within:ring-primary/70",e[6])))&&{class:J},i&256&&e[8]]))},i(e){u||(k(r),k(b,e),k(h,e),k(_.$$.fragment,e),k(f),k(v,e),u=!0)},o(e){y(r),y(b,e),y(h,e),y(_.$$.fragment,e),y(f),y(v,e),u=!1},d(e){e&&I(t),r&&r.d(),b&&b.d(e),h&&h.d(e),fe(_),f&&f.d(),v&&v.d(e),Q=!1,Ve(ue)}}}function Me(s,t,l){const a=["title","id","subtitle","icon","open","error","onToggle","class"];let o=be(t,a),{$$slots:p={},$$scope:T}=t,{title:P}=t,{id:S=we()}=t,{subtitle:E=""}=t,{icon:j=null}=t,{open:_=!1}=t,{error:w=""}=t,{onToggle:d=He}=t,{class:A=""}=t;const z=()=>{l(0,_=!_),d()};function C(n){he.call(this,s,n)}function F(n){he.call(this,s,n)}return s.$$set=n=>{t=le(le({},t),qe(n)),l(8,o=be(t,a)),"title"in n&&l(1,P=n.title),"id"in n&&l(2,S=n.id),"subtitle"in n&&l(3,E=n.subtitle),"icon"in n&&l(4,j=n.icon),"open"in n&&l(0,_=n.open),"error"in n&&l(5,w=n.error),"onToggle"in n&&l(9,d=n.onToggle),"class"in n&&l(6,A=n.class),"$$scope"in n&&l(13,T=n.$$scope)},[_,P,S,E,j,w,A,z,o,d,p,C,F,T]}class We extends Ne{constructor(t){super(),Pe(this,t,Me,Ge,De,{title:1,id:2,subtitle:3,icon:4,open:0,error:5,onToggle:9,class:6})}}export{We as A}; +import{s as De,a as Z,z as le,h as D,b as V,t as se,j as q,k as H,d as N,l as ae,f as I,m as c,I as _e,F as de,i as Ae,n as m,p as x,G as ge,q as ie,u as $,g as ee,e as te,H as Ve,E as be,A as qe,v as He,B as he}from"./scheduler.pPC3woXQ.js";import{S as Ne,i as Pe,c as ne,a as oe,m as re,t as k,g as ve,b as y,e as pe,d as fe}from"./index.Z3Qqxacm.js";import{g as Se}from"./spread.rEx3vLA9.js";import{B as je}from"./badge.rkMH44Sz.js";import{I as Be}from"./icon.IMxiy1l_.js";import{t as ke}from"./tw-merge.NbP7EmZe.js";import{v as we}from"./toaster.pceGNaxq.js";const ze=s=>({}),Ee=s=>({}),Ce=s=>({}),ye=s=>({});function Ie(s){let t,l;return t=new Be({props:{name:s[4]}}),{c(){ne(t.$$.fragment)},l(a){oe(t.$$.fragment,a)},m(a,o){re(t,a,o),l=!0},p(a,o){const p={};o&16&&(p.name=a[4]),t.$set(p)},i(a){l||(k(t.$$.fragment,a),l=!0)},o(a){y(t.$$.fragment,a),l=!1},d(a){fe(t,a)}}}function Te(s){let t,l;return t=new je({props:{class:"mr-2",type:"danger",$$slots:{default:[Fe]},$$scope:{ctx:s}}}),{c(){ne(t.$$.fragment)},l(a){oe(t.$$.fragment,a)},m(a,o){re(t,a,o),l=!0},p(a,o){const p={};o&8224&&(p.$$scope={dirty:o,ctx:a}),t.$set(p)},i(a){l||(k(t.$$.fragment,a),l=!0)},o(a){y(t.$$.fragment,a),l=!1},d(a){fe(t,a)}}}function Fe(s){let t;return{c(){t=se(s[5])},l(l){t=ae(l,s[5])},m(l,a){Ae(l,t,a)},p(l,a){a&32&&ie(t,l[5])},d(l){l&&I(t)}}}function Ge(s){let t,l,a,o,p,T,P,S,E,j,_,w,d,A,z,C,F,n,g,O,U,J,u,Q,ue,r=s[4]&&Ie(s);const R=s[10].summary,b=Z(R,s,s[13],ye),W=s[10].action,h=Z(W,s,s[13],Ee);_=new Be({props:{class:"m-2",name:s[0]?"chevron-up":"chevron-down"}});let f=s[5]&&Te(s);const X=s[10].default,v=Z(X,s,s[13],null);let Y=[{class:J=ke("surface-primary flex w-full cursor-default flex-col rounded-2xl border-2 border-subtle p-2 text-primary focus-within:ring-4 focus-within:ring-primary/70",s[6])},s[8]],K={};for(let e=0;e{r=null}),pe()),(!u||i&2)&&ie(T,e[1]),b&&b.p&&(!u||i&8192)&&$(b,R,e,e[13],u?te(R,e[13],i,Ce):ee(e[13]),ye),h&&h.p&&(!u||i&8192)&&$(h,W,e,e[13],u?te(W,e[13],i,ze):ee(e[13]),Ee);const B={};i&1&&(B.name=e[0]?"chevron-up":"chevron-down"),_.$set(B),e[5]?f?(f.p(e,i),i&32&&k(f,1)):(f=Te(e),f.c(),k(f,1),f.m(d,A)):f&&(ve(),y(f,1,1,()=>{f=null}),pe()),(!u||i&8)&&ie(z,e[3]),(!u||i&4&&C!==(C=e[2]+"-trigger"))&&c(l,"id",C),(!u||i&1)&&c(l,"aria-expanded",e[0]),(!u||i&4&&F!==(F=e[2]+"-content"))&&c(l,"aria-controls",F),v&&v.p&&(!u||i&8192)&&$(v,X,e,e[13],u?te(X,e[13],i,null):ee(e[13]),null),(!u||i&4&&O!==(O=e[2]+"-content"))&&c(g,"id",O),(!u||i&4&&U!==(U=e[2]+"-trigger"))&&c(g,"aria-labelledby",U),(!u||i&1)&&_e(g,"hidden",!e[0]),de(t,K=Se(Y,[(!u||i&64&&J!==(J=ke("surface-primary flex w-full cursor-default flex-col rounded-2xl border-2 border-subtle p-2 text-primary focus-within:ring-4 focus-within:ring-primary/70",e[6])))&&{class:J},i&256&&e[8]]))},i(e){u||(k(r),k(b,e),k(h,e),k(_.$$.fragment,e),k(f),k(v,e),u=!0)},o(e){y(r),y(b,e),y(h,e),y(_.$$.fragment,e),y(f),y(v,e),u=!1},d(e){e&&I(t),r&&r.d(),b&&b.d(e),h&&h.d(e),fe(_),f&&f.d(),v&&v.d(e),Q=!1,Ve(ue)}}}function Me(s,t,l){const a=["title","id","subtitle","icon","open","error","onToggle","class"];let o=be(t,a),{$$slots:p={},$$scope:T}=t,{title:P}=t,{id:S=we()}=t,{subtitle:E=""}=t,{icon:j=null}=t,{open:_=!1}=t,{error:w=""}=t,{onToggle:d=He}=t,{class:A=""}=t;const z=()=>{l(0,_=!_),d()};function C(n){he.call(this,s,n)}function F(n){he.call(this,s,n)}return s.$$set=n=>{t=le(le({},t),qe(n)),l(8,o=be(t,a)),"title"in n&&l(1,P=n.title),"id"in n&&l(2,S=n.id),"subtitle"in n&&l(3,E=n.subtitle),"icon"in n&&l(4,j=n.icon),"open"in n&&l(0,_=n.open),"error"in n&&l(5,w=n.error),"onToggle"in n&&l(9,d=n.onToggle),"class"in n&&l(6,A=n.class),"$$scope"in n&&l(13,T=n.$$scope)},[_,P,S,E,j,w,A,z,o,d,p,C,F,T]}class We extends Ne{constructor(t){super(),Pe(this,t,Me,Ge,De,{title:1,id:2,subtitle:3,icon:4,open:0,error:5,onToggle:9,class:6})}}export{We as A}; diff --git a/ui/assets/local/_app/immutable/chunks/alert.9MQQTq3k.js b/ui/assets/local/_app/immutable/chunks/alert.j__UttVI.js similarity index 90% rename from ui/assets/local/_app/immutable/chunks/alert.9MQQTq3k.js rename to ui/assets/local/_app/immutable/chunks/alert.j__UttVI.js index 2c03f8f76c..e16230cc50 100644 --- a/ui/assets/local/_app/immutable/chunks/alert.9MQQTq3k.js +++ b/ui/assets/local/_app/immutable/chunks/alert.j__UttVI.js @@ -1 +1 @@ -import{s as M,z as D,h as E,b as P,t as N,j as I,k as p,d as S,l as R,f as g,m as V,F as j,I as k,i as L,n as v,q as B,E as z,L as G,A as H,a as J,u as K,g as O,e as Q}from"./scheduler.1T9hOnFr.js";import{S as T,i as U,c as W,a as X,m as Y,t as b,g as Z,b as A,e as y,d as w}from"./index.cVovwi_s.js";import{g as x}from"./spread.rEx3vLA9.js";import{I as $}from"./icon.w8eknFMq.js";import{t as C}from"./tw-merge.NbP7EmZe.js";function F(n){let e,i;const u=n[9].default,l=J(u,n,n[8],null);return{c(){e=E("div"),l&&l.c(),this.h()},l(a){e=I(a,"DIV",{class:!0});var r=p(e);l&&l.l(r),r.forEach(g),this.h()},h(){V(e,"class","content svelte-xu7x16")},m(a,r){L(a,e,r),l&&l.m(e,null),i=!0},p(a,r){l&&l.p&&(!i||r&256)&&K(l,u,a,a[8],i?Q(u,a[8],r,null):O(a[8]),null)},i(a){i||(b(l,a),i=!0)},o(a){A(l,a),i=!1},d(a){a&&g(e),l&&l.d(a)}}}function ee(n){let e,i,u,l,a,r,d,_,f;i=new $({props:{name:n[2],class:"mt-0.5 shrink-0"}});let o=n[7].default&&F(n),h=[{class:_=C("alert flex",n[0],n[4])},{role:n[5]},n[6]],c={};for(let s=0;s{o=null}),y()),j(e,c=x(h,[(!f||t&17&&_!==(_=C("alert flex",s[0],s[4])))&&{class:_},(!f||t&32)&&{role:s[5]},t&64&&s[6]])),k(e,"hidden",s[3]),k(e,"svelte-xu7x16",!0)},i(s){f||(b(i.$$.fragment,s),b(o),f=!0)},o(s){A(i.$$.fragment,s),A(o),f=!1},d(s){s&&g(e),w(i),o&&o.d()}}}function te(n){return n==="error"?"alert":n==="success"||n==="warning"?"status":null}function se(n,e,i){let u;const l=["intent","title","icon","hidden","class"];let a=z(e,l),{$$slots:r={},$$scope:d}=e;const _=G(r);let{intent:f}=e,{title:o=""}=e,{icon:h=f}=e,{hidden:c=!1}=e,{class:s=""}=e;return n.$$set=t=>{e=D(D({},e),H(t)),i(6,a=z(e,l)),"intent"in t&&i(0,f=t.intent),"title"in t&&i(1,o=t.title),"icon"in t&&i(2,h=t.icon),"hidden"in t&&i(3,c=t.hidden),"class"in t&&i(4,s=t.class),"$$scope"in t&&i(8,d=t.$$scope)},n.$$.update=()=>{n.$$.dirty&1&&i(5,u=te(f))},[f,o,h,c,s,u,a,_,d,r]}class re extends T{constructor(e){super(),U(this,e,se,ee,M,{intent:0,title:1,icon:2,hidden:3,class:4})}}export{re as A}; +import{s as M,z as D,h as E,b as P,t as N,j as I,k as p,d as S,l as R,f as g,m as V,F as j,I as k,i as L,n as v,q as B,E as z,L as G,A as H,a as J,u as K,g as O,e as Q}from"./scheduler.pPC3woXQ.js";import{S as T,i as U,c as W,a as X,m as Y,t as b,g as Z,b as A,e as y,d as w}from"./index.Z3Qqxacm.js";import{g as x}from"./spread.rEx3vLA9.js";import{I as $}from"./icon.IMxiy1l_.js";import{t as C}from"./tw-merge.NbP7EmZe.js";function F(n){let e,i;const u=n[9].default,l=J(u,n,n[8],null);return{c(){e=E("div"),l&&l.c(),this.h()},l(a){e=I(a,"DIV",{class:!0});var r=p(e);l&&l.l(r),r.forEach(g),this.h()},h(){V(e,"class","content svelte-xu7x16")},m(a,r){L(a,e,r),l&&l.m(e,null),i=!0},p(a,r){l&&l.p&&(!i||r&256)&&K(l,u,a,a[8],i?Q(u,a[8],r,null):O(a[8]),null)},i(a){i||(b(l,a),i=!0)},o(a){A(l,a),i=!1},d(a){a&&g(e),l&&l.d(a)}}}function ee(n){let e,i,u,l,a,r,d,_,f;i=new $({props:{name:n[2],class:"mt-0.5 shrink-0"}});let o=n[7].default&&F(n),h=[{class:_=C("alert flex",n[0],n[4])},{role:n[5]},n[6]],c={};for(let s=0;s{o=null}),y()),j(e,c=x(h,[(!f||t&17&&_!==(_=C("alert flex",s[0],s[4])))&&{class:_},(!f||t&32)&&{role:s[5]},t&64&&s[6]])),k(e,"hidden",s[3]),k(e,"svelte-xu7x16",!0)},i(s){f||(b(i.$$.fragment,s),b(o),f=!0)},o(s){A(i.$$.fragment,s),A(o),f=!1},d(s){s&&g(e),w(i),o&&o.d()}}}function te(n){return n==="error"?"alert":n==="success"||n==="warning"?"status":null}function se(n,e,i){let u;const l=["intent","title","icon","hidden","class"];let a=z(e,l),{$$slots:r={},$$scope:d}=e;const _=G(r);let{intent:f}=e,{title:o=""}=e,{icon:h=f}=e,{hidden:c=!1}=e,{class:s=""}=e;return n.$$set=t=>{e=D(D({},e),H(t)),i(6,a=z(e,l)),"intent"in t&&i(0,f=t.intent),"title"in t&&i(1,o=t.title),"icon"in t&&i(2,h=t.icon),"hidden"in t&&i(3,c=t.hidden),"class"in t&&i(4,s=t.class),"$$scope"in t&&i(8,d=t.$$scope)},n.$$.update=()=>{n.$$.dirty&1&&i(5,u=te(f))},[f,o,h,c,s,u,a,_,d,r]}class re extends T{constructor(e){super(),U(this,e,se,ee,M,{intent:0,title:1,icon:2,hidden:3,class:4})}}export{re as A}; diff --git a/ui/assets/local/_app/immutable/chunks/apex.jSQKvZ8Y.js b/ui/assets/local/_app/immutable/chunks/apex.jSQKvZ8Y.js new file mode 100644 index 0000000000..e7b2da9923 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/apex.jSQKvZ8Y.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var n={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)|(?:))")}}},s=["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"],o=e=>e.charAt(0).toUpperCase()+e.substr(1),t=[];s.forEach(e=>{t.push(e),t.push(e.toUpperCase()),t.push(o(e))});var i={defaultToken:"",tokenPostfix:".apex",keywords:t,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"}}]]}};export{n as conf,i as language}; diff --git a/ui/assets/local/_app/immutable/chunks/auth-user.ZpmVHepC.js b/ui/assets/local/_app/immutable/chunks/auth-user.hBqnVR-w.js similarity index 63% rename from ui/assets/local/_app/immutable/chunks/auth-user.ZpmVHepC.js rename to ui/assets/local/_app/immutable/chunks/auth-user.hBqnVR-w.js index d50786ec44..b43bf1a5b4 100644 --- a/ui/assets/local/_app/immutable/chunks/auth-user.ZpmVHepC.js +++ b/ui/assets/local/_app/immutable/chunks/auth-user.hBqnVR-w.js @@ -1 +1 @@ -import{D as n}from"./scheduler.1T9hOnFr.js";import{p as i}from"./persist-store.yDfC1oT_.js";const s=i("AuthUser",{}),m=()=>n(s),p=t=>{const{accessToken:e,idToken:r,name:o,email:a,picture:c}=t;if(!e)throw new Error("No access token");s.set({accessToken:e,idToken:r,name:o,email:a,picture:c})},U=()=>{s.set({})};export{s as a,U as c,m as g,p as s}; +import{D as n}from"./scheduler.pPC3woXQ.js";import{p as i}from"./persist-store.cEgNkZhn.js";const s=i("AuthUser",{}),m=()=>n(s),p=t=>{const{accessToken:e,idToken:r,name:o,email:a,picture:c}=t;if(!e)throw new Error("No access token");s.set({accessToken:e,idToken:r,name:o,email:a,picture:c})},U=()=>{s.set({})};export{s as a,U as c,m as g,p as s}; diff --git a/ui/assets/local/_app/immutable/chunks/await_block.phqp6y2-.js b/ui/assets/local/_app/immutable/chunks/await_block.9A5E__yn.js similarity index 86% rename from ui/assets/local/_app/immutable/chunks/await_block.phqp6y2-.js rename to ui/assets/local/_app/immutable/chunks/await_block.9A5E__yn.js index cfa8b43a22..8672f876a5 100644 --- a/ui/assets/local/_app/immutable/chunks/await_block.phqp6y2-.js +++ b/ui/assets/local/_app/immutable/chunks/await_block.9A5E__yn.js @@ -1 +1 @@ -import{N as o,O as p,P as a,Q as m}from"./scheduler.1T9hOnFr.js";import{g,b as v,e as x,t as w}from"./index.cVovwi_s.js";function N(e,t){const h=t.token={};function c(r,s,d,k){if(t.token!==h)return;t.resolved=k;let u=t.ctx;d!==void 0&&(u=u.slice(),u[d]=k);const l=r&&(t.current=r)(u);let b=!1;t.block&&(t.blocks?t.blocks.forEach((n,_)=>{_!==s&&n&&(g(),v(n,1,1,()=>{t.blocks[_]===n&&(t.blocks[_]=null)}),x())}):t.block.d(1),l.c(),w(l,1),l.m(t.mount(),t.anchor),b=!0),t.block=l,t.blocks&&(t.blocks[s]=l),b&&m()}if(o(e)){const r=p();if(e.then(s=>{a(r),c(t.then,1,t.value,s),a(null)},s=>{if(a(r),c(t.catch,2,t.error,s),a(null),!t.hasCatch)throw s}),t.current!==t.pending)return c(t.pending,0),!0}else{if(t.current!==t.then)return c(t.then,1,t.value,e),!0;t.resolved=e}}function O(e,t,h){const c=t.slice(),{resolved:r}=e;e.current===e.then&&(c[e.value]=r),e.current===e.catch&&(c[e.error]=r),e.block.p(c,h)}export{N as h,O as u}; +import{N as o,O as p,P as a,Q as m}from"./scheduler.pPC3woXQ.js";import{g,b as v,e as x,t as w}from"./index.Z3Qqxacm.js";function N(e,t){const h=t.token={};function c(r,s,d,k){if(t.token!==h)return;t.resolved=k;let u=t.ctx;d!==void 0&&(u=u.slice(),u[d]=k);const l=r&&(t.current=r)(u);let b=!1;t.block&&(t.blocks?t.blocks.forEach((n,_)=>{_!==s&&n&&(g(),v(n,1,1,()=>{t.blocks[_]===n&&(t.blocks[_]=null)}),x())}):t.block.d(1),l.c(),w(l,1),l.m(t.mount(),t.anchor),b=!0),t.block=l,t.blocks&&(t.blocks[s]=l),b&&m()}if(o(e)){const r=p();if(e.then(s=>{a(r),c(t.then,1,t.value,s),a(null)},s=>{if(a(r),c(t.catch,2,t.error,s),a(null),!t.hasCatch)throw s}),t.current!==t.pending)return c(t.pending,0),!0}else{if(t.current!==t.then)return c(t.then,1,t.value,e),!0;t.resolved=e}}function O(e,t,h){const c=t.slice(),{resolved:r}=e;e.current===e.then&&(c[e.value]=r),e.current===e.catch&&(c[e.error]=r),e.block.p(c,h)}export{N as h,O as u}; diff --git a/ui/assets/local/_app/immutable/chunks/azcli.gOnLdVEG.js b/ui/assets/local/_app/immutable/chunks/azcli.gOnLdVEG.js new file mode 100644 index 0000000000..40d5745b77 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/azcli.gOnLdVEG.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"#"}},t={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"}}}]]}};export{e as conf,t as language}; diff --git a/ui/assets/local/_app/immutable/chunks/badge.kH3kuYyU.js b/ui/assets/local/_app/immutable/chunks/badge.rkMH44Sz.js similarity index 91% rename from ui/assets/local/_app/immutable/chunks/badge.kH3kuYyU.js rename to ui/assets/local/_app/immutable/chunks/badge.rkMH44Sz.js index a15a334d27..e0a06694f5 100644 --- a/ui/assets/local/_app/immutable/chunks/badge.kH3kuYyU.js +++ b/ui/assets/local/_app/immutable/chunks/badge.rkMH44Sz.js @@ -1 +1 @@ -import{s as d,a as m,h as _,j as g,k as p,f as o,m as f,i as b,u as y,g as h,e as w}from"./scheduler.1T9hOnFr.js";import{S as v,i as k,t as j,b as B}from"./index.cVovwi_s.js";import{c as S}from"./index.polp_dyw.js";import{t as u}from"./tw-merge.NbP7EmZe.js";function V(n){let a,i,l;const r=n[3].default,t=m(r,n,n[2],null);return{c(){a=_("div"),t&&t.c(),this.h()},l(e){a=g(e,"DIV",{class:!0});var s=p(a);t&&t.l(s),s.forEach(o),this.h()},h(){f(a,"class",i=u(c({type:n[0]||"default"}),n[1]))},m(e,s){b(e,a,s),t&&t.m(a,null),l=!0},p(e,[s]){t&&t.p&&(!l||s&4)&&y(t,r,e,e[2],l?w(r,e[2],s,null):h(e[2]),null),(!l||s&3&&i!==(i=u(c({type:e[0]||"default"}),e[1])))&&f(a,"class",i)},i(e){l||(j(t,e),l=!0)},o(e){B(t,e),l=!1},d(e){e&&o(a),t&&t.d(e)}}}const q={primary:"bg-blue-300",secondary:"bg-purple-200",default:"bg-slate-100",warning:"bg-yellow-200",success:"bg-green-200",danger:"bg-red-200",count:"h-6 w-6 min-w-max rounded-full bg-blue-300"},c=S(["flex","w-fit","flex-row","items-center","justify-center","text-nowrap","break-all","rounded-sm","p-1","text-sm","font-medium","leading-4","transition-colors","text-black"],{variants:{type:q},defaultVariants:{type:"default"}});function C(n,a,i){let{$$slots:l={},$$scope:r}=a,{type:t="default"}=a,{class:e=""}=a;return n.$$set=s=>{"type"in s&&i(0,t=s.type),"class"in s&&i(1,e=s.class),"$$scope"in s&&i(2,r=s.$$scope)},[t,e,r,l]}class N extends v{constructor(a){super(),k(this,a,C,V,d,{type:0,class:1})}}export{N as B}; +import{s as d,a as m,h as _,j as g,k as p,f as o,m as f,i as b,u as y,g as h,e as w}from"./scheduler.pPC3woXQ.js";import{S as v,i as k,t as j,b as B}from"./index.Z3Qqxacm.js";import{c as S}from"./index.polp_dyw.js";import{t as u}from"./tw-merge.NbP7EmZe.js";function V(n){let a,i,l;const r=n[3].default,t=m(r,n,n[2],null);return{c(){a=_("div"),t&&t.c(),this.h()},l(e){a=g(e,"DIV",{class:!0});var s=p(a);t&&t.l(s),s.forEach(o),this.h()},h(){f(a,"class",i=u(c({type:n[0]||"default"}),n[1]))},m(e,s){b(e,a,s),t&&t.m(a,null),l=!0},p(e,[s]){t&&t.p&&(!l||s&4)&&y(t,r,e,e[2],l?w(r,e[2],s,null):h(e[2]),null),(!l||s&3&&i!==(i=u(c({type:e[0]||"default"}),e[1])))&&f(a,"class",i)},i(e){l||(j(t,e),l=!0)},o(e){B(t,e),l=!1},d(e){e&&o(a),t&&t.d(e)}}}const q={primary:"bg-blue-300",secondary:"bg-purple-200",default:"bg-slate-100",warning:"bg-yellow-200",success:"bg-green-200",danger:"bg-red-200",count:"h-6 w-6 min-w-max rounded-full bg-blue-300"},c=S(["flex","w-fit","flex-row","items-center","justify-center","text-nowrap","break-all","rounded-sm","p-1","text-sm","font-medium","leading-4","transition-colors","text-black"],{variants:{type:q},defaultVariants:{type:"default"}});function C(n,a,i){let{$$slots:l={},$$scope:r}=a,{type:t="default"}=a,{class:e=""}=a;return n.$$set=s=>{"type"in s&&i(0,t=s.type),"class"in s&&i(1,e=s.class),"$$scope"in s&&i(2,r=s.$$scope)},[t,e,r,l]}class N extends v{constructor(a){super(),k(this,a,C,V,d,{type:0,class:1})}}export{N as B}; diff --git a/ui/assets/local/_app/immutable/chunks/bat.zRYP1KgU.js b/ui/assets/local/_app/immutable/chunks/bat.zRYP1KgU.js new file mode 100644 index 0000000000..4f199bb90c --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/bat.zRYP1KgU.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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")}}},s={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:/[=>e.map(o=>o.runId).reduce((o,r,s,u)=>(o+=`RunId="${r}"`,s!==u.length-1&&(o+=" OR "),o),""),j=(e,t)=>{const o=I().email;switch(e){case n.Cancel:return{cancellationOperation:{identity:o}};case n.Terminate:return{terminationOperation:{identity:o}};case n.Reset:return{resetOperation:{identity:o,options:t==="first"?{firstWorkflowTask:{}}:{lastWorkflowTask:{}},resetType:t==="first"?1:2}}}},R=({id:e,runId:t})=>({workflowId:e,runId:t}),b=(e,t)=>{const o={jobId:t.jobId,namespace:t.namespace,reason:t.reason,...j(e,t.resetType)};if(t.workflows)return h(y(T),"1.19")?{...o,executions:t.workflows.map(R)}:{...o,visibilityQuery:k(t.workflows)};if(t.query)return{...o,visibilityQuery:t.query}};async function Q(e){const t=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),o=b(n.Cancel,e);await m(t,{options:{method:"POST",body:f(o)},notifyOnError:!1}),a.set({jobId:o.jobId,namespace:o.namespace})}async function V(e){const t=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),o=b(n.Terminate,e);await m(t,{options:{method:"POST",body:f(o)},notifyOnError:!1}),a.set({jobId:o.jobId,namespace:o.namespace})}const _=async e=>{const t=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),o=b(n.Reset,e);await m(t,{options:{method:"POST",body:f(o)},notifyOnError:!1}),a.set({jobId:o.jobId,namespace:o.namespace})};async function d({namespace:e,jobId:t}){return new Promise((o,r)=>{C({namespace:e,jobId:t}).then(({state:s,completeOperationCount:u})=>{s==="Failed"?r():s!=="Running"?o(u):setTimeout(()=>{try{o(d({namespace:e,jobId:t}))}catch{r()}},5e3)})})}async function C({jobId:e,namespace:t},o=fetch){const r=c("batch-operations",{namespace:t,batchJobId:e}),s=await m(r,{request:o});return g(s)}const g=e=>({...e,operationType:p(e.operationType),state:i(e.state),startTime:e.startTime,closeTime:e.closeTime,totalOperationCount:parseInt((e==null?void 0:e.totalOperationCount)??"0",10),completeOperationCount:parseInt((e==null?void 0:e.completeOperationCount)??"0",10),failureOperationCount:parseInt((e==null?void 0:e.failureOperationCount)??"0",10)});async function N(e,t=fetch){const o=c("batch-operations.list",{namespace:e,batchJobId:""}),r=await m(o,{request:t});return{nextPageToken:r.nextPageToken,operations:r.operationInfo?r.operationInfo.map(P):[]}}const P=e=>({startTime:e.startTime,closeTime:e.closeTime,jobId:e.jobId,state:i(e.state)}),a=l();a.subscribe(async e=>{e&&await d(e).then(()=>a.set(void 0))});const U=w("auto-refresh-batch-operation",!1);export{U as a,Q as b,_ as c,C as d,V as e,a as i,N as l}; +import{w as l}from"./entry.6mxJxwSM.js";import{D as y}from"./scheduler.pPC3woXQ.js";import{A as n}from"./workflow-actions.-K4W_iAA.js";import{g as I}from"./auth-user.hBqnVR-w.js";import{p as w}from"./persist-store.cEgNkZhn.js";import{t as T}from"./versions.QfhK-6RJ.js";import{s as f}from"./parse-with-big-int.e3oI4SEy.js";import{r as c,a as m}from"./route-for-api.hWBHnwul.js";import{c as p,d as i}from"./screaming-enums.6mdiatB1.js";import{i as h}from"./version-check.HLZIw2tw.js";const k=e=>e.map(o=>o.runId).reduce((o,r,s,u)=>(o+=`RunId="${r}"`,s!==u.length-1&&(o+=" OR "),o),""),j=(e,t)=>{const o=I().email;switch(e){case n.Cancel:return{cancellationOperation:{identity:o}};case n.Terminate:return{terminationOperation:{identity:o}};case n.Reset:return{resetOperation:{identity:o,options:t==="first"?{firstWorkflowTask:{}}:{lastWorkflowTask:{}},resetType:t==="first"?1:2}}}},R=({id:e,runId:t})=>({workflowId:e,runId:t}),b=(e,t)=>{const o={jobId:t.jobId,namespace:t.namespace,reason:t.reason,...j(e,t.resetType)};if(t.workflows)return h(y(T),"1.19")?{...o,executions:t.workflows.map(R)}:{...o,visibilityQuery:k(t.workflows)};if(t.query)return{...o,visibilityQuery:t.query}};async function Q(e){const t=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),o=b(n.Cancel,e);await m(t,{options:{method:"POST",body:f(o)},notifyOnError:!1}),a.set({jobId:o.jobId,namespace:o.namespace})}async function V(e){const t=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),o=b(n.Terminate,e);await m(t,{options:{method:"POST",body:f(o)},notifyOnError:!1}),a.set({jobId:o.jobId,namespace:o.namespace})}const _=async e=>{const t=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),o=b(n.Reset,e);await m(t,{options:{method:"POST",body:f(o)},notifyOnError:!1}),a.set({jobId:o.jobId,namespace:o.namespace})};async function d({namespace:e,jobId:t}){return new Promise((o,r)=>{C({namespace:e,jobId:t}).then(({state:s,completeOperationCount:u})=>{s==="Failed"?r():s!=="Running"?o(u):setTimeout(()=>{try{o(d({namespace:e,jobId:t}))}catch{r()}},5e3)})})}async function C({jobId:e,namespace:t},o=fetch){const r=c("batch-operations",{namespace:t,batchJobId:e}),s=await m(r,{request:o});return g(s)}const g=e=>({...e,operationType:p(e.operationType),state:i(e.state),startTime:e.startTime,closeTime:e.closeTime,totalOperationCount:parseInt((e==null?void 0:e.totalOperationCount)??"0",10),completeOperationCount:parseInt((e==null?void 0:e.completeOperationCount)??"0",10),failureOperationCount:parseInt((e==null?void 0:e.failureOperationCount)??"0",10)});async function N(e,t=fetch){const o=c("batch-operations.list",{namespace:e,batchJobId:""}),r=await m(o,{request:t});return{nextPageToken:r.nextPageToken,operations:r.operationInfo?r.operationInfo.map(P):[]}}const P=e=>({startTime:e.startTime,closeTime:e.closeTime,jobId:e.jobId,state:i(e.state)}),a=l();a.subscribe(async e=>{e&&await d(e).then(()=>a.set(void 0))});const U=w("auto-refresh-batch-operation",!1);export{U as a,Q as b,_ as c,C as d,V as e,a as i,N as l}; diff --git a/ui/assets/local/_app/immutable/chunks/bicep.A1xZkSbD.js b/ui/assets/local/_app/immutable/chunks/bicep.A1xZkSbD.js new file mode 100644 index 0000000000..defa94d12d --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/bicep.A1xZkSbD.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var n=e=>`\\b${e}\\b`,t="[_a-zA-Z]",o="[_a-zA-Z0-9]",r=n(`${t}${o}*`),i=["targetScope","resource","module","param","var","output","for","in","if","existing"],a=["true","false","null"],s="[ \\t\\r\\n]",c="[0-9]+",g={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*[\\}\\]].*$")}},l={defaultToken:"",tokenPostfix:".bicep",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=>{t=f(f({},t),B(s)),c(4,n=b(t,a)),"copyIconTitle"in s&&c(0,i=s.copyIconTitle),"copySuccessIconTitle"in s&&c(1,r=s.copySuccessIconTitle),"copied"in s&&c(2,u=s.copied),"class"in s&&c(3,l=s.class)},[i,r,u,l,n,e]}class L extends E{constructor(t){super(),N(this,t,U,P,g,{copyIconTitle:0,copySuccessIconTitle:1,copied:2,class:3})}}export{L as B}; +import{s as g,z as f,h as y,j as I,k as T,f as _,F as h,I as p,i as k,p as S,E as b,A as B,B as v}from"./scheduler.pPC3woXQ.js";import{S as E,i as N,c as j,a as q,m as z,t as A,b as C,d as F}from"./index.Z3Qqxacm.js";import{g as M}from"./spread.rEx3vLA9.js";import{I as O}from"./icon.IMxiy1l_.js";import{t as d}from"./tw-merge.NbP7EmZe.js";function P(o){let t,c,a,n,i,r;c=new O({props:{title:o[2]?o[1]:o[0],name:o[2]?"checkmark":"copy"}});let u=[{class:a=d("copy-button",o[3])},o[4]],l={};for(let e=0;e{t=f(f({},t),B(s)),c(4,n=b(t,a)),"copyIconTitle"in s&&c(0,i=s.copyIconTitle),"copySuccessIconTitle"in s&&c(1,r=s.copySuccessIconTitle),"copied"in s&&c(2,u=s.copied),"class"in s&&c(3,l=s.class)},[i,r,u,l,n,e]}class L extends E{constructor(t){super(),N(this,t,U,P,g,{copyIconTitle:0,copySuccessIconTitle:1,copied:2,class:3})}}export{L as B}; diff --git a/ui/assets/local/_app/immutable/chunks/button.y7LhNtq8.js b/ui/assets/local/_app/immutable/chunks/button.pYfDLC93.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/button.y7LhNtq8.js rename to ui/assets/local/_app/immutable/chunks/button.pYfDLC93.js index 4d1ed45d58..60a8b3dc6b 100644 --- a/ui/assets/local/_app/immutable/chunks/button.y7LhNtq8.js +++ b/ui/assets/local/_app/immutable/chunks/button.pYfDLC93.js @@ -1 +1 @@ -import{s as de,x as U,i as M,f as I,E as V,z as G,A as ce,B as J,a as ee,h as P,b as S,j as q,k as j,d as A,F as H,n as B,p as O,G as Q,u as te,g as ne,e as le,H as me,I as K,t as ae,l as ie,q as re}from"./scheduler.1T9hOnFr.js";import{S as be,i as ge,g as E,b as h,e as N,t as _,c as C,a as T,m as D,d as F}from"./index.cVovwi_s.js";import{g as se}from"./spread.rEx3vLA9.js";import{c as _e}from"./index.polp_dyw.js";import{g as pe}from"./entry.1BQh90wu.js";import{B as oe}from"./badge.kH3kuYyU.js";import{I as L}from"./icon.w8eknFMq.js";import{t as W}from"./tw-merge.NbP7EmZe.js";function he(l){let e,t,a,n,r,u,z,m,o=(l[5]||l[4])&&X(l);const y=l[15].default,k=ee(y,l,l[18],null);let s=l[6]&&Y(l),p=l[7]>0&&Z(l),v=[{disabled:l[3]},{id:l[8]},{type:"button"},{class:r=W(l[12]({variant:l[0],size:l[1],borderRadiusModifier:l[2]}),l[11])},l[14]],b={};for(let i=0;i{o=null}),N()),k&&k.p&&(!u||c&262144)&&te(k,y,i,i[18],u?le(y,i[18],c,null):ne(i[18]),null),i[6]?s?(s.p(i,c),c&64&&_(s,1)):(s=Y(i),s.c(),_(s,1),s.m(e,n)):s&&(E(),h(s,1,1,()=>{s=null}),N()),i[7]>0?p?(p.p(i,c),c&128&&_(p,1)):(p=Z(i),p.c(),_(p,1),p.m(e,null)):p&&(E(),h(p,1,1,()=>{p=null}),N()),H(e,b=se(v,[(!u||c&8)&&{disabled:i[3]},(!u||c&256)&&{id:i[8]},{type:"button"},(!u||c&2055&&r!==(r=W(i[12]({variant:i[0],size:i[1],borderRadiusModifier:i[2]}),i[11])))&&{class:r},c&16384&&i[14]]))},i(i){u||(_(o),_(k,i),_(s),_(p),u=!0)},o(i){h(o),h(k,i),h(s),h(p),u=!1},d(i){i&&I(e),o&&o.d(),k&&k.d(i),s&&s.d(),p&&p.d(),z=!1,me(m)}}}function ve(l){let e,t,a,n,r,u,z,m,o,y,k,s=(l[5]||l[4])&&w(l);const p=l[15].default,v=ee(p,l,l[18],null);let b=l[6]&&$(l),i=l[7]>0&&x(l),c=[{href:l[9]},{id:l[8]},{role:"button"},{type:"button"},{target:r=l[10]?"_blank":null},{rel:u=l[10]?"noreferrer":null},{class:z=l[12]({variant:l[0],size:l[1],borderRadiusModifier:l[2]})},{tabindex:m=l[9]?null:0},l[14]],R={};for(let f=0;f{s=null}),N()),v&&v.p&&(!o||g&262144)&&te(v,p,f,f[18],o?le(p,f[18],g,null):ne(f[18]),null),f[6]?b?(b.p(f,g),g&64&&_(b,1)):(b=$(f),b.c(),_(b,1),b.m(e,n)):b&&(E(),h(b,1,1,()=>{b=null}),N()),f[7]>0?i?(i.p(f,g),g&128&&_(i,1)):(i=x(f),i.c(),_(i,1),i.m(e,null)):i&&(E(),h(i,1,1,()=>{i=null}),N()),H(e,R=se(c,[(!o||g&512)&&{href:f[9]},(!o||g&256)&&{id:f[8]},{role:"button"},{type:"button"},(!o||g&1024&&r!==(r=f[10]?"_blank":null))&&{target:r},(!o||g&1024&&u!==(u=f[10]?"noreferrer":null))&&{rel:u},(!o||g&7&&z!==(z=f[12]({variant:f[0],size:f[1],borderRadiusModifier:f[2]})))&&{class:z},(!o||g&512&&m!==(m=f[9]?null:0))&&{tabindex:m},g&16384&&f[14]]))},i(f){o||(_(s),_(v,f),_(b),_(i),o=!0)},o(f){h(s),h(v,f),h(b),h(i),o=!1},d(f){f&&I(e),s&&s.d(),v&&v.d(f),b&&b.d(),i&&i.d(),y=!1,k()}}}function X(l){let e,t,a;return t=new L({props:{name:l[4]?"spinner":l[5]}}),{c(){e=P("span"),C(t.$$.fragment),this.h()},l(n){e=q(n,"SPAN",{});var r=j(e);T(t.$$.fragment,r),r.forEach(I),this.h()},h(){K(e,"animate-spin",l[4])},m(n,r){M(n,e,r),D(t,e,null),a=!0},p(n,r){const u={};r&48&&(u.name=n[4]?"spinner":n[5]),t.$set(u),(!a||r&16)&&K(e,"animate-spin",n[4])},i(n){a||(_(t.$$.fragment,n),a=!0)},o(n){h(t.$$.fragment,n),a=!1},d(n){n&&I(e),F(t)}}}function Y(l){let e,t,a;return t=new L({props:{name:l[6]}}),{c(){e=P("span"),C(t.$$.fragment)},l(n){e=q(n,"SPAN",{});var r=j(e);T(t.$$.fragment,r),r.forEach(I)},m(n,r){M(n,e,r),D(t,e,null),a=!0},p(n,r){const u={};r&64&&(u.name=n[6]),t.$set(u)},i(n){a||(_(t.$$.fragment,n),a=!0)},o(n){h(t.$$.fragment,n),a=!1},d(n){n&&I(e),F(t)}}}function Z(l){let e,t;return e=new oe({props:{class:"badge absolute right-0 top-0 origin-bottom-left translate-x-[10px] translate-y-[-10px]",type:"count",$$slots:{default:[ke]},$$scope:{ctx:l}}}),{c(){C(e.$$.fragment)},l(a){T(e.$$.fragment,a)},m(a,n){D(e,a,n),t=!0},p(a,n){const r={};n&262272&&(r.$$scope={dirty:n,ctx:a}),e.$set(r)},i(a){t||(_(e.$$.fragment,a),t=!0)},o(a){h(e.$$.fragment,a),t=!1},d(a){F(e,a)}}}function ke(l){let e;return{c(){e=ae(l[7])},l(t){e=ie(t,l[7])},m(t,a){M(t,e,a)},p(t,a){a&128&&re(e,t[7])},d(t){t&&I(e)}}}function w(l){let e,t,a;return t=new L({props:{name:l[4]?"spinner":l[5]}}),{c(){e=P("span"),C(t.$$.fragment),this.h()},l(n){e=q(n,"SPAN",{});var r=j(e);T(t.$$.fragment,r),r.forEach(I),this.h()},h(){K(e,"animate-spin",l[4])},m(n,r){M(n,e,r),D(t,e,null),a=!0},p(n,r){const u={};r&48&&(u.name=n[4]?"spinner":n[5]),t.$set(u),(!a||r&16)&&K(e,"animate-spin",n[4])},i(n){a||(_(t.$$.fragment,n),a=!0)},o(n){h(t.$$.fragment,n),a=!1},d(n){n&&I(e),F(t)}}}function $(l){let e,t,a;return t=new L({props:{name:l[6]}}),{c(){e=P("span"),C(t.$$.fragment)},l(n){e=q(n,"SPAN",{});var r=j(e);T(t.$$.fragment,r),r.forEach(I)},m(n,r){M(n,e,r),D(t,e,null),a=!0},p(n,r){const u={};r&64&&(u.name=n[6]),t.$set(u)},i(n){a||(_(t.$$.fragment,n),a=!0)},o(n){h(t.$$.fragment,n),a=!1},d(n){n&&I(e),F(t)}}}function x(l){let e,t;return e=new oe({props:{class:"badge absolute right-0 top-0 origin-bottom-left translate-x-[10px] translate-y-[-10px]",type:"count",$$slots:{default:[Ie]},$$scope:{ctx:l}}}),{c(){C(e.$$.fragment)},l(a){T(e.$$.fragment,a)},m(a,n){D(e,a,n),t=!0},p(a,n){const r={};n&262272&&(r.$$scope={dirty:n,ctx:a}),e.$set(r)},i(a){t||(_(e.$$.fragment,a),t=!0)},o(a){h(e.$$.fragment,a),t=!1},d(a){F(e,a)}}}function Ie(l){let e;return{c(){e=ae(l[7])},l(t){e=ie(t,l[7])},m(t,a){M(t,e,a)},p(t,a){a&128&&re(e,t[7])},d(t){t&&I(e)}}}function ye(l){let e,t,a,n;const r=[ve,he],u=[];function z(m,o){return m[9]&&!m[3]?0:1}return e=z(l),t=u[e]=r[e](l),{c(){t.c(),a=U()},l(m){t.l(m),a=U()},m(m,o){u[e].m(m,o),M(m,a,o),n=!0},p(m,[o]){let y=e;e=z(m),e===y?u[e].p(m,o):(E(),h(u[y],1,1,()=>{u[y]=null}),N(),t=u[e],t?t.p(m,o):(t=u[e]=r[e](m),t.c()),_(t,1),t.m(a.parentNode,a))},i(m){n||(_(t),n=!0)},o(m){h(t),n=!1},d(m){m&&I(a),u[e].d(m)}}}function ze(l,e,t){const a=["variant","size","borderRadiusModifier","disabled","loading","leadingIcon","trailingIcon","count","id","href","target","class"];let n=V(e,a),{$$slots:r={},$$scope:u}=e;const z=_e(["relative","flex","w-fit","items-center","justify-center","border-2","gap-2","rounded-lg","disabled:opacity-50","disabled:cursor-not-allowed","border-box","transition-colors","transition-shadow","focus-visible:outline-none","focus-visible:border-inverse","focus-visible:ring-4","whitespace-nowrap","no-underline","[.button-group>&]:rounded-none","[.button-group>&:first-of-type]:rounded-l-lg","[.button-group>&:last-of-type]:rounded-r-lg","[.input-group>&]:rounded-none","last:[.input-group>&]:rounded-r","first:[.input-group>&]:rounded-l"],{variants:{variant:{primary:"surface-interactive border-transparent text-white focus-visible:ring-primary/70",secondary:"surface-primary border-subtle focus-visible:ring-primary/70 hover:surface-interactive-secondary focus-visible:surface-interactive-secondary",destructive:"surface-interactive-danger border-transparent focus-visible:ring-danger/70",ghost:"bg-transparent border-transparent text-primary hover:surface-interactive-ghost focus-visible:surface-interactive-ghost focus-visible:ring-primary/70","table-header":"bg-transparent border-transparent text-off-white focus-visible:ring-primary/70 focus-visible:border-transparent"},size:{xs:"h-8 text-xs px-2 py-1",sm:"h-9 text-sm px-4 py-1.5",md:"h-10 text-base px-4 py-2",lg:"h-11 text-lg px-5 py-2.5"},borderRadiusModifier:{square:"rounded-none","square-left":"rounded-l-none","square-right":"rounded-r-none"}},defaultVariants:{variant:"primary",size:"md"}});let{variant:m="primary"}=e,{size:o="md"}=e,{borderRadiusModifier:y=null}=e,{disabled:k=!1}=e,{loading:s=!1}=e,{leadingIcon:p=null}=e,{trailingIcon:v=null}=e,{count:b=0}=e,{id:i=null}=e,{href:c=null}=e,{target:R=null}=e,{class:f=""}=e;const g=d=>{d.button===1||R||d.metaKey||(d.preventDefault(),d.stopPropagation(),pe(c))};function fe(d){J.call(this,l,d)}function ue(d){J.call(this,l,d)}return l.$$set=d=>{e=G(G({},e),ce(d)),t(14,n=V(e,a)),"variant"in d&&t(0,m=d.variant),"size"in d&&t(1,o=d.size),"borderRadiusModifier"in d&&t(2,y=d.borderRadiusModifier),"disabled"in d&&t(3,k=d.disabled),"loading"in d&&t(4,s=d.loading),"leadingIcon"in d&&t(5,p=d.leadingIcon),"trailingIcon"in d&&t(6,v=d.trailingIcon),"count"in d&&t(7,b=d.count),"id"in d&&t(8,i=d.id),"href"in d&&t(9,c=d.href),"target"in d&&t(10,R=d.target),"class"in d&&t(11,f=d.class),"$$scope"in d&&t(18,u=d.$$scope)},[m,o,y,k,s,p,v,b,i,c,R,f,z,g,n,r,fe,ue,u]}class qe extends be{constructor(e){super(),ge(this,e,ze,ye,de,{variant:0,size:1,borderRadiusModifier:2,disabled:3,loading:4,leadingIcon:5,trailingIcon:6,count:7,id:8,href:9,target:10,class:11})}}export{qe as B}; +import{s as de,x as U,i as M,f as I,E as V,z as G,A as ce,B as J,a as ee,h as P,b as S,j as q,k as j,d as A,F as H,n as B,p as O,G as Q,u as te,g as ne,e as le,H as me,I as K,t as ae,l as ie,q as re}from"./scheduler.pPC3woXQ.js";import{S as be,i as ge,g as E,b as h,e as N,t as _,c as C,a as T,m as D,d as F}from"./index.Z3Qqxacm.js";import{g as se}from"./spread.rEx3vLA9.js";import{c as _e}from"./index.polp_dyw.js";import{g as pe}from"./entry.6mxJxwSM.js";import{B as oe}from"./badge.rkMH44Sz.js";import{I as L}from"./icon.IMxiy1l_.js";import{t as W}from"./tw-merge.NbP7EmZe.js";function he(l){let e,t,a,n,r,u,z,m,o=(l[5]||l[4])&&X(l);const y=l[15].default,k=ee(y,l,l[18],null);let s=l[6]&&Y(l),p=l[7]>0&&Z(l),v=[{disabled:l[3]},{id:l[8]},{type:"button"},{class:r=W(l[12]({variant:l[0],size:l[1],borderRadiusModifier:l[2]}),l[11])},l[14]],b={};for(let i=0;i{o=null}),N()),k&&k.p&&(!u||c&262144)&&te(k,y,i,i[18],u?le(y,i[18],c,null):ne(i[18]),null),i[6]?s?(s.p(i,c),c&64&&_(s,1)):(s=Y(i),s.c(),_(s,1),s.m(e,n)):s&&(E(),h(s,1,1,()=>{s=null}),N()),i[7]>0?p?(p.p(i,c),c&128&&_(p,1)):(p=Z(i),p.c(),_(p,1),p.m(e,null)):p&&(E(),h(p,1,1,()=>{p=null}),N()),H(e,b=se(v,[(!u||c&8)&&{disabled:i[3]},(!u||c&256)&&{id:i[8]},{type:"button"},(!u||c&2055&&r!==(r=W(i[12]({variant:i[0],size:i[1],borderRadiusModifier:i[2]}),i[11])))&&{class:r},c&16384&&i[14]]))},i(i){u||(_(o),_(k,i),_(s),_(p),u=!0)},o(i){h(o),h(k,i),h(s),h(p),u=!1},d(i){i&&I(e),o&&o.d(),k&&k.d(i),s&&s.d(),p&&p.d(),z=!1,me(m)}}}function ve(l){let e,t,a,n,r,u,z,m,o,y,k,s=(l[5]||l[4])&&w(l);const p=l[15].default,v=ee(p,l,l[18],null);let b=l[6]&&$(l),i=l[7]>0&&x(l),c=[{href:l[9]},{id:l[8]},{role:"button"},{type:"button"},{target:r=l[10]?"_blank":null},{rel:u=l[10]?"noreferrer":null},{class:z=l[12]({variant:l[0],size:l[1],borderRadiusModifier:l[2]})},{tabindex:m=l[9]?null:0},l[14]],R={};for(let f=0;f{s=null}),N()),v&&v.p&&(!o||g&262144)&&te(v,p,f,f[18],o?le(p,f[18],g,null):ne(f[18]),null),f[6]?b?(b.p(f,g),g&64&&_(b,1)):(b=$(f),b.c(),_(b,1),b.m(e,n)):b&&(E(),h(b,1,1,()=>{b=null}),N()),f[7]>0?i?(i.p(f,g),g&128&&_(i,1)):(i=x(f),i.c(),_(i,1),i.m(e,null)):i&&(E(),h(i,1,1,()=>{i=null}),N()),H(e,R=se(c,[(!o||g&512)&&{href:f[9]},(!o||g&256)&&{id:f[8]},{role:"button"},{type:"button"},(!o||g&1024&&r!==(r=f[10]?"_blank":null))&&{target:r},(!o||g&1024&&u!==(u=f[10]?"noreferrer":null))&&{rel:u},(!o||g&7&&z!==(z=f[12]({variant:f[0],size:f[1],borderRadiusModifier:f[2]})))&&{class:z},(!o||g&512&&m!==(m=f[9]?null:0))&&{tabindex:m},g&16384&&f[14]]))},i(f){o||(_(s),_(v,f),_(b),_(i),o=!0)},o(f){h(s),h(v,f),h(b),h(i),o=!1},d(f){f&&I(e),s&&s.d(),v&&v.d(f),b&&b.d(),i&&i.d(),y=!1,k()}}}function X(l){let e,t,a;return t=new L({props:{name:l[4]?"spinner":l[5]}}),{c(){e=P("span"),C(t.$$.fragment),this.h()},l(n){e=q(n,"SPAN",{});var r=j(e);T(t.$$.fragment,r),r.forEach(I),this.h()},h(){K(e,"animate-spin",l[4])},m(n,r){M(n,e,r),D(t,e,null),a=!0},p(n,r){const u={};r&48&&(u.name=n[4]?"spinner":n[5]),t.$set(u),(!a||r&16)&&K(e,"animate-spin",n[4])},i(n){a||(_(t.$$.fragment,n),a=!0)},o(n){h(t.$$.fragment,n),a=!1},d(n){n&&I(e),F(t)}}}function Y(l){let e,t,a;return t=new L({props:{name:l[6]}}),{c(){e=P("span"),C(t.$$.fragment)},l(n){e=q(n,"SPAN",{});var r=j(e);T(t.$$.fragment,r),r.forEach(I)},m(n,r){M(n,e,r),D(t,e,null),a=!0},p(n,r){const u={};r&64&&(u.name=n[6]),t.$set(u)},i(n){a||(_(t.$$.fragment,n),a=!0)},o(n){h(t.$$.fragment,n),a=!1},d(n){n&&I(e),F(t)}}}function Z(l){let e,t;return e=new oe({props:{class:"badge absolute right-0 top-0 origin-bottom-left translate-x-[10px] translate-y-[-10px]",type:"count",$$slots:{default:[ke]},$$scope:{ctx:l}}}),{c(){C(e.$$.fragment)},l(a){T(e.$$.fragment,a)},m(a,n){D(e,a,n),t=!0},p(a,n){const r={};n&262272&&(r.$$scope={dirty:n,ctx:a}),e.$set(r)},i(a){t||(_(e.$$.fragment,a),t=!0)},o(a){h(e.$$.fragment,a),t=!1},d(a){F(e,a)}}}function ke(l){let e;return{c(){e=ae(l[7])},l(t){e=ie(t,l[7])},m(t,a){M(t,e,a)},p(t,a){a&128&&re(e,t[7])},d(t){t&&I(e)}}}function w(l){let e,t,a;return t=new L({props:{name:l[4]?"spinner":l[5]}}),{c(){e=P("span"),C(t.$$.fragment),this.h()},l(n){e=q(n,"SPAN",{});var r=j(e);T(t.$$.fragment,r),r.forEach(I),this.h()},h(){K(e,"animate-spin",l[4])},m(n,r){M(n,e,r),D(t,e,null),a=!0},p(n,r){const u={};r&48&&(u.name=n[4]?"spinner":n[5]),t.$set(u),(!a||r&16)&&K(e,"animate-spin",n[4])},i(n){a||(_(t.$$.fragment,n),a=!0)},o(n){h(t.$$.fragment,n),a=!1},d(n){n&&I(e),F(t)}}}function $(l){let e,t,a;return t=new L({props:{name:l[6]}}),{c(){e=P("span"),C(t.$$.fragment)},l(n){e=q(n,"SPAN",{});var r=j(e);T(t.$$.fragment,r),r.forEach(I)},m(n,r){M(n,e,r),D(t,e,null),a=!0},p(n,r){const u={};r&64&&(u.name=n[6]),t.$set(u)},i(n){a||(_(t.$$.fragment,n),a=!0)},o(n){h(t.$$.fragment,n),a=!1},d(n){n&&I(e),F(t)}}}function x(l){let e,t;return e=new oe({props:{class:"badge absolute right-0 top-0 origin-bottom-left translate-x-[10px] translate-y-[-10px]",type:"count",$$slots:{default:[Ie]},$$scope:{ctx:l}}}),{c(){C(e.$$.fragment)},l(a){T(e.$$.fragment,a)},m(a,n){D(e,a,n),t=!0},p(a,n){const r={};n&262272&&(r.$$scope={dirty:n,ctx:a}),e.$set(r)},i(a){t||(_(e.$$.fragment,a),t=!0)},o(a){h(e.$$.fragment,a),t=!1},d(a){F(e,a)}}}function Ie(l){let e;return{c(){e=ae(l[7])},l(t){e=ie(t,l[7])},m(t,a){M(t,e,a)},p(t,a){a&128&&re(e,t[7])},d(t){t&&I(e)}}}function ye(l){let e,t,a,n;const r=[ve,he],u=[];function z(m,o){return m[9]&&!m[3]?0:1}return e=z(l),t=u[e]=r[e](l),{c(){t.c(),a=U()},l(m){t.l(m),a=U()},m(m,o){u[e].m(m,o),M(m,a,o),n=!0},p(m,[o]){let y=e;e=z(m),e===y?u[e].p(m,o):(E(),h(u[y],1,1,()=>{u[y]=null}),N(),t=u[e],t?t.p(m,o):(t=u[e]=r[e](m),t.c()),_(t,1),t.m(a.parentNode,a))},i(m){n||(_(t),n=!0)},o(m){h(t),n=!1},d(m){m&&I(a),u[e].d(m)}}}function ze(l,e,t){const a=["variant","size","borderRadiusModifier","disabled","loading","leadingIcon","trailingIcon","count","id","href","target","class"];let n=V(e,a),{$$slots:r={},$$scope:u}=e;const z=_e(["relative","flex","w-fit","items-center","justify-center","border-2","gap-2","rounded-lg","disabled:opacity-50","disabled:cursor-not-allowed","border-box","transition-colors","transition-shadow","focus-visible:outline-none","focus-visible:border-inverse","focus-visible:ring-4","whitespace-nowrap","no-underline","[.button-group>&]:rounded-none","[.button-group>&:first-of-type]:rounded-l-lg","[.button-group>&:last-of-type]:rounded-r-lg","[.input-group>&]:rounded-none","last:[.input-group>&]:rounded-r","first:[.input-group>&]:rounded-l"],{variants:{variant:{primary:"surface-interactive border-transparent text-white focus-visible:ring-primary/70",secondary:"surface-primary border-subtle focus-visible:ring-primary/70 hover:surface-interactive-secondary focus-visible:surface-interactive-secondary",destructive:"surface-interactive-danger border-transparent focus-visible:ring-danger/70",ghost:"bg-transparent border-transparent text-primary hover:surface-interactive-ghost focus-visible:surface-interactive-ghost focus-visible:ring-primary/70","table-header":"bg-transparent border-transparent text-off-white focus-visible:ring-primary/70 focus-visible:border-transparent"},size:{xs:"h-8 text-xs px-2 py-1",sm:"h-9 text-sm px-4 py-1.5",md:"h-10 text-base px-4 py-2",lg:"h-11 text-lg px-5 py-2.5"},borderRadiusModifier:{square:"rounded-none","square-left":"rounded-l-none","square-right":"rounded-r-none"}},defaultVariants:{variant:"primary",size:"md"}});let{variant:m="primary"}=e,{size:o="md"}=e,{borderRadiusModifier:y=null}=e,{disabled:k=!1}=e,{loading:s=!1}=e,{leadingIcon:p=null}=e,{trailingIcon:v=null}=e,{count:b=0}=e,{id:i=null}=e,{href:c=null}=e,{target:R=null}=e,{class:f=""}=e;const g=d=>{d.button===1||R||d.metaKey||(d.preventDefault(),d.stopPropagation(),pe(c))};function fe(d){J.call(this,l,d)}function ue(d){J.call(this,l,d)}return l.$$set=d=>{e=G(G({},e),ce(d)),t(14,n=V(e,a)),"variant"in d&&t(0,m=d.variant),"size"in d&&t(1,o=d.size),"borderRadiusModifier"in d&&t(2,y=d.borderRadiusModifier),"disabled"in d&&t(3,k=d.disabled),"loading"in d&&t(4,s=d.loading),"leadingIcon"in d&&t(5,p=d.leadingIcon),"trailingIcon"in d&&t(6,v=d.trailingIcon),"count"in d&&t(7,b=d.count),"id"in d&&t(8,i=d.id),"href"in d&&t(9,c=d.href),"target"in d&&t(10,R=d.target),"class"in d&&t(11,f=d.class),"$$scope"in d&&t(18,u=d.$$scope)},[m,o,y,k,s,p,v,b,i,c,R,f,z,g,n,r,fe,ue,u]}class qe extends be{constructor(e){super(),ge(this,e,ze,ye,de,{variant:0,size:1,borderRadiusModifier:2,disabled:3,loading:4,leadingIcon:5,trailingIcon:6,count:7,id:8,href:9,target:10,class:11})}}export{qe as B}; diff --git a/ui/assets/local/_app/immutable/chunks/cameligo.YfysARWV.js b/ui/assets/local/_app/immutable/chunks/cameligo.YfysARWV.js new file mode 100644 index 0000000000..0fcac41782 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/cameligo.YfysARWV.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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:"*)"}]},o={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"]]}};export{e as conf,o as language}; diff --git a/ui/assets/local/_app/immutable/chunks/card.2ruAazLH.js b/ui/assets/local/_app/immutable/chunks/card.MCvkIfWk.js similarity index 86% rename from ui/assets/local/_app/immutable/chunks/card.2ruAazLH.js rename to ui/assets/local/_app/immutable/chunks/card.MCvkIfWk.js index 8e2508fa90..1f6699fa8b 100644 --- a/ui/assets/local/_app/immutable/chunks/card.2ruAazLH.js +++ b/ui/assets/local/_app/immutable/chunks/card.MCvkIfWk.js @@ -1 +1 @@ -import{s as _,a as d,h as m,j as h,k as v,f as o,m as u,i as g,u as k,g as j,e as p,z as c,A as f}from"./scheduler.1T9hOnFr.js";import{S as C,i as b,t as y,b as S}from"./index.cVovwi_s.js";function q(i){let s,n,t;const r=i[2].default,e=d(r,i,i[1],null);return{c(){s=m("div"),e&&e.c(),this.h()},l(a){s=h(a,"DIV",{class:!0});var l=v(s);e&&e.l(l),l.forEach(o),this.h()},h(){u(s,"class",n="card surface-primary "+i[0].class+" svelte-2kjlkw")},m(a,l){g(a,s,l),e&&e.m(s,null),t=!0},p(a,[l]){e&&e.p&&(!t||l&2)&&k(e,r,a,a[1],t?p(r,a[1],l,null):j(a[1]),null),(!t||l&1&&n!==(n="card surface-primary "+a[0].class+" svelte-2kjlkw"))&&u(s,"class",n)},i(a){t||(y(e,a),t=!0)},o(a){S(e,a),t=!1},d(a){a&&o(s),e&&e.d(a)}}}function z(i,s,n){let{$$slots:t={},$$scope:r}=s;return i.$$set=e=>{n(0,s=c(c({},s),f(e))),"$$scope"in e&&n(1,r=e.$$scope)},s=f(s),[s,r,t]}class E extends C{constructor(s){super(),b(this,s,z,q,_,{})}}export{E as C}; +import{s as _,a as d,h as m,j as h,k as v,f as o,m as u,i as g,u as k,g as j,e as p,z as c,A as f}from"./scheduler.pPC3woXQ.js";import{S as C,i as b,t as y,b as S}from"./index.Z3Qqxacm.js";function q(i){let s,n,t;const r=i[2].default,e=d(r,i,i[1],null);return{c(){s=m("div"),e&&e.c(),this.h()},l(a){s=h(a,"DIV",{class:!0});var l=v(s);e&&e.l(l),l.forEach(o),this.h()},h(){u(s,"class",n="card surface-primary "+i[0].class+" svelte-2kjlkw")},m(a,l){g(a,s,l),e&&e.m(s,null),t=!0},p(a,[l]){e&&e.p&&(!t||l&2)&&k(e,r,a,a[1],t?p(r,a[1],l,null):j(a[1]),null),(!t||l&1&&n!==(n="card surface-primary "+a[0].class+" svelte-2kjlkw"))&&u(s,"class",n)},i(a){t||(y(e,a),t=!0)},o(a){S(e,a),t=!1},d(a){a&&o(s),e&&e.d(a)}}}function z(i,s,n){let{$$slots:t={},$$scope:r}=s;return i.$$set=e=>{n(0,s=c(c({},s),f(e))),"$$scope"in e&&n(1,r=e.$$scope)},s=f(s),[s,r,t]}class E extends C{constructor(s){super(),b(this,s,z,q,_,{})}}export{E as C}; diff --git a/ui/assets/local/_app/immutable/chunks/checkbox._m8PHNP_.js b/ui/assets/local/_app/immutable/chunks/checkbox.mnyoiZY0.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/checkbox._m8PHNP_.js rename to ui/assets/local/_app/immutable/chunks/checkbox.mnyoiZY0.js index 9a93728256..a85c0ef6ac 100644 --- a/ui/assets/local/_app/immutable/chunks/checkbox._m8PHNP_.js +++ b/ui/assets/local/_app/immutable/chunks/checkbox.mnyoiZY0.js @@ -1 +1 @@ -import{s as se,h as C,b as A,j as I,k as P,d as T,f as m,m as v,i as _,n as L,p as E,G as B,H as O,E as F,r as oe,z as D,A as ce,a as de,F as G,u as ue,g as fe,e as he,t as Q,l as R,q as X,B as S,M as ge,I as U}from"./scheduler.1T9hOnFr.js";import{S as be,i as me,c as Y,a as Z,m as w,t as y,b as H,d as x,g as pe,e as _e}from"./index.cVovwi_s.js";import{g as ve}from"./spread.rEx3vLA9.js";import{I as ke}from"./icon.w8eknFMq.js";import{o as V}from"./omit.d6LgPome.js";import{L as qe}from"./label.ujgKMPb9.js";import{t as N}from"./tw-merge.NbP7EmZe.js";const ye=t=>({}),W=t=>({});function J(t){let e,r;return e=new ke({props:{class:"absolute left-0 top-0 h-4 w-4",name:t[4]?"hyphen":t[0]?"checkmark":null,strokeWidth:3}}),{c(){Y(e.$$.fragment)},l(i){Z(e.$$.fragment,i)},m(i,l){w(e,i,l),r=!0},p(i,l){const g={};l&17&&(g.name=i[4]?"hyphen":i[0]?"checkmark":null),e.$set(g)},i(i){r||(y(e.$$.fragment,i),r=!0)},o(i){H(e.$$.fragment,i),r=!1},d(i){x(e,i)}}}function Ee(t){let e,r;return{c(){e=C("span"),r=Q(t[2]),this.h()},l(i){e=I(i,"SPAN",{class:!0});var l=P(e);r=R(l,t[2]),l.forEach(m),this.h()},h(){v(e,"class","label"),U(e,"sr-only",t[3])},m(i,l){_(i,e,l),L(e,r)},p(i,l){l&4&&X(r,i[2]),l&8&&U(e,"sr-only",i[3])},d(i){i&&m(e)}}}function He(t){let e,r,i,l,g,f,p,o,c=[{id:t[1]},{__value:t[6]},{type:"checkbox"},{class:"peer sr-only"},{disabled:t[5]},{required:t[9]},V(t[13],"data-testid")],h={};for(let a=0;a{s=null}),_e()),(!f||d&160&&l!==(l=N(["relative","box-content","flex","h-4","w-4","flex-none","cursor-pointer","rounded-md","border-2","bg-transparent","text-inverse","bg-clip-padding","peer-indeterminate:bg-interactive","peer-indeterminate:border-interactive","peer-checked:bg-interactive","peer-checked:border-interactive"],!a[5]&&["group-hover:border-transparent","peer-focus-visible:border-transparent","group-hover:peer-checked:border-transparent","group-hover:peer-indeterminate:border-transparent","group-hover:bg-interactive-active","peer-focus-visible:bg-interactive-active","group-hover:peer-checked:bg-interactive-active","group-hover:peer-indeterminate:bg-interactive-active","group-hover:ring-4","group-hover:ring-primary/70","peer-focus-visible:ring-4","peer-focus-visible:ring-primary/70"],a[5]&&["cursor-not-allowed","opacity-50"],a[7]?"border-secondary":"border-danger peer-checked:border-danger")))&&v(i,"class",l),b?b.p&&(!f||d&2097152)&&ue(b,k,a,a[21],f?he(k,a[21],d,ye):fe(a[21]),W):u&&u.p&&(!f||d&12)&&u.p(a,f?d:-1)},i(a){f||(y(s),y(u,a),f=!0)},o(a){H(s),H(u,a),f=!1},d(a){a&&(m(e),m(r),m(i),m(g)),t[20](null),s&&s.d(),u&&u.d(a),p=!1,O(o)}}}function K(t){let e,r;return{c(){e=C("span"),r=Q(t[8]),this.h()},l(i){e=I(i,"SPAN",{class:!0});var l=P(e);r=R(l,t[8]),l.forEach(m),this.h()},h(){v(e,"class","text-xs text-danger")},m(i,l){_(i,e,l),L(e,r)},p(i,l){l&256&&X(r,i[8])},d(i){i&&m(e)}}}function Ce(t){let e,r,i,l,g,f,p;r=new qe({props:{class:N(["flex","select-none","items-center","gap-3","text-sm","leading-[18px]","group"],t[5]&&"cursor-not-allowed",t[10]),$$slots:{default:[He]},$$scope:{ctx:t}}});let o=!t[7]&&t[8]&&K(t);return{c(){e=C("div"),Y(r.$$.fragment),i=A(),o&&o.c(),this.h()},l(c){e=I(c,"DIV",{"data-testid":!0,role:!0});var h=P(e);Z(r.$$.fragment,h),i=T(h),o&&o.l(h),h.forEach(m),this.h()},h(){v(e,"data-testid",l=t[13]["data-testid"]??null),v(e,"role","none")},m(c,h){_(c,e,h),w(r,e,null),L(e,i),o&&o.m(e,null),g=!0,f||(p=[E(e,"click",B(t[16])),E(e,"keypress",B(t[17]))],f=!0)},p(c,[h]){const s={};h&1056&&(s.class=N(["flex","select-none","items-center","gap-3","text-sm","leading-[18px]","group"],c[5]&&"cursor-not-allowed",c[10])),h&2108159&&(s.$$scope={dirty:h,ctx:c}),r.$set(s),!c[7]&&c[8]?o?o.p(c,h):(o=K(c),o.c(),o.m(e,null)):o&&(o.d(1),o=null),(!g||h&8192&&l!==(l=c[13]["data-testid"]??null))&&v(e,"data-testid",l)},i(c){g||(y(r.$$.fragment,c),g=!0)},o(c){H(r.$$.fragment,c),g=!1},d(c){c&&m(e),x(r),o&&o.d(),f=!1,O(p)}}}function Ie(t,e,r){const i=["id","checked","label","labelHidden","indeterminate","disabled","value","group","valid","error","required","class"];let l=F(e,i),{$$slots:g={},$$scope:f}=e,{id:p=""}=e,{checked:o=!1}=e,{label:c=""}=e,{labelHidden:h=!1}=e,{indeterminate:s=!1}=e,{disabled:k=!1}=e,{value:b=void 0}=e,{group:u=void 0}=e,{valid:a=!0}=e,{error:d=""}=e,{required:M=!1}=e,{class:j=""}=e,q;const $=oe(),ee=n=>{const{checked:z}=n.currentTarget;u!==void 0&&(z?r(14,u=[...u,b]):r(14,u=u.filter(le=>le!==b))),r(0,o=z),$("change",{checked:n.currentTarget.checked,value:b})};function re(n){S.call(this,t,n)}function te(n){S.call(this,t,n)}function ie(n){S.call(this,t,n)}function ae(){o=this.checked,r(0,o),r(14,u),r(6,b)}function ne(n){ge[n?"unshift":"push"](()=>{q=n,r(11,q),r(4,s)})}return t.$$set=n=>{e=D(D({},e),ce(n)),r(13,l=F(e,i)),"id"in n&&r(1,p=n.id),"checked"in n&&r(0,o=n.checked),"label"in n&&r(2,c=n.label),"labelHidden"in n&&r(3,h=n.labelHidden),"indeterminate"in n&&r(4,s=n.indeterminate),"disabled"in n&&r(5,k=n.disabled),"value"in n&&r(6,b=n.value),"group"in n&&r(14,u=n.group),"valid"in n&&r(7,a=n.valid),"error"in n&&r(8,d=n.error),"required"in n&&r(9,M=n.required),"class"in n&&r(10,j=n.class),"$$scope"in n&&r(21,f=n.$$scope)},t.$$.update=()=>{t.$$.dirty&2064&&q!==void 0&&r(11,q.indeterminate=s,q),t.$$.dirty&16449&&r(0,o=u!==void 0?u.includes(b):o)},[o,p,c,h,s,k,b,a,d,M,j,q,ee,l,u,g,re,te,ie,ae,ne,f]}class Me extends be{constructor(e){super(),me(this,e,Ie,Ce,se,{id:1,checked:0,label:2,labelHidden:3,indeterminate:4,disabled:5,value:6,group:14,valid:7,error:8,required:9,class:10})}}export{Me as C}; +import{s as se,h as C,b as A,j as I,k as P,d as T,f as m,m as v,i as _,n as L,p as E,G as B,H as O,E as F,r as oe,z as D,A as ce,a as de,F as G,u as ue,g as fe,e as he,t as Q,l as R,q as X,B as S,M as ge,I as U}from"./scheduler.pPC3woXQ.js";import{S as be,i as me,c as Y,a as Z,m as w,t as y,b as H,d as x,g as pe,e as _e}from"./index.Z3Qqxacm.js";import{g as ve}from"./spread.rEx3vLA9.js";import{I as ke}from"./icon.IMxiy1l_.js";import{o as V}from"./omit.d6LgPome.js";import{L as qe}from"./label.zXYhHpIA.js";import{t as N}from"./tw-merge.NbP7EmZe.js";const ye=t=>({}),W=t=>({});function J(t){let e,r;return e=new ke({props:{class:"absolute left-0 top-0 h-4 w-4",name:t[4]?"hyphen":t[0]?"checkmark":null,strokeWidth:3}}),{c(){Y(e.$$.fragment)},l(i){Z(e.$$.fragment,i)},m(i,l){w(e,i,l),r=!0},p(i,l){const g={};l&17&&(g.name=i[4]?"hyphen":i[0]?"checkmark":null),e.$set(g)},i(i){r||(y(e.$$.fragment,i),r=!0)},o(i){H(e.$$.fragment,i),r=!1},d(i){x(e,i)}}}function Ee(t){let e,r;return{c(){e=C("span"),r=Q(t[2]),this.h()},l(i){e=I(i,"SPAN",{class:!0});var l=P(e);r=R(l,t[2]),l.forEach(m),this.h()},h(){v(e,"class","label"),U(e,"sr-only",t[3])},m(i,l){_(i,e,l),L(e,r)},p(i,l){l&4&&X(r,i[2]),l&8&&U(e,"sr-only",i[3])},d(i){i&&m(e)}}}function He(t){let e,r,i,l,g,f,p,o,c=[{id:t[1]},{__value:t[6]},{type:"checkbox"},{class:"peer sr-only"},{disabled:t[5]},{required:t[9]},V(t[13],"data-testid")],h={};for(let a=0;a{s=null}),_e()),(!f||d&160&&l!==(l=N(["relative","box-content","flex","h-4","w-4","flex-none","cursor-pointer","rounded-md","border-2","bg-transparent","text-inverse","bg-clip-padding","peer-indeterminate:bg-interactive","peer-indeterminate:border-interactive","peer-checked:bg-interactive","peer-checked:border-interactive"],!a[5]&&["group-hover:border-transparent","peer-focus-visible:border-transparent","group-hover:peer-checked:border-transparent","group-hover:peer-indeterminate:border-transparent","group-hover:bg-interactive-active","peer-focus-visible:bg-interactive-active","group-hover:peer-checked:bg-interactive-active","group-hover:peer-indeterminate:bg-interactive-active","group-hover:ring-4","group-hover:ring-primary/70","peer-focus-visible:ring-4","peer-focus-visible:ring-primary/70"],a[5]&&["cursor-not-allowed","opacity-50"],a[7]?"border-secondary":"border-danger peer-checked:border-danger")))&&v(i,"class",l),b?b.p&&(!f||d&2097152)&&ue(b,k,a,a[21],f?he(k,a[21],d,ye):fe(a[21]),W):u&&u.p&&(!f||d&12)&&u.p(a,f?d:-1)},i(a){f||(y(s),y(u,a),f=!0)},o(a){H(s),H(u,a),f=!1},d(a){a&&(m(e),m(r),m(i),m(g)),t[20](null),s&&s.d(),u&&u.d(a),p=!1,O(o)}}}function K(t){let e,r;return{c(){e=C("span"),r=Q(t[8]),this.h()},l(i){e=I(i,"SPAN",{class:!0});var l=P(e);r=R(l,t[8]),l.forEach(m),this.h()},h(){v(e,"class","text-xs text-danger")},m(i,l){_(i,e,l),L(e,r)},p(i,l){l&256&&X(r,i[8])},d(i){i&&m(e)}}}function Ce(t){let e,r,i,l,g,f,p;r=new qe({props:{class:N(["flex","select-none","items-center","gap-3","text-sm","leading-[18px]","group"],t[5]&&"cursor-not-allowed",t[10]),$$slots:{default:[He]},$$scope:{ctx:t}}});let o=!t[7]&&t[8]&&K(t);return{c(){e=C("div"),Y(r.$$.fragment),i=A(),o&&o.c(),this.h()},l(c){e=I(c,"DIV",{"data-testid":!0,role:!0});var h=P(e);Z(r.$$.fragment,h),i=T(h),o&&o.l(h),h.forEach(m),this.h()},h(){v(e,"data-testid",l=t[13]["data-testid"]??null),v(e,"role","none")},m(c,h){_(c,e,h),w(r,e,null),L(e,i),o&&o.m(e,null),g=!0,f||(p=[E(e,"click",B(t[16])),E(e,"keypress",B(t[17]))],f=!0)},p(c,[h]){const s={};h&1056&&(s.class=N(["flex","select-none","items-center","gap-3","text-sm","leading-[18px]","group"],c[5]&&"cursor-not-allowed",c[10])),h&2108159&&(s.$$scope={dirty:h,ctx:c}),r.$set(s),!c[7]&&c[8]?o?o.p(c,h):(o=K(c),o.c(),o.m(e,null)):o&&(o.d(1),o=null),(!g||h&8192&&l!==(l=c[13]["data-testid"]??null))&&v(e,"data-testid",l)},i(c){g||(y(r.$$.fragment,c),g=!0)},o(c){H(r.$$.fragment,c),g=!1},d(c){c&&m(e),x(r),o&&o.d(),f=!1,O(p)}}}function Ie(t,e,r){const i=["id","checked","label","labelHidden","indeterminate","disabled","value","group","valid","error","required","class"];let l=F(e,i),{$$slots:g={},$$scope:f}=e,{id:p=""}=e,{checked:o=!1}=e,{label:c=""}=e,{labelHidden:h=!1}=e,{indeterminate:s=!1}=e,{disabled:k=!1}=e,{value:b=void 0}=e,{group:u=void 0}=e,{valid:a=!0}=e,{error:d=""}=e,{required:M=!1}=e,{class:j=""}=e,q;const $=oe(),ee=n=>{const{checked:z}=n.currentTarget;u!==void 0&&(z?r(14,u=[...u,b]):r(14,u=u.filter(le=>le!==b))),r(0,o=z),$("change",{checked:n.currentTarget.checked,value:b})};function re(n){S.call(this,t,n)}function te(n){S.call(this,t,n)}function ie(n){S.call(this,t,n)}function ae(){o=this.checked,r(0,o),r(14,u),r(6,b)}function ne(n){ge[n?"unshift":"push"](()=>{q=n,r(11,q),r(4,s)})}return t.$$set=n=>{e=D(D({},e),ce(n)),r(13,l=F(e,i)),"id"in n&&r(1,p=n.id),"checked"in n&&r(0,o=n.checked),"label"in n&&r(2,c=n.label),"labelHidden"in n&&r(3,h=n.labelHidden),"indeterminate"in n&&r(4,s=n.indeterminate),"disabled"in n&&r(5,k=n.disabled),"value"in n&&r(6,b=n.value),"group"in n&&r(14,u=n.group),"valid"in n&&r(7,a=n.valid),"error"in n&&r(8,d=n.error),"required"in n&&r(9,M=n.required),"class"in n&&r(10,j=n.class),"$$scope"in n&&r(21,f=n.$$scope)},t.$$.update=()=>{t.$$.dirty&2064&&q!==void 0&&r(11,q.indeterminate=s,q),t.$$.dirty&16449&&r(0,o=u!==void 0?u.includes(b):o)},[o,p,c,h,s,k,b,a,d,M,j,q,ee,l,u,g,re,te,ie,ae,ne,f]}class Me extends be{constructor(e){super(),me(this,e,Ie,Ce,se,{id:1,checked:0,label:2,labelHidden:3,indeterminate:4,disabled:5,value:6,group:14,valid:7,error:8,required:9,class:10})}}export{Me as C}; diff --git a/ui/assets/local/_app/immutable/chunks/clojure.dMOcmuXu.js b/ui/assets/local/_app/immutable/chunks/clojure.dMOcmuXu.js new file mode 100644 index 0000000000..5932b8c2a1 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/clojure.dMOcmuXu.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={comments:{lineComment:";;"},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}],surroundingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}]},t={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"]]}};export{e as conf,t as language}; diff --git a/ui/assets/local/_app/immutable/chunks/code-block.S0zkvBiB.js b/ui/assets/local/_app/immutable/chunks/code-block.Xpz7isZb.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/code-block.S0zkvBiB.js rename to ui/assets/local/_app/immutable/chunks/code-block.Xpz7isZb.js index 400ef12517..4ddaf8cc89 100644 --- a/ui/assets/local/_app/immutable/chunks/code-block.S0zkvBiB.js +++ b/ui/assets/local/_app/immutable/chunks/code-block.Xpz7isZb.js @@ -1,4 +1,4 @@ -import{s as hf,z as rs,h as Er,b as af,j as Ir,k as Nr,f as Vn,d as ff,F as Lr,I as Ti,m as uf,i as cf,n as Vr,E as Fr,r as df,c as pf,S as gf,A as Hr,M as mf}from"./scheduler.1T9hOnFr.js";import{S as yf,i as bf,t as Ji,g as xf,b as os,e as wf,c as kf,a as Sf,m as vf,d as Cf}from"./index.cVovwi_s.js";import{g as Af}from"./spread.rEx3vLA9.js";import{B as Of}from"./button.OZpWag17.js";import{c as Mf}from"./copy-to-clipboard.NHd-JF1v.js";import{p as Tf,s as Pf}from"./parse-with-big-int.e3oI4SEy.js";import{c as nt}from"./icon.w8eknFMq.js";class j{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,i){[t,e]=je(this,t,e);let n=[];return this.decompose(0,t,n,2),i.length&&i.decompose(0,i.length,n,3),this.decompose(e,this.length,n,1),Ut.from(n,this.length-(e-t)+i.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){[t,e]=je(this,t,e);let i=[];return this.decompose(t,e,i,0),Ut.from(i,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),i=this.length-this.scanIdentical(t,-1),n=new ai(this),r=new ai(t);for(let o=e,l=e;;){if(n.next(o),r.next(o),o=0,n.lineBreak!=r.lineBreak||n.done!=r.done||n.value!=r.value)return!1;if(l+=n.value.length,n.done||l>=i)return!0}}iter(t=1){return new ai(this,t)}iterRange(t,e=this.length){return new Pl(this,t,e)}iterLines(t,e){let i;if(t==null)i=this.iter();else{e==null&&(e=this.lines+1);let n=this.line(t).from;i=this.iterRange(n,Math.max(n,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new Dl(i)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?j.empty:t.length<=32?new J(t):Ut.from(J.split(t,[]))}}class J extends j{constructor(t,e=Df(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,i,n){for(let r=0;;r++){let o=this.text[r],l=n+o.length;if((e?i:l)>=t)return new Bf(n,l,i,o);n=l+1,i++}}decompose(t,e,i,n){let r=t<=0&&e>=this.length?this:new J(zr(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(n&1){let o=i.pop(),l=Yi(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new J(l,o.length+r.length));else{let h=l.length>>1;i.push(new J(l.slice(0,h)),new J(l.slice(h)))}}else i.push(r)}replace(t,e,i){if(!(i instanceof J))return super.replace(t,e,i);[t,e]=je(this,t,e);let n=Yi(this.text,Yi(i.text,zr(this.text,0,t)),e),r=this.length+i.length-(e-t);return n.length<=32?new J(n,r):Ut.from(J.split(n,[]),r)}sliceString(t,e=this.length,i=` +import{s as hf,z as rs,h as Er,b as af,j as Ir,k as Nr,f as Vn,d as ff,F as Lr,I as Ti,m as uf,i as cf,n as Vr,E as Fr,r as df,c as pf,S as gf,A as Hr,M as mf}from"./scheduler.pPC3woXQ.js";import{S as yf,i as bf,t as Ji,g as xf,b as os,e as wf,c as kf,a as Sf,m as vf,d as Cf}from"./index.Z3Qqxacm.js";import{g as Af}from"./spread.rEx3vLA9.js";import{B as Of}from"./button.mAcrdxlG.js";import{c as Mf}from"./copy-to-clipboard.TAMpnAY_.js";import{p as Tf,s as Pf}from"./parse-with-big-int.e3oI4SEy.js";import{c as nt}from"./icon.IMxiy1l_.js";class j{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,i){[t,e]=je(this,t,e);let n=[];return this.decompose(0,t,n,2),i.length&&i.decompose(0,i.length,n,3),this.decompose(e,this.length,n,1),Ut.from(n,this.length-(e-t)+i.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){[t,e]=je(this,t,e);let i=[];return this.decompose(t,e,i,0),Ut.from(i,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),i=this.length-this.scanIdentical(t,-1),n=new ai(this),r=new ai(t);for(let o=e,l=e;;){if(n.next(o),r.next(o),o=0,n.lineBreak!=r.lineBreak||n.done!=r.done||n.value!=r.value)return!1;if(l+=n.value.length,n.done||l>=i)return!0}}iter(t=1){return new ai(this,t)}iterRange(t,e=this.length){return new Pl(this,t,e)}iterLines(t,e){let i;if(t==null)i=this.iter();else{e==null&&(e=this.lines+1);let n=this.line(t).from;i=this.iterRange(n,Math.max(n,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new Dl(i)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?j.empty:t.length<=32?new J(t):Ut.from(J.split(t,[]))}}class J extends j{constructor(t,e=Df(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,i,n){for(let r=0;;r++){let o=this.text[r],l=n+o.length;if((e?i:l)>=t)return new Bf(n,l,i,o);n=l+1,i++}}decompose(t,e,i,n){let r=t<=0&&e>=this.length?this:new J(zr(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(n&1){let o=i.pop(),l=Yi(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new J(l,o.length+r.length));else{let h=l.length>>1;i.push(new J(l.slice(0,h)),new J(l.slice(h)))}}else i.push(r)}replace(t,e,i){if(!(i instanceof J))return super.replace(t,e,i);[t,e]=je(this,t,e);let n=Yi(this.text,Yi(i.text,zr(this.text,0,t)),e),r=this.length+i.length-(e-t);return n.length<=32?new J(n,r):Ut.from(J.split(n,[]),r)}sliceString(t,e=this.length,i=` `){[t,e]=je(this,t,e);let n="";for(let r=0,o=0;r<=e&&ot&&o&&(n+=i),tr&&(n+=l.slice(Math.max(0,t-r),e-r)),r=h+1}return n}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let i=[],n=-1;for(let r of t)i.push(r),n+=r.length+1,i.length==32&&(e.push(new J(i,n)),i=[],n=-1);return n>-1&&e.push(new J(i,n)),e}}class Ut extends j{constructor(t,e){super(),this.children=t,this.length=e,this.lines=0;for(let i of t)this.lines+=i.lines}lineInner(t,e,i,n){for(let r=0;;r++){let o=this.children[r],l=n+o.length,h=i+o.lines-1;if((e?h:l)>=t)return o.lineInner(t,e,i,n);n=l+1,i=h+1}}decompose(t,e,i,n){for(let r=0,o=0;o<=e&&r=o){let a=n&((o<=t?1:0)|(h>=e?2:0));o>=t&&h<=e&&!a?i.push(l):l.decompose(t-o,e-o,i,a)}o=h+1}}replace(t,e,i){if([t,e]=je(this,t,e),i.lines=r&&e<=l){let h=o.replace(t-r,e-r,i),a=this.lines-o.lines+h.lines;if(h.lines>4&&h.lines>a>>6){let f=this.children.slice();return f[n]=h,new Ut(f,this.length-(e-t)+i.length)}return super.replace(r,l,h)}r=l+1}return super.replace(t,e,i)}sliceString(t,e=this.length,i=` `){[t,e]=je(this,t,e);let n="";for(let r=0,o=0;rt&&r&&(n+=i),to&&(n+=l.sliceString(t-o,e-o,i)),o=h+1}return n}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof Ut))return 0;let i=0,[n,r,o,l]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;n+=e,r+=e){if(n==o||r==l)return i;let h=this.children[n],a=t.children[r];if(h!=a)return i+h.scanIdentical(a,e);i+=h.length+1}}static from(t,e=t.reduce((i,n)=>i+n.length+1,-1)){let i=0;for(let d of t)i+=d.lines;if(i<32){let d=[];for(let p of t)p.flatten(d);return new J(d,e)}let n=Math.max(32,i>>5),r=n<<1,o=n>>1,l=[],h=0,a=-1,f=[];function u(d){let p;if(d.lines>r&&d instanceof Ut)for(let g of d.children)u(g);else d.lines>o&&(h>o||!h)?(c(),l.push(d)):d instanceof J&&h&&(p=f[f.length-1])instanceof J&&d.lines+p.lines<=32?(h+=d.lines,a+=d.length+1,f[f.length-1]=new J(p.text.concat(d.text),p.length+1+d.length)):(h+d.lines>n&&c(),h+=d.lines,a+=d.length+1,f.push(d))}function c(){h!=0&&(l.push(f.length==1?f[0]:Ut.from(f,a)),a=-1,h=f.length=0)}for(let d of t)u(d);return c(),l.length==1?l[0]:new Ut(l,e)}}j.empty=new J([""],0);function Df(s){let t=-1;for(let e of s)t+=e.length+1;return t}function Yi(s,t,e=0,i=1e9){for(let n=0,r=0,o=!0;r=e&&(h>i&&(l=l.slice(0,i-n)),n0?1:(t instanceof J?t.text.length:t.children.length)<<1]}nextInner(t,e){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,n=this.nodes[i],r=this.offsets[i],o=r>>1,l=n instanceof J?n.text.length:n.children.length;if(o==(e>0?l:0)){if(i==0)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(e>0?0:1)){if(this.offsets[i]+=e,t==0)return this.lineBreak=!0,this.value=` `,this;t--}else if(n instanceof J){let h=n.text[o+(e<0?-1:0)];if(this.offsets[i]+=e,h.length>Math.max(0,t))return this.value=t==0?h:e>0?h.slice(t):h.slice(0,h.length-t),this;t-=h.length}else{let h=n.children[o+(e<0?-1:0)];t>h.length?(t-=h.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(h),this.offsets.push(e>0?1:(h instanceof J?h.text.length:h.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class Pl{constructor(t,e,i){this.value="",this.done=!1,this.cursor=new ai(t,e>i?-1:1),this.pos=e>i?t.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let i=e<0?this.pos-this.from:this.to-this.pos;t>i&&(t=i),i-=t;let{value:n}=this.cursor.next(t);return this.pos+=(n.length+t)*e,this.value=n.length<=i?n:e<0?n.slice(n.length-i):n.slice(0,i),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Dl{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:i,value:n}=this.inner.next(t);return e&&this.afterBreak?(this.value="",this.afterBreak=!1):e?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(j.prototype[Symbol.iterator]=function(){return this.iter()},ai.prototype[Symbol.iterator]=Pl.prototype[Symbol.iterator]=Dl.prototype[Symbol.iterator]=function(){return this});class Bf{constructor(t,e,i,n){this.from=t,this.to=e,this.number=i,this.text=n}get length(){return this.to-this.from}}function je(s,t,e){return t=Math.max(0,Math.min(s.length,t)),[t,Math.max(t,Math.min(s.length,e))]}let Le="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(s=>s?parseInt(s,36):1);for(let s=1;ss)return Le[t-1]<=s;return!1}function Wr(s){return s>=127462&&s<=127487}const jr=8205;function dt(s,t,e=!0,i=!0){return(e?Bl:Ef)(s,t,i)}function Bl(s,t,e){if(t==s.length)return t;t&&Rl(s.charCodeAt(t))&&El(s.charCodeAt(t-1))&&t--;let i=St(s,t);for(t+=_t(i);t=0&&Wr(St(s,o));)r++,o-=2;if(r%2==0)break;t+=2}else break}return t}function Ef(s,t,e){for(;t>0;){let i=Bl(s,t-2,e);if(i=56320&&s<57344}function El(s){return s>=55296&&s<56320}function St(s,t){let e=s.charCodeAt(t);if(!El(e)||t+1==s.length)return e;let i=s.charCodeAt(t+1);return Rl(i)?(e-55296<<10)+(i-56320)+65536:e}function Il(s){return s<=65535?String.fromCharCode(s):(s-=65536,String.fromCharCode((s>>10)+55296,(s&1023)+56320))}function _t(s){return s<65536?1:2}const ls=/\r\n?|\n/;var xt=function(s){return s[s.Simple=0]="Simple",s[s.TrackDel=1]="TrackDel",s[s.TrackBefore=2]="TrackBefore",s[s.TrackAfter=3]="TrackAfter",s}(xt||(xt={}));class Qt{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;et)return r+(t-n);r+=l}else{if(i!=xt.Simple&&a>=t&&(i==xt.TrackDel&&nt||i==xt.TrackBefore&&nt))return null;if(a>t||a==t&&e<0&&!l)return t==n||e<0?r:r+h;r+=h}n=a}if(t>n)throw new RangeError(`Position ${t} is out of range for changeset of length ${n}`);return r}touchesRange(t,e=t){for(let i=0,n=0;i=0&&n<=e&&l>=t)return ne?"cover":!0;n=l}return!1}toString(){let t="";for(let e=0;e=0?":"+n:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(e=>typeof e!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Qt(t)}static create(t){return new Qt(t)}}class et extends Qt{constructor(t,e){super(t),this.inserted=e}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return hs(this,(e,i,n,r,o)=>t=t.replace(n,n+(i-e),o),!1),t}mapDesc(t,e=!1){return as(this,t,e,!0)}invert(t){let e=this.sections.slice(),i=[];for(let n=0,r=0;n=0){e[n]=l,e[n+1]=o;let h=n>>1;for(;i.length0&&ue(i,e,r.text),r.forward(f),l+=f}let a=t[o++];for(;l>1].toJSON()))}return t}static of(t,e,i){let n=[],r=[],o=0,l=null;function h(f=!1){if(!f&&!n.length)return;oc||u<0||c>e)throw new RangeError(`Invalid change range ${u} to ${c} (in doc of length ${e})`);let p=d?typeof d=="string"?j.of(d.split(i||ls)):d:j.empty,g=p.length;if(u==c&&g==0)return;uo&&ft(n,u-o,-1),ft(n,c-u,g),ue(r,n,p),o=c}}return a(t),h(!l),l}static empty(t){return new et(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let e=[],i=[];for(let n=0;nl&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)e.push(r[0],0);else{for(;i.length=0&&e<=0&&e==s[n+1]?s[n]+=t:t==0&&s[n]==0?s[n+1]+=e:i?(s[n]+=t,s[n+1]+=e):s.push(t,e)}function ue(s,t,e){if(e.length==0)return;let i=t.length-2>>1;if(i>1])),!(e||o==s.sections.length||s.sections[o+1]<0);)l=s.sections[o++],h=s.sections[o++];t(n,a,r,f,u),n=a,r=f}}}function as(s,t,e,i=!1){let n=[],r=i?[]:null,o=new di(s),l=new di(t);for(let h=-1;;)if(o.ins==-1&&l.ins==-1){let a=Math.min(o.len,l.len);ft(n,a,-1),o.forward(a),l.forward(a)}else if(l.ins>=0&&(o.ins<0||h==o.i||o.off==0&&(l.len=0&&h=0){let a=0,f=o.len;for(;f;)if(l.ins==-1){let u=Math.min(f,l.len);a+=u,f-=u,l.forward(u)}else if(l.ins==0&&l.lenh||o.ins>=0&&o.len>h)&&(l||i.length>a),r.forward2(h),o.forward(h)}}}}class di{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return e>=t.length?j.empty:t[e]}textBit(t){let{inserted:e}=this.set,i=this.i-2>>1;return i>=e.length&&!t?j.empty:e[i].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class Se{constructor(t,e,i){this.from=t,this.to=e,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}get goalColumn(){let t=this.flags>>6;return t==16777215?void 0:t}map(t,e=-1){let i,n;return this.empty?i=n=t.mapPos(this.from,e):(i=t.mapPos(this.from,1),n=t.mapPos(this.to,-1)),i==this.from&&n==this.to?this:new Se(i,n,this.flags)}extend(t,e=t){if(t<=this.anchor&&e>=this.anchor)return C.range(t,e);let i=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return C.range(this.anchor,i)}eq(t,e=!1){return this.anchor==t.anchor&&this.head==t.head&&(!e||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return C.range(t.anchor,t.head)}static create(t,e,i){return new Se(t,e,i)}}class C{constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:C.create(this.ranges.map(i=>i.map(t,e)),this.mainIndex)}eq(t,e=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let i=0;it.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new C(t.ranges.map(e=>Se.fromJSON(e)),t.main)}static single(t,e=t){return new C([C.range(t,e)],0)}static create(t,e=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,n=0;nt?8:0)|r)}static normalized(t,e=0){let i=t[e];t.sort((n,r)=>n.from-r.from),e=t.indexOf(i);for(let n=1;nr.head?C.range(h,l):C.range(l,h))}}return new C(t,e)}}function Ll(s,t){for(let e of s.ranges)if(e.to>t)throw new RangeError("Selection points outside of document")}let er=0;class R{constructor(t,e,i,n,r){this.combine=t,this.compareInput=e,this.compare=i,this.isStatic=n,this.id=er++,this.default=t([]),this.extensions=typeof r=="function"?r(this):r}get reader(){return this}static define(t={}){return new R(t.combine||(e=>e),t.compareInput||((e,i)=>e===i),t.compare||(t.combine?(e,i)=>e===i:ir),!!t.static,t.enables)}of(t){return new Xi([],this,0,t)}compute(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Xi(t,this,1,e)}computeN(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Xi(t,this,2,e)}from(t,e){return e||(e=i=>i),this.compute([t],i=>e(i.field(t)))}}function ir(s,t){return s==t||s.length==t.length&&s.every((e,i)=>e===t[i])}class Xi{constructor(t,e,i,n){this.dependencies=t,this.facet=e,this.type=i,this.value=n,this.id=er++}dynamicSlot(t){var e;let i=this.value,n=this.facet.compareInput,r=this.id,o=t[r]>>1,l=this.type==2,h=!1,a=!1,f=[];for(let u of this.dependencies)u=="doc"?h=!0:u=="selection"?a=!0:((e=t[u.id])!==null&&e!==void 0?e:1)&1||f.push(t[u.id]);return{create(u){return u.values[o]=i(u),1},update(u,c){if(h&&c.docChanged||a&&(c.docChanged||c.selection)||fs(u,f)){let d=i(u);if(l?!qr(d,u.values[o],n):!n(d,u.values[o]))return u.values[o]=d,1}return 0},reconfigure:(u,c)=>{let d,p=c.config.address[r];if(p!=null){let g=an(c,p);if(this.dependencies.every(m=>m instanceof R?c.facet(m)===u.facet(m):m instanceof It?c.field(m,!1)==u.field(m,!1):!0)||(l?qr(d=i(u),g,n):n(d=i(u),g)))return u.values[o]=g,0}else d=i(u);return u.values[o]=d,1}}}}function qr(s,t,e){if(s.length!=t.length)return!1;for(let i=0;is[h.id]),n=e.map(h=>h.type),r=i.filter(h=>!(h&1)),o=s[t.id]>>1;function l(h){let a=[];for(let f=0;fi===n),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(Kr).find(i=>i.field==this);return((e==null?void 0:e.create)||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:i=>(i.values[e]=this.create(i),1),update:(i,n)=>{let r=i.values[e],o=this.updateF(r,n);return this.compareF(r,o)?0:(i.values[e]=o,1)},reconfigure:(i,n)=>n.config.address[this.id]!=null?(i.values[e]=n.field(this),0):(i.values[e]=this.create(i),1)}}init(t){return[this,Kr.of({field:this,create:t})]}get extension(){return this}}const ke={lowest:4,low:3,default:2,high:1,highest:0};function Ze(s){return t=>new Vl(t,s)}const Si={highest:Ze(ke.highest),high:Ze(ke.high),default:Ze(ke.default),low:Ze(ke.low),lowest:Ze(ke.lowest)};class Vl{constructor(t,e){this.inner=t,this.prec=e}}class Pn{of(t){return new us(this,t)}reconfigure(t){return Pn.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class us{constructor(t,e){this.compartment=t,this.inner=e}}class hn{constructor(t,e,i,n,r,o){for(this.base=t,this.compartments=e,this.dynamicSlots=i,this.address=n,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,e,i){let n=[],r=Object.create(null),o=new Map;for(let c of Nf(t,e,o))c instanceof It?n.push(c):(r[c.facet.id]||(r[c.facet.id]=[])).push(c);let l=Object.create(null),h=[],a=[];for(let c of n)l[c.id]=a.length<<1,a.push(d=>c.slot(d));let f=i==null?void 0:i.config.facets;for(let c in r){let d=r[c],p=d[0].facet,g=f&&f[c]||[];if(d.every(m=>m.type==0))if(l[p.id]=h.length<<1|1,ir(g,d))h.push(i.facet(p));else{let m=p.combine(d.map(y=>y.value));h.push(i&&p.compare(m,i.facet(p))?i.facet(p):m)}else{for(let m of d)m.type==0?(l[m.id]=h.length<<1|1,h.push(m.value)):(l[m.id]=a.length<<1,a.push(y=>m.dynamicSlot(y)));l[p.id]=a.length<<1,a.push(m=>If(m,p,d))}}let u=a.map(c=>c(l));return new hn(t,o,u,l,h,r)}}function Nf(s,t,e){let i=[[],[],[],[],[]],n=new Map;function r(o,l){let h=n.get(o);if(h!=null){if(h<=l)return;let a=i[h].indexOf(o);a>-1&&i[h].splice(a,1),o instanceof us&&e.delete(o.compartment)}if(n.set(o,l),Array.isArray(o))for(let a of o)r(a,l);else if(o instanceof us){if(e.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let a=t.get(o.compartment)||o.inner;e.set(o.compartment,a),r(a,l)}else if(o instanceof Vl)r(o.inner,o.prec);else if(o instanceof It)i[l].push(o),o.provides&&r(o.provides,l);else if(o instanceof Xi)i[l].push(o),o.facet.extensions&&r(o.facet.extensions,ke.default);else{let a=o.extension;if(!a)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(a,l)}}return r(s,ke.default),i.reduce((o,l)=>o.concat(l))}function fi(s,t){if(t&1)return 2;let e=t>>1,i=s.status[e];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;s.status[e]=4;let n=s.computeSlot(s,s.config.dynamicSlots[e]);return s.status[e]=2|n}function an(s,t){return t&1?s.config.staticValues[t>>1]:s.values[t>>1]}const Fl=R.define(),cs=R.define({combine:s=>s.some(t=>t),static:!0}),Hl=R.define({combine:s=>s.length?s[0]:void 0,static:!0}),zl=R.define(),Wl=R.define(),jl=R.define(),ql=R.define({combine:s=>s.length?s[0]:!1});class re{constructor(t,e){this.type=t,this.value=e}static define(){return new Lf}}class Lf{of(t){return new re(this,t)}}class Vf{constructor(t){this.map=t}of(t){return new U(this,t)}}class U{constructor(t,e){this.type=t,this.value=e}map(t){let e=this.type.map(this.value,t);return e===void 0?void 0:e==this.value?this:new U(this.type,e)}is(t){return this.type==t}static define(t={}){return new Vf(t.map||(e=>e))}static mapEffects(t,e){if(!t.length)return t;let i=[];for(let n of t){let r=n.map(e);r&&i.push(r)}return i}}U.reconfigure=U.define();U.appendConfig=U.define();class it{constructor(t,e,i,n,r,o){this.startState=t,this.changes=e,this.selection=i,this.effects=n,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&Ll(i,e.newLength),r.some(l=>l.type==it.time)||(this.annotations=r.concat(it.time.of(Date.now())))}static create(t,e,i,n,r,o){return new it(t,e,i,n,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let e of this.annotations)if(e.type==t)return e.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation(it.userEvent);return!!(e&&(e==t||e.length>t.length&&e.slice(0,t.length)==t&&e[t.length]=="."))}}it.time=re.define();it.userEvent=re.define();it.addToHistory=re.define();it.remote=re.define();function Ff(s,t){let e=[];for(let i=0,n=0;;){let r,o;if(i=s[i]))r=s[i++],o=s[i++];else if(n=0;n--){let r=i[n](s);r instanceof it?s=r:Array.isArray(r)&&r.length==1&&r[0]instanceof it?s=r[0]:s=Ul(t,Ve(r),!1)}return s}function zf(s){let t=s.startState,e=t.facet(jl),i=s;for(let n=e.length-1;n>=0;n--){let r=e[n](s);r&&Object.keys(r).length&&(i=Kl(i,ds(t,r,s.changes.newLength),!0))}return i==s?s:it.create(t,s.changes,s.selection,i.effects,i.annotations,i.scrollIntoView)}const Wf=[];function Ve(s){return s==null?Wf:Array.isArray(s)?s:[s]}var Tt=function(s){return s[s.Word=0]="Word",s[s.Space=1]="Space",s[s.Other=2]="Other",s}(Tt||(Tt={}));const jf=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let ps;try{ps=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function qf(s){if(ps)return ps.test(s);for(let t=0;t"€"&&(e.toUpperCase()!=e.toLowerCase()||jf.test(e)))return!0}return!1}function Kf(s){return t=>{if(!/\S/.test(t))return Tt.Space;if(qf(t))return Tt.Word;for(let e=0;e-1)return Tt.Word;return Tt.Other}}class z{constructor(t,e,i,n,r,o){this.config=t,this.doc=e,this.selection=i,this.values=n,this.status=t.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let l=0;ln.set(a,h)),e=null),n.set(l.value.compartment,l.value.extension)):l.is(U.reconfigure)?(e=null,i=l.value):l.is(U.appendConfig)&&(e=null,i=Ve(i).concat(l.value));let r;e?r=t.startState.values.slice():(e=hn.resolve(i,n,this),r=new z(e,this.doc,this.selection,e.dynamicSlots.map(()=>null),(h,a)=>a.reconfigure(h,this),null).values);let o=t.startState.facet(cs)?t.newSelection:t.newSelection.asSingle();new z(e,t.newDoc,o,r,(l,h)=>h.update(l,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:t},range:C.cursor(e.from+t.length)}))}changeByRange(t){let e=this.selection,i=t(e.ranges[0]),n=this.changes(i.changes),r=[i.range],o=Ve(i.effects);for(let l=1;lo.spec.fromJSON(l,h)))}}return z.create({doc:t.doc,selection:C.fromJSON(t.selection),extensions:e.extensions?n.concat([e.extensions]):n})}static create(t={}){let e=hn.resolve(t.extensions||[],new Map),i=t.doc instanceof j?t.doc:j.of((t.doc||"").split(e.staticFacet(z.lineSeparator)||ls)),n=t.selection?t.selection instanceof C?t.selection:C.single(t.selection.anchor,t.selection.head):C.single(0);return Ll(n,i.length),e.staticFacet(cs)||(n=n.asSingle()),new z(e,i,n,e.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(z.tabSize)}get lineBreak(){return this.facet(z.lineSeparator)||` diff --git a/ui/assets/local/_app/immutable/chunks/coffee.l2qQMQgL.js b/ui/assets/local/_app/immutable/chunks/coffee.l2qQMQgL.js new file mode 100644 index 0000000000..186bee8381 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/coffee.l2qQMQgL.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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")}}},r={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:/[=>({}),Oe=i=>({slot:"leading"}),gl=i=>({}),Ve=i=>({slot:"trailing"});function hl(i){let t;const n=i[2].default,e=le(n,i,i[4],null);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,s){e&&e.m(l,s),t=!0},p(l,s){e&&e.p&&(!t||s&16)&&te(e,n,l,l[4],t?ie(n,l[4],s,null):ne(l[4]),null)},i(l){t||(d(e,l),t=!0)},o(l){b(e,l),t=!1},d(l){e&&e.d(l)}}}function pl(i){let t;const n=i[2].leading,e=le(n,i,i[4],Oe);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,s){e&&e.m(l,s),t=!0},p(l,s){e&&e.p&&(!t||s&16)&&te(e,n,l,l[4],t?ie(n,l[4],s,bl):ne(l[4]),Oe)},i(l){t||(d(e,l),t=!0)},o(l){b(e,l),t=!1},d(l){e&&e.d(l)}}}function kl(i){let t;const n=i[2].trailing,e=le(n,i,i[4],Ve);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,s){e&&e.m(l,s),t=!0},p(l,s){e&&e.p&&(!t||s&16)&&te(e,n,l,l[4],t?ie(n,l[4],s,gl):ne(l[4]),Ve)},i(l){t||(d(e,l),t=!0)},o(l){b(e,l),t=!1},d(l){e&&e.d(l)}}}function Ll(i){let t,n;return t=new ul({props:{role:"option",class:"break-all","aria-selected":i[0],"aria-disabled":i[1],disabled:i[1],selected:i[0],$$slots:{trailing:[kl],leading:[pl],default:[hl]},$$scope:{ctx:i}}}),t.$on("click",i[3]),{c(){N(t.$$.fragment)},l(e){M(t.$$.fragment,e)},m(e,l){H(t,e,l),n=!0},p(e,[l]){const s={};l&1&&(s["aria-selected"]=e[0]),l&2&&(s["aria-disabled"]=e[1]),l&2&&(s.disabled=e[1]),l&1&&(s.selected=e[0]),l&16&&(s.$$scope={dirty:l,ctx:e}),t.$set(s)},i(e){n||(d(t.$$.fragment,e),n=!0)},o(e){b(t.$$.fragment,e),n=!1},d(e){R(t,e)}}}function Sl(i,t,n){let{$$slots:e={},$$scope:l}=t,{selected:s=!1}=t,{disabled:r=!1}=t;function u(c){el.call(this,i,c)}return i.$$set=c=>{"selected"in c&&n(0,s=c.selected),"disabled"in c&&n(1,r=c.disabled),"$$scope"in c&&n(4,l=c.$$scope)},[s,r,e,u,l]}class ke extends Fe{constructor(t){super(),Pe(this,t,Sl,Ll,je,{selected:0,disabled:1})}}function Te(i,t,n){const e=i.slice();return e[52]=t[n],e}const zl=i=>({option:i[0]&524288}),ve=i=>({option:i[25](i[52])}),ql=i=>({}),Ne=i=>({});function Me(i){let t,n;return t=new Ge({props:{width:20,height:20,class:"ml-2 shrink-0",name:i[11]}}),{c(){N(t.$$.fragment)},l(e){M(t.$$.fragment,e)},m(e,l){H(t,e,l),n=!0},p(e,l){const s={};l[0]&2048&&(s.name=e[11]),t.$set(s)},i(e){n||(d(t.$$.fragment,e),n=!0)},o(e){b(t.$$.fragment,e),n=!1},d(e){R(t,e)}}}function El(i){let t,n;return t=new Ge({props:{name:i[20]?"chevron-up":"chevron-down"}}),{c(){N(t.$$.fragment)},l(e){M(t.$$.fragment,e)},m(e,l){H(t,e,l),n=!0},p(e,l){const s={};l[0]&1048576&&(s.name=e[20]?"chevron-up":"chevron-down"),t.$set(s)},i(e){n||(d(t.$$.fragment,e),n=!0)},o(e){b(t.$$.fragment,e),n=!1},d(e){R(t,e)}}}function He(i){let t,n;const e=i[40].action,l=le(e,i,i[45],Ne);return{c(){t=re("div"),l&&l.c(),this.h()},l(s){t=fe(s,"DIV",{class:!0});var r=he(t);l&&l.l(r),r.forEach(S),this.h()},h(){pe(t,"class","ml-1 flex h-full items-center border-l-2 border-subtle p-0.5")},m(s,r){q(s,t,r),l&&l.m(t,null),n=!0},p(s,r){l&&l.p&&(!n||r[1]&16384)&&te(l,e,s,s[45],n?ie(e,s[45],r,ql):ne(s[45]),Ne)},i(s){n||(d(l,s),n=!0)},o(s){b(l,s),n=!1},d(s){s&&S(t),l&&l.d(s)}}}function Re(i){let t,n;return t=new ke({props:{disabled:!0,$$slots:{default:[Il]},$$scope:{ctx:i}}}),{c(){N(t.$$.fragment)},l(e){M(t.$$.fragment,e)},m(e,l){H(t,e,l),n=!0},p(e,l){const s={};l[0]&32|l[1]&16384&&(s.$$scope={dirty:l,ctx:e}),t.$set(s)},i(e){n||(d(t.$$.fragment,e),n=!0)},o(e){b(t.$$.fragment,e),n=!1},d(e){R(t,e)}}}function Il(i){let t;return{c(){t=ue(i[5])},l(n){t=ce(n,i[5])},m(n,e){q(n,t,e)},p(n,e){e[0]&32&&me(t,n[5])},d(n){n&&S(t)}}}function Cl(i){let t,n,e,l,s;const r=[Vl,Ol],u=[];function c(m,_){return _[0]&524288&&(t=null),t==null&&(t=!!m[28](m[52])),t?0:1}return n=c(i,[-1,-1]),e=u[n]=r[n](i),{c(){e.c(),l=G()},l(m){e.l(m),l=G()},m(m,_){u[n].m(m,_),q(m,l,_),s=!0},p(m,_){let k=n;n=c(m,_),n===k?u[n].p(m,_):(W(),b(u[k],1,1,()=>{u[k]=null}),X(),e=u[n],e?e.p(m,_):(e=u[n]=r[n](m),e.c()),d(e,1),e.m(l.parentNode,l))},i(m){s||(d(e),s=!0)},o(m){b(e),s=!1},d(m){m&&S(l),u[n].d(m)}}}function Kl(i){let t,n;function e(){return i[42](i[52])}return t=new ke({props:{selected:i[0]===i[52],$$slots:{default:[vl]},$$scope:{ctx:i}}}),t.$on("click",e),{c(){N(t.$$.fragment)},l(l){M(t.$$.fragment,l)},m(l,s){H(t,l,s),n=!0},p(l,s){i=l;const r={};s[0]&524289&&(r.selected=i[0]===i[52]),s[0]&524288|s[1]&16384&&(r.$$scope={dirty:s,ctx:i}),t.$set(r)},i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){b(t.$$.fragment,l),n=!1},d(l){R(t,l)}}}function Ol(i){let t;const n=i[40].default,e=le(n,i,i[45],ve);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,s){e&&e.m(l,s),t=!0},p(l,s){e&&e.p&&(!t||s[0]&524288|s[1]&16384)&&te(e,n,l,l[45],t?ie(n,l[45],s,zl):ne(l[45]),ve)},i(l){t||(d(e,l),t=!0)},o(l){b(e,l),t=!1},d(l){e&&e.d(l)}}}function Vl(i){let t,n;function e(){return i[43](i[52])}return t=new ke({props:{selected:i[0]===i[52][i[12]],$$slots:{default:[Tl]},$$scope:{ctx:i}}}),t.$on("click",e),{c(){N(t.$$.fragment)},l(l){M(t.$$.fragment,l)},m(l,s){H(t,l,s),n=!0},p(l,s){i=l;const r={};s[0]&528385&&(r.selected=i[0]===i[52][i[12]]),s[0]&532480|s[1]&16384&&(r.$$scope={dirty:s,ctx:i}),t.$set(r)},i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){b(t.$$.fragment,l),n=!1},d(l){R(t,l)}}}function Tl(i){let t=i[52][i[13]]+"",n,e;return{c(){n=ue(t),e=F()},l(l){n=ce(l,t),e=P(l)},m(l,s){q(l,n,s),q(l,e,s)},p(l,s){s[0]&532480&&t!==(t=l[52][l[13]]+"")&&me(n,t)},d(l){l&&(S(n),S(e))}}}function vl(i){let t=i[52]+"",n,e;return{c(){n=ue(t),e=F()},l(l){n=ce(l,t),e=P(l)},m(l,s){q(l,n,s),q(l,e,s)},p(l,s){s[0]&524288&&t!==(t=l[52]+"")&&me(n,t)},d(l){l&&(S(n),S(e))}}}function Ae(i){let t,n,e,l,s,r;const u=[Kl,Cl],c=[];function m(_,k){return k[0]&524288&&(t=null),k[0]&524288&&(n=null),t==null&&(t=!!_[26](_[52])),t?0:(n==null&&(n=!!_[27](_[52])),n?1:-1)}return~(e=m(i,[-1,-1]))&&(l=c[e]=u[e](i)),{c(){l&&l.c(),s=G()},l(_){l&&l.l(_),s=G()},m(_,k){~e&&c[e].m(_,k),q(_,s,k),r=!0},p(_,k){let O=e;e=m(_,k),e===O?~e&&c[e].p(_,k):(l&&(W(),b(c[O],1,1,()=>{c[O]=null}),X()),~e?(l=c[e],l?l.p(_,k):(l=c[e]=u[e](_),l.c()),d(l,1),l.m(s.parentNode,s)):l=null)},i(_){r||(d(l),r=!0)},o(_){b(l),r=!1},d(_){_&&S(s),~e&&c[e].d(_)}}}function Nl(i){let t,n,e=Ce(i[19]),l=[];for(let u=0;ub(l[u],1,1,()=>{l[u]=null});let r=null;return e.length||(r=Re(i)),{c(){for(let u=0;u{r=null}),X()):(r=Re(u),r.c(),d(r,1),r.m(t.parentNode,t))}},i(u){if(!n){for(let c=0;col(I,"menuElement",v));let p=i[14]&&!i[15]&&De(i);return{c(){N(t.$$.fragment),n=F(),e=re("div"),g&&g.c(),l=F(),s=re("input"),m=F(),N(_.$$.fragment),k=F(),h&&h.c(),O=F(),N(I.$$.fragment),U=F(),p&&p.c(),A=G(),this.h()},l(o){M(t.$$.fragment,o),n=P(o),e=fe(o,"DIV",{class:!0});var f=he(e);g&&g.l(f),l=P(f),s=fe(f,"INPUT",{id:!0,placeholder:!0,type:!0,class:!0,role:!0,autocomplete:!0,autocapitalize:!0,spellcheck:!0,"data-lpignore":!0,"aria-controls":!0,"aria-expanded":!0,"aria-required":!0,"aria-autocomplete":!0,"data-testid":!0}),m=P(f),M(_.$$.fragment,f),k=P(f),h&&h.l(f),f.forEach(S),O=P(o),M(I.$$.fragment,o),U=P(o),p&&p.l(o),A=G(),this.h()},h(){Ie(s,V),B(s,"disabled",i[6]),B(s,"svelte-if0lp3",!0),pe(e,"class","combobox-wrapper svelte-if0lp3"),B(e,"disabled",i[6]),B(e,"invalid",!i[15])},m(o,f){H(t,o,f),q(o,n,f),q(o,e,f),g&&g.m(e,null),ee(e,l),ee(e,s),"value"in V&&(s.value=V.value),s.autofocus&&s.focus(),i[41](s),ee(e,m),H(_,e,null),ee(e,k),h&&h.m(e,null),q(o,O,f),H(I,o,f),q(o,U,f),p&&p.m(o,f),q(o,A,f),L=!0,J||(T=[ae(s,"focus",oe(i[23])),ae(s,"input",oe(i[31])),ae(s,"keydown",oe(i[30])),ae(s,"click",oe(i[32]))],J=!0)},p(o,f){const j={};f[0]&128&&(j.hidden=o[7]),f[0]&1024&&(j.required=o[10]),f[0]&8&&(j.label=o[3]),f[0]&4&&(j.for=o[2]),t.$set(j),o[11]?g?(g.p(o,f),f[0]&2048&&d(g,1)):(g=Me(o),g.c(),d(g,1),g.m(e,l)):g&&(W(),b(g,1,1,()=>{g=null}),X()),Ie(s,V=rl(Q,[(!L||f[0]&4)&&{id:o[2]},(!L||f[0]&256)&&{placeholder:o[8]},(!L||f[0]&1024)&&{required:o[10]},(!L||f[0]&512)&&{readOnly:o[9]},(!L||f[0]&64)&&{disabled:o[6]},{type:"text"},(!L||f[0]&65536&&s.value!==o[16])&&{value:o[16]},(!L||f[0]&2&&r!==(r=Ke("combobox-input",o[1])))&&{class:r},{role:"combobox"},{autocomplete:"off"},{autocapitalize:"off"},{spellcheck:"false"},{"data-lpignore":"true"},(!L||f[0]&4&&u!==(u=o[2]+"-listbox"))&&{"aria-controls":u},(!L||f[0]&1048576)&&{"aria-expanded":o[20]},(!L||f[0]&1024)&&{"aria-required":o[10]},{"aria-autocomplete":"list"},(!L||f[0]&4|f[1]&4&&c!==(c=o[33]["data-testid"]??o[2]))&&{"data-testid":c},f[1]&8&&o[34]])),"value"in V&&(s.value=V.value),B(s,"disabled",o[6]),B(s,"svelte-if0lp3",!0);const z={};f[0]&16&&(z["aria-label"]=o[4]),f[0]&4&&(z["aria-controls"]=o[2]+"-listbox"),f[0]&1048576&&(z["aria-expanded"]=o[20]),f[0]&64&&(z.disabled=o[6]),f[0]&1048576|f[1]&16384&&(z.$$scope={dirty:f,ctx:o}),_.$set(z),o[35].action?h?(h.p(o,f),f[1]&16&&d(h,1)):(h=He(o),h.c(),d(h,1),h.m(e,null)):h&&(W(),b(h,1,1,()=>{h=null}),X()),(!L||f[0]&64)&&B(e,"disabled",o[6]),(!L||f[0]&32768)&&B(e,"invalid",!o[15]);const C={};f[0]&4&&(C.id=o[2]+"-listbox"),f[0]&536609|f[1]&16384&&(C.$$scope={dirty:f,ctx:o}),!E&&f[0]&262144&&(E=!0,C.menuElement=o[18],il(()=>E=!1)),I.$set(C),o[14]&&!o[15]?p?p.p(o,f):(p=De(o),p.c(),p.m(A.parentNode,A)):p&&(p.d(1),p=null)},i(o){L||(d(t.$$.fragment,o),d(g),d(_.$$.fragment,o),d(h),d(I.$$.fragment,o),L=!0)},o(o){b(t.$$.fragment,o),b(g),b(_.$$.fragment,o),b(h),b(I.$$.fragment,o),L=!1},d(o){o&&(S(n),S(e),S(O),S(U),S(A)),R(t,o),g&&g.d(),i[41](null),R(_),h&&h.d(),R(I,o),p&&p.d(o),J=!1,sl(T)}}}function Hl(i){let t,n;return t=new cl({props:{open:i[21],$$slots:{default:[Ml]},$$scope:{ctx:i}}}),t.$on("close",i[24]),{c(){N(t.$$.fragment)},l(e){M(t.$$.fragment,e)},m(e,l){H(t,e,l),n=!0},p(e,l){const s={};l[0]&2097151|l[1]&16412&&(s.$$scope={dirty:l,ctx:e}),t.$set(s)},i(e){n||(d(t.$$.fragment,e),n=!0)},o(e){b(t.$$.fragment,e),n=!1},d(e){R(t,e)}}}function Rl(i,t,n){let e;const l=["class","id","label","value","toggleLabel","noResultsText","disabled","labelHidden","options","placeholder","readonly","required","leadingIcon","optionValueKey","optionLabelKey","minSize","maxSize","error","valid"];let s=qe(t,l),r,{$$slots:u={},$$scope:c}=t;const m=ll(u),_=tl();let{class:k=""}=t,{id:O}=t,{label:I}=t,{value:E=void 0}=t,{toggleLabel:U}=t,{noResultsText:A}=t,{disabled:L=!1}=t,{labelHidden:J=!1}=t,{options:T}=t,{placeholder:g=null}=t,{readonly:Q=!1}=t,{required:V=!1}=t,{leadingIcon:h=null}=t,{optionValueKey:v=null}=t,{optionLabelKey:D=v}=t,{minSize:p=0}=t,{maxSize:o=120}=t,{error:f=""}=t,{valid:j=!0}=t,z,C,se,K;const Y=fl(!1);nl(i,Y,a=>n(20,r=a));const Ue=()=>{r?Le():Z()},Z=()=>{be(Y,r=!0,r),K.focus(),K.select()},Le=()=>{r&&(be(Y,r=!1,r),_("close",{selectedOption:C}),_e())},Je=()=>{_("close",{selectedOption:C}),_e()},_e=()=>{n(16,z=Se(C)),n(19,e=T)},Qe=a=>a,w=a=>typeof a=="string",y=a=>typeof a=="object",$=a=>a===null||typeof a!="object"?!1:v!==null&&D!==null&&v in a&&D in a,Se=a=>{if(!a)return E??"";if(w(a))return a;if(y(a)&&$(a))return String(a[D])},We=a=>{w(a)&&n(0,E=a),y(a)&&$(a)&&n(0,E=String(a[v]))},de=a=>{We(a),_("change",{value:a}),_e()},ze=()=>{const a=se.querySelector('li[role="option"]:not([aria-disabled="true"])');a&&requestAnimationFrame(()=>a.focus())},Xe=a=>{switch(a.key){case"Escape":Le();break;case"ArrowDown":Z(),ze();break;case"Enter":Z(),ze();break}},Ye=a=>{n(16,z=a.currentTarget.value),_("filter",z),r||be(Y,r=!0,r),n(19,e=T.filter(x=>{if(w(x))return x.toLowerCase().includes(a.currentTarget.value.toLowerCase());if(y(x)&&$(x))return String(x[D]).toLowerCase().includes(a.currentTarget.value.toLowerCase())}))},Ze=()=>{r||Z()};function we(a){Be[a?"unshift":"push"](()=>{K=a,n(17,K),n(16,z),n(37,p),n(38,o),n(36,T),n(0,E),n(12,v),n(39,C)})}const ye=a=>de(a),$e=a=>de(a);function xe(a){se=a,n(18,se)}return i.$$set=a=>{n(33,t=ge(ge({},t),Ee(a))),n(34,s=qe(t,l)),"class"in a&&n(1,k=a.class),"id"in a&&n(2,O=a.id),"label"in a&&n(3,I=a.label),"value"in a&&n(0,E=a.value),"toggleLabel"in a&&n(4,U=a.toggleLabel),"noResultsText"in a&&n(5,A=a.noResultsText),"disabled"in a&&n(6,L=a.disabled),"labelHidden"in a&&n(7,J=a.labelHidden),"options"in a&&n(36,T=a.options),"placeholder"in a&&n(8,g=a.placeholder),"readonly"in a&&n(9,Q=a.readonly),"required"in a&&n(10,V=a.required),"leadingIcon"in a&&n(11,h=a.leadingIcon),"optionValueKey"in a&&n(12,v=a.optionValueKey),"optionLabelKey"in a&&n(13,D=a.optionLabelKey),"minSize"in a&&n(37,p=a.minSize),"maxSize"in a&&n(38,o=a.maxSize),"error"in a&&n(14,f=a.error),"valid"in a&&n(15,j=a.valid),"$$scope"in a&&n(45,c=a.$$scope)},i.$$.update=()=>{i.$$.dirty[1]&32&&n(19,e=T),i.$$.dirty[0]&4097|i.$$.dirty[1]&288&&(n(39,C=T.find(a=>{if(w(a))return a===E;if(y(a)&&$(a))return a[v]===E})),n(16,z=Se(C))),i.$$.dirty[0]&196608|i.$$.dirty[1]&192&&K&&z&&(z.lengtho?n(17,K.size=o,K):n(17,K.size=z.length,K))},t=Ee(t),[E,k,O,I,U,A,L,J,g,Q,V,h,v,D,f,j,z,K,se,e,r,Y,Ue,Z,Je,Qe,w,y,$,de,Xe,Ye,Ze,t,s,m,T,p,o,C,u,we,ye,$e,xe,c]}class Wl extends Fe{constructor(t){super(),Pe(this,t,Rl,Hl,je,{class:1,id:2,label:3,value:0,toggleLabel:4,noResultsText:5,disabled:6,labelHidden:7,options:36,placeholder:8,readonly:9,required:10,leadingIcon:11,optionValueKey:12,optionLabelKey:13,minSize:37,maxSize:38,error:14,valid:15},null,[-1,-1])}}export{Wl as C}; +import{s as je,a as le,u as te,g as ne,e as ie,B as el,E as qe,L as ll,r as tl,c as nl,z as ge,A as Ee,M as Be,b as F,h as re,x as G,d as P,j as fe,k as he,f as S,F as Ie,I as B,m as pe,i as q,n as ee,p as ae,G as oe,T as il,H as sl,w as be,y as al,t as ue,l as ce,q as me}from"./scheduler.pPC3woXQ.js";import{S as Fe,i as Pe,c as N,a as M,m as H,t as d,b,d as R,f as ol,g as W,e as X}from"./index.Z3Qqxacm.js";import{e as Ce}from"./each.fm8Uvuh8.js";import{g as rl}from"./spread.rEx3vLA9.js";import{w as fl}from"./entry.6mxJxwSM.js";import{c as ul,M as cl,b as ml}from"./menu.jMDW2ED5.js";import{L as _l}from"./label.zXYhHpIA.js";import{B as dl}from"./button.pYfDLC93.js";import{I as Ge}from"./icon.IMxiy1l_.js";import{t as Ke}from"./tw-merge.NbP7EmZe.js";const bl=i=>({}),Oe=i=>({slot:"leading"}),gl=i=>({}),Ve=i=>({slot:"trailing"});function hl(i){let t;const n=i[2].default,e=le(n,i,i[4],null);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,s){e&&e.m(l,s),t=!0},p(l,s){e&&e.p&&(!t||s&16)&&te(e,n,l,l[4],t?ie(n,l[4],s,null):ne(l[4]),null)},i(l){t||(d(e,l),t=!0)},o(l){b(e,l),t=!1},d(l){e&&e.d(l)}}}function pl(i){let t;const n=i[2].leading,e=le(n,i,i[4],Oe);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,s){e&&e.m(l,s),t=!0},p(l,s){e&&e.p&&(!t||s&16)&&te(e,n,l,l[4],t?ie(n,l[4],s,bl):ne(l[4]),Oe)},i(l){t||(d(e,l),t=!0)},o(l){b(e,l),t=!1},d(l){e&&e.d(l)}}}function kl(i){let t;const n=i[2].trailing,e=le(n,i,i[4],Ve);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,s){e&&e.m(l,s),t=!0},p(l,s){e&&e.p&&(!t||s&16)&&te(e,n,l,l[4],t?ie(n,l[4],s,gl):ne(l[4]),Ve)},i(l){t||(d(e,l),t=!0)},o(l){b(e,l),t=!1},d(l){e&&e.d(l)}}}function Ll(i){let t,n;return t=new ul({props:{role:"option",class:"break-all","aria-selected":i[0],"aria-disabled":i[1],disabled:i[1],selected:i[0],$$slots:{trailing:[kl],leading:[pl],default:[hl]},$$scope:{ctx:i}}}),t.$on("click",i[3]),{c(){N(t.$$.fragment)},l(e){M(t.$$.fragment,e)},m(e,l){H(t,e,l),n=!0},p(e,[l]){const s={};l&1&&(s["aria-selected"]=e[0]),l&2&&(s["aria-disabled"]=e[1]),l&2&&(s.disabled=e[1]),l&1&&(s.selected=e[0]),l&16&&(s.$$scope={dirty:l,ctx:e}),t.$set(s)},i(e){n||(d(t.$$.fragment,e),n=!0)},o(e){b(t.$$.fragment,e),n=!1},d(e){R(t,e)}}}function Sl(i,t,n){let{$$slots:e={},$$scope:l}=t,{selected:s=!1}=t,{disabled:r=!1}=t;function u(c){el.call(this,i,c)}return i.$$set=c=>{"selected"in c&&n(0,s=c.selected),"disabled"in c&&n(1,r=c.disabled),"$$scope"in c&&n(4,l=c.$$scope)},[s,r,e,u,l]}class ke extends Fe{constructor(t){super(),Pe(this,t,Sl,Ll,je,{selected:0,disabled:1})}}function Te(i,t,n){const e=i.slice();return e[52]=t[n],e}const zl=i=>({option:i[0]&524288}),ve=i=>({option:i[25](i[52])}),ql=i=>({}),Ne=i=>({});function Me(i){let t,n;return t=new Ge({props:{width:20,height:20,class:"ml-2 shrink-0",name:i[11]}}),{c(){N(t.$$.fragment)},l(e){M(t.$$.fragment,e)},m(e,l){H(t,e,l),n=!0},p(e,l){const s={};l[0]&2048&&(s.name=e[11]),t.$set(s)},i(e){n||(d(t.$$.fragment,e),n=!0)},o(e){b(t.$$.fragment,e),n=!1},d(e){R(t,e)}}}function El(i){let t,n;return t=new Ge({props:{name:i[20]?"chevron-up":"chevron-down"}}),{c(){N(t.$$.fragment)},l(e){M(t.$$.fragment,e)},m(e,l){H(t,e,l),n=!0},p(e,l){const s={};l[0]&1048576&&(s.name=e[20]?"chevron-up":"chevron-down"),t.$set(s)},i(e){n||(d(t.$$.fragment,e),n=!0)},o(e){b(t.$$.fragment,e),n=!1},d(e){R(t,e)}}}function He(i){let t,n;const e=i[40].action,l=le(e,i,i[45],Ne);return{c(){t=re("div"),l&&l.c(),this.h()},l(s){t=fe(s,"DIV",{class:!0});var r=he(t);l&&l.l(r),r.forEach(S),this.h()},h(){pe(t,"class","ml-1 flex h-full items-center border-l-2 border-subtle p-0.5")},m(s,r){q(s,t,r),l&&l.m(t,null),n=!0},p(s,r){l&&l.p&&(!n||r[1]&16384)&&te(l,e,s,s[45],n?ie(e,s[45],r,ql):ne(s[45]),Ne)},i(s){n||(d(l,s),n=!0)},o(s){b(l,s),n=!1},d(s){s&&S(t),l&&l.d(s)}}}function Re(i){let t,n;return t=new ke({props:{disabled:!0,$$slots:{default:[Il]},$$scope:{ctx:i}}}),{c(){N(t.$$.fragment)},l(e){M(t.$$.fragment,e)},m(e,l){H(t,e,l),n=!0},p(e,l){const s={};l[0]&32|l[1]&16384&&(s.$$scope={dirty:l,ctx:e}),t.$set(s)},i(e){n||(d(t.$$.fragment,e),n=!0)},o(e){b(t.$$.fragment,e),n=!1},d(e){R(t,e)}}}function Il(i){let t;return{c(){t=ue(i[5])},l(n){t=ce(n,i[5])},m(n,e){q(n,t,e)},p(n,e){e[0]&32&&me(t,n[5])},d(n){n&&S(t)}}}function Cl(i){let t,n,e,l,s;const r=[Vl,Ol],u=[];function c(m,_){return _[0]&524288&&(t=null),t==null&&(t=!!m[28](m[52])),t?0:1}return n=c(i,[-1,-1]),e=u[n]=r[n](i),{c(){e.c(),l=G()},l(m){e.l(m),l=G()},m(m,_){u[n].m(m,_),q(m,l,_),s=!0},p(m,_){let k=n;n=c(m,_),n===k?u[n].p(m,_):(W(),b(u[k],1,1,()=>{u[k]=null}),X(),e=u[n],e?e.p(m,_):(e=u[n]=r[n](m),e.c()),d(e,1),e.m(l.parentNode,l))},i(m){s||(d(e),s=!0)},o(m){b(e),s=!1},d(m){m&&S(l),u[n].d(m)}}}function Kl(i){let t,n;function e(){return i[42](i[52])}return t=new ke({props:{selected:i[0]===i[52],$$slots:{default:[vl]},$$scope:{ctx:i}}}),t.$on("click",e),{c(){N(t.$$.fragment)},l(l){M(t.$$.fragment,l)},m(l,s){H(t,l,s),n=!0},p(l,s){i=l;const r={};s[0]&524289&&(r.selected=i[0]===i[52]),s[0]&524288|s[1]&16384&&(r.$$scope={dirty:s,ctx:i}),t.$set(r)},i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){b(t.$$.fragment,l),n=!1},d(l){R(t,l)}}}function Ol(i){let t;const n=i[40].default,e=le(n,i,i[45],ve);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,s){e&&e.m(l,s),t=!0},p(l,s){e&&e.p&&(!t||s[0]&524288|s[1]&16384)&&te(e,n,l,l[45],t?ie(n,l[45],s,zl):ne(l[45]),ve)},i(l){t||(d(e,l),t=!0)},o(l){b(e,l),t=!1},d(l){e&&e.d(l)}}}function Vl(i){let t,n;function e(){return i[43](i[52])}return t=new ke({props:{selected:i[0]===i[52][i[12]],$$slots:{default:[Tl]},$$scope:{ctx:i}}}),t.$on("click",e),{c(){N(t.$$.fragment)},l(l){M(t.$$.fragment,l)},m(l,s){H(t,l,s),n=!0},p(l,s){i=l;const r={};s[0]&528385&&(r.selected=i[0]===i[52][i[12]]),s[0]&532480|s[1]&16384&&(r.$$scope={dirty:s,ctx:i}),t.$set(r)},i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){b(t.$$.fragment,l),n=!1},d(l){R(t,l)}}}function Tl(i){let t=i[52][i[13]]+"",n,e;return{c(){n=ue(t),e=F()},l(l){n=ce(l,t),e=P(l)},m(l,s){q(l,n,s),q(l,e,s)},p(l,s){s[0]&532480&&t!==(t=l[52][l[13]]+"")&&me(n,t)},d(l){l&&(S(n),S(e))}}}function vl(i){let t=i[52]+"",n,e;return{c(){n=ue(t),e=F()},l(l){n=ce(l,t),e=P(l)},m(l,s){q(l,n,s),q(l,e,s)},p(l,s){s[0]&524288&&t!==(t=l[52]+"")&&me(n,t)},d(l){l&&(S(n),S(e))}}}function Ae(i){let t,n,e,l,s,r;const u=[Kl,Cl],c=[];function m(_,k){return k[0]&524288&&(t=null),k[0]&524288&&(n=null),t==null&&(t=!!_[26](_[52])),t?0:(n==null&&(n=!!_[27](_[52])),n?1:-1)}return~(e=m(i,[-1,-1]))&&(l=c[e]=u[e](i)),{c(){l&&l.c(),s=G()},l(_){l&&l.l(_),s=G()},m(_,k){~e&&c[e].m(_,k),q(_,s,k),r=!0},p(_,k){let O=e;e=m(_,k),e===O?~e&&c[e].p(_,k):(l&&(W(),b(c[O],1,1,()=>{c[O]=null}),X()),~e?(l=c[e],l?l.p(_,k):(l=c[e]=u[e](_),l.c()),d(l,1),l.m(s.parentNode,s)):l=null)},i(_){r||(d(l),r=!0)},o(_){b(l),r=!1},d(_){_&&S(s),~e&&c[e].d(_)}}}function Nl(i){let t,n,e=Ce(i[19]),l=[];for(let u=0;ub(l[u],1,1,()=>{l[u]=null});let r=null;return e.length||(r=Re(i)),{c(){for(let u=0;u{r=null}),X()):(r=Re(u),r.c(),d(r,1),r.m(t.parentNode,t))}},i(u){if(!n){for(let c=0;col(I,"menuElement",v));let p=i[14]&&!i[15]&&De(i);return{c(){N(t.$$.fragment),n=F(),e=re("div"),g&&g.c(),l=F(),s=re("input"),m=F(),N(_.$$.fragment),k=F(),h&&h.c(),O=F(),N(I.$$.fragment),U=F(),p&&p.c(),A=G(),this.h()},l(o){M(t.$$.fragment,o),n=P(o),e=fe(o,"DIV",{class:!0});var f=he(e);g&&g.l(f),l=P(f),s=fe(f,"INPUT",{id:!0,placeholder:!0,type:!0,class:!0,role:!0,autocomplete:!0,autocapitalize:!0,spellcheck:!0,"data-lpignore":!0,"aria-controls":!0,"aria-expanded":!0,"aria-required":!0,"aria-autocomplete":!0,"data-testid":!0}),m=P(f),M(_.$$.fragment,f),k=P(f),h&&h.l(f),f.forEach(S),O=P(o),M(I.$$.fragment,o),U=P(o),p&&p.l(o),A=G(),this.h()},h(){Ie(s,V),B(s,"disabled",i[6]),B(s,"svelte-if0lp3",!0),pe(e,"class","combobox-wrapper svelte-if0lp3"),B(e,"disabled",i[6]),B(e,"invalid",!i[15])},m(o,f){H(t,o,f),q(o,n,f),q(o,e,f),g&&g.m(e,null),ee(e,l),ee(e,s),"value"in V&&(s.value=V.value),s.autofocus&&s.focus(),i[41](s),ee(e,m),H(_,e,null),ee(e,k),h&&h.m(e,null),q(o,O,f),H(I,o,f),q(o,U,f),p&&p.m(o,f),q(o,A,f),L=!0,J||(T=[ae(s,"focus",oe(i[23])),ae(s,"input",oe(i[31])),ae(s,"keydown",oe(i[30])),ae(s,"click",oe(i[32]))],J=!0)},p(o,f){const j={};f[0]&128&&(j.hidden=o[7]),f[0]&1024&&(j.required=o[10]),f[0]&8&&(j.label=o[3]),f[0]&4&&(j.for=o[2]),t.$set(j),o[11]?g?(g.p(o,f),f[0]&2048&&d(g,1)):(g=Me(o),g.c(),d(g,1),g.m(e,l)):g&&(W(),b(g,1,1,()=>{g=null}),X()),Ie(s,V=rl(Q,[(!L||f[0]&4)&&{id:o[2]},(!L||f[0]&256)&&{placeholder:o[8]},(!L||f[0]&1024)&&{required:o[10]},(!L||f[0]&512)&&{readOnly:o[9]},(!L||f[0]&64)&&{disabled:o[6]},{type:"text"},(!L||f[0]&65536&&s.value!==o[16])&&{value:o[16]},(!L||f[0]&2&&r!==(r=Ke("combobox-input",o[1])))&&{class:r},{role:"combobox"},{autocomplete:"off"},{autocapitalize:"off"},{spellcheck:"false"},{"data-lpignore":"true"},(!L||f[0]&4&&u!==(u=o[2]+"-listbox"))&&{"aria-controls":u},(!L||f[0]&1048576)&&{"aria-expanded":o[20]},(!L||f[0]&1024)&&{"aria-required":o[10]},{"aria-autocomplete":"list"},(!L||f[0]&4|f[1]&4&&c!==(c=o[33]["data-testid"]??o[2]))&&{"data-testid":c},f[1]&8&&o[34]])),"value"in V&&(s.value=V.value),B(s,"disabled",o[6]),B(s,"svelte-if0lp3",!0);const z={};f[0]&16&&(z["aria-label"]=o[4]),f[0]&4&&(z["aria-controls"]=o[2]+"-listbox"),f[0]&1048576&&(z["aria-expanded"]=o[20]),f[0]&64&&(z.disabled=o[6]),f[0]&1048576|f[1]&16384&&(z.$$scope={dirty:f,ctx:o}),_.$set(z),o[35].action?h?(h.p(o,f),f[1]&16&&d(h,1)):(h=He(o),h.c(),d(h,1),h.m(e,null)):h&&(W(),b(h,1,1,()=>{h=null}),X()),(!L||f[0]&64)&&B(e,"disabled",o[6]),(!L||f[0]&32768)&&B(e,"invalid",!o[15]);const C={};f[0]&4&&(C.id=o[2]+"-listbox"),f[0]&536609|f[1]&16384&&(C.$$scope={dirty:f,ctx:o}),!E&&f[0]&262144&&(E=!0,C.menuElement=o[18],il(()=>E=!1)),I.$set(C),o[14]&&!o[15]?p?p.p(o,f):(p=De(o),p.c(),p.m(A.parentNode,A)):p&&(p.d(1),p=null)},i(o){L||(d(t.$$.fragment,o),d(g),d(_.$$.fragment,o),d(h),d(I.$$.fragment,o),L=!0)},o(o){b(t.$$.fragment,o),b(g),b(_.$$.fragment,o),b(h),b(I.$$.fragment,o),L=!1},d(o){o&&(S(n),S(e),S(O),S(U),S(A)),R(t,o),g&&g.d(),i[41](null),R(_),h&&h.d(),R(I,o),p&&p.d(o),J=!1,sl(T)}}}function Hl(i){let t,n;return t=new cl({props:{open:i[21],$$slots:{default:[Ml]},$$scope:{ctx:i}}}),t.$on("close",i[24]),{c(){N(t.$$.fragment)},l(e){M(t.$$.fragment,e)},m(e,l){H(t,e,l),n=!0},p(e,l){const s={};l[0]&2097151|l[1]&16412&&(s.$$scope={dirty:l,ctx:e}),t.$set(s)},i(e){n||(d(t.$$.fragment,e),n=!0)},o(e){b(t.$$.fragment,e),n=!1},d(e){R(t,e)}}}function Rl(i,t,n){let e;const l=["class","id","label","value","toggleLabel","noResultsText","disabled","labelHidden","options","placeholder","readonly","required","leadingIcon","optionValueKey","optionLabelKey","minSize","maxSize","error","valid"];let s=qe(t,l),r,{$$slots:u={},$$scope:c}=t;const m=ll(u),_=tl();let{class:k=""}=t,{id:O}=t,{label:I}=t,{value:E=void 0}=t,{toggleLabel:U}=t,{noResultsText:A}=t,{disabled:L=!1}=t,{labelHidden:J=!1}=t,{options:T}=t,{placeholder:g=null}=t,{readonly:Q=!1}=t,{required:V=!1}=t,{leadingIcon:h=null}=t,{optionValueKey:v=null}=t,{optionLabelKey:D=v}=t,{minSize:p=0}=t,{maxSize:o=120}=t,{error:f=""}=t,{valid:j=!0}=t,z,C,se,K;const Y=fl(!1);nl(i,Y,a=>n(20,r=a));const Ue=()=>{r?Le():Z()},Z=()=>{be(Y,r=!0,r),K.focus(),K.select()},Le=()=>{r&&(be(Y,r=!1,r),_("close",{selectedOption:C}),_e())},Je=()=>{_("close",{selectedOption:C}),_e()},_e=()=>{n(16,z=Se(C)),n(19,e=T)},Qe=a=>a,w=a=>typeof a=="string",y=a=>typeof a=="object",$=a=>a===null||typeof a!="object"?!1:v!==null&&D!==null&&v in a&&D in a,Se=a=>{if(!a)return E??"";if(w(a))return a;if(y(a)&&$(a))return String(a[D])},We=a=>{w(a)&&n(0,E=a),y(a)&&$(a)&&n(0,E=String(a[v]))},de=a=>{We(a),_("change",{value:a}),_e()},ze=()=>{const a=se.querySelector('li[role="option"]:not([aria-disabled="true"])');a&&requestAnimationFrame(()=>a.focus())},Xe=a=>{switch(a.key){case"Escape":Le();break;case"ArrowDown":Z(),ze();break;case"Enter":Z(),ze();break}},Ye=a=>{n(16,z=a.currentTarget.value),_("filter",z),r||be(Y,r=!0,r),n(19,e=T.filter(x=>{if(w(x))return x.toLowerCase().includes(a.currentTarget.value.toLowerCase());if(y(x)&&$(x))return String(x[D]).toLowerCase().includes(a.currentTarget.value.toLowerCase())}))},Ze=()=>{r||Z()};function we(a){Be[a?"unshift":"push"](()=>{K=a,n(17,K),n(16,z),n(37,p),n(38,o),n(36,T),n(0,E),n(12,v),n(39,C)})}const ye=a=>de(a),$e=a=>de(a);function xe(a){se=a,n(18,se)}return i.$$set=a=>{n(33,t=ge(ge({},t),Ee(a))),n(34,s=qe(t,l)),"class"in a&&n(1,k=a.class),"id"in a&&n(2,O=a.id),"label"in a&&n(3,I=a.label),"value"in a&&n(0,E=a.value),"toggleLabel"in a&&n(4,U=a.toggleLabel),"noResultsText"in a&&n(5,A=a.noResultsText),"disabled"in a&&n(6,L=a.disabled),"labelHidden"in a&&n(7,J=a.labelHidden),"options"in a&&n(36,T=a.options),"placeholder"in a&&n(8,g=a.placeholder),"readonly"in a&&n(9,Q=a.readonly),"required"in a&&n(10,V=a.required),"leadingIcon"in a&&n(11,h=a.leadingIcon),"optionValueKey"in a&&n(12,v=a.optionValueKey),"optionLabelKey"in a&&n(13,D=a.optionLabelKey),"minSize"in a&&n(37,p=a.minSize),"maxSize"in a&&n(38,o=a.maxSize),"error"in a&&n(14,f=a.error),"valid"in a&&n(15,j=a.valid),"$$scope"in a&&n(45,c=a.$$scope)},i.$$.update=()=>{i.$$.dirty[1]&32&&n(19,e=T),i.$$.dirty[0]&4097|i.$$.dirty[1]&288&&(n(39,C=T.find(a=>{if(w(a))return a===E;if(y(a)&&$(a))return a[v]===E})),n(16,z=Se(C))),i.$$.dirty[0]&196608|i.$$.dirty[1]&192&&K&&z&&(z.lengtho?n(17,K.size=o,K):n(17,K.size=z.length,K))},t=Ee(t),[E,k,O,I,U,A,L,J,g,Q,V,h,v,D,f,j,z,K,se,e,r,Y,Ue,Z,Je,Qe,w,y,$,de,Xe,Ye,Ze,t,s,m,T,p,o,C,u,we,ye,$e,xe,c]}class Wl extends Fe{constructor(t){super(),Pe(this,t,Rl,Hl,je,{class:1,id:2,label:3,value:0,toggleLabel:4,noResultsText:5,disabled:6,labelHidden:7,options:36,placeholder:8,readonly:9,required:10,leadingIcon:11,optionValueKey:12,optionLabelKey:13,minSize:37,maxSize:38,error:14,valid:15},null,[-1,-1])}}export{Wl as C}; diff --git a/ui/assets/local/_app/immutable/chunks/compatibility-badge.3B0gY0M5.js b/ui/assets/local/_app/immutable/chunks/compatibility-badge.av7iAG2E.js similarity index 93% rename from ui/assets/local/_app/immutable/chunks/compatibility-badge.3B0gY0M5.js rename to ui/assets/local/_app/immutable/chunks/compatibility-badge.av7iAG2E.js index 872c0f2f94..63ef5b089f 100644 --- a/ui/assets/local/_app/immutable/chunks/compatibility-badge.3B0gY0M5.js +++ b/ui/assets/local/_app/immutable/chunks/compatibility-badge.av7iAG2E.js @@ -1 +1 @@ -import{s as H,h as k,j as w,k as v,f as g,m as h,i as y,t as j,l as x,n as b,q as M,a as I,b as S,d as V,u as C,g as E,e as P}from"./scheduler.1T9hOnFr.js";import{S as J,i as K,g as L,b as d,e as O,t as p,c as z,a as B,m as D,d as F}from"./index.cVovwi_s.js";import{I as G}from"./icon.w8eknFMq.js";import{t as q}from"./tw-merge.NbP7EmZe.js";const Q=n=>({}),A=n=>({}),R=n=>({}),N=n=>({});function T(n){let e,t,s,f;return t=new G({props:{name:"merge"}}),{c(){e=k("span"),z(t.$$.fragment),s=j(n[2]),this.h()},l(i){e=w(i,"SPAN",{class:!0});var a=v(e);B(t.$$.fragment,a),s=x(a,n[2]),a.forEach(g),this.h()},h(){h(e,"class","flex items-center gap-1 rounded border border-subtle px-1 text-sm text-primary")},m(i,a){y(i,e,a),D(t,e,null),b(e,s),f=!0},p(i,a){(!f||a&4)&&M(s,i[2])},i(i){f||(p(t.$$.fragment,i),f=!0)},o(i){d(t.$$.fragment,i),f=!1},d(i){i&&g(e),F(t)}}}function U(n){let e,t,s,f,i,a,_;t=new G({props:{name:"merge"}});const r=n[4]["overall-default-worker"],o=I(r,n,n[3],N),m=n[4]["default-worker"],c=I(m,n,n[3],A);return{c(){e=k("span"),z(t.$$.fragment),s=j(n[2]),f=S(),o&&o.c(),i=S(),c&&c.c(),this.h()},l(l){e=w(l,"SPAN",{class:!0});var u=v(e);B(t.$$.fragment,u),s=x(u,n[2]),f=V(u),o&&o.l(u),i=V(u),c&&c.l(u),u.forEach(g),this.h()},h(){h(e,"class",a=q("flex items-center gap-1 rounded border border-subtle px-1 text-sm text-primary",n[1]&&"border-green-200 bg-green-200 text-black"))},m(l,u){y(l,e,u),D(t,e,null),b(e,s),b(e,f),o&&o.m(e,null),b(e,i),c&&c.m(e,null),_=!0},p(l,u){(!_||u&4)&&M(s,l[2]),o&&o.p&&(!_||u&8)&&C(o,r,l,l[3],_?P(r,l[3],u,R):E(l[3]),N),c&&c.p&&(!_||u&8)&&C(c,m,l,l[3],_?P(m,l[3],u,Q):E(l[3]),A),(!_||u&2&&a!==(a=q("flex items-center gap-1 rounded border border-subtle px-1 text-sm text-primary",l[1]&&"border-green-200 bg-green-200 text-black")))&&h(e,"class",a)},i(l){_||(p(t.$$.fragment,l),p(o,l),p(c,l),_=!0)},o(l){d(t.$$.fragment,l),d(o,l),d(c,l),_=!1},d(l){l&&g(e),F(t),o&&o.d(l),c&&c.d(l)}}}function W(n){let e,t,s,f;const i=[U,T],a=[];function _(r,o){return r[0]&&r[2]?0:r[2]?1:-1}return~(t=_(n))&&(s=a[t]=i[t](n)),{c(){e=k("p"),s&&s.c(),this.h()},l(r){e=w(r,"P",{class:!0});var o=v(e);s&&s.l(o),o.forEach(g),this.h()},h(){h(e,"class","flex select-all gap-2 font-mono")},m(r,o){y(r,e,o),~t&&a[t].m(e,null),f=!0},p(r,[o]){let m=t;t=_(r),t===m?~t&&a[t].p(r,o):(s&&(L(),d(a[m],1,1,()=>{a[m]=null}),O()),~t?(s=a[t],s?s.p(r,o):(s=a[t]=i[t](r),s.c()),p(s,1),s.m(e,null)):s=null)},i(r){f||(p(s),f=!0)},o(r){d(s),f=!1},d(r){r&&g(e),~t&&a[t].d()}}}function X(n,e,t){let{$$slots:s={},$$scope:f}=e,{defaultVersion:i=!1}=e,{active:a=!1}=e,{buildId:_}=e;return n.$$set=r=>{"defaultVersion"in r&&t(0,i=r.defaultVersion),"active"in r&&t(1,a=r.active),"buildId"in r&&t(2,_=r.buildId),"$$scope"in r&&t(3,f=r.$$scope)},[i,a,_,f,s]}class te extends J{constructor(e){super(),K(this,e,X,W,H,{defaultVersion:0,active:1,buildId:2})}}export{te as C}; +import{s as H,h as k,j as w,k as v,f as g,m as h,i as y,t as j,l as x,n as b,q as M,a as I,b as S,d as V,u as C,g as E,e as P}from"./scheduler.pPC3woXQ.js";import{S as J,i as K,g as L,b as d,e as O,t as p,c as z,a as B,m as D,d as F}from"./index.Z3Qqxacm.js";import{I as G}from"./icon.IMxiy1l_.js";import{t as q}from"./tw-merge.NbP7EmZe.js";const Q=n=>({}),A=n=>({}),R=n=>({}),N=n=>({});function T(n){let e,t,s,f;return t=new G({props:{name:"merge"}}),{c(){e=k("span"),z(t.$$.fragment),s=j(n[2]),this.h()},l(i){e=w(i,"SPAN",{class:!0});var a=v(e);B(t.$$.fragment,a),s=x(a,n[2]),a.forEach(g),this.h()},h(){h(e,"class","flex items-center gap-1 rounded border border-subtle px-1 text-sm text-primary")},m(i,a){y(i,e,a),D(t,e,null),b(e,s),f=!0},p(i,a){(!f||a&4)&&M(s,i[2])},i(i){f||(p(t.$$.fragment,i),f=!0)},o(i){d(t.$$.fragment,i),f=!1},d(i){i&&g(e),F(t)}}}function U(n){let e,t,s,f,i,a,_;t=new G({props:{name:"merge"}});const r=n[4]["overall-default-worker"],o=I(r,n,n[3],N),m=n[4]["default-worker"],c=I(m,n,n[3],A);return{c(){e=k("span"),z(t.$$.fragment),s=j(n[2]),f=S(),o&&o.c(),i=S(),c&&c.c(),this.h()},l(l){e=w(l,"SPAN",{class:!0});var u=v(e);B(t.$$.fragment,u),s=x(u,n[2]),f=V(u),o&&o.l(u),i=V(u),c&&c.l(u),u.forEach(g),this.h()},h(){h(e,"class",a=q("flex items-center gap-1 rounded border border-subtle px-1 text-sm text-primary",n[1]&&"border-green-200 bg-green-200 text-black"))},m(l,u){y(l,e,u),D(t,e,null),b(e,s),b(e,f),o&&o.m(e,null),b(e,i),c&&c.m(e,null),_=!0},p(l,u){(!_||u&4)&&M(s,l[2]),o&&o.p&&(!_||u&8)&&C(o,r,l,l[3],_?P(r,l[3],u,R):E(l[3]),N),c&&c.p&&(!_||u&8)&&C(c,m,l,l[3],_?P(m,l[3],u,Q):E(l[3]),A),(!_||u&2&&a!==(a=q("flex items-center gap-1 rounded border border-subtle px-1 text-sm text-primary",l[1]&&"border-green-200 bg-green-200 text-black")))&&h(e,"class",a)},i(l){_||(p(t.$$.fragment,l),p(o,l),p(c,l),_=!0)},o(l){d(t.$$.fragment,l),d(o,l),d(c,l),_=!1},d(l){l&&g(e),F(t),o&&o.d(l),c&&c.d(l)}}}function W(n){let e,t,s,f;const i=[U,T],a=[];function _(r,o){return r[0]&&r[2]?0:r[2]?1:-1}return~(t=_(n))&&(s=a[t]=i[t](n)),{c(){e=k("p"),s&&s.c(),this.h()},l(r){e=w(r,"P",{class:!0});var o=v(e);s&&s.l(o),o.forEach(g),this.h()},h(){h(e,"class","flex select-all gap-2 font-mono")},m(r,o){y(r,e,o),~t&&a[t].m(e,null),f=!0},p(r,[o]){let m=t;t=_(r),t===m?~t&&a[t].p(r,o):(s&&(L(),d(a[m],1,1,()=>{a[m]=null}),O()),~t?(s=a[t],s?s.p(r,o):(s=a[t]=i[t](r),s.c()),p(s,1),s.m(e,null)):s=null)},i(r){f||(p(s),f=!0)},o(r){d(s),f=!1},d(r){r&&g(e),~t&&a[t].d()}}}function X(n,e,t){let{$$slots:s={},$$scope:f}=e,{defaultVersion:i=!1}=e,{active:a=!1}=e,{buildId:_}=e;return n.$$set=r=>{"defaultVersion"in r&&t(0,i=r.defaultVersion),"active"in r&&t(1,a=r.active),"buildId"in r&&t(2,_=r.buildId),"$$scope"in r&&t(3,f=r.$$scope)},[i,a,_,f,s]}class te extends J{constructor(e){super(),K(this,e,X,W,H,{defaultVersion:0,active:1,buildId:2})}}export{te as C}; diff --git a/ui/assets/local/_app/immutable/chunks/copy-to-clipboard.NHd-JF1v.js b/ui/assets/local/_app/immutable/chunks/copy-to-clipboard.TAMpnAY_.js similarity index 76% rename from ui/assets/local/_app/immutable/chunks/copy-to-clipboard.NHd-JF1v.js rename to ui/assets/local/_app/immutable/chunks/copy-to-clipboard.TAMpnAY_.js index 4758053e04..aa6fd7bc48 100644 --- a/ui/assets/local/_app/immutable/chunks/copy-to-clipboard.NHd-JF1v.js +++ b/ui/assets/local/_app/immutable/chunks/copy-to-clipboard.TAMpnAY_.js @@ -1 +1 @@ -import{w as c}from"./entry.1BQh90wu.js";const i=(r=2e3)=>{const o=c(!1);return{copy:async(t,e)=>{t.preventDefault(),t.stopPropagation();try{await navigator.clipboard.writeText(e),o.set(!0),setTimeout(()=>{o.set(!1)},r)}catch(a){console.error(a)}},copied:o}};export{i as c}; +import{w as c}from"./entry.6mxJxwSM.js";const i=(r=2e3)=>{const o=c(!1);return{copy:async(t,e)=>{t.preventDefault(),t.stopPropagation();try{await navigator.clipboard.writeText(e),o.set(!0),setTimeout(()=>{o.set(!1)},r)}catch(a){console.error(a)}},copied:o}};export{i as c}; diff --git a/ui/assets/local/_app/immutable/chunks/core-user.hs5XQE51.js b/ui/assets/local/_app/immutable/chunks/core-user.hs5XQE51.js deleted file mode 100644 index 9725b28444..0000000000 --- a/ui/assets/local/_app/immutable/chunks/core-user.hs5XQE51.js +++ /dev/null @@ -1 +0,0 @@ -import{r}from"./entry.1BQh90wu.js";import{_ as t,$ as o}from"./scheduler.1T9hOnFr.js";const e="CoreUser",s=r({namespaceWriteDisabled:()=>!1}),c=()=>t(e)?o(e):s;export{c}; diff --git a/ui/assets/local/_app/immutable/chunks/core-user.pR4796gV.js b/ui/assets/local/_app/immutable/chunks/core-user.pR4796gV.js new file mode 100644 index 0000000000..9de4ea926c --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/core-user.pR4796gV.js @@ -0,0 +1 @@ +import{r}from"./entry.6mxJxwSM.js";import{_ as t,$ as o}from"./scheduler.pPC3woXQ.js";const e="CoreUser",s=r({namespaceWriteDisabled:()=>!1}),c=()=>t(e)?o(e):s;export{c}; diff --git a/ui/assets/local/_app/immutable/chunks/cpp.-lLEkhcQ.js b/ui/assets/local/_app/immutable/chunks/cpp.-lLEkhcQ.js new file mode 100644 index 0000000000..2d55263411 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/cpp.-lLEkhcQ.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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")}}},n={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"}]]]}};export{e as conf,n as language}; diff --git a/ui/assets/local/_app/immutable/chunks/csharp.Yw2HXCjJ.js b/ui/assets/local/_app/immutable/chunks/csharp.Yw2HXCjJ.js new file mode 100644 index 0000000000..363b3b1f9e --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/csharp.Yw2HXCjJ.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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")}}},t={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"]]}};export{e as conf,t as language}; diff --git a/ui/assets/local/_app/immutable/chunks/csp.n9eLovdU.js b/ui/assets/local/_app/immutable/chunks/csp.n9eLovdU.js new file mode 100644 index 0000000000..99ee358c45 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/csp.n9eLovdU.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var t={brackets:[],autoClosingPairs:[],surroundingPairs:[]},r={keywords:[],typeKeywords:[],tokenPostfix:".csp",operators:[],symbols:/[=>",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"]]}};export{e as conf,t as language}; diff --git a/ui/assets/local/_app/immutable/chunks/cssMode.DRmxSzOg.js b/ui/assets/local/_app/immutable/chunks/cssMode.DRmxSzOg.js new file mode 100644 index 0000000000..7114ec2be3 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/cssMode.DRmxSzOg.js @@ -0,0 +1,9 @@ +import{m as tt}from"./index.RJsVUSS8.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 + *-----------------------------------------------------------------------------*/var rt=Object.defineProperty,nt=Object.getOwnPropertyDescriptor,it=Object.getOwnPropertyNames,ot=Object.prototype.hasOwnProperty,Y=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of it(n))!ot.call(e,t)&&t!==i&&rt(e,t,{get:()=>n[t],enumerable:!(r=nt(n,t))||r.enumerable});return e},at=(e,n,i)=>(Y(e,n,"default"),i&&Y(i,n,"default")),d={};at(d,tt);var st=2*60*1e3,ut=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>st&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=d.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},Z;(function(e){function n(i){return typeof i=="string"}e.is=n})(Z||(Z={}));var O;(function(e){function n(i){return typeof i=="string"}e.is=n})(O||(O={}));var T;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function n(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=n})(T||(T={}));var M;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function n(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=n})(M||(M={}));var w;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=M.MAX_VALUE),t===Number.MAX_VALUE&&(t=M.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&a.uinteger(t.line)&&a.uinteger(t.character)}e.is=i})(w||(w={}));var h;(function(e){function n(r,t,o,s){if(a.uinteger(r)&&a.uinteger(t)&&a.uinteger(o)&&a.uinteger(s))return{start:w.create(r,t),end:w.create(o,s)};if(w.is(r)&&w.is(t))return{start:r,end:t};throw new Error(`Range#create called with invalid arguments[${r}, ${t}, ${o}, ${s}]`)}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&w.is(t.start)&&w.is(t.end)}e.is=i})(h||(h={}));var C;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&h.is(t.range)&&(a.string(t.uri)||a.undefined(t.uri))}e.is=i})(C||(C={}));var K;(function(e){function n(r,t,o,s){return{targetUri:r,targetRange:t,targetSelectionRange:o,originSelectionRange:s}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&h.is(t.targetRange)&&a.string(t.targetUri)&&h.is(t.targetSelectionRange)&&(h.is(t.originSelectionRange)||a.undefined(t.originSelectionRange))}e.is=i})(K||(K={}));var S;(function(e){function n(r,t,o,s){return{red:r,green:t,blue:o,alpha:s}}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&a.numberRange(t.red,0,1)&&a.numberRange(t.green,0,1)&&a.numberRange(t.blue,0,1)&&a.numberRange(t.alpha,0,1)}e.is=i})(S||(S={}));var ee;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&h.is(t.range)&&S.is(t.color)}e.is=i})(ee||(ee={}));var te;(function(e){function n(r,t,o){return{label:r,textEdit:t,additionalTextEdits:o}}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&a.string(t.label)&&(a.undefined(t.textEdit)||E.is(t))&&(a.undefined(t.additionalTextEdits)||a.typedArray(t.additionalTextEdits,E.is))}e.is=i})(te||(te={}));var A;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(A||(A={}));var re;(function(e){function n(r,t,o,s,u,f){const c={startLine:r,endLine:t};return a.defined(o)&&(c.startCharacter=o),a.defined(s)&&(c.endCharacter=s),a.defined(u)&&(c.kind=u),a.defined(f)&&(c.collapsedText=f),c}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&a.uinteger(t.startLine)&&a.uinteger(t.startLine)&&(a.undefined(t.startCharacter)||a.uinteger(t.startCharacter))&&(a.undefined(t.endCharacter)||a.uinteger(t.endCharacter))&&(a.undefined(t.kind)||a.string(t.kind))}e.is=i})(re||(re={}));var U;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&C.is(t.location)&&a.string(t.message)}e.is=i})(U||(U={}));var x;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(x||(x={}));var ne;(function(e){e.Unnecessary=1,e.Deprecated=2})(ne||(ne={}));var ie;(function(e){function n(i){const r=i;return a.objectLiteral(r)&&a.string(r.href)}e.is=n})(ie||(ie={}));var y;(function(e){function n(r,t,o,s,u,f){let c={range:r,message:t};return a.defined(o)&&(c.severity=o),a.defined(s)&&(c.code=s),a.defined(u)&&(c.source=u),a.defined(f)&&(c.relatedInformation=f),c}e.create=n;function i(r){var t;let o=r;return a.defined(o)&&h.is(o.range)&&a.string(o.message)&&(a.number(o.severity)||a.undefined(o.severity))&&(a.integer(o.code)||a.string(o.code)||a.undefined(o.code))&&(a.undefined(o.codeDescription)||a.string((t=o.codeDescription)===null||t===void 0?void 0:t.href))&&(a.string(o.source)||a.undefined(o.source))&&(a.undefined(o.relatedInformation)||a.typedArray(o.relatedInformation,U.is))}e.is=i})(y||(y={}));var I;(function(e){function n(r,t,...o){let s={title:r,command:t};return a.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.title)&&a.string(t.command)}e.is=i})(I||(I={}));var E;(function(e){function n(o,s){return{range:o,newText:s}}e.replace=n;function i(o,s){return{range:{start:o,end:o},newText:s}}e.insert=i;function r(o){return{range:o,newText:""}}e.del=r;function t(o){const s=o;return a.objectLiteral(s)&&a.string(s.newText)&&h.is(s.range)}e.is=t})(E||(E={}));var V;(function(e){function n(r,t,o){const s={label:r};return t!==void 0&&(s.needsConfirmation=t),o!==void 0&&(s.description=o),s}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&a.string(t.label)&&(a.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(a.string(t.description)||t.description===void 0)}e.is=i})(V||(V={}));var L;(function(e){function n(i){const r=i;return a.string(r)}e.is=n})(L||(L={}));var oe;(function(e){function n(o,s,u){return{range:o,newText:s,annotationId:u}}e.replace=n;function i(o,s,u){return{range:{start:o,end:o},newText:s,annotationId:u}}e.insert=i;function r(o,s){return{range:o,newText:"",annotationId:s}}e.del=r;function t(o){const s=o;return E.is(s)&&(V.is(s.annotationId)||L.is(s.annotationId))}e.is=t})(oe||(oe={}));var W;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&B.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(W||(W={}));var H;(function(e){function n(r,t,o){let s={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(s.options=t),o!==void 0&&(s.annotationId=o),s}e.create=n;function i(r){let t=r;return t&&t.kind==="create"&&a.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||a.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||a.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||L.is(t.annotationId))}e.is=i})(H||(H={}));var X;(function(e){function n(r,t,o,s){let u={kind:"rename",oldUri:r,newUri:t};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(u.options=o),s!==void 0&&(u.annotationId=s),u}e.create=n;function i(r){let t=r;return t&&t.kind==="rename"&&a.string(t.oldUri)&&a.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||a.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||a.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||L.is(t.annotationId))}e.is=i})(X||(X={}));var $;(function(e){function n(r,t,o){let s={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(s.options=t),o!==void 0&&(s.annotationId=o),s}e.create=n;function i(r){let t=r;return t&&t.kind==="delete"&&a.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||a.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||a.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||L.is(t.annotationId))}e.is=i})($||($={}));var z;(function(e){function n(i){let r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(t=>a.string(t.kind)?H.is(t)||X.is(t)||$.is(t):W.is(t)))}e.is=n})(z||(z={}));var ae;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)}e.is=i})(ae||(ae={}));var se;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)&&a.integer(t.version)}e.is=i})(se||(se={}));var B;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)&&(t.version===null||a.integer(t.version))}e.is=i})(B||(B={}));var ue;(function(e){function n(r,t,o,s){return{uri:r,languageId:t,version:o,text:s}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)&&a.string(t.languageId)&&a.integer(t.version)&&a.string(t.text)}e.is=i})(ue||(ue={}));var q;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function n(i){const r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(q||(q={}));var P;(function(e){function n(i){const r=i;return a.objectLiteral(i)&&q.is(r.kind)&&a.string(r.value)}e.is=n})(P||(P={}));var v;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(v||(v={}));var Q;(function(e){e.PlainText=1,e.Snippet=2})(Q||(Q={}));var ce;(function(e){e.Deprecated=1})(ce||(ce={}));var de;(function(e){function n(r,t,o){return{newText:r,insert:t,replace:o}}e.create=n;function i(r){const t=r;return t&&a.string(t.newText)&&h.is(t.insert)&&h.is(t.replace)}e.is=i})(de||(de={}));var le;(function(e){e.asIs=1,e.adjustIndentation=2})(le||(le={}));var fe;(function(e){function n(i){const r=i;return r&&(a.string(r.detail)||r.detail===void 0)&&(a.string(r.description)||r.description===void 0)}e.is=n})(fe||(fe={}));var ge;(function(e){function n(i){return{label:i}}e.create=n})(ge||(ge={}));var he;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(he||(he={}));var F;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){const t=r;return a.string(t)||a.objectLiteral(t)&&a.string(t.language)&&a.string(t.value)}e.is=i})(F||(F={}));var ve;(function(e){function n(i){let r=i;return!!r&&a.objectLiteral(r)&&(P.is(r.contents)||F.is(r.contents)||a.typedArray(r.contents,F.is))&&(i.range===void 0||h.is(i.range))}e.is=n})(ve||(ve={}));var pe;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(pe||(pe={}));var me;(function(e){function n(i,r,...t){let o={label:i};return a.defined(r)&&(o.documentation=r),a.defined(t)?o.parameters=t:o.parameters=[],o}e.create=n})(me||(me={}));var R;(function(e){e.Text=1,e.Read=2,e.Write=3})(R||(R={}));var _e;(function(e){function n(i,r){let t={range:i};return a.number(r)&&(t.kind=r),t}e.create=n})(_e||(_e={}));var p;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(p||(p={}));var be;(function(e){e.Deprecated=1})(be||(be={}));var we;(function(e){function n(i,r,t,o,s){let u={name:i,kind:r,location:{uri:o,range:t}};return s&&(u.containerName=s),u}e.create=n})(we||(we={}));var ke;(function(e){function n(i,r,t,o){return o!==void 0?{name:i,kind:r,location:{uri:t,range:o}}:{name:i,kind:r,location:{uri:t}}}e.create=n})(ke||(ke={}));var xe;(function(e){function n(r,t,o,s,u,f){let c={name:r,detail:t,kind:o,range:s,selectionRange:u};return f!==void 0&&(c.children=f),c}e.create=n;function i(r){let t=r;return t&&a.string(t.name)&&a.number(t.kind)&&h.is(t.range)&&h.is(t.selectionRange)&&(t.detail===void 0||a.string(t.detail))&&(t.deprecated===void 0||a.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}e.is=i})(xe||(xe={}));var Ie;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Ie||(Ie={}));var j;(function(e){e.Invoked=1,e.Automatic=2})(j||(j={}));var Ee;(function(e){function n(r,t,o){let s={diagnostics:r};return t!=null&&(s.only=t),o!=null&&(s.triggerKind=o),s}e.create=n;function i(r){let t=r;return a.defined(t)&&a.typedArray(t.diagnostics,y.is)&&(t.only===void 0||a.typedArray(t.only,a.string))&&(t.triggerKind===void 0||t.triggerKind===j.Invoked||t.triggerKind===j.Automatic)}e.is=i})(Ee||(Ee={}));var Le;(function(e){function n(r,t,o){let s={title:r},u=!0;return typeof t=="string"?(u=!1,s.kind=t):I.is(t)?s.command=t:s.edit=t,u&&o!==void 0&&(s.kind=o),s}e.create=n;function i(r){let t=r;return t&&a.string(t.title)&&(t.diagnostics===void 0||a.typedArray(t.diagnostics,y.is))&&(t.kind===void 0||a.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||I.is(t.command))&&(t.isPreferred===void 0||a.boolean(t.isPreferred))&&(t.edit===void 0||z.is(t.edit))}e.is=i})(Le||(Le={}));var Ae;(function(e){function n(r,t){let o={range:r};return a.defined(t)&&(o.data=t),o}e.create=n;function i(r){let t=r;return a.defined(t)&&h.is(t.range)&&(a.undefined(t.command)||I.is(t.command))}e.is=i})(Ae||(Ae={}));var Re;(function(e){function n(r,t){return{tabSize:r,insertSpaces:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.uinteger(t.tabSize)&&a.boolean(t.insertSpaces)}e.is=i})(Re||(Re={}));var Pe;(function(e){function n(r,t,o){return{range:r,target:t,data:o}}e.create=n;function i(r){let t=r;return a.defined(t)&&h.is(t.range)&&(a.undefined(t.target)||a.string(t.target))}e.is=i})(Pe||(Pe={}));var De;(function(e){function n(r,t){return{range:r,parent:t}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&h.is(t.range)&&(t.parent===void 0||e.is(t.parent))}e.is=i})(De||(De={}));var Me;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Me||(Me={}));var Ce;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Ce||(Ce={}));var ye;(function(e){function n(i){const r=i;return a.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=n})(ye||(ye={}));var Fe;(function(e){function n(r,t){return{range:r,text:t}}e.create=n;function i(r){const t=r;return t!=null&&h.is(t.range)&&a.string(t.text)}e.is=i})(Fe||(Fe={}));var je;(function(e){function n(r,t,o){return{range:r,variableName:t,caseSensitiveLookup:o}}e.create=n;function i(r){const t=r;return t!=null&&h.is(t.range)&&a.boolean(t.caseSensitiveLookup)&&(a.string(t.variableName)||t.variableName===void 0)}e.is=i})(je||(je={}));var Ne;(function(e){function n(r,t){return{range:r,expression:t}}e.create=n;function i(r){const t=r;return t!=null&&h.is(t.range)&&(a.string(t.expression)||t.expression===void 0)}e.is=i})(Ne||(Ne={}));var Oe;(function(e){function n(r,t){return{frameId:r,stoppedLocation:t}}e.create=n;function i(r){const t=r;return a.defined(t)&&h.is(r.stoppedLocation)}e.is=i})(Oe||(Oe={}));var G;(function(e){e.Type=1,e.Parameter=2;function n(i){return i===1||i===2}e.is=n})(G||(G={}));var J;(function(e){function n(r){return{value:r}}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&(t.tooltip===void 0||a.string(t.tooltip)||P.is(t.tooltip))&&(t.location===void 0||C.is(t.location))&&(t.command===void 0||I.is(t.command))}e.is=i})(J||(J={}));var Se;(function(e){function n(r,t,o){const s={position:r,label:t};return o!==void 0&&(s.kind=o),s}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&w.is(t.position)&&(a.string(t.label)||a.typedArray(t.label,J.is))&&(t.kind===void 0||G.is(t.kind))&&t.textEdits===void 0||a.typedArray(t.textEdits,E.is)&&(t.tooltip===void 0||a.string(t.tooltip)||P.is(t.tooltip))&&(t.paddingLeft===void 0||a.boolean(t.paddingLeft))&&(t.paddingRight===void 0||a.boolean(t.paddingRight))}e.is=i})(Se||(Se={}));var Ue;(function(e){function n(i){return{kind:"snippet",value:i}}e.createSnippet=n})(Ue||(Ue={}));var Ve;(function(e){function n(i,r,t,o){return{insertText:i,filterText:r,range:t,command:o}}e.create=n})(Ve||(Ve={}));var We;(function(e){function n(i){return{items:i}}e.create=n})(We||(We={}));var He;(function(e){e.Invoked=0,e.Automatic=1})(He||(He={}));var Xe;(function(e){function n(i,r){return{range:i,text:r}}e.create=n})(Xe||(Xe={}));var $e;(function(e){function n(i,r){return{triggerKind:i,selectedCompletionInfo:r}}e.create=n})($e||($e={}));var ze;(function(e){function n(i){const r=i;return a.objectLiteral(r)&&O.is(r.uri)&&a.string(r.name)}e.is=n})(ze||(ze={}));var Be;(function(e){function n(o,s,u,f){return new ct(o,s,u,f)}e.create=n;function i(o){let s=o;return!!(a.defined(s)&&a.string(s.uri)&&(a.undefined(s.languageId)||a.string(s.languageId))&&a.uinteger(s.lineCount)&&a.func(s.getText)&&a.func(s.positionAt)&&a.func(s.offsetAt))}e.is=i;function r(o,s){let u=o.getText(),f=t(s,(g,_)=>{let b=g.range.start.line-_.range.start.line;return b===0?g.range.start.character-_.range.start.character:b}),c=u.length;for(let g=f.length-1;g>=0;g--){let _=f[g],b=o.offsetAt(_.range.start),l=o.offsetAt(_.range.end);if(l<=c)u=u.substring(0,b)+_.newText+u.substring(l,u.length);else throw new Error("Overlapping edit");c=b}return u}e.applyEdits=r;function t(o,s){if(o.length<=1)return o;const u=o.length/2|0,f=o.slice(0,u),c=o.slice(u);t(f,s),t(c,s);let g=0,_=0,b=0;for(;g0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),i=0,r=n.length;if(r===0)return w.create(0,e);for(;ie?r=o:i=o+1}let t=i-1;return w.create(t,e-n[t])}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let i=n[e.line],r=e.line+1"u"}e.undefined=r;function t(l){return l===!0||l===!1}e.boolean=t;function o(l){return n.call(l)==="[object String]"}e.string=o;function s(l){return n.call(l)==="[object Number]"}e.number=s;function u(l,N,et){return n.call(l)==="[object Number]"&&N<=l&&l<=et}e.numberRange=u;function f(l){return n.call(l)==="[object Number]"&&-2147483648<=l&&l<=2147483647}e.integer=f;function c(l){return n.call(l)==="[object Number]"&&0<=l&&l<=2147483647}e.uinteger=c;function g(l){return n.call(l)==="[object Function]"}e.func=g;function _(l){return l!==null&&typeof l=="object"}e.objectLiteral=_;function b(l,N){return Array.isArray(l)&&l.every(N)}e.typedArray=b})(a||(a={}));var dt=class{constructor(e,n,i){this._languageId=e,this._worker=n,this._disposables=[],this._listener=Object.create(null);const r=o=>{let s=o.getLanguageId();if(s!==this._languageId)return;let u;this._listener[o.uri.toString()]=o.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(o.uri,s),500)}),this._doValidate(o.uri,s)},t=o=>{d.editor.setModelMarkers(o,this._languageId,[]);let s=o.uri.toString(),u=this._listener[s];u&&(u.dispose(),delete this._listener[s])};this._disposables.push(d.editor.onDidCreateModel(r)),this._disposables.push(d.editor.onWillDisposeModel(t)),this._disposables.push(d.editor.onDidChangeModelLanguage(o=>{t(o.model),r(o.model)})),this._disposables.push(i(o=>{d.editor.getModels().forEach(s=>{s.getLanguageId()===this._languageId&&(t(s),r(s))})})),this._disposables.push({dispose:()=>{d.editor.getModels().forEach(t);for(let o in this._listener)this._listener[o].dispose()}}),d.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const r=i.map(o=>ft(e,o));let t=d.editor.getModel(e);t&&t.getLanguageId()===n&&d.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function lt(e){switch(e){case x.Error:return d.MarkerSeverity.Error;case x.Warning:return d.MarkerSeverity.Warning;case x.Information:return d.MarkerSeverity.Info;case x.Hint:return d.MarkerSeverity.Hint;default:return d.MarkerSeverity.Info}}function ft(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:lt(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var gt=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){const t=e.uri;return this._worker(t).then(o=>o.doComplete(t.toString(),k(n))).then(o=>{if(!o)return;const s=e.getWordUntilPosition(n),u=new d.Range(n.lineNumber,s.startColumn,n.lineNumber,s.endColumn),f=o.items.map(c=>{const g={label:c.label,insertText:c.insertText||c.label,sortText:c.sortText,filterText:c.filterText,documentation:c.documentation,detail:c.detail,command:pt(c.command),range:u,kind:vt(c.kind)};return c.textEdit&&(ht(c.textEdit)?g.range={insert:m(c.textEdit.insert),replace:m(c.textEdit.replace)}:g.range=m(c.textEdit.range),g.insertText=c.textEdit.newText),c.additionalTextEdits&&(g.additionalTextEdits=c.additionalTextEdits.map(D)),c.insertTextFormat===Q.Snippet&&(g.insertTextRules=d.languages.CompletionItemInsertTextRule.InsertAsSnippet),g});return{isIncomplete:o.isIncomplete,suggestions:f}})}};function k(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Ge(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function m(e){if(e)return new d.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function ht(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function vt(e){const n=d.languages.CompletionItemKind;switch(e){case v.Text:return n.Text;case v.Method:return n.Method;case v.Function:return n.Function;case v.Constructor:return n.Constructor;case v.Field:return n.Field;case v.Variable:return n.Variable;case v.Class:return n.Class;case v.Interface:return n.Interface;case v.Module:return n.Module;case v.Property:return n.Property;case v.Unit:return n.Unit;case v.Value:return n.Value;case v.Enum:return n.Enum;case v.Keyword:return n.Keyword;case v.Snippet:return n.Snippet;case v.Color:return n.Color;case v.File:return n.File;case v.Reference:return n.Reference}return n.Property}function D(e){if(e)return{range:m(e.range),text:e.newText}}function pt(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var mt=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),k(n))).then(t=>{if(t)return{range:m(t.range),contents:bt(t.contents)}})}};function _t(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function qe(e){return typeof e=="string"?{value:e}:_t(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` +`+e.value+"\n```\n"}}function bt(e){if(e)return Array.isArray(e)?e.map(qe):[qe(e)]}var wt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),k(n))).then(t=>{if(t)return t.map(o=>({range:m(o.range),kind:kt(o.kind)}))})}};function kt(e){switch(e){case R.Read:return d.languages.DocumentHighlightKind.Read;case R.Write:return d.languages.DocumentHighlightKind.Write;case R.Text:return d.languages.DocumentHighlightKind.Text}return d.languages.DocumentHighlightKind.Text}var xt=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),k(n))).then(t=>{if(t)return[Je(t)]})}};function Je(e){return{uri:d.Uri.parse(e.uri),range:m(e.range)}}var It=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(o=>o.findReferences(t.toString(),k(n))).then(o=>{if(o)return o.map(Je)})}},Et=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(o=>o.doRename(t.toString(),k(n),i)).then(o=>Lt(o))}};function Lt(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=d.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:m(t.range),text:t.newText}})}return{edits:n}}var At=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(r)return r.map(t=>Rt(t)?Ye(t):{name:t.name,detail:"",containerName:t.containerName,kind:Ze(t.kind),range:m(t.location.range),selectionRange:m(t.location.range),tags:[]})})}};function Rt(e){return"children"in e}function Ye(e){return{name:e.name,detail:e.detail??"",kind:Ze(e.kind),range:m(e.range),selectionRange:m(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map(n=>Ye(n))}}function Ze(e){let n=d.languages.SymbolKind;switch(e){case p.File:return n.File;case p.Module:return n.Module;case p.Namespace:return n.Namespace;case p.Package:return n.Package;case p.Class:return n.Class;case p.Method:return n.Method;case p.Property:return n.Property;case p.Field:return n.Field;case p.Constructor:return n.Constructor;case p.Enum:return n.Enum;case p.Interface:return n.Interface;case p.Function:return n.Function;case p.Variable:return n.Variable;case p.Constant:return n.Constant;case p.String:return n.String;case p.Number:return n.Number;case p.Boolean:return n.Boolean;case p.Array:return n.Array}return n.Function}var Nt=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(r)return{links:r.map(t=>({range:m(t.range),url:t.target}))}})}},Pt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,Te(n)).then(o=>{if(!(!o||o.length===0))return o.map(D)}))}},Dt=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(o=>o.format(t.toString(),Ge(n),Te(i)).then(s=>{if(!(!s||s.length===0))return s.map(D)}))}};function Te(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Mt=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(r)return r.map(t=>({color:t.color,range:m(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,Ge(n.range))).then(t=>{if(t)return t.map(o=>{let s={label:o.label};return o.textEdit&&(s.textEdit=D(o.textEdit)),o.additionalTextEdits&&(s.additionalTextEdits=o.additionalTextEdits.map(D)),s})})}},Ct=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(t)return t.map(o=>{const s={start:o.startLine+1,end:o.endLine+1};return typeof o.kind<"u"&&(s.kind=yt(o.kind)),s})})}};function yt(e){switch(e){case A.Comment:return d.languages.FoldingRangeKind.Comment;case A.Imports:return d.languages.FoldingRangeKind.Imports;case A.Region:return d.languages.FoldingRangeKind.Region}}var Ft=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(k))).then(t=>{if(t)return t.map(o=>{const s=[];for(;o;)s.push({range:m(o.range)}),o=o.parent;return s})})}};function Ot(e){const n=[],i=[],r=new ut(e);n.push(r);const t=(...s)=>r.getLanguageServiceWorker(...s);function o(){const{languageId:s,modeConfiguration:u}=e;Ke(i),u.completionItems&&i.push(d.languages.registerCompletionItemProvider(s,new gt(t,["/","-",":"]))),u.hovers&&i.push(d.languages.registerHoverProvider(s,new mt(t))),u.documentHighlights&&i.push(d.languages.registerDocumentHighlightProvider(s,new wt(t))),u.definitions&&i.push(d.languages.registerDefinitionProvider(s,new xt(t))),u.references&&i.push(d.languages.registerReferenceProvider(s,new It(t))),u.documentSymbols&&i.push(d.languages.registerDocumentSymbolProvider(s,new At(t))),u.rename&&i.push(d.languages.registerRenameProvider(s,new Et(t))),u.colors&&i.push(d.languages.registerColorProvider(s,new Mt(t))),u.foldingRanges&&i.push(d.languages.registerFoldingRangeProvider(s,new Ct(t))),u.diagnostics&&i.push(new dt(s,t,e.onDidChange)),u.selectionRanges&&i.push(d.languages.registerSelectionRangeProvider(s,new Ft(t))),u.documentFormattingEdits&&i.push(d.languages.registerDocumentFormattingEditProvider(s,new Pt(t))),u.documentRangeFormattingEdits&&i.push(d.languages.registerDocumentRangeFormattingEditProvider(s,new Dt(t)))}return o(),n.push(Qe(i)),Qe(n)}function Qe(e){return{dispose:()=>Ke(e)}}function Ke(e){for(;e.length;)e.pop().dispose()}export{gt as CompletionAdapter,xt as DefinitionAdapter,dt as DiagnosticsAdapter,Mt as DocumentColorAdapter,Pt as DocumentFormattingEditProvider,wt as DocumentHighlightAdapter,Nt as DocumentLinkAdapter,Dt as DocumentRangeFormattingEditProvider,At as DocumentSymbolAdapter,Ct as FoldingRangeAdapter,mt as HoverAdapter,It as ReferenceAdapter,Et as RenameAdapter,Ft as SelectionRangeAdapter,ut as WorkerManager,k as fromPosition,Ge as fromRange,Ot as setupMode,m as toRange,D as toTextEdit}; diff --git a/ui/assets/local/_app/immutable/chunks/cypher.igfi7Efk.js b/ui/assets/local/_app/immutable/chunks/cypher.igfi7Efk.js new file mode 100644 index 0000000000..ec71abd64c --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/cypher.igfi7Efk.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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:"`"}]},i={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"]]}};export{e as conf,i as language}; diff --git a/ui/assets/local/_app/immutable/chunks/dark-mode.tuk8sQyW.js b/ui/assets/local/_app/immutable/chunks/dark-mode.YD2NgNRt.js similarity index 79% rename from ui/assets/local/_app/immutable/chunks/dark-mode.tuk8sQyW.js rename to ui/assets/local/_app/immutable/chunks/dark-mode.YD2NgNRt.js index e544d599db..a97fe83f24 100644 --- a/ui/assets/local/_app/immutable/chunks/dark-mode.tuk8sQyW.js +++ b/ui/assets/local/_app/immutable/chunks/dark-mode.YD2NgNRt.js @@ -1 +1 @@ -import{p as a}from"./persist-store.yDfC1oT_.js";var r={VITE_TEMPORAL_PORT:"7233",VITE_API:"",VITE_MODE:"development",BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const s=a("dark mode",!!r.VITE_DARK_MODE,!0),o=e=>{s.subscribe(t=>{t?e.dataset.theme="dark":e.dataset.theme="light"})};export{o as d,s as u}; +import{p as a}from"./persist-store.cEgNkZhn.js";var r={VITE_TEMPORAL_PORT:"7233",VITE_API:"",VITE_MODE:"development",BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const s=a("dark mode",!!r.VITE_DARK_MODE,!0),o=e=>{s.subscribe(t=>{t?e.dataset.theme="dark":e.dataset.theme="light"})};export{o as d,s as u}; diff --git a/ui/assets/local/_app/immutable/chunks/dart.VIkb2XYT.js b/ui/assets/local/_app/immutable/chunks/dart.VIkb2XYT.js new file mode 100644 index 0000000000..6edfb52d49 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/dart.VIkb2XYT.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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/}}},n={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"]]}};export{e as conf,n as language}; diff --git a/ui/assets/local/_app/immutable/chunks/data-encoder-settings.2saaH0-7.js b/ui/assets/local/_app/immutable/chunks/data-encoder-settings.JqK37kqL.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/data-encoder-settings.2saaH0-7.js rename to ui/assets/local/_app/immutable/chunks/data-encoder-settings.JqK37kqL.js index 9d0fadd98d..2c4a8dd048 100644 --- a/ui/assets/local/_app/immutable/chunks/data-encoder-settings.2saaH0-7.js +++ b/ui/assets/local/_app/immutable/chunks/data-encoder-settings.JqK37kqL.js @@ -1 +1 @@ -import{s as me,h as B,b as M,j as N,k as P,d as O,f as T,m as C,W as ee,I as se,i as X,n as E,X as he,p as te,G as We,H as Xe,t as J,l as K,q as de,a as Ge,u as Ze,g as ze,e as Fe,B as oe,M as le,T as re,v as fe,x as ve,c as Y,Z as Je,w as y}from"./scheduler.1T9hOnFr.js";import{S as pe,i as ge,c as G,a as Z,m as z,t as q,g as Be,b as j,e as Ne,d as F,f as ie,h as Ke}from"./index.cVovwi_s.js";import{L as Qe}from"./label.ujgKMPb9.js";import{t as ne}from"./tw-merge.NbP7EmZe.js";import{T as be}from"./toggle-switch.UfN-z_wd.js";import{t as I}from"./translate.HrioCK44.js";import{o as we,i as ke,p as Ee,c as Ce,v as Ue,b as Ye}from"./is-http.6riBcNrE.js";import{r as Te}from"./workflow-run.kUHgnSkK.js";import{L as ye}from"./link.S6PxEIxj.js";import{B as De}from"./button.y7LhNtq8.js";import{A as $e}from"./accordion.N-Ppv0Ka.js";import{p as xe}from"./stores.6oDSidma.js";import{a as et}from"./index.PXnAuqG7.js";import{w as Pe}from"./entry.1BQh90wu.js";import{R as tt,a as Ve}from"./radio-input.wE3OlIGl.js";const nt=s=>({}),Ie=s=>({});function Ae(s){let n,e;return{c(){n=B("p"),e=J(s[11]),this.h()},l(t){n=N(t,"P",{class:!0});var r=P(n);e=K(r,s[11]),r.forEach(T),this.h()},h(){C(n,"class","pb-2 text-sm")},m(t,r){X(t,n,r),E(n,e)},p(t,r){r&2048&&de(e,t[11])},d(t){t&&T(n)}}}function Le(s){let n,e,t=s[2]&&Se(s);const r=s[15].error,i=Ge(r,s,s[14],Ie);return{c(){t&&t.c(),n=M(),i&&i.c()},l(l){t&&t.l(l),n=O(l),i&&i.l(l)},m(l,g){t&&t.m(l,g),X(l,n,g),i&&i.m(l,g),e=!0},p(l,g){l[2]?t?t.p(l,g):(t=Se(l),t.c(),t.m(n.parentNode,n)):t&&(t.d(1),t=null),i&&i.p&&(!e||g&16384)&&Ze(i,r,l,l[14],e?Fe(r,l[14],g,nt):ze(l[14]),Ie)},i(l){e||(q(i,l),e=!0)},o(l){j(i,l),e=!1},d(l){l&&T(n),t&&t.d(l),i&&i.d(l)}}}function Se(s){let n,e;return{c(){n=B("p"),e=J(s[2])},l(t){n=N(t,"P",{});var r=P(n);e=K(r,s[2]),r.forEach(T)},m(t,r){X(t,n,r),E(n,e)},p(t,r){r&4&&de(e,t[2])},d(t){t&&T(n)}}}function He(s){var g;let n,e,t=(((g=s[0])==null?void 0:g.length)??0)+"",r,i,l;return{c(){n=B("span"),e=B("span"),r=J(t),i=J(" / "),l=J(s[12]),this.h()},l(f){n=N(f,"SPAN",{class:!0});var u=P(n);e=N(u,"SPAN",{class:!0});var h=P(e);r=K(h,t),h.forEach(T),i=K(u," / "),l=K(u,s[12]),u.forEach(T),this.h()},h(){var f,u;C(e,"class","text-information svelte-1ps5vu5"),se(e,"warn",s[12]-((f=s[0])==null?void 0:f.length)<=5),se(e,"error",s[12]===((u=s[0])==null?void 0:u.length)),C(n,"class","count svelte-1ps5vu5")},m(f,u){X(f,n,u),E(n,e),E(e,r),E(n,i),E(n,l)},p(f,u){var h,m,w;u&1&&t!==(t=(((h=f[0])==null?void 0:h.length)??0)+"")&&de(r,t),u&4097&&se(e,"warn",f[12]-((m=f[0])==null?void 0:m.length)<=5),u&4097&&se(e,"error",f[12]===((w=f[0])==null?void 0:w.length)),u&4096&&de(l,f[12])},d(f){f&&T(n)}}}function st(s){let n,e,t,r,i,l,g,f,u,h,m,w,A,H,R,b,L,D;e=new Qe({props:{required:s[10],hidden:s[8],label:s[7],for:s[9]}});let _=s[11]&&Ae(s),o=!s[3]&&Le(s),v=s[12]&&!s[1]&&He(s);return{c(){n=B("div"),G(e.$$.fragment),t=M(),_&&_.c(),r=M(),i=B("div"),l=B("textarea"),h=M(),m=B("div"),w=B("div"),o&&o.c(),H=M(),v&&v.c(),this.h()},l(a){n=N(a,"DIV",{class:!0});var c=P(n);Z(e.$$.fragment,c),t=O(c),_&&_.l(c),r=O(c),i=N(c,"DIV",{class:!0});var V=P(i);l=N(V,"TEXTAREA",{class:!0,id:!0,placeholder:!0,rows:!0,spellcheck:!0,maxlength:!0}),P(l).forEach(T),V.forEach(T),h=O(c),m=N(c,"DIV",{class:!0});var d=P(m);w=N(d,"DIV",{class:!0,"aria-live":!0});var k=P(w);o&&o.l(k),k.forEach(T),H=O(d),v&&v.l(d),d.forEach(T),c.forEach(T),this.h()},h(){C(l,"class",g=ee(ne("surface-primary min-h-fit w-full rounded-lg px-3 py-2 text-sm focus-visible:outline-none",s[1]&&"cursor-not-allowed opacity-50"))+" svelte-1ps5vu5"),C(l,"id",s[9]),l.disabled=s[1],C(l,"placeholder",s[4]),C(l,"rows",s[5]),C(l,"spellcheck",s[6]),C(l,"maxlength",f=s[12]>0?s[12]:void 0),C(i,"class",u=ee(ne("relative box-border inline-flex w-full rounded-lg border-2 border-subtle focus-within:border-information focus-within:ring-4 focus-within:ring-primary/70",!s[3]&&"error",!s[1]&&"hover:border-information"))+" svelte-1ps5vu5"),C(w,"class","error-msg svelte-1ps5vu5"),C(w,"aria-live",A=s[3]?"off":"assertive"),se(w,"min-width",s[12]),C(m,"class","mt-2 flex justify-between gap-2"),C(n,"class",R=ee(ne("group",s[13]))+" svelte-1ps5vu5")},m(a,c){X(a,n,c),z(e,n,null),E(n,t),_&&_.m(n,null),E(n,r),E(n,i),E(i,l),he(l,s[0]),E(n,h),E(n,m),E(m,w),o&&o.m(w,null),E(m,H),v&&v.m(m,null),b=!0,L||(D=[te(l,"input",s[21]),te(l,"input",s[16]),te(l,"change",s[17]),te(l,"focus",s[18]),te(l,"blur",s[19]),te(l,"keydown",We(s[20]))],L=!0)},p(a,[c]){const V={};c&1024&&(V.required=a[10]),c&256&&(V.hidden=a[8]),c&128&&(V.label=a[7]),c&512&&(V.for=a[9]),e.$set(V),a[11]?_?_.p(a,c):(_=Ae(a),_.c(),_.m(n,r)):_&&(_.d(1),_=null),(!b||c&2&&g!==(g=ee(ne("surface-primary min-h-fit w-full rounded-lg px-3 py-2 text-sm focus-visible:outline-none",a[1]&&"cursor-not-allowed opacity-50"))+" svelte-1ps5vu5"))&&C(l,"class",g),(!b||c&512)&&C(l,"id",a[9]),(!b||c&2)&&(l.disabled=a[1]),(!b||c&16)&&C(l,"placeholder",a[4]),(!b||c&32)&&C(l,"rows",a[5]),(!b||c&64)&&C(l,"spellcheck",a[6]),(!b||c&4096&&f!==(f=a[12]>0?a[12]:void 0))&&C(l,"maxlength",f),c&1&&he(l,a[0]),(!b||c&10&&u!==(u=ee(ne("relative box-border inline-flex w-full rounded-lg border-2 border-subtle focus-within:border-information focus-within:ring-4 focus-within:ring-primary/70",!a[3]&&"error",!a[1]&&"hover:border-information"))+" svelte-1ps5vu5"))&&C(i,"class",u),a[3]?o&&(Be(),j(o,1,1,()=>{o=null}),Ne()):o?(o.p(a,c),c&8&&q(o,1)):(o=Le(a),o.c(),q(o,1),o.m(w,null)),(!b||c&8&&A!==(A=a[3]?"off":"assertive"))&&C(w,"aria-live",A),(!b||c&4096)&&se(w,"min-width",a[12]),a[12]&&!a[1]?v?v.p(a,c):(v=He(a),v.c(),v.m(m,null)):v&&(v.d(1),v=null),(!b||c&8192&&R!==(R=ee(ne("group",a[13]))+" svelte-1ps5vu5"))&&C(n,"class",R)},i(a){b||(q(e.$$.fragment,a),q(o),b=!0)},o(a){j(e.$$.fragment,a),j(o),b=!1},d(a){a&&T(n),F(e),_&&_.d(),o&&o.d(),v&&v.d(),L=!1,Xe(D)}}}function lt(s,n,e){let{$$slots:t={},$$scope:r}=n,{disabled:i=!1}=n,{error:l=""}=n,{isValid:g=!0}=n,{placeholder:f=""}=n,{rows:u=5}=n,{spellcheck:h=null}=n,{value:m}=n,{label:w}=n,{labelHidden:A=!1}=n,{id:H}=n,{required:R=!1}=n,{description:b=""}=n,{maxLength:L=0}=n,{class:D="text-primary"}=n;function _(d){oe.call(this,s,d)}function o(d){oe.call(this,s,d)}function v(d){oe.call(this,s,d)}function a(d){oe.call(this,s,d)}function c(d){oe.call(this,s,d)}function V(){m=this.value,e(0,m)}return s.$$set=d=>{"disabled"in d&&e(1,i=d.disabled),"error"in d&&e(2,l=d.error),"isValid"in d&&e(3,g=d.isValid),"placeholder"in d&&e(4,f=d.placeholder),"rows"in d&&e(5,u=d.rows),"spellcheck"in d&&e(6,h=d.spellcheck),"value"in d&&e(0,m=d.value),"label"in d&&e(7,w=d.label),"labelHidden"in d&&e(8,A=d.labelHidden),"id"in d&&e(9,H=d.id),"required"in d&&e(10,R=d.required),"description"in d&&e(11,b=d.description),"maxLength"in d&&e(12,L=d.maxLength),"class"in d&&e(13,D=d.class),"$$scope"in d&&e(14,r=d.$$scope)},[m,i,l,g,f,u,h,w,A,H,R,b,L,D,r,t,_,o,v,a,c,V]}class rt extends pe{constructor(n){super(),ge(this,n,lt,st,me,{disabled:1,error:2,isValid:3,placeholder:4,rows:5,spellcheck:6,value:0,label:7,labelHidden:8,id:9,required:10,description:11,maxLength:12,class:13})}}function qe(s){let n,e=I("data-encoder.include-cross-origin-credentials-warning")+"",t;return{c(){n=B("small"),t=J(e),this.h()},l(r){n=N(r,"SMALL",{"data-testid":!0});var i=P(n);t=K(i,e),i.forEach(T),this.h()},h(){C(n,"data-testid","data-encoder-cross-origin-credentials")},m(r,i){X(r,n,i),E(n,t)},p:fe,d(r){r&&T(n)}}}function it(s){let n,e,t,r,i,l,g,f,u,h,m,w;function A(o){s[4](o)}let H={id:"data-encoder-endpoint-input",rows:3,placeholder:I("data-encoder.endpoint-placeholder"),error:s[3],isValid:!s[3],label:I("data-encoder.endpoint-title"),description:I("data-encoder.endpoint-description")};s[0]!==void 0&&(H.value=s[0]),t=new rt({props:H}),le.push(()=>ie(t,"value",A));function R(o){s[5](o)}let b={label:I("data-encoder.pass-access-token-label"),id:"pass-access-token","data-testid":"data-encoder-pass-access-token"};s[1]!==void 0&&(b.checked=s[1]),l=new be({props:b}),le.push(()=>ie(l,"checked",R));function L(o){s[6](o)}let D={label:I("data-encoder.include-cross-origin-credentials-label"),id:"pass-access-credentials","data-testid":"data-encoder-include-credentials"};s[2]!==void 0&&(D.checked=s[2]),u=new be({props:D}),le.push(()=>ie(u,"checked",L));let _=s[2]&&qe();return{c(){n=B("div"),e=B("div"),G(t.$$.fragment),i=M(),G(l.$$.fragment),f=M(),G(u.$$.fragment),m=M(),_&&_.c(),this.h()},l(o){n=N(o,"DIV",{class:!0});var v=P(n);e=N(v,"DIV",{class:!0});var a=P(e);Z(t.$$.fragment,a),i=O(a),Z(l.$$.fragment,a),f=O(a),Z(u.$$.fragment,a),m=O(a),_&&_.l(a),a.forEach(T),v.forEach(T),this.h()},h(){C(e,"class","flex flex-col gap-2"),C(n,"class","flex flex-col gap-4")},m(o,v){X(o,n,v),E(n,e),z(t,e,null),E(e,i),z(l,e,null),E(e,f),z(u,e,null),E(e,m),_&&_.m(e,null),w=!0},p(o,[v]){const a={};v&8&&(a.error=o[3]),v&8&&(a.isValid=!o[3]),!r&&v&1&&(r=!0,a.value=o[0],re(()=>r=!1)),t.$set(a);const c={};!g&&v&2&&(g=!0,c.checked=o[1],re(()=>g=!1)),l.$set(c);const V={};!h&&v&4&&(h=!0,V.checked=o[2],re(()=>h=!1)),u.$set(V),o[2]?_?_.p(o,v):(_=qe(),_.c(),_.m(e,null)):_&&(_.d(1),_=null)},i(o){w||(q(t.$$.fragment,o),q(l.$$.fragment,o),q(u.$$.fragment,o),w=!0)},o(o){j(t.$$.fragment,o),j(l.$$.fragment,o),j(u.$$.fragment,o),w=!1},d(o){o&&T(n),F(t),F(l),F(u),_&&_.d()}}}function at(s,n,e){let{endpoint:t=""}=n,{passToken:r=!1}=n,{includeCreds:i=!1}=n,{error:l=""}=n;function g(h){t=h,e(0,t)}function f(h){r=h,e(1,r)}function u(h){i=h,e(2,i)}return s.$$set=h=>{"endpoint"in h&&e(0,t=h.endpoint),"passToken"in h&&e(1,r=h.passToken),"includeCreds"in h&&e(2,i=h.includeCreds),"error"in h&&e(3,l=h.error)},[t,r,i,l,g,f,u]}class ot extends pe{constructor(n){super(),ge(this,n,at,it,me,{endpoint:0,passToken:1,includeCreds:2,error:3})}}const dt=s=>s.replace(/\/+$/,"");function Re(s){let n,e,t,r,i=I("common.codec-server")+"",l,g,f,u=I("data-encoder.codec-server-description-prefix")+"",h,m,w,A=I("data-encoder.codec-server-description-suffix",{level:s[5]})+"",H,R,b,L,D,_,o,v,a,c,V,d,k,ue,ae;m=new ye({props:{href:"https://docs.temporal.io/dataconversion#codec-server",newTab:!0,$$slots:{default:[ft]},$$scope:{ctx:s}}}),b=new $e({props:{"data-testid":"override-accordion",title:s[6]?I("data-encoder.browser-override-description",{level:s[5]}):I("data-encoder.no-browser-override-description",{level:s[5]}),$$slots:{default:[ut]},$$scope:{ctx:s}}});function je(p){s[14](p)}function Me(p){s[15](p)}function Oe(p){s[16](p)}let ce={error:s[4]};return s[0]!==void 0&&(ce.endpoint=s[0]),s[1]!==void 0&&(ce.passToken=s[1]),s[3]!==void 0&&(ce.includeCreds=s[3]),D=new ot({props:ce}),le.push(()=>ie(D,"endpoint",je)),le.push(()=>ie(D,"passToken",Me)),le.push(()=>ie(D,"includeCreds",Oe)),V=new De({props:{disabled:!!s[4],"data-testid":"confirm-data-encoder-button",type:"submit",$$slots:{default:[_t]},$$scope:{ctx:s}}}),V.$on("click",s[9]),k=new De({props:{variant:"ghost","data-testid":"cancel-data-encoder-button",$$slots:{default:[mt]},$$scope:{ctx:s}}}),k.$on("click",s[8]),{c(){n=B("aside"),e=B("div"),t=B("div"),r=B("h3"),l=J(i),g=M(),f=B("p"),h=J(u),G(m.$$.fragment),w=M(),H=J(A),R=M(),G(b.$$.fragment),L=M(),G(D.$$.fragment),a=M(),c=B("div"),G(V.$$.fragment),d=M(),G(k.$$.fragment),this.h()},l(p){n=N(p,"ASIDE",{class:!0});var S=P(n);e=N(S,"DIV",{class:!0});var W=P(e);t=N(W,"DIV",{class:!0});var x=P(t);r=N(x,"H3",{"data-testid":!0});var U=P(r);l=K(U,i),U.forEach(T),x.forEach(T),g=O(W),f=N(W,"P",{class:!0});var Q=P(f);h=K(Q,u),Z(m.$$.fragment,Q),w=O(Q),H=K(Q,A),Q.forEach(T),R=O(W),Z(b.$$.fragment,W),L=O(W),Z(D.$$.fragment,W),a=O(W),c=N(W,"DIV",{class:!0});var $=P(c);Z(V.$$.fragment,$),d=O($),Z(k.$$.fragment,$),$.forEach(T),W.forEach(T),S.forEach(T),this.h()},h(){C(r,"data-testid","data-encoder-title"),C(t,"class","flex items-center justify-between space-x-2"),C(f,"class","text-sm"),C(c,"class","flex items-center gap-4"),C(e,"class","flex w-full flex-col gap-4 xl:w-1/2"),C(n,"class","surface-primary relative flex h-[540px] w-full flex-col gap-6 overflow-auto border-b border-subtle p-4 md:p-12")},m(p,S){X(p,n,S),E(n,e),E(e,t),E(t,r),E(r,l),E(e,g),E(e,f),E(f,h),z(m,f,null),E(f,w),E(f,H),E(e,R),z(b,e,null),E(e,L),z(D,e,null),E(e,a),E(e,c),z(V,c,null),E(c,d),z(k,c,null),ae=!0},p(p,S){const W={};S&4194304&&(W.$$scope={dirty:S,ctx:p}),m.$set(W),(!ae||S&32)&&A!==(A=I("data-encoder.codec-server-description-suffix",{level:p[5]})+"")&&de(H,A);const x={};S&96&&(x.title=p[6]?I("data-encoder.browser-override-description",{level:p[5]}):I("data-encoder.no-browser-override-description",{level:p[5]})),S&4194336&&(x.$$scope={dirty:S,ctx:p}),b.$set(x);const U={};S&16&&(U.error=p[4]),!_&&S&1&&(_=!0,U.endpoint=p[0],re(()=>_=!1)),!o&&S&2&&(o=!0,U.passToken=p[1],re(()=>o=!1)),!v&&S&8&&(v=!0,U.includeCreds=p[3],re(()=>v=!1)),D.$set(U);const Q={};S&16&&(Q.disabled=!!p[4]),S&4194304&&(Q.$$scope={dirty:S,ctx:p}),V.$set(Q);const $={};S&4194304&&($.$$scope={dirty:S,ctx:p}),k.$set($)},i(p){ae||(q(m.$$.fragment,p),q(b.$$.fragment,p),q(D.$$.fragment,p),q(V.$$.fragment,p),q(k.$$.fragment,p),p&&(ue||Je(()=>{ue=Ke(n,et,{y:-50,delay:0,duration:500}),ue.start()})),ae=!0)},o(p){j(m.$$.fragment,p),j(b.$$.fragment,p),j(D.$$.fragment,p),j(V.$$.fragment,p),j(k.$$.fragment,p),ae=!1},d(p){p&&T(n),F(m),F(b),F(D),F(V),F(k)}}}function ft(s){let n=I("common.codec-server")+"",e;return{c(){e=J(n)},l(t){e=K(t,n)},m(t,r){X(t,e,r)},p:fe,d(t){t&&T(e)}}}function ct(s){let n,e,t,r;return n=new Ve({props:{id:"use-configuration-endpoint-radio","data-testid":"use-configuration-endpoint-input",value:!1,label:I("data-encoder.no-browser-override-description",{level:s[5]})}}),t=new Ve({props:{id:"use-local-endpoint-radio","data-testid":"use-local-endpoint-input",value:!0,label:I("data-encoder.browser-override-description",{level:s[5]})}}),{c(){G(n.$$.fragment),e=M(),G(t.$$.fragment)},l(i){Z(n.$$.fragment,i),e=O(i),Z(t.$$.fragment,i)},m(i,l){z(n,i,l),X(i,e,l),z(t,i,l),r=!0},p(i,l){const g={};l&32&&(g.label=I("data-encoder.no-browser-override-description",{level:i[5]})),n.$set(g);const f={};l&32&&(f.label=I("data-encoder.browser-override-description",{level:i[5]})),t.$set(f)},i(i){r||(q(n.$$.fragment,i),q(t.$$.fragment,i),r=!0)},o(i){j(n.$$.fragment,i),j(t.$$.fragment,i),r=!1},d(i){i&&T(e),F(n,i),F(t,i)}}}function ut(s){let n,e;return n=new tt({props:{name:"override",group:s[7],$$slots:{default:[ct]},$$scope:{ctx:s}}}),{c(){G(n.$$.fragment)},l(t){Z(n.$$.fragment,t)},m(t,r){z(n,t,r),e=!0},p(t,r){const i={};r&4194336&&(i.$$scope={dirty:r,ctx:t}),n.$set(i)},i(t){e||(q(n.$$.fragment,t),e=!0)},o(t){j(n.$$.fragment,t),e=!1},d(t){F(n,t)}}}function _t(s){let n=I("common.apply")+"",e;return{c(){e=J(n)},l(t){e=K(t,n)},m(t,r){X(t,e,r)},p:fe,d(t){t&&T(e)}}}function mt(s){let n=I("common.cancel")+"",e;return{c(){e=J(n)},l(t){e=K(t,n)},m(t,r){X(t,e,r)},p:fe,d(t){t&&T(e)}}}function pt(s){let n,e,t=s[2]&&Re(s);return{c(){t&&t.c(),n=ve()},l(r){t&&t.l(r),n=ve()},m(r,i){t&&t.m(r,i),X(r,n,i),e=!0},p(r,[i]){r[2]?t?(t.p(r,i),i&4&&q(t,1)):(t=Re(r),t.c(),q(t,1),t.m(n.parentNode,n)):t&&(Be(),j(t,1,1,()=>{t=null}),Ne())},i(r){e||(q(t),e=!0)},o(r){j(t),e=!1},d(r){r&&T(n),t&&t.d(r)}}}const _e=Pe(!1);function gt(s,n,e){let t,r,i,l,g,f,u,h=fe,m,w,A;Y(s,Te,k=>e(17,i=k)),Y(s,xe,k=>e(13,l=k)),Y(s,we,k=>e(18,f=k)),Y(s,_e,k=>e(2,u=k)),Y(s,ke,k=>e(19,m=k)),Y(s,Ee,k=>e(20,w=k)),Y(s,Ce,k=>e(21,A=k)),s.$$.on_destroy.push(()=>h());var H,R,b;let L=A??"",D=w??!1,_=m??!1,o=Pe(f);Y(s,o,k=>e(6,g=k));const v=()=>{e(0,L=A),e(1,D=w),e(3,_=m),y(o,g=f,g),y(_e,u=!1,u)},a=()=>{e(4,t=""),y(Ce,A=dt(L),A),y(Ee,w=D,w),y(ke,m=_,m),y(_e,u=!1,u),y(we,f=g,f),l.url.pathname.endsWith("history")&&y(Te,i=Date.now(),i)};function c(k){L=k,e(0,L)}function V(k){D=k,e(1,D)}function d(k){_=k,e(3,_)}return s.$$.update=()=>{s.$$.dirty&15360&&e(5,r=!(e(12,b=e(11,R=e(10,H=l.data)===null||H===void 0?void 0:H.settings)===null||R===void 0?void 0:R.runtimeEnvironment)===null||b===void 0)&&b.isCloud?I("common.namespaces"):I("common.cluster")),s.$$.dirty&3&&(D&&!Ue(L)?e(4,t=I("data-encoder.access-token-https-error")):L&&!Ye(L)?e(4,t=I("data-encoder.prefix-error")):e(4,t="")),s.$$.dirty&4&&(u||v())},e(4,t=""),[L,D,u,_,t,r,g,o,v,a,H,R,b,l,c,V,d]}class qt extends pe{constructor(n){super(),ge(this,n,gt,pt,me,{})}}export{qt as D,_e as v}; +import{s as me,h as B,b as M,j as N,k as P,d as O,f as T,m as C,W as ee,I as se,i as X,n as E,X as he,p as te,G as We,H as Xe,t as J,l as K,q as de,a as Ge,u as Ze,g as ze,e as Fe,B as oe,M as le,T as re,v as fe,x as ve,c as Y,Z as Je,w as y}from"./scheduler.pPC3woXQ.js";import{S as pe,i as ge,c as G,a as Z,m as z,t as q,g as Be,b as j,e as Ne,d as F,f as ie,h as Ke}from"./index.Z3Qqxacm.js";import{L as Qe}from"./label.zXYhHpIA.js";import{t as ne}from"./tw-merge.NbP7EmZe.js";import{T as be}from"./toggle-switch.zgefoq1_.js";import{t as I}from"./translate.HrioCK44.js";import{o as we,i as ke,p as Ee,c as Ce,v as Ue,b as Ye}from"./is-http.d0DfcwIt.js";import{r as Te}from"./workflow-run.UJKlq2cH.js";import{L as ye}from"./link.k1D2UsV0.js";import{B as De}from"./button.pYfDLC93.js";import{A as $e}from"./accordion.ewMbP6ia.js";import{p as xe}from"./stores.cW8AX6ex.js";import{a as et}from"./index.534V873p.js";import{w as Pe}from"./entry.6mxJxwSM.js";import{R as tt,a as Ve}from"./radio-input.1h7BGuZu.js";const nt=s=>({}),Ie=s=>({});function Ae(s){let n,e;return{c(){n=B("p"),e=J(s[11]),this.h()},l(t){n=N(t,"P",{class:!0});var r=P(n);e=K(r,s[11]),r.forEach(T),this.h()},h(){C(n,"class","pb-2 text-sm")},m(t,r){X(t,n,r),E(n,e)},p(t,r){r&2048&&de(e,t[11])},d(t){t&&T(n)}}}function Le(s){let n,e,t=s[2]&&Se(s);const r=s[15].error,i=Ge(r,s,s[14],Ie);return{c(){t&&t.c(),n=M(),i&&i.c()},l(l){t&&t.l(l),n=O(l),i&&i.l(l)},m(l,g){t&&t.m(l,g),X(l,n,g),i&&i.m(l,g),e=!0},p(l,g){l[2]?t?t.p(l,g):(t=Se(l),t.c(),t.m(n.parentNode,n)):t&&(t.d(1),t=null),i&&i.p&&(!e||g&16384)&&Ze(i,r,l,l[14],e?Fe(r,l[14],g,nt):ze(l[14]),Ie)},i(l){e||(q(i,l),e=!0)},o(l){j(i,l),e=!1},d(l){l&&T(n),t&&t.d(l),i&&i.d(l)}}}function Se(s){let n,e;return{c(){n=B("p"),e=J(s[2])},l(t){n=N(t,"P",{});var r=P(n);e=K(r,s[2]),r.forEach(T)},m(t,r){X(t,n,r),E(n,e)},p(t,r){r&4&&de(e,t[2])},d(t){t&&T(n)}}}function He(s){var g;let n,e,t=(((g=s[0])==null?void 0:g.length)??0)+"",r,i,l;return{c(){n=B("span"),e=B("span"),r=J(t),i=J(" / "),l=J(s[12]),this.h()},l(f){n=N(f,"SPAN",{class:!0});var u=P(n);e=N(u,"SPAN",{class:!0});var h=P(e);r=K(h,t),h.forEach(T),i=K(u," / "),l=K(u,s[12]),u.forEach(T),this.h()},h(){var f,u;C(e,"class","text-information svelte-1ps5vu5"),se(e,"warn",s[12]-((f=s[0])==null?void 0:f.length)<=5),se(e,"error",s[12]===((u=s[0])==null?void 0:u.length)),C(n,"class","count svelte-1ps5vu5")},m(f,u){X(f,n,u),E(n,e),E(e,r),E(n,i),E(n,l)},p(f,u){var h,m,w;u&1&&t!==(t=(((h=f[0])==null?void 0:h.length)??0)+"")&&de(r,t),u&4097&&se(e,"warn",f[12]-((m=f[0])==null?void 0:m.length)<=5),u&4097&&se(e,"error",f[12]===((w=f[0])==null?void 0:w.length)),u&4096&&de(l,f[12])},d(f){f&&T(n)}}}function st(s){let n,e,t,r,i,l,g,f,u,h,m,w,A,H,R,b,L,D;e=new Qe({props:{required:s[10],hidden:s[8],label:s[7],for:s[9]}});let _=s[11]&&Ae(s),o=!s[3]&&Le(s),v=s[12]&&!s[1]&&He(s);return{c(){n=B("div"),G(e.$$.fragment),t=M(),_&&_.c(),r=M(),i=B("div"),l=B("textarea"),h=M(),m=B("div"),w=B("div"),o&&o.c(),H=M(),v&&v.c(),this.h()},l(a){n=N(a,"DIV",{class:!0});var c=P(n);Z(e.$$.fragment,c),t=O(c),_&&_.l(c),r=O(c),i=N(c,"DIV",{class:!0});var V=P(i);l=N(V,"TEXTAREA",{class:!0,id:!0,placeholder:!0,rows:!0,spellcheck:!0,maxlength:!0}),P(l).forEach(T),V.forEach(T),h=O(c),m=N(c,"DIV",{class:!0});var d=P(m);w=N(d,"DIV",{class:!0,"aria-live":!0});var k=P(w);o&&o.l(k),k.forEach(T),H=O(d),v&&v.l(d),d.forEach(T),c.forEach(T),this.h()},h(){C(l,"class",g=ee(ne("surface-primary min-h-fit w-full rounded-lg px-3 py-2 text-sm focus-visible:outline-none",s[1]&&"cursor-not-allowed opacity-50"))+" svelte-1ps5vu5"),C(l,"id",s[9]),l.disabled=s[1],C(l,"placeholder",s[4]),C(l,"rows",s[5]),C(l,"spellcheck",s[6]),C(l,"maxlength",f=s[12]>0?s[12]:void 0),C(i,"class",u=ee(ne("relative box-border inline-flex w-full rounded-lg border-2 border-subtle focus-within:border-information focus-within:ring-4 focus-within:ring-primary/70",!s[3]&&"error",!s[1]&&"hover:border-information"))+" svelte-1ps5vu5"),C(w,"class","error-msg svelte-1ps5vu5"),C(w,"aria-live",A=s[3]?"off":"assertive"),se(w,"min-width",s[12]),C(m,"class","mt-2 flex justify-between gap-2"),C(n,"class",R=ee(ne("group",s[13]))+" svelte-1ps5vu5")},m(a,c){X(a,n,c),z(e,n,null),E(n,t),_&&_.m(n,null),E(n,r),E(n,i),E(i,l),he(l,s[0]),E(n,h),E(n,m),E(m,w),o&&o.m(w,null),E(m,H),v&&v.m(m,null),b=!0,L||(D=[te(l,"input",s[21]),te(l,"input",s[16]),te(l,"change",s[17]),te(l,"focus",s[18]),te(l,"blur",s[19]),te(l,"keydown",We(s[20]))],L=!0)},p(a,[c]){const V={};c&1024&&(V.required=a[10]),c&256&&(V.hidden=a[8]),c&128&&(V.label=a[7]),c&512&&(V.for=a[9]),e.$set(V),a[11]?_?_.p(a,c):(_=Ae(a),_.c(),_.m(n,r)):_&&(_.d(1),_=null),(!b||c&2&&g!==(g=ee(ne("surface-primary min-h-fit w-full rounded-lg px-3 py-2 text-sm focus-visible:outline-none",a[1]&&"cursor-not-allowed opacity-50"))+" svelte-1ps5vu5"))&&C(l,"class",g),(!b||c&512)&&C(l,"id",a[9]),(!b||c&2)&&(l.disabled=a[1]),(!b||c&16)&&C(l,"placeholder",a[4]),(!b||c&32)&&C(l,"rows",a[5]),(!b||c&64)&&C(l,"spellcheck",a[6]),(!b||c&4096&&f!==(f=a[12]>0?a[12]:void 0))&&C(l,"maxlength",f),c&1&&he(l,a[0]),(!b||c&10&&u!==(u=ee(ne("relative box-border inline-flex w-full rounded-lg border-2 border-subtle focus-within:border-information focus-within:ring-4 focus-within:ring-primary/70",!a[3]&&"error",!a[1]&&"hover:border-information"))+" svelte-1ps5vu5"))&&C(i,"class",u),a[3]?o&&(Be(),j(o,1,1,()=>{o=null}),Ne()):o?(o.p(a,c),c&8&&q(o,1)):(o=Le(a),o.c(),q(o,1),o.m(w,null)),(!b||c&8&&A!==(A=a[3]?"off":"assertive"))&&C(w,"aria-live",A),(!b||c&4096)&&se(w,"min-width",a[12]),a[12]&&!a[1]?v?v.p(a,c):(v=He(a),v.c(),v.m(m,null)):v&&(v.d(1),v=null),(!b||c&8192&&R!==(R=ee(ne("group",a[13]))+" svelte-1ps5vu5"))&&C(n,"class",R)},i(a){b||(q(e.$$.fragment,a),q(o),b=!0)},o(a){j(e.$$.fragment,a),j(o),b=!1},d(a){a&&T(n),F(e),_&&_.d(),o&&o.d(),v&&v.d(),L=!1,Xe(D)}}}function lt(s,n,e){let{$$slots:t={},$$scope:r}=n,{disabled:i=!1}=n,{error:l=""}=n,{isValid:g=!0}=n,{placeholder:f=""}=n,{rows:u=5}=n,{spellcheck:h=null}=n,{value:m}=n,{label:w}=n,{labelHidden:A=!1}=n,{id:H}=n,{required:R=!1}=n,{description:b=""}=n,{maxLength:L=0}=n,{class:D="text-primary"}=n;function _(d){oe.call(this,s,d)}function o(d){oe.call(this,s,d)}function v(d){oe.call(this,s,d)}function a(d){oe.call(this,s,d)}function c(d){oe.call(this,s,d)}function V(){m=this.value,e(0,m)}return s.$$set=d=>{"disabled"in d&&e(1,i=d.disabled),"error"in d&&e(2,l=d.error),"isValid"in d&&e(3,g=d.isValid),"placeholder"in d&&e(4,f=d.placeholder),"rows"in d&&e(5,u=d.rows),"spellcheck"in d&&e(6,h=d.spellcheck),"value"in d&&e(0,m=d.value),"label"in d&&e(7,w=d.label),"labelHidden"in d&&e(8,A=d.labelHidden),"id"in d&&e(9,H=d.id),"required"in d&&e(10,R=d.required),"description"in d&&e(11,b=d.description),"maxLength"in d&&e(12,L=d.maxLength),"class"in d&&e(13,D=d.class),"$$scope"in d&&e(14,r=d.$$scope)},[m,i,l,g,f,u,h,w,A,H,R,b,L,D,r,t,_,o,v,a,c,V]}class rt extends pe{constructor(n){super(),ge(this,n,lt,st,me,{disabled:1,error:2,isValid:3,placeholder:4,rows:5,spellcheck:6,value:0,label:7,labelHidden:8,id:9,required:10,description:11,maxLength:12,class:13})}}function qe(s){let n,e=I("data-encoder.include-cross-origin-credentials-warning")+"",t;return{c(){n=B("small"),t=J(e),this.h()},l(r){n=N(r,"SMALL",{"data-testid":!0});var i=P(n);t=K(i,e),i.forEach(T),this.h()},h(){C(n,"data-testid","data-encoder-cross-origin-credentials")},m(r,i){X(r,n,i),E(n,t)},p:fe,d(r){r&&T(n)}}}function it(s){let n,e,t,r,i,l,g,f,u,h,m,w;function A(o){s[4](o)}let H={id:"data-encoder-endpoint-input",rows:3,placeholder:I("data-encoder.endpoint-placeholder"),error:s[3],isValid:!s[3],label:I("data-encoder.endpoint-title"),description:I("data-encoder.endpoint-description")};s[0]!==void 0&&(H.value=s[0]),t=new rt({props:H}),le.push(()=>ie(t,"value",A));function R(o){s[5](o)}let b={label:I("data-encoder.pass-access-token-label"),id:"pass-access-token","data-testid":"data-encoder-pass-access-token"};s[1]!==void 0&&(b.checked=s[1]),l=new be({props:b}),le.push(()=>ie(l,"checked",R));function L(o){s[6](o)}let D={label:I("data-encoder.include-cross-origin-credentials-label"),id:"pass-access-credentials","data-testid":"data-encoder-include-credentials"};s[2]!==void 0&&(D.checked=s[2]),u=new be({props:D}),le.push(()=>ie(u,"checked",L));let _=s[2]&&qe();return{c(){n=B("div"),e=B("div"),G(t.$$.fragment),i=M(),G(l.$$.fragment),f=M(),G(u.$$.fragment),m=M(),_&&_.c(),this.h()},l(o){n=N(o,"DIV",{class:!0});var v=P(n);e=N(v,"DIV",{class:!0});var a=P(e);Z(t.$$.fragment,a),i=O(a),Z(l.$$.fragment,a),f=O(a),Z(u.$$.fragment,a),m=O(a),_&&_.l(a),a.forEach(T),v.forEach(T),this.h()},h(){C(e,"class","flex flex-col gap-2"),C(n,"class","flex flex-col gap-4")},m(o,v){X(o,n,v),E(n,e),z(t,e,null),E(e,i),z(l,e,null),E(e,f),z(u,e,null),E(e,m),_&&_.m(e,null),w=!0},p(o,[v]){const a={};v&8&&(a.error=o[3]),v&8&&(a.isValid=!o[3]),!r&&v&1&&(r=!0,a.value=o[0],re(()=>r=!1)),t.$set(a);const c={};!g&&v&2&&(g=!0,c.checked=o[1],re(()=>g=!1)),l.$set(c);const V={};!h&&v&4&&(h=!0,V.checked=o[2],re(()=>h=!1)),u.$set(V),o[2]?_?_.p(o,v):(_=qe(),_.c(),_.m(e,null)):_&&(_.d(1),_=null)},i(o){w||(q(t.$$.fragment,o),q(l.$$.fragment,o),q(u.$$.fragment,o),w=!0)},o(o){j(t.$$.fragment,o),j(l.$$.fragment,o),j(u.$$.fragment,o),w=!1},d(o){o&&T(n),F(t),F(l),F(u),_&&_.d()}}}function at(s,n,e){let{endpoint:t=""}=n,{passToken:r=!1}=n,{includeCreds:i=!1}=n,{error:l=""}=n;function g(h){t=h,e(0,t)}function f(h){r=h,e(1,r)}function u(h){i=h,e(2,i)}return s.$$set=h=>{"endpoint"in h&&e(0,t=h.endpoint),"passToken"in h&&e(1,r=h.passToken),"includeCreds"in h&&e(2,i=h.includeCreds),"error"in h&&e(3,l=h.error)},[t,r,i,l,g,f,u]}class ot extends pe{constructor(n){super(),ge(this,n,at,it,me,{endpoint:0,passToken:1,includeCreds:2,error:3})}}const dt=s=>s.replace(/\/+$/,"");function Re(s){let n,e,t,r,i=I("common.codec-server")+"",l,g,f,u=I("data-encoder.codec-server-description-prefix")+"",h,m,w,A=I("data-encoder.codec-server-description-suffix",{level:s[5]})+"",H,R,b,L,D,_,o,v,a,c,V,d,k,ue,ae;m=new ye({props:{href:"https://docs.temporal.io/dataconversion#codec-server",newTab:!0,$$slots:{default:[ft]},$$scope:{ctx:s}}}),b=new $e({props:{"data-testid":"override-accordion",title:s[6]?I("data-encoder.browser-override-description",{level:s[5]}):I("data-encoder.no-browser-override-description",{level:s[5]}),$$slots:{default:[ut]},$$scope:{ctx:s}}});function je(p){s[14](p)}function Me(p){s[15](p)}function Oe(p){s[16](p)}let ce={error:s[4]};return s[0]!==void 0&&(ce.endpoint=s[0]),s[1]!==void 0&&(ce.passToken=s[1]),s[3]!==void 0&&(ce.includeCreds=s[3]),D=new ot({props:ce}),le.push(()=>ie(D,"endpoint",je)),le.push(()=>ie(D,"passToken",Me)),le.push(()=>ie(D,"includeCreds",Oe)),V=new De({props:{disabled:!!s[4],"data-testid":"confirm-data-encoder-button",type:"submit",$$slots:{default:[_t]},$$scope:{ctx:s}}}),V.$on("click",s[9]),k=new De({props:{variant:"ghost","data-testid":"cancel-data-encoder-button",$$slots:{default:[mt]},$$scope:{ctx:s}}}),k.$on("click",s[8]),{c(){n=B("aside"),e=B("div"),t=B("div"),r=B("h3"),l=J(i),g=M(),f=B("p"),h=J(u),G(m.$$.fragment),w=M(),H=J(A),R=M(),G(b.$$.fragment),L=M(),G(D.$$.fragment),a=M(),c=B("div"),G(V.$$.fragment),d=M(),G(k.$$.fragment),this.h()},l(p){n=N(p,"ASIDE",{class:!0});var S=P(n);e=N(S,"DIV",{class:!0});var W=P(e);t=N(W,"DIV",{class:!0});var x=P(t);r=N(x,"H3",{"data-testid":!0});var U=P(r);l=K(U,i),U.forEach(T),x.forEach(T),g=O(W),f=N(W,"P",{class:!0});var Q=P(f);h=K(Q,u),Z(m.$$.fragment,Q),w=O(Q),H=K(Q,A),Q.forEach(T),R=O(W),Z(b.$$.fragment,W),L=O(W),Z(D.$$.fragment,W),a=O(W),c=N(W,"DIV",{class:!0});var $=P(c);Z(V.$$.fragment,$),d=O($),Z(k.$$.fragment,$),$.forEach(T),W.forEach(T),S.forEach(T),this.h()},h(){C(r,"data-testid","data-encoder-title"),C(t,"class","flex items-center justify-between space-x-2"),C(f,"class","text-sm"),C(c,"class","flex items-center gap-4"),C(e,"class","flex w-full flex-col gap-4 xl:w-1/2"),C(n,"class","surface-primary relative flex h-[540px] w-full flex-col gap-6 overflow-auto border-b border-subtle p-4 md:p-12")},m(p,S){X(p,n,S),E(n,e),E(e,t),E(t,r),E(r,l),E(e,g),E(e,f),E(f,h),z(m,f,null),E(f,w),E(f,H),E(e,R),z(b,e,null),E(e,L),z(D,e,null),E(e,a),E(e,c),z(V,c,null),E(c,d),z(k,c,null),ae=!0},p(p,S){const W={};S&4194304&&(W.$$scope={dirty:S,ctx:p}),m.$set(W),(!ae||S&32)&&A!==(A=I("data-encoder.codec-server-description-suffix",{level:p[5]})+"")&&de(H,A);const x={};S&96&&(x.title=p[6]?I("data-encoder.browser-override-description",{level:p[5]}):I("data-encoder.no-browser-override-description",{level:p[5]})),S&4194336&&(x.$$scope={dirty:S,ctx:p}),b.$set(x);const U={};S&16&&(U.error=p[4]),!_&&S&1&&(_=!0,U.endpoint=p[0],re(()=>_=!1)),!o&&S&2&&(o=!0,U.passToken=p[1],re(()=>o=!1)),!v&&S&8&&(v=!0,U.includeCreds=p[3],re(()=>v=!1)),D.$set(U);const Q={};S&16&&(Q.disabled=!!p[4]),S&4194304&&(Q.$$scope={dirty:S,ctx:p}),V.$set(Q);const $={};S&4194304&&($.$$scope={dirty:S,ctx:p}),k.$set($)},i(p){ae||(q(m.$$.fragment,p),q(b.$$.fragment,p),q(D.$$.fragment,p),q(V.$$.fragment,p),q(k.$$.fragment,p),p&&(ue||Je(()=>{ue=Ke(n,et,{y:-50,delay:0,duration:500}),ue.start()})),ae=!0)},o(p){j(m.$$.fragment,p),j(b.$$.fragment,p),j(D.$$.fragment,p),j(V.$$.fragment,p),j(k.$$.fragment,p),ae=!1},d(p){p&&T(n),F(m),F(b),F(D),F(V),F(k)}}}function ft(s){let n=I("common.codec-server")+"",e;return{c(){e=J(n)},l(t){e=K(t,n)},m(t,r){X(t,e,r)},p:fe,d(t){t&&T(e)}}}function ct(s){let n,e,t,r;return n=new Ve({props:{id:"use-configuration-endpoint-radio","data-testid":"use-configuration-endpoint-input",value:!1,label:I("data-encoder.no-browser-override-description",{level:s[5]})}}),t=new Ve({props:{id:"use-local-endpoint-radio","data-testid":"use-local-endpoint-input",value:!0,label:I("data-encoder.browser-override-description",{level:s[5]})}}),{c(){G(n.$$.fragment),e=M(),G(t.$$.fragment)},l(i){Z(n.$$.fragment,i),e=O(i),Z(t.$$.fragment,i)},m(i,l){z(n,i,l),X(i,e,l),z(t,i,l),r=!0},p(i,l){const g={};l&32&&(g.label=I("data-encoder.no-browser-override-description",{level:i[5]})),n.$set(g);const f={};l&32&&(f.label=I("data-encoder.browser-override-description",{level:i[5]})),t.$set(f)},i(i){r||(q(n.$$.fragment,i),q(t.$$.fragment,i),r=!0)},o(i){j(n.$$.fragment,i),j(t.$$.fragment,i),r=!1},d(i){i&&T(e),F(n,i),F(t,i)}}}function ut(s){let n,e;return n=new tt({props:{name:"override",group:s[7],$$slots:{default:[ct]},$$scope:{ctx:s}}}),{c(){G(n.$$.fragment)},l(t){Z(n.$$.fragment,t)},m(t,r){z(n,t,r),e=!0},p(t,r){const i={};r&4194336&&(i.$$scope={dirty:r,ctx:t}),n.$set(i)},i(t){e||(q(n.$$.fragment,t),e=!0)},o(t){j(n.$$.fragment,t),e=!1},d(t){F(n,t)}}}function _t(s){let n=I("common.apply")+"",e;return{c(){e=J(n)},l(t){e=K(t,n)},m(t,r){X(t,e,r)},p:fe,d(t){t&&T(e)}}}function mt(s){let n=I("common.cancel")+"",e;return{c(){e=J(n)},l(t){e=K(t,n)},m(t,r){X(t,e,r)},p:fe,d(t){t&&T(e)}}}function pt(s){let n,e,t=s[2]&&Re(s);return{c(){t&&t.c(),n=ve()},l(r){t&&t.l(r),n=ve()},m(r,i){t&&t.m(r,i),X(r,n,i),e=!0},p(r,[i]){r[2]?t?(t.p(r,i),i&4&&q(t,1)):(t=Re(r),t.c(),q(t,1),t.m(n.parentNode,n)):t&&(Be(),j(t,1,1,()=>{t=null}),Ne())},i(r){e||(q(t),e=!0)},o(r){j(t),e=!1},d(r){r&&T(n),t&&t.d(r)}}}const _e=Pe(!1);function gt(s,n,e){let t,r,i,l,g,f,u,h=fe,m,w,A;Y(s,Te,k=>e(17,i=k)),Y(s,xe,k=>e(13,l=k)),Y(s,we,k=>e(18,f=k)),Y(s,_e,k=>e(2,u=k)),Y(s,ke,k=>e(19,m=k)),Y(s,Ee,k=>e(20,w=k)),Y(s,Ce,k=>e(21,A=k)),s.$$.on_destroy.push(()=>h());var H,R,b;let L=A??"",D=w??!1,_=m??!1,o=Pe(f);Y(s,o,k=>e(6,g=k));const v=()=>{e(0,L=A),e(1,D=w),e(3,_=m),y(o,g=f,g),y(_e,u=!1,u)},a=()=>{e(4,t=""),y(Ce,A=dt(L),A),y(Ee,w=D,w),y(ke,m=_,m),y(_e,u=!1,u),y(we,f=g,f),l.url.pathname.endsWith("history")&&y(Te,i=Date.now(),i)};function c(k){L=k,e(0,L)}function V(k){D=k,e(1,D)}function d(k){_=k,e(3,_)}return s.$$.update=()=>{s.$$.dirty&15360&&e(5,r=!(e(12,b=e(11,R=e(10,H=l.data)===null||H===void 0?void 0:H.settings)===null||R===void 0?void 0:R.runtimeEnvironment)===null||b===void 0)&&b.isCloud?I("common.namespaces"):I("common.cluster")),s.$$.dirty&3&&(D&&!Ue(L)?e(4,t=I("data-encoder.access-token-https-error")):L&&!Ye(L)?e(4,t=I("data-encoder.prefix-error")):e(4,t="")),s.$$.dirty&4&&(u||v())},e(4,t=""),[L,D,u,_,t,r,g,o,v,a,H,R,b,l,c,V,d]}class qt extends pe{constructor(n){super(),ge(this,n,gt,pt,me,{})}}export{qt as D,_e as v}; diff --git a/ui/assets/local/_app/immutable/chunks/data-encoder.3DArnPfH.js b/ui/assets/local/_app/immutable/chunks/data-encoder.-upqEX2-.js similarity index 86% rename from ui/assets/local/_app/immutable/chunks/data-encoder.3DArnPfH.js rename to ui/assets/local/_app/immutable/chunks/data-encoder.-upqEX2-.js index 2a32acf8c8..4784840ff0 100644 --- a/ui/assets/local/_app/immutable/chunks/data-encoder.3DArnPfH.js +++ b/ui/assets/local/_app/immutable/chunks/data-encoder.-upqEX2-.js @@ -1 +1 @@ -import{D as o}from"./scheduler.1T9hOnFr.js";import{p as i}from"./stores.6oDSidma.js";import{t as C}from"./translate.HrioCK44.js";import{a as v}from"./auth-user.ZpmVHepC.js";import{c as u,o as m,p as k,i as E,v as A,s as l,a as O}from"./is-http.6riBcNrE.js";import{h as y}from"./has.Hk4nWl3x.js";import{s as f}from"./parse-with-big-int.e3oI4SEy.js";const b=(e,a=u,n=m)=>{var r;return o(n)&&o(a)||((r=e==null?void 0:e.codec)==null?void 0:r.endpoint)||o(a)||""},P=(e,a=k,n=u,d=m)=>{var s,t;const r=o(d)&&o(n),p=(s=e==null?void 0:e.codec)!=null&&s.endpoint?!!((t=e==null?void 0:e.codec)!=null&&t.passAccessToken):!!o(a);return r?!!o(a):p},R=(e,a=E,n=u,d=m)=>{var s,t;const r=o(d)&&o(n),p=(s=e==null?void 0:e.codec)!=null&&s.endpoint?!!((t=e==null?void 0:e.codec)!=null&&t.includeCredentials):!!o(a);return r?!!o(a):p};async function h({type:e,payloads:a,namespace:n=o(i).params.namespace,settings:d=o(i).data.settings}){const r=b(d),p=P(d),s=R(d),t={"Content-Type":"application/json","X-Namespace":n};if(p)if(A(r)){let c=o(v).accessToken;globalThis!=null&&globalThis.AccessToken&&(c=await(globalThis==null?void 0:globalThis.AccessToken())),t.Authorization=`Bearer ${c}`}else return l(),a;const T=s?{headers:t,credentials:"include",method:"POST",body:f(a)}:{headers:t,method:"POST",body:f(a)};return fetch(r+`/${e}`,T).then(c=>{if(y(c,"ok")&&!c.ok)throw{statusCode:c.status,statusText:c.statusText,response:c,message:C(`common.${e}-failed`)};return c.json()}).then(c=>(O(),c)).catch(c=>{if(l(c),e==="decode")return a;throw c})}async function B({payloads:e,namespace:a=o(i).params.namespace,settings:n=o(i).data.settings}){return h({type:"decode",payloads:e,namespace:a,settings:n})}async function I({payloads:e,namespace:a=o(i).params.namespace,settings:n=o(i).data.settings}){return h({type:"encode",payloads:e,namespace:a,settings:n})}export{P as a,R as b,B as d,I as e,b as g}; +import{D as o}from"./scheduler.pPC3woXQ.js";import{p as i}from"./stores.cW8AX6ex.js";import{t as C}from"./translate.HrioCK44.js";import{a as v}from"./auth-user.hBqnVR-w.js";import{c as u,o as m,p as k,i as E,v as A,s as l,a as O}from"./is-http.d0DfcwIt.js";import{h as y}from"./has.Hk4nWl3x.js";import{s as f}from"./parse-with-big-int.e3oI4SEy.js";const b=(e,a=u,n=m)=>{var r;return o(n)&&o(a)||((r=e==null?void 0:e.codec)==null?void 0:r.endpoint)||o(a)||""},P=(e,a=k,n=u,d=m)=>{var s,t;const r=o(d)&&o(n),p=(s=e==null?void 0:e.codec)!=null&&s.endpoint?!!((t=e==null?void 0:e.codec)!=null&&t.passAccessToken):!!o(a);return r?!!o(a):p},R=(e,a=E,n=u,d=m)=>{var s,t;const r=o(d)&&o(n),p=(s=e==null?void 0:e.codec)!=null&&s.endpoint?!!((t=e==null?void 0:e.codec)!=null&&t.includeCredentials):!!o(a);return r?!!o(a):p};async function h({type:e,payloads:a,namespace:n=o(i).params.namespace,settings:d=o(i).data.settings}){const r=b(d),p=P(d),s=R(d),t={"Content-Type":"application/json","X-Namespace":n};if(p)if(A(r)){let c=o(v).accessToken;globalThis!=null&&globalThis.AccessToken&&(c=await(globalThis==null?void 0:globalThis.AccessToken())),t.Authorization=`Bearer ${c}`}else return l(),a;const T=s?{headers:t,credentials:"include",method:"POST",body:f(a)}:{headers:t,method:"POST",body:f(a)};return fetch(r+`/${e}`,T).then(c=>{if(y(c,"ok")&&!c.ok)throw{statusCode:c.status,statusText:c.statusText,response:c,message:C(`common.${e}-failed`)};return c.json()}).then(c=>(O(),c)).catch(c=>{if(l(c),e==="decode")return a;throw c})}async function B({payloads:e,namespace:a=o(i).params.namespace,settings:n=o(i).data.settings}){return h({type:"decode",payloads:e,namespace:a,settings:n})}async function I({payloads:e,namespace:a=o(i).params.namespace,settings:n=o(i).data.settings}){return h({type:"encode",payloads:e,namespace:a,settings:n})}export{P as a,R as b,B as d,I as e,b as g}; diff --git a/ui/assets/local/_app/immutable/chunks/data-encoder.MaabNLsK.js b/ui/assets/local/_app/immutable/chunks/data-encoder.wOo2sRei.js similarity index 79% rename from ui/assets/local/_app/immutable/chunks/data-encoder.MaabNLsK.js rename to ui/assets/local/_app/immutable/chunks/data-encoder.wOo2sRei.js index e1b09bf52d..5eb8359c5b 100644 --- a/ui/assets/local/_app/immutable/chunks/data-encoder.MaabNLsK.js +++ b/ui/assets/local/_app/immutable/chunks/data-encoder.wOo2sRei.js @@ -1 +1 @@ -import{w,d as A}from"./entry.1BQh90wu.js";import{p as B}from"./stores.6oDSidma.js";import{a as N}from"./auth-user.ZpmVHepC.js";import{c as b,o as v,l as x}from"./is-http.6riBcNrE.js";const I=w("notRequested"),J=A([B,b,v,x,I,N],([s,t,k,e,n,c])=>{var d,i,a,m,u,l,R,f,q;const T=s.params.namespace,r=(a=(i=(d=s==null?void 0:s.data)==null?void 0:d.settings)==null?void 0:i.codec)==null?void 0:a.endpoint,h=!!((l=(u=(m=s==null?void 0:s.data)==null?void 0:m.settings)==null?void 0:u.codec)!=null&&l.passAccessToken),C=!!((q=(f=(R=s==null?void 0:s.data)==null?void 0:R.settings)==null?void 0:f.codec)!=null&&q.includeCredentials),o=k?t:r||t,E=c==null?void 0:c.accessToken;return{namespace:T,settingsEndpoint:r,settingsPassAccessToken:h,settingsIncludeCredentials:C,endpoint:o,accessToken:E,hasNotRequested:o?e==="notRequested":n==="notRequested",hasError:o?e==="error":n==="error",hasSuccess:o?e==="success":n==="success"}});export{J as d}; +import{w,d as A}from"./entry.6mxJxwSM.js";import{p as B}from"./stores.cW8AX6ex.js";import{a as N}from"./auth-user.hBqnVR-w.js";import{c as b,o as v,l as x}from"./is-http.d0DfcwIt.js";const I=w("notRequested"),J=A([B,b,v,x,I,N],([s,t,k,e,n,c])=>{var d,i,a,m,u,l,R,f,q;const T=s.params.namespace,r=(a=(i=(d=s==null?void 0:s.data)==null?void 0:d.settings)==null?void 0:i.codec)==null?void 0:a.endpoint,h=!!((l=(u=(m=s==null?void 0:s.data)==null?void 0:m.settings)==null?void 0:u.codec)!=null&&l.passAccessToken),C=!!((q=(f=(R=s==null?void 0:s.data)==null?void 0:R.settings)==null?void 0:f.codec)!=null&&q.includeCredentials),o=k?t:r||t,E=c==null?void 0:c.accessToken;return{namespace:T,settingsEndpoint:r,settingsPassAccessToken:h,settingsIncludeCredentials:C,endpoint:o,accessToken:E,hasNotRequested:o?e==="notRequested":n==="notRequested",hasError:o?e==="error":n==="error",hasSuccess:o?e==="success":n==="success"}});export{J as d}; diff --git a/ui/assets/local/_app/immutable/chunks/decode-payload.J6AgBD-I.js b/ui/assets/local/_app/immutable/chunks/decode-payload.gln8j6uZ.js similarity index 92% rename from ui/assets/local/_app/immutable/chunks/decode-payload.J6AgBD-I.js rename to ui/assets/local/_app/immutable/chunks/decode-payload.gln8j6uZ.js index 89a5f38fee..f559dc9860 100644 --- a/ui/assets/local/_app/immutable/chunks/decode-payload.J6AgBD-I.js +++ b/ui/assets/local/_app/immutable/chunks/decode-payload.gln8j6uZ.js @@ -1 +1 @@ -import{D as m}from"./scheduler.1T9hOnFr.js";import{p as u}from"./stores.6oDSidma.js";import{g as C,d as W}from"./data-encoder.3DArnPfH.js";import{a as x}from"./auth-user.ZpmVHepC.js";import{a as g}from"./atob.b0eKAuwS.js";import{i as j,h as i}from"./has.Hk4nWl3x.js";import{p as R}from"./parse-with-big-int.e3oI4SEy.js";const P=e=>Array.isArray(e)?e:[e];function l(e,c=!0){var o;if(e===null)return e;const s=g(String(((o=e==null?void 0:e.metadata)==null?void 0:o.encoding)??""));if(e!=null&&e.metadata&&(e.metadata.encodingDecoded=s),s!=null&&s.startsWith("json/"))try{const r=R(g(String((e==null?void 0:e.data)??"")));return c?r:{...e,data:r}}catch(r){console.warn("Could not parse payload: ",r)}return s==="binary/null"?c?null:{...e,data:null}:e}const O=(e,c=!0)=>{if(i(e,"searchAttributes")&&i(e.searchAttributes,"indexedFields")){const s=e.searchAttributes.indexedFields;Object.entries(s).forEach(([o,r])=>{s[o]=l(r,c)})}else if(i(e,"searchAttributes")){const s=e.searchAttributes;Object.entries(s).forEach(([o,r])=>{s[o]=l(r,c)})}if(i(e,"memo")&&i(e.memo,"fields")){const s=e.memo.fields;Object.entries(s).forEach(([o,r])=>{s[o]=l(r,c)})}if(i(e,"header")&&i(e.header,"fields")){const s=e.header.fields;Object.entries(s).forEach(([o,r])=>{s[o]=l(r,c)})}if(i(e,"queryResult")){const s=e==null?void 0:e.queryResult;Object.entries(s).forEach(([o,r])=>{s[o]=l(r,c)})}return e},k=e=>async(c,s=!0)=>{if(C(e)){const o=await W({payloads:{payloads:c},settings:e});return((o==null?void 0:o.payloads)??[]).map(r=>l(r,s))}else return c.map(o=>l(o,s))},b=e=>async c=>{if(C(e)){const s=await W({payloads:{payloads:c},settings:e});return(s==null?void 0:s.payloads)??[]}else return c},h=(e,...c)=>{for(const s of c)if(e===s)return!0;return!1},U=async(e,c=m(u).data.settings)=>{try{return(await k(c)([e]))[0]||""}catch{return""}},E=async(e,c=m(u).params.namespace,s=m(u).data.settings,o=m(x).accessToken)=>{const r=k(s);if(e)for(const a of Object.keys(e))if(h(a,"payloads","encodedAttributes")&&e[a]){const f=P(e[a]),d=await r(f);e[a]=h(a,"encodedAttributes")?d[0]:d}else{const f=e[a];j(f)&&(e[a]=await E(f,c,s,o))}return e},q=e=>{if(!j(e))return!1;const c=Object.keys(e);return c.length===2&&c.includes("metadata")&&c.includes("data")},S=async(e,c,s,o,r="readable",a=!0)=>{if(!e)return e;const f=r==="readable"?k(s):b(s),d={...e};if(e){if(q(d)){const t=P(d),n=await f(t,a);return(n==null?void 0:n[0])||d}for(const t of Object.keys(d))if(h(t,"payloads","encodedAttributes")&&d[t]){const n=P(d[t]),w=await f(n,a);d[t]=h(t,"encodedAttributes")?w[0]:w}else{const n=d[t];j(n)&&(d[t]=await S(n,c,s,o,r,a))}}return d},p=async({attributes:e,namespace:c,settings:s,accessToken:o})=>await E(e,c,s,o);export{U as a,p as b,S as c,O as d,l as e,q as i}; +import{D as m}from"./scheduler.pPC3woXQ.js";import{p as u}from"./stores.cW8AX6ex.js";import{g as C,d as W}from"./data-encoder.-upqEX2-.js";import{a as x}from"./auth-user.hBqnVR-w.js";import{a as g}from"./atob.b0eKAuwS.js";import{i as j,h as i}from"./has.Hk4nWl3x.js";import{p as R}from"./parse-with-big-int.e3oI4SEy.js";const P=e=>Array.isArray(e)?e:[e];function l(e,c=!0){var o;if(e===null)return e;const s=g(String(((o=e==null?void 0:e.metadata)==null?void 0:o.encoding)??""));if(e!=null&&e.metadata&&(e.metadata.encodingDecoded=s),s!=null&&s.startsWith("json/"))try{const r=R(g(String((e==null?void 0:e.data)??"")));return c?r:{...e,data:r}}catch(r){console.warn("Could not parse payload: ",r)}return s==="binary/null"?c?null:{...e,data:null}:e}const O=(e,c=!0)=>{if(i(e,"searchAttributes")&&i(e.searchAttributes,"indexedFields")){const s=e.searchAttributes.indexedFields;Object.entries(s).forEach(([o,r])=>{s[o]=l(r,c)})}else if(i(e,"searchAttributes")){const s=e.searchAttributes;Object.entries(s).forEach(([o,r])=>{s[o]=l(r,c)})}if(i(e,"memo")&&i(e.memo,"fields")){const s=e.memo.fields;Object.entries(s).forEach(([o,r])=>{s[o]=l(r,c)})}if(i(e,"header")&&i(e.header,"fields")){const s=e.header.fields;Object.entries(s).forEach(([o,r])=>{s[o]=l(r,c)})}if(i(e,"queryResult")){const s=e==null?void 0:e.queryResult;Object.entries(s).forEach(([o,r])=>{s[o]=l(r,c)})}return e},k=e=>async(c,s=!0)=>{if(C(e)){const o=await W({payloads:{payloads:c},settings:e});return((o==null?void 0:o.payloads)??[]).map(r=>l(r,s))}else return c.map(o=>l(o,s))},b=e=>async c=>{if(C(e)){const s=await W({payloads:{payloads:c},settings:e});return(s==null?void 0:s.payloads)??[]}else return c},h=(e,...c)=>{for(const s of c)if(e===s)return!0;return!1},U=async(e,c=m(u).data.settings)=>{try{return(await k(c)([e]))[0]||""}catch{return""}},E=async(e,c=m(u).params.namespace,s=m(u).data.settings,o=m(x).accessToken)=>{const r=k(s);if(e)for(const a of Object.keys(e))if(h(a,"payloads","encodedAttributes")&&e[a]){const f=P(e[a]),d=await r(f);e[a]=h(a,"encodedAttributes")?d[0]:d}else{const f=e[a];j(f)&&(e[a]=await E(f,c,s,o))}return e},q=e=>{if(!j(e))return!1;const c=Object.keys(e);return c.length===2&&c.includes("metadata")&&c.includes("data")},S=async(e,c,s,o,r="readable",a=!0)=>{if(!e)return e;const f=r==="readable"?k(s):b(s),d={...e};if(e){if(q(d)){const t=P(d),n=await f(t,a);return(n==null?void 0:n[0])||d}for(const t of Object.keys(d))if(h(t,"payloads","encodedAttributes")&&d[t]){const n=P(d[t]),w=await f(n,a);d[t]=h(t,"encodedAttributes")?w[0]:w}else{const n=d[t];j(n)&&(d[t]=await S(n,c,s,o,r,a))}}return d},p=async({attributes:e,namespace:c,settings:s,accessToken:o})=>await E(e,c,s,o);export{U as a,p as b,S as c,O as d,l as e,q as i}; diff --git a/ui/assets/local/_app/immutable/chunks/dockerfile.QUT_nMy_.js b/ui/assets/local/_app/immutable/chunks/dockerfile.QUT_nMy_.js new file mode 100644 index 0000000000..b5a8fb97c4 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/dockerfile.QUT_nMy_.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={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"]]}};export{e as conf,o as language}; diff --git a/ui/assets/local/_app/immutable/chunks/each.QHpLJPfe.js b/ui/assets/local/_app/immutable/chunks/each.fm8Uvuh8.js similarity index 86% rename from ui/assets/local/_app/immutable/chunks/each.QHpLJPfe.js rename to ui/assets/local/_app/immutable/chunks/each.fm8Uvuh8.js index 4c4389df05..495ee3b155 100644 --- a/ui/assets/local/_app/immutable/chunks/each.QHpLJPfe.js +++ b/ui/assets/local/_app/immutable/chunks/each.fm8Uvuh8.js @@ -1 +1 @@ -import{b as j,t as q}from"./index.cVovwi_s.js";import{H as z}from"./scheduler.1T9hOnFr.js";function D(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}function E(n,f){n.d(1),f.delete(n.key)}function F(n,f){j(n,1,1,()=>{f.delete(n.key)})}function G(n,f,k,x,A,g,h,H,p,_,w,b){let i=n.length,d=g.length,c=i;const u={};for(;c--;)u[n[c].key]=c;const l=[],a=new Map,m=new Map,M=[];for(c=d;c--;){const e=b(A,g,c),s=k(e);let t=h.get(s);t?x&&M.push(()=>t.p(e,f)):(t=_(s,e),t.c()),a.set(s,l[c]=t),s in u&&m.set(s,Math.abs(c-u[s]))}const v=new Set,S=new Set;function y(e){q(e,1),e.m(H,w),h.set(e.key,e),w=e.first,d--}for(;i&&d;){const e=l[d-1],s=n[i-1],t=e.key,o=s.key;e===s?(w=e.first,i--,d--):a.has(o)?!h.has(t)||v.has(t)?y(e):S.has(o)?i--:m.get(t)>m.get(o)?(S.add(t),y(e)):(v.add(o),i--):(p(s,h),i--)}for(;i--;){const e=n[i];a.has(e.key)||p(e,h)}for(;d;)y(l[d-1]);return z(M),l}export{E as d,D as e,F as o,G as u}; +import{b as j,t as q}from"./index.Z3Qqxacm.js";import{H as z}from"./scheduler.pPC3woXQ.js";function D(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}function E(n,f){n.d(1),f.delete(n.key)}function F(n,f){j(n,1,1,()=>{f.delete(n.key)})}function G(n,f,k,x,A,g,h,H,p,_,w,b){let i=n.length,d=g.length,c=i;const u={};for(;c--;)u[n[c].key]=c;const l=[],a=new Map,m=new Map,M=[];for(c=d;c--;){const e=b(A,g,c),s=k(e);let t=h.get(s);t?x&&M.push(()=>t.p(e,f)):(t=_(s,e),t.c()),a.set(s,l[c]=t),s in u&&m.set(s,Math.abs(c-u[s]))}const v=new Set,S=new Set;function y(e){q(e,1),e.m(H,w),h.set(e.key,e),w=e.first,d--}for(;i&&d;){const e=l[d-1],s=n[i-1],t=e.key,o=s.key;e===s?(w=e.first,i--,d--):a.has(o)?!h.has(t)||v.has(t)?y(e):S.has(o)?i--:m.get(t)>m.get(o)?(S.add(t),y(e)):(v.add(o),i--):(p(s,h),i--)}for(;i--;){const e=n[i];a.has(e.key)||p(e,h)}for(;d;)y(l[d-1]);return z(M),l}export{E as d,D as e,F as o,G as u}; diff --git a/ui/assets/local/_app/immutable/chunks/ecl._9m2JP4i.js b/ui/assets/local/_app/immutable/chunks/ecl._9m2JP4i.js new file mode 100644 index 0000000000..83b5db1a6d --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/ecl._9m2JP4i.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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:'"'}]},o={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"]]}};export{e as conf,o as language}; diff --git a/ui/assets/local/_app/immutable/chunks/elixir.HACtswWO.js b/ui/assets/local/_app/immutable/chunks/elixir.HACtswWO.js new file mode 100644 index 0000000000..35bdd93397 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/elixir.HACtswWO.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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)/}},t={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"}]}};export{e as conf,t as language}; diff --git a/ui/assets/local/_app/immutable/chunks/empty-state.e2HBTKUT.js b/ui/assets/local/_app/immutable/chunks/empty-state.EyhDYDWL.js similarity index 92% rename from ui/assets/local/_app/immutable/chunks/empty-state.e2HBTKUT.js rename to ui/assets/local/_app/immutable/chunks/empty-state.EyhDYDWL.js index 07801cec3c..851458ab40 100644 --- a/ui/assets/local/_app/immutable/chunks/empty-state.e2HBTKUT.js +++ b/ui/assets/local/_app/immutable/chunks/empty-state.EyhDYDWL.js @@ -1 +1 @@ -import{s as K,a as L,h as E,b as P,t as A,j as k,k as y,f as h,d as S,l as z,m as _,i as C,n as d,q as D,u as M,g as O,e as Q,z as V,A as B}from"./scheduler.1T9hOnFr.js";import{S as R,i as T,c as U,a as W,m as X,t as F,b as G,d as Y}from"./index.cVovwi_s.js";import{I as Z}from"./icon.w8eknFMq.js";function H(l){let e,a;return{c(){e=E("p"),a=A(l[1]),this.h()},l(s){e=k(s,"P",{class:!0});var i=y(e);a=z(i,l[1]),i.forEach(h),this.h()},h(){_(e,"class","text-center")},m(s,i){C(s,e,i),d(e,a)},p(s,i){i&2&&D(a,s[1])},d(s){s&&h(e)}}}function J(l){let e,a;return{c(){e=E("p"),a=A(l[2]),this.h()},l(s){e=k(s,"P",{class:!0});var i=y(e);a=z(i,l[2]),i.forEach(h),this.h()},h(){_(e,"class","rounded-md border-2 border-danger bg-danger p-5 text-center")},m(s,i){C(s,e,i),d(e,a)},p(s,i){i&4&&D(a,s[2])},d(s){s&&h(e)}}}function w(l){let e,a,s,i,u,g,p,b,f,I,j,m;s=new Z({props:{name:l[3],class:"block h-full w-full"}});let r=l[1]&&H(l),o=l[2]&&J(l);const q=l[6].default,c=L(q,l,l[5],null);return{c(){e=E("div"),a=E("span"),U(s.$$.fragment),i=P(),u=E("p"),g=A(l[0]),p=P(),r&&r.c(),b=P(),o&&o.c(),f=P(),c&&c.c(),this.h()},l(t){e=k(t,"DIV",{class:!0,"data-testid":!0});var n=y(e);a=k(n,"SPAN",{class:!0});var v=y(a);W(s.$$.fragment,v),v.forEach(h),i=S(n),u=k(n,"P",{class:!0});var N=y(u);g=z(N,l[0]),N.forEach(h),p=S(n),r&&r.l(n),b=S(n),o&&o.l(n),f=S(n),c&&c.l(n),n.forEach(h),this.h()},h(){_(a,"class","surface-secondary flex h-16 w-16 items-center justify-center rounded-full"),_(u,"class","text-xl font-medium"),_(e,"class",I="my-12 flex flex-col items-center justify-start gap-2 text-primary "+l[4].class),_(e,"data-testid",j=l[4].testId)},m(t,n){C(t,e,n),d(e,a),X(s,a,null),d(e,i),d(e,u),d(u,g),d(e,p),r&&r.m(e,null),d(e,b),o&&o.m(e,null),d(e,f),c&&c.m(e,null),m=!0},p(t,[n]){const v={};n&8&&(v.name=t[3]),s.$set(v),(!m||n&1)&&D(g,t[0]),t[1]?r?r.p(t,n):(r=H(t),r.c(),r.m(e,b)):r&&(r.d(1),r=null),t[2]?o?o.p(t,n):(o=J(t),o.c(),o.m(e,f)):o&&(o.d(1),o=null),c&&c.p&&(!m||n&32)&&M(c,q,t,t[5],m?Q(q,t[5],n,null):O(t[5]),null),(!m||n&16&&I!==(I="my-12 flex flex-col items-center justify-start gap-2 text-primary "+t[4].class))&&_(e,"class",I),(!m||n&16&&j!==(j=t[4].testId))&&_(e,"data-testid",j)},i(t){m||(F(s.$$.fragment,t),F(c,t),m=!0)},o(t){G(s.$$.fragment,t),G(c,t),m=!1},d(t){t&&h(e),Y(s),r&&r.d(),o&&o.d(),c&&c.d(t)}}}function x(l,e,a){let{$$slots:s={},$$scope:i}=e,{title:u}=e,{content:g=""}=e,{error:p=""}=e,{icon:b="comet"}=e;return l.$$set=f=>{a(4,e=V(V({},e),B(f))),"title"in f&&a(0,u=f.title),"content"in f&&a(1,g=f.content),"error"in f&&a(2,p=f.error),"icon"in f&&a(3,b=f.icon),"$$scope"in f&&a(5,i=f.$$scope)},e=B(e),[u,g,p,b,e,i,s]}class se extends R{constructor(e){super(),T(this,e,x,w,K,{title:0,content:1,error:2,icon:3})}}export{se as E}; +import{s as K,a as L,h as E,b as P,t as A,j as k,k as y,f as h,d as S,l as z,m as _,i as C,n as d,q as D,u as M,g as O,e as Q,z as V,A as B}from"./scheduler.pPC3woXQ.js";import{S as R,i as T,c as U,a as W,m as X,t as F,b as G,d as Y}from"./index.Z3Qqxacm.js";import{I as Z}from"./icon.IMxiy1l_.js";function H(l){let e,a;return{c(){e=E("p"),a=A(l[1]),this.h()},l(s){e=k(s,"P",{class:!0});var i=y(e);a=z(i,l[1]),i.forEach(h),this.h()},h(){_(e,"class","text-center")},m(s,i){C(s,e,i),d(e,a)},p(s,i){i&2&&D(a,s[1])},d(s){s&&h(e)}}}function J(l){let e,a;return{c(){e=E("p"),a=A(l[2]),this.h()},l(s){e=k(s,"P",{class:!0});var i=y(e);a=z(i,l[2]),i.forEach(h),this.h()},h(){_(e,"class","rounded-md border-2 border-danger bg-danger p-5 text-center")},m(s,i){C(s,e,i),d(e,a)},p(s,i){i&4&&D(a,s[2])},d(s){s&&h(e)}}}function w(l){let e,a,s,i,u,g,p,b,f,I,j,m;s=new Z({props:{name:l[3],class:"block h-full w-full"}});let r=l[1]&&H(l),o=l[2]&&J(l);const q=l[6].default,c=L(q,l,l[5],null);return{c(){e=E("div"),a=E("span"),U(s.$$.fragment),i=P(),u=E("p"),g=A(l[0]),p=P(),r&&r.c(),b=P(),o&&o.c(),f=P(),c&&c.c(),this.h()},l(t){e=k(t,"DIV",{class:!0,"data-testid":!0});var n=y(e);a=k(n,"SPAN",{class:!0});var v=y(a);W(s.$$.fragment,v),v.forEach(h),i=S(n),u=k(n,"P",{class:!0});var N=y(u);g=z(N,l[0]),N.forEach(h),p=S(n),r&&r.l(n),b=S(n),o&&o.l(n),f=S(n),c&&c.l(n),n.forEach(h),this.h()},h(){_(a,"class","surface-secondary flex h-16 w-16 items-center justify-center rounded-full"),_(u,"class","text-xl font-medium"),_(e,"class",I="my-12 flex flex-col items-center justify-start gap-2 text-primary "+l[4].class),_(e,"data-testid",j=l[4].testId)},m(t,n){C(t,e,n),d(e,a),X(s,a,null),d(e,i),d(e,u),d(u,g),d(e,p),r&&r.m(e,null),d(e,b),o&&o.m(e,null),d(e,f),c&&c.m(e,null),m=!0},p(t,[n]){const v={};n&8&&(v.name=t[3]),s.$set(v),(!m||n&1)&&D(g,t[0]),t[1]?r?r.p(t,n):(r=H(t),r.c(),r.m(e,b)):r&&(r.d(1),r=null),t[2]?o?o.p(t,n):(o=J(t),o.c(),o.m(e,f)):o&&(o.d(1),o=null),c&&c.p&&(!m||n&32)&&M(c,q,t,t[5],m?Q(q,t[5],n,null):O(t[5]),null),(!m||n&16&&I!==(I="my-12 flex flex-col items-center justify-start gap-2 text-primary "+t[4].class))&&_(e,"class",I),(!m||n&16&&j!==(j=t[4].testId))&&_(e,"data-testid",j)},i(t){m||(F(s.$$.fragment,t),F(c,t),m=!0)},o(t){G(s.$$.fragment,t),G(c,t),m=!1},d(t){t&&h(e),Y(s),r&&r.d(),o&&o.d(),c&&c.d(t)}}}function x(l,e,a){let{$$slots:s={},$$scope:i}=e,{title:u}=e,{content:g=""}=e,{error:p=""}=e,{icon:b="comet"}=e;return l.$$set=f=>{a(4,e=V(V({},e),B(f))),"title"in f&&a(0,u=f.title),"content"in f&&a(1,g=f.content),"error"in f&&a(2,p=f.error),"icon"in f&&a(3,b=f.icon),"$$scope"in f&&a(5,i=f.$$scope)},e=B(e),[u,g,p,b,e,i,s]}class se extends R{constructor(e){super(),T(this,e,x,w,K,{title:0,content:1,error:2,icon:3})}}export{se as E}; diff --git a/ui/assets/local/_app/immutable/chunks/encode-payload.KDTwh14f.js b/ui/assets/local/_app/immutable/chunks/encode-payload.xDhwgfdU.js similarity index 73% rename from ui/assets/local/_app/immutable/chunks/encode-payload.KDTwh14f.js rename to ui/assets/local/_app/immutable/chunks/encode-payload.xDhwgfdU.js index 01fbbde034..7c7aaf326d 100644 --- a/ui/assets/local/_app/immutable/chunks/encode-payload.KDTwh14f.js +++ b/ui/assets/local/_app/immutable/chunks/encode-payload.xDhwgfdU.js @@ -1 +1 @@ -import{D as s}from"./scheduler.1T9hOnFr.js";import{e as r}from"./data-encoder.3DArnPfH.js";import{d as i}from"./data-encoder.MaabNLsK.js";import{B as d}from"./prod-browser.6V4A_NcJ.js";import{p as c,s as p}from"./parse-with-big-int.e3oI4SEy.js";const l=o=>window.btoa(encodeURIComponent(o).replace(/%([0-9A-F]{2})/g,(n,t)=>String.fromCharCode(parseInt(t,16)))),e=(o,n=d)=>n?l(o):o,P=o=>{if(o){const n=c(o),t=n==null?void 0:n[0];if(t)return p(t)}return""},f=o=>({metadata:{encoding:e("json/plain")},data:e(JSON.stringify(o))}),S=async o=>{let n=null;if(o){const t=JSON.parse(o);if(n=[f(t)],s(i).endpoint){const a=await r({payloads:{payloads:n}});n=(a==null?void 0:a.payloads)??null}}return n};export{S as e,P as g,f as s}; +import{D as s}from"./scheduler.pPC3woXQ.js";import{e as r}from"./data-encoder.-upqEX2-.js";import{d as i}from"./data-encoder.wOo2sRei.js";import{B as d}from"./prod-browser.6V4A_NcJ.js";import{p as c,s as p}from"./parse-with-big-int.e3oI4SEy.js";const l=o=>window.btoa(encodeURIComponent(o).replace(/%([0-9A-F]{2})/g,(n,t)=>String.fromCharCode(parseInt(t,16)))),e=(o,n=d)=>n?l(o):o,P=o=>{if(o){const n=c(o),t=n==null?void 0:n[0];if(t)return p(t)}return""},f=o=>({metadata:{encoding:e("json/plain")},data:e(JSON.stringify(o))}),S=async o=>{let n=null;if(o){const t=JSON.parse(o);if(n=[f(t)],s(i).endpoint){const a=await r({payloads:{payloads:n}});n=(a==null?void 0:a.payloads)??null}}return n};export{S as e,P as g,f as s}; diff --git a/ui/assets/local/_app/immutable/chunks/entry.1BQh90wu.js b/ui/assets/local/_app/immutable/chunks/entry.6mxJxwSM.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/entry.1BQh90wu.js rename to ui/assets/local/_app/immutable/chunks/entry.6mxJxwSM.js index 1e992e4800..205c54d909 100644 --- a/ui/assets/local/_app/immutable/chunks/entry.1BQh90wu.js +++ b/ui/assets/local/_app/immutable/chunks/entry.6mxJxwSM.js @@ -1,3 +1,3 @@ -import{v as F,a5 as ot,H as st,s as it,a1 as ct,ac as lt,S as ft}from"./scheduler.1T9hOnFr.js";import{a as ut,b as I}from"./paths.uI-MwgM_.js";import{H as ne,S as ge,R as je}from"./control.pJ1mnnAb.js";new URL("sveltekit-internal://");function dt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function ht(e){return e.split("%25").map(decodeURI).join("%25")}function pt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function le({href:e}){return e.split("#")[0]}const gt=["href","pathname","search","toString","toJSON"];function mt(e,t,n){const r=new URL(e);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return s=>(n(s),a[o](s));t();const i=Reflect.get(a,o);return typeof i=="function"?i.bind(a):i}}),enumerable:!0,configurable:!0});for(const a of gt)Object.defineProperty(r,a,{get(){return t(),e[a]},enumerable:!0,configurable:!0});return r}const _t="/__data.json",yt=".html__data.json";function wt(e){return e.endsWith(".html")?e.replace(/\.html$/,yt):e.replace(/\/$/,"")+_t}function vt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}function bt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r((e instanceof Request?e.method:(t==null?void 0:t.method)||"GET")!=="GET"&&q.delete(me(e)),De(e,t));const q=new Map;function Et(e,t){const n=me(e,t),r=document.querySelector(n);if(r!=null&&r.textContent){let{body:a,...o}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&q.set(n,{body:a,init:o,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=bt(a)),Promise.resolve(new Response(a,o))}return window.fetch(e,t)}function kt(e,t,n){if(q.size>0){const r=me(e,n),a=q.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return fe(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return fe(String.fromCharCode(...c.slice(2).split("-").map(f=>parseInt(f,16))));const u=St.exec(c),[,h,g,d,m]=u;return t.push({name:d,matcher:m,optional:!!h,rest:!!g,chained:g?l===1&&i[0]==="":!1}),g?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return fe(c)}).join("")}).join("")}/?$`),params:t}}function Rt(e){return!/^\([^)]+\)$/.test(e)}function It(e){return e.slice(1).split("/").filter(Rt)}function Lt(e,t,n){const r={},a=e.slice(1),o=a.filter(s=>s!==void 0);let i=0;for(let s=0;su).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const u=t[s+1],h=a[s+1];u&&!u.rest&&u.optional&&h&&c.chained&&(i=0),!u&&!h&&Object.keys(r).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function fe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Pt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([s,[c,l,u]])=>{const{pattern:h,params:g}=At(s),d={id:s,exec:m=>{const f=h.exec(m);if(f)return Lt(f,g,r)},errors:[1,...u||[]].map(m=>e[m]),layouts:[0,...l||[]].map(i),leaf:o(c)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[a.has(s),e[s]]}}function $e(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Le(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const O=[];function Ut(e,t){return{subscribe:ae(e,t).subscribe}}function ae(e,t=F){let n;const r=new Set;function a(s){if(it(e,s)&&(e=s,n)){const c=!O.length;for(const l of r)l[1](),O.push(l,e);if(c){for(let l=0;l{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:a,update:o,subscribe:i}}function on(e,t,n){const r=!Array.isArray(e),a=r?[e]:e;if(!a.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Ut(n,(i,s)=>{let c=!1;const l=[];let u=0,h=F;const g=()=>{if(u)return;h();const m=t(r?l[0]:l,i,s);o?i(m):h=ct(m)?m:F},d=a.map((m,f)=>ot(m,_=>{l[f]=_,u&=~(1<{u|=1<i)}function a(i){n=!1,t.set(i)}function o(i){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&i(s=c)})}return{notify:r,set:a,subscribe:o}}function Tt(){const{set:e,subscribe:t}=ae(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${ut}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==xt;return i&&(e(!0),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function re(e,t){return e.origin!==K||!e.pathname.startsWith(t)}const Ot=-1,jt=-2,Dt=-3,$t=-4,Ct=-5,Vt=-6;function Ft(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(o,i=!1){if(o===Ot)return;if(o===Dt)return NaN;if(o===$t)return 1/0;if(o===Ct)return-1/0;if(o===Vt)return-0;if(i)throw new Error("Invalid input");if(o in r)return r[o];const s=n[o];if(!s||typeof s!="object")r[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=t==null?void 0:t[c];if(l)return r[o]=l(a(s[1]));switch(c){case"Date":r[o]=new Date(s[1]);break;case"Set":const u=new Set;r[o]=u;for(let d=1;dt!=null)}const Mt="x-sveltekit-invalidated",Gt="x-sveltekit-trailing-slash";function J(e){return e instanceof ne||e instanceof ge?e.status:500}function Bt(e){return e instanceof ge?e.text:"Internal Error"}const T=$e(Ve)??{},M=$e(Ce)??{},U={url:Ue({}),page:Ue({}),navigating:ae(null),updated:Tt()};function ye(e){T[e]=_e()}function Kt(e,t){let n=e+1;for(;T[n];)delete T[n],n+=1;for(n=t+1;M[n];)delete M[n],n+=1}function $(e){return location.href=e.href,new Promise(()=>{})}function xe(){}let oe,he,X,L,pe,C;const Be=[],Z=[];let P=null;const we=[],zt=[];let N=[],w={branch:[],error:null,url:null},ve=!1,Q=!1,Ne=!0,G=!1,V=!1,Ke=!1,be=!1,Ee,k,A,R,ee;async function sn(e,t,n){var a,o;document.URL!==location.href&&(location.href=location.href),C=e,oe=Pt(e),L=document.documentElement,pe=t,he=e.nodes[0],X=e.nodes[1],he(),X(),k=(a=history.state)==null?void 0:a[D],A=(o=history.state)==null?void 0:o[H],k||(k=A=Date.now(),history.replaceState({...history.state,[D]:k,[H]:A},""));const r=T[k];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),n?await en(pe,n):Zt(location.href,{replaceState:!0}),Qt()}function ze(e){Z.some(t=>t==null?void 0:t.snapshot)&&(M[e]=Z.map(t=>{var n;return(n=t==null?void 0:t.snapshot)==null?void 0:n.capture()}))}function Ye(e){var t;(t=M[e])==null||t.forEach((n,r)=>{var a,o;(o=(a=Z[r])==null?void 0:a.snapshot)==null||o.restore(n)})}function Te(){ye(k),Le(Ve,T),ze(A),Le(Ce,M)}async function We(e,t,n,r){return z({type:"goto",url:qe(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(be=!0)}})}async function Yt(e){return P={id:e.id,promise:Xe(e).then(t=>(t.type==="loaded"&&t.state.error&&(P=null),t))},P.promise}async function ue(e){const t=oe.find(n=>n.exec(Ze(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n==null?void 0:n[1]()))}function Je(e,t){var a;w=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),R=e.props.page,Ee=new C.root({target:t,props:{...e.props,stores:U,components:Z},hydrate:!0}),Ye(A);const r={from:null,to:{params:w.params,route:{id:((a=w.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};N.forEach(o=>o(r)),Q=!0}async function te({url:e,params:t,branch:n,status:r,error:a,route:o,form:i}){let s="never";if(I&&(e.pathname===I||e.pathname===I+"/"))s="always";else for(const d of n)(d==null?void 0:d.slash)!==void 0&&(s=d.slash);e.pathname=dt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Ht(n).map(d=>d.node.component),page:R}};i!==void 0&&(c.props.form=i);let l={},u=!R,h=0;for(let d=0;d(s&&(c.route=!0),f[_])}),params:new Proxy(r,{get:(f,_)=>(s&&c.params.add(_),f[_])}),data:(o==null?void 0:o.data)??null,url:mt(n,()=>{s&&(c.url=!0)},f=>{s&&c.search_params.add(f)}),async fetch(f,_){let v;f instanceof Request?(v=f.url,_={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:f.headers,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,..._}):v=f;const S=new URL(v,n);return s&&d(S.href),S.origin===n.origin&&(v=S.href.slice(n.origin.length)),Q?kt(v,S.href,_):Et(v,_)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),t()},untrack(f){s=!1;try{return f()}finally{s=!0}}};i=await l.universal.load.call(null,m)??null}return{node:l,loader:e,server:o,universal:(h=l.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((g=l.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function Oe(e,t,n,r,a,o){if(be)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(o[i]!==w.params[i])return!0;for(const i of a.dependencies)if(Be.some(s=>s(new URL(i))))return!0;return!1}function Se(e,t){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?t??null:null}function Wt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),o=t.searchParams.getAll(r);a.every(i=>o.includes(i))&&o.every(i=>a.includes(i))&&n.delete(r)}return n}async function Xe({id:e,invalidating:t,url:n,params:r,route:a}){if((P==null?void 0:P.id)===e)return P.promise;const{errors:o,layouts:i,leaf:s}=a,c=[...i,s];o.forEach(p=>p==null?void 0:p().catch(()=>{})),c.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let l=null;const u=w.url?e!==w.url.pathname+w.url.search:!1,h=w.route?a.id!==w.route.id:!1,g=Wt(w.url,n);let d=!1;const m=c.map((p,y)=>{var x;const b=w.branch[y],E=!!(p!=null&&p[0])&&((b==null?void 0:b.loader)!==p[1]||Oe(d,h,u,g,(x=b.server)==null?void 0:x.uses,r));return E&&(d=!0),E});if(m.some(Boolean)){try{l=await nt(n,m)}catch(p){return se({status:J(p),error:await B(p,{url:n,params:r,route:{id:a.id}}),url:n,route:a})}if(l.type==="redirect")return l}const f=l==null?void 0:l.nodes;let _=!1;const v=c.map(async(p,y)=>{var ie;if(!p)return;const b=w.branch[y],E=f==null?void 0:f[y];if((!E||E.type==="skip")&&p[1]===(b==null?void 0:b.loader)&&!Oe(_,h,u,g,(ie=b.universal)==null?void 0:ie.uses,r))return b;if(_=!0,(E==null?void 0:E.type)==="error")throw E;return ke({loader:p[1],url:n,params:r,route:a,parent:async()=>{var Ie;const Re={};for(let ce=0;ce{});const S=[];for(let p=0;pPromise.resolve({}),server_data_node:Se(o)}),c={node:await X(),loader:X,universal:null,server:null,data:null};return await te({url:n,params:a,branch:[s,c],status:e,error:t,route:null})}function Ae(e,t){if(!e||re(e,I))return;let n;try{n=C.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const r=Ze(n);for(const a of oe){const o=a.exec(r);if(o)return{id:e.pathname+e.search,invalidating:t,route:a,params:pt(o),url:e}}}function Ze(e){return ht(e.slice(I.length)||"/")}function Qe({url:e,type:t,intent:n,delta:r}){let a=!1;const o=rt(w,n,e,t);r!==void 0&&(o.navigation.delta=r);const i={...o.navigation,cancel:()=>{a=!0,o.reject(new Error("navigation cancelled"))}};return G||we.forEach(s=>s(i)),a?null:o}async function z({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=xe,block:u=xe}){const h=Ae(t,!1),g=Qe({url:t,type:e,delta:n==null?void 0:n.delta,intent:h});if(!g){u();return}const d=k,m=A;l(),G=!0,Q&&U.navigating.set(g.navigation),ee=c;let f=h&&await Xe(h);if(!f){if(re(t,I))return await $(t);f=await et(t,{id:null},await B(new ge(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=(h==null?void 0:h.url)||t,ee!==c)return g.reject(new Error("navigation aborted")),!1;if(f.type==="redirect")if(s>=20)f=await se({status:500,error:await B(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return We(new URL(f.location,t).href,{},s+1,c),!1;else f.props.page.status>=400&&await U.updated.check()&&await $(t);if(Be.length=0,be=!1,ye(d),ze(m),f.props.page.url.pathname!==t.pathname&&(t.pathname=f.props.page.url.pathname),i=n?n.state:i,!n){const p=o?0:1,y={[D]:k+=p,[H]:A+=p,[Fe]:i};(o?history.replaceState:history.pushState).call(history,y,"",t),o||Kt(k,A)}if(P=null,f.props.page.state=i,Q){w=f.state,f.props.page&&(f.props.page.url=t);const p=(await Promise.all(zt.map(y=>y(g.navigation)))).filter(y=>typeof y=="function");if(p.length>0){let y=function(){N=N.filter(b=>!p.includes(b))};p.push(y),N.push(...p)}Ee.$set(f.props),Ke=!0}else Je(f,pe);const{activeElement:_}=document;await lt();const v=n?n.scroll:a?_e():null;if(Ne){const p=t.hash&&document.getElementById(decodeURIComponent(t.hash.slice(1)));v?scrollTo(v.x,v.y):p?p.scrollIntoView():scrollTo(0,0)}const S=document.activeElement!==_&&document.activeElement!==document.body;!r&&!S&&tn(),Ne=!0,f.props.page&&(R=f.props.page),G=!1,e==="popstate"&&Ye(A),g.fulfil(void 0),N.forEach(p=>p(g.navigation)),U.navigating.set(null)}async function et(e,t,n,r){return e.origin===K&&e.pathname===location.pathname&&!ve?await se({status:r,error:n,url:e,route:t}):await $(e)}function Xt(){let e;L.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{r(i,2)},20)});function t(o){r(o.composedPath()[0],1)}L.addEventListener("mousedown",t),L.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(ue(i.target.href),n.unobserve(i.target))},{threshold:0});function r(o,i){const s=Me(o,L);if(!s)return;const{url:c,external:l,download:u}=de(s,I);if(l||u)return;const h=W(s);if(!h.reload)if(i<=h.preload_data){const g=Ae(c,!1);g&&Yt(g)}else i<=h.preload_code&&ue(c.pathname)}function a(){n.disconnect();for(const o of L.querySelectorAll("a")){const{url:i,external:s,download:c}=de(o,I);if(s||c)continue;const l=W(o);l.reload||(l.preload_code===Y.viewport&&n.observe(o),l.preload_code===Y.eager&&ue(i.pathname))}}N.push(a),a()}function B(e,t){if(e instanceof ne)return e.body;const n=J(e),r=Bt(e);return C.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function tt(e,t){ft(()=>(e.push(t),()=>{const n=e.indexOf(t);e.splice(n,1)}))}function cn(e){tt(N,e)}function ln(e){tt(we,e)}function Zt(e,t={}){return e=qe(e),e.origin!==K?Promise.reject(new Error("goto: invalid URL")):We(e,t,0)}function Qt(){var t;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let r=!1;if(Te(),!G){const a=rt(w,void 0,null,"leave"),o={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};we.forEach(i=>i(o))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Te()}),(t=navigator.connection)!=null&&t.saveData||Xt(),L.addEventListener("click",n=>{var g;if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=Me(n.composedPath()[0],L);if(!r)return;const{url:a,external:o,target:i,download:s}=de(r,I);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=W(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||s)return;if(o||c.reload){Qe({url:a,type:"link"})?G=!0:n.preventDefault();return}const[u,h]=a.href.split("#");if(h!==void 0&&u===le(location)){const[,d]=w.url.href.split("#");if(d===h){n.preventDefault(),h===""||h==="top"&&r.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(g=r.ownerDocument.getElementById(h))==null||g.scrollIntoView();return}if(V=!0,ye(k),e(a),!c.replace_state)return;V=!1}n.preventDefault(),z({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href})}),L.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||r.method)!=="get")return;const i=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(re(i,I))return;const s=n.target,c=W(s);if(c.reload)return;n.preventDefault(),n.stopPropagation();const l=new FormData(s),u=a==null?void 0:a.getAttribute("name");u&&l.append(u,(a==null?void 0:a.getAttribute("value"))??""),i.search=new URLSearchParams(l).toString(),z({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async n=>{var r;if((r=n.state)!=null&&r[D]){const a=n.state[D];if(ee={},a===k)return;const o=T[a],i=n.state[Fe]??{},s=new URL(n.state[Nt]??location.href),c=n.state[H],l=le(location)===le(w.url);if(c===A&&(Ke||l)){e(s),T[k]=_e(),o&&scrollTo(o.x,o.y),i!==R.state&&(R={...R,state:i},Ee.$set({page:R})),k=a;return}const h=a-k;await z({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{k=a,A=c},block:()=>{history.go(-h)},nav_token:ee})}else if(!V){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{V&&(V=!1,history.replaceState({...history.state,[D]:++k,[H]:A},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&U.navigating.set(null)});function e(n){w.url=n,U.page.set({...R,url:n}),U.page.notify()}}async function en(e,{status:t=200,error:n,node_ids:r,params:a,route:o,data:i,form:s}){ve=!0;const c=new URL(location.href);({params:a={},route:o={id:null}}=Ae(c,!1)||{});let l;try{const u=r.map(async(d,m)=>{const f=i[m];return f!=null&&f.uses&&(f.uses=at(f.uses)),ke({loader:C.nodes[d],url:c,params:a,route:o,parent:async()=>{const _={};for(let v=0;vd===o.id);if(g){const d=g.layouts;for(let m=0;mo?"1":"0").join(""));const r=await De(n.href);if(!r.ok){let o;throw(a=r.headers.get("content-type"))!=null&&a.includes("application/json")?o=await r.json():r.status===404?o="Not Found":r.status===500&&(o="Internal Error"),new ne(r.status,o)}return new Promise(async o=>{var h;const i=new Map,s=r.body.getReader(),c=new TextDecoder;function l(g){return Ft(g,{Promise:d=>new Promise((m,f)=>{i.set(d,{fulfil:m,reject:f})})})}let u="";for(;;){const{done:g,value:d}=await s.read();if(g&&!u)break;for(u+=!d&&u?` +import{v as F,a8 as ot,H as st,s as it,a1 as ct,a4 as lt,S as ft}from"./scheduler.pPC3woXQ.js";import{a as ut,b as I}from"./paths.yvZ-Br9O.js";import{H as ne,S as ge,R as je}from"./control.pJ1mnnAb.js";new URL("sveltekit-internal://");function dt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function ht(e){return e.split("%25").map(decodeURI).join("%25")}function pt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function le({href:e}){return e.split("#")[0]}const gt=["href","pathname","search","toString","toJSON"];function mt(e,t,n){const r=new URL(e);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return s=>(n(s),a[o](s));t();const i=Reflect.get(a,o);return typeof i=="function"?i.bind(a):i}}),enumerable:!0,configurable:!0});for(const a of gt)Object.defineProperty(r,a,{get(){return t(),e[a]},enumerable:!0,configurable:!0});return r}const _t="/__data.json",yt=".html__data.json";function wt(e){return e.endsWith(".html")?e.replace(/\.html$/,yt):e.replace(/\/$/,"")+_t}function vt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}function bt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r((e instanceof Request?e.method:(t==null?void 0:t.method)||"GET")!=="GET"&&q.delete(me(e)),De(e,t));const q=new Map;function Et(e,t){const n=me(e,t),r=document.querySelector(n);if(r!=null&&r.textContent){let{body:a,...o}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&q.set(n,{body:a,init:o,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=bt(a)),Promise.resolve(new Response(a,o))}return window.fetch(e,t)}function kt(e,t,n){if(q.size>0){const r=me(e,n),a=q.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return fe(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return fe(String.fromCharCode(...c.slice(2).split("-").map(f=>parseInt(f,16))));const u=St.exec(c),[,h,g,d,m]=u;return t.push({name:d,matcher:m,optional:!!h,rest:!!g,chained:g?l===1&&i[0]==="":!1}),g?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return fe(c)}).join("")}).join("")}/?$`),params:t}}function Rt(e){return!/^\([^)]+\)$/.test(e)}function It(e){return e.slice(1).split("/").filter(Rt)}function Lt(e,t,n){const r={},a=e.slice(1),o=a.filter(s=>s!==void 0);let i=0;for(let s=0;su).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const u=t[s+1],h=a[s+1];u&&!u.rest&&u.optional&&h&&c.chained&&(i=0),!u&&!h&&Object.keys(r).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function fe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Pt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([s,[c,l,u]])=>{const{pattern:h,params:g}=At(s),d={id:s,exec:m=>{const f=h.exec(m);if(f)return Lt(f,g,r)},errors:[1,...u||[]].map(m=>e[m]),layouts:[0,...l||[]].map(i),leaf:o(c)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[a.has(s),e[s]]}}function $e(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Le(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const O=[];function Ut(e,t){return{subscribe:ae(e,t).subscribe}}function ae(e,t=F){let n;const r=new Set;function a(s){if(it(e,s)&&(e=s,n)){const c=!O.length;for(const l of r)l[1](),O.push(l,e);if(c){for(let l=0;l{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:a,update:o,subscribe:i}}function on(e,t,n){const r=!Array.isArray(e),a=r?[e]:e;if(!a.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Ut(n,(i,s)=>{let c=!1;const l=[];let u=0,h=F;const g=()=>{if(u)return;h();const m=t(r?l[0]:l,i,s);o?i(m):h=ct(m)?m:F},d=a.map((m,f)=>ot(m,_=>{l[f]=_,u&=~(1<{u|=1<i)}function a(i){n=!1,t.set(i)}function o(i){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&i(s=c)})}return{notify:r,set:a,subscribe:o}}function Tt(){const{set:e,subscribe:t}=ae(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${ut}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==xt;return i&&(e(!0),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function re(e,t){return e.origin!==K||!e.pathname.startsWith(t)}const Ot=-1,jt=-2,Dt=-3,$t=-4,Ct=-5,Vt=-6;function Ft(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(o,i=!1){if(o===Ot)return;if(o===Dt)return NaN;if(o===$t)return 1/0;if(o===Ct)return-1/0;if(o===Vt)return-0;if(i)throw new Error("Invalid input");if(o in r)return r[o];const s=n[o];if(!s||typeof s!="object")r[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=t==null?void 0:t[c];if(l)return r[o]=l(a(s[1]));switch(c){case"Date":r[o]=new Date(s[1]);break;case"Set":const u=new Set;r[o]=u;for(let d=1;dt!=null)}const Mt="x-sveltekit-invalidated",Gt="x-sveltekit-trailing-slash";function J(e){return e instanceof ne||e instanceof ge?e.status:500}function Bt(e){return e instanceof ge?e.text:"Internal Error"}const T=$e(Ve)??{},M=$e(Ce)??{},U={url:Ue({}),page:Ue({}),navigating:ae(null),updated:Tt()};function ye(e){T[e]=_e()}function Kt(e,t){let n=e+1;for(;T[n];)delete T[n],n+=1;for(n=t+1;M[n];)delete M[n],n+=1}function $(e){return location.href=e.href,new Promise(()=>{})}function xe(){}let oe,he,X,L,pe,C;const Be=[],Z=[];let P=null;const we=[],zt=[];let N=[],w={branch:[],error:null,url:null},ve=!1,Q=!1,Ne=!0,G=!1,V=!1,Ke=!1,be=!1,Ee,k,A,R,ee;async function sn(e,t,n){var a,o;document.URL!==location.href&&(location.href=location.href),C=e,oe=Pt(e),L=document.documentElement,pe=t,he=e.nodes[0],X=e.nodes[1],he(),X(),k=(a=history.state)==null?void 0:a[D],A=(o=history.state)==null?void 0:o[H],k||(k=A=Date.now(),history.replaceState({...history.state,[D]:k,[H]:A},""));const r=T[k];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),n?await en(pe,n):Zt(location.href,{replaceState:!0}),Qt()}function ze(e){Z.some(t=>t==null?void 0:t.snapshot)&&(M[e]=Z.map(t=>{var n;return(n=t==null?void 0:t.snapshot)==null?void 0:n.capture()}))}function Ye(e){var t;(t=M[e])==null||t.forEach((n,r)=>{var a,o;(o=(a=Z[r])==null?void 0:a.snapshot)==null||o.restore(n)})}function Te(){ye(k),Le(Ve,T),ze(A),Le(Ce,M)}async function We(e,t,n,r){return z({type:"goto",url:qe(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(be=!0)}})}async function Yt(e){return P={id:e.id,promise:Xe(e).then(t=>(t.type==="loaded"&&t.state.error&&(P=null),t))},P.promise}async function ue(e){const t=oe.find(n=>n.exec(Ze(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n==null?void 0:n[1]()))}function Je(e,t){var a;w=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),R=e.props.page,Ee=new C.root({target:t,props:{...e.props,stores:U,components:Z},hydrate:!0}),Ye(A);const r={from:null,to:{params:w.params,route:{id:((a=w.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};N.forEach(o=>o(r)),Q=!0}async function te({url:e,params:t,branch:n,status:r,error:a,route:o,form:i}){let s="never";if(I&&(e.pathname===I||e.pathname===I+"/"))s="always";else for(const d of n)(d==null?void 0:d.slash)!==void 0&&(s=d.slash);e.pathname=dt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Ht(n).map(d=>d.node.component),page:R}};i!==void 0&&(c.props.form=i);let l={},u=!R,h=0;for(let d=0;d(s&&(c.route=!0),f[_])}),params:new Proxy(r,{get:(f,_)=>(s&&c.params.add(_),f[_])}),data:(o==null?void 0:o.data)??null,url:mt(n,()=>{s&&(c.url=!0)},f=>{s&&c.search_params.add(f)}),async fetch(f,_){let v;f instanceof Request?(v=f.url,_={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:f.headers,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,..._}):v=f;const S=new URL(v,n);return s&&d(S.href),S.origin===n.origin&&(v=S.href.slice(n.origin.length)),Q?kt(v,S.href,_):Et(v,_)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),t()},untrack(f){s=!1;try{return f()}finally{s=!0}}};i=await l.universal.load.call(null,m)??null}return{node:l,loader:e,server:o,universal:(h=l.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((g=l.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function Oe(e,t,n,r,a,o){if(be)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(o[i]!==w.params[i])return!0;for(const i of a.dependencies)if(Be.some(s=>s(new URL(i))))return!0;return!1}function Se(e,t){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?t??null:null}function Wt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),o=t.searchParams.getAll(r);a.every(i=>o.includes(i))&&o.every(i=>a.includes(i))&&n.delete(r)}return n}async function Xe({id:e,invalidating:t,url:n,params:r,route:a}){if((P==null?void 0:P.id)===e)return P.promise;const{errors:o,layouts:i,leaf:s}=a,c=[...i,s];o.forEach(p=>p==null?void 0:p().catch(()=>{})),c.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let l=null;const u=w.url?e!==w.url.pathname+w.url.search:!1,h=w.route?a.id!==w.route.id:!1,g=Wt(w.url,n);let d=!1;const m=c.map((p,y)=>{var x;const b=w.branch[y],E=!!(p!=null&&p[0])&&((b==null?void 0:b.loader)!==p[1]||Oe(d,h,u,g,(x=b.server)==null?void 0:x.uses,r));return E&&(d=!0),E});if(m.some(Boolean)){try{l=await nt(n,m)}catch(p){return se({status:J(p),error:await B(p,{url:n,params:r,route:{id:a.id}}),url:n,route:a})}if(l.type==="redirect")return l}const f=l==null?void 0:l.nodes;let _=!1;const v=c.map(async(p,y)=>{var ie;if(!p)return;const b=w.branch[y],E=f==null?void 0:f[y];if((!E||E.type==="skip")&&p[1]===(b==null?void 0:b.loader)&&!Oe(_,h,u,g,(ie=b.universal)==null?void 0:ie.uses,r))return b;if(_=!0,(E==null?void 0:E.type)==="error")throw E;return ke({loader:p[1],url:n,params:r,route:a,parent:async()=>{var Ie;const Re={};for(let ce=0;ce{});const S=[];for(let p=0;pPromise.resolve({}),server_data_node:Se(o)}),c={node:await X(),loader:X,universal:null,server:null,data:null};return await te({url:n,params:a,branch:[s,c],status:e,error:t,route:null})}function Ae(e,t){if(!e||re(e,I))return;let n;try{n=C.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const r=Ze(n);for(const a of oe){const o=a.exec(r);if(o)return{id:e.pathname+e.search,invalidating:t,route:a,params:pt(o),url:e}}}function Ze(e){return ht(e.slice(I.length)||"/")}function Qe({url:e,type:t,intent:n,delta:r}){let a=!1;const o=rt(w,n,e,t);r!==void 0&&(o.navigation.delta=r);const i={...o.navigation,cancel:()=>{a=!0,o.reject(new Error("navigation cancelled"))}};return G||we.forEach(s=>s(i)),a?null:o}async function z({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=xe,block:u=xe}){const h=Ae(t,!1),g=Qe({url:t,type:e,delta:n==null?void 0:n.delta,intent:h});if(!g){u();return}const d=k,m=A;l(),G=!0,Q&&U.navigating.set(g.navigation),ee=c;let f=h&&await Xe(h);if(!f){if(re(t,I))return await $(t);f=await et(t,{id:null},await B(new ge(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=(h==null?void 0:h.url)||t,ee!==c)return g.reject(new Error("navigation aborted")),!1;if(f.type==="redirect")if(s>=20)f=await se({status:500,error:await B(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return We(new URL(f.location,t).href,{},s+1,c),!1;else f.props.page.status>=400&&await U.updated.check()&&await $(t);if(Be.length=0,be=!1,ye(d),ze(m),f.props.page.url.pathname!==t.pathname&&(t.pathname=f.props.page.url.pathname),i=n?n.state:i,!n){const p=o?0:1,y={[D]:k+=p,[H]:A+=p,[Fe]:i};(o?history.replaceState:history.pushState).call(history,y,"",t),o||Kt(k,A)}if(P=null,f.props.page.state=i,Q){w=f.state,f.props.page&&(f.props.page.url=t);const p=(await Promise.all(zt.map(y=>y(g.navigation)))).filter(y=>typeof y=="function");if(p.length>0){let y=function(){N=N.filter(b=>!p.includes(b))};p.push(y),N.push(...p)}Ee.$set(f.props),Ke=!0}else Je(f,pe);const{activeElement:_}=document;await lt();const v=n?n.scroll:a?_e():null;if(Ne){const p=t.hash&&document.getElementById(decodeURIComponent(t.hash.slice(1)));v?scrollTo(v.x,v.y):p?p.scrollIntoView():scrollTo(0,0)}const S=document.activeElement!==_&&document.activeElement!==document.body;!r&&!S&&tn(),Ne=!0,f.props.page&&(R=f.props.page),G=!1,e==="popstate"&&Ye(A),g.fulfil(void 0),N.forEach(p=>p(g.navigation)),U.navigating.set(null)}async function et(e,t,n,r){return e.origin===K&&e.pathname===location.pathname&&!ve?await se({status:r,error:n,url:e,route:t}):await $(e)}function Xt(){let e;L.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{r(i,2)},20)});function t(o){r(o.composedPath()[0],1)}L.addEventListener("mousedown",t),L.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(ue(i.target.href),n.unobserve(i.target))},{threshold:0});function r(o,i){const s=Me(o,L);if(!s)return;const{url:c,external:l,download:u}=de(s,I);if(l||u)return;const h=W(s);if(!h.reload)if(i<=h.preload_data){const g=Ae(c,!1);g&&Yt(g)}else i<=h.preload_code&&ue(c.pathname)}function a(){n.disconnect();for(const o of L.querySelectorAll("a")){const{url:i,external:s,download:c}=de(o,I);if(s||c)continue;const l=W(o);l.reload||(l.preload_code===Y.viewport&&n.observe(o),l.preload_code===Y.eager&&ue(i.pathname))}}N.push(a),a()}function B(e,t){if(e instanceof ne)return e.body;const n=J(e),r=Bt(e);return C.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function tt(e,t){ft(()=>(e.push(t),()=>{const n=e.indexOf(t);e.splice(n,1)}))}function cn(e){tt(N,e)}function ln(e){tt(we,e)}function Zt(e,t={}){return e=qe(e),e.origin!==K?Promise.reject(new Error("goto: invalid URL")):We(e,t,0)}function Qt(){var t;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let r=!1;if(Te(),!G){const a=rt(w,void 0,null,"leave"),o={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};we.forEach(i=>i(o))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Te()}),(t=navigator.connection)!=null&&t.saveData||Xt(),L.addEventListener("click",n=>{var g;if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=Me(n.composedPath()[0],L);if(!r)return;const{url:a,external:o,target:i,download:s}=de(r,I);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=W(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||s)return;if(o||c.reload){Qe({url:a,type:"link"})?G=!0:n.preventDefault();return}const[u,h]=a.href.split("#");if(h!==void 0&&u===le(location)){const[,d]=w.url.href.split("#");if(d===h){n.preventDefault(),h===""||h==="top"&&r.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(g=r.ownerDocument.getElementById(h))==null||g.scrollIntoView();return}if(V=!0,ye(k),e(a),!c.replace_state)return;V=!1}n.preventDefault(),z({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href})}),L.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||r.method)!=="get")return;const i=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(re(i,I))return;const s=n.target,c=W(s);if(c.reload)return;n.preventDefault(),n.stopPropagation();const l=new FormData(s),u=a==null?void 0:a.getAttribute("name");u&&l.append(u,(a==null?void 0:a.getAttribute("value"))??""),i.search=new URLSearchParams(l).toString(),z({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async n=>{var r;if((r=n.state)!=null&&r[D]){const a=n.state[D];if(ee={},a===k)return;const o=T[a],i=n.state[Fe]??{},s=new URL(n.state[Nt]??location.href),c=n.state[H],l=le(location)===le(w.url);if(c===A&&(Ke||l)){e(s),T[k]=_e(),o&&scrollTo(o.x,o.y),i!==R.state&&(R={...R,state:i},Ee.$set({page:R})),k=a;return}const h=a-k;await z({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{k=a,A=c},block:()=>{history.go(-h)},nav_token:ee})}else if(!V){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{V&&(V=!1,history.replaceState({...history.state,[D]:++k,[H]:A},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&U.navigating.set(null)});function e(n){w.url=n,U.page.set({...R,url:n}),U.page.notify()}}async function en(e,{status:t=200,error:n,node_ids:r,params:a,route:o,data:i,form:s}){ve=!0;const c=new URL(location.href);({params:a={},route:o={id:null}}=Ae(c,!1)||{});let l;try{const u=r.map(async(d,m)=>{const f=i[m];return f!=null&&f.uses&&(f.uses=at(f.uses)),ke({loader:C.nodes[d],url:c,params:a,route:o,parent:async()=>{const _={};for(let v=0;vd===o.id);if(g){const d=g.layouts;for(let m=0;mo?"1":"0").join(""));const r=await De(n.href);if(!r.ok){let o;throw(a=r.headers.get("content-type"))!=null&&a.includes("application/json")?o=await r.json():r.status===404?o="Not Found":r.status===500&&(o="Internal Error"),new ne(r.status,o)}return new Promise(async o=>{var h;const i=new Map,s=r.body.getReader(),c=new TextDecoder;function l(g){return Ft(g,{Promise:d=>new Promise((m,f)=>{i.set(d,{fulfil:m,reject:f})})})}let u="";for(;;){const{done:g,value:d}=await s.read();if(g&&!u)break;for(u+=!d&&u?` `:c.decode(d,{stream:!0});;){const m=u.indexOf(` `);if(m===-1)break;const f=JSON.parse(u.slice(0,m));if(u=u.slice(m+1),f.type==="redirect")return o(f);if(f.type==="data")(h=f.nodes)==null||h.forEach(_=>{(_==null?void 0:_.type)==="data"&&(_.uses=at(_.uses),_.data=l(_.data))}),o(f);else if(f.type==="chunk"){const{id:_,data:v,error:S}=f,p=i.get(_);i.delete(_),S?p.reject(l(S)):p.fulfil(l(v))}}}})}function at(e){return{dependencies:new Set((e==null?void 0:e.dependencies)??[]),params:new Set((e==null?void 0:e.params)??[]),parent:!!(e!=null&&e.parent),route:!!(e!=null&&e.route),url:!!(e!=null&&e.url),search_params:new Set((e==null?void 0:e.search_params)??[])}}function tn(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const t=document.body,n=t.getAttribute("tabindex");t.tabIndex=-1,t.focus({preventScroll:!0,focusVisible:!1}),n!==null?t.setAttribute("tabindex",n):t.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let o=0;o{if(r.rangeCount===a.length){for(let o=0;o{a=u,o=h});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:((c=e.route)==null?void 0:c.id)??null},url:e.url},to:n&&{params:(t==null?void 0:t.params)??null,route:{id:((l=t==null?void 0:t.route)==null?void 0:l.id)??null},url:n},willUnload:!t,type:r,complete:i},fulfil:a,reject:o}}export{cn as a,ln as b,sn as c,on as d,Zt as g,Ut as r,U as s,ae as w}; diff --git a/ui/assets/local/_app/immutable/chunks/error.dSj2DgE-.js b/ui/assets/local/_app/immutable/chunks/error.rf0wlwRx.js similarity index 89% rename from ui/assets/local/_app/immutable/chunks/error.dSj2DgE-.js rename to ui/assets/local/_app/immutable/chunks/error.rf0wlwRx.js index 2a68fd4bab..ed856c5d74 100644 --- a/ui/assets/local/_app/immutable/chunks/error.dSj2DgE-.js +++ b/ui/assets/local/_app/immutable/chunks/error.rf0wlwRx.js @@ -1,4 +1,4 @@ -import{s as D,h,t as C,b as y,j as p,k as $,l as k,f as _,d as N,o as U,m,i as B,n,p as H,q as I,r as z}from"./scheduler.1T9hOnFr.js";import{S as A,i as F,c as G,a as J,m as K,t as M,b as Q,d as R}from"./index.cVovwi_s.js";import{a as V}from"./entry.1BQh90wu.js";import{L as W}from"./link.S6PxEIxj.js";import{h as X}from"./has.Hk4nWl3x.js";function Y(l){let t;return{c(){t=C("jump on our Slack Channel")},l(e){t=k(e,"jump on our Slack Channel")},m(e,a){B(e,t,a)},d(e){e&&_(t)}}}function Z(l){let t,e,a,d,i,E="Uh oh. There's an error.",x,o,T,w,c,u,P="Try a refresh",S,f,j,v,q,L;return f=new W({props:{newTab:!0,href:"https://temporal.io/slack",$$slots:{default:[Y]},$$scope:{ctx:l}}}),{c(){t=h("section"),e=h("h1"),a=C(l[0]),d=y(),i=h("p"),i.textContent=E,x=y(),o=h("p"),T=C(l[1]),w=y(),c=h("p"),u=h("button"),u.textContent=P,S=C(` +import{s as D,h,t as C,b as y,j as p,k as $,l as k,f as _,d as N,o as U,m,i as B,n,p as H,q as I,r as z}from"./scheduler.pPC3woXQ.js";import{S as A,i as F,c as G,a as J,m as K,t as M,b as Q,d as R}from"./index.Z3Qqxacm.js";import{a as V}from"./entry.6mxJxwSM.js";import{L as W}from"./link.k1D2UsV0.js";import{h as X}from"./has.Hk4nWl3x.js";function Y(l){let t;return{c(){t=C("jump on our Slack Channel")},l(e){t=k(e,"jump on our Slack Channel")},m(e,a){B(e,t,a)},d(e){e&&_(t)}}}function Z(l){let t,e,a,d,i,E="Uh oh. There's an error.",x,o,T,w,c,u,P="Try a refresh",S,f,j,v,q,L;return f=new W({props:{newTab:!0,href:"https://temporal.io/slack",$$slots:{default:[Y]},$$scope:{ctx:l}}}),{c(){t=h("section"),e=h("h1"),a=C(l[0]),d=y(),i=h("p"),i.textContent=E,x=y(),o=h("p"),T=C(l[1]),w=y(),c=h("p"),u=h("button"),u.textContent=P,S=C(` or `),G(f.$$.fragment),j=C("."),this.h()},l(r){t=p(r,"SECTION",{"aria-roledescription":!0,class:!0,role:!0});var s=$(t);e=p(s,"H1",{class:!0});var g=$(e);a=k(g,l[0]),g.forEach(_),d=N(s),i=p(s,"P",{class:!0,"data-svelte-h":!0}),U(i)!=="svelte-h7qijb"&&(i.textContent=E),x=N(s),o=p(s,"P",{class:!0});var O=$(o);T=k(O,l[1]),O.forEach(_),w=N(s),c=p(s,"P",{class:!0});var b=$(c);u=p(b,"BUTTON",{class:!0,tabindex:!0,"data-svelte-h":!0}),U(u)!=="svelte-kruuqs"&&(u.textContent=P),S=k(b,` or diff --git a/ui/assets/local/_app/immutable/chunks/event-history-file-import.hhhKN6BT.js b/ui/assets/local/_app/immutable/chunks/event-history-file-import.hv2--BEI.js similarity index 73% rename from ui/assets/local/_app/immutable/chunks/event-history-file-import.hhhKN6BT.js rename to ui/assets/local/_app/immutable/chunks/event-history-file-import.hv2--BEI.js index 22efa93309..c7a38fdf56 100644 --- a/ui/assets/local/_app/immutable/chunks/event-history-file-import.hhhKN6BT.js +++ b/ui/assets/local/_app/immutable/chunks/event-history-file-import.hv2--BEI.js @@ -1 +1 @@ -import{s as L,h as y,b,j as E,k as N,d as w,f as g,m as d,i as C,n as _,p as U,c as j,t as G,l as H,v as T}from"./scheduler.1T9hOnFr.js";import{S as q,i as D,c as x,a as I,m as S,t as F,b as k,d as A}from"./index.cVovwi_s.js";import{g as P}from"./entry.1BQh90wu.js";import{B as R}from"./button.y7LhNtq8.js";import{L as V}from"./label.ujgKMPb9.js";import{t as u}from"./translate.HrioCK44.js";import{g as W}from"./index.45yCe-rq.js";import{t as z}from"./index.5wZ4nYFD.js";import{i as J,a as K}from"./import-events.w1hCqdFU.js";import{l as M}from"./namespaces.ZMl2XpMD.js";import{t as B}from"./toaster.IevlZuOP.js";import{p as O}from"./parse-with-big-int.e3oI4SEy.js";import{r as Q}from"./route-for.R0Qj5GxB.js";function X(m){let e=u("common.import")+"",o;return{c(){o=G(e)},l(a){o=H(a,e)},m(a,r){C(a,o,r)},p:T,d(a){a&&g(o)}}}function Y(m){let e,o,a,r,p,i,f,n,c;return o=new V({props:{hidden:!0,for:"import-event-history-file-upload",label:u("events.import-event-history-file-upload")}}),i=new R({props:{leadingIcon:"file-upload",disabled:!m[0],$$slots:{default:[X]},$$scope:{ctx:m}}}),i.$on("click",m[2]),{c(){e=y("div"),x(o.$$.fragment),a=b(),r=y("input"),p=b(),x(i.$$.fragment),this.h()},l(t){e=E(t,"DIV",{class:!0});var s=N(e);I(o.$$.fragment,s),a=w(s),r=E(s,"INPUT",{id:!0,class:!0,type:!0,accept:!0}),p=w(s),I(i.$$.fragment,s),s.forEach(g),this.h()},h(){d(r,"id","import-event-history-file-upload"),d(r,"class","import-input block rounded-md border border-slate-200 p-2"),d(r,"type","file"),d(r,"accept",".json"),d(e,"class","flex flex-col items-start gap-2 md:flex-row md:items-center")},m(t,s){C(t,e,s),S(o,e,null),_(e,a),_(e,r),_(e,p),S(i,e,null),f=!0,n||(c=U(r,"change",m[1]),n=!0)},p(t,[s]){const l={};s&1&&(l.disabled=!t[0]),s&32&&(l.$$scope={dirty:s,ctx:t}),i.$set(l)},i(t){f||(F(o.$$.fragment,t),F(i.$$.fragment,t),f=!0)},o(t){k(o.$$.fragment,t),k(i.$$.fragment,t),f=!1},d(t){t&&g(e),A(o),A(i),n=!1,c()}}}function Z(m,e,o){let a;j(m,M,n=>o(4,a=n));let r,p=!1;return[p,async n=>{var c;const t=n.target,s=(c=t==null?void 0:t.files)===null||c===void 0?void 0:c[0],l=new FileReader;s&&(l.readAsText(s),l.onload=()=>{var v,h;try{const $=(h=(v=l==null?void 0:l.result)===null||v===void 0?void 0:v.toString())!==null&&h!==void 0?h:"";r=O($),o(0,p=!0)}catch{B.push({variant:"error",message:u("events.event-history-load-error")}),o(0,p=!1)}})},async()=>{try{const n=await z(Array.isArray(r)?r:r==null?void 0:r.events),c=W(n);J.set(n),K.set(c),o(0,p=!1);const t=Q(a,"feed");P(t)}catch(n){console.error(n),B.push({variant:"error",message:u("events.event-history-import-error")})}}]}class dt extends q{constructor(e){super(),D(this,e,Z,Y,L,{})}}export{dt as E}; +import{s as L,h as y,b,j as E,k as N,d as w,f as g,m as d,i as C,n as _,p as U,c as j,t as G,l as H,v as T}from"./scheduler.pPC3woXQ.js";import{S as q,i as D,c as x,a as I,m as S,t as F,b as k,d as A}from"./index.Z3Qqxacm.js";import{g as P}from"./entry.6mxJxwSM.js";import{B as R}from"./button.pYfDLC93.js";import{L as V}from"./label.zXYhHpIA.js";import{t as u}from"./translate.HrioCK44.js";import{g as W}from"./index.fCt83tdf.js";import{t as z}from"./index.xcFFIXD-.js";import{i as J,a as K}from"./import-events.0FiC_E_5.js";import{l as M}from"./namespaces.2VLJyoy1.js";import{t as B}from"./toaster.pceGNaxq.js";import{p as O}from"./parse-with-big-int.e3oI4SEy.js";import{r as Q}from"./route-for.Gs4LHMCg.js";function X(m){let e=u("common.import")+"",o;return{c(){o=G(e)},l(a){o=H(a,e)},m(a,r){C(a,o,r)},p:T,d(a){a&&g(o)}}}function Y(m){let e,o,a,r,p,i,f,n,c;return o=new V({props:{hidden:!0,for:"import-event-history-file-upload",label:u("events.import-event-history-file-upload")}}),i=new R({props:{leadingIcon:"file-upload",disabled:!m[0],$$slots:{default:[X]},$$scope:{ctx:m}}}),i.$on("click",m[2]),{c(){e=y("div"),x(o.$$.fragment),a=b(),r=y("input"),p=b(),x(i.$$.fragment),this.h()},l(t){e=E(t,"DIV",{class:!0});var s=N(e);I(o.$$.fragment,s),a=w(s),r=E(s,"INPUT",{id:!0,class:!0,type:!0,accept:!0}),p=w(s),I(i.$$.fragment,s),s.forEach(g),this.h()},h(){d(r,"id","import-event-history-file-upload"),d(r,"class","import-input block rounded-md border border-slate-200 p-2"),d(r,"type","file"),d(r,"accept",".json"),d(e,"class","flex flex-col items-start gap-2 md:flex-row md:items-center")},m(t,s){C(t,e,s),S(o,e,null),_(e,a),_(e,r),_(e,p),S(i,e,null),f=!0,n||(c=U(r,"change",m[1]),n=!0)},p(t,[s]){const l={};s&1&&(l.disabled=!t[0]),s&32&&(l.$$scope={dirty:s,ctx:t}),i.$set(l)},i(t){f||(F(o.$$.fragment,t),F(i.$$.fragment,t),f=!0)},o(t){k(o.$$.fragment,t),k(i.$$.fragment,t),f=!1},d(t){t&&g(e),A(o),A(i),n=!1,c()}}}function Z(m,e,o){let a;j(m,M,n=>o(4,a=n));let r,p=!1;return[p,async n=>{var c;const t=n.target,s=(c=t==null?void 0:t.files)===null||c===void 0?void 0:c[0],l=new FileReader;s&&(l.readAsText(s),l.onload=()=>{var v,h;try{const $=(h=(v=l==null?void 0:l.result)===null||v===void 0?void 0:v.toString())!==null&&h!==void 0?h:"";r=O($),o(0,p=!0)}catch{B.push({variant:"error",message:u("events.event-history-load-error")}),o(0,p=!1)}})},async()=>{try{const n=await z(Array.isArray(r)?r:r==null?void 0:r.events),c=W(n);J.set(n),K.set(c),o(0,p=!1);const t=Q(a,"feed");P(t)}catch(n){console.error(n),B.push({variant:"error",message:u("events.event-history-import-error")})}}]}class dt extends q{constructor(e){super(),D(this,e,Z,Y,L,{})}}export{dt as E}; diff --git a/ui/assets/local/_app/immutable/chunks/event-history-timeline.zHMn8g0T.js b/ui/assets/local/_app/immutable/chunks/event-history-timeline.Ja_h6nbw.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/event-history-timeline.zHMn8g0T.js rename to ui/assets/local/_app/immutable/chunks/event-history-timeline.Ja_h6nbw.js index 14687169d8..8081af18e3 100644 --- a/ui/assets/local/_app/immutable/chunks/event-history-timeline.zHMn8g0T.js +++ b/ui/assets/local/_app/immutable/chunks/event-history-timeline.Ja_h6nbw.js @@ -1,4 +1,4 @@ -import{D as Ir,s as U3,h as _o,b as $d,j as wo,k as xo,f as $r,d as Id,m as So,i as zn,n as ko,c as wn,S as W3,M as V3,t as Wf,l as Vf}from"./scheduler.1T9hOnFr.js";import{S as q3,i as X3,c as Ba,a as Ga,m as za,t as yi,g as K3,b as zi,e as Z3,d as Ua}from"./index.cVovwi_s.js";import{c as ve,a as Q3,g as J3}from"./_commonjsHelpers.4gQjN7DL.js";import{p as eT,I as uv}from"./icon.w8eknFMq.js";import{p as tT}from"./stores.6oDSidma.js";import{H as rT}from"./heart-beat-indicator.MHmdZ7Da.js";import{L as iT}from"./link.S6PxEIxj.js";import{L as nT}from"./loading.IcbT-3mP.js";import{T as aT,a as ec}from"./toggle-buttons.T_Q-cqgU.js";import{g as sT,t as oT}from"./index.45yCe-rq.js";import{C as uT}from"./get-event-categorization.if3aIlTT.js";import{b as lT,a as cT}from"./filters.59IbP5Ow.js";import{f as ts,r as rs,t as Un,j as dT}from"./time-format.HFIwVHuT.js";import{w as fT,b as hT}from"./workflow-run.kUHgnSkK.js";import{c as pT}from"./format-camel-case.z6e2GZpK.js";import{j as vT,i as tc}from"./is-event-type.Ut7dN4k9.js";import{s as mT}from"./parse-with-big-int.e3oI4SEy.js";import{E as gT}from"./route-for.R0Qj5GxB.js";import{r as Sy,e as ky,q as Ty}from"./format-time.PmxHXK_V.js";function yT(e){Sy(1,arguments);var r=ky(e);return r.setSeconds(0,0),r}function bT(e){Sy(1,arguments);var r=ky(e);return r.setSeconds(59,999),r}var Ey={},Xu={},qf={},is={},Xf={};Object.defineProperty(Xf,"__esModule",{value:!0});Xf.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(e){return e.charCodeAt(0)}));var Kf={};Object.defineProperty(Kf,"__esModule",{value:!0});Kf.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(e){return e.charCodeAt(0)}));var Pd={};(function(e){var r;Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.fromCodePoint=void 0;var t=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);e.fromCodePoint=(r=String.fromCodePoint)!==null&&r!==void 0?r:function(s){var o="";return s>65535&&(s-=65536,o+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),o+=String.fromCharCode(s),o};function n(s){var o;return s>=55296&&s<=57343||s>1114111?65533:(o=t.get(s))!==null&&o!==void 0?o:s}e.replaceCodePoint=n;function a(s){return(0,e.fromCodePoint)(n(s))}e.default=a})(Pd);(function(e){var r=ve&&ve.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTML=e.determineBranch=e.BinTrieFlags=e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var t=r(Xf);e.htmlDecodeTree=t.default;var n=r(Kf);e.xmlDecodeTree=n.default;var a=r(Pd);e.decodeCodePoint=a.default;var s=Pd;Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return s.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return s.fromCodePoint}});var o;(function(w){w[w.NUM=35]="NUM",w[w.SEMI=59]="SEMI",w[w.ZERO=48]="ZERO",w[w.NINE=57]="NINE",w[w.LOWER_A=97]="LOWER_A",w[w.LOWER_F=102]="LOWER_F",w[w.LOWER_X=120]="LOWER_X",w[w.To_LOWER_BIT=32]="To_LOWER_BIT"})(o||(o={}));var u;(function(w){w[w.VALUE_LENGTH=49152]="VALUE_LENGTH",w[w.BRANCH_LENGTH=16256]="BRANCH_LENGTH",w[w.JUMP_TABLE=127]="JUMP_TABLE"})(u=e.BinTrieFlags||(e.BinTrieFlags={}));function l(w){return function(k,E){for(var O="",D=0,M=0;(M=k.indexOf("&",M))>=0;){if(O+=k.slice(D,M),D=M,M+=1,k.charCodeAt(M)===o.NUM){var P=M+1,R=10,C=k.charCodeAt(P);(C|o.To_LOWER_BIT)===o.LOWER_X&&(R=16,M+=1,P+=1);do C=k.charCodeAt(++M);while(C>=o.ZERO&&C<=o.NINE||R===16&&(C|o.To_LOWER_BIT)>=o.LOWER_A&&(C|o.To_LOWER_BIT)<=o.LOWER_F);if(P!==M){var G=k.substring(P,M),z=parseInt(G,R);if(k.charCodeAt(M)===o.SEMI)M+=1;else if(E)continue;O+=(0,a.default)(z),D=M}continue}for(var N=0,L=1,W=0,re=w[W];M>14)-1;if(j===0)break;W+=j}}if(N!==0){var j=(w[N]&u.VALUE_LENGTH)>>14;O+=j===1?String.fromCharCode(w[N]&~u.VALUE_LENGTH):j===2?String.fromCharCode(w[N+1]):String.fromCharCode(w[N+1],w[N+2]),D=M-L+1}}return O+k.slice(D)}}function c(w,_,k,E){var O=(_&u.BRANCH_LENGTH)>>7,D=_&u.JUMP_TABLE;if(O===0)return D!==0&&E===D?k:-1;if(D){var M=E-D;return M<0||M>=O?-1:w[k+M]-1}for(var P=k,R=P+O-1;P<=R;){var C=P+R>>>1,G=w[C];if(GE)R=C-1;else return w[C+O]}return-1}e.determineBranch=c;var f=l(t.default),m=l(n.default);function h(w){return f(w,!1)}e.decodeHTML=h;function v(w){return f(w,!0)}e.decodeHTMLStrict=v;function y(w){return m(w,!0)}e.decodeXML=y})(is);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuoteType=void 0;var r=is,t;(function(h){h[h.Tab=9]="Tab",h[h.NewLine=10]="NewLine",h[h.FormFeed=12]="FormFeed",h[h.CarriageReturn=13]="CarriageReturn",h[h.Space=32]="Space",h[h.ExclamationMark=33]="ExclamationMark",h[h.Num=35]="Num",h[h.Amp=38]="Amp",h[h.SingleQuote=39]="SingleQuote",h[h.DoubleQuote=34]="DoubleQuote",h[h.Dash=45]="Dash",h[h.Slash=47]="Slash",h[h.Zero=48]="Zero",h[h.Nine=57]="Nine",h[h.Semi=59]="Semi",h[h.Lt=60]="Lt",h[h.Eq=61]="Eq",h[h.Gt=62]="Gt",h[h.Questionmark=63]="Questionmark",h[h.UpperA=65]="UpperA",h[h.LowerA=97]="LowerA",h[h.UpperF=70]="UpperF",h[h.LowerF=102]="LowerF",h[h.UpperZ=90]="UpperZ",h[h.LowerZ=122]="LowerZ",h[h.LowerX=120]="LowerX",h[h.OpeningSquareBracket=91]="OpeningSquareBracket"})(t||(t={}));var n;(function(h){h[h.Text=1]="Text",h[h.BeforeTagName=2]="BeforeTagName",h[h.InTagName=3]="InTagName",h[h.InSelfClosingTag=4]="InSelfClosingTag",h[h.BeforeClosingTagName=5]="BeforeClosingTagName",h[h.InClosingTagName=6]="InClosingTagName",h[h.AfterClosingTagName=7]="AfterClosingTagName",h[h.BeforeAttributeName=8]="BeforeAttributeName",h[h.InAttributeName=9]="InAttributeName",h[h.AfterAttributeName=10]="AfterAttributeName",h[h.BeforeAttributeValue=11]="BeforeAttributeValue",h[h.InAttributeValueDq=12]="InAttributeValueDq",h[h.InAttributeValueSq=13]="InAttributeValueSq",h[h.InAttributeValueNq=14]="InAttributeValueNq",h[h.BeforeDeclaration=15]="BeforeDeclaration",h[h.InDeclaration=16]="InDeclaration",h[h.InProcessingInstruction=17]="InProcessingInstruction",h[h.BeforeComment=18]="BeforeComment",h[h.CDATASequence=19]="CDATASequence",h[h.InSpecialComment=20]="InSpecialComment",h[h.InCommentLike=21]="InCommentLike",h[h.BeforeSpecialS=22]="BeforeSpecialS",h[h.SpecialStartSequence=23]="SpecialStartSequence",h[h.InSpecialTag=24]="InSpecialTag",h[h.BeforeEntity=25]="BeforeEntity",h[h.BeforeNumericEntity=26]="BeforeNumericEntity",h[h.InNamedEntity=27]="InNamedEntity",h[h.InNumericEntity=28]="InNumericEntity",h[h.InHexEntity=29]="InHexEntity"})(n||(n={}));function a(h){return h===t.Space||h===t.NewLine||h===t.Tab||h===t.FormFeed||h===t.CarriageReturn}function s(h){return h===t.Slash||h===t.Gt||a(h)}function o(h){return h>=t.Zero&&h<=t.Nine}function u(h){return h>=t.LowerA&&h<=t.LowerZ||h>=t.UpperA&&h<=t.UpperZ}function l(h){return h>=t.UpperA&&h<=t.UpperF||h>=t.LowerA&&h<=t.LowerF}var c;(function(h){h[h.NoValue=0]="NoValue",h[h.Unquoted=1]="Unquoted",h[h.Single=2]="Single",h[h.Double=3]="Double"})(c=e.QuoteType||(e.QuoteType={}));var f={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},m=function(){function h(v,y){var w=v.xmlMode,_=w===void 0?!1:w,k=v.decodeEntities,E=k===void 0?!0:k;this.cbs=y,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=_,this.decodeEntities=E,this.entityTrie=_?r.xmlDecodeTree:r.htmlDecodeTree}return h.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},h.prototype.write=function(v){this.offset+=this.buffer.length,this.buffer=v,this.parse()},h.prototype.end=function(){this.running&&this.finish()},h.prototype.pause=function(){this.running=!1},h.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&v===t.Amp&&(this.state=n.BeforeEntity)},h.prototype.stateSpecialStartSequence=function(v){var y=this.sequenceIndex===this.currentSequence.length,w=y?s(v):(v|32)===this.currentSequence[this.sequenceIndex];if(!w)this.isSpecial=!1;else if(!y){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(v)},h.prototype.stateInSpecialTag=function(v){if(this.sequenceIndex===this.currentSequence.length){if(v===t.Gt||a(v)){var y=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&v!==t.Semi)this.trieIndex+=w;else{var _=this.index-this.entityExcess+1;_>this.sectionStart&&this.emitPartial(this.sectionStart,_),this.entityResult=this.trieIndex,this.trieIndex+=w,this.entityExcess=0,this.sectionStart=this.index+1,w===0&&this.emitNamedEntity()}}},h.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var v=(this.entityTrie[this.entityResult]&r.BinTrieFlags.VALUE_LENGTH)>>14;switch(v){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~r.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},h.prototype.stateBeforeNumericEntity=function(v){(v|32)===t.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(v))},h.prototype.emitNumericEntity=function(v){var y=this.index-this.entityExcess-1,w=y+2+ +(this.state===n.InHexEntity);w!==this.index&&(y>this.sectionStart&&this.emitPartial(this.sectionStart,y),this.sectionStart=this.index+Number(v),this.emitCodePoint((0,r.replaceCodePoint)(this.entityResult))),this.state=this.baseState},h.prototype.stateInNumericEntity=function(v){v===t.Semi?this.emitNumericEntity(!0):o(v)?(this.entityResult=this.entityResult*10+(v-t.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},h.prototype.stateInHexEntity=function(v){v===t.Semi?this.emitNumericEntity(!0):o(v)?(this.entityResult=this.entityResult*16+(v-t.Zero),this.entityExcess++):l(v)?(this.entityResult=this.entityResult*16+((v|32)-t.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},h.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},h.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},h.prototype.shouldContinue=function(){return this.index0&&o.has(this.stack[this.stack.length-1]);){var u=this.stack.pop();(n=(t=this.cbs).onclosetag)===null||n===void 0||n.call(t,u,!0)}this.isVoidElement(r)||(this.stack.push(r),hv.has(r)?this.foreignContext.push(!0):pv.has(r)&&this.foreignContext.push(!1)),(s=(a=this.cbs).onopentagname)===null||s===void 0||s.call(a,r),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(r){var t,n;this.startIndex=this.openTagStart,this.attribs&&((n=(t=this.cbs).onopentag)===null||n===void 0||n.call(t,this.tagname,this.attribs,r),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(r){this.endIndex=r,this.endOpenTag(!1),this.startIndex=r+1},e.prototype.onclosetag=function(r,t){var n,a,s,o,u,l;this.endIndex=t;var c=this.getSlice(r,t);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),(hv.has(c)||pv.has(c))&&this.foreignContext.pop(),this.isVoidElement(c))!this.options.xmlMode&&c==="br"&&((a=(n=this.cbs).onopentagname)===null||a===void 0||a.call(n,"br"),(o=(s=this.cbs).onopentag)===null||o===void 0||o.call(s,"br",{},!0),(l=(u=this.cbs).onclosetag)===null||l===void 0||l.call(u,"br",!1));else{var f=this.stack.lastIndexOf(c);if(f!==-1)if(this.cbs.onclosetag)for(var m=this.stack.length-f;m--;)this.cbs.onclosetag(this.stack.pop(),m!==0);else this.stack.length=f;else!this.options.xmlMode&&c==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1},e.prototype.onselfclosingtag=function(r){this.endIndex=r,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=r+1):this.onopentagend(r)},e.prototype.closeCurrentTag=function(r){var t,n,a=this.tagname;this.endOpenTag(r),this.stack[this.stack.length-1]===a&&((n=(t=this.cbs).onclosetag)===null||n===void 0||n.call(t,a,!r),this.stack.pop())},e.prototype.onattribname=function(r,t){this.startIndex=r;var n=this.getSlice(r,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},e.prototype.onattribdata=function(r,t){this.attribvalue+=this.getSlice(r,t)},e.prototype.onattribentity=function(r){this.attribvalue+=(0,lv.fromCodePoint)(r)},e.prototype.onattribend=function(r,t){var n,a;this.endIndex=t,(a=(n=this.cbs).onattribute)===null||a===void 0||a.call(n,this.attribname,this.attribvalue,r===To.QuoteType.Double?'"':r===To.QuoteType.Single?"'":r===To.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(r){var t=r.search(TT),n=t<0?r:r.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(r,t){this.endIndex=t;var n=this.getSlice(r,t);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(a),"!".concat(n))}this.startIndex=t+1},e.prototype.onprocessinginstruction=function(r,t){this.endIndex=t;var n=this.getSlice(r,t);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(a),"?".concat(n))}this.startIndex=t+1},e.prototype.oncomment=function(r,t,n){var a,s,o,u;this.endIndex=t,(s=(a=this.cbs).oncomment)===null||s===void 0||s.call(a,this.getSlice(r,t-n)),(u=(o=this.cbs).oncommentend)===null||u===void 0||u.call(o),this.startIndex=t+1},e.prototype.oncdata=function(r,t,n){var a,s,o,u,l,c,f,m,h,v;this.endIndex=t;var y=this.getSlice(r,t-n);this.options.xmlMode||this.options.recognizeCDATA?((s=(a=this.cbs).oncdatastart)===null||s===void 0||s.call(a),(u=(o=this.cbs).ontext)===null||u===void 0||u.call(o,y),(c=(l=this.cbs).oncdataend)===null||c===void 0||c.call(l)):((m=(f=this.cbs).oncomment)===null||m===void 0||m.call(f,"[CDATA[".concat(y,"]]")),(v=(h=this.cbs).oncommentend)===null||v===void 0||v.call(h)),this.startIndex=t+1},e.prototype.onend=function(){var r,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(t=(r=this.cbs).onend)===null||t===void 0||t.call(r)},e.prototype.reset=function(){var r,t,n,a;(t=(r=this.cbs).onreset)===null||t===void 0||t.call(r),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(a=(n=this.cbs).onparserinit)===null||a===void 0||a.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(r){this.reset(),this.end(r)},e.prototype.getSlice=function(r,t){for(;r-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(r-this.bufferOffset,t-this.bufferOffset);t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(r){var t,n;if(this.ended){(n=(t=this.cbs).onerror)===null||n===void 0||n.call(t,new Error(".write() after done!"));return}this.buffers.push(r),this.tokenizer.running&&(this.tokenizer.write(r),this.writeIndex++)},e.prototype.end=function(r){var t,n;if(this.ended){(n=(t=this.cbs).onerror)===null||n===void 0||n.call(t,Error(".end() after done!"));return}r&&this.write(r),this.ended=!0,this.tokenizer.end()},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"childNodes",{get:function(){return this.children},set:function(t){this.children=t},enumerable:!1,configurable:!0}),r}(Zf);be.NodeWithChildren=Zu;var $y=function(e){Ei(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Bt.ElementType.CDATA,t}return Object.defineProperty(r.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),r}(Zu);be.CDATA=$y;var Iy=function(e){Ei(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Bt.ElementType.Root,t}return Object.defineProperty(r.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),r}(Zu);be.Document=Iy;var Py=function(e){Ei(r,e);function r(t,n,a,s){a===void 0&&(a=[]),s===void 0&&(s=t==="script"?Bt.ElementType.Script:t==="style"?Bt.ElementType.Style:Bt.ElementType.Tag);var o=e.call(this,a)||this;return o.name=t,o.attribs=n,o.type=s,o}return Object.defineProperty(r.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tagName",{get:function(){return this.name},set:function(t){this.name=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"attributes",{get:function(){var t=this;return Object.keys(this.attribs).map(function(n){var a,s;return{name:n,value:t.attribs[n],namespace:(a=t["x-attribsNamespace"])===null||a===void 0?void 0:a[n],prefix:(s=t["x-attribsPrefix"])===null||s===void 0?void 0:s[n]}})},enumerable:!1,configurable:!0}),r}(Zu);be.Element=Py;function My(e){return(0,Bt.isTag)(e)}be.isTag=My;function Ay(e){return e.type===Bt.ElementType.CDATA}be.isCDATA=Ay;function Ny(e){return e.type===Bt.ElementType.Text}be.isText=Ny;function Ry(e){return e.type===Bt.ElementType.Comment}be.isComment=Ry;function Ly(e){return e.type===Bt.ElementType.Directive}be.isDirective=Ly;function Fy(e){return e.type===Bt.ElementType.Root}be.isDocument=Fy;function OT(e){return Object.prototype.hasOwnProperty.call(e,"children")}be.hasChildren=OT;function Qf(e,r){r===void 0&&(r=!1);var t;if(Ny(e))t=new Oy(e.data);else if(Ry(e))t=new Dy(e.data);else if(My(e)){var n=r?rc(e.children):[],a=new Py(e.name,Wa({},e.attribs),n);n.forEach(function(l){return l.parent=a}),e.namespace!=null&&(a.namespace=e.namespace),e["x-attribsNamespace"]&&(a["x-attribsNamespace"]=Wa({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(a["x-attribsPrefix"]=Wa({},e["x-attribsPrefix"])),t=a}else if(Ay(e)){var n=r?rc(e.children):[],s=new $y(n);n.forEach(function(c){return c.parent=s}),t=s}else if(Fy(e)){var n=r?rc(e.children):[],o=new Iy(n);n.forEach(function(c){return c.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),t=o}else if(Ly(e)){var u=new Cy(e.name,e.data);e["x-name"]!=null&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),t=u}else throw new Error("Not implemented yet: ".concat(e.type));return t.startIndex=e.startIndex,t.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(t.sourceCodeLocation=e.sourceCodeLocation),t}be.cloneNode=Qf;function rc(e){for(var r=e.map(function(n){return Qf(n,!0)}),t=1;t$\x80-\uFFFF]/g;var r=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);e.getCodePoint=String.prototype.codePointAt!=null?function(a,s){return a.codePointAt(s)}:function(a,s){return(a.charCodeAt(s)&64512)===55296?(a.charCodeAt(s)-55296)*1024+a.charCodeAt(s+1)-56320+65536:a.charCodeAt(s)};function t(a){for(var s="",o=0,u;(u=e.xmlReplacer.exec(a))!==null;){var l=u.index,c=a.charCodeAt(l),f=r.get(c);f!==void 0?(s+=a.substring(o,l)+f,o=l+1):(s+="".concat(a.substring(o,l),"&#x").concat((0,e.getCodePoint)(a,l).toString(16),";"),o=e.xmlReplacer.lastIndex+=+((c&64512)===55296))}return s+a.substr(o)}e.encodeXML=t,e.escape=t;function n(a,s){return function(u){for(var l,c=0,f="";l=a.exec(u);)c!==l.index&&(f+=u.substring(c,l.index)),f+=s.get(l[0].charCodeAt(0)),c=l.index+1;return f+u.substring(c)}}e.escapeUTF8=n(/[&<>'"]/g,r),e.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),e.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(gu);var DT=ve&&ve.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.encodeNonAsciiHTML=Zi.encodeHTML=void 0;var CT=DT(Jf),Hy=gu,$T=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function IT(e){return Yy($T,e)}Zi.encodeHTML=IT;function PT(e){return Yy(Hy.xmlReplacer,e)}Zi.encodeNonAsciiHTML=PT;function Yy(e,r){for(var t="",n=0,a;(a=e.exec(r))!==null;){var s=a.index;t+=r.substring(n,s);var o=r.charCodeAt(s),u=CT.default.get(o);if(typeof u=="object"){if(s+10&&(n+=Qu(e.children,r)),(r.xmlMode||!vv.has(e.name))&&(n+=""))),n}function GT(e){return"<".concat(e.data,">")}function zT(e,r){var t,n=e.data||"";return((t=r.encodeEntities)!==null&&t!==void 0?t:r.decodeEntities)!==!1&&!(!r.xmlMode&&e.parent&&RT.has(e.parent.name))&&(n=r.xmlMode||r.encodeEntities!=="utf8"?(0,yu.encodeXML)(n):(0,yu.escapeText)(n)),n}function UT(e){return"")}function WT(e){return"")}var VT=ve&&ve.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(tr,"__esModule",{value:!0});tr.innerText=tr.textContent=tr.getText=tr.getInnerHTML=tr.getOuterHTML=void 0;var Nr=Ti,qT=VT(xs),XT=sa;function Gy(e,r){return(0,qT.default)(e,r)}tr.getOuterHTML=Gy;function KT(e,r){return(0,Nr.hasChildren)(e)?e.children.map(function(t){return Gy(t,r)}).join(""):""}tr.getInnerHTML=KT;function ou(e){return Array.isArray(e)?e.map(ou).join(""):(0,Nr.isTag)(e)?e.name==="br"?` +import{D as Ir,s as U3,h as _o,b as $d,j as wo,k as xo,f as $r,d as Id,m as So,i as zn,n as ko,c as wn,S as W3,M as V3,t as Wf,l as Vf}from"./scheduler.pPC3woXQ.js";import{S as q3,i as X3,c as Ba,a as Ga,m as za,t as yi,g as K3,b as zi,e as Z3,d as Ua}from"./index.Z3Qqxacm.js";import{c as ve,a as Q3,g as J3}from"./_commonjsHelpers.4gQjN7DL.js";import{p as eT,I as uv}from"./icon.IMxiy1l_.js";import{p as tT}from"./stores.cW8AX6ex.js";import{H as rT}from"./heart-beat-indicator.qiiCwRNe.js";import{L as iT}from"./link.k1D2UsV0.js";import{L as nT}from"./loading.TnDAnZ7t.js";import{T as aT,a as ec}from"./toggle-buttons.4_Ff5yMg.js";import{g as sT,t as oT}from"./index.fCt83tdf.js";import{C as uT}from"./get-event-categorization.if3aIlTT.js";import{b as lT,a as cT}from"./filters.iDq_cVKd.js";import{f as ts,r as rs,t as Un,j as dT}from"./time-format.dnMZnAkG.js";import{w as fT,b as hT}from"./workflow-run.UJKlq2cH.js";import{c as pT}from"./format-camel-case.z6e2GZpK.js";import{j as vT,i as tc}from"./is-event-type.Ut7dN4k9.js";import{s as mT}from"./parse-with-big-int.e3oI4SEy.js";import{E as gT}from"./route-for.Gs4LHMCg.js";import{r as Sy,e as ky,q as Ty}from"./format-time.PmxHXK_V.js";function yT(e){Sy(1,arguments);var r=ky(e);return r.setSeconds(0,0),r}function bT(e){Sy(1,arguments);var r=ky(e);return r.setSeconds(59,999),r}var Ey={},Xu={},qf={},is={},Xf={};Object.defineProperty(Xf,"__esModule",{value:!0});Xf.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(e){return e.charCodeAt(0)}));var Kf={};Object.defineProperty(Kf,"__esModule",{value:!0});Kf.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(e){return e.charCodeAt(0)}));var Pd={};(function(e){var r;Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.fromCodePoint=void 0;var t=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);e.fromCodePoint=(r=String.fromCodePoint)!==null&&r!==void 0?r:function(s){var o="";return s>65535&&(s-=65536,o+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),o+=String.fromCharCode(s),o};function n(s){var o;return s>=55296&&s<=57343||s>1114111?65533:(o=t.get(s))!==null&&o!==void 0?o:s}e.replaceCodePoint=n;function a(s){return(0,e.fromCodePoint)(n(s))}e.default=a})(Pd);(function(e){var r=ve&&ve.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTML=e.determineBranch=e.BinTrieFlags=e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var t=r(Xf);e.htmlDecodeTree=t.default;var n=r(Kf);e.xmlDecodeTree=n.default;var a=r(Pd);e.decodeCodePoint=a.default;var s=Pd;Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return s.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return s.fromCodePoint}});var o;(function(w){w[w.NUM=35]="NUM",w[w.SEMI=59]="SEMI",w[w.ZERO=48]="ZERO",w[w.NINE=57]="NINE",w[w.LOWER_A=97]="LOWER_A",w[w.LOWER_F=102]="LOWER_F",w[w.LOWER_X=120]="LOWER_X",w[w.To_LOWER_BIT=32]="To_LOWER_BIT"})(o||(o={}));var u;(function(w){w[w.VALUE_LENGTH=49152]="VALUE_LENGTH",w[w.BRANCH_LENGTH=16256]="BRANCH_LENGTH",w[w.JUMP_TABLE=127]="JUMP_TABLE"})(u=e.BinTrieFlags||(e.BinTrieFlags={}));function l(w){return function(k,E){for(var O="",D=0,M=0;(M=k.indexOf("&",M))>=0;){if(O+=k.slice(D,M),D=M,M+=1,k.charCodeAt(M)===o.NUM){var P=M+1,R=10,C=k.charCodeAt(P);(C|o.To_LOWER_BIT)===o.LOWER_X&&(R=16,M+=1,P+=1);do C=k.charCodeAt(++M);while(C>=o.ZERO&&C<=o.NINE||R===16&&(C|o.To_LOWER_BIT)>=o.LOWER_A&&(C|o.To_LOWER_BIT)<=o.LOWER_F);if(P!==M){var G=k.substring(P,M),z=parseInt(G,R);if(k.charCodeAt(M)===o.SEMI)M+=1;else if(E)continue;O+=(0,a.default)(z),D=M}continue}for(var N=0,L=1,W=0,re=w[W];M>14)-1;if(j===0)break;W+=j}}if(N!==0){var j=(w[N]&u.VALUE_LENGTH)>>14;O+=j===1?String.fromCharCode(w[N]&~u.VALUE_LENGTH):j===2?String.fromCharCode(w[N+1]):String.fromCharCode(w[N+1],w[N+2]),D=M-L+1}}return O+k.slice(D)}}function c(w,_,k,E){var O=(_&u.BRANCH_LENGTH)>>7,D=_&u.JUMP_TABLE;if(O===0)return D!==0&&E===D?k:-1;if(D){var M=E-D;return M<0||M>=O?-1:w[k+M]-1}for(var P=k,R=P+O-1;P<=R;){var C=P+R>>>1,G=w[C];if(GE)R=C-1;else return w[C+O]}return-1}e.determineBranch=c;var f=l(t.default),m=l(n.default);function h(w){return f(w,!1)}e.decodeHTML=h;function v(w){return f(w,!0)}e.decodeHTMLStrict=v;function y(w){return m(w,!0)}e.decodeXML=y})(is);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuoteType=void 0;var r=is,t;(function(h){h[h.Tab=9]="Tab",h[h.NewLine=10]="NewLine",h[h.FormFeed=12]="FormFeed",h[h.CarriageReturn=13]="CarriageReturn",h[h.Space=32]="Space",h[h.ExclamationMark=33]="ExclamationMark",h[h.Num=35]="Num",h[h.Amp=38]="Amp",h[h.SingleQuote=39]="SingleQuote",h[h.DoubleQuote=34]="DoubleQuote",h[h.Dash=45]="Dash",h[h.Slash=47]="Slash",h[h.Zero=48]="Zero",h[h.Nine=57]="Nine",h[h.Semi=59]="Semi",h[h.Lt=60]="Lt",h[h.Eq=61]="Eq",h[h.Gt=62]="Gt",h[h.Questionmark=63]="Questionmark",h[h.UpperA=65]="UpperA",h[h.LowerA=97]="LowerA",h[h.UpperF=70]="UpperF",h[h.LowerF=102]="LowerF",h[h.UpperZ=90]="UpperZ",h[h.LowerZ=122]="LowerZ",h[h.LowerX=120]="LowerX",h[h.OpeningSquareBracket=91]="OpeningSquareBracket"})(t||(t={}));var n;(function(h){h[h.Text=1]="Text",h[h.BeforeTagName=2]="BeforeTagName",h[h.InTagName=3]="InTagName",h[h.InSelfClosingTag=4]="InSelfClosingTag",h[h.BeforeClosingTagName=5]="BeforeClosingTagName",h[h.InClosingTagName=6]="InClosingTagName",h[h.AfterClosingTagName=7]="AfterClosingTagName",h[h.BeforeAttributeName=8]="BeforeAttributeName",h[h.InAttributeName=9]="InAttributeName",h[h.AfterAttributeName=10]="AfterAttributeName",h[h.BeforeAttributeValue=11]="BeforeAttributeValue",h[h.InAttributeValueDq=12]="InAttributeValueDq",h[h.InAttributeValueSq=13]="InAttributeValueSq",h[h.InAttributeValueNq=14]="InAttributeValueNq",h[h.BeforeDeclaration=15]="BeforeDeclaration",h[h.InDeclaration=16]="InDeclaration",h[h.InProcessingInstruction=17]="InProcessingInstruction",h[h.BeforeComment=18]="BeforeComment",h[h.CDATASequence=19]="CDATASequence",h[h.InSpecialComment=20]="InSpecialComment",h[h.InCommentLike=21]="InCommentLike",h[h.BeforeSpecialS=22]="BeforeSpecialS",h[h.SpecialStartSequence=23]="SpecialStartSequence",h[h.InSpecialTag=24]="InSpecialTag",h[h.BeforeEntity=25]="BeforeEntity",h[h.BeforeNumericEntity=26]="BeforeNumericEntity",h[h.InNamedEntity=27]="InNamedEntity",h[h.InNumericEntity=28]="InNumericEntity",h[h.InHexEntity=29]="InHexEntity"})(n||(n={}));function a(h){return h===t.Space||h===t.NewLine||h===t.Tab||h===t.FormFeed||h===t.CarriageReturn}function s(h){return h===t.Slash||h===t.Gt||a(h)}function o(h){return h>=t.Zero&&h<=t.Nine}function u(h){return h>=t.LowerA&&h<=t.LowerZ||h>=t.UpperA&&h<=t.UpperZ}function l(h){return h>=t.UpperA&&h<=t.UpperF||h>=t.LowerA&&h<=t.LowerF}var c;(function(h){h[h.NoValue=0]="NoValue",h[h.Unquoted=1]="Unquoted",h[h.Single=2]="Single",h[h.Double=3]="Double"})(c=e.QuoteType||(e.QuoteType={}));var f={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},m=function(){function h(v,y){var w=v.xmlMode,_=w===void 0?!1:w,k=v.decodeEntities,E=k===void 0?!0:k;this.cbs=y,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=_,this.decodeEntities=E,this.entityTrie=_?r.xmlDecodeTree:r.htmlDecodeTree}return h.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},h.prototype.write=function(v){this.offset+=this.buffer.length,this.buffer=v,this.parse()},h.prototype.end=function(){this.running&&this.finish()},h.prototype.pause=function(){this.running=!1},h.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&v===t.Amp&&(this.state=n.BeforeEntity)},h.prototype.stateSpecialStartSequence=function(v){var y=this.sequenceIndex===this.currentSequence.length,w=y?s(v):(v|32)===this.currentSequence[this.sequenceIndex];if(!w)this.isSpecial=!1;else if(!y){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(v)},h.prototype.stateInSpecialTag=function(v){if(this.sequenceIndex===this.currentSequence.length){if(v===t.Gt||a(v)){var y=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&v!==t.Semi)this.trieIndex+=w;else{var _=this.index-this.entityExcess+1;_>this.sectionStart&&this.emitPartial(this.sectionStart,_),this.entityResult=this.trieIndex,this.trieIndex+=w,this.entityExcess=0,this.sectionStart=this.index+1,w===0&&this.emitNamedEntity()}}},h.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var v=(this.entityTrie[this.entityResult]&r.BinTrieFlags.VALUE_LENGTH)>>14;switch(v){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~r.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},h.prototype.stateBeforeNumericEntity=function(v){(v|32)===t.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(v))},h.prototype.emitNumericEntity=function(v){var y=this.index-this.entityExcess-1,w=y+2+ +(this.state===n.InHexEntity);w!==this.index&&(y>this.sectionStart&&this.emitPartial(this.sectionStart,y),this.sectionStart=this.index+Number(v),this.emitCodePoint((0,r.replaceCodePoint)(this.entityResult))),this.state=this.baseState},h.prototype.stateInNumericEntity=function(v){v===t.Semi?this.emitNumericEntity(!0):o(v)?(this.entityResult=this.entityResult*10+(v-t.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},h.prototype.stateInHexEntity=function(v){v===t.Semi?this.emitNumericEntity(!0):o(v)?(this.entityResult=this.entityResult*16+(v-t.Zero),this.entityExcess++):l(v)?(this.entityResult=this.entityResult*16+((v|32)-t.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},h.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},h.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},h.prototype.shouldContinue=function(){return this.index0&&o.has(this.stack[this.stack.length-1]);){var u=this.stack.pop();(n=(t=this.cbs).onclosetag)===null||n===void 0||n.call(t,u,!0)}this.isVoidElement(r)||(this.stack.push(r),hv.has(r)?this.foreignContext.push(!0):pv.has(r)&&this.foreignContext.push(!1)),(s=(a=this.cbs).onopentagname)===null||s===void 0||s.call(a,r),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(r){var t,n;this.startIndex=this.openTagStart,this.attribs&&((n=(t=this.cbs).onopentag)===null||n===void 0||n.call(t,this.tagname,this.attribs,r),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(r){this.endIndex=r,this.endOpenTag(!1),this.startIndex=r+1},e.prototype.onclosetag=function(r,t){var n,a,s,o,u,l;this.endIndex=t;var c=this.getSlice(r,t);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),(hv.has(c)||pv.has(c))&&this.foreignContext.pop(),this.isVoidElement(c))!this.options.xmlMode&&c==="br"&&((a=(n=this.cbs).onopentagname)===null||a===void 0||a.call(n,"br"),(o=(s=this.cbs).onopentag)===null||o===void 0||o.call(s,"br",{},!0),(l=(u=this.cbs).onclosetag)===null||l===void 0||l.call(u,"br",!1));else{var f=this.stack.lastIndexOf(c);if(f!==-1)if(this.cbs.onclosetag)for(var m=this.stack.length-f;m--;)this.cbs.onclosetag(this.stack.pop(),m!==0);else this.stack.length=f;else!this.options.xmlMode&&c==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1},e.prototype.onselfclosingtag=function(r){this.endIndex=r,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=r+1):this.onopentagend(r)},e.prototype.closeCurrentTag=function(r){var t,n,a=this.tagname;this.endOpenTag(r),this.stack[this.stack.length-1]===a&&((n=(t=this.cbs).onclosetag)===null||n===void 0||n.call(t,a,!r),this.stack.pop())},e.prototype.onattribname=function(r,t){this.startIndex=r;var n=this.getSlice(r,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},e.prototype.onattribdata=function(r,t){this.attribvalue+=this.getSlice(r,t)},e.prototype.onattribentity=function(r){this.attribvalue+=(0,lv.fromCodePoint)(r)},e.prototype.onattribend=function(r,t){var n,a;this.endIndex=t,(a=(n=this.cbs).onattribute)===null||a===void 0||a.call(n,this.attribname,this.attribvalue,r===To.QuoteType.Double?'"':r===To.QuoteType.Single?"'":r===To.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(r){var t=r.search(TT),n=t<0?r:r.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(r,t){this.endIndex=t;var n=this.getSlice(r,t);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(a),"!".concat(n))}this.startIndex=t+1},e.prototype.onprocessinginstruction=function(r,t){this.endIndex=t;var n=this.getSlice(r,t);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(a),"?".concat(n))}this.startIndex=t+1},e.prototype.oncomment=function(r,t,n){var a,s,o,u;this.endIndex=t,(s=(a=this.cbs).oncomment)===null||s===void 0||s.call(a,this.getSlice(r,t-n)),(u=(o=this.cbs).oncommentend)===null||u===void 0||u.call(o),this.startIndex=t+1},e.prototype.oncdata=function(r,t,n){var a,s,o,u,l,c,f,m,h,v;this.endIndex=t;var y=this.getSlice(r,t-n);this.options.xmlMode||this.options.recognizeCDATA?((s=(a=this.cbs).oncdatastart)===null||s===void 0||s.call(a),(u=(o=this.cbs).ontext)===null||u===void 0||u.call(o,y),(c=(l=this.cbs).oncdataend)===null||c===void 0||c.call(l)):((m=(f=this.cbs).oncomment)===null||m===void 0||m.call(f,"[CDATA[".concat(y,"]]")),(v=(h=this.cbs).oncommentend)===null||v===void 0||v.call(h)),this.startIndex=t+1},e.prototype.onend=function(){var r,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(t=(r=this.cbs).onend)===null||t===void 0||t.call(r)},e.prototype.reset=function(){var r,t,n,a;(t=(r=this.cbs).onreset)===null||t===void 0||t.call(r),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(a=(n=this.cbs).onparserinit)===null||a===void 0||a.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(r){this.reset(),this.end(r)},e.prototype.getSlice=function(r,t){for(;r-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(r-this.bufferOffset,t-this.bufferOffset);t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(r){var t,n;if(this.ended){(n=(t=this.cbs).onerror)===null||n===void 0||n.call(t,new Error(".write() after done!"));return}this.buffers.push(r),this.tokenizer.running&&(this.tokenizer.write(r),this.writeIndex++)},e.prototype.end=function(r){var t,n;if(this.ended){(n=(t=this.cbs).onerror)===null||n===void 0||n.call(t,Error(".end() after done!"));return}r&&this.write(r),this.ended=!0,this.tokenizer.end()},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"childNodes",{get:function(){return this.children},set:function(t){this.children=t},enumerable:!1,configurable:!0}),r}(Zf);be.NodeWithChildren=Zu;var $y=function(e){Ei(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Bt.ElementType.CDATA,t}return Object.defineProperty(r.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),r}(Zu);be.CDATA=$y;var Iy=function(e){Ei(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Bt.ElementType.Root,t}return Object.defineProperty(r.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),r}(Zu);be.Document=Iy;var Py=function(e){Ei(r,e);function r(t,n,a,s){a===void 0&&(a=[]),s===void 0&&(s=t==="script"?Bt.ElementType.Script:t==="style"?Bt.ElementType.Style:Bt.ElementType.Tag);var o=e.call(this,a)||this;return o.name=t,o.attribs=n,o.type=s,o}return Object.defineProperty(r.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tagName",{get:function(){return this.name},set:function(t){this.name=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"attributes",{get:function(){var t=this;return Object.keys(this.attribs).map(function(n){var a,s;return{name:n,value:t.attribs[n],namespace:(a=t["x-attribsNamespace"])===null||a===void 0?void 0:a[n],prefix:(s=t["x-attribsPrefix"])===null||s===void 0?void 0:s[n]}})},enumerable:!1,configurable:!0}),r}(Zu);be.Element=Py;function My(e){return(0,Bt.isTag)(e)}be.isTag=My;function Ay(e){return e.type===Bt.ElementType.CDATA}be.isCDATA=Ay;function Ny(e){return e.type===Bt.ElementType.Text}be.isText=Ny;function Ry(e){return e.type===Bt.ElementType.Comment}be.isComment=Ry;function Ly(e){return e.type===Bt.ElementType.Directive}be.isDirective=Ly;function Fy(e){return e.type===Bt.ElementType.Root}be.isDocument=Fy;function OT(e){return Object.prototype.hasOwnProperty.call(e,"children")}be.hasChildren=OT;function Qf(e,r){r===void 0&&(r=!1);var t;if(Ny(e))t=new Oy(e.data);else if(Ry(e))t=new Dy(e.data);else if(My(e)){var n=r?rc(e.children):[],a=new Py(e.name,Wa({},e.attribs),n);n.forEach(function(l){return l.parent=a}),e.namespace!=null&&(a.namespace=e.namespace),e["x-attribsNamespace"]&&(a["x-attribsNamespace"]=Wa({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(a["x-attribsPrefix"]=Wa({},e["x-attribsPrefix"])),t=a}else if(Ay(e)){var n=r?rc(e.children):[],s=new $y(n);n.forEach(function(c){return c.parent=s}),t=s}else if(Fy(e)){var n=r?rc(e.children):[],o=new Iy(n);n.forEach(function(c){return c.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),t=o}else if(Ly(e)){var u=new Cy(e.name,e.data);e["x-name"]!=null&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),t=u}else throw new Error("Not implemented yet: ".concat(e.type));return t.startIndex=e.startIndex,t.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(t.sourceCodeLocation=e.sourceCodeLocation),t}be.cloneNode=Qf;function rc(e){for(var r=e.map(function(n){return Qf(n,!0)}),t=1;t$\x80-\uFFFF]/g;var r=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);e.getCodePoint=String.prototype.codePointAt!=null?function(a,s){return a.codePointAt(s)}:function(a,s){return(a.charCodeAt(s)&64512)===55296?(a.charCodeAt(s)-55296)*1024+a.charCodeAt(s+1)-56320+65536:a.charCodeAt(s)};function t(a){for(var s="",o=0,u;(u=e.xmlReplacer.exec(a))!==null;){var l=u.index,c=a.charCodeAt(l),f=r.get(c);f!==void 0?(s+=a.substring(o,l)+f,o=l+1):(s+="".concat(a.substring(o,l),"&#x").concat((0,e.getCodePoint)(a,l).toString(16),";"),o=e.xmlReplacer.lastIndex+=+((c&64512)===55296))}return s+a.substr(o)}e.encodeXML=t,e.escape=t;function n(a,s){return function(u){for(var l,c=0,f="";l=a.exec(u);)c!==l.index&&(f+=u.substring(c,l.index)),f+=s.get(l[0].charCodeAt(0)),c=l.index+1;return f+u.substring(c)}}e.escapeUTF8=n(/[&<>'"]/g,r),e.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),e.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(gu);var DT=ve&&ve.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.encodeNonAsciiHTML=Zi.encodeHTML=void 0;var CT=DT(Jf),Hy=gu,$T=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function IT(e){return Yy($T,e)}Zi.encodeHTML=IT;function PT(e){return Yy(Hy.xmlReplacer,e)}Zi.encodeNonAsciiHTML=PT;function Yy(e,r){for(var t="",n=0,a;(a=e.exec(r))!==null;){var s=a.index;t+=r.substring(n,s);var o=r.charCodeAt(s),u=CT.default.get(o);if(typeof u=="object"){if(s+10&&(n+=Qu(e.children,r)),(r.xmlMode||!vv.has(e.name))&&(n+=""))),n}function GT(e){return"<".concat(e.data,">")}function zT(e,r){var t,n=e.data||"";return((t=r.encodeEntities)!==null&&t!==void 0?t:r.decodeEntities)!==!1&&!(!r.xmlMode&&e.parent&&RT.has(e.parent.name))&&(n=r.xmlMode||r.encodeEntities!=="utf8"?(0,yu.encodeXML)(n):(0,yu.escapeText)(n)),n}function UT(e){return"")}function WT(e){return"")}var VT=ve&&ve.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(tr,"__esModule",{value:!0});tr.innerText=tr.textContent=tr.getText=tr.getInnerHTML=tr.getOuterHTML=void 0;var Nr=Ti,qT=VT(xs),XT=sa;function Gy(e,r){return(0,qT.default)(e,r)}tr.getOuterHTML=Gy;function KT(e,r){return(0,Nr.hasChildren)(e)?e.children.map(function(t){return Gy(t,r)}).join(""):""}tr.getInnerHTML=KT;function ou(e){return Array.isArray(e)?e.map(ou).join(""):(0,Nr.isTag)(e)?e.name==="br"?` `:ou(e.children):(0,Nr.isCDATA)(e)?ou(e.children):(0,Nr.isText)(e)?e.data:""}tr.getText=ou;function Ad(e){return Array.isArray(e)?e.map(Ad).join(""):(0,Nr.hasChildren)(e)&&!(0,Nr.isComment)(e)?Ad(e.children):(0,Nr.isText)(e)?e.data:""}tr.textContent=Ad;function Nd(e){return Array.isArray(e)?e.map(Nd).join(""):(0,Nr.hasChildren)(e)&&(e.type===XT.ElementType.Tag||(0,Nr.isCDATA)(e))?Nd(e.children):(0,Nr.isText)(e)?e.data:""}tr.innerText=Nd;var ct={};Object.defineProperty(ct,"__esModule",{value:!0});ct.prevElementSibling=ct.nextElementSibling=ct.getName=ct.hasAttrib=ct.getAttributeValue=ct.getSiblings=ct.getParent=ct.getChildren=void 0;var eh=Ti;function zy(e){return(0,eh.hasChildren)(e)?e.children:[]}ct.getChildren=zy;function Uy(e){return e.parent||null}ct.getParent=Uy;function ZT(e){var r,t,n=Uy(e);if(n!=null)return zy(n);for(var a=[e],s=e.prev,o=e.next;s!=null;)a.unshift(s),r=s,s=r.prev;for(;o!=null;)a.push(o),t=o,o=t.next;return a}ct.getSiblings=ZT;function QT(e,r){var t;return(t=e.attribs)===null||t===void 0?void 0:t[r]}ct.getAttributeValue=QT;function JT(e,r){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,r)&&e.attribs[r]!=null}ct.hasAttrib=JT;function e6(e){return e.name}ct.getName=e6;function t6(e){for(var r,t=e.next;t!==null&&!(0,eh.isTag)(t);)r=t,t=r.next;return t}ct.nextElementSibling=t6;function r6(e){for(var r,t=e.prev;t!==null&&!(0,eh.isTag)(t);)r=t,t=r.prev;return t}ct.prevElementSibling=r6;var jt={};Object.defineProperty(jt,"__esModule",{value:!0});jt.prepend=jt.prependChild=jt.append=jt.appendChild=jt.replaceElement=jt.removeElement=void 0;function Ss(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var r=e.parent.children;r.splice(r.lastIndexOf(e),1)}}jt.removeElement=Ss;function i6(e,r){var t=r.prev=e.prev;t&&(t.next=r);var n=r.next=e.next;n&&(n.prev=r);var a=r.parent=e.parent;if(a){var s=a.children;s[s.lastIndexOf(e)]=r,e.parent=null}}jt.replaceElement=i6;function n6(e,r){if(Ss(r),r.next=null,r.parent=e,e.children.push(r)>1){var t=e.children[e.children.length-2];t.next=r,r.prev=t}else r.prev=null}jt.appendChild=n6;function a6(e,r){Ss(r);var t=e.parent,n=e.next;if(r.next=n,r.prev=e,e.next=r,r.parent=t,n){if(n.prev=r,t){var a=t.children;a.splice(a.lastIndexOf(n),0,r)}}else t&&t.children.push(r)}jt.append=a6;function s6(e,r){if(Ss(r),r.parent=e,r.prev=null,e.children.unshift(r)!==1){var t=e.children[1];t.prev=r,r.next=t}else r.next=null}jt.prependChild=s6;function o6(e,r){Ss(r);var t=e.parent;if(t){var n=t.children;n.splice(n.indexOf(e),0,r)}e.prev&&(e.prev.next=r),r.parent=t,r.prev=e.prev,r.next=e,e.prev=r}jt.prepend=o6;var Ot={};Object.defineProperty(Ot,"__esModule",{value:!0});Ot.findAll=Ot.existsOne=Ot.findOne=Ot.findOneChild=Ot.find=Ot.filter=void 0;var ns=Ti;function u6(e,r,t,n){return t===void 0&&(t=!0),n===void 0&&(n=1/0),Array.isArray(r)||(r=[r]),th(e,r,t,n)}Ot.filter=u6;function th(e,r,t,n){for(var a=[],s=0,o=r;s0){var l=th(e,u.children,t,n);if(a.push.apply(a,l),n-=l.length,n<=0)break}}return a}Ot.find=th;function l6(e,r){return r.find(e)}Ot.findOneChild=l6;function Wy(e,r,t){t===void 0&&(t=!0);for(var n=null,a=0;a0&&(n=Wy(e,s.children,!0));else continue}return n}Ot.findOne=Wy;function Vy(e,r){return r.some(function(t){return(0,ns.isTag)(t)&&(e(t)||t.children.length>0&&Vy(e,t.children))})}Ot.existsOne=Vy;function c6(e,r){for(var t,n=[],a=r.filter(ns.isTag),s;s=a.shift();){var o=(t=s.children)===null||t===void 0?void 0:t.filter(ns.isTag);o&&o.length>0&&a.unshift.apply(a,o),e(s)&&n.push(s)}return n}Ot.findAll=c6;var rr={};Object.defineProperty(rr,"__esModule",{value:!0});rr.getElementsByTagType=rr.getElementsByTagName=rr.getElementById=rr.getElements=rr.testElement=void 0;var Yi=Ti,Ju=Ot,bu={tag_name:function(e){return typeof e=="function"?function(r){return(0,Yi.isTag)(r)&&e(r.name)}:e==="*"?Yi.isTag:function(r){return(0,Yi.isTag)(r)&&r.name===e}},tag_type:function(e){return typeof e=="function"?function(r){return e(r.type)}:function(r){return r.type===e}},tag_contains:function(e){return typeof e=="function"?function(r){return(0,Yi.isText)(r)&&e(r.data)}:function(r){return(0,Yi.isText)(r)&&r.data===e}}};function qy(e,r){return typeof r=="function"?function(t){return(0,Yi.isTag)(t)&&r(t.attribs[e])}:function(t){return(0,Yi.isTag)(t)&&t.attribs[e]===r}}function d6(e,r){return function(t){return e(t)||r(t)}}function Xy(e){var r=Object.keys(e).map(function(t){var n=e[t];return Object.prototype.hasOwnProperty.call(bu,t)?bu[t](n):qy(t,n)});return r.length===0?null:r.reduce(d6)}function f6(e,r){var t=Xy(e);return t?t(r):!0}rr.testElement=f6;function h6(e,r,t,n){n===void 0&&(n=1/0);var a=Xy(e);return a?(0,Ju.filter)(a,r,t,n):[]}rr.getElements=h6;function p6(e,r,t){return t===void 0&&(t=!0),Array.isArray(r)||(r=[r]),(0,Ju.findOne)(qy("id",e),r,t)}rr.getElementById=p6;function v6(e,r,t,n){return t===void 0&&(t=!0),n===void 0&&(n=1/0),(0,Ju.filter)(bu.tag_name(e),r,t,n)}rr.getElementsByTagName=v6;function m6(e,r,t,n){return t===void 0&&(t=!0),n===void 0&&(n=1/0),(0,Ju.filter)(bu.tag_type(e),r,t,n)}rr.getElementsByTagType=m6;var Ky={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueSort=e.compareDocumentPosition=e.DocumentPosition=e.removeSubsets=void 0;var r=Ti;function t(o){for(var u=o.length;--u>=0;){var l=o[u];if(u>0&&o.lastIndexOf(l,u-1)>=0){o.splice(u,1);continue}for(var c=l.parent;c;c=c.parent)if(o.includes(c)){o.splice(u,1);break}}return o}e.removeSubsets=t;var n;(function(o){o[o.DISCONNECTED=1]="DISCONNECTED",o[o.PRECEDING=2]="PRECEDING",o[o.FOLLOWING=4]="FOLLOWING",o[o.CONTAINS=8]="CONTAINS",o[o.CONTAINED_BY=16]="CONTAINED_BY"})(n=e.DocumentPosition||(e.DocumentPosition={}));function a(o,u){var l=[],c=[];if(o===u)return 0;for(var f=(0,r.hasChildren)(o)?o:o.parent;f;)l.unshift(f),f=f.parent;for(f=(0,r.hasChildren)(u)?u:u.parent;f;)c.unshift(f),f=f.parent;for(var m=Math.min(l.length,c.length),h=0;hy.indexOf(_)?v===u?n.FOLLOWING|n.CONTAINED_BY:n.FOLLOWING:v===o?n.PRECEDING|n.CONTAINS:n.PRECEDING}e.compareDocumentPosition=a;function s(o){return o=o.filter(function(u,l,c){return!c.includes(u,l+1)}),o.sort(function(u,l){var c=a(u,l);return c&n.PRECEDING?-1:c&n.FOLLOWING?1:0}),o}e.uniqueSort=s})(Ky);var el={};Object.defineProperty(el,"__esModule",{value:!0});el.getFeed=void 0;var g6=tr,ks=rr;function y6(e){var r=_u(S6,e);return r?r.name==="feed"?b6(r):_6(r):null}el.getFeed=y6;function b6(e){var r,t=e.children,n={type:"atom",items:(0,ks.getElementsByTagName)("entry",t).map(function(o){var u,l=o.children,c={media:Zy(l)};Ft(c,"id","id",l),Ft(c,"title","title",l);var f=(u=_u("link",l))===null||u===void 0?void 0:u.attribs.href;f&&(c.link=f);var m=Bi("summary",l)||Bi("content",l);m&&(c.description=m);var h=Bi("updated",l);return h&&(c.pubDate=new Date(h)),c})};Ft(n,"id","id",t),Ft(n,"title","title",t);var a=(r=_u("link",t))===null||r===void 0?void 0:r.attribs.href;a&&(n.link=a),Ft(n,"description","subtitle",t);var s=Bi("updated",t);return s&&(n.updated=new Date(s)),Ft(n,"author","email",t,!0),n}function _6(e){var r,t,n=(t=(r=_u("channel",e.children))===null||r===void 0?void 0:r.children)!==null&&t!==void 0?t:[],a={type:e.name.substr(0,3),id:"",items:(0,ks.getElementsByTagName)("item",e.children).map(function(o){var u=o.children,l={media:Zy(u)};Ft(l,"id","guid",u),Ft(l,"title","title",u),Ft(l,"link","link",u),Ft(l,"description","description",u);var c=Bi("pubDate",u);return c&&(l.pubDate=new Date(c)),l})};Ft(a,"title","title",n),Ft(a,"link","link",n),Ft(a,"description","description",n);var s=Bi("lastBuildDate",n);return s&&(a.updated=new Date(s)),Ft(a,"author","managingEditor",n,!0),a}var w6=["url","type","lang"],x6=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function Zy(e){return(0,ks.getElementsByTagName)("media:content",e).map(function(r){for(var t=r.attribs,n={medium:t.medium,isDefault:!!t.isDefault},a=0,s=w6;a{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},rh={};Object.defineProperty(rh,"__esModule",{value:!0});/*! * is-plain-object * diff --git a/ui/assets/local/_app/immutable/chunks/event-summary-table.nBCSFntk.js b/ui/assets/local/_app/immutable/chunks/event-summary-table.Pknb_nfx.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/event-summary-table.nBCSFntk.js rename to ui/assets/local/_app/immutable/chunks/event-summary-table.Pknb_nfx.js index 0f84c4e13a..7e7d8c1a36 100644 --- a/ui/assets/local/_app/immutable/chunks/event-summary-table.nBCSFntk.js +++ b/ui/assets/local/_app/immutable/chunks/event-summary-table.Pknb_nfx.js @@ -1 +1 @@ -import{s as se,h as b,j as k,k as w,f as _,m as v,i as E,n as g,v as ne,a as Ze,u as Je,g as Ke,e as Xe,a2 as Wt,a9 as zt,b as A,d as S,p as Ye,G as xe,$ as Qt,c as te,I as W,t as L,l as F,q as H,x as U,r as Gt,z as ye,A as Ge,a0 as Ut,M as Zt,T as Jt,Z as Kt,w as Be,y as Xt}from"./scheduler.1T9hOnFr.js";import{S as ae,i as ie,g as z,b as h,e as Q,t as p,c as I,a as T,m as D,d as y,f as Yt,h as xt}from"./index.cVovwi_s.js";import{E as el}from"./empty-state.e2HBTKUT.js";import{L as tl}from"./loading.IcbT-3mP.js";import{t as G}from"./translate.HrioCK44.js";import{g as ll,a as nl}from"./spread.rEx3vLA9.js";import{f as rl}from"./index.PXnAuqG7.js";import{p as be}from"./stores.6oDSidma.js";import{I as ge}from"./icon.w8eknFMq.js";import{L as $e}from"./link.S6PxEIxj.js";import{d as sl,e as al,f as Nt,h as Ot,i as jt,j as Ne,k as qe,l as He,m as We,n as ve,o as rt}from"./index.45yCe-rq.js";import{d as Se,b as ze,a as il,e as ol}from"./filters.59IbP5Ow.js";import{t as fl,r as cl,f as st}from"./time-format.HFIwVHuT.js";import{c as at,d as Mt,e as ul}from"./format-event-attributes.fwoKRLe7.js";import{q as it}from"./format-time.PmxHXK_V.js";import{i as Oe}from"./is-event-type.Ut7dN4k9.js";import{g as je,b as he,B as Qe}from"./route-for.R0Qj5GxB.js";import{e as ce,u as Le,o as Fe}from"./each.QHpLJPfe.js";import{w as ml}from"./entry.1BQh90wu.js";import{t as Me}from"./tw-merge.NbP7EmZe.js";import{B as dl}from"./badge.kH3kuYyU.js";import{k as Ue}from"./has.Hk4nWl3x.js";import{C as Pe}from"./code-block.S0zkvBiB.js";import{C as Te}from"./index.PGYMwVVp.js";import{f as K}from"./format-camel-case.z6e2GZpK.js";import{P as Re}from"./payload-decoder.bHDO67Bo.js";import{T as Lt,a as _l}from"./table-header-row.8AKDWknn.js";import{M as pl,a as hl,b as gl,c as Ft}from"./menu.9pSyihPn.js";import{M as $l}from"./menu-divider.MDdbEebE.js";import{u as Rt}from"./update-query-parameters.bYEFH29o.js";import{B as vl}from"./button.y7LhNtq8.js";import{M as bl}from"./multi-select.FmV1024R.js";import{c as kl,a as wl}from"./get-event-categorization.if3aIlTT.js";import{t as El}from"./versions.o_MWjQYY.js";import{i as Il}from"./version-check.HLZIw2tw.js";function Tl(s){let e,l;return e=new el({props:{title:s[1],content:s[2]}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.title=t[1]),n&4&&(r.content=t[2]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Dl(s){let e,l;return e=new tl({}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:ne,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function yl(s){let e,l,t,n,r;const o=[Dl,Tl],a=[];function f(i,c){return i[0]?0:1}return t=f(s),n=a[t]=o[t](s),{c(){e=b("tr"),l=b("td"),n.c(),this.h()},l(i){e=k(i,"TR",{class:!0});var c=w(e);l=k(c,"TD",{colspan:!0});var u=w(l);n.l(u),u.forEach(_),c.forEach(_),this.h()},h(){v(l,"colspan","6"),v(e,"class","row svelte-1q8wnnl")},m(i,c){E(i,e,c),g(e,l),a[t].m(l,null),r=!0},p(i,[c]){let u=t;t=f(i),t===u?a[t].p(i,c):(z(),h(a[u],1,1,()=>{a[u]=null}),Q(),n=a[t],n?n.p(i,c):(n=a[t]=o[t](i),n.c()),p(n,1),n.m(l,null))},i(i){r||(p(n),r=!0)},o(i){h(n),r=!1},d(i){i&&_(e),a[t].d()}}}function Pl(s,e,l){let{loading:t=!1}=e,{title:n=G("events.empty-state-title")}=e,{content:r=G("events.empty-state-description")}=e;return s.$$set=o=>{"loading"in o&&l(0,t=o.loading),"title"in o&&l(1,n=o.title),"content"in o&&l(2,r=o.content)},[t,n,r]}class Mr extends ae{constructor(e){super(),ie(this,e,Pl,yl,se,{loading:0,title:1,content:2})}}function Vl(s){let e,l,t;const n=s[2].default,r=Ze(n,s,s[1],null);return{c(){e=b("div"),r&&r.c(),this.h()},l(o){e=k(o,"DIV",{class:!0});var a=w(e);r&&r.l(a),a.forEach(_),this.h()},h(){v(e,"class",l=Me("surface-subtle inline-flex flex-col items-center justify-start gap-2 rounded-md px-2 py-2 md:flex-row md:rounded-full",s[0]))},m(o,a){E(o,e,a),r&&r.m(e,null),t=!0},p(o,[a]){r&&r.p&&(!t||a&2)&&Je(r,n,o,o[1],t?Xe(n,o[1],a,null):Ke(o[1]),null),(!t||a&1&&l!==(l=Me("surface-subtle inline-flex flex-col items-center justify-start gap-2 rounded-md px-2 py-2 md:flex-row md:rounded-full",o[0])))&&v(e,"class",l)},i(o){t||(p(r,o),t=!0)},o(o){h(r,o),t=!1},d(o){o&&_(e),r&&r.d(o)}}}const Bt={};function Cl(s,e,l){let{$$slots:t={},$$scope:n}=e,{class:r=""}=e;const o=[],a=ml(null);return Wt(Bt,{registerPill:f=>{o.push(f),a.update(i=>i||f),zt(()=>{const i=o.indexOf(f);o.splice(i,1),a.update(c=>c===f?o[i]||o[o.length-1]:c)})},selectPill:f=>{a.set(f)},activePill:a}),s.$$set=f=>{"class"in f&&l(0,r=f.class),"$$scope"in f&&l(1,n=f.$$scope)},[r,n,t]}class Al extends ae{constructor(e){super(),ie(this,e,Cl,Vl,se,{class:0})}}function ot(s){let e,l,t;return l=new ge({props:{name:s[1]?"spinner":s[2]}}),{c(){e=b("span"),I(l.$$.fragment),this.h()},l(n){e=k(n,"SPAN",{});var r=w(e);T(l.$$.fragment,r),r.forEach(_),this.h()},h(){W(e,"animate-spin",s[1])},m(n,r){E(n,e,r),D(l,e,null),t=!0},p(n,r){const o={};r&6&&(o.name=n[1]?"spinner":n[2]),l.$set(o),(!t||r&2)&&W(e,"animate-spin",n[1])},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&_(e),y(l)}}}function ft(s){let e,l;return e=new dl({props:{type:"count",$$slots:{default:[Sl]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&8200&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Sl(s){let e;return{c(){e=L(s[3])},l(l){e=F(l,s[3])},m(l,t){E(l,e,t)},p(l,t){t&8&&H(e,l[3])},d(l){l&&_(e)}}}function Gl(s){let e,l,t,n=!Ue(s[3]),r,o,a,f,i=s[2]&&ot(s);const c=s[12].default,u=Ze(c,s,s[13],null);let m=n&&ft(s);return{c(){e=b("button"),i&&i.c(),l=A(),u&&u.c(),t=A(),m&&m.c(),this.h()},l(d){e=k(d,"BUTTON",{class:!0});var $=w(e);i&&i.l($),l=S($),u&&u.l($),t=S($),m&&m.l($),$.forEach(_),this.h()},h(){v(e,"class",r=Me("surface-subtle flex items-center justify-center gap-2 rounded-full px-3 py-1 text-sm","focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-primary/70",s[5]&&"bg-interactive text-white",s[4])),e.disabled=s[0]},m(d,$){E(d,e,$),i&&i.m(e,null),g(e,l),u&&u.m(e,null),g(e,t),m&&m.m(e,null),o=!0,a||(f=Ye(e,"click",xe(s[7])),a=!0)},p(d,[$]){d[2]?i?(i.p(d,$),$&4&&p(i,1)):(i=ot(d),i.c(),p(i,1),i.m(e,l)):i&&(z(),h(i,1,1,()=>{i=null}),Q()),u&&u.p&&(!o||$&8192)&&Je(u,c,d,d[13],o?Xe(c,d[13],$,null):Ke(d[13]),null),$&8&&(n=!Ue(d[3])),n?m?(m.p(d,$),$&8&&p(m,1)):(m=ft(d),m.c(),p(m,1),m.m(e,null)):m&&(z(),h(m,1,1,()=>{m=null}),Q()),(!o||$&48&&r!==(r=Me("surface-subtle flex items-center justify-center gap-2 rounded-full px-3 py-1 text-sm","focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-primary/70",d[5]&&"bg-interactive text-white",d[4])))&&v(e,"class",r),(!o||$&1)&&(e.disabled=d[0])},i(d){o||(p(i),p(u,d),p(m),o=!0)},o(d){h(i),h(u,d),h(m),o=!1},d(d){d&&_(e),i&&i.d(),u&&u.d(d),m&&m.d(),a=!1,f()}}}function Nl(s,e,l){let t,n,{$$slots:r={},$$scope:o}=e,{id:a}=e,{onClick:f=ne}=e,{disabled:i=!1}=e,{loading:c=!1}=e,{active:u=null}=e,{icon:m=null}=e,{count:d=null}=e,{class:$=""}=e;const{activePill:P,registerPill:V,selectPill:N}=Qt(Bt);te(s,P,M=>l(11,n=M)),V(a);const B=()=>{i||(N(a),f&&f())};return s.$$set=M=>{"id"in M&&l(8,a=M.id),"onClick"in M&&l(9,f=M.onClick),"disabled"in M&&l(0,i=M.disabled),"loading"in M&&l(1,c=M.loading),"active"in M&&l(10,u=M.active),"icon"in M&&l(2,m=M.icon),"count"in M&&l(3,d=M.count),"class"in M&&l(4,$=M.class),"$$scope"in M&&l(13,o=M.$$scope)},s.$$.update=()=>{s.$$.dirty&3328&&l(5,t=Ue(u)?n===a:u)},[i,c,m,d,$,t,P,B,a,f,u,n,r,o]}class Ol extends ae{constructor(e){super(),ie(this,e,Nl,Gl,se,{id:8,onClick:9,disabled:0,loading:1,active:10,icon:2,count:3,class:4})}}function ct(s,e,l){const t=s.slice();return t[4]=e[l][0],t[5]=e[l][1],t}function ut(s){let e,l,t;return l=new Al({props:{$$slots:{default:[Ml]},$$scope:{ctx:s}}}),{c(){e=b("div"),I(l.$$.fragment),this.h()},l(n){e=k(n,"DIV",{class:!0});var r=w(e);T(l.$$.fragment,r),r.forEach(_),this.h()},h(){v(e,"class","p-2 text-center xl:text-left")},m(n,r){E(n,e,r),D(l,e,null),t=!0},p(n,r){const o={};r&257&&(o.$$scope={dirty:r,ctx:n}),l.$set(o)},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&_(e),y(l)}}}function mt(s){let e,l;function t(){return s[3](s[4])}return e=new Ol({props:{id:s[4],onClick:t,$$slots:{default:[jl]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){D(e,n,r),l=!0},p(n,r){s=n;const o={};r&1&&(o.id=s[4]),r&1&&(o.onClick=t),r&257&&(o.$$scope={dirty:r,ctx:s}),e.$set(o)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function jl(s){let e=G(at[s[4]].label)+"",l;return{c(){l=L(e)},l(t){l=F(t,e)},m(t,n){E(t,l,n)},p(t,n){n&1&&e!==(e=G(at[t[4]].label)+"")&&H(l,e)},d(t){t&&_(l)}}}function dt(s,e){let l,t,n,r=e[5].length&&mt(e);return{key:s,first:null,c(){l=U(),r&&r.c(),t=U(),this.h()},l(o){l=U(),r&&r.l(o),t=U(),this.h()},h(){this.first=l},m(o,a){E(o,l,a),r&&r.m(o,a),E(o,t,a),n=!0},p(o,a){e=o,e[5].length?r?(r.p(e,a),a&1&&p(r,1)):(r=mt(e),r.c(),p(r,1),r.m(t.parentNode,t)):r&&(z(),h(r,1,1,()=>{r=null}),Q())},i(o){n||(p(r),n=!0)},o(o){h(r),n=!1},d(o){o&&(_(l),_(t)),r&&r.d(o)}}}function Ml(s){let e=[],l=new Map,t,n,r=ce(Object.entries(s[0]));const o=a=>a[4];for(let a=0;a1&&ut(s);return{c(){t&&t.c(),e=U()},l(n){t&&t.l(n),e=U()},m(n,r){t&&t.m(n,r),E(n,e,r),l=!0},p(n,[r]){n[1]>1?t?(t.p(n,r),r&2&&p(t,1)):(t=ut(n),t.c(),p(t,1),t.m(e.parentNode,e)):t&&(z(),h(t,1,1,()=>{t=null}),Q())},i(n){l||(p(t),l=!0)},o(n){h(t),l=!1},d(n){n&&_(e),t&&t.d(n)}}}function Fl(s,e,l){let t,{attributeGrouping:n}=e;const r=Gt(),o=a=>r("pillChange",{key:a});return s.$$set=a=>{"attributeGrouping"in a&&l(0,n=a.attributeGrouping)},s.$$.update=()=>{s.$$.dirty&1&&l(1,t=Object.values(n).reduce((a,f)=>(f.length&&(a+=1),a),0))},[n,t,r,o]}class qt extends ae{constructor(e){super(),ie(this,e,Fl,Ll,se,{attributeGrouping:0})}}function Rl(s){let e,l,t=K(s[0])+"",n,r,o,a,f;return{c(){e=b("div"),l=b("p"),n=L(t),r=A(),o=b("p"),a=b("span"),f=L(s[1]),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=w(e);l=k(c,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(_),r=S(c),o=k(c,"P",{class:!0});var m=w(o);a=k(m,"SPAN",{class:!0});var d=w(a);f=F(d,s[1]),d.forEach(_),m.forEach(_),c.forEach(_),this.h()},h(){v(l,"class","text-sm"),v(a,"class","select-all px-2 svelte-n0wabv"),W(a,"badge",!Ne(s[0])),v(o,"class","text-sm"),v(e,"class","content detail-row svelte-n0wabv")},m(i,c){E(i,e,c),g(e,l),g(l,n),g(e,r),g(e,o),g(o,a),g(a,f)},p(i,c){c&1&&t!==(t=K(i[0])+"")&&H(n,t),c&2&&H(f,i[1]),c&1&&W(a,"badge",!Ne(i[0]))},i:ne,o:ne,d(i){i&&_(e)}}}function Bl(s){let e,l,t=K(s[0])+"",n,r,o,a,f;return a=new Te({props:{copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Ql]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=L(t),r=A(),o=b("div"),I(a.$$.fragment),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=w(e);l=k(c,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(_),r=S(c),o=k(c,"DIV",{class:!0});var m=w(o);T(a.$$.fragment,m),m.forEach(_),c.forEach(_),this.h()},h(){v(l,"class","text-sm"),v(o,"class","text-sm"),v(e,"class","content detail-row svelte-n0wabv")},m(i,c){E(i,e,c),g(e,l),g(l,n),g(e,r),g(e,o),D(a,o,null),f=!0},p(i,c){(!f||c&1)&&t!==(t=K(i[0])+"")&&H(n,t);const u={};c&2&&(u.content=i[1]),c&2050&&(u.$$scope={dirty:c,ctx:i}),a.$set(u)},i(i){f||(p(a.$$.fragment,i),f=!0)},o(i){h(a.$$.fragment,i),f=!1},d(i){i&&_(e),y(a)}}}function ql(s){let e,l,t=K(s[0])+"",n,r,o,a,f;return a=new Te({props:{copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Zl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=L(t),r=A(),o=b("div"),I(a.$$.fragment),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=w(e);l=k(c,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(_),r=S(c),o=k(c,"DIV",{class:!0});var m=w(o);T(a.$$.fragment,m),m.forEach(_),c.forEach(_),this.h()},h(){v(l,"class","text-sm"),v(o,"class","text-sm"),v(e,"class","content detail-row svelte-n0wabv")},m(i,c){E(i,e,c),g(e,l),g(l,n),g(e,r),g(e,o),D(a,o,null),f=!0},p(i,c){(!f||c&1)&&t!==(t=K(i[0])+"")&&H(n,t);const u={};c&2&&(u.content=i[1]),c&2054&&(u.$$scope={dirty:c,ctx:i}),a.$set(u)},i(i){f||(p(a.$$.fragment,i),f=!0)},o(i){h(a.$$.fragment,i),f=!1},d(i){i&&_(e),y(a)}}}function Hl(s){let e,l,t=K(s[0])+"",n,r,o,a,f;return a=new Te({props:{copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title"),content:s[1],"container-class":"flex-row-reverse xl:flex-row",$$slots:{default:[Kl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=L(t),r=A(),o=b("div"),I(a.$$.fragment),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=w(e);l=k(c,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(_),r=S(c),o=k(c,"DIV",{class:!0});var m=w(o);T(a.$$.fragment,m),m.forEach(_),c.forEach(_),this.h()},h(){v(l,"class","text-sm"),v(o,"class","text-sm"),v(e,"class","content detail-row svelte-n0wabv")},m(i,c){E(i,e,c),g(e,l),g(l,n),g(e,r),g(e,o),D(a,o,null),f=!0},p(i,c){(!f||c&1)&&t!==(t=K(i[0])+"")&&H(n,t);const u={};c&2&&(u.content=i[1]),c&2050&&(u.$$scope={dirty:c,ctx:i}),a.$set(u)},i(i){f||(p(a.$$.fragment,i),f=!0)},o(i){h(a.$$.fragment,i),f=!1},d(i){i&&_(e),y(a)}}}function Wl(s){let e,l,t,n=K(s[0])+"",r,o,a,f,i,c,u;const m=[xl,Yl,Xl],d=[];function $(V,N){var B;return(B=V[1])!=null&&B.payloads?0:V[0]==="searchAttributes"?1:2}a=$(s),f=d[a]=m[a](s);let P=s[5]&&!s[3]&&_t(s);return{c(){e=b("div"),l=b("div"),t=b("p"),r=L(n),o=A(),f.c(),c=A(),P&&P.c(),this.h()},l(V){e=k(V,"DIV",{class:!0});var N=w(e);l=k(N,"DIV",{class:!0});var B=w(l);t=k(B,"P",{class:!0});var M=w(t);r=F(M,n),M.forEach(_),o=S(B),f.l(B),B.forEach(_),c=S(N),P&&P.l(N),N.forEach(_),this.h()},h(){v(t,"class","text-sm"),v(l,"class",i="flex flex-col "+(s[5]?"lg:w-1/2":"")),v(e,"class","content code-block-row svelte-n0wabv"),W(e,"code-with-stack-trace",s[5])},m(V,N){E(V,e,N),g(e,l),g(l,t),g(t,r),g(l,o),d[a].m(l,null),g(e,c),P&&P.m(e,null),u=!0},p(V,N){(!u||N&1)&&n!==(n=K(V[0])+"")&&H(r,n);let B=a;a=$(V),a===B?d[a].p(V,N):(z(),h(d[B],1,1,()=>{d[B]=null}),Q(),f=d[a],f?f.p(V,N):(f=d[a]=m[a](V),f.c()),p(f,1),f.m(l,null)),(!u||N&32&&i!==(i="flex flex-col "+(V[5]?"lg:w-1/2":"")))&&v(l,"class",i),V[5]&&!V[3]?P?(P.p(V,N),N&40&&p(P,1)):(P=_t(V),P.c(),p(P,1),P.m(e,null)):P&&(z(),h(P,1,1,()=>{P=null}),Q()),(!u||N&32)&&W(e,"code-with-stack-trace",V[5])},i(V){u||(p(f),p(P),u=!0)},o(V){h(f),h(P),u=!1},d(V){V&&_(e),d[a].d(),P&&P.d()}}}function zl(s){let e;return{c(){e=L(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&_(e)}}}function Ql(s){let e,l;return e=new $e({props:{href:je({namespace:s[7],queue:s[1]}),$$slots:{default:[zl]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=je({namespace:t[7],queue:t[1]})),n&2050&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Ul(s){let e;return{c(){e=L(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&_(e)}}}function Zl(s){var t;let e,l;return e=new $e({props:{href:he({namespace:((t=s[2])==null?void 0:t.namespace)||s[7],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[Ul]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){D(e,n,r),l=!0},p(n,r){var a;const o={};r&4&&(o.href=he({namespace:((a=n[2])==null?void 0:a.namespace)||n[7],workflow:n[2].workflowExecutionWorkflowId,run:n[2].workflowExecutionRunId})),r&2050&&(o.$$scope={dirty:r,ctx:n}),e.$set(o)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function Jl(s){let e;return{c(){e=L(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&_(e)}}}function Kl(s){let e,l;return e=new $e({props:{href:he({namespace:s[7],workflow:s[6],run:s[1]}),$$slots:{default:[Jl]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=he({namespace:t[7],workflow:t[6],run:t[1]})),n&2050&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Xl(s){let e,l;return e=new Re({props:{value:s[4],$$slots:{default:[en,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&16&&(r.value=t[4]),n&3112&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Yl(s){let e,l;return e=new Re({props:{key:"searchAttributes",value:{searchAttributes:s[4]},$$slots:{default:[tn,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&16&&(r.value={searchAttributes:t[4]}),n&3112&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function xl(s){let e,l;return e=new Re({props:{value:s[1],key:"payloads",$$slots:{default:[ln,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.value=t[1]),n&3112&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function en(s){let e,l;return e=new Pe({props:{content:s[10],class:s[5]?"mb-2":"",maxHeight:384,inline:s[3],copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title")}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&1024&&(r.content=t[10]),n&32&&(r.class=t[5]?"mb-2":""),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function tn(s){let e,l;return e=new Pe({props:{content:s[10],class:s[5]?"mb-2":"",maxHeight:384,inline:s[3],copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title")}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&1024&&(r.content=t[10]),n&32&&(r.class=t[5]?"mb-2":""),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ln(s){let e,l;return e=new Pe({props:{content:s[10],class:s[5]?"mb-2":"",maxHeight:384,inline:s[3],copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title")}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&1024&&(r.content=t[10]),n&32&&(r.class=t[5]?"mb-2":""),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function _t(s){let e,l,t=G("workflows.call-stack-tab")+"",n,r,o,a;return o=new Pe({props:{content:s[5],language:"text",class:"mb-2 h-full lg:pr-2",copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title")}}),{c(){e=b("div"),l=b("p"),n=L(t),r=A(),I(o.$$.fragment),this.h()},l(f){e=k(f,"DIV",{class:!0});var i=w(e);l=k(i,"P",{class:!0});var c=w(l);n=F(c,t),c.forEach(_),r=S(i),T(o.$$.fragment,i),i.forEach(_),this.h()},h(){v(l,"class","text-sm"),v(e,"class","flex flex-col lg:w-1/2")},m(f,i){E(f,e,i),g(e,l),g(l,n),g(e,r),D(o,e,null),a=!0},p(f,i){const c={};i&32&&(c.content=f[5]),o.$set(c)},i(f){a||(p(o.$$.fragment,f),a=!0)},o(f){h(o.$$.fragment,f),a=!1},d(f){f&&_(e),y(o)}}}function nn(s){let e,l,t,n,r,o,a,f;const i=[Wl,Hl,ql,Bl,Rl],c=[];function u(m,d){return d&1&&(l=null),d&5&&(t=null),d&1&&(n=null),typeof m[1]=="object"?0:(l==null&&(l=!!Nt(m[0])),l?1:(t==null&&(t=!!Ot(m[0],m[2])),t?2:(n==null&&(n=!!jt(m[0])),n?3:4)))}return r=u(s,-1),o=c[r]=i[r](s),{c(){e=b("div"),o.c(),this.h()},l(m){e=k(m,"DIV",{class:!0});var d=w(e);o.l(d),d.forEach(_),this.h()},h(){v(e,"class",a="row "+s[8].class+" svelte-n0wabv")},m(m,d){E(m,e,d),c[r].m(e,null),f=!0},p(m,[d]){let $=r;r=u(m,d),r===$?c[r].p(m,d):(z(),h(c[$],1,1,()=>{c[$]=null}),Q(),o=c[r],o?o.p(m,d):(o=c[r]=i[r](m),o.c()),p(o,1),o.m(e,null)),(!f||d&256&&a!==(a="row "+m[8].class+" svelte-n0wabv"))&&v(e,"class",a)},i(m){f||(p(o),f=!0)},o(m){h(o),f=!1},d(m){m&&_(e),c[r].d()}}}function rn(s,e,l){let t,n,r;te(s,be,m=>l(9,r=m));let{key:o}=e,{value:a}=e,{attributes:f}=e,{inline:i=!1}=e;const{workflow:c,namespace:u}=r.params;return s.$$set=m=>{l(8,e=ye(ye({},e),Ge(m))),"key"in m&&l(0,o=m.key),"value"in m&&l(1,a=m.value),"attributes"in m&&l(2,f=m.attributes),"inline"in m&&l(3,i=m.inline)},s.$$.update=()=>{s.$$.dirty&2&&l(4,t=sl(a)),s.$$.dirty&16&&l(5,n=al(t))},e=Ge(e),[o,a,f,i,t,n,c,u,e]}class Ht extends ae{constructor(e){super(),ie(this,e,rn,nn,se,{key:0,value:1,attributes:2,inline:3})}}function pt(s,e,l){const t=s.slice();return t[8]=e[l][0],t[9]=e[l][1],t}function sn(s){let e=s[8]+"",l;return{c(){l=L(e)},l(t){l=F(t,e)},m(t,n){E(t,l,n)},p(t,n){n&1&&e!==(e=t[8]+"")&&H(l,e)},d(t){t&&_(l)}}}function ht(s,e){let l,t,n,r,o,a,f,i,c,u=(Oe(e[9])?"LocalActivity":e[9].eventType)+"",m,d,$,P,V,N,B;a=new $e({props:{class:"truncate",href:Qe({eventId:e[8],namespace:e[3],workflow:e[5],run:e[4]}),$$slots:{default:[sn]},$$scope:{ctx:e}}});function M(){return e[7](e[8])}return{key:s,first:null,c(){l=b("tr"),t=b("td"),n=A(),r=b("td"),o=b("p"),I(a.$$.fragment),f=A(),i=b("td"),c=b("p"),m=L(u),d=A(),$=b("td"),P=A(),this.h()},l(j){l=k(j,"TR",{class:!0});var R=w(l);t=k(R,"TD",{class:!0}),w(t).forEach(_),n=S(R),r=k(R,"TD",{class:!0});var le=w(r);o=k(le,"P",{class:!0});var oe=w(o);T(a.$$.fragment,oe),oe.forEach(_),le.forEach(_),f=S(R),i=k(R,"TD",{});var ue=w(i);c=k(ue,"P",{class:!0});var fe=w(c);m=F(fe,u),fe.forEach(_),ue.forEach(_),d=S(R),$=k(R,"TD",{}),w($).forEach(_),P=S(R),R.forEach(_),this.h()},h(){v(t,"class","w-1/12"),v(o,"class","truncate text-sm text-slate-500 md:text-base"),v(r,"class","w-24"),v(c,"class","event-type truncate text-sm md:text-base svelte-v71d8i"),v(l,"class","row svelte-v71d8i"),W(l,"active",e[8]===e[1]),W(l,"failure",qe(e[9])),W(l,"canceled",He(e[9])),W(l,"terminated",We(e[9])),this.first=l},m(j,R){E(j,l,R),g(l,t),g(l,n),g(l,r),g(r,o),D(a,o,null),g(l,f),g(l,i),g(i,c),g(c,m),g(l,d),g(l,$),g(l,P),V=!0,N||(B=Ye(l,"click",xe(Ut(M))),N=!0)},p(j,R){e=j;const le={};R&57&&(le.href=Qe({eventId:e[8],namespace:e[3],workflow:e[5],run:e[4]})),R&4097&&(le.$$scope={dirty:R,ctx:e}),a.$set(le),(!V||R&1)&&u!==(u=(Oe(e[9])?"LocalActivity":e[9].eventType)+"")&&H(m,u),(!V||R&3)&&W(l,"active",e[8]===e[1]),(!V||R&1)&&W(l,"failure",qe(e[9])),(!V||R&1)&&W(l,"canceled",He(e[9])),(!V||R&1)&&W(l,"terminated",We(e[9]))},i(j){V||(p(a.$$.fragment,j),V=!0)},o(j){h(a.$$.fragment,j),V=!1},d(j){j&&_(l),y(a),N=!1,B()}}}function an(s){let e=[],l=new Map,t,n,r=ce([...s[0].events].reverse());const o=a=>a[8];for(let a=0;al(6,o=u));let{eventGroup:a}=e,{selectedId:f}=e,{onGroupClick:i}=e;const c=u=>i(u);return s.$$set=u=>{"eventGroup"in u&&l(0,a=u.eventGroup),"selectedId"in u&&l(1,f=u.selectedId),"onGroupClick"in u&&l(2,i=u.onGroupClick)},s.$$.update=()=>{s.$$.dirty&64&&l(5,{workflow:t,run:n,namespace:r}=o.params,t,(l(4,n),l(6,o)),(l(3,r),l(6,o)))},[a,f,i,r,n,t,o,c]}class cn extends ae{constructor(e){super(),ie(this,e,fn,on,se,{eventGroup:0,selectedId:1,onGroupClick:2})}}function gt(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function $t(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function un(s){let e,l,t,n=[],r=new Map,o;l=new qt({props:{attributeGrouping:s[4]}}),l.$on("pillChange",s[7]);let a=ce(s[6]);const f=i=>i[10];for(let i=0;im[10];for(let m=0;m{o=null}),Q())},i(f){r||(p(o),r=!0)},o(f){h(o),r=!1},d(f){f&&(_(l),_(n)),o&&o.d(f)}}}function kt(s){let e,l;return e=new Ht({props:{key:s[10],value:s[11],attributes:s[3],class:"w-full"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&64&&(r.key=t[10]),n&64&&(r.value=t[11]),n&8&&(r.attributes=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function wt(s,e){var a;let l,t=(a=e[4][e[5]])==null?void 0:a.includes(e[10]),n,r,o=t&&kt(e);return{key:s,first:null,c(){l=U(),o&&o.c(),n=U(),this.h()},l(f){l=U(),o&&o.l(f),n=U(),this.h()},h(){this.first=l},m(f,i){E(f,l,i),o&&o.m(f,i),E(f,n,i),r=!0},p(f,i){var c;e=f,i&112&&(t=(c=e[4][e[5]])==null?void 0:c.includes(e[10])),t?o?(o.p(e,i),i&112&&p(o,1)):(o=kt(e),o.c(),p(o,1),o.m(n.parentNode,n)):o&&(z(),h(o,1,1,()=>{o=null}),Q())},i(f){r||(p(o),r=!0)},o(f){h(o),r=!1},d(f){f&&(_(l),_(n)),o&&o.d(f)}}}function dn(s){let e,l,t,n,r;const o=[mn,un],a=[];function f(i,c){return c&6&&(e=null),e==null&&(e=!!(i[2]&&ve(i[1]))),e?0:1}return l=f(s,-1),t=a[l]=o[l](s),{c(){t.c(),n=U()},l(i){t.l(i),n=U()},m(i,c){a[l].m(i,c),E(i,n,c),r=!0},p(i,[c]){let u=l;l=f(i,c),l===u?a[l].p(i,c):(z(),h(a[u],1,1,()=>{a[u]=null}),Q(),t=a[l],t?t.p(i,c):(t=a[l]=o[l](i),t.c()),p(t,1),t.m(n.parentNode,n))},i(i){r||(p(t),r=!0)},o(i){h(t),r=!1},d(i){i&&_(n),a[l].d(i)}}}function _n(s,e,l){let t,n,r,o,{event:a}=e,{currentEvent:f}=e,{compact:i=!1}=e,{selectedId:c}=e;const u=d=>{l(5,r=d.detail.key)},m=d=>l(0,c=d);return s.$$set=d=>{"event"in d&&l(1,a=d.event),"currentEvent"in d&&l(9,f=d.currentEvent),"compact"in d&&l(2,i=d.compact),"selectedId"in d&&l(0,c=d.selectedId)},s.$$.update=()=>{s.$$.dirty&516&&l(3,t=Mt(f,{compact:i})),s.$$.dirty&10&&l(4,n=ul(a,t)),s.$$.dirty&16&&l(5,r=Object.keys(n).find(d=>n[d].length)),s.$$.dirty&8&&l(6,o=Object.entries(t))},[c,a,i,t,n,r,o,u,m,f]}class pn extends ae{constructor(e){super(),ie(this,e,_n,dn,se,{event:1,currentEvent:9,compact:2,selectedId:0})}}function hn(s){let e,l,t=K(s[0])+"",n,r,o,a,f;return{c(){e=b("div"),l=b("p"),n=L(t),r=A(),o=b("p"),a=b("span"),f=L(s[1]),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=w(e);l=k(c,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(_),r=S(c),o=k(c,"P",{class:!0});var m=w(o);a=k(m,"SPAN",{class:!0});var d=w(a);f=F(d,s[1]),d.forEach(_),m.forEach(_),c.forEach(_),this.h()},h(){v(l,"class","mr-3 truncate text-sm"),v(a,"class","w-full select-all text-slate-700 svelte-17d0us2"),W(a,"badge",!Ne(s[0])),v(o,"class","truncate text-right text-sm xl:text-left"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(i,c){E(i,e,c),g(e,l),g(l,n),g(e,r),g(e,o),g(o,a),g(a,f)},p(i,c){c&1&&t!==(t=K(i[0])+"")&&H(n,t),c&2&&H(f,i[1]),c&1&&W(a,"badge",!Ne(i[0]))},i:ne,o:ne,d(i){i&&_(e)}}}function gn(s){let e,l,t=K(s[0])+"",n,r,o,a,f;return a=new Te({props:{copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title"),content:s[1],$$slots:{default:[wn]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=L(t),r=A(),o=b("div"),I(a.$$.fragment),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=w(e);l=k(c,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(_),r=S(c),o=k(c,"DIV",{class:!0});var m=w(o);T(a.$$.fragment,m),m.forEach(_),c.forEach(_),this.h()},h(){v(l,"class","mr-3 truncate text-sm"),v(o,"class","truncate text-sm"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(i,c){E(i,e,c),g(e,l),g(l,n),g(e,r),g(e,o),D(a,o,null),f=!0},p(i,c){(!f||c&1)&&t!==(t=K(i[0])+"")&&H(n,t);const u={};c&2&&(u.content=i[1]),c&514&&(u.$$scope={dirty:c,ctx:i}),a.$set(u)},i(i){f||(p(a.$$.fragment,i),f=!0)},o(i){h(a.$$.fragment,i),f=!1},d(i){i&&_(e),y(a)}}}function $n(s){let e,l,t=K(s[0])+"",n,r,o,a,f;return a=new Te({props:{copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[In]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=L(t),r=A(),o=b("div"),I(a.$$.fragment),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=w(e);l=k(c,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(_),r=S(c),o=k(c,"DIV",{class:!0});var m=w(o);T(a.$$.fragment,m),m.forEach(_),c.forEach(_),this.h()},h(){v(l,"class","truncate text-sm"),v(o,"class","truncate text-sm"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(i,c){E(i,e,c),g(e,l),g(l,n),g(e,r),g(e,o),D(a,o,null),f=!0},p(i,c){(!f||c&1)&&t!==(t=K(i[0])+"")&&H(n,t);const u={};c&2&&(u.content=i[1]),c&518&&(u.$$scope={dirty:c,ctx:i}),a.$set(u)},i(i){f||(p(a.$$.fragment,i),f=!0)},o(i){h(a.$$.fragment,i),f=!1},d(i){i&&_(e),y(a)}}}function vn(s){let e,l,t=K(s[0])+"",n,r,o,a,f;return a=new Te({props:{copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Dn]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=L(t),r=A(),o=b("div"),I(a.$$.fragment),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=w(e);l=k(c,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(_),r=S(c),o=k(c,"DIV",{class:!0});var m=w(o);T(a.$$.fragment,m),m.forEach(_),c.forEach(_),this.h()},h(){v(l,"class","mr-3 truncate text-sm"),v(o,"class","truncate text-sm"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(i,c){E(i,e,c),g(e,l),g(l,n),g(e,r),g(e,o),D(a,o,null),f=!0},p(i,c){(!f||c&1)&&t!==(t=K(i[0])+"")&&H(n,t);const u={};c&2&&(u.content=i[1]),c&514&&(u.$$scope={dirty:c,ctx:i}),a.$set(u)},i(i){f||(p(a.$$.fragment,i),f=!0)},o(i){h(a.$$.fragment,i),f=!1},d(i){i&&_(e),y(a)}}}function bn(s){let e,l,t=K(s[0])+"",n,r,o,a;return o=new Re({props:{value:s[1],key:"payloads",$$slots:{default:[yn,({decodedValue:f})=>({8:f}),({decodedValue:f})=>f?256:0]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=L(t),r=A(),I(o.$$.fragment),this.h()},l(f){e=k(f,"DIV",{class:!0});var i=w(e);l=k(i,"P",{class:!0});var c=w(l);n=F(c,t),c.forEach(_),r=S(i),T(o.$$.fragment,i),i.forEach(_),this.h()},h(){v(l,"class","min-w-fit text-sm"),v(e,"class","flex w-full flex-wrap items-center justify-between gap-1 pr-1 xl:flex-nowrap xl:gap-4")},m(f,i){E(f,e,i),g(e,l),g(l,n),g(e,r),D(o,e,null),a=!0},p(f,i){(!a||i&1)&&t!==(t=K(f[0])+"")&&H(n,t);const c={};i&2&&(c.value=f[1]),i&776&&(c.$$scope={dirty:i,ctx:f}),o.$set(c)},i(f){a||(p(o.$$.fragment,f),a=!0)},o(f){h(o.$$.fragment,f),a=!1},d(f){f&&_(e),y(o)}}}function kn(s){let e;return{c(){e=L(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&_(e)}}}function wn(s){let e,l;return e=new $e({props:{class:"truncate",href:je({namespace:s[5],queue:s[1]}),$$slots:{default:[kn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=je({namespace:t[5],queue:t[1]})),n&514&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function En(s){let e;return{c(){e=L(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&_(e)}}}function In(s){let e,l;return e=new $e({props:{class:"truncate",href:he({namespace:s[5],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[En]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.href=he({namespace:t[5],workflow:t[2].workflowExecutionWorkflowId,run:t[2].workflowExecutionRunId})),n&514&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Tn(s){let e;return{c(){e=L(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&_(e)}}}function Dn(s){let e,l;return e=new $e({props:{class:"truncate",href:he({namespace:s[5],workflow:s[4],run:s[1]}),$$slots:{default:[Tn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=he({namespace:t[5],workflow:t[4],run:t[1]})),n&514&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function yn(s){let e,l;return e=new Pe({props:{content:s[8],inline:s[3],copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title")}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&256&&(r.content=t[8]),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Pn(s){let e,l,t,n,r,o,a,f;const i=[bn,vn,$n,gn,hn],c=[];function u(m,d){return d&1&&(l=null),d&5&&(t=null),d&1&&(n=null),typeof m[1]=="object"?0:(l==null&&(l=!!Nt(m[0])),l?1:(t==null&&(t=!!Ot(m[0],m[2])),t?2:(n==null&&(n=!!jt(m[0])),n?3:4)))}return r=u(s,-1),o=c[r]=i[r](s),{c(){e=b("div"),o.c(),this.h()},l(m){e=k(m,"DIV",{class:!0});var d=w(e);o.l(d),d.forEach(_),this.h()},h(){v(e,"class",a="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+s[6].class+" svelte-17d0us2")},m(m,d){E(m,e,d),c[r].m(e,null),f=!0},p(m,[d]){let $=r;r=u(m,d),r===$?c[r].p(m,d):(z(),h(c[$],1,1,()=>{c[$]=null}),Q(),o=c[r],o?o.p(m,d):(o=c[r]=i[r](m),o.c()),p(o,1),o.m(e,null)),(!f||d&64&&a!==(a="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+m[6].class+" svelte-17d0us2"))&&v(e,"class",a)},i(m){f||(p(o),f=!0)},o(m){h(o),f=!1},d(m){m&&_(e),c[r].d()}}}function Vn(s,e,l){let t;te(s,be,c=>l(7,t=c));let{key:n}=e,{value:r}=e,{attributes:o}=e,{inline:a=!1}=e;const{workflow:f,namespace:i}=t.params;return s.$$set=c=>{l(6,e=ye(ye({},e),Ge(c))),"key"in c&&l(0,n=c.key),"value"in c&&l(1,r=c.value),"attributes"in c&&l(2,o=c.attributes),"inline"in c&&l(3,a=c.inline)},e=Ge(e),[n,r,o,a,f,i,e]}class Cn extends ae{constructor(e){super(),ie(this,e,Vn,Pn,se,{key:0,value:1,attributes:2,inline:3})}}function An(s){let e=s[0].id+"",l;return{c(){l=L(e)},l(t){l=F(t,e)},m(t,n){E(t,l,n)},p(t,n){n&1&&e!==(e=t[0].id+"")&&H(l,e)},d(t){t&&_(l)}}}function Sn(s){var n;let e,l=st((n=s[0])==null?void 0:n.eventTime,s[14],{relative:s[15]})+"",t;return{c(){e=b("p"),t=L(l),this.h()},l(r){e=k(r,"P",{class:!0});var o=w(e);t=F(o,l),o.forEach(_),this.h()},h(){v(e,"class","break-word truncate text-sm md:whitespace-normal md:text-base")},m(r,o){E(r,e,o),g(e,t)},p(r,o){var a;o&49153&&l!==(l=st((a=r[0])==null?void 0:a.eventTime,r[14],{relative:r[15]})+"")&&H(t,l)},i:ne,o:ne,d(r){r&&_(e)}}}function Gn(s){let e,l,t,n,r=s[9]&&Et(s),o=s[8]&&s[8]!=="0ms"&&It(s);return{c(){e=b("p"),r&&r.c(),l=A(),o&&o.c(),t=U(),this.h()},l(a){e=k(a,"P",{class:!0});var f=w(e);r&&r.l(f),f.forEach(_),l=S(a),o&&o.l(a),t=U(),this.h()},h(){v(e,"class","break-word truncate text-sm md:whitespace-normal")},m(a,f){E(a,e,f),r&&r.m(e,null),E(a,l,f),o&&o.m(a,f),E(a,t,f),n=!0},p(a,f){a[9]?r?r.p(a,f):(r=Et(a),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a[8]&&a[8]!=="0ms"?o?(o.p(a,f),f&256&&p(o,1)):(o=It(a),o.c(),p(o,1),o.m(t.parentNode,t)):o&&(z(),h(o,1,1,()=>{o=null}),Q())},i(a){n||(p(o),n=!0)},o(a){h(o),n=!1},d(a){a&&(_(e),_(l),_(t)),r&&r.d(),o&&o.d(a)}}}function Et(s){let e=s[12]?"-":"+",l,t;return{c(){l=L(e),t=L(s[9])},l(n){l=F(n,e),t=F(n,s[9])},m(n,r){E(n,l,r),E(n,t,r)},p(n,r){r&4096&&e!==(e=n[12]?"-":"+")&&H(l,e),r&512&&H(t,n[9])},d(n){n&&(_(l),_(t))}}}function It(s){let e,l,t,n,r,o;return l=new ge({props:{class:"inline",name:"clock"}}),{c(){e=b("div"),I(l.$$.fragment),t=A(),n=b("p"),r=L(s[8]),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=w(e);T(l.$$.fragment,f),t=S(f),n=k(f,"P",{class:!0});var i=w(n);r=F(i,s[8]),i.forEach(_),f.forEach(_),this.h()},h(){v(n,"class","break-word truncate text-sm md:whitespace-normal"),v(e,"class","flex flex-row items-center gap-1")},m(a,f){E(a,e,f),D(l,e,null),g(e,t),g(e,n),g(n,r),o=!0},p(a,f){(!o||f&256)&&H(r,a[8])},i(a){o||(p(l.$$.fragment,a),o=!0)},o(a){h(l.$$.fragment,a),o=!1},d(a){a&&_(e),y(l)}}}function Tt(s){let e,l;return e=new ge({props:{class:"mr-1.5 inline text-red-700",name:"clock"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Dt(s){let e,l;return e=new ge({props:{class:"mr-1.5 inline text-yellow-700",name:"clock"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function yt(s){let e,l;return e=new ge({props:{class:"mr-1.5 inline text-pink-700",name:"clock"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Pt(s){let e,l,t;return l=new ge({props:{class:"inline",name:"chevron-up"}}),{c(){e=b("div"),I(l.$$.fragment)},l(n){e=k(n,"DIV",{});var r=w(e);T(l.$$.fragment,r),r.forEach(_)},m(n,r){E(n,e,r),D(l,e,null),t=!0},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&_(e),y(l)}}}function Vt(s){let e,l,t,n,r,o,a,f;const i=[rt(s[6]),{attributes:s[10]},{class:"invisible h-0 w-0 md:visible md:h-auto md:w-auto"},{inline:!0}];let c={};for(let u=0;uYt(t,"selectedId",a)),{c(){e=b("tr"),l=b("td"),I(t.$$.fragment),this.h()},l(i){e=k(i,"TR",{class:!0});var c=w(e);l=k(c,"TD",{class:!0,colspan:!0});var u=w(l);T(t.$$.fragment,u),u.forEach(_),c.forEach(_),this.h()},h(){v(l,"class","expanded-cell svelte-945wwo"),v(l,"colspan","6"),v(e,"class","svelte-945wwo"),W(e,"typedError",s[3])},m(i,c){E(i,e,c),g(e,l),D(t,l,null),o=!0},p(i,c){const u={};c&1&&(u.event=i[0]),c&64&&(u.currentEvent=i[6]),c&2&&(u.compact=i[1]),!n&&c&32&&(n=!0,u.selectedId=i[5],Jt(()=>n=!1)),t.$set(u),(!o||c&8)&&W(e,"typedError",i[3])},i(i){o||(p(t.$$.fragment,i),i&&(r||Kt(()=>{r=xt(e,rl,{}),r.start()})),o=!0)},o(i){h(t.$$.fragment,i),o=!1},d(i){i&&_(e),y(t)}}}function Nn(s){let e,l,t,n,r,o,a,f,i,c,u,m,d,$,P,V,N,B,M,j=(ve(s[0])?s[0].displayName:Oe(s[0])?"LocalActivity":s[0].name)+"",R,le,oe,ue,fe,de,me,ke,_e,re,De,Ve;r=new $e({props:{class:"truncate","data-testid":"link",href:s[13],$$slots:{default:[An]},$$scope:{ctx:s}}});const q=[Gn,Sn],pe=[];function et(C,O){return C[11]?0:1}i=et(s),c=pe[i]=q[i](s);let X=s[1]&&s[17]&&Tt(),Y=s[1]&&s[18]&&Dt(),x=s[1]&&s[19]&&yt(),ee=s[7]&&Pt(),Z=!s[7]&&Vt(s),J=s[7]&&Ct(s);return{c(){e=b("tr"),l=b("td"),t=A(),n=b("td"),I(r.$$.fragment),o=A(),a=b("td"),f=b("div"),c.c(),u=A(),m=b("td"),d=b("div"),$=b("div"),X&&X.c(),P=A(),Y&&Y.c(),V=A(),x&&x.c(),N=A(),B=b("div"),M=b("p"),R=L(j),le=A(),ee&&ee.c(),ue=A(),Z&&Z.c(),fe=A(),de=b("td"),ke=A(),J&&J.c(),_e=U(),this.h()},l(C){e=k(C,"TR",{class:!0,id:!0,"data-testid":!0});var O=w(e);l=k(O,"TD",{}),w(l).forEach(_),t=S(O),n=k(O,"TD",{class:!0});var we=w(n);T(r.$$.fragment,we),we.forEach(_),o=S(O),a=k(O,"TD",{class:!0});var Ee=w(a);f=k(Ee,"DIV",{class:!0});var tt=w(f);c.l(tt),tt.forEach(_),Ee.forEach(_),u=S(O),m=k(O,"TD",{colspan:!0,class:!0});var lt=w(m);d=k(lt,"DIV",{class:!0});var Ce=w(d);$=k(Ce,"DIV",{});var Ie=w($);X&&X.l(Ie),P=S(Ie),Y&&Y.l(Ie),V=S(Ie),x&&x.l(Ie),Ie.forEach(_),N=S(Ce),B=k(Ce,"DIV",{class:!0});var Ae=w(B);M=k(Ae,"P",{class:!0});var nt=w(M);R=F(nt,j),nt.forEach(_),le=S(Ae),ee&&ee.l(Ae),Ae.forEach(_),Ce.forEach(_),lt.forEach(_),ue=S(O),Z&&Z.l(O),fe=S(O),de=k(O,"TD",{}),w(de).forEach(_),O.forEach(_),ke=S(C),J&&J.l(C),_e=U(),this.h()},h(){v(n,"class","w-24 text-left"),v(f,"class","flex flex-col gap-0"),v(a,"class","text-left"),v(M,"class","event-name truncate text-sm font-semibold md:text-base svelte-945wwo"),v(B,"class","flex w-full items-center justify-between truncate"),v(d,"class","flex"),v(m,"colspan",oe=s[7]?2:1),v(m,"class","text-right text-sm font-normal xl:text-left"),v(e,"class","row svelte-945wwo"),v(e,"id",me=s[0].id),v(e,"data-testid","event-summary-row"),W(e,"expanded",s[7]&&!s[2]),W(e,"active",s[4]),W(e,"failure",s[17]),W(e,"canceled",s[18]),W(e,"terminated",s[19]),W(e,"typedError",s[3])},m(C,O){E(C,e,O),g(e,l),g(e,t),g(e,n),D(r,n,null),g(e,o),g(e,a),g(a,f),pe[i].m(f,null),g(e,u),g(e,m),g(m,d),g(d,$),X&&X.m($,null),g($,P),Y&&Y.m($,null),g($,V),x&&x.m($,null),g(d,N),g(d,B),g(B,M),g(M,R),g(B,le),ee&&ee.m(B,null),g(e,ue),Z&&Z.m(e,null),g(e,fe),g(e,de),E(C,ke,O),J&&J.m(C,O),E(C,_e,O),re=!0,De||(Ve=Ye(e,"click",xe(s[16])),De=!0)},p(C,[O]){const we={};O&8192&&(we.href=C[13]),O&1073741825&&(we.$$scope={dirty:O,ctx:C}),r.$set(we);let Ee=i;i=et(C),i===Ee?pe[i].p(C,O):(z(),h(pe[Ee],1,1,()=>{pe[Ee]=null}),Q(),c=pe[i],c?c.p(C,O):(c=pe[i]=q[i](C),c.c()),p(c,1),c.m(f,null)),C[1]&&C[17]?X?O&2&&p(X,1):(X=Tt(),X.c(),p(X,1),X.m($,P)):X&&(z(),h(X,1,1,()=>{X=null}),Q()),C[1]&&C[18]?Y?O&2&&p(Y,1):(Y=Dt(),Y.c(),p(Y,1),Y.m($,V)):Y&&(z(),h(Y,1,1,()=>{Y=null}),Q()),C[1]&&C[19]?x?O&2&&p(x,1):(x=yt(),x.c(),p(x,1),x.m($,null)):x&&(z(),h(x,1,1,()=>{x=null}),Q()),(!re||O&1)&&j!==(j=(ve(C[0])?C[0].displayName:Oe(C[0])?"LocalActivity":C[0].name)+"")&&H(R,j),C[7]?ee?O&128&&p(ee,1):(ee=Pt(),ee.c(),p(ee,1),ee.m(B,null)):ee&&(z(),h(ee,1,1,()=>{ee=null}),Q()),(!re||O&128&&oe!==(oe=C[7]?2:1))&&v(m,"colspan",oe),C[7]?Z&&(z(),h(Z,1,1,()=>{Z=null}),Q()):Z?(Z.p(C,O),O&128&&p(Z,1)):(Z=Vt(C),Z.c(),p(Z,1),Z.m(e,fe)),(!re||O&1&&me!==(me=C[0].id))&&v(e,"id",me),(!re||O&132)&&W(e,"expanded",C[7]&&!C[2]),(!re||O&16)&&W(e,"active",C[4]),(!re||O&8)&&W(e,"typedError",C[3]),C[7]?J?(J.p(C,O),O&128&&p(J,1)):(J=Ct(C),J.c(),p(J,1),J.m(_e.parentNode,_e)):J&&(z(),h(J,1,1,()=>{J=null}),Q())},i(C){re||(p(r.$$.fragment,C),p(c),p(X),p(Y),p(x),p(ee),p(Z),p(J),re=!0)},o(C){h(r.$$.fragment,C),h(c),h(X),h(Y),h(x),h(ee),h(Z),h(J),re=!1},d(C){C&&(_(e),_(ke),_(_e)),y(r),pe[i].d(),X&&X.d(),Y&&Y.d(),x&&x.d(),ee&&ee.d(),Z&&Z.d(),J&&J.d(C),De=!1,Ve()}}}function On(s,e,l){let t,n,r,o,a,f,i,c,u,m,d,$,P,V,N,B,M;te(s,Se,q=>l(26,P=q)),te(s,ze,q=>l(27,V=q)),te(s,be,q=>l(28,N=q)),te(s,fl,q=>l(14,B=q)),te(s,cl,q=>l(15,M=q));let{event:j}=e,{initialItem:R}=e,{compact:le=!1}=e,{expandAll:oe=!1}=e,{typedError:ue=!1}=e,{active:fe=!1}=e,{onRowClick:de=ne}=e,me=ve(j)?Array.from(j.events.keys()).pop():j.id;const ke=()=>{l(7,a=!a),de()},_e=qe(j),re=He(j),De=We(j);function Ve(q){me=q,l(5,me)}return s.$$set=q=>{"event"in q&&l(0,j=q.event),"initialItem"in q&&l(20,R=q.initialItem),"compact"in q&&l(1,le=q.compact),"expandAll"in q&&l(2,oe=q.expandAll),"typedError"in q&&l(3,ue=q.typedError),"active"in q&&l(4,fe=q.active),"onRowClick"in q&&l(21,de=q.onRowClick)},s.$$.update=()=>{s.$$.dirty&268435456&&l(24,{workflow:t,run:n,namespace:r}=N.params,t,(l(23,n),l(28,N)),(l(25,r),l(28,N))),s.$$.dirty&58720257&&l(13,o=Qe({eventId:j.id,namespace:r,workflow:t,run:n})),s.$$.dirty&4&&l(7,a=oe),s.$$.dirty&134217728&&l(12,f=V==="descending"),s.$$.dirty&67108864&&l(22,i=P==="true"),s.$$.dirty&5242881&&l(11,c=i&&R&&j.id!==R.id),s.$$.dirty&3&&l(10,u=Mt(j,{compact:le})),s.$$.dirty&33&&l(6,m=ve(j)?j.events.get(me):j),s.$$.dirty&1048641&&l(9,d=it({start:R.eventTime,end:ve(j)?j.initialEvent.eventTime:m.eventTime,includeMilliseconds:!0})),s.$$.dirty&1&&l(8,$=ve(j)?it({start:j.initialEvent.eventTime,end:j.lastEvent.eventTime,includeMilliseconds:!0}):"")},[j,le,oe,ue,fe,me,m,a,$,d,u,c,f,o,B,M,ke,_e,re,De,R,de,i,n,t,r,P,V,N,Ve]}class Lr extends ae{constructor(e){super(),ie(this,e,On,Nn,se,{event:0,initialItem:20,compact:1,expandAll:2,typedError:3,active:4,onRowClick:21})}}const jn=({compact:s,sortOrder:e,showElapsed:l})=>{if(!((s||e==="descending")&&l==="false"))return`${e}:${l}`};function At(s,e,l){const t=s.slice();return t[9]=e[l].option,t[10]=e[l].label,t}function Mn(s){let e,l,t,n=G("common.date-and-time")+"",r,o;return e=new ge({props:{class:"md:hidden",name:"clock"}}),{c(){I(e.$$.fragment),l=A(),t=b("span"),r=L(n),this.h()},l(a){T(e.$$.fragment,a),l=S(a),t=k(a,"SPAN",{class:!0});var f=w(t);r=F(f,n),f.forEach(_),this.h()},h(){v(t,"class","max-md:hidden")},m(a,f){D(e,a,f),E(a,l,f),E(a,t,f),g(t,r),o=!0},p:ne,i(a){o||(p(e.$$.fragment,a),o=!0)},o(a){h(e.$$.fragment,a),o=!1},d(a){a&&(_(l),_(t)),y(e,a)}}}function Ln(s){let e=s[10]+"",l;return{c(){l=L(e)},l(t){l=F(t,e)},m(t,n){E(t,l,n)},p:ne,d(t){t&&_(l)}}}function St(s){let e,l;function t(){return s[7](s[9])}return e=new Ft({props:{selected:s[1]===s[9],$$slots:{default:[Ln]},$$scope:{ctx:s}}}),e.$on("click",t),{c(){I(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){D(e,n,r),l=!0},p(n,r){s=n;const o={};r&2&&(o.selected=s[1]===s[9]),r&8192&&(o.$$scope={dirty:r,ctx:s}),e.$set(o)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function Fn(s){let e=G("events.show-elapsed-time")+"",l;return{c(){l=L(e)},l(t){l=F(t,e)},m(t,n){E(t,l,n)},p:ne,d(t){t&&_(l)}}}function Rn(s){let e,l,t,n,r,o=ce(s[3]),a=[];for(let i=0;ih(a[i],1,1,()=>{a[i]=null});return l=new $l({}),n=new Ft({props:{selected:s[0]==="true",$$slots:{default:[Fn]},$$scope:{ctx:s}}}),n.$on("click",s[5]),{c(){for(let i=0;il(0,n=m)),te(s,ze,m=>l(1,r=m)),te(s,be,m=>l(8,o=m));let{compact:a}=e,f=[{label:G("events.sort-ascending"),option:"ascending"},{label:G("events.sort-descending"),option:"descending"}];const i=m=>{Be(ze,r=m,r),Rt({parameter:"sort",value:m,url:o.url})},c=()=>{n==="true"?Be(Se,n="false",n):Be(Se,n="true",n)},u=m=>i(m);return s.$$set=m=>{"compact"in m&&l(6,a=m.compact)},s.$$.update=()=>{s.$$.dirty&67&&l(2,t=jn({compact:a,sortOrder:r,showElapsed:n}))},[n,r,t,f,i,c,a,u]}class Wn extends ae{constructor(e){super(),ie(this,e,Hn,qn,se,{compact:6})}}function zn(s){let e,l;return e=new bl({props:{id:"event-category-filter-menu",options:s[0],initialSelected:s[2],label:s[3],active:!!s[1],selectAllLabel:G("common.select-all"),clearAllLabel:G("common.clear-all-capitalized"),onChange:s[4],variant:"table-header",icon:"filter"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,[n]){const r={};n&1&&(r.options=t[0]),n&4&&(r.initialSelected=t[2]),n&8&&(r.label=t[3]),n&2&&(r.active=!!t[1]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}let Qn="category";function Un(s,e,l){let t,n,r,o,a;te(s,be,u=>l(7,r=u)),te(s,il,u=>l(1,o=u)),te(s,El,u=>l(6,a=u));let{compact:f=!1}=e,i=(f?kl:wl).map(u=>({...u,label:G(u.label)}));const c=u=>{u.length===i.length&&(u=[]);const m=u.map(d=>d.value).join(",");Rt({parameter:Qn,value:m,url:r.url})};return s.$$set=u=>{"compact"in u&&l(5,f=u.compact)},s.$$.update=()=>{s.$$.dirty&32&&l(3,t=f?G("events.event-type"):G("events.workflow-events")),s.$$.dirty&65&&Il("1.21",a)&&l(0,i=i.filter(({value:u})=>u!=="update")),s.$$.dirty&3&&l(2,n=o?i.filter(u=>o.includes(u.value)):[])},[i,o,n,t,c,f,a]}class Zn extends ae{constructor(e){super(),ie(this,e,Un,zn,se,{compact:5})}}function Jn(s){let e;const l=s[6].default,t=Ze(l,s,s[7],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&128)&&Je(t,l,n,n[7],e?Xe(l,n[7],r,null):Ke(n[7]),null)},i(n){e||(p(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function Kn(s){let e,l=G("workflows.event-history")+"",t;return{c(){e=b("caption"),t=L(l),this.h()},l(n){e=k(n,"CAPTION",{class:!0,slot:!0});var r=w(e);t=F(r,l),r.forEach(_),this.h()},h(){v(e,"class","sr-only"),v(e,"slot","caption")},m(n,r){E(n,e,r),g(e,t)},p:ne,d(n){n&&_(e)}}}function Xn(s){let e,l=(s[2]?G("common.collapse-all"):G("common.expand-all"))+"",t;return{c(){e=b("span"),t=L(l),this.h()},l(n){e=k(n,"SPAN",{class:!0});var r=w(e);t=F(r,l),r.forEach(_),this.h()},h(){v(e,"class","hidden sm:block")},m(n,r){E(n,e,r),g(e,t)},p(n,r){r&4&&l!==(l=(n[2]?G("common.collapse-all"):G("common.expand-all"))+"")&&H(t,l)},d(n){n&&_(e)}}}function Yn(s){let e,l,t,n,r,o,a,f,i,c,u,m;return n=new Wn({props:{compact:s[0]}}),a=new Zn({props:{compact:s[0]}}),u=new vl({props:{size:"sm",variant:"table-header",trailingIcon:s[2]?"chevron-up":"chevron-down",disabled:!!s[3],$$slots:{default:[Xn]},$$scope:{ctx:s}}}),u.$on("click",s[4]),{c(){e=b("td"),l=A(),t=b("th"),I(n.$$.fragment),r=A(),o=b("th"),I(a.$$.fragment),f=A(),i=b("th"),c=b("div"),I(u.$$.fragment),this.h()},l(d){e=k(d,"TD",{class:!0}),w(e).forEach(_),l=S(d),t=k(d,"TH",{class:!0});var $=w(t);T(n.$$.fragment,$),$.forEach(_),r=S(d),o=k(d,"TH",{class:!0});var P=w(o);T(a.$$.fragment,P),P.forEach(_),f=S(d),i=k(d,"TH",{class:!0});var V=w(i);c=k(V,"DIV",{class:!0});var N=w(c);T(u.$$.fragment,N),N.forEach(_),V.forEach(_),this.h()},h(){v(e,"class","w-14 xl:w-10"),v(t,"class","w-16 md:w-32"),v(o,"class","w-44"),v(c,"class","flex w-full justify-end"),v(i,"class","w-auto xl:w-80")},m(d,$){E(d,e,$),E(d,l,$),E(d,t,$),D(n,t,null),E(d,r,$),E(d,o,$),D(a,o,null),E(d,f,$),E(d,i,$),g(i,c),D(u,c,null),m=!0},p(d,$){const P={};$&1&&(P.compact=d[0]),n.$set(P);const V={};$&1&&(V.compact=d[0]),a.$set(V);const N={};$&4&&(N.trailingIcon=d[2]?"chevron-up":"chevron-down"),$&8&&(N.disabled=!!d[3]),$&132&&(N.$$scope={dirty:$,ctx:d}),u.$set(N)},i(d){m||(p(n.$$.fragment,d),p(a.$$.fragment,d),p(u.$$.fragment,d),m=!0)},o(d){h(n.$$.fragment,d),h(a.$$.fragment,d),h(u.$$.fragment,d),m=!1},d(d){d&&(_(e),_(l),_(t),_(r),_(o),_(f),_(i)),y(n),y(a),y(u)}}}function xn(s){let e,l;return e=new _l({props:{slot:"headers",$$slots:{default:[Yn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&141&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function er(s){let e,l;return e=new Lt({props:{updating:s[1],class:"w-full table-fixed","data-testid":"event-summary-table",$$slots:{headers:[xn],caption:[Kn],default:[Jn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,[n]){const r={};n&2&&(r.updating=t[1]),n&141&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function tr(s,e,l){let t,n,r;te(s,be,d=>l(5,n=d)),te(s,ol,d=>l(8,r=d));let{$$slots:o={},$$scope:a}=e,{compact:f=!1}=e,{updating:i=!1}=e,c=r==="true";const u=Gt();function m(){l(2,c=!c),u("expandAll",{expanded:c?"true":"false"})}return s.$$set=d=>{"compact"in d&&l(0,f=d.compact),"updating"in d&&l(1,i=d.updating),"$$scope"in d&&l(7,a=d.$$scope)},s.$$.update=()=>{s.$$.dirty&32&&l(3,t=n.params.id)},[f,i,c,t,m,n,o,a]}class Fr extends ae{constructor(e){super(),ie(this,e,tr,er,se,{compact:0,updating:1})}}export{Fr as E,Mr as a,Lr as b}; +import{s as se,h as b,j as k,k as w,f as _,m as v,i as E,n as g,v as ne,a as Ze,u as Je,g as Ke,e as Xe,a5 as Wt,ac as zt,b as A,d as S,p as Ye,G as xe,$ as Qt,c as te,I as W,t as L,l as F,q as H,x as U,r as Gt,z as ye,A as Ge,a0 as Ut,M as Zt,T as Jt,Z as Kt,w as Be,y as Xt}from"./scheduler.pPC3woXQ.js";import{S as ae,i as ie,g as z,b as h,e as Q,t as p,c as I,a as T,m as D,d as y,f as Yt,h as xt}from"./index.Z3Qqxacm.js";import{E as el}from"./empty-state.EyhDYDWL.js";import{L as tl}from"./loading.TnDAnZ7t.js";import{t as G}from"./translate.HrioCK44.js";import{g as ll,a as nl}from"./spread.rEx3vLA9.js";import{f as rl}from"./index.534V873p.js";import{p as be}from"./stores.cW8AX6ex.js";import{I as ge}from"./icon.IMxiy1l_.js";import{L as $e}from"./link.k1D2UsV0.js";import{d as sl,e as al,f as Nt,h as Ot,i as jt,j as Ne,k as qe,l as He,m as We,n as ve,o as rt}from"./index.fCt83tdf.js";import{d as Se,b as ze,a as il,e as ol}from"./filters.iDq_cVKd.js";import{t as fl,r as cl,f as st}from"./time-format.dnMZnAkG.js";import{c as at,d as Mt,e as ul}from"./format-event-attributes.cNbJ0r9V.js";import{q as it}from"./format-time.PmxHXK_V.js";import{i as Oe}from"./is-event-type.Ut7dN4k9.js";import{g as je,b as he,B as Qe}from"./route-for.Gs4LHMCg.js";import{e as ce,u as Le,o as Fe}from"./each.fm8Uvuh8.js";import{w as ml}from"./entry.6mxJxwSM.js";import{t as Me}from"./tw-merge.NbP7EmZe.js";import{B as dl}from"./badge.rkMH44Sz.js";import{k as Ue}from"./has.Hk4nWl3x.js";import{C as Pe}from"./code-block.Xpz7isZb.js";import{C as Te}from"./index.mieHu6w-.js";import{f as K}from"./format-camel-case.z6e2GZpK.js";import{P as Re}from"./payload-decoder.MNO5fgLK.js";import{T as Lt,a as _l}from"./table-header-row.zRlA4wu6.js";import{M as pl,a as hl,b as gl,c as Ft}from"./menu.jMDW2ED5.js";import{M as $l}from"./menu-divider.HnprWVQN.js";import{u as Rt}from"./update-query-parameters.FxaVQrFe.js";import{B as vl}from"./button.pYfDLC93.js";import{M as bl}from"./multi-select.r05ukiCV.js";import{c as kl,a as wl}from"./get-event-categorization.if3aIlTT.js";import{t as El}from"./versions.QfhK-6RJ.js";import{i as Il}from"./version-check.HLZIw2tw.js";function Tl(s){let e,l;return e=new el({props:{title:s[1],content:s[2]}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.title=t[1]),n&4&&(r.content=t[2]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Dl(s){let e,l;return e=new tl({}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:ne,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function yl(s){let e,l,t,n,r;const o=[Dl,Tl],a=[];function f(i,c){return i[0]?0:1}return t=f(s),n=a[t]=o[t](s),{c(){e=b("tr"),l=b("td"),n.c(),this.h()},l(i){e=k(i,"TR",{class:!0});var c=w(e);l=k(c,"TD",{colspan:!0});var u=w(l);n.l(u),u.forEach(_),c.forEach(_),this.h()},h(){v(l,"colspan","6"),v(e,"class","row svelte-1q8wnnl")},m(i,c){E(i,e,c),g(e,l),a[t].m(l,null),r=!0},p(i,[c]){let u=t;t=f(i),t===u?a[t].p(i,c):(z(),h(a[u],1,1,()=>{a[u]=null}),Q(),n=a[t],n?n.p(i,c):(n=a[t]=o[t](i),n.c()),p(n,1),n.m(l,null))},i(i){r||(p(n),r=!0)},o(i){h(n),r=!1},d(i){i&&_(e),a[t].d()}}}function Pl(s,e,l){let{loading:t=!1}=e,{title:n=G("events.empty-state-title")}=e,{content:r=G("events.empty-state-description")}=e;return s.$$set=o=>{"loading"in o&&l(0,t=o.loading),"title"in o&&l(1,n=o.title),"content"in o&&l(2,r=o.content)},[t,n,r]}class Mr extends ae{constructor(e){super(),ie(this,e,Pl,yl,se,{loading:0,title:1,content:2})}}function Vl(s){let e,l,t;const n=s[2].default,r=Ze(n,s,s[1],null);return{c(){e=b("div"),r&&r.c(),this.h()},l(o){e=k(o,"DIV",{class:!0});var a=w(e);r&&r.l(a),a.forEach(_),this.h()},h(){v(e,"class",l=Me("surface-subtle inline-flex flex-col items-center justify-start gap-2 rounded-md px-2 py-2 md:flex-row md:rounded-full",s[0]))},m(o,a){E(o,e,a),r&&r.m(e,null),t=!0},p(o,[a]){r&&r.p&&(!t||a&2)&&Je(r,n,o,o[1],t?Xe(n,o[1],a,null):Ke(o[1]),null),(!t||a&1&&l!==(l=Me("surface-subtle inline-flex flex-col items-center justify-start gap-2 rounded-md px-2 py-2 md:flex-row md:rounded-full",o[0])))&&v(e,"class",l)},i(o){t||(p(r,o),t=!0)},o(o){h(r,o),t=!1},d(o){o&&_(e),r&&r.d(o)}}}const Bt={};function Cl(s,e,l){let{$$slots:t={},$$scope:n}=e,{class:r=""}=e;const o=[],a=ml(null);return Wt(Bt,{registerPill:f=>{o.push(f),a.update(i=>i||f),zt(()=>{const i=o.indexOf(f);o.splice(i,1),a.update(c=>c===f?o[i]||o[o.length-1]:c)})},selectPill:f=>{a.set(f)},activePill:a}),s.$$set=f=>{"class"in f&&l(0,r=f.class),"$$scope"in f&&l(1,n=f.$$scope)},[r,n,t]}class Al extends ae{constructor(e){super(),ie(this,e,Cl,Vl,se,{class:0})}}function ot(s){let e,l,t;return l=new ge({props:{name:s[1]?"spinner":s[2]}}),{c(){e=b("span"),I(l.$$.fragment),this.h()},l(n){e=k(n,"SPAN",{});var r=w(e);T(l.$$.fragment,r),r.forEach(_),this.h()},h(){W(e,"animate-spin",s[1])},m(n,r){E(n,e,r),D(l,e,null),t=!0},p(n,r){const o={};r&6&&(o.name=n[1]?"spinner":n[2]),l.$set(o),(!t||r&2)&&W(e,"animate-spin",n[1])},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&_(e),y(l)}}}function ft(s){let e,l;return e=new dl({props:{type:"count",$$slots:{default:[Sl]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&8200&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Sl(s){let e;return{c(){e=L(s[3])},l(l){e=F(l,s[3])},m(l,t){E(l,e,t)},p(l,t){t&8&&H(e,l[3])},d(l){l&&_(e)}}}function Gl(s){let e,l,t,n=!Ue(s[3]),r,o,a,f,i=s[2]&&ot(s);const c=s[12].default,u=Ze(c,s,s[13],null);let m=n&&ft(s);return{c(){e=b("button"),i&&i.c(),l=A(),u&&u.c(),t=A(),m&&m.c(),this.h()},l(d){e=k(d,"BUTTON",{class:!0});var $=w(e);i&&i.l($),l=S($),u&&u.l($),t=S($),m&&m.l($),$.forEach(_),this.h()},h(){v(e,"class",r=Me("surface-subtle flex items-center justify-center gap-2 rounded-full px-3 py-1 text-sm","focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-primary/70",s[5]&&"bg-interactive text-white",s[4])),e.disabled=s[0]},m(d,$){E(d,e,$),i&&i.m(e,null),g(e,l),u&&u.m(e,null),g(e,t),m&&m.m(e,null),o=!0,a||(f=Ye(e,"click",xe(s[7])),a=!0)},p(d,[$]){d[2]?i?(i.p(d,$),$&4&&p(i,1)):(i=ot(d),i.c(),p(i,1),i.m(e,l)):i&&(z(),h(i,1,1,()=>{i=null}),Q()),u&&u.p&&(!o||$&8192)&&Je(u,c,d,d[13],o?Xe(c,d[13],$,null):Ke(d[13]),null),$&8&&(n=!Ue(d[3])),n?m?(m.p(d,$),$&8&&p(m,1)):(m=ft(d),m.c(),p(m,1),m.m(e,null)):m&&(z(),h(m,1,1,()=>{m=null}),Q()),(!o||$&48&&r!==(r=Me("surface-subtle flex items-center justify-center gap-2 rounded-full px-3 py-1 text-sm","focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-primary/70",d[5]&&"bg-interactive text-white",d[4])))&&v(e,"class",r),(!o||$&1)&&(e.disabled=d[0])},i(d){o||(p(i),p(u,d),p(m),o=!0)},o(d){h(i),h(u,d),h(m),o=!1},d(d){d&&_(e),i&&i.d(),u&&u.d(d),m&&m.d(),a=!1,f()}}}function Nl(s,e,l){let t,n,{$$slots:r={},$$scope:o}=e,{id:a}=e,{onClick:f=ne}=e,{disabled:i=!1}=e,{loading:c=!1}=e,{active:u=null}=e,{icon:m=null}=e,{count:d=null}=e,{class:$=""}=e;const{activePill:P,registerPill:V,selectPill:N}=Qt(Bt);te(s,P,M=>l(11,n=M)),V(a);const B=()=>{i||(N(a),f&&f())};return s.$$set=M=>{"id"in M&&l(8,a=M.id),"onClick"in M&&l(9,f=M.onClick),"disabled"in M&&l(0,i=M.disabled),"loading"in M&&l(1,c=M.loading),"active"in M&&l(10,u=M.active),"icon"in M&&l(2,m=M.icon),"count"in M&&l(3,d=M.count),"class"in M&&l(4,$=M.class),"$$scope"in M&&l(13,o=M.$$scope)},s.$$.update=()=>{s.$$.dirty&3328&&l(5,t=Ue(u)?n===a:u)},[i,c,m,d,$,t,P,B,a,f,u,n,r,o]}class Ol extends ae{constructor(e){super(),ie(this,e,Nl,Gl,se,{id:8,onClick:9,disabled:0,loading:1,active:10,icon:2,count:3,class:4})}}function ct(s,e,l){const t=s.slice();return t[4]=e[l][0],t[5]=e[l][1],t}function ut(s){let e,l,t;return l=new Al({props:{$$slots:{default:[Ml]},$$scope:{ctx:s}}}),{c(){e=b("div"),I(l.$$.fragment),this.h()},l(n){e=k(n,"DIV",{class:!0});var r=w(e);T(l.$$.fragment,r),r.forEach(_),this.h()},h(){v(e,"class","p-2 text-center xl:text-left")},m(n,r){E(n,e,r),D(l,e,null),t=!0},p(n,r){const o={};r&257&&(o.$$scope={dirty:r,ctx:n}),l.$set(o)},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&_(e),y(l)}}}function mt(s){let e,l;function t(){return s[3](s[4])}return e=new Ol({props:{id:s[4],onClick:t,$$slots:{default:[jl]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){D(e,n,r),l=!0},p(n,r){s=n;const o={};r&1&&(o.id=s[4]),r&1&&(o.onClick=t),r&257&&(o.$$scope={dirty:r,ctx:s}),e.$set(o)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function jl(s){let e=G(at[s[4]].label)+"",l;return{c(){l=L(e)},l(t){l=F(t,e)},m(t,n){E(t,l,n)},p(t,n){n&1&&e!==(e=G(at[t[4]].label)+"")&&H(l,e)},d(t){t&&_(l)}}}function dt(s,e){let l,t,n,r=e[5].length&&mt(e);return{key:s,first:null,c(){l=U(),r&&r.c(),t=U(),this.h()},l(o){l=U(),r&&r.l(o),t=U(),this.h()},h(){this.first=l},m(o,a){E(o,l,a),r&&r.m(o,a),E(o,t,a),n=!0},p(o,a){e=o,e[5].length?r?(r.p(e,a),a&1&&p(r,1)):(r=mt(e),r.c(),p(r,1),r.m(t.parentNode,t)):r&&(z(),h(r,1,1,()=>{r=null}),Q())},i(o){n||(p(r),n=!0)},o(o){h(r),n=!1},d(o){o&&(_(l),_(t)),r&&r.d(o)}}}function Ml(s){let e=[],l=new Map,t,n,r=ce(Object.entries(s[0]));const o=a=>a[4];for(let a=0;a1&&ut(s);return{c(){t&&t.c(),e=U()},l(n){t&&t.l(n),e=U()},m(n,r){t&&t.m(n,r),E(n,e,r),l=!0},p(n,[r]){n[1]>1?t?(t.p(n,r),r&2&&p(t,1)):(t=ut(n),t.c(),p(t,1),t.m(e.parentNode,e)):t&&(z(),h(t,1,1,()=>{t=null}),Q())},i(n){l||(p(t),l=!0)},o(n){h(t),l=!1},d(n){n&&_(e),t&&t.d(n)}}}function Fl(s,e,l){let t,{attributeGrouping:n}=e;const r=Gt(),o=a=>r("pillChange",{key:a});return s.$$set=a=>{"attributeGrouping"in a&&l(0,n=a.attributeGrouping)},s.$$.update=()=>{s.$$.dirty&1&&l(1,t=Object.values(n).reduce((a,f)=>(f.length&&(a+=1),a),0))},[n,t,r,o]}class qt extends ae{constructor(e){super(),ie(this,e,Fl,Ll,se,{attributeGrouping:0})}}function Rl(s){let e,l,t=K(s[0])+"",n,r,o,a,f;return{c(){e=b("div"),l=b("p"),n=L(t),r=A(),o=b("p"),a=b("span"),f=L(s[1]),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=w(e);l=k(c,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(_),r=S(c),o=k(c,"P",{class:!0});var m=w(o);a=k(m,"SPAN",{class:!0});var d=w(a);f=F(d,s[1]),d.forEach(_),m.forEach(_),c.forEach(_),this.h()},h(){v(l,"class","text-sm"),v(a,"class","select-all px-2 svelte-n0wabv"),W(a,"badge",!Ne(s[0])),v(o,"class","text-sm"),v(e,"class","content detail-row svelte-n0wabv")},m(i,c){E(i,e,c),g(e,l),g(l,n),g(e,r),g(e,o),g(o,a),g(a,f)},p(i,c){c&1&&t!==(t=K(i[0])+"")&&H(n,t),c&2&&H(f,i[1]),c&1&&W(a,"badge",!Ne(i[0]))},i:ne,o:ne,d(i){i&&_(e)}}}function Bl(s){let e,l,t=K(s[0])+"",n,r,o,a,f;return a=new Te({props:{copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Ql]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=L(t),r=A(),o=b("div"),I(a.$$.fragment),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=w(e);l=k(c,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(_),r=S(c),o=k(c,"DIV",{class:!0});var m=w(o);T(a.$$.fragment,m),m.forEach(_),c.forEach(_),this.h()},h(){v(l,"class","text-sm"),v(o,"class","text-sm"),v(e,"class","content detail-row svelte-n0wabv")},m(i,c){E(i,e,c),g(e,l),g(l,n),g(e,r),g(e,o),D(a,o,null),f=!0},p(i,c){(!f||c&1)&&t!==(t=K(i[0])+"")&&H(n,t);const u={};c&2&&(u.content=i[1]),c&2050&&(u.$$scope={dirty:c,ctx:i}),a.$set(u)},i(i){f||(p(a.$$.fragment,i),f=!0)},o(i){h(a.$$.fragment,i),f=!1},d(i){i&&_(e),y(a)}}}function ql(s){let e,l,t=K(s[0])+"",n,r,o,a,f;return a=new Te({props:{copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Zl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=L(t),r=A(),o=b("div"),I(a.$$.fragment),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=w(e);l=k(c,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(_),r=S(c),o=k(c,"DIV",{class:!0});var m=w(o);T(a.$$.fragment,m),m.forEach(_),c.forEach(_),this.h()},h(){v(l,"class","text-sm"),v(o,"class","text-sm"),v(e,"class","content detail-row svelte-n0wabv")},m(i,c){E(i,e,c),g(e,l),g(l,n),g(e,r),g(e,o),D(a,o,null),f=!0},p(i,c){(!f||c&1)&&t!==(t=K(i[0])+"")&&H(n,t);const u={};c&2&&(u.content=i[1]),c&2054&&(u.$$scope={dirty:c,ctx:i}),a.$set(u)},i(i){f||(p(a.$$.fragment,i),f=!0)},o(i){h(a.$$.fragment,i),f=!1},d(i){i&&_(e),y(a)}}}function Hl(s){let e,l,t=K(s[0])+"",n,r,o,a,f;return a=new Te({props:{copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title"),content:s[1],"container-class":"flex-row-reverse xl:flex-row",$$slots:{default:[Kl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=L(t),r=A(),o=b("div"),I(a.$$.fragment),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=w(e);l=k(c,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(_),r=S(c),o=k(c,"DIV",{class:!0});var m=w(o);T(a.$$.fragment,m),m.forEach(_),c.forEach(_),this.h()},h(){v(l,"class","text-sm"),v(o,"class","text-sm"),v(e,"class","content detail-row svelte-n0wabv")},m(i,c){E(i,e,c),g(e,l),g(l,n),g(e,r),g(e,o),D(a,o,null),f=!0},p(i,c){(!f||c&1)&&t!==(t=K(i[0])+"")&&H(n,t);const u={};c&2&&(u.content=i[1]),c&2050&&(u.$$scope={dirty:c,ctx:i}),a.$set(u)},i(i){f||(p(a.$$.fragment,i),f=!0)},o(i){h(a.$$.fragment,i),f=!1},d(i){i&&_(e),y(a)}}}function Wl(s){let e,l,t,n=K(s[0])+"",r,o,a,f,i,c,u;const m=[xl,Yl,Xl],d=[];function $(V,N){var B;return(B=V[1])!=null&&B.payloads?0:V[0]==="searchAttributes"?1:2}a=$(s),f=d[a]=m[a](s);let P=s[5]&&!s[3]&&_t(s);return{c(){e=b("div"),l=b("div"),t=b("p"),r=L(n),o=A(),f.c(),c=A(),P&&P.c(),this.h()},l(V){e=k(V,"DIV",{class:!0});var N=w(e);l=k(N,"DIV",{class:!0});var B=w(l);t=k(B,"P",{class:!0});var M=w(t);r=F(M,n),M.forEach(_),o=S(B),f.l(B),B.forEach(_),c=S(N),P&&P.l(N),N.forEach(_),this.h()},h(){v(t,"class","text-sm"),v(l,"class",i="flex flex-col "+(s[5]?"lg:w-1/2":"")),v(e,"class","content code-block-row svelte-n0wabv"),W(e,"code-with-stack-trace",s[5])},m(V,N){E(V,e,N),g(e,l),g(l,t),g(t,r),g(l,o),d[a].m(l,null),g(e,c),P&&P.m(e,null),u=!0},p(V,N){(!u||N&1)&&n!==(n=K(V[0])+"")&&H(r,n);let B=a;a=$(V),a===B?d[a].p(V,N):(z(),h(d[B],1,1,()=>{d[B]=null}),Q(),f=d[a],f?f.p(V,N):(f=d[a]=m[a](V),f.c()),p(f,1),f.m(l,null)),(!u||N&32&&i!==(i="flex flex-col "+(V[5]?"lg:w-1/2":"")))&&v(l,"class",i),V[5]&&!V[3]?P?(P.p(V,N),N&40&&p(P,1)):(P=_t(V),P.c(),p(P,1),P.m(e,null)):P&&(z(),h(P,1,1,()=>{P=null}),Q()),(!u||N&32)&&W(e,"code-with-stack-trace",V[5])},i(V){u||(p(f),p(P),u=!0)},o(V){h(f),h(P),u=!1},d(V){V&&_(e),d[a].d(),P&&P.d()}}}function zl(s){let e;return{c(){e=L(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&_(e)}}}function Ql(s){let e,l;return e=new $e({props:{href:je({namespace:s[7],queue:s[1]}),$$slots:{default:[zl]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=je({namespace:t[7],queue:t[1]})),n&2050&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Ul(s){let e;return{c(){e=L(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&_(e)}}}function Zl(s){var t;let e,l;return e=new $e({props:{href:he({namespace:((t=s[2])==null?void 0:t.namespace)||s[7],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[Ul]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){D(e,n,r),l=!0},p(n,r){var a;const o={};r&4&&(o.href=he({namespace:((a=n[2])==null?void 0:a.namespace)||n[7],workflow:n[2].workflowExecutionWorkflowId,run:n[2].workflowExecutionRunId})),r&2050&&(o.$$scope={dirty:r,ctx:n}),e.$set(o)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function Jl(s){let e;return{c(){e=L(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&_(e)}}}function Kl(s){let e,l;return e=new $e({props:{href:he({namespace:s[7],workflow:s[6],run:s[1]}),$$slots:{default:[Jl]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=he({namespace:t[7],workflow:t[6],run:t[1]})),n&2050&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Xl(s){let e,l;return e=new Re({props:{value:s[4],$$slots:{default:[en,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&16&&(r.value=t[4]),n&3112&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Yl(s){let e,l;return e=new Re({props:{key:"searchAttributes",value:{searchAttributes:s[4]},$$slots:{default:[tn,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&16&&(r.value={searchAttributes:t[4]}),n&3112&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function xl(s){let e,l;return e=new Re({props:{value:s[1],key:"payloads",$$slots:{default:[ln,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.value=t[1]),n&3112&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function en(s){let e,l;return e=new Pe({props:{content:s[10],class:s[5]?"mb-2":"",maxHeight:384,inline:s[3],copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title")}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&1024&&(r.content=t[10]),n&32&&(r.class=t[5]?"mb-2":""),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function tn(s){let e,l;return e=new Pe({props:{content:s[10],class:s[5]?"mb-2":"",maxHeight:384,inline:s[3],copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title")}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&1024&&(r.content=t[10]),n&32&&(r.class=t[5]?"mb-2":""),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ln(s){let e,l;return e=new Pe({props:{content:s[10],class:s[5]?"mb-2":"",maxHeight:384,inline:s[3],copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title")}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&1024&&(r.content=t[10]),n&32&&(r.class=t[5]?"mb-2":""),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function _t(s){let e,l,t=G("workflows.call-stack-tab")+"",n,r,o,a;return o=new Pe({props:{content:s[5],language:"text",class:"mb-2 h-full lg:pr-2",copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title")}}),{c(){e=b("div"),l=b("p"),n=L(t),r=A(),I(o.$$.fragment),this.h()},l(f){e=k(f,"DIV",{class:!0});var i=w(e);l=k(i,"P",{class:!0});var c=w(l);n=F(c,t),c.forEach(_),r=S(i),T(o.$$.fragment,i),i.forEach(_),this.h()},h(){v(l,"class","text-sm"),v(e,"class","flex flex-col lg:w-1/2")},m(f,i){E(f,e,i),g(e,l),g(l,n),g(e,r),D(o,e,null),a=!0},p(f,i){const c={};i&32&&(c.content=f[5]),o.$set(c)},i(f){a||(p(o.$$.fragment,f),a=!0)},o(f){h(o.$$.fragment,f),a=!1},d(f){f&&_(e),y(o)}}}function nn(s){let e,l,t,n,r,o,a,f;const i=[Wl,Hl,ql,Bl,Rl],c=[];function u(m,d){return d&1&&(l=null),d&5&&(t=null),d&1&&(n=null),typeof m[1]=="object"?0:(l==null&&(l=!!Nt(m[0])),l?1:(t==null&&(t=!!Ot(m[0],m[2])),t?2:(n==null&&(n=!!jt(m[0])),n?3:4)))}return r=u(s,-1),o=c[r]=i[r](s),{c(){e=b("div"),o.c(),this.h()},l(m){e=k(m,"DIV",{class:!0});var d=w(e);o.l(d),d.forEach(_),this.h()},h(){v(e,"class",a="row "+s[8].class+" svelte-n0wabv")},m(m,d){E(m,e,d),c[r].m(e,null),f=!0},p(m,[d]){let $=r;r=u(m,d),r===$?c[r].p(m,d):(z(),h(c[$],1,1,()=>{c[$]=null}),Q(),o=c[r],o?o.p(m,d):(o=c[r]=i[r](m),o.c()),p(o,1),o.m(e,null)),(!f||d&256&&a!==(a="row "+m[8].class+" svelte-n0wabv"))&&v(e,"class",a)},i(m){f||(p(o),f=!0)},o(m){h(o),f=!1},d(m){m&&_(e),c[r].d()}}}function rn(s,e,l){let t,n,r;te(s,be,m=>l(9,r=m));let{key:o}=e,{value:a}=e,{attributes:f}=e,{inline:i=!1}=e;const{workflow:c,namespace:u}=r.params;return s.$$set=m=>{l(8,e=ye(ye({},e),Ge(m))),"key"in m&&l(0,o=m.key),"value"in m&&l(1,a=m.value),"attributes"in m&&l(2,f=m.attributes),"inline"in m&&l(3,i=m.inline)},s.$$.update=()=>{s.$$.dirty&2&&l(4,t=sl(a)),s.$$.dirty&16&&l(5,n=al(t))},e=Ge(e),[o,a,f,i,t,n,c,u,e]}class Ht extends ae{constructor(e){super(),ie(this,e,rn,nn,se,{key:0,value:1,attributes:2,inline:3})}}function pt(s,e,l){const t=s.slice();return t[8]=e[l][0],t[9]=e[l][1],t}function sn(s){let e=s[8]+"",l;return{c(){l=L(e)},l(t){l=F(t,e)},m(t,n){E(t,l,n)},p(t,n){n&1&&e!==(e=t[8]+"")&&H(l,e)},d(t){t&&_(l)}}}function ht(s,e){let l,t,n,r,o,a,f,i,c,u=(Oe(e[9])?"LocalActivity":e[9].eventType)+"",m,d,$,P,V,N,B;a=new $e({props:{class:"truncate",href:Qe({eventId:e[8],namespace:e[3],workflow:e[5],run:e[4]}),$$slots:{default:[sn]},$$scope:{ctx:e}}});function M(){return e[7](e[8])}return{key:s,first:null,c(){l=b("tr"),t=b("td"),n=A(),r=b("td"),o=b("p"),I(a.$$.fragment),f=A(),i=b("td"),c=b("p"),m=L(u),d=A(),$=b("td"),P=A(),this.h()},l(j){l=k(j,"TR",{class:!0});var R=w(l);t=k(R,"TD",{class:!0}),w(t).forEach(_),n=S(R),r=k(R,"TD",{class:!0});var le=w(r);o=k(le,"P",{class:!0});var oe=w(o);T(a.$$.fragment,oe),oe.forEach(_),le.forEach(_),f=S(R),i=k(R,"TD",{});var ue=w(i);c=k(ue,"P",{class:!0});var fe=w(c);m=F(fe,u),fe.forEach(_),ue.forEach(_),d=S(R),$=k(R,"TD",{}),w($).forEach(_),P=S(R),R.forEach(_),this.h()},h(){v(t,"class","w-1/12"),v(o,"class","truncate text-sm text-slate-500 md:text-base"),v(r,"class","w-24"),v(c,"class","event-type truncate text-sm md:text-base svelte-v71d8i"),v(l,"class","row svelte-v71d8i"),W(l,"active",e[8]===e[1]),W(l,"failure",qe(e[9])),W(l,"canceled",He(e[9])),W(l,"terminated",We(e[9])),this.first=l},m(j,R){E(j,l,R),g(l,t),g(l,n),g(l,r),g(r,o),D(a,o,null),g(l,f),g(l,i),g(i,c),g(c,m),g(l,d),g(l,$),g(l,P),V=!0,N||(B=Ye(l,"click",xe(Ut(M))),N=!0)},p(j,R){e=j;const le={};R&57&&(le.href=Qe({eventId:e[8],namespace:e[3],workflow:e[5],run:e[4]})),R&4097&&(le.$$scope={dirty:R,ctx:e}),a.$set(le),(!V||R&1)&&u!==(u=(Oe(e[9])?"LocalActivity":e[9].eventType)+"")&&H(m,u),(!V||R&3)&&W(l,"active",e[8]===e[1]),(!V||R&1)&&W(l,"failure",qe(e[9])),(!V||R&1)&&W(l,"canceled",He(e[9])),(!V||R&1)&&W(l,"terminated",We(e[9]))},i(j){V||(p(a.$$.fragment,j),V=!0)},o(j){h(a.$$.fragment,j),V=!1},d(j){j&&_(l),y(a),N=!1,B()}}}function an(s){let e=[],l=new Map,t,n,r=ce([...s[0].events].reverse());const o=a=>a[8];for(let a=0;al(6,o=u));let{eventGroup:a}=e,{selectedId:f}=e,{onGroupClick:i}=e;const c=u=>i(u);return s.$$set=u=>{"eventGroup"in u&&l(0,a=u.eventGroup),"selectedId"in u&&l(1,f=u.selectedId),"onGroupClick"in u&&l(2,i=u.onGroupClick)},s.$$.update=()=>{s.$$.dirty&64&&l(5,{workflow:t,run:n,namespace:r}=o.params,t,(l(4,n),l(6,o)),(l(3,r),l(6,o)))},[a,f,i,r,n,t,o,c]}class cn extends ae{constructor(e){super(),ie(this,e,fn,on,se,{eventGroup:0,selectedId:1,onGroupClick:2})}}function gt(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function $t(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function un(s){let e,l,t,n=[],r=new Map,o;l=new qt({props:{attributeGrouping:s[4]}}),l.$on("pillChange",s[7]);let a=ce(s[6]);const f=i=>i[10];for(let i=0;im[10];for(let m=0;m{o=null}),Q())},i(f){r||(p(o),r=!0)},o(f){h(o),r=!1},d(f){f&&(_(l),_(n)),o&&o.d(f)}}}function kt(s){let e,l;return e=new Ht({props:{key:s[10],value:s[11],attributes:s[3],class:"w-full"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&64&&(r.key=t[10]),n&64&&(r.value=t[11]),n&8&&(r.attributes=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function wt(s,e){var a;let l,t=(a=e[4][e[5]])==null?void 0:a.includes(e[10]),n,r,o=t&&kt(e);return{key:s,first:null,c(){l=U(),o&&o.c(),n=U(),this.h()},l(f){l=U(),o&&o.l(f),n=U(),this.h()},h(){this.first=l},m(f,i){E(f,l,i),o&&o.m(f,i),E(f,n,i),r=!0},p(f,i){var c;e=f,i&112&&(t=(c=e[4][e[5]])==null?void 0:c.includes(e[10])),t?o?(o.p(e,i),i&112&&p(o,1)):(o=kt(e),o.c(),p(o,1),o.m(n.parentNode,n)):o&&(z(),h(o,1,1,()=>{o=null}),Q())},i(f){r||(p(o),r=!0)},o(f){h(o),r=!1},d(f){f&&(_(l),_(n)),o&&o.d(f)}}}function dn(s){let e,l,t,n,r;const o=[mn,un],a=[];function f(i,c){return c&6&&(e=null),e==null&&(e=!!(i[2]&&ve(i[1]))),e?0:1}return l=f(s,-1),t=a[l]=o[l](s),{c(){t.c(),n=U()},l(i){t.l(i),n=U()},m(i,c){a[l].m(i,c),E(i,n,c),r=!0},p(i,[c]){let u=l;l=f(i,c),l===u?a[l].p(i,c):(z(),h(a[u],1,1,()=>{a[u]=null}),Q(),t=a[l],t?t.p(i,c):(t=a[l]=o[l](i),t.c()),p(t,1),t.m(n.parentNode,n))},i(i){r||(p(t),r=!0)},o(i){h(t),r=!1},d(i){i&&_(n),a[l].d(i)}}}function _n(s,e,l){let t,n,r,o,{event:a}=e,{currentEvent:f}=e,{compact:i=!1}=e,{selectedId:c}=e;const u=d=>{l(5,r=d.detail.key)},m=d=>l(0,c=d);return s.$$set=d=>{"event"in d&&l(1,a=d.event),"currentEvent"in d&&l(9,f=d.currentEvent),"compact"in d&&l(2,i=d.compact),"selectedId"in d&&l(0,c=d.selectedId)},s.$$.update=()=>{s.$$.dirty&516&&l(3,t=Mt(f,{compact:i})),s.$$.dirty&10&&l(4,n=ul(a,t)),s.$$.dirty&16&&l(5,r=Object.keys(n).find(d=>n[d].length)),s.$$.dirty&8&&l(6,o=Object.entries(t))},[c,a,i,t,n,r,o,u,m,f]}class pn extends ae{constructor(e){super(),ie(this,e,_n,dn,se,{event:1,currentEvent:9,compact:2,selectedId:0})}}function hn(s){let e,l,t=K(s[0])+"",n,r,o,a,f;return{c(){e=b("div"),l=b("p"),n=L(t),r=A(),o=b("p"),a=b("span"),f=L(s[1]),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=w(e);l=k(c,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(_),r=S(c),o=k(c,"P",{class:!0});var m=w(o);a=k(m,"SPAN",{class:!0});var d=w(a);f=F(d,s[1]),d.forEach(_),m.forEach(_),c.forEach(_),this.h()},h(){v(l,"class","mr-3 truncate text-sm"),v(a,"class","w-full select-all text-slate-700 svelte-17d0us2"),W(a,"badge",!Ne(s[0])),v(o,"class","truncate text-right text-sm xl:text-left"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(i,c){E(i,e,c),g(e,l),g(l,n),g(e,r),g(e,o),g(o,a),g(a,f)},p(i,c){c&1&&t!==(t=K(i[0])+"")&&H(n,t),c&2&&H(f,i[1]),c&1&&W(a,"badge",!Ne(i[0]))},i:ne,o:ne,d(i){i&&_(e)}}}function gn(s){let e,l,t=K(s[0])+"",n,r,o,a,f;return a=new Te({props:{copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title"),content:s[1],$$slots:{default:[wn]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=L(t),r=A(),o=b("div"),I(a.$$.fragment),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=w(e);l=k(c,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(_),r=S(c),o=k(c,"DIV",{class:!0});var m=w(o);T(a.$$.fragment,m),m.forEach(_),c.forEach(_),this.h()},h(){v(l,"class","mr-3 truncate text-sm"),v(o,"class","truncate text-sm"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(i,c){E(i,e,c),g(e,l),g(l,n),g(e,r),g(e,o),D(a,o,null),f=!0},p(i,c){(!f||c&1)&&t!==(t=K(i[0])+"")&&H(n,t);const u={};c&2&&(u.content=i[1]),c&514&&(u.$$scope={dirty:c,ctx:i}),a.$set(u)},i(i){f||(p(a.$$.fragment,i),f=!0)},o(i){h(a.$$.fragment,i),f=!1},d(i){i&&_(e),y(a)}}}function $n(s){let e,l,t=K(s[0])+"",n,r,o,a,f;return a=new Te({props:{copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[In]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=L(t),r=A(),o=b("div"),I(a.$$.fragment),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=w(e);l=k(c,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(_),r=S(c),o=k(c,"DIV",{class:!0});var m=w(o);T(a.$$.fragment,m),m.forEach(_),c.forEach(_),this.h()},h(){v(l,"class","truncate text-sm"),v(o,"class","truncate text-sm"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(i,c){E(i,e,c),g(e,l),g(l,n),g(e,r),g(e,o),D(a,o,null),f=!0},p(i,c){(!f||c&1)&&t!==(t=K(i[0])+"")&&H(n,t);const u={};c&2&&(u.content=i[1]),c&518&&(u.$$scope={dirty:c,ctx:i}),a.$set(u)},i(i){f||(p(a.$$.fragment,i),f=!0)},o(i){h(a.$$.fragment,i),f=!1},d(i){i&&_(e),y(a)}}}function vn(s){let e,l,t=K(s[0])+"",n,r,o,a,f;return a=new Te({props:{copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Dn]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=L(t),r=A(),o=b("div"),I(a.$$.fragment),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=w(e);l=k(c,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(_),r=S(c),o=k(c,"DIV",{class:!0});var m=w(o);T(a.$$.fragment,m),m.forEach(_),c.forEach(_),this.h()},h(){v(l,"class","mr-3 truncate text-sm"),v(o,"class","truncate text-sm"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(i,c){E(i,e,c),g(e,l),g(l,n),g(e,r),g(e,o),D(a,o,null),f=!0},p(i,c){(!f||c&1)&&t!==(t=K(i[0])+"")&&H(n,t);const u={};c&2&&(u.content=i[1]),c&514&&(u.$$scope={dirty:c,ctx:i}),a.$set(u)},i(i){f||(p(a.$$.fragment,i),f=!0)},o(i){h(a.$$.fragment,i),f=!1},d(i){i&&_(e),y(a)}}}function bn(s){let e,l,t=K(s[0])+"",n,r,o,a;return o=new Re({props:{value:s[1],key:"payloads",$$slots:{default:[yn,({decodedValue:f})=>({8:f}),({decodedValue:f})=>f?256:0]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=L(t),r=A(),I(o.$$.fragment),this.h()},l(f){e=k(f,"DIV",{class:!0});var i=w(e);l=k(i,"P",{class:!0});var c=w(l);n=F(c,t),c.forEach(_),r=S(i),T(o.$$.fragment,i),i.forEach(_),this.h()},h(){v(l,"class","min-w-fit text-sm"),v(e,"class","flex w-full flex-wrap items-center justify-between gap-1 pr-1 xl:flex-nowrap xl:gap-4")},m(f,i){E(f,e,i),g(e,l),g(l,n),g(e,r),D(o,e,null),a=!0},p(f,i){(!a||i&1)&&t!==(t=K(f[0])+"")&&H(n,t);const c={};i&2&&(c.value=f[1]),i&776&&(c.$$scope={dirty:i,ctx:f}),o.$set(c)},i(f){a||(p(o.$$.fragment,f),a=!0)},o(f){h(o.$$.fragment,f),a=!1},d(f){f&&_(e),y(o)}}}function kn(s){let e;return{c(){e=L(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&_(e)}}}function wn(s){let e,l;return e=new $e({props:{class:"truncate",href:je({namespace:s[5],queue:s[1]}),$$slots:{default:[kn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=je({namespace:t[5],queue:t[1]})),n&514&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function En(s){let e;return{c(){e=L(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&_(e)}}}function In(s){let e,l;return e=new $e({props:{class:"truncate",href:he({namespace:s[5],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[En]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.href=he({namespace:t[5],workflow:t[2].workflowExecutionWorkflowId,run:t[2].workflowExecutionRunId})),n&514&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Tn(s){let e;return{c(){e=L(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&_(e)}}}function Dn(s){let e,l;return e=new $e({props:{class:"truncate",href:he({namespace:s[5],workflow:s[4],run:s[1]}),$$slots:{default:[Tn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=he({namespace:t[5],workflow:t[4],run:t[1]})),n&514&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function yn(s){let e,l;return e=new Pe({props:{content:s[8],inline:s[3],copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title")}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&256&&(r.content=t[8]),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Pn(s){let e,l,t,n,r,o,a,f;const i=[bn,vn,$n,gn,hn],c=[];function u(m,d){return d&1&&(l=null),d&5&&(t=null),d&1&&(n=null),typeof m[1]=="object"?0:(l==null&&(l=!!Nt(m[0])),l?1:(t==null&&(t=!!Ot(m[0],m[2])),t?2:(n==null&&(n=!!jt(m[0])),n?3:4)))}return r=u(s,-1),o=c[r]=i[r](s),{c(){e=b("div"),o.c(),this.h()},l(m){e=k(m,"DIV",{class:!0});var d=w(e);o.l(d),d.forEach(_),this.h()},h(){v(e,"class",a="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+s[6].class+" svelte-17d0us2")},m(m,d){E(m,e,d),c[r].m(e,null),f=!0},p(m,[d]){let $=r;r=u(m,d),r===$?c[r].p(m,d):(z(),h(c[$],1,1,()=>{c[$]=null}),Q(),o=c[r],o?o.p(m,d):(o=c[r]=i[r](m),o.c()),p(o,1),o.m(e,null)),(!f||d&64&&a!==(a="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+m[6].class+" svelte-17d0us2"))&&v(e,"class",a)},i(m){f||(p(o),f=!0)},o(m){h(o),f=!1},d(m){m&&_(e),c[r].d()}}}function Vn(s,e,l){let t;te(s,be,c=>l(7,t=c));let{key:n}=e,{value:r}=e,{attributes:o}=e,{inline:a=!1}=e;const{workflow:f,namespace:i}=t.params;return s.$$set=c=>{l(6,e=ye(ye({},e),Ge(c))),"key"in c&&l(0,n=c.key),"value"in c&&l(1,r=c.value),"attributes"in c&&l(2,o=c.attributes),"inline"in c&&l(3,a=c.inline)},e=Ge(e),[n,r,o,a,f,i,e]}class Cn extends ae{constructor(e){super(),ie(this,e,Vn,Pn,se,{key:0,value:1,attributes:2,inline:3})}}function An(s){let e=s[0].id+"",l;return{c(){l=L(e)},l(t){l=F(t,e)},m(t,n){E(t,l,n)},p(t,n){n&1&&e!==(e=t[0].id+"")&&H(l,e)},d(t){t&&_(l)}}}function Sn(s){var n;let e,l=st((n=s[0])==null?void 0:n.eventTime,s[14],{relative:s[15]})+"",t;return{c(){e=b("p"),t=L(l),this.h()},l(r){e=k(r,"P",{class:!0});var o=w(e);t=F(o,l),o.forEach(_),this.h()},h(){v(e,"class","break-word truncate text-sm md:whitespace-normal md:text-base")},m(r,o){E(r,e,o),g(e,t)},p(r,o){var a;o&49153&&l!==(l=st((a=r[0])==null?void 0:a.eventTime,r[14],{relative:r[15]})+"")&&H(t,l)},i:ne,o:ne,d(r){r&&_(e)}}}function Gn(s){let e,l,t,n,r=s[9]&&Et(s),o=s[8]&&s[8]!=="0ms"&&It(s);return{c(){e=b("p"),r&&r.c(),l=A(),o&&o.c(),t=U(),this.h()},l(a){e=k(a,"P",{class:!0});var f=w(e);r&&r.l(f),f.forEach(_),l=S(a),o&&o.l(a),t=U(),this.h()},h(){v(e,"class","break-word truncate text-sm md:whitespace-normal")},m(a,f){E(a,e,f),r&&r.m(e,null),E(a,l,f),o&&o.m(a,f),E(a,t,f),n=!0},p(a,f){a[9]?r?r.p(a,f):(r=Et(a),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a[8]&&a[8]!=="0ms"?o?(o.p(a,f),f&256&&p(o,1)):(o=It(a),o.c(),p(o,1),o.m(t.parentNode,t)):o&&(z(),h(o,1,1,()=>{o=null}),Q())},i(a){n||(p(o),n=!0)},o(a){h(o),n=!1},d(a){a&&(_(e),_(l),_(t)),r&&r.d(),o&&o.d(a)}}}function Et(s){let e=s[12]?"-":"+",l,t;return{c(){l=L(e),t=L(s[9])},l(n){l=F(n,e),t=F(n,s[9])},m(n,r){E(n,l,r),E(n,t,r)},p(n,r){r&4096&&e!==(e=n[12]?"-":"+")&&H(l,e),r&512&&H(t,n[9])},d(n){n&&(_(l),_(t))}}}function It(s){let e,l,t,n,r,o;return l=new ge({props:{class:"inline",name:"clock"}}),{c(){e=b("div"),I(l.$$.fragment),t=A(),n=b("p"),r=L(s[8]),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=w(e);T(l.$$.fragment,f),t=S(f),n=k(f,"P",{class:!0});var i=w(n);r=F(i,s[8]),i.forEach(_),f.forEach(_),this.h()},h(){v(n,"class","break-word truncate text-sm md:whitespace-normal"),v(e,"class","flex flex-row items-center gap-1")},m(a,f){E(a,e,f),D(l,e,null),g(e,t),g(e,n),g(n,r),o=!0},p(a,f){(!o||f&256)&&H(r,a[8])},i(a){o||(p(l.$$.fragment,a),o=!0)},o(a){h(l.$$.fragment,a),o=!1},d(a){a&&_(e),y(l)}}}function Tt(s){let e,l;return e=new ge({props:{class:"mr-1.5 inline text-red-700",name:"clock"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Dt(s){let e,l;return e=new ge({props:{class:"mr-1.5 inline text-yellow-700",name:"clock"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function yt(s){let e,l;return e=new ge({props:{class:"mr-1.5 inline text-pink-700",name:"clock"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Pt(s){let e,l,t;return l=new ge({props:{class:"inline",name:"chevron-up"}}),{c(){e=b("div"),I(l.$$.fragment)},l(n){e=k(n,"DIV",{});var r=w(e);T(l.$$.fragment,r),r.forEach(_)},m(n,r){E(n,e,r),D(l,e,null),t=!0},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&_(e),y(l)}}}function Vt(s){let e,l,t,n,r,o,a,f;const i=[rt(s[6]),{attributes:s[10]},{class:"invisible h-0 w-0 md:visible md:h-auto md:w-auto"},{inline:!0}];let c={};for(let u=0;uYt(t,"selectedId",a)),{c(){e=b("tr"),l=b("td"),I(t.$$.fragment),this.h()},l(i){e=k(i,"TR",{class:!0});var c=w(e);l=k(c,"TD",{class:!0,colspan:!0});var u=w(l);T(t.$$.fragment,u),u.forEach(_),c.forEach(_),this.h()},h(){v(l,"class","expanded-cell svelte-945wwo"),v(l,"colspan","6"),v(e,"class","svelte-945wwo"),W(e,"typedError",s[3])},m(i,c){E(i,e,c),g(e,l),D(t,l,null),o=!0},p(i,c){const u={};c&1&&(u.event=i[0]),c&64&&(u.currentEvent=i[6]),c&2&&(u.compact=i[1]),!n&&c&32&&(n=!0,u.selectedId=i[5],Jt(()=>n=!1)),t.$set(u),(!o||c&8)&&W(e,"typedError",i[3])},i(i){o||(p(t.$$.fragment,i),i&&(r||Kt(()=>{r=xt(e,rl,{}),r.start()})),o=!0)},o(i){h(t.$$.fragment,i),o=!1},d(i){i&&_(e),y(t)}}}function Nn(s){let e,l,t,n,r,o,a,f,i,c,u,m,d,$,P,V,N,B,M,j=(ve(s[0])?s[0].displayName:Oe(s[0])?"LocalActivity":s[0].name)+"",R,le,oe,ue,fe,de,me,ke,_e,re,De,Ve;r=new $e({props:{class:"truncate","data-testid":"link",href:s[13],$$slots:{default:[An]},$$scope:{ctx:s}}});const q=[Gn,Sn],pe=[];function et(C,O){return C[11]?0:1}i=et(s),c=pe[i]=q[i](s);let X=s[1]&&s[17]&&Tt(),Y=s[1]&&s[18]&&Dt(),x=s[1]&&s[19]&&yt(),ee=s[7]&&Pt(),Z=!s[7]&&Vt(s),J=s[7]&&Ct(s);return{c(){e=b("tr"),l=b("td"),t=A(),n=b("td"),I(r.$$.fragment),o=A(),a=b("td"),f=b("div"),c.c(),u=A(),m=b("td"),d=b("div"),$=b("div"),X&&X.c(),P=A(),Y&&Y.c(),V=A(),x&&x.c(),N=A(),B=b("div"),M=b("p"),R=L(j),le=A(),ee&&ee.c(),ue=A(),Z&&Z.c(),fe=A(),de=b("td"),ke=A(),J&&J.c(),_e=U(),this.h()},l(C){e=k(C,"TR",{class:!0,id:!0,"data-testid":!0});var O=w(e);l=k(O,"TD",{}),w(l).forEach(_),t=S(O),n=k(O,"TD",{class:!0});var we=w(n);T(r.$$.fragment,we),we.forEach(_),o=S(O),a=k(O,"TD",{class:!0});var Ee=w(a);f=k(Ee,"DIV",{class:!0});var tt=w(f);c.l(tt),tt.forEach(_),Ee.forEach(_),u=S(O),m=k(O,"TD",{colspan:!0,class:!0});var lt=w(m);d=k(lt,"DIV",{class:!0});var Ce=w(d);$=k(Ce,"DIV",{});var Ie=w($);X&&X.l(Ie),P=S(Ie),Y&&Y.l(Ie),V=S(Ie),x&&x.l(Ie),Ie.forEach(_),N=S(Ce),B=k(Ce,"DIV",{class:!0});var Ae=w(B);M=k(Ae,"P",{class:!0});var nt=w(M);R=F(nt,j),nt.forEach(_),le=S(Ae),ee&&ee.l(Ae),Ae.forEach(_),Ce.forEach(_),lt.forEach(_),ue=S(O),Z&&Z.l(O),fe=S(O),de=k(O,"TD",{}),w(de).forEach(_),O.forEach(_),ke=S(C),J&&J.l(C),_e=U(),this.h()},h(){v(n,"class","w-24 text-left"),v(f,"class","flex flex-col gap-0"),v(a,"class","text-left"),v(M,"class","event-name truncate text-sm font-semibold md:text-base svelte-945wwo"),v(B,"class","flex w-full items-center justify-between truncate"),v(d,"class","flex"),v(m,"colspan",oe=s[7]?2:1),v(m,"class","text-right text-sm font-normal xl:text-left"),v(e,"class","row svelte-945wwo"),v(e,"id",me=s[0].id),v(e,"data-testid","event-summary-row"),W(e,"expanded",s[7]&&!s[2]),W(e,"active",s[4]),W(e,"failure",s[17]),W(e,"canceled",s[18]),W(e,"terminated",s[19]),W(e,"typedError",s[3])},m(C,O){E(C,e,O),g(e,l),g(e,t),g(e,n),D(r,n,null),g(e,o),g(e,a),g(a,f),pe[i].m(f,null),g(e,u),g(e,m),g(m,d),g(d,$),X&&X.m($,null),g($,P),Y&&Y.m($,null),g($,V),x&&x.m($,null),g(d,N),g(d,B),g(B,M),g(M,R),g(B,le),ee&&ee.m(B,null),g(e,ue),Z&&Z.m(e,null),g(e,fe),g(e,de),E(C,ke,O),J&&J.m(C,O),E(C,_e,O),re=!0,De||(Ve=Ye(e,"click",xe(s[16])),De=!0)},p(C,[O]){const we={};O&8192&&(we.href=C[13]),O&1073741825&&(we.$$scope={dirty:O,ctx:C}),r.$set(we);let Ee=i;i=et(C),i===Ee?pe[i].p(C,O):(z(),h(pe[Ee],1,1,()=>{pe[Ee]=null}),Q(),c=pe[i],c?c.p(C,O):(c=pe[i]=q[i](C),c.c()),p(c,1),c.m(f,null)),C[1]&&C[17]?X?O&2&&p(X,1):(X=Tt(),X.c(),p(X,1),X.m($,P)):X&&(z(),h(X,1,1,()=>{X=null}),Q()),C[1]&&C[18]?Y?O&2&&p(Y,1):(Y=Dt(),Y.c(),p(Y,1),Y.m($,V)):Y&&(z(),h(Y,1,1,()=>{Y=null}),Q()),C[1]&&C[19]?x?O&2&&p(x,1):(x=yt(),x.c(),p(x,1),x.m($,null)):x&&(z(),h(x,1,1,()=>{x=null}),Q()),(!re||O&1)&&j!==(j=(ve(C[0])?C[0].displayName:Oe(C[0])?"LocalActivity":C[0].name)+"")&&H(R,j),C[7]?ee?O&128&&p(ee,1):(ee=Pt(),ee.c(),p(ee,1),ee.m(B,null)):ee&&(z(),h(ee,1,1,()=>{ee=null}),Q()),(!re||O&128&&oe!==(oe=C[7]?2:1))&&v(m,"colspan",oe),C[7]?Z&&(z(),h(Z,1,1,()=>{Z=null}),Q()):Z?(Z.p(C,O),O&128&&p(Z,1)):(Z=Vt(C),Z.c(),p(Z,1),Z.m(e,fe)),(!re||O&1&&me!==(me=C[0].id))&&v(e,"id",me),(!re||O&132)&&W(e,"expanded",C[7]&&!C[2]),(!re||O&16)&&W(e,"active",C[4]),(!re||O&8)&&W(e,"typedError",C[3]),C[7]?J?(J.p(C,O),O&128&&p(J,1)):(J=Ct(C),J.c(),p(J,1),J.m(_e.parentNode,_e)):J&&(z(),h(J,1,1,()=>{J=null}),Q())},i(C){re||(p(r.$$.fragment,C),p(c),p(X),p(Y),p(x),p(ee),p(Z),p(J),re=!0)},o(C){h(r.$$.fragment,C),h(c),h(X),h(Y),h(x),h(ee),h(Z),h(J),re=!1},d(C){C&&(_(e),_(ke),_(_e)),y(r),pe[i].d(),X&&X.d(),Y&&Y.d(),x&&x.d(),ee&&ee.d(),Z&&Z.d(),J&&J.d(C),De=!1,Ve()}}}function On(s,e,l){let t,n,r,o,a,f,i,c,u,m,d,$,P,V,N,B,M;te(s,Se,q=>l(26,P=q)),te(s,ze,q=>l(27,V=q)),te(s,be,q=>l(28,N=q)),te(s,fl,q=>l(14,B=q)),te(s,cl,q=>l(15,M=q));let{event:j}=e,{initialItem:R}=e,{compact:le=!1}=e,{expandAll:oe=!1}=e,{typedError:ue=!1}=e,{active:fe=!1}=e,{onRowClick:de=ne}=e,me=ve(j)?Array.from(j.events.keys()).pop():j.id;const ke=()=>{l(7,a=!a),de()},_e=qe(j),re=He(j),De=We(j);function Ve(q){me=q,l(5,me)}return s.$$set=q=>{"event"in q&&l(0,j=q.event),"initialItem"in q&&l(20,R=q.initialItem),"compact"in q&&l(1,le=q.compact),"expandAll"in q&&l(2,oe=q.expandAll),"typedError"in q&&l(3,ue=q.typedError),"active"in q&&l(4,fe=q.active),"onRowClick"in q&&l(21,de=q.onRowClick)},s.$$.update=()=>{s.$$.dirty&268435456&&l(24,{workflow:t,run:n,namespace:r}=N.params,t,(l(23,n),l(28,N)),(l(25,r),l(28,N))),s.$$.dirty&58720257&&l(13,o=Qe({eventId:j.id,namespace:r,workflow:t,run:n})),s.$$.dirty&4&&l(7,a=oe),s.$$.dirty&134217728&&l(12,f=V==="descending"),s.$$.dirty&67108864&&l(22,i=P==="true"),s.$$.dirty&5242881&&l(11,c=i&&R&&j.id!==R.id),s.$$.dirty&3&&l(10,u=Mt(j,{compact:le})),s.$$.dirty&33&&l(6,m=ve(j)?j.events.get(me):j),s.$$.dirty&1048641&&l(9,d=it({start:R.eventTime,end:ve(j)?j.initialEvent.eventTime:m.eventTime,includeMilliseconds:!0})),s.$$.dirty&1&&l(8,$=ve(j)?it({start:j.initialEvent.eventTime,end:j.lastEvent.eventTime,includeMilliseconds:!0}):"")},[j,le,oe,ue,fe,me,m,a,$,d,u,c,f,o,B,M,ke,_e,re,De,R,de,i,n,t,r,P,V,N,Ve]}class Lr extends ae{constructor(e){super(),ie(this,e,On,Nn,se,{event:0,initialItem:20,compact:1,expandAll:2,typedError:3,active:4,onRowClick:21})}}const jn=({compact:s,sortOrder:e,showElapsed:l})=>{if(!((s||e==="descending")&&l==="false"))return`${e}:${l}`};function At(s,e,l){const t=s.slice();return t[9]=e[l].option,t[10]=e[l].label,t}function Mn(s){let e,l,t,n=G("common.date-and-time")+"",r,o;return e=new ge({props:{class:"md:hidden",name:"clock"}}),{c(){I(e.$$.fragment),l=A(),t=b("span"),r=L(n),this.h()},l(a){T(e.$$.fragment,a),l=S(a),t=k(a,"SPAN",{class:!0});var f=w(t);r=F(f,n),f.forEach(_),this.h()},h(){v(t,"class","max-md:hidden")},m(a,f){D(e,a,f),E(a,l,f),E(a,t,f),g(t,r),o=!0},p:ne,i(a){o||(p(e.$$.fragment,a),o=!0)},o(a){h(e.$$.fragment,a),o=!1},d(a){a&&(_(l),_(t)),y(e,a)}}}function Ln(s){let e=s[10]+"",l;return{c(){l=L(e)},l(t){l=F(t,e)},m(t,n){E(t,l,n)},p:ne,d(t){t&&_(l)}}}function St(s){let e,l;function t(){return s[7](s[9])}return e=new Ft({props:{selected:s[1]===s[9],$$slots:{default:[Ln]},$$scope:{ctx:s}}}),e.$on("click",t),{c(){I(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){D(e,n,r),l=!0},p(n,r){s=n;const o={};r&2&&(o.selected=s[1]===s[9]),r&8192&&(o.$$scope={dirty:r,ctx:s}),e.$set(o)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function Fn(s){let e=G("events.show-elapsed-time")+"",l;return{c(){l=L(e)},l(t){l=F(t,e)},m(t,n){E(t,l,n)},p:ne,d(t){t&&_(l)}}}function Rn(s){let e,l,t,n,r,o=ce(s[3]),a=[];for(let i=0;ih(a[i],1,1,()=>{a[i]=null});return l=new $l({}),n=new Ft({props:{selected:s[0]==="true",$$slots:{default:[Fn]},$$scope:{ctx:s}}}),n.$on("click",s[5]),{c(){for(let i=0;il(0,n=m)),te(s,ze,m=>l(1,r=m)),te(s,be,m=>l(8,o=m));let{compact:a}=e,f=[{label:G("events.sort-ascending"),option:"ascending"},{label:G("events.sort-descending"),option:"descending"}];const i=m=>{Be(ze,r=m,r),Rt({parameter:"sort",value:m,url:o.url})},c=()=>{n==="true"?Be(Se,n="false",n):Be(Se,n="true",n)},u=m=>i(m);return s.$$set=m=>{"compact"in m&&l(6,a=m.compact)},s.$$.update=()=>{s.$$.dirty&67&&l(2,t=jn({compact:a,sortOrder:r,showElapsed:n}))},[n,r,t,f,i,c,a,u]}class Wn extends ae{constructor(e){super(),ie(this,e,Hn,qn,se,{compact:6})}}function zn(s){let e,l;return e=new bl({props:{id:"event-category-filter-menu",options:s[0],initialSelected:s[2],label:s[3],active:!!s[1],selectAllLabel:G("common.select-all"),clearAllLabel:G("common.clear-all-capitalized"),onChange:s[4],variant:"table-header",icon:"filter"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,[n]){const r={};n&1&&(r.options=t[0]),n&4&&(r.initialSelected=t[2]),n&8&&(r.label=t[3]),n&2&&(r.active=!!t[1]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}let Qn="category";function Un(s,e,l){let t,n,r,o,a;te(s,be,u=>l(7,r=u)),te(s,il,u=>l(1,o=u)),te(s,El,u=>l(6,a=u));let{compact:f=!1}=e,i=(f?kl:wl).map(u=>({...u,label:G(u.label)}));const c=u=>{u.length===i.length&&(u=[]);const m=u.map(d=>d.value).join(",");Rt({parameter:Qn,value:m,url:r.url})};return s.$$set=u=>{"compact"in u&&l(5,f=u.compact)},s.$$.update=()=>{s.$$.dirty&32&&l(3,t=f?G("events.event-type"):G("events.workflow-events")),s.$$.dirty&65&&Il("1.21",a)&&l(0,i=i.filter(({value:u})=>u!=="update")),s.$$.dirty&3&&l(2,n=o?i.filter(u=>o.includes(u.value)):[])},[i,o,n,t,c,f,a]}class Zn extends ae{constructor(e){super(),ie(this,e,Un,zn,se,{compact:5})}}function Jn(s){let e;const l=s[6].default,t=Ze(l,s,s[7],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&128)&&Je(t,l,n,n[7],e?Xe(l,n[7],r,null):Ke(n[7]),null)},i(n){e||(p(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function Kn(s){let e,l=G("workflows.event-history")+"",t;return{c(){e=b("caption"),t=L(l),this.h()},l(n){e=k(n,"CAPTION",{class:!0,slot:!0});var r=w(e);t=F(r,l),r.forEach(_),this.h()},h(){v(e,"class","sr-only"),v(e,"slot","caption")},m(n,r){E(n,e,r),g(e,t)},p:ne,d(n){n&&_(e)}}}function Xn(s){let e,l=(s[2]?G("common.collapse-all"):G("common.expand-all"))+"",t;return{c(){e=b("span"),t=L(l),this.h()},l(n){e=k(n,"SPAN",{class:!0});var r=w(e);t=F(r,l),r.forEach(_),this.h()},h(){v(e,"class","hidden sm:block")},m(n,r){E(n,e,r),g(e,t)},p(n,r){r&4&&l!==(l=(n[2]?G("common.collapse-all"):G("common.expand-all"))+"")&&H(t,l)},d(n){n&&_(e)}}}function Yn(s){let e,l,t,n,r,o,a,f,i,c,u,m;return n=new Wn({props:{compact:s[0]}}),a=new Zn({props:{compact:s[0]}}),u=new vl({props:{size:"sm",variant:"table-header",trailingIcon:s[2]?"chevron-up":"chevron-down",disabled:!!s[3],$$slots:{default:[Xn]},$$scope:{ctx:s}}}),u.$on("click",s[4]),{c(){e=b("td"),l=A(),t=b("th"),I(n.$$.fragment),r=A(),o=b("th"),I(a.$$.fragment),f=A(),i=b("th"),c=b("div"),I(u.$$.fragment),this.h()},l(d){e=k(d,"TD",{class:!0}),w(e).forEach(_),l=S(d),t=k(d,"TH",{class:!0});var $=w(t);T(n.$$.fragment,$),$.forEach(_),r=S(d),o=k(d,"TH",{class:!0});var P=w(o);T(a.$$.fragment,P),P.forEach(_),f=S(d),i=k(d,"TH",{class:!0});var V=w(i);c=k(V,"DIV",{class:!0});var N=w(c);T(u.$$.fragment,N),N.forEach(_),V.forEach(_),this.h()},h(){v(e,"class","w-14 xl:w-10"),v(t,"class","w-16 md:w-32"),v(o,"class","w-44"),v(c,"class","flex w-full justify-end"),v(i,"class","w-auto xl:w-80")},m(d,$){E(d,e,$),E(d,l,$),E(d,t,$),D(n,t,null),E(d,r,$),E(d,o,$),D(a,o,null),E(d,f,$),E(d,i,$),g(i,c),D(u,c,null),m=!0},p(d,$){const P={};$&1&&(P.compact=d[0]),n.$set(P);const V={};$&1&&(V.compact=d[0]),a.$set(V);const N={};$&4&&(N.trailingIcon=d[2]?"chevron-up":"chevron-down"),$&8&&(N.disabled=!!d[3]),$&132&&(N.$$scope={dirty:$,ctx:d}),u.$set(N)},i(d){m||(p(n.$$.fragment,d),p(a.$$.fragment,d),p(u.$$.fragment,d),m=!0)},o(d){h(n.$$.fragment,d),h(a.$$.fragment,d),h(u.$$.fragment,d),m=!1},d(d){d&&(_(e),_(l),_(t),_(r),_(o),_(f),_(i)),y(n),y(a),y(u)}}}function xn(s){let e,l;return e=new _l({props:{slot:"headers",$$slots:{default:[Yn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&141&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function er(s){let e,l;return e=new Lt({props:{updating:s[1],class:"w-full table-fixed","data-testid":"event-summary-table",$$slots:{headers:[xn],caption:[Kn],default:[Jn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,[n]){const r={};n&2&&(r.updating=t[1]),n&141&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function tr(s,e,l){let t,n,r;te(s,be,d=>l(5,n=d)),te(s,ol,d=>l(8,r=d));let{$$slots:o={},$$scope:a}=e,{compact:f=!1}=e,{updating:i=!1}=e,c=r==="true";const u=Gt();function m(){l(2,c=!c),u("expandAll",{expanded:c?"true":"false"})}return s.$$set=d=>{"compact"in d&&l(0,f=d.compact),"updating"in d&&l(1,i=d.updating),"$$scope"in d&&l(7,a=d.$$scope)},s.$$.update=()=>{s.$$.dirty&32&&l(3,t=n.params.id)},[f,i,c,t,m,n,o,a]}class Fr extends ae{constructor(e){super(),ie(this,e,tr,er,se,{compact:0,updating:1})}}export{Fr as E,Mr as a,Lr as b}; diff --git a/ui/assets/local/_app/immutable/chunks/events-service.NUMYVCrG.js b/ui/assets/local/_app/immutable/chunks/events-service.KaifCgIm.js similarity index 87% rename from ui/assets/local/_app/immutable/chunks/events-service.NUMYVCrG.js rename to ui/assets/local/_app/immutable/chunks/events-service.KaifCgIm.js index 557674a35e..0b7353cca5 100644 --- a/ui/assets/local/_app/immutable/chunks/events-service.NUMYVCrG.js +++ b/ui/assets/local/_app/immutable/chunks/events-service.KaifCgIm.js @@ -1 +1 @@ -import{t as p}from"./index.5wZ4nYFD.js";import{f as I}from"./events.aXJDTsuJ.js";import{r as x}from"./workflow-run.kUHgnSkK.js";import{b as N}from"./has.Hk4nWl3x.js";import{p as q}from"./paginated.B9N6PRmU.js";import{r as m,a as y}from"./route-for-api.FVhOJtE0.js";var R=A;function A(e,o,s){var n=null,t=null,r=s&&s.leading,a=s&&s.trailing;r==null&&(r=!0),a==null&&(a=!r),r==!0&&(a=!1);var c=function(){n&&(clearTimeout(n),n=null)},l=function(){var i=t;c(),i&&i()},u=function(){var i=r&&!n,f=this,w=arguments;if(t=function(){return e.apply(f,w)},n||(n=setTimeout(function(){if(n=null,a)return t()},o)),i)return i=!1,t()};return u.cancel=c,u.flush=l,u}const F=e=>!N(e)||e==="descending"?"events.descending":e==="ascending"?"events.ascending":"events.descending",j=async({namespace:e,workflowId:o,runId:s,sort:n,onStart:t,onUpdate:r,onComplete:a})=>{const c=F(n),l=m(c,{namespace:e,workflowId:o});return(await q(async i=>y(l,{token:i,request:fetch,params:{"execution.runId":s}}),{onStart:t,onUpdate:r,onComplete:a})).history.events},P=R(()=>{x.set(Date.now())},5e3),k=async({namespace:e,workflowId:o,runId:s,sort:n="ascending",signal:t,historySize:r})=>{const a=()=>{t&&I.set([])},c=(v,d)=>{var g,E;if(!t)return;I.set([...p((g=v.history)==null?void 0:g.events)]);const h=(E=d==null?void 0:d.history)==null?void 0:E.events;r&&(h==null?void 0:h.every(H=>parseInt(H.eventId)>parseInt(r)))&&P()},l=()=>{t&&x.set(Date.now())},u=F(n),i=m(u,{namespace:e,workflowId:o}),f=await q(async v=>y(i,{token:v,request:fetch,params:{"execution.runId":s,waitNewEvent:t?"true":"false"},options:{signal:t}}),{onStart:a,onUpdate:c,onComplete:l});return f!=null&&f.history?await p(f.history.events):[]},S=async({namespace:e,workflowId:o,runId:s,sort:n,maximumPageSize:t="20"})=>{const r=m(`events.${n}`,{namespace:e,workflowId:o});try{return(await y(r,{request:fetch,params:{maximumPageSize:t,"execution.runId":s}})).history.events}catch{return[]}},z=async e=>{const o=await S({...e,sort:"ascending",maximumPageSize:"1"});return(await p(o))[0]};export{z as a,j as b,k as f}; +import{t as p}from"./index.xcFFIXD-.js";import{f as I}from"./events.iAm6Xqt4.js";import{r as x}from"./workflow-run.UJKlq2cH.js";import{b as N}from"./has.Hk4nWl3x.js";import{p as q}from"./paginated.iUX1l8lJ.js";import{r as m,a as y}from"./route-for-api.hWBHnwul.js";var R=A;function A(e,o,s){var n=null,t=null,r=s&&s.leading,a=s&&s.trailing;r==null&&(r=!0),a==null&&(a=!r),r==!0&&(a=!1);var c=function(){n&&(clearTimeout(n),n=null)},l=function(){var i=t;c(),i&&i()},u=function(){var i=r&&!n,f=this,w=arguments;if(t=function(){return e.apply(f,w)},n||(n=setTimeout(function(){if(n=null,a)return t()},o)),i)return i=!1,t()};return u.cancel=c,u.flush=l,u}const F=e=>!N(e)||e==="descending"?"events.descending":e==="ascending"?"events.ascending":"events.descending",j=async({namespace:e,workflowId:o,runId:s,sort:n,onStart:t,onUpdate:r,onComplete:a})=>{const c=F(n),l=m(c,{namespace:e,workflowId:o});return(await q(async i=>y(l,{token:i,request:fetch,params:{"execution.runId":s}}),{onStart:t,onUpdate:r,onComplete:a})).history.events},P=R(()=>{x.set(Date.now())},5e3),k=async({namespace:e,workflowId:o,runId:s,sort:n="ascending",signal:t,historySize:r})=>{const a=()=>{t&&I.set([])},c=(v,d)=>{var g,E;if(!t)return;I.set([...p((g=v.history)==null?void 0:g.events)]);const h=(E=d==null?void 0:d.history)==null?void 0:E.events;r&&(h==null?void 0:h.every(H=>parseInt(H.eventId)>parseInt(r)))&&P()},l=()=>{t&&x.set(Date.now())},u=F(n),i=m(u,{namespace:e,workflowId:o}),f=await q(async v=>y(i,{token:v,request:fetch,params:{"execution.runId":s,waitNewEvent:t?"true":"false"},options:{signal:t}}),{onStart:a,onUpdate:c,onComplete:l});return f!=null&&f.history?await p(f.history.events):[]},S=async({namespace:e,workflowId:o,runId:s,sort:n,maximumPageSize:t="20"})=>{const r=m(`events.${n}`,{namespace:e,workflowId:o});try{return(await y(r,{request:fetch,params:{maximumPageSize:t,"execution.runId":s}})).history.events}catch{return[]}},z=async e=>{const o=await S({...e,sort:"ascending",maximumPageSize:"1"});return(await p(o))[0]};export{z as a,j as b,k as f}; diff --git a/ui/assets/local/_app/immutable/chunks/events.aXJDTsuJ.js b/ui/assets/local/_app/immutable/chunks/events.iAm6Xqt4.js similarity index 70% rename from ui/assets/local/_app/immutable/chunks/events.aXJDTsuJ.js rename to ui/assets/local/_app/immutable/chunks/events.iAm6Xqt4.js index d5d47abef5..22569ea398 100644 --- a/ui/assets/local/_app/immutable/chunks/events.aXJDTsuJ.js +++ b/ui/assets/local/_app/immutable/chunks/events.iAm6Xqt4.js @@ -1 +1 @@ -import{d as e,w as c}from"./entry.1BQh90wu.js";import{p as o}from"./stores.6oDSidma.js";import{a as l}from"./auth-user.ZpmVHepC.js";import{r as i}from"./workflow-run.kUHgnSkK.js";import{d as a}from"./encode-uri.Mzeiosm2.js";import{i as f,a as p}from"./is-event-type.Ut7dN4k9.js";import{b as u,c as v}from"./filters.59IbP5Ow.js";import{p as m}from"./persist-store.yDfC1oT_.js";const w=e([o],([r])=>r.params.namespace?a(r.params.namespace):""),E=e([o],([r])=>r.params.workflow?a(r.params.workflow):""),y=e([o],([r])=>r.params.run?a(r.params.run):""),k=e([o],([r])=>{var t;return(t=r.data)==null?void 0:t.settings}),H=e([l],([r])=>r==null?void 0:r.accessToken),I=e([w,E,y,u],([r,t,s,n])=>({namespace:r,workflowId:t,runId:s,sort:n}));e([I,k,H,i],([r,t,s,n])=>({...r,settings:t,accessToken:s,refresh:i,$refresh:n}));const L=c(null),d=c([]),M=e([d,v],([r,t])=>r.filter(s=>f(s)?t.includes("local-activity"):t.includes(s.category))),j=e(d,r=>r.filter(p)),q=m("decodeEventHistory",!0,!0),z=m("downloadEventHistorySetting","encoded",!0);export{M as a,z as b,q as d,d as f,j as r,L as t}; +import{d as e,w as c}from"./entry.6mxJxwSM.js";import{p as o}from"./stores.cW8AX6ex.js";import{a as l}from"./auth-user.hBqnVR-w.js";import{r as i}from"./workflow-run.UJKlq2cH.js";import{d as a}from"./encode-uri.Mzeiosm2.js";import{i as f,a as p}from"./is-event-type.Ut7dN4k9.js";import{b as u,c as v}from"./filters.iDq_cVKd.js";import{p as m}from"./persist-store.cEgNkZhn.js";const w=e([o],([r])=>r.params.namespace?a(r.params.namespace):""),E=e([o],([r])=>r.params.workflow?a(r.params.workflow):""),y=e([o],([r])=>r.params.run?a(r.params.run):""),k=e([o],([r])=>{var t;return(t=r.data)==null?void 0:t.settings}),H=e([l],([r])=>r==null?void 0:r.accessToken),I=e([w,E,y,u],([r,t,s,n])=>({namespace:r,workflowId:t,runId:s,sort:n}));e([I,k,H,i],([r,t,s,n])=>({...r,settings:t,accessToken:s,refresh:i,$refresh:n}));const L=c(null),d=c([]),M=e([d,v],([r,t])=>r.filter(s=>f(s)?t.includes("local-activity"):t.includes(s.category))),j=e(d,r=>r.filter(p)),q=m("decodeEventHistory",!0,!0),z=m("downloadEventHistorySetting","encoded",!0);export{M as a,z as b,q as d,d as f,j as r,L as t}; diff --git a/ui/assets/local/_app/immutable/chunks/filters.59IbP5Ow.js b/ui/assets/local/_app/immutable/chunks/filters.iDq_cVKd.js similarity index 72% rename from ui/assets/local/_app/immutable/chunks/filters.59IbP5Ow.js rename to ui/assets/local/_app/immutable/chunks/filters.iDq_cVKd.js index 0510068bf4..0cdae2bcb7 100644 --- a/ui/assets/local/_app/immutable/chunks/filters.59IbP5Ow.js +++ b/ui/assets/local/_app/immutable/chunks/filters.iDq_cVKd.js @@ -1 +1 @@ -import{p as t}from"./persist-store.yDfC1oT_.js";import{d as r,w as o}from"./entry.1BQh90wu.js";import{p as a}from"./stores.6oDSidma.js";import{a as c}from"./get-event-categorization.if3aIlTT.js";import{D as n}from"./scheduler.1T9hOnFr.js";t("autoRefreshWorkflow","off");const k=t("eventView","feed",!0),S=t("expandAllEvents","false"),q=t("eventFilterSort","descending"),C=t("eventShowElapsed","false"),p=r([a],([e])=>e.url.searchParams.get("query")),V=t("showChildWorkflows",!0,!0),f=r([a],([e])=>e.url.searchParams.get("category")),u=r([a],([e])=>e.url.searchParams.get("classification")),i=r([p,f,u],([e,s,l])=>({query:e,category:s,classification:l})),d=e=>i.subscribe(({query:s})=>{!s&&n(w).length&&e([])}),W=t("searchInputView",!1,!0),w=o([],d),m=e=>i.subscribe(({category:s})=>{!s&&n(v)&&e(null)}),v=o(void 0,m),g=c.map(({value:e})=>e),x=o(g);export{v as a,q as b,x as c,C as d,S as e,k as f,W as g,V as s,w}; +import{p as t}from"./persist-store.cEgNkZhn.js";import{d as r,w as o}from"./entry.6mxJxwSM.js";import{p as a}from"./stores.cW8AX6ex.js";import{a as c}from"./get-event-categorization.if3aIlTT.js";import{D as n}from"./scheduler.pPC3woXQ.js";t("autoRefreshWorkflow","off");const k=t("eventView","feed",!0),S=t("expandAllEvents","false"),q=t("eventFilterSort","descending"),C=t("eventShowElapsed","false"),p=r([a],([e])=>e.url.searchParams.get("query")),V=t("showChildWorkflows",!0,!0),f=r([a],([e])=>e.url.searchParams.get("category")),u=r([a],([e])=>e.url.searchParams.get("classification")),i=r([p,f,u],([e,s,l])=>({query:e,category:s,classification:l})),d=e=>i.subscribe(({query:s})=>{!s&&n(w).length&&e([])}),W=t("searchInputView",!1,!0),w=o([],d),m=e=>i.subscribe(({category:s})=>{!s&&n(v)&&e(null)}),v=o(void 0,m),g=c.map(({value:e})=>e),x=o(g);export{v as a,q as b,x as c,C as d,S as e,k as f,W as g,V as s,w}; diff --git a/ui/assets/local/_app/immutable/chunks/flow9.MBufEOoR.js b/ui/assets/local/_app/immutable/chunks/flow9.MBufEOoR.js new file mode 100644 index 0000000000..d290f11987 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/flow9.MBufEOoR.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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:">"}]},o={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"]]}};export{e as conf,o as language}; diff --git a/ui/assets/local/_app/immutable/chunks/format-event-attributes.fwoKRLe7.js b/ui/assets/local/_app/immutable/chunks/format-event-attributes.cNbJ0r9V.js similarity index 90% rename from ui/assets/local/_app/immutable/chunks/format-event-attributes.fwoKRLe7.js rename to ui/assets/local/_app/immutable/chunks/format-event-attributes.cNbJ0r9V.js index 1746f556ce..13f64d746f 100644 --- a/ui/assets/local/_app/immutable/chunks/format-event-attributes.fwoKRLe7.js +++ b/ui/assets/local/_app/immutable/chunks/format-event-attributes.cNbJ0r9V.js @@ -1 +1 @@ -import{D as i}from"./scheduler.1T9hOnFr.js";import{t as n}from"./translate.HrioCK44.js";import{f as y,r as h,t as w}from"./time-format.HFIwVHuT.js";import{c as m}from"./format-camel-case.z6e2GZpK.js";import{s as p,a as b,b as k,p as f,c as d}from"./index.45yCe-rq.js";const l=new Set(["header"]),D=new Set(["taskQueue","retryPolicy","parentWorkflowExecution","workflowExecution","meta"]),O=new Set(["maximumAttempts"]),$=(a,t)=>a===0?n("workflows.no-expiration"):t,L=(a,t)=>a?a-t:n("workflows.unlimited"),Q=a=>a||n("workflows.unlimited"),x=(a,t)=>a==="maximumAttempts"&&!t?n("workflows.unlimited"):t,c=(a,t)=>{if(D.has(t)&&typeof a[t]=="object"){for(const[s,e]of Object.entries(a[t]))b(e)&&(O.has(s)?a[`${t}${m(s)}`]=x(s,e):a[`${t}${m(s)}`]=e);delete a[t]}},V=(a,{compact:t}={compact:!1})=>{const s={};t&&(s.eventTime=y(a.eventTime,i(w),{relative:i(h)}));for(const[e,o]of Object.entries(a.attributes)){const r=p(e,o);!l.has(e)&&r&&(s[e]=o),c(s,e)}return s},g=a=>{const t={};return a.eventList.forEach(s=>{for(const[e,o]of Object.entries(s.attributes)){const r=p(e,o);!l.has(e)&&r&&(t[e]=o),c(t,e)}}),Object.keys(t).forEach(s=>{k(s,t[s])||delete t[s]}),t},F=a=>{const t={},s=Object.entries(a).sort(([e],[o])=>f.indexOf(e)-f.indexOf(o));for(const[e,o]of s){const r=d(e),v=e.toLowerCase().includes("time")?y(String(o),i(w),{relative:i(h)}):o;!l.has(e)&&r&&(t[e]=v),c(t,e)}return t},u=["summary","parent","activity","taskQueue","schedule","retryPolicy","workflow","searchAttributes"],I={activity:{label:"events.attribute-group.activity"},parent:{label:"events.attribute-group.parent"},retryPolicy:{label:"events.attribute-group.retry-policy"},schedule:{label:"events.attribute-group.schedule"},searchAttributes:{label:"events.attribute-group.search-attributes"},summary:{label:"events.attribute-group.summary"},taskQueue:{label:"events.attribute-group.task-queue"},workflow:{label:"events.attribute-group.workflow"}},j=(a,t)=>{var s,e;a.category==="activity"&&((s=t==null?void 0:t.activity)!=null&&s.length)&&(t.summary=[...t.activity,...t.summary],t.activity=[]),a.category==="activity"&&((e=t==null?void 0:t.workflow)!=null&&e.length)&&(t.summary=[...t.summary,...t.workflow],t.workflow=[])},E=a=>{const t=new Set(["summary","searchAttributes"]);for(const[s,e]of Object.entries(a))e.length===1&&!t.has(s)&&(a.summary=[...a.summary,...e],a[s]=[])},K=(a,t)=>{const s={};u.forEach(e=>{e==="summary"?s[e]=Object.keys(t):s[e]=[]});for(const e in t){const o=u.find(r=>e.includes(r));o&&(s[o]=[e,...s[o]],s.summary=s.summary.filter(r=>r!==e))}return j(a,s),E(s),s};export{Q as a,$ as b,I as c,V as d,K as e,L as f,g,F as h}; +import{D as i}from"./scheduler.pPC3woXQ.js";import{t as n}from"./translate.HrioCK44.js";import{f as y,r as h,t as w}from"./time-format.dnMZnAkG.js";import{c as m}from"./format-camel-case.z6e2GZpK.js";import{s as p,a as b,b as k,p as f,c as d}from"./index.fCt83tdf.js";const l=new Set(["header"]),D=new Set(["taskQueue","retryPolicy","parentWorkflowExecution","workflowExecution","meta"]),O=new Set(["maximumAttempts"]),$=(a,t)=>a===0?n("workflows.no-expiration"):t,L=(a,t)=>a?a-t:n("workflows.unlimited"),Q=a=>a||n("workflows.unlimited"),x=(a,t)=>a==="maximumAttempts"&&!t?n("workflows.unlimited"):t,c=(a,t)=>{if(D.has(t)&&typeof a[t]=="object"){for(const[s,e]of Object.entries(a[t]))b(e)&&(O.has(s)?a[`${t}${m(s)}`]=x(s,e):a[`${t}${m(s)}`]=e);delete a[t]}},V=(a,{compact:t}={compact:!1})=>{const s={};t&&(s.eventTime=y(a.eventTime,i(w),{relative:i(h)}));for(const[e,o]of Object.entries(a.attributes)){const r=p(e,o);!l.has(e)&&r&&(s[e]=o),c(s,e)}return s},g=a=>{const t={};return a.eventList.forEach(s=>{for(const[e,o]of Object.entries(s.attributes)){const r=p(e,o);!l.has(e)&&r&&(t[e]=o),c(t,e)}}),Object.keys(t).forEach(s=>{k(s,t[s])||delete t[s]}),t},F=a=>{const t={},s=Object.entries(a).sort(([e],[o])=>f.indexOf(e)-f.indexOf(o));for(const[e,o]of s){const r=d(e),v=e.toLowerCase().includes("time")?y(String(o),i(w),{relative:i(h)}):o;!l.has(e)&&r&&(t[e]=v),c(t,e)}return t},u=["summary","parent","activity","taskQueue","schedule","retryPolicy","workflow","searchAttributes"],I={activity:{label:"events.attribute-group.activity"},parent:{label:"events.attribute-group.parent"},retryPolicy:{label:"events.attribute-group.retry-policy"},schedule:{label:"events.attribute-group.schedule"},searchAttributes:{label:"events.attribute-group.search-attributes"},summary:{label:"events.attribute-group.summary"},taskQueue:{label:"events.attribute-group.task-queue"},workflow:{label:"events.attribute-group.workflow"}},j=(a,t)=>{var s,e;a.category==="activity"&&((s=t==null?void 0:t.activity)!=null&&s.length)&&(t.summary=[...t.activity,...t.summary],t.activity=[]),a.category==="activity"&&((e=t==null?void 0:t.workflow)!=null&&e.length)&&(t.summary=[...t.summary,...t.workflow],t.workflow=[])},E=a=>{const t=new Set(["summary","searchAttributes"]);for(const[s,e]of Object.entries(a))e.length===1&&!t.has(s)&&(a.summary=[...a.summary,...e],a[s]=[])},K=(a,t)=>{const s={};u.forEach(e=>{e==="summary"?s[e]=Object.keys(t):s[e]=[]});for(const e in t){const o=u.find(r=>e.includes(r));o&&(s[o]=[e,...s[o]],s.summary=s.summary.filter(r=>r!==e))}return j(a,s),E(s),s};export{Q as a,$ as b,I as c,V as d,K as e,L as f,g,F as h}; diff --git a/ui/assets/local/_app/immutable/chunks/freemarker2.8iJLkHG2.js b/ui/assets/local/_app/immutable/chunks/freemarker2.8iJLkHG2.js new file mode 100644 index 0000000000..c923e0ae4e --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/freemarker2.8iJLkHG2.js @@ -0,0 +1,8 @@ +import{m as F}from"./index.RJsVUSS8.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 + *-----------------------------------------------------------------------------*/var b=Object.defineProperty,x=Object.getOwnPropertyDescriptor,$=Object.getOwnPropertyNames,v=Object.prototype.hasOwnProperty,g=(t,n,_,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of $(n))!v.call(t,o)&&o!==_&&b(t,o,{get:()=>n[o],enumerable:!(e=x(n,o))||e.enumerable});return t},E=(t,n,_)=>(g(t,n,"default"),_&&g(_,n,"default")),r={};E(r,F);var d=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],s=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},u={close:"\\]",id:"bracket",open:"\\["},D={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.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(`${t.open}#(?:${s.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${s.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function A(){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(`[<\\[]#(?:${s.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${s.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function i(t,n){const _=`_${t.id}_${n.id}`,e=c=>c.replace(/__id__/g,_),o=c=>{const f=c.source.replace(/__id__/g,_);return new RegExp(f,c.flags)};return{unicode:!0,includeLF:!1,start:e("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"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@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:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@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:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@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"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function m(t){const n=i(a,t),_=i(u,t),e=i(D,t);return{...n,..._,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.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:{...n.tokenizer,..._.tokenizer,...e.tokenizer}}}var C={conf:l(a),language:i(a,k)},w={conf:l(u),language:i(u,k)},T={conf:l(a),language:i(a,p)},h={conf:l(u),language:i(u,p)},S={conf:A(),language:m(k)},P={conf:A(),language:m(p)};export{T as TagAngleInterpolationBracket,C as TagAngleInterpolationDollar,P as TagAutoInterpolationBracket,S as TagAutoInterpolationDollar,h as TagBracketInterpolationBracket,w as TagBracketInterpolationDollar}; diff --git a/ui/assets/local/_app/immutable/chunks/fsharp._bo4G3ka.js b/ui/assets/local/_app/immutable/chunks/fsharp._bo4G3ka.js new file mode 100644 index 0000000000..5eecbf55bc --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/fsharp._bo4G3ka.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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*\\*\\)")}}},n={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"}]]}};export{e as conf,n as language}; diff --git a/ui/assets/local/_app/immutable/chunks/go.tLdo0wkN.js b/ui/assets/local/_app/immutable/chunks/go.tLdo0wkN.js new file mode 100644 index 0000000000..c7de2b4b79 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/go.tLdo0wkN.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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:"'"}]},n={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"]]}};export{e as conf,n as language}; diff --git a/ui/assets/local/_app/immutable/chunks/graphql.y9N1IPUE.js b/ui/assets/local/_app/immutable/chunks/graphql.y9N1IPUE.js new file mode 100644 index 0000000000..10d7278c78 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/graphql.y9N1IPUE.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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}},n={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"]]}};export{e as conf,n as language}; diff --git a/ui/assets/local/_app/immutable/chunks/handlebars.ym0vFXfC.js b/ui/assets/local/_app/immutable/chunks/handlebars.ym0vFXfC.js new file mode 100644 index 0000000000..f22ecab3cc --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/handlebars.ym0vFXfC.js @@ -0,0 +1,6 @@ +import{m as i}from"./index.RJsVUSS8.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 + *-----------------------------------------------------------------------------*/var s=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,o=(t,e,a,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of c(e))!p.call(t,n)&&n!==a&&s(t,n,{get:()=>e[n],enumerable:!(m=d(e,n))||m.enumerable});return t},h=(t,e,a)=>(o(t,e,"default"),a&&o(a,e,"default")),r={};h(r,i);var l=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],u={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(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:r.languages.IndentAction.Indent}}]},y={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"]]}};export{u as conf,y as language}; diff --git a/ui/assets/local/_app/immutable/chunks/hcl.so4quyZJ.js b/ui/assets/local/_app/immutable/chunks/hcl.so4quyZJ.js new file mode 100644 index 0000000000..30a8b0374c --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/hcl.so4quyZJ.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"#",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},t={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"}]}};export{e as conf,t as language}; diff --git a/ui/assets/local/_app/immutable/chunks/heart-beat-indicator.MHmdZ7Da.js b/ui/assets/local/_app/immutable/chunks/heart-beat-indicator.qiiCwRNe.js similarity index 91% rename from ui/assets/local/_app/immutable/chunks/heart-beat-indicator.MHmdZ7Da.js rename to ui/assets/local/_app/immutable/chunks/heart-beat-indicator.qiiCwRNe.js index 5979151cf1..1093c6ff8c 100644 --- a/ui/assets/local/_app/immutable/chunks/heart-beat-indicator.MHmdZ7Da.js +++ b/ui/assets/local/_app/immutable/chunks/heart-beat-indicator.qiiCwRNe.js @@ -1 +1 @@ -import{s as f,h as c,b as x,t as u,j as v,k as w,o as y,d as _,l as g,f as h,m as o,i as k,n as d,v as p}from"./scheduler.1T9hOnFr.js";import{S as b,i as H}from"./index.cVovwi_s.js";function S(l){let e,t,r='
',a,n;return{c(){e=c("div"),t=c("div"),t.innerHTML=r,a=x(),n=u(m),this.h()},l(i){e=v(i,"DIV",{class:!0,style:!0});var s=w(e);t=v(s,"DIV",{class:!0,"data-svelte-h":!0}),y(t)!=="svelte-kffer6"&&(t.innerHTML=r),a=_(s),n=g(s,m),s.forEach(h),this.h()},h(){o(t,"class","heart-rate svelte-1s62w39"),o(e,"class","heart-beat svelte-1s62w39"),o(e,"style",l[0])},m(i,s){k(i,e,s),d(e,t),d(e,a),d(e,n)},p(i,[s]){s&1&&o(e,"style",i[0])},i:p,o:p,d(i){i&&h(e)}}}let m="";function V(l,e,t){let r,{delay:a=0}=e;return l.$$set=n=>{"delay"in n&&t(1,a=n.delay)},l.$$.update=()=>{l.$$.dirty&2&&t(0,r=`--animation-delay:${a}ms;`)},[r,a]}class I extends b{constructor(e){super(),H(this,e,V,S,f,{delay:1})}}export{I as H}; +import{s as f,h as c,b as x,t as u,j as v,k as w,o as y,d as _,l as g,f as h,m as o,i as k,n as d,v as p}from"./scheduler.pPC3woXQ.js";import{S as b,i as H}from"./index.Z3Qqxacm.js";function S(l){let e,t,r='
',a,n;return{c(){e=c("div"),t=c("div"),t.innerHTML=r,a=x(),n=u(m),this.h()},l(i){e=v(i,"DIV",{class:!0,style:!0});var s=w(e);t=v(s,"DIV",{class:!0,"data-svelte-h":!0}),y(t)!=="svelte-kffer6"&&(t.innerHTML=r),a=_(s),n=g(s,m),s.forEach(h),this.h()},h(){o(t,"class","heart-rate svelte-1s62w39"),o(e,"class","heart-beat svelte-1s62w39"),o(e,"style",l[0])},m(i,s){k(i,e,s),d(e,t),d(e,a),d(e,n)},p(i,[s]){s&1&&o(e,"style",i[0])},i:p,o:p,d(i){i&&h(e)}}}let m="";function V(l,e,t){let r,{delay:a=0}=e;return l.$$set=n=>{"delay"in n&&t(1,a=n.delay)},l.$$.update=()=>{l.$$.dirty&2&&t(0,r=`--animation-delay:${a}ms;`)},[r,a]}class I extends b{constructor(e){super(),H(this,e,V,S,f,{delay:1})}}export{I as H}; diff --git a/ui/assets/local/_app/immutable/chunks/html.QzS8bPWm.js b/ui/assets/local/_app/immutable/chunks/html.QzS8bPWm.js new file mode 100644 index 0000000000..6997ef74e3 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/html.QzS8bPWm.js @@ -0,0 +1,6 @@ +import{m as d}from"./index.RJsVUSS8.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 + *-----------------------------------------------------------------------------*/var p=Object.defineProperty,m=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,a=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of l(e))!c.call(t,r)&&r!==n&&p(t,r,{get:()=>e[r],enumerable:!(o=m(e,r))||o.enumerable});return t},u=(t,e,n)=>(a(t,e,"default"),n&&a(n,e,"default")),i={};u(i,d);var s=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],x={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(`<(?!(?:${s.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${s.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},y={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"}],[/[^<]+/,""]]}};export{x as conf,y as language}; diff --git a/ui/assets/local/_app/immutable/chunks/htmlMode.xb9PbiRv.js b/ui/assets/local/_app/immutable/chunks/htmlMode.xb9PbiRv.js new file mode 100644 index 0000000000..b9b407d578 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/htmlMode.xb9PbiRv.js @@ -0,0 +1,9 @@ +import{m as ft}from"./index.RJsVUSS8.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 + *-----------------------------------------------------------------------------*/var gt=Object.defineProperty,ht=Object.getOwnPropertyDescriptor,vt=Object.getOwnPropertyNames,pt=Object.prototype.hasOwnProperty,T=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of vt(n))!pt.call(e,t)&&t!==i&>(e,t,{get:()=>n[t],enumerable:!(r=ht(n,t))||r.enumerable});return e},mt=(e,n,i)=>(T(e,n,"default"),i&&T(i,n,"default")),c={};mt(c,ft);var _t=2*60*1e3,Ge=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>_t&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},Y;(function(e){function n(i){return typeof i=="string"}e.is=n})(Y||(Y={}));var S;(function(e){function n(i){return typeof i=="string"}e.is=n})(S||(S={}));var Z;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function n(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=n})(Z||(Z={}));var M;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function n(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=n})(M||(M={}));var b;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=M.MAX_VALUE),t===Number.MAX_VALUE&&(t=M.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&a.uinteger(t.line)&&a.uinteger(t.character)}e.is=i})(b||(b={}));var h;(function(e){function n(r,t,o,s){if(a.uinteger(r)&&a.uinteger(t)&&a.uinteger(o)&&a.uinteger(s))return{start:b.create(r,t),end:b.create(o,s)};if(b.is(r)&&b.is(t))return{start:r,end:t};throw new Error(`Range#create called with invalid arguments[${r}, ${t}, ${o}, ${s}]`)}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&b.is(t.start)&&b.is(t.end)}e.is=i})(h||(h={}));var C;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&h.is(t.range)&&(a.string(t.uri)||a.undefined(t.uri))}e.is=i})(C||(C={}));var K;(function(e){function n(r,t,o,s){return{targetUri:r,targetRange:t,targetSelectionRange:o,originSelectionRange:s}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&h.is(t.targetRange)&&a.string(t.targetUri)&&h.is(t.targetSelectionRange)&&(h.is(t.originSelectionRange)||a.undefined(t.originSelectionRange))}e.is=i})(K||(K={}));var O;(function(e){function n(r,t,o,s){return{red:r,green:t,blue:o,alpha:s}}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&a.numberRange(t.red,0,1)&&a.numberRange(t.green,0,1)&&a.numberRange(t.blue,0,1)&&a.numberRange(t.alpha,0,1)}e.is=i})(O||(O={}));var ee;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&h.is(t.range)&&O.is(t.color)}e.is=i})(ee||(ee={}));var te;(function(e){function n(r,t,o){return{label:r,textEdit:t,additionalTextEdits:o}}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&a.string(t.label)&&(a.undefined(t.textEdit)||E.is(t))&&(a.undefined(t.additionalTextEdits)||a.typedArray(t.additionalTextEdits,E.is))}e.is=i})(te||(te={}));var A;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(A||(A={}));var re;(function(e){function n(r,t,o,s,u,f){const d={startLine:r,endLine:t};return a.defined(o)&&(d.startCharacter=o),a.defined(s)&&(d.endCharacter=s),a.defined(u)&&(d.kind=u),a.defined(f)&&(d.collapsedText=f),d}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&a.uinteger(t.startLine)&&a.uinteger(t.startLine)&&(a.undefined(t.startCharacter)||a.uinteger(t.startCharacter))&&(a.undefined(t.endCharacter)||a.uinteger(t.endCharacter))&&(a.undefined(t.kind)||a.string(t.kind))}e.is=i})(re||(re={}));var U;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&C.is(t.location)&&a.string(t.message)}e.is=i})(U||(U={}));var x;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(x||(x={}));var ne;(function(e){e.Unnecessary=1,e.Deprecated=2})(ne||(ne={}));var ie;(function(e){function n(i){const r=i;return a.objectLiteral(r)&&a.string(r.href)}e.is=n})(ie||(ie={}));var F;(function(e){function n(r,t,o,s,u,f){let d={range:r,message:t};return a.defined(o)&&(d.severity=o),a.defined(s)&&(d.code=s),a.defined(u)&&(d.source=u),a.defined(f)&&(d.relatedInformation=f),d}e.create=n;function i(r){var t;let o=r;return a.defined(o)&&h.is(o.range)&&a.string(o.message)&&(a.number(o.severity)||a.undefined(o.severity))&&(a.integer(o.code)||a.string(o.code)||a.undefined(o.code))&&(a.undefined(o.codeDescription)||a.string((t=o.codeDescription)===null||t===void 0?void 0:t.href))&&(a.string(o.source)||a.undefined(o.source))&&(a.undefined(o.relatedInformation)||a.typedArray(o.relatedInformation,U.is))}e.is=i})(F||(F={}));var I;(function(e){function n(r,t,...o){let s={title:r,command:t};return a.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.title)&&a.string(t.command)}e.is=i})(I||(I={}));var E;(function(e){function n(o,s){return{range:o,newText:s}}e.replace=n;function i(o,s){return{range:{start:o,end:o},newText:s}}e.insert=i;function r(o){return{range:o,newText:""}}e.del=r;function t(o){const s=o;return a.objectLiteral(s)&&a.string(s.newText)&&h.is(s.range)}e.is=t})(E||(E={}));var V;(function(e){function n(r,t,o){const s={label:r};return t!==void 0&&(s.needsConfirmation=t),o!==void 0&&(s.description=o),s}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&a.string(t.label)&&(a.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(a.string(t.description)||t.description===void 0)}e.is=i})(V||(V={}));var L;(function(e){function n(i){const r=i;return a.string(r)}e.is=n})(L||(L={}));var oe;(function(e){function n(o,s,u){return{range:o,newText:s,annotationId:u}}e.replace=n;function i(o,s,u){return{range:{start:o,end:o},newText:s,annotationId:u}}e.insert=i;function r(o,s){return{range:o,newText:"",annotationId:s}}e.del=r;function t(o){const s=o;return E.is(s)&&(V.is(s.annotationId)||L.is(s.annotationId))}e.is=t})(oe||(oe={}));var W;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&B.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(W||(W={}));var H;(function(e){function n(r,t,o){let s={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(s.options=t),o!==void 0&&(s.annotationId=o),s}e.create=n;function i(r){let t=r;return t&&t.kind==="create"&&a.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||a.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||a.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||L.is(t.annotationId))}e.is=i})(H||(H={}));var X;(function(e){function n(r,t,o,s){let u={kind:"rename",oldUri:r,newUri:t};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(u.options=o),s!==void 0&&(u.annotationId=s),u}e.create=n;function i(r){let t=r;return t&&t.kind==="rename"&&a.string(t.oldUri)&&a.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||a.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||a.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||L.is(t.annotationId))}e.is=i})(X||(X={}));var $;(function(e){function n(r,t,o){let s={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(s.options=t),o!==void 0&&(s.annotationId=o),s}e.create=n;function i(r){let t=r;return t&&t.kind==="delete"&&a.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||a.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||a.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||L.is(t.annotationId))}e.is=i})($||($={}));var z;(function(e){function n(i){let r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(t=>a.string(t.kind)?H.is(t)||X.is(t)||$.is(t):W.is(t)))}e.is=n})(z||(z={}));var ae;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)}e.is=i})(ae||(ae={}));var se;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)&&a.integer(t.version)}e.is=i})(se||(se={}));var B;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)&&(t.version===null||a.integer(t.version))}e.is=i})(B||(B={}));var ue;(function(e){function n(r,t,o,s){return{uri:r,languageId:t,version:o,text:s}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)&&a.string(t.languageId)&&a.integer(t.version)&&a.string(t.text)}e.is=i})(ue||(ue={}));var q;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function n(i){const r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(q||(q={}));var P;(function(e){function n(i){const r=i;return a.objectLiteral(i)&&q.is(r.kind)&&a.string(r.value)}e.is=n})(P||(P={}));var v;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(v||(v={}));var Q;(function(e){e.PlainText=1,e.Snippet=2})(Q||(Q={}));var ce;(function(e){e.Deprecated=1})(ce||(ce={}));var de;(function(e){function n(r,t,o){return{newText:r,insert:t,replace:o}}e.create=n;function i(r){const t=r;return t&&a.string(t.newText)&&h.is(t.insert)&&h.is(t.replace)}e.is=i})(de||(de={}));var le;(function(e){e.asIs=1,e.adjustIndentation=2})(le||(le={}));var fe;(function(e){function n(i){const r=i;return r&&(a.string(r.detail)||r.detail===void 0)&&(a.string(r.description)||r.description===void 0)}e.is=n})(fe||(fe={}));var ge;(function(e){function n(i){return{label:i}}e.create=n})(ge||(ge={}));var he;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(he||(he={}));var y;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){const t=r;return a.string(t)||a.objectLiteral(t)&&a.string(t.language)&&a.string(t.value)}e.is=i})(y||(y={}));var ve;(function(e){function n(i){let r=i;return!!r&&a.objectLiteral(r)&&(P.is(r.contents)||y.is(r.contents)||a.typedArray(r.contents,y.is))&&(i.range===void 0||h.is(i.range))}e.is=n})(ve||(ve={}));var pe;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(pe||(pe={}));var me;(function(e){function n(i,r,...t){let o={label:i};return a.defined(r)&&(o.documentation=r),a.defined(t)?o.parameters=t:o.parameters=[],o}e.create=n})(me||(me={}));var R;(function(e){e.Text=1,e.Read=2,e.Write=3})(R||(R={}));var _e;(function(e){function n(i,r){let t={range:i};return a.number(r)&&(t.kind=r),t}e.create=n})(_e||(_e={}));var p;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(p||(p={}));var we;(function(e){e.Deprecated=1})(we||(we={}));var be;(function(e){function n(i,r,t,o,s){let u={name:i,kind:r,location:{uri:o,range:t}};return s&&(u.containerName=s),u}e.create=n})(be||(be={}));var ke;(function(e){function n(i,r,t,o){return o!==void 0?{name:i,kind:r,location:{uri:t,range:o}}:{name:i,kind:r,location:{uri:t}}}e.create=n})(ke||(ke={}));var xe;(function(e){function n(r,t,o,s,u,f){let d={name:r,detail:t,kind:o,range:s,selectionRange:u};return f!==void 0&&(d.children=f),d}e.create=n;function i(r){let t=r;return t&&a.string(t.name)&&a.number(t.kind)&&h.is(t.range)&&h.is(t.selectionRange)&&(t.detail===void 0||a.string(t.detail))&&(t.deprecated===void 0||a.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}e.is=i})(xe||(xe={}));var Ie;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Ie||(Ie={}));var j;(function(e){e.Invoked=1,e.Automatic=2})(j||(j={}));var Ee;(function(e){function n(r,t,o){let s={diagnostics:r};return t!=null&&(s.only=t),o!=null&&(s.triggerKind=o),s}e.create=n;function i(r){let t=r;return a.defined(t)&&a.typedArray(t.diagnostics,F.is)&&(t.only===void 0||a.typedArray(t.only,a.string))&&(t.triggerKind===void 0||t.triggerKind===j.Invoked||t.triggerKind===j.Automatic)}e.is=i})(Ee||(Ee={}));var Le;(function(e){function n(r,t,o){let s={title:r},u=!0;return typeof t=="string"?(u=!1,s.kind=t):I.is(t)?s.command=t:s.edit=t,u&&o!==void 0&&(s.kind=o),s}e.create=n;function i(r){let t=r;return t&&a.string(t.title)&&(t.diagnostics===void 0||a.typedArray(t.diagnostics,F.is))&&(t.kind===void 0||a.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||I.is(t.command))&&(t.isPreferred===void 0||a.boolean(t.isPreferred))&&(t.edit===void 0||z.is(t.edit))}e.is=i})(Le||(Le={}));var Ae;(function(e){function n(r,t){let o={range:r};return a.defined(t)&&(o.data=t),o}e.create=n;function i(r){let t=r;return a.defined(t)&&h.is(t.range)&&(a.undefined(t.command)||I.is(t.command))}e.is=i})(Ae||(Ae={}));var Re;(function(e){function n(r,t){return{tabSize:r,insertSpaces:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.uinteger(t.tabSize)&&a.boolean(t.insertSpaces)}e.is=i})(Re||(Re={}));var Pe;(function(e){function n(r,t,o){return{range:r,target:t,data:o}}e.create=n;function i(r){let t=r;return a.defined(t)&&h.is(t.range)&&(a.undefined(t.target)||a.string(t.target))}e.is=i})(Pe||(Pe={}));var De;(function(e){function n(r,t){return{range:r,parent:t}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&h.is(t.range)&&(t.parent===void 0||e.is(t.parent))}e.is=i})(De||(De={}));var Me;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Me||(Me={}));var Ce;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Ce||(Ce={}));var Fe;(function(e){function n(i){const r=i;return a.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=n})(Fe||(Fe={}));var ye;(function(e){function n(r,t){return{range:r,text:t}}e.create=n;function i(r){const t=r;return t!=null&&h.is(t.range)&&a.string(t.text)}e.is=i})(ye||(ye={}));var je;(function(e){function n(r,t,o){return{range:r,variableName:t,caseSensitiveLookup:o}}e.create=n;function i(r){const t=r;return t!=null&&h.is(t.range)&&a.boolean(t.caseSensitiveLookup)&&(a.string(t.variableName)||t.variableName===void 0)}e.is=i})(je||(je={}));var Ne;(function(e){function n(r,t){return{range:r,expression:t}}e.create=n;function i(r){const t=r;return t!=null&&h.is(t.range)&&(a.string(t.expression)||t.expression===void 0)}e.is=i})(Ne||(Ne={}));var Se;(function(e){function n(r,t){return{frameId:r,stoppedLocation:t}}e.create=n;function i(r){const t=r;return a.defined(t)&&h.is(r.stoppedLocation)}e.is=i})(Se||(Se={}));var G;(function(e){e.Type=1,e.Parameter=2;function n(i){return i===1||i===2}e.is=n})(G||(G={}));var J;(function(e){function n(r){return{value:r}}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&(t.tooltip===void 0||a.string(t.tooltip)||P.is(t.tooltip))&&(t.location===void 0||C.is(t.location))&&(t.command===void 0||I.is(t.command))}e.is=i})(J||(J={}));var Oe;(function(e){function n(r,t,o){const s={position:r,label:t};return o!==void 0&&(s.kind=o),s}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&b.is(t.position)&&(a.string(t.label)||a.typedArray(t.label,J.is))&&(t.kind===void 0||G.is(t.kind))&&t.textEdits===void 0||a.typedArray(t.textEdits,E.is)&&(t.tooltip===void 0||a.string(t.tooltip)||P.is(t.tooltip))&&(t.paddingLeft===void 0||a.boolean(t.paddingLeft))&&(t.paddingRight===void 0||a.boolean(t.paddingRight))}e.is=i})(Oe||(Oe={}));var Ue;(function(e){function n(i){return{kind:"snippet",value:i}}e.createSnippet=n})(Ue||(Ue={}));var Ve;(function(e){function n(i,r,t,o){return{insertText:i,filterText:r,range:t,command:o}}e.create=n})(Ve||(Ve={}));var We;(function(e){function n(i){return{items:i}}e.create=n})(We||(We={}));var He;(function(e){e.Invoked=0,e.Automatic=1})(He||(He={}));var Xe;(function(e){function n(i,r){return{range:i,text:r}}e.create=n})(Xe||(Xe={}));var $e;(function(e){function n(i,r){return{triggerKind:i,selectedCompletionInfo:r}}e.create=n})($e||($e={}));var ze;(function(e){function n(i){const r=i;return a.objectLiteral(r)&&S.is(r.uri)&&a.string(r.name)}e.is=n})(ze||(ze={}));var Be;(function(e){function n(o,s,u,f){return new wt(o,s,u,f)}e.create=n;function i(o){let s=o;return!!(a.defined(s)&&a.string(s.uri)&&(a.undefined(s.languageId)||a.string(s.languageId))&&a.uinteger(s.lineCount)&&a.func(s.getText)&&a.func(s.positionAt)&&a.func(s.offsetAt))}e.is=i;function r(o,s){let u=o.getText(),f=t(s,(g,_)=>{let w=g.range.start.line-_.range.start.line;return w===0?g.range.start.character-_.range.start.character:w}),d=u.length;for(let g=f.length-1;g>=0;g--){let _=f[g],w=o.offsetAt(_.range.start),l=o.offsetAt(_.range.end);if(l<=d)u=u.substring(0,w)+_.newText+u.substring(l,u.length);else throw new Error("Overlapping edit");d=w}return u}e.applyEdits=r;function t(o,s){if(o.length<=1)return o;const u=o.length/2|0,f=o.slice(0,u),d=o.slice(u);t(f,s),t(d,s);let g=0,_=0,w=0;for(;g0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),i=0,r=n.length;if(r===0)return b.create(0,e);for(;ie?r=o:i=o+1}let t=i-1;return b.create(t,e-n[t])}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let i=n[e.line],r=e.line+1"u"}e.undefined=r;function t(l){return l===!0||l===!1}e.boolean=t;function o(l){return n.call(l)==="[object String]"}e.string=o;function s(l){return n.call(l)==="[object Number]"}e.number=s;function u(l,N,lt){return n.call(l)==="[object Number]"&&N<=l&&l<=lt}e.numberRange=u;function f(l){return n.call(l)==="[object Number]"&&-2147483648<=l&&l<=2147483647}e.integer=f;function d(l){return n.call(l)==="[object Number]"&&0<=l&&l<=2147483647}e.uinteger=d;function g(l){return n.call(l)==="[object Function]"}e.func=g;function _(l){return l!==null&&typeof l=="object"}e.objectLiteral=_;function w(l,N){return Array.isArray(l)&&l.every(N)}e.typedArray=w})(a||(a={}));var yt=class{constructor(e,n,i){this._languageId=e,this._worker=n,this._disposables=[],this._listener=Object.create(null);const r=o=>{let s=o.getLanguageId();if(s!==this._languageId)return;let u;this._listener[o.uri.toString()]=o.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(o.uri,s),500)}),this._doValidate(o.uri,s)},t=o=>{c.editor.setModelMarkers(o,this._languageId,[]);let s=o.uri.toString(),u=this._listener[s];u&&(u.dispose(),delete this._listener[s])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(t)),this._disposables.push(c.editor.onDidChangeModelLanguage(o=>{t(o.model),r(o.model)})),this._disposables.push(i(o=>{c.editor.getModels().forEach(s=>{s.getLanguageId()===this._languageId&&(t(s),r(s))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(t);for(let o in this._listener)this._listener[o].dispose()}}),c.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const r=i.map(o=>kt(e,o));let t=c.editor.getModel(e);t&&t.getLanguageId()===n&&c.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function bt(e){switch(e){case x.Error:return c.MarkerSeverity.Error;case x.Warning:return c.MarkerSeverity.Warning;case x.Information:return c.MarkerSeverity.Info;case x.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function kt(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:bt(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var xt=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){const t=e.uri;return this._worker(t).then(o=>o.doComplete(t.toString(),k(n))).then(o=>{if(!o)return;const s=e.getWordUntilPosition(n),u=new c.Range(n.lineNumber,s.startColumn,n.lineNumber,s.endColumn),f=o.items.map(d=>{const g={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:Lt(d.command),range:u,kind:Et(d.kind)};return d.textEdit&&(It(d.textEdit)?g.range={insert:m(d.textEdit.insert),replace:m(d.textEdit.replace)}:g.range=m(d.textEdit.range),g.insertText=d.textEdit.newText),d.additionalTextEdits&&(g.additionalTextEdits=d.additionalTextEdits.map(D)),d.insertTextFormat===Q.Snippet&&(g.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),g});return{isIncomplete:o.isIncomplete,suggestions:f}})}};function k(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Je(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function m(e){if(e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function It(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function Et(e){const n=c.languages.CompletionItemKind;switch(e){case v.Text:return n.Text;case v.Method:return n.Method;case v.Function:return n.Function;case v.Constructor:return n.Constructor;case v.Field:return n.Field;case v.Variable:return n.Variable;case v.Class:return n.Class;case v.Interface:return n.Interface;case v.Module:return n.Module;case v.Property:return n.Property;case v.Unit:return n.Unit;case v.Value:return n.Value;case v.Enum:return n.Enum;case v.Keyword:return n.Keyword;case v.Snippet:return n.Snippet;case v.Color:return n.Color;case v.File:return n.File;case v.Reference:return n.Reference}return n.Property}function D(e){if(e)return{range:m(e.range),text:e.newText}}function Lt(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Te=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),k(n))).then(t=>{if(t)return{range:m(t.range),contents:Rt(t.contents)}})}};function At(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function qe(e){return typeof e=="string"?{value:e}:At(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` +`+e.value+"\n```\n"}}function Rt(e){if(e)return Array.isArray(e)?e.map(qe):[qe(e)]}var Ye=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),k(n))).then(t=>{if(t)return t.map(o=>({range:m(o.range),kind:Pt(o.kind)}))})}};function Pt(e){switch(e){case R.Read:return c.languages.DocumentHighlightKind.Read;case R.Write:return c.languages.DocumentHighlightKind.Write;case R.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var jt=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),k(n))).then(t=>{if(t)return[Ze(t)]})}};function Ze(e){return{uri:c.Uri.parse(e.uri),range:m(e.range)}}var Nt=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(o=>o.findReferences(t.toString(),k(n))).then(o=>{if(o)return o.map(Ze)})}},Ke=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(o=>o.doRename(t.toString(),k(n),i)).then(o=>Dt(o))}};function Dt(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=c.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:m(t.range),text:t.newText}})}return{edits:n}}var et=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(r)return r.map(t=>Mt(t)?tt(t):{name:t.name,detail:"",containerName:t.containerName,kind:rt(t.kind),range:m(t.location.range),selectionRange:m(t.location.range),tags:[]})})}};function Mt(e){return"children"in e}function tt(e){return{name:e.name,detail:e.detail??"",kind:rt(e.kind),range:m(e.range),selectionRange:m(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map(n=>tt(n))}}function rt(e){let n=c.languages.SymbolKind;switch(e){case p.File:return n.File;case p.Module:return n.Module;case p.Namespace:return n.Namespace;case p.Package:return n.Package;case p.Class:return n.Class;case p.Method:return n.Method;case p.Property:return n.Property;case p.Field:return n.Field;case p.Constructor:return n.Constructor;case p.Enum:return n.Enum;case p.Interface:return n.Interface;case p.Function:return n.Function;case p.Variable:return n.Variable;case p.Constant:return n.Constant;case p.String:return n.String;case p.Number:return n.Number;case p.Boolean:return n.Boolean;case p.Array:return n.Array}return n.Function}var nt=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(r)return{links:r.map(t=>({range:m(t.range),url:t.target}))}})}},it=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,at(n)).then(o=>{if(!(!o||o.length===0))return o.map(D)}))}},ot=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(o=>o.format(t.toString(),Je(n),at(i)).then(s=>{if(!(!s||s.length===0))return s.map(D)}))}};function at(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var St=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(r)return r.map(t=>({color:t.color,range:m(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,Je(n.range))).then(t=>{if(t)return t.map(o=>{let s={label:o.label};return o.textEdit&&(s.textEdit=D(o.textEdit)),o.additionalTextEdits&&(s.additionalTextEdits=o.additionalTextEdits.map(D)),s})})}},st=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(t)return t.map(o=>{const s={start:o.startLine+1,end:o.endLine+1};return typeof o.kind<"u"&&(s.kind=Ct(o.kind)),s})})}};function Ct(e){switch(e){case A.Comment:return c.languages.FoldingRangeKind.Comment;case A.Imports:return c.languages.FoldingRangeKind.Imports;case A.Region:return c.languages.FoldingRangeKind.Region}}var ut=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(k))).then(t=>{if(t)return t.map(o=>{const s=[];for(;o;)s.push({range:m(o.range)}),o=o.parent;return s})})}},ct=class extends xt{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function Ot(e){const n=new Ge(e),i=(...t)=>n.getLanguageServiceWorker(...t);let r=e.languageId;c.languages.registerCompletionItemProvider(r,new ct(i)),c.languages.registerHoverProvider(r,new Te(i)),c.languages.registerDocumentHighlightProvider(r,new Ye(i)),c.languages.registerLinkProvider(r,new nt(i)),c.languages.registerFoldingRangeProvider(r,new st(i)),c.languages.registerDocumentSymbolProvider(r,new et(i)),c.languages.registerSelectionRangeProvider(r,new ut(i)),c.languages.registerRenameProvider(r,new Ke(i)),r==="html"&&(c.languages.registerDocumentFormattingEditProvider(r,new it(i)),c.languages.registerDocumentRangeFormattingEditProvider(r,new ot(i)))}function Ut(e){const n=[],i=[],r=new Ge(e);n.push(r);const t=(...s)=>r.getLanguageServiceWorker(...s);function o(){const{languageId:s,modeConfiguration:u}=e;dt(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(s,new ct(t))),u.hovers&&i.push(c.languages.registerHoverProvider(s,new Te(t))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(s,new Ye(t))),u.links&&i.push(c.languages.registerLinkProvider(s,new nt(t))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(s,new et(t))),u.rename&&i.push(c.languages.registerRenameProvider(s,new Ke(t))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(s,new st(t))),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(s,new ut(t))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(s,new it(t))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(s,new ot(t)))}return o(),n.push(Qe(i)),Qe(n)}function Qe(e){return{dispose:()=>dt(e)}}function dt(e){for(;e.length;)e.pop().dispose()}export{xt as CompletionAdapter,jt as DefinitionAdapter,yt as DiagnosticsAdapter,St as DocumentColorAdapter,it as DocumentFormattingEditProvider,Ye as DocumentHighlightAdapter,nt as DocumentLinkAdapter,ot as DocumentRangeFormattingEditProvider,et as DocumentSymbolAdapter,st as FoldingRangeAdapter,Te as HoverAdapter,Nt as ReferenceAdapter,Ke as RenameAdapter,ut as SelectionRangeAdapter,Ge as WorkerManager,k as fromPosition,Je as fromRange,Ut as setupMode,Ot as setupMode1,m as toRange,D as toTextEdit}; diff --git a/ui/assets/local/_app/immutable/chunks/icon-button.WQBA9EQY.js b/ui/assets/local/_app/immutable/chunks/icon-button.dQoJQbAi.js similarity index 80% rename from ui/assets/local/_app/immutable/chunks/icon-button.WQBA9EQY.js rename to ui/assets/local/_app/immutable/chunks/icon-button.dQoJQbAi.js index f23152812a..e821308648 100644 --- a/ui/assets/local/_app/immutable/chunks/icon-button.WQBA9EQY.js +++ b/ui/assets/local/_app/immutable/chunks/icon-button.dQoJQbAi.js @@ -1 +1 @@ -import{s as _,z as c,E as u,A as g,B as h}from"./scheduler.1T9hOnFr.js";import{S as d,i as v,c as k,a as I,m as B,t as S,b as j,d as p}from"./index.cVovwi_s.js";import{g as q,a as z}from"./spread.rEx3vLA9.js";import{B as A}from"./button.y7LhNtq8.js";import{t as f}from"./tw-merge.NbP7EmZe.js";function C(s){let t,l;const o=[{variant:s[3]},{leadingIcon:s[1]},{class:f("h-9 w-9 shrink-0 rounded-full p-0",s[0])},{"aria-label":s[2]},s[4]];let r={};for(let a=0;a{t=c(c({},t),g(e)),l(4,r=u(t,o)),"class"in e&&l(0,a=e.class),"icon"in e&&l(1,n=e.icon),"label"in e&&l(2,i=e.label),"variant"in e&&l(3,m=e.variant)},[a,n,i,m,r,b]}class G extends d{constructor(t){super(),v(this,t,E,C,_,{class:0,icon:1,label:2,variant:3})}}export{G as I}; +import{s as _,z as c,E as u,A as g,B as h}from"./scheduler.pPC3woXQ.js";import{S as d,i as v,c as k,a as I,m as B,t as S,b as j,d as p}from"./index.Z3Qqxacm.js";import{g as q,a as z}from"./spread.rEx3vLA9.js";import{B as A}from"./button.pYfDLC93.js";import{t as f}from"./tw-merge.NbP7EmZe.js";function C(s){let t,l;const o=[{variant:s[3]},{leadingIcon:s[1]},{class:f("h-9 w-9 shrink-0 rounded-full p-0",s[0])},{"aria-label":s[2]},s[4]];let r={};for(let a=0;a{t=c(c({},t),g(e)),l(4,r=u(t,o)),"class"in e&&l(0,a=e.class),"icon"in e&&l(1,n=e.icon),"label"in e&&l(2,i=e.label),"variant"in e&&l(3,m=e.variant)},[a,n,i,m,r,b]}class G extends d{constructor(t){super(),v(this,t,E,C,_,{class:0,icon:1,label:2,variant:3})}}export{G as I}; diff --git a/ui/assets/local/_app/immutable/chunks/icon.w8eknFMq.js b/ui/assets/local/_app/immutable/chunks/icon.IMxiy1l_.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/icon.w8eknFMq.js rename to ui/assets/local/_app/immutable/chunks/icon.IMxiy1l_.js index 7a9e53bf52..3d82b18f1d 100644 --- a/ui/assets/local/_app/immutable/chunks/icon.w8eknFMq.js +++ b/ui/assets/local/_app/immutable/chunks/icon.IMxiy1l_.js @@ -1 +1 @@ -import{s as V,a as r1,z as f,J as g,t as n1,K as $,k as L,l as s1,f as o,av as J,i as h,n as I,q as l1,u as a1,g as c1,e as f1,E as z,A as i,m as u,v as b,b as G,d as T,C as D,I as N,x as O,ae as K}from"./scheduler.1T9hOnFr.js";import{S as p,i as v,t as d,b as C,c as m,a as Z,m as _,d as H,g as X,e as x}from"./index.cVovwi_s.js";import{g as M,a as w}from"./spread.rEx3vLA9.js";import{g as u1}from"./_commonjsHelpers.4gQjN7DL.js";function o1(s){let e,r,n,a,t,l;const c=s[6].default,j=r1(c,s,s[5],null);let S=[{width:s[1]},{height:s[2]},{viewBox:"0 0 24 24"},{fill:"none"},{xmlns:"http://www.w3.org/2000/svg"},{class:a=s[3].class},{role:"img"},{"aria-hidden":t=!s[0]},s[4]],k={};for(let A=0;A{r(3,e=f(f({},e),i(k))),r(4,a=z(e,n)),"title"in k&&r(0,c=k.title),"width"in k&&r(1,j=k.width),"height"in k&&r(2,S=k.height),"$$scope"in k&&r(5,l=k.$$scope)},e=i(e),[c,j,S,e,a,l,t]}class E extends p{constructor(e){super(),v(this,e,i1,o1,V,{title:0,width:1,height:2})}}function h1(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M11.0031 18.8625L12 20L12.9969 18.8625L19 12L12.9969 5.1375L12 4L11.0031 5.1375L5 12L11.0031 18.8625ZM12 17.7219L6.99375 12L12 6.27813L17.0063 12L12 17.7219Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function g1(s){let e,r;const n=[s[0]];let a={$$slots:{default:[h1]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class L1 extends p{constructor(e){super(),v(this,e,$1,g1,V,{})}}function d1(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"fill-rule","evenodd"),u(e,"clip-rule","evenodd"),u(e,"d","M13.25 13.25V22H10.75V13.25H2V10.75H10.75V2H13.25V10.75H22V13.25H13.25Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function C1(s){let e,r;const n=[s[0]];let a={$$slots:{default:[d1]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class _1 extends p{constructor(e){super(),v(this,e,m1,C1,V,{})}}function H1(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M21.75 3.75H2.25V6H3.75H20.25H21.75V3.75ZM22.5 8.25H21.75H20.25H3.75H2.25H1.5H0V6V3.75V1.5H2.25H21.75H24V3.75V6V8.25H22.5ZM7.5 10.5H8.625H15.375H16.5V12.75H15.375H8.625H7.5V10.5ZM20.25 9.75H22.5V20.25V22.5H20.25H3.75H1.5V20.25V9.75H3.75V20.25H20.25V9.75Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function V1(s){let e,r;const n=[s[0]];let a={$$slots:{default:[H1]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class v1 extends p{constructor(e){super(),v(this,e,p1,V1,V,{})}}function M1(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0,transform:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12.7969 0.796875L12 0L11.2031 0.796875L4.82812 7.17188L4.03125 7.96875L5.625 9.55781L6.42188 8.76094L10.875 4.30781V22.875V24H13.125V22.875V4.30781L17.5781 8.76094L18.375 9.55781L19.9641 7.96875L19.1672 7.17188L12.7969 0.796875Z"),u(e,"fill","currentcolor"),u(e,"transform","rotate(180 11.75 11.75)")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Z1(s){let e,r;const n=[s[0]];let a={$$slots:{default:[M1]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class E1 extends p{constructor(e){super(),v(this,e,w1,Z1,V,{})}}function b1(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M0.796875 11.2031L0 12L0.796875 12.7969L7.17188 19.1719L7.96875 19.9688L9.55781 18.375L8.76094 17.5781L4.30781 13.125H22.875H24V10.875H22.875H4.30781L8.76094 6.42189L9.55781 5.62501L7.96406 4.03595L7.16719 4.83282L0.796875 11.2031Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function k1(s){let e,r;const n=[s[0]];let a={$$slots:{default:[b1]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class j1 extends p{constructor(e){super(),v(this,e,S1,k1,V,{})}}function A1(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M23.2031 12.7969L24 12L23.2031 11.2031L16.8281 4.82812L16.0312 4.03125L14.4422 5.625L15.2391 6.42188L19.6922 10.875H1.125H0V13.125H1.125H19.6922L15.2391 17.5781L14.4422 18.375L16.0312 19.9641L16.8281 19.1672L23.2031 12.7969Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function F1(s){let e,r;const n=[s[0]];let a={$$slots:{default:[A1]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class P1 extends p{constructor(e){super(),v(this,e,B1,F1,V,{})}}function G1(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12.7969 0.796875L12 0L11.2031 0.796875L4.82812 7.17188L4.03125 7.96875L5.625 9.55781L6.42188 8.76094L10.875 4.30781V22.875V24H13.125V22.875V4.30781L17.5781 8.76094L18.375 9.55781L19.9641 7.96875L19.1672 7.17188L12.7969 0.796875Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function T1(s){let e,r;const n=[s[0]];let a={$$slots:{default:[G1]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class q1 extends p{constructor(e){super(),v(this,e,R1,T1,V,{})}}function D1(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M4.6887 3.68487L5.3947 3L6.10071 3.68487L10.0876 7.55237L10.7936 8.23724L9.38155 9.60295L8.67555 8.91808L6.39142 6.70233V20.0331V21H4.39799V20.0331V6.70233L2.11386 8.91808L1.40786 9.60295L0 8.23724L0.706004 7.55237L4.69285 3.68487H4.6887ZM13.0362 3.59624H15.0296H16.0263V5.52999H15.0296H13.0362H12.0395V3.59624H13.0362ZM13.0362 8.75291H17.6875H18.6842V10.6867H17.6875H13.0362H12.0395V8.75291H13.0362ZM13.0362 13.9096H20.3454H21.3421V15.8433H20.3454H13.0362H12.0395V13.9096H13.0362ZM13.0362 19.0662H23.0033H24V21H23.0033H13.0362H12.0395V19.0662H13.0362Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function I1(s){let e,r;const n=[s[0]];let a={$$slots:{default:[D1]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class N1 extends p{constructor(e){super(),v(this,e,z1,I1,V,{})}}function O1(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M5.25 9C5.25 8.11358 5.42459 7.23583 5.76381 6.41689C6.10303 5.59794 6.60023 4.85382 7.22703 4.22703C7.85382 3.60023 8.59794 3.10303 9.41689 2.76381C10.2358 2.42459 11.1136 2.25 12 2.25C12.8864 2.25 13.7642 2.42459 14.5831 2.76381C15.4021 3.10303 16.1462 3.60023 16.773 4.22703C17.3998 4.85382 17.897 5.59794 18.2362 6.41689C18.5754 7.23583 18.75 8.11358 18.75 9C18.75 9.88642 18.5754 10.7642 18.2362 11.5831C17.897 12.4021 17.3998 13.1462 16.773 13.773C16.1462 14.3998 15.4021 14.897 14.5831 15.2362C13.7642 15.5754 12.8864 15.75 12 15.75C11.1136 15.75 10.2358 15.5754 9.41689 15.2362C8.59794 14.897 7.85382 14.3998 7.22703 13.773C6.60023 13.1462 6.10303 12.4021 5.76381 11.5831C5.42459 10.7642 5.25 9.88642 5.25 9ZM20.4891 6C19.2516 2.50313 15.9187 0 12 0C8.08125 0 4.74844 2.50313 3.51094 6H2.25V12H3.51094C3.79688 12.8109 4.19531 13.5656 4.6875 14.25H3.75L2.02031 21.75L1.5 24H3.81094H6.75H9V21.75V21H10.5V21.75V24H17.25H20.1891H22.5L21.9797 21.75L20.25 14.25H19.3125C19.8047 13.5656 20.2031 12.8109 20.4891 12H21.75V6H20.4891ZM17.25 19.5H6.75V21.75H4.32656L5.54062 16.5H7.02188C8.44688 17.4469 10.1578 18 12 18C13.8422 18 15.5531 17.4469 16.9781 16.5H18.4594L19.6688 21.75H17.25V19.5ZM12.75 13.5C15.2344 13.5 17.25 11.4844 17.25 9V7.5L15.75 6H8.25L6.75 7.5V9C6.75 11.4844 8.76562 13.5 11.25 13.5H12.75ZM10.5 7.5L11.25 9L12.75 9.75L11.25 10.5L10.5 12L9.75 10.5L8.25 9.75L9.75 9L10.5 7.5ZM13.5 21.75C13.5 21.5511 13.579 21.3603 13.7197 21.2197C13.8603 21.079 14.0511 21 14.25 21C14.4489 21 14.6397 21.079 14.7803 21.2197C14.921 21.3603 15 21.5511 15 21.75C15 21.9489 14.921 22.1397 14.7803 22.2803C14.6397 22.421 14.4489 22.5 14.25 22.5C14.0511 22.5 13.8603 22.421 13.7197 22.2803C13.579 22.1397 13.5 21.9489 13.5 21.75Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function U1(s){let e,r;const n=[s[0]];let a={$$slots:{default:[O1]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class J1 extends p{constructor(e){super(),v(this,e,W1,U1,V,{})}}function K1(s){let e,r,n,a,t;return{c(){e=g("path"),r=G(),n=g("path"),a=G(),t=g("path"),this.h()},l(l){e=$(l,"path",{d:!0,fill:!0}),L(e).forEach(o),r=T(l),n=$(l,"path",{d:!0,fill:!0,style:!0}),L(n).forEach(o),a=T(l),t=$(l,"path",{d:!0,fill:!0,style:!0}),L(t).forEach(o),this.h()},h(){u(e,"d","M12 9.53906L4.925 6L12 2.46094L19.075 6L12 9.53906ZM21.5375 4.76719L12 0L2.4625 4.76719L0 6L2.4625 7.23281L12 12L21.5375 7.23281L24 6L21.5375 4.76719Z"),u(e,"fill","currentcolor"),u(n,"d","M4.35833 9.81561L6.82083 11.0484V11.0531L4.925 12L12 15.5391L19.075 12L17.1792 11.0531L19.6417 9.8203L21.5375 10.7672L24 12L21.5375 13.2328L12 18L2.4625 13.2328L0 12L2.4625 10.7672L4.35833 9.81561Z"),u(n,"fill","currentcolor"),D(n,"animation-duration",s[1]+"ms"),D(n,"animation-iteration-count","infinite"),N(n,"animate-pulse",s[0]),u(t,"d","M2.4625 16.7672L4.35833 15.8203L6.82083 17.0531L4.925 18L12 21.5391L19.075 18L17.1792 17.0531L19.6417 15.8203L21.5375 16.7672L24 18L21.5375 19.2328L12 24L2.4625 19.2328L0 18L2.4625 16.7672Z"),u(t,"fill","currentcolor"),D(t,"animation-duration",s[1]+"ms"),D(t,"animation-iteration-count","infinite"),D(t,"animation-direction","reverse"),N(t,"animate-pulse",s[0])},m(l,c){h(l,e,c),h(l,r,c),h(l,n,c),h(l,a,c),h(l,t,c)},p(l,c){c&2&&D(n,"animation-duration",l[1]+"ms"),c&1&&N(n,"animate-pulse",l[0]),c&2&&D(t,"animation-duration",l[1]+"ms"),c&1&&N(t,"animate-pulse",l[0])},d(l){l&&(o(e),o(r),o(n),o(a),o(t))}}}function Y1(s){let e,r;const n=[s[2]];let a={$$slots:{default:[K1]},$$scope:{ctx:s}};for(let t=0;t{e=f(f({},e),i(c)),r(2,a=z(e,n)),"animate"in c&&r(0,t=c.animate),"duration"in c&&r(1,l=c.duration)},[t,l,a]}class X1 extends p{constructor(e){super(),v(this,e,Q1,Y1,V,{animate:0,duration:1})}}function x1(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M2 4.125C2 1.84688 3.84688 0 6.125 0H21.875H23V1.125V17.625V18.75H21.875H21.5V21.75H21.875H23V24H21.875H5.75C3.67812 24 2 22.3219 2 20.25C2 20.1234 2.00469 19.9969 2.01875 19.875H2V4.125ZM4.25 20.25C4.25 21.0797 4.92031 21.75 5.75 21.75H19.25V18.75H5.75C4.92031 18.75 4.25 19.4203 4.25 20.25ZM4.25 16.8141C4.70938 16.6125 5.21563 16.5 5.75 16.5H20.75V2.25H6.125C5.08906 2.25 4.25 3.08906 4.25 4.125V16.8141ZM9.5 5.25L10.25 3.75L11 5.25L12.5 6L11 6.75L10.25 8.25L9.5 6.75L8 6L9.5 5.25ZM14.375 10.125L15.5 7.5L16.625 10.125L19.25 11.25L16.625 12.375L15.5 15L14.375 12.375L11.75 11.25L14.375 10.125Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function y1(s){let e,r;const n=[s[0]];let a={$$slots:{default:[x1]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class t2 extends p{constructor(e){super(),v(this,e,e2,y1,V,{})}}function r2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12 16.1437L13.1344 16.8047L18.75 20.0812V2.25H5.25V20.0812L10.8656 16.8047L12 16.1437ZM5.25 22.6875L3 24V21.3937V2.25V0H5.25H18.75H21V2.25V21.3937V24L18.75 22.6875L12 18.75L5.25 22.6875Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function n2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[r2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class l2 extends p{constructor(e){super(),v(this,e,s2,n2,V,{})}}function a2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M8.625 1.125V0H6.375V1.125V3H1.5V6.75V9V21.75V24H3.75H20.25H22.5V21.75V9V6.75V3H17.625V1.125V0H15.375V1.125V3H8.625V1.125ZM3.75 9H20.25V21.75H3.75V9ZM13.125 10.875H10.875V12V14.25H8.625H7.5V16.5H8.625H10.875V18.75V19.875H13.125V18.75V16.5H15.375H16.5V14.25H15.375H13.125V12V10.875Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function c2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[a2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class u2 extends p{constructor(e){super(),v(this,e,f2,c2,V,{})}}function o2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M8.625 1.125V0H6.375V1.125V3H1.5V6.75V9V21.75V24H3.75H20.25H22.5V21.75V9V6.75V3H17.625V1.125V0H15.375V1.125V3H8.625V1.125ZM3.75 9H20.25V21.75H3.75V9Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function i2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[o2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class g2 extends p{constructor(e){super(),v(this,e,h2,i2,V,{})}}function $2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M18.0516 19.6453L4.35469 5.94844C3.0375 7.60781 2.25 9.7125 2.25 12C2.25 17.3859 6.61406 21.75 12 21.75C14.2875 21.75 16.3922 20.9625 18.0516 19.6453ZM19.6406 18.0563C20.9625 16.3922 21.75 14.2875 21.75 12C21.75 6.61406 17.3859 2.25 12 2.25C9.7125 2.25 7.60781 3.0375 5.94844 4.35469L19.6453 18.0516L19.6406 18.0563ZM0 12C0 8.8174 1.26428 5.76516 3.51472 3.51472C5.76516 1.26428 8.8174 0 12 0C15.1826 0 18.2348 1.26428 20.4853 3.51472C22.7357 5.76516 24 8.8174 24 12C24 15.1826 22.7357 18.2348 20.4853 20.4853C18.2348 22.7357 15.1826 24 12 24C8.8174 24 5.76516 22.7357 3.51472 20.4853C1.26428 18.2348 0 15.1826 0 12Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function L2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[$2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class C2 extends p{constructor(e){super(),v(this,e,d2,L2,V,{})}}function m2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M2.25 1.5V2.625V20.25H22.875H24V22.5H22.875H1.125H0V21.375V2.625V1.5H2.25ZM9 10.5V11.625V15.375V16.5H6.75V15.375V11.625V10.5H9ZM13.5 7.125V15.375V16.5H11.25V15.375V7.125V6H13.5V7.125ZM18 9V10.125V15.375V16.5H15.75V15.375V10.125V9H18ZM22.5 4.125V15.375V16.5H20.25V15.375V4.125V3H22.5V4.125Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function _2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[m2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class V2 extends p{constructor(e){super(),v(this,e,H2,_2,V,{})}}function p2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M22.5 6.09375L21.7031 6.89062L9.82031 18.7125L9.02813 19.5047L8.23594 18.7125L2.29688 12.8016L1.5 12.0094L3.08906 10.4156L3.88594 11.2078L9.02813 16.3266L20.1141 5.29219L20.9109 4.5L22.5 6.09375Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function v2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[p2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Y extends p{constructor(e){super(),v(this,e,M2,v2,V,{})}}function Z2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12 19.5891L12.7968 18.7922L21.7968 9.79688L22.5937 9L21 7.41094L20.2031 8.20781L12 16.4109L3.79683 8.20312L2.99995 7.40625L1.41089 9L2.20776 9.79688L11.2031 18.7969L12 19.5938V19.5891Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function w2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Z2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class b2 extends p{constructor(e){super(),v(this,e,E2,w2,V,{})}}function k2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M4.41094 12L5.20781 11.2031L14.2031 2.20312L15 1.40625L16.5891 3L15.7969 3.79688L7.58906 12L15.7969 20.2031L16.5938 21L15 22.5891L14.2031 21.7922L5.20312 12.7969L4.40625 12H4.41094Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function S2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[k2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class A2 extends p{constructor(e){super(),v(this,e,j2,S2,V,{})}}function F2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M19.5891 12L18.7922 12.7969L9.79688 21.7969L9 22.5938L7.41094 21L8.20781 20.2031L16.4109 12L8.20312 3.79689L7.40625 3.00001L9 1.41095L9.79688 2.20782L18.7969 11.2031L19.5938 12H19.5891Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function B2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[F2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class G2 extends p{constructor(e){super(),v(this,e,P2,B2,V,{})}}function T2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M7 15L12 20L17 15M7 9L12 4L17 9"),u(e,"stroke","currentcolor"),u(e,"stroke-width","1"),u(e,"stroke-linecap","round"),u(e,"stroke-linejoin","round")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function R2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[T2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class D2 extends p{constructor(e){super(),v(this,e,q2,R2,V,{})}}function I2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12 7.41094L22.5937 18L21 19.5891L12 10.5891L2.99995 19.5938L1.41089 18L12 7.40625V7.41094Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function z2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[I2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class O2 extends p{constructor(e){super(),v(this,e,N2,z2,V,{})}}function U2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M21.75 12C21.75 14.5859 20.7228 17.0658 18.8943 18.8943C17.0658 20.7228 14.5859 21.75 12 21.75C9.41414 21.75 6.93419 20.7228 5.10571 18.8943C3.27723 17.0658 2.25 14.5859 2.25 12C2.25 9.41414 3.27723 6.93419 5.10571 5.10571C6.93419 3.27723 9.41414 2.25 12 2.25C14.5859 2.25 17.0658 3.27723 18.8943 5.10571C20.7228 6.93419 21.75 9.41414 21.75 12ZM0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12ZM10.875 5.625V12V12.6L11.3766 12.9328L15.8766 15.9328L16.8141 16.5563L18.0609 14.6859L17.1234 14.0625L13.125 11.4V5.625V4.5H10.875V5.625Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function W2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[U2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class K2 extends p{constructor(e){super(),v(this,e,J2,W2,V,{})}}function Y2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M19.1719 6.42188L19.9688 5.625L18.375 4.03594L17.5781 4.83281L12 10.4109L6.42188 4.82812L5.625 4.03125L4.03594 5.625L4.83281 6.42188L10.4109 12L4.82812 17.5781L4.03125 18.375L5.625 19.9641L6.42188 19.1672L12 13.5891L17.5781 19.1719L18.375 19.9688L19.9641 18.375L19.1672 17.5781L13.5891 12L19.1719 6.42188Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Q2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Y2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class x2 extends p{constructor(e){super(),v(this,e,X2,Q2,V,{})}}function y2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M19.9688 4.65625C19.5938 5.875 18.9062 8.15625 18.0625 10.5312C18.2812 10.5938 18.4688 10.6562 18.625 10.7188C18.7812 10.75 18.9062 10.8438 18.9375 11C19 11.125 19 11.2812 18.9375 11.4375C18.25 12.75 16.3438 16.1875 14.4688 18.125C14.4375 18.1562 14.4062 18.1875 14.375 18.2188C12 20.625 8.15625 20.625 5.78125 18.25C3.40625 15.8438 3.40625 12 5.78125 9.625C5.8125 9.59375 5.84375 9.5625 5.875 9.53125C7.8125 7.65625 11.25 5.75 12.5625 5.0625C12.6875 5 12.8438 5 12.9688 5.0625C13.125 5.125 13.2188 5.21875 13.25 5.375C13.3125 5.53125 13.375 5.71875 13.4375 5.9375C15.8125 5.09375 18.0938 4.40625 19.3125 4.03125C19.4688 3.96875 19.6875 4.03125 19.8125 4.15625C19.9688 4.28125 20 4.5 19.9688 4.65625ZM13.9688 14C13.9688 11.7812 12.1562 10 9.96875 10C7.75 10 5.96875 11.7812 5.96875 14C5.96875 16.1875 7.75 18 9.96875 18C12.1875 18 13.9688 16.2188 13.9688 14ZM9.96875 13C9.96875 13.5312 9.5 14 8.96875 14C8.40625 14 7.96875 13.5312 7.96875 13C7.96875 12.4375 8.40625 12 8.96875 12C9.21875 12 9.46875 12.0938 9.65625 12.2812C9.84375 12.4688 9.96875 12.75 9.96875 13ZM10.9688 15.5C10.9688 15.75 10.75 16 10.4688 16C10.2188 16 9.96875 15.75 9.96875 15.5C9.96875 15.2188 10.2188 15 10.4688 15C10.75 15 10.9688 15.25 10.9688 15.5Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function e5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[y2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class r5 extends p{constructor(e){super(),v(this,e,t5,e5,V,{})}}function n5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M19.9375 5C19.625 6.03125 18.875 8.40625 18.0938 10.25C18.1562 10.2812 18.25 10.2812 18.3438 10.3125C18.5938 10.4062 18.8125 10.5938 18.9375 10.875C19.0625 11.125 19.0312 11.4375 18.9062 11.6875C18.1875 13.0312 16.375 16.375 14.5625 18.1875C12.125 20.625 8.1875 20.625 5.8125 18.1875C3.375 15.7812 3.375 11.8438 5.8125 9.4375C7.625 7.59375 10.9688 5.78125 12.3125 5.0625C12.5625 4.9375 12.875 4.90625 13.125 5.03125C13.4062 5.15625 13.5625 5.375 13.6875 5.65625C13.7188 5.71875 13.7188 5.8125 13.75 5.875C15.5938 5.09375 17.9688 4.34375 19 4.0625C19.25 3.96875 19.5625 4.03125 19.75 4.25C19.9688 4.4375 20.0312 4.75 19.9375 5ZM18.875 5.125C17.5938 5.53125 15.25 6.28125 13.6562 7.03125L13.125 7.28125C13.125 7.28125 12.7812 6.15625 12.7188 5.9375C11.4688 6.625 8.21875 8.40625 6.5 10.125C4.46875 12.1562 4.46875 15.4688 6.5 17.5C8.53125 19.5312 11.8438 19.5312 13.875 17.5C15.5938 15.7812 17.375 12.5312 18.0312 11.2188C17.8438 11.1875 17.5938 11.125 17.2812 11.0312L16.7188 10.875L16.9688 10.3438C17.7188 8.75 18.4688 6.40625 18.875 5.125ZM14.2188 13.75C14.2188 15.9375 12.4375 17.7188 10.25 17.7188C8.09375 17.7188 6.28125 15.9375 6.28125 13.75C6.28125 11.5312 8.09375 9.75 10.25 9.75C12.4375 9.75 14.2188 11.5625 14.2188 13.75ZM13.2188 13.75C13.2188 12.0938 11.875 10.75 10.2188 10.75C8.5625 10.75 7.21875 12.0938 7.21875 13.75C7.21875 15.4062 8.5625 16.75 10.2188 16.75C11.875 16.75 13.2188 15.4062 13.2188 13.75ZM10.4688 12.75C10.4688 13.1562 10.1562 13.5 9.75 13.5C9.34375 13.5 9.03125 13.1562 9.03125 12.75C9.03125 12.3125 9.375 12 9.75 12C9.96875 12 10.1562 12.0625 10.25 12.2188C10.4062 12.375 10.4688 12.5625 10.4688 12.75ZM11.4688 15C11.4688 15.25 11.25 15.5 10.9688 15.5C10.7188 15.5 10.5 15.25 10.5 15C10.5 14.7188 10.7188 14.5 11 14.5C11.25 14.5312 11.4688 14.75 11.4688 15Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function s5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[n5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class a5 extends p{constructor(e){super(),v(this,e,l5,s5,V,{})}}function c5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"fill-rule","evenodd"),u(e,"clip-rule","evenodd"),u(e,"d","M3.44444 2.05554C2.6467 2.05554 2 2.70224 2 3.49999C2 4.29773 2.6467 4.94443 3.44444 4.94443C4.24218 4.94443 4.88888 4.29773 4.88888 3.49999C4.88888 2.70224 4.24218 2.05554 3.44444 2.05554ZM0 3.49999C5.96046e-08 1.59767 1.54212 0.0555419 3.44444 0.055542C5.34675 0.0555421 6.88888 1.59767 6.88888 3.49999C6.88888 5.05452 5.85907 6.36853 4.44445 6.79702L4.44448 11H6.25855C6.68704 9.58538 8.00105 8.55557 9.55558 8.55557C11.4579 8.55557 13 10.0977 13 12C13 13.9023 11.4579 15.4445 9.55558 15.4445C8.00105 15.4445 6.68704 14.4146 6.25855 13H4.4315L4.3465 19.5H6.1474C6.5759 18.0854 7.88991 17.0556 9.44444 17.0556C11.3468 17.0556 12.8889 18.5977 12.8889 20.5C12.8889 22.4023 11.3468 23.9444 9.44444 23.9444C7.88991 23.9444 6.5759 22.9146 6.1474 21.5H2.32018L2.44449 11.9935L2.44445 6.79703C1.02981 6.36853 0 5.05452 0 3.49999ZM24.0001 4.5H10.0001V2.5H24.0001V4.5ZM9.55558 10.5556C8.75784 10.5556 8.11115 11.2023 8.11115 12C8.11115 12.7978 8.75784 13.4445 9.55558 13.4445C10.3533 13.4445 11 12.7978 11 12C11 11.2023 10.3533 10.5556 9.55558 10.5556ZM24.0001 13H16.0001V11H24.0001V13ZM9.44444 19.0556C8.6467 19.0556 8 19.7023 8 20.5C8 21.2977 8.6467 21.9444 9.44444 21.9444C10.2422 21.9444 10.8889 21.2977 10.8889 20.5C10.8889 19.7023 10.2422 19.0556 9.44444 19.0556ZM24 21.5H16V19.5H24V21.5Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function f5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[c5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class o5 extends p{constructor(e){super(),v(this,e,u5,f5,V,{})}}function i5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M11.1818 23.0868L11.9976 24L12.8134 23.0868L20.1842 14.8362L21 13.923L19.3732 12.1021L18.5575 13.0152L13.1493 19.0636V1.28917V0H10.8459V1.28917V19.0582L5.44255 13.0098L4.62677 12.0967L3 13.923L3.81578 14.8362L11.1818 23.0868Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function h5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[i5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class $5 extends p{constructor(e){super(),v(this,e,g5,h5,V,{})}}function L5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12.8182 0.91316L12.0024 0L11.1866 0.91316L3.81578 9.16383L3 10.077L4.62677 11.8979L5.44255 10.9848L10.8507 4.93644V22.7108V24H13.1541V22.7108V4.93644L18.5575 10.9902L19.3732 11.9033L21 10.0824L20.1842 9.1692L12.8182 0.91316Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function d5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[L5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class m5 extends p{constructor(e){super(),v(this,e,C5,d5,V,{})}}function _5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M20.25 15.75H9.75V2.25H17.0672L20.25 5.43281V15.75ZM22.5 4.5L18 0H9.75H7.5V2.25V15.75V18H9.75H20.25H22.5V15.75V4.5ZM3.75 6H1.5V8.25V21.75V24H3.75H14.25H16.5V21.75V19.5H14.25V21.75H3.75V8.25H6V6H3.75Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function H5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[_5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class p5 extends p{constructor(e){super(),v(this,e,V5,H5,V,{})}}function v5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M4.6887 20.2687L5.3947 20.9518L6.10071 20.2687L10.0876 16.4116L10.7936 15.7286L9.38155 14.3665L8.67555 15.0496L6.39142 17.2594V3.96429V3H4.39799V3.96429V17.2594L2.11386 15.0496L1.40786 14.3665L0 15.7286L0.706004 16.4116L4.69285 20.2687H4.6887ZM13.0362 21H15.0296H16.0263V19.0714H15.0296H13.0362H12.0395V21H13.0362ZM13.0362 15.8571H17.6875H18.6842V13.9286H17.6875H13.0362H12.0395V15.8571H13.0362ZM13.0362 10.7143H20.3454H21.3421V8.78571H20.3454H13.0362H12.0395V10.7143H13.0362ZM13.0362 5.57143H23.0033H24V3.64286H23.0033H13.0362H12.0395V5.57143H13.0362Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function M5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[v5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class w5 extends p{constructor(e){super(),v(this,e,Z5,M5,V,{})}}function E5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{fill:!0,d:!0}),L(e).forEach(o),this.h()},h(){u(e,"fill","currentcolor"),u(e,"d","M 9.38907,3.82032 C 9.885945,2.88282 10.870305,2.25 12,2.25 c 1.129695,0 2.11407,0.63282 2.610945,1.57032 l 0.435855,0.824985 0.8907,-0.27186 c 1.0125,-0.309375 2.1609,-0.065625 2.95785,0.73593 0.7968,0.801555 1.0452,1.945305 0.7359,2.95782 L 19.3593,8.95782 20.17965,9.39375 c 0.9375,0.496875 1.57035,1.48125 1.57035,2.610945 0,1.12968 -0.63285,2.114055 -1.57035,2.61093 l -0.825,0.431175 0.27195,0.8907 c 0.3093,1.0125 0.06555,2.1609 -0.7359,2.95785 -0.8016,0.7968 -1.94535,1.0452 -2.95785,0.7359 l -0.8907,-0.27195 -0.4359,0.82035 C 14.109375,21.11715 13.125,21.75 11.995305,21.75 c -1.12968,0 -2.114055,-0.63285 -2.61093,-1.57035 L 8.953125,19.35465 8.0625,19.6266 C 7.05,19.9359 5.90157,19.69215 5.104695,18.8907 4.30782,18.0891 4.059375,16.95 4.36875,15.9375 L 4.640625,15.0468 3.82032,14.610945 C 2.88282,14.11407 2.25,13.129695 2.25,12 2.25,10.870305 2.88282,9.885945 3.82032,9.38907 L 4.645305,8.953125 4.373445,8.0625 C 4.06407,7.05 4.30782,5.90157 5.109375,5.104695 5.91093,4.30782 7.05,4.059375 8.0625,4.36875 L 8.953125,4.640625 Z M 12,0 C 10.317195,0 8.821875,0.796875 7.870305,2.034375 6.32343,1.83282 4.70157,2.325 3.510945,3.515625 2.32032,4.70625 1.828125,6.328125 2.02968,7.875 0.796875,8.821875 0,10.317195 0,12 0,13.682805 0.796875,15.1782 2.034375,16.12965 1.83282,17.6766 2.325,19.2984 3.515625,20.4891 4.70625,21.67965 6.328125,22.1718 7.875,21.97035 8.821875,23.2032 10.317195,24 12,24 c 1.682805,0 3.1782,-0.7968 4.12965,-2.0343 1.54695,0.20145 3.16875,-0.2907 4.35945,-1.4814 1.19055,-1.19055 1.6827,-2.8125 1.48125,-4.3593 C 23.2032,15.17805 24,13.682805 24,12 24,10.317195 23.2032,8.821875 21.9657,7.870305 22.16715,6.32343 21.675,4.70157 20.4843,3.510945 19.29375,2.32032 17.6718,1.828125 16.125,2.02968 15.17805,0.796875 13.682805,0 12,0 Z m 0.97968,6.998445 v -0.9375 h -1.875 v 0.9375 0.39843 c -0.314055,0.060945 -0.614055,0.15 -0.895305,0.276555 -0.754695,0.342195 -1.40157,0.975 -1.560945,1.884375 -0.089055,0.510945 -0.04218,1.00314 0.168765,1.448445 0.206235,0.435945 0.52968,0.74532 0.86718,0.975 0.590625,0.398445 1.37343,0.6375 1.9875,0.82032 l 0.10782,0.0328 c 0.721875,0.215625 1.232805,0.38907 1.556235,0.623445 0.14064,0.103125 0.20157,0.1875 0.229695,0.25311 0.02812,0.06095 0.05625,0.18282 0.01875,0.40782 -0.0375,0.22032 -0.164055,0.403125 -0.478125,0.534375 C 12.76407,14.798445 12.22968,14.86407 11.55,14.76093 11.22657,14.70937 10.659375,14.5125 10.1625,14.34375 10.05,14.30625 9.94218,14.26875 9.839055,14.235945 L 8.94843,13.940625 8.35782,15.7218 9.248445,16.01715 c 0.06561,0.02355 0.145305,0.04695 0.234375,0.07965 0.43593,0.15015 1.124985,0.38445 1.62186,0.4875 v 0.4173 0.9375 h 1.875 v -0.9375 -0.375 c 0.304695,-0.0516 0.59532,-0.13125 0.867195,-0.24855 0.79218,-0.3375 1.420275,-0.98895 1.584375,-1.94055 0.0891,-0.525 0.0516,-1.021875 -0.14535,-1.471875 -0.1968,-0.45 -0.5109,-0.778125 -0.8484,-1.021875 -0.61875,-0.45 -1.44375,-0.69843 -2.08125,-0.890625 l -0.0375,-0.0094 C 11.5875,10.82342 11.067195,10.65935 10.734375,10.43435 c -0.14532,-0.09844 -0.20157,-0.17343 -0.225,-0.225 -0.01875,-0.04218 -0.05157,-0.13125 -0.01407,-0.323445 0.02345,-0.145305 0.135945,-0.3375 0.487515,-0.49686 0.35625,-0.159375 0.895305,-0.24375 1.551555,-0.140625 0.22968,0.0375 0.9375,0.17343 1.13907,0.22968 L 14.578125,9.71717 15.0609,7.9031 14.15625,7.65467 C 13.90782,7.58907 13.3125,7.471875 12.97968,7.410945 Z")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function b5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[E5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class S5 extends p{constructor(e){super(),v(this,e,k5,b5,V,{})}}function j5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M13.125 1.125V0H10.875V1.125V13.7859L6.42188 9.33281L5.625 8.53594L4.03594 10.125L4.83281 10.9219L11.2031 17.2969L12 18.0938L12.7969 17.2969L19.1719 10.9219L19.9688 10.125L18.375 8.53594L17.5781 9.33281L13.125 13.7859V1.125ZM6.0375 14.25H2.25H0V16.5V21.75V24H2.25H21.75H24V21.75V16.5V14.25H21.75H17.9625L15.7125 16.5H21.75V21.75H2.25V16.5H8.2875L6.0375 14.25ZM20.25 19.125C20.25 18.8266 20.1315 18.5405 19.9205 18.3295C19.7095 18.1185 19.4234 18 19.125 18C18.8266 18 18.5405 18.1185 18.3295 18.3295C18.1185 18.5405 18 18.8266 18 19.125C18 19.4234 18.1185 19.7095 18.3295 19.9205C18.5405 20.1315 18.8266 20.25 19.125 20.25C19.4234 20.25 19.7095 20.1315 19.9205 19.9205C20.1315 19.7095 20.25 19.4234 20.25 19.125Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function A5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[j5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class B5 extends p{constructor(e){super(),v(this,e,F5,A5,V,{})}}function P5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12 2.25C14.5859 2.25 17.0658 3.27723 18.8943 5.10571C20.7228 6.93419 21.75 9.41414 21.75 12C21.75 14.5859 20.7228 17.0658 18.8943 18.8943C17.0658 20.7228 14.5859 21.75 12 21.75C9.41414 21.75 6.93419 20.7228 5.10571 18.8943C3.27723 17.0658 2.25 14.5859 2.25 12C2.25 9.41414 3.27723 6.93419 5.10571 5.10571C6.93419 3.27723 9.41414 2.25 12 2.25ZM12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24ZM13.125 6H10.875V7.125V12.375V13.5H13.125V12.375V7.125V6ZM10.875 17.25H13.125V15H10.875V17.25Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function G5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[P5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class R5 extends p{constructor(e){super(),v(this,e,T5,G5,V,{})}}function q5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M15.375 0H14.25V2.25H15.375H20.1609L9.70312 12.7031L8.90625 13.5L10.5 15.0891L11.2969 14.2922L21.75 3.83906V8.625V9.75H24V8.625V1.125V0H22.875H15.375ZM1.125 1.5H0V2.625V22.875V24H1.125H21.375H22.5V22.875V14.625V13.5H20.25V14.625V21.75H2.25V3.75H9.375H10.5V1.5H9.375H1.125Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function D5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[q5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class z5 extends p{constructor(e){super(),v(this,e,I5,D5,V,{})}}function N5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M14.25 4H13.5V5.5H14.25H17.4406L10.4688 12.4688L9.9375 13L11 14.0594L11.5312 13.5281L18.5 6.55938V9.75V10.5H20V9.75V4.75V4H19.25H14.25ZM4.75 5H4V5.75V19.25V20H4.75H18.25H19V19.25V13.75V13H17.5V13.75V18.5H5.5V6.5H10.25H11V5H10.25H4.75Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function O5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[N5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class W5 extends p{constructor(e){super(),v(this,e,U5,O5,V,{})}}function J5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M1.815 3.517L1.1025 3L0 4.33294L0.7125 4.84994L22.1812 20.483L22.8937 21L23.9962 19.6671L23.2837 19.1501L19.65 16.5053C21.2212 14.9578 22.2825 13.2028 22.8 12C21.675 9.3728 17.94 4.12192 12 4.12192C9.49125 4.12192 7.38 5.05744 5.68875 6.33763L1.815 3.517ZM7.155 7.4068C8.535 6.44314 10.155 5.81008 12 5.81008C14.3625 5.81008 16.3575 6.8476 17.9587 8.29308C19.2937 9.49941 20.265 10.9132 20.8312 12C20.3025 13.0164 19.4212 14.3142 18.2212 15.4642L16.275 14.0469C16.6087 13.4314 16.8 12.7386 16.8 12C16.8 9.51348 14.6512 7.49824 12 7.49824C11.6775 7.49824 11.3625 7.52638 11.0587 7.58617C10.215 7.74443 9.45 8.1102 8.8275 8.62368L7.155 7.4068ZM14.8125 12.9812L11.73 10.7374L11.4112 9.23916C11.6025 9.20399 11.7975 9.1864 12 9.1864C13.6575 9.1864 15 10.4455 15 12C15 12.3447 14.9325 12.6753 14.8125 12.9812ZM16.6837 18.7034L15.1237 17.5533C14.1712 17.9543 13.1287 18.1899 12 18.1899C9.63375 18.1899 7.6425 17.1524 6.04125 15.7069C4.71 14.5041 3.73875 13.0868 3.16875 12C3.51 11.3423 4.00125 10.5686 4.6275 9.79132L3.21375 8.74678C2.2575 9.92849 1.57875 11.1137 1.2 12C2.325 14.6272 6.06 19.8781 12 19.8781C13.7587 19.8781 15.3225 19.4174 16.6837 18.7034ZM13.4325 16.3013L11.325 14.7433C10.4437 14.5533 9.70875 13.9977 9.31125 13.2556L7.2075 11.7011C7.2 11.7995 7.19625 11.898 7.19625 12C7.19625 14.4865 9.345 16.5018 11.9962 16.5018C12.495 16.5018 12.975 16.4314 13.4287 16.2978L13.4325 16.3013Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function K5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[J5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Q5 extends p{constructor(e){super(),v(this,e,Y5,K5,V,{})}}function X5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M5.37917 16.2348C3.9 14.8607 2.82083 13.2415 2.1875 12C2.81667 10.7585 3.89583 9.13929 5.37917 7.76518C7.15833 6.11384 9.37083 4.92857 12 4.92857C14.6292 4.92857 16.8417 6.11384 18.6208 7.76518C20.1042 9.1433 21.1833 10.7585 21.8125 12C21.1833 13.2415 20.1042 14.8607 18.6208 16.2348C16.8417 17.8862 14.6292 19.0714 12 19.0714C9.37083 19.0714 7.15833 17.8862 5.37917 16.2348ZM12 21C18.6 21 22.75 15.0013 24 12C22.75 8.99866 18.6 3 12 3C5.4 3 1.25 8.99866 0 12C1.25 15.0013 5.4 21 12 21ZM12 15.2143C10.1583 15.2143 8.66667 13.7759 8.66667 12C8.66667 11.783 8.6875 11.5741 8.72917 11.3692L12 12L11.3458 8.84598C11.5583 8.8058 11.775 8.78571 12 8.78571C13.8417 8.78571 15.3333 10.2241 15.3333 12C15.3333 13.7759 13.8417 15.2143 12 15.2143ZM6.66667 12C6.66667 14.8406 9.05417 17.1429 12 17.1429C14.9458 17.1429 17.3333 14.8406 17.3333 12C17.3333 9.15938 14.9458 6.85714 12 6.85714C11.6417 6.85714 11.2917 6.88929 10.9542 6.95759C8.85833 7.35937 7.20417 8.94643 6.775 10.9634L6.77083 10.9915C6.70417 11.317 6.66667 11.6545 6.66667 12Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function x5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[X5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class ee extends p{constructor(e){super(),v(this,e,y5,x5,V,{})}}function te(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M13.7469 9.19063L7.5 15.4406V11.6219L12.6469 6.475C13.2719 5.85 14.1187 5.5 15 5.5C15.8813 5.5 16.7281 5.85 17.3531 6.475L17.525 6.64687C18.15 7.27187 18.5 8.11875 18.5 9C18.5 9.525 18.375 10.0406 18.1438 10.5H14.5594L14.8062 10.2531L15.3375 9.72188L14.2781 8.6625L13.7469 9.19375V9.19063ZM13.0594 12H16.8781L15.3781 13.5H11.5594L13.0594 12ZM13.8781 15L12.3781 16.5H8.55938L10.0594 15H13.8781ZM6 11V16.9406L4.56875 18.3687L4.0375 18.9L5.09688 19.9594L5.62813 19.4281L7.05938 18H13L18.5844 12.4156C19.4906 11.5094 20 10.2812 20 9C20 7.71875 19.4906 6.49063 18.5844 5.58438L18.4125 5.4125C17.5094 4.50938 16.2812 4 15 4C13.7188 4 12.4906 4.50937 11.5844 5.41562L6 11Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function re(s){let e,r;const n=[s[0]];let a={$$slots:{default:[te]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class se extends p{constructor(e){super(),v(this,e,ne,re,V,{})}}function le(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M1 4.5H20V6.9375H1V4.5ZM4 10.625H23V13.0625H4V10.625ZM20 16.75V19.1875H1V16.75H20Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function ae(s){let e,r;const n=[s[0]];let a={$$slots:{default:[le]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class fe extends p{constructor(e){super(),v(this,e,ce,ae,V,{})}}function ue(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12 2.25C14.5859 2.25 17.0658 3.27723 18.8943 5.10571C20.7228 6.93419 21.75 9.41414 21.75 12C21.75 14.5859 20.7228 17.0658 18.8943 18.8943C17.0658 20.7228 14.5859 21.75 12 21.75C9.41414 21.75 6.93419 20.7228 5.10571 18.8943C3.27723 17.0658 2.25 14.5859 2.25 12C2.25 9.41414 3.27723 6.93419 5.10571 5.10571C6.93419 3.27723 9.41414 2.25 12 2.25ZM12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24ZM6.3375 13.4578L7.5 14.6203L12 19.1203L16.5 14.6203L17.6625 13.4578C18.3609 12.7594 18.75 11.8172 18.75 10.8328V10.6641C18.75 8.70469 17.1609 7.12031 15.2062 7.12031C14.1281 7.12031 13.1109 7.60781 12.4359 8.45156L12 8.99531L11.5641 8.45156C10.8891 7.6125 9.87188 7.12031 8.79375 7.12031C6.83438 7.12031 5.25 8.70937 5.25 10.6641V10.8328C5.25 11.8172 5.63906 12.7594 6.3375 13.4578Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function oe(s){let e,r;const n=[s[0]];let a={$$slots:{default:[ue]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class he extends p{constructor(e){super(),v(this,e,ie,oe,V,{})}}function ge(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12 7.68281L9.27656 4.95938C8.50312 4.18594 7.45312 3.75 6.36563 3.75C4.09219 3.75 2.25 5.59219 2.25 7.86563C2.25 8.95781 2.68125 10.0031 3.45469 10.7766L12 19.3172L20.5453 10.7766C21.3187 10.0031 21.75 8.95781 21.75 7.86563C21.75 5.59219 19.9078 3.75 17.6344 3.75C16.5422 3.75 15.4969 4.18125 14.7234 4.95469L13.5891 6.09375L12 7.68281ZM12 22.5L1.86562 12.3656C0.670312 11.1703 0 9.55313 0 7.86563C0 4.35 2.85 1.5 6.36563 1.5C8.05313 1.5 9.67031 2.17031 10.8656 3.36563L12 4.5L13.1344 3.36563C14.3297 2.175 15.9469 1.50469 17.6344 1.50469C21.15 1.5 24 4.35 24 7.86563C24 9.55313 23.3297 11.1703 22.1344 12.3656L12 22.5Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function $e(s){let e,r;const n=[s[0]];let a={$$slots:{default:[ge]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class de extends p{constructor(e){super(),v(this,e,Le,$e,V,{})}}function Ce(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M21.75 21.75H8.25V17.25H6V21.75V24H8.25H21.75H24V21.75V6L18 0H8.25H6V2.25V12H8.25V2.25H16.5V7.5H21.75V21.75ZM13.9219 10.0781L13.125 9.28125L11.5359 10.875L12.3328 11.6719L14.1609 13.5H1.125H0V15.75H1.125H14.1609L12.3328 17.5781L11.5359 18.375L13.125 19.9641L13.9219 19.1672L17.6719 15.4172L18.4688 14.6203L17.6719 13.8234L13.9219 10.0734V10.0781Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function me(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Ce]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class He extends p{constructor(e){super(),v(this,e,_e,me,V,{})}}function Ve(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M13.125 16.875V18H10.875V16.875V4.58906L6.42188 9.04219L5.625 9.83906L4.03594 8.25L4.83281 7.45312L11.2031 1.07812L12 0.28125L12.7969 1.07812L19.1719 7.45312L19.9688 8.25L18.375 9.83906L17.5781 9.04219L13.125 4.58906V16.875ZM14.625 16.5V14.25H21.75H24V16.5V21.75V24H21.75H2.25H0V21.75V16.5V14.25H2.25H9.375V16.5H2.25V21.75H21.75V16.5H14.625ZM18 19.125C18 18.8266 18.1185 18.5405 18.3295 18.3295C18.5405 18.1185 18.8266 18 19.125 18C19.4234 18 19.7095 18.1185 19.9205 18.3295C20.1315 18.5405 20.25 18.8266 20.25 19.125C20.25 19.4234 20.1315 19.7095 19.9205 19.9205C19.7095 20.1315 19.4234 20.25 19.125 20.25C18.8266 20.25 18.5405 20.1315 18.3295 19.9205C18.1185 19.7095 18 19.4234 18 19.125Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function pe(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Ve]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Me extends p{constructor(e){super(),v(this,e,ve,pe,V,{})}}function Ze(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M0 3.75V1.5H2.25H21.75H24V3.75V4.5L15.75 14.25V21.1172V24L13.5 22.2L8.25 18V14.25L0 4.5V3.75Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function we(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Ze]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class be extends p{constructor(e){super(),v(this,e,Ee,we,V,{})}}function ke(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M10.5 13.425V14.25V16.9172L13.5 19.3172V14.25V13.425L14.0344 12.7969L21.6891 3.75H2.31094L9.96563 12.7969L10.5 13.425ZM0 3.75V1.5H2.25H21.75H24V3.75V4.5L15.75 14.25V21.1172V24L13.5 22.2L8.25 18V14.25L0 4.5V3.75Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Se(s){let e,r;const n=[s[0]];let a={$$slots:{default:[ke]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Ae extends p{constructor(e){super(),v(this,e,je,Se,V,{})}}function Fe(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M10.25 4V4.75V5.75H13V5L20 4V9L13 8V7.25H10.25V8.08125C11.8219 8.425 13 9.825 13 11.5V18.5V20H11.5H7.50005H6.00005V18.5V11.5C6.00005 9.825 7.17817 8.425 8.75005 8.08125V7.27813C7.28442 7.45 6.04692 8.36563 5.42817 9.64062L4.0813 8.98438C4.94067 7.2125 6.69067 5.95 8.75005 5.77188V4.75V4H10.25ZM7.50005 18.5H11.5V17H7.50005V18.5ZM7.50005 11.5V15.5H11.5V11.5C11.5 10.3969 10.6032 9.5 9.50005 9.5C8.39692 9.5 7.50005 10.3969 7.50005 11.5Z"),u(e,"fill","currentColor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Be(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Fe]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Ge extends p{constructor(e){super(),v(this,e,Pe,Be,V,{})}}function Te(s){let e,r;return{c(){e=g("g"),r=g("path"),this.h()},l(n){e=$(n,"g",{transform:!0});var a=L(e);r=$(a,"path",{d:!0,fill:!0}),L(r).forEach(o),a.forEach(o),this.h()},h(){u(r,"d","M165.9 397.4C165.9 399.4 163.6 401 160.7 401C157.4 401.3 155.1 399.7 155.1 397.4C155.1 395.4 157.4 393.8 160.3 393.8C163.3 393.5 165.9 395.1 165.9 397.4ZM134.8 392.9C134.1 394.9 136.1 397.2 139.1 397.8C141.7 398.8 144.7 397.8 145.3 395.8C145.9 393.8 144 391.5 141 390.6C138.4 389.9 135.5 390.9 134.8 392.9ZM179 391.2C176.1 391.9 174.1 393.8 174.4 396.1C174.7 398.1 177.3 399.4 180.3 398.7C183.2 398 185.2 396.1 184.9 394.1C184.6 392.2 181.9 390.9 179 391.2ZM244.8 8C106.1 8 0 113.3 0 252C0 362.9 69.8 457.8 169.5 491.2C182.3 493.5 186.8 485.6 186.8 479.1C186.8 472.9 186.5 438.7 186.5 417.7C186.5 417.7 116.5 432.7 101.8 387.9C101.8 387.9 90.4 358.8 74 351.3C74 351.3 51.1 335.6 75.6 335.9C75.6 335.9 100.5 337.9 114.2 361.7C136.1 400.3 172.8 389.2 187.1 382.6C189.4 366.6 195.9 355.5 203.1 348.9C147.2 342.7 90.8 334.6 90.8 238.4C90.8 210.9 98.4 197.1 114.4 179.5C111.8 173 103.3 146.2 117 111.6C137.9 105.1 186 138.6 186 138.6C206 133 227.5 130.1 248.8 130.1C270.1 130.1 291.6 133 311.6 138.6C311.6 138.6 359.7 105 380.6 111.6C394.3 146.3 385.8 173 383.2 179.5C399.2 197.2 409 211 409 238.4C409 334.9 350.1 342.6 294.2 348.9C303.4 356.8 311.2 371.8 311.2 395.3C311.2 429 310.9 470.7 310.9 478.9C310.9 485.4 315.5 493.3 328.2 491C428.2 457.8 496 362.9 496 252C496 113.3 383.5 8 244.8 8ZM97.2 352.9C95.9 353.9 96.2 356.2 97.9 358.1C99.5 359.7 101.8 360.4 103.1 359.1C104.4 358.1 104.1 355.8 102.4 353.9C100.8 352.3 98.5 351.6 97.2 352.9ZM86.4 344.8C85.7 346.1 86.7 347.7 88.7 348.7C90.3 349.7 92.3 349.4 93 348C93.7 346.7 92.7 345.1 90.7 344.1C88.7 343.5 87.1 343.8 86.4 344.8ZM118.8 380.4C117.2 381.7 117.8 384.7 120.1 386.6C122.4 388.9 125.3 389.2 126.6 387.6C127.9 386.3 127.3 383.3 125.3 381.4C123.1 379.1 120.1 378.8 118.8 380.4ZM107.4 365.7C105.8 366.7 105.8 369.3 107.4 371.6C109 373.9 111.7 374.9 113 373.9C114.6 372.6 114.6 370 113 367.7C111.6 365.4 109 364.4 107.4 365.7Z"),u(r,"fill","currentcolor"),u(e,"transform","scale(0.04838709677 0.04968944193) translate(0, -8)")},m(n,a){h(n,e,a),I(e,r)},p:b,d(n){n&&o(e)}}}function Re(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Te]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class De extends p{constructor(e){super(),v(this,e,qe,Re,V,{})}}function Ie(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M2.25 2.625V1.5H0V2.625V21.375V22.5H1.125H22.875H24V20.25H22.875H2.25V2.625ZM22.1719 7.92188L22.9688 7.125L21.375 5.53594L20.5781 6.33281L15 11.9109L11.2969 8.20781L10.5 7.41094L9.70312 8.20781L5.20312 12.7078L4.40625 13.5047L6 15.0891L6.79688 14.2922L10.5 10.5891L14.2031 14.2922L15 15.0891L15.7969 14.2922L22.1719 7.92188Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function ze(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Ie]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Oe extends p{constructor(e){super(),v(this,e,Ne,ze,V,{})}}function Ue(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M4.5 10.875H5.625H18.375H19.5V13.125H18.375H5.625H4.5V10.875Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function We(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Ue]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Ke extends p{constructor(e){super(),v(this,e,Je,We,V,{})}}function Ye(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M3.75 16.125V15H1.5V16.125L1.5 22.875V24H2.625H21.375H22.5V22.875V16.125V15H20.25V16.125V21.75H3.75L3.75 16.125ZM12.7969 0.853127L12 0.0562515L11.2031 0.853127L5.20313 6.85313L4.40625 7.65L6 9.23906L6.79688 8.44219L10.875 4.36407L10.875 15.375V16.5H13.125V15.375L13.125 4.36407L17.2031 8.44219L18 9.23906L19.5891 7.65L18.7922 6.85313L12.7922 0.853127H12.7969Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Qe(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Ye]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class xe extends p{constructor(e){super(),v(this,e,Xe,Qe,V,{})}}function ye(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12 2.25C14.5859 2.25 17.0658 3.27723 18.8943 5.10571C20.7228 6.93419 21.75 9.41414 21.75 12C21.75 14.5859 20.7228 17.0658 18.8943 18.8943C17.0658 20.7228 14.5859 21.75 12 21.75C9.41414 21.75 6.93419 20.7228 5.10571 18.8943C3.27723 17.0658 2.25 14.5859 2.25 12C2.25 9.41414 3.27723 6.93419 5.10571 5.10571C6.93419 3.27723 9.41414 2.25 12 2.25ZM12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24ZM10.125 15.75H9V18H10.125H13.875H15V15.75H13.875H13.5V11.625V10.5H12.375H10.125H9V12.75H10.125H11.25V15.75H10.125ZM13.5 9V6H10.5V9H13.5Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function et(s){let e,r;const n=[s[0]];let a={$$slots:{default:[ye]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class rt extends p{constructor(e){super(),v(this,e,tt,et,V,{})}}var y={},e1={},W={exports:{}},B=String,t1=function(){return{isColorSupported:!1,reset:B,bold:B,dim:B,italic:B,underline:B,inverse:B,hidden:B,strikethrough:B,black:B,red:B,green:B,yellow:B,blue:B,magenta:B,cyan:B,white:B,gray:B,bgBlack:B,bgRed:B,bgGreen:B,bgYellow:B,bgBlue:B,bgMagenta:B,bgCyan:B,bgWhite:B}};W.exports=t1();W.exports.createColors=t1;var nt=W.exports;(function(s){var e={};Object.defineProperty(s,"__esModule",{value:!0});function r(S,k){for(var A in k)Object.defineProperty(S,A,{enumerable:!0,get:k[A]})}r(s,{dim:function(){return c},default:function(){return j}});const n=a(nt);function a(S){return S&&S.__esModule?S:{default:S}}let t=new Set;function l(S,k,A){typeof process<"u"&&e.JEST_WORKER_ID||A&&t.has(A)||(A&&t.add(A),console.warn(""),k.forEach(P=>console.warn(S,"-",P)))}function c(S){return n.default.dim(S)}const j={info(S,k){l(n.default.bold(n.default.cyan("info")),...Array.isArray(S)?[S]:[k,S])},warn(S,k){l(n.default.bold(n.default.yellow("warn")),...Array.isArray(S)?[S]:[k,S])},risk(S,k){l(n.default.bold(n.default.magenta("risk")),...Array.isArray(S)?[S]:[k,S])}}})(e1);(function(s){Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"default",{enumerable:!0,get:function(){return a}});const e=r(e1);function r(t){return t&&t.__esModule?t:{default:t}}function n({version:t,from:l,to:c}){e.default.warn(`${l}-color-renamed`,[`As of Tailwind CSS ${t}, \`${l}\` has been renamed to \`${c}\`.`,"Update your configuration file to silence this warning."])}const a={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return n({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return n({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return n({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return n({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return n({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}})(y);let U=y;var st=(U.__esModule?U:{default:U}).default;const lt=u1(st);function at(s){let e,r,n;return{c(){e=g("circle"),r=G(),n=g("path"),this.h()},l(a){e=$(a,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),L(e).forEach(o),r=T(a),n=$(a,"path",{d:!0,fill:!0}),L(n).forEach(o),this.h()},h(){u(e,"cx","12"),u(e,"cy","12"),u(e,"r","8"),u(e,"fill",lt.gray[900]),u(n,"d","M15.5 9.33337C15.5 9.474 15.4375 9.599 15.3438 9.69275L11.3438 13.6927C11.25 13.7865 11.125 13.8334 11 13.8334C10.8594 13.8334 10.7344 13.7865 10.6406 13.6927L8.64062 11.6927C8.54688 11.599 8.5 11.474 8.5 11.3334C8.5 11.0521 8.71875 10.8334 9 10.8334C9.125 10.8334 9.25 10.8959 9.34375 10.9896L11 12.6302L14.6406 8.98962C14.7344 8.89587 14.8594 8.83337 15 8.83337C15.2656 8.83337 15.5 9.05212 15.5 9.33337Z"),u(n,"fill","white")},m(a,t){h(a,e,t),h(a,r,t),h(a,n,t)},p:b,d(a){a&&(o(e),o(r),o(n))}}}function ct(s){let e,r;const n=[s[0]];let a={$$slots:{default:[at]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class ut extends p{constructor(e){super(),v(this,e,ft,ct,V,{})}}function ot(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M14.1188 3.0675L13.8451 3.9225L8.44509 20.7225L8.17134 21.5775L9.88509 22.1288L10.1588 21.2738L15.5588 4.47375L15.8326 3.61875L14.1188 3.0675ZM16.4288 8.14126L17.0851 8.75626L21.1838 12.6L17.0851 16.4438L16.4288 17.0588L17.6588 18.3713L18.3151 17.7563L23.1151 13.2563L23.8163 12.6L23.1151 11.9438L18.3151 7.44376L17.6588 6.82875L16.4288 8.14126ZM6.34134 6.82875L5.68509 7.44376L0.885088 11.9438L0.183838 12.6L0.885088 13.2563L5.68509 17.7563L6.34134 18.3713L7.57134 17.0588L6.91509 16.4438L2.81634 12.6L6.91509 8.75626L7.57134 8.14126L6.34134 6.82875Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function it(s){let e,r;const n=[s[0]];let a={$$slots:{default:[ot]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class gt extends p{constructor(e){super(),v(this,e,ht,it,V,{})}}function $t(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M2 5.25V18.75H22V5.25H2ZM0 3H2H22H24V5.25V18.75V21H22H2H0V18.75V5.25V3ZM17.3333 15V17.25H6.66667V15H17.3333ZM4.33333 10.875H6.33333V13.125H4.33333V10.875ZM6.33333 7.125V9.375H4.33333V7.125H6.33333ZM7.66667 10.875H9.66667V13.125H7.66667V10.875ZM9.66667 7.125V9.375H7.66667V7.125H9.66667ZM11 10.875H13V13.125H11V10.875ZM13 7.125V9.375H11V7.125H13ZM14.3333 10.875H16.3333V13.125H14.3333V10.875ZM16.3333 7.125V9.375H14.3333V7.125H16.3333ZM17.6667 10.875H19.6667V13.125H17.6667V10.875ZM19.6667 7.125V9.375H17.6667V7.125H19.6667Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Lt(s){let e,r;const n=[s[0]];let a={$$slots:{default:[$t]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Ct extends p{constructor(e){super(),v(this,e,dt,Lt,V,{})}}function mt(s){let e,r,n;return{c(){e=g("path"),r=G(),n=g("path"),this.h()},l(a){e=$(a,"path",{d:!0,fill:!0}),L(e).forEach(o),r=T(a),n=$(a,"path",{d:!0,fill:!0}),L(n).forEach(o),this.h()},h(){u(e,"d","M14.25 10.0734V2.25H9.75V10.0734V10.7109L9.41719 11.2547L7.11094 15H16.8891L14.5828 11.2547L14.25 10.7109V10.0734ZM16.5 2.25V10.0734L22.5 19.8234V21.75V24H20.25H3.75H1.5V21.75V19.8234L7.5 10.0734V2.25H7.125H6V0H7.125H7.5H9.75H14.25H16.5H16.875H18V2.25H16.875H16.5Z"),u(e,"fill","currentColor"),u(n,"d","M6 17H18L19.5 19.83V22H4.5V19.83L6 17Z"),u(n,"fill",s[0])},m(a,t){h(a,e,t),h(a,r,t),h(a,n,t)},p(a,t){t&1&&u(n,"fill",a[0])},d(a){a&&(o(e),o(r),o(n))}}}function _t(s){let e,r;const n=[s[1]];let a={$$slots:{default:[mt]},$$scope:{ctx:s}};for(let t=0;t{r(1,e=f(f({},e),i(t))),"active"in t&&r(2,a=t.active)},s.$$.update=()=>{s.$$.dirty&4&&r(0,n=a?"#00F37E":"currentColor")},e=i(e),[n,e,a]}class Vt extends p{constructor(e){super(),v(this,e,Ht,_t,V,{active:2})}}function pt(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M14.0016 4.5L14.5031 2.25L15 0H12.6938H4.5L3.24844 11.25L3 13.5H5.26406H8.94844H11.25L10.7672 15.75L10.0031 19.3125L9 24L12.0844 20.3344L21 9.75V9V6.75H18.75H15.8063H13.5L14.0016 4.5ZM18.6937 9L13.0922 15.6516L13.4531 13.9734L14.0344 11.25H11.25H5.5125L6.51562 2.25H12.1969L11.3062 6.2625L10.6969 9H13.5H18.6891H18.6937Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function vt(s){let e,r;const n=[s[0]];let a={$$slots:{default:[pt]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Zt extends p{constructor(e){super(),v(this,e,Mt,vt,V,{})}}function wt(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M2.79854 11.475C0.16416 14.1094 0.16416 18.3797 2.79854 21.0094C5.31104 23.5219 9.3376 23.6531 12.0095 21.3141L12.2954 21.0609L10.8142 19.3688L10.5282 19.6219C8.74697 21.1781 6.06572 21.0891 4.39228 19.4156C2.63916 17.6625 2.63916 14.8172 4.39228 13.0594L9.70322 7.75313C11.4563 6.00001 14.3017 6.00001 16.0595 7.75313C17.7329 9.42657 17.822 12.1078 16.2657 13.8891L16.0126 14.175L17.7048 15.6563L17.9579 15.3703C20.297 12.6984 20.161 8.67188 17.6532 6.15938C15.0188 3.52501 10.7485 3.52501 8.11416 6.15938L2.79854 11.475ZM27.2017 12.525C29.836 9.89063 29.836 5.62032 27.2017 2.98594C24.6938 0.478131 20.6673 0.342194 17.9954 2.68126L17.7095 2.93438L19.1907 4.62657L19.4767 4.37344C21.2579 2.81719 23.9392 2.90626 25.6126 4.57969C27.3657 6.33282 27.3657 9.17813 25.6126 10.9359L20.3017 16.2469C18.5485 18 15.6985 18 13.9454 16.2469C12.272 14.5734 12.1829 11.8922 13.7392 10.1109L13.9595 9.85782L12.2673 8.37657L12.047 8.62969C9.7126 11.3016 9.84854 15.3281 12.3563 17.8359C14.9907 20.4703 19.261 20.4703 21.8954 17.8359L27.2017 12.525Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Et(s){let e,r;const n=[s[0]];let a={$$slots:{default:[wt]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class kt extends p{constructor(e){super(),v(this,e,bt,Et,V,{})}}function St(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M8.75 6V9H16.25V6C16.25 3.92812 14.5719 2.25 12.5 2.25C10.4281 2.25 8.75 3.92812 8.75 6ZM6.5 9V6C6.5 2.68594 9.18594 0 12.5 0C15.8141 0 18.5 2.68594 18.5 6V9H20.75H23V11.25V21.75V24H20.75H4.25H2V21.75V11.25V9H4.25H6.5ZM4.25 21.75H20.75V11.25H4.25V21.75Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function jt(s){let e,r;const n=[s[0]];let a={$$slots:{default:[St]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Ft extends p{constructor(e){super(),v(this,e,At,jt,V,{})}}function Bt(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M7.875 3.75H9V1.5H7.875H1.125H0V2.625V21.375V22.5H1.125H7.875H9V20.25H7.875H2.25V3.75H7.875ZM23.1469 12.7969L23.9437 12L23.1469 11.2031L17.1469 5.20312L16.35 4.40625L14.7609 6L15.5578 6.79688L19.6359 10.875H8.625H7.5V13.125H8.625H19.6359L15.5578 17.2031L14.7609 18L16.35 19.5891L17.1469 18.7922L23.1469 12.7922V12.7969Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Pt(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Bt]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Tt extends p{constructor(e){super(),v(this,e,Gt,Pt,V,{})}}function Rt(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M16.5 10C16.5 7.51562 14.4844 5.5 12 5.5C9.51562 5.5 7.5 7.51562 7.5 10C7.5 10.5094 7.74062 11.3125 8.27187 12.3562C8.78437 13.3625 9.48438 14.4313 10.2125 15.4281C10.8469 16.3 11.4844 17.0937 12 17.7125C12.5156 17.0937 13.1531 16.3 13.7875 15.4281C14.5125 14.4313 15.2125 13.3594 15.7281 12.3562C16.2594 11.3125 16.5 10.5094 16.5 10ZM18 10C18 12.5969 14.7 16.8438 12.9938 18.8625C12.4 19.5656 12 20 12 20C12 20 11.6 19.5656 11.0062 18.8625C9.3 16.8438 6 12.5969 6 10C6 6.6875 8.6875 4 12 4C15.3125 4 18 6.6875 18 10ZM13 10C13 9.73478 12.8946 9.48043 12.7071 9.29289C12.5196 9.10536 12.2652 9 12 9C11.7348 9 11.4804 9.10536 11.2929 9.29289C11.1054 9.48043 11 9.73478 11 10C11 10.2652 11.1054 10.5196 11.2929 10.7071C11.4804 10.8946 11.7348 11 12 11C12.2652 11 12.5196 10.8946 12.7071 10.7071C12.8946 10.5196 13 10.2652 13 10ZM9.5 10C9.5 9.33696 9.76339 8.70107 10.2322 8.23223C10.7011 7.76339 11.337 7.5 12 7.5C12.663 7.5 13.2989 7.76339 13.7678 8.23223C14.2366 8.70107 14.5 9.33696 14.5 10C14.5 10.663 14.2366 11.2989 13.7678 11.7678C13.2989 12.2366 12.663 12.5 12 12.5C11.337 12.5 10.7011 12.2366 10.2322 11.7678C9.76339 11.2989 9.5 10.663 9.5 10Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function qt(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Rt]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class It extends p{constructor(e){super(),v(this,e,Dt,qt,V,{})}}function zt(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M3.75 2.25V5.25H6.75V2.25H3.75ZM1.5 0H3.75H6.75H9V2.25V5.25V7.5H6.75H6.43125C6.79219 9.83438 8.8125 11.625 11.25 11.625H15V11.25V9H17.25H20.25H22.5V11.25V14.25V16.5H20.25H17.25H15V14.25V13.875H11.25C9.36562 13.875 7.65 13.1437 6.375 11.9484V16.5H6.75H9V18.75V21.75V24H6.75H3.75H1.5V21.75V18.75V16.5H3.75H4.125V7.5H3.75H1.5V5.25V2.25V0ZM3.75 18.75V21.75H6.75V18.75H3.75ZM20.25 11.25H17.25V14.25H20.25V11.25Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Nt(s){let e,r;const n=[s[0]];let a={$$slots:{default:[zt]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Ut extends p{constructor(e){super(),v(this,e,Ot,Nt,V,{})}}function Wt(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M16.4812 1.93125C15.5344 1.65 14.5359 1.5 13.5 1.5C13.0031 1.5 12.5156 1.53281 12.0422 1.59844C6.93281 2.31094 3 6.69844 3 12C3 17.7984 7.70156 22.5 13.5 22.5C14.8266 22.5 16.0922 22.2563 17.2594 21.8063C17.7609 21.6141 18.2484 21.3844 18.7125 21.1172C19.5516 20.6344 20.3203 20.0437 20.9906 19.3547C20.2641 19.5469 19.5 19.6453 18.7125 19.6453C18.1219 19.6453 17.5406 19.5891 16.9828 19.4766C12.8531 18.6656 9.73594 15.0188 9.73594 10.6453C9.73594 7.88438 10.9734 5.41406 12.9281 3.76406C13.1156 3.60469 13.3078 3.45469 13.5047 3.31406C14.3906 2.67656 15.3984 2.20312 16.4859 1.92188L16.4812 1.93125ZM8.925 5.13281C8.00625 6.76406 7.48594 8.64375 7.48594 10.65C7.48594 14.6906 9.61406 18.2391 12.8109 20.2219C8.57344 19.8703 5.25 16.3219 5.25 12C5.25 9.13594 6.70781 6.61406 8.925 5.13281Z"),u(e,"fill","currentColor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Jt(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Wt]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Yt extends p{constructor(e){super(),v(this,e,Kt,Jt,V,{})}}function Qt(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"fill-rule","evenodd"),u(e,"clip-rule","evenodd"),u(e,"d","M6.84398 2.27318L5.73166 1.96333L6.26834 0.0366821L11.5793 1.51608L8.87831 6.4781L7.12169 5.52192L7.98585 3.93435C5.03003 5.40982 3 8.46463 3 11.9921C3 14.4777 4.00626 16.7263 5.63604 18.3561C6.4266 19.1466 7.36291 19.7904 8.40037 20.2437L7.59963 22.0764C6.3302 21.5217 5.18652 20.735 4.22182 19.7703C2.23231 17.7808 1 15.0294 1 11.9921C1 7.77952 3.36736 4.12127 6.84398 2.27318ZM18.3638 5.64393C17.5733 4.85336 16.637 4.20961 15.5995 3.75632L16.4003 1.92362C17.6697 2.47826 18.8134 3.26502 19.7781 4.22971C21.7676 6.21923 22.9999 8.97059 22.9999 12.0079C22.9999 16.2205 20.6325 19.8787 17.1559 21.7268L18.2682 22.0367L17.7315 23.9633L12.4206 22.4839L15.1216 17.5219L16.8782 18.4781L16.014 20.0656C18.9699 18.5902 20.9999 15.5354 20.9999 12.0079C20.9999 9.52233 19.9936 7.2737 18.3638 5.64393ZM12.0001 9.00001C10.3432 9.00001 9 10.3432 9 12.0001C9 13.6571 10.3432 15.0003 12.0001 15.0003C13.6571 15.0003 15.0003 13.6571 15.0003 12.0001C15.0003 10.3432 13.6571 9.00001 12.0001 9.00001ZM7 12.0001C7 9.23865 9.23864 7.00001 12.0001 7.00001C14.7616 7.00001 17.0003 9.23865 17.0003 12.0001C17.0003 14.7616 14.7616 17.0003 12.0001 17.0003C9.23864 17.0003 7 14.7616 7 12.0001Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Xt(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Qt]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class yt extends p{constructor(e){super(),v(this,e,xt,Xt,V,{})}}function e0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12 0L12.3984 0.153692L23.2734 4.38023L24 4.6636V5.46088V18.1405V18.9089L23.3063 19.2019L12.4313 23.8127L12 24L11.5688 23.8175L0.69375 19.2067L0 18.9089V18.1405V5.46088V4.6636L0.726562 4.38023L11.6016 0.153692L12 0ZM2.25 17.372L10.875 21.027V11.2435L2.25 7.77106V17.372ZM13.125 21.027L21.75 17.372V7.77106L13.125 11.2435V21.027ZM12 2.46868L3.46875 5.78267L12 9.21673L20.5312 5.78267L12 2.46868Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function t0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[e0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class n0 extends p{constructor(e){super(),v(this,e,r0,t0,V,{})}}function s0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"fill-rule","evenodd"),u(e,"clip-rule","evenodd"),u(e,"d","M10.8738 10.1797V0H13.1262V10.1797L22.9927 5.25177L24 7.26423L14.5183 12L24 16.7358L22.9927 18.7482L13.1262 13.8203V24H10.8738V13.8203L1.00732 18.7482L8.59229e-06 16.7358L9.48172 12L0 7.26423L1.00731 5.25176L10.8738 10.1797Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function l0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[s0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class c0 extends p{constructor(e){super(),v(this,e,a0,l0,V,{})}}function f0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M15.4031 10.2281L16.2422 10.8375C17.1234 11.4844 17.775 12.3422 18.2062 13.1625C18.4453 13.6172 18.5813 13.9922 18.6609 14.25H13.125V10.125V9H10.875V10.125V14.25H5.31563C5.325 14.2031 5.33906 14.1516 5.35781 14.1C5.44687 13.7953 5.5875 13.425 5.79844 13.0266C6.22031 12.2297 6.85781 11.4094 7.72969 10.7953L8.60156 10.1859L8.68125 9.12656L9.20625 2.25H14.7938L15.3281 9.19687L15.4078 10.2281H15.4031ZM13.125 16.5H18.75H21V14.625C21 14.5172 20.9906 14.3953 20.9672 14.25C20.775 13.0406 19.7484 10.6125 17.5687 9.02344L17.0484 2.25H18.375H19.5V0H18.375H16.875H7.125H5.625H4.5V2.25H5.625H6.95156L6.43594 8.95312C4.22344 10.5047 3.19687 12.9188 3.02813 14.25C3.00938 14.3859 3 14.5125 3 14.625V16.5H5.25H10.875V22.875V24H13.125V22.875V16.5Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function u0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[f0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class i0 extends p{constructor(e){super(),v(this,e,o0,u0,V,{})}}function h0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M14.7188 11.0234L14.5781 7.625H15.1875C15.4922 7.625 15.75 7.39062 15.75 7.0625C15.75 6.75781 15.4922 6.5 15.1875 6.5H8.8125C8.48438 6.5 8.25 6.75781 8.25 7.0625C8.25 7.39062 8.48438 7.625 8.8125 7.625H9.53906L9.28125 11.0234C8.15625 11.6328 7.5 12.6172 7.5 13.6953C7.5 14.2812 7.96875 14.75 8.55469 14.75H11.4375V17.9375C11.4375 18.2656 11.6719 18.5 12 18.5C12.3047 18.5 12.5625 18.2656 12.5625 17.9375V14.75H15.4453C16.0078 14.75 16.5 14.2812 16.5 13.6953C16.5 12.6406 15.8203 11.6562 14.7188 11.0234ZM12.5625 13.625V11.9375C12.5625 11.6328 12.3047 11.375 12 11.375C11.6719 11.375 11.4375 11.6328 11.4375 11.9375V13.625H8.625C8.64844 12.9453 9.1875 12.2891 10.0547 11.8906L10.3594 11.75L10.6641 7.625H13.4531L13.6172 11.75L13.9219 11.8906C14.7891 12.2891 15.3281 12.9453 15.3516 13.625H12.5625Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function g0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[h0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class L0 extends p{constructor(e){super(),v(this,e,$0,g0,V,{})}}function d0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M20.5125 7.2375L18.75 9V12.75H21.7219C21.3375 17.7844 17.1328 21.75 12 21.75C6.61406 21.75 2.25 17.3859 2.25 12C2.25 11.0859 2.37656 10.2 2.61094 9.36094L4.5 11.25H6.75L9 13.5V16.5L10.5 18V20.25H13.5V18.75L16.5 15.75V12H10.5L9 10.5V9H12.75V7.5L11.25 6V5.25L12.75 3.75V2.27812C16.0875 2.53125 18.9563 4.46719 20.5125 7.2375ZM12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function C0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[d0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class _0 extends p{constructor(e){super(),v(this,e,m0,C0,V,{})}}function H0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"fill-rule","evenodd"),u(e,"clip-rule","evenodd"),u(e,"d","M8.55523 0H15.4441V6.88889H12.9997V11H21.4446V17.1111H23.889V24H17.0001V17.1111H19.4446V13H12.9997V17.1111H15.4441V24H8.55523V17.1111H10.9997V13H4.55553V17.1111H6.99997V24H0.111084V17.1111H2.55553V11H10.9997V6.88889H8.55523V0ZM13.4441 4.88889V2H10.5552V4.88889H13.4441ZM2.11108 19.1111V22H4.99997V19.1111H2.11108ZM10.5552 19.1111V22H13.4441V19.1111H10.5552ZM19.0001 19.1111V22H21.889V19.1111H19.0001Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function V0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[H0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class v0 extends p{constructor(e){super(),v(this,e,p0,V0,V,{})}}function M0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M8.25 0H15.75V2.25H13.125V4.56563C15.1594 4.8 17.0062 5.65781 18.4594 6.95156L19.8281 5.57812L20.625 4.78125L22.2141 6.375L21.4172 7.17188L19.9641 8.625C21.0891 10.2141 21.75 12.1547 21.75 14.25C21.75 19.6359 17.3859 24 12 24C6.61406 24 2.25 19.6359 2.25 14.25C2.25 9.24375 6.01875 5.12344 10.875 4.56563V2.25H8.25V0ZM12 21.75C13.9891 21.75 15.8968 20.9598 17.3033 19.5533C18.7098 18.1468 19.5 16.2391 19.5 14.25C19.5 12.2609 18.7098 10.3532 17.3033 8.9467C15.8968 7.54018 13.9891 6.75 12 6.75C10.0109 6.75 8.10322 7.54018 6.6967 8.9467C5.29018 10.3532 4.5 12.2609 4.5 14.25C4.5 16.2391 5.29018 18.1468 6.6967 19.5533C8.10322 20.9598 10.0109 21.75 12 21.75ZM13.125 10.125V15V16.125H10.875V15V10.125V9H13.125V10.125Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Z0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[M0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class E0 extends p{constructor(e){super(),v(this,e,w0,Z0,V,{})}}function b0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M22.125 10.5H23.25V9.375V2.625V1.5H21V2.625V6.37969L20.0625 5.27812C18.1406 2.97187 15.2391 1.5 12 1.5C6.20156 1.5 1.5 6.20156 1.5 12C1.5 17.7984 6.20156 22.5 12 22.5C14.3625 22.5 16.5469 21.7172 18.3 20.4L16.95 18.6C15.5719 19.6359 13.8609 20.25 12 20.25C7.44375 20.25 3.75 16.5562 3.75 12C3.75 7.44375 7.44375 3.75 12 3.75C14.5453 3.75 16.8234 4.90312 18.3375 6.72187L18.3422 6.73125L19.6359 8.25H15.375H14.25V10.5H15.375H22.125Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function k0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[b0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class j0 extends p{constructor(e){super(),v(this,e,S0,k0,V,{})}}function A0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12.9 2.9375V2H11.1V2.9375V5.75H5.4H3.6V7.625V20.125V22H5.4H18.6H20.4V20.125V7.625V5.75H18.6H12.9V2.9375ZM11.1 7.625H12.9H18.6V20.125H5.4V7.625H11.1ZM2.4 10.75H0V18.25H2.4V10.75ZM24 10.75H21.6V18.25H24V10.75ZM7.2 17V18.25H7.8H9H9.6V17H9H7.8H7.2ZM12.6 17H11.4H10.8V18.25H11.4H12.6H13.2V17H12.6ZM15 17H14.4V18.25H15H16.2H16.8V17H16.2H15ZM10.5 12C10.5 11.5856 10.342 11.1882 10.0607 10.8951C9.77936 10.6021 9.39783 10.4375 9 10.4375C8.60218 10.4375 8.22064 10.6021 7.93934 10.8951C7.65804 11.1882 7.5 11.5856 7.5 12C7.5 12.4144 7.65804 12.8118 7.93934 13.1049C8.22064 13.3979 8.60218 13.5625 9 13.5625C9.39783 13.5625 9.77936 13.3979 10.0607 13.1049C10.342 12.8118 10.5 12.4144 10.5 12ZM15 13.5625C15.3978 13.5625 15.7794 13.3979 16.0607 13.1049C16.342 12.8118 16.5 12.4144 16.5 12C16.5 11.5856 16.342 11.1882 16.0607 10.8951C15.7794 10.6021 15.3978 10.4375 15 10.4375C14.6022 10.4375 14.2206 10.6021 13.9393 10.8951C13.658 11.1882 13.5 11.5856 13.5 12C13.5 12.4144 13.658 12.8118 13.9393 13.1049C14.2206 13.3979 14.6022 13.5625 15 13.5625Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function F0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[A0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class P0 extends p{constructor(e){super(),v(this,e,B0,F0,V,{})}}function G0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M9.27656 11.9016C10.7859 6.58127 13.35 4.2094 15.6984 3.14065C17.7516 2.20315 19.9219 2.13752 21.6422 2.36252C21.8672 4.07815 21.8016 6.24846 20.8641 8.30627C19.7953 10.65 17.4234 13.2188 12.1031 14.7281C11.8031 14.1235 11.4094 13.5703 10.9219 13.0875C10.4344 12.6047 9.88125 12.2063 9.28125 11.9063L9.27656 11.9016ZM2.08125 13.486C2.1375 13.4953 2.19375 13.5 2.25 13.5H6.50156C7.56094 13.5 8.57812 13.9219 9.32812 14.6719C10.0781 15.4219 10.5 16.4391 10.5 17.4985V21.375C10.5 21.3797 10.5 21.3797 10.5 21.3844V24L18 20.25V14.6297C24.7266 10.4531 24.3938 3.7594 23.5641 0.435959C20.2406 -0.393728 13.5469 -0.726541 9.37031 6.00002H6.35156C6.34688 6.00002 6.34219 6.00002 6.3375 6.00002H3.75L0 13.4813L2.08125 13.486ZM0.0234375 23.9766C0.0234375 23.9766 5.48438 24.3516 7.80469 22.0313C9.41719 20.4188 9.41719 17.8078 7.80469 16.1953C6.19219 14.5828 3.58125 14.5828 1.96875 16.1953C-0.351562 18.5156 0.0234375 23.9766 0.0234375 23.9766ZM3.02812 20.9719C3.02812 20.9719 2.90156 19.1578 3.675 18.3844C4.20937 17.85 5.08125 17.85 5.61563 18.3844C6.15 18.9188 6.15 19.7906 5.61563 20.325C4.84219 21.0985 3.02812 20.9719 3.02812 20.9719ZM19.125 6.75002C19.125 6.25274 18.9275 5.77583 18.5758 5.4242C18.2242 5.07257 17.7473 4.87502 17.25 4.87502C16.7527 4.87502 16.2758 5.07257 15.9242 5.4242C15.5725 5.77583 15.375 6.25274 15.375 6.75002C15.375 7.2473 15.5725 7.72422 15.9242 8.07585C16.2758 8.42748 16.7527 8.62502 17.25 8.62502C17.7473 8.62502 18.2242 8.42748 18.5758 8.07585C18.9275 7.72422 19.125 7.2473 19.125 6.75002Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function T0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[G0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class q0 extends p{constructor(e){super(),v(this,e,R0,T0,V,{})}}function D0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12 0H10.875V1.125V4.875V6H13.125V4.875V2.31563C17.9813 2.87344 21.75 6.99375 21.75 12C21.75 17.3859 17.3859 21.75 12 21.75C6.61406 21.75 2.25 17.3859 2.25 12C2.25 9.97031 2.86875 8.08594 3.92813 6.525L4.56094 5.59688L2.7 4.33125L2.07188 5.25937C0.764063 7.18125 0 9.50156 0 12C0 18.6281 5.37188 24 12 24C18.6281 24 24 18.6281 24 12C24 5.37188 18.6281 0 12 0ZM9.04688 7.45312L8.25 6.65625L6.66094 8.25L7.45781 9.04688L11.2078 12.7969L12.0047 13.5938L13.5891 12L12.7922 11.2031L9.04219 7.45312H9.04688Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function I0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[D0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class N0 extends p{constructor(e){super(),v(this,e,z0,I0,V,{})}}function O0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M17.25 9.75C17.25 7.76088 16.4598 5.85322 15.0533 4.4467C13.6468 3.04018 11.7391 2.25 9.75 2.25C7.76088 2.25 5.85322 3.04018 4.4467 4.4467C3.04018 5.85322 2.25 7.76088 2.25 9.75C2.25 11.7391 3.04018 13.6468 4.4467 15.0533C5.85322 16.4598 7.76088 17.25 9.75 17.25C11.7391 17.25 13.6468 16.4598 15.0533 15.0533C16.4598 13.6468 17.25 11.7391 17.25 9.75ZM15.8016 17.3953C14.1422 18.7125 12.0375 19.5 9.75 19.5C4.36406 19.5 0 15.1359 0 9.75C0 4.36406 4.36406 0 9.75 0C15.1359 0 19.5 4.36406 19.5 9.75C19.5 12.0375 18.7125 14.1422 17.3953 15.8016L23.2078 21.6141L24.0047 22.4109L22.4109 24L21.6141 23.2031L15.8016 17.3906V17.3953Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function U0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[O0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class J0 extends p{constructor(e){super(),v(this,e,W0,U0,V,{})}}function K0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M15.375 0L16.0594 3.13125C16.6172 3.38906 17.1516 3.69375 17.6438 4.05L20.7 3.075L24.075 8.92031L21.7031 11.0812C21.7313 11.3812 21.7453 11.6859 21.7453 11.9953C21.7453 12.3047 21.7313 12.6094 21.7031 12.9094L24.075 15.0703L20.7 20.9156L17.6438 19.9406C17.1469 20.2922 16.6172 20.6016 16.0594 20.8594L15.375 24H8.62501L7.94063 20.8688C7.38282 20.6109 6.84844 20.3062 6.35626 19.95L3.29532 20.925L-0.0796814 15.0797L2.29219 12.9188C2.26407 12.6188 2.25001 12.3141 2.25001 12.0047C2.25001 11.6953 2.26407 11.3906 2.29219 11.0906L-0.0796814 8.925L3.29532 3.07969L6.35157 4.05469C6.84844 3.70312 7.37813 3.39375 7.93594 3.13594L8.62501 0H15.375ZM18.3281 6.19687L17.2547 6.53906L16.3406 5.8875C15.9563 5.61562 15.5484 5.37656 15.1219 5.17969L14.1 4.71094L13.8609 3.61406L13.5656 2.25H10.4344L10.1344 3.61406L9.89532 4.71094L8.87344 5.17969C8.44219 5.37656 8.03438 5.61562 7.65469 5.8875L6.74063 6.53906L5.67188 6.19687L4.34063 5.775L2.77501 8.47969L3.80626 9.42188L4.63594 10.1766L4.53282 11.2922C4.50938 11.5266 4.50001 11.7609 4.50001 12C4.50001 12.2391 4.50938 12.4734 4.53282 12.7078L4.63594 13.8234L3.80626 14.5781L2.77501 15.5203L4.34063 18.2297L5.67188 17.8078L6.74532 17.4656L7.65938 18.1172C8.04376 18.3891 8.45157 18.6281 8.87813 18.825L9.90001 19.2938L10.1391 20.3906L10.4391 21.7547H13.5656L13.8656 20.3906L14.1047 19.2938L15.1266 18.825C15.5578 18.6281 15.9656 18.3891 16.3453 18.1172L17.2594 17.4656L18.3328 17.8078L19.6641 18.2297L21.2297 15.5203L19.3641 13.8234L19.4672 12.7078C19.4906 12.4734 19.5 12.2391 19.5 12C19.5 11.7609 19.4906 11.5266 19.4672 11.2922L19.3641 10.1766L21.2297 8.47969L19.6641 5.77031L18.3328 6.19219L18.3281 6.19687ZM14.25 12C14.25 11.4033 14.013 10.831 13.591 10.409C13.169 9.98705 12.5967 9.75 12 9.75C11.4033 9.75 10.831 9.98705 10.409 10.409C9.98706 10.831 9.75001 11.4033 9.75001 12C9.75001 12.5967 9.98706 13.169 10.409 13.591C10.831 14.0129 11.4033 14.25 12 14.25C12.5967 14.25 13.169 14.0129 13.591 13.591C14.013 13.169 14.25 12.5967 14.25 12ZM7.50001 12C7.50001 10.8065 7.97411 9.66193 8.81803 8.81802C9.66194 7.97411 10.8065 7.5 12 7.5C13.1935 7.5 14.3381 7.97411 15.182 8.81802C16.0259 9.66193 16.5 10.8065 16.5 12C16.5 13.1935 16.0259 14.3381 15.182 15.182C14.3381 16.0259 13.1935 16.5 12 16.5C10.8065 16.5 9.66194 16.0259 8.81803 15.182C7.97411 14.3381 7.50001 13.1935 7.50001 12Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Y0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[K0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class X0 extends p{constructor(e){super(),v(this,e,Q0,Y0,V,{})}}function x0(s){let e,r,n;return{c(){e=g("circle"),r=G(),n=g("path"),this.h()},l(a){e=$(a,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),L(e).forEach(o),r=T(a),n=$(a,"path",{fill:!0,d:!0}),L(n).forEach(o),this.h()},h(){u(e,"cx","12"),u(e,"cy","18"),u(e,"r","1"),u(e,"fill","currentColor"),u(n,"fill","currentColor"),u(n,"d","M4.5 12C4.5 10.2437 5.10312 8.63125 6.1125 7.35313L4.93438 6.42188C3.725 7.95625 3 9.89375 3 12C3 14.1063 3.725 16.0438 4.93438 17.5781L6.1125 16.65C5.10312 15.3687 4.5 13.7563 4.5 12ZM6.5 12C6.5 13.2875 6.94375 14.4719 7.68437 15.4094L8.8625 14.4812C8.32188 13.7969 8 12.9375 8 12C8 11.0625 8.32187 10.2031 8.85938 9.52187L7.68125 8.59375C6.94375 9.52812 6.5 10.7125 6.5 12ZM16.3156 8.59062L15.1375 9.51875C15.6781 10.2031 16 11.0625 16 12C16 12.9375 15.6781 13.7969 15.1406 14.4781L16.3188 15.4062C17.0594 14.4688 17.5031 13.2844 17.5031 11.9969C17.5031 10.7094 17.0594 9.525 16.3188 8.5875L16.3156 8.59062ZM19.5 12C19.5 13.7563 18.8969 15.3688 17.8875 16.6469L19.0656 17.575C20.275 16.0437 21 14.1063 21 12C21 9.89375 20.275 7.95625 19.0656 6.42188L17.8875 7.35C18.8969 8.63125 19.5 10.2437 19.5 12ZM12 13.25C12.3315 13.25 12.6495 13.1183 12.8839 12.8839C13.1183 12.6495 13.25 12.3315 13.25 12C13.25 11.6685 13.1183 11.3505 12.8839 11.1161C12.6495 10.8817 12.3315 10.75 12 10.75C11.6685 10.75 11.3505 10.8817 11.1161 11.1161C10.8817 11.3505 10.75 11.6685 10.75 12C10.75 12.3315 10.8817 12.6495 11.1161 12.8839C11.3505 13.1183 11.6685 13.25 12 13.25Z")},m(a,t){h(a,e,t),h(a,r,t),h(a,n,t)},p:b,d(a){a&&(o(e),o(r),o(n))}}}function y0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[x0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class t7 extends p{constructor(e){super(),v(this,e,e7,y0,V,{})}}function r7(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M2.25 18.75H5.25V15.75H2.25V18.75ZM0 21V18.75V15.75V13.5H2.25H5.25H7.5V15.75V16.125H22.875H24V18.375H22.875H7.5V18.75V21H5.25H2.25H0ZM1.125 7.875H0V5.625H1.125H16.5V5.25V3H18.75H21.75H24V5.25V8.25V10.5H21.75H18.75H16.5V8.25V7.875H1.125ZM18.75 5.25V8.25H21.75V5.25H18.75Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function n7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[r7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class l7 extends p{constructor(e){super(),v(this,e,s7,n7,V,{})}}function a7(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12 3C16.9706 3 21 7.02944 21 12C21 14.4853 19.9926 16.7353 18.364 18.364"),u(e,"stroke","currentcolor"),u(e,"stroke-width","2"),u(e,"stroke-linecap","round"),u(e,"stroke-linejoin","round")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function c7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[a7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class u7 extends p{constructor(e){super(),v(this,e,f7,c7,V,{})}}function o7(s){let e,r,n,a,t,l,c,j,S,k,A,P,q;return{c(){e=g("path"),r=G(),n=g("path"),a=G(),t=g("path"),l=G(),c=g("path"),j=G(),S=g("path"),k=G(),A=g("path"),P=G(),q=g("path"),this.h()},l(F){e=$(F,"path",{d:!0,stroke:!0,"stroke-linecap":!0,"stroke-linejoin":!0}),L(e).forEach(o),r=T(F),n=$(F,"path",{d:!0,stroke:!0,"stroke-linecap":!0,"stroke-linejoin":!0}),L(n).forEach(o),a=T(F),t=$(F,"path",{d:!0,stroke:!0,"stroke-linecap":!0,"stroke-linejoin":!0}),L(t).forEach(o),l=T(F),c=$(F,"path",{d:!0,stroke:!0,"stroke-linecap":!0,"stroke-linejoin":!0}),L(c).forEach(o),j=T(F),S=$(F,"path",{d:!0,stroke:!0,"stroke-linecap":!0,"stroke-linejoin":!0}),L(S).forEach(o),k=T(F),A=$(F,"path",{d:!0,stroke:!0,"stroke-linecap":!0,"stroke-linejoin":!0}),L(A).forEach(o),P=T(F),q=$(F,"path",{d:!0,stroke:!0,"stroke-linecap":!0,"stroke-linejoin":!0}),L(q).forEach(o),this.h()},h(){u(e,"d","M11.5 3.5C11.5 3.77614 11.7239 4 12 4C12.2761 4 12.5 3.77614 12.5 3.5C12.5 3.22386 12.2761 3 12 3C11.7239 3 11.5 3.22386 11.5 3.5Z"),u(e,"stroke","currentcolor"),u(e,"stroke-linecap","round"),u(e,"stroke-linejoin","round"),u(n,"d","M5.5 6C5.5 6.27614 5.72386 6.5 6 6.5C6.27614 6.5 6.5 6.27614 6.5 6C6.5 5.72386 6.27614 5.5 6 5.5C5.72386 5.5 5.5 5.72386 5.5 6Z"),u(n,"stroke","currentcolor"),u(n,"stroke-linecap","round"),u(n,"stroke-linejoin","round"),u(t,"d","M3 12C3 12.2761 3.22386 12.5 3.5 12.5C3.77614 12.5 4 12.2761 4 12C4 11.7239 3.77614 11.5 3.5 11.5C3.22386 11.5 3 11.7239 3 12Z"),u(t,"stroke","currentcolor"),u(t,"stroke-linecap","round"),u(t,"stroke-linejoin","round"),u(c,"d","M5.5 18C5.5 18.2761 5.72386 18.5 6 18.5C6.27614 18.5 6.5 18.2761 6.5 18C6.5 17.7239 6.27614 17.5 6 17.5C5.72386 17.5 5.5 17.7239 5.5 18Z"),u(c,"stroke","currentcolor"),u(c,"stroke-linecap","round"),u(c,"stroke-linejoin","round"),u(S,"d","M11.5 20.5C11.5 20.7761 11.7239 21 12 21C12.2761 21 12.5 20.7761 12.5 20.5C12.5 20.2239 12.2761 20 12 20C11.7239 20 11.5 20.2239 11.5 20.5Z"),u(S,"stroke","currentcolor"),u(S,"stroke-linecap","round"),u(S,"stroke-linejoin","round"),u(A,"d","M17.5 18C17.5 18.2761 17.7239 18.5 18 18.5C18.2761 18.5 18.5 18.2761 18.5 18C18.5 17.7239 18.2761 17.5 18 17.5C17.7239 17.5 17.5 17.7239 17.5 18Z"),u(A,"stroke","currentcolor"),u(A,"stroke-linecap","round"),u(A,"stroke-linejoin","round"),u(q,"d","M20 12C20 12.2761 20.2239 12.5 20.5 12.5C20.7761 12.5 21 12.2761 21 12C21 11.7239 20.7761 11.5 20.5 11.5C20.2239 11.5 20 11.7239 20 12Z"),u(q,"stroke","currentcolor"),u(q,"stroke-linecap","round"),u(q,"stroke-linejoin","round")},m(F,R){h(F,e,R),h(F,r,R),h(F,n,R),h(F,a,R),h(F,t,R),h(F,l,R),h(F,c,R),h(F,j,R),h(F,S,R),h(F,k,R),h(F,A,R),h(F,P,R),h(F,q,R)},p:b,d(F){F&&(o(e),o(r),o(n),o(a),o(t),o(l),o(c),o(j),o(S),o(k),o(A),o(P),o(q))}}}function i7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[o7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class g7 extends p{constructor(e){super(),v(this,e,h7,i7,V,{})}}function $7(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M15.8588 8.04688L13.2105 3.20859L12.0022 1L10.7895 3.20859L8.14119 8.04688L2.55471 8.9793L0 9.40469L1.80568 11.1965L5.76036 15.1152L4.95337 20.525L4.58332 23L6.91064 21.8957L12.0022 19.4852L17.0938 21.8957L19.4167 23L19.0466 20.525L18.2396 15.1152L22.1943 11.1965L24 9.40469L21.4453 8.9793L15.8588 8.04688ZM19.6396 10.7711L16.7059 13.6801L15.9747 14.4062L16.1263 15.4117L16.7238 19.425L12.9474 17.6332L12.0022 17.1863L11.057 17.6332L7.2807 19.425L7.87814 15.4117L8.02972 14.4062L7.29853 13.6801L4.36485 10.7711L8.51124 10.0793L9.55007 9.90742L10.0405 9.00937L12.0067 5.42148L13.9729 9.00937L14.4633 9.90742L15.5021 10.0793L19.6485 10.7711H19.6396Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function L7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[$7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class C7 extends p{constructor(e){super(),v(this,e,d7,L7,V,{})}}function m7(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M15.8588 8.04688L13.2105 3.20859L12.0022 1L10.7895 3.20859L8.14119 8.04688L2.55471 8.9793L0 9.40469L1.80568 11.1965L5.76036 15.1152L4.95337 20.525L4.58332 23L6.91064 21.8957L12.0022 19.4852L17.0938 21.8957L19.4167 23L19.0466 20.525L18.2396 15.1152L22.1943 11.1965L24 9.40469L21.4453 8.9793L15.8588 8.04688Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function _7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[m7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class V7 extends p{constructor(e){super(),v(this,e,H7,_7,V,{})}}function p7(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M13.125 1.5V2.625V9.97969L19.2844 6.16875L20.4704 8.08125L14.1375 12L20.4657 15.9188L19.2797 17.8312L13.125 14.0203V21.375V22.5H10.875V21.375V14.0203L4.71567 17.8312L3.53442 15.9188L9.86255 12L3.53442 8.08125L4.72036 6.16875L10.875 9.97969V2.625V1.5H13.125Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function v7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[p7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Z7 extends p{constructor(e){super(),v(this,e,M7,v7,V,{})}}function w7(s){let e,r,n,a,t,l;return{c(){e=g("g"),r=g("path"),n=G(),a=g("defs"),t=g("clipPath"),l=g("rect"),this.h()},l(c){e=$(c,"g",{"clip-path":!0});var j=L(e);r=$(j,"path",{d:!0,fill:!0}),L(r).forEach(o),j.forEach(o),n=T(c),a=$(c,"defs",{});var S=L(a);t=$(S,"clipPath",{id:!0});var k=L(t);l=$(k,"rect",{width:!0,height:!0,fill:!0}),L(l).forEach(o),k.forEach(o),S.forEach(o),this.h()},h(){u(r,"d","M13.125 1.125V4.125V5.25H10.875V4.125V1.125V0H13.125V1.125ZM20.4844 5.10469L18.3609 7.22812L17.5641 8.025L15.975 6.43594L16.7719 5.63906L18.8953 3.51562L19.6922 2.71875L21.2812 4.3125L20.4844 5.10938V5.10469ZM5.10469 3.51562L7.22812 5.63906L8.025 6.43594L6.43594 8.025L5.63906 7.22812L3.51562 5.10469L2.71875 4.3125L4.3125 2.71875L5.10938 3.51562H5.10469ZM1.125 10.875H4.125H5.25V13.125H4.125H1.125H0V10.875H1.125ZM19.875 10.875H22.875H24V13.125H22.875H19.875H18.75V10.875H19.875ZM7.22812 18.3656L5.10469 20.4844L4.3125 21.2812L2.71875 19.6875L3.51562 18.8906L5.63906 16.7672L6.43594 15.9703L8.025 17.5594L7.22812 18.3563V18.3656ZM18.3656 16.7766L20.4844 18.8953L21.2812 19.6922L19.6875 21.2812L18.8906 20.4844L16.7672 18.3609L15.9703 17.5641L17.5594 15.975L18.3563 16.7719L18.3656 16.7766ZM13.125 19.875V22.875V24H10.875V22.875V19.875V18.75H13.125V19.875ZM15 12C15 11.2044 14.6839 10.4413 14.1213 9.87868C13.5587 9.31607 12.7956 9 12 9C11.2044 9 10.4413 9.31607 9.87868 9.87868C9.31607 10.4413 9 11.2044 9 12C9 12.7956 9.31607 13.5587 9.87868 14.1213C10.4413 14.6839 11.2044 15 12 15C12.7956 15 13.5587 14.6839 14.1213 14.1213C14.6839 13.5587 15 12.7956 15 12ZM6.75 12C6.75 10.6076 7.30312 9.27226 8.28769 8.28769C9.27226 7.30312 10.6076 6.75 12 6.75C13.3924 6.75 14.7277 7.30312 15.7123 8.28769C16.6969 9.27226 17.25 10.6076 17.25 12C17.25 13.3924 16.6969 14.7277 15.7123 15.7123C14.7277 16.6969 13.3924 17.25 12 17.25C10.6076 17.25 9.27226 16.6969 8.28769 15.7123C7.30312 14.7277 6.75 13.3924 6.75 12Z"),u(r,"fill","currentColor"),u(e,"clip-path","url(#clip0_1488_39)"),u(l,"width","24"),u(l,"height","24"),u(l,"fill","currentColor"),u(t,"id","clip0_1488_39")},m(c,j){h(c,e,j),I(e,r),h(c,n,j),h(c,a,j),I(a,t),I(t,l)},p:b,d(c){c&&(o(e),o(n),o(a))}}}function E7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[w7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class k7 extends p{constructor(e){super(),v(this,e,b7,E7,V,{})}}function S7(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M18.0516 19.6453C16.3922 20.9625 14.2875 21.75 12 21.75C9.7125 21.75 7.60781 20.9625 5.94844 19.6453L9.71719 15.8766C10.3875 16.2703 11.1703 16.5 12.0047 16.5C12.8391 16.5 13.6219 16.275 14.2922 15.8766L18.0609 19.6453H18.0516ZM21.2438 19.6547C22.9641 17.5734 24 14.9109 24 12C24 9.08906 22.9641 6.42656 21.2438 4.34531L21.7969 3.79688L22.5938 3L21 1.41094L20.2031 2.20312L19.6547 2.75625C17.5734 1.03594 14.9109 0 12 0C9.08906 0 6.42656 1.03594 4.34531 2.75625L3.79688 2.20312L3 1.40625L1.41094 3L2.20312 3.79688L2.75625 4.34531C1.03594 6.42656 0 9.08906 0 12C0 14.9109 1.03594 17.5734 2.75625 19.6547L2.20312 20.2031L1.40625 21L3 22.5891L3.79688 21.7922L4.35 21.2391C6.42656 22.9641 9.08906 24 12 24C14.9109 24 17.5734 22.9641 19.6547 21.2438L20.2031 21.7969L21 22.5938L22.5891 21L21.7922 20.2031L21.2391 19.65L21.2438 19.6547ZM19.6453 18.0563L15.8766 14.2875C16.2703 13.6172 16.5 12.8344 16.5 12C16.5 11.1656 16.275 10.3828 15.8766 9.7125L19.6453 5.94375C20.9625 7.60781 21.75 9.7125 21.75 12C21.75 14.2875 20.9625 16.3922 19.6453 18.0516V18.0563ZM18.0516 4.35469L14.2828 8.12344C13.6125 7.72969 12.8297 7.5 11.9953 7.5C11.1609 7.5 10.3781 7.725 9.70781 8.12344L5.94844 4.35469C7.60781 3.0375 9.7125 2.25 12 2.25C14.2875 2.25 16.3922 3.0375 18.0516 4.35469ZM8.12344 14.2875L4.35469 18.0516C3.0375 16.3922 2.25 14.2875 2.25 12C2.25 9.7125 3.0375 7.60781 4.35469 5.94844L8.12344 9.71719C7.72969 10.3875 7.5 11.1703 7.5 12.0047C7.5 12.8391 7.725 13.6219 8.12344 14.2922V14.2875ZM9.75 12C9.75 11.4033 9.98705 10.831 10.409 10.409C10.831 9.98705 11.4033 9.75 12 9.75C12.5967 9.75 13.169 9.98705 13.591 10.409C14.0129 10.831 14.25 11.4033 14.25 12C14.25 12.5967 14.0129 13.169 13.591 13.591C13.169 14.0129 12.5967 14.25 12 14.25C11.4033 14.25 10.831 14.0129 10.409 13.591C9.98705 13.169 9.75 12.5967 9.75 12Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function j7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[S7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class F7 extends p{constructor(e){super(),v(this,e,A7,j7,V,{})}}function B7(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"fill-rule","evenodd"),u(e,"clip-rule","evenodd"),u(e,"d","M7.571 7.571c-1.91.275-3.602.729-4.884 1.325-.726.337-1.369.743-1.844 1.229C.363 10.615 0 11.248 0 12s.363 1.385.843 1.875c.475.486 1.118.892 1.844 1.229 1.282.597 2.974 1.05 4.884 1.325.275 1.91.729 3.602 1.325 4.884.337.726.743 1.369 1.229 1.845.49.48 1.123.842 1.875.842.753 0 1.386-.364 1.875-.844.486-.476.89-1.12 1.227-1.846.595-1.284 1.047-2.976 1.322-4.886 1.91-.275 3.602-.727 4.886-1.322.726-.337 1.37-.741 1.846-1.227.48-.49.844-1.122.844-1.875 0-.752-.363-1.385-.843-1.875-.475-.486-1.118-.892-1.844-1.229-1.282-.596-2.974-1.05-4.884-1.325-.275-1.91-.728-3.602-1.325-4.884-.337-.726-.743-1.369-1.229-1.844C13.385.363 12.752 0 12 0s-1.385.363-1.875.843c-.486.475-.892 1.118-1.229 1.844C8.3 3.969 7.846 5.66 7.571 7.57ZM9.63 7.35a31.964 31.964 0 0 1 4.742 0c-.258-1.557-.637-2.865-1.08-3.819-.28-.6-.562-1.01-.814-1.258C12.227 2.03 12.07 2 12 2s-.228.029-.477.272c-.252.248-.535.659-.813 1.258-.444.954-.823 2.262-1.08 3.819ZM7.35 14.37a31.961 31.961 0 0 1 0-4.742c-1.557.258-2.865.637-3.819 1.08-.6.28-1.01.562-1.258.814C2.03 11.773 2 11.93 2 12s.029.228.272.477c.248.252.659.535 1.258.813.954.444 2.262.823 3.819 1.08Zm2.027-4.995c2.01-.177 4.044-.15 6.046.081 2.1.243 3.853.697 5.048 1.253.6.278 1.01.56 1.258.813.243.25.272.407.272.477s-.029.226-.272.475c-.248.252-.66.534-1.26.813-1.196.554-2.95 1.007-5.051 1.25l-.788.091-.09.788c-.243 2.101-.697 3.855-1.251 5.052-.279.6-.56 1.011-.813 1.259-.248.243-.406.272-.475.272-.07 0-.228-.029-.476-.272-.253-.248-.536-.659-.814-1.258-.556-1.195-1.01-2.947-1.253-5.048a29.923 29.923 0 0 1-.081-6.046Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function P7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[B7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class T7 extends p{constructor(e){super(),v(this,e,G7,P7,V,{})}}function R7(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M0.595899 3.34165L-0.0791016 2.60415L1.3959 1.25415L2.0709 1.99165L9.40423 9.99165L10.0251 10.6666L9.40423 11.3416L2.0709 19.3416L1.3959 20.0791L-0.0791016 18.7291L0.595899 17.9916L7.3084 10.6666L0.595899 3.34165ZM10.3334 18H23.0001H24.0001V20H23.0001H10.3334H9.3334V18H10.3334Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function q7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[R7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class I7 extends p{constructor(e){super(),v(this,e,D7,q7,V,{})}}function z7(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M2.25 1.5V2.625V20.25H22.875H24V22.5H22.875H1.125H0V21.375V2.625V1.5H2.25ZM6 5.25H7.125H12.375H13.5V7.5H12.375H7.125H6V5.25ZM10.125 9.75H16.875H18V12H16.875H10.125H9V9.75H10.125ZM17.625 14.25H21.375H22.5V16.5H21.375H17.625H16.5V14.25H17.625Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function N7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[z7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class U7 extends p{constructor(e){super(),v(this,e,O7,N7,V,{})}}function W7(s){let e,r,n,a,t,l,c,j,S;return{c(){e=g("path"),r=G(),n=g("path"),a=G(),t=g("path"),l=G(),c=g("path"),j=G(),S=g("path"),this.h()},l(k){e=$(k,"path",{d:!0,fill:!0}),L(e).forEach(o),r=T(k),n=$(k,"path",{d:!0,fill:!0}),L(n).forEach(o),a=T(k),t=$(k,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(t).forEach(o),l=T(k),c=$(k,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(c).forEach(o),j=T(k),S=$(k,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(S).forEach(o),this.h()},h(){u(e,"d","M23 14H13L14 21H23V14Z"),u(e,"fill","#F87171"),u(n,"d","M1 14H11L10 21H1V14Z"),u(n,"fill","#F87171"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(t,"d","M3.31653 3L9.19612 4.17592L8.80388 6.13708L4.68347 5.31299L2.36447 12.5H21.6355L19.3165 5.313L15.1961 6.13708L14.8039 4.17592L20.6835 3L24 13.3459V22H13.5144L12.3686 17.5H11.6314L10.4856 22H0V13.3459L3.31653 3ZM14.1179 16.2649L15.0689 20H22V14.5H13.7134L14.1179 16.2649ZM10.2866 14.5H2V20H8.93106L9.88212 16.2649L10.2866 14.5Z"),u(t,"fill","currentcolor"),u(c,"fill-rule","evenodd"),u(c,"clip-rule","evenodd"),u(c,"d","M4.89645 17.3536L3.25 15.7071L3.95711 15L5.60355 16.6464L7.25 15L7.95711 15.7071L6.31066 17.3536L7.95711 19L7.25 19.7071L5.60355 18.0607L3.95711 19.7071L3.25 19L4.89645 17.3536Z"),u(c,"fill","currentcolor"),u(S,"fill-rule","evenodd"),u(S,"clip-rule","evenodd"),u(S,"d","M17.6893 17.3536L16.0429 15.7071L16.75 15L18.3964 16.6464L20.0429 15L20.75 15.7071L19.1036 17.3536L20.75 19L20.0429 19.7071L18.3964 18.0607L16.75 19.7071L16.0429 19L17.6893 17.3536Z"),u(S,"fill","currentcolor")},m(k,A){h(k,e,A),h(k,r,A),h(k,n,A),h(k,a,A),h(k,t,A),h(k,l,A),h(k,c,A),h(k,j,A),h(k,S,A)},p:b,d(k){k&&(o(e),o(r),o(n),o(a),o(t),o(l),o(c),o(j),o(S))}}}function J7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[W7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Y7 extends p{constructor(e){super(),v(this,e,K7,J7,V,{})}}function Q7(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"fill-rule","evenodd"),u(e,"clip-rule","evenodd"),u(e,"d","M3.31653 3L9.19612 4.17592L8.80388 6.13708L4.68347 5.31299L2.36447 12.5H21.6355L19.3165 5.313L15.1961 6.13708L14.8039 4.17592L20.6835 3L24 13.3459V22H13.5144L12.3686 17.5H11.6314L10.4856 22H0V13.3459L3.31653 3ZM14.1179 16.2649L15.0689 20H22V14.5H13.7134L14.1179 16.2649ZM10.2866 14.5H2V20H8.93106L9.88212 16.2649L10.2866 14.5Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function X7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Q7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class y7 extends p{constructor(e){super(),v(this,e,x7,X7,V,{})}}function e3(s){let e,r,n,a,t;return{c(){e=g("path"),r=G(),n=g("path"),a=G(),t=g("path"),this.h()},l(l){e=$(l,"path",{d:!0,fill:!0}),L(e).forEach(o),r=T(l),n=$(l,"path",{d:!0,fill:!0}),L(n).forEach(o),a=T(l),t=$(l,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(t).forEach(o),this.h()},h(){u(e,"d","M23 14L13 14L14 21H23V14Z"),u(e,"fill","#4FD1C5"),u(n,"d","M1 14H11L10 21H1V14Z"),u(n,"fill","#C4B5FD"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(t,"d","M3.31653 3L9.19612 4.17592L8.80388 6.13708L4.68347 5.31299L2.36447 12.5H21.6355L19.3165 5.313L15.1961 6.13708L14.8039 4.17592L20.6835 3L24 13.3459V22H13.5144L12.3686 17.5H11.6314L10.4856 22H0V13.3459L3.31653 3ZM14.1179 16.2649L15.0689 20H22V14.5H13.7134L14.1179 16.2649ZM10.2866 14.5H2V20H8.93106L9.88212 16.2649L10.2866 14.5Z"),u(t,"fill","currentcolor")},m(l,c){h(l,e,c),h(l,r,c),h(l,n,c),h(l,a,c),h(l,t,c)},p:b,d(l){l&&(o(e),o(r),o(n),o(a),o(t))}}}function t3(s){let e,r;const n=[s[0]];let a={$$slots:{default:[e3]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class n3 extends p{constructor(e){super(),v(this,e,r3,t3,V,{})}}function s3(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M8.4 0H9H15H15.6L15.9375 0.501562L18.1031 3.75H18.7453H21H22.5V6H20.8312L19.5 24H4.5L3.16875 6H1.5V3.75H3H5.25469H5.89688L8.0625 0.501562L8.4 0ZM8.60625 3.75H15.4031L14.4 2.25H9.6L8.60156 3.75H8.60625ZM5.42344 6L6.59062 21.75H17.4094L18.5766 6H5.42344Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function l3(s){let e,r;const n=[s[0]];let a={$$slots:{default:[s3]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class c3 extends p{constructor(e){super(),v(this,e,a3,l3,V,{})}}function f3(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M24 9.14286L23.52 9.30357L22.9875 9.48214L12 13.1429L4.73625 10.7214L3 12.25V15.2429C3.5775 16.1393 4.0425 17.6857 3 20L0 19.4286C0 19.4286 1.21875 17.7679 1.8 15.9679V12V11.75L1.99125 11.5786L3.45 10.2929L1.00875 9.47857L0.47625 9.3L0 9.14286V8L0.48 7.83929L1.0125 7.66071L12 4L22.9912 7.66429L23.5238 7.84286L24 8V9.14286ZM12 11.325L20.265 8.57143L12 5.81786L3.735 8.57143L5.30625 9.09643L11.79 6.78214L12.21 7.85357L7.0725 9.68929L12 11.3321V11.325ZM5.385 12.1464L7.1325 12.7286L6.645 17.1393C6.825 17.2643 7.125 17.425 7.5675 17.5893C8.625 17.9857 10.2 18.2857 12 18.2857C13.8 18.2857 15.375 17.9857 16.4363 17.5929C16.8788 17.4286 17.1788 17.2643 17.3588 17.1429L16.8713 12.7321L18.6188 12.15L19.2 17.4286C19.2 18.6893 15.975 20 12 20C8.025 20 4.8 18.6893 4.8 17.4286L5.385 12.15V12.1464ZM17.5275 17C17.5298 16.9972 17.5314 16.9939 17.5322 16.9905C17.533 16.987 17.5331 16.9835 17.5324 16.98C17.5317 16.9765 17.5302 16.9732 17.528 16.9703C17.5259 16.9674 17.5231 16.965 17.5199 16.9632C17.5166 16.9614 17.5131 16.9603 17.5094 16.96C17.5057 16.9596 17.5019 16.96 17.4984 16.9611C17.4949 16.9622 17.4916 16.964 17.4889 16.9664C17.4861 16.9688 17.484 16.9717 17.4825 16.975C17.4802 16.9778 17.4786 16.9811 17.4778 16.9845C17.477 16.988 17.4769 16.9915 17.4776 16.995C17.4783 16.9985 17.4798 17.0018 17.482 17.0047C17.4841 17.0076 17.4869 17.01 17.4901 17.0118C17.4934 17.0136 17.4969 17.0147 17.5006 17.015C17.5043 17.0154 17.5081 17.015 17.5116 17.0139C17.5151 17.0128 17.5184 17.011 17.5211 17.0086C17.5239 17.0062 17.526 17.0033 17.5275 17ZM6.4725 17C6.47321 17.0038 6.47485 17.0075 6.47728 17.0106C6.47972 17.0137 6.48289 17.0163 6.48655 17.018C6.4902 17.0198 6.49423 17.0207 6.49832 17.0207C6.5024 17.0207 6.50644 17.0198 6.51009 17.018C6.51375 17.0163 6.51693 17.0138 6.51938 17.0106C6.52183 17.0075 6.52348 17.0039 6.52419 17.0001C6.52491 16.9962 6.52468 16.9923 6.52352 16.9886C6.52236 16.9848 6.5203 16.9814 6.5175 16.9786C6.51679 16.9747 6.51515 16.9711 6.51272 16.968C6.51028 16.9649 6.50711 16.9623 6.50346 16.9606C6.4998 16.9588 6.49577 16.9579 6.49169 16.9579C6.4876 16.9579 6.48356 16.9588 6.47991 16.9605C6.47625 16.9623 6.47307 16.9648 6.47062 16.9679C6.46817 16.971 6.46653 16.9747 6.46581 16.9785C6.46509 16.9823 6.46532 16.9863 6.46648 16.99C6.46764 16.9937 6.4697 16.9972 6.4725 17Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function u3(s){let e,r;const n=[s[0]];let a={$$slots:{default:[f3]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class i3 extends p{constructor(e){super(),v(this,e,o3,u3,V,{})}}function h3(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M8.2 8.09064L7.69062 8.64064L8.79063 9.66251L9.3 9.11251L11.25 7.00939V14.25V15H12.75V14.25V7.00939L14.7 9.10939L15.2094 9.65939L16.3094 8.63751L15.8 8.08751L12.55 4.58751L12 3.99689L11.45 4.59064L8.2 8.09064ZM12 18.5C8.40937 18.5 5.5 15.5906 5.5 12H4C4 16.4188 7.58125 20 12 20C16.4187 20 20 16.4188 20 12V11.25H18.5V12C18.5 15.5906 15.5906 18.5 12 18.5Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function g3(s){let e,r;const n=[s[0]];let a={$$slots:{default:[h3]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class L3 extends p{constructor(e){super(),v(this,e,$3,g3,V,{})}}function d3(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M13.125 16.875V18H10.875V16.875V4.58906L6.42188 9.04219L5.625 9.83906L4.03594 8.25L4.83281 7.45312L11.2031 1.07812L12 0.28125L12.7969 1.07812L19.1719 7.45312L19.9688 8.25L18.375 9.83906L17.5781 9.04219L13.125 4.58906V16.875ZM14.625 16.5V14.25H21.75H24V16.5V21.75V24H21.75H2.25H0V21.75V16.5V14.25H2.25H9.375V16.5H2.25V21.75H21.75V16.5H14.625ZM18 19.125C18 18.8266 18.1185 18.5405 18.3295 18.3295C18.5405 18.1185 18.8266 18 19.125 18C19.4234 18 19.7095 18.1185 19.9205 18.3295C20.1315 18.5405 20.25 18.8266 20.25 19.125C20.25 19.4234 20.1315 19.7095 19.9205 19.9205C19.7095 20.1315 19.4234 20.25 19.125 20.25C18.8266 20.25 18.5405 20.1315 18.3295 19.9205C18.1185 19.7095 18 19.4234 18 19.125Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function C3(s){let e,r;const n=[s[0]];let a={$$slots:{default:[d3]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class _3 extends p{constructor(e){super(),v(this,e,m3,C3,V,{})}}function H3(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12 2.25C14.5859 2.25 17.0658 3.27723 18.8943 5.10571C20.7228 6.93419 21.75 9.41414 21.75 12C21.75 14.5859 20.7228 17.0658 18.8943 18.8943C17.0658 20.7228 14.5859 21.75 12 21.75C9.41414 21.75 6.93419 20.7228 5.10571 18.8943C3.27723 17.0658 2.25 14.5859 2.25 12C2.25 9.41414 3.27723 6.93419 5.10571 5.10571C6.93419 3.27723 9.41414 2.25 12 2.25ZM12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24ZM13.5 5.25C13.5 4.85218 13.342 4.47064 13.0607 4.18934C12.7794 3.90804 12.3978 3.75 12 3.75C11.6022 3.75 11.2206 3.90804 10.9393 4.18934C10.658 4.47064 10.5 4.85218 10.5 5.25C10.5 5.64782 10.658 6.02936 10.9393 6.31066C11.2206 6.59196 11.6022 6.75 12 6.75C12.3978 6.75 12.7794 6.59196 13.0607 6.31066C13.342 6.02936 13.5 5.64782 13.5 5.25ZM12 19.125C13.4484 19.125 14.625 17.9484 14.625 16.5C14.625 15.8438 14.3859 15.2437 13.9828 14.7844L17.1562 7.57969L17.6109 6.54844L15.5531 5.64375L15.0984 6.675L11.925 13.875C10.5094 13.9125 9.375 15.075 9.375 16.5C9.375 17.9484 10.5516 19.125 12 19.125ZM9 7.5C9 7.10218 8.84196 6.72064 8.56066 6.43934C8.27936 6.15804 7.89782 6 7.5 6C7.10218 6 6.72064 6.15804 6.43934 6.43934C6.15804 6.72064 6 7.10218 6 7.5C6 7.89782 6.15804 8.27936 6.43934 8.56066C6.72064 8.84196 7.10218 9 7.5 9C7.89782 9 8.27936 8.84196 8.56066 8.56066C8.84196 8.27936 9 7.89782 9 7.5ZM5.25 13.5C5.64782 13.5 6.02936 13.342 6.31066 13.0607C6.59196 12.7794 6.75 12.3978 6.75 12C6.75 11.6022 6.59196 11.2206 6.31066 10.9393C6.02936 10.658 5.64782 10.5 5.25 10.5C4.85218 10.5 4.47064 10.658 4.18934 10.9393C3.90804 11.2206 3.75 11.6022 3.75 12C3.75 12.3978 3.90804 12.7794 4.18934 13.0607C4.47064 13.342 4.85218 13.5 5.25 13.5ZM20.25 12C20.25 11.6022 20.092 11.2206 19.8107 10.9393C19.5294 10.658 19.1478 10.5 18.75 10.5C18.3522 10.5 17.9706 10.658 17.6893 10.9393C17.408 11.2206 17.25 11.6022 17.25 12C17.25 12.3978 17.408 12.7794 17.6893 13.0607C17.9706 13.342 18.3522 13.5 18.75 13.5C19.1478 13.5 19.5294 13.342 19.8107 13.0607C20.092 12.7794 20.25 12.3978 20.25 12Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function V3(s){let e,r;const n=[s[0]];let a={$$slots:{default:[H3]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class v3 extends p{constructor(e){super(),v(this,e,p3,V3,V,{})}}function M3(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"fill-rule","evenodd"),u(e,"clip-rule","evenodd"),u(e,"d","M10 5C10 3.89543 10.8954 3 12 3C13.1046 3 14 3.89543 14 5C14 6.10457 13.1046 7 12 7C10.8954 7 10 6.10457 10 5ZM10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12ZM10 19C10 17.8954 10.8954 17 12 17C13.1046 17 14 17.8954 14 19C14 20.1046 13.1046 21 12 21C10.8954 21 10 20.1046 10 19Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Z3(s){let e,r;const n=[s[0]];let a={$$slots:{default:[M3]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class E3 extends p{constructor(e){super(),v(this,e,w3,Z3,V,{})}}function b3(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M1.284 20.25 0 22.5H24l-1.284-2.25-9.422-16.481L12 1.5l-1.294 2.269L1.284 20.25Zm18.84 0H3.876L12 6.033l8.123 14.217Zm-9.249-6.375V15h2.25V9.75h-2.25v4.125Zm2.25 4.875V16.5h-2.25v2.25h2.25Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function k3(s){let e,r;const n=[s[0]];let a={$$slots:{default:[b3]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class j3 extends p{constructor(e){super(),v(this,e,S3,k3,V,{})}}function A3(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"fill-rule","evenodd"),u(e,"clip-rule","evenodd"),u(e,"d","M12 3.16663C6.47715 3.16663 2 7.64377 2 13.1666H0C0 6.53919 5.37258 1.16663 12 1.16663C18.6274 1.16663 24 6.53919 24 13.1666H22C22 7.64377 17.5229 3.16663 12 3.16663ZM18.3333 13.1666C18.3333 9.66881 15.4978 6.83328 12 6.83328V4.83328C16.6024 4.83328 20.3333 8.56423 20.3333 13.1666C20.3333 17.769 16.6024 21.4999 12 21.4999C7.39763 21.4999 3.66667 17.769 3.66667 13.1666H5.66667C5.66667 16.6644 8.50219 19.4999 12 19.4999C15.4978 19.4999 18.3333 16.6644 18.3333 13.1666ZM12 10.4999C10.5272 10.4999 9.33333 11.6938 9.33333 13.1666C9.33333 14.6394 10.5272 15.8333 12 15.8333C13.4728 15.8333 14.6667 14.6394 14.6667 13.1666C14.6667 11.6938 13.4728 10.4999 12 10.4999ZM7.33333 13.1666C7.33333 10.5893 9.42267 8.49994 12 8.49994C14.5773 8.49994 16.6667 10.5893 16.6667 13.1666C16.6667 15.7439 14.5773 17.8333 12 17.8333C9.42267 17.8333 7.33333 15.7439 7.33333 13.1666Z"),u(e,"fill","currentColor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function F3(s){let e,r;const n=[s[0]];let a={$$slots:{default:[A3]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class P3 extends p{constructor(e){super(),v(this,e,B3,F3,V,{})}}const G3={activity:L1,add:_1,archives:v1,"arrow-down":E1,"arrow-left":j1,"arrow-up":q1,"arrow-right":P1,ascending:N1,astronaut:J1,"batch-operation":X1,book:t2,bookmark:l2,"calendar-plus":u2,calendar:g2,canceled:C2,chart:V2,checkmark:Y,"chevron-down":b2,"chevron-left":A2,"chevron-right":G2,"chevron-up":O2,"chevron-selector-vertical":D2,clock:K2,close:x2,"comet-solid":r5,comet:a5,compact:o5,"converter-down":$5,"converter-up":m5,copy:p5,descending:w5,download:B5,"dollar-badge":S5,error:R5,exit:z5,"external-link":W5,"eye-hide":Q5,"eye-show":ee,feather:se,feed:fe,"feedback-circle":he,feedback:de,"file-import":He,"file-upload":Me,filter:Ae,"filter-solid":be,"fire-extinguisher":Ge,github:De,graph:Oe,hyphen:Ke,import:xe,info:rt,"inverted-checkmark":ut,json:gt,keyboard:Ct,labs:Vt,"lightning-bolt":Zt,link:kt,lock:Ft,logout:Tt,marker:It,merge:Ut,moon:Yt,"namespace-switcher":yt,namespace:n0,nexus:c0,"pin-filled":i0,pin:L0,regions:_0,relationship:v0,retention:E0,retry:j0,robot:P0,"rocket-ship":q0,schedules:N0,search:J0,settings:X0,signal:t7,sliders:l7,spinner:g7,"star-empty":C7,"star-filled":V7,success:Y,sun:k7,summary:Z7,support:F7,"spinner-solid":u7,"temporal-logo":T7,terminal:I7,timeline:U7,"transcoder-error":Y7,"transcoder-on":n3,"transcoder-off":y7,trash:c3,tutorial:i3,update:L3,upload:_3,usage:v3,"vertical-ellipsis":E3,warning:j3,workflow:P3};function Q(s){let e,r,n;const a=[{width:s[0]},{height:s[1]},{title:s[2]},{class:s[4].class},s[5]];var t=s[3];function l(c){let j={};for(let S=0;S{H(k,1)}),x()}t?(e=K(t,l()),m(e.$$.fragment),d(e.$$.fragment,1),_(e,r.parentNode,r)):e=null}else t&&e.$set(S)},i(c){n||(e&&d(e.$$.fragment,c),n=!0)},o(c){e&&C(e.$$.fragment,c),n=!1},d(c){c&&o(r),e&&H(e,c)}}}function T3(s){let e,r,n=s[3]&&Q(s);return{c(){n&&n.c(),e=O()},l(a){n&&n.l(a),e=O()},m(a,t){n&&n.m(a,t),h(a,e,t),r=!0},p(a,[t]){a[3]?n?(n.p(a,t),t&8&&d(n,1)):(n=Q(a),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(X(),C(n,1,1,()=>{n=null}),x())},i(a){r||(d(n),r=!0)},o(a){C(n),r=!1},d(a){a&&o(e),n&&n.d(a)}}}function R3(s,e,r){let n;const a=["name","width","height","title"];let t=z(e,a),{name:l}=e,{width:c=16}=e,{height:j=16}=e,{title:S=""}=e;return s.$$set=k=>{r(4,e=f(f({},e),i(k))),r(5,t=z(e,a)),"name"in k&&r(6,l=k.name),"width"in k&&r(0,c=k.width),"height"in k&&r(1,j=k.height),"title"in k&&r(2,S=k.title)},s.$$.update=()=>{s.$$.dirty&64&&r(3,n=G3[l])},e=i(e),[c,j,S,n,e,t,l]}class N3 extends p{constructor(e){super(),v(this,e,R3,T3,V,{name:6,width:0,height:1,title:2})}}export{N3 as I,g7 as S,lt as c,nt as p}; +import{s as V,a as r1,z as f,J as g,t as n1,K as $,k as L,l as s1,f as o,av as J,i as h,n as I,q as l1,u as a1,g as c1,e as f1,E as z,A as i,m as u,v as b,b as G,d as T,C as D,I as N,x as O,a3 as K}from"./scheduler.pPC3woXQ.js";import{S as p,i as v,t as d,b as C,c as m,a as Z,m as _,d as H,g as X,e as x}from"./index.Z3Qqxacm.js";import{g as M,a as w}from"./spread.rEx3vLA9.js";import{g as u1}from"./_commonjsHelpers.4gQjN7DL.js";function o1(s){let e,r,n,a,t,l;const c=s[6].default,j=r1(c,s,s[5],null);let S=[{width:s[1]},{height:s[2]},{viewBox:"0 0 24 24"},{fill:"none"},{xmlns:"http://www.w3.org/2000/svg"},{class:a=s[3].class},{role:"img"},{"aria-hidden":t=!s[0]},s[4]],k={};for(let A=0;A{r(3,e=f(f({},e),i(k))),r(4,a=z(e,n)),"title"in k&&r(0,c=k.title),"width"in k&&r(1,j=k.width),"height"in k&&r(2,S=k.height),"$$scope"in k&&r(5,l=k.$$scope)},e=i(e),[c,j,S,e,a,l,t]}class E extends p{constructor(e){super(),v(this,e,i1,o1,V,{title:0,width:1,height:2})}}function h1(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M11.0031 18.8625L12 20L12.9969 18.8625L19 12L12.9969 5.1375L12 4L11.0031 5.1375L5 12L11.0031 18.8625ZM12 17.7219L6.99375 12L12 6.27813L17.0063 12L12 17.7219Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function g1(s){let e,r;const n=[s[0]];let a={$$slots:{default:[h1]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class L1 extends p{constructor(e){super(),v(this,e,$1,g1,V,{})}}function d1(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"fill-rule","evenodd"),u(e,"clip-rule","evenodd"),u(e,"d","M13.25 13.25V22H10.75V13.25H2V10.75H10.75V2H13.25V10.75H22V13.25H13.25Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function C1(s){let e,r;const n=[s[0]];let a={$$slots:{default:[d1]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class _1 extends p{constructor(e){super(),v(this,e,m1,C1,V,{})}}function H1(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M21.75 3.75H2.25V6H3.75H20.25H21.75V3.75ZM22.5 8.25H21.75H20.25H3.75H2.25H1.5H0V6V3.75V1.5H2.25H21.75H24V3.75V6V8.25H22.5ZM7.5 10.5H8.625H15.375H16.5V12.75H15.375H8.625H7.5V10.5ZM20.25 9.75H22.5V20.25V22.5H20.25H3.75H1.5V20.25V9.75H3.75V20.25H20.25V9.75Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function V1(s){let e,r;const n=[s[0]];let a={$$slots:{default:[H1]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class v1 extends p{constructor(e){super(),v(this,e,p1,V1,V,{})}}function M1(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0,transform:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12.7969 0.796875L12 0L11.2031 0.796875L4.82812 7.17188L4.03125 7.96875L5.625 9.55781L6.42188 8.76094L10.875 4.30781V22.875V24H13.125V22.875V4.30781L17.5781 8.76094L18.375 9.55781L19.9641 7.96875L19.1672 7.17188L12.7969 0.796875Z"),u(e,"fill","currentcolor"),u(e,"transform","rotate(180 11.75 11.75)")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Z1(s){let e,r;const n=[s[0]];let a={$$slots:{default:[M1]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class E1 extends p{constructor(e){super(),v(this,e,w1,Z1,V,{})}}function b1(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M0.796875 11.2031L0 12L0.796875 12.7969L7.17188 19.1719L7.96875 19.9688L9.55781 18.375L8.76094 17.5781L4.30781 13.125H22.875H24V10.875H22.875H4.30781L8.76094 6.42189L9.55781 5.62501L7.96406 4.03595L7.16719 4.83282L0.796875 11.2031Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function k1(s){let e,r;const n=[s[0]];let a={$$slots:{default:[b1]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class j1 extends p{constructor(e){super(),v(this,e,S1,k1,V,{})}}function A1(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M23.2031 12.7969L24 12L23.2031 11.2031L16.8281 4.82812L16.0312 4.03125L14.4422 5.625L15.2391 6.42188L19.6922 10.875H1.125H0V13.125H1.125H19.6922L15.2391 17.5781L14.4422 18.375L16.0312 19.9641L16.8281 19.1672L23.2031 12.7969Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function F1(s){let e,r;const n=[s[0]];let a={$$slots:{default:[A1]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class P1 extends p{constructor(e){super(),v(this,e,B1,F1,V,{})}}function G1(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12.7969 0.796875L12 0L11.2031 0.796875L4.82812 7.17188L4.03125 7.96875L5.625 9.55781L6.42188 8.76094L10.875 4.30781V22.875V24H13.125V22.875V4.30781L17.5781 8.76094L18.375 9.55781L19.9641 7.96875L19.1672 7.17188L12.7969 0.796875Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function T1(s){let e,r;const n=[s[0]];let a={$$slots:{default:[G1]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class q1 extends p{constructor(e){super(),v(this,e,R1,T1,V,{})}}function D1(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M4.6887 3.68487L5.3947 3L6.10071 3.68487L10.0876 7.55237L10.7936 8.23724L9.38155 9.60295L8.67555 8.91808L6.39142 6.70233V20.0331V21H4.39799V20.0331V6.70233L2.11386 8.91808L1.40786 9.60295L0 8.23724L0.706004 7.55237L4.69285 3.68487H4.6887ZM13.0362 3.59624H15.0296H16.0263V5.52999H15.0296H13.0362H12.0395V3.59624H13.0362ZM13.0362 8.75291H17.6875H18.6842V10.6867H17.6875H13.0362H12.0395V8.75291H13.0362ZM13.0362 13.9096H20.3454H21.3421V15.8433H20.3454H13.0362H12.0395V13.9096H13.0362ZM13.0362 19.0662H23.0033H24V21H23.0033H13.0362H12.0395V19.0662H13.0362Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function I1(s){let e,r;const n=[s[0]];let a={$$slots:{default:[D1]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class N1 extends p{constructor(e){super(),v(this,e,z1,I1,V,{})}}function O1(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M5.25 9C5.25 8.11358 5.42459 7.23583 5.76381 6.41689C6.10303 5.59794 6.60023 4.85382 7.22703 4.22703C7.85382 3.60023 8.59794 3.10303 9.41689 2.76381C10.2358 2.42459 11.1136 2.25 12 2.25C12.8864 2.25 13.7642 2.42459 14.5831 2.76381C15.4021 3.10303 16.1462 3.60023 16.773 4.22703C17.3998 4.85382 17.897 5.59794 18.2362 6.41689C18.5754 7.23583 18.75 8.11358 18.75 9C18.75 9.88642 18.5754 10.7642 18.2362 11.5831C17.897 12.4021 17.3998 13.1462 16.773 13.773C16.1462 14.3998 15.4021 14.897 14.5831 15.2362C13.7642 15.5754 12.8864 15.75 12 15.75C11.1136 15.75 10.2358 15.5754 9.41689 15.2362C8.59794 14.897 7.85382 14.3998 7.22703 13.773C6.60023 13.1462 6.10303 12.4021 5.76381 11.5831C5.42459 10.7642 5.25 9.88642 5.25 9ZM20.4891 6C19.2516 2.50313 15.9187 0 12 0C8.08125 0 4.74844 2.50313 3.51094 6H2.25V12H3.51094C3.79688 12.8109 4.19531 13.5656 4.6875 14.25H3.75L2.02031 21.75L1.5 24H3.81094H6.75H9V21.75V21H10.5V21.75V24H17.25H20.1891H22.5L21.9797 21.75L20.25 14.25H19.3125C19.8047 13.5656 20.2031 12.8109 20.4891 12H21.75V6H20.4891ZM17.25 19.5H6.75V21.75H4.32656L5.54062 16.5H7.02188C8.44688 17.4469 10.1578 18 12 18C13.8422 18 15.5531 17.4469 16.9781 16.5H18.4594L19.6688 21.75H17.25V19.5ZM12.75 13.5C15.2344 13.5 17.25 11.4844 17.25 9V7.5L15.75 6H8.25L6.75 7.5V9C6.75 11.4844 8.76562 13.5 11.25 13.5H12.75ZM10.5 7.5L11.25 9L12.75 9.75L11.25 10.5L10.5 12L9.75 10.5L8.25 9.75L9.75 9L10.5 7.5ZM13.5 21.75C13.5 21.5511 13.579 21.3603 13.7197 21.2197C13.8603 21.079 14.0511 21 14.25 21C14.4489 21 14.6397 21.079 14.7803 21.2197C14.921 21.3603 15 21.5511 15 21.75C15 21.9489 14.921 22.1397 14.7803 22.2803C14.6397 22.421 14.4489 22.5 14.25 22.5C14.0511 22.5 13.8603 22.421 13.7197 22.2803C13.579 22.1397 13.5 21.9489 13.5 21.75Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function U1(s){let e,r;const n=[s[0]];let a={$$slots:{default:[O1]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class J1 extends p{constructor(e){super(),v(this,e,W1,U1,V,{})}}function K1(s){let e,r,n,a,t;return{c(){e=g("path"),r=G(),n=g("path"),a=G(),t=g("path"),this.h()},l(l){e=$(l,"path",{d:!0,fill:!0}),L(e).forEach(o),r=T(l),n=$(l,"path",{d:!0,fill:!0,style:!0}),L(n).forEach(o),a=T(l),t=$(l,"path",{d:!0,fill:!0,style:!0}),L(t).forEach(o),this.h()},h(){u(e,"d","M12 9.53906L4.925 6L12 2.46094L19.075 6L12 9.53906ZM21.5375 4.76719L12 0L2.4625 4.76719L0 6L2.4625 7.23281L12 12L21.5375 7.23281L24 6L21.5375 4.76719Z"),u(e,"fill","currentcolor"),u(n,"d","M4.35833 9.81561L6.82083 11.0484V11.0531L4.925 12L12 15.5391L19.075 12L17.1792 11.0531L19.6417 9.8203L21.5375 10.7672L24 12L21.5375 13.2328L12 18L2.4625 13.2328L0 12L2.4625 10.7672L4.35833 9.81561Z"),u(n,"fill","currentcolor"),D(n,"animation-duration",s[1]+"ms"),D(n,"animation-iteration-count","infinite"),N(n,"animate-pulse",s[0]),u(t,"d","M2.4625 16.7672L4.35833 15.8203L6.82083 17.0531L4.925 18L12 21.5391L19.075 18L17.1792 17.0531L19.6417 15.8203L21.5375 16.7672L24 18L21.5375 19.2328L12 24L2.4625 19.2328L0 18L2.4625 16.7672Z"),u(t,"fill","currentcolor"),D(t,"animation-duration",s[1]+"ms"),D(t,"animation-iteration-count","infinite"),D(t,"animation-direction","reverse"),N(t,"animate-pulse",s[0])},m(l,c){h(l,e,c),h(l,r,c),h(l,n,c),h(l,a,c),h(l,t,c)},p(l,c){c&2&&D(n,"animation-duration",l[1]+"ms"),c&1&&N(n,"animate-pulse",l[0]),c&2&&D(t,"animation-duration",l[1]+"ms"),c&1&&N(t,"animate-pulse",l[0])},d(l){l&&(o(e),o(r),o(n),o(a),o(t))}}}function Y1(s){let e,r;const n=[s[2]];let a={$$slots:{default:[K1]},$$scope:{ctx:s}};for(let t=0;t{e=f(f({},e),i(c)),r(2,a=z(e,n)),"animate"in c&&r(0,t=c.animate),"duration"in c&&r(1,l=c.duration)},[t,l,a]}class X1 extends p{constructor(e){super(),v(this,e,Q1,Y1,V,{animate:0,duration:1})}}function x1(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M2 4.125C2 1.84688 3.84688 0 6.125 0H21.875H23V1.125V17.625V18.75H21.875H21.5V21.75H21.875H23V24H21.875H5.75C3.67812 24 2 22.3219 2 20.25C2 20.1234 2.00469 19.9969 2.01875 19.875H2V4.125ZM4.25 20.25C4.25 21.0797 4.92031 21.75 5.75 21.75H19.25V18.75H5.75C4.92031 18.75 4.25 19.4203 4.25 20.25ZM4.25 16.8141C4.70938 16.6125 5.21563 16.5 5.75 16.5H20.75V2.25H6.125C5.08906 2.25 4.25 3.08906 4.25 4.125V16.8141ZM9.5 5.25L10.25 3.75L11 5.25L12.5 6L11 6.75L10.25 8.25L9.5 6.75L8 6L9.5 5.25ZM14.375 10.125L15.5 7.5L16.625 10.125L19.25 11.25L16.625 12.375L15.5 15L14.375 12.375L11.75 11.25L14.375 10.125Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function y1(s){let e,r;const n=[s[0]];let a={$$slots:{default:[x1]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class t2 extends p{constructor(e){super(),v(this,e,e2,y1,V,{})}}function r2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12 16.1437L13.1344 16.8047L18.75 20.0812V2.25H5.25V20.0812L10.8656 16.8047L12 16.1437ZM5.25 22.6875L3 24V21.3937V2.25V0H5.25H18.75H21V2.25V21.3937V24L18.75 22.6875L12 18.75L5.25 22.6875Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function n2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[r2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class l2 extends p{constructor(e){super(),v(this,e,s2,n2,V,{})}}function a2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M8.625 1.125V0H6.375V1.125V3H1.5V6.75V9V21.75V24H3.75H20.25H22.5V21.75V9V6.75V3H17.625V1.125V0H15.375V1.125V3H8.625V1.125ZM3.75 9H20.25V21.75H3.75V9ZM13.125 10.875H10.875V12V14.25H8.625H7.5V16.5H8.625H10.875V18.75V19.875H13.125V18.75V16.5H15.375H16.5V14.25H15.375H13.125V12V10.875Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function c2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[a2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class u2 extends p{constructor(e){super(),v(this,e,f2,c2,V,{})}}function o2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M8.625 1.125V0H6.375V1.125V3H1.5V6.75V9V21.75V24H3.75H20.25H22.5V21.75V9V6.75V3H17.625V1.125V0H15.375V1.125V3H8.625V1.125ZM3.75 9H20.25V21.75H3.75V9Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function i2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[o2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class g2 extends p{constructor(e){super(),v(this,e,h2,i2,V,{})}}function $2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M18.0516 19.6453L4.35469 5.94844C3.0375 7.60781 2.25 9.7125 2.25 12C2.25 17.3859 6.61406 21.75 12 21.75C14.2875 21.75 16.3922 20.9625 18.0516 19.6453ZM19.6406 18.0563C20.9625 16.3922 21.75 14.2875 21.75 12C21.75 6.61406 17.3859 2.25 12 2.25C9.7125 2.25 7.60781 3.0375 5.94844 4.35469L19.6453 18.0516L19.6406 18.0563ZM0 12C0 8.8174 1.26428 5.76516 3.51472 3.51472C5.76516 1.26428 8.8174 0 12 0C15.1826 0 18.2348 1.26428 20.4853 3.51472C22.7357 5.76516 24 8.8174 24 12C24 15.1826 22.7357 18.2348 20.4853 20.4853C18.2348 22.7357 15.1826 24 12 24C8.8174 24 5.76516 22.7357 3.51472 20.4853C1.26428 18.2348 0 15.1826 0 12Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function L2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[$2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class C2 extends p{constructor(e){super(),v(this,e,d2,L2,V,{})}}function m2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M2.25 1.5V2.625V20.25H22.875H24V22.5H22.875H1.125H0V21.375V2.625V1.5H2.25ZM9 10.5V11.625V15.375V16.5H6.75V15.375V11.625V10.5H9ZM13.5 7.125V15.375V16.5H11.25V15.375V7.125V6H13.5V7.125ZM18 9V10.125V15.375V16.5H15.75V15.375V10.125V9H18ZM22.5 4.125V15.375V16.5H20.25V15.375V4.125V3H22.5V4.125Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function _2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[m2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class V2 extends p{constructor(e){super(),v(this,e,H2,_2,V,{})}}function p2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M22.5 6.09375L21.7031 6.89062L9.82031 18.7125L9.02813 19.5047L8.23594 18.7125L2.29688 12.8016L1.5 12.0094L3.08906 10.4156L3.88594 11.2078L9.02813 16.3266L20.1141 5.29219L20.9109 4.5L22.5 6.09375Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function v2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[p2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Y extends p{constructor(e){super(),v(this,e,M2,v2,V,{})}}function Z2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12 19.5891L12.7968 18.7922L21.7968 9.79688L22.5937 9L21 7.41094L20.2031 8.20781L12 16.4109L3.79683 8.20312L2.99995 7.40625L1.41089 9L2.20776 9.79688L11.2031 18.7969L12 19.5938V19.5891Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function w2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Z2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class b2 extends p{constructor(e){super(),v(this,e,E2,w2,V,{})}}function k2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M4.41094 12L5.20781 11.2031L14.2031 2.20312L15 1.40625L16.5891 3L15.7969 3.79688L7.58906 12L15.7969 20.2031L16.5938 21L15 22.5891L14.2031 21.7922L5.20312 12.7969L4.40625 12H4.41094Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function S2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[k2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class A2 extends p{constructor(e){super(),v(this,e,j2,S2,V,{})}}function F2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M19.5891 12L18.7922 12.7969L9.79688 21.7969L9 22.5938L7.41094 21L8.20781 20.2031L16.4109 12L8.20312 3.79689L7.40625 3.00001L9 1.41095L9.79688 2.20782L18.7969 11.2031L19.5938 12H19.5891Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function B2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[F2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class G2 extends p{constructor(e){super(),v(this,e,P2,B2,V,{})}}function T2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M7 15L12 20L17 15M7 9L12 4L17 9"),u(e,"stroke","currentcolor"),u(e,"stroke-width","1"),u(e,"stroke-linecap","round"),u(e,"stroke-linejoin","round")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function R2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[T2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class D2 extends p{constructor(e){super(),v(this,e,q2,R2,V,{})}}function I2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12 7.41094L22.5937 18L21 19.5891L12 10.5891L2.99995 19.5938L1.41089 18L12 7.40625V7.41094Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function z2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[I2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class O2 extends p{constructor(e){super(),v(this,e,N2,z2,V,{})}}function U2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M21.75 12C21.75 14.5859 20.7228 17.0658 18.8943 18.8943C17.0658 20.7228 14.5859 21.75 12 21.75C9.41414 21.75 6.93419 20.7228 5.10571 18.8943C3.27723 17.0658 2.25 14.5859 2.25 12C2.25 9.41414 3.27723 6.93419 5.10571 5.10571C6.93419 3.27723 9.41414 2.25 12 2.25C14.5859 2.25 17.0658 3.27723 18.8943 5.10571C20.7228 6.93419 21.75 9.41414 21.75 12ZM0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12ZM10.875 5.625V12V12.6L11.3766 12.9328L15.8766 15.9328L16.8141 16.5563L18.0609 14.6859L17.1234 14.0625L13.125 11.4V5.625V4.5H10.875V5.625Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function W2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[U2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class K2 extends p{constructor(e){super(),v(this,e,J2,W2,V,{})}}function Y2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M19.1719 6.42188L19.9688 5.625L18.375 4.03594L17.5781 4.83281L12 10.4109L6.42188 4.82812L5.625 4.03125L4.03594 5.625L4.83281 6.42188L10.4109 12L4.82812 17.5781L4.03125 18.375L5.625 19.9641L6.42188 19.1672L12 13.5891L17.5781 19.1719L18.375 19.9688L19.9641 18.375L19.1672 17.5781L13.5891 12L19.1719 6.42188Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Q2(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Y2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class x2 extends p{constructor(e){super(),v(this,e,X2,Q2,V,{})}}function y2(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M19.9688 4.65625C19.5938 5.875 18.9062 8.15625 18.0625 10.5312C18.2812 10.5938 18.4688 10.6562 18.625 10.7188C18.7812 10.75 18.9062 10.8438 18.9375 11C19 11.125 19 11.2812 18.9375 11.4375C18.25 12.75 16.3438 16.1875 14.4688 18.125C14.4375 18.1562 14.4062 18.1875 14.375 18.2188C12 20.625 8.15625 20.625 5.78125 18.25C3.40625 15.8438 3.40625 12 5.78125 9.625C5.8125 9.59375 5.84375 9.5625 5.875 9.53125C7.8125 7.65625 11.25 5.75 12.5625 5.0625C12.6875 5 12.8438 5 12.9688 5.0625C13.125 5.125 13.2188 5.21875 13.25 5.375C13.3125 5.53125 13.375 5.71875 13.4375 5.9375C15.8125 5.09375 18.0938 4.40625 19.3125 4.03125C19.4688 3.96875 19.6875 4.03125 19.8125 4.15625C19.9688 4.28125 20 4.5 19.9688 4.65625ZM13.9688 14C13.9688 11.7812 12.1562 10 9.96875 10C7.75 10 5.96875 11.7812 5.96875 14C5.96875 16.1875 7.75 18 9.96875 18C12.1875 18 13.9688 16.2188 13.9688 14ZM9.96875 13C9.96875 13.5312 9.5 14 8.96875 14C8.40625 14 7.96875 13.5312 7.96875 13C7.96875 12.4375 8.40625 12 8.96875 12C9.21875 12 9.46875 12.0938 9.65625 12.2812C9.84375 12.4688 9.96875 12.75 9.96875 13ZM10.9688 15.5C10.9688 15.75 10.75 16 10.4688 16C10.2188 16 9.96875 15.75 9.96875 15.5C9.96875 15.2188 10.2188 15 10.4688 15C10.75 15 10.9688 15.25 10.9688 15.5Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function e5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[y2]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class r5 extends p{constructor(e){super(),v(this,e,t5,e5,V,{})}}function n5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M19.9375 5C19.625 6.03125 18.875 8.40625 18.0938 10.25C18.1562 10.2812 18.25 10.2812 18.3438 10.3125C18.5938 10.4062 18.8125 10.5938 18.9375 10.875C19.0625 11.125 19.0312 11.4375 18.9062 11.6875C18.1875 13.0312 16.375 16.375 14.5625 18.1875C12.125 20.625 8.1875 20.625 5.8125 18.1875C3.375 15.7812 3.375 11.8438 5.8125 9.4375C7.625 7.59375 10.9688 5.78125 12.3125 5.0625C12.5625 4.9375 12.875 4.90625 13.125 5.03125C13.4062 5.15625 13.5625 5.375 13.6875 5.65625C13.7188 5.71875 13.7188 5.8125 13.75 5.875C15.5938 5.09375 17.9688 4.34375 19 4.0625C19.25 3.96875 19.5625 4.03125 19.75 4.25C19.9688 4.4375 20.0312 4.75 19.9375 5ZM18.875 5.125C17.5938 5.53125 15.25 6.28125 13.6562 7.03125L13.125 7.28125C13.125 7.28125 12.7812 6.15625 12.7188 5.9375C11.4688 6.625 8.21875 8.40625 6.5 10.125C4.46875 12.1562 4.46875 15.4688 6.5 17.5C8.53125 19.5312 11.8438 19.5312 13.875 17.5C15.5938 15.7812 17.375 12.5312 18.0312 11.2188C17.8438 11.1875 17.5938 11.125 17.2812 11.0312L16.7188 10.875L16.9688 10.3438C17.7188 8.75 18.4688 6.40625 18.875 5.125ZM14.2188 13.75C14.2188 15.9375 12.4375 17.7188 10.25 17.7188C8.09375 17.7188 6.28125 15.9375 6.28125 13.75C6.28125 11.5312 8.09375 9.75 10.25 9.75C12.4375 9.75 14.2188 11.5625 14.2188 13.75ZM13.2188 13.75C13.2188 12.0938 11.875 10.75 10.2188 10.75C8.5625 10.75 7.21875 12.0938 7.21875 13.75C7.21875 15.4062 8.5625 16.75 10.2188 16.75C11.875 16.75 13.2188 15.4062 13.2188 13.75ZM10.4688 12.75C10.4688 13.1562 10.1562 13.5 9.75 13.5C9.34375 13.5 9.03125 13.1562 9.03125 12.75C9.03125 12.3125 9.375 12 9.75 12C9.96875 12 10.1562 12.0625 10.25 12.2188C10.4062 12.375 10.4688 12.5625 10.4688 12.75ZM11.4688 15C11.4688 15.25 11.25 15.5 10.9688 15.5C10.7188 15.5 10.5 15.25 10.5 15C10.5 14.7188 10.7188 14.5 11 14.5C11.25 14.5312 11.4688 14.75 11.4688 15Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function s5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[n5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class a5 extends p{constructor(e){super(),v(this,e,l5,s5,V,{})}}function c5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"fill-rule","evenodd"),u(e,"clip-rule","evenodd"),u(e,"d","M3.44444 2.05554C2.6467 2.05554 2 2.70224 2 3.49999C2 4.29773 2.6467 4.94443 3.44444 4.94443C4.24218 4.94443 4.88888 4.29773 4.88888 3.49999C4.88888 2.70224 4.24218 2.05554 3.44444 2.05554ZM0 3.49999C5.96046e-08 1.59767 1.54212 0.0555419 3.44444 0.055542C5.34675 0.0555421 6.88888 1.59767 6.88888 3.49999C6.88888 5.05452 5.85907 6.36853 4.44445 6.79702L4.44448 11H6.25855C6.68704 9.58538 8.00105 8.55557 9.55558 8.55557C11.4579 8.55557 13 10.0977 13 12C13 13.9023 11.4579 15.4445 9.55558 15.4445C8.00105 15.4445 6.68704 14.4146 6.25855 13H4.4315L4.3465 19.5H6.1474C6.5759 18.0854 7.88991 17.0556 9.44444 17.0556C11.3468 17.0556 12.8889 18.5977 12.8889 20.5C12.8889 22.4023 11.3468 23.9444 9.44444 23.9444C7.88991 23.9444 6.5759 22.9146 6.1474 21.5H2.32018L2.44449 11.9935L2.44445 6.79703C1.02981 6.36853 0 5.05452 0 3.49999ZM24.0001 4.5H10.0001V2.5H24.0001V4.5ZM9.55558 10.5556C8.75784 10.5556 8.11115 11.2023 8.11115 12C8.11115 12.7978 8.75784 13.4445 9.55558 13.4445C10.3533 13.4445 11 12.7978 11 12C11 11.2023 10.3533 10.5556 9.55558 10.5556ZM24.0001 13H16.0001V11H24.0001V13ZM9.44444 19.0556C8.6467 19.0556 8 19.7023 8 20.5C8 21.2977 8.6467 21.9444 9.44444 21.9444C10.2422 21.9444 10.8889 21.2977 10.8889 20.5C10.8889 19.7023 10.2422 19.0556 9.44444 19.0556ZM24 21.5H16V19.5H24V21.5Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function f5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[c5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class o5 extends p{constructor(e){super(),v(this,e,u5,f5,V,{})}}function i5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M11.1818 23.0868L11.9976 24L12.8134 23.0868L20.1842 14.8362L21 13.923L19.3732 12.1021L18.5575 13.0152L13.1493 19.0636V1.28917V0H10.8459V1.28917V19.0582L5.44255 13.0098L4.62677 12.0967L3 13.923L3.81578 14.8362L11.1818 23.0868Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function h5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[i5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class $5 extends p{constructor(e){super(),v(this,e,g5,h5,V,{})}}function L5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12.8182 0.91316L12.0024 0L11.1866 0.91316L3.81578 9.16383L3 10.077L4.62677 11.8979L5.44255 10.9848L10.8507 4.93644V22.7108V24H13.1541V22.7108V4.93644L18.5575 10.9902L19.3732 11.9033L21 10.0824L20.1842 9.1692L12.8182 0.91316Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function d5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[L5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class m5 extends p{constructor(e){super(),v(this,e,C5,d5,V,{})}}function _5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M20.25 15.75H9.75V2.25H17.0672L20.25 5.43281V15.75ZM22.5 4.5L18 0H9.75H7.5V2.25V15.75V18H9.75H20.25H22.5V15.75V4.5ZM3.75 6H1.5V8.25V21.75V24H3.75H14.25H16.5V21.75V19.5H14.25V21.75H3.75V8.25H6V6H3.75Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function H5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[_5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class p5 extends p{constructor(e){super(),v(this,e,V5,H5,V,{})}}function v5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M4.6887 20.2687L5.3947 20.9518L6.10071 20.2687L10.0876 16.4116L10.7936 15.7286L9.38155 14.3665L8.67555 15.0496L6.39142 17.2594V3.96429V3H4.39799V3.96429V17.2594L2.11386 15.0496L1.40786 14.3665L0 15.7286L0.706004 16.4116L4.69285 20.2687H4.6887ZM13.0362 21H15.0296H16.0263V19.0714H15.0296H13.0362H12.0395V21H13.0362ZM13.0362 15.8571H17.6875H18.6842V13.9286H17.6875H13.0362H12.0395V15.8571H13.0362ZM13.0362 10.7143H20.3454H21.3421V8.78571H20.3454H13.0362H12.0395V10.7143H13.0362ZM13.0362 5.57143H23.0033H24V3.64286H23.0033H13.0362H12.0395V5.57143H13.0362Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function M5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[v5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class w5 extends p{constructor(e){super(),v(this,e,Z5,M5,V,{})}}function E5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{fill:!0,d:!0}),L(e).forEach(o),this.h()},h(){u(e,"fill","currentcolor"),u(e,"d","M 9.38907,3.82032 C 9.885945,2.88282 10.870305,2.25 12,2.25 c 1.129695,0 2.11407,0.63282 2.610945,1.57032 l 0.435855,0.824985 0.8907,-0.27186 c 1.0125,-0.309375 2.1609,-0.065625 2.95785,0.73593 0.7968,0.801555 1.0452,1.945305 0.7359,2.95782 L 19.3593,8.95782 20.17965,9.39375 c 0.9375,0.496875 1.57035,1.48125 1.57035,2.610945 0,1.12968 -0.63285,2.114055 -1.57035,2.61093 l -0.825,0.431175 0.27195,0.8907 c 0.3093,1.0125 0.06555,2.1609 -0.7359,2.95785 -0.8016,0.7968 -1.94535,1.0452 -2.95785,0.7359 l -0.8907,-0.27195 -0.4359,0.82035 C 14.109375,21.11715 13.125,21.75 11.995305,21.75 c -1.12968,0 -2.114055,-0.63285 -2.61093,-1.57035 L 8.953125,19.35465 8.0625,19.6266 C 7.05,19.9359 5.90157,19.69215 5.104695,18.8907 4.30782,18.0891 4.059375,16.95 4.36875,15.9375 L 4.640625,15.0468 3.82032,14.610945 C 2.88282,14.11407 2.25,13.129695 2.25,12 2.25,10.870305 2.88282,9.885945 3.82032,9.38907 L 4.645305,8.953125 4.373445,8.0625 C 4.06407,7.05 4.30782,5.90157 5.109375,5.104695 5.91093,4.30782 7.05,4.059375 8.0625,4.36875 L 8.953125,4.640625 Z M 12,0 C 10.317195,0 8.821875,0.796875 7.870305,2.034375 6.32343,1.83282 4.70157,2.325 3.510945,3.515625 2.32032,4.70625 1.828125,6.328125 2.02968,7.875 0.796875,8.821875 0,10.317195 0,12 0,13.682805 0.796875,15.1782 2.034375,16.12965 1.83282,17.6766 2.325,19.2984 3.515625,20.4891 4.70625,21.67965 6.328125,22.1718 7.875,21.97035 8.821875,23.2032 10.317195,24 12,24 c 1.682805,0 3.1782,-0.7968 4.12965,-2.0343 1.54695,0.20145 3.16875,-0.2907 4.35945,-1.4814 1.19055,-1.19055 1.6827,-2.8125 1.48125,-4.3593 C 23.2032,15.17805 24,13.682805 24,12 24,10.317195 23.2032,8.821875 21.9657,7.870305 22.16715,6.32343 21.675,4.70157 20.4843,3.510945 19.29375,2.32032 17.6718,1.828125 16.125,2.02968 15.17805,0.796875 13.682805,0 12,0 Z m 0.97968,6.998445 v -0.9375 h -1.875 v 0.9375 0.39843 c -0.314055,0.060945 -0.614055,0.15 -0.895305,0.276555 -0.754695,0.342195 -1.40157,0.975 -1.560945,1.884375 -0.089055,0.510945 -0.04218,1.00314 0.168765,1.448445 0.206235,0.435945 0.52968,0.74532 0.86718,0.975 0.590625,0.398445 1.37343,0.6375 1.9875,0.82032 l 0.10782,0.0328 c 0.721875,0.215625 1.232805,0.38907 1.556235,0.623445 0.14064,0.103125 0.20157,0.1875 0.229695,0.25311 0.02812,0.06095 0.05625,0.18282 0.01875,0.40782 -0.0375,0.22032 -0.164055,0.403125 -0.478125,0.534375 C 12.76407,14.798445 12.22968,14.86407 11.55,14.76093 11.22657,14.70937 10.659375,14.5125 10.1625,14.34375 10.05,14.30625 9.94218,14.26875 9.839055,14.235945 L 8.94843,13.940625 8.35782,15.7218 9.248445,16.01715 c 0.06561,0.02355 0.145305,0.04695 0.234375,0.07965 0.43593,0.15015 1.124985,0.38445 1.62186,0.4875 v 0.4173 0.9375 h 1.875 v -0.9375 -0.375 c 0.304695,-0.0516 0.59532,-0.13125 0.867195,-0.24855 0.79218,-0.3375 1.420275,-0.98895 1.584375,-1.94055 0.0891,-0.525 0.0516,-1.021875 -0.14535,-1.471875 -0.1968,-0.45 -0.5109,-0.778125 -0.8484,-1.021875 -0.61875,-0.45 -1.44375,-0.69843 -2.08125,-0.890625 l -0.0375,-0.0094 C 11.5875,10.82342 11.067195,10.65935 10.734375,10.43435 c -0.14532,-0.09844 -0.20157,-0.17343 -0.225,-0.225 -0.01875,-0.04218 -0.05157,-0.13125 -0.01407,-0.323445 0.02345,-0.145305 0.135945,-0.3375 0.487515,-0.49686 0.35625,-0.159375 0.895305,-0.24375 1.551555,-0.140625 0.22968,0.0375 0.9375,0.17343 1.13907,0.22968 L 14.578125,9.71717 15.0609,7.9031 14.15625,7.65467 C 13.90782,7.58907 13.3125,7.471875 12.97968,7.410945 Z")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function b5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[E5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class S5 extends p{constructor(e){super(),v(this,e,k5,b5,V,{})}}function j5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M13.125 1.125V0H10.875V1.125V13.7859L6.42188 9.33281L5.625 8.53594L4.03594 10.125L4.83281 10.9219L11.2031 17.2969L12 18.0938L12.7969 17.2969L19.1719 10.9219L19.9688 10.125L18.375 8.53594L17.5781 9.33281L13.125 13.7859V1.125ZM6.0375 14.25H2.25H0V16.5V21.75V24H2.25H21.75H24V21.75V16.5V14.25H21.75H17.9625L15.7125 16.5H21.75V21.75H2.25V16.5H8.2875L6.0375 14.25ZM20.25 19.125C20.25 18.8266 20.1315 18.5405 19.9205 18.3295C19.7095 18.1185 19.4234 18 19.125 18C18.8266 18 18.5405 18.1185 18.3295 18.3295C18.1185 18.5405 18 18.8266 18 19.125C18 19.4234 18.1185 19.7095 18.3295 19.9205C18.5405 20.1315 18.8266 20.25 19.125 20.25C19.4234 20.25 19.7095 20.1315 19.9205 19.9205C20.1315 19.7095 20.25 19.4234 20.25 19.125Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function A5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[j5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class B5 extends p{constructor(e){super(),v(this,e,F5,A5,V,{})}}function P5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12 2.25C14.5859 2.25 17.0658 3.27723 18.8943 5.10571C20.7228 6.93419 21.75 9.41414 21.75 12C21.75 14.5859 20.7228 17.0658 18.8943 18.8943C17.0658 20.7228 14.5859 21.75 12 21.75C9.41414 21.75 6.93419 20.7228 5.10571 18.8943C3.27723 17.0658 2.25 14.5859 2.25 12C2.25 9.41414 3.27723 6.93419 5.10571 5.10571C6.93419 3.27723 9.41414 2.25 12 2.25ZM12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24ZM13.125 6H10.875V7.125V12.375V13.5H13.125V12.375V7.125V6ZM10.875 17.25H13.125V15H10.875V17.25Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function G5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[P5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class R5 extends p{constructor(e){super(),v(this,e,T5,G5,V,{})}}function q5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M15.375 0H14.25V2.25H15.375H20.1609L9.70312 12.7031L8.90625 13.5L10.5 15.0891L11.2969 14.2922L21.75 3.83906V8.625V9.75H24V8.625V1.125V0H22.875H15.375ZM1.125 1.5H0V2.625V22.875V24H1.125H21.375H22.5V22.875V14.625V13.5H20.25V14.625V21.75H2.25V3.75H9.375H10.5V1.5H9.375H1.125Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function D5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[q5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class z5 extends p{constructor(e){super(),v(this,e,I5,D5,V,{})}}function N5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M14.25 4H13.5V5.5H14.25H17.4406L10.4688 12.4688L9.9375 13L11 14.0594L11.5312 13.5281L18.5 6.55938V9.75V10.5H20V9.75V4.75V4H19.25H14.25ZM4.75 5H4V5.75V19.25V20H4.75H18.25H19V19.25V13.75V13H17.5V13.75V18.5H5.5V6.5H10.25H11V5H10.25H4.75Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function O5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[N5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class W5 extends p{constructor(e){super(),v(this,e,U5,O5,V,{})}}function J5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M1.815 3.517L1.1025 3L0 4.33294L0.7125 4.84994L22.1812 20.483L22.8937 21L23.9962 19.6671L23.2837 19.1501L19.65 16.5053C21.2212 14.9578 22.2825 13.2028 22.8 12C21.675 9.3728 17.94 4.12192 12 4.12192C9.49125 4.12192 7.38 5.05744 5.68875 6.33763L1.815 3.517ZM7.155 7.4068C8.535 6.44314 10.155 5.81008 12 5.81008C14.3625 5.81008 16.3575 6.8476 17.9587 8.29308C19.2937 9.49941 20.265 10.9132 20.8312 12C20.3025 13.0164 19.4212 14.3142 18.2212 15.4642L16.275 14.0469C16.6087 13.4314 16.8 12.7386 16.8 12C16.8 9.51348 14.6512 7.49824 12 7.49824C11.6775 7.49824 11.3625 7.52638 11.0587 7.58617C10.215 7.74443 9.45 8.1102 8.8275 8.62368L7.155 7.4068ZM14.8125 12.9812L11.73 10.7374L11.4112 9.23916C11.6025 9.20399 11.7975 9.1864 12 9.1864C13.6575 9.1864 15 10.4455 15 12C15 12.3447 14.9325 12.6753 14.8125 12.9812ZM16.6837 18.7034L15.1237 17.5533C14.1712 17.9543 13.1287 18.1899 12 18.1899C9.63375 18.1899 7.6425 17.1524 6.04125 15.7069C4.71 14.5041 3.73875 13.0868 3.16875 12C3.51 11.3423 4.00125 10.5686 4.6275 9.79132L3.21375 8.74678C2.2575 9.92849 1.57875 11.1137 1.2 12C2.325 14.6272 6.06 19.8781 12 19.8781C13.7587 19.8781 15.3225 19.4174 16.6837 18.7034ZM13.4325 16.3013L11.325 14.7433C10.4437 14.5533 9.70875 13.9977 9.31125 13.2556L7.2075 11.7011C7.2 11.7995 7.19625 11.898 7.19625 12C7.19625 14.4865 9.345 16.5018 11.9962 16.5018C12.495 16.5018 12.975 16.4314 13.4287 16.2978L13.4325 16.3013Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function K5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[J5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Q5 extends p{constructor(e){super(),v(this,e,Y5,K5,V,{})}}function X5(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M5.37917 16.2348C3.9 14.8607 2.82083 13.2415 2.1875 12C2.81667 10.7585 3.89583 9.13929 5.37917 7.76518C7.15833 6.11384 9.37083 4.92857 12 4.92857C14.6292 4.92857 16.8417 6.11384 18.6208 7.76518C20.1042 9.1433 21.1833 10.7585 21.8125 12C21.1833 13.2415 20.1042 14.8607 18.6208 16.2348C16.8417 17.8862 14.6292 19.0714 12 19.0714C9.37083 19.0714 7.15833 17.8862 5.37917 16.2348ZM12 21C18.6 21 22.75 15.0013 24 12C22.75 8.99866 18.6 3 12 3C5.4 3 1.25 8.99866 0 12C1.25 15.0013 5.4 21 12 21ZM12 15.2143C10.1583 15.2143 8.66667 13.7759 8.66667 12C8.66667 11.783 8.6875 11.5741 8.72917 11.3692L12 12L11.3458 8.84598C11.5583 8.8058 11.775 8.78571 12 8.78571C13.8417 8.78571 15.3333 10.2241 15.3333 12C15.3333 13.7759 13.8417 15.2143 12 15.2143ZM6.66667 12C6.66667 14.8406 9.05417 17.1429 12 17.1429C14.9458 17.1429 17.3333 14.8406 17.3333 12C17.3333 9.15938 14.9458 6.85714 12 6.85714C11.6417 6.85714 11.2917 6.88929 10.9542 6.95759C8.85833 7.35937 7.20417 8.94643 6.775 10.9634L6.77083 10.9915C6.70417 11.317 6.66667 11.6545 6.66667 12Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function x5(s){let e,r;const n=[s[0]];let a={$$slots:{default:[X5]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class ee extends p{constructor(e){super(),v(this,e,y5,x5,V,{})}}function te(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M13.7469 9.19063L7.5 15.4406V11.6219L12.6469 6.475C13.2719 5.85 14.1187 5.5 15 5.5C15.8813 5.5 16.7281 5.85 17.3531 6.475L17.525 6.64687C18.15 7.27187 18.5 8.11875 18.5 9C18.5 9.525 18.375 10.0406 18.1438 10.5H14.5594L14.8062 10.2531L15.3375 9.72188L14.2781 8.6625L13.7469 9.19375V9.19063ZM13.0594 12H16.8781L15.3781 13.5H11.5594L13.0594 12ZM13.8781 15L12.3781 16.5H8.55938L10.0594 15H13.8781ZM6 11V16.9406L4.56875 18.3687L4.0375 18.9L5.09688 19.9594L5.62813 19.4281L7.05938 18H13L18.5844 12.4156C19.4906 11.5094 20 10.2812 20 9C20 7.71875 19.4906 6.49063 18.5844 5.58438L18.4125 5.4125C17.5094 4.50938 16.2812 4 15 4C13.7188 4 12.4906 4.50937 11.5844 5.41562L6 11Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function re(s){let e,r;const n=[s[0]];let a={$$slots:{default:[te]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class se extends p{constructor(e){super(),v(this,e,ne,re,V,{})}}function le(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M1 4.5H20V6.9375H1V4.5ZM4 10.625H23V13.0625H4V10.625ZM20 16.75V19.1875H1V16.75H20Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function ae(s){let e,r;const n=[s[0]];let a={$$slots:{default:[le]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class fe extends p{constructor(e){super(),v(this,e,ce,ae,V,{})}}function ue(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12 2.25C14.5859 2.25 17.0658 3.27723 18.8943 5.10571C20.7228 6.93419 21.75 9.41414 21.75 12C21.75 14.5859 20.7228 17.0658 18.8943 18.8943C17.0658 20.7228 14.5859 21.75 12 21.75C9.41414 21.75 6.93419 20.7228 5.10571 18.8943C3.27723 17.0658 2.25 14.5859 2.25 12C2.25 9.41414 3.27723 6.93419 5.10571 5.10571C6.93419 3.27723 9.41414 2.25 12 2.25ZM12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24ZM6.3375 13.4578L7.5 14.6203L12 19.1203L16.5 14.6203L17.6625 13.4578C18.3609 12.7594 18.75 11.8172 18.75 10.8328V10.6641C18.75 8.70469 17.1609 7.12031 15.2062 7.12031C14.1281 7.12031 13.1109 7.60781 12.4359 8.45156L12 8.99531L11.5641 8.45156C10.8891 7.6125 9.87188 7.12031 8.79375 7.12031C6.83438 7.12031 5.25 8.70937 5.25 10.6641V10.8328C5.25 11.8172 5.63906 12.7594 6.3375 13.4578Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function oe(s){let e,r;const n=[s[0]];let a={$$slots:{default:[ue]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class he extends p{constructor(e){super(),v(this,e,ie,oe,V,{})}}function ge(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12 7.68281L9.27656 4.95938C8.50312 4.18594 7.45312 3.75 6.36563 3.75C4.09219 3.75 2.25 5.59219 2.25 7.86563C2.25 8.95781 2.68125 10.0031 3.45469 10.7766L12 19.3172L20.5453 10.7766C21.3187 10.0031 21.75 8.95781 21.75 7.86563C21.75 5.59219 19.9078 3.75 17.6344 3.75C16.5422 3.75 15.4969 4.18125 14.7234 4.95469L13.5891 6.09375L12 7.68281ZM12 22.5L1.86562 12.3656C0.670312 11.1703 0 9.55313 0 7.86563C0 4.35 2.85 1.5 6.36563 1.5C8.05313 1.5 9.67031 2.17031 10.8656 3.36563L12 4.5L13.1344 3.36563C14.3297 2.175 15.9469 1.50469 17.6344 1.50469C21.15 1.5 24 4.35 24 7.86563C24 9.55313 23.3297 11.1703 22.1344 12.3656L12 22.5Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function $e(s){let e,r;const n=[s[0]];let a={$$slots:{default:[ge]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class de extends p{constructor(e){super(),v(this,e,Le,$e,V,{})}}function Ce(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M21.75 21.75H8.25V17.25H6V21.75V24H8.25H21.75H24V21.75V6L18 0H8.25H6V2.25V12H8.25V2.25H16.5V7.5H21.75V21.75ZM13.9219 10.0781L13.125 9.28125L11.5359 10.875L12.3328 11.6719L14.1609 13.5H1.125H0V15.75H1.125H14.1609L12.3328 17.5781L11.5359 18.375L13.125 19.9641L13.9219 19.1672L17.6719 15.4172L18.4688 14.6203L17.6719 13.8234L13.9219 10.0734V10.0781Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function me(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Ce]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class He extends p{constructor(e){super(),v(this,e,_e,me,V,{})}}function Ve(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M13.125 16.875V18H10.875V16.875V4.58906L6.42188 9.04219L5.625 9.83906L4.03594 8.25L4.83281 7.45312L11.2031 1.07812L12 0.28125L12.7969 1.07812L19.1719 7.45312L19.9688 8.25L18.375 9.83906L17.5781 9.04219L13.125 4.58906V16.875ZM14.625 16.5V14.25H21.75H24V16.5V21.75V24H21.75H2.25H0V21.75V16.5V14.25H2.25H9.375V16.5H2.25V21.75H21.75V16.5H14.625ZM18 19.125C18 18.8266 18.1185 18.5405 18.3295 18.3295C18.5405 18.1185 18.8266 18 19.125 18C19.4234 18 19.7095 18.1185 19.9205 18.3295C20.1315 18.5405 20.25 18.8266 20.25 19.125C20.25 19.4234 20.1315 19.7095 19.9205 19.9205C19.7095 20.1315 19.4234 20.25 19.125 20.25C18.8266 20.25 18.5405 20.1315 18.3295 19.9205C18.1185 19.7095 18 19.4234 18 19.125Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function pe(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Ve]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Me extends p{constructor(e){super(),v(this,e,ve,pe,V,{})}}function Ze(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M0 3.75V1.5H2.25H21.75H24V3.75V4.5L15.75 14.25V21.1172V24L13.5 22.2L8.25 18V14.25L0 4.5V3.75Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function we(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Ze]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class be extends p{constructor(e){super(),v(this,e,Ee,we,V,{})}}function ke(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M10.5 13.425V14.25V16.9172L13.5 19.3172V14.25V13.425L14.0344 12.7969L21.6891 3.75H2.31094L9.96563 12.7969L10.5 13.425ZM0 3.75V1.5H2.25H21.75H24V3.75V4.5L15.75 14.25V21.1172V24L13.5 22.2L8.25 18V14.25L0 4.5V3.75Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Se(s){let e,r;const n=[s[0]];let a={$$slots:{default:[ke]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Ae extends p{constructor(e){super(),v(this,e,je,Se,V,{})}}function Fe(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M10.25 4V4.75V5.75H13V5L20 4V9L13 8V7.25H10.25V8.08125C11.8219 8.425 13 9.825 13 11.5V18.5V20H11.5H7.50005H6.00005V18.5V11.5C6.00005 9.825 7.17817 8.425 8.75005 8.08125V7.27813C7.28442 7.45 6.04692 8.36563 5.42817 9.64062L4.0813 8.98438C4.94067 7.2125 6.69067 5.95 8.75005 5.77188V4.75V4H10.25ZM7.50005 18.5H11.5V17H7.50005V18.5ZM7.50005 11.5V15.5H11.5V11.5C11.5 10.3969 10.6032 9.5 9.50005 9.5C8.39692 9.5 7.50005 10.3969 7.50005 11.5Z"),u(e,"fill","currentColor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Be(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Fe]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Ge extends p{constructor(e){super(),v(this,e,Pe,Be,V,{})}}function Te(s){let e,r;return{c(){e=g("g"),r=g("path"),this.h()},l(n){e=$(n,"g",{transform:!0});var a=L(e);r=$(a,"path",{d:!0,fill:!0}),L(r).forEach(o),a.forEach(o),this.h()},h(){u(r,"d","M165.9 397.4C165.9 399.4 163.6 401 160.7 401C157.4 401.3 155.1 399.7 155.1 397.4C155.1 395.4 157.4 393.8 160.3 393.8C163.3 393.5 165.9 395.1 165.9 397.4ZM134.8 392.9C134.1 394.9 136.1 397.2 139.1 397.8C141.7 398.8 144.7 397.8 145.3 395.8C145.9 393.8 144 391.5 141 390.6C138.4 389.9 135.5 390.9 134.8 392.9ZM179 391.2C176.1 391.9 174.1 393.8 174.4 396.1C174.7 398.1 177.3 399.4 180.3 398.7C183.2 398 185.2 396.1 184.9 394.1C184.6 392.2 181.9 390.9 179 391.2ZM244.8 8C106.1 8 0 113.3 0 252C0 362.9 69.8 457.8 169.5 491.2C182.3 493.5 186.8 485.6 186.8 479.1C186.8 472.9 186.5 438.7 186.5 417.7C186.5 417.7 116.5 432.7 101.8 387.9C101.8 387.9 90.4 358.8 74 351.3C74 351.3 51.1 335.6 75.6 335.9C75.6 335.9 100.5 337.9 114.2 361.7C136.1 400.3 172.8 389.2 187.1 382.6C189.4 366.6 195.9 355.5 203.1 348.9C147.2 342.7 90.8 334.6 90.8 238.4C90.8 210.9 98.4 197.1 114.4 179.5C111.8 173 103.3 146.2 117 111.6C137.9 105.1 186 138.6 186 138.6C206 133 227.5 130.1 248.8 130.1C270.1 130.1 291.6 133 311.6 138.6C311.6 138.6 359.7 105 380.6 111.6C394.3 146.3 385.8 173 383.2 179.5C399.2 197.2 409 211 409 238.4C409 334.9 350.1 342.6 294.2 348.9C303.4 356.8 311.2 371.8 311.2 395.3C311.2 429 310.9 470.7 310.9 478.9C310.9 485.4 315.5 493.3 328.2 491C428.2 457.8 496 362.9 496 252C496 113.3 383.5 8 244.8 8ZM97.2 352.9C95.9 353.9 96.2 356.2 97.9 358.1C99.5 359.7 101.8 360.4 103.1 359.1C104.4 358.1 104.1 355.8 102.4 353.9C100.8 352.3 98.5 351.6 97.2 352.9ZM86.4 344.8C85.7 346.1 86.7 347.7 88.7 348.7C90.3 349.7 92.3 349.4 93 348C93.7 346.7 92.7 345.1 90.7 344.1C88.7 343.5 87.1 343.8 86.4 344.8ZM118.8 380.4C117.2 381.7 117.8 384.7 120.1 386.6C122.4 388.9 125.3 389.2 126.6 387.6C127.9 386.3 127.3 383.3 125.3 381.4C123.1 379.1 120.1 378.8 118.8 380.4ZM107.4 365.7C105.8 366.7 105.8 369.3 107.4 371.6C109 373.9 111.7 374.9 113 373.9C114.6 372.6 114.6 370 113 367.7C111.6 365.4 109 364.4 107.4 365.7Z"),u(r,"fill","currentcolor"),u(e,"transform","scale(0.04838709677 0.04968944193) translate(0, -8)")},m(n,a){h(n,e,a),I(e,r)},p:b,d(n){n&&o(e)}}}function Re(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Te]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class De extends p{constructor(e){super(),v(this,e,qe,Re,V,{})}}function Ie(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M2.25 2.625V1.5H0V2.625V21.375V22.5H1.125H22.875H24V20.25H22.875H2.25V2.625ZM22.1719 7.92188L22.9688 7.125L21.375 5.53594L20.5781 6.33281L15 11.9109L11.2969 8.20781L10.5 7.41094L9.70312 8.20781L5.20312 12.7078L4.40625 13.5047L6 15.0891L6.79688 14.2922L10.5 10.5891L14.2031 14.2922L15 15.0891L15.7969 14.2922L22.1719 7.92188Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function ze(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Ie]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Oe extends p{constructor(e){super(),v(this,e,Ne,ze,V,{})}}function Ue(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M4.5 10.875H5.625H18.375H19.5V13.125H18.375H5.625H4.5V10.875Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function We(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Ue]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Ke extends p{constructor(e){super(),v(this,e,Je,We,V,{})}}function Ye(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M3.75 16.125V15H1.5V16.125L1.5 22.875V24H2.625H21.375H22.5V22.875V16.125V15H20.25V16.125V21.75H3.75L3.75 16.125ZM12.7969 0.853127L12 0.0562515L11.2031 0.853127L5.20313 6.85313L4.40625 7.65L6 9.23906L6.79688 8.44219L10.875 4.36407L10.875 15.375V16.5H13.125V15.375L13.125 4.36407L17.2031 8.44219L18 9.23906L19.5891 7.65L18.7922 6.85313L12.7922 0.853127H12.7969Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Qe(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Ye]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class xe extends p{constructor(e){super(),v(this,e,Xe,Qe,V,{})}}function ye(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12 2.25C14.5859 2.25 17.0658 3.27723 18.8943 5.10571C20.7228 6.93419 21.75 9.41414 21.75 12C21.75 14.5859 20.7228 17.0658 18.8943 18.8943C17.0658 20.7228 14.5859 21.75 12 21.75C9.41414 21.75 6.93419 20.7228 5.10571 18.8943C3.27723 17.0658 2.25 14.5859 2.25 12C2.25 9.41414 3.27723 6.93419 5.10571 5.10571C6.93419 3.27723 9.41414 2.25 12 2.25ZM12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24ZM10.125 15.75H9V18H10.125H13.875H15V15.75H13.875H13.5V11.625V10.5H12.375H10.125H9V12.75H10.125H11.25V15.75H10.125ZM13.5 9V6H10.5V9H13.5Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function et(s){let e,r;const n=[s[0]];let a={$$slots:{default:[ye]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class rt extends p{constructor(e){super(),v(this,e,tt,et,V,{})}}var y={},e1={},W={exports:{}},B=String,t1=function(){return{isColorSupported:!1,reset:B,bold:B,dim:B,italic:B,underline:B,inverse:B,hidden:B,strikethrough:B,black:B,red:B,green:B,yellow:B,blue:B,magenta:B,cyan:B,white:B,gray:B,bgBlack:B,bgRed:B,bgGreen:B,bgYellow:B,bgBlue:B,bgMagenta:B,bgCyan:B,bgWhite:B}};W.exports=t1();W.exports.createColors=t1;var nt=W.exports;(function(s){var e={};Object.defineProperty(s,"__esModule",{value:!0});function r(S,k){for(var A in k)Object.defineProperty(S,A,{enumerable:!0,get:k[A]})}r(s,{dim:function(){return c},default:function(){return j}});const n=a(nt);function a(S){return S&&S.__esModule?S:{default:S}}let t=new Set;function l(S,k,A){typeof process<"u"&&e.JEST_WORKER_ID||A&&t.has(A)||(A&&t.add(A),console.warn(""),k.forEach(P=>console.warn(S,"-",P)))}function c(S){return n.default.dim(S)}const j={info(S,k){l(n.default.bold(n.default.cyan("info")),...Array.isArray(S)?[S]:[k,S])},warn(S,k){l(n.default.bold(n.default.yellow("warn")),...Array.isArray(S)?[S]:[k,S])},risk(S,k){l(n.default.bold(n.default.magenta("risk")),...Array.isArray(S)?[S]:[k,S])}}})(e1);(function(s){Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"default",{enumerable:!0,get:function(){return a}});const e=r(e1);function r(t){return t&&t.__esModule?t:{default:t}}function n({version:t,from:l,to:c}){e.default.warn(`${l}-color-renamed`,[`As of Tailwind CSS ${t}, \`${l}\` has been renamed to \`${c}\`.`,"Update your configuration file to silence this warning."])}const a={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return n({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return n({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return n({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return n({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return n({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}})(y);let U=y;var st=(U.__esModule?U:{default:U}).default;const lt=u1(st);function at(s){let e,r,n;return{c(){e=g("circle"),r=G(),n=g("path"),this.h()},l(a){e=$(a,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),L(e).forEach(o),r=T(a),n=$(a,"path",{d:!0,fill:!0}),L(n).forEach(o),this.h()},h(){u(e,"cx","12"),u(e,"cy","12"),u(e,"r","8"),u(e,"fill",lt.gray[900]),u(n,"d","M15.5 9.33337C15.5 9.474 15.4375 9.599 15.3438 9.69275L11.3438 13.6927C11.25 13.7865 11.125 13.8334 11 13.8334C10.8594 13.8334 10.7344 13.7865 10.6406 13.6927L8.64062 11.6927C8.54688 11.599 8.5 11.474 8.5 11.3334C8.5 11.0521 8.71875 10.8334 9 10.8334C9.125 10.8334 9.25 10.8959 9.34375 10.9896L11 12.6302L14.6406 8.98962C14.7344 8.89587 14.8594 8.83337 15 8.83337C15.2656 8.83337 15.5 9.05212 15.5 9.33337Z"),u(n,"fill","white")},m(a,t){h(a,e,t),h(a,r,t),h(a,n,t)},p:b,d(a){a&&(o(e),o(r),o(n))}}}function ct(s){let e,r;const n=[s[0]];let a={$$slots:{default:[at]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class ut extends p{constructor(e){super(),v(this,e,ft,ct,V,{})}}function ot(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M14.1188 3.0675L13.8451 3.9225L8.44509 20.7225L8.17134 21.5775L9.88509 22.1288L10.1588 21.2738L15.5588 4.47375L15.8326 3.61875L14.1188 3.0675ZM16.4288 8.14126L17.0851 8.75626L21.1838 12.6L17.0851 16.4438L16.4288 17.0588L17.6588 18.3713L18.3151 17.7563L23.1151 13.2563L23.8163 12.6L23.1151 11.9438L18.3151 7.44376L17.6588 6.82875L16.4288 8.14126ZM6.34134 6.82875L5.68509 7.44376L0.885088 11.9438L0.183838 12.6L0.885088 13.2563L5.68509 17.7563L6.34134 18.3713L7.57134 17.0588L6.91509 16.4438L2.81634 12.6L6.91509 8.75626L7.57134 8.14126L6.34134 6.82875Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function it(s){let e,r;const n=[s[0]];let a={$$slots:{default:[ot]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class gt extends p{constructor(e){super(),v(this,e,ht,it,V,{})}}function $t(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M2 5.25V18.75H22V5.25H2ZM0 3H2H22H24V5.25V18.75V21H22H2H0V18.75V5.25V3ZM17.3333 15V17.25H6.66667V15H17.3333ZM4.33333 10.875H6.33333V13.125H4.33333V10.875ZM6.33333 7.125V9.375H4.33333V7.125H6.33333ZM7.66667 10.875H9.66667V13.125H7.66667V10.875ZM9.66667 7.125V9.375H7.66667V7.125H9.66667ZM11 10.875H13V13.125H11V10.875ZM13 7.125V9.375H11V7.125H13ZM14.3333 10.875H16.3333V13.125H14.3333V10.875ZM16.3333 7.125V9.375H14.3333V7.125H16.3333ZM17.6667 10.875H19.6667V13.125H17.6667V10.875ZM19.6667 7.125V9.375H17.6667V7.125H19.6667Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Lt(s){let e,r;const n=[s[0]];let a={$$slots:{default:[$t]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Ct extends p{constructor(e){super(),v(this,e,dt,Lt,V,{})}}function mt(s){let e,r,n;return{c(){e=g("path"),r=G(),n=g("path"),this.h()},l(a){e=$(a,"path",{d:!0,fill:!0}),L(e).forEach(o),r=T(a),n=$(a,"path",{d:!0,fill:!0}),L(n).forEach(o),this.h()},h(){u(e,"d","M14.25 10.0734V2.25H9.75V10.0734V10.7109L9.41719 11.2547L7.11094 15H16.8891L14.5828 11.2547L14.25 10.7109V10.0734ZM16.5 2.25V10.0734L22.5 19.8234V21.75V24H20.25H3.75H1.5V21.75V19.8234L7.5 10.0734V2.25H7.125H6V0H7.125H7.5H9.75H14.25H16.5H16.875H18V2.25H16.875H16.5Z"),u(e,"fill","currentColor"),u(n,"d","M6 17H18L19.5 19.83V22H4.5V19.83L6 17Z"),u(n,"fill",s[0])},m(a,t){h(a,e,t),h(a,r,t),h(a,n,t)},p(a,t){t&1&&u(n,"fill",a[0])},d(a){a&&(o(e),o(r),o(n))}}}function _t(s){let e,r;const n=[s[1]];let a={$$slots:{default:[mt]},$$scope:{ctx:s}};for(let t=0;t{r(1,e=f(f({},e),i(t))),"active"in t&&r(2,a=t.active)},s.$$.update=()=>{s.$$.dirty&4&&r(0,n=a?"#00F37E":"currentColor")},e=i(e),[n,e,a]}class Vt extends p{constructor(e){super(),v(this,e,Ht,_t,V,{active:2})}}function pt(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M14.0016 4.5L14.5031 2.25L15 0H12.6938H4.5L3.24844 11.25L3 13.5H5.26406H8.94844H11.25L10.7672 15.75L10.0031 19.3125L9 24L12.0844 20.3344L21 9.75V9V6.75H18.75H15.8063H13.5L14.0016 4.5ZM18.6937 9L13.0922 15.6516L13.4531 13.9734L14.0344 11.25H11.25H5.5125L6.51562 2.25H12.1969L11.3062 6.2625L10.6969 9H13.5H18.6891H18.6937Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function vt(s){let e,r;const n=[s[0]];let a={$$slots:{default:[pt]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Zt extends p{constructor(e){super(),v(this,e,Mt,vt,V,{})}}function wt(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M2.79854 11.475C0.16416 14.1094 0.16416 18.3797 2.79854 21.0094C5.31104 23.5219 9.3376 23.6531 12.0095 21.3141L12.2954 21.0609L10.8142 19.3688L10.5282 19.6219C8.74697 21.1781 6.06572 21.0891 4.39228 19.4156C2.63916 17.6625 2.63916 14.8172 4.39228 13.0594L9.70322 7.75313C11.4563 6.00001 14.3017 6.00001 16.0595 7.75313C17.7329 9.42657 17.822 12.1078 16.2657 13.8891L16.0126 14.175L17.7048 15.6563L17.9579 15.3703C20.297 12.6984 20.161 8.67188 17.6532 6.15938C15.0188 3.52501 10.7485 3.52501 8.11416 6.15938L2.79854 11.475ZM27.2017 12.525C29.836 9.89063 29.836 5.62032 27.2017 2.98594C24.6938 0.478131 20.6673 0.342194 17.9954 2.68126L17.7095 2.93438L19.1907 4.62657L19.4767 4.37344C21.2579 2.81719 23.9392 2.90626 25.6126 4.57969C27.3657 6.33282 27.3657 9.17813 25.6126 10.9359L20.3017 16.2469C18.5485 18 15.6985 18 13.9454 16.2469C12.272 14.5734 12.1829 11.8922 13.7392 10.1109L13.9595 9.85782L12.2673 8.37657L12.047 8.62969C9.7126 11.3016 9.84854 15.3281 12.3563 17.8359C14.9907 20.4703 19.261 20.4703 21.8954 17.8359L27.2017 12.525Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Et(s){let e,r;const n=[s[0]];let a={$$slots:{default:[wt]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class kt extends p{constructor(e){super(),v(this,e,bt,Et,V,{})}}function St(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M8.75 6V9H16.25V6C16.25 3.92812 14.5719 2.25 12.5 2.25C10.4281 2.25 8.75 3.92812 8.75 6ZM6.5 9V6C6.5 2.68594 9.18594 0 12.5 0C15.8141 0 18.5 2.68594 18.5 6V9H20.75H23V11.25V21.75V24H20.75H4.25H2V21.75V11.25V9H4.25H6.5ZM4.25 21.75H20.75V11.25H4.25V21.75Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function jt(s){let e,r;const n=[s[0]];let a={$$slots:{default:[St]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Ft extends p{constructor(e){super(),v(this,e,At,jt,V,{})}}function Bt(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M7.875 3.75H9V1.5H7.875H1.125H0V2.625V21.375V22.5H1.125H7.875H9V20.25H7.875H2.25V3.75H7.875ZM23.1469 12.7969L23.9437 12L23.1469 11.2031L17.1469 5.20312L16.35 4.40625L14.7609 6L15.5578 6.79688L19.6359 10.875H8.625H7.5V13.125H8.625H19.6359L15.5578 17.2031L14.7609 18L16.35 19.5891L17.1469 18.7922L23.1469 12.7922V12.7969Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Pt(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Bt]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Tt extends p{constructor(e){super(),v(this,e,Gt,Pt,V,{})}}function Rt(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M16.5 10C16.5 7.51562 14.4844 5.5 12 5.5C9.51562 5.5 7.5 7.51562 7.5 10C7.5 10.5094 7.74062 11.3125 8.27187 12.3562C8.78437 13.3625 9.48438 14.4313 10.2125 15.4281C10.8469 16.3 11.4844 17.0937 12 17.7125C12.5156 17.0937 13.1531 16.3 13.7875 15.4281C14.5125 14.4313 15.2125 13.3594 15.7281 12.3562C16.2594 11.3125 16.5 10.5094 16.5 10ZM18 10C18 12.5969 14.7 16.8438 12.9938 18.8625C12.4 19.5656 12 20 12 20C12 20 11.6 19.5656 11.0062 18.8625C9.3 16.8438 6 12.5969 6 10C6 6.6875 8.6875 4 12 4C15.3125 4 18 6.6875 18 10ZM13 10C13 9.73478 12.8946 9.48043 12.7071 9.29289C12.5196 9.10536 12.2652 9 12 9C11.7348 9 11.4804 9.10536 11.2929 9.29289C11.1054 9.48043 11 9.73478 11 10C11 10.2652 11.1054 10.5196 11.2929 10.7071C11.4804 10.8946 11.7348 11 12 11C12.2652 11 12.5196 10.8946 12.7071 10.7071C12.8946 10.5196 13 10.2652 13 10ZM9.5 10C9.5 9.33696 9.76339 8.70107 10.2322 8.23223C10.7011 7.76339 11.337 7.5 12 7.5C12.663 7.5 13.2989 7.76339 13.7678 8.23223C14.2366 8.70107 14.5 9.33696 14.5 10C14.5 10.663 14.2366 11.2989 13.7678 11.7678C13.2989 12.2366 12.663 12.5 12 12.5C11.337 12.5 10.7011 12.2366 10.2322 11.7678C9.76339 11.2989 9.5 10.663 9.5 10Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function qt(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Rt]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class It extends p{constructor(e){super(),v(this,e,Dt,qt,V,{})}}function zt(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M3.75 2.25V5.25H6.75V2.25H3.75ZM1.5 0H3.75H6.75H9V2.25V5.25V7.5H6.75H6.43125C6.79219 9.83438 8.8125 11.625 11.25 11.625H15V11.25V9H17.25H20.25H22.5V11.25V14.25V16.5H20.25H17.25H15V14.25V13.875H11.25C9.36562 13.875 7.65 13.1437 6.375 11.9484V16.5H6.75H9V18.75V21.75V24H6.75H3.75H1.5V21.75V18.75V16.5H3.75H4.125V7.5H3.75H1.5V5.25V2.25V0ZM3.75 18.75V21.75H6.75V18.75H3.75ZM20.25 11.25H17.25V14.25H20.25V11.25Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Nt(s){let e,r;const n=[s[0]];let a={$$slots:{default:[zt]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Ut extends p{constructor(e){super(),v(this,e,Ot,Nt,V,{})}}function Wt(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M16.4812 1.93125C15.5344 1.65 14.5359 1.5 13.5 1.5C13.0031 1.5 12.5156 1.53281 12.0422 1.59844C6.93281 2.31094 3 6.69844 3 12C3 17.7984 7.70156 22.5 13.5 22.5C14.8266 22.5 16.0922 22.2563 17.2594 21.8063C17.7609 21.6141 18.2484 21.3844 18.7125 21.1172C19.5516 20.6344 20.3203 20.0437 20.9906 19.3547C20.2641 19.5469 19.5 19.6453 18.7125 19.6453C18.1219 19.6453 17.5406 19.5891 16.9828 19.4766C12.8531 18.6656 9.73594 15.0188 9.73594 10.6453C9.73594 7.88438 10.9734 5.41406 12.9281 3.76406C13.1156 3.60469 13.3078 3.45469 13.5047 3.31406C14.3906 2.67656 15.3984 2.20312 16.4859 1.92188L16.4812 1.93125ZM8.925 5.13281C8.00625 6.76406 7.48594 8.64375 7.48594 10.65C7.48594 14.6906 9.61406 18.2391 12.8109 20.2219C8.57344 19.8703 5.25 16.3219 5.25 12C5.25 9.13594 6.70781 6.61406 8.925 5.13281Z"),u(e,"fill","currentColor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Jt(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Wt]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Yt extends p{constructor(e){super(),v(this,e,Kt,Jt,V,{})}}function Qt(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"fill-rule","evenodd"),u(e,"clip-rule","evenodd"),u(e,"d","M6.84398 2.27318L5.73166 1.96333L6.26834 0.0366821L11.5793 1.51608L8.87831 6.4781L7.12169 5.52192L7.98585 3.93435C5.03003 5.40982 3 8.46463 3 11.9921C3 14.4777 4.00626 16.7263 5.63604 18.3561C6.4266 19.1466 7.36291 19.7904 8.40037 20.2437L7.59963 22.0764C6.3302 21.5217 5.18652 20.735 4.22182 19.7703C2.23231 17.7808 1 15.0294 1 11.9921C1 7.77952 3.36736 4.12127 6.84398 2.27318ZM18.3638 5.64393C17.5733 4.85336 16.637 4.20961 15.5995 3.75632L16.4003 1.92362C17.6697 2.47826 18.8134 3.26502 19.7781 4.22971C21.7676 6.21923 22.9999 8.97059 22.9999 12.0079C22.9999 16.2205 20.6325 19.8787 17.1559 21.7268L18.2682 22.0367L17.7315 23.9633L12.4206 22.4839L15.1216 17.5219L16.8782 18.4781L16.014 20.0656C18.9699 18.5902 20.9999 15.5354 20.9999 12.0079C20.9999 9.52233 19.9936 7.2737 18.3638 5.64393ZM12.0001 9.00001C10.3432 9.00001 9 10.3432 9 12.0001C9 13.6571 10.3432 15.0003 12.0001 15.0003C13.6571 15.0003 15.0003 13.6571 15.0003 12.0001C15.0003 10.3432 13.6571 9.00001 12.0001 9.00001ZM7 12.0001C7 9.23865 9.23864 7.00001 12.0001 7.00001C14.7616 7.00001 17.0003 9.23865 17.0003 12.0001C17.0003 14.7616 14.7616 17.0003 12.0001 17.0003C9.23864 17.0003 7 14.7616 7 12.0001Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Xt(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Qt]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class yt extends p{constructor(e){super(),v(this,e,xt,Xt,V,{})}}function e0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12 0L12.3984 0.153692L23.2734 4.38023L24 4.6636V5.46088V18.1405V18.9089L23.3063 19.2019L12.4313 23.8127L12 24L11.5688 23.8175L0.69375 19.2067L0 18.9089V18.1405V5.46088V4.6636L0.726562 4.38023L11.6016 0.153692L12 0ZM2.25 17.372L10.875 21.027V11.2435L2.25 7.77106V17.372ZM13.125 21.027L21.75 17.372V7.77106L13.125 11.2435V21.027ZM12 2.46868L3.46875 5.78267L12 9.21673L20.5312 5.78267L12 2.46868Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function t0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[e0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class n0 extends p{constructor(e){super(),v(this,e,r0,t0,V,{})}}function s0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"fill-rule","evenodd"),u(e,"clip-rule","evenodd"),u(e,"d","M10.8738 10.1797V0H13.1262V10.1797L22.9927 5.25177L24 7.26423L14.5183 12L24 16.7358L22.9927 18.7482L13.1262 13.8203V24H10.8738V13.8203L1.00732 18.7482L8.59229e-06 16.7358L9.48172 12L0 7.26423L1.00731 5.25176L10.8738 10.1797Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function l0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[s0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class c0 extends p{constructor(e){super(),v(this,e,a0,l0,V,{})}}function f0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M15.4031 10.2281L16.2422 10.8375C17.1234 11.4844 17.775 12.3422 18.2062 13.1625C18.4453 13.6172 18.5813 13.9922 18.6609 14.25H13.125V10.125V9H10.875V10.125V14.25H5.31563C5.325 14.2031 5.33906 14.1516 5.35781 14.1C5.44687 13.7953 5.5875 13.425 5.79844 13.0266C6.22031 12.2297 6.85781 11.4094 7.72969 10.7953L8.60156 10.1859L8.68125 9.12656L9.20625 2.25H14.7938L15.3281 9.19687L15.4078 10.2281H15.4031ZM13.125 16.5H18.75H21V14.625C21 14.5172 20.9906 14.3953 20.9672 14.25C20.775 13.0406 19.7484 10.6125 17.5687 9.02344L17.0484 2.25H18.375H19.5V0H18.375H16.875H7.125H5.625H4.5V2.25H5.625H6.95156L6.43594 8.95312C4.22344 10.5047 3.19687 12.9188 3.02813 14.25C3.00938 14.3859 3 14.5125 3 14.625V16.5H5.25H10.875V22.875V24H13.125V22.875V16.5Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function u0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[f0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class i0 extends p{constructor(e){super(),v(this,e,o0,u0,V,{})}}function h0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M14.7188 11.0234L14.5781 7.625H15.1875C15.4922 7.625 15.75 7.39062 15.75 7.0625C15.75 6.75781 15.4922 6.5 15.1875 6.5H8.8125C8.48438 6.5 8.25 6.75781 8.25 7.0625C8.25 7.39062 8.48438 7.625 8.8125 7.625H9.53906L9.28125 11.0234C8.15625 11.6328 7.5 12.6172 7.5 13.6953C7.5 14.2812 7.96875 14.75 8.55469 14.75H11.4375V17.9375C11.4375 18.2656 11.6719 18.5 12 18.5C12.3047 18.5 12.5625 18.2656 12.5625 17.9375V14.75H15.4453C16.0078 14.75 16.5 14.2812 16.5 13.6953C16.5 12.6406 15.8203 11.6562 14.7188 11.0234ZM12.5625 13.625V11.9375C12.5625 11.6328 12.3047 11.375 12 11.375C11.6719 11.375 11.4375 11.6328 11.4375 11.9375V13.625H8.625C8.64844 12.9453 9.1875 12.2891 10.0547 11.8906L10.3594 11.75L10.6641 7.625H13.4531L13.6172 11.75L13.9219 11.8906C14.7891 12.2891 15.3281 12.9453 15.3516 13.625H12.5625Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function g0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[h0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class L0 extends p{constructor(e){super(),v(this,e,$0,g0,V,{})}}function d0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M20.5125 7.2375L18.75 9V12.75H21.7219C21.3375 17.7844 17.1328 21.75 12 21.75C6.61406 21.75 2.25 17.3859 2.25 12C2.25 11.0859 2.37656 10.2 2.61094 9.36094L4.5 11.25H6.75L9 13.5V16.5L10.5 18V20.25H13.5V18.75L16.5 15.75V12H10.5L9 10.5V9H12.75V7.5L11.25 6V5.25L12.75 3.75V2.27812C16.0875 2.53125 18.9563 4.46719 20.5125 7.2375ZM12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function C0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[d0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class _0 extends p{constructor(e){super(),v(this,e,m0,C0,V,{})}}function H0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"fill-rule","evenodd"),u(e,"clip-rule","evenodd"),u(e,"d","M8.55523 0H15.4441V6.88889H12.9997V11H21.4446V17.1111H23.889V24H17.0001V17.1111H19.4446V13H12.9997V17.1111H15.4441V24H8.55523V17.1111H10.9997V13H4.55553V17.1111H6.99997V24H0.111084V17.1111H2.55553V11H10.9997V6.88889H8.55523V0ZM13.4441 4.88889V2H10.5552V4.88889H13.4441ZM2.11108 19.1111V22H4.99997V19.1111H2.11108ZM10.5552 19.1111V22H13.4441V19.1111H10.5552ZM19.0001 19.1111V22H21.889V19.1111H19.0001Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function V0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[H0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class v0 extends p{constructor(e){super(),v(this,e,p0,V0,V,{})}}function M0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M8.25 0H15.75V2.25H13.125V4.56563C15.1594 4.8 17.0062 5.65781 18.4594 6.95156L19.8281 5.57812L20.625 4.78125L22.2141 6.375L21.4172 7.17188L19.9641 8.625C21.0891 10.2141 21.75 12.1547 21.75 14.25C21.75 19.6359 17.3859 24 12 24C6.61406 24 2.25 19.6359 2.25 14.25C2.25 9.24375 6.01875 5.12344 10.875 4.56563V2.25H8.25V0ZM12 21.75C13.9891 21.75 15.8968 20.9598 17.3033 19.5533C18.7098 18.1468 19.5 16.2391 19.5 14.25C19.5 12.2609 18.7098 10.3532 17.3033 8.9467C15.8968 7.54018 13.9891 6.75 12 6.75C10.0109 6.75 8.10322 7.54018 6.6967 8.9467C5.29018 10.3532 4.5 12.2609 4.5 14.25C4.5 16.2391 5.29018 18.1468 6.6967 19.5533C8.10322 20.9598 10.0109 21.75 12 21.75ZM13.125 10.125V15V16.125H10.875V15V10.125V9H13.125V10.125Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Z0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[M0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class E0 extends p{constructor(e){super(),v(this,e,w0,Z0,V,{})}}function b0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M22.125 10.5H23.25V9.375V2.625V1.5H21V2.625V6.37969L20.0625 5.27812C18.1406 2.97187 15.2391 1.5 12 1.5C6.20156 1.5 1.5 6.20156 1.5 12C1.5 17.7984 6.20156 22.5 12 22.5C14.3625 22.5 16.5469 21.7172 18.3 20.4L16.95 18.6C15.5719 19.6359 13.8609 20.25 12 20.25C7.44375 20.25 3.75 16.5562 3.75 12C3.75 7.44375 7.44375 3.75 12 3.75C14.5453 3.75 16.8234 4.90312 18.3375 6.72187L18.3422 6.73125L19.6359 8.25H15.375H14.25V10.5H15.375H22.125Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function k0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[b0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class j0 extends p{constructor(e){super(),v(this,e,S0,k0,V,{})}}function A0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12.9 2.9375V2H11.1V2.9375V5.75H5.4H3.6V7.625V20.125V22H5.4H18.6H20.4V20.125V7.625V5.75H18.6H12.9V2.9375ZM11.1 7.625H12.9H18.6V20.125H5.4V7.625H11.1ZM2.4 10.75H0V18.25H2.4V10.75ZM24 10.75H21.6V18.25H24V10.75ZM7.2 17V18.25H7.8H9H9.6V17H9H7.8H7.2ZM12.6 17H11.4H10.8V18.25H11.4H12.6H13.2V17H12.6ZM15 17H14.4V18.25H15H16.2H16.8V17H16.2H15ZM10.5 12C10.5 11.5856 10.342 11.1882 10.0607 10.8951C9.77936 10.6021 9.39783 10.4375 9 10.4375C8.60218 10.4375 8.22064 10.6021 7.93934 10.8951C7.65804 11.1882 7.5 11.5856 7.5 12C7.5 12.4144 7.65804 12.8118 7.93934 13.1049C8.22064 13.3979 8.60218 13.5625 9 13.5625C9.39783 13.5625 9.77936 13.3979 10.0607 13.1049C10.342 12.8118 10.5 12.4144 10.5 12ZM15 13.5625C15.3978 13.5625 15.7794 13.3979 16.0607 13.1049C16.342 12.8118 16.5 12.4144 16.5 12C16.5 11.5856 16.342 11.1882 16.0607 10.8951C15.7794 10.6021 15.3978 10.4375 15 10.4375C14.6022 10.4375 14.2206 10.6021 13.9393 10.8951C13.658 11.1882 13.5 11.5856 13.5 12C13.5 12.4144 13.658 12.8118 13.9393 13.1049C14.2206 13.3979 14.6022 13.5625 15 13.5625Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function F0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[A0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class P0 extends p{constructor(e){super(),v(this,e,B0,F0,V,{})}}function G0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M9.27656 11.9016C10.7859 6.58127 13.35 4.2094 15.6984 3.14065C17.7516 2.20315 19.9219 2.13752 21.6422 2.36252C21.8672 4.07815 21.8016 6.24846 20.8641 8.30627C19.7953 10.65 17.4234 13.2188 12.1031 14.7281C11.8031 14.1235 11.4094 13.5703 10.9219 13.0875C10.4344 12.6047 9.88125 12.2063 9.28125 11.9063L9.27656 11.9016ZM2.08125 13.486C2.1375 13.4953 2.19375 13.5 2.25 13.5H6.50156C7.56094 13.5 8.57812 13.9219 9.32812 14.6719C10.0781 15.4219 10.5 16.4391 10.5 17.4985V21.375C10.5 21.3797 10.5 21.3797 10.5 21.3844V24L18 20.25V14.6297C24.7266 10.4531 24.3938 3.7594 23.5641 0.435959C20.2406 -0.393728 13.5469 -0.726541 9.37031 6.00002H6.35156C6.34688 6.00002 6.34219 6.00002 6.3375 6.00002H3.75L0 13.4813L2.08125 13.486ZM0.0234375 23.9766C0.0234375 23.9766 5.48438 24.3516 7.80469 22.0313C9.41719 20.4188 9.41719 17.8078 7.80469 16.1953C6.19219 14.5828 3.58125 14.5828 1.96875 16.1953C-0.351562 18.5156 0.0234375 23.9766 0.0234375 23.9766ZM3.02812 20.9719C3.02812 20.9719 2.90156 19.1578 3.675 18.3844C4.20937 17.85 5.08125 17.85 5.61563 18.3844C6.15 18.9188 6.15 19.7906 5.61563 20.325C4.84219 21.0985 3.02812 20.9719 3.02812 20.9719ZM19.125 6.75002C19.125 6.25274 18.9275 5.77583 18.5758 5.4242C18.2242 5.07257 17.7473 4.87502 17.25 4.87502C16.7527 4.87502 16.2758 5.07257 15.9242 5.4242C15.5725 5.77583 15.375 6.25274 15.375 6.75002C15.375 7.2473 15.5725 7.72422 15.9242 8.07585C16.2758 8.42748 16.7527 8.62502 17.25 8.62502C17.7473 8.62502 18.2242 8.42748 18.5758 8.07585C18.9275 7.72422 19.125 7.2473 19.125 6.75002Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function T0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[G0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class q0 extends p{constructor(e){super(),v(this,e,R0,T0,V,{})}}function D0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12 0H10.875V1.125V4.875V6H13.125V4.875V2.31563C17.9813 2.87344 21.75 6.99375 21.75 12C21.75 17.3859 17.3859 21.75 12 21.75C6.61406 21.75 2.25 17.3859 2.25 12C2.25 9.97031 2.86875 8.08594 3.92813 6.525L4.56094 5.59688L2.7 4.33125L2.07188 5.25937C0.764063 7.18125 0 9.50156 0 12C0 18.6281 5.37188 24 12 24C18.6281 24 24 18.6281 24 12C24 5.37188 18.6281 0 12 0ZM9.04688 7.45312L8.25 6.65625L6.66094 8.25L7.45781 9.04688L11.2078 12.7969L12.0047 13.5938L13.5891 12L12.7922 11.2031L9.04219 7.45312H9.04688Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function I0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[D0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class N0 extends p{constructor(e){super(),v(this,e,z0,I0,V,{})}}function O0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M17.25 9.75C17.25 7.76088 16.4598 5.85322 15.0533 4.4467C13.6468 3.04018 11.7391 2.25 9.75 2.25C7.76088 2.25 5.85322 3.04018 4.4467 4.4467C3.04018 5.85322 2.25 7.76088 2.25 9.75C2.25 11.7391 3.04018 13.6468 4.4467 15.0533C5.85322 16.4598 7.76088 17.25 9.75 17.25C11.7391 17.25 13.6468 16.4598 15.0533 15.0533C16.4598 13.6468 17.25 11.7391 17.25 9.75ZM15.8016 17.3953C14.1422 18.7125 12.0375 19.5 9.75 19.5C4.36406 19.5 0 15.1359 0 9.75C0 4.36406 4.36406 0 9.75 0C15.1359 0 19.5 4.36406 19.5 9.75C19.5 12.0375 18.7125 14.1422 17.3953 15.8016L23.2078 21.6141L24.0047 22.4109L22.4109 24L21.6141 23.2031L15.8016 17.3906V17.3953Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function U0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[O0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class J0 extends p{constructor(e){super(),v(this,e,W0,U0,V,{})}}function K0(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M15.375 0L16.0594 3.13125C16.6172 3.38906 17.1516 3.69375 17.6438 4.05L20.7 3.075L24.075 8.92031L21.7031 11.0812C21.7313 11.3812 21.7453 11.6859 21.7453 11.9953C21.7453 12.3047 21.7313 12.6094 21.7031 12.9094L24.075 15.0703L20.7 20.9156L17.6438 19.9406C17.1469 20.2922 16.6172 20.6016 16.0594 20.8594L15.375 24H8.62501L7.94063 20.8688C7.38282 20.6109 6.84844 20.3062 6.35626 19.95L3.29532 20.925L-0.0796814 15.0797L2.29219 12.9188C2.26407 12.6188 2.25001 12.3141 2.25001 12.0047C2.25001 11.6953 2.26407 11.3906 2.29219 11.0906L-0.0796814 8.925L3.29532 3.07969L6.35157 4.05469C6.84844 3.70312 7.37813 3.39375 7.93594 3.13594L8.62501 0H15.375ZM18.3281 6.19687L17.2547 6.53906L16.3406 5.8875C15.9563 5.61562 15.5484 5.37656 15.1219 5.17969L14.1 4.71094L13.8609 3.61406L13.5656 2.25H10.4344L10.1344 3.61406L9.89532 4.71094L8.87344 5.17969C8.44219 5.37656 8.03438 5.61562 7.65469 5.8875L6.74063 6.53906L5.67188 6.19687L4.34063 5.775L2.77501 8.47969L3.80626 9.42188L4.63594 10.1766L4.53282 11.2922C4.50938 11.5266 4.50001 11.7609 4.50001 12C4.50001 12.2391 4.50938 12.4734 4.53282 12.7078L4.63594 13.8234L3.80626 14.5781L2.77501 15.5203L4.34063 18.2297L5.67188 17.8078L6.74532 17.4656L7.65938 18.1172C8.04376 18.3891 8.45157 18.6281 8.87813 18.825L9.90001 19.2938L10.1391 20.3906L10.4391 21.7547H13.5656L13.8656 20.3906L14.1047 19.2938L15.1266 18.825C15.5578 18.6281 15.9656 18.3891 16.3453 18.1172L17.2594 17.4656L18.3328 17.8078L19.6641 18.2297L21.2297 15.5203L19.3641 13.8234L19.4672 12.7078C19.4906 12.4734 19.5 12.2391 19.5 12C19.5 11.7609 19.4906 11.5266 19.4672 11.2922L19.3641 10.1766L21.2297 8.47969L19.6641 5.77031L18.3328 6.19219L18.3281 6.19687ZM14.25 12C14.25 11.4033 14.013 10.831 13.591 10.409C13.169 9.98705 12.5967 9.75 12 9.75C11.4033 9.75 10.831 9.98705 10.409 10.409C9.98706 10.831 9.75001 11.4033 9.75001 12C9.75001 12.5967 9.98706 13.169 10.409 13.591C10.831 14.0129 11.4033 14.25 12 14.25C12.5967 14.25 13.169 14.0129 13.591 13.591C14.013 13.169 14.25 12.5967 14.25 12ZM7.50001 12C7.50001 10.8065 7.97411 9.66193 8.81803 8.81802C9.66194 7.97411 10.8065 7.5 12 7.5C13.1935 7.5 14.3381 7.97411 15.182 8.81802C16.0259 9.66193 16.5 10.8065 16.5 12C16.5 13.1935 16.0259 14.3381 15.182 15.182C14.3381 16.0259 13.1935 16.5 12 16.5C10.8065 16.5 9.66194 16.0259 8.81803 15.182C7.97411 14.3381 7.50001 13.1935 7.50001 12Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Y0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[K0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class X0 extends p{constructor(e){super(),v(this,e,Q0,Y0,V,{})}}function x0(s){let e,r,n;return{c(){e=g("circle"),r=G(),n=g("path"),this.h()},l(a){e=$(a,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),L(e).forEach(o),r=T(a),n=$(a,"path",{fill:!0,d:!0}),L(n).forEach(o),this.h()},h(){u(e,"cx","12"),u(e,"cy","18"),u(e,"r","1"),u(e,"fill","currentColor"),u(n,"fill","currentColor"),u(n,"d","M4.5 12C4.5 10.2437 5.10312 8.63125 6.1125 7.35313L4.93438 6.42188C3.725 7.95625 3 9.89375 3 12C3 14.1063 3.725 16.0438 4.93438 17.5781L6.1125 16.65C5.10312 15.3687 4.5 13.7563 4.5 12ZM6.5 12C6.5 13.2875 6.94375 14.4719 7.68437 15.4094L8.8625 14.4812C8.32188 13.7969 8 12.9375 8 12C8 11.0625 8.32187 10.2031 8.85938 9.52187L7.68125 8.59375C6.94375 9.52812 6.5 10.7125 6.5 12ZM16.3156 8.59062L15.1375 9.51875C15.6781 10.2031 16 11.0625 16 12C16 12.9375 15.6781 13.7969 15.1406 14.4781L16.3188 15.4062C17.0594 14.4688 17.5031 13.2844 17.5031 11.9969C17.5031 10.7094 17.0594 9.525 16.3188 8.5875L16.3156 8.59062ZM19.5 12C19.5 13.7563 18.8969 15.3688 17.8875 16.6469L19.0656 17.575C20.275 16.0437 21 14.1063 21 12C21 9.89375 20.275 7.95625 19.0656 6.42188L17.8875 7.35C18.8969 8.63125 19.5 10.2437 19.5 12ZM12 13.25C12.3315 13.25 12.6495 13.1183 12.8839 12.8839C13.1183 12.6495 13.25 12.3315 13.25 12C13.25 11.6685 13.1183 11.3505 12.8839 11.1161C12.6495 10.8817 12.3315 10.75 12 10.75C11.6685 10.75 11.3505 10.8817 11.1161 11.1161C10.8817 11.3505 10.75 11.6685 10.75 12C10.75 12.3315 10.8817 12.6495 11.1161 12.8839C11.3505 13.1183 11.6685 13.25 12 13.25Z")},m(a,t){h(a,e,t),h(a,r,t),h(a,n,t)},p:b,d(a){a&&(o(e),o(r),o(n))}}}function y0(s){let e,r;const n=[s[0]];let a={$$slots:{default:[x0]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class t7 extends p{constructor(e){super(),v(this,e,e7,y0,V,{})}}function r7(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M2.25 18.75H5.25V15.75H2.25V18.75ZM0 21V18.75V15.75V13.5H2.25H5.25H7.5V15.75V16.125H22.875H24V18.375H22.875H7.5V18.75V21H5.25H2.25H0ZM1.125 7.875H0V5.625H1.125H16.5V5.25V3H18.75H21.75H24V5.25V8.25V10.5H21.75H18.75H16.5V8.25V7.875H1.125ZM18.75 5.25V8.25H21.75V5.25H18.75Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function n7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[r7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class l7 extends p{constructor(e){super(),v(this,e,s7,n7,V,{})}}function a7(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12 3C16.9706 3 21 7.02944 21 12C21 14.4853 19.9926 16.7353 18.364 18.364"),u(e,"stroke","currentcolor"),u(e,"stroke-width","2"),u(e,"stroke-linecap","round"),u(e,"stroke-linejoin","round")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function c7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[a7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class u7 extends p{constructor(e){super(),v(this,e,f7,c7,V,{})}}function o7(s){let e,r,n,a,t,l,c,j,S,k,A,P,q;return{c(){e=g("path"),r=G(),n=g("path"),a=G(),t=g("path"),l=G(),c=g("path"),j=G(),S=g("path"),k=G(),A=g("path"),P=G(),q=g("path"),this.h()},l(F){e=$(F,"path",{d:!0,stroke:!0,"stroke-linecap":!0,"stroke-linejoin":!0}),L(e).forEach(o),r=T(F),n=$(F,"path",{d:!0,stroke:!0,"stroke-linecap":!0,"stroke-linejoin":!0}),L(n).forEach(o),a=T(F),t=$(F,"path",{d:!0,stroke:!0,"stroke-linecap":!0,"stroke-linejoin":!0}),L(t).forEach(o),l=T(F),c=$(F,"path",{d:!0,stroke:!0,"stroke-linecap":!0,"stroke-linejoin":!0}),L(c).forEach(o),j=T(F),S=$(F,"path",{d:!0,stroke:!0,"stroke-linecap":!0,"stroke-linejoin":!0}),L(S).forEach(o),k=T(F),A=$(F,"path",{d:!0,stroke:!0,"stroke-linecap":!0,"stroke-linejoin":!0}),L(A).forEach(o),P=T(F),q=$(F,"path",{d:!0,stroke:!0,"stroke-linecap":!0,"stroke-linejoin":!0}),L(q).forEach(o),this.h()},h(){u(e,"d","M11.5 3.5C11.5 3.77614 11.7239 4 12 4C12.2761 4 12.5 3.77614 12.5 3.5C12.5 3.22386 12.2761 3 12 3C11.7239 3 11.5 3.22386 11.5 3.5Z"),u(e,"stroke","currentcolor"),u(e,"stroke-linecap","round"),u(e,"stroke-linejoin","round"),u(n,"d","M5.5 6C5.5 6.27614 5.72386 6.5 6 6.5C6.27614 6.5 6.5 6.27614 6.5 6C6.5 5.72386 6.27614 5.5 6 5.5C5.72386 5.5 5.5 5.72386 5.5 6Z"),u(n,"stroke","currentcolor"),u(n,"stroke-linecap","round"),u(n,"stroke-linejoin","round"),u(t,"d","M3 12C3 12.2761 3.22386 12.5 3.5 12.5C3.77614 12.5 4 12.2761 4 12C4 11.7239 3.77614 11.5 3.5 11.5C3.22386 11.5 3 11.7239 3 12Z"),u(t,"stroke","currentcolor"),u(t,"stroke-linecap","round"),u(t,"stroke-linejoin","round"),u(c,"d","M5.5 18C5.5 18.2761 5.72386 18.5 6 18.5C6.27614 18.5 6.5 18.2761 6.5 18C6.5 17.7239 6.27614 17.5 6 17.5C5.72386 17.5 5.5 17.7239 5.5 18Z"),u(c,"stroke","currentcolor"),u(c,"stroke-linecap","round"),u(c,"stroke-linejoin","round"),u(S,"d","M11.5 20.5C11.5 20.7761 11.7239 21 12 21C12.2761 21 12.5 20.7761 12.5 20.5C12.5 20.2239 12.2761 20 12 20C11.7239 20 11.5 20.2239 11.5 20.5Z"),u(S,"stroke","currentcolor"),u(S,"stroke-linecap","round"),u(S,"stroke-linejoin","round"),u(A,"d","M17.5 18C17.5 18.2761 17.7239 18.5 18 18.5C18.2761 18.5 18.5 18.2761 18.5 18C18.5 17.7239 18.2761 17.5 18 17.5C17.7239 17.5 17.5 17.7239 17.5 18Z"),u(A,"stroke","currentcolor"),u(A,"stroke-linecap","round"),u(A,"stroke-linejoin","round"),u(q,"d","M20 12C20 12.2761 20.2239 12.5 20.5 12.5C20.7761 12.5 21 12.2761 21 12C21 11.7239 20.7761 11.5 20.5 11.5C20.2239 11.5 20 11.7239 20 12Z"),u(q,"stroke","currentcolor"),u(q,"stroke-linecap","round"),u(q,"stroke-linejoin","round")},m(F,R){h(F,e,R),h(F,r,R),h(F,n,R),h(F,a,R),h(F,t,R),h(F,l,R),h(F,c,R),h(F,j,R),h(F,S,R),h(F,k,R),h(F,A,R),h(F,P,R),h(F,q,R)},p:b,d(F){F&&(o(e),o(r),o(n),o(a),o(t),o(l),o(c),o(j),o(S),o(k),o(A),o(P),o(q))}}}function i7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[o7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class g7 extends p{constructor(e){super(),v(this,e,h7,i7,V,{})}}function $7(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M15.8588 8.04688L13.2105 3.20859L12.0022 1L10.7895 3.20859L8.14119 8.04688L2.55471 8.9793L0 9.40469L1.80568 11.1965L5.76036 15.1152L4.95337 20.525L4.58332 23L6.91064 21.8957L12.0022 19.4852L17.0938 21.8957L19.4167 23L19.0466 20.525L18.2396 15.1152L22.1943 11.1965L24 9.40469L21.4453 8.9793L15.8588 8.04688ZM19.6396 10.7711L16.7059 13.6801L15.9747 14.4062L16.1263 15.4117L16.7238 19.425L12.9474 17.6332L12.0022 17.1863L11.057 17.6332L7.2807 19.425L7.87814 15.4117L8.02972 14.4062L7.29853 13.6801L4.36485 10.7711L8.51124 10.0793L9.55007 9.90742L10.0405 9.00937L12.0067 5.42148L13.9729 9.00937L14.4633 9.90742L15.5021 10.0793L19.6485 10.7711H19.6396Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function L7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[$7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class C7 extends p{constructor(e){super(),v(this,e,d7,L7,V,{})}}function m7(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M15.8588 8.04688L13.2105 3.20859L12.0022 1L10.7895 3.20859L8.14119 8.04688L2.55471 8.9793L0 9.40469L1.80568 11.1965L5.76036 15.1152L4.95337 20.525L4.58332 23L6.91064 21.8957L12.0022 19.4852L17.0938 21.8957L19.4167 23L19.0466 20.525L18.2396 15.1152L22.1943 11.1965L24 9.40469L21.4453 8.9793L15.8588 8.04688Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function _7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[m7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class V7 extends p{constructor(e){super(),v(this,e,H7,_7,V,{})}}function p7(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M13.125 1.5V2.625V9.97969L19.2844 6.16875L20.4704 8.08125L14.1375 12L20.4657 15.9188L19.2797 17.8312L13.125 14.0203V21.375V22.5H10.875V21.375V14.0203L4.71567 17.8312L3.53442 15.9188L9.86255 12L3.53442 8.08125L4.72036 6.16875L10.875 9.97969V2.625V1.5H13.125Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function v7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[p7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Z7 extends p{constructor(e){super(),v(this,e,M7,v7,V,{})}}function w7(s){let e,r,n,a,t,l;return{c(){e=g("g"),r=g("path"),n=G(),a=g("defs"),t=g("clipPath"),l=g("rect"),this.h()},l(c){e=$(c,"g",{"clip-path":!0});var j=L(e);r=$(j,"path",{d:!0,fill:!0}),L(r).forEach(o),j.forEach(o),n=T(c),a=$(c,"defs",{});var S=L(a);t=$(S,"clipPath",{id:!0});var k=L(t);l=$(k,"rect",{width:!0,height:!0,fill:!0}),L(l).forEach(o),k.forEach(o),S.forEach(o),this.h()},h(){u(r,"d","M13.125 1.125V4.125V5.25H10.875V4.125V1.125V0H13.125V1.125ZM20.4844 5.10469L18.3609 7.22812L17.5641 8.025L15.975 6.43594L16.7719 5.63906L18.8953 3.51562L19.6922 2.71875L21.2812 4.3125L20.4844 5.10938V5.10469ZM5.10469 3.51562L7.22812 5.63906L8.025 6.43594L6.43594 8.025L5.63906 7.22812L3.51562 5.10469L2.71875 4.3125L4.3125 2.71875L5.10938 3.51562H5.10469ZM1.125 10.875H4.125H5.25V13.125H4.125H1.125H0V10.875H1.125ZM19.875 10.875H22.875H24V13.125H22.875H19.875H18.75V10.875H19.875ZM7.22812 18.3656L5.10469 20.4844L4.3125 21.2812L2.71875 19.6875L3.51562 18.8906L5.63906 16.7672L6.43594 15.9703L8.025 17.5594L7.22812 18.3563V18.3656ZM18.3656 16.7766L20.4844 18.8953L21.2812 19.6922L19.6875 21.2812L18.8906 20.4844L16.7672 18.3609L15.9703 17.5641L17.5594 15.975L18.3563 16.7719L18.3656 16.7766ZM13.125 19.875V22.875V24H10.875V22.875V19.875V18.75H13.125V19.875ZM15 12C15 11.2044 14.6839 10.4413 14.1213 9.87868C13.5587 9.31607 12.7956 9 12 9C11.2044 9 10.4413 9.31607 9.87868 9.87868C9.31607 10.4413 9 11.2044 9 12C9 12.7956 9.31607 13.5587 9.87868 14.1213C10.4413 14.6839 11.2044 15 12 15C12.7956 15 13.5587 14.6839 14.1213 14.1213C14.6839 13.5587 15 12.7956 15 12ZM6.75 12C6.75 10.6076 7.30312 9.27226 8.28769 8.28769C9.27226 7.30312 10.6076 6.75 12 6.75C13.3924 6.75 14.7277 7.30312 15.7123 8.28769C16.6969 9.27226 17.25 10.6076 17.25 12C17.25 13.3924 16.6969 14.7277 15.7123 15.7123C14.7277 16.6969 13.3924 17.25 12 17.25C10.6076 17.25 9.27226 16.6969 8.28769 15.7123C7.30312 14.7277 6.75 13.3924 6.75 12Z"),u(r,"fill","currentColor"),u(e,"clip-path","url(#clip0_1488_39)"),u(l,"width","24"),u(l,"height","24"),u(l,"fill","currentColor"),u(t,"id","clip0_1488_39")},m(c,j){h(c,e,j),I(e,r),h(c,n,j),h(c,a,j),I(a,t),I(t,l)},p:b,d(c){c&&(o(e),o(n),o(a))}}}function E7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[w7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class k7 extends p{constructor(e){super(),v(this,e,b7,E7,V,{})}}function S7(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M18.0516 19.6453C16.3922 20.9625 14.2875 21.75 12 21.75C9.7125 21.75 7.60781 20.9625 5.94844 19.6453L9.71719 15.8766C10.3875 16.2703 11.1703 16.5 12.0047 16.5C12.8391 16.5 13.6219 16.275 14.2922 15.8766L18.0609 19.6453H18.0516ZM21.2438 19.6547C22.9641 17.5734 24 14.9109 24 12C24 9.08906 22.9641 6.42656 21.2438 4.34531L21.7969 3.79688L22.5938 3L21 1.41094L20.2031 2.20312L19.6547 2.75625C17.5734 1.03594 14.9109 0 12 0C9.08906 0 6.42656 1.03594 4.34531 2.75625L3.79688 2.20312L3 1.40625L1.41094 3L2.20312 3.79688L2.75625 4.34531C1.03594 6.42656 0 9.08906 0 12C0 14.9109 1.03594 17.5734 2.75625 19.6547L2.20312 20.2031L1.40625 21L3 22.5891L3.79688 21.7922L4.35 21.2391C6.42656 22.9641 9.08906 24 12 24C14.9109 24 17.5734 22.9641 19.6547 21.2438L20.2031 21.7969L21 22.5938L22.5891 21L21.7922 20.2031L21.2391 19.65L21.2438 19.6547ZM19.6453 18.0563L15.8766 14.2875C16.2703 13.6172 16.5 12.8344 16.5 12C16.5 11.1656 16.275 10.3828 15.8766 9.7125L19.6453 5.94375C20.9625 7.60781 21.75 9.7125 21.75 12C21.75 14.2875 20.9625 16.3922 19.6453 18.0516V18.0563ZM18.0516 4.35469L14.2828 8.12344C13.6125 7.72969 12.8297 7.5 11.9953 7.5C11.1609 7.5 10.3781 7.725 9.70781 8.12344L5.94844 4.35469C7.60781 3.0375 9.7125 2.25 12 2.25C14.2875 2.25 16.3922 3.0375 18.0516 4.35469ZM8.12344 14.2875L4.35469 18.0516C3.0375 16.3922 2.25 14.2875 2.25 12C2.25 9.7125 3.0375 7.60781 4.35469 5.94844L8.12344 9.71719C7.72969 10.3875 7.5 11.1703 7.5 12.0047C7.5 12.8391 7.725 13.6219 8.12344 14.2922V14.2875ZM9.75 12C9.75 11.4033 9.98705 10.831 10.409 10.409C10.831 9.98705 11.4033 9.75 12 9.75C12.5967 9.75 13.169 9.98705 13.591 10.409C14.0129 10.831 14.25 11.4033 14.25 12C14.25 12.5967 14.0129 13.169 13.591 13.591C13.169 14.0129 12.5967 14.25 12 14.25C11.4033 14.25 10.831 14.0129 10.409 13.591C9.98705 13.169 9.75 12.5967 9.75 12Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function j7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[S7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class F7 extends p{constructor(e){super(),v(this,e,A7,j7,V,{})}}function B7(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"fill-rule","evenodd"),u(e,"clip-rule","evenodd"),u(e,"d","M7.571 7.571c-1.91.275-3.602.729-4.884 1.325-.726.337-1.369.743-1.844 1.229C.363 10.615 0 11.248 0 12s.363 1.385.843 1.875c.475.486 1.118.892 1.844 1.229 1.282.597 2.974 1.05 4.884 1.325.275 1.91.729 3.602 1.325 4.884.337.726.743 1.369 1.229 1.845.49.48 1.123.842 1.875.842.753 0 1.386-.364 1.875-.844.486-.476.89-1.12 1.227-1.846.595-1.284 1.047-2.976 1.322-4.886 1.91-.275 3.602-.727 4.886-1.322.726-.337 1.37-.741 1.846-1.227.48-.49.844-1.122.844-1.875 0-.752-.363-1.385-.843-1.875-.475-.486-1.118-.892-1.844-1.229-1.282-.596-2.974-1.05-4.884-1.325-.275-1.91-.728-3.602-1.325-4.884-.337-.726-.743-1.369-1.229-1.844C13.385.363 12.752 0 12 0s-1.385.363-1.875.843c-.486.475-.892 1.118-1.229 1.844C8.3 3.969 7.846 5.66 7.571 7.57ZM9.63 7.35a31.964 31.964 0 0 1 4.742 0c-.258-1.557-.637-2.865-1.08-3.819-.28-.6-.562-1.01-.814-1.258C12.227 2.03 12.07 2 12 2s-.228.029-.477.272c-.252.248-.535.659-.813 1.258-.444.954-.823 2.262-1.08 3.819ZM7.35 14.37a31.961 31.961 0 0 1 0-4.742c-1.557.258-2.865.637-3.819 1.08-.6.28-1.01.562-1.258.814C2.03 11.773 2 11.93 2 12s.029.228.272.477c.248.252.659.535 1.258.813.954.444 2.262.823 3.819 1.08Zm2.027-4.995c2.01-.177 4.044-.15 6.046.081 2.1.243 3.853.697 5.048 1.253.6.278 1.01.56 1.258.813.243.25.272.407.272.477s-.029.226-.272.475c-.248.252-.66.534-1.26.813-1.196.554-2.95 1.007-5.051 1.25l-.788.091-.09.788c-.243 2.101-.697 3.855-1.251 5.052-.279.6-.56 1.011-.813 1.259-.248.243-.406.272-.475.272-.07 0-.228-.029-.476-.272-.253-.248-.536-.659-.814-1.258-.556-1.195-1.01-2.947-1.253-5.048a29.923 29.923 0 0 1-.081-6.046Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function P7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[B7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class T7 extends p{constructor(e){super(),v(this,e,G7,P7,V,{})}}function R7(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M0.595899 3.34165L-0.0791016 2.60415L1.3959 1.25415L2.0709 1.99165L9.40423 9.99165L10.0251 10.6666L9.40423 11.3416L2.0709 19.3416L1.3959 20.0791L-0.0791016 18.7291L0.595899 17.9916L7.3084 10.6666L0.595899 3.34165ZM10.3334 18H23.0001H24.0001V20H23.0001H10.3334H9.3334V18H10.3334Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function q7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[R7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class I7 extends p{constructor(e){super(),v(this,e,D7,q7,V,{})}}function z7(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M2.25 1.5V2.625V20.25H22.875H24V22.5H22.875H1.125H0V21.375V2.625V1.5H2.25ZM6 5.25H7.125H12.375H13.5V7.5H12.375H7.125H6V5.25ZM10.125 9.75H16.875H18V12H16.875H10.125H9V9.75H10.125ZM17.625 14.25H21.375H22.5V16.5H21.375H17.625H16.5V14.25H17.625Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function N7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[z7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class U7 extends p{constructor(e){super(),v(this,e,O7,N7,V,{})}}function W7(s){let e,r,n,a,t,l,c,j,S;return{c(){e=g("path"),r=G(),n=g("path"),a=G(),t=g("path"),l=G(),c=g("path"),j=G(),S=g("path"),this.h()},l(k){e=$(k,"path",{d:!0,fill:!0}),L(e).forEach(o),r=T(k),n=$(k,"path",{d:!0,fill:!0}),L(n).forEach(o),a=T(k),t=$(k,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(t).forEach(o),l=T(k),c=$(k,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(c).forEach(o),j=T(k),S=$(k,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(S).forEach(o),this.h()},h(){u(e,"d","M23 14H13L14 21H23V14Z"),u(e,"fill","#F87171"),u(n,"d","M1 14H11L10 21H1V14Z"),u(n,"fill","#F87171"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(t,"d","M3.31653 3L9.19612 4.17592L8.80388 6.13708L4.68347 5.31299L2.36447 12.5H21.6355L19.3165 5.313L15.1961 6.13708L14.8039 4.17592L20.6835 3L24 13.3459V22H13.5144L12.3686 17.5H11.6314L10.4856 22H0V13.3459L3.31653 3ZM14.1179 16.2649L15.0689 20H22V14.5H13.7134L14.1179 16.2649ZM10.2866 14.5H2V20H8.93106L9.88212 16.2649L10.2866 14.5Z"),u(t,"fill","currentcolor"),u(c,"fill-rule","evenodd"),u(c,"clip-rule","evenodd"),u(c,"d","M4.89645 17.3536L3.25 15.7071L3.95711 15L5.60355 16.6464L7.25 15L7.95711 15.7071L6.31066 17.3536L7.95711 19L7.25 19.7071L5.60355 18.0607L3.95711 19.7071L3.25 19L4.89645 17.3536Z"),u(c,"fill","currentcolor"),u(S,"fill-rule","evenodd"),u(S,"clip-rule","evenodd"),u(S,"d","M17.6893 17.3536L16.0429 15.7071L16.75 15L18.3964 16.6464L20.0429 15L20.75 15.7071L19.1036 17.3536L20.75 19L20.0429 19.7071L18.3964 18.0607L16.75 19.7071L16.0429 19L17.6893 17.3536Z"),u(S,"fill","currentcolor")},m(k,A){h(k,e,A),h(k,r,A),h(k,n,A),h(k,a,A),h(k,t,A),h(k,l,A),h(k,c,A),h(k,j,A),h(k,S,A)},p:b,d(k){k&&(o(e),o(r),o(n),o(a),o(t),o(l),o(c),o(j),o(S))}}}function J7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[W7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class Y7 extends p{constructor(e){super(),v(this,e,K7,J7,V,{})}}function Q7(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"fill-rule","evenodd"),u(e,"clip-rule","evenodd"),u(e,"d","M3.31653 3L9.19612 4.17592L8.80388 6.13708L4.68347 5.31299L2.36447 12.5H21.6355L19.3165 5.313L15.1961 6.13708L14.8039 4.17592L20.6835 3L24 13.3459V22H13.5144L12.3686 17.5H11.6314L10.4856 22H0V13.3459L3.31653 3ZM14.1179 16.2649L15.0689 20H22V14.5H13.7134L14.1179 16.2649ZM10.2866 14.5H2V20H8.93106L9.88212 16.2649L10.2866 14.5Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function X7(s){let e,r;const n=[s[0]];let a={$$slots:{default:[Q7]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class y7 extends p{constructor(e){super(),v(this,e,x7,X7,V,{})}}function e3(s){let e,r,n,a,t;return{c(){e=g("path"),r=G(),n=g("path"),a=G(),t=g("path"),this.h()},l(l){e=$(l,"path",{d:!0,fill:!0}),L(e).forEach(o),r=T(l),n=$(l,"path",{d:!0,fill:!0}),L(n).forEach(o),a=T(l),t=$(l,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(t).forEach(o),this.h()},h(){u(e,"d","M23 14L13 14L14 21H23V14Z"),u(e,"fill","#4FD1C5"),u(n,"d","M1 14H11L10 21H1V14Z"),u(n,"fill","#C4B5FD"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(t,"d","M3.31653 3L9.19612 4.17592L8.80388 6.13708L4.68347 5.31299L2.36447 12.5H21.6355L19.3165 5.313L15.1961 6.13708L14.8039 4.17592L20.6835 3L24 13.3459V22H13.5144L12.3686 17.5H11.6314L10.4856 22H0V13.3459L3.31653 3ZM14.1179 16.2649L15.0689 20H22V14.5H13.7134L14.1179 16.2649ZM10.2866 14.5H2V20H8.93106L9.88212 16.2649L10.2866 14.5Z"),u(t,"fill","currentcolor")},m(l,c){h(l,e,c),h(l,r,c),h(l,n,c),h(l,a,c),h(l,t,c)},p:b,d(l){l&&(o(e),o(r),o(n),o(a),o(t))}}}function t3(s){let e,r;const n=[s[0]];let a={$$slots:{default:[e3]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class n3 extends p{constructor(e){super(),v(this,e,r3,t3,V,{})}}function s3(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M8.4 0H9H15H15.6L15.9375 0.501562L18.1031 3.75H18.7453H21H22.5V6H20.8312L19.5 24H4.5L3.16875 6H1.5V3.75H3H5.25469H5.89688L8.0625 0.501562L8.4 0ZM8.60625 3.75H15.4031L14.4 2.25H9.6L8.60156 3.75H8.60625ZM5.42344 6L6.59062 21.75H17.4094L18.5766 6H5.42344Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function l3(s){let e,r;const n=[s[0]];let a={$$slots:{default:[s3]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class c3 extends p{constructor(e){super(),v(this,e,a3,l3,V,{})}}function f3(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M24 9.14286L23.52 9.30357L22.9875 9.48214L12 13.1429L4.73625 10.7214L3 12.25V15.2429C3.5775 16.1393 4.0425 17.6857 3 20L0 19.4286C0 19.4286 1.21875 17.7679 1.8 15.9679V12V11.75L1.99125 11.5786L3.45 10.2929L1.00875 9.47857L0.47625 9.3L0 9.14286V8L0.48 7.83929L1.0125 7.66071L12 4L22.9912 7.66429L23.5238 7.84286L24 8V9.14286ZM12 11.325L20.265 8.57143L12 5.81786L3.735 8.57143L5.30625 9.09643L11.79 6.78214L12.21 7.85357L7.0725 9.68929L12 11.3321V11.325ZM5.385 12.1464L7.1325 12.7286L6.645 17.1393C6.825 17.2643 7.125 17.425 7.5675 17.5893C8.625 17.9857 10.2 18.2857 12 18.2857C13.8 18.2857 15.375 17.9857 16.4363 17.5929C16.8788 17.4286 17.1788 17.2643 17.3588 17.1429L16.8713 12.7321L18.6188 12.15L19.2 17.4286C19.2 18.6893 15.975 20 12 20C8.025 20 4.8 18.6893 4.8 17.4286L5.385 12.15V12.1464ZM17.5275 17C17.5298 16.9972 17.5314 16.9939 17.5322 16.9905C17.533 16.987 17.5331 16.9835 17.5324 16.98C17.5317 16.9765 17.5302 16.9732 17.528 16.9703C17.5259 16.9674 17.5231 16.965 17.5199 16.9632C17.5166 16.9614 17.5131 16.9603 17.5094 16.96C17.5057 16.9596 17.5019 16.96 17.4984 16.9611C17.4949 16.9622 17.4916 16.964 17.4889 16.9664C17.4861 16.9688 17.484 16.9717 17.4825 16.975C17.4802 16.9778 17.4786 16.9811 17.4778 16.9845C17.477 16.988 17.4769 16.9915 17.4776 16.995C17.4783 16.9985 17.4798 17.0018 17.482 17.0047C17.4841 17.0076 17.4869 17.01 17.4901 17.0118C17.4934 17.0136 17.4969 17.0147 17.5006 17.015C17.5043 17.0154 17.5081 17.015 17.5116 17.0139C17.5151 17.0128 17.5184 17.011 17.5211 17.0086C17.5239 17.0062 17.526 17.0033 17.5275 17ZM6.4725 17C6.47321 17.0038 6.47485 17.0075 6.47728 17.0106C6.47972 17.0137 6.48289 17.0163 6.48655 17.018C6.4902 17.0198 6.49423 17.0207 6.49832 17.0207C6.5024 17.0207 6.50644 17.0198 6.51009 17.018C6.51375 17.0163 6.51693 17.0138 6.51938 17.0106C6.52183 17.0075 6.52348 17.0039 6.52419 17.0001C6.52491 16.9962 6.52468 16.9923 6.52352 16.9886C6.52236 16.9848 6.5203 16.9814 6.5175 16.9786C6.51679 16.9747 6.51515 16.9711 6.51272 16.968C6.51028 16.9649 6.50711 16.9623 6.50346 16.9606C6.4998 16.9588 6.49577 16.9579 6.49169 16.9579C6.4876 16.9579 6.48356 16.9588 6.47991 16.9605C6.47625 16.9623 6.47307 16.9648 6.47062 16.9679C6.46817 16.971 6.46653 16.9747 6.46581 16.9785C6.46509 16.9823 6.46532 16.9863 6.46648 16.99C6.46764 16.9937 6.4697 16.9972 6.4725 17Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function u3(s){let e,r;const n=[s[0]];let a={$$slots:{default:[f3]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class i3 extends p{constructor(e){super(),v(this,e,o3,u3,V,{})}}function h3(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M8.2 8.09064L7.69062 8.64064L8.79063 9.66251L9.3 9.11251L11.25 7.00939V14.25V15H12.75V14.25V7.00939L14.7 9.10939L15.2094 9.65939L16.3094 8.63751L15.8 8.08751L12.55 4.58751L12 3.99689L11.45 4.59064L8.2 8.09064ZM12 18.5C8.40937 18.5 5.5 15.5906 5.5 12H4C4 16.4188 7.58125 20 12 20C16.4187 20 20 16.4188 20 12V11.25H18.5V12C18.5 15.5906 15.5906 18.5 12 18.5Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function g3(s){let e,r;const n=[s[0]];let a={$$slots:{default:[h3]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class L3 extends p{constructor(e){super(),v(this,e,$3,g3,V,{})}}function d3(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M13.125 16.875V18H10.875V16.875V4.58906L6.42188 9.04219L5.625 9.83906L4.03594 8.25L4.83281 7.45312L11.2031 1.07812L12 0.28125L12.7969 1.07812L19.1719 7.45312L19.9688 8.25L18.375 9.83906L17.5781 9.04219L13.125 4.58906V16.875ZM14.625 16.5V14.25H21.75H24V16.5V21.75V24H21.75H2.25H0V21.75V16.5V14.25H2.25H9.375V16.5H2.25V21.75H21.75V16.5H14.625ZM18 19.125C18 18.8266 18.1185 18.5405 18.3295 18.3295C18.5405 18.1185 18.8266 18 19.125 18C19.4234 18 19.7095 18.1185 19.9205 18.3295C20.1315 18.5405 20.25 18.8266 20.25 19.125C20.25 19.4234 20.1315 19.7095 19.9205 19.9205C19.7095 20.1315 19.4234 20.25 19.125 20.25C18.8266 20.25 18.5405 20.1315 18.3295 19.9205C18.1185 19.7095 18 19.4234 18 19.125Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function C3(s){let e,r;const n=[s[0]];let a={$$slots:{default:[d3]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class _3 extends p{constructor(e){super(),v(this,e,m3,C3,V,{})}}function H3(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M12 2.25C14.5859 2.25 17.0658 3.27723 18.8943 5.10571C20.7228 6.93419 21.75 9.41414 21.75 12C21.75 14.5859 20.7228 17.0658 18.8943 18.8943C17.0658 20.7228 14.5859 21.75 12 21.75C9.41414 21.75 6.93419 20.7228 5.10571 18.8943C3.27723 17.0658 2.25 14.5859 2.25 12C2.25 9.41414 3.27723 6.93419 5.10571 5.10571C6.93419 3.27723 9.41414 2.25 12 2.25ZM12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24ZM13.5 5.25C13.5 4.85218 13.342 4.47064 13.0607 4.18934C12.7794 3.90804 12.3978 3.75 12 3.75C11.6022 3.75 11.2206 3.90804 10.9393 4.18934C10.658 4.47064 10.5 4.85218 10.5 5.25C10.5 5.64782 10.658 6.02936 10.9393 6.31066C11.2206 6.59196 11.6022 6.75 12 6.75C12.3978 6.75 12.7794 6.59196 13.0607 6.31066C13.342 6.02936 13.5 5.64782 13.5 5.25ZM12 19.125C13.4484 19.125 14.625 17.9484 14.625 16.5C14.625 15.8438 14.3859 15.2437 13.9828 14.7844L17.1562 7.57969L17.6109 6.54844L15.5531 5.64375L15.0984 6.675L11.925 13.875C10.5094 13.9125 9.375 15.075 9.375 16.5C9.375 17.9484 10.5516 19.125 12 19.125ZM9 7.5C9 7.10218 8.84196 6.72064 8.56066 6.43934C8.27936 6.15804 7.89782 6 7.5 6C7.10218 6 6.72064 6.15804 6.43934 6.43934C6.15804 6.72064 6 7.10218 6 7.5C6 7.89782 6.15804 8.27936 6.43934 8.56066C6.72064 8.84196 7.10218 9 7.5 9C7.89782 9 8.27936 8.84196 8.56066 8.56066C8.84196 8.27936 9 7.89782 9 7.5ZM5.25 13.5C5.64782 13.5 6.02936 13.342 6.31066 13.0607C6.59196 12.7794 6.75 12.3978 6.75 12C6.75 11.6022 6.59196 11.2206 6.31066 10.9393C6.02936 10.658 5.64782 10.5 5.25 10.5C4.85218 10.5 4.47064 10.658 4.18934 10.9393C3.90804 11.2206 3.75 11.6022 3.75 12C3.75 12.3978 3.90804 12.7794 4.18934 13.0607C4.47064 13.342 4.85218 13.5 5.25 13.5ZM20.25 12C20.25 11.6022 20.092 11.2206 19.8107 10.9393C19.5294 10.658 19.1478 10.5 18.75 10.5C18.3522 10.5 17.9706 10.658 17.6893 10.9393C17.408 11.2206 17.25 11.6022 17.25 12C17.25 12.3978 17.408 12.7794 17.6893 13.0607C17.9706 13.342 18.3522 13.5 18.75 13.5C19.1478 13.5 19.5294 13.342 19.8107 13.0607C20.092 12.7794 20.25 12.3978 20.25 12Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function V3(s){let e,r;const n=[s[0]];let a={$$slots:{default:[H3]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class v3 extends p{constructor(e){super(),v(this,e,p3,V3,V,{})}}function M3(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"fill-rule","evenodd"),u(e,"clip-rule","evenodd"),u(e,"d","M10 5C10 3.89543 10.8954 3 12 3C13.1046 3 14 3.89543 14 5C14 6.10457 13.1046 7 12 7C10.8954 7 10 6.10457 10 5ZM10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12ZM10 19C10 17.8954 10.8954 17 12 17C13.1046 17 14 17.8954 14 19C14 20.1046 13.1046 21 12 21C10.8954 21 10 20.1046 10 19Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function Z3(s){let e,r;const n=[s[0]];let a={$$slots:{default:[M3]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class E3 extends p{constructor(e){super(),v(this,e,w3,Z3,V,{})}}function b3(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"d","M1.284 20.25 0 22.5H24l-1.284-2.25-9.422-16.481L12 1.5l-1.294 2.269L1.284 20.25Zm18.84 0H3.876L12 6.033l8.123 14.217Zm-9.249-6.375V15h2.25V9.75h-2.25v4.125Zm2.25 4.875V16.5h-2.25v2.25h2.25Z"),u(e,"fill","currentcolor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function k3(s){let e,r;const n=[s[0]];let a={$$slots:{default:[b3]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class j3 extends p{constructor(e){super(),v(this,e,S3,k3,V,{})}}function A3(s){let e;return{c(){e=g("path"),this.h()},l(r){e=$(r,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),L(e).forEach(o),this.h()},h(){u(e,"fill-rule","evenodd"),u(e,"clip-rule","evenodd"),u(e,"d","M12 3.16663C6.47715 3.16663 2 7.64377 2 13.1666H0C0 6.53919 5.37258 1.16663 12 1.16663C18.6274 1.16663 24 6.53919 24 13.1666H22C22 7.64377 17.5229 3.16663 12 3.16663ZM18.3333 13.1666C18.3333 9.66881 15.4978 6.83328 12 6.83328V4.83328C16.6024 4.83328 20.3333 8.56423 20.3333 13.1666C20.3333 17.769 16.6024 21.4999 12 21.4999C7.39763 21.4999 3.66667 17.769 3.66667 13.1666H5.66667C5.66667 16.6644 8.50219 19.4999 12 19.4999C15.4978 19.4999 18.3333 16.6644 18.3333 13.1666ZM12 10.4999C10.5272 10.4999 9.33333 11.6938 9.33333 13.1666C9.33333 14.6394 10.5272 15.8333 12 15.8333C13.4728 15.8333 14.6667 14.6394 14.6667 13.1666C14.6667 11.6938 13.4728 10.4999 12 10.4999ZM7.33333 13.1666C7.33333 10.5893 9.42267 8.49994 12 8.49994C14.5773 8.49994 16.6667 10.5893 16.6667 13.1666C16.6667 15.7439 14.5773 17.8333 12 17.8333C9.42267 17.8333 7.33333 15.7439 7.33333 13.1666Z"),u(e,"fill","currentColor")},m(r,n){h(r,e,n)},p:b,d(r){r&&o(e)}}}function F3(s){let e,r;const n=[s[0]];let a={$$slots:{default:[A3]},$$scope:{ctx:s}};for(let t=0;t{r(0,e=f(f({},e),i(n)))},e=i(e),[e]}class P3 extends p{constructor(e){super(),v(this,e,B3,F3,V,{})}}const G3={activity:L1,add:_1,archives:v1,"arrow-down":E1,"arrow-left":j1,"arrow-up":q1,"arrow-right":P1,ascending:N1,astronaut:J1,"batch-operation":X1,book:t2,bookmark:l2,"calendar-plus":u2,calendar:g2,canceled:C2,chart:V2,checkmark:Y,"chevron-down":b2,"chevron-left":A2,"chevron-right":G2,"chevron-up":O2,"chevron-selector-vertical":D2,clock:K2,close:x2,"comet-solid":r5,comet:a5,compact:o5,"converter-down":$5,"converter-up":m5,copy:p5,descending:w5,download:B5,"dollar-badge":S5,error:R5,exit:z5,"external-link":W5,"eye-hide":Q5,"eye-show":ee,feather:se,feed:fe,"feedback-circle":he,feedback:de,"file-import":He,"file-upload":Me,filter:Ae,"filter-solid":be,"fire-extinguisher":Ge,github:De,graph:Oe,hyphen:Ke,import:xe,info:rt,"inverted-checkmark":ut,json:gt,keyboard:Ct,labs:Vt,"lightning-bolt":Zt,link:kt,lock:Ft,logout:Tt,marker:It,merge:Ut,moon:Yt,"namespace-switcher":yt,namespace:n0,nexus:c0,"pin-filled":i0,pin:L0,regions:_0,relationship:v0,retention:E0,retry:j0,robot:P0,"rocket-ship":q0,schedules:N0,search:J0,settings:X0,signal:t7,sliders:l7,spinner:g7,"star-empty":C7,"star-filled":V7,success:Y,sun:k7,summary:Z7,support:F7,"spinner-solid":u7,"temporal-logo":T7,terminal:I7,timeline:U7,"transcoder-error":Y7,"transcoder-on":n3,"transcoder-off":y7,trash:c3,tutorial:i3,update:L3,upload:_3,usage:v3,"vertical-ellipsis":E3,warning:j3,workflow:P3};function Q(s){let e,r,n;const a=[{width:s[0]},{height:s[1]},{title:s[2]},{class:s[4].class},s[5]];var t=s[3];function l(c){let j={};for(let S=0;S{H(k,1)}),x()}t?(e=K(t,l()),m(e.$$.fragment),d(e.$$.fragment,1),_(e,r.parentNode,r)):e=null}else t&&e.$set(S)},i(c){n||(e&&d(e.$$.fragment,c),n=!0)},o(c){e&&C(e.$$.fragment,c),n=!1},d(c){c&&o(r),e&&H(e,c)}}}function T3(s){let e,r,n=s[3]&&Q(s);return{c(){n&&n.c(),e=O()},l(a){n&&n.l(a),e=O()},m(a,t){n&&n.m(a,t),h(a,e,t),r=!0},p(a,[t]){a[3]?n?(n.p(a,t),t&8&&d(n,1)):(n=Q(a),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(X(),C(n,1,1,()=>{n=null}),x())},i(a){r||(d(n),r=!0)},o(a){C(n),r=!1},d(a){a&&o(e),n&&n.d(a)}}}function R3(s,e,r){let n;const a=["name","width","height","title"];let t=z(e,a),{name:l}=e,{width:c=16}=e,{height:j=16}=e,{title:S=""}=e;return s.$$set=k=>{r(4,e=f(f({},e),i(k))),r(5,t=z(e,a)),"name"in k&&r(6,l=k.name),"width"in k&&r(0,c=k.width),"height"in k&&r(1,j=k.height),"title"in k&&r(2,S=k.title)},s.$$.update=()=>{s.$$.dirty&64&&r(3,n=G3[l])},e=i(e),[c,j,S,n,e,t,l]}class N3 extends p{constructor(e){super(),v(this,e,R3,T3,V,{name:6,width:0,height:1,title:2})}}export{N3 as I,g7 as S,lt as c,nt as p}; diff --git a/ui/assets/local/_app/immutable/chunks/import-events.0FiC_E_5.js b/ui/assets/local/_app/immutable/chunks/import-events.0FiC_E_5.js new file mode 100644 index 0000000000..7dfc868dd7 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/import-events.0FiC_E_5.js @@ -0,0 +1 @@ +import{w as t}from"./entry.6mxJxwSM.js";const r=t([]),s=t([]);export{s as a,r as i}; diff --git a/ui/assets/local/_app/immutable/chunks/import-events.w1hCqdFU.js b/ui/assets/local/_app/immutable/chunks/import-events.w1hCqdFU.js deleted file mode 100644 index d3e1795c55..0000000000 --- a/ui/assets/local/_app/immutable/chunks/import-events.w1hCqdFU.js +++ /dev/null @@ -1 +0,0 @@ -import{w as t}from"./entry.1BQh90wu.js";const r=t([]),s=t([]);export{s as a,r as i}; diff --git a/ui/assets/local/_app/immutable/chunks/index.PXnAuqG7.js b/ui/assets/local/_app/immutable/chunks/index.534V873p.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/index.PXnAuqG7.js rename to ui/assets/local/_app/immutable/chunks/index.534V873p.js index 8a118451b0..b84610a9d5 100644 --- a/ui/assets/local/_app/immutable/chunks/index.PXnAuqG7.js +++ b/ui/assets/local/_app/immutable/chunks/index.534V873p.js @@ -1,3 +1,3 @@ -import{U as f,V as x}from"./scheduler.1T9hOnFr.js";function h(n){const a=n-1;return a*a*a+1}function v(n,{delay:a=0,duration:p=400,easing:c=x}={}){const s=+getComputedStyle(n).opacity;return{delay:a,duration:p,easing:c,css:t=>`opacity: ${t*s}`}}function F(n,{delay:a=0,duration:p=400,easing:c=h,x:s=0,y:t=0,opacity:l=0}={}){const i=getComputedStyle(n),d=+i.opacity,r=i.transform==="none"?"":i.transform,e=d*(1-l),[y,u]=f(s),[_,m]=f(t);return{delay:a,duration:p,easing:c,css:($,g)=>` +import{U as f,V as x}from"./scheduler.pPC3woXQ.js";function h(n){const a=n-1;return a*a*a+1}function v(n,{delay:a=0,duration:p=400,easing:c=x}={}){const s=+getComputedStyle(n).opacity;return{delay:a,duration:p,easing:c,css:t=>`opacity: ${t*s}`}}function F(n,{delay:a=0,duration:p=400,easing:c=h,x:s=0,y:t=0,opacity:l=0}={}){const i=getComputedStyle(n),d=+i.opacity,r=i.transform==="none"?"":i.transform,e=d*(1-l),[y,u]=f(s),[_,m]=f(t);return{delay:a,duration:p,easing:c,css:($,g)=>` transform: ${r} translate(${(1-$)*y}${u}, ${(1-$)*_}${m}); opacity: ${d-e*g}`}}function w(n,{delay:a=0,duration:p=400,easing:c=h,axis:s="y"}={}){const t=getComputedStyle(n),l=+t.opacity,i=s==="y"?"height":"width",d=parseFloat(t[i]),r=s==="y"?["top","bottom"]:["left","right"],e=r.map(o=>`${o[0].toUpperCase()}${o.slice(1)}`),y=parseFloat(t[`padding${e[0]}`]),u=parseFloat(t[`padding${e[1]}`]),_=parseFloat(t[`margin${e[0]}`]),m=parseFloat(t[`margin${e[1]}`]),$=parseFloat(t[`border${e[0]}Width`]),g=parseFloat(t[`border${e[1]}Width`]);return{delay:a,duration:p,easing:c,css:o=>`overflow: hidden;opacity: ${Math.min(o*20,1)*l};${i}: ${o*d}px;padding-${r[0]}: ${o*y}px;padding-${r[1]}: ${o*u}px;margin-${r[0]}: ${o*_}px;margin-${r[1]}: ${o*m}px;border-${r[0]}-width: ${o*$}px;border-${r[1]}-width: ${o*g}px;`}}export{F as a,v as f,w as s}; diff --git a/ui/assets/local/_app/immutable/chunks/index.LNKoJEXQ.js b/ui/assets/local/_app/immutable/chunks/index.Oj9gxlvg.js similarity index 87% rename from ui/assets/local/_app/immutable/chunks/index.LNKoJEXQ.js rename to ui/assets/local/_app/immutable/chunks/index.Oj9gxlvg.js index c0398fa3ad..f45fb03aaf 100644 --- a/ui/assets/local/_app/immutable/chunks/index.LNKoJEXQ.js +++ b/ui/assets/local/_app/immutable/chunks/index.Oj9gxlvg.js @@ -1 +1 @@ -import{s as c,h as f,j as m,k as u,f as r,m as o,W as i,i as h,v as n}from"./scheduler.1T9hOnFr.js";import{S as g,i as k}from"./index.cVovwi_s.js";import{t as d}from"./tw-merge.NbP7EmZe.js";function v(l){let a,e;return{c(){a=f("div"),this.h()},l(t){a=m(t,"DIV",{class:!0}),u(a).forEach(r),this.h()},h(){o(a,"class",e=i(d("background-animate w-full rounded-full bg-gradient-to-r from-slate-100 via-slate-200 to-slate-300 dark:bg-gradient-to-r dark:from-slate-600 dark:via-slate-700 dark:to-slate-800",l[0]))+" svelte-1hpjfio")},m(t,s){h(t,a,s)},p(t,[s]){s&1&&e!==(e=i(d("background-animate w-full rounded-full bg-gradient-to-r from-slate-100 via-slate-200 to-slate-300 dark:bg-gradient-to-r dark:from-slate-600 dark:via-slate-700 dark:to-slate-800",t[0]))+" svelte-1hpjfio")&&o(a,"class",e)},i:n,o:n,d(t){t&&r(a)}}}function p(l,a,e){let{class:t=""}=a;return l.$$set=s=>{"class"in s&&e(0,t=s.class)},[t]}class j extends g{constructor(a){super(),k(this,a,p,v,c,{class:0})}}export{j as S}; +import{s as c,h as f,j as m,k as u,f as r,m as o,W as i,i as h,v as n}from"./scheduler.pPC3woXQ.js";import{S as g,i as k}from"./index.Z3Qqxacm.js";import{t as d}from"./tw-merge.NbP7EmZe.js";function v(l){let a,e;return{c(){a=f("div"),this.h()},l(t){a=m(t,"DIV",{class:!0}),u(a).forEach(r),this.h()},h(){o(a,"class",e=i(d("background-animate w-full rounded-full bg-gradient-to-r from-slate-100 via-slate-200 to-slate-300 dark:bg-gradient-to-r dark:from-slate-600 dark:via-slate-700 dark:to-slate-800",l[0]))+" svelte-1hpjfio")},m(t,s){h(t,a,s)},p(t,[s]){s&1&&e!==(e=i(d("background-animate w-full rounded-full bg-gradient-to-r from-slate-100 via-slate-200 to-slate-300 dark:bg-gradient-to-r dark:from-slate-600 dark:via-slate-700 dark:to-slate-800",t[0]))+" svelte-1hpjfio")&&o(a,"class",e)},i:n,o:n,d(t){t&&r(a)}}}function p(l,a,e){let{class:t=""}=a;return l.$$set=s=>{"class"in s&&e(0,t=s.class)},[t]}class j extends g{constructor(a){super(),k(this,a,p,v,c,{class:0})}}export{j as S}; diff --git a/ui/assets/local/_app/immutable/chunks/index.RJsVUSS8.js b/ui/assets/local/_app/immutable/chunks/index.RJsVUSS8.js new file mode 100644 index 0000000000..490f9c2cb2 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/index.RJsVUSS8.js @@ -0,0 +1,735 @@ +import{_ as be}from"./preload-helper.0HuHagjb.js";function Ko(o,e=0){return o[o.length-(1+e)]}function L$(o){if(o.length===0)throw new Error("Invalid tail call");return[o.slice(0,o.length-1),o[o.length-1]]}function di(o,e,t=(i,n)=>i===n){if(o===e)return!0;if(!o||!e||o.length!==e.length)return!1;for(let i=0,n=o.length;it(o[i],e))}function D$(o,e){let t=0,i=o-1;for(;t<=i;){const n=(t+i)/2|0,s=e(n);if(s<0)t=n+1;else if(s>0)i=n-1;else return n}return-(t+1)}function mI(o,e,t){if(o=o|0,o>=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],s=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?s.push(a):r.push(a)}return o!!e)}function bO(o){let e=0;for(let t=0;t0}function Gd(o,e=t=>t){const t=new Set;return o.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function $R(o,e){return o.length>0?o[0]:e}function Os(o,e){let t=typeof e=="number"?o:0;typeof e=="number"?t=o:(t=0,e=o);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function By(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function aD(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function CC(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function pI(o,e){for(const t of e)o.push(t)}function jR(o){return Array.isArray(o)?o:[o]}function I$(o,e,t){const i=V7(o,e),n=o.length,s=t.length;o.length=n+s;for(let r=n-1;r>=i;r--)o[r+s]=o[r];for(let r=0;r0}o.isGreaterThan=i;function n(s){return s===0}o.isNeitherLessOrGreaterThan=n,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})(Fv||(Fv={}));function zs(o,e){return(t,i)=>e(o(t),o(i))}function E$(...o){return(e,t)=>{for(const i of o){const n=i(e,t);if(!Fv.isNeitherLessOrGreaterThan(n))return n}return Fv.neitherLessOrGreaterThan}}const Br=(o,e)=>o-e,N$=(o,e)=>Br(o?1:0,e?1:0);function z7(o){return(e,t)=>-o(e,t)}class Zd{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class Ll{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new Ll(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new Ll(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||Fv.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}}Ll.empty=new Ll(o=>{});class Mw{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort((n,s)=>t(e[n],e[s]));return new Mw(i)}apply(e){return e.map((t,i)=>e[this._indexMap[i]])}inverse(){const e=this._indexMap.slice();for(let t=0;t"u"}function xl(o){return!Do(o)}function Do(o){return Hs(o)||o===null}function pt(o,e){if(!o)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Hc(o){if(Do(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function Bv(o){return typeof o=="function"}function M$(o,e){const t=Math.min(o.length,e.length);for(let i=0;i{e[t]=i&&typeof i=="object"?hd(i):i}),e}function A$(o){if(!o||typeof o!="object")return o;const e=[o];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if($7.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!T$(n)&&e.push(n)}}return o}const $7=Object.prototype.hasOwnProperty;function j7(o,e){return _I(o,e,new Set)}function _I(o,e,t){if(Do(o))return o;const i=e(o);if(typeof i<"u")return i;if(Array.isArray(o)){const n=[];for(const s of o)n.push(_I(s,e,t));return n}if(_s(o)){if(t.has(o))throw new Error("Cannot clone recursive data-structure");t.add(o);const n={};for(const s in o)$7.call(o,s)&&(n[s]=_I(o[s],e,t));return t.delete(o),n}return o}function Wy(o,e,t=!0){return _s(o)?(_s(e)&&Object.keys(e).forEach(i=>{i in o?t&&(_s(o[i])&&_s(e[i])?Wy(o[i],e[i],t):o[i]=e[i]):o[i]=e[i]}),o):e}function Ro(o,e){if(o===e)return!0;if(o==null||e===null||e===void 0||typeof o!=typeof e||typeof o!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(o)){if(o.length!==e.length)return!1;for(t=0;tfunction(){const s=Array.prototype.slice.call(arguments,0);return e(n,s)},i={};for(const n of o)i[n]=t(n);return i}let F$=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function K7(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=n[0],r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),F$&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function m(o,e,...t){return K7(e,t)}function Fe(o,e,...t){const i=K7(e,t);return{value:i,original:i}}var lD,dD;const Of="en";let Rw=!1,Aw=!1,j1=!1,q7=!1,qR=!1,GR=!1,G7=!1,wC,K1=Of,SO=Of,B$,Qr;const Wd=globalThis;let cs;typeof Wd.vscode<"u"&&typeof Wd.vscode.process<"u"?cs=Wd.vscode.process:typeof process<"u"&&typeof((lD=process==null?void 0:process.versions)===null||lD===void 0?void 0:lD.node)=="string"&&(cs=process);const W$=typeof((dD=cs==null?void 0:cs.versions)===null||dD===void 0?void 0:dD.electron)=="string",H$=W$&&(cs==null?void 0:cs.type)==="renderer";if(typeof cs=="object"){Rw=cs.platform==="win32",Aw=cs.platform==="darwin",j1=cs.platform==="linux",j1&&cs.env.SNAP&&cs.env.SNAP_REVISION,cs.env.CI||cs.env.BUILD_ARTIFACTSTAGINGDIRECTORY,wC=Of,K1=Of;const o=cs.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];wC=e.locale,SO=e.osLocale,K1=t||Of,B$=e._translationsConfigFile}catch{}q7=!0}else typeof navigator=="object"&&!H$?(Qr=navigator.userAgent,Rw=Qr.indexOf("Windows")>=0,Aw=Qr.indexOf("Macintosh")>=0,GR=(Qr.indexOf("Macintosh")>=0||Qr.indexOf("iPad")>=0||Qr.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,j1=Qr.indexOf("Linux")>=0,G7=(Qr==null?void 0:Qr.indexOf("Mobi"))>=0,qR=!0,m({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),wC=Of,K1=wC,SO=navigator.language):console.error("Unable to resolve platform.");const Fn=Rw,it=Aw,xs=j1,_a=q7,$h=qR,V$=qR&&typeof Wd.importScripts=="function",z$=V$?Wd.origin:void 0,Da=GR,Z7=G7,Ml=Qr,U$=K1,$$=typeof Wd.postMessage=="function"&&!Wd.importScripts,Y7=(()=>{if($$){const o=[];Wd.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i{const i=++e;o.push({id:i,callback:t}),Wd.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),to=Aw||GR?2:Rw?1:3;let yO=!0,LO=!1;function Q7(){if(!LO){LO=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,yO=new Uint16Array(o.buffer)[0]===513}return yO}const X7=!!(Ml&&Ml.indexOf("Chrome")>=0),j$=!!(Ml&&Ml.indexOf("Firefox")>=0),K$=!!(!X7&&Ml&&Ml.indexOf("Safari")>=0),q$=!!(Ml&&Ml.indexOf("Edg/")>=0),G$=!!(Ml&&Ml.indexOf("Android")>=0),zn={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var dt;(function(o){function e(C){return C&&typeof C=="object"&&typeof C[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(C){yield C}o.single=n;function s(C){return e(C)?C:n(C)}o.wrap=s;function r(C){return C||t}o.from=r;function*a(C){for(let w=C.length-1;w>=0;w--)yield C[w]}o.reverse=a;function l(C){return!C||C[Symbol.iterator]().next().done===!0}o.isEmpty=l;function d(C){return C[Symbol.iterator]().next().value}o.first=d;function c(C,w){for(const S of C)if(w(S))return!0;return!1}o.some=c;function h(C,w){for(const S of C)if(w(S))return S}o.find=h;function*u(C,w){for(const S of C)w(S)&&(yield S)}o.filter=u;function*g(C,w){let S=0;for(const L of C)yield w(L,S++)}o.map=g;function*f(...C){for(const w of C)yield*w}o.concat=f;function p(C,w,S){let L=S;for(const D of C)L=w(L,D);return L}o.reduce=p;function*_(C,w,S=C.length){for(w<0&&(w+=C.length),S<0?S+=C.length:S>C.length&&(S=C.length);w{n||(n=!0,this._remove(i))}}shift(){if(this._first!==Ui.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Ui.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Ui.Undefined&&e.next!==Ui.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Ui.Undefined&&e.next===Ui.Undefined?(this._first=Ui.Undefined,this._last=Ui.Undefined):e.next===Ui.Undefined?(this._last=this._last.prev,this._last.next=Ui.Undefined):e.prev===Ui.Undefined&&(this._first=this._first.next,this._first.prev=Ui.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Ui.Undefined;)yield e.element,e=e.next}}const J7="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function Z$(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of J7)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const ZR=Z$();function YR(o){let e=ZR;if(o&&o instanceof RegExp)if(o.global)e=o;else{let t="g";o.ignoreCase&&(t+="i"),o.multiline&&(t+="m"),o.unicode&&(t+="u"),e=new RegExp(o.source,t)}return e.lastIndex=0,e}const e9=new vs;e9.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Wv(o,e,t,i,n){if(e=YR(e),n||(n=dt.first(e9)),t.length>n.maxLen){let d=o-n.maxLen/2;return d<0?d=0:i+=d,t=t.substring(d,o+n.maxLen/2),Wv(o,e,t,i,n)}const s=Date.now(),r=o-1-i;let a=-1,l=null;for(let d=1;!(Date.now()-s>=n.timeBudget);d++){const c=r-n.windowSize*d;e.lastIndex=Math.max(0,c);const h=Y$(e,t,r,a);if(!h&&l||(l=h,c<=0))break;a=c}if(l){const d={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,d}return null}function Y$(o,e,t,i){let n;for(;n=o.exec(e);){const s=n.index||0;if(s<=t&&o.lastIndex>=t)return n;if(i>0&&s>i)return null}return null}const Qa=8;class t9{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class i9{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class ni{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return Hy(e,t)}compute(e,t,i){return i}}class tv{constructor(e,t){this.newValue=e,this.didChange=t}}function Hy(o,e){if(typeof o!="object"||typeof e!="object"||!o||!e)return new tv(e,o!==e);if(Array.isArray(o)||Array.isArray(e)){const i=Array.isArray(o)&&Array.isArray(e)&&di(o,e);return new tv(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=Hy(o[i],e[i]);n.didChange&&(o[i]=n.newValue,t=!0)}return new tv(o,t)}class C0{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return Hy(e,t)}validate(e){return this.defaultValue}}class Dp{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return Hy(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function ve(o,e){return typeof o>"u"?e:o==="false"?!1:!!o}class ft extends Dp{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return ve(e,this.defaultValue)}}function bu(o,e,t,i){if(typeof o>"u")return e;let n=parseInt(o,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class Ft extends Dp{static clampedInt(e,t,i,n){return bu(e,t,i,n)}constructor(e,t,i,n,s,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=s),super(e,t,i,r),this.minimum=n,this.maximum=s}validate(e){return Ft.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function Q$(o,e,t,i){if(typeof o>"u")return e;const n=No.float(o,e);return No.clamp(n,t,i)}class No extends Dp{static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,s){typeof s<"u"&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}validate(e){return this.validationFn(No.float(e,this.defaultValue))}}class us extends Dp{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return us.string(e,this.defaultValue)}}function Ci(o,e,t,i){return typeof o!="string"?e:i&&o in i?i[o]:t.indexOf(o)===-1?e:o}class ui extends Dp{constructor(e,t,i,n,s=void 0){typeof s<"u"&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return Ci(e,this.defaultValue,this._allowedValues)}}class SC extends ni{constructor(e,t,i,n,s,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=n),super(e,t,i,a),this._allowedValues=s,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function X$(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class J$ extends ni{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[m("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),m("accessibilitySupport.on","Optimize for usage with a Screen Reader."),m("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:m("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class ej extends ni{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:m("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:m("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:ve(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:ve(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function tj(o){switch(o){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var yn;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(yn||(yn={}));function ij(o){switch(o){case"line":return yn.Line;case"block":return yn.Block;case"underline":return yn.Underline;case"line-thin":return yn.LineThin;case"block-outline":return yn.BlockOutline;case"underline-thin":return yn.UnderlineThin}}class nj extends C0{constructor(){super(142)}compute(e,t,i){const n=["monaco-editor"];return t.get(39)&&n.push(t.get(39)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(74)==="default"?n.push("mouse-default"):t.get(74)==="copy"&&n.push("mouse-copy"),t.get(111)&&n.push("showUnused"),t.get(140)&&n.push("showDeprecated"),n.join(" ")}}class sj extends ft{constructor(){super(37,"emptySelectionClipboard",!0,{description:m("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class oj extends ni{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:m("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[m("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),m("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),m("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:m("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:e.autoFindInSelection,enumDescriptions:[m("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),m("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),m("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:m("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:m("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:it},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:m("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:e.loop,description:m("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:ve(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Ci(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Ci(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:ve(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:ve(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:ve(t.loop,this.defaultValue.loop)}}}class ko extends ni{constructor(){super(51,"fontLigatures",ko.OFF,{anyOf:[{type:"boolean",description:m("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:m("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:m("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(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?ko.OFF:e==="true"?ko.ON:e:e?ko.ON:ko.OFF}}ko.OFF='"liga" off, "calt" off';ko.ON='"liga" on, "calt" on';class ha extends ni{constructor(){super(54,"fontVariations",ha.OFF,{anyOf:[{type:"boolean",description:m("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:m("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:m("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(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?ha.OFF:e==="true"?ha.TRANSLATE:e:e?ha.TRANSLATE:ha.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}ha.OFF="normal";ha.TRANSLATE="translate";class rj extends C0{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}class aj extends Dp{constructor(){super(52,"fontSize",Us.fontSize,{type:"number",minimum:6,maximum:100,default:Us.fontSize,description:m("fontSize","Controls the font size in pixels.")})}validate(e){const t=No.float(e,this.defaultValue);return t===0?Us.fontSize:No.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class cl extends ni{constructor(){super(53,"fontWeight",Us.fontWeight,{anyOf:[{type:"number",minimum:cl.MINIMUM_VALUE,maximum:cl.MAXIMUM_VALUE,errorMessage:m("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:cl.SUGGESTION_VALUES}],default:Us.fontWeight,description:m("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Ft.clampedInt(e,Us.fontWeight,cl.MINIMUM_VALUE,cl.MAXIMUM_VALUE))}}cl.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];cl.MINIMUM_VALUE=1;cl.MAXIMUM_VALUE=1e3;class lj extends ni{constructor(){const e={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:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[m("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),m("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),m("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","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",e,{"editor.gotoLocation.multiple":{deprecationMessage:m("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:m("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:m("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:m("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:m("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:m("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:m("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:e.alternativeTypeDefinitionCommand,enum:i,description:m("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:e.alternativeDeclarationCommand,enum:i,description:m("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:e.alternativeImplementationCommand,enum:i,description:m("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:e.alternativeReferenceCommand,enum:i,description:m("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,s,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Ci(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Ci(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Ci(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:Ci(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(s=a.multipleImplementations)!==null&&s!==void 0?s:Ci(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Ci(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:us.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:us.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:us.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:us.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:us.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class dj extends ni{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:m("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:m("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:m("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:m("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:e.above,description:m("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ve(t.enabled,this.defaultValue.enabled),delay:Ft.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:ve(t.sticky,this.defaultValue.sticky),hidingDelay:Ft.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:ve(t.above,this.defaultValue.above)}}}class lm extends C0{constructor(){super(145)}compute(e,t,i){return lm.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const s=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:s,minimapLineCount:r}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,d=e.typicalHalfwidthCharacterWidth,c=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,f=e.minimap.size,p=e.minimap.side,_=e.verticalScrollbarWidth,v=e.viewLineCount,b=e.remainingWidth,C=e.isViewportWrapping,w=h?2:3;let S=Math.floor(s*n);const L=S/s;let D=!1,I=!1,T=w*u,V=u/s,P=1;if(f==="fill"||f==="fit"){const{typicalViewportLineCount:Ee,extraLinesBeforeFirstLine:fe,extraLinesBeyondLastLine:Ue,desiredRatio:Ve,minimapLineCount:Ne}=lm.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:c,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:s});if(v/Ne>1)D=!0,I=!0,u=1,T=1,V=u/s;else{let vi=!1,as=u+1;if(f==="fit"){const qi=Math.ceil((fe+v+Ue)*T);C&&a&&b<=t.stableFitRemainingWidth?(vi=!0,as=t.stableFitMaxMinimapScale):vi=qi>S}if(f==="fill"||vi){D=!0;const qi=u;T=Math.min(l*s,Math.max(1,Math.floor(1/Ve))),C&&a&&b<=t.stableFitRemainingWidth&&(as=t.stableFitMaxMinimapScale),u=Math.min(as,Math.max(1,Math.floor(T/w))),u>qi&&(P=Math.min(2,u/qi)),V=u/s/P,S=Math.ceil(Math.max(Ee,fe+v+Ue)*T),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=b,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const A=Math.floor(g*V),B=Math.min(A,Math.max(0,Math.floor((b-_-2)*V/(d+V)))+Qa);let j=Math.floor(s*B);const X=j/s;j=Math.floor(j*P);const pe=h?1:2,ye=p==="left"?0:i-B-_;return{renderMinimap:pe,minimapLeft:ye,minimapWidth:B,minimapHeightIsEditorHeight:D,minimapIsSampling:I,minimapScale:u,minimapLineHeight:T,minimapCanvasInnerWidth:j,minimapCanvasInnerHeight:S,minimapCanvasOuterWidth:X,minimapCanvasOuterHeight:L}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,s=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,d=t.pixelRatio,c=t.viewLineCount,h=e.get(137),u=h==="inherit"?e.get(136):h,g=u==="inherit"?e.get(132):u,f=e.get(135),p=t.isDominatedByLongLines,_=e.get(57),v=e.get(68).renderType!==0,b=e.get(69),C=e.get(105),w=e.get(84),S=e.get(73),L=e.get(103),D=L.verticalScrollbarSize,I=L.verticalHasArrows,T=L.arrowSize,V=L.horizontalScrollbarSize,P=e.get(43),A=e.get(110)!=="never";let B=e.get(66);P&&A&&(B+=16);let j=0;if(v){const en=Math.max(r,b);j=Math.round(en*l)}let X=0;_&&(X=s*t.glyphMarginDecorationLaneCount);let pe=0,ye=pe+X,Ee=ye+j,fe=Ee+B;const Ue=i-X-j-B;let Ve=!1,Ne=!1,ue=-1;u==="inherit"&&p?(Ve=!0,Ne=!0):g==="on"||g==="bounded"?Ne=!0:g==="wordWrapColumn"&&(ue=f);const vi=lm._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:d,scrollBeyondLastLine:C,paddingTop:w.top,paddingBottom:w.bottom,minimap:S,verticalScrollbarWidth:D,viewLineCount:c,remainingWidth:Ue,isViewportWrapping:Ne},t.memory||new i9);vi.renderMinimap!==0&&vi.minimapLeft===0&&(pe+=vi.minimapWidth,ye+=vi.minimapWidth,Ee+=vi.minimapWidth,fe+=vi.minimapWidth);const as=Ue-vi.minimapWidth,qi=Math.max(1,Math.floor((as-D-2)/a)),xt=I?T:0;return Ne&&(ue=Math.max(1,qi),g==="bounded"&&(ue=Math.min(ue,f))),{width:i,height:n,glyphMarginLeft:pe,glyphMarginWidth:X,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:ye,lineNumbersWidth:j,decorationsLeft:Ee,decorationsWidth:B,contentLeft:fe,contentWidth:as,minimap:vi,viewportColumn:qi,isWordWrapMinified:Ve,isViewportWrapping:Ne,wrappingColumn:ue,verticalScrollbarWidth:D,horizontalScrollbarHeight:V,overviewRuler:{top:xt,width:D,height:n-2*xt,right:0}}}}class cj extends ni{constructor(){super(139,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[m("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."),m("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:m("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return Ci(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}var Er;(function(o){o.Off="off",o.OnCode="onCode",o.On="on"})(Er||(Er={}));class hj extends ni{constructor(){const e={enabled:Er.On};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[Er.Off,Er.OnCode,Er.On],default:e.enabled,enumDescriptions:[m("editor.lightbulb.enabled.off","Disable the code action menu."),m("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),m("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:m("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Ci(e.enabled,this.defaultValue.enabled,[Er.Off,Er.OnCode,Er.On])}}}class uj extends ni{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:m("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:e.maxLineCount,minimum:1,maximum:20,description:m("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:m("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:e.scrollWithEditor,description:m("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ve(t.enabled,this.defaultValue.enabled),maxLineCount:Ft.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:Ci(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:ve(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class gj extends ni{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(141,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:m("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[m("editor.inlayHints.on","Inlay hints are enabled"),m("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",it?"Ctrl+Option":"Ctrl+Alt"),m("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",it?"Ctrl+Option":"Ctrl+Alt"),m("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:m("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:e.fontFamily,markdownDescription:m("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:e.padding,description:m("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:Ci(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Ft.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:us.string(t.fontFamily,this.defaultValue.fontFamily),padding:ve(t.padding,this.defaultValue.padding)}}}class fj extends ni{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Ft.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?Ft.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class mj extends No{constructor(){super(67,"lineHeight",Us.lineHeight,e=>No.clamp(e,0,150),{markdownDescription:m("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(e,t,i){return e.fontInfo.lineHeight}}class pj extends ni{constructor(){const e={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",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:m("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:m("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[m("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),m("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),m("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:m("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:m("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:m("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:m("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:m("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:m("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:m("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:m("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:m("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:e.sectionHeaderLetterSpacing,description:m("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(e){var t,i;if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:ve(n.enabled,this.defaultValue.enabled),autohide:ve(n.autohide,this.defaultValue.autohide),size:Ci(n.size,this.defaultValue.size,["proportional","fill","fit"]),side:Ci(n.side,this.defaultValue.side,["right","left"]),showSlider:Ci(n.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:ve(n.renderCharacters,this.defaultValue.renderCharacters),scale:Ft.clampedInt(n.scale,1,1,3),maxColumn:Ft.clampedInt(n.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:ve(n.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:ve(n.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:No.clamp((t=n.sectionHeaderFontSize)!==null&&t!==void 0?t:this.defaultValue.sectionHeaderFontSize,4,32),sectionHeaderLetterSpacing:No.clamp((i=n.sectionHeaderLetterSpacing)!==null&&i!==void 0?i:this.defaultValue.sectionHeaderLetterSpacing,0,5)}}}function _j(o){return o==="ctrlCmd"?it?"metaKey":"ctrlKey":"altKey"}class vj extends ni{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:m("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:m("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:Ft.clampedInt(t.top,0,0,1e3),bottom:Ft.clampedInt(t.bottom,0,0,1e3)}}}class bj extends ni{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:m("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:m("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ve(t.enabled,this.defaultValue.enabled),cycle:ve(t.cycle,this.defaultValue.cycle)}}}class Cj extends C0{constructor(){super(143)}compute(e,t,i){return e.pixelRatio}}class wj extends ni{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[m("on","Quick suggestions show inside the suggest widget"),m("inline","Quick suggestions show as ghost text"),m("off","Quick suggestions are disabled")]}];super(89,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:m("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:m("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:m("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:m("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=e}validate(e){if(typeof e=="boolean"){const d=e?"on":"off";return{comments:d,strings:d,other:d}}if(!e||typeof e!="object")return this.defaultValue;const{other:t,comments:i,strings:n}=e,s=["on","inline","off"];let r,a,l;return typeof t=="boolean"?r=t?"on":"off":r=Ci(t,this.defaultValue.other,s),typeof i=="boolean"?a=i?"on":"off":a=Ci(i,this.defaultValue.comments,s),typeof n=="boolean"?l=n?"on":"off":l=Ci(n,this.defaultValue.strings,s),{other:r,comments:a,strings:l}}}class Sj extends ni{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[m("lineNumbers.off","Line numbers are not rendered."),m("lineNumbers.on","Line numbers are rendered as absolute number."),m("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),m("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:m("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function Pw(o){const e=o.get(98);return e==="editable"?o.get(91):e!=="on"}class yj extends ni{constructor(){const e=[],t={type:"number",description:m("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(102,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:m("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:m("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(e){if(Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="number")t.push({column:Ft.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const n=i;t.push({column:Ft.clampedInt(n.column,0,0,1e4),color:n.color})}return t.sort((i,n)=>i.column-n.column),t}return this.defaultValue}}class Lj extends ni{constructor(){super(92,"readOnlyMessage",void 0)}validate(e){return!e||typeof e!="object"?this.defaultValue:e}}function xO(o,e){if(typeof o!="string")return e;switch(o){case"hidden":return 2;case"visible":return 3;default:return 1}}let xj=class extends ni{constructor(){const e={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",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[m("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),m("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),m("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:m("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[m("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),m("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),m("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:m("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:m("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:m("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:m("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:m("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=Ft.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=Ft.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:Ft.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:xO(t.vertical,this.defaultValue.vertical),horizontal:xO(t.horizontal,this.defaultValue.horizontal),useShadows:ve(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:ve(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:ve(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:ve(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:ve(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:Ft.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:Ft.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:ve(t.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:ve(t.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}};const vo="inUntrustedWorkspace",Bs={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"};class Dj extends ni{constructor(){const e={nonBasicASCII:vo,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:vo,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(125,"unicodeHighlight",e,{[Bs.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,vo],default:e.nonBasicASCII,description:m("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.")},[Bs.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:m("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[Bs.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:m("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.")},[Bs.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,vo],default:e.includeComments,description:m("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[Bs.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,vo],default:e.includeStrings,description:m("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[Bs.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:m("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[Bs.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:m("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(Ro(e.allowedCharacters,t.allowedCharacters)||(e={...e,allowedCharacters:t.allowedCharacters},i=!0)),t.allowedLocales&&e&&(Ro(e.allowedLocales,t.allowedLocales)||(e={...e,allowedLocales:t.allowedLocales},i=!0));const n=super.applyUpdate(e,t);return i?new tv(n.newValue,!0):n}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:dm(t.nonBasicASCII,vo,[!0,!1,vo]),invisibleCharacters:ve(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:ve(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:dm(t.includeComments,vo,[!0,!1,vo]),includeStrings:dm(t.includeStrings,vo,[!0,!1,vo]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if(typeof e!="object"||!e)return t;const i={};for(const[n,s]of Object.entries(e))s===!0&&(i[n]=!0);return i}}class kj extends ni{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:m("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[m("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),m("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),m("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:m("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:m("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:e.fontFamily,description:m("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ve(t.enabled,this.defaultValue.enabled),mode:Ci(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:Ci(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:ve(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:ve(t.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:us.string(t.fontFamily,this.defaultValue.fontFamily)}}}class Ij extends ni{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1,backgroundColoring:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:m("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[m("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),m("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),m("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:m("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:m("inlineEdit.fontFamily","Controls the font family of the inline edit.")},"editor.experimentalInlineEdit.backgroundColoring":{type:"boolean",default:e.backgroundColoring,description:m("inlineEdit.backgroundColoring","Controls whether to color the background of inline edits.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ve(t.enabled,this.defaultValue.enabled),showToolbar:Ci(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:us.string(t.fontFamily,this.defaultValue.fontFamily),keepOnBlur:ve(t.keepOnBlur,this.defaultValue.keepOnBlur),backgroundColoring:ve(t.backgroundColoring,this.defaultValue.backgroundColoring)}}}class Ej extends ni{constructor(){const e={enabled:zn.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:zn.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:m("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:e.independentColorPoolPerBracketType,description:m("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ve(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:ve(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class Nj extends ni{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[m("editor.guides.bracketPairs.true","Enables bracket pair guides."),m("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),m("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:m("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[m("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),m("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),m("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:m("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:m("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:m("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[m("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),m("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),m("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:m("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:dm(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:dm(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:ve(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:ve(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:dm(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function dm(o,e,t){const i=t.indexOf(o);return i===-1?e:t[i]}class Tj extends ni{constructor(){const e={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",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[m("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),m("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:m("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:e.filterGraceful,description:m("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:m("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:m("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:[m("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),m("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),m("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),m("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:m("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:e.snippetsPreventQuickSuggestions,description:m("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:m("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:m("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:m("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:m("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:m("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:m("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:m("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:m("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:m("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:Ci(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:ve(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:ve(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:ve(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:ve(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:Ci(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:ve(t.showIcons,this.defaultValue.showIcons),showStatusBar:ve(t.showStatusBar,this.defaultValue.showStatusBar),preview:ve(t.preview,this.defaultValue.preview),previewMode:Ci(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:ve(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:ve(t.showMethods,this.defaultValue.showMethods),showFunctions:ve(t.showFunctions,this.defaultValue.showFunctions),showConstructors:ve(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:ve(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:ve(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:ve(t.showFields,this.defaultValue.showFields),showVariables:ve(t.showVariables,this.defaultValue.showVariables),showClasses:ve(t.showClasses,this.defaultValue.showClasses),showStructs:ve(t.showStructs,this.defaultValue.showStructs),showInterfaces:ve(t.showInterfaces,this.defaultValue.showInterfaces),showModules:ve(t.showModules,this.defaultValue.showModules),showProperties:ve(t.showProperties,this.defaultValue.showProperties),showEvents:ve(t.showEvents,this.defaultValue.showEvents),showOperators:ve(t.showOperators,this.defaultValue.showOperators),showUnits:ve(t.showUnits,this.defaultValue.showUnits),showValues:ve(t.showValues,this.defaultValue.showValues),showConstants:ve(t.showConstants,this.defaultValue.showConstants),showEnums:ve(t.showEnums,this.defaultValue.showEnums),showEnumMembers:ve(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:ve(t.showKeywords,this.defaultValue.showKeywords),showWords:ve(t.showWords,this.defaultValue.showWords),showColors:ve(t.showColors,this.defaultValue.showColors),showFiles:ve(t.showFiles,this.defaultValue.showFiles),showReferences:ve(t.showReferences,this.defaultValue.showReferences),showFolders:ve(t.showFolders,this.defaultValue.showFolders),showTypeParameters:ve(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:ve(t.showSnippets,this.defaultValue.showSnippets),showUsers:ve(t.showUsers,this.defaultValue.showUsers),showIssues:ve(t.showIssues,this.defaultValue.showIssues)}}}class Mj extends ni{constructor(){super(113,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:m("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:m("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:ve(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:ve(e.selectSubwords,this.defaultValue.selectSubwords)}}}class Rj extends ni{constructor(){const e=[];super(130,"wordSegmenterLocales",e,{anyOf:[{description:m("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:m("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(e){if(typeof e=="string"&&(e=[e]),Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="string")try{Intl.Segmenter.supportedLocalesOf(i).length>0&&t.push(i)}catch{}return t}return this.defaultValue}}class Aj extends ni{constructor(){super(138,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[m("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),m("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),m("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),m("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:m("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return t.get(2)===2?0:i}}class Pj extends C0{constructor(){super(146)}compute(e,t,i){const n=t.get(145);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}class Oj extends ni{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:m("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:m("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:[m("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),m("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ve(t.enabled,this.defaultValue.enabled),showDropSelector:Ci(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class Fj extends ni{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:m("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:m("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:[m("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),m("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ve(t.enabled,this.defaultValue.enabled),showPasteSelector:Ci(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const Bj="Consolas, 'Courier New', monospace",Wj="Menlo, Monaco, 'Courier New', monospace",Hj="'Droid Sans Mono', 'monospace', monospace",Us={fontFamily:it?Wj:xs?Hj:Bj,fontWeight:"normal",fontSize:it?12:14,lineHeight:0,letterSpacing:0},Ff=[];function ne(o){return Ff[o.id]=o,o}const Oa={acceptSuggestionOnCommitCharacter:ne(new ft(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:m("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:ne(new ui(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",m("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:m("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:ne(new J$),accessibilityPageSize:ne(new Ft(3,"accessibilityPageSize",10,1,1073741824,{description:m("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:ne(new us(4,"ariaLabel",m("editorViewAccessibleLabel","Editor content"))),ariaRequired:ne(new ft(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:ne(new ft(8,"screenReaderAnnounceInlineSuggestion",!0,{description:m("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:ne(new ui(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",m("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),m("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:m("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:ne(new ui(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",m("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),m("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:m("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:ne(new ui(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",m("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:m("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:ne(new ui(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",m("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:m("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:ne(new ui(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",m("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),m("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:m("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:ne(new SC(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],X$,{enumDescriptions:[m("editor.autoIndent.none","The editor will not insert indentation automatically."),m("editor.autoIndent.keep","The editor will keep the current line's indentation."),m("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),m("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),m("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:m("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:ne(new ft(13,"automaticLayout",!1)),autoSurround:ne(new ui(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[m("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),m("editor.autoSurround.quotes","Surround with quotes but not brackets."),m("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:m("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:ne(new Ej),bracketPairGuides:ne(new Nj),stickyTabStops:ne(new ft(116,"stickyTabStops",!1,{description:m("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:ne(new ft(17,"codeLens",!0,{description:m("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:ne(new us(18,"codeLensFontFamily","",{description:m("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:ne(new Ft(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:m("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:ne(new ft(20,"colorDecorators",!0,{description:m("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:ne(new ui(148,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[m("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),m("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),m("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:m("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:ne(new Ft(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:m("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:ne(new ft(22,"columnSelection",!1,{description:m("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:ne(new ej),contextmenu:ne(new ft(24,"contextmenu",!0)),copyWithSyntaxHighlighting:ne(new ft(25,"copyWithSyntaxHighlighting",!0,{description:m("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ne(new SC(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],tj,{description:m("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ne(new ui(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[m("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),m("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),m("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:m("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ne(new SC(28,"cursorStyle",yn.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],ij,{description:m("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ne(new Ft(29,"cursorSurroundingLines",0,0,1073741824,{description:m("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:ne(new ui(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[m("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),m("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:m("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:ne(new Ft(31,"cursorWidth",0,0,1073741824,{markdownDescription:m("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:ne(new ft(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:ne(new ft(33,"disableMonospaceOptimizations",!1)),domReadOnly:ne(new ft(34,"domReadOnly",!1)),dragAndDrop:ne(new ft(35,"dragAndDrop",!0,{description:m("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:ne(new sj),dropIntoEditor:ne(new Oj),stickyScroll:ne(new uj),experimentalWhitespaceRendering:ne(new ui(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[m("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),m("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),m("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:m("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:ne(new us(39,"extraEditorClassName","")),fastScrollSensitivity:ne(new No(40,"fastScrollSensitivity",5,o=>o<=0?5:o,{markdownDescription:m("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ne(new oj),fixedOverflowWidgets:ne(new ft(42,"fixedOverflowWidgets",!1)),folding:ne(new ft(43,"folding",!0,{description:m("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ne(new ui(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[m("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),m("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:m("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:ne(new ft(45,"foldingHighlight",!0,{description:m("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:ne(new ft(46,"foldingImportsByDefault",!1,{description:m("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:ne(new Ft(47,"foldingMaximumRegions",5e3,10,65e3,{description:m("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:ne(new ft(48,"unfoldOnClickAfterEndOfLine",!1,{description:m("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:ne(new us(49,"fontFamily",Us.fontFamily,{description:m("fontFamily","Controls the font family.")})),fontInfo:ne(new rj),fontLigatures2:ne(new ko),fontSize:ne(new aj),fontWeight:ne(new cl),fontVariations:ne(new ha),formatOnPaste:ne(new ft(55,"formatOnPaste",!1,{description:m("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:ne(new ft(56,"formatOnType",!1,{description:m("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ne(new ft(57,"glyphMargin",!0,{description:m("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ne(new lj),hideCursorInOverviewRuler:ne(new ft(59,"hideCursorInOverviewRuler",!1,{description:m("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:ne(new dj),inDiffEditor:ne(new ft(61,"inDiffEditor",!1)),letterSpacing:ne(new No(64,"letterSpacing",Us.letterSpacing,o=>No.clamp(o,-5,20),{description:m("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ne(new hj),lineDecorationsWidth:ne(new fj),lineHeight:ne(new mj),lineNumbers:ne(new Sj),lineNumbersMinChars:ne(new Ft(69,"lineNumbersMinChars",5,1,300)),linkedEditing:ne(new ft(70,"linkedEditing",!1,{description:m("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:ne(new ft(71,"links",!0,{description:m("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ne(new ui(72,"matchBrackets","always",["always","near","never"],{description:m("matchBrackets","Highlight matching brackets.")})),minimap:ne(new pj),mouseStyle:ne(new ui(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ne(new No(75,"mouseWheelScrollSensitivity",1,o=>o===0?1:o,{markdownDescription:m("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:ne(new ft(76,"mouseWheelZoom",!1,{markdownDescription:it?m("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):m("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ne(new ft(77,"multiCursorMergeOverlapping",!0,{description:m("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ne(new SC(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],_j,{markdownEnumDescriptions:[m("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),m("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:m({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:ne(new ui(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[m("multiCursorPaste.spread","Each cursor pastes a single line of the text."),m("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:m("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:ne(new Ft(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:m("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:ne(new ui(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[m("occurrencesHighlight.off","Does not highlight occurrences."),m("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),m("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:m("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:ne(new ft(82,"overviewRulerBorder",!0,{description:m("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:ne(new Ft(83,"overviewRulerLanes",3,0,3)),padding:ne(new vj),pasteAs:ne(new Fj),parameterHints:ne(new bj),peekWidgetDefaultFocus:ne(new ui(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[m("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),m("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:m("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:ne(new ft(88,"definitionLinkOpensInPeek",!1,{description:m("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:ne(new wj),quickSuggestionsDelay:ne(new Ft(90,"quickSuggestionsDelay",10,0,1073741824,{description:m("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:ne(new ft(91,"readOnly",!1)),readOnlyMessage:ne(new Lj),renameOnType:ne(new ft(93,"renameOnType",!1,{description:m("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:m("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:ne(new ft(94,"renderControlCharacters",!0,{description:m("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:ne(new ui(95,"renderFinalNewline",xs?"dimmed":"on",["off","on","dimmed"],{description:m("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ne(new ui(96,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",m("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:m("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:ne(new ft(97,"renderLineHighlightOnlyWhenFocus",!1,{description:m("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:ne(new ui(98,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:ne(new ui(99,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",m("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),m("renderWhitespace.selection","Render whitespace characters only on selected text."),m("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:m("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:ne(new Ft(100,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:ne(new ft(101,"roundedSelection",!0,{description:m("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ne(new yj),scrollbar:ne(new xj),scrollBeyondLastColumn:ne(new Ft(104,"scrollBeyondLastColumn",4,0,1073741824,{description:m("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ne(new ft(105,"scrollBeyondLastLine",!0,{description:m("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:ne(new ft(106,"scrollPredominantAxis",!0,{description:m("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:ne(new ft(107,"selectionClipboard",!0,{description:m("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:xs})),selectionHighlight:ne(new ft(108,"selectionHighlight",!0,{description:m("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ne(new ft(109,"selectOnLineNumbers",!0)),showFoldingControls:ne(new ui(110,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[m("showFoldingControls.always","Always show the folding controls."),m("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),m("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:m("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:ne(new ft(111,"showUnused",!0,{description:m("showUnused","Controls fading out of unused code.")})),showDeprecated:ne(new ft(140,"showDeprecated",!0,{description:m("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:ne(new gj),snippetSuggestions:ne(new ui(112,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[m("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),m("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),m("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),m("snippetSuggestions.none","Do not show snippet suggestions.")],description:m("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:ne(new Mj),smoothScrolling:ne(new ft(114,"smoothScrolling",!1,{description:m("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ne(new Ft(117,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ne(new Tj),inlineSuggest:ne(new kj),inlineEdit:ne(new Ij),inlineCompletionsAccessibilityVerbose:ne(new ft(149,"inlineCompletionsAccessibilityVerbose",!1,{description:m("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:ne(new Ft(119,"suggestFontSize",0,0,1e3,{markdownDescription:m("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:ne(new Ft(120,"suggestLineHeight",0,0,1e3,{markdownDescription:m("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:ne(new ft(121,"suggestOnTriggerCharacters",!0,{description:m("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ne(new ui(122,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[m("suggestSelection.first","Always select the first suggestion."),m("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),m("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:m("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ne(new ui(123,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[m("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),m("tabCompletion.off","Disable tab completions."),m("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:m("tabCompletion","Enables tab completions.")})),tabIndex:ne(new Ft(124,"tabIndex",0,-1,1073741824)),unicodeHighlight:ne(new Dj),unusualLineTerminators:ne(new ui(126,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[m("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),m("unusualLineTerminators.off","Unusual line terminators are ignored."),m("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:m("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:ne(new ft(127,"useShadowDOM",!0)),useTabStops:ne(new ft(128,"useTabStops",!0,{description:m("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:ne(new ui(129,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[m("wordBreak.normal","Use the default line break rule."),m("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:m("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:ne(new Rj),wordSeparators:ne(new us(131,"wordSeparators",J7,{description:m("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ne(new ui(132,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[m("wordWrap.off","Lines will never wrap."),m("wordWrap.on","Lines will wrap at the viewport width."),m({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),m({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:m({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:ne(new us(133,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:ne(new us(134,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:ne(new Ft(135,"wordWrapColumn",80,1,1073741824,{markdownDescription:m({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:ne(new ui(136,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:ne(new ui(137,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:ne(new nj),defaultColorDecorators:ne(new ft(147,"defaultColorDecorators",!1,{markdownDescription:m("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:ne(new Cj),tabFocusMode:ne(new ft(144,"tabFocusMode",!1,{markdownDescription:m("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:ne(new lm),wrappingInfo:ne(new Pj),wrappingIndent:ne(new Aj),wrappingStrategy:ne(new cj)};class Vj{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Pm.isErrorNoTelemetry(e)?new Pm(e.message+` + +`+e.stack):new Error(e.message+` + +`+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const n9=new Vj;function ze(o){Ur(o)||n9.onUnexpectedError(o)}function yi(o){Ur(o)||n9.onUnexpectedExternalError(o)}function DO(o){if(o instanceof Error){const{name:e,message:t}=o,i=o.stacktrace||o.stack;return{$isError:!0,name:e,message:t,stack:i,noTelemetry:Pm.isErrorNoTelemetry(o)}}return o}const Ow="Canceled";function Ur(o){return o instanceof ka?!0:o instanceof Error&&o.name===Ow&&o.message===Ow}class ka extends Error{constructor(){super(Ow),this.name=this.message}}function zj(){const o=new Error(Ow);return o.name=o.message,o}function or(o){return o?new Error(`Illegal argument: ${o}`):new Error("Illegal argument")}function QR(o){return o?new Error(`Illegal state: ${o}`):new Error("Illegal state")}class Uj extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class Pm extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof Pm)return e;const t=new Pm;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class Tt extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,Tt.prototype)}}function bh(o,e){const t=this;let i=!1,n;return function(){if(i)return n;if(i=!0,e)try{n=o.apply(t,arguments)}finally{e()}else n=o.apply(t,arguments);return n}}function Vy(o){return typeof o=="object"&&o!==null&&typeof o.dispose=="function"&&o.dispose.length===0}function Pt(o){if(dt.is(o)){const e=[];for(const t of o)if(t)try{t.dispose()}catch(i){e.push(i)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(o)?[]:o}else if(o)return o.dispose(),o}function Wr(...o){return Ce(()=>Pt(o))}function Ce(o){return{dispose:bh(()=>{o()})}}class G{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Pt(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?G.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(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&this._toDispose.delete(e)}}G.DISABLE_DISPOSED_WARNING=!1;class W{constructor(){this._store=new G,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}W.None=Object.freeze({dispose(){}});class ln{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||((t=this._value)===null||t===void 0||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}}class $j{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class jj{constructor(e){this.object=e}dispose(){}}class XR{constructor(){this._store=new Map,this._isDisposed=!1}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{Pt(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){var n;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),i||(n=this._store.get(e))===null||n===void 0||n.dispose(),this._store.set(e,t)}deleteAndDispose(e){var t;(t=this._store.get(e))===null||t===void 0||t.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}const Kj=globalThis.performance&&typeof globalThis.performance.now=="function";class In{static create(e){return new In(e)}constructor(e){this._now=Kj&&e===!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 ae;(function(o){o.None=()=>W.None;function e(P,A){return h(P,()=>{},0,void 0,!0,void 0,A)}o.defer=e;function t(P){return(A,B=null,j)=>{let X=!1,pe;return pe=P(ye=>{if(!X)return pe?pe.dispose():X=!0,A.call(B,ye)},null,j),X&&pe.dispose(),pe}}o.once=t;function i(P,A,B){return d((j,X=null,pe)=>P(ye=>j.call(X,A(ye)),null,pe),B)}o.map=i;function n(P,A,B){return d((j,X=null,pe)=>P(ye=>{A(ye),j.call(X,ye)},null,pe),B)}o.forEach=n;function s(P,A,B){return d((j,X=null,pe)=>P(ye=>A(ye)&&j.call(X,ye),null,pe),B)}o.filter=s;function r(P){return P}o.signal=r;function a(...P){return(A,B=null,j)=>{const X=Wr(...P.map(pe=>pe(ye=>A.call(B,ye))));return c(X,j)}}o.any=a;function l(P,A,B,j){let X=B;return i(P,pe=>(X=A(X,pe),X),j)}o.reduce=l;function d(P,A){let B;const j={onWillAddFirstListener(){B=P(X.fire,X)},onDidRemoveLastListener(){B==null||B.dispose()}},X=new O(j);return A==null||A.add(X),X.event}function c(P,A){return A instanceof Array?A.push(P):A&&A.add(P),P}function h(P,A,B=100,j=!1,X=!1,pe,ye){let Ee,fe,Ue,Ve=0,Ne;const ue={leakWarningThreshold:pe,onWillAddFirstListener(){Ee=P(as=>{Ve++,fe=A(fe,as),j&&!Ue&&(vi.fire(fe),fe=void 0),Ne=()=>{const qi=fe;fe=void 0,Ue=void 0,(!j||Ve>1)&&vi.fire(qi),Ve=0},typeof B=="number"?(clearTimeout(Ue),Ue=setTimeout(Ne,B)):Ue===void 0&&(Ue=0,queueMicrotask(Ne))})},onWillRemoveListener(){X&&Ve>0&&(Ne==null||Ne())},onDidRemoveLastListener(){Ne=void 0,Ee.dispose()}},vi=new O(ue);return ye==null||ye.add(vi),vi.event}o.debounce=h;function u(P,A=0,B){return o.debounce(P,(j,X)=>j?(j.push(X),j):[X],A,void 0,!0,void 0,B)}o.accumulate=u;function g(P,A=(j,X)=>j===X,B){let j=!0,X;return s(P,pe=>{const ye=j||!A(pe,X);return j=!1,X=pe,ye},B)}o.latch=g;function f(P,A,B){return[o.filter(P,A,B),o.filter(P,j=>!A(j),B)]}o.split=f;function p(P,A=!1,B=[],j){let X=B.slice(),pe=P(fe=>{X?X.push(fe):Ee.fire(fe)});j&&j.add(pe);const ye=()=>{X==null||X.forEach(fe=>Ee.fire(fe)),X=null},Ee=new O({onWillAddFirstListener(){pe||(pe=P(fe=>Ee.fire(fe)),j&&j.add(pe))},onDidAddFirstListener(){X&&(A?setTimeout(ye):ye())},onDidRemoveLastListener(){pe&&pe.dispose(),pe=null}});return j&&j.add(Ee),Ee.event}o.buffer=p;function _(P,A){return(j,X,pe)=>{const ye=A(new b);return P(function(Ee){const fe=ye.evaluate(Ee);fe!==v&&j.call(X,fe)},void 0,pe)}}o.chain=_;const v=Symbol("HaltChainable");class b{constructor(){this.steps=[]}map(A){return this.steps.push(A),this}forEach(A){return this.steps.push(B=>(A(B),B)),this}filter(A){return this.steps.push(B=>A(B)?B:v),this}reduce(A,B){let j=B;return this.steps.push(X=>(j=A(j,X),j)),this}latch(A=(B,j)=>B===j){let B=!0,j;return this.steps.push(X=>{const pe=B||!A(X,j);return B=!1,j=X,pe?X:v}),this}evaluate(A){for(const B of this.steps)if(A=B(A),A===v)break;return A}}function C(P,A,B=j=>j){const j=(...Ee)=>ye.fire(B(...Ee)),X=()=>P.on(A,j),pe=()=>P.removeListener(A,j),ye=new O({onWillAddFirstListener:X,onDidRemoveLastListener:pe});return ye.event}o.fromNodeEventEmitter=C;function w(P,A,B=j=>j){const j=(...Ee)=>ye.fire(B(...Ee)),X=()=>P.addEventListener(A,j),pe=()=>P.removeEventListener(A,j),ye=new O({onWillAddFirstListener:X,onDidRemoveLastListener:pe});return ye.event}o.fromDOMEventEmitter=w;function S(P){return new Promise(A=>t(P)(A))}o.toPromise=S;function L(P){const A=new O;return P.then(B=>{A.fire(B)},()=>{A.fire(void 0)}).finally(()=>{A.dispose()}),A.event}o.fromPromise=L;function D(P,A,B){return A(B),P(j=>A(j))}o.runAndSubscribe=D;class I{constructor(A,B){this._observable=A,this._counter=0,this._hasChanged=!1;const j={onWillAddFirstListener:()=>{A.addObserver(this)},onDidRemoveLastListener:()=>{A.removeObserver(this)}};this.emitter=new O(j),B&&B.add(this.emitter)}beginUpdate(A){this._counter++}handlePossibleChange(A){}handleChange(A,B){this._hasChanged=!0}endUpdate(A){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function T(P,A){return new I(P,A).emitter.event}o.fromObservable=T;function V(P){return(A,B,j)=>{let X=0,pe=!1;const ye={beginUpdate(){X++},endUpdate(){X--,X===0&&(P.reportChanges(),pe&&(pe=!1,A.call(B)))},handlePossibleChange(){},handleChange(){pe=!0}};P.addObserver(ye),P.reportChanges();const Ee={dispose(){P.removeObserver(ye)}};return j instanceof G?j.add(Ee):Array.isArray(j)&&j.push(Ee),Ee}}o.fromObservableLight=V})(ae||(ae={}));class Om{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${Om._idPool++}`,Om.all.add(this)}start(e){this._stopWatch=new In,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}Om.all=new Set;Om._idPool=0;let qj=-1;class Gj{constructor(e,t,i=Math.random().toString(18).slice(2,5)){this._errorHandler=e,this.threshold=t,this.name=i,this._warnCountdown=0}dispose(){var e;(e=this._stacks)===null||e===void 0||e.clear()}check(e,t){const i=this.threshold;if(i<=0||t{const s=this._stacks.get(e.value)||0;this._stacks.set(e.value,s-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[i,n]of this._stacks)(!e||t{var s,r,a,l,d,c,h;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const p=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(p);const _=(s=this._leakageMon.getMostFrequentStack())!==null&&s!==void 0?s:["UNKNOWN stack",-1],v=new Yj(`${p}. HINT: Stack shows most frequent listener (${_[1]}-times)`,_[0]);return(((r=this._options)===null||r===void 0?void 0:r.onListenerError)||ze)(v),W.None}if(this._disposed)return W.None;i&&(t=t.bind(i));const u=new cD(t);let g;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(u.stack=JR.create(),g=this._leakageMon.check(u.stack,this._size+1)),this._listeners?this._listeners instanceof cD?((h=this._deliveryQueue)!==null&&h!==void 0||(this._deliveryQueue=new s9),this._listeners=[this._listeners,u]):this._listeners.push(u):((l=(a=this._options)===null||a===void 0?void 0:a.onWillAddFirstListener)===null||l===void 0||l.call(a,this),this._listeners=u,(c=(d=this._options)===null||d===void 0?void 0:d.onDidAddFirstListener)===null||c===void 0||c.call(d,this)),this._size++;const f=Ce(()=>{g==null||g(),this._removeListener(u)});return n instanceof G?n.add(f):Array.isArray(n)&&n.push(f),f}),this._event}_removeListener(e){var t,i,n,s;if((i=(t=this._options)===null||t===void 0?void 0:t.onWillRemoveListener)===null||i===void 0||i.call(t,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(s=(n=this._options)===null||n===void 0?void 0:n.onDidRemoveLastListener)===null||s===void 0||s.call(n,this),this._size=0;return}const r=this._listeners,a=r.indexOf(e);if(a===-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--,r[a]=void 0;const l=this._deliveryQueue.current===this;if(this._size*Qj<=r.length){let d=0;for(let c=0;c0}};const Xj=()=>new s9;class s9{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class dg extends O{constructor(e){super(e),this._isPaused=0,this._eventQueue=new vs,this._mergeFn=e==null?void 0:e.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._size&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class o9 extends dg{constructor(e){var t;super(e),this._delay=(t=e.delay)!==null&&t!==void 0?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class Jj extends O{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e==null?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(t=>super.fire(t)),this._queuedEvents=[]}))}}class eK{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new O({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};return this.events.push(t),this.hasListeners&&this.hook(t),Ce(bh(()=>{this.hasListeners&&this.unhook(t);const n=this.events.indexOf(t);this.events.splice(n,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(t=>this.emitter.fire(t))}unhook(e){var t;(t=e.listener)===null||t===void 0||t.dispose(),e.listener=null}dispose(){var e;this.emitter.dispose();for(const t of this.events)(e=t.listener)===null||e===void 0||e.dispose();this.events=[]}}class zy{constructor(){this.data=[]}wrapEvent(e,t,i){return(n,s,r)=>e(a=>{var l;const d=this.data[this.data.length-1];if(!t){d?d.buffers.push(()=>n.call(s,a)):n.call(s,a);return}const c=d;if(!c){n.call(s,t(i,a));return}(l=c.items)!==null&&l!==void 0||(c.items=[]),c.items.push(a),c.buffers.length===0&&d.buffers.push(()=>{var h;(h=c.reducedResult)!==null&&h!==void 0||(c.reducedResult=i?c.items.reduce(t,i):c.items.reduce(t)),n.call(s,c.reducedResult)})},void 0,r)}bufferEvents(e){const t={buffers:new Array};this.data.push(t);const i=e();return this.data.pop(),t.buffers.forEach(n=>n()),i}}class kO{constructor(){this.listening=!1,this.inputEvent=ae.None,this.inputEventListener=W.None,this.emitter=new O({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(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}const r9=Object.freeze(function(o,e){const t=setTimeout(o.bind(e),0);return{dispose(){clearTimeout(t)}}});var st;(function(o){function e(t){return t===o.None||t===o.Cancelled||t instanceof q1?!0:!t||typeof t!="object"?!1:typeof t.isCancellationRequested=="boolean"&&typeof t.onCancellationRequested=="function"}o.isCancellationToken=e,o.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:ae.None}),o.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r9})})(st||(st={}));class q1{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?r9:(this._emitter||(this._emitter=new O),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}let ci=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new q1),this._token}cancel(){this._token?this._token instanceof q1&&this._token.cancel():this._token=st.Cancelled}dispose(e=!1){var t;e&&this.cancel(),(t=this._parentListener)===null||t===void 0||t.dispose(),this._token?this._token instanceof q1&&this._token.dispose():this._token=st.None}};function IO(o){const e=new ci;return o.add({dispose(){e.cancel()}}),e.token}class eA{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const G1=new eA,bI=new eA,CI=new eA,a9=new Array(230),tK=Object.create(null),iK=Object.create(null),tA=[];for(let o=0;o<=193;o++)tA[o]=-1;(function(){const o="",e=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",o,o],[1,1,"Hyper",0,o,0,o,o,o],[1,2,"Super",0,o,0,o,o,o],[1,3,"Fn",0,o,0,o,o,o],[1,4,"FnLock",0,o,0,o,o,o],[1,5,"Suspend",0,o,0,o,o,o],[1,6,"Resume",0,o,0,o,o,o],[1,7,"Turbo",0,o,0,o,o,o],[1,8,"Sleep",0,o,0,"VK_SLEEP",o,o],[1,9,"WakeUp",0,o,0,o,o,o],[0,10,"KeyA",31,"A",65,"VK_A",o,o],[0,11,"KeyB",32,"B",66,"VK_B",o,o],[0,12,"KeyC",33,"C",67,"VK_C",o,o],[0,13,"KeyD",34,"D",68,"VK_D",o,o],[0,14,"KeyE",35,"E",69,"VK_E",o,o],[0,15,"KeyF",36,"F",70,"VK_F",o,o],[0,16,"KeyG",37,"G",71,"VK_G",o,o],[0,17,"KeyH",38,"H",72,"VK_H",o,o],[0,18,"KeyI",39,"I",73,"VK_I",o,o],[0,19,"KeyJ",40,"J",74,"VK_J",o,o],[0,20,"KeyK",41,"K",75,"VK_K",o,o],[0,21,"KeyL",42,"L",76,"VK_L",o,o],[0,22,"KeyM",43,"M",77,"VK_M",o,o],[0,23,"KeyN",44,"N",78,"VK_N",o,o],[0,24,"KeyO",45,"O",79,"VK_O",o,o],[0,25,"KeyP",46,"P",80,"VK_P",o,o],[0,26,"KeyQ",47,"Q",81,"VK_Q",o,o],[0,27,"KeyR",48,"R",82,"VK_R",o,o],[0,28,"KeyS",49,"S",83,"VK_S",o,o],[0,29,"KeyT",50,"T",84,"VK_T",o,o],[0,30,"KeyU",51,"U",85,"VK_U",o,o],[0,31,"KeyV",52,"V",86,"VK_V",o,o],[0,32,"KeyW",53,"W",87,"VK_W",o,o],[0,33,"KeyX",54,"X",88,"VK_X",o,o],[0,34,"KeyY",55,"Y",89,"VK_Y",o,o],[0,35,"KeyZ",56,"Z",90,"VK_Z",o,o],[0,36,"Digit1",22,"1",49,"VK_1",o,o],[0,37,"Digit2",23,"2",50,"VK_2",o,o],[0,38,"Digit3",24,"3",51,"VK_3",o,o],[0,39,"Digit4",25,"4",52,"VK_4",o,o],[0,40,"Digit5",26,"5",53,"VK_5",o,o],[0,41,"Digit6",27,"6",54,"VK_6",o,o],[0,42,"Digit7",28,"7",55,"VK_7",o,o],[0,43,"Digit8",29,"8",56,"VK_8",o,o],[0,44,"Digit9",30,"9",57,"VK_9",o,o],[0,45,"Digit0",21,"0",48,"VK_0",o,o],[1,46,"Enter",3,"Enter",13,"VK_RETURN",o,o],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",o,o],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",o,o],[1,49,"Tab",2,"Tab",9,"VK_TAB",o,o],[1,50,"Space",10,"Space",32,"VK_SPACE",o,o],[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,o,0,o,o,o],[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",o,o],[1,64,"F1",59,"F1",112,"VK_F1",o,o],[1,65,"F2",60,"F2",113,"VK_F2",o,o],[1,66,"F3",61,"F3",114,"VK_F3",o,o],[1,67,"F4",62,"F4",115,"VK_F4",o,o],[1,68,"F5",63,"F5",116,"VK_F5",o,o],[1,69,"F6",64,"F6",117,"VK_F6",o,o],[1,70,"F7",65,"F7",118,"VK_F7",o,o],[1,71,"F8",66,"F8",119,"VK_F8",o,o],[1,72,"F9",67,"F9",120,"VK_F9",o,o],[1,73,"F10",68,"F10",121,"VK_F10",o,o],[1,74,"F11",69,"F11",122,"VK_F11",o,o],[1,75,"F12",70,"F12",123,"VK_F12",o,o],[1,76,"PrintScreen",0,o,0,o,o,o],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",o,o],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",o,o],[1,79,"Insert",19,"Insert",45,"VK_INSERT",o,o],[1,80,"Home",14,"Home",36,"VK_HOME",o,o],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",o,o],[1,82,"Delete",20,"Delete",46,"VK_DELETE",o,o],[1,83,"End",13,"End",35,"VK_END",o,o],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",o,o],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",o],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",o],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",o],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",o],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",o,o],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",o,o],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",o,o],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",o,o],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",o,o],[1,94,"NumpadEnter",3,o,0,o,o,o],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",o,o],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",o,o],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",o,o],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",o,o],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",o,o],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",o,o],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",o,o],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",o,o],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",o,o],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",o,o],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",o,o],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",o,o],[1,107,"ContextMenu",58,"ContextMenu",93,o,o,o],[1,108,"Power",0,o,0,o,o,o],[1,109,"NumpadEqual",0,o,0,o,o,o],[1,110,"F13",71,"F13",124,"VK_F13",o,o],[1,111,"F14",72,"F14",125,"VK_F14",o,o],[1,112,"F15",73,"F15",126,"VK_F15",o,o],[1,113,"F16",74,"F16",127,"VK_F16",o,o],[1,114,"F17",75,"F17",128,"VK_F17",o,o],[1,115,"F18",76,"F18",129,"VK_F18",o,o],[1,116,"F19",77,"F19",130,"VK_F19",o,o],[1,117,"F20",78,"F20",131,"VK_F20",o,o],[1,118,"F21",79,"F21",132,"VK_F21",o,o],[1,119,"F22",80,"F22",133,"VK_F22",o,o],[1,120,"F23",81,"F23",134,"VK_F23",o,o],[1,121,"F24",82,"F24",135,"VK_F24",o,o],[1,122,"Open",0,o,0,o,o,o],[1,123,"Help",0,o,0,o,o,o],[1,124,"Select",0,o,0,o,o,o],[1,125,"Again",0,o,0,o,o,o],[1,126,"Undo",0,o,0,o,o,o],[1,127,"Cut",0,o,0,o,o,o],[1,128,"Copy",0,o,0,o,o,o],[1,129,"Paste",0,o,0,o,o,o],[1,130,"Find",0,o,0,o,o,o],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",o,o],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",o,o],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",o,o],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",o,o],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",o,o],[1,136,"KanaMode",0,o,0,o,o,o],[0,137,"IntlYen",0,o,0,o,o,o],[1,138,"Convert",0,o,0,o,o,o],[1,139,"NonConvert",0,o,0,o,o,o],[1,140,"Lang1",0,o,0,o,o,o],[1,141,"Lang2",0,o,0,o,o,o],[1,142,"Lang3",0,o,0,o,o,o],[1,143,"Lang4",0,o,0,o,o,o],[1,144,"Lang5",0,o,0,o,o,o],[1,145,"Abort",0,o,0,o,o,o],[1,146,"Props",0,o,0,o,o,o],[1,147,"NumpadParenLeft",0,o,0,o,o,o],[1,148,"NumpadParenRight",0,o,0,o,o,o],[1,149,"NumpadBackspace",0,o,0,o,o,o],[1,150,"NumpadMemoryStore",0,o,0,o,o,o],[1,151,"NumpadMemoryRecall",0,o,0,o,o,o],[1,152,"NumpadMemoryClear",0,o,0,o,o,o],[1,153,"NumpadMemoryAdd",0,o,0,o,o,o],[1,154,"NumpadMemorySubtract",0,o,0,o,o,o],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",o,o],[1,156,"NumpadClearEntry",0,o,0,o,o,o],[1,0,o,5,"Ctrl",17,"VK_CONTROL",o,o],[1,0,o,4,"Shift",16,"VK_SHIFT",o,o],[1,0,o,6,"Alt",18,"VK_MENU",o,o],[1,0,o,57,"Meta",91,"VK_COMMAND",o,o],[1,157,"ControlLeft",5,o,0,"VK_LCONTROL",o,o],[1,158,"ShiftLeft",4,o,0,"VK_LSHIFT",o,o],[1,159,"AltLeft",6,o,0,"VK_LMENU",o,o],[1,160,"MetaLeft",57,o,0,"VK_LWIN",o,o],[1,161,"ControlRight",5,o,0,"VK_RCONTROL",o,o],[1,162,"ShiftRight",4,o,0,"VK_RSHIFT",o,o],[1,163,"AltRight",6,o,0,"VK_RMENU",o,o],[1,164,"MetaRight",57,o,0,"VK_RWIN",o,o],[1,165,"BrightnessUp",0,o,0,o,o,o],[1,166,"BrightnessDown",0,o,0,o,o,o],[1,167,"MediaPlay",0,o,0,o,o,o],[1,168,"MediaRecord",0,o,0,o,o,o],[1,169,"MediaFastForward",0,o,0,o,o,o],[1,170,"MediaRewind",0,o,0,o,o,o],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",o,o],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",o,o],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",o,o],[1,174,"Eject",0,o,0,o,o,o],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",o,o],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",o,o],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",o,o],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",o,o],[1,179,"LaunchApp1",0,o,0,"VK_MEDIA_LAUNCH_APP1",o,o],[1,180,"SelectTask",0,o,0,o,o,o],[1,181,"LaunchScreenSaver",0,o,0,o,o,o],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",o,o],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",o,o],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",o,o],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",o,o],[1,186,"BrowserStop",0,o,0,"VK_BROWSER_STOP",o,o],[1,187,"BrowserRefresh",0,o,0,"VK_BROWSER_REFRESH",o,o],[1,188,"BrowserFavorites",0,o,0,"VK_BROWSER_FAVORITES",o,o],[1,189,"ZoomToggle",0,o,0,o,o,o],[1,190,"MailReply",0,o,0,o,o,o],[1,191,"MailForward",0,o,0,o,o,o],[1,192,"MailSend",0,o,0,o,o,o],[1,0,o,114,"KeyInComposition",229,o,o,o],[1,0,o,116,"ABNT_C2",194,"VK_ABNT_C2",o,o],[1,0,o,96,"OEM_8",223,"VK_OEM_8",o,o],[1,0,o,0,o,0,"VK_KANA",o,o],[1,0,o,0,o,0,"VK_HANGUL",o,o],[1,0,o,0,o,0,"VK_JUNJA",o,o],[1,0,o,0,o,0,"VK_FINAL",o,o],[1,0,o,0,o,0,"VK_HANJA",o,o],[1,0,o,0,o,0,"VK_KANJI",o,o],[1,0,o,0,o,0,"VK_CONVERT",o,o],[1,0,o,0,o,0,"VK_NONCONVERT",o,o],[1,0,o,0,o,0,"VK_ACCEPT",o,o],[1,0,o,0,o,0,"VK_MODECHANGE",o,o],[1,0,o,0,o,0,"VK_SELECT",o,o],[1,0,o,0,o,0,"VK_PRINT",o,o],[1,0,o,0,o,0,"VK_EXECUTE",o,o],[1,0,o,0,o,0,"VK_SNAPSHOT",o,o],[1,0,o,0,o,0,"VK_HELP",o,o],[1,0,o,0,o,0,"VK_APPS",o,o],[1,0,o,0,o,0,"VK_PROCESSKEY",o,o],[1,0,o,0,o,0,"VK_PACKET",o,o],[1,0,o,0,o,0,"VK_DBE_SBCSCHAR",o,o],[1,0,o,0,o,0,"VK_DBE_DBCSCHAR",o,o],[1,0,o,0,o,0,"VK_ATTN",o,o],[1,0,o,0,o,0,"VK_CRSEL",o,o],[1,0,o,0,o,0,"VK_EXSEL",o,o],[1,0,o,0,o,0,"VK_EREOF",o,o],[1,0,o,0,o,0,"VK_PLAY",o,o],[1,0,o,0,o,0,"VK_ZOOM",o,o],[1,0,o,0,o,0,"VK_NONAME",o,o],[1,0,o,0,o,0,"VK_PA1",o,o],[1,0,o,0,o,0,"VK_OEM_CLEAR",o,o]],t=[],i=[];for(const n of e){const[s,r,a,l,d,c,h,u,g]=n;if(i[r]||(i[r]=!0,tK[a]=r,iK[a.toLowerCase()]=r,s&&(tA[r]=l)),!t[l]){if(t[l]=!0,!d)throw new Error(`String representation missing for key code ${l} around scan code ${a}`);G1.define(l,d),bI.define(l,u||d),CI.define(l,g||u||d)}c&&(a9[c]=l)}})();var pd;(function(o){function e(a){return G1.keyCodeToStr(a)}o.toString=e;function t(a){return G1.strToKeyCode(a)}o.fromString=t;function i(a){return bI.keyCodeToStr(a)}o.toUserSettingsUS=i;function n(a){return CI.keyCodeToStr(a)}o.toUserSettingsGeneral=n;function s(a){return bI.strToKeyCode(a)||CI.strToKeyCode(a)}o.fromUserSettings=s;function r(a){if(a>=98&&a<=113)return null;switch(a){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return G1.keyCodeToStr(a)}o.toElectronAccelerator=r})(pd||(pd={}));function Ki(o,e){const t=(e&65535)<<16>>>0;return(o|t)>>>0}var EO={};let cm;const hD=globalThis.vscode;if(typeof hD<"u"&&typeof hD.process<"u"){const o=hD.process;cm={get platform(){return o.platform},get arch(){return o.arch},get env(){return o.env},cwd(){return o.cwd()}}}else typeof process<"u"?cm={get platform(){return process.platform},get arch(){return process.arch},get env(){return EO},cwd(){return EO.VSCODE_CWD||process.cwd()}}:cm={get platform(){return Fn?"win32":it?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const Fw=cm.cwd,wI=cm.env,nK=cm.platform,sK=65,oK=97,rK=90,aK=122,sh=46,Xn=47,_o=92,_c=58,lK=63;class l9 extends Error{constructor(e,t,i){let n;typeof t=="string"&&t.indexOf("not ")===0?(n="must not be",t=t.replace(/^not /,"")):n="must be";const s=e.indexOf(".")!==-1?"property":"argument";let r=`The "${e}" ${s} ${n} of type ${t}`;r+=`. Received type ${typeof i}`,super(r),this.code="ERR_INVALID_ARG_TYPE"}}function dK(o,e){if(o===null||typeof o!="object")throw new l9(e,"Object",o)}function un(o,e){if(typeof o!="string")throw new l9(e,"string",o)}const jh=nK==="win32";function It(o){return o===Xn||o===_o}function SI(o){return o===Xn}function vc(o){return o>=sK&&o<=rK||o>=oK&&o<=aK}function Bw(o,e,t,i){let n="",s=0,r=-1,a=0,l=0;for(let d=0;d<=o.length;++d){if(d2){const c=n.lastIndexOf(t);c===-1?(n="",s=0):(n=n.slice(0,c),s=n.length-1-n.lastIndexOf(t)),r=d,a=0;continue}else if(n.length!==0){n="",s=0,r=d,a=0;continue}}e&&(n+=n.length>0?`${t}..`:"..",s=2)}else n.length>0?n+=`${t}${o.slice(r+1,d)}`:n=o.slice(r+1,d),s=d-r-1;r=d,a=0}else l===sh&&a!==-1?++a:a=-1}return n}function d9(o,e){dK(e,"pathObject");const t=e.dir||e.root,i=e.base||`${e.name||""}${e.ext||""}`;return t?t===e.root?`${t}${i}`:`${t}${o}${i}`:i}const io={resolve(...o){let e="",t="",i=!1;for(let n=o.length-1;n>=-1;n--){let s;if(n>=0){if(s=o[n],un(s,"path"),s.length===0)continue}else e.length===0?s=Fw():(s=wI[`=${e}`]||Fw(),(s===void 0||s.slice(0,2).toLowerCase()!==e.toLowerCase()&&s.charCodeAt(2)===_o)&&(s=`${e}\\`));const r=s.length;let a=0,l="",d=!1;const c=s.charCodeAt(0);if(r===1)It(c)&&(a=1,d=!0);else if(It(c))if(d=!0,It(s.charCodeAt(1))){let h=2,u=h;for(;h2&&It(s.charCodeAt(2))&&(d=!0,a=3));if(l.length>0)if(e.length>0){if(l.toLowerCase()!==e.toLowerCase())continue}else e=l;if(i){if(e.length>0)break}else if(t=`${s.slice(a)}\\${t}`,i=d,d&&e.length>0)break}return t=Bw(t,!i,"\\",It),i?`${e}\\${t}`:`${e}${t}`||"."},normalize(o){un(o,"path");const e=o.length;if(e===0)return".";let t=0,i,n=!1;const s=o.charCodeAt(0);if(e===1)return SI(s)?"\\":o;if(It(s))if(n=!0,It(o.charCodeAt(1))){let a=2,l=a;for(;a2&&It(o.charCodeAt(2))&&(n=!0,t=3));let r=t0&&It(o.charCodeAt(e-1))&&(r+="\\"),i===void 0?n?`\\${r}`:r:n?`${i}\\${r}`:`${i}${r}`},isAbsolute(o){un(o,"path");const e=o.length;if(e===0)return!1;const t=o.charCodeAt(0);return It(t)||e>2&&vc(t)&&o.charCodeAt(1)===_c&&It(o.charCodeAt(2))},join(...o){if(o.length===0)return".";let e,t;for(let s=0;s0&&(e===void 0?e=t=r:e+=`\\${r}`)}if(e===void 0)return".";let i=!0,n=0;if(typeof t=="string"&&It(t.charCodeAt(0))){++n;const s=t.length;s>1&&It(t.charCodeAt(1))&&(++n,s>2&&(It(t.charCodeAt(2))?++n:i=!1))}if(i){for(;n=2&&(e=`\\${e.slice(n)}`)}return io.normalize(e)},relative(o,e){if(un(o,"from"),un(e,"to"),o===e)return"";const t=io.resolve(o),i=io.resolve(e);if(t===i||(o=t.toLowerCase(),e=i.toLowerCase(),o===e))return"";let n=0;for(;nn&&o.charCodeAt(s-1)===_o;)s--;const r=s-n;let a=0;for(;aa&&e.charCodeAt(l-1)===_o;)l--;const d=l-a,c=rc){if(e.charCodeAt(a+u)===_o)return i.slice(a+u+1);if(u===2)return i.slice(a+u)}r>c&&(o.charCodeAt(n+u)===_o?h=u:u===2&&(h=3)),h===-1&&(h=0)}let g="";for(u=n+h+1;u<=s;++u)(u===s||o.charCodeAt(u)===_o)&&(g+=g.length===0?"..":"\\..");return a+=h,g.length>0?`${g}${i.slice(a,l)}`:(i.charCodeAt(a)===_o&&++a,i.slice(a,l))},toNamespacedPath(o){if(typeof o!="string"||o.length===0)return o;const e=io.resolve(o);if(e.length<=2)return o;if(e.charCodeAt(0)===_o){if(e.charCodeAt(1)===_o){const t=e.charCodeAt(2);if(t!==lK&&t!==sh)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(vc(e.charCodeAt(0))&&e.charCodeAt(1)===_c&&e.charCodeAt(2)===_o)return`\\\\?\\${e}`;return o},dirname(o){un(o,"path");const e=o.length;if(e===0)return".";let t=-1,i=0;const n=o.charCodeAt(0);if(e===1)return It(n)?o:".";if(It(n)){if(t=i=1,It(o.charCodeAt(1))){let a=2,l=a;for(;a2&&It(o.charCodeAt(2))?3:2,i=t);let s=-1,r=!0;for(let a=e-1;a>=i;--a)if(It(o.charCodeAt(a))){if(!r){s=a;break}}else r=!1;if(s===-1){if(t===-1)return".";s=t}return o.slice(0,s)},basename(o,e){e!==void 0&&un(e,"ext"),un(o,"path");let t=0,i=-1,n=!0,s;if(o.length>=2&&vc(o.charCodeAt(0))&&o.charCodeAt(1)===_c&&(t=2),e!==void 0&&e.length>0&&e.length<=o.length){if(e===o)return"";let r=e.length-1,a=-1;for(s=o.length-1;s>=t;--s){const l=o.charCodeAt(s);if(It(l)){if(!n){t=s+1;break}}else a===-1&&(n=!1,a=s+1),r>=0&&(l===e.charCodeAt(r)?--r===-1&&(i=s):(r=-1,i=a))}return t===i?i=a:i===-1&&(i=o.length),o.slice(t,i)}for(s=o.length-1;s>=t;--s)if(It(o.charCodeAt(s))){if(!n){t=s+1;break}}else i===-1&&(n=!1,i=s+1);return i===-1?"":o.slice(t,i)},extname(o){un(o,"path");let e=0,t=-1,i=0,n=-1,s=!0,r=0;o.length>=2&&o.charCodeAt(1)===_c&&vc(o.charCodeAt(0))&&(e=i=2);for(let a=o.length-1;a>=e;--a){const l=o.charCodeAt(a);if(It(l)){if(!s){i=a+1;break}continue}n===-1&&(s=!1,n=a+1),l===sh?t===-1?t=a:r!==1&&(r=1):t!==-1&&(r=-1)}return t===-1||n===-1||r===0||r===1&&t===n-1&&t===i+1?"":o.slice(t,n)},format:d9.bind(null,"\\"),parse(o){un(o,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return e;const t=o.length;let i=0,n=o.charCodeAt(0);if(t===1)return It(n)?(e.root=e.dir=o,e):(e.base=e.name=o,e);if(It(n)){if(i=1,It(o.charCodeAt(1))){let h=2,u=h;for(;h0&&(e.root=o.slice(0,i));let s=-1,r=i,a=-1,l=!0,d=o.length-1,c=0;for(;d>=i;--d){if(n=o.charCodeAt(d),It(n)){if(!l){r=d+1;break}continue}a===-1&&(l=!1,a=d+1),n===sh?s===-1?s=d:c!==1&&(c=1):s!==-1&&(c=-1)}return a!==-1&&(s===-1||c===0||c===1&&s===a-1&&s===r+1?e.base=e.name=o.slice(r,a):(e.name=o.slice(r,s),e.base=o.slice(r,a),e.ext=o.slice(s,a))),r>0&&r!==i?e.dir=o.slice(0,r-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},cK=(()=>{if(jh){const o=/\\/g;return()=>{const e=Fw().replace(o,"/");return e.slice(e.indexOf("/"))}}return()=>Fw()})(),Wi={resolve(...o){let e="",t=!1;for(let i=o.length-1;i>=-1&&!t;i--){const n=i>=0?o[i]:cK();un(n,"path"),n.length!==0&&(e=`${n}/${e}`,t=n.charCodeAt(0)===Xn)}return e=Bw(e,!t,"/",SI),t?`/${e}`:e.length>0?e:"."},normalize(o){if(un(o,"path"),o.length===0)return".";const e=o.charCodeAt(0)===Xn,t=o.charCodeAt(o.length-1)===Xn;return o=Bw(o,!e,"/",SI),o.length===0?e?"/":t?"./":".":(t&&(o+="/"),e?`/${o}`:o)},isAbsolute(o){return un(o,"path"),o.length>0&&o.charCodeAt(0)===Xn},join(...o){if(o.length===0)return".";let e;for(let t=0;t0&&(e===void 0?e=i:e+=`/${i}`)}return e===void 0?".":Wi.normalize(e)},relative(o,e){if(un(o,"from"),un(e,"to"),o===e||(o=Wi.resolve(o),e=Wi.resolve(e),o===e))return"";const t=1,i=o.length,n=i-t,s=1,r=e.length-s,a=na){if(e.charCodeAt(s+d)===Xn)return e.slice(s+d+1);if(d===0)return e.slice(s+d)}else n>a&&(o.charCodeAt(t+d)===Xn?l=d:d===0&&(l=0));let c="";for(d=t+l+1;d<=i;++d)(d===i||o.charCodeAt(d)===Xn)&&(c+=c.length===0?"..":"/..");return`${c}${e.slice(s+l)}`},toNamespacedPath(o){return o},dirname(o){if(un(o,"path"),o.length===0)return".";const e=o.charCodeAt(0)===Xn;let t=-1,i=!0;for(let n=o.length-1;n>=1;--n)if(o.charCodeAt(n)===Xn){if(!i){t=n;break}}else i=!1;return t===-1?e?"/":".":e&&t===1?"//":o.slice(0,t)},basename(o,e){e!==void 0&&un(e,"ext"),un(o,"path");let t=0,i=-1,n=!0,s;if(e!==void 0&&e.length>0&&e.length<=o.length){if(e===o)return"";let r=e.length-1,a=-1;for(s=o.length-1;s>=0;--s){const l=o.charCodeAt(s);if(l===Xn){if(!n){t=s+1;break}}else a===-1&&(n=!1,a=s+1),r>=0&&(l===e.charCodeAt(r)?--r===-1&&(i=s):(r=-1,i=a))}return t===i?i=a:i===-1&&(i=o.length),o.slice(t,i)}for(s=o.length-1;s>=0;--s)if(o.charCodeAt(s)===Xn){if(!n){t=s+1;break}}else i===-1&&(n=!1,i=s+1);return i===-1?"":o.slice(t,i)},extname(o){un(o,"path");let e=-1,t=0,i=-1,n=!0,s=0;for(let r=o.length-1;r>=0;--r){const a=o.charCodeAt(r);if(a===Xn){if(!n){t=r+1;break}continue}i===-1&&(n=!1,i=r+1),a===sh?e===-1?e=r:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||i===-1||s===0||s===1&&e===i-1&&e===t+1?"":o.slice(e,i)},format:d9.bind(null,"/"),parse(o){un(o,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return e;const t=o.charCodeAt(0)===Xn;let i;t?(e.root="/",i=1):i=0;let n=-1,s=0,r=-1,a=!0,l=o.length-1,d=0;for(;l>=i;--l){const c=o.charCodeAt(l);if(c===Xn){if(!a){s=l+1;break}continue}r===-1&&(a=!1,r=l+1),c===sh?n===-1?n=l:d!==1&&(d=1):n!==-1&&(d=-1)}if(r!==-1){const c=s===0&&t?1:s;n===-1||d===0||d===1&&n===r-1&&n===s+1?e.base=e.name=o.slice(c,r):(e.name=o.slice(c,n),e.base=o.slice(c,r),e.ext=o.slice(n,r))}return s>0?e.dir=o.slice(0,s-1):t&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};Wi.win32=io.win32=io;Wi.posix=io.posix=Wi;const c9=jh?io.normalize:Wi.normalize,hK=jh?io.resolve:Wi.resolve,uK=jh?io.relative:Wi.relative,h9=jh?io.dirname:Wi.dirname,oh=jh?io.basename:Wi.basename,gK=jh?io.extname:Wi.extname,va=jh?io.sep:Wi.sep,fK=/^\w[\w\d+.-]*$/,mK=/^\//,pK=/^\/\//;function _K(o,e){if(!o.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${o.authority}", path: "${o.path}", query: "${o.query}", fragment: "${o.fragment}"}`);if(o.scheme&&!fK.test(o.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(o.path){if(o.authority){if(!mK.test(o.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(pK.test(o.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function vK(o,e){return!o&&!e?"file":o}function bK(o,e){switch(o){case"https":case"http":case"file":e?e[0]!==aa&&(e=aa+e):e=aa;break}return e}const Ai="",aa="/",CK=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class ke{static isUri(e){return e instanceof ke?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}constructor(e,t,i,n,s,r=!1){typeof e=="object"?(this.scheme=e.scheme||Ai,this.authority=e.authority||Ai,this.path=e.path||Ai,this.query=e.query||Ai,this.fragment=e.fragment||Ai):(this.scheme=vK(e,r),this.authority=t||Ai,this.path=bK(this.scheme,i||Ai),this.query=n||Ai,this.fragment=s||Ai,_K(this,r))}get fsPath(){return Ww(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:s,fragment:r}=e;return t===void 0?t=this.scheme:t===null&&(t=Ai),i===void 0?i=this.authority:i===null&&(i=Ai),n===void 0?n=this.path:n===null&&(n=Ai),s===void 0?s=this.query:s===null&&(s=Ai),r===void 0?r=this.fragment:r===null&&(r=Ai),t===this.scheme&&i===this.authority&&n===this.path&&s===this.query&&r===this.fragment?this:new lf(t,i,n,s,r)}static parse(e,t=!1){const i=CK.exec(e);return i?new lf(i[2]||Ai,yC(i[4]||Ai),yC(i[5]||Ai),yC(i[7]||Ai),yC(i[9]||Ai),t):new lf(Ai,Ai,Ai,Ai,Ai)}static file(e){let t=Ai;if(Fn&&(e=e.replace(/\\/g,aa)),e[0]===aa&&e[1]===aa){const i=e.indexOf(aa,2);i===-1?(t=e.substring(2),e=aa):(t=e.substring(2,i),e=e.substring(i)||aa)}return new lf("file",t,e,Ai,Ai)}static from(e,t){return new lf(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return Fn&&e.scheme==="file"?i=ke.file(io.join(Ww(e,!0),...t)).path:i=Wi.join(e.path,...t),e.with({path:i})}toString(e=!1){return yI(this,e)}toJSON(){return this}static revive(e){var t,i;if(e){if(e instanceof ke)return e;{const n=new lf(e);return n._formatted=(t=e.external)!==null&&t!==void 0?t:null,n._fsPath=e._sep===u9&&(i=e.fsPath)!==null&&i!==void 0?i:null,n}}else return e}}const u9=Fn?1:void 0;let lf=class extends ke{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Ww(this,!1)),this._fsPath}toString(e=!1){return e?yI(this,!0):(this._formatted||(this._formatted=yI(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=u9),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}};const g9={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 NO(o,e,t){let i,n=-1;for(let s=0;s=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||r===45||r===46||r===95||r===126||e&&r===47||t&&r===91||t&&r===93||t&&r===58)n!==-1&&(i+=encodeURIComponent(o.substring(n,s)),n=-1),i!==void 0&&(i+=o.charAt(s));else{i===void 0&&(i=o.substr(0,s));const a=g9[r];a!==void 0?(n!==-1&&(i+=encodeURIComponent(o.substring(n,s)),n=-1),i+=a):n===-1&&(n=s)}}return n!==-1&&(i+=encodeURIComponent(o.substring(n))),i!==void 0?i:o}function wK(o){let e;for(let t=0;t1&&o.scheme==="file"?t=`//${o.authority}${o.path}`:o.path.charCodeAt(0)===47&&(o.path.charCodeAt(1)>=65&&o.path.charCodeAt(1)<=90||o.path.charCodeAt(1)>=97&&o.path.charCodeAt(1)<=122)&&o.path.charCodeAt(2)===58?e?t=o.path.substr(1):t=o.path[1].toLowerCase()+o.path.substr(2):t=o.path,Fn&&(t=t.replace(/\//g,"\\")),t}function yI(o,e){const t=e?wK:NO;let i="",{scheme:n,authority:s,path:r,query:a,fragment:l}=o;if(n&&(i+=n,i+=":"),(s||n==="file")&&(i+=aa,i+=aa),s){let d=s.indexOf("@");if(d!==-1){const c=s.substr(0,d);s=s.substr(d+1),d=c.lastIndexOf(":"),d===-1?i+=t(c,!1,!1):(i+=t(c.substr(0,d),!1,!1),i+=":",i+=t(c.substr(d+1),!1,!0)),i+="@"}s=s.toLowerCase(),d=s.lastIndexOf(":"),d===-1?i+=t(s,!1,!0):(i+=t(s.substr(0,d),!1,!0),i+=s.substr(d))}if(r){if(r.length>=3&&r.charCodeAt(0)===47&&r.charCodeAt(2)===58){const d=r.charCodeAt(1);d>=65&&d<=90&&(r=`/${String.fromCharCode(d+32)}:${r.substr(3)}`)}else if(r.length>=2&&r.charCodeAt(1)===58){const d=r.charCodeAt(0);d>=65&&d<=90&&(r=`${String.fromCharCode(d+32)}:${r.substr(2)}`)}i+=t(r,!0,!1)}return a&&(i+="?",i+=t(a,!1,!1)),l&&(i+="#",i+=e?l:NO(l,!1,!1)),i}function f9(o){try{return decodeURIComponent(o)}catch{return o.length>3?o.substr(0,3)+f9(o.substr(3)):o}}const TO=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function yC(o){return o.match(TO)?o.replace(TO,e=>f9(e)):o}let F=class Cu{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new Cu(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return Cu.equals(this,e)}static equals(e,t){return!e&&!t?!0:!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return Cu.isBefore(this,e)}static isBefore(e,t){return e.lineNumberi||e===i&&t>n?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=n)}isEmpty(){return bn.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return bn.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(e){return bn.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)}strictContainsRange(e){return bn.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return bn.plusRange(this,e)}static plusRange(e,t){let i,n,s,r;return t.startLineNumbere.endLineNumber?(s=t.endLineNumber,r=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,r=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,r=e.endColumn),new bn(i,n,s,r)}intersectRanges(e){return bn.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,n=e.startColumn,s=e.endLineNumber,r=e.endColumn;const a=t.startLineNumber,l=t.startColumn,d=t.endLineNumber,c=t.endColumn;return id?(s=d,r=c):s===d&&(r=Math.min(r,c)),i>s||i===s&&n>r?null:new bn(i,n,s,r)}equalsRange(e){return bn.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t?!0:!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return bn.getEndPosition(this)}static getEndPosition(e){return new F(e.endLineNumber,e.endColumn)}getStartPosition(){return bn.getStartPosition(this)}static getStartPosition(e){return new F(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new bn(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new bn(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return bn.collapseToStart(this)}static collapseToStart(e){return new bn(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return bn.collapseToEnd(this)}static collapseToEnd(e){return new bn(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new bn(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new bn(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new bn(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}},_e=class Lr extends x{constructor(e,t,i,n){super(e,t,i,n),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return Lr.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return this.getDirection()===0?new Lr(this.startLineNumber,this.startColumn,e,t):new Lr(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new F(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new F(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return this.getDirection()===0?new Lr(e,t,this.endLineNumber,this.endColumn):new Lr(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new Lr(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return t===0?new Lr(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new Lr(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new Lr(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,n=e.length;i{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var i;(i=this._factories.get(e))===null||i===void 0||i.dispose();const n=new xK(this,e,t);return this._factories.set(e,n),Ce(()=>{const s=this._factories.get(e);!s||s!==n||(this._factories.delete(e),s.dispose())})}async getOrCreate(e){const t=this.get(e);if(t)return t;const i=this._factories.get(e);return!i||i.isResolved?null:(await i.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const i=this._factories.get(e);return!!(!i||i.isResolved)}setColorMap(e){this._colorMap=e,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}};class xK extends W{get isResolved(){return this._isResolved}constructor(e,t,i){super(),this._registry=e,this._languageId=t,this._factory=i,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(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}let Hv=class{constructor(e,t,i){this.offset=e,this.type=t,this.language=i,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};class iA{constructor(e,t){this.tokens=e,this.endState=t,this._tokenizationResultBrand=void 0}}class Uy{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}var Lo;(function(o){o[o.Increase=0]="Increase",o[o.Decrease=1]="Decrease"})(Lo||(Lo={}));var Vv;(function(o){const e=new Map;e.set(0,oe.symbolMethod),e.set(1,oe.symbolFunction),e.set(2,oe.symbolConstructor),e.set(3,oe.symbolField),e.set(4,oe.symbolVariable),e.set(5,oe.symbolClass),e.set(6,oe.symbolStruct),e.set(7,oe.symbolInterface),e.set(8,oe.symbolModule),e.set(9,oe.symbolProperty),e.set(10,oe.symbolEvent),e.set(11,oe.symbolOperator),e.set(12,oe.symbolUnit),e.set(13,oe.symbolValue),e.set(15,oe.symbolEnum),e.set(14,oe.symbolConstant),e.set(15,oe.symbolEnum),e.set(16,oe.symbolEnumMember),e.set(17,oe.symbolKeyword),e.set(27,oe.symbolSnippet),e.set(18,oe.symbolText),e.set(19,oe.symbolColor),e.set(20,oe.symbolFile),e.set(21,oe.symbolReference),e.set(22,oe.symbolCustomColor),e.set(23,oe.symbolFolder),e.set(24,oe.symbolTypeParameter),e.set(25,oe.account),e.set(26,oe.issues);function t(s){let r=e.get(s);return r||(console.info("No codicon found for CompletionItemKind "+s),r=oe.symbolProperty),r}o.toIcon=t;const i=new Map;i.set("method",0),i.set("function",1),i.set("constructor",2),i.set("field",3),i.set("variable",4),i.set("class",5),i.set("struct",6),i.set("interface",7),i.set("module",8),i.set("property",9),i.set("event",10),i.set("operator",11),i.set("unit",12),i.set("value",13),i.set("constant",14),i.set("enum",15),i.set("enum-member",16),i.set("enumMember",16),i.set("keyword",17),i.set("snippet",27),i.set("text",18),i.set("color",19),i.set("file",20),i.set("reference",21),i.set("customcolor",22),i.set("folder",23),i.set("type-parameter",24),i.set("typeParameter",24),i.set("account",25),i.set("issue",26);function n(s,r){let a=i.get(s);return typeof a>"u"&&!r&&(a=9),a}o.fromString=n})(Vv||(Vv={}));var Hd;(function(o){o[o.Automatic=0]="Automatic",o[o.Explicit=1]="Explicit"})(Hd||(Hd={}));class p9{constructor(e,t,i,n){this.range=e,this.text=t,this.completionKind=i,this.isSnippetText=n}equals(e){return x.lift(this.range).equalsRange(e.range)&&this.text===e.text&&this.completionKind===e.completionKind&&this.isSnippetText===e.isSnippetText}}var zv;(function(o){o[o.Automatic=0]="Automatic",o[o.PasteAs=1]="PasteAs"})(zv||(zv={}));var Dl;(function(o){o[o.Invoke=1]="Invoke",o[o.TriggerCharacter=2]="TriggerCharacter",o[o.ContentChange=3]="ContentChange"})(Dl||(Dl={}));var Uv;(function(o){o[o.Text=0]="Text",o[o.Read=1]="Read",o[o.Write=2]="Write"})(Uv||(Uv={}));function DK(o){return o&&ke.isUri(o.uri)&&x.isIRange(o.range)&&(x.isIRange(o.originSelectionRange)||x.isIRange(o.targetSelectionRange))}const kK={17:m("Array","array"),16:m("Boolean","boolean"),4:m("Class","class"),13:m("Constant","constant"),8:m("Constructor","constructor"),9:m("Enum","enumeration"),21:m("EnumMember","enumeration member"),23:m("Event","event"),7:m("Field","field"),0:m("File","file"),11:m("Function","function"),10:m("Interface","interface"),19:m("Key","key"),5:m("Method","method"),1:m("Module","module"),2:m("Namespace","namespace"),20:m("Null","null"),15:m("Number","number"),18:m("Object","object"),24:m("Operator","operator"),3:m("Package","package"),6:m("Property","property"),14:m("String","string"),22:m("Struct","struct"),25:m("TypeParameter","type parameter"),12:m("Variable","variable")};function IK(o,e){return m("symbolAriaLabel","{0} ({1})",o,kK[e])}var Hw;(function(o){const e=new Map;e.set(0,oe.symbolFile),e.set(1,oe.symbolModule),e.set(2,oe.symbolNamespace),e.set(3,oe.symbolPackage),e.set(4,oe.symbolClass),e.set(5,oe.symbolMethod),e.set(6,oe.symbolProperty),e.set(7,oe.symbolField),e.set(8,oe.symbolConstructor),e.set(9,oe.symbolEnum),e.set(10,oe.symbolInterface),e.set(11,oe.symbolFunction),e.set(12,oe.symbolVariable),e.set(13,oe.symbolConstant),e.set(14,oe.symbolString),e.set(15,oe.symbolNumber),e.set(16,oe.symbolBoolean),e.set(17,oe.symbolArray),e.set(18,oe.symbolObject),e.set(19,oe.symbolKey),e.set(20,oe.symbolNull),e.set(21,oe.symbolEnumMember),e.set(22,oe.symbolStruct),e.set(23,oe.symbolEvent),e.set(24,oe.symbolOperator),e.set(25,oe.symbolTypeParameter);function t(i){let n=e.get(i);return n||(console.info("No codicon found for SymbolKind "+i),n=oe.symbolProperty),n}o.toIcon=t})(Hw||(Hw={}));class bs{static fromValue(e){switch(e){case"comment":return bs.Comment;case"imports":return bs.Imports;case"region":return bs.Region}return new bs(e)}constructor(e){this.value=e}}bs.Comment=new bs("comment");bs.Imports=new bs("imports");bs.Region=new bs("region");var xI;(function(o){o[o.AIGenerated=1]="AIGenerated"})(xI||(xI={}));var $v;(function(o){o[o.Invoke=0]="Invoke",o[o.Automatic=1]="Automatic"})($v||($v={}));var DI;(function(o){function e(t){return!t||typeof t!="object"?!1:typeof t.id=="string"&&typeof t.title=="string"}o.is=e})(DI||(DI={}));var Vw;(function(o){o[o.Type=1]="Type",o[o.Parameter=2]="Parameter"})(Vw||(Vw={}));class EK{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(e=>{e&&e.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const gi=new LK;var zw;(function(o){o[o.Invoke=0]="Invoke",o[o.Automatic=1]="Automatic"})(zw||(zw={}));var kI;(function(o){o[o.Unknown=0]="Unknown",o[o.Disabled=1]="Disabled",o[o.Enabled=2]="Enabled"})(kI||(kI={}));var II;(function(o){o[o.Invoke=1]="Invoke",o[o.Auto=2]="Auto"})(II||(II={}));var EI;(function(o){o[o.None=0]="None",o[o.KeepWhitespace=1]="KeepWhitespace",o[o.InsertAsSnippet=4]="InsertAsSnippet"})(EI||(EI={}));var NI;(function(o){o[o.Method=0]="Method",o[o.Function=1]="Function",o[o.Constructor=2]="Constructor",o[o.Field=3]="Field",o[o.Variable=4]="Variable",o[o.Class=5]="Class",o[o.Struct=6]="Struct",o[o.Interface=7]="Interface",o[o.Module=8]="Module",o[o.Property=9]="Property",o[o.Event=10]="Event",o[o.Operator=11]="Operator",o[o.Unit=12]="Unit",o[o.Value=13]="Value",o[o.Constant=14]="Constant",o[o.Enum=15]="Enum",o[o.EnumMember=16]="EnumMember",o[o.Keyword=17]="Keyword",o[o.Text=18]="Text",o[o.Color=19]="Color",o[o.File=20]="File",o[o.Reference=21]="Reference",o[o.Customcolor=22]="Customcolor",o[o.Folder=23]="Folder",o[o.TypeParameter=24]="TypeParameter",o[o.User=25]="User",o[o.Issue=26]="Issue",o[o.Snippet=27]="Snippet"})(NI||(NI={}));var TI;(function(o){o[o.Deprecated=1]="Deprecated"})(TI||(TI={}));var MI;(function(o){o[o.Invoke=0]="Invoke",o[o.TriggerCharacter=1]="TriggerCharacter",o[o.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(MI||(MI={}));var RI;(function(o){o[o.EXACT=0]="EXACT",o[o.ABOVE=1]="ABOVE",o[o.BELOW=2]="BELOW"})(RI||(RI={}));var AI;(function(o){o[o.NotSet=0]="NotSet",o[o.ContentFlush=1]="ContentFlush",o[o.RecoverFromMarkers=2]="RecoverFromMarkers",o[o.Explicit=3]="Explicit",o[o.Paste=4]="Paste",o[o.Undo=5]="Undo",o[o.Redo=6]="Redo"})(AI||(AI={}));var PI;(function(o){o[o.LF=1]="LF",o[o.CRLF=2]="CRLF"})(PI||(PI={}));var OI;(function(o){o[o.Text=0]="Text",o[o.Read=1]="Read",o[o.Write=2]="Write"})(OI||(OI={}));var FI;(function(o){o[o.None=0]="None",o[o.Keep=1]="Keep",o[o.Brackets=2]="Brackets",o[o.Advanced=3]="Advanced",o[o.Full=4]="Full"})(FI||(FI={}));var BI;(function(o){o[o.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",o[o.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",o[o.accessibilitySupport=2]="accessibilitySupport",o[o.accessibilityPageSize=3]="accessibilityPageSize",o[o.ariaLabel=4]="ariaLabel",o[o.ariaRequired=5]="ariaRequired",o[o.autoClosingBrackets=6]="autoClosingBrackets",o[o.autoClosingComments=7]="autoClosingComments",o[o.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",o[o.autoClosingDelete=9]="autoClosingDelete",o[o.autoClosingOvertype=10]="autoClosingOvertype",o[o.autoClosingQuotes=11]="autoClosingQuotes",o[o.autoIndent=12]="autoIndent",o[o.automaticLayout=13]="automaticLayout",o[o.autoSurround=14]="autoSurround",o[o.bracketPairColorization=15]="bracketPairColorization",o[o.guides=16]="guides",o[o.codeLens=17]="codeLens",o[o.codeLensFontFamily=18]="codeLensFontFamily",o[o.codeLensFontSize=19]="codeLensFontSize",o[o.colorDecorators=20]="colorDecorators",o[o.colorDecoratorsLimit=21]="colorDecoratorsLimit",o[o.columnSelection=22]="columnSelection",o[o.comments=23]="comments",o[o.contextmenu=24]="contextmenu",o[o.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",o[o.cursorBlinking=26]="cursorBlinking",o[o.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",o[o.cursorStyle=28]="cursorStyle",o[o.cursorSurroundingLines=29]="cursorSurroundingLines",o[o.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",o[o.cursorWidth=31]="cursorWidth",o[o.disableLayerHinting=32]="disableLayerHinting",o[o.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",o[o.domReadOnly=34]="domReadOnly",o[o.dragAndDrop=35]="dragAndDrop",o[o.dropIntoEditor=36]="dropIntoEditor",o[o.emptySelectionClipboard=37]="emptySelectionClipboard",o[o.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",o[o.extraEditorClassName=39]="extraEditorClassName",o[o.fastScrollSensitivity=40]="fastScrollSensitivity",o[o.find=41]="find",o[o.fixedOverflowWidgets=42]="fixedOverflowWidgets",o[o.folding=43]="folding",o[o.foldingStrategy=44]="foldingStrategy",o[o.foldingHighlight=45]="foldingHighlight",o[o.foldingImportsByDefault=46]="foldingImportsByDefault",o[o.foldingMaximumRegions=47]="foldingMaximumRegions",o[o.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",o[o.fontFamily=49]="fontFamily",o[o.fontInfo=50]="fontInfo",o[o.fontLigatures=51]="fontLigatures",o[o.fontSize=52]="fontSize",o[o.fontWeight=53]="fontWeight",o[o.fontVariations=54]="fontVariations",o[o.formatOnPaste=55]="formatOnPaste",o[o.formatOnType=56]="formatOnType",o[o.glyphMargin=57]="glyphMargin",o[o.gotoLocation=58]="gotoLocation",o[o.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",o[o.hover=60]="hover",o[o.inDiffEditor=61]="inDiffEditor",o[o.inlineSuggest=62]="inlineSuggest",o[o.inlineEdit=63]="inlineEdit",o[o.letterSpacing=64]="letterSpacing",o[o.lightbulb=65]="lightbulb",o[o.lineDecorationsWidth=66]="lineDecorationsWidth",o[o.lineHeight=67]="lineHeight",o[o.lineNumbers=68]="lineNumbers",o[o.lineNumbersMinChars=69]="lineNumbersMinChars",o[o.linkedEditing=70]="linkedEditing",o[o.links=71]="links",o[o.matchBrackets=72]="matchBrackets",o[o.minimap=73]="minimap",o[o.mouseStyle=74]="mouseStyle",o[o.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",o[o.mouseWheelZoom=76]="mouseWheelZoom",o[o.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",o[o.multiCursorModifier=78]="multiCursorModifier",o[o.multiCursorPaste=79]="multiCursorPaste",o[o.multiCursorLimit=80]="multiCursorLimit",o[o.occurrencesHighlight=81]="occurrencesHighlight",o[o.overviewRulerBorder=82]="overviewRulerBorder",o[o.overviewRulerLanes=83]="overviewRulerLanes",o[o.padding=84]="padding",o[o.pasteAs=85]="pasteAs",o[o.parameterHints=86]="parameterHints",o[o.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",o[o.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",o[o.quickSuggestions=89]="quickSuggestions",o[o.quickSuggestionsDelay=90]="quickSuggestionsDelay",o[o.readOnly=91]="readOnly",o[o.readOnlyMessage=92]="readOnlyMessage",o[o.renameOnType=93]="renameOnType",o[o.renderControlCharacters=94]="renderControlCharacters",o[o.renderFinalNewline=95]="renderFinalNewline",o[o.renderLineHighlight=96]="renderLineHighlight",o[o.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",o[o.renderValidationDecorations=98]="renderValidationDecorations",o[o.renderWhitespace=99]="renderWhitespace",o[o.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",o[o.roundedSelection=101]="roundedSelection",o[o.rulers=102]="rulers",o[o.scrollbar=103]="scrollbar",o[o.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",o[o.scrollBeyondLastLine=105]="scrollBeyondLastLine",o[o.scrollPredominantAxis=106]="scrollPredominantAxis",o[o.selectionClipboard=107]="selectionClipboard",o[o.selectionHighlight=108]="selectionHighlight",o[o.selectOnLineNumbers=109]="selectOnLineNumbers",o[o.showFoldingControls=110]="showFoldingControls",o[o.showUnused=111]="showUnused",o[o.snippetSuggestions=112]="snippetSuggestions",o[o.smartSelect=113]="smartSelect",o[o.smoothScrolling=114]="smoothScrolling",o[o.stickyScroll=115]="stickyScroll",o[o.stickyTabStops=116]="stickyTabStops",o[o.stopRenderingLineAfter=117]="stopRenderingLineAfter",o[o.suggest=118]="suggest",o[o.suggestFontSize=119]="suggestFontSize",o[o.suggestLineHeight=120]="suggestLineHeight",o[o.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",o[o.suggestSelection=122]="suggestSelection",o[o.tabCompletion=123]="tabCompletion",o[o.tabIndex=124]="tabIndex",o[o.unicodeHighlighting=125]="unicodeHighlighting",o[o.unusualLineTerminators=126]="unusualLineTerminators",o[o.useShadowDOM=127]="useShadowDOM",o[o.useTabStops=128]="useTabStops",o[o.wordBreak=129]="wordBreak",o[o.wordSegmenterLocales=130]="wordSegmenterLocales",o[o.wordSeparators=131]="wordSeparators",o[o.wordWrap=132]="wordWrap",o[o.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",o[o.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",o[o.wordWrapColumn=135]="wordWrapColumn",o[o.wordWrapOverride1=136]="wordWrapOverride1",o[o.wordWrapOverride2=137]="wordWrapOverride2",o[o.wrappingIndent=138]="wrappingIndent",o[o.wrappingStrategy=139]="wrappingStrategy",o[o.showDeprecated=140]="showDeprecated",o[o.inlayHints=141]="inlayHints",o[o.editorClassName=142]="editorClassName",o[o.pixelRatio=143]="pixelRatio",o[o.tabFocusMode=144]="tabFocusMode",o[o.layoutInfo=145]="layoutInfo",o[o.wrappingInfo=146]="wrappingInfo",o[o.defaultColorDecorators=147]="defaultColorDecorators",o[o.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",o[o.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"})(BI||(BI={}));var WI;(function(o){o[o.TextDefined=0]="TextDefined",o[o.LF=1]="LF",o[o.CRLF=2]="CRLF"})(WI||(WI={}));var HI;(function(o){o[o.LF=0]="LF",o[o.CRLF=1]="CRLF"})(HI||(HI={}));var VI;(function(o){o[o.Left=1]="Left",o[o.Center=2]="Center",o[o.Right=3]="Right"})(VI||(VI={}));var zI;(function(o){o[o.Increase=0]="Increase",o[o.Decrease=1]="Decrease"})(zI||(zI={}));var UI;(function(o){o[o.None=0]="None",o[o.Indent=1]="Indent",o[o.IndentOutdent=2]="IndentOutdent",o[o.Outdent=3]="Outdent"})(UI||(UI={}));var $I;(function(o){o[o.Both=0]="Both",o[o.Right=1]="Right",o[o.Left=2]="Left",o[o.None=3]="None"})($I||($I={}));var jI;(function(o){o[o.Type=1]="Type",o[o.Parameter=2]="Parameter"})(jI||(jI={}));var KI;(function(o){o[o.Automatic=0]="Automatic",o[o.Explicit=1]="Explicit"})(KI||(KI={}));var qI;(function(o){o[o.Invoke=0]="Invoke",o[o.Automatic=1]="Automatic"})(qI||(qI={}));var GI;(function(o){o[o.DependsOnKbLayout=-1]="DependsOnKbLayout",o[o.Unknown=0]="Unknown",o[o.Backspace=1]="Backspace",o[o.Tab=2]="Tab",o[o.Enter=3]="Enter",o[o.Shift=4]="Shift",o[o.Ctrl=5]="Ctrl",o[o.Alt=6]="Alt",o[o.PauseBreak=7]="PauseBreak",o[o.CapsLock=8]="CapsLock",o[o.Escape=9]="Escape",o[o.Space=10]="Space",o[o.PageUp=11]="PageUp",o[o.PageDown=12]="PageDown",o[o.End=13]="End",o[o.Home=14]="Home",o[o.LeftArrow=15]="LeftArrow",o[o.UpArrow=16]="UpArrow",o[o.RightArrow=17]="RightArrow",o[o.DownArrow=18]="DownArrow",o[o.Insert=19]="Insert",o[o.Delete=20]="Delete",o[o.Digit0=21]="Digit0",o[o.Digit1=22]="Digit1",o[o.Digit2=23]="Digit2",o[o.Digit3=24]="Digit3",o[o.Digit4=25]="Digit4",o[o.Digit5=26]="Digit5",o[o.Digit6=27]="Digit6",o[o.Digit7=28]="Digit7",o[o.Digit8=29]="Digit8",o[o.Digit9=30]="Digit9",o[o.KeyA=31]="KeyA",o[o.KeyB=32]="KeyB",o[o.KeyC=33]="KeyC",o[o.KeyD=34]="KeyD",o[o.KeyE=35]="KeyE",o[o.KeyF=36]="KeyF",o[o.KeyG=37]="KeyG",o[o.KeyH=38]="KeyH",o[o.KeyI=39]="KeyI",o[o.KeyJ=40]="KeyJ",o[o.KeyK=41]="KeyK",o[o.KeyL=42]="KeyL",o[o.KeyM=43]="KeyM",o[o.KeyN=44]="KeyN",o[o.KeyO=45]="KeyO",o[o.KeyP=46]="KeyP",o[o.KeyQ=47]="KeyQ",o[o.KeyR=48]="KeyR",o[o.KeyS=49]="KeyS",o[o.KeyT=50]="KeyT",o[o.KeyU=51]="KeyU",o[o.KeyV=52]="KeyV",o[o.KeyW=53]="KeyW",o[o.KeyX=54]="KeyX",o[o.KeyY=55]="KeyY",o[o.KeyZ=56]="KeyZ",o[o.Meta=57]="Meta",o[o.ContextMenu=58]="ContextMenu",o[o.F1=59]="F1",o[o.F2=60]="F2",o[o.F3=61]="F3",o[o.F4=62]="F4",o[o.F5=63]="F5",o[o.F6=64]="F6",o[o.F7=65]="F7",o[o.F8=66]="F8",o[o.F9=67]="F9",o[o.F10=68]="F10",o[o.F11=69]="F11",o[o.F12=70]="F12",o[o.F13=71]="F13",o[o.F14=72]="F14",o[o.F15=73]="F15",o[o.F16=74]="F16",o[o.F17=75]="F17",o[o.F18=76]="F18",o[o.F19=77]="F19",o[o.F20=78]="F20",o[o.F21=79]="F21",o[o.F22=80]="F22",o[o.F23=81]="F23",o[o.F24=82]="F24",o[o.NumLock=83]="NumLock",o[o.ScrollLock=84]="ScrollLock",o[o.Semicolon=85]="Semicolon",o[o.Equal=86]="Equal",o[o.Comma=87]="Comma",o[o.Minus=88]="Minus",o[o.Period=89]="Period",o[o.Slash=90]="Slash",o[o.Backquote=91]="Backquote",o[o.BracketLeft=92]="BracketLeft",o[o.Backslash=93]="Backslash",o[o.BracketRight=94]="BracketRight",o[o.Quote=95]="Quote",o[o.OEM_8=96]="OEM_8",o[o.IntlBackslash=97]="IntlBackslash",o[o.Numpad0=98]="Numpad0",o[o.Numpad1=99]="Numpad1",o[o.Numpad2=100]="Numpad2",o[o.Numpad3=101]="Numpad3",o[o.Numpad4=102]="Numpad4",o[o.Numpad5=103]="Numpad5",o[o.Numpad6=104]="Numpad6",o[o.Numpad7=105]="Numpad7",o[o.Numpad8=106]="Numpad8",o[o.Numpad9=107]="Numpad9",o[o.NumpadMultiply=108]="NumpadMultiply",o[o.NumpadAdd=109]="NumpadAdd",o[o.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",o[o.NumpadSubtract=111]="NumpadSubtract",o[o.NumpadDecimal=112]="NumpadDecimal",o[o.NumpadDivide=113]="NumpadDivide",o[o.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",o[o.ABNT_C1=115]="ABNT_C1",o[o.ABNT_C2=116]="ABNT_C2",o[o.AudioVolumeMute=117]="AudioVolumeMute",o[o.AudioVolumeUp=118]="AudioVolumeUp",o[o.AudioVolumeDown=119]="AudioVolumeDown",o[o.BrowserSearch=120]="BrowserSearch",o[o.BrowserHome=121]="BrowserHome",o[o.BrowserBack=122]="BrowserBack",o[o.BrowserForward=123]="BrowserForward",o[o.MediaTrackNext=124]="MediaTrackNext",o[o.MediaTrackPrevious=125]="MediaTrackPrevious",o[o.MediaStop=126]="MediaStop",o[o.MediaPlayPause=127]="MediaPlayPause",o[o.LaunchMediaPlayer=128]="LaunchMediaPlayer",o[o.LaunchMail=129]="LaunchMail",o[o.LaunchApp2=130]="LaunchApp2",o[o.Clear=131]="Clear",o[o.MAX_VALUE=132]="MAX_VALUE"})(GI||(GI={}));var ZI;(function(o){o[o.Hint=1]="Hint",o[o.Info=2]="Info",o[o.Warning=4]="Warning",o[o.Error=8]="Error"})(ZI||(ZI={}));var YI;(function(o){o[o.Unnecessary=1]="Unnecessary",o[o.Deprecated=2]="Deprecated"})(YI||(YI={}));var QI;(function(o){o[o.Inline=1]="Inline",o[o.Gutter=2]="Gutter"})(QI||(QI={}));var XI;(function(o){o[o.Normal=1]="Normal",o[o.Underlined=2]="Underlined"})(XI||(XI={}));var JI;(function(o){o[o.UNKNOWN=0]="UNKNOWN",o[o.TEXTAREA=1]="TEXTAREA",o[o.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",o[o.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",o[o.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",o[o.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",o[o.CONTENT_TEXT=6]="CONTENT_TEXT",o[o.CONTENT_EMPTY=7]="CONTENT_EMPTY",o[o.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",o[o.CONTENT_WIDGET=9]="CONTENT_WIDGET",o[o.OVERVIEW_RULER=10]="OVERVIEW_RULER",o[o.SCROLLBAR=11]="SCROLLBAR",o[o.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",o[o.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(JI||(JI={}));var eE;(function(o){o[o.AIGenerated=1]="AIGenerated"})(eE||(eE={}));var tE;(function(o){o[o.Invoke=0]="Invoke",o[o.Automatic=1]="Automatic"})(tE||(tE={}));var iE;(function(o){o[o.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",o[o.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",o[o.TOP_CENTER=2]="TOP_CENTER"})(iE||(iE={}));var nE;(function(o){o[o.Left=1]="Left",o[o.Center=2]="Center",o[o.Right=4]="Right",o[o.Full=7]="Full"})(nE||(nE={}));var sE;(function(o){o[o.Word=0]="Word",o[o.Line=1]="Line",o[o.Suggest=2]="Suggest"})(sE||(sE={}));var oE;(function(o){o[o.Left=0]="Left",o[o.Right=1]="Right",o[o.None=2]="None",o[o.LeftOfInjectedText=3]="LeftOfInjectedText",o[o.RightOfInjectedText=4]="RightOfInjectedText"})(oE||(oE={}));var rE;(function(o){o[o.Off=0]="Off",o[o.On=1]="On",o[o.Relative=2]="Relative",o[o.Interval=3]="Interval",o[o.Custom=4]="Custom"})(rE||(rE={}));var aE;(function(o){o[o.None=0]="None",o[o.Text=1]="Text",o[o.Blocks=2]="Blocks"})(aE||(aE={}));var lE;(function(o){o[o.Smooth=0]="Smooth",o[o.Immediate=1]="Immediate"})(lE||(lE={}));var dE;(function(o){o[o.Auto=1]="Auto",o[o.Hidden=2]="Hidden",o[o.Visible=3]="Visible"})(dE||(dE={}));var cE;(function(o){o[o.LTR=0]="LTR",o[o.RTL=1]="RTL"})(cE||(cE={}));var hE;(function(o){o.Off="off",o.OnCode="onCode",o.On="on"})(hE||(hE={}));var uE;(function(o){o[o.Invoke=1]="Invoke",o[o.TriggerCharacter=2]="TriggerCharacter",o[o.ContentChange=3]="ContentChange"})(uE||(uE={}));var gE;(function(o){o[o.File=0]="File",o[o.Module=1]="Module",o[o.Namespace=2]="Namespace",o[o.Package=3]="Package",o[o.Class=4]="Class",o[o.Method=5]="Method",o[o.Property=6]="Property",o[o.Field=7]="Field",o[o.Constructor=8]="Constructor",o[o.Enum=9]="Enum",o[o.Interface=10]="Interface",o[o.Function=11]="Function",o[o.Variable=12]="Variable",o[o.Constant=13]="Constant",o[o.String=14]="String",o[o.Number=15]="Number",o[o.Boolean=16]="Boolean",o[o.Array=17]="Array",o[o.Object=18]="Object",o[o.Key=19]="Key",o[o.Null=20]="Null",o[o.EnumMember=21]="EnumMember",o[o.Struct=22]="Struct",o[o.Event=23]="Event",o[o.Operator=24]="Operator",o[o.TypeParameter=25]="TypeParameter"})(gE||(gE={}));var fE;(function(o){o[o.Deprecated=1]="Deprecated"})(fE||(fE={}));var mE;(function(o){o[o.Hidden=0]="Hidden",o[o.Blink=1]="Blink",o[o.Smooth=2]="Smooth",o[o.Phase=3]="Phase",o[o.Expand=4]="Expand",o[o.Solid=5]="Solid"})(mE||(mE={}));var pE;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(pE||(pE={}));var _E;(function(o){o[o.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",o[o.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",o[o.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",o[o.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(_E||(_E={}));var vE;(function(o){o[o.None=0]="None",o[o.Same=1]="Same",o[o.Indent=2]="Indent",o[o.DeepIndent=3]="DeepIndent"})(vE||(vE={}));let w0=class{static chord(e,t){return Ki(e,t)}};w0.CtrlCmd=2048;w0.Shift=1024;w0.Alt=512;w0.WinCtrl=256;function _9(){return{editor:void 0,languages:void 0,CancellationTokenSource:ci,Emitter:O,KeyCode:GI,KeyMod:w0,Position:F,Range:x,Selection:_e,SelectionDirection:cE,MarkerSeverity:ZI,MarkerTag:YI,Uri:ke,Token:Hv}}function NK(o,e){const t=o;typeof t.vscodeWindowId!="number"&&Object.defineProperty(t,"vscodeWindowId",{get:()=>e})}const Mt=window;function v9(o){return o}class TK{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,typeof e=="function"?(this._fn=e,this._computeKey=v9):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class MO{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,typeof e=="function"?(this._fn=e,this._computeKey=v9):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const i=this._fn(e);return this._map.set(e,i),this._map2.set(t,i),i}}class $r{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var Fm;function b9(o){return!o||typeof o!="string"?!0:o.trim().length===0}const MK=/{(\d+)}/g;function cg(o,...e){return e.length===0?o:o.replace(MK,function(t,i){const n=parseInt(i,10);return isNaN(n)||n<0||n>=e.length?t:e[n]})}function RK(o){return o.replace(/[<>"'&]/g,e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e})}function iv(o){return o.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function Oo(o){return o.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function AK(o,e=" "){const t=S0(o,e);return C9(t,e)}function S0(o,e){if(!o||!e)return o;const t=e.length;if(t===0||o.length===0)return o;let i=0;for(;o.indexOf(e,i)===i;)i=i+t;return o.substring(i)}function C9(o,e){if(!o||!e)return o;const t=e.length,i=o.length;if(t===0||i===0)return o;let n=i,s=-1;for(;s=o.lastIndexOf(e,n-1),!(s===-1||s+t!==n);){if(s===0)return"";n=s}return o.substring(0,n)}function PK(o){return o.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function OK(o){return o.replace(/\*/g,"")}function w9(o,e,t={}){if(!o)throw new Error("Cannot create regex from empty string");e||(o=Oo(o)),t.wholeWord&&(/\B/.test(o.charAt(0))||(o="\\b"+o),/\B/.test(o.charAt(o.length-1))||(o=o+"\\b"));let i="";return t.global&&(i+="g"),t.matchCase||(i+="i"),t.multiline&&(i+="m"),t.unicode&&(i+="u"),new RegExp(o,i)}function FK(o){return o.source==="^"||o.source==="^$"||o.source==="$"||o.source==="^\\s*$"?!1:!!(o.exec("")&&o.lastIndex===0)}function $l(o){return o.split(/\r\n|\r|\n/)}function BK(o){var e;const t=[],i=o.split(/(\r\n|\r|\n)/);for(let n=0;n=0;t--){const i=o.charCodeAt(t);if(i!==32&&i!==9)return t}return-1}function jv(o,e){return oe?1:0}function nA(o,e,t=0,i=o.length,n=0,s=e.length){for(;td)return 1}const r=i-t,a=s-n;return ra?1:0}function bE(o,e){return y0(o,e,0,o.length,0,e.length)}function y0(o,e,t=0,i=o.length,n=0,s=e.length){for(;t=128||d>=128)return nA(o.toLowerCase(),e.toLowerCase(),t,i,n,s);Vc(l)&&(l-=32),Vc(d)&&(d-=32);const c=l-d;if(c!==0)return c}const r=i-t,a=s-n;return ra?1:0}function LC(o){return o>=48&&o<=57}function Vc(o){return o>=97&&o<=122}function ol(o){return o>=65&&o<=90}function Bf(o,e){return o.length===e.length&&y0(o,e)===0}function sA(o,e){const t=e.length;return e.length>o.length?!1:y0(o,e,0,t)===0}function Ch(o,e){const t=Math.min(o.length,e.length);let i;for(i=0;i1){const i=o.charCodeAt(e-2);if(sn(i))return oA(i,t)}return t}class rA{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=WK(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=$w(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class jw{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new rA(e,t)}nextGraphemeLength(){const e=zc.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const s=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if(RO(n,r)){t.setOffset(s);break}n=r}return t.offset-i}prevGraphemeLength(){const e=zc.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const s=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if(RO(r,n)){t.setOffset(s);break}n=r}return i-t.offset}eol(){return this._iterator.eol()}}function aA(o,e){return new jw(o,e).nextGraphemeLength()}function S9(o,e){return new jw(o,e).prevGraphemeLength()}function HK(o,e){e>0&&hg(o.charCodeAt(e))&&e--;const t=e+aA(o,e);return[t-S9(o,t),t]}let uD;function VK(){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 Bm(o){return uD||(uD=VK()),uD.test(o)}const zK=/^[\t\n\r\x20-\x7E]*$/;function L0(o){return zK.test(o)}const y9=/[\u2028\u2029]/;function L9(o){return y9.test(o)}function wh(o){return o>=11904&&o<=55215||o>=63744&&o<=64255||o>=65281&&o<=65374}function lA(o){return o>=127462&&o<=127487||o===8986||o===8987||o===9200||o===9203||o>=9728&&o<=10175||o===11088||o===11093||o>=127744&&o<=128591||o>=128640&&o<=128764||o>=128992&&o<=129008||o>=129280&&o<=129535||o>=129648&&o<=129782}const UK="\uFEFF";function dA(o){return!!(o&&o.length>0&&o.charCodeAt(0)===65279)}function $K(o,e=!1){return o?(e&&(o=o.replace(/\\./g,"")),o.toLowerCase()!==o):!1}function x9(o){return o=o%(2*26),o<26?String.fromCharCode(97+o):String.fromCharCode(65+o-26)}function RO(o,e){return o===0?e!==5&&e!==7:o===2&&e===3?!1:o===4||o===2||o===3||e===4||e===2||e===3?!0:!(o===8&&(e===8||e===9||e===11||e===12)||(o===11||o===9)&&(e===9||e===10)||(o===12||o===10)&&e===10||e===5||e===13||e===7||o===1||o===13&&e===14||o===6&&e===6)}class zc{static getInstance(){return zc._INSTANCE||(zc._INSTANCE=new zc),zc._INSTANCE}constructor(){this._data=jK()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;const t=this._data,i=t.length/3;let n=1;for(;n<=i;)if(et[3*n+1])n=2*n+1;else return t[3*n+2];return 0}}zc._INSTANCE=null;function jK(){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 KK(o,e){if(o===0)return 0;const t=qK(o,e);if(t!==void 0)return t;const i=new rA(e,o);return i.prevCodePoint(),i.offset}function qK(o,e){const t=new rA(e,o);let i=t.prevCodePoint();for(;GK(i)||i===65039||i===8419;){if(t.offset===0)return;i=t.prevCodePoint()}if(!lA(i))return;let n=t.offset;return n>0&&t.prevCodePoint()===8205&&(n=t.offset),n}function GK(o){return 127995<=o&&o<=127999}const D9=" ";class ug{static getInstance(e){return Fm.cache.get(Array.from(e))}static getLocales(){return Fm._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}Fm=ug;ug.ambiguousCharacterData=new $r(()=>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]}'));ug.cache=new TK({getCacheKey:JSON.stringify},o=>{function e(d){const c=new Map;for(let h=0;h!d.startsWith("_")&&d in n);s.length===0&&(s=["_default"]);let r;for(const d of s){const c=e(n[d]);r=i(r,c)}const a=e(n._common),l=t(a,r);return new Fm(l)});ug._locales=new $r(()=>Object.keys(Fm.ambiguousCharacterData.value).filter(o=>!o.startsWith("_")));class kl{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(kl.getRawData())),this._data}static isInvisibleCharacter(e){return kl.getData().has(e)}static get codePoints(){return kl.getData()}}kl._data=void 0;class CE{constructor(){this.mapWindowIdToZoomFactor=new Map}getZoomFactor(e){var t;return(t=this.mapWindowIdToZoomFactor.get(this.getWindowId(e)))!==null&&t!==void 0?t:1}getWindowId(e){return e.vscodeWindowId}}CE.INSTANCE=new CE;function k9(o,e,t){typeof e=="string"&&(e=o.matchMedia(e)),e.addEventListener("change",t)}function ZK(o){return CE.INSTANCE.getZoomFactor(o)}const kp=navigator.userAgent,lr=kp.indexOf("Firefox")>=0,Zu=kp.indexOf("AppleWebKit")>=0,x0=kp.indexOf("Chrome")>=0,Yd=!x0&&kp.indexOf("Safari")>=0,I9=!x0&&!Yd&&Zu;kp.indexOf("Electron/")>=0;const AO=kp.indexOf("Android")>=0;let Z1=!1;if(typeof Mt.matchMedia=="function"){const o=Mt.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),e=Mt.matchMedia("(display-mode: fullscreen)");Z1=o.matches,k9(Mt,o,({matches:t})=>{Z1&&e.matches||(Z1=t)})}function YK(){return Z1}const cA={clipboard:{writeText:_a||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:_a||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:_a||YK()?0:navigator.keyboard||Yd?1:2,touch:"ontouchstart"in Mt||navigator.maxTouchPoints>0,pointerEvents:Mt.PointerEvent&&("ontouchstart"in Mt||navigator.maxTouchPoints>0)};function wE(o,e){if(typeof o=="number"){if(o===0)return null;const t=(o&65535)>>>0,i=(o&4294901760)>>>16;return i!==0?new gD([xC(t,e),xC(i,e)]):new gD([xC(t,e)])}else{const t=[];for(let i=0;i{const r=e.token.onCancellationRequested(()=>{r.dispose(),s(new ka)});Promise.resolve(t).then(a=>{r.dispose(),e.dispose(),n(a)},a=>{r.dispose(),e.dispose(),s(a)})});return new class{cancel(){e.cancel(),e.dispose()}then(n,s){return i.then(n,s)}catch(n){return this.then(void 0,n)}finally(n){return i.finally(n)}}}function D0(o,e,t){return new Promise((i,n)=>{const s=e.onCancellationRequested(()=>{s.dispose(),i(t)});o.then(i,n).finally(()=>s.dispose())})}class rq{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.isDisposed)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const t=()=>{if(this.queuedPromise=null,this.isDisposed)return;const i=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,i};this.queuedPromise=new Promise(i=>{this.activePromise.then(t,t).then(i)})}return new Promise((t,i)=>{this.queuedPromise.then(t,i)})}return this.activePromise=e(),new Promise((t,i)=>{this.activePromise.then(n=>{this.activePromise=null,t(n)},n=>{this.activePromise=null,i(n)})})}dispose(){this.isDisposed=!0}}const aq=(o,e)=>{let t=!0;const i=setTimeout(()=>{t=!1,e()},o);return{isTriggered:()=>t,dispose:()=>{clearTimeout(i),t=!1}}},lq=o=>{let e=!0;return queueMicrotask(()=>{e&&(e=!1,o())}),{isTriggered:()=>e,dispose:()=>{e=!1}}};class Vr{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((n,s)=>{this.doResolve=n,this.doReject=s}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const n=this.task;return this.task=null,n()}}));const i=()=>{var n;this.deferred=null,(n=this.doResolve)===null||n===void 0||n.call(this,null)};return this.deferred=t===E9?lq(i):aq(t,i),this.completionPromise}isTriggered(){var e;return!!(!((e=this.deferred)===null||e===void 0)&&e.isTriggered())}cancel(){var e;this.cancelTimeout(),this.completionPromise&&((e=this.doReject)===null||e===void 0||e.call(this,new ka),this.completionPromise=null)}cancelTimeout(){var e;(e=this.deferred)===null||e===void 0||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class N9{constructor(e){this.delayer=new Vr(e),this.throttler=new rq}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function Xd(o,e){return e?new Promise((t,i)=>{const n=setTimeout(()=>{s.dispose(),t()},o),s=e.onCancellationRequested(()=>{clearTimeout(n),s.dispose(),i(new ka)})}):an(t=>Xd(o,t))}function Sh(o,e=0,t){const i=setTimeout(()=>{o(),t&&n.dispose()},e),n=Ce(()=>{clearTimeout(i),t==null||t.deleteAndLeak(n)});return t==null||t.add(n),n}function hA(o,e=i=>!!i,t=null){let i=0;const n=o.length,s=()=>{if(i>=n)return Promise.resolve(t);const r=o[i++];return Promise.resolve(r()).then(l=>e(l)?Promise.resolve(l):s())};return s()}class jr{constructor(e,t){this._isDisposed=!1,this._token=-1,typeof e=="function"&&typeof t=="number"&&this.setIfNotSet(e,t)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){if(this._isDisposed)throw new Tt("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){if(this._isDisposed)throw new Tt("Calling 'setIfNotSet' on a disposed TimeoutTimer");this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}class uA{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){var e;(e=this.disposable)===null||e===void 0||e.dispose(),this.disposable=void 0}cancelAndSet(e,t,i=globalThis){if(this.isDisposed)throw new Tt("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const n=i.setInterval(()=>{e()},t);this.disposable=Ce(()=>{i.clearInterval(n),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}}class At{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var e;(e=this.runner)===null||e===void 0||e.call(this)}}let T9,nv;(function(){typeof globalThis.requestIdleCallback!="function"||typeof globalThis.cancelIdleCallback!="function"?nv=(o,e)=>{Y7(()=>{if(t)return;const i=Date.now()+15;e(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,i-Date.now())}}))});let t=!1;return{dispose(){t||(t=!0)}}}:nv=(o,e,t)=>{const i=o.requestIdleCallback(e,typeof t=="number"?{timeout:t}:void 0);let n=!1;return{dispose(){n||(n=!0,o.cancelIdleCallback(i))}}},T9=o=>nv(globalThis,o)})();class M9{constructor(e,t){this._didRun=!1,this._executor=()=>{try{this._value=t()}catch(i){this._error=i}finally{this._didRun=!0}},this._handle=nv(e,()=>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}}class dq extends M9{constructor(e){super(globalThis,e)}}class k0{get isRejected(){var e;return((e=this.outcome)===null||e===void 0?void 0:e.outcome)===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}complete(e){return new Promise(t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()})}error(e){return new Promise(t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()})}cancel(){return this.error(new ka)}}var yE;(function(o){async function e(i){let n;const s=await Promise.all(i.map(r=>r.then(a=>a,a=>{n||(n=a)})));if(typeof n<"u")throw n;return s}o.settled=e;function t(i){return new Promise(async(n,s)=>{try{await i(n,s)}catch(r){s(r)}})}o.withAsyncBody=t})(yE||(yE={}));class Bi{static fromArray(e){return new Bi(t=>{t.emitMany(e)})}static fromPromise(e){return new Bi(async t=>{t.emitMany(await e)})}static fromPromises(e){return new Bi(async t=>{await Promise.all(e.map(async i=>t.emitOne(await i)))})}static merge(e){return new Bi(async t=>{await Promise.all(e.map(async i=>{for await(const n of i)t.emitOne(n)}))})}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new O,queueMicrotask(async()=>{const i={emitOne:n=>this.emitOne(n),emitMany:n=>this.emitMany(n),reject:n=>this.reject(n)};try{await Promise.resolve(e(i)),this.resolve()}catch(n){this.reject(n)}finally{i.emitOne=void 0,i.emitMany=void 0,i.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(e{var t;return(t=this._onReturn)===null||t===void 0||t.call(this),{done:!0,value:void 0}}}}static map(e,t){return new Bi(async i=>{for await(const n of e)i.emitOne(t(n))})}map(e){return Bi.map(this,e)}static filter(e,t){return new Bi(async i=>{for await(const n of e)t(n)&&i.emitOne(n)})}filter(e){return Bi.filter(this,e)}static coalesce(e){return Bi.filter(e,t=>!!t)}coalesce(){return Bi.coalesce(this)}static async toPromise(e){const t=[];for await(const i of e)t.push(i);return t}toPromise(){return Bi.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}}Bi.EMPTY=Bi.fromArray([]);class cq extends Bi{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}function hq(o){const e=new ci,t=o(e.token);return new cq(e,async i=>{const n=e.token.onCancellationRequested(()=>{n.dispose(),e.dispose(),i.reject(new ka)});try{for await(const s of t){if(e.token.isCancellationRequested)return;i.emitOne(s)}n.dispose(),e.dispose()}catch(s){n.dispose(),e.dispose(),i.reject(s)}})}/*! @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 */const{entries:R9,setPrototypeOf:OO,isFrozen:uq,getPrototypeOf:gq,getOwnPropertyDescriptor:fq}=Object;let{freeze:ro,seal:Ia,create:mq}=Object,{apply:LE,construct:xE}=typeof Reflect<"u"&&Reflect;LE||(LE=function(e,t,i){return e.apply(t,i)});ro||(ro=function(e){return e});Ia||(Ia=function(e){return e});xE||(xE=function(e,t){return new e(...t)});const pq=zr(Array.prototype.forEach),FO=zr(Array.prototype.pop),Xp=zr(Array.prototype.push),Y1=zr(String.prototype.toLowerCase),fD=zr(String.prototype.toString),_q=zr(String.prototype.match),Zr=zr(String.prototype.replace),vq=zr(String.prototype.indexOf),bq=zr(String.prototype.trim),qo=zr(RegExp.prototype.test),Jp=Cq(TypeError);function zr(o){return function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n/gm),xq=Ia(/\${[\w\W]*}/gm),Dq=Ia(/^data-[\-\w.\u00B7-\uFFFF]/),kq=Ia(/^aria-[\-\w]+$/),A9=Ia(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Iq=Ia(/^(?:\w+script|data):/i),Eq=Ia(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),P9=Ia(/^html$/i);var zO=Object.freeze({__proto__:null,MUSTACHE_EXPR:yq,ERB_EXPR:Lq,TMPLIT_EXPR:xq,DATA_ATTR:Dq,ARIA_ATTR:kq,IS_ALLOWED_URI:A9,IS_SCRIPT_OR_DATA:Iq,ATTR_WHITESPACE:Eq,DOCTYPE_NAME:P9});const Nq=()=>typeof window>"u"?null:window,Tq=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let i=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(i=t.getAttribute(n));const s="dompurify"+(i?"#"+i:"");try{return e.createPolicy(s,{createHTML(r){return r},createScriptURL(r){return r}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}};function O9(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Nq();const e=nt=>O9(nt);if(e.version="3.0.5",e.removed=[],!o||!o.document||o.document.nodeType!==9)return e.isSupported=!1,e;const t=o.document,i=t.currentScript;let{document:n}=o;const{DocumentFragment:s,HTMLTemplateElement:r,Node:a,Element:l,NodeFilter:d,NamedNodeMap:c=o.NamedNodeMap||o.MozNamedAttrMap,HTMLFormElement:h,DOMParser:u,trustedTypes:g}=o,f=l.prototype,p=DC(f,"cloneNode"),_=DC(f,"nextSibling"),v=DC(f,"childNodes"),b=DC(f,"parentNode");if(typeof r=="function"){const nt=n.createElement("template");nt.content&&nt.content.ownerDocument&&(n=nt.content.ownerDocument)}let C,w="";const{implementation:S,createNodeIterator:L,createDocumentFragment:D,getElementsByTagName:I}=n,{importNode:T}=t;let V={};e.isSupported=typeof R9=="function"&&typeof b=="function"&&S&&S.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:P,ERB_EXPR:A,TMPLIT_EXPR:B,DATA_ATTR:j,ARIA_ATTR:X,IS_SCRIPT_OR_DATA:pe,ATTR_WHITESPACE:ye}=zO;let{IS_ALLOWED_URI:Ee}=zO,fe=null;const Ue=Et({},[...BO,...mD,...pD,..._D,...WO]);let Ve=null;const Ne=Et({},[...HO,...vD,...VO,...kC]);let ue=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}})),vi=null,as=null,qi=!0,xt=!0,en=!1,ls=!0,vn=!1,qe=!1,br=!1,Cr=!1,mo=!1,Yl=!1,dn=!1,qr=!0,_C=!1;const sD="user-content-";let ie=!0,Z=!1,q={},M=null;const R=Et({},["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"]);let $=null;const H=Et({},["audio","video","img","source","image","track"]);let se=null;const ge=Et({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ie="http://www.w3.org/1998/Math/MathML",Pe="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let Ye=et,jt=!1,Ot=null;const $e=Et({},[Ie,Pe,et],fD);let Li;const xi=["application/xhtml+xml","text/html"],wr="text/html";let kt,Gi=null;const nu=n.createElement("form"),su=function(Y){return Y instanceof RegExp||Y instanceof Function},Gr=function(Y){if(!(Gi&&Gi===Y)){if((!Y||typeof Y!="object")&&(Y={}),Y=df(Y),Li=xi.indexOf(Y.PARSER_MEDIA_TYPE)===-1?Li=wr:Li=Y.PARSER_MEDIA_TYPE,kt=Li==="application/xhtml+xml"?fD:Y1,fe="ALLOWED_TAGS"in Y?Et({},Y.ALLOWED_TAGS,kt):Ue,Ve="ALLOWED_ATTR"in Y?Et({},Y.ALLOWED_ATTR,kt):Ne,Ot="ALLOWED_NAMESPACES"in Y?Et({},Y.ALLOWED_NAMESPACES,fD):$e,se="ADD_URI_SAFE_ATTR"in Y?Et(df(ge),Y.ADD_URI_SAFE_ATTR,kt):ge,$="ADD_DATA_URI_TAGS"in Y?Et(df(H),Y.ADD_DATA_URI_TAGS,kt):H,M="FORBID_CONTENTS"in Y?Et({},Y.FORBID_CONTENTS,kt):R,vi="FORBID_TAGS"in Y?Et({},Y.FORBID_TAGS,kt):{},as="FORBID_ATTR"in Y?Et({},Y.FORBID_ATTR,kt):{},q="USE_PROFILES"in Y?Y.USE_PROFILES:!1,qi=Y.ALLOW_ARIA_ATTR!==!1,xt=Y.ALLOW_DATA_ATTR!==!1,en=Y.ALLOW_UNKNOWN_PROTOCOLS||!1,ls=Y.ALLOW_SELF_CLOSE_IN_ATTR!==!1,vn=Y.SAFE_FOR_TEMPLATES||!1,qe=Y.WHOLE_DOCUMENT||!1,mo=Y.RETURN_DOM||!1,Yl=Y.RETURN_DOM_FRAGMENT||!1,dn=Y.RETURN_TRUSTED_TYPE||!1,Cr=Y.FORCE_BODY||!1,qr=Y.SANITIZE_DOM!==!1,_C=Y.SANITIZE_NAMED_PROPS||!1,ie=Y.KEEP_CONTENT!==!1,Z=Y.IN_PLACE||!1,Ee=Y.ALLOWED_URI_REGEXP||A9,Ye=Y.NAMESPACE||et,ue=Y.CUSTOM_ELEMENT_HANDLING||{},Y.CUSTOM_ELEMENT_HANDLING&&su(Y.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ue.tagNameCheck=Y.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Y.CUSTOM_ELEMENT_HANDLING&&su(Y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ue.attributeNameCheck=Y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Y.CUSTOM_ELEMENT_HANDLING&&typeof Y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ue.allowCustomizedBuiltInElements=Y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),vn&&(xt=!1),Yl&&(mo=!0),q&&(fe=Et({},[...WO]),Ve=[],q.html===!0&&(Et(fe,BO),Et(Ve,HO)),q.svg===!0&&(Et(fe,mD),Et(Ve,vD),Et(Ve,kC)),q.svgFilters===!0&&(Et(fe,pD),Et(Ve,vD),Et(Ve,kC)),q.mathMl===!0&&(Et(fe,_D),Et(Ve,VO),Et(Ve,kC))),Y.ADD_TAGS&&(fe===Ue&&(fe=df(fe)),Et(fe,Y.ADD_TAGS,kt)),Y.ADD_ATTR&&(Ve===Ne&&(Ve=df(Ve)),Et(Ve,Y.ADD_ATTR,kt)),Y.ADD_URI_SAFE_ATTR&&Et(se,Y.ADD_URI_SAFE_ATTR,kt),Y.FORBID_CONTENTS&&(M===R&&(M=df(M)),Et(M,Y.FORBID_CONTENTS,kt)),ie&&(fe["#text"]=!0),qe&&Et(fe,["html","head","body"]),fe.table&&(Et(fe,["tbody"]),delete vi.tbody),Y.TRUSTED_TYPES_POLICY){if(typeof Y.TRUSTED_TYPES_POLICY.createHTML!="function")throw Jp('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Y.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Jp('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=Y.TRUSTED_TYPES_POLICY,w=C.createHTML("")}else C===void 0&&(C=Tq(g,i)),C!==null&&typeof w=="string"&&(w=C.createHTML(""));ro&&ro(Y),Gi=Y}},pc=Et({},["mi","mo","mn","ms","mtext"]),ou=Et({},["foreignobject","desc","title","annotation-xml"]),ru=Et({},["title","style","font","a","script"]),af=Et({},mD);Et(af,pD),Et(af,wq);const au=Et({},_D);Et(au,Sq);const oD=function(Y){let we=b(Y);(!we||!we.tagName)&&(we={namespaceURI:Ye,tagName:"template"});const We=Y1(Y.tagName),Di=Y1(we.tagName);return Ot[Y.namespaceURI]?Y.namespaceURI===Pe?we.namespaceURI===et?We==="svg":we.namespaceURI===Ie?We==="svg"&&(Di==="annotation-xml"||pc[Di]):!!af[We]:Y.namespaceURI===Ie?we.namespaceURI===et?We==="math":we.namespaceURI===Pe?We==="math"&&ou[Di]:!!au[We]:Y.namespaceURI===et?we.namespaceURI===Pe&&!ou[Di]||we.namespaceURI===Ie&&!pc[Di]?!1:!au[We]&&(ru[We]||!af[We]):!!(Li==="application/xhtml+xml"&&Ot[Y.namespaceURI]):!1},za=function(Y){Xp(e.removed,{element:Y});try{Y.parentNode.removeChild(Y)}catch{Y.remove()}},Yp=function(Y,we){try{Xp(e.removed,{attribute:we.getAttributeNode(Y),from:we})}catch{Xp(e.removed,{attribute:null,from:we})}if(we.removeAttribute(Y),Y==="is"&&!Ve[Y])if(mo||Yl)try{za(we)}catch{}else try{we.setAttribute(Y,"")}catch{}},Qp=function(Y){let we,We;if(Cr)Y=""+Y;else{const Sr=_q(Y,/^[\r\n\t ]+/);We=Sr&&Sr[0]}Li==="application/xhtml+xml"&&Ye===et&&(Y=''+Y+"");const Di=C?C.createHTML(Y):Y;if(Ye===et)try{we=new u().parseFromString(Di,Li)}catch{}if(!we||!we.documentElement){we=S.createDocument(Ye,"template",null);try{we.documentElement.innerHTML=jt?w:Di}catch{}}const Zn=we.body||we.documentElement;return Y&&We&&Zn.insertBefore(n.createTextNode(We),Zn.childNodes[0]||null),Ye===et?I.call(we,qe?"html":"body")[0]:qe?we.documentElement:Zn},vC=function(Y){return L.call(Y.ownerDocument||Y,Y,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},S$=function(Y){return Y instanceof h&&(typeof Y.nodeName!="string"||typeof Y.textContent!="string"||typeof Y.removeChild!="function"||!(Y.attributes instanceof c)||typeof Y.removeAttribute!="function"||typeof Y.setAttribute!="function"||typeof Y.namespaceURI!="string"||typeof Y.insertBefore!="function"||typeof Y.hasChildNodes!="function")},bC=function(Y){return typeof a=="object"?Y instanceof a:Y&&typeof Y=="object"&&typeof Y.nodeType=="number"&&typeof Y.nodeName=="string"},Ql=function(Y,we,We){V[Y]&&pq(V[Y],Di=>{Di.call(e,we,We,Gi)})},gO=function(Y){let we;if(Ql("beforeSanitizeElements",Y,null),S$(Y))return za(Y),!0;const We=kt(Y.nodeName);if(Ql("uponSanitizeElement",Y,{tagName:We,allowedTags:fe}),Y.hasChildNodes()&&!bC(Y.firstElementChild)&&(!bC(Y.content)||!bC(Y.content.firstElementChild))&&qo(/<[/\w]/g,Y.innerHTML)&&qo(/<[/\w]/g,Y.textContent))return za(Y),!0;if(!fe[We]||vi[We]){if(!vi[We]&&mO(We)&&(ue.tagNameCheck instanceof RegExp&&qo(ue.tagNameCheck,We)||ue.tagNameCheck instanceof Function&&ue.tagNameCheck(We)))return!1;if(ie&&!M[We]){const Di=b(Y)||Y.parentNode,Zn=v(Y)||Y.childNodes;if(Zn&&Di){const Sr=Zn.length;for(let tn=Sr-1;tn>=0;--tn)Di.insertBefore(p(Zn[tn],!0),_(Y))}}return za(Y),!0}return Y instanceof l&&!oD(Y)||(We==="noscript"||We==="noembed"||We==="noframes")&&qo(/<\/no(script|embed|frames)/i,Y.innerHTML)?(za(Y),!0):(vn&&Y.nodeType===3&&(we=Y.textContent,we=Zr(we,P," "),we=Zr(we,A," "),we=Zr(we,B," "),Y.textContent!==we&&(Xp(e.removed,{element:Y.cloneNode()}),Y.textContent=we)),Ql("afterSanitizeElements",Y,null),!1)},fO=function(Y,we,We){if(qr&&(we==="id"||we==="name")&&(We in n||We in nu))return!1;if(!(xt&&!as[we]&&qo(j,we))){if(!(qi&&qo(X,we))){if(!Ve[we]||as[we]){if(!(mO(Y)&&(ue.tagNameCheck instanceof RegExp&&qo(ue.tagNameCheck,Y)||ue.tagNameCheck instanceof Function&&ue.tagNameCheck(Y))&&(ue.attributeNameCheck instanceof RegExp&&qo(ue.attributeNameCheck,we)||ue.attributeNameCheck instanceof Function&&ue.attributeNameCheck(we))||we==="is"&&ue.allowCustomizedBuiltInElements&&(ue.tagNameCheck instanceof RegExp&&qo(ue.tagNameCheck,We)||ue.tagNameCheck instanceof Function&&ue.tagNameCheck(We))))return!1}else if(!se[we]){if(!qo(Ee,Zr(We,ye,""))){if(!((we==="src"||we==="xlink:href"||we==="href")&&Y!=="script"&&vq(We,"data:")===0&&$[Y])){if(!(en&&!qo(pe,Zr(We,ye,"")))){if(We)return!1}}}}}}return!0},mO=function(Y){return Y.indexOf("-")>0},pO=function(Y){let we,We,Di,Zn;Ql("beforeSanitizeAttributes",Y,null);const{attributes:Sr}=Y;if(!Sr)return;const tn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ve};for(Zn=Sr.length;Zn--;){we=Sr[Zn];const{name:Ua,namespaceURI:rD}=we;if(We=Ua==="value"?we.value:bq(we.value),Di=kt(Ua),tn.attrName=Di,tn.attrValue=We,tn.keepAttr=!0,tn.forceKeepAttr=void 0,Ql("uponSanitizeAttribute",Y,tn),We=tn.attrValue,tn.forceKeepAttr||(Yp(Ua,Y),!tn.keepAttr))continue;if(!ls&&qo(/\/>/i,We)){Yp(Ua,Y);continue}vn&&(We=Zr(We,P," "),We=Zr(We,A," "),We=Zr(We,B," "));const _O=kt(Y.nodeName);if(fO(_O,Di,We)){if(_C&&(Di==="id"||Di==="name")&&(Yp(Ua,Y),We=sD+We),C&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!rD)switch(g.getAttributeType(_O,Di)){case"TrustedHTML":{We=C.createHTML(We);break}case"TrustedScriptURL":{We=C.createScriptURL(We);break}}try{rD?Y.setAttributeNS(rD,Ua,We):Y.setAttribute(Ua,We),FO(e.removed)}catch{}}}Ql("afterSanitizeAttributes",Y,null)},y$=function nt(Y){let we;const We=vC(Y);for(Ql("beforeSanitizeShadowDOM",Y,null);we=We.nextNode();)Ql("uponSanitizeShadowNode",we,null),!gO(we)&&(we.content instanceof s&&nt(we.content),pO(we));Ql("afterSanitizeShadowDOM",Y,null)};return e.sanitize=function(nt){let Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},we,We,Di,Zn;if(jt=!nt,jt&&(nt=""),typeof nt!="string"&&!bC(nt))if(typeof nt.toString=="function"){if(nt=nt.toString(),typeof nt!="string")throw Jp("dirty is not a string, aborting")}else throw Jp("toString is not a function");if(!e.isSupported)return nt;if(br||Gr(Y),e.removed=[],typeof nt=="string"&&(Z=!1),Z){if(nt.nodeName){const Ua=kt(nt.nodeName);if(!fe[Ua]||vi[Ua])throw Jp("root node is forbidden and cannot be sanitized in-place")}}else if(nt instanceof a)we=Qp(""),We=we.ownerDocument.importNode(nt,!0),We.nodeType===1&&We.nodeName==="BODY"||We.nodeName==="HTML"?we=We:we.appendChild(We);else{if(!mo&&!vn&&!qe&&nt.indexOf("<")===-1)return C&&dn?C.createHTML(nt):nt;if(we=Qp(nt),!we)return mo?null:dn?w:""}we&&Cr&&za(we.firstChild);const Sr=vC(Z?nt:we);for(;Di=Sr.nextNode();)gO(Di)||(Di.content instanceof s&&y$(Di.content),pO(Di));if(Z)return nt;if(mo){if(Yl)for(Zn=D.call(we.ownerDocument);we.firstChild;)Zn.appendChild(we.firstChild);else Zn=we;return(Ve.shadowroot||Ve.shadowrootmode)&&(Zn=T.call(t,Zn,!0)),Zn}let tn=qe?we.outerHTML:we.innerHTML;return qe&&fe["!doctype"]&&we.ownerDocument&&we.ownerDocument.doctype&&we.ownerDocument.doctype.name&&qo(P9,we.ownerDocument.doctype.name)&&(tn=" +`+tn),vn&&(tn=Zr(tn,P," "),tn=Zr(tn,A," "),tn=Zr(tn,B," ")),C&&dn?C.createHTML(tn):tn},e.setConfig=function(nt){Gr(nt),br=!0},e.clearConfig=function(){Gi=null,br=!1},e.isValidAttribute=function(nt,Y,we){Gi||Gr({});const We=kt(nt),Di=kt(Y);return fO(We,Di,we)},e.addHook=function(nt,Y){typeof Y=="function"&&(V[nt]=V[nt]||[],Xp(V[nt],Y))},e.removeHook=function(nt){if(V[nt])return FO(V[nt])},e.removeHooks=function(nt){V[nt]&&(V[nt]=[])},e.removeAllHooks=function(){V={}},e}var jl=O9();jl.version;jl.isSupported;const F9=jl.sanitize;jl.setConfig;jl.clearConfig;jl.isValidAttribute;const B9=jl.addHook,W9=jl.removeHook;jl.removeHooks;jl.removeAllHooks;var Oe;(function(o){o.inMemory="inmemory",o.vscode="vscode",o.internal="private",o.walkThrough="walkThrough",o.walkThroughSnippet="walkThroughSnippet",o.http="http",o.https="https",o.file="file",o.mailto="mailto",o.untitled="untitled",o.data="data",o.command="command",o.vscodeRemote="vscode-remote",o.vscodeRemoteResource="vscode-remote-resource",o.vscodeManagedRemoteResource="vscode-managed-remote-resource",o.vscodeUserData="vscode-userdata",o.vscodeCustomEditor="vscode-custom-editor",o.vscodeNotebookCell="vscode-notebook-cell",o.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",o.vscodeNotebookCellOutput="vscode-notebook-cell-output",o.vscodeInteractiveInput="vscode-interactive-input",o.vscodeSettings="vscode-settings",o.vscodeWorkspaceTrust="vscode-workspace-trust",o.vscodeTerminal="vscode-terminal",o.vscodeChatCodeBlock="vscode-chat-code-block",o.vscodeCopilotBackingChatCodeBlock="vscode-copilot-chat-code-block",o.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",o.vscodeChatSesssion="vscode-chat-editor",o.webviewPanel="webview-panel",o.vscodeWebview="vscode-webview",o.extension="extension",o.vscodeFileResource="vscode-file",o.tmp="tmp",o.vsls="vsls",o.vscodeSourceControl="vscode-scm",o.commentsInput="comment",o.codeSetting="code-setting"})(Oe||(Oe={}));function gA(o,e){return ke.isUri(o)?Bf(o.scheme,e):sA(o,e+":")}function DE(o,...e){return e.some(t=>gA(o,t))}const Mq="tkn";class Rq{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(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return Wi.join(this._serverRootPath,Oe.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(a){return ze(a),e}const t=e.authority;let i=this._hosts[t];i&&i.indexOf(":")!==-1&&i.indexOf("[")===-1&&(i=`[${i}]`);const n=this._ports[t],s=this._connectionTokens[t];let r=`path=${encodeURIComponent(e.path)}`;return typeof s=="string"&&(r+=`&${Mq}=${encodeURIComponent(s)}`),ke.from({scheme:$h?this._preferredWebSchema:Oe.vscodeRemoteResource,authority:`${i}:${n}`,path:this._remoteResourcesPath,query:r})}}const H9=new Rq,Aq="vscode-app";class Kv{uriToBrowserUri(e){return e.scheme===Oe.vscodeRemote?H9.rewrite(e):e.scheme===Oe.file&&(_a||z$===`${Oe.vscodeFileResource}://${Kv.FALLBACK_AUTHORITY}`)?e.with({scheme:Oe.vscodeFileResource,authority:e.authority||Kv.FALLBACK_AUTHORITY,query:null,fragment:null}):e}}Kv.FALLBACK_AUTHORITY=Aq;const V9=new Kv;var UO;(function(o){const e=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"}]]);o.CoopAndCoep=Object.freeze(e.get("3"));const t="vscode-coi";function i(s){let r;typeof s=="string"?r=new URL(s).searchParams:s instanceof URL?r=s.searchParams:ke.isUri(s)&&(r=new URL(s.toString(!0)).searchParams);const a=r==null?void 0:r.get(t);if(a)return e.get(a)}o.getHeadersFromQuery=i;function n(s,r,a){if(!globalThis.crossOriginIsolated)return;const l=r&&a?"3":a?"2":"1";s instanceof URLSearchParams?s.set(t,l):s[t]=l}o.addSearchParam=n})(UO||(UO={}));function $y(o){return jy(o,0)}function jy(o,e){switch(typeof o){case"object":return o===null?yd(349,e):Array.isArray(o)?Oq(o,e):Fq(o,e);case"string":return fA(o,e);case"boolean":return Pq(o,e);case"number":return yd(o,e);case"undefined":return yd(937,e);default:return yd(617,e)}}function yd(o,e){return(e<<5)-e+o|0}function Pq(o,e){return yd(o?433:863,e)}function fA(o,e){e=yd(149417,e);for(let t=0,i=o.length;tjy(i,t),e)}function Fq(o,e){return e=yd(181387,e),Object.keys(o).sort().reduce((t,i)=>(t=fA(i,t),jy(o[i],t)),e)}function bD(o,e,t=32){const i=t-e,n=~((1<>>i)>>>0}function $O(o,e=0,t=o.byteLength,i=0){for(let n=0;nt.toString(16).padStart(2,"0")).join(""):Bq((o>>>0).toString(16),e/4)}class Ky{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(e){const t=e.length;if(t===0)return;const i=this._buff;let n=this._buffLen,s=this._leftoverHighSurrogate,r,a;for(s!==0?(r=s,a=-1,s=0):(r=e.charCodeAt(0),a=0);;){let l=r;if(sn(r))if(a+1>>6,e[t++]=128|(i&63)>>>0):i<65536?(e[t++]=224|(i&61440)>>>12,e[t++]=128|(i&4032)>>>6,e[t++]=128|(i&63)>>>0):(e[t++]=240|(i&1835008)>>>18,e[t++]=128|(i&258048)>>>12,e[t++]=128|(i&4032)>>>6,e[t++]=128|(i&63)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}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()),e_(this._h0)+e_(this._h1)+e_(this._h2)+e_(this._h3)+e_(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,$O(this._buff,this._buffLen),this._buffLen>56&&(this._step(),$O(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=Ky._bigBlock32,t=this._buffDV;for(let h=0;h<64;h+=4)e.setUint32(h,t.getUint32(h,!1),!1);for(let h=64;h<320;h+=4)e.setUint32(h,bD(e.getUint32(h-12,!1)^e.getUint32(h-32,!1)^e.getUint32(h-56,!1)^e.getUint32(h-64,!1),1),!1);let i=this._h0,n=this._h1,s=this._h2,r=this._h3,a=this._h4,l,d,c;for(let h=0;h<80;h++)h<20?(l=n&s|~n&r,d=1518500249):h<40?(l=n^s^r,d=1859775393):h<60?(l=n&s|n&r|s&r,d=2400959708):(l=n^s^r,d=3395469782),c=bD(i,5)+l+a+d+e.getUint32(h*4,!1)&4294967295,a=r,r=s,s=bD(n,30),n=i,i=c;this._h0=this._h0+i&4294967295,this._h1=this._h1+n&4294967295,this._h2=this._h2+s&4294967295,this._h3=this._h3+r&4294967295,this._h4=this._h4+a&4294967295}}Ky._bigBlock32=new DataView(new ArrayBuffer(320));const{registerWindow:Dye,getWindow:De,getDocument:kye,getWindows:z9,getWindowsCount:Wq,getWindowId:Kw,getWindowById:jO,hasWindow:Iye,onDidRegisterWindow:qy,onWillUnregisterWindow:Hq,onDidUnregisterWindow:Vq}=function(){const o=new Map;NK(Mt,1);const e={window:Mt,disposables:new G};o.set(Mt.vscodeWindowId,e);const t=new O,i=new O,n=new O;function s(r,a){const l=typeof r=="number"?o.get(r):void 0;return l??(a?e:void 0)}return{onDidRegisterWindow:t.event,onWillUnregisterWindow:n.event,onDidUnregisterWindow:i.event,registerWindow(r){if(o.has(r.vscodeWindowId))return W.None;const a=new G,l={window:r,disposables:a.add(new G)};return o.set(r.vscodeWindowId,l),a.add(Ce(()=>{o.delete(r.vscodeWindowId),i.fire(r)})),a.add(U(r,ee.BEFORE_UNLOAD,()=>{n.fire(r)})),t.fire(l),a},getWindows(){return o.values()},getWindowsCount(){return o.size},getWindowId(r){return r.vscodeWindowId},hasWindow(r){return o.has(r)},getWindowById:s,getWindow(r){var a;const l=r;if(!((a=l==null?void 0:l.ownerDocument)===null||a===void 0)&&a.defaultView)return l.ownerDocument.defaultView.window;const d=r;return d!=null&&d.view?d.view.window:Mt},getDocument(r){return De(r).document}}}();function xn(o){for(;o.firstChild;)o.firstChild.remove()}class zq{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!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)}}function U(o,e,t,i){return new zq(o,e,t,i)}function U9(o,e){return function(t){return e(new Rr(o,t))}}function Uq(o){return function(e){return o(new Ht(e))}}const Si=function(e,t,i,n){let s=i;return t==="click"||t==="mousedown"||t==="contextmenu"?s=U9(De(e),i):(t==="keydown"||t==="keypress"||t==="keyup")&&(s=Uq(i)),U(e,t,s,n)},$q=function(e,t,i){const n=U9(De(e),t);return jq(e,n,i)};function jq(o,e,t){return U(o,Da&&cA.pointerEvents?ee.POINTER_DOWN:ee.MOUSE_DOWN,e,t)}function E_(o,e,t){return nv(o,e,t)}class CD extends M9{constructor(e,t){super(e,t)}}let qw,ao;class mA extends uA{constructor(e){super(),this.defaultTarget=e&&De(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,i??this.defaultTarget)}}class wD{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){ze(e)}}static sort(e,t){return t.priority-e.priority}}(function(){const o=new Map,e=new Map,t=new Map,i=new Map,n=s=>{var r;t.set(s,!1);const a=(r=o.get(s))!==null&&r!==void 0?r:[];for(e.set(s,a),o.set(s,[]),i.set(s,!0);a.length>0;)a.sort(wD.sort),a.shift().execute();i.set(s,!1)};ao=(s,r,a=0)=>{const l=Kw(s),d=new wD(r,a);let c=o.get(l);return c||(c=[],o.set(l,c)),c.push(d),t.get(l)||(t.set(l,!0),s.requestAnimationFrame(()=>n(l))),d},qw=(s,r,a)=>{const l=Kw(s);if(i.get(l)){const d=new wD(r,a);let c=e.get(l);return c||(c=[],e.set(l,c)),c.push(d),d}else return ao(s,r,a)}})();function Gy(o){return De(o).getComputedStyle(o,null)}function Jd(o,e){const t=De(o),i=t.document;if(o!==i.body)return new Ct(o.clientWidth,o.clientHeight);if(Da&&(t!=null&&t.visualViewport))return new Ct(t.visualViewport.width,t.visualViewport.height);if(t!=null&&t.innerWidth&&t.innerHeight)return new Ct(t.innerWidth,t.innerHeight);if(i.body&&i.body.clientWidth&&i.body.clientHeight)return new Ct(i.body.clientWidth,i.body.clientHeight);if(i.documentElement&&i.documentElement.clientWidth&&i.documentElement.clientHeight)return new Ct(i.documentElement.clientWidth,i.documentElement.clientHeight);if(e)return Jd(e);throw new Error("Unable to figure out browser width and height")}class Ii{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){const n=Gy(e),s=n?n.getPropertyValue(t):"0";return Ii.convertToPixels(e,s)}static getBorderLeftWidth(e){return Ii.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return Ii.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return Ii.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return Ii.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return Ii.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return Ii.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return Ii.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return Ii.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return Ii.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return Ii.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return Ii.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return Ii.getDimension(e,"margin-bottom","marginBottom")}}class Ct{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new Ct(e,t):this}static is(e){return typeof e=="object"&&typeof e.height=="number"&&typeof e.width=="number"}static lift(e){return e instanceof Ct?e:new Ct(e.width,e.height)}static equals(e,t){return e===t?!0:!e||!t?!1:e.width===t.width&&e.height===t.height}}Ct.None=new Ct(0,0);function $9(o){let e=o.offsetParent,t=o.offsetTop,i=o.offsetLeft;for(;(o=o.parentNode)!==null&&o!==o.ownerDocument.body&&o!==o.ownerDocument.documentElement;){t-=o.scrollTop;const n=K9(o)?null:Gy(o);n&&(i-=n.direction!=="rtl"?o.scrollLeft:-o.scrollLeft),o===e&&(i+=Ii.getBorderLeftWidth(o),t+=Ii.getBorderTopWidth(o),t+=o.offsetTop,i+=o.offsetLeft,e=o.offsetParent)}return{left:i,top:t}}function Kq(o,e,t){typeof e=="number"&&(o.style.width=`${e}px`),typeof t=="number"&&(o.style.height=`${t}px`)}function Oi(o){const e=o.getBoundingClientRect(),t=De(o);return{left:e.left+t.scrollX,top:e.top+t.scrollY,width:e.width,height:e.height}}function j9(o){let e=o,t=1;do{const i=Gy(e).zoom;i!=null&&i!=="1"&&(t*=i),e=e.parentElement}while(e!==null&&e!==e.ownerDocument.documentElement);return t}function Xs(o){const e=Ii.getMarginLeft(o)+Ii.getMarginRight(o);return o.offsetWidth+e}function SD(o){const e=Ii.getBorderLeftWidth(o)+Ii.getBorderRightWidth(o),t=Ii.getPaddingLeft(o)+Ii.getPaddingRight(o);return o.offsetWidth-e-t}function qq(o){const e=Ii.getBorderTopWidth(o)+Ii.getBorderBottomWidth(o),t=Ii.getPaddingTop(o)+Ii.getPaddingBottom(o);return o.offsetHeight-e-t}function Ld(o){const e=Ii.getMarginTop(o)+Ii.getMarginBottom(o);return o.offsetHeight+e}function on(o,e){return!!(e!=null&&e.contains(o))}function Gq(o,e,t){for(;o&&o.nodeType===o.ELEMENT_NODE;){if(o.classList.contains(e))return o;if(t){if(typeof t=="string"){if(o.classList.contains(t))return null}else if(o===t)return null}o=o.parentNode}return null}function yD(o,e,t){return!!Gq(o,e,t)}function K9(o){return o&&!!o.host&&!!o.mode}function Gw(o){return!!fg(o)}function fg(o){for(var e;o.parentNode;){if(o===((e=o.ownerDocument)===null||e===void 0?void 0:e.body))return null;o=o.parentNode}return K9(o)?o:null}function Pn(){let o=Ip().activeElement;for(;o!=null&&o.shadowRoot;)o=o.shadowRoot.activeElement;return o}function Zy(o){return Pn()===o}function q9(o){return on(Pn(),o)}function Ip(){var o;return Wq()<=1?Mt.document:(o=Array.from(z9()).map(({window:t})=>t.document).find(t=>t.hasFocus()))!==null&&o!==void 0?o:Mt.document}function Q1(){var o,e;return(e=(o=Ip().defaultView)===null||o===void 0?void 0:o.window)!==null&&e!==void 0?e:Mt}const pA=new Map;function G9(){return new Zq}class Zq{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(e){e!==this._currentCssStyle&&(this._currentCssStyle=e,this._styleSheet?this._styleSheet.innerText=e:this._styleSheet=Fo(Mt.document.head,t=>t.innerText=e))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function Fo(o=Mt.document.head,e,t){const i=document.createElement("style");if(i.type="text/css",i.media="screen",e==null||e(i),o.appendChild(i),t&&t.add(Ce(()=>o.removeChild(i))),o===Mt.document.head){const n=new Set;pA.set(i,n);for(const{window:s,disposables:r}of z9()){if(s===Mt)continue;const a=r.add(Yq(i,n,s));t==null||t.add(a)}}return i}function Yq(o,e,t){var i,n;const s=new G,r=o.cloneNode(!0);t.document.head.appendChild(r),s.add(Ce(()=>t.document.head.removeChild(r)));for(const a of Y9(o))(i=r.sheet)===null||i===void 0||i.insertRule(a.cssText,(n=r.sheet)===null||n===void 0?void 0:n.cssRules.length);return s.add(Qq.observe(o,s,{childList:!0})(()=>{r.textContent=o.textContent})),e.add(r),s.add(Ce(()=>e.delete(r))),s}const Qq=new class{constructor(){this.mutationObservers=new Map}observe(o,e,t){let i=this.mutationObservers.get(o);i||(i=new Map,this.mutationObservers.set(o,i));const n=$y(t);let s=i.get(n);if(s)s.users+=1;else{const r=new O,a=new MutationObserver(d=>r.fire(d));a.observe(o,t);const l=s={users:1,observer:a,onDidMutate:r.event};e.add(Ce(()=>{l.users-=1,l.users===0&&(r.dispose(),a.disconnect(),i==null||i.delete(n),(i==null?void 0:i.size)===0&&this.mutationObservers.delete(o))})),i.set(n,s)}return s.onDidMutate}};let LD=null;function Z9(){return LD||(LD=Fo()),LD}function Y9(o){var e,t;return!((e=o==null?void 0:o.sheet)===null||e===void 0)&&e.rules?o.sheet.rules:!((t=o==null?void 0:o.sheet)===null||t===void 0)&&t.cssRules?o.sheet.cssRules:[]}function Zw(o,e,t=Z9()){var i,n;if(!(!t||!e)){(i=t.sheet)===null||i===void 0||i.insertRule(`${o} {${e}}`,0);for(const s of(n=pA.get(t))!==null&&n!==void 0?n:[])Zw(o,e,s)}}function kE(o,e=Z9()){var t,i;if(!e)return;const n=Y9(e),s=[];for(let r=0;r=0;r--)(t=e.sheet)===null||t===void 0||t.deleteRule(s[r]);for(const r of(i=pA.get(e))!==null&&i!==void 0?i:[])kE(o,r)}function Xq(o){return typeof o.selectorText=="string"}function _n(o){return o instanceof HTMLElement||o instanceof De(o).HTMLElement}function KO(o){return o instanceof HTMLAnchorElement||o instanceof De(o).HTMLAnchorElement}function _A(o){return o instanceof MouseEvent||o instanceof De(o).MouseEvent}function Mc(o){return o instanceof KeyboardEvent||o instanceof De(o).KeyboardEvent}const ee={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:Zu?"webkitAnimationStart":"animationstart",ANIMATION_END:Zu?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:Zu?"webkitAnimationIteration":"animationiteration"};function Jq(o){const e=o;return!!(e&&typeof e.preventDefault=="function"&&typeof e.stopPropagation=="function")}const lt={stop:(o,e)=>(o.preventDefault(),e&&o.stopPropagation(),o)};function eG(o){const e=[];for(let t=0;o&&o.nodeType===o.ELEMENT_NODE;t++)e[t]=o.scrollTop,o=o.parentNode;return e}function tG(o,e){for(let t=0;o&&o.nodeType===o.ELEMENT_NODE;t++)o.scrollTop!==e[t]&&(o.scrollTop=e[t]),o=o.parentNode}class Yw extends W{static hasFocusWithin(e){if(_n(e)){const t=fg(e),i=t?t.activeElement:e.ownerDocument.activeElement;return on(i,e)}else{const t=e;return on(t.document.activeElement,t.document)}}constructor(e){super(),this._onDidFocus=this._register(new O),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new O),this.onDidBlur=this._onDidBlur.event;let t=Yw.hasFocusWithin(e),i=!1;const n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},s=()=>{t&&(i=!0,(_n(e)?De(e):e).setTimeout(()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{Yw.hasFocusWithin(e)!==t&&(t?s():n())},this._register(U(e,ee.FOCUS,n,!0)),this._register(U(e,ee.BLUR,s,!0)),_n(e)&&(this._register(U(e,ee.FOCUS_IN,()=>this._refreshStateHandler())),this._register(U(e,ee.FOCUS_OUT,()=>this._refreshStateHandler())))}}function Ea(o){return new Yw(o)}function iG(o,e){return o.after(e),e}function Q(o,...e){if(o.append(...e),e.length===1&&typeof e[0]!="string")return e[0]}function vA(o,e){return o.insertBefore(e,o.firstChild),e}function Dn(o,...e){o.innerText="",Q(o,...e)}const nG=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var qv;(function(o){o.HTML="http://www.w3.org/1999/xhtml",o.SVG="http://www.w3.org/2000/svg"})(qv||(qv={}));function Q9(o,e,t,...i){const n=nG.exec(e);if(!n)throw new Error("Bad use of emmet");const s=n[1]||"div";let r;return o!==qv.HTML?r=document.createElementNS(o,s):r=document.createElement(s),n[3]&&(r.id=n[3]),n[4]&&(r.className=n[4].replace(/\./g," ").trim()),t&&Object.entries(t).forEach(([a,l])=>{typeof l>"u"||(/^on\w+$/.test(a)?r[a]=l:a==="selected"?l&&r.setAttribute(a,"true"):r.setAttribute(a,l))}),r.append(...i),r}function te(o,e,...t){return Q9(qv.HTML,o,e,...t)}te.SVG=function(o,e,...t){return Q9(qv.SVG,o,e,...t)};function sG(o,...e){o?eo(...e):gs(...e)}function eo(...o){for(const e of o)e.style.display="",e.removeAttribute("aria-hidden")}function gs(...o){for(const e of o)e.style.display="none",e.setAttribute("aria-hidden","true")}function qO(o,e){const t=o.devicePixelRatio*e;return Math.max(1,Math.floor(t))/o.devicePixelRatio}function X9(o){Mt.open(o,"_blank","noopener")}function oG(o,e){const t=()=>{e(),i=ao(o,t)};let i=ao(o,t);return Ce(()=>i.dispose())}H9.setPreferredWebSchema(/^https:/.test(Mt.location.href)?"https":"http");function ec(o){return o?`url('${V9.uriToBrowserUri(o).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function xD(o){return`'${o.replace(/'/g,"%27")}'`}function Vd(o,e){if(o!==void 0){const t=o.match(/^\s*var\((.+)\)$/);if(t){const i=t[1].split(",",2);return i.length===2&&(e=Vd(i[1].trim(),e)),`var(${i[0]}, ${e})`}return o}return e}function rG(o,e=!1){const t=document.createElement("a");return B9("afterSanitizeAttributes",i=>{for(const n of["href","src"])if(i.hasAttribute(n)){const s=i.getAttribute(n);if(n==="href"&&s.startsWith("#"))continue;if(t.href=s,!o.includes(t.protocol.replace(/:$/,""))){if(e&&n==="src"&&t.href.startsWith("data:"))continue;i.removeAttribute(n)}}}),Ce(()=>{W9("afterSanitizeAttributes")})}const aG=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"]);class xd extends O{constructor(){super(),this._subscriptions=new G,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(ae.runAndSubscribe(qy,({window:e,disposables:t})=>this.registerListeners(e,t),{window:Mt,disposables:this._subscriptions}))}registerListeners(e,t){t.add(U(e,"keydown",i=>{if(i.defaultPrevented)return;const n=new Ht(i);if(!(n.keyCode===6&&i.repeat)){if(i.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(i.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(i.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(i.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else if(n.keyCode!==6)this._keyStatus.lastKeyPressed=void 0;else return;this._keyStatus.altKey=i.altKey,this._keyStatus.ctrlKey=i.ctrlKey,this._keyStatus.metaKey=i.metaKey,this._keyStatus.shiftKey=i.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=i,this.fire(this._keyStatus))}},!0)),t.add(U(e,"keyup",i=>{i.defaultPrevented||(!i.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!i.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!i.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!i.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=i.altKey,this._keyStatus.ctrlKey=i.ctrlKey,this._keyStatus.metaKey=i.metaKey,this._keyStatus.shiftKey=i.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=i,this.fire(this._keyStatus)))},!0)),t.add(U(e.document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(U(e.document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(U(e.document.body,"mousemove",i=>{i.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),t.add(U(e,"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 xd.instance||(xd.instance=new xd),xd.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class lG extends W{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(U(this.element,ee.DRAG_START,e=>{var t,i;(i=(t=this.callbacks).onDragStart)===null||i===void 0||i.call(t,e)})),this.callbacks.onDrag&&this._register(U(this.element,ee.DRAG,e=>{var t,i;(i=(t=this.callbacks).onDrag)===null||i===void 0||i.call(t,e)})),this._register(U(this.element,ee.DRAG_ENTER,e=>{var t,i;this.counter++,this.dragStartTime=e.timeStamp,(i=(t=this.callbacks).onDragEnter)===null||i===void 0||i.call(t,e)})),this._register(U(this.element,ee.DRAG_OVER,e=>{var t,i;e.preventDefault(),(i=(t=this.callbacks).onDragOver)===null||i===void 0||i.call(t,e,e.timeStamp-this.dragStartTime)})),this._register(U(this.element,ee.DRAG_LEAVE,e=>{var t,i;this.counter--,this.counter===0&&(this.dragStartTime=0,(i=(t=this.callbacks).onDragLeave)===null||i===void 0||i.call(t,e))})),this._register(U(this.element,ee.DRAG_END,e=>{var t,i;this.counter=0,this.dragStartTime=0,(i=(t=this.callbacks).onDragEnd)===null||i===void 0||i.call(t,e)})),this._register(U(this.element,ee.DROP,e=>{var t,i;this.counter=0,this.dragStartTime=0,(i=(t=this.callbacks).onDrop)===null||i===void 0||i.call(t,e)}))}}const dG=/(?[\w\-]+)?(?:#(?[\w\-]+))?(?(?:\.(?:[\w\-]+))*)(?:@(?(?:[\w\_])+))?/;function bt(o,...e){let t,i;Array.isArray(e[0])?(t={},i=e[0]):(t=e[0]||{},i=e[1]);const n=dG.exec(o);if(!n||!n.groups)throw new Error("Bad use of h");const s=n.groups.tag||"div",r=document.createElement(s);n.groups.id&&(r.id=n.groups.id);const a=[];if(n.groups.class)for(const d of n.groups.class.split("."))d!==""&&a.push(d);if(t.className!==void 0)for(const d of t.className.split("."))d!==""&&a.push(d);a.length>0&&(r.className=a.join(" "));const l={};if(n.groups.name&&(l[n.groups.name]=r),i)for(const d of i)_n(d)?r.appendChild(d):typeof d=="string"?r.append(d):"root"in d&&(Object.assign(l,d),r.appendChild(d.root));for(const[d,c]of Object.entries(t))if(d!=="className")if(d==="style")for(const[h,u]of Object.entries(c))r.style.setProperty(GO(h),typeof u=="number"?u+"px":""+u);else d==="tabIndex"?r.tabIndex=c:r.setAttribute(GO(d),c.toString());return l.root=r,l}function GO(o){return o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}class cG extends W{constructor(e){super(),this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1)}_handleChange(e,t){var i;(i=this._mediaQueryList)===null||i===void 0||i.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire()}}class hG extends W{get value(){return this._value}constructor(e){super(),this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);const t=this._register(new cG(e));this._register(t.onDidChange(()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value)}))}_getPixelRatio(e){const t=document.createElement("canvas").getContext("2d"),i=e.devicePixelRatio||1,n=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return i/n}}class uG{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){const t=Kw(e);let i=this.mapWindowIdToPixelRatioMonitor.get(t);return i||(i=new hG(e),this.mapWindowIdToPixelRatioMonitor.set(t,i),ae.once(Vq)(({vscodeWindowId:n})=>{n===t&&(i==null||i.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t))})),i}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}}const Gv=new uG;class J9{constructor(e){this.domNode=e,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(e){const t=Yr(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=Yr(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=Yr(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=Yr(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=Yr(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=Yr(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=Yr(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=Yr(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const t=Yr(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const t=Yr(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=Yr(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function Yr(o){return typeof o=="number"?`${o}px`:o}function Lt(o){return new J9(o)}function kn(o,e){o instanceof J9?(o.setFontFamily(e.getMassagedFontFamily()),o.setFontWeight(e.fontWeight),o.setFontSize(e.fontSize),o.setFontFeatureSettings(e.fontFeatureSettings),o.setFontVariationSettings(e.fontVariationSettings),o.setLineHeight(e.lineHeight),o.setLetterSpacing(e.letterSpacing)):(o.style.fontFamily=e.getMassagedFontFamily(),o.style.fontWeight=e.fontWeight,o.style.fontSize=e.fontSize+"px",o.style.fontFeatureSettings=e.fontFeatureSettings,o.style.fontVariationSettings=e.fontVariationSettings,o.style.lineHeight=e.lineHeight+"px",o.style.letterSpacing=e.letterSpacing+"px")}class gG{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class bA{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(e){this._createDomElements(),e.document.body.appendChild(this._container),this._readFromDomElements(),e.document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const t=document.createElement("div");kn(t,this._bareFontInfo),e.appendChild(t);const i=document.createElement("div");kn(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);const n=document.createElement("div");kn(n,this._bareFontInfo),n.style.fontStyle="italic",e.appendChild(n);const s=[];for(const r of this._requests){let a;r.type===0&&(a=t),r.type===2&&(a=i),r.type===1&&(a=n),a.appendChild(document.createElement("br"));const l=document.createElement("span");bA._render(l,r),a.appendChild(l),s.push(l)}this._container=e,this._testElements=s}static _render(e,t){if(t.chr===" "){let i=" ";for(let n=0;n<8;n++)i+=i;e.innerText=i}else{let i=t.chr;for(let n=0;n<8;n++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;e{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings(e)},5e3))}_evictUntrustedReadings(e){const t=this._ensureCache(e),i=t.getValues();let n=!1;for(const s of i)s.isTrusted||(n=!0,t.remove(s));n&&this._onDidChange.fire()}readFontInfo(e,t){const i=this._ensureCache(e);if(!i.has(t)){let n=this._actualReadFontInfo(e,t);(n.typicalHalfwidthCharacterWidth<=2||n.typicalFullwidthCharacterWidth<=2||n.spaceWidth<=2||n.maxDigitWidth<=2)&&(n=new IE({pixelRatio:Gv.getInstance(e).value,fontFamily:n.fontFamily,fontWeight:n.fontWeight,fontSize:n.fontSize,fontFeatureSettings:n.fontFeatureSettings,fontVariationSettings:n.fontVariationSettings,lineHeight:n.lineHeight,letterSpacing:n.letterSpacing,isMonospace:n.isMonospace,typicalHalfwidthCharacterWidth:Math.max(n.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(n.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:n.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(n.spaceWidth,5),middotWidth:Math.max(n.middotWidth,5),wsmiddotWidth:Math.max(n.wsmiddotWidth,5),maxDigitWidth:Math.max(n.maxDigitWidth,5)},!1)),this._writeToCache(e,t,n)}return i.get(t)}_createRequest(e,t,i,n){const s=new gG(e,t);return i.push(s),n==null||n.push(s),s}_actualReadFontInfo(e,t){const i=[],n=[],s=this._createRequest("n",0,i,n),r=this._createRequest("m",0,i,null),a=this._createRequest(" ",0,i,n),l=this._createRequest("0",0,i,n),d=this._createRequest("1",0,i,n),c=this._createRequest("2",0,i,n),h=this._createRequest("3",0,i,n),u=this._createRequest("4",0,i,n),g=this._createRequest("5",0,i,n),f=this._createRequest("6",0,i,n),p=this._createRequest("7",0,i,n),_=this._createRequest("8",0,i,n),v=this._createRequest("9",0,i,n),b=this._createRequest("→",0,i,n),C=this._createRequest("→",0,i,null),w=this._createRequest("·",0,i,n),S=this._createRequest("⸱",0,i,null),L="|/-_ilm%";for(let P=0,A=L.length;P.001){I=!1;break}}let V=!0;return I&&C.width!==T&&(V=!1),C.width>b.width&&(V=!1),new IE({pixelRatio:Gv.getInstance(e).value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:I,typicalHalfwidthCharacterWidth:s.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:V,spaceWidth:a.width,middotWidth:w.width,wsmiddotWidth:S.width,maxDigitWidth:D},!0)}}class vG{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const i=e.getId();this._keys[i]=e,this._values[i]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map(e=>this._values[e])}}const EE=new _G;var fa;(function(o){o.serviceIds=new Map,o.DI_TARGET="$di$target",o.DI_DEPENDENCIES="$di$dependencies";function e(t){return t[o.DI_DEPENDENCIES]||[]}o.getServiceDependencies=e})(fa||(fa={}));const Le=ot("instantiationService");function bG(o,e,t){e[fa.DI_TARGET]===e?e[fa.DI_DEPENDENCIES].push({id:o,index:t}):(e[fa.DI_DEPENDENCIES]=[{id:o,index:t}],e[fa.DI_TARGET]=e)}function ot(o){if(fa.serviceIds.has(o))return fa.serviceIds.get(o);const e=function(t,i,n){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");bG(e,t,n)};return e.toString=()=>o,fa.serviceIds.set(o,e),e}const _t=ot("codeEditorService"),ai=ot("modelService"),Gs=ot("textModelService");class no extends W{constructor(e,t="",i="",n=!0,s){super(),this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=n,this._actionCallback=s}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}async run(e,t){this._actionCallback&&await this._actionCallback(e)}}class mg extends W{constructor(){super(...arguments),this._onWillRun=this._register(new O),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new O),this.onDidRun=this._onDidRun.event}async run(e,t){if(!e.enabled)return;this._onWillRun.fire({action:e});let i;try{await this.runAction(e,t)}catch(n){i=n}this._onDidRun.fire({action:e,error:i})}async runAction(e,t){await e.run(t)}}class ji{constructor(){this.id=ji.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...e){let t=[];for(const i of e)i.length&&(t.length?t=[...t,new ji,...i]:t=i);return t}async run(){}}ji.ID="vs.actions.separator";class Wm{get actions(){return this._actions}constructor(e,t,i,n){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=n,this._actions=i}async run(){}}class Yy extends no{constructor(){super(Yy.ID,m("submenu.empty","(empty)"),void 0,!1)}}Yy.ID="vs.actions.empty";function Qu(o){var e,t;return{id:o.id,label:o.label,tooltip:(e=o.tooltip)!==null&&e!==void 0?e:o.label,class:o.class,enabled:(t=o.enabled)!==null&&t!==void 0?t:!0,checked:o.checked,run:async(...i)=>o.run(...i)}}var NE;(function(o){function e(t){return t&&typeof t=="object"&&typeof t.id=="string"}o.isThemeColor=e})(NE||(NE={}));var Te;(function(o){o.iconNameSegment="[A-Za-z0-9]+",o.iconNameExpression="[A-Za-z0-9-]+",o.iconModifierExpression="~[A-Za-z]+",o.iconNameCharacter="[A-Za-z0-9~-]";const e=new RegExp(`^(${o.iconNameExpression})(${o.iconModifierExpression})?$`);function t(u){const g=e.exec(u.id);if(!g)return t(oe.error);const[,f,p]=g,_=["codicon","codicon-"+f];return p&&_.push("codicon-modifier-"+p.substring(1)),_}o.asClassNameArray=t;function i(u){return t(u).join(" ")}o.asClassName=i;function n(u){return"."+t(u).join(".")}o.asCSSSelector=n;function s(u){return u&&typeof u=="object"&&typeof u.id=="string"&&(typeof u.color>"u"||NE.isThemeColor(u.color))}o.isThemeIcon=s;const r=new RegExp(`^\\$\\((${o.iconNameExpression}(?:${o.iconModifierExpression})?)\\)$`);function a(u){const g=r.exec(u);if(!g)return;const[,f]=g;return{id:f}}o.fromString=a;function l(u){return{id:u}}o.fromId=l;function d(u,g){let f=u.id;const p=f.lastIndexOf("~");return p!==-1&&(f=f.substring(0,p)),g&&(f=`${f}~${g}`),{id:f}}o.modify=d;function c(u){const g=u.id.lastIndexOf("~");if(g!==-1)return u.id.substring(g+1)}o.getModifier=c;function h(u,g){var f,p;return u.id===g.id&&((f=u.color)===null||f===void 0?void 0:f.id)===((p=g.color)===null||p===void 0?void 0:p.id)}o.isEqual=h})(Te||(Te={}));const Qt=ot("commandService"),ct=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new O,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(o,e){if(!o)throw new Error("invalid command");if(typeof o=="string"){if(!e)throw new Error("invalid command");return this.registerCommand({id:o,handler:e})}if(o.metadata&&Array.isArray(o.metadata.args)){const r=[];for(const l of o.metadata.args)r.push(l.constraint);const a=o.handler;o.handler=function(l,...d){return M$(d,r),a(l,...d)}}const{id:t}=o;let i=this._commands.get(t);i||(i=new vs,this._commands.set(t,i));const n=i.unshift(o),s=Ce(()=>{n();const r=this._commands.get(t);r!=null&&r.isEmpty()&&this._commands.delete(t)});return this._onDidRegisterCommand.fire(t),s}registerCommandAlias(o,e){return ct.registerCommand(o,(t,...i)=>t.get(Qt).executeCommand(e,...i))}getCommand(o){const e=this._commands.get(o);if(!(!e||e.isEmpty()))return dt.first(e)}getCommands(){const o=new Map;for(const e of this._commands.keys()){const t=this.getCommand(e);t&&o.set(e,t)}return o}};ct.registerCommand("noop",()=>{});function kD(...o){switch(o.length){case 1:return m("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",o[0]);case 2:return m("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",o[0],o[1]);case 3:return m("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",o[0],o[1],o[2]);default:return}}const CG=m("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),wG=m("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");let ku=class TE{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return e.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 e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return"EOF";default:throw QR(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,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)){const t=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:t})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const t=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:t})}else this._match(126)?this._addToken(9):this._error(kD("==","=~"));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(kD("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(kD("||"));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(e){return this._isAtEnd()||this._input.charCodeAt(this._current)!==e?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),i=TE._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(CG);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(wG);return}const s=this._input.charCodeAt(e);if(t)t=!1;else if(s===47&&!i){e++;break}else s===91?i=!0:s===92?t=!0:s===93&&(i=!1);e++}for(;e=this._input.length}};ku._regexFlags=new Set(["i","g","s","m","y","u"].map(o=>o.charCodeAt(0)));ku._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);const Kn=new Map;Kn.set("false",!1);Kn.set("true",!0);Kn.set("isMac",it);Kn.set("isLinux",xs);Kn.set("isWindows",Fn);Kn.set("isWeb",$h);Kn.set("isMacNative",it&&!$h);Kn.set("isEdge",q$);Kn.set("isFirefox",j$);Kn.set("isChrome",X7);Kn.set("isSafari",K$);const SG=Object.prototype.hasOwnProperty,yG={regexParsingWithErrorRecovery:!0},LG=m("contextkey.parser.error.emptyString","Empty context key expression"),xG=m("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."),DG=m("contextkey.parser.error.noInAfterNot","'in' after 'not'."),ZO=m("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),kG=m("contextkey.parser.error.unexpectedToken","Unexpected token"),IG=m("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),EG=m("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),NG=m("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");let eW=class N_{constructor(e=yG){this._config=e,this._scanner=new ku,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(e===""){this._parsingErrors.push({message:LG,offset:0,lexeme:"",additionalInfo:xG});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const t=this._expr();if(!this._isAtEnd()){const i=this._peek(),n=i.type===17?IG:void 0;throw this._parsingErrors.push({message:kG,offset:i.offset,lexeme:ku.getLexeme(i),additionalInfo:n}),N_._parseError}return t}catch(t){if(t!==N_._parseError)throw t;return}}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return e.length===1?e[0]:K.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return e.length===1?e[0]:K.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),Ds.INSTANCE;case 12:return this._advance(),$s.INSTANCE;case 0:{this._advance();const t=this._expr();return this._consume(1,ZO),t==null?void 0:t.negate()}case 17:return this._advance(),$g.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),K.true();case 12:return this._advance(),K.false();case 0:{this._advance();const t=this._expr();return this._consume(1,ZO),t}case 17:{const t=e.lexeme;if(this._advance(),this._matchOne(9)){const n=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),n.type!==10)throw this._errExpectedButGot("REGEX",n);const s=n.lexeme,r=s.lastIndexOf("/"),a=r===s.length-1?void 0:this._removeFlagsGY(s.substring(r+1));let l;try{l=new RegExp(s.substring(1,r),a)}catch{throw this._errExpectedButGot("REGEX",n)}return Zv.create(t,l)}switch(n.type){case 10:case 19:{const s=[n.lexeme];this._advance();let r=this._peek(),a=0;for(let u=0;u=0){const d=s.slice(a+1,l),c=s[l+1]==="i"?"i":"";try{r=new RegExp(d,c)}catch{throw this._errExpectedButGot("REGEX",n)}}}if(r===null)throw this._errExpectedButGot("REGEX",n);return Zv.create(t,r)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,DG);const n=this._value();return K.notIn(t,n)}switch(this._peek().type){case 3:{this._advance();const n=this._value();if(this._previous().type===18)return K.equals(t,n);switch(n){case"true":return K.has(t);case"false":return K.not(t);default:return K.equals(t,n)}}case 4:{this._advance();const n=this._value();if(this._previous().type===18)return K.notEquals(t,n);switch(n){case"true":return K.not(t);case"false":return K.has(t);default:return K.notEquals(t,n)}}case 5:return this._advance(),nL.create(t,this._value());case 6:return this._advance(),sL.create(t,this._value());case 7:return this._advance(),tL.create(t,this._value());case 8:return this._advance(),iL.create(t,this._value());case 13:return this._advance(),K.in(t,this._value());default:return K.has(t)}}case 20:throw this._parsingErrors.push({message:EG,offset:e.offset,lexeme:"",additionalInfo:NG}),N_._parseError;default:throw this._errExpectedButGot(`true | false | KEY + | KEY '=~' REGEX + | KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return this._check(e)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,i){const n=m("contextkey.parser.error.expectedButGot",`Expected: {0} +Received: '{1}'.`,e,ku.getLexeme(t)),s=t.offset,r=ku.getLexeme(t);return this._parsingErrors.push({message:n,offset:s,lexeme:r,additionalInfo:i}),N_._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}};eW._parseError=new Error;class K{static false(){return Ds.INSTANCE}static true(){return $s.INSTANCE}static has(e){return Ug.create(e)}static equals(e,t){return Ep.create(e,t)}static notEquals(e,t){return Jy.create(e,t)}static regex(e,t){return Zv.create(e,t)}static in(e,t){return Qy.create(e,t)}static notIn(e,t){return Xy.create(e,t)}static not(e){return $g.create(e)}static and(...e){return Bu.create(e,null,!0)}static or(...e){return _d.create(e,null,!0)}static deserialize(e){return e==null?void 0:this._parser.parse(e)}}K._parser=new eW({regexParsingWithErrorRecovery:!1});function TG(o,e){const t=o?o.substituteConstants():void 0,i=e?e.substituteConstants():void 0;return!t&&!i?!0:!t||!i?!1:t.equals(i)}function sv(o,e){return o.cmp(e)}class Ds{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return $s.INSTANCE}}Ds.INSTANCE=new Ds;class $s{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return Ds.INSTANCE}}$s.INSTANCE=new $s;class Ug{static create(e,t=null){const i=Kn.get(e);return typeof i=="boolean"?i?$s.INSTANCE:Ds.INSTANCE:new Ug(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:iW(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=Kn.get(this.key);return typeof e=="boolean"?e?$s.INSTANCE:Ds.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=$g.create(this.key,this)),this.negated}}class Ep{static create(e,t,i=null){if(typeof t=="boolean")return t?Ug.create(e,i):$g.create(e,i);const n=Kn.get(e);return typeof n=="boolean"?t===(n?"true":"false")?$s.INSTANCE:Ds.INSTANCE:new Ep(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:jg(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=Kn.get(this.key);if(typeof e=="boolean"){const t=e?"true":"false";return this.value===t?$s.INSTANCE:Ds.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Jy.create(this.key,this.value,this)),this.negated}}class Qy{static create(e,t){return new Qy(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:jg(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type?this.key===e.key&&this.valueKey===e.valueKey:!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.includes(i):typeof i=="string"&&typeof t=="object"&&t!==null?SG.call(t,i):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=Xy.create(this.key,this.valueKey)),this.negated}}class Xy{static create(e,t){return new Xy(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=Qy.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type?this._negated.equals(e._negated):!1}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class Jy{static create(e,t,i=null){if(typeof t=="boolean")return t?$g.create(e,i):Ug.create(e,i);const n=Kn.get(e);return typeof n=="boolean"?t===(n?"true":"false")?Ds.INSTANCE:$s.INSTANCE:new Jy(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:jg(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=Kn.get(this.key);if(typeof e=="boolean"){const t=e?"true":"false";return this.value===t?Ds.INSTANCE:$s.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Ep.create(this.key,this.value,this)),this.negated}}class $g{static create(e,t=null){const i=Kn.get(e);return typeof i=="boolean"?i?Ds.INSTANCE:$s.INSTANCE:new $g(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:iW(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=Kn.get(this.key);return typeof e=="boolean"?e?Ds.INSTANCE:$s.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Ug.create(this.key,this)),this.negated}}function eL(o,e){if(typeof o=="string"){const t=parseFloat(o);isNaN(t)||(o=t)}return typeof o=="string"||typeof o=="number"?e(o):Ds.INSTANCE}class tL{static create(e,t,i=null){return eL(t,n=>new tL(e,n,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:jg(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=sL.create(this.key,this.value,this)),this.negated}}class iL{static create(e,t,i=null){return eL(t,n=>new iL(e,n,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:jg(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=nL.create(this.key,this.value,this)),this.negated}}class nL{static create(e,t,i=null){return eL(t,n=>new nL(e,n,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:jg(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))new sL(e,n,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:jg(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=tL.create(this.key,this.value,this)),this.negated}}class Zv{static create(e,t){return new Zv(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return ti?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return this.regexp?this.regexp.test(t):!1}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=CA.create(this)),this.negated}}class CA{static create(e){return new CA(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type?this._actual.equals(e._actual):!1}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function tW(o){let e=null;for(let t=0,i=o.length;te.expr.length)return 1;for(let t=0,i=this.expr.length;t1;){const r=n[n.length-1];if(r.type!==9)break;n.pop();const a=n.pop(),l=n.length===0,d=_d.create(r.expr.map(c=>Bu.create([c,a],null,i)),null,l);d&&(n.push(d),n.sort(sv))}if(n.length===1)return n[0];if(i){for(let r=0;re.serialize()).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=_d.create(e,this,!0)}return this.negated}}class _d{static create(e,t,i){return _d._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let t=0,i=this.expr.length;te.serialize()).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),i=e.shift(),n=[];for(const s of QO(t))for(const r of QO(i))n.push(Bu.create([s,r],null,!1));e.unshift(_d.create(n,null,!1))}this.negated=_d.create(e,this,!0)}return this.negated}}class de extends Ug{static all(){return de._info.values()}constructor(e,t,i){super(e,null),this._defaultValue=t,typeof i=="object"?de._info.push({...i,key:e}):i!==!0&&de._info.push({key:e,description:i,type:t!=null?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return Ep.create(this.key,e)}}de._info=[];const Me=ot("contextKeyService");function iW(o,e){return oe?1:0}function jg(o,e,t,i){return ot?1:ei?1:0}function ME(o,e){if(o.type===0||e.type===1)return!0;if(o.type===9)return e.type===9?YO(o.expr,e.expr):!1;if(e.type===9){for(const t of e.expr)if(ME(o,t))return!0;return!1}if(o.type===6){if(e.type===6)return YO(e.expr,o.expr);for(const t of o.expr)if(ME(t,e))return!0;return!1}return o.equals(e)}function YO(o,e){let t=0,i=0;for(;t{a(),this._cachedMergedKeybindings=null})}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(AG)),this._cachedMergedKeybindings.slice(0)}}const ks=new SA,RG={EditorModes:"platform.keybindingsRegistry"};hi.add(RG.EditorModes,ks);function AG(o,e){if(o.weight1!==e.weight1)return o.weight1-e.weight1;if(o.command&&e.command){if(o.commande.command)return 1}return o.weight2-e.weight2}var PG=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},JO=function(o,e){return function(t,i){e(t,i,o)}},X1;function Wf(o){return o.command!==void 0}function OG(o){return o.submenu!==void 0}class k{constructor(e){if(k._instances.has(e))throw new TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);k._instances.set(e,this),this.id=e}}k._instances=new Map;k.CommandPalette=new k("CommandPalette");k.DebugBreakpointsContext=new k("DebugBreakpointsContext");k.DebugCallStackContext=new k("DebugCallStackContext");k.DebugConsoleContext=new k("DebugConsoleContext");k.DebugVariablesContext=new k("DebugVariablesContext");k.NotebookVariablesContext=new k("NotebookVariablesContext");k.DebugHoverContext=new k("DebugHoverContext");k.DebugWatchContext=new k("DebugWatchContext");k.DebugToolBar=new k("DebugToolBar");k.DebugToolBarStop=new k("DebugToolBarStop");k.EditorContext=new k("EditorContext");k.SimpleEditorContext=new k("SimpleEditorContext");k.EditorContent=new k("EditorContent");k.EditorLineNumberContext=new k("EditorLineNumberContext");k.EditorContextCopy=new k("EditorContextCopy");k.EditorContextPeek=new k("EditorContextPeek");k.EditorContextShare=new k("EditorContextShare");k.EditorTitle=new k("EditorTitle");k.EditorTitleRun=new k("EditorTitleRun");k.EditorTitleContext=new k("EditorTitleContext");k.EditorTitleContextShare=new k("EditorTitleContextShare");k.EmptyEditorGroup=new k("EmptyEditorGroup");k.EmptyEditorGroupContext=new k("EmptyEditorGroupContext");k.EditorTabsBarContext=new k("EditorTabsBarContext");k.EditorTabsBarShowTabsSubmenu=new k("EditorTabsBarShowTabsSubmenu");k.EditorTabsBarShowTabsZenModeSubmenu=new k("EditorTabsBarShowTabsZenModeSubmenu");k.EditorActionsPositionSubmenu=new k("EditorActionsPositionSubmenu");k.ExplorerContext=new k("ExplorerContext");k.ExplorerContextShare=new k("ExplorerContextShare");k.ExtensionContext=new k("ExtensionContext");k.GlobalActivity=new k("GlobalActivity");k.CommandCenter=new k("CommandCenter");k.CommandCenterCenter=new k("CommandCenterCenter");k.LayoutControlMenuSubmenu=new k("LayoutControlMenuSubmenu");k.LayoutControlMenu=new k("LayoutControlMenu");k.MenubarMainMenu=new k("MenubarMainMenu");k.MenubarAppearanceMenu=new k("MenubarAppearanceMenu");k.MenubarDebugMenu=new k("MenubarDebugMenu");k.MenubarEditMenu=new k("MenubarEditMenu");k.MenubarCopy=new k("MenubarCopy");k.MenubarFileMenu=new k("MenubarFileMenu");k.MenubarGoMenu=new k("MenubarGoMenu");k.MenubarHelpMenu=new k("MenubarHelpMenu");k.MenubarLayoutMenu=new k("MenubarLayoutMenu");k.MenubarNewBreakpointMenu=new k("MenubarNewBreakpointMenu");k.PanelAlignmentMenu=new k("PanelAlignmentMenu");k.PanelPositionMenu=new k("PanelPositionMenu");k.ActivityBarPositionMenu=new k("ActivityBarPositionMenu");k.MenubarPreferencesMenu=new k("MenubarPreferencesMenu");k.MenubarRecentMenu=new k("MenubarRecentMenu");k.MenubarSelectionMenu=new k("MenubarSelectionMenu");k.MenubarShare=new k("MenubarShare");k.MenubarSwitchEditorMenu=new k("MenubarSwitchEditorMenu");k.MenubarSwitchGroupMenu=new k("MenubarSwitchGroupMenu");k.MenubarTerminalMenu=new k("MenubarTerminalMenu");k.MenubarViewMenu=new k("MenubarViewMenu");k.MenubarHomeMenu=new k("MenubarHomeMenu");k.OpenEditorsContext=new k("OpenEditorsContext");k.OpenEditorsContextShare=new k("OpenEditorsContextShare");k.ProblemsPanelContext=new k("ProblemsPanelContext");k.SCMInputBox=new k("SCMInputBox");k.SCMChangesSeparator=new k("SCMChangesSeparator");k.SCMIncomingChanges=new k("SCMIncomingChanges");k.SCMIncomingChangesContext=new k("SCMIncomingChangesContext");k.SCMIncomingChangesSetting=new k("SCMIncomingChangesSetting");k.SCMOutgoingChanges=new k("SCMOutgoingChanges");k.SCMOutgoingChangesContext=new k("SCMOutgoingChangesContext");k.SCMOutgoingChangesSetting=new k("SCMOutgoingChangesSetting");k.SCMIncomingChangesAllChangesContext=new k("SCMIncomingChangesAllChangesContext");k.SCMIncomingChangesHistoryItemContext=new k("SCMIncomingChangesHistoryItemContext");k.SCMOutgoingChangesAllChangesContext=new k("SCMOutgoingChangesAllChangesContext");k.SCMOutgoingChangesHistoryItemContext=new k("SCMOutgoingChangesHistoryItemContext");k.SCMChangeContext=new k("SCMChangeContext");k.SCMResourceContext=new k("SCMResourceContext");k.SCMResourceContextShare=new k("SCMResourceContextShare");k.SCMResourceFolderContext=new k("SCMResourceFolderContext");k.SCMResourceGroupContext=new k("SCMResourceGroupContext");k.SCMSourceControl=new k("SCMSourceControl");k.SCMSourceControlInline=new k("SCMSourceControlInline");k.SCMSourceControlTitle=new k("SCMSourceControlTitle");k.SCMTitle=new k("SCMTitle");k.SearchContext=new k("SearchContext");k.SearchActionMenu=new k("SearchActionContext");k.StatusBarWindowIndicatorMenu=new k("StatusBarWindowIndicatorMenu");k.StatusBarRemoteIndicatorMenu=new k("StatusBarRemoteIndicatorMenu");k.StickyScrollContext=new k("StickyScrollContext");k.TestItem=new k("TestItem");k.TestItemGutter=new k("TestItemGutter");k.TestMessageContext=new k("TestMessageContext");k.TestMessageContent=new k("TestMessageContent");k.TestPeekElement=new k("TestPeekElement");k.TestPeekTitle=new k("TestPeekTitle");k.TouchBarContext=new k("TouchBarContext");k.TitleBarContext=new k("TitleBarContext");k.TitleBarTitleContext=new k("TitleBarTitleContext");k.TunnelContext=new k("TunnelContext");k.TunnelPrivacy=new k("TunnelPrivacy");k.TunnelProtocol=new k("TunnelProtocol");k.TunnelPortInline=new k("TunnelInline");k.TunnelTitle=new k("TunnelTitle");k.TunnelLocalAddressInline=new k("TunnelLocalAddressInline");k.TunnelOriginInline=new k("TunnelOriginInline");k.ViewItemContext=new k("ViewItemContext");k.ViewContainerTitle=new k("ViewContainerTitle");k.ViewContainerTitleContext=new k("ViewContainerTitleContext");k.ViewTitle=new k("ViewTitle");k.ViewTitleContext=new k("ViewTitleContext");k.CommentEditorActions=new k("CommentEditorActions");k.CommentThreadTitle=new k("CommentThreadTitle");k.CommentThreadActions=new k("CommentThreadActions");k.CommentThreadAdditionalActions=new k("CommentThreadAdditionalActions");k.CommentThreadTitleContext=new k("CommentThreadTitleContext");k.CommentThreadCommentContext=new k("CommentThreadCommentContext");k.CommentTitle=new k("CommentTitle");k.CommentActions=new k("CommentActions");k.CommentsViewThreadActions=new k("CommentsViewThreadActions");k.InteractiveToolbar=new k("InteractiveToolbar");k.InteractiveCellTitle=new k("InteractiveCellTitle");k.InteractiveCellDelete=new k("InteractiveCellDelete");k.InteractiveCellExecute=new k("InteractiveCellExecute");k.InteractiveInputExecute=new k("InteractiveInputExecute");k.IssueReporter=new k("IssueReporter");k.NotebookToolbar=new k("NotebookToolbar");k.NotebookStickyScrollContext=new k("NotebookStickyScrollContext");k.NotebookCellTitle=new k("NotebookCellTitle");k.NotebookCellDelete=new k("NotebookCellDelete");k.NotebookCellInsert=new k("NotebookCellInsert");k.NotebookCellBetween=new k("NotebookCellBetween");k.NotebookCellListTop=new k("NotebookCellTop");k.NotebookCellExecute=new k("NotebookCellExecute");k.NotebookCellExecuteGoTo=new k("NotebookCellExecuteGoTo");k.NotebookCellExecutePrimary=new k("NotebookCellExecutePrimary");k.NotebookDiffCellInputTitle=new k("NotebookDiffCellInputTitle");k.NotebookDiffCellMetadataTitle=new k("NotebookDiffCellMetadataTitle");k.NotebookDiffCellOutputsTitle=new k("NotebookDiffCellOutputsTitle");k.NotebookOutputToolbar=new k("NotebookOutputToolbar");k.NotebookOutlineFilter=new k("NotebookOutlineFilter");k.NotebookOutlineActionMenu=new k("NotebookOutlineActionMenu");k.NotebookEditorLayoutConfigure=new k("NotebookEditorLayoutConfigure");k.NotebookKernelSource=new k("NotebookKernelSource");k.BulkEditTitle=new k("BulkEditTitle");k.BulkEditContext=new k("BulkEditContext");k.TimelineItemContext=new k("TimelineItemContext");k.TimelineTitle=new k("TimelineTitle");k.TimelineTitleContext=new k("TimelineTitleContext");k.TimelineFilterSubMenu=new k("TimelineFilterSubMenu");k.AccountsContext=new k("AccountsContext");k.SidebarTitle=new k("SidebarTitle");k.PanelTitle=new k("PanelTitle");k.AuxiliaryBarTitle=new k("AuxiliaryBarTitle");k.AuxiliaryBarHeader=new k("AuxiliaryBarHeader");k.TerminalInstanceContext=new k("TerminalInstanceContext");k.TerminalEditorInstanceContext=new k("TerminalEditorInstanceContext");k.TerminalNewDropdownContext=new k("TerminalNewDropdownContext");k.TerminalTabContext=new k("TerminalTabContext");k.TerminalTabEmptyAreaContext=new k("TerminalTabEmptyAreaContext");k.TerminalStickyScrollContext=new k("TerminalStickyScrollContext");k.WebviewContext=new k("WebviewContext");k.InlineCompletionsActions=new k("InlineCompletionsActions");k.InlineEditActions=new k("InlineEditActions");k.NewFile=new k("NewFile");k.MergeInput1Toolbar=new k("MergeToolbar1Toolbar");k.MergeInput2Toolbar=new k("MergeToolbar2Toolbar");k.MergeBaseToolbar=new k("MergeBaseToolbar");k.MergeInputResultToolbar=new k("MergeToolbarResultToolbar");k.InlineSuggestionToolbar=new k("InlineSuggestionToolbar");k.InlineEditToolbar=new k("InlineEditToolbar");k.ChatContext=new k("ChatContext");k.ChatCodeBlock=new k("ChatCodeblock");k.ChatCompareBlock=new k("ChatCompareBlock");k.ChatMessageTitle=new k("ChatMessageTitle");k.ChatExecute=new k("ChatExecute");k.ChatExecuteSecondary=new k("ChatExecuteSecondary");k.ChatInputSide=new k("ChatInputSide");k.AccessibleView=new k("AccessibleView");k.MultiDiffEditorFileToolbar=new k("MultiDiffEditorFileToolbar");k.DiffEditorHunkToolbar=new k("DiffEditorHunkToolbar");k.DiffEditorSelectionToolbar=new k("DiffEditorSelectionToolbar");const zo=ot("menuService");class vd{static for(e){let t=this._all.get(e);return t||(t=new vd(e),this._all.set(e,t)),t}static merge(e){const t=new Set;for(const i of e)i instanceof vd&&t.add(i.id);return t}constructor(e){this.id=e,this.has=t=>t===e}}vd._all=new Map;const mn=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new Jj({merge:vd.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(o){return this._commands.set(o.id,o),this._onDidChangeMenu.fire(vd.for(k.CommandPalette)),Ce(()=>{this._commands.delete(o.id)&&this._onDidChangeMenu.fire(vd.for(k.CommandPalette))})}getCommand(o){return this._commands.get(o)}getCommands(){const o=new Map;return this._commands.forEach((e,t)=>o.set(t,e)),o}appendMenuItem(o,e){let t=this._menuItems.get(o);t||(t=new vs,this._menuItems.set(o,t));const i=t.push(e);return this._onDidChangeMenu.fire(vd.for(o)),Ce(()=>{i(),this._onDidChangeMenu.fire(vd.for(o))})}appendMenuItems(o){const e=new G;for(const{id:t,item:i}of o)e.add(this.appendMenuItem(t,i));return e}getMenuItems(o){let e;return this._menuItems.has(o)?e=[...this._menuItems.get(o)]:e=[],o===k.CommandPalette&&this._appendImplicitItems(e),e}_appendImplicitItems(o){const e=new Set;for(const t of o)Wf(t)&&(e.add(t.command.id),t.alt&&e.add(t.alt.id));this._commands.forEach((t,i)=>{e.has(i)||o.push({command:t})})}};class hm extends Wm{constructor(e,t,i){super(`submenuitem.${e.submenu.id}`,typeof e.title=="string"?e.title:e.title.value,i,"submenu"),this.item=e,this.hideActions=t}}let so=X1=class{static label(e,t){return t!=null&&t.renderShortTitle&&e.shortTitle?typeof e.shortTitle=="string"?e.shortTitle:e.shortTitle.value:typeof e.title=="string"?e.title:e.title.value}constructor(e,t,i,n,s,r,a){var l,d;this.hideActions=n,this.menuKeybinding=s,this._commandService=a,this.id=e.id,this.label=X1.label(e,i),this.tooltip=(d=typeof e.tooltip=="string"?e.tooltip:(l=e.tooltip)===null||l===void 0?void 0:l.value)!==null&&d!==void 0?d:"",this.enabled=!e.precondition||r.contextMatchesRules(e.precondition),this.checked=void 0;let c;if(e.toggled){const h=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=r.contextMatchesRules(h.condition),this.checked&&h.tooltip&&(this.tooltip=typeof h.tooltip=="string"?h.tooltip:h.tooltip.value),this.checked&&Te.isThemeIcon(h.icon)&&(c=h.icon),this.checked&&h.title&&(this.label=typeof h.title=="string"?h.title:h.title.value)}c||(c=Te.isThemeIcon(e.icon)?e.icon:void 0),this.item=e,this.alt=t?new X1(t,void 0,i,n,void 0,r,a):void 0,this._options=i,this.class=c&&Te.asClassName(c)}run(...e){var t,i;let n=[];return!((t=this._options)===null||t===void 0)&&t.arg&&(n=[...n,this._options.arg]),!((i=this._options)===null||i===void 0)&&i.shouldForwardArgs&&(n=[...n,...e]),this._commandService.executeCommand(this.id,...n)}};so=X1=PG([JO(5,Me),JO(6,Qt)],so);class Es{constructor(e){this.desc=e}}function Vt(o){const e=[],t=new o,{f1:i,menu:n,keybinding:s,...r}=t.desc;if(ct.getCommand(r.id))throw new Error(`Cannot register two commands with the same id: ${r.id}`);if(e.push(ct.registerCommand({id:r.id,handler:(a,...l)=>t.run(a,...l),metadata:r.metadata})),Array.isArray(n))for(const a of n)e.push(mn.appendMenuItem(a.id,{command:{...r,precondition:a.precondition===null?void 0:r.precondition},...a}));else n&&e.push(mn.appendMenuItem(n.id,{command:{...r,precondition:n.precondition===null?void 0:r.precondition},...n}));if(i&&(e.push(mn.appendMenuItem(k.CommandPalette,{command:r,when:r.precondition})),e.push(mn.addCommand(r))),Array.isArray(s))for(const a of s)e.push(ks.registerKeybindingRule({...a,id:r.id,when:r.precondition?K.and(r.precondition,a.when):a.when}));else s&&e.push(ks.registerKeybindingRule({...s,id:r.id,when:r.precondition?K.and(r.precondition,s.when):s.when}));return{dispose(){Pt(e)}}}const Bn=ot("telemetryService"),qn=ot("logService");var Rn;(function(o){o[o.Off=0]="Off",o[o.Trace=1]="Trace",o[o.Debug=2]="Debug",o[o.Info=3]="Info",o[o.Warning=4]="Warning",o[o.Error=5]="Error"})(Rn||(Rn={}));const nW=Rn.Info;class sW extends W{constructor(){super(...arguments),this.level=nW,this._onDidChangeLogLevel=this._register(new O),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==Rn.Off&&this.level<=e}}class FG extends sW{constructor(e=nW,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.checkLogLevel(Rn.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.checkLogLevel(Rn.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.checkLogLevel(Rn.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.checkLogLevel(Rn.Warning)&&(this.useColors?console.log("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.checkLogLevel(Rn.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...t):console.error(e,...t))}}class BG extends sW{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const i of this.loggers)i.trace(e,...t)}debug(e,...t){for(const i of this.loggers)i.debug(e,...t)}info(e,...t){for(const i of this.loggers)i.info(e,...t)}warn(e,...t){for(const i of this.loggers)i.warn(e,...t)}error(e,...t){for(const i of this.loggers)i.error(e,...t)}dispose(){for(const e of this.loggers)e.dispose();super.dispose()}}function WG(o){switch(o){case Rn.Trace:return"trace";case Rn.Debug:return"debug";case Rn.Info:return"info";case Rn.Warning:return"warn";case Rn.Error:return"error";case Rn.Off:return"off"}}new de("logLevel",WG(Rn.Info));class rL{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this.metadata=e.metadata}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const t of e){let i=t.kbExpr;this.precondition&&(i?i=K.and(i,this.precondition):i=this.precondition);const n={id:this.id,weight:t.weight,args:t.args,when:i,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};ks.registerKeybindingRule(n)}}ct.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),metadata:this.metadata})}_registerMenuItem(e){mn.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}}class Np extends rL{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i,n){return this._implementations.push({priority:e,name:t,implementation:i,when:n}),this._implementations.sort((s,r)=>r.priority-s.priority),{dispose:()=>{for(let s=0;s{if(a.get(Me).contextMatchesRules(i??void 0))return n(a,r,t)})}runCommand(e,t){return Xi.runEditorCommand(e,t,this.precondition,(i,n,s)=>this.runEditorCommand(i,n,s))}}class ce extends Xi{static convertOptions(e){let t;Array.isArray(e.menuOpts)?t=e.menuOpts:e.menuOpts?t=[e.menuOpts]:t=[];function i(n){return n.menuId||(n.menuId=k.EditorContext),n.title||(n.title=e.label),n.when=K.and(e.precondition,n.when),n}return Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(i)):e.contextMenuOpts&&t.push(i(e.contextMenuOpts)),e.menuOpts=t,e}constructor(e){super(ce.convertOptions(e)),this.label=e.label,this.alias=e.alias}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(Bn).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class rW extends ce{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort((i,n)=>n[0]-i[0]),{dispose:()=>{for(let i=0;i{var r,a;const l=s.get(Me),d=s.get(qn);if(!l.contextMatchesRules((r=this.desc.precondition)!==null&&r!==void 0?r:void 0)){d.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,(a=this.desc.precondition)===null||a===void 0?void 0:a.serialize());return}return this.runEditorCommand(s,n,...t)})}}function Kl(o,e){ct.registerCommand(o,function(t,...i){const n=t.get(Le),[s,r]=i;pt(ke.isUri(s)),pt(F.isIPosition(r));const a=t.get(ai).getModel(s);if(a){const l=F.lift(r);return n.invokeFunction(e,a,l,...i.slice(2))}return t.get(Gs).createModelReference(s).then(l=>new Promise((d,c)=>{try{const h=n.invokeFunction(e,l.object.textEditorModel,F.lift(r),i.slice(2));d(h)}catch(h){c(h)}}).finally(()=>{l.dispose()}))})}function le(o){return Xo.INSTANCE.registerEditorCommand(o),o}function J(o){const e=new o;return Xo.INSTANCE.registerEditorAction(e),e}function aW(o){return Xo.INSTANCE.registerEditorAction(o),o}function HG(o){Xo.INSTANCE.registerEditorAction(o)}function vt(o,e,t){Xo.INSTANCE.registerEditorContribution(o,e,t)}var um;(function(o){function e(r){return Xo.INSTANCE.getEditorCommand(r)}o.getEditorCommand=e;function t(){return Xo.INSTANCE.getEditorActions()}o.getEditorActions=t;function i(){return Xo.INSTANCE.getEditorContributions()}o.getEditorContributions=i;function n(r){return Xo.INSTANCE.getEditorContributions().filter(a=>r.indexOf(a.id)>=0)}o.getSomeEditorContributions=n;function s(){return Xo.INSTANCE.getDiffEditorContributions()}o.getDiffEditorContributions=s})(um||(um={}));const VG={EditorCommonContributions:"editor.contributions"};class Xo{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t,i){this.editorContributions.push({id:e,ctor:t,instantiation:i})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}Xo.INSTANCE=new Xo;hi.add(VG.EditorCommonContributions,Xo.INSTANCE);function I0(o){return o.register(),o}const lW=I0(new Np({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:k.MenubarEditMenu,group:"1_do",title:m({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:k.CommandPalette,group:"",title:m("undo","Undo"),order:1}]}));I0(new oW(lW,{id:"default:undo",precondition:void 0}));const dW=I0(new Np({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:k.MenubarEditMenu,group:"1_do",title:m({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:k.CommandPalette,group:"",title:m("redo","Redo"),order:1}]}));I0(new oW(dW,{id:"default:redo",precondition:void 0}));const zG=I0(new Np({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:k.MenubarSelectionMenu,group:"1_basic",title:m({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:k.CommandPalette,group:"",title:m("selectAll","Select All"),order:1}]})),UG="$initialize";let eF=!1;function RE(o){$h&&(eF||(eF=!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(o.message))}class $G{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.method=i,this.args=n,this.type=0}}class tF{constructor(e,t,i,n){this.vsWorker=e,this.seq=t,this.res=i,this.err=n,this.type=1}}class jG{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.eventName=i,this.arg=n,this.type=2}}class KG{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class qG{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class GG{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const i=String(++this._lastSentReq);return new Promise((n,s)=>{this._pendingReplies[i]={resolve:n,reject:s},this._send(new $G(this._workerId,i,e,t))})}listen(e,t){let i=null;const n=new O({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,n),this._send(new jG(this._workerId,i,e,t))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new qG(this._workerId,i)),i=null}});return n.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;e.err.$isError&&(i=new Error,i.name=e.err.name,i.message=e.err.message,i.stack=e.err.stack),t.reject(i);return}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.method,e.args).then(n=>{this._send(new tF(this._workerId,t,n,void 0))},n=>{n.detail instanceof Error&&(n.detail=DO(n.detail)),this._send(new tF(this._workerId,t,void 0,DO(n)))})}_handleSubscribeEventMessage(e){const t=e.req,i=this._handler.handleEvent(e.eventName,e.arg)(n=>{this._send(new KG(this._workerId,t,n))});this._pendingEvents.set(t,i)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){const t=[];if(e.type===0)for(let i=0;i{this._protocol.handleMessage(c)},c=>{n==null||n(c)})),this._protocol=new GG({sendMessage:(c,h)=>{this._worker.postMessage(c,h)},handleMessage:(c,h)=>{if(typeof i[c]!="function")return Promise.reject(new Error("Missing method "+c+" on main thread host."));try{return Promise.resolve(i[c].apply(i,h))}catch(u){return Promise.reject(u)}},handleEvent:(c,h)=>{if(hW(c)){const u=i[c].call(i,h);if(typeof u!="function")throw new Error(`Missing dynamic event ${c} on main thread host.`);return u}if(cW(c)){const u=i[c];if(typeof u!="function")throw new Error(`Missing event ${c} on main thread host.`);return u}throw new Error(`Malformed event name ${c}`)}}),this._protocol.setWorkerId(this._worker.getId());let s=null;const r=globalThis.require;typeof r<"u"&&typeof r.getConfig=="function"?s=r.getConfig():typeof globalThis.requirejs<"u"&&(s=globalThis.requirejs.s.contexts._.config);const a=KR(i);this._onModuleLoaded=this._protocol.sendMessage(UG,[this._worker.getId(),JSON.parse(JSON.stringify(s)),t,a]);const l=(c,h)=>this._request(c,h),d=(c,h)=>this._protocol.listen(c,h);this._lazyProxy=new Promise((c,h)=>{n=h,this._onModuleLoaded.then(u=>{c(YG(u,l,d))},u=>{h(u),this._onError("Worker failed to load "+t,u)})})}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise((i,n)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(e,t).then(i,n)},n)})}_onError(e,t){console.error(e),console.info(t)}}function cW(o){return o[0]==="o"&&o[1]==="n"&&ol(o.charCodeAt(2))}function hW(o){return/^onDynamic/.test(o)&&ol(o.charCodeAt(9))}function YG(o,e,t){const i=r=>function(){const a=Array.prototype.slice.call(arguments,0);return e(r,a)},n=r=>function(a){return t(r,a)},s={};for(const r of o){if(hW(r)){s[r]=n(r);continue}if(cW(r)){s[r]=t(r,void 0);continue}s[r]=i(r)}return s}function lc(o,e){var t;const i=globalThis.MonacoEnvironment;if(i!=null&&i.createTrustedTypesPolicy)try{return i.createTrustedTypesPolicy(o,e)}catch(n){ze(n);return}try{return(t=Mt.trustedTypes)===null||t===void 0?void 0:t.createPolicy(o,e)}catch(n){ze(n);return}}const iF=lc("defaultWorkerFactory",{createScriptURL:o=>o});function QG(o){const e=globalThis.MonacoEnvironment;if(e){if(typeof e.getWorker=="function")return e.getWorker("workerMain.js",o);if(typeof e.getWorkerUrl=="function"){const t=e.getWorkerUrl("workerMain.js",o);return new Worker(iF?iF.createScriptURL(t):t,{name:o})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function XG(o){return typeof o.then=="function"}class JG extends W{constructor(e,t,i,n,s){super(),this.id=t,this.label=i;const r=QG(i);XG(r)?this.worker=r:this.worker=Promise.resolve(r),this.postMessage(e,[]),this.worker.then(a=>{a.onmessage=function(l){n(l.data)},a.onmessageerror=s,typeof a.addEventListener=="function"&&a.addEventListener("error",s)}),this._register(Ce(()=>{var a;(a=this.worker)===null||a===void 0||a.then(l=>{l.onmessage=null,l.onmessageerror=null,l.removeEventListener("error",s),l.terminate()}),this.worker=null}))}getId(){return this.id}postMessage(e,t){var i;(i=this.worker)===null||i===void 0||i.then(n=>{try{n.postMessage(e,t)}catch(s){ze(s),ze(new Error(`FAILED to post message to '${this.label}'-worker`,{cause:s}))}})}}class aL{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,i){const n=++aL.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new JG(e,n,this._label||"anonymous"+n,t,s=>{RE(s),this._webWorkerFailedBeforeError=s,i(s)})}}aL.LAST_WORKER_ID=0;var Hi;(function(o){o[o.None=0]="None",o[o.Indent=1]="Indent",o[o.IndentOutdent=2]="IndentOutdent",o[o.Outdent=3]="Outdent"})(Hi||(Hi={}));class ED{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;tnew ED(t)):e.brackets?this._autoClosingPairs=e.brackets.map(t=>new ED({open:t[0],close:t[1]})):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new ED({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:Hm.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:Hm.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}Hm.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=`;:.,=}])> + `;Hm.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS=`'"\`;:.,=}])> + `;function Wu(o,e){const t=o.getCount(),i=o.findTokenIndexAtOffset(e),n=o.getLanguageId(i);let s=i;for(;s+10&&o.getLanguageId(r-1)===n;)r--;return new tZ(o,n,r,s+1,o.getStartOffset(r),o.getEndOffset(s))}class tZ{constructor(e,t,i,n,s,r){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=n,this.firstCharOffset=s,this._lastCharOffset=r,this.languageIdCodec=e.languageIdCodec}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getLineLength(){return this._lastCharOffset-this.firstCharOffset}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}toIViewLineTokens(){return this._actual.sliceAndInflate(this.firstCharOffset,this._lastCharOffset,0)}}function Xa(o){return(o&3)!==0}const nF=typeof Buffer<"u";let ND;class lL{static wrap(e){return nF&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new lL(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return nF?this.buffer.toString():(ND||(ND=new TextDecoder),ND.decode(this.buffer))}}function iZ(o,e){return o[e+0]<<0>>>0|o[e+1]<<8>>>0}function nZ(o,e,t){o[t+0]=e&255,e=e>>>8,o[t+1]=e&255}function ia(o,e){return o[e]*2**24+o[e+1]*2**16+o[e+2]*2**8+o[e+3]}function na(o,e,t){o[t+3]=e,e=e>>>8,o[t+2]=e,e=e>>>8,o[t+1]=e,e=e>>>8,o[t]=e}function sF(o,e){return o[e]}function oF(o,e,t){o[t]=e}let TD;function uW(){return TD||(TD=new TextDecoder("UTF-16LE")),TD}let MD;function sZ(){return MD||(MD=new TextDecoder("UTF-16BE")),MD}let RD;function gW(){return RD||(RD=Q7()?uW():sZ()),RD}function oZ(o,e,t){const i=new Uint16Array(o.buffer,e,t);return t>0&&(i[0]===65279||i[0]===65534)?rZ(o,e,t):uW().decode(i)}function rZ(o,e,t){const i=[];let n=0;for(let s=0;s=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=e;return}for(let i=0;i[r[0].toLowerCase(),r[1].toLowerCase()]);const t=[];for(let r=0;r{const[l,d]=r,[c,h]=a;return l===c||l===h||d===c||d===h},n=(r,a)=>{const l=Math.min(r,a),d=Math.max(r,a);for(let c=0;c0&&s.push({open:a,close:l})}return s}class lZ{constructor(e,t){this._richEditBracketsBrand=void 0;const i=aZ(t);this.brackets=i.map((n,s)=>new Qw(e,s,n.open,n.close,dZ(n.open,n.close,i,s),cZ(n.open,n.close,i,s))),this.forwardRegex=hZ(this.brackets),this.reversedRegex=uZ(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const n of this.brackets){for(const s of n.open)this.textIsBracket[s]=n,this.textIsOpenBracket[s]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,s.length);for(const s of n.close)this.textIsBracket[s]=n,this.textIsOpenBracket[s]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,s.length)}}}function fW(o,e,t,i){for(let n=0,s=e.length;n=0&&i.push(a);for(const a of r.close)a.indexOf(o)>=0&&i.push(a)}}function mW(o,e){return o.length-e.length}function dL(o){if(o.length<=1)return o;const e=[],t=new Set;for(const i of o)t.has(i)||(e.push(i),t.add(i));return e}function dZ(o,e,t,i){let n=[];n=n.concat(o),n=n.concat(e);for(let s=0,r=n.length;s=0;r--)n[s++]=i.charCodeAt(r);return gW().decode(n)}let e=null,t=null;return function(n){return e!==n&&(e=n,t=o(e)),t}}();class xr{static _findPrevBracketInText(e,t,i,n){const s=i.match(e);if(!s)return null;const r=i.length-(s.index||0),a=s[0].length,l=n+r;return new x(t,l-a+1,t,l+1)}static findPrevBracketInRange(e,t,i,n,s){const a=yA(i).substring(i.length-s,i.length-n);return this._findPrevBracketInText(e,t,a,n)}static findNextBracketInText(e,t,i,n){const s=i.match(e);if(!s)return null;const r=s.index||0,a=s[0].length;if(a===0)return null;const l=n+r;return new x(t,l+1,t,l+1+a)}static findNextBracketInRange(e,t,i,n,s){const r=i.substring(n,s);return this.findNextBracketInText(e,t,r,n)}}class fZ{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const i of t.close){const n=i.charAt(i.length-1);e.push(n)}return Gd(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;const n=t.findTokenIndexAtOffset(i-1);if(Xa(t.getStandardTokenType(n)))return null;const s=this._richEditBrackets.reversedRegex,r=t.getLineContent().substring(0,i-1)+e,a=xr.findPrevBracketInRange(s,1,r,0,r.length);if(!a)return null;const l=r.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[l])return null;const c=t.getActualLineContentBefore(a.startColumn-1);return/^\s*$/.test(c)?{matchOpenBracket:l}:null}}function IC(o){return o.global&&(o.lastIndex=0),!0}class mZ{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&IC(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&IC(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&IC(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&IC(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class Hf{constructor(e){e=e||{},e.brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(t=>{const i=Hf._createOpenBracketRegExp(t[0]),n=Hf._createCloseBracketRegExp(t[1]);i&&n&&this._brackets.push({open:t[0],openRegExp:i,close:t[1],closeRegExp:n})}),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,i,n){if(e>=3)for(let s=0,r=this._regExpRules.length;sd.reg?(d.reg.lastIndex=0,d.reg.test(d.text)):!0))return a.action}if(e>=2&&i.length>0&&n.length>0)for(let s=0,r=this._brackets.length;s=2&&i.length>0){for(let s=0,r=this._brackets.length;s"u"?t:s}function _Z(o){return o.replace(/[\[\]]/g,"")}const si=ot("languageService");class rl{constructor(e,t=[],i=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=i}}const vW=[];function ht(o,e,t){e instanceof rl||(e=new rl(e,[],!!t)),vW.push([o,e])}function aF(){return vW}const wi=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"}),cL={JSONContribution:"base.contributions.json"};function vZ(o){return o.length>0&&o.charAt(o.length-1)==="#"?o.substring(0,o.length-1):o}class bZ{constructor(){this._onDidChangeSchema=new O,this.schemasById={}}registerSchema(e,t){this.schemasById[vZ(e)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}}const CZ=new bZ;hi.add(cL.JSONContribution,CZ);const Ba={Configuration:"base.contributions.configuration"},i_="vscode://schemas/settings/resourceLanguage",lF=hi.as(cL.JSONContribution);class wZ{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new O,this._onDidUpdateConfiguration=new O,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:m("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={},lF.registerSchema(i_,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const i=new Set;this.doRegisterConfigurations(e,t,i),lF.registerSchema(i_,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){var i;const n=[];for(const{overrides:s,source:r}of e)for(const a in s)if(t.add(a),yh.test(a)){const l=this.configurationDefaultsOverrides.get(a),d=(i=l==null?void 0:l.valuesSources)!==null&&i!==void 0?i:new Map;if(r)for(const g of Object.keys(s[a]))d.set(g,r);const c={...(l==null?void 0:l.value)||{},...s[a]};this.configurationDefaultsOverrides.set(a,{source:r,value:c,valuesSources:d});const h=_Z(a),u={type:"object",default:c,description:m("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",h),$ref:i_,defaultDefaultValue:c,source:ys(r)?void 0:r,defaultValueSource:r};n.push(...Xw(a)),this.configurationProperties[a]=u,this.defaultLanguageConfigurationOverridesNode.properties[a]=u}else{this.configurationDefaultsOverrides.set(a,{value:s[a],source:r});const l=this.configurationProperties[a];l&&(this.updatePropertyDefaultValue(a,l),this.updateSchema(a,l))}this.doRegisterOverrideIdentifiers(n)}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,i){e.forEach(n=>{this.validateAndRegisterProperties(n,t,n.extensionInfo,n.restrictedProperties,void 0,i),this.configurationContributors.push(n),this.registerJSONConfiguration(n)})}validateAndRegisterProperties(e,t=!0,i,n,s=3,r){var a;s=Do(e.scope)?s:e.scope;const l=e.properties;if(l)for(const c in l){const h=l[c];if(t&&LZ(c,h)){delete l[c];continue}if(h.source=i,h.defaultDefaultValue=l[c].default,this.updatePropertyDefaultValue(c,h),yh.test(c)?h.scope=void 0:(h.scope=Do(h.scope)?s:h.scope,h.restricted=Do(h.restricted)?!!(n!=null&&n.includes(c)):h.restricted),l[c].hasOwnProperty("included")&&!l[c].included){this.excludedConfigurationProperties[c]=l[c],delete l[c];continue}else this.configurationProperties[c]=l[c],!((a=l[c].policy)===null||a===void 0)&&a.name&&this.policyConfigurations.set(l[c].policy.name,c);!l[c].deprecationMessage&&l[c].markdownDeprecationMessage&&(l[c].deprecationMessage=l[c].markdownDeprecationMessage),r.add(c)}const d=e.allOf;if(d)for(const c of d)this.validateAndRegisterProperties(c,t,i,n,s,r)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=i=>{const n=i.properties;if(n)for(const r in n)this.updateSchema(r,n[r]);const s=i.allOf;s==null||s.forEach(t)};t(e)}updateSchema(e,t){switch(t.scope){case 1:break;case 2:break;case 6:break;case 3:break;case 4:break;case 5:this.resourceLanguageSettingsSchema.properties[e]=t;break}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,i={type:"object",description:m("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:m("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:i_};this.updatePropertyDefaultValue(t,i)}}registerOverridePropertyPatternKey(){m("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),m("overrideSettings.errorMessage","This setting does not support per-language configuration."),this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const i=this.configurationDefaultsOverrides.get(e);let n=i==null?void 0:i.value,s=i==null?void 0:i.source;Hs(n)&&(n=t.defaultDefaultValue,s=void 0),Hs(n)&&(n=yZ(t.type)),t.default=n,t.defaultValueSource=s}}const bW="\\[([^\\]]+)\\]",dF=new RegExp(bW,"g"),SZ=`^(${bW})+$`,yh=new RegExp(SZ);function Xw(o){const e=[];if(yh.test(o)){let t=dF.exec(o);for(;t!=null&&t.length;){const i=t[1].trim();i&&e.push(i),t=dF.exec(o)}}return Gd(e)}function yZ(o){switch(Array.isArray(o)?o[0]:o){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}const J1=new wZ;hi.add(Ba.Configuration,J1);function LZ(o,e){var t,i,n,s;return o.trim()?yh.test(o)?m("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",o):J1.getConfigurationProperties()[o]!==void 0?m("config.property.duplicate","Cannot register '{0}'. This property is already registered.",o):!((t=e.policy)===null||t===void 0)&&t.name&&J1.getPolicyConfigurations().get((i=e.policy)===null||i===void 0?void 0:i.name)!==void 0?m("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",o,(n=e.policy)===null||n===void 0?void 0:n.name,J1.getPolicyConfigurations().get((s=e.policy)===null||s===void 0?void 0:s.name)):null:m("config.property.empty","Cannot register an empty property")}const xZ={ModesRegistry:"editor.modesRegistry"};class DZ{constructor(){this._onDidChangeLanguages=new O,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,i=this._languages.length;t{const l=new Set;return{info:new EZ(this,a,l),closing:l}}),s=new MO(a=>{const l=new Set,d=new Set;return{info:new NZ(this,a,l,d),opening:l,openingColorized:d}});for(const[a,l]of i){const d=n.get(a),c=s.get(l);d.closing.add(c.info),c.opening.add(d.info)}const r=t.colorizedBracketPairs?cF(t.colorizedBracketPairs):i.filter(a=>!(a[0]==="<"&&a[1]===">"));for(const[a,l]of r){const d=n.get(a),c=s.get(l);d.closing.add(c.info),c.openingColorized.add(d.info),c.opening.add(d.info)}this._openingBrackets=new Map([...n.cachedValues].map(([a,l])=>[a,l.info])),this._closingBrackets=new Map([...s.cachedValues].map(([a,l])=>[a,l.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){const t=Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]);return E0(t,e)}}function cF(o){return o.filter(([e,t])=>e!==""&&t!=="")}class CW{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class EZ extends CW{constructor(e,t,i){super(e,t),this.openedBrackets=i,this.isOpeningBracket=!0}}class NZ extends CW{constructor(e,t,i,n){super(e,t),this.openingBrackets=i,this.openingColorizedBrackets=n,this.isOpeningBracket=!1}closes(e){return e.config!==this.config?!1:this.openingBrackets.has(e)}closesColorized(e){return e.config!==this.config?!1:this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var TZ=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},hF=function(o,e){return function(t,i){e(t,i,o)}};class AD{constructor(e){this.languageId=e}affects(e){return this.languageId?this.languageId===e:!0}}const $t=ot("languageConfigurationService");let PE=class extends W{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new PZ),this.onDidChangeEmitter=this._register(new O),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const i=new Set(Object.values(OE));this._register(this.configurationService.onDidChangeConfiguration(n=>{const s=n.change.keys.some(a=>i.has(a)),r=n.change.overrides.filter(([a,l])=>l.some(d=>i.has(d))).map(([a])=>a);if(s)this.configurations.clear(),this.onDidChangeEmitter.fire(new AD(void 0));else for(const a of r)this.languageService.isRegisteredLanguageId(a)&&(this.configurations.delete(a),this.onDidChangeEmitter.fire(new AD(a)))})),this._register(this._registry.onDidChange(n=>{this.configurations.delete(n.languageId),this.onDidChangeEmitter.fire(new AD(n.languageId))}))}register(e,t,i){return this._registry.register(e,t,i)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=MZ(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};PE=TZ([hF(0,Je),hF(1,si)],PE);function MZ(o,e,t,i){let n=e.getLanguageConfiguration(o);if(!n){if(!i.isRegisteredLanguageId(o))return new gm(o,{});n=new gm(o,{})}const s=RZ(n.languageId,t),r=SW([n.underlyingConfig,s]);return new gm(n.languageId,r)}const OE={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function RZ(o,e){const t=e.getValue(OE.brackets,{overrideIdentifier:o}),i=e.getValue(OE.colorizedBracketPairs,{overrideIdentifier:o});return{brackets:uF(t),colorizedBracketPairs:uF(i)}}function uF(o){if(Array.isArray(o))return o.map(e=>{if(!(!Array.isArray(e)||e.length!==2))return[e[0],e[1]]}).filter(e=>!!e)}function wW(o,e,t){const i=o.getLineContent(e);let n=Bt(i);return n.length>t-1&&(n=n.substring(0,t-1)),n}class AZ{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const i=new gF(e,t,++this._order);return this._entries.push(i),this._resolved=null,Ce(()=>{for(let n=0;ne.configuration)))}}function SW(o){let e={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(const t of o)e={comments:t.comments||e.comments,brackets:t.brackets||e.brackets,wordPattern:t.wordPattern||e.wordPattern,indentationRules:t.indentationRules||e.indentationRules,onEnterRules:t.onEnterRules||e.onEnterRules,autoClosingPairs:t.autoClosingPairs||e.autoClosingPairs,surroundingPairs:t.surroundingPairs||e.surroundingPairs,autoCloseBefore:t.autoCloseBefore||e.autoCloseBefore,folding:t.folding||e.folding,colorizedBracketPairs:t.colorizedBracketPairs||e.colorizedBracketPairs,__electricCharacterSupport:t.__electricCharacterSupport||e.__electricCharacterSupport};return e}class gF{constructor(e,t,i){this.configuration=e,this.priority=t,this.order=i}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class fF{constructor(e){this.languageId=e}}class PZ extends W{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event,this._register(this.register(Ao,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,i=0){let n=this._entries.get(e);n||(n=new AZ(e),this._entries.set(e,n));const s=n.register(t,i);return this._onDidChange.fire(new fF(e)),Ce(()=>{s.dispose(),this._onDidChange.fire(new fF(e))})}getLanguageConfiguration(e){const t=this._entries.get(e);return(t==null?void 0:t.getResolvedConfiguration())||null}}class gm{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new Hf(this.underlyingConfig):null,this.comments=gm._handleComments(this.underlyingConfig),this.characterPair=new Hm(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||ZR,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new mZ(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new IZ(e,this.underlyingConfig)}getWordDefinition(){return YR(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new lZ(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new fZ(this.brackets)),this._electricCharacter}onEnter(e,t,i,n){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,n):null}getAutoClosingPairs(){return new eZ(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){const[n,s]=t.blockComment;i.blockCommentStartToken=n,i.blockCommentEndToken=s}return i}}ht($t,PE,1);class yc{constructor(e,t,i,n){this.originalStart=e,this.originalLength=t,this.modifiedStart=i,this.modifiedLength=n}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}class mF{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let i=0,n=e.length;i0||this.m_modifiedCount>0)&&this.m_changes.push(new yc(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(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),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}}class hl{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;const[n,s,r]=hl._getElements(e),[a,l,d]=hl._getElements(t);this._hasStrings=r&&d,this._originalStringElements=n,this._originalElementsOrHash=s,this._modifiedStringElements=a,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const t=e.getElements();if(hl._isStringArray(t)){const i=new Int32Array(t.length);for(let n=0,s=t.length;n=e&&n>=i&&this.ElementsAreEqual(t,n);)t--,n--;if(e>t||i>n){let h;return i<=n?(cf.Assert(e===t+1,"originalStart should only be one more than originalEnd"),h=[new yc(e,0,i,n-i+1)]):e<=t?(cf.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),h=[new yc(e,t-e+1,i,0)]):(cf.Assert(e===t+1,"originalStart should only be one more than originalEnd"),cf.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),h=[]),h}const r=[0],a=[0],l=this.ComputeRecursionPoint(e,t,i,n,r,a,s),d=r[0],c=a[0];if(l!==null)return l;if(!s[0]){const h=this.ComputeDiffRecursive(e,d,i,c,s);let u=[];return s[0]?u=[new yc(d+1,t-(d+1)+1,c+1,n-(c+1)+1)]:u=this.ComputeDiffRecursive(d+1,t,c+1,n,s),this.ConcatenateChanges(h,u)}return[new yc(e,t-e+1,i,n-i+1)]}WALKTRACE(e,t,i,n,s,r,a,l,d,c,h,u,g,f,p,_,v,b){let C=null,w=null,S=new pF,L=t,D=i,I=g[0]-_[0]-n,T=-1073741824,V=this.m_forwardHistory.length-1;do{const P=I+e;P===L||P=0&&(d=this.m_forwardHistory[V],e=d[0],L=1,D=d.length-1)}while(--V>=-1);if(C=S.getReverseChanges(),b[0]){let P=g[0]+1,A=_[0]+1;if(C!==null&&C.length>0){const B=C[C.length-1];P=Math.max(P,B.getOriginalEnd()),A=Math.max(A,B.getModifiedEnd())}w=[new yc(P,u-P+1,A,p-A+1)]}else{S=new pF,L=r,D=a,I=g[0]-_[0]-l,T=1073741824,V=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const P=I+s;P===L||P=c[P+1]?(h=c[P+1]-1,f=h-I-l,h>T&&S.MarkNextChange(),T=h+1,S.AddOriginalElement(h+1,f+1),I=P+1-s):(h=c[P-1],f=h-I-l,h>T&&S.MarkNextChange(),T=h,S.AddModifiedElement(h+1,f+1),I=P-1-s),V>=0&&(c=this.m_reverseHistory[V],s=c[0],L=1,D=c.length-1)}while(--V>=-1);w=S.getChanges()}return this.ConcatenateChanges(C,w)}ComputeRecursionPoint(e,t,i,n,s,r,a){let l=0,d=0,c=0,h=0,u=0,g=0;e--,i--,s[0]=0,r[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const f=t-e+(n-i),p=f+1,_=new Int32Array(p),v=new Int32Array(p),b=n-i,C=t-e,w=e-i,S=t-n,D=(C-b)%2===0;_[b]=e,v[C]=t,a[0]=!1;for(let I=1;I<=f/2+1;I++){let T=0,V=0;c=this.ClipDiagonalBound(b-I,I,b,p),h=this.ClipDiagonalBound(b+I,I,b,p);for(let A=c;A<=h;A+=2){A===c||AT+V&&(T=l,V=d),!D&&Math.abs(A-C)<=I-1&&l>=v[A])return s[0]=l,r[0]=d,B<=v[A]&&1447>0&&I<=1448?this.WALKTRACE(b,c,h,w,C,u,g,S,_,v,l,t,s,d,n,r,D,a):null}const P=(T-e+(V-i)-I)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(T,P))return a[0]=!0,s[0]=T,r[0]=V,P>0&&1447>0&&I<=1448?this.WALKTRACE(b,c,h,w,C,u,g,S,_,v,l,t,s,d,n,r,D,a):(e++,i++,[new yc(e,t-e+1,i,n-i+1)]);u=this.ClipDiagonalBound(C-I,I,C,p),g=this.ClipDiagonalBound(C+I,I,C,p);for(let A=u;A<=g;A+=2){A===u||A=v[A+1]?l=v[A+1]-1:l=v[A-1],d=l-(A-C)-S;const B=l;for(;l>e&&d>i&&this.ElementsAreEqual(l,d);)l--,d--;if(v[A]=l,D&&Math.abs(A-b)<=I&&l<=_[A])return s[0]=l,r[0]=d,B>=_[A]&&1447>0&&I<=1448?this.WALKTRACE(b,c,h,w,C,u,g,S,_,v,l,t,s,d,n,r,D,a):null}if(I<=1447){let A=new Int32Array(h-c+2);A[0]=b-c+1,hf.Copy2(_,c,A,1,h-c+1),this.m_forwardHistory.push(A),A=new Int32Array(g-u+2),A[0]=C-u+1,hf.Copy2(v,u,A,1,g-u+1),this.m_reverseHistory.push(A)}}return this.WALKTRACE(b,c,h,w,C,u,g,S,_,v,l,t,s,d,n,r,D,a)}PrettifyChanges(e){for(let t=0;t0,a=i.modifiedLength>0;for(;i.originalStart+i.originalLength=0;t--){const i=e[t];let n=0,s=0;if(t>0){const h=e[t-1];n=h.originalStart+h.originalLength,s=h.modifiedStart+h.modifiedLength}const r=i.originalLength>0,a=i.modifiedLength>0;let l=0,d=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let h=1;;h++){const u=i.originalStart-h,g=i.modifiedStart-h;if(ud&&(d=p,l=h)}i.originalStart-=l,i.modifiedStart-=l;const c=[null];if(t>0&&this.ChangesOverlap(e[t-1],e[t],c)){e[t-1]=c[0],e.splice(t,1),t++;continue}}if(this._hasStrings)for(let t=1,i=e.length;t0&&g>l&&(l=g,d=h,c=u)}return l>0?[d,c]:null}_contiguousSequenceScore(e,t,i){let n=0;for(let s=0;s=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,n){const s=this._OriginalRegionIsBoundary(e,t)?1:0,r=this._ModifiedRegionIsBoundary(i,n)?1:0;return s+r}ConcatenateChanges(e,t){const i=[];if(e.length===0||t.length===0)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){const n=new Array(e.length+t.length-1);return hf.Copy(e,0,n,0,e.length-1),n[e.length-1]=i[0],hf.Copy(t,1,n,e.length,t.length-1),n}else{const n=new Array(e.length+t.length);return hf.Copy(e,0,n,0,e.length),hf.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,i){if(cf.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),cf.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const n=e.originalStart;let s=e.originalLength;const r=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new yc(n,s,r,a),!0}else return i[0]=null,!1}ClipDiagonalBound(e,t,i,n){if(e>=0&&e255?255:o|0}function uf(o){return o<0?0:o>4294967295?4294967295:o|0}class FZ{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=uf(e);const i=this.values,n=this.prefixSum,s=t.length;return s===0?!1:(this.values=new Uint32Array(i.length+s),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+s),this.values.set(t,e),e-1=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=uf(e),t=uf(t),this.values[e]===t?!1:(this.values[e]=t,e-1=i.length)return!1;const s=i.length-e;return t>=s&&(t=s),t===0?!1:(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=uf(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;t===0&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,n=0,s=0,r=0;for(;t<=i;)if(n=t+(i-t)/2|0,s=this.prefixSum[n],r=s-this.values[n],e=s)t=n+1;else break;return new yW(n,e-r)}}class BZ{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return this._ensureValid(),e===0?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const t=this._indexBySum[e],i=t>0?this._prefixSum[t-1]:0;return new yW(t,e-i)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=By(this._values,e,t),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._values.length;e0?this._prefixSum[e-1]:0;this._prefixSum[e]=n+i;for(let s=0;s=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class eS{constructor(){this._actual=new Mp(0)}add(e){this._actual.set(e,1)}has(e){return this._actual.get(e)===1}clear(){return this._actual.clear()}}class HZ{constructor(e,t,i){const n=new Uint8Array(e*t);for(let s=0,r=e*t;st&&(t=l),a>i&&(i=a),d>i&&(i=d)}t++,i++;const n=new HZ(i,t,0);for(let s=0,r=e.length;s=this._maxCharCode?0:this._states.get(e,t)}}let PD=null;function zZ(){return PD===null&&(PD=new VZ([[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]])),PD}let n_=null;function UZ(){if(n_===null){n_=new Mp(0);const o=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let t=0;tn);if(n>0){const a=t.charCodeAt(n-1),l=t.charCodeAt(r);(a===40&&l===41||a===91&&l===93||a===123&&l===125)&&r--}return{range:{startLineNumber:i,startColumn:n+1,endLineNumber:i,endColumn:r+2},url:t.substring(n,r+1)}}static computeLinks(e,t=zZ()){const i=UZ(),n=[];for(let s=1,r=e.getLineCount();s<=r;s++){const a=e.getLineContent(s),l=a.length;let d=0,c=0,h=0,u=1,g=!1,f=!1,p=!1,_=!1;for(;d=0?(n+=i?1:-1,n<0?n=e.length-1:n%=e.length,e[n]):null}}FE.INSTANCE=new FE;var _F,vF;class jZ{constructor(e,t){this.uri=e,this.value=t}}function KZ(o){return Array.isArray(o)}class Ni{constructor(e,t){if(this[_F]="ResourceMap",e instanceof Ni)this.map=new Map(e.map),this.toKey=t??Ni.defaultToKey;else if(KZ(e)){this.map=new Map,this.toKey=t??Ni.defaultToKey;for(const[i,n]of e)this.set(i,n)}else this.map=new Map,this.toKey=e??Ni.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new jZ(e,t)),this}get(e){var t;return(t=this.map.get(this.toKey(e)))===null||t===void 0?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){typeof t<"u"&&(e=e.bind(t));for(const[i,n]of this.map)e(n.value,n.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(_F=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}Ni.defaultToKey=o=>o.toString();class qZ{constructor(){this[vF]="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 e;return(e=this._head)===null||e===void 0?void 0:e.value}get last(){var e;return(e=this._tail)===null||e===void 0?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const i=this._map.get(e);if(i)return t!==0&&this.touch(i,t),i.value}set(e,t,i=0){let n=this._map.get(e);if(n)n.value=t,i!==0&&this.touch(n,i);else{switch(n={key:e,value:t,next:void 0,previous:void 0},i){case 0:this.addItemLast(n);break;case 1:this.addItemFirst(n);break;case 2:this.addItemLast(n);break;default:this.addItemLast(n);break}this._map.set(e,n),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const i=this._state;let n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:i.key,done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return n}values(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:i.value,done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return n}entries(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:[i.key,i.value],done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return n}[(vF=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._tail,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.previous,i--;this._tail=t,this._size=i,t&&(t.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(t!==1&&t!==2)){if(t===1){if(e===this._head)return;const i=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(i.previous=n,n.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===2){if(e===this._tail)return;const i=e.next,n=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=n,n.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((t,i)=>{e.push([i,t])}),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}}class GZ extends qZ{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class ql extends GZ{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class ZZ{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,i]of e)this.set(t,i)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return t===void 0?!1:(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class LA{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){const i=this.map.get(e);i&&(i.delete(t),i.size===0&&this.map.delete(e))}forEach(e,t){const i=this.map.get(e);i&&i.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}class YZ extends Mp{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let i=0,n=e.length;it)break;i=n}return i}findNextIntlWordAtOrAfterOffset(e,t){for(const i of this._getIntlSegmenterWordsOnLine(e))if(!(i.index=0;let t=null;try{t=w9(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch{return null}if(!t)return null;let i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new XZ(t,this.wordSeparators?dr(this.wordSeparators,[]):null,i?this.searchString:null)}}function tY(o){if(!o||o.length===0)return!1;for(let e=0,t=o.length;e=t)break;const n=o.charCodeAt(e);if(n===110||n===114||n===87)return!0}}return!1}function Iu(o,e,t){if(!t)return new Yv(o,null);const i=[];for(let n=0,s=e.length;n>0);t[s]>=e?n=s-1:t[s+1]>=e?(i=s,n=s):i=s+1}return i+1}}class EC{static findMatches(e,t,i,n,s){const r=t.parseSearchRequest();return r?r.regex.multiline?this._doFindMatchesMultiline(e,i,new Vf(r.wordSeparators,r.regex),n,s):this._doFindMatchesLineByLine(e,i,r,n,s):[]}static _getMultilineMatchRange(e,t,i,n,s,r){let a,l=0;n?(l=n.findLineFeedCountBeforeOffset(s),a=t+s+l):a=t+s;let d;if(n){const g=n.findLineFeedCountBeforeOffset(s+r.length)-l;d=a+r.length+g}else d=a+r.length;const c=e.getPositionAt(a),h=e.getPositionAt(d);return new x(c.lineNumber,c.column,h.lineNumber,h.column)}static _doFindMatchesMultiline(e,t,i,n,s){const r=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),l=e.getEOL()===`\r +`?new CF(a):null,d=[];let c=0,h;for(i.reset(0);h=i.next(a);)if(d[c++]=Iu(this._getMultilineMatchRange(e,r,a,l,h.index,h[0]),h,n),c>=s)return d;return d}static _doFindMatchesLineByLine(e,t,i,n,s){const r=[];let a=0;if(t.startLineNumber===t.endLineNumber){const d=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return a=this._findMatchesInLine(i,d,t.startLineNumber,t.startColumn-1,a,r,n,s),r}const l=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);a=this._findMatchesInLine(i,l,t.startLineNumber,t.startColumn-1,a,r,n,s);for(let d=t.startLineNumber+1;d=l))return s;return s}const c=new Vf(e.wordSeparators,e.regex);let h;c.reset(0);do if(h=c.next(t),h&&(r[s++]=Iu(new x(i,h.index+1+n,i,h.index+1+h[0].length+n),h,a),s>=l))return s;while(h);return s}static findNextMatch(e,t,i,n){const s=t.parseSearchRequest();if(!s)return null;const r=new Vf(s.wordSeparators,s.regex);return s.regex.multiline?this._doFindNextMatchMultiline(e,i,r,n):this._doFindNextMatchLineByLine(e,i,r,n)}static _doFindNextMatchMultiline(e,t,i,n){const s=new F(t.lineNumber,1),r=e.getOffsetAt(s),a=e.getLineCount(),l=e.getValueInRange(new x(s.lineNumber,s.column,a,e.getLineMaxColumn(a)),1),d=e.getEOL()===`\r +`?new CF(l):null;i.reset(t.column-1);const c=i.next(l);return c?Iu(this._getMultilineMatchRange(e,r,l,d,c.index,c[0]),c,n):t.lineNumber!==1||t.column!==1?this._doFindNextMatchMultiline(e,new F(1,1),i,n):null}static _doFindNextMatchLineByLine(e,t,i,n){const s=e.getLineCount(),r=t.lineNumber,a=e.getLineContent(r),l=this._findFirstMatchInLine(i,a,r,t.column,n);if(l)return l;for(let d=1;d<=s;d++){const c=(r+d-1)%s,h=e.getLineContent(c+1),u=this._findFirstMatchInLine(i,h,c+1,1,n);if(u)return u}return null}static _findFirstMatchInLine(e,t,i,n,s){e.reset(n-1);const r=e.next(t);return r?Iu(new x(i,r.index+1,i,r.index+1+r[0].length),r,s):null}static findPreviousMatch(e,t,i,n){const s=t.parseSearchRequest();if(!s)return null;const r=new Vf(s.wordSeparators,s.regex);return s.regex.multiline?this._doFindPreviousMatchMultiline(e,i,r,n):this._doFindPreviousMatchLineByLine(e,i,r,n)}static _doFindPreviousMatchMultiline(e,t,i,n){const s=this._doFindMatchesMultiline(e,new x(1,1,t.lineNumber,t.column),i,n,10*eY);if(s.length>0)return s[s.length-1];const r=e.getLineCount();return t.lineNumber!==r||t.column!==e.getLineMaxColumn(r)?this._doFindPreviousMatchMultiline(e,new F(r,e.getLineMaxColumn(r)),i,n):null}static _doFindPreviousMatchLineByLine(e,t,i,n){const s=e.getLineCount(),r=t.lineNumber,a=e.getLineContent(r).substring(0,t.column-1),l=this._findLastMatchInLine(i,a,r,n);if(l)return l;for(let d=1;d<=s;d++){const c=(s+r-d-1)%s,h=e.getLineContent(c+1),u=this._findLastMatchInLine(i,h,c+1,n);if(u)return u}return null}static _findLastMatchInLine(e,t,i,n){let s=null,r;for(e.reset(0);r=e.next(t);)s=Iu(new x(i,r.index+1,i,r.index+1+r[0].length),r,n);return s}}function iY(o,e,t,i,n){if(i===0)return!0;const s=e.charCodeAt(i-1);if(o.get(s)!==0||s===13||s===10)return!0;if(n>0){const r=e.charCodeAt(i);if(o.get(r)!==0)return!0}return!1}function nY(o,e,t,i,n){if(i+n===t)return!0;const s=e.charCodeAt(i+n);if(o.get(s)!==0||s===13||s===10)return!0;if(n>0){const r=e.charCodeAt(i+n-1);if(o.get(r)!==0)return!0}return!1}function xA(o,e,t,i,n){return iY(o,e,t,i,n)&&nY(o,e,t,i,n)}class Vf{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===t||(i=this._searchRegex.exec(e),!i))return null;const n=i.index,s=i[0].length;if(n===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){$w(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=n,this._prevMatchLength=s,!this._wordSeparators||xA(this._wordSeparators,e,t,n,s))return i}while(i);return null}}class DA{static computeUnicodeHighlights(e,t,i){const n=i?i.startLineNumber:1,s=i?i.endLineNumber:e.getLineCount(),r=new wF(t),a=r.getCandidateCodePoints();let l;a==="allNonBasicAscii"?l=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):l=new RegExp(`${sY(Array.from(a))}`,"g");const d=new Vf(null,l),c=[];let h=!1,u,g=0,f=0,p=0;e:for(let _=n,v=s;_<=v;_++){const b=e.getLineContent(_),C=b.length;d.reset(0);do if(u=d.next(b),u){let w=u.index,S=u.index+u[0].length;if(w>0){const T=b.charCodeAt(w-1);sn(T)&&w--}if(S+1=1e3){h=!0;break e}c.push(new x(_,w+1,_,S+1))}}while(u)}return{ranges:c,hasMore:h,ambiguousCharacterCount:g,invisibleCharacterCount:f,nonBasicAsciiCharacterCount:p}}static computeUnicodeHighlightReason(e,t){const i=new wF(t);switch(i.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=e.codePointAt(0),r=i.ambiguousCharacters.getPrimaryConfusable(s),a=ug.getLocales().filter(l=>!ug.getInstance(new Set([...t.allowedLocales,l])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(r),notAmbiguousInLocales:a}}case 1:return{kind:2}}}}function sY(o,e){return`[${Oo(o.map(i=>String.fromCodePoint(i)).join(""))}]`}class wF{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=ug.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of kl.codePoints)SF(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let n=!1,s=!1;if(t)for(const r of t){const a=r.codePointAt(0),l=L0(r);n=n||l,!l&&!this.ambiguousCharacters.isAmbiguous(a)&&!kl.isInvisibleCharacter(a)&&(s=!0)}return!n&&s?0:this.options.invisibleCharacters&&!SF(e)&&kl.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function SF(o){return o===" "||o===` +`||o===" "}class tw{constructor(e,t,i){this.changes=e,this.moves=t,this.hitTimeout=i}}class xW{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}class Ze{static addRange(e,t){let i=0;for(;it))return new Ze(e,t)}static ofLength(e){return new Ze(0,e)}static ofStartAndLength(e,t){return new Ze(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new Tt(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new Ze(this.start+e,this.endExclusive+e)}deltaStart(e){return new Ze(this.start+e,this.endExclusive)}deltaEnd(e){return new Ze(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new Tt(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new Tt(`Invalid clipping range: ${this.toString()}`);return e=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;te.toString()).join(", ")}intersectsStrict(e){let t=0;for(;te+t.length,0)}}function Qv(o,e){const t=oY(o,e);if(t!==-1)return o[t]}function oY(o,e,t=o.length-1){for(let i=t;i>=0;i--){const n=o[i];if(e(n))return i}return-1}function zm(o,e){const t=Xv(o,e);return t===-1?void 0:o[t]}function Xv(o,e,t=0,i=o.length){let n=t,s=i;for(;n0&&(t=n)}return t}function aY(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i=0&&(t=n)}return t}function lY(o,e){return IA(o,(t,i)=>-e(t,i))}function dY(o,e){if(o.length===0)return-1;let t=0;for(let i=1;i0&&(t=i)}return t}function cY(o,e){for(const t of o){const i=e(t);if(i!==void 0)return i}}let Ge=class od{static fromRangeInclusive(e){return new od(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(e.length===0)return[];let t=new Jo(e[0].slice());for(let i=1;it)throw new Tt(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&en.endLineNumberExclusive>=e.startLineNumber),i=Xv(this._normalizedRanges,n=>n.startLineNumber<=e.endLineNumberExclusive)+1;if(t===i)this._normalizedRanges.splice(t,0,e);else if(t===i-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const n=this._normalizedRanges[t].join(this._normalizedRanges[i-1]).join(e);this._normalizedRanges.splice(t,i-t,n)}}contains(e){const t=zm(this._normalizedRanges,i=>i.startLineNumber<=e);return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=zm(this._normalizedRanges,i=>i.startLineNumbere.startLineNumber}getUnion(e){if(this._normalizedRanges.length===0)return e;if(e._normalizedRanges.length===0)return this;const t=[];let i=0,n=0,s=null;for(;i=r.startLineNumber?s=new Ge(s.startLineNumber,Math.max(s.endLineNumberExclusive,r.endLineNumberExclusive)):(t.push(s),s=r)}return s!==null&&t.push(s),new Jo(t)}subtractFrom(e){const t=Jv(this._normalizedRanges,r=>r.endLineNumberExclusive>=e.startLineNumber),i=Xv(this._normalizedRanges,r=>r.startLineNumber<=e.endLineNumberExclusive)+1;if(t===i)return new Jo([e]);const n=[];let s=e.startLineNumber;for(let r=t;rs&&n.push(new Ge(s,a.startLineNumber)),s=a.endLineNumberExclusive}return se.toString()).join(", ")}getIntersection(e){const t=[];let i=0,n=0;for(;it.delta(e)))}}class Cs{static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new Cs(0,t.column-e.column):new Cs(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return Cs.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,i=0;for(const n of e)n===` +`?(t++,i=0):i++;return new Cs(t,i)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return this.lineCount===0?new x(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new x(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return this.lineCount===0?new F(e.lineNumber,e.column+this.columnCount):new F(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}Cs.zero=new Cs(0,0);class hY{constructor(e){this.text=e,this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;twA(e,(t,i)=>t.range.getEndPosition().isBeforeOrEqual(i.range.getStartPosition())))}apply(e){let t="",i=new F(1,1);for(const s of this.edits){const r=s.range,a=r.getStartPosition(),l=r.getEndPosition(),d=yF(i,a);d.isEmpty()||(t+=e.getValueOfRange(d)),t+=s.text,i=l}const n=yF(i,e.endPositionExclusive);return n.isEmpty()||(t+=e.getValueOfRange(n)),t}applyToString(e){const t=new uY(e);return this.apply(t)}getNewRanges(){const e=[];let t=0,i=0,n=0;for(const s of this.edits){const r=Cs.ofText(s.text),a=F.lift({lineNumber:s.range.startLineNumber+i,column:s.range.startColumn+(s.range.startLineNumber===t?n:0)}),l=r.createRange(a);e.push(l),i=l.endLineNumber-s.range.endLineNumber,n=l.endColumn-s.range.endColumn,t=s.range.endLineNumber}return e}}class tc{constructor(e,t){this.range=e,this.text=t}}function yF(o,e){if(o.lineNumber===e.lineNumber&&o.column===Number.MAX_SAFE_INTEGER)return x.fromPositions(e,e);if(!o.isBeforeOrEqual(e))throw new Tt("start must be before end");return new x(o.lineNumber,o.column,e.lineNumber,e.column)}class DW{get endPositionExclusive(){return this.length.addToPosition(new F(1,1))}}class uY extends DW{constructor(e){super(),this.value=e,this._t=new hY(this.value)}getValueOfRange(e){return this._t.getOffsetRange(e).substring(this.value)}get length(){return this._t.textLength}}class ps{static inverse(e,t,i){const n=[];let s=1,r=1;for(const l of e){const d=new ps(new Ge(s,l.original.startLineNumber),new Ge(r,l.modified.startLineNumber));d.modified.isEmpty||n.push(d),s=l.original.endLineNumberExclusive,r=l.modified.endLineNumberExclusive}const a=new ps(new Ge(s,t+1),new Ge(r,i+1));return a.modified.isEmpty||n.push(a),n}static clip(e,t,i){const n=[];for(const s of e){const r=s.original.intersect(t),a=s.modified.intersect(i);r&&!r.isEmpty&&a&&!a.isEmpty&&n.push(new ps(r,a))}return n}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new ps(this.modified,this.original)}join(e){return new ps(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new Ca(e,t);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new Tt("not a valid diff");return new Ca(new x(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new x(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new Ca(new x(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new x(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}}class Po extends ps{static fromRangeMappings(e){const t=Ge.join(e.map(n=>Ge.fromRangeInclusive(n.originalRange))),i=Ge.join(e.map(n=>Ge.fromRangeInclusive(n.modifiedRange)));return new Po(t,i,e)}constructor(e,t,i){super(e,t),this.innerChanges=i}flip(){var e;return new Po(this.modified,this.original,(e=this.innerChanges)===null||e===void 0?void 0:e.map(t=>t.flip()))}withInnerChangesFromLineRanges(){return new Po(this.original,this.modified,[this.toRangeMapping()])}}class Ca{constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Ca(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new tc(this.originalRange,t)}}const gY=3;class fY{computeDiff(e,t,i){var n;const r=new _Y(e,t,{maxComputationTime:i.maxComputationTimeMs,shouldIgnoreTrimWhitespace:i.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),a=[];let l=null;for(const d of r.changes){let c;d.originalEndLineNumber===0?c=new Ge(d.originalStartLineNumber+1,d.originalStartLineNumber+1):c=new Ge(d.originalStartLineNumber,d.originalEndLineNumber+1);let h;d.modifiedEndLineNumber===0?h=new Ge(d.modifiedStartLineNumber+1,d.modifiedStartLineNumber+1):h=new Ge(d.modifiedStartLineNumber,d.modifiedEndLineNumber+1);let u=new Po(c,h,(n=d.charChanges)===null||n===void 0?void 0:n.map(g=>new Ca(new x(g.originalStartLineNumber,g.originalStartColumn,g.originalEndLineNumber,g.originalEndColumn),new x(g.modifiedStartLineNumber,g.modifiedStartColumn,g.modifiedEndLineNumber,g.modifiedEndColumn))));l&&(l.modified.endLineNumberExclusive===u.modified.startLineNumber||l.original.endLineNumberExclusive===u.original.startLineNumber)&&(u=new Po(l.original.join(u.original),l.modified.join(u.modified),l.innerChanges&&u.innerChanges?l.innerChanges.concat(u.innerChanges):void 0),a.pop()),a.push(u),l=u}return pg(()=>wA(a,(d,c)=>c.original.startLineNumber-d.original.endLineNumberExclusive===c.modified.startLineNumber-d.modified.endLineNumberExclusive&&d.original.endLineNumberExclusive(e===10?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return e===-1?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),this._charCodes[e]===10?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return e===-1?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),this._charCodes[e]===10?1:this._columns[e]+1)}}class fm{constructor(e,t,i,n,s,r,a,l){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=i,this.originalEndColumn=n,this.modifiedStartLineNumber=s,this.modifiedStartColumn=r,this.modifiedEndLineNumber=a,this.modifiedEndColumn=l}static createFromDiffChange(e,t,i){const n=t.getStartLineNumber(e.originalStart),s=t.getStartColumn(e.originalStart),r=t.getEndLineNumber(e.originalStart+e.originalLength-1),a=t.getEndColumn(e.originalStart+e.originalLength-1),l=i.getStartLineNumber(e.modifiedStart),d=i.getStartColumn(e.modifiedStart),c=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),h=i.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new fm(n,s,r,a,l,d,c,h)}}function pY(o){if(o.length<=1)return o;const e=[o[0]];let t=e[0];for(let i=1,n=o.length;i0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&s()){const g=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),f=n.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(g.getElements().length>0&&f.getElements().length>0){let p=kW(g,f,s,!0).changes;a&&(p=pY(p)),u=[];for(let _=0,v=p.length;_1&&p>1;){const _=u.charCodeAt(f-2),v=g.charCodeAt(p-2);if(_!==v)break;f--,p--}(f>1||p>1)&&this._pushTrimWhitespaceCharChange(n,s+1,1,f,r+1,1,p)}{let f=WE(u,1),p=WE(g,1);const _=u.length+1,v=g.length+1;for(;f<_&&p!0;const e=Date.now();return()=>Date.now()-e{i.push(nn.fromOffsetPairs(n?n.getEndExclusives():tr.zero,s?s.getStarts():new tr(t,(n?n.seq2Range.endExclusive-n.seq1Range.endExclusive:0)+t)))}),i}static fromOffsetPairs(e,t){return new nn(new Ze(e.offset1,t.offset1),new Ze(e.offset2,t.offset2))}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new nn(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new nn(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return e===0?this:new nn(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return e===0?this:new nn(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return e===0?this:new nn(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),i=this.seq2Range.intersect(e.seq2Range);if(!(!t||!i))return new nn(t,i)}getStarts(){return new tr(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new tr(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class tr{constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return e===0?this:new tr(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}tr.zero=new tr(0,0);tr.max=new tr(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class eb{isValid(){return!0}}eb.instance=new eb;class vY{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new Tt("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime0&&p>0&&r.get(f-1,p-1)===3&&(b+=a.get(f-1,p-1)),b+=n?n(f,p):1):b=-1;const C=Math.max(_,v,b);if(C===b){const w=f>0&&p>0?a.get(f-1,p-1):0;a.set(f,p,w+1),r.set(f,p,3)}else C===_?(a.set(f,p,0),r.set(f,p,1)):C===v&&(a.set(f,p,0),r.set(f,p,2));s.set(f,p,C)}const l=[];let d=e.length,c=t.length;function h(f,p){(f+1!==d||p+1!==c)&&l.push(new nn(new Ze(f+1,d),new Ze(p+1,c))),d=f,c=p}let u=e.length-1,g=t.length-1;for(;u>=0&&g>=0;)r.get(u,g)===3?(h(u,g),u--,g--):r.get(u,g)===1?u--:g--;return h(-1,-1),l.reverse(),new zd(l,!1)}}class IW{compute(e,t,i=eb.instance){if(e.length===0||t.length===0)return zd.trivial(e,t);const n=e,s=t;function r(p,_){for(;pn.length||w>s.length)continue;const S=r(C,w);l.set(c,S);const L=C===v?d.get(c+1):d.get(c-1);if(d.set(c,S!==C?new DF(L,C,w,S-C):L),l.get(c)===n.length&&l.get(c)-c===s.length)break e}}let h=d.get(c);const u=[];let g=n.length,f=s.length;for(;;){const p=h?h.x+h.length:0,_=h?h.y+h.length:0;if((p!==g||_!==f)&&u.push(new nn(new Ze(p,g),new Ze(_,f))),!h)break;g=h.x,f=h.y,h=h.prev}return u.reverse(),new zd(u,!1)}}class DF{constructor(e,t,i,n){this.prev=e,this.x=t,this.y=i,this.length=n}}class CY{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if(e=-e-1,e>=this.negativeArr.length){const i=this.negativeArr;this.negativeArr=new Int32Array(i.length*2),this.negativeArr.set(i)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const i=this.positiveArr;this.positiveArr=new Int32Array(i.length*2),this.positiveArr.set(i)}this.positiveArr[e]=t}}}class wY{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}class iS{constructor(e,t,i){this.lines=e,this.considerWhitespaceChanges=i,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let n=!1;t.start>0&&t.endExclusive>=e.length&&(t=new Ze(t.start-1,t.endExclusive),n=!0),this.lineRange=t,this.firstCharOffsetByLine[0]=0;for(let s=this.lineRange.start;sString.fromCharCode(t)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=IF(e>0?this.elements[e-1]:-1),i=IF(ei<=e);return new F(this.lineRange.start+t+1,e-this.firstCharOffsetByLine[t]+this.additionalOffsetByLine[t]+1)}translateRange(e){return x.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length||!BD(this.elements[e]))return;let t=e;for(;t>0&&BD(this.elements[t-1]);)t--;let i=e;for(;ir<=e.start))!==null&&t!==void 0?t:0,s=(i=rY(this.firstCharOffsetByLine,r=>e.endExclusive<=r))!==null&&i!==void 0?i:this.elements.length;return new Ze(n,s)}}function BD(o){return o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57}const SY={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function kF(o){return SY[o]}function IF(o){return o===10?8:o===13?7:HE(o)?6:o>=97&&o<=122?0:o>=65&&o<=90?1:o>=48&&o<=57?2:o===-1?3:o===44||o===59?5:4}function yY(o,e,t,i,n,s){let{moves:r,excludedChanges:a}=xY(o,e,t,s);if(!s.isValid())return[];const l=o.filter(c=>!a.has(c)),d=DY(l,i,n,e,t,s);return pI(r,d),r=kY(r),r=r.filter(c=>{const h=c.original.toOffsetRange().slice(e).map(g=>g.trim());return h.join(` +`).length>=15&&LY(h,g=>g.length>=2)>=2}),r=IY(o,r),r}function LY(o,e){let t=0;for(const i of o)e(i)&&t++;return t}function xY(o,e,t,i){const n=[],s=o.filter(l=>l.modified.isEmpty&&l.original.length>=3).map(l=>new Um(l.original,e,l)),r=new Set(o.filter(l=>l.original.isEmpty&&l.modified.length>=3).map(l=>new Um(l.modified,t,l))),a=new Set;for(const l of s){let d=-1,c;for(const h of r){const u=l.computeSimilarity(h);u>d&&(d=u,c=h)}if(d>.9&&c&&(r.delete(c),n.push(new ps(l.range,c.range)),a.add(l.source),a.add(c.source)),!i.isValid())return{moves:n,excludedChanges:a}}return{moves:n,excludedChanges:a}}function DY(o,e,t,i,n,s){const r=[],a=new LA;for(const u of o)for(let g=u.original.startLineNumber;gu.modified.startLineNumber,Br));for(const u of o){let g=[];for(let f=u.modified.startLineNumber;f{for(const w of g)if(w.originalLineRange.endLineNumberExclusive+1===b.endLineNumberExclusive&&w.modifiedLineRange.endLineNumberExclusive+1===_.endLineNumberExclusive){w.originalLineRange=new Ge(w.originalLineRange.startLineNumber,b.endLineNumberExclusive),w.modifiedLineRange=new Ge(w.modifiedLineRange.startLineNumber,_.endLineNumberExclusive),v.push(w);return}const C={modifiedLineRange:_,originalLineRange:b};l.push(C),v.push(C)}),g=v}if(!s.isValid())return[]}l.sort(z7(zs(u=>u.modifiedLineRange.length,Br)));const d=new Jo,c=new Jo;for(const u of l){const g=u.modifiedLineRange.startLineNumber-u.originalLineRange.startLineNumber,f=d.subtractFrom(u.modifiedLineRange),p=c.subtractFrom(u.originalLineRange).getWithDelta(g),_=f.getIntersection(p);for(const v of _.ranges){if(v.length<3)continue;const b=v,C=v.delta(-g);r.push(new ps(C,b)),d.addRange(b),c.addRange(C)}}r.sort(zs(u=>u.original.startLineNumber,Br));const h=new N0(o);for(let u=0;uL.original.startLineNumber<=g.original.startLineNumber),p=zm(o,L=>L.modified.startLineNumber<=g.modified.startLineNumber),_=Math.max(g.original.startLineNumber-f.original.startLineNumber,g.modified.startLineNumber-p.modified.startLineNumber),v=h.findLastMonotonous(L=>L.original.startLineNumberL.modified.startLineNumberi.length||D>n.length||d.contains(D)||c.contains(L)||!EF(i[L-1],n[D-1],s))break}w>0&&(c.addRange(new Ge(g.original.startLineNumber-w,g.original.startLineNumber)),d.addRange(new Ge(g.modified.startLineNumber-w,g.modified.startLineNumber)));let S;for(S=0;Si.length||D>n.length||d.contains(D)||c.contains(L)||!EF(i[L-1],n[D-1],s))break}S>0&&(c.addRange(new Ge(g.original.endLineNumberExclusive,g.original.endLineNumberExclusive+S)),d.addRange(new Ge(g.modified.endLineNumberExclusive,g.modified.endLineNumberExclusive+S))),(w>0||S>0)&&(r[u]=new ps(new Ge(g.original.startLineNumber-w,g.original.endLineNumberExclusive+S),new Ge(g.modified.startLineNumber-w,g.modified.endLineNumberExclusive+S)))}return r}function EF(o,e,t){if(o.trim()===e.trim())return!0;if(o.length>300&&e.length>300)return!1;const n=new IW().compute(new iS([o],new Ze(0,1),!1),new iS([e],new Ze(0,1),!1),t);let s=0;const r=nn.invert(n.diffs,o.length);for(const c of r)c.seq1Range.forEach(h=>{HE(o.charCodeAt(h))||s++});function a(c){let h=0;for(let u=0;ue.length?o:e);return s/l>.6&&l>10}function kY(o){if(o.length===0)return o;o.sort(zs(t=>t.original.startLineNumber,Br));const e=[o[0]];for(let t=1;t=0&&r>=0&&s+r<=2){e[e.length-1]=i.join(n);continue}e.push(n)}return e}function IY(o,e){const t=new N0(o);return e=e.filter(i=>{const n=t.findLastMonotonous(a=>a.original.startLineNumbera.modified.startLineNumber0&&(a=a.delta(d))}n.push(a)}return i.length>0&&n.push(i[i.length-1]),n}function EY(o,e,t){if(!o.getBoundaryScore||!e.getBoundaryScore)return t;for(let i=0;i0?t[i-1]:void 0,s=t[i],r=i+1=i.start&&o.seq2Range.start-r>=n.start&&t.isStronglyEqual(o.seq2Range.start-r,o.seq2Range.endExclusive-r)&&r<100;)r++;r--;let a=0;for(;o.seq1Range.start+ad&&(d=f,l=c)}return o.delta(l)}function NY(o,e,t){const i=[];for(const n of t){const s=i[i.length-1];if(!s){i.push(n);continue}n.seq1Range.start-s.seq1Range.endExclusive<=2||n.seq2Range.start-s.seq2Range.endExclusive<=2?i[i.length-1]=new nn(s.seq1Range.join(n.seq1Range),s.seq2Range.join(n.seq2Range)):i.push(n)}return i}function TY(o,e,t){const i=nn.invert(t,o.length),n=[];let s=new tr(0,0);function r(l,d){if(l.offset10;){const _=i[0];if(!(_.seq1Range.intersects(u.seq1Range)||_.seq2Range.intersects(u.seq2Range)))break;const b=o.findWordContaining(_.seq1Range.start),C=e.findWordContaining(_.seq2Range.start),w=new nn(b,C),S=w.intersect(_);if(f+=S.seq1Range.length,p+=S.seq2Range.length,u=u.join(w),u.seq1Range.endExclusive>=_.seq1Range.endExclusive)i.shift();else break}f+p<(u.seq1Range.length+u.seq2Range.length)*2/3&&n.push(u),s=u.getEndExclusives()}for(;i.length>0;){const l=i.shift();l.seq1Range.isEmpty||(r(l.getStarts(),l),r(l.getEndExclusives().delta(-1),l))}return MY(t,n)}function MY(o,e){const t=[];for(;o.length>0||e.length>0;){const i=o[0],n=e[0];let s;i&&(!n||i.seq1Range.start0&&t[t.length-1].seq1Range.endExclusive>=s.seq1Range.start?t[t.length-1]=t[t.length-1].join(s):t.push(s)}return t}function RY(o,e,t){let i=t;if(i.length===0)return i;let n=0,s;do{s=!1;const r=[i[0]];for(let a=1;a5||g.seq1Range.length+g.seq2Range.length>5)};const l=i[a],d=r[r.length-1];c(d,l)?(s=!0,r[r.length-1]=r[r.length-1].join(l)):r.push(l)}i=r}while(n++<10&&s);return i}function AY(o,e,t){let i=t;if(i.length===0)return i;let n=0,s;do{s=!1;const a=[i[0]];for(let l=1;l5||p.length>500)return!1;const v=o.getText(p).trim();if(v.length>20||v.split(/\r\n|\r|\n/).length>1)return!1;const b=o.countLinesIn(g.seq1Range),C=g.seq1Range.length,w=e.countLinesIn(g.seq2Range),S=g.seq2Range.length,L=o.countLinesIn(f.seq1Range),D=f.seq1Range.length,I=e.countLinesIn(f.seq2Range),T=f.seq2Range.length,V=2*40+50;function P(A){return Math.min(A,V)}return Math.pow(Math.pow(P(b*40+C),1.5)+Math.pow(P(w*40+S),1.5),1.5)+Math.pow(Math.pow(P(L*40+D),1.5)+Math.pow(P(I*40+T),1.5),1.5)>(V**1.5)**1.5*1.3};const d=i[l],c=a[a.length-1];h(c,d)?(s=!0,a[a.length-1]=a[a.length-1].join(d)):a.push(d)}i=a}while(n++<10&&s);const r=[];return k$(i,(a,l,d)=>{let c=l;function h(v){return v.length>0&&v.trim().length<=3&&l.seq1Range.length+l.seq2Range.length>100}const u=o.extendToFullLines(l.seq1Range),g=o.getText(new Ze(u.start,l.seq1Range.start));h(g)&&(c=c.deltaStart(-g.length));const f=o.getText(new Ze(l.seq1Range.endExclusive,u.endExclusive));h(f)&&(c=c.deltaEnd(f.length));const p=nn.fromOffsetPairs(a?a.getEndExclusives():tr.zero,d?d.getStarts():tr.max),_=c.intersect(p);r.length>0&&_.getStarts().equals(r[r.length-1].getEndExclusives())?r[r.length-1]=r[r.length-1].join(_):r.push(_)}),r}class MF{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){const t=e===0?0:RF(this.lines[e-1]),i=e===this.lines.length?0:RF(this.lines[e]);return 1e3-(t+i)}getText(e){return this.lines.slice(e.start,e.endExclusive).join(` +`)}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function RF(o){let e=0;for(;eS===L))return new tw([],[],!1);if(e.length===1&&e[0].length===0||t.length===1&&t[0].length===0)return new tw([new Po(new Ge(1,e.length+1),new Ge(1,t.length+1),[new Ca(new x(1,1,e.length,e[e.length-1].length+1),new x(1,1,t.length,t[t.length-1].length+1))])],[],!1);const n=i.maxComputationTimeMs===0?eb.instance:new vY(i.maxComputationTimeMs),s=!i.ignoreTrimWhitespace,r=new Map;function a(S){let L=r.get(S);return L===void 0&&(L=r.size,r.set(S,L)),L}const l=e.map(S=>a(S.trim())),d=t.map(S=>a(S.trim())),c=new MF(l,e),h=new MF(d,t),u=c.length+h.length<1700?this.dynamicProgrammingDiffing.compute(c,h,n,(S,L)=>e[S]===t[L]?t[L].length===0?.1:1+Math.log(1+t[L].length):.99):this.myersDiffingAlgorithm.compute(c,h,n);let g=u.diffs,f=u.hitTimeout;g=VE(c,h,g),g=RY(c,h,g);const p=[],_=S=>{if(s)for(let L=0;LS.seq1Range.start-v===S.seq2Range.start-b);const L=S.seq1Range.start-v;_(L),v=S.seq1Range.endExclusive,b=S.seq2Range.endExclusive;const D=this.refineDiff(e,t,S,n,s);D.hitTimeout&&(f=!0);for(const I of D.mappings)p.push(I)}_(e.length-v);const C=AF(p,e,t);let w=[];return i.computeMoves&&(w=this.computeMoves(C,e,t,l,d,n,s)),pg(()=>{function S(D,I){if(D.lineNumber<1||D.lineNumber>I.length)return!1;const T=I[D.lineNumber-1];return!(D.column<1||D.column>T.length+1)}function L(D,I){return!(D.startLineNumber<1||D.startLineNumber>I.length+1||D.endLineNumberExclusive<1||D.endLineNumberExclusive>I.length+1)}for(const D of C){if(!D.innerChanges)return!1;for(const I of D.innerChanges)if(!(S(I.modifiedRange.getStartPosition(),t)&&S(I.modifiedRange.getEndPosition(),t)&&S(I.originalRange.getStartPosition(),e)&&S(I.originalRange.getEndPosition(),e)))return!1;if(!L(D.modified,t)||!L(D.original,e))return!1}return!0}),new tw(C,w,f)}computeMoves(e,t,i,n,s,r,a){return yY(e,t,i,n,s,r).map(c=>{const h=this.refineDiff(t,i,new nn(c.original.toOffsetRange(),c.modified.toOffsetRange()),r,a),u=AF(h.mappings,t,i,!0);return new xW(c,u)})}refineDiff(e,t,i,n,s){const r=new iS(e,i.seq1Range,s),a=new iS(t,i.seq2Range,s),l=r.length+a.length<500?this.dynamicProgrammingDiffing.compute(r,a,n):this.myersDiffingAlgorithm.compute(r,a,n);let d=l.diffs;return d=VE(r,a,d),d=TY(r,a,d),d=NY(r,a,d),d=AY(r,a,d),{mappings:d.map(h=>new Ca(r.translateRange(h.seq1Range),a.translateRange(h.seq2Range))),hitTimeout:l.hitTimeout}}}function AF(o,e,t,i=!1){const n=[];for(const s of UR(o.map(r=>PY(r,e,t)),(r,a)=>r.original.overlapOrTouch(a.original)||r.modified.overlapOrTouch(a.modified))){const r=s[0],a=s[s.length-1];n.push(new Po(r.original.join(a.original),r.modified.join(a.modified),s.map(l=>l.innerChanges[0])))}return pg(()=>!i&&n.length>0&&(n[0].modified.startLineNumber!==n[0].original.startLineNumber||t.length-n[n.length-1].modified.endLineNumberExclusive!==e.length-n[n.length-1].original.endLineNumberExclusive)?!1:wA(n,(s,r)=>r.original.startLineNumber-s.original.endLineNumberExclusive===r.modified.startLineNumber-s.modified.endLineNumberExclusive&&s.original.endLineNumberExclusive=t[o.modifiedRange.startLineNumber-1].length&&o.originalRange.startColumn-1>=e[o.originalRange.startLineNumber-1].length&&o.originalRange.startLineNumber<=o.originalRange.endLineNumber+n&&o.modifiedRange.startLineNumber<=o.modifiedRange.endLineNumber+n&&(i=1);const s=new Ge(o.originalRange.startLineNumber+i,o.originalRange.endLineNumber+1+n),r=new Ge(o.modifiedRange.startLineNumber+i,o.modifiedRange.endLineNumber+1+n);return new Po(s,r,[o])}const PF={getLegacy:()=>new fY,getDefault:()=>new EW};function rh(o,e){const t=Math.pow(10,e);return Math.round(o*t)/t}class gt{constructor(e,t,i,n=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,t))|0,this.b=Math.min(255,Math.max(0,i))|0,this.a=rh(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class Nr{constructor(e,t,i,n){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=rh(Math.max(Math.min(1,t),0),3),this.l=rh(Math.max(Math.min(1,i),0),3),this.a=rh(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,s=e.a,r=Math.max(t,i,n),a=Math.min(t,i,n);let l=0,d=0;const c=(a+r)/2,h=r-a;if(h>0){switch(d=Math.min(c<=.5?h/(2*c):h/(2-2*c),1),r){case t:l=(i-n)/h+(i1&&(i-=1),i<1/6?e+(t-e)*6*i:i<1/2?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){const t=e.h/360,{s:i,l:n,a:s}=e;let r,a,l;if(i===0)r=a=l=n;else{const d=n<.5?n*(1+i):n+i-n*i,c=2*n-d;r=Nr._hue2rgb(c,d,t+1/3),a=Nr._hue2rgb(c,d,t),l=Nr._hue2rgb(c,d,t-1/3)}return new gt(Math.round(r*255),Math.round(a*255),Math.round(l*255),s)}}class _l{constructor(e,t,i,n){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=rh(Math.max(Math.min(1,t),0),3),this.v=rh(Math.max(Math.min(1,i),0),3),this.a=rh(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,s=Math.max(t,i,n),r=Math.min(t,i,n),a=s-r,l=s===0?0:a/s;let d;return a===0?d=0:s===t?d=((i-n)/a%6+6)%6:s===i?d=(n-t)/a+2:d=(t-i)/a+4,new _l(Math.round(d*60),l,s,e.a)}static toRGBA(e){const{h:t,s:i,v:n,a:s}=e,r=n*i,a=r*(1-Math.abs(t/60%2-1)),l=n-r;let[d,c,h]=[0,0,0];return t<60?(d=r,c=a):t<120?(d=a,c=r):t<180?(c=r,h=a):t<240?(c=a,h=r):t<300?(d=a,h=r):t<=360&&(d=r,h=a),d=Math.round((d+l)*255),c=Math.round((c+l)*255),h=Math.round((h+l)*255),new gt(d,c,h,s)}}class z{static fromHex(e){return z.Format.CSS.parseHex(e)||z.red}static equals(e,t){return!e&&!t?!0:!e||!t?!1:e.equals(t)}get hsla(){return this._hsla?this._hsla:Nr.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:_l.fromRGBA(this.rgba)}constructor(e){if(e)if(e instanceof gt)this.rgba=e;else if(e instanceof Nr)this._hsla=e,this.rgba=Nr.toRGBA(e);else if(e instanceof _l)this._hsva=e,this.rgba=_l.toRGBA(e);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(e){return!!e&>.equals(this.rgba,e.rgba)&&Nr.equals(this.hsla,e.hsla)&&_l.equals(this.hsva,e.hsva)}getRelativeLuminance(){const e=z._relativeLuminanceForComponent(this.rgba.r),t=z._relativeLuminanceForComponent(this.rgba.g),i=z._relativeLuminanceForComponent(this.rgba.b),n=.2126*e+.7152*t+.0722*i;return rh(n,4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){const t=this.getRelativeLuminance(),i=e.getRelativeLuminance();return t>i}isDarkerThan(e){const t=this.getRelativeLuminance(),i=e.getRelativeLuminance();return t0)for(const n of i){const s=n.filter(d=>d!==void 0),r=s[1],a=s[2];if(!a)continue;let l;if(r==="rgb"){const 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;l=OF(s_(o,n),o_(a,d),!1)}else if(r==="rgba"){const 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;l=OF(s_(o,n),o_(a,d),!0)}else if(r==="hsl"){const 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;l=FF(s_(o,n),o_(a,d),!1)}else if(r==="hsla"){const 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;l=FF(s_(o,n),o_(a,d),!0)}else r==="#"&&(l=OY(s_(o,n),r+a));l&&e.push(l)}return e}function BY(o){return!o||typeof o.getValue!="function"||typeof o.positionAt!="function"?[]:FY(o)}const BF=new RegExp("\\bMARK:\\s*(.*)$","d"),WY=/^-+|-+$/g;function HY(o,e){var t;let i=[];if(e.findRegionSectionHeaders&&(!((t=e.foldingRules)===null||t===void 0)&&t.markers)){const n=VY(o,e);i=i.concat(n)}if(e.findMarkSectionHeaders){const n=zY(o);i=i.concat(n)}return i}function VY(o,e){const t=[],i=o.getLineCount();for(let n=1;n<=i;n++){const s=o.getLineContent(n),r=s.match(e.foldingRules.markers.start);if(r){const a={startLineNumber:n,startColumn:r[0].length+1,endLineNumber:n,endColumn:s.length+1};if(a.endColumn>a.startColumn){const l={range:a,...TW(s.substring(r[0].length)),shouldBeInComments:!1};(l.text||l.hasSeparatorLine)&&t.push(l)}}}return t}function zY(o){const e=[],t=o.getLineCount();for(let i=1;i<=t;i++){const n=o.getLineContent(i);UY(n,i,e)}return e}function UY(o,e,t){BF.lastIndex=0;const i=BF.exec(o);if(i){const n=i.indices[1][0]+1,s=i.indices[1][1]+1,r={startLineNumber:e,startColumn:n,endLineNumber:e,endColumn:s};if(r.endColumn>r.startColumn){const a={range:r,...TW(i[1]),shouldBeInComments:!0};(a.text||a.hasSeparatorLine)&&t.push(a)}}}function TW(o){o=o.trim();const e=o.startsWith("-");return o=o.replace(WY,""),{text:o,hasSeparatorLine:e}}class $Y extends WZ{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let i=0;ithis._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,n=!0;else{const s=this._lines[t-1].length+1;i<1?(i=1,n=!0):i>s&&(i=s,n=!0)}return n?{lineNumber:t,column:i}:e}}class ah{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}acceptNewModel(e){this._models[e.url]=new $Y(ke.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}async computeUnicodeHighlights(e,t,i){const n=this._getModel(e);return n?DA.computeUnicodeHighlights(n,t,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(e,t){const i=this._getModel(e);return i?HY(i,t):[]}async computeDiff(e,t,i,n){const s=this._getModel(e),r=this._getModel(t);return!s||!r?null:ah.computeDiff(s,r,i,n)}static computeDiff(e,t,i,n){const s=n==="advanced"?PF.getDefault():PF.getLegacy(),r=e.getLinesContent(),a=t.getLinesContent(),l=s.computeDiff(r,a,i),d=l.changes.length>0?!1:this._modelsAreIdentical(e,t);function c(h){return h.map(u=>{var g;return[u.original.startLineNumber,u.original.endLineNumberExclusive,u.modified.startLineNumber,u.modified.endLineNumberExclusive,(g=u.innerChanges)===null||g===void 0?void 0:g.map(f=>[f.originalRange.startLineNumber,f.originalRange.startColumn,f.originalRange.endLineNumber,f.originalRange.endColumn,f.modifiedRange.startLineNumber,f.modifiedRange.startColumn,f.modifiedRange.endLineNumber,f.modifiedRange.endColumn])]})}return{identical:d,quitEarly:l.hitTimeout,changes:c(l.changes),moves:l.moves.map(h=>[h.lineRangeMapping.original.startLineNumber,h.lineRangeMapping.original.endLineNumberExclusive,h.lineRangeMapping.modified.startLineNumber,h.lineRangeMapping.modified.endLineNumberExclusive,c(h.changes)])}}static _modelsAreIdentical(e,t){const i=e.getLineCount(),n=t.getLineCount();if(i!==n)return!1;for(let s=1;s<=i;s++){const r=e.getLineContent(s),a=t.getLineContent(s);if(r!==a)return!1}return!0}async computeMoreMinimalEdits(e,t,i){const n=this._getModel(e);if(!n)return t;const s=[];let r;t=t.slice(0).sort((l,d)=>{if(l.range&&d.range)return x.compareRangesUsingStarts(l.range,d.range);const c=l.range?0:1,h=d.range?0:1;return c-h});let a=0;for(let l=1;lah._diffLimit){s.push({range:l,text:d});continue}const u=OZ(h,d,i),g=n.offsetAt(x.lift(l).getStartPosition());for(const f of u){const p=n.positionAt(g+f.originalStart),_=n.positionAt(g+f.originalStart+f.originalLength),v={text:d.substr(f.modifiedStart,f.modifiedLength),range:{startLineNumber:p.lineNumber,startColumn:p.column,endLineNumber:_.lineNumber,endColumn:_.column}};n.getValueInRange(v.range)!==v.text&&s.push(v)}}return typeof r=="number"&&s.push({eol:r,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async computeLinks(e){const t=this._getModel(e);return t?$Z(t):null}async computeDefaultDocumentColors(e){const t=this._getModel(e);return t?BY(t):null}async textualSuggest(e,t,i,n){const s=new In,r=new RegExp(i,n),a=new Set;e:for(const l of e){const d=this._getModel(l);if(d){for(const c of d.words(r))if(!(c===t||!isNaN(Number(c)))&&(a.add(c),a.size>ah._suggestionsLimit))break e}}return{words:Array.from(a),duration:s.elapsed()}}async computeWordRanges(e,t,i,n){const s=this._getModel(e);if(!s)return Object.create(null);const r=new RegExp(i,n),a=Object.create(null);for(let l=t.startLineNumber;lthis._host.fhr(a,l)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(r,t),Promise.resolve(KR(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||typeof this._foreignModule[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(i){return Promise.reject(i)}}}ah._diffLimit=1e5;ah._suggestionsLimit=1e4;typeof importScripts=="function"&&(globalThis.monaco=_9());const TA=ot("textResourceConfigurationService"),MW=ot("textResourcePropertiesService"),me=ot("ILanguageFeaturesService");var jY=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},r_=function(o,e){return function(t,i){e(t,i,o)}};const WF=60*1e3,HF=5*60*1e3;function Eu(o,e){const t=o.getModel(e);return!(!t||t.isTooLargeForSyncing())}let zE=class extends W{constructor(e,t,i,n,s){super(),this._modelService=e,this._workerManager=this._register(new qY(this._modelService,n)),this._logService=i,this._register(s.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(r,a)=>Eu(this._modelService,r.uri)?this._workerManager.withWorker().then(l=>l.computeLinks(r.uri)).then(l=>l&&{links:l}):Promise.resolve({links:[]})})),this._register(s.completionProvider.register("*",new KY(this._workerManager,t,this._modelService,n)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return Eu(this._modelService,e)}computedUnicodeHighlights(e,t,i){return this._workerManager.withWorker().then(n=>n.computedUnicodeHighlights(e,t,i))}async computeDiff(e,t,i,n){const s=await this._workerManager.withWorker().then(l=>l.computeDiff(e,t,i,n));if(!s)return null;return{identical:s.identical,quitEarly:s.quitEarly,changes:a(s.changes),moves:s.moves.map(l=>new xW(new ps(new Ge(l[0],l[1]),new Ge(l[2],l[3])),a(l[4])))};function a(l){return l.map(d=>{var c;return new Po(new Ge(d[0],d[1]),new Ge(d[2],d[3]),(c=d[4])===null||c===void 0?void 0:c.map(h=>new Ca(new x(h[0],h[1],h[2],h[3]),new x(h[4],h[5],h[6],h[7]))))})}}computeMoreMinimalEdits(e,t,i=!1){if(jn(t)){if(!Eu(this._modelService,e))return Promise.resolve(t);const n=In.create(),s=this._workerManager.withWorker().then(r=>r.computeMoreMinimalEdits(e,t,i));return s.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),n.elapsed())),Promise.race([s,Xd(1e3).then(()=>t)])}else return Promise.resolve(void 0)}canNavigateValueSet(e){return Eu(this._modelService,e)}navigateValueSet(e,t,i){return this._workerManager.withWorker().then(n=>n.navigateValueSet(e,t,i))}canComputeWordRanges(e){return Eu(this._modelService,e)}computeWordRanges(e,t){return this._workerManager.withWorker().then(i=>i.computeWordRanges(e,t))}findSectionHeaders(e,t){return this._workerManager.withWorker().then(i=>i.findSectionHeaders(e,t))}};zE=jY([r_(0,ai),r_(1,TA),r_(2,qn),r_(3,$t),r_(4,me)],zE);class KY{constructor(e,t,i,n){this.languageConfigurationService=n,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}async provideCompletionItems(e,t){const i=this._configurationService.getValue(e.uri,t,"editor");if(i.wordBasedSuggestions==="off")return;const n=[];if(i.wordBasedSuggestions==="currentDocument")Eu(this._modelService,e.uri)&&n.push(e.uri);else for(const h of this._modelService.getModels())Eu(this._modelService,h.uri)&&(h===e?n.unshift(h.uri):(i.wordBasedSuggestions==="allDocuments"||h.getLanguageId()===e.getLanguageId())&&n.push(h.uri));if(n.length===0)return;const s=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),r=e.getWordAtPosition(t),a=r?new x(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):x.fromPositions(t),l=a.setEndPosition(t.lineNumber,t.column),c=await(await this._workerManager.withWorker()).textualSuggest(n,r==null?void 0:r.word,s);if(c)return{duration:c.duration,suggestions:c.words.map(h=>({kind:18,label:h,insertText:h,range:{insert:l,replace:a}}))}}}class qY extends W{constructor(e,t){super(),this.languageConfigurationService=t,this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new mA).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(HF/2),Mt),this._register(this._modelService.onModelRemoved(n=>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>HF&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new MA(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class GY extends W{constructor(e,t,i){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){const n=new uA;n.cancelAndSet(()=>this._checkStopModelSync(),Math.round(WF/2)),this._register(n)}}dispose(){for(const e in this._syncedModels)Pt(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t){for(const i of e){const n=i.toString();this._syncedModels[n]||this._beginModelSync(i,t),this._syncedModels[n]&&(this._syncedModelsLastUsedTime[n]=new Date().getTime())}}_checkStopModelSync(){const e=new Date().getTime(),t=[];for(const i in this._syncedModelsLastUsedTime)e-this._syncedModelsLastUsedTime[i]>WF&&t.push(i);for(const i of t)this._stopModelSync(i)}_beginModelSync(e,t){const i=this._modelService.getModel(e);if(!i||!t&&i.isTooLargeForSyncing())return;const n=e.toString();this._proxy.acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});const s=new G;s.add(i.onDidChangeContent(r=>{this._proxy.acceptModelChanged(n.toString(),r)})),s.add(i.onWillDispose(()=>{this._stopModelSync(n)})),s.add(Ce(()=>{this._proxy.acceptRemovedModel(n)})),this._syncedModels[n]=s}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],Pt(t)}}class VF{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class WD{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class MA extends W{constructor(e,t,i,n){super(),this.languageConfigurationService=n,this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new aL(i),this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new ZG(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new WD(this)))}catch(e){RE(e),this._worker=new VF(new ah(new WD(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,e=>(RE(e),this._worker=new VF(new ah(new WD(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new GY(e,this._modelService,this._keepIdleModels))),this._modelManager}async _withSyncedResources(e,t=!1){return this._disposed?Promise.reject(zj()):this._getProxy().then(i=>(this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i))}computedUnicodeHighlights(e,t,i){return this._withSyncedResources([e]).then(n=>n.computeUnicodeHighlights(e.toString(),t,i))}computeDiff(e,t,i,n){return this._withSyncedResources([e,t],!0).then(s=>s.computeDiff(e.toString(),t.toString(),i,n))}computeMoreMinimalEdits(e,t,i){return this._withSyncedResources([e]).then(n=>n.computeMoreMinimalEdits(e.toString(),t,i))}computeLinks(e){return this._withSyncedResources([e]).then(t=>t.computeLinks(e.toString()))}computeDefaultDocumentColors(e){return this._withSyncedResources([e]).then(t=>t.computeDefaultDocumentColors(e.toString()))}async textualSuggest(e,t,i){const n=await this._withSyncedResources(e),s=i.source,r=i.flags;return n.textualSuggest(e.map(a=>a.toString()),t,s,r)}computeWordRanges(e,t){return this._withSyncedResources([e]).then(i=>{const n=this._modelService.getModel(e);if(!n)return Promise.resolve(null);const s=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId()).getWordDefinition(),r=s.source,a=s.flags;return i.computeWordRanges(e.toString(),t,r,a)})}navigateValueSet(e,t,i){return this._withSyncedResources([e]).then(n=>{const s=this._modelService.getModel(e);if(!s)return null;const r=this.languageConfigurationService.getLanguageConfiguration(s.getLanguageId()).getWordDefinition(),a=r.source,l=r.flags;return n.navigateValueSet(e.toString(),t,i,a,l)})}findSectionHeaders(e,t){return this._withSyncedResources([e]).then(i=>i.findSectionHeaders(e.toString(),t))}dispose(){super.dispose(),this._disposed=!0}}function ZY(o,e,t){return new YY(o,e,t)}class YY extends MA{constructor(e,t,i){super(e,i.keepIdleModels||!1,i.label,t),this._foreignModuleId=i.moduleId,this._foreignModuleCreateData=i.createData||null,this._foreignModuleHost=i.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||typeof this._foreignModuleHost[e]!="function")return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(i){return Promise.reject(i)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(e=>{const t=this._foreignModuleHost?KR(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then(i=>{this._foreignModuleCreateData=null;const n=(a,l)=>e.fmr(a,l),s=(a,l)=>function(){const d=Array.prototype.slice.call(arguments,0);return l(a,d)},r={};for(const a of i)r[a]=s(a,n);return r})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then(t=>this.getProxy())}}const T0={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"},$m=new class{clone(){return this}equals(o){return this===o}};function RA(o,e){return new iA([new Hv(0,"",o)],e)}function hL(o,e){const t=new Uint32Array(2);return t[0]=0,t[1]=(o<<0|0|0|32768|2<<24)>>>0,new Uy(t,e===null?$m:e)}class An{static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static getClassNameFromMetadata(e){let i="mtk"+this.getForeground(e);const n=this.getFontStyle(e);return n&1&&(i+=" mtki"),n&2&&(i+=" mtkb"),n&4&&(i+=" mtku"),n&8&&(i+=" mtks"),i}static getInlineStyleFromMetadata(e,t){const i=this.getForeground(e),n=this.getFontStyle(e);let s=`color: ${t[i]};`;n&1&&(s+="font-style: italic;"),n&2&&(s+="font-weight: bold;");let r="";return n&4&&(r+=" underline"),n&8&&(r+=" line-through"),r&&(s+=`text-decoration:${r};`),s}static getPresentationFromMetadata(e){const t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:!!(i&1),bold:!!(i&2),underline:!!(i&4),strikethrough:!!(i&8)}}}class Vi{static createEmpty(e,t){const i=Vi.defaultTokenMetadata,n=new Uint32Array(2);return n[0]=e.length,n[1]=i,new Vi(n,e,t)}static createFromTextAndMetadata(e,t){let i=0,n="";const s=new Array;for(const{text:r,metadata:a}of e)s.push(i+r.length,a),i+=r.length,n+=r;return new Vi(new Uint32Array(s),n,t)}constructor(e,t,i){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=i}equals(e){return e instanceof Vi?this.slicedEquals(e,0,this._tokensCount):!1}slicedEquals(e,t,i){if(this._text!==e._text||this._tokensCount!==e._tokensCount)return!1;const n=t<<1,s=n+(i<<1);for(let r=n;r0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[(e<<1)+1]}getLanguageId(e){const t=this._tokens[(e<<1)+1],i=An.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(i)}getStandardTokenType(e){const t=this._tokens[(e<<1)+1];return An.getTokenType(t)}getForeground(e){const t=this._tokens[(e<<1)+1];return An.getForeground(t)}getClassName(e){const t=this._tokens[(e<<1)+1];return An.getClassNameFromMetadata(t)}getInlineStyle(e,t){const i=this._tokens[(e<<1)+1];return An.getInlineStyleFromMetadata(i,t)}getPresentation(e){const t=this._tokens[(e<<1)+1];return An.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return Vi.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new AA(this,e,t,i)}static convertToEndOffset(e,t){const n=(e.length>>>1)-1;for(let s=0;s>>1)-1;for(;it&&(n=s)}return i}withInserted(e){if(e.length===0)return this;let t=0,i=0,n="";const s=new Array;let r=0;for(;;){const a=tr){n+=this._text.substring(r,l.offset);const d=this._tokens[(t<<1)+1];s.push(n.length,d),r=l.offset}n+=l.text,s.push(n.length,l.tokenMetadata),i++}else break}return new Vi(new Uint32Array(s),n,this.languageIdCodec)}getTokenText(e){const t=this.getStartOffset(e),i=this.getEndOffset(e);return this._text.substring(t,i)}forEach(e){const t=this.getCount();for(let i=0;i>>0;class AA{constructor(e,t,i,n){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=n,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let s=this._firstTokenIndex,r=e.getCount();s=i);s++)this._tokensCount++}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof AA?this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount):!1}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const t=this._firstTokenIndex+e,i=this._source.getStartOffset(t),n=this._source.getEndOffset(t);let s=this._source.getTokenText(t);return ithis._endOffset&&(s=s.substring(0,s.length-(n-this._endOffset))),s}forEach(e){for(let t=0;t=s||(a[l++]=new ws(Math.max(1,d.startColumn-n+1),Math.min(r+1,d.endColumn-n+1),d.className,d.type));return a}static filter(e,t,i,n){if(e.length===0)return[];const s=[];let r=0;for(let a=0,l=e.length;at||c.isEmpty()&&(d.type===0||d.type===3))continue;const h=c.startLineNumber===t?c.startColumn:i,u=c.endLineNumber===t?c.endColumn:n;s[r++]=new ws(h,u,d.inlineClassName,d.type)}return s}static _typeCompare(e,t){const i=[2,0,1,3];return i[e]-i[t]}static compare(e,t){if(e.startColumn!==t.startColumn)return e.startColumn-t.startColumn;if(e.endColumn!==t.endColumn)return e.endColumn-t.endColumn;const i=ws._typeCompare(e.type,t.type);return i!==0?i:e.className!==t.className?e.className0&&this.stopOffsets[0]0&&t=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t),this.metadata.splice(n,0,i);break}this.count++}}class XY{static normalize(e,t){if(t.length===0)return[];const i=[],n=new nS;let s=0;for(let r=0,a=t.length;r1){const p=e.charCodeAt(d-2);sn(p)&&d--}if(c>1){const p=e.charCodeAt(c-2);sn(p)&&c--}const g=d-1,f=c-2;s=n.consumeLowerThan(g,s,i),n.count===0&&(s=g),n.insert(f,h,u)}return n.consumeLowerThan(1073741824,s,i),i}}class gn{constructor(e,t,i,n){this.endIndex=e,this.type=t,this.metadata=i,this.containsRTL=n,this._linePartBrand=void 0}isWhitespace(){return!!(this.metadata&1)}isPseudoAfter(){return!!(this.metadata&4)}}class RW{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class Kh{constructor(e,t,i,n,s,r,a,l,d,c,h,u,g,f,p,_,v,b,C){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=n,this.isBasicASCII=s,this.containsRTL=r,this.fauxIndentLength=a,this.lineTokens=l,this.lineDecorations=d.sort(ws.compare),this.tabSize=c,this.startVisibleColumn=h,this.spaceWidth=u,this.stopRenderingLineAfter=p,this.renderWhitespace=_==="all"?4:_==="boundary"?1:_==="selection"?2:_==="trailing"?3:0,this.renderControlCharacters=v,this.fontLigatures=b,this.selectionsOnLine=C&&C.sort((L,D)=>L.startOffset>>16}static getCharIndex(e){return(e&65535)>>>0}constructor(e,t){this.length=e,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(e,t,i,n){const s=(t<<16|i<<0)>>>0;this._data[e-1]=s,this._horizontalOffset[e-1]=n}getHorizontalOffset(e){return this._horizontalOffset.length===0?0:this._horizontalOffset[e-1]}charOffsetToPartData(e){return this.length===0?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){const t=this.charOffsetToPartData(e-1),i=al.getPartIndex(t),n=al.getCharIndex(t);return new AW(i,n)}getColumn(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1}partDataToCharOffset(e,t,i){if(this.length===0)return 0;const n=(e<<16|i<<0)>>>0;let s=0,r=this.length-1;for(;s+1>>1,_=this._data[p];if(_===n)return p;_>n?r=p:s=p}if(s===r)return s;const a=this._data[s],l=this._data[r];if(a===n)return s;if(l===n)return r;const d=al.getPartIndex(a),c=al.getCharIndex(a),h=al.getPartIndex(l);let u;d!==h?u=t:u=al.getCharIndex(l);const g=i-c,f=u-i;return g<=f?s:r}}class UE{constructor(e,t,i){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}function M0(o,e){if(o.lineContent.length===0){if(o.lineDecorations.length>0){e.appendString("");let t=0,i=0,n=0;for(const r of o.lineDecorations)(r.type===1||r.type===2)&&(e.appendString(''),r.type===1&&(n|=1,t++),r.type===2&&(n|=2,i++));e.appendString("");const s=new al(1,t+i);return s.setColumnInfo(1,t,0,0),new UE(s,!1,n)}return e.appendString(""),new UE(new al(0,0),!1,0)}return aQ(tQ(o),e)}class JY{constructor(e,t,i,n){this.characterMapping=e,this.html=t,this.containsRTL=i,this.containsForeignElements=n}}function uL(o){const e=new Tp(1e4),t=M0(o,e);return new JY(t.characterMapping,e.build(),t.containsRTL,t.containsForeignElements)}class eQ{constructor(e,t,i,n,s,r,a,l,d,c,h,u,g,f,p,_){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.len=n,this.isOverflowing=s,this.overflowingCharCount=r,this.parts=a,this.containsForeignElements=l,this.fauxIndentLength=d,this.tabSize=c,this.startVisibleColumn=h,this.containsRTL=u,this.spaceWidth=g,this.renderSpaceCharCode=f,this.renderWhitespace=p,this.renderControlCharacters=_}}function tQ(o){const e=o.lineContent;let t,i,n;o.stopRenderingLineAfter!==-1&&o.stopRenderingLineAfter0){for(let a=0,l=o.lineDecorations.length;a0&&(s[r++]=new gn(i,"",0,!1));let a=i;for(let l=0,d=t.getCount();l=n){const g=e?Bm(o.substring(a,n)):!1;s[r++]=new gn(n,h,0,g);break}const u=e?Bm(o.substring(a,c)):!1;s[r++]=new gn(c,h,0,u),a=c}return s}function nQ(o,e,t){let i=0;const n=[];let s=0;if(t)for(let r=0,a=e.length;r=50&&(n[s++]=new gn(g+1,c,h,u),f=g+1,g=-1);f!==d&&(n[s++]=new gn(d,c,h,u))}else n[s++]=l;i=d}else for(let r=0,a=e.length;r50){const h=l.type,u=l.metadata,g=l.containsRTL,f=Math.ceil(c/50);for(let p=1;p=8234&&o<=8238||o>=8294&&o<=8297||o>=8206&&o<=8207||o===1564}function sQ(o,e){const t=[];let i=new gn(0,"",0,!1),n=0;for(const s of e){const r=s.endIndex;for(;ni.endIndex&&(i=new gn(n,s.type,s.metadata,s.containsRTL),t.push(i)),i=new gn(n+1,"mtkcontrol",s.metadata,!1),t.push(i))}n>i.endIndex&&(i=new gn(r,s.type,s.metadata,s.containsRTL),t.push(i))}return t}function oQ(o,e,t,i){const n=o.continuesWithWrappedLine,s=o.fauxIndentLength,r=o.tabSize,a=o.startVisibleColumn,l=o.useMonospaceOptimizations,d=o.selectionsOnLine,c=o.renderWhitespace===1,h=o.renderWhitespace===3,u=o.renderSpaceWidth!==o.spaceWidth,g=[];let f=0,p=0,_=i[p].type,v=i[p].containsRTL,b=i[p].endIndex;const C=i.length;let w=!1,S=ss(e),L;S===-1?(w=!0,S=t,L=t):L=ba(e);let D=!1,I=0,T=d&&d[I],V=a%r;for(let A=s;A=T.endOffset&&(I++,T=d&&d[I]);let j;if(AL)j=!0;else if(B===9)j=!0;else if(B===32)if(c)if(D)j=!0;else{const X=A+1A),j&&h&&(j=w||A>L),j&&v&&A>=S&&A<=L&&(j=!1),D){if(!j||!l&&V>=r){if(u){const X=f>0?g[f-1].endIndex:s;for(let pe=X+1;pe<=A;pe++)g[f++]=new gn(pe,"mtkw",1,!1)}else g[f++]=new gn(A,"mtkw",1,!1);V=V%r}}else(A===b||j&&A>s)&&(g[f++]=new gn(A,_,0,v),V=V%r);for(B===9?V=r:wh(B)?V+=2:V++,D=j;A===b&&(p++,p0?e.charCodeAt(t-1):0,B=t>1?e.charCodeAt(t-2):0;A===32&&B!==32&&B!==9||(P=!0)}else P=!0;if(P)if(u){const A=f>0?g[f-1].endIndex:s;for(let B=A+1;B<=t;B++)g[f++]=new gn(B,"mtkw",1,!1)}else g[f++]=new gn(t,"mtkw",1,!1);else g[f++]=new gn(t,_,0,v);return g}function rQ(o,e,t,i){i.sort(ws.compare);const n=XY.normalize(o,i),s=n.length;let r=0;const a=[];let l=0,d=0;for(let h=0,u=t.length;hd&&(d=b.startOffset,a[l++]=new gn(d,p,_,v)),b.endOffset+1<=f)d=b.endOffset+1,a[l++]=new gn(d,p+" "+b.className,_|b.metadata,v),r++;else{d=f,a[l++]=new gn(d,p+" "+b.className,_|b.metadata,v);break}}f>d&&(d=f,a[l++]=new gn(d,p,_,v))}const c=t[t.length-1].endIndex;if(r'):e.appendString("");for(let T=0,V=d.length;T=c&&(Ue+=Ne)}}for(pe&&(e.appendString(' style="width:'),e.appendString(String(f*Ee)),e.appendString('px"')),e.appendASCIICharCode(62);w1?e.appendCharCode(8594):e.appendCharCode(65515);for(let Ne=2;Ne<=Ve;Ne++)e.appendCharCode(160)}else Ue=2,Ve=1,e.appendCharCode(p),e.appendCharCode(8204);L+=Ue,D+=Ve,w>=c&&(S+=Ve)}}else for(e.appendASCIICharCode(62);w=c&&(S+=Ue)}ye?I++:I=0,w>=r&&!C&&P.isPseudoAfter()&&(C=!0,b.setColumnInfo(w+1,T,L,D)),e.appendString("")}return C||b.setColumnInfo(r+1,d.length-1,L,D),a&&(e.appendString(''),e.appendString(m("showMore","Show more ({0})",dQ(l))),e.appendString("")),e.appendString(""),new UE(b,g,n)}function lQ(o){return o.toString(16).toUpperCase().padStart(4,"0")}function dQ(o){return o<1024?m("overflow.chars","{0} chars",o):o<1024*1024?`${(o/1024).toFixed(1)} KB`:`${(o/1024/1024).toFixed(1)} MB`}class UF{constructor(e,t,i,n){this._viewportBrand=void 0,this.top=e|0,this.left=t|0,this.width=i|0,this.height=n|0}}class cQ{constructor(e,t){this.tabSize=e,this.data=t}}class PA{constructor(e,t,i,n,s,r,a){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=n,this.startVisibleColumn=s,this.tokens=r,this.inlineDecorations=a}}class Wo{constructor(e,t,i,n,s,r,a,l,d,c){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=n,this.isBasicASCII=Wo.isBasicASCII(i,r),this.containsRTL=Wo.containsRTL(i,this.isBasicASCII,s),this.tokens=a,this.inlineDecorations=l,this.tabSize=d,this.startVisibleColumn=c}static isBasicASCII(e,t){return t?L0(e):!0}static containsRTL(e,t,i){return!t&&i?Bm(e):!1}}class rv{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class hQ{constructor(e,t,i,n){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=n}toInlineDecoration(e){return new rv(new x(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class OW{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class tb{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i}static compareByRenderingProps(e,t){return e.zIndex===t.zIndex?e.colort.color?1:0:e.zIndex-t.zIndex}static equals(e,t){return e.color===t.color&&e.zIndex===t.zIndex&&di(e.data,t.data)}static equalsArr(e,t){return di(e,t,tb.equals)}}function uQ(o){return Array.isArray(o)}function gQ(o){return!uQ(o)}function FW(o){return typeof o=="string"}function $F(o){return!FW(o)}function Nu(o){return!o}function Ud(o,e){return o.ignoreCase&&e?e.toLowerCase():e}function jF(o){return o.replace(/[&<>'"_]/g,"-")}function fQ(o,e){console.log(`${o.languageId}: ${e}`)}function Jt(o,e){return new Error(`${o.languageId}: ${e}`)}function Rc(o,e,t,i,n){const s=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g;let r=null;return e.replace(s,function(a,l,d,c,h,u,g,f,p){return Nu(d)?Nu(c)?!Nu(h)&&h0;){const i=o.tokenizer[t];if(i)return i;const n=t.lastIndexOf(".");n<0?t=null:t=t.substr(0,n)}return null}function pQ(o,e){let t=e;for(;t&&t.length>0;){if(o.stateNames[t])return!0;const n=t.lastIndexOf(".");n<0?t=null:t=t.substr(0,n)}return!1}var _Q=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},vQ=function(o,e){return function(t,i){e(t,i,o)}},$E;const BW=5;class ib{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(e!==null&&e.depth>=this._maxCacheDepth)return new mm(e,t);let i=mm.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let n=this._entries[i];return n||(n=new mm(e,t),this._entries[i]=n,n)}}ib._INSTANCE=new ib(BW);class mm{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;e!==null;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;e!==null&&t!==null;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return e===null&&t===null}equals(e){return mm._equals(this,e)}push(e){return ib.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return ib.create(this.parent,e)}}class zf{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new zf(this.languageId,this.state)}}class Ac{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(t!==null)return new av(e,t);if(e!==null&&e.depth>=this._maxCacheDepth)return new av(e,t);const i=mm.getStackElementId(e);let n=this._entries[i];return n||(n=new av(e,null),this._entries[i]=n,n)}}Ac._INSTANCE=new Ac(BW);class av{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:Ac.create(this.stack,this.embeddedLanguageData)}equals(e){return!(e instanceof av)||!this.stack.equals(e.stack)?!1:this.embeddedLanguageData===null&&e.embeddedLanguageData===null?!0:this.embeddedLanguageData===null||e.embeddedLanguageData===null?!1:this.embeddedLanguageData.equals(e.embeddedLanguageData)}}class bQ{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new Hv(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,n){const s=i.languageId,r=i.state,a=gi.get(s);if(!a)return this.enterLanguage(s),this.emit(n,""),r;const l=a.tokenize(e,t,r);if(n!==0)for(const d of l.tokens)this._tokens.push(new Hv(d.offset+n,d.type,d.language));else this._tokens=this._tokens.concat(l.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,l.endState}finalize(e){return new iA(this._tokens,e)}}class sS{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){const i=this._theme.match(this._currentLanguageId,t)|1024;this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){const n=e!==null?e.length:0,s=t.length,r=i!==null?i.length:0;if(n===0&&s===0&&r===0)return new Uint32Array(0);if(n===0&&s===0)return i;if(s===0&&r===0)return e;const a=new Uint32Array(n+s+r);e!==null&&a.set(e);for(let l=0;l{if(r)return;let l=!1;for(let d=0,c=a.changedLanguages.length;d{a.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))}))}getLoadStatus(){const e=[];for(const t in this._embeddedLanguages){const i=gi.get(t);if(i){if(i instanceof $E){const n=i.getLoadStatus();n.loaded===!1&&e.push(n.promise)}continue}gi.isResolved(t)||e.push(gi.getOrCreate(t))}return e.length===0?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then(t=>{})}}getInitialState(){const e=ib.create(null,this._lexer.start);return Ac.create(e,null)}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return RA(this._languageId,i);const n=new bQ,s=this._tokenize(e,t,i,n);return n.finalize(s)}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return hL(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);const n=new sS(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),s=this._tokenize(e,t,i,n);return n.finalize(s)}_tokenize(e,t,i,n){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,n):this._myTokenize(e,t,i,0,n)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&(i=NC(this._lexer,t.stack.state),!i))throw Jt(this._lexer,"tokenizer state is not defined: "+t.stack.state);let n=-1,s=!1;for(const r of i){if(!$F(r.action)||r.action.nextEmbedded!=="@pop")continue;s=!0;let a=r.resolveRegex(t.stack.state);const l=a.source;if(l.substr(0,4)==="^(?:"&&l.substr(l.length-1,1)===")"){const c=(a.ignoreCase?"i":"")+(a.unicode?"u":"");a=new RegExp(l.substr(4,l.length-5),c)}const d=e.search(a);d===-1||d!==0&&r.matchOnlyAtLineStart||(n===-1||d0&&s.nestedLanguageTokenize(a,!1,i.embeddedLanguageData,n);const l=e.substring(r);return this._myTokenize(l,t,i,n+r,s)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,n,s){s.enterLanguage(this._languageId);const r=e.length,a=t&&this._lexer.includeLF?e+` +`:e,l=a.length;let d=i.embeddedLanguageData,c=i.stack,h=0,u=null,g=!0;for(;g||h=l)break;g=!1;let T=this._lexer.tokenizer[v];if(!T&&(T=NC(this._lexer,v),!T))throw Jt(this._lexer,"tokenizer state is not defined: "+v);const V=a.substr(h);for(const P of T)if((h===0||!P.matchOnlyAtLineStart)&&(b=V.match(P.resolveRegex(v)),b)){C=b[0],w=P.action;break}}if(b||(b=[""],C=""),w||(h=this._lexer.maxStack)throw Jt(this._lexer,"maximum tokenizer stack size reached: ["+c.state+","+c.parent.state+",...]");c=c.push(v)}else if(w.next==="@pop"){if(c.depth<=1)throw Jt(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(S));c=c.pop()}else if(w.next==="@popall")c=c.popall();else{let T=Rc(this._lexer,w.next,C,b,v);if(T[0]==="@"&&(T=T.substr(1)),NC(this._lexer,T))c=c.push(T);else throw Jt(this._lexer,"trying to set a next state '"+T+"' that is undefined in rule: "+this._safeRuleName(S))}}w.log&&typeof w.log=="string"&&fQ(this._lexer,this._lexer.languageId+": "+Rc(this._lexer,w.log,C,b,v))}if(D===null)throw Jt(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(S));const I=T=>{const V=this._languageService.getLanguageIdByLanguageName(T)||this._languageService.getLanguageIdByMimeType(T)||T,P=this._getNestedEmbeddedLanguageData(V);if(h0)throw Jt(this._lexer,"groups cannot be nested: "+this._safeRuleName(S));if(b.length!==D.length+1)throw Jt(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(S));let T=0;for(let V=1;Vo});class OA{static colorizeElement(e,t,i,n){n=n||{};const s=n.theme||"vs",r=n.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!r)return console.error("Mode not detected"),Promise.resolve();const a=t.getLanguageIdByMimeType(r)||r;e.setTheme(s);const l=i.firstChild?i.firstChild.nodeValue:"";i.className+=" "+s;const d=c=>{var h;const u=(h=HD==null?void 0:HD.createHTML(c))!==null&&h!==void 0?h:c;i.innerHTML=u};return this.colorize(t,l||"",a,n).then(d,c=>console.error(c))}static async colorize(e,t,i,n){const s=e.languageIdCodec;let r=4;n&&typeof n.tabSize=="number"&&(r=n.tabSize),dA(t)&&(t=t.substr(1));const a=$l(t);if(!e.isRegisteredLanguageId(i))return KF(a,r,s);const l=await gi.getOrCreate(i);return l?wQ(a,r,l,s):KF(a,r,s)}static colorizeLine(e,t,i,n,s=4){const r=Wo.isBasicASCII(e,t),a=Wo.containsRTL(e,r,i);return uL(new Kh(!1,!0,e,!1,r,a,0,n,[],s,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t,i=4){const n=e.getLineContent(t);e.tokenization.forceTokenization(t);const r=e.tokenization.getLineTokens(t).inflate();return this.colorizeLine(n,e.mightContainNonBasicASCII(),e.mightContainRTL(),r,i)}}function wQ(o,e,t,i){return new Promise((n,s)=>{const r=()=>{const a=SQ(o,e,t,i);if(t instanceof nb){const l=t.getLoadStatus();if(l.loaded===!1){l.promise.then(r,s);return}}n(a)};r()})}function KF(o,e,t){let i=[];const s=new Uint32Array(2);s[0]=0,s[1]=33587200;for(let r=0,a=o.length;r")}return i.join("")}function SQ(o,e,t,i){let n=[],s=t.getInitialState();for(let r=0,a=o.length;r"),s=d.endState}return n.join("")}const qF=2e4;let Tu,iw,jE,nw,KE;function yQ(o){Tu=document.createElement("div"),Tu.className="monaco-aria-container";const e=()=>{const i=document.createElement("div");return i.className="monaco-alert",i.setAttribute("role","alert"),i.setAttribute("aria-atomic","true"),Tu.appendChild(i),i};iw=e(),jE=e();const t=()=>{const i=document.createElement("div");return i.className="monaco-status",i.setAttribute("aria-live","polite"),i.setAttribute("aria-atomic","true"),Tu.appendChild(i),i};nw=t(),KE=t(),o.appendChild(Tu)}function js(o){Tu&&(iw.textContent!==o?(xn(jE),oS(iw,o)):(xn(iw),oS(jE,o)))}function Al(o){Tu&&(nw.textContent!==o?(xn(KE),oS(nw,o)):(xn(nw),oS(KE,o)))}function oS(o,e){xn(o),e.length>qF&&(e=e.substr(0,qF)),o.textContent=e,o.style.visibility="hidden",o.style.visibility="visible"}const FA=ot("markerDecorationsService");var LQ=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},xQ=function(o,e){return function(t,i){e(t,i,o)}};let sb=class{constructor(e,t){}dispose(){}};sb.ID="editor.contrib.markerDecorations";sb=LQ([xQ(1,FA)],sb);vt(sb.ID,sb,0);class WW extends W{constructor(e,t){super(),this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event,this._referenceDomElement=e,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){if(!this._resizeObserver&&this._referenceDomElement){let e=null;const t=()=>{e?this.observe({width:e.width,height:e.height}):this.observe()};let i=!1,n=!1;const s=()=>{if(i&&!n)try{i=!1,n=!0,t()}finally{ao(De(this._referenceDomElement),()=>{n=!1,s()})}};this._resizeObserver=new ResizeObserver(r=>{r&&r[0]&&r[0].contentRect?e={width:r[0].contentRect.width,height:r[0].contentRect.height}:e=null,i=!0,s()}),this._resizeObserver.observe(this._referenceDomElement)}}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let i=0,n=0;t?(i=t.width,n=t.height):this._referenceDomElement&&(i=this._referenceDomElement.clientWidth,n=this._referenceDomElement.clientHeight),i=Math.max(5,i),n=Math.max(5,n),(this._width!==i||this._height!==n)&&(this._width=i,this._height=n,e&&this._onDidChange.fire())}}class lh{constructor(e,t){this.key=e,this.migrate=t}apply(e){const t=lh._read(e,this.key),i=s=>lh._read(e,s),n=(s,r)=>lh._write(e,s,r);this.migrate(t,i,n)}static _read(e,t){if(typeof e>"u")return;const i=t.indexOf(".");if(i>=0){const n=t.substring(0,i);return this._read(e[n],t.substring(i+1))}return e[t]}static _write(e,t,i){const n=t.indexOf(".");if(n>=0){const s=t.substring(0,n);e[s]=e[s]||{},this._write(e[s],t.substring(n+1),i);return}e[t]=i}}lh.items=[];function Wa(o,e){lh.items.push(new lh(o,e))}function co(o,e){Wa(o,(t,i,n)=>{if(typeof t<"u"){for(const[s,r]of e)if(t===s){n(o,r);return}}})}function DQ(o){lh.items.forEach(e=>e.apply(o))}co("wordWrap",[[!0,"on"],[!1,"off"]]);co("lineNumbers",[[!0,"on"],[!1,"off"]]);co("cursorBlinking",[["visible","solid"]]);co("renderWhitespace",[[!0,"boundary"],[!1,"none"]]);co("renderLineHighlight",[[!0,"line"],[!1,"none"]]);co("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]);co("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]);co("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]);co("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]);co("autoIndent",[[!1,"advanced"],[!0,"full"]]);co("matchBrackets",[[!0,"always"],[!1,"never"]]);co("renderFinalNewline",[[!0,"on"],[!1,"off"]]);co("cursorSmoothCaretAnimation",[[!0,"on"],[!1,"off"]]);co("occurrencesHighlight",[[!0,"singleFile"],[!1,"off"]]);co("wordBasedSuggestions",[[!0,"matchingDocuments"],[!1,"off"]]);Wa("autoClosingBrackets",(o,e,t)=>{o===!1&&(t("autoClosingBrackets","never"),typeof e("autoClosingQuotes")>"u"&&t("autoClosingQuotes","never"),typeof e("autoSurround")>"u"&&t("autoSurround","never"))});Wa("renderIndentGuides",(o,e,t)=>{typeof o<"u"&&(t("renderIndentGuides",void 0),typeof e("guides.indentation")>"u"&&t("guides.indentation",!!o))});Wa("highlightActiveIndentGuide",(o,e,t)=>{typeof o<"u"&&(t("highlightActiveIndentGuide",void 0),typeof e("guides.highlightActiveIndentation")>"u"&&t("guides.highlightActiveIndentation",!!o))});const kQ={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"};Wa("suggest.filteredTypes",(o,e,t)=>{if(o&&typeof o=="object"){for(const i of Object.entries(kQ))o[i[0]]===!1&&typeof e(`suggest.${i[1]}`)>"u"&&t(`suggest.${i[1]}`,!1);t("suggest.filteredTypes",void 0)}});Wa("quickSuggestions",(o,e,t)=>{if(typeof o=="boolean"){const i=o?"on":"off";t("quickSuggestions",{comments:i,strings:i,other:i})}});Wa("experimental.stickyScroll.enabled",(o,e,t)=>{typeof o=="boolean"&&(t("experimental.stickyScroll.enabled",void 0),typeof e("stickyScroll.enabled")>"u"&&t("stickyScroll.enabled",o))});Wa("experimental.stickyScroll.maxLineCount",(o,e,t)=>{typeof o=="number"&&(t("experimental.stickyScroll.maxLineCount",void 0),typeof e("stickyScroll.maxLineCount")>"u"&&t("stickyScroll.maxLineCount",o))});Wa("codeActionsOnSave",(o,e,t)=>{if(o&&typeof o=="object"){let i=!1;const n={};for(const s of Object.entries(o))typeof s[1]=="boolean"?(i=!0,n[s[0]]=s[1]?"explicit":"never"):n[s[0]]=s[1];i&&t("codeActionsOnSave",n)}});Wa("codeActionWidget.includeNearbyQuickfixes",(o,e,t)=>{typeof o=="boolean"&&(t("codeActionWidget.includeNearbyQuickfixes",void 0),typeof e("codeActionWidget.includeNearbyQuickFixes")>"u"&&t("codeActionWidget.includeNearbyQuickFixes",o))});Wa("lightbulb.enabled",(o,e,t)=>{typeof o=="boolean"&&t("lightbulb.enabled",o?void 0:"off")});class IQ{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new O,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus)}}const jm=new IQ,ho=ot("accessibilityService"),R0=new de("accessibilityModeEnabled",!1);var EQ=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},NQ=function(o,e){return function(t,i){e(t,i,o)}};let qE=class extends W{constructor(e,t,i,n,s){super(),this._accessibilityService=s,this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new O),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._glyphMarginDecorationLaneCount=1,this._computeOptionsMemory=new i9,this.isSimpleWidget=e,this.contextMenuId=t,this._containerObserver=this._register(new WW(n,i.dimension)),this._targetWindowId=De(n).vscodeWindowId,this._rawOptions=GF(i),this._validatedOptions=Pc.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(13)&&this._containerObserver.startObserving(),this._register(Qo.onDidChangeZoomLevel(()=>this._recomputeOptions())),this._register(jm.onDidChangeTabFocus(()=>this._recomputeOptions())),this._register(this._containerObserver.onDidChange(()=>this._recomputeOptions())),this._register(EE.onDidChange(()=>this._recomputeOptions())),this._register(Gv.getInstance(De(n)).onDidChange(()=>this._recomputeOptions())),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions()))}_recomputeOptions(){const e=this._computeOptions(),t=Pc.checkEquals(this.options,e);t!==null&&(this.options=e,this._onDidChangeFast.fire(t),this._onDidChange.fire(t))}_computeOptions(){const e=this._readEnvConfiguration(),t=Yu.createFromValidatedSettings(this._validatedOptions,e.pixelRatio,this.isSimpleWidget),i=this._readFontInfo(t),n={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight-this._reservedHeight,fontInfo:i,extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:jm.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport,glyphMarginDecorationLaneCount:this._glyphMarginDecorationLaneCount};return Pc.computeOptions(this._validatedOptions,n)}_readEnvConfiguration(){return{extraEditorClassName:MQ(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:Zu||lr,pixelRatio:Gv.getInstance(jO(this._targetWindowId,!0).window).value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(e){return EE.readFontInfo(jO(this._targetWindowId,!0).window,e)}getRawOptions(){return this._rawOptions}updateOptions(e){const t=GF(e);Pc.applyUpdate(this._rawOptions,t)&&(this._validatedOptions=Pc.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(e){this._containerObserver.observe(e)}setIsDominatedByLongLines(e){this._isDominatedByLongLines!==e&&(this._isDominatedByLongLines=e,this._recomputeOptions())}setModelLineCount(e){const t=TQ(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())}setViewLineCount(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}setReservedHeight(e){this._reservedHeight!==e&&(this._reservedHeight=e,this._recomputeOptions())}setGlyphMarginDecorationLaneCount(e){this._glyphMarginDecorationLaneCount!==e&&(this._glyphMarginDecorationLaneCount=e,this._recomputeOptions())}};qE=EQ([NQ(4,ho)],qE);function TQ(o){let e=0;for(;o;)o=Math.floor(o/10),e++;return e||1}function MQ(){let o="";return!Yd&&!I9&&(o+="no-user-select "),Yd&&(o+="no-minimap-shadow ",o+="enable-user-select "),it&&(o+="mac "),o}class RQ{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class AQ{constructor(){this._values=[]}_read(e){if(e>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[e]}get(e){return this._read(e)}_write(e,t){this._values[e]=t}}class Pc{static validateOptions(e){const t=new RQ;for(const i of Ff){const n=i.name==="_never_"?void 0:e[i.name];t._write(i.id,i.validate(n))}return t}static computeOptions(e,t){const i=new AQ;for(const n of Ff)i._write(n.id,n.compute(t,i,e._read(n.id)));return i}static _deepEquals(e,t){if(typeof e!="object"||typeof t!="object"||!e||!t)return e===t;if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)?di(e,t):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!Pc._deepEquals(e[i],t[i]))return!1;return!0}static checkEquals(e,t){const i=[];let n=!1;for(const s of Ff){const r=!Pc._deepEquals(e._read(s.id),t._read(s.id));i[s.id]=r,r&&(n=!0)}return n?new t9(i):null}static applyUpdate(e,t){let i=!1;for(const n of Ff)if(t.hasOwnProperty(n.name)){const s=n.applyUpdate(e[n.name],t[n.name]);e[n.name]=s.newValue,i=i||s.didChange}return i}}function GF(o){const e=hd(o);return DQ(e),e}var Uc;(function(o){const e={total:0,min:Number.MAX_VALUE,max:0},t={...e},i={...e},n={...e};let s=0;const r={keydown:0,input:0,render:0};function a(){v(),performance.mark("inputlatency/start"),performance.mark("keydown/start"),r.keydown=1,queueMicrotask(l)}o.onKeyDown=a;function l(){r.keydown===1&&(performance.mark("keydown/end"),r.keydown=2)}function d(){performance.mark("input/start"),r.input=1,_()}o.onBeforeInput=d;function c(){r.input===0&&d(),queueMicrotask(h)}o.onInput=c;function h(){r.input===1&&(performance.mark("input/end"),r.input=2)}function u(){v()}o.onKeyUp=u;function g(){v()}o.onSelectionChange=g;function f(){r.keydown===2&&r.input===2&&r.render===0&&(performance.mark("render/start"),r.render=1,queueMicrotask(p),_())}o.onRenderStart=f;function p(){r.render===1&&(performance.mark("render/end"),r.render=2)}function _(){setTimeout(v)}function v(){r.keydown===2&&r.input===2&&r.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"),b("keydown",e),b("input",t),b("render",i),b("inputlatency",n),s++,C())}function b(D,I){const T=performance.getEntriesByName(D)[0].duration;I.total+=T,I.min=Math.min(I.min,T),I.max=Math.max(I.max,T)}function C(){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"),r.keydown=0,r.input=0,r.render=0}function w(){if(s===0)return;const D={keydown:S(e),input:S(t),render:S(i),total:S(n),sampleCount:s};return L(e),L(t),L(i),L(n),s=0,D}o.getAndClearMeasurements=w;function S(D){return{average:D.total/s,max:D.max,min:D.min}}function L(D){D.total=0,D.min=Number.MAX_VALUE,D.max=0}})(Uc||(Uc={}));class Rp{constructor(){this._hooks=new G,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;const i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,i,n,s){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=n,this._onStopCallback=s;let r=e;try{e.setPointerCapture(t),this._hooks.add(Ce(()=>{try{e.releasePointerCapture(t)}catch{}}))}catch{r=De(e)}this._hooks.add(U(r,ee.POINTER_MOVE,a=>{if(a.buttons!==i){this.stopMonitoring(!0);return}a.preventDefault(),this._pointerMoveCallback(a)})),this._hooks.add(U(r,ee.POINTER_UP,a=>this.stopMonitoring(!0)))}}function BA(o){return`--vscode-${o.replace(/\./g,"-")}`}function he(o){return`var(${BA(o)})`}function PQ(o,e){return`var(${BA(o)}, ${e})`}const HW={ColorContribution:"base.contributions.colors"};class OQ{constructor(){this._onDidChangeSchema=new O,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i,n=!1,s){const r={id:e,description:i,defaults:t,needsTransparency:n,deprecationMessage:s};this.colorsById[e]=r;const a={type:"string",description:i,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return s&&(a.deprecationMessage=s),n&&(a.pattern="^#(?:(?[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",a.patternErrorMessage="This color must be transparent or it will obscure content"),this.colorSchema.properties[e]=a,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(i),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map(e=>this.colorsById[e])}resolveDefaultColor(e,t){const i=this.colorsById[e];if(i&&i.defaults){const n=i.defaults[t.type];return Xr(n,t)}}getColorSchema(){return this.colorSchema}toString(){const e=(t,i)=>{const n=t.indexOf(".")===-1?0:1,s=i.indexOf(".")===-1?0:1;return n!==s?n-s:t.localeCompare(i)};return Object.keys(this.colorsById).sort(e).map(t=>`- \`${t}\`: ${this.colorsById[t].description}`).join(` +`)}}const gL=new OQ;hi.add(HW.ColorContribution,gL);function N(o,e,t,i,n){return gL.registerColor(o,e,t,i,n)}function FQ(o,e){var t,i,n,s;switch(o.op){case 0:return(t=Xr(o.value,e))===null||t===void 0?void 0:t.darken(o.factor);case 1:return(i=Xr(o.value,e))===null||i===void 0?void 0:i.lighten(o.factor);case 2:return(n=Xr(o.value,e))===null||n===void 0?void 0:n.transparent(o.factor);case 3:{const r=Xr(o.background,e);return r?(s=Xr(o.value,e))===null||s===void 0?void 0:s.makeOpaque(r):Xr(o.value,e)}case 4:for(const r of o.values){const a=Xr(r,e);if(a)return a}return;case 6:return Xr(e.defines(o.if)?o.then:o.else,e);case 5:{const r=Xr(o.value,e);if(!r)return;const a=Xr(o.background,e);return a?r.isDarkerThan(a)?z.getLighterColor(r,a,o.factor).transparent(o.transparency):z.getDarkerColor(r,a,o.factor).transparent(o.transparency):r.transparent(o.factor*o.transparency)}default:throw oL()}}function Kg(o,e){return{op:0,value:o,factor:e}}function wa(o,e){return{op:1,value:o,factor:e}}function Se(o,e){return{op:2,value:o,factor:e}}function ob(...o){return{op:4,values:o}}function BQ(o,e,t){return{op:6,if:o,then:e,else:t}}function ZF(o,e,t,i){return{op:5,value:o,background:e,factor:t,transparency:i}}function Xr(o,e){if(o!==null){if(typeof o=="string")return o[0]==="#"?z.fromHex(o):e.getColor(o);if(o instanceof z)return o;if(typeof o=="object")return FQ(o,e)}}const VW="vscode://schemas/workbench-colors",zW=hi.as(cL.JSONContribution);zW.registerSchema(VW,gL.getColorSchema());const YF=new At(()=>zW.notifySchemaChanged(VW),200);gL.onDidChangeSchema(()=>{YF.isScheduled()||YF.schedule()});const re=N("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},m("foreground","Overall foreground color. This color is only used if not overridden by a component."));N("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},m("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component."));N("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},m("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component."));N("descriptionForeground",{light:"#717171",dark:Se(re,.7),hcDark:Se(re,.7),hcLight:Se(re,.7)},m("descriptionForeground","Foreground color for description text providing additional information, for example for a label."));const vl=N("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},m("iconForeground","The default color for icons in the workbench.")),ir=N("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},m("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),at=N("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},m("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),ti=N("contrastActiveBorder",{light:null,dark:null,hcDark:ir,hcLight:ir},m("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast."));N("selection.background",{light:null,dark:null,hcDark:null,hcLight:null},m("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."));const WQ=N("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},m("textLinkForeground","Foreground color for links in text."));N("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},m("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover."));N("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:z.black,hcLight:"#292929"},m("textSeparatorForeground","Color for text separators."));N("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},m("textPreformatForeground","Foreground color for preformatted text segments."));N("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},m("textPreformatBackground","Background color for preformatted text segments."));N("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},m("textBlockQuoteBackground","Background color for block quotes in text."));N("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:z.white,hcLight:"#292929"},m("textBlockQuoteBorder","Border color for block quotes in text."));N("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:z.black,hcLight:"#F2F2F2"},m("textCodeBlockBackground","Background color for code blocks in text."));N("sash.hoverBorder",{dark:ir,light:ir,hcDark:ir,hcLight:ir},m("sashActiveBorder","Border color of active sashes."));const sw=N("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:z.black,hcLight:"#0F4A85"},m("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),HQ=N("badge.foreground",{dark:z.white,light:"#333",hcDark:z.white,hcLight:z.white},m("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),T_=N("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},m("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),M_=N("scrollbarSlider.background",{dark:z.fromHex("#797979").transparent(.4),light:z.fromHex("#646464").transparent(.4),hcDark:Se(at,.6),hcLight:Se(at,.4)},m("scrollbarSliderBackground","Scrollbar slider background color.")),R_=N("scrollbarSlider.hoverBackground",{dark:z.fromHex("#646464").transparent(.7),light:z.fromHex("#646464").transparent(.7),hcDark:Se(at,.8),hcLight:Se(at,.8)},m("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),A_=N("scrollbarSlider.activeBackground",{dark:z.fromHex("#BFBFBF").transparent(.4),light:z.fromHex("#000000").transparent(.6),hcDark:at,hcLight:at},m("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),VQ=N("progressBar.background",{dark:z.fromHex("#0E70C0"),light:z.fromHex("#0E70C0"),hcDark:at,hcLight:at},m("progressBarBackground","Background color of the progress bar that can show for long running operations.")),rn=N("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:z.black,hcLight:z.white},m("editorBackground","Editor background color.")),nr=N("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:z.white,hcLight:re},m("editorForeground","Editor default foreground color."));N("editorStickyScroll.background",{light:rn,dark:rn,hcDark:rn,hcLight:rn},m("editorStickyScrollBackground","Background color of sticky scroll in the editor"));N("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:z.fromHex("#0F4A85").transparent(.1)},m("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor"));N("editorStickyScroll.border",{dark:null,light:null,hcDark:at,hcLight:at},m("editorStickyScrollBorder","Border color of sticky scroll in the editor"));N("editorStickyScroll.shadow",{dark:T_,light:T_,hcDark:T_,hcLight:T_},m("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor"));const Ti=N("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:z.white},m("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),Dd=N("editorWidget.foreground",{dark:re,light:re,hcDark:re,hcLight:re},m("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),kd=N("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:at,hcLight:at},m("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."));N("editorWidget.resizeBorder",{light:null,dark:null,hcDark:null,hcLight:null},m("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."));N("editorError.background",{dark:null,light:null,hcDark:null,hcLight:null},m("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0);const bl=N("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},m("editorError.foreground","Foreground color of error squigglies in the editor.")),zQ=N("editorError.border",{dark:null,light:null,hcDark:z.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},m("errorBorder","If set, color of double underlines for errors in the editor.")),TC=N("editorWarning.background",{dark:null,light:null,hcDark:null,hcLight:null},m("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),ns=N("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},m("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),rb=N("editorWarning.border",{dark:null,light:null,hcDark:z.fromHex("#FFCC00").transparent(.8),hcLight:z.fromHex("#FFCC00").transparent(.8)},m("warningBorder","If set, color of double underlines for warnings in the editor."));N("editorInfo.background",{dark:null,light:null,hcDark:null,hcLight:null},m("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0);const Vs=N("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},m("editorInfo.foreground","Foreground color of info squigglies in the editor.")),ab=N("editorInfo.border",{dark:null,light:null,hcDark:z.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},m("infoBorder","If set, color of double underlines for infos in the editor.")),UQ=N("editorHint.foreground",{dark:z.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},m("editorHint.foreground","Foreground color of hint squigglies in the editor."));N("editorHint.border",{dark:null,light:null,hcDark:z.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},m("hintBorder","If set, color of double underlines for hints in the editor."));const $Q=N("editorLink.activeForeground",{dark:"#4E94CE",light:z.blue,hcDark:z.cyan,hcLight:"#292929"},m("activeLinkForeground","Color of active links.")),$c=N("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},m("editorSelectionBackground","Color of the editor selection.")),jQ=N("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:z.white},m("editorSelectionForeground","Color of the selected text for high contrast.")),UW=N("editor.inactiveSelectionBackground",{light:Se($c,.5),dark:Se($c,.5),hcDark:Se($c,.7),hcLight:Se($c,.5)},m("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),WA=N("editor.selectionHighlightBackground",{light:ZF($c,rn,.3,.6),dark:ZF($c,rn,.3,.6),hcDark:null,hcLight:null},m("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);N("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:ti,hcLight:ti},m("editorSelectionHighlightBorder","Border color for regions with the same content as the selection."));N("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},m("editorFindMatch","Color of the current search match."));const KQ=N("editor.findMatchForeground",{light:null,dark:null,hcDark:null,hcLight:null},m("editorFindMatchForeground","Text color of the current search match.")),Id=N("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},m("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),qQ=N("editor.findMatchHighlightForeground",{light:null,dark:null,hcDark:null,hcLight:null},m("findMatchHighlightForeground","Foreground color of the other search matches."),!0);N("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},m("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0);N("editor.findMatchBorder",{light:null,dark:null,hcDark:ti,hcLight:ti},m("editorFindMatchBorder","Border color of the current search match."));const jc=N("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:ti,hcLight:ti},m("findMatchHighlightBorder","Border color of the other search matches.")),GQ=N("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:Se(ti,.4),hcLight:Se(ti,.4)},m("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0);N("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},m("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);const rS=N("editorHoverWidget.background",{light:Ti,dark:Ti,hcDark:Ti,hcLight:Ti},m("hoverBackground","Background color of the editor hover."));N("editorHoverWidget.foreground",{light:Dd,dark:Dd,hcDark:Dd,hcLight:Dd},m("hoverForeground","Foreground color of the editor hover."));const $W=N("editorHoverWidget.border",{light:kd,dark:kd,hcDark:kd,hcLight:kd},m("hoverBorder","Border color of the editor hover."));N("editorHoverWidget.statusBarBackground",{dark:wa(rS,.2),light:Kg(rS,.05),hcDark:Ti,hcLight:Ti},m("statusBarBackground","Background color of the editor hover status bar."));const Ed=N("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:z.white,hcLight:z.black},m("editorInlayHintForeground","Foreground color of inline hints")),Nd=N("editorInlayHint.background",{dark:Se(sw,.1),light:Se(sw,.1),hcDark:Se(z.white,.1),hcLight:Se(sw,.1)},m("editorInlayHintBackground","Background color of inline hints")),ZQ=N("editorInlayHint.typeForeground",{dark:Ed,light:Ed,hcDark:Ed,hcLight:Ed},m("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),YQ=N("editorInlayHint.typeBackground",{dark:Nd,light:Nd,hcDark:Nd,hcLight:Nd},m("editorInlayHintBackgroundTypes","Background color of inline hints for types")),QQ=N("editorInlayHint.parameterForeground",{dark:Ed,light:Ed,hcDark:Ed,hcLight:Ed},m("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),XQ=N("editorInlayHint.parameterBackground",{dark:Nd,light:Nd,hcDark:Nd,hcLight:Nd},m("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),MC=N("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},m("editorLightBulbForeground","The color used for the lightbulb actions icon."));N("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},m("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon."));N("editorLightBulbAi.foreground",{dark:MC,light:MC,hcDark:MC,hcLight:MC},m("editorLightBulbAiForeground","The color used for the lightbulb AI icon."));N("editor.snippetTabstopHighlightBackground",{dark:new z(new gt(124,124,124,.3)),light:new z(new gt(10,50,100,.2)),hcDark:new z(new gt(124,124,124,.3)),hcLight:new z(new gt(10,50,100,.2))},m("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop."));N("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hcDark:null,hcLight:null},m("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop."));N("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},m("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet."));N("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new z(new gt(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},m("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet."));const GE=new z(new gt(155,185,85,.2)),ZE=new z(new gt(255,0,0,.2)),JQ=N("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},m("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),eX=N("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},m("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0);N("diffEditor.insertedLineBackground",{dark:GE,light:GE,hcDark:null,hcLight:null},m("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0);N("diffEditor.removedLineBackground",{dark:ZE,light:ZE,hcDark:null,hcLight:null},m("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0);N("diffEditorGutter.insertedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},m("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted."));N("diffEditorGutter.removedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},m("diffEditorRemovedLineGutter","Background color for the margin where lines got removed."));const tX=N("diffEditorOverview.insertedForeground",{dark:null,light:null,hcDark:null,hcLight:null},m("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),iX=N("diffEditorOverview.removedForeground",{dark:null,light:null,hcDark:null,hcLight:null},m("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content."));N("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},m("diffEditorInsertedOutline","Outline color for the text that got inserted."));N("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},m("diffEditorRemovedOutline","Outline color for text that got removed."));N("diffEditor.border",{dark:null,light:null,hcDark:at,hcLight:at},m("diffEditorBorder","Border color between the two text editors."));N("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},m("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views."));N("diffEditor.unchangedRegionBackground",{dark:"sideBar.background",light:"sideBar.background",hcDark:"sideBar.background",hcLight:"sideBar.background"},m("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor."));N("diffEditor.unchangedRegionForeground",{dark:"foreground",light:"foreground",hcDark:"foreground",hcLight:"foreground"},m("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor."));N("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},m("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor."));const Td=N("widget.shadow",{dark:Se(z.black,.36),light:Se(z.black,.16),hcDark:null,hcLight:null},m("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),jW=N("widget.border",{dark:null,light:null,hcDark:at,hcLight:at},m("widgetBorder","Border color of widgets such as find/replace inside the editor.")),QF=N("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},m("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"));N("toolbar.hoverOutline",{dark:null,light:null,hcDark:ti,hcLight:ti},m("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse"));N("toolbar.activeBackground",{dark:wa(QF,.1),light:Kg(QF,.1),hcDark:null,hcLight:null},m("toolbarActiveBackground","Toolbar background when holding the mouse over actions"));const nX=N("breadcrumb.foreground",{light:Se(re,.8),dark:Se(re,.8),hcDark:Se(re,.8),hcLight:Se(re,.8)},m("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),sX=N("breadcrumb.background",{light:rn,dark:rn,hcDark:rn,hcLight:rn},m("breadcrumbsBackground","Background color of breadcrumb items.")),XF=N("breadcrumb.focusForeground",{light:Kg(re,.2),dark:wa(re,.1),hcDark:wa(re,.1),hcLight:wa(re,.1)},m("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),oX=N("breadcrumb.activeSelectionForeground",{light:Kg(re,.2),dark:wa(re,.1),hcDark:wa(re,.1),hcLight:wa(re,.1)},m("breadcrumbsSelectedForeground","Color of selected breadcrumb items."));N("breadcrumbPicker.background",{light:Ti,dark:Ti,hcDark:Ti,hcLight:Ti},m("breadcrumbsSelectedBackground","Background color of breadcrumb item picker."));const KW=.5,JF=z.fromHex("#40C8AE").transparent(KW),e4=z.fromHex("#40A6FF").transparent(KW),t4=z.fromHex("#606060").transparent(.4),Pr=.4,Km=1,Uf=N("merge.currentHeaderBackground",{dark:JF,light:JF,hcDark:null,hcLight:null},m("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);N("merge.currentContentBackground",{dark:Se(Uf,Pr),light:Se(Uf,Pr),hcDark:Se(Uf,Pr),hcLight:Se(Uf,Pr)},m("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);const $f=N("merge.incomingHeaderBackground",{dark:e4,light:e4,hcDark:null,hcLight:null},m("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);N("merge.incomingContentBackground",{dark:Se($f,Pr),light:Se($f,Pr),hcDark:Se($f,Pr),hcLight:Se($f,Pr)},m("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);const jf=N("merge.commonHeaderBackground",{dark:t4,light:t4,hcDark:null,hcLight:null},m("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);N("merge.commonContentBackground",{dark:Se(jf,Pr),light:Se(jf,Pr),hcDark:Se(jf,Pr),hcLight:Se(jf,Pr)},m("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);const qm=N("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},m("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."));N("editorOverviewRuler.currentContentForeground",{dark:Se(Uf,Km),light:Se(Uf,Km),hcDark:qm,hcLight:qm},m("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts."));N("editorOverviewRuler.incomingContentForeground",{dark:Se($f,Km),light:Se($f,Km),hcDark:qm,hcLight:qm},m("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts."));N("editorOverviewRuler.commonContentForeground",{dark:Se(jf,Km),light:Se(jf,Km),hcDark:qm,hcLight:qm},m("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts."));const HA=N("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:""},m("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),P_=N("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},m("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),rX=N("problemsErrorIcon.foreground",{dark:bl,light:bl,hcDark:bl,hcLight:bl},m("problemsErrorIconForeground","The color used for the problems error icon.")),aX=N("problemsWarningIcon.foreground",{dark:ns,light:ns,hcDark:ns,hcLight:ns},m("problemsWarningIconForeground","The color used for the problems warning icon.")),lX=N("problemsInfoIcon.foreground",{dark:Vs,light:Vs,hcDark:Vs,hcLight:Vs},m("problemsInfoIconForeground","The color used for the problems info icon.")),Kf=N("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},m("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),fL=N("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},m("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),i4=N("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},m("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),dX=N("minimap.infoHighlight",{dark:Vs,light:Vs,hcDark:ab,hcLight:ab},m("minimapInfo","Minimap marker color for infos.")),cX=N("minimap.warningHighlight",{dark:ns,light:ns,hcDark:rb,hcLight:rb},m("overviewRuleWarning","Minimap marker color for warnings.")),hX=N("minimap.errorHighlight",{dark:new z(new gt(255,18,18,.7)),light:new z(new gt(255,18,18,.7)),hcDark:new z(new gt(255,50,50,1)),hcLight:"#B5200D"},m("minimapError","Minimap marker color for errors.")),uX=N("minimap.background",{dark:null,light:null,hcDark:null,hcLight:null},m("minimapBackground","Minimap background color.")),gX=N("minimap.foregroundOpacity",{dark:z.fromHex("#000f"),light:z.fromHex("#000f"),hcDark:z.fromHex("#000f"),hcLight:z.fromHex("#000f")},m("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.'));N("minimapSlider.background",{light:Se(M_,.5),dark:Se(M_,.5),hcDark:Se(M_,.5),hcLight:Se(M_,.5)},m("minimapSliderBackground","Minimap slider background color."));N("minimapSlider.hoverBackground",{light:Se(R_,.5),dark:Se(R_,.5),hcDark:Se(R_,.5),hcLight:Se(R_,.5)},m("minimapSliderHoverBackground","Minimap slider background color when hovering."));N("minimapSlider.activeBackground",{light:Se(A_,.5),dark:Se(A_,.5),hcDark:Se(A_,.5),hcLight:Se(A_,.5)},m("minimapSliderActiveBackground","Minimap slider background color when clicked on."));N("charts.foreground",{dark:re,light:re,hcDark:re,hcLight:re},m("chartsForeground","The foreground color used in charts."));N("charts.lines",{dark:Se(re,.5),light:Se(re,.5),hcDark:Se(re,.5),hcLight:Se(re,.5)},m("chartsLines","The color used for horizontal lines in charts."));N("charts.red",{dark:bl,light:bl,hcDark:bl,hcLight:bl},m("chartsRed","The red color used in chart visualizations."));N("charts.blue",{dark:Vs,light:Vs,hcDark:Vs,hcLight:Vs},m("chartsBlue","The blue color used in chart visualizations."));N("charts.yellow",{dark:ns,light:ns,hcDark:ns,hcLight:ns},m("chartsYellow","The yellow color used in chart visualizations."));N("charts.orange",{dark:Kf,light:Kf,hcDark:Kf,hcLight:Kf},m("chartsOrange","The orange color used in chart visualizations."));N("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},m("chartsGreen","The green color used in chart visualizations."));N("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},m("chartsPurple","The purple color used in chart visualizations."));const YE=N("input.background",{dark:"#3C3C3C",light:z.white,hcDark:z.black,hcLight:z.white},m("inputBoxBackground","Input box background.")),qW=N("input.foreground",{dark:re,light:re,hcDark:re,hcLight:re},m("inputBoxForeground","Input box foreground.")),GW=N("input.border",{dark:null,light:null,hcDark:at,hcLight:at},m("inputBoxBorder","Input box border.")),VA=N("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:at,hcLight:at},m("inputBoxActiveOptionBorder","Border color of activated options in input fields."));N("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},m("inputOption.hoverBackground","Background color of activated options in input fields."));const Hu=N("inputOption.activeBackground",{dark:Se(ir,.4),light:Se(ir,.2),hcDark:z.transparent,hcLight:z.transparent},m("inputOption.activeBackground","Background hover color of options in input fields.")),zA=N("inputOption.activeForeground",{dark:z.white,light:z.black,hcDark:re,hcLight:re},m("inputOption.activeForeground","Foreground color of activated options in input fields."));N("input.placeholderForeground",{light:Se(re,.5),dark:Se(re,.5),hcDark:Se(re,.7),hcLight:Se(re,.7)},m("inputPlaceholderForeground","Input box foreground color for placeholder text."));const fX=N("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:z.black,hcLight:z.white},m("inputValidationInfoBackground","Input validation background color for information severity.")),mX=N("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:re},m("inputValidationInfoForeground","Input validation foreground color for information severity.")),pX=N("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:at,hcLight:at},m("inputValidationInfoBorder","Input validation border color for information severity.")),_X=N("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:z.black,hcLight:z.white},m("inputValidationWarningBackground","Input validation background color for warning severity.")),vX=N("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:re},m("inputValidationWarningForeground","Input validation foreground color for warning severity.")),bX=N("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:at,hcLight:at},m("inputValidationWarningBorder","Input validation border color for warning severity.")),CX=N("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:z.black,hcLight:z.white},m("inputValidationErrorBackground","Input validation background color for error severity.")),wX=N("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:re},m("inputValidationErrorForeground","Input validation foreground color for error severity.")),SX=N("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:at,hcLight:at},m("inputValidationErrorBorder","Input validation border color for error severity.")),Cl=N("dropdown.background",{dark:"#3C3C3C",light:z.white,hcDark:z.black,hcLight:z.white},m("dropdownBackground","Dropdown background.")),yX=N("dropdown.listBackground",{dark:null,light:null,hcDark:z.black,hcLight:z.white},m("dropdownListBackground","Dropdown list background.")),Md=N("dropdown.foreground",{dark:"#F0F0F0",light:re,hcDark:z.white,hcLight:re},m("dropdownForeground","Dropdown foreground.")),qf=N("dropdown.border",{dark:Cl,light:"#CECECE",hcDark:at,hcLight:at},m("dropdownBorder","Dropdown border.")),O_=N("button.foreground",{dark:z.white,light:z.white,hcDark:z.white,hcLight:z.white},m("buttonForeground","Button foreground color.")),LX=N("button.separator",{dark:Se(O_,.4),light:Se(O_,.4),hcDark:Se(O_,.4),hcLight:Se(O_,.4)},m("buttonSeparator","Button separator color.")),F_=N("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},m("buttonBackground","Button background color.")),xX=N("button.hoverBackground",{dark:wa(F_,.2),light:Kg(F_,.2),hcDark:F_,hcLight:F_},m("buttonHoverBackground","Button background color when hovering.")),DX=N("button.border",{dark:at,light:at,hcDark:at,hcLight:at},m("buttonBorder","Button border color.")),kX=N("button.secondaryForeground",{dark:z.white,light:z.white,hcDark:z.white,hcLight:re},m("buttonSecondaryForeground","Secondary button foreground color.")),QE=N("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:z.white},m("buttonSecondaryBackground","Secondary button background color.")),IX=N("button.secondaryHoverBackground",{dark:wa(QE,.2),light:Kg(QE,.2),hcDark:null,hcLight:null},m("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),EX=N("checkbox.background",{dark:Cl,light:Cl,hcDark:Cl,hcLight:Cl},m("checkbox.background","Background color of checkbox widget."));N("checkbox.selectBackground",{dark:Ti,light:Ti,hcDark:Ti,hcLight:Ti},m("checkbox.select.background","Background color of checkbox widget when the element it's in is selected."));const NX=N("checkbox.foreground",{dark:Md,light:Md,hcDark:Md,hcLight:Md},m("checkbox.foreground","Foreground color of checkbox widget.")),TX=N("checkbox.border",{dark:qf,light:qf,hcDark:qf,hcLight:qf},m("checkbox.border","Border color of checkbox widget."));N("checkbox.selectBorder",{dark:vl,light:vl,hcDark:vl,hcLight:vl},m("checkbox.select.border","Border color of checkbox widget when the element it's in is selected."));const MX=N("keybindingLabel.background",{dark:new z(new gt(128,128,128,.17)),light:new z(new gt(221,221,221,.4)),hcDark:z.transparent,hcLight:z.transparent},m("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),RX=N("keybindingLabel.foreground",{dark:z.fromHex("#CCCCCC"),light:z.fromHex("#555555"),hcDark:z.white,hcLight:re},m("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),AX=N("keybindingLabel.border",{dark:new z(new gt(51,51,51,.6)),light:new z(new gt(204,204,204,.4)),hcDark:new z(new gt(111,195,223)),hcLight:at},m("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),PX=N("keybindingLabel.bottomBorder",{dark:new z(new gt(68,68,68,.6)),light:new z(new gt(187,187,187,.4)),hcDark:new z(new gt(111,195,223)),hcLight:re},m("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),OX=N("list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},m("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.")),FX=N("list.focusForeground",{dark:null,light:null,hcDark:null,hcLight:null},m("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.")),BX=N("list.focusOutline",{dark:ir,light:ir,hcDark:ti,hcLight:ti},m("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.")),WX=N("list.focusAndSelectionOutline",{dark:null,light:null,hcDark:null,hcLight:null},m("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.")),Rd=N("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:z.fromHex("#0F4A85").transparent(.1)},m("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.")),wl=N("list.activeSelectionForeground",{dark:z.white,light:z.white,hcDark:null,hcLight:null},m("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.")),B_=N("list.activeSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},m("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.")),HX=N("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:z.fromHex("#0F4A85").transparent(.1)},m("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.")),VX=N("list.inactiveSelectionForeground",{dark:null,light:null,hcDark:null,hcLight:null},m("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.")),zX=N("list.inactiveSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},m("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.")),UX=N("list.inactiveFocusBackground",{dark:null,light:null,hcDark:null,hcLight:null},m("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.")),$X=N("list.inactiveFocusOutline",{dark:null,light:null,hcDark:null,hcLight:null},m("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.")),ZW=N("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:z.white.transparent(.1),hcLight:z.fromHex("#0F4A85").transparent(.1)},m("listHoverBackground","List/Tree background when hovering over items using the mouse.")),YW=N("list.hoverForeground",{dark:null,light:null,hcDark:null,hcLight:null},m("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),jX=N("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},m("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),KX=N("list.dropBetweenBackground",{dark:vl,light:vl,hcDark:null,hcLight:null},m("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),Or=N("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:ir,hcLight:ir},m("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),RC=N("list.focusHighlightForeground",{dark:Or,light:BQ(Rd,Or,"#BBE7FF"),hcDark:Or,hcLight:Or},m("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));N("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},m("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer."));N("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},m("listErrorForeground","Foreground color of list items containing errors."));N("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},m("listWarningForeground","Foreground color of list items containing warnings."));const qX=N("listFilterWidget.background",{light:Kg(Ti,0),dark:wa(Ti,0),hcDark:Ti,hcLight:Ti},m("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),GX=N("listFilterWidget.outline",{dark:z.transparent,light:z.transparent,hcDark:"#f38518",hcLight:"#007ACC"},m("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),ZX=N("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:at,hcLight:at},m("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),YX=N("listFilterWidget.shadow",{dark:Td,light:Td,hcDark:Td,hcLight:Td},m("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees."));N("list.filterMatchBackground",{dark:Id,light:Id,hcDark:null,hcLight:null},m("listFilterMatchHighlight","Background color of the filtered match."));N("list.filterMatchBorder",{dark:jc,light:jc,hcDark:at,hcLight:ti},m("listFilterMatchHighlightBorder","Border color of the filtered match."));N("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},m("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized."));const W_=N("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},m("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),QX=N("tree.inactiveIndentGuidesStroke",{dark:Se(W_,.4),light:Se(W_,.4),hcDark:Se(W_,.4),hcLight:Se(W_,.4)},m("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),XX=N("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},m("tableColumnsBorder","Table border color between columns.")),JX=N("tree.tableOddRowsBackground",{dark:Se(re,.04),light:Se(re,.04),hcDark:null,hcLight:null},m("tableOddRowsBackgroundColor","Background color for odd table rows.")),eJ=N("menu.border",{dark:null,light:null,hcDark:at,hcLight:at},m("menuBorder","Border color of menus.")),tJ=N("menu.foreground",{dark:Md,light:Md,hcDark:Md,hcLight:Md},m("menuForeground","Foreground color of menu items.")),iJ=N("menu.background",{dark:Cl,light:Cl,hcDark:Cl,hcLight:Cl},m("menuBackground","Background color of menu items.")),nJ=N("menu.selectionForeground",{dark:wl,light:wl,hcDark:wl,hcLight:wl},m("menuSelectionForeground","Foreground color of the selected menu item in menus.")),sJ=N("menu.selectionBackground",{dark:Rd,light:Rd,hcDark:Rd,hcLight:Rd},m("menuSelectionBackground","Background color of the selected menu item in menus.")),oJ=N("menu.selectionBorder",{dark:null,light:null,hcDark:ti,hcLight:ti},m("menuSelectionBorder","Border color of the selected menu item in menus.")),rJ=N("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:at,hcLight:at},m("menuSeparatorBackground","Color of a separator menu item in menus.")),n4=N("quickInput.background",{dark:Ti,light:Ti,hcDark:Ti,hcLight:Ti},m("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),aJ=N("quickInput.foreground",{dark:Dd,light:Dd,hcDark:Dd,hcLight:Dd},m("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),lJ=N("quickInputTitle.background",{dark:new z(new gt(255,255,255,.105)),light:new z(new gt(0,0,0,.06)),hcDark:"#000000",hcLight:z.white},m("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),QW=N("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:z.white,hcLight:"#0F4A85"},m("pickerGroupForeground","Quick picker color for grouping labels.")),dJ=N("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:z.white,hcLight:"#0F4A85"},m("pickerGroupBorder","Quick picker color for grouping borders.")),s4=N("quickInput.list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},"",void 0,m("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),Kc=N("quickInputList.focusForeground",{dark:wl,light:wl,hcDark:wl,hcLight:wl},m("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),Gf=N("quickInputList.focusIconForeground",{dark:B_,light:B_,hcDark:B_,hcLight:B_},m("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),qc=N("quickInputList.focusBackground",{dark:ob(s4,Rd),light:ob(s4,Rd),hcDark:null,hcLight:null},m("quickInput.listFocusBackground","Quick picker background color for the focused item."));N("search.resultsInfoForeground",{light:re,dark:Se(re,.65),hcDark:re,hcLight:re},m("search.resultsInfoForeground","Color of the text in the search viewlet's completion message."));N("searchEditor.findMatchBackground",{light:Se(Id,.66),dark:Se(Id,.66),hcDark:Id,hcLight:Id},m("searchEditor.queryMatch","Color of the Search Editor query matches."));N("searchEditor.findMatchBorder",{light:Se(jc,.66),dark:Se(jc,.66),hcDark:jc,hcLight:jc},m("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."));class mL{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0}toClientCoordinates(e){return new XW(this.x-e.scrollX,this.y-e.scrollY)}}class XW{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0}toPageCoordinates(e){return new mL(this.clientX+e.scrollX,this.clientY+e.scrollY)}}class cJ{constructor(e,t,i,n){this.x=e,this.y=t,this.width=i,this.height=n,this._editorPagePositionBrand=void 0}}class hJ{constructor(e,t){this.x=e,this.y=t,this._positionRelativeToEditorBrand=void 0}}function UA(o){const e=Oi(o);return new cJ(e.left,e.top,e.width,e.height)}function $A(o,e,t){const i=e.width/o.offsetWidth,n=e.height/o.offsetHeight,s=(t.x-e.x)/i,r=(t.y-e.y)/n;return new hJ(s,r)}class Lh extends Rr{constructor(e,t,i){super(De(i),e),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=t,this.pos=new mL(this.posx,this.posy),this.editorPos=UA(i),this.relativePos=$A(i,this.editorPos,this.pos)}}class uJ{constructor(e){this._editorViewDomNode=e}_create(e){return new Lh(e,!1,this._editorViewDomNode)}onContextMenu(e,t){return U(e,"contextmenu",i=>{t(this._create(i))})}onMouseUp(e,t){return U(e,"mouseup",i=>{t(this._create(i))})}onMouseDown(e,t){return U(e,ee.MOUSE_DOWN,i=>{t(this._create(i))})}onPointerDown(e,t){return U(e,ee.POINTER_DOWN,i=>{t(this._create(i),i.pointerId)})}onMouseLeave(e,t){return U(e,ee.MOUSE_LEAVE,i=>{t(this._create(i))})}onMouseMove(e,t){return U(e,"mousemove",i=>t(this._create(i)))}}class gJ{constructor(e){this._editorViewDomNode=e}_create(e){return new Lh(e,!1,this._editorViewDomNode)}onPointerUp(e,t){return U(e,"pointerup",i=>{t(this._create(i))})}onPointerDown(e,t){return U(e,ee.POINTER_DOWN,i=>{t(this._create(i),i.pointerId)})}onPointerLeave(e,t){return U(e,ee.POINTER_LEAVE,i=>{t(this._create(i))})}onPointerMove(e,t){return U(e,"pointermove",i=>t(this._create(i)))}}class fJ extends W{constructor(e){super(),this._editorViewDomNode=e,this._globalPointerMoveMonitor=this._register(new Rp),this._keydownListener=null}startMonitoring(e,t,i,n,s){this._keydownListener=Si(e.ownerDocument,"keydown",r=>{r.toKeyCodeChord().isModifierKey()||this._globalPointerMoveMonitor.stopMonitoring(!0,r.browserEvent)},!0),this._globalPointerMoveMonitor.startMonitoring(e,t,i,r=>{n(new Lh(r,!0,this._editorViewDomNode))},r=>{this._keydownListener.dispose(),s(r)})}stopMonitoring(){this._globalPointerMoveMonitor.stopMonitoring(!0)}}class A0{constructor(e){this._editor=e,this._instanceId=++A0._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new At(()=>this.garbageCollect(),1e3)}createClassNameRef(e){const t=this.getOrCreateRule(e);return t.increaseRefCount(),{className:t.className,dispose:()=>{t.decreaseRefCount(),this._garbageCollectionScheduler.schedule()}}}getOrCreateRule(e){const t=this.computeUniqueKey(e);let i=this._rules.get(t);if(!i){const n=this._counter++;i=new mJ(t,`dyn-rule-${this._instanceId}-${n}`,Gw(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,e),this._rules.set(t,i)}return i}computeUniqueKey(e){return JSON.stringify(e)}garbageCollect(){for(const e of this._rules.values())e.hasReferences()||(this._rules.delete(e.key),e.dispose())}}A0._idPool=0;class mJ{constructor(e,t,i,n){this.key=e,this.className=t,this.properties=n,this._referenceCount=0,this._styleElementDisposables=new G,this._styleElement=Fo(i,void 0,this._styleElementDisposables),this._styleElement.textContent=this.getCssText(this.className,this.properties)}getCssText(e,t){let i=`.${e} {`;for(const n in t){const s=t[n];let r;typeof s=="object"?r=he(s.id):r=s;const a=pJ(n);i+=` + ${a}: ${r};`}return i+=` +}`,i}dispose(){this._styleElementDisposables.dispose(),this._styleElement=void 0}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}function pJ(o){return o.replace(/(^[A-Z])/,([e])=>e.toLowerCase()).replace(/([A-Z])/g,([e])=>`-${e.toLowerCase()}`)}class P0 extends W{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(e){return!1}onCompositionEnd(e){return!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let i=0,n=e.length;i=a.left?n.width=Math.max(n.width,a.left+a.width-n.left):(t[i++]=n,n=a)}return t[i++]=n,t}static _createHorizontalRangesFromClientRects(e,t,i){if(!e||e.length===0)return null;const n=[];for(let s=0,r=e.length;sl)return null;if(t=Math.min(l,Math.max(0,t)),n=Math.min(l,Math.max(0,n)),t===n&&i===s&&i===0&&!e.children[t].firstChild){const u=e.children[t].getClientRects();return r.markDidDomLayout(),this._createHorizontalRangesFromClientRects(u,r.clientRectDeltaLeft,r.clientRectScale)}t!==n&&n>0&&s===0&&(n--,s=1073741824);let d=e.children[t].firstChild,c=e.children[n].firstChild;if((!d||!c)&&(!d&&i===0&&t>0&&(d=e.children[t-1].firstChild,i=1073741824),!c&&s===0&&n>0&&(c=e.children[n-1].firstChild,s=1073741824)),!d||!c)return null;i=Math.min(d.textContent.length,Math.max(0,i)),s=Math.min(c.textContent.length,Math.max(0,s));const h=this._readClientRects(d,i,c,s,r.endNode);return r.markDidDomLayout(),this._createHorizontalRangesFromClientRects(h,r.clientRectDeltaLeft,r.clientRectScale)}}var sr;(function(o){o.DARK="dark",o.LIGHT="light",o.HIGH_CONTRAST_DARK="hcDark",o.HIGH_CONTRAST_LIGHT="hcLight"})(sr||(sr={}));function Sa(o){return o===sr.HIGH_CONTRAST_DARK||o===sr.HIGH_CONTRAST_LIGHT}function Gm(o){return o===sr.DARK||o===sr.HIGH_CONTRAST_DARK}const wJ=function(){return _a?!0:!(xs||lr||Yd)}();let pm=!0;class r4{constructor(e,t){this.themeType=t;const i=e.options,n=i.get(50);i.get(38)==="off"?this.renderWhitespace=i.get(99):this.renderWhitespace="none",this.renderControlCharacters=i.get(94),this.spaceWidth=n.spaceWidth,this.middotWidth=n.middotWidth,this.wsmiddotWidth=n.wsmiddotWidth,this.useMonospaceOptimizations=n.isMonospace&&!i.get(33),this.canUseHalfwidthRightwardsArrow=n.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(67),this.stopRenderingLineAfter=i.get(117),this.fontLigatures=i.get(51)}equals(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}class ul{constructor(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(this._renderedViewLine)this._renderedViewLine.domNode=Lt(e);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(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return Sa(this._options.themeType)||this._options.renderWhitespace==="selection"?(this._isMaybeInvalid=!0,!0):!1}renderLine(e,t,i,n,s){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;const r=n.getViewLineRenderingData(e),a=this._options,l=ws.filter(r.inlineDecorations,e,r.minColumn,r.maxColumn);let d=null;if(Sa(a.themeType)||this._options.renderWhitespace==="selection"){const g=n.selections;for(const f of g){if(f.endLineNumbere)continue;const p=f.startLineNumber===e?f.startColumn:r.minColumn,_=f.endLineNumber===e?f.endColumn:r.maxColumn;p<_&&(Sa(a.themeType)&&l.push(new ws(p,_,"inline-selected-text",0)),this._options.renderWhitespace==="selection"&&(d||(d=[]),d.push(new RW(p-1,_-1))))}}const c=new Kh(a.useMonospaceOptimizations,a.canUseHalfwidthRightwardsArrow,r.content,r.continuesWithWrappedLine,r.isBasicASCII,r.containsRTL,r.minColumn-1,r.tokens,l,r.tabSize,r.startVisibleColumn,a.spaceWidth,a.middotWidth,a.wsmiddotWidth,a.stopRenderingLineAfter,a.renderWhitespace,a.renderControlCharacters,a.fontLigatures!==ko.OFF,d);if(this._renderedViewLine&&this._renderedViewLine.input.equals(c))return!1;s.appendString('
');const h=M0(c,s);s.appendString("
");let u=null;return pm&&wJ&&r.isBasicASCII&&a.useMonospaceOptimizations&&h.containsForeignElements===0&&(u=new AC(this._renderedViewLine?this._renderedViewLine.domNode:null,c,h.characterMapping)),u||(u=e8(this._renderedViewLine?this._renderedViewLine.domNode:null,c,h.characterMapping,h.containsRTL,h.containsForeignElements)),this._renderedViewLine=u,!0}layoutLine(e,t,i){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(i))}getWidth(e){return this._renderedViewLine?this._renderedViewLine.getWidth(e):0}getWidthIsFast(){return this._renderedViewLine?this._renderedViewLine.getWidthIsFast():!0}needsMonospaceFontCheck(){return this._renderedViewLine?this._renderedViewLine instanceof AC:!1}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof AC?this._renderedViewLine.monospaceAssumptionsAreValid():pm}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof AC&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,t,i,n){if(!this._renderedViewLine)return null;t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t)),i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i));const s=this._renderedViewLine.input.stopRenderingLineAfter;if(s!==-1&&t>s+1&&i>s+1)return new o4(!0,[new Xu(this.getWidth(n),0)]);s!==-1&&t>s+1&&(t=s+1),s!==-1&&i>s+1&&(i=s+1);const r=this._renderedViewLine.getVisibleRangesForRange(e,t,i,n);return r&&r.length>0?new o4(!1,r):null}getColumnOfNodeOffset(e,t){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t):1}}ul.CLASS_NAME="view-line";class AC{constructor(e,t,i){this._cachedWidth=-1,this.domNode=e,this.input=t;const n=Math.floor(t.lineContent.length/300);if(n>0){this._keyColumnPixelOffsetCache=new Float32Array(n);for(let s=0;s=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),pm=!1)}return pm}toSlowRenderedLine(){return e8(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,t,i,n){const s=this._getColumnPixelOffset(e,t,n),r=this._getColumnPixelOffset(e,i,n);return[new Xu(s,r-s)]}_getColumnPixelOffset(e,t,i){if(t<=300){const d=this._characterMapping.getHorizontalOffset(t);return this._charWidth*d}const n=Math.floor((t-1)/300)-1,s=(n+1)*300+1;let r=-1;if(this._keyColumnPixelOffsetCache&&(r=this._keyColumnPixelOffsetCache[n],r===-1&&(r=this._actualReadPixelOffset(e,s,i),this._keyColumnPixelOffsetCache[n]=r)),r===-1){const d=this._characterMapping.getHorizontalOffset(t);return this._charWidth*d}const a=this._characterMapping.getHorizontalOffset(s),l=this._characterMapping.getHorizontalOffset(t);return r+this._charWidth*(l-a)}_getReadingTarget(e){return e.domNode.firstChild}_actualReadPixelOffset(e,t,i){if(!this.domNode)return-1;const n=this._characterMapping.getDomPosition(t),s=ow.readHorizontalRanges(this._getReadingTarget(this.domNode),n.partIndex,n.charIndex,n.partIndex,n.charIndex,i);return!s||s.length===0?-1:s[0].left}getColumnOfNodeOffset(e,t){return jA(this._characterMapping,e,t)}}class JW{constructor(e,t,i,n,s){if(this.domNode=e,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=s,this._cachedWidth=-1,this._pixelOffsetCache=null,!n||this._characterMapping.length===0){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let r=0,a=this._characterMapping.length;r<=a;r++)this._pixelOffsetCache[r]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(e){return this.domNode?(this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,e==null||e.markDidDomLayout()),this._cachedWidth):0}getWidthIsFast(){return this._cachedWidth!==-1}getVisibleRangesForRange(e,t,i,n){if(!this.domNode)return null;if(this._pixelOffsetCache!==null){const s=this._readPixelOffset(this.domNode,e,t,n);if(s===-1)return null;const r=this._readPixelOffset(this.domNode,e,i,n);return r===-1?null:[new Xu(s,r-s)]}return this._readVisibleRangesForRange(this.domNode,e,t,i,n)}_readVisibleRangesForRange(e,t,i,n,s){if(i===n){const r=this._readPixelOffset(e,t,i,s);return r===-1?null:[new Xu(r,0)]}else return this._readRawVisibleRangesForRange(e,i,n,s)}_readPixelOffset(e,t,i,n){if(this._characterMapping.length===0){if(this._containsForeignElements===0||this._containsForeignElements===2)return 0;if(this._containsForeignElements===1)return this.getWidth(n);const s=this._getReadingTarget(e);return s.firstChild?(n.markDidDomLayout(),s.firstChild.offsetWidth):0}if(this._pixelOffsetCache!==null){const s=this._pixelOffsetCache[i];if(s!==-1)return s;const r=this._actualReadPixelOffset(e,t,i,n);return this._pixelOffsetCache[i]=r,r}return this._actualReadPixelOffset(e,t,i,n)}_actualReadPixelOffset(e,t,i,n){if(this._characterMapping.length===0){const l=ow.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,n);return!l||l.length===0?-1:l[0].left}if(i===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth(n);const s=this._characterMapping.getDomPosition(i),r=ow.readHorizontalRanges(this._getReadingTarget(e),s.partIndex,s.charIndex,s.partIndex,s.charIndex,n);if(!r||r.length===0)return-1;const a=r[0].left;if(this.input.isBasicASCII){const l=this._characterMapping.getHorizontalOffset(i),d=Math.round(this.input.spaceWidth*l);if(Math.abs(d-a)<=1)return d}return a}_readRawVisibleRangesForRange(e,t,i,n){if(t===1&&i===this._characterMapping.length)return[new Xu(0,this.getWidth(n))];const s=this._characterMapping.getDomPosition(t),r=this._characterMapping.getDomPosition(i);return ow.readHorizontalRanges(this._getReadingTarget(e),s.partIndex,s.charIndex,r.partIndex,r.charIndex,n)}getColumnOfNodeOffset(e,t){return jA(this._characterMapping,e,t)}}class SJ extends JW{_readVisibleRangesForRange(e,t,i,n,s){const r=super._readVisibleRangesForRange(e,t,i,n,s);if(!r||r.length===0||i===n||i===1&&n===this._characterMapping.length)return r;if(!this.input.containsRTL){const a=this._readPixelOffset(e,t,n,s);if(a!==-1){const l=r[r.length-1];l.left=t){const h=t-r;return d-t=4&&e[0]===3&&e[3]===8}static isStrictChildOfViewLines(e){return e.length>4&&e[0]===3&&e[3]===8}static isChildOfScrollableElement(e){return e.length>=2&&e[0]===3&&e[1]===6}static isChildOfMinimap(e){return e.length>=2&&e[0]===3&&e[1]===9}static isChildOfContentWidgets(e){return e.length>=4&&e[0]===3&&e[3]===1}static isChildOfOverflowGuard(e){return e.length>=1&&e[0]===3}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&e[0]===2}static isChildOfOverlayWidgets(e){return e.length>=2&&e[0]===3&&e[1]===4}static isChildOfOverflowingOverlayWidgets(e){return e.length>=1&&e[0]===5}}class Zm{constructor(e,t,i){this.viewModel=e.viewModel;const n=e.configuration.options;this.layoutInfo=n.get(145),this.viewDomNode=t.viewDomNode,this.lineHeight=n.get(67),this.stickyTabStops=n.get(116),this.typicalHalfwidthCharacterWidth=n.get(50).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return Zm.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){const i=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){const n=i.verticalOffset+i.height/2,s=e.viewModel.getLineCount();let r=null,a,l=null;return i.afterLineNumber!==s&&(l=new F(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(r=new F(i.afterLineNumber,e.viewModel.getLineMaxColumn(i.afterLineNumber))),l===null?a=r:r===null?a=l:t=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,Jn._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}class kJ extends DJ{get target(){return this._useHitTestTarget?this.hitTestResult.value.hitTarget:this._eventTarget}get targetPath(){return this._targetPathCacheElement!==this.target&&(this._targetPathCacheElement=this.target,this._targetPathCacheValue=Na.collect(this.target,this._ctx.viewDomNode)),this._targetPathCacheValue}constructor(e,t,i,n,s){super(e,t,i,n),this.hitTestResult=new $r(()=>Jn.doHitTest(this._ctx,this)),this._targetPathCacheElement=null,this._targetPathCacheValue=new Uint8Array(0),this._ctx=e,this._eventTarget=s;const r=!!this._eventTarget;this._useHitTestTarget=!r}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(e=null){return e&&e.columnr.contentLeft+r.width)continue;const a=e.getVerticalOffsetForLineNumber(r.position.lineNumber);if(a<=s&&s<=a+r.height)return t.fulfillContentText(r.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(e,t){const i=e.getZoneAtCoord(t.mouseVerticalOffset);if(i){const n=t.isInContentArea?8:5;return t.fulfillViewZone(n,i.position,i)}return null}static _hitTestTextArea(e,t){return ds.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfillContentText(e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):t.fulfillTextarea():null}static _hitTestMargin(e,t){if(t.isInMarginArea){const i=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),n=i.range.getStartPosition();let s=Math.abs(t.relativePos.x);const r={isAfterLines:i.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:s};if(s-=e.layoutInfo.glyphMarginLeft,s<=e.layoutInfo.glyphMarginWidth){const a=e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(i.range.getStartPosition()),l=e.viewModel.glyphLanes.getLanesAtLine(a.lineNumber);return r.glyphMarginLane=l[Math.floor(s/e.lineHeight)],t.fulfillMargin(2,n,i.range,r)}return s-=e.layoutInfo.glyphMarginWidth,s<=e.layoutInfo.lineNumbersWidth?t.fulfillMargin(3,n,i.range,r):(s-=e.layoutInfo.lineNumbersWidth,t.fulfillMargin(4,n,i.range,r))}return null}static _hitTestViewLines(e,t){if(!ds.isChildOfViewLines(t.targetPath))return null;if(e.isInTopPadding(t.mouseVerticalOffset))return t.fulfillContentEmpty(new F(1,1),a4);if(e.isAfterLines(t.mouseVerticalOffset)||e.isInBottomPadding(t.mouseVerticalOffset)){const n=e.viewModel.getLineCount(),s=e.viewModel.getLineMaxColumn(n);return t.fulfillContentEmpty(new F(n,s),a4)}if(ds.isStrictChildOfViewLines(t.targetPath)){const n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(e.viewModel.getLineLength(n)===0){const r=e.getLineWidth(n),a=VD(t.mouseContentHorizontalOffset-r);return t.fulfillContentEmpty(new F(n,1),a)}const s=e.getLineWidth(n);if(t.mouseContentHorizontalOffset>=s){const r=VD(t.mouseContentHorizontalOffset-s),a=new F(n,e.viewModel.getLineMaxColumn(n));return t.fulfillContentEmpty(a,r)}}const i=t.hitTestResult.value;return i.type===1?Jn.createMouseTargetFromHitTestPosition(e,t,i.spanNode,i.position,i.injectedText):t.wouldBenefitFromHitTestTargetSwitch?(t.switchToHitTestTarget(),this._createMouseTarget(e,t)):t.fulfillUnknown()}static _hitTestMinimap(e,t){if(ds.isChildOfMinimap(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new F(i,n))}return null}static _hitTestScrollbarSlider(e,t){if(ds.isChildOfScrollableElement(t.targetPath)&&t.target&&t.target.nodeType===1){const i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){const n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.viewModel.getLineMaxColumn(n);return t.fulfillScrollbar(new F(n,s))}}return null}static _hitTestScrollbar(e,t){if(ds.isChildOfScrollableElement(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new F(i,n))}return null}getMouseColumn(e){const t=this._context.configuration.options,i=t.get(145),n=this._context.viewLayout.getCurrentScrollLeft()+e.x-i.contentLeft;return Jn._getMouseColumn(n,t.get(50).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){return e<0?1:Math.round(e/t)+1}static createMouseTargetFromHitTestPosition(e,t,i,n,s){const r=n.lineNumber,a=n.column,l=e.getLineWidth(r);if(t.mouseContentHorizontalOffset>l){const v=VD(t.mouseContentHorizontalOffset-l);return t.fulfillContentEmpty(n,v)}const d=e.visibleRangeForPosition(r,a);if(!d)return t.fulfillUnknown(n);const c=d.left;if(Math.abs(t.mouseContentHorizontalOffset-c)<1)return t.fulfillContentText(n,null,{mightBeForeignElement:!!s,injectedText:s});const h=[];if(h.push({offset:d.left,column:a}),a>1){const v=e.visibleRangeForPosition(r,a-1);v&&h.push({offset:v.left,column:a-1})}const u=e.viewModel.getLineMaxColumn(r);if(av.offset-b.offset);const g=t.pos.toClientCoordinates(De(e.viewDomNode)),f=i.getBoundingClientRect(),p=f.left<=g.clientX&&g.clientX<=f.right;let _=null;for(let v=1;vs)){const a=Math.floor((n+s)/2);let l=t.pos.y+(a-t.mouseVerticalOffset);l<=t.editorPos.y&&(l=t.editorPos.y+1),l>=t.editorPos.y+t.editorPos.height&&(l=t.editorPos.y+t.editorPos.height-1);const d=new mL(t.pos.x,l),c=this._actualDoHitTestWithCaretRangeFromPoint(e,d.toClientCoordinates(De(e.viewDomNode)));if(c.type===1)return c}return this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates(De(e.viewDomNode)))}static _actualDoHitTestWithCaretRangeFromPoint(e,t){const i=fg(e.viewDomNode);let n;if(i?typeof i.caretRangeFromPoint>"u"?n=IJ(i,t.clientX,t.clientY):n=i.caretRangeFromPoint(t.clientX,t.clientY):n=e.viewDomNode.ownerDocument.caretRangeFromPoint(t.clientX,t.clientY),!n||!n.startContainer)return new Lc;const s=n.startContainer;if(s.nodeType===s.TEXT_NODE){const r=s.parentNode,a=r?r.parentNode:null,l=a?a.parentNode:null;return(l&&l.nodeType===l.ELEMENT_NODE?l.className:null)===ul.CLASS_NAME?Mu.createFromDOMInfo(e,r,n.startOffset):new Lc(s.parentNode)}else if(s.nodeType===s.ELEMENT_NODE){const r=s.parentNode,a=r?r.parentNode:null;return(a&&a.nodeType===a.ELEMENT_NODE?a.className:null)===ul.CLASS_NAME?Mu.createFromDOMInfo(e,s,s.textContent.length):new Lc(s)}return new Lc}static _doHitTestWithCaretPositionFromPoint(e,t){const i=e.viewDomNode.ownerDocument.caretPositionFromPoint(t.clientX,t.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){const n=i.offsetNode.parentNode,s=n?n.parentNode:null,r=s?s.parentNode:null;return(r&&r.nodeType===r.ELEMENT_NODE?r.className:null)===ul.CLASS_NAME?Mu.createFromDOMInfo(e,i.offsetNode.parentNode,i.offset):new Lc(i.offsetNode.parentNode)}if(i.offsetNode.nodeType===i.offsetNode.ELEMENT_NODE){const n=i.offsetNode.parentNode,s=n&&n.nodeType===n.ELEMENT_NODE?n.className:null,r=n?n.parentNode:null,a=r&&r.nodeType===r.ELEMENT_NODE?r.className:null;if(s===ul.CLASS_NAME){const l=i.offsetNode.childNodes[Math.min(i.offset,i.offsetNode.childNodes.length-1)];if(l)return Mu.createFromDOMInfo(e,l,0)}else if(a===ul.CLASS_NAME)return Mu.createFromDOMInfo(e,i.offsetNode,0)}return new Lc(i.offsetNode)}static _snapToSoftTabBoundary(e,t){const i=t.getLineContent(e.lineNumber),{tabSize:n}=t.model.getOptions(),s=lb.atomicPosition(i,e.column-1,n,2);return s!==-1?new F(e.lineNumber,s+1):e}static doHitTest(e,t){let i=new Lc;if(typeof e.viewDomNode.ownerDocument.caretRangeFromPoint=="function"?i=this._doHitTestWithCaretRangeFromPoint(e,t):e.viewDomNode.ownerDocument.caretPositionFromPoint&&(i=this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates(De(e.viewDomNode)))),i.type===1){const n=e.viewModel.getInjectedTextAt(i.position),s=e.viewModel.normalizePosition(i.position,2);(n||!s.equals(i.position))&&(i=new t8(s,i.spanNode,n))}return i}}function IJ(o,e,t){const i=document.createRange();let n=o.elementFromPoint(e,t);if(n!==null){for(;n&&n.firstChild&&n.firstChild.nodeType!==n.firstChild.TEXT_NODE&&n.lastChild&&n.lastChild.firstChild;)n=n.lastChild;const s=n.getBoundingClientRect(),r=De(n),a=r.getComputedStyle(n,null).getPropertyValue("font-style"),l=r.getComputedStyle(n,null).getPropertyValue("font-variant"),d=r.getComputedStyle(n,null).getPropertyValue("font-weight"),c=r.getComputedStyle(n,null).getPropertyValue("font-size"),h=r.getComputedStyle(n,null).getPropertyValue("line-height"),u=r.getComputedStyle(n,null).getPropertyValue("font-family"),g=`${a} ${l} ${d} ${c}/${h} ${u}`,f=n.innerText;let p=s.left,_=0,v;if(e>s.left+s.width)_=f.length;else{const b=Vu.getInstance();for(let C=0;C=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ut;(function(o){o.Tap="-monaco-gesturetap",o.Change="-monaco-gesturechange",o.Start="-monaco-gesturestart",o.End="-monaco-gesturesend",o.Contextmenu="-monaco-gesturecontextmenu"})(Ut||(Ut={}));class zt extends W{constructor(){super(),this.dispatched=!1,this.targets=new vs,this.ignoreTargets=new vs,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(ae.runAndSubscribe(qy,({window:e,disposables:t})=>{t.add(U(e.document,"touchstart",i=>this.onTouchStart(i),{passive:!1})),t.add(U(e.document,"touchend",i=>this.onTouchEnd(e,i))),t.add(U(e.document,"touchmove",i=>this.onTouchMove(i),{passive:!1}))},{window:Mt,disposables:this._store}))}static addTarget(e){if(!zt.isTouchDevice())return W.None;zt.INSTANCE||(zt.INSTANCE=new zt);const t=zt.INSTANCE.targets.push(e);return Ce(t)}static ignoreTarget(e){if(!zt.isTouchDevice())return W.None;zt.INSTANCE||(zt.INSTANCE=new zt);const t=zt.INSTANCE.ignoreTargets.push(e);return Ce(t)}static isTouchDevice(){return"ontouchstart"in Mt||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){const t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,n=e.targetTouches.length;i=zt.HOLD_DELAY&&Math.abs(l.initialPageX-Ko(l.rollingPageX))<30&&Math.abs(l.initialPageY-Ko(l.rollingPageY))<30){const c=this.newGestureEvent(Ut.Contextmenu,l.initialTarget);c.pageX=Ko(l.rollingPageX),c.pageY=Ko(l.rollingPageY),this.dispatchEvent(c)}else if(n===1){const c=Ko(l.rollingPageX),h=Ko(l.rollingPageY),u=Ko(l.rollingTimestamps)-l.rollingTimestamps[0],g=c-l.rollingPageX[0],f=h-l.rollingPageY[0],p=[...this.targets].filter(_=>l.initialTarget instanceof Node&&_.contains(l.initialTarget));this.inertia(e,p,i,Math.abs(g)/u,g>0?1:-1,c,Math.abs(f)/u,f>0?1:-1,h)}this.dispatchEvent(this.newGestureEvent(Ut.End,l.initialTarget)),delete this.activeTouches[a.identifier]}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){const i=document.createEvent("CustomEvent");return i.initEvent(e,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(e){if(e.type===Ut.Tap){const t=new Date().getTime();let i=0;t-this._lastSetTapCountTime>zt.CLEAR_TAP_COUNT_TIME?i=1:i=2,this._lastSetTapCountTime=t,e.tapCount=i}else(e.type===Ut.Change||e.type===Ut.Contextmenu)&&(this._lastSetTapCountTime=0);if(e.initialTarget instanceof Node){for(const i of this.ignoreTargets)if(i.contains(e.initialTarget))return;const t=[];for(const i of this.targets)if(i.contains(e.initialTarget)){let n=0,s=e.initialTarget;for(;s&&s!==i;)n++,s=s.parentElement;t.push([n,i])}t.sort((i,n)=>i[0]-n[0]);for(const[i,n]of t)n.dispatchEvent(e),this.dispatched=!0}}inertia(e,t,i,n,s,r,a,l,d){this.handle=ao(e,()=>{const c=Date.now(),h=c-i;let u=0,g=0,f=!0;n+=zt.SCROLL_FRICTION*h,a+=zt.SCROLL_FRICTION*h,n>0&&(f=!1,u=s*n*h),a>0&&(f=!1,g=l*a*h);const p=this.newGestureEvent(Ut.Change);p.translationX=u,p.translationY=g,t.forEach(_=>_.dispatchEvent(p)),f||this.inertia(e,t,c,n,s,r+u,a,l,d+g)})}onTouchMove(e){const t=Date.now();for(let i=0,n=e.changedTouches.length;i3&&(r.rollingPageX.shift(),r.rollingPageY.shift(),r.rollingTimestamps.shift()),r.rollingPageX.push(s.pageX),r.rollingPageY.push(s.pageY),r.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}zt.SCROLL_FRICTION=-.005;zt.HOLD_DELAY=700;zt.CLEAR_TAP_COUNT_TIME=400;EJ([Mi],zt,"isTouchDevice",null);let Uo=class extends W{onclick(e,t){this._register(U(e,ee.CLICK,i=>t(new Rr(De(e),i))))}onmousedown(e,t){this._register(U(e,ee.MOUSE_DOWN,i=>t(new Rr(De(e),i))))}onmouseover(e,t){this._register(U(e,ee.MOUSE_OVER,i=>t(new Rr(De(e),i))))}onmouseleave(e,t){this._register(U(e,ee.MOUSE_LEAVE,i=>t(new Rr(De(e),i))))}onkeydown(e,t){this._register(U(e,ee.KEY_DOWN,i=>t(new Ht(i))))}onkeyup(e,t){this._register(U(e,ee.KEY_UP,i=>t(new Ht(i))))}oninput(e,t){this._register(U(e,ee.INPUT,t))}onblur(e,t){this._register(U(e,ee.BLUR,t))}onfocus(e,t){this._register(U(e,ee.FOCUS,t))}ignoreGesture(e){return zt.ignoreTarget(e)}};const Ym=11;class NJ extends Uo{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px",typeof e.top<"u"&&(this.bgDomNode.style.top="0px"),typeof e.left<"u"&&(this.bgDomNode.style.left="0px"),typeof e.bottom<"u"&&(this.bgDomNode.style.bottom="0px"),typeof e.right<"u"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...Te.asClassNameArray(e.icon)),this.domNode.style.position="absolute",this.domNode.style.width=Ym+"px",this.domNode.style.height=Ym+"px",typeof e.top<"u"&&(this.domNode.style.top=e.top+"px"),typeof e.left<"u"&&(this.domNode.style.left=e.left+"px"),typeof e.bottom<"u"&&(this.domNode.style.bottom=e.bottom+"px"),typeof e.right<"u"&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new Rp),this._register(Si(this.bgDomNode,ee.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._register(Si(this.domNode,ee.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._pointerdownRepeatTimer=this._register(new mA),this._pointerdownScheduleRepeatTimer=this._register(new jr)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=()=>{this._pointerdownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24,De(e))};this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet(t,200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,i=>{},()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()}),e.preventDefault()}}class TJ extends W{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new jr)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0:this._rawShouldBeVisible}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,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 e;(e=this._domNode)===null||e===void 0||e.setClassName(this._visibleClassName)},0))}_hide(e){var t;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,(t=this._domNode)===null||t===void 0||t.setClassName(this._invisibleClassName+(e?" fade":"")))}}const MJ=140;class i8 extends Uo{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new TJ(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new Rp),this._shouldRender=!0,this.domNode=Lt(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(U(this.domNode.domNode,ee.POINTER_DOWN,t=>this._domNodePointerDown(t)))}_createArrow(e){const t=this._register(new NJ(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,n){this.slider=Lt(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),typeof i=="number"&&this.slider.setWidth(i),typeof n=="number"&&this.slider.setHeight(n),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(U(this.slider.domNode,ee.POINTER_DOWN,s=>{s.button===0&&(s.preventDefault(),this._sliderPointerDown(s))})),this.onclick(this.slider.domNode,s=>{s.leftButton&&s.stopPropagation()})}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(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(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){const t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),n=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),s=this._sliderPointerPosition(e);i<=s&&s<=n?e.button===0&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,i;if(e.target===this.domNode.domNode&&typeof e.offsetX=="number"&&typeof e.offsetY=="number")t=e.offsetX,i=e.offsetY;else{const s=Oi(this.domNode.domNode);t=e.pageX-s.left,i=e.pageY-s.top}const n=this._pointerDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(n):this._scrollbarState.getDesiredScrollPositionFromOffset(n)),e.button===0&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._sliderPointerPosition(e),i=this._sliderOrthogonalPointerPosition(e),n=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,s=>{const r=this._sliderOrthogonalPointerPosition(s),a=Math.abs(r-i);if(Fn&&a>MJ){this._setDesiredScrollPositionNow(n.getScrollPosition());return}const d=this._sliderPointerPosition(s)-t;this._setDesiredScrollPositionNow(n.getDesiredScrollPositionFromDelta(d))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()}),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}const RJ=20;class Qm{constructor(e,t,i,n,s,r){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=n,this._scrollSize=s,this._scrollPosition=r,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new Qm(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t?(this._visibleSize=t,this._refreshComputedValues(),!0):!1}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t?(this._scrollSize=t,this._refreshComputedValues(),!0):!1}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t?(this._scrollPosition=t,this._refreshComputedValues(),!0):!1}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,n,s){const r=Math.max(0,i-e),a=Math.max(0,r-2*t),l=n>0&&n>i;if(!l)return{computedAvailableSize:Math.round(r),computedIsNeeded:l,computedSliderSize:Math.round(a),computedSliderRatio:0,computedSliderPosition:0};const d=Math.round(Math.max(RJ,Math.floor(i*a/n))),c=(a-d)/(n-i),h=s*c;return{computedAvailableSize:Math.round(r),computedIsNeeded:l,computedSliderSize:Math.round(d),computedSliderRatio:c,computedSliderPosition:Math.round(h)}}_refreshComputedValues(){const e=Qm._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.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(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let i=this._scrollPosition;return tthis._host.onMouseWheel(new gg(null,1,0))}),this._createArrow({className:"scra",icon:oe.scrollbarButtonRight,top:a,left:void 0,bottom:void 0,right:r,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new gg(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(e.horizontal===2?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}class PJ extends i8{constructor(e,t,i){const n=e.getScrollDimensions(),s=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new Qm(t.verticalHasArrows?t.arrowSize:0,t.vertical===2?0:t.verticalScrollbarSize,0,n.height,n.scrollHeight,s.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const r=(t.arrowSize-Ym)/2,a=(t.verticalScrollbarSize-Ym)/2;this._createArrow({className:"scra",icon:oe.scrollbarButtonUp,top:r,left:a,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new gg(null,0,1))}),this._createArrow({className:"scra",icon:oe.scrollbarButtonDown,top:void 0,left:a,bottom:r,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new gg(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}class aS{constructor(e,t,i,n,s,r,a){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t=t|0,i=i|0,n=n|0,s=s|0,r=r|0,a=a|0),this.rawScrollLeft=n,this.rawScrollTop=a,t<0&&(t=0),n+t>i&&(n=i-t),n<0&&(n=0),s<0&&(s=0),a+s>r&&(a=r-s),a<0&&(a=0),this.width=t,this.scrollWidth=i,this.scrollLeft=n,this.height=s,this.scrollHeight=r,this.scrollTop=a}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new aS(this._forceIntegerValues,typeof e.width<"u"?e.width:this.width,typeof e.scrollWidth<"u"?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,typeof e.height<"u"?e.height:this.height,typeof e.scrollHeight<"u"?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new aS(this._forceIntegerValues,this.width,this.scrollWidth,typeof e.scrollLeft<"u"?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof e.scrollTop<"u"?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,s=this.scrollLeft!==e.scrollLeft,r=this.height!==e.height,a=this.scrollHeight!==e.scrollHeight,l=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:n,scrollLeftChanged:s,heightChanged:r,scrollHeightChanged:a,scrollTopChanged:l}}}class Ap extends W{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new O),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new aS(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){var i;const n=this._state.withScrollDimensions(e,t);this._setState(n,!!this._smoothScrolling),(i=this._smoothScrolling)===null||i===void 0||i.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:typeof e.scrollLeft>"u"?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:typeof e.scrollTop>"u"?this._smoothScrolling.to.scrollTop:e.scrollTop};const i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let n;t?n=new db(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):n=this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=n}else{const i=this._state.withScrollPosition(e);this._smoothScrolling=db.start(this._state,i,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}hasPendingScrollAnimation(){return!!this._smoothScrolling}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);if(this._setState(t,!0),!!this._smoothScrolling){if(e.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class l4{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function zD(o,e){const t=e-o;return function(i){return o+t*BJ(i)}}function OJ(o,e,t){return function(i){return i2.5*i){let s,r;return e0&&Math.abs(e.deltaY)>0)return 1;let i=.5;if((!this._isAlmostInt(e.deltaX)||!this._isAlmostInt(e.deltaY))&&(i+=.25),t){const n=Math.abs(e.deltaX),s=Math.abs(e.deltaY),r=Math.abs(t.deltaX),a=Math.abs(t.deltaY),l=Math.max(Math.min(n,r),1),d=Math.max(Math.min(s,a),1),c=Math.max(n,r),h=Math.max(s,a);c%l===0&&h%d===0&&(i-=.5)}return Math.min(Math.max(i,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}lS.INSTANCE=new lS;class KA extends Uo{get options(){return this._options}constructor(e,t,i){super(),this._onScroll=this._register(new O),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new O),e.style.overflow="hidden",this._options=VJ(t),this._scrollable=i,this._register(this._scrollable.onScroll(s=>{this._onWillScroll.fire(s),this._onDidScroll(s),this._onScroll.fire(s)}));const n={onMouseWheel:s=>this._onMouseWheel(s),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new PJ(this._scrollable,this._options,n)),this._horizontalScrollbar=this._register(new AJ(this._scrollable,this._options,n)),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(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=Lt(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=Lt(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=Lt(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,s=>this._onMouseOver(s)),this.onmouseleave(this._listenOnDomNode,s=>this._onMouseLeave(s)),this._hideTimeout=this._register(new jr),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=Pt(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,it&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){typeof e.handleMouseWheel<"u"&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof e.mouseWheelScrollSensitivity<"u"&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),typeof e.fastScrollSensitivity<"u"&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),typeof e.scrollPredominantAxis<"u"&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),typeof e.horizontal<"u"&&(this._options.horizontal=e.horizontal),typeof e.vertical<"u"&&(this._options.vertical=e.vertical),typeof e.horizontalScrollbarSize<"u"&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),typeof e.verticalScrollbarSize<"u"&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),typeof e.scrollByPage<"u"&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new gg(e))}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=Pt(this._mouseWheelToDispose),e)){const i=n=>{this._onMouseWheel(new gg(n))};this._mouseWheelToDispose.push(U(this._listenOnDomNode,ee.MOUSE_WHEEL,i,{passive:!1}))}}_onMouseWheel(e){var t;if(!((t=e.browserEvent)===null||t===void 0)&&t.defaultPrevented)return;const i=lS.INSTANCE;i.acceptStandardWheelEvent(e);let n=!1;if(e.deltaY||e.deltaX){let r=e.deltaY*this._options.mouseWheelScrollSensitivity,a=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&a+r===0?a=r=0:Math.abs(r)>=Math.abs(a)?a=0:r=0),this._options.flipAxes&&([r,a]=[a,r]);const l=!it&&e.browserEvent&&e.browserEvent.shiftKey;(this._options.scrollYToX||l)&&!a&&(a=r,r=0),e.browserEvent&&e.browserEvent.altKey&&(a=a*this._options.fastScrollSensitivity,r=r*this._options.fastScrollSensitivity);const d=this._scrollable.getFutureScrollPosition();let c={};if(r){const h=d4*r,u=d.scrollTop-(h<0?Math.floor(h):Math.ceil(h));this._verticalScrollbar.writeScrollPosition(c,u)}if(a){const h=d4*a,u=d.scrollLeft-(h<0?Math.floor(h):Math.ceil(h));this._horizontalScrollbar.writeScrollPosition(c,u)}c=this._scrollable.validateScrollPosition(c),(d.scrollLeft!==c.scrollLeft||d.scrollTop!==c.scrollTop)&&(this._options.mouseWheelSmoothScroll&&i.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(c):this._scrollable.setScrollPositionNow(c),n=!0)}let s=n;!s&&this._options.alwaysConsumeMouseWheel&&(s=!0),!s&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(s=!0),s&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||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)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,n=i?" left":"",s=t?" top":"",r=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${n}`),this._topShadowDomNode.setClassName(`shadow${s}`),this._topLeftShadowDomNode.setClassName(`shadow${r}${s}${n}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){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(),WJ)}}class n8 extends KA{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const i=new Ap({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:n=>ao(De(e),n)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class _L extends KA{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class O0 extends KA{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const i=new Ap({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:n=>ao(De(e),n)});super(e,t,i),this._register(i),this._element=e,this._register(this.onScroll(n=>{n.scrollTopChanged&&(this._element.scrollTop=n.scrollTop),n.scrollLeftChanged&&(this._element.scrollLeft=n.scrollLeft)})),this.scanDomNode()}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}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})}}function VJ(o){const e={lazyRender:typeof o.lazyRender<"u"?o.lazyRender:!1,className:typeof o.className<"u"?o.className:"",useShadows:typeof o.useShadows<"u"?o.useShadows:!0,handleMouseWheel:typeof o.handleMouseWheel<"u"?o.handleMouseWheel:!0,flipAxes:typeof o.flipAxes<"u"?o.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof o.consumeMouseWheelIfScrollbarIsNeeded<"u"?o.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof o.alwaysConsumeMouseWheel<"u"?o.alwaysConsumeMouseWheel:!1,scrollYToX:typeof o.scrollYToX<"u"?o.scrollYToX:!1,mouseWheelScrollSensitivity:typeof o.mouseWheelScrollSensitivity<"u"?o.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof o.fastScrollSensitivity<"u"?o.fastScrollSensitivity:5,scrollPredominantAxis:typeof o.scrollPredominantAxis<"u"?o.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof o.mouseWheelSmoothScroll<"u"?o.mouseWheelSmoothScroll:!0,arrowSize:typeof o.arrowSize<"u"?o.arrowSize:11,listenOnDomNode:typeof o.listenOnDomNode<"u"?o.listenOnDomNode:null,horizontal:typeof o.horizontal<"u"?o.horizontal:1,horizontalScrollbarSize:typeof o.horizontalScrollbarSize<"u"?o.horizontalScrollbarSize:10,horizontalSliderSize:typeof o.horizontalSliderSize<"u"?o.horizontalSliderSize:0,horizontalHasArrows:typeof o.horizontalHasArrows<"u"?o.horizontalHasArrows:!1,vertical:typeof o.vertical<"u"?o.vertical:1,verticalScrollbarSize:typeof o.verticalScrollbarSize<"u"?o.verticalScrollbarSize:10,verticalHasArrows:typeof o.verticalHasArrows<"u"?o.verticalHasArrows:!1,verticalSliderSize:typeof o.verticalSliderSize<"u"?o.verticalSliderSize:0,scrollByPage:typeof o.scrollByPage<"u"?o.scrollByPage:!1};return e.horizontalSliderSize=typeof o.horizontalSliderSize<"u"?o.horizontalSliderSize:e.horizontalScrollbarSize,e.verticalSliderSize=typeof o.verticalSliderSize<"u"?o.verticalSliderSize:e.verticalScrollbarSize,it&&(e.className+=" mac"),e}class qA extends P0{constructor(e,t,i){super(),this._mouseLeaveMonitor=null,this._context=e,this.viewController=t,this.viewHelper=i,this.mouseTargetFactory=new Jn(this._context,i),this._mouseDownOperation=this._register(new zJ(this._context,this.viewController,this.viewHelper,this.mouseTargetFactory,(r,a)=>this._createMouseTarget(r,a),r=>this._getMouseColumn(r))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(145).height;const n=new uJ(this.viewHelper.viewDomNode);this._register(n.onContextMenu(this.viewHelper.viewDomNode,r=>this._onContextMenu(r,!0))),this._register(n.onMouseMove(this.viewHelper.viewDomNode,r=>{this._onMouseMove(r),this._mouseLeaveMonitor||(this._mouseLeaveMonitor=U(this.viewHelper.viewDomNode.ownerDocument,"mousemove",a=>{this.viewHelper.viewDomNode.contains(a.target)||this._onMouseLeave(new Lh(a,!1,this.viewHelper.viewDomNode))}))})),this._register(n.onMouseUp(this.viewHelper.viewDomNode,r=>this._onMouseUp(r))),this._register(n.onMouseLeave(this.viewHelper.viewDomNode,r=>this._onMouseLeave(r)));let s=0;this._register(n.onPointerDown(this.viewHelper.viewDomNode,(r,a)=>{s=a})),this._register(U(this.viewHelper.viewDomNode,ee.POINTER_UP,r=>{this._mouseDownOperation.onPointerUp()})),this._register(n.onMouseDown(this.viewHelper.viewDomNode,r=>this._onMouseDown(r,s))),this._setupMouseWheelZoomListener(),this._context.addEventHandler(this)}_setupMouseWheelZoomListener(){const e=lS.INSTANCE;let t=0,i=Qo.getZoomLevel(),n=!1,s=0;const r=l=>{if(this.viewController.emitMouseWheel(l),!this._context.configuration.options.get(76))return;const d=new gg(l);if(e.acceptStandardWheelEvent(d),e.isPhysicalMouseWheel()){if(a(l)){const c=Qo.getZoomLevel(),h=d.deltaY>0?1:-1;Qo.setZoomLevel(c+h),d.preventDefault(),d.stopPropagation()}}else Date.now()-t>50&&(i=Qo.getZoomLevel(),n=a(l),s=0),t=Date.now(),s+=d.deltaY,n&&(Qo.setZoomLevel(i+s/5),d.preventDefault(),d.stopPropagation())};this._register(U(this.viewHelper.viewDomNode,ee.MOUSE_WHEEL,r,{capture:!0,passive:!1}));function a(l){return it?(l.metaKey||l.ctrlKey)&&!l.shiftKey&&!l.altKey:l.ctrlKey&&!l.metaKey&&!l.shiftKey&&!l.altKey}}dispose(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(145)){const t=this._context.configuration.options.get(145).height;this._height!==t&&(this._height=t,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}getTargetAtClientPoint(e,t){const n=new XW(e,t).toPageCoordinates(De(this.viewHelper.viewDomNode)),s=UA(this.viewHelper.viewDomNode);if(n.ys.y+s.height||n.xs.x+s.width)return null;const r=$A(this.viewHelper.viewDomNode,s,n);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),s,n,r,null)}_createMouseTarget(e,t){let i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){const n=fg(this.viewHelper.viewDomNode);n&&(i=n.elementsFromPoint(e.posx,e.posy).find(s=>this.viewHelper.viewDomNode.contains(s)))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){this.mouseTargetFactory.mouseTargetIsWidget(e)||e.preventDefault(),!(this._mouseDownOperation.isActive()||e.timestamp{e.preventDefault(),this.viewHelper.focusTextArea()};if(c&&(n||r&&a))h(),this._mouseDownOperation.start(i.type,e,t);else if(s)e.preventDefault();else if(l){const u=i.detail;c&&this.viewHelper.shouldSuppressMouseDownOnViewZone(u.viewZoneId)&&(h(),this._mouseDownOperation.start(i.type,e,t),e.preventDefault())}else d&&this.viewHelper.shouldSuppressMouseDownOnWidget(i.detail)&&(h(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:i})}}class zJ extends W{constructor(e,t,i,n,s,r){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._mouseTargetFactory=n,this._createMouseTarget=s,this._getMouseColumn=r,this._mouseMoveMonitor=this._register(new fJ(this._viewHelper.viewDomNode)),this._topBottomDragScrolling=this._register(new UJ(this._context,this._viewHelper,this._mouseTargetFactory,(a,l,d)=>this._dispatchMouse(a,l,d))),this._mouseState=new vL,this._currentSelection=new _e(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);const t=this._findMousePosition(e,!1);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):t.type===13&&(t.outsidePosition==="above"||t.outsidePosition==="below")?this._topBottomDragScrolling.start(t,e):(this._topBottomDragScrolling.stop(),this._dispatchMouse(t,!0,1)))}start(e,t,i){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(e===3),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);const n=this._findMousePosition(t,!0);if(!n||!n.position)return;this._mouseState.trySetCount(t.detail,n.position),t.detail=this._mouseState.count;const s=this._context.configuration.options;if(!s.get(91)&&s.get(35)&&!s.get(22)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&n.type===6&&n.position&&this._currentSelection.containsPosition(n.position)){this._mouseState.isDragAndDrop=!0,this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,r=>this._onMouseDownThenMove(r),r=>{const a=this._findMousePosition(this._lastMouseEvent,!1);Mc(r)?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:a?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()});return}this._mouseState.isDragAndDrop=!1,this._dispatchMouse(n,t.shiftKey,1),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,r=>this._onMouseDownThenMove(r),()=>this._stop()))}_stop(){this._isActive=!1,this._topBottomDragScrolling.stop()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onPointerUp(){this._mouseMoveMonitor.stopMonitoring()}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){const t=e.editorPos,i=this._context.viewModel,n=this._context.viewLayout,s=this._getMouseColumn(e);if(e.posyt.y+t.height){const a=e.posy-t.y-t.height,l=n.getCurrentScrollTop()+e.relativePos.y,d=Zm.getZoneAtCoord(this._context,l);if(d){const h=this._helpPositionJumpOverViewZone(d);if(h)return ts.createOutsideEditor(s,h,"below",a)}const c=n.getLineNumberAtVerticalOffset(l);return ts.createOutsideEditor(s,new F(c,i.getLineMaxColumn(c)),"below",a)}const r=n.getLineNumberAtVerticalOffset(n.getCurrentScrollTop()+e.relativePos.y);if(e.posxt.x+t.width){const a=e.posx-t.x-t.width;return ts.createOutsideEditor(s,new F(r,i.getLineMaxColumn(r)),"right",a)}return null}_findMousePosition(e,t){const i=this._getPositionOutsideEditor(e);if(i)return i;const n=this._createMouseTarget(e,t);if(!n.position)return null;if(n.type===8||n.type===5){const r=this._helpPositionJumpOverViewZone(n.detail);if(r)return ts.createViewZone(n.type,n.element,n.mouseColumn,r,n.detail)}return n}_helpPositionJumpOverViewZone(e){const t=new F(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore,n=e.positionAfter;return i&&n?i.isBefore(t)?i:n:null}_dispatchMouse(e,t,i){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,revealType:i,inSelectionMode:t,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:e.type===6&&e.detail.injectedText!==null})}}class UJ extends W{constructor(e,t,i,n){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=n,this._operation=null}dispose(){super.dispose(),this.stop()}start(e,t){this._operation?this._operation.setPosition(e,t):this._operation=new $J(this._context,this._viewHelper,this._mouseTargetFactory,this._dispatchMouse,e,t)}stop(){this._operation&&(this._operation.dispose(),this._operation=null)}}class $J extends W{constructor(e,t,i,n,s,r){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=n,this._position=s,this._mouseEvent=r,this._lastTime=Date.now(),this._animationFrameDisposable=ao(De(r.browserEvent),()=>this._execute())}dispose(){this._animationFrameDisposable.dispose(),super.dispose()}setPosition(e,t){this._position=e,this._mouseEvent=t}_tick(){const e=Date.now(),t=e-this._lastTime;return this._lastTime=e,t}_getScrollSpeed(){const e=this._context.configuration.options.get(67),t=this._context.configuration.options.get(145).height/e,i=this._position.outsideDistance/e;return i<=1.5?Math.max(30,t*(1+i)):i<=3?Math.max(60,t*(2+i)):Math.max(200,t*(7+i))}_execute(){const e=this._context.configuration.options.get(67),t=this._getScrollSpeed(),i=this._tick(),n=t*(i/1e3)*e,s=this._position.outsidePosition==="above"?-n:n;this._context.viewModel.viewLayout.deltaScrollNow(0,s),this._viewHelper.renderNow();const r=this._context.viewLayout.getLinesViewportData(),a=this._position.outsidePosition==="above"?r.startLineNumber:r.endLineNumber;let l;{const d=UA(this._viewHelper.viewDomNode),c=this._context.configuration.options.get(145).horizontalScrollbarHeight,h=new mL(this._mouseEvent.pos.x,d.y+d.height-c-.1),u=$A(this._viewHelper.viewDomNode,d,h);l=this._mouseTargetFactory.createMouseTarget(this._viewHelper.getLastRenderData(),d,h,u,null)}(!l.position||l.position.lineNumber!==a)&&(this._position.outsidePosition==="above"?l=ts.createOutsideEditor(this._position.mouseColumn,new F(a,1),"above",this._position.outsideDistance):l=ts.createOutsideEditor(this._position.mouseColumn,new F(a,this._context.viewModel.getLineMaxColumn(a)),"below",this._position.outsideDistance)),this._dispatchMouse(l,!0,2),this._animationFrameDisposable=ao(De(l.element),()=>this._execute())}}class vL{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(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){const i=new Date().getTime();i-this._lastSetMouseDownCountTime>vL.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}vL.CLEAR_MOUSE_DOWN_COUNT_TIME=400;class rt{get event(){return this.emitter.event}constructor(e,t,i){const n=s=>this.emitter.fire(s);this.emitter=new O({onWillAddFirstListener:()=>e.addEventListener(t,n,i),onDidRemoveLastListener:()=>e.removeEventListener(t,n,i)})}dispose(){this.emitter.dispose()}}class wn{constructor(e,t,i,n,s){this.value=e,this.selectionStart=t,this.selectionEnd=i,this.selection=n,this.newlineCountBeforeSelection=s}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(e,t){const i=e.getValue(),n=e.getSelectionStart(),s=e.getSelectionEnd();let r;if(t){const a=i.substring(0,n),l=t.value.substring(0,t.selectionStart);a===l&&(r=t.newlineCountBeforeSelection)}return new wn(i,n,s,null,r)}collapseSelection(){return this.selectionStart===this.value.length?this:new wn(this.value,this.value.length,this.value.length,null,void 0)}writeToTextArea(e,t,i){t.setValue(e,this.value),i&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){var t,i,n,s,r,a,l,d;if(e<=this.selectionStart){const u=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition((i=(t=this.selection)===null||t===void 0?void 0:t.getStartPosition())!==null&&i!==void 0?i:null,u,-1)}if(e>=this.selectionEnd){const u=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition((s=(n=this.selection)===null||n===void 0?void 0:n.getEndPosition())!==null&&s!==void 0?s:null,u,1)}const c=this.value.substring(this.selectionStart,e);if(c.indexOf("…")===-1)return this._finishDeduceEditorPosition((a=(r=this.selection)===null||r===void 0?void 0:r.getStartPosition())!==null&&a!==void 0?a:null,c,1);const h=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition((d=(l=this.selection)===null||l===void 0?void 0:l.getEndPosition())!==null&&d!==void 0?d:null,h,-1)}_finishDeduceEditorPosition(e,t,i){let n=0,s=-1;for(;(s=t.indexOf(` +`,s+1))!==-1;)n++;return[e,i*t.length,n]}static deduceInput(e,t,i){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};const n=Math.min(Ch(e.value,t.value),e.selectionStart,t.selectionStart),s=Math.min(Uw(e.value,t.value),e.value.length-e.selectionEnd,t.value.length-t.selectionEnd);e.value.substring(n,e.value.length-s);const r=t.value.substring(n,t.value.length-s),a=e.selectionStart-n,l=e.selectionEnd-n,d=t.selectionStart-n,c=t.selectionEnd-n;if(d===c){const u=e.selectionStart-n;return{text:r,replacePrevCharCnt:u,replaceNextCharCnt:0,positionDelta:0}}const h=l-a;return{text:r,replacePrevCharCnt:h,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};const i=Math.min(Ch(e.value,t.value),e.selectionEnd),n=Math.min(Uw(e.value,t.value),e.value.length-e.selectionEnd),s=e.value.substring(i,e.value.length-n),r=t.value.substring(i,t.value.length-n);e.selectionStart-i;const a=e.selectionEnd-i;t.selectionStart-i;const l=t.selectionEnd-i;return{text:r,replacePrevCharCnt:a,replaceNextCharCnt:s.length-a,positionDelta:l-r.length}}}wn.EMPTY=new wn("",0,0,null,void 0);class Zf{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){const i=e*t,n=i+1,s=i+t;return new x(n,1,s+1,1)}static fromEditorSelection(e,t,i,n){const r=Zf._getPageOfLine(t.startLineNumber,i),a=Zf._getRangeForPage(r,i),l=Zf._getPageOfLine(t.endLineNumber,i),d=Zf._getRangeForPage(l,i);let c=a.intersectRanges(new x(1,1,t.startLineNumber,t.startColumn));if(n&&e.getValueLengthInRange(c,1)>500){const v=e.modifyPosition(c.getEndPosition(),-500);c=x.fromPositions(v,c.getEndPosition())}const h=e.getValueInRange(c,1),u=e.getLineCount(),g=e.getLineMaxColumn(u);let f=d.intersectRanges(new x(t.endLineNumber,t.endColumn,u,g));if(n&&e.getValueLengthInRange(f,1)>500){const v=e.modifyPosition(f.getStartPosition(),500);f=x.fromPositions(f.getStartPosition(),v)}const p=e.getValueInRange(f,1);let _;if(r===l||r+1===l)_=e.getValueInRange(t,1);else{const v=a.intersectRanges(t),b=d.intersectRanges(t);_=e.getValueInRange(v,1)+"…"+e.getValueInRange(b,1)}return n&&_.length>2*500&&(_=_.substring(0,500)+"…"+_.substring(_.length-500,_.length)),new wn(h+_+p,h.length,h.length+_.length,t,c.endLineNumber-c.startLineNumber)}}var jJ=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},c4=function(o,e){return function(t,i){e(t,i,o)}},dS;(function(o){o.Tap="-monaco-textarea-synthetic-tap"})(dS||(dS={}));const XE={forceCopyWithSyntaxHighlighting:!1};class cb{constructor(){this._lastState=null}set(e,t){this._lastState={lastCopiedValue:e,data:t}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}cb.INSTANCE=new cb;class KJ{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(e){e=e||"";const t={text:e,replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=e.length,t}}let JE=class extends W{get textAreaState(){return this._textAreaState}constructor(e,t,i,n,s,r){super(),this._host=e,this._textArea=t,this._OS=i,this._browser=n,this._accessibilityService=s,this._logService=r,this._onFocus=this._register(new O),this.onFocus=this._onFocus.event,this._onBlur=this._register(new O),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new O),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new O),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new O),this.onCut=this._onCut.event,this._onPaste=this._register(new O),this.onPaste=this._onPaste.event,this._onType=this._register(new O),this.onType=this._onType.event,this._onCompositionStart=this._register(new O),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new O),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new O),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new O),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncFocusGainWriteScreenReaderContent=this._register(new ln),this._asyncTriggerCut=this._register(new At(()=>this._onCut.fire(),0)),this._textAreaState=wn.EMPTY,this._selectionChangeListener=null,this._accessibilityService.isScreenReaderOptimized()&&this.writeNativeTextAreaContent("ctor"),this._register(ae.runAndSubscribe(this._accessibilityService.onDidChangeScreenReaderOptimized,()=>{this._accessibilityService.isScreenReaderOptimized()&&!this._asyncFocusGainWriteScreenReaderContent.value?this._asyncFocusGainWriteScreenReaderContent.value=this._register(new At(()=>this.writeNativeTextAreaContent("asyncFocusGain"),0)):this._asyncFocusGainWriteScreenReaderContent.clear()})),this._hasFocus=!1,this._currentComposition=null;let a=null;this._register(this._textArea.onKeyDown(l=>{const d=new Ht(l);(d.keyCode===114||this._currentComposition&&d.keyCode===1)&&d.stopPropagation(),d.equals(9)&&d.preventDefault(),a=d,this._onKeyDown.fire(d)})),this._register(this._textArea.onKeyUp(l=>{const d=new Ht(l);this._onKeyUp.fire(d)})),this._register(this._textArea.onCompositionStart(l=>{const d=new KJ;if(this._currentComposition){this._currentComposition=d;return}if(this._currentComposition=d,this._OS===2&&a&&a.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===l.data&&(a.code==="ArrowRight"||a.code==="ArrowLeft")){d.handleCompositionUpdate("x"),this._onCompositionStart.fire({data:l.data});return}if(this._browser.isAndroid){this._onCompositionStart.fire({data:l.data});return}this._onCompositionStart.fire({data:l.data})})),this._register(this._textArea.onCompositionUpdate(l=>{const d=this._currentComposition;if(!d)return;if(this._browser.isAndroid){const h=wn.readFromTextArea(this._textArea,this._textAreaState),u=wn.deduceAndroidCompositionInput(this._textAreaState,h);this._textAreaState=h,this._onType.fire(u),this._onCompositionUpdate.fire(l);return}const c=d.handleCompositionUpdate(l.data);this._textAreaState=wn.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(c),this._onCompositionUpdate.fire(l)})),this._register(this._textArea.onCompositionEnd(l=>{const d=this._currentComposition;if(!d)return;if(this._currentComposition=null,this._browser.isAndroid){const h=wn.readFromTextArea(this._textArea,this._textAreaState),u=wn.deduceAndroidCompositionInput(this._textAreaState,h);this._textAreaState=h,this._onType.fire(u),this._onCompositionEnd.fire();return}const c=d.handleCompositionUpdate(l.data);this._textAreaState=wn.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(c),this._onCompositionEnd.fire()})),this._register(this._textArea.onInput(l=>{if(this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;const d=wn.readFromTextArea(this._textArea,this._textAreaState),c=wn.deduceInput(this._textAreaState,d,this._OS===2);c.replacePrevCharCnt===0&&c.text.length===1&&(sn(c.text.charCodeAt(0))||c.text.charCodeAt(0)===127)||(this._textAreaState=d,(c.text!==""||c.replacePrevCharCnt!==0||c.replaceNextCharCnt!==0||c.positionDelta!==0)&&this._onType.fire(c))})),this._register(this._textArea.onCut(l=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(l),this._asyncTriggerCut.schedule()})),this._register(this._textArea.onCopy(l=>{this._ensureClipboardGetsEditorSelection(l)})),this._register(this._textArea.onPaste(l=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),l.preventDefault(),!l.clipboardData)return;let[d,c]=eN.getTextData(l.clipboardData);d&&(c=c||cb.INSTANCE.get(d),this._onPaste.fire({text:d,metadata:c}))})),this._register(this._textArea.onFocus(()=>{const l=this._hasFocus;this._setHasFocus(!0),this._accessibilityService.isScreenReaderOptimized()&&this._browser.isSafari&&!l&&this._hasFocus&&(this._asyncFocusGainWriteScreenReaderContent.value||(this._asyncFocusGainWriteScreenReaderContent.value=new At(()=>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 e=0;return U(this._textArea.ownerDocument,"selectionchange",t=>{if(Uc.onSelectionChange(),!this._hasFocus||this._currentComposition||!this._browser.isChrome)return;const i=Date.now(),n=i-e;if(e=i,n<5)return;const s=i-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),s<100||!this._textAreaState.selection)return;const r=this._textArea.getValue();if(this._textAreaState.value!==r)return;const a=this._textArea.getSelectionStart(),l=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===a&&this._textAreaState.selectionEnd===l)return;const d=this._textAreaState.deduceEditorPosition(a),c=this._host.deduceModelPosition(d[0],d[1],d[2]),h=this._textAreaState.deduceEditorPosition(l),u=this._host.deduceModelPosition(h[0],h[1],h[2]),g=new _e(c.lineNumber,c.column,u.lineNumber,u.column);this._onSelectionChangeRequest.fire(g)})}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(e){this._hasFocus!==e&&(this._hasFocus=e,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(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}writeNativeTextAreaContent(e){!this._accessibilityService.isScreenReaderOptimized()&&e==="render"||this._currentComposition||(this._logService.trace(`writeTextAreaState(reason: ${e})`),this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent()))}_ensureClipboardGetsEditorSelection(e){const t=this._host.getDataToCopy(),i={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};cb.INSTANCE.set(this._browser.isFirefox?t.text.replace(/\r\n/g,` +`):t.text,i),e.preventDefault(),e.clipboardData&&eN.setTextData(e.clipboardData,t.text,t.html,i)}};JE=jJ([c4(4,ho),c4(5,qn)],JE);const eN={getTextData(o){const e=o.getData(wi.text);let t=null;const i=o.getData("vscode-editor-data");if(typeof i=="string")try{t=JSON.parse(i),t.version!==1&&(t=null)}catch{}return e.length===0&&t===null&&o.files.length>0?[Array.prototype.slice.call(o.files,0).map(s=>s.name).join(` +`),null]:[e,t]},setTextData(o,e,t,i){o.setData(wi.text,e),typeof t=="string"&&o.setData("text/html",t),o.setData("vscode-editor-data",JSON.stringify(i))}};class qJ extends W{get ownerDocument(){return this._actual.ownerDocument}constructor(e){super(),this._actual=e,this.onKeyDown=this._register(new rt(this._actual,"keydown")).event,this.onKeyUp=this._register(new rt(this._actual,"keyup")).event,this.onCompositionStart=this._register(new rt(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(new rt(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(new rt(this._actual,"compositionend")).event,this.onBeforeInput=this._register(new rt(this._actual,"beforeinput")).event,this.onInput=this._register(new rt(this._actual,"input")).event,this.onCut=this._register(new rt(this._actual,"cut")).event,this.onCopy=this._register(new rt(this._actual,"copy")).event,this.onPaste=this._register(new rt(this._actual,"paste")).event,this.onFocus=this._register(new rt(this._actual,"focus")).event,this.onBlur=this._register(new rt(this._actual,"blur")).event,this._onSyntheticTap=this._register(new O),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(this.onKeyDown(()=>Uc.onKeyDown())),this._register(this.onBeforeInput(()=>Uc.onBeforeInput())),this._register(this.onInput(()=>Uc.onInput())),this._register(this.onKeyUp(()=>Uc.onKeyUp())),this._register(U(this._actual,dS.Tap,()=>this._onSyntheticTap.fire()))}hasFocus(){const e=fg(this._actual);return e?e.activeElement===this._actual:this._actual.isConnected?Pn()===this._actual:!1}setIgnoreSelectionChangeTime(e){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(e,t){const i=this._actual;i.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),i.value=t)}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(e,t,i){const n=this._actual;let s=null;const r=fg(n);r?s=r.activeElement:s=Pn();const a=De(s),l=s===n,d=n.selectionStart,c=n.selectionEnd;if(l&&d===t&&c===i){lr&&a.parent!==a&&n.focus();return}if(l){this.setIgnoreSelectionChangeTime("setSelectionRange"),n.setSelectionRange(t,i),lr&&a.parent!==a&&n.focus();return}try{const h=eG(n);this.setIgnoreSelectionChangeTime("setSelectionRange"),n.focus(),n.setSelectionRange(t,i),tG(n,h)}catch{}}}class GJ extends qA{constructor(e,t,i){super(e,t,i),this._register(zt.addTarget(this.viewHelper.linesContentDomNode)),this._register(U(this.viewHelper.linesContentDomNode,Ut.Tap,s=>this.onTap(s))),this._register(U(this.viewHelper.linesContentDomNode,Ut.Change,s=>this.onChange(s))),this._register(U(this.viewHelper.linesContentDomNode,Ut.Contextmenu,s=>this._onContextMenu(new Lh(s,!1,this.viewHelper.viewDomNode),!1))),this._lastPointerType="mouse",this._register(U(this.viewHelper.linesContentDomNode,"pointerdown",s=>{const r=s.pointerType;if(r==="mouse"){this._lastPointerType="mouse";return}else r==="touch"?this._lastPointerType="touch":this._lastPointerType="pen"}));const n=new gJ(this.viewHelper.viewDomNode);this._register(n.onPointerMove(this.viewHelper.viewDomNode,s=>this._onMouseMove(s))),this._register(n.onPointerUp(this.viewHelper.viewDomNode,s=>this._onMouseUp(s))),this._register(n.onPointerLeave(this.viewHelper.viewDomNode,s=>this._onMouseLeave(s))),this._register(n.onPointerDown(this.viewHelper.viewDomNode,(s,r)=>this._onMouseDown(s,r)))}onTap(e){!e.initialTarget||!this.viewHelper.linesContentDomNode.contains(e.initialTarget)||(e.preventDefault(),this.viewHelper.focusTextArea(),this._dispatchGesture(e,!1))}onChange(e){this._lastPointerType==="touch"&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY),this._lastPointerType==="pen"&&this._dispatchGesture(e,!0)}_dispatchGesture(e,t){const i=this._createMouseTarget(new Lh(e,!1,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.dispatchMouse({position:i.position,mouseColumn:i.position.column,startedOnLineNumbers:!1,revealType:1,mouseDownCount:e.tapCount,inSelectionMode:t,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:i.type===6&&i.detail.injectedText!==null})}_onMouseDown(e,t){e.browserEvent.pointerType!=="touch"&&super._onMouseDown(e,t)}}class ZJ extends qA{constructor(e,t,i){super(e,t,i),this._register(zt.addTarget(this.viewHelper.linesContentDomNode)),this._register(U(this.viewHelper.linesContentDomNode,Ut.Tap,n=>this.onTap(n))),this._register(U(this.viewHelper.linesContentDomNode,Ut.Change,n=>this.onChange(n))),this._register(U(this.viewHelper.linesContentDomNode,Ut.Contextmenu,n=>this._onContextMenu(new Lh(n,!1,this.viewHelper.viewDomNode),!1)))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new Lh(e,!1,this.viewHelper.viewDomNode),!1);if(t.position){const i=document.createEvent("CustomEvent");i.initEvent(dS.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(i),this.viewController.moveTo(t.position,1)}}onChange(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}}class YJ extends W{constructor(e,t,i){super(),(Da||G$&&Z7)&&cA.pointerEvents?this.handler=this._register(new GJ(e,t,i)):Mt.TouchEvent?this.handler=this._register(new ZJ(e,t,i)):this.handler=this._register(new qA(e,t,i))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}class qg extends P0{}const Ji=ot("themeService");function fi(o){return{id:o}}function tN(o){switch(o){case sr.DARK:return"vs-dark";case sr.HIGH_CONTRAST_DARK:return"hc-black";case sr.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}const s8={ThemingContribution:"base.contributions.theming"};class QJ{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new O}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),Ce(()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)})}getThemingParticipants(){return this.themingParticipants}}const o8=new QJ;hi.add(s8.ThemingContribution,o8);function gr(o){return o8.onColorThemeChange(o)}class XJ extends W{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(t=>this.onThemeChange(t)))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}const r8=N("editor.lineHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},m("lineHighlight","Background color for the highlight of line at the cursor position.")),h4=N("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:at},m("lineHighlightBorderBox","Background color for the border around the line at the cursor position."));N("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},m("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);N("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:ti,hcLight:ti},m("rangeHighlightBorder","Background color of the border around highlighted ranges."));N("editor.symbolHighlightBackground",{dark:Id,light:Id,hcDark:null,hcLight:null},m("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);N("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:ti,hcLight:ti},m("symbolHighlightBorder","Background color of the border around highlighted symbols."));const Sl=N("editorCursor.foreground",{dark:"#AEAFAD",light:z.black,hcDark:z.white,hcLight:"#0F4A85"},m("caret","Color of the editor cursor.")),Ad=N("editorCursor.background",null,m("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),a8=N("editorMultiCursor.primary.foreground",{dark:Sl,light:Sl,hcDark:Sl,hcLight:Sl},m("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),JJ=N("editorMultiCursor.primary.background",{dark:Ad,light:Ad,hcDark:Ad,hcLight:Ad},m("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.")),l8=N("editorMultiCursor.secondary.foreground",{dark:Sl,light:Sl,hcDark:Sl,hcLight:Sl},m("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),eee=N("editorMultiCursor.secondary.background",{dark:Ad,light:Ad,hcDark:Ad,hcLight:Ad},m("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.")),Pd=N("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},m("editorWhitespaces","Color of whitespace characters in the editor.")),tee=N("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:z.white,hcLight:"#292929"},m("editorLineNumbers","Color of editor line numbers.")),PC=N("editorIndentGuide.background",{dark:Pd,light:Pd,hcDark:Pd,hcLight:Pd},m("editorIndentGuides","Color of the editor indentation guides."),!1,m("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead.")),OC=N("editorIndentGuide.activeBackground",{dark:Pd,light:Pd,hcDark:Pd,hcLight:Pd},m("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,m("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),F0=N("editorIndentGuide.background1",{dark:PC,light:PC,hcDark:PC,hcLight:PC},m("editorIndentGuides1","Color of the editor indentation guides (1).")),iee=N("editorIndentGuide.background2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorIndentGuides2","Color of the editor indentation guides (2).")),nee=N("editorIndentGuide.background3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorIndentGuides3","Color of the editor indentation guides (3).")),see=N("editorIndentGuide.background4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorIndentGuides4","Color of the editor indentation guides (4).")),oee=N("editorIndentGuide.background5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorIndentGuides5","Color of the editor indentation guides (5).")),ree=N("editorIndentGuide.background6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorIndentGuides6","Color of the editor indentation guides (6).")),B0=N("editorIndentGuide.activeBackground1",{dark:OC,light:OC,hcDark:OC,hcLight:OC},m("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),aee=N("editorIndentGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),lee=N("editorIndentGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),dee=N("editorIndentGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),cee=N("editorIndentGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),hee=N("editorIndentGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),FC=N("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:ti,hcLight:ti},m("editorActiveLineNumber","Color of editor active line number"),!1,m("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead."));N("editorLineNumber.activeForeground",{dark:FC,light:FC,hcDark:FC,hcLight:FC},m("editorActiveLineNumber","Color of editor active line number"));const uee=N("editorLineNumber.dimmedForeground",{dark:null,light:null,hcDark:null,hcLight:null},m("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed."));N("editorRuler.foreground",{dark:"#5A5A5A",light:z.lightgrey,hcDark:z.white,hcLight:"#292929"},m("editorRuler","Color of the editor rulers."));N("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},m("editorCodeLensForeground","Foreground color of editor CodeLens"));N("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},m("editorBracketMatchBackground","Background color behind matching brackets"));N("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:at,hcLight:at},m("editorBracketMatchBorder","Color for matching brackets boxes"));const gee=N("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},m("editorOverviewRulerBorder","Color of the overview ruler border.")),fee=N("editorOverviewRuler.background",null,m("editorOverviewRulerBackground","Background color of the editor overview ruler."));N("editorGutter.background",{dark:rn,light:rn,hcDark:rn,hcLight:rn},m("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers."));N("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:z.fromHex("#fff").transparent(.8),hcLight:at},m("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor."));const mee=N("editorUnnecessaryCode.opacity",{dark:z.fromHex("#000a"),light:z.fromHex("#0007"),hcDark:null,hcLight:null},m("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.`));N("editorGhostText.border",{dark:null,light:null,hcDark:z.fromHex("#fff").transparent(.8),hcLight:z.fromHex("#292929").transparent(.8)},m("editorGhostTextBorder","Border color of ghost text in the editor."));N("editorGhostText.foreground",{dark:z.fromHex("#ffffff56"),light:z.fromHex("#0007"),hcDark:null,hcLight:null},m("editorGhostTextForeground","Foreground color of the ghost text in the editor."));N("editorGhostText.background",{dark:null,light:null,hcDark:null,hcLight:null},m("editorGhostTextBackground","Background color of the ghost text in the editor."));const BC=new z(new gt(0,122,204,.6)),d8=N("editorOverviewRuler.rangeHighlightForeground",{dark:BC,light:BC,hcDark:BC,hcLight:BC},m("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),pee=N("editorOverviewRuler.errorForeground",{dark:new z(new gt(255,18,18,.7)),light:new z(new gt(255,18,18,.7)),hcDark:new z(new gt(255,50,50,1)),hcLight:"#B5200D"},m("overviewRuleError","Overview ruler marker color for errors.")),_ee=N("editorOverviewRuler.warningForeground",{dark:ns,light:ns,hcDark:rb,hcLight:rb},m("overviewRuleWarning","Overview ruler marker color for warnings.")),vee=N("editorOverviewRuler.infoForeground",{dark:Vs,light:Vs,hcDark:ab,hcLight:ab},m("overviewRuleInfo","Overview ruler marker color for infos.")),c8=N("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},m("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),h8=N("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},m("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),u8=N("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},m("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),g8=N("editorBracketHighlight.foreground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),f8=N("editorBracketHighlight.foreground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),m8=N("editorBracketHighlight.foreground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),bee=N("editorBracketHighlight.unexpectedBracket.foreground",{dark:new z(new gt(255,18,18,.8)),light:new z(new gt(255,18,18,.8)),hcDark:new z(new gt(255,50,50,1)),hcLight:""},m("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),Cee=N("editorBracketPairGuide.background1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),wee=N("editorBracketPairGuide.background2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),See=N("editorBracketPairGuide.background3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),yee=N("editorBracketPairGuide.background4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),Lee=N("editorBracketPairGuide.background5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),xee=N("editorBracketPairGuide.background6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),Dee=N("editorBracketPairGuide.activeBackground1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),kee=N("editorBracketPairGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),Iee=N("editorBracketPairGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),Eee=N("editorBracketPairGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),Nee=N("editorBracketPairGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),Tee=N("editorBracketPairGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},m("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides."));N("editorUnicodeHighlight.border",{dark:ns,light:ns,hcDark:ns,hcLight:ns},m("editorUnicodeHighlight.border","Border color used to highlight unicode characters."));N("editorUnicodeHighlight.background",{dark:TC,light:TC,hcDark:TC,hcLight:TC},m("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));gr((o,e)=>{const t=o.getColor(rn),i=o.getColor(r8),n=i&&!i.isTransparent()?i:t;n&&e.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${n}; }`)});class W0 extends qg{constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new F(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){const e=this._context.configuration.options;this._lineHeight=e.get(67);const t=e.get(68);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(95);const i=e.get(145);this._lineNumbersLeft=i.lineNumbersLeft,this._lineNumbersWidth=i.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(t);let i=!1;return this._activeLineNumber!==t.lineNumber&&(this._activeLineNumber=t.lineNumber,i=!0),(this._renderLineNumbers===2||this._renderLineNumbers===3)&&(i=!0),i}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onDecorationsChanged(e){return e.affectsLineNumber}_getLineRenderLineNumber(e){const t=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new F(e,1));if(t.column!==1)return"";const i=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(i);if(this._renderLineNumbers===2){const n=Math.abs(this._lastCursorModelPosition.lineNumber-i);return n===0?''+i+"":String(n)}if(this._renderLineNumbers===3){if(this._lastCursorModelPosition.lineNumber===i||i%10===0)return String(i);const n=this._context.viewModel.getLineCount();return i===n?String(i):""}return String(i)}prepareRender(e){if(this._renderLineNumbers===0){this._renderResult=null;return}const t=xs?this._lineHeight%2===0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,s=this._context.viewModel.getDecorationsInViewport(e.visibleRange).filter(d=>!!d.options.lineNumberClassName);s.sort((d,c)=>x.compareRangesUsingEnds(d.range,c.range));let r=0;const a=this._context.viewModel.getLineCount(),l=[];for(let d=i;d<=n;d++){const c=d-i;let h=this._getLineRenderLineNumber(d),u="";for(;r${h}`}this._renderResult=l}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}W0.CLASS_NAME="line-numbers";gr((o,e)=>{const t=o.getColor(tee),i=o.getColor(uee);i?e.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${i}; }`):t&&e.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${t.transparent(.4)}; }`)});class _g extends uo{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(145);this._canUseLayerHinting=!t.get(32),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._domNode=Lt(document.createElement("div")),this._domNode.setClassName(_g.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=Lt(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(_g.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(145);return this._canUseLayerHinting=!t.get(32),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollTopChanged}prepareRender(e){}render(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);const i=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(i),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(i)}}_g.CLASS_NAME="glyph-margin";_g.OUTER_CLASS_NAME="margin";const _m="monaco-mouse-cursor-text";class Mee{constructor(){this._onDidChange=new O,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()}}const lv=new Mee,St=ot("keybindingService");var Ree=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},u4=function(o,e){return function(t,i){e(t,i,o)}};class Aee{constructor(e,t,i,n,s){this._context=e,this.modelLineNumber=t,this.distanceToModelLineStart=i,this.widthOfHiddenLineTextBefore=n,this.distanceToModelLineEnd=s,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this._previousPresentation=null}prepareRender(e){const t=new F(this.modelLineNumber,this.distanceToModelLineStart+1),i=new F(this.modelLineNumber,this._context.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t),this.endPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i),this.startPosition.lineNumber===this.endPosition.lineNumber?(this.visibleTextareaStart=e.visibleRangeForPosition(this.startPosition),this.visibleTextareaEnd=e.visibleRangeForPosition(this.endPosition)):(this.visibleTextareaStart=null,this.visibleTextareaEnd=null)}definePresentation(e){return this._previousPresentation||(e?this._previousPresentation=e:this._previousPresentation={foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this._previousPresentation}}const UD=lr;let iN=class extends uo{constructor(e,t,i,n,s){super(e),this._keybindingService=n,this._instantiationService=s,this._primaryCursorPosition=new F(1,1),this._primaryCursorVisibleRange=null,this._viewController=t,this._visibleRangeProvider=i,this._scrollLeft=0,this._scrollTop=0;const r=this._context.configuration.options,a=r.get(145);this._setAccessibilityOptions(r),this._contentLeft=a.contentLeft,this._contentWidth=a.contentWidth,this._contentHeight=a.height,this._fontInfo=r.get(50),this._lineHeight=r.get(67),this._emptySelectionClipboard=r.get(37),this._copyWithSyntaxHighlighting=r.get(25),this._visibleTextArea=null,this._selections=[new _e(1,1,1,1)],this._modelSelections=[new _e(1,1,1,1)],this._lastRenderPosition=null,this.textArea=Lt(document.createElement("textarea")),Na.write(this.textArea,7),this.textArea.setClassName(`inputarea ${_m}`),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:l}=this._context.viewModel.model.getOptions();this.textArea.domNode.style.tabSize=`${l*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(r)),this.textArea.setAttribute("aria-required",r.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(r.get(124))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",m("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-autocomplete",r.get(91)?"none":"both"),this._ensureReadOnlyAttribute(),this.textAreaCover=Lt(document.createElement("div")),this.textAreaCover.setPosition("absolute");const d={getLineCount:()=>this._context.viewModel.getLineCount(),getLineMaxColumn:u=>this._context.viewModel.getLineMaxColumn(u),getValueInRange:(u,g)=>this._context.viewModel.getValueInRange(u,g),getValueLengthInRange:(u,g)=>this._context.viewModel.getValueLengthInRange(u,g),modifyPosition:(u,g)=>this._context.viewModel.modifyPosition(u,g)},c={getDataToCopy:()=>{const u=this._context.viewModel.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,Fn),g=this._context.viewModel.model.getEOL(),f=this._emptySelectionClipboard&&this._modelSelections.length===1&&this._modelSelections[0].isEmpty(),p=Array.isArray(u)?u:null,_=Array.isArray(u)?u.join(g):u;let v,b=null;if(XE.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&_.length<65536){const C=this._context.viewModel.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);C&&(v=C.html,b=C.mode)}return{isFromEmptySelection:f,multicursorText:p,text:_,html:v,mode:b}},getScreenReaderContent:()=>{if(this._accessibilitySupport===1){const u=this._selections[0];if(it&&u.isEmpty()){const f=u.getStartPosition();let p=this._getWordBeforePosition(f);if(p.length===0&&(p=this._getCharacterBeforePosition(f)),p.length>0)return new wn(p,p.length,p.length,x.fromPositions(f),0)}if(it&&!u.isEmpty()&&d.getValueLengthInRange(u,0)<500){const f=d.getValueInRange(u,0);return new wn(f,0,f.length,u,0)}if(Yd&&!u.isEmpty()){const f="vscode-placeholder";return new wn(f,0,f.length,null,void 0)}return wn.EMPTY}if(AO){const u=this._selections[0];if(u.isEmpty()){const g=u.getStartPosition(),[f,p]=this._getAndroidWordAtPosition(g);if(f.length>0)return new wn(f,p,p,x.fromPositions(g),0)}return wn.EMPTY}return Zf.fromEditorSelection(d,this._selections[0],this._accessibilityPageSize,this._accessibilitySupport===0)},deduceModelPosition:(u,g,f)=>this._context.viewModel.deduceModelPositionRelativeToViewPosition(u,g,f)},h=this._register(new qJ(this.textArea.domNode));this._textAreaInput=this._register(this._instantiationService.createInstance(JE,c,h,to,{isAndroid:AO,isChrome:x0,isFirefox:lr,isSafari:Yd})),this._register(this._textAreaInput.onKeyDown(u=>{this._viewController.emitKeyDown(u)})),this._register(this._textAreaInput.onKeyUp(u=>{this._viewController.emitKeyUp(u)})),this._register(this._textAreaInput.onPaste(u=>{let g=!1,f=null,p=null;u.metadata&&(g=this._emptySelectionClipboard&&!!u.metadata.isFromEmptySelection,f=typeof u.metadata.multicursorText<"u"?u.metadata.multicursorText:null,p=u.metadata.mode),this._viewController.paste(u.text,g,f,p)})),this._register(this._textAreaInput.onCut(()=>{this._viewController.cut()})),this._register(this._textAreaInput.onType(u=>{u.replacePrevCharCnt||u.replaceNextCharCnt||u.positionDelta?this._viewController.compositionType(u.text,u.replacePrevCharCnt,u.replaceNextCharCnt,u.positionDelta):this._viewController.type(u.text)})),this._register(this._textAreaInput.onSelectionChangeRequest(u=>{this._viewController.setSelection(u)})),this._register(this._textAreaInput.onCompositionStart(u=>{const g=this.textArea.domNode,f=this._modelSelections[0],{distanceToModelLineStart:p,widthOfHiddenTextBefore:_}=(()=>{const b=g.value.substring(0,Math.min(g.selectionStart,g.selectionEnd)),C=b.lastIndexOf(` +`),w=b.substring(C+1),S=w.lastIndexOf(" "),L=w.length-S-1,D=f.getStartPosition(),I=Math.min(D.column-1,L),T=D.column-1-I,V=w.substring(0,w.length-I),{tabSize:P}=this._context.viewModel.model.getOptions(),A=Pee(this.textArea.domNode.ownerDocument,V,this._fontInfo,P);return{distanceToModelLineStart:T,widthOfHiddenTextBefore:A}})(),{distanceToModelLineEnd:v}=(()=>{const b=g.value.substring(Math.max(g.selectionStart,g.selectionEnd)),C=b.indexOf(` +`),w=C===-1?b:b.substring(0,C),S=w.indexOf(" "),L=S===-1?w.length:w.length-S-1,D=f.getEndPosition(),I=Math.min(this._context.viewModel.model.getLineMaxColumn(D.lineNumber)-D.column,L);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(D.lineNumber)-D.column-I}})();this._context.viewModel.revealRange("keyboard",!0,x.fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new Aee(this._context,f.startLineNumber,p,_,v),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${_m} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()})),this._register(this._textAreaInput.onCompositionUpdate(u=>{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 ${_m}`),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(lv.onDidChange(()=>{this._ensureReadOnlyAttribute()}))}writeScreenReaderContent(e){this._textAreaInput.writeNativeTextAreaContent(e)}dispose(){super.dispose()}_getAndroidWordAtPosition(e){const t='`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',i=this._context.viewModel.getLineContent(e.lineNumber),n=dr(t,[]);let s=!0,r=e.column,a=!0,l=e.column,d=0;for(;d<50&&(s||a);){if(s&&r<=1&&(s=!1),s){const c=i.charCodeAt(r-2);n.get(c)!==0?s=!1:r--}if(a&&l>i.length&&(a=!1),a){const c=i.charCodeAt(l-1);n.get(c)!==0?a=!1:l++}d++}return[i.substring(r-1,l-1),e.column-r]}_getWordBeforePosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=dr(this._context.configuration.options.get(131),[]);let n=e.column,s=0;for(;n>1;){const r=t.charCodeAt(n-2);if(i.get(r)!==0||s>50)return t.substring(n-1,e.column-1);s++,n--}return t.substring(0,e.column-1)}_getCharacterBeforePosition(e){if(e.column>1){const i=this._context.viewModel.getLineContent(e.lineNumber).charAt(e.column-2);if(!sn(i.charCodeAt(0)))return i}return""}_getAriaLabel(e){var t,i,n;if(e.get(2)===1){const r=(t=this._keybindingService.lookupKeybinding("editor.action.toggleScreenReaderAccessibilityMode"))===null||t===void 0?void 0:t.getAriaLabel(),a=(i=this._keybindingService.lookupKeybinding("workbench.action.showCommands"))===null||i===void 0?void 0:i.getAriaLabel(),l=(n=this._keybindingService.lookupKeybinding("workbench.action.openGlobalKeybindings"))===null||n===void 0?void 0:n.getAriaLabel(),d=m("accessibilityModeOff","The editor is not accessible at this time.");return r?m("accessibilityOffAriaLabel","{0} To enable screen reader optimized mode, use {1}",d,r):a?m("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,a):l?m("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,l):d}return e.get(4)}_setAccessibilityOptions(e){this._accessibilitySupport=e.get(2);const t=e.get(3);this._accessibilitySupport===2&&t===Oa.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=t;const n=e.get(145).wrappingColumn;if(n!==-1&&this._accessibilitySupport!==1){const s=e.get(50);this._textAreaWrapping=!0,this._textAreaWidth=Math.round(n*s.typicalHalfwidthCharacterWidth)}else this._textAreaWrapping=!1,this._textAreaWidth=UD?0:1}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(145);this._setAccessibilityOptions(t),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._contentHeight=i.height,this._fontInfo=t.get(50),this._lineHeight=t.get(67),this._emptySelectionClipboard=t.get(37),this._copyWithSyntaxHighlighting=t.get(25),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:n}=this._context.viewModel.model.getOptions();return this.textArea.domNode.style.tabSize=`${n*this._fontInfo.spaceWidth}px`,this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("aria-required",t.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(t.get(124))),(e.hasChanged(34)||e.hasChanged(91))&&this._ensureReadOnlyAttribute(),e.hasChanged(2)&&this._textAreaInput.writeNativeTextAreaContent("strategy changed"),!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeNativeTextAreaContent("selection changed"),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}onZonesChanged(e){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),e.role&&this.textArea.setAttribute("role",e.role)}_ensureReadOnlyAttribute(){const e=this._context.configuration.options;!lv.enabled||e.get(34)&&e.get(91)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")}prepareRender(e){var t;this._primaryCursorPosition=new F(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition),(t=this._visibleTextArea)===null||t===void 0||t.prepareRender(e)}render(e){this._textAreaInput.writeNativeTextAreaContent("render"),this._render()}_render(){var e;if(this._visibleTextArea){const n=this._visibleTextArea.visibleTextareaStart,s=this._visibleTextArea.visibleTextareaEnd,r=this._visibleTextArea.startPosition,a=this._visibleTextArea.endPosition;if(r&&a&&n&&s&&s.left>=this._scrollLeft&&n.left<=this._scrollLeft+this._contentWidth){const l=this._context.viewLayout.getVerticalOffsetForLineNumber(this._primaryCursorPosition.lineNumber)-this._scrollTop,d=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));let c=this._visibleTextArea.widthOfHiddenLineTextBefore,h=this._contentLeft+n.left-this._scrollLeft,u=s.left-n.left+1;if(hthis._contentWidth&&(u=this._contentWidth);const g=this._context.viewModel.getViewLineData(r.lineNumber),f=g.tokens.findTokenIndexAtOffset(r.column-1),p=g.tokens.findTokenIndexAtOffset(a.column-1),_=f===p,v=this._visibleTextArea.definePresentation(_?g.tokens.getPresentation(f):null);this.textArea.domNode.scrollTop=d*this._lineHeight,this.textArea.domNode.scrollLeft=c,this._doRender({lastRenderPosition:null,top:l,left:h,width:u,height:this._lineHeight,useCover:!1,color:(gi.getColorMap()||[])[v.foreground],italic:v.italic,bold:v.bold,underline:v.underline,strikethrough:v.strikethrough})}return}if(!this._primaryCursorVisibleRange){this._renderAtTopLeft();return}const t=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(tthis._contentLeft+this._contentWidth){this._renderAtTopLeft();return}const i=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(i<0||i>this._contentHeight){this._renderAtTopLeft();return}if(it||this._accessibilitySupport===2){this._doRender({lastRenderPosition:this._primaryCursorPosition,top:i,left:this._textAreaWrapping?this._contentLeft:t,width:this._textAreaWidth,height:this._lineHeight,useCover:!1}),this.textArea.domNode.scrollLeft=this._primaryCursorVisibleRange.left;const n=(e=this._textAreaInput.textAreaState.newlineCountBeforeSelection)!==null&&e!==void 0?e:this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=n*this._lineHeight;return}this._doRender({lastRenderPosition:this._primaryCursorPosition,top:i,left:this._textAreaWrapping?this._contentLeft:t,width:this._textAreaWidth,height:UD?0:1,useCover:!1})}_newlinecount(e){let t=0,i=-1;do{if(i=e.indexOf(` +`,i+1),i===-1)break;t++}while(!0);return t}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:this._textAreaWidth,height:UD?0:1,useCover:!0})}_doRender(e){this._lastRenderPosition=e.lastRenderPosition;const t=this.textArea,i=this.textAreaCover;kn(t,this._fontInfo),t.setTop(e.top),t.setLeft(e.left),t.setWidth(e.width),t.setHeight(e.height),t.setColor(e.color?z.Format.CSS.formatHex(e.color):""),t.setFontStyle(e.italic?"italic":""),e.bold&&t.setFontWeight("bold"),t.setTextDecoration(`${e.underline?" underline":""}${e.strikethrough?" line-through":""}`),i.setTop(e.useCover?e.top:0),i.setLeft(e.useCover?e.left:0),i.setWidth(e.useCover?e.width:0),i.setHeight(e.useCover?e.height:0);const n=this._context.configuration.options;n.get(57)?i.setClassName("monaco-editor-background textAreaCover "+_g.OUTER_CLASS_NAME):n.get(68).renderType!==0?i.setClassName("monaco-editor-background textAreaCover "+W0.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")}};iN=Ree([u4(3,St),u4(4,Le)],iN);function Pee(o,e,t,i){if(e.length===0)return 0;const n=o.createElement("div");n.style.position="absolute",n.style.top="-50000px",n.style.width="50000px";const s=o.createElement("span");kn(s,t),s.style.whiteSpace="pre",s.style.tabSize=`${i*t.spaceWidth}px`,s.append(e),n.appendChild(s),o.body.appendChild(n);const r=s.offsetWidth;return o.body.removeChild(n),r}function Oee(o,e,t){let i=0;for(let s=0;s!0,Bee=()=>!1,Wee=o=>o===" "||o===" ";class gf{static shouldRecreate(e){return e.hasChanged(145)||e.hasChanged(131)||e.hasChanged(37)||e.hasChanged(77)||e.hasChanged(79)||e.hasChanged(80)||e.hasChanged(6)||e.hasChanged(7)||e.hasChanged(11)||e.hasChanged(9)||e.hasChanged(10)||e.hasChanged(14)||e.hasChanged(128)||e.hasChanged(50)||e.hasChanged(91)||e.hasChanged(130)}constructor(e,t,i,n){var s;this.languageConfigurationService=n,this._cursorMoveConfigurationBrand=void 0,this._languageId=e;const r=i.options,a=r.get(145),l=r.get(50);this.readOnly=r.get(91),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.stickyTabStops=r.get(116),this.lineHeight=l.lineHeight,this.typicalHalfwidthCharacterWidth=l.typicalHalfwidthCharacterWidth,this.pageSize=Math.max(1,Math.floor(a.height/this.lineHeight)-2),this.useTabStops=r.get(128),this.wordSeparators=r.get(131),this.emptySelectionClipboard=r.get(37),this.copyWithSyntaxHighlighting=r.get(25),this.multiCursorMergeOverlapping=r.get(77),this.multiCursorPaste=r.get(79),this.multiCursorLimit=r.get(80),this.autoClosingBrackets=r.get(6),this.autoClosingComments=r.get(7),this.autoClosingQuotes=r.get(11),this.autoClosingDelete=r.get(9),this.autoClosingOvertype=r.get(10),this.autoSurround=r.get(14),this.autoIndent=r.get(12),this.wordSegmenterLocales=r.get(130),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(e,this.autoClosingQuotes,!0),comment:this._getShouldAutoClose(e,this.autoClosingComments,!1),bracket:this._getShouldAutoClose(e,this.autoClosingBrackets,!1)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(e).getAutoClosingPairs();const d=this.languageConfigurationService.getLanguageConfiguration(e).getSurroundingPairs();if(d)for(const h of d)this.surroundingPairs[h.open]=h.close;const c=this.languageConfigurationService.getLanguageConfiguration(e).comments;this.blockCommentStartToken=(s=c==null?void 0:c.blockCommentStartToken)!==null&&s!==void 0?s:null}get electricChars(){var e;if(!this._electricChars){this._electricChars={};const t=(e=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter)===null||e===void 0?void 0:e.getElectricCharacters();if(t)for(const i of t)this._electricChars[i]=!0}return this._electricChars}onElectricCharacter(e,t,i){const n=Wu(t,i-1),s=this.languageConfigurationService.getLanguageConfiguration(n.languageId).electricCharacter;return s?s.onElectricCharacter(e,n,i-n.firstCharOffset):null}normalizeIndentation(e){return GA(e,this.indentSize,this.insertSpaces)}_getShouldAutoClose(e,t,i){switch(t){case"beforeWhitespace":return Wee;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(e,i);case"always":return Fee;case"never":return Bee}}_getLanguageDefinedShouldAutoClose(e,t){const i=this.languageConfigurationService.getLanguageConfiguration(e).getAutoCloseBeforeSet(t);return n=>i.indexOf(n)!==-1}visibleColumnFromColumn(e,t){return Yi.visibleColumnFromColumn(e.getLineContent(t.lineNumber),t.column,this.tabSize)}columnFromVisibleColumn(e,t,i){const n=Yi.columnFromVisibleColumn(e.getLineContent(t),i,this.tabSize),s=e.getLineMinColumn(t);if(nr?r:n}}let mt=class p8{static fromModelState(e){return new Hee(e)}static fromViewState(e){return new Vee(e)}static fromModelSelection(e){const t=_e.liftSelection(e),i=new Sn(x.fromPositions(t.getSelectionStart()),0,0,t.getPosition(),0);return p8.fromModelState(i)}static fromModelSelections(e){const t=[];for(let i=0,n=e.length;is,d=n>r,c=nr||vn||_0&&n--,Ru.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,n)}static columnSelectRight(e,t,i){let n=0;const s=Math.min(i.fromViewLineNumber,i.toViewLineNumber),r=Math.max(i.fromViewLineNumber,i.toViewLineNumber);for(let l=s;l<=r;l++){const d=t.getLineMaxColumn(l),c=e.visibleColumnFromColumn(t,new F(l,d));n=Math.max(n,c)}let a=i.toViewVisualColumn;return ae.getLineMinColumn(t.lineNumber))return t.delta(void 0,-S9(e.getLineContent(t.lineNumber),t.column-1));if(t.lineNumber>1){const i=t.lineNumber-1;return new F(i,e.getLineMaxColumn(i))}else return t}static leftPositionAtomicSoftTabs(e,t,i){if(t.column<=e.getLineIndentColumn(t.lineNumber)){const n=e.getLineMinColumn(t.lineNumber),s=e.getLineContent(t.lineNumber),r=lb.atomicPosition(s,t.column-1,i,0);if(r!==-1&&r+1>=n)return new F(t.lineNumber,r+1)}return this.leftPosition(e,t)}static left(e,t,i){const n=e.stickyTabStops?Dt.leftPositionAtomicSoftTabs(t,i,e.tabSize):Dt.leftPosition(t,i);return new $D(n.lineNumber,n.column,0)}static moveLeft(e,t,i,n,s){let r,a;if(i.hasSelection()&&!n)r=i.selection.startLineNumber,a=i.selection.startColumn;else{const l=i.position.delta(void 0,-(s-1)),d=t.normalizePosition(Dt.clipPositionColumn(l,t),0),c=Dt.left(e,t,d);r=c.lineNumber,a=c.column}return i.move(n,r,a,0)}static clipPositionColumn(e,t){return new F(e.lineNumber,Dt.clipRange(e.column,t.getLineMinColumn(e.lineNumber),t.getLineMaxColumn(e.lineNumber)))}static clipRange(e,t,i){return ei?i:e}static rightPosition(e,t,i){return ic?(i=c,a?n=t.getLineMaxColumn(i):n=Math.min(t.getLineMaxColumn(i),n)):n=e.columnFromVisibleColumn(t,i,d),g?s=0:s=d-Yi.visibleColumnFromColumn(t.getLineContent(i),n,e.tabSize),l!==void 0){const f=new F(i,n),p=t.normalizePosition(f,l);s=s+(n-p.column),i=p.lineNumber,n=p.column}return new $D(i,n,s)}static down(e,t,i,n,s,r,a){return this.vertical(e,t,i,n,s,i+r,a,4)}static moveDown(e,t,i,n,s){let r,a;i.hasSelection()&&!n?(r=i.selection.endLineNumber,a=i.selection.endColumn):(r=i.position.lineNumber,a=i.position.column);let l=0,d;do if(d=Dt.down(e,t,r+l,a,i.leftoverVisibleColumns,s,!0),t.normalizePosition(new F(d.lineNumber,d.column),2).lineNumber>r)break;while(l++<10&&r+l1&&this._isBlankLine(t,s);)s--;for(;s>1&&!this._isBlankLine(t,s);)s--;return i.move(n,s,t.getLineMinColumn(s),0)}static moveToNextBlankLine(e,t,i,n){const s=t.getLineCount();let r=i.position.lineNumber;for(;r=u.length+1)return!1;const g=u.charAt(h.column-2),f=n.get(g);if(!f)return!1;if(xc(g)){if(i==="never")return!1}else if(t==="never")return!1;const p=u.charAt(h.column-1);let _=!1;for(const v of f)v.open===g&&v.close===p&&(_=!0);if(!_)return!1;if(e==="auto"){let v=!1;for(let b=0,C=a.length;b1){const s=t.getLineContent(n.lineNumber),r=ss(s),a=r===-1?s.length+1:r+1;if(n.column<=a){const l=i.visibleColumnFromColumn(t,n),d=Yi.prevIndentTabStop(l,i.indentSize),c=i.columnFromVisibleColumn(t,n.lineNumber,d);return new x(n.lineNumber,c,n.lineNumber,n.column)}}return x.fromPositions(vg.getPositionAfterDeleteLeft(n,t),n)}static getPositionAfterDeleteLeft(e,t){if(e.column>1){const i=KK(e.column-1,t.getLineContent(e.lineNumber));return e.with(void 0,i+1)}else if(e.lineNumber>1){const i=e.lineNumber-1;return new F(i,t.getLineMaxColumn(i))}else return e}static cut(e,t,i){const n=[];let s=null;i.sort((r,a)=>F.compare(r.getStartPosition(),a.getEndPosition()));for(let r=0,a=i.length;r1&&(s==null?void 0:s.endLineNumber)!==d.lineNumber?(c=d.lineNumber-1,h=t.getLineMaxColumn(d.lineNumber-1),u=d.lineNumber,g=t.getLineMaxColumn(d.lineNumber)):(c=d.lineNumber,h=1,u=d.lineNumber,g=t.getLineMaxColumn(d.lineNumber));const f=new x(c,h,u,g);s=f,f.isEmpty()?n[r]=null:n[r]=new Tn(f,"")}else n[r]=null;else n[r]=new Tn(l,"")}return new As(0,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}class yt{static _createWord(e,t,i,n,s){return{start:n,end:s,wordType:t,nextCharClass:i}}static _createIntlWord(e,t){return{start:e.index,end:e.index+e.segment.length,wordType:1,nextCharClass:t}}static _findPreviousWordOnLine(e,t,i){const n=t.getLineContent(i.lineNumber);return this._doFindPreviousWordOnLine(n,e,i)}static _doFindPreviousWordOnLine(e,t,i){let n=0;const s=t.findPrevIntlWordBeforeOrAtOffset(e,i.column-2);for(let r=i.column-2;r>=0;r--){const a=e.charCodeAt(r),l=t.get(a);if(s&&r===s.index)return this._createIntlWord(s,l);if(l===0){if(n===2)return this._createWord(e,n,l,r+1,this._findEndOfWord(e,t,n,r+1));n=1}else if(l===2){if(n===1)return this._createWord(e,n,l,r+1,this._findEndOfWord(e,t,n,r+1));n=2}else if(l===1&&n!==0)return this._createWord(e,n,l,r+1,this._findEndOfWord(e,t,n,r+1))}return n!==0?this._createWord(e,n,1,0,this._findEndOfWord(e,t,n,0)):null}static _findEndOfWord(e,t,i,n){const s=t.findNextIntlWordAtOrAfterOffset(e,n),r=e.length;for(let a=n;a=0;r--){const a=e.charCodeAt(r),l=t.get(a);if(s&&r===s.index)return r;if(l===1||i===1&&l===2||i===2&&l===0)return r+1}return 0}static moveWordLeft(e,t,i,n){let s=i.lineNumber,r=i.column;r===1&&s>1&&(s=s-1,r=t.getLineMaxColumn(s));let a=yt._findPreviousWordOnLine(e,t,new F(s,r));if(n===0)return new F(s,a?a.start+1:1);if(n===1)return a&&a.wordType===2&&a.end-a.start===1&&a.nextCharClass===0&&(a=yt._findPreviousWordOnLine(e,t,new F(s,a.start+1))),new F(s,a?a.start+1:1);if(n===3){for(;a&&a.wordType===2;)a=yt._findPreviousWordOnLine(e,t,new F(s,a.start+1));return new F(s,a?a.start+1:1)}return a&&r<=a.end+1&&(a=yt._findPreviousWordOnLine(e,t,new F(s,a.start+1))),new F(s,a?a.end+1:1)}static _moveWordPartLeft(e,t){const i=t.lineNumber,n=e.getLineMaxColumn(i);if(t.column===1)return i>1?new F(i-1,e.getLineMaxColumn(i-1)):t;const s=e.getLineContent(i);for(let r=t.column-1;r>1;r--){const a=s.charCodeAt(r-2),l=s.charCodeAt(r-1);if(a===95&&l!==95)return new F(i,r);if(a===45&&l!==45)return new F(i,r);if((Vc(a)||LC(a))&&ol(l))return new F(i,r);if(ol(a)&&ol(l)&&r+1=l.start+1&&(l=yt._findNextWordOnLine(e,t,new F(s,l.end+1))),l?r=l.start+1:r=t.getLineMaxColumn(s);return new F(s,r)}static _moveWordPartRight(e,t){const i=t.lineNumber,n=e.getLineMaxColumn(i);if(t.column===n)return i1?d=1:(l--,d=n.getLineMaxColumn(l)):(c&&d<=c.end+1&&(c=yt._findPreviousWordOnLine(i,n,new F(l,c.start+1))),c?d=c.end+1:d>1?d=1:(l--,d=n.getLineMaxColumn(l))),new x(l,d,a.lineNumber,a.column)}static deleteInsideWord(e,t,i){if(!i.isEmpty())return i;const n=new F(i.positionLineNumber,i.positionColumn),s=this._deleteInsideWordWhitespace(t,n);return s||this._deleteInsideWordDetermineDeleteRange(e,t,n)}static _charAtIsWhitespace(e,t){const i=e.charCodeAt(t);return i===32||i===9}static _deleteInsideWordWhitespace(e,t){const i=e.getLineContent(t.lineNumber),n=i.length;if(n===0)return null;let s=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,s))return null;let r=Math.min(t.column-1,n-1);if(!this._charAtIsWhitespace(i,r))return null;for(;s>0&&this._charAtIsWhitespace(i,s-1);)s--;for(;r+11?new x(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumberh.start+1<=i.column&&i.column<=h.end+1,a=(h,u)=>(h=Math.min(h,i.column),u=Math.max(u,i.column),new x(i.lineNumber,h,i.lineNumber,u)),l=h=>{let u=h.start+1,g=h.end+1,f=!1;for(;g-11&&this._charAtIsWhitespace(n,u-2);)u--;return a(u,g)},d=yt._findPreviousWordOnLine(e,t,i);if(d&&r(d))return l(d);const c=yt._findNextWordOnLine(e,t,i);return c&&r(c)?l(c):d&&c?a(d.end+1,c.start+1):d?a(d.start+1,d.end+1):c?a(c.start+1,c.end+1):a(1,s+1)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),n=yt._moveWordPartLeft(e,i);return new x(i.lineNumber,i.column,n.lineNumber,n.column)}static _findFirstNonWhitespaceChar(e,t){const i=e.length;for(let n=t;n=u.start+1&&(u=yt._findNextWordOnLine(i,n,new F(l,u.end+1))),u?d=u.start+1:d!!e)}class Cn{static addCursorDown(e,t,i){const n=[];let s=0;for(let r=0,a=t.length;rd&&(c=d,h=e.model.getLineMaxColumn(c)),mt.fromModelState(new Sn(new x(r.lineNumber,1,c,h),2,0,new F(c,h),0))}const l=t.modelState.selectionStart.getStartPosition().lineNumber;if(r.lineNumberl){const d=e.getLineCount();let c=a.lineNumber+1,h=1;return c>d&&(c=d,h=e.getLineMaxColumn(c)),mt.fromViewState(t.viewState.move(!0,c,h,0))}else{const d=t.modelState.selectionStart.getEndPosition();return mt.fromModelState(t.modelState.move(!0,d.lineNumber,d.column,0))}}static word(e,t,i,n){const s=e.model.validatePosition(n);return mt.fromModelState(yt.word(e.cursorConfig,e.model,t.modelState,i,s))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new mt(t.modelState,t.viewState);const i=t.viewState.position.lineNumber,n=t.viewState.position.column;return mt.fromViewState(new Sn(new x(i,n,i,n),0,0,new F(i,n),0))}static moveTo(e,t,i,n,s){if(i){if(t.modelState.selectionStartKind===1)return this.word(e,t,i,n);if(t.modelState.selectionStartKind===2)return this.line(e,t,i,n,s)}const r=e.model.validatePosition(n),a=s?e.coordinatesConverter.validateViewPosition(new F(s.lineNumber,s.column),r):e.coordinatesConverter.convertModelPositionToViewPosition(r);return mt.fromViewState(t.viewState.move(i,a.lineNumber,a.column,0))}static simpleMove(e,t,i,n,s,r){switch(i){case 0:return r===4?this._moveHalfLineLeft(e,t,n):this._moveLeft(e,t,n,s);case 1:return r===4?this._moveHalfLineRight(e,t,n):this._moveRight(e,t,n,s);case 2:return r===2?this._moveUpByViewLines(e,t,n,s):this._moveUpByModelLines(e,t,n,s);case 3:return r===2?this._moveDownByViewLines(e,t,n,s):this._moveDownByModelLines(e,t,n,s);case 4:return r===2?t.map(a=>mt.fromViewState(Dt.moveToPrevBlankLine(e.cursorConfig,e,a.viewState,n))):t.map(a=>mt.fromModelState(Dt.moveToPrevBlankLine(e.cursorConfig,e.model,a.modelState,n)));case 5:return r===2?t.map(a=>mt.fromViewState(Dt.moveToNextBlankLine(e.cursorConfig,e,a.viewState,n))):t.map(a=>mt.fromModelState(Dt.moveToNextBlankLine(e.cursorConfig,e.model,a.modelState,n)));case 6:return this._moveToViewMinColumn(e,t,n);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,n);case 8:return this._moveToViewCenterColumn(e,t,n);case 9:return this._moveToViewMaxColumn(e,t,n);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,n);default:return null}}static viewportMove(e,t,i,n,s){const r=e.getCompletelyVisibleViewRange(),a=e.coordinatesConverter.convertViewRangeToModelRange(r);switch(i){case 11:{const l=this._firstLineNumberInRange(e.model,a,s),d=e.model.getLineFirstNonWhitespaceColumn(l);return[this._moveToModelPosition(e,t[0],n,l,d)]}case 13:{const l=this._lastLineNumberInRange(e.model,a,s),d=e.model.getLineFirstNonWhitespaceColumn(l);return[this._moveToModelPosition(e,t[0],n,l,d)]}case 12:{const l=Math.round((a.startLineNumber+a.endLineNumber)/2),d=e.model.getLineFirstNonWhitespaceColumn(l);return[this._moveToModelPosition(e,t[0],n,l,d)]}case 14:{const l=[];for(let d=0,c=t.length;di.endLineNumber-1?r=i.endLineNumber-1:smt.fromViewState(Dt.moveLeft(e.cursorConfig,e,s.viewState,i,n)))}static _moveHalfLineLeft(e,t,i){const n=[];for(let s=0,r=t.length;smt.fromViewState(Dt.moveRight(e.cursorConfig,e,s.viewState,i,n)))}static _moveHalfLineRight(e,t,i){const n=[];for(let s=0,r=t.length;s{this.model.tokenization.forceTokenization(g);const f=this.model.tokenization.getLineTokens(g),p=this.model.getLineMaxColumn(g)-1;return Wu(f,p)};this.model.tokenization.forceTokenization(e.startLineNumber);const i=this.model.tokenization.getLineTokens(e.startLineNumber),n=Wu(i,e.startColumn-1),s=Vi.createEmpty("",n.languageIdCodec),r=e.startLineNumber-1;if(r===0||!(n.firstCharOffset===0))return s;const d=t(r);if(!(n.languageId===d.languageId))return s;const h=d.toIViewLineTokens();return this.indentationLineProcessor.getProcessedTokens(h)}}class _8{constructor(e,t){this.model=e,this.languageConfigurationService=t}getProcessedLine(e,t){var i,n;const s=(l,d)=>{const c=Bt(l);return d+l.substring(c.length)};(n=(i=this.model.tokenization).forceTokenization)===null||n===void 0||n.call(i,e);const r=this.model.tokenization.getLineTokens(e);let a=this.getProcessedTokens(r).getLineContent();return t!==void 0&&(a=s(a,t)),a}getProcessedTokens(e){const t=l=>l===2||l===3||l===1,i=e.getLanguageId(0),s=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew.getBracketRegExp({global:!0}),r=[];return e.forEach(l=>{const d=e.getStandardTokenType(l);let c=e.getTokenText(l);t(d)&&(c=c.replace(s,""));const h=e.getMetadata(l);r.push({text:c,metadata:h})}),Vi.createFromTextAndMetadata(r,e.languageIdCodec)}}function XA(o,e){o.tokenization.forceTokenization(e.lineNumber);const t=o.tokenization.getLineTokens(e.lineNumber),i=Wu(t,e.column-1),n=i.firstCharOffset===0,s=t.getLanguageId(0)===i.languageId;return!n&&!s}function vm(o,e,t,i){e.tokenization.forceTokenization(t.startLineNumber);const n=e.getLanguageIdAtPosition(t.startLineNumber,t.startColumn),s=i.getLanguageConfiguration(n);if(!s)return null;const a=new QA(e,i).getProcessedTokenContextAroundRange(t),l=a.previousLineProcessedTokens.getLineContent(),d=a.beforeRangeProcessedTokens.getLineContent(),c=a.afterRangeProcessedTokens.getLineContent(),h=s.onEnter(o,l,d,c);if(!h)return null;const u=h.indentAction;let g=h.appendText;const f=h.removeText||0;g?u===Hi.Indent&&(g=" "+g):u===Hi.Indent||u===Hi.IndentOutdent?g=" ":g="";let p=wW(e,t.startLineNumber,t.startColumn);return f&&(p=p.substring(0,p.length-f)),{indentAction:u,appendText:g,removeText:f,indentation:p}}var Uee=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},$ee=function(o,e){return function(t,i){e(t,i,o)}},aw;const jD=Object.create(null);function lu(o,e){if(e<=0)return"";jD[o]||(jD[o]=["",o]);const t=jD[o];for(let i=t.length;i<=e;i++)t[i]=t[i-1]+o;return t[e]}let er=aw=class{static unshiftIndent(e,t,i,n,s){const r=Yi.visibleColumnFromColumn(e,t,i);if(s){const a=lu(" ",n),d=Yi.prevIndentTabStop(r,n)/n;return lu(a,d)}else{const a=" ",d=Yi.prevRenderTabStop(r,i)/i;return lu(a,d)}}static shiftIndent(e,t,i,n,s){const r=Yi.visibleColumnFromColumn(e,t,i);if(s){const a=lu(" ",n),d=Yi.nextIndentTabStop(r,n)/n;return lu(a,d)}else{const a=" ",d=Yi.nextRenderTabStop(r,i)/i;return lu(a,d)}}constructor(e,t,i){this._languageConfigurationService=i,this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}_addEditOperation(e,t,i){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,i):e.addEditOperation(t,i)}getEditOperations(e,t){const i=this._selection.startLineNumber;let n=this._selection.endLineNumber;this._selection.endColumn===1&&i!==n&&(n=n-1);const{tabSize:s,indentSize:r,insertSpaces:a}=this._opts,l=i===n;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(i))&&(this._useLastEditRangeForCursorEndPosition=!0);let d=0,c=0;for(let h=i;h<=n;h++,d=c){c=0;const u=e.getLineContent(h);let g=ss(u);if(this._opts.isUnshift&&(u.length===0||g===0)||!l&&!this._opts.isUnshift&&u.length===0)continue;if(g===-1&&(g=u.length),h>1&&Yi.visibleColumnFromColumn(u,g+1,s)%r!==0&&e.tokenization.isCheapToTokenize(h-1)){const _=vm(this._opts.autoIndent,e,new x(h-1,e.getLineMaxColumn(h-1),h-1,e.getLineMaxColumn(h-1)),this._languageConfigurationService);if(_){if(c=d,_.appendText)for(let v=0,b=_.appendText.length;v1){let n,s=-1;for(n=e-1;n>=1;n--){if(o.tokenization.getLanguageIdAtPosition(n,0)!==i)return s;const r=o.getLineContent(n);if(t.shouldIgnore(n)||/^\s+$/.test(r)||r===""){s=n;continue}return n}}return-1}function CL(o,e,t,i=!0,n){if(o<4)return null;const s=n.getLanguageConfiguration(e.tokenization.getLanguageId()).indentRulesSupport;if(!s)return null;const r=new YA(e,s,n);if(t<=1)return{indentation:"",action:null};for(let l=t-1;l>0&&e.getLineContent(l)==="";l--)if(l===1)return{indentation:"",action:null};const a=qee(e,t,r);if(a<0)return null;if(a<1)return{indentation:"",action:null};if(r.shouldIncrease(a)||r.shouldIndentNextLine(a)){const l=e.getLineContent(a);return{indentation:Bt(l),action:Hi.Indent,line:a}}else if(r.shouldDecrease(a)){const l=e.getLineContent(a);return{indentation:Bt(l),action:null,line:a}}else{if(a===1)return{indentation:Bt(e.getLineContent(a)),action:null,line:a};const l=a-1,d=s.getIndentMetadata(e.getLineContent(l));if(!(d&3)&&d&4){let c=0;for(let h=l-1;h>0;h--)if(!r.shouldIndentNextLine(h)){c=h;break}return{indentation:Bt(e.getLineContent(c+1)),action:null,line:c+1}}if(i)return{indentation:Bt(e.getLineContent(a)),action:null,line:a};for(let c=a;c>0;c--){if(r.shouldIncrease(c))return{indentation:Bt(e.getLineContent(c)),action:Hi.Indent,line:c};if(r.shouldIndentNextLine(c)){let h=0;for(let u=c-1;u>0;u--)if(!r.shouldIndentNextLine(c)){h=u;break}return{indentation:Bt(e.getLineContent(h+1)),action:null,line:h+1}}else if(r.shouldDecrease(c))return{indentation:Bt(e.getLineContent(c)),action:null,line:c}}return{indentation:Bt(e.getLineContent(1)),action:null,line:1}}}function dv(o,e,t,i,n,s){if(o<4)return null;const r=s.getLanguageConfiguration(t);if(!r)return null;const a=s.getLanguageConfiguration(t).indentRulesSupport;if(!a)return null;const l=new YA(e,a,s),d=CL(o,e,i,void 0,s);if(d){const c=d.line;if(c!==void 0){let h=!0;for(let u=c;uo.getLineCount()?null:i.getIndentMetadata(o.getLineContent(e))}function Yee(o,e,t){return{tokenization:{getLineTokens:n=>n===e?t:o.tokenization.getLineTokens(n),getLanguageId:()=>o.getLanguageId(),getLanguageIdAtPosition:(n,s)=>o.getLanguageIdAtPosition(n,s)},getLineContent:n=>n===e?t.getLineContent():o.getLineContent(n)}}class li{static indent(e,t,i){if(t===null||i===null)return[];const n=[];for(let s=0,r=i.length;s1){let a;for(a=i-1;a>=1;a--){const c=t.getLineContent(a);if(ba(c)>=0)break}if(a<1)return null;const l=t.getLineMaxColumn(a),d=vm(e.autoIndent,t,new x(a,l,a,l),e.languageConfigurationService);d&&(s=d.indentation+d.appendText)}return n&&(n===Hi.Indent&&(s=li.shiftIndent(e,s)),n===Hi.Outdent&&(s=li.unshiftIndent(e,s)),s=e.normalizeIndentation(s)),s||null}static _replaceJumpToNextIndent(e,t,i,n){let s="";const r=i.getStartPosition();if(e.insertSpaces){const a=e.visibleColumnFromColumn(t,r),l=e.indentSize,d=l-a%l;for(let c=0;cthis._compositionType(i,c,s,r,a,l));return new As(4,d,{shouldPushStackElementBefore:VC(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,i,n,s,r){if(!t.isEmpty())return null;const a=t.getPosition(),l=Math.max(1,a.column-n),d=Math.min(e.getLineMaxColumn(a.lineNumber),a.column+s),c=new x(a.lineNumber,l,a.lineNumber,d);return e.getValueInRange(c)===i&&r===0?null:new rw(c,i,0,r)}static _typeCommand(e,t,i){return i?new WC(e,t,!0):new Tn(e,t,!0)}static _enter(e,t,i,n){if(e.autoIndent===0)return li._typeCommand(n,` +`,i);if(!t.tokenization.isCheapToTokenize(n.getStartPosition().lineNumber)||e.autoIndent===1){const l=t.getLineContent(n.startLineNumber),d=Bt(l).substring(0,n.startColumn-1);return li._typeCommand(n,` +`+e.normalizeIndentation(d),i)}const s=vm(e.autoIndent,t,n,e.languageConfigurationService);if(s){if(s.indentAction===Hi.None)return li._typeCommand(n,` +`+e.normalizeIndentation(s.indentation+s.appendText),i);if(s.indentAction===Hi.Indent)return li._typeCommand(n,` +`+e.normalizeIndentation(s.indentation+s.appendText),i);if(s.indentAction===Hi.IndentOutdent){const l=e.normalizeIndentation(s.indentation),d=e.normalizeIndentation(s.indentation+s.appendText),c=` +`+d+` +`+l;return i?new WC(n,c,!0):new rw(n,c,-1,d.length-l.length,!0)}else if(s.indentAction===Hi.Outdent){const l=li.unshiftIndent(e,s.indentation);return li._typeCommand(n,` +`+e.normalizeIndentation(l+s.appendText),i)}}const r=t.getLineContent(n.startLineNumber),a=Bt(r).substring(0,n.startColumn-1);if(e.autoIndent>=4){const l=Gee(e.autoIndent,t,n,{unshiftIndent:d=>li.unshiftIndent(e,d),shiftIndent:d=>li.shiftIndent(e,d),normalizeIndentation:d=>e.normalizeIndentation(d)},e.languageConfigurationService);if(l){let d=e.visibleColumnFromColumn(t,n.getEndPosition());const c=n.endColumn,h=t.getLineContent(n.endLineNumber),u=ss(h);if(u>=0?n=n.setEndPosition(n.endLineNumber,Math.max(n.endColumn,u+1)):n=n.setEndPosition(n.endLineNumber,t.getLineMaxColumn(n.endLineNumber)),i)return new WC(n,` +`+e.normalizeIndentation(l.afterEnter),!0);{let g=0;return c<=u+1&&(e.insertSpaces||(d=Math.ceil(d/e.indentSize)),g=Math.min(d+1-e.normalizeIndentation(l.afterEnter).length-1,0)),new rw(n,` +`+e.normalizeIndentation(l.afterEnter),0,g,!0)}}}return li._typeCommand(n,` +`+e.normalizeIndentation(a),i)}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let n=0,s=i.length;nli.shiftIndent(e,a),unshiftIndent:a=>li.unshiftIndent(e,a)},e.languageConfigurationService);if(r===null)return null;if(r!==e.normalizeIndentation(s)){const a=t.getLineFirstNonWhitespaceColumn(i.startLineNumber);return a===0?li._typeCommand(new x(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(r)+n,!1):li._typeCommand(new x(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(r)+t.getLineContent(i.startLineNumber).substring(a-1,i.startColumn-1)+n,!1)}return null}static _isAutoClosingOvertype(e,t,i,n,s){if(e.autoClosingOvertype==="never"||!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(s))return!1;for(let r=0,a=i.length;r2?c.charCodeAt(d.column-2):0)===92&&u)return!1;if(e.autoClosingOvertype==="auto"){let f=!1;for(let p=0,_=n.length;p<_;p++){const v=n[p];if(d.lineNumber===v.startLineNumber&&d.column===v.startColumn){f=!0;break}}if(!f)return!1}}return!0}static _runAutoClosingOvertype(e,t,i,n,s){const r=[];for(let a=0,l=n.length;at.startsWith(l.open)),a=s.some(l=>t.startsWith(l.close));return!r&&a}static _findAutoClosingPairOpen(e,t,i,n){const s=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(n);if(!s)return null;let r=null;for(const a of s)if(r===null||a.open.length>r.open.length){let l=!0;for(const d of i)if(t.getValueInRange(new x(d.lineNumber,d.column-a.open.length+1,d.lineNumber,d.column))+n!==a.open){l=!1;break}l&&(r=a)}return r}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;const i=t.close.charAt(t.close.length-1),n=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[];let s=null;for(const r of n)r.open!==t.open&&t.open.includes(r.open)&&t.close.endsWith(r.close)&&(!s||r.open.length>s.open.length)&&(s=r);return s}static _getAutoClosingPairClose(e,t,i,n,s){for(const f of i)if(!f.isEmpty())return null;const r=i.map(f=>{const p=f.getPosition();return s?{lineNumber:p.lineNumber,beforeColumn:p.column-n.length,afterColumn:p.column}:{lineNumber:p.lineNumber,beforeColumn:p.column,afterColumn:p.column}}),a=this._findAutoClosingPairOpen(e,t,r.map(f=>new F(f.lineNumber,f.beforeColumn)),n);if(!a)return null;let l,d;if(xc(n)?(l=e.autoClosingQuotes,d=e.shouldAutoCloseBefore.quote):(e.blockCommentStartToken?a.open.includes(e.blockCommentStartToken):!1)?(l=e.autoClosingComments,d=e.shouldAutoCloseBefore.comment):(l=e.autoClosingBrackets,d=e.shouldAutoCloseBefore.bracket),l==="never")return null;const h=this._findContainedAutoClosingPair(e,a),u=h?h.close:"";let g=!0;for(const f of r){const{lineNumber:p,beforeColumn:_,afterColumn:v}=f,b=t.getLineContent(p),C=b.substring(0,_-1),w=b.substring(v-1);if(w.startsWith(u)||(g=!1),w.length>0){const I=w.charAt(0);if(!li._isBeforeClosingBrace(e,w)&&!d(I))return null}if(a.open.length===1&&(n==="'"||n==='"')&&l!=="always"){const I=dr(e.wordSeparators,[]);if(C.length>0){const T=C.charCodeAt(C.length-1);if(I.get(T)===0)return null}}if(!t.tokenization.isCheapToTokenize(p))return null;t.tokenization.forceTokenization(p);const S=t.tokenization.getLineTokens(p),L=Wu(S,_-1);if(!a.shouldAutoClose(L,_-L.firstCharOffset))return null;const D=a.findNeutralCharacter();if(D){const I=t.tokenization.getTokenTypeIfInsertingCharacter(p,_,D);if(!a.isOK(I))return null}}return g?a.close.substring(0,a.close.length-u.length):a.close}static _runAutoClosingOpenCharType(e,t,i,n,s,r,a){const l=[];for(let d=0,c=n.length;dnew Tn(new x(u.positionLineNumber,u.positionColumn,u.positionLineNumber,u.positionColumn+1),"",!1));return new As(4,h,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const c=this._getAutoClosingPairClose(t,i,s,l,!0);return c!==null?this._runAutoClosingOpenCharType(e,t,i,s,l,!0,c):null}static typeWithInterceptors(e,t,i,n,s,r,a){if(!e&&a===` +`){const c=[];for(let h=0,u=s.length;h{const n=t.get(_t).getFocusedCodeEditor();return n&&n.hasTextFocus()?this._runEditorCommand(t,n,i):!1}),e.addImplementation(1e3,"generic-dom-input-textarea",(t,i)=>{const n=Pn();return n&&["input","textarea"].indexOf(n.tagName.toLowerCase())>=0?(this.runDOMCommand(n),!0):!1}),e.addImplementation(0,"generic-dom",(t,i)=>{const n=t.get(_t).getActiveCodeEditor();return n?(n.focus(),this._runEditorCommand(t,n,i)):!1})}_runEditorCommand(e,t,i){const n=this.runEditorCommand(e,t,i);return n||!0}}var cn;(function(o){class e extends bi{constructor(b){super(b),this._inSelectionMode=b.inSelectionMode}runCoreEditorCommand(b,C){if(!C.position)return;b.model.pushStackElement(),b.setCursorStates(C.source,3,[Cn.moveTo(b,b.getPrimaryCursorState(),this._inSelectionMode,C.position,C.viewPosition)])&&C.revealType!==2&&b.revealAllCursors(C.source,!0,!0)}}o.MoveTo=le(new e({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),o.MoveToSelect=le(new e({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class t extends bi{runCoreEditorCommand(b,C){b.model.pushStackElement();const w=this._getColumnSelectResult(b,b.getPrimaryCursorState(),b.getCursorColumnSelectData(),C);w!==null&&(b.setCursorStates(C.source,3,w.viewStates.map(S=>mt.fromViewState(S))),b.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:w.fromLineNumber,fromViewVisualColumn:w.fromVisualColumn,toViewLineNumber:w.toLineNumber,toViewVisualColumn:w.toVisualColumn}),w.reversed?b.revealTopMostCursor(C.source):b.revealBottomMostCursor(C.source))}}o.ColumnSelect=le(new class extends t{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(v,b,C,w){if(typeof w.position>"u"||typeof w.viewPosition>"u"||typeof w.mouseColumn>"u")return null;const S=v.model.validatePosition(w.position),L=v.coordinatesConverter.validateViewPosition(new F(w.viewPosition.lineNumber,w.viewPosition.column),S),D=w.doColumnSelect?C.fromViewLineNumber:L.lineNumber,I=w.doColumnSelect?C.fromViewVisualColumn:w.mouseColumn-1;return Ru.columnSelect(v.cursorConfig,v,D,I,L.lineNumber,w.mouseColumn-1)}}),o.CursorColumnSelectLeft=le(new class extends t{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:wt,kbExpr:E.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(v,b,C,w){return Ru.columnSelectLeft(v.cursorConfig,v,C)}}),o.CursorColumnSelectRight=le(new class extends t{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:wt,kbExpr:E.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(v,b,C,w){return Ru.columnSelectRight(v.cursorConfig,v,C)}});class i extends t{constructor(b){super(b),this._isPaged=b.isPaged}_getColumnSelectResult(b,C,w,S){return Ru.columnSelectUp(b.cursorConfig,b,w,this._isPaged)}}o.CursorColumnSelectUp=le(new i({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:wt,kbExpr:E.textInputFocus,primary:3600,linux:{primary:0}}})),o.CursorColumnSelectPageUp=le(new i({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:wt,kbExpr:E.textInputFocus,primary:3595,linux:{primary:0}}}));class n extends t{constructor(b){super(b),this._isPaged=b.isPaged}_getColumnSelectResult(b,C,w,S){return Ru.columnSelectDown(b.cursorConfig,b,w,this._isPaged)}}o.CursorColumnSelectDown=le(new n({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:wt,kbExpr:E.textInputFocus,primary:3602,linux:{primary:0}}})),o.CursorColumnSelectPageDown=le(new n({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:wt,kbExpr:E.textInputFocus,primary:3596,linux:{primary:0}}}));class s extends bi{constructor(){super({id:"cursorMove",precondition:void 0,metadata:cS.metadata})}runCoreEditorCommand(b,C){const w=cS.parse(C);w&&this._runCursorMove(b,C.source,w)}_runCursorMove(b,C,w){b.model.pushStackElement(),b.setCursorStates(C,3,s._move(b,b.getCursorStates(),w)),b.revealAllCursors(C,!0)}static _move(b,C,w){const S=w.select,L=w.value;switch(w.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return Cn.simpleMove(b,C,w.direction,S,L,w.unit);case 11:case 13:case 12:case 14:return Cn.viewportMove(b,C,w.direction,S,L);default:return null}}}o.CursorMoveImpl=s,o.CursorMove=le(new s);class r extends bi{constructor(b){super(b),this._staticArgs=b.args}runCoreEditorCommand(b,C){let w=this._staticArgs;this._staticArgs.value===-1&&(w={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:C.pageSize||b.cursorConfig.pageSize}),b.model.pushStackElement(),b.setCursorStates(C.source,3,Cn.simpleMove(b,b.getCursorStates(),w.direction,w.select,w.value,w.unit)),b.revealAllCursors(C.source,!0)}}o.CursorLeft=le(new r({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:wt,kbExpr:E.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),o.CursorLeftSelect=le(new r({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:wt,kbExpr:E.textInputFocus,primary:1039}})),o.CursorRight=le(new r({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:wt,kbExpr:E.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),o.CursorRightSelect=le(new r({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:wt,kbExpr:E.textInputFocus,primary:1041}})),o.CursorUp=le(new r({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:wt,kbExpr:E.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),o.CursorUpSelect=le(new r({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:wt,kbExpr:E.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),o.CursorPageUp=le(new r({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:wt,kbExpr:E.textInputFocus,primary:11}})),o.CursorPageUpSelect=le(new r({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:wt,kbExpr:E.textInputFocus,primary:1035}})),o.CursorDown=le(new r({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:wt,kbExpr:E.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),o.CursorDownSelect=le(new r({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:wt,kbExpr:E.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),o.CursorPageDown=le(new r({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:wt,kbExpr:E.textInputFocus,primary:12}})),o.CursorPageDownSelect=le(new r({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:wt,kbExpr:E.textInputFocus,primary:1036}})),o.CreateCursor=le(new class extends bi{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(v,b){if(!b.position)return;let C;b.wholeLine?C=Cn.line(v,v.getPrimaryCursorState(),!1,b.position,b.viewPosition):C=Cn.moveTo(v,v.getPrimaryCursorState(),!1,b.position,b.viewPosition);const w=v.getCursorStates();if(w.length>1){const S=C.modelState?C.modelState.position:null,L=C.viewState?C.viewState.position:null;for(let D=0,I=w.length;DL&&(S=L);const D=new x(S,1,S,v.model.getLineMaxColumn(S));let I=0;if(C.at)switch(C.at){case Yf.RawAtArgument.Top:I=3;break;case Yf.RawAtArgument.Center:I=1;break;case Yf.RawAtArgument.Bottom:I=4;break}const T=v.coordinatesConverter.convertModelRangeToViewRange(D);v.revealRange(b.source,!1,T,I,0)}}),o.SelectAll=new class extends nN{constructor(){super(zG)}runDOMCommand(v){lr&&(v.focus(),v.select()),v.ownerDocument.execCommand("selectAll")}runEditorCommand(v,b,C){const w=b._getViewModel();w&&this.runCoreEditorCommand(w,C)}runCoreEditorCommand(v,b){v.model.pushStackElement(),v.setCursorStates("keyboard",3,[Cn.selectAll(v,v.getPrimaryCursorState())])}},o.SetSelection=le(new class extends bi{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(v,b){b.selection&&(v.model.pushStackElement(),v.setCursorStates(b.source,3,[mt.fromModelSelection(b.selection)]))}})})(cn||(cn={}));const Xee=K.and(E.textInputFocus,E.columnSelection);function Pp(o,e){ks.registerKeybindingRule({id:o,primary:e,when:Xee,weight:wt+1})}Pp(cn.CursorColumnSelectLeft.id,1039);Pp(cn.CursorColumnSelectRight.id,1041);Pp(cn.CursorColumnSelectUp.id,1040);Pp(cn.CursorColumnSelectPageUp.id,1035);Pp(cn.CursorColumnSelectDown.id,1042);Pp(cn.CursorColumnSelectPageDown.id,1036);function m4(o){return o.register(),o}var bm;(function(o){class e extends Xi{runEditorCommand(i,n,s){const r=n._getViewModel();r&&this.runCoreEditingCommand(n,r,s||{})}}o.CoreEditingCommand=e,o.LineBreakInsert=le(new class extends e{constructor(){super({id:"lineBreakInsert",precondition:E.writable,kbOpts:{weight:wt,kbExpr:E.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(t,i,n){t.pushUndoStop(),t.executeCommands(this.id,li.lineBreakInsert(i.cursorConfig,i.model,i.getCursorStates().map(s=>s.modelState.selection)))}}),o.Outdent=le(new class extends e{constructor(){super({id:"outdent",precondition:E.writable,kbOpts:{weight:wt,kbExpr:K.and(E.editorTextFocus,E.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(t,i,n){t.pushUndoStop(),t.executeCommands(this.id,li.outdent(i.cursorConfig,i.model,i.getCursorStates().map(s=>s.modelState.selection))),t.pushUndoStop()}}),o.Tab=le(new class extends e{constructor(){super({id:"tab",precondition:E.writable,kbOpts:{weight:wt,kbExpr:K.and(E.editorTextFocus,E.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(t,i,n){t.pushUndoStop(),t.executeCommands(this.id,li.tab(i.cursorConfig,i.model,i.getCursorStates().map(s=>s.modelState.selection))),t.pushUndoStop()}}),o.DeleteLeft=le(new class extends e{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:wt,kbExpr:E.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(t,i,n){const[s,r]=vg.deleteLeft(i.getPrevEditOperationType(),i.cursorConfig,i.model,i.getCursorStates().map(a=>a.modelState.selection),i.getCursorAutoClosedCharacters());s&&t.pushUndoStop(),t.executeCommands(this.id,r),i.setPrevEditOperationType(2)}}),o.DeleteRight=le(new class extends e{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:wt,kbExpr:E.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(t,i,n){const[s,r]=vg.deleteRight(i.getPrevEditOperationType(),i.cursorConfig,i.model,i.getCursorStates().map(a=>a.modelState.selection));s&&t.pushUndoStop(),t.executeCommands(this.id,r),i.setPrevEditOperationType(3)}}),o.Undo=new class extends nN{constructor(){super(lW)}runDOMCommand(t){t.ownerDocument.execCommand("undo")}runEditorCommand(t,i,n){if(!(!i.hasModel()||i.getOption(91)===!0))return i.getModel().undo()}},o.Redo=new class extends nN{constructor(){super(dW)}runDOMCommand(t){t.ownerDocument.execCommand("redo")}runEditorCommand(t,i,n){if(!(!i.hasModel()||i.getOption(91)===!0))return i.getModel().redo()}}})(bm||(bm={}));class p4 extends rL{constructor(e,t,i){super({id:e,precondition:void 0,metadata:i}),this._handlerId=t}runCommand(e,t){const i=e.get(_t).getFocusedCodeEditor();i&&i.trigger("keyboard",this._handlerId,t)}}function Gg(o,e){m4(new p4("default:"+o,o)),m4(new p4(o,o,e))}Gg("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]});Gg("replacePreviousChar");Gg("compositionType");Gg("compositionStart");Gg("compositionEnd");Gg("paste");Gg("cut");class Jee{constructor(e,t,i,n){this.configuration=e,this.viewModel=t,this.userInputEvents=i,this.commandDelegate=n}paste(e,t,i,n){this.commandDelegate.paste(e,t,i,n)}type(e){this.commandDelegate.type(e)}compositionType(e,t,i,n){this.commandDelegate.compositionType(e,t,i,n)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){cn.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column=4?this._selectAll():e.mouseDownCount===3?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position,e.revealType):this._lastCursorLineSelect(e.position,e.revealType):e.inSelectionMode?this._lineSelectDrag(e.position,e.revealType):this._lineSelect(e.position,e.revealType):e.mouseDownCount===2?e.onInjectedText||(this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position,e.revealType):e.inSelectionMode?this._wordSelectDrag(e.position,e.revealType):this._wordSelect(e.position,e.revealType)):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position,e.revealType):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey?this._columnSelect(e.position,e.mouseColumn,!0):n?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position,e.revealType):this.moveTo(e.position,e.revealType)}_usualArgs(e,t){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,revealType:t}}moveTo(e,t){cn.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_moveToSelect(e,t){cn.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_columnSelect(e,t,i){e=this._validateViewColumn(e),cn.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:i})}_createCursor(e,t){e=this._validateViewColumn(e),cn.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e,t){cn.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelect(e,t){cn.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelectDrag(e,t){cn.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorWordSelect(e,t){cn.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelect(e,t){cn.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelectDrag(e,t){cn.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelect(e,t){cn.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelectDrag(e,t){cn.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_selectAll(){cn.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}class C8{constructor(e){this._createLine=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_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(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Tt("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(this.getCount()===0)return null;const i=this.getStartLineNumber(),n=this.getEndLineNumber();if(tn)return null;let s=0,r=0;for(let l=i;l<=n;l++){const d=l-this._rendLineNumberStart;e<=l&&l<=t&&(r===0?(s=d,r=1):r++)}if(e=n&&a<=s&&(this._lines[a-this._rendLineNumberStart].onContentChanged(),r=!0);return r}onLinesInserted(e,t){if(this.getCount()===0)return null;const i=t-e+1,n=this.getStartLineNumber(),s=this.getEndLineNumber();if(e<=n)return this._rendLineNumberStart+=i,null;if(e>s)return null;if(i+e>s)return this._lines.splice(e-this._rendLineNumberStart,s-e+1);const r=[];for(let h=0;hi)continue;const l=Math.max(t,a.fromLineNumber),d=Math.min(i,a.toLineNumber);for(let c=l;c<=d;c++){const h=c-this._rendLineNumberStart;this._lines[h].onTokensChanged(),n=!0}}return n}}class w8{constructor(e){this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new C8(()=>this._host.createVisibleLine())}_createDomNode(){const e=Lt(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(145)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,n=t.length;it){const r=t,a=Math.min(i,s.rendLineNumberStart-1);r<=a&&(this._insertLinesBefore(s,r,a,n,t),s.linesLength+=a-r+1)}else if(s.rendLineNumberStart0&&(this._removeLinesBefore(s,r),s.linesLength-=r)}if(s.rendLineNumberStart=t,s.rendLineNumberStart+s.linesLength-1i){const r=Math.max(0,i-s.rendLineNumberStart+1),l=s.linesLength-1-r+1;l>0&&(this._removeLinesAfter(s,l),s.linesLength-=l)}return this._finishRendering(s,!1,n),s}_renderUntouchedLines(e,t,i,n,s){const r=e.rendLineNumberStart,a=e.lines;for(let l=t;l<=i;l++){const d=r+l;a[l].layoutLine(d,n[d-s],this.viewportData.lineHeight)}}_insertLinesBefore(e,t,i,n,s){const r=[];let a=0;for(let l=t;l<=i;l++)r[a++]=this.host.createVisibleLine();e.lines=r.concat(e.lines)}_removeLinesBefore(e,t){for(let i=0;i=0;a--){const l=e.lines[a];n[a]&&(l.setDomNode(r),r=r.previousSibling)}}_finishRenderingInvalidLines(e,t,i){const n=document.createElement("div");bd._ttPolicy&&(t=bd._ttPolicy.createHTML(t)),n.innerHTML=t;for(let s=0;so});bd._sb=new Tp(1e5);class S8 extends uo{constructor(e){super(e),this._visibleLines=new w8(this),this.domNode=this._visibleLines.domNode;const i=this._context.configuration.options.get(50);kn(this.domNode,i),this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;ei.shouldRender());for(let i=0,n=t.length;i'),s.appendString(r),s.appendString(""),!0)}layoutLine(e,t,i){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(i))}}class tte extends S8{constructor(e){super(e);const i=this._context.configuration.options.get(145);this._contentWidth=i.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const i=this._context.configuration.options.get(145);return this._contentWidth=i.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class ite extends S8{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(145);this._contentLeft=i.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),kn(this.domNode,t.get(50))}onConfigurationChanged(e){const t=this._context.configuration.options;kn(this.domNode,t.get(50));const i=t.get(145);return this._contentLeft=i.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class wL{constructor(e){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=e}emitKeyDown(e){var t;(t=this.onKeyDown)===null||t===void 0||t.call(this,e)}emitKeyUp(e){var t;(t=this.onKeyUp)===null||t===void 0||t.call(this,e)}emitContextMenu(e){var t;(t=this.onContextMenu)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseMove(e){var t;(t=this.onMouseMove)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){var t;(t=this.onMouseLeave)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDown(e){var t;(t=this.onMouseDown)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseUp(e){var t;(t=this.onMouseUp)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){var t;(t=this.onMouseDrag)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){var t;(t=this.onMouseDrop)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){var e;(e=this.onMouseDropCanceled)===null||e===void 0||e.call(this)}emitMouseWheel(e){var t;(t=this.onMouseWheel)===null||t===void 0||t.call(this,e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return wL.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){const i={...e};return i.position&&(i.position=t.convertViewPositionToModelPosition(i.position)),i.range&&(i.range=t.convertViewRangeToModelRange(i.range)),(i.type===5||i.type===8)&&(i.detail=this.convertViewToModelViewZoneData(i.detail,t)),i}static convertViewToModelViewZoneData(e,t){return{viewZoneId:e.viewZoneId,positionBefore:e.positionBefore?t.convertViewPositionToModelPosition(e.positionBefore):e.positionBefore,positionAfter:e.positionAfter?t.convertViewPositionToModelPosition(e.positionAfter):e.positionAfter,position:t.convertViewPositionToModelPosition(e.position),afterLineNumber:t.convertViewPositionToModelPosition(new F(e.afterLineNumber,1)).lineNumber}}}class nte extends uo{constructor(e){super(e),this.blocks=[],this.contentWidth=-1,this.contentLeft=0,this.domNode=Lt(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("blockDecorations-container"),this.update()}update(){let e=!1;const i=this._context.configuration.options.get(145),n=i.contentWidth-i.verticalScrollbarWidth;this.contentWidth!==n&&(this.contentWidth=n,e=!0);const s=i.contentLeft;return this.contentLeft!==s&&(this.contentLeft=s,e=!0),e}dispose(){super.dispose()}onConfigurationChanged(e){return this.update()}onScrollChanged(e){return e.scrollTopChanged||e.scrollLeftChanged}onDecorationsChanged(e){return!0}onZonesChanged(e){return!0}prepareRender(e){}render(e){var t;let i=0;const n=e.getDecorationsInViewport();for(const s of n){if(!s.options.blockClassName)continue;let r=this.blocks[i];r||(r=this.blocks[i]=Lt(document.createElement("div")),this.domNode.appendChild(r));let a,l;s.options.blockIsAfterEnd?(a=e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!1),l=e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!0)):(a=e.getVerticalOffsetForLineNumber(s.range.startLineNumber,!0),l=s.range.isEmpty()&&!s.options.blockDoesNotCollapse?e.getVerticalOffsetForLineNumber(s.range.startLineNumber,!1):e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!0));const[d,c,h,u]=(t=s.options.blockPadding)!==null&&t!==void 0?t:[0,0,0,0];r.setClassName("blockDecorations-block "+s.options.blockClassName),r.setLeft(this.contentLeft-u),r.setWidth(this.contentWidth+u+c),r.setTop(a-e.scrollTop-d),r.setHeight(l-a+d+h),i++}for(let s=i;s0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}_layoutBoxInViewport(e,t,i,n){const s=e.top,r=s,a=e.top+e.height,l=n.viewportHeight-a,d=s-i,c=r>=i,h=a,u=l>=i;let g=e.left;return g+t>n.scrollLeft+n.viewportWidth&&(g=n.scrollLeft+n.viewportWidth-t),gd){const g=u-(d-n);u-=g,i-=g}if(u=v,w=g+i<=f.height-b;return this._fixedOverflowWidgets?{fitsAbove:C,aboveTop:Math.max(u,v),fitsBelow:w,belowTop:g,left:_}:{fitsAbove:C,aboveTop:a,fitsBelow:w,belowTop:l,left:p}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new l_(e.top,e.left+this._contentLeft)}_getAnchorsCoordinates(e){var t,i;const n=a(this._primaryAnchor.viewPosition,this._affinity,this._lineHeight),s=((t=this._secondaryAnchor.viewPosition)===null||t===void 0?void 0:t.lineNumber)===((i=this._primaryAnchor.viewPosition)===null||i===void 0?void 0:i.lineNumber)?this._secondaryAnchor.viewPosition:null,r=a(s,this._affinity,this._lineHeight);return{primary:n,secondary:r};function a(l,d,c){if(!l)return null;const h=e.visibleRangeForPosition(l);if(!h)return null;const u=l.column===1&&d===3?0:h.left,g=e.getVerticalOffsetForLineNumber(l.lineNumber)-e.scrollTop;return new _4(g,u,c)}}_reduceAnchorCoordinates(e,t,i){if(!t)return e;const n=this._context.configuration.options.get(50);let s=t.left;return se.endLineNumber||this.domNode.setMaxWidth(this._maxWidth)}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){var t;if(!this._renderData||this._renderData.kind==="offViewport"){this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,((t=this._renderData)===null||t===void 0?void 0:t.kind)==="offViewport"&&this._renderData.preserveFocus?this.domNode.setTop(-1e3):this.domNode.setVisibility("hidden")),typeof this._actual.afterRender=="function"&&qD(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+e.scrollTop-e.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"&&qD(this._actual.afterRender,this._actual,this._renderData.position)}}class a_{constructor(e,t){this.modelPosition=e,this.viewPosition=t}}class l_{constructor(e,t){this.top=e,this.left=t,this._coordinateBrand=void 0}}class _4{constructor(e,t,i){this.top=e,this.left=t,this.height=i,this._anchorCoordinateBrand=void 0}}function qD(o,e,...t){try{return o.call(e,...t)}catch{return null}}class y8 extends qg{constructor(e){super(),this._context=e;const t=this._context.configuration.options,i=t.get(145);this._renderLineHighlight=t.get(96),this._renderLineHighlightOnlyWhenFocus=t.get(97),this._wordWrap=i.isViewportWrapping,this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new _e(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=new Set;for(const s of this._selections)t.add(s.positionLineNumber);const i=Array.from(t);i.sort((s,r)=>s-r),di(this._cursorLineNumbers,i)||(this._cursorLineNumbers=i,e=!0);const n=this._selections.every(s=>s.isEmpty());return this._selectionIsEmpty!==n&&(this._selectionIsEmpty=n,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(145);return this._renderLineHighlight=t.get(96),this._renderLineHighlightOnlyWhenFocus=t.get(97),this._wordWrap=i.isViewportWrapping,this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return this._renderLineHighlightOnlyWhenFocus?(this._focused=e.isFocused,!0):!1}prepareRender(e){if(!this._shouldRenderThis()){this._renderData=null;return}const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,n=[];for(let r=t;r<=i;r++){const a=r-t;n[a]=""}if(this._wordWrap){const r=this._renderOne(e,!1);for(const a of this._cursorLineNumbers){const l=this._context.viewModel.coordinatesConverter,d=l.convertViewPositionToModelPosition(new F(a,1)).lineNumber,c=l.convertModelPositionToViewPosition(new F(d,1)).lineNumber,h=l.convertModelPositionToViewPosition(new F(d,this._context.viewModel.model.getLineMaxColumn(d))).lineNumber,u=Math.max(c,t),g=Math.min(h,i);for(let f=u;f<=g;f++){const p=f-t;n[p]=r}}}const s=this._renderOne(e,!0);for(const r of this._cursorLineNumbers){if(ri)continue;const a=r-t;n[a]=s}this._renderData=n}render(e,t){if(!this._renderData)return"";const i=t-e;return i>=this._renderData.length?"":this._renderData[i]}_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)}}class rte extends y8{_renderOne(e,t){return`
`}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}}class ate extends y8{_renderOne(e,t){return`
`}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}}gr((o,e)=>{const t=o.getColor(r8);if(t&&(e.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${t}; }`),e.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${t}; border: none; }`)),!t||t.isTransparent()||o.defines(h4)){const i=o.getColor(h4);i&&(e.addRule(`.monaco-editor .view-overlays .current-line-exact { border: 2px solid ${i}; }`),e.addRule(`.monaco-editor .margin-view-overlays .current-line-exact-margin { border: 2px solid ${i}; }`),Sa(o.type)&&(e.addRule(".monaco-editor .view-overlays .current-line-exact { border-width: 1px; }"),e.addRule(".monaco-editor .margin-view-overlays .current-line-exact-margin { border-width: 1px; }")))}});class lte extends qg{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let i=[],n=0;for(let l=0,d=t.length;l{if(l.options.zIndexd.options.zIndex)return 1;const c=l.options.className,h=d.options.className;return ch?1:x.compareRangesUsingStarts(l.range,d.range)});const s=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,a=[];for(let l=s;l<=r;l++){const d=l-s;a[d]=""}this._renderWholeLineDecorations(e,i,a),this._renderNormalDecorations(e,i,a),this._renderResult=a}_renderWholeLineDecorations(e,t,i){const n=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber;for(let r=0,a=t.length;r',c=Math.max(l.range.startLineNumber,n),h=Math.min(l.range.endLineNumber,s);for(let u=c;u<=h;u++){const g=u-n;i[g]+=d}}}_renderNormalDecorations(e,t,i){var n;const s=e.visibleRange.startLineNumber;let r=null,a=!1,l=null,d=!1;for(let c=0,h=t.length;c';a[u]+=v}}}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class dte extends uo{constructor(e,t,i,n){super(e);const s=this._context.configuration.options,r=s.get(103),a=s.get(75),l=s.get(40),d=s.get(106),c={listenOnDomNode:i.domNode,className:"editor-scrollable "+tN(e.theme.type),useShadows:!1,lazyRender:!0,vertical:r.vertical,horizontal:r.horizontal,verticalHasArrows:r.verticalHasArrows,horizontalHasArrows:r.horizontalHasArrows,verticalScrollbarSize:r.verticalScrollbarSize,verticalSliderSize:r.verticalSliderSize,horizontalScrollbarSize:r.horizontalScrollbarSize,horizontalSliderSize:r.horizontalSliderSize,handleMouseWheel:r.handleMouseWheel,alwaysConsumeMouseWheel:r.alwaysConsumeMouseWheel,arrowSize:r.arrowSize,mouseWheelScrollSensitivity:a,fastScrollSensitivity:l,scrollPredominantAxis:d,scrollByPage:r.scrollByPage};this.scrollbar=this._register(new _L(t.domNode,c,this._context.viewLayout.getScrollable())),Na.write(this.scrollbar.getDomNode(),6),this.scrollbarDomNode=Lt(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const h=(u,g,f)=>{const p={};if(g){const _=u.scrollTop;_&&(p.scrollTop=this._context.viewLayout.getCurrentScrollTop()+_,u.scrollTop=0)}if(f){const _=u.scrollLeft;_&&(p.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+_,u.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(p,1)};this._register(U(i.domNode,"scroll",u=>h(i.domNode,!0,!0))),this._register(U(t.domNode,"scroll",u=>h(t.domNode,!0,!1))),this._register(U(n.domNode,"scroll",u=>h(n.domNode,!0,!1))),this._register(U(this.scrollbarDomNode.domNode,"scroll",u=>h(this.scrollbarDomNode.domNode,!0,!1)))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(145);this.scrollbarDomNode.setLeft(t.contentLeft),e.get(73).side==="right"?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarPointerDown(e){this.scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this.scrollbar.delegateScrollFromMouseWheelEvent(e)}onConfigurationChanged(e){if(e.hasChanged(103)||e.hasChanged(75)||e.hasChanged(40)){const t=this._context.configuration.options,i=t.get(103),n=t.get(75),s=t.get(40),r=t.get(106),a={vertical:i.vertical,horizontal:i.horizontal,verticalScrollbarSize:i.verticalScrollbarSize,horizontalScrollbarSize:i.horizontalScrollbarSize,scrollByPage:i.scrollByPage,handleMouseWheel:i.handleMouseWheel,mouseWheelScrollSensitivity:n,fastScrollSensitivity:s,scrollPredominantAxis:r};this.scrollbar.updateOptions(a)}return e.hasChanged(145)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+tN(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}class sN{constructor(e,t,i,n,s){this.startLineNumber=e,this.endLineNumber=t,this.className=i,this.tooltip=n,this._decorationToRenderBrand=void 0,this.zIndex=s??0}}class cte{constructor(e,t,i){this.className=e,this.zIndex=t,this.tooltip=i}}class hte{constructor(){this.decorations=[]}add(e){this.decorations.push(e)}getDecorations(){return this.decorations}}class L8 extends qg{_render(e,t,i){const n=[];for(let a=e;a<=t;a++){const l=a-e;n[l]=new hte}if(i.length===0)return n;i.sort((a,l)=>a.className===l.className?a.startLineNumber===l.startLineNumber?a.endLineNumber-l.endLineNumber:a.startLineNumber-l.startLineNumber:a.classNamen)continue;const d=Math.max(a,i),c=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new F(d,0)),h=this._context.viewModel.glyphLanes.getLanesAtLine(c.lineNumber).indexOf(s.preference.lane);t.push(new fte(d,h,s.preference.zIndex,s))}}_collectSortedGlyphRenderRequests(e){const t=[];return this._collectDecorationBasedGlyphRenderRequest(e,t),this._collectWidgetBasedGlyphRenderRequest(e,t),t.sort((i,n)=>i.lineNumber===n.lineNumber?i.laneIndex===n.laneIndex?i.zIndex===n.zIndex?n.type===i.type?i.type===0&&n.type===0?i.className0;){const n=t.peek();if(!n)break;const s=t.takeWhile(a=>a.lineNumber===n.lineNumber&&a.laneIndex===n.laneIndex);if(!s||s.length===0)break;const r=s[0];if(r.type===0){const a=[];for(const l of s){if(l.zIndex!==r.zIndex||l.type!==r.type)break;(a.length===0||a[a.length-1]!==l.className)&&a.push(l.className)}i.push(r.accept(a.join(" ")))}else r.widget.renderInfo={lineNumber:r.lineNumber,laneIndex:r.laneIndex}}this._decorationGlyphsToRender=i}render(e){if(!this._glyphMargin){for(const i of Object.values(this._widgets))i.domNode.setDisplay("none");for(;this._managedDomNodes.length>0;){const i=this._managedDomNodes.pop();i==null||i.domNode.remove()}return}const t=Math.round(this._glyphMarginWidth/this._glyphMarginDecorationLaneCount);for(const i of Object.values(this._widgets))if(!i.renderInfo)i.domNode.setDisplay("none");else{const n=e.viewportData.relativeVerticalOffset[i.renderInfo.lineNumber-e.viewportData.startLineNumber],s=this._glyphMarginLeft+i.renderInfo.laneIndex*this._lineHeight;i.domNode.setDisplay("block"),i.domNode.setTop(n),i.domNode.setLeft(s),i.domNode.setWidth(t),i.domNode.setHeight(this._lineHeight)}for(let i=0;ithis._decorationGlyphsToRender.length;){const i=this._managedDomNodes.pop();i==null||i.domNode.remove()}}}class gte{constructor(e,t,i,n){this.lineNumber=e,this.laneIndex=t,this.zIndex=i,this.className=n,this.type=0}accept(e){return new mte(this.lineNumber,this.laneIndex,e)}}class fte{constructor(e,t,i,n){this.lineNumber=e,this.laneIndex=t,this.zIndex=i,this.widget=n,this.type=1}}class mte{constructor(e,t,i){this.lineNumber=e,this.laneIndex=t,this.combinedClassName=i}}class x8 extends W{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}function SL(o,e){let t=0,i=0;const n=o.length;for(;in)throw new Tt("Illegal value for lineNumber");const s=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=!!(s&&s.offSide);let a=-2,l=-1,d=-2,c=-1;const h=D=>{if(a!==-1&&(a===-2||a>D-1)){a=-1,l=-1;for(let I=D-2;I>=0;I--){const T=this._computeIndentLevel(I);if(T>=0){a=I,l=T;break}}}if(d===-2){d=-1,c=-1;for(let I=D;I=0){d=I,c=T;break}}}};let u=-2,g=-1,f=-2,p=-1;const _=D=>{if(u===-2){u=-1,g=-1;for(let I=D-2;I>=0;I--){const T=this._computeIndentLevel(I);if(T>=0){u=I,g=T;break}}}if(f!==-1&&(f===-2||f=0){f=I,p=T;break}}}};let v=0,b=!0,C=0,w=!0,S=0,L=0;for(let D=0;b||w;D++){const I=e-D,T=e+D;D>1&&(I<1||I1&&(T>n||T>i)&&(w=!1),D>5e4&&(b=!1,w=!1);let V=-1;if(b&&I>=1){const A=this._computeIndentLevel(I-1);A>=0?(d=I-1,c=A,V=Math.ceil(A/this.textModel.getOptions().indentSize)):(h(I),V=this._getIndentLevelForWhitespaceLine(r,l,c))}let P=-1;if(w&&T<=n){const A=this._computeIndentLevel(T-1);A>=0?(u=T-1,g=A,P=Math.ceil(A/this.textModel.getOptions().indentSize)):(_(T),P=this._getIndentLevelForWhitespaceLine(r,g,p))}if(D===0){L=V;continue}if(D===1){if(T<=n&&P>=0&&L+1===P){b=!1,v=T,C=T,S=P;continue}if(I>=1&&V>=0&&V-1===L){w=!1,v=I,C=I,S=V;continue}if(v=e,C=e,S=L,S===0)return{startLineNumber:v,endLineNumber:C,indent:S}}b&&(V>=S?v=I:b=!1),w&&(P>=S?C=T:w=!1)}return{startLineNumber:v,endLineNumber:C,indent:S}}getLinesBracketGuides(e,t,i,n){var s;const r=[];for(let u=e;u<=t;u++)r.push([]);const a=!0,l=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new x(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let d;if(i&&l.length>0){const u=(e<=i.lineNumber&&i.lineNumber<=t?l:this.textModel.bracketPairs.getBracketPairsInRange(x.fromPositions(i)).toArray()).filter(g=>x.strictContainsPosition(g.range,i));d=(s=Qv(u,g=>a))===null||s===void 0?void 0:s.range}const c=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,h=new D8;for(const u of l){if(!u.closingBracketRange)continue;const g=d&&u.range.equalsRange(d);if(!g&&!n.includeInactive)continue;const f=h.getInlineClassName(u.nestingLevel,u.nestingLevelOfEqualBracketType,c)+(n.highlightActive&&g?" "+h.activeClassName:""),p=u.openingBracketRange.getStartPosition(),_=u.closingBracketRange.getStartPosition(),v=n.horizontalGuides===Ju.Enabled||n.horizontalGuides===Ju.EnabledForActive&&g;if(u.range.startLineNumber===u.range.endLineNumber){v&&r[u.range.startLineNumber-e].push(new zu(-1,u.openingBracketRange.getEndPosition().column,f,new cv(!1,_.column),-1,-1));continue}const b=this.getVisibleColumnFromPosition(_),C=this.getVisibleColumnFromPosition(u.openingBracketRange.getStartPosition()),w=Math.min(C,b,u.minVisibleColumnIndentation+1);let S=!1;ss(this.textModel.getLineContent(u.closingBracketRange.startLineNumber))=e&&C>w&&r[p.lineNumber-e].push(new zu(w,-1,f,new cv(!1,p.column),-1,-1)),_.lineNumber<=t&&b>w&&r[_.lineNumber-e].push(new zu(w,-1,f,new cv(!S,_.column),-1,-1)))}for(const u of r)u.sort((g,f)=>g.visibleColumn-f.visibleColumn);return r}getVisibleColumnFromPosition(e){return Yi.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new Error("Illegal value for startLineNumber");if(t<1||t>i)throw new Error("Illegal value for endLineNumber");const n=this.textModel.getOptions(),s=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=!!(s&&s.offSide),a=new Array(t-e+1);let l=-2,d=-1,c=-2,h=-1;for(let u=e;u<=t;u++){const g=u-e,f=this._computeIndentLevel(u-1);if(f>=0){l=u-1,d=f,a[g]=Math.ceil(f/n.indentSize);continue}if(l===-2){l=-1,d=-1;for(let p=u-2;p>=0;p--){const _=this._computeIndentLevel(p);if(_>=0){l=p,d=_;break}}}if(c!==-1&&(c===-2||c=0){c=p,h=_;break}}}a[g]=this._getIndentLevelForWhitespaceLine(r,d,h)}return a}_getIndentLevelForWhitespaceLine(e,t,i){const n=this.textModel.getOptions();return t===-1||i===-1?0:tl||this._maxIndentLeft>0&&b>this._maxIndentLeft)break;const C=v.horizontalLine?v.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",w=v.horizontalLine?((s=(n=e.visibleRangeForPosition(new F(u,v.horizontalLine.endColumn)))===null||n===void 0?void 0:n.left)!==null&&s!==void 0?s:b+this._spaceWidth)-b:this._spaceWidth;p+=`
`}h[g]=p}this._renderResult=h}getGuidesByLine(e,t,i){const n=this._bracketPairGuideOptions.bracketPairs!==!1?this._context.viewModel.getBracketGuidesInRangeByLine(e,t,i,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:this._bracketPairGuideOptions.bracketPairsHorizontal===!0?Ju.Enabled:this._bracketPairGuideOptions.bracketPairsHorizontal==="active"?Ju.EnabledForActive:Ju.Disabled,includeInactive:this._bracketPairGuideOptions.bracketPairs===!0}):null,s=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(e,t):null;let r=0,a=0,l=0;if(this._bracketPairGuideOptions.highlightActiveIndentation!==!1&&i){const h=this._context.viewModel.getActiveIndentGuide(i.lineNumber,e,t);r=h.startLineNumber,a=h.endLineNumber,l=h.indent}const{indentSize:d}=this._context.viewModel.model.getOptions(),c=[];for(let h=e;h<=t;h++){const u=new Array;c.push(u);const g=n?n[h-e]:[],f=new Zd(g),p=s?s[h-e]:0;for(let _=1;_<=p;_++){const v=(_-1)*d+1,b=(this._bracketPairGuideOptions.highlightActiveIndentation==="always"||g.length===0)&&r<=h&&h<=a&&_===l;u.push(...f.takeWhile(w=>w.visibleColumn!0)||[])}return c}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function ff(o){if(!(o&&o.isTransparent()))return o}gr((o,e)=>{const t=[{bracketColor:c8,guideColor:Cee,guideColorActive:Dee},{bracketColor:h8,guideColor:wee,guideColorActive:kee},{bracketColor:u8,guideColor:See,guideColorActive:Iee},{bracketColor:g8,guideColor:yee,guideColorActive:Eee},{bracketColor:f8,guideColor:Lee,guideColorActive:Nee},{bracketColor:m8,guideColor:xee,guideColorActive:Tee}],i=new D8,n=[{indentColor:F0,indentColorActive:B0},{indentColor:iee,indentColorActive:aee},{indentColor:nee,indentColorActive:lee},{indentColor:see,indentColorActive:dee},{indentColor:oee,indentColorActive:cee},{indentColor:ree,indentColorActive:hee}],s=t.map(a=>{var l,d;const c=o.getColor(a.bracketColor),h=o.getColor(a.guideColor),u=o.getColor(a.guideColorActive),g=ff((l=ff(h))!==null&&l!==void 0?l:c==null?void 0:c.transparent(.3)),f=ff((d=ff(u))!==null&&d!==void 0?d:c);if(!(!g||!f))return{guideColor:g,guideColorActive:f}}).filter(xl),r=n.map(a=>{const l=o.getColor(a.indentColor),d=o.getColor(a.indentColorActive),c=ff(l),h=ff(d);if(!(!c||!h))return{indentColor:c,indentColorActive:h}}).filter(xl);if(s.length>0){for(let a=0;a<30;a++){const l=s[a%s.length];e.addRule(`.monaco-editor .${i.getInlineClassNameOfLevel(a).replace(/ /g,".")} { --guide-color: ${l.guideColor}; --guide-color-active: ${l.guideColorActive}; }`)}e.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),e.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),e.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),e.addRule(`.monaco-editor .vertical.${i.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),e.addRule(`.monaco-editor .horizontal-top.${i.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),e.addRule(`.monaco-editor .horizontal-bottom.${i.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}if(r.length>0){for(let a=0;a<30;a++){const l=r[a%r.length];e.addRule(`.monaco-editor .lines-content .core-guide-indent.lvl-${a} { --indent-color: ${l.indentColor}; --indent-color-active: ${l.indentColorActive}; }`)}e.addRule(".monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 var(--indent-color) inset; }"),e.addRule(".monaco-editor .lines-content .core-guide-indent.indent-active { box-shadow: 1px 0 0 0 var(--indent-color-active) inset; }")}});class GD{get didDomLayout(){return this._didDomLayout}readClientRect(){if(!this._clientRectRead){this._clientRectRead=!0;const e=this._domNode.getBoundingClientRect();this.markDidDomLayout(),this._clientRectDeltaLeft=e.left,this._clientRectScale=e.width/this._domNode.offsetWidth}}get clientRectDeltaLeft(){return this._clientRectRead||this.readClientRect(),this._clientRectDeltaLeft}get clientRectScale(){return this._clientRectRead||this.readClientRect(),this._clientRectScale}constructor(e,t){this._domNode=e,this.endNode=t,this._didDomLayout=!1,this._clientRectDeltaLeft=0,this._clientRectScale=1,this._clientRectRead=!1}markDidDomLayout(){this._didDomLayout=!0}}class vte{constructor(){this._currentVisibleRange=new x(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class bte{constructor(e,t,i,n,s,r,a){this.minimalReveal=e,this.lineNumber=t,this.startColumn=i,this.endColumn=n,this.startScrollTop=s,this.stopScrollTop=r,this.scrollType=a,this.type="range",this.minLineNumber=t,this.maxLineNumber=t}}class Cte{constructor(e,t,i,n,s){this.minimalReveal=e,this.selections=t,this.startScrollTop=i,this.stopScrollTop=n,this.scrollType=s,this.type="selections";let r=t[0].startLineNumber,a=t[0].endLineNumber;for(let l=1,d=t.length;l{this._updateLineWidthsSlow()},200),this._asyncCheckMonospaceFontAssumptions=new At(()=>{this._checkMonospaceFontAssumptions()},2e3),this._lastRenderedData=new vte,this._horizontalRevealRequest=null,this._stickyScrollEnabled=n.get(115).enabled,this._maxNumberStickyLines=n.get(115).maxLineCount}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new ul(this._viewLineOptions)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(146)&&(this._maxLineWidth=0);const t=this._context.configuration.options,i=t.get(50),n=t.get(146);return this._lineHeight=t.get(67),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=n.isViewportWrapping,this._revealHorizontalRightPadding=t.get(100),this._cursorSurroundingLines=t.get(29),this._cursorSurroundingLinesStyle=t.get(30),this._canUseLayerHinting=!t.get(32),this._stickyScrollEnabled=t.get(115).enabled,this._maxNumberStickyLines=t.get(115).maxLineCount,kn(this.domNode,i),this._onOptionsMaybeChanged(),e.hasChanged(145)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new r4(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let s=i;s<=n;s++)this._visibleLines.getVisibleLine(s).onOptionsChanged(this._viewLineOptions);return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=!1;for(let s=t;s<=i;s++)n=this._visibleLines.getVisibleLine(s).onSelectionChanged()||n;return n}onDecorationsChanged(e){{const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let n=t;n<=i;n++)this._visibleLines.getVisibleLine(n).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.minimalReveal,e.range,e.selections,e.verticalType);if(t===-1)return!1;let i=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new bte(e.minimalReveal,e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new Cte(e.minimalReveal,e.selections,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const s=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(i,s),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTopi)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const i=this._getViewLineDomNode(e);if(i===null)return null;const n=this._getLineNumberFor(i);if(n===-1||n<1||n>this._context.viewModel.getLineCount())return null;if(this._context.viewModel.getLineMaxColumn(n)===1)return new F(n,1);const s=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(nr)return null;let a=this._visibleLines.getVisibleLine(n).getColumnOfNodeOffset(e,t);const l=this._context.viewModel.getLineMinColumn(n);return ai)return-1;const n=new GD(this.domNode.domNode,this._textRangeRestingSpot),s=this._visibleLines.getVisibleLine(e).getWidth(n);return this._updateLineWidthsSlowIfDomDidLayout(n),s}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const i=e.endLineNumber,n=x.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!n)return null;const s=[];let r=0;const a=new GD(this.domNode.domNode,this._textRangeRestingSpot);let l=0;t&&(l=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new F(n.startLineNumber,1)).lineNumber);const d=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber();for(let h=n.startLineNumber;h<=n.endLineNumber;h++){if(hc)continue;const u=h===n.startLineNumber?n.startColumn:1,g=h!==n.endLineNumber,f=g?this._context.viewModel.getLineMaxColumn(h):n.endColumn,p=this._visibleLines.getVisibleLine(h).getVisibleRangesForRange(h,u,f,a);if(p){if(t&&hthis._visibleLines.getEndLineNumber())return null;const n=new GD(this.domNode.domNode,this._textRangeRestingSpot),s=this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,i,n);return this._updateLineWidthsSlowIfDomDidLayout(n),s}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new CJ(t.outsideRenderedLine,t.ranges[0].left):null}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidthsSlowIfDomDidLayout(e){e.didDomLayout&&(this._asyncUpdateLineWidths.isScheduled()||(this._asyncUpdateLineWidths.cancel(),this._updateLineWidthsSlow()))}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=1,s=!0;for(let r=t;r<=i;r++){const a=this._visibleLines.getVisibleLine(r);if(e&&!a.getWidthIsFast()){s=!1;continue}n=Math.max(n,a.getWidth(null))}return s&&t===1&&i===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(n),s}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let s=i;s<=n;s++){const r=this._visibleLines.getVisibleLine(s);if(r.needsMonospaceFontCheck()){const a=r.getWidth(null);a>t&&(t=a,e=s)}}if(e!==-1&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let s=i;s<=n;s++)this._visibleLines.getVisibleLine(s).onMonospaceAssumptionsInvalidated()}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const i=this._horizontalRevealRequest;if(e.startLineNumber<=i.minLineNumber&&i.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const n=this._computeScrollLeftToReveal(i);n&&(this._isViewportWrapping||this._ensureMaxLineWidth(n.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:n.scrollLeft},i.scrollType))}}if(this._updateLineWidthsFast()?this._asyncUpdateLineWidths.cancel():this._asyncUpdateLineWidths.schedule(),xs&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let s=i;s<=n;s++)if(this._visibleLines.getVisibleLine(s).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth0){let v=s[0].startLineNumber,b=s[0].endLineNumber;for(let C=1,w=s.length;Cl){if(!c)return-1;_=h}else if(r===5||r===6)if(r===6&&a<=h&&u<=d)_=a;else{const v=Math.max(5*this._lineHeight,l*.2),b=h-v,C=u-l;_=Math.max(C,b)}else if(r===1||r===2)if(r===2&&a<=h&&u<=d)_=a;else{const v=(h+u)/2;_=Math.max(0,v-l/2)}else _=this._computeMinimumScrolling(a,d,h,u,r===3,r===4);return _}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),i=this._context.configuration.options.get(145),n=t.left,s=n+t.width-i.verticalScrollbarWidth;let r=1073741824,a=0;if(e.type==="range"){const d=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!d)return null;for(const c of d.ranges)r=Math.min(r,Math.round(c.left)),a=Math.max(a,Math.round(c.left+c.width))}else for(const d of e.selections){if(d.startLineNumber!==d.endLineNumber)return null;const c=this._visibleRangesForLineRange(d.startLineNumber,d.startColumn,d.endColumn);if(!c)return null;for(const h of c.ranges)r=Math.min(r,Math.round(h.left)),a=Math.max(a,Math.round(h.left+h.width))}return e.minimalReveal||(r=Math.max(0,r-yL.HORIZONTAL_EXTRA_PX),a+=this._revealHorizontalRightPadding),e.type==="selections"&&a-r>t.width?null:{scrollLeft:this._computeMinimumScrolling(n,s,r,a),maxHorizontalOffset:a}}_computeMinimumScrolling(e,t,i,n,s,r){e=e|0,t=t|0,i=i|0,n=n|0,s=!!s,r=!!r;const a=t-e;if(n-it)return Math.max(0,n-a)}else return i;return e}}yL.HORIZONTAL_EXTRA_PX=30;class wte extends L8{constructor(e){super(),this._context=e;const i=this._context.configuration.options.get(145);this._decorationsLeft=i.decorationsLeft,this._decorationsWidth=i.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const i=this._context.configuration.options.get(145);return this._decorationsLeft=i.decorationsLeft,this._decorationsWidth=i.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){var t,i;const n=e.getDecorationsInViewport(),s=[];let r=0;for(let a=0,l=n.length;a',l=[];for(let d=t;d<=i;d++){const c=d-t,h=n[c].getDecorations();let u="";for(const g of h){let f='
';s[a]=d}this._renderResult=s}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}class To{constructor(e,t,i,n){this._rgba8Brand=void 0,this.r=To._clamp(e),this.g=To._clamp(t),this.b=To._clamp(i),this.a=To._clamp(n)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:e|0}}To.Empty=new To(0,0,0,0);class H0 extends W{static getInstance(){return this._INSTANCE||(this._INSTANCE=new H0),this._INSTANCE}constructor(){super(),this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(gi.onDidChange(e=>{e.changedColorMap&&this._updateColorMap()}))}_updateColorMap(){const e=gi.getColorMap();if(!e){this._colors=[To.Empty],this._backgroundIsLight=!0;return}this._colors=[To.Empty];for(let i=1;i=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}H0._INSTANCE=null;const yte=(()=>{const o=[];for(let e=32;e<=126;e++)o.push(e);return o.push(65533),o})(),Lte=(o,e)=>(o-=32,o<0||o>96?e<=2?(o+96)%96:95:o);class hb{constructor(e,t){this.scale=t,this._minimapCharRendererBrand=void 0,this.charDataNormal=hb.soften(e,12/15),this.charDataLight=hb.soften(e,50/60)}static soften(e,t){const i=new Uint8ClampedArray(e.length);for(let n=0,s=e.length;ne.width||i+f>e.height){console.warn("bad render request outside image data");return}const p=c?this.charDataLight:this.charDataNormal,_=Lte(n,d),v=e.width*4,b=a.r,C=a.g,w=a.b,S=s.r-b,L=s.g-C,D=s.b-w,I=Math.max(r,l),T=e.data;let V=_*u*g,P=i*v+t*4;for(let A=0;Ae.width||i+h>e.height){console.warn("bad render request outside image data");return}const u=e.width*4,g=.5*(s/255),f=r.r,p=r.g,_=r.b,v=n.r-f,b=n.g-p,C=n.b-_,w=f+v*g,S=p+b*g,L=_+C*g,D=Math.max(s,a),I=e.data;let T=i*u+t*4;for(let V=0;V{const e=new Uint8ClampedArray(o.length/2);for(let t=0;t>1]=v4[o[t]]<<4|v4[o[t+1]]&15;return e},C4={1:bh(()=>b4("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:bh(()=>b4("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))};class hv{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let i;return C4[e]?i=new hb(C4[e](),e):i=hv.createFromSampleData(hv.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=i,i}static createSampleData(e){const t=document.createElement("canvas"),i=t.getContext("2d");t.style.height="16px",t.height=16,t.width=96*10,t.style.width=96*10+"px",i.fillStyle="#ffffff",i.font=`bold 16px ${e}`,i.textBaseline="middle";let n=0;for(const s of yte)i.fillText(String.fromCharCode(s),n,16/2),n+=10;return i.getImageData(0,0,96*10,16)}static createFromSampleData(e,t){if(e.length!==61440)throw new Error("Unexpected source in MinimapCharRenderer");const n=hv._downsample(e,t);return new hb(n,t)}static _downsampleChar(e,t,i,n,s){const r=1*s,a=2*s;let l=n,d=0;for(let c=0;c0){const d=255/l;for(let c=0;chv.create(this.fontScale,l.fontFamily)),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=Cm._getMinimapBackground(t,this.defaultBackgroundColor),this.foregroundAlpha=Cm._getMinimapForegroundOpacity(t)}static _getMinimapBackground(e,t){const i=e.getColor(uX);return i?new To(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}static _getMinimapForegroundOpacity(e){const t=e.getColor(gX);return t?To._clamp(Math.round(255*t.rgba.a)):255}static _getSectionHeaderColor(e,t){const i=e.getColor(nr);return i?new To(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.paddingTop===e.paddingTop&&this.paddingBottom===e.paddingBottom&&this.showSlider===e.showSlider&&this.autohide===e.autohide&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.sectionHeaderFontSize===e.sectionHeaderFontSize&&this.sectionHeaderLetterSpacing===e.sectionHeaderLetterSpacing&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}class uv{constructor(e,t,i,n,s,r,a,l,d){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=n,this.sliderTop=s,this.sliderHeight=r,this.topPaddingLineCount=a,this.startLineNumber=l,this.endLineNumber=d}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}intersectWithViewport(e){const t=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumber,e.endLineNumber);return t>i?null:[t,i]}getYForLineNumber(e,t){return+(e-this.startLineNumber+this.topPaddingLineCount)*t}static create(e,t,i,n,s,r,a,l,d,c,h){const u=e.pixelRatio,g=e.minimapLineHeight,f=Math.floor(e.canvasInnerHeight/g),p=e.lineHeight;if(e.minimapHeightIsEditorHeight){let L=l*e.lineHeight+e.paddingTop+e.paddingBottom;e.scrollBeyondLastLine&&(L+=Math.max(0,s-e.lineHeight-e.paddingBottom));const D=Math.max(1,Math.floor(s*s/L)),I=Math.max(0,e.minimapHeight-D),T=I/(c-s),V=d*T,P=I>0,A=Math.floor(e.canvasInnerHeight/e.minimapLineHeight),B=Math.floor(e.paddingTop/e.lineHeight);return new uv(d,c,P,T,V,D,B,1,Math.min(a,A))}let _;if(r&&i!==a){const L=i-t+1;_=Math.floor(L*g/u)}else{const L=s/p;_=Math.floor(L*g/u)}const v=Math.floor(e.paddingTop/p);let b=Math.floor(e.paddingBottom/p);if(e.scrollBeyondLastLine){const L=s/p;b=Math.max(b,L-1)}let C;if(b>0){const L=s/p;C=(v+a+b-L-1)*g/u}else C=Math.max(0,(v+a)*g/u-_);C=Math.min(e.minimapHeight-_,C);const w=C/(c-s),S=d*w;if(f>=v+a+b){const L=C>0;return new uv(d,c,L,w,S,_,v,1,a)}else{let L;t>1?L=t+v:L=Math.max(1,d/p);let D,I=Math.max(1,Math.floor(L-S*u/g));Id&&(I=Math.min(I,h.startLineNumber),D=Math.max(D,h.topPaddingLineCount)),h.scrollTop=e.paddingTop?P=(t-I+D+V)*g/u:P=d/e.paddingTop*(D+V)*g/u,new uv(d,c,!0,w,P,_,D,I,T)}}}class hS{constructor(e){this.dy=e}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}}hS.INVALID=new hS(-1);class w4{constructor(e,t,i){this.renderedLayout=e,this._imageData=t,this._renderedLines=new C8(()=>hS.INVALID),this._renderedLines._set(e.startLineNumber,i)}linesEquals(e){if(!this.scrollEquals(e))return!1;const i=this._renderedLines._get().lines;for(let n=0,s=i.length;n1){for(let v=0,b=n-1;v0&&this.minimapLines[i-1]>=e;)i--;let n=this.modelLineToMinimapLine(t)-1;for(;n+1t)return null}return[i+1,n+1]}decorationLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e),n=this.modelLineToMinimapLine(t);return e!==t&&n===i&&(n===this.minimapLines.length?i>1&&i--:n++),[i,n]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let i=this.minimapLines.length,n=0;for(let s=this.minimapLines.length-1;s>=0&&!(this.minimapLines[s]=0&&!(this.minimapLines[i]0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(n)}_recreateLineSampling(){this._minimapSelections=null;const e=!!this._samplingState,[t,i]=ub.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const n of i)switch(n.type){case"deleted":this._actual.onLinesDeleted(n.deleteFromLineNumber,n.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(n.insertFromLineNumber,n.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(e){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineContent(e)}getLineMaxColumn(e){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineMaxColumn(e)}getMinimapLinesRenderingData(e,t,i){if(this._samplingState){const n=[];for(let s=0,r=t-e+1;s{var s;return!(!((s=n.options.minimap)===null||s===void 0)&&s.sectionHeaderStyle)});if(this._samplingState){const n=[];for(const s of i){if(!s.options.minimap)continue;const r=s.range,a=this._samplingState.modelLineToMinimapLine(r.startLineNumber),l=this._samplingState.modelLineToMinimapLine(r.endLineNumber);n.push(new OW(new x(a,r.startColumn,l,r.endColumn),s.options))}return n}return i}getSectionHeaderDecorationsInViewport(e,t){const i=this.options.minimapLineHeight,s=this.options.sectionHeaderFontSize/i;return e=Math.floor(Math.max(1,e-s)),this._getMinimapDecorationsInViewport(e,t).filter(r=>{var a;return!!(!((a=r.options.minimap)===null||a===void 0)&&a.sectionHeaderStyle)})}_getMinimapDecorationsInViewport(e,t){let i;if(this._samplingState){const n=this._samplingState.minimapLines[e-1],s=this._samplingState.minimapLines[t-1];i=new x(n,1,s,this._context.viewModel.getLineMaxColumn(s))}else i=new x(e,1,t,this._context.viewModel.getLineMaxColumn(t));return this._context.viewModel.getMinimapDecorationsInRange(i)}getSectionHeaderText(e,t){var i;const n=(i=e.options.minimap)===null||i===void 0?void 0:i.sectionHeaderText;if(!n)return null;const s=this._sectionHeaderCache.get(n);if(s)return s;const r=t(n);return this._sectionHeaderCache.set(n,r),r}getOptions(){return this._context.viewModel.model.getOptions()}revealLineNumber(e){this._samplingState&&(e=this._samplingState.minimapLines[e-1]),this._context.viewModel.revealRange("mouse",!1,new x(e,1,e,1),1,0)}setScrollTop(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e},1)}}class Qf extends W{constructor(e,t){super(),this._renderDecorations=!1,this._gestureInProgress=!1,this._theme=e,this._model=t,this._lastRenderData=null,this._buffers=null,this._selectionColor=this._theme.getColor(i4),this._domNode=Lt(document.createElement("div")),Na.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=Lt(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=Lt(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=Lt(document.createElement("canvas")),this._decorationsCanvas.setPosition("absolute"),this._decorationsCanvas.setClassName("minimap-decorations-layer"),this._decorationsCanvas.setLeft(0),this._domNode.appendChild(this._decorationsCanvas),this._slider=Lt(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=Lt(document.createElement("div")),this._sliderHorizontal.setPosition("absolute"),this._sliderHorizontal.setClassName("minimap-slider-horizontal"),this._slider.appendChild(this._sliderHorizontal),this._applyLayout(),this._pointerDownListener=Si(this._domNode.domNode,ee.POINTER_DOWN,i=>{if(i.preventDefault(),this._model.options.renderMinimap===0||!this._lastRenderData)return;if(this._model.options.size!=="proportional"){if(i.button===0&&this._lastRenderData){const d=Oi(this._slider.domNode),c=d.top+d.height/2;this._startSliderDragging(i,c,this._lastRenderData.renderedLayout)}return}const s=this._model.options.minimapLineHeight,r=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*i.offsetY;let l=Math.floor(r/s)+this._lastRenderData.renderedLayout.startLineNumber-this._lastRenderData.renderedLayout.topPaddingLineCount;l=Math.min(l,this._model.getLineCount()),this._model.revealLineNumber(l)}),this._sliderPointerMoveMonitor=new Rp,this._sliderPointerDownListener=Si(this._slider.domNode,ee.POINTER_DOWN,i=>{i.preventDefault(),i.stopPropagation(),i.button===0&&this._lastRenderData&&this._startSliderDragging(i,i.pageY,this._lastRenderData.renderedLayout)}),this._gestureDisposable=zt.addTarget(this._domNode.domNode),this._sliderTouchStartListener=U(this._domNode.domNode,Ut.Start,i=>{i.preventDefault(),i.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(i))},{passive:!1}),this._sliderTouchMoveListener=U(this._domNode.domNode,Ut.Change,i=>{i.preventDefault(),i.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(i)},{passive:!1}),this._sliderTouchEndListener=Si(this._domNode.domNode,Ut.End,i=>{i.preventDefault(),i.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)})}_startSliderDragging(e,t,i){if(!e.target||!(e.target instanceof Element))return;const n=e.pageX;this._slider.toggleClassName("active",!0);const s=(r,a)=>{const l=Oi(this._domNode.domNode),d=Math.min(Math.abs(a-n),Math.abs(a-l.left),Math.abs(a-l.left-l.width));if(Fn&&d>Dte){this._model.setScrollTop(i.scrollTop);return}const c=r-t;this._model.setScrollTop(i.getDesiredScrollTopFromDelta(c))};e.pageY!==t&&s(e.pageY,n),this._sliderPointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,r=>s(r.pageY,r.pageX),()=>{this._slider.toggleClassName("active",!1)})}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,i=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(i)}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(){const e=["minimap"];return this._model.options.showSlider==="always"?e.push("slider-always"):e.push("slider-mouseover"),this._model.options.autohide&&e.push("autohide"),e.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 JA(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(e,t){return this._lastRenderData?this._lastRenderData.onLinesChanged(e,t):!1}onLinesDeleted(e,t){var i;return(i=this._lastRenderData)===null||i===void 0||i.onLinesDeleted(e,t),!0}onLinesInserted(e,t){var i;return(i=this._lastRenderData)===null||i===void 0||i.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(i4),this._renderDecorations=!0,!0}onTokensChanged(e){return this._lastRenderData?this._lastRenderData.onTokensChanged(e):!1}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(this._model.options.renderMinimap===0){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const i=uv.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(i.sliderNeeded?"block":"none"),this._slider.setTop(i.sliderTop),this._slider.setHeight(i.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(i.sliderHeight),this.renderDecorations(i),this._lastRenderData=this.renderLines(i)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections();t.sort(x.compareRangesUsingStarts);const i=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);i.sort((u,g)=>(u.options.zIndex||0)-(g.options.zIndex||0));const{canvasInnerWidth:n,canvasInnerHeight:s}=this._model.options,r=this._model.options.minimapLineHeight,a=this._model.options.minimapCharWidth,l=this._model.getOptions().tabSize,d=this._decorationsCanvas.domNode.getContext("2d");d.clearRect(0,0,n,s);const c=new S4(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(d,t,c,e,r),this._renderDecorationsLineHighlights(d,i,c,e,r);const h=new S4(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(d,t,h,e,r,l,a,n),this._renderDecorationsHighlights(d,i,h,e,r,l,a,n),this._renderSectionHeaders(e)}}_renderSelectionLineHighlights(e,t,i,n,s){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let r=0,a=0;for(const l of t){const d=n.intersectWithViewport(l);if(!d)continue;const[c,h]=d;for(let f=c;f<=h;f++)i.set(f,!0);const u=n.getYForLineNumber(c,s),g=n.getYForLineNumber(h,s);a>=u||(a>r&&e.fillRect(Qa,r,e.canvas.width,a-r),r=u),a=g}a>r&&e.fillRect(Qa,r,e.canvas.width,a-r)}_renderDecorationsLineHighlights(e,t,i,n,s){const r=new Map;for(let a=t.length-1;a>=0;a--){const l=t[a],d=l.options.minimap;if(!d||d.position!==1)continue;const c=n.intersectWithViewport(l.range);if(!c)continue;const[h,u]=c,g=d.getColor(this._theme.value);if(!g||g.isTransparent())continue;let f=r.get(g.toString());f||(f=g.transparent(.5).toString(),r.set(g.toString(),f)),e.fillStyle=f;for(let p=h;p<=u;p++){if(i.has(p))continue;i.set(p,!0);const _=n.getYForLineNumber(h,s);e.fillRect(Qa,_,e.canvas.width,s)}}}_renderSelectionsHighlights(e,t,i,n,s,r,a,l){if(!(!this._selectionColor||this._selectionColor.isTransparent()))for(const d of t){const c=n.intersectWithViewport(d);if(!c)continue;const[h,u]=c;for(let g=h;g<=u;g++)this.renderDecorationOnLine(e,i,d,this._selectionColor,n,g,s,s,r,a,l)}}_renderDecorationsHighlights(e,t,i,n,s,r,a,l){for(const d of t){const c=d.options.minimap;if(!c)continue;const h=n.intersectWithViewport(d.range);if(!h)continue;const[u,g]=h,f=c.getColor(this._theme.value);if(!(!f||f.isTransparent()))for(let p=u;p<=g;p++)switch(c.position){case 1:this.renderDecorationOnLine(e,i,d.range,f,n,p,s,s,r,a,l);continue;case 2:{const _=n.getYForLineNumber(p,s);this.renderDecoration(e,f,2,_,kte,s);continue}}}}renderDecorationOnLine(e,t,i,n,s,r,a,l,d,c,h){const u=s.getYForLineNumber(r,l);if(u+a<0||u>this._model.options.canvasInnerHeight)return;const{startLineNumber:g,endLineNumber:f}=i,p=g===r?i.startColumn:1,_=f===r?i.endColumn:this._model.getLineMaxColumn(r),v=this.getXOffsetForPosition(t,r,p,d,c,h),b=this.getXOffsetForPosition(t,r,_,d,c,h);this.renderDecoration(e,n,v,u,b-v,a)}getXOffsetForPosition(e,t,i,n,s,r){if(i===1)return Qa;if((i-1)*s>=r)return r;let l=e.get(t);if(!l){const d=this._model.getLineContent(t);l=[Qa];let c=Qa;for(let h=1;h=r){l[h]=r;break}l[h]=f,c=f}e.set(t,l)}return i-1_.range.startLineNumber-v.range.startLineNumber);const p=Qf._fitSectionHeader.bind(null,g,a-Qa);for(const _ of f){const v=e.getYForLineNumber(_.range.startLineNumber,i)+n,b=v-n,C=b+2,w=this._model.getSectionHeaderText(_,p);Qf._renderSectionLabel(g,w,((t=_.options.minimap)===null||t===void 0?void 0:t.sectionHeaderStyle)===2,d,h,a,b,r,v,C)}}static _fitSectionHeader(e,t,i){if(!i)return i;const n="…",s=e.measureText(i).width,r=e.measureText(n).width;if(s<=t||s<=r)return i;const a=i.length,l=s/i.length,d=Math.floor((t-r)/l)-1;let c=Math.ceil(d/2);for(;c>0&&/\s/.test(i[c-1]);)--c;return i.substring(0,c)+n+i.substring(a-(d-c))}static _renderSectionLabel(e,t,i,n,s,r,a,l,d,c){t&&(e.fillStyle=n,e.fillRect(0,a,r,l),e.fillStyle=s,e.fillText(t,Qa,d)),i&&(e.beginPath(),e.moveTo(0,c),e.lineTo(r,c),e.closePath(),e.stroke())}renderLines(e){const t=e.startLineNumber,i=e.endLineNumber,n=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){const X=this._lastRenderData._get();return new w4(e,X.imageData,X.lines)}const s=this._getBuffer();if(!s)return null;const[r,a,l]=Qf._renderUntouchedLines(s,e.topPaddingLineCount,t,i,n,this._lastRenderData),d=this._model.getMinimapLinesRenderingData(t,i,l),c=this._model.getOptions().tabSize,h=this._model.options.defaultBackgroundColor,u=this._model.options.backgroundColor,g=this._model.options.foregroundAlpha,f=this._model.tokensColorTracker,p=f.backgroundIsLight(),_=this._model.options.renderMinimap,v=this._model.options.charRenderer(),b=this._model.options.fontScale,C=this._model.options.minimapCharWidth,S=(_===1?2:3)*b,L=n>S?Math.floor((n-S)/2):0,D=u.a/255,I=new To(Math.round((u.r-h.r)*D+h.r),Math.round((u.g-h.g)*D+h.g),Math.round((u.b-h.b)*D+h.b),255);let T=e.topPaddingLineCount*n;const V=[];for(let X=0,pe=i-t+1;X=0&&Pb)return;const A=_.charCodeAt(S);if(A===9){const B=u-(S+L)%u;L+=B-1,w+=B*r}else if(A===32)w+=r;else{const B=wh(A)?2:1;for(let j=0;jb)return}}}}}class S4{constructor(e,t,i){this._startLineNumber=e,this._endLineNumber=t,this._defaultValue=i,this._values=[];for(let n=0,s=this._endLineNumber-this._startLineNumber+1;nthis._endLineNumber||(this._values[e-this._startLineNumber]=t)}get(e){return ethis._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}class Ete extends uo{constructor(e,t){super(e),this._viewDomNode=t;const n=this._context.configuration.options.get(145);this._widgets={},this._verticalScrollbarWidth=n.verticalScrollbarWidth,this._minimapWidth=n.minimap.minimapWidth,this._horizontalScrollbarHeight=n.horizontalScrollbarHeight,this._editorHeight=n.height,this._editorWidth=n.width,this._viewDomNodeRect={top:0,left:0,width:0,height:0},this._domNode=Lt(document.createElement("div")),Na.write(this._domNode,4),this._domNode.setClassName("overlayWidgets"),this.overflowingOverlayWidgetsDomNode=Lt(document.createElement("div")),Na.write(this.overflowingOverlayWidgetsDomNode,5),this.overflowingOverlayWidgetsDomNode.setClassName("overflowingOverlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const i=this._context.configuration.options.get(145);return this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,!0}addWidget(e){const t=Lt(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),e.allowEditorOverflow?this.overflowingOverlayWidgetsDomNode.appendChild(t):this._domNode.appendChild(t),this.setShouldRender(),this._updateMaxMinWidth()}setWidgetPosition(e,t){const i=this._widgets[e.getId()],n=t?t.preference:null,s=t==null?void 0:t.stackOridinal;return i.preference===n&&i.stack===s?(this._updateMaxMinWidth(),!1):(i.preference=n,i.stack=s,this.setShouldRender(),this._updateMaxMinWidth(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const n=this._widgets[t].domNode.domNode;delete this._widgets[t],n.remove(),this.setShouldRender(),this._updateMaxMinWidth()}}_updateMaxMinWidth(){var e,t;let i=0;const n=Object.keys(this._widgets);for(let s=0,r=n.length;s0);t.sort((n,s)=>(this._widgets[n].stack||0)-(this._widgets[s].stack||0));for(let n=0,s=t.length;n=3){const s=Math.floor(n/3),r=Math.floor(n/3),a=n-s-r,l=e,d=l+s,c=l+s+a;return[[0,l,d,l,c,l,d,l],[0,s,a,s+a,r,s+a+r,a+r,s+a+r]]}else if(i===2){const s=Math.floor(n/2),r=n-s,a=e,l=a+s;return[[0,a,a,a,l,a,a,a],[0,s,s,s,r,s+r,s+r,s+r]]}else{const s=e,r=n;return[[0,s,s,s,s,s,s,s],[0,r,r,r,r,r,r,r]]}}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColorSingle===e.cursorColorSingle&&this.cursorColorPrimary===e.cursorColorPrimary&&this.cursorColorSecondary===e.cursorColorSecondary&&this.themeType===e.themeType&&z.equals(this.backgroundColor,e.backgroundColor)&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class Tte extends uo{constructor(e){super(e),this._actualShouldRender=0,this._renderedDecorations=[],this._renderedCursorPositions=[],this._domNode=Lt(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=gi.onDidChange(t=>{t.changedColorMap&&this._updateSettings(!0)}),this._cursorPositions=[{position:new F(1,1),color:this._settings.cursorColorSingle}]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new Nte(this._context.configuration,this._context.theme);return this._settings&&this._settings.equals(t)?!1:(this._settings=t,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,e&&this._render(),!0)}_markRenderingIsNeeded(){return this._actualShouldRender=2,!0}_markRenderingIsMaybeNeeded(){return this._actualShouldRender=1,!0}onConfigurationChanged(e){return this._updateSettings(!1)?this._markRenderingIsNeeded():!1}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,i=e.selections.length;t1&&(n=t===0?this._settings.cursorColorPrimary:this._settings.cursorColorSecondary),this._cursorPositions.push({position:e.selections[t].getPosition(),color:n})}return this._cursorPositions.sort((t,i)=>F.compare(t.position,i.position)),this._markRenderingIsMaybeNeeded()}onDecorationsChanged(e){return e.affectsOverviewRuler?this._markRenderingIsMaybeNeeded():!1}onFlushed(e){return this._markRenderingIsNeeded()}onScrollChanged(e){return e.scrollHeightChanged?this._markRenderingIsNeeded():!1}onZonesChanged(e){return this._markRenderingIsNeeded()}onThemeChanged(e){return this._updateSettings(!1)?this._markRenderingIsNeeded():!1}getDomNode(){return this._domNode.domNode}prepareRender(e){}render(e){this._render(),this._actualShouldRender=0}_render(){const e=this._settings.backgroundColor;if(this._settings.overviewRulerLanes===0){this._domNode.setBackgroundColor(e?z.Format.CSS.formatHexA(e):""),this._domNode.setDisplay("none");return}const t=this._context.viewModel.getAllOverviewRulerDecorations(this._context.theme);if(t.sort(tb.compareByRenderingProps),this._actualShouldRender===1&&!tb.equalsArr(this._renderedDecorations,t)&&(this._actualShouldRender=2),this._actualShouldRender===1&&!di(this._renderedCursorPositions,this._cursorPositions,(f,p)=>f.position.lineNumber===p.position.lineNumber&&f.color===p.color)&&(this._actualShouldRender=2),this._actualShouldRender===1)return;this._renderedDecorations=t,this._renderedCursorPositions=this._cursorPositions,this._domNode.setDisplay("block");const i=this._settings.canvasWidth,n=this._settings.canvasHeight,s=this._settings.lineHeight,r=this._context.viewLayout,a=this._context.viewLayout.getScrollHeight(),l=n/a,d=6*this._settings.pixelRatio|0,c=d/2|0,h=this._domNode.domNode.getContext("2d");e?e.isOpaque()?(h.fillStyle=z.Format.CSS.formatHexA(e),h.fillRect(0,0,i,n)):(h.clearRect(0,0,i,n),h.fillStyle=z.Format.CSS.formatHexA(e),h.fillRect(0,0,i,n)):h.clearRect(0,0,i,n);const u=this._settings.x,g=this._settings.w;for(const f of t){const p=f.color,_=f.data;h.fillStyle=p;let v=0,b=0,C=0;for(let w=0,S=_.length/3;wn&&(A=n-c),T=A-c,V=A+c}T>C+1||L!==v?(w!==0&&h.fillRect(u[v],b,g[v],C-b),v=L,b=T,C=V):V>C&&(C=V)}h.fillRect(u[v],b,g[v],C-b)}if(!this._settings.hideCursor){const f=2*this._settings.pixelRatio|0,p=f/2|0,_=this._settings.x[7],v=this._settings.w[7];let b=-100,C=-100,w=null;for(let S=0,L=this._cursorPositions.length;Sn&&(T=n-p);const V=T-p,P=V+f;V>C+1||D!==w?(S!==0&&w&&h.fillRect(_,b,v,C-b),b=V,C=P):P>C&&(C=P),w=D,h.fillStyle=D}w&&h.fillRect(_,b,v,C-b)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(h.beginPath(),h.lineWidth=1,h.strokeStyle=this._settings.borderColor,h.moveTo(0,0),h.lineTo(0,n),h.stroke(),h.moveTo(0,0),h.lineTo(i,0),h.stroke())}}class y4{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=e|0,this.to=t|0,this.colorId=i|0}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class k8{constructor(e,t,i,n){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=i,this.color=n,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines:e.startLineNumber-t.startLineNumber:e.colori&&(p=i-_);const v=c.color;let b=this._color2Id[v];b||(b=++this._lastAssignedId,this._color2Id[v]=b,this._id2Color[b]=v);const C=new y4(p-_,p+_,b);c.setColorZone(C),a.push(C)}return this._colorZonesInvalid=!1,a.sort(y4.compare),a}}class Rte extends P0{constructor(e,t){super(),this._context=e;const i=this._context.configuration.options;this._domNode=Lt(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new Mte(n=>this._context.viewLayout.getVerticalOffsetForLineNumber(n)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(67)),this._zoneManager.setPixelRatio(i.get(143)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(67)&&(this._zoneManager.setLineHeight(t.get(67)),this._render()),e.hasChanged(143)&&(this._zoneManager.setPixelRatio(t.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(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(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(e){this._zoneManager.setZones(e),this._render()}_render(){if(this._zoneManager.getOuterHeight()===0)return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),n=this._zoneManager.getId2Color(),s=this._domNode.domNode.getContext("2d");return s.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(s,i,n,e),!0}_renderOneLane(e,t,i,n){let s=0,r=0,a=0;for(const l of t){const d=l.colorId,c=l.from,h=l.to;d!==s?(e.fillRect(0,r,n,a-r),s=d,e.fillStyle=i[s],r=c,a=h):a>=c?a=Math.max(a,h):(e.fillRect(0,r,n,a-r),r=c,a=h)}e.fillRect(0,r,n,a-r)}}class Ate extends uo{constructor(e){super(e),this.domNode=Lt(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(102),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(102),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e0;){const a=Lt(document.createElement("div"));a.setClassName("view-ruler"),a.setWidth(s),this.domNode.appendChild(a),this._renderedRulers.push(a),r--}return}let i=e-t;for(;i>0;){const n=this._renderedRulers.pop();this.domNode.removeChild(n),i--}}render(e){this._ensureRulersCount();for(let t=0,i=this._rulers.length;t0;return this._shouldShow!==e?(this._shouldShow=e,!0):!1}getDomNode(){return this._domNode}_updateWidth(){const t=this._context.configuration.options.get(145);t.minimap.renderMinimap===0||t.minimap.minimapWidth>0&&t.minimap.minimapLeft===0?this._width=t.width:this._width=t.width-t.verticalScrollbarWidth}onConfigurationChanged(e){const i=this._context.configuration.options.get(103);return this._useShadows=i.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}class Ote{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class Fte{constructor(e,t){this.lineNumber=e,this.ranges=t}}function Bte(o){return new Ote(o)}function Wte(o){return new Fte(o.lineNumber,o.ranges.map(Bte))}class ki extends qg{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._roundedSelection=t.get(101),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._roundedSelection=t.get(101),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t1)return!0;return!1}_enrichVisibleRangesWithStyle(e,t,i){const n=this._typicalHalfwidthCharacterWidth/4;let s=null,r=null;if(i&&i.length>0&&t.length>0){const a=t[0].lineNumber;if(a===e.startLineNumber)for(let d=0;!s&&d=0;d--)i[d].lineNumber===l&&(r=i[d].ranges[0]);s&&!s.startStyle&&(s=null),r&&!r.startStyle&&(r=null)}for(let a=0,l=t.length;a0){const f=t[a-1].ranges[0].left,p=t[a-1].ranges[0].left+t[a-1].ranges[0].width;zC(c-f)f&&(u.top=1),zC(h-p)'}_actualRenderOneSelection(e,t,i,n){if(n.length===0)return;const s=!!n[0].ranges[0].startStyle,r=n[0].lineNumber,a=n[n.length-1].lineNumber;for(let l=0,d=n.length;l1,d)}this._previousFrameVisibleRangesWithStyle=s,this._renderResult=t.map(([r,a])=>r+a)}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}ki.SELECTION_CLASS_NAME="selected-text";ki.SELECTION_TOP_LEFT="top-left-radius";ki.SELECTION_BOTTOM_LEFT="bottom-left-radius";ki.SELECTION_TOP_RIGHT="top-right-radius";ki.SELECTION_BOTTOM_RIGHT="bottom-right-radius";ki.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background";ki.ROUNDED_PIECE_WIDTH=10;gr((o,e)=>{const t=o.getColor(jQ);t&&!t.isTransparent()&&e.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${t}; }`)});function zC(o){return o<0?-o:o}class L4{constructor(e,t,i,n,s,r,a){this.top=e,this.left=t,this.paddingLeft=i,this.width=n,this.height=s,this.textContent=r,this.textContentClassName=a}}var Od;(function(o){o[o.Single=0]="Single",o[o.MultiPrimary=1]="MultiPrimary",o[o.MultiSecondary=2]="MultiSecondary"})(Od||(Od={}));class x4{constructor(e,t){this._context=e;const i=this._context.configuration.options,n=i.get(50);this._cursorStyle=i.get(28),this._lineHeight=i.get(67),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(i.get(31),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Lt(document.createElement("div")),this._domNode.setClassName(`cursor ${_m}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),kn(this._domNode,n),this._domNode.setDisplay("none"),this._position=new F(1,1),this._pluralityClass="",this.setPlurality(t),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}setPlurality(e){switch(e){default:case Od.Single:this._pluralityClass="";break;case Od.MultiPrimary:this._pluralityClass="cursor-primary";break;case Od.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(e){const t=this._context.configuration.options,i=t.get(50);return this._cursorStyle=t.get(28),this._lineHeight=t.get(67),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(31),this._typicalHalfwidthCharacterWidth),kn(this._domNode,i),!0}onCursorPositionChanged(e,t){return t?this._domNode.domNode.style.transitionProperty="none":this._domNode.domNode.style.transitionProperty="",this._position=e,!0}_getGraphemeAwarePosition(){const{lineNumber:e,column:t}=this._position,i=this._context.viewModel.getLineContent(e),[n,s]=HK(i,t-1);return[new F(e,n+1),i.substring(n,s)]}_prepareRender(e){let t="",i="";const[n,s]=this._getGraphemeAwarePosition();if(this._cursorStyle===yn.Line||this._cursorStyle===yn.LineThin){const u=e.visibleRangeForPosition(n);if(!u||u.outsideRenderedLine)return null;const g=De(this._domNode.domNode);let f;this._cursorStyle===yn.Line?(f=qO(g,this._lineCursorWidth>0?this._lineCursorWidth:2),f>2&&(t=s,i=this._getTokenClassName(n))):f=qO(g,1);let p=u.left,_=0;f>=2&&p>=1&&(_=1,p-=_);const v=e.getVerticalOffsetForLineNumber(n.lineNumber)-e.bigNumbersDelta;return new L4(v,p,_,f,this._lineHeight,t,i)}const r=e.linesVisibleRangesForRange(new x(n.lineNumber,n.column,n.lineNumber,n.column+s.length),!1);if(!r||r.length===0)return null;const a=r[0];if(a.outsideRenderedLine||a.ranges.length===0)return null;const l=a.ranges[0],d=s===" "?this._typicalHalfwidthCharacterWidth:l.width<1?this._typicalHalfwidthCharacterWidth:l.width;this._cursorStyle===yn.Block&&(t=s,i=this._getTokenClassName(n));let c=e.getVerticalOffsetForLineNumber(n.lineNumber)-e.bigNumbersDelta,h=this._lineHeight;return(this._cursorStyle===yn.Underline||this._cursorStyle===yn.UnderlineThin)&&(c+=this._lineHeight-2,h=2),new L4(c,l.left,0,d,h,t,i)}_getTokenClassName(e){const t=this._context.viewModel.getViewLineData(e.lineNumber),i=t.tokens.findTokenIndexAtOffset(e.column-1);return t.tokens.getClassName(i)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){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} ${_m} ${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)}}class gb extends uo{constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(91),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new x4(this._context,Od.Single),this._secondaryCursors=[],this._renderData=[],this._domNode=Lt(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 jr,this._cursorFlatBlinkInterval=new mA,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(91),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let i=0,n=this._secondaryCursors.length;it.length){const s=this._secondaryCursors.length-t.length;for(let r=0;r{for(let n=0,s=e.ranges.length;n{this._isVisible?this._hide():this._show()},gb.BLINK_INTERVAL,De(this._domNode.domNode)):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},gb.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case yn.Line:e+=" cursor-line-style";break;case yn.Block:e+=" cursor-block-style";break;case yn.Underline:e+=" cursor-underline-style";break;case yn.LineThin:e+=" cursor-line-thin-style";break;case yn.BlockOutline:e+=" cursor-block-outline-style";break;case yn.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;case 5:e+=" cursor-solid";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return(this._cursorSmoothCaretAnimation==="on"||this._cursorSmoothCaretAnimation==="explicit")&&(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e{const t=[{class:".cursor",foreground:Sl,background:Ad},{class:".cursor-primary",foreground:a8,background:JJ},{class:".cursor-secondary",foreground:l8,background:eee}];for(const i of t){const n=o.getColor(i.foreground);if(n){let s=o.getColor(i.background);s||(s=n.opposite()),e.addRule(`.monaco-editor .cursors-layer ${i.class} { background-color: ${n}; border-color: ${n}; color: ${s}; }`),Sa(o.type)&&e.addRule(`.monaco-editor .cursors-layer.has-selection ${i.class} { border-left: 1px solid ${s}; border-right: 1px solid ${s}; }`)}}});const ZD=()=>{throw new Error("Invalid change accessor")};class Hte extends uo{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(145);this._lineHeight=t.get(67),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,this.domNode=Lt(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=Lt(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(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const n of e)t.set(n.id,n);let i=!1;return this._context.viewModel.changeWhitespace(n=>{const s=Object.keys(this._zones);for(let r=0,a=s.length;r{const n={addZone:s=>(t=!0,this._addZone(i,s)),removeZone:s=>{s&&(t=this._removeZone(i,s)||t)},layoutZone:s=>{s&&(t=this._layoutZone(i,s)||t)}};Vte(e,n),n.addZone=ZD,n.removeZone=ZD,n.layoutZone=ZD}),t}_addZone(e,t){const i=this._computeWhitespaceProps(t),s={whitespaceId:e.insertWhitespace(i.afterViewLineNumber,this._getZoneOrdinal(t),i.heightInPx,i.minWidthInPx),delegate:t,isInHiddenArea:i.isInHiddenArea,isVisible:!1,domNode:Lt(t.domNode),marginDomNode:t.marginDomNode?Lt(t.marginDomNode):null};return this._safeCallOnComputedHeight(s.delegate,i.heightInPx),s.domNode.setPosition("absolute"),s.domNode.domNode.style.width="100%",s.domNode.setDisplay("none"),s.domNode.setAttribute("monaco-view-zone",s.whitespaceId),this.domNode.appendChild(s.domNode),s.marginDomNode&&(s.marginDomNode.setPosition("absolute"),s.marginDomNode.domNode.style.width="100%",s.marginDomNode.setDisplay("none"),s.marginDomNode.setAttribute("monaco-view-zone",s.whitespaceId),this.marginDomNode.appendChild(s.marginDomNode)),this._zones[s.whitespaceId]=s,this.setShouldRender(),s.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t];return delete this._zones[t],e.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.parentNode.removeChild(i.domNode.domNode),i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.parentNode.removeChild(i.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t],n=this._computeWhitespaceProps(i.delegate);return i.isInHiddenArea=n.isInHiddenArea,e.changeOneWhitespace(i.whitespaceId,n.afterViewLineNumber,n.heightInPx),this._safeCallOnComputedHeight(i.delegate,n.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){return this._zones.hasOwnProperty(e)?!!this._zones[e].delegate.suppressMouseDown:!1}_heightInPixels(e){return typeof e.heightInPx=="number"?e.heightInPx:typeof e.heightInLines=="number"?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return typeof e.minWidthInPx=="number"?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if(typeof e.onComputedHeight=="function")try{e.onComputedHeight(t)}catch(i){ze(i)}}_safeCallOnDomNodeTop(e,t){if(typeof e.onDomNodeTop=="function")try{e.onDomNodeTop(t)}catch(i){ze(i)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,i={};let n=!1;for(const r of t)this._zones[r.id].isInHiddenArea||(i[r.id]=r,n=!0);const s=Object.keys(this._zones);for(let r=0,a=s.length;ra)continue;const g=u.startLineNumber===a?u.startColumn:d.minColumn,f=u.endLineNumber===a?u.endColumn:d.maxColumn;g=V.endOffset&&(T++,V=i&&i[T]),B!==9&&B!==32||u&&!L&&A<=I)continue;if(h&&A>=D&&A<=I&&B===32){const X=A-1>=0?a.charCodeAt(A-1):0,pe=A+1=0?a.charCodeAt(A-1):0;if(B===32&&X!==32&&X!==9)continue}if(i&&(!V||V.startOffset>A||V.endOffset<=A))continue;const j=e.visibleRangeForPosition(new F(t,A+1));j&&(r?(P=Math.max(P,j.left),B===9?S+=this._renderArrow(g,_,j.left):S+=``):B===9?S+=`
${w?"→":"→"}
`:S+=`
${String.fromCharCode(C)}
`)}return r?(P=Math.round(P+_),``+S+""):S}_renderArrow(e,t,i){const n=t/7,s=t,r=e/2,a=i,l={x:0,y:n/2},d={x:100/125*s,y:l.y},c={x:d.x-.2*d.x,y:d.y+.2*d.x},h={x:c.x+.1*d.x,y:c.y+.1*d.x},u={x:h.x+.35*d.x,y:h.y-.35*d.x},g={x:u.x,y:-u.y},f={x:h.x,y:-h.y},p={x:c.x,y:-c.y},_={x:d.x,y:-d.y},v={x:l.x,y:-l.y};return``}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class D4{constructor(e){const t=e.options,i=t.get(50),n=t.get(38);n==="off"?(this.renderWhitespace="none",this.renderWithSVG=!1):n==="svg"?(this.renderWhitespace=t.get(99),this.renderWithSVG=!0):(this.renderWhitespace=t.get(99),this.renderWithSVG=!1),this.spaceWidth=i.spaceWidth,this.middotWidth=i.middotWidth,this.wsmiddotWidth=i.wsmiddotWidth,this.canUseHalfwidthRightwardsArrow=i.canUseHalfwidthRightwardsArrow,this.lineHeight=t.get(67),this.stopRenderingLineAfter=t.get(117)}equals(e){return this.renderWhitespace===e.renderWhitespace&&this.renderWithSVG===e.renderWithSVG&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter}}class Ute{constructor(e,t,i,n){this.selections=e,this.startLineNumber=t.startLineNumber|0,this.endLineNumber=t.endLineNumber|0,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=t.bigNumbersDelta|0,this.lineHeight=t.lineHeight|0,this.whitespaceViewportData=i,this._model=n,this.visibleRange=new x(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}getViewLineRenderingData(e){return this._model.getViewportViewLineRenderingData(this.visibleRange,e)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}class $te{get type(){return this._theme.type}get value(){return this._theme}constructor(e){this._theme=e}update(e){this._theme=e}getColor(e){return this._theme.getColor(e)}}class jte{constructor(e,t,i){this.configuration=e,this.theme=new $te(t),this.viewModel=i,this.viewLayout=i.viewLayout}addEventHandler(e){this.viewModel.addViewEventHandler(e)}removeEventHandler(e){this.viewModel.removeViewEventHandler(e)}}var Kte=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},qte=function(o,e){return function(t,i){e(t,i,o)}};let oN=class extends P0{constructor(e,t,i,n,s,r,a){super(),this._instantiationService=a,this._shouldRecomputeGlyphMarginLanes=!1,this._selections=[new _e(1,1,1,1)],this._renderAnimationFrame=null;const l=new Jee(t,n,s,e);this._context=new jte(t,i,n),this._context.addEventHandler(this),this._viewParts=[],this._textAreaHandler=this._instantiationService.createInstance(iN,this._context,l,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=Lt(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=Lt(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=Lt(document.createElement("div")),Na.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new dte(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new yL(this._context,this._linesContent),this._viewZones=new Hte(this._context),this._viewParts.push(this._viewZones);const d=new Tte(this._context);this._viewParts.push(d);const c=new Pte(this._context);this._viewParts.push(c);const h=new tte(this._context);this._viewParts.push(h),h.addDynamicOverlay(new rte(this._context)),h.addDynamicOverlay(new ki(this._context)),h.addDynamicOverlay(new _te(this._context)),h.addDynamicOverlay(new lte(this._context)),h.addDynamicOverlay(new zte(this._context));const u=new ite(this._context);this._viewParts.push(u),u.addDynamicOverlay(new ate(this._context)),u.addDynamicOverlay(new Ste(this._context)),u.addDynamicOverlay(new wte(this._context)),u.addDynamicOverlay(new W0(this._context)),this._glyphMarginWidgets=new ute(this._context),this._viewParts.push(this._glyphMarginWidgets);const g=new _g(this._context);g.getDomNode().appendChild(this._viewZones.marginDomNode),g.getDomNode().appendChild(u.getDomNode()),g.getDomNode().appendChild(this._glyphMarginWidgets.domNode),this._viewParts.push(g),this._contentWidgets=new ste(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new gb(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new Ete(this._context,this.domNode),this._viewParts.push(this._overlayWidgets);const f=new Ate(this._context);this._viewParts.push(f);const p=new nte(this._context);this._viewParts.push(p);const _=new Ite(this._context);if(this._viewParts.push(_),d){const v=this._scrollbar.getOverviewRulerLayoutInfo();v.parent.insertBefore(d.getDomNode(),v.insertBefore)}this._linesContent.appendChild(h.getDomNode()),this._linesContent.appendChild(f.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(g.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(c.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(_.getDomNode()),this._overflowGuardContainer.appendChild(p.domNode),this.domNode.appendChild(this._overflowGuardContainer),r?(r.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode),r.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode.domNode)):(this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this.domNode.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode)),this._applyLayout(),this._pointerHandler=this._register(new YJ(this._context,l,this._createPointerHandlerHelper()))}_computeGlyphMarginLanes(){const e=this._context.viewModel.model,t=this._context.viewModel.glyphLanes;let i=[],n=0;i=i.concat(e.getAllMarginDecorations().map(s=>{var r,a,l;const d=(a=(r=s.options.glyphMargin)===null||r===void 0?void 0:r.position)!==null&&a!==void 0?a:Rl.Center;return n=Math.max(n,s.range.endLineNumber),{range:s.range,lane:d,persist:(l=s.options.glyphMargin)===null||l===void 0?void 0:l.persistLane}})),i=i.concat(this._glyphMarginWidgets.getWidgets().map(s=>{const r=e.validateRange(s.preference.range);return n=Math.max(n,r.endLineNumber),{range:r,lane:s.preference.lane}})),i.sort((s,r)=>x.compareRangesUsingStarts(s.range,r.range)),t.reset(n);for(const s of i)t.push(s.lane,s.range,s.persist);return t}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,viewLinesDomNode:this._viewLines.getDomNode().domNode,focusTextArea:()=>{this.focus()},dispatchTextAreaEvent:e=>{this._textAreaHandler.textArea.domNode.dispatchEvent(e)},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new xJ(e,t)},renderNow:()=>{this.render(!0,!1)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new F(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(e))}}_applyLayout(){const t=this._context.configuration.options.get(145);this.domNode.setWidth(t.width),this.domNode.setHeight(t.height),this._overflowGuardContainer.setWidth(t.width),this._overflowGuardContainer.setHeight(t.height),this._linesContent.setWidth(16777216),this._linesContent.setHeight(16777216)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(142)+" "+tN(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onDecorationsChanged(e){return e.affectsGlyphMargin&&(this._shouldRecomputeGlyphMarginLanes=!0),!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this._context.theme.update(e.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(const e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){if(this._store.isDisposed)throw new Tt;if(this._renderAnimationFrame===null){const e=this._createCoordinatedRendering();this._renderAnimationFrame=rN.INSTANCE.scheduleCoordinatedRendering({window:De(this.domNode.domNode),prepareRenderText:()=>{if(this._store.isDisposed)throw new Tt;try{return e.prepareRenderText()}finally{this._renderAnimationFrame=null}},renderText:()=>{if(this._store.isDisposed)throw new Tt;return e.renderText()},prepareRender:(t,i)=>{if(this._store.isDisposed)throw new Tt;return e.prepareRender(t,i)},render:(t,i)=>{if(this._store.isDisposed)throw new Tt;return e.render(t,i)}})}}_flushAccumulatedAndRenderNow(){const e=this._createCoordinatedRendering();Gc(()=>e.prepareRenderText());const t=Gc(()=>e.renderText());if(t){const[i,n]=t;Gc(()=>e.prepareRender(i,n)),Gc(()=>e.render(i,n))}}_getViewPartsToRender(){const e=[];let t=0;for(const i of this._viewParts)i.shouldRender()&&(e[t++]=i);return e}_createCoordinatedRendering(){return{prepareRenderText:()=>{if(this._shouldRecomputeGlyphMarginLanes){this._shouldRecomputeGlyphMarginLanes=!1;const e=this._computeGlyphMarginLanes();this._context.configuration.setGlyphMarginDecorationLaneCount(e.requiredLanes)}Uc.onRenderStart()},renderText:()=>{if(!this.domNode.domNode.isConnected)return null;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&e.length===0)return null;const t=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const i=new Ute(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);return this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(i),this._viewLines.shouldRender()&&(this._viewLines.renderText(i),this._viewLines.onDidRender(),e=this._getViewPartsToRender()),[e,new vJ(this._context.viewLayout,i,this._viewLines)]},prepareRender:(e,t)=>{for(const i of e)i.prepareRender(t)},render:(e,t)=>{for(const i of e)i.render(t),i.onDidRender()}}}delegateVerticalScrollbarPointerDown(e){this._scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this._scrollbar.delegateScrollFromMouseWheelEvent(e)}restoreState(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft},1),this._context.viewModel.visibleLinesStabilized()}getOffsetForColumn(e,t){const i=this._context.viewModel.model.validatePosition({lineNumber:e,column:t}),n=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);this._flushAccumulatedAndRenderNow();const s=this._viewLines.visibleRangeForPosition(new F(n.lineNumber,n.column));return s?s.left:-1}getTargetAtClientPoint(e,t){const i=this._pointerHandler.getTargetAtClientPoint(e,t);return i?wL.convertViewToModelMouseTarget(i,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(e){return new Rte(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(const i of this._viewParts)i.forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}writeScreenReaderContent(e){this._textAreaHandler.writeScreenReaderContent(e)}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){var t,i,n,s,r,a,l,d;this._contentWidgets.setWidgetPosition(e.widget,(i=(t=e.position)===null||t===void 0?void 0:t.position)!==null&&i!==void 0?i:null,(s=(n=e.position)===null||n===void 0?void 0:n.secondaryPosition)!==null&&s!==void 0?s:null,(a=(r=e.position)===null||r===void 0?void 0:r.preference)!==null&&a!==void 0?a:null,(d=(l=e.position)===null||l===void 0?void 0:l.positionAffinity)!==null&&d!==void 0?d:null),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){this._overlayWidgets.setWidgetPosition(e.widget,e.position)&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}addGlyphMarginWidget(e){this._glyphMarginWidgets.addWidget(e.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}layoutGlyphMarginWidget(e){const t=e.position;this._glyphMarginWidgets.setWidgetPosition(e.widget,t)&&(this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender())}removeGlyphMarginWidget(e){this._glyphMarginWidgets.removeWidget(e.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}};oN=Kte([qte(6,Le)],oN);function Gc(o){try{return o()}catch(e){return ze(e),null}}class rN{constructor(){this._coordinatedRenderings=[],this._animationFrameRunners=new Map}scheduleCoordinatedRendering(e){return this._coordinatedRenderings.push(e),this._scheduleRender(e.window),{dispose:()=>{const t=this._coordinatedRenderings.indexOf(e);if(t!==-1&&(this._coordinatedRenderings.splice(t,1),this._coordinatedRenderings.length===0)){for(const[i,n]of this._animationFrameRunners)n.dispose();this._animationFrameRunners.clear()}}}}_scheduleRender(e){if(!this._animationFrameRunners.has(e)){const t=()=>{this._animationFrameRunners.delete(e),this._onRenderScheduled()};this._animationFrameRunners.set(e,qw(e,t,100))}}_onRenderScheduled(){const e=this._coordinatedRenderings.slice(0);this._coordinatedRenderings=[];for(const i of e)Gc(()=>i.prepareRenderText());const t=[];for(let i=0,n=e.length;is.renderText())}for(let i=0,n=e.length;is.prepareRender(a,l))}for(let i=0,n=e.length;is.render(a,l))}}}rN.INSTANCE=new rN;class gv{constructor(e,t,i,n,s){this.injectionOffsets=e,this.injectionOptions=t,this.breakOffsets=i,this.breakOffsetsVisibleColumn=n,this.wrappedTextIndentLength=s}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(e){return e>0?this.wrappedTextIndentLength:0}getLineLength(e){const t=e>0?this.breakOffsets[e-1]:0;let n=this.breakOffsets[e]-t;return e>0&&(n+=this.wrappedTextIndentLength),n}getMaxOutputOffset(e){return this.getLineLength(e)}translateToInputOffset(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));let n=e===0?t:this.breakOffsets[e-1]+t;if(this.injectionOffsets!==null)for(let s=0;sthis.injectionOffsets[s];s++)n0?this.breakOffsets[s-1]:0,t===0)if(e<=r)n=s-1;else if(e>l)i=s+1;else break;else if(e=l)i=s+1;else break}let a=e-r;return s>0&&(a+=this.wrappedTextIndentLength),new UC(s,a)}normalizeOutputPosition(e,t,i){if(this.injectionOffsets!==null){const n=this.outputPositionToOffsetInInputWithInjections(e,t),s=this.normalizeOffsetInInputWithInjectionsAroundInjections(n,i);if(s!==n)return this.offsetInInputWithInjectionsToOutputPosition(s,i)}if(i===0){if(e>0&&t===this.getMinOutputOffset(e))return new UC(e-1,this.getMaxOutputOffset(e-1))}else if(i===1){const n=this.getOutputLineCount()-1;if(e0&&(t=Math.max(0,t-this.wrappedTextIndentLength)),(e>0?this.breakOffsets[e-1]:0)+t}normalizeOffsetInInputWithInjectionsAroundInjections(e,t){const i=this.getInjectedTextAtOffset(e);if(!i)return e;if(t===2){if(e===i.offsetInInputWithInjections+i.length&&k4(this.injectionOptions[i.injectedTextIndex].cursorStops))return i.offsetInInputWithInjections+i.length;{let n=i.offsetInInputWithInjections;if(I4(this.injectionOptions[i.injectedTextIndex].cursorStops))return n;let s=i.injectedTextIndex-1;for(;s>=0&&this.injectionOffsets[s]===this.injectionOffsets[i.injectedTextIndex]&&!(k4(this.injectionOptions[s].cursorStops)||(n-=this.injectionOptions[s].content.length,I4(this.injectionOptions[s].cursorStops)));)s--;return n}}else if(t===1||t===4){let n=i.offsetInInputWithInjections+i.length,s=i.injectedTextIndex;for(;s+1=0&&this.injectionOffsets[s-1]===this.injectionOffsets[s];)n-=this.injectionOptions[s-1].content.length,s--;return n}oL()}getInjectedText(e,t){const i=this.outputPositionToOffsetInInputWithInjections(e,t),n=this.getInjectedTextAtOffset(i);return n?{options:this.injectionOptions[n.injectedTextIndex]}:null}getInjectedTextAtOffset(e){const t=this.injectionOffsets,i=this.injectionOptions;if(t!==null){let n=0;for(let s=0;se)break;if(e<=l)return{injectedTextIndex:s,offsetInInputWithInjections:a,length:r};n+=r}}}}function k4(o){return o==null?!0:o===Ar.Right||o===Ar.Both}function I4(o){return o==null?!0:o===Ar.Left||o===Ar.Both}class UC{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e){return new F(e+this.outputLineIndex,this.outputOffset+1)}}class Gte{constructor(){this.changeType=1}}class Ta{static applyInjectedText(e,t){if(!t||t.length===0)return e;let i="",n=0;for(const s of t)i+=e.substring(n,s.column-1),n=s.column-1,i+=s.options.content;return i+=e.substring(n),i}static fromDecorations(e){const t=[];for(const i of e)i.options.before&&i.options.before.content.length>0&&t.push(new Ta(i.ownerId,i.range.startLineNumber,i.range.startColumn,i.options.before,0)),i.options.after&&i.options.after.content.length>0&&t.push(new Ta(i.ownerId,i.range.endLineNumber,i.range.endColumn,i.options.after,1));return t.sort((i,n)=>i.lineNumber===n.lineNumber?i.column===n.column?i.order-n.order:i.column-n.column:i.lineNumber-n.lineNumber),t}constructor(e,t,i,n,s){this.ownerId=e,this.lineNumber=t,this.column=i,this.options=n,this.order=s}}class E4{constructor(e,t,i){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=i}}class Zte{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class Yte{constructor(e,t,i,n){this.changeType=4,this.injectedTexts=n,this.fromLineNumber=e,this.toLineNumber=t,this.detail=i}}class Qte{constructor(){this.changeType=5}}class wm{constructor(e,t,i,n){this.changes=e,this.versionId=t,this.isUndoing=i,this.isRedoing=n,this.resultingSelection=null}containsEvent(e){for(let t=0,i=this.changes.length;to});class e2{static create(e){return new e2(new WeakRef(e))}constructor(e){this.targetWindow=e}createLineBreaksComputer(e,t,i,n,s){const r=[],a=[];return{addRequest:(l,d,c)=>{r.push(l),a.push(d)},finalize:()=>Xte(Hc(this.targetWindow.deref()),r,e,t,i,n,s,a)}}}function Xte(o,e,t,i,n,s,r,a){var l;function d(V){const P=a[V];if(P){const A=Ta.applyInjectedText(e[V],P),B=P.map(X=>X.options),j=P.map(X=>X.column-1);return new gv(j,B,[A.length],[],0)}else return null}if(n===-1){const V=[];for(let P=0,A=e.length;Pc?(A=0,B=0):j=c-ye}const X=P.substr(A),pe=Jte(X,B,i,j,p,g);_[V]=A,v[V]=B,b[V]=X,C[V]=pe[0],w[V]=pe[1]}const S=p.build(),L=(l=YD==null?void 0:YD.createHTML(S))!==null&&l!==void 0?l:S;f.innerHTML=L,f.style.position="absolute",f.style.top="10000",r==="keepAll"?(f.style.wordBreak="keep-all",f.style.overflowWrap="anywhere"):(f.style.wordBreak="inherit",f.style.overflowWrap="break-word"),o.document.body.appendChild(f);const D=document.createRange(),I=Array.prototype.slice.call(f.children,0),T=[];for(let V=0;VUe.options),Ee=fe.map(Ue=>Ue.column-1)):(ye=null,Ee=null),T[V]=new gv(Ee,ye,A,pe,j)}return o.document.body.removeChild(f),T}function Jte(o,e,t,i,n,s){if(s!==0){const u=String(s);n.appendString('
');const r=o.length;let a=e,l=0;const d=[],c=[];let h=0");for(let u=0;u"),d[u]=l,c[u]=a;const g=h;h=u+1"),d[o.length]=l,c[o.length]=a,n.appendString("
"),[d,c]}function eie(o,e,t,i){if(t.length<=1)return null;const n=Array.prototype.slice.call(e.children,0),s=[];try{aN(o,n,i,0,null,t.length-1,null,s)}catch(r){return console.log(r),null}return s.length===0?null:(s.push(t.length),s)}function aN(o,e,t,i,n,s,r,a){if(i===s||(n=n||QD(o,e,t[i],t[i+1]),r=r||QD(o,e,t[s],t[s+1]),Math.abs(n[0].top-r[0].top)<=.1))return;if(i+1===s){a.push(s);return}const l=i+(s-i)/2|0,d=QD(o,e,t[l],t[l+1]);aN(o,e,t,i,n,l,d,a),aN(o,e,t,l,d,s,r,a)}function QD(o,e,t,i){return o.setStart(e[t/16384|0].firstChild,t%16384),o.setEnd(e[i/16384|0].firstChild,i%16384),o.getClientRects()}class tie extends W{constructor(){super(),this._editor=null,this._instantiationService=null,this._instances=this._register(new XR),this._pending=new Map,this._finishedInstantiation=[],this._finishedInstantiation[0]=!1,this._finishedInstantiation[1]=!1,this._finishedInstantiation[2]=!1,this._finishedInstantiation[3]=!1}initialize(e,t,i){this._editor=e,this._instantiationService=i;for(const n of t){if(this._pending.has(n.id)){ze(new Error(`Cannot have two contributions with the same id ${n.id}`));continue}this._pending.set(n.id,n)}this._instantiateSome(0),this._register(E_(De(this._editor.getDomNode()),()=>{this._instantiateSome(1)})),this._register(E_(De(this._editor.getDomNode()),()=>{this._instantiateSome(2)})),this._register(E_(De(this._editor.getDomNode()),()=>{this._instantiateSome(3)},5e3))}saveViewState(){const e={};for(const[t,i]of this._instances)typeof i.saveViewState=="function"&&(e[t]=i.saveViewState());return e}restoreViewState(e){for(const[t,i]of this._instances)typeof i.restoreViewState=="function"&&i.restoreViewState(e[t])}get(e){return this._instantiateById(e),this._instances.get(e)||null}onBeforeInteractionEvent(){this._instantiateSome(2)}onAfterModelAttached(){var e;return E_(De((e=this._editor)===null||e===void 0?void 0:e.getDomNode()),()=>{this._instantiateSome(1)},50)}_instantiateSome(e){if(this._finishedInstantiation[e])return;this._finishedInstantiation[e]=!0;const t=this._findPendingContributionsByInstantiation(e);for(const i of t)this._instantiateById(i.id)}_findPendingContributionsByInstantiation(e){const t=[];for(const[,i]of this._pending)i.instantiation===e&&t.push(i);return t}_instantiateById(e){const t=this._pending.get(e);if(t){if(this._pending.delete(e),!this._instantiationService||!this._editor)throw new Error("Cannot instantiate contributions before being initialized!");try{const i=this._instantiationService.createInstance(t.ctor,this._editor);this._instances.set(t.id,i),typeof i.restoreViewState=="function"&&t.instantiation!==0&&console.warn(`Editor contribution '${t.id}' should be eager instantiated because it uses saveViewState / restoreViewState.`)}catch(i){ze(i)}}}}class E8{constructor(e,t,i,n,s,r,a){this.id=e,this.label=t,this.alias=i,this.metadata=n,this._precondition=s,this._run=r,this._contextKeyService=a}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(e){return this.isSupported()?this._run(e):Promise.resolve(void 0)}}function xh(o){let e=0,t=0,i=0,n=0;for(let s=0,r=o.length;s=Mo&&(t=t-o%Mo),t}function rie(o,e){return o.reduce((t,i)=>mi(t,e(i)),Ss)}function N8(o,e){return o===e}function fb(o,e){const t=o,i=e;if(i-t<=0)return Ss;const s=Math.floor(t/Mo),r=Math.floor(i/Mo),a=i-r*Mo;if(s===r){const l=t-s*Mo;return Pi(0,a-l)}else return Pi(r-s,a)}function Sm(o,e){return o=e}function Xf(o){return Pi(o.lineNumber-1,o.column-1)}function tg(o,e){const t=o,i=Math.floor(t/Mo),n=t-i*Mo,s=e,r=Math.floor(s/Mo),a=s-r*Mo;return new x(i+1,n+1,r+1,a+1)}function aie(o){const e=$l(o);return Pi(e.length-1,e[e.length-1].length)}class Fd{static fromModelContentChanges(e){return e.map(i=>{const n=x.lift(i.range);return new Fd(Xf(n.getStartPosition()),Xf(n.getEndPosition()),aie(i.text))}).reverse()}constructor(e,t,i){this.startOffset=e,this.endOffset=t,this.newLength=i}toString(){return`[${rr(this.startOffset)}...${rr(this.endOffset)}) -> ${rr(this.newLength)}`}}class lie{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map(t=>t2.from(t))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],i=t?this.translateOldToCur(t.offsetObj):null;return i===null?null:fb(e,i)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?Pi(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):Pi(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=rr(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?Pi(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):Pi(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx>5;if(n===0){const r=1<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));const e=this.lineIdx,t=this.lineCharOffset;let i=0;for(;;){const s=this.lineTokens,r=s.getCount();let a=null;if(this.lineTokenOffset1e3))break;if(i>1500)break}const n=sie(e,t,this.lineIdx,this.lineCharOffset);return new Oc(n,0,-1,$i.getEmpty(),new Au(n))}}class fie{constructor(e,t){this.text=e,this._offset=Ss,this.idx=0;const i=t.getRegExpStr(),n=i?new RegExp(i+`| +`,"gi"):null,s=[];let r,a=0,l=0,d=0,c=0;const h=[];for(let f=0;f<60;f++)h.push(new Oc(Pi(0,f),0,-1,$i.getEmpty(),new Au(Pi(0,f))));const u=[];for(let f=0;f<60;f++)u.push(new Oc(Pi(1,f),0,-1,$i.getEmpty(),new Au(Pi(1,f))));if(n)for(n.lastIndex=0;(r=n.exec(e))!==null;){const f=r.index,p=r[0];if(p===` +`)a++,l=f+1;else{if(d!==f){let _;if(c===a){const v=f-d;if(vmie(t)).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,i]of this.map)if(i.kind===2&&i.bracketIds.intersects(e))return t}get isEmpty(){return this.map.size===0}}function mie(o){let e=Oo(o);return/^[\w ]+/.test(o)&&(e=`\\b${e}`),/[\w ]+$/.test(o)&&(e=`${e}\\b`),e}class R8{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=s2.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function pie(o){if(o.length===0)return null;if(o.length===1)return o[0];let e=0;function t(){if(e>=o.length)return null;const r=e,a=o[r].listHeight;for(e++;e=2?A8(r===0&&e===o.length?o:o.slice(r,e),!1):o[r]}let i=t(),n=t();if(!n)return i;for(let r=t();r;r=t())M4(i,n)<=M4(n,r)?(i=XD(i,n),n=r):n=XD(n,r);return XD(i,n)}function A8(o,e=!1){if(o.length===0)return null;if(o.length===1)return o[0];let t=o.length;for(;t>3;){const i=t>>1;for(let n=0;n=3?o[2]:null,e)}function M4(o,e){return Math.abs(o.listHeight-e.listHeight)}function XD(o,e){return o.listHeight===e.listHeight?Pl.create23(o,e,null,!1):o.listHeight>e.listHeight?_ie(o,e):vie(e,o)}function _ie(o,e){o=o.toMutable();let t=o;const i=[];let n;for(;;){if(e.listHeight===t.listHeight){n=e;break}if(t.kind!==4)throw new Error("unexpected");i.push(t),t=t.makeLastElementMutable()}for(let s=i.length-1;s>=0;s--){const r=i[s];n?r.childrenLength>=3?n=Pl.create23(r.unappendChild(),n,null,!1):(r.appendChildOfSameHeight(n),n=void 0):r.handleChildrenChanged()}return n?Pl.create23(o,n,null,!1):o}function vie(o,e){o=o.toMutable();let t=o;const i=[];for(;e.listHeight!==t.listHeight;){if(t.kind!==4)throw new Error("unexpected");i.push(t),t=t.makeFirstElementMutable()}let n=e;for(let s=i.length-1;s>=0;s--){const r=i[s];n?r.childrenLength>=3?n=Pl.create23(n,r.unprependChild(),null,!1):(r.prependChildOfSameHeight(n),n=void 0):r.handleChildrenChanged()}return n?Pl.create23(n,o,null,!1):o}class bie{constructor(e){this.lastOffset=Ss,this.nextNodes=[e],this.offsets=[Ss],this.idxs=[]}readLongestNodeAt(e,t){if(Sm(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const i=d_(this.nextNodes);if(!i)return;const n=d_(this.offsets);if(Sm(e,n))return;if(Sm(n,e))if(mi(n,i.length)<=e)this.nextNodeAfterCurrent();else{const s=JD(i);s!==-1?(this.nextNodes.push(i.getChild(s)),this.offsets.push(n),this.idxs.push(s)):this.nextNodeAfterCurrent()}else{if(t(i))return this.nextNodeAfterCurrent(),i;{const s=JD(i);if(s===-1){this.nextNodeAfterCurrent();return}else this.nextNodes.push(i.getChild(s)),this.offsets.push(n),this.idxs.push(s)}}}}nextNodeAfterCurrent(){for(;;){const e=d_(this.offsets),t=d_(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),this.idxs.length===0)break;const i=d_(this.nextNodes),n=JD(i,this.idxs[this.idxs.length-1]);if(n!==-1){this.nextNodes.push(i.getChild(n)),this.offsets.push(mi(e,t.length)),this.idxs[this.idxs.length-1]=n;break}else this.idxs.pop()}}}function JD(o,e=-1){for(;;){if(e++,e>=o.childrenLength)return-1;if(o.getChild(e))return e}}function d_(o){return o.length>0?o[o.length-1]:void 0}function lN(o,e,t,i){return new Cie(o,e,t,i).parseDocument()}class Cie{constructor(e,t,i,n){if(this.tokenizer=e,this.createImmutableLists=n,this._itemsConstructed=0,this._itemsFromCache=0,i&&n)throw new Error("Not supported");this.oldNodeReader=i?new bie(i):void 0,this.positionMapper=new lie(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList($i.getEmpty(),0);return e||(e=Pl.getEmpty()),e}parseList(e,t){const i=[];for(;;){let s=this.tryReadChildFromCache(e);if(!s){const r=this.tokenizer.peek();if(!r||r.kind===2&&r.bracketIds.intersects(e))break;s=this.parseChild(e,t+1)}s.kind===4&&s.childrenLength===0||i.push(s)}return this.oldNodeReader?pie(i):A8(i,this.createImmutableLists)}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(t===null||!uS(t)){const i=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),n=>t!==null&&!Sm(n.length,t)?!1:n.canBeReused(e));if(i)return this._itemsFromCache++,this.tokenizer.skip(i.length),i}}}parseChild(e,t){this._itemsConstructed++;const i=this.tokenizer.read();switch(i.kind){case 2:return new uie(i.bracketIds,i.length);case 0:return i.astNode;case 1:{if(t>300)return new Au(i.length);const n=e.merge(i.bracketIds),s=this.parseList(n,t+1),r=this.tokenizer.peek();return r&&r.kind===2&&(r.bracketId===i.bracketId||r.bracketIds.intersects(i.bracketIds))?(this.tokenizer.read(),mb.create(i.astNode,s,r.astNode)):mb.create(i.astNode,s,null)}default:throw new Error("unexpected")}}}function mS(o,e){if(o.length===0)return e;if(e.length===0)return o;const t=new Zd(R4(o)),i=R4(e);i.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let n=t.dequeue();function s(d){if(d===void 0){const h=t.takeWhile(u=>!0)||[];return n&&h.unshift(n),h}const c=[];for(;n&&!uS(d);){const[h,u]=n.splitAt(d);c.push(h),d=fb(h.lengthAfter,d),n=u??t.dequeue()}return uS(d)||c.push(new Zc(!1,d,d)),c}const r=[];function a(d,c,h){if(r.length>0&&N8(r[r.length-1].endOffset,d)){const u=r[r.length-1];r[r.length-1]=new Fd(u.startOffset,c,mi(u.newLength,h))}else r.push({startOffset:d,endOffset:c,newLength:h})}let l=Ss;for(const d of i){const c=s(d.lengthBefore);if(d.modified){const h=rie(c,g=>g.lengthBefore),u=mi(l,h);a(l,u,d.lengthAfter),l=u}else for(const h of c){const u=l;l=mi(l,h.lengthBefore),h.modified&&a(u,l,h.lengthAfter)}}return r}class Zc{constructor(e,t,i){this.modified=e,this.lengthBefore=t,this.lengthAfter=i}splitAt(e){const t=fb(e,this.lengthAfter);return N8(t,Ss)?[this,void 0]:this.modified?[new Zc(this.modified,this.lengthBefore,e),new Zc(this.modified,Ss,t)]:[new Zc(this.modified,e,e),new Zc(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${rr(this.lengthBefore)} -> ${rr(this.lengthAfter)}`}}function R4(o){const e=[];let t=Ss;for(const i of o){const n=fb(t,i.startOffset);uS(n)||e.push(new Zc(!1,n,n));const s=fb(i.startOffset,i.endOffset);e.push(new Zc(!0,s,i.newLength)),t=i.endOffset}return e}class wie extends W{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new O,this.denseKeyProvider=new T8,this.brackets=new R8(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)e.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{const i=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),n=new fie(this.textModel.getValue(),i);this.initialAstWithoutTokens=lN(n,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(this.textModel.tokenization.backgroundTokenizationState===2){const e=this.initialAstWithoutTokens===void 0;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map(i=>new Fd(Pi(i.fromLineNumber-1,0),Pi(i.toLineNumber,0),Pi(i.toLineNumber-i.fromLineNumber+1,0)));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=Fd.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const i=mS(this.queuedTextEdits,e);this.queuedTextEdits=i,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=mS(this.queuedTextEditsForInitialAstWithoutTokens,e))}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(e,t,i){const n=t,s=new M8(this.textModel,this.brackets);return lN(s,e,n,i)}getBracketsInRange(e,t){this.flushQueue();const i=Pi(e.startLineNumber-1,e.startColumn-1),n=Pi(e.endLineNumber-1,e.endColumn-1);return new Ll(s=>{const r=this.initialAstWithoutTokens||this.astWithTokens;dN(r,Ss,r.length,i,n,s,0,0,new Map,t)})}getBracketPairsInRange(e,t){this.flushQueue();const i=Xf(e.getStartPosition()),n=Xf(e.getEndPosition());return new Ll(s=>{const r=this.initialAstWithoutTokens||this.astWithTokens,a=new Sie(s,t,this.textModel);cN(r,Ss,r.length,i,n,a,0,new Map)})}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return O8(t,Ss,t.length,Xf(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return P8(t,Ss,t.length,Xf(e))}}function P8(o,e,t,i){if(o.kind===4||o.kind===2){const n=[];for(const s of o.children)t=mi(e,s.length),n.push({nodeOffsetStart:e,nodeOffsetEnd:t}),e=t;for(let s=n.length-1;s>=0;s--){const{nodeOffsetStart:r,nodeOffsetEnd:a}=n[s];if(Sm(r,i)){const l=P8(o.children[s],r,a,i);if(l)return l}}return null}else{if(o.kind===3)return null;if(o.kind===1){const n=tg(e,t);return{bracketInfo:o.bracketInfo,range:n}}}return null}function O8(o,e,t,i){if(o.kind===4||o.kind===2){for(const n of o.children){if(t=mi(e,n.length),Sm(i,t)){const s=O8(n,e,t,i);if(s)return s}e=t}return null}else{if(o.kind===3)return null;if(o.kind===1){const n=tg(e,t);return{bracketInfo:o.bracketInfo,range:n}}}return null}function dN(o,e,t,i,n,s,r,a,l,d,c=!1){if(r>200)return!0;e:for(;;)switch(o.kind){case 4:{const h=o.childrenLength;for(let u=0;u200)return!0;let d=!0;if(o.kind===2){let c=0;if(a){let g=a.get(o.openingBracket.text);g===void 0&&(g=0),c=g,g++,a.set(o.openingBracket.text,g)}const h=mi(e,o.openingBracket.length);let u=-1;if(s.includeMinIndentation&&(u=o.computeMinIndentation(e,s.textModel)),d=s.push(new nie(tg(e,t),tg(e,h),o.closingBracket?tg(mi(h,((l=o.child)===null||l===void 0?void 0:l.length)||Ss),t):void 0,r,c,o,u)),e=h,d&&o.child){const g=o.child;if(t=mi(e,g.length),ym(e,n)&&H_(t,i)&&(d=cN(g,e,t,i,n,s,r+1,a),!d))return!1}a==null||a.set(o.openingBracket.text,c)}else{let c=e;for(const h of o.children){const u=c;if(c=mi(c,h.length),ym(u,n)&&ym(i,c)&&(d=cN(h,u,c,i,n,s,r,a),!d))return!1}}return d}class yie extends W{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new ln),this.onDidChangeEmitter=new O,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1,this._register(this.languageConfigurationService.onDidChange(i=>{var n;(!i.languageId||!((n=this.bracketPairsTree.value)===null||n===void 0)&&n.object.didLanguageChange(i.languageId))&&(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}))}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){var t;(t=this.bracketPairsTree.value)===null||t===void 0||t.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){var e;(e=this.bracketPairsTree.value)===null||e===void 0||e.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){var t;(t=this.bracketPairsTree.value)===null||t===void 0||t.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const e=new G;this.bracketPairsTree.value=Lie(e.add(new wie(this.textModel,t=>this.languageConfigurationService.getLanguageConfiguration(t))),e),e.add(this.bracketPairsTree.value.object.onDidChange(t=>this.onDidChangeEmitter.fire(t))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire())}getBracketPairsInRange(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getBracketPairsInRange(e,!1))||Ll.empty}getBracketPairsInRangeWithMinIndentation(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getBracketPairsInRange(e,!0))||Ll.empty}getBracketsInRange(e,t=!1){var i;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((i=this.bracketPairsTree.value)===null||i===void 0?void 0:i.object.getBracketsInRange(e,t))||Ll.empty}findMatchingBracketUp(e,t,i){const n=this.textModel.validatePosition(t),s=this.textModel.getLanguageIdAtPosition(n.lineNumber,n.column);if(this.canBuildAST){const r=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew.getClosingBracketInfo(e);if(!r)return null;const a=this.getBracketPairsInRange(x.fromPositions(t,t)).findLast(l=>r.closes(l.openingBracketInfo));return a?a.openingBracketRange:null}else{const r=e.toLowerCase(),a=this.languageConfigurationService.getLanguageConfiguration(s).brackets;if(!a)return null;const l=a.textIsBracket[r];return l?$C(this._findMatchingBracketUp(l,n,ek(i))):null}}matchBracket(e,t){if(this.canBuildAST){const i=this.getBracketPairsInRange(x.fromPositions(e,e)).filter(n=>n.closingBracketRange!==void 0&&(n.openingBracketRange.containsPosition(e)||n.closingBracketRange.containsPosition(e))).findLastMaxBy(zs(n=>n.openingBracketRange.containsPosition(e)?n.openingBracketRange:n.closingBracketRange,x.compareRangesUsingStarts));return i?[i.openingBracketRange,i.closingBracketRange]:null}else{const i=ek(t);return this._matchBracket(this.textModel.validatePosition(e),i)}}_establishBracketSearchOffsets(e,t,i,n){const s=t.getCount(),r=t.getLanguageId(n);let a=Math.max(0,e.column-1-i.maxBracketLength);for(let d=n-1;d>=0;d--){const c=t.getEndOffset(d);if(c<=a)break;if(Xa(t.getStandardTokenType(d))||t.getLanguageId(d)!==r){a=c;break}}let l=Math.min(t.getLineContent().length,e.column-1+i.maxBracketLength);for(let d=n+1;d=l)break;if(Xa(t.getStandardTokenType(d))||t.getLanguageId(d)!==r){l=c;break}}return{searchStartOffset:a,searchEndOffset:l}}_matchBracket(e,t){const i=e.lineNumber,n=this.textModel.tokenization.getLineTokens(i),s=this.textModel.getLineContent(i),r=n.findTokenIndexAtOffset(e.column-1);if(r<0)return null;const a=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(r)).brackets;if(a&&!Xa(n.getStandardTokenType(r))){let{searchStartOffset:l,searchEndOffset:d}=this._establishBracketSearchOffsets(e,n,a,r),c=null;for(;;){const h=xr.findNextBracketInRange(a.forwardRegex,i,s,l,d);if(!h)break;if(h.startColumn<=e.column&&e.column<=h.endColumn){const u=s.substring(h.startColumn-1,h.endColumn-1).toLowerCase(),g=this._matchFoundBracket(h,a.textIsBracket[u],a.textIsOpenBracket[u],t);if(g){if(g instanceof ud)return null;c=g}}l=h.endColumn-1}if(c)return c}if(r>0&&n.getStartOffset(r)===e.column-1){const l=r-1,d=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(l)).brackets;if(d&&!Xa(n.getStandardTokenType(l))){const{searchStartOffset:c,searchEndOffset:h}=this._establishBracketSearchOffsets(e,n,d,l),u=xr.findPrevBracketInRange(d.reversedRegex,i,s,c,h);if(u&&u.startColumn<=e.column&&e.column<=u.endColumn){const g=s.substring(u.startColumn-1,u.endColumn-1).toLowerCase(),f=this._matchFoundBracket(u,d.textIsBracket[g],d.textIsOpenBracket[g],t);if(f)return f instanceof ud?null:f}}}return null}_matchFoundBracket(e,t,i,n){if(!t)return null;const s=i?this._findMatchingBracketDown(t,e.getEndPosition(),n):this._findMatchingBracketUp(t,e.getStartPosition(),n);return s?s instanceof ud?s:[e,s]:null}_findMatchingBracketUp(e,t,i){const n=e.languageId,s=e.reversedRegex;let r=-1,a=0;const l=(d,c,h,u)=>{for(;;){if(i&&++a%100===0&&!i())return ud.INSTANCE;const g=xr.findPrevBracketInRange(s,d,c,h,u);if(!g)break;const f=c.substring(g.startColumn-1,g.endColumn-1).toLowerCase();if(e.isOpen(f)?r++:e.isClose(f)&&r--,r===0)return g;u=g.startColumn-1}return null};for(let d=t.lineNumber;d>=1;d--){const c=this.textModel.tokenization.getLineTokens(d),h=c.getCount(),u=this.textModel.getLineContent(d);let g=h-1,f=u.length,p=u.length;d===t.lineNumber&&(g=c.findTokenIndexAtOffset(t.column-1),f=t.column-1,p=t.column-1);let _=!0;for(;g>=0;g--){const v=c.getLanguageId(g)===n&&!Xa(c.getStandardTokenType(g));if(v)_?f=c.getStartOffset(g):(f=c.getStartOffset(g),p=c.getEndOffset(g));else if(_&&f!==p){const b=l(d,u,f,p);if(b)return b}_=v}if(_&&f!==p){const v=l(d,u,f,p);if(v)return v}}return null}_findMatchingBracketDown(e,t,i){const n=e.languageId,s=e.forwardRegex;let r=1,a=0;const l=(c,h,u,g)=>{for(;;){if(i&&++a%100===0&&!i())return ud.INSTANCE;const f=xr.findNextBracketInRange(s,c,h,u,g);if(!f)break;const p=h.substring(f.startColumn-1,f.endColumn-1).toLowerCase();if(e.isOpen(p)?r++:e.isClose(p)&&r--,r===0)return f;u=f.endColumn-1}return null},d=this.textModel.getLineCount();for(let c=t.lineNumber;c<=d;c++){const h=this.textModel.tokenization.getLineTokens(c),u=h.getCount(),g=this.textModel.getLineContent(c);let f=0,p=0,_=0;c===t.lineNumber&&(f=h.findTokenIndexAtOffset(t.column-1),p=t.column-1,_=t.column-1);let v=!0;for(;f=1;a--){const l=this.textModel.tokenization.getLineTokens(a),d=l.getCount(),c=this.textModel.getLineContent(a);let h=d-1,u=c.length,g=c.length;if(a===i.lineNumber){h=l.findTokenIndexAtOffset(i.column-1),u=i.column-1,g=i.column-1;const p=l.getLanguageId(h);n!==p&&(n=p,s=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let f=!0;for(;h>=0;h--){const p=l.getLanguageId(h);if(n!==p){if(s&&r&&f&&u!==g){const v=xr.findPrevBracketInRange(s.reversedRegex,a,c,u,g);if(v)return this._toFoundBracket(r,v);f=!1}n=p,s=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const _=!!s&&!Xa(l.getStandardTokenType(h));if(_)f?u=l.getStartOffset(h):(u=l.getStartOffset(h),g=l.getEndOffset(h));else if(r&&s&&f&&u!==g){const v=xr.findPrevBracketInRange(s.reversedRegex,a,c,u,g);if(v)return this._toFoundBracket(r,v)}f=_}if(r&&s&&f&&u!==g){const p=xr.findPrevBracketInRange(s.reversedRegex,a,c,u,g);if(p)return this._toFoundBracket(r,p)}}return null}findNextBracket(e){var t;const i=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getFirstBracketAfter(i))||null;const n=this.textModel.getLineCount();let s=null,r=null,a=null;for(let l=i.lineNumber;l<=n;l++){const d=this.textModel.tokenization.getLineTokens(l),c=d.getCount(),h=this.textModel.getLineContent(l);let u=0,g=0,f=0;if(l===i.lineNumber){u=d.findTokenIndexAtOffset(i.column-1),g=i.column-1,f=i.column-1;const _=d.getLanguageId(u);s!==_&&(s=_,r=this.languageConfigurationService.getLanguageConfiguration(s).brackets,a=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew)}let p=!0;for(;up.closingBracketRange!==void 0&&p.range.strictContainsRange(g));return f?[f.openingBracketRange,f.closingBracketRange]:null}const n=ek(t),s=this.textModel.getLineCount(),r=new Map;let a=[];const l=(g,f)=>{if(!r.has(g)){const p=[];for(let _=0,v=f?f.brackets.length:0;_{for(;;){if(n&&++d%100===0&&!n())return ud.INSTANCE;const b=xr.findNextBracketInRange(g.forwardRegex,f,p,_,v);if(!b)break;const C=p.substring(b.startColumn-1,b.endColumn-1).toLowerCase(),w=g.textIsBracket[C];if(w&&(w.isOpen(C)?a[w.index]++:w.isClose(C)&&a[w.index]--,a[w.index]===-1))return this._matchFoundBracket(b,w,!1,n);_=b.endColumn-1}return null};let h=null,u=null;for(let g=i.lineNumber;g<=s;g++){const f=this.textModel.tokenization.getLineTokens(g),p=f.getCount(),_=this.textModel.getLineContent(g);let v=0,b=0,C=0;if(g===i.lineNumber){v=f.findTokenIndexAtOffset(i.column-1),b=i.column-1,C=i.column-1;const S=f.getLanguageId(v);h!==S&&(h=S,u=this.languageConfigurationService.getLanguageConfiguration(h).brackets,l(h,u))}let w=!0;for(;ve==null?void 0:e.dispose()}}function ek(o){if(typeof o>"u")return()=>!0;{const e=Date.now();return()=>Date.now()-e<=o}}class ud{constructor(){this._searchCanceledBrand=void 0}}ud.INSTANCE=new ud;function $C(o){return o instanceof ud?null:o}class xie extends W{constructor(e){super(),this.textModel=e,this.colorProvider=new F8,this.onDidChangeEmitter=new O,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange(t=>{this.onDidChangeEmitter.fire()}))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i,n){return n?[]:t===void 0?[]:this.colorizationOptions.enabled?this.textModel.bracketPairs.getBracketsInRange(e,!0).map(r=>({id:`bracket${r.range.toString()}-${r.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(r,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:r.range})).toArray():[]}getAllDecorations(e,t){return e===void 0?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new x(1,1,this.textModel.getLineCount(),1),e,t):[]}}class F8{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return`bracket-highlighting-${e%30}`}}gr((o,e)=>{const t=[c8,h8,u8,g8,f8,m8],i=new F8;e.addRule(`.monaco-editor .${i.unexpectedClosingBracketClassName} { color: ${o.getColor(bee)}; }`);const n=t.map(s=>o.getColor(s)).filter(s=>!!s).filter(s=>!s.isTransparent());for(let s=0;s<30;s++){const r=n[s%n.length];e.addRule(`.monaco-editor .${i.getInlineClassNameOfLevel(s)} { color: ${r}; }`)}});function jC(o){return o.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class Mn{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(e,t,i,n){this.oldPosition=e,this.oldText=t,this.newPosition=i,this.newText=n}toString(){return this.oldText.length===0?`(insert@${this.oldPosition} "${jC(this.newText)}")`:this.newText.length===0?`(delete@${this.oldPosition} "${jC(this.oldText)}")`:`(replace@${this.oldPosition} "${jC(this.oldText)}" with "${jC(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,i){const n=t.length;na(e,n,i),i+=4;for(let s=0;so.length)return!1;if(t){if(!sA(o,e))return!1;if(e.length===o.length)return!0;let s=e.length;return e.charAt(e.length-1)===i&&s--,o.charAt(s)===i}return e.charAt(e.length-1)!==i&&(e+=i),o.indexOf(e)===0}function W8(o){return o>=65&&o<=90||o>=97&&o<=122}function Iie(o,e=Fn){return e?W8(o.charCodeAt(0))&&o.charCodeAt(1)===58:!1}function Ja(o){return Ww(o,!0)}class Eie{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:jv(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t?!0:!e||!t?!1:this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,i=!1){if(e.scheme===t.scheme){if(e.scheme===Oe.file)return hN(Ja(e),Ja(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(O4(e.authority,t.authority))return hN(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e,...t){return ke.joinPath(e,...t)}basenameOrAuthority(e){return cr(e)||e.authority}basename(e){return Wi.basename(e.path)}extname(e){return Wi.extname(e.path)}dirname(e){if(e.path.length===0)return e;let t;return e.scheme===Oe.file?t=ke.file(h9(Ja(e))).path:(t=Wi.dirname(e.path),e.authority&&t.length&&t.charCodeAt(0)!==47&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return e.scheme===Oe.file?t=ke.file(c9(Ja(e))).path:t=Wi.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!O4(e.authority,t.authority))return;if(e.scheme===Oe.file){const s=uK(Ja(e),Ja(t));return Fn?B8(s):s}let i=e.path||"/";const n=t.path||"/";if(this._ignorePathCasing(e)){let s=0;for(const r=Math.min(i.length,n.length);sA4(i).length&&i[i.length-1]===t}else{const i=e.path;return i.length>1&&i.charCodeAt(i.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=va){return F4(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=va){let i=!1;if(e.scheme===Oe.file){const n=Ja(e);i=n!==void 0&&n.length===A4(n).length&&n[n.length-1]===t}else{t="/";const n=e.path;i=n.length===1&&n.charCodeAt(n.length-1)===47}return!i&&!F4(e,t)?e.with({path:e.path+"/"}):e}}const ii=new Eie(()=>!1),o2=ii.isEqual.bind(ii);ii.isEqualOrParent.bind(ii);ii.getComparisonKey.bind(ii);const Nie=ii.basenameOrAuthority.bind(ii),cr=ii.basename.bind(ii),Tie=ii.extname.bind(ii),LL=ii.dirname.bind(ii),Mie=ii.joinPath.bind(ii),Rie=ii.normalizePath.bind(ii),Aie=ii.relativePath.bind(ii),P4=ii.resolvePath.bind(ii);ii.isAbsolutePath.bind(ii);const O4=ii.isEqualAuthority.bind(ii),F4=ii.hasTrailingPathSeparator.bind(ii);ii.removeTrailingPathSeparator.bind(ii);ii.addTrailingPathSeparator.bind(ii);var Dh;(function(o){o.META_DATA_LABEL="label",o.META_DATA_DESCRIPTION="description",o.META_DATA_SIZE="size",o.META_DATA_MIME="mime";function e(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(r=>{const[a,l]=r.split(":");a&&l&&i.set(a,l)});const s=t.path.substring(0,t.path.indexOf(";"));return s&&i.set(o.META_DATA_MIME,s),i}o.parseMetaData=e})(Dh||(Dh={}));function mf(o){return o.toString()}class hn{static create(e,t){const i=e.getAlternativeVersionId(),n=uN(e);return new hn(i,i,n,n,t,t,[])}constructor(e,t,i,n,s,r,a){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=i,this.afterEOL=n,this.beforeCursorState=s,this.afterCursorState=r,this.changes=a}append(e,t,i,n,s){t.length>0&&(this.changes=Die(this.changes,t)),this.afterEOL=i,this.afterVersionId=n,this.afterCursorState=s}static _writeSelectionsSize(e){return 4+4*4*(e?e.length:0)}static _writeSelections(e,t,i){if(na(e,t?t.length:0,i),i+=4,t)for(const n of t)na(e,n.selectionStartLineNumber,i),i+=4,na(e,n.selectionStartColumn,i),i+=4,na(e,n.positionLineNumber,i),i+=4,na(e,n.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){const n=ia(e,t);t+=4;for(let s=0;st.toString()).join(", ")}matchesResource(e){return(ke.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof hn}append(e,t,i,n,s){this._data instanceof hn&&this._data.append(e,t,i,n,s)}close(){this._data instanceof hn&&(this._data=this._data.serialize())}open(){this._data instanceof hn||(this._data=hn.deserialize(this._data))}undo(){if(ke.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof hn&&(this._data=this._data.serialize());const e=hn.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(ke.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof hn&&(this._data=this._data.serialize());const e=hn.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof hn&&(this._data=this._data.serialize()),this._data.byteLength+168}}class Pie{get resources(){return this._editStackElementsArr.map(e=>e.resource)}constructor(e,t,i){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=i.slice(0),this._editStackElementsMap=new Map;for(const n of this._editStackElementsArr){const s=mf(n.resource);this._editStackElementsMap.set(s,n)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=mf(e);return this._editStackElementsMap.has(t)}setModel(e){const t=mf(ke.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=mf(e.uri);return this._editStackElementsMap.has(t)?this._editStackElementsMap.get(t).canAppend(e):!1}append(e,t,i,n,s){const r=mf(e.uri);this._editStackElementsMap.get(r).append(e,t,i,n,s)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=mf(e);return this._editStackElementsMap.has(t)?this._editStackElementsMap.get(t).heapSize():0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${cr(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function uN(o){return o.getEOL()===` +`?0:1}function gd(o){return o?o instanceof H8||o instanceof Pie:!1}class r2{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);gd(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);gd(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const i=this._undoRedoService.getLastElement(this._model.uri);if(gd(i)&&i.canAppend(this._model))return i;const n=new H8(m("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(n,t),n}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],uN(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,i,n){const s=this._getOrCreateEditStackElement(e,n),r=this._model.applyEdits(t,!0),a=r2._computeCursorState(i,r),l=r.map((d,c)=>({index:c,textChange:d.textChange}));return l.sort((d,c)=>d.textChange.oldPosition===c.textChange.oldPosition?d.index-c.index:d.textChange.oldPosition-c.textChange.oldPosition),s.append(this._model,l.map(d=>d.textChange),uN(this._model),this._model.getAlternativeVersionId(),a),a}static _computeCursorState(e,t){try{return e?e(t):null}catch(i){return ze(i),null}}}class Oie{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function Fie(o,e,t,i,n){n.spacesDiff=0,n.looksLikeAlignment=!1;let s;for(s=0;s0&&a>0||l>0&&d>0)return;const c=Math.abs(a-d),h=Math.abs(r-l);if(c===0){n.spacesDiff=h,h>0&&0<=l-1&&l-10?n++:w>1&&s++,Fie(r,a,_,C,h),h.looksLikeAlignment&&!(t&&e===h.spacesDiff)))continue;const L=h.spacesDiff;L<=d&&c[L]++,r=_,a=C}let u=t;n!==s&&(u=n{const _=c[p];_>f&&(f=_,g=p)}),g===4&&c[4]>0&&c[2]>0&&c[2]>=c[4]/2&&(g=2)}return{insertSpaces:u,tabSize:g}}function Ps(o){return(o.metadata&1)>>>0}function Xt(o,e){o.metadata=o.metadata&254|e<<0}function On(o){return(o.metadata&2)>>>1===1}function Zt(o,e){o.metadata=o.metadata&253|(e?1:0)<<1}function V8(o){return(o.metadata&4)>>>2===1}function W4(o,e){o.metadata=o.metadata&251|(e?1:0)<<2}function z8(o){return(o.metadata&64)>>>6===1}function H4(o,e){o.metadata=o.metadata&191|(e?1:0)<<6}function Bie(o){return(o.metadata&24)>>>3}function V4(o,e){o.metadata=o.metadata&231|e<<3}function Wie(o){return(o.metadata&32)>>>5===1}function z4(o,e){o.metadata=o.metadata&223|(e?1:0)<<5}class U8{constructor(e,t,i){this.metadata=0,this.parent=this,this.left=this,this.right=this,Xt(this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,W4(this,!1),H4(this,!1),V4(this,1),z4(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,Zt(this,!1)}reset(e,t,i,n){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=n}setOptions(e){this.options=e;const t=this.options.className;W4(this,t==="squiggly-error"||t==="squiggly-warning"||t==="squiggly-info"),H4(this,this.options.glyphMarginClassName!==null),V4(this,this.options.stickiness),z4(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const tt=new U8(null,0,0);tt.parent=tt;tt.left=tt;tt.right=tt;Xt(tt,0);class tk{constructor(){this.root=tt,this.requestNormalizeDelta=!1}intervalSearch(e,t,i,n,s,r){return this.root===tt?[]:qie(this,e,t,i,n,s,r)}search(e,t,i,n){return this.root===tt?[]:Kie(this,e,t,i,n)}collectNodesFromOwner(e){return $ie(this,e)}collectNodesPostOrder(){return jie(this)}insert(e){U4(this,e),this._normalizeDeltaIfNecessary()}delete(e){$4(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const i=e;let n=0;for(;e!==this.root;)e===e.parent.right&&(n+=e.parent.delta),e=e.parent;const s=i.start+n,r=i.end+n;i.setCachedOffsets(s,r,t)}acceptReplace(e,t,i,n){const s=zie(this,e,e+t);for(let r=0,a=s.length;rt||i===1?!1:i===2?!0:e}function Vie(o,e,t,i,n){const s=Bie(o),r=s===0||s===2,a=s===1||s===2,l=t-e,d=i,c=Math.min(l,d),h=o.start;let u=!1;const g=o.end;let f=!1;e<=h&&g<=t&&Wie(o)&&(o.start=e,u=!0,o.end=e,f=!0);{const _=n?1:l>0?2:0;!u&&pf(h,r,e,_)&&(u=!0),!f&&pf(g,a,e,_)&&(f=!0)}if(c>0&&!n){const _=l>d?2:0;!u&&pf(h,r,e+c,_)&&(u=!0),!f&&pf(g,a,e+c,_)&&(f=!0)}{const _=n?1:0;!u&&pf(h,r,t,_)&&(o.start=e+d,u=!0),!f&&pf(g,a,t,_)&&(o.end=e+d,f=!0)}const p=d-l;u||(o.start=Math.max(0,h+p)),f||(o.end=Math.max(0,g+p)),o.start>o.end&&(o.end=o.start)}function zie(o,e,t){let i=o.root,n=0,s=0,r=0,a=0;const l=[];let d=0;for(;i!==tt;){if(On(i)){Zt(i.left,!1),Zt(i.right,!1),i===i.parent.right&&(n-=i.parent.delta),i=i.parent;continue}if(!On(i.left)){if(s=n+i.maxEnd,st){Zt(i,!0);continue}if(a=n+i.end,a>=e&&(i.setCachedOffsets(r,a,0),l[d++]=i),Zt(i,!0),i.right!==tt&&!On(i.right)){n+=i.delta,i=i.right;continue}}return Zt(o.root,!1),l}function Uie(o,e,t,i){let n=o.root,s=0,r=0,a=0;const l=i-(t-e);for(;n!==tt;){if(On(n)){Zt(n.left,!1),Zt(n.right,!1),n===n.parent.right&&(s-=n.parent.delta),kh(n),n=n.parent;continue}if(!On(n.left)){if(r=s+n.maxEnd,rt){n.start+=l,n.end+=l,n.delta+=l,(n.delta<-1073741824||n.delta>1073741824)&&(o.requestNormalizeDelta=!0),Zt(n,!0);continue}if(Zt(n,!0),n.right!==tt&&!On(n.right)){s+=n.delta,n=n.right;continue}}Zt(o.root,!1)}function $ie(o,e){let t=o.root;const i=[];let n=0;for(;t!==tt;){if(On(t)){Zt(t.left,!1),Zt(t.right,!1),t=t.parent;continue}if(t.left!==tt&&!On(t.left)){t=t.left;continue}if(t.ownerId===e&&(i[n++]=t),Zt(t,!0),t.right!==tt&&!On(t.right)){t=t.right;continue}}return Zt(o.root,!1),i}function jie(o){let e=o.root;const t=[];let i=0;for(;e!==tt;){if(On(e)){Zt(e.left,!1),Zt(e.right,!1),e=e.parent;continue}if(e.left!==tt&&!On(e.left)){e=e.left;continue}if(e.right!==tt&&!On(e.right)){e=e.right;continue}t[i++]=e,Zt(e,!0)}return Zt(o.root,!1),t}function Kie(o,e,t,i,n){let s=o.root,r=0,a=0,l=0;const d=[];let c=0;for(;s!==tt;){if(On(s)){Zt(s.left,!1),Zt(s.right,!1),s===s.parent.right&&(r-=s.parent.delta),s=s.parent;continue}if(s.left!==tt&&!On(s.left)){s=s.left;continue}a=r+s.start,l=r+s.end,s.setCachedOffsets(a,l,i);let h=!0;if(e&&s.ownerId&&s.ownerId!==e&&(h=!1),t&&V8(s)&&(h=!1),n&&!z8(s)&&(h=!1),h&&(d[c++]=s),Zt(s,!0),s.right!==tt&&!On(s.right)){r+=s.delta,s=s.right;continue}}return Zt(o.root,!1),d}function qie(o,e,t,i,n,s,r){let a=o.root,l=0,d=0,c=0,h=0;const u=[];let g=0;for(;a!==tt;){if(On(a)){Zt(a.left,!1),Zt(a.right,!1),a===a.parent.right&&(l-=a.parent.delta),a=a.parent;continue}if(!On(a.left)){if(d=l+a.maxEnd,dt){Zt(a,!0);continue}if(h=l+a.end,h>=e){a.setCachedOffsets(c,h,s);let f=!0;i&&a.ownerId&&a.ownerId!==i&&(f=!1),n&&V8(a)&&(f=!1),r&&!z8(a)&&(f=!1),f&&(u[g++]=a)}if(Zt(a,!0),a.right!==tt&&!On(a.right)){l+=a.delta,a=a.right;continue}}return Zt(o.root,!1),u}function U4(o,e){if(o.root===tt)return e.parent=tt,e.left=tt,e.right=tt,Xt(e,0),o.root=e,o.root;Gie(o,e),Dc(e.parent);let t=e;for(;t!==o.root&&Ps(t.parent)===1;)if(t.parent===t.parent.parent.left){const i=t.parent.parent.right;Ps(i)===1?(Xt(t.parent,0),Xt(i,0),Xt(t.parent.parent,1),t=t.parent.parent):(t===t.parent.right&&(t=t.parent,fv(o,t)),Xt(t.parent,0),Xt(t.parent.parent,1),mv(o,t.parent.parent))}else{const i=t.parent.parent.left;Ps(i)===1?(Xt(t.parent,0),Xt(i,0),Xt(t.parent.parent,1),t=t.parent.parent):(t===t.parent.left&&(t=t.parent,mv(o,t)),Xt(t.parent,0),Xt(t.parent.parent,1),fv(o,t.parent.parent))}return Xt(o.root,0),e}function Gie(o,e){let t=0,i=o.root;const n=e.start,s=e.end;for(;;)if(Yie(n,s,i.start+t,i.end+t)<0)if(i.left===tt){e.start-=t,e.end-=t,e.maxEnd-=t,i.left=e;break}else i=i.left;else if(i.right===tt){e.start-=t+i.delta,e.end-=t+i.delta,e.maxEnd-=t+i.delta,i.right=e;break}else t+=i.delta,i=i.right;e.parent=i,e.left=tt,e.right=tt,Xt(e,1)}function $4(o,e){let t,i;if(e.left===tt?(t=e.right,i=e,t.delta+=e.delta,(t.delta<-1073741824||t.delta>1073741824)&&(o.requestNormalizeDelta=!0),t.start+=e.delta,t.end+=e.delta):e.right===tt?(t=e.left,i=e):(i=Zie(e.right),t=i.right,t.start+=i.delta,t.end+=i.delta,t.delta+=i.delta,(t.delta<-1073741824||t.delta>1073741824)&&(o.requestNormalizeDelta=!0),i.start+=e.delta,i.end+=e.delta,i.delta=e.delta,(i.delta<-1073741824||i.delta>1073741824)&&(o.requestNormalizeDelta=!0)),i===o.root){o.root=t,Xt(t,0),e.detach(),ik(),kh(t),o.root.parent=tt;return}const n=Ps(i)===1;if(i===i.parent.left?i.parent.left=t:i.parent.right=t,i===e?t.parent=i.parent:(i.parent===e?t.parent=i:t.parent=i.parent,i.left=e.left,i.right=e.right,i.parent=e.parent,Xt(i,Ps(e)),e===o.root?o.root=i:e===e.parent.left?e.parent.left=i:e.parent.right=i,i.left!==tt&&(i.left.parent=i),i.right!==tt&&(i.right.parent=i)),e.detach(),n){Dc(t.parent),i!==e&&(Dc(i),Dc(i.parent)),ik();return}Dc(t),Dc(t.parent),i!==e&&(Dc(i),Dc(i.parent));let s;for(;t!==o.root&&Ps(t)===0;)t===t.parent.left?(s=t.parent.right,Ps(s)===1&&(Xt(s,0),Xt(t.parent,1),fv(o,t.parent),s=t.parent.right),Ps(s.left)===0&&Ps(s.right)===0?(Xt(s,1),t=t.parent):(Ps(s.right)===0&&(Xt(s.left,0),Xt(s,1),mv(o,s),s=t.parent.right),Xt(s,Ps(t.parent)),Xt(t.parent,0),Xt(s.right,0),fv(o,t.parent),t=o.root)):(s=t.parent.left,Ps(s)===1&&(Xt(s,0),Xt(t.parent,1),mv(o,t.parent),s=t.parent.left),Ps(s.left)===0&&Ps(s.right)===0?(Xt(s,1),t=t.parent):(Ps(s.left)===0&&(Xt(s.right,0),Xt(s,1),fv(o,s),s=t.parent.left),Xt(s,Ps(t.parent)),Xt(t.parent,0),Xt(s.left,0),mv(o,t.parent),t=o.root));Xt(t,0),ik()}function Zie(o){for(;o.left!==tt;)o=o.left;return o}function ik(){tt.parent=tt,tt.delta=0,tt.start=0,tt.end=0}function fv(o,e){const t=e.right;t.delta+=e.delta,(t.delta<-1073741824||t.delta>1073741824)&&(o.requestNormalizeDelta=!0),t.start+=e.delta,t.end+=e.delta,e.right=t.left,t.left!==tt&&(t.left.parent=e),t.parent=e.parent,e.parent===tt?o.root=t:e===e.parent.left?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t,kh(e),kh(t)}function mv(o,e){const t=e.left;e.delta-=t.delta,(e.delta<-1073741824||e.delta>1073741824)&&(o.requestNormalizeDelta=!0),e.start-=t.delta,e.end-=t.delta,e.left=t.right,t.right!==tt&&(t.right.parent=e),t.parent=e.parent,e.parent===tt?o.root=t:e===e.parent.right?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t,kh(e),kh(t)}function $8(o){let e=o.end;if(o.left!==tt){const t=o.left.maxEnd;t>e&&(e=t)}if(o.right!==tt){const t=o.right.maxEnd+o.delta;t>e&&(e=t)}return e}function kh(o){o.maxEnd=$8(o)}function Dc(o){for(;o!==tt;){const e=$8(o);if(o.maxEnd===e)return;o.maxEnd=e,o=o.parent}}function Yie(o,e,t,i){return o===t?e-i:o-t}class gN{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==Ke)return a2(this.right);let e=this;for(;e.parent!==Ke&&e.parent.left!==e;)e=e.parent;return e.parent===Ke?Ke:e.parent}prev(){if(this.left!==Ke)return j8(this.left);let e=this;for(;e.parent!==Ke&&e.parent.right!==e;)e=e.parent;return e.parent===Ke?Ke:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const Ke=new gN(null,0);Ke.parent=Ke;Ke.left=Ke;Ke.right=Ke;Ke.color=0;function a2(o){for(;o.left!==Ke;)o=o.left;return o}function j8(o){for(;o.right!==Ke;)o=o.right;return o}function l2(o){return o===Ke?0:o.size_left+o.piece.length+l2(o.right)}function d2(o){return o===Ke?0:o.lf_left+o.piece.lineFeedCnt+d2(o.right)}function nk(){Ke.parent=Ke}function pv(o,e){const t=e.right;t.size_left+=e.size_left+(e.piece?e.piece.length:0),t.lf_left+=e.lf_left+(e.piece?e.piece.lineFeedCnt:0),e.right=t.left,t.left!==Ke&&(t.left.parent=e),t.parent=e.parent,e.parent===Ke?o.root=t:e.parent.left===e?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t}function _v(o,e){const t=e.left;e.left=t.right,t.right!==Ke&&(t.right.parent=e),t.parent=e.parent,e.size_left-=t.size_left+(t.piece?t.piece.length:0),e.lf_left-=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),e.parent===Ke?o.root=t:e===e.parent.right?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t}function KC(o,e){let t,i;if(e.left===Ke?(i=e,t=i.right):e.right===Ke?(i=e,t=i.left):(i=a2(e.right),t=i.right),i===o.root){o.root=t,t.color=0,e.detach(),nk(),o.root.parent=Ke;return}const n=i.color===1;if(i===i.parent.left?i.parent.left=t:i.parent.right=t,i===e?(t.parent=i.parent,V_(o,t)):(i.parent===e?t.parent=i:t.parent=i.parent,V_(o,t),i.left=e.left,i.right=e.right,i.parent=e.parent,i.color=e.color,e===o.root?o.root=i:e===e.parent.left?e.parent.left=i:e.parent.right=i,i.left!==Ke&&(i.left.parent=i),i.right!==Ke&&(i.right.parent=i),i.size_left=e.size_left,i.lf_left=e.lf_left,V_(o,i)),e.detach(),t.parent.left===t){const r=l2(t),a=d2(t);if(r!==t.parent.size_left||a!==t.parent.lf_left){const l=r-t.parent.size_left,d=a-t.parent.lf_left;t.parent.size_left=r,t.parent.lf_left=a,rd(o,t.parent,l,d)}}if(V_(o,t.parent),n){nk();return}let s;for(;t!==o.root&&t.color===0;)t===t.parent.left?(s=t.parent.right,s.color===1&&(s.color=0,t.parent.color=1,pv(o,t.parent),s=t.parent.right),s.left.color===0&&s.right.color===0?(s.color=1,t=t.parent):(s.right.color===0&&(s.left.color=0,s.color=1,_v(o,s),s=t.parent.right),s.color=t.parent.color,t.parent.color=0,s.right.color=0,pv(o,t.parent),t=o.root)):(s=t.parent.left,s.color===1&&(s.color=0,t.parent.color=1,_v(o,t.parent),s=t.parent.left),s.left.color===0&&s.right.color===0?(s.color=1,t=t.parent):(s.left.color===0&&(s.right.color=0,s.color=1,pv(o,s),s=t.parent.left),s.color=t.parent.color,t.parent.color=0,s.left.color=0,_v(o,t.parent),t=o.root));t.color=0,nk()}function j4(o,e){for(V_(o,e);e!==o.root&&e.parent.color===1;)if(e.parent===e.parent.parent.left){const t=e.parent.parent.right;t.color===1?(e.parent.color=0,t.color=0,e.parent.parent.color=1,e=e.parent.parent):(e===e.parent.right&&(e=e.parent,pv(o,e)),e.parent.color=0,e.parent.parent.color=1,_v(o,e.parent.parent))}else{const t=e.parent.parent.left;t.color===1?(e.parent.color=0,t.color=0,e.parent.parent.color=1,e=e.parent.parent):(e===e.parent.left&&(e=e.parent,_v(o,e)),e.parent.color=0,e.parent.parent.color=1,pv(o,e.parent.parent))}o.root.color=0}function rd(o,e,t,i){for(;e!==o.root&&e!==Ke;)e.parent.left===e&&(e.parent.size_left+=t,e.parent.lf_left+=i),e=e.parent}function V_(o,e){let t=0,i=0;if(e!==o.root){for(;e!==o.root&&e===e.parent.right;)e=e.parent;if(e!==o.root)for(e=e.parent,t=l2(e.left)-e.size_left,i=d2(e.left)-e.lf_left,e.size_left+=t,e.lf_left+=i;e!==o.root&&(t!==0||i!==0);)e.parent.left===e&&(e.parent.size_left+=t,e.parent.lf_left+=i),e=e.parent}}const Xl=65535;function K8(o){let e;return o[o.length-1]<65536?e=new Uint16Array(o.length):e=new Uint32Array(o.length),e.set(o,0),e}class Qie{constructor(e,t,i,n,s){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=n,this.isBasicASCII=s}}function ad(o,e=!0){const t=[0];let i=1;for(let n=0,s=o.length;n126)&&(r=!1)}const a=new Qie(K8(o),i,n,s,r);return o.length=0,a}class Zs{constructor(e,t,i,n,s){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=n,this.length=s}}class Pu{constructor(e,t){this.buffer=e,this.lineStarts=t}}class Jie{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==Ke&&e.iterate(e.root,i=>(i!==Ke&&this._pieces.push(i.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++])}}class ene{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const i=this._cache;for(let n=0;n=e){i[n]=null,t=!0;continue}}if(t){const n=[];for(const s of i)s!==null&&n.push(s);this._cache=n}}}class tne{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new Pu("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=Ke,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let n=null;for(let s=0,r=e.length;s0){e[s].lineStarts||(e[s].lineStarts=ad(e[s].buffer));const a=new Zs(s+1,{line:0,column:0},{line:e[s].lineStarts.length-1,column:e[s].buffer.length-e[s].lineStarts[e[s].lineStarts.length-1]},e[s].lineStarts.length-1,e[s].buffer.length);this._buffers.push(e[s]),n=this.rbInsertRight(n,a)}this._searchCache=new ene(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=Xl,i=t-Math.floor(t/3),n=i*2;let s="",r=0;const a=[];if(this.iterate(this.root,l=>{const d=this.getNodeContent(l),c=d.length;if(r<=i||r+c0){const l=s.replace(/\r\n|\r|\n/g,e);a.push(new Pu(l,ad(l)))}this.create(a,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new Jie(this,e)}getOffsetAt(e,t){let i=0,n=this.root;for(;n!==Ke;)if(n.left!==Ke&&n.lf_left+1>=e)n=n.left;else if(n.lf_left+n.piece.lineFeedCnt+1>=e){i+=n.size_left;const s=this.getAccumulatedValue(n,e-n.lf_left-2);return i+=s+t-1}else e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right;return i}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,i=0;const n=e;for(;t!==Ke;)if(t.size_left!==0&&t.size_left>=e)t=t.left;else if(t.size_left+t.piece.length>=e){const s=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+s.index,s.index===0){const r=this.getOffsetAt(i+1,1),a=n-r;return new F(i+1,a+1)}return new F(i+1,s.remainder+1)}else if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===Ke){const s=this.getOffsetAt(i+1,1),r=n-e-s;return new F(i+1,r+1)}else t=t.right;return new F(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const i=this.nodeAt2(e.startLineNumber,e.startColumn),n=this.nodeAt2(e.endLineNumber,e.endColumn),s=this.getValueInRange2(i,n);return t?t!==this._EOL||!this._EOLNormalized?s.replace(/\r\n|\r|\n/g,t):t===this.getEOL()&&this._EOLNormalized?s:s.replace(/\r\n|\r|\n/g,t):s}getValueInRange2(e,t){if(e.node===t.node){const a=e.node,l=this._buffers[a.piece.bufferIndex].buffer,d=this.offsetInBuffer(a.piece.bufferIndex,a.piece.start);return l.substring(d+e.remainder,d+t.remainder)}let i=e.node;const n=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);let r=n.substring(s+e.remainder,s+i.piece.length);for(i=i.next();i!==Ke;){const a=this._buffers[i.piece.bufferIndex].buffer,l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){r+=a.substring(l,l+t.remainder);break}else r+=a.substr(l,i.piece.length);i=i.next()}return r}getLinesContent(){const e=[];let t=0,i="",n=!1;return this.iterate(this.root,s=>{if(s===Ke)return!0;const r=s.piece;let a=r.length;if(a===0)return!0;const l=this._buffers[r.bufferIndex].buffer,d=this._buffers[r.bufferIndex].lineStarts,c=r.start.line,h=r.end.line;let u=d[c]+r.start.column;if(n&&(l.charCodeAt(u)===10&&(u++,a--),e[t++]=i,i="",n=!1,a===0))return!0;if(c===h)return!this._EOLNormalized&&l.charCodeAt(u+a-1)===13?(n=!0,i+=l.substr(u,a-1)):i+=l.substr(u,a),!0;i+=this._EOLNormalized?l.substring(u,Math.max(u,d[c+1]-this._EOLLength)):l.substring(u,d[c+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let g=c+1;gw+f,t.reset(0)):(b=u.buffer,C=w=>w,t.reset(f));do if(_=t.next(b),_){if(C(_.index)>=p)return c;this.positionInBuffer(e,C(_.index)-g,v);const w=this.getLineFeedCnt(e.piece.bufferIndex,s,v),S=v.line===s.line?v.column-s.column+n:v.column+1,L=S+_[0].length;if(h[c++]=Iu(new x(i+w,S,i+w,L),_,l),C(_.index)+_[0].length>=p||c>=d)return c}while(_);return c}findMatchesLineByLine(e,t,i,n){const s=[];let r=0;const a=new Vf(t.wordSeparators,t.regex);let l=this.nodeAt2(e.startLineNumber,e.startColumn);if(l===null)return[];const d=this.nodeAt2(e.endLineNumber,e.endColumn);if(d===null)return[];let c=this.positionInBuffer(l.node,l.remainder);const h=this.positionInBuffer(d.node,d.remainder);if(l.node===d.node)return this.findMatchesInNode(l.node,a,e.startLineNumber,e.startColumn,c,h,t,i,n,r,s),s;let u=e.startLineNumber,g=l.node;for(;g!==d.node;){const p=this.getLineFeedCnt(g.piece.bufferIndex,c,g.piece.end);if(p>=1){const v=this._buffers[g.piece.bufferIndex].lineStarts,b=this.offsetInBuffer(g.piece.bufferIndex,g.piece.start),C=v[c.line+p],w=u===e.startLineNumber?e.startColumn:1;if(r=this.findMatchesInNode(g,a,u,w,c,this.positionInBuffer(g,C-b),t,i,n,r,s),r>=n)return s;u+=p}const _=u===e.startLineNumber?e.startColumn-1:0;if(u===e.endLineNumber){const v=this.getLineContent(u).substring(_,e.endColumn-1);return r=this._findMatchesInLine(t,a,v,e.endLineNumber,_,r,s,i,n),s}if(r=this._findMatchesInLine(t,a,this.getLineContent(u).substr(_),u,_,r,s,i,n),r>=n)return s;u++,l=this.nodeAt2(u,1),g=l.node,c=this.positionInBuffer(l.node,l.remainder)}if(u===e.endLineNumber){const p=u===e.startLineNumber?e.startColumn-1:0,_=this.getLineContent(u).substring(p,e.endColumn-1);return r=this._findMatchesInLine(t,a,_,e.endLineNumber,p,r,s,i,n),s}const f=u===e.startLineNumber?e.startColumn:1;return r=this.findMatchesInNode(d.node,a,u,f,c,h,t,i,n,r,s),s}_findMatchesInLine(e,t,i,n,s,r,a,l,d){const c=e.wordSeparators;if(!l&&e.simpleSearch){const u=e.simpleSearch,g=u.length,f=i.length;let p=-g;for(;(p=i.indexOf(u,p+g))!==-1;)if((!c||xA(c,i,f,p,g))&&(a[r++]=new Yv(new x(n,p+1+s,n,p+1+g+s),null),r>=d))return r;return r}let h;t.reset(0);do if(h=t.next(i),h&&(a[r++]=Iu(new x(n,h.index+1+s,n,h.index+1+h[0].length+s),h,l),r>=d))return r;while(h);return r}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==Ke){const{node:n,remainder:s,nodeStartOffset:r}=this.nodeAt(e),a=n.piece,l=a.bufferIndex,d=this.positionInBuffer(n,s);if(n.piece.bufferIndex===0&&a.end.line===this._lastChangeBufferPos.line&&a.end.column===this._lastChangeBufferPos.column&&r+a.length===e&&t.lengthe){const c=[];let h=new Zs(a.bufferIndex,d,a.end,this.getLineFeedCnt(a.bufferIndex,d,a.end),this.offsetInBuffer(l,a.end)-this.offsetInBuffer(l,d));if(this.shouldCheckCRLF()&&this.endWithCR(t)&&this.nodeCharCodeAt(n,s)===10){const p={line:h.start.line+1,column:0};h=new Zs(h.bufferIndex,p,h.end,this.getLineFeedCnt(h.bufferIndex,p,h.end),h.length-1),t+=` +`}if(this.shouldCheckCRLF()&&this.startWithLF(t))if(this.nodeCharCodeAt(n,s-1)===13){const p=this.positionInBuffer(n,s-1);this.deleteNodeTail(n,p),t="\r"+t,n.piece.length===0&&c.push(n)}else this.deleteNodeTail(n,d);else this.deleteNodeTail(n,d);const u=this.createNewPieces(t);h.length>0&&this.rbInsertRight(n,h);let g=n;for(let f=0;f=0;r--)s=this.rbInsertLeft(s,n[r]);this.validateCRLFWithPrevNode(s),this.deleteNodes(i)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+=` +`);const i=this.createNewPieces(e),n=this.rbInsertRight(t,i[0]);let s=n;for(let r=1;r=u)d=h+1;else break;return i?(i.line=h,i.column=l-g,null):{line:h,column:l-g}}getLineFeedCnt(e,t,i){if(i.column===0)return i.line-t.line;const n=this._buffers[e].lineStarts;if(i.line===n.length-1)return i.line-t.line;const s=n[i.line+1],r=n[i.line]+i.column;if(s>r+1)return i.line-t.line;const a=r-1;return this._buffers[e].buffer.charCodeAt(a)===13?i.line-t.line+1:i.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;tXl){const c=[];for(;e.length>Xl;){const u=e.charCodeAt(Xl-1);let g;u===13||u>=55296&&u<=56319?(g=e.substring(0,Xl-1),e=e.substring(Xl-1)):(g=e.substring(0,Xl),e=e.substring(Xl));const f=ad(g);c.push(new Zs(this._buffers.length,{line:0,column:0},{line:f.length-1,column:g.length-f[f.length-1]},f.length-1,g.length)),this._buffers.push(new Pu(g,f))}const h=ad(e);return c.push(new Zs(this._buffers.length,{line:0,column:0},{line:h.length-1,column:e.length-h[h.length-1]},h.length-1,e.length)),this._buffers.push(new Pu(e,h)),c}let t=this._buffers[0].buffer.length;const i=ad(e,!1);let n=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&t!==0&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},n=this._lastChangeBufferPos;for(let c=0;c=e-1)i=i.left;else if(i.lf_left+i.piece.lineFeedCnt>e-1){const l=this.getAccumulatedValue(i,e-i.lf_left-2),d=this.getAccumulatedValue(i,e-i.lf_left-1),c=this._buffers[i.piece.bufferIndex].buffer,h=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return r+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:r,nodeStartLineNumber:a-(e-1-i.lf_left)}),c.substring(h+l,h+d-t)}else if(i.lf_left+i.piece.lineFeedCnt===e-1){const l=this.getAccumulatedValue(i,e-i.lf_left-2),d=this._buffers[i.piece.bufferIndex].buffer,c=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n=d.substring(c+l,c+i.piece.length);break}else e-=i.lf_left+i.piece.lineFeedCnt,r+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==Ke;){const r=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){const a=this.getAccumulatedValue(i,0),l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n+=r.substring(l,l+a-t),n}else{const a=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n+=r.substr(a,i.piece.length)}i=i.next()}return n}computeBufferMetadata(){let e=this.root,t=1,i=0;for(;e!==Ke;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.validate(this._length)}getIndexOf(e,t){const i=e.piece,n=this.positionInBuffer(e,t),s=n.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){const r=this.getLineFeedCnt(e.piece.bufferIndex,i.start,n);if(r!==s)return{index:r,remainder:0}}return{index:s,remainder:n.column}}getAccumulatedValue(e,t){if(t<0)return 0;const i=e.piece,n=this._buffers[i.bufferIndex].lineStarts,s=i.start.line+t+1;return s>i.end.line?n[i.end.line]+i.end.column-n[i.start.line]-i.start.column:n[s]-n[i.start.line]-i.start.column}deleteNodeTail(e,t){const i=e.piece,n=i.lineFeedCnt,s=this.offsetInBuffer(i.bufferIndex,i.end),r=t,a=this.offsetInBuffer(i.bufferIndex,r),l=this.getLineFeedCnt(i.bufferIndex,i.start,r),d=l-n,c=a-s,h=i.length+c;e.piece=new Zs(i.bufferIndex,i.start,r,l,h),rd(this,e,c,d)}deleteNodeHead(e,t){const i=e.piece,n=i.lineFeedCnt,s=this.offsetInBuffer(i.bufferIndex,i.start),r=t,a=this.getLineFeedCnt(i.bufferIndex,r,i.end),l=this.offsetInBuffer(i.bufferIndex,r),d=a-n,c=s-l,h=i.length+c;e.piece=new Zs(i.bufferIndex,r,i.end,a,h),rd(this,e,c,d)}shrinkNode(e,t,i){const n=e.piece,s=n.start,r=n.end,a=n.length,l=n.lineFeedCnt,d=t,c=this.getLineFeedCnt(n.bufferIndex,n.start,d),h=this.offsetInBuffer(n.bufferIndex,t)-this.offsetInBuffer(n.bufferIndex,s);e.piece=new Zs(n.bufferIndex,n.start,d,c,h),rd(this,e,h-a,c-l);const u=new Zs(n.bufferIndex,i,r,this.getLineFeedCnt(n.bufferIndex,i,r),this.offsetInBuffer(n.bufferIndex,r)-this.offsetInBuffer(n.bufferIndex,i)),g=this.rbInsertRight(e,u);this.validateCRLFWithPrevNode(g)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+=` +`);const i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),n=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const s=ad(t,!1);for(let g=0;ge)t=t.left;else if(t.size_left+t.piece.length>=e){n+=t.size_left;const s={node:t,remainder:e-t.size_left,nodeStartOffset:n};return this._searchCache.set(s),s}else e-=t.size_left+t.piece.length,n+=t.size_left+t.piece.length,t=t.right;return null}nodeAt2(e,t){let i=this.root,n=0;for(;i!==Ke;)if(i.left!==Ke&&i.lf_left>=e-1)i=i.left;else if(i.lf_left+i.piece.lineFeedCnt>e-1){const s=this.getAccumulatedValue(i,e-i.lf_left-2),r=this.getAccumulatedValue(i,e-i.lf_left-1);return n+=i.size_left,{node:i,remainder:Math.min(s+t-1,r),nodeStartOffset:n}}else if(i.lf_left+i.piece.lineFeedCnt===e-1){const s=this.getAccumulatedValue(i,e-i.lf_left-2);if(s+t-1<=i.piece.length)return{node:i,remainder:s+t-1,nodeStartOffset:n};t-=i.piece.length-s;break}else e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right;for(i=i.next();i!==Ke;){if(i.piece.lineFeedCnt>0){const s=this.getAccumulatedValue(i,0),r=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,s),nodeStartOffset:r}}else if(i.piece.length>=t-1){const s=this.offsetOfNode(i);return{node:i,remainder:t-1,nodeStartOffset:s}}else t-=i.piece.length;i=i.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const i=this._buffers[e.piece.bufferIndex],n=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(n)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&this._EOL===` +`)}startWithLF(e){if(typeof e=="string")return e.charCodeAt(0)===10;if(e===Ke||e.piece.lineFeedCnt===0)return!1;const t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,n=t.start.line,s=i[n]+t.start.column;return n===i.length-1||i[n+1]>s+1?!1:this._buffers[t.bufferIndex].buffer.charCodeAt(s)===10}endWithCR(e){return typeof e=="string"?e.charCodeAt(e.length-1)===13:e===Ke||e.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(e,e.piece.length-1)===13}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const i=[],n=this._buffers[e.piece.bufferIndex].lineStarts;let s;e.piece.end.column===0?s={line:e.piece.end.line-1,column:n[e.piece.end.line]-n[e.piece.end.line-1]-1}:s={line:e.piece.end.line,column:e.piece.end.column-1};const r=e.piece.length-1,a=e.piece.lineFeedCnt-1;e.piece=new Zs(e.piece.bufferIndex,e.piece.start,s,a,r),rd(this,e,-1,-1),e.piece.length===0&&i.push(e);const l={line:t.piece.start.line+1,column:0},d=t.piece.length-1,c=this.getLineFeedCnt(t.piece.bufferIndex,l,t.piece.end);t.piece=new Zs(t.piece.bufferIndex,l,t.piece.end,c,d),rd(this,t,-1,-1),t.piece.length===0&&i.push(t);const h=this.createNewPieces(`\r +`);this.rbInsertRight(e,h[0]);for(let u=0;u_.sortIndex-v.sortIndex)}this._mightContainRTL=n,this._mightContainUnusualLineTerminators=s,this._mightContainNonBasicASCII=r;const g=this._doApplyEdits(l);let f=null;if(t&&h.length>0){h.sort((p,_)=>_.lineNumber-p.lineNumber),f=[];for(let p=0,_=h.length;p<_;p++){const v=h[p].lineNumber;if(p>0&&h[p-1].lineNumber===v)continue;const b=h[p].oldContent,C=this.getLineContent(v);C.length===0||C===b||ss(C)!==-1||f.push(v)}}return this._onDidChangeContent.fire(),new JZ(u,g,f)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const i=e[0].range,n=e[e.length-1].range,s=new x(i.startLineNumber,i.startColumn,n.endLineNumber,n.endColumn);let r=i.startLineNumber,a=i.startColumn;const l=[];for(let g=0,f=e.length;g0&&l.push(p.text),r=_.endLineNumber,a=_.endColumn}const d=l.join(""),[c,h,u]=xh(d);return{sortIndex:0,identifier:e[0].identifier,range:s,rangeOffset:this.getOffsetAt(s.startLineNumber,s.startColumn),rangeLength:this.getValueLengthInRange(s,0),text:d,eolCount:c,firstLineLength:h,lastLineLength:u,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Lm._sortOpsDescending);const t=[];for(let i=0;i0){const u=l.eolCount+1;u===1?h=new x(d,c,d,c+l.firstLineLength):h=new x(d,c,d+u-1,l.lastLineLength+1)}else h=new x(d,c,d,c);i=h.endLineNumber,n=h.endColumn,t.push(h),s=l}return t}static _sortOpsAscending(e,t){const i=x.compareRangesUsingEnds(e.range,t.range);return i===0?e.sortIndex-t.sortIndex:i}static _sortOpsDescending(e,t){const i=x.compareRangesUsingEnds(e.range,t.range);return i===0?t.sortIndex-e.sortIndex:-i}}class ine{constructor(e,t,i,n,s,r,a,l,d){this._chunks=e,this._bom=t,this._cr=i,this._lf=n,this._crlf=s,this._containsRTL=r,this._containsUnusualLineTerminators=a,this._isBasicASCII=l,this._normalizeEOL=d}_getEOL(e){const t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return t===0?e===1?` +`:`\r +`:i>t/2?`\r +`:` +`}create(e){const t=this._getEOL(e),i=this._chunks;if(this._normalizeEOL&&(t===`\r +`&&(this._cr>0||this._lf>0)||t===` +`&&(this._cr>0||this._crlf>0)))for(let s=0,r=i.length;s=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){!t&&e.length===0||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=Xie(this._tmpLineStarts,e);this.chunks.push(new Pu(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=Bm(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=L9(e)))}finish(e=!0){return this._finish(),new ine(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=ad(e.buffer);e.lineStarts=t,this._previousChar===13&&this.cr++}}}class nne{constructor(e){this._default=e,this._store=[]}get(e){return e=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,i){if(e>=this._store.length)return;if(t===0){this.insert(e,i);return}else if(i===0){this.delete(e,t);return}const n=this._store.slice(0,e),s=this._store.slice(e+t),r=sne(i,this._default);this._store=n.concat(r,s)}delete(e,t){t===0||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(t===0||e>=this._store.length)return;const i=[];for(let n=0;n0){const i=this._tokens[this._tokens.length-1];if(i.endLineNumber+1===e){i.appendLineTokens(t);return}}this._tokens.push(new one(e,[t]))}finalize(){return this._tokens}}class rne{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new mN(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class ane extends rne{constructor(e,t,i,n){super(e,t),this._textModel=i,this._languageIdCodec=n}updateTokensUntilLine(e,t){const i=this._textModel.getLanguageId();for(;;){const n=this.getFirstInvalidLine();if(!n||n.lineNumber>t)break;const s=this._textModel.getLineContent(n.lineNumber),r=c_(this._languageIdCodec,i,this.tokenizationSupport,s,!0,n.startState);e.add(n.lineNumber,r.tokens),this.store.setEndState(n.lineNumber,r.endState)}}getTokenTypeIfInsertingCharacter(e,t){const i=this.getStartState(e.lineNumber);if(!i)return 0;const n=this._textModel.getLanguageId(),s=this._textModel.getLineContent(e.lineNumber),r=s.substring(0,e.column-1)+t+s.substring(e.column-1),a=c_(this._languageIdCodec,n,this.tokenizationSupport,r,!0,i),l=new Vi(a.tokens,r,this._languageIdCodec);if(l.getCount()===0)return 0;const d=l.findTokenIndexAtOffset(e.column-1);return l.getStandardTokenType(d)}tokenizeLineWithEdit(e,t,i){const n=e.lineNumber,s=e.column,r=this.getStartState(n);if(!r)return null;const a=this._textModel.getLineContent(n),l=a.substring(0,s-1)+i+a.substring(s-1+t),d=this._textModel.getLanguageIdAtPosition(n,0),c=c_(this._languageIdCodec,d,this.tokenizationSupport,l,!0,r);return new Vi(c.tokens,l,this._languageIdCodec)}hasAccurateTokensForLine(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e1&&a>=1;a--){const l=this._textModel.getLineFirstNonWhitespaceColumn(a);if(l!==0&&l0&&i>0&&(i--,t--),this._lineEndStates.replace(e.startLineNumber,i,t)}}class dne{constructor(){this._ranges=[]}get min(){return this._ranges.length===0?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex(i=>i.contains(e));if(t!==-1){const i=this._ranges[t];i.start===e?i.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new Ze(e+1,i.endExclusive):i.endExclusive===e+1?this._ranges[t]=new Ze(i.start,e):this._ranges.splice(t,1,new Ze(i.start,e),new Ze(e+1,i.endExclusive))}}addRange(e){Ze.addRange(e,this._ranges)}addRangeAndResize(e,t){let i=0;for(;!(i>=this._ranges.length||e.start<=this._ranges[i].endExclusive);)i++;let n=i;for(;!(n>=this._ranges.length||e.endExclusivee.toString()).join(" + ")}}function c_(o,e,t,i,n,s){let r=null;if(t)try{r=t.tokenizeEncoded(i,n,s.clone())}catch(a){ze(a)}return r||(r=hL(o.encodeLanguageId(e),s)),Vi.convertToEndOffset(r.tokens,i.length),r}class cne{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,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,T9(e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)}))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),i=()=>{this._isDisposed||!this._tokenizerWithStateStore._textModel.isAttachedToEditor()||!this._hasLinesToTokenize()||(this._backgroundTokenizeForAtLeast1ms(),Date.now()1||this._tokenizeOneInvalidLine(t)>=e)break;while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return this._tokenizerWithStateStore?!this._tokenizerWithStateStore.store.allStatesValid():!1}_tokenizeOneInvalidLine(e){var t;const i=(t=this._tokenizerWithStateStore)===null||t===void 0?void 0:t.getFirstInvalidLine();return i?(this._tokenizerWithStateStore.updateTokensUntilLine(e,i.lineNumber),i.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Ge(e,t))}}const ld=new Uint32Array(0).buffer;class nl{static deleteBeginning(e,t){return e===null||e===ld?e:nl.delete(e,0,t)}static deleteEnding(e,t){if(e===null||e===ld)return e;const i=Cd(e),n=i[i.length-2];return nl.delete(e,t,n)}static delete(e,t,i){if(e===null||e===ld||t===i)return e;const n=Cd(e),s=n.length>>>1;if(t===0&&n[n.length-2]===i)return ld;const r=Vi.findIndexInTokensArray(n,t),a=r>0?n[r-1<<1]:0,l=n[r<<1];if(ic&&(n[d++]=f,n[d++]=n[(g<<1)+1],c=f)}if(d===n.length)return e;const u=new Uint32Array(d);return u.set(n.subarray(0,d),0),u.buffer}static append(e,t){if(t===ld)return e;if(e===ld)return t;if(e===null)return e;if(t===null)return null;const i=Cd(e),n=Cd(t),s=n.length>>>1,r=new Uint32Array(i.length+n.length);r.set(i,0);let a=i.length;const l=i[i.length-2];for(let d=0;d>>1;let r=Vi.findIndexInTokensArray(n,t);r>0&&n[r-1<<1]===t&&r--;for(let a=r;a0}getTokens(e,t,i){let n=null;if(t1&&(s=An.getLanguageId(n[1])!==e),!s)return ld}if(!n||n.length===0){const s=new Uint32Array(2);return s[0]=t,s[1]=K4(e),s.buffer}return n[n.length-2]=t,n.byteOffset===0&&n.byteLength===n.buffer.byteLength?n.buffer:n}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){t!==0&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(t===0)return;const i=[];for(let n=0;n=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._lineTokens[t]=nl.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1);return}this._lineTokens[t]=nl.deleteEnding(this._lineTokens[t],e.startColumn-1);const i=e.endLineNumber-1;let n=null;i=this._len)){if(t===0){this._lineTokens[n]=nl.insert(this._lineTokens[n],e.column-1,i);return}this._lineTokens[n]=nl.deleteEnding(this._lineTokens[n],e.column-1),this._lineTokens[n]=nl.insert(this._lineTokens[n],e.column-1,i),this._insertLines(e.lineNumber,t)}}setMultilineTokens(e,t){if(e.length===0)return{changes:[]};const i=[];for(let n=0,s=e.length;n>>0}class c2{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return this._pieces.length===0}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let i=e;if(t.length>0){const s=t[0].getRange(),r=t[t.length-1].getRange();if(!s||!r)return e;i=e.plusRange(s).plusRange(r)}let n=null;for(let s=0,r=this._pieces.length;si.endLineNumber){n=n||{index:s};break}if(a.removeTokens(i),a.isEmpty()){this._pieces.splice(s,1),s--,r--;continue}if(a.endLineNumberi.endLineNumber){n=n||{index:s};continue}const[l,d]=a.split(i);if(l.isEmpty()){n=n||{index:s};continue}d.isEmpty()||(this._pieces.splice(s,1,l,d),s++,r++,n=n||{index:s})}return n=n||{index:this._pieces.length},t.length>0&&(this._pieces=By(this._pieces,n.index,t)),i}isComplete(){return this._isComplete}addSparseTokens(e,t){if(t.getLineContent().length===0)return t;const i=this._pieces;if(i.length===0)return t;const n=c2._findFirstPieceWithLine(i,e),s=i[n].getLineTokens(e);if(!s)return t;const r=t.getCount(),a=s.getCount();let l=0;const d=[];let c=0,h=0;const u=(g,f)=>{g!==h&&(h=g,d[c++]=g,d[c++]=f)};for(let g=0;g>>0,b=~v>>>0;for(;lt)n=s-1;else{for(;s>i&&e[s-1].startLineNumber<=t&&t<=e[s-1].endLineNumber;)s--;return s}}return i}acceptEdit(e,t,i,n,s){for(const r of this._pieces)r.acceptEdit(e,t,i,n,s)}}class pS extends x8{constructor(e,t,i,n,s,r){super(),this._languageService=e,this._languageConfigurationService=t,this._textModel=i,this._bracketPairsTextModelPart=n,this._languageId=s,this._attachedViews=r,this._semanticTokens=new c2(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new O),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new O),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new O),this.onDidChangeTokens=this._onDidChangeTokens.event,this.grammarTokens=this._register(new hne(this._languageService.languageIdCodec,this._textModel,()=>this._languageId,this._attachedViews)),this._register(this._languageConfigurationService.onDidChange(a=>{a.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})})),this._register(this.grammarTokens.onDidChangeTokens(a=>{this._emitModelTokensChangedEvent(a)})),this._register(this.grammarTokens.onDidChangeBackgroundTokenizationState(a=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[i,n,s]=xh(t.text);this._semanticTokens.acceptEdit(t.range,i,n,s,t.text.length>0?t.text.charCodeAt(0):0)}this.grammarTokens.handleDidChangeContent(e)}handleDidChangeAttached(){this.grammarTokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this.grammarTokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new Tt("Illegal value for lineNumber")}get hasTokens(){return this.grammarTokens.hasTokens}resetTokenization(){this.grammarTokens.resetTokenization()}get backgroundTokenizationState(){return this.grammarTokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this.grammarTokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this.grammarTokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this.grammarTokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this.grammarTokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,i){return this.grammarTokens.getTokenTypeIfInsertingCharacter(e,t,i)}tokenizeLineWithEdit(e,t,i){return this.grammarTokens.tokenizeLineWithEdit(e,t,i)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:e!==null,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const i=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:i.startLineNumber,toLineNumber:i.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),i=this._textModel.getLineContent(t.lineNumber),n=this.getLineTokens(t.lineNumber),s=n.findTokenIndexAtOffset(t.column-1),[r,a]=pS._findLanguageBoundaries(n,s),l=Wv(t.column,this.getLanguageConfiguration(n.getLanguageId(s)).getWordDefinition(),i.substring(r,a),r);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn)return l;if(s>0&&r===t.column-1){const[d,c]=pS._findLanguageBoundaries(n,s-1),h=Wv(t.column,this.getLanguageConfiguration(n.getLanguageId(s-1)).getWordDefinition(),i.substring(d,c),d);if(h&&h.startColumn<=e.column&&e.column<=h.endColumn)return h}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const i=e.getLanguageId(t);let n=0;for(let r=t;r>=0&&e.getLanguageId(r)===i;r--)n=e.getStartOffset(r);let s=e.getLineContent().length;for(let r=t,a=e.getCount();r{const r=this.getLanguageId();s.changedLanguages.indexOf(r)!==-1&&this.resetTokenization()})),this.resetTokenization(),this._register(n.onDidChangeVisibleRanges(({view:s,state:r})=>{if(r){let a=this._attachedViewStates.get(s);a||(a=new une(()=>this.refreshRanges(a.lineRanges)),this._attachedViewStates.set(s,a)),a.handleStateChange(r)}else this._attachedViewStates.deleteAndDispose(s)}))}resetTokenization(e=!0){var t;this._tokens.flush(),(t=this._debugBackgroundTokens)===null||t===void 0||t.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new mN(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const i=()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const r=gi.get(this.getLanguageId());if(!r)return[null,null];let a;try{a=r.getInitialState()}catch(l){return ze(l),[null,null]}return[r,a]},[n,s]=i();if(n&&s?this._tokenizer=new ane(this._textModel.getLineCount(),n,this._textModel,this._languageIdCodec):this._tokenizer=null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const r={setTokens:a=>{this.setTokens(a)},backgroundTokenizationFinished:()=>{if(this._backgroundTokenizationState===2)return;const a=2;this._backgroundTokenizationState=a,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(a,l)=>{var d;if(!this._tokenizer)return;const c=this._tokenizer.store.getFirstInvalidEndStateLineNumber();c!==null&&a>=c&&((d=this._tokenizer)===null||d===void 0||d.store.setEndState(a,l))}};n&&n.createBackgroundTokenizer&&!n.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=n.createBackgroundTokenizer(this._textModel,r)),!this._backgroundTokenizer.value&&!this._textModel.isTooLargeForTokenization()&&(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new cne(this._tokenizer,r),this._defaultBackgroundTokenizer.handleChanges()),n!=null&&n.backgroundTokenizerShouldOnlyVerifyTokens&&n.createBackgroundTokenizer?(this._debugBackgroundTokens=new _b(this._languageIdCodec),this._debugBackgroundStates=new mN(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=n.createBackgroundTokenizer(this._textModel,{setTokens:a=>{var l;(l=this._debugBackgroundTokens)===null||l===void 0||l.setMultilineTokens(a,this._textModel)},backgroundTokenizationFinished(){},setEndState:(a,l)=>{var d;(d=this._debugBackgroundStates)===null||d===void 0||d.setEndState(a,l)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){var e;(e=this._defaultBackgroundTokenizer)===null||e===void 0||e.handleChanges()}handleDidChangeContent(e){var t,i,n;if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const s of e.changes){const[r,a]=xh(s.text);this._tokens.acceptEdit(s.range,r,a),(t=this._debugBackgroundTokens)===null||t===void 0||t.acceptEdit(s.range,r,a)}(i=this._debugBackgroundStates)===null||i===void 0||i.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),(n=this._defaultBackgroundTokenizer)===null||n===void 0||n.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=Ge.joinMany([...this._attachedViewStates].map(([t,i])=>i.lineRanges));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){var i,n;if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const s=new fN,{heuristicTokens:r}=this._tokenizer.tokenizeHeuristically(s,e,t),a=this.setTokens(s.finalize());if(r)for(const l of a.changes)(i=this._backgroundTokenizer.value)===null||i===void 0||i.requestTokens(l.fromLineNumber,l.toLineNumber+1);(n=this._defaultBackgroundTokenizer)===null||n===void 0||n.checkFinished()}forceTokenization(e){var t,i;const n=new fN;(t=this._tokenizer)===null||t===void 0||t.updateTokensUntilLine(n,e),this.setTokens(n.finalize()),(i=this._defaultBackgroundTokenizer)===null||i===void 0||i.checkFinished()}hasAccurateTokensForLine(e){return this._tokenizer?this._tokenizer.hasAccurateTokensForLine(e):!0}isCheapToTokenize(e){return this._tokenizer?this._tokenizer.isCheapToTokenize(e):!0}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}getLineTokens(e){var t;const i=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,i);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const s=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,i);!n.equals(s)&&(!((t=this._debugBackgroundTokenizer.value)===null||t===void 0)&&t.reportMismatchingTokens)&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return n}getTokenTypeIfInsertingCharacter(e,t,i){if(!this._tokenizer)return 0;const n=this._textModel.validatePosition(new F(e,t));return this.forceTokenization(n.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(n,i)}tokenizeLineWithEdit(e,t,i){if(!this._tokenizer)return null;const n=this._textModel.validatePosition(e);return this.forceTokenization(n.lineNumber),this._tokenizer.tokenizeLineWithEdit(n,t,i)}get hasTokens(){return this._tokens.hasTokens}}class une extends W{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new At(()=>this.update(),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){di(this._computedLineRanges,this._lineRanges,(e,t)=>e.equals(t))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}const xL=ot("undoRedoService");class G8{constructor(e,t){this.resource=e,this.elements=t}}class Xm{constructor(){this.id=Xm._ID++,this.order=1}nextOrder(){return this.id===0?0:this.order++}}Xm._ID=0;Xm.None=new Xm;class gl{constructor(){this.id=gl._ID++,this.order=1}nextOrder(){return this.id===0?0:this.order++}}gl._ID=0;gl.None=new gl;var gne=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sk=function(o,e){return function(t,i){e(t,i,o)}},Su;function fne(o){const e=new q8;return e.acceptChunk(o),e.finish()}function mne(o){const e=new q8;let t;for(;typeof(t=o.read())=="string";)e.acceptChunk(t);return e.finish()}function q4(o,e){let t;return typeof o=="string"?t=fne(o):QZ(o)?t=mne(o):t=o,t.create(e)}let qC=0;const pne=999,_ne=1e4;class vne{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,i=0;do{const n=this._source.read();if(n===null)return this._eos=!0,t===0?null:e.join("");if(n.length>0&&(e[t++]=n,i+=n.length),i>=64*1024)return e.join("")}while(!0)}}const h_=()=>{throw new Error("Invalid change accessor")};let Ol=Su=class extends W{static resolveOptions(e,t){if(t.detectIndentation){const i=B4(e,t.tabSize,t.insertSpaces);return new ew({tabSize:i.tabSize,indentSize:"tabSize",insertSpaces:i.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new ew(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent(t=>e(t.contentChangedEvent))}onDidChangeContentOrInjectedText(e){return Wr(this._eventEmitter.fastEvent(t=>e(t)),this._onDidChangeInjectedText.event(t=>e(t)))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,i,n=null,s,r,a){super(),this._undoRedoService=s,this._languageService=r,this._languageConfigurationService=a,this._onWillDispose=this._register(new O),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new Lne(g=>this.handleBeforeFireDecorationsChangedEvent(g))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new O),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new O),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new O),this._eventEmitter=this._register(new xne),this._languageSelectionListener=this._register(new ln),this._deltaDecorationCallCnt=0,this._attachedViews=new Dne,qC++,this.id="$model"+qC,this.isForSimpleWidget=i.isForSimpleWidget,typeof n>"u"||n===null?this._associatedResource=ke.parse("inmemory://model/"+qC):this._associatedResource=n,this._attachedEditorCount=0;const{textBuffer:l,disposable:d}=q4(e,i.defaultEOL);this._buffer=l,this._bufferDisposable=d,this._options=Su.resolveOptions(this._buffer,i);const c=typeof t=="string"?t:t.languageId;typeof t!="string"&&(this._languageSelectionListener.value=t.onDidChange(()=>this._setLanguage(t.languageId))),this._bracketPairs=this._register(new yie(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new pte(this,this._languageConfigurationService)),this._decorationProvider=this._register(new xie(this)),this._tokenizationTextModelPart=new pS(this._languageService,this._languageConfigurationService,this,this._bracketPairs,c,this._attachedViews);const h=this._buffer.getLineCount(),u=this._buffer.getValueLengthInRange(new x(1,1,h,this._buffer.getLineLength(h)+1),0);i.largeFileOptimizations?(this._isTooLargeForTokenization=u>Su.LARGE_FILE_SIZE_THRESHOLD||h>Su.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=u>Su.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=u>Su._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=x9(qC),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new G4,this._commandManager=new r2(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(c)}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Lm([],"",` +`,!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=W.None}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new eg(e,t)))}setValue(e){if(this._assertNotDisposed(),e==null)throw or();const{textBuffer:t,disposable:i}=q4(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,i)}_createContentChanged2(e,t,i,n,s,r,a,l){return{changes:[{range:e,rangeOffset:t,rangeLength:i,text:n}],eol:this._buffer.getEOL(),isEolChange:l,versionId:this.getVersionId(),isUndoing:s,isRedoing:r,isFlush:a}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),s=this.getLineCount(),r=this.getLineMaxColumn(s);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new G4,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new wm([new Gte],this._versionId,!1,!1),this._createContentChanged2(new x(1,1,s,r),0,n,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=e===1?`\r +`:` +`;if(this._buffer.getEOL()===t)return;const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),s=this.getLineCount(),r=this.getLineMaxColumn(s);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new wm([new Qte],this._versionId,!1,!1),this._createContentChanged2(new x(1,1,s,r),0,n,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let i=0,n=t.length;i0}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 e=0,t=0;const i=this._buffer.getLineCount();for(let n=1;n<=i;n++){const s=this._buffer.getLineLength(n);s>=_ne?t+=s:e+=s}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t=typeof e.tabSize<"u"?e.tabSize:this._options.tabSize,i=typeof e.indentSize<"u"?e.indentSize:this._options.originalIndentSize,n=typeof e.insertSpaces<"u"?e.insertSpaces:this._options.insertSpaces,s=typeof e.trimAutoWhitespace<"u"?e.trimAutoWhitespace:this._options.trimAutoWhitespace,r=typeof e.bracketColorizationOptions<"u"?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,a=new ew({tabSize:t,indentSize:i,insertSpaces:n,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:s,bracketPairColorizationOptions:r});if(this._options.equals(a))return;const l=this._options.createChangeEvent(a);this._options=a,this._bracketPairs.handleDidChangeOptions(l),this._decorationProvider.handleDidChangeOptions(l),this._onDidChangeOptions.fire(l)}detectIndentation(e,t){this._assertNotDisposed();const i=B4(this._buffer,t,e);this.updateOptions({insertSpaces:i.insertSpaces,tabSize:i.tabSize,indentSize:i.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),GA(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(y9.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map(i=>({range:i.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new Tt("Operation would exceed heap memory limits");const i=this.getFullModelRange(),n=this.getValueInRange(i,e);return t?this._buffer.getBOM()+n:n}createSnapshot(e=!1){return new vne(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i,e);return t?this._buffer.getBOM().length+n:n}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Tt("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Tt("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new Tt("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(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Tt("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Tt("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Tt("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),i=e.startLineNumber,n=e.startColumn;let s=Math.floor(typeof i=="number"&&!isNaN(i)?i:1),r=Math.floor(typeof n=="number"&&!isNaN(n)?n:1);if(s<1)s=1,r=1;else if(s>t)s=t,r=this.getLineMaxColumn(s);else if(r<=1)r=1;else{const h=this.getLineMaxColumn(s);r>=h&&(r=h)}const a=e.endLineNumber,l=e.endColumn;let d=Math.floor(typeof a=="number"&&!isNaN(a)?a:1),c=Math.floor(typeof l=="number"&&!isNaN(l)?l:1);if(d<1)d=1,c=1;else if(d>t)d=t,c=this.getLineMaxColumn(d);else if(c<=1)c=1;else{const h=this.getLineMaxColumn(d);c>=h&&(c=h)}return i===s&&n===r&&a===d&&l===c&&e instanceof x&&!(e instanceof _e)?e:new x(s,r,d,c)}_isValidPosition(e,t,i){if(typeof e!="number"||typeof t!="number"||isNaN(e)||isNaN(t)||e<1||t<1||(e|0)!==e||(t|0)!==t)return!1;const n=this._buffer.getLineCount();if(e>n)return!1;if(t===1)return!0;const s=this.getLineMaxColumn(e);if(t>s)return!1;if(i===1){const r=this._buffer.getLineCharCode(e,t-2);if(sn(r))return!1}return!0}_validatePosition(e,t,i){const n=Math.floor(typeof e=="number"&&!isNaN(e)?e:1),s=Math.floor(typeof t=="number"&&!isNaN(t)?t:1),r=this._buffer.getLineCount();if(n<1)return new F(1,1);if(n>r)return new F(r,this.getLineMaxColumn(r));if(s<=1)return new F(n,1);const a=this.getLineMaxColumn(n);if(s>=a)return new F(n,a);if(i===1){const l=this._buffer.getLineCharCode(n,s-2);if(sn(l))return new F(n,s-1)}return new F(n,s)}validatePosition(e){return this._assertNotDisposed(),e instanceof F&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const i=e.startLineNumber,n=e.startColumn,s=e.endLineNumber,r=e.endColumn;if(!this._isValidPosition(i,n,0)||!this._isValidPosition(s,r,0))return!1;if(t===1){const a=n>1?this._buffer.getLineCharCode(i,n-2):0,l=r>1&&r<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,r-2):0,d=sn(a),c=sn(l);return!d&&!c}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof x&&!(e instanceof _e)&&this._isValidRange(e,1))return e;const i=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),s=i.lineNumber,r=i.column,a=n.lineNumber,l=n.column;{const d=r>1?this._buffer.getLineCharCode(s,r-2):0,c=l>1&&l<=this._buffer.getLineLength(a)?this._buffer.getLineCharCode(a,l-2):0,h=sn(d),u=sn(c);return!h&&!u?new x(s,r,a,l):s===a&&r===l?new x(s,r-1,a,l-1):h&&u?new x(s,r-1,a,l+1):h?new x(s,r-1,a,l):new x(s,r,a,l+1)}}modifyPosition(e,t){this._assertNotDisposed();const i=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,i)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new x(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,i,n){return this._buffer.findMatchesLineByLine(e,t,i,n)}findMatches(e,t,i,n,s,r,a=pne){this._assertNotDisposed();let l=null;t!==null&&(Array.isArray(t)||(t=[t]),t.every(h=>x.isIRange(h))&&(l=t.map(h=>this.validateRange(h)))),l===null&&(l=[this.getFullModelRange()]),l=l.sort((h,u)=>h.startLineNumber-u.startLineNumber||h.startColumn-u.startColumn);const d=[];d.push(l.reduce((h,u)=>x.areIntersecting(h,u)?h.plusRange(u):(d.push(h),u)));let c;if(!i&&e.indexOf(` +`)<0){const u=new wu(e,i,n,s).parseSearchRequest();if(!u)return[];c=g=>this.findMatchesLineByLine(g,u,r,a)}else c=h=>EC.findMatches(this,new wu(e,i,n,s),h,r,a);return d.map(c).reduce((h,u)=>h.concat(u),[])}findNextMatch(e,t,i,n,s,r){this._assertNotDisposed();const a=this.validatePosition(t);if(!i&&e.indexOf(` +`)<0){const d=new wu(e,i,n,s).parseSearchRequest();if(!d)return null;const c=this.getLineCount();let h=new x(a.lineNumber,a.column,c,this.getLineMaxColumn(c)),u=this.findMatchesLineByLine(h,d,r,1);return EC.findNextMatch(this,new wu(e,i,n,s),a,r),u.length>0||(h=new x(1,1,a.lineNumber,this.getLineMaxColumn(a.lineNumber)),u=this.findMatchesLineByLine(h,d,r,1),u.length>0)?u[0]:null}return EC.findNextMatch(this,new wu(e,i,n,s),a,r)}findPreviousMatch(e,t,i,n,s,r){this._assertNotDisposed();const a=this.validatePosition(t);return EC.findPreviousMatch(this,new wu(e,i,n,s),a,r)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if((this.getEOL()===` +`?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof OD?e:new OD(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let i=0,n=e.length;i({range:this.validateRange(a.range),text:a.text}));let r=!0;if(e)for(let a=0,l=e.length;ad.endLineNumber,p=d.startLineNumber>g.endLineNumber;if(!f&&!p){c=!0;break}}if(!c){r=!1;break}}if(r)for(let a=0,l=this._trimAutoWhitespaceLines.length;af.endLineNumber)&&!(d===f.startLineNumber&&f.startColumn===c&&f.isEmpty()&&p&&p.length>0&&p.charAt(0)===` +`)&&!(d===f.startLineNumber&&f.startColumn===1&&f.isEmpty()&&p&&p.length>0&&p.charAt(p.length-1)===` +`)){h=!1;break}}if(h){const u=new x(d,1,d,c);t.push(new OD(null,u,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,i,n)}_applyUndo(e,t,i,n){const s=e.map(r=>{const a=this.getPositionAt(r.newPosition),l=this.getPositionAt(r.newEnd);return{range:new x(a.lineNumber,a.column,l.lineNumber,l.column),text:r.oldText}});this._applyUndoRedoEdits(s,t,!0,!1,i,n)}_applyRedo(e,t,i,n){const s=e.map(r=>{const a=this.getPositionAt(r.oldPosition),l=this.getPositionAt(r.oldEnd);return{range:new x(a.lineNumber,a.column,l.lineNumber,l.column),text:r.newText}});this._applyUndoRedoEdits(s,t,!1,!0,i,n)}_applyUndoRedoEdits(e,t,i,n,s,r){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=n,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(s)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(r),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const i=this._buffer.getLineCount(),n=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),s=this._buffer.getLineCount(),r=n.changes;if(this._trimAutoWhitespaceLines=n.trimAutoWhitespaceLineNumbers,r.length!==0){for(let d=0,c=r.length;d=0;T--){const V=g+T,P=C+T;I.takeFromEndWhile(B=>B.lineNumber>P);const A=I.takeFromEndWhile(B=>B.lineNumber===P);a.push(new E4(V,this.getLineContent(P),A))}if(vye.lineNumberye.lineNumber===pe)}a.push(new Yte(V+1,g+_,j,B))}l+=b}this._emitContentChangedEvent(new wm(a,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:r,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return n.reverseEdits===null?void 0:n.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(e){if(e===null||e.size===0)return;const i=Array.from(e).map(n=>new E4(n,this.getLineContent(n),this._getInjectedTextInLine(n)));this._onDidChangeInjectedText.fire(new I8(i))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const i={addDecoration:(s,r)=>this._deltaDecorationsImpl(e,[],[{range:s,options:r}])[0],changeDecoration:(s,r)=>{this._changeDecorationImpl(s,r)},changeDecorationOptions:(s,r)=>{this._changeDecorationOptionsImpl(s,Y4(r))},removeDecoration:s=>{this._deltaDecorationsImpl(e,[s],[])},deltaDecorations:(s,r)=>s.length===0&&r.length===0?[]:this._deltaDecorationsImpl(e,s,r)};let n=null;try{n=t(i)}catch(s){ze(s)}return i.addDecoration=h_,i.changeDecoration=h_,i.changeDecorationOptions=h_,i.removeDecoration=h_,i.deltaDecorations=h_,n}deltaDecorations(e,t,i=0){if(this._assertNotDisposed(),e||(e=[]),e.length===0&&t.length===0)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),ze(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,i){const n=e?this._decorations[e]:null;if(!n)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:Z4[i]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(n),delete this._decorations[n.id],null;const s=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),a=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);return this._decorationsTree.delete(n),n.reset(this.getVersionId(),r,a,s),n.setOptions(Z4[i]),this._decorationsTree.insert(n),n.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let i=0,n=t.length;ithis.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t,i=0,n=!1,s=!1){const r=this.getLineCount(),a=Math.min(r,Math.max(1,e)),l=Math.min(r,Math.max(1,t)),d=this.getLineMaxColumn(l),c=new x(a,1,l,d),h=this._getDecorationsInRange(c,i,n,s);return pI(h,this._decorationProvider.getDecorationsInRange(c,i,n)),h}getDecorationsInRange(e,t=0,i=!1,n=!1,s=!1){const r=this.validateRange(e),a=this._getDecorationsInRange(r,t,i,s);return pI(a,this._decorationProvider.getDecorationsInRange(r,t,i,n)),a}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),i=t+this._buffer.getLineLength(e),n=this._decorationsTree.getInjectedTextInInterval(this,t,i,0);return Ta.fromDecorations(n).filter(s=>s.lineNumber===e)}getAllDecorations(e=0,t=!1){let i=this._decorationsTree.getAll(this,e,t,!1,!1);return i=i.concat(this._decorationProvider.getAllDecorations(e,t)),i}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,i,n){const s=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),r=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,s,r,t,i,n)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const i=this._decorations[e];if(!i)return;if(i.options.after){const a=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(a.endLineNumber)}if(i.options.before){const a=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(a.startLineNumber)}const n=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),r=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);this._decorationsTree.delete(i),i.reset(this.getVersionId(),s,r,n),this._decorationsTree.insert(i),this._onDidChangeDecorations.checkAffectedAndFire(i.options),i.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.endLineNumber),i.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.startLineNumber)}_changeDecorationOptionsImpl(e,t){const i=this._decorations[e];if(!i)return;const n=!!(i.options.overviewRuler&&i.options.overviewRuler.color),s=!!(t.overviewRuler&&t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(i.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i.options.after||t.after){const l=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(l.endLineNumber)}if(i.options.before||t.before){const l=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(l.startLineNumber)}const r=n!==s,a=Cne(t)!==dw(i);r||a?(this._decorationsTree.delete(i),i.setOptions(t),this._decorationsTree.insert(i)):i.setOptions(t)}_deltaDecorationsImpl(e,t,i,n=!1){const s=this.getVersionId(),r=t.length;let a=0;const l=i.length;let d=0;this._onDidChangeDecorations.beginDeferredEmit();try{const c=new Array(l);for(;athis._setLanguage(e.languageId,t)),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return bne(this.getLineContent(e))+1}};Ol._MODEL_SYNC_LIMIT=50*1024*1024;Ol.LARGE_FILE_SIZE_THRESHOLD=20*1024*1024;Ol.LARGE_FILE_LINE_COUNT_THRESHOLD=300*1e3;Ol.LARGE_FILE_HEAP_OPERATION_THRESHOLD=256*1024*1024;Ol.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:zn.tabSize,indentSize:zn.indentSize,insertSpaces:zn.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:zn.trimAutoWhitespace,largeFileOptimizations:zn.largeFileOptimizations,bracketPairColorizationOptions:zn.bracketPairColorizationOptions};Ol=Su=gne([sk(4,xL),sk(5,si),sk(6,$t)],Ol);function bne(o){let e=0;for(const t of o)if(t===" "||t===" ")e++;else break;return e}function ok(o){return!!(o.options.overviewRuler&&o.options.overviewRuler.color)}function Cne(o){return!!o.after||!!o.before}function dw(o){return!!o.options.after||!!o.options.before}class G4{constructor(){this._decorationsTree0=new tk,this._decorationsTree1=new tk,this._injectedTextDecorationsTree=new tk}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const i of t)i.range===null&&(i.range=e.getRangeAt(i.cachedAbsoluteStart,i.cachedAbsoluteEnd));return t}getAllInInterval(e,t,i,n,s,r){const a=e.getVersionId(),l=this._intervalSearch(t,i,n,s,a,r);return this._ensureNodesHaveRanges(e,l)}_intervalSearch(e,t,i,n,s,r){const a=this._decorationsTree0.intervalSearch(e,t,i,n,s,r),l=this._decorationsTree1.intervalSearch(e,t,i,n,s,r),d=this._injectedTextDecorationsTree.intervalSearch(e,t,i,n,s,r);return a.concat(l).concat(d)}getInjectedTextInInterval(e,t,i,n){const s=e.getVersionId(),r=this._injectedTextDecorationsTree.intervalSearch(t,i,n,!1,s,!1);return this._ensureNodesHaveRanges(e,r).filter(a=>a.options.showIfCollapsed||!a.range.isEmpty())}getAllInjectedText(e,t){const i=e.getVersionId(),n=this._injectedTextDecorationsTree.search(t,!1,i,!1);return this._ensureNodesHaveRanges(e,n).filter(s=>s.options.showIfCollapsed||!s.range.isEmpty())}getAll(e,t,i,n,s){const r=e.getVersionId(),a=this._search(t,i,n,r,s);return this._ensureNodesHaveRanges(e,a)}_search(e,t,i,n,s){if(i)return this._decorationsTree1.search(e,t,n,s);{const r=this._decorationsTree0.search(e,t,n,s),a=this._decorationsTree1.search(e,t,n,s),l=this._injectedTextDecorationsTree.search(e,t,n,s);return r.concat(a).concat(l)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),i=this._decorationsTree1.collectNodesFromOwner(e),n=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(i).concat(n)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(i)}insert(e){dw(e)?this._injectedTextDecorationsTree.insert(e):ok(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){dw(e)?this._injectedTextDecorationsTree.delete(e):ok(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const i=e.getVersionId();return t.cachedVersionId!==i&&this._resolveNode(t,i),t.range===null&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){dw(e)?this._injectedTextDecorationsTree.resolveNode(e,t):ok(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,i,n){this._decorationsTree0.acceptReplace(e,t,i,n),this._decorationsTree1.acceptReplace(e,t,i,n),this._injectedTextDecorationsTree.acceptReplace(e,t,i,n)}}function $a(o){return o.replace(/[^a-z0-9\-_]/gi," ")}class Z8{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class wne extends Z8{constructor(e){super(e),this._resolvedColor=null,this.position=typeof e.position=="number"?e.position:Bo.Center}getColor(e){return this._resolvedColor||(e.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if(typeof e=="string")return e;const i=e?t.getColor(e.id):null;return i?i.toString():""}}class Sne{constructor(e){var t;this.position=(t=e==null?void 0:e.position)!==null&&t!==void 0?t:Rl.Center,this.persistLane=e==null?void 0:e.persistLane}}class yne extends Z8{constructor(e){var t,i;super(e),this.position=e.position,this.sectionHeaderStyle=(t=e.sectionHeaderStyle)!==null&&t!==void 0?t:null,this.sectionHeaderText=(i=e.sectionHeaderText)!==null&&i!==void 0?i:null}getColor(e){return this._resolvedColor||(e.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return typeof e=="string"?z.fromHex(e):t.getColor(e.id)}}class Ih{static from(e){return e instanceof Ih?e:new Ih(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class je{static register(e){return new je(e)}static createDynamic(e){return new je(e)}constructor(e){var t,i,n,s,r,a;this.description=e.description,this.blockClassName=e.blockClassName?$a(e.blockClassName):null,this.blockDoesNotCollapse=(t=e.blockDoesNotCollapse)!==null&&t!==void 0?t:null,this.blockIsAfterEnd=(i=e.blockIsAfterEnd)!==null&&i!==void 0?i:null,this.blockPadding=(n=e.blockPadding)!==null&&n!==void 0?n:null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?$a(e.className):null,this.shouldFillLineOnLineBreak=(s=e.shouldFillLineOnLineBreak)!==null&&s!==void 0?s:null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new wne(e.overviewRuler):null,this.minimap=e.minimap?new yne(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new Sne(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?$a(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?$a(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?$a(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?RK(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?$a(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?$a(e.marginClassName):null,this.inlineClassName=e.inlineClassName?$a(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?$a(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?$a(e.afterContentClassName):null,this.after=e.after?Ih.from(e.after):null,this.before=e.before?Ih.from(e.before):null,this.hideInCommentTokens=(r=e.hideInCommentTokens)!==null&&r!==void 0?r:!1,this.hideInStringTokens=(a=e.hideInStringTokens)!==null&&a!==void 0?a:!1}}je.EMPTY=je.register({description:"empty"});const Z4=[je.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),je.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),je.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),je.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function Y4(o){return o instanceof je?o:je.createDynamic(o)}class Lne extends W{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new O),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 e;this._deferredCnt--,this._deferredCnt===0&&(this._shouldFireDeferred&&this.doFire(),(e=this._affectedInjectedTextLines)===null||e===void 0||e.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){var t,i;this._affectsMinimap||(this._affectsMinimap=!!(!((t=e.minimap)===null||t===void 0)&&t.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!!(!((i=e.overviewRuler)===null||i===void 0)&&i.color)),this._affectsGlyphMargin||(this._affectsGlyphMargin=!!e.glyphMarginClassName),this._affectsLineNumber||(this._affectsLineNumber=!!e.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);const e={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(e)}}class xne extends W{constructor(){super(),this._fastEmitter=this._register(new O),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new O),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,this._deferredCnt===0&&this._deferredEvent!==null){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){if(this._deferredCnt>0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e;return}this._fastEmitter.fire(e),this._slowEmitter.fire(e)}}class Dne{constructor(){this._onDidChangeVisibleRanges=new O,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new kne(t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})});return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class kne{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const i=e.map(n=>new Ge(n.startLineNumber,n.endLineNumber+1));this.handleStateChange({visibleLineRanges:i,stabilized:t})}}class h2{static create(e){return new h2(e.get(134),e.get(133))}constructor(e,t){this.classifier=new Ine(e,t)}createLineBreaksComputer(e,t,i,n,s){const r=[],a=[],l=[];return{addRequest:(d,c,h)=>{r.push(d),a.push(c),l.push(h)},finalize:()=>{const d=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,c=[];for(let h=0,u=r.length;h=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let pN=[],_N=[];function Ene(o,e,t,i,n,s,r,a){if(n===-1)return null;const l=t.length;if(l<=1)return null;const d=a==="keepAll",c=e.breakOffsets,h=e.breakOffsetsVisibleColumn,u=Y8(t,i,n,s,r),g=n-u,f=pN,p=_N;let _=0,v=0,b=0,C=n;const w=c.length;let S=0;if(S>=0){let L=Math.abs(h[S]-C);for(;S+1=L)break;L=D,S++}}for(;SL&&(L=v,D=b);let I=0,T=0,V=0,P=0;if(D<=C){let B=D,j=L===0?0:t.charCodeAt(L-1),X=L===0?0:o.get(j),pe=!0;for(let ye=L;yev&&vN(j,X,fe,Ue,d)&&(I=Ee,T=B),B+=Ve,B>C){Ee>v?(V=Ee,P=B-Ve):(V=ye+1,P=B),B-T>g&&(I=0),pe=!1;break}j=fe,X=Ue}if(pe){_>0&&(f[_]=c[c.length-1],p[_]=h[c.length-1],_++);break}}if(I===0){let B=D,j=t.charCodeAt(L),X=o.get(j),pe=!1;for(let ye=L-1;ye>=v;ye--){const Ee=ye+1,fe=t.charCodeAt(ye);if(fe===9){pe=!0;break}let Ue,Ve;if(hg(fe)?(ye--,Ue=0,Ve=2):(Ue=o.get(fe),Ve=wh(fe)?s:1),B<=C){if(V===0&&(V=Ee,P=B),B<=C-g)break;if(vN(fe,Ue,j,X,d)){I=Ee,T=B;break}}B-=Ve,j=fe,X=Ue}if(I!==0){const ye=g-(P-T);if(ye<=i){const Ee=t.charCodeAt(V);let fe;sn(Ee)?fe=2:fe=vv(Ee,P,i,s),ye-fe<0&&(I=0)}}if(pe){S--;continue}}if(I===0&&(I=V,T=P),I<=v){const B=t.charCodeAt(v);sn(B)?(I=v+2,T=b+2):(I=v+1,T=b+vv(B,b,i,s))}for(v=I,f[_]=I,b=T,p[_]=T,_++,C=T+g;S<0||S=A)break;A=B,S++}}return _===0?null:(f.length=_,p.length=_,pN=e.breakOffsets,_N=e.breakOffsetsVisibleColumn,e.breakOffsets=f,e.breakOffsetsVisibleColumn=p,e.wrappedTextIndentLength=u,e)}function Nne(o,e,t,i,n,s,r,a){const l=Ta.applyInjectedText(e,t);let d,c;if(t&&t.length>0?(d=t.map(T=>T.options),c=t.map(T=>T.column-1)):(d=null,c=null),n===-1)return d?new gv(c,d,[l.length],[],0):null;const h=l.length;if(h<=1)return d?new gv(c,d,[l.length],[],0):null;const u=a==="keepAll",g=Y8(l,i,n,s,r),f=n-g,p=[],_=[];let v=0,b=0,C=0,w=n,S=l.charCodeAt(0),L=o.get(S),D=vv(S,0,i,s),I=1;sn(S)&&(D+=1,S=l.charCodeAt(1),L=o.get(S),I++);for(let T=I;Tw&&((b===0||D-C>f)&&(b=V,C=D-B),p[v]=b,_[v]=C,v++,w=C+f,b=0),S=P,L=A}return v===0&&(!t||t.length===0)?null:(p[v]=h,_[v]=D,new gv(c,d,p,_,g))}function vv(o,e,t,i){return o===9?t-e%t:wh(o)||o<32?i:1}function Q4(o,e){return e-o%e}function vN(o,e,t,i,n){return t!==32&&(e===2&&i!==2||e!==1&&i===1||!n&&e===3&&i!==2||!n&&i===3&&e!==1)}function Y8(o,e,t,i,n){let s=0;if(n!==0){const r=ss(o);if(r!==-1){for(let l=0;lt&&(s=0)}}return s}class _S{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new Sn(new x(1,1,1,1),0,0,new F(1,1),0),new Sn(new x(1,1,1,1),0,0,new F(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new mt(this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.isEmpty()&&!t.isEmpty()?_e.fromRange(t.collapseToEnd(),this.modelState.selection.getDirection()):_e.fromRange(t,this.modelState.selection.getDirection())}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,i){this._setState(e,t,i)}static _validatePositionWithCache(e,t,i,n){return t.equals(i)?n:e.normalizePosition(t,2)}static _validateViewState(e,t){const i=t.position,n=t.selectionStart.getStartPosition(),s=t.selectionStart.getEndPosition(),r=e.normalizePosition(i,2),a=this._validatePositionWithCache(e,n,i,r),l=this._validatePositionWithCache(e,s,n,a);return i.equals(r)&&n.equals(a)&&s.equals(l)?t:new Sn(x.fromPositions(a,l),t.selectionStartKind,t.selectionStartLeftoverVisibleColumns+n.column-a.column,r,t.leftoverVisibleColumns+i.column-r.column)}_setState(e,t,i){if(i&&(i=_S._validateViewState(e.viewModel,i)),t){const n=e.model.validateRange(t.selectionStart),s=t.selectionStart.equalsRange(n)?t.selectionStartLeftoverVisibleColumns:0,r=e.model.validatePosition(t.position),a=t.position.equals(r)?t.leftoverVisibleColumns:0;t=new Sn(n,t.selectionStartKind,s,r,a)}else{if(!i)return;const n=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),s=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(i.position));t=new Sn(n,i.selectionStartKind,i.selectionStartLeftoverVisibleColumns,s,i.leftoverVisibleColumns)}if(i){const n=e.coordinatesConverter.validateViewRange(i.selectionStart,t.selectionStart),s=e.coordinatesConverter.validateViewPosition(i.position,t.position);i=new Sn(n,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,s,t.leftoverVisibleColumns)}else{const n=e.coordinatesConverter.convertModelPositionToViewPosition(new F(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),s=e.coordinatesConverter.convertModelPositionToViewPosition(new F(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),r=new x(n.lineNumber,n.column,s.lineNumber,s.column),a=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);i=new Sn(r,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,a,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(e)}}class X4{constructor(e){this.context=e,this.cursors=[new _S(e)],this.lastAddedCursorIndex=0}dispose(){for(const e of this.cursors)e.dispose(this.context)}startTrackingSelections(){for(const e of this.cursors)e.startTrackingSelection(this.context)}stopTrackingSelections(){for(const e of this.cursors)e.stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){for(const e of this.cursors)e.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map(e=>e.readSelectionFromMarkers(this.context))}getAll(){return this.cursors.map(e=>e.asCursorState())}getViewPositions(){return this.cursors.map(e=>e.viewState.position)}getTopMostViewPosition(){return lY(this.cursors,zs(e=>e.viewState.position,F.compare)).viewState.position}getBottomMostViewPosition(){return aY(this.cursors,zs(e=>e.viewState.position,F.compare)).viewState.position}getSelections(){return this.cursors.map(e=>e.modelState.selection)}getViewSelections(){return this.cursors.map(e=>e.viewState.selection)}setSelections(e){this.setStates(mt.fromModelSelections(e))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(e){e!==null&&(this.cursors[0].setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){const t=this.cursors.length-1,i=e.length;if(ti){const n=t-i;for(let s=0;s=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}normalize(){if(this.cursors.length===1)return;const e=this.cursors.slice(0),t=[];for(let i=0,n=e.length;ii.selection,x.compareRangesUsingStarts));for(let i=0;ih&&p.index--;e.splice(h,1),t.splice(c,1),this._removeSecondaryCursor(h-1),i--}}}}class J4{constructor(e,t,i,n){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=n}}class Tne{constructor(){this.type=0}}class Mne{constructor(){this.type=1}}class Rne{constructor(e){this.type=2,this._source=e}hasChanged(e){return this._source.hasChanged(e)}}class Ane{constructor(e,t,i){this.selections=e,this.modelSelections=t,this.reason=i,this.type=3}}class du{constructor(e){this.type=4,e?(this.affectsMinimap=e.affectsMinimap,this.affectsOverviewRuler=e.affectsOverviewRuler,this.affectsGlyphMargin=e.affectsGlyphMargin,this.affectsLineNumber=e.affectsLineNumber):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0,this.affectsGlyphMargin=!0,this.affectsLineNumber=!0)}}class GC{constructor(){this.type=5}}class Pne{constructor(e){this.type=6,this.isFocused=e}}class One{constructor(){this.type=7}}class ZC{constructor(){this.type=8}}class Q8{constructor(e,t){this.fromLineNumber=e,this.count=t,this.type=9}}class bN{constructor(e,t){this.type=10,this.fromLineNumber=e,this.toLineNumber=t}}class CN{constructor(e,t){this.type=11,this.fromLineNumber=e,this.toLineNumber=t}}class bv{constructor(e,t,i,n,s,r,a){this.source=e,this.minimalReveal=t,this.range=i,this.selections=n,this.verticalType=s,this.revealHorizontal=r,this.scrollType=a,this.type=12}}class Fne{constructor(e){this.type=13,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged}}class Bne{constructor(e){this.theme=e,this.type=14}}class Wne{constructor(e){this.type=15,this.ranges=e}}class Hne{constructor(){this.type=16}}let Vne=class{constructor(){this.type=17}};class zne extends W{constructor(){super(),this._onEvent=this._register(new O),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(e){this._addOutgoingEvent(e),this._emitOutgoingEvents()}_addOutgoingEvent(e){for(let t=0,i=this._outgoingEvents.length;t0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,i=this._eventHandlers.length;t0&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const i of t)i.handleEvents(e)}}}class Une{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class u2{constructor(e,t,i,n){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=i,this.contentHeight=n,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}attemptToMerge(e){return e.kind!==this.kind?null:new u2(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class g2{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}attemptToMerge(e){return e.kind!==this.kind?null:new g2(this.oldHasFocus,e.hasFocus)}}class f2{constructor(e,t,i,n,s,r,a,l){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=i,this._oldScrollTop=n,this.scrollWidth=s,this.scrollLeft=r,this.scrollHeight=a,this.scrollTop=l,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(e){return e.kind!==this.kind?null:new f2(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class $ne{constructor(){this.kind=3}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class jne{constructor(){this.kind=4}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class vS{constructor(e,t,i,n,s,r,a){this.kind=6,this.oldSelections=e,this.selections=t,this.oldModelVersionId=i,this.modelVersionId=n,this.source=s,this.reason=r,this.reachedMaxCursorCount=a}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const i=e.length,n=t.length;if(i!==n)return!1;for(let s=0;s0){const e=this._cursors.getSelections();for(let t=0;tr&&(n=n.slice(0,r),s=!0);const a=Cv.from(this._model,this);return this._cursors.setStates(n),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,a,s)}setCursorColumnSelectData(e){this._columnSelectData=e}revealAll(e,t,i,n,s,r){const a=this._cursors.getViewPositions();let l=null,d=null;a.length>1?d=this._cursors.getViewSelections():l=x.fromPositions(a[0],a[0]),e.emitViewEvent(new bv(t,i,l,d,n,s,r))}revealPrimary(e,t,i,n,s,r){const l=[this._cursors.getPrimaryCursor().viewState.selection];e.emitViewEvent(new bv(t,i,null,l,n,s,r))}saveState(){const e=[],t=this._cursors.getSelections();for(let i=0,n=t.length;i0){const s=mt.fromModelSelections(i.resultingSelection);this.setStates(e,"modelChange",i.isUndoing?5:i.isRedoing?6:2,s)&&this.revealAll(e,"modelChange",!1,0,!0,0)}else{const s=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,mt.fromModelSelections(s))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),i=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,t),toViewLineNumber:i.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,i)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,i,n){this.setStates(e,t,n,mt.fromModelSelections(i))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){const i=[],n=[];for(let a=0,l=e.length;a0&&this._pushAutoClosedAction(i,n),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){(!e||e.length===0)&&(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,i,n,s){const r=Cv.from(this._model,this);if(r.equals(n))return!1;const a=this._cursors.getSelections(),l=this._cursors.getViewSelections();if(e.emitViewEvent(new Ane(l,a,i)),!n||n.cursorState.length!==r.cursorState.length||r.cursorState.some((d,c)=>!d.modelState.equals(n.cursorState[c].modelState))){const d=n?n.cursorState.map(h=>h.modelState.selection):null,c=n?n.modelVersionId:0;e.emitOutgoingEvent(new vS(d,a,c,r.modelVersionId,t||"keyboard",i,s))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;const t=[];for(let i=0,n=e.length;i=0)return null;const r=s.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!r)return null;const a=r[1],l=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(a);if(!l||l.length!==1)return null;const d=l[0].open,c=s.text.length-r[2].length-1,h=s.text.lastIndexOf(d,c-1);if(h===-1)return null;t.push([h,c])}return t}executeEdits(e,t,i,n){let s=null;t==="snippet"&&(s=this._findAutoClosingPairs(i)),s&&(i[0]._isTracked=!0);const r=[],a=[],l=this._model.pushEditOperations(this.getSelections(),i,d=>{if(s)for(let h=0,u=s.length;h0&&this._pushAutoClosedAction(r,a)}_executeEdit(e,t,i,n=0){if(this.context.cursorConfig.readOnly)return;const s=Cv.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(r){ze(r)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,n,s,!1)&&this.revealAll(t,i,!1,0,!0,0)}getAutoClosedCharacters(){return e5.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._compositionState=new wv(this._model,this.getSelections())}endComposition(e,t){const i=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit(()=>{t==="keyboard"&&this._executeEditOperation(li.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,i,this.getSelections(),this.getAutoClosedCharacters()))},e,t)}type(e,t,i){this._executeEdit(()=>{if(i==="keyboard"){const n=t.length;let s=0;for(;s{const d=l.getPosition();return new _e(d.lineNumber,d.column+s,d.lineNumber,d.column+s)});this.setSelections(e,r,a,0)}return}this._executeEdit(()=>{this._executeEditOperation(li.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,i,n,s))},e,r)}paste(e,t,i,n,s){this._executeEdit(()=>{this._executeEditOperation(li.paste(this.context.cursorConfig,this._model,this.getSelections(),t,i,n||[]))},e,s,4)}cut(e,t){this._executeEdit(()=>{this._executeEditOperation(vg.cut(this.context.cursorConfig,this._model,this.getSelections()))},e,t)}executeCommand(e,t,i){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new As(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,i)}executeCommands(e,t,i){this._executeEdit(()=>{this._executeEditOperation(new As(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,i)}}class Cv{static from(e,t){return new Cv(e.getVersionId(),t.getCursorStates())}constructor(e,t){this.modelVersionId=e,this.cursorState=t}equals(e){if(!e||this.modelVersionId!==e.modelVersionId||this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,i=this.cursorState.length;t=t.length||!t[i].strictContainsRange(e[i]))return!1;return!0}}class ese{static executeCommands(e,t,i){const n={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},s=this._innerExecuteCommands(n,i);for(let r=0,a=n.trackedRanges.length;r0&&(r[0]._isTracked=!0);let a=e.model.pushEditOperations(e.selectionsBefore,r,d=>{const c=[];for(let g=0;gg.identifier.minor-f.identifier.minor,u=[];for(let g=0;g0?(c[g].sort(h),u[g]=t[g].computeCursorState(e.model,{getInverseEditOperations:()=>c[g],getTrackedSelection:f=>{const p=parseInt(f,10),_=e.model._getTrackedRange(e.trackedRanges[p]);return e.trackedRangesDirection[p]===0?new _e(_.startLineNumber,_.startColumn,_.endLineNumber,_.endColumn):new _e(_.endLineNumber,_.endColumn,_.startLineNumber,_.startColumn)}})):u[g]=e.selectionsBefore[g];return u});a||(a=e.selectionsBefore);const l=[];for(const d in s)s.hasOwnProperty(d)&&l.push(parseInt(d,10));l.sort((d,c)=>c-d);for(const d of l)a.splice(d,1);return a}static _arrayIsEmpty(e){for(let t=0,i=e.length;t{x.isEmpty(h)&&u===""||n.push({identifier:{major:t,minor:s++},range:h,text:u,forceMoveMarkers:g,isAutoWhitespaceEdit:i.insertsAutoWhitespace})};let a=!1;const c={addEditOperation:r,addTrackedEditOperation:(h,u,g)=>{a=!0,r(h,u,g)},trackSelection:(h,u)=>{const g=_e.liftSelection(h);let f;if(g.isEmpty())if(typeof u=="boolean")u?f=2:f=3;else{const v=e.model.getLineMaxColumn(g.startLineNumber);g.startColumn===v?f=2:f=3}else f=1;const p=e.trackedRanges.length,_=e.model._setTrackedRange(null,g,f);return e.trackedRanges[p]=_,e.trackedRangesDirection[p]=g.getDirection(),p.toString()}};try{i.getEditOperations(e.model,c)}catch(h){return ze(h),{operations:[],hadTrackedEditOperation:!1}}return{operations:n,hadTrackedEditOperation:a}}static _getLoserCursorMap(e){e=e.slice(0),e.sort((i,n)=>-x.compareRangesUsingEnds(i.range,n.range));const t={};for(let i=1;is.identifier.major?r=n.identifier.major:r=s.identifier.major,t[r.toString()]=!0;for(let a=0;a0&&i--}}return t}}class tse{constructor(e,t,i){this.text=e,this.startSelection=t,this.endSelection=i}}class wv{static _capture(e,t){const i=[];for(const n of t){if(n.startLineNumber!==n.endLineNumber)return null;i.push(new tse(e.getLineContent(n.startLineNumber),n.startColumn-1,n.endColumn-1))}return i}constructor(e,t){this._original=wv._capture(e,t)}deduceOutcome(e,t){if(!this._original)return null;const i=wv._capture(e,t);if(!i||this._original.length!==i.length)return null;const n=[];for(let s=0,r=this._original.length;s$m,tokenizeEncoded:(o,e,t)=>hL(0,t)};async function ise(o,e,t){if(!t)return i5(e,o.languageIdCodec,t5);const i=await gi.getOrCreate(t);return i5(e,o.languageIdCodec,i||t5)}function nse(o,e,t,i,n,s,r){let a="
",l=i,d=0,c=!0;for(let h=0,u=e.getCount();h0;)r&&c?(f+=" ",c=!1):(f+=" ",c=!0),_--;break}case 60:f+="<",c=!1;break;case 62:f+=">",c=!1;break;case 38:f+="&",c=!1;break;case 0:f+="�",c=!1;break;case 65279:case 8232:case 8233:case 133:f+="�",c=!1;break;case 13:f+="​",c=!1;break;case 32:r&&c?(f+=" ",c=!1):(f+=" ",c=!0);break;default:f+=String.fromCharCode(p),c=!1}}if(a+=`${f}`,g>n||l>=n)break}return a+="
",a}function i5(o,e,t){let i='
';const n=$l(o);let s=t.getInitialState();for(let r=0,a=n.length;r0&&(i+="
");const d=t.tokenizeEncoded(l,!0,s);Vi.convertToEndOffset(d.tokens,l.length);const h=new Vi(d.tokens,l,e).inflate();let u=0;for(let g=0,f=h.getCount();g${iv(l.substring(u,_))}`,u=_}s=d.endState}return i+="
",i}class sse{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;const t=this._inserts,i=this._changes,n=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,i,n)}}class ose{constructor(e,t,i,n,s){this.id=e,this.afterLineNumber=t,this.ordinal=i,this.height=n,this.minWidth=s,this.prefixSum=0}}let X8=class wN{constructor(e,t,i,n){this._instanceId=x9(++wN.INSTANCE_COUNT),this._pendingChanges=new sse,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=i,this._paddingBottom=n}static findInsertionIndex(e,t,i){let n=0,s=e.length;for(;n>>1;t===e[r].afterLineNumber?i{t=!0,n=n|0,s=s|0,r=r|0,a=a|0;const l=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new ose(l,n,s,r,a)),l},changeOneWhitespace:(n,s,r)=>{t=!0,s=s|0,r=r|0,this._pendingChanges.change({id:n,newAfterLineNumber:s,newHeight:r})},removeWhitespace:n=>{t=!0,this._pendingChanges.remove({id:n})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,i){if((e.length>0||i.length>0)&&(this._minWidth=-1),e.length+t.length+i.length<=1){for(const l of e)this._insertWhitespace(l);for(const l of t)this._changeOneWhitespace(l.id,l.newAfterLineNumber,l.newHeight);for(const l of i){const d=this._findWhitespaceIndex(l.id);d!==-1&&this._removeWhitespace(d)}return}const n=new Set;for(const l of i)n.add(l.id);const s=new Map;for(const l of t)s.set(l.id,l);const r=l=>{const d=[];for(const c of l)if(!n.has(c.id)){if(s.has(c.id)){const h=s.get(c.id);c.afterLineNumber=h.newAfterLineNumber,c.height=h.newHeight}d.push(c)}return d},a=r(this._arr).concat(r(e));a.sort((l,d)=>l.afterLineNumber===d.afterLineNumber?l.ordinal-d.ordinal:l.afterLineNumber-d.afterLineNumber),this._arr=a,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=wN.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let i=0,n=t.length;it&&(this._arr[i].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e=e|0,t=t|0,this._lineCount+=t-e+1;for(let i=0,n=this._arr.length;i=t.length||t[a+1].afterLineNumber>=e)return a;i=a+1|0}else n=a-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e=e|0;const i=this._findLastWhitespaceBeforeLineNumber(e)+1;return i1?i=this._lineHeight*(e-1):i=0;const n=this.getWhitespaceAccumulatedHeightBeforeLineNumber(e-(t?1:0));return i+n+this._paddingTop}getVerticalOffsetAfterLineNumber(e,t=!1){this._checkPendingChanges(),e=e|0;const i=this._lineHeight*e,n=this.getWhitespaceAccumulatedHeightBeforeLineNumber(e+(t?1:0));return i+n+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),this._minWidth===-1){let e=0;for(let t=0,i=this._arr.length;tt}isInTopPadding(e){return this._paddingTop===0?!1:(this._checkPendingChanges(),e=t-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),e=e|0,e<0)return 1;const t=this._lineCount|0,i=this._lineHeight;let n=1,s=t;for(;n=a+i)n=r+1;else{if(e>=a)return r;s=r}}return n>t?t:n}getLinesViewportData(e,t){this._checkPendingChanges(),e=e|0,t=t|0;const i=this._lineHeight,n=this.getLineNumberAtOrAfterVerticalOffset(e)|0,s=this.getVerticalOffsetForLineNumber(n)|0;let r=this._lineCount|0,a=this.getFirstWhitespaceIndexAfterLineNumber(n)|0;const l=this.getWhitespacesCount()|0;let d,c;a===-1?(a=l,c=r+1,d=0):(c=this.getAfterLineNumberForWhitespaceIndex(a)|0,d=this.getHeightForWhitespaceIndex(a)|0);let h=s,u=h;const g=5e5;let f=0;s>=g&&(f=Math.floor(s/g)*g,f=Math.floor(f/i)*i,u-=f);const p=[],_=e+(t-e)/2;let v=-1;for(let S=n;S<=r;S++){if(v===-1){const L=h,D=h+i;(L<=_&&__)&&(v=S)}for(h+=i,p[S-n]=u,u+=i;c===S;)u+=d,h+=d,a++,a>=l?c=r+1:(c=this.getAfterLineNumberForWhitespaceIndex(a)|0,d=this.getHeightForWhitespaceIndex(a)|0);if(h>=t){r=S;break}}v===-1&&(v=r);const b=this.getVerticalOffsetForLineNumber(r)|0;let C=n,w=r;return Ct&&w--,{bigNumbersDelta:f,startLineNumber:n,endLineNumber:r,relativeVerticalOffset:p,centeredLineNumber:v,completelyVisibleStartLineNumber:C,completelyVisibleEndLineNumber:w,lineHeight:this._lineHeight}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e=e|0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let i;t>=1?i=this._lineHeight*t:i=0;let n;return e>0?n=this.getWhitespacesAccumulatedHeight(e-1):n=0,i+n+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e=e|0;let t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;const n=this.getVerticalOffsetForWhitespaceIndex(i),s=this.getHeightForWhitespaceIndex(i);if(e>=n+s)return-1;for(;t=a+l)t=r+1;else{if(e>=a)return r;i=r}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e=e|0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0||t>=this.getWhitespacesCount())return null;const i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;const n=this.getHeightForWhitespaceIndex(t),s=this.getIdForWhitespaceIndex(t),r=this.getAfterLineNumberForWhitespaceIndex(t);return{id:s,afterLineNumber:r,verticalOffset:i,height:n}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e=e|0,t=t|0;const i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),n=this.getWhitespacesCount()-1;if(i<0)return[];const s=[];for(let r=i;r<=n;r++){const a=this.getVerticalOffsetForWhitespaceIndex(r),l=this.getHeightForWhitespaceIndex(r);if(a>=t)break;s.push({id:this.getIdForWhitespaceIndex(r),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(r),verticalOffset:a,height:l})}return s}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].height}};X8.INSTANCE_COUNT=0;const rse=125;class z_{constructor(e,t,i,n){e=e|0,t=t|0,i=i|0,n=n|0,e<0&&(e=0),t<0&&(t=0),i<0&&(i=0),n<0&&(n=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=n,this.scrollHeight=Math.max(i,n)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class ase extends W{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new O),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new z_(0,0,0,0),this._scrollable=this._register(new Ap({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:t})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const i=t.contentWidth!==e.contentWidth,n=t.contentHeight!==e.contentHeight;(i||n)&&this._onDidContentSizeChange.fire(new u2(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}}class lse extends W{constructor(e,t,i){super(),this._configuration=e;const n=this._configuration.options,s=n.get(145),r=n.get(84);this._linesLayout=new X8(t,n.get(67),r.top,r.bottom),this._maxLineWidth=0,this._overlayWidgetsMinWidth=0,this._scrollable=this._register(new ase(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new z_(s.contentWidth,0,s.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)?rse:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(67)&&this._linesLayout.setLineHeight(t.get(67)),e.hasChanged(84)){const i=t.get(84);this._linesLayout.setPadding(i.top,i.bottom)}if(e.hasChanged(145)){const i=t.get(145),n=i.contentWidth,s=i.height,r=this._scrollable.getScrollDimensions(),a=r.contentWidth;this._scrollable.setScrollDimensions(new z_(n,r.contentWidth,s,this._getContentHeight(n,s,a)))}else this._updateHeight();e.hasChanged(114)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const n=this._configuration.options.get(103);return n.horizontal===2||e>=t?0:n.horizontalScrollbarSize}_getContentHeight(e,t,i){const n=this._configuration.options;let s=this._linesLayout.getLinesTotalHeight();return n.get(105)?s+=Math.max(0,t-n.get(67)-n.get(84).bottom):n.get(103).ignoreHorizontalScrollbarInContentHeight||(s+=this._getHorizontalScrollbarHeight(e,i)),s}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,n=e.contentWidth;this._scrollable.setScrollDimensions(new z_(t,e.contentWidth,i,this._getContentHeight(t,i,n)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new UF(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new UF(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(){const e=this._configuration.options,t=this._maxLineWidth,i=e.get(146),n=e.get(50),s=e.get(145);if(i.isViewportWrapping){const r=e.get(73);return t>s.contentWidth+n.typicalHalfwidthCharacterWidth&&r.enabled&&r.side==="right"?t+s.verticalScrollbarWidth:t}else{const r=e.get(104)*n.typicalHalfwidthCharacterWidth,a=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+r+s.verticalScrollbarWidth,a,this._overlayWidgetsMinWidth)}}setMaxLineWidth(e){this._maxLineWidth=e,this._updateContentWidth()}setOverlayWidgetsMinWidth(e){this._overlayWidgetsMinWidth=e,this._updateContentWidth()}_updateContentWidth(){const e=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new z_(e.width,this._computeContentWidth(),e.height,e.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t),n=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i);return{scrollTop:t,scrollTopWithoutViewZones:t-n,scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetAfterLineNumber(e,t)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.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(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){t===1?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}deltaScrollNow(e,t){const i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}class dse{constructor(e,t,i,n,s){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=n,this._coordinatesConverter=s,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(e){const t=e.id;let i=this._decorationsCache[t];if(!i){const n=e.range,s=e.options;let r;if(s.isWholeLine){const a=this._coordinatesConverter.convertModelPositionToViewPosition(new F(n.startLineNumber,1),0,!1,!0),l=this._coordinatesConverter.convertModelPositionToViewPosition(new F(n.endLineNumber,this.model.getLineMaxColumn(n.endLineNumber)),1);r=new x(a.lineNumber,a.column,l.lineNumber,l.column)}else r=this._coordinatesConverter.convertModelRangeToViewRange(n,1);i=new OW(r,s),this._decorationsCache[t]=i}return i}getMinimapDecorationsInRange(e){return this._getDecorationsInRange(e,!0,!1).decorations}getDecorationsViewportData(e){let t=this._cachedModelDecorationsResolver!==null;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(e,!1,!1),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(e,t=!1,i=!1){const n=new x(e,this._linesCollection.getViewLineMinColumn(e),e,this._linesCollection.getViewLineMaxColumn(e));return this._getDecorationsInRange(n,t,i).inlineDecorations[0]}_getDecorationsInRange(e,t,i){const n=this._linesCollection.getDecorationsInRange(e,this.editorId,Pw(this.configuration.options),t,i),s=e.startLineNumber,r=e.endLineNumber,a=[];let l=0;const d=[];for(let c=s;c<=r;c++)d[c-s]=[];for(let c=0,h=n.length;ct===1)}function _2(o,e){return J8(o,e.range,t=>t===2)}function J8(o,e,t){for(let i=e.startLineNumber;i<=e.endLineNumber;i++){const n=o.tokenization.getLineTokens(i),s=i===e.startLineNumber,r=i===e.endLineNumber;let a=s?n.findTokenIndexAtOffset(e.startColumn-1):0;for(;ae.endColumn-1);){if(!t(n.getStandardTokenType(a)))return!1;a++}}return!0}function rk(o,e){return o===null?e?bS.INSTANCE:CS.INSTANCE:new cse(o,e)}class cse{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,i){this._assertVisible();const n=i>0?this._projectionData.breakOffsets[i-1]:0,s=this._projectionData.breakOffsets[i];let r;if(this._projectionData.injectionOffsets!==null){const a=this._projectionData.injectionOffsets.map((d,c)=>new Ta(0,0,d+1,this._projectionData.injectionOptions[c],0));r=Ta.applyInjectedText(e.getLineContent(t),a).substring(n,s)}else r=e.getValueInRange({startLineNumber:t,startColumn:n+1,endLineNumber:t,endColumn:s+1});return i>0&&(r=n5(this._projectionData.wrappedTextIndentLength)+r),r}getViewLineLength(e,t,i){return this._assertVisible(),this._projectionData.getLineLength(i)}getViewLineMinColumn(e,t,i){return this._assertVisible(),this._projectionData.getMinOutputOffset(i)+1}getViewLineMaxColumn(e,t,i){return this._assertVisible(),this._projectionData.getMaxOutputOffset(i)+1}getViewLineData(e,t,i){const n=new Array;return this.getViewLinesData(e,t,i,1,0,[!0],n),n[0]}getViewLinesData(e,t,i,n,s,r,a){this._assertVisible();const l=this._projectionData,d=l.injectionOffsets,c=l.injectionOptions;let h=null;if(d){h=[];let g=0,f=0;for(let p=0;p0?l.breakOffsets[p-1]:0,b=l.breakOffsets[p];for(;fb)break;if(v0?l.wrappedTextIndentLength:0,I=D+Math.max(w-v,0),T=D+Math.min(S-v,b-v);I!==T&&_.push(new hQ(I,T,L.inlineClassName,L.inlineClassNameAffectsLetterSpacing))}}if(S<=b)g+=C,f++;else break}}}let u;d?u=e.tokenization.getLineTokens(t).withInserted(d.map((g,f)=>({offset:g,text:c[f].content,tokenMetadata:Vi.defaultTokenMetadata}))):u=e.tokenization.getLineTokens(t);for(let g=i;g0?n.wrappedTextIndentLength:0,r=i>0?n.breakOffsets[i-1]:0,a=n.breakOffsets[i],l=e.sliceAndInflate(r,a,s);let d=l.getLineContent();i>0&&(d=n5(n.wrappedTextIndentLength)+d);const c=this._projectionData.getMinOutputOffset(i)+1,h=d.length+1,u=i+1=ak.length)for(let e=1;e<=o;e++)ak[e]=hse(e);return ak[o]}function hse(o){return new Array(o+1).join(" ")}class use{constructor(e,t,i,n,s,r,a,l,d,c){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=i,this._monospaceLineBreaksComputerFactory=n,this.fontInfo=s,this.tabSize=r,this.wrappingStrategy=a,this.wrappingColumn=l,this.wrappingIndent=d,this.wordBreak=c,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new fse(this)}_constructLines(e,t){this.modelLineProjections=[],e&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));const i=this.model.getLinesContent(),n=this.model.getInjectedTextDecorations(this._editorId),s=i.length,r=this.createLineBreaksComputer(),a=new Zd(Ta.fromDecorations(n));for(let p=0;pv.lineNumber===p+1);r.addRequest(i[p],_,t?t[p]:null)}const l=r.finalize(),d=[],c=this.hiddenAreasDecorationIds.map(p=>this.model.getDecorationRange(p)).sort(x.compareRangesUsingStarts);let h=1,u=0,g=-1,f=g+1=h&&_<=u,b=rk(l[p],!v);d[p]=b.getViewLineCount(),this.modelLineProjections[p]=b}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new BZ(d)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map(e=>this.model.getDecorationRange(e))}setHiddenAreas(e){const t=e.map(u=>this.model.validateRange(u)),i=gse(t),n=this.hiddenAreasDecorationIds.map(u=>this.model.getDecorationRange(u)).sort(x.compareRangesUsingStarts);if(i.length===n.length){let u=!1;for(let g=0;g({range:u,options:je.EMPTY}));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,s);const r=i;let a=1,l=0,d=-1,c=d+1=a&&g<=l?this.modelLineProjections[u].isVisible()&&(this.modelLineProjections[u]=this.modelLineProjections[u].setVisible(!1),f=!0):(h=!0,this.modelLineProjections[u].isVisible()||(this.modelLineProjections[u]=this.modelLineProjections[u].setVisible(!0),f=!0)),f){const p=this.modelLineProjections[u].getViewLineCount();this.projectedModelLineLineCounts.setValue(u,p)}}return h||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return e<1||e>this.modelLineProjections.length?!1:this.modelLineProjections[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.modelLineProjections.length?1:this.modelLineProjections[e-1].getViewLineCount()}setTabSize(e){return this.tabSize===e?!1:(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,i,n,s){const r=this.fontInfo.equals(e),a=this.wrappingStrategy===t,l=this.wrappingColumn===i,d=this.wrappingIndent===n,c=this.wordBreak===s;if(r&&a&&l&&d&&c)return!1;const h=r&&a&&!l&&d&&c;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=n,this.wordBreak=s;let u=null;if(h){u=[];for(let g=0,f=this.modelLineProjections.length;g2&&!this.modelLineProjections[t-2].isVisible(),r=t===1?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1;let a=0;const l=[],d=[];for(let c=0,h=n.length;cl?(c=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,h=c+l-1,f=h+1,p=f+(s-l)-1,d=!0):st?t:e|0}getActiveIndentGuide(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);const n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),s=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),r=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),a=this.model.guides.getActiveIndentGuide(n.lineNumber,s.lineNumber,r.lineNumber),l=this.convertModelPositionToViewPosition(a.startLineNumber,1),d=this.convertModelPositionToViewPosition(a.endLineNumber,this.model.getLineMaxColumn(a.endLineNumber));return{startLineNumber:l.lineNumber,endLineNumber:d.lineNumber,indent:a.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);const t=this.projectedModelLineLineCounts.getIndexOf(e-1),i=t.index,n=t.remainder;return new s5(i+1,n)}getMinColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getMaxColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new F(e.modelLineNumber,n)}getModelEndPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new F(e.modelLineNumber,n)}getViewLineInfosGroupedByModelRanges(e,t){const i=this.getViewLineInfo(e),n=this.getViewLineInfo(t),s=new Array;let r=this.getModelStartPositionOfViewLine(i),a=new Array;for(let l=i.modelLineNumber;l<=n.modelLineNumber;l++){const d=this.modelLineProjections[l-1];if(d.isVisible()){const c=l===i.modelLineNumber?i.modelLineWrappedLineIdx:0,h=l===n.modelLineNumber?n.modelLineWrappedLineIdx+1:d.getViewLineCount();for(let u=c;u{if(g.forWrappedLinesAfterColumn!==-1&&this.modelLineProjections[c.modelLineNumber-1].getViewPositionOfModelPosition(0,g.forWrappedLinesAfterColumn).lineNumber>=c.modelLineWrappedLineIdx||g.forWrappedLinesBeforeOrAtColumn!==-1&&this.modelLineProjections[c.modelLineNumber-1].getViewPositionOfModelPosition(0,g.forWrappedLinesBeforeOrAtColumn).lineNumberc.modelLineWrappedLineIdx)return}const p=this.convertModelPositionToViewPosition(c.modelLineNumber,g.horizontalLine.endColumn),_=this.modelLineProjections[c.modelLineNumber-1].getViewPositionOfModelPosition(0,g.horizontalLine.endColumn);return _.lineNumber===c.modelLineWrappedLineIdx?new zu(g.visibleColumn,f,g.className,new cv(g.horizontalLine.top,p.column),-1,-1):_.lineNumber!!g))}}return r}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),n=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let s=[];const r=[],a=[],l=i.lineNumber-1,d=n.lineNumber-1;let c=null;for(let f=l;f<=d;f++){const p=this.modelLineProjections[f];if(p.isVisible()){const _=p.getViewLineNumberOfModelPosition(0,f===l?i.column:1),v=p.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(f+1)),b=v-_+1;let C=0;b>1&&p.getViewLineMinColumn(this.model,f+1,v)===1&&(C=_===0?1:2),r.push(b),a.push(C),c===null&&(c=new F(f+1,0))}else c!==null&&(s=s.concat(this.model.guides.getLinesIndentGuides(c.lineNumber,f)),c=null)}c!==null&&(s=s.concat(this.model.guides.getLinesIndentGuides(c.lineNumber,n.lineNumber)),c=null);const h=t-e+1,u=new Array(h);let g=0;for(let f=0,p=s.length;ft&&(f=!0,g=t-s+1),h.getViewLinesData(this.model,d+1,u,g,s-e,i,l),s+=g,f)break}return l}validateViewPosition(e,t,i){e=this._toValidViewLineNumber(e);const n=this.projectedModelLineLineCounts.getIndexOf(e-1),s=n.index,r=n.remainder,a=this.modelLineProjections[s],l=a.getViewLineMinColumn(this.model,s+1,r),d=a.getViewLineMaxColumn(this.model,s+1,r);td&&(t=d);const c=a.getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new F(s+1,c)).equals(i)?new F(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)}validateViewRange(e,t){const i=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),n=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new x(i.lineNumber,i.column,n.lineNumber,n.column)}convertViewPositionToModelPosition(e,t){const i=this.getViewLineInfo(e),n=this.modelLineProjections[i.modelLineNumber-1].getModelColumnOfViewPosition(i.modelLineWrappedLineIdx,t);return this.model.validatePosition(new F(i.modelLineNumber,n))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new x(t.lineNumber,t.column,i.lineNumber,i.column)}convertModelPositionToViewPosition(e,t,i=2,n=!1,s=!1){const r=this.model.validatePosition(new F(e,t)),a=r.lineNumber,l=r.column;let d=a-1,c=!1;if(s)for(;d0&&!this.modelLineProjections[d].isVisible();)d--,c=!0;if(d===0&&!this.modelLineProjections[d].isVisible())return new F(n?0:1,1);const h=1+this.projectedModelLineLineCounts.getPrefixSum(d);let u;return c?s?u=this.modelLineProjections[d].getViewPositionOfModelPosition(h,1,i):u=this.modelLineProjections[d].getViewPositionOfModelPosition(h,this.model.getLineMaxColumn(d+1),i):u=this.modelLineProjections[a-1].getViewPositionOfModelPosition(h,l,i),u}convertModelRangeToViewRange(e,t=0){if(e.isEmpty()){const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return x.fromPositions(i)}else{const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),n=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new x(i.lineNumber,i.column,n.lineNumber,n.column)}}getViewLineNumberOfModelPosition(e,t){let i=e-1;if(this.modelLineProjections[i].isVisible()){const s=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(s,t)}for(;i>0&&!this.modelLineProjections[i].isVisible();)i--;if(i===0&&!this.modelLineProjections[i].isVisible())return 1;const n=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(n,this.model.getLineMaxColumn(i+1))}getDecorationsInRange(e,t,i,n,s){const r=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),a=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(a.lineNumber-r.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new x(r.lineNumber,1,a.lineNumber,a.column),t,i,n,s);let l=[];const d=r.lineNumber-1,c=a.lineNumber-1;let h=null;for(let p=d;p<=c;p++)if(this.modelLineProjections[p].isVisible())h===null&&(h=new F(p+1,p===d?r.column:1));else if(h!==null){const v=this.model.getLineMaxColumn(p);l=l.concat(this.model.getDecorationsInRange(new x(h.lineNumber,h.column,p,v),t,i,n)),h=null}h!==null&&(l=l.concat(this.model.getDecorationsInRange(new x(h.lineNumber,h.column,a.lineNumber,a.column),t,i,n)),h=null),l.sort((p,_)=>{const v=x.compareRangesUsingStarts(p.range,_.range);return v===0?p.id<_.id?-1:p.id>_.id?1:0:v});const u=[];let g=0,f=null;for(const p of l){const _=p.id;f!==_&&(f=_,u[g++]=p)}return u}getInjectedTextAt(e){const t=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[t.modelLineNumber-1].getInjectedTextAt(t.modelLineWrappedLineIdx,e.column)}normalizePosition(e,t){const i=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[i.modelLineNumber-1].normalizePosition(i.modelLineWrappedLineIdx,e,t)}getLineIndentColumn(e){const t=this.getViewLineInfo(e);return t.modelLineWrappedLineIdx===0?this.model.getLineIndentColumn(t.modelLineNumber):0}}function gse(o){if(o.length===0)return[];const e=o.slice();e.sort(x.compareRangesUsingStarts);const t=[];let i=e[0].startLineNumber,n=e[0].endLineNumber;for(let s=1,r=e.length;sn+1?(t.push(new x(i,1,n,1)),i=a.startLineNumber,n=a.endLineNumber):a.endLineNumber>n&&(n=a.endLineNumber)}return t.push(new x(i,1,n,1)),t}class s5{constructor(e,t){this.modelLineNumber=e,this.modelLineWrappedLineIdx=t}}class o5{constructor(e,t){this.modelRange=e,this.viewLines=t}}class fse{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t,i,n){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t,i,n)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}}class mse{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new pse(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,i,n){return!1}createLineBreaksComputer(){const e=[];return{addRequest:(t,i,n)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,i){return new bN(t,i)}onModelLinesInserted(e,t,i,n){return new CN(t,i)}onModelLineChanged(e,t,i){return[!1,new Q8(t,1),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,i){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,t,i){return new Array(t-e+1).fill([])}getViewLinesIndentGuides(e,t){const i=t-e+1,n=new Array(i);for(let s=0;st)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,t){return e}}const cu=Rl.Right;class _se{constructor(e){this.persist=0,this._requiredLanes=1,this.lanes=new Uint8Array(Math.ceil((e+1)*cu/8))}reset(e){const t=Math.ceil((e+1)*cu/8);this.lanes.length>>3]|=1<>>3]&1<>>3]&1<this._updateConfigurationViewLineCountNow(),0)),this._hasFocus=!1,this._viewportStart=v2.create(this.model),this.glyphLanes=new _se(0),this.model.isTooLargeForTokenization())this._lines=new mse(this.model);else{const c=this._configuration.options,h=c.get(50),u=c.get(139),g=c.get(146),f=c.get(138),p=c.get(129);this._lines=new use(this._editorId,this.model,n,s,h,this.model.getOptions().tabSize,u,g.wrappingColumn,f,p)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new Jne(i,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new lse(this._configuration,this.getLineCount(),r)),this._register(this.viewLayout.onDidScroll(c=>{c.scrollTopChanged&&this._handleVisibleLinesChanged(),c.scrollTopChanged&&this._viewportStart.invalidate(),this._eventDispatcher.emitSingleViewEvent(new Fne(c)),this._eventDispatcher.emitOutgoingEvent(new f2(c.oldScrollWidth,c.oldScrollLeft,c.oldScrollHeight,c.oldScrollTop,c.scrollWidth,c.scrollLeft,c.scrollHeight,c.scrollTop))})),this._register(this.viewLayout.onDidContentSizeChange(c=>{this._eventDispatcher.emitOutgoingEvent(c)})),this._decorations=new dse(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast(c=>{try{const h=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(h,c)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(H0.getInstance().onDidChange(()=>{this._eventDispatcher.emitSingleViewEvent(new Hne)})),this._register(this._themeService.onDidColorThemeChange(c=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new Bne(c))})),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStart.dispose(),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}getModelVisibleRanges(){const e=this.viewLayout.getLinesViewportData(),t=new x(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber));return this._toModelVisibleRanges(t)}visibleLinesStabilized(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!0)}_handleVisibleLinesChanged(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!1)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new Pne(e)),this._eventDispatcher.emitOutgoingEvent(new g2(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new Tne)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new Mne)}_captureStableViewport(){if(this._viewportStart.isValid&&this.viewLayout.getCurrentScrollTop()>0){const e=new F(this._viewportStart.viewLineNumber,this.getLineMinColumn(this._viewportStart.viewLineNumber)),t=this.coordinatesConverter.convertViewPositionToModelPosition(e);return new a5(t,this._viewportStart.startLineDelta)}return new a5(null,0)}_onConfigurationChanged(e,t){const i=this._captureStableViewport(),n=this._configuration.options,s=n.get(50),r=n.get(139),a=n.get(146),l=n.get(138),d=n.get(129);this._lines.setWrappingSettings(s,r,a.wrappingColumn,l,d)&&(e.emitViewEvent(new GC),e.emitViewEvent(new ZC),e.emitViewEvent(new du(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(91)&&(this._decorations.reset(),e.emitViewEvent(new du(null))),t.hasChanged(98)&&(this._decorations.reset(),e.emitViewEvent(new du(null))),e.emitViewEvent(new Rne(t)),this.viewLayout.onConfigurationChanged(t),i.recoverViewportStart(this.coordinatesConverter,this.viewLayout),gf.shouldRecreate(t)&&(this.cursorConfig=new gf(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText(e=>{try{const i=this._eventDispatcher.beginEmitViewEvents();let n=!1,s=!1;const r=e instanceof eg?e.rawContentChangedEvent.changes:e.changes,a=e instanceof eg?e.rawContentChangedEvent.versionId:null,l=this._lines.createLineBreaksComputer();for(const h of r)switch(h.changeType){case 4:{for(let u=0;u!p.ownerId||p.ownerId===this._editorId)),l.addRequest(g,f,null)}break}case 2:{let u=null;h.injectedText&&(u=h.injectedText.filter(g=>!g.ownerId||g.ownerId===this._editorId)),l.addRequest(h.detail,u,null);break}}const d=l.finalize(),c=new Zd(d);for(const h of r)switch(h.changeType){case 1:{this._lines.onModelFlushed(),i.emitViewEvent(new GC),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),n=!0;break}case 3:{const u=this._lines.onModelLinesDeleted(a,h.fromLineNumber,h.toLineNumber);u!==null&&(i.emitViewEvent(u),this.viewLayout.onLinesDeleted(u.fromLineNumber,u.toLineNumber)),n=!0;break}case 4:{const u=c.takeCount(h.detail.length),g=this._lines.onModelLinesInserted(a,h.fromLineNumber,h.toLineNumber,u);g!==null&&(i.emitViewEvent(g),this.viewLayout.onLinesInserted(g.fromLineNumber,g.toLineNumber)),n=!0;break}case 2:{const u=c.dequeue(),[g,f,p,_]=this._lines.onModelLineChanged(a,h.lineNumber,u);s=g,f&&i.emitViewEvent(f),p&&(i.emitViewEvent(p),this.viewLayout.onLinesInserted(p.fromLineNumber,p.toLineNumber)),_&&(i.emitViewEvent(_),this.viewLayout.onLinesDeleted(_.fromLineNumber,_.toLineNumber));break}case 5:break}a!==null&&this._lines.acceptVersionId(a),this.viewLayout.onHeightMaybeChanged(),!n&&s&&(i.emitViewEvent(new ZC),i.emitViewEvent(new du(null)),this._cursor.onLineMappingChanged(i),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}const t=this._viewportStart.isValid;if(this._viewportStart.invalidate(),this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&t){const i=this.model._getTrackedRange(this._viewportStart.modelTrackedRange);if(i){const n=this.coordinatesConverter.convertModelPositionToViewPosition(i.getStartPosition()),s=this.viewLayout.getVerticalOffsetForLineNumber(n.lineNumber);this.viewLayout.setScrollPosition({scrollTop:s+this._viewportStart.startLineDelta},1)}}try{const i=this._eventDispatcher.beginEmitViewEvents();e instanceof eg&&i.emitOutgoingEvent(new Yne(e.contentChangedEvent)),this._cursor.onModelContentChanged(i,e)}finally{this._eventDispatcher.endEmitViewEvents()}this._handleVisibleLinesChanged()})),this._register(this.model.onDidChangeTokens(e=>{const t=[];for(let i=0,n=e.ranges.length;i{this._eventDispatcher.emitSingleViewEvent(new One),this.cursorConfig=new gf(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Zne(e))})),this._register(this.model.onDidChangeLanguage(e=>{this.cursorConfig=new gf(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Gne(e))})),this._register(this.model.onDidChangeOptions(e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const t=this._eventDispatcher.beginEmitViewEvents();t.emitViewEvent(new GC),t.emitViewEvent(new ZC),t.emitViewEvent(new du(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new gf(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Qne(e))})),this._register(this.model.onDidChangeDecorations(e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new du(e)),this._eventDispatcher.emitOutgoingEvent(new qne(e))}))}setHiddenAreas(e,t){var i;this.hiddenAreasModel.setHiddenAreas(t,e);const n=this.hiddenAreasModel.getMergedRanges();if(n===this.previousHiddenAreas)return;this.previousHiddenAreas=n;const s=this._captureStableViewport();let r=!1;try{const a=this._eventDispatcher.beginEmitViewEvents();r=this._lines.setHiddenAreas(n),r&&(a.emitViewEvent(new GC),a.emitViewEvent(new ZC),a.emitViewEvent(new du(null)),this._cursor.onLineMappingChanged(a),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged());const l=(i=s.viewportStartModelPosition)===null||i===void 0?void 0:i.lineNumber;l&&n.some(c=>c.startLineNumber<=l&&l<=c.endLineNumber)||s.recoverViewportStart(this.coordinatesConverter,this.viewLayout)}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),r&&this._eventDispatcher.emitOutgoingEvent(new jne)}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(145),t=this._configuration.options.get(67),i=Math.max(20,Math.round(e.height/t)),n=this.viewLayout.getLinesViewportData(),s=Math.max(1,n.completelyVisibleStartLineNumber-i),r=Math.min(this.getLineCount(),n.completelyVisibleEndLineNumber+i);return this._toModelVisibleRanges(new x(s,this.getLineMinColumn(s),r,this.getLineMaxColumn(r)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}getHiddenAreas(){return this._lines.getHiddenAreas()}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),i=this._lines.getHiddenAreas();if(i.length===0)return[t];const n=[];let s=0,r=t.startLineNumber,a=t.startColumn;const l=t.endLineNumber,d=t.endColumn;for(let c=0,h=i.length;cl||(r"u")return this._reduceRestoreStateCompatibility(e);const t=this.model.validatePosition(e.firstPosition),i=this.coordinatesConverter.convertModelPositionToViewPosition(t),n=this.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:n}}_reduceRestoreStateCompatibility(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getLineCount(){return this._lines.getViewLineCount()}setViewport(e,t,i){this._viewportStart.update(this,e)}getActiveIndentGuide(e,t,i){return this._lines.getActiveIndentGuide(e,t,i)}getLinesIndentGuides(e,t){return this._lines.getViewLinesIndentGuides(e,t)}getBracketGuidesInRangeByLine(e,t,i,n){return this._lines.getViewLinesBracketGuides(e,t,i,n)}getLineContent(e){return this._lines.getViewLineContent(e)}getLineLength(e){return this._lines.getViewLineLength(e)}getLineMinColumn(e){return this._lines.getViewLineMinColumn(e)}getLineMaxColumn(e){return this._lines.getViewLineMaxColumn(e)}getLineFirstNonWhitespaceColumn(e){const t=ss(this.getLineContent(e));return t===-1?0:t+1}getLineLastNonWhitespaceColumn(e){const t=ba(this.getLineContent(e));return t===-1?0:t+2}getMinimapDecorationsInRange(e){return this._decorations.getMinimapDecorationsInRange(e)}getDecorationsInViewport(e){return this._decorations.getDecorationsViewportData(e).decorations}getInjectedTextAt(e){return this._lines.getInjectedTextAt(e)}getViewportViewLineRenderingData(e,t){const n=this._decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return this._getViewLineRenderingData(t,n)}getViewLineRenderingData(e){const t=this._decorations.getInlineDecorationsOnLine(e);return this._getViewLineRenderingData(e,t)}_getViewLineRenderingData(e,t){const i=this.model.mightContainRTL(),n=this.model.mightContainNonBasicASCII(),s=this.getTabSize(),r=this._lines.getViewLineData(e);return r.inlineDecorations&&(t=[...t,...r.inlineDecorations.map(a=>a.toInlineDecoration(e))]),new Wo(r.minColumn,r.maxColumn,r.content,r.continuesWithWrappedLine,i,n,r.tokens,t,s,r.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,i){const n=this._lines.getViewLinesData(e,t,i);return new cQ(this.getTabSize(),n)}getAllOverviewRulerDecorations(e){const t=this.model.getOverviewRulerDecorations(this._editorId,Pw(this._configuration.options)),i=new bse;for(const n of t){const s=n.options,r=s.overviewRuler;if(!r)continue;const a=r.position;if(a===0)continue;const l=r.getColor(e.value),d=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.startLineNumber,n.range.startColumn),c=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.endLineNumber,n.range.endColumn);i.accept(l,s.zIndex,d,c,a)}return i.asArray}_invalidateDecorationsColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const i=t.options.overviewRuler;i==null||i.invalidateCachedColor();const n=t.options.minimap;n==null||n.invalidateCachedColor()}}getValueInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(i,t)}getValueLengthInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueLengthInRange(i,t)}modifyPosition(e,t){const i=this.coordinatesConverter.convertViewPositionToModelPosition(e),n=this.model.modifyPosition(i,t);return this.coordinatesConverter.convertModelPositionToViewPosition(n)}deduceModelPositionRelativeToViewPosition(e,t,i){const n=this.coordinatesConverter.convertViewPositionToModelPosition(e);this.model.getEOL().length===2&&(t<0?t-=i:t+=i);const r=this.model.getOffsetAt(n)+t;return this.model.getPositionAt(r)}getPlainTextToCopy(e,t,i){const n=i?`\r +`:this.model.getEOL();e=e.slice(0),e.sort(x.compareRangesUsingStarts);let s=!1,r=!1;for(const l of e)l.isEmpty()?s=!0:r=!0;if(!r){if(!t)return"";const l=e.map(c=>c.startLineNumber);let d="";for(let c=0;c0&&l[c-1]===l[c]||(d+=this.model.getLineContent(l[c])+n);return d}if(s&&t){const l=[];let d=0;for(const c of e){const h=c.startLineNumber;c.isEmpty()?h!==d&&l.push(this.model.getLineContent(h)):l.push(this.model.getValueInRange(c,i?2:0)),d=h}return l.length===1?l[0]:l}const a=[];for(const l of e)l.isEmpty()||a.push(this.model.getValueInRange(l,i?2:0));return a.length===1?a[0]:a}getRichTextToCopy(e,t){const i=this.model.getLanguageId();if(i===Ao||e.length!==1)return null;let n=e[0];if(n.isEmpty()){if(!t)return null;const c=n.startLineNumber;n=new x(c,this.model.getLineMinColumn(c),c,this.model.getLineMaxColumn(c))}const s=this._configuration.options.get(50),r=this._getColorMap(),l=/[:;\\\/<>]/.test(s.fontFamily)||s.fontFamily===Us.fontFamily;let d;return l?d=Us.fontFamily:(d=s.fontFamily,d=d.replace(/"/g,"'"),/[,']/.test(d)||/[+ ]/.test(d)&&(d=`'${d}'`),d=`${d}, ${Us.fontFamily}`),{mode:i,html:`
`+this._getHTMLToCopy(n,r)+"
"}}_getHTMLToCopy(e,t){const i=e.startLineNumber,n=e.startColumn,s=e.endLineNumber,r=e.endColumn,a=this.getTabSize();let l="";for(let d=i;d<=s;d++){const c=this.model.tokenization.getLineTokens(d),h=c.getLineContent(),u=d===i?n-1:0,g=d===s?r-1:h.length;h===""?l+="
":l+=nse(h,c.inflate(),t,u,g,a,Fn)}return l}_getColorMap(){const e=gi.getColorMap(),t=["#000000"];if(e)for(let i=1,n=e.length;ithis._cursor.setStates(n,e,t,i))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t,i=0){this._withViewEventsCollector(n=>this._cursor.setSelections(n,e,t,i))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector(t=>this._cursor.restoreState(t,e))}_executeCursorEdit(e){if(this._cursor.context.cursorConfig.readOnly){this._eventDispatcher.emitOutgoingEvent(new Kne);return}this._withViewEventsCollector(e)}executeEdits(e,t,i){this._executeCursorEdit(n=>this._cursor.executeEdits(n,e,t,i))}startComposition(){this._executeCursorEdit(e=>this._cursor.startComposition(e))}endComposition(e){this._executeCursorEdit(t=>this._cursor.endComposition(t,e))}type(e,t){this._executeCursorEdit(i=>this._cursor.type(i,e,t))}compositionType(e,t,i,n,s){this._executeCursorEdit(r=>this._cursor.compositionType(r,e,t,i,n,s))}paste(e,t,i,n){this._executeCursorEdit(s=>this._cursor.paste(s,e,t,i,n))}cut(e){this._executeCursorEdit(t=>this._cursor.cut(t,e))}executeCommand(e,t){this._executeCursorEdit(i=>this._cursor.executeCommand(i,e,t))}executeCommands(e,t){this._executeCursorEdit(i=>this._cursor.executeCommands(i,e,t))}revealAllCursors(e,t,i=!1){this._withViewEventsCollector(n=>this._cursor.revealAll(n,e,i,0,t,0))}revealPrimaryCursor(e,t,i=!1){this._withViewEventsCollector(n=>this._cursor.revealPrimary(n,e,i,0,t,0))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),i=new x(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(n=>n.emitViewEvent(new bv(e,!1,i,null,0,!0,0)))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),i=new x(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(n=>n.emitViewEvent(new bv(e,!1,i,null,0,!0,0)))}revealRange(e,t,i,n,s){this._withViewEventsCollector(r=>r.emitViewEvent(new bv(e,!1,i,null,n,t,s)))}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new Vne),this._eventDispatcher.emitOutgoingEvent(new $ne))}_withViewEventsCollector(e){try{const t=this._eventDispatcher.beginEmitViewEvents();return e(t)}finally{this._eventDispatcher.endEmitViewEvents()}}batchEvents(e){this._withViewEventsCollector(()=>{e()})}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}};class v2{static create(e){const t=e._setTrackedRange(null,new x(1,1,1,1),1);return new v2(e,1,!1,t,0)}get viewLineNumber(){return this._viewLineNumber}get isValid(){return this._isValid}get modelTrackedRange(){return this._modelTrackedRange}get startLineDelta(){return this._startLineDelta}constructor(e,t,i,n,s){this._model=e,this._viewLineNumber=t,this._isValid=i,this._modelTrackedRange=n,this._startLineDelta=s}dispose(){this._model._setTrackedRange(this._modelTrackedRange,null,1)}update(e,t){const i=e.coordinatesConverter.convertViewPositionToModelPosition(new F(t,e.getLineMinColumn(t))),n=e.model._setTrackedRange(this._modelTrackedRange,new x(i.lineNumber,i.column,i.lineNumber,i.column),1),s=e.viewLayout.getVerticalOffsetForLineNumber(t),r=e.viewLayout.getCurrentScrollTop();this._viewLineNumber=t,this._isValid=!0,this._modelTrackedRange=n,this._startLineDelta=r-s}invalidate(){this._isValid=!1}}class bse{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,t,i,n,s){const r=this._asMap[e];if(r){const a=r.data,l=a[a.length-3],d=a[a.length-1];if(l===s&&d+1>=i){n>d&&(a[a.length-1]=n);return}a.push(s,i,n)}else{const a=new tb(e,t,[s,i,n]);this._asMap[e]=a,this.asArray.push(a)}}}class Cse{constructor(){this.hiddenAreas=new Map,this.shouldRecompute=!1,this.ranges=[]}setHiddenAreas(e,t){const i=this.hiddenAreas.get(e);i&&r5(i,t)||(this.hiddenAreas.set(e,t),this.shouldRecompute=!0)}getMergedRanges(){if(!this.shouldRecompute)return this.ranges;this.shouldRecompute=!1;const e=Array.from(this.hiddenAreas.values()).reduce((t,i)=>wse(t,i),[]);return r5(this.ranges,e)?this.ranges:(this.ranges=e,this.ranges)}}function wse(o,e){const t=[];let i=0,n=0;for(;i=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Jl=function(o,e){return function(t,i){e(t,i,o)}},yu;let Jm=yu=class extends W{get isSimpleWidget(){return this._configuration.isSimpleWidget}get contextMenuId(){return this._configuration.contextMenuId}constructor(e,t,i,n,s,r,a,l,d,c,h,u){var g,f;super(),this.languageConfigurationService=h,this._deliveryQueue=Xj(),this._contributions=this._register(new tie),this._onDidDispose=this._register(new O),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new O({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new O({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new O({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new O({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new O({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeModelTokens=this._register(new O({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelTokens=this._onDidChangeModelTokens.event,this._onDidChangeConfiguration=this._register(new O({deliveryQueue:this._deliveryQueue})),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onWillChangeModel=this._register(new O({deliveryQueue:this._deliveryQueue})),this.onWillChangeModel=this._onWillChangeModel.event,this._onDidChangeModel=this._register(new O({deliveryQueue:this._deliveryQueue})),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new O({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new O({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new Yn(this._contributions,this._deliveryQueue)),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new O({deliveryQueue:this._deliveryQueue})),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new l5({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new l5({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new Yn(this._contributions,this._deliveryQueue)),this.onWillType=this._onWillType.event,this._onDidType=this._register(new Yn(this._contributions,this._deliveryQueue)),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new Yn(this._contributions,this._deliveryQueue)),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new Yn(this._contributions,this._deliveryQueue)),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new Yn(this._contributions,this._deliveryQueue)),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new Yn(this._contributions,this._deliveryQueue)),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new Yn(this._contributions,this._deliveryQueue)),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new Yn(this._contributions,this._deliveryQueue)),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new Yn(this._contributions,this._deliveryQueue)),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new Yn(this._contributions,this._deliveryQueue)),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onDropIntoEditor=this._register(new Yn(this._contributions,this._deliveryQueue)),this.onDropIntoEditor=this._onDropIntoEditor.event,this._onContextMenu=this._register(new Yn(this._contributions,this._deliveryQueue)),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new Yn(this._contributions,this._deliveryQueue)),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new Yn(this._contributions,this._deliveryQueue)),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new Yn(this._contributions,this._deliveryQueue)),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new Yn(this._contributions,this._deliveryQueue)),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new Yn(this._contributions,this._deliveryQueue)),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new O({deliveryQueue:this._deliveryQueue})),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new O({deliveryQueue:this._deliveryQueue})),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new O({deliveryQueue:this._deliveryQueue})),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new O({deliveryQueue:this._deliveryQueue})),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event,this._updateCounter=0,this._onBeginUpdate=this._register(new O),this.onBeginUpdate=this._onBeginUpdate.event,this._onEndUpdate=this._register(new O),this.onEndUpdate=this._onEndUpdate.event,this._actions=new Map,this._bannerDomNode=null,this._dropIntoEditorDecorations=this.createDecorationsCollection(),s.willCreateCodeEditor();const p={...t};this._domElement=e,this._overflowWidgetsDomNode=p.overflowWidgetsDomNode,delete p.overflowWidgetsDomNode,this._id=++Lse,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this._telemetryData=i.telemetryData,this._configuration=this._register(this._createConfiguration(i.isSimpleWidget||!1,(g=i.contextMenuId)!==null&&g!==void 0?g:i.isSimpleWidget?k.SimpleEditorContext:k.EditorContext,p,c)),this._register(this._configuration.onDidChange(b=>{this._onDidChangeConfiguration.fire(b);const C=this._configuration.options;if(b.hasChanged(145)){const w=C.get(145);this._onDidLayoutChange.fire(w)}})),this._contextKeyService=this._register(a.createScoped(this._domElement)),this._notificationService=d,this._codeEditorService=s,this._commandService=r,this._themeService=l,this._register(new Dse(this,this._contextKeyService)),this._register(new kse(this,this._contextKeyService,u)),this._instantiationService=this._register(n.createChild(new V0([Me,this._contextKeyService]))),this._modelData=null,this._focusTracker=new Ise(e,this._overflowWidgetsDomNode),this._register(this._focusTracker.onChange(()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())})),this._contentWidgets={},this._overlayWidgets={},this._glyphMarginWidgets={};let _;Array.isArray(i.contributions)?_=i.contributions:_=um.getEditorContributions(),this._contributions.initialize(this,_,this._instantiationService);for(const b of um.getEditorActions()){if(this._actions.has(b.id)){ze(new Error(`Cannot have two actions with the same id ${b.id}`));continue}const C=new E8(b.id,b.label,b.alias,b.metadata,(f=b.precondition)!==null&&f!==void 0?f:void 0,w=>this._instantiationService.invokeFunction(S=>Promise.resolve(b.runEditorCommand(S,this,w))),this._contextKeyService);this._actions.set(C.id,C)}const v=()=>!this._configuration.options.get(91)&&this._configuration.options.get(36).enabled;this._register(new lG(this._domElement,{onDragOver:b=>{if(!v())return;const C=this.getTargetAtClientPoint(b.clientX,b.clientY);C!=null&&C.position&&this.showDropIndicatorAt(C.position)},onDrop:async b=>{if(!v()||(this.removeDropIndicator(),!b.dataTransfer))return;const C=this.getTargetAtClientPoint(b.clientX,b.clientY);C!=null&&C.position&&this._onDropIntoEditor.fire({position:C.position,event:b})},onDragLeave:()=>{this.removeDropIndicator()},onDragEnd:()=>{this.removeDropIndicator()}})),this._codeEditorService.addCodeEditor(this)}writeScreenReaderContent(e){var t;(t=this._modelData)===null||t===void 0||t.view.writeScreenReaderContent(e)}_createConfiguration(e,t,i,n){return new qE(e,t,i,this._domElement,n)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return T0.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(e){return this._instantiationService.invokeFunction(e)}updateOptions(e){this._configuration.updateOptions(e||{})}getOptions(){return this._configuration.options}getOption(e){return this._configuration.options.get(e)}getRawOptions(){return this._configuration.getRawOptions()}getOverflowWidgetsDomNode(){return this._overflowWidgetsDomNode}getConfiguredWordAtPosition(e){return this._modelData?yt.getWordAtPosition(this._modelData.model,this._configuration.options.get(131),this._configuration.options.get(130),e):null}getValue(e=null){if(!this._modelData)return"";const t=!!(e&&e.preserveBOM);let i=0;return e&&e.lineEnding&&e.lineEnding===` +`?i=1:e&&e.lineEnding&&e.lineEnding===`\r +`&&(i=2),this._modelData.model.getValue(i,t)}setValue(e){try{if(this._beginUpdate(),!this._modelData)return;this._modelData.model.setValue(e)}finally{this._endUpdate()}}getModel(){return this._modelData?this._modelData.model:null}setModel(e=null){var t;try{this._beginUpdate();const i=e;if(this._modelData===null&&i===null||this._modelData&&this._modelData.model===i)return;const n={oldModelUrl:((t=this._modelData)===null||t===void 0?void 0:t.model.uri)||null,newModelUrl:(i==null?void 0:i.uri)||null};this._onWillChangeModel.fire(n);const s=this.hasTextFocus(),r=this._detachModel();this._attachModel(i),s&&this.hasModel()&&this.focus(),this._removeDecorationTypes(),this._onDidChangeModel.fire(n),this._postDetachModelCleanup(r),this._contributionsDisposable=this._contributions.onAfterModelAttached()}finally{this._endUpdate()}}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(const e in this._decorationTypeSubtypes){const t=this._decorationTypeSubtypes[e];for(const i in t)this._removeDecorationType(e+"-"+i)}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(e,t,i,n){const s=e.model.validatePosition({lineNumber:t,column:i}),r=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(s);return e.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(r.lineNumber,n)}getTopForLineNumber(e,t=!1){return this._modelData?yu._getVerticalOffsetForPosition(this._modelData,e,1,t):-1}getTopForPosition(e,t){return this._modelData?yu._getVerticalOffsetForPosition(this._modelData,e,t,!1):-1}static _getVerticalOffsetForPosition(e,t,i,n=!1){const s=e.model.validatePosition({lineNumber:t,column:i}),r=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(s);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(r.lineNumber,n)}getBottomForLineNumber(e,t=!1){return this._modelData?yu._getVerticalOffsetAfterPosition(this._modelData,e,1,t):-1}setHiddenAreas(e,t){var i;(i=this._modelData)===null||i===void 0||i.viewModel.setHiddenAreas(e.map(n=>x.lift(n)),t)}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),i=this._modelData.model.getOptions().tabSize;return Yi.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,i)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e,t="api"){if(this._modelData){if(!F.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,i,n){if(!this._modelData)return;if(!x.isIRange(e))throw new Error("Invalid arguments");const s=this._modelData.model.validateRange(e),r=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(s);this._modelData.viewModel.revealRange("api",i,r,t,n)}revealLine(e,t=0){this._revealLine(e,0,t)}revealLineInCenter(e,t=0){this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._revealLine(e,2,t)}revealLineNearTop(e,t=0){this._revealLine(e,5,t)}_revealLine(e,t,i){if(typeof e!="number")throw new Error("Invalid arguments");this._sendRevealRange(new x(e,1,e,1),t,!1,i)}revealPosition(e,t=0){this._revealPosition(e,0,!0,t)}revealPositionInCenter(e,t=0){this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._revealPosition(e,2,!0,t)}revealPositionNearTop(e,t=0){this._revealPosition(e,5,!0,t)}_revealPosition(e,t,i,n){if(!F.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new x(e.lineNumber,e.column,e.lineNumber,e.column),t,i,n)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e,t="api"){const i=_e.isISelection(e),n=x.isIRange(e);if(!i&&!n)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(e,t);else if(n){const s={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(s,t)}}_setSelectionImpl(e,t){if(!this._modelData)return;const i=new _e(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections(t,[i])}revealLines(e,t,i=0){this._revealLines(e,t,0,i)}revealLinesInCenter(e,t,i=0){this._revealLines(e,t,1,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._revealLines(e,t,2,i)}revealLinesNearTop(e,t,i=0){this._revealLines(e,t,5,i)}_revealLines(e,t,i,n){if(typeof e!="number"||typeof t!="number")throw new Error("Invalid arguments");this._sendRevealRange(new x(e,1,t,1),i,!1,n)}revealRange(e,t=0,i=!1,n=!0){this._revealRange(e,i?1:0,n,t)}revealRangeInCenter(e,t=0){this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._revealRange(e,2,!0,t)}revealRangeNearTop(e,t=0){this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._revealRange(e,6,!0,t)}revealRangeAtTop(e,t=0){this._revealRange(e,3,!0,t)}_revealRange(e,t,i,n){if(!x.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(x.lift(e),t,i,n)}setSelections(e,t="api",i=0){if(this._modelData){if(!e||e.length===0)throw new Error("Invalid arguments");for(let n=0,s=e.length;n0&&this._modelData.viewModel.restoreCursorState(i):this._modelData.viewModel.restoreCursorState([i]),this._contributions.restoreViewState(t.contributionsState||{});const n=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(n)}}handleInitialized(){var e;(e=this._getViewModel())===null||e===void 0||e.visibleLinesStabilized()}getContribution(e){return this._contributions.get(e)}getActions(){return Array.from(this._actions.values())}getSupportedActions(){let e=this.getActions();return e=e.filter(t=>t.isSupported()),e}getAction(e){return this._actions.get(e)||null}trigger(e,t,i){i=i||{};try{switch(this._beginUpdate(),t){case"compositionStart":this._startComposition();return;case"compositionEnd":this._endComposition(e);return;case"type":{const s=i;this._type(e,s.text||"");return}case"replacePreviousChar":{const s=i;this._compositionType(e,s.text||"",s.replaceCharCnt||0,0,0);return}case"compositionType":{const s=i;this._compositionType(e,s.text||"",s.replacePrevCharCnt||0,s.replaceNextCharCnt||0,s.positionDelta||0);return}case"paste":{const s=i;this._paste(e,s.text||"",s.pasteOnNewLine||!1,s.multicursorText||null,s.mode||null,s.clipboardEvent);return}case"cut":this._cut(e);return}const n=this.getAction(t);if(n){Promise.resolve(n.run(i)).then(void 0,ze);return}if(!this._modelData||this._triggerEditorCommand(e,t,i))return;this._triggerCommand(t,i)}finally{this._endUpdate()}}_triggerCommand(e,t){this._commandService.executeCommand(e,t)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){this._modelData&&(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){!this._modelData||t.length===0||(e==="keyboard"&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),e==="keyboard"&&this._onDidType.fire(t))}_compositionType(e,t,i,n,s){this._modelData&&this._modelData.viewModel.compositionType(t,i,n,s,e)}_paste(e,t,i,n,s,r){if(!this._modelData)return;const a=this._modelData.viewModel,l=a.getSelection().getStartPosition();a.paste(t,i,n,e);const d=a.getSelection().getStartPosition();e==="keyboard"&&this._onDidPaste.fire({clipboardEvent:r,range:new x(l.lineNumber,l.column,d.lineNumber,d.column),languageId:s})}_cut(e){this._modelData&&this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,i){const n=um.getEditorCommand(t);return n?(i=i||{},i.source=e,this._instantiationService.invokeFunction(s=>{Promise.resolve(n.runEditorCommand(s,this,i)).then(void 0,ze)}),!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(e,t,i){if(!this._modelData||this._configuration.options.get(91))return!1;let n;return i?Array.isArray(i)?n=()=>i:n=i:n=()=>null,this._modelData.viewModel.executeEdits(e,t,n),!0}executeCommand(e,t){this._modelData&&this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){this._modelData&&this._modelData.viewModel.executeCommands(t,e)}createDecorationsCollection(e){return new Ese(this,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,Pw(this._configuration.options)):null}getDecorationsInRange(e){return this._modelData?this._modelData.model.getDecorationsInRange(e,this._id,Pw(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?e.length===0&&t.length===0?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){!this._modelData||e.length===0||this._modelData.model.changeDecorations(t=>{t.deltaDecorations(e,[])})}removeDecorationsByType(e){const t=this._decorationTypeKeysToIds[e];t&&this.changeDecorations(i=>i.deltaDecorations(t,[])),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(145)}createOverviewRuler(e){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.createOverviewRuler(e)}getContainerDomNode(){return this._domElement}getDomNode(){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.domNode.domNode}delegateVerticalScrollbarPointerDown(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.delegateScrollFromMouseWheelEvent(e)}layout(e,t=!1){this._configuration.observeContainer(e),t||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(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id:"+e.getId()),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(i)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(i)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(i)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(i)}}addGlyphMarginWidget(e){const t={widget:e,position:e.getPosition()};this._glyphMarginWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a glyph margin widget with the same id."),this._glyphMarginWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addGlyphMarginWidget(t)}layoutGlyphMarginWidget(e){const t=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(t)){const i=this._glyphMarginWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutGlyphMarginWidget(i)}}removeGlyphMarginWidget(e){const t=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(t)){const i=this._glyphMarginWidgets[t];delete this._glyphMarginWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeGlyphMarginWidget(i)}}changeViewZones(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.getTargetAtClientPoint(e,t)}getScrolledVisiblePosition(e){if(!this._modelData||!this._modelData.hasRealView)return null;const t=this._modelData.model.validatePosition(e),i=this._configuration.options,n=i.get(145),s=yu._getVerticalOffsetForPosition(this._modelData,t.lineNumber,t.column)-this.getScrollTop(),r=this._modelData.view.getOffsetForColumn(t.lineNumber,t.column)+n.glyphMarginWidth+n.lineNumbersWidth+n.decorationsWidth-this.getScrollLeft();return{top:s,left:r,height:i.get(67)}}getOffsetForColumn(e,t){return!this._modelData||!this._modelData.hasRealView?-1:this._modelData.view.getOffsetForColumn(e,t)}render(e=!1){!this._modelData||!this._modelData.hasRealView||this._modelData.viewModel.batchEvents(()=>{this._modelData.view.render(!0,e)})}setAriaOptions(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.setAriaOptions(e)}applyFontInfo(e){kn(e,this._configuration.options.get(50))}setBanner(e,t){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),this._bannerDomNode=e,this._configuration.setReservedHeight(e?t:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(e){if(!e){this._modelData=null;return}const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setModelLineCount(e.getLineCount());const i=e.onBeforeAttached(),n=new vse(this._id,this._configuration,e,e2.create(De(this._domElement)),h2.create(this._configuration.options),a=>ao(De(this._domElement),a),this.languageConfigurationService,this._themeService,i);t.push(e.onWillDispose(()=>this.setModel(null))),t.push(n.onEvent(a=>{switch(a.kind){case 0:this._onDidContentSizeChange.fire(a);break;case 1:this._editorTextFocus.setValue(a.hasFocus);break;case 2:this._onDidScrollChange.fire(a);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{if(a.reachedMaxCursorCount){const h=this.getOption(80),u=m("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.",h);this._notificationService.prompt(DL.Warning,u,[{label:"Find and Replace",run:()=>{this._commandService.executeCommand("editor.action.startFindReplaceAction")}},{label:m("goToSetting","Increase Multi Cursor Limit"),run:()=>{this._commandService.executeCommand("workbench.action.openSettings2",{query:"editor.multiCursorLimit"})}}])}const l=[];for(let h=0,u=a.selections.length;h{this._paste("keyboard",s,r,a,l)},type:s=>{this._type("keyboard",s)},compositionType:(s,r,a,l)=>{this._compositionType("keyboard",s,r,a,l)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:t={paste:(s,r,a,l)=>{const d={text:s,pasteOnNewLine:r,multicursorText:a,mode:l};this._commandService.executeCommand("paste",d)},type:s=>{const r={text:s};this._commandService.executeCommand("type",r)},compositionType:(s,r,a,l)=>{if(a||l){const d={text:s,replacePrevCharCnt:r,replaceNextCharCnt:a,positionDelta:l};this._commandService.executeCommand("compositionType",d)}else{const d={text:s,replaceCharCnt:r};this._commandService.executeCommand("replacePreviousChar",d)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const i=new wL(e.coordinatesConverter);return i.onKeyDown=s=>this._onKeyDown.fire(s),i.onKeyUp=s=>this._onKeyUp.fire(s),i.onContextMenu=s=>this._onContextMenu.fire(s),i.onMouseMove=s=>this._onMouseMove.fire(s),i.onMouseLeave=s=>this._onMouseLeave.fire(s),i.onMouseDown=s=>this._onMouseDown.fire(s),i.onMouseUp=s=>this._onMouseUp.fire(s),i.onMouseDrag=s=>this._onMouseDrag.fire(s),i.onMouseDrop=s=>this._onMouseDrop.fire(s),i.onMouseDropCanceled=s=>this._onMouseDropCanceled.fire(s),i.onMouseWheel=s=>this._onMouseWheel.fire(s),[new oN(t,this._configuration,this._themeService.getColorTheme(),e,i,this._overflowWidgetsDomNode,this._instantiationService),!0]}_postDetachModelCleanup(e){e==null||e.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){var e;if((e=this._contributionsDisposable)===null||e===void 0||e.dispose(),this._contributionsDisposable=void 0,!this._modelData)return null;const t=this._modelData.model,i=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),i&&this._domElement.contains(i)&&this._domElement.removeChild(i),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),t}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return this._modelData!==null}showDropIndicatorAt(e){const t=[{range:new x(e.lineNumber,e.column,e.lineNumber,e.column),options:yu.dropIntoEditorDecorationOptions}];this._dropIntoEditorDecorations.set(t),this.revealPosition(e,1)}removeDropIndicator(){this._dropIntoEditorDecorations.clear()}setContextValue(e,t){this._contextKeyService.createKey(e,t)}_beginUpdate(){this._updateCounter++,this._updateCounter===1&&this._onBeginUpdate.fire()}_endUpdate(){this._updateCounter--,this._updateCounter===0&&this._onEndUpdate.fire()}};Jm.dropIntoEditorDecorationOptions=je.register({description:"workbench-dnd-target",className:"dnd-target"});Jm=yu=yse([Jl(3,Le),Jl(4,_t),Jl(5,Qt),Jl(6,Me),Jl(7,Ji),Jl(8,Ri),Jl(9,ho),Jl(10,$t),Jl(11,me)],Jm);let Lse=0,xse=class{constructor(e,t,i,n,s,r){this.model=e,this.viewModel=t,this.view=i,this.hasRealView=n,this.listenersToRemove=s,this.attachedView=r}dispose(){Pt(this.listenersToRemove),this.model.onBeforeDetached(this.attachedView),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}};class l5 extends W{constructor(e){super(),this._emitterOptions=e,this._onDidChangeToTrue=this._register(new O(this._emitterOptions)),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new O(this._emitterOptions)),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,this._value===2?this._onDidChangeToTrue.fire():this._value===1&&this._onDidChangeToFalse.fire())}}class Yn extends O{constructor(e,t){super({deliveryQueue:t}),this._contributions=e}fire(e){this._contributions.onBeforeInteractionEvent(),super.fire(e)}}class Dse extends W{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=E.editorSimpleInput.bindTo(t),this._editorFocus=E.focus.bindTo(t),this._textInputFocus=E.textInputFocus.bindTo(t),this._editorTextFocus=E.editorTextFocus.bindTo(t),this._tabMovesFocus=E.tabMovesFocus.bindTo(t),this._editorReadonly=E.readOnly.bindTo(t),this._inDiffEditor=E.inDiffEditor.bindTo(t),this._editorColumnSelection=E.columnSelection.bindTo(t),this._hasMultipleSelections=E.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=E.hasNonEmptySelection.bindTo(t),this._canUndo=E.canUndo.bindTo(t),this._canRedo=E.canRedo.bindTo(t),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(jm.onDidChangeTabFocus(i=>this._tabMovesFocus.set(i))),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._tabMovesFocus.set(jm.getTabFocusMode()),this._editorReadonly.set(e.get(91)),this._inDiffEditor.set(e.get(61)),this._editorColumnSelection.set(e.get(22))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some(t=>!t.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(){const e=this._editor.getModel();this._canUndo.set(!!(e&&e.canUndo())),this._canRedo.set(!!(e&&e.canRedo()))}}class kse extends W{constructor(e,t,i){super(),this._editor=e,this._contextKeyService=t,this._languageFeaturesService=i,this._langId=E.languageId.bindTo(t),this._hasCompletionItemProvider=E.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=E.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=E.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=E.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=E.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=E.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=E.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=E.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=E.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=E.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=E.hasReferenceProvider.bindTo(t),this._hasRenameProvider=E.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=E.hasSignatureHelpProvider.bindTo(t),this._hasInlayHintsProvider=E.hasInlayHintsProvider.bindTo(t),this._hasDocumentFormattingProvider=E.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=E.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=E.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=E.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInEmbeddedEditor=E.isInEmbeddedEditor.bindTo(t);const n=()=>this._update();this._register(e.onDidChangeModel(n)),this._register(e.onDidChangeModelLanguage(n)),this._register(i.completionProvider.onDidChange(n)),this._register(i.codeActionProvider.onDidChange(n)),this._register(i.codeLensProvider.onDidChange(n)),this._register(i.definitionProvider.onDidChange(n)),this._register(i.declarationProvider.onDidChange(n)),this._register(i.implementationProvider.onDidChange(n)),this._register(i.typeDefinitionProvider.onDidChange(n)),this._register(i.hoverProvider.onDidChange(n)),this._register(i.documentHighlightProvider.onDidChange(n)),this._register(i.documentSymbolProvider.onDidChange(n)),this._register(i.referenceProvider.onDidChange(n)),this._register(i.renameProvider.onDidChange(n)),this._register(i.documentFormattingEditProvider.onDidChange(n)),this._register(i.documentRangeFormattingEditProvider.onDidChange(n)),this._register(i.signatureHelpProvider.onDidChange(n)),this._register(i.inlayHintsProvider.onDidChange(n)),n()}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(){const e=this._editor.getModel();if(!e){this.reset();return}this._contextKeyService.bufferChangeEvents(()=>{this._langId.set(e.getLanguageId()),this._hasCompletionItemProvider.set(this._languageFeaturesService.completionProvider.has(e)),this._hasCodeActionsProvider.set(this._languageFeaturesService.codeActionProvider.has(e)),this._hasCodeLensProvider.set(this._languageFeaturesService.codeLensProvider.has(e)),this._hasDefinitionProvider.set(this._languageFeaturesService.definitionProvider.has(e)),this._hasDeclarationProvider.set(this._languageFeaturesService.declarationProvider.has(e)),this._hasImplementationProvider.set(this._languageFeaturesService.implementationProvider.has(e)),this._hasTypeDefinitionProvider.set(this._languageFeaturesService.typeDefinitionProvider.has(e)),this._hasHoverProvider.set(this._languageFeaturesService.hoverProvider.has(e)),this._hasDocumentHighlightProvider.set(this._languageFeaturesService.documentHighlightProvider.has(e)),this._hasDocumentSymbolProvider.set(this._languageFeaturesService.documentSymbolProvider.has(e)),this._hasReferenceProvider.set(this._languageFeaturesService.referenceProvider.has(e)),this._hasRenameProvider.set(this._languageFeaturesService.renameProvider.has(e)),this._hasSignatureHelpProvider.set(this._languageFeaturesService.signatureHelpProvider.has(e)),this._hasInlayHintsProvider.set(this._languageFeaturesService.inlayHintsProvider.has(e)),this._hasDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.has(e)||this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(e).length+this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._isInEmbeddedEditor.set(e.uri.scheme===Oe.walkThroughSnippet||e.uri.scheme===Oe.vscodeChatCodeBlock)})}}class Ise extends W{constructor(e,t){super(),this._onChange=this._register(new O),this.onChange=this._onChange.event,this._hadFocus=void 0,this._hasDomElementFocus=!1,this._domFocusTracker=this._register(Ea(e)),this._overflowWidgetsDomNodeHasFocus=!1,this._register(this._domFocusTracker.onDidFocus(()=>{this._hasDomElementFocus=!0,this._update()})),this._register(this._domFocusTracker.onDidBlur(()=>{this._hasDomElementFocus=!1,this._update()})),t&&(this._overflowWidgetsDomNode=this._register(Ea(t)),this._register(this._overflowWidgetsDomNode.onDidFocus(()=>{this._overflowWidgetsDomNodeHasFocus=!0,this._update()})),this._register(this._overflowWidgetsDomNode.onDidBlur(()=>{this._overflowWidgetsDomNodeHasFocus=!1,this._update()})))}_update(){const e=this._hasDomElementFocus||this._overflowWidgetsDomNodeHasFocus;this._hadFocus!==e&&(this._hadFocus=e,this._onChange.fire(void 0))}hasFocus(){var e;return(e=this._hadFocus)!==null&&e!==void 0?e:!1}}class Ese{get length(){return this._decorationIds.length}constructor(e,t){this._editor=e,this._decorationIds=[],this._isChangingDecorations=!1,Array.isArray(t)&&t.length>0&&this.set(t)}onDidChange(e,t,i){return this._editor.onDidChangeModelDecorations(n=>{this._isChangingDecorations||e.call(t,n)},i)}getRange(e){return!this._editor.hasModel()||e>=this._decorationIds.length?null:this._editor.getModel().getDecorationRange(this._decorationIds[e])}getRanges(){if(!this._editor.hasModel())return[];const e=this._editor.getModel(),t=[];for(const i of this._decorationIds){const n=e.getDecorationRange(i);n&&t.push(n)}return t}has(e){return this._decorationIds.includes(e.id)}clear(){this._decorationIds.length!==0&&this.set([])}set(e){try{this._isChangingDecorations=!0,this._editor.changeDecorations(t=>{this._decorationIds=t.deltaDecorations(this._decorationIds,e)})}finally{this._isChangingDecorations=!1}return this._decorationIds}append(e){let t=[];try{this._isChangingDecorations=!0,this._editor.changeDecorations(i=>{t=i.deltaDecorations([],e),this._decorationIds=this._decorationIds.concat(t)})}finally{this._isChangingDecorations=!1}return t}}const Nse=encodeURIComponent("");function lk(o){return Nse+encodeURIComponent(o.toString())+Tse}const Mse=encodeURIComponent('');function Ase(o){return Mse+encodeURIComponent(o.toString())+Rse}gr((o,e)=>{const t=o.getColor(bl);t&&e.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${lk(t)}") repeat-x bottom left; }`);const i=o.getColor(ns);i&&e.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${lk(i)}") repeat-x bottom left; }`);const n=o.getColor(Vs);n&&e.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${lk(n)}") repeat-x bottom left; }`);const s=o.getColor(UQ);s&&e.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${Ase(s)}") no-repeat bottom left; }`);const r=o.getColor(mee);r&&e.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${r.rgba.a}; }`)});var Pse=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ose=function(o,e){return function(t,i){e(t,i,o)}};let SN=class extends W{constructor(e){super(),this._themeService=e,this._onWillCreateCodeEditor=this._register(new O),this._onCodeEditorAdd=this._register(new O),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new O),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onWillCreateDiffEditor=this._register(new O),this._onDiffEditorAdd=this._register(new O),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new O),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new vs,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}willCreateCodeEditor(){this._onWillCreateCodeEditor.fire()}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map(e=>this._codeEditors[e])}willCreateDiffEditor(){this._onWillCreateDiffEditor.fire()}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map(e=>this._diffEditors[e])}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const i of t){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach(i=>i.removeDecorationsByType(e))))}setModelProperty(e,t,i){const n=e.toString();let s;this._modelProperties.has(n)?s=this._modelProperties.get(n):(s=new Map,this._modelProperties.set(n,s)),s.set(t,i)}getModelProperty(e,t){const i=e.toString();if(this._modelProperties.has(i))return this._modelProperties.get(i).get(t)}async openCodeEditor(e,t,i){for(const n of this._codeEditorOpenHandlers){const s=await n(e,t,i);if(s!==null)return s}return null}registerCodeEditorOpenHandler(e){const t=this._codeEditorOpenHandlers.unshift(e);return Ce(t)}};SN=Pse([Ose(0,Ji)],SN);var Fse=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},d5=function(o,e){return function(t,i){e(t,i,o)}};let wS=class extends SN{constructor(e,t){super(t),this._register(this.onCodeEditorAdd(()=>this._checkContextKey())),this._register(this.onCodeEditorRemove(()=>this._checkContextKey())),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this._register(this.registerCodeEditorOpenHandler(async(i,n,s)=>n?this.doOpenEditor(n,i):null))}_checkContextKey(){let e=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){const s=t.resource.scheme;if(s===Oe.http||s===Oe.https)return X9(t.resource.toString()),e}return null}const n=t.options?t.options.selection:null;if(n)if(typeof n.endLineNumber=="number"&&typeof n.endColumn=="number")e.setSelection(n),e.revealRangeInCenter(n,1);else{const s={lineNumber:n.startLineNumber,column:n.startColumn};e.setPosition(s),e.revealPositionInCenter(s,1)}return e}findModel(e,t){const i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};wS=Fse([d5(0,Me),d5(1,Ji)],wS);ht(_t,wS,0);const qh=ot("layoutService");var e6=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},t6=function(o,e){return function(t,i){e(t,i,o)}};let SS=class{get mainContainer(){var e,t;return(t=(e=$R(this._codeEditorService.listCodeEditors()))===null||e===void 0?void 0:e.getContainerDomNode())!==null&&t!==void 0?t:Mt.document.body}get activeContainer(){var e,t;const i=(e=this._codeEditorService.getFocusedCodeEditor())!==null&&e!==void 0?e:this._codeEditorService.getActiveCodeEditor();return(t=i==null?void 0:i.getContainerDomNode())!==null&&t!==void 0?t:this.mainContainer}get mainContainerDimension(){return Jd(this.mainContainer)}get activeContainerDimension(){return Jd(this.activeContainer)}get containers(){return xa(this._codeEditorService.listCodeEditors().map(e=>e.getContainerDomNode()))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){var e;(e=this._codeEditorService.getFocusedCodeEditor())===null||e===void 0||e.focus()}constructor(e){this._codeEditorService=e,this.onDidLayoutMainContainer=ae.None,this.onDidLayoutActiveContainer=ae.None,this.onDidLayoutContainer=ae.None,this.onDidChangeActiveContainer=ae.None,this.onDidAddContainer=ae.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};SS=e6([t6(0,_t)],SS);let yN=class extends SS{get mainContainer(){return this._container}constructor(e,t){super(t),this._container=e}};yN=e6([t6(1,_t)],yN);ht(qh,SS,1);const z0=ot("dialogService");var Bse=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},c5=function(o,e){return function(t,i){e(t,i,o)}};function YC(o){return o.scheme===Oe.file?o.fsPath:o.path}let i6=0;class QC{constructor(e,t,i,n,s,r,a){this.id=++i6,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=n,this.groupOrder=s,this.sourceId=r,this.sourceOrder=a,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class h5{constructor(e,t){this.resourceLabel=e,this.reason=t}}class u5{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,n]of this.elements)(n.reason===0?e:t).push(n.resourceLabel);const i=[];return e.length>0&&i.push(m({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(m({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join(` +`)}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class Wse{constructor(e,t,i,n,s,r,a){this.id=++i6,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=n,this.groupOrder=s,this.sourceId=r,this.sourceOrder=a,this.removedResources=null,this.invalidatedResources=null}canSplit(){return typeof this.actual.split=="function"}removeResource(e,t,i){this.removedResources||(this.removedResources=new u5),this.removedResources.has(t)||this.removedResources.set(t,new h5(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),this.invalidatedResources.size===0&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new u5),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new h5(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class n6{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)e.type===1&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)e.type===1&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){const e=[];e.push(`* ${this.strResource}:`);for(let t=0;t=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join(` +`)}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){e.type===1?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(const i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(const t of this._future)t.type===1&&t.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){const t=[];for(let i=0,n=this._past.length;i=0;i--)t.push(this._future[i].id);return new G8(e,t)}restoreSnapshot(e){const t=e.elements.length;let i=!0,n=0,s=-1;for(let a=0,l=this._past.length;a=t||d.id!==e.elements[n])&&(i=!1,s=0),!i&&d.type===1&&d.removeResource(this.resourceLabel,this.strResource,0)}let r=-1;for(let a=this._future.length-1;a>=0;a--,n++){const l=this._future[a];i&&(n>=t||l.id!==e.elements[n])&&(i=!1,r=a),!i&&l.type===1&&l.removeResource(this.resourceLabel,this.strResource,0)}s!==-1&&(this._past=this._past.slice(0,s)),r!==-1&&(this._future=this._future.slice(r+1)),this.versionId++}getElements(){const e=[],t=[];for(const i of this._past)e.push(i.actual);for(const i of this._future)t.push(i.actual);return{past:e,future:t}}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(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class dk{constructor(e){this.editStacks=e,this._versionIds=[];for(let t=0,i=this.editStacks.length;tt.sourceOrder)&&(t=r,i=n)}return[t,i]}canUndo(e){if(e instanceof gl){const[,i]=this._findClosestUndoElementWithSource(e.id);return!!i}const t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).hasPastElements():!1}_onError(e,t){ze(e);for(const i of t.strResources)this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(const t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(const t of e.editStacks)t.locked=!0;return()=>{for(const t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,n,s){const r=this._acquireLocks(i);let a;try{a=t()}catch(l){return r(),n.dispose(),this._onError(l,e)}return a?a.then(()=>(r(),n.dispose(),s()),l=>(r(),n.dispose(),this._onError(l,e))):(r(),n.dispose(),s())}async _invokeWorkspacePrepare(e){if(typeof e.actual.prepareUndoRedo>"u")return W.None;const t=e.actual.prepareUndoRedo();return typeof t>"u"?W.None:t}_invokeResourcePrepare(e,t){if(e.actual.type!==1||typeof e.actual.prepareUndoRedo>"u")return t(W.None);const i=e.actual.prepareUndoRedo();return i?Vy(i)?t(i):i.then(n=>t(n)):t(W.None)}_getAffectedEditStacks(e){const t=[];for(const i of e.strResources)t.push(this._editStacks.get(i)||s6);return new dk(t)}_tryToSplitAndUndo(e,t,i,n){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(n),new XC(this._undo(e,0,!0));for(const s of t.strResources)this.removeElements(s);return this._notificationService.warn(n),new XC}_checkWorkspaceUndo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,m({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,m({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const s=[];for(const a of i.editStacks)a.getClosestPastElement()!==t&&s.push(a.resourceLabel);if(s.length>0)return this._tryToSplitAndUndo(e,t,null,m({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}",t.label,s.join(", ")));const r=[];for(const a of i.editStacks)a.locked&&r.push(a.resourceLabel);return r.length>0?this._tryToSplitAndUndo(e,t,null,m({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}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,m({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",t.label))}_workspaceUndo(e,t,i){const n=this._getAffectedEditStacks(t),s=this._checkWorkspaceUndo(e,t,n,!1);return s?s.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,n,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(const[,t]of this._editStacks){const i=t.getClosestPastElement();if(i){if(i===e){const n=t.getSecondClosestPastElement();if(n&&n.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}async _confirmAndExecuteWorkspaceUndo(e,t,i,n){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){let a;(function(c){c[c.All=0]="All",c[c.This=1]="This",c[c.Cancel=2]="Cancel"})(a||(a={}));const{result:l}=await this._dialogService.prompt({type:Ei.Info,message:m("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),buttons:[{label:m({key:"ok",comment:["{0} denotes a number that is > 1, && denotes a mnemonic"]},"&&Undo in {0} Files",i.editStacks.length),run:()=>a.All},{label:m({key:"nok",comment:["&& denotes a mnemonic"]},"Undo this &&File"),run:()=>a.This}],cancelButton:{run:()=>a.Cancel}});if(l===a.Cancel)return;if(l===a.This)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);const d=this._checkWorkspaceUndo(e,t,i,!1);if(d)return d.returnValue;n=!0}let s;try{s=await this._invokeWorkspacePrepare(t)}catch(a){return this._onError(a,t)}const r=this._checkWorkspaceUndo(e,t,i,!0);if(r)return s.dispose(),r.returnValue;for(const a of i.editStacks)a.moveBackward(t);return this._safeInvokeWithLocks(t,()=>t.actual.undo(),i,s,()=>this._continueUndoInGroup(t.groupId,n))}_resourceUndo(e,t,i){if(!t.isValid){e.flushAllElements();return}if(e.locked){const n=m({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(n);return}return this._invokeResourcePrepare(t,n=>(e.moveBackward(t),this._safeInvokeWithLocks(t,()=>t.actual.undo(),new dk([e]),n,()=>this._continueUndoInGroup(t.groupId,i))))}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const r=s.getClosestPastElement();r&&r.groupId===e&&(!t||r.groupOrder>t.groupOrder)&&(t=r,i=n)}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;const[,i]=this._findClosestUndoElementInGroup(e);if(i)return this._undo(i,0,t)}undo(e){if(e instanceof gl){const[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return typeof e=="string"?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;const n=this._editStacks.get(e),s=n.getClosestPastElement();if(!s)return;if(s.groupId){const[a,l]=this._findClosestUndoElementInGroup(s.groupId);if(s!==a&&l)return this._undo(l,t,i)}if((s.sourceId!==t||s.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,s);try{return s.type===1?this._workspaceUndo(e,s,i):this._resourceUndo(n,s,i)}finally{}}async _confirmAndContinueUndo(e,t,i){if((await this._dialogService.confirm({message:m("confirmDifferentSource","Would you like to undo '{0}'?",i.label),primaryButton:m({key:"confirmDifferentSource.yes",comment:["&& denotes a mnemonic"]},"&&Yes"),cancelButton:m("confirmDifferentSource.no","No")})).confirmed)return this._undo(e,t,!0)}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const r=s.getClosestFutureElement();r&&r.sourceId===e&&(!t||r.sourceOrder0)return this._tryToSplitAndRedo(e,t,null,m({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}",t.label,s.join(", ")));const r=[];for(const a of i.editStacks)a.locked&&r.push(a.resourceLabel);return r.length>0?this._tryToSplitAndRedo(e,t,null,m({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}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,m({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",t.label))}_workspaceRedo(e,t){const i=this._getAffectedEditStacks(t),n=this._checkWorkspaceRedo(e,t,i,!1);return n?n.returnValue:this._executeWorkspaceRedo(e,t,i)}async _executeWorkspaceRedo(e,t,i){let n;try{n=await this._invokeWorkspacePrepare(t)}catch(r){return this._onError(r,t)}const s=this._checkWorkspaceRedo(e,t,i,!0);if(s)return n.dispose(),s.returnValue;for(const r of i.editStacks)r.moveForward(t);return this._safeInvokeWithLocks(t,()=>t.actual.redo(),i,n,()=>this._continueRedoInGroup(t.groupId))}_resourceRedo(e,t){if(!t.isValid){e.flushAllElements();return}if(e.locked){const i=m({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(i);return}return this._invokeResourcePrepare(t,i=>(e.moveForward(t),this._safeInvokeWithLocks(t,()=>t.actual.redo(),new dk([e]),i,()=>this._continueRedoInGroup(t.groupId))))}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const r=s.getClosestFutureElement();r&&r.groupId===e&&(!t||r.groupOrder=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},g5=function(o,e){return function(t,i){e(t,i,o)}};const fr=ot("ILanguageFeatureDebounceService");var yS;(function(o){const e=new WeakMap;let t=0;function i(n){let s=e.get(n);return s===void 0&&(s=++t,e.set(n,s)),s}o.of=i})(yS||(yS={}));class zse{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class Use{constructor(e,t,i,n,s,r){this._logService=e,this._name=t,this._registry=i,this._default=n,this._min=s,this._max=r,this._cache=new ql(50,.7)}_key(e){return e.id+this._registry.all(e).reduce((t,i)=>jy(yS.of(i),t),0)}get(e){const t=this._key(e),i=this._cache.get(t);return i?hs(i.value,this._min,this._max):this.default()}update(e,t){const i=this._key(e);let n=this._cache.get(i);n||(n=new Hse(6),this._cache.set(i,n));const s=hs(n.update(t),this._min,this._max);return gA(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${s}ms`),s}_overall(){const e=new o6;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){const e=this._overall()|0||this._default;return hs(e,this._min,this._max)}}let xN=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,i){var n,s,r;const a=(n=i==null?void 0:i.min)!==null&&n!==void 0?n:50,l=(s=i==null?void 0:i.max)!==null&&s!==void 0?s:a**2,d=(r=i==null?void 0:i.key)!==null&&r!==void 0?r:void 0,c=`${yS.of(e)},${a}${d?","+d:""}`;let h=this._data.get(c);return h||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),h=new zse(a*1.5)):h=new Use(this._logService,t,e,this._overallAverage()|0||a*1.5,a,l),this._data.set(c,h)),h}_overallAverage(){const e=new o6;for(const t of this._data.values())e.update(t.default());return e.value}};xN=Vse([g5(0,qn),g5(1,b2)],xN);ht(fr,xN,1);class Sv{static create(e,t){return new Sv(e,new LS(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,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(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e&&new x(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn)}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,i,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber,[n,s,r]=this._tokens.split(t,e.startColumn-1,i,e.endColumn-1);return[new Sv(this._startLineNumber,n),new Sv(this._startLineNumber+r,s)]}applyEdit(e,t){const[i,n,s]=xh(t);this.acceptEdit(e,i,n,s,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,i,n,s){this._acceptDeleteRange(e),this._acceptInsertText(new F(e.startLineNumber,e.startColumn),t,i,n,s),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;if(i<0){const s=i-t;this._startLineNumber-=s;return}const n=this._tokens.getMaxDeltaLine();if(!(t>=n+1)){if(t<0&&i>=n+1){this._startLineNumber=0,this._tokens.clear();return}if(t<0){const s=-t;this._startLineNumber-=s,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,n,s){if(t===0&&i===0)return;const r=e.lineNumber-this._startLineNumber;if(r<0){this._startLineNumber+=t;return}const a=this._tokens.getMaxDeltaLine();r>=a+1||this._tokens.acceptInsertText(r,e.column-1,t,i,n,s)}}class LS{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let i=0;ie)i=n-1;else{let r=n;for(;r>t&&this._getDeltaLine(r-1)===e;)r--;let a=n;for(;ae||u===e&&f>=t)&&(ue||f===e&&_>=t){if(fs?p-=s-i:p=i;else if(g===t&&f===i)if(g===n&&p>s)p-=s-i;else{c=!0;continue}else if(gs)g=t,f=i,p=f+(p-s);else{c=!0;continue}else if(g>n){if(l===0&&!c){d=a;break}g-=l}else if(g===n&&f>=s)e&&g===0&&(f+=e,p+=e),g-=l,f-=s-i,p-=s-i;else throw new Error("Not possible!");const v=4*d;r[v]=g,r[v+1]=f,r[v+2]=p,r[v+3]=_,d++}this._tokenCount=d}acceptInsertText(e,t,i,n,s,r){const a=i===0&&n===1&&(r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122),l=this._tokens,d=this._tokenCount;for(let c=0;c=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ck=function(o,e){return function(t,i){e(t,i,o)}};let DN=class{constructor(e,t,i,n){this._legend=e,this._themeService=t,this._languageService=i,this._logService=n,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new fd}getMetadata(e,t,i){const n=this._languageService.languageIdCodec.encodeLanguageId(i),s=this._hashTable.get(e,t,n);let r;if(s)r=s.metadata,this._logService.getLevel()===Rn.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${e} / ${t}: foreground ${An.getForeground(r)}, fontStyle ${An.getFontStyle(r).toString(2)}`);else{let a=this._legend.tokenTypes[e];const l=[];if(a){let d=t;for(let h=0;d>0&&h>1;d>0&&this._logService.getLevel()===Rn.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${t.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),l.push("not-in-legend"));const c=this._themeService.getColorTheme().getTokenStyleMetadata(a,l,i);if(typeof c>"u")r=2147483647;else{if(r=0,typeof c.italic<"u"){const h=(c.italic?1:0)<<11;r|=h|1}if(typeof c.bold<"u"){const h=(c.bold?2:0)<<11;r|=h|2}if(typeof c.underline<"u"){const h=(c.underline?4:0)<<11;r|=h|4}if(typeof c.strikethrough<"u"){const h=(c.strikethrough?8:0)<<11;r|=h|8}if(c.foreground){const h=c.foreground<<15;r|=h|16}r===0&&(r=2147483647)}}else this._logService.getLevel()===Rn.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${e} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),r=2147483647,a="not-in-legend";this._hashTable.add(e,t,n,r),this._logService.getLevel()===Rn.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${e} (${a}) / ${t} (${l.join(" ")}): foreground ${An.getForeground(r)}, fontStyle ${An.getFontStyle(r).toString(2)}`)}return r}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,i,n,s){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${i}: The provided start offset ${n} is outside the previous data (length ${s}).`))}};DN=$se([ck(1,Ji),ck(2,si),ck(3,qn)],DN);function r6(o,e,t){const i=o.data,n=o.data.length/5|0,s=Math.max(Math.ceil(n/1024),400),r=[];let a=0,l=1,d=0;for(;ac&&i[5*b]===0;)b--;if(b-1===c){let C=h;for(;C+1L)e.warnOverlappingSemanticTokens(S,L+1);else{const P=e.getMetadata(T,V,t);P!==2147483647&&(f===0&&(f=S),u[g]=S-f,u[g+1]=L,u[g+2]=I,u[g+3]=P,g+=4,p=S,_=I)}l=S,d=L,a++}g!==u.length&&(u=u.subarray(0,g));const v=Sv.create(f,u);r.push(v)}return r}class jse{constructor(e,t,i,n){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=i,this.metadata=n,this.next=null}}class fd{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=fd._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1=this._growCount){const s=this._elements;this._currentLengthIndex++,this._currentLength=fd._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},hk=function(o,e){return function(t,i){e(t,i,o)}};let kN=class extends W{constructor(e,t,i){super(),this._themeService=e,this._logService=t,this._languageService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange(()=>{this._caches=new WeakMap}))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new DN(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};kN=Kse([hk(0,Ji),hk(1,qn),hk(2,si)],kN);ht(kL,kN,1);const JC="**",m5="/",cw="[/\\\\]",hw="[^/\\\\]",qse=/\//g;function p5(o,e){switch(o){case 0:return"";case 1:return`${hw}*?`;default:return`(?:${cw}|${hw}+${cw}${e?`|${cw}${hw}+`:""})*?`}}function _5(o,e){if(!o)return[];const t=[];let i=!1,n=!1,s="";for(const r of o){switch(r){case e:if(!i&&!n){t.push(s),s="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":n=!0;break;case"]":n=!1;break}s+=r}return s&&t.push(s),t}function a6(o){if(!o)return"";let e="";const t=_5(o,m5);if(t.every(i=>i===JC))e=".*";else{let i=!1;t.forEach((n,s)=>{if(n===JC){if(i)return;e+=p5(2,s===t.length-1)}else{let r=!1,a="",l=!1,d="";for(const c of n){if(c!=="}"&&r){a+=c;continue}if(l&&(c!=="]"||!d)){let h;c==="-"?h=c:(c==="^"||c==="!")&&!d?h="^":c===m5?h="":h=Oo(c),d+=h;continue}switch(c){case"{":r=!0;continue;case"[":l=!0;continue;case"}":{const u=`(?:${_5(a,",").map(g=>a6(g)).join("|")})`;e+=u,r=!1,a="";break}case"]":{e+="["+d+"]",l=!1,d="";break}case"?":e+=hw;continue;case"*":e+=p5(1);continue;default:e+=Oo(c)}}sC2(a,e)).filter(a=>a!==Il),o),i=t.length;if(!i)return Il;if(i===1)return t[0];const n=function(a,l){for(let d=0,c=t.length;d!!a.allBasenames);s&&(n.allBasenames=s.allBasenames);const r=t.reduce((a,l)=>l.allPaths?a.concat(l.allPaths):a,[]);return r.length&&(n.allPaths=r),n}function w5(o,e,t){const i=va===Wi.sep,n=i?o:o.replace(qse,va),s=va+n,r=Wi.sep+o;let a;return t?a=function(l,d){return typeof l=="string"&&(l===n||l.endsWith(s)||!i&&(l===o||l.endsWith(r)))?e:null}:a=function(l,d){return typeof l=="string"&&(l===n||!i&&l===o)?e:null},a.allPaths=[(t?"*/":"./")+o],a}function noe(o){try{const e=new RegExp(`^${a6(o)}$`);return function(t){return e.lastIndex=0,typeof t=="string"&&e.test(t)?o:null}}catch{return Il}}function soe(o,e,t){return!o||typeof e!="string"?!1:l6(o)(e,void 0,t)}function l6(o,e={}){if(!o)return b5;if(typeof o=="string"||ooe(o)){const t=C2(o,e);if(t===Il)return b5;const i=function(n,s){return!!t(n,s)};return t.allBasenames&&(i.allBasenames=t.allBasenames),t.allPaths&&(i.allPaths=t.allPaths),i}return roe(o,e)}function ooe(o){const e=o;return e?typeof e.base=="string"&&typeof e.pattern=="string":!1}function roe(o,e){const t=d6(Object.getOwnPropertyNames(o).map(a=>aoe(a,o[a],e)).filter(a=>a!==Il)),i=t.length;if(!i)return Il;if(!t.some(a=>!!a.requiresSiblings)){if(i===1)return t[0];const a=function(c,h){let u;for(let g=0,f=t.length;g{for(const g of u){const f=await g;if(typeof f=="string")return f}return null})():null},l=t.find(c=>!!c.allBasenames);l&&(a.allBasenames=l.allBasenames);const d=t.reduce((c,h)=>h.allPaths?c.concat(h.allPaths):c,[]);return d.length&&(a.allPaths=d),a}const n=function(a,l,d){let c,h;for(let u=0,g=t.length;u{for(const u of h){const g=await u;if(typeof g=="string")return g}return null})():null},s=t.find(a=>!!a.allBasenames);s&&(n.allBasenames=s.allBasenames);const r=t.reduce((a,l)=>l.allPaths?a.concat(l.allPaths):a,[]);return r.length&&(n.allPaths=r),n}function aoe(o,e,t){if(e===!1)return Il;const i=C2(o,t);if(i===Il)return Il;if(typeof e=="boolean")return i;if(e){const n=e.when;if(typeof n=="string"){const s=(r,a,l,d)=>{if(!d||!i(r,a))return null;const c=n.replace("$(basename)",()=>l),h=d(c);return SE(h)?h.then(u=>u?o:null):h?o:null};return s.requiresSiblings=!0,s}}return i}function d6(o,e){const t=o.filter(a=>!!a.basenames);if(t.length<2)return o;const i=t.reduce((a,l)=>{const d=l.basenames;return d?a.concat(d):a},[]);let n;if(e){n=[];for(let a=0,l=i.length;a{const d=l.patterns;return d?a.concat(d):a},[]);const s=function(a,l){if(typeof a!="string")return null;if(!l){let c;for(c=a.length;c>0;c--){const h=a.charCodeAt(c-1);if(h===47||h===92)break}l=a.substr(c)}const d=i.indexOf(l);return d!==-1?n[d]:null};s.basenames=i,s.patterns=n,s.allBasenames=i;const r=o.filter(a=>!a.basenames);return r.push(s),r}function w2(o,e,t,i,n,s){if(Array.isArray(o)){let r=0;for(const a of o){const l=w2(a,e,t,i,n,s);if(l===10)return l;l>r&&(r=l)}return r}else{if(typeof o=="string")return i?o==="*"?5:o===t?10:0:0;if(o){const{language:r,pattern:a,scheme:l,hasAccessToAllModels:d,notebookType:c}=o;if(!i&&!d)return 0;c&&n&&(e=n);let h=0;if(l)if(l===e.scheme)h=10;else if(l==="*")h=5;else return 0;if(r)if(r===t)h=10;else if(r==="*")h=Math.max(h,5);else return 0;if(c)if(c===s)h=10;else if(c==="*"&&s!==void 0)h=Math.max(h,5);else return 0;if(a){let u;if(typeof a=="string"?u=a:u={...a,base:c9(a.base)},u===e.fsPath||soe(u,e.fsPath))h=10;else return 0}return h}else return 0}}function c6(o){return typeof o=="string"?!1:Array.isArray(o)?o.every(c6):!!o.exclusive}class S5{constructor(e,t,i,n){this.uri=e,this.languageId=t,this.notebookUri=i,this.notebookType=n}equals(e){var t,i;return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&((t=this.notebookUri)===null||t===void 0?void 0:t.toString())===((i=e.notebookUri)===null||i===void 0?void 0:i.toString())}}class oi{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new O,this.onDidChange=this._onDidChange.event}register(e,t){let i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Ce(()=>{if(i){const n=this._entries.indexOf(i);n>=0&&(this._entries.splice(n,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}})}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e);const t=[];for(const i of this._entries)i._score>0&&t.push(i.provider);return t}ordered(e){const t=[];return this._orderedForEach(e,i=>t.push(i.provider)),t}orderedGroups(e){const t=[];let i,n;return this._orderedForEach(e,s=>{i&&n===s._score?i.push(s.provider):(n=s._score,i=[s.provider],t.push(i))}),t}_orderedForEach(e,t){this._updateScores(e);for(const i of this._entries)i._score>0&&t(i)}_updateScores(e){var t,i;const n=(t=this._notebookInfoResolver)===null||t===void 0?void 0:t.call(this,e.uri),s=n?new S5(e.uri,e.getLanguageId(),n.uri,n.type):new S5(e.uri,e.getLanguageId(),void 0,void 0);if(!(!((i=this._lastCandidate)===null||i===void 0)&&i.equals(s))){this._lastCandidate=s;for(const r of this._entries)if(r._score=w2(r.selector,s.uri,s.languageId,LW(e),s.notebookUri,s.notebookType),c6(r.selector)&&r._score>0){for(const a of this._entries)a._score=0;r._score=1e3;break}this._entries.sort(oi._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._scoret._score?-1:U_(e.selector)&&!U_(t.selector)?1:!U_(e.selector)&&U_(t.selector)?-1:e._timet._time?-1:0}}function U_(o){return typeof o=="string"?!1:Array.isArray(o)?o.some(U_):!!o.isBuiltin}class loe{constructor(){this.referenceProvider=new oi(this._score.bind(this)),this.renameProvider=new oi(this._score.bind(this)),this.newSymbolNamesProvider=new oi(this._score.bind(this)),this.codeActionProvider=new oi(this._score.bind(this)),this.definitionProvider=new oi(this._score.bind(this)),this.typeDefinitionProvider=new oi(this._score.bind(this)),this.declarationProvider=new oi(this._score.bind(this)),this.implementationProvider=new oi(this._score.bind(this)),this.documentSymbolProvider=new oi(this._score.bind(this)),this.inlayHintsProvider=new oi(this._score.bind(this)),this.colorProvider=new oi(this._score.bind(this)),this.codeLensProvider=new oi(this._score.bind(this)),this.documentFormattingEditProvider=new oi(this._score.bind(this)),this.documentRangeFormattingEditProvider=new oi(this._score.bind(this)),this.onTypeFormattingEditProvider=new oi(this._score.bind(this)),this.signatureHelpProvider=new oi(this._score.bind(this)),this.hoverProvider=new oi(this._score.bind(this)),this.documentHighlightProvider=new oi(this._score.bind(this)),this.multiDocumentHighlightProvider=new oi(this._score.bind(this)),this.selectionRangeProvider=new oi(this._score.bind(this)),this.foldingRangeProvider=new oi(this._score.bind(this)),this.linkProvider=new oi(this._score.bind(this)),this.inlineCompletionsProvider=new oi(this._score.bind(this)),this.inlineEditProvider=new oi(this._score.bind(this)),this.completionProvider=new oi(this._score.bind(this)),this.linkedEditingRangeProvider=new oi(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new oi(this._score.bind(this)),this.documentSemanticTokensProvider=new oi(this._score.bind(this)),this.documentDropEditProvider=new oi(this._score.bind(this)),this.documentPasteEditProvider=new oi(this._score.bind(this))}_score(e){var t;return(t=this._notebookTypeResolver)===null||t===void 0?void 0:t.call(this,e)}}ht(me,loe,1);var doe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},y5=function(o,e){return function(t,i){e(t,i,o)}};const Gl=ot("hoverService");let ep=class extends W{get delay(){return this.isInstantlyHovering()?0:this._delay}constructor(e,t,i={},n,s){super(),this.placement=e,this.instantHover=t,this.overrideOptions=i,this.configurationService=n,this.hoverService=s,this.lastHoverHideTime=0,this.timeLimit=200,this.hoverDisposables=this._register(new G),this._delay=this.configurationService.getValue("workbench.hover.delay"),this._register(this.configurationService.onDidChangeConfiguration(r=>{r.affectsConfiguration("workbench.hover.delay")&&(this._delay=this.configurationService.getValue("workbench.hover.delay"))}))}showHover(e,t){const i=typeof this.overrideOptions=="function"?this.overrideOptions(e,t):this.overrideOptions;this.hoverDisposables.clear();const n=_n(e.target)?[e.target]:e.target.targetElements;for(const r of n)this.hoverDisposables.add(Si(r,"keydown",a=>{a.equals(9)&&this.hoverService.hideHover()}));const s=_n(e.content)?void 0:e.content.toString();return this.hoverService.showHover({...e,...i,persistence:{hideOnKeyDown:!0,...i.persistence},id:s,appearance:{...e.appearance,compact:!0,skipFadeInAnimation:this.isInstantlyHovering(),...i.appearance}},t)}isInstantlyHovering(){return this.instantHover&&Date.now()-this.lastHoverHideTime{i.stopPropagation(),i.preventDefault(),t(e)}))}}class g6 extends W{constructor(e,t,i){super(),this._register(U(e,ee.KEY_DOWN,n=>{const s=new Ht(n);i.some(r=>s.equals(r))&&(n.stopPropagation(),n.preventDefault(),t(e))}))}}const fo=ot("openerService");function coe(o){let e;const t=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(o.fragment);return t&&(e={startLineNumber:parseInt(t[1]),startColumn:t[2]?parseInt(t[2]):1,endLineNumber:t[4]?parseInt(t[4]):void 0,endColumn:t[4]?t[5]?parseInt(t[5]):1:void 0},o=o.with({fragment:""})),{selection:e,uri:o}}function hoe(o,e={}){const t=y2(e);return t.textContent=o,t}function uoe(o,e={}){const t=y2(e);return f6(t,foe(o,!!e.renderCodeSegments),e.actionHandler,e.renderCodeSegments),t}function y2(o){const e=o.inline?"span":"div",t=document.createElement(e);return o.className&&(t.className=o.className),t}class goe{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function f6(o,e,t,i){let n;if(e.type===2)n=document.createTextNode(e.content||"");else if(e.type===3)n=document.createElement("b");else if(e.type===4)n=document.createElement("i");else if(e.type===7&&i)n=document.createElement("code");else if(e.type===5&&t){const s=document.createElement("a");t.disposables.add(Si(s,"click",r=>{t.callback(String(e.index),r)})),n=s}else e.type===8?n=document.createElement("br"):e.type===1&&(n=o);n&&o!==n&&o.appendChild(n),n&&Array.isArray(e.children)&&e.children.forEach(s=>{f6(n,s,t,i)})}function foe(o,e){const t={type:1,children:[]};let i=0,n=t;const s=[],r=new goe(o);for(;!r.eos();){let a=r.next();const l=a==="\\"&&IN(r.peek(),e)!==0;if(l&&(a=r.next()),!l&&moe(a,e)&&a===r.peek()){r.advance(),n.type===2&&(n=s.pop());const d=IN(a,e);if(n.type===d||n.type===5&&d===6)n=s.pop();else{const c={type:d,children:[]};d===5&&(c.index=i,i++),n.children.push(c),s.push(n),n=c}}else if(a===` +`)n.type===2&&(n=s.pop()),n.children.push({type:8});else if(n.type!==2){const d={type:2,content:a};n.children.push(d),s.push(n),n=d}else n.content+=a}return n.type===2&&(n=s.pop()),t}function moe(o,e){return IN(o,e)!==0}function IN(o,e){switch(o){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return e?7:0;default:return 0}}const poe=new RegExp(`(\\\\)?\\$\\((${Te.iconNameExpression}(?:${Te.iconModifierExpression})?)\\)`,"g");function dh(o){const e=new Array;let t,i=0,n=0;for(;(t=poe.exec(o))!==null;){n=t.index||0,i0)return new Uint32Array(e)}let bo=0;const Fc=new Uint32Array(10);function voe(o){if(bo=0,ja(o,gk,4352),bo>0||(ja(o,fk,4449),bo>0)||(ja(o,mk,4520),bo>0)||(ja(o,hu,12593),bo))return Fc.subarray(0,bo);if(o>=44032&&o<=55203){const e=o-44032,t=e%588,i=Math.floor(e/588),n=Math.floor(t/28),s=t%28-1;if(i=0&&(s0)return Fc.subarray(0,bo)}}function ja(o,e,t){o>=t&&o>8&&(Fc[bo++]=o>>8&255),o>>16&&(Fc[bo++]=o>>16&255))}const gk=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),fk=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),mk=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]),hu=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 L2(...o){return function(e,t){for(let i=0,n=o.length;i0?[{start:0,end:e.length}]:[]:null}function p6(o,e){const t=e.toLowerCase().indexOf(o.toLowerCase());return t===-1?null:[{start:t,end:t+o.length}]}function _6(o,e){return EN(o.toLowerCase(),e.toLowerCase(),0,0)}function EN(o,e,t,i){if(t===o.length)return[];if(i===e.length)return null;if(o[t]===e[i]){let n=null;return(n=EN(o,e,t+1,i+1))?k2({start:i,end:i+1},n):null}return EN(o,e,t,i+1)}function x2(o){return 97<=o&&o<=122}function EL(o){return 65<=o&&o<=90}function D2(o){return 48<=o&&o<=57}function v6(o){return o===32||o===9||o===10||o===13}const b6=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(o=>b6.add(o.charCodeAt(0)));function xS(o){return v6(o)||b6.has(o)}function L5(o,e){return o===e||xS(o)&&xS(e)}const pk=new Map;function x5(o){if(pk.has(o))return pk.get(o);let e;const t=_oe(o);return t&&(e=t),pk.set(o,e),e}function C6(o){return x2(o)||EL(o)||D2(o)}function k2(o,e){return e.length===0?e=[o]:o.end===e[0].start?e[0].start=o.start:e.unshift(o),e}function w6(o,e){for(let t=e;t0&&!C6(o.charCodeAt(t-1)))return t}return o.length}function NN(o,e,t,i){if(t===o.length)return[];if(i===e.length)return null;if(o[t]!==e[i].toLowerCase())return null;{let n=null,s=i+1;for(n=NN(o,e,t+1,i+1);!n&&(s=w6(e,s)).6}function Soe(o){const{upperPercent:e,lowerPercent:t,alphaPercent:i,numericPercent:n}=o;return t>.2&&e<.8&&i>.6&&n<.2}function yoe(o){let e=0,t=0,i=0,n=0;for(let s=0;s60&&(e=e.substring(0,60));const t=Coe(e);if(!Soe(t)){if(!woe(t))return null;e=e.toLowerCase()}let i=null,n=0;for(o=o.toLowerCase();n0&&xS(o.charCodeAt(t-1)))return t;return o.length}const xoe=L2(bb,S6,p6),Doe=L2(bb,S6,_6),D5=new ql(1e4);function k5(o,e,t=!1){if(typeof o!="string"||typeof e!="string")return null;let i=D5.get(o);i||(i=new RegExp(PK(o),"i"),D5.set(o,i));const n=i.exec(e);return n?[{start:n.index,end:n.index+n[0].length}]:t?Doe(o,e):xoe(o,e)}function koe(o,e){const t=Cg(o,o.toLowerCase(),0,e,e.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return t?U0(t):null}function Ioe(o,e,t,i,n,s){const r=Math.min(13,o.length);for(;t"u")return[];const e=[],t=o[1];for(let i=o.length-1;i>1;i--){const n=o[i]+t,s=e[e.length-1];s&&s.end===n?s.end=n+1:e.push({start:n,end:n+1})}return e}const Yc=128;function I2(){const o=[],e=[];for(let t=0;t<=Yc;t++)e[t]=0;for(let t=0;t<=Yc;t++)o.push(e.slice(0));return o}function L6(o){const e=[];for(let t=0;t<=o;t++)e[t]=0;return e}const x6=L6(2*Yc),MN=L6(2*Yc),ed=I2(),uu=I2(),t1=I2();function i1(o,e){if(e<0||e>=o.length)return!1;const t=o.codePointAt(e);switch(t){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!!lA(t)}}function I5(o,e){if(e<0||e>=o.length)return!1;switch(o.charCodeAt(e)){case 32:case 9:return!0;default:return!1}}function uw(o,e,t){return e[o]!==t[o]}function Eoe(o,e,t,i,n,s,r=!1){for(;eYc?Yc:o.length,l=i.length>Yc?Yc:i.length;if(t>=a||s>=l||a-t>l-s||!Eoe(e,t,a,n,s,l,!0))return;Noe(a,l,t,s,e,n);let d=1,c=1,h=t,u=s;const g=[!1];for(d=1,h=t;hb,T=I?uu[d][c-1]+(ed[d][c-1]>0?-5:0):0,V=u>b+1&&ed[d][c-1]>0,P=V?uu[d][c-2]+(ed[d][c-2]>0?-5:0):0;if(V&&(!I||P>=T)&&(!L||P>=D))uu[d][c]=P,t1[d][c]=3,ed[d][c]=0;else if(I&&(!L||T>=D))uu[d][c]=T,t1[d][c]=2,ed[d][c]=0;else if(L)uu[d][c]=D,t1[d][c]=1,ed[d][c]=ed[d-1][c-1]+1;else throw new Error("not possible")}}if(!g[0]&&!r.firstMatchCanBeWeak)return;d--,c--;const f=[uu[d][c],s];let p=0,_=0;for(;d>=1;){let b=c;do{const C=t1[d][b];if(C===3)b=b-2;else if(C===2)b=b-1;else break}while(b>=1);p>1&&e[t+d-1]===n[s+c-1]&&!uw(b+s-1,i,n)&&p+1>ed[d][b]&&(b=c),b===c?p++:p=1,_||(_=b),d--,c=b-1,f.push(c)}l-s===a&&r.boostFullMatch&&(f[0]+=2);const v=_-a;return f[0]-=v,f}function Noe(o,e,t,i,n,s){let r=o-1,a=e-1;for(;r>=t&&a>=i;)n[r]===s[a]&&(MN[r]=a,r--),a--}function Toe(o,e,t,i,n,s,r,a,l,d,c){if(e[t]!==s[r])return Number.MIN_SAFE_INTEGER;let h=1,u=!1;return r===t-i?h=o[t]===n[r]?7:5:uw(r,n,s)&&(r===0||!uw(r-1,n,s))?(h=o[t]===n[r]?7:5,u=!0):i1(s,r)&&(r===0||!i1(s,r-1))?h=5:(i1(s,r-1)||I5(s,r-1))&&(h=5,u=!0),h>1&&t===i&&(c[0]=!0),u||(u=uw(r,n,s)||i1(s,r-1)||I5(s,r-1)),t===i?r>l&&(h-=u?3:5):d?h+=u?2:0:h+=u?0:1,r+1===a&&(h-=u?3:5),h}function Moe(o,e,t,i,n,s,r){return Roe(o,e,t,i,n,s,!0,r)}function Roe(o,e,t,i,n,s,r,a){let l=Cg(o,e,t,i,n,s,a);if(l&&!r)return l;if(o.length>=3){const d=Math.min(7,o.length-1);for(let c=t+1;cl[0])&&(l=u))}}}return l}function Aoe(o,e){if(e+1>=o.length)return;const t=o[e],i=o[e+1];if(t!==i)return o.slice(0,e)+i+t+o.slice(e+2)}const Poe="$(",E2=new RegExp(`\\$\\(${Te.iconNameExpression}(?:${Te.iconModifierExpression})?\\)`,"g"),Ooe=new RegExp(`(\\\\)?${E2.source}`,"g");function Foe(o){return o.replace(Ooe,(e,t)=>t?e:`\\${e}`)}const Boe=new RegExp(`\\\\${E2.source}`,"g");function Woe(o){return o.replace(Boe,e=>`\\${e}`)}const Hoe=new RegExp(`(\\s)?(\\\\)?${E2.source}(\\s)?`,"g");function N2(o){return o.indexOf(Poe)===-1?o:o.replace(Hoe,(e,t,i,n)=>i?e:t||n||"")}function Voe(o){return o?o.replace(/\$\((.*?)\)/g,(e,t)=>` ${t} `).trim():""}const _k=new RegExp(`\\$\\(${Te.iconNameCharacter}+\\)`,"g");function $_(o){_k.lastIndex=0;let e="";const t=[];let i=0;for(;;){const n=_k.lastIndex,s=_k.exec(o),r=o.substring(n,s==null?void 0:s.index);if(r.length>0){e+=r;for(let a=0;a" ".repeat(n.length)).replace(/\>/gm,"\\>").replace(/\n/g,t===1?`\\ +`:` + +`),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+=` +${$oe(t,e)} +`,this}appendLink(e,t,i){return this.value+="[",this.value+=this._escape(t,"]"),this.value+="](",this.value+=this._escape(String(e),")"),i&&(this.value+=` "${this._escape(this._escape(i,'"'),")")}"`),this.value+=")",this}_escape(e,t){const i=new RegExp(Oo(t),"g");return e.replace(i,(n,s)=>e.charAt(s-1)!=="\\"?`\\${n}`:n)}}function tp(o){return La(o)?!o.value:Array.isArray(o)?o.every(tp):!0}function La(o){return o instanceof Un?!0:o&&typeof o=="object"?typeof o.value=="string"&&(typeof o.isTrusted=="boolean"||typeof o.isTrusted=="object"||o.isTrusted===void 0)&&(typeof o.supportThemeIcons=="boolean"||o.supportThemeIcons===void 0):!1}function zoe(o,e){return o===e?!0:!o||!e?!1:o.value===e.value&&o.isTrusted===e.isTrusted&&o.supportThemeIcons===e.supportThemeIcons&&o.supportHtml===e.supportHtml&&(o.baseUri===e.baseUri||!!o.baseUri&&!!e.baseUri&&o2(ke.from(o.baseUri),ke.from(e.baseUri)))}function Uoe(o){return o.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")}function $oe(o,e){var t,i;const n=(i=(t=o.match(/^`+/gm))===null||t===void 0?void 0:t.reduce((r,a)=>r.length>a.length?r:a).length)!==null&&i!==void 0?i:0,s=n>=3?n+1:3;return[`${"`".repeat(s)}${e}`,o,`${"`".repeat(s)}`].join(` +`)}function n1(o){return o.replace(/"/g,""")}function bk(o){return o&&o.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1")}function joe(o){const e=[],t=o.split("|").map(n=>n.trim());o=t[0];const i=t[1];if(i){const n=/height=(\d+)/.exec(i),s=/width=(\d+)/.exec(i),r=n?n[1]:"",a=s?s[1]:"",l=isFinite(parseInt(a)),d=isFinite(parseInt(r));l&&e.push(`width="${a}"`),d&&e.push(`height="${r}"`)}return{href:o,dimensions:e}}class T2{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const RN=new T2("id#");let Ns={};(function(){function o(e,t){t(Ns)}o.amd=!0,function(e,t){typeof o=="function"&&o.amd?o(["exports"],t):typeof exports=="object"&&typeof module<"u"?t(exports):(e=typeof globalThis<"u"?globalThis:e||self,t(e.marked={}))}(this,function(e){function t(ie,Z){for(var q=0;qie.length)&&(Z=ie.length);for(var q=0,M=new Array(Z);q=ie.length?{done:!0}:{done:!1,value:ie[M++]}}}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 a(){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}}e.defaults=a();function l(ie){e.defaults=ie}var d=/[&<>"']/,c=/[&<>"']/g,h=/[<>"']|&(?!#?\w+;)/,u=/[<>"']|&(?!#?\w+;)/g,g={"&":"&","<":"<",">":">",'"':""","'":"'"},f=function(Z){return g[Z]};function p(ie,Z){if(Z){if(d.test(ie))return ie.replace(c,f)}else if(h.test(ie))return ie.replace(u,f);return ie}var _=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function v(ie){return ie.replace(_,function(Z,q){return q=q.toLowerCase(),q==="colon"?":":q.charAt(0)==="#"?q.charAt(1)==="x"?String.fromCharCode(parseInt(q.substring(2),16)):String.fromCharCode(+q.substring(1)):""})}var b=/(^|[^\[])\^/g;function C(ie,Z){ie=typeof ie=="string"?ie:ie.source,Z=Z||"";var q={replace:function(R,$){return $=$.source||$,$=$.replace(b,"$1"),ie=ie.replace(R,$),q},getRegex:function(){return new RegExp(ie,Z)}};return q}var w=/[^\w:]/g,S=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function L(ie,Z,q){if(ie){var M;try{M=decodeURIComponent(v(q)).replace(w,"").toLowerCase()}catch{return null}if(M.indexOf("javascript:")===0||M.indexOf("vbscript:")===0||M.indexOf("data:")===0)return null}Z&&!S.test(q)&&(q=P(Z,q));try{q=encodeURI(q).replace(/%25/g,"%")}catch{return null}return q}var D={},I=/^[^:]+:\/*[^/]*$/,T=/^([^:]+:)[\s\S]*$/,V=/^([^:]+:\/*[^/]*)[\s\S]*$/;function P(ie,Z){D[" "+ie]||(I.test(ie)?D[" "+ie]=ie+"/":D[" "+ie]=X(ie,"/",!0)),ie=D[" "+ie];var q=ie.indexOf(":")===-1;return Z.substring(0,2)==="//"?q?Z:ie.replace(T,"$1")+Z:Z.charAt(0)==="/"?q?Z:ie.replace(V,"$1")+Z:ie+Z}var A={exec:function(){}};function B(ie){for(var Z=1,q,M;Z=0&&se[Ie]==="\\";)ge=!ge;return ge?"|":" |"}),M=q.split(/ \|/),R=0;if(M[0].trim()||M.shift(),M.length>0&&!M[M.length-1].trim()&&M.pop(),M.length>Z)M.splice(Z);else for(;M.length1;)Z&1&&(q+=ie),Z>>=1,ie+=ie;return q+ie}function fe(ie,Z,q,M){var R=Z.href,$=Z.title?p(Z.title):null,H=ie[1].replace(/\\([\[\]])/g,"$1");if(ie[0].charAt(0)!=="!"){M.state.inLink=!0;var se={type:"link",raw:q,href:R,title:$,text:H,tokens:M.inlineTokens(H)};return M.state.inLink=!1,se}return{type:"image",raw:q,href:R,title:$,text:p(H)}}function Ue(ie,Z){var q=ie.match(/^(\s+)(?:```)/);if(q===null)return Z;var M=q[1];return Z.split(` +`).map(function(R){var $=R.match(/^\s+/);if($===null)return R;var H=$[0];return H.length>=M.length?R.slice(M.length):R}).join(` +`)}var Ve=function(){function ie(q){this.options=q||e.defaults}var Z=ie.prototype;return Z.space=function(M){var R=this.rules.block.newline.exec(M);if(R&&R[0].length>0)return{type:"space",raw:R[0]}},Z.code=function(M){var R=this.rules.block.code.exec(M);if(R){var $=R[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:R[0],codeBlockStyle:"indented",text:this.options.pedantic?$:X($,` +`)}}},Z.fences=function(M){var R=this.rules.block.fences.exec(M);if(R){var $=R[0],H=Ue($,R[3]||"");return{type:"code",raw:$,lang:R[2]?R[2].trim():R[2],text:H}}},Z.heading=function(M){var R=this.rules.block.heading.exec(M);if(R){var $=R[2].trim();if(/#$/.test($)){var H=X($,"#");(this.options.pedantic||!H||/ $/.test(H))&&($=H.trim())}return{type:"heading",raw:R[0],depth:R[1].length,text:$,tokens:this.lexer.inline($)}}},Z.hr=function(M){var R=this.rules.block.hr.exec(M);if(R)return{type:"hr",raw:R[0]}},Z.blockquote=function(M){var R=this.rules.block.blockquote.exec(M);if(R){var $=R[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:R[0],tokens:this.lexer.blockTokens($,[]),text:$}}},Z.list=function(M){var R=this.rules.block.list.exec(M);if(R){var $,H,se,ge,Ie,Pe,et,Ye,jt,Ot,$e,Li,xi=R[1].trim(),wr=xi.length>1,kt={type:"list",raw:"",ordered:wr,start:wr?+xi.slice(0,-1):"",loose:!1,items:[]};xi=wr?"\\d{1,9}\\"+xi.slice(-1):"\\"+xi,this.options.pedantic&&(xi=wr?xi:"[*+-]");for(var Gi=new RegExp("^( {0,3}"+xi+")((?:[ ][^\\n]*)?(?:\\n|$))");M&&(Li=!1,!(!(R=Gi.exec(M))||this.rules.block.hr.test(M)));){if($=R[0],M=M.substring($.length),Ye=R[2].split(` +`,1)[0],jt=M.split(` +`,1)[0],this.options.pedantic?(ge=2,$e=Ye.trimLeft()):(ge=R[2].search(/[^ ]/),ge=ge>4?1:ge,$e=Ye.slice(ge),ge+=R[1].length),Pe=!1,!Ye&&/^ *$/.test(jt)&&($+=jt+` +`,M=M.substring(jt.length+1),Li=!0),!Li)for(var nu=new RegExp("^ {0,"+Math.min(3,ge-1)+"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"),su=new RegExp("^ {0,"+Math.min(3,ge-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),Gr=new RegExp("^ {0,"+Math.min(3,ge-1)+"}(?:```|~~~)"),pc=new RegExp("^ {0,"+Math.min(3,ge-1)+"}#");M&&(Ot=M.split(` +`,1)[0],Ye=Ot,this.options.pedantic&&(Ye=Ye.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(Gr.test(Ye)||pc.test(Ye)||nu.test(Ye)||su.test(M)));){if(Ye.search(/[^ ]/)>=ge||!Ye.trim())$e+=` +`+Ye.slice(ge);else if(!Pe)$e+=` +`+Ye;else break;!Pe&&!Ye.trim()&&(Pe=!0),$+=Ot+` +`,M=M.substring(Ot.length+1)}kt.loose||(et?kt.loose=!0:/\n *\n *$/.test($)&&(et=!0)),this.options.gfm&&(H=/^\[[ xX]\] /.exec($e),H&&(se=H[0]!=="[ ] ",$e=$e.replace(/^\[[ xX]\] +/,""))),kt.items.push({type:"list_item",raw:$,task:!!H,checked:se,loose:!1,text:$e}),kt.raw+=$}kt.items[kt.items.length-1].raw=$.trimRight(),kt.items[kt.items.length-1].text=$e.trimRight(),kt.raw=kt.raw.trimRight();var ou=kt.items.length;for(Ie=0;Ie1)return!0}return!1});!kt.loose&&ru.length&&af&&(kt.loose=!0,kt.items[Ie].loose=!0)}return kt}},Z.html=function(M){var R=this.rules.block.html.exec(M);if(R){var $={type:"html",raw:R[0],pre:!this.options.sanitizer&&(R[1]==="pre"||R[1]==="script"||R[1]==="style"),text:R[0]};if(this.options.sanitize){var H=this.options.sanitizer?this.options.sanitizer(R[0]):p(R[0]);$.type="paragraph",$.text=H,$.tokens=this.lexer.inline(H)}return $}},Z.def=function(M){var R=this.rules.block.def.exec(M);if(R){R[3]&&(R[3]=R[3].substring(1,R[3].length-1));var $=R[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:$,raw:R[0],href:R[2],title:R[3]}}},Z.table=function(M){var R=this.rules.block.table.exec(M);if(R){var $={type:"table",header:j(R[1]).map(function(et){return{text:et}}),align:R[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:R[3]&&R[3].trim()?R[3].replace(/\n[ \t]*$/,"").split(` +`):[]};if($.header.length===$.align.length){$.raw=R[0];var H=$.align.length,se,ge,Ie,Pe;for(se=0;se/i.test(R[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(R[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(R[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:R[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(R[0]):p(R[0]):R[0]}},Z.link=function(M){var R=this.rules.inline.link.exec(M);if(R){var $=R[2].trim();if(!this.options.pedantic&&/^$/.test($))return;var H=X($.slice(0,-1),"\\");if(($.length-H.length)%2===0)return}else{var se=pe(R[2],"()");if(se>-1){var ge=R[0].indexOf("!")===0?5:4,Ie=ge+R[1].length+se;R[2]=R[2].substring(0,se),R[0]=R[0].substring(0,Ie).trim(),R[3]=""}}var Pe=R[2],et="";if(this.options.pedantic){var Ye=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Pe);Ye&&(Pe=Ye[1],et=Ye[3])}else et=R[3]?R[3].slice(1,-1):"";return Pe=Pe.trim(),/^$/.test($)?Pe=Pe.slice(1):Pe=Pe.slice(1,-1)),fe(R,{href:Pe&&Pe.replace(this.rules.inline._escapes,"$1"),title:et&&et.replace(this.rules.inline._escapes,"$1")},R[0],this.lexer)}},Z.reflink=function(M,R){var $;if(($=this.rules.inline.reflink.exec(M))||($=this.rules.inline.nolink.exec(M))){var H=($[2]||$[1]).replace(/\s+/g," ");if(H=R[H.toLowerCase()],!H||!H.href){var se=$[0].charAt(0);return{type:"text",raw:se,text:se}}return fe($,H,$[0],this.lexer)}},Z.emStrong=function(M,R,$){$===void 0&&($="");var H=this.rules.inline.emStrong.lDelim.exec(M);if(H&&!(H[3]&&$.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 se=H[1]||H[2]||"";if(!se||se&&($===""||this.rules.inline.punctuation.exec($))){var ge=H[0].length-1,Ie,Pe,et=ge,Ye=0,jt=H[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(jt.lastIndex=0,R=R.slice(-1*M.length+ge);(H=jt.exec(R))!=null;)if(Ie=H[1]||H[2]||H[3]||H[4]||H[5]||H[6],!!Ie){if(Pe=Ie.length,H[3]||H[4]){et+=Pe;continue}else if((H[5]||H[6])&&ge%3&&!((ge+Pe)%3)){Ye+=Pe;continue}if(et-=Pe,!(et>0)){if(Pe=Math.min(Pe,Pe+et+Ye),Math.min(ge,Pe)%2){var Ot=M.slice(1,ge+H.index+Pe);return{type:"em",raw:M.slice(0,ge+H.index+Pe+1),text:Ot,tokens:this.lexer.inlineTokens(Ot)}}var $e=M.slice(2,ge+H.index+Pe-1);return{type:"strong",raw:M.slice(0,ge+H.index+Pe+1),text:$e,tokens:this.lexer.inlineTokens($e)}}}}}},Z.codespan=function(M){var R=this.rules.inline.code.exec(M);if(R){var $=R[2].replace(/\n/g," "),H=/[^ ]/.test($),se=/^ /.test($)&&/ $/.test($);return H&&se&&($=$.substring(1,$.length-1)),$=p($,!0),{type:"codespan",raw:R[0],text:$}}},Z.br=function(M){var R=this.rules.inline.br.exec(M);if(R)return{type:"br",raw:R[0]}},Z.del=function(M){var R=this.rules.inline.del.exec(M);if(R)return{type:"del",raw:R[0],text:R[2],tokens:this.lexer.inlineTokens(R[2])}},Z.autolink=function(M,R){var $=this.rules.inline.autolink.exec(M);if($){var H,se;return $[2]==="@"?(H=p(this.options.mangle?R($[1]):$[1]),se="mailto:"+H):(H=p($[1]),se=H),{type:"link",raw:$[0],text:H,href:se,tokens:[{type:"text",raw:H,text:H}]}}},Z.url=function(M,R){var $;if($=this.rules.inline.url.exec(M)){var H,se;if($[2]==="@")H=p(this.options.mangle?R($[0]):$[0]),se="mailto:"+H;else{var ge;do ge=$[0],$[0]=this.rules.inline._backpedal.exec($[0])[0];while(ge!==$[0]);H=p($[0]),$[1]==="www."?se="http://"+H:se=H}return{type:"link",raw:$[0],text:H,href:se,tokens:[{type:"text",raw:H,text:H}]}}},Z.inlineText=function(M,R){var $=this.rules.inline.text.exec(M);if($){var H;return this.lexer.state.inRawBlock?H=this.options.sanitize?this.options.sanitizer?this.options.sanitizer($[0]):p($[0]):$[0]:H=p(this.options.smartypants?R($[0]):$[0]),{type:"text",raw:$[0],text:H}}},ie}(),Ne={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:A,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};Ne._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Ne._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Ne.def=C(Ne.def).replace("label",Ne._label).replace("title",Ne._title).getRegex(),Ne.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ne.listItemStart=C(/^( *)(bull) */).replace("bull",Ne.bullet).getRegex(),Ne.list=C(Ne.list).replace(/bull/g,Ne.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ne.def.source+")").getRegex(),Ne._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",Ne._comment=/|$)/,Ne.html=C(Ne.html,"i").replace("comment",Ne._comment).replace("tag",Ne._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ne.paragraph=C(Ne._paragraph).replace("hr",Ne.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",Ne._tag).getRegex(),Ne.blockquote=C(Ne.blockquote).replace("paragraph",Ne.paragraph).getRegex(),Ne.normal=B({},Ne),Ne.gfm=B({},Ne.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ne.gfm.table=C(Ne.gfm.table).replace("hr",Ne.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",Ne._tag).getRegex(),Ne.gfm.paragraph=C(Ne._paragraph).replace("hr",Ne.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Ne.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",Ne._tag).getRegex(),Ne.pedantic=B({},Ne.normal,{html:C(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ne._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:A,paragraph:C(Ne.normal._paragraph).replace("hr",Ne.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",Ne.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var ue={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:A,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:A,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",ue.punctuation=C(ue.punctuation).replace(/punctuation/g,ue._punctuation).getRegex(),ue.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,ue.escapedEmSt=/\\\*|\\_/g,ue._comment=C(Ne._comment).replace("(?:-->|$)","-->").getRegex(),ue.emStrong.lDelim=C(ue.emStrong.lDelim).replace(/punct/g,ue._punctuation).getRegex(),ue.emStrong.rDelimAst=C(ue.emStrong.rDelimAst,"g").replace(/punct/g,ue._punctuation).getRegex(),ue.emStrong.rDelimUnd=C(ue.emStrong.rDelimUnd,"g").replace(/punct/g,ue._punctuation).getRegex(),ue._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ue._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ue._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])?)+(?![-_])/,ue.autolink=C(ue.autolink).replace("scheme",ue._scheme).replace("email",ue._email).getRegex(),ue._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ue.tag=C(ue.tag).replace("comment",ue._comment).replace("attribute",ue._attribute).getRegex(),ue._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ue._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,ue._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ue.link=C(ue.link).replace("label",ue._label).replace("href",ue._href).replace("title",ue._title).getRegex(),ue.reflink=C(ue.reflink).replace("label",ue._label).replace("ref",Ne._label).getRegex(),ue.nolink=C(ue.nolink).replace("ref",Ne._label).getRegex(),ue.reflinkSearch=C(ue.reflinkSearch,"g").replace("reflink",ue.reflink).replace("nolink",ue.nolink).getRegex(),ue.normal=B({},ue),ue.pedantic=B({},ue.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:C(/^!?\[(label)\]\((.*?)\)/).replace("label",ue._label).getRegex(),reflink:C(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ue._label).getRegex()}),ue.gfm=B({},ue.normal,{escape:C(ue.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&&(M="x"+M.toString(16)),Z+="&#"+M+";";return Z}var qi=function(){function ie(q){this.tokens=[],this.tokens.links=Object.create(null),this.options=q||e.defaults,this.options.tokenizer=this.options.tokenizer||new Ve,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 M={block:Ne.normal,inline:ue.normal};this.options.pedantic?(M.block=Ne.pedantic,M.inline=ue.pedantic):this.options.gfm&&(M.block=Ne.gfm,this.options.breaks?M.inline=ue.breaks:M.inline=ue.gfm),this.tokenizer.rules=M}ie.lex=function(M,R){var $=new ie(R);return $.lex(M)},ie.lexInline=function(M,R){var $=new ie(R);return $.inlineTokens(M)};var Z=ie.prototype;return Z.lex=function(M){M=M.replace(/\r\n|\r/g,` +`),this.blockTokens(M,this.tokens);for(var R;R=this.inlineQueue.shift();)this.inlineTokens(R.src,R.tokens);return this.tokens},Z.blockTokens=function(M,R){var $=this;R===void 0&&(R=[]),this.options.pedantic?M=M.replace(/\t/g," ").replace(/^ +$/gm,""):M=M.replace(/^( *)(\t+)/gm,function(et,Ye,jt){return Ye+" ".repeat(jt.length)});for(var H,se,ge,Ie;M;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(et){return(H=et.call({lexer:$},M,R))?(M=M.substring(H.raw.length),R.push(H),!0):!1}))){if(H=this.tokenizer.space(M)){M=M.substring(H.raw.length),H.raw.length===1&&R.length>0?R[R.length-1].raw+=` +`:R.push(H);continue}if(H=this.tokenizer.code(M)){M=M.substring(H.raw.length),se=R[R.length-1],se&&(se.type==="paragraph"||se.type==="text")?(se.raw+=` +`+H.raw,se.text+=` +`+H.text,this.inlineQueue[this.inlineQueue.length-1].src=se.text):R.push(H);continue}if(H=this.tokenizer.fences(M)){M=M.substring(H.raw.length),R.push(H);continue}if(H=this.tokenizer.heading(M)){M=M.substring(H.raw.length),R.push(H);continue}if(H=this.tokenizer.hr(M)){M=M.substring(H.raw.length),R.push(H);continue}if(H=this.tokenizer.blockquote(M)){M=M.substring(H.raw.length),R.push(H);continue}if(H=this.tokenizer.list(M)){M=M.substring(H.raw.length),R.push(H);continue}if(H=this.tokenizer.html(M)){M=M.substring(H.raw.length),R.push(H);continue}if(H=this.tokenizer.def(M)){M=M.substring(H.raw.length),se=R[R.length-1],se&&(se.type==="paragraph"||se.type==="text")?(se.raw+=` +`+H.raw,se.text+=` +`+H.raw,this.inlineQueue[this.inlineQueue.length-1].src=se.text):this.tokens.links[H.tag]||(this.tokens.links[H.tag]={href:H.href,title:H.title});continue}if(H=this.tokenizer.table(M)){M=M.substring(H.raw.length),R.push(H);continue}if(H=this.tokenizer.lheading(M)){M=M.substring(H.raw.length),R.push(H);continue}if(ge=M,this.options.extensions&&this.options.extensions.startBlock&&function(){var et=1/0,Ye=M.slice(1),jt=void 0;$.options.extensions.startBlock.forEach(function(Ot){jt=Ot.call({lexer:this},Ye),typeof jt=="number"&&jt>=0&&(et=Math.min(et,jt))}),et<1/0&&et>=0&&(ge=M.substring(0,et+1))}(),this.state.top&&(H=this.tokenizer.paragraph(ge))){se=R[R.length-1],Ie&&se.type==="paragraph"?(se.raw+=` +`+H.raw,se.text+=` +`+H.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=se.text):R.push(H),Ie=ge.length!==M.length,M=M.substring(H.raw.length);continue}if(H=this.tokenizer.text(M)){M=M.substring(H.raw.length),se=R[R.length-1],se&&se.type==="text"?(se.raw+=` +`+H.raw,se.text+=` +`+H.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=se.text):R.push(H);continue}if(M){var Pe="Infinite loop on byte: "+M.charCodeAt(0);if(this.options.silent){console.error(Pe);break}else throw new Error(Pe)}}return this.state.top=!0,R},Z.inline=function(M,R){return R===void 0&&(R=[]),this.inlineQueue.push({src:M,tokens:R}),R},Z.inlineTokens=function(M,R){var $=this;R===void 0&&(R=[]);var H,se,ge,Ie=M,Pe,et,Ye;if(this.tokens.links){var jt=Object.keys(this.tokens.links);if(jt.length>0)for(;(Pe=this.tokenizer.rules.inline.reflinkSearch.exec(Ie))!=null;)jt.includes(Pe[0].slice(Pe[0].lastIndexOf("[")+1,-1))&&(Ie=Ie.slice(0,Pe.index)+"["+Ee("a",Pe[0].length-2)+"]"+Ie.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Pe=this.tokenizer.rules.inline.blockSkip.exec(Ie))!=null;)Ie=Ie.slice(0,Pe.index)+"["+Ee("a",Pe[0].length-2)+"]"+Ie.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Pe=this.tokenizer.rules.inline.escapedEmSt.exec(Ie))!=null;)Ie=Ie.slice(0,Pe.index)+"++"+Ie.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;M;)if(et||(Ye=""),et=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function($e){return(H=$e.call({lexer:$},M,R))?(M=M.substring(H.raw.length),R.push(H),!0):!1}))){if(H=this.tokenizer.escape(M)){M=M.substring(H.raw.length),R.push(H);continue}if(H=this.tokenizer.tag(M)){M=M.substring(H.raw.length),se=R[R.length-1],se&&H.type==="text"&&se.type==="text"?(se.raw+=H.raw,se.text+=H.text):R.push(H);continue}if(H=this.tokenizer.link(M)){M=M.substring(H.raw.length),R.push(H);continue}if(H=this.tokenizer.reflink(M,this.tokens.links)){M=M.substring(H.raw.length),se=R[R.length-1],se&&H.type==="text"&&se.type==="text"?(se.raw+=H.raw,se.text+=H.text):R.push(H);continue}if(H=this.tokenizer.emStrong(M,Ie,Ye)){M=M.substring(H.raw.length),R.push(H);continue}if(H=this.tokenizer.codespan(M)){M=M.substring(H.raw.length),R.push(H);continue}if(H=this.tokenizer.br(M)){M=M.substring(H.raw.length),R.push(H);continue}if(H=this.tokenizer.del(M)){M=M.substring(H.raw.length),R.push(H);continue}if(H=this.tokenizer.autolink(M,as)){M=M.substring(H.raw.length),R.push(H);continue}if(!this.state.inLink&&(H=this.tokenizer.url(M,as))){M=M.substring(H.raw.length),R.push(H);continue}if(ge=M,this.options.extensions&&this.options.extensions.startInline&&function(){var $e=1/0,Li=M.slice(1),xi=void 0;$.options.extensions.startInline.forEach(function(wr){xi=wr.call({lexer:this},Li),typeof xi=="number"&&xi>=0&&($e=Math.min($e,xi))}),$e<1/0&&$e>=0&&(ge=M.substring(0,$e+1))}(),H=this.tokenizer.inlineText(ge,vi)){M=M.substring(H.raw.length),H.raw.slice(-1)!=="_"&&(Ye=H.raw.slice(-1)),et=!0,se=R[R.length-1],se&&se.type==="text"?(se.raw+=H.raw,se.text+=H.text):R.push(H);continue}if(M){var Ot="Infinite loop on byte: "+M.charCodeAt(0);if(this.options.silent){console.error(Ot);break}else throw new Error(Ot)}}return R},i(ie,null,[{key:"rules",get:function(){return{block:Ne,inline:ue}}}]),ie}(),xt=function(){function ie(q){this.options=q||e.defaults}var Z=ie.prototype;return Z.code=function(M,R,$){var H=(R||"").match(/\S*/)[0];if(this.options.highlight){var se=this.options.highlight(M,H);se!=null&&se!==M&&($=!0,M=se)}return M=M.replace(/\n$/,"")+` +`,H?'
'+($?M:p(M,!0))+`
+`:"
"+($?M:p(M,!0))+`
+`},Z.blockquote=function(M){return`
+`+M+`
+`},Z.html=function(M){return M},Z.heading=function(M,R,$,H){if(this.options.headerIds){var se=this.options.headerPrefix+H.slug($);return"'+M+" +`}return""+M+" +`},Z.hr=function(){return this.options.xhtml?`
+`:`
+`},Z.list=function(M,R,$){var H=R?"ol":"ul",se=R&&$!==1?' start="'+$+'"':"";return"<"+H+se+`> +`+M+" +`},Z.listitem=function(M){return"
  • "+M+`
  • +`},Z.checkbox=function(M){return" "},Z.paragraph=function(M){return"

    "+M+`

    +`},Z.table=function(M,R){return R&&(R=""+R+""),` + +`+M+` +`+R+`
    +`},Z.tablerow=function(M){return` +`+M+` +`},Z.tablecell=function(M,R){var $=R.header?"th":"td",H=R.align?"<"+$+' align="'+R.align+'">':"<"+$+">";return H+M+(" +`)},Z.strong=function(M){return""+M+""},Z.em=function(M){return""+M+""},Z.codespan=function(M){return""+M+""},Z.br=function(){return this.options.xhtml?"
    ":"
    "},Z.del=function(M){return""+M+""},Z.link=function(M,R,$){if(M=L(this.options.sanitize,this.options.baseUrl,M),M===null)return $;var H='
    ",H},Z.image=function(M,R,$){if(M=L(this.options.sanitize,this.options.baseUrl,M),M===null)return $;var H=''+$+'":">",H},Z.text=function(M){return M},ie}(),en=function(){function ie(){}var Z=ie.prototype;return Z.strong=function(M){return M},Z.em=function(M){return M},Z.codespan=function(M){return M},Z.del=function(M){return M},Z.html=function(M){return M},Z.text=function(M){return M},Z.link=function(M,R,$){return""+$},Z.image=function(M,R,$){return""+$},Z.br=function(){return""},ie}(),ls=function(){function ie(){this.seen={}}var Z=ie.prototype;return Z.serialize=function(M){return M.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},Z.getNextSafeSlug=function(M,R){var $=M,H=0;if(this.seen.hasOwnProperty($)){H=this.seen[M];do H++,$=M+"-"+H;while(this.seen.hasOwnProperty($))}return R||(this.seen[M]=H,this.seen[$]=0),$},Z.slug=function(M,R){R===void 0&&(R={});var $=this.serialize(M);return this.getNextSafeSlug($,R.dryrun)},ie}(),vn=function(){function ie(q){this.options=q||e.defaults,this.options.renderer=this.options.renderer||new xt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new en,this.slugger=new ls}ie.parse=function(M,R){var $=new ie(R);return $.parse(M)},ie.parseInline=function(M,R){var $=new ie(R);return $.parseInline(M)};var Z=ie.prototype;return Z.parse=function(M,R){R===void 0&&(R=!0);var $="",H,se,ge,Ie,Pe,et,Ye,jt,Ot,$e,Li,xi,wr,kt,Gi,nu,su,Gr,pc,ou=M.length;for(H=0;H0&&Gi.tokens[0].type==="paragraph"?(Gi.tokens[0].text=Gr+" "+Gi.tokens[0].text,Gi.tokens[0].tokens&&Gi.tokens[0].tokens.length>0&&Gi.tokens[0].tokens[0].type==="text"&&(Gi.tokens[0].tokens[0].text=Gr+" "+Gi.tokens[0].tokens[0].text)):Gi.tokens.unshift({type:"text",text:Gr}):kt+=Gr),kt+=this.parse(Gi.tokens,wr),Ot+=this.renderer.listitem(kt,su,nu);$+=this.renderer.list(Ot,Li,xi);continue}case"html":{$+=this.renderer.html($e.text);continue}case"paragraph":{$+=this.renderer.paragraph(this.parseInline($e.tokens));continue}case"text":{for(Ot=$e.tokens?this.parseInline($e.tokens):$e.text;H+1"u"||ie===null)throw new Error("marked(): input parameter is undefined or null");if(typeof ie!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(ie)+", string expected");if(typeof Z=="function"&&(q=Z,Z=null),Z=B({},qe.defaults,Z||{}),ye(Z),q){var M=Z.highlight,R;try{R=qi.lex(ie,Z)}catch(Ie){return q(Ie)}var $=function(Pe){var et;if(!Pe)try{Z.walkTokens&&qe.walkTokens(R,Z.walkTokens),et=vn.parse(R,Z)}catch(Ye){Pe=Ye}return Z.highlight=M,Pe?q(Pe):q(null,et)};if(!M||M.length<3||(delete Z.highlight,!R.length))return $();var H=0;qe.walkTokens(R,function(Ie){Ie.type==="code"&&(H++,setTimeout(function(){M(Ie.text,Ie.lang,function(Pe,et){if(Pe)return $(Pe);et!=null&&et!==Ie.text&&(Ie.text=et,Ie.escaped=!0),H--,H===0&&$()})},0))}),H===0&&$();return}function se(Ie){if(Ie.message+=` +Please report this to https://github.com/markedjs/marked.`,Z.silent)return"

    An error occurred:

    "+p(Ie.message+"",!0)+"
    ";throw Ie}try{var ge=qi.lex(ie,Z);if(Z.walkTokens){if(Z.async)return Promise.all(qe.walkTokens(ge,Z.walkTokens)).then(function(){return vn.parse(ge,Z)}).catch(se);qe.walkTokens(ge,Z.walkTokens)}return vn.parse(ge,Z)}catch(Ie){se(Ie)}}qe.options=qe.setOptions=function(ie){return B(qe.defaults,ie),l(qe.defaults),qe},qe.getDefaults=a,qe.defaults=e.defaults,qe.use=function(){for(var ie=arguments.length,Z=new Array(ie),q=0;q"u"||ie===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof ie!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(ie)+", string expected");Z=B({},qe.defaults,Z||{}),ye(Z);try{var q=qi.lexInline(ie,Z);return Z.walkTokens&&qe.walkTokens(q,Z.walkTokens),vn.parseInline(q,Z)}catch(M){if(M.message+=` +Please report this to https://github.com/markedjs/marked.`,Z.silent)return"

    An error occurred:

    "+p(M.message+"",!0)+"
    ";throw M}},qe.Parser=vn,qe.parser=vn.parse,qe.Renderer=xt,qe.TextRenderer=en,qe.Lexer=qi,qe.lexer=qi.lex,qe.Tokenizer=Ve,qe.Slugger=ls,qe.parse=qe;var br=qe.options,Cr=qe.setOptions,mo=qe.use,Yl=qe.walkTokens,dn=qe.parseInline,qr=qe,_C=vn.parse,sD=qi.lex;e.Lexer=qi,e.Parser=vn,e.Renderer=xt,e.Slugger=ls,e.TextRenderer=en,e.Tokenizer=Ve,e.getDefaults=a,e.lexer=sD,e.marked=qe,e.options=br,e.parse=qr,e.parseInline=dn,e.parser=_C,e.setOptions=Cr,e.use=mo,e.walkTokens=Yl,Object.defineProperty(e,"__esModule",{value:!0})})})();Ns.Lexer||exports.Lexer;Ns.Parser||exports.Parser;Ns.Renderer||exports.Renderer;Ns.Slugger||exports.Slugger;Ns.TextRenderer||exports.TextRenderer;Ns.Tokenizer||exports.Tokenizer;Ns.getDefaults||exports.getDefaults;Ns.lexer||exports.lexer;var ua=Ns.marked||exports.marked;Ns.options||exports.options;Ns.parse||exports.parse;Ns.parseInline||exports.parseInline;Ns.parser||exports.parser;Ns.setOptions||exports.setOptions;Ns.use||exports.use;Ns.walkTokens||exports.walkTokens;function Koe(o){return JSON.stringify(o,qoe)}function AN(o){let e=JSON.parse(o);return e=PN(e),e}function qoe(o,e){return e instanceof RegExp?{$mid:2,source:e.source,flags:e.flags}:e}function PN(o,e=0){if(!o||e>200)return o;if(typeof o=="object"){switch(o.$mid){case 1:return ke.revive(o);case 2:return new RegExp(o.source,o.flags);case 17:return new Date(o.source)}if(o instanceof lL||o instanceof Uint8Array)return o;if(Array.isArray(o))for(let t=0;t{let i=[],n=[];return o&&({href:o,dimensions:i}=joe(o),n.push(`src="${n1(o)}"`)),t&&n.push(`alt="${n1(t)}"`),e&&n.push(`title="${n1(e)}"`),i.length&&(n=n.concat(i)),""},paragraph:o=>`

    ${o}

    `,link:(o,e,t)=>typeof o!="string"?"":(o===t&&(t=bk(t)),e=typeof e=="string"?n1(bk(e)):"",o=bk(o),o=o.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),`
    ${t}`)});function TL(o,e={},t={}){var i,n;const s=new G;let r=!1;const a=y2(e),l=function(v){let b;try{b=AN(decodeURIComponent(v))}catch{}return b?(b=j7(b,C=>{if(o.uris&&o.uris[C])return ke.revive(o.uris[C])}),encodeURIComponent(JSON.stringify(b))):v},d=function(v,b){const C=o.uris&&o.uris[v];let w=ke.revive(C);return b?v.startsWith(Oe.data+":")?v:(w||(w=ke.parse(v)),V9.uriToBrowserUri(w).toString(!0)):!w||ke.parse(v).toString()===w.toString()?v:(w.query&&(w=w.with({query:l(w.query)})),w.toString())},c=new ua.Renderer;c.image=Ck.image,c.link=Ck.link,c.paragraph=Ck.paragraph;const h=[],u=[];if(e.codeBlockRendererSync?c.code=(v,b)=>{const C=RN.nextId(),w=e.codeBlockRendererSync(E5(b),v);return u.push([C,w]),`
    ${iv(v)}
    `}:e.codeBlockRenderer&&(c.code=(v,b)=>{const C=RN.nextId(),w=e.codeBlockRenderer(E5(b),v);return h.push(w.then(S=>[C,S])),`
    ${iv(v)}
    `}),e.actionHandler){const v=function(w){let S=w.target;if(!(S.tagName!=="A"&&(S=S.parentElement,!S||S.tagName!=="A")))try{let L=S.dataset.href;L&&(o.baseUri&&(L=wk(ke.from(o.baseUri),L)),e.actionHandler.callback(L,w))}catch(L){ze(L)}finally{w.preventDefault()}},b=e.actionHandler.disposables.add(new rt(a,"click")),C=e.actionHandler.disposables.add(new rt(a,"auxclick"));e.actionHandler.disposables.add(ae.any(b.event,C.event)(w=>{const S=new Rr(De(a),w);!S.leftButton&&!S.middleButton||v(S)})),e.actionHandler.disposables.add(U(a,"keydown",w=>{const S=new Ht(w);!S.equals(10)&&!S.equals(3)||v(S)}))}o.supportHtml||(t.sanitizer=v=>{var b;return!((b=e.sanitizerOptions)===null||b===void 0)&&b.replaceWithPlaintext?iv(v):(o.isTrusted?v.match(/^(]+>)|(<\/\s*span>)$/):void 0)?v:""},t.sanitize=!0,t.silent=!0),t.renderer=c;let g=(i=o.value)!==null&&i!==void 0?i:"";g.length>1e5&&(g=`${g.substr(0,1e5)}…`),o.supportThemeIcons&&(g=Woe(g));let f;if(e.fillInIncompleteTokens){const v={...ua.defaults,...t},b=ua.lexer(g,v),C=rre(b);f=ua.parser(C,v)}else f=ua.parse(g,t);o.supportThemeIcons&&(f=dh(f).map(b=>typeof b=="string"?b:b.outerHTML).join(""));const _=new DOMParser().parseFromString(ON({isTrusted:o.isTrusted,...e.sanitizerOptions},f),"text/html");if(_.body.querySelectorAll("img, audio, video, source").forEach(v=>{const b=v.getAttribute("src");if(b){let C=b;try{o.baseUri&&(C=wk(ke.from(o.baseUri),C))}catch{}if(v.setAttribute("src",d(C,!0)),e.remoteImageIsAllowed){const w=ke.parse(C);w.scheme!==Oe.file&&w.scheme!==Oe.data&&!e.remoteImageIsAllowed(w)&&v.replaceWith(te("",void 0,v.outerHTML))}}}),_.body.querySelectorAll("a").forEach(v=>{const b=v.getAttribute("href");if(v.setAttribute("href",""),!b||/^data:|javascript:/i.test(b)||/^command:/i.test(b)&&!o.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(b))v.replaceWith(...v.childNodes);else{let C=d(b,!1);o.baseUri&&(C=wk(ke.from(o.baseUri),b)),v.dataset.href=C}}),a.innerHTML=ON({isTrusted:o.isTrusted,...e.sanitizerOptions},_.body.innerHTML),h.length>0)Promise.all(h).then(v=>{var b,C;if(r)return;const w=new Map(v),S=a.querySelectorAll("div[data-code]");for(const L of S){const D=w.get((b=L.dataset.code)!==null&&b!==void 0?b:"");D&&Dn(L,D)}(C=e.asyncRenderCallback)===null||C===void 0||C.call(e)});else if(u.length>0){const v=new Map(u),b=a.querySelectorAll("div[data-code]");for(const C of b){const w=v.get((n=C.dataset.code)!==null&&n!==void 0?n:"");w&&Dn(C,w)}}if(e.asyncRenderCallback)for(const v of a.getElementsByTagName("img")){const b=s.add(U(v,"load",()=>{b.dispose(),e.asyncRenderCallback()}))}return{element:a,dispose:()=>{r=!0,s.dispose()}}}function E5(o){if(!o)return"";const e=o.split(/[\s+|:|,|\{|\?]/,1);return e.length?e[0]:o}function wk(o,e){return/^\w[\w\d+.-]*:/.test(e)?e:o.path.endsWith("/")?P4(o,e).toString():P4(LL(o),e).toString()}const Goe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function ON(o,e){const{config:t,allowedSchemes:i}=Yoe(o),n=new G;n.add(N5("uponSanitizeAttribute",(s,r)=>{var a;if(r.attrName==="style"||r.attrName==="class"){if(s.tagName==="SPAN"){if(r.attrName==="style"){r.keepAttr=/^(color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(background-color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?$/.test(r.attrValue);return}else if(r.attrName==="class"){r.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(r.attrValue);return}}r.keepAttr=!1;return}else if(s.tagName==="INPUT"&&((a=s.attributes.getNamedItem("type"))===null||a===void 0?void 0:a.value)==="checkbox"){if(r.attrName==="type"&&r.attrValue==="checkbox"||r.attrName==="disabled"||r.attrName==="checked"){r.keepAttr=!0;return}r.keepAttr=!1}})),n.add(N5("uponSanitizeElement",(s,r)=>{var a,l;if(r.tagName==="input"&&(((a=s.attributes.getNamedItem("type"))===null||a===void 0?void 0:a.value)==="checkbox"?s.setAttribute("disabled",""):o.replaceWithPlaintext||(l=s.parentElement)===null||l===void 0||l.removeChild(s)),o.replaceWithPlaintext&&!r.allowedTags[r.tagName]&&r.tagName!=="body"&&s.parentElement){let d,c;if(r.tagName==="#comment")d=``;else{const f=Goe.includes(r.tagName),p=s.attributes.length?" "+Array.from(s.attributes).map(_=>`${_.name}="${_.value}"`).join(" "):"";d=`<${r.tagName}${p}>`,f||(c=``)}const h=document.createDocumentFragment(),u=s.parentElement.ownerDocument.createTextNode(d);h.appendChild(u);const g=c?s.parentElement.ownerDocument.createTextNode(c):void 0;for(;s.firstChild;)h.appendChild(s.firstChild);g&&h.appendChild(g),s.parentElement.replaceChild(h,s)}})),n.add(rG(i));try{return F9(e,{...t,RETURN_TRUSTED_TYPE:!0})}finally{n.dispose()}}const Zoe=["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"];function Yoe(o){var e;const t=[Oe.http,Oe.https,Oe.mailto,Oe.data,Oe.file,Oe.vscodeFileResource,Oe.vscodeRemote,Oe.vscodeRemoteResource];return o.isTrusted&&t.push(Oe.command),{config:{ALLOWED_TAGS:(e=o.allowedTags)!==null&&e!==void 0?e:[...aG],ALLOWED_ATTR:Zoe,ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:t}}function Qoe(o){return typeof o=="string"?o:Xoe(o)}function Xoe(o,e){var t;let i=(t=o.value)!==null&&t!==void 0?t:"";i.length>1e5&&(i=`${i.substr(0,1e5)}…`);const n=ua.parse(i,{renderer:e?tre.value:ere.value}).replace(/&(#\d+|[a-zA-Z]+);/g,s=>{var r;return(r=Joe.get(s))!==null&&r!==void 0?r:s});return ON({isTrusted:!1},n).toString()}const Joe=new Map([[""",'"'],[" "," "],["&","&"],["'","'"],["<","<"],[">",">"]]);function D6(){const o=new ua.Renderer;return o.code=e=>e,o.blockquote=e=>e,o.html=e=>"",o.heading=(e,t,i)=>e+` +`,o.hr=()=>"",o.list=(e,t)=>e,o.listitem=e=>e+` +`,o.paragraph=e=>e+` +`,o.table=(e,t)=>e+t+` +`,o.tablerow=e=>e,o.tablecell=(e,t)=>e+" ",o.strong=e=>e,o.em=e=>e,o.codespan=e=>e,o.br=()=>` +`,o.del=e=>e,o.image=(e,t,i)=>"",o.text=e=>e,o.link=(e,t,i)=>i,o}const ere=new $r(o=>D6()),tre=new $r(()=>{const o=D6();return o.code=e=>"\n```"+e+"```\n",o});function Cb(o){let e="";return o.forEach(t=>{e+=t.raw}),e}function k6(o){var e,t;if(o.tokens)for(let i=o.tokens.length-1;i>=0;i--){const n=o.tokens[i];if(n.type==="text"){const s=n.raw.split(` +`),r=s[s.length-1];if(r.includes("`"))return dre(o);if(r.includes("**"))return mre(o);if(r.match(/\*\w/))return cre(o);if(r.match(/(^|\s)__\w/))return pre(o);if(r.match(/(^|\s)_\w/))return hre(o);if(ire(r)||nre(r)&&o.tokens.slice(0,i).some(a=>a.type==="text"&&a.raw.match(/\[[^\]]*$/))){const a=o.tokens.slice(i+1);return((e=a[0])===null||e===void 0?void 0:e.type)==="link"&&((t=a[1])===null||t===void 0?void 0:t.type)==="text"&&a[1].raw.match(/^ *"[^"]*$/)||r.match(/^[^"]* +"[^"]*$/)?gre(o):ure(o)}else if(r.match(/(^|\s)\[\w*/))return fre(o)}}}function ire(o){return!!o.match(/(^|\s)\[.*\]\(\w*/)}function nre(o){return!!o.match(/^[^\[]*\]\([^\)]*$/)}function sre(o){var e;const t=o.items[o.items.length-1],i=t.tokens?t.tokens[t.tokens.length-1]:void 0;let n;if((i==null?void 0:i.type)==="text"&&!("inRawBlock"in t)&&(n=k6(i)),!n||n.type!=="paragraph")return;const s=Cb(o.items.slice(0,-1)),r=(e=t.raw.match(/^(\s*(-|\d+\.) +)/))===null||e===void 0?void 0:e[0];if(!r)return;const a=r+Cb(t.tokens.slice(0,-1))+n.raw,l=ua.lexer(s+a)[0];if(l.type==="list")return l}const ore=3;function rre(o){for(let e=0;e"u"&&r.match(/^\s*\|/)){const a=r.match(/(\|[^\|]+)(?=\||$)/g);a&&(i=a.length)}else if(typeof i=="number")if(r.match(/^\s*\|/)){if(s!==t.length-1)return;n=!0}else return}if(typeof i=="number"&&i>0){const s=n?t.slice(0,-1).join(` +`):e,r=!!s.match(/\|\s*$/),a=s+(r?"":"|")+` +|${" --- |".repeat(i)}`;return ua.lexer(a)}}function N5(o,e){return B9(o,e),Ce(()=>W9(o))}var vre=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},T5=function(o,e){return function(t,i){e(t,i,o)}},FN;let Fl=FN=class{constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new O,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e)return{element:document.createElement("span"),dispose:()=>{}};const n=new G,s=n.add(TL(e,{...this._getRenderOptions(e,n),...t},i));return s.element.classList.add("rendered-markdown"),{element:s.element,dispose:()=>n.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:async(i,n)=>{var s,r,a;let l;i?l=this._languageService.getLanguageIdByLanguageName(i):this._options.editor&&(l=(s=this._options.editor.getModel())===null||s===void 0?void 0:s.getLanguageId()),l||(l=Ao);const d=await ise(this._languageService,n,l),c=document.createElement("span");if(c.innerHTML=(a=(r=FN._ttpTokenizer)===null||r===void 0?void 0:r.createHTML(d))!==null&&a!==void 0?a:d,this._options.editor){const h=this._options.editor.getOption(50);kn(c,h)}else this._options.codeBlockFontFamily&&(c.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(c.style.fontSize=this._options.codeBlockFontSize),c},asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:i=>M2(this._openerService,i,e.isTrusted),disposables:t}}}};Fl._ttpTokenizer=lc("tokenizeToString",{createHTML(o){return o}});Fl=FN=vre([T5(1,si),T5(2,fo)],Fl);async function M2(o,e,t){try{return await o.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:bre(t)})}catch(i){return ze(i),!1}}function bre(o){return o===!0?!0:o&&Array.isArray(o.enabledCommands)?o.enabledCommands:!1}var Cre=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},u_=function(o,e){return function(t,i){e(t,i,o)}};const Ka=te;let BN=class extends Uo{get _targetWindow(){return De(this._target.targetElements[0])}get _targetDocumentElement(){return De(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(e){this._isLocked!==e&&(this._isLocked=e,this._hoverContainer.classList.toggle("locked",this._isLocked))}constructor(e,t,i,n,s,r){var a,l,d,c,h,u,g,f;super(),this._keybindingService=t,this._configurationService=i,this._openerService=n,this._instantiationService=s,this._accessibilityService=r,this._messageListeners=new G,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 O),this._onRequestLayout=this._register(new O),this._linkHandler=e.linkHandler||(w=>M2(this._openerService,w,La(e.content)?e.content.isTrusted:void 0)),this._target="targetElements"in e.target?e.target:new wre(e.target),this._hoverPointer=!((a=e.appearance)===null||a===void 0)&&a.showPointer?Ka("div.workbench-hover-pointer"):void 0,this._hover=this._register(new S2),this._hover.containerDomNode.classList.add("workbench-hover","fadeIn"),!((l=e.appearance)===null||l===void 0)&&l.compact&&this._hover.containerDomNode.classList.add("workbench-hover","compact"),!((d=e.appearance)===null||d===void 0)&&d.skipFadeInAnimation&&this._hover.containerDomNode.classList.add("skip-fade-in"),e.additionalClasses&&this._hover.containerDomNode.classList.add(...e.additionalClasses),!((c=e.position)===null||c===void 0)&&c.forcePosition&&(this._forcePosition=!0),e.trapFocus&&(this._enableFocusTraps=!0),this._hoverPosition=(u=(h=e.position)===null||h===void 0?void 0:h.hoverPosition)!==null&&u!==void 0?u:3,this.onmousedown(this._hover.containerDomNode,w=>w.stopPropagation()),this.onkeydown(this._hover.containerDomNode,w=>{w.equals(9)&&this.dispose()}),this._register(U(this._targetWindow,"blur",()=>this.dispose()));const p=Ka("div.hover-row.markdown-hover"),_=Ka("div.hover-contents");if(typeof e.content=="string")_.textContent=e.content,_.style.whiteSpace="pre-wrap";else if(_n(e.content))_.appendChild(e.content),_.classList.add("html-hover-contents");else{const w=e.content,S=this._instantiationService.createInstance(Fl,{codeBlockFontFamily:this._configurationService.getValue("editor").fontFamily||Us.fontFamily}),{element:L}=S.render(w,{actionHandler:{callback:D=>this._linkHandler(D),disposables:this._messageListeners},asyncRenderCallback:()=>{_.classList.add("code-hover-contents"),this.layout(),this._onRequestLayout.fire()}});_.appendChild(L)}if(p.appendChild(_),this._hover.contentsDomNode.appendChild(p),e.actions&&e.actions.length>0){const w=Ka("div.hover-row.status-bar"),S=Ka("div.actions");e.actions.forEach(L=>{const D=this._keybindingService.lookupKeybinding(L.commandId),I=D?D.getLabel():null;IL.render(S,{label:L.label,commandId:L.commandId,run:T=>{L.run(T),this.dispose()},iconClass:L.iconClass},I)}),w.appendChild(S),this._hover.containerDomNode.appendChild(w)}this._hoverContainer=Ka("div.workbench-hover-container"),this._hoverPointer&&this._hoverContainer.appendChild(this._hoverPointer),this._hoverContainer.appendChild(this._hover.containerDomNode);let v;if(e.actions&&e.actions.length>0?v=!1:((g=e.persistence)===null||g===void 0?void 0:g.hideOnHover)===void 0?v=typeof e.content=="string"||La(e.content)&&!e.content.value.includes("](")&&!e.content.value.includes(""):v=e.persistence.hideOnHover,v&&(!((f=e.appearance)===null||f===void 0)&&f.showHoverHint)){const w=Ka("div.hover-row.status-bar"),S=Ka("div.info");S.textContent=m("hoverhint","Hold {0} key to mouse over",it?"Option":"Alt"),w.appendChild(S),this._hover.containerDomNode.appendChild(w)}const b=[...this._target.targetElements];v||b.push(this._hoverContainer);const C=this._register(new M5(b));if(this._register(C.onMouseOut(()=>{this._isLocked||this.dispose()})),v){const w=[...this._target.targetElements,this._hoverContainer];this._lockMouseTracker=this._register(new M5(w)),this._register(this._lockMouseTracker.onMouseOut(()=>{this._isLocked||this.dispose()}))}else this._lockMouseTracker=C}addFocusTrap(){if(!this._enableFocusTraps||this._addedFocusTrap)return;this._addedFocusTrap=!0;const e=this._hover.containerDomNode,t=this.findLastFocusableChild(this._hover.containerDomNode);if(t){const i=vA(this._hoverContainer,Ka("div")),n=Q(this._hoverContainer,Ka("div"));i.tabIndex=0,n.tabIndex=0,this._register(U(n,"focus",s=>{e.focus(),s.preventDefault()})),this._register(U(i,"focus",s=>{t.focus(),s.preventDefault()}))}}findLastFocusableChild(e){if(e.hasChildNodes())for(let t=0;t=0)return s}const n=this.findLastFocusableChild(i);if(n)return n}}render(e){var t;e.appendChild(this._hoverContainer);const n=this._hoverContainer.contains(this._hoverContainer.ownerDocument.activeElement)&&h6(this._configurationService.getValue("accessibility.verbosity.hover")===!0&&this._accessibilityService.isScreenReaderOptimized(),(t=this._keybindingService.lookupKeybinding("editor.action.accessibleView"))===null||t===void 0?void 0:t.getAriaLabel());n&&Al(n),this.layout(),this.addFocusTrap()}layout(){this._hover.containerDomNode.classList.remove("right-aligned"),this._hover.contentsDomNode.style.maxHeight="";const e=c=>{const h=j9(c),u=c.getBoundingClientRect();return{top:u.top*h,bottom:u.bottom*h,right:u.right*h,left:u.left*h}},t=this._target.targetElements.map(c=>e(c)),{top:i,right:n,bottom:s,left:r}=t[0],a=n-r,l=s-i,d={top:i,right:n,bottom:s,left:r,width:a,height:l,center:{x:r+a/2,y:i+l/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+a/2,d.center.y=d.top+l/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(e){const t=this._hover.containerDomNode.clientWidth+2;this._target.x!==void 0?this._x=this._target.x:this._hoverPosition===1?this._x=e.right:this._hoverPosition===0?this._x=e.left-t:(this._hoverPointer?this._x=e.center.x-this._hover.containerDomNode.clientWidth/2:this._x=e.left,this._x+t>=this._targetDocumentElement.clientWidth&&(this._hover.containerDomNode.classList.add("right-aligned"),this._x=Math.max(this._targetDocumentElement.clientWidth-t-2,this._targetDocumentElement.clientLeft))),this._xthis._targetWindow.innerHeight&&(this._y=e.bottom)}adjustHorizontalHoverPosition(e){if(this._target.x!==void 0)return;const t=this._hoverPointer?3:0;if(this._forcePosition){const i=t+2;this._hoverPosition===1?this._hover.containerDomNode.style.maxWidth=`${this._targetDocumentElement.clientWidth-e.right-i}px`:this._hoverPosition===0&&(this._hover.containerDomNode.style.maxWidth=`${e.left-i}px`);return}this._hoverPosition===1?this._targetDocumentElement.clientWidth-e.right=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=0:this._hoverPosition=2):this._hoverPosition===0&&(e.left=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=1:this._hoverPosition=2),e.left-this._hover.containerDomNode.clientWidth-t<=this._targetDocumentElement.clientLeft&&(this._hoverPosition=1))}adjustVerticalHoverPosition(e){if(this._target.y!==void 0||this._forcePosition)return;const t=this._hoverPointer?3:0;this._hoverPosition===3?e.top-this._hover.containerDomNode.clientHeight-t<0&&(this._hoverPosition=2):this._hoverPosition===2&&e.bottom+this._hover.containerDomNode.clientHeight+t>this._targetWindow.innerHeight&&(this._hoverPosition=3)}adjustHoverMaxHeight(e){let t=this._targetWindow.innerHeight/2;if(this._forcePosition){const i=(this._hoverPointer?3:0)+2;this._hoverPosition===3?t=Math.min(t,e.top-i):this._hoverPosition===2&&(t=Math.min(t,this._targetWindow.innerHeight-e.bottom-i))}if(this._hover.containerDomNode.style.maxHeight=`${t}px`,this._hover.contentsDomNode.clientHeighte.height?this._hoverPointer.style.top=`${e.center.y-(this._y-t)-3}px`:this._hoverPointer.style.top=`${Math.round(t/2)-3}px`;break}case 3:case 2:{this._hoverPointer.classList.add(this._hoverPosition===3?"bottom":"top");const t=this._hover.containerDomNode.clientWidth;let i=Math.round(t/2)-3;const n=this._x+i;(ne.right)&&(i=e.center.x-this._x-3),this._hoverPointer.style.left=`${i}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}};BN=Cre([u_(1,St),u_(2,Je),u_(3,fo),u_(4,Le),u_(5,ho)],BN);class M5 extends Uo{get onMouseOut(){return this._onMouseOut.event}get isMouseIn(){return this._isMouseIn}constructor(e){super(),this._elements=e,this._isMouseIn=!0,this._onMouseOut=this._register(new O),this._elements.forEach(t=>this.onmouseover(t,()=>this._onTargetMouseOver(t))),this._elements.forEach(t=>this.onmouseleave(t,()=>this._onTargetMouseLeave(t)))}_onTargetMouseOver(e){this._isMouseIn=!0,this._clearEvaluateMouseStateTimeout(e)}_onTargetMouseLeave(e){this._isMouseIn=!1,this._evaluateMouseState(e)}_evaluateMouseState(e){this._clearEvaluateMouseStateTimeout(e),this._mouseTimeout=De(e).setTimeout(()=>this._fireIfMouseOutside(),0)}_clearEvaluateMouseStateTimeout(e){this._mouseTimeout&&(De(e).clearTimeout(this._mouseTimeout),this._mouseTimeout=void 0)}_fireIfMouseOutside(){this._isMouseIn||this._onMouseOut.fire()}}class wre{constructor(e){this._element=e,this.targetElements=[this._element]}dispose(){}}var Hn;(function(o){function e(s,r){if(s.start>=r.end||r.start>=s.end)return{start:0,end:0};const a=Math.max(s.start,r.start),l=Math.min(s.end,r.end);return l-a<=0?{start:0,end:0}:{start:a,end:l}}o.intersect=e;function t(s){return s.end-s.start<=0}o.isEmpty=t;function i(s,r){return!t(e(s,r))}o.intersects=i;function n(s,r){const a=[],l={start:s.start,end:Math.min(r.start,s.end)},d={start:Math.max(r.end,s.start),end:s.end};return t(l)||a.push(l),t(d)||a.push(d),a}o.relativeComplement=n})(Hn||(Hn={}));function Sre(o){const e=o;return!!e&&typeof e.x=="number"&&typeof e.y=="number"}var Qc;(function(o){o[o.AVOID=0]="AVOID",o[o.ALIGN=1]="ALIGN"})(Qc||(Qc={}));function Jf(o,e,t){const i=t.mode===Qc.ALIGN?t.offset:t.offset+t.size,n=t.mode===Qc.ALIGN?t.offset+t.size:t.offset;return t.position===0?e<=o-i?i:e<=n?n-e:Math.max(o-e,0):e<=n?n-e:e<=o-i?i:0}class ip extends W{constructor(e,t){super(),this.container=null,this.useFixedPosition=!1,this.useShadowDOM=!1,this.delegate=null,this.toDisposeOnClean=W.None,this.toDisposeOnSetContainer=W.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=te(".context-view"),gs(this.view),this.setContainer(e,t),this._register(Ce(()=>this.setContainer(null,1)))}setContainer(e,t){var i;this.useFixedPosition=t!==1;const n=this.useShadowDOM;if(this.useShadowDOM=t===3,!(e===this.container&&n===this.useShadowDOM)&&(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,(i=this.shadowRootHostElement)===null||i===void 0||i.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),e)){if(this.container=e,this.useShadowDOM){this.shadowRootHostElement=te(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const r=document.createElement("style");r.textContent=yre,this.shadowRoot.appendChild(r),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(te("slot"))}else this.container.appendChild(this.view);const s=new G;ip.BUBBLE_UP_EVENTS.forEach(r=>{s.add(Si(this.container,r,a=>{this.onDOMEvent(a,!1)}))}),ip.BUBBLE_DOWN_EVENTS.forEach(r=>{s.add(Si(this.container,r,a=>{this.onDOMEvent(a,!0)},!0))}),this.toDisposeOnSetContainer=s}}show(e){var t,i,n;this.isVisible()&&this.hide(),xn(this.view),this.view.className="context-view monaco-component",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex=`${2575+((t=e.layer)!==null&&t!==void 0?t:0)}`,this.view.style.position=this.useFixedPosition?"fixed":"absolute",eo(this.view),this.toDisposeOnClean=e.render(this.view)||W.None,this.delegate=e,this.doLayout(),(n=(i=this.delegate).focus)===null||n===void 0||n.call(i)}getViewElement(){return this.view}layout(){var e,t;if(this.isVisible()){if(this.delegate.canRelayout===!1&&!(Da&&cA.pointerEvents)){this.hide();return}(t=(e=this.delegate)===null||e===void 0?void 0:e.layout)===null||t===void 0||t.call(e),this.doLayout()}}doLayout(){if(!this.isVisible())return;const e=this.delegate.getAnchor();let t;if(_n(e)){const u=Oi(e),g=j9(e);t={top:u.top*g,left:u.left*g,width:u.width*g,height:u.height*g}}else Sre(e)?t={top:e.y,left:e.x,width:e.width||1,height:e.height||2}:t={top:e.posy,left:e.posx,width:2,height:2};const i=Xs(this.view),n=Ld(this.view),s=this.delegate.anchorPosition||0,r=this.delegate.anchorAlignment||0,a=this.delegate.anchorAxisAlignment||0;let l,d;const c=Q1();if(a===0){const u={offset:t.top-c.pageYOffset,size:t.height,position:s===0?0:1},g={offset:t.left,size:t.width,position:r===0?0:1,mode:Qc.ALIGN};l=Jf(c.innerHeight,n,u)+c.pageYOffset,Hn.intersects({start:l,end:l+n},{start:u.offset,end:u.offset+u.size})&&(g.mode=Qc.AVOID),d=Jf(c.innerWidth,i,g)}else{const u={offset:t.left,size:t.width,position:r===0?0:1},g={offset:t.top,size:t.height,position:s===0?0:1,mode:Qc.ALIGN};d=Jf(c.innerWidth,i,u),Hn.intersects({start:d,end:d+i},{start:u.offset,end:u.offset+u.size})&&(g.mode=Qc.AVOID),l=Jf(c.innerHeight,n,g)+c.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(s===0?"bottom":"top"),this.view.classList.add(r===0?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const h=Oi(this.container);this.view.style.top=`${l-(this.useFixedPosition?Oi(this.view).top:h.top)}px`,this.view.style.left=`${d-(this.useFixedPosition?Oi(this.view).left:h.left)}px`,this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,t!=null&&t.onHide&&t.onHide(e),this.toDisposeOnClean.dispose(),gs(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,De(e).document.activeElement):t&&!on(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}ip.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"];ip.BUBBLE_DOWN_EVENTS=["click"];const yre=` + :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 Lre=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},xre=function(o,e){return function(t,i){e(t,i,o)}};let DS=class extends W{constructor(e){super(),this.layoutService=e,this.contextView=this._register(new ip(this.layoutService.mainContainer,1)),this.layout(),this._register(e.onDidLayoutContainer(()=>this.layout()))}showContextView(e,t,i){let n;t?t===this.layoutService.getContainer(De(t))?n=1:i?n=3:n=2:n=1,this.contextView.setContainer(t??this.layoutService.activeContainer,n),this.contextView.show(e);const s={close:()=>{this.openContextView===s&&this.hideContextView()}};return this.openContextView=s,s}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e),this.openContextView=void 0}};DS=Lre([xre(0,qh)],DS);class Dre extends DS{getContextViewElement(){return this.contextView.getViewElement()}}class kre{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}async update(e,t,i){var n;if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let s;if(e===void 0||ys(e)||_n(e))s=e;else if(!Bv(e.markdown))s=(n=e.markdown)!==null&&n!==void 0?n:e.markdownNotSupportedFallback;else{this._hoverWidget||this.show(m("iconLabel.loading","Loading..."),t,i),this._cancellationTokenSource=new ci;const r=this._cancellationTokenSource.token;if(s=await e.markdown(r),s===void 0&&(s=e.markdownNotSupportedFallback),this.isDisposed||r.isCancellationRequested)return}this.show(s,t,i)}show(e,t,i){const n=this._hoverWidget;if(this.hasContent(e)){const s={content:e,target:this.target,appearance:{showPointer:this.hoverDelegate.placement==="element",skipFadeInAnimation:!this.fadeInAnimation||!!n},position:{hoverPosition:2},...i};this._hoverWidget=this.hoverDelegate.showHover(s,t)}n==null||n.dispose()}hasContent(e){return e?La(e)?!!e.value:!0:!1}get isDisposed(){var e;return(e=this._hoverWidget)===null||e===void 0?void 0:e.isDisposed}dispose(){var e,t;(e=this._hoverWidget)===null||e===void 0||e.dispose(),(t=this._cancellationTokenSource)===null||t===void 0||t.dispose(!0),this._cancellationTokenSource=void 0}}var Ire=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},g_=function(o,e){return function(t,i){e(t,i,o)}};let WN=class extends W{constructor(e,t,i,n,s){super(),this._instantiationService=e,this._keybindingService=i,this._layoutService=n,this._accessibilityService=s,this._existingHovers=new Map,t.onDidShowContextMenu(()=>this.hideHover()),this._contextViewHandler=this._register(new DS(this._layoutService))}showHover(e,t,i){var n,s,r,a;if(R5(this._currentHoverOptions)===R5(e)||this._currentHover&&(!((s=(n=this._currentHoverOptions)===null||n===void 0?void 0:n.persistence)===null||s===void 0)&&s.sticky))return;this._currentHoverOptions=e,this._lastHoverOptions=e;const l=e.trapFocus||this._accessibilityService.isScreenReaderOptimized(),d=Pn();i||(l&&d?d.classList.contains("monaco-hover")||(this._lastFocusedElementBeforeOpen=d):this._lastFocusedElementBeforeOpen=void 0);const c=new G,h=this._instantiationService.createInstance(BN,e);if(!((r=e.persistence)===null||r===void 0)&&r.sticky&&(h.isLocked=!0),h.onDispose(()=>{var u,g;((u=this._currentHover)===null||u===void 0?void 0:u.domNode)&&q9(this._currentHover.domNode)&&((g=this._lastFocusedElementBeforeOpen)===null||g===void 0||g.focus()),this._currentHoverOptions===e&&(this._currentHoverOptions=void 0),c.dispose()},void 0,c),!e.container){const u=_n(e.target)?e.target:e.target.targetElements[0];e.container=this._layoutService.getContainer(De(u))}if(this._contextViewHandler.showContextView(new Ere(h,t),e.container),h.onRequestLayout(()=>this._contextViewHandler.layout(),void 0,c),!((a=e.persistence)===null||a===void 0)&&a.sticky)c.add(U(De(e.container).document,ee.MOUSE_DOWN,u=>{on(u.target,h.domNode)||this.doHideHover()}));else{if("targetElements"in e.target)for(const g of e.target.targetElements)c.add(U(g,ee.CLICK,()=>this.hideHover()));else c.add(U(e.target,ee.CLICK,()=>this.hideHover()));const u=Pn();if(u){const g=De(u).document;c.add(U(u,ee.KEY_DOWN,f=>{var p;return this._keyDown(f,h,!!(!((p=e.persistence)===null||p===void 0)&&p.hideOnKeyDown))})),c.add(U(g,ee.KEY_DOWN,f=>{var p;return this._keyDown(f,h,!!(!((p=e.persistence)===null||p===void 0)&&p.hideOnKeyDown))})),c.add(U(u,ee.KEY_UP,f=>this._keyUp(f,h))),c.add(U(g,ee.KEY_UP,f=>this._keyUp(f,h)))}}if("IntersectionObserver"in Mt){const u=new IntersectionObserver(f=>this._intersectionChange(f,h),{threshold:0}),g="targetElements"in e.target?e.target.targetElements[0]:e.target;u.observe(g),c.add(Ce(()=>u.disconnect()))}return this._currentHover=h,h}hideHover(){var e;!((e=this._currentHover)===null||e===void 0)&&e.isLocked||!this._currentHoverOptions||this.doHideHover()}doHideHover(){this._currentHover=void 0,this._currentHoverOptions=void 0,this._contextViewHandler.hideContextView()}_intersectionChange(e,t){e[e.length-1].isIntersecting||t.dispose()}showAndFocusLastHover(){this._lastHoverOptions&&this.showHover(this._lastHoverOptions,!0,!0)}_keyDown(e,t,i){var n,s;if(e.key==="Alt"){t.isLocked=!0;return}const r=new Ht(e);this._keybindingService.resolveKeyboardEvent(r).getSingleModifierDispatchChords().some(l=>!!l)||this._keybindingService.softDispatch(r,r.target).kind!==0||i&&(!(!((n=this._currentHoverOptions)===null||n===void 0)&&n.trapFocus)||e.key!=="Tab")&&(this.hideHover(),(s=this._lastFocusedElementBeforeOpen)===null||s===void 0||s.focus())}_keyUp(e,t){var i;e.key==="Alt"&&(t.isLocked=!1,t.isMouseIn||(this.hideHover(),(i=this._lastFocusedElementBeforeOpen)===null||i===void 0||i.focus()))}setupUpdatableHover(e,t,i,n){t.setAttribute("custom-hover","true"),t.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:",t.title),t.title="");let s,r;const a=(C,w)=>{var S;const L=r!==void 0;C&&(r==null||r.dispose(),r=void 0),w&&(s==null||s.dispose(),s=void 0),L&&((S=e.onDidHideHover)===null||S===void 0||S.call(e),r=void 0)},l=(C,w,S,L)=>new jr(async()=>{(!r||r.isDisposed)&&(r=new kre(e,S||t,C>0),await r.update(typeof i=="function"?i():i,w,{...n,trapFocus:L}))},C);let d=!1;const c=U(t,ee.MOUSE_DOWN,()=>{d=!0,a(!0,!0)},!0),h=U(t,ee.MOUSE_UP,()=>{d=!1},!0),u=U(t,ee.MOUSE_LEAVE,C=>{d=!1,a(!1,C.fromElement===t)},!0),g=C=>{if(s)return;const w=new G,S={targetElements:[t],dispose:()=>{}};if(e.placement===void 0||e.placement==="mouse"){const L=D=>{S.x=D.x+10,_n(D.target)&&A5(D.target,t)!==t&&a(!0,!0)};w.add(U(t,ee.MOUSE_MOVE,L,!0))}s=w,!(_n(C.target)&&A5(C.target,t)!==t)&&w.add(l(e.delay,!1,S))},f=U(t,ee.MOUSE_OVER,g,!0),p=()=>{if(d||s)return;const C={targetElements:[t],dispose:()=>{}},w=new G,S=()=>a(!0,!0);w.add(U(t,ee.BLUR,S,!0)),w.add(l(e.delay,!1,C)),s=w};let _;const v=t.tagName.toLowerCase();v!=="input"&&v!=="textarea"&&(_=U(t,ee.FOCUS,p,!0));const b={show:C=>{a(!1,!0),l(0,C,void 0,C)},hide:()=>{a(!0,!0)},update:async(C,w)=>{i=C,await(r==null?void 0:r.update(i,void 0,w))},dispose:()=>{this._existingHovers.delete(t),f.dispose(),u.dispose(),c.dispose(),h.dispose(),_==null||_.dispose(),a(!0,!0)}};return this._existingHovers.set(t,b),b}triggerUpdatableHover(e){const t=this._existingHovers.get(e);t&&t.show(!0)}dispose(){this._existingHovers.forEach(e=>e.dispose()),super.dispose()}};WN=Ire([g_(0,Le),g_(1,go),g_(2,St),g_(3,qh),g_(4,ho)],WN);function R5(o){var e;if(o!==void 0)return(e=o==null?void 0:o.id)!==null&&e!==void 0?e:o}class Ere{get anchorPosition(){return this._hover.anchor}constructor(e,t=!1){this._hover=e,this._focus=t,this.layer=1}render(e){return this._hover.render(e),this._focus&&this._hover.focus(),this._hover}getAnchor(){return{x:this._hover.x,y:this._hover.y}}layout(){this._hover.layout()}}function A5(o,e){for(e=e??De(o).document.body;!o.hasAttribute("custom-hover")&&o!==e;)o=o.parentElement;return o}ht(Gl,WN,1);gr((o,e)=>{const t=o.getColor($W);t&&(e.addRule(`.monaco-workbench .workbench-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-workbench .workbench-hover hr { border-top: 1px solid ${t.transparent(.5)}; }`))});const $0=ot("IWorkspaceEditService");class R2{constructor(e){this.metadata=e}static convert(e){return e.edits.map(t=>{if(ch.is(t))return ch.lift(t);if(xm.is(t))return xm.lift(t);throw new Error("Unsupported edit")})}}class ch extends R2{static is(e){return e instanceof ch?!0:_s(e)&&ke.isUri(e.resource)&&_s(e.textEdit)}static lift(e){return e instanceof ch?e:new ch(e.resource,e.textEdit,e.versionId,e.metadata)}constructor(e,t,i=void 0,n){super(n),this.resource=e,this.textEdit=t,this.versionId=i}}class xm extends R2{static is(e){return e instanceof xm?!0:_s(e)&&(!!e.newResource||!!e.oldResource)}static lift(e){return e instanceof xm?e:new xm(e.oldResource,e.newResource,e.options,e.metadata)}constructor(e,t,i={},n){super(n),this.oldResource=e,this.newResource=t,this.options=i}}const Wn={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},ML=Object.freeze({id:"editor",order:5,type:"object",title:m("editorConfigurationTitle","Editor"),scope:5}),kS={...ML,properties:{"editor.tabSize":{type:"number",default:zn.tabSize,minimum:1,markdownDescription:m("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:m("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:zn.insertSpaces,markdownDescription:m("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:zn.detectIndentation,markdownDescription:m("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:zn.trimAutoWhitespace,description:m("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:zn.largeFileOptimizations,description:m("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{enum:["off","currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[m("wordBasedSuggestions.off","Turn off Word Based Suggestions."),m("wordBasedSuggestions.currentDocument","Only suggest words from the active document."),m("wordBasedSuggestions.matchingDocuments","Suggest words from all open documents of the same language."),m("wordBasedSuggestions.allDocuments","Suggest words from all open documents.")],description:m("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:[m("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),m("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),m("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:m("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:m("stablePeek","Keep peek editors open even when double-clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:m("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.experimental.asyncTokenization":{type:"boolean",default:!1,description:m("editor.experimental.asyncTokenization","Controls whether the tokenization should happen asynchronously on a web worker."),tags:["experimental"]},"editor.experimental.asyncTokenizationLogging":{type:"boolean",default:!1,description:m("editor.experimental.asyncTokenizationLogging","Controls whether async tokenization should be logged. For debugging only.")},"editor.experimental.asyncTokenizationVerification":{type:"boolean",default:!1,description:m("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:m("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:m("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:m("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:m("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:m("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:m("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:Wn.maxComputationTime,description:m("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:Wn.maxFileSize,description:m("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:Wn.renderSideBySide,description:m("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderSideBySideInlineBreakpoint":{type:"number",default:Wn.renderSideBySideInlineBreakpoint,description:m("renderSideBySideInlineBreakpoint","If the diff editor width is smaller than this value, the inline view is used.")},"diffEditor.useInlineViewWhenSpaceIsLimited":{type:"boolean",default:Wn.useInlineViewWhenSpaceIsLimited,description:m("useInlineViewWhenSpaceIsLimited","If enabled and the editor width is too small, the inline view is used.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:Wn.renderMarginRevertIcon,description:m("renderMarginRevertIcon","When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.renderGutterMenu":{type:"boolean",default:Wn.renderGutterMenu,description:m("renderGutterMenu","When enabled, the diff editor shows a special gutter for revert and stage actions.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:Wn.ignoreTrimWhitespace,description:m("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:Wn.renderIndicators,description:m("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:Wn.diffCodeLens,description:m("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:Wn.diffWordWrap,markdownEnumDescriptions:[m("wordWrap.off","Lines will never wrap."),m("wordWrap.on","Lines will wrap at the viewport width."),m("wordWrap.inherit","Lines will wrap according to the {0} setting.","`#editor.wordWrap#`")]},"diffEditor.diffAlgorithm":{type:"string",enum:["legacy","advanced"],default:Wn.diffAlgorithm,markdownEnumDescriptions:[m("diffAlgorithm.legacy","Uses the legacy diffing algorithm."),m("diffAlgorithm.advanced","Uses the advanced diffing algorithm.")],tags:["experimental"]},"diffEditor.hideUnchangedRegions.enabled":{type:"boolean",default:Wn.hideUnchangedRegions.enabled,markdownDescription:m("hideUnchangedRegions.enabled","Controls whether the diff editor shows unchanged regions.")},"diffEditor.hideUnchangedRegions.revealLineCount":{type:"integer",default:Wn.hideUnchangedRegions.revealLineCount,markdownDescription:m("hideUnchangedRegions.revealLineCount","Controls how many lines are used for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.minimumLineCount":{type:"integer",default:Wn.hideUnchangedRegions.minimumLineCount,markdownDescription:m("hideUnchangedRegions.minimumLineCount","Controls how many lines are used as a minimum for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.contextLineCount":{type:"integer",default:Wn.hideUnchangedRegions.contextLineCount,markdownDescription:m("hideUnchangedRegions.contextLineCount","Controls how many lines are used as context when comparing unchanged regions."),minimum:1},"diffEditor.experimental.showMoves":{type:"boolean",default:Wn.experimental.showMoves,markdownDescription:m("showMoves","Controls whether the diff editor should show detected code moves.")},"diffEditor.experimental.showEmptyDecorations":{type:"boolean",default:Wn.experimental.showEmptyDecorations,description:m("showEmptyDecorations","Controls whether the diff editor shows empty decorations to see where characters got inserted or deleted.")}}};function Nre(o){return typeof o.type<"u"||typeof o.anyOf<"u"}for(const o of Ff){const e=o.schema;if(typeof e<"u")if(Nre(e))kS.properties[`editor.${o.name}`]=e;else for(const t in e)Object.hasOwnProperty.call(e,t)&&(kS.properties[t]=e[t])}let s1=null;function I6(){return s1===null&&(s1=Object.create(null),Object.keys(kS.properties).forEach(o=>{s1[o]=!0})),s1}function Tre(o){return I6()[`editor.${o}`]||!1}function Mre(o){return I6()[`diffEditor.${o}`]||!1}const Rre=hi.as(Ba.Configuration);Rre.registerConfiguration(kS);class ri{static insert(e,t){return{range:new x(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}function o1(o){return Object.isFrozen(o)?o:A$(o)}class Ln{static createEmptyModel(e){return new Ln({},[],[],void 0,e)}constructor(e,t,i,n,s){this._contents=e,this._keys=t,this._overrides=i,this.raw=n,this.logService=s,this.overrideConfigurations=new Map}get rawConfiguration(){var e;if(!this._rawConfiguration)if(!((e=this.raw)===null||e===void 0)&&e.length){const t=this.raw.map(i=>{if(i instanceof Ln)return i;const n=new Are("",this.logService);return n.parseRaw(i),n.configurationModel});this._rawConfiguration=t.reduce((i,n)=>n===i?n:i.merge(n),t[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(e){return e?rF(this.contents,e):this.contents}inspect(e,t){const i=this;return{get value(){return o1(i.rawConfiguration.getValue(e))},get override(){return t?o1(i.rawConfiguration.getOverrideValue(e,t)):void 0},get merged(){return o1(t?i.rawConfiguration.override(t).getValue(e):i.rawConfiguration.getValue(e))},get overrides(){const n=[];for(const{contents:s,identifiers:r,keys:a}of i.rawConfiguration.overrides){const l=new Ln(s,a,[],void 0,i.logService).getValue(e);l!==void 0&&n.push({identifiers:r,value:l})}return n.length?o1(n):void 0}}}getOverrideValue(e,t){const i=this.getContentsForOverrideIdentifer(t);return i?e?rF(i,e):i:void 0}override(e){let t=this.overrideConfigurations.get(e);return t||(t=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,t)),t}merge(...e){var t,i;const n=hd(this.contents),s=hd(this.overrides),r=[...this.keys],a=!((t=this.raw)===null||t===void 0)&&t.length?[...this.raw]:[this];for(const l of e)if(a.push(...!((i=l.raw)===null||i===void 0)&&i.length?l.raw:[l]),!l.isEmpty()){this.mergeContents(n,l.contents);for(const d of l.overrides){const[c]=s.filter(h=>di(h.identifiers,d.identifiers));c?(this.mergeContents(c.contents,d.contents),c.keys.push(...d.keys),c.keys=Gd(c.keys)):s.push(hd(d))}for(const d of l.keys)r.indexOf(d)===-1&&r.push(d)}return new Ln(n,r,s,a.every(l=>l instanceof Ln)?void 0:a,this.logService)}createOverrideConfigurationModel(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||typeof t!="object"||!Object.keys(t).length)return this;const i={};for(const n of Gd([...Object.keys(this.contents),...Object.keys(t)])){let s=this.contents[n];const r=t[n];r&&(typeof s=="object"&&typeof r=="object"?(s=hd(s),this.mergeContents(s,r)):s=r),i[n]=s}return new Ln(i,this.keys,this.overrides,void 0,this.logService)}mergeContents(e,t){for(const i of Object.keys(t)){if(i in e&&_s(e[i])&&_s(t[i])){this.mergeContents(e[i],t[i]);continue}e[i]=hd(t[i])}}getContentsForOverrideIdentifer(e){let t=null,i=null;const n=s=>{s&&(i?this.mergeContents(i,s):i=hd(s))};for(const s of this.overrides)s.identifiers.length===1&&s.identifiers[0]===e?t=s.contents:s.identifiers.includes(e)&&n(s.contents);return n(t),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}addValue(e,t){this.updateValue(e,t,!0)}setValue(e,t){this.updateValue(e,t,!1)}removeValue(e){const t=this.keys.indexOf(e);t!==-1&&(this.keys.splice(t,1),pZ(this.contents,e),yh.test(e)&&this.overrides.splice(this.overrides.findIndex(i=>di(i.identifiers,Xw(e))),1))}updateValue(e,t,i){pW(this.contents,e,t,n=>this.logService.error(n)),i=i||this.keys.indexOf(e)===-1,i&&this.keys.push(e),yh.test(e)&&this.overrides.push({identifiers:Xw(e),keys:Object.keys(this.contents[e]),contents:AE(this.contents[e],n=>this.logService.error(n))})}}class Are{constructor(e,t){this._name=e,this.logService=t,this._raw=null,this._configurationModel=null,this._restrictedConfigurations=[]}get configurationModel(){return this._configurationModel||Ln.createEmptyModel(this.logService)}parseRaw(e,t){this._raw=e;const{contents:i,keys:n,overrides:s,restricted:r,hasExcludedProperties:a}=this.doParseRaw(e,t);this._configurationModel=new Ln(i,n,s,a?[e]:void 0,this.logService),this._restrictedConfigurations=r||[]}doParseRaw(e,t){const i=hi.as(Ba.Configuration).getConfigurationProperties(),n=this.filter(e,i,!0,t);e=n.raw;const s=AE(e,l=>this.logService.error(`Conflict in settings file ${this._name}: ${l}`)),r=Object.keys(e),a=this.toOverrides(e,l=>this.logService.error(`Conflict in settings file ${this._name}: ${l}`));return{contents:s,keys:r,overrides:a,restricted:n.restricted,hasExcludedProperties:n.hasExcludedProperties}}filter(e,t,i,n){var s,r,a;let l=!1;if(!(n!=null&&n.scopes)&&!(n!=null&&n.skipRestricted)&&!(!((s=n==null?void 0:n.exclude)===null||s===void 0)&&s.length))return{raw:e,restricted:[],hasExcludedProperties:l};const d={},c=[];for(const h in e)if(yh.test(h)&&i){const u=this.filter(e[h],t,!1,n);d[h]=u.raw,l=l||u.hasExcludedProperties,c.push(...u.restricted)}else{const u=t[h],g=u?typeof u.scope<"u"?u.scope:3:void 0;u!=null&&u.restricted&&c.push(h),!(!((r=n.exclude)===null||r===void 0)&&r.includes(h))&&(!((a=n.include)===null||a===void 0)&&a.includes(h)||(g===void 0||n.scopes===void 0||n.scopes.includes(g))&&!(n.skipRestricted&&(u!=null&&u.restricted)))?d[h]=e[h]:l=!0}return{raw:d,restricted:c,hasExcludedProperties:l}}toOverrides(e,t){const i=[];for(const n of Object.keys(e))if(yh.test(n)){const s={};for(const r in e[n])s[r]=e[n][r];i.push({identifiers:Xw(n),keys:Object.keys(s),contents:AE(s,t)})}return i}}class Pre{constructor(e,t,i,n,s,r,a,l,d,c,h,u,g){this.key=e,this.overrides=t,this._value=i,this.overrideIdentifiers=n,this.defaultConfiguration=s,this.policyConfiguration=r,this.applicationConfiguration=a,this.userConfiguration=l,this.localUserConfiguration=d,this.remoteUserConfiguration=c,this.workspaceConfiguration=h,this.folderConfigurationModel=u,this.memoryConfigurationModel=g}toInspectValue(e){return(e==null?void 0:e.value)!==void 0||(e==null?void 0:e.override)!==void 0||(e==null?void 0:e.overrides)!==void 0?e: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)}}class RL{constructor(e,t,i,n,s,r,a,l,d,c){this._defaultConfiguration=e,this._policyConfiguration=t,this._applicationConfiguration=i,this._localUserConfiguration=n,this._remoteUserConfiguration=s,this._workspaceConfiguration=r,this._folderConfigurations=a,this._memoryConfiguration=l,this._memoryConfigurationByResource=d,this.logService=c,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new Ni,this._userConfiguration=null}getValue(e,t,i){return this.getConsolidatedConfigurationModel(e,t,i).getValue(e)}updateValue(e,t,i={}){let n;i.resource?(n=this._memoryConfigurationByResource.get(i.resource),n||(n=Ln.createEmptyModel(this.logService),this._memoryConfigurationByResource.set(i.resource,n))):n=this._memoryConfiguration,t===void 0?n.removeValue(e):n.setValue(e,t),i.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(e,t,i){const n=this.getConsolidatedConfigurationModel(e,t,i),s=this.getFolderConfigurationModelForResource(t.resource,i),r=t.resource?this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration:this._memoryConfiguration,a=new Set;for(const l of n.overrides)for(const d of l.identifiers)n.getOverrideValue(e,d)!==void 0&&a.add(d);return new Pre(e,t,n.getValue(e),a.size?[...a]:void 0,this._defaultConfiguration,this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,i?this._workspaceConfiguration:void 0,s||void 0,r)}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(e,t,i){let n=this.getConsolidatedConfigurationModelForResource(t,i);return t.overrideIdentifier&&(n=n.override(t.overrideIdentifier)),!this._policyConfiguration.isEmpty()&&this._policyConfiguration.getValue(e)!==void 0&&(n=n.merge(this._policyConfiguration)),n}getConsolidatedConfigurationModelForResource({resource:e},t){let i=this.getWorkspaceConsolidatedConfiguration();if(t&&e){const n=t.getFolder(e);n&&(i=this.getFolderConsolidatedConfiguration(n.uri)||i);const s=this._memoryConfigurationByResource.get(e);s&&(i=i.merge(s))}return i}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration)),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){const i=this.getWorkspaceConsolidatedConfiguration(),n=this._folderConfigurations.get(e);n?(t=i.merge(n),this._foldersConsolidatedConfigurations.set(e,t)):t=i}return t}getFolderConfigurationModelForResource(e,t){if(t&&e){const i=t.getFolder(e);if(i)return this._folderConfigurations.get(i.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((e,t)=>{const{contents:i,overrides:n,keys:s}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:n,keys:s}]),e},[])}}static parse(e,t){const i=this.parseConfigurationModel(e.defaults,t),n=this.parseConfigurationModel(e.policy,t),s=this.parseConfigurationModel(e.application,t),r=this.parseConfigurationModel(e.user,t),a=this.parseConfigurationModel(e.workspace,t),l=e.folders.reduce((d,c)=>(d.set(ke.revive(c[0]),this.parseConfigurationModel(c[1],t)),d),new Ni);return new RL(i,n,s,r,Ln.createEmptyModel(t),a,l,Ln.createEmptyModel(t),new Ni,t)}static parseConfigurationModel(e,t){return new Ln(e.contents,e.keys,e.overrides,void 0,t)}}class Ore{constructor(e,t,i,n,s){this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=n,this.logService=s,this._marker=` +`,this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=46,this.affectedKeys=new Set,this._previousConfiguration=void 0;for(const r of e.keys)this.affectedKeys.add(r);for(const[,r]of e.overrides)for(const a of r)this.affectedKeys.add(a);this._affectsConfigStr=this._marker;for(const r of this.affectedKeys)this._affectsConfigStr+=r+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=RL.parse(this.previous.data,this.logService)),this._previousConfiguration}affectsConfiguration(e,t){var i;const n=this._marker+e,s=this._affectsConfigStr.indexOf(n);if(s<0)return!1;const r=s+n.length;if(r>=this._affectsConfigStr.length)return!1;const a=this._affectsConfigStr.charCodeAt(r);if(a!==this._markerCode1&&a!==this._markerCode2)return!1;if(t){const l=this.previousConfiguration?this.previousConfiguration.getValue(e,t,(i=this.previous)===null||i===void 0?void 0:i.workspace):void 0,d=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!Ro(l,d)}return!0}}const IS={kind:0},Fre={kind:1};function Bre(o,e,t){return{kind:2,commandId:o,commandArgs:e,isBubble:t}}class yv{constructor(e,t,i){var n;this._log=i,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(const s of e){const r=s.command;r&&r.charAt(0)!=="-"&&this._defaultBoundCommands.set(r,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=yv.handleRemovals([].concat(e).concat(t));for(let s=0,r=this._keybindings.length;s"u"){this._map.set(e,[t]),this._addToLookupMap(t);return}for(let n=i.length-1;n>=0;n--){const s=i[n];if(s.command===t.command)continue;let r=!0;for(let a=1;a"u"?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}_removeFromLookupMap(e){if(!e.command)return;const t=this._lookupMap.get(e.command);if(!(typeof t>"u")){for(let i=0,n=t.length;i"u"||i.length===0)return null;if(i.length===1)return i[0];for(let n=i.length-1;n>=0;n--){const s=i[n];if(t.contextMatchesRules(s.when))return s}return i[i.length-1]}resolve(e,t,i){const n=[...t,i];this._log(`| Resolving ${n}`);const s=this._map.get(n[0]);if(s===void 0)return this._log("\\ No keybinding entries."),IS;let r=null;if(n.length<2)r=s;else{r=[];for(let l=0,d=s.length;lc.chords.length)continue;let h=!0;for(let u=1;u=0;i--){const n=t[i];if(yv._contextMatchesRules(e,n.when))return n}return null}static _contextMatchesRules(e,t){return t?t.evaluate(e):!0}}function P5(o){return o?`${o.serialize()}`:"no when condition"}function O5(o){return o.extensionId?o.isBuiltinExtension?`built-in extension ${o.extensionId}`:`user extension ${o.extensionId}`:o.isDefault?"built-in":"user"}const Wre=/^(cursor|delete|undo|redo|tab|editor\.action\.clipboard)/;class Hre extends W{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:ae.None}get inChordMode(){return this._currentChords.length>0}constructor(e,t,i,n,s){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=n,this._logService=s,this._onDidUpdateKeybindings=this._register(new O),this._currentChords=[],this._currentChordChecker=new uA,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=em.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new jr,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){const i=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(i)return i.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){this._log("/ Soft dispatching keyboard event");const i=this.resolveKeyboardEvent(e);if(i.hasMultipleChords())return console.warn("keyboard event should not be mapped to multiple chords"),IS;const[n]=i.getDispatchChords();if(n===null)return this._log("\\ Keyboard event cannot be dispatched"),IS;const s=this._contextKeyService.getContext(t),r=this._currentChords.map(({keypress:a})=>a);return this._getResolver().resolve(s,r,n)}_scheduleLeaveChordMode(){const e=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-e>5e3&&this._leaveChordMode()},500)}_expectAnotherChord(e,t){switch(this._currentChords.push({keypress:e,label:t}),this._currentChords.length){case 0:throw QR("impossible");case 1:this._currentChordStatusMessage=this._notificationService.status(m("first.chord","({0}) was pressed. Waiting for second key of chord...",t));break;default:{const i=this._currentChords.map(({label:n})=>n).join(", ");this._currentChordStatusMessage=this._notificationService.status(m("next.chord","({0}) was pressed. Waiting for next key of chord...",i))}}this._scheduleLeaveChordMode(),lv.enabled&&lv.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],lv.enable()}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){const i=this.resolveKeyboardEvent(e),[n]=i.getSingleModifierDispatchChords();if(n)return this._ignoreSingleModifiers.has(n)?(this._log(`+ Ignoring single modifier ${n} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=em.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=em.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${n}.`),this._currentSingleModifier=n,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null},300),!1):n===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${n} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[s]=i.getChords();return this._ignoreSingleModifiers=new em(s),this._currentSingleModifier!==null&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,i=!1){var n;let s=!1;if(e.hasMultipleChords())return console.warn("Unexpected keyboard event mapped to multiple chords"),!1;let r=null,a=null;if(i){const[h]=e.getSingleModifierDispatchChords();r=h,a=h?[h]:[]}else[r]=e.getDispatchChords(),a=this._currentChords.map(({keypress:h})=>h);if(r===null)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),s;const l=this._contextKeyService.getContext(t),d=e.getLabel(),c=this._getResolver().resolve(l,a,r);switch(c.kind){case 0:{if(this._logService.trace("KeybindingService#dispatch",d,"[ No matching keybinding ]"),this.inChordMode){const h=this._currentChords.map(({label:u})=>u).join(", ");this._log(`+ Leaving multi-chord mode: Nothing bound to "${h}, ${d}".`),this._notificationService.status(m("missing.chord","The key combination ({0}, {1}) is not a command.",h,d),{hideAfter:10*1e3}),this._leaveChordMode(),s=!0}return s}case 1:return this._logService.trace("KeybindingService#dispatch",d,"[ Several keybindings match - more chords needed ]"),s=!0,this._expectAnotherChord(r,d),this._log(this._currentChords.length===1?"+ Entering multi-chord mode...":"+ Continuing multi-chord mode..."),s;case 2:{if(this._logService.trace("KeybindingService#dispatch",d,`[ Will dispatch command ${c.commandId} ]`),c.commandId===null||c.commandId===""){if(this.inChordMode){const h=this._currentChords.map(({label:u})=>u).join(", ");this._log(`+ Leaving chord mode: Nothing bound to "${h}, ${d}".`),this._notificationService.status(m("missing.chord","The key combination ({0}, {1}) is not a command.",h,d),{hideAfter:10*1e3}),this._leaveChordMode(),s=!0}}else{this.inChordMode&&this._leaveChordMode(),c.isBubble||(s=!0),this._log(`+ Invoking command ${c.commandId}.`),this._currentlyDispatchingCommandId=c.commandId;try{typeof c.commandArgs>"u"?this._commandService.executeCommand(c.commandId).then(void 0,h=>this._notificationService.warn(h)):this._commandService.executeCommand(c.commandId,c.commandArgs).then(void 0,h=>this._notificationService.warn(h))}finally{this._currentlyDispatchingCommandId=null}Wre.test(c.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:c.commandId,from:"keybinding",detail:(n=e.getUserSettingsLabel())!==null&&n!==void 0?n:void 0})}return s}}}mightProducePrintableCharacter(e){return e.ctrlKey||e.metaKey?!1:e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30}}class em{constructor(e){this._ctrlKey=e?e.ctrlKey:!1,this._shiftKey=e?e.shiftKey:!1,this._altKey=e?e.altKey:!1,this._metaKey=e?e.metaKey:!1}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}em.EMPTY=new em(null);class F5{constructor(e,t,i,n,s,r,a){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.chords=e?HN(e.getDispatchChords()):[],e&&this.chords.length===0&&(this.chords=HN(e.getSingleModifierDispatchChords())),this.bubble=t?t.charCodeAt(0)===94:!1,this.command=this.bubble?t.substr(1):t,this.commandArgs=i,this.when=n,this.isDefault=s,this.extensionId=r,this.isBuiltinExtension=a}}function HN(o){const e=[];for(let t=0,i=o.length;tthis._getLabel(e))}getAriaLabel(){return Vre.toLabel(this._os,this._chords,e=>this._getAriaLabel(e))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:zre.toLabel(this._os,this._chords,e=>this._getElectronAccelerator(e))}getUserSettingsLabel(){return Ure.toLabel(this._os,this._chords,e=>this._getUserSettingsLabel(e))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map(e=>this._getChord(e))}_getChord(e){return new QK(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchChords(){return this._chords.map(e=>this._getChordDispatch(e))}getSingleModifierDispatchChords(){return this._chords.map(e=>this._getSingleModifierChordDispatch(e))}}class wb extends jre{constructor(e,t){super(t,e)}_keyCodeToUILabel(e){if(this._os===2)switch(e){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓"}return pd.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":pd.toString(e.keyCode)}_getElectronAccelerator(e){return pd.toElectronAccelerator(e.keyCode)}_getUserSettingsLabel(e){if(e.isDuplicateModifierCase())return"";const t=pd.toUserSettingsUS(e.keyCode);return t&&t.toLowerCase()}_getChordDispatch(e){return wb.getDispatchStr(e)}static getDispatchStr(e){if(e.isModifierKey())return null;let t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=pd.toString(e.keyCode),t}_getSingleModifierChordDispatch(e){return e.keyCode===5&&!e.shiftKey&&!e.altKey&&!e.metaKey?"ctrl":e.keyCode===4&&!e.ctrlKey&&!e.altKey&&!e.metaKey?"shift":e.keyCode===6&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey?"alt":e.keyCode===57&&!e.ctrlKey&&!e.shiftKey&&!e.altKey?"meta":null}static _scanCodeToKeyCode(e){const t=tA[e];if(t!==-1)return t;switch(e){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(e){if(!e)return null;if(e instanceof Qd)return e;const t=this._scanCodeToKeyCode(e.scanCode);return t===0?null:new Qd(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveKeybinding(e,t){const i=HN(e.chords.map(n=>this._toKeyCodeChord(n)));return i.length>0?[new wb(i,t)]:[]}}const np=ot("labelService"),E6=ot("progressService");class $d{constructor(e){this.callback=e}report(e){this._value=e,this.callback(this._value)}}$d.None=Object.freeze({report(){}});const Zh=ot("editorProgressService");class Kre{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos=0;t--,this._valueLen--){const i=this._value.charCodeAt(t);if(!(i===47||this._splitOnBackslash&&i===92))break}return this.next()}hasNext(){return this._to!1,t=()=>!1){return new Dm(new Zre(e,t))}static forStrings(){return new Dm(new Kre)}static forConfigKeys(){return new Dm(new qre)}constructor(e){this._iter=e}clear(){this._root=void 0}set(e,t){const i=this._iter.reset(e);let n;this._root||(this._root=new r1,this._root.segment=i.value());const s=[];for(n=this._root;;){const a=i.cmp(n.segment);if(a>0)n.left||(n.left=new r1,n.left.segment=i.value()),s.push([-1,n]),n=n.left;else if(a<0)n.right||(n.right=new r1,n.right.segment=i.value()),s.push([1,n]),n=n.right;else if(i.hasNext())i.next(),n.mid||(n.mid=new r1,n.mid.segment=i.value()),s.push([0,n]),n=n.mid;else break}const r=n.value;n.value=t,n.key=e;for(let a=s.length-1;a>=0;a--){const l=s[a][1];l.updateHeight();const d=l.balanceFactor();if(d<-1||d>1){const c=s[a][0],h=s[a+1][0];if(c===1&&h===1)s[a][1]=l.rotateLeft();else if(c===-1&&h===-1)s[a][1]=l.rotateRight();else if(c===1&&h===-1)l.right=s[a+1][1]=s[a+1][1].rotateRight(),s[a][1]=l.rotateLeft();else if(c===-1&&h===1)l.left=s[a+1][1]=s[a+1][1].rotateLeft(),s[a][1]=l.rotateRight();else throw new Error;if(a>0)switch(s[a-1][0]){case-1:s[a-1][1].left=s[a][1];break;case 1:s[a-1][1].right=s[a][1];break;case 0:s[a-1][1].mid=s[a][1];break}else this._root=s[0][1]}}return r}get(e){var t;return(t=this._getNode(e))===null||t===void 0?void 0:t.value}_getNode(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const n=t.cmp(i.segment);if(n>0)i=i.left;else if(n<0)i=i.right;else if(t.hasNext())t.next(),i=i.mid;else break}return i}has(e){const t=this._getNode(e);return!((t==null?void 0:t.value)===void 0&&(t==null?void 0:t.mid)===void 0)}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){var i;const n=this._iter.reset(e),s=[];let r=this._root;for(;r;){const a=n.cmp(r.segment);if(a>0)s.push([-1,r]),r=r.left;else if(a<0)s.push([1,r]),r=r.right;else if(n.hasNext())n.next(),s.push([0,r]),r=r.mid;else break}if(r){if(t?(r.left=void 0,r.mid=void 0,r.right=void 0,r.height=1):(r.key=void 0,r.value=void 0),!r.mid&&!r.value)if(r.left&&r.right){const a=this._min(r.right);if(a.key){const{key:l,value:d,segment:c}=a;this._delete(a.key,!1),r.key=l,r.value=d,r.segment=c}}else{const a=(i=r.left)!==null&&i!==void 0?i:r.right;if(s.length>0){const[l,d]=s[s.length-1];switch(l){case-1:d.left=a;break;case 0:d.mid=a;break;case 1:d.right=a;break}}else this._root=a}for(let a=s.length-1;a>=0;a--){const l=s[a][1];l.updateHeight();const d=l.balanceFactor();if(d>1?(l.right.balanceFactor()>=0||(l.right=l.right.rotateRight()),s[a][1]=l.rotateLeft()):d<-1&&(l.left.balanceFactor()<=0||(l.left=l.left.rotateLeft()),s[a][1]=l.rotateRight()),a>0)switch(s[a-1][0]){case-1:s[a-1][1].left=s[a][1];break;case 1:s[a-1][1].right=s[a][1];break;case 0:s[a-1][1].mid=s[a][1];break}else this._root=s[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let i=this._root,n;for(;i;){const s=t.cmp(i.segment);if(s>0)i=i.left;else if(s<0)i=i.right;else if(t.hasNext())t.next(),n=i.value||n,i=i.mid;else break}return i&&i.value||n}findSuperstr(e){return this._findSuperstrOrElement(e,!1)}_findSuperstrOrElement(e,t){const i=this._iter.reset(e);let n=this._root;for(;n;){const s=i.cmp(n.segment);if(s>0)n=n.left;else if(s<0)n=n.right;else if(i.hasNext())i.next(),n=n.mid;else return n.mid?this._entries(n.mid):t?n.value:void 0}}forEach(e){for(const[t,i]of this)e(i,t)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){const t=[];return this._dfsEntries(e,t),t[Symbol.iterator]()}_dfsEntries(e,t){e&&(e.left&&this._dfsEntries(e.left,t),e.value&&t.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,t),e.right&&this._dfsEntries(e.right,t))}}const wg=ot("contextService");function VN(o){const e=o;return typeof(e==null?void 0:e.id)=="string"&&ke.isUri(e.uri)}function Yre(o){const e=o;return typeof(e==null?void 0:e.id)=="string"&&!VN(o)&&!eae(o)}const Qre={id:"ext-dev"},Xre={id:"empty-window"};function Jre(o,e){if(typeof o=="string"||typeof o>"u")return typeof o=="string"?{id:oh(o)}:e?Qre:Xre;const t=o;return t.configuration?{id:t.id,configPath:t.configuration}:t.folders.length===1?{id:t.id,uri:t.folders[0].uri}:{id:t.id}}function eae(o){const e=o;return typeof(e==null?void 0:e.id)=="string"&&ke.isUri(e.configPath)}class tae{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}const zN="code-workspace";m("codeWorkspace","Code Workspace");const N6="4064f6ec-cb38-4ad0-af64-ee6467e63c82";function iae(o){return o.id===N6}var UN;(function(o){o.inspectTokensAction=m("inspectTokens","Developer: Inspect Tokens")})(UN||(UN={}));var ES;(function(o){o.gotoLineActionLabel=m("gotoLineActionLabel","Go to Line/Column...")})(ES||(ES={}));var $N;(function(o){o.helpQuickAccessActionLabel=m("helpQuickAccess","Show all Quick Access Providers")})($N||($N={}));var NS;(function(o){o.quickCommandActionLabel=m("quickCommandActionLabel","Command Palette"),o.quickCommandHelp=m("quickCommandActionHelp","Show And Run Commands")})(NS||(NS={}));var Sb;(function(o){o.quickOutlineActionLabel=m("quickOutlineActionLabel","Go to Symbol..."),o.quickOutlineByCategoryActionLabel=m("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")})(Sb||(Sb={}));var TS;(function(o){o.editorViewAccessibleLabel=m("editorViewAccessibleLabel","Editor content"),o.accessibilityHelpMessage=m("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")})(TS||(TS={}));var jN;(function(o){o.toggleHighContrast=m("toggleHighContrast","Toggle High Contrast Theme")})(jN||(jN={}));var KN;(function(o){o.bulkEditServiceSummary=m("bulkEditServiceSummary","Made {0} edits in {1} files")})(KN||(KN={}));const T6=ot("workspaceTrustManagementService");let sp=[],P2=[],M6=[];function a1(o,e=!1){nae(o,!1,e)}function nae(o,e,t){const i=sae(o,e);sp.push(i),i.userConfigured?M6.push(i):P2.push(i),t&&!i.userConfigured&&sp.forEach(n=>{n.mime===i.mime||n.userConfigured||(i.extension&&n.extension===i.extension&&console.warn(`Overwriting extension <<${i.extension}>> to now point to mime <<${i.mime}>>`),i.filename&&n.filename===i.filename&&console.warn(`Overwriting filename <<${i.filename}>> to now point to mime <<${i.mime}>>`),i.filepattern&&n.filepattern===i.filepattern&&console.warn(`Overwriting filepattern <<${i.filepattern}>> to now point to mime <<${i.mime}>>`),i.firstline&&n.firstline===i.firstline&&console.warn(`Overwriting firstline <<${i.firstline}>> to now point to mime <<${i.mime}>>`))})}function sae(o,e){return{id:o.id,mime:o.mime,filename:o.filename,extension:o.extension,filepattern:o.filepattern,firstline:o.firstline,userConfigured:e,filenameLowercase:o.filename?o.filename.toLowerCase():void 0,extensionLowercase:o.extension?o.extension.toLowerCase():void 0,filepatternLowercase:o.filepattern?l6(o.filepattern.toLowerCase()):void 0,filepatternOnPath:o.filepattern?o.filepattern.indexOf(Wi.sep)>=0:!1}}function oae(){sp=sp.filter(o=>o.userConfigured),P2=[]}function rae(o,e){return aae(o,e).map(t=>t.id)}function aae(o,e){let t;if(o)switch(o.scheme){case Oe.file:t=o.fsPath;break;case Oe.data:{t=Dh.parseMetaData(o).get(Dh.META_DATA_LABEL);break}case Oe.vscodeNotebookCell:t=void 0;break;default:t=o.path}if(!t)return[{id:"unknown",mime:wi.unknown}];t=t.toLowerCase();const i=oh(t),n=B5(t,i,M6);if(n)return[n,{id:Ao,mime:wi.text}];const s=B5(t,i,P2);if(s)return[s,{id:Ao,mime:wi.text}];if(e){const r=lae(e);if(r)return[r,{id:Ao,mime:wi.text}]}return[{id:"unknown",mime:wi.unknown}]}function B5(o,e,t){var i;let n,s,r;for(let a=t.length-1;a>=0;a--){const l=t[a];if(e===l.filenameLowercase){n=l;break}if(l.filepattern&&(!s||l.filepattern.length>s.filepattern.length)){const d=l.filepatternOnPath?o:e;!((i=l.filepatternLowercase)===null||i===void 0)&&i.call(l,d)&&(s=l)}l.extension&&(!r||l.extension.length>r.extension.length)&&e.endsWith(l.extensionLowercase)&&(r=l)}if(n)return n;if(s)return s;if(r)return r}function lae(o){if(dA(o)&&(o=o.substr(1)),o.length>0)for(let e=sp.length-1;e>=0;e--){const t=sp[e];if(!t.firstline)continue;const i=o.match(t.firstline);if(i&&i.length>0)return t}}const l1=Object.prototype.hasOwnProperty,W5="vs.editor.nullLanguage";class dae{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(W5,0),this._register(Ao,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||W5}}class yb extends W{constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event,yb.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new dae,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(Vm.onDidChangeLanguages(i=>{this._initializeFromRegistry()})))}dispose(){yb.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},oae();const e=[].concat(Vm.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(t=>{const i=this._languages[t];i.name&&(this._nameMap[i.name]=i.identifier),i.aliases.forEach(n=>{this._lowercaseNameMap[n.toLowerCase()]=i.identifier}),i.mimetypes.forEach(n=>{this._mimeTypesMap[n]=i.identifier})}),hi.as(Ba.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let i;l1.call(this._languages,t)?i=this._languages[t]:(this.languageIdCodec.register(t),i={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=i),this._mergeLanguage(i,e)}_mergeLanguage(e,t){const i=t.id;let n=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),n=t.mimetypes[0]),n||(n=`text/x-${i}`,e.mimetypes.push(n)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const a of t.extensions)a1({id:i,mime:n,extension:a},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const a of t.filenames)a1({id:i,mime:n,filename:a},this._warnOnOverwrite),e.filenames.push(a);if(Array.isArray(t.filenamePatterns))for(const a of t.filenamePatterns)a1({id:i,mime:n,filepattern:a},this._warnOnOverwrite);if(typeof t.firstLine=="string"&&t.firstLine.length>0){let a=t.firstLine;a.charAt(0)!=="^"&&(a="^"+a);try{const l=new RegExp(a);FK(l)||a1({id:i,mime:n,firstline:l},this._warnOnOverwrite)}catch(l){console.warn(`[${t.id}]: Invalid regular expression \`${a}\`: `,l)}}e.aliases.push(i);let s=null;if(typeof t.aliases<"u"&&Array.isArray(t.aliases)&&(t.aliases.length===0?s=[null]:s=t.aliases),s!==null)for(const a of s)!a||a.length===0||e.aliases.push(a);const r=s!==null&&s.length>0;if(!(r&&s[0]===null)){const a=(r?s[0]:null)||i;(r||!e.name)&&(e.name=a)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return e?l1.call(this._languages,e):!1}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return l1.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&l1.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return!e&&!t?[]:rae(e,t)}}yb.instanceCount=0;class Lb extends W{constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new O),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new O),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new O({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,Lb.instanceCount++,this._registry=this._register(new yb(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange(()=>this._onDidChange.fire()))}dispose(){Lb.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const i=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return $R(i,null)}createById(e){return new H5(this.onDidChange,()=>this._createAndGetLanguageIdentifier(e))}createByFilepathOrFirstLine(e,t){return new H5(this.onDidChange,()=>{const i=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(i)})}_createAndGetLanguageIdentifier(e){return(!e||!this.isRegisteredLanguageId(e))&&(e=Ao),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),gi.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}Lb.instanceCount=0;class H5{constructor(e,t){this._onDidChangeLanguages=e,this._selector=t,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 O({onDidRemoveLastListener:()=>{this._dispose()}})),this._emitter.event}_evaluate(){var e;const t=this._selector();t!==this.languageId&&(this.languageId=t,(e=this._emitter)===null||e===void 0||e.fire(this.languageId))}}const xb={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:wi.text,INTERNAL_URI_LIST:"application/vnd.code.uri-list"},cae=()=>({get delay(){return-1},dispose:()=>{},showHover:()=>{}});let PL=cae;const hae=new $r(()=>PL("mouse",!1)),uae=new $r(()=>PL("element",!1));function gae(o){PL=o}function Ts(o){return o==="element"?uae.value:hae.value}function op(){return PL("element",!0)}let R6={showHover:()=>{},hideHover:()=>{},showAndFocusLastHover:()=>{},setupUpdatableHover:()=>null,triggerUpdatableHover:()=>{}};function fae(o){R6=o}function Ha(){return R6}class mae{constructor(e){this.spliceables=e}splice(e,t,i){this.spliceables.forEach(n=>n.splice(e,t,i))}}class gu extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}function V5(o,e){const t=[];for(const i of e){if(o.start>=i.range.end)continue;if(o.ende.concat(t),[]))}class vae{get paddingTop(){return this._paddingTop}set paddingTop(e){this._size=this._size+e-this._paddingTop,this._paddingTop=e}constructor(e){this.groups=[],this._size=0,this._paddingTop=0,this._paddingTop=e??0,this._size=this._paddingTop}splice(e,t,i=[]){const n=i.length-t,s=V5({start:0,end:e},this.groups),r=V5({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map(l=>({range:qN(l.range,n),size:l.size})),a=i.map((l,d)=>({range:{start:e+d,end:e+d+1},size:l.size}));this.groups=_ae(s,a,r),this._size=this._paddingTop+this.groups.reduce((l,d)=>l+d.size*(d.range.end-d.range.start),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;if(e{for(const i of e)this.getRenderer(t).disposeTemplate(i.templateData),i.templateData=null}),this.cache.clear(),this.transactionNodesPendingRemoval.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var cc=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s};const fu={CurrentDragAndDropData:void 0},qa={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements(o){return[o]},getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){},dispose(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class j0{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class wae{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class Sae{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;tn,e!=null&&e.getPosInSet?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(t,i)=>i+1,e!=null&&e.getRole?this.getRole=e.getRole.bind(e):this.getRole=t=>"listitem",e!=null&&e.isChecked?this.isChecked=e.isChecked.bind(e):this.isChecked=t=>{}}}class mr{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(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const t of this.items)this.measureItemWidth(t);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:SD(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(e,t,i,n=qa){var s,r,a,l,d,c,h,u,g,f,p,_,v;if(this.virtualDelegate=t,this.domId=`list_id_${++mr.InstanceCount}`,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new Vr(50),this.splicing=!1,this.dragOverAnimationStopDisposable=W.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=W.None,this.onDragLeaveTimeout=W.None,this.disposables=new G,this._onDidChangeContentHeight=new O,this._onDidChangeContentWidth=new O,this.onDidChangeContentHeight=ae.latch(this._onDidChangeContentHeight.event,void 0,this.disposables),this._horizontalScrolling=!1,n.horizontalScrolling&&n.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=this.createRangeMap((s=n.paddingTop)!==null&&s!==void 0?s:0);for(const C of i)this.renderers.set(C.templateId,C);this.cache=this.disposables.add(new Cae(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 n.mouseSupport=="boolean"?n.mouseSupport:!0),this._horizontalScrolling=(r=n.horizontalScrolling)!==null&&r!==void 0?r:qa.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.paddingBottom=typeof n.paddingBottom>"u"?0:n.paddingBottom,this.accessibilityProvider=new Lae(n.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",((a=n.transformOptimization)!==null&&a!==void 0?a:qa.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.rowsContainer.style.overflow="hidden",this.rowsContainer.style.contain="strict"),this.disposables.add(zt.addTarget(this.rowsContainer)),this.scrollable=this.disposables.add(new Ap({forceIntegerValues:!0,smoothScrollDuration:(l=n.smoothScrolling)!==null&&l!==void 0&&l?125:0,scheduleAtNextAnimationFrame:C=>ao(De(this.domNode),C)})),this.scrollableElement=this.disposables.add(new _L(this.rowsContainer,{alwaysConsumeMouseWheel:(d=n.alwaysConsumeMouseWheel)!==null&&d!==void 0?d:qa.alwaysConsumeMouseWheel,horizontal:1,vertical:(c=n.verticalScrollMode)!==null&&c!==void 0?c:qa.verticalScrollMode,useShadows:(h=n.useShadows)!==null&&h!==void 0?h:qa.useShadows,mouseWheelScrollSensitivity:n.mouseWheelScrollSensitivity,fastScrollSensitivity:n.fastScrollSensitivity,scrollByPage:n.scrollByPage},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add(U(this.rowsContainer,Ut.Change,C=>this.onTouchChange(C))),this.disposables.add(U(this.scrollableElement.getDomNode(),"scroll",C=>C.target.scrollTop=0)),this.disposables.add(U(this.domNode,"dragover",C=>this.onDragOver(this.toDragEvent(C)))),this.disposables.add(U(this.domNode,"drop",C=>this.onDrop(this.toDragEvent(C)))),this.disposables.add(U(this.domNode,"dragleave",C=>this.onDragLeave(this.toDragEvent(C)))),this.disposables.add(U(this.domNode,"dragend",C=>this.onDragEnd(C))),this.setRowLineHeight=(u=n.setRowLineHeight)!==null&&u!==void 0?u:qa.setRowLineHeight,this.setRowHeight=(g=n.setRowHeight)!==null&&g!==void 0?g:qa.setRowHeight,this.supportDynamicHeights=(f=n.supportDynamicHeights)!==null&&f!==void 0?f:qa.supportDynamicHeights,this.dnd=(p=n.dnd)!==null&&p!==void 0?p:this.disposables.add(qa.dnd),this.layout((_=n.initialSize)===null||_===void 0?void 0:_.height,(v=n.initialSize)===null||v===void 0?void 0:v.width)}updateOptions(e){e.paddingBottom!==void 0&&(this.paddingBottom=e.paddingBottom,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),e.smoothScrolling!==void 0&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),e.horizontalScrolling!==void 0&&(this.horizontalScrolling=e.horizontalScrolling);let t;if(e.scrollByPage!==void 0&&(t={...t??{},scrollByPage:e.scrollByPage}),e.mouseWheelScrollSensitivity!==void 0&&(t={...t??{},mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),e.fastScrollSensitivity!==void 0&&(t={...t??{},fastScrollSensitivity:e.fastScrollSensitivity}),t&&this.scrollableElement.updateOptions(t),e.paddingTop!==void 0&&e.paddingTop!==this.rangeMap.paddingTop){const i=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),n=e.paddingTop-this.rangeMap.paddingTop;this.rangeMap.paddingTop=e.paddingTop,this.render(i,Math.max(0,this.lastRenderTop+n),this.lastRenderHeight,void 0,void 0,!0),this.setScrollTop(this.lastRenderTop),this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.lastRenderTop,this.lastRenderHeight)}}createRangeMap(e){return new vae(e)}splice(e,t,i=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,i=[]){const n=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),s={start:e,end:e+t},r=Hn.intersect(n,s),a=new Map;for(let S=r.end-1;S>=r.start;S--){const L=this.items[S];if(L.dragStartDisposable.dispose(),L.checkedDisposable.dispose(),L.row){let D=a.get(L.templateId);D||(D=[],a.set(L.templateId,D));const I=this.renderers.get(L.templateId);I&&I.disposeElement&&I.disposeElement(L.element,S,L.row.templateData,L.size),D.unshift(L.row)}L.row=null,L.stale=!0}const l={start:e+t,end:this.items.length},d=Hn.intersect(l,n),c=Hn.relativeComplement(l,n),h=i.map(S=>({id:String(this.itemId++),element:S,templateId:this.virtualDelegate.getTemplateId(S),size:this.virtualDelegate.getHeight(S),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(S),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:W.None,checkedDisposable:W.None,stale:!1}));let u;e===0&&t>=this.items.length?(this.rangeMap=this.createRangeMap(this.rangeMap.paddingTop),this.rangeMap.splice(0,0,h),u=this.items,this.items=h):(this.rangeMap.splice(e,t,h),u=this.items.splice(e,t,...h));const g=i.length-t,f=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),p=qN(d,g),_=Hn.intersect(f,p);for(let S=_.start;S<_.end;S++)this.updateItemInDOM(this.items[S],S);const v=Hn.relativeComplement(p,f);for(const S of v)for(let L=S.start;LqN(S,g)),w=[{start:e,end:e+i.length},...b].map(S=>Hn.intersect(f,S)).reverse();for(const S of w)for(let L=S.end-1;L>=S.start;L--){const D=this.items[L],I=a.get(D.templateId),T=I==null?void 0:I.pop();this.insertItemInDOM(L,T)}for(const S of a.values())for(const L of S)this.cache.release(L);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),u.map(S=>S.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=ao(De(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 e=0;for(const t of this.items)typeof t.width<"u"&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:e===0?0:e+10}),this._onDidChangeContentWidth.fire(this.scrollWidth)}rerender(){if(this.supportDynamicHeights){for(const e of this.items)e.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(e){return this.items[e].element}indexOf(e){return this.items.findIndex(t=>t.element===e)}domElement(e){const t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){const i={height:typeof e=="number"?e:qq(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),typeof t<"u"&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof t=="number"?t:SD(this.domNode)})}render(e,t,i,n,s,r=!1){const a=this.getRenderRange(t,i),l=Hn.relativeComplement(a,e).reverse(),d=Hn.relativeComplement(e,a);if(r){const c=Hn.intersect(e,a);for(let h=c.start;h{for(const c of d)for(let h=c.start;h=c.start;h--)this.insertItemInDOM(h)}),n!==void 0&&(this.rowsContainer.style.left=`-${n}px`),this.rowsContainer.style.top=`-${t}px`,this.horizontalScrolling&&s!==void 0&&(this.rowsContainer.style.width=`${Math.max(s,this.renderWidth)}px`),this.lastRenderTop=t,this.lastRenderHeight=i}insertItemInDOM(e,t){var i,n,s;const r=this.items[e];if(!r.row)if(t)r.row=t,r.stale=!0;else{const h=this.cache.alloc(r.templateId);r.row=h.row,r.stale||(r.stale=h.isReusingConnectedDomNode)}const a=this.accessibilityProvider.getRole(r.element)||"listitem";r.row.domNode.setAttribute("role",a);const l=this.accessibilityProvider.isChecked(r.element);if(typeof l=="boolean")r.row.domNode.setAttribute("aria-checked",String(!!l));else if(l){const h=u=>r.row.domNode.setAttribute("aria-checked",String(!!u));h(l.value),r.checkedDisposable=l.onDidChange(()=>h(l.value))}if(r.stale||!r.row.domNode.parentElement){const h=(s=(n=(i=this.items.at(e+1))===null||i===void 0?void 0:i.row)===null||n===void 0?void 0:n.domNode)!==null&&s!==void 0?s:null;(r.row.domNode.parentElement!==this.rowsContainer||r.row.domNode.nextElementSibling!==h)&&this.rowsContainer.insertBefore(r.row.domNode,h),r.stale=!1}this.updateItemInDOM(r,e);const d=this.renderers.get(r.templateId);if(!d)throw new Error(`No renderer found for template id ${r.templateId}`);d==null||d.renderElement(r.element,e,r.row.templateData,r.size);const c=this.dnd.getDragURI(r.element);r.dragStartDisposable.dispose(),r.row.domNode.draggable=!!c,c&&(r.dragStartDisposable=U(r.row.domNode,"dragstart",h=>this.onDragStart(r.element,c,h))),this.horizontalScrolling&&(this.measureItemWidth(r),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width="fit-content",e.width=SD(e.row.domNode);const t=De(e.row.domNode).getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2===0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){const i=this.renderers.get(t.templateId);i&&i.disposeElement&&i.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.paddingBottom}get onMouseClick(){return ae.map(this.disposables.add(new rt(this.domNode,"click")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseDblClick(){return ae.map(this.disposables.add(new rt(this.domNode,"dblclick")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseMiddleClick(){return ae.filter(ae.map(this.disposables.add(new rt(this.domNode,"auxclick")).event,e=>this.toMouseEvent(e),this.disposables),e=>e.browserEvent.button===1,this.disposables)}get onMouseDown(){return ae.map(this.disposables.add(new rt(this.domNode,"mousedown")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseOver(){return ae.map(this.disposables.add(new rt(this.domNode,"mouseover")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseOut(){return ae.map(this.disposables.add(new rt(this.domNode,"mouseout")).event,e=>this.toMouseEvent(e),this.disposables)}get onContextMenu(){return ae.any(ae.map(this.disposables.add(new rt(this.domNode,"contextmenu")).event,e=>this.toMouseEvent(e),this.disposables),ae.map(this.disposables.add(new rt(this.domNode,Ut.Contextmenu)).event,e=>this.toGestureEvent(e),this.disposables))}get onTouchStart(){return ae.map(this.disposables.add(new rt(this.domNode,"touchstart")).event,e=>this.toTouchEvent(e),this.disposables)}get onTap(){return ae.map(this.disposables.add(new rt(this.rowsContainer,Ut.Tap)).event,e=>this.toGestureEvent(e),this.disposables)}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=typeof t>"u"?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=typeof t>"u"?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),i=typeof t>"u"?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=typeof t>"u"?void 0:this.items[t],n=i&&i.element,s=this.getTargetSector(e,t);return{browserEvent:e,index:t,element:n,sector:s}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){var n,s;if(!i.dataTransfer)return;const r=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(xb.TEXT,t),i.dataTransfer.setDragImage){let a;this.dnd.getDragLabel&&(a=this.dnd.getDragLabel(r,i)),typeof a>"u"&&(a=String(r.length));const l=te(".monaco-drag-image");l.textContent=a;const c=(h=>{for(;h&&!h.classList.contains("monaco-workbench");)h=h.parentElement;return h||this.domNode.ownerDocument})(this.domNode);c.appendChild(l),i.dataTransfer.setDragImage(l,-10,-10),setTimeout(()=>c.removeChild(l),0)}this.domNode.classList.add("dragging"),this.currentDragData=new j0(r),fu.CurrentDragAndDropData=new wae(r),(s=(n=this.dnd).onDragStart)===null||s===void 0||s.call(n,this.currentDragData,i)}onDragOver(e){var t,i;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),fu.CurrentDragAndDropData&&fu.CurrentDragAndDropData.getData()==="vscode-ui"||(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer))return!1;if(!this.currentDragData)if(fu.CurrentDragAndDropData)this.currentDragData=fu.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new Sae}const n=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.sector,e.browserEvent);if(this.canDrop=typeof n=="boolean"?n:n.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;e.browserEvent.dataTransfer.dropEffect=typeof n!="boolean"&&((t=n.effect)===null||t===void 0?void 0:t.type)===0?"copy":"move";let s;typeof n!="boolean"&&n.feedback?s=n.feedback:typeof e.index>"u"?s=[-1]:s=[e.index],s=Gd(s).filter(a=>a>=-1&&aa-l),s=s[0]===-1?[-1]:s;let r=typeof n!="boolean"&&n.effect&&n.effect.position?n.effect.position:"drop-target";if(yae(this.currentDragFeedback,s)&&this.currentDragFeedbackPosition===r)return!0;if(this.currentDragFeedback=s,this.currentDragFeedbackPosition=r,this.currentDragFeedbackDisposable.dispose(),s[0]===-1)this.domNode.classList.add(r),this.rowsContainer.classList.add(r),this.currentDragFeedbackDisposable=Ce(()=>{this.domNode.classList.remove(r),this.rowsContainer.classList.remove(r)});else{if(s.length>1&&r!=="drop-target")throw new Error("Can't use multiple feedbacks with position different than 'over'");r==="drop-target-after"&&s[0]{var a;for(const l of s){const d=this.items[l];d.dropTarget=!1,(a=d.row)===null||a===void 0||a.domNode.classList.remove(r)}})}return!0}onDragLeave(e){var t,i;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Sh(()=>this.clearDragOverFeedback(),100,this.disposables),this.currentDragData&&((i=(t=this.dnd).onDragLeave)===null||i===void 0||i.call(t,this.currentDragData,e.element,e.index,e.browserEvent))}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,fu.CurrentDragAndDropData=void 0,!(!t||!e.browserEvent.dataTransfer)&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.sector,e.browserEvent))}onDragEnd(e){var t,i;this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,fu.CurrentDragAndDropData=void 0,(i=(t=this.dnd).onDragEnd)===null||i===void 0||i.call(t,e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackPosition=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=W.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const t=$9(this.domNode).top;this.dragOverAnimationDisposable=oG(De(this.domNode),this.animateDragAndDropScrollTop.bind(this,t))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Sh(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3,this.disposables),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(this.dragOverMouseY===void 0)return;const t=this.dragOverMouseY-e,i=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>i&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getTargetSector(e,t){if(t===void 0)return;const i=e.offsetY/this.items[t].size,n=Math.floor(i/.25);return hs(n,0,3)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let i=e;for(;_n(i)&&i!==this.rowsContainer&&t.contains(i);){const n=i.getAttribute("data-index");if(n){const s=Number(n);if(!isNaN(s))return s}i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){const n=this.getRenderRange(e,t);let s,r;e===this.elementTop(n.start)?(s=n.start,r=0):n.end-n.start>1&&(s=n.start+1,r=this.elementTop(s)-e);let a=0;for(;;){const l=this.getRenderRange(e,t);let d=!1;for(let c=l.start;c=u.start;g--)this.insertItemInDOM(g);for(let u=l.start;uo===e;function GN(o=Ma){return(e,t)=>di(e,t,o)}function A6(){return(o,e)=>o.equals(e)}function xae(o,e,t){return!o||!e?o===e:t(o,e)}class Ks{constructor(e,t,i){this.owner=e,this.debugNameSource=t,this.referenceFn=i}getDebugName(e){return Dae(e,this)}}const z5=new Map,ZN=new WeakMap;function Dae(o,e){var t;const i=ZN.get(o);if(i)return i;const n=kae(o,e);if(n){let s=(t=z5.get(n))!==null&&t!==void 0?t:0;s++,z5.set(n,s);const r=s===1?n:`${n}#${s}`;return ZN.set(o,r),r}}function kae(o,e){const t=ZN.get(o);if(t)return t;const i=e.owner?Eae(e.owner)+".":"";let n;const s=e.debugNameSource;if(s!==void 0)if(typeof s=="function"){if(n=s(),n!==void 0)return i+n}else return i+s;const r=e.referenceFn;if(r!==void 0&&(n=OL(r),n!==void 0))return i+n;if(e.owner!==void 0){const a=Iae(e.owner,o);if(a!==void 0)return i+a}}function Iae(o,e){for(const t in o)if(o[t]===e)return t}const U5=new Map,$5=new WeakMap;function Eae(o){var e;const t=$5.get(o);if(t)return t;const i=Nae(o);let n=(e=U5.get(i))!==null&&e!==void 0?e:0;n++,U5.set(i,n);const s=n===1?i:`${i}#${n}`;return $5.set(o,s),s}function Nae(o){const e=o.constructor;return e?e.name:"Object"}function OL(o){const e=o.toString(),i=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(e),n=i?i[1]:void 0;return n==null?void 0:n.trim()}let Tae;function El(){return Tae}let P6;function Mae(o){P6=o}let O6;function Rae(o){O6=o}class F6{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const i=t===void 0?void 0:e,n=t===void 0?e:t;return O6({owner:i,debugName:()=>{const s=OL(n);if(s!==void 0)return s;const a=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(n.toString());if(a)return`${this.debugName}.${a[2]}`;if(!i)return`${this.debugName} (mapped)`},debugReferenceFn:n},s=>n(this.read(s),s))}recomputeInitiallyAndOnChange(e,t){return e.add(P6(this,t)),this}}class K0 extends F6{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),t===0&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&this.observers.size===0&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function Wt(o,e){const t=new FL(o,e);try{o(t)}finally{t.finish()}}let d1;function gw(o){if(d1)o(d1);else{const e=new FL(o,void 0);d1=e;try{o(e)}finally{e.finish(),d1=void 0}}}async function Aae(o,e){const t=new FL(o,e);try{await o(t)}finally{t.finish()}}function Db(o,e,t){o?e(o):Wt(e,t)}class FL{constructor(e,t){var i;this._fn=e,this._getDebugName=t,this.updatingObservers=[],(i=El())===null||i===void 0||i.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():OL(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){var e;const t=this.updatingObservers;for(let i=0;i{},()=>`Setting ${this.debugName}`));try{const r=this._value;this._setValue(e),(n=El())===null||n===void 0||n.handleObservableChanged(this,{oldValue:r,newValue:e,change:i,didChange:!0,hadValue:!0});for(const a of this.observers)t.updateObserver(a,this),a.handleChange(this,i)}finally{s&&s.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}function kb(o,e){let t;return typeof o=="string"?t=new Ks(void 0,o,void 0):t=new Ks(o,void 0,void 0),new Oae(t,e,Ma)}class Oae extends O2{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){var e;(e=this._value)===null||e===void 0||e.dispose()}}function He(o,e){return e!==void 0?new Sg(new Ks(o,void 0,e),e,void 0,void 0,void 0,Ma):new Sg(new Ks(void 0,void 0,o),o,void 0,void 0,void 0,Ma)}function B6(o,e,t){return new Bae(new Ks(o,void 0,e),e,void 0,void 0,void 0,Ma,t)}function wd(o,e){var t;return new Sg(new Ks(o.owner,o.debugName,o.debugReferenceFn),e,void 0,void 0,o.onLastObserverRemoved,(t=o.equalsFn)!==null&&t!==void 0?t:Ma)}Rae(wd);function Fae(o,e){var t;return new Sg(new Ks(o.owner,o.debugName,void 0),e,o.createEmptyChangeSummary,o.handleChange,void 0,(t=o.equalityComparer)!==null&&t!==void 0?t:Ma)}function Zg(o,e){let t,i;e===void 0?(t=o,i=void 0):(i=o,t=e);const n=new G;return new Sg(new Ks(i,void 0,t),s=>(n.clear(),t(s,n)),void 0,void 0,()=>n.dispose(),Ma)}function il(o,e){let t,i;e===void 0?(t=o,i=void 0):(i=o,t=e);const n=new G;return new Sg(new Ks(i,void 0,t),s=>{n.clear();const r=t(s);return r&&n.add(r),r},void 0,void 0,()=>n.dispose(),Ma)}class Sg extends K0{get debugName(){var e;return(e=this._debugNameData.getDebugName(this))!==null&&e!==void 0?e:"(anonymous)"}constructor(e,t,i,n,s=void 0,r){var a,l;super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=i,this._handleChange=n,this._handleLastObserverRemoved=s,this._equalityComparator=r,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=(a=this.createChangeSummary)===null||a===void 0?void 0:a.call(this),(l=El())===null||l===void 0||l.handleDerivedCreated(this)}onLastObserverRemoved(){var e;this.state=0,this.value=void 0;for(const t of this.dependencies)t.removeObserver(this);this.dependencies.clear(),(e=this._handleLastObserverRemoved)===null||e===void 0||e.call(this)}get(){var e;if(this.observers.size===0){const t=this._computeFn(this,(e=this.createChangeSummary)===null||e===void 0?void 0:e.call(this));return this.onLastObserverRemoved(),t}else{do{if(this.state===1){for(const t of this.dependencies)if(t.reportChanges(),this.state===2)break}this.state===1&&(this.state=3),this._recomputeIfNeeded()}while(this.state!==3);return this.value}}_recomputeIfNeeded(){var e,t;if(this.state===3)return;const i=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=i;const n=this.state!==0,s=this.value;this.state=3;const r=this.changeSummary;this.changeSummary=(e=this.createChangeSummary)===null||e===void 0?void 0:e.call(this);try{this.value=this._computeFn(this,r)}finally{for(const l of this.dependenciesToBeRemoved)l.removeObserver(this);this.dependenciesToBeRemoved.clear()}const a=n&&!this._equalityComparator(s,this.value);if((t=El())===null||t===void 0||t.handleDerivedRecomputed(this,{oldValue:s,newValue:this.value,change:void 0,didChange:a,hadValue:n}),a)for(const l of this.observers)l.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=this.updateCount===1;if(this.state===3&&(this.state=1,!t))for(const i of this.observers)i.handlePossibleChange(this);if(t)for(const i of this.observers)i.beginUpdate(this)}endUpdate(e){if(this.updateCount--,this.updateCount===0){const t=[...this.observers];for(const i of t)i.endUpdate(this)}pg(()=>this.updateCount>=0)}handlePossibleChange(e){if(this.state===3&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const t of this.observers)t.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const i=this._handleChange?this._handleChange({changedObservable:e,change:t,didChange:s=>s===e},this.changeSummary):!0,n=this.state===3;if(i&&(this.state===1||n)&&(this.state=2,n))for(const s of this.observers)s.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}class Bae extends Sg{constructor(e,t,i,n,s=void 0,r,a){super(e,t,i,n,s,r),this.set=a}}function Xe(o){return new WL(new Ks(void 0,void 0,o),o,void 0,void 0)}function BL(o,e){var t;return new WL(new Ks(o.owner,o.debugName,(t=o.debugReferenceFn)!==null&&t!==void 0?t:e),e,void 0,void 0)}function q0(o,e){var t;return new WL(new Ks(o.owner,o.debugName,(t=o.debugReferenceFn)!==null&&t!==void 0?t:e),e,o.createEmptyChangeSummary,o.handleChange)}function hr(o){const e=new G,t=BL({owner:void 0,debugName:void 0,debugReferenceFn:o},i=>{e.clear(),o(i,e)});return Ce(()=>{t.dispose(),e.dispose()})}class WL{get debugName(){var e;return(e=this._debugNameData.getDebugName(this))!==null&&e!==void 0?e:"(anonymous)"}constructor(e,t,i,n){var s,r;this._debugNameData=e,this._runFn=t,this.createChangeSummary=i,this._handleChange=n,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=(s=this.createChangeSummary)===null||s===void 0?void 0:s.call(this),(r=El())===null||r===void 0||r.handleAutorunCreated(this),this._runIfNeeded()}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear()}_runIfNeeded(){var e,t,i;if(this.state===3)return;const n=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=n,this.state=3;const s=this.disposed;try{if(!s){(e=El())===null||e===void 0||e.handleAutorunTriggered(this);const r=this.changeSummary;this.changeSummary=(t=this.createChangeSummary)===null||t===void 0?void 0:t.call(this),this._runFn(this,r)}}finally{s||(i=El())===null||i===void 0||i.handleAutorunFinished(this);for(const r of this.dependenciesToBeRemoved)r.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(const e of this.dependencies)if(e.reportChanges(),this.state===2)break}this._runIfNeeded()}while(this.state!==3);this.updateCount--,pg(()=>this.updateCount>=0)}handlePossibleChange(e){this.state===3&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:n=>n===e},this.changeSummary))&&(this.state=2)}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}(function(o){o.Observer=WL})(Xe||(Xe={}));function ma(o){return new Wae(o)}class Wae extends F6{constructor(e){super(),this.value=e}get debugName(){return this.toString()}get(){return this.value}addObserver(e){}removeObserver(e){}toString(){return`Const: ${this.value}`}}function Nt(o,e){return new Uu(o,e)}class Uu extends K0{constructor(e,t){super(),this.event=e,this._getValue=t,this.hasValue=!1,this.handleEvent=i=>{var n;const s=this._getValue(i),r=this.value,a=!this.hasValue||r!==s;let l=!1;a&&(this.value=s,this.hasValue&&(l=!0,Db(Uu.globalTransaction,d=>{var c;(c=El())===null||c===void 0||c.handleFromEventObservableTriggered(this,{oldValue:r,newValue:s,change:void 0,didChange:a,hadValue:this.hasValue});for(const h of this.observers)d.updateObserver(h,this),h.handleChange(this,void 0)},()=>{const d=this.getDebugName();return"Event fired"+(d?`: ${d}`:"")})),this.hasValue=!0),l||(n=El())===null||n===void 0||n.handleFromEventObservableTriggered(this,{oldValue:r,newValue:s,change:void 0,didChange:a,hadValue:this.hasValue})}}getDebugName(){return OL(this._getValue)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}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(o){o.Observer=Uu;function e(t,i){let n=!1;Uu.globalTransaction===void 0&&(Uu.globalTransaction=t,n=!0);try{i()}finally{n&&(Uu.globalTransaction=void 0)}}o.batchEventsGlobally=e})(Nt||(Nt={}));function $n(o,e){return new Hae(o,e)}class Hae extends K0{constructor(e,t){super(),this.debugName=e,this.event=t,this.handleEvent=()=>{Wt(i=>{for(const n of this.observers)i.updateObserver(n,this),n.handleChange(this,void 0)},()=>this.debugName)}}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0}get(){}}function HL(o){return typeof o=="string"?new j5(o):new j5(void 0,o)}class j5 extends K0{get debugName(){var e;return(e=new Ks(this._owner,this._debugName,void 0).getDebugName(this))!==null&&e!==void 0?e:"Observable Signal"}constructor(e,t){super(),this._debugName=e,this._owner=t}trigger(e,t){if(!e){Wt(i=>{this.trigger(i,t)},()=>`Trigger signal ${this.debugName}`);return}for(const i of this.observers)e.updateObserver(i,this),i.handleChange(this,t)}get(){}}function G0(o,e){const t=new Vae(!0,e);return o.addObserver(t),e?e(o.get()):o.reportChanges(),Ce(()=>{o.removeObserver(t)})}Mae(G0);class Vae{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,this._counter===0&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}function zae(o,e){let t;return He(o,n=>(t=e(n,t),t))}function Uae(o,e,t,i){let n=new K5(t,i);return wd({debugReferenceFn:t,owner:o,onLastObserverRemoved:()=>{n.dispose(),n=new K5(t)}},r=>(n.setItems(e.read(r)),n.getItems()))}class K5{constructor(e,t){this._map=e,this._keySelector=t,this._cache=new Map,this._items=[]}dispose(){this._cache.forEach(e=>e.store.dispose()),this._cache.clear()}setItems(e){const t=[],i=new Set(this._cache.keys());for(const n of e){const s=this._keySelector?this._keySelector(n):n;let r=this._cache.get(s);if(r)i.delete(s);else{const a=new G;r={out:this._map(n,a),store:a},this._cache.set(s,r)}t.push(r.out)}for(const n of i)this._cache.get(n).store.dispose(),this._cache.delete(n);this._items=t}getItems(){return this._items}}function W6(o,e,t,i){return e||(e=n=>n!=null),new Promise((n,s)=>{let r=!0,a=!1;const l=o.map(c=>({isFinished:e(c),error:t?t(c):!1,state:c})),d=Xe(c=>{const{isFinished:h,error:u,state:g}=l.read(c);(h||u)&&(r?a=!0:d.dispose(),u?s(u===!0?g:u):n(g))});if(i){const c=i.onCancellationRequested(()=>{d.dispose(),c.dispose(),s(new ka)});if(i.isCancellationRequested){d.dispose(),c.dispose(),s(new ka);return}}r=!1,a&&d.dispose()})}var Yh=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s};class $ae{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(e){return e}renderElement(e,t,i){const n=this.renderedElements.findIndex(s=>s.templateData===i);if(n>=0){const s=this.renderedElements[n];this.trait.unrender(i),s.index=t}else{const s={index:t,templateData:i};this.renderedElements.push(s)}this.trait.renderIndex(t,i)}splice(e,t,i){const n=[];for(const s of this.renderedElements)s.index=e+t&&n.push({index:s.index+i-t,templateData:s.templateData});this.renderedElements=n}renderIndexes(e){for(const{index:t,templateData:i}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,i)}disposeTemplate(e){const t=this.renderedElements.findIndex(i=>i.templateData===e);t<0||this.renderedElements.splice(t,1)}}let MS=class{get name(){return this._trait}get renderer(){return new $ae(this)}constructor(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new O,this.onChange=this._onChange.event}splice(e,t,i){const n=i.length-t,s=e+t,r=[];let a=0;for(;a=s;)r.push(this.sortedIndexes[a++]+n);this.renderer.splice(e,t,i.length),this._set(r,r)}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(G5),t)}_set(e,t,i){const n=this.indexes,s=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const r=YN(s,e);return this.renderer.renderIndexes(r),this._onChange.fire({indexes:e,browserEvent:i}),n}get(){return this.indexes}contains(e){return Ov(this.sortedIndexes,e,G5)>=0}dispose(){Pt(this._onChange)}};Yh([Mi],MS.prototype,"renderer",null);class jae extends MS{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class Sk{constructor(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}splice(e,t,i){if(!this.identityProvider)return this.trait.splice(e,t,new Array(i.length).fill(!1));const n=this.trait.get().map(a=>this.identityProvider.getId(this.view.element(a)).toString());if(n.length===0)return this.trait.splice(e,t,new Array(i.length).fill(!1));const s=new Set(n),r=i.map(a=>s.has(this.identityProvider.getId(a).toString()));this.trait.splice(e,t,r)}}function hh(o){return o.tagName==="INPUT"||o.tagName==="TEXTAREA"}function Z0(o,e){return o.classList.contains(e)?!0:o.classList.contains("monaco-list")||!o.parentElement?!1:Z0(o.parentElement,e)}function j_(o){return Z0(o,"monaco-editor")}function Kae(o){return Z0(o,"monaco-custom-toggle")}function qae(o){return Z0(o,"action-item")}function Lv(o){return Z0(o,"monaco-tree-sticky-row")}function Ib(o){return o.classList.contains("monaco-tree-sticky-container")}function H6(o){return o.tagName==="A"&&o.classList.contains("monaco-button")||o.tagName==="DIV"&&o.classList.contains("monaco-button-dropdown")?!0:o.classList.contains("monaco-list")||!o.parentElement?!1:H6(o.parentElement)}class V6{get onKeyDown(){return ae.chain(this.disposables.add(new rt(this.view.domNode,"keydown")).event,e=>e.filter(t=>!hh(t.target)).map(t=>new Ht(t)))}constructor(e,t,i){this.list=e,this.view=t,this.disposables=new G,this.multipleSelectionDisposables=new G,this.multipleSelectionSupport=i.multipleSelectionSupport,this.disposables.add(this.onKeyDown(n=>{switch(n.keyCode){case 3:return this.onEnter(n);case 16:return this.onUpArrow(n);case 18:return this.onDownArrow(n);case 11:return this.onPageUpArrow(n);case 12:return this.onPageDownArrow(n);case 9:return this.onEscape(n);case 31:this.multipleSelectionSupport&&(it?n.metaKey:n.ctrlKey)&&this.onCtrlA(n)}}))}updateOptions(e){e.multipleSelectionSupport!==void 0&&(this.multipleSelectionSupport=e.multipleSelectionSupport)}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(Os(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}Yh([Mi],V6.prototype,"onKeyDown",null);var fl;(function(o){o[o.Automatic=0]="Automatic",o[o.Trigger=1]="Trigger"})(fl||(fl={}));var tm;(function(o){o[o.Idle=0]="Idle",o[o.Typing=1]="Typing"})(tm||(tm={}));const Gae=new class{mightProducePrintableCharacter(o){return o.ctrlKey||o.metaKey||o.altKey?!1:o.keyCode>=31&&o.keyCode<=56||o.keyCode>=21&&o.keyCode<=30||o.keyCode>=98&&o.keyCode<=107||o.keyCode>=85&&o.keyCode<=95}};class Zae{constructor(e,t,i,n,s){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.keyboardNavigationEventFilter=n,this.delegate=s,this.enabled=!1,this.state=tm.Idle,this.mode=fl.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new G,this.disposables=new G,this.updateOptions(e.options)}updateOptions(e){var t,i;!((t=e.typeNavigationEnabled)!==null&&t!==void 0)||t?this.enable():this.disable(),this.mode=(i=e.typeNavigationMode)!==null&&i!==void 0?i:fl.Automatic}enable(){if(this.enabled)return;let e=!1;const t=ae.chain(this.enabledDisposables.add(new rt(this.view.domNode,"keydown")).event,s=>s.filter(r=>!hh(r.target)).filter(()=>this.mode===fl.Automatic||this.triggered).map(r=>new Ht(r)).filter(r=>e||this.keyboardNavigationEventFilter(r)).filter(r=>this.delegate.mightProducePrintableCharacter(r)).forEach(r=>lt.stop(r,!0)).map(r=>r.browserEvent.key)),i=ae.debounce(t,()=>null,800,void 0,void 0,void 0,this.enabledDisposables);ae.reduce(ae.any(t,i),(s,r)=>r===null?null:(s||"")+r,void 0,this.enabledDisposables)(this.onInput,this,this.enabledDisposables),i(this.onClear,this,this.enabledDisposables),t(()=>e=!0,void 0,this.enabledDisposables),i(()=>e=!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 e;const t=this.list.getFocus();if(t.length>0&&t[0]===this.previouslyFocused){const i=(e=this.list.options.accessibilityProvider)===null||e===void 0?void 0:e.getAriaLabel(this.list.element(t[0]));typeof i=="string"?js(i):i&&js(i.get())}this.previouslyFocused=-1}onInput(e){if(!e){this.state=tm.Idle,this.triggered=!1;return}const t=this.list.getFocus(),i=t.length>0?t[0]:0,n=this.state===tm.Idle?1:0;this.state=tm.Typing;for(let s=0;s1&&d.length===1){this.previouslyFocused=i,this.list.setFocus([r]),this.list.reveal(r);return}}}else if(typeof l>"u"||bb(e,l)){this.previouslyFocused=i,this.list.setFocus([r]),this.list.reveal(r);return}}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class Yae{constructor(e,t){this.list=e,this.view=t,this.disposables=new G;const i=ae.chain(this.disposables.add(new rt(t.domNode,"keydown")).event,s=>s.filter(r=>!hh(r.target)).map(r=>new Ht(r)));ae.chain(i,s=>s.filter(r=>r.keyCode===2&&!r.ctrlKey&&!r.metaKey&&!r.shiftKey&&!r.altKey))(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(t.length===0)return;const i=this.view.domElement(t[0]);if(!i)return;const n=i.querySelector("[tabIndex]");if(!n||!_n(n)||n.tabIndex===-1)return;const s=De(n).getComputedStyle(n);s.visibility==="hidden"||s.display==="none"||(e.preventDefault(),e.stopPropagation(),n.focus())}dispose(){this.disposables.dispose()}}function z6(o){return it?o.browserEvent.metaKey:o.browserEvent.ctrlKey}function U6(o){return o.browserEvent.shiftKey}function Qae(o){return _A(o)&&o.button===2}const q5={isSelectionSingleChangeEvent:z6,isSelectionRangeChangeEvent:U6};class $6{constructor(e){this.list=e,this.disposables=new G,this._onPointer=new O,this.onPointer=this._onPointer.event,e.options.multipleSelectionSupport!==!1&&(this.multipleSelectionController=this.list.options.multipleSelectionController||q5),this.mouseSupport=typeof e.options.mouseSupport>"u"||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(zt.addTarget(e.getHTMLElement()))),ae.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){e.multipleSelectionSupport!==void 0&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||q5))}isSelectionSingleChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(e):!1}isSelectionRangeChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(e):!1}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){j_(e.browserEvent.target)||Pn()!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(hh(e.browserEvent.target)||j_(e.browserEvent.target))return;const t=typeof e.index>"u"?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport||hh(e.browserEvent.target)||j_(e.browserEvent.target)||e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=e.index;if(typeof t>"u"){this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0);return}if(this.isSelectionChangeEvent(e))return this.changeSelection(e);this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),Qae(e.browserEvent)||this.list.setSelection([t],e.browserEvent),this._onPointer.fire(e)}onDoubleClick(e){if(hh(e.browserEvent.target)||j_(e.browserEvent.target)||this.isSelectionChangeEvent(e)||e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){const t=e.index;let i=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if(typeof i>"u"){const c=this.list.getFocus()[0];i=c??t,this.list.setAnchor(i)}const n=Math.min(i,t),s=Math.max(i,t),r=Os(n,s+1),a=this.list.getSelection(),l=ele(YN(a,[i]),i);if(l.length===0)return;const d=YN(r,tle(a,l));this.list.setSelection(d,e.browserEvent),this.list.setFocus([t],e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){const n=this.list.getSelection(),s=n.filter(r=>r!==t);this.list.setFocus([t]),this.list.setAnchor(t),n.length===s.length?this.list.setSelection([...s,t],e.browserEvent):this.list.setSelection(s,e.browserEvent)}}dispose(){this.disposables.dispose()}}class j6{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){var t,i;const n=this.selectorSuffix&&`.${this.selectorSuffix}`,s=[];e.listBackground&&s.push(`.monaco-list${n} .monaco-list-rows { background: ${e.listBackground}; }`),e.listFocusBackground&&(s.push(`.monaco-list${n}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),s.push(`.monaco-list${n}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&s.push(`.monaco-list${n}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(s.push(`.monaco-list${n}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),s.push(`.monaco-list${n}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&s.push(`.monaco-list${n}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&s.push(`.monaco-list${n}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionBackground&&s.push(` + .monaco-drag-image, + .monaco-list${n}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; } + `),e.listFocusAndSelectionForeground&&s.push(` + .monaco-drag-image, + .monaco-list${n}:focus .monaco-list-row.selected.focused { color: ${e.listFocusAndSelectionForeground}; } + `),e.listInactiveFocusForeground&&(s.push(`.monaco-list${n} .monaco-list-row.focused { color: ${e.listInactiveFocusForeground}; }`),s.push(`.monaco-list${n} .monaco-list-row.focused:hover { color: ${e.listInactiveFocusForeground}; }`)),e.listInactiveSelectionIconForeground&&s.push(`.monaco-list${n} .monaco-list-row.focused .codicon { color: ${e.listInactiveSelectionIconForeground}; }`),e.listInactiveFocusBackground&&(s.push(`.monaco-list${n} .monaco-list-row.focused { background-color: ${e.listInactiveFocusBackground}; }`),s.push(`.monaco-list${n} .monaco-list-row.focused:hover { background-color: ${e.listInactiveFocusBackground}; }`)),e.listInactiveSelectionBackground&&(s.push(`.monaco-list${n} .monaco-list-row.selected { background-color: ${e.listInactiveSelectionBackground}; }`),s.push(`.monaco-list${n} .monaco-list-row.selected:hover { background-color: ${e.listInactiveSelectionBackground}; }`)),e.listInactiveSelectionForeground&&s.push(`.monaco-list${n} .monaco-list-row.selected { color: ${e.listInactiveSelectionForeground}; }`),e.listHoverBackground&&s.push(`.monaco-list${n}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${e.listHoverBackground}; }`),e.listHoverForeground&&s.push(`.monaco-list${n}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { color: ${e.listHoverForeground}; }`);const r=Vd(e.listFocusAndSelectionOutline,Vd(e.listSelectionOutline,(t=e.listFocusOutline)!==null&&t!==void 0?t:""));r&&s.push(`.monaco-list${n}:focus .monaco-list-row.focused.selected { outline: 1px solid ${r}; outline-offset: -1px;}`),e.listFocusOutline&&s.push(` + .monaco-drag-image, + .monaco-list${n}:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; } + .monaco-workbench.context-menu-visible .monaco-list${n}.last-focused .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; } + `);const a=Vd(e.listSelectionOutline,(i=e.listInactiveFocusOutline)!==null&&i!==void 0?i:"");a&&s.push(`.monaco-list${n} .monaco-list-row.focused.selected { outline: 1px dotted ${a}; outline-offset: -1px; }`),e.listSelectionOutline&&s.push(`.monaco-list${n} .monaco-list-row.selected { outline: 1px dotted ${e.listSelectionOutline}; outline-offset: -1px; }`),e.listInactiveFocusOutline&&s.push(`.monaco-list${n} .monaco-list-row.focused { outline: 1px dotted ${e.listInactiveFocusOutline}; outline-offset: -1px; }`),e.listHoverOutline&&s.push(`.monaco-list${n} .monaco-list-row:hover { outline: 1px dashed ${e.listHoverOutline}; outline-offset: -1px; }`),e.listDropOverBackground&&s.push(` + .monaco-list${n}.drop-target, + .monaco-list${n} .monaco-list-rows.drop-target, + .monaco-list${n} .monaco-list-row.drop-target { background-color: ${e.listDropOverBackground} !important; color: inherit !important; } + `),e.listDropBetweenBackground&&(s.push(` + .monaco-list${n} .monaco-list-rows.drop-target-before .monaco-list-row:first-child::before, + .monaco-list${n} .monaco-list-row.drop-target-before::before { + content: ""; position: absolute; top: 0px; left: 0px; width: 100%; height: 1px; + background-color: ${e.listDropBetweenBackground}; + }`),s.push(` + .monaco-list${n} .monaco-list-rows.drop-target-after .monaco-list-row:last-child::after, + .monaco-list${n} .monaco-list-row.drop-target-after::after { + content: ""; position: absolute; bottom: 0px; left: 0px; width: 100%; height: 1px; + background-color: ${e.listDropBetweenBackground}; + }`)),e.tableColumnsBorder&&s.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: ${e.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; + } + `),e.tableOddRowsBackgroundColor&&s.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: ${e.tableOddRowsBackgroundColor}; + } + `),this.styleElement.textContent=s.join(` +`)}}const Xae={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:z.fromHex("#a9a9a9").transparent(.4).toString(),tableColumnsBorder:z.fromHex("#cccccc").transparent(.2).toString(),tableOddRowsBackgroundColor:z.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},Jae={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){},dispose(){}}};function ele(o,e){const t=o.indexOf(e);if(t===-1)return[];const i=[];let n=t-1;for(;n>=0&&o[n]===e-(t-n);)i.push(o[n--]);for(i.reverse(),n=t;n=o.length)t.push(e[n++]);else if(n>=e.length)t.push(o[i++]);else if(o[i]===e[n]){t.push(o[i]),i++,n++;continue}else o[i]=o.length)t.push(e[n++]);else if(n>=e.length)t.push(o[i++]);else if(o[i]===e[n]){i++,n++;continue}else o[i]o-e;class ile{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map(t=>t.renderTemplate(e))}renderElement(e,t,i,n){let s=0;for(const r of this.renderers)r.renderElement(e,t,i[s++],n)}disposeElement(e,t,i,n){var s;let r=0;for(const a of this.renderers)(s=a.disposeElement)===null||s===void 0||s.call(a,e,t,i[r],n),r+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class nle{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return{container:e,disposables:new G}}renderElement(e,t,i){const n=this.accessibilityProvider.getAriaLabel(e),s=n&&typeof n!="string"?n:ma(n);i.disposables.add(Xe(a=>{this.setAriaLabel(a.readObservable(s),i.container)}));const r=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);typeof r=="number"?i.container.setAttribute("aria-level",`${r}`):i.container.removeAttribute("aria-level")}setAriaLabel(e,t){e?t.setAttribute("aria-label",e):t.removeAttribute("aria-label")}disposeElement(e,t,i,n){i.disposables.clear()}disposeTemplate(e){e.disposables.dispose()}}class sle{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){var i,n;(n=(i=this.dnd).onDragStart)===null||n===void 0||n.call(i,e,t)}onDragOver(e,t,i,n,s){return this.dnd.onDragOver(e,t,i,n,s)}onDragLeave(e,t,i,n){var s,r;(r=(s=this.dnd).onDragLeave)===null||r===void 0||r.call(s,e,t,i,n)}onDragEnd(e){var t,i;(i=(t=this.dnd).onDragEnd)===null||i===void 0||i.call(t,e)}drop(e,t,i,n,s){this.dnd.drop(e,t,i,n,s)}dispose(){this.dnd.dispose()}}class $o{get onDidChangeFocus(){return ae.map(this.eventBufferer.wrapEvent(this.focus.onChange),e=>this.toListEvent(e),this.disposables)}get onDidChangeSelection(){return ae.map(this.eventBufferer.wrapEvent(this.selection.onChange),e=>this.toListEvent(e),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 e=!1;const t=ae.chain(this.disposables.add(new rt(this.view.domNode,"keydown")).event,s=>s.map(r=>new Ht(r)).filter(r=>e=r.keyCode===58||r.shiftKey&&r.keyCode===68).map(r=>lt.stop(r,!0)).filter(()=>!1)),i=ae.chain(this.disposables.add(new rt(this.view.domNode,"keyup")).event,s=>s.forEach(()=>e=!1).map(r=>new Ht(r)).filter(r=>r.keyCode===58||r.shiftKey&&r.keyCode===68).map(r=>lt.stop(r,!0)).map(({browserEvent:r})=>{const a=this.getFocus(),l=a.length?a[0]:void 0,d=typeof l<"u"?this.view.element(l):void 0,c=typeof l<"u"?this.view.domElement(l):this.view.domNode;return{index:l,element:d,anchor:c,browserEvent:r}})),n=ae.chain(this.view.onContextMenu,s=>s.filter(r=>!e).map(({element:r,index:a,browserEvent:l})=>({element:r,index:a,anchor:new Rr(De(this.view.domNode),l),browserEvent:l})));return ae.any(t,i,n)}get onKeyDown(){return this.disposables.add(new rt(this.view.domNode,"keydown")).event}get onDidFocus(){return ae.signal(this.disposables.add(new rt(this.view.domNode,"focus",!0)).event)}get onDidBlur(){return ae.signal(this.disposables.add(new rt(this.view.domNode,"blur",!0)).event)}constructor(e,t,i,n,s=Jae){var r,a,l,d;this.user=e,this._options=s,this.focus=new MS("focused"),this.anchor=new MS("anchor"),this.eventBufferer=new zy,this._ariaLabel="",this.disposables=new G,this._onDidDispose=new O,this.onDidDispose=this._onDidDispose.event;const c=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?(r=this._options.accessibilityProvider)===null||r===void 0?void 0:r.getWidgetRole():"list";this.selection=new jae(c!=="listbox");const h=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=s.accessibilityProvider,this.accessibilityProvider&&(h.push(new nle(this.accessibilityProvider)),(l=(a=this.accessibilityProvider).onDidChangeActiveDescendant)===null||l===void 0||l.call(a,this.onDidChangeActiveDescendant,this,this.disposables)),n=n.map(g=>new ile(g.templateId,[...h,g]));const u={...s,dnd:s.dnd&&new sle(this,s.dnd)};if(this.view=this.createListView(t,i,n,u),this.view.domNode.setAttribute("role",c),s.styleController)this.styleController=s.styleController(this.view.domId);else{const g=Fo(this.view.domNode);this.styleController=new j6(g,this.view.domId)}if(this.spliceable=new mae([new Sk(this.focus,this.view,s.identityProvider),new Sk(this.selection,this.view,s.identityProvider),new Sk(this.anchor,this.view,s.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 Yae(this,this.view)),(typeof s.keyboardSupport!="boolean"||s.keyboardSupport)&&(this.keyboardController=new V6(this,this.view,s),this.disposables.add(this.keyboardController)),s.keyboardNavigationLabelProvider){const g=s.keyboardNavigationDelegate||Gae;this.typeNavigationController=new Zae(this,this.view,s.keyboardNavigationLabelProvider,(d=s.keyboardNavigationEventFilter)!==null&&d!==void 0?d:()=>!0,g),this.disposables.add(this.typeNavigationController)}this.mouseController=this.createMouseController(s),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(e,t,i,n){return new mr(e,t,i,n)}createMouseController(e){return new $6(this)}updateOptions(e={}){var t,i;this._options={...this._options,...e},(t=this.typeNavigationController)===null||t===void 0||t.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(e),(i=this.keyboardController)===null||i===void 0||i.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,i=[]){if(e<0||e>this.view.length)throw new gu(this.user,`Invalid start index: ${e}`);if(t<0)throw new gu(this.user,`Invalid delete count: ${t}`);t===0&&i.length===0||this.eventBufferer.bufferEvents(()=>this.spliceable.splice(e,t,i))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}indexOf(e){return this.view.indexOf(e)}indexAt(e){return this.view.indexAt(e)}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(e){this.view.setScrollTop(e)}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(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const i of e)if(i<0||i>=this.length)throw new gu(this.user,`Invalid index ${i}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map(e=>this.view.element(e))}setAnchor(e){if(typeof e>"u"){this.anchor.set([]);return}if(e<0||e>=this.length)throw new gu(this.user,`Invalid index ${e}`);this.anchor.set([e])}getAnchor(){return $R(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return typeof e>"u"?void 0:this.element(e)}setFocus(e,t){for(const i of e)if(i<0||i>=this.length)throw new gu(this.user,`Invalid index ${i}`);this.focus.set(e,t)}focusNext(e=1,t=!1,i,n){if(this.length===0)return;const s=this.focus.get(),r=this.findNextIndex(s.length>0?s[0]+e:0,t,n);r>-1&&this.setFocus([r],i)}focusPrevious(e=1,t=!1,i,n){if(this.length===0)return;const s=this.focus.get(),r=this.findPreviousIndex(s.length>0?s[0]-e:0,t,n);r>-1&&this.setFocus([r],i)}async focusNextPage(e,t){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=i===0?0:i-1;const n=this.getFocus()[0];if(n!==i&&(n===void 0||i>n)){const s=this.findPreviousIndex(i,!1,t);s>-1&&n!==s?this.setFocus([s],e):this.setFocus([i],e)}else{const s=this.view.getScrollTop();let r=s+this.view.renderHeight;i>n&&(r-=this.view.elementHeight(i)),this.view.setScrollTop(r),this.view.getScrollTop()!==s&&(this.setFocus([]),await Xd(0),await this.focusNextPage(e,t))}}async focusPreviousPage(e,t,i=()=>0){let n;const s=i(),r=this.view.getScrollTop()+s;r===0?n=this.view.indexAt(r):n=this.view.indexAfter(r-1);const a=this.getFocus()[0];if(a!==n&&(a===void 0||a>=n)){const l=this.findNextIndex(n,!1,t);l>-1&&a!==l?this.setFocus([l],e):this.setFocus([n],e)}else{const l=r;this.view.setScrollTop(r-this.view.renderHeight-s),this.view.getScrollTop()+i()!==l&&(this.setFocus([]),await Xd(0),await this.focusPreviousPage(e,t,i))}}focusLast(e,t){if(this.length===0)return;const i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,i){if(this.length===0)return;const n=this.findNextIndex(e,!1,i);n>-1&&this.setFocus([n],t)}findNextIndex(e,t=!1,i){for(let n=0;n=this.length&&!t)return-1;if(e=e%this.length,!i||i(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,i){for(let n=0;nthis.view.element(e))}reveal(e,t,i=0){if(e<0||e>=this.length)throw new gu(this.user,`Invalid index ${e}`);const n=this.view.getScrollTop(),s=this.view.elementTop(e),r=this.view.elementHeight(e);if(vh(t)){const a=r-this.view.renderHeight+i;this.view.setScrollTop(a*hs(t,0,1)+s-i)}else{const a=s+r,l=n+this.view.renderHeight;s=l||(s=l&&r>=this.view.renderHeight?this.view.setScrollTop(s-i):a>=l&&this.view.setScrollTop(a-this.view.renderHeight))}}getRelativeTop(e,t=0){if(e<0||e>=this.length)throw new gu(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),n=this.view.elementTop(e),s=this.view.elementHeight(e);if(ni+this.view.renderHeight)return null;const r=s-this.view.renderHeight+t;return Math.abs((i+t-n)/r)}getHTMLElement(){return this.view.domNode}getScrollableElement(){return this.view.scrollableElementDomNode}getElementID(e){return this.view.getElementDomId(e)}getElementTop(e){return this.view.elementTop(e)}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map(i=>this.view.element(i)),browserEvent:t}}_onFocusChange(){const e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var e;const t=this.focus.get();if(t.length>0){let i;!((e=this.accessibilityProvider)===null||e===void 0)&&e.getActiveDescendantId&&(i=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",i||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();this.view.domNode.classList.toggle("selection-none",e.length===0),this.view.domNode.classList.toggle("selection-single",e.length===1),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}Yh([Mi],$o.prototype,"onDidChangeFocus",null);Yh([Mi],$o.prototype,"onDidChangeSelection",null);Yh([Mi],$o.prototype,"onContextMenu",null);Yh([Mi],$o.prototype,"onKeyDown",null);Yh([Mi],$o.prototype,"onDidFocus",null);Yh([Mi],$o.prototype,"onDidBlur",null);const $u=te,K6="selectOption.entry.template";class ole{get templateId(){return K6}renderTemplate(e){const t=Object.create(null);return t.root=e,t.text=Q(e,$u(".option-text")),t.detail=Q(e,$u(".option-detail")),t.decoratorRight=Q(e,$u(".option-decorator-right")),t}renderElement(e,t,i){const n=i,s=e.text,r=e.detail,a=e.decoratorRight,l=e.isDisabled;n.text.textContent=s,n.detail.textContent=r||"",n.decoratorRight.innerText=a||"",l?n.root.classList.add("option-disabled"):n.root.classList.remove("option-disabled")}disposeTemplate(e){}}class ml extends W{constructor(e,t,i,n,s){super(),this.options=[],this._currentSelection=0,this._hasDetails=!1,this._skipLayout=!1,this._sticky=!1,this._isVisible=!1,this.styles=n,this.selectBoxOptions=s||Object.create(null),typeof this.selectBoxOptions.minBottomMargin!="number"?this.selectBoxOptions.minBottomMargin=ml.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 O,this._register(this._onDidSelect),this.registerListeners(),this.constructSelectDropDown(i),this.selected=t||0,e&&this.setOptions(e,t),this.initStyleSheet()}setTitle(e){!this._hover&&e?this._hover=this._register(Ha().setupUpdatableHover(Ts("mouse"),this.selectElement,e)):this._hover&&this._hover.update(e)}getHeight(){return 22}getTemplateId(){return K6}constructSelectDropDown(e){this.contextViewProvider=e,this.selectDropDownContainer=te(".monaco-select-box-dropdown-container"),this.selectDropDownContainer.classList.add("monaco-select-box-dropdown-padding"),this.selectionDetailsPane=Q(this.selectDropDownContainer,$u(".select-box-details-pane"));const t=Q(this.selectDropDownContainer,$u(".select-box-dropdown-container-width-control")),i=Q(t,$u(".width-control-div"));this.widthControlElement=document.createElement("span"),this.widthControlElement.className="option-text-width-control",Q(i,this.widthControlElement),this._dropDownPosition=0,this.styleElement=Fo(this.selectDropDownContainer),this.selectDropDownContainer.setAttribute("draggable","true"),this._register(U(this.selectDropDownContainer,ee.DRAG_START,n=>{lt.stop(n,!0)}))}registerListeners(){this._register(Si(this.selectElement,"change",t=>{this.selected=t.target.selectedIndex,this._onDidSelect.fire({index:t.target.selectedIndex,selected:t.target.value}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)})),this._register(U(this.selectElement,ee.CLICK,t=>{lt.stop(t),this._isVisible?this.hideSelectDropDown(!0):this.showSelectDropDown()})),this._register(U(this.selectElement,ee.MOUSE_DOWN,t=>{lt.stop(t)}));let e;this._register(U(this.selectElement,"touchstart",t=>{e=this._isVisible})),this._register(U(this.selectElement,"touchend",t=>{lt.stop(t),e?this.hideSelectDropDown(!0):this.showSelectDropDown()})),this._register(U(this.selectElement,ee.KEY_DOWN,t=>{const i=new Ht(t);let n=!1;it?(i.keyCode===18||i.keyCode===16||i.keyCode===10||i.keyCode===3)&&(n=!0):(i.keyCode===18&&i.altKey||i.keyCode===16&&i.altKey||i.keyCode===10||i.keyCode===3)&&(n=!0),n&&(this.showSelectDropDown(),lt.stop(t,!0))}))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){di(this.options,e)||(this.options=e,this.selectElement.options.length=0,this._hasDetails=!1,this._cachedMaxDetailsHeight=void 0,this.options.forEach((i,n)=>{this.selectElement.add(this.createOption(i.text,n,i.isDisabled)),typeof i.description=="string"&&(this._hasDetails=!0)})),t!==void 0&&(this.select(t),this._currentSelection=this.selected)}setOptionsList(){var e;(e=this.selectList)===null||e===void 0||e.splice(0,this.selectList.length,this.options)}select(e){e>=0&&ethis.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(e){this.selectElement.tabIndex=e?0:-1}render(e){this.container=e,e.classList.add("select-container"),e.appendChild(this.selectElement),this.styleSelectElement()}initStyleSheet(){const e=[];this.styles.listFocusBackground&&e.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&&e.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&&e.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?(e.push(`.monaco-select-box-dropdown-container { border: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectBorder} } `)):this.styles.selectListBorder&&(e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectListBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectListBorder} } `)),this.styles.listHoverForeground&&e.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&&e.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&&e.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&&e.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; }`),e.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; }"),e.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=e.join(` +`)}styleSelectElement(){var e,t,i;const n=(e=this.styles.selectBackground)!==null&&e!==void 0?e:"",s=(t=this.styles.selectForeground)!==null&&t!==void 0?t:"",r=(i=this.styles.selectBorder)!==null&&i!==void 0?i:"";this.selectElement.style.backgroundColor=n,this.selectElement.style.color=s,this.selectElement.style.borderColor=r}styleList(){var e,t;const i=(e=this.styles.selectBackground)!==null&&e!==void 0?e:"",n=Vd(this.styles.selectListBackground,i);this.selectDropDownListContainer.style.backgroundColor=n,this.selectionDetailsPane.style.backgroundColor=n;const s=(t=this.styles.focusBorder)!==null&&t!==void 0?t:"";this.selectDropDownContainer.style.outlineColor=s,this.selectDropDownContainer.style.outlineOffset="-1px",this.selectList.style(this.styles)}createOption(e,t,i){const n=document.createElement("option");return n.value=e,n.text=e,n.disabled=!!i,n}showSelectDropDown(){this.selectionDetailsPane.innerText="",!(!this.contextViewProvider||this._isVisible)&&(this.createSelectList(this.selectDropDownContainer),this.setOptionsList(),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e,!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:e=>this.renderSelectDropDown(e),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(e){!this.contextViewProvider||!this._isVisible||(this._isVisible=!1,this.selectElement.setAttribute("aria-expanded","false"),e&&this.selectElement.focus(),this.contextViewProvider.hideContextView())}renderSelectDropDown(e,t){return e.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(t),{dispose:()=>{try{e.removeChild(this.selectDropDownContainer)}catch{}}}}measureMaxDetailsHeight(){let e=0;return this.options.forEach((t,i)=>{this.updateDetail(i),this.selectionDetailsPane.offsetHeight>e&&(e=this.selectionDetailsPane.offsetHeight)}),e}layoutSelectDropDown(e){if(this._skipLayout)return!1;if(this.selectList){this.selectDropDownContainer.classList.add("visible");const t=De(this.selectElement),i=Oi(this.selectElement),n=De(this.selectElement).getComputedStyle(this.selectElement),s=parseFloat(n.getPropertyValue("--dropdown-padding-top"))+parseFloat(n.getPropertyValue("--dropdown-padding-bottom")),r=t.innerHeight-i.top-i.height-(this.selectBoxOptions.minBottomMargin||0),a=i.top-ml.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,l=this.selectElement.offsetWidth,d=this.setWidthControlElement(this.widthControlElement),c=Math.max(d,Math.round(l)).toString()+"px";this.selectDropDownContainer.style.width=c,this.selectList.getHTMLElement().style.height="",this.selectList.layout();let h=this.selectList.contentHeight;this._hasDetails&&this._cachedMaxDetailsHeight===void 0&&(this._cachedMaxDetailsHeight=this.measureMaxDetailsHeight());const u=this._hasDetails?this._cachedMaxDetailsHeight:0,g=h+s+u,f=Math.floor((r-s-u)/this.getHeight()),p=Math.floor((a-s-u)/this.getHeight());if(e)return i.top+i.height>t.innerHeight-22||i.topf&&this.options.length>f?(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(i.top+i.height>t.innerHeight-22||i.topr&&(h=f*this.getHeight())}else g>a&&(h=p*this.getHeight());return this.selectList.layout(h),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=h+s+"px",this.selectDropDownContainer.style.height=""):this.selectDropDownContainer.style.height=h+s+"px",this.updateDetail(this.selected),this.selectDropDownContainer.style.width=c,this.selectDropDownListContainer.setAttribute("tabindex","0"),this.selectElement.classList.add("synthetic-focus"),this.selectDropDownContainer.classList.add("synthetic-focus"),!0}else return!1}setWidthControlElement(e){let t=0;if(e){let i=0,n=0;this.options.forEach((s,r)=>{const a=s.detail?s.detail.length:0,l=s.decoratorRight?s.decoratorRight.length:0,d=s.text.length+a+l;d>n&&(i=r,n=d)}),e.textContent=this.options[i].text+(this.options[i].decoratorRight?this.options[i].decoratorRight+" ":""),t=Xs(e)}return t}createSelectList(e){if(this.selectList)return;this.selectDropDownListContainer=Q(e,$u(".select-box-dropdown-list-container")),this.listRenderer=new ole,this.selectList=new $o("SelectBoxCustom",this.selectDropDownListContainer,this,[this.listRenderer],{useShadows:!1,verticalScrollMode:3,keyboardSupport:!1,mouseSupport:!1,accessibilityProvider:{getAriaLabel:n=>{let s=n.text;return n.detail&&(s+=`. ${n.detail}`),n.decoratorRight&&(s+=`. ${n.decoratorRight}`),n.description&&(s+=`. ${n.description}`),s},getWidgetAriaLabel:()=>m({key:"selectBox",comment:["Behave like native select dropdown element."]},"Select Box"),getRole:()=>it?"":"option",getWidgetRole:()=>"listbox"}}),this.selectBoxOptions.ariaLabel&&(this.selectList.ariaLabel=this.selectBoxOptions.ariaLabel);const t=this._register(new rt(this.selectDropDownListContainer,"keydown")),i=ae.chain(t.event,n=>n.filter(()=>this.selectList.length>0).map(s=>new Ht(s)));this._register(ae.chain(i,n=>n.filter(s=>s.keyCode===3))(this.onEnter,this)),this._register(ae.chain(i,n=>n.filter(s=>s.keyCode===2))(this.onEnter,this)),this._register(ae.chain(i,n=>n.filter(s=>s.keyCode===9))(this.onEscape,this)),this._register(ae.chain(i,n=>n.filter(s=>s.keyCode===16))(this.onUpArrow,this)),this._register(ae.chain(i,n=>n.filter(s=>s.keyCode===18))(this.onDownArrow,this)),this._register(ae.chain(i,n=>n.filter(s=>s.keyCode===12))(this.onPageDown,this)),this._register(ae.chain(i,n=>n.filter(s=>s.keyCode===11))(this.onPageUp,this)),this._register(ae.chain(i,n=>n.filter(s=>s.keyCode===14))(this.onHome,this)),this._register(ae.chain(i,n=>n.filter(s=>s.keyCode===13))(this.onEnd,this)),this._register(ae.chain(i,n=>n.filter(s=>s.keyCode>=21&&s.keyCode<=56||s.keyCode>=85&&s.keyCode<=113))(this.onCharacter,this)),this._register(U(this.selectList.getHTMLElement(),ee.POINTER_UP,n=>this.onPointerUp(n))),this._register(this.selectList.onMouseOver(n=>typeof n.index<"u"&&this.selectList.setFocus([n.index]))),this._register(this.selectList.onDidChangeFocus(n=>this.onListFocus(n))),this._register(U(this.selectDropDownContainer,ee.FOCUS_OUT,n=>{!this._isVisible||on(n.relatedTarget,this.selectDropDownContainer)||this.onListBlur()})),this.selectList.getHTMLElement().setAttribute("aria-label",this.selectBoxOptions.ariaLabel||""),this.selectList.getHTMLElement().setAttribute("aria-expanded","true"),this.styleList()}onPointerUp(e){if(!this.selectList.length)return;lt.stop(e);const t=e.target;if(!t||t.classList.contains("slider"))return;const i=t.closest(".monaco-list-row");if(!i)return;const n=Number(i.getAttribute("data-index")),s=i.classList.contains("option-disabled");n>=0&&n{for(let r=0;rthis.selected+2)this.selected+=2;else{if(t)return;this.selected++}this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onUpArrow(e){this.selected>0&&(lt.stop(e,!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(e){lt.stop(e),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(e){lt.stop(e),!(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(e){lt.stop(e),!(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(e){const t=pd.toString(e.keyCode);let i=-1;for(let n=0;n{this._register(U(this.selectElement,e,t=>{this.selectElement.focus()}))}),this._register(Si(this.selectElement,"click",e=>{lt.stop(e,!0)})),this._register(Si(this.selectElement,"change",e=>{this.selectElement.title=e.target.value,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value})})),this._register(Si(this.selectElement,"keydown",e=>{let t=!1;it?(e.keyCode===18||e.keyCode===16||e.keyCode===10)&&(t=!0):(e.keyCode===18&&e.altKey||e.keyCode===10||e.keyCode===3)&&(t=!0),t&&e.stopPropagation()}))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){(!this.options||!di(this.options,e))&&(this.options=e,this.selectElement.options.length=0,this.options.forEach((i,n)=>{this.selectElement.add(this.createOption(i.text,n,i.isDisabled))})),t!==void 0&&this.select(t)}select(e){this.options.length===0?this.selected=0:e>=0&&ethis.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.selected{this.element&&this.handleActionChangeEvent(n)}))}handleActionChangeEvent(e){e.enabled!==void 0&&this.updateEnabled(),e.checked!==void 0&&this.updateChecked(),e.class!==void 0&&this.updateClass(),e.label!==void 0&&(this.updateLabel(),this.updateTooltip()),e.tooltip!==void 0&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new mg)),this._actionRunner}set actionRunner(e){this._actionRunner=e}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(zt.addTarget(e));const i=this.options&&this.options.draggable;i&&(e.draggable=!0,lr&&this._register(U(e,ee.DRAG_START,n=>{var s;return(s=n.dataTransfer)===null||s===void 0?void 0:s.setData(xb.TEXT,this._action.label)}))),this._register(U(t,Ut.Tap,n=>this.onClick(n,!0))),this._register(U(t,ee.MOUSE_DOWN,n=>{i||lt.stop(n,!0),this._action.enabled&&n.button===0&&t.classList.add("active")})),it&&this._register(U(t,ee.CONTEXT_MENU,n=>{n.button===0&&n.ctrlKey===!0&&this.onClick(n)})),this._register(U(t,ee.CLICK,n=>{lt.stop(n,!0),this.options&&this.options.isMenu||this.onClick(n)})),this._register(U(t,ee.DBLCLICK,n=>{lt.stop(n,!0)})),[ee.MOUSE_UP,ee.MOUSE_OUT].forEach(n=>{this._register(U(t,n,s=>{lt.stop(s),t.classList.remove("active")}))})}onClick(e,t=!1){var i;lt.stop(e,!0);const n=Do(this._context)?!((i=this.options)===null||i===void 0)&&i.useEventAsContext?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,n)}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(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}getClass(){return this.action.class}getTooltip(){return this.action.tooltip}updateTooltip(){var e,t,i;if(!this.element)return;const n=(e=this.getTooltip())!==null&&e!==void 0?e:"";if(this.updateAriaLabel(),!((t=this.options.hoverDelegate)===null||t===void 0)&&t.showNativeHover)this.element.title=n;else if(!this.customHover&&n!==""){const s=(i=this.options.hoverDelegate)!==null&&i!==void 0?i:Ts("element");this.customHover=this._store.add(Ha().setupUpdatableHover(s,this.element,n))}else this.customHover&&this.customHover.update(n)}updateAriaLabel(){var e;if(this.element){const t=(e=this.getTooltip())!==null&&e!==void 0?e:"";this.element.setAttribute("aria-label",t)}}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),this._context=void 0,super.dispose()}}class rp extends la{constructor(e,t,i){super(e,t,i),this.options=i,this.options.icon=i.icon!==void 0?i.icon:!1,this.options.label=i.label!==void 0?i.label:!0,this.cssClass=""}render(e){super.render(e),pt(this.element);const t=document.createElement("a");if(t.classList.add("action-label"),t.setAttribute("role",this.getDefaultAriaRole()),this.label=t,this.element.appendChild(t),this.options.label&&this.options.keybinding){const i=document.createElement("span");i.classList.add("keybinding"),i.textContent=this.options.keybinding,this.element.appendChild(i)}this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}getDefaultAriaRole(){return this._action.id===ji.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(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.action.label)}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:!this.options.label&&this.action.label&&this.options.icon&&(e=this.action.label,this.options.keybinding&&(e=m({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e??void 0}updateClass(){var e;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()):(e=this.label)===null||e===void 0||e.classList.remove("codicon")}updateEnabled(){var e,t;this.action.enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),(e=this.element)===null||e===void 0||e.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),(t=this.element)===null||t===void 0||t.classList.add("disabled"))}updateAriaLabel(){var e;if(this.label){const t=(e=this.getTooltip())!==null&&e!==void 0?e:"";this.label.setAttribute("aria-label",t)}}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())))}}class lle extends la{constructor(e,t,i,n,s,r,a){super(e,t),this.selectBox=new ale(i,n,s,r,a),this.selectBox.setFocusable(!1),this._register(this.selectBox),this.registerListeners()}select(e){this.selectBox.select(e)}registerListeners(){this._register(this.selectBox.onDidSelect(e=>this.runAction(e.selected,e.index)))}runAction(e,t){this.actionRunner.run(this._action,this.getActionContext(e,t))}getActionContext(e,t){return e}setFocusable(e){this.selectBox.setFocusable(e)}focus(){var e;(e=this.selectBox)===null||e===void 0||e.focus()}blur(){var e;(e=this.selectBox)===null||e===void 0||e.blur()}render(e){this.selectBox.render(e)}}class dle extends mg{constructor(e,t){super(),this._onDidChangeVisibility=this._register(new O),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=Q(e,te(".monaco-dropdown")),this._label=Q(this._element,te(".dropdown-label"));let i=t.labelRenderer;i||(i=s=>(s.textContent=t.label||"",null));for(const s of[ee.CLICK,ee.MOUSE_DOWN,Ut.Tap])this._register(U(this.element,s,r=>lt.stop(r,!0)));for(const s of[ee.MOUSE_DOWN,Ut.Tap])this._register(U(this._label,s,r=>{_A(r)&&(r.detail>1||r.button!==0)||(this.visible?this.hide():this.show())}));this._register(U(this._label,ee.KEY_UP,s=>{const r=new Ht(s);(r.equals(3)||r.equals(10))&&(lt.stop(s,!0),this.visible?this.hide():this.show())}));const n=i(this._label);n&&this._register(n),this._register(zt.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)}}class cle extends dle{constructor(e,t){super(e,t),this._options=t,this._actions=[],this.actions=t.actions||[]}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this._options.actionProvider?this._options.actionProvider.getActions():this._actions}set actions(e){this._actions=e}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:(e,t)=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e,t):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):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")}}class RS extends la{constructor(e,t,i,n=Object.create(null)){super(null,e,n),this.actionItem=null,this._onDidChangeVisibility=this._register(new O),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this.menuActionsOrProvider=t,this.contextMenuProvider=i,this.options=n,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){this.actionItem=e;const t=s=>{var r;this.element=Q(s,te("a.action-label"));let a=[];return typeof this.options.classNames=="string"?a=this.options.classNames.split(/\s+/g).filter(l=>!!l):this.options.classNames&&(a=this.options.classNames),a.find(l=>l==="icon")||a.push("codicon"),this.element.classList.add(...a),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this._action.label&&this._register(Ha().setupUpdatableHover((r=this.options.hoverDelegate)!==null&&r!==void 0?r:Ts("mouse"),this.element,this._action.label)),this.element.ariaLabel=this._action.label||"",null},i=Array.isArray(this.menuActionsOrProvider),n={contextMenuProvider:this.contextMenuProvider,labelRenderer:t,menuAsChild:this.options.menuAsChild,actions:i?this.menuActionsOrProvider:void 0,actionProvider:i?void 0:this.menuActionsOrProvider,skipTelemetry:this.options.skipTelemetry};if(this.dropdownMenu=this._register(new cle(e,n)),this._register(this.dropdownMenu.onDidChangeVisibility(s=>{var r;(r=this.element)===null||r===void 0||r.setAttribute("aria-expanded",`${s}`),this._onDidChangeVisibility.fire(s)})),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const s=this;this.dropdownMenu.menuOptions={...this.dropdownMenu.menuOptions,get anchorAlignment(){return s.options.anchorAlignmentProvider()}}}this.updateTooltip(),this.updateEnabled()}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:this.action.label&&(e=this.action.label),e??void 0}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}show(){var e;(e=this.dropdownMenu)===null||e===void 0||e.show()}updateEnabled(){var e,t;const i=!this.action.enabled;(e=this.actionItem)===null||e===void 0||e.classList.toggle("disabled",i),(t=this.element)===null||t===void 0||t.classList.toggle("disabled",i)}}function hle(o){return o&&typeof o=="object"&&typeof o.original=="string"&&typeof o.value=="string"}function ule(o){return o?o.condition!==void 0:!1}var km;(function(o){o[o.STORAGE_DOES_NOT_EXIST=0]="STORAGE_DOES_NOT_EXIST",o[o.STORAGE_IN_MEMORY=1]="STORAGE_IN_MEMORY"})(km||(km={}));var im;(function(o){o[o.None=0]="None",o[o.Initialized=1]="Initialized",o[o.Closed=2]="Closed"})(im||(im={}));class Im extends W{constructor(e,t=Object.create(null)){super(),this.database=e,this.options=t,this._onDidChangeStorage=this._register(new dg),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=im.None,this.cache=new Map,this.flushDelayer=this._register(new N9(Im.DEFAULT_FLUSH_DELAY)),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal(e=>this.onDidChangeItemsExternal(e)))}onDidChangeItemsExternal(e){var t,i;this._onDidChangeStorage.pause();try{(t=e.changed)===null||t===void 0||t.forEach((n,s)=>this.acceptExternal(s,n)),(i=e.deleted)===null||i===void 0||i.forEach(n=>this.acceptExternal(n,void 0))}finally{this._onDidChangeStorage.resume()}}acceptExternal(e,t){if(this.state===im.Closed)return;let i=!1;Do(t)?i=this.cache.delete(e):this.cache.get(e)!==t&&(this.cache.set(e,t),i=!0),i&&this._onDidChangeStorage.fire({key:e,external:!0})}get(e,t){const i=this.cache.get(e);return Do(i)?t:i}getBoolean(e,t){const i=this.get(e);return Do(i)?t:i==="true"}getNumber(e,t){const i=this.get(e);return Do(i)?t:parseInt(i,10)}async set(e,t,i=!1){if(this.state===im.Closed)return;if(Do(t))return this.delete(e,i);const n=_s(t)||Array.isArray(t)?Koe(t):String(t);if(this.cache.get(e)!==n)return this.cache.set(e,n),this.pendingInserts.set(e,n),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire({key:e,external:i}),this.doFlush()}async delete(e,t=!1){if(!(this.state===im.Closed||!this.cache.delete(e)))return this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire({key:e,external:t}),this.doFlush()}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}async flushPending(){if(!this.hasPending)return;const e={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally(()=>{var t;if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)(t=this.whenFlushedCallbacks.pop())===null||t===void 0||t()})}async doFlush(e){return this.options.hint===km.STORAGE_IN_MEMORY?this.flushPending():this.flushDelayer.trigger(()=>this.flushPending(),e)}}Im.DEFAULT_FLUSH_DELAY=100;class yk{constructor(){this.onDidChangeItemsExternal=ae.None,this.items=new Map}async updateItems(e){var t,i;(t=e.insert)===null||t===void 0||t.forEach((n,s)=>this.items.set(s,n)),(i=e.delete)===null||i===void 0||i.forEach(n=>this.items.delete(n))}}const fw="__$__targetStorageMarker",Kr=ot("storageService");var Eb;(function(o){o[o.NONE=0]="NONE",o[o.SHUTDOWN=1]="SHUTDOWN"})(Eb||(Eb={}));function gle(o){const e=o.get(fw);if(e)try{return JSON.parse(e)}catch{}return Object.create(null)}class VL extends W{constructor(e={flushInterval:VL.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new dg),this._onDidChangeTarget=this._register(new dg),this._onWillSaveState=this._register(new O),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}onDidChangeValue(e,t,i){return ae.filter(this._onDidChangeValue.event,n=>n.scope===e&&(t===void 0||n.key===t),i)}emitDidChangeValue(e,t){const{key:i,external:n}=t;if(i===fw){switch(e){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:e})}else this._onDidChangeValue.fire({scope:e,key:i,target:this.getKeyTargets(e)[i],external:n})}get(e,t,i){var n;return(n=this.getStorage(t))===null||n===void 0?void 0:n.get(e,i)}getBoolean(e,t,i){var n;return(n=this.getStorage(t))===null||n===void 0?void 0:n.getBoolean(e,i)}getNumber(e,t,i){var n;return(n=this.getStorage(t))===null||n===void 0?void 0:n.getNumber(e,i)}store(e,t,i,n,s=!1){if(Do(t)){this.remove(e,i,s);return}this.withPausedEmitters(()=>{var r;this.updateKeyTarget(e,i,n),(r=this.getStorage(i))===null||r===void 0||r.set(e,t,s)})}remove(e,t,i=!1){this.withPausedEmitters(()=>{var n;this.updateKeyTarget(e,t,void 0),(n=this.getStorage(t))===null||n===void 0||n.delete(e,i)})}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i,n=!1){var s,r;const a=this.getKeyTargets(t);typeof i=="number"?a[e]!==i&&(a[e]=i,(s=this.getStorage(t))===null||s===void 0||s.set(fw,JSON.stringify(a),n)):typeof a[e]=="number"&&(delete a[e],(r=this.getStorage(t))===null||r===void 0||r.set(fw,JSON.stringify(a),n))}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(e){switch(e){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(e){const t=this.getStorage(e);return t?gle(t):Object.create(null)}}VL.DEFAULT_FLUSH_INTERVAL=60*1e3;class fle extends VL{constructor(){super(),this.applicationStorage=this._register(new Im(new yk,{hint:km.STORAGE_IN_MEMORY})),this.profileStorage=this._register(new Im(new yk,{hint:km.STORAGE_IN_MEMORY})),this.workspaceStorage=this._register(new Im(new yk,{hint:km.STORAGE_IN_MEMORY})),this._register(this.workspaceStorage.onDidChangeStorage(e=>this.emitDidChangeValue(1,e))),this._register(this.profileStorage.onDidChangeStorage(e=>this.emitDidChangeValue(0,e))),this._register(this.applicationStorage.onDidChangeStorage(e=>this.emitDidChangeValue(-1,e)))}getStorage(e){switch(e){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}function mle(o,e){const t={...e};for(const i in o){const n=o[i];t[i]=n!==void 0?he(n):void 0}return t}const ple={keybindingLabelBackground:he(MX),keybindingLabelForeground:he(RX),keybindingLabelBorder:he(AX),keybindingLabelBottomBorder:he(PX),keybindingLabelShadow:he(Td)},_le={buttonForeground:he(O_),buttonSeparator:he(LX),buttonBackground:he(F_),buttonHoverBackground:he(xX),buttonSecondaryForeground:he(kX),buttonSecondaryBackground:he(QE),buttonSecondaryHoverBackground:he(IX),buttonBorder:he(DX)},vle={progressBarBackground:he(VQ)},AS={inputActiveOptionBorder:he(VA),inputActiveOptionForeground:he(zA),inputActiveOptionBackground:he(Hu)};he(EX),he(TX),he(NX);he(Ti),he(Dd),he(Td),he(at),he(rX),he(aX),he(lX),he(WQ);const PS={inputBackground:he(YE),inputForeground:he(qW),inputBorder:he(GW),inputValidationInfoBorder:he(pX),inputValidationInfoBackground:he(fX),inputValidationInfoForeground:he(mX),inputValidationWarningBorder:he(bX),inputValidationWarningBackground:he(_X),inputValidationWarningForeground:he(vX),inputValidationErrorBorder:he(SX),inputValidationErrorBackground:he(CX),inputValidationErrorForeground:he(wX)},ble={listFilterWidgetBackground:he(qX),listFilterWidgetOutline:he(GX),listFilterWidgetNoMatchesOutline:he(ZX),listFilterWidgetShadow:he(YX),inputBoxStyles:PS,toggleStyles:AS},q6={badgeBackground:he(sw),badgeForeground:he(HQ),badgeBorder:he(at)};he(sX),he(nX),he(XF),he(XF),he(oX);const Yg={listBackground:void 0,listInactiveFocusForeground:void 0,listFocusBackground:he(OX),listFocusForeground:he(FX),listFocusOutline:he(BX),listActiveSelectionBackground:he(Rd),listActiveSelectionForeground:he(wl),listActiveSelectionIconForeground:he(B_),listFocusAndSelectionOutline:he(WX),listFocusAndSelectionBackground:he(Rd),listFocusAndSelectionForeground:he(wl),listInactiveSelectionBackground:he(HX),listInactiveSelectionIconForeground:he(zX),listInactiveSelectionForeground:he(VX),listInactiveFocusBackground:he(UX),listInactiveFocusOutline:he($X),listHoverBackground:he(ZW),listHoverForeground:he(YW),listDropOverBackground:he(jX),listDropBetweenBackground:he(KX),listSelectionOutline:he(ti),listHoverOutline:he(ti),treeIndentGuidesStroke:he(W_),treeInactiveIndentGuidesStroke:he(QX),treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0,tableColumnsBorder:he(XX),tableOddRowsBackgroundColor:he(JX)};function Qg(o){return mle(o,Yg)}const Cle={selectBackground:he(Cl),selectListBackground:he(yX),selectForeground:he(Md),decoratorRightForeground:he(QW),selectBorder:he(qf),focusBorder:he(ir),listFocusBackground:he(qc),listInactiveSelectionIconForeground:he(Gf),listFocusForeground:he(Kc),listFocusOutline:PQ(ti,z.transparent.toString()),listHoverBackground:he(ZW),listHoverForeground:he(YW),listHoverOutline:he(ti),selectListBorder:he(kd),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},wle={shadowColor:he(Td),borderColor:he(eJ),foregroundColor:he(tJ),backgroundColor:he(iJ),selectionForegroundColor:he(nJ),selectionBackgroundColor:he(sJ),selectionBorderColor:he(oJ),separatorColor:he(rJ),scrollbarShadow:he(T_),scrollbarSliderBackground:he(M_),scrollbarSliderHoverBackground:he(R_),scrollbarSliderActiveBackground:he(A_)};var zL=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ws=function(o,e){return function(t,i){e(t,i,o)}};function Sle(o,e,t,i){const n=o.getActions(e),s=xd.getInstance(),r=s.keyStatus.altKey||(Fn||xs)&&s.keyStatus.shiftKey;G6(n,t,r,i?a=>a===i:a=>a==="navigation")}function UL(o,e,t,i,n,s){const r=o.getActions(e);G6(r,t,!1,typeof i=="string"?l=>l===i:i,n,s)}function G6(o,e,t,i=r=>r==="navigation",n=()=>!1,s=!1){let r,a;Array.isArray(e)?(r=e,a=e):(r=e.primary,a=e.secondary);const l=new Set;for(const[d,c]of o){let h;i(d)?(h=r,h.length>0&&s&&h.push(new ji)):(h=a,h.length>0&&h.push(new ji));for(let u of c){t&&(u=u instanceof so&&u.alt?u.alt:u);const g=h.push(u);u instanceof Wm&&l.add({group:d,action:u,index:g-1})}}for(const{group:d,action:c,index:h}of l){const u=i(d)?r:a,g=c.actions;n(c,d,u.length)&&u.splice(h,1,...g)}}let Eh=class extends rp{constructor(e,t,i,n,s,r,a,l){super(void 0,e,{icon:!!(e.class||e.item.icon),label:!e.class&&!e.item.icon,draggable:t==null?void 0:t.draggable,keybinding:t==null?void 0:t.keybinding,hoverDelegate:t==null?void 0:t.hoverDelegate}),this._keybindingService=i,this._notificationService=n,this._contextKeyService=s,this._themeService=r,this._contextMenuService=a,this._accessibilityService=l,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new ln),this._altKey=xd.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}async onClick(e){e.preventDefault(),e.stopPropagation();try{await this.actionRunner.run(this._commandAction,this._context)}catch(t){this._notificationService.error(t)}}render(e){if(super.render(e),e.classList.add("menu-entry"),this.options.icon&&this._updateItemClass(this._menuItemAction.item),this._menuItemAction.alt){let t=!1;const i=()=>{var n;const s=!!(!((n=this._menuItemAction.alt)===null||n===void 0)&&n.enabled)&&(!this._accessibilityService.isMotionReduced()||t)&&(this._altKey.keyStatus.altKey||this._altKey.keyStatus.shiftKey&&t);s!==this._wantsAltCommand&&(this._wantsAltCommand=s,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._register(this._altKey.event(i)),this._register(U(e,"mouseleave",n=>{t=!1,i()})),this._register(U(e,"mouseenter",n=>{t=!0,i()})),i()}}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){var e;const t=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),i=t&&t.getLabel(),n=this._commandAction.tooltip||this._commandAction.label;let s=i?m("titleAndKb","{0} ({1})",n,i):n;if(!this._wantsAltCommand&&(!((e=this._menuItemAction.alt)===null||e===void 0)&&e.enabled)){const r=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,a=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),l=a&&a.getLabel(),d=l?m("titleAndKb","{0} ({1})",r,l):r;s=m("titleAndKbAndAlt",`{0} +[{1}] {2}`,s,A2.modifierLabels[to].altKey,d)}return s}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){this._itemClassDispose.value=void 0;const{element:t,label:i}=this;if(!t||!i)return;const n=this._commandAction.checked&&ule(e.toggled)&&e.toggled.icon?e.toggled.icon:e.icon;if(n)if(Te.isThemeIcon(n)){const s=Te.asClassNameArray(n);i.classList.add(...s),this._itemClassDispose.value=Ce(()=>{i.classList.remove(...s)})}else i.style.backgroundImage=Gm(this._themeService.getColorTheme().type)?ec(n.dark):ec(n.light),i.classList.add("icon"),this._itemClassDispose.value=Wr(Ce(()=>{i.style.backgroundImage="",i.classList.remove("icon")}),this._themeService.onDidColorThemeChange(()=>{this.updateClass()}))}};Eh=zL([Ws(2,St),Ws(3,Ri),Ws(4,Me),Ws(5,Ji),Ws(6,go),Ws(7,ho)],Eh);let QN=class extends RS{constructor(e,t,i,n,s){var r,a,l;const d={...t,menuAsChild:(r=t==null?void 0:t.menuAsChild)!==null&&r!==void 0?r:!1,classNames:(a=t==null?void 0:t.classNames)!==null&&a!==void 0?a:Te.isThemeIcon(e.item.icon)?Te.asClassName(e.item.icon):void 0,keybindingProvider:(l=t==null?void 0:t.keybindingProvider)!==null&&l!==void 0?l:c=>i.lookupKeybinding(c.id)};super(e,{getActions:()=>e.actions},n,d),this._keybindingService=i,this._contextMenuService=n,this._themeService=s}render(e){super.render(e),pt(this.element),e.classList.add("menu-entry");const t=this._action,{icon:i}=t.item;if(i&&!Te.isThemeIcon(i)){this.element.classList.add("icon");const n=()=>{this.element&&(this.element.style.backgroundImage=Gm(this._themeService.getColorTheme().type)?ec(i.dark):ec(i.light))};n(),this._register(this._themeService.onDidColorThemeChange(()=>{n()}))}}};QN=zL([Ws(2,St),Ws(3,go),Ws(4,Ji)],QN);let XN=class extends la{constructor(e,t,i,n,s,r,a,l){var d,c,h;super(null,e),this._keybindingService=i,this._notificationService=n,this._contextMenuService=s,this._menuService=r,this._instaService=a,this._storageService=l,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;let u;const g=t!=null&&t.persistLastActionId?l.get(this._storageKey,1):void 0;g&&(u=e.actions.find(p=>g===p.id)),u||(u=e.actions[0]),this._defaultAction=this._instaService.createInstance(Eh,u,{keybinding:this._getDefaultActionKeybindingLabel(u)});const f={keybindingProvider:p=>this._keybindingService.lookupKeybinding(p.id),...t,menuAsChild:(d=t==null?void 0:t.menuAsChild)!==null&&d!==void 0?d:!0,classNames:(c=t==null?void 0:t.classNames)!==null&&c!==void 0?c:["codicon","codicon-chevron-down"],actionRunner:(h=t==null?void 0:t.actionRunner)!==null&&h!==void 0?h:new mg};this._dropdown=new RS(e,e.actions,this._contextMenuService,f),this._register(this._dropdown.actionRunner.onDidRun(p=>{p.action instanceof so&&this.update(p.action)}))}update(e){var t;!((t=this._options)===null||t===void 0)&&t.persistLastActionId&&this._storageService.store(this._storageKey,e.id,1,1),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(Eh,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends mg{async runAction(i,n){await i.run(void 0)}},this._container&&this._defaultAction.render(vA(this._container,te(".action-container")))}_getDefaultActionKeybindingLabel(e){var t;let i;if(!((t=this._options)===null||t===void 0)&&t.renderKeybindingWithDefaultActionLabel){const n=this._keybindingService.lookupKeybinding(e.id);n&&(i=`(${n.getLabel()})`)}return i}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const t=te(".action-container");this._defaultAction.render(Q(this._container,t)),this._register(U(t,ee.KEY_DOWN,n=>{const s=new Ht(n);s.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),s.stopPropagation())}));const i=te(".dropdown-action-container");this._dropdown.render(Q(this._container,i)),this._register(U(i,ee.KEY_DOWN,n=>{var s;const r=new Ht(n);r.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),(s=this._defaultAction.element)===null||s===void 0||s.focus(),r.stopPropagation())}))}focus(e){e?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(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};XN=zL([Ws(2,St),Ws(3,Ri),Ws(4,go),Ws(5,zo),Ws(6,Le),Ws(7,Kr)],XN);let JN=class extends lle{constructor(e,t){super(null,e,e.actions.map(i=>({text:i.id===ji.ID?"─────────":i.label,isDisabled:!i.enabled})),0,t,Cle,{ariaLabel:e.tooltip,optionsAsChildren:!0}),this.select(Math.max(0,e.actions.findIndex(i=>i.checked)))}render(e){super.render(e),e.style.borderColor=he(qf)}runAction(e,t){const i=this.action.actions[t];i&&this.actionRunner.run(i)}};JN=zL([Ws(1,dc)],JN);function Z6(o,e,t){return e instanceof so?o.createInstance(Eh,e,t):e instanceof hm?e.item.isSelection?o.createInstance(JN,e):e.item.rememberDefaultAction?o.createInstance(XN,e,{...t,persistLastActionId:!0}):o.createInstance(QN,e,t):void 0}class ur extends W{constructor(e,t={}){var i,n,s,r,a,l,d;super(),this._actionRunnerDisposables=this._register(new G),this.viewItemDisposables=this._register(new XR),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new O),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new O({onWillAddFirstListener:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new O),this.onDidRun=this._onDidRun.event,this._onWillRun=this._register(new O),this.onWillRun=this._onWillRun.event,this.options=t,this._context=(i=t.context)!==null&&i!==void 0?i:null,this._orientation=(n=this.options.orientation)!==null&&n!==void 0?n:0,this._triggerKeys={keyDown:(r=(s=this.options.triggerKeys)===null||s===void 0?void 0:s.keyDown)!==null&&r!==void 0?r:!1,keys:(l=(a=this.options.triggerKeys)===null||a===void 0?void 0:a.keys)!==null&&l!==void 0?l:[3,10]},this._hoverDelegate=(d=t.hoverDelegate)!==null&&d!==void 0?d:this._register(op()),this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new mg,this._actionRunnerDisposables.add(this._actionRunner)),this._actionRunnerDisposables.add(this._actionRunner.onDidRun(u=>this._onDidRun.fire(u))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun(u=>this._onWillRun.fire(u))),this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar";let c,h;switch(this._orientation){case 0:c=[15],h=[17];break;case 1:c=[16],h=[18],this.domNode.className+=" vertical";break}this._register(U(this.domNode,ee.KEY_DOWN,u=>{const g=new Ht(u);let f=!0;const p=typeof this.focusedItem=="number"?this.viewItems[this.focusedItem]:void 0;c&&(g.equals(c[0])||g.equals(c[1]))?f=this.focusPrevious():h&&(g.equals(h[0])||g.equals(h[1]))?f=this.focusNext():g.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():g.equals(14)?f=this.focusFirst():g.equals(13)?f=this.focusLast():g.equals(2)&&p instanceof la&&p.trapsArrowNavigation?f=this.focusNext():this.isTriggerKeyEvent(g)?this._triggerKeys.keyDown?this.doTrigger(g):this.triggerKeyDown=!0:f=!1,f&&(g.preventDefault(),g.stopPropagation())})),this._register(U(this.domNode,ee.KEY_UP,u=>{const g=new Ht(u);this.isTriggerKeyEvent(g)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(g)),g.preventDefault(),g.stopPropagation()):(g.equals(2)||g.equals(1026)||g.equals(16)||g.equals(18)||g.equals(15)||g.equals(17))&&this.updateFocusedItem()})),this.focusTracker=this._register(Ea(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{(Pn()===this.domNode||!on(Pn(),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),e.appendChild(this.domNode)}refreshRole(){this.length()>=1?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){const t=this.viewItems.find(i=>i instanceof la&&i.isEnabled());t instanceof la&&t.setFocusable(!0)}else this.viewItems.forEach(t=>{t instanceof la&&t.setFocusable(!1)})}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach(i=>{t=t||e.equals(i)}),t}updateFocusedItem(){var e,t;for(let i=0;it.setActionContext(e))}get actionRunner(){return this._actionRunner}set actionRunner(e){this._actionRunner=e,this._actionRunnerDisposables.clear(),this._actionRunnerDisposables.add(this._actionRunner.onDidRun(t=>this._onDidRun.fire(t))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun(t=>this._onWillRun.fire(t))),this.viewItems.forEach(t=>t.actionRunner=e)}getContainer(){return this.domNode}getAction(e){var t;if(typeof e=="number")return(t=this.viewItems[e])===null||t===void 0?void 0:t.action;if(_n(e)){for(;e.parentElement!==this.actionsList;){if(!e.parentElement)return;e=e.parentElement}for(let i=0;i{const r=document.createElement("li");r.className="action-item",r.setAttribute("role","presentation");let a;const l={hoverDelegate:this._hoverDelegate,...t};this.options.actionViewItemProvider&&(a=this.options.actionViewItemProvider(s,l)),a||(a=new rp(this.context,s,l)),this.options.allowContextMenu||this.viewItemDisposables.set(a,U(r,ee.CONTEXT_MENU,d=>{lt.stop(d,!0)})),a.actionRunner=this._actionRunner,a.setActionContext(this.context),a.render(r),this.focusable&&a instanceof la&&this.viewItems.length===0&&a.setFocusable(!0),n===null||n<0||n>=this.actionsList.children.length?(this.actionsList.appendChild(r),this.viewItems.push(a)):(this.actionsList.insertBefore(r,this.actionsList.children[n]),this.viewItems.splice(n,0,a),n++)}),typeof this.focusedItem=="number"&&this.focus(this.focusedItem),this.refreshRole()}clear(){this.isEmpty()||(this.viewItems=Pt(this.viewItems),this.viewItemDisposables.clearAndDisposeAll(),xn(this.actionsList),this.refreshRole())}length(){return this.viewItems.length}isEmpty(){return this.viewItems.length===0}focus(e){let t=!1,i;if(e===void 0?t=!0:typeof e=="number"?i=e:typeof e=="boolean"&&(t=e),t&&typeof this.focusedItem>"u"){const n=this.viewItems.findIndex(s=>s.isEnabled());this.focusedItem=n===-1?void 0:n,this.updateFocus(void 0,void 0,!0)}else i!==void 0&&(this.focusedItem=i),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(e){if(typeof this.focusedItem>"u")this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=t,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===ji.ID));return this.updateFocus(),!0}focusPrevious(e){if(typeof this.focusedItem>"u")this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=t,!1;this.focusedItem=this.viewItems.length-1}i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===ji.ID));return this.updateFocus(!0),!0}updateFocus(e,t,i=!1){var n,s;typeof this.focusedItem>"u"&&this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem!==void 0&&this.previouslyFocusedItem!==this.focusedItem&&((n=this.viewItems[this.previouslyFocusedItem])===null||n===void 0||n.blur());const r=this.focusedItem!==void 0?this.viewItems[this.focusedItem]:void 0;if(r){let a=!0;Bv(r.focus)||(a=!1),this.options.focusOnlyEnabledItems&&Bv(r.isEnabled)&&!r.isEnabled()&&(a=!1),r.action.id===ji.ID&&(a=!1),a?(i||this.previouslyFocusedItem!==this.focusedItem)&&(r.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0),a&&((s=r.showHover)===null||s===void 0||s.call(r))}}doTrigger(e){if(typeof this.focusedItem>"u")return;const t=this.viewItems[this.focusedItem];if(t instanceof la){const i=t._context===null||t._context===void 0?e:t._context;this.run(t._action,i)}}async run(e,t){await this._actionRunner.run(e,t)}dispose(){this._context=void 0,this.viewItems=Pt(this.viewItems),this.getContainer().remove(),super.dispose()}}const eT=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,Lk=/(&)?(&)([^\s&])/g;var OS;(function(o){o[o.Right=0]="Right",o[o.Left=1]="Left"})(OS||(OS={}));var tT;(function(o){o[o.Above=0]="Above",o[o.Below=1]="Below"})(tT||(tT={}));class Em extends ur{constructor(e,t,i,n){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");const s=document.createElement("div");s.classList.add("monaco-menu"),s.setAttribute("role","presentation"),super(s,{orientation:1,actionViewItemProvider:d=>this.doGetActionViewItem(d,i,r),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...it||xs?[10]:[]],keyDown:!0}}),this.menuStyles=n,this.menuElement=s,this.actionsList.tabIndex=0,this.initializeOrUpdateStyleSheet(e,n),this._register(zt.addTarget(s)),this._register(U(s,ee.KEY_DOWN,d=>{new Ht(d).equals(2)&&d.preventDefault()})),i.enableMnemonics&&this._register(U(s,ee.KEY_DOWN,d=>{const c=d.key.toLocaleLowerCase();if(this.mnemonics.has(c)){lt.stop(d,!0);const h=this.mnemonics.get(c);if(h.length===1&&(h[0]instanceof Z5&&h[0].container&&this.focusItemByElement(h[0].container),h[0].onClick(d)),h.length>1){const u=h.shift();u&&u.container&&(this.focusItemByElement(u.container),h.push(u)),this.mnemonics.set(c,h)}}})),xs&&this._register(U(s,ee.KEY_DOWN,d=>{const c=new Ht(d);c.equals(14)||c.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),lt.stop(d,!0)):(c.equals(13)||c.equals(12))&&(this.focusedItem=0,this.focusPrevious(),lt.stop(d,!0))})),this._register(U(this.domNode,ee.MOUSE_OUT,d=>{const c=d.relatedTarget;on(c,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),d.stopPropagation())})),this._register(U(this.actionsList,ee.MOUSE_OVER,d=>{let c=d.target;if(!(!c||!on(c,this.actionsList)||c===this.actionsList)){for(;c.parentElement!==this.actionsList&&c.parentElement!==null;)c=c.parentElement;if(c.classList.contains("action-item")){const h=this.focusedItem;this.setFocusedItem(c),h!==this.focusedItem&&this.updateFocus()}}})),this._register(zt.addTarget(this.actionsList)),this._register(U(this.actionsList,Ut.Tap,d=>{let c=d.initialTarget;if(!(!c||!on(c,this.actionsList)||c===this.actionsList)){for(;c.parentElement!==this.actionsList&&c.parentElement!==null;)c=c.parentElement;if(c.classList.contains("action-item")){const h=this.focusedItem;this.setFocusedItem(c),h!==this.focusedItem&&this.updateFocus()}}}));const r={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new O0(s,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const a=this.scrollableElement.getDomNode();a.style.position="",this.styleScrollElement(a,n),this._register(U(s,Ut.Change,d=>{lt.stop(d,!0);const c=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:c-d.translationY})})),this._register(U(a,ee.MOUSE_UP,d=>{d.preventDefault()}));const l=De(e);s.style.maxHeight=`${Math.max(10,l.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter((d,c)=>{var h;return!((h=i.submenuIds)===null||h===void 0)&&h.has(d.id)?(console.warn(`Found submenu cycle: ${d.id}`),!1):!(d instanceof ji&&(c===t.length-1||c===0||t[c-1]instanceof ji))}),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(d=>!(d instanceof Y5)).forEach((d,c,h)=>{d.updatePositionInSet(c+1,h.length)})}initializeOrUpdateStyleSheet(e,t){this.styleSheet||(Gw(e)?this.styleSheet=Fo(e):(Em.globalStyleSheet||(Em.globalStyleSheet=Fo()),this.styleSheet=Em.globalStyleSheet)),this.styleSheet.textContent=Lle(t,Gw(e))}styleScrollElement(e,t){var i,n;const s=(i=t.foregroundColor)!==null&&i!==void 0?i:"",r=(n=t.backgroundColor)!==null&&n!==void 0?n:"",a=t.borderColor?`1px solid ${t.borderColor}`:"",l="5px",d=t.shadowColor?`0 2px 8px ${t.shadowColor}`:"";e.style.outline=a,e.style.borderRadius=l,e.style.color=s,e.style.backgroundColor=r,e.style.boxShadow=d}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){const t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t{this.element&&(this._register(U(this.element,ee.MOUSE_UP,s=>{if(lt.stop(s,!0),lr){if(new Rr(De(this.element),s).rightButton)return;this.onClick(s)}else setTimeout(()=>{this.onClick(s)},0)})),this._register(U(this.element,ee.CONTEXT_MENU,s=>{lt.stop(s,!0)})))},100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=Q(this.element,te("a.action-menu-item")),this._action.id===ji.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=Q(this.item,te("span.menu-item-check"+Te.asCSSSelector(oe.menuSelection))),this.check.setAttribute("role","none"),this.label=Q(this.item,te("span.action-label")),this.options.label&&this.options.keybinding&&(Q(this.item,te("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 e;super.focus(),(e=this.item)===null||e===void 0||e.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${t}`))}updateLabel(){var e;if(this.label&&this.options.label){xn(this.label);let t=N2(this.action.label);if(t){const i=yle(t);this.options.enableMnemonics||(t=i),this.label.setAttribute("aria-label",i.replace(/&&/g,"&"));const n=eT.exec(t);if(n){t=iv(t),Lk.lastIndex=0;let s=Lk.exec(t);for(;s&&s[1];)s=Lk.exec(t);const r=a=>a.replace(/&&/g,"&");s?this.label.append(S0(r(t.substr(0,s.index))," "),te("u",{"aria-hidden":"true"},s[3]),C9(r(t.substr(s.index+s[0].length))," ")):this.label.innerText=r(t).trim(),(e=this.item)===null||e===void 0||e.setAttribute("aria-keyshortcuts",(n[1]?n[1]:n[3]).toLocaleLowerCase())}else this.label.innerText=t.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;const e=this.action.checked;this.item.classList.toggle("checked",!!e),e!==void 0?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",e?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,i=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,n=e&&this.menuStyle.selectionBorderColor?`1px solid ${this.menuStyle.selectionBorderColor}`:"",s=e&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=t??"",this.item.style.backgroundColor=i??"",this.item.style.outline=n,this.item.style.outlineOffset=s),this.check&&(this.check.style.color=t??"")}}class Z5 extends Y6{constructor(e,t,i,n,s){super(e,e,n,s),this.submenuActions=t,this.parentData=i,this.submenuOptions=n,this.mysubmenu=null,this.submenuDisposables=this._register(new G),this.mouseOver=!1,this.expandDirection=n&&n.expandDirection!==void 0?n.expandDirection:{horizontal:OS.Right,vertical:tT.Below},this.showScheduler=new At(()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))},250),this.hideScheduler=new At(()=>{this.element&&!on(Pn(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))},750)}render(e){super.render(e),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=Q(this.item,te("span.submenu-indicator"+Te.asCSSSelector(oe.menuSubmenu))),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(U(this.element,ee.KEY_UP,t=>{const i=new Ht(t);(i.equals(17)||i.equals(3))&&(lt.stop(t,!0),this.createSubmenu(!0))})),this._register(U(this.element,ee.KEY_DOWN,t=>{const i=new Ht(t);Pn()===this.item&&(i.equals(17)||i.equals(3))&<.stop(t,!0)})),this._register(U(this.element,ee.MOUSE_OVER,t=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())})),this._register(U(this.element,ee.MOUSE_LEAVE,t=>{this.mouseOver=!1})),this._register(U(this.element,ee.FOCUS_OUT,t=>{this.element&&!on(Pn(),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(e){lt.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||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(e,t,i,n){const s={top:0,left:0};return s.left=Jf(e.width,t.width,{position:n.horizontal===OS.Right?0:1,offset:i.left,size:i.width}),s.left>=i.left&&s.left{new Ht(c).equals(15)&&(lt.stop(c,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(U(this.submenuContainer,ee.KEY_DOWN,c=>{new Ht(c).equals(15)&<.stop(c,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){var t;this.item&&((t=this.item)===null||t===void 0||t.setAttribute("aria-expanded",e))}applyStyle(){super.applyStyle();const t=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=t??"")}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class Y5 extends rp{constructor(e,t,i,n){super(e,t,i),this.menuStyles=n}render(e){super.render(e),this.label&&(this.label.style.borderBottomColor=this.menuStyles.separatorColor?`${this.menuStyles.separatorColor}`:"")}}function yle(o){const e=eT,t=e.exec(o);if(!t)return o;const i=!t[1];return o.replace(e,i?"$2$3":"").trim()}function Q5(o){const e=m9()[o.id];return`.codicon-${o.id}:before { content: '\\${e.toString(16)}'; }`}function Lle(o,e){let t=` +.monaco-menu { + font-size: 13px; + border-radius: 5px; + min-width: 160px; +} + +${Q5(oe.menuSelection)} +${Q5(oe.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(e){t+=` + /* 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; + } + `;const i=o.scrollbarShadow;i&&(t+=` + .monaco-scrollable-element > .shadow.top { + box-shadow: ${i} 0 6px 6px -6px inset; + } + + .monaco-scrollable-element > .shadow.left { + box-shadow: ${i} 6px 0 6px -6px inset; + } + + .monaco-scrollable-element > .shadow.top.left { + box-shadow: ${i} 6px 6px 6px -6px inset; + } + `);const n=o.scrollbarSliderBackground;n&&(t+=` + .monaco-scrollable-element > .scrollbar > .slider { + background: ${n}; + } + `);const s=o.scrollbarSliderHoverBackground;s&&(t+=` + .monaco-scrollable-element > .scrollbar > .slider:hover { + background: ${s}; + } + `);const r=o.scrollbarSliderActiveBackground;r&&(t+=` + .monaco-scrollable-element > .scrollbar > .slider.active { + background: ${r}; + } + `)}return t}class xle{constructor(e,t,i,n){this.contextViewService=e,this.telemetryService=t,this.notificationService=i,this.keybindingService=n,this.focusToReturn=null,this.lastContainer=null,this.block=null,this.blockDisposable=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;this.focusToReturn=Pn();let i;const n=_n(e.domForShadowRoot)?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:s=>{var r;this.lastContainer=s;const a=e.getMenuClassName?e.getMenuClassName():"";a&&(s.className+=" "+a),this.options.blockMouse&&(this.block=s.appendChild(te(".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",(r=this.blockDisposable)===null||r===void 0||r.dispose(),this.blockDisposable=U(this.block,ee.MOUSE_DOWN,h=>h.stopPropagation()));const l=new G,d=e.actionRunner||new mg;d.onWillRun(h=>this.onActionRun(h,!e.skipTelemetry),this,l),d.onDidRun(this.onDidActionRun,this,l),i=new Em(s,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:d,getKeyBinding:e.getKeyBinding?e.getKeyBinding:h=>this.keybindingService.lookupKeybinding(h.id)},wle),i.onDidCancel(()=>this.contextViewService.hideContextView(!0),null,l),i.onDidBlur(()=>this.contextViewService.hideContextView(!0),null,l);const c=De(s);return l.add(U(c,ee.BLUR,()=>this.contextViewService.hideContextView(!0))),l.add(U(c,ee.MOUSE_DOWN,h=>{if(h.defaultPrevented)return;const u=new Rr(c,h);let g=u.target;if(!u.rightButton){for(;g;){if(g===s)return;g=g.parentElement}this.contextViewService.hideContextView(!0)}})),Wr(l,i)},focus:()=>{i==null||i.focus(!!e.autoSelectFirstItem)},onHide:s=>{var r,a,l;(r=e.onHide)===null||r===void 0||r.call(e,!!s),this.block&&(this.block.remove(),this.block=null),(a=this.blockDisposable)===null||a===void 0||a.dispose(),this.blockDisposable=null,this.lastContainer&&(Pn()===this.lastContainer||on(Pn(),this.lastContainer))&&((l=this.focusToReturn)===null||l===void 0||l.focus()),this.lastContainer=null}},n,!!n)}onActionRun(e,t){t&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1)}onDidActionRun(e){e.error&&!Ur(e.error)&&this.notificationService.error(e.error)}}var Dle=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},_f=function(o,e){return function(t,i){e(t,i,o)}};let iT=class extends W{get contextMenuHandler(){return this._contextMenuHandler||(this._contextMenuHandler=new xle(this.contextViewService,this.telemetryService,this.notificationService,this.keybindingService)),this._contextMenuHandler}constructor(e,t,i,n,s,r){super(),this.telemetryService=e,this.notificationService=t,this.contextViewService=i,this.keybindingService=n,this.menuService=s,this.contextKeyService=r,this._contextMenuHandler=void 0,this._onDidShowContextMenu=this._store.add(new O),this.onDidShowContextMenu=this._onDidShowContextMenu.event,this._onDidHideContextMenu=this._store.add(new O)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){e=nT.transform(e,this.menuService,this.contextKeyService),this.contextMenuHandler.showContextMenu({...e,onHide:t=>{var i;(i=e.onHide)===null||i===void 0||i.call(e,t),this._onDidHideContextMenu.fire()}}),xd.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};iT=Dle([_f(0,Bn),_f(1,Ri),_f(2,dc),_f(3,St),_f(4,zo),_f(5,Me)],iT);var nT;(function(o){function e(i){return i&&i.menuId instanceof k}function t(i,n,s){if(!e(i))return i;const{menuId:r,menuActionOptions:a,contextKeyService:l}=i;return{...i,getActions:()=>{const d=[];if(r){const c=n.createMenu(r,l??s);Sle(c,a,d),c.dispose()}return i.getActions?ji.join(i.getActions(),d):d}}}o.transform=t})(nT||(nT={}));var FS;(function(o){o[o.API=0]="API",o[o.USER=1]="USER"})(FS||(FS={}));var F2=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},BS=function(o,e){return function(t,i){e(t,i,o)}};let sT=class{constructor(e){this._commandService=e}async open(e,t){if(!gA(e,Oe.command))return!1;if(!(t!=null&&t.allowCommands)||(typeof e=="string"&&(e=ke.parse(e)),Array.isArray(t.allowCommands)&&!t.allowCommands.includes(e.path)))return!0;let i=[];try{i=AN(decodeURIComponent(e.query))}catch{try{i=AN(e.query)}catch{}}return Array.isArray(i)||(i=[i]),await this._commandService.executeCommand(e.path,...i),!0}};sT=F2([BS(0,Qt)],sT);let oT=class{constructor(e){this._editorService=e}async open(e,t){typeof e=="string"&&(e=ke.parse(e));const{selection:i,uri:n}=coe(e);return e=n,e.scheme===Oe.file&&(e=Rie(e)),await this._editorService.openCodeEditor({resource:e,options:{selection:i,source:t!=null&&t.fromUserGesture?FS.USER:FS.API,...t==null?void 0:t.editorOptions}},this._editorService.getFocusedCodeEditor(),t==null?void 0:t.openToSide),!0}};oT=F2([BS(0,_t)],oT);let rT=class{constructor(e,t){this._openers=new vs,this._validators=new vs,this._resolvers=new vs,this._resolvedUriTargets=new Ni(i=>i.with({path:null,fragment:null,query:null}).toString()),this._externalOpeners=new vs,this._defaultExternalOpener={openExternal:async i=>(DE(i,Oe.http,Oe.https)?X9(i):Mt.location.href=i,!0)},this._openers.push({open:async(i,n)=>n!=null&&n.openExternal||DE(i,Oe.mailto,Oe.http,Oe.https,Oe.vsls)?(await this._doOpenExternal(i,n),!0):!1}),this._openers.push(new sT(t)),this._openers.push(new oT(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}async open(e,t){var i;const n=typeof e=="string"?ke.parse(e):e,s=(i=this._resolvedUriTargets.get(n))!==null&&i!==void 0?i:e;for(const r of this._validators)if(!await r.shouldOpen(s,t))return!1;for(const r of this._openers)if(await r.open(e,t))return!0;return!1}async resolveExternalUri(e,t){for(const i of this._resolvers)try{const n=await i.resolveExternalUri(e,t);if(n)return this._resolvedUriTargets.has(n.resolved)||this._resolvedUriTargets.set(n.resolved,e),n}catch{}throw new Error("Could not resolve external URI: "+e.toString())}async _doOpenExternal(e,t){const i=typeof e=="string"?ke.parse(e):e;let n;try{n=(await this.resolveExternalUri(i,t)).resolved}catch{n=i}let s;if(typeof e=="string"&&i.toString()===n.toString()?s=e:s=encodeURI(n.toString(!0)),t!=null&&t.allowContributedOpeners){const r=typeof(t==null?void 0:t.allowContributedOpeners)=="string"?t==null?void 0:t.allowContributedOpeners:void 0;for(const a of this._externalOpeners)if(await a.openExternal(s,{sourceUri:i,preferredOpenerId:r},st.None))return!0}return this._defaultExternalOpener.openExternal(s,{sourceUri:i},st.None)}dispose(){this._validators.clear()}};rT=F2([BS(0,_t),BS(1,Qt)],rT);const pr=ot("editorWorkerService");var pi;(function(o){o[o.Hint=1]="Hint",o[o.Info=2]="Info",o[o.Warning=4]="Warning",o[o.Error=8]="Error"})(pi||(pi={}));(function(o){function e(r,a){return a-r}o.compare=e;const t=Object.create(null);t[o.Error]=m("sev.error","Error"),t[o.Warning]=m("sev.warning","Warning"),t[o.Info]=m("sev.info","Info");function i(r){return t[r]||""}o.toString=i;function n(r){switch(r){case Ei.Error:return o.Error;case Ei.Warning:return o.Warning;case Ei.Info:return o.Info;case Ei.Ignore:return o.Hint}}o.fromSeverity=n;function s(r){switch(r){case o.Error:return Ei.Error;case o.Warning:return Ei.Warning;case o.Info:return Ei.Info;case o.Hint:return Ei.Ignore}}o.toSeverity=s})(pi||(pi={}));var WS;(function(o){const e="";function t(n){return i(n,!0)}o.makeKey=t;function i(n,s){const r=[e];return n.source?r.push(n.source.replace("¦","\\¦")):r.push(e),n.code?typeof n.code=="string"?r.push(n.code.replace("¦","\\¦")):r.push(n.code.value.replace("¦","\\¦")):r.push(e),n.severity!==void 0&&n.severity!==null?r.push(pi.toString(n.severity)):r.push(e),n.message&&s?r.push(n.message.replace("¦","\\¦")):r.push(e),n.startLineNumber!==void 0&&n.startLineNumber!==null?r.push(n.startLineNumber.toString()):r.push(e),n.startColumn!==void 0&&n.startColumn!==null?r.push(n.startColumn.toString()):r.push(e),n.endLineNumber!==void 0&&n.endLineNumber!==null?r.push(n.endLineNumber.toString()):r.push(e),n.endColumn!==void 0&&n.endColumn!==null?r.push(n.endColumn.toString()):r.push(e),r.push(e),r.join("¦")}o.makeKeyOptionalMessage=i})(WS||(WS={}));const Zl=ot("markerService");function kle(o,e){const t=[],i=[];for(const n of o)e.has(n)||t.push(n);for(const n of e)o.has(n)||i.push(n);return{removed:t,added:i}}function Ile(o,e){const t=new Set;for(const i of e)o.has(i)&&t.add(i);return t}var Ele=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},X5=function(o,e){return function(t,i){e(t,i,o)}};let aT=class extends W{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new O),this._markerDecorations=new Ni,e.getModels().forEach(i=>this._onModelAdded(i)),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach(e=>e.dispose()),this._markerDecorations.clear()}getMarker(e,t){const i=this._markerDecorations.get(e);return i&&i.getMarker(t)||null}_handleMarkerChange(e){e.forEach(t=>{const i=this._markerDecorations.get(t);i&&this._updateDecorations(i)})}_onModelAdded(e){const t=new Nle(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){var t;const i=this._markerDecorations.get(e.uri);i&&(i.dispose(),this._markerDecorations.delete(e.uri)),(e.uri.scheme===Oe.inMemory||e.uri.scheme===Oe.internal||e.uri.scheme===Oe.vscode)&&((t=this._markerService)===null||t===void 0||t.read({resource:e.uri}).map(n=>n.owner).forEach(n=>this._markerService.remove(n,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};aT=Ele([X5(0,ai),X5(1,Zl)],aT);class Nle extends W{constructor(e){super(),this.model=e,this._map=new ZZ,this._register(Ce(()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()}))}update(e){const{added:t,removed:i}=kle(new Set(this._map.keys()),new Set(e));if(t.length===0&&i.length===0)return!1;const n=i.map(a=>this._map.get(a)),s=t.map(a=>({range:this._createDecorationRange(this.model,a),options:this._createDecorationOption(a)})),r=this.model.deltaDecorations(n,s);for(const a of i)this._map.delete(a);for(let a=0;a=n)return i;const s=e.getWordAtPosition(i.getStartPosition());s&&(i=new x(i.startLineNumber,s.startColumn,i.endLineNumber,s.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&t.startColumn===1&&i.startLineNumber===i.endLineNumber){const n=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);n=0:!1}}var Tle=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},f_=function(o,e){return function(t,i){e(t,i,o)}},Ef;function mu(o){return o.toString()}class Mle{constructor(e,t,i){this.model=e,this._modelEventListeners=new G,this.model=e,this._modelEventListeners.add(e.onWillDispose(()=>t(e))),this._modelEventListeners.add(e.onDidChangeLanguage(n=>i(e,n)))}dispose(){this._modelEventListeners.dispose()}}const Rle=xs||it?1:2;class Ale{constructor(e,t,i,n,s,r,a,l){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=n,this.heapSize=s,this.sha1=r,this.versionId=a,this.alternativeVersionId=l}}let HS=Ef=class extends W{constructor(e,t,i,n,s){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=i,this._languageService=n,this._languageConfigurationService=s,this._onModelAdded=this._register(new O),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new O),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new O),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration(r=>this._updateModelOptions(r))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){var i;let n=zn.tabSize;if(e.editor&&typeof e.editor.tabSize<"u"){const g=parseInt(e.editor.tabSize,10);isNaN(g)||(n=g),n<1&&(n=1)}let s="tabSize";if(e.editor&&typeof e.editor.indentSize<"u"&&e.editor.indentSize!=="tabSize"){const g=parseInt(e.editor.indentSize,10);isNaN(g)||(s=Math.max(g,1))}let r=zn.insertSpaces;e.editor&&typeof e.editor.insertSpaces<"u"&&(r=e.editor.insertSpaces==="false"?!1:!!e.editor.insertSpaces);let a=Rle;const l=e.eol;l===`\r +`?a=2:l===` +`&&(a=1);let d=zn.trimAutoWhitespace;e.editor&&typeof e.editor.trimAutoWhitespace<"u"&&(d=e.editor.trimAutoWhitespace==="false"?!1:!!e.editor.trimAutoWhitespace);let c=zn.detectIndentation;e.editor&&typeof e.editor.detectIndentation<"u"&&(c=e.editor.detectIndentation==="false"?!1:!!e.editor.detectIndentation);let h=zn.largeFileOptimizations;e.editor&&typeof e.editor.largeFileOptimizations<"u"&&(h=e.editor.largeFileOptimizations==="false"?!1:!!e.editor.largeFileOptimizations);let u=zn.bracketPairColorizationOptions;return!((i=e.editor)===null||i===void 0)&&i.bracketPairColorization&&typeof e.editor.bracketPairColorization=="object"&&(u={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:s,insertSpaces:r,detectIndentation:c,defaultEOL:a,trimAutoWhitespace:d,largeFileOptimizations:h,bracketPairColorizationOptions:u}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const i=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return i&&typeof i=="string"&&i!=="auto"?i:to===3||to===2?` +`:`\r +`}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return typeof e=="boolean"?e:!0}getCreationOptions(e,t,i){const n=typeof e=="string"?e:e.languageId;let s=this._modelCreationOptionsByLanguageAndResource[n+t];if(!s){const r=this._configurationService.getValue("editor",{overrideIdentifier:n,resource:t}),a=this._getEOL(t,n);s=Ef._readModelOptions({editor:r,eol:a},i),this._modelCreationOptionsByLanguageAndResource[n+t]=s}return s}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const i=Object.keys(this._models);for(let n=0,s=i.length;ne){const t=[];for(this._disposedModels.forEach(i=>{i.sharesUndoRedoStack||t.push(i)}),t.sort((i,n)=>i.time-n.time);t.length>0&&this._disposedModelsHeapSize>e;){const i=t.shift();this._removeDisposedModel(i.uri),i.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(i.initialUndoRedoSnapshot)}}}_createModelData(e,t,i,n){const s=this.getCreationOptions(t,i,n),r=new Ol(e,t,s,i,this._undoRedoService,this._languageService,this._languageConfigurationService);if(i&&this._disposedModels.has(mu(i))){const d=this._removeDisposedModel(i),c=this._undoRedoService.getElements(i),h=this._getSHA1Computer(),u=h.canComputeSHA1(r)?h.computeSHA1(r)===d.sha1:!1;if(u||d.sharesUndoRedoStack){for(const g of c.past)gd(g)&&g.matchesResource(i)&&g.setModel(r);for(const g of c.future)gd(g)&&g.matchesResource(i)&&g.setModel(r);this._undoRedoService.setElementsValidFlag(i,!0,g=>gd(g)&&g.matchesResource(i)),u&&(r._overwriteVersionId(d.versionId),r._overwriteAlternativeVersionId(d.alternativeVersionId),r._overwriteInitialUndoRedoSnapshot(d.initialUndoRedoSnapshot))}else d.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(d.initialUndoRedoSnapshot)}const a=mu(r.uri);if(this._models[a])throw new Error("ModelService: Cannot add model because it already exists!");const l=new Mle(r,d=>this._onWillDispose(d),(d,c)=>this._onDidChangeLanguage(d,c));return this._models[a]=l,l}createModel(e,t,i,n=!1){let s;return t?s=this._createModelData(e,t,i,n):s=this._createModelData(e,Ao,i,n),this._onModelAdded.fire(s.model),s.model}getModels(){const e=[],t=Object.keys(this._models);for(let i=0,n=t.length;i0||d.future.length>0){for(const c of d.past)gd(c)&&c.matchesResource(e.uri)&&(s=!0,r+=c.heapSize(e.uri),c.setModel(e.uri));for(const c of d.future)gd(c)&&c.matchesResource(e.uri)&&(s=!0,r+=c.heapSize(e.uri),c.setModel(e.uri))}}const a=Ef.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,l=this._getSHA1Computer();if(s)if(!n&&(r>a||!l.canComputeSHA1(e))){const d=i.model.getInitialUndoRedoSnapshot();d!==null&&this._undoRedoService.restoreSnapshot(d)}else this._ensureDisposedModelsHeapSize(a-r),this._undoRedoService.setElementsValidFlag(e.uri,!1,d=>gd(d)&&d.matchesResource(e.uri)),this._insertDisposedModel(new Ale(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),n,r,l.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else if(!n){const d=i.model.getInitialUndoRedoSnapshot();d!==null&&this._undoRedoService.restoreSnapshot(d)}delete this._models[t],i.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const i=t.oldLanguage,n=e.getLanguageId(),s=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),r=this.getCreationOptions(n,e.uri,e.isForSimpleWidget);Ef._setModelOptionsForModel(e,r,s),this._onModelModeChanged.fire({model:e,oldLanguageId:i})}_getSHA1Computer(){return new $L}};HS.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20*1024*1024;HS=Ef=Tle([f_(0,Je),f_(1,MW),f_(2,xL),f_(3,si),f_(4,$t)],HS);class $L{canComputeSHA1(e){return e.getValueLength()<=$L.MAX_MODEL_SIZE}computeSHA1(e){const t=new Ky,i=e.createSnapshot();let n;for(;n=i.read();)t.update(n);return t.digest()}}$L.MAX_MODEL_SIZE=10*1024*1024;var lT;(function(o){o[o.PRESERVE=0]="PRESERVE",o[o.LAST=1]="LAST"})(lT||(lT={}));const Xg={Quickaccess:"workbench.contributions.quickaccess"};class Ple{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return e.prefix.length===0?this.defaultProvider=e:this.providers.push(e),this.providers.sort((t,i)=>i.prefix.length-t.prefix.length),Ce(()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return xa([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find(i=>e.startsWith(i.prefix))||void 0||this.defaultProvider}}hi.add(Xg.Quickaccess,new Ple);const Ole={ctrlCmd:!1,alt:!1};var ap;(function(o){o[o.Blur=1]="Blur",o[o.Gesture=2]="Gesture",o[o.Other=3]="Other"})(ap||(ap={}));var sa;(function(o){o[o.NONE=0]="NONE",o[o.FIRST=1]="FIRST",o[o.SECOND=2]="SECOND",o[o.LAST=3]="LAST"})(sa||(sa={}));var qt;(function(o){o[o.First=1]="First",o[o.Second=2]="Second",o[o.Last=3]="Last",o[o.Next=4]="Next",o[o.Previous=5]="Previous",o[o.NextPage=6]="NextPage",o[o.PreviousPage=7]="PreviousPage",o[o.NextSeparator=8]="NextSeparator",o[o.PreviousSeparator=9]="PreviousSeparator"})(qt||(qt={}));const _r=ot("quickInputService");var Fle=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},J5=function(o,e){return function(t,i){e(t,i,o)}};let dT=class extends W{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=hi.as(Xg.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,i){var n,s,r,a;const[l,d]=this.getOrInstantiateProvider(e,i==null?void 0:i.enabledProviderPrefixes),c=this.visibleQuickAccess,h=c==null?void 0:c.descriptor;if(c&&d&&h===d){e!==d.prefix&&!(i!=null&&i.preserveValue)&&(c.picker.value=e),this.adjustValueSelection(c.picker,d,i);return}if(d&&!(i!=null&&i.preserveValue)){let b;if(c&&h&&h!==d){const C=c.value.substr(h.prefix.length);C&&(b=`${d.prefix}${C}`)}if(!b){const C=l==null?void 0:l.defaultFilterValue;C===lT.LAST?b=this.lastAcceptedPickerValues.get(d):typeof C=="string"&&(b=`${d.prefix}${C}`)}typeof b=="string"&&(e=b)}const u=(n=c==null?void 0:c.picker)===null||n===void 0?void 0:n.valueSelection,g=(s=c==null?void 0:c.picker)===null||s===void 0?void 0:s.value,f=new G,p=f.add(this.quickInputService.createQuickPick());p.value=e,this.adjustValueSelection(p,d,i),p.placeholder=(r=i==null?void 0:i.placeholder)!==null&&r!==void 0?r:d==null?void 0:d.placeholder,p.quickNavigate=i==null?void 0:i.quickNavigateConfiguration,p.hideInput=!!p.quickNavigate&&!c,(typeof(i==null?void 0:i.itemActivation)=="number"||i!=null&&i.quickNavigateConfiguration)&&(p.itemActivation=(a=i==null?void 0:i.itemActivation)!==null&&a!==void 0?a:sa.SECOND),p.contextKey=d==null?void 0:d.contextKey,p.filterValue=b=>b.substring(d?d.prefix.length:0);let _;t&&(_=new k0,f.add(ae.once(p.onWillAccept)(b=>{b.veto(),p.hide()}))),f.add(this.registerPickerListeners(p,l,d,e,i));const v=f.add(new ci);if(l&&f.add(l.provide(p,v.token,i==null?void 0:i.providerOptions)),ae.once(p.onDidHide)(()=>{p.selectedItems.length===0&&v.cancel(),f.dispose(),_==null||_.complete(p.selectedItems.slice(0))}),p.show(),u&&g===e&&(p.valueSelection=u),t)return _==null?void 0:_.p}adjustValueSelection(e,t,i){var n;let s;i!=null&&i.preserveValue?s=[e.value.length,e.value.length]:s=[(n=t==null?void 0:t.prefix.length)!==null&&n!==void 0?n:0,e.value.length],e.valueSelection=s}registerPickerListeners(e,t,i,n,s){const r=new G,a=this.visibleQuickAccess={picker:e,descriptor:i,value:n};return r.add(Ce(()=>{a===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),r.add(e.onDidChangeValue(l=>{const[d]=this.getOrInstantiateProvider(l,s==null?void 0:s.enabledProviderPrefixes);d!==t?this.show(l,{enabledProviderPrefixes:s==null?void 0:s.enabledProviderPrefixes,preserveValue:!0,providerOptions:s==null?void 0:s.providerOptions}):a.value=l})),i&&r.add(e.onDidAccept(()=>{this.lastAcceptedPickerValues.set(i,e.value)})),r}getOrInstantiateProvider(e,t){const i=this.registry.getQuickAccessProvider(e);if(!i||t&&!(t!=null&&t.includes(i.prefix)))return[void 0,void 0];let n=this.mapProviderToDescriptor.get(i);return n||(n=this.instantiationService.createInstance(i.ctor),this.mapProviderToDescriptor.set(i,n)),[n,i]}};dT=Fle([J5(0,_r),J5(1,Le)],dT);class Op extends Uo{constructor(e){var t;super(),this._onChange=this._register(new O),this.onChange=this._onChange.event,this._onKeyDown=this._register(new O),this.onKeyDown=this._onKeyDown.event,this._opts=e,this._checked=this._opts.isChecked;const i=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,i.push(...Te.asClassNameArray(this._icon))),this._opts.actionClassName&&i.push(...this._opts.actionClassName.split(" ")),this._checked&&i.push("checked"),this.domNode=document.createElement("div"),this._hover=this._register(Ha().setupUpdatableHover((t=e.hoverDelegate)!==null&&t!==void 0?t:Ts("mouse"),this.domNode,this._opts.title)),this.domNode.classList.add(...i),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,n=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),n.preventDefault())}),this._register(this.ignoreGesture(this.domNode)),this.onkeydown(this.domNode,n=>{if(n.keyCode===10||n.keyCode===3){this.checked=!this._checked,this._onChange.fire(!0),n.preventDefault(),n.stopPropagation();return}this._onKeyDown.fire(n)})}get enabled(){return this.domNode.getAttribute("aria-disabled")!=="true"}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,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 Ble=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s};class Q6{constructor(e){this.nodes=e}toString(){return this.nodes.map(e=>typeof e=="string"?e:e.label).join("")}}Ble([Mi],Q6.prototype,"toString",null);const Wle=/\[([^\]]+)\]\(((?:https?:\/\/|command:|file:)[^\)\s]+)(?: (["'])(.+?)(\3))?\)/gi;function Hle(o){const e=[];let t=0,i;for(;i=Wle.exec(o);){i.index-t>0&&e.push(o.substring(t,i.index));const[,n,s,,r]=i;r?e.push({label:n,href:s,title:r}):e.push({label:n,href:s}),t=i.index+i[0].length}return t{Jq(g)&<.stop(g,!0),t.callback(s.href)},d=t.disposables.add(new rt(a,ee.CLICK)).event,c=t.disposables.add(new rt(a,ee.KEY_DOWN)).event,h=ae.chain(c,g=>g.filter(f=>{const p=new Ht(f);return p.equals(10)||p.equals(3)}));t.disposables.add(zt.addTarget(a));const u=t.disposables.add(new rt(a,Ut.Tap)).event;ae.any(d,u,h)(l,null,t.disposables),e.appendChild(a)}}var $le=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},e3=function(o,e){return function(t,i){e(t,i,o)}};const X6="inQuickInput",jle=new de(X6,!1,m("inQuickInput","Whether keyboard focus is inside the quick input control")),Kle=K.has(X6),J6="quickInputType",qle=new de(J6,void 0,m("quickInputType","The type of the currently visible quick input")),eH="cursorAtEndOfQuickInputBox",Gle=new de(eH,!1,m("cursorAtEndOfQuickInputBox","Whether the cursor in the quick input is at the end of the input box")),Zle=K.has(eH),cT={iconClass:Te.asClassName(oe.quickInputBack),tooltip:m("quickInput.back","Back"),handle:-1};class Y0 extends W{constructor(e){super(),this.ui=e,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=Y0.noPromptMessage,this._severity=Ei.Ignore,this.onDidTriggerButtonEmitter=this._register(new O),this.onDidHideEmitter=this._register(new O),this.onWillHideEmitter=this._register(new O),this.onDisposeEmitter=this._register(new O),this.visibleDisposables=this._register(new G),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){const t=this._ignoreFocusOut!==e&&!Da;this._ignoreFocusOut=e&&!Da,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}get toggles(){return this._toggles}set toggles(e){this._toggles=e??[],this.togglesUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(e=>{this.buttons.indexOf(e)!==-1&&this.onDidTriggerButtonEmitter.fire(e)})),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(e=ap.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}willHide(e=ap.Other){this.onWillHideEmitter.fire({reason:e})}update(){var e,t;if(!this.visible)return;const i=this.getTitle();i&&this.ui.title.textContent!==i?this.ui.title.textContent=i:!i&&this.ui.title.innerHTML!==" "&&(this.ui.title.innerText=" ");const n=this.getDescription();if(this.ui.description1.textContent!==n&&(this.ui.description1.textContent=n),this.ui.description2.textContent!==n&&(this.ui.description2.textContent=n),this._widgetUpdated&&(this._widgetUpdated=!1,this._widget?Dn(this.ui.widget,this._widget):Dn(this.ui.widget)),this.busy&&!this.busyDelay&&(this.busyDelay=new jr,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();const r=this.buttons.filter(l=>l===cT).map((l,d)=>VS(l,`id-${d}`,async()=>this.onDidTriggerButtonEmitter.fire(l)));this.ui.leftActionBar.push(r,{icon:!0,label:!1}),this.ui.rightActionBar.clear();const a=this.buttons.filter(l=>l!==cT).map((l,d)=>VS(l,`id-${d}`,async()=>this.onDidTriggerButtonEmitter.fire(l)));this.ui.rightActionBar.push(a,{icon:!0,label:!1})}if(this.togglesUpdated){this.togglesUpdated=!1;const r=(t=(e=this.toggles)===null||e===void 0?void 0:e.filter(a=>a instanceof Op))!==null&&t!==void 0?t:[];this.ui.inputBox.toggles=r}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const s=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==s&&(this._lastValidationMessage=s,Dn(this.ui.message),Ule(s,this.ui.message,{callback:r=>{this.ui.linkOpenerDelegate(r)},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?m("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==Ei.Ignore){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.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()}}Y0.noPromptMessage=m("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class Nb extends Y0{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new O),this.onWillAcceptEmitter=this._register(new O),this.onDidAcceptEmitter=this._register(new O),this.onDidCustomEmitter=this._register(new O),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=sa.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new O),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new O),this.onDidTriggerItemButtonEmitter=this._register(new O),this.onDidTriggerSeparatorButtonEmitter=this._register(new O),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this._focusEventBufferer=new zy,this.type="quickPick",this.filterValue=e=>e,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(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this.doSetValue(e)}doSetValue(e,t){this._value!==e&&(this._value=e,t||this.update(),this.visible&&this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(this._value))}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(e){this.ui.list.scrollTop=e}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(e){this._keepScrollPosition=e}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?Ole:this.ui.keyMods}get valueSelection(){const e=this.ui.inputBox.getSelection();if(e)return[e.start,e.end]}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.canSelectMany||this.ui.list.focus(qt.First)}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{this.doSetValue(e,!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,(e,t)=>t)(e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&di(e,this._activeItems,(t,i)=>t===i)||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:e,event:t})=>{if(this.canSelectMany){e.length&&this.ui.list.setSelectedElements([]);return}this.selectedItemsToConfirm!==this._selectedItems&&di(e,this._selectedItems,(i,n)=>i===n)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(_A(t)&&t.button===1))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(e=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&di(e,this._selectedItems,(t,i)=>t===i)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e)))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(e=>this.onDidTriggerItemButtonEmitter.fire(e))),this.visibleDisposables.add(this.ui.list.onSeparatorButtonTriggered(e=>this.onDidTriggerSeparatorButtonEmitter.fire(e))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return U(this.ui.container,ee.KEY_UP,e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new Ht(e),i=t.keyCode;this._quickNavigate.keybindings.some(r=>{const a=r.getChords();return a.length>1?!1:a[0].shiftKey&&i===4?!(t.ctrlKey||t.altKey||t.metaKey):!!(a[0].altKey&&i===6||a[0].ctrlKey&&i===5||a[0].metaKey&&i===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;const e=this.keepScrollPosition?this.scrollTop:0,t=!!this.description,i={title:!!this.title||!!this.step||!!this.buttons.length,description:t,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!this._hideInput,progressBar:!this._hideInput||t,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(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||"");let n=this.ariaLabel;!n&&i.inputBox&&(n=this.placeholder||Nb.DEFAULT_ARIA_LABEL,this.title&&(n+=` - ${this.title}`)),this.ui.list.ariaLabel!==n&&(this.ui.list.ariaLabel=n??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 sa.NONE:this._itemActivation=sa.FIRST;break;case sa.SECOND:this.ui.list.focus(qt.Second),this._itemActivation=sa.FIRST;break;case sa.LAST:this.ui.list.focus(qt.Last),this._itemActivation=sa.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||"",i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(qt.First)),this.keepScrollPosition&&(this.scrollTop=e)}focus(e){this.ui.list.focus(e),this.canSelectMany&&this.ui.list.domFocus()}accept(e){e&&!this._canAcceptInBackground||this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(e??!1))}}Nb.DEFAULT_ARIA_LABEL=m("quickInputBox.ariaLabel","Type to narrow down results.");let Yle=class extends Y0{constructor(){super(...arguments),this._value="",this.valueSelectionUpdated=!0,this._password=!1,this.onDidValueChangeEmitter=this._register(new O),this.onDidAcceptEmitter=this._register(new O),this.type="inputBox",this.onDidChangeValue=this.onDidValueChangeEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event}get value(){return this._value}set value(e){this._value=e||"",this.update()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get password(){return this._password}set password(e){this._password=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{e!==this.value&&(this._value=e,this.onDidValueChangeEmitter.fire(e))})),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");const e={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description||!!this.step,inputBox:!0,message:!0,progressBar:!0};this.ui.setVisibilities(e),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)}},hT=class extends ep{constructor(e,t){super("element",!1,i=>this.getOverrideOptions(i),e,t)}getOverrideOptions(e){var t;const i=(_n(e.content)?(t=e.content.textContent)!==null&&t!==void 0?t:"":typeof e.content=="string"?e.content:e.content.value).includes(` +`);return{persistence:{hideOnKeyDown:!1},appearance:{showHoverHint:i,skipFadeInAnimation:!0}}}};hT=$le([e3(0,Je),e3(1,Gl)],hT);z.white.toString(),z.white.toString();class zS extends W{get onDidClick(){return this._onDidClick.event}constructor(e,t){super(),this._label="",this._onDidClick=this._register(new O),this._onDidEscape=this._register(new O),this.options=t,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",!!t.secondary);const i=t.secondary?t.buttonSecondaryBackground:t.buttonBackground,n=t.secondary?t.buttonSecondaryForeground:t.buttonForeground;this._element.style.color=n||"",this._element.style.backgroundColor=i||"",t.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 t.title=="string"&&this.setTitle(t.title),typeof t.ariaLabel=="string"&&this._element.setAttribute("aria-label",t.ariaLabel),e.appendChild(this._element),this._register(zt.addTarget(this._element)),[ee.CLICK,Ut.Tap].forEach(s=>{this._register(U(this._element,s,r=>{if(!this.enabled){lt.stop(r);return}this._onDidClick.fire(r)}))}),this._register(U(this._element,ee.KEY_DOWN,s=>{const r=new Ht(s);let a=!1;this.enabled&&(r.equals(3)||r.equals(10))?(this._onDidClick.fire(s),a=!0):r.equals(9)&&(this._onDidEscape.fire(s),this._element.blur(),a=!0),a&<.stop(r,!0)})),this._register(U(this._element,ee.MOUSE_OVER,s=>{this._element.classList.contains("disabled")||this.updateBackground(!0)})),this._register(U(this._element,ee.MOUSE_OUT,s=>{this.updateBackground(!1)})),this.focusTracker=this._register(Ea(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(e){const t=[];for(let i of dh(e))if(typeof i=="string"){if(i=i.trim(),i==="")continue;const n=document.createElement("span");n.textContent=i,t.push(n)}else t.push(i);return t}updateBackground(e){let t;this.options.secondary?t=e?this.options.buttonSecondaryHoverBackground:this.options.buttonSecondaryBackground:t=e?this.options.buttonHoverBackground:this.options.buttonBackground,t&&(this._element.style.backgroundColor=t)}get element(){return this._element}set label(e){var t;if(this._label===e||La(this._label)&&La(e)&&zoe(this._label,e))return;this._element.classList.add("monaco-text-button");const i=this.options.supportShortLabel?this._labelElement:this._element;if(La(e)){const s=TL(e,{inline:!0});s.dispose();const r=(t=s.element.querySelector("p"))===null||t===void 0?void 0:t.innerHTML;if(r){const a=F9(r,{ADD_TAGS:["b","i","u","code","span"],ALLOWED_ATTR:["class"],RETURN_TRUSTED_TYPE:!0});i.innerHTML=a}else Dn(i)}else this.options.supportIcons?Dn(i,...this.getContentElements(e)):i.textContent=e;let n="";typeof this.options.title=="string"?n=this.options.title:this.options.title&&(n=Qoe(e)),this.setTitle(n),typeof this.options.ariaLabel=="string"?this._element.setAttribute("aria-label",this.options.ariaLabel):this.options.ariaLabel&&this._element.setAttribute("aria-label",n),this._label=e}get label(){return this._label}set icon(e){this._element.classList.add(...Te.asClassNameArray(e))}set enabled(e){e?(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(e){var t;!this._hover&&e!==""?this._hover=this._register(Ha().setupUpdatableHover((t=this.options.hoverDelegate)!==null&&t!==void 0?t:Ts("mouse"),this._element,e)):this._hover&&this._hover.update(e)}}class uT{constructor(e,t,i){this.options=t,this.styles=i,this.count=0,this.element=Q(e,te(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){var e,t;this.element.textContent=cg(this.countFormat,this.count),this.element.title=cg(this.titleFormat,this.count),this.element.style.backgroundColor=(e=this.styles.badgeBackground)!==null&&e!==void 0?e:"",this.element.style.color=(t=this.styles.badgeForeground)!==null&&t!==void 0?t:"",this.styles.badgeBorder&&(this.element.style.border=`1px solid ${this.styles.badgeBorder}`)}}const t3="done",i3="active",Dk="infinite",kk="infinite-long-running",n3="discrete";class jL extends W{constructor(e,t){super(),this.progressSignal=this._register(new ln),this.workedVal=0,this.showDelayedScheduler=this._register(new At(()=>eo(this.element),0)),this.longRunningScheduler=this._register(new At(()=>this.infiniteLongRunning(),jL.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e,t)}create(e,t){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.bit.style.backgroundColor=(t==null?void 0:t.progressBarBackground)||"#0E70C0",this.element.appendChild(this.bit)}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(i3,Dk,kk,n3),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel(),this.progressSignal.clear()}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add(t3),this.element.classList.contains(Dk)?(this.bit.style.opacity="0",e?setTimeout(()=>this.off(),200):this.off()):(this.bit.style.width="inherit",e?setTimeout(()=>this.off(),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(n3,t3,kk),this.element.classList.add(i3,Dk),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(kk)}getContainer(){return this.element}}jL.LONG_RUNNING_INFINITE_THRESHOLD=1e4;const Qle=m("caseDescription","Match Case"),Xle=m("wordsDescription","Match Whole Word"),Jle=m("regexDescription","Use Regular Expression");class tH extends Op{constructor(e){var t;super({icon:oe.caseSensitive,title:Qle+e.appendTitle,isChecked:e.isChecked,hoverDelegate:(t=e.hoverDelegate)!==null&&t!==void 0?t:Ts("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class iH extends Op{constructor(e){var t;super({icon:oe.wholeWord,title:Xle+e.appendTitle,isChecked:e.isChecked,hoverDelegate:(t=e.hoverDelegate)!==null&&t!==void 0?t:Ts("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class nH extends Op{constructor(e){var t;super({icon:oe.regex,title:Jle+e.appendTitle,isChecked:e.isChecked,hoverDelegate:(t=e.hoverDelegate)!==null&&t!==void 0?t:Ts("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class ede{constructor(e,t=0,i=e.length,n=t-1){this.items=e,this.start=t,this.end=i,this.index=n}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()}}class tde{constructor(e=[],t=10){this._initialize(e),this._limit=t,this._onChange()}getHistory(){return this._elements}add(e){this._history.delete(e),this._history.add(e),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(e){return this._history.has(e)}_onChange(){this._reduceToLimit();const e=this._elements;this._navigator=new ede(e,0,e.length,e.length)}_reduceToLimit(){const e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach(t=>e.push(t)),e}}const m_=te;class ide extends Uo{constructor(e,t,i){var n;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new O),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i,this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=(n=this.options.tooltip)!==null&&n!==void 0?n:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=Q(e,m_(".monaco-inputbox.idle"));const s=this.options.flexibleHeight?"textarea":"input",r=Q(this.element,m_(".ibwrapper"));if(this.input=Q(r,m_(s+".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=Q(r,m_("div.mirror")),this.mirror.innerText=" ",this.scrollableElement=new n8(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),Q(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(d=>this.input.scrollTop=d.scrollTop));const a=this._register(new rt(e.ownerDocument,"selectionchange")),l=ae.filter(a.event,()=>{const d=e.ownerDocument.getSelection();return(d==null?void 0:d.anchorNode)===r});this._register(l(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 ur(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(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}setTooltip(e){this.tooltip=e,this.hover?this.hover.update(e):this.hover=this._register(Ha().setupUpdatableHover(Ts("mouse"),this.input,e))}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return typeof this.cachedHeight=="number"?this.cachedHeight:Ld(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return Zy(this.input)}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.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 e;const t=this.input.selectionStart;if(t===null)return null;const i=(e=this.input.selectionEnd)!==null&&e!==void 0?e:t;return{start:t,end:i}}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}set paddingRight(e){this.input.style.width=`calc(100% - ${e}px)`,this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if(typeof this.cachedContentHeight!="number"||typeof this.cachedHeight!="number"||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i})}showMessage(e,t){if(this.state==="open"&&Ro(this.message,e))return;this.message=e,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(e.type));const i=this.stylesForType(this.message.type);this.element.style.border=`1px solid ${Vd(i.border,"transparent")}`,this.message.content&&(this.hasFocus()||t)&&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 e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),e==null?void 0:e.type}stylesForType(e){const t=this.options.inputBoxStyles;switch(e){case 1:return{border:t.inputValidationInfoBorder,background:t.inputValidationInfoBackground,foreground:t.inputValidationInfoForeground};case 2:return{border:t.inputValidationWarningBorder,background:t.inputValidationWarningBackground,foreground:t.inputValidationWarningForeground};default:return{border:t.inputValidationErrorBorder,background:t.inputValidationErrorBackground,foreground:t.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e;const t=()=>e.style.width=Xs(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:n=>{var s,r;if(!this.message)return null;e=Q(n,m_(".monaco-inputbox-container")),t();const a={inline:!0,className:"monaco-inputbox-message"},l=this.message.formatContent?uoe(this.message.content,a):hoe(this.message.content,a);l.classList.add(this.classForType(this.message.type));const d=this.stylesForType(this.message.type);return l.style.backgroundColor=(s=d.background)!==null&&s!==void 0?s:"",l.style.color=(r=d.foreground)!==null&&r!==void 0?r:"",l.style.border=d.border?`1px solid ${d.border}`:"",Q(e,l),null},onHide:()=>{this.state="closed"},layout:t});let i;this.message.type===3?i=m("alertErrorMessage","Error: {0}",this.message.content):this.message.type===2?i=m("alertWarningMessage","Warning: {0}",this.message.content):i=m("alertInfoMessage","Info: {0}",this.message.content),js(i),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;const e=this.value,i=e.charCodeAt(e.length-1)===10?" ":"";(e+i).replace(/\u000c/g,"")?this.mirror.textContent=e+i:this.mirror.innerText=" ",this.layout()}applyStyles(){var e,t,i;const n=this.options.inputBoxStyles,s=(e=n.inputBackground)!==null&&e!==void 0?e:"",r=(t=n.inputForeground)!==null&&t!==void 0?t:"",a=(i=n.inputBorder)!==null&&i!==void 0?i:"";this.element.style.backgroundColor=s,this.element.style.color=r,this.input.style.backgroundColor="inherit",this.input.style.color=r,this.element.style.border=`1px solid ${Vd(a,"transparent")}`}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=Ld(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){const t=this.inputElement,i=t.selectionStart,n=t.selectionEnd,s=t.value;i!==null&&n!==null&&(this.value=s.substr(0,i)+e+s.substr(n),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){var e;this._hideMessage(),this.message=null,(e=this.actionbar)===null||e===void 0||e.dispose(),super.dispose()}}class sH extends ide{constructor(e,t,i){const n=m({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 ⇅ to represent the up and down arrow keys.']}," or {0} for history","⇅"),s=m({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 ⇅ to represent the up and down arrow keys.']}," ({0} for history)","⇅");super(e,t,i),this._onDidFocus=this._register(new O),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new O),this.onDidBlur=this._onDidBlur.event,this.history=new tde(i.history,100);const r=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(n)&&!this.placeholder.endsWith(s)&&this.history.getHistory().length){const a=this.placeholder.endsWith(")")?n:s,l=this.placeholder+a;i.showPlaceholderOnFocus&&!Zy(this.input)?this.placeholder=l:this.setPlaceHolder(l)}};this.observer=new MutationObserver((a,l)=>{a.forEach(d=>{d.target.textContent||r()})}),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,()=>r()),this.onblur(this.input,()=>{const a=l=>{if(this.placeholder.endsWith(l)){const d=this.placeholder.slice(0,this.placeholder.length-l.length);return i.showPlaceholderOnFocus?this.placeholder=d:this.setPlaceHolder(d),!0}else return!1};a(s)||a(n)})}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(e){this.value&&(e||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 e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),this.value=e??"",Al(this.value?this.value:m("clearedInput","Cleared Input"))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,Al(this.value))}setPlaceHolder(e){super.setPlaceHolder(e),this.setTooltip(e)}onBlur(){super.onBlur(),this._onDidBlur.fire()}onFocus(){super.onFocus(),this._onDidFocus.fire()}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()}}const nde=m("defaultLabel","input");class oH extends Uo{constructor(e,t,i){super(),this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalTogglesDisposables=this._register(new ln),this.additionalToggles=[],this._onDidOptionChange=this._register(new O),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new O),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new O),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new O),this._onKeyUp=this._register(new O),this._onCaseSensitiveKeyDown=this._register(new O),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new O),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.placeholder=i.placeholder||"",this.validation=i.validation,this.label=i.label||nde,this.showCommonFindToggles=!!i.showCommonFindToggles;const n=i.appendCaseSensitiveLabel||"",s=i.appendWholeWordsLabel||"",r=i.appendRegexLabel||"",a=i.history||[],l=!!i.flexibleHeight,d=!!i.flexibleWidth,c=i.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new sH(this.domNode,t,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},history:a,showHistoryHint:i.showHistoryHint,flexibleHeight:l,flexibleWidth:d,flexibleMaxHeight:c,inputBoxStyles:i.inputBoxStyles}));const h=this._register(op());if(this.showCommonFindToggles){this.regex=this._register(new nH({appendTitle:r,isChecked:!1,hoverDelegate:h,...i.toggleStyles})),this._register(this.regex.onChange(g=>{this._onDidOptionChange.fire(g),!g&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.regex.onKeyDown(g=>{this._onRegexKeyDown.fire(g)})),this.wholeWords=this._register(new iH({appendTitle:s,isChecked:!1,hoverDelegate:h,...i.toggleStyles})),this._register(this.wholeWords.onChange(g=>{this._onDidOptionChange.fire(g),!g&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this.caseSensitive=this._register(new tH({appendTitle:n,isChecked:!1,hoverDelegate:h,...i.toggleStyles})),this._register(this.caseSensitive.onChange(g=>{this._onDidOptionChange.fire(g),!g&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.caseSensitive.onKeyDown(g=>{this._onCaseSensitiveKeyDown.fire(g)}));const u=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,g=>{if(g.equals(15)||g.equals(17)||g.equals(9)){const f=u.indexOf(this.domNode.ownerDocument.activeElement);if(f>=0){let p=-1;g.equals(17)?p=(f+1)%u.length:g.equals(15)&&(f===0?p=u.length-1:p=f-1),g.equals(9)?(u[f].blur(),this.inputBox.focus()):p>=0&&u[p].focus(),lt.stop(g,!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(i==null?void 0:i.additionalToggles),this.controls&&this.domNode.appendChild(this.controls),e==null||e.appendChild(this.domNode),this._register(U(this.inputBox.inputElement,"compositionstart",u=>{this.imeSessionInProgress=!0})),this._register(U(this.inputBox.inputElement,"compositionend",u=>{this.imeSessionInProgress=!1,this._onInput.fire()})),this.onkeydown(this.inputBox.inputElement,u=>this._onKeyDown.fire(u)),this.onkeyup(this.inputBox.inputElement,u=>this._onKeyUp.fire(u)),this.oninput(this.inputBox.inputElement,u=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,u=>this._onMouseDown.fire(u))}get onDidChange(){return this.inputBox.onDidChange}layout(e){this.inputBox.layout(),this.updateInputBoxPadding(e.collapsedFindWidget)}enable(){var e,t,i;this.domNode.classList.remove("disabled"),this.inputBox.enable(),(e=this.regex)===null||e===void 0||e.enable(),(t=this.wholeWords)===null||t===void 0||t.enable(),(i=this.caseSensitive)===null||i===void 0||i.enable();for(const n of this.additionalToggles)n.enable()}disable(){var e,t,i;this.domNode.classList.add("disabled"),this.inputBox.disable(),(e=this.regex)===null||e===void 0||e.disable(),(t=this.wholeWords)===null||t===void 0||t.disable(),(i=this.caseSensitive)===null||i===void 0||i.disable();for(const n of this.additionalToggles)n.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}setAdditionalToggles(e){for(const t of this.additionalToggles)t.domNode.remove();this.additionalToggles=[],this.additionalTogglesDisposables.value=new G;for(const t of e??[])this.additionalTogglesDisposables.value.add(t),this.controls.appendChild(t.domNode),this.additionalTogglesDisposables.value.add(t.onChange(i=>{this._onDidOptionChange.fire(i),!i&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()})),this.additionalToggles.push(t);this.additionalToggles.length>0&&(this.controls.style.display=""),this.updateInputBoxPadding()}updateInputBoxPadding(e=!1){var t,i,n,s,r,a;e?this.inputBox.paddingRight=0:this.inputBox.paddingRight=((i=(t=this.caseSensitive)===null||t===void 0?void 0:t.width())!==null&&i!==void 0?i:0)+((s=(n=this.wholeWords)===null||n===void 0?void 0:n.width())!==null&&s!==void 0?s:0)+((a=(r=this.regex)===null||r===void 0?void 0:r.width())!==null&&a!==void 0?a:0)+this.additionalToggles.reduce((l,d)=>l+d.width(),0)}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){var e,t;return(t=(e=this.caseSensitive)===null||e===void 0?void 0:e.checked)!==null&&t!==void 0?t:!1}setCaseSensitive(e){this.caseSensitive&&(this.caseSensitive.checked=e)}getWholeWords(){var e,t;return(t=(e=this.wholeWords)===null||e===void 0?void 0:e.checked)!==null&&t!==void 0?t:!1}setWholeWords(e){this.wholeWords&&(this.wholeWords.checked=e)}getRegex(){var e,t;return(t=(e=this.regex)===null||e===void 0?void 0:e.checked)!==null&&t!==void 0?t:!1}setRegex(e){this.regex&&(this.regex.checked=e,this.validate())}focusOnCaseSensitive(){var e;(e=this.caseSensitive)===null||e===void 0||e.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(e){this.inputBox.showMessage(e)}clearMessage(){this.inputBox.hideMessage()}}const sde=te;class ode extends W{constructor(e,t,i){super(),this.parent=e,this.onKeyDown=s=>Si(this.findInput.inputBox.inputElement,ee.KEY_DOWN,s),this.onDidChange=s=>this.findInput.onDidChange(s),this.container=Q(this.parent,sde(".quick-input-box")),this.findInput=this._register(new oH(this.container,void 0,{label:"",inputBoxStyles:t,toggleStyles:i}));const n=this.findInput.inputBox.inputElement;n.role="combobox",n.ariaHasPopup="menu",n.ariaAutoComplete="list",n.ariaExpanded="true"}get value(){return this.findInput.getValue()}set value(e){this.findInput.setValue(e)}select(e=null){this.findInput.inputBox.select(e)}getSelection(){return this.findInput.inputBox.getSelection()}isSelectionAtEnd(){return this.findInput.inputBox.isSelectionAtEnd()}get placeholder(){return this.findInput.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.findInput.inputBox.setPlaceHolder(e)}get password(){return this.findInput.inputBox.inputElement.type==="password"}set password(e){this.findInput.inputBox.inputElement.type=e?"password":"text"}set enabled(e){this.findInput.inputBox.inputElement.toggleAttribute("readonly",!e)}set toggles(e){this.findInput.setAdditionalToggles(e)}setAttribute(e,t){this.findInput.inputBox.inputElement.setAttribute(e,t)}showDecoration(e){e===Ei.Ignore?this.findInput.clearMessage():this.findInput.showMessage({type:e===Ei.Info?1:e===Ei.Warning?2:3,content:""})}stylesForType(e){return this.findInput.inputBox.stylesForType(e===Ei.Info?1:e===Ei.Warning?2:3)}setFocus(){this.findInput.focus()}layout(){this.findInput.inputBox.layout()}}class rde{get templateId(){return this.renderer.templateId}constructor(e,t){this.renderer=e,this.modelProvider=t}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:W.None}}renderElement(e,t,i,n){var s;if((s=i.disposable)===null||s===void 0||s.dispose(),!i.data)return;const r=this.modelProvider();if(r.isResolved(e))return this.renderer.renderElement(r.get(e),e,i.data,n);const a=new ci,l=r.resolve(e,a.token);i.disposable={dispose:()=>a.cancel()},this.renderer.renderPlaceholder(e,i.data),l.then(d=>this.renderer.renderElement(d,e,i.data,n))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class ade{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}function lde(o,e){return{...e,accessibilityProvider:e.accessibilityProvider&&new ade(o,e.accessibilityProvider)}}class dde{constructor(e,t,i,n,s={}){const r=()=>this.model,a=n.map(l=>new rde(l,r));this.list=new $o(e,t,i,a,lde(r,s))}updateOptions(e){this.list.updateOptions(e)}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 ae.map(this.list.onMouseDblClick,({element:e,index:t,browserEvent:i})=>({element:e===void 0?void 0:this._model.get(e),index:t,browserEvent:i}))}get onPointer(){return ae.map(this.list.onPointer,({element:e,index:t,browserEvent:i})=>({element:e===void 0?void 0:this._model.get(e),index:t,browserEvent:i}))}get onDidChangeSelection(){return ae.map(this.list.onDidChangeSelection,({elements:e,indexes:t,browserEvent:i})=>({elements:e.map(n=>this._model.get(n)),indexes:t,browserEvent:i}))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,Os(e.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map(e=>this.model.get(e))}style(e){this.list.style(e)}dispose(){this.list.dispose()}}var Fp=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s};const cde=!1;var US;(function(o){o.North="north",o.South="south",o.East="east",o.West="west"})(US||(US={}));let hde=4;const ude=new O;let gde=300;const fde=new O;class B2{constructor(e){this.el=e,this.disposables=new G}get onPointerMove(){return this.disposables.add(new rt(De(this.el),"mousemove")).event}get onPointerUp(){return this.disposables.add(new rt(De(this.el),"mouseup")).event}dispose(){this.disposables.dispose()}}Fp([Mi],B2.prototype,"onPointerMove",null);Fp([Mi],B2.prototype,"onPointerUp",null);class W2{get onPointerMove(){return this.disposables.add(new rt(this.el,Ut.Change)).event}get onPointerUp(){return this.disposables.add(new rt(this.el,Ut.End)).event}constructor(e){this.el=e,this.disposables=new G}dispose(){this.disposables.dispose()}}Fp([Mi],W2.prototype,"onPointerMove",null);Fp([Mi],W2.prototype,"onPointerUp",null);class $S{get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}constructor(e){this.factory=e}dispose(){}}Fp([Mi],$S.prototype,"onPointerMove",null);Fp([Mi],$S.prototype,"onPointerUp",null);const s3="pointer-events-disabled";class Vn extends W{get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(e){this._state!==e&&(this.el.classList.toggle("disabled",e===0),this.el.classList.toggle("minimum",e===1),this.el.classList.toggle("maximum",e===2),this._state=e,this.onDidEnablementChange.fire(e))}set orthogonalStartSash(e){if(this._orthogonalStartSash!==e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=i=>{this.orthogonalStartDragHandleDisposables.clear(),i!==0&&(this._orthogonalStartDragHandle=Q(this.el,te(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add(Ce(()=>this._orthogonalStartDragHandle.remove())),this.orthogonalStartDragHandleDisposables.add(new rt(this._orthogonalStartDragHandle,"mouseenter")).event(()=>Vn.onMouseEnter(e),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new rt(this._orthogonalStartDragHandle,"mouseleave")).event(()=>Vn.onMouseLeave(e),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalStartSash=e}}set orthogonalEndSash(e){if(this._orthogonalEndSash!==e){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){const t=i=>{this.orthogonalEndDragHandleDisposables.clear(),i!==0&&(this._orthogonalEndDragHandle=Q(this.el,te(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add(Ce(()=>this._orthogonalEndDragHandle.remove())),this.orthogonalEndDragHandleDisposables.add(new rt(this._orthogonalEndDragHandle,"mouseenter")).event(()=>Vn.onMouseEnter(e),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new rt(this._orthogonalEndDragHandle,"mouseleave")).event(()=>Vn.onMouseLeave(e),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalEndSash=e}}constructor(e,t,i){super(),this.hoverDelay=gde,this.hoverDelayer=this._register(new Vr(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new O),this._onDidStart=this._register(new O),this._onDidChange=this._register(new O),this._onDidReset=this._register(new O),this._onDidEnd=this._register(new O),this.orthogonalStartSashDisposables=this._register(new G),this.orthogonalStartDragHandleDisposables=this._register(new G),this.orthogonalEndSashDisposables=this._register(new G),this.orthogonalEndDragHandleDisposables=this._register(new G),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=Q(e,te(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),it&&this.el.classList.add("mac");const n=this._register(new rt(this.el,"mousedown")).event;this._register(n(h=>this.onPointerStart(h,new B2(e)),this));const s=this._register(new rt(this.el,"dblclick")).event;this._register(s(this.onPointerDoublePress,this));const r=this._register(new rt(this.el,"mouseenter")).event;this._register(r(()=>Vn.onMouseEnter(this)));const a=this._register(new rt(this.el,"mouseleave")).event;this._register(a(()=>Vn.onMouseLeave(this))),this._register(zt.addTarget(this.el));const l=this._register(new rt(this.el,Ut.Start)).event;this._register(l(h=>this.onPointerStart(h,new W2(this.el)),this));const d=this._register(new rt(this.el,Ut.Tap)).event;let c;this._register(d(h=>{if(c){clearTimeout(c),c=void 0,this.onPointerDoublePress(h);return}clearTimeout(c),c=setTimeout(()=>c=void 0,250)},this)),typeof i.size=="number"?(this.size=i.size,i.orientation===0?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=hde,this._register(ude.event(h=>{this.size=h,this.layout()}))),this._register(fde.event(h=>this.hoverDelay=h)),this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.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",cde),this.layout()}onPointerStart(e,t){lt.stop(e);let i=!1;if(!e.__orthogonalSashEvent){const f=this.getOrthogonalSash(e);f&&(i=!0,e.__orthogonalSashEvent=!0,f.onPointerStart(e,new $S(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new $S(t))),!this.state)return;const n=this.el.ownerDocument.getElementsByTagName("iframe");for(const f of n)f.classList.add(s3);const s=e.pageX,r=e.pageY,a=e.altKey,l={startX:s,currentX:s,startY:r,currentY:r,altKey:a};this.el.classList.add("active"),this._onDidStart.fire(l);const d=Fo(this.el),c=()=>{let f="";i?f="all-scroll":this.orientation===1?this.state===1?f="s-resize":this.state===2?f="n-resize":f=it?"row-resize":"ns-resize":this.state===1?f="e-resize":this.state===2?f="w-resize":f=it?"col-resize":"ew-resize",d.textContent=`* { cursor: ${f} !important; }`},h=new G;c(),i||this.onDidEnablementChange.event(c,null,h);const u=f=>{lt.stop(f,!1);const p={startX:s,currentX:f.pageX,startY:r,currentY:f.pageY,altKey:a};this._onDidChange.fire(p)},g=f=>{lt.stop(f,!1),this.el.removeChild(d),this.el.classList.remove("active"),this._onDidEnd.fire(),h.dispose();for(const p of n)p.classList.remove(s3)};t.onPointerMove(u,null,h),t.onPointerUp(g,null,h),h.add(t)}onPointerDoublePress(e){const t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(e,t=!1){e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger(()=>e.el.classList.add("hover"),e.hoverDelay).then(void 0,()=>{}),!t&&e.linkedSash&&Vn.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&Vn.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){Vn.onMouseLeave(this)}layout(){if(this.orientation===0){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(e){var t;const i=(t=e.initialTarget)!==null&&t!==void 0?t:e.target;if(!(!i||!_n(i))&&i.classList.contains("orthogonal-drag-handle"))return i.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash}dispose(){super.dispose(),this.el.remove()}}const mde={separatorBorder:z.transparent};class rH{set size(e){this._size=e}get size(){return this._size}get visible(){return typeof this._cachedVisibleSize>"u"}setVisible(e,t){var i,n;if(e!==this.visible){e?(this.size=hs(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof t=="number"?t:this.size,this.size=0),this.container.classList.toggle("visible",e);try{(n=(i=this.view).setVisible)===null||n===void 0||n.call(i,e)}catch(s){console.error("Splitview: Failed to set visible view"),console.error(s)}}}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 e;return(e=this.view.proportionalLayout)!==null&&e!==void 0?e:!0}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}constructor(e,t,i,n){this.container=e,this.view=t,this.disposable=n,this._cachedVisibleSize=void 0,typeof i=="number"?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}layout(e,t){this.layoutContainer(e);try{this.view.layout(this.size,e,t)}catch(i){console.error("Splitview: Failed to layout view"),console.error(i)}}dispose(){this.disposable.dispose()}}class pde extends rH{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class _de extends rH{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var dd;(function(o){o[o.Idle=0]="Idle",o[o.Busy=1]="Busy"})(dd||(dd={}));var jS;(function(o){o.Distribute={type:"distribute"};function e(n){return{type:"split",index:n}}o.Split=e;function t(n){return{type:"auto",index:n}}o.Auto=t;function i(n){return{type:"invisible",cachedVisibleSize:n}}o.Invisible=i})(jS||(jS={}));class aH extends W{get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}set orthogonalEndSash(e){for(const t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}constructor(e,t={}){var i,n,s,r,a;super(),this.size=0,this._contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=dd.Idle,this._onDidSashChange=this._register(new O),this._onDidSashReset=this._register(new O),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=(i=t.orientation)!==null&&i!==void 0?i:0,this.inverseAltBehavior=(n=t.inverseAltBehavior)!==null&&n!==void 0?n:!1,this.proportionalLayout=(s=t.proportionalLayout)!==null&&s!==void 0?s:!0,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(this.orientation===0?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=Q(this.el,te(".sash-container")),this.viewContainer=te(".split-view-container"),this.scrollable=this._register(new Ap({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:d=>ao(De(this.el),d)})),this.scrollableElement=this._register(new _L(this.viewContainer,{vertical:this.orientation===0?(r=t.scrollbarVisibility)!==null&&r!==void 0?r:1:2,horizontal:this.orientation===1?(a=t.scrollbarVisibility)!==null&&a!==void 0?a:1:2},this.scrollable));const l=this._register(new rt(this.viewContainer,"scroll")).event;this._register(l(d=>{const c=this.scrollableElement.getScrollPosition(),h=Math.abs(this.viewContainer.scrollLeft-c.scrollLeft)<=1?void 0:this.viewContainer.scrollLeft,u=Math.abs(this.viewContainer.scrollTop-c.scrollTop)<=1?void 0:this.viewContainer.scrollTop;(h!==void 0||u!==void 0)&&this.scrollableElement.setScrollPosition({scrollLeft:h,scrollTop:u})})),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll(d=>{d.scrollTopChanged&&(this.viewContainer.scrollTop=d.scrollTop),d.scrollLeftChanged&&(this.viewContainer.scrollLeft=d.scrollLeft)})),Q(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||mde),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach((d,c)=>{const h=Hs(d.visible)||d.visible?d.size:{type:"invisible",cachedVisibleSize:d.size},u=d.view;this.doAddView(u,h,c,!0)}),this._contentSize=this.viewItems.reduce((d,c)=>d+c.size,0),this.saveProportions())}style(e){e.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",e.separatorBorder.toString()))}addView(e,t,i=this.viewItems.length,n){this.doAddView(e,t,i,n)}layout(e,t){const i=Math.max(this.size,this._contentSize);if(this.size=e,this.layoutContext=t,this.proportions){let n=0;for(let s=0;s0&&(r.size=hs(Math.round(a*e/n),r.minimumSize,r.maximumSize))}}else{const n=Os(this.viewItems.length),s=n.filter(a=>this.viewItems[a].priority===1),r=n.filter(a=>this.viewItems[a].priority===2);this.resize(this.viewItems.length-1,e-i,void 0,s,r)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this._contentSize>0&&(this.proportions=this.viewItems.map(e=>e.proportionalLayout&&e.visible?e.size/this._contentSize:void 0))}onSashStart({sash:e,start:t,alt:i}){for(const a of this.viewItems)a.enabled=!1;const n=this.sashItems.findIndex(a=>a.sash===e),s=Wr(U(this.el.ownerDocument.body,"keydown",a=>r(this.sashDragState.current,a.altKey)),U(this.el.ownerDocument.body,"keyup",()=>r(this.sashDragState.current,!1))),r=(a,l)=>{const d=this.viewItems.map(f=>f.size);let c=Number.NEGATIVE_INFINITY,h=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(l=!l),l)if(n===this.sashItems.length-1){const p=this.viewItems[n];c=(p.minimumSize-p.size)/2,h=(p.maximumSize-p.size)/2}else{const p=this.viewItems[n+1];c=(p.size-p.maximumSize)/2,h=(p.size-p.minimumSize)/2}let u,g;if(!l){const f=Os(n,-1),p=Os(n+1,this.viewItems.length),_=f.reduce((I,T)=>I+(this.viewItems[T].minimumSize-d[T]),0),v=f.reduce((I,T)=>I+(this.viewItems[T].viewMaximumSize-d[T]),0),b=p.length===0?Number.POSITIVE_INFINITY:p.reduce((I,T)=>I+(d[T]-this.viewItems[T].minimumSize),0),C=p.length===0?Number.NEGATIVE_INFINITY:p.reduce((I,T)=>I+(d[T]-this.viewItems[T].viewMaximumSize),0),w=Math.max(_,C),S=Math.min(b,v),L=this.findFirstSnapIndex(f),D=this.findFirstSnapIndex(p);if(typeof L=="number"){const I=this.viewItems[L],T=Math.floor(I.viewMinimumSize/2);u={index:L,limitDelta:I.visible?w-T:w+T,size:I.size}}if(typeof D=="number"){const I=this.viewItems[D],T=Math.floor(I.viewMinimumSize/2);g={index:D,limitDelta:I.visible?S+T:S-T,size:I.size}}}this.sashDragState={start:a,current:a,index:n,sizes:d,minDelta:c,maxDelta:h,alt:l,snapBefore:u,snapAfter:g,disposable:s}};r(t,i)}onSashChange({current:e}){const{index:t,start:i,sizes:n,alt:s,minDelta:r,maxDelta:a,snapBefore:l,snapAfter:d}=this.sashDragState;this.sashDragState.current=e;const c=e-i,h=this.resize(t,c,n,void 0,void 0,r,a,l,d);if(s){const u=t===this.sashItems.length-1,g=this.viewItems.map(C=>C.size),f=u?t:t+1,p=this.viewItems[f],_=p.size-p.maximumSize,v=p.size-p.minimumSize,b=u?t-1:t+1;this.resize(b,-h,g,void 0,void 0,_,v)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const t of this.viewItems)t.enabled=!0}onViewChange(e,t){const i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t=typeof t=="number"?t:e.size,t=hs(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([i],void 0)))}resizeView(e,t){if(!(e<0||e>=this.viewItems.length)){if(this.state!==dd.Idle)throw new Error("Cant modify splitview");this.state=dd.Busy;try{const i=Os(this.viewItems.length).filter(a=>a!==e),n=[...i.filter(a=>this.viewItems[a].priority===1),e],s=i.filter(a=>this.viewItems[a].priority===2),r=this.viewItems[e];t=Math.round(t),t=hs(t,r.minimumSize,Math.min(r.maximumSize,this.size)),r.size=t,this.relayout(n,s)}finally{this.state=dd.Idle}}}distributeViewSizes(){const e=[];let t=0;for(const a of this.viewItems)a.maximumSize-a.minimumSize>0&&(e.push(a),t+=a.size);const i=Math.floor(t/e.length);for(const a of e)a.size=hs(i,a.minimumSize,a.maximumSize);const n=Os(this.viewItems.length),s=n.filter(a=>this.viewItems[a].priority===1),r=n.filter(a=>this.viewItems[a].priority===2);this.relayout(s,r)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,i=this.viewItems.length,n){if(this.state!==dd.Idle)throw new Error("Cant modify splitview");this.state=dd.Busy;try{const s=te(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(s):this.viewContainer.insertBefore(s,this.viewContainer.children.item(i));const r=e.onDidChange(u=>this.onViewChange(c,u)),a=Ce(()=>this.viewContainer.removeChild(s)),l=Wr(r,a);let d;typeof t=="number"?d=t:(t.type==="auto"&&(this.areViewsDistributed()?t={type:"distribute"}:t={type:"split",index:t.index}),t.type==="split"?d=this.getViewSize(t.index)/2:t.type==="invisible"?d={cachedVisibleSize:t.cachedVisibleSize}:d=e.minimumSize);const c=this.orientation===0?new pde(s,e,d,l):new _de(s,e,d,l);if(this.viewItems.splice(i,0,c),this.viewItems.length>1){const u={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},g=this.orientation===0?new Vn(this.sashContainer,{getHorizontalSashTop:I=>this.getSashPosition(I),getHorizontalSashWidth:this.getSashOrthogonalSize},{...u,orientation:1}):new Vn(this.sashContainer,{getVerticalSashLeft:I=>this.getSashPosition(I),getVerticalSashHeight:this.getSashOrthogonalSize},{...u,orientation:0}),f=this.orientation===0?I=>({sash:g,start:I.startY,current:I.currentY,alt:I.altKey}):I=>({sash:g,start:I.startX,current:I.currentX,alt:I.altKey}),_=ae.map(g.onDidStart,f)(this.onSashStart,this),b=ae.map(g.onDidChange,f)(this.onSashChange,this),w=ae.map(g.onDidEnd,()=>this.sashItems.findIndex(I=>I.sash===g))(this.onSashEnd,this),S=g.onDidReset(()=>{const I=this.sashItems.findIndex(B=>B.sash===g),T=Os(I,-1),V=Os(I+1,this.viewItems.length),P=this.findFirstSnapIndex(T),A=this.findFirstSnapIndex(V);typeof P=="number"&&!this.viewItems[P].visible||typeof A=="number"&&!this.viewItems[A].visible||this._onDidSashReset.fire(I)}),L=Wr(_,b,w,S,g),D={sash:g,disposable:L};this.sashItems.splice(i-1,0,D)}s.appendChild(e.element);let h;typeof t!="number"&&t.type==="split"&&(h=[t.index]),n||this.relayout([i],h),!n&&typeof t!="number"&&t.type==="distribute"&&this.distributeViewSizes()}finally{this.state=dd.Idle}}relayout(e,t){const i=this.viewItems.reduce((n,s)=>n+s.size,0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,i=this.viewItems.map(c=>c.size),n,s,r=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,l,d){if(e<0||e>=this.viewItems.length)return 0;const c=Os(e,-1),h=Os(e+1,this.viewItems.length);if(s)for(const D of s)aD(c,D),aD(h,D);if(n)for(const D of n)CC(c,D),CC(h,D);const u=c.map(D=>this.viewItems[D]),g=c.map(D=>i[D]),f=h.map(D=>this.viewItems[D]),p=h.map(D=>i[D]),_=c.reduce((D,I)=>D+(this.viewItems[I].minimumSize-i[I]),0),v=c.reduce((D,I)=>D+(this.viewItems[I].maximumSize-i[I]),0),b=h.length===0?Number.POSITIVE_INFINITY:h.reduce((D,I)=>D+(i[I]-this.viewItems[I].minimumSize),0),C=h.length===0?Number.NEGATIVE_INFINITY:h.reduce((D,I)=>D+(i[I]-this.viewItems[I].maximumSize),0),w=Math.max(_,C,r),S=Math.min(b,v,a);let L=!1;if(l){const D=this.viewItems[l.index],I=t>=l.limitDelta;L=I!==D.visible,D.setVisible(I,l.size)}if(!L&&d){const D=this.viewItems[d.index],I=ta+l.size,0);let i=this.size-t;const n=Os(this.viewItems.length-1,-1),s=n.filter(a=>this.viewItems[a].priority===1),r=n.filter(a=>this.viewItems[a].priority===2);for(const a of r)aD(n,a);for(const a of s)CC(n,a);typeof e=="number"&&CC(n,e);for(let a=0;i!==0&&at+i.size,0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach(t=>t.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 e=!1;const t=this.viewItems.map(l=>e=l.size-l.minimumSize>0||e);e=!1;const i=this.viewItems.map(l=>e=l.maximumSize-l.size>0||e),n=[...this.viewItems].reverse();e=!1;const s=n.map(l=>e=l.size-l.minimumSize>0||e).reverse();e=!1;const r=n.map(l=>e=l.maximumSize-l.size>0||e).reverse();let a=0;for(let l=0;l0||this.startSnappingEnabled)?d.state=1:b&&t[l]&&(a0)return;if(!i.visible&&i.snap)return t}}areViewsDistributed(){let e,t;for(const i of this.viewItems)if(e=e===void 0?i.size:Math.min(e,i.size),t=t===void 0?i.size:Math.max(t,i.size),t-e>2)return!1;return!0}dispose(){var e;(e=this.sashDragState)===null||e===void 0||e.disposable.dispose(),Pt(this.viewItems),this.viewItems=[],this.sashItems.forEach(t=>t.disposable.dispose()),this.sashItems=[],super.dispose()}}class Q0{constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=Q0.TemplateId,this.renderedTemplates=new Set;const n=new Map(t.map(s=>[s.templateId,s]));this.renderers=[];for(const s of e){const r=n.get(s.templateId);if(!r)throw new Error(`Table cell renderer for template id ${s.templateId} not found.`);this.renderers.push(r)}}renderTemplate(e){const t=Q(e,te(".monaco-table-tr")),i=[],n=[];for(let r=0;rthis.disposables.add(new bde(c,h))),l={size:a.reduce((c,h)=>c+h.column.weight,0),views:a.map(c=>({size:c.column.weight,view:c}))};this.splitview=this.disposables.add(new aH(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:l})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;const d=new Q0(n,s,c=>this.splitview.getViewSize(c));this.list=this.disposables.add(new $o(e,this.domNode,vde(i),[d],r)),ae.any(...a.map(c=>c.onDidLayout))(([c,h])=>d.layoutColumn(c,h),null,this.disposables),this.splitview.onDidSashReset(c=>{const h=n.reduce((g,f)=>g+f.weight,0),u=n[c].weight/h*this.cachedWidth;this.splitview.resizeView(c,u)},null,this.disposables),this.styleElement=Fo(this.domNode),this.style(Xae)}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){const t=[];t.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=t.join(` +`),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}KL.InstanceCount=0;var So;(function(o){o[o.Expanded=0]="Expanded",o[o.Collapsed=1]="Collapsed",o[o.PreserveOrExpanded=2]="PreserveOrExpanded",o[o.PreserveOrCollapsed=3]="PreserveOrCollapsed"})(So||(So={}));var ju;(function(o){o[o.Unknown=0]="Unknown",o[o.Twistie=1]="Twistie",o[o.Element=2]="Element",o[o.Filter=3]="Filter"})(ju||(ju={}));class Io extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class H2{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}function V2(o){return typeof o=="object"&&"visibility"in o&&"data"in o}function Tb(o){switch(o){case!0:return 1;case!1:return 0;default:return o}}function Ik(o){return typeof o.collapsible=="boolean"}class Cde{constructor(e,t,i,n={}){var s;this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new zy,this._onDidChangeCollapseState=new O,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new O,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new O,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new Vr(E9),this.collapseByDefault=typeof n.collapseByDefault>"u"?!1:n.collapseByDefault,this.allowNonCollapsibleParents=(s=n.allowNonCollapsibleParents)!==null&&s!==void 0?s:!1,this.filter=n.filter,this.autoExpandSingleChildren=typeof n.autoExpandSingleChildren>"u"?!1:n.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,i=dt.empty(),n={}){if(e.length===0)throw new Io(this.user,"Invalid tree location");n.diffIdentityProvider?this.spliceSmart(n.diffIdentityProvider,e,t,i,n):this.spliceSimple(e,t,i,n)}spliceSmart(e,t,i,n,s,r){var a;n===void 0&&(n=dt.empty()),r===void 0&&(r=(a=s.diffDepth)!==null&&a!==void 0?a:0);const{parentNode:l}=this.getParentNodeWithListIndex(t);if(!l.lastDiffIds)return this.spliceSimple(t,i,n,s);const d=[...n],c=t[t.length-1],h=new hl({getElements:()=>l.lastDiffIds},{getElements:()=>[...l.children.slice(0,c),...d,...l.children.slice(c+i)].map(_=>e.getId(_.element).toString())}).ComputeDiff(!1);if(h.quitEarly)return l.lastDiffIds=void 0,this.spliceSimple(t,i,d,s);const u=t.slice(0,-1),g=(_,v,b)=>{if(r>0)for(let C=0;Cb.originalStart-v.originalStart))g(f,p,f-(_.originalStart+_.originalLength)),f=_.originalStart,p=_.modifiedStart-c,this.spliceSimple([...u,f],_.originalLength,dt.slice(d,p,p+_.modifiedLength),s);g(f,p,f)}spliceSimple(e,t,i=dt.empty(),{onDidCreateNode:n,onDidDeleteNode:s,diffIdentityProvider:r}){const{parentNode:a,listIndex:l,revealed:d,visible:c}=this.getParentNodeWithListIndex(e),h=[],u=dt.map(i,S=>this.createTreeNode(S,a,a.visible?1:0,d,h,n)),g=e[e.length-1];let f=0;for(let S=g;S>=0&&Sr.getId(S.element).toString())):a.lastDiffIds=a.children.map(S=>r.getId(S.element).toString()):a.lastDiffIds=void 0;let C=0;for(const S of b)S.visible&&C++;if(C!==0)for(let S=g+p.length;SL+(D.visible?D.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(a,v-S),this.list.splice(l,S,h)}if(b.length>0&&s){const S=L=>{s(L),L.children.forEach(S)};b.forEach(S)}this._onDidSplice.fire({insertedNodes:p,deletedNodes:b});let w=a;for(;w;){if(w.visibility===2){this.refilterDelayer.trigger(()=>this.refilter());break}w=w.parent}}rerender(e){if(e.length===0)throw new Io(this.user,"Invalid tree location");const{node:t,listIndex:i,revealed:n}=this.getTreeNodeWithListIndex(e);t.visible&&n&&this.list.splice(i,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:i,revealed:n}=this.getTreeNodeWithListIndex(e);return i&&n?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const i=this.getTreeNode(e);typeof t>"u"&&(t=!i.collapsible);const n={collapsible:t};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,n))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){const n=this.getTreeNode(e);typeof t>"u"&&(t=!n.collapsed);const s={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,s))}_setCollapseState(e,t){const{node:i,listIndex:n,revealed:s}=this.getTreeNodeWithListIndex(e),r=this._setListNodeCollapseState(i,n,s,t);if(i!==this.root&&this.autoExpandSingleChildren&&r&&!Ik(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let a=-1;for(let l=0;l-1){a=-1;break}else a=l;a>-1&&this._setCollapseState([...e,a],t)}return r}_setListNodeCollapseState(e,t,i,n){const s=this._setNodeCollapseState(e,n,!1);if(!i||!e.visible||!s)return s;const r=e.renderNodeCount,a=this.updateNodeAfterCollapseChange(e),l=r-(t===-1?0:1);return this.list.splice(t+1,l,a.slice(1)),s}_setNodeCollapseState(e,t,i){let n;if(e===this.root?n=!1:(Ik(t)?(n=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(n=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):n=!1,n&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!Ik(t)&&t.recursive)for(const s of e.children)n=this._setNodeCollapseState(s,t,!0)||n;return n}expandTo(e){this.eventBufferer.bufferEvents(()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})})}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}createTreeNode(e,t,i,n,s,r){const a={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof e.collapsible=="boolean"?e.collapsible:typeof e.collapsed<"u",collapsed:typeof e.collapsed>"u"?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},l=this._filterNode(a,i);a.visibility=l,n&&s.push(a);const d=e.children||dt.empty(),c=n&&l!==0&&!a.collapsed;let h=0,u=1;for(const g of d){const f=this.createTreeNode(g,a,l,c,s,r);a.children.push(f),u+=f.renderNodeCount,f.visible&&(f.visibleChildIndex=h++)}return this.allowNonCollapsibleParents||(a.collapsible=a.collapsible||a.children.length>0),a.visibleChildrenCount=h,a.visible=l===2?h>0:l===1,a.visible?a.collapsed||(a.renderNodeCount=u):(a.renderNodeCount=0,n&&s.pop()),r==null||r(a),a}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterCollapseChange(e,t){if(e.visible===!1)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i,n=!0){let s;if(e!==this.root){if(s=this._filterNode(e,t),s===0)return e.visible=!1,e.renderNodeCount=0,!1;n&&i.push(e)}const r=i.length;e.renderNodeCount=e===this.root?0:1;let a=!1;if(!e.collapsed||s!==0){let l=0;for(const d of e.children)a=this._updateNodeAfterFilterChange(d,s,i,n&&!e.collapsed)||a,d.visible&&(d.visibleChildIndex=l++);e.visibleChildrenCount=l}else e.visibleChildrenCount=0;return e!==this.root&&(e.visible=s===2?a:s===1,e.visibility=s),e.visible?e.collapsed||(e.renderNodeCount+=i.length-r):(e.renderNodeCount=0,n&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(t!==0)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const i=this.filter?this.filter.filter(e.element,t):1;return typeof i=="boolean"?(e.filterData=void 0,i?1:0):V2(i)?(e.filterData=i.data,Tb(i.visibility)):(e.filterData=void 0,Tb(i))}hasTreeNode(e,t=this.root){if(!e||e.length===0)return!0;const[i,...n]=e;return i<0||i>t.children.length?!1:this.hasTreeNode(n,t.children[i])}getTreeNode(e,t=this.root){if(!e||e.length===0)return t;const[i,...n]=e;if(i<0||i>t.children.length)throw new Io(this.user,"Invalid tree location");return this.getTreeNode(n,t.children[i])}getTreeNodeWithListIndex(e){if(e.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:i,revealed:n,visible:s}=this.getParentNodeWithListIndex(e),r=e[e.length-1];if(r<0||r>t.children.length)throw new Io(this.user,"Invalid tree location");const a=t.children[r];return{node:a,listIndex:i,revealed:n,visible:s&&a.visible}}getParentNodeWithListIndex(e,t=this.root,i=0,n=!0,s=!0){const[r,...a]=e;if(r<0||r>t.children.length)throw new Io(this.user,"Invalid tree location");for(let l=0;lt.element)),this.data=e}}function Ek(o){return o instanceof j0?new wde(o):o}class Sde{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=W.None,this.disposables=new G}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(i=>i.element),t)}onDragStart(e,t){var i,n;(n=(i=this.dnd).onDragStart)===null||n===void 0||n.call(i,Ek(e),t)}onDragOver(e,t,i,n,s,r=!0){const a=this.dnd.onDragOver(Ek(e),t&&t.element,i,n,s),l=this.autoExpandNode!==t;if(l&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),typeof t>"u")return a;if(l&&typeof a!="boolean"&&a.autoExpand&&(this.autoExpandDisposable=Sh(()=>{const g=this.modelProvider(),f=g.getNodeLocation(t);g.isCollapsed(f)&&g.setCollapsed(f,!1),this.autoExpandNode=void 0},500,this.disposables)),typeof a=="boolean"||!a.accept||typeof a.bubble>"u"||a.feedback){if(!r){const g=typeof a=="boolean"?a:a.accept,f=typeof a=="boolean"?void 0:a.effect;return{accept:g,effect:f,feedback:[i]}}return a}if(a.bubble===1){const g=this.modelProvider(),f=g.getNodeLocation(t),p=g.getParentNodeLocation(f),_=g.getNode(p),v=p&&g.getListIndex(p);return this.onDragOver(e,_,v,n,s,!1)}const d=this.modelProvider(),c=d.getNodeLocation(t),h=d.getListIndex(c),u=d.getListRenderCount(c);return{...a,feedback:Os(h,h+u)}}drop(e,t,i,n,s){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(Ek(e),t&&t.element,i,n,s)}onDragEnd(e){var t,i;(i=(t=this.dnd).onDragEnd)===null||i===void 0||i.call(t,e)}dispose(){this.disposables.dispose(),this.dnd.dispose()}}function yde(o,e){return e&&{...e,identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(t.element)}},dnd:e.dnd&&new Sde(o,e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent(t){return e.multipleSelectionController.isSelectionSingleChangeEvent({...t,element:t.element})},isSelectionRangeChangeEvent(t){return e.multipleSelectionController.isSelectionRangeChangeEvent({...t,element:t.element})}},accessibilityProvider:e.accessibilityProvider&&{...e.accessibilityProvider,getSetSize(t){const i=o(),n=i.getNodeLocation(t),s=i.getParentNodeLocation(n);return i.getNode(s).visibleChildrenCount},getPosInSet(t){return t.visibleChildIndex+1},isChecked:e.accessibilityProvider&&e.accessibilityProvider.isChecked?t=>e.accessibilityProvider.isChecked(t.element):void 0,getRole:e.accessibilityProvider&&e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",getAriaLabel(t){return e.accessibilityProvider.getAriaLabel(t.element)},getWidgetAriaLabel(){return e.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:e.accessibilityProvider&&e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider&&e.accessibilityProvider.getAriaLevel?t=>e.accessibilityProvider.getAriaLevel(t.element):t=>t.depth,getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{...e.keyboardNavigationLabelProvider,getKeyboardNavigationLabel(t){return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}}}}class z2{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){var i,n;(n=(i=this.delegate).setDynamicHeight)===null||n===void 0||n.call(i,e.element,t)}}var lp;(function(o){o.None="none",o.OnHover="onHover",o.Always="always"})(lp||(lp={}));class Lde{get elements(){return this._elements}constructor(e,t=[]){this._elements=t,this.disposables=new G,this.onDidChange=ae.forEach(e,i=>this._elements=i,this.disposables)}dispose(){this.disposables.dispose()}}class Mb{constructor(e,t,i,n,s,r={}){var a;this.renderer=e,this.modelProvider=t,this.activeNodes=n,this.renderedIndentGuides=s,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=Mb.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.activeIndentNodes=new Set,this.indentGuidesDisposable=W.None,this.disposables=new G,this.templateId=e.templateId,this.updateOptions(r),ae.map(i,l=>l.node)(this.onDidChangeNodeTwistieState,this,this.disposables),(a=e.onDidChangeTwistieState)===null||a===void 0||a.call(e,this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if(typeof e.indent<"u"){const t=hs(e.indent,0,40);if(t!==this.indent){this.indent=t;for(const[i,n]of this.renderedNodes)this.renderTreeElement(i,n)}}if(typeof e.renderIndentGuides<"u"){const t=e.renderIndentGuides!==lp.None;if(t!==this.shouldRenderIndentGuides){this.shouldRenderIndentGuides=t;for(const[i,n]of this.renderedNodes)this._renderIndentGuides(i,n);if(this.indentGuidesDisposable.dispose(),t){const i=new G;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,i),this.indentGuidesDisposable=i,this._onDidChangeActiveNodes(this.activeNodes.elements)}}}typeof e.hideTwistiesOfChildlessElements<"u"&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=Q(e,te(".monaco-tl-row")),i=Q(t,te(".monaco-tl-indent")),n=Q(t,te(".monaco-tl-twistie")),s=Q(t,te(".monaco-tl-contents")),r=this.renderer.renderTemplate(s);return{container:e,indent:i,twistie:n,indentGuidesDisposable:W.None,templateData:r}}renderElement(e,t,i,n){this.renderedNodes.set(e,i),this.renderedElements.set(e.element,e),this.renderTreeElement(e,i),this.renderer.renderElement(e,t,i.templateData,n)}disposeElement(e,t,i,n){var s,r;i.indentGuidesDisposable.dispose(),(r=(s=this.renderer).disposeElement)===null||r===void 0||r.call(s,e,t,i.templateData,n),typeof n=="number"&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);t&&(this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderTreeElement(e,t))}renderTreeElement(e,t){const i=Mb.DefaultIndent+(e.depth-1)*this.indent;t.twistie.style.paddingLeft=`${i}px`,t.indent.style.width=`${i+this.indent-16}px`,e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded"),t.twistie.classList.remove(...Te.asClassNameArray(oe.treeItemExpanded));let n=!1;this.renderer.renderTwistie&&(n=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(n||t.twistie.classList.add(...Te.asClassNameArray(oe.treeItemExpanded)),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),this._renderIndentGuides(e,t)}_renderIndentGuides(e,t){if(xn(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const i=new G,n=this.modelProvider();for(;;){const s=n.getNodeLocation(e),r=n.getParentNodeLocation(s);if(!r)break;const a=n.getNode(r),l=te(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(a)&&l.classList.add("active"),t.indent.childElementCount===0?t.indent.appendChild(l):t.indent.insertBefore(l,t.indent.firstElementChild),this.renderedIndentGuides.add(a,l),i.add(Ce(()=>this.renderedIndentGuides.delete(a,l))),e=a}t.indentGuidesDisposable=i}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,i=this.modelProvider();e.forEach(n=>{const s=i.getNodeLocation(n);try{const r=i.getParentNodeLocation(s);n.collapsible&&n.children.length>0&&!n.collapsed?t.add(n):r&&t.add(i.getNode(r))}catch{}}),this.activeIndentNodes.forEach(n=>{t.has(n)||this.renderedIndentGuides.forEach(n,s=>s.classList.remove("active"))}),t.forEach(n=>{this.activeIndentNodes.has(n)||this.renderedIndentGuides.forEach(n,s=>s.classList.add("active"))}),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Pt(this.disposables)}}Mb.DefaultIndent=8;class xde{get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new G,e.onWillRefilter(this.reset,this,this.disposables)}filter(e,t){let i=1;if(this._filter){const r=this._filter.filter(e,t);if(typeof r=="boolean"?i=r?1:0:V2(r)?i=Tb(r.visibility):i=r,i===0)return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:ya.Default,visibility:i};const n=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),s=Array.isArray(n)?n:[n];for(const r of s){const a=r&&r.toString();if(typeof a>"u")return{data:ya.Default,visibility:i};let l;if(this.tree.findMatchType===yg.Contiguous){const d=a.toLowerCase().indexOf(this._lowercasePattern);if(d>-1){l=[Number.MAX_SAFE_INTEGER,0];for(let c=this._lowercasePattern.length;c>0;c--)l.push(d+c-1)}}else l=Cg(this._pattern,this._lowercasePattern,0,a,a.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(l)return this._matchCount++,s.length===1?{data:l,visibility:i}:{data:{label:a,score:l},visibility:i}}return this.tree.findMode===Bd.Filter?typeof this.tree.options.defaultFindVisibility=="number"?this.tree.options.defaultFindVisibility:this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility(e):2:{data:ya.Default,visibility:i}}reset(){this._totalCount=0,this._matchCount=0}dispose(){Pt(this.disposables)}}var Bd;(function(o){o[o.Highlight=0]="Highlight",o[o.Filter=1]="Filter"})(Bd||(Bd={}));var yg;(function(o){o[o.Fuzzy=0]="Fuzzy",o[o.Contiguous=1]="Contiguous"})(yg||(yg={}));let Dde=class{get pattern(){return this._pattern}get mode(){return this._mode}set mode(e){e!==this._mode&&(this._mode=e,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire(e))}get matchType(){return this._matchType}set matchType(e){e!==this._matchType&&(this._matchType=e,this.widget&&(this.widget.matchType=this._matchType),this.tree.refilter(),this.render(),this._onDidChangeMatchType.fire(e))}constructor(e,t,i,n,s,r={}){var a,l;this.tree=e,this.view=i,this.filter=n,this.contextViewProvider=s,this.options=r,this._pattern="",this.width=0,this._onDidChangeMode=new O,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangeMatchType=new O,this.onDidChangeMatchType=this._onDidChangeMatchType.event,this._onDidChangePattern=new O,this._onDidChangeOpenState=new O,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new G,this.disposables=new G,this._mode=(a=e.options.defaultFindMode)!==null&&a!==void 0?a:Bd.Highlight,this._matchType=(l=e.options.defaultFindMatchType)!==null&&l!==void 0?l:yg.Fuzzy,t.onDidSplice(this.onDidSpliceModel,this,this.disposables)}updateOptions(e={}){e.defaultFindMode!==void 0&&(this.mode=e.defaultFindMode),e.defaultFindMatchType!==void 0&&(this.matchType=e.defaultFindMatchType)}onDidSpliceModel(){!this.widget||this.pattern.length===0||(this.tree.refilter(),this.render())}render(){var e,t,i,n;const s=this.filter.totalCount>0&&this.filter.matchCount===0;this.pattern&&s?!((e=this.tree.options.showNotFoundMessage)!==null&&e!==void 0)||e?(t=this.widget)===null||t===void 0||t.showMessage({type:2,content:m("not found","No elements found.")}):(i=this.widget)===null||i===void 0||i.showMessage({type:2}):(n=this.widget)===null||n===void 0||n.clearMessage()}shouldAllowFocus(e){return!this.widget||!this.pattern||this.filter.totalCount>0&&this.filter.matchCount<=1?!0:!ya.isDefault(e.filterData)}layout(e){var t;this.width=e,(t=this.widget)===null||t===void 0||t.layout(e)}dispose(){this._history=void 0,this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}};function kde(o,e){return o.position===e.position&&lH(o,e)}function lH(o,e){return o.node.element===e.node.element&&o.startIndex===e.startIndex&&o.height===e.height&&o.endIndex===e.endIndex}class Ide{constructor(e=[]){this.stickyNodes=e}get count(){return this.stickyNodes.length}equal(e){return di(this.stickyNodes,e.stickyNodes,kde)}lastNodePartiallyVisible(){if(this.count===0)return!1;const e=this.stickyNodes[this.count-1];if(this.count===1)return e.position!==0;const t=this.stickyNodes[this.count-2];return t.position+t.height!==e.position}animationStateChanged(e){if(!di(this.stickyNodes,e.stickyNodes,lH)||this.count===0)return!1;const t=this.stickyNodes[this.count-1],i=e.stickyNodes[e.count-1];return t.position!==i.position}}class Ede{constrainStickyScrollNodes(e,t,i){for(let n=0;ni||n>=t)return e.slice(0,n)}return e}}let o3=class extends W{constructor(e,t,i,n,s,r={}){var a;super(),this.tree=e,this.model=t,this.view=i,this.treeDelegate=s,this.maxWidgetViewRatio=.4;const l=this.validateStickySettings(r);this.stickyScrollMaxItemCount=l.stickyScrollMaxItemCount,this.stickyScrollDelegate=(a=r.stickyScrollDelegate)!==null&&a!==void 0?a:new Ede,this._widget=this._register(new Nde(i.getScrollableElement(),i,e,n,s,r.accessibilityProvider)),this.onDidChangeHasFocus=this._widget.onDidChangeHasFocus,this.onContextMenu=this._widget.onContextMenu,this._register(i.onDidScroll(()=>this.update())),this._register(i.onDidChangeContentHeight(()=>this.update())),this._register(e.onDidChangeCollapseState(()=>this.update())),this.update()}get height(){return this._widget.height}getNodeAtHeight(e){let t;if(e===0?t=this.view.firstVisibleIndex:t=this.view.indexAt(e+this.view.scrollTop),!(t<0||t>=this.view.length))return this.view.element(t)}update(){const e=this.getNodeAtHeight(0);if(!e||this.tree.scrollTop===0){this._widget.setState(void 0);return}const t=this.findStickyState(e);this._widget.setState(t)}findStickyState(e){const t=[];let i=e,n=0,s=this.getNextStickyNode(i,void 0,n);for(;s&&(t.push(s),n+=s.height,!(t.length<=this.stickyScrollMaxItemCount&&(i=this.getNextVisibleNode(s),!i)));)s=this.getNextStickyNode(i,s.node,n);const r=this.constrainStickyNodes(t);return r.length?new Ide(r):void 0}getNextVisibleNode(e){return this.getNodeAtHeight(e.position+e.height)}getNextStickyNode(e,t,i){const n=this.getAncestorUnderPrevious(e,t);if(n&&!(n===e&&(!this.nodeIsUncollapsedParent(e)||this.nodeTopAlignsWithStickyNodesBottom(e,i))))return this.createStickyScrollNode(n,i)}nodeTopAlignsWithStickyNodesBottom(e,t){const i=this.getNodeIndex(e),n=this.view.getElementTop(i),s=t;return this.view.scrollTop===n-s}createStickyScrollNode(e,t){const i=this.treeDelegate.getHeight(e),{startIndex:n,endIndex:s}=this.getNodeRange(e),r=this.calculateStickyNodePosition(s,t,i);return{node:e,position:r,height:i,startIndex:n,endIndex:s}}getAncestorUnderPrevious(e,t=void 0){let i=e,n=this.getParentNode(i);for(;n;){if(n===t)return i;i=n,n=this.getParentNode(i)}if(t===void 0)return i}calculateStickyNodePosition(e,t,i){let n=this.view.getRelativeTop(e);if(n===null&&this.view.firstVisibleIndex===e&&e+1l&&t<=l?l-i:t}constrainStickyNodes(e){if(e.length===0)return[];const t=this.view.renderHeight*this.maxWidgetViewRatio,i=e[e.length-1];if(e.length<=this.stickyScrollMaxItemCount&&i.position+i.height<=t)return e;const n=this.stickyScrollDelegate.constrainStickyScrollNodes(e,this.stickyScrollMaxItemCount,t);if(!n.length)return[];const s=n[n.length-1];if(n.length>this.stickyScrollMaxItemCount||s.position+s.height>t)throw new Error("stickyScrollDelegate violates constraints");return n}getParentNode(e){const t=this.model.getNodeLocation(e),i=this.model.getParentNodeLocation(t);return i?this.model.getNode(i):void 0}nodeIsUncollapsedParent(e){const t=this.model.getNodeLocation(e);return this.model.getListRenderCount(t)>1}getNodeIndex(e){const t=this.model.getNodeLocation(e);return this.model.getListIndex(t)}getNodeRange(e){const t=this.model.getNodeLocation(e),i=this.model.getListIndex(t);if(i<0)throw new Error("Node not found in tree");const n=this.model.getListRenderCount(t),s=i+n-1;return{startIndex:i,endIndex:s}}nodePositionTopBelowWidget(e){const t=[];let i=this.getParentNode(e);for(;i;)t.push(i),i=this.getParentNode(i);let n=0;for(let s=0;s0,i=!!e&&e.count>0;if(!t&&!i||t&&i&&this._previousState.equal(e))return;if(t!==i&&this.setVisible(i),!i){this._previousState=void 0,this._previousElements=[],this._previousStateDisposables.clear();return}const n=e.stickyNodes[e.count-1];if(this._previousState&&e.animationStateChanged(this._previousState))this._previousElements[this._previousState.count-1].style.top=`${n.position}px`;else{this._previousStateDisposables.clear();const s=Array(e.count);for(let r=e.count-1;r>=0;r--){const a=e.stickyNodes[r],{element:l,disposable:d}=this.createElement(a,r,e.count);s[r]=l,this._rootDomNode.appendChild(l),this._previousStateDisposables.add(d)}this.stickyScrollFocus.updateElements(s,e),this._previousElements=s}this._previousState=e,this._rootDomNode.style.height=`${n.position+n.height}px`}createElement(e,t,i){const n=e.startIndex,s=document.createElement("div");s.style.top=`${e.position}px`,this.tree.options.setRowHeight!==!1&&(s.style.height=`${e.height}px`),this.tree.options.setRowLineHeight!==!1&&(s.style.lineHeight=`${e.height}px`),s.classList.add("monaco-tree-sticky-row"),s.classList.add("monaco-list-row"),s.setAttribute("data-index",`${n}`),s.setAttribute("data-parity",n%2===0?"even":"odd"),s.setAttribute("id",this.view.getElementID(n));const r=this.setAccessibilityAttributes(s,e.node.element,t,i),a=this.treeDelegate.getTemplateId(e.node),l=this.treeRenderers.find(u=>u.templateId===a);if(!l)throw new Error(`No renderer found for template id ${a}`);let d=e.node;d===this.tree.getNode(this.tree.getNodeLocation(e.node))&&(d=new Proxy(e.node,{}));const c=l.renderTemplate(s);l.renderElement(d,e.startIndex,c,e.height);const h=Ce(()=>{r.dispose(),l.disposeElement(d,e.startIndex,c,e.height),l.disposeTemplate(c),s.remove()});return{element:s,disposable:h}}setAccessibilityAttributes(e,t,i,n){var s;if(!this.accessibilityProvider)return W.None;this.accessibilityProvider.getSetSize&&e.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(t,i,n))),this.accessibilityProvider.getPosInSet&&e.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(t,i))),this.accessibilityProvider.getRole&&e.setAttribute("role",(s=this.accessibilityProvider.getRole(t))!==null&&s!==void 0?s:"treeitem");const r=this.accessibilityProvider.getAriaLabel(t),a=r&&typeof r!="string"?r:ma(r),l=Xe(c=>{const h=c.readObservable(a);h?e.setAttribute("aria-label",h):e.removeAttribute("aria-label")});typeof r=="string"||r&&e.setAttribute("aria-label",r.get());const d=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(t);return typeof d=="number"&&e.setAttribute("aria-level",`${d}`),e.setAttribute("aria-selected",String(!1)),l}setVisible(e){this._rootDomNode.classList.toggle("empty",!e),e||this.stickyScrollFocus.updateElements([],void 0)}domFocus(){this.stickyScrollFocus.domFocus()}focusedLast(){return this.stickyScrollFocus.focusedLast()}dispose(){this.stickyScrollFocus.dispose(),this._previousStateDisposables.dispose(),this._rootDomNode.remove()}};class Tde extends W{get domHasFocus(){return this._domHasFocus}set domHasFocus(e){e!==this._domHasFocus&&(this._onDidChangeHasFocus.fire(e),this._domHasFocus=e)}constructor(e,t){super(),this.container=e,this.view=t,this.focusedIndex=-1,this.elements=[],this._onDidChangeHasFocus=new O,this.onDidChangeHasFocus=this._onDidChangeHasFocus.event,this._onContextMenu=new O,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(i=>this.onKeyDown(i))),this._register(this.view.onMouseDown(i=>this.onMouseDown(i))),this._register(this.view.onContextMenu(i=>this.handleContextMenu(i)))}handleContextMenu(e){const t=e.browserEvent.target;if(!Ib(t)&&!Lv(t)){this.focusedLast()&&this.view.domFocus();return}if(!Mc(e.browserEvent)){if(!this.state)throw new Error("Context menu should not be triggered when state is undefined");const r=this.state.stickyNodes.findIndex(a=>{var l;return a.node.element===((l=e.element)===null||l===void 0?void 0:l.element)});if(r===-1)throw new Error("Context menu should not be triggered when element is not in sticky scroll widget");this.container.focus(),this.setFocus(r);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");const n=this.state.stickyNodes[this.focusedIndex].node.element,s=this.elements[this.focusedIndex];this._onContextMenu.fire({element:n,anchor:s,browserEvent:e.browserEvent,isStickyScroll:!0})}onKeyDown(e){if(this.domHasFocus&&this.state){if(e.key==="ArrowUp")this.setFocusedElement(Math.max(0,this.focusedIndex-1)),e.preventDefault(),e.stopPropagation();else if(e.key==="ArrowDown"||e.key==="ArrowRight"){if(this.focusedIndex>=this.state.count-1){const t=this.state.stickyNodes[this.state.count-1].startIndex+1;this.view.domFocus(),this.view.setFocus([t]),this.scrollNodeUnderWidget(t,this.state)}else this.setFocusedElement(this.focusedIndex+1);e.preventDefault(),e.stopPropagation()}}}onMouseDown(e){const t=e.browserEvent.target;!Ib(t)&&!Lv(t)||(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation())}updateElements(e,t){if(t&&t.count===0)throw new Error("Sticky scroll state must be undefined when there are no sticky nodes");if(t&&t.count!==e.length)throw new Error("Sticky scroll focus received illigel state");const i=this.focusedIndex;if(this.removeFocus(),this.elements=e,this.state=t,t){const n=hs(i,0,t.count-1);this.setFocus(n)}else this.domHasFocus&&this.view.domFocus();this.container.tabIndex=t?0:-1}setFocusedElement(e){const t=this.state;if(!t)throw new Error("Cannot set focus when state is undefined");if(this.setFocus(e),!(e1?t.stickyNodes[t.count-2]:void 0,s=this.view.getElementTop(e),r=n?n.position+n.height+i.height:i.height;this.view.scrollTop=s-r}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(e){if(0>e)throw new Error("addFocus() can not remove focus");if(!this.state&&e>=0)throw new Error("Cannot set focus index when state is undefined");if(this.state&&e>=this.state.count)throw new Error("Cannot set focus index to an index that does not exist");const t=this.focusedIndex;t>=0&&this.toggleElementFocus(this.elements[t],!1),e>=0&&this.toggleElementFocus(this.elements[e],!0),this.focusedIndex=e}toggleElementFocus(e,t){this.toggleElementActiveFocus(e,t&&this.domHasFocus),this.toggleElementPassiveFocus(e,t)}toggleCurrentElementActiveFocus(e){this.focusedIndex!==-1&&this.toggleElementActiveFocus(this.elements[this.focusedIndex],e)}toggleElementActiveFocus(e,t){e.classList.toggle("focused",t)}toggleElementPassiveFocus(e,t){e.classList.toggle("passive-focused",t)}toggleStickyScrollFocused(e){this.view.getHTMLElement().classList.toggle("sticky-scroll-focused",e)}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()}}function c1(o){let e=ju.Unknown;return yD(o.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?e=ju.Twistie:yD(o.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?e=ju.Element:yD(o.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(e=ju.Filter),{browserEvent:o.browserEvent,element:o.element?o.element.element:null,target:e}}function Mde(o){const e=Ib(o.browserEvent.target);return{element:o.element?o.element.element:null,browserEvent:o.browserEvent,anchor:o.anchor,isStickyScroll:e}}function mw(o,e){e(o),o.children.forEach(t=>mw(t,e))}class Nk{get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new O,this.onDidChange=this._onDidChange.event}set(e,t){!(t!=null&&t.__forceEvent)&&di(this.nodes,e)||this._set(e,!1,t)}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const n=this;this._onDidChange.fire({get elements(){return n.get()},browserEvent:i})}}get(){return this.elements||(this.elements=this.nodes.map(e=>e.element)),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){const l=this.createNodeSet(),d=c=>l.delete(c);t.forEach(c=>mw(c,d)),this.set([...l.values()]);return}const i=new Set,n=l=>i.add(this.identityProvider.getId(l.element).toString());t.forEach(l=>mw(l,n));const s=new Map,r=l=>s.set(this.identityProvider.getId(l.element).toString(),l);e.forEach(l=>mw(l,r));const a=[];for(const l of this.nodes){const d=this.identityProvider.getId(l.element).toString();if(!i.has(d))a.push(l);else{const h=s.get(d);h&&h.visible&&a.push(h)}}if(this.nodes.length>0&&a.length===0){const l=this.getFirstViewElementWithTrait();l&&a.push(l)}this._set(a,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class Rde extends $6{constructor(e,t,i){super(e),this.tree=t,this.stickyScrollProvider=i}onViewPointer(e){if(H6(e.browserEvent.target)||hh(e.browserEvent.target)||j_(e.browserEvent.target)||e.browserEvent.isHandledByList)return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const i=e.browserEvent.target,n=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16,s=Lv(e.browserEvent.target);let r=!1;if(s?r=!0:typeof this.tree.expandOnlyOnTwistieClick=="function"?r=this.tree.expandOnlyOnTwistieClick(t.element):r=!!this.tree.expandOnlyOnTwistieClick,s)this.handleStickyScrollMouseEvent(e,t);else{if(r&&!n&&e.browserEvent.detail!==2)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&e.browserEvent.detail===2)return super.onViewPointer(e)}if(t.collapsible&&(!s||n)){const a=this.tree.getNodeLocation(t),l=e.browserEvent.altKey;if(this.tree.setFocus([a]),this.tree.toggleCollapsed(a,l),n){e.browserEvent.isHandledByList=!0;return}}s||super.onViewPointer(e)}handleStickyScrollMouseEvent(e,t){if(Kae(e.browserEvent.target)||qae(e.browserEvent.target))return;const i=this.stickyScrollProvider();if(!i)throw new Error("Sticky scroll controller not found");const n=this.list.indexOf(t),s=this.list.getElementTop(n),r=i.nodePositionTopBelowWidget(t);this.tree.scrollTop=s-r,this.list.domFocus(),this.list.setFocus([n]),this.list.setSelection([n])}onDoubleClick(e){e.browserEvent.target.classList.contains("monaco-tl-twistie")||!this.tree.expandOnDoubleClick||e.browserEvent.isHandledByList||super.onDoubleClick(e)}onMouseDown(e){const t=e.browserEvent.target;if(!Ib(t)&&!Lv(t)){super.onMouseDown(e);return}}onContextMenu(e){const t=e.browserEvent.target;if(!Ib(t)&&!Lv(t)){super.onContextMenu(e);return}}}class Ade extends $o{constructor(e,t,i,n,s,r,a,l){super(e,t,i,n,l),this.focusTrait=s,this.selectionTrait=r,this.anchorTrait=a}createMouseController(e){return new Rde(this,e.tree,e.stickyScrollProvider)}splice(e,t,i=[]){if(super.splice(e,t,i),i.length===0)return;const n=[],s=[];let r;i.forEach((a,l)=>{this.focusTrait.has(a)&&n.push(e+l),this.selectionTrait.has(a)&&s.push(e+l),this.anchorTrait.has(a)&&(r=e+l)}),n.length>0&&super.setFocus(Gd([...super.getFocus(),...n])),s.length>0&&super.setSelection(Gd([...super.getSelection(),...s])),typeof r=="number"&&super.setAnchor(r)}setFocus(e,t,i=!1){super.setFocus(e,t),i||this.focusTrait.set(e.map(n=>this.element(n)),t)}setSelection(e,t,i=!1){super.setSelection(e,t),i||this.selectionTrait.set(e.map(n=>this.element(n)),t)}setAnchor(e,t=!1){super.setAnchor(e),t||(typeof e>"u"?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class dH{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 ae.filter(ae.map(this.view.onMouseDblClick,c1),e=>e.target!==ju.Filter)}get onMouseOver(){return ae.map(this.view.onMouseOver,c1)}get onMouseOut(){return ae.map(this.view.onMouseOut,c1)}get onContextMenu(){var e,t;return ae.any(ae.filter(ae.map(this.view.onContextMenu,Mde),i=>!i.isStickyScroll),(t=(e=this.stickyScrollController)===null||e===void 0?void 0:e.onContextMenu)!==null&&t!==void 0?t:ae.None)}get onPointer(){return ae.map(this.view.onPointer,c1)}get onKeyDown(){return this.view.onKeyDown}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return ae.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){var e,t;return(t=(e=this.findController)===null||e===void 0?void 0:e.mode)!==null&&t!==void 0?t:Bd.Highlight}set findMode(e){this.findController&&(this.findController.mode=e)}get findMatchType(){var e,t;return(t=(e=this.findController)===null||e===void 0?void 0:e.matchType)!==null&&t!==void 0?t:yg.Fuzzy}set findMatchType(e){this.findController&&(this.findController.matchType=e)}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(e,t,i,n,s={}){var r;this._user=e,this._options=s,this.eventBufferer=new zy,this.onDidChangeFindOpenState=ae.None,this.onDidChangeStickyScrollFocused=ae.None,this.disposables=new G,this._onWillRefilter=new O,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new O,this.treeDelegate=new z2(i);const a=new kO,l=new kO,d=this.disposables.add(new Lde(l.event)),c=new LA;this.renderers=n.map(p=>new Mb(p,()=>this.model,a.event,d,c,s));for(const p of this.renderers)this.disposables.add(p);let h;s.keyboardNavigationLabelProvider&&(h=new xde(this,s.keyboardNavigationLabelProvider,s.filter),s={...s,filter:h},this.disposables.add(h)),this.focus=new Nk(()=>this.view.getFocusedElements()[0],s.identityProvider),this.selection=new Nk(()=>this.view.getSelectedElements()[0],s.identityProvider),this.anchor=new Nk(()=>this.view.getAnchorElement(),s.identityProvider),this.view=new Ade(e,t,this.treeDelegate,this.renderers,this.focus,this.selection,this.anchor,{...yde(()=>this.model,s),tree:this,stickyScrollProvider:()=>this.stickyScrollController}),this.model=this.createModel(e,this.view,s),a.input=this.model.onDidChangeCollapseState;const u=ae.forEach(this.model.onDidSplice,p=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(p),this.selection.onDidModelSplice(p)})},this.disposables);u(()=>null,null,this.disposables);const g=this.disposables.add(new O),f=this.disposables.add(new Vr(0));if(this.disposables.add(ae.any(u,this.focus.onDidChange,this.selection.onDidChange)(()=>{f.trigger(()=>{const p=new Set;for(const _ of this.focus.getNodes())p.add(_);for(const _ of this.selection.getNodes())p.add(_);g.fire([...p.values()])})})),l.input=g.event,s.keyboardSupport!==!1){const p=ae.chain(this.view.onKeyDown,_=>_.filter(v=>!hh(v.target)).map(v=>new Ht(v)));ae.chain(p,_=>_.filter(v=>v.keyCode===15))(this.onLeftArrow,this,this.disposables),ae.chain(p,_=>_.filter(v=>v.keyCode===17))(this.onRightArrow,this,this.disposables),ae.chain(p,_=>_.filter(v=>v.keyCode===10))(this.onSpace,this,this.disposables)}if((!((r=s.findWidgetEnabled)!==null&&r!==void 0)||r)&&s.keyboardNavigationLabelProvider&&s.contextViewProvider){const p=this.options.findWidgetStyles?{styles:this.options.findWidgetStyles}:void 0;this.findController=new Dde(this,this.model,this.view,h,s.contextViewProvider,p),this.focusNavigationFilter=_=>this.findController.shouldAllowFocus(_),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType}else this.onDidChangeFindMode=ae.None,this.onDidChangeFindMatchType=ae.None;s.enableStickyScroll&&(this.stickyScrollController=new o3(this,this.model,this.view,this.renderers,this.treeDelegate,s),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus),this.styleElement=Fo(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===lp.Always)}updateOptions(e={}){var t;this._options={...this._options,...e};for(const i of this.renderers)i.updateOptions(e);this.view.updateOptions(this._options),(t=this.findController)===null||t===void 0||t.updateOptions(e),this.updateStickyScroll(e),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===lp.Always)}get options(){return this._options}updateStickyScroll(e){var t;!this.stickyScrollController&&this._options.enableStickyScroll?(this.stickyScrollController=new o3(this,this.model,this.view,this.renderers,this.treeDelegate,this._options),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus):this.stickyScrollController&&!this._options.enableStickyScroll&&(this.onDidChangeStickyScrollFocused=ae.None,this.stickyScrollController.dispose(),this.stickyScrollController=void 0),(t=this.stickyScrollController)===null||t===void 0||t.updateOptions(e)}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get ariaLabel(){return this.view.ariaLabel}set ariaLabel(e){this.view.ariaLabel=e}domFocus(){var e;!((e=this.stickyScrollController)===null||e===void 0)&&e.focusedLast()?this.stickyScrollController.domFocus():this.view.domFocus()}layout(e,t){var i;this.view.layout(e,t),vh(t)&&((i=this.findController)===null||i===void 0||i.layout(t))}style(e){var t,i;const n=`.${this.view.domId}`,s=[];e.treeIndentGuidesStroke&&(s.push(`.monaco-list${n}:hover .monaco-tl-indent > .indent-guide, .monaco-list${n}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeInactiveIndentGuidesStroke}; }`),s.push(`.monaco-list${n} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`));const r=(t=e.treeStickyScrollBackground)!==null&&t!==void 0?t:e.listBackground;r&&(s.push(`.monaco-list${n} .monaco-scrollable-element .monaco-tree-sticky-container { background-color: ${r}; }`),s.push(`.monaco-list${n} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row { background-color: ${r}; }`)),e.treeStickyScrollBorder&&s.push(`.monaco-list${n} .monaco-scrollable-element .monaco-tree-sticky-container { border-bottom: 1px solid ${e.treeStickyScrollBorder}; }`),e.treeStickyScrollShadow&&s.push(`.monaco-list${n} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-container-shadow { box-shadow: ${e.treeStickyScrollShadow} 0 6px 6px -6px inset; height: 3px; }`),e.listFocusForeground&&(s.push(`.monaco-list${n}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),s.push(`.monaco-list${n}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { color: inherit; }`));const a=Vd(e.listFocusAndSelectionOutline,Vd(e.listSelectionOutline,(i=e.listFocusOutline)!==null&&i!==void 0?i:""));a&&(s.push(`.monaco-list${n}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused.selected { outline: 1px solid ${a}; outline-offset: -1px;}`),s.push(`.monaco-list${n}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused.selected { outline: inherit;}`)),e.listFocusOutline&&(s.push(`.monaco-list${n}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }`),s.push(`.monaco-list${n}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { outline: inherit; }`),s.push(`.monaco-workbench.context-menu-visible .monaco-list${n}.last-focused.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.passive-focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }`),s.push(`.monaco-workbench.context-menu-visible .monaco-list${n}.last-focused.sticky-scroll-focused .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`),s.push(`.monaco-workbench.context-menu-visible .monaco-list${n}.last-focused:not(.sticky-scroll-focused) .monaco-tree-sticky-container .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`)),this.styleElement.textContent=s.join(` +`),this.view.style(e)}getParentElement(e){const t=this.model.getParentNodeLocation(e);return this.model.getNode(t).element}getFirstElementChild(e){return this.model.getFirstElementChild(e)}getNode(e){return this.model.getNode(e)}getNodeLocation(e){return this.model.getNodeLocation(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}toggleCollapsed(e,t=!1){return this.model.setCollapsed(e,void 0,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){this.eventBufferer.bufferEvents(()=>{const i=e.map(s=>this.model.getNode(s));this.selection.set(i,t);const n=e.map(s=>this.model.getListIndex(s)).filter(s=>s>-1);this.view.setSelection(n,t,!0)})}getSelection(){return this.selection.get()}setFocus(e,t){this.eventBufferer.bufferEvents(()=>{const i=e.map(s=>this.model.getNode(s));this.focus.set(i,t);const n=e.map(s=>this.model.getListIndex(s)).filter(s=>s>-1);this.view.setFocus(n,t,!0)})}focusNext(e=1,t=!1,i,n=Mc(i)&&i.altKey?void 0:this.focusNavigationFilter){this.view.focusNext(e,t,i,n)}focusPrevious(e=1,t=!1,i,n=Mc(i)&&i.altKey?void 0:this.focusNavigationFilter){this.view.focusPrevious(e,t,i,n)}focusNextPage(e,t=Mc(e)&&e.altKey?void 0:this.focusNavigationFilter){return this.view.focusNextPage(e,t)}focusPreviousPage(e,t=Mc(e)&&e.altKey?void 0:this.focusNavigationFilter){return this.view.focusPreviousPage(e,t,()=>{var i,n;return(n=(i=this.stickyScrollController)===null||i===void 0?void 0:i.height)!==null&&n!==void 0?n:0})}focusFirst(e,t=Mc(e)&&e.altKey?void 0:this.focusNavigationFilter){this.view.focusFirst(e,t)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const i=this.model.getListIndex(e);if(i!==-1)if(!this.stickyScrollController)this.view.reveal(i,t);else{const n=this.stickyScrollController.nodePositionTopBelowWidget(this.getNode(e));this.view.reveal(i,t,n)}}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!0)){const r=this.model.getParentNodeLocation(n);if(!r)return;const a=this.model.getListIndex(r);this.view.reveal(a),this.view.setFocus([a])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!1)){if(!i.children.some(l=>l.visible))return;const[r]=this.view.getFocus(),a=r+1;this.view.reveal(a),this.view.setFocus([a])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],n=this.model.getNodeLocation(i),s=e.browserEvent.altKey;this.model.setCollapsed(n,void 0,s)}dispose(){var e;Pt(this.disposables),(e=this.stickyScrollController)===null||e===void 0||e.dispose(),this.view.dispose()}}class U2{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new Cde(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare(n,s){return i.sorter.compare(n.element,s.element)}}),this.identityProvider=i.identityProvider}setChildren(e,t=dt.empty(),i={}){const n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i)}_setChildren(e,t=dt.empty(),i){const n=new Set,s=new Set,r=l=>{var d;if(l.element===null)return;const c=l;if(n.add(c.element),this.nodes.set(c.element,c),this.identityProvider){const h=this.identityProvider.getId(c.element).toString();s.add(h),this.nodesByIdentity.set(h,c)}(d=i.onDidCreateNode)===null||d===void 0||d.call(i,c)},a=l=>{var d;if(l.element===null)return;const c=l;if(n.has(c.element)||this.nodes.delete(c.element),this.identityProvider){const h=this.identityProvider.getId(c.element).toString();s.has(h)||this.nodesByIdentity.delete(h)}(d=i.onDidDeleteNode)===null||d===void 0||d.call(i,c)};this.model.splice([...e,0],Number.MAX_VALUE,t,{...i,onDidCreateNode:r,onDidDeleteNode:a})}preserveCollapseState(e=dt.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),dt.map(e,t=>{let i=this.nodes.get(t.element);if(!i&&this.identityProvider){const r=this.identityProvider.getId(t.element).toString();i=this.nodesByIdentity.get(r)}if(!i){let r;return typeof t.collapsed>"u"?r=void 0:t.collapsed===So.Collapsed||t.collapsed===So.PreserveOrCollapsed?r=!0:t.collapsed===So.Expanded||t.collapsed===So.PreserveOrExpanded?r=!1:r=!!t.collapsed,{...t,children:this.preserveCollapseState(t.children),collapsed:r}}const n=typeof t.collapsible=="boolean"?t.collapsible:i.collapsible;let s;return typeof t.collapsed>"u"||t.collapsed===So.PreserveOrCollapsed||t.collapsed===So.PreserveOrExpanded?s=i.collapsed:t.collapsed===So.Collapsed?s=!0:t.collapsed===So.Expanded?s=!1:s=!!t.collapsed,{...t,collapsible:n,collapsed:s,children:this.preserveCollapseState(t.children)}})}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){const t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(e===null)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new Io(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(e===null)throw new Io(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new Io(this.user,`Tree element not found: ${e}`);const i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i);return this.model.getNode(n).element}getElementLocation(e){if(e===null)return[];const t=this.nodes.get(e);if(!t)throw new Io(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}function pw(o){const e=[o.element],t=o.incompressible||!1;return{element:{elements:e,incompressible:t},children:dt.map(dt.from(o.children),pw),collapsible:o.collapsible,collapsed:o.collapsed}}function _w(o){const e=[o.element],t=o.incompressible||!1;let i,n;for(;[n,i]=dt.consume(dt.from(o.children),2),!(n.length!==1||n[0].incompressible);)o=n[0],e.push(o.element);return{element:{elements:e,incompressible:t},children:dt.map(dt.concat(n,i),_w),collapsible:o.collapsible,collapsed:o.collapsed}}function gT(o,e=0){let t;return egT(i,0)),e===0&&o.element.incompressible?{element:o.element.elements[e],children:t,incompressible:!0,collapsible:o.collapsible,collapsed:o.collapsed}:{element:o.element.elements[e],children:t,collapsible:o.collapsible,collapsed:o.collapsed}}function r3(o){return gT(o,0)}function cH(o,e,t){return o.element===e?{...o,children:t}:{...o,children:dt.map(dt.from(o.children),i=>cH(i,e,t))}}const Pde=o=>({getId(e){return e.elements.map(t=>o.getId(t).toString()).join("\0")}});class Ode{get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new U2(e,t,i),this.enabled=typeof i.compressionEnabled>"u"?!0:i.compressionEnabled,this.identityProvider=i.identityProvider}setChildren(e,t=dt.empty(),i){const n=i.diffIdentityProvider&&Pde(i.diffIdentityProvider);if(e===null){const f=dt.map(t,this.enabled?_w:pw);this._setChildren(null,f,{diffIdentityProvider:n,diffDepth:1/0});return}const s=this.nodes.get(e);if(!s)throw new Io(this.user,"Unknown compressed tree node");const r=this.model.getNode(s),a=this.model.getParentNodeLocation(s),l=this.model.getNode(a),d=r3(r),c=cH(d,e,t),h=(this.enabled?_w:pw)(c),u=i.diffIdentityProvider?(f,p)=>i.diffIdentityProvider.getId(f)===i.diffIdentityProvider.getId(p):void 0;if(di(h.element.elements,r.element.elements,u)){this._setChildren(s,h.children||dt.empty(),{diffIdentityProvider:n,diffDepth:1});return}const g=l.children.map(f=>f===r?h:f);this._setChildren(l.element,g,{diffIdentityProvider:n,diffDepth:r.depth-l.depth})}isCompressionEnabled(){return this.enabled}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const i=this.model.getNode().children,n=dt.map(i,r3),s=dt.map(n,e?_w:pw);this._setChildren(null,s,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){const n=new Set,s=a=>{for(const l of a.element.elements)n.add(l),this.nodes.set(l,a.element)},r=a=>{for(const l of a.element.elements)n.has(l)||this.nodes.delete(l)};this.model.setChildren(e,t,{...i,onDidCreateNode:s,onDidDeleteNode:r})}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if(typeof e>"u")return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return t===null?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return i===null?null:i.elements[i.elements.length-1]}getFirstElementChild(e){const t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getCompressedNode(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(e===null)return null;const t=this.nodes.get(e);if(!t)throw new Io(this.user,`Tree element not found: ${e}`);return t}}const Fde=o=>o[o.length-1];class $2{get element(){return this.node.element===null?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(e=>new $2(this.unwrapper,e))}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(e,t){this.unwrapper=e,this.node=t}}function Bde(o,e){return{splice(t,i,n){e.splice(t,i,n.map(s=>o.map(s)))},updateElementHeight(t,i){e.updateElementHeight(t,i)}}}function Wde(o,e){return{...e,identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(o(t))}},sorter:e.sorter&&{compare(t,i){return e.sorter.compare(t.elements[0],i.elements[0])}},filter:e.filter&&{filter(t,i){return e.filter.filter(o(t),i)}}}}class Hde{get onDidSplice(){return ae.map(this.model.onDidSplice,({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map(i=>this.nodeMapper.map(i)),deletedNodes:t.map(i=>this.nodeMapper.map(i))}))}get onDidChangeCollapseState(){return ae.map(this.model.onDidChangeCollapseState,({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t}))}get onDidChangeRenderNodeCount(){return ae.map(this.model.onDidChangeRenderNodeCount,e=>this.nodeMapper.map(e))}constructor(e,t,i={}){this.rootRef=null,this.elementMapper=i.elementMapper||Fde;const n=s=>this.elementMapper(s.elements);this.nodeMapper=new H2(s=>new $2(n,s)),this.model=new Ode(e,Bde(this.nodeMapper,t),Wde(n,i))}setChildren(e,t=dt.empty(),i={}){this.model.setChildren(e,t,i)}isCompressionEnabled(){return this.model.isCompressionEnabled()}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){const t=this.model.getFirstElementChild(e);return t===null||typeof t>"u"?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}var Vde=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s};class j2 extends dH{get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}constructor(e,t,i,n,s={}){super(e,t,i,n,s),this.user=e}setChildren(e,t=dt.empty(),i){this.model.setChildren(e,t,i)}rerender(e){if(e===void 0){this.view.rerender();return}this.model.rerender(e)}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new U2(e,t,i)}}class hH{get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}constructor(e,t,i){this._compressedTreeNodeProvider=e,this.stickyScrollDelegate=t,this.renderer=i,this.templateId=i.templateId,i.onDidChangeTwistieState&&(this.onDidChangeTwistieState=i.onDidChangeTwistieState)}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){let s=this.stickyScrollDelegate.getCompressedNode(e);s||(s=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element)),s.element.elements.length===1?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,n)):(i.compressedTreeNode=s,this.renderer.renderCompressedElements(s,t,i.data,n))}disposeElement(e,t,i,n){var s,r,a,l;i.compressedTreeNode?(r=(s=this.renderer).disposeCompressedElements)===null||r===void 0||r.call(s,i.compressedTreeNode,t,i.data,n):(l=(a=this.renderer).disposeElement)===null||l===void 0||l.call(a,e,t,i.data,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return this.renderer.renderTwistie?this.renderer.renderTwistie(e,t):!1}}Vde([Mi],hH.prototype,"compressedTreeNodeProvider",null);class zde{constructor(e){this.modelProvider=e,this.compressedStickyNodes=new Map}getCompressedNode(e){return this.compressedStickyNodes.get(e)}constrainStickyScrollNodes(e,t,i){if(this.compressedStickyNodes.clear(),e.length===0)return[];for(let n=0;ni||n>=t-1&&tthis,a=new zde(()=>this.model),l=n.map(d=>new hH(r,a,d));super(e,t,i,l,{...Ude(r,s),stickyScrollDelegate:a})}setChildren(e,t=dt.empty(),i){this.model.setChildren(e,t,i)}createModel(e,t,i){return new Hde(e,t,i)}updateOptions(e={}){super.updateOptions(e),typeof e.compressionEnabled<"u"&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}function Tk(o){return{...o,children:[],refreshPromise:void 0,stale:!0,slow:!1,forceExpanded:!1}}function fT(o,e){return e.parent?e.parent===o?!0:fT(o,e.parent):!1}function $de(o,e){return o===e||fT(o,e)||fT(e,o)}class K2{get element(){return this.node.element.element}get children(){return this.node.children.map(e=>new K2(e))}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(e){this.node=e}}class jde{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...Te.asClassNameArray(oe.treeItemLoading)),!0):(t.classList.remove(...Te.asClassNameArray(oe.treeItemLoading)),!1)}disposeElement(e,t,i,n){var s,r;(r=(s=this.renderer).disposeElement)===null||r===void 0||r.call(s,this.nodeMapper.map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function a3(o){return{browserEvent:o.browserEvent,elements:o.elements.map(e=>e.element)}}function l3(o){return{browserEvent:o.browserEvent,element:o.element&&o.element.element,target:o.target}}class Kde extends j0{constructor(e){super(e.elements.map(t=>t.element)),this.data=e}}function Mk(o){return o instanceof j0?new Kde(o):o}class qde{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(i=>i.element),t)}onDragStart(e,t){var i,n;(n=(i=this.dnd).onDragStart)===null||n===void 0||n.call(i,Mk(e),t)}onDragOver(e,t,i,n,s,r=!0){return this.dnd.onDragOver(Mk(e),t&&t.element,i,n,s)}drop(e,t,i,n,s){this.dnd.drop(Mk(e),t&&t.element,i,n,s)}onDragEnd(e){var t,i;(i=(t=this.dnd).onDragEnd)===null||i===void 0||i.call(t,e)}dispose(){this.dnd.dispose()}}function gH(o){return o&&{...o,collapseByDefault:!0,identityProvider:o.identityProvider&&{getId(e){return o.identityProvider.getId(e.element)}},dnd:o.dnd&&new qde(o.dnd),multipleSelectionController:o.multipleSelectionController&&{isSelectionSingleChangeEvent(e){return o.multipleSelectionController.isSelectionSingleChangeEvent({...e,element:e.element})},isSelectionRangeChangeEvent(e){return o.multipleSelectionController.isSelectionRangeChangeEvent({...e,element:e.element})}},accessibilityProvider:o.accessibilityProvider&&{...o.accessibilityProvider,getPosInSet:void 0,getSetSize:void 0,getRole:o.accessibilityProvider.getRole?e=>o.accessibilityProvider.getRole(e.element):()=>"treeitem",isChecked:o.accessibilityProvider.isChecked?e=>{var t;return!!(!((t=o.accessibilityProvider)===null||t===void 0)&&t.isChecked(e.element))}:void 0,getAriaLabel(e){return o.accessibilityProvider.getAriaLabel(e.element)},getWidgetAriaLabel(){return o.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:o.accessibilityProvider.getWidgetRole?()=>o.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:o.accessibilityProvider.getAriaLevel&&(e=>o.accessibilityProvider.getAriaLevel(e.element)),getActiveDescendantId:o.accessibilityProvider.getActiveDescendantId&&(e=>o.accessibilityProvider.getActiveDescendantId(e.element))},filter:o.filter&&{filter(e,t){return o.filter.filter(e.element,t)}},keyboardNavigationLabelProvider:o.keyboardNavigationLabelProvider&&{...o.keyboardNavigationLabelProvider,getKeyboardNavigationLabel(e){return o.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}},sorter:void 0,expandOnlyOnTwistieClick:typeof o.expandOnlyOnTwistieClick>"u"?void 0:typeof o.expandOnlyOnTwistieClick!="function"?o.expandOnlyOnTwistieClick:e=>o.expandOnlyOnTwistieClick(e.element),defaultFindVisibility:e=>e.hasChildren&&e.stale?1:typeof o.defaultFindVisibility=="number"?o.defaultFindVisibility:typeof o.defaultFindVisibility>"u"?2:o.defaultFindVisibility(e.element)}}function mT(o,e){e(o),o.children.forEach(t=>mT(t,e))}class fH{get onDidScroll(){return this.tree.onDidScroll}get onDidChangeFocus(){return ae.map(this.tree.onDidChangeFocus,a3)}get onDidChangeSelection(){return ae.map(this.tree.onDidChangeSelection,a3)}get onMouseDblClick(){return ae.map(this.tree.onMouseDblClick,l3)}get onPointer(){return ae.map(this.tree.onPointer,l3)}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(e,t,i,n,s,r={}){this.user=e,this.dataSource=s,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new O,this._onDidChangeNodeSlowState=new O,this.nodeMapper=new H2(a=>new K2(a)),this.disposables=new G,this.identityProvider=r.identityProvider,this.autoExpandSingleChildren=typeof r.autoExpandSingleChildren>"u"?!1:r.autoExpandSingleChildren,this.sorter=r.sorter,this.getDefaultCollapseState=a=>r.collapseByDefault?r.collapseByDefault(a)?So.PreserveOrCollapsed:So.PreserveOrExpanded:void 0,this.tree=this.createTree(e,t,i,n,r),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.onDidChangeFindMatchType=this.tree.onDidChangeFindMatchType,this.root=Tk({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(e,t,i,n,s){const r=new z2(i),a=n.map(d=>new jde(d,this.nodeMapper,this._onDidChangeNodeSlowState.event)),l=gH(s)||{};return new j2(e,t,r,a,l)}updateOptions(e={}){this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}get scrollHeight(){return this.tree.scrollHeight}get renderHeight(){return this.tree.renderHeight}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}async setInput(e,t){this.refreshPromises.forEach(n=>n.cancel()),this.refreshPromises.clear(),this.root.element=e;const i=t&&{viewState:t,focus:[],selection:[]};await this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&typeof t.scrollTop=="number"&&(this.scrollTop=t.scrollTop)}async _updateChildren(e=this.root.element,t=!0,i=!1,n,s){if(typeof this.root.element>"u")throw new Io(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await ae.toPromise(this._onDidRender.event));const r=this.getDataNode(e);if(await this.refreshAndRenderNode(r,t,n,s),i)try{this.tree.rerender(r)}catch{}}rerender(e){if(e===void 0||e===this.root.element){this.tree.rerender();return}const t=this.getDataNode(e);this.tree.rerender(t)}getNode(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e,t=!1){const i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}async expand(e,t=!1){if(typeof this.root.element>"u")throw new Io(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await ae.toPromise(this._onDidRender.event));const i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i)||(i.refreshPromise&&(await this.root.refreshPromise,await ae.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i)))return!1;const n=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(await this.root.refreshPromise,await ae.toPromise(this._onDidRender.event)),n}setSelection(e,t){const i=e.map(n=>this.getDataNode(n));this.tree.setSelection(i,t)}getSelection(){return this.tree.getSelection().map(t=>t.element)}setFocus(e,t){const i=e.map(n=>this.getDataNode(n));this.tree.setFocus(i,t)}getFocus(){return this.tree.getFocus().map(t=>t.element)}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getParentElement(e){const t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new Io(this.user,`Data tree node not found: ${e}`);return t}async refreshAndRenderNode(e,t,i,n){await this.refreshNode(e,t,i),!this.disposables.isDisposed&&this.render(e,i,n)}async refreshNode(e,t,i){let n;if(this.subTreeRefreshPromises.forEach((s,r)=>{!n&&$de(r,e)&&(n=s.then(()=>this.refreshNode(e,t,i)))}),n)return n;if(e!==this.root&&this.tree.getNode(e).collapsed){e.hasChildren=!!this.dataSource.hasChildren(e.element),e.stale=!0,this.setChildren(e,[],t,i);return}return this.doRefreshSubTree(e,t,i)}async doRefreshSubTree(e,t,i){let n;e.refreshPromise=new Promise(s=>n=s),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally(()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)});try{const s=await this.doRefreshNode(e,t,i);e.stale=!1,await yE.settled(s.map(r=>this.doRefreshSubTree(r,t,i)))}finally{n()}}async doRefreshNode(e,t,i){e.hasChildren=!!this.dataSource.hasChildren(e.element);let n;if(!e.hasChildren)n=Promise.resolve(dt.empty());else{const s=this.doGetChildren(e);if(wO(s))n=Promise.resolve(s);else{const r=Xd(800);r.then(()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)},a=>null),n=s.finally(()=>r.cancel())}}try{const s=await n;return this.setChildren(e,s,t,i)}catch(s){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),Ur(s))return[];throw s}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;const i=this.dataSource.getChildren(e.element);return wO(i)?this.processChildren(i):(t=an(async()=>this.processChildren(await i)),this.refreshPromises.set(e,t),t.finally(()=>{this.refreshPromises.delete(e)}))}_onDidChangeCollapseState({node:e,deep:t}){e.element!==null&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(ze))}setChildren(e,t,i,n){const s=[...t];if(e.children.length===0&&s.length===0)return[];const r=new Map,a=new Map;for(const c of e.children)r.set(c.element,c),this.identityProvider&&a.set(c.id,{node:c,collapsed:this.tree.hasElement(c)&&this.tree.isCollapsed(c)});const l=[],d=s.map(c=>{const h=!!this.dataSource.hasChildren(c);if(!this.identityProvider){const p=Tk({element:c,parent:e,hasChildren:h,defaultCollapseState:this.getDefaultCollapseState(c)});return h&&p.defaultCollapseState===So.PreserveOrExpanded&&l.push(p),p}const u=this.identityProvider.getId(c).toString(),g=a.get(u);if(g){const p=g.node;return r.delete(p.element),this.nodes.delete(p.element),this.nodes.set(c,p),p.element=c,p.hasChildren=h,i?g.collapsed?(p.children.forEach(_=>mT(_,v=>this.nodes.delete(v.element))),p.children.splice(0,p.children.length),p.stale=!0):l.push(p):h&&!g.collapsed&&l.push(p),p}const f=Tk({element:c,parent:e,id:u,hasChildren:h,defaultCollapseState:this.getDefaultCollapseState(c)});return n&&n.viewState.focus&&n.viewState.focus.indexOf(u)>-1&&n.focus.push(f),n&&n.viewState.selection&&n.viewState.selection.indexOf(u)>-1&&n.selection.push(f),(n&&n.viewState.expanded&&n.viewState.expanded.indexOf(u)>-1||h&&f.defaultCollapseState===So.PreserveOrExpanded)&&l.push(f),f});for(const c of r.values())mT(c,h=>this.nodes.delete(h.element));for(const c of d)this.nodes.set(c.element,c);return e.children.splice(0,e.children.length,...d),e!==this.root&&this.autoExpandSingleChildren&&d.length===1&&l.length===0&&(d[0].forceExpanded=!0,l.push(d[0])),l}render(e,t,i){const n=e.children.map(r=>this.asTreeElement(r,t)),s=i&&{...i,diffIdentityProvider:i.diffIdentityProvider&&{getId(r){return i.diffIdentityProvider.getId(r.element)}}};this.tree.setChildren(e===this.root?null:e,n,s),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1?i=!1:e.forceExpanded?(i=!1,e.forceExpanded=!1):i=e.defaultCollapseState,{element:e,children:e.hasChildren?dt.map(e.children,n=>this.asTreeElement(n,t)):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose(),this.tree.dispose()}}class q2{get element(){return{elements:this.node.element.elements.map(e=>e.element),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map(e=>new q2(e))}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(e){this.node=e}}class Gde{constructor(e,t,i,n){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderCompressedElements(e,t,i,n){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...Te.asClassNameArray(oe.treeItemLoading)),!0):(t.classList.remove(...Te.asClassNameArray(oe.treeItemLoading)),!1)}disposeElement(e,t,i,n){var s,r;(r=(s=this.renderer).disposeElement)===null||r===void 0||r.call(s,this.nodeMapper.map(e),t,i.templateData,n)}disposeCompressedElements(e,t,i,n){var s,r;(r=(s=this.renderer).disposeCompressedElements)===null||r===void 0||r.call(s,this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=Pt(this.disposables)}}function Zde(o){const e=o&&gH(o);return e&&{...e,keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{...e.keyboardNavigationLabelProvider,getCompressedNodeKeyboardNavigationLabel(t){return o.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map(i=>i.element))}}}}class Yde extends fH{constructor(e,t,i,n,s,r,a={}){super(e,t,i,s,r,a),this.compressionDelegate=n,this.compressibleNodeMapper=new H2(l=>new q2(l)),this.filter=a.filter}createTree(e,t,i,n,s){const r=new z2(i),a=n.map(d=>new Gde(d,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),l=Zde(s)||{};return new uH(e,t,r,a,l)}asTreeElement(e,t){return{incompressible:this.compressionDelegate.isIncompressible(e.element),...super.asTreeElement(e,t)}}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t,i){if(!this.identityProvider)return super.render(e,t);const n=g=>this.identityProvider.getId(g).toString(),s=g=>{const f=new Set;for(const p of g){const _=this.tree.getCompressedTreeNode(p===this.root?null:p);if(_.element)for(const v of _.element.elements)f.add(n(v.element))}return f},r=s(this.tree.getSelection()),a=s(this.tree.getFocus());super.render(e,t,i);const l=this.getSelection();let d=!1;const c=this.getFocus();let h=!1;const u=g=>{const f=g.element;if(f)for(let p=0;p{const i=this.filter.filter(t,1),n=Qde(i);if(n===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return n===1})),super.processChildren(e)}}function Qde(o){return typeof o=="boolean"?o?1:0:V2(o)?Tb(o.visibility):Tb(o)}class Xde extends dH{constructor(e,t,i,n,s,r={}){super(e,t,i,n,r),this.user=e,this.dataSource=s,this.identityProvider=r.identityProvider}createModel(e,t,i){return new U2(e,t,i)}}new de("isMac",it,m("isMac","Whether the operating system is macOS"));new de("isLinux",xs,m("isLinux","Whether the operating system is Linux"));const qL=new de("isWindows",Fn,m("isWindows","Whether the operating system is Windows")),mH=new de("isWeb",$h,m("isWeb","Whether the platform is a web browser"));new de("isMacNative",it&&!$h,m("isMacNative","Whether the operating system is macOS on a non-browser platform"));new de("isIOS",Da,m("isIOS","Whether the operating system is iOS"));new de("isMobile",Z7,m("isMobile","Whether the platform is a mobile web browser"));new de("isDevelopment",!1,!0);new de("productQualityType","",m("productQualityType","Quality type of VS Code"));const pH="inputFocus",_H=new de(pH,!1,m("inputFocus","Whether keyboard focus is inside an input box"));var hc=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Yt=function(o,e){return function(t,i){e(t,i,o)}};const vr=ot("listService");class Jde{get lastFocusedList(){return this._lastFocusedWidget}constructor(){this.disposables=new G,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}setLastFocusedList(e){var t,i;e!==this._lastFocusedWidget&&((t=this._lastFocusedWidget)===null||t===void 0||t.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,(i=this._lastFocusedWidget)===null||i===void 0||i.getHTMLElement().classList.add("last-focused"))}register(e,t){if(this._hasCreatedStyleController||(this._hasCreatedStyleController=!0,new j6(Fo(),"").style(Yg)),this.lists.some(n=>n.widget===e))throw new Error("Cannot register the same widget multiple times");const i={widget:e,extraContextKeys:t};return this.lists.push(i),Zy(e.getHTMLElement())&&this.setLastFocusedList(e),Wr(e.onDidFocus(()=>this.setLastFocusedList(e)),Ce(()=>this.lists.splice(this.lists.indexOf(i),1)),e.onDidDispose(()=>{this.lists=this.lists.filter(n=>n!==i),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0)}))}dispose(){this.disposables.dispose()}}const Rb=new de("listScrollAtBoundary","none");K.or(Rb.isEqualTo("top"),Rb.isEqualTo("both"));K.or(Rb.isEqualTo("bottom"),Rb.isEqualTo("both"));const vH=new de("listFocus",!0),bH=new de("treestickyScrollFocused",!1),GL=new de("listSupportsMultiselect",!0),CH=K.and(vH,K.not(pH),bH.negate()),G2=new de("listHasSelectionOrFocus",!1),Z2=new de("listDoubleSelection",!1),Y2=new de("listMultiSelection",!1),ZL=new de("listSelectionNavigation",!1),ece=new de("listSupportsFind",!0),Q2=new de("treeElementCanCollapse",!1),tce=new de("treeElementHasParent",!1),X2=new de("treeElementCanExpand",!1),ice=new de("treeElementHasChild",!1),nce=new de("treeFindOpen",!1),wH="listTypeNavigationMode",SH="listAutomaticKeyboardNavigation";function YL(o,e){const t=o.createScoped(e.getHTMLElement());return vH.bindTo(t),t}function QL(o,e){const t=Rb.bindTo(o),i=()=>{const n=e.scrollTop===0,s=e.scrollHeight-e.renderHeight-e.scrollTop<1;n&&s?t.set("both"):n?t.set("top"):s?t.set("bottom"):t.set("none")};return i(),e.onDidScroll(i)}const Jg="workbench.list.multiSelectModifier",vw="workbench.list.openMode",ar="workbench.list.horizontalScrolling",J2="workbench.list.defaultFindMode",eP="workbench.list.typeNavigationMode",KS="workbench.list.keyboardNavigation",Ra="workbench.list.scrollByPage",tP="workbench.list.defaultFindMatchType",Ab="workbench.tree.indent",qS="workbench.tree.renderIndentGuides",Aa="workbench.list.smoothScrolling",Bl="workbench.list.mouseWheelScrollSensitivity",Wl="workbench.list.fastScrollSensitivity",GS="workbench.tree.expandMode",ZS="workbench.tree.enableStickyScroll",YS="workbench.tree.stickyScrollMaxItemCount";function Hl(o){return o.getValue(Jg)==="alt"}class sce extends W{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=Hl(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(Jg)&&(this.useAltAsMultipleSelectionModifier=Hl(this.configurationService))}))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:z6(e)}isSelectionRangeChangeEvent(e){return U6(e)}}function XL(o,e){var t;const i=o.get(Je),n=o.get(St),s=new G;return[{...e,keyboardNavigationDelegate:{mightProducePrintableCharacter(a){return n.mightProducePrintableCharacter(a)}},smoothScrolling:!!i.getValue(Aa),mouseWheelScrollSensitivity:i.getValue(Bl),fastScrollSensitivity:i.getValue(Wl),multipleSelectionController:(t=e.multipleSelectionController)!==null&&t!==void 0?t:s.add(new sce(i)),keyboardNavigationEventFilter:ace(n),scrollByPage:!!i.getValue(Ra)},s]}let d3=class extends $o{constructor(e,t,i,n,s,r,a,l,d){const c=typeof s.horizontalScrolling<"u"?s.horizontalScrolling:!!l.getValue(ar),[h,u]=d.invokeFunction(XL,s);super(e,t,i,n,{keyboardSupport:!1,...h,horizontalScrolling:c}),this.disposables.add(u),this.contextKeyService=YL(r,this),this.disposables.add(QL(this.contextKeyService,this)),this.listSupportsMultiSelect=GL.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(s.multipleSelectionSupport!==!1),ZL.bindTo(this.contextKeyService).set(!!s.selectionNavigation),this.listHasSelectionOrFocus=G2.bindTo(this.contextKeyService),this.listDoubleSelection=Z2.bindTo(this.contextKeyService),this.listMultiSelection=Y2.bindTo(this.contextKeyService),this.horizontalScrolling=s.horizontalScrolling,this._useAltAsMultipleSelectionModifier=Hl(l),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),this.updateStyles(s.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const f=this.getSelection(),p=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(f.length>0||p.length>0),this.listMultiSelection.set(f.length>1),this.listDoubleSelection.set(f.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{const f=this.getSelection(),p=this.getFocus();this.listHasSelectionOrFocus.set(f.length>0||p.length>0)})),this.disposables.add(l.onDidChangeConfiguration(f=>{f.affectsConfiguration(Jg)&&(this._useAltAsMultipleSelectionModifier=Hl(l));let p={};if(f.affectsConfiguration(ar)&&this.horizontalScrolling===void 0){const _=!!l.getValue(ar);p={...p,horizontalScrolling:_}}if(f.affectsConfiguration(Ra)){const _=!!l.getValue(Ra);p={...p,scrollByPage:_}}if(f.affectsConfiguration(Aa)){const _=!!l.getValue(Aa);p={...p,smoothScrolling:_}}if(f.affectsConfiguration(Bl)){const _=l.getValue(Bl);p={...p,mouseWheelScrollSensitivity:_}}if(f.affectsConfiguration(Wl)){const _=l.getValue(Wl);p={...p,fastScrollSensitivity:_}}Object.keys(p).length>0&&this.updateOptions(p)})),this.navigator=new yH(this,{configurationService:l,...s}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles!==void 0&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?Qg(e):Yg)}};d3=hc([Yt(5,Me),Yt(6,vr),Yt(7,Je),Yt(8,Le)],d3);let c3=class extends dde{constructor(e,t,i,n,s,r,a,l,d){const c=typeof s.horizontalScrolling<"u"?s.horizontalScrolling:!!l.getValue(ar),[h,u]=d.invokeFunction(XL,s);super(e,t,i,n,{keyboardSupport:!1,...h,horizontalScrolling:c}),this.disposables=new G,this.disposables.add(u),this.contextKeyService=YL(r,this),this.disposables.add(QL(this.contextKeyService,this.widget)),this.horizontalScrolling=s.horizontalScrolling,this.listSupportsMultiSelect=GL.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(s.multipleSelectionSupport!==!1),ZL.bindTo(this.contextKeyService).set(!!s.selectionNavigation),this._useAltAsMultipleSelectionModifier=Hl(l),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),this.updateStyles(s.overrideStyles),this.disposables.add(l.onDidChangeConfiguration(f=>{f.affectsConfiguration(Jg)&&(this._useAltAsMultipleSelectionModifier=Hl(l));let p={};if(f.affectsConfiguration(ar)&&this.horizontalScrolling===void 0){const _=!!l.getValue(ar);p={...p,horizontalScrolling:_}}if(f.affectsConfiguration(Ra)){const _=!!l.getValue(Ra);p={...p,scrollByPage:_}}if(f.affectsConfiguration(Aa)){const _=!!l.getValue(Aa);p={...p,smoothScrolling:_}}if(f.affectsConfiguration(Bl)){const _=l.getValue(Bl);p={...p,mouseWheelScrollSensitivity:_}}if(f.affectsConfiguration(Wl)){const _=l.getValue(Wl);p={...p,fastScrollSensitivity:_}}Object.keys(p).length>0&&this.updateOptions(p)})),this.navigator=new yH(this,{configurationService:l,...s}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles!==void 0&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?Qg(e):Yg)}dispose(){this.disposables.dispose(),super.dispose()}};c3=hc([Yt(5,Me),Yt(6,vr),Yt(7,Je),Yt(8,Le)],c3);let h3=class extends KL{constructor(e,t,i,n,s,r,a,l,d,c){const h=typeof r.horizontalScrolling<"u"?r.horizontalScrolling:!!d.getValue(ar),[u,g]=c.invokeFunction(XL,r);super(e,t,i,n,s,{keyboardSupport:!1,...u,horizontalScrolling:h}),this.disposables.add(g),this.contextKeyService=YL(a,this),this.disposables.add(QL(this.contextKeyService,this)),this.listSupportsMultiSelect=GL.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(r.multipleSelectionSupport!==!1),ZL.bindTo(this.contextKeyService).set(!!r.selectionNavigation),this.listHasSelectionOrFocus=G2.bindTo(this.contextKeyService),this.listDoubleSelection=Z2.bindTo(this.contextKeyService),this.listMultiSelection=Y2.bindTo(this.contextKeyService),this.horizontalScrolling=r.horizontalScrolling,this._useAltAsMultipleSelectionModifier=Hl(d),this.disposables.add(this.contextKeyService),this.disposables.add(l.register(this)),this.updateStyles(r.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const p=this.getSelection(),_=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(p.length>0||_.length>0),this.listMultiSelection.set(p.length>1),this.listDoubleSelection.set(p.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{const p=this.getSelection(),_=this.getFocus();this.listHasSelectionOrFocus.set(p.length>0||_.length>0)})),this.disposables.add(d.onDidChangeConfiguration(p=>{p.affectsConfiguration(Jg)&&(this._useAltAsMultipleSelectionModifier=Hl(d));let _={};if(p.affectsConfiguration(ar)&&this.horizontalScrolling===void 0){const v=!!d.getValue(ar);_={..._,horizontalScrolling:v}}if(p.affectsConfiguration(Ra)){const v=!!d.getValue(Ra);_={..._,scrollByPage:v}}if(p.affectsConfiguration(Aa)){const v=!!d.getValue(Aa);_={..._,smoothScrolling:v}}if(p.affectsConfiguration(Bl)){const v=d.getValue(Bl);_={..._,mouseWheelScrollSensitivity:v}}if(p.affectsConfiguration(Wl)){const v=d.getValue(Wl);_={..._,fastScrollSensitivity:v}}Object.keys(_).length>0&&this.updateOptions(_)})),this.navigator=new oce(this,{configurationService:d,...r}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles!==void 0&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?Qg(e):Yg)}dispose(){this.disposables.dispose(),super.dispose()}};h3=hc([Yt(6,Me),Yt(7,vr),Yt(8,Je),Yt(9,Le)],h3);class iP extends W{constructor(e,t){var i;super(),this.widget=e,this._onDidOpen=this._register(new O),this.onDidOpen=this._onDidOpen.event,this._register(ae.filter(this.widget.onDidChangeSelection,n=>Mc(n.browserEvent))(n=>this.onSelectionFromKeyboard(n))),this._register(this.widget.onPointer(n=>this.onPointer(n.element,n.browserEvent))),this._register(this.widget.onMouseDblClick(n=>this.onMouseDblClick(n.element,n.browserEvent))),typeof(t==null?void 0:t.openOnSingleClick)!="boolean"&&(t!=null&&t.configurationService)?(this.openOnSingleClick=(t==null?void 0:t.configurationService.getValue(vw))!=="doubleClick",this._register(t==null?void 0:t.configurationService.onDidChangeConfiguration(n=>{n.affectsConfiguration(vw)&&(this.openOnSingleClick=(t==null?void 0:t.configurationService.getValue(vw))!=="doubleClick")}))):this.openOnSingleClick=(i=t==null?void 0:t.openOnSingleClick)!==null&&i!==void 0?i:!0}onSelectionFromKeyboard(e){if(e.elements.length!==1)return;const t=e.browserEvent,i=typeof t.preserveFocus=="boolean"?t.preserveFocus:!0,n=typeof t.pinned=="boolean"?t.pinned:!i;this._open(this.getSelectedElement(),i,n,!1,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick||t.detail===2)return;const n=t.button===1,s=!0,r=n,a=t.ctrlKey||t.metaKey||t.altKey;this._open(e,s,r,a,t)}onMouseDblClick(e,t){if(!t)return;const i=t.target;if(i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16)return;const s=!1,r=!0,a=t.ctrlKey||t.metaKey||t.altKey;this._open(e,s,r,a,t)}_open(e,t,i,n,s){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:n,element:e,browserEvent:s})}}class yH extends iP{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class oce extends iP{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class rce extends iP{constructor(e,t){super(e,t)}getSelectedElement(){var e;return(e=this.widget.getSelection()[0])!==null&&e!==void 0?e:void 0}}function ace(o){let e=!1;return t=>{if(t.toKeyCodeChord().isModifierKey())return!1;if(e)return e=!1,!1;const i=o.softDispatch(t,t.target);return i.kind===1?(e=!0,!1):(e=!1,i.kind===0)}}let pT=class extends j2{constructor(e,t,i,n,s,r,a,l,d){const{options:c,getTypeNavigationMode:h,disposable:u}=r.invokeFunction(X0,s);super(e,t,i,n,c),this.disposables.add(u),this.internals=new Lg(this,s,h,s.overrideStyles,a,l,d),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};pT=hc([Yt(5,Le),Yt(6,Me),Yt(7,vr),Yt(8,Je)],pT);let u3=class extends uH{constructor(e,t,i,n,s,r,a,l,d){const{options:c,getTypeNavigationMode:h,disposable:u}=r.invokeFunction(X0,s);super(e,t,i,n,c),this.disposables.add(u),this.internals=new Lg(this,s,h,s.overrideStyles,a,l,d),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};u3=hc([Yt(5,Le),Yt(6,Me),Yt(7,vr),Yt(8,Je)],u3);let g3=class extends Xde{constructor(e,t,i,n,s,r,a,l,d,c){const{options:h,getTypeNavigationMode:u,disposable:g}=a.invokeFunction(X0,r);super(e,t,i,n,s,h),this.disposables.add(g),this.internals=new Lg(this,r,u,r.overrideStyles,l,d,c),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles!==void 0&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};g3=hc([Yt(6,Le),Yt(7,Me),Yt(8,vr),Yt(9,Je)],g3);let _T=class extends fH{get onDidOpen(){return this.internals.onDidOpen}constructor(e,t,i,n,s,r,a,l,d,c){const{options:h,getTypeNavigationMode:u,disposable:g}=a.invokeFunction(X0,r);super(e,t,i,n,s,h),this.disposables.add(g),this.internals=new Lg(this,r,u,r.overrideStyles,l,d,c),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};_T=hc([Yt(6,Le),Yt(7,Me),Yt(8,vr),Yt(9,Je)],_T);let f3=class extends Yde{constructor(e,t,i,n,s,r,a,l,d,c,h){const{options:u,getTypeNavigationMode:g,disposable:f}=l.invokeFunction(X0,a);super(e,t,i,n,s,r,u),this.disposables.add(f),this.internals=new Lg(this,a,g,a.overrideStyles,d,c,h),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};f3=hc([Yt(7,Le),Yt(8,Me),Yt(9,vr),Yt(10,Je)],f3);function LH(o){const e=o.getValue(J2);if(e==="highlight")return Bd.Highlight;if(e==="filter")return Bd.Filter;const t=o.getValue(KS);if(t==="simple"||t==="highlight")return Bd.Highlight;if(t==="filter")return Bd.Filter}function xH(o){const e=o.getValue(tP);if(e==="fuzzy")return yg.Fuzzy;if(e==="contiguous")return yg.Contiguous}function X0(o,e){var t;const i=o.get(Je),n=o.get(dc),s=o.get(Me),r=o.get(Le),a=()=>{const g=s.getContextKeyValue(wH);if(g==="automatic")return fl.Automatic;if(g==="trigger"||s.getContextKeyValue(SH)===!1)return fl.Trigger;const p=i.getValue(eP);if(p==="automatic")return fl.Automatic;if(p==="trigger")return fl.Trigger},l=e.horizontalScrolling!==void 0?e.horizontalScrolling:!!i.getValue(ar),[d,c]=r.invokeFunction(XL,e),h=e.paddingBottom,u=e.renderIndentGuides!==void 0?e.renderIndentGuides:i.getValue(qS);return{getTypeNavigationMode:a,disposable:c,options:{keyboardSupport:!1,...d,indent:typeof i.getValue(Ab)=="number"?i.getValue(Ab):void 0,renderIndentGuides:u,smoothScrolling:!!i.getValue(Aa),defaultFindMode:LH(i),defaultFindMatchType:xH(i),horizontalScrolling:l,scrollByPage:!!i.getValue(Ra),paddingBottom:h,hideTwistiesOfChildlessElements:e.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:(t=e.expandOnlyOnTwistieClick)!==null&&t!==void 0?t:i.getValue(GS)==="doubleClick",contextViewProvider:n,findWidgetStyles:ble,enableStickyScroll:!!i.getValue(ZS),stickyScrollMaxItemCount:Number(i.getValue(YS))}}}let Lg=class{get onDidOpen(){return this.navigator.onDidOpen}constructor(e,t,i,n,s,r,a){var l;this.tree=e,this.disposables=[],this.contextKeyService=YL(s,e),this.disposables.push(QL(this.contextKeyService,e)),this.listSupportsMultiSelect=GL.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(t.multipleSelectionSupport!==!1),ZL.bindTo(this.contextKeyService).set(!!t.selectionNavigation),this.listSupportFindWidget=ece.bindTo(this.contextKeyService),this.listSupportFindWidget.set((l=t.findWidgetEnabled)!==null&&l!==void 0?l:!0),this.hasSelectionOrFocus=G2.bindTo(this.contextKeyService),this.hasDoubleSelection=Z2.bindTo(this.contextKeyService),this.hasMultiSelection=Y2.bindTo(this.contextKeyService),this.treeElementCanCollapse=Q2.bindTo(this.contextKeyService),this.treeElementHasParent=tce.bindTo(this.contextKeyService),this.treeElementCanExpand=X2.bindTo(this.contextKeyService),this.treeElementHasChild=ice.bindTo(this.contextKeyService),this.treeFindOpen=nce.bindTo(this.contextKeyService),this.treeStickyScrollFocused=bH.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=Hl(a),this.updateStyleOverrides(n);const c=()=>{const u=e.getFocus()[0];if(!u)return;const g=e.getNode(u);this.treeElementCanCollapse.set(g.collapsible&&!g.collapsed),this.treeElementHasParent.set(!!e.getParentElement(u)),this.treeElementCanExpand.set(g.collapsible&&g.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(u))},h=new Set;h.add(wH),h.add(SH),this.disposables.push(this.contextKeyService,r.register(e),e.onDidChangeSelection(()=>{const u=e.getSelection(),g=e.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(u.length>0||g.length>0),this.hasMultiSelection.set(u.length>1),this.hasDoubleSelection.set(u.length===2)})}),e.onDidChangeFocus(()=>{const u=e.getSelection(),g=e.getFocus();this.hasSelectionOrFocus.set(u.length>0||g.length>0),c()}),e.onDidChangeCollapseState(c),e.onDidChangeModel(c),e.onDidChangeFindOpenState(u=>this.treeFindOpen.set(u)),e.onDidChangeStickyScrollFocused(u=>this.treeStickyScrollFocused.set(u)),a.onDidChangeConfiguration(u=>{let g={};if(u.affectsConfiguration(Jg)&&(this._useAltAsMultipleSelectionModifier=Hl(a)),u.affectsConfiguration(Ab)){const f=a.getValue(Ab);g={...g,indent:f}}if(u.affectsConfiguration(qS)&&t.renderIndentGuides===void 0){const f=a.getValue(qS);g={...g,renderIndentGuides:f}}if(u.affectsConfiguration(Aa)){const f=!!a.getValue(Aa);g={...g,smoothScrolling:f}}if(u.affectsConfiguration(J2)||u.affectsConfiguration(KS)){const f=LH(a);g={...g,defaultFindMode:f}}if(u.affectsConfiguration(eP)||u.affectsConfiguration(KS)){const f=i();g={...g,typeNavigationMode:f}}if(u.affectsConfiguration(tP)){const f=xH(a);g={...g,defaultFindMatchType:f}}if(u.affectsConfiguration(ar)&&t.horizontalScrolling===void 0){const f=!!a.getValue(ar);g={...g,horizontalScrolling:f}}if(u.affectsConfiguration(Ra)){const f=!!a.getValue(Ra);g={...g,scrollByPage:f}}if(u.affectsConfiguration(GS)&&t.expandOnlyOnTwistieClick===void 0&&(g={...g,expandOnlyOnTwistieClick:a.getValue(GS)==="doubleClick"}),u.affectsConfiguration(ZS)){const f=a.getValue(ZS);g={...g,enableStickyScroll:f}}if(u.affectsConfiguration(YS)){const f=Math.max(1,a.getValue(YS));g={...g,stickyScrollMaxItemCount:f}}if(u.affectsConfiguration(Bl)){const f=a.getValue(Bl);g={...g,mouseWheelScrollSensitivity:f}}if(u.affectsConfiguration(Wl)){const f=a.getValue(Wl);g={...g,fastScrollSensitivity:f}}Object.keys(g).length>0&&e.updateOptions(g)}),this.contextKeyService.onDidChangeContext(u=>{u.affectsSome(h)&&e.updateOptions({typeNavigationMode:i()})})),this.navigator=new rce(e,{configurationService:a,...t}),this.disposables.push(this.navigator)}updateOptions(e){e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){this.tree.style(e?Qg(e):Yg)}dispose(){this.disposables=Pt(this.disposables)}};Lg=hc([Yt(4,Me),Yt(5,vr),Yt(6,Je)],Lg);const lce=hi.as(Ba.Configuration);lce.registerConfiguration({id:"workbench",order:7,title:m("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[Jg]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[m("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),m("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:m({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.")},[vw]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:m({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.")},[ar]:{type:"boolean",default:!1,description:m("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[Ra]:{type:"boolean",default:!1,description:m("list.scrollByPage","Controls whether clicks in the scrollbar scroll page by page.")},[Ab]:{type:"number",default:8,minimum:4,maximum:40,description:m("tree indent setting","Controls tree indentation in pixels.")},[qS]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:m("render tree indent guides","Controls whether the tree should render indent guides.")},[Aa]:{type:"boolean",default:!1,description:m("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[Bl]:{type:"number",default:1,markdownDescription:m("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[Wl]:{type:"number",default:5,markdownDescription:m("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[J2]:{type:"string",enum:["highlight","filter"],enumDescriptions:[m("defaultFindModeSettingKey.highlight","Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),m("defaultFindModeSettingKey.filter","Filter elements when searching.")],default:"highlight",description:m("defaultFindModeSettingKey","Controls the default find mode for lists and trees in the workbench.")},[KS]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[m("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),m("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),m("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:m("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:m("keyboardNavigationSettingKeyDeprecated","Please use 'workbench.list.defaultFindMode' and 'workbench.list.typeNavigationMode' instead.")},[tP]:{type:"string",enum:["fuzzy","contiguous"],enumDescriptions:[m("defaultFindMatchTypeSettingKey.fuzzy","Use fuzzy matching when searching."),m("defaultFindMatchTypeSettingKey.contiguous","Use contiguous matching when searching.")],default:"fuzzy",description:m("defaultFindMatchTypeSettingKey","Controls the type of matching used when searching lists and trees in the workbench.")},[GS]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:m("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.")},[ZS]:{type:"boolean",default:!0,description:m("sticky scroll","Controls whether sticky scrolling is enabled in trees.")},[YS]:{type:"number",minimum:1,default:7,markdownDescription:m("sticky scroll maximum items","Controls the number of sticky elements displayed in the tree when `#workbench.tree.enableStickyScroll#` is enabled.")},[eP]:{type:"string",enum:["automatic","trigger"],default:"automatic",markdownDescription:m("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.")}}});class uh extends W{constructor(e,t){var i;super(),this.options=t,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=(i=t==null?void 0:t.supportIcons)!==null&&i!==void 0?i:!1,this.domNode=Q(e,te("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,t=[],i="",n){e||(e=""),n&&(e=uh.escapeNewLines(e,t)),!(this.didEverRender&&this.text===e&&this.title===i&&Ro(this.highlights,t))&&(this.text=e,this.title=i,this.highlights=t,this.render())}render(){var e,t,i,n;const s=[];let r=0;for(const a of this.highlights){if(a.end===a.start)continue;if(r{n=s===`\r +`?-1:0,r+=i;for(const a of t)a.end<=r||(a.start>=r&&(a.start+=n),a.end>=r&&(a.end+=n));return i+=n,"⏎"})}}class p_{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class QS extends W{constructor(e,t){var i;super(),this.customHovers=new Map,this.creationOptions=t,this.domNode=this._register(new p_(Q(e,te(".monaco-icon-label")))),this.labelContainer=Q(this.domNode.element,te(".monaco-icon-label-container")),this.nameContainer=Q(this.labelContainer,te("span.monaco-icon-name-container")),t!=null&&t.supportHighlights||t!=null&&t.supportIcons?this.nameNode=this._register(new hce(this.nameContainer,!!t.supportIcons)):this.nameNode=new dce(this.nameContainer),this.hoverDelegate=(i=t==null?void 0:t.hoverDelegate)!==null&&i!==void 0?i:Ts("mouse")}get element(){return this.domNode.element}setLabel(e,t,i){var n;const s=["monaco-icon-label"],r=["monaco-icon-label-container"];let a="";i&&(i.extraClasses&&s.push(...i.extraClasses),i.italic&&s.push("italic"),i.strikethrough&&s.push("strikethrough"),i.disabledCommand&&r.push("disabled"),i.title&&(typeof i.title=="string"?a+=i.title:a+=e));const l=this.domNode.element.querySelector(".monaco-icon-label-iconpath");if(i!=null&&i.iconPath){let d;!l||!_n(l)?(d=te(".monaco-icon-label-iconpath"),this.domNode.element.prepend(d)):d=l,d.style.backgroundImage=ec(i==null?void 0:i.iconPath)}else l&&l.remove();if(this.domNode.className=s.join(" "),this.domNode.element.setAttribute("aria-label",a),this.labelContainer.className=r.join(" "),this.setupHover(i!=null&&i.descriptionTitle?this.labelContainer:this.element,i==null?void 0:i.title),this.nameNode.setLabel(e,i),t||this.descriptionNode){const d=this.getOrCreateDescriptionNode();d instanceof uh?(d.set(t||"",i?i.descriptionMatches:void 0,void 0,i==null?void 0:i.labelEscapeNewLines),this.setupHover(d.element,i==null?void 0:i.descriptionTitle)):(d.textContent=t&&(i!=null&&i.labelEscapeNewLines)?uh.escapeNewLines(t,[]):t||"",this.setupHover(d.element,(i==null?void 0:i.descriptionTitle)||""),d.empty=!t)}if(i!=null&&i.suffix||this.suffixNode){const d=this.getOrCreateSuffixNode();d.textContent=(n=i==null?void 0:i.suffix)!==null&&n!==void 0?n:""}}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),!t){e.removeAttribute("title");return}if(this.hoverDelegate.showNativeHover)(function(s,r){ys(r)?s.title=N2(r):r!=null&&r.markdownNotSupportedFallback?s.title=r.markdownNotSupportedFallback:s.removeAttribute("title")})(e,t);else{const n=Ha().setupUpdatableHover(this.hoverDelegate,e,t);n&&this.customHovers.set(e,n)}}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}getOrCreateSuffixNode(){if(!this.suffixNode){const e=this._register(new p_(iG(this.nameContainer,te("span.monaco-icon-suffix-container"))));this.suffixNode=this._register(new p_(Q(e.element,te("span.label-suffix"))))}return this.suffixNode}getOrCreateDescriptionNode(){var e;if(!this.descriptionNode){const t=this._register(new p_(Q(this.labelContainer,te("span.monaco-icon-description-container"))));!((e=this.creationOptions)===null||e===void 0)&&e.supportDescriptionHighlights?this.descriptionNode=this._register(new uh(Q(t.element,te("span.label-description")),{supportIcons:!!this.creationOptions.supportIcons})):this.descriptionNode=this._register(new p_(Q(t.element,te("span.label-description"))))}return this.descriptionNode}}class dce{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&Ro(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=Q(this.container,te("a.label-name",{id:t==null?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i{const s={start:i,end:i+n.length},r=t.map(a=>Hn.intersect(s,a)).filter(a=>!Hn.isEmpty(a)).map(({start:a,end:l})=>({start:a-i,end:l-i}));return i=s.end+e.length,r})}class hce extends W{constructor(e,t){super(),this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&Ro(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=this._register(new uh(Q(this.container,te("a.label-name",{id:t==null?void 0:t.domId})),{supportIcons:this.supportIcons}))),this.singleLabel.set(e,t==null?void 0:t.matches,void 0,t==null?void 0:t.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const i=(t==null?void 0:t.separator)||"/",n=cce(e,i,t==null?void 0:t.matches);for(let s=0;s{const o=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:o,collatorIsNumeric:o.resolvedOptions().numeric}});function uce(o,e,t=!1){const i=o||"",n=e||"",s=m3.value.collator.compare(i,n);return m3.value.collatorIsNumeric&&s===0&&i!==n?in.length)return 1}return 0}var JL=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},vT=function(o,e){return function(t,i){e(t,i,o)}},bT;const Jr=te;class kH{constructor(e,t,i){this.index=e,this.hasCheckbox=t,this._hidden=!1,this._init=new $r(()=>{var n;const s=(n=i.label)!==null&&n!==void 0?n:"",r=$_(s).text.trim(),a=i.ariaLabel||[s,this.saneDescription,this.saneDetail].map(l=>Voe(l)).filter(l=>!!l).join(", ");return{saneLabel:s,saneSortLabel:r,saneAriaLabel:a}}),this._saneDescription=i.description,this._saneTooltip=i.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(e){this._element=e}get hidden(){return this._hidden}set hidden(e){this._hidden=e}get saneDescription(){return this._saneDescription}set saneDescription(e){this._saneDescription=e}get saneDetail(){return this._saneDetail}set saneDetail(e){this._saneDetail=e}get saneTooltip(){return this._saneTooltip}set saneTooltip(e){this._saneTooltip=e}get labelHighlights(){return this._labelHighlights}set labelHighlights(e){this._labelHighlights=e}get descriptionHighlights(){return this._descriptionHighlights}set descriptionHighlights(e){this._descriptionHighlights=e}get detailHighlights(){return this._detailHighlights}set detailHighlights(e){this._detailHighlights=e}}class Qn extends kH{constructor(e,t,i,n,s,r){var a,l,d;super(e,t,s),this.fireButtonTriggered=i,this._onChecked=n,this.item=s,this._separator=r,this._checked=!1,this.onChecked=t?ae.map(ae.filter(this._onChecked.event,c=>c.element===this),c=>c.checked):ae.None,this._saneDetail=s.detail,this._labelHighlights=(a=s.highlights)===null||a===void 0?void 0:a.label,this._descriptionHighlights=(l=s.highlights)===null||l===void 0?void 0:l.description,this._detailHighlights=(d=s.highlights)===null||d===void 0?void 0:d.detail}get separator(){return this._separator}set separator(e){this._separator=e}get checked(){return this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire({element:this,checked:e}))}get checkboxDisabled(){return!!this.item.disabled}}var sl;(function(o){o[o.NONE=0]="NONE",o[o.MOUSE_HOVER=1]="MOUSE_HOVER",o[o.ACTIVE_ITEM=2]="ACTIVE_ITEM"})(sl||(sl={}));class kc extends kH{constructor(e,t,i){super(e,!1,i),this.fireSeparatorButtonTriggered=t,this.separator=i,this.children=new Array,this.focusInsideSeparator=sl.NONE}}class mce{getHeight(e){return e instanceof kc?30:e.saneDetail?44:22}getTemplateId(e){return e instanceof Qn?Pb.ID:J0.ID}}class pce{getWidgetAriaLabel(){return m("quickInput","Quick Input")}getAriaLabel(e){var t;return!((t=e.separator)===null||t===void 0)&&t.label?`${e.saneAriaLabel}, ${e.separator.label}`:e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(e){return e.hasCheckbox?"checkbox":"option"}isChecked(e){if(!(!e.hasCheckbox||!(e instanceof Qn)))return{get value(){return e.checked},onDidChange:t=>e.onChecked(()=>t())}}}class IH{constructor(e){this.hoverDelegate=e}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=new G,t.toDisposeTemplate=new G,t.entry=Q(e,Jr(".quick-input-list-entry"));const i=Q(t.entry,Jr("label.quick-input-list-label"));t.toDisposeTemplate.add(Si(i,ee.CLICK,d=>{t.checkbox.offsetParent||d.preventDefault()})),t.checkbox=Q(i,Jr("input.quick-input-list-checkbox")),t.checkbox.type="checkbox";const n=Q(i,Jr(".quick-input-list-rows")),s=Q(n,Jr(".quick-input-list-row")),r=Q(n,Jr(".quick-input-list-row"));t.label=new QS(s,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.label),t.icon=vA(t.label.element,Jr(".quick-input-list-icon"));const a=Q(s,Jr(".quick-input-list-entry-keybinding"));t.keybinding=new Bp(a,to),t.toDisposeTemplate.add(t.keybinding);const l=Q(r,Jr(".quick-input-list-label-meta"));return t.detail=new QS(l,{supportHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.detail),t.separator=Q(t.entry,Jr(".quick-input-list-separator")),t.actionBar=new ur(t.entry,this.hoverDelegate?{hoverDelegate:this.hoverDelegate}:void 0),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.add(t.actionBar),t}disposeTemplate(e){e.toDisposeElement.dispose(),e.toDisposeTemplate.dispose()}disposeElement(e,t,i){i.toDisposeElement.clear(),i.actionBar.clear()}}let Pb=bT=class extends IH{constructor(e,t){super(e),this.themeService=t,this._itemsWithSeparatorsFrequency=new Map}get templateId(){return bT.ID}renderTemplate(e){const t=super.renderTemplate(e);return t.toDisposeTemplate.add(Si(t.checkbox,ee.CHANGE,i=>{t.element.checked=t.checkbox.checked})),t}renderElement(e,t,i){var n,s,r;const a=e.element;i.element=a,a.element=(n=i.entry)!==null&&n!==void 0?n:void 0;const l=a.item;i.checkbox.checked=a.checked,i.toDisposeElement.add(a.onChecked(p=>i.checkbox.checked=p)),i.checkbox.disabled=a.checkboxDisabled;const{labelHighlights:d,descriptionHighlights:c,detailHighlights:h}=a;if(l.iconPath){const p=Gm(this.themeService.getColorTheme().type)?l.iconPath.dark:(s=l.iconPath.light)!==null&&s!==void 0?s:l.iconPath.dark,_=ke.revive(p);i.icon.className="quick-input-list-icon",i.icon.style.backgroundImage=ec(_)}else i.icon.style.backgroundImage="",i.icon.className=l.iconClass?`quick-input-list-icon ${l.iconClass}`:"";let u;!a.saneTooltip&&a.saneDescription&&(u={markdown:{value:a.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:a.saneDescription});const g={matches:d||[],descriptionTitle:u,descriptionMatches:c||[],labelEscapeNewLines:!0};if(g.extraClasses=l.iconClasses,g.italic=l.italic,g.strikethrough=l.strikethrough,i.entry.classList.remove("quick-input-list-separator-as-item"),i.label.setLabel(a.saneLabel,a.saneDescription,g),i.keybinding.set(l.keybinding),a.saneDetail){let p;a.saneTooltip||(p={markdown:{value:a.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:a.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(a.saneDetail,void 0,{matches:h,title:p,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";!((r=a.separator)===null||r===void 0)&&r.label?(i.separator.textContent=a.separator.label,i.separator.style.display="",this.addItemWithSeparator(a)):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!a.separator);const f=l.buttons;f&&f.length?(i.actionBar.push(f.map((p,_)=>VS(p,`id-${_}`,()=>a.fireButtonTriggered({button:p,item:a.item}))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){this.removeItemWithSeparator(e.element),super.disposeElement(e,t,i)}isItemWithSeparatorVisible(e){return this._itemsWithSeparatorsFrequency.has(e)}addItemWithSeparator(e){this._itemsWithSeparatorsFrequency.set(e,(this._itemsWithSeparatorsFrequency.get(e)||0)+1)}removeItemWithSeparator(e){const t=this._itemsWithSeparatorsFrequency.get(e)||0;t>1?this._itemsWithSeparatorsFrequency.set(e,t-1):this._itemsWithSeparatorsFrequency.delete(e)}};Pb.ID="quickpickitem";Pb=bT=JL([vT(1,Ji)],Pb);class J0 extends IH{constructor(){super(...arguments),this._visibleSeparatorsFrequency=new Map}get templateId(){return J0.ID}get visibleSeparators(){return[...this._visibleSeparatorsFrequency.keys()]}isSeparatorVisible(e){return this._visibleSeparatorsFrequency.has(e)}renderElement(e,t,i){var n;const s=e.element;i.element=s,s.element=(n=i.entry)!==null&&n!==void 0?n:void 0,s.element.classList.toggle("focus-inside",!!s.focusInsideSeparator);const r=s.separator,{labelHighlights:a,descriptionHighlights:l,detailHighlights:d}=s;i.icon.style.backgroundImage="",i.icon.className="";let c;!s.saneTooltip&&s.saneDescription&&(c={markdown:{value:s.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDescription});const h={matches:a||[],descriptionTitle:c,descriptionMatches:l||[],labelEscapeNewLines:!0};if(i.entry.classList.add("quick-input-list-separator-as-item"),i.label.setLabel(s.saneLabel,s.saneDescription,h),s.saneDetail){let g;s.saneTooltip||(g={markdown:{value:s.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(s.saneDetail,void 0,{matches:d,title:g,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";i.separator.style.display="none",i.entry.classList.add("quick-input-list-separator-border");const u=r.buttons;u&&u.length?(i.actionBar.push(u.map((g,f)=>VS(g,`id-${f}`,()=>s.fireSeparatorButtonTriggered({button:g,separator:s.separator}))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions"),this.addSeparator(s)}disposeElement(e,t,i){var n;this.removeSeparator(e.element),this.isSeparatorVisible(e.element)||(n=e.element.element)===null||n===void 0||n.classList.remove("focus-inside"),super.disposeElement(e,t,i)}addSeparator(e){this._visibleSeparatorsFrequency.set(e,(this._visibleSeparatorsFrequency.get(e)||0)+1)}removeSeparator(e){const t=this._visibleSeparatorsFrequency.get(e)||0;t>1?this._visibleSeparatorsFrequency.set(e,t-1):this._visibleSeparatorsFrequency.delete(e)}}J0.ID="quickpickseparator";let Ob=class extends W{constructor(e,t,i,n,s,r){super(),this.parent=e,this.hoverDelegate=t,this.linkOpenerDelegate=i,this.accessibilityService=r,this._onKeyDown=new O,this._onLeave=new O,this.onLeave=this._onLeave.event,this._onChangedAllVisibleChecked=new O,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new O,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new O,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new O,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new O,this.onButtonTriggered=this._onButtonTriggered.event,this._onSeparatorButtonTriggered=new O,this.onSeparatorButtonTriggered=this._onSeparatorButtonTriggered.event,this._elementChecked=new O,this._inputElements=new Array,this._elementTree=new Array,this._itemElements=new Array,this._elementDisposable=this._register(new G),this._shouldFireCheckedEvents=!0,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._shouldLoop=!0,this._container=Q(this.parent,Jr(".quick-input-list")),this._separatorRenderer=new J0(t),this._itemRenderer=s.createInstance(Pb,t),this._tree=this._register(s.createInstance(pT,"QuickInput",this._container,new mce,[this._itemRenderer,this._separatorRenderer],{accessibilityProvider:new pce,setRowLineHeight:!1,multipleSelectionSupport:!1,hideTwistiesOfChildlessElements:!0,renderIndentGuides:lp.None,findWidgetEnabled:!1,indent:0,horizontalScrolling:!1,allowNonCollapsibleParents:!0,alwaysConsumeMouseWheel:!0})),this._tree.getHTMLElement().id=n,this._registerListeners()}get onDidChangeFocus(){return ae.map(this._tree.onDidChangeFocus,e=>e.elements.filter(t=>t instanceof Qn).map(t=>t.item))}get onDidChangeSelection(){return ae.map(this._tree.onDidChangeSelection,e=>({items:e.elements.filter(t=>t instanceof Qn).map(t=>t.item),event:e.browserEvent}))}get scrollTop(){return this._tree.scrollTop}set scrollTop(e){this._tree.scrollTop=e}get ariaLabel(){return this._tree.ariaLabel}set ariaLabel(e){this._tree.ariaLabel=e??""}set enabled(e){this._tree.getHTMLElement().style.pointerEvents=e?"":"none"}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e}get shouldLoop(){return this._shouldLoop}set shouldLoop(e){this._shouldLoop=e}_registerListeners(){this._registerOnKeyDown(),this._registerOnContainerClick(),this._registerOnMouseMiddleClick(),this._registerOnElementChecked(),this._registerOnContextMenu(),this._registerHoverListeners(),this._registerSelectionChangeListener(),this._registerSeparatorActionShowingListeners()}_registerOnKeyDown(){this._register(this._tree.onKeyDown(e=>{const t=new Ht(e);switch(t.keyCode){case 10:this.toggleCheckbox();break}this._onKeyDown.fire(t)}))}_registerOnContainerClick(){this._register(U(this._container,ee.CLICK,e=>{(e.x||e.y)&&this._onLeave.fire()}))}_registerOnMouseMiddleClick(){this._register(U(this._container,ee.AUXCLICK,e=>{e.button===1&&this._onLeave.fire()}))}_registerOnElementChecked(){this._register(this._elementChecked.event(e=>this._fireCheckedEvents()))}_registerOnContextMenu(){this._register(this._tree.onContextMenu(e=>{e.element&&(e.browserEvent.preventDefault(),this._tree.setSelection([e.element]))}))}_registerHoverListeners(){const e=this._register(new N9(this.hoverDelegate.delay));this._register(this._tree.onMouseOver(async t=>{var i;if(KO(t.browserEvent.target)){e.cancel();return}if(!(!KO(t.browserEvent.relatedTarget)&&on(t.browserEvent.relatedTarget,(i=t.element)===null||i===void 0?void 0:i.element)))try{await e.trigger(async()=>{t.element instanceof Qn&&this.showHover(t.element)})}catch(n){if(!Ur(n))throw n}})),this._register(this._tree.onMouseOut(t=>{var i;on(t.browserEvent.relatedTarget,(i=t.element)===null||i===void 0?void 0:i.element)||e.cancel()}))}_registerSeparatorActionShowingListeners(){this._register(this._tree.onDidChangeFocus(e=>{const t=e.elements[0]?this._tree.getParentElement(e.elements[0]):null;for(const i of this._separatorRenderer.visibleSeparators){const n=i===t;!!(i.focusInsideSeparator&sl.ACTIVE_ITEM)!==n&&(n?i.focusInsideSeparator|=sl.ACTIVE_ITEM:i.focusInsideSeparator&=~sl.ACTIVE_ITEM,this._tree.rerender(i))}})),this._register(this._tree.onMouseOver(e=>{const t=e.element?this._tree.getParentElement(e.element):null;for(const i of this._separatorRenderer.visibleSeparators){if(i!==t)continue;!!(i.focusInsideSeparator&sl.MOUSE_HOVER)||(i.focusInsideSeparator|=sl.MOUSE_HOVER,this._tree.rerender(i))}})),this._register(this._tree.onMouseOut(e=>{const t=e.element?this._tree.getParentElement(e.element):null;for(const i of this._separatorRenderer.visibleSeparators){if(i!==t)continue;!!(i.focusInsideSeparator&sl.MOUSE_HOVER)&&(i.focusInsideSeparator&=~sl.MOUSE_HOVER,this._tree.rerender(i))}}))}_registerSelectionChangeListener(){this._register(this._tree.onDidChangeSelection(e=>{const t=e.elements.filter(i=>i instanceof Qn);t.length!==e.elements.length&&(e.elements.length===1&&e.elements[0]instanceof kc&&(this._tree.setFocus([e.elements[0].children[0]]),this._tree.reveal(e.elements[0],0)),this._tree.setSelection(t))}))}getAllVisibleChecked(){return this._allVisibleChecked(this._itemElements,!1)}getCheckedCount(){return this._itemElements.filter(e=>e.checked).length}getVisibleCount(){return this._itemElements.filter(e=>!e.hidden).length}setAllVisibleChecked(e){try{this._shouldFireCheckedEvents=!1,this._itemElements.forEach(t=>{!t.hidden&&!t.checkboxDisabled&&(t.checked=e)})}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}setElements(e){this._elementDisposable.clear(),this._inputElements=e;const t=this.parent.classList.contains("show-checkboxes");let i;this._itemElements=new Array,this._elementTree=e.reduce((r,a,l)=>{let d;if(a.type==="separator"){if(!a.buttons)return r;i=new kc(l,c=>this.fireSeparatorButtonTriggered(c),a),d=i}else{const c=l>0?e[l-1]:void 0;let h;c&&c.type==="separator"&&!c.buttons&&(i=void 0,h=c);const u=new Qn(l,t,g=>this.fireButtonTriggered(g),this._elementChecked,a,h);if(this._itemElements.push(u),i)return i.children.push(u),r;d=u}return r.push(d),r},new Array);const n=new Array;let s=0;for(const r of this._elementTree)r instanceof kc?(n.push({element:r,collapsible:!1,collapsed:!1,children:r.children.map(a=>({element:a,collapsible:!1,collapsed:!1}))}),s+=r.children.length+1):(n.push({element:r,collapsible:!1,collapsed:!1}),s++);this._tree.setChildren(null,n),this._onChangedVisibleCount.fire(s),this.accessibilityService.isScreenReaderOptimized()&&setTimeout(()=>{const r=this._tree.getHTMLElement().querySelector(".monaco-list-row.focused"),a=r==null?void 0:r.parentNode;if(r&&a){const l=r.nextSibling;a.removeChild(r),a.insertBefore(r,l)}},0)}setFocusedElements(e){const t=e.map(i=>this._itemElements.find(n=>n.item===i)).filter(i=>!!i);if(this._tree.setFocus(t),e.length>0){const i=this._tree.getFocus()[0];i&&this._tree.reveal(i)}}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){const t=e.map(i=>this._itemElements.find(n=>n.item===i)).filter(i=>!!i);this._tree.setSelection(t)}getCheckedElements(){return this._itemElements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){try{this._shouldFireCheckedEvents=!1;const t=new Set;for(const i of e)t.add(i);for(const i of this._itemElements)i.checked=t.has(i.item)}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}focus(e){var t;if(this._itemElements.length)switch(e===qt.Second&&this._itemElements.length<2&&(e=qt.First),e){case qt.First:this._tree.scrollTop=0,this._tree.focusFirst(void 0,i=>i.element instanceof Qn);break;case qt.Second:this._tree.scrollTop=0,this._tree.setFocus([this._itemElements[1]]);break;case qt.Last:this._tree.scrollTop=this._tree.scrollHeight,this._tree.setFocus([this._itemElements[this._itemElements.length-1]]);break;case qt.Next:{const i=this._tree.getFocus();this._tree.focusNext(void 0,this._shouldLoop,void 0,s=>s.element instanceof Qn?(this._tree.reveal(s.element),!0):!1);const n=this._tree.getFocus();i.length&&i[0]===n[0]&&i[0]===this._itemElements[this._itemElements.length-1]&&this._onLeave.fire();break}case qt.Previous:{const i=this._tree.getFocus();this._tree.focusPrevious(void 0,this._shouldLoop,void 0,s=>{if(!(s.element instanceof Qn))return!1;const r=this._tree.getParentElement(s.element);return r===null||r.children[0]!==s.element?this._tree.reveal(s.element):this._tree.reveal(r),!0});const n=this._tree.getFocus();i.length&&i[0]===n[0]&&i[0]===this._itemElements[0]&&this._onLeave.fire();break}case qt.NextPage:this._tree.focusNextPage(void 0,i=>i.element instanceof Qn?(this._tree.reveal(i.element),!0):!1);break;case qt.PreviousPage:this._tree.focusPreviousPage(void 0,i=>{if(!(i.element instanceof Qn))return!1;const n=this._tree.getParentElement(i.element);return n===null||n.children[0]!==i.element?this._tree.reveal(i.element):this._tree.reveal(n),!0});break;case qt.NextSeparator:{let i=!1;const n=this._tree.getFocus()[0];this._tree.focusNext(void 0,!0,void 0,r=>{if(i)return!0;if(r.element instanceof kc)i=!0,this._separatorRenderer.isSeparatorVisible(r.element)?this._tree.reveal(r.element.children[0]):this._tree.reveal(r.element,0);else if(r.element instanceof Qn){if(r.element.separator)return this._itemRenderer.isItemWithSeparatorVisible(r.element)?this._tree.reveal(r.element):this._tree.reveal(r.element,0),!0;if(r.element===this._elementTree[0])return this._tree.reveal(r.element,0),!0}return!1});const s=this._tree.getFocus()[0];n===s&&(this._tree.scrollTop=this._tree.scrollHeight,this._tree.setFocus([this._itemElements[this._itemElements.length-1]]));break}case qt.PreviousSeparator:{let i,n=!!(!((t=this._tree.getFocus()[0])===null||t===void 0)&&t.separator);this._tree.focusPrevious(void 0,!0,void 0,s=>{if(s.element instanceof kc)n?i||(this._separatorRenderer.isSeparatorVisible(s.element)?this._tree.reveal(s.element):this._tree.reveal(s.element,0),i=s.element.children[0]):n=!0;else if(s.element instanceof Qn&&!i){if(s.element.separator)this._itemRenderer.isItemWithSeparatorVisible(s.element)?this._tree.reveal(s.element):this._tree.reveal(s.element,0),i=s.element;else if(s.element===this._elementTree[0])return this._tree.reveal(s.element,0),!0}return!1}),i&&this._tree.setFocus([i]);break}}}clearFocus(){this._tree.setFocus([])}domFocus(){this._tree.domFocus()}layout(e){this._tree.getHTMLElement().style.maxHeight=e?`${Math.floor(e/44)*44+6}px`:"",this._tree.layout()}filter(e){if(!(this._sortByLabel||this._matchOnLabel||this._matchOnDescription||this._matchOnDetail))return this._tree.layout(),!1;const t=e;if(e=e.trim(),!e||!(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))this._itemElements.forEach(a=>{a.labelHighlights=void 0,a.descriptionHighlights=void 0,a.detailHighlights=void 0,a.hidden=!1;const l=a.index&&this._inputElements[a.index-1];a.item&&(a.separator=l&&l.type==="separator"&&!l.buttons?l:void 0)});else{let a;this._elementTree.forEach(l=>{var d,c,h,u;let g;this.matchOnLabelMode==="fuzzy"?g=this.matchOnLabel&&(d=vk(e,$_(l.saneLabel)))!==null&&d!==void 0?d:void 0:g=this.matchOnLabel&&(c=_ce(t,$_(l.saneLabel)))!==null&&c!==void 0?c:void 0;const f=this.matchOnDescription&&(h=vk(e,$_(l.saneDescription||"")))!==null&&h!==void 0?h:void 0,p=this.matchOnDetail&&(u=vk(e,$_(l.saneDetail||"")))!==null&&u!==void 0?u:void 0;if(g||f||p?(l.labelHighlights=g,l.descriptionHighlights=f,l.detailHighlights=p,l.hidden=!1):(l.labelHighlights=void 0,l.descriptionHighlights=void 0,l.detailHighlights=void 0,l.hidden=l.item?!l.item.alwaysShow:!0),l.item?l.separator=void 0:l.separator&&(l.hidden=!0),!this.sortByLabel){const _=l.index&&this._inputElements[l.index-1];a=_&&_.type==="separator"?_:a,a&&!l.hidden&&(l.separator=a,a=void 0)}})}const i=this._elementTree.filter(a=>!a.hidden);if(this.sortByLabel&&e){const a=e.toLowerCase();i.sort((l,d)=>vce(l,d,a))}let n;const s=i.reduce((a,l,d)=>(l instanceof Qn?n?n.children.push(l):a.push(l):l instanceof kc&&(l.children=[],n=l,a.push(l)),a),new Array),r=new Array;for(const a of s)a instanceof kc?r.push({element:a,collapsible:!1,collapsed:!1,children:a.children.map(l=>({element:l,collapsible:!1,collapsed:!1}))}):r.push({element:a,collapsible:!1,collapsed:!1});return this._tree.setChildren(null,r),this._tree.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(i.length),!0}toggleCheckbox(){try{this._shouldFireCheckedEvents=!1;const e=this._tree.getFocus().filter(i=>i instanceof Qn),t=this._allVisibleChecked(e);for(const i of e)i.checkboxDisabled||(i.checked=!t)}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}display(e){this._container.style.display=e?"":"none"}isDisplayed(){return this._container.style.display!=="none"}style(e){this._tree.style(e)}toggleHover(){const e=this._tree.getFocus()[0];if(!(e!=null&&e.saneTooltip)||!(e instanceof Qn))return;if(this._lastHover&&!this._lastHover.isDisposed){this._lastHover.dispose();return}this.showHover(e);const t=new G;t.add(this._tree.onDidChangeFocus(i=>{i.elements[0]instanceof Qn&&this.showHover(i.elements[0])})),this._lastHover&&t.add(this._lastHover),this._elementDisposable.add(t)}_allVisibleChecked(e,t=!0){for(let i=0,n=e.length;i{this.linkOpenerDelegate(s)},appearance:{showPointer:!0},container:this._container,position:{hoverPosition:1}},!1))}};JL([Mi],Ob.prototype,"onDidChangeFocus",null);JL([Mi],Ob.prototype,"onDidChangeSelection",null);Ob=JL([vT(4,Le),vT(5,ho)],Ob);function _ce(o,e){const{text:t,iconOffsets:i}=e;if(!i||i.length===0)return p3(o,t);const n=S0(t," "),s=t.length-n.length,r=p3(o,n);if(r)for(const a of r){const l=i[a.start+s]+s;a.start+=l,a.end+=l}return r}function p3(o,e){const t=e.toLowerCase().indexOf(o.toLowerCase());return t!==-1?[{start:t,end:t+o.length}]:null}function vce(o,e,t){const i=o.labelHighlights||[],n=e.labelHighlights||[];return i.length&&!n.length?-1:!i.length&&n.length?1:i.length===0&&n.length===0?0:gce(o.saneSortLabel,e.saneSortLabel,t)}const EH={weight:200,when:K.and(K.equals(J6,"quickPick"),Kle),metadata:{description:m("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.")}};function Js(o,e={}){var t;ks.registerCommandAndKeybindingRule({...EH,...o,secondary:bce(o.primary,(t=o.secondary)!==null&&t!==void 0?t:[],e)})}const XS=it?256:2048;function bce(o,e,t={}){return t.withAltMod&&e.push(512+o),t.withCtrlMod&&(e.push(XS+o),t.withAltMod&&e.push(512+XS+o)),t.withCmdMod&&it&&(e.push(2048+o),t.withCtrlMod&&e.push(2304+o),t.withAltMod&&(e.push(2560+o),t.withCtrlMod&&e.push(2816+o))),e}function yo(o,e){return t=>{const i=t.get(_r).currentQuickInput;if(i)return e&&i.quickNavigate?i.focus(e):i.focus(o)}}Js({id:"quickInput.pageNext",primary:12,handler:yo(qt.NextPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0});Js({id:"quickInput.pagePrevious",primary:11,handler:yo(qt.PreviousPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0});Js({id:"quickInput.first",primary:XS+14,handler:yo(qt.First)},{withAltMod:!0,withCmdMod:!0});Js({id:"quickInput.last",primary:XS+13,handler:yo(qt.Last)},{withAltMod:!0,withCmdMod:!0});Js({id:"quickInput.next",primary:18,handler:yo(qt.Next)},{withCtrlMod:!0});Js({id:"quickInput.previous",primary:16,handler:yo(qt.Previous)},{withCtrlMod:!0});const _3=m("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."),v3=m("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.");it?(Js({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:2066,handler:yo(qt.NextSeparator,qt.Next),metadata:{description:_3}}),Js({id:"quickInput.nextSeparator",primary:2578,secondary:[2322],handler:yo(qt.NextSeparator)},{withCtrlMod:!0}),Js({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:2064,handler:yo(qt.PreviousSeparator,qt.Previous),metadata:{description:v3}}),Js({id:"quickInput.previousSeparator",primary:2576,secondary:[2320],handler:yo(qt.PreviousSeparator)},{withCtrlMod:!0})):(Js({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:530,handler:yo(qt.NextSeparator,qt.Next),metadata:{description:_3}}),Js({id:"quickInput.nextSeparator",primary:2578,handler:yo(qt.NextSeparator)}),Js({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:528,handler:yo(qt.PreviousSeparator,qt.Previous),metadata:{description:v3}}),Js({id:"quickInput.previousSeparator",primary:2576,handler:yo(qt.PreviousSeparator)}));Js({id:"quickInput.acceptInBackground",when:K.and(EH.when,K.or(_H.negate(),Zle)),primary:17,weight:250,handler:o=>{const e=o.get(_r).currentQuickInput;e==null||e.accept(!0)}},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0});var Cce=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Rk=function(o,e){return function(t,i){e(t,i,o)}},CT;const Ys=te;let JS=CT=class extends W{get currentQuickInput(){var e;return(e=this.controller)!==null&&e!==void 0?e:void 0}get container(){return this._container}constructor(e,t,i,n){super(),this.options=e,this.layoutService=t,this.instantiationService=i,this.contextKeyService=n,this.enabled=!0,this.onDidAcceptEmitter=this._register(new O),this.onDidCustomEmitter=this._register(new O),this.onDidTriggerButtonEmitter=this._register(new O),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new O),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new O),this.onHide=this.onHideEmitter.event,this.inQuickInputContext=jle.bindTo(this.contextKeyService),this.quickInputTypeContext=qle.bindTo(this.contextKeyService),this.endOfQuickInputBoxContext=Gle.bindTo(this.contextKeyService),this.idPrefix=e.idPrefix,this._container=e.container,this.styles=e.styles,this._register(ae.runAndSubscribe(qy,({window:s,disposables:r})=>this.registerKeyModsListeners(s,r),{window:Mt,disposables:this._store})),this._register(Hq(s=>{this.ui&&De(this.ui.container)===s&&(this.reparentUI(this.layoutService.mainContainer),this.layout(this.layoutService.mainContainerDimension,this.layoutService.mainContainerOffset.quickPickTop))}))}registerKeyModsListeners(e,t){const i=n=>{this.keyMods.ctrlCmd=n.ctrlKey||n.metaKey,this.keyMods.alt=n.altKey};for(const n of[ee.KEY_DOWN,ee.KEY_UP,ee.MOUSE_DOWN])t.add(U(e,n,i,!0))}getUI(e){if(this.ui)return e&&De(this._container)!==De(this.layoutService.activeContainer)&&(this.reparentUI(this.layoutService.activeContainer),this.layout(this.layoutService.activeContainerDimension,this.layoutService.activeContainerOffset.quickPickTop)),this.ui;const t=Q(this._container,Ys(".quick-input-widget.show-file-icons"));t.tabIndex=-1,t.style.display="none";const i=Fo(t),n=Q(t,Ys(".quick-input-titlebar")),s=this._register(new ur(n,{hoverDelegate:this.options.hoverDelegate}));s.domNode.classList.add("quick-input-left-action-bar");const r=Q(n,Ys(".quick-input-title")),a=this._register(new ur(n,{hoverDelegate:this.options.hoverDelegate}));a.domNode.classList.add("quick-input-right-action-bar");const l=Q(t,Ys(".quick-input-header")),d=Q(l,Ys("input.quick-input-check-all"));d.type="checkbox",d.setAttribute("aria-label",m("quickInput.checkAll","Toggle all checkboxes")),this._register(Si(d,ee.CHANGE,B=>{const j=d.checked;P.setAllVisibleChecked(j)})),this._register(U(d,ee.CLICK,B=>{(B.x||B.y)&&g.setFocus()}));const c=Q(l,Ys(".quick-input-description")),h=Q(l,Ys(".quick-input-and-message")),u=Q(h,Ys(".quick-input-filter")),g=this._register(new ode(u,this.styles.inputBox,this.styles.toggle));g.setAttribute("aria-describedby",`${this.idPrefix}message`);const f=Q(u,Ys(".quick-input-visible-count"));f.setAttribute("aria-live","polite"),f.setAttribute("aria-atomic","true");const p=new uT(f,{countFormat:m({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),_=Q(u,Ys(".quick-input-count"));_.setAttribute("aria-live","polite");const v=new uT(_,{countFormat:m({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),b=Q(l,Ys(".quick-input-action")),C=this._register(new zS(b,this.styles.button));C.label=m("ok","OK"),this._register(C.onDidClick(B=>{this.onDidAcceptEmitter.fire()}));const w=Q(l,Ys(".quick-input-action")),S=this._register(new zS(w,{...this.styles.button,supportIcons:!0}));S.label=m("custom","Custom"),this._register(S.onDidClick(B=>{this.onDidCustomEmitter.fire()}));const L=Q(h,Ys(`#${this.idPrefix}message.quick-input-message`)),D=this._register(new jL(t,this.styles.progressBar));D.getContainer().classList.add("quick-input-progress");const I=Q(t,Ys(".quick-input-html-widget"));I.tabIndex=-1;const T=Q(t,Ys(".quick-input-description")),V=this.idPrefix+"list",P=this._register(this.instantiationService.createInstance(Ob,t,this.options.hoverDelegate,this.options.linkOpenerDelegate,V));g.setAttribute("aria-controls",V),this._register(P.onDidChangeFocus(()=>{var B;g.setAttribute("aria-activedescendant",(B=P.getActiveDescendant())!==null&&B!==void 0?B:"")})),this._register(P.onChangedAllVisibleChecked(B=>{d.checked=B})),this._register(P.onChangedVisibleCount(B=>{p.setCount(B)})),this._register(P.onChangedCheckedCount(B=>{v.setCount(B)})),this._register(P.onLeave(()=>{setTimeout(()=>{this.controller&&(g.setFocus(),this.controller instanceof Nb&&this.controller.canSelectMany&&P.clearFocus())},0)}));const A=Ea(t);return this._register(A),this._register(U(t,ee.FOCUS,B=>{const j=this.getUI();if(on(B.relatedTarget,j.inputContainer)){const X=j.inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==X&&this.endOfQuickInputBoxContext.set(X)}on(B.relatedTarget,j.container)||(this.inQuickInputContext.set(!0),this.previousFocusElement=_n(B.relatedTarget)?B.relatedTarget:void 0)},!0)),this._register(A.onDidBlur(()=>{!this.getUI().ignoreFocusOut&&!this.options.ignoreFocusOut()&&this.hide(ap.Blur),this.inQuickInputContext.set(!1),this.endOfQuickInputBoxContext.set(!1),this.previousFocusElement=void 0})),this._register(g.onKeyDown(B=>{const j=this.getUI().inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==j&&this.endOfQuickInputBoxContext.set(j)})),this._register(U(t,ee.FOCUS,B=>{g.setFocus()})),this._register(Si(t,ee.KEY_DOWN,B=>{if(!on(B.target,I))switch(B.keyCode){case 3:lt.stop(B,!0),this.enabled&&this.onDidAcceptEmitter.fire();break;case 9:lt.stop(B,!0),this.hide(ap.Gesture);break;case 2:if(!B.altKey&&!B.ctrlKey&&!B.metaKey){const j=[".quick-input-list .monaco-action-bar .always-visible",".quick-input-list-entry:hover .monaco-action-bar",".monaco-list-row.focused .monaco-action-bar"];if(t.classList.contains("show-checkboxes")?j.push("input"):j.push("input[type=text]"),this.getUI().list.isDisplayed()&&j.push(".monaco-list"),this.getUI().message&&j.push(".quick-input-message a"),this.getUI().widget){if(on(B.target,this.getUI().widget))break;j.push(".quick-input-html-widget")}const X=t.querySelectorAll(j.join(", "));B.shiftKey&&B.target===X[0]?(lt.stop(B,!0),P.clearFocus()):!B.shiftKey&&on(B.target,X[X.length-1])&&(lt.stop(B,!0),X[0].focus())}break;case 10:B.ctrlKey&&(lt.stop(B,!0),this.getUI().list.toggleHover());break}})),this.ui={container:t,styleSheet:i,leftActionBar:s,titleBar:n,title:r,description1:T,description2:c,widget:I,rightActionBar:a,checkAll:d,inputContainer:h,filterContainer:u,inputBox:g,visibleCountContainer:f,visibleCount:p,countContainer:_,count:v,okContainer:b,ok:C,message:L,customButtonContainer:w,customButton:S,list:P,progressBar:D,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,show:B=>this.show(B),hide:()=>this.hide(),setVisibilities:B=>this.setVisibilities(B),setEnabled:B=>this.setEnabled(B),setContextKey:B=>this.options.setContextKey(B),linkOpenerDelegate:B=>this.options.linkOpenerDelegate(B)},this.updateStyles(),this.ui}reparentUI(e){this.ui&&(this._container=e,Q(this._container,this.ui.container))}pick(e,t={},i=st.None){return new Promise((n,s)=>{let r=c=>{var h;r=n,(h=t.onKeyMods)===null||h===void 0||h.call(t,a.keyMods),n(c)};if(i.isCancellationRequested){r(void 0);return}const a=this.createQuickPick();let l;const d=[a,a.onDidAccept(()=>{if(a.canSelectMany)r(a.selectedItems.slice()),a.hide();else{const c=a.activeItems[0];c&&(r(c),a.hide())}}),a.onDidChangeActive(c=>{const h=c[0];h&&t.onDidFocus&&t.onDidFocus(h)}),a.onDidChangeSelection(c=>{if(!a.canSelectMany){const h=c[0];h&&(r(h),a.hide())}}),a.onDidTriggerItemButton(c=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton({...c,removeItem:()=>{const h=a.items.indexOf(c.item);if(h!==-1){const u=a.items.slice(),g=u.splice(h,1),f=a.activeItems.filter(_=>_!==g[0]),p=a.keepScrollPosition;a.keepScrollPosition=!0,a.items=u,f&&(a.activeItems=f),a.keepScrollPosition=p}}})),a.onDidTriggerSeparatorButton(c=>{var h;return(h=t.onDidTriggerSeparatorButton)===null||h===void 0?void 0:h.call(t,c)}),a.onDidChangeValue(c=>{l&&!c&&(a.activeItems.length!==1||a.activeItems[0]!==l)&&(a.activeItems=[l])}),i.onCancellationRequested(()=>{a.hide()}),a.onDidHide(()=>{Pt(d),r(void 0)})];a.title=t.title,a.canSelectMany=!!t.canPickMany,a.placeholder=t.placeHolder,a.ignoreFocusOut=!!t.ignoreFocusLost,a.matchOnDescription=!!t.matchOnDescription,a.matchOnDetail=!!t.matchOnDetail,a.matchOnLabel=t.matchOnLabel===void 0||t.matchOnLabel,a.quickNavigate=t.quickNavigate,a.hideInput=!!t.hideInput,a.contextKey=t.contextKey,a.busy=!0,Promise.all([e,t.activeItem]).then(([c,h])=>{l=h,a.busy=!1,a.items=c,a.canSelectMany&&(a.selectedItems=c.filter(u=>u.type!=="separator"&&u.picked)),l&&(a.activeItems=[l])}),a.show(),Promise.resolve(e).then(void 0,c=>{s(c),a.hide()})})}createQuickPick(){const e=this.getUI(!0);return new Nb(e)}createInputBox(){const e=this.getUI(!0);return new Yle(e)}show(e){const t=this.getUI(!0);this.onShowEmitter.fire();const i=this.controller;this.controller=e,i==null||i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",Dn(t.widget),t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(Ei.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),Dn(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,t.inputBox.toggles=void 0;const n=this.options.backKeybindingLabel();cT.tooltip=n?m("quickInput.backWithKeybinding","Back ({0})",n):m("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus(),this.quickInputTypeContext.set(e.type)}isVisible(){return!!this.ui&&this.ui.container.style.display!=="none"}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=e.description&&!(e.inputBox||e.checkAll)?"":"none",t.checkAll.style.display=e.checkAll?"":"none",t.inputContainer.style.display=e.inputBox?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList.toggle("show-checkboxes",!!e.checkBox),t.container.classList.toggle("hidden-input",!e.inputBox&&!e.description),this.updateLayout()}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.action.enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.action.enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().inputBox.enabled=e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t,i;const n=this.controller;if(!n)return;n.willHide(e);const s=(t=this.ui)===null||t===void 0?void 0:t.container,r=s&&!q9(s);if(this.controller=null,this.onHideEmitter.fire(),s&&(s.style.display="none"),!r){let a=this.previousFocusElement;for(;a&&!a.offsetParent;)a=(i=a.parentElement)!==null&&i!==void 0?i:void 0;a!=null&&a.offsetParent?(a.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}n.didHide(e)}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui&&this.isVisible()){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(this.dimension.width*.62,CT.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&this.dimension.height*.4)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,widgetBorder:n,widgetShadow:s}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e??"",this.ui.container.style.backgroundColor=t??"",this.ui.container.style.color=i??"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.container.style.boxShadow=s?`0 0 8px 2px ${s}`:"",this.ui.list.style(this.styles.list);const r=[];this.styles.pickerGroup.pickerGroupBorder&&r.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.pickerGroup.pickerGroupBorder}; }`),this.styles.pickerGroup.pickerGroupForeground&&r.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.pickerGroup.pickerGroupForeground}; }`),this.styles.pickerGroup.pickerGroupForeground&&r.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)&&(r.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&r.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&r.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&r.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&r.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&r.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),r.push("}"));const a=r.join(` +`);a!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=a)}}};JS.MAX_WIDTH=600;JS=CT=Cce([Rk(1,qh),Rk(2,Le),Rk(3,Me)],JS);var wce=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},__=function(o,e){return function(t,i){e(t,i,o)}};let wT=class extends XJ{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(dT))),this._quickAccess}constructor(e,t,i,n,s){super(i),this.instantiationService=e,this.contextKeyService=t,this.layoutService=n,this.configurationService=s,this._onShow=this._register(new O),this._onHide=this._register(new O),this.contexts=new Map}createController(e=this.layoutService,t){const i={idPrefix:"quickInput_",container:e.activeContainer,ignoreFocusOut:()=>!1,backKeybindingLabel:()=>{},setContextKey:s=>this.setContextKey(s),linkOpenerDelegate:s=>{this.instantiationService.invokeFunction(r=>{r.get(fo).open(s,{allowCommands:!0,fromUserGesture:!0})})},returnFocus:()=>e.focus(),styles:this.computeStyles(),hoverDelegate:this._register(this.instantiationService.createInstance(hT))},n=this._register(this.instantiationService.createInstance(JS,{...i,...t}));return n.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop),this._register(e.onDidLayoutActiveContainer(s=>{De(e.activeContainer)===De(n.container)&&n.layout(s,e.activeContainerOffset.quickPickTop)})),this._register(e.onDidChangeActiveContainer(()=>{n.isVisible()||n.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop)})),this._register(n.onShow(()=>{this.resetContextKeys(),this._onShow.fire()})),this._register(n.onHide(()=>{this.resetContextKeys(),this._onHide.fire()})),n}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new de(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),!(t&&t.get())&&(this.resetContextKeys(),t==null||t.set(!0))}resetContextKeys(){this.contexts.forEach(e=>{e.get()&&e.reset()})}pick(e,t={},i=st.None){return this.controller.pick(e,t,i)}createQuickPick(){return this.controller.createQuickPick()}createInputBox(){return this.controller.createInputBox()}updateStyles(){this.hasController&&this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:{quickInputBackground:he(n4),quickInputForeground:he(aJ),quickInputTitleBackground:he(lJ),widgetBorder:he(jW),widgetShadow:he(Td)},inputBox:PS,toggle:AS,countBadge:q6,button:_le,progressBar:vle,keybindingLabel:ple,list:Qg({listBackground:n4,listFocusBackground:qc,listFocusForeground:Kc,listInactiveFocusForeground:Kc,listInactiveSelectionIconForeground:Gf,listInactiveFocusBackground:qc,listFocusOutline:ti,listInactiveFocusOutline:ti}),pickerGroup:{pickerGroupBorder:he(dJ),pickerGroupForeground:he(QW)}}}};wT=wce([__(0,Le),__(1,Me),__(2,Ji),__(3,qh),__(4,Je)],wT);var NH=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ou=function(o,e){return function(t,i){e(t,i,o)}};let ST=class extends wT{constructor(e,t,i,n,s,r){super(t,i,n,new yN(e.getContainerDomNode(),s),r),this.host=void 0;const a=dp.get(e);if(a){const l=a.widget;this.host={_serviceBrand:void 0,get mainContainer(){return l.getDomNode()},getContainer(){return l.getDomNode()},whenContainerStylesLoaded(){},get containers(){return[l.getDomNode()]},get activeContainer(){return l.getDomNode()},get mainContainerDimension(){return e.getLayoutInfo()},get activeContainerDimension(){return e.getLayoutInfo()},get onDidLayoutMainContainer(){return e.onDidLayoutChange},get onDidLayoutActiveContainer(){return e.onDidLayoutChange},get onDidLayoutContainer(){return ae.map(e.onDidLayoutChange,d=>({container:l.getDomNode(),dimension:d}))},get onDidChangeActiveContainer(){return ae.None},get onDidAddContainer(){return ae.None},get mainContainerOffset(){return{top:0,quickPickTop:0}},get activeContainerOffset(){return{top:0,quickPickTop:0}},focus:()=>e.focus()}}else this.host=void 0}createController(){return super.createController(this.host)}};ST=NH([Ou(1,Le),Ou(2,Me),Ou(3,Ji),Ou(4,_t),Ou(5,Je)],ST);let yT=class{get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const i=t=this.instantiationService.createInstance(ST,e);this.mapEditorToService.set(e,t),bh(e.onDidDispose)(()=>{i.dispose(),this.mapEditorToService.delete(e)})}return t}get currentQuickInput(){return this.activeService.currentQuickInput}get quickAccess(){return this.activeService.quickAccess}constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}pick(e,t={},i=st.None){return this.activeService.pick(e,t,i)}createQuickPick(){return this.activeService.createQuickPick()}createInputBox(){return this.activeService.createInputBox()}};yT=NH([Ou(0,Le),Ou(1,_t)],yT);class dp{static get(e){return e.getContribution(dp.ID)}constructor(e){this.editor=e,this.widget=new ex(this.editor)}dispose(){this.widget.dispose()}}dp.ID="editor.controller.quickInput";class ex{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return ex.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}ex.ID="editor.contrib.quickInputWidget";vt(dp.ID,dp,4);class Sce{constructor(e,t,i,n,s){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=s}}function yce(o){if(!o||!Array.isArray(o))return[];const e=[];let t=0;for(let i=0,n=o.length;i{const u=Ece(c.token,h.token);return u!==0?u:c.index-h.index});let t=0,i="000000",n="ffffff";for(;o.length>=1&&o[0].token==="";){const c=o.shift();c.fontStyle!==-1&&(t=c.fontStyle),c.foreground!==null&&(i=c.foreground),c.background!==null&&(n=c.background)}const s=new Dce;for(const c of e)s.getId(c);const r=s.getId(i),a=s.getId(n),l=new nP(t,r,a),d=new sP(l);for(let c=0,h=o.length;c"u"){const n=this._match(t),s=Ice(t);i=(n.metadata|s<<8)>>>0,this._cache.set(t,i)}return(i|e<<0)>>>0}}const kce=/\b(comment|string|regex|regexp)\b/;function Ice(o){const e=o.match(kce);if(!e)return 0;switch(e[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"regexp":return 3}throw new Error("Unexpected match for standard token type!")}function Ece(o,e){return oe?1:0}class nP{constructor(e,t,i){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}clone(){return new nP(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,i){e!==-1&&(this._fontStyle=e),t!==0&&(this._foreground=t),i!==0&&(this._background=i),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}}class sP{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){if(e==="")return this._mainRule;const t=e.indexOf(".");let i,n;t===-1?(i=e,n=""):(i=e.substring(0,t),n=e.substring(t+1));const s=this._children.get(i);return typeof s<"u"?s.match(n):this._mainRule}insert(e,t,i,n){if(e===""){this._mainRule.acceptOverwrite(t,i,n);return}const s=e.indexOf(".");let r,a;s===-1?(r=e,a=""):(r=e.substring(0,s),a=e.substring(s+1));let l=this._children.get(r);typeof l>"u"&&(l=new sP(this._mainRule.clone()),this._children.set(r,l)),l.insert(a,t,i,n)}}function Nce(o){const e=[];for(let t=1,i=o.length;t({format:n.format,location:n.location.toString()}))}}o.toJSONObject=e;function t(i){const n=s=>ys(s)?s:void 0;if(i&&Array.isArray(i.src)&&i.src.every(s=>ys(s.format)&&ys(s.location)))return{weight:n(i.weight),style:n(i.style),src:i.src.map(s=>({format:s.format,location:ke.parse(s.location)}))}}o.fromJSONObject=t})(C3||(C3={}));class Oce{constructor(){this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:m("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:m("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${Te.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,n){const s=this.iconsById[e];if(s){if(i&&!s.description){s.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;const l=this.iconReferenceSchema.enum.indexOf(e);l!==-1&&(this.iconReferenceSchema.enumDescriptions[l]=i),this._onDidChange.fire()}return s}const r={id:e,description:i,defaults:t,deprecationMessage:n};this.iconsById[e]=r;const a={$ref:"#/definitions/icons"};return n&&(a.deprecationMessage=n),i&&(a.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=a,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map(e=>this.iconsById[e])}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){const e=(s,r)=>s.id.localeCompare(r.id),t=s=>{for(;Te.isThemeIcon(s.defaults);)s=this.iconsById[s.defaults.id];return`codicon codicon-${s?s.id:""}`},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const n=Object.keys(this.iconsById).map(s=>this.iconsById[s]);for(const s of n.filter(r=>!!r.description).sort(e))i.push(`||${s.id}|${Te.isThemeIcon(s.defaults)?s.defaults.id:s.id}|${s.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(const s of n.filter(r=>!Te.isThemeIcon(r.defaults)).sort(e))i.push(`||${s.id}|`);return i.join(` +`)}}const ef=new Oce;hi.add(Pce.IconContribution,ef);function _i(o,e,t,i){return ef.registerIcon(o,e,t,i)}function MH(){return ef}function Fce(){const o=m9();for(const e in o){const t="\\"+o[e].toString(16);ef.registerIcon(e,{fontCharacter:t})}}Fce();const RH="vscode://schemas/icons",AH=hi.as(cL.JSONContribution);AH.registerSchema(RH,ef.getIconSchema());const w3=new At(()=>AH.notifySchemaChanged(RH),200);ef.onDidChange(()=>{w3.isScheduled()||w3.schedule()});const PH=_i("widget-close",oe.close,m("widgetClose","Icon for the close action in widgets."));_i("goto-previous-location",oe.arrowUp,m("previousChangeIcon","Icon for goto previous editor location."));_i("goto-next-location",oe.arrowDown,m("nextChangeIcon","Icon for goto next editor location."));Te.modify(oe.sync,"spin");Te.modify(oe.loading,"spin");function Bce(o){const e=new G,t=e.add(new O),i=MH();return e.add(i.onDidChange(()=>t.fire())),o&&e.add(o.onDidProductIconThemeChange(()=>t.fire())),{dispose:()=>e.dispose(),onDidChange:t.event,getCSS(){const n=o?o.getProductIconTheme():new OH,s={},r=[],a=[];for(const l of i.getIcons()){const d=n.getIcon(l);if(!d)continue;const c=d.font,h=`--vscode-icon-${l.id}-font-family`,u=`--vscode-icon-${l.id}-content`;c?(s[c.id]=c.definition,a.push(`${h}: ${xD(c.id)};`,`${u}: '${d.fontCharacter}';`),r.push(`.codicon-${l.id}:before { content: '${d.fontCharacter}'; font-family: ${xD(c.id)}; }`)):(a.push(`${u}: '${d.fontCharacter}'; ${h}: 'codicon';`),r.push(`.codicon-${l.id}:before { content: '${d.fontCharacter}'; }`))}for(const l in s){const d=s[l],c=d.weight?`font-weight: ${d.weight};`:"",h=d.style?`font-style: ${d.style};`:"",u=d.src.map(g=>`${ec(g.location)} format('${g.format}')`).join(", ");r.push(`@font-face { src: ${u}; font-family: ${xD(l)};${c}${h} font-display: block; }`)}return r.push(`:root { ${a.join(" ")} }`),r.join(` +`)}}}class OH{getIcon(e){const t=MH();let i=e.defaults;for(;Te.isThemeIcon(i);){const n=t.getIcon(i.id);if(!n)return;i=n.defaults}return i}}const Sd="vs",Nm="vs-dark",ig="hc-black",ng="hc-light",FH=hi.as(HW.ColorContribution),Wce=hi.as(s8.ThemingContribution);class BH{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;const i=t.base;e.length>0?(bw(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),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){const e=new Map;for(const t in this.themeData.colors)e.set(t,z.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){const t=LT(this.themeData.base);for(const i in t.colors)e.has(i)||e.set(i,z.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){const i=this.getColors().get(e);if(i)return i;if(t!==!1)return this.getDefault(e)}getDefault(e){let t=this.defaultColors[e];return t||(t=FH.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return this.getColors().has(e)}get type(){switch(this.base){case Sd:return sr.LIGHT;case ig:return sr.HIGH_CONTRAST_DARK;case ng:return sr.HIGH_CONTRAST_LIGHT;default:return sr.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){const s=LT(this.themeData.base);e=s.rules,s.encodedTokensColors&&(t=s.encodedTokensColors)}const i=this.themeData.colors["editor.foreground"],n=this.themeData.colors["editor.background"];if(i||n){const s={token:""};i&&(s.foreground=i),n&&(s.background=n),e.push(s)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=TH.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){const s=this.tokenTheme._match([e].concat(t).join(".")).metadata,r=An.getForeground(s),a=An.getFontStyle(s);return{foreground:r,italic:!!(a&1),bold:!!(a&2),underline:!!(a&4),strikethrough:!!(a&8)}}}function bw(o){return o===Sd||o===Nm||o===ig||o===ng}function LT(o){switch(o){case Sd:return Tce;case Nm:return Mce;case ig:return Rce;case ng:return Ace}}function u1(o){const e=LT(o);return new BH(o,e)}class Hce extends W{constructor(){super(),this._onColorThemeChange=this._register(new O),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new O),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new OH,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(Sd,u1(Sd)),this._knownThemes.set(Nm,u1(Nm)),this._knownThemes.set(ig,u1(ig)),this._knownThemes.set(ng,u1(ng));const e=this._register(Bce(this));this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS} +${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(Sd),this._onOSSchemeChanged(),this._register(e.onDidChange(()=>{this._codiconCSS=e.getCSS(),this._updateCSS()})),k9(Mt,"(forced-colors: active)",()=>{this._onOSSchemeChanged()})}registerEditorContainer(e){return Gw(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=Fo(void 0,e=>{e.className="monaco-colors",e.textContent=this._allCSS}),this._styleElements.push(this._globalStyleElement)),W.None}_registerShadowDomContainer(e){const t=Fo(e,i=>{i.className="monaco-colors",i.textContent=this._allCSS});return this._styleElements.push(t),{dispose:()=>{for(let i=0;i{i.base===e&&i.notifyBaseUpdated()}),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;this._knownThemes.has(e)?t=this._knownThemes.get(e):t=this._knownThemes.get(Sd),this._updateActualTheme(t)}_updateActualTheme(e){!e||this._theme===e||(this._theme=e,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){const e=Mt.matchMedia("(forced-colors: active)").matches;if(e!==Sa(this._theme.type)){let t;Gm(this._theme.type)?t=e?ig:Nm:t=e?ng:Sd,this._updateActualTheme(this._knownThemes.get(t))}}}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged()}_updateThemeOrColorMap(){const e=[],t={},i={addRule:r=>{t[r]||(e.push(r),t[r]=!0)}};Wce.getThemingParticipants().forEach(r=>r(this._theme,i,this._environment));const n=[];for(const r of FH.getColors()){const a=this._theme.getColor(r.id,!0);a&&n.push(`${BA(r.id)}: ${a.toString()};`)}i.addRule(`.monaco-editor, .monaco-diff-editor, .monaco-component { ${n.join(` +`)} }`);const s=this._colorMapOverride||this._theme.tokenTheme.getColorMap();i.addRule(Nce(s)),this._themeCSS=e.join(` +`),this._updateCSS(),gi.setColorMap(s),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS} +${this._themeCSS}`,this._styleElements.forEach(e=>e.textContent=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}const jo=ot("themeService");var Vce=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ak=function(o,e){return function(t,i){e(t,i,o)}};let xT=class extends W{constructor(e,t,i){super(),this._contextKeyService=e,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new O,this._onDidChangeReducedMotion=new O,this._accessibilityModeEnabledContext=R0.bindTo(this._contextKeyService);const n=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(r=>{r.affectsConfiguration("editor.accessibilitySupport")&&(n(),this._onDidChangeScreenReaderOptimized.fire()),r.affectsConfiguration("workbench.reduceMotion")&&(this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._onDidChangeReducedMotion.fire())})),n(),this._register(this.onDidChangeScreenReaderOptimized(()=>n()));const s=Mt.matchMedia("(prefers-reduced-motion: reduce)");this._systemMotionReduced=s.matches,this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this.initReducedMotionListeners(s)}initReducedMotionListeners(e){this._register(U(e,"change",()=>{this._systemMotionReduced=e.matches,this._configMotionReduced==="auto"&&this._onDidChangeReducedMotion.fire()}));const t=()=>{const i=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle("reduce-motion",i),this._layoutService.mainContainer.classList.toggle("enable-motion",!i)};t(),this._register(this.onDidChangeReducedMotion(()=>t()))}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const e=this._configurationService.getValue("editor.accessibilitySupport");return e==="on"||e==="auto"&&this._accessibilitySupport===2}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const e=this._configMotionReduced;return e==="on"||e==="auto"&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};xT=Vce([Ak(0,Me),Ak(1,qh),Ak(2,Je)],xT);var tx=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Nl=function(o,e){return function(t,i){e(t,i,o)}},Nf,Ic;let DT=class{constructor(e,t,i){this._commandService=e,this._keybindingService=t,this._hiddenStates=new ey(i)}createMenu(e,t,i){return new IT(e,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...i},this._commandService,this._keybindingService,t)}resetHiddenStates(e){this._hiddenStates.reset(e)}};DT=tx([Nl(0,Qt),Nl(1,St),Nl(2,Kr)],DT);let ey=Nf=class{constructor(e){this._storageService=e,this._disposables=new G,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1,this._hiddenByDefaultCache=new Map;try{const t=e.get(Nf._key,0,"{}");this._data=JSON.parse(t)}catch{this._data=Object.create(null)}this._disposables.add(e.onDidChangeValue(0,Nf._key,this._disposables)(()=>{if(!this._ignoreChangeEvent)try{const t=e.get(Nf._key,0,"{}");this._data=JSON.parse(t)}catch(t){console.log("FAILED to read storage after UPDATE",t)}this._onDidChange.fire()}))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}_isHiddenByDefault(e,t){var i;return(i=this._hiddenByDefaultCache.get(`${e.id}/${t}`))!==null&&i!==void 0?i:!1}setDefaultState(e,t,i){this._hiddenByDefaultCache.set(`${e.id}/${t}`,i)}isHidden(e,t){var i,n;const s=this._isHiddenByDefault(e,t),r=(n=(i=this._data[e.id])===null||i===void 0?void 0:i.includes(t))!==null&&n!==void 0?n:!1;return s?!r:r}updateHidden(e,t,i){this._isHiddenByDefault(e,t)&&(i=!i);const s=this._data[e.id];if(i)s?s.indexOf(t)<0&&s.push(t):this._data[e.id]=[t];else if(s){const r=s.indexOf(t);r>=0&&x$(s,r),s.length===0&&delete this._data[e.id]}this._persist()}reset(e){if(e===void 0)this._data=Object.create(null),this._persist();else{for(const{id:t}of e)this._data[t]&&delete this._data[t];this._persist()}}_persist(){try{this._ignoreChangeEvent=!0;const e=JSON.stringify(this._data);this._storageService.store(Nf._key,e,0,0)}finally{this._ignoreChangeEvent=!1}}};ey._key="menu.hiddenCommands";ey=Nf=tx([Nl(0,Kr)],ey);let kT=Ic=class{constructor(e,t,i,n,s,r){this._id=e,this._hiddenStates=t,this._collectContextKeysForSubmenus=i,this._commandService=n,this._keybindingService=s,this._contextKeyService=r,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();const e=mn.getMenuItems(this._id);let t;e.sort(Ic._compareMenuItems);for(const i of e){const n=i.group||"";(!t||t[0]!==n)&&(t=[n,[]],this._menuGroups.push(t)),t[1].push(i),this._collectContextKeys(i)}}_collectContextKeys(e){if(Ic._fillInKbExprKeys(e.when,this._structureContextKeys),Wf(e)){if(e.command.precondition&&Ic._fillInKbExprKeys(e.command.precondition,this._preconditionContextKeys),e.command.toggled){const t=e.command.toggled.condition||e.command.toggled;Ic._fillInKbExprKeys(t,this._toggledContextKeys)}}else this._collectContextKeysForSubmenus&&mn.getMenuItems(e.submenu).forEach(this._collectContextKeys,this)}createActionGroups(e){const t=[];for(const i of this._menuGroups){const[n,s]=i;let r;for(const a of s)if(this._contextKeyService.contextMatchesRules(a.when)){const l=Wf(a);l&&this._hiddenStates.setDefaultState(this._id,a.command.id,!!a.isHiddenByDefault);const d=zce(this._id,l?a.command:a,this._hiddenStates);if(l){const c=WH(a.command.id,a.when,this._commandService,this._keybindingService);(r??(r=[])).push(new so(a.command,a.alt,e,d,c,this._contextKeyService,this._commandService))}else{const c=new Ic(a.submenu,this._hiddenStates,this._collectContextKeysForSubmenus,this._commandService,this._keybindingService,this._contextKeyService).createActionGroups(e),h=ji.join(...c.map(u=>u[1]));h.length>0&&(r??(r=[])).push(new hm(a,d,h))}}r&&r.length>0&&t.push([n,r])}return t}static _fillInKbExprKeys(e,t){if(e)for(const i of e.keys())t.add(i)}static _compareMenuItems(e,t){const i=e.group,n=t.group;if(i!==n){if(i){if(!n)return-1}else return 1;if(i==="navigation")return-1;if(n==="navigation")return 1;const a=i.localeCompare(n);if(a!==0)return a}const s=e.order||0,r=t.order||0;return sr?1:Ic._compareTitles(Wf(e)?e.command.title:e.title,Wf(t)?t.command.title:t.title)}static _compareTitles(e,t){const i=typeof e=="string"?e:e.original,n=typeof t=="string"?t:t.original;return i.localeCompare(n)}};kT=Ic=tx([Nl(3,Qt),Nl(4,St),Nl(5,Me)],kT);let IT=class{constructor(e,t,i,n,s,r){this._disposables=new G,this._menuInfo=new kT(e,t,i.emitEventsForSubmenuChanges,n,s,r);const a=new At(()=>{this._menuInfo.refresh(),this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!0,isToggleChange:!0})},i.eventDebounceDelay);this._disposables.add(a),this._disposables.add(mn.onDidChangeMenu(h=>{h.has(e)&&a.schedule()}));const l=this._disposables.add(new G),d=h=>{let u=!1,g=!1,f=!1;for(const p of h)if(u=u||p.isStructuralChange,g=g||p.isEnablementChange,f=f||p.isToggleChange,u&&g&&f)break;return{menu:this,isStructuralChange:u,isEnablementChange:g,isToggleChange:f}},c=()=>{l.add(r.onDidChangeContext(h=>{const u=h.affectsSome(this._menuInfo.structureContextKeys),g=h.affectsSome(this._menuInfo.preconditionContextKeys),f=h.affectsSome(this._menuInfo.toggledContextKeys);(u||g||f)&&this._onDidChange.fire({menu:this,isStructuralChange:u,isEnablementChange:g,isToggleChange:f})})),l.add(t.onDidChange(h=>{this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!1,isToggleChange:!1})}))};this._onDidChange=new o9({onWillAddFirstListener:c,onDidRemoveLastListener:l.clear.bind(l),delay:i.eventDebounceDelay,merge:d}),this.onDidChange=this._onDidChange.event}getActions(e){return this._menuInfo.createActionGroups(e)}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}};IT=tx([Nl(3,Qt),Nl(4,St),Nl(5,Me)],IT);function zce(o,e,t){const i=OG(e)?e.submenu.id:e.id,n=typeof e.title=="string"?e.title:e.title.value,s=Qu({id:`hide/${o.id}/${i}`,label:m("hide.label","Hide '{0}'",n),run(){t.updateHidden(o,i,!0)}}),r=Qu({id:`toggle/${o.id}/${i}`,label:n,get checked(){return!t.isHidden(o,i)},run(){t.updateHidden(o,i,!!this.checked)}});return{hide:s,toggle:r,get isHidden(){return!r.checked}}}function WH(o,e=void 0,t,i){return Qu({id:`configureKeybinding/${o}`,label:m("configure keybinding","Configure Keybinding"),run(){const s=!!!i.lookupKeybinding(o)&&e?e.serialize():void 0;t.executeCommand("workbench.action.openGlobalKeybindings",`@command:${o}`+(s?` +when:${s}`:""))}})}var Uce=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},S3=function(o,e){return function(t,i){e(t,i,o)}},ET;let ty=ET=class extends W{constructor(e,t){super(),this.layoutService=e,this.logService=t,this.mapTextToType=new Map,this.findText="",this.resources=[],this.resourcesStateHash=void 0,(Yd||I9)&&this.installWebKitWriteTextWorkaround(),this._register(ae.runAndSubscribe(qy,({window:i,disposables:n})=>{n.add(U(i.document,"copy",()=>this.clearResources()))},{window:Mt,disposables:this._store}))}installWebKitWriteTextWorkaround(){const e=()=>{const t=new k0;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=t,Q1().navigator.clipboard.write([new ClipboardItem({"text/plain":t.p})]).catch(async i=>{(!(i instanceof Error)||i.name!=="NotAllowedError"||!t.isRejected)&&this.logService.error(i)})};this._register(ae.runAndSubscribe(this.layoutService.onDidAddContainer,({container:t,disposables:i})=>{i.add(U(t,"click",e)),i.add(U(t,"keydown",e))},{container:this.layoutService.mainContainer,disposables:this._store}))}async writeText(e,t){if(this.writeResources([]),t){this.mapTextToType.set(t,e);return}if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(e);try{return await Q1().navigator.clipboard.writeText(e)}catch(i){console.error(i)}this.fallbackWriteText(e)}fallbackWriteText(e){const t=Ip(),i=t.activeElement,n=t.body.appendChild(te("textarea",{"aria-hidden":!0}));n.style.height="1px",n.style.width="1px",n.style.position="absolute",n.value=e,n.focus(),n.select(),t.execCommand("copy"),_n(i)&&i.focus(),t.body.removeChild(n)}async readText(e){if(e)return this.mapTextToType.get(e)||"";try{return await Q1().navigator.clipboard.readText()}catch(t){console.error(t)}return""}async readFindText(){return this.findText}async writeFindText(e){this.findText=e}async writeResources(e){e.length===0?this.clearResources():(this.resources=e,this.resourcesStateHash=await this.computeResourcesStateHash())}async readResources(){const e=await this.computeResourcesStateHash();return this.resourcesStateHash!==e&&this.clearResources(),this.resources}async computeResourcesStateHash(){if(this.resources.length===0)return;const e=await this.readText();return $y(e.substring(0,ET.MAX_RESOURCE_STATE_SOURCE_LENGTH))}clearResources(){this.resources=[],this.resourcesStateHash=void 0}};ty.MAX_RESOURCE_STATE_SOURCE_LENGTH=1e3;ty=ET=Uce([S3(0,qh),S3(1,qn)],ty);const uc=ot("clipboardService");var $ce=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},jce=function(o,e){return function(t,i){e(t,i,o)}};const xv="data-keybinding-context";let oP=class{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}get value(){return{...this._value}}setValue(e,t){return this._value[e]!==t?(this._value[e]=t,!0):!1}removeValue(e){return e in this._value?(delete this._value[e],!0):!1}getValue(e){const t=this._value[e];return typeof t>"u"&&this._parent?this._parent.getValue(e):t}};class cp extends oP{constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}cp.INSTANCE=new cp;class Fb extends oP{constructor(e,t,i){super(e,null),this._configurationService=t,this._values=Dm.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration(n=>{if(n.source===7){const s=Array.from(this._values,([r])=>r);this._values.clear(),i.fire(new L3(s))}else{const s=[];for(const r of n.affectedKeys){const a=`config.${r}`,l=this._values.findSuperstr(a);l!==void 0&&(s.push(...dt.map(l,([d])=>d)),this._values.deleteSuperstr(a)),this._values.has(a)&&(s.push(a),this._values.delete(a))}i.fire(new L3(s))}})}dispose(){this._listener.dispose()}getValue(e){if(e.indexOf(Fb._keyPrefix)!==0)return super.getValue(e);if(this._values.has(e))return this._values.get(e);const t=e.substr(Fb._keyPrefix.length),i=this._configurationService.getValue(t);let n;switch(typeof i){case"number":case"boolean":case"string":n=i;break;default:Array.isArray(i)?n=JSON.stringify(i):n=i}return this._values.set(e,n),n}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}Fb._keyPrefix="config.";class Kce{constructor(e,t,i){this._service=e,this._key=t,this._defaultValue=i,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){typeof this._defaultValue>"u"?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class y3{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}allKeysContainedIn(e){return this.affectsSome(e)}}class L3{constructor(e){this.keys=e}affectsSome(e){for(const t of this.keys)if(e.has(t))return!0;return!1}allKeysContainedIn(e){return this.keys.every(t=>e.has(t))}}class qce{constructor(e){this.events=e}affectsSome(e){for(const t of this.events)if(t.affectsSome(e))return!0;return!1}allKeysContainedIn(e){return this.events.every(t=>t.allKeysContainedIn(e))}}function Gce(o,e){return o.allKeysContainedIn(new Set(Object.keys(e)))}class HH extends W{constructor(e){super(),this._onDidChangeContext=this._register(new dg({merge:t=>new qce(t)})),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Kce(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Zce(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const t=this.getContextValuesContainer(this._myContextId);return e?e.evaluate(t):!0}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;const i=this.getContextValuesContainer(this._myContextId);i&&i.setValue(e,t)&&this._onDidChangeContext.fire(new y3(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new y3(e))}getContext(e){return this._isDisposed?cp.INSTANCE:this.getContextValuesContainer(Yce(e))}dispose(){super.dispose(),this._isDisposed=!0}}let NT=class extends HH{constructor(e){super(0),this._contexts=new Map,this._lastContextId=0;const t=this._register(new Fb(this._myContextId,e,this._onDidChangeContext));this._contexts.set(this._myContextId,t)}getContextValuesContainer(e){return this._isDisposed?cp.INSTANCE:this._contexts.get(e)||cp.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");const t=++this._lastContextId;return this._contexts.set(t,new oP(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};NT=$ce([jce(0,Je)],NT);class Zce extends HH{constructor(e,t){if(super(e.createChildContext()),this._parentChangeListener=this._register(new ln),this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(xv)){let i="";this._domNode.classList&&(i=Array.from(this._domNode.classList.values()).join(", ")),console.error(`Element already has context attribute${i?": "+i:""}`)}this._domNode.setAttribute(xv,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext(e=>{const i=this._parent.getContextValuesContainer(this._myContextId).value;Gce(e,i)||this._onDidChangeContext.fire(e)})}dispose(){this._isDisposed||(this._parent.disposeContext(this._myContextId),this._domNode.removeAttribute(xv),super.dispose())}getContextValuesContainer(e){return this._isDisposed?cp.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}}function Yce(o){for(;o;){if(o.hasAttribute(xv)){const e=o.getAttribute(xv);return e?parseInt(e,10):NaN}o=o.parentElement}return 0}function Qce(o,e,t){o.get(Me).createKey(String(e),Xce(t))}function Xce(o){return j7(o,e=>{if(typeof e=="object"&&e.$mid===1)return ke.revive(e).toString();if(e instanceof ke)return e.toString()})}ct.registerCommand("_setContext",Qce);ct.registerCommand({id:"getContextKeyInfo",handler(){return[...de.all()].sort((o,e)=>o.key.localeCompare(e.key))},metadata:{description:m("getContextKeyInfo","A command that returns information about context keys"),args:[]}});ct.registerCommand("_generateContextKeyInfo",function(){const o=[],e=new Set;for(const t of de.all())e.has(t.key)||(e.add(t.key),o.push(t));o.sort((t,i)=>t.key.localeCompare(i.key)),console.log(JSON.stringify(o,void 0,2))});let Jce=class{constructor(e,t){this.key=e,this.data=t,this.incoming=new Map,this.outgoing=new Map}};class x3{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(const t of this._nodes.values())t.outgoing.size===0&&e.push(t);return e}insertEdge(e,t){const i=this.lookupOrInsertNode(e),n=this.lookupOrInsertNode(t);i.outgoing.set(n.key,n),n.incoming.set(i.key,i)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(const i of this._nodes.values())i.outgoing.delete(t),i.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let i=this._nodes.get(t);return i||(i=new Jce(t,e),this._nodes.set(t,i)),i}isEmpty(){return this._nodes.size===0}toString(){const e=[];for(const[t,i]of this._nodes)e.push(`${t} + (-> incoming)[${[...i.incoming.keys()].join(", ")}] + (outgoing ->)[${[...i.outgoing.keys()].join(",")}] +`);return e.join(` +`)}findCycleSlow(){for(const[e,t]of this._nodes){const i=new Set([e]),n=this._findCycle(t,i);if(n)return n}}_findCycle(e,t){for(const[i,n]of e.outgoing){if(t.has(i))return[...t,i].join(" -> ");t.add(i);const s=this._findCycle(n,t);if(s)return s;t.delete(i)}}}const ehe=!1;class D3 extends Error{constructor(e){var t;super("cyclic dependency between services"),this.message=(t=e.findCycleSlow())!==null&&t!==void 0?t:`UNABLE to detect cycle, dumping graph: +${e.toString()}`}}class iy{constructor(e=new V0,t=!1,i,n=ehe){var s;this._services=e,this._strict=t,this._parent=i,this._enableTracing=n,this._isDisposed=!1,this._servicesToMaybeDispose=new Set,this._children=new Set,this._activeInstantiations=new Set,this._services.set(Le,this),this._globalGraph=n?(s=i==null?void 0:i._globalGraph)!==null&&s!==void 0?s:new x3(r=>r):void 0}dispose(){if(!this._isDisposed){this._isDisposed=!0,Pt(this._children),this._children.clear();for(const e of this._servicesToMaybeDispose)Vy(e)&&e.dispose();this._servicesToMaybeDispose.clear()}}_throwIfDisposed(){if(this._isDisposed)throw new Error("InstantiationService has been disposed")}createChild(e,t){this._throwIfDisposed();const i=this,n=new class extends iy{dispose(){i._children.delete(n),super.dispose()}}(e,this._strict,this,this._enableTracing);return this._children.add(n),t==null||t.add(n),n}invokeFunction(e,...t){this._throwIfDisposed();const i=Fs.traceInvocation(this._enableTracing,e);let n=!1;try{return e({get:r=>{if(n)throw QR("service accessor is only valid during the invocation of its target method");const a=this._getOrCreateServiceInstance(r,i);if(!a)throw new Error(`[invokeFunction] unknown service '${r}'`);return a}},...t)}finally{n=!0,i.stop()}}createInstance(e,...t){this._throwIfDisposed();let i,n;return e instanceof rl?(i=Fs.traceCreation(this._enableTracing,e.ctor),n=this._createInstance(e.ctor,e.staticArguments.concat(t),i)):(i=Fs.traceCreation(this._enableTracing,e),n=this._createInstance(e,t,i)),i.stop(),n}_createInstance(e,t=[],i){const n=fa.getServiceDependencies(e).sort((a,l)=>a.index-l.index),s=[];for(const a of n){const l=this._getOrCreateServiceInstance(a.id,i);l||this._throwIfStrict(`[createInstance] ${e.name} depends on UNKNOWN service ${a.id}.`,!1),s.push(l)}const r=n.length>0?n[0].index:t.length;if(t.length!==r){console.trace(`[createInstance] First service dependency of ${e.name} at position ${r+1} conflicts with ${t.length} static arguments`);const a=r-t.length;a>0?t=t.concat(new Array(a)):t=t.slice(0,r)}return Reflect.construct(e,t.concat(s))}_setCreatedServiceInstance(e,t){if(this._services.get(e)instanceof rl)this._services.set(e,t);else if(this._parent)this._parent._setCreatedServiceInstance(e,t);else throw new Error("illegalState - setting UNKNOWN service instance")}_getServiceInstanceOrDescriptor(e){const t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t}_getOrCreateServiceInstance(e,t){this._globalGraph&&this._globalGraphImplicitDependency&&this._globalGraph.insertEdge(this._globalGraphImplicitDependency,String(e));const i=this._getServiceInstanceOrDescriptor(e);return i instanceof rl?this._safeCreateAndCacheServiceInstance(e,i,t.branch(e,!0)):(t.branch(e,!1),i)}_safeCreateAndCacheServiceInstance(e,t,i){if(this._activeInstantiations.has(e))throw new Error(`illegal state - RECURSIVELY instantiating service '${e}'`);this._activeInstantiations.add(e);try{return this._createAndCacheServiceInstance(e,t,i)}finally{this._activeInstantiations.delete(e)}}_createAndCacheServiceInstance(e,t,i){var n;const s=new x3(l=>l.id.toString());let r=0;const a=[{id:e,desc:t,_trace:i}];for(;a.length;){const l=a.pop();if(s.lookupOrInsertNode(l),r++>1e3)throw new D3(s);for(const d of fa.getServiceDependencies(l.desc.ctor)){const c=this._getServiceInstanceOrDescriptor(d.id);if(c||this._throwIfStrict(`[createInstance] ${e} depends on ${d.id} which is NOT registered.`,!0),(n=this._globalGraph)===null||n===void 0||n.insertEdge(String(l.id),String(d.id)),c instanceof rl){const h={id:d.id,desc:c,_trace:l._trace.branch(d.id,!0)};s.insertEdge(l,h),a.push(h)}}}for(;;){const l=s.roots();if(l.length===0){if(!s.isEmpty())throw new D3(s);break}for(const{data:d}of l){if(this._getServiceInstanceOrDescriptor(d.id)instanceof rl){const h=this._createServiceInstanceWithOwner(d.id,d.desc.ctor,d.desc.staticArguments,d.desc.supportsDelayedInstantiation,d._trace);this._setCreatedServiceInstance(d.id,h)}s.removeNode(d)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t,i=[],n,s){if(this._services.get(e)instanceof rl)return this._createServiceInstance(e,t,i,n,s,this._servicesToMaybeDispose);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,i,n,s);throw new Error(`illegalState - creating UNKNOWN service instance ${t.name}`)}_createServiceInstance(e,t,i=[],n,s,r){if(n){const a=new iy(void 0,this._strict,this,this._enableTracing);a._globalGraphImplicitDependency=String(e);const l=new Map,d=new dq(()=>{const c=a._createInstance(t,i,s);for(const[h,u]of l){const g=c[h];if(typeof g=="function")for(const f of u)f.disposable=g.apply(c,f.listener)}return l.clear(),r.add(c),c});return new Proxy(Object.create(null),{get(c,h){if(!d.isInitialized&&typeof h=="string"&&(h.startsWith("onDid")||h.startsWith("onWill"))){let f=l.get(h);return f||(f=new vs,l.set(h,f)),(_,v,b)=>{if(d.isInitialized)return d.value[h](_,v,b);{const C={listener:[_,v,b],disposable:void 0},w=f.push(C);return Ce(()=>{var L;w(),(L=C.disposable)===null||L===void 0||L.dispose()})}}}if(h in c)return c[h];const u=d.value;let g=u[h];return typeof g!="function"||(g=g.bind(u),c[h]=g),g},set(c,h,u){return d.value[h]=u,!0},getPrototypeOf(c){return t.prototype}})}else{const a=this._createInstance(t,i,s);return r.add(a),a}}_throwIfStrict(e,t){if(t&&console.warn(e),this._strict)throw new Error(e)}}class Fs{static traceInvocation(e,t){return e?new Fs(2,t.name||new Error().stack.split(` +`).slice(3,4).join(` +`)):Fs._None}static traceCreation(e,t){return e?new Fs(1,t.name):Fs._None}constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}branch(e,t){const i=new Fs(3,e.toString());return this._dep.push([e,t,i]),i}stop(){const e=Date.now()-this._start;Fs._totals+=e;let t=!1;function i(s,r){const a=[],l=new Array(s+1).join(" ");for(const[d,c,h]of r._dep)if(c&&h){t=!0,a.push(`${l}CREATES -> ${d}`);const u=i(s+1,h);u&&a.push(u)}else a.push(`${l}uses -> ${d}`);return a.join(` +`)}const n=[`${this.type===1?"CREATE":"CALL"} ${this.name}`,`${i(1,this)}`,`DONE, took ${e.toFixed(2)}ms (grand total ${Fs._totals.toFixed(2)}ms)`];(e>2||t)&&Fs.all.add(n.join(` +`))}}Fs.all=new Set;Fs._None=new class extends Fs{constructor(){super(0,null)}stop(){}branch(){return this}};Fs._totals=0;const the=new Set([Oe.inMemory,Oe.vscodeSourceControl,Oe.walkThrough,Oe.walkThroughSnippet,Oe.vscodeChatCodeBlock,Oe.vscodeCopilotBackingChatCodeBlock]);class ihe{constructor(){this._byResource=new Ni,this._byOwner=new Map}set(e,t,i){let n=this._byResource.get(e);n||(n=new Map,this._byResource.set(e,n)),n.set(t,i);let s=this._byOwner.get(t);s||(s=new Ni,this._byOwner.set(t,s)),s.set(e,i)}get(e,t){const i=this._byResource.get(e);return i==null?void 0:i.get(t)}delete(e,t){let i=!1,n=!1;const s=this._byResource.get(e);s&&(i=s.delete(t));const r=this._byOwner.get(t);if(r&&(n=r.delete(e)),i!==n)throw new Error("illegal state");return i&&n}values(e){var t,i,n,s;return typeof e=="string"?(i=(t=this._byOwner.get(e))===null||t===void 0?void 0:t.values())!==null&&i!==void 0?i:dt.empty():ke.isUri(e)?(s=(n=this._byResource.get(e))===null||n===void 0?void 0:n.values())!==null&&s!==void 0?s:dt.empty():dt.map(dt.concat(...this._byOwner.values()),r=>r[1])}}class nhe{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new Ni,this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(e){for(const t of e){const i=this._data.get(t);i&&this._substract(i);const n=this._resourceStats(t);this._add(n),this._data.set(t,n)}}_resourceStats(e){const t={errors:0,warnings:0,infos:0,unknowns:0};if(the.has(e.scheme))return t;for(const{severity:i}of this._service.read({resource:e}))i===pi.Error?t.errors+=1:i===pi.Warning?t.warnings+=1:i===pi.Info?t.infos+=1:t.unknowns+=1;return t}_substract(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns}_add(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns}}class Nc{constructor(){this._onMarkerChanged=new o9({delay:0,merge:Nc._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new ihe,this._stats=new nhe(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(e,t){for(const i of t||[])this.changeOne(e,i,[])}changeOne(e,t,i){if(H7(i))this._data.delete(t,e)&&this._onMarkerChanged.fire([t]);else{const n=[];for(const s of i){const r=Nc._toMarker(e,t,s);r&&n.push(r)}this._data.set(t,e,n),this._onMarkerChanged.fire([t])}}static _toMarker(e,t,i){let{code:n,severity:s,message:r,source:a,startLineNumber:l,startColumn:d,endLineNumber:c,endColumn:h,relatedInformation:u,tags:g}=i;if(r)return l=l>0?l:1,d=d>0?d:1,c=c>=l?c:l,h=h>0?h:d,{resource:t,owner:e,code:n,severity:s,message:r,source:a,startLineNumber:l,startColumn:d,endLineNumber:c,endColumn:h,relatedInformation:u,tags:g}}changeAll(e,t){const i=[],n=this._data.values(e);if(n)for(const s of n){const r=dt.first(s);r&&(i.push(r.resource),this._data.delete(r.resource,e))}if(jn(t)){const s=new Ni;for(const{resource:r,marker:a}of t){const l=Nc._toMarker(e,r,a);if(!l)continue;const d=s.get(r);d?d.push(l):(s.set(r,[l]),i.push(r))}for(const[r,a]of s)this._data.set(r,e,a)}i.length>0&&this._onMarkerChanged.fire(i)}read(e=Object.create(null)){let{owner:t,resource:i,severities:n,take:s}=e;if((!s||s<0)&&(s=-1),t&&i){const r=this._data.get(i,t);if(r){const a=[];for(const l of r)if(Nc._accept(l,n)){const d=a.push(l);if(s>0&&d===s)break}return a}else return[]}else if(!t&&!i){const r=[];for(const a of this._data.values())for(const l of a)if(Nc._accept(l,n)){const d=r.push(l);if(s>0&&d===s)return r}return r}else{const r=this._data.values(i??t),a=[];for(const l of r)for(const d of l)if(Nc._accept(d,n)){const c=a.push(d);if(s>0&&c===s)return a}return a}}static _accept(e,t){return t===void 0||(t&e.severity)===e.severity}static _merge(e){const t=new Ni;for(const i of e)for(const n of i)t.set(n,!0);return Array.from(t.keys())}}class she extends W{get configurationModel(){return this._configurationModel}constructor(e){super(),this.logService=e,this._configurationModel=Ln.createEmptyModel(this.logService)}reload(){return this.resetConfigurationModel(),this.configurationModel}getConfigurationDefaultOverrides(){return{}}resetConfigurationModel(){this._configurationModel=Ln.createEmptyModel(this.logService);const e=hi.as(Ba.Configuration).getConfigurationProperties();this.updateConfigurationModel(Object.keys(e),e)}updateConfigurationModel(e,t){const i=this.getConfigurationDefaultOverrides();for(const n of e){const s=i[n],r=t[n];s!==void 0?this._configurationModel.addValue(n,s):r?this._configurationModel.addValue(n,r.default):this._configurationModel.removeValue(n)}}}const Qh=ot("accessibilitySignalService");class Re{static register(e){return new Re(e.fileName)}constructor(e){this.fileName=e}}Re.error=Re.register({fileName:"error.mp3"});Re.warning=Re.register({fileName:"warning.mp3"});Re.success=Re.register({fileName:"success.mp3"});Re.foldedArea=Re.register({fileName:"foldedAreas.mp3"});Re.break=Re.register({fileName:"break.mp3"});Re.quickFixes=Re.register({fileName:"quickFixes.mp3"});Re.taskCompleted=Re.register({fileName:"taskCompleted.mp3"});Re.taskFailed=Re.register({fileName:"taskFailed.mp3"});Re.terminalBell=Re.register({fileName:"terminalBell.mp3"});Re.diffLineInserted=Re.register({fileName:"diffLineInserted.mp3"});Re.diffLineDeleted=Re.register({fileName:"diffLineDeleted.mp3"});Re.diffLineModified=Re.register({fileName:"diffLineModified.mp3"});Re.chatRequestSent=Re.register({fileName:"chatRequestSent.mp3"});Re.chatResponseReceived1=Re.register({fileName:"chatResponseReceived1.mp3"});Re.chatResponseReceived2=Re.register({fileName:"chatResponseReceived2.mp3"});Re.chatResponseReceived3=Re.register({fileName:"chatResponseReceived3.mp3"});Re.chatResponseReceived4=Re.register({fileName:"chatResponseReceived4.mp3"});Re.clear=Re.register({fileName:"clear.mp3"});Re.save=Re.register({fileName:"save.mp3"});Re.format=Re.register({fileName:"format.mp3"});Re.voiceRecordingStarted=Re.register({fileName:"voiceRecordingStarted.mp3"});Re.voiceRecordingStopped=Re.register({fileName:"voiceRecordingStopped.mp3"});Re.progress=Re.register({fileName:"progress.mp3"});class ohe{constructor(e){this.randomOneOf=e}}class Be{constructor(e,t,i,n,s,r,a){this.sound=e,this.name=t,this.legacySoundSettingsKey=i,this.settingsKey=n,this.legacyAnnouncementSettingsKey=s,this.announcementMessage=r,this.delaySettingsKey=a}static register(e){const t=new ohe("randomOneOf"in e.sound?e.sound.randomOneOf:[e.sound]),i=new Be(t,e.name,e.legacySoundSettingsKey,e.settingsKey,e.legacyAnnouncementSettingsKey,e.announcementMessage,e.delaySettingsKey);return Be._signals.add(i),i}}Be._signals=new Set;Be.errorAtPosition=Be.register({name:m("accessibilitySignals.positionHasError.name","Error at Position"),sound:Re.error,announcementMessage:m("accessibility.signals.positionHasError","Error"),settingsKey:"accessibility.signals.positionHasError",delaySettingsKey:"accessibility.signalOptions.delays.errorAtPosition"});Be.warningAtPosition=Be.register({name:m("accessibilitySignals.positionHasWarning.name","Warning at Position"),sound:Re.warning,announcementMessage:m("accessibility.signals.positionHasWarning","Warning"),settingsKey:"accessibility.signals.positionHasWarning",delaySettingsKey:"accessibility.signalOptions.delays.warningAtPosition"});Be.errorOnLine=Be.register({name:m("accessibilitySignals.lineHasError.name","Error on Line"),sound:Re.error,legacySoundSettingsKey:"audioCues.lineHasError",legacyAnnouncementSettingsKey:"accessibility.alert.error",announcementMessage:m("accessibility.signals.lineHasError","Error on Line"),settingsKey:"accessibility.signals.lineHasError"});Be.warningOnLine=Be.register({name:m("accessibilitySignals.lineHasWarning.name","Warning on Line"),sound:Re.warning,legacySoundSettingsKey:"audioCues.lineHasWarning",legacyAnnouncementSettingsKey:"accessibility.alert.warning",announcementMessage:m("accessibility.signals.lineHasWarning","Warning on Line"),settingsKey:"accessibility.signals.lineHasWarning"});Be.foldedArea=Be.register({name:m("accessibilitySignals.lineHasFoldedArea.name","Folded Area on Line"),sound:Re.foldedArea,legacySoundSettingsKey:"audioCues.lineHasFoldedArea",legacyAnnouncementSettingsKey:"accessibility.alert.foldedArea",announcementMessage:m("accessibility.signals.lineHasFoldedArea","Folded"),settingsKey:"accessibility.signals.lineHasFoldedArea"});Be.break=Be.register({name:m("accessibilitySignals.lineHasBreakpoint.name","Breakpoint on Line"),sound:Re.break,legacySoundSettingsKey:"audioCues.lineHasBreakpoint",legacyAnnouncementSettingsKey:"accessibility.alert.breakpoint",announcementMessage:m("accessibility.signals.lineHasBreakpoint","Breakpoint"),settingsKey:"accessibility.signals.lineHasBreakpoint"});Be.inlineSuggestion=Be.register({name:m("accessibilitySignals.lineHasInlineSuggestion.name","Inline Suggestion on Line"),sound:Re.quickFixes,legacySoundSettingsKey:"audioCues.lineHasInlineSuggestion",settingsKey:"accessibility.signals.lineHasInlineSuggestion"});Be.terminalQuickFix=Be.register({name:m("accessibilitySignals.terminalQuickFix.name","Terminal Quick Fix"),sound:Re.quickFixes,legacySoundSettingsKey:"audioCues.terminalQuickFix",legacyAnnouncementSettingsKey:"accessibility.alert.terminalQuickFix",announcementMessage:m("accessibility.signals.terminalQuickFix","Quick Fix"),settingsKey:"accessibility.signals.terminalQuickFix"});Be.onDebugBreak=Be.register({name:m("accessibilitySignals.onDebugBreak.name","Debugger Stopped on Breakpoint"),sound:Re.break,legacySoundSettingsKey:"audioCues.onDebugBreak",legacyAnnouncementSettingsKey:"accessibility.alert.onDebugBreak",announcementMessage:m("accessibility.signals.onDebugBreak","Breakpoint"),settingsKey:"accessibility.signals.onDebugBreak"});Be.noInlayHints=Be.register({name:m("accessibilitySignals.noInlayHints","No Inlay Hints on Line"),sound:Re.error,legacySoundSettingsKey:"audioCues.noInlayHints",legacyAnnouncementSettingsKey:"accessibility.alert.noInlayHints",announcementMessage:m("accessibility.signals.noInlayHints","No Inlay Hints"),settingsKey:"accessibility.signals.noInlayHints"});Be.taskCompleted=Be.register({name:m("accessibilitySignals.taskCompleted","Task Completed"),sound:Re.taskCompleted,legacySoundSettingsKey:"audioCues.taskCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.taskCompleted",announcementMessage:m("accessibility.signals.taskCompleted","Task Completed"),settingsKey:"accessibility.signals.taskCompleted"});Be.taskFailed=Be.register({name:m("accessibilitySignals.taskFailed","Task Failed"),sound:Re.taskFailed,legacySoundSettingsKey:"audioCues.taskFailed",legacyAnnouncementSettingsKey:"accessibility.alert.taskFailed",announcementMessage:m("accessibility.signals.taskFailed","Task Failed"),settingsKey:"accessibility.signals.taskFailed"});Be.terminalCommandFailed=Be.register({name:m("accessibilitySignals.terminalCommandFailed","Terminal Command Failed"),sound:Re.error,legacySoundSettingsKey:"audioCues.terminalCommandFailed",legacyAnnouncementSettingsKey:"accessibility.alert.terminalCommandFailed",announcementMessage:m("accessibility.signals.terminalCommandFailed","Command Failed"),settingsKey:"accessibility.signals.terminalCommandFailed"});Be.terminalCommandSucceeded=Be.register({name:m("accessibilitySignals.terminalCommandSucceeded","Terminal Command Succeeded"),sound:Re.success,announcementMessage:m("accessibility.signals.terminalCommandSucceeded","Command Succeeded"),settingsKey:"accessibility.signals.terminalCommandSucceeded"});Be.terminalBell=Be.register({name:m("accessibilitySignals.terminalBell","Terminal Bell"),sound:Re.terminalBell,legacySoundSettingsKey:"audioCues.terminalBell",legacyAnnouncementSettingsKey:"accessibility.alert.terminalBell",announcementMessage:m("accessibility.signals.terminalBell","Terminal Bell"),settingsKey:"accessibility.signals.terminalBell"});Be.notebookCellCompleted=Be.register({name:m("accessibilitySignals.notebookCellCompleted","Notebook Cell Completed"),sound:Re.taskCompleted,legacySoundSettingsKey:"audioCues.notebookCellCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellCompleted",announcementMessage:m("accessibility.signals.notebookCellCompleted","Notebook Cell Completed"),settingsKey:"accessibility.signals.notebookCellCompleted"});Be.notebookCellFailed=Be.register({name:m("accessibilitySignals.notebookCellFailed","Notebook Cell Failed"),sound:Re.taskFailed,legacySoundSettingsKey:"audioCues.notebookCellFailed",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellFailed",announcementMessage:m("accessibility.signals.notebookCellFailed","Notebook Cell Failed"),settingsKey:"accessibility.signals.notebookCellFailed"});Be.diffLineInserted=Be.register({name:m("accessibilitySignals.diffLineInserted","Diff Line Inserted"),sound:Re.diffLineInserted,legacySoundSettingsKey:"audioCues.diffLineInserted",settingsKey:"accessibility.signals.diffLineInserted"});Be.diffLineDeleted=Be.register({name:m("accessibilitySignals.diffLineDeleted","Diff Line Deleted"),sound:Re.diffLineDeleted,legacySoundSettingsKey:"audioCues.diffLineDeleted",settingsKey:"accessibility.signals.diffLineDeleted"});Be.diffLineModified=Be.register({name:m("accessibilitySignals.diffLineModified","Diff Line Modified"),sound:Re.diffLineModified,legacySoundSettingsKey:"audioCues.diffLineModified",settingsKey:"accessibility.signals.diffLineModified"});Be.chatRequestSent=Be.register({name:m("accessibilitySignals.chatRequestSent","Chat Request Sent"),sound:Re.chatRequestSent,legacySoundSettingsKey:"audioCues.chatRequestSent",legacyAnnouncementSettingsKey:"accessibility.alert.chatRequestSent",announcementMessage:m("accessibility.signals.chatRequestSent","Chat Request Sent"),settingsKey:"accessibility.signals.chatRequestSent"});Be.chatResponseReceived=Be.register({name:m("accessibilitySignals.chatResponseReceived","Chat Response Received"),legacySoundSettingsKey:"audioCues.chatResponseReceived",sound:{randomOneOf:[Re.chatResponseReceived1,Re.chatResponseReceived2,Re.chatResponseReceived3,Re.chatResponseReceived4]},settingsKey:"accessibility.signals.chatResponseReceived"});Be.progress=Be.register({name:m("accessibilitySignals.progress","Progress"),sound:Re.progress,legacySoundSettingsKey:"audioCues.chatResponsePending",legacyAnnouncementSettingsKey:"accessibility.alert.progress",announcementMessage:m("accessibility.signals.progress","Progress"),settingsKey:"accessibility.signals.progress"});Be.clear=Be.register({name:m("accessibilitySignals.clear","Clear"),sound:Re.clear,legacySoundSettingsKey:"audioCues.clear",legacyAnnouncementSettingsKey:"accessibility.alert.clear",announcementMessage:m("accessibility.signals.clear","Clear"),settingsKey:"accessibility.signals.clear"});Be.save=Be.register({name:m("accessibilitySignals.save","Save"),sound:Re.save,legacySoundSettingsKey:"audioCues.save",legacyAnnouncementSettingsKey:"accessibility.alert.save",announcementMessage:m("accessibility.signals.save","Save"),settingsKey:"accessibility.signals.save"});Be.format=Be.register({name:m("accessibilitySignals.format","Format"),sound:Re.format,legacySoundSettingsKey:"audioCues.format",legacyAnnouncementSettingsKey:"accessibility.alert.format",announcementMessage:m("accessibility.signals.format","Format"),settingsKey:"accessibility.signals.format"});Be.voiceRecordingStarted=Be.register({name:m("accessibilitySignals.voiceRecordingStarted","Voice Recording Started"),sound:Re.voiceRecordingStarted,legacySoundSettingsKey:"audioCues.voiceRecordingStarted",settingsKey:"accessibility.signals.voiceRecordingStarted"});Be.voiceRecordingStopped=Be.register({name:m("accessibilitySignals.voiceRecordingStopped","Voice Recording Stopped"),sound:Re.voiceRecordingStopped,legacySoundSettingsKey:"audioCues.voiceRecordingStopped",settingsKey:"accessibility.signals.voiceRecordingStopped"});class rhe extends W{constructor(e,t=[]){super(),this.logger=new BG([e,...t]),this._register(e.onDidChangeLogLevel(i=>this.setLevel(i)))}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel}setLevel(e){this.logger.setLevel(e)}getLevel(){return this.logger.getLevel()}trace(e,...t){this.logger.trace(e,...t)}debug(e,...t){this.logger.debug(e,...t)}info(e,...t){this.logger.info(e,...t)}warn(e,...t){this.logger.warn(e,...t)}error(e,...t){this.logger.error(e,...t)}}const VH=[];function eC(o){VH.push(o)}function ahe(){return VH.slice(0)}var gc=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},fn=function(o,e){return function(t,i){e(t,i,o)}};class lhe{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new O}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let TT=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new jj(new lhe(t))):Promise.reject(new Error("Model not found"))}};TT=gc([fn(0,ai)],TT);class ix{show(){return ix.NULL_PROGRESS_RUNNER}async showWhile(e,t){await e}}ix.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class dhe{withProgress(e,t,i){return t({report:()=>{}})}}class che{constructor(){this.isExtensionDevelopment=!1,this.isBuilt=!1}}class hhe{async confirm(e){return{confirmed:this.doConfirm(e.message,e.detail),checkboxChecked:!1}}doConfirm(e,t){let i=e;return t&&(i=i+` + +`+t),Mt.confirm(i)}async prompt(e){var t,i;let n;if(this.doConfirm(e.message,e.detail)){const r=[...(t=e.buttons)!==null&&t!==void 0?t:[]];e.cancelButton&&typeof e.cancelButton!="string"&&typeof e.cancelButton!="boolean"&&r.push(e.cancelButton),n=await((i=r[0])===null||i===void 0?void 0:i.run({checkboxChecked:!1}))}return{result:n}}async error(e,t){await this.prompt({type:Ei.Error,message:e,detail:t})}}class Bb{info(e){return this.notify({severity:Ei.Info,message:e})}warn(e){return this.notify({severity:Ei.Warning,message:e})}error(e){return this.notify({severity:Ei.Error,message:e})}notify(e){switch(e.severity){case Ei.Error:console.error(e.message);break;case Ei.Warning:console.warn(e.message);break;default:console.log(e.message);break}return Bb.NO_OP}prompt(e,t,i,n){return Bb.NO_OP}status(e,t){return W.None}}Bb.NO_OP=new Sse;let MT=class{constructor(e){this._onWillExecuteCommand=new O,this._onDidExecuteCommand=new O,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const i=ct.getCommand(e);if(!i)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const n=this._instantiationService.invokeFunction.apply(this._instantiationService,[i.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}};MT=gc([fn(0,Le)],MT);let hp=class extends Hre{constructor(e,t,i,n,s,r){super(e,t,i,n,s),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const a=g=>{const f=new G;f.add(U(g,ee.KEY_DOWN,p=>{const _=new Ht(p);this._dispatch(_,_.target)&&(_.preventDefault(),_.stopPropagation())})),f.add(U(g,ee.KEY_UP,p=>{const _=new Ht(p);this._singleModifierDispatch(_,_.target)&&_.preventDefault()})),this._domNodeListeners.push(new uhe(g,f))},l=g=>{for(let f=0;f{g.getOption(61)||a(g.getContainerDomNode())},c=g=>{g.getOption(61)||l(g.getContainerDomNode())};this._register(r.onCodeEditorAdd(d)),this._register(r.onCodeEditorRemove(c)),r.listCodeEditors().forEach(d);const h=g=>{a(g.getContainerDomNode())},u=g=>{l(g.getContainerDomNode())};this._register(r.onDiffEditorAdd(h)),this._register(r.onDiffEditorRemove(u)),r.listDiffEditors().forEach(h)}addDynamicKeybinding(e,t,i,n){return Wr(ct.registerCommand(e,i),this.addDynamicKeybindings([{keybinding:t,command:e,when:n}]))}addDynamicKeybindings(e){const t=e.map(i=>{var n;return{keybinding:wE(i.keybinding,to),command:(n=i.command)!==null&&n!==void 0?n:null,commandArgs:i.commandArgs,when:i.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}});return this._dynamicKeybindings=this._dynamicKeybindings.concat(t),this.updateResolver(),Ce(()=>{for(let i=0;ithis._log(i))}return this._cachedResolver}_documentHasFocus(){return Mt.document.hasFocus()}_toNormalizedKeybindingItems(e,t){const i=[];let n=0;for(const s of e){const r=s.when||void 0,a=s.keybinding;if(!a)i[n++]=new F5(void 0,s.command,s.commandArgs,r,t,null,!1);else{const l=wb.resolveKeybinding(a,to);for(const d of l)i[n++]=new F5(d,s.command,s.commandArgs,r,t,null,!1)}}return i}resolveKeyboardEvent(e){const t=new Qd(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode);return new wb([t],to)}};hp=gc([fn(0,Me),fn(1,Qt),fn(2,Bn),fn(3,Ri),fn(4,qn),fn(5,_t)],hp);class uhe extends W{constructor(e,t){super(),this.domNode=e,this._register(t)}}function k3(o){return o&&typeof o=="object"&&(!o.overrideIdentifier||typeof o.overrideIdentifier=="string")&&(!o.resource||o.resource instanceof ke)}let ny=class{constructor(e){this.logService=e,this._onDidChangeConfiguration=new O,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event;const t=new she(e);this._configuration=new RL(t.reload(),Ln.createEmptyModel(e),Ln.createEmptyModel(e),Ln.createEmptyModel(e),Ln.createEmptyModel(e),Ln.createEmptyModel(e),new Ni,Ln.createEmptyModel(e),new Ni,e),t.dispose()}getValue(e,t){const i=typeof e=="string"?e:void 0,n=k3(e)?e:k3(t)?t:{};return this._configuration.getValue(i,n,void 0)}updateValues(e){const t={data:this._configuration.toData()},i=[];for(const n of e){const[s,r]=n;this.getValue(s)!==r&&(this._configuration.updateValue(s,r),i.push(s))}if(i.length>0){const n=new Ore({keys:i,overrides:[]},t,this._configuration,void 0,this.logService);n.source=8,this._onDidChangeConfiguration.fire(n)}return Promise.resolve()}updateValue(e,t,i,n){return this.updateValues([[e,t]])}inspect(e,t={}){return this._configuration.inspect(e,t,void 0)}};ny=gc([fn(0,qn)],ny);let RT=class{constructor(e,t,i){this.configurationService=e,this.modelService=t,this.languageService=i,this._onDidChangeConfiguration=new O,this.configurationService.onDidChangeConfiguration(n=>{this._onDidChangeConfiguration.fire({affectedKeys:n.affectedKeys,affectsConfiguration:(s,r)=>n.affectsConfiguration(r)})})}getValue(e,t,i){const n=F.isIPosition(t)?t:null,s=n?typeof i=="string"?i:void 0:typeof t=="string"?t:void 0,r=e?this.getLanguage(e,n):void 0;return typeof s>"u"?this.configurationService.getValue({resource:e,overrideIdentifier:r}):this.configurationService.getValue(s,{resource:e,overrideIdentifier:r})}getLanguage(e,t){const i=this.modelService.getModel(e);return i?t?i.getLanguageIdAtPosition(t.lineNumber,t.column):i.getLanguageId():this.languageService.guessLanguageIdByFilepathOrFirstLine(e)}};RT=gc([fn(0,Je),fn(1,ai),fn(2,si)],RT);let AT=class{constructor(e){this.configurationService=e}getEOL(e,t){const i=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return i&&typeof i=="string"&&i!=="auto"?i:xs||it?` +`:`\r +`}};AT=gc([fn(0,Je)],AT);class ghe{publicLog2(){}}class Wb{constructor(){const e=ke.from({scheme:Wb.SCHEME,authority:"model",path:"/"});this.workspace={id:N6,folders:[new tae({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===Wb.SCHEME?this.workspace.folders[0]:null}}Wb.SCHEME="inmemory";function sy(o,e,t){if(!e||!(o instanceof ny))return;const i=[];Object.keys(e).forEach(n=>{Tre(n)&&i.push([`editor.${n}`,e[n]]),t&&Mre(n)&&i.push([`diffEditor.${n}`,e[n]])}),i.length>0&&o.updateValues(i)}let PT=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}async apply(e,t){const i=Array.isArray(e)?e:R2.convert(e),n=new Map;for(const a of i){if(!(a instanceof ch))throw new Error("bad edit - only text edits are supported");const l=this._modelService.getModel(a.resource);if(!l)throw new Error("bad edit - model not found");if(typeof a.versionId=="number"&&l.getVersionId()!==a.versionId)throw new Error("bad state - model changed in the meantime");let d=n.get(l);d||(d=[],n.set(l,d)),d.push(ri.replaceMove(x.lift(a.textEdit.range),a.textEdit.text))}let s=0,r=0;for(const[a,l]of n)a.pushStackElement(),a.pushEditOperations([],l,()=>[]),a.pushStackElement(),r+=1,s+=l.length;return{ariaSummary:cg(KN.bulkEditServiceSummary,s,r),isApplied:s>0}}};PT=gc([fn(0,ai)],PT);class fhe{getUriLabel(e,t){return e.scheme==="file"?e.fsPath:e.path}getUriBasenameLabel(e){return cr(e)}}let OT=class extends Dre{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const n=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();n&&(t=n.getContainerDomNode())}return super.showContextView(e,t,i)}};OT=gc([fn(0,qh),fn(1,_t)],OT);class mhe{constructor(){this._neverEmitter=new O,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}class phe extends Lb{constructor(){super()}}class _he extends rhe{constructor(){super(new FG)}}let FT=class extends iT{constructor(e,t,i,n,s,r){super(e,t,i,n,s,r),this.configure({blockMouse:!1})}};FT=gc([fn(0,Bn),fn(1,Ri),fn(2,dc),fn(3,St),fn(4,zo),fn(5,Me)],FT);class vhe{async playSignal(e,t){}}ht(qn,_he,0);ht(Je,ny,0);ht(TA,RT,0);ht(MW,AT,0);ht(wg,Wb,0);ht(np,fhe,0);ht(Bn,ghe,0);ht(z0,hhe,0);ht(b2,che,0);ht(Ri,Bb,0);ht(Zl,Nc,0);ht(si,phe,0);ht(jo,Hce,0);ht(ai,HS,0);ht(FA,aT,0);ht(Me,NT,0);ht(E6,dhe,0);ht(Zh,ix,0);ht(Kr,fle,0);ht(pr,zE,0);ht($0,PT,0);ht(T6,mhe,0);ht(Gs,TT,0);ht(ho,xT,0);ht(vr,Jde,0);ht(Qt,MT,0);ht(St,hp,0);ht(_r,yT,0);ht(dc,OT,0);ht(fo,rT,0);ht(uc,ty,0);ht(go,FT,0);ht(zo,DT,0);ht(Qh,vhe,0);var Ae;(function(o){const e=new V0;for(const[l,d]of aF())e.set(l,d);const t=new iy(e,!0);e.set(Le,t);function i(l){n||r({});const d=e.get(l);if(!d)throw new Error("Missing service "+l);return d instanceof rl?t.invokeFunction(c=>c.get(l)):d}o.get=i;let n=!1;const s=new O;function r(l){if(n)return t;n=!0;for(const[c,h]of aF())e.get(c)||e.set(c,h);for(const c in l)if(l.hasOwnProperty(c)){const h=ot(c);e.get(h)instanceof rl&&e.set(h,l[c])}const d=ahe();for(const c of d)try{t.createInstance(c)}catch(h){ze(h)}return s.fire(),t}o.initialize=r;function a(l){if(n)return l();const d=new G,c=d.add(s.event(()=>{c.dispose(),d.add(l())}));return d}o.withServices=a})(Ae||(Ae={}));class Pa{static capture(e){if(e.getScrollTop()===0||e.hasPendingScrollAnimation())return new Pa(e.getScrollTop(),e.getContentHeight(),null,0,null);let t=null,i=0;const n=e.getVisibleRanges();if(n.length>0){t=n[0].getStartPosition();const s=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-s}return new Pa(e.getScrollTop(),e.getContentHeight(),t,i,e.getPosition())}constructor(e,t,i,n,s){this._initialScrollTop=e,this._initialContentHeight=t,this._visiblePosition=i,this._visiblePositionScrollDelta=n,this._cursorPosition=s}restore(e){if(!(this._initialContentHeight===e.getContentHeight()&&this._initialScrollTop===e.getScrollTop())&&this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){if(this._initialContentHeight===e.getContentHeight()&&this._initialScrollTop===e.getScrollTop())return;const t=e.getPosition();if(!this._cursorPosition||!t)return;const i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i,1)}}function rP(){return wI&&!!wI.VSCODE_DEV}function zH(o){if(rP()){const e=bhe();return e.add(o),{dispose(){e.delete(o)}}}else return{dispose(){}}}function bhe(){g1||(g1=new Set);const o=globalThis;return o.$hotReload_applyNewExports||(o.$hotReload_applyNewExports=e=>{const t={config:{mode:void 0},...e};for(const i of g1){const n=i(t);if(n)return n}}),g1}let g1;rP()&&zH(({oldExports:o,newSrc:e,config:t})=>{if(t.mode==="patch-prototype")return i=>{var n,s;for(const r in i){const a=i[r];if(console.log(`[hot-reload] Patching prototype methods of '${r}'`,{exportedItem:a}),typeof a=="function"&&a.prototype){const l=o[r];if(l){for(const d of Object.getOwnPropertyNames(a.prototype)){const c=Object.getOwnPropertyDescriptor(a.prototype,d),h=Object.getOwnPropertyDescriptor(l.prototype,d);((n=c==null?void 0:c.value)===null||n===void 0?void 0:n.toString())!==((s=h==null?void 0:h.value)===null||s===void 0?void 0:s.toString())&&console.log(`[hot-reload] Patching prototype method '${r}.${d}'`),Object.defineProperty(l.prototype,d,c)}i[r]=l}}}return!0}});function Che(o,e,t,i){if(o.length===0)return e;if(e.length===0)return o;const n=[];let s=0,r=0;for(;sc?(n.push(l),r++):(n.push(i(a,l)),s++,r++)}for(;s`Apply decorations from ${e.debugName}`},n=>{const s=e.read(n);i.set(s)})),t.add({dispose:()=>{i.clear()}}),t}function K_(o,e){return o.appendChild(e),Ce(()=>{o.removeChild(e)})}function whe(o,e){return o.prepend(e),Ce(()=>{o.removeChild(e)})}class UH extends W{get width(){return this._width}get height(){return this._height}get automaticLayout(){return this._automaticLayout}constructor(e,t){super(),this._automaticLayout=!1,this.elementSizeObserver=this._register(new WW(e,t)),this._width=ut(this,this.elementSizeObserver.getWidth()),this._height=ut(this,this.elementSizeObserver.getHeight()),this._register(this.elementSizeObserver.onDidChange(i=>Wt(n=>{this._width.set(this.elementSizeObserver.getWidth(),n),this._height.set(this.elementSizeObserver.getHeight(),n)})))}observe(e){this.elementSizeObserver.observe(e)}setAutomaticLayout(e){this._automaticLayout=e,e?this.elementSizeObserver.startObserving():this.elementSizeObserver.stopObserving()}}function I3(o,e,t){let i=e.get(),n=i,s=i;const r=ut("animatedValue",i);let a=-1;const l=300;let d;t.add(q0({createEmptyChangeSummary:()=>({animate:!1}),handleChange:(h,u)=>(h.didChange(e)&&(u.animate=u.animate||h.change),!0)},(h,u)=>{d!==void 0&&(o.cancelAnimationFrame(d),d=void 0),n=s,i=e.read(h),a=Date.now()-(u.animate?0:l),c()}));function c(){const h=Date.now()-a;s=Math.floor(She(h,n,i-n,l)),h{this._actualTop.set(i,void 0)},this.onComputedHeight=i=>{this._actualHeight.set(i,void 0)}}}class nx{constructor(e,t){this._editor=e,this._domElement=t,this._overlayWidgetId=`managedOverlayWidget-${nx._counter++}`,this._overlayWidget={getId:()=>this._overlayWidgetId,getDomNode:()=>this._domElement,getPosition:()=>null},this._editor.addOverlayWidget(this._overlayWidget)}dispose(){this._editor.removeOverlayWidget(this._overlayWidget)}}nx._counter=0;function Nh(o,e){return Xe(t=>{for(let[i,n]of Object.entries(e))n&&typeof n=="object"&&"read"in n&&(n=n.read(t)),typeof n=="number"&&(n=`${n}px`),i=i.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),o.style[i]=n})}function Ir(o,e){return yhe([o],e),o}function yhe(o,e){rP()&&$n("reload",i=>zH(({oldExports:n})=>{if([...Object.values(n)].some(s=>o.includes(s)))return s=>(i(void 0),!0)})).read(e)}function ay(o,e,t,i){const n=new G,s=[];return n.add(hr((r,a)=>{const l=e.read(r),d=new Map,c=new Map;t&&t(!0),o.changeViewZones(h=>{for(const u of s)h.removeZone(u),i==null||i.delete(u);s.length=0;for(const u of l){const g=h.addZone(u);u.setZoneId&&u.setZoneId(g),s.push(g),i==null||i.add(g),d.set(u,g)}}),t&&t(!1),a.add(q0({createEmptyChangeSummary(){return{zoneIds:[]}},handleChange(h,u){const g=c.get(h.changedObservable);return g!==void 0&&u.zoneIds.push(g),!0}},(h,u)=>{for(const g of l)g.onChange&&(c.set(g.onChange,d.get(g)),g.onChange.read(h));t&&t(!0),o.changeViewZones(g=>{for(const f of u.zoneIds)g.layoutZone(f)}),t&&t(!1)}))})),n.add({dispose(){t&&t(!0),o.changeViewZones(r=>{for(const a of s)r.removeZone(a)}),i==null||i.clear(),t&&t(!1)}}),n}class Lhe extends ci{dispose(){super.dispose(!0)}}function E3(o,e){const t=Qv(e,n=>n.original.startLineNumber<=o.lineNumber);if(!t)return x.fromPositions(o);if(t.original.endLineNumberExclusive<=o.lineNumber){const n=o.lineNumber-t.original.endLineNumberExclusive+t.modified.endLineNumberExclusive;return x.fromPositions(new F(n,o.column))}if(!t.innerChanges)return x.fromPositions(new F(t.modified.startLineNumber,1));const i=Qv(t.innerChanges,n=>n.originalRange.getStartPosition().isBeforeOrEqual(o));if(!i){const n=o.lineNumber-t.original.startLineNumber+t.modified.startLineNumber;return x.fromPositions(new F(n,o.column))}if(i.originalRange.containsPosition(o))return i.modifiedRange;{const n=xhe(i.originalRange.getEndPosition(),o);return x.fromPositions(n.addToPosition(i.modifiedRange.getEndPosition()))}}function xhe(o,e){return o.lineNumber===e.lineNumber?new Cs(0,e.column-o.column):new Cs(e.lineNumber-o.lineNumber,e.column-1)}function Dhe(o,e){let t;return o.filter(i=>{const n=e(i,t);return t=i,n})}var aP=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},lP=function(o,e){return function(t,i){e(t,i,o)}};const khe=_i("diff-review-insert",oe.add,m("accessibleDiffViewerInsertIcon","Icon for 'Insert' in accessible diff viewer.")),Ihe=_i("diff-review-remove",oe.remove,m("accessibleDiffViewerRemoveIcon","Icon for 'Remove' in accessible diff viewer.")),Ehe=_i("diff-review-close",oe.close,m("accessibleDiffViewerCloseIcon","Icon for 'Close' in accessible diff viewer."));let Xc=class extends W{constructor(e,t,i,n,s,r,a,l,d){super(),this._parentNode=e,this._visible=t,this._setVisible=i,this._canClose=n,this._width=s,this._height=r,this._diffs=a,this._models=l,this._instantiationService=d,this._state=Zg(this,(c,h)=>{const u=this._visible.read(c);if(this._parentNode.style.visibility=u?"visible":"hidden",!u)return null;const g=h.add(this._instantiationService.createInstance(BT,this._diffs,this._models,this._setVisible,this._canClose)),f=h.add(this._instantiationService.createInstance(WT,this._parentNode,g,this._width,this._height,this._models));return{model:g,view:f}}).recomputeInitiallyAndOnChange(this._store)}next(){Wt(e=>{const t=this._visible.get();this._setVisible(!0,e),t&&this._state.get().model.nextGroup(e)})}prev(){Wt(e=>{this._setVisible(!0,e),this._state.get().model.previousGroup(e)})}close(){Wt(e=>{this._setVisible(!1,e)})}};Xc._ttPolicy=lc("diffReview",{createHTML:o=>o});Xc=aP([lP(8,Le)],Xc);let BT=class extends W{constructor(e,t,i,n,s){super(),this._diffs=e,this._models=t,this._setVisible=i,this.canClose=n,this._accessibilitySignalService=s,this._groups=ut(this,[]),this._currentGroupIdx=ut(this,0),this._currentElementIdx=ut(this,0),this.groups=this._groups,this.currentGroup=this._currentGroupIdx.map((r,a)=>this._groups.read(a)[r]),this.currentGroupIndex=this._currentGroupIdx,this.currentElement=this._currentElementIdx.map((r,a)=>{var l;return(l=this.currentGroup.read(a))===null||l===void 0?void 0:l.lines[r]}),this._register(Xe(r=>{const a=this._diffs.read(r);if(!a){this._groups.set([],void 0);return}const l=Nhe(a,this._models.getOriginalModel().getLineCount(),this._models.getModifiedModel().getLineCount());Wt(d=>{const c=this._models.getModifiedPosition();if(c){const h=l.findIndex(u=>(c==null?void 0:c.lineNumber){const a=this.currentElement.read(r);(a==null?void 0:a.type)===fs.Deleted?this._accessibilitySignalService.playSignal(Be.diffLineDeleted,{source:"accessibleDiffViewer.currentElementChanged"}):(a==null?void 0:a.type)===fs.Added&&this._accessibilitySignalService.playSignal(Be.diffLineInserted,{source:"accessibleDiffViewer.currentElementChanged"})})),this._register(Xe(r=>{var a;const l=this.currentElement.read(r);if(l&&l.type!==fs.Header){const d=(a=l.modifiedLineNumber)!==null&&a!==void 0?a:l.diff.modified.startLineNumber;this._models.modifiedSetSelection(x.fromPositions(new F(d,1)))}}))}_goToGroupDelta(e,t){const i=this.groups.get();!i||i.length<=1||Db(t,n=>{this._currentGroupIdx.set(Ze.ofLength(i.length).clipCyclic(this._currentGroupIdx.get()+e),n),this._currentElementIdx.set(0,n)})}nextGroup(e){this._goToGroupDelta(1,e)}previousGroup(e){this._goToGroupDelta(-1,e)}_goToLineDelta(e){const t=this.currentGroup.get();!t||t.lines.length<=1||Wt(i=>{this._currentElementIdx.set(Ze.ofLength(t.lines.length).clip(this._currentElementIdx.get()+e),i)})}goToNextLine(){this._goToLineDelta(1)}goToPreviousLine(){this._goToLineDelta(-1)}goToLine(e){const t=this.currentGroup.get();if(!t)return;const i=t.lines.indexOf(e);i!==-1&&Wt(n=>{this._currentElementIdx.set(i,n)})}revealCurrentElementInEditor(){if(!this.canClose.get())return;this._setVisible(!1,void 0);const e=this.currentElement.get();e&&(e.type===fs.Deleted?this._models.originalReveal(x.fromPositions(new F(e.originalLineNumber,1))):this._models.modifiedReveal(e.type!==fs.Header?x.fromPositions(new F(e.modifiedLineNumber,1)):void 0))}close(){this.canClose.get()&&(this._setVisible(!1,void 0),this._models.modifiedFocus())}};BT=aP([lP(4,Qh)],BT);const v_=3;function Nhe(o,e,t){const i=[];for(const n of UR(o,(s,r)=>r.modified.startLineNumber-s.modified.endLineNumberExclusive<2*v_)){const s=[];s.push(new Mhe);const r=new Ge(Math.max(1,n[0].original.startLineNumber-v_),Math.min(n[n.length-1].original.endLineNumberExclusive+v_,e+1)),a=new Ge(Math.max(1,n[0].modified.startLineNumber-v_),Math.min(n[n.length-1].modified.endLineNumberExclusive+v_,t+1));W7(n,(c,h)=>{const u=new Ge(c?c.original.endLineNumberExclusive:r.startLineNumber,h?h.original.startLineNumber:r.endLineNumberExclusive),g=new Ge(c?c.modified.endLineNumberExclusive:a.startLineNumber,h?h.modified.startLineNumber:a.endLineNumberExclusive);u.forEach(f=>{s.push(new Phe(f,g.startLineNumber+(f-u.startLineNumber)))}),h&&(h.original.forEach(f=>{s.push(new Rhe(h,f))}),h.modified.forEach(f=>{s.push(new Ahe(h,f))}))});const l=n[0].modified.join(n[n.length-1].modified),d=n[0].original.join(n[n.length-1].original);i.push(new The(new ps(l,d),s))}return i}var fs;(function(o){o[o.Header=0]="Header",o[o.Unchanged=1]="Unchanged",o[o.Deleted=2]="Deleted",o[o.Added=3]="Added"})(fs||(fs={}));class The{constructor(e,t){this.range=e,this.lines=t}}class Mhe{constructor(){this.type=fs.Header}}class Rhe{constructor(e,t){this.diff=e,this.originalLineNumber=t,this.type=fs.Deleted,this.modifiedLineNumber=void 0}}class Ahe{constructor(e,t){this.diff=e,this.modifiedLineNumber=t,this.type=fs.Added,this.originalLineNumber=void 0}}class Phe{constructor(e,t){this.originalLineNumber=e,this.modifiedLineNumber=t,this.type=fs.Unchanged}}let WT=class extends W{constructor(e,t,i,n,s,r){super(),this._element=e,this._model=t,this._width=i,this._height=n,this._models=s,this._languageService=r,this.domNode=this._element,this.domNode.className="monaco-component diff-review monaco-editor-background";const a=document.createElement("div");a.className="diff-review-actions",this._actionBar=this._register(new ur(a)),this._register(Xe(l=>{this._actionBar.clear(),this._model.canClose.read(l)&&this._actionBar.push(new no("diffreview.close",m("label.close","Close"),"close-diff-review "+Te.asClassName(Ehe),!0,async()=>t.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 O0(this._content,{})),Dn(this.domNode,this._scrollbar.getDomNode(),a),this._register(Xe(l=>{this._height.read(l),this._width.read(l),this._scrollbar.scanDomNode()})),this._register(Ce(()=>{Dn(this.domNode)})),this._register(Nh(this.domNode,{width:this._width,height:this._height})),this._register(Nh(this._content,{width:this._width,height:this._height})),this._register(hr((l,d)=>{this._model.currentGroup.read(l),this._render(d)})),this._register(Si(this.domNode,"keydown",l=>{(l.equals(18)||l.equals(2066)||l.equals(530))&&(l.preventDefault(),this._model.goToNextLine()),(l.equals(16)||l.equals(2064)||l.equals(528))&&(l.preventDefault(),this._model.goToPreviousLine()),(l.equals(9)||l.equals(2057)||l.equals(521)||l.equals(1033))&&(l.preventDefault(),this._model.close()),(l.equals(10)||l.equals(3))&&(l.preventDefault(),this._model.revealCurrentElementInEditor())}))}_render(e){const t=this._models.getOriginalOptions(),i=this._models.getModifiedOptions(),n=document.createElement("div");n.className="diff-review-table",n.setAttribute("role","list"),n.setAttribute("aria-label",m("ariaLabel","Accessible Diff Viewer. Use arrow up and down to navigate.")),kn(n,i.get(50)),Dn(this._content,n);const s=this._models.getOriginalModel(),r=this._models.getModifiedModel();if(!s||!r)return;const a=s.getOptions(),l=r.getOptions(),d=i.get(67),c=this._model.currentGroup.get();for(const h of(c==null?void 0:c.lines)||[]){if(!c)break;let u;if(h.type===fs.Header){const f=document.createElement("div");f.className="diff-review-row",f.setAttribute("role","listitem");const p=c.range,_=this._model.currentGroupIndex.get(),v=this._model.groups.get().length,b=L=>L===0?m("no_lines_changed","no lines changed"):L===1?m("one_line_changed","1 line changed"):m("more_lines_changed","{0} lines changed",L),C=b(p.original.length),w=b(p.modified.length);f.setAttribute("aria-label",m({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}",_+1,v,p.original.startLineNumber,C,p.modified.startLineNumber,w));const S=document.createElement("div");S.className="diff-review-cell diff-review-summary",S.appendChild(document.createTextNode(`${_+1}/${v}: @@ -${p.original.startLineNumber},${p.original.length} +${p.modified.startLineNumber},${p.modified.length} @@`)),f.appendChild(S),u=f}else u=this._createRow(h,d,this._width.get(),t,s,a,i,r,l);n.appendChild(u);const g=He(f=>this._model.currentElement.read(f)===h);e.add(Xe(f=>{const p=g.read(f);u.tabIndex=p?0:-1,p&&u.focus()})),e.add(U(u,"focus",()=>{this._model.goToLine(h)}))}this._scrollbar.scanDomNode()}_createRow(e,t,i,n,s,r,a,l,d){const c=n.get(145),h=c.glyphMarginWidth+c.lineNumbersWidth,u=a.get(145),g=10+u.glyphMarginWidth+u.lineNumbersWidth;let f="diff-review-row",p="";const _="diff-review-spacer";let v=null;switch(e.type){case fs.Added:f="diff-review-row line-insert",p=" char-insert",v=khe;break;case fs.Deleted:f="diff-review-row line-delete",p=" char-delete",v=Ihe;break}const b=document.createElement("div");b.style.minWidth=i+"px",b.className=f,b.setAttribute("role","listitem"),b.ariaLevel="";const C=document.createElement("div");C.className="diff-review-cell",C.style.height=`${t}px`,b.appendChild(C);const w=document.createElement("span");w.style.width=h+"px",w.style.minWidth=h+"px",w.className="diff-review-line-number"+p,e.originalLineNumber!==void 0?w.appendChild(document.createTextNode(String(e.originalLineNumber))):w.innerText=" ",C.appendChild(w);const S=document.createElement("span");S.style.width=g+"px",S.style.minWidth=g+"px",S.style.paddingRight="10px",S.className="diff-review-line-number"+p,e.modifiedLineNumber!==void 0?S.appendChild(document.createTextNode(String(e.modifiedLineNumber))):S.innerText=" ",C.appendChild(S);const L=document.createElement("span");if(L.className=_,v){const T=document.createElement("span");T.className=Te.asClassName(v),T.innerText="  ",L.appendChild(T)}else L.innerText="  ";C.appendChild(L);let D;if(e.modifiedLineNumber!==void 0){let T=this._getLineHtml(l,a,d.tabSize,e.modifiedLineNumber,this._languageService.languageIdCodec);Xc._ttPolicy&&(T=Xc._ttPolicy.createHTML(T)),C.insertAdjacentHTML("beforeend",T),D=l.getLineContent(e.modifiedLineNumber)}else{let T=this._getLineHtml(s,n,r.tabSize,e.originalLineNumber,this._languageService.languageIdCodec);Xc._ttPolicy&&(T=Xc._ttPolicy.createHTML(T)),C.insertAdjacentHTML("beforeend",T),D=s.getLineContent(e.originalLineNumber)}D.length===0&&(D=m("blankLine","blank"));let I="";switch(e.type){case fs.Unchanged:e.originalLineNumber===e.modifiedLineNumber?I=m({key:"unchangedLine",comment:["The placeholders are contents of the line and should not be translated."]},"{0} unchanged line {1}",D,e.originalLineNumber):I=m("equalLine","{0} original line {1} modified line {2}",D,e.originalLineNumber,e.modifiedLineNumber);break;case fs.Added:I=m("insertLine","+ {0} modified line {1}",D,e.modifiedLineNumber);break;case fs.Deleted:I=m("deleteLine","- {0} original line {1}",D,e.originalLineNumber);break}return b.setAttribute("aria-label",I),b}_getLineHtml(e,t,i,n,s){const r=e.getLineContent(n),a=t.get(50),l=Vi.createEmpty(r,s),d=Wo.isBasicASCII(r,e.mightContainNonBasicASCII()),c=Wo.containsRTL(r,d,e.mightContainRTL());return uL(new Kh(a.isMonospace&&!t.get(33),a.canUseHalfwidthRightwardsArrow,r,!1,d,c,0,l,[],i,0,a.spaceWidth,a.middotWidth,a.wsmiddotWidth,t.get(117),t.get(99),t.get(94),t.get(51)!==ko.OFF,null)).html}};WT=aP([lP(5,si)],WT);class Ohe{constructor(e){this.editors=e}getOriginalModel(){return this.editors.original.getModel()}getOriginalOptions(){return this.editors.original.getOptions()}originalReveal(e){this.editors.original.revealRange(e),this.editors.original.setSelection(e),this.editors.original.focus()}getModifiedModel(){return this.editors.modified.getModel()}getModifiedOptions(){return this.editors.modified.getOptions()}modifiedReveal(e){e&&(this.editors.modified.revealRange(e),this.editors.modified.setSelection(e)),this.editors.modified.focus()}modifiedSetSelection(e){this.editors.modified.setSelection(e)}modifiedFocus(){this.editors.modified.focus()}getModifiedPosition(){var e;return(e=this.editors.modified.getPosition())!==null&&e!==void 0?e:void 0}}class gh extends W{constructor(e,t,i,n,s){super(),this._rootElement=e,this._diffModel=t,this._originalEditorLayoutInfo=i,this._modifiedEditorLayoutInfo=n,this._editors=s,this._originalScrollTop=Nt(this._editors.original.onDidScrollChange,()=>this._editors.original.getScrollTop()),this._modifiedScrollTop=Nt(this._editors.modified.onDidScrollChange,()=>this._editors.modified.getScrollTop()),this._viewZonesChanged=$n("onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this.width=ut(this,0),this._modifiedViewZonesChangedSignal=$n("modified.onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this._originalViewZonesChangedSignal=$n("original.onDidChangeViewZones",this._editors.original.onDidChangeViewZones),this._state=Zg(this,(c,h)=>{var u;this._element.replaceChildren();const g=this._diffModel.read(c),f=(u=g==null?void 0:g.diff.read(c))===null||u===void 0?void 0:u.movedTexts;if(!f||f.length===0){this.width.set(0,void 0);return}this._viewZonesChanged.read(c);const p=this._originalEditorLayoutInfo.read(c),_=this._modifiedEditorLayoutInfo.read(c);if(!p||!_){this.width.set(0,void 0);return}this._modifiedViewZonesChangedSignal.read(c),this._originalViewZonesChangedSignal.read(c);const v=f.map(I=>{function T(Ee,fe){const Ue=fe.getTopForLineNumber(Ee.startLineNumber,!0),Ve=fe.getTopForLineNumber(Ee.endLineNumberExclusive,!0);return(Ue+Ve)/2}const V=T(I.lineRangeMapping.original,this._editors.original),P=this._originalScrollTop.read(c),A=T(I.lineRangeMapping.modified,this._editors.modified),B=this._modifiedScrollTop.read(c),j=V-P,X=A-B,pe=Math.min(V,A),ye=Math.max(V,A);return{range:new Ze(pe,ye),from:j,to:X,fromWithoutScroll:V,toWithoutScroll:A,move:I}});v.sort(E$(zs(I=>I.fromWithoutScroll>I.toWithoutScroll,N$),zs(I=>I.fromWithoutScroll>I.toWithoutScroll?I.fromWithoutScroll:-I.toWithoutScroll,Br)));const b=dP.compute(v.map(I=>I.range)),C=10,w=p.verticalScrollbarWidth,S=(b.getTrackCount()-1)*10+C*2,L=w+S+(_.contentLeft-gh.movedCodeBlockPadding);let D=0;for(const I of v){const T=b.getTrack(D),V=w+C+T*10,P=15,A=15,B=L,j=_.glyphMarginWidth+_.lineNumbersWidth,X=18,pe=document.createElementNS("http://www.w3.org/2000/svg","rect");pe.classList.add("arrow-rectangle"),pe.setAttribute("x",`${B-j}`),pe.setAttribute("y",`${I.to-X/2}`),pe.setAttribute("width",`${j}`),pe.setAttribute("height",`${X}`),this._element.appendChild(pe);const ye=document.createElementNS("http://www.w3.org/2000/svg","g"),Ee=document.createElementNS("http://www.w3.org/2000/svg","path");Ee.setAttribute("d",`M 0 ${I.from} L ${V} ${I.from} L ${V} ${I.to} L ${B-A} ${I.to}`),Ee.setAttribute("fill","none"),ye.appendChild(Ee);const fe=document.createElementNS("http://www.w3.org/2000/svg","polygon");fe.classList.add("arrow"),h.add(Xe(Ue=>{Ee.classList.toggle("currentMove",I.move===g.activeMovedText.read(Ue)),fe.classList.toggle("currentMove",I.move===g.activeMovedText.read(Ue))})),fe.setAttribute("points",`${B-A},${I.to-P/2} ${B},${I.to} ${B-A},${I.to+P/2}`),ye.appendChild(fe),this._element.appendChild(ye),D++}this.width.set(S,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(Ce(()=>this._element.remove())),this._register(Xe(c=>{const h=this._originalEditorLayoutInfo.read(c),u=this._modifiedEditorLayoutInfo.read(c);!h||!u||(this._element.style.left=`${h.width-h.verticalScrollbarWidth}px`,this._element.style.height=`${h.height}px`,this._element.style.width=`${h.verticalScrollbarWidth+h.contentLeft-gh.movedCodeBlockPadding+this.width.read(c)}px`)})),this._register(G0(this._state));const r=He(c=>{const h=this._diffModel.read(c),u=h==null?void 0:h.diff.read(c);return u?u.movedTexts.map(g=>({move:g,original:new ry(ma(g.lineRangeMapping.original.startLineNumber-1),18),modified:new ry(ma(g.lineRangeMapping.modified.startLineNumber-1),18)})):[]});this._register(ay(this._editors.original,r.map(c=>c.map(h=>h.original)))),this._register(ay(this._editors.modified,r.map(c=>c.map(h=>h.modified)))),this._register(hr((c,h)=>{const u=r.read(c);for(const g of u)h.add(new N3(this._editors.original,g.original,g.move,"original",this._diffModel.get())),h.add(new N3(this._editors.modified,g.modified,g.move,"modified",this._diffModel.get()))}));const a=$n("original.onDidFocusEditorWidget",c=>this._editors.original.onDidFocusEditorWidget(()=>setTimeout(()=>c(void 0),0))),l=$n("modified.onDidFocusEditorWidget",c=>this._editors.modified.onDidFocusEditorWidget(()=>setTimeout(()=>c(void 0),0)));let d="modified";this._register(q0({createEmptyChangeSummary:()=>{},handleChange:(c,h)=>(c.didChange(a)&&(d="original"),c.didChange(l)&&(d="modified"),!0)},c=>{a.read(c),l.read(c);const h=this._diffModel.read(c);if(!h)return;const u=h.diff.read(c);let g;if(u&&d==="original"){const f=this._editors.originalCursor.read(c);f&&(g=u.movedTexts.find(p=>p.lineRangeMapping.original.contains(f.lineNumber)))}if(u&&d==="modified"){const f=this._editors.modifiedCursor.read(c);f&&(g=u.movedTexts.find(p=>p.lineRangeMapping.modified.contains(f.lineNumber)))}g!==h.movedTextToCompare.get()&&h.movedTextToCompare.set(void 0,void 0),h.setActiveMovedText(g)}))}}gh.movedCodeBlockPadding=4;class dP{static compute(e){const t=[],i=[];for(const n of e){let s=t.findIndex(r=>!r.intersectsStrict(n));s===-1&&(t.length>=6?s=dY(t,zs(a=>a.intersectWithRangeLength(n),Br)):(s=t.length,t.push(new kA))),t[s].addRange(n),i.push(s)}return new dP(t.length,i)}constructor(e,t){this._trackCount=e,this.trackPerLineIdx=t}getTrack(e){return this.trackPerLineIdx[e]}getTrackCount(){return this._trackCount}}class N3 extends $H{constructor(e,t,i,n,s){const r=bt("div.diff-hidden-lines-widget");super(e,t,r.root),this._editor=e,this._move=i,this._kind=n,this._diffModel=s,this._nodes=bt("div.diff-moved-code-block",{style:{marginRight:"4px"}},[bt("div.text-content@textContent"),bt("div.action-bar@actionBar")]),r.root.appendChild(this._nodes.root);const a=Nt(this._editor.onDidLayoutChange,()=>this._editor.getLayoutInfo());this._register(Nh(this._nodes.root,{paddingRight:a.map(u=>u.verticalScrollbarWidth)}));let l;i.changes.length>0?l=this._kind==="original"?m("codeMovedToWithChanges","Code moved with changes to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):m("codeMovedFromWithChanges","Code moved with changes from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1):l=this._kind==="original"?m("codeMovedTo","Code moved to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):m("codeMovedFrom","Code moved from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1);const d=this._register(new ur(this._nodes.actionBar,{highlightToggledItems:!0})),c=new no("",l,"",!1);d.push(c,{icon:!1,label:!0});const h=new no("","Compare",Te.asClassName(oe.compareChanges),!0,()=>{this._editor.focus(),this._diffModel.movedTextToCompare.set(this._diffModel.movedTextToCompare.get()===i?void 0:this._move,void 0)});this._register(Xe(u=>{const g=this._diffModel.movedTextToCompare.read(u)===i;h.checked=g})),d.push(h,{icon:!1,label:!0})}}N("diffEditor.move.border",{dark:"#8b8b8b9c",light:"#8b8b8b9c",hcDark:"#8b8b8b9c",hcLight:"#8b8b8b9c"},m("diffEditor.move.border","The border color for text that got moved in the diff editor."));N("diffEditor.moveActive.border",{dark:"#FFA500",light:"#FFA500",hcDark:"#FFA500",hcLight:"#FFA500"},m("diffEditor.moveActive.border","The active border color for text that got moved in the diff editor."));N("diffEditor.unchangedRegionShadow",{dark:"#000000",light:"#737373BF",hcDark:"#000000",hcLight:"#737373BF"},m("diffEditor.unchangedRegionShadow","The color of the shadow around unchanged region widgets."));const Fhe=_i("diff-insert",oe.add,m("diffInsertIcon","Line decoration for inserts in the diff editor.")),jH=_i("diff-remove",oe.remove,m("diffRemoveIcon","Line decoration for removals in the diff editor.")),T3=je.register({className:"line-insert",description:"line-insert",isWholeLine:!0,linesDecorationsClassName:"insert-sign "+Te.asClassName(Fhe),marginClassName:"gutter-insert"}),M3=je.register({className:"line-delete",description:"line-delete",isWholeLine:!0,linesDecorationsClassName:"delete-sign "+Te.asClassName(jH),marginClassName:"gutter-delete"}),R3=je.register({className:"line-insert",description:"line-insert",isWholeLine:!0,marginClassName:"gutter-insert"}),A3=je.register({className:"line-delete",description:"line-delete",isWholeLine:!0,marginClassName:"gutter-delete"}),P3=je.register({className:"char-insert",description:"char-insert",shouldFillLineOnLineBreak:!0}),Bhe=je.register({className:"char-insert",description:"char-insert",isWholeLine:!0}),Whe=je.register({className:"char-insert diff-range-empty",description:"char-insert diff-range-empty"}),HT=je.register({className:"char-delete",description:"char-delete",shouldFillLineOnLineBreak:!0}),Hhe=je.register({className:"char-delete",description:"char-delete",isWholeLine:!0}),Vhe=je.register({className:"char-delete diff-range-empty",description:"char-delete diff-range-empty"});class zhe extends W{constructor(e,t,i,n){super(),this._editors=e,this._diffModel=t,this._options=i,this._decorations=He(this,s=>{var r;const a=(r=this._diffModel.read(s))===null||r===void 0?void 0:r.diff.read(s);if(!a)return null;const l=this._diffModel.read(s).movedTextToCompare.read(s),d=this._options.renderIndicators.read(s),c=this._options.showEmptyDecorations.read(s),h=[],u=[];if(!l)for(const f of a.mappings)if(f.lineRangeMapping.original.isEmpty||h.push({range:f.lineRangeMapping.original.toInclusiveRange(),options:d?M3:A3}),f.lineRangeMapping.modified.isEmpty||u.push({range:f.lineRangeMapping.modified.toInclusiveRange(),options:d?T3:R3}),f.lineRangeMapping.modified.isEmpty||f.lineRangeMapping.original.isEmpty)f.lineRangeMapping.original.isEmpty||h.push({range:f.lineRangeMapping.original.toInclusiveRange(),options:Hhe}),f.lineRangeMapping.modified.isEmpty||u.push({range:f.lineRangeMapping.modified.toInclusiveRange(),options:Bhe});else for(const p of f.lineRangeMapping.innerChanges||[])f.lineRangeMapping.original.contains(p.originalRange.startLineNumber)&&h.push({range:p.originalRange,options:p.originalRange.isEmpty()&&c?Vhe:HT}),f.lineRangeMapping.modified.contains(p.modifiedRange.startLineNumber)&&u.push({range:p.modifiedRange,options:p.modifiedRange.isEmpty()&&c?Whe:P3});if(l)for(const f of l.changes){const p=f.original.toInclusiveRange();p&&h.push({range:p,options:d?M3:A3});const _=f.modified.toInclusiveRange();_&&u.push({range:_,options:d?T3:R3});for(const v of f.innerChanges||[])h.push({range:v.originalRange,options:HT}),u.push({range:v.modifiedRange,options:P3})}const g=this._diffModel.read(s).activeMovedText.read(s);for(const f of a.movedTexts)h.push({range:f.lineRangeMapping.original.toInclusiveRange(),options:{description:"moved",blockClassName:"movedOriginal"+(f===g?" currentMove":""),blockPadding:[gh.movedCodeBlockPadding,0,gh.movedCodeBlockPadding,gh.movedCodeBlockPadding]}}),u.push({range:f.lineRangeMapping.modified.toInclusiveRange(),options:{description:"moved",blockClassName:"movedModified"+(f===g?" currentMove":""),blockPadding:[4,0,4,4]}});return{originalDecorations:h,modifiedDecorations:u}}),this._register(oy(this._editors.original,this._decorations.map(s=>(s==null?void 0:s.originalDecorations)||[]))),this._register(oy(this._editors.modified,this._decorations.map(s=>(s==null?void 0:s.modifiedDecorations)||[])))}}class Uhe{resetSash(){this._sashRatio.set(void 0,void 0)}constructor(e,t){this._options=e,this.dimensions=t,this.sashLeft=B6(this,i=>{var n;const s=(n=this._sashRatio.read(i))!==null&&n!==void 0?n:this._options.splitViewDefaultRatio.read(i);return this._computeSashLeft(s,i)},(i,n)=>{const s=this.dimensions.width.get();this._sashRatio.set(i/s,n)}),this._sashRatio=ut(this,void 0)}_computeSashLeft(e,t){const i=this.dimensions.width.read(t),n=Math.floor(this._options.splitViewDefaultRatio.read(t)*i),s=this._options.enableSplitViewResizing.read(t)?Math.floor(e*i):n,r=100;return i<=r*2?n:si-r?i-r:s}}class KH extends W{constructor(e,t,i,n,s,r){super(),this._domNode=e,this._dimensions=t,this._enabled=i,this._boundarySashes=n,this.sashLeft=s,this._resetSash=r,this._sash=this._register(new Vn(this._domNode,{getVerticalSashTop:a=>0,getVerticalSashLeft:a=>this.sashLeft.get(),getVerticalSashHeight:a=>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(a=>{this.sashLeft.set(this._startSashPosition+(a.currentX-a.startX),void 0)})),this._register(this._sash.onDidEnd(()=>this._sash.layout())),this._register(this._sash.onDidReset(()=>this._resetSash())),this._register(Xe(a=>{const l=this._boundarySashes.read(a);l&&(this._sash.orthogonalEndSash=l.bottom)})),this._register(Xe(a=>{const l=this._enabled.read(a);this._sash.state=l?3:0,this.sashLeft.read(a),this._dimensions.height.read(a),this._sash.layout()}))}}var qH=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},VT=function(o,e){return function(t,i){e(t,i,o)}},Lu;const GH=ot("diffProviderFactoryService");let zT=class{constructor(e){this.instantiationService=e}createDiffProvider(e){return this.instantiationService.createInstance(ly,e)}};zT=qH([VT(0,Le)],zT);ht(GH,zT,1);let ly=Lu=class{constructor(e,t,i){this.editorWorkerService=t,this.telemetryService=i,this.onDidChangeEventEmitter=new O,this.onDidChange=this.onDidChangeEventEmitter.event,this.diffAlgorithm="advanced",this.diffAlgorithmOnDidChangeSubscription=void 0,this.setOptions(e)}dispose(){var e;(e=this.diffAlgorithmOnDidChangeSubscription)===null||e===void 0||e.dispose()}async computeDiff(e,t,i,n){var s,r;if(typeof this.diffAlgorithm!="string")return this.diffAlgorithm.computeDiff(e,t,i,n);if(e.isDisposed()||t.isDisposed())return{changes:[],identical:!0,quitEarly:!1,moves:[]};if(e.getLineCount()===1&&e.getLineMaxColumn(1)===1)return t.getLineCount()===1&&t.getLineMaxColumn(1)===1?{changes:[],identical:!0,quitEarly:!1,moves:[]}:{changes:[new Po(new Ge(1,2),new Ge(1,t.getLineCount()+1),[new Ca(e.getFullModelRange(),t.getFullModelRange())])],identical:!1,quitEarly:!1,moves:[]};const a=JSON.stringify([e.uri.toString(),t.uri.toString()]),l=JSON.stringify([e.id,t.id,e.getAlternativeVersionId(),t.getAlternativeVersionId(),JSON.stringify(i)]),d=Lu.diffCache.get(a);if(d&&d.context===l)return d.result;const c=In.create(),h=await this.editorWorkerService.computeDiff(e.uri,t.uri,i,this.diffAlgorithm),u=c.elapsed();if(this.telemetryService.publicLog2("diffEditor.computeDiff",{timeMs:u,timedOut:(s=h==null?void 0:h.quitEarly)!==null&&s!==void 0?s:!0,detectedMoves:i.computeMoves?(r=h==null?void 0:h.moves.length)!==null&&r!==void 0?r:0:-1}),n.isCancellationRequested)return{changes:[],identical:!1,quitEarly:!0,moves:[]};if(!h)throw new Error("no diff result available");return Lu.diffCache.size>10&&Lu.diffCache.delete(Lu.diffCache.keys().next().value),Lu.diffCache.set(a,{result:h,context:l}),h}setOptions(e){var t;let i=!1;e.diffAlgorithm&&this.diffAlgorithm!==e.diffAlgorithm&&((t=this.diffAlgorithmOnDidChangeSubscription)===null||t===void 0||t.dispose(),this.diffAlgorithmOnDidChangeSubscription=void 0,this.diffAlgorithm=e.diffAlgorithm,typeof e.diffAlgorithm!="string"&&(this.diffAlgorithmOnDidChangeSubscription=e.diffAlgorithm.onDidChange(()=>this.onDidChangeEventEmitter.fire())),i=!0),i&&this.onDidChangeEventEmitter.fire()}};ly.diffCache=new Map;ly=Lu=qH([VT(1,pr),VT(2,Bn)],ly);var $he=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},jhe=function(o,e){return function(t,i){e(t,i,o)}};let UT=class extends W{setActiveMovedText(e){this._activeMovedText.set(e,void 0)}constructor(e,t,i){super(),this.model=e,this._options=t,this._diffProviderFactoryService=i,this._isDiffUpToDate=ut(this,!1),this.isDiffUpToDate=this._isDiffUpToDate,this._diff=ut(this,void 0),this.diff=this._diff,this._unchangedRegions=ut(this,void 0),this.unchangedRegions=He(this,a=>{var l,d;return this._options.hideUnchangedRegions.read(a)?(d=(l=this._unchangedRegions.read(a))===null||l===void 0?void 0:l.regions)!==null&&d!==void 0?d:[]:(Wt(c=>{var h;for(const u of((h=this._unchangedRegions.get())===null||h===void 0?void 0:h.regions)||[])u.collapseAll(c)}),[])}),this.movedTextToCompare=ut(this,void 0),this._activeMovedText=ut(this,void 0),this._hoveredMovedText=ut(this,void 0),this.activeMovedText=He(this,a=>{var l,d;return(d=(l=this.movedTextToCompare.read(a))!==null&&l!==void 0?l:this._hoveredMovedText.read(a))!==null&&d!==void 0?d:this._activeMovedText.read(a)}),this._cancellationTokenSource=new ci,this._diffProvider=He(this,a=>{const l=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:this._options.diffAlgorithm.read(a)}),d=$n("onDidChange",l.onDidChange);return{diffProvider:l,onChangeSignal:d}}),this._register(Ce(()=>this._cancellationTokenSource.cancel()));const n=HL("contentChangedSignal"),s=this._register(new At(()=>n.trigger(void 0),200));this._register(Xe(a=>{const l=this._unchangedRegions.read(a);if(!l||l.regions.some(f=>f.isDragged.read(a)))return;const d=l.originalDecorationIds.map(f=>e.original.getDecorationRange(f)).map(f=>f?Ge.fromRangeInclusive(f):void 0),c=l.modifiedDecorationIds.map(f=>e.modified.getDecorationRange(f)).map(f=>f?Ge.fromRangeInclusive(f):void 0),h=l.regions.map((f,p)=>!d[p]||!c[p]?void 0:new Jc(d[p].startLineNumber,c[p].startLineNumber,d[p].length,f.visibleLineCountTop.read(a),f.visibleLineCountBottom.read(a))).filter(xl),u=[];let g=!1;for(const f of UR(h,(p,_)=>p.getHiddenModifiedRange(a).endLineNumberExclusive===_.getHiddenModifiedRange(a).startLineNumber))if(f.length>1){g=!0;const p=f.reduce((v,b)=>v+b.lineCount,0),_=new Jc(f[0].originalLineNumber,f[0].modifiedLineNumber,p,f[0].visibleLineCountTop.get(),f[f.length-1].visibleLineCountBottom.get());u.push(_)}else u.push(f[0]);if(g){const f=e.original.deltaDecorations(l.originalDecorationIds,u.map(_=>({range:_.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))),p=e.modified.deltaDecorations(l.modifiedDecorationIds,u.map(_=>({range:_.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})));Wt(_=>{this._unchangedRegions.set({regions:u,originalDecorationIds:f,modifiedDecorationIds:p},_)})}}));const r=(a,l,d)=>{const c=Jc.fromDiffs(a.changes,e.original.getLineCount(),e.modified.getLineCount(),this._options.hideUnchangedRegionsMinimumLineCount.read(d),this._options.hideUnchangedRegionsContextLineCount.read(d));let h;const u=this._unchangedRegions.get();if(u){const _=u.originalDecorationIds.map(w=>e.original.getDecorationRange(w)).map(w=>w?Ge.fromRangeInclusive(w):void 0),v=u.modifiedDecorationIds.map(w=>e.modified.getDecorationRange(w)).map(w=>w?Ge.fromRangeInclusive(w):void 0);let C=Dhe(u.regions.map((w,S)=>{if(!_[S]||!v[S])return;const L=_[S].length;return new Jc(_[S].startLineNumber,v[S].startLineNumber,L,Math.min(w.visibleLineCountTop.get(),L),Math.min(w.visibleLineCountBottom.get(),L-w.visibleLineCountTop.get()))}).filter(xl),(w,S)=>!S||w.modifiedLineNumber>=S.modifiedLineNumber+S.lineCount&&w.originalLineNumber>=S.originalLineNumber+S.lineCount).map(w=>new ps(w.getHiddenOriginalRange(d),w.getHiddenModifiedRange(d)));C=ps.clip(C,Ge.ofLength(1,e.original.getLineCount()),Ge.ofLength(1,e.modified.getLineCount())),h=ps.inverse(C,e.original.getLineCount(),e.modified.getLineCount())}const g=[];if(h)for(const _ of c){const v=h.filter(b=>b.original.intersectsStrict(_.originalUnchangedRange)&&b.modified.intersectsStrict(_.modifiedUnchangedRange));g.push(..._.setVisibleRanges(v,l))}else g.push(...c);const f=e.original.deltaDecorations((u==null?void 0:u.originalDecorationIds)||[],g.map(_=>({range:_.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))),p=e.modified.deltaDecorations((u==null?void 0:u.modifiedDecorationIds)||[],g.map(_=>({range:_.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})));this._unchangedRegions.set({regions:g,originalDecorationIds:f,modifiedDecorationIds:p},l)};this._register(e.modified.onDidChangeContent(a=>{if(this._diff.get()){const d=Fd.fromModelContentChanges(a.changes);this._lastDiff,e.original,e.modified}this._isDiffUpToDate.set(!1,void 0),s.schedule()})),this._register(e.original.onDidChangeContent(a=>{if(this._diff.get()){const d=Fd.fromModelContentChanges(a.changes);this._lastDiff,e.original,e.modified}this._isDiffUpToDate.set(!1,void 0),s.schedule()})),this._register(hr(async(a,l)=>{var d,c;this._options.hideUnchangedRegionsMinimumLineCount.read(a),this._options.hideUnchangedRegionsContextLineCount.read(a),s.cancel(),n.read(a);const h=this._diffProvider.read(a);h.onChangeSignal.read(a),Ir(EW,a),Ir(VE,a),this._isDiffUpToDate.set(!1,void 0);let u=[];l.add(e.original.onDidChangeContent(p=>{const _=Fd.fromModelContentChanges(p.changes);u=mS(u,_)}));let g=[];l.add(e.modified.onDidChangeContent(p=>{const _=Fd.fromModelContentChanges(p.changes);g=mS(g,_)}));let f=await h.diffProvider.computeDiff(e.original,e.modified,{ignoreTrimWhitespace:this._options.ignoreTrimWhitespace.read(a),maxComputationTimeMs:this._options.maxComputationTimeMs.read(a),computeMoves:this._options.showMoves.read(a)},this._cancellationTokenSource.token);this._cancellationTokenSource.token.isCancellationRequested||e.original.isDisposed()||e.modified.isDisposed()||(f=Khe(f,e.original,e.modified),f=(d=(e.original,e.modified,void 0))!==null&&d!==void 0?d:f,f=(c=(e.original,e.modified,void 0))!==null&&c!==void 0?c:f,Wt(p=>{r(f,p),this._lastDiff=f;const _=cP.fromDiffResult(f);this._diff.set(_,p),this._isDiffUpToDate.set(!0,p);const v=this.movedTextToCompare.get();this.movedTextToCompare.set(v?this._lastDiff.moves.find(b=>b.lineRangeMapping.modified.intersect(v.lineRangeMapping.modified)):void 0,p)}))}))}ensureModifiedLineIsVisible(e,t,i){var n,s;if(((n=this.diff.get())===null||n===void 0?void 0:n.mappings.length)===0)return;const r=((s=this._unchangedRegions.get())===null||s===void 0?void 0:s.regions)||[];for(const a of r)if(a.getHiddenModifiedRange(void 0).contains(e)){a.showModifiedLine(e,t,i);return}}ensureOriginalLineIsVisible(e,t,i){var n,s;if(((n=this.diff.get())===null||n===void 0?void 0:n.mappings.length)===0)return;const r=((s=this._unchangedRegions.get())===null||s===void 0?void 0:s.regions)||[];for(const a of r)if(a.getHiddenOriginalRange(void 0).contains(e)){a.showOriginalLine(e,t,i);return}}async waitForDiff(){await W6(this.isDiffUpToDate,e=>e)}serializeState(){const e=this._unchangedRegions.get();return{collapsedRegions:e==null?void 0:e.regions.map(t=>({range:t.getHiddenModifiedRange(void 0).serialize()}))}}restoreSerializedState(e){var t;const i=(t=e.collapsedRegions)===null||t===void 0?void 0:t.map(s=>Ge.deserialize(s.range)),n=this._unchangedRegions.get();!n||!i||Wt(s=>{for(const r of n.regions)for(const a of i)if(r.modifiedUnchangedRange.intersect(a)){r.setHiddenModifiedRange(a,s);break}})}};UT=$he([jhe(2,GH)],UT);function Khe(o,e,t){return{changes:o.changes.map(i=>new Po(i.original,i.modified,i.innerChanges?i.innerChanges.map(n=>qhe(n,e,t)):void 0)),moves:o.moves,identical:o.identical,quitEarly:o.quitEarly}}function qhe(o,e,t){let i=o.originalRange,n=o.modifiedRange;return(i.endColumn!==1||n.endColumn!==1)&&i.endColumn===e.getLineMaxColumn(i.endLineNumber)&&n.endColumn===t.getLineMaxColumn(n.endLineNumber)&&i.endLineNumbernew ZH(t)),e.moves||[],e.identical,e.quitEarly)}constructor(e,t,i,n){this.mappings=e,this.movedTexts=t,this.identical=i,this.quitEarly=n}}class ZH{constructor(e){this.lineRangeMapping=e}}class Jc{static fromDiffs(e,t,i,n,s){const r=Po.inverse(e,t,i),a=[];for(const l of r){let d=l.original.startLineNumber,c=l.modified.startLineNumber,h=l.original.length;const u=d===1&&c===1,g=d+h===t+1&&c+h===i+1;(u||g)&&h>=s+n?(u&&!g&&(h-=s),g&&!u&&(d+=s,c+=s,h-=s),a.push(new Jc(d,c,h,0,0))):h>=s*2+n&&(d+=s,c+=s,h-=s*2,a.push(new Jc(d,c,h,0,0)))}return a}get originalUnchangedRange(){return Ge.ofLength(this.originalLineNumber,this.lineCount)}get modifiedUnchangedRange(){return Ge.ofLength(this.modifiedLineNumber,this.lineCount)}constructor(e,t,i,n,s){this.originalLineNumber=e,this.modifiedLineNumber=t,this.lineCount=i,this._visibleLineCountTop=ut(this,0),this.visibleLineCountTop=this._visibleLineCountTop,this._visibleLineCountBottom=ut(this,0),this.visibleLineCountBottom=this._visibleLineCountBottom,this._shouldHideControls=He(this,l=>this.visibleLineCountTop.read(l)+this.visibleLineCountBottom.read(l)===this.lineCount&&!this.isDragged.read(l)),this.isDragged=ut(this,void 0);const r=Math.max(Math.min(n,this.lineCount),0),a=Math.max(Math.min(s,this.lineCount-n),0);XO(n===r),XO(s===a),this._visibleLineCountTop.set(r,void 0),this._visibleLineCountBottom.set(a,void 0)}setVisibleRanges(e,t){const i=[],n=new Jo(e.map(l=>l.modified)).subtractFrom(this.modifiedUnchangedRange);let s=this.originalLineNumber,r=this.modifiedLineNumber;const a=this.modifiedLineNumber+this.lineCount;if(n.ranges.length===0)this.showAll(t),i.push(this);else{let l=0;for(const d of n.ranges){const c=l===n.ranges.length-1;l++;const h=(c?a:d.endLineNumberExclusive)-r,u=new Jc(s,r,h,0,0);u.setHiddenModifiedRange(d,t),i.push(u),s=u.originalUnchangedRange.endLineNumberExclusive,r=u.modifiedUnchangedRange.endLineNumberExclusive}}return i}shouldHideControls(e){return this._shouldHideControls.read(e)}getHiddenOriginalRange(e){return Ge.ofLength(this.originalLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}getHiddenModifiedRange(e){return Ge.ofLength(this.modifiedLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}setHiddenModifiedRange(e,t){const i=e.startLineNumber-this.modifiedLineNumber,n=this.modifiedLineNumber+this.lineCount-e.endLineNumberExclusive;this.setState(i,n,t)}getMaxVisibleLineCountTop(){return this.lineCount-this._visibleLineCountBottom.get()}getMaxVisibleLineCountBottom(){return this.lineCount-this._visibleLineCountTop.get()}showMoreAbove(e=10,t){const i=this.getMaxVisibleLineCountTop();this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+e,i),t)}showMoreBelow(e=10,t){const i=this.lineCount-this._visibleLineCountTop.get();this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+e,i),t)}showAll(e){this._visibleLineCountBottom.set(this.lineCount-this._visibleLineCountTop.get(),e)}showModifiedLine(e,t,i){const n=e+1-(this.modifiedLineNumber+this._visibleLineCountTop.get()),s=this.modifiedLineNumber-this._visibleLineCountBottom.get()+this.lineCount-e;t===0&&n{var _;this._contextMenuService.showContextMenu({domForShadowRoot:u&&(_=i.getDomNode())!==null&&_!==void 0?_:void 0,getAnchor:()=>({x:f,y:p}),getActions:()=>{const v=[],b=n.modified.isEmpty;return v.push(new no("diff.clipboard.copyDeletedContent",b?n.original.length>1?m("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):m("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):n.original.length>1?m("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):m("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,async()=>{const w=this._originalTextModel.getValueInRange(n.original.toExclusiveRange());await this._clipboardService.writeText(w)})),n.original.length>1&&v.push(new no("diff.clipboard.copyDeletedLineContent",b?m("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.original.startLineNumber+h):m("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.original.startLineNumber+h),void 0,!0,async()=>{let w=this._originalTextModel.getLineContent(n.original.startLineNumber+h);w===""&&(w=this._originalTextModel.getEndOfLineSequence()===0?` +`:`\r +`),await this._clipboardService.writeText(w)})),i.getOption(91)||v.push(new no("diff.inline.revertChange",m("diff.inline.revertChange.label","Revert this change"),void 0,!0,async()=>{this._editor.revert(this._diff)})),v},autoSelectFirstItem:!0})};this._register(Si(this._diffActions,"mousedown",f=>{if(!f.leftButton)return;const{top:p,height:_}=Oi(this._diffActions),v=Math.floor(c/3);f.preventDefault(),g(f.posx,p+_+v)})),this._register(i.onMouseMove(f=>{(f.target.type===8||f.target.type===5)&&f.target.detail.viewZoneId===this._getViewZoneId()?(h=this._updateLightBulbPosition(this._marginDomNode,f.event.browserEvent.y,c),this.visibility=!0):this.visibility=!1})),this._register(i.onMouseDown(f=>{f.event.leftButton&&(f.target.type===8||f.target.type===5)&&f.target.detail.viewZoneId===this._getViewZoneId()&&(f.event.preventDefault(),h=this._updateLightBulbPosition(this._marginDomNode,f.event.browserEvent.y,c),g(f.event.posx,f.event.posy+c))}))}_updateLightBulbPosition(e,t,i){const{top:n}=Oi(e),s=t-n,r=Math.floor(s/i),a=r*i;if(this._diffActions.style.top=`${a}px`,this._viewLineCounts){let l=0;for(let d=0;do});function Zhe(o,e,t,i){kn(i,e.fontInfo);const n=t.length>0,s=new Tp(1e4);let r=0,a=0;const l=[];for(let u=0;u');const l=e.getLineContent(),d=Wo.isBasicASCII(l,n),c=Wo.containsRTL(l,d,s),h=M0(new Kh(r.fontInfo.isMonospace&&!r.disableMonospaceOptimizations,r.fontInfo.canUseHalfwidthRightwardsArrow,l,!1,d,c,0,e,t,r.tabSize,0,r.fontInfo.spaceWidth,r.fontInfo.middotWidth,r.fontInfo.wsmiddotWidth,r.stopRenderingLineAfter,r.renderWhitespace,r.renderControlCharacters,r.fontLigatures!==ko.OFF,null),a);return a.appendString(""),h.characterMapping.getHorizontalOffset(h.characterMapping.length)}var Qhe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},B3=function(o,e){return function(t,i){e(t,i,o)}};let $T=class extends W{constructor(e,t,i,n,s,r,a,l,d,c){super(),this._targetWindow=e,this._editors=t,this._diffModel=i,this._options=n,this._diffEditorWidget=s,this._canIgnoreViewZoneUpdateEvent=r,this._origViewZonesToIgnore=a,this._modViewZonesToIgnore=l,this._clipboardService=d,this._contextMenuService=c,this._originalTopPadding=ut(this,0),this._originalScrollOffset=ut(this,0),this._originalScrollOffsetAnimated=I3(this._targetWindow,this._originalScrollOffset,this._store),this._modifiedTopPadding=ut(this,0),this._modifiedScrollOffset=ut(this,0),this._modifiedScrollOffsetAnimated=I3(this._targetWindow,this._modifiedScrollOffset,this._store);const h=ut("invalidateAlignmentsState",0),u=this._register(new At(()=>{h.set(h.get()+1,void 0)},0));this._register(this._editors.original.onDidChangeViewZones(C=>{this._canIgnoreViewZoneUpdateEvent()||u.schedule()})),this._register(this._editors.modified.onDidChangeViewZones(C=>{this._canIgnoreViewZoneUpdateEvent()||u.schedule()})),this._register(this._editors.original.onDidChangeConfiguration(C=>{(C.hasChanged(146)||C.hasChanged(67))&&u.schedule()})),this._register(this._editors.modified.onDidChangeConfiguration(C=>{(C.hasChanged(146)||C.hasChanged(67))&&u.schedule()}));const g=this._diffModel.map(C=>C?Nt(C.model.original.onDidChangeTokens,()=>C.model.original.tokenization.backgroundTokenizationState===2):void 0).map((C,w)=>C==null?void 0:C.read(w)),f=He(C=>{const w=this._diffModel.read(C),S=w==null?void 0:w.diff.read(C);if(!w||!S)return null;h.read(C);const D=this._options.renderSideBySide.read(C);return W3(this._editors.original,this._editors.modified,S.mappings,this._origViewZonesToIgnore,this._modViewZonesToIgnore,D)}),p=He(C=>{var w;const S=(w=this._diffModel.read(C))===null||w===void 0?void 0:w.movedTextToCompare.read(C);if(!S)return null;h.read(C);const L=S.changes.map(D=>new ZH(D));return W3(this._editors.original,this._editors.modified,L,this._origViewZonesToIgnore,this._modViewZonesToIgnore,!0)});function _(){const C=document.createElement("div");return C.className="diagonal-fill",C}const v=this._register(new G);this.viewZones=Zg(this,(C,w)=>{var S,L,D,I,T,V,P,A;v.clear();const B=f.read(C)||[],j=[],X=[],pe=this._modifiedTopPadding.read(C);pe>0&&X.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:pe,showInHiddenAreas:!0,suppressMouseDown:!0});const ye=this._originalTopPadding.read(C);ye>0&&j.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:ye,showInHiddenAreas:!0,suppressMouseDown:!0});const Ee=this._options.renderSideBySide.read(C),fe=Ee||(S=this._editors.modified._getViewModel())===null||S===void 0?void 0:S.createLineBreaksComputer();if(fe){const xt=this._editors.original.getModel();for(const en of B)if(en.diff)for(let ls=en.originalRange.startLineNumber;lsxt.getLineCount())return{orig:j,mod:X};fe==null||fe.addRequest(xt.getLineContent(ls),null,null)}}const Ue=(L=fe==null?void 0:fe.finalize())!==null&&L!==void 0?L:[];let Ve=0;const Ne=this._editors.modified.getOption(67),ue=(D=this._diffModel.read(C))===null||D===void 0?void 0:D.movedTextToCompare.read(C),vi=(T=(I=this._editors.original.getModel())===null||I===void 0?void 0:I.mightContainNonBasicASCII())!==null&&T!==void 0?T:!1,as=(P=(V=this._editors.original.getModel())===null||V===void 0?void 0:V.mightContainRTL())!==null&&P!==void 0?P:!1,qi=hP.fromEditor(this._editors.modified);for(const xt of B)if(xt.diff&&!Ee){if(!xt.originalRange.isEmpty){g.read(C);const ls=document.createElement("div");ls.classList.add("view-lines","line-delete","monaco-mouse-cursor-text");const vn=this._editors.original.getModel();if(xt.originalRange.endLineNumberExclusive-1>vn.getLineCount())return{orig:j,mod:X};const qe=new Yhe(xt.originalRange.mapToLineArray(dn=>vn.tokenization.getLineTokens(dn)),xt.originalRange.mapToLineArray(dn=>Ue[Ve++]),vi,as),br=[];for(const dn of xt.diff.innerChanges||[])br.push(new rv(dn.originalRange.delta(-(xt.diff.original.startLineNumber-1)),HT.className,0));const Cr=Zhe(qe,qi,br,ls),mo=document.createElement("div");if(mo.className="inline-deleted-margin-view-zone",kn(mo,qi.fontInfo),this._options.renderIndicators.read(C))for(let dn=0;dnHc(Yl),mo,this._editors.modified,xt.diff,this._diffEditorWidget,Cr.viewLineCounts,this._editors.original.getModel(),this._contextMenuService,this._clipboardService));for(let dn=0;dn1&&j.push({afterLineNumber:xt.originalRange.startLineNumber+dn,domNode:_(),heightInPx:(qr-1)*Ne,showInHiddenAreas:!0,suppressMouseDown:!0})}X.push({afterLineNumber:xt.modifiedRange.startLineNumber-1,domNode:ls,heightInPx:Cr.heightInLines*Ne,minWidthInPx:Cr.minWidthInPx,marginDomNode:mo,setZoneId(dn){Yl=dn},showInHiddenAreas:!0,suppressMouseDown:!0})}const en=document.createElement("div");en.className="gutter-delete",j.push({afterLineNumber:xt.originalRange.endLineNumberExclusive-1,domNode:_(),heightInPx:xt.modifiedHeightInPx,marginDomNode:en,showInHiddenAreas:!0,suppressMouseDown:!0})}else{const en=xt.modifiedHeightInPx-xt.originalHeightInPx;if(en>0){if(ue!=null&&ue.lineRangeMapping.original.delta(-1).deltaLength(2).contains(xt.originalRange.endLineNumberExclusive-1))continue;j.push({afterLineNumber:xt.originalRange.endLineNumberExclusive-1,domNode:_(),heightInPx:en,showInHiddenAreas:!0,suppressMouseDown:!0})}else{let ls=function(){const qe=document.createElement("div");return qe.className="arrow-revert-change "+Te.asClassName(oe.arrowRight),w.add(U(qe,"mousedown",br=>br.stopPropagation())),w.add(U(qe,"click",br=>{br.stopPropagation(),s.revert(xt.diff)})),te("div",{},qe)};if(ue!=null&&ue.lineRangeMapping.modified.delta(-1).deltaLength(2).contains(xt.modifiedRange.endLineNumberExclusive-1))continue;let vn;xt.diff&&xt.diff.modified.isEmpty&&this._options.shouldRenderOldRevertArrows.read(C)&&(vn=ls()),X.push({afterLineNumber:xt.modifiedRange.endLineNumberExclusive-1,domNode:_(),heightInPx:-en,marginDomNode:vn,showInHiddenAreas:!0,suppressMouseDown:!0})}}for(const xt of(A=p.read(C))!==null&&A!==void 0?A:[]){if(!(ue!=null&&ue.lineRangeMapping.original.intersect(xt.originalRange))||!(ue!=null&&ue.lineRangeMapping.modified.intersect(xt.modifiedRange)))continue;const en=xt.modifiedHeightInPx-xt.originalHeightInPx;en>0?j.push({afterLineNumber:xt.originalRange.endLineNumberExclusive-1,domNode:_(),heightInPx:en,showInHiddenAreas:!0,suppressMouseDown:!0}):X.push({afterLineNumber:xt.modifiedRange.endLineNumberExclusive-1,domNode:_(),heightInPx:-en,showInHiddenAreas:!0,suppressMouseDown:!0})}return{orig:j,mod:X}});let b=!1;this._register(this._editors.original.onDidScrollChange(C=>{C.scrollLeftChanged&&!b&&(b=!0,this._editors.modified.setScrollLeft(C.scrollLeft),b=!1)})),this._register(this._editors.modified.onDidScrollChange(C=>{C.scrollLeftChanged&&!b&&(b=!0,this._editors.original.setScrollLeft(C.scrollLeft),b=!1)})),this._originalScrollTop=Nt(this._editors.original.onDidScrollChange,()=>this._editors.original.getScrollTop()),this._modifiedScrollTop=Nt(this._editors.modified.onDidScrollChange,()=>this._editors.modified.getScrollTop()),this._register(Xe(C=>{const w=this._originalScrollTop.read(C)-(this._originalScrollOffsetAnimated.get()-this._modifiedScrollOffsetAnimated.read(C))-(this._originalTopPadding.get()-this._modifiedTopPadding.read(C));w!==this._editors.modified.getScrollTop()&&this._editors.modified.setScrollTop(w,1)})),this._register(Xe(C=>{const w=this._modifiedScrollTop.read(C)-(this._modifiedScrollOffsetAnimated.get()-this._originalScrollOffsetAnimated.read(C))-(this._modifiedTopPadding.get()-this._originalTopPadding.read(C));w!==this._editors.original.getScrollTop()&&this._editors.original.setScrollTop(w,1)})),this._register(Xe(C=>{var w;const S=(w=this._diffModel.read(C))===null||w===void 0?void 0:w.movedTextToCompare.read(C);let L=0;if(S){const D=this._editors.original.getTopForLineNumber(S.lineRangeMapping.original.startLineNumber,!0)-this._originalTopPadding.get();L=this._editors.modified.getTopForLineNumber(S.lineRangeMapping.modified.startLineNumber,!0)-this._modifiedTopPadding.get()-D}L>0?(this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(L,void 0)):L<0?(this._modifiedTopPadding.set(-L,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()-L,void 0,!0):this._modifiedScrollOffset.set(this._originalScrollOffset.get()+L,void 0,!0)}))}};$T=Qhe([B3(8,uc),B3(9,go)],$T);function W3(o,e,t,i,n,s){const r=new Zd(H3(o,i)),a=new Zd(H3(e,n)),l=o.getOption(67),d=e.getOption(67),c=[];let h=0,u=0;function g(f,p){for(;;){let _=r.peek(),v=a.peek();if(_&&_.lineNumber>=f&&(_=void 0),v&&v.lineNumber>=p&&(v=void 0),!_&&!v)break;const b=_?_.lineNumber-h:Number.MAX_VALUE,C=v?v.lineNumber-u:Number.MAX_VALUE;bC?(a.dequeue(),_={lineNumber:v.lineNumber-u+h,heightInPx:0}):(r.dequeue(),a.dequeue()),c.push({originalRange:Ge.ofLength(_.lineNumber,1),modifiedRange:Ge.ofLength(v.lineNumber,1),originalHeightInPx:l+_.heightInPx,modifiedHeightInPx:d+v.heightInPx,diff:void 0})}}for(const f of t){let C=function(w,S){var L,D,I,T;if(wj.lineNumberj+X.heightInPx,0))!==null&&D!==void 0?D:0,B=(T=(I=a.takeWhile(j=>j.lineNumberj+X.heightInPx,0))!==null&&T!==void 0?T:0;c.push({originalRange:V,modifiedRange:P,originalHeightInPx:V.length*l+A,modifiedHeightInPx:P.length*d+B,diff:f.lineRangeMapping}),b=w,v=S};const p=f.lineRangeMapping;g(p.original.startLineNumber,p.modified.startLineNumber);let _=!0,v=p.modified.startLineNumber,b=p.original.startLineNumber;if(s)for(const w of p.innerChanges||[]){w.originalRange.startColumn>1&&w.modifiedRange.startColumn>1&&C(w.originalRange.startLineNumber,w.modifiedRange.startLineNumber);const S=o.getModel(),L=w.originalRange.endLineNumber<=S.getLineCount()?S.getLineMaxColumn(w.originalRange.endLineNumber):Number.MAX_SAFE_INTEGER;w.originalRange.endColumn1&&i.push({lineNumber:l,heightInPx:r*(d-1)})}for(const l of o.getWhitespaces()){if(e.has(l.id))continue;const d=l.afterLineNumber===0?0:s.convertViewPositionToModelPosition(new F(l.afterLineNumber,1)).lineNumber;t.push({lineNumber:d,heightInPx:l.height})}return Che(t,i,l=>l.lineNumber,(l,d)=>({lineNumber:l.lineNumber,heightInPx:l.heightInPx+d.heightInPx}))}class Xhe extends W{constructor(e,t,i){super(),this._editor=e,this._domNode=t,this.itemProvider=i,this.scrollTop=Nt(this._editor.onDidScrollChange,r=>this._editor.getScrollTop()),this.isScrollTopZero=this.scrollTop.map(r=>r===0),this.modelAttached=Nt(this._editor.onDidChangeModel,r=>this._editor.hasModel()),this.editorOnDidChangeViewZones=$n("onDidChangeViewZones",this._editor.onDidChangeViewZones),this.editorOnDidContentSizeChange=$n("onDidContentSizeChange",this._editor.onDidContentSizeChange),this.domNodeSizeChanged=HL("domNodeSizeChanged"),this.views=new Map,this._domNode.className="gutter monaco-editor";const n=this._domNode.appendChild(bt("div.scroll-decoration",{role:"presentation",ariaHidden:"true",style:{width:"100%"}}).root),s=new ResizeObserver(()=>{Wt(r=>{this.domNodeSizeChanged.trigger(r)})});s.observe(this._domNode),this._register(Ce(()=>s.disconnect())),this._register(Xe(r=>{n.className=this.isScrollTopZero.read(r)?"":"scroll-decoration"})),this._register(Xe(r=>this.render(r)))}dispose(){super.dispose(),Dn(this._domNode)}render(e){if(!this.modelAttached.read(e))return;this.domNodeSizeChanged.read(e),this.editorOnDidChangeViewZones.read(e),this.editorOnDidContentSizeChange.read(e);const t=this.scrollTop.read(e),i=this._editor.getVisibleRanges(),n=new Set(this.views.keys()),s=Ze.ofStartAndLength(0,this._domNode.clientHeight);if(!s.isEmpty)for(const r of i){const a=new Ge(r.startLineNumber,r.endLineNumber+1),l=this.itemProvider.getIntersectingGutterItems(a,e);Wt(d=>{for(const c of l){if(!c.range.intersect(a))continue;n.delete(c.id);let h=this.views.get(c.id);if(h)h.item.set(c,d);else{const p=document.createElement("div");this._domNode.appendChild(p);const _=ut("item",c),v=this.itemProvider.createView(_,p);h=new Jhe(_,v,p),this.views.set(c.id,h)}const u=c.range.startLineNumber<=this._editor.getModel().getLineCount()?this._editor.getTopForLineNumber(c.range.startLineNumber,!0)-t:this._editor.getBottomForLineNumber(c.range.startLineNumber-1,!1)-t,f=(c.range.isEmpty?u:this._editor.getBottomForLineNumber(c.range.endLineNumberExclusive-1,!0)-t)-u;h.domNode.style.top=`${u}px`,h.domNode.style.height=`${f}px`,h.gutterItemView.layout(Ze.ofStartAndLength(u,f),s)}})}for(const r of n){const a=this.views.get(r);a.gutterItemView.dispose(),this._domNode.removeChild(a.domNode),this.views.delete(r)}}}class Jhe{constructor(e,t,i){this.item=e,this.gutterItemView=t,this.domNode=i}}class YH extends mg{constructor(e){super(),this._getContext=e}runAction(e,t){const i=this._getContext();return super.runAction(e,i)}}class V3 extends DW{constructor(e){super(),this._textModel=e}getValueOfRange(e){return this._textModel.getValueInRange(e)}get length(){const e=this._textModel.getLineCount(),t=this._textModel.getLineLength(e);return new Cs(e-1,t)}}class eue extends W{constructor(e,t,i={orientation:0}){var n;super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new eK),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new G),i.hoverDelegate=(n=i.hoverDelegate)!==null&&n!==void 0?n:this._register(op()),this.options=i,this.lookupKeybindings=typeof this.options.getKeyBinding=="function",this.toggleMenuAction=this._register(new up(()=>{var s;return(s=this.toggleMenuActionViewItem)===null||s===void 0?void 0:s.show()},i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new ur(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,highlightToggledItems:i.highlightToggledItems,hoverDelegate:i.hoverDelegate,actionViewItemProvider:(s,r)=>{var a;if(s.id===up.ID)return this.toggleMenuActionViewItem=new RS(s,s.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:Te.asClassNameArray((a=i.moreIcon)!==null&&a!==void 0?a:oe.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(i.actionViewItemProvider){const l=i.actionViewItemProvider(s,r);if(l)return l}if(s instanceof Wm){const l=new RS(s,s.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:s.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,hoverDelegate:this.options.hoverDelegate});return l.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(l),this.disposables.add(this._onDidChangeDropdownVisibility.add(l.onDidChangeVisibility)),l}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const i=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.forEach(n=>{this.actionBar.push(n,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(n)})})}getKeybindingLabel(e){var t,i,n;const s=this.lookupKeybindings?(i=(t=this.options).getKeyBinding)===null||i===void 0?void 0:i.call(t,e):void 0;return(n=s==null?void 0:s.getLabel())!==null&&n!==void 0?n:void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),this.disposables.dispose(),super.dispose()}}class up extends no{constructor(e,t){t=t||m("moreActions","More Actions..."),super(up.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}async run(){this.toggleDropdownMenu()}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}up.ID="toolbar.toggle.more";var QH=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Tr=function(o,e){return function(t,i){e(t,i,o)}};let Hb=class extends eue{constructor(e,t,i,n,s,r,a,l){super(e,s,{getKeyBinding:c=>{var h;return(h=r.lookupKeybinding(c.id))!==null&&h!==void 0?h:void 0},...t,allowContextMenu:!0,skipTelemetry:typeof(t==null?void 0:t.telemetrySource)=="string"}),this._options=t,this._menuService=i,this._contextKeyService=n,this._contextMenuService=s,this._keybindingService=r,this._commandService=a,this._sessionDisposables=this._store.add(new G);const d=t==null?void 0:t.telemetrySource;d&&this._store.add(this.actionBar.onDidRun(c=>l.publicLog2("workbenchActionExecuted",{id:c.action.id,from:d})))}setActions(e,t=[],i){var n,s,r;this._sessionDisposables.clear();const a=e.slice(),l=t.slice(),d=[];let c=0;const h=[];let u=!1;if(((n=this._options)===null||n===void 0?void 0:n.hiddenItemStrategy)!==-1)for(let g=0;g_==null?void 0:_.id)),f=this._options.overflowBehavior.maxItems-g.size;let p=0;for(let _=0;_=f&&(a[_]=void 0,h[_]=v))}}bO(a),bO(h),super.setActions(a,ji.join(h,l)),(d.length>0||a.length>0)&&this._sessionDisposables.add(U(this.getElement(),"contextmenu",g=>{var f,p,_,v,b;const C=new Rr(De(this.getElement()),g),w=this.getItemAction(C.target);if(!w)return;C.preventDefault(),C.stopPropagation();const S=[];if(w instanceof so&&w.menuKeybinding?S.push(w.menuKeybinding):w instanceof hm||w instanceof up||S.push(WH(w.id,void 0,this._commandService,this._keybindingService)),d.length>0){let D=!1;if(c===1&&((f=this._options)===null||f===void 0?void 0:f.hiddenItemStrategy)===0){D=!0;for(let I=0;Ithis._menuService.resetHiddenStates(i)}))),L.length!==0&&this._contextMenuService.showContextMenu({getAnchor:()=>C,getActions:()=>L,menuId:(_=this._options)===null||_===void 0?void 0:_.contextMenu,menuActionOptions:{renderShortTitle:!0,...(v=this._options)===null||v===void 0?void 0:v.menuOptions},skipTelemetry:typeof((b=this._options)===null||b===void 0?void 0:b.telemetrySource)=="string",contextKeyService:this._contextKeyService})}))}};Hb=QH([Tr(2,zo),Tr(3,Me),Tr(4,go),Tr(5,St),Tr(6,Qt),Tr(7,Bn)],Hb);let dy=class extends Hb{constructor(e,t,i,n,s,r,a,l,d){super(e,{resetMenu:t,...i},n,s,r,a,l,d),this._onDidChangeMenuItems=this._store.add(new O),this.onDidChangeMenuItems=this._onDidChangeMenuItems.event;const c=this._store.add(n.createMenu(t,s,{emitEventsForSubmenuChanges:!0})),h=()=>{var u,g,f;const p=[],_=[];UL(c,i==null?void 0:i.menuOptions,{primary:p,secondary:_},(u=i==null?void 0:i.toolbarOptions)===null||u===void 0?void 0:u.primaryGroup,(g=i==null?void 0:i.toolbarOptions)===null||g===void 0?void 0:g.shouldInlineSubmenu,(f=i==null?void 0:i.toolbarOptions)===null||f===void 0?void 0:f.useSeparatorsInPrimaryActions),e.classList.toggle("has-no-actions",p.length===0&&_.length===0),super.setActions(p,_)};this._store.add(c.onDidChange(()=>{h(),this._onDidChangeMenuItems.fire(this)})),h()}setActions(){throw new Tt("This toolbar is populated from a menu.")}};dy=QH([Tr(3,zo),Tr(4,Me),Tr(5,go),Tr(6,St),Tr(7,Qt),Tr(8,Bn)],dy);var XH=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Cw=function(o,e){return function(t,i){e(t,i,o)}};const Pk=[],f1=35;let jT=class extends W{constructor(e,t,i,n,s,r,a,l,d){super(),this._diffModel=t,this._editors=i,this._options=n,this._sashLayout=s,this._boundarySashes=r,this._instantiationService=a,this._contextKeyService=l,this._menuService=d,this._menu=this._register(this._menuService.createMenu(k.DiffEditorHunkToolbar,this._contextKeyService)),this._actions=Nt(this._menu.onDidChange,()=>this._menu.getActions()),this._hasActions=this._actions.map(c=>c.length>0),this._showSash=He(this,c=>this._options.renderSideBySide.read(c)&&this._hasActions.read(c)),this.width=He(this,c=>this._hasActions.read(c)?f1:0),this.elements=bt("div.gutter@gutter",{style:{position:"absolute",height:"100%",width:f1+"px"}},[]),this._currentDiff=He(this,c=>{var h;const u=this._diffModel.read(c);if(!u)return;const g=(h=u.diff.read(c))===null||h===void 0?void 0:h.mappings,f=this._editors.modifiedCursor.read(c);if(f)return g==null?void 0:g.find(p=>p.lineRangeMapping.modified.contains(f.lineNumber))}),this._selectedDiffs=He(this,c=>{const h=this._diffModel.read(c),u=h==null?void 0:h.diff.read(c);if(!u)return Pk;const g=this._editors.modifiedSelections.read(c);if(g.every(v=>v.isEmpty()))return Pk;const f=new Jo(g.map(v=>Ge.fromRangeInclusive(v))),_=u.mappings.filter(v=>v.lineRangeMapping.innerChanges&&f.intersects(v.lineRangeMapping.modified)).map(v=>({mapping:v,rangeMappings:v.lineRangeMapping.innerChanges.filter(b=>g.some(C=>x.areIntersecting(b.modifiedRange,C)))}));return _.length===0||_.every(v=>v.rangeMappings.length===0)?Pk:_}),this._register(whe(e,this.elements.root)),this._register(U(this.elements.root,"click",()=>{this._editors.modified.focus()})),this._register(Nh(this.elements.root,{display:this._hasActions.map(c=>c?"block":"none")})),il(this,c=>this._showSash.read(c)?new KH(e,this._sashLayout.dimensions,this._options.enableSplitViewResizing,this._boundarySashes,B6(this,u=>this._sashLayout.sashLeft.read(u)-f1,(u,g)=>this._sashLayout.sashLeft.set(u+f1,g)),()=>this._sashLayout.resetSash()):void 0).recomputeInitiallyAndOnChange(this._store),this._register(new Xhe(this._editors.modified,this.elements.root,{getIntersectingGutterItems:(c,h)=>{const u=this._diffModel.read(h);if(!u)return[];const g=u.diff.read(h);if(!g)return[];const f=this._selectedDiffs.read(h);if(f.length>0){const _=Po.fromRangeMappings(f.flatMap(v=>v.rangeMappings));return[new z3(_,!0,k.DiffEditorSelectionToolbar,void 0,u.model.original.uri,u.model.modified.uri)]}const p=this._currentDiff.read(h);return g.mappings.map(_=>new z3(_.lineRangeMapping.withInnerChangesFromLineRanges(),_.lineRangeMapping===(p==null?void 0:p.lineRangeMapping),k.DiffEditorHunkToolbar,void 0,u.model.original.uri,u.model.modified.uri))},createView:(c,h)=>this._instantiationService.createInstance(KT,c,h,this)})),this._register(U(this.elements.gutter,ee.MOUSE_WHEEL,c=>{this._editors.modified.getOption(103).handleMouseWheel&&this._editors.modified.delegateScrollFromMouseWheelEvent(c)},{passive:!1}))}computeStagedValue(e){var t;const i=(t=e.innerChanges)!==null&&t!==void 0?t:[],n=new V3(this._editors.modifiedModel.get()),s=new V3(this._editors.original.getModel());return new EA(i.map(l=>l.toTextEdit(n))).apply(s)}layout(e){this.elements.gutter.style.left=e+"px"}};jT=XH([Cw(6,Le),Cw(7,Me),Cw(8,zo)],jT);class z3{constructor(e,t,i,n,s,r){this.mapping=e,this.showAlways=t,this.menuId=i,this.rangeOverride=n,this.originalUri=s,this.modifiedUri=r}get id(){return this.mapping.modified.toString()}get range(){var e;return(e=this.rangeOverride)!==null&&e!==void 0?e:this.mapping.modified}}let KT=class extends W{constructor(e,t,i,n){super(),this._item=e,this._elements=bt("div.gutterItem",{style:{height:"20px",width:"34px"}},[bt("div.background@background",{},[]),bt("div.buttons@buttons",{},[])]),this._showAlways=this._item.map(this,r=>r.showAlways),this._menuId=this._item.map(this,r=>r.menuId),this._isSmall=ut(this,!1),this._lastItemRange=void 0,this._lastViewRange=void 0;const s=this._register(n.createInstance(ep,"element",!0,{position:{hoverPosition:1}}));this._register(K_(t,this._elements.root)),this._register(Xe(r=>{const a=this._showAlways.read(r);this._elements.root.classList.toggle("noTransition",!0),this._elements.root.classList.toggle("showAlways",a),setTimeout(()=>{this._elements.root.classList.toggle("noTransition",!1)},0)})),this._register(hr((r,a)=>{this._elements.buttons.replaceChildren();const l=a.add(n.createInstance(dy,this._elements.buttons,this._menuId.read(r),{orientation:1,hoverDelegate:s,toolbarOptions:{primaryGroup:d=>d.startsWith("primary")},overflowBehavior:{maxItems:this._isSmall.read(r)?1:3},hiddenItemStrategy:0,actionRunner:new YH(()=>{const d=this._item.get(),c=d.mapping;return{mapping:c,originalWithModifiedChanges:i.computeStagedValue(c),originalUri:d.originalUri,modifiedUri:d.modifiedUri}}),menuOptions:{shouldForwardArgs:!0}}));a.add(l.onDidChangeMenuItems(()=>{this._lastItemRange&&this.layout(this._lastItemRange,this._lastViewRange)}))}))}layout(e,t){this._lastItemRange=e,this._lastViewRange=t;let i=this._elements.buttons.clientHeight;this._isSmall.set(this._item.get().mapping.original.startLineNumber===1&&e.length<30,void 0),i=this._elements.buttons.clientHeight;const n=e.length/2-i/2,s=i;let r=e.start+n;const a=Ze.tryCreate(s,t.endExclusive-s-i),l=Ze.tryCreate(e.start+s,e.endExclusive-i-s);l&&a&&l.start=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},iue=function(o,e){return function(t,i){e(t,i,o)}},qT;let Vb=qT=class extends W{static setBreadcrumbsSourceFactory(e){this._breadcrumbsSourceFactory.set(e,void 0)}get isUpdatingHiddenAreas(){return this._isUpdatingHiddenAreas}constructor(e,t,i,n){super(),this._editors=e,this._diffModel=t,this._options=i,this._instantiationService=n,this._modifiedOutlineSource=il(this,l=>{const d=this._editors.modifiedModel.read(l),c=qT._breadcrumbsSourceFactory.read(l);return!d||!c?void 0:c(d,this._instantiationService)}),this._isUpdatingHiddenAreas=!1,this._register(this._editors.original.onDidChangeCursorPosition(l=>{if(l.reason===1)return;const d=this._diffModel.get();Wt(c=>{for(const h of this._editors.original.getSelections()||[])d==null||d.ensureOriginalLineIsVisible(h.getStartPosition().lineNumber,0,c),d==null||d.ensureOriginalLineIsVisible(h.getEndPosition().lineNumber,0,c)})})),this._register(this._editors.modified.onDidChangeCursorPosition(l=>{if(l.reason===1)return;const d=this._diffModel.get();Wt(c=>{for(const h of this._editors.modified.getSelections()||[])d==null||d.ensureModifiedLineIsVisible(h.getStartPosition().lineNumber,0,c),d==null||d.ensureModifiedLineIsVisible(h.getEndPosition().lineNumber,0,c)})}));const s=this._diffModel.map((l,d)=>{var c,h;const u=(c=l==null?void 0:l.unchangedRegions.read(d))!==null&&c!==void 0?c:[];return u.length===1&&u[0].modifiedLineNumber===1&&u[0].lineCount===((h=this._editors.modifiedModel.read(d))===null||h===void 0?void 0:h.getLineCount())?[]:u});this.viewZones=Zg(this,(l,d)=>{const c=this._modifiedOutlineSource.read(l);if(!c)return{origViewZones:[],modViewZones:[]};const h=[],u=[],g=this._options.renderSideBySide.read(l),f=s.read(l);for(const p of f)if(!p.shouldHideControls(l)){{const _=He(this,b=>p.getHiddenOriginalRange(b).startLineNumber-1),v=new ry(_,24);h.push(v),d.add(new U3(this._editors.original,v,p,p.originalUnchangedRange,!g,c,b=>this._diffModel.get().ensureModifiedLineIsVisible(b,2,void 0),this._options))}{const _=He(this,b=>p.getHiddenModifiedRange(b).startLineNumber-1),v=new ry(_,24);u.push(v),d.add(new U3(this._editors.modified,v,p,p.modifiedUnchangedRange,!1,c,b=>this._diffModel.get().ensureModifiedLineIsVisible(b,2,void 0),this._options))}}return{origViewZones:h,modViewZones:u}});const r={description:"unchanged lines",className:"diff-unchanged-lines",isWholeLine:!0},a={description:"Fold Unchanged",glyphMarginHoverMessage:new Un(void 0,{isTrusted:!0,supportThemeIcons:!0}).appendMarkdown(m("foldUnchanged","Fold Unchanged Region")),glyphMarginClassName:"fold-unchanged "+Te.asClassName(oe.fold),zIndex:10001};this._register(oy(this._editors.original,He(this,l=>{const d=s.read(l),c=d.map(h=>({range:h.originalUnchangedRange.toInclusiveRange(),options:r}));for(const h of d)h.shouldHideControls(l)&&c.push({range:x.fromPositions(new F(h.originalLineNumber,1)),options:a});return c}))),this._register(oy(this._editors.modified,He(this,l=>{const d=s.read(l),c=d.map(h=>({range:h.modifiedUnchangedRange.toInclusiveRange(),options:r}));for(const h of d)h.shouldHideControls(l)&&c.push({range:Ge.ofLength(h.modifiedLineNumber,1).toInclusiveRange(),options:a});return c}))),this._register(Xe(l=>{const d=s.read(l);this._isUpdatingHiddenAreas=!0;try{this._editors.original.setHiddenAreas(d.map(c=>c.getHiddenOriginalRange(l).toInclusiveRange()).filter(xl)),this._editors.modified.setHiddenAreas(d.map(c=>c.getHiddenModifiedRange(l).toInclusiveRange()).filter(xl))}finally{this._isUpdatingHiddenAreas=!1}})),this._register(this._editors.modified.onMouseUp(l=>{var d;if(!l.event.rightButton&&l.target.position&&(!((d=l.target.element)===null||d===void 0)&&d.className.includes("fold-unchanged"))){const c=l.target.position.lineNumber,h=this._diffModel.get();if(!h)return;const u=h.unchangedRegions.get().find(g=>g.modifiedUnchangedRange.includes(c));if(!u)return;u.collapseAll(void 0),l.event.stopPropagation(),l.event.preventDefault()}})),this._register(this._editors.original.onMouseUp(l=>{var d;if(!l.event.rightButton&&l.target.position&&(!((d=l.target.element)===null||d===void 0)&&d.className.includes("fold-unchanged"))){const c=l.target.position.lineNumber,h=this._diffModel.get();if(!h)return;const u=h.unchangedRegions.get().find(g=>g.originalUnchangedRange.includes(c));if(!u)return;u.collapseAll(void 0),l.event.stopPropagation(),l.event.preventDefault()}}))}};Vb._breadcrumbsSourceFactory=ut("breadcrumbsSourceFactory",void 0);Vb=qT=tue([iue(3,Le)],Vb);class U3 extends $H{constructor(e,t,i,n,s,r,a,l){const d=bt("div.diff-hidden-lines-widget");super(e,t,d.root),this._editor=e,this._unchangedRegion=i,this._unchangedRegionRange=n,this._hide=s,this._modifiedOutlineSource=r,this._revealModifiedHiddenLine=a,this._options=l,this._nodes=bt("div.diff-hidden-lines",[bt("div.top@top",{title:m("diff.hiddenLines.top","Click or drag to show more above")}),bt("div.center@content",{style:{display:"flex"}},[bt("div@first",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0"}},[te("a",{title:m("showUnchangedRegion","Show Unchanged Region"),role:"button",onclick:()=>{this._unchangedRegion.showAll(void 0)}},...dh("$(unfold)"))]),bt("div@others",{style:{display:"flex",justifyContent:"center",alignItems:"center"}})]),bt("div.bottom@bottom",{title:m("diff.bottom","Click or drag to show more below"),role:"button"})]),d.root.appendChild(this._nodes.root);const c=Nt(this._editor.onDidLayoutChange,()=>this._editor.getLayoutInfo());this._hide?Dn(this._nodes.first):this._register(Nh(this._nodes.first,{width:c.map(u=>u.contentLeft)})),this._register(Xe(u=>{const g=this._unchangedRegion.visibleLineCountTop.read(u)+this._unchangedRegion.visibleLineCountBottom.read(u)===this._unchangedRegion.lineCount;this._nodes.bottom.classList.toggle("canMoveTop",!g),this._nodes.bottom.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(u)>0),this._nodes.top.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(u)>0),this._nodes.top.classList.toggle("canMoveBottom",!g);const f=this._unchangedRegion.isDragged.read(u),p=this._editor.getDomNode();p&&(p.classList.toggle("draggingUnchangedRegion",!!f),f==="top"?(p.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(u)>0),p.classList.toggle("canMoveBottom",!g)):f==="bottom"?(p.classList.toggle("canMoveTop",!g),p.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(u)>0)):(p.classList.toggle("canMoveTop",!1),p.classList.toggle("canMoveBottom",!1)))}));const h=this._editor;this._register(U(this._nodes.top,"mousedown",u=>{if(u.button!==0)return;this._nodes.top.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),u.preventDefault();const g=u.clientY;let f=!1;const p=this._unchangedRegion.visibleLineCountTop.get();this._unchangedRegion.isDragged.set("top",void 0);const _=De(this._nodes.top),v=U(_,"mousemove",C=>{const S=C.clientY-g;f=f||Math.abs(S)>2;const L=Math.round(S/h.getOption(67)),D=Math.max(0,Math.min(p+L,this._unchangedRegion.getMaxVisibleLineCountTop()));this._unchangedRegion.visibleLineCountTop.set(D,void 0)}),b=U(_,"mouseup",C=>{f||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),v.dispose(),b.dispose()})})),this._register(U(this._nodes.bottom,"mousedown",u=>{if(u.button!==0)return;this._nodes.bottom.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),u.preventDefault();const g=u.clientY;let f=!1;const p=this._unchangedRegion.visibleLineCountBottom.get();this._unchangedRegion.isDragged.set("bottom",void 0);const _=De(this._nodes.bottom),v=U(_,"mousemove",C=>{const S=C.clientY-g;f=f||Math.abs(S)>2;const L=Math.round(S/h.getOption(67)),D=Math.max(0,Math.min(p-L,this._unchangedRegion.getMaxVisibleLineCountBottom())),I=this._unchangedRegionRange.endLineNumberExclusive>h.getModel().getLineCount()?h.getContentHeight():h.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.visibleLineCountBottom.set(D,void 0);const T=this._unchangedRegionRange.endLineNumberExclusive>h.getModel().getLineCount()?h.getContentHeight():h.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);h.setScrollTop(h.getScrollTop()+(T-I))}),b=U(_,"mouseup",C=>{if(this._unchangedRegion.isDragged.set(void 0,void 0),!f){const w=h.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.showMoreBelow(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0);const S=h.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);h.setScrollTop(h.getScrollTop()+(S-w))}this._nodes.bottom.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),v.dispose(),b.dispose()})})),this._register(Xe(u=>{const g=[];if(!this._hide){const f=i.getHiddenModifiedRange(u).length,p=m("hiddenLines","{0} hidden lines",f),_=te("span",{title:m("diff.hiddenLines.expandAll","Double click to unfold")},p);_.addEventListener("dblclick",C=>{C.button===0&&(C.preventDefault(),this._unchangedRegion.showAll(void 0))}),g.push(_);const v=this._unchangedRegion.getHiddenModifiedRange(u),b=this._modifiedOutlineSource.getBreadcrumbItems(v,u);if(b.length>0){g.push(te("span",void 0,"  |  "));for(let C=0;C{this._revealModifiedHiddenLine(w.startLineNumber)}}}}Dn(this._nodes.others,...g)}))}}var nue=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sue=function(o,e){return function(t,i){e(t,i,o)}},Dr;let xg=Dr=class extends W{constructor(e,t,i,n,s,r,a){super(),this._editors=e,this._rootElement=t,this._diffModel=i,this._rootWidth=n,this._rootHeight=s,this._modifiedEditorLayoutInfo=r,this._themeService=a,this.width=Dr.ENTIRE_DIFF_OVERVIEW_WIDTH;const l=Nt(this._themeService.onDidColorThemeChange,()=>this._themeService.getColorTheme()),d=He(u=>{const g=l.read(u),f=g.getColor(tX)||(g.getColor(JQ)||GE).transparent(2),p=g.getColor(iX)||(g.getColor(eX)||ZE).transparent(2);return{insertColor:f,removeColor:p}}),c=Lt(document.createElement("div"));c.setClassName("diffViewport"),c.setPosition("absolute");const h=bt("div.diffOverview",{style:{position:"absolute",top:"0px",width:Dr.ENTIRE_DIFF_OVERVIEW_WIDTH+"px"}}).root;this._register(K_(h,c.domNode)),this._register(Si(h,ee.POINTER_DOWN,u=>{this._editors.modified.delegateVerticalScrollbarPointerDown(u)})),this._register(U(h,ee.MOUSE_WHEEL,u=>{this._editors.modified.delegateScrollFromMouseWheelEvent(u)},{passive:!1})),this._register(K_(this._rootElement,h)),this._register(hr((u,g)=>{const f=this._diffModel.read(u),p=this._editors.original.createOverviewRuler("original diffOverviewRuler");p&&(g.add(p),g.add(K_(h,p.getDomNode())));const _=this._editors.modified.createOverviewRuler("modified diffOverviewRuler");if(_&&(g.add(_),g.add(K_(h,_.getDomNode()))),!p||!_)return;const v=$n("viewZoneChanged",this._editors.original.onDidChangeViewZones),b=$n("viewZoneChanged",this._editors.modified.onDidChangeViewZones),C=$n("hiddenRangesChanged",this._editors.original.onDidChangeHiddenAreas),w=$n("hiddenRangesChanged",this._editors.modified.onDidChangeHiddenAreas);g.add(Xe(S=>{var L;v.read(S),b.read(S),C.read(S),w.read(S);const D=d.read(S),I=(L=f==null?void 0:f.diff.read(S))===null||L===void 0?void 0:L.mappings;function T(A,B,j){const X=j._getViewModel();return X?A.filter(pe=>pe.length>0).map(pe=>{const ye=X.coordinatesConverter.convertModelPositionToViewPosition(new F(pe.startLineNumber,1)),Ee=X.coordinatesConverter.convertModelPositionToViewPosition(new F(pe.endLineNumberExclusive,1)),fe=Ee.lineNumber-ye.lineNumber;return new k8(ye.lineNumber,Ee.lineNumber,fe,B.toString())}):[]}const V=T((I||[]).map(A=>A.lineRangeMapping.original),D.removeColor,this._editors.original),P=T((I||[]).map(A=>A.lineRangeMapping.modified),D.insertColor,this._editors.modified);p==null||p.setZones(V),_==null||_.setZones(P)})),g.add(Xe(S=>{const L=this._rootHeight.read(S),D=this._rootWidth.read(S),I=this._modifiedEditorLayoutInfo.read(S);if(I){const T=Dr.ENTIRE_DIFF_OVERVIEW_WIDTH-2*Dr.ONE_OVERVIEW_WIDTH;p.setLayout({top:0,height:L,right:T+Dr.ONE_OVERVIEW_WIDTH,width:Dr.ONE_OVERVIEW_WIDTH}),_.setLayout({top:0,height:L,right:0,width:Dr.ONE_OVERVIEW_WIDTH});const V=this._editors.modifiedScrollTop.read(S),P=this._editors.modifiedScrollHeight.read(S),A=this._editors.modified.getOption(103),B=new Qm(A.verticalHasArrows?A.arrowSize:0,A.verticalScrollbarSize,0,I.height,P,V);c.setTop(B.getSliderPosition()),c.setHeight(B.getSliderSize())}else c.setTop(0),c.setHeight(0);h.style.height=L+"px",h.style.left=D-Dr.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",c.setWidth(Dr.ENTIRE_DIFF_OVERVIEW_WIDTH)}))}))}};xg.ONE_OVERVIEW_WIDTH=15;xg.ENTIRE_DIFF_OVERVIEW_WIDTH=Dr.ONE_OVERVIEW_WIDTH*2;xg=Dr=nue([sue(6,Ji)],xg);const Ok=[];class oue extends W{constructor(e,t,i,n){super(),this._editors=e,this._diffModel=t,this._options=i,this._widget=n,this._selectedDiffs=He(this,s=>{const r=this._diffModel.read(s),a=r==null?void 0:r.diff.read(s);if(!a)return Ok;const l=this._editors.modifiedSelections.read(s);if(l.every(u=>u.isEmpty()))return Ok;const d=new Jo(l.map(u=>Ge.fromRangeInclusive(u))),h=a.mappings.filter(u=>u.lineRangeMapping.innerChanges&&d.intersects(u.lineRangeMapping.modified)).map(u=>({mapping:u,rangeMappings:u.lineRangeMapping.innerChanges.filter(g=>l.some(f=>x.areIntersecting(g.modifiedRange,f)))}));return h.length===0||h.every(u=>u.rangeMappings.length===0)?Ok:h}),this._register(hr((s,r)=>{if(!this._options.shouldRenderOldRevertArrows.read(s))return;const a=this._diffModel.read(s),l=a==null?void 0:a.diff.read(s);if(!a||!l||a.movedTextToCompare.read(s))return;const d=[],c=this._selectedDiffs.read(s),h=new Set(c.map(u=>u.mapping));if(c.length>0){const u=this._editors.modifiedSelections.read(s),g=r.add(new zb(u[u.length-1].positionLineNumber,this._widget,c.flatMap(f=>f.rangeMappings),!0));this._editors.modified.addGlyphMarginWidget(g),d.push(g)}for(const u of l.mappings)if(!h.has(u)&&!u.lineRangeMapping.modified.isEmpty&&u.lineRangeMapping.innerChanges){const g=r.add(new zb(u.lineRangeMapping.modified.startLineNumber,this._widget,u.lineRangeMapping,!1));this._editors.modified.addGlyphMarginWidget(g),d.push(g)}r.add(Ce(()=>{for(const u of d)this._editors.modified.removeGlyphMarginWidget(u)}))}))}}class zb extends W{getId(){return this._id}constructor(e,t,i,n){super(),this._lineNumber=e,this._widget=t,this._diffs=i,this._revertSelection=n,this._id=`revertButton${zb.counter++}`,this._domNode=bt("div.revertButton",{title:this._revertSelection?m("revertSelectedChanges","Revert Selected Changes"):m("revertChange","Revert Change")},[bg(oe.arrowRight)]).root,this._register(U(this._domNode,ee.MOUSE_DOWN,s=>{s.button!==2&&(s.stopPropagation(),s.preventDefault())})),this._register(U(this._domNode,ee.MOUSE_UP,s=>{s.stopPropagation(),s.preventDefault()})),this._register(U(this._domNode,ee.CLICK,s=>{this._diffs instanceof ps?this._widget.revert(this._diffs):this._widget.revertRangeMappings(this._diffs),s.stopPropagation(),s.preventDefault()}))}getDomNode(){return this._domNode}getPosition(){return{lane:Rl.Right,range:{startColumn:1,startLineNumber:this._lineNumber,endColumn:1,endLineNumber:this._lineNumber},zIndex:10001}}}zb.counter=0;function td(o,e,t){const i=o.bindTo(e);return BL({debugName:()=>`Set Context Key "${o.key}"`},n=>{i.set(t(n))})}function rue(o){return Ku.get(o)}class Ku{static get(e){let t=Ku._map.get(e);if(!t){t=new Ku(e),Ku._map.set(e,t);const i=e.onDidDispose(()=>{Ku._map.delete(e),i.dispose()})}return t}constructor(e){this.editor=e,this.model=Nt(this.editor.onDidChangeModel,()=>this.editor.getModel())}}Ku._map=new Map;var aue=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},$3=function(o,e){return function(t,i){e(t,i,o)}};let GT=class extends W{get onDidContentSizeChange(){return this._onDidContentSizeChange.event}constructor(e,t,i,n,s,r,a){super(),this.originalEditorElement=e,this.modifiedEditorElement=t,this._options=i,this._argCodeEditorWidgetOptions=n,this._createInnerEditor=s,this._instantiationService=r,this._keybindingService=a,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 O),this.modifiedScrollTop=Nt(this.modified.onDidScrollChange,()=>this.modified.getScrollTop()),this.modifiedScrollHeight=Nt(this.modified.onDidScrollChange,()=>this.modified.getScrollHeight()),this.modifiedModel=rue(this.modified).model,this.modifiedSelections=Nt(this.modified.onDidChangeCursorSelection,()=>{var l;return(l=this.modified.getSelections())!==null&&l!==void 0?l:[]}),this.modifiedCursor=wd({owner:this,equalsFn:F.equals},l=>{var d,c;return(c=(d=this.modifiedSelections.read(l)[0])===null||d===void 0?void 0:d.getPosition())!==null&&c!==void 0?c:new F(1,1)}),this.originalCursor=Nt(this.original.onDidChangeCursorPosition,()=>{var l;return(l=this.original.getPosition())!==null&&l!==void 0?l:new F(1,1)}),this._argCodeEditorWidgetOptions=null,this._register(q0({createEmptyChangeSummary:()=>({}),handleChange:(l,d)=>(l.didChange(i.editorOptions)&&Object.assign(d,l.change.changedOptions),!0)},(l,d)=>{i.editorOptions.read(l),this._options.renderSideBySide.read(l),this.modified.updateOptions(this._adjustOptionsForRightHandSide(l,d)),this.original.updateOptions(this._adjustOptionsForLeftHandSide(l,d))}))}_createLeftHandSideEditor(e,t){const i=this._adjustOptionsForLeftHandSide(void 0,e),n=this._constructInnerEditor(this._instantiationService,this.originalEditorElement,i,t);return n.setContextValue("isInDiffLeftEditor",!0),n}_createRightHandSideEditor(e,t){const i=this._adjustOptionsForRightHandSide(void 0,e),n=this._constructInnerEditor(this._instantiationService,this.modifiedEditorElement,i,t);return n.setContextValue("isInDiffRightEditor",!0),n}_constructInnerEditor(e,t,i,n){const s=this._createInnerEditor(e,t,i,n);return this._register(s.onDidContentSizeChange(r=>{const a=this.original.getContentWidth()+this.modified.getContentWidth()+xg.ENTIRE_DIFF_OVERVIEW_WIDTH,l=Math.max(this.modified.getContentHeight(),this.original.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:l,contentWidth:a,contentHeightChanged:r.contentHeightChanged,contentWidthChanged:r.contentWidthChanged})})),s}_adjustOptionsForLeftHandSide(e,t){const i=this._adjustOptionsForSubEditor(t);return this._options.renderSideBySide.get()?(i.unicodeHighlight=this._options.editorOptions.get().unicodeHighlight||{},i.wordWrapOverride1=this._options.diffWordWrap.get()):(i.wordWrapOverride1="off",i.wordWrapOverride2="off",i.stickyScroll={enabled:!1},i.unicodeHighlight={nonBasicASCII:!1,ambiguousCharacters:!1,invisibleCharacters:!1}),i.glyphMargin=this._options.renderSideBySide.get(),t.originalAriaLabel&&(i.ariaLabel=t.originalAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.readOnly=!this._options.originalEditable.get(),i.dropIntoEditor={enabled:!i.readOnly},i.extraEditorClassName="original-in-monaco-diff-editor",i}_adjustOptionsForRightHandSide(e,t){const i=this._adjustOptionsForSubEditor(t);return t.modifiedAriaLabel&&(i.ariaLabel=t.modifiedAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.wordWrapOverride1=this._options.diffWordWrap.get(),i.revealHorizontalRightPadding=Oa.revealHorizontalRightPadding.defaultValue+xg.ENTIRE_DIFF_OVERVIEW_WIDTH,i.scrollbar.verticalHasArrows=!1,i.extraEditorClassName="modified-in-monaco-diff-editor",i}_adjustOptionsForSubEditor(e){const t={...e,dimension:{height:0,width:0}};return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar={...t.scrollbar||{}},t.folding=!1,t.codeLens=this._options.diffCodeLens.get(),t.fixedOverflowWidgets=!0,t.minimap={...t.minimap||{}},t.minimap.enabled=!1,this._options.hideUnchangedRegions.get()?t.stickyScroll={enabled:!1}:t.stickyScroll=this._options.editorOptions.get().stickyScroll,t}_updateAriaLabel(e){var t;e||(e="");const i=m("diff-aria-navigation-tip"," use {0} to open the accessibility help.",(t=this._keybindingService.lookupKeybinding("editor.action.accessibilityHelp"))===null||t===void 0?void 0:t.getAriaLabel());return this._options.accessibilityVerbose.get()?e+i:e?e.replaceAll(i,""):""}};GT=aue([$3(5,Le),$3(6,St)],GT);class sx extends W{constructor(){super(...arguments),this._id=++sx.idCounter,this._onDidDispose=this._register(new O),this.onDidDispose=this._onDidDispose.event}getId(){return this.getEditorType()+":v2:"+this._id}getVisibleColumnFromPosition(e){return this._targetEditor.getVisibleColumnFromPosition(e)}getPosition(){return this._targetEditor.getPosition()}setPosition(e,t="api"){this._targetEditor.setPosition(e,t)}revealLine(e,t=0){this._targetEditor.revealLine(e,t)}revealLineInCenter(e,t=0){this._targetEditor.revealLineInCenter(e,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealLineInCenterIfOutsideViewport(e,t)}revealLineNearTop(e,t=0){this._targetEditor.revealLineNearTop(e,t)}revealPosition(e,t=0){this._targetEditor.revealPosition(e,t)}revealPositionInCenter(e,t=0){this._targetEditor.revealPositionInCenter(e,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealPositionInCenterIfOutsideViewport(e,t)}revealPositionNearTop(e,t=0){this._targetEditor.revealPositionNearTop(e,t)}getSelection(){return this._targetEditor.getSelection()}getSelections(){return this._targetEditor.getSelections()}setSelection(e,t="api"){this._targetEditor.setSelection(e,t)}setSelections(e,t="api"){this._targetEditor.setSelections(e,t)}revealLines(e,t,i=0){this._targetEditor.revealLines(e,t,i)}revealLinesInCenter(e,t,i=0){this._targetEditor.revealLinesInCenter(e,t,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._targetEditor.revealLinesInCenterIfOutsideViewport(e,t,i)}revealLinesNearTop(e,t,i=0){this._targetEditor.revealLinesNearTop(e,t,i)}revealRange(e,t=0,i=!1,n=!0){this._targetEditor.revealRange(e,t,i,n)}revealRangeInCenter(e,t=0){this._targetEditor.revealRangeInCenter(e,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealRangeInCenterIfOutsideViewport(e,t)}revealRangeNearTop(e,t=0){this._targetEditor.revealRangeNearTop(e,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._targetEditor.revealRangeNearTopIfOutsideViewport(e,t)}revealRangeAtTop(e,t=0){this._targetEditor.revealRangeAtTop(e,t)}getSupportedActions(){return this._targetEditor.getSupportedActions()}focus(){this._targetEditor.focus()}trigger(e,t,i){this._targetEditor.trigger(e,t,i)}createDecorationsCollection(e){return this._targetEditor.createDecorationsCollection(e)}changeDecorations(e){return this._targetEditor.changeDecorations(e)}}sx.idCounter=0;var lue=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},due=function(o,e){return function(t,i){e(t,i,o)}};let ZT=class{get editorOptions(){return this._options}constructor(e,t){this._accessibilityService=t,this._diffEditorWidth=ut(this,0),this._screenReaderMode=Nt(this._accessibilityService.onDidChangeScreenReaderOptimized,()=>this._accessibilityService.isScreenReaderOptimized()),this.couldShowInlineViewBecauseOfSize=He(this,n=>this._options.read(n).renderSideBySide&&this._diffEditorWidth.read(n)<=this._options.read(n).renderSideBySideInlineBreakpoint),this.renderOverviewRuler=He(this,n=>this._options.read(n).renderOverviewRuler),this.renderSideBySide=He(this,n=>this._options.read(n).renderSideBySide&&!(this._options.read(n).useInlineViewWhenSpaceIsLimited&&this.couldShowInlineViewBecauseOfSize.read(n)&&!this._screenReaderMode.read(n))),this.readOnly=He(this,n=>this._options.read(n).readOnly),this.shouldRenderOldRevertArrows=He(this,n=>!(!this._options.read(n).renderMarginRevertIcon||!this.renderSideBySide.read(n)||this.readOnly.read(n)||this.shouldRenderGutterMenu.read(n))),this.shouldRenderGutterMenu=He(this,n=>this._options.read(n).renderGutterMenu),this.renderIndicators=He(this,n=>this._options.read(n).renderIndicators),this.enableSplitViewResizing=He(this,n=>this._options.read(n).enableSplitViewResizing),this.splitViewDefaultRatio=He(this,n=>this._options.read(n).splitViewDefaultRatio),this.ignoreTrimWhitespace=He(this,n=>this._options.read(n).ignoreTrimWhitespace),this.maxComputationTimeMs=He(this,n=>this._options.read(n).maxComputationTime),this.showMoves=He(this,n=>this._options.read(n).experimental.showMoves&&this.renderSideBySide.read(n)),this.isInEmbeddedEditor=He(this,n=>this._options.read(n).isInEmbeddedEditor),this.diffWordWrap=He(this,n=>this._options.read(n).diffWordWrap),this.originalEditable=He(this,n=>this._options.read(n).originalEditable),this.diffCodeLens=He(this,n=>this._options.read(n).diffCodeLens),this.accessibilityVerbose=He(this,n=>this._options.read(n).accessibilityVerbose),this.diffAlgorithm=He(this,n=>this._options.read(n).diffAlgorithm),this.showEmptyDecorations=He(this,n=>this._options.read(n).experimental.showEmptyDecorations),this.onlyShowAccessibleDiffViewer=He(this,n=>this._options.read(n).onlyShowAccessibleDiffViewer),this.hideUnchangedRegions=He(this,n=>this._options.read(n).hideUnchangedRegions.enabled),this.hideUnchangedRegionsRevealLineCount=He(this,n=>this._options.read(n).hideUnchangedRegions.revealLineCount),this.hideUnchangedRegionsContextLineCount=He(this,n=>this._options.read(n).hideUnchangedRegions.contextLineCount),this.hideUnchangedRegionsMinimumLineCount=He(this,n=>this._options.read(n).hideUnchangedRegions.minimumLineCount);const i={...e,...j3(e,Wn)};this._options=ut(this,i)}updateOptions(e){const t=j3(e,this._options.get()),i={...this._options.get(),...e,...t};this._options.set(i,void 0,{changedOptions:e})}setWidth(e){this._diffEditorWidth.set(e,void 0)}};ZT=lue([due(1,ho)],ZT);function j3(o,e){var t,i,n,s,r,a,l,d;return{enableSplitViewResizing:ve(o.enableSplitViewResizing,e.enableSplitViewResizing),splitViewDefaultRatio:Q$(o.splitViewDefaultRatio,.5,.1,.9),renderSideBySide:ve(o.renderSideBySide,e.renderSideBySide),renderMarginRevertIcon:ve(o.renderMarginRevertIcon,e.renderMarginRevertIcon),maxComputationTime:bu(o.maxComputationTime,e.maxComputationTime,0,1073741824),maxFileSize:bu(o.maxFileSize,e.maxFileSize,0,1073741824),ignoreTrimWhitespace:ve(o.ignoreTrimWhitespace,e.ignoreTrimWhitespace),renderIndicators:ve(o.renderIndicators,e.renderIndicators),originalEditable:ve(o.originalEditable,e.originalEditable),diffCodeLens:ve(o.diffCodeLens,e.diffCodeLens),renderOverviewRuler:ve(o.renderOverviewRuler,e.renderOverviewRuler),diffWordWrap:Ci(o.diffWordWrap,e.diffWordWrap,["off","on","inherit"]),diffAlgorithm:Ci(o.diffAlgorithm,e.diffAlgorithm,["legacy","advanced"],{smart:"legacy",experimental:"advanced"}),accessibilityVerbose:ve(o.accessibilityVerbose,e.accessibilityVerbose),experimental:{showMoves:ve((t=o.experimental)===null||t===void 0?void 0:t.showMoves,e.experimental.showMoves),showEmptyDecorations:ve((i=o.experimental)===null||i===void 0?void 0:i.showEmptyDecorations,e.experimental.showEmptyDecorations)},hideUnchangedRegions:{enabled:ve((s=(n=o.hideUnchangedRegions)===null||n===void 0?void 0:n.enabled)!==null&&s!==void 0?s:(r=o.experimental)===null||r===void 0?void 0:r.collapseUnchangedRegions,e.hideUnchangedRegions.enabled),contextLineCount:bu((a=o.hideUnchangedRegions)===null||a===void 0?void 0:a.contextLineCount,e.hideUnchangedRegions.contextLineCount,0,1073741824),minimumLineCount:bu((l=o.hideUnchangedRegions)===null||l===void 0?void 0:l.minimumLineCount,e.hideUnchangedRegions.minimumLineCount,0,1073741824),revealLineCount:bu((d=o.hideUnchangedRegions)===null||d===void 0?void 0:d.revealLineCount,e.hideUnchangedRegions.revealLineCount,0,1073741824)},isInEmbeddedEditor:ve(o.isInEmbeddedEditor,e.isInEmbeddedEditor),onlyShowAccessibleDiffViewer:ve(o.onlyShowAccessibleDiffViewer,e.onlyShowAccessibleDiffViewer),renderSideBySideInlineBreakpoint:bu(o.renderSideBySideInlineBreakpoint,e.renderSideBySideInlineBreakpoint,0,1073741824),useInlineViewWhenSpaceIsLimited:ve(o.useInlineViewWhenSpaceIsLimited,e.useInlineViewWhenSpaceIsLimited),renderGutterMenu:ve(o.renderGutterMenu,e.renderGutterMenu)}}var cue=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},b_=function(o,e){return function(t,i){e(t,i,o)}};let ic=class extends sx{get onDidContentSizeChange(){return this._editors.onDidContentSizeChange}constructor(e,t,i,n,s,r,a,l){var d;super(),this._domElement=e,this._parentContextKeyService=n,this._parentInstantiationService=s,this._accessibilitySignalService=a,this._editorProgressService=l,this.elements=bt("div.monaco-diff-editor.side-by-side",{style:{position:"relative",height:"100%"}},[bt("div.editor.original@original",{style:{position:"absolute",height:"100%"}}),bt("div.editor.modified@modified",{style:{position:"absolute",height:"100%"}}),bt("div.accessibleDiffViewer@accessibleDiffViewer",{style:{position:"absolute",height:"100%"}})]),this._diffModel=ut(this,void 0),this._shouldDisposeDiffModel=!1,this.onDidChangeModel=ae.fromObservableLight(this._diffModel),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._domElement)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new V0([Me,this._contextKeyService]))),this._boundarySashes=ut(this,void 0),this._accessibleDiffViewerShouldBeVisible=ut(this,!1),this._accessibleDiffViewerVisible=He(this,S=>this._options.onlyShowAccessibleDiffViewer.read(S)?!0:this._accessibleDiffViewerShouldBeVisible.read(S)),this._movedBlocksLinesPart=ut(this,void 0),this._layoutInfo=He(this,S=>{var L,D,I,T,V;const P=this._rootSizeObserver.width.read(S),A=this._rootSizeObserver.height.read(S);this._rootSizeObserver.automaticLayout?this.elements.root.style.height="100%":this.elements.root.style.height=A+"px";const B=this._sash.read(S),j=this._gutter.read(S),X=(L=j==null?void 0:j.width.read(S))!==null&&L!==void 0?L:0,pe=(I=(D=this._overviewRulerPart.read(S))===null||D===void 0?void 0:D.width)!==null&&I!==void 0?I:0;let ye,Ee,fe,Ue,Ve;if(!!B){const ue=B.sashLeft.read(S),vi=(V=(T=this._movedBlocksLinesPart.read(S))===null||T===void 0?void 0:T.width.read(S))!==null&&V!==void 0?V:0;ye=0,Ee=ue-X-vi,Ve=ue-X,fe=ue,Ue=P-fe-pe}else Ve=0,ye=X,Ee=Math.max(5,this._editors.original.getLayoutInfo().decorationsLeft),fe=X+Ee,Ue=P-fe-pe;return this.elements.original.style.left=ye+"px",this.elements.original.style.width=Ee+"px",this._editors.original.layout({width:Ee,height:A},!0),j==null||j.layout(Ve),this.elements.modified.style.left=fe+"px",this.elements.modified.style.width=Ue+"px",this._editors.modified.layout({width:Ue,height:A},!0),{modifiedEditor:this._editors.modified.getLayoutInfo(),originalEditor:this._editors.original.getLayoutInfo()}}),this._diffValue=this._diffModel.map((S,L)=>S==null?void 0:S.diff.read(L)),this.onDidUpdateDiff=ae.fromObservableLight(this._diffValue),r.willCreateDiffEditor(),this._contextKeyService.createKey("isInDiffEditor",!0),this._domElement.appendChild(this.elements.root),this._register(Ce(()=>this._domElement.removeChild(this.elements.root))),this._rootSizeObserver=this._register(new UH(this.elements.root,t.dimension)),this._rootSizeObserver.setAutomaticLayout((d=t.automaticLayout)!==null&&d!==void 0?d:!1),this._options=this._instantiationService.createInstance(ZT,t),this._register(Xe(S=>{this._options.setWidth(this._rootSizeObserver.width.read(S))})),this._contextKeyService.createKey(E.isEmbeddedDiffEditor.key,!1),this._register(td(E.isEmbeddedDiffEditor,this._contextKeyService,S=>this._options.isInEmbeddedEditor.read(S))),this._register(td(E.comparingMovedCode,this._contextKeyService,S=>{var L;return!!(!((L=this._diffModel.read(S))===null||L===void 0)&&L.movedTextToCompare.read(S))})),this._register(td(E.diffEditorRenderSideBySideInlineBreakpointReached,this._contextKeyService,S=>this._options.couldShowInlineViewBecauseOfSize.read(S))),this._register(td(E.diffEditorInlineMode,this._contextKeyService,S=>!this._options.renderSideBySide.read(S))),this._register(td(E.hasChanges,this._contextKeyService,S=>{var L,D,I;return((I=(D=(L=this._diffModel.read(S))===null||L===void 0?void 0:L.diff.read(S))===null||D===void 0?void 0:D.mappings.length)!==null&&I!==void 0?I:0)>0})),this._editors=this._register(this._instantiationService.createInstance(GT,this.elements.original,this.elements.modified,this._options,i,(S,L,D,I)=>this._createInnerEditor(S,L,D,I))),this._register(td(E.diffEditorOriginalWritable,this._contextKeyService,S=>this._options.originalEditable.read(S))),this._register(td(E.diffEditorModifiedWritable,this._contextKeyService,S=>!this._options.readOnly.read(S))),this._register(td(E.diffEditorOriginalUri,this._contextKeyService,S=>{var L,D;return(D=(L=this._diffModel.read(S))===null||L===void 0?void 0:L.model.original.uri.toString())!==null&&D!==void 0?D:""})),this._register(td(E.diffEditorModifiedUri,this._contextKeyService,S=>{var L,D;return(D=(L=this._diffModel.read(S))===null||L===void 0?void 0:L.model.modified.uri.toString())!==null&&D!==void 0?D:""})),this._overviewRulerPart=il(this,S=>this._options.renderOverviewRuler.read(S)?this._instantiationService.createInstance(Ir(xg,S),this._editors,this.elements.root,this._diffModel,this._rootSizeObserver.width,this._rootSizeObserver.height,this._layoutInfo.map(L=>L.modifiedEditor)):void 0).recomputeInitiallyAndOnChange(this._store);const c={height:this._rootSizeObserver.height,width:this._rootSizeObserver.width.map((S,L)=>{var D,I;return S-((I=(D=this._overviewRulerPart.read(L))===null||D===void 0?void 0:D.width)!==null&&I!==void 0?I:0)})};this._sashLayout=new Uhe(this._options,c),this._sash=il(this,S=>{const L=this._options.renderSideBySide.read(S);return this.elements.root.classList.toggle("side-by-side",L),L?new KH(this.elements.root,c,this._options.enableSplitViewResizing,this._boundarySashes,this._sashLayout.sashLeft,()=>this._sashLayout.resetSash()):void 0}).recomputeInitiallyAndOnChange(this._store);const h=il(this,S=>this._instantiationService.createInstance(Ir(Vb,S),this._editors,this._diffModel,this._options)).recomputeInitiallyAndOnChange(this._store);il(this,S=>this._instantiationService.createInstance(Ir(zhe,S),this._editors,this._diffModel,this._options,this)).recomputeInitiallyAndOnChange(this._store);const u=new Set,g=new Set;let f=!1;const p=il(this,S=>this._instantiationService.createInstance(Ir($T,S),De(this._domElement),this._editors,this._diffModel,this._options,this,()=>f||h.get().isUpdatingHiddenAreas,u,g)).recomputeInitiallyAndOnChange(this._store),_=He(this,S=>{const L=p.read(S).viewZones.read(S).orig,D=h.read(S).viewZones.read(S).origViewZones;return L.concat(D)}),v=He(this,S=>{const L=p.read(S).viewZones.read(S).mod,D=h.read(S).viewZones.read(S).modViewZones;return L.concat(D)});this._register(ay(this._editors.original,_,S=>{f=S},u));let b;this._register(ay(this._editors.modified,v,S=>{f=S,f?b=Pa.capture(this._editors.modified):(b==null||b.restore(this._editors.modified),b=void 0)},g)),this._accessibleDiffViewer=il(this,S=>this._instantiationService.createInstance(Ir(Xc,S),this.elements.accessibleDiffViewer,this._accessibleDiffViewerVisible,(L,D)=>this._accessibleDiffViewerShouldBeVisible.set(L,D),this._options.onlyShowAccessibleDiffViewer.map(L=>!L),this._rootSizeObserver.width,this._rootSizeObserver.height,this._diffModel.map((L,D)=>{var I;return(I=L==null?void 0:L.diff.read(D))===null||I===void 0?void 0:I.mappings.map(T=>T.lineRangeMapping)}),new Ohe(this._editors))).recomputeInitiallyAndOnChange(this._store);const C=this._accessibleDiffViewerVisible.map(S=>S?"hidden":"visible");this._register(Nh(this.elements.modified,{visibility:C})),this._register(Nh(this.elements.original,{visibility:C})),this._createDiffEditorContributions(),r.addDiffEditor(this),this._gutter=il(this,S=>this._options.shouldRenderGutterMenu.read(S)?this._instantiationService.createInstance(Ir(jT,S),this.elements.root,this._diffModel,this._editors,this._options,this._sashLayout,this._boundarySashes):void 0),this._register(G0(this._layoutInfo)),il(this,S=>new(Ir(gh,S))(this.elements.root,this._diffModel,this._layoutInfo.map(L=>L.originalEditor),this._layoutInfo.map(L=>L.modifiedEditor),this._editors)).recomputeInitiallyAndOnChange(this._store,S=>{this._movedBlocksLinesPart.set(S,void 0)}),this._register(ae.runAndSubscribe(this._editors.modified.onDidChangeCursorPosition,S=>this._handleCursorPositionChange(S,!0))),this._register(ae.runAndSubscribe(this._editors.original.onDidChangeCursorPosition,S=>this._handleCursorPositionChange(S,!1)));const w=this._diffModel.map(this,(S,L)=>{if(S)return S.diff.read(L)===void 0&&!S.isDiffUpToDate.read(L)});this._register(hr((S,L)=>{if(w.read(S)===!0){const D=this._editorProgressService.show(!0,1e3);L.add(Ce(()=>D.done()))}})),this._register(Ce(()=>{var S;this._shouldDisposeDiffModel&&((S=this._diffModel.get())===null||S===void 0||S.dispose())})),this._register(hr((S,L)=>{L.add(new(Ir(oue,S))(this._editors,this._diffModel,this._options,this))}))}_createInnerEditor(e,t,i,n){return e.createInstance(Jm,t,i,n)}_createDiffEditorContributions(){const e=um.getDiffEditorContributions();for(const t of e)try{this._register(this._instantiationService.createInstance(t.ctor,this))}catch(i){ze(i)}}get _targetEditor(){return this._editors.modified}getEditorType(){return T0.IDiffEditor}layout(e){this._rootSizeObserver.observe(e)}hasTextFocus(){return this._editors.original.hasTextFocus()||this._editors.modified.hasTextFocus()}saveViewState(){var e;const t=this._editors.original.saveViewState(),i=this._editors.modified.saveViewState();return{original:t,modified:i,modelState:(e=this._diffModel.get())===null||e===void 0?void 0:e.serializeState()}}restoreViewState(e){var t;if(e&&e.original&&e.modified){const i=e;this._editors.original.restoreViewState(i.original),this._editors.modified.restoreViewState(i.modified),i.modelState&&((t=this._diffModel.get())===null||t===void 0||t.restoreSerializedState(i.modelState))}}handleInitialized(){this._editors.original.handleInitialized(),this._editors.modified.handleInitialized()}createViewModel(e){return this._instantiationService.createInstance(UT,e,this._options)}getModel(){var e,t;return(t=(e=this._diffModel.get())===null||e===void 0?void 0:e.model)!==null&&t!==void 0?t:null}setModel(e,t){!e&&this._diffModel.get()&&this._accessibleDiffViewer.get().close();const i=e?"model"in e?{model:e,shouldDispose:!1}:{model:this.createViewModel(e),shouldDispose:!0}:void 0;this._diffModel.get()!==(i==null?void 0:i.model)&&Db(t,n=>{var s;Nt.batchEventsGlobally(n,()=>{this._editors.original.setModel(i?i.model.model.original:null),this._editors.modified.setModel(i?i.model.model.modified:null)});const r=this._diffModel.get(),a=this._shouldDisposeDiffModel;this._shouldDisposeDiffModel=(s=i==null?void 0:i.shouldDispose)!==null&&s!==void 0?s:!1,this._diffModel.set(i==null?void 0:i.model,n),a&&(r==null||r.dispose())})}updateOptions(e){this._options.updateOptions(e)}getContainerDomNode(){return this._domElement}getOriginalEditor(){return this._editors.original}getModifiedEditor(){return this._editors.modified}getLineChanges(){var e;const t=(e=this._diffModel.get())===null||e===void 0?void 0:e.diff.get();return t?hue(t):null}revert(e){const t=this._diffModel.get();!t||!t.isDiffUpToDate.get()||this._editors.modified.executeEdits("diffEditor",[{range:e.modified.toExclusiveRange(),text:t.model.original.getValueInRange(e.original.toExclusiveRange())}])}revertRangeMappings(e){const t=this._diffModel.get();if(!t||!t.isDiffUpToDate.get())return;const i=e.map(n=>({range:n.modifiedRange,text:t.model.original.getValueInRange(n.originalRange)}));this._editors.modified.executeEdits("diffEditor",i)}_goTo(e){this._editors.modified.setPosition(new F(e.lineRangeMapping.modified.startLineNumber,1)),this._editors.modified.revealRangeInCenter(e.lineRangeMapping.modified.toExclusiveRange())}goToDiff(e){var t,i,n,s;const r=(i=(t=this._diffModel.get())===null||t===void 0?void 0:t.diff.get())===null||i===void 0?void 0:i.mappings;if(!r||r.length===0)return;const a=this._editors.modified.getPosition().lineNumber;let l;e==="next"?l=(n=r.find(d=>d.lineRangeMapping.modified.startLineNumber>a))!==null&&n!==void 0?n:r[0]:l=(s=Qv(r,d=>d.lineRangeMapping.modified.startLineNumber{var t;const i=(t=e.diff.get())===null||t===void 0?void 0:t.mappings;!i||i.length===0||this._goTo(i[0])})}accessibleDiffViewerNext(){this._accessibleDiffViewer.get().next()}accessibleDiffViewerPrev(){this._accessibleDiffViewer.get().prev()}async waitForDiff(){const e=this._diffModel.get();e&&await e.waitForDiff()}mapToOtherSide(){var e,t;const i=this._editors.modified.hasWidgetFocus(),n=i?this._editors.modified:this._editors.original,s=i?this._editors.original:this._editors.modified;let r;const a=n.getSelection();if(a){const l=(t=(e=this._diffModel.get())===null||e===void 0?void 0:e.diff.get())===null||t===void 0?void 0:t.mappings.map(d=>i?d.lineRangeMapping.flip():d.lineRangeMapping);if(l){const d=E3(a.getStartPosition(),l),c=E3(a.getEndPosition(),l);r=x.plusRange(d,c)}}return{destination:s,destinationSelection:r}}switchSide(){const{destination:e,destinationSelection:t}=this.mapToOtherSide();e.focus(),t&&e.setSelection(t)}exitCompareMove(){const e=this._diffModel.get();e&&e.movedTextToCompare.set(void 0,void 0)}collapseAllUnchangedRegions(){var e;const t=(e=this._diffModel.get())===null||e===void 0?void 0:e.unchangedRegions.get();t&&Wt(i=>{for(const n of t)n.collapseAll(i)})}showAllUnchangedRegions(){var e;const t=(e=this._diffModel.get())===null||e===void 0?void 0:e.unchangedRegions.get();t&&Wt(i=>{for(const n of t)n.showAll(i)})}_handleCursorPositionChange(e,t){var i,n;if((e==null?void 0:e.reason)===3){const s=(n=(i=this._diffModel.get())===null||i===void 0?void 0:i.diff.get())===null||n===void 0?void 0:n.mappings.find(r=>t?r.lineRangeMapping.modified.contains(e.position.lineNumber):r.lineRangeMapping.original.contains(e.position.lineNumber));s!=null&&s.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(Be.diffLineDeleted,{source:"diffEditor.cursorPositionChanged"}):s!=null&&s.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(Be.diffLineInserted,{source:"diffEditor.cursorPositionChanged"}):s&&this._accessibilitySignalService.playSignal(Be.diffLineModified,{source:"diffEditor.cursorPositionChanged"})}}};ic=cue([b_(3,Me),b_(4,Le),b_(5,_t),b_(6,Qh),b_(7,Zh)],ic);function hue(o){return o.mappings.map(e=>{const t=e.lineRangeMapping;let i,n,s,r,a=t.innerChanges;return t.original.isEmpty?(i=t.original.startLineNumber-1,n=0,a=void 0):(i=t.original.startLineNumber,n=t.original.endLineNumberExclusive-1),t.modified.isEmpty?(s=t.modified.startLineNumber-1,r=0,a=void 0):(s=t.modified.startLineNumber,r=t.modified.endLineNumberExclusive-1),{originalStartLineNumber:i,originalEndLineNumber:n,modifiedStartLineNumber:s,modifiedEndLineNumber:r,charChanges:a==null?void 0:a.map(l=>({originalStartLineNumber:l.originalRange.startLineNumber,originalStartColumn:l.originalRange.startColumn,originalEndLineNumber:l.originalRange.endLineNumber,originalEndColumn:l.originalRange.endColumn,modifiedStartLineNumber:l.modifiedRange.startLineNumber,modifiedStartColumn:l.modifiedRange.startColumn,modifiedEndLineNumber:l.modifiedRange.endLineNumber,modifiedEndColumn:l.modifiedRange.endColumn}))}})}var uP=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Kt=function(o,e){return function(t,i){e(t,i,o)}};let uue=0,K3=!1;function gue(o){if(!o){if(K3)return;K3=!0}yQ(o||Mt.document.body)}let cy=class extends Jm{constructor(e,t,i,n,s,r,a,l,d,c,h,u,g){const f={...t};f.ariaLabel=f.ariaLabel||TS.editorViewAccessibleLabel,f.ariaLabel=f.ariaLabel+";"+TS.accessibilityHelpMessage,super(e,f,{},i,n,s,r,d,c,h,u,g),l instanceof hp?this._standaloneKeybindingService=l:this._standaloneKeybindingService=null,gue(f.ariaContainerElement),gae((p,_)=>i.createInstance(ep,p,_,{})),fae(a)}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const n="DYNAMIC_"+ ++uue,s=K.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(n,e,t,s),n}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if(typeof e.id!="string"||typeof e.label!="string"||typeof e.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"),W.None;const t=e.id,i=e.label,n=K.and(K.equals("editorId",this.getId()),K.deserialize(e.precondition)),s=e.keybindings,r=K.and(n,K.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,l=e.contextMenuOrder||0,d=(g,...f)=>Promise.resolve(e.run(this,...f)),c=new G,h=this.getId()+":"+t;if(c.add(ct.registerCommand(h,d)),a){const g={command:{id:h,title:i},when:n,group:a,order:l};c.add(mn.appendMenuItem(k.EditorContext,g))}if(Array.isArray(s))for(const g of s)c.add(this._standaloneKeybindingService.addDynamicKeybinding(h,g,d,r));const u=new E8(h,i,i,void 0,n,(...g)=>Promise.resolve(e.run(this,...g)),this._contextKeyService);return this._actions.set(t,u),c.add(Ce(()=>{this._actions.delete(t)})),c}_triggerCommand(e,t){if(this._codeEditorService instanceof wS)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};cy=uP([Kt(2,Le),Kt(3,_t),Kt(4,Qt),Kt(5,Me),Kt(6,Gl),Kt(7,St),Kt(8,Ji),Kt(9,Ri),Kt(10,ho),Kt(11,$t),Kt(12,me)],cy);let YT=class extends cy{constructor(e,t,i,n,s,r,a,l,d,c,h,u,g,f,p,_){const v={...t};sy(h,v,!1);const b=d.registerEditorContainer(e);typeof v.theme=="string"&&d.setTheme(v.theme),typeof v.autoDetectHighContrast<"u"&&d.setAutoDetectHighContrast(!!v.autoDetectHighContrast);const C=v.model;delete v.model,super(e,v,i,n,s,r,a,l,d,c,u,p,_),this._configurationService=h,this._standaloneThemeService=d,this._register(b);let w;if(typeof C>"u"){const S=f.getLanguageIdByMimeType(v.language)||v.language||Ao;w=JH(g,f,v.value||"",S,void 0),this._ownsModel=!0}else w=C,this._ownsModel=!1;if(this._attachModel(w),w){const S={oldModelUrl:null,newModelUrl:w.uri};this._onDidChangeModel.fire(S)}}dispose(){super.dispose()}updateOptions(e){sy(this._configurationService,e,!1),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};YT=uP([Kt(2,Le),Kt(3,_t),Kt(4,Qt),Kt(5,Me),Kt(6,Gl),Kt(7,St),Kt(8,jo),Kt(9,Ri),Kt(10,Je),Kt(11,ho),Kt(12,ai),Kt(13,si),Kt(14,$t),Kt(15,me)],YT);let QT=class extends ic{constructor(e,t,i,n,s,r,a,l,d,c,h,u){const g={...t};sy(l,g,!0);const f=r.registerEditorContainer(e);typeof g.theme=="string"&&r.setTheme(g.theme),typeof g.autoDetectHighContrast<"u"&&r.setAutoDetectHighContrast(!!g.autoDetectHighContrast),super(e,g,{},n,i,s,u,c),this._configurationService=l,this._standaloneThemeService=r,this._register(f)}dispose(){super.dispose()}updateOptions(e){sy(this._configurationService,e,!0),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(cy,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};QT=uP([Kt(2,Le),Kt(3,Me),Kt(4,_t),Kt(5,jo),Kt(6,Ri),Kt(7,Je),Kt(8,go),Kt(9,Zh),Kt(10,uc),Kt(11,Qh)],QT);function JH(o,e,t,i,n){if(t=t||"",!i){const s=t.indexOf(` +`);let r=t;return s!==-1&&(r=t.substring(0,s)),q3(o,t,e.createByFilepathOrFirstLine(n||null,r),n)}return q3(o,t,e.createById(i),n)}function q3(o,e,t,i){return o.createModel(e,t,i)}var fue=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},mue=function(o,e){return function(t,i){e(t,i,o)}};class pue{constructor(e,t){this.viewModel=e,this.deltaScrollVertical=t}getId(){return this.viewModel}}let hy=class extends W{constructor(e,t,i,n){super(),this._container=e,this._overflowWidgetsDomNode=t,this._workbenchUIElementFactory=i,this._instantiationService=n,this._viewModel=ut(this,void 0),this._collapsed=He(this,r=>{var a;return(a=this._viewModel.read(r))===null||a===void 0?void 0:a.collapsed.read(r)}),this._editorContentHeight=ut(this,500),this.contentHeight=He(this,r=>(this._collapsed.read(r)?0:this._editorContentHeight.read(r))+this._outerEditorHeight),this._modifiedContentWidth=ut(this,0),this._modifiedWidth=ut(this,0),this._originalContentWidth=ut(this,0),this._originalWidth=ut(this,0),this.maxScroll=He(this,r=>{const a=this._modifiedContentWidth.read(r)-this._modifiedWidth.read(r),l=this._originalContentWidth.read(r)-this._originalWidth.read(r);return a>l?{maxScroll:a,width:this._modifiedWidth.read(r)}:{maxScroll:l,width:this._originalWidth.read(r)}}),this._elements=bt("div.multiDiffEntry",[bt("div.header@header",[bt("div.header-content",[bt("div.collapse-button@collapseButton"),bt("div.file-path",[bt("div.title.modified.show-file-icons@primaryPath",[]),bt("div.status.deleted@status",["R"]),bt("div.title.original.show-file-icons@secondaryPath",[])]),bt("div.actions@actions")])]),bt("div.editorParent",[bt("div.editorContainer@editor")])]),this.editor=this._register(this._instantiationService.createInstance(ic,this._elements.editor,{overflowWidgetsDomNode:this._overflowWidgetsDomNode},{})),this.isModifedFocused=G3(this.editor.getModifiedEditor()),this.isOriginalFocused=G3(this.editor.getOriginalEditor()),this.isFocused=He(this,r=>this.isModifedFocused.read(r)||this.isOriginalFocused.read(r)),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 G,this._headerHeight=40,this._lastScrollTop=-1,this._isSettingScrollTop=!1;const s=new zS(this._elements.collapseButton,{});this._register(Xe(r=>{s.element.className="",s.icon=this._collapsed.read(r)?oe.chevronRight:oe.chevronDown})),this._register(s.onDidClick(()=>{var r;(r=this._viewModel.get())===null||r===void 0||r.collapsed.set(!this._collapsed.get(),void 0)})),this._register(Xe(r=>{this._elements.editor.style.display=this._collapsed.read(r)?"none":"block"})),this._register(this.editor.getModifiedEditor().onDidLayoutChange(r=>{const a=this.editor.getModifiedEditor().getLayoutInfo().contentWidth;this._modifiedWidth.set(a,void 0)})),this._register(this.editor.getOriginalEditor().onDidLayoutChange(r=>{const a=this.editor.getOriginalEditor().getLayoutInfo().contentWidth;this._originalWidth.set(a,void 0)})),this._register(this.editor.onDidContentSizeChange(r=>{gw(a=>{this._editorContentHeight.set(r.contentHeight,a),this._modifiedContentWidth.set(this.editor.getModifiedEditor().getContentWidth(),a),this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(),a)})})),this._register(this.editor.getOriginalEditor().onDidScrollChange(r=>{if(this._isSettingScrollTop||!r.scrollTopChanged||!this._data)return;const a=r.scrollTop-this._lastScrollTop;this._data.deltaScrollVertical(a)})),this._register(Xe(r=>{var a;const l=(a=this._viewModel.read(r))===null||a===void 0?void 0:a.isActive.read(r);this._elements.root.classList.toggle("active",l)})),this._container.appendChild(this._elements.root),this._outerEditorHeight=this._headerHeight,this._register(this._instantiationService.createInstance(dy,this._elements.actions,k.MultiDiffEditorFileToolbar,{actionRunner:this._register(new YH(()=>{var r;return(r=this._viewModel.get())===null||r===void 0?void 0:r.modifiedUri})),menuOptions:{shouldForwardArgs:!0},toolbarOptions:{primaryGroup:r=>r.startsWith("navigation")},actionViewItemProvider:(r,a)=>Z6(n,r,a)}))}setScrollLeft(e){this._modifiedContentWidth.get()-this._modifiedWidth.get()>this._originalContentWidth.get()-this._originalWidth.get()?this.editor.getModifiedEditor().setScrollLeft(e):this.editor.getOriginalEditor().setScrollLeft(e)}setData(e){this._data=e;function t(n){return{...n,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0},scrollbar:{vertical:"hidden",horizontal:"hidden",handleMouseWheel:!1,useShadows:!1},renderOverviewRuler:!1,fixedOverflowWidgets:!0,overviewRulerBorder:!1}}const i=e.viewModel.entry.value;i.onOptionsDidChange&&this._dataStore.add(i.onOptionsDidChange(()=>{var n;this.editor.updateOptions(t((n=i.options)!==null&&n!==void 0?n:{}))})),gw(n=>{var s,r,a,l;(s=this._resourceLabel)===null||s===void 0||s.setUri((r=e.viewModel.modifiedUri)!==null&&r!==void 0?r:e.viewModel.originalUri,{strikethrough:e.viewModel.modifiedUri===void 0});let d=!1,c=!1,h=!1,u="";e.viewModel.modifiedUri&&e.viewModel.originalUri&&e.viewModel.modifiedUri.path!==e.viewModel.originalUri.path?(u="R",d=!0):e.viewModel.modifiedUri?e.viewModel.originalUri||(u="A",h=!0):(u="D",c=!0),this._elements.status.classList.toggle("renamed",d),this._elements.status.classList.toggle("deleted",c),this._elements.status.classList.toggle("added",h),this._elements.status.innerText=u,(a=this._resourceLabel2)===null||a===void 0||a.setUri(d?e.viewModel.originalUri:void 0,{strikethrough:!0}),this._dataStore.clear(),this._viewModel.set(e.viewModel,n),this.editor.setModel(e.viewModel.diffEditorViewModel,n),this.editor.updateOptions(t((l=i.options)!==null&&l!==void 0?l:{}))})}render(e,t,i,n){this._elements.root.style.visibility="visible",this._elements.root.style.top=`${e.start}px`,this._elements.root.style.height=`${e.length}px`,this._elements.root.style.width=`${t}px`,this._elements.root.style.position="absolute";const s=e.length-this._headerHeight,r=Math.max(0,Math.min(n.start-e.start,s));this._elements.header.style.transform=`translateY(${r}px)`,gw(a=>{this.editor.layout({width:t-2*8-2*1,height:e.length-this._outerEditorHeight})});try{this._isSettingScrollTop=!0,this._lastScrollTop=i,this.editor.getOriginalEditor().setScrollTop(i)}finally{this._isSettingScrollTop=!1}this._elements.header.classList.toggle("shadow",r>0||i>0),this._elements.header.classList.toggle("collapsed",r===s)}hide(){this._elements.root.style.top="-100000px",this._elements.root.style.visibility="hidden"}};hy=fue([mue(3,Le)],hy);function G3(o){return Nt(e=>{const t=new G;return t.add(o.onDidFocusEditorWidget(()=>e(!0))),t.add(o.onDidBlurEditorWidget(()=>e(!1))),t},()=>o.hasTextFocus())}class _ue{constructor(e){this._create=e,this._unused=new Set,this._used=new Set,this._itemData=new Map}getUnusedObj(e){var t;let i;if(this._unused.size===0)i=this._create(e),this._itemData.set(i,e);else{const n=[...this._unused.values()];i=(t=n.find(s=>this._itemData.get(s).getId()===e.getId()))!==null&&t!==void 0?t:n[0],this._unused.delete(i),this._itemData.set(i,e),i.setData(e)}return this._used.add(i),{object:i,dispose:()=>{this._used.delete(i),this._unused.size>5?i.dispose():this._unused.add(i)}}}dispose(){for(const e of this._used)e.dispose();for(const e of this._unused)e.dispose();this._used.clear(),this._unused.clear()}}var vue=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Z3=function(o,e){return function(t,i){e(t,i,o)}};let XT=class extends W{constructor(e,t,i,n,s,r){super(),this._element=e,this._dimension=t,this._viewModel=i,this._workbenchUIElementFactory=n,this._parentContextKeyService=s,this._parentInstantiationService=r,this._scrollableElements=bt("div.scrollContent",[bt("div@content",{style:{overflow:"hidden"}}),bt("div.monaco-editor@overflowWidgetsDomNode",{})]),this._scrollable=this._register(new Ap({forceIntegerValues:!1,scheduleAtNextAnimationFrame:l=>ao(De(this._element),l),smoothScrollDuration:100})),this._scrollableElement=this._register(new _L(this._scrollableElements.root,{vertical:1,horizontal:1,useShadows:!1},this._scrollable)),this._elements=bt("div.monaco-component.multiDiffEditor",{},[bt("div",{},[this._scrollableElement.getDomNode()]),bt("div.placeholder@placeholder",{},[bt("div",[m("noChangedFiles","No Changed Files")])])]),this._sizeObserver=this._register(new UH(this._element,void 0)),this._objectPool=this._register(new _ue(l=>{const d=this._instantiationService.createInstance(hy,this._scrollableElements.content,this._scrollableElements.overflowWidgetsDomNode,this._workbenchUIElementFactory);return d.setData(l),d})),this.scrollTop=Nt(this._scrollableElement.onScroll,()=>this._scrollableElement.getScrollPosition().scrollTop),this.scrollLeft=Nt(this._scrollableElement.onScroll,()=>this._scrollableElement.getScrollPosition().scrollLeft),this._viewItemsInfo=Zg(this,(l,d)=>{const c=this._viewModel.read(l);if(!c)return{items:[],getItem:f=>{throw new Tt}};const h=c.items.read(l),u=new Map;return{items:h.map(f=>{var p;const _=d.add(new bue(f,this._objectPool,this.scrollLeft,b=>{this._scrollableElement.setScrollPosition({scrollTop:this._scrollableElement.getScrollPosition().scrollTop+b})})),v=(p=this._lastDocStates)===null||p===void 0?void 0:p[_.getKey()];return v&&Wt(b=>{_.setViewState(v,b)}),u.set(f,_),_}),getItem:f=>u.get(f)}}),this._viewItems=this._viewItemsInfo.map(this,l=>l.items),this._spaceBetweenPx=0,this._totalHeight=this._viewItems.map(this,(l,d)=>l.reduce((c,h)=>c+h.contentHeight.read(d)+this._spaceBetweenPx,0)),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._element)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new V0([Me,this._contextKeyService]))),this._lastDocStates={},this._contextKeyService.createKey(E.inMultiDiffEditor.key,!0),this._register(hr((l,d)=>{const c=this._viewModel.read(l);if(c&&c.contextKeys)for(const[h,u]of Object.entries(c.contextKeys)){const g=this._contextKeyService.createKey(h,void 0);g.set(u),d.add(Ce(()=>g.reset()))}}));const a=this._parentContextKeyService.createKey(E.multiDiffEditorAllCollapsed.key,!1);this._register(Xe(l=>{const d=this._viewModel.read(l);if(d){const c=d.items.read(l).every(h=>h.collapsed.read(l));a.set(c)}})),this._register(Xe(l=>{const d=this._dimension.read(l);this._sizeObserver.observe(d)})),this._register(Xe(l=>{const d=this._viewItems.read(l);this._elements.placeholder.classList.toggle("visible",d.length===0)})),this._scrollableElements.content.style.position="relative",this._register(Xe(l=>{const d=this._sizeObserver.height.read(l);this._scrollableElements.root.style.height=`${d}px`;const c=this._totalHeight.read(l);this._scrollableElements.content.style.height=`${c}px`;const h=this._sizeObserver.width.read(l);let u=h;const g=this._viewItems.read(l),f=IA(g,zs(p=>p.maxScroll.read(l).maxScroll,Br));if(f){const p=f.maxScroll.read(l);u=h+p.maxScroll}this._scrollableElement.setScrollDimensions({width:h,height:d,scrollHeight:c,scrollWidth:u})})),e.replaceChildren(this._elements.root),this._register(Ce(()=>{e.replaceChildren()})),this._register(this._register(Xe(l=>{gw(d=>{this.render(l)})})))}render(e){const t=this.scrollTop.read(e);let i=0,n=0,s=0;const r=this._sizeObserver.height.read(e),a=Ze.ofStartAndLength(t,r),l=this._sizeObserver.width.read(e);for(const d of this._viewItems.read(e)){const c=d.contentHeight.read(e),h=Math.min(c,r),u=Ze.ofStartAndLength(n,h),g=Ze.ofStartAndLength(s,c);if(g.isBefore(a))i-=c-h,d.hide();else if(g.isAfter(a))d.hide();else{const f=Math.max(0,Math.min(a.start-g.start,c-h));i-=f;const p=Ze.ofStartAndLength(t+i,r);d.render(u,f,l,p)}n+=h+this._spaceBetweenPx,s+=c+this._spaceBetweenPx}this._scrollableElements.content.style.transform=`translateY(${-(t+i)}px)`}};XT=vue([Z3(4,Me),Z3(5,Le)],XT);class bue extends W{constructor(e,t,i,n){super(),this.viewModel=e,this._objectPool=t,this._scrollLeft=i,this._deltaScrollVertical=n,this._templateRef=this._register(kb(this,void 0)),this.contentHeight=He(this,s=>{var r,a,l;return(l=(a=(r=this._templateRef.read(s))===null||r===void 0?void 0:r.object.contentHeight)===null||a===void 0?void 0:a.read(s))!==null&&l!==void 0?l:this.viewModel.lastTemplateData.read(s).contentHeight}),this.maxScroll=He(this,s=>{var r,a;return(a=(r=this._templateRef.read(s))===null||r===void 0?void 0:r.object.maxScroll.read(s))!==null&&a!==void 0?a:{maxScroll:0,scrollWidth:0}}),this.template=He(this,s=>{var r;return(r=this._templateRef.read(s))===null||r===void 0?void 0:r.object}),this._isHidden=ut(this,!1),this._isFocused=He(this,s=>{var r,a;return(a=(r=this.template.read(s))===null||r===void 0?void 0:r.isFocused.read(s))!==null&&a!==void 0?a:!1}),this.viewModel.setIsFocused(this._isFocused,void 0),this._register(Xe(s=>{var r;const a=this._scrollLeft.read(s);(r=this._templateRef.read(s))===null||r===void 0||r.object.setScrollLeft(a)})),this._register(Xe(s=>{const r=this._templateRef.read(s);!r||!this._isHidden.read(s)||r.object.isFocused.read(s)||this._clear()}))}dispose(){this._clear(),super.dispose()}toString(){var e;return`VirtualViewItem(${(e=this.viewModel.entry.value.modified)===null||e===void 0?void 0:e.uri.toString()})`}getKey(){return this.viewModel.getKey()}setViewState(e,t){var i;this.viewModel.collapsed.set(e.collapsed,t),this._updateTemplateData(t);const n=this.viewModel.lastTemplateData.get(),s=(i=e.selections)===null||i===void 0?void 0:i.map(_e.liftSelection);this.viewModel.lastTemplateData.set({...n,selections:s},t);const r=this._templateRef.get();r&&s&&r.object.editor.setSelections(s)}_updateTemplateData(e){var t;const i=this._templateRef.get();i&&this.viewModel.lastTemplateData.set({contentHeight:i.object.contentHeight.get(),selections:(t=i.object.editor.getSelections())!==null&&t!==void 0?t:void 0},e)}_clear(){const e=this._templateRef.get();e&&Wt(t=>{this._updateTemplateData(t),e.object.hide(),this._templateRef.set(void 0,t)})}hide(){this._isHidden.set(!0,void 0)}render(e,t,i,n){this._isHidden.set(!1,void 0);let s=this._templateRef.get();if(!s){s=this._objectPool.getUnusedObj(new pue(this.viewModel,this._deltaScrollVertical)),this._templateRef.set(s,void 0);const r=this.viewModel.lastTemplateData.get().selections;r&&s.object.editor.setSelections(r)}s.object.render(e,i,t,n)}}N("multiDiffEditor.headerBackground",{dark:"#262626",light:"tab.inactiveBackground",hcDark:"tab.inactiveBackground",hcLight:"tab.inactiveBackground"},m("multiDiffEditor.headerBackground","The background color of the diff editor's header"));N("multiDiffEditor.background",{dark:"editorBackground",light:"editorBackground",hcDark:"editorBackground",hcLight:"editorBackground"},m("multiDiffEditor.background","The background color of the multi file diff editor"));N("multiDiffEditor.border",{dark:"sideBarSectionHeader.border",light:"#cccccc",hcDark:"sideBarSectionHeader.border",hcLight:"#cccccc"},m("multiDiffEditor.border","The border color of the multi file diff editor"));var Cue=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},wue=function(o,e){return function(t,i){e(t,i,o)}};let JT=class extends W{constructor(e,t,i){super(),this._element=e,this._workbenchUIElementFactory=t,this._instantiationService=i,this._dimension=ut(this,void 0),this._viewModel=ut(this,void 0),this._widgetImpl=Zg(this,(n,s)=>(Ir(hy,n),s.add(this._instantiationService.createInstance(Ir(XT,n),this._element,this._dimension,this._viewModel,this._workbenchUIElementFactory)))),this._register(G0(this._widgetImpl))}};JT=Cue([wue(2,Le)],JT);function Sue(o,e,t){return Ae.initialize(t||{}).createInstance(YT,o,e)}function yue(o){return Ae.get(_t).onCodeEditorAdd(t=>{o(t)})}function Lue(o){return Ae.get(_t).onDiffEditorAdd(t=>{o(t)})}function xue(){return Ae.get(_t).listCodeEditors()}function Due(){return Ae.get(_t).listDiffEditors()}function kue(o,e,t){return Ae.initialize(t||{}).createInstance(QT,o,e)}function Iue(o,e){const t=Ae.initialize(e||{});return new JT(o,{},t)}function Eue(o){if(typeof o.id!="string"||typeof o.run!="function")throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return ct.registerCommand(o.id,o.run)}function Nue(o){if(typeof o.id!="string"||typeof o.label!="string"||typeof o.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const e=K.deserialize(o.precondition),t=(n,...s)=>Xi.runEditorCommand(n,s,e,(r,a,l)=>Promise.resolve(o.run(a,...l))),i=new G;if(i.add(ct.registerCommand(o.id,t)),o.contextMenuGroupId){const n={command:{id:o.id,title:o.label},when:e,group:o.contextMenuGroupId,order:o.contextMenuOrder||0};i.add(mn.appendMenuItem(k.EditorContext,n))}if(Array.isArray(o.keybindings)){const n=Ae.get(St);if(!(n instanceof hp))console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService");else{const s=K.and(e,K.deserialize(o.keybindingContext));i.add(n.addDynamicKeybindings(o.keybindings.map(r=>({keybinding:r,command:o.id,when:s}))))}}return i}function Tue(o){return eV([o])}function eV(o){const e=Ae.get(St);return e instanceof hp?e.addDynamicKeybindings(o.map(t=>({keybinding:t.keybinding,command:t.command,commandArgs:t.commandArgs,when:K.deserialize(t.when)}))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),W.None)}function Mue(o,e,t){const i=Ae.get(si),n=i.getLanguageIdByMimeType(e)||e;return JH(Ae.get(ai),i,o,n,t)}function Rue(o,e){const t=Ae.get(si),i=t.getLanguageIdByMimeType(e)||e||Ao;o.setLanguage(t.createById(i))}function Aue(o,e,t){o&&Ae.get(Zl).changeOne(e,o.uri,t)}function Pue(o){Ae.get(Zl).changeAll(o,[])}function Oue(o){return Ae.get(Zl).read(o)}function Fue(o){return Ae.get(Zl).onMarkerChanged(o)}function Bue(o){return Ae.get(ai).getModel(o)}function Wue(){return Ae.get(ai).getModels()}function Hue(o){return Ae.get(ai).onModelAdded(o)}function Vue(o){return Ae.get(ai).onModelRemoved(o)}function zue(o){return Ae.get(ai).onModelLanguageChanged(t=>{o({model:t.model,oldLanguage:t.oldLanguageId})})}function Uue(o){return ZY(Ae.get(ai),Ae.get($t),o)}function $ue(o,e){const t=Ae.get(si),i=Ae.get(jo);return OA.colorizeElement(i,t,o,e).then(()=>{i.registerEditorContainer(o)})}function jue(o,e,t){const i=Ae.get(si);return Ae.get(jo).registerEditorContainer(Mt.document.body),OA.colorize(i,o,e,t)}function Kue(o,e,t=4){return Ae.get(jo).registerEditorContainer(Mt.document.body),OA.colorizeModelLine(o,e,t)}function que(o){const e=gi.get(o);return e||{getInitialState:()=>$m,tokenize:(t,i,n)=>RA(o,n)}}function Gue(o,e){gi.getOrCreate(e);const t=que(e),i=$l(o),n=[];let s=t.getInitialState();for(let r=0,a=i.length;r{var s;if(!i)return null;const r=(s=t.options)===null||s===void 0?void 0:s.selection;let a;return r&&typeof r.endLineNumber=="number"&&typeof r.endColumn=="number"?a=r:r&&(a={lineNumber:r.startLineNumber,column:r.startColumn}),await o.openCodeEditor(i,t.resource,a)?i:null})}function tge(){return{create:Sue,getEditors:xue,getDiffEditors:Due,onDidCreateEditor:yue,onDidCreateDiffEditor:Lue,createDiffEditor:kue,addCommand:Eue,addEditorAction:Nue,addKeybindingRule:Tue,addKeybindingRules:eV,createModel:Mue,setModelLanguage:Rue,setModelMarkers:Aue,getModelMarkers:Oue,removeAllMarkers:Pue,onDidChangeMarkers:Fue,getModels:Wue,getModel:Bue,onDidCreateModel:Hue,onWillDisposeModel:Vue,onDidChangeModelLanguage:zue,createWebWorker:Uue,colorizeElement:$ue,colorize:jue,colorizeModelLine:Kue,tokenize:Gue,defineTheme:Zue,setTheme:Yue,remeasureFonts:Que,registerCommand:Xue,registerLinkOpener:Jue,registerEditorOpener:ege,AccessibilitySupport:kI,ContentWidgetPositionPreference:RI,CursorChangeReason:AI,DefaultEndOfLine:PI,EditorAutoIndentStrategy:FI,EditorOption:BI,EndOfLinePreference:WI,EndOfLineSequence:HI,MinimapPosition:QI,MinimapSectionHeaderStyle:XI,MouseTargetType:JI,OverlayWidgetPositionPreference:iE,OverviewRulerLane:nE,GlyphMarginLane:VI,RenderLineNumbersType:rE,RenderMinimap:aE,ScrollbarVisibility:dE,ScrollType:lE,TextEditorCursorBlinkingStyle:mE,TextEditorCursorStyle:pE,TrackedRangeStickiness:_E,WrappingIndent:vE,InjectedTextCursorStops:$I,PositionAffinity:oE,ShowLightbulbIconMode:hE,ConfigurationChangedEvent:t9,BareFontInfo:Yu,FontInfo:IE,TextModelResolvedOptions:ew,FindMatch:Yv,ApplyUpdateResult:tv,EditorZoom:Qo,createMultiFileDiffEditor:Iue,EditorType:T0,EditorOptions:Oa}}function ige(o,e){if(!e||!Array.isArray(e))return!1;for(const t of e)if(!o(t))return!1;return!0}function m1(o,e){return typeof o=="boolean"?o:e}function Y3(o,e){return typeof o=="string"?o:e}function nge(o){const e={};for(const t of o)e[t]=!0;return e}function Q3(o,e=!1){e&&(o=o.map(function(i){return i.toLowerCase()}));const t=nge(o);return e?function(i){return t[i.toLowerCase()]!==void 0&&t.hasOwnProperty(i.toLowerCase())}:function(i){return t[i]!==void 0&&t.hasOwnProperty(i)}}function eM(o,e,t){e=e.replace(/@@/g,"");let i=0,n;do n=!1,e=e.replace(/@(\w+)/g,function(r,a){n=!0;let l="";if(typeof o[a]=="string")l=o[a];else if(o[a]&&o[a]instanceof RegExp)l=o[a].source;else throw o[a]===void 0?Jt(o,"language definition does not contain attribute '"+a+"', used at: "+e):Jt(o,"attribute reference '"+a+"' must be a string, used at: "+e);return Nu(l)?"":"(?:"+l+")"}),i++;while(n&&i<5);e=e.replace(/\x01/g,"@");const s=(o.ignoreCase?"i":"")+(o.unicode?"u":"");if(t&&e.match(/\$[sS](\d\d?)/g)){let a=null,l=null;return d=>(l&&a===d||(a=d,l=new RegExp(mQ(o,e,d),s)),l)}return new RegExp(e,s)}function sge(o,e,t,i){if(i<0)return o;if(i=100){i=i-100;const n=t.split(".");if(n.unshift(t),i=0&&(i.tokenSubst=!0),typeof t.bracket=="string")if(t.bracket==="@open")i.bracket=1;else if(t.bracket==="@close")i.bracket=-1;else throw Jt(o,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+e);if(t.next){if(typeof t.next!="string")throw Jt(o,"the next state must be a string value in rule: "+e);{let n=t.next;if(!/^(@pop|@push|@popall)$/.test(n)&&(n[0]==="@"&&(n=n.substr(1)),n.indexOf("$")<0&&!pQ(o,Rc(o,n,"",[],""))))throw Jt(o,"the next state '"+t.next+"' is not defined in rule: "+e);i.next=n}}return typeof t.goBack=="number"&&(i.goBack=t.goBack),typeof t.switchTo=="string"&&(i.switchTo=t.switchTo),typeof t.log=="string"&&(i.log=t.log),typeof t.nextEmbedded=="string"&&(i.nextEmbedded=t.nextEmbedded,o.usesEmbedded=!0),i}}else if(Array.isArray(t)){const i=[];for(let n=0,s=t.length;n0&&i[0]==="^",this.name=this.name+": "+i,this.regex=eM(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")",!0)}setAction(e,t){this.action=tM(e,this.name,t)}resolveRegex(e){return this.regex instanceof RegExp?this.regex:this.regex(e)}}function tV(o,e){if(!e||typeof e!="object")throw new Error("Monarch: expecting a language definition object");const t={};t.languageId=o,t.includeLF=m1(e.includeLF,!1),t.noThrow=!1,t.maxStack=100,t.start=typeof e.start=="string"?e.start:null,t.ignoreCase=m1(e.ignoreCase,!1),t.unicode=m1(e.unicode,!1),t.tokenPostfix=Y3(e.tokenPostfix,"."+t.languageId),t.defaultToken=Y3(e.defaultToken,"source"),t.usesEmbedded=!1;const i=e;i.languageId=o,i.includeLF=t.includeLF,i.ignoreCase=t.ignoreCase,i.unicode=t.unicode,i.noThrow=t.noThrow,i.usesEmbedded=t.usesEmbedded,i.stateNames=e.tokenizer,i.defaultToken=t.defaultToken;function n(r,a,l){for(const d of l){let c=d.include;if(c){if(typeof c!="string")throw Jt(t,"an 'include' attribute must be a string at: "+r);if(c[0]==="@"&&(c=c.substr(1)),!e.tokenizer[c])throw Jt(t,"include target '"+c+"' is not defined at: "+r);n(r+"."+c,a,e.tokenizer[c])}else{const h=new rge(r);if(Array.isArray(d)&&d.length>=1&&d.length<=3)if(h.setRegex(i,d[0]),d.length>=3)if(typeof d[1]=="string")h.setAction(i,{token:d[1],next:d[2]});else if(typeof d[1]=="object"){const u=d[1];u.next=d[2],h.setAction(i,u)}else throw Jt(t,"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: "+r);else h.setAction(i,d[1]);else{if(!d.regex)throw Jt(t,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+r);d.name&&typeof d.name=="string"&&(h.name=d.name),d.matchOnlyAtStart&&(h.matchOnlyAtLineStart=m1(d.matchOnlyAtLineStart,!1)),h.setRegex(i,d.regex),h.setAction(i,d.action)}a.push(h)}}}if(!e.tokenizer||typeof e.tokenizer!="object")throw Jt(t,"a language definition must define the 'tokenizer' attribute as an object");t.tokenizer=[];for(const r in e.tokenizer)if(e.tokenizer.hasOwnProperty(r)){t.start||(t.start=r);const a=e.tokenizer[r];t.tokenizer[r]=new Array,n("tokenizer."+r,t.tokenizer[r],a)}if(t.usesEmbedded=i.usesEmbedded,e.brackets){if(!Array.isArray(e.brackets))throw Jt(t,"the 'brackets' attribute must be defined as an array")}else e.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const s=[];for(const r of e.brackets){let a=r;if(a&&Array.isArray(a)&&a.length===3&&(a={token:a[2],open:a[0],close:a[1]}),a.open===a.close)throw Jt(t,"open and close brackets in a 'brackets' attribute must be different: "+a.open+` + hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")s.push({token:a.token+t.tokenPostfix,open:Ud(t,a.open),close:Ud(t,a.close)});else throw Jt(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=s,t.noThrow=!0,t}function age(o){Vm.registerLanguage(o)}function lge(){let o=[];return o=o.concat(Vm.getLanguages()),o}function dge(o){return Ae.get(si).languageIdCodec.encodeLanguageId(o)}function cge(o,e){return Ae.withServices(()=>{const i=Ae.get(si).onDidRequestRichLanguageFeatures(n=>{n===o&&(i.dispose(),e())});return i})}function hge(o,e){return Ae.withServices(()=>{const i=Ae.get(si).onDidRequestBasicLanguageFeatures(n=>{n===o&&(i.dispose(),e())});return i})}function uge(o,e){if(!Ae.get(si).isRegisteredLanguageId(o))throw new Error(`Cannot set configuration for unknown language ${o}`);return Ae.get($t).register(o,e,100)}class gge{constructor(e,t){this._languageId=e,this._actual=t}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if(typeof this._actual.tokenize=="function")return Ub.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const n=this._actual.tokenizeEncoded(e,i);return new Uy(n.tokens,n.endState)}}class Ub{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=n}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let n=0;for(let s=0,r=e.length;s0&&s[r-1]===u)continue;let g=h.startIndex;d===0?g=0:g{const i=await Promise.resolve(e.create());return i?fge(i)?nV(o,i):new nb(Ae.get(si),Ae.get(jo),o,tV(o,i),Ae.get(Je)):null});return gi.registerFactory(o,t)}function _ge(o,e){if(!Ae.get(si).isRegisteredLanguageId(o))throw new Error(`Cannot set tokens provider for unknown language ${o}`);return iV(e)?gP(o,{create:()=>e}):gi.register(o,nV(o,e))}function vge(o,e){const t=i=>new nb(Ae.get(si),Ae.get(jo),o,tV(o,i),Ae.get(Je));return iV(e)?gP(o,{create:()=>e}):gi.register(o,t(e))}function bge(o,e){return Ae.get(me).referenceProvider.register(o,e)}function Cge(o,e){return Ae.get(me).renameProvider.register(o,e)}function wge(o,e){return Ae.get(me).newSymbolNamesProvider.register(o,e)}function Sge(o,e){return Ae.get(me).signatureHelpProvider.register(o,e)}function yge(o,e){return Ae.get(me).hoverProvider.register(o,{provideHover:async(i,n,s,r)=>{const a=i.getWordAtPosition(n);return Promise.resolve(e.provideHover(i,n,s,r)).then(l=>{if(l)return!l.range&&a&&(l.range=new x(n.lineNumber,a.startColumn,n.lineNumber,a.endColumn)),l.range||(l.range=new x(n.lineNumber,n.column,n.lineNumber,n.column)),l})}})}function Lge(o,e){return Ae.get(me).documentSymbolProvider.register(o,e)}function xge(o,e){return Ae.get(me).documentHighlightProvider.register(o,e)}function Dge(o,e){return Ae.get(me).linkedEditingRangeProvider.register(o,e)}function kge(o,e){return Ae.get(me).definitionProvider.register(o,e)}function Ige(o,e){return Ae.get(me).implementationProvider.register(o,e)}function Ege(o,e){return Ae.get(me).typeDefinitionProvider.register(o,e)}function Nge(o,e){return Ae.get(me).codeLensProvider.register(o,e)}function Tge(o,e,t){return Ae.get(me).codeActionProvider.register(o,{providedCodeActionKinds:t==null?void 0:t.providedCodeActionKinds,documentation:t==null?void 0:t.documentation,provideCodeActions:(n,s,r,a)=>{const d=Ae.get(Zl).read({resource:n.uri}).filter(c=>x.areIntersectingOrTouching(c,s));return e.provideCodeActions(n,s,{markers:d,only:r.only,trigger:r.trigger},a)},resolveCodeAction:e.resolveCodeAction})}function Mge(o,e){return Ae.get(me).documentFormattingEditProvider.register(o,e)}function Rge(o,e){return Ae.get(me).documentRangeFormattingEditProvider.register(o,e)}function Age(o,e){return Ae.get(me).onTypeFormattingEditProvider.register(o,e)}function Pge(o,e){return Ae.get(me).linkProvider.register(o,e)}function Oge(o,e){return Ae.get(me).completionProvider.register(o,e)}function Fge(o,e){return Ae.get(me).colorProvider.register(o,e)}function Bge(o,e){return Ae.get(me).foldingRangeProvider.register(o,e)}function Wge(o,e){return Ae.get(me).declarationProvider.register(o,e)}function Hge(o,e){return Ae.get(me).selectionRangeProvider.register(o,e)}function Vge(o,e){return Ae.get(me).documentSemanticTokensProvider.register(o,e)}function zge(o,e){return Ae.get(me).documentRangeSemanticTokensProvider.register(o,e)}function Uge(o,e){return Ae.get(me).inlineCompletionsProvider.register(o,e)}function $ge(o,e){return Ae.get(me).inlineEditProvider.register(o,e)}function jge(o,e){return Ae.get(me).inlayHintsProvider.register(o,e)}function Kge(){return{register:age,getLanguages:lge,onLanguage:cge,onLanguageEncountered:hge,getEncodedLanguageId:dge,setLanguageConfiguration:uge,setColorMap:pge,registerTokensProviderFactory:gP,setTokensProvider:_ge,setMonarchTokensProvider:vge,registerReferenceProvider:bge,registerRenameProvider:Cge,registerNewSymbolNameProvider:wge,registerCompletionItemProvider:Oge,registerSignatureHelpProvider:Sge,registerHoverProvider:yge,registerDocumentSymbolProvider:Lge,registerDocumentHighlightProvider:xge,registerLinkedEditingRangeProvider:Dge,registerDefinitionProvider:kge,registerImplementationProvider:Ige,registerTypeDefinitionProvider:Ege,registerCodeLensProvider:Nge,registerCodeActionProvider:Tge,registerDocumentFormattingEditProvider:Mge,registerDocumentRangeFormattingEditProvider:Rge,registerOnTypeFormattingEditProvider:Age,registerLinkProvider:Pge,registerColorProvider:Fge,registerFoldingRangeProvider:Bge,registerDeclarationProvider:Wge,registerSelectionRangeProvider:Hge,registerDocumentSemanticTokensProvider:Vge,registerDocumentRangeSemanticTokensProvider:zge,registerInlineCompletionsProvider:Uge,registerInlineEditProvider:$ge,registerInlayHintsProvider:jge,DocumentHighlightKind:OI,CompletionItemKind:NI,CompletionItemTag:TI,CompletionItemInsertTextRule:EI,SymbolKind:gE,SymbolTag:fE,IndentAction:UI,CompletionTriggerKind:MI,SignatureHelpTriggerKind:uE,InlayHintKind:jI,InlineCompletionTriggerKind:KI,InlineEditTriggerKind:qI,CodeActionTriggerType:II,NewSymbolNameTag:eE,NewSymbolNameTriggerKind:tE,PartialAcceptTriggerKind:sE,HoverVerbosityAction:zI,FoldingRangeKind:bs,SelectedSuggestionInfo:p9}}const fP=ot("IEditorCancelService"),sV=new de("cancellableOperation",!1,m("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));ht(fP,class{constructor(){this._tokens=new WeakMap}add(o,e){let t=this._tokens.get(o);t||(t=o.invokeWithinContext(n=>{const s=sV.bindTo(n.get(Me)),r=new vs;return{key:s,tokens:r}}),this._tokens.set(o,t));let i;return t.key.set(!0),i=t.tokens.push(e),()=>{i&&(i(),t.key.set(!t.tokens.isEmpty()),i=void 0)}}cancel(o){const e=this._tokens.get(o);if(!e)return;const t=e.tokens.pop();t&&(t.cancel(),e.key.set(!e.tokens.isEmpty()))}},1);class qge extends ci{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext(i=>i.get(fP).add(e,this))}dispose(){this._unregister(),super.dispose()}}le(new class extends Xi{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:sV})}runEditorCommand(o,e){o.get(fP).cancel(e)}});let oV=class iM{constructor(e,t){if(this.flags=t,this.flags&1){const i=e.getModel();this.modelVersionId=i?cg("{0}#{1}",i.uri.toString(),i.getVersionId()):null}else this.modelVersionId=null;this.flags&4?this.position=e.getPosition():this.position=null,this.flags&2?this.selection=e.getSelection():this.selection=null,this.flags&8?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof iM))return!1;const t=e;return!(this.modelVersionId!==t.modelVersionId||this.scrollLeft!==t.scrollLeft||this.scrollTop!==t.scrollTop||!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position)||!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))}validate(e){return this._equals(new iM(e,this.flags))}};class Th extends qge{constructor(e,t,i,n){super(e,n),this._listener=new G,t&4&&this._listener.add(e.onDidChangeCursorPosition(s=>{(!i||!x.containsPosition(i,s.position))&&this.cancel()})),t&2&&this._listener.add(e.onDidChangeCursorSelection(s=>{(!i||!x.containsRange(i,s.selection))&&this.cancel()})),t&8&&this._listener.add(e.onDidScrollChange(s=>this.cancel())),t&1&&(this._listener.add(e.onDidChangeModel(s=>this.cancel())),this._listener.add(e.onDidChangeModelContent(s=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}class mP extends ci{constructor(e,t){super(t),this._listener=e.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}function Vl(o){return o&&typeof o.getEditorType=="function"?o.getEditorType()===T0.ICodeEditor:!1}function pP(o){return o&&typeof o.getEditorType=="function"?o.getEditorType()===T0.IDiffEditor:!1}function Gge(o){return!!o&&typeof o=="object"&&typeof o.onDidChangeActiveEditor=="function"}function rV(o){return Vl(o)?o:pP(o)?o.getModifiedEditor():Gge(o)&&Vl(o.activeCodeEditor)?o.activeCodeEditor:null}class gp{static _handleEolEdits(e,t){let i;const n=[];for(const s of t)typeof s.eol=="number"&&(i=s.eol),s.range&&typeof s.text=="string"&&n.push(s);return typeof i=="number"&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,i){i&&e.pushUndoStop();const n=Pa.capture(e),s=gp._handleEolEdits(e,t);s.length===1&&gp._isFullModelReplaceEdit(e,s[0])?e.executeEdits("formatEditsCommand",s.map(r=>ri.replace(x.lift(r.range),r.text))):e.executeEdits("formatEditsCommand",s.map(r=>ri.replaceMove(x.lift(r.range),r.text))),i&&e.pushUndoStop(),n.restoreRelativeVerticalPositionOfCursor(e)}}class X3{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}class Zge{constructor(e){if(this._set=new Set,e)for(const t of e)this.add(t)}add(e){this._set.add(X3.toKey(e))}has(e){return this._set.has(X3.toKey(e))}}function aV(o,e,t){const i=[],n=new Zge,s=o.ordered(t);for(const a of s)i.push(a),a.extensionId&&n.add(a.extensionId);const r=e.ordered(t);for(const a of r){if(a.extensionId){if(n.has(a.extensionId))continue;n.add(a.extensionId)}i.push({displayName:a.displayName,extensionId:a.extensionId,provideDocumentFormattingEdits(l,d,c){return a.provideDocumentRangeFormattingEdits(l,l.getFullModelRange(),d,c)}})}return i}class Dg{static setFormatterSelector(e){return{dispose:Dg._selectors.unshift(e)}}static async select(e,t,i,n){if(e.length===0)return;const s=dt.first(Dg._selectors);if(s)return await s(e,t,i,n)}}Dg._selectors=new vs;async function lV(o,e,t,i,n,s,r){const a=o.get(Le),{documentRangeFormattingEditProvider:l}=o.get(me),d=Vl(e)?e.getModel():e,c=l.ordered(d),h=await Dg.select(c,d,i,2);h&&(n.report(h),await a.invokeFunction(Yge,h,e,t,s,r))}async function Yge(o,e,t,i,n,s){var r,a;const l=o.get(pr),d=o.get(qn),c=o.get(Qh);let h,u;Vl(t)?(h=t.getModel(),u=new Th(t,5,void 0,n)):(h=t,u=new mP(t,n));const g=[];let f=0;for(const C of jR(i).sort(x.compareRangesUsingStarts))f>0&&x.areIntersectingOrTouching(g[f-1],C)?g[f-1]=x.fromPositions(g[f-1].getStartPosition(),C.getEndPosition()):f=g.push(C);const p=async C=>{var w,S;d.trace("[format][provideDocumentRangeFormattingEdits] (request)",(w=e.extensionId)===null||w===void 0?void 0:w.value,C);const L=await e.provideDocumentRangeFormattingEdits(h,C,h.getFormattingOptions(),u.token)||[];return d.trace("[format][provideDocumentRangeFormattingEdits] (response)",(S=e.extensionId)===null||S===void 0?void 0:S.value,L),L},_=(C,w)=>{if(!C.length||!w.length)return!1;const S=C.reduce((L,D)=>x.plusRange(L,D.range),C[0].range);if(!w.some(L=>x.intersectRanges(S,L.range)))return!1;for(const L of C)for(const D of w)if(x.intersectRanges(L.range,D.range))return!0;return!1},v=[],b=[];try{if(typeof e.provideDocumentRangesFormattingEdits=="function"){d.trace("[format][provideDocumentRangeFormattingEdits] (request)",(r=e.extensionId)===null||r===void 0?void 0:r.value,g);const C=await e.provideDocumentRangesFormattingEdits(h,g,h.getFormattingOptions(),u.token)||[];d.trace("[format][provideDocumentRangeFormattingEdits] (response)",(a=e.extensionId)===null||a===void 0?void 0:a.value,C),b.push(C)}else{for(const C of g){if(u.token.isCancellationRequested)return!0;b.push(await p(C))}for(let C=0;C({text:S.text,range:x.lift(S.range),forceMoveMarkers:!0})),S=>{for(const{range:L}of S)if(x.areIntersectingOrTouching(L,w))return[new _e(L.startLineNumber,L.startColumn,L.endLineNumber,L.endColumn)];return null})}return c.playSignal(Be.format,{userGesture:s}),!0}async function Qge(o,e,t,i,n,s){const r=o.get(Le),a=o.get(me),l=Vl(e)?e.getModel():e,d=aV(a.documentFormattingEditProvider,a.documentRangeFormattingEditProvider,l),c=await Dg.select(d,l,t,1);c&&(i.report(c),await r.invokeFunction(Xge,c,e,t,n,s))}async function Xge(o,e,t,i,n,s){const r=o.get(pr),a=o.get(Qh);let l,d;Vl(t)?(l=t.getModel(),d=new Th(t,5,void 0,n)):(l=t,d=new mP(t,n));let c;try{const h=await e.provideDocumentFormattingEdits(l,l.getFormattingOptions(),d.token);if(c=await r.computeMoreMinimalEdits(l.uri,h),d.token.isCancellationRequested)return!0}finally{d.dispose()}if(!c||c.length===0)return!1;if(Vl(t))gp.execute(t,c,i!==2),i!==2&&t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1);else{const[{range:h}]=c,u=new _e(h.startLineNumber,h.startColumn,h.endLineNumber,h.endColumn);l.pushEditOperations([u],c.map(g=>({text:g.text,range:x.lift(g.range),forceMoveMarkers:!0})),g=>{for(const{range:f}of g)if(x.areIntersectingOrTouching(f,u))return[new _e(f.startLineNumber,f.startColumn,f.endLineNumber,f.endColumn)];return null})}return a.playSignal(Be.format,{userGesture:s}),!0}async function Jge(o,e,t,i,n,s){const r=e.documentRangeFormattingEditProvider.ordered(t);for(const a of r){const l=await Promise.resolve(a.provideDocumentRangeFormattingEdits(t,i,n,s)).catch(yi);if(jn(l))return await o.computeMoreMinimalEdits(t.uri,l)}}async function efe(o,e,t,i,n){const s=aV(e.documentFormattingEditProvider,e.documentRangeFormattingEditProvider,t);for(const r of s){const a=await Promise.resolve(r.provideDocumentFormattingEdits(t,i,n)).catch(yi);if(jn(a))return await o.computeMoreMinimalEdits(t.uri,a)}}function dV(o,e,t,i,n,s,r){const a=e.onTypeFormattingEditProvider.ordered(t);return a.length===0||a[0].autoFormatTriggerCharacters.indexOf(n)<0?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(t,i,n,s,r)).catch(yi).then(l=>o.computeMoreMinimalEdits(t.uri,l))}ct.registerCommand("_executeFormatRangeProvider",async function(o,...e){const[t,i,n]=e;pt(ke.isUri(t)),pt(x.isIRange(i));const s=o.get(Gs),r=o.get(pr),a=o.get(me),l=await s.createModelReference(t);try{return Jge(r,a,l.object.textEditorModel,x.lift(i),n,st.None)}finally{l.dispose()}});ct.registerCommand("_executeFormatDocumentProvider",async function(o,...e){const[t,i]=e;pt(ke.isUri(t));const n=o.get(Gs),s=o.get(pr),r=o.get(me),a=await n.createModelReference(t);try{return efe(s,r,a.object.textEditorModel,i,st.None)}finally{a.dispose()}});ct.registerCommand("_executeFormatOnTypeProvider",async function(o,...e){const[t,i,n,s]=e;pt(ke.isUri(t)),pt(F.isIPosition(i)),pt(typeof n=="string");const r=o.get(Gs),a=o.get(pr),l=o.get(me),d=await r.createModelReference(t);try{return dV(a,l,d.object.textEditorModel,F.lift(i),n,s,st.None)}finally{d.dispose()}});Oa.wrappingIndent.defaultValue=0;Oa.glyphMargin.defaultValue=!1;Oa.autoIndent.defaultValue=3;Oa.overviewRulerLanes.defaultValue=2;Dg.setFormatterSelector((o,e,t)=>Promise.resolve(o[0]));const Ms=_9();Ms.editor=tge();Ms.languages=Kge();const cV=Ms.CancellationTokenSource,hV=Ms.Emitter,uV=Ms.KeyCode,gV=Ms.KeyMod,fV=Ms.Position,mV=Ms.Range,pV=Ms.Selection,_V=Ms.SelectionDirection,vV=Ms.MarkerSeverity,bV=Ms.MarkerTag,CV=Ms.Uri,wV=Ms.Token,SV=Ms.editor,yV=Ms.languages,Fk=globalThis.MonacoEnvironment;(Fk!=null&&Fk.globalAPI||typeof define=="function"&&define.amd)&&(globalThis.monaco=Ms);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"]});const tC=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:cV,Emitter:hV,KeyCode:uV,KeyMod:gV,MarkerSeverity:vV,MarkerTag:bV,Position:fV,Range:mV,Selection:pV,SelectionDirection:_V,Token:wV,Uri:CV,editor:SV,languages:yV},Symbol.toStringTag,{value:"Module"}));/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var tfe=Object.defineProperty,ife=Object.getOwnPropertyDescriptor,nfe=Object.getOwnPropertyNames,sfe=Object.prototype.hasOwnProperty,J3=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of nfe(e))!sfe.call(o,n)&&n!==t&&tfe(o,n,{get:()=>e[n],enumerable:!(i=ife(e,n))||i.enumerable});return o},ofe=(o,e,t)=>(J3(o,e,"default"),t&&J3(t,e,"default")),q_={};ofe(q_,tC);var LV={},Bk={},rfe=class xV{static getOrCreate(e){return Bk[e]||(Bk[e]=new xV(e)),Bk[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,i)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,LV[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function xe(o){const e=o.id;LV[e]=o,q_.languages.register(o);const t=rfe.getOrCreate(e);q_.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),q_.languages.onLanguageEncountered(e,async()=>{const i=await t.load();q_.languages.setLanguageConfiguration(e,i.conf)})}xe({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>be(()=>import("./abap.uAUKeg2c.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>be(()=>import("./apex.jSQKvZ8Y.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>be(()=>import("./azcli.gOnLdVEG.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>be(()=>import("./bat.zRYP1KgU.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>be(()=>import("./bicep.A1xZkSbD.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>be(()=>import("./cameligo.YfysARWV.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>be(()=>import("./clojure.dMOcmuXu.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>be(()=>import("./coffee.l2qQMQgL.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>be(()=>import("./cpp.-lLEkhcQ.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>be(()=>import("./cpp.-lLEkhcQ.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>be(()=>import("./csharp.Yw2HXCjJ.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>be(()=>import("./csp.n9eLovdU.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>be(()=>import("./css.F0Srkxnx.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>be(()=>import("./cypher.igfi7Efk.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>be(()=>import("./dart.VIkb2XYT.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>be(()=>import("./dockerfile.QUT_nMy_.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>be(()=>import("./ecl._9m2JP4i.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>be(()=>import("./elixir.HACtswWO.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>be(()=>import("./flow9.MBufEOoR.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>be(()=>import("./fsharp._bo4G3ka.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>be(()=>import("./freemarker2.8iJLkHG2.js"),__vite__mapDeps([]),import.meta.url).then(o=>o.TagAutoInterpolationDollar)});xe({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>be(()=>import("./freemarker2.8iJLkHG2.js"),__vite__mapDeps([]),import.meta.url).then(o=>o.TagAngleInterpolationDollar)});xe({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>be(()=>import("./freemarker2.8iJLkHG2.js"),__vite__mapDeps([]),import.meta.url).then(o=>o.TagBracketInterpolationDollar)});xe({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>be(()=>import("./freemarker2.8iJLkHG2.js"),__vite__mapDeps([]),import.meta.url).then(o=>o.TagAngleInterpolationBracket)});xe({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>be(()=>import("./freemarker2.8iJLkHG2.js"),__vite__mapDeps([]),import.meta.url).then(o=>o.TagBracketInterpolationBracket)});xe({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>be(()=>import("./freemarker2.8iJLkHG2.js"),__vite__mapDeps([]),import.meta.url).then(o=>o.TagAutoInterpolationDollar)});xe({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>be(()=>import("./freemarker2.8iJLkHG2.js"),__vite__mapDeps([]),import.meta.url).then(o=>o.TagAutoInterpolationBracket)});xe({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>be(()=>import("./go.tLdo0wkN.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>be(()=>import("./graphql.y9N1IPUE.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>be(()=>import("./handlebars.ym0vFXfC.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>be(()=>import("./hcl.so4quyZJ.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>be(()=>import("./html.QzS8bPWm.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>be(()=>import("./ini.fP0BiIJa.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>be(()=>import("./java.TaV9TSzJ.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>be(()=>import("./javascript.nSubN90U.js"),__vite__mapDeps([0,1]),import.meta.url)});xe({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>be(()=>import("./julia.vR3wwAFW.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>be(()=>import("./kotlin.szYx7HIt.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>be(()=>import("./less.dU5gobSM.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>be(()=>import("./lexon.KVbeDWNK.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>be(()=>import("./lua.yQYSJvdl.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>be(()=>import("./liquid.VXUoiMh9.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>be(()=>import("./m3.9fpX4N4H.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>be(()=>import("./markdown.cMcvu1Qa.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>be(()=>import("./mdx.EI-PyRjS.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>be(()=>import("./mips.5cgP1-7s.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>be(()=>import("./msdax.68FeNZWU.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>be(()=>import("./mysql.YYLZMqU2.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>be(()=>import("./objective-c.cK3BxPhR.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>be(()=>import("./pascal.dA-N4_W9.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>be(()=>import("./pascaligo.txCi5xIR.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>be(()=>import("./perl.pPDDOAXa.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>be(()=>import("./pgsql.mHhZLAMX.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>be(()=>import("./php.hHL_2kp_.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"pla",extensions:[".pla"],loader:()=>be(()=>import("./pla.hC4n8AoX.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>be(()=>import("./postiats.pZAh034b.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>be(()=>import("./powerquery.UYX00GYd.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>be(()=>import("./powershell.xTmuV_ro.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>be(()=>import("./protobuf.CWi0Pjxk.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>be(()=>import("./pug.SAbAMZ1d.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>be(()=>import("./python._SdKoedN.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>be(()=>import("./qsharp.pM1AlKiJ.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>be(()=>import("./r.MmJZKjlR.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>be(()=>import("./razor.YVZhUREU.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>be(()=>import("./redis.FKkC1Cmr.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>be(()=>import("./redshift.DVyaNrB-.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>be(()=>import("./restructuredtext.F6AaRcRA.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>be(()=>import("./ruby.nwSyFr10.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>be(()=>import("./rust.8UwLYfVl.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>be(()=>import("./sb.2ZGQ-dXi.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>be(()=>import("./scala.EIZ9SpGc.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>be(()=>import("./scheme.Y49iubEl.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>be(()=>import("./scss.ZohI8ULM.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>be(()=>import("./shell.snHqVOLE.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>be(()=>import("./solidity.GyNrlfFw.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>be(()=>import("./sophia.5GkRCa_Y.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>be(()=>import("./sparql.9VfQHtbu.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>be(()=>import("./sql.jtz2ac56.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>be(()=>import("./st.AY6UE42C.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>be(()=>import("./swift.QKjTK3w8.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>be(()=>import("./systemverilog.6QWaCDDD.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>be(()=>import("./systemverilog.6QWaCDDD.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>be(()=>import("./tcl.KXPb6qnb.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>be(()=>import("./twig.YU5xFCs4.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>be(()=>import("./typescript.FaBf3sEe.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>be(()=>import("./typespec.j5D_rXJM.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>be(()=>import("./vb.-URM9q1V.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>be(()=>import("./wgsl.cHB-EbgT.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\be(()=>import("./xml.0fzFNSxx.js"),__vite__mapDeps([]),import.meta.url)});xe({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>be(()=>import("./yaml.adPZbu6T.js"),__vite__mapDeps([]),import.meta.url)});/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var afe=Object.defineProperty,lfe=Object.getOwnPropertyDescriptor,dfe=Object.getOwnPropertyNames,cfe=Object.prototype.hasOwnProperty,eB=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of dfe(e))!cfe.call(o,n)&&n!==t&&afe(o,n,{get:()=>e[n],enumerable:!(i=lfe(e,n))||i.enumerable});return o},hfe=(o,e,t)=>(eB(o,e,"default"),t&&eB(t,e,"default")),Wp={};hfe(Wp,tC);var _P=class{constructor(e,t,i){this._onDidChange=new Wp.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},vP={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},bP={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},DV=new _P("css",vP,bP),kV=new _P("scss",vP,bP),IV=new _P("less",vP,bP);Wp.languages.css={cssDefaults:DV,lessDefaults:IV,scssDefaults:kV};function CP(){return be(()=>import("./cssMode.DRmxSzOg.js"),__vite__mapDeps([]),import.meta.url)}Wp.languages.onLanguage("less",()=>{CP().then(o=>o.setupMode(IV))});Wp.languages.onLanguage("scss",()=>{CP().then(o=>o.setupMode(kV))});Wp.languages.onLanguage("css",()=>{CP().then(o=>o.setupMode(DV))});/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var ufe=Object.defineProperty,gfe=Object.getOwnPropertyDescriptor,ffe=Object.getOwnPropertyNames,mfe=Object.prototype.hasOwnProperty,tB=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ffe(e))!mfe.call(o,n)&&n!==t&&ufe(o,n,{get:()=>e[n],enumerable:!(i=gfe(e,n))||i.enumerable});return o},pfe=(o,e,t)=>(tB(o,e,"default"),t&&tB(t,e,"default")),ox={};pfe(ox,tC);var _fe=class{constructor(e,t,i){this._onDidChange=new ox.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},vfe={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},rx={format:vfe,suggest:{},data:{useDefaultDataProvider:!0}};function ax(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===Dv,documentFormattingEdits:o===Dv,documentRangeFormattingEdits:o===Dv}}var Dv="html",iB="handlebars",nB="razor",EV=lx(Dv,rx,ax(Dv)),bfe=EV.defaults,NV=lx(iB,rx,ax(iB)),Cfe=NV.defaults,TV=lx(nB,rx,ax(nB)),wfe=TV.defaults;ox.languages.html={htmlDefaults:bfe,razorDefaults:wfe,handlebarDefaults:Cfe,htmlLanguageService:EV,handlebarLanguageService:NV,razorLanguageService:TV,registerHTMLLanguageService:lx};function Sfe(){return be(()=>import("./htmlMode.xb9PbiRv.js"),__vite__mapDeps([]),import.meta.url)}function lx(o,e=rx,t=ax(o)){const i=new _fe(o,e,t);let n;const s=ox.languages.onLanguage(o,async()=>{n=(await Sfe()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var yfe=Object.defineProperty,Lfe=Object.getOwnPropertyDescriptor,xfe=Object.getOwnPropertyNames,Dfe=Object.prototype.hasOwnProperty,sB=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of xfe(e))!Dfe.call(o,n)&&n!==t&&yfe(o,n,{get:()=>e[n],enumerable:!(i=Lfe(e,n))||i.enumerable});return o},kfe=(o,e,t)=>(sB(o,e,"default"),t&&sB(t,e,"default")),iC={};kfe(iC,tC);var Ife=class{constructor(e,t,i){this._onDidChange=new iC.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Efe={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},Nfe={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},MV=new Ife("json",Efe,Nfe),Tfe=()=>RV().then(o=>o.getWorker());iC.languages.json={jsonDefaults:MV,getWorker:Tfe};function RV(){return be(()=>import("./jsonMode.RJzdksEY.js"),__vite__mapDeps([]),import.meta.url)}iC.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});iC.languages.onLanguage("json",()=>{RV().then(o=>o.setupMode(MV))});/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var Mfe=Object.defineProperty,Rfe=Object.getOwnPropertyDescriptor,Afe=Object.getOwnPropertyNames,Pfe=Object.prototype.hasOwnProperty,oB=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Afe(e))!Pfe.call(o,n)&&n!==t&&Mfe(o,n,{get:()=>e[n],enumerable:!(i=Rfe(e,n))||i.enumerable});return o},Ofe=(o,e,t)=>(oB(o,e,"default"),t&&oB(t,e,"default")),Ffe="5.4.5",fp={};Ofe(fp,tC);var AV=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(AV||{}),PV=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(PV||{}),OV=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(OV||{}),FV=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(FV||{}),BV=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(BV||{}),WV=class{constructor(o,e,t,i,n){this._onDidChange=new fp.Emitter,this._onDidExtraLibsChange=new fp.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(o),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(o,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===o)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:o,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(o){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),o&&o.length>0)for(const e of o){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(o){this._compilerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(o){this._workerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(o){this._inlayHintsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(o){}setEagerModelSync(o){this._eagerModelSync=o}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(void 0)}},Bfe=Ffe,HV={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},VV=new WV({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},HV),zV=new WV({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},HV),Wfe=()=>dx().then(o=>o.getTypeScriptWorker()),Hfe=()=>dx().then(o=>o.getJavaScriptWorker());fp.languages.typescript={ModuleKind:AV,JsxEmit:PV,NewLineKind:OV,ScriptTarget:FV,ModuleResolutionKind:BV,typescriptVersion:Bfe,typescriptDefaults:VV,javascriptDefaults:zV,getTypeScriptWorker:Wfe,getJavaScriptWorker:Hfe};function dx(){return be(()=>import("./tsMode.-yiofk3P.js"),__vite__mapDeps([]),import.meta.url)}fp.languages.onLanguage("typescript",()=>dx().then(o=>o.setupTypeScript(VV)));fp.languages.onLanguage("javascript",()=>dx().then(o=>o.setupJavaScript(zV)));class Vfe extends Es{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:Fe("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:oe.map,toggled:K.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:K.has("isInDiffEditor"),menu:{when:K.has("isInDiffEditor"),id:k.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(Je),n=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",n)}}class UV extends Es{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:Fe("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:K.has("isInDiffEditor")})}run(e,...t){const i=e.get(Je),n=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",n)}}class $V extends Es{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:Fe("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:K.has("isInDiffEditor")})}run(e,...t){const i=e.get(Je),n=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",n)}}const nC=Fe("diffEditor","Diff Editor");class zfe extends Fa{constructor(){super({id:"diffEditor.switchSide",title:Fe("switchSide","Switch Side"),icon:oe.arrowSwap,precondition:K.has("isInDiffEditor"),f1:!0,category:nC})}runEditorCommand(e,t,i){const n=Vp(e);if(n instanceof ic){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}class Ufe extends Fa{constructor(){super({id:"diffEditor.exitCompareMove",title:Fe("exitCompareMove","Exit Compare Move"),icon:oe.close,precondition:E.comparingMovedCode,f1:!1,category:nC,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const n=Vp(e);n instanceof ic&&n.exitCompareMove()}}class $fe extends Fa{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:Fe("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:oe.fold,precondition:K.has("isInDiffEditor"),f1:!0,category:nC})}runEditorCommand(e,t,...i){const n=Vp(e);n instanceof ic&&n.collapseAllUnchangedRegions()}}class jfe extends Fa{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:Fe("showAllUnchangedRegions","Show All Unchanged Regions"),icon:oe.unfold,precondition:K.has("isInDiffEditor"),f1:!0,category:nC})}runEditorCommand(e,t,...i){const n=Vp(e);n instanceof ic&&n.showAllUnchangedRegions()}}class nM extends Es{constructor(){super({id:"diffEditor.revert",title:Fe("revert","Revert"),f1:!1,category:nC})}run(e,t){var i;const n=Kfe(e,t.originalUri,t.modifiedUri);n instanceof ic&&n.revertRangeMappings((i=t.mapping.innerChanges)!==null&&i!==void 0?i:[])}}const jV=Fe("accessibleDiffViewer","Accessible Diff Viewer");class Hp extends Es{constructor(){super({id:Hp.id,title:Fe("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:jV,precondition:K.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=Vp(e);t==null||t.accessibleDiffViewerNext()}}Hp.id="editor.action.accessibleDiffViewer.next";class sC extends Es{constructor(){super({id:sC.id,title:Fe("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:jV,precondition:K.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=Vp(e);t==null||t.accessibleDiffViewerPrev()}}sC.id="editor.action.accessibleDiffViewer.prev";function Kfe(o,e,t){return o.get(_t).listDiffEditors().find(s=>{var r,a;const l=s.getModifiedEditor(),d=s.getOriginalEditor();return l&&((r=l.getModel())===null||r===void 0?void 0:r.uri.toString())===t.toString()&&d&&((a=d.getModel())===null||a===void 0?void 0:a.uri.toString())===e.toString()})||null}function Vp(o){const t=o.get(_t).listDiffEditors(),i=Pn();if(i)for(const n of t){const s=n.getContainerDomNode();if(qfe(s,i))return n}return null}function qfe(o,e){let t=e;for(;t;){if(t===o)return!0;t=t.parentElement}return!1}Vt(Vfe);Vt(UV);Vt($V);mn.appendMenuItem(k.EditorTitle,{command:{id:new $V().desc.id,title:m("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:K.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:K.has("isInDiffEditor")},order:11,group:"1_diff",when:K.and(E.diffEditorRenderSideBySideInlineBreakpointReached,K.has("isInDiffEditor"))});mn.appendMenuItem(k.EditorTitle,{command:{id:new UV().desc.id,title:m("showMoves","Show Moved Code Blocks"),icon:oe.move,toggled:Ep.create("config.diffEditor.experimental.showMoves",!0),precondition:K.has("isInDiffEditor")},order:10,group:"1_diff",when:K.has("isInDiffEditor")});Vt(nM);for(const o of[{icon:oe.arrowRight,key:E.diffEditorInlineMode.toNegated()},{icon:oe.discard,key:E.diffEditorInlineMode}])mn.appendMenuItem(k.DiffEditorHunkToolbar,{command:{id:new nM().desc.id,title:m("revertHunk","Revert Block"),icon:o.icon},when:K.and(E.diffEditorModifiedWritable,o.key),order:5,group:"primary"}),mn.appendMenuItem(k.DiffEditorSelectionToolbar,{command:{id:new nM().desc.id,title:m("revertSelection","Revert Selection"),icon:o.icon},when:K.and(E.diffEditorModifiedWritable,o.key),order:5,group:"primary"});Vt(zfe);Vt(Ufe);Vt($fe);Vt(jfe);mn.appendMenuItem(k.EditorTitle,{command:{id:Hp.id,title:m("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:K.has("isInDiffEditor")},order:10,group:"2_diff",when:K.and(E.accessibleDiffViewerVisible.negate(),K.has("isInDiffEditor"))});ct.registerCommandAlias("editor.action.diffReview.next",Hp.id);Vt(Hp);ct.registerCommandAlias("editor.action.diffReview.prev",sC.id);Vt(sC);var Gfe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Zfe=function(o,e){return function(t,i){e(t,i,o)}},sM;const cx=new de("selectionAnchorSet",!1);let nc=sM=class{static get(e){return e.getContribution(sM.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=cx.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(_e.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new Un().appendText(m("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),js(m("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(_e.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};nc.ID="editor.contrib.selectionAnchorController";nc=sM=Gfe([Zfe(1,Me)],nc);class Yfe extends ce{constructor(){super({id:"editor.action.setSelectionAnchor",label:m("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:Ki(2089,2080),weight:100}})}async run(e,t){var i;(i=nc.get(t))===null||i===void 0||i.setSelectionAnchor()}}class Qfe extends ce{constructor(){super({id:"editor.action.goToSelectionAnchor",label:m("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:cx})}async run(e,t){var i;(i=nc.get(t))===null||i===void 0||i.goToSelectionAnchor()}}class Xfe extends ce{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:m("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:cx,kbOpts:{kbExpr:E.editorTextFocus,primary:Ki(2089,2089),weight:100}})}async run(e,t){var i;(i=nc.get(t))===null||i===void 0||i.selectFromAnchorToCursor()}}class Jfe extends ce{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:m("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:cx,kbOpts:{kbExpr:E.editorTextFocus,primary:9,weight:100}})}async run(e,t){var i;(i=nc.get(t))===null||i===void 0||i.cancelSelectionAnchor()}}vt(nc.ID,nc,4);J(Yfe);J(Qfe);J(Xfe);J(Jfe);const eme=N("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},m("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class tme extends ce{constructor(){super({id:"editor.action.jumpToBracket",label:m("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:3165,weight:100}})}run(e,t){var i;(i=Hr.get(t))===null||i===void 0||i.jumpToBracket()}}class ime extends ce{constructor(){super({id:"editor.action.selectToBracket",label:m("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:Fe("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let s=!0;i&&i.selectBrackets===!1&&(s=!1),(n=Hr.get(t))===null||n===void 0||n.selectToBracket(s)}}class nme extends ce{constructor(){super({id:"editor.action.removeBrackets",label:m("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:2561,weight:100}})}run(e,t){var i;(i=Hr.get(t))===null||i===void 0||i.removeBrackets(this.id)}}class sme{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class Hr extends W{static get(e){return e.getContribution(Hr.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new At(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let r=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?r=s[1].getStartPosition():s[1].containsPosition(n)&&(r=s[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new _e(r.lineNumber,r.column,r.lineNumber,r.column):new _e(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let r=t.bracketPairs.matchBracket(s);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(s),!r)){const d=t.bracketPairs.findNextBracket(s);d&&d.range&&(r=t.bracketPairs.matchBracket(d.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(x.compareRangesUsingStarts);const[d,c]=r;if(a=e?d.getStartPosition():d.getEndPosition(),l=e?c.getEndPosition():c.getStartPosition(),c.containsPosition(s)){const h=a;a=l,l=h}}a&&l&&i.push(new _e(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(i=>{const n=i.getPosition();let s=t.bracketPairs.matchBracket(n);s||(s=t.bracketPairs.findEnclosingBrackets(n)),s&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:s[0],text:""},{range:s[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let r=0;for(let h=0,u=e.length;h1&&s.sort(F.compare);const a=[];let l=0,d=0;const c=n.length;for(let h=0,u=s.length;h0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}J(lme);const hx=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let o;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?o=crypto.getRandomValues.bind(crypto):o=function(i){for(let n=0;no,asFile:()=>{},value:typeof o=="string"?o:void 0}}function dme(o,e,t){const i={id:hx(),name:o,uri:e,data:t};return{asString:async()=>"",asFile:()=>i,value:void 0}}class qV{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return dt.some(this,([i,n])=>n.asFile())&&t.push("files"),ZV(uy(e),t)}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return uy(e)}}function uy(o){return o.toLowerCase()}function GV(o,e){return ZV(uy(o),e.map(uy))}function ZV(o,e){if(o==="*/*")return e.length>0;if(e.includes(o))return!0;const t=o.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,n,s]=t;return s==="*"?e.some(r=>r.startsWith(n+"/")):!1}const ux=Object.freeze({create:o=>Gd(o.map(e=>e.toString())).join(`\r +`),split:o=>o.split(`\r +`),parse:o=>ux.split(o).filter(e=>!e.startsWith("#"))});class Rt{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+Rt.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...e){return new Rt((this.value?[this.value,...e]:e).join(Rt.sep))}}Rt.sep=".";Rt.None=new Rt("@@none@@");Rt.Empty=new Rt("");const rB={EDITORS:"CodeEditors",FILES:"CodeFiles"};class cme{}const hme={DragAndDropContribution:"workbench.contributions.dragAndDrop"};hi.add(hme.DragAndDropContribution,new cme);class $b{constructor(){}static getInstance(){return $b.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}}$b.INSTANCE=new $b;function YV(o){const e=new qV;for(const t of o.items){const i=t.type;if(t.kind==="string"){const n=new Promise(s=>t.getAsString(s));e.append(i,wP(n))}else if(t.kind==="file"){const n=t.getAsFile();n&&e.append(i,ume(n))}}return e}function ume(o){const e=o.path?ke.parse(o.path):void 0;return dme(o.name,e,async()=>new Uint8Array(await o.arrayBuffer()))}const gme=Object.freeze([rB.EDITORS,rB.FILES,xb.RESOURCES,xb.INTERNAL_URI_LIST]);function QV(o,e=!1){const t=YV(o),i=t.get(xb.INTERNAL_URI_LIST);if(i)t.replace(wi.uriList,i);else if(e||!t.has(wi.uriList)){const n=[];for(const s of o.items){const r=s.getAsFile();if(r){const a=r.path;try{a?n.push(ke.file(a).toString()):n.push(ke.parse(r.name,!0).toString())}catch{}}}n.length&&t.replace(wi.uriList,wP(ux.create(n)))}for(const n of gme)t.delete(n);return t}var SP=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},jb=function(o,e){return function(t,i){e(t,i,o)}};class yP{async provideDocumentPasteEdits(e,t,i,n,s){const r=await this.getEdit(i,s);if(r)return{dispose(){},edits:[{insertText:r.insertText,title:r.title,kind:r.kind,handledMimeType:r.handledMimeType,yieldTo:r.yieldTo}]}}async provideDocumentDropEdits(e,t,i,n){const s=await this.getEdit(i,n);return s?[{insertText:s.insertText,title:s.title,kind:s.kind,handledMimeType:s.handledMimeType,yieldTo:s.yieldTo}]:void 0}}class sc extends yP{constructor(){super(...arguments),this.kind=sc.kind,this.dropMimeTypes=[wi.text],this.pasteMimeTypes=[wi.text]}async getEdit(e,t){const i=e.get(wi.text);if(!i||e.has(wi.uriList))return;const n=await i.asString();return{handledMimeType:wi.text,title:m("text.label","Insert Plain Text"),insertText:n,kind:this.kind}}}sc.id="text";sc.kind=new Rt("text.plain");class XV extends yP{constructor(){super(...arguments),this.kind=new Rt("uri.absolute"),this.dropMimeTypes=[wi.uriList],this.pasteMimeTypes=[wi.uriList]}async getEdit(e,t){const i=await JV(e);if(!i.length||t.isCancellationRequested)return;let n=0;const s=i.map(({uri:a,originalText:l})=>a.scheme===Oe.file?a.fsPath:(n++,l)).join(" ");let r;return n>0?r=i.length>1?m("defaultDropProvider.uriList.uris","Insert Uris"):m("defaultDropProvider.uriList.uri","Insert Uri"):r=i.length>1?m("defaultDropProvider.uriList.paths","Insert Paths"):m("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:wi.uriList,insertText:s,title:r,kind:this.kind}}}let gy=class extends yP{constructor(e){super(),this._workspaceContextService=e,this.kind=new Rt("uri.relative"),this.dropMimeTypes=[wi.uriList],this.pasteMimeTypes=[wi.uriList]}async getEdit(e,t){const i=await JV(e);if(!i.length||t.isCancellationRequested)return;const n=xa(i.map(({uri:s})=>{const r=this._workspaceContextService.getWorkspaceFolder(s);return r?Aie(r.uri,s):void 0}));if(n.length)return{handledMimeType:wi.uriList,insertText:n.join(" "),title:i.length>1?m("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):m("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}}};gy=SP([jb(0,wg)],gy);class fme{constructor(){this.kind=new Rt("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:wi.text}]}async provideDocumentPasteEdits(e,t,i,n,s){var r;if(n.triggerKind!==zv.PasteAs&&!(!((r=n.only)===null||r===void 0)&&r.contains(this.kind)))return;const a=i.get("text/html"),l=await(a==null?void 0:a.asString());if(!(!l||s.isCancellationRequested))return{dispose(){},edits:[{insertText:l,yieldTo:this._yieldTo,title:m("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}}}async function JV(o){const e=o.get(wi.uriList);if(!e)return[];const t=await e.asString(),i=[];for(const n of ux.parse(t))try{i.push({uri:ke.parse(n),originalText:n})}catch{}return i}let oM=class extends W{constructor(e,t){super(),this._register(e.documentDropEditProvider.register("*",new sc)),this._register(e.documentDropEditProvider.register("*",new XV)),this._register(e.documentDropEditProvider.register("*",new gy(t)))}};oM=SP([jb(0,me),jb(1,wg)],oM);let rM=class extends W{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new sc)),this._register(e.documentPasteEditProvider.register("*",new XV)),this._register(e.documentPasteEditProvider.register("*",new gy(t))),this._register(e.documentPasteEditProvider.register("*",new fme))}};rM=SP([jb(0,me),jb(1,wg)],rM);class kr{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t=0,i=this.value.charCodeAt(e),n;if(n=kr._table[i],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(kr.isDigitCharacter(i)){n=8;do t+=1,i=this.value.charCodeAt(e+t);while(kr.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}if(kr.isVariableCharacter(i)){n=9;do i=this.value.charCodeAt(e+ ++t);while(kr.isVariableCharacter(i)||kr.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof kr._table[i]>"u"&&!kr.isDigitCharacter(i)&&!kr.isVariableCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}}kr._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class zp{constructor(){this._children=[]}appendChild(e){return e instanceof ms&&this._children[this._children.length-1]instanceof ms?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),s=i.children.slice(0);s.splice(n,1,...t),i._children=s,function r(a,l){for(const d of a)d.parent=l,r(d.children,d)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof oC)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class ms extends zp{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new ms(this.value)}}class ez extends zp{}class Yo extends ez{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.indext.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof Up?this._children[0]:void 0}clone(){const e=new Yo(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class Up extends zp{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof ms&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new Up;return this.options.forEach(e.appendChild,e),e}}class LP extends zp{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(s=>s instanceof oa&&!!s.elseValue)&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof oa){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new LP;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class oa extends zp{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,n)=>n===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new oa(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class Kb extends ez{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new ms(t)],!0):!1}clone(){const e=new Kb(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function aB(o,e){const t=[...o];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class oC extends zp{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof Yo&&(e.push(i),t=!t||t.indexn===e?(i=!0,!1):(t+=n.len(),!0)),i?t:-1}fullLen(e){let t=0;return aB([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof Yo&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof Kb&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new oC;return this._children=this.children.map(t=>t.clone()),e}walk(e){aB(this.children,e)}}class kg{constructor(){this._scanner=new kr,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new oC;return this.parseFragment(e,n),this.ensureFinalTabstop(n,i??!1,t??!1),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,s=[];t.walk(l=>(l instanceof Yo&&(l.isFinalTabstop?n.set(0,void 0):!n.has(l.index)&&l.children.length>0?n.set(l.index,l.children):s.push(l)),!0));const r=(l,d)=>{const c=n.get(l.index);if(!c)return;const h=new Yo(l.index);h.transform=l.transform;for(const u of c){const g=u.clone();h.appendChild(g),g instanceof Yo&&n.has(g.index)&&!d.has(g.index)&&(d.add(g.index),r(g,d),d.delete(g.index))}t.replace(l,[h])},a=new Set;for(const l of s)r(l,a);return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(s=>s.index===0)||e.appendChild(new Yo(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new ms(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new Yo(Number(t)):new Kb(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new Yo(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new ms("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else if(s.index>0&&this._accept(7)){const r=new Up;for(;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(r),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let n;if((n=this._accept(5,!0))?n=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:n=this._accept(void 0,!0),!n)return this._backTo(t),!1;i.push(n)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new ms(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new Kb(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new ms("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseTransform(e){const t=new LP;let i="",n="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(5,!0)||this._accept(6,!0)||s,t.appendChild(new ms(s));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,n)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(n)if(i){if(this._accept(4))return e.appendChild(new oa(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new oa(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){const s=this._accept(9,!0);return!s||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new oa(Number(n),s)),!0)}else if(this._accept(11)){const s=this._until(4);if(s)return e.appendChild(new oa(Number(n),void 0,s,void 0)),!0}else if(this._accept(12)){const s=this._until(4);if(s)return e.appendChild(new oa(Number(n),void 0,void 0,s)),!0}else if(this._accept(13)){const s=this._until(1);if(s){const r=this._until(4);if(r)return e.appendChild(new oa(Number(n),void 0,s,r)),!0}}else{const s=this._until(4);if(s)return e.appendChild(new oa(Number(n),void 0,void 0,s)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new ms(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}function tz(o,e,t){var i,n,s,r;return(typeof t.insertText=="string"?t.insertText==="":t.insertText.snippet==="")?{edits:(n=(i=t.additionalEdit)===null||i===void 0?void 0:i.edits)!==null&&n!==void 0?n:[]}:{edits:[...e.map(a=>new ch(o,{range:a,text:typeof t.insertText=="string"?kg.escape(t.insertText)+"$0":t.insertText.snippet,insertAsSnippet:!0})),...(r=(s=t.additionalEdit)===null||s===void 0?void 0:s.edits)!==null&&r!==void 0?r:[]]}}function iz(o){var e;function t(a,l){return"mimeType"in a?a.mimeType===l.handledMimeType:!!l.kind&&a.kind.contains(l.kind)}const i=new Map;for(const a of o)for(const l of(e=a.yieldTo)!==null&&e!==void 0?e:[])for(const d of o)if(d!==a&&t(l,d)){let c=i.get(a);c||(c=[],i.set(a,c)),c.push(d)}if(!i.size)return Array.from(o);const n=new Set,s=[];function r(a){if(!a.length)return[];const l=a[0];if(s.includes(l))return console.warn("Yield to cycle detected",l),a;if(n.has(l))return r(a.slice(1));let d=[];const c=i.get(l);return c&&(s.push(l),d=r(c),s.pop()),n.add(l),[...d,l,...r(a.slice(1))]}return r(Array.from(o))}var mme=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},pme=function(o,e){return function(t,i){e(t,i,o)}};const _me=je.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:D9,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}});class gx extends W{constructor(e,t,i,n,s){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=s,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(n),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=te(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=te("span.icon");this.domNode.append(t),t.classList.add(...Te.asClassNameArray(oe.loading),"codicon-modifier-spin");const i=()=>{const n=this.editor.getOption(67);this.domNode.style.height=`${n}px`,this.domNode.style.width=`${Math.ceil(.8*n)}px`};i(),this._register(this.editor.onDidChangeConfiguration(n=>{(n.hasChanged(52)||n.hasChanged(67))&&i()})),this._register(U(this.domNode,ee.CLICK,n=>{this.delegate.cancel()}))}getId(){return gx.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}}gx.baseId="editor.widget.inlineProgressWidget";let fy=class extends W{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new ln),this._currentWidget=new ln,this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}async showWhile(e,t,i){const n=this._operationIdPool++;this._currentOperation=n,this.clear(),this._showPromise.value=Sh(()=>{const s=x.fromPositions(e);this._currentDecorations.set([{range:s,options:_me}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(gx,this.id,this._editor,s,t,i))},this._showDelay);try{return await i}finally{this._currentOperation===n&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};fy=mme([pme(2,Le)],fy);var vme=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},lB=function(o,e){return function(t,i){e(t,i,o)}},ww;let Ls=ww=class{static get(e){return e.getContribution(ww.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new ln,this._messageListeners=new G,this._mouseOverMessage=!1,this._editor=e,this._visible=ww.MESSAGE_VISIBLE.bindTo(t)}dispose(){var e;(e=this._message)===null||e===void 0||e.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){js(La(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=La(e)?TL(e,{actionHandler:{callback:n=>{this.closeMessage(),M2(this._openerService,n,La(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new dB(this._editor,t,typeof e=="string"?e:this._message.element),this._messageListeners.add(ae.debounce(this._editor.onDidBlurEditorText,(n,s)=>s,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&on(Pn(),this._messageWidget.value.getDomNode())||this.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(U(this._messageWidget.value.getDomNode(),ee.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(U(this._messageWidget.value.getDomNode(),ee.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new x(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(dB.fadeOut(this._messageWidget.value))}};Ls.ID="editor.contrib.messageController";Ls.MESSAGE_VISIBLE=new de("messageVisible",!1,m("messageVisible","Whether the editor is currently showing an inline message"));Ls=ww=vme([lB(1,Me),lB(2,fo)],Ls);const bme=Xi.bindToContribution(Ls.get);le(new bme({id:"leaveEditorMessage",precondition:Ls.MESSAGE_VISIBLE,handler:o=>o.closeMessage(),kbOpts:{weight:130,primary:9}}));let dB=class{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const r=document.createElement("div");typeof n=="string"?(r.classList.add("message"),r.textContent=n):(n.classList.add("message"),r.appendChild(n)),this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};vt(Ls.ID,Ls,4);function Wk(o,e){return e&&(o.stack||o.stacktrace)?m("stackTrace.format","{0}: {1}",hB(o),cB(o.stack)||cB(o.stacktrace)):hB(o)}function cB(o){return Array.isArray(o)?o.join(` +`):o}function hB(o){return o.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${o.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof o.code=="string"&&typeof o.errno=="number"&&typeof o.syscall=="string"?m("nodeExceptionMessage","A system error occurred ({0})",o.message):o.message||m("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function my(o=null,e=!1){if(!o)return m("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(o)){const t=xa(o),i=my(t[0],e);return t.length>1?m("error.moreErrors","{0} ({1} errors in total)",i,t.length):i}if(ys(o))return o;if(o.detail){const t=o.detail;if(t.error)return Wk(t.error,e);if(t.exception)return Wk(t.exception,e)}return o.stack?Wk(o,e):o.message?o.message:m("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var nz=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Tm=function(o,e){return function(t,i){e(t,i,o)}},aM;let py=aM=class extends W{constructor(e,t,i,n,s,r,a,l,d,c){super(),this.typeId=e,this.editor=t,this.showCommand=n,this.range=s,this.edits=r,this.onSelectNewEdit=a,this._contextMenuService=l,this._keybindingService=c,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(d),this.visibleContext.set(!0),this._register(Ce(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register(Ce(()=>this.editor.removeContentWidget(this))),this._register(this.editor.onDidChangeCursorPosition(h=>{s.containsPosition(h.position)||this.dispose()})),this._register(ae.runAndSubscribe(c.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){var e;const t=(e=this._keybindingService.lookupKeybinding(this.showCommand.id))===null||e===void 0?void 0:e.getLabel();this.button.element.title=this.showCommand.label+(t?` (${t})`:"")}create(){this.domNode=te(".post-edit-widget"),this.button=this._register(new zS(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(U(this.domNode,ee.CLICK,()=>this.showSelector()))}getId(){return aM.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=Oi(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map((e,t)=>Qu({id:"",label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}}))})}};py.baseId="editor.widget.postEditWidget";py=aM=nz([Tm(7,go),Tm(8,Me),Tm(9,St)],py);let _y=class extends W{constructor(e,t,i,n,s,r,a){super(),this._id=e,this._editor=t,this._visibleContext=i,this._showCommand=n,this._instantiationService=s,this._bulkEditService=r,this._notificationService=a,this._currentWidget=this._register(new ln),this._register(ae.any(t.onDidChangeModel,t.onDidChangeModelContent)(()=>this.clear()))}async applyEditAndShowIfNeeded(e,t,i,n,s){const r=this._editor.getModel();if(!r||!e.length)return;const a=t.allEdits.at(t.activeEditIndex);if(!a)return;const l=async _=>{const v=this._editor.getModel();v&&(await v.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:_,allEdits:t.allEdits},i,n,s))},d=(_,v)=>{Ur(_)||(this._notificationService.error(v),i&&this.show(e[0],t,l))};let c;try{c=await n(a,s)}catch(_){return d(_,m("resolveError",`Error resolving edit '{0}': +{1}`,a.title,my(_)))}if(s.isCancellationRequested)return;const h=tz(r.uri,e,c),u=e[0],g=r.deltaDecorations([],[{range:u,options:{description:"paste-line-suffix",stickiness:0}}]);this._editor.focus();let f,p;try{f=await this._bulkEditService.apply(h,{editor:this._editor,token:s}),p=r.getDecorationRange(g[0])}catch(_){return d(_,m("applyError",`Error applying edit '{0}': +{1}`,a.title,my(_)))}finally{r.deltaDecorations(g,[])}s.isCancellationRequested||i&&f.isApplied&&t.allEdits.length>1&&this.show(p??u,t,l)}show(e,t,i){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(py,this._id,this._editor,this._visibleContext,this._showCommand,e,t,i))}clear(){this._currentWidget.clear()}tryShowSelector(){var e;(e=this._currentWidget.value)===null||e===void 0||e.showSelector()}};_y=nz([Tm(4,Le),Tm(5,$0),Tm(6,Ri)],_y);var Cme=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},vf=function(o,e){return function(t,i){e(t,i,o)}},xu;const sz="editor.changePasteType",xP=new de("pasteWidgetVisible",!1,m("pasteWidgetVisible","Whether the paste widget is showing")),Hk="application/vnd.code.copyMetadata";let zl=xu=class extends W{static get(e){return e.getContribution(xu.ID)}constructor(e,t,i,n,s,r,a){super(),this._bulkEditService=i,this._clipboardService=n,this._languageFeaturesService=s,this._quickInputService=r,this._progressService=a,this._editor=e;const l=e.getContainerDomNode();this._register(U(l,"copy",d=>this.handleCopy(d))),this._register(U(l,"cut",d=>this.handleCopy(d))),this._register(U(l,"paste",d=>this.handlePaste(d),!0)),this._pasteProgressManager=this._register(new fy("pasteIntoEditor",e,t)),this._postPasteWidgetManager=this._register(t.createInstance(_y,"pasteIntoEditor",e,xP,{id:sz,label:m("postPasteWidgetTitle","Show paste options...")}))}changePasteType(){this._postPasteWidgetManager.tryShowSelector()}pasteAs(e){this._editor.focus();try{this._pasteAsActionContext={preferred:e},Ip().execCommand("paste")}finally{this._pasteAsActionContext=void 0}}clearWidgets(){this._postPasteWidgetManager.clear()}isPasteAsEnabled(){return this._editor.getOption(85).enabled&&!this._editor.getOption(91)}async finishedPaste(){await this._currentPasteOperation}handleCopy(e){var t,i;if(!this._editor.hasTextFocus()||($h&&this._clipboardService.writeResources([]),!e.clipboardData||!this.isPasteAsEnabled()))return;const n=this._editor.getModel(),s=this._editor.getSelections();if(!n||!(s!=null&&s.length))return;const r=this._editor.getOption(37);let a=s;const l=s.length===1&&s[0].isEmpty();if(l){if(!r)return;a=[new x(a[0].startLineNumber,1,a[0].startLineNumber,1+n.getLineLength(a[0].startLineNumber))]}const d=(t=this._editor._getViewModel())===null||t===void 0?void 0:t.getPlainTextToCopy(s,r,Fn),h={multicursorText:Array.isArray(d)?d:null,pasteOnNewLine:l,mode:null},u=this._languageFeaturesService.documentPasteEditProvider.ordered(n).filter(v=>!!v.prepareDocumentPaste);if(!u.length){this.setCopyMetadata(e.clipboardData,{defaultPastePayload:h});return}const g=YV(e.clipboardData),f=u.flatMap(v=>{var b;return(b=v.copyMimeTypes)!==null&&b!==void 0?b:[]}),p=hx();this.setCopyMetadata(e.clipboardData,{id:p,providerCopyMimeTypes:f,defaultPastePayload:h});const _=an(async v=>{const b=xa(await Promise.all(u.map(async C=>{try{return await C.prepareDocumentPaste(n,a,g,v)}catch(w){console.error(w);return}})));b.reverse();for(const C of b)for(const[w,S]of C)g.replace(w,S);return g});(i=xu._currentCopyOperation)===null||i===void 0||i.dataTransferPromise.cancel(),xu._currentCopyOperation={handle:p,dataTransferPromise:_}}async handlePaste(e){var t,i,n,s;if(!e.clipboardData||!this._editor.hasTextFocus())return;(t=Ls.get(this._editor))===null||t===void 0||t.closeMessage(),(i=this._currentPasteOperation)===null||i===void 0||i.cancel(),this._currentPasteOperation=void 0;const r=this._editor.getModel(),a=this._editor.getSelections();if(!(a!=null&&a.length)||!r||!this.isPasteAsEnabled()&&!this._pasteAsActionContext)return;const l=this.fetchCopyMetadata(e),d=QV(e.clipboardData);d.delete(Hk);const c=[...e.clipboardData.types,...(n=l==null?void 0:l.providerCopyMimeTypes)!==null&&n!==void 0?n:[],wi.uriList],h=this._languageFeaturesService.documentPasteEditProvider.ordered(r).filter(u=>{var g,f;const p=(g=this._pasteAsActionContext)===null||g===void 0?void 0:g.preferred;return p&&u.providedPasteEditKinds&&!this.providerMatchesPreference(u,p)?!1:(f=u.pasteMimeTypes)===null||f===void 0?void 0:f.some(_=>GV(_,c))});if(!h.length){!((s=this._pasteAsActionContext)===null||s===void 0)&&s.preferred&&this.showPasteAsNoEditMessage(a,this._pasteAsActionContext.preferred);return}e.preventDefault(),e.stopImmediatePropagation(),this._pasteAsActionContext?this.showPasteAsPick(this._pasteAsActionContext.preferred,h,a,d,l):this.doPasteInline(h,a,d,l,e)}showPasteAsNoEditMessage(e,t){var i;(i=Ls.get(this._editor))===null||i===void 0||i.showMessage(m("pasteAsError","No paste edits for '{0}' found",t instanceof Rt?t.value:t.providerId),e[0].getStartPosition())}doPasteInline(e,t,i,n,s){const r=an(async a=>{const l=this._editor;if(!l.hasModel())return;const d=l.getModel(),c=new Th(l,3,void 0,a);try{if(await this.mergeInDataFromCopy(i,n,c.token),c.token.isCancellationRequested)return;const h=e.filter(f=>this.isSupportedPasteProvider(f,i));if(!h.length||h.length===1&&h[0]instanceof sc)return this.applyDefaultPasteHandler(i,n,c.token,s);const u={triggerKind:zv.Automatic},g=await this.getPasteEdits(h,i,d,t,u,c.token);if(c.token.isCancellationRequested)return;if(g.length===1&&g[0].provider instanceof sc)return this.applyDefaultPasteHandler(i,n,c.token,s);if(g.length){const f=l.getOption(85).showPasteSelector==="afterPaste";return this._postPasteWidgetManager.applyEditAndShowIfNeeded(t,{activeEditIndex:0,allEdits:g},f,async(p,_)=>{var v,b;const C=await((b=(v=p.provider).resolveDocumentPasteEdit)===null||b===void 0?void 0:b.call(v,p,_));return C&&(p.additionalEdit=C.additionalEdit),p},c.token)}await this.applyDefaultPasteHandler(i,n,c.token,s)}finally{c.dispose(),this._currentPasteOperation===r&&(this._currentPasteOperation=void 0)}});this._pasteProgressManager.showWhile(t[0].getEndPosition(),m("pasteIntoEditorProgress","Running paste handlers. Click to cancel"),r),this._currentPasteOperation=r}showPasteAsPick(e,t,i,n,s){const r=an(async a=>{const l=this._editor;if(!l.hasModel())return;const d=l.getModel(),c=new Th(l,3,void 0,a);try{if(await this.mergeInDataFromCopy(n,s,c.token),c.token.isCancellationRequested)return;let h=t.filter(_=>this.isSupportedPasteProvider(_,n,e));e&&(h=h.filter(_=>this.providerMatchesPreference(_,e)));const u={triggerKind:zv.PasteAs,only:e&&e instanceof Rt?e:void 0};let g=await this.getPasteEdits(h,n,d,i,u,c.token);if(c.token.isCancellationRequested)return;if(e&&(g=g.filter(_=>e instanceof Rt?e.contains(_.kind):e.providerId===_.provider.id)),!g.length){u.only&&this.showPasteAsNoEditMessage(i,u.only);return}let f;if(e)f=g.at(0);else{const _=await this._quickInputService.pick(g.map(v=>{var b;return{label:v.title,description:(b=v.kind)===null||b===void 0?void 0:b.value,edit:v}}),{placeHolder:m("pasteAsPickerPlaceholder","Select Paste Action")});f=_==null?void 0:_.edit}if(!f)return;const p=tz(d.uri,i,f);await this._bulkEditService.apply(p,{editor:this._editor})}finally{c.dispose(),this._currentPasteOperation===r&&(this._currentPasteOperation=void 0)}});this._progressService.withProgress({location:10,title:m("pasteAsProgress","Running paste handlers")},()=>r)}setCopyMetadata(e,t){e.setData(Hk,JSON.stringify(t))}fetchCopyMetadata(e){var t;if(!e.clipboardData)return;const i=e.clipboardData.getData(Hk);if(i)try{return JSON.parse(i)}catch{return}const[n,s]=eN.getTextData(e.clipboardData);if(s)return{defaultPastePayload:{mode:s.mode,multicursorText:(t=s.multicursorText)!==null&&t!==void 0?t:null,pasteOnNewLine:!!s.isFromEmptySelection}}}async mergeInDataFromCopy(e,t,i){var n;if(t!=null&&t.id&&((n=xu._currentCopyOperation)===null||n===void 0?void 0:n.handle)===t.id){const s=await xu._currentCopyOperation.dataTransferPromise;if(i.isCancellationRequested)return;for(const[r,a]of s)e.replace(r,a)}if(!e.has(wi.uriList)){const s=await this._clipboardService.readResources();if(i.isCancellationRequested)return;s.length&&e.append(wi.uriList,wP(ux.create(s)))}}async getPasteEdits(e,t,i,n,s,r){const a=await D0(Promise.all(e.map(async d=>{var c,h;try{const u=await((c=d.provideDocumentPasteEdits)===null||c===void 0?void 0:c.call(d,i,n,t,s,r));return(h=u==null?void 0:u.edits)===null||h===void 0?void 0:h.map(g=>({...g,provider:d}))}catch(u){console.error(u)}})),r),l=xa(a??[]).flat().filter(d=>!s.only||s.only.contains(d.kind));return iz(l)}async applyDefaultPasteHandler(e,t,i,n){var s,r,a,l;const d=(s=e.get(wi.text))!==null&&s!==void 0?s:e.get("text"),c=(r=await(d==null?void 0:d.asString()))!==null&&r!==void 0?r:"";if(i.isCancellationRequested)return;const h={clipboardEvent:n,text:c,pasteOnNewLine:(a=t==null?void 0:t.defaultPastePayload.pasteOnNewLine)!==null&&a!==void 0?a:!1,multicursorText:(l=t==null?void 0:t.defaultPastePayload.multicursorText)!==null&&l!==void 0?l:null,mode:null};this._editor.trigger("keyboard","paste",h)}isSupportedPasteProvider(e,t,i){var n;return!((n=e.pasteMimeTypes)===null||n===void 0)&&n.some(s=>t.matches(s))?!i||this.providerMatchesPreference(e,i):!1}providerMatchesPreference(e,t){return t instanceof Rt?e.providedPasteEditKinds?e.providedPasteEditKinds.some(i=>t.contains(i)):!0:e.id===t.providerId}};zl.ID="editor.contrib.copyPasteActionController";zl=xu=Cme([vf(1,Le),vf(2,$0),vf(3,uc),vf(4,me),vf(5,_r),vf(6,E6)],zl);const Ig="9_cutcopypaste",wme=_a||document.queryCommandSupported("cut"),oz=_a||document.queryCommandSupported("copy"),Sme=typeof navigator.clipboard>"u"||lr?document.queryCommandSupported("paste"):!0;function DP(o){return o.register(),o}const yme=wme?DP(new Np({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:_a?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:k.MenubarEditMenu,group:"2_ccp",title:m({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:k.EditorContext,group:Ig,title:m("actions.clipboard.cutLabel","Cut"),when:E.writable,order:1},{menuId:k.CommandPalette,group:"",title:m("actions.clipboard.cutLabel","Cut"),order:1},{menuId:k.SimpleEditorContext,group:Ig,title:m("actions.clipboard.cutLabel","Cut"),when:E.writable,order:1}]})):void 0,Lme=oz?DP(new Np({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:_a?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:k.MenubarEditMenu,group:"2_ccp",title:m({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:k.EditorContext,group:Ig,title:m("actions.clipboard.copyLabel","Copy"),order:2},{menuId:k.CommandPalette,group:"",title:m("actions.clipboard.copyLabel","Copy"),order:1},{menuId:k.SimpleEditorContext,group:Ig,title:m("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;mn.appendMenuItem(k.MenubarEditMenu,{submenu:k.MenubarCopy,title:Fe("copy as","Copy As"),group:"2_ccp",order:3});mn.appendMenuItem(k.EditorContext,{submenu:k.EditorContextCopy,title:Fe("copy as","Copy As"),group:Ig,order:3});mn.appendMenuItem(k.EditorContext,{submenu:k.EditorContextShare,title:Fe("share","Share"),group:"11_share",order:-1,when:K.and(K.notEquals("resourceScheme","output"),E.editorTextFocus)});mn.appendMenuItem(k.ExplorerContext,{submenu:k.ExplorerContextShare,title:Fe("share","Share"),group:"11_share",order:-1});const Vk=Sme?DP(new Np({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:_a?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:k.MenubarEditMenu,group:"2_ccp",title:m({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:k.EditorContext,group:Ig,title:m("actions.clipboard.pasteLabel","Paste"),when:E.writable,order:4},{menuId:k.CommandPalette,group:"",title:m("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:k.SimpleEditorContext,group:Ig,title:m("actions.clipboard.pasteLabel","Paste"),when:E.writable,order:4}]})):void 0;class xme extends ce{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:m("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:E.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(37)&&t.getSelection().isEmpty()||(XE.forceCopyWithSyntaxHighlighting=!0,t.focus(),t.getContainerDomNode().ownerDocument.execCommand("copy"),XE.forceCopyWithSyntaxHighlighting=!1)}}function rz(o,e){o&&(o.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(_t).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const s=n.getOption(37),r=n.getSelection();return r&&r.isEmpty()&&!s||n.getContainerDomNode().ownerDocument.execCommand(e),!0}return!1}),o.addImplementation(0,"generic-dom",(t,i)=>(Ip().execCommand(e),!0)))}rz(yme,"cut");rz(Lme,"copy");Vk&&(Vk.addImplementation(1e4,"code-editor",(o,e)=>{var t,i;const n=o.get(_t),s=o.get(uc),r=n.getFocusedCodeEditor();return r&&r.hasTextFocus()?r.getContainerDomNode().ownerDocument.execCommand("paste")?(i=(t=zl.get(r))===null||t===void 0?void 0:t.finishedPaste())!==null&&i!==void 0?i:Promise.resolve():$h?(async()=>{const l=await s.readText();if(l!==""){const d=cb.INSTANCE.get(l);let c=!1,h=null,u=null;d&&(c=r.getOption(37)&&!!d.isFromEmptySelection,h=typeof d.multicursorText<"u"?d.multicursorText:null,u=d.mode),r.trigger("keyboard","paste",{text:l,pasteOnNewLine:c,multicursorText:h,mode:u})}})():!0:!1}),Vk.addImplementation(0,"generic-dom",(o,e)=>(Ip().execCommand("paste"),!0)));oz&&J(xme);const ei=new class{constructor(){this.QuickFix=new Rt("quickfix"),this.Refactor=new Rt("refactor"),this.RefactorExtract=this.Refactor.append("extract"),this.RefactorInline=this.Refactor.append("inline"),this.RefactorMove=this.Refactor.append("move"),this.RefactorRewrite=this.Refactor.append("rewrite"),this.Notebook=new Rt("notebook"),this.Source=new Rt("source"),this.SourceOrganizeImports=this.Source.append("organizeImports"),this.SourceFixAll=this.Source.append("fixAll"),this.SurroundWith=this.Refactor.append("surround")}};var lo;(function(o){o.Refactor="refactor",o.RefactorPreview="refactor preview",o.Lightbulb="lightbulb",o.Default="other (default)",o.SourceAction="source action",o.QuickFix="quick fix action",o.FixAll="fix all",o.OrganizeImports="organize imports",o.AutoFix="auto fix",o.QuickFixHover="quick fix hover window",o.OnSave="save participants",o.ProblemsView="problems view"})(lo||(lo={}));function Dme(o,e){return!(o.include&&!o.include.intersects(e)||o.excludes&&o.excludes.some(t=>az(e,t,o.include))||!o.includeSourceActions&&ei.Source.contains(e))}function kme(o,e){const t=e.kind?new Rt(e.kind):void 0;return!(o.include&&(!t||!o.include.contains(t))||o.excludes&&t&&o.excludes.some(i=>az(t,i,o.include))||!o.includeSourceActions&&t&&ei.Source.contains(t)||o.onlyIncludePreferredActions&&!e.isPreferred)}function az(o,e,t){return!(!e.contains(o)||t&&e.contains(t))}class pl{static fromUser(e,t){return!e||typeof e!="object"?new pl(t.kind,t.apply,!1):new pl(pl.getKindFromUser(e,t.kind),pl.getApplyFromUser(e,t.apply),pl.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new Rt(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}}class Ime{constructor(e,t,i){this.action=e,this.provider=t,this.highlightRange=i}async resolve(e){var t;if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let i;try{i=await this.provider.resolveCodeAction(this.action,e)}catch(n){yi(n)}i&&(this.action.edit=i.edit)}return this}}const lz="editor.action.codeAction",kP="editor.action.quickFix",dz="editor.action.autoFix",cz="editor.action.refactor",hz="editor.action.sourceAction",IP="editor.action.organizeImports",EP="editor.action.fixAll";class kv extends W{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return e.isAI&&!t.isAI?1:!e.isAI&&t.isAI?-1:jn(e.diagnostics)?jn(t.diagnostics)?kv.codeActionsPreferredComparator(e,t):-1:jn(t.diagnostics)?1:kv.codeActionsPreferredComparator(e,t)}constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(kv.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&ei.QuickFix.contains(new Rt(e.kind))&&!!e.isPreferred)}get hasAIFix(){return this.validActions.some(({action:e})=>!!e.isAI)}get allAIFixes(){return this.validActions.every(({action:e})=>!!e.isAI)}}const uB={actions:[],documentation:void 0};async function Iv(o,e,t,i,n,s){var r;const a=i.filter||{},l={...a,excludes:[...a.excludes||[],ei.Notebook]},d={only:(r=a.include)===null||r===void 0?void 0:r.value,trigger:i.type},c=new mP(e,s),h=i.type===2,u=Eme(o,e,h?l:a),g=new G,f=u.map(async _=>{try{n.report(_);const v=await _.provideCodeActions(e,t,d,c.token);if(v&&g.add(v),c.token.isCancellationRequested)return uB;const b=((v==null?void 0:v.actions)||[]).filter(w=>w&&kme(a,w)),C=Tme(_,b,a.include);return{actions:b.map(w=>new Ime(w,_)),documentation:C}}catch(v){if(Ur(v))throw v;return yi(v),uB}}),p=o.onDidChange(()=>{const _=o.all(e);di(_,u)||c.cancel()});try{const _=await Promise.all(f),v=_.map(C=>C.actions).flat(),b=[...xa(_.map(C=>C.documentation)),...Nme(o,e,i,v)];return new kv(v,b,g)}finally{p.dispose(),c.dispose()}}function Eme(o,e,t){return o.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(n=>Dme(t,new Rt(n))):!0)}function*Nme(o,e,t,i){var n,s,r;if(e&&i.length)for(const a of o.all(e))a._getAdditionalMenuItems&&(yield*(n=a._getAdditionalMenuItems)===null||n===void 0?void 0:n.call(a,{trigger:t.type,only:(r=(s=t.filter)===null||s===void 0?void 0:s.include)===null||r===void 0?void 0:r.value},i.map(l=>l.action)))}function Tme(o,e,t){if(!o.documentation)return;const i=o.documentation.map(n=>({kind:new Rt(n.kind),command:n.command}));if(t){let n;for(const s of i)s.kind.contains(t)&&(n?n.kind.contains(s.kind)&&(n=s):n=s);if(n)return n==null?void 0:n.command}for(const n of e)if(n.kind){for(const s of i)if(s.kind.contains(new Rt(n.kind)))return s.command}}var qu;(function(o){o.OnSave="onSave",o.FromProblemsView="fromProblemsView",o.FromCodeActions="fromCodeActions",o.FromAILightbulb="fromAILightbulb"})(qu||(qu={}));async function Mme(o,e,t,i,n=st.None){var s;const r=o.get($0),a=o.get(Qt),l=o.get(Bn),d=o.get(Ri);if(l.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.action.title,codeActionKind:e.action.kind,codeActionIsPreferred:!!e.action.isPreferred,reason:t}),await e.resolve(n),!n.isCancellationRequested&&!(!((s=e.action.edit)===null||s===void 0)&&s.edits.length&&!(await r.apply(e.action.edit,{editor:i==null?void 0:i.editor,label:e.action.title,quotableLabel:e.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:t!==qu.OnSave,showPreview:i==null?void 0:i.preview})).isApplied)&&e.action.command)try{await a.executeCommand(e.action.command.id,...e.action.command.arguments||[])}catch(c){const h=Rme(c);d.error(typeof h=="string"?h:m("applyCodeActionFailed","An unknown error occurred while applying the code action"))}}function Rme(o){return typeof o=="string"?o:o instanceof Error&&typeof o.message=="string"?o.message:void 0}ct.registerCommand("_executeCodeActionProvider",async function(o,e,t,i,n){if(!(e instanceof ke))throw or();const{codeActionProvider:s}=o.get(me),r=o.get(ai).getModel(e);if(!r)throw or();const a=_e.isISelection(t)?_e.liftSelection(t):x.isIRange(t)?r.validateRange(t):void 0;if(!a)throw or();const l=typeof i=="string"?new Rt(i):void 0,d=await Iv(s,r,a,{type:1,triggerAction:lo.Default,filter:{includeSourceActions:!0,include:l}},$d.None,st.None),c=[],h=Math.min(d.validActions.length,typeof n=="number"?n:0);for(let u=0;uu.action)}finally{setTimeout(()=>d.dispose(),100)}});var Ame=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Pme=function(o,e){return function(t,i){e(t,i,o)}},lM;let vy=lM=class{constructor(e){this.keybindingService=e}getResolver(){const e=new $r(()=>this.keybindingService.getKeybindings().filter(t=>lM.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===IP?i={kind:ei.SourceOrganizeImports.value}:t.command===EP&&(i={kind:ei.SourceFixAll.value}),{resolvedKeybinding:t.resolvedKeybinding,...pl.fromUser(i,{kind:Rt.None,apply:"never"})}}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.value);return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new Rt(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,s)=>n?n.kind.contains(s.kind)?s:n:s,void 0)}};vy.codeActionCommands=[cz,lz,hz,IP,EP];vy=lM=Ame([Pme(0,St)],vy);N("symbolIcon.arrayForeground",{dark:re,light:re,hcDark:re,hcLight:re},m("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.booleanForeground",{dark:re,light:re,hcDark:re,hcLight:re},m("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},m("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.colorForeground",{dark:re,light:re,hcDark:re,hcLight:re},m("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.constantForeground",{dark:re,light:re,hcDark:re,hcLight:re},m("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},m("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},m("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},m("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},m("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},m("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.fileForeground",{dark:re,light:re,hcDark:re,hcLight:re},m("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.folderForeground",{dark:re,light:re,hcDark:re,hcLight:re},m("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},m("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},m("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.keyForeground",{dark:re,light:re,hcDark:re,hcLight:re},m("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.keywordForeground",{dark:re,light:re,hcDark:re,hcLight:re},m("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},m("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.moduleForeground",{dark:re,light:re,hcDark:re,hcLight:re},m("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.namespaceForeground",{dark:re,light:re,hcDark:re,hcLight:re},m("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.nullForeground",{dark:re,light:re,hcDark:re,hcLight:re},m("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.numberForeground",{dark:re,light:re,hcDark:re,hcLight:re},m("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.objectForeground",{dark:re,light:re,hcDark:re,hcLight:re},m("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.operatorForeground",{dark:re,light:re,hcDark:re,hcLight:re},m("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.packageForeground",{dark:re,light:re,hcDark:re,hcLight:re},m("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.propertyForeground",{dark:re,light:re,hcDark:re,hcLight:re},m("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.referenceForeground",{dark:re,light:re,hcDark:re,hcLight:re},m("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.snippetForeground",{dark:re,light:re,hcDark:re,hcLight:re},m("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.stringForeground",{dark:re,light:re,hcDark:re,hcLight:re},m("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.structForeground",{dark:re,light:re,hcDark:re,hcLight:re},m("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.textForeground",{dark:re,light:re,hcDark:re,hcLight:re},m("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.typeParameterForeground",{dark:re,light:re,hcDark:re,hcLight:re},m("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.unitForeground",{dark:re,light:re,hcDark:re,hcLight:re},m("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));N("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},m("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));const uz=Object.freeze({kind:Rt.Empty,title:m("codeAction.widget.id.more","More Actions...")}),Ome=Object.freeze([{kind:ei.QuickFix,title:m("codeAction.widget.id.quickfix","Quick Fix")},{kind:ei.RefactorExtract,title:m("codeAction.widget.id.extract","Extract"),icon:oe.wrench},{kind:ei.RefactorInline,title:m("codeAction.widget.id.inline","Inline"),icon:oe.wrench},{kind:ei.RefactorRewrite,title:m("codeAction.widget.id.convert","Rewrite"),icon:oe.wrench},{kind:ei.RefactorMove,title:m("codeAction.widget.id.move","Move"),icon:oe.wrench},{kind:ei.SurroundWith,title:m("codeAction.widget.id.surround","Surround With"),icon:oe.surroundWith},{kind:ei.Source,title:m("codeAction.widget.id.source","Source Action"),icon:oe.symbolFile},uz]);function Fme(o,e,t){if(!e)return o.map(s=>{var r;return{kind:"action",item:s,group:uz,disabled:!!s.action.disabled,label:s.action.disabled||s.action.title,canPreview:!!(!((r=s.action.edit)===null||r===void 0)&&r.edits.length)}});const i=Ome.map(s=>({group:s,actions:[]}));for(const s of o){const r=s.action.kind?new Rt(s.action.kind):Rt.None;for(const a of i)if(a.group.kind.contains(r)){a.actions.push(s);break}}const n=[];for(const s of i)if(s.actions.length){n.push({kind:"header",group:s.group});for(const r of s.actions){const a=s.group;n.push({kind:"action",item:r,group:r.action.isAI?{title:a.title,kind:a.kind,icon:oe.sparkle}:a,label:r.action.title,disabled:!!r.action.disabled,keybinding:t(r.action)})}}return n}var Bme=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},gB=function(o,e){return function(t,i){e(t,i,o)}},dM,nm;(function(o){o.Hidden={type:0};class e{constructor(i,n,s,r){this.actions=i,this.trigger=n,this.editorPosition=s,this.widgetPosition=r,this.type=1}}o.Showing=e})(nm||(nm={}));let Eg=dM=class extends W{constructor(e,t,i){super(),this._editor=e,this._keybindingService=t,this._onClick=this._register(new O),this.onClick=this._onClick.event,this._state=nm.Hidden,this._iconClasses=[],this._domNode=te("div.lightBulbWidget"),this._domNode.role="listbox",this._register(zt.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(n=>{const s=this._editor.getModel();(this.state.type!==1||!s||this.state.editorPosition.lineNumber>=s.getLineCount())&&this.hide()})),this._register($q(this._domNode,n=>{if(this.state.type!==1)return;this._editor.focus(),n.preventDefault();const{top:s,height:r}=Oi(this._domNode),a=this._editor.getOption(67);let l=Math.floor(a/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(n.buttons&1)===1&&this.hide()})),this._register(ae.runAndSubscribe(this._keybindingService.onDidUpdateKeybindings,()=>{var n,s,r,a;this._preferredKbLabel=(s=(n=this._keybindingService.lookupKeybinding(dz))===null||n===void 0?void 0:n.getLabel())!==null&&s!==void 0?s:void 0,this._quickFixKbLabel=(a=(r=this._keybindingService.lookupKeybinding(kP))===null||r===void 0?void 0:r.getLabel())!==null&&a!==void 0?a:void 0,this._updateLightBulbTitleAndIcon()}))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();if(!this._editor.getOptions().get(65).enabled)return this.hide();const s=this._editor.getModel();if(!s)return this.hide();const{lineNumber:r,column:a}=s.validatePosition(i),l=s.getOptions().tabSize,d=this._editor.getOptions().get(50),c=s.getLineContent(r),h=SL(c,l),u=d.spaceWidth*h>22,g=b=>b>2&&this._editor.getTopForLineNumber(b)===this._editor.getTopForLineNumber(b-1);let f=r,p=1;if(!u){if(r>1&&!g(r-1))f-=1;else if(r=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},cM=function(o,e){return function(t,i){e(t,i,o)}};const fz="acceptSelectedCodeAction",mz="previewSelectedCodeAction";class Wme{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){var n,s;i.text.textContent=(s=(n=e.group)===null||n===void 0?void 0:n.title)!==null&&s!==void 0?s:""}disposeTemplate(e){}}let hM=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");i.className="title",e.append(i);const n=new Bp(e,to);return{container:e,icon:t,text:i,keybinding:n}}renderElement(e,t,i){var n,s,r;if(!((n=e.group)===null||n===void 0)&&n.icon?(i.icon.className=Te.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=he(e.group.icon.color.id))):(i.icon.className=Te.asClassName(oe.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;i.text.textContent=pz(e.label),i.keybinding.set(e.keybinding),sG(!!e.keybinding,i.keybinding.element);const a=(s=this._keybindingService.lookupKeybinding(fz))===null||s===void 0?void 0:s.getLabel(),l=(r=this._keybindingService.lookupKeybinding(mz))===null||r===void 0?void 0:r.getLabel();i.container.classList.toggle("option-disabled",e.disabled),e.disabled?i.container.title=e.label:a&&l?this._supportsPreview&&e.canPreview?i.container.title=m({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to Apply, Shift+F2 to Preview"']},"{0} to Apply, {1} to Preview",a,l):i.container.title=m({key:"label",comment:['placeholder is a keybinding, e.g "F2 to Apply"']},"{0} to Apply",a):i.container.title=""}disposeTemplate(e){e.keybinding.dispose()}};hM=gz([cM(1,St)],hM);class Hme extends UIEvent{constructor(){super("acceptSelectedAction")}}class fB extends UIEvent{constructor(){super("previewSelectedAction")}}function Vme(o){if(o.kind==="action")return o.label}let uM=class extends W{constructor(e,t,i,n,s,r){super(),this._delegate=n,this._contextViewService=s,this._keybindingService=r,this._actionLineHeight=24,this._headerLineHeight=26,this.cts=this._register(new ci),this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const a={getHeight:l=>l.kind==="header"?this._headerLineHeight:this._actionLineHeight,getTemplateId:l=>l.kind};this._list=this._register(new $o(e,this.domNode,a,[new hM(t,this._keybindingService),new Wme],{keyboardSupport:!1,typeNavigationEnabled:!0,keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:Vme},accessibilityProvider:{getAriaLabel:l=>{if(l.kind==="action"){let d=l.label?pz(l==null?void 0:l.label):"";return l.disabled&&(d=m({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",d,l.disabled)),d}return null},getWidgetAriaLabel:()=>m({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:l=>l.kind==="action"?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(Yg),this._register(this._list.onMouseClick(l=>this.onListClick(l))),this._register(this._list.onMouseOver(l=>this.onListHover(l))),this._register(this._list.onDidChangeFocus(()=>this.onFocus())),this._register(this._list.onDidChangeSelection(l=>this.onListSelection(l))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&e.kind==="action"}hide(e){this._delegate.onHide(e),this.cts.cancel(),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter(l=>l.kind==="header").length,n=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(n);let s=e;if(this._allMenuItems.length>=50)s=380;else{const l=this._allMenuItems.map((d,c)=>{const h=this.domNode.ownerDocument.getElementById(this._list.getElementID(c));if(h){h.style.width="auto";const u=h.getBoundingClientRect().width;return h.style.width="",u}return 0});s=Math.max(...l,e)}const a=Math.min(n,this.domNode.ownerDocument.body.clientHeight*.7);return this._list.layout(a,s),this.domNode.style.height=`${a}px`,this._list.domFocus(),s}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(t.length===0)return;const i=t[0],n=this._list.element(i);if(!this.focusCondition(n))return;const s=e?new fB:new Hme;this._list.setSelection([i],s)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof fB):this._list.setSelection([])}onFocus(){var e,t;const i=this._list.getFocus();if(i.length===0)return;const n=i[0],s=this._list.element(n);(t=(e=this._delegate).onFocus)===null||t===void 0||t.call(e,s.item)}async onListHover(e){const t=e.element;if(t&&t.item&&this.focusCondition(t)){if(this._delegate.onHover&&!t.disabled&&t.kind==="action"){const i=await this._delegate.onHover(t.item,this.cts.token);t.canPreview=i?i.canPreview:void 0}e.index&&this._list.splice(e.index,1,[t])}this._list.setFocus(typeof e.index=="number"?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};uM=gz([cM(4,dc),cM(5,St)],uM);function pz(o){return o.replace(/\r\n|\r|\n/g," ")}var zme=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},zk=function(o,e){return function(t,i){e(t,i,o)}};N("actionBar.toggledBackground",{dark:Hu,light:Hu,hcDark:Hu,hcLight:Hu},m("actionBar.toggledBackground","Background color for toggled action items in action bar."));const Ng={Visible:new de("codeActionMenuVisible",!1,m("codeActionMenuVisible","Whether the action widget list is visible"))},tf=ot("actionWidgetService");let Tg=class extends W{get isVisible(){return Ng.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new ln)}show(e,t,i,n,s,r,a){const l=Ng.Visible.bindTo(this._contextKeyService),d=this._instantiationService.createInstance(uM,e,t,i,n);this._contextViewService.showContextView({getAnchor:()=>s,render:c=>(l.set(!0),this._renderWidget(c,d,a??[])),onHide:c=>{l.reset(),this._onWidgetClosed(c)}},r,!1)}acceptSelected(e){var t;(t=this._list.value)===null||t===void 0||t.acceptSelected(e)}focusPrevious(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusPrevious()}focusNext(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusNext()}hide(e){var t;(t=this._list.value)===null||t===void 0||t.hide(e),this._list.clear()}_renderWidget(e,t,i){var n;const s=document.createElement("div");if(s.classList.add("action-widget"),e.appendChild(s),this._list.value=t,this._list.value)s.appendChild(this._list.value.domNode);else throw new Error("List has no value");const r=new G,a=document.createElement("div"),l=e.appendChild(a);l.classList.add("context-view-block"),r.add(U(l,ee.MOUSE_DOWN,f=>f.stopPropagation()));const d=document.createElement("div"),c=e.appendChild(d);c.classList.add("context-view-pointerBlock"),r.add(U(c,ee.POINTER_MOVE,()=>c.remove())),r.add(U(c,ee.MOUSE_DOWN,()=>c.remove()));let h=0;if(i.length){const f=this._createActionBar(".action-widget-action-bar",i);f&&(s.appendChild(f.getContainer().parentElement),r.add(f),h=f.getContainer().offsetWidth)}const u=(n=this._list.value)===null||n===void 0?void 0:n.layout(h);s.style.width=`${u}px`;const g=r.add(Ea(e));return r.add(g.onDidBlur(()=>this.hide(!0))),r}_createActionBar(e,t){if(!t.length)return;const i=te(e),n=new ur(i);return n.push(t,{icon:!1,label:!0}),n}_onWidgetClosed(e){var t;(t=this._list.value)===null||t===void 0||t.hide(e)}};Tg=zme([zk(0,dc),zk(1,Me),zk(2,Le)],Tg);ht(tf,Tg,1);const rC=1100;Vt(class extends Es{constructor(){super({id:"hideCodeActionWidget",title:Fe("hideCodeActionWidget.title","Hide action widget"),precondition:Ng.Visible,keybinding:{weight:rC,primary:9,secondary:[1033]}})}run(o){o.get(tf).hide(!0)}});Vt(class extends Es{constructor(){super({id:"selectPrevCodeAction",title:Fe("selectPrevCodeAction.title","Select previous action"),precondition:Ng.Visible,keybinding:{weight:rC,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(o){const e=o.get(tf);e instanceof Tg&&e.focusPrevious()}});Vt(class extends Es{constructor(){super({id:"selectNextCodeAction",title:Fe("selectNextCodeAction.title","Select next action"),precondition:Ng.Visible,keybinding:{weight:rC,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(o){const e=o.get(tf);e instanceof Tg&&e.focusNext()}});Vt(class extends Es{constructor(){super({id:fz,title:Fe("acceptSelected.title","Accept selected action"),precondition:Ng.Visible,keybinding:{weight:rC,primary:3,secondary:[2137]}})}run(o){const e=o.get(tf);e instanceof Tg&&e.acceptSelected()}});Vt(class extends Es{constructor(){super({id:mz,title:Fe("previewSelected.title","Preview selected action"),precondition:Ng.Visible,keybinding:{weight:rC,primary:2051}})}run(o){const e=o.get(tf);e instanceof Tg&&e.acceptSelected(!0)}});const _z=new de("supportedCodeAction",""),mB="_typescript.applyFixAllCodeAction";class Ume extends W{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new jr),this._register(this._markerService.onMarkerChanged(s=>this._onMarkerChanges(s))),this._register(this._editor.onDidChangeCursorPosition(()=>this._tryAutoTrigger()))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);this._signalChange(t?{trigger:e,selection:t}:void 0)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some(i=>o2(i,t.uri))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:lo.Default})},this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getSelection();if(e.type===1)return t;const i=this._editor.getOption(65).enabled;if(i!==Er.Off){{if(i===Er.On)return t;if(i===Er.OnCode){if(!t.isEmpty())return t;const s=this._editor.getModel(),{lineNumber:r,column:a}=t.getPosition(),l=s.getLineContent(r);if(l.length===0)return;if(a===1){if(/\s/.test(l[0]))return}else if(a===s.getLineMaxColumn(r)){if(/\s/.test(l[l.length-1]))return}else if(/\s/.test(l[a-2])&&/\s/.test(l[a-1]))return}}return t}}}var Fu;(function(o){o.Empty={type:0};class e{constructor(i,n,s){this.trigger=i,this.position=n,this._cancellablePromise=s,this.type=1,this.actions=s.catch(r=>{if(Ur(r))return vz;throw r})}cancel(){this._cancellablePromise.cancel()}}o.Triggered=e})(Fu||(Fu={}));const vz=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1,hasAIFix:!1,allAIFixes:!1});class $me extends W{constructor(e,t,i,n,s,r){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=s,this._configurationService=r,this._codeActionOracle=this._register(new ln),this._state=Fu.Empty,this._onDidChangeState=this._register(new O),this.onDidChangeState=this._onDidChangeState.event,this._disposed=!1,this._supportedCodeActions=_z.bindTo(n),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._register(this._editor.onDidChangeConfiguration(a=>{a.hasChanged(65)&&this._update()})),this._update()}dispose(){this._disposed||(this._disposed=!0,super.dispose(),this.setState(Fu.Empty,!0))}_settingEnabledNearbyQuickfixes(){var e;const t=(e=this._editor)===null||e===void 0?void 0:e.getModel();return this._configurationService?this._configurationService.getValue("editor.codeActionWidget.includeNearbyQuickFixes",{resource:t==null?void 0:t.uri}):!1}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(Fu.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(91)){const t=this._registry.all(e).flatMap(i=>{var n;return(n=i.providedCodeActionKinds)!==null&&n!==void 0?n:[]});this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new Ume(this._editor,this._markerService,i=>{var n;if(!i){this.setState(Fu.Empty);return}const s=i.selection.getStartPosition(),r=an(async d=>{var c,h,u,g,f,p,_,v,b,C;if(this._settingEnabledNearbyQuickfixes()&&i.trigger.type===1&&(i.trigger.triggerAction===lo.QuickFix||!((h=(c=i.trigger.filter)===null||c===void 0?void 0:c.include)===null||h===void 0)&&h.contains(ei.QuickFix))){const w=await Iv(this._registry,e,i.selection,i.trigger,$d.None,d),S=[...w.allActions];if(d.isCancellationRequested)return vz;const L=(u=w.validActions)===null||u===void 0?void 0:u.some(I=>I.action.kind?ei.QuickFix.contains(new Rt(I.action.kind)):!1),D=this._markerService.read({resource:e.uri});if(L){for(const I of w.validActions)!((f=(g=I.action.command)===null||g===void 0?void 0:g.arguments)===null||f===void 0)&&f.some(T=>typeof T=="string"&&T.includes(mB))&&(I.action.diagnostics=[...D.filter(T=>T.relatedInformation)]);return{validActions:w.validActions,allActions:S,documentation:w.documentation,hasAutoFix:w.hasAutoFix,hasAIFix:w.hasAIFix,allAIFixes:w.allAIFixes,dispose:()=>{w.dispose()}}}else if(!L&&D.length>0){const I=i.selection.getPosition();let T=I,V=Number.MAX_VALUE;const P=[...w.validActions];for(const B of D){const j=B.endColumn,X=B.endLineNumber,pe=B.startLineNumber;if(X===I.lineNumber||pe===I.lineNumber){T=new F(X,j);const ye={type:i.trigger.type,triggerAction:i.trigger.triggerAction,filter:{include:!((p=i.trigger.filter)===null||p===void 0)&&p.include?(_=i.trigger.filter)===null||_===void 0?void 0:_.include:ei.QuickFix},autoApply:i.trigger.autoApply,context:{notAvailableMessage:((v=i.trigger.context)===null||v===void 0?void 0:v.notAvailableMessage)||"",position:T}},Ee=new _e(T.lineNumber,T.column,T.lineNumber,T.column),fe=await Iv(this._registry,e,Ee,ye,$d.None,d);if(fe.validActions.length!==0){for(const Ue of fe.validActions)!((C=(b=Ue.action.command)===null||b===void 0?void 0:b.arguments)===null||C===void 0)&&C.some(Ve=>typeof Ve=="string"&&Ve.includes(mB))&&(Ue.action.diagnostics=[...D.filter(Ve=>Ve.relatedInformation)]);w.allActions.length===0&&S.push(...fe.allActions),Math.abs(I.column-j)X.findIndex(pe=>pe.action.title===B.action.title)===j);return A.sort((B,j)=>B.action.isPreferred&&!j.action.isPreferred?-1:!B.action.isPreferred&&j.action.isPreferred||B.action.isAI&&!j.action.isAI?1:!B.action.isAI&&j.action.isAI?-1:0),{validActions:A,allActions:S,documentation:w.documentation,hasAutoFix:w.hasAutoFix,hasAIFix:w.hasAIFix,allAIFixes:w.allAIFixes,dispose:()=>{w.dispose()}}}}return Iv(this._registry,e,i.selection,i.trigger,$d.None,d)});i.trigger.type===1&&((n=this._progressService)===null||n===void 0||n.showWhile(r,250));const a=new Fu.Triggered(i.trigger,s,r);let l=!1;this._state.type===1&&(l=this._state.trigger.type===1&&a.type===1&&a.trigger.type===2&&this._state.position!==a.position),l?setTimeout(()=>{this.setState(a)},500):this.setState(a)},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:lo.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;(t=this._codeActionOracle.value)===null||t===void 0||t.trigger(e)}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=e,!t&&!this._disposed&&this._onDidChangeState.fire(e))}}var jme=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ga=function(o,e){return function(t,i){e(t,i,o)}},Tf;const Kme="quickfix-edit-highlight";let Mh=Tf=class extends W{static get(e){return e.getContribution(Tf.ID)}constructor(e,t,i,n,s,r,a,l,d,c,h){super(),this._commandService=a,this._configurationService=l,this._actionWidgetService=d,this._instantiationService=c,this._telemetryService=h,this._activeCodeActions=this._register(new ln),this._showDisabled=!1,this._disposed=!1,this._editor=e,this._model=this._register(new $me(this._editor,s.codeActionProvider,t,i,r,l)),this._register(this._model.onDidChangeState(u=>this.update(u))),this._lightBulbWidget=new $r(()=>{const u=this._editor.getContribution(Eg.ID);return u&&this._register(u.onClick(g=>this.showCodeActionsFromLightbulb(g.actions,g))),u}),this._resolver=n.createInstance(vy),this._register(this._editor.onDidLayoutChange(()=>this._actionWidgetService.hide()))}dispose(){this._disposed=!0,super.dispose()}async showCodeActionsFromLightbulb(e,t){if(this._telemetryService.publicLog2("codeAction.showCodeActionsFromLightbulb",{codeActionListLength:e.validActions.length,codeActions:e.validActions.map(i=>i.action.title),codeActionProviders:e.validActions.map(i=>{var n,s;return(s=(n=i.provider)===null||n===void 0?void 0:n.displayName)!==null&&s!==void 0?s:""})}),e.allAIFixes&&e.validActions.length===1){const i=e.validActions[0],n=i.action.command;n&&n.id==="inlineChat.start"&&n.arguments&&n.arguments.length>=1&&(n.arguments[0]={...n.arguments[0],autoSend:!1}),await this._applyCodeAction(i,!1,!1,qu.FromAILightbulb);return}await this.showCodeActionList(e,t,{includeDisabledActions:!1,fromLightbulb:!0})}showCodeActions(e,t,i){return this.showCodeActionList(t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,n){var s;if(!this._editor.hasModel())return;(s=Ls.get(this._editor))===null||s===void 0||s.closeMessage();const r=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:n,context:{notAvailableMessage:e,position:r}})}_trigger(e){return this._model.trigger(e)}async _applyCodeAction(e,t,i,n){try{await this._instantiationService.invokeFunction(Mme,e,n,{preview:i,editor:this._editor})}finally{t&&this._trigger({type:2,triggerAction:lo.QuickFix,filter:{}})}}async update(e){var t,i,n,s,r,a,l;if(e.type!==1){(t=this._lightBulbWidget.rawValue)===null||t===void 0||t.hide();return}let d;try{d=await e.actions}catch(c){ze(c);return}if(!this._disposed)if((i=this._lightBulbWidget.value)===null||i===void 0||i.update(d,e.trigger,e.position),e.trigger.type===1){if(!((n=e.trigger.filter)===null||n===void 0)&&n.include){const h=this.tryGetValidActionToApply(e.trigger,d);if(h){try{(s=this._lightBulbWidget.value)===null||s===void 0||s.hide(),await this._applyCodeAction(h,!1,!1,qu.FromCodeActions)}finally{d.dispose()}return}if(e.trigger.context){const u=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,d);if(u&&u.action.disabled){(r=Ls.get(this._editor))===null||r===void 0||r.showMessage(u.action.disabled,e.trigger.context.position),d.dispose();return}}}const c=!!(!((a=e.trigger.filter)===null||a===void 0)&&a.include);if(e.trigger.context&&(!d.allActions.length||!c&&!d.validActions.length)){(l=Ls.get(this._editor))===null||l===void 0||l.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=d,d.dispose();return}this._activeCodeActions.value=d,this.showCodeActionList(d,this.toCoords(e.position),{includeDisabledActions:c,fromLightbulb:!1})}else this._actionWidgetService.isVisible?d.dispose():this._activeCodeActions.value=d}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length&&(e.autoApply==="first"&&t.validActions.length===0||e.autoApply==="ifSingle"&&t.allActions.length===1))return t.allActions.find(({action:i})=>i.disabled)}tryGetValidActionToApply(e,t){if(t.validActions.length&&(e.autoApply==="first"&&t.validActions.length>0||e.autoApply==="ifSingle"&&t.validActions.length===1))return t.validActions[0]}async showCodeActionList(e,t,i){const n=this._editor.createDecorationsCollection(),s=this._editor.getDomNode();if(!s)return;const r=i.includeDisabledActions&&(this._showDisabled||e.validActions.length===0)?e.allActions:e.validActions;if(!r.length)return;const a=F.isIPosition(t)?this.toCoords(t):t,l={onSelect:async(d,c)=>{this._applyCodeAction(d,!0,!!c,i.fromLightbulb?qu.FromAILightbulb:qu.FromCodeActions),this._actionWidgetService.hide(!1),n.clear()},onHide:d=>{var c;(c=this._editor)===null||c===void 0||c.focus(),n.clear(),i.fromLightbulb&&d!==void 0&&this._telemetryService.publicLog2("codeAction.showCodeActionList.onHide",{codeActionListLength:e.validActions.length,didCancel:d,codeActions:e.validActions.map(h=>h.action.title)})},onHover:async(d,c)=>{var h;if(c.isCancellationRequested)return;let u=!1;const g=d.action.kind;if(g){const f=new Rt(g);u=[ei.RefactorExtract,ei.RefactorInline,ei.RefactorRewrite,ei.RefactorMove,ei.Source].some(_=>_.contains(f))}return{canPreview:u||!!(!((h=d.action.edit)===null||h===void 0)&&h.edits.length)}},onFocus:d=>{var c,h;if(d&&d.action){const u=d.action.ranges,g=d.action.diagnostics;if(n.clear(),u&&u.length>0){const f=g&&(g==null?void 0:g.length)>1?g.map(p=>({range:p,options:Tf.DECORATION})):u.map(p=>({range:p,options:Tf.DECORATION}));n.set(f)}else if(g&&g.length>0){const f=g.map(_=>({range:_,options:Tf.DECORATION}));n.set(f);const p=g[0];if(p.startLineNumber&&p.startColumn){const _=(h=(c=this._editor.getModel())===null||c===void 0?void 0:c.getWordAtPosition({lineNumber:p.startLineNumber,column:p.startColumn}))===null||h===void 0?void 0:h.word;Al(m("editingNewSelection","Context: {0} at line {1} and column {2}.",_,p.startLineNumber,p.startColumn))}}}else n.clear()}};this._actionWidgetService.show("codeActionWidget",!0,Fme(r,this._shouldShowHeaders(),this._resolver.getResolver()),l,a,s,this._getActionBarActions(e,t,i))}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=Oi(this._editor.getDomNode()),n=i.left+t.left,s=i.top+t.top+t.height;return{x:n,y:s}}_shouldShowHeaders(){var e;const t=(e=this._editor)===null||e===void 0?void 0:e.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:t==null?void 0:t.uri})}_getActionBarActions(e,t,i){if(i.fromLightbulb)return[];const n=e.documentation.map(s=>{var r;return{id:s.id,label:s.title,tooltip:(r=s.tooltip)!==null&&r!==void 0?r:"",class:void 0,enabled:!0,run:()=>{var a;return this._commandService.executeCommand(s.id,...(a=s.arguments)!==null&&a!==void 0?a:[])}}});return i.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&n.push(this._showDisabled?{id:"hideMoreActions",label:m("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:m("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),n}};Mh.ID="editor.contrib.codeActionController";Mh.DECORATION=je.register({description:"quickfix-highlight",className:Kme});Mh=Tf=jme([Ga(1,Zl),Ga(2,Me),Ga(3,Le),Ga(4,me),Ga(5,Zh),Ga(6,Qt),Ga(7,Je),Ga(8,tf),Ga(9,Le),Ga(10,Bn)],Mh);gr((o,e)=>{((n,s)=>{s&&e.addRule(`.monaco-editor ${n} { background-color: ${s}; }`)})(".quickfix-edit-highlight",o.getColor(Id));const i=o.getColor(jc);i&&e.addRule(`.monaco-editor .quickfix-edit-highlight { border: 1px ${Sa(o.type)?"dotted":"solid"} ${i}; box-sizing: border-box; }`)});function aC(o){return K.regex(_z.keys()[0],new RegExp("(\\s|^)"+Oo(o.value)+"\\b"))}const NP={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:m("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:m("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[m("args.schema.apply.first","Always apply the first returned code action."),m("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),m("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:m("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};function nf(o,e,t,i,n=lo.Default){if(o.hasModel()){const s=Mh.get(o);s==null||s.manualTriggerAtCurrentPosition(e,n,t,i)}}class qme extends ce{constructor(){super({id:kP,label:m("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:K.and(E.writable,E.hasCodeActionsProvider),kbOpts:{kbExpr:E.textInputFocus,primary:2137,weight:100}})}run(e,t){return nf(t,m("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,lo.QuickFix)}}class Gme extends Xi{constructor(){super({id:lz,precondition:K.and(E.writable,E.hasCodeActionsProvider),metadata:{description:"Trigger a code action",args:[{name:"args",schema:NP}]}})}runEditorCommand(e,t,i){const n=pl.fromUser(i,{kind:Rt.Empty,apply:"ifSingle"});return nf(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?m("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):m("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?m("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):m("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class Zme extends ce{constructor(){super({id:cz,label:m("refactor.label","Refactor..."),alias:"Refactor...",precondition:K.and(E.writable,E.hasCodeActionsProvider),kbOpts:{kbExpr:E.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:K.and(E.writable,aC(ei.Refactor))},metadata:{description:"Refactor...",args:[{name:"args",schema:NP}]}})}run(e,t,i){const n=pl.fromUser(i,{kind:ei.Refactor,apply:"never"});return nf(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?m("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",i.kind):m("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",i.kind):n.preferred?m("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):m("editor.action.refactor.noneMessage","No refactorings available"),{include:ei.Refactor.contains(n.kind)?n.kind:Rt.None,onlyIncludePreferredActions:n.preferred},n.apply,lo.Refactor)}}class Yme extends ce{constructor(){super({id:hz,label:m("source.label","Source Action..."),alias:"Source Action...",precondition:K.and(E.writable,E.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:K.and(E.writable,aC(ei.Source))},metadata:{description:"Source Action...",args:[{name:"args",schema:NP}]}})}run(e,t,i){const n=pl.fromUser(i,{kind:ei.Source,apply:"never"});return nf(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?m("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):m("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?m("editor.action.source.noneMessage.preferred","No preferred source actions available"):m("editor.action.source.noneMessage","No source actions available"),{include:ei.Source.contains(n.kind)?n.kind:Rt.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,lo.SourceAction)}}class Qme extends ce{constructor(){super({id:IP,label:m("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:K.and(E.writable,aC(ei.SourceOrganizeImports)),kbOpts:{kbExpr:E.textInputFocus,primary:1581,weight:100}})}run(e,t){return nf(t,m("editor.action.organize.noneMessage","No organize imports action available"),{include:ei.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",lo.OrganizeImports)}}class Xme extends ce{constructor(){super({id:EP,label:m("fixAll.label","Fix All"),alias:"Fix All",precondition:K.and(E.writable,aC(ei.SourceFixAll))})}run(e,t){return nf(t,m("fixAll.noneMessage","No fix all action available"),{include:ei.SourceFixAll,includeSourceActions:!0},"ifSingle",lo.FixAll)}}class Jme extends ce{constructor(){super({id:dz,label:m("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:K.and(E.writable,aC(ei.QuickFix)),kbOpts:{kbExpr:E.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(e,t){return nf(t,m("editor.action.autoFix.noneMessage","No auto fixes available"),{include:ei.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",lo.AutoFix)}}vt(Mh.ID,Mh,3);vt(Eg.ID,Eg,4);J(qme);J(Zme);J(Yme);J(Qme);J(Jme);J(Xme);le(new Gme);hi.as(Ba.Configuration).registerConfiguration({...ML,properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:m("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}});hi.as(Ba.Configuration).registerConfiguration({...ML,properties:{"editor.codeActionWidget.includeNearbyQuickFixes":{type:"boolean",scope:5,description:m("includeNearbyQuickFixes","Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic."),default:!0}}});class gM{constructor(){this.lenses=[],this._disposables=new G}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}async function bz(o,e,t){const i=o.ordered(e),n=new Map,s=new gM,r=i.map(async(a,l)=>{n.set(a,l);try{const d=await Promise.resolve(a.provideCodeLenses(e,t));d&&s.add(d,a)}catch(d){yi(d)}});return await Promise.all(r),s.lenses=s.lenses.sort((a,l)=>a.symbol.range.startLineNumberl.symbol.range.startLineNumber?1:n.get(a.provider)n.get(l.provider)?1:a.symbol.range.startColumnl.symbol.range.startColumn?1:0),s}ct.registerCommand("_executeCodeLensProvider",function(o,...e){let[t,i]=e;pt(ke.isUri(t)),pt(typeof i=="number"||!i);const{codeLensProvider:n}=o.get(me),s=o.get(ai).getModel(t);if(!s)throw or();const r=[],a=new G;return bz(n,s,st.None).then(l=>{a.add(l);const d=[];for(const c of l.lenses)i==null||c.symbol.command?r.push(c.symbol):i-- >0&&c.provider.resolveCodeLens&&d.push(Promise.resolve(c.provider.resolveCodeLens(s,c.symbol,st.None)).then(h=>r.push(h||c.symbol)));return Promise.all(d)}).then(()=>r).finally(()=>{setTimeout(()=>a.dispose(),100)})});var epe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},tpe=function(o,e){return function(t,i){e(t,i,o)}};const Cz=ot("ICodeLensCache");class pB{constructor(e,t){this.lineCount=e,this.data=t}}let fM=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new ql(20,.75);const t="codelens/cache";E_(Mt,()=>e.remove(t,1));const i="codelens/cache2",n=e.get(i,1,"{}");this._deserialize(n),ae.once(e.onWillSaveState)(s=>{s.reason===Eb.SHUTDOWN&&e.store(i,this._serialize(),1,1)})}put(e,t){const i=t.lenses.map(r=>{var a;return{range:r.symbol.range,command:r.symbol.command&&{id:"",title:(a=r.symbol.command)===null||a===void 0?void 0:a.title}}}),n=new gM;n.add({lenses:i,dispose:()=>{}},this._fakeProvider);const s=new pB(e.getLineCount(),n);this._cache.set(e.uri.toString(),s)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const n=new Set;for(const s of i.data.lenses)n.add(s.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const i in t){const n=t[i],s=[];for(const a of n.lines)s.push({range:new x(a,1,a,11)});const r=new gM;r.add({lenses:s,dispose(){}},this._fakeProvider),this._cache.set(i,new pB(n.lineCount,r))}}catch{}}};fM=epe([tpe(0,Kr)],fM);ht(Cz,fM,1);class ipe{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){this._lastHeight===void 0?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return this._lastHeight!==0&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class qb{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${qb._idPool++}`,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const i=[];let n=!1;for(let s=0;s{d.symbol.command&&l.push(d.symbol),i.addDecoration({range:d.symbol.range,options:_B},h=>this._decorationIds[c]=h),a?a=x.plusRange(a,d.symbol.range):a=x.lift(d.symbol.range)}),this._viewZone=new ipe(a.startLineNumber-1,s,r),this._viewZoneId=n.addZone(this._viewZone),l.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(l,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new qb(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t==null||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!!(i&&x.isEmpty(n.range)===i.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((i,n)=>{t.addDecoration({range:i.symbol.range,options:_B},s=>this._decorationIds[n]=s)})}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},C_=function(o,e){return function(t,i){e(t,i,o)}};let mp=class{constructor(e,t,i,n,s,r){this._editor=e,this._languageFeaturesService=t,this._commandService=n,this._notificationService=s,this._codeLensCache=r,this._disposables=new G,this._localToDispose=new G,this._lenses=[],this._oldCodeLensModels=new G,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new At(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(a=>{(a.hasChanged(50)||a.hasChanged(19)||a.hasChanged(18))&&this._updateLensStyle(),a.hasChanged(17)&&this._onModelChange()})),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),(e=this._currentCodeLensModel)===null||e===void 0||e.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(67)/this._editor.getOption(52));let t=this._editor.getOption(19);return(!t||t<5)&&(t=this._editor.getOption(52)*.9|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(18),n=this._editor.getOption(50),{style:s}=this._editor.getContainerDomNode();s.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),s.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),s.setProperty("--vscode-editorCodeLens-fontFeatureSettings",n.fontFeatureSettings),i&&(s.setProperty("--vscode-editorCodeLens-fontFamily",i),s.setProperty("--vscode-editorCodeLens-fontFamilyDefault",Us.fontFamily)),this._editor.changeViewZones(r=>{for(const a of this._lenses)a.updateHeight(e,r)})}_localDispose(){var e,t,i;(e=this._getCodeLensModelPromise)===null||e===void 0||e.cancel(),this._getCodeLensModelPromise=void 0,(t=this._resolveCodeLensesPromise)===null||t===void 0||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),(i=this._currentCodeLensModel)===null||i===void 0||i.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e||!this._editor.getOption(17)||e.isTooLargeForTokenization())return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e)){t&&Sh(()=>{const n=this._codeLensCache.get(e);t===n&&(this._codeLensCache.delete(e),this._onModelChange())},30*1e3,this._localToDispose);return}for(const n of this._languageFeaturesService.codeLensProvider.all(e))if(typeof n.onDidChange=="function"){const s=n.onDidChange(()=>i.schedule());this._localToDispose.add(s)}const i=new At(()=>{var n;const s=Date.now();(n=this._getCodeLensModelPromise)===null||n===void 0||n.cancel(),this._getCodeLensModelPromise=an(r=>bz(this._languageFeaturesService.codeLensProvider,e,r)),this._getCodeLensModelPromise.then(r=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=r,this._codeLensCache.put(e,r);const a=this._provideCodeLensDebounce.update(e,Date.now()-s);i.delay=a,this._renderCodeLensSymbols(r),this._resolveCodeLensesInViewportSoon()},ze)},this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add(Ce(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{var n;this._editor.changeDecorations(s=>{this._editor.changeViewZones(r=>{const a=[];let l=-1;this._lenses.forEach(c=>{!c.isValid()||l===c.getLineNumber()?a.push(c):(c.update(r),l=c.getLineNumber())});const d=new Uk;a.forEach(c=>{c.dispose(d,r),this._lenses.splice(this._lenses.indexOf(c),1)}),d.commit(s)})}),i.schedule(),this._resolveCodeLensesScheduler.cancel(),(n=this._resolveCodeLensesPromise)===null||n===void 0||n.cancel(),this._resolveCodeLensesPromise=void 0})),this._localToDispose.add(this._editor.onDidFocusEditorText(()=>{i.schedule()})),this._localToDispose.add(this._editor.onDidBlurEditorText(()=>{i.cancel()})),this._localToDispose.add(this._editor.onDidScrollChange(n=>{n.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(Ce(()=>{if(this._editor.getModel()){const n=Pa.capture(this._editor);this._editor.changeDecorations(s=>{this._editor.changeViewZones(r=>{this._disposeAllLenses(s,r)})}),n.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(n=>{if(n.target.type!==9)return;let s=n.target.element;if((s==null?void 0:s.tagName)==="SPAN"&&(s=s.parentElement),(s==null?void 0:s.tagName)==="A")for(const r of this._lenses){const a=r.getCommand(s);if(a){this._commandService.executeCommand(a.id,...a.arguments||[]).catch(l=>this._notificationService.error(l));break}}})),i.schedule()}_disposeAllLenses(e,t){const i=new Uk;for(const n of this._lenses)n.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let n;for(const a of e.lenses){const l=a.symbol.range.startLineNumber;l<1||l>t||(n&&n[n.length-1].symbol.range.startLineNumber===l?n.push(a):(n=[a],i.push(n)))}if(!i.length&&!this._lenses.length)return;const s=Pa.capture(this._editor),r=this._getLayoutInfo();this._editor.changeDecorations(a=>{this._editor.changeViewZones(l=>{const d=new Uk;let c=0,h=0;for(;hthis._resolveCodeLensesInViewportSoon())),c++,h++)}for(;cthis._resolveCodeLensesInViewportSoon())),h++;d.commit(a)})}),s.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;(e=this._resolveCodeLensesPromise)===null||e===void 0||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const i=[],n=[];if(this._lenses.forEach(a=>{const l=a.computeIfNecessary(t);l&&(i.push(l),n.push(a))}),i.length===0)return;const s=Date.now(),r=an(a=>{const l=i.map((d,c)=>{const h=new Array(d.length),u=d.map((g,f)=>!g.symbol.command&&typeof g.provider.resolveCodeLens=="function"?Promise.resolve(g.provider.resolveCodeLens(t,g.symbol,a)).then(p=>{h[f]=p},yi):(h[f]=g.symbol,Promise.resolve(void 0)));return Promise.all(u).then(()=>{!a.isCancellationRequested&&!n[c].isDisposed()&&n[c].updateCommands(h)})});return Promise.all(l)});this._resolveCodeLensesPromise=r,this._resolveCodeLensesPromise.then(()=>{const a=this._resolveCodeLensesDebounce.update(t,Date.now()-s);this._resolveCodeLensesScheduler.delay=a,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},a=>{ze(a),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}async getModel(){var e;return await this._getCodeLensModelPromise,await this._resolveCodeLensesPromise,!((e=this._currentCodeLensModel)===null||e===void 0)&&e.isDisposed?void 0:this._currentCodeLensModel}};mp.ID="css.editor.codeLens";mp=npe([C_(1,me),C_(2,fr),C_(3,Qt),C_(4,Ri),C_(5,Cz)],mp);vt(mp.ID,mp,1);J(class extends ce{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:E.hasCodeLensProvider,label:m("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}async run(e,t){if(!t.hasModel())return;const i=e.get(_r),n=e.get(Qt),s=e.get(Ri),r=t.getSelection().positionLineNumber,a=t.getContribution(mp.ID);if(!a)return;const l=await a.getModel();if(!l)return;const d=[];for(const u of l.lenses)u.symbol.command&&u.symbol.range.startLineNumber===r&&d.push({label:u.symbol.command.title,command:u.symbol.command});if(d.length===0)return;const c=await i.pick(d,{canPickMany:!1,placeHolder:m("placeHolder","Select a command")});if(!c)return;let h=c.command;if(l.isDisposed){const u=await a.getModel(),g=u==null?void 0:u.lenses.find(f=>{var p;return f.symbol.range.startLineNumber===r&&((p=f.symbol.command)===null||p===void 0?void 0:p.title)===h.title});if(!g||!g.symbol.command)return;h=g.symbol.command}try{await n.executeCommand(h.id,...h.arguments||[])}catch(u){s.error(u)}}});var spe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},$k=function(o,e){return function(t,i){e(t,i,o)}};class TP{constructor(e,t){this._editorWorkerClient=new MA(e,!1,"editorWorkerService",t)}async provideDocumentColors(e,t){return this._editorWorkerClient.computeDefaultDocumentColors(e.uri)}provideColorPresentations(e,t,i){const n=t.range,s=t.color,r=s.alpha,a=new z(new gt(Math.round(255*s.red),Math.round(255*s.green),Math.round(255*s.blue),r)),l=r?z.Format.CSS.formatRGB(a):z.Format.CSS.formatRGBA(a),d=r?z.Format.CSS.formatHSL(a):z.Format.CSS.formatHSLA(a),c=r?z.Format.CSS.formatHex(a):z.Format.CSS.formatHexA(a),h=[];return h.push({label:l,textEdit:{range:n,text:l}}),h.push({label:d,textEdit:{range:n,text:d}}),h.push({label:c,textEdit:{range:n,text:c}}),h}}let mM=class extends W{constructor(e,t,i){super(),this._register(i.colorProvider.register("*",new TP(e,t)))}};mM=spe([$k(0,ai),$k(1,$t),$k(2,me)],mM);eC(mM);async function wz(o,e,t,i=!0){return MP(new ope,o,e,t,i)}function Sz(o,e,t,i){return Promise.resolve(t.provideColorPresentations(o,e,i))}class ope{constructor(){}async compute(e,t,i,n){const s=await e.provideDocumentColors(t,i);if(Array.isArray(s))for(const r of s)n.push({colorInfo:r,provider:e});return Array.isArray(s)}}class rpe{constructor(){}async compute(e,t,i,n){const s=await e.provideDocumentColors(t,i);if(Array.isArray(s))for(const r of s)n.push({range:r.range,color:[r.color.red,r.color.green,r.color.blue,r.color.alpha]});return Array.isArray(s)}}class ape{constructor(e){this.colorInfo=e}async compute(e,t,i,n){const s=await e.provideColorPresentations(t,this.colorInfo,st.None);return Array.isArray(s)&&n.push(...s),Array.isArray(s)}}async function MP(o,e,t,i,n){let s=!1,r;const a=[],l=e.ordered(t);for(let d=l.length-1;d>=0;d--){const c=l[d];if(c instanceof TP)r=c;else try{await o.compute(c,t,i,a)&&(s=!0)}catch(h){yi(h)}}return s?a:r&&n?(await o.compute(r,t,i,a),a):[]}function yz(o,e){const{colorProvider:t}=o.get(me),i=o.get(ai).getModel(e);if(!i)throw or();const n=o.get(Je).getValue("editor.defaultColorDecorators",{resource:e});return{model:i,colorProviderRegistry:t,isDefaultColorDecoratorsEnabled:n}}ct.registerCommand("_executeDocumentColorProvider",function(o,...e){const[t]=e;if(!(t instanceof ke))throw or();const{model:i,colorProviderRegistry:n,isDefaultColorDecoratorsEnabled:s}=yz(o,t);return MP(new rpe,n,i,st.None,s)});ct.registerCommand("_executeColorPresentationProvider",function(o,...e){const[t,i]=e,{uri:n,range:s}=i;if(!(n instanceof ke)||!Array.isArray(t)||t.length!==4||!x.isIRange(s))throw or();const{model:r,colorProviderRegistry:a,isDefaultColorDecoratorsEnabled:l}=yz(o,n),[d,c,h,u]=t;return MP(new ape({range:s,color:{red:d,green:c,blue:h,alpha:u}}),a,r,st.None,l)});var lpe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},jk=function(o,e){return function(t,i){e(t,i,o)}},pM;const Lz=Object.create({});let Rh=pM=class extends W{constructor(e,t,i,n){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new G),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new A0(this._editor),this._decoratorLimitReporter=new dpe,this._colorDecorationClassRefs=this._register(new G),this._debounceInformation=n.for(i.colorProvider,"Document Colors",{min:pM.RECOMPUTE_TIME}),this._register(e.onDidChangeModel(()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()})),this._register(e.onDidChangeModelLanguage(()=>this.updateColors())),this._register(i.colorProvider.onDidChange(()=>this.updateColors())),this._register(e.onDidChangeConfiguration(s=>{const r=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(147);const a=r!==this._isColorDecoratorsEnabled||s.hasChanged(21),l=s.hasChanged(147);(a||l)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(147),this.updateColors()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&typeof i=="object"){const n=i.colorDecorators;if(n&&n.enable!==void 0&&!n.enable)return n.enable}return this._editor.getOption(20)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;const e=this._editor.getModel();!e||!this._languageFeaturesService.colorProvider.has(e)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new jr,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}async beginCompute(){this._computePromise=an(async e=>{const t=this._editor.getModel();if(!t)return[];const i=new In(!1),n=await wz(this._languageFeaturesService.colorProvider,t,e,this._isDefaultColorDecoratorsEnabled);return this._debounceInformation.update(t,i.elapsed()),n});try{const e=await this._computePromise;this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}catch(e){ze(e)}}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map(i=>({range:{startLineNumber:i.colorInfo.range.startLineNumber,startColumn:i.colorInfo.range.startColumn,endLineNumber:i.colorInfo.range.endLineNumber,endColumn:i.colorInfo.range.endColumn},options:je.EMPTY}));this._editor.changeDecorations(i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((n,s)=>this._colorDatas.set(n,e[s]))})}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[],i=this._editor.getOption(21);for(let s=0;sthis._colorDatas.has(n.id));return i.length===0?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};Rh.ID="editor.contrib.colorDetector";Rh.RECOMPUTE_TIME=1e3;Rh=pM=lpe([jk(1,Je),jk(2,me),jk(3,fr)],Rh);class dpe{constructor(){this._onDidChange=new O,this._computed=0,this._limited=!1}update(e,t){(e!==this._computed||t!==this._limited)&&(this._computed=e,this._limited=t,this._onDidChange.fire())}}vt(Rh.ID,Rh,1);class cpe{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new O,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new O,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let n=0;n{this.backgroundColor=r.getColor(rS)||z.white})),this._register(U(this._pickedColorNode,ee.CLICK,()=>this.model.selectNextColorPresentation())),this._register(U(this._originalColorNode,ee.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this._pickedColorNode.style.backgroundColor=z.Format.CSS.format(t.color)||"",this._pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color),this.showingStandaloneColorPicker&&(this._domNode.classList.add("standalone-colorpicker"),this._closeButton=this._register(new upe(this._domNode)))}get closeButton(){return this._closeButton}get pickedColorNode(){return this._pickedColorNode}get originalColorNode(){return this._originalColorNode}onDidChangeColor(e){this._pickedColorNode.style.backgroundColor=z.Format.CSS.format(e)||"",this._pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this._pickedColorPresentation.textContent=this.model.presentation?this.model.presentation.label:""}}class upe extends W{constructor(e){super(),this._onClicked=this._register(new O),this.onClicked=this._onClicked.event,this._button=document.createElement("div"),this._button.classList.add("close-button"),Q(e,this._button);const t=document.createElement("div");t.classList.add("close-button-inner-div"),Q(this._button,t),Q(t,Eo(".button"+Te.asCSSSelector(_i("color-picker-close",oe.close,m("closeIcon","Icon to close the color picker"))))).classList.add("close-icon"),this._register(U(this._button,ee.CLICK,()=>{this._onClicked.fire()}))}}class gpe extends W{constructor(e,t,i,n=!1){super(),this.model=t,this.pixelRatio=i,this._insertButton=null,this._domNode=Eo(".colorpicker-body"),Q(e,this._domNode),this._saturationBox=new fpe(this._domNode,this.model,this.pixelRatio),this._register(this._saturationBox),this._register(this._saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this._saturationBox.onColorFlushed(this.flushColor,this)),this._opacityStrip=new mpe(this._domNode,this.model,n),this._register(this._opacityStrip),this._register(this._opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this._opacityStrip.onColorFlushed(this.flushColor,this)),this._hueStrip=new ppe(this._domNode,this.model,n),this._register(this._hueStrip),this._register(this._hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this._hueStrip.onColorFlushed(this.flushColor,this)),n&&(this._insertButton=this._register(new _pe(this._domNode)),this._domNode.classList.add("standalone-colorpicker"))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new z(new _l(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new z(new _l(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=(1-e)*360;this.model.color=new z(new _l(i===360?0:i,t.s,t.v,t.a))}get domNode(){return this._domNode}get saturationBox(){return this._saturationBox}get enterButton(){return this._insertButton}layout(){this._saturationBox.layout(),this._opacityStrip.layout(),this._hueStrip.layout()}}class fpe extends W{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this._domNode=Eo(".saturation-wrap"),Q(e,this._domNode),this._canvas=document.createElement("canvas"),this._canvas.className="saturation-box",Q(this._domNode,this._canvas),this.selection=Eo(".saturation-selection"),Q(this._domNode,this.selection),this.layout(),this._register(U(this._domNode,ee.POINTER_DOWN,n=>this.onPointerDown(n))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}get domNode(){return this._domNode}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new Rp);const t=Oi(this._domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,n=>this.onDidChangePosition(n.pageX-t.left,n.pageY-t.top),()=>null);const i=U(e.target.ownerDocument,ee.POINTER_UP,()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),n=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,n),this._onDidChange.fire({s:i,v:n})}layout(){this.width=this._domNode.offsetWidth,this.height=this._domNode.offsetHeight,this._canvas.width=this.width*this.pixelRatio,this._canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new z(new _l(e.h,1,1,1)),i=this._canvas.getContext("2d"),n=i.createLinearGradient(0,0,this._canvas.width,0);n.addColorStop(0,"rgba(255, 255, 255, 1)"),n.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),n.addColorStop(1,"rgba(255, 255, 255, 0)");const s=i.createLinearGradient(0,0,0,this._canvas.height);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this._canvas.width,this._canvas.height),i.fillStyle=z.Format.CSS.format(t),i.fill(),i.fillStyle=n,i.fill(),i.fillStyle=s,i.fill()}paintSelection(e,t){this.selection.style.left=`${e*this.width}px`,this.selection.style.top=`${this.height-t*this.height}px`}onDidChangeColor(e){if(this.monitor&&this.monitor.isMonitoring())return;this.paint();const t=e.hsva;this.paintSelection(t.s,t.v)}}class xz extends W{constructor(e,t,i=!1){super(),this.model=t,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,i?(this.domNode=Q(e,Eo(".standalone-strip")),this.overlay=Q(this.domNode,Eo(".standalone-overlay"))):(this.domNode=Q(e,Eo(".strip")),this.overlay=Q(this.domNode,Eo(".overlay"))),this.slider=Q(this.domNode,Eo(".slider")),this.slider.style.top="0px",this._register(U(this.domNode,ee.POINTER_DOWN,n=>this.onPointerDown(n))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onDidChangeColor(e){const t=this.getValue(e);this.updateSliderPosition(t)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new Rp),i=Oi(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,s=>this.onDidChangeTop(s.pageY-i.top),()=>null);const n=U(e.target.ownerDocument,ee.POINTER_UP,()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=`${(1-e)*this.height}px`}}class mpe extends xz{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("opacity-strip"),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){super.onDidChangeColor(e);const{r:t,g:i,b:n}=e.rgba,s=new z(new gt(t,i,n,1)),r=new z(new gt(t,i,n,0));this.overlay.style.background=`linear-gradient(to bottom, ${s} 0%, ${r} 100%)`}getValue(e){return e.hsva.a}}class ppe extends xz{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class _pe extends W{constructor(e){super(),this._onClicked=this._register(new O),this.onClicked=this._onClicked.event,this._button=Q(e,document.createElement("button")),this._button.classList.add("insert-button"),this._button.textContent="Insert",this._register(U(this._button,ee.CLICK,()=>{this._onClicked.fire()}))}get button(){return this._button}}class vpe extends Uo{constructor(e,t,i,n,s=!1){super(),this.model=t,this.pixelRatio=i,this._register(Gv.getInstance(De(e)).onDidChange(()=>this.layout()));const r=Eo(".colorpicker-widget");e.appendChild(r),this.header=this._register(new hpe(r,this.model,n,s)),this.body=this._register(new gpe(r,this.model,this.pixelRatio,s))}layout(){this.body.layout()}}var Dz=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},kz=function(o,e){return function(t,i){e(t,i,o)}};class bpe{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let by=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=2}computeSync(e,t){return[]}computeAsync(e,t,i){return Bi.fromPromise(this._computeAsync(e,t,i))}async _computeAsync(e,t,i){if(!this._editor.hasModel())return[];const n=Rh.get(this._editor);if(!n)return[];for(const s of t){if(!n.isColorDecoration(s))continue;const r=n.getColorData(s.range.getStartPosition());if(r)return[await Iz(this,this._editor.getModel(),r.colorInfo,r.provider)]}return[]}renderHoverParts(e,t){return Ez(this,this._editor,this._themeService,t,e)}};by=Dz([kz(1,Ji)],by);class Cpe{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n}}let Gb=class{constructor(e,t){this._editor=e,this._themeService=t,this._color=null}async createColorHover(e,t,i){if(!this._editor.hasModel()||!Rh.get(this._editor))return null;const s=await wz(i,this._editor.getModel(),st.None);let r=null,a=null;for(const h of s){const u=h.colorInfo;x.containsRange(u.range,e.range)&&(r=u,a=h.provider)}const l=r??e,d=a??t,c=!!r;return{colorHover:await Iz(this,this._editor.getModel(),l,d),foundInEditor:c}}async updateEditorModel(e){if(!this._editor.hasModel())return;const t=e.model;let i=new x(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);this._color&&(await Sw(this._editor.getModel(),t,this._color,i,e),i=Nz(this._editor,i,t))}renderHoverParts(e,t){return Ez(this,this._editor,this._themeService,t,e)}set color(e){this._color=e}get color(){return this._color}};Gb=Dz([kz(1,Ji)],Gb);async function Iz(o,e,t,i){const n=e.getValueInRange(t.range),{red:s,green:r,blue:a,alpha:l}=t.color,d=new gt(Math.round(s*255),Math.round(r*255),Math.round(a*255),l),c=new z(d),h=await Sz(e,t,i,st.None),u=new cpe(c,[],0);return u.colorPresentations=h||[],u.guessColorPresentation(c,n),o instanceof by?new bpe(o,x.lift(t.range),u,i):new Cpe(o,x.lift(t.range),u,i)}function Ez(o,e,t,i,n){if(i.length===0||!e.hasModel())return W.None;if(n.setMinimumDimensions){const u=e.getOption(67)+8;n.setMinimumDimensions(new Ct(302,u))}const s=new G,r=i[0],a=e.getModel(),l=r.model,d=s.add(new vpe(n.fragment,l,e.getOption(143),t,o instanceof Gb));n.setColorPicker(d);let c=!1,h=new x(r.range.startLineNumber,r.range.startColumn,r.range.endLineNumber,r.range.endColumn);if(o instanceof Gb){const u=i[0].model.color;o.color=u,Sw(a,l,u,h,r),s.add(l.onColorFlushed(g=>{o.color=g}))}else s.add(l.onColorFlushed(async u=>{await Sw(a,l,u,h,r),c=!0,h=Nz(e,h,l)}));return s.add(l.onDidChangeColor(u=>{Sw(a,l,u,h,r)})),s.add(e.onDidChangeModelContent(u=>{c?c=!1:(n.hide(),e.focus())})),s}function Nz(o,e,t){var i,n;const s=[],r=(i=t.presentation.textEdit)!==null&&i!==void 0?i:{range:e,text:t.presentation.label,forceMoveMarkers:!1};s.push(r),t.presentation.additionalTextEdits&&s.push(...t.presentation.additionalTextEdits);const a=x.lift(r.range),l=o.getModel()._setTrackedRange(null,a,3);return o.executeEdits("colorpicker",s),o.pushUndoStop(),(n=o.getModel()._getTrackedRange(l))!==null&&n!==void 0?n:a}async function Sw(o,e,t,i,n){const s=await Sz(o,{range:i,color:{red:t.rgba.r/255,green:t.rgba.g/255,blue:t.rgba.b/255,alpha:t.rgba.a}},n.provider,st.None);e.colorPresentations=s||[]}const Tz="editor.action.showHover",wpe="editor.action.showDefinitionPreviewHover",Spe="editor.action.scrollUpHover",ype="editor.action.scrollDownHover",Lpe="editor.action.scrollLeftHover",xpe="editor.action.scrollRightHover",Dpe="editor.action.pageUpHover",kpe="editor.action.pageDownHover",Ipe="editor.action.goToTopHover",Epe="editor.action.goToBottomHover",fx="editor.action.increaseHoverVerbosityLevel",Npe=m({key:"increaseHoverVerbosityLevel",comment:["Label for action that will increase the hover verbosity level."]},"Increase Hover Verbosity Level"),mx="editor.action.decreaseHoverVerbosityLevel",Tpe=m({key:"decreaseHoverVerbosityLevel",comment:["Label for action that will decrease the hover verbosity level."]},"Decrease Hover Verbosity Level"),Mz="editor.action.inlineSuggest.commit",Rz="editor.action.inlineSuggest.showPrevious",Az="editor.action.inlineSuggest.showNext";var RP=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Mr=function(o,e){return function(t,i){e(t,i,o)}},yw;let _M=class extends W{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=Nt(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(62).showToolbar==="always"),this.sessionPosition=void 0,this.position=He(this,n=>{var s,r,a;const l=(s=this.model.read(n))===null||s===void 0?void 0:s.primaryGhostText.read(n);if(!this.alwaysShowToolbar.read(n)||!l||l.parts.length===0)return this.sessionPosition=void 0,null;const d=l.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==l.lineNumber&&(this.sessionPosition=void 0);const c=new F(l.lineNumber,Math.min(d,(a=(r=this.sessionPosition)===null||r===void 0?void 0:r.column)!==null&&a!==void 0?a:Number.MAX_SAFE_INTEGER));return this.sessionPosition=c,c}),this._register(hr((n,s)=>{const r=this.model.read(n);if(!r||!this.alwaysShowToolbar.read(n))return;const a=Zg((d,c)=>{const h=c.add(this.instantiationService.createInstance(Ah,this.editor,!0,this.position,r.selectedInlineCompletionIndex,r.inlineCompletionsCount,r.activeCommands));return e.addContentWidget(h),c.add(Ce(()=>e.removeContentWidget(h))),c.add(Xe(u=>{this.position.read(u)&&r.lastTriggerKind.read(u)!==Hd.Explicit&&r.triggerExplicitly()})),h}),l=zae(this,(d,c)=>!!this.position.read(d)||!!c);s.add(Xe(d=>{l.read(d)&&a.read(d)}))}))}};_M=RP([Mr(2,Le)],_M);const Mpe=_i("inline-suggestion-hints-next",oe.chevronRight,m("parameterHintsNextIcon","Icon for show next parameter hint.")),Rpe=_i("inline-suggestion-hints-previous",oe.chevronLeft,m("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let Ah=yw=class extends W{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(e,t,i){const n=new no(e,t,i,!0,()=>this._commandService.executeCommand(e)),s=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let r=t;return s&&(r=m({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,s.getLabel())),n.tooltip=r,n}constructor(e,t,i,n,s,r,a,l,d,c,h){super(),this.editor=e,this.withBorder=t,this._position=i,this._currentSuggestionIdx=n,this._suggestionCount=s,this._extraCommands=r,this._commandService=a,this.keybindingService=d,this._contextKeyService=c,this._menuService=h,this.id=`InlineSuggestionHintsContentWidget${yw.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=bt("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[bt("div@toolBar")]),this.previousAction=this.createCommandAction(Rz,m("previous","Previous"),Te.asClassName(Rpe)),this.availableSuggestionCountAction=new no("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(Az,m("next","Next"),Te.asClassName(Mpe)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(k.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new At(()=>{this.availableSuggestionCountAction.label=""},100)),this.disableButtonsDebounced=this._register(new At(()=>{this.previousAction.enabled=this.nextAction.enabled=!1},100)),this.toolBar=this._register(l.createInstance(vM,this.nodes.toolBar,k.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:u=>u.startsWith("primary")},actionViewItemProvider:(u,g)=>{if(u instanceof so)return l.createInstance(Ppe,u,void 0);if(u===this.availableSuggestionCountAction){const f=new Ape(void 0,u,{label:!0,icon:!1});return f.setClass("availableSuggestionCount"),f}},telemetrySource:"InlineSuggestionToolbar"})),this.toolBar.setPrependedPrimaryActions([this.previousAction,this.availableSuggestionCountAction,this.nextAction]),this._register(this.toolBar.onDidChangeDropdownVisibility(u=>{yw._dropDownVisible=u})),this._register(Xe(u=>{this._position.read(u),this.editor.layoutContentWidget(this)})),this._register(Xe(u=>{const g=this._suggestionCount.read(u),f=this._currentSuggestionIdx.read(u);g!==void 0?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${f+1}/${g}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),g!==void 0&&g>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule()})),this._register(Xe(u=>{const f=this._extraCommands.read(u).map(p=>({class:void 0,id:p.id,enabled:!0,tooltip:p.tooltip||"",label:p.title,run:_=>this._commandService.executeCommand(p.id)}));for(const[p,_]of this.inlineCompletionsActionsMenus.getActions())for(const v of _)v instanceof so&&f.push(v);f.length>0&&f.unshift(new ji),this.toolBar.setAdditionalSecondaryActions(f)}))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};Ah._dropDownVisible=!1;Ah.id=0;Ah=yw=RP([Mr(6,Qt),Mr(7,Le),Mr(8,St),Mr(9,Me),Mr(10,zo)],Ah);class Ape extends rp{constructor(){super(...arguments),this._className=void 0}setClass(e){this._className=e}render(e){super.render(e),this._className&&e.classList.add(this._className)}updateTooltip(){}}let Ppe=class extends Eh{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=bt("div.keybinding").root;this._register(new Bp(t,to,{disableTitle:!0,...DH})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}updateTooltip(){}},vM=class extends Hb{constructor(e,t,i,n,s,r,a,l,d){super(e,{resetMenu:t,...i},n,s,r,a,l,d),this.menuId=t,this.options2=i,this.menuService=n,this.contextKeyService=s,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange(()=>this.updateToolbar())),this.updateToolbar()}updateToolbar(){var e,t,i,n,s,r,a;const l=[],d=[];UL(this.menu,(e=this.options2)===null||e===void 0?void 0:e.menuOptions,{primary:l,secondary:d},(i=(t=this.options2)===null||t===void 0?void 0:t.toolbarOptions)===null||i===void 0?void 0:i.primaryGroup,(s=(n=this.options2)===null||n===void 0?void 0:n.toolbarOptions)===null||s===void 0?void 0:s.shouldInlineSubmenu,(a=(r=this.options2)===null||r===void 0?void 0:r.toolbarOptions)===null||a===void 0?void 0:a.useSeparatorsInPrimaryActions),d.push(...this.additionalActions),l.unshift(...this.prependedPrimaryActions),this.setActions(l,d)}setPrependedPrimaryActions(e){di(this.prependedPrimaryActions,e,(t,i)=>t===i)||(this.prependedPrimaryActions=e,this.updateToolbar())}setAdditionalSecondaryActions(e){di(this.additionalActions,e,(t,i)=>t===i)||(this.additionalActions=e,this.updateToolbar())}};vM=RP([Mr(3,zo),Mr(4,Me),Mr(5,go),Mr(6,St),Mr(7,Qt),Mr(8,Bn)],vM);class AP{constructor(){this._onDidWillResize=new O,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new O,this.onDidResize=this._onDidResize.event,this._sashListener=new G,this._size=new Ct(0,0),this._minSize=new Ct(0,0),this._maxSize=new Ct(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new Vn(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new Vn(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new Vn(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:US.North}),this._southSash=new Vn(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:US.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let e,t=0,i=0;this._sashListener.add(ae.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)(()=>{e===void 0&&(this._onDidWillResize.fire(),e=this._size,t=0,i=0)})),this._sashListener.add(ae.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)(()=>{e!==void 0&&(e=void 0,t=0,i=0,this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(this._eastSash.onDidChange(n=>{e&&(i=n.currentX-n.startX,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))})),this._sashListener.add(this._westSash.onDidChange(n=>{e&&(i=-(n.currentX-n.startX),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))})),this._sashListener.add(this._northSash.onDidChange(n=>{e&&(t=-(n.currentY-n.startY),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))})),this._sashListener.add(this._southSash.onDidChange(n=>{e&&(t=n.currentY-n.startY,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))})),this._sashListener.add(ae.any(this._eastSash.onDidReset,this._westSash.onDidReset)(n=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(ae.any(this._northSash.onDidReset,this._southSash.onDidReset)(n=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,i,n){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=i?3:0,this._westSash.state=n?3:0}layout(e=this.size.height,t=this.size.width){const{height:i,width:n}=this._minSize,{height:s,width:r}=this._maxSize;e=Math.max(i,Math.min(s,e)),t=Math.max(n,Math.min(r,t));const a=new Ct(t,e);Ct.equals(a,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=a,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}const Ope=30,Fpe=24;class Bpe extends W{constructor(e,t=new Ct(10,10)){super(),this._editor=e,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new AP),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position="absolute",this._resizableNode.minSize=Ct.lift(t),this._resizableNode.layout(t.height,t.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize(i=>{this._resize(new Ct(i.dimension.width,i.dimension.height)),i.done&&(this._isResizing=!1)})),this._register(this._resizableNode.onDidWillResize(()=>{this._isResizing=!0}))}get isResizing(){return this._isResizing}getDomNode(){return this._resizableNode.domNode}getPosition(){return this._contentPosition}get position(){var e;return!((e=this._contentPosition)===null||e===void 0)&&e.position?F.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);return!t||!i?void 0:Oi(t).top+i.top-Ope}_availableVerticalSpaceBelow(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(!t||!i)return;const n=Oi(t),s=Jd(t.ownerDocument.body),r=n.top+i.top+i.height;return s.height-r-Fpe}_findPositionPreference(e,t){var i,n;const s=Math.min((i=this._availableVerticalSpaceBelow(t))!==null&&i!==void 0?i:1/0,e),r=Math.min((n=this._availableVerticalSpaceAbove(t))!==null&&n!==void 0?n:1/0,e),a=Math.min(Math.max(r,s),e),l=Math.min(e,a);let d;return this._editor.getOption(60).above?d=l<=r?1:2:d=l<=s?2:1,d===1?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),d}_resize(e){this._resizableNode.layout(e.height,e.width)}}var Wpe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},p1=function(o,e){return function(t,i){e(t,i,o)}},el;const bB=30,Hpe=6;let pp=el=class extends Bpe{get isColorPickerVisible(){var e;return!!(!((e=this._visibleData)===null||e===void 0)&&e.colorPicker)}get isVisibleFromKeyboard(){var e;return((e=this._visibleData)===null||e===void 0?void 0:e.source)===1}get isVisible(){var e;return(e=this._hoverVisibleKey.get())!==null&&e!==void 0?e:!1}get isFocused(){var e;return(e=this._hoverFocusedKey.get())!==null&&e!==void 0?e:!1}constructor(e,t,i,n,s){const r=e.getOption(67)+8,a=150,l=new Ct(a,r);super(e,l),this._configurationService=i,this._accessibilityService=n,this._keybindingService=s,this._hover=this._register(new S2),this._minimumSize=l,this._hoverVisibleKey=E.hoverVisible.bindTo(t),this._hoverFocusedKey=E.hoverFocused.bindTo(t),Q(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex="50",this._register(this._editor.onDidLayoutChange(()=>{this.isVisible&&this._updateMaxDimensions()})),this._register(this._editor.onDidChangeConfiguration(c=>{c.hasChanged(50)&&this._updateFont()}));const d=this._register(Ea(this._resizableNode.domNode));this._register(d.onDidFocus(()=>{this._hoverFocusedKey.set(!0)})),this._register(d.onDidBlur(()=>{this._hoverFocusedKey.set(!1)})),this._setHoverData(void 0),this._editor.addContentWidget(this)}dispose(){var e;super.dispose(),(e=this._visibleData)===null||e===void 0||e.disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return el.ID}static _applyDimensions(e,t,i){const n=typeof t=="number"?`${t}px`:t,s=typeof i=="number"?`${i}px`:i;e.style.width=n,e.style.height=s}_setContentsDomNodeDimensions(e,t){const i=this._hover.contentsDomNode;return el._applyDimensions(i,e,t)}_setContainerDomNodeDimensions(e,t){const i=this._hover.containerDomNode;return el._applyDimensions(i,e,t)}_setHoverWidgetDimensions(e,t){this._setContentsDomNodeDimensions(e,t),this._setContainerDomNodeDimensions(e,t),this._layoutContentWidget()}static _applyMaxDimensions(e,t,i){const n=typeof t=="number"?`${t}px`:t,s=typeof i=="number"?`${i}px`:i;e.style.maxWidth=n,e.style.maxHeight=s}_setHoverWidgetMaxDimensions(e,t){el._applyMaxDimensions(this._hover.contentsDomNode,e,t),el._applyMaxDimensions(this._hover.containerDomNode,e,t),this._hover.containerDomNode.style.setProperty("--vscode-hover-maxWidth",typeof e=="number"?`${e}px`:e),this._layoutContentWidget()}_setAdjustedHoverWidgetDimensions(e){this._setHoverWidgetMaxDimensions("none","none");const t=e.width,i=e.height;this._setHoverWidgetDimensions(t,i)}_updateResizableNodeMaxDimensions(){var e,t;const i=(e=this._findMaximumRenderingWidth())!==null&&e!==void 0?e:1/0,n=(t=this._findMaximumRenderingHeight())!==null&&t!==void 0?t:1/0;this._resizableNode.maxSize=new Ct(i,n),this._setHoverWidgetMaxDimensions(i,n)}_resize(e){var t,i;el._lastDimensions=new Ct(e.width,e.height),this._setAdjustedHoverWidgetDimensions(e),this._resizableNode.layout(e.height,e.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),(i=(t=this._visibleData)===null||t===void 0?void 0:t.colorPicker)===null||i===void 0||i.layout()}_findAvailableSpaceVertically(){var e;const t=(e=this._visibleData)===null||e===void 0?void 0:e.showAtPosition;if(t)return this._positionPreference===1?this._availableVerticalSpaceAbove(t):this._availableVerticalSpaceBelow(t)}_findMaximumRenderingHeight(){const e=this._findAvailableSpaceVertically();if(!e)return;let t=Hpe;return Array.from(this._hover.contentsDomNode.children).forEach(i=>{t+=i.clientHeight}),Math.min(e,t)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty("--vscode-hover-whiteSpace","nowrap"),this._hover.containerDomNode.style.setProperty("--vscode-hover-sourceWhiteSpace","nowrap");const e=Array.from(this._hover.contentsDomNode.children).some(t=>t.scrollWidth>t.clientWidth);return this._hover.containerDomNode.style.removeProperty("--vscode-hover-whiteSpace"),this._hover.containerDomNode.style.removeProperty("--vscode-hover-sourceWhiteSpace"),e}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;const e=this._isHoverTextOverflowing(),t=typeof this._contentWidth>"u"?0:this._contentWidth-2;return e||this._hover.containerDomNode.clientWidth"u"||typeof this._visibleData.initialMousePosY>"u")return this._visibleData.initialMousePosX=e,this._visibleData.initialMousePosY=t,!1;const i=Oi(this.getDomNode());typeof this._visibleData.closestMouseDistance>"u"&&(this._visibleData.closestMouseDistance=CB(this._visibleData.initialMousePosX,this._visibleData.initialMousePosY,i.left,i.top,i.width,i.height));const n=CB(e,t,i.left,i.top,i.width,i.height);return n>this._visibleData.closestMouseDistance+4?!1:(this._visibleData.closestMouseDistance=Math.min(this._visibleData.closestMouseDistance,n),!0)}_setHoverData(e){var t;(t=this._visibleData)===null||t===void 0||t.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!e),this._hover.containerDomNode.classList.toggle("hidden",!e)}_updateFont(){const{fontSize:e,lineHeight:t}=this._editor.getOption(50),i=this._hover.contentsDomNode;i.style.fontSize=`${e}px`,i.style.lineHeight=`${t/e}`,Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(s=>this._editor.applyFontInfo(s))}_updateContent(e){const t=this._hover.contentsDomNode;t.style.paddingBottom="",t.textContent="",t.appendChild(e)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const e=Math.max(this._editor.getLayoutInfo().height/4,250,el._lastDimensions.height),t=Math.max(this._editor.getLayoutInfo().width*.66,500,el._lastDimensions.width);this._setHoverWidgetMaxDimensions(t,e)}_render(e,t){this._setHoverData(t),this._updateFont(),this._updateContent(e),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){var e;return this._visibleData?{position:this._visibleData.showAtPosition,secondaryPosition:this._visibleData.showAtSecondaryPosition,positionAffinity:this._visibleData.isBeforeContent?3:void 0,preference:[(e=this._positionPreference)!==null&&e!==void 0?e:1]}:null}showAt(e,t){var i,n,s,r;if(!this._editor||!this._editor.hasModel())return;this._render(e,t);const a=Ld(this._hover.containerDomNode),l=t.showAtPosition;this._positionPreference=(i=this._findPositionPreference(a,l))!==null&&i!==void 0?i:1,this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),(n=t.colorPicker)===null||n===void 0||n.layout();const c=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&h6(this._configurationService.getValue("accessibility.verbosity.hover")===!0&&this._accessibilityService.isScreenReaderOptimized(),(r=(s=this._keybindingService.lookupKeybinding("editor.action.accessibleView"))===null||s===void 0?void 0:s.getAriaLabel())!==null&&r!==void 0?r:"");c&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+", "+c)}hide(){if(!this._visibleData)return;const e=this._visibleData.stoleFocus||this._hoverFocusedKey.get();this._setHoverData(void 0),this._resizableNode.maxSize=new Ct(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),e&&this._editor.focus()}_removeConstraintsRenderNormally(){const e=this._editor.getLayoutInfo();this._resizableNode.layout(e.height,e.width),this._setHoverWidgetDimensions("auto","auto")}setMinimumDimensions(e){this._minimumSize=new Ct(Math.max(this._minimumSize.width,e.width),Math.max(this._minimumSize.height,e.height)),this._updateMinimumWidth()}_updateMinimumWidth(){const e=typeof this._contentWidth>"u"?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new Ct(e,this._minimumSize.height)}onContentsChanged(){var e;this._removeConstraintsRenderNormally();const t=this._hover.containerDomNode;let i=Ld(t),n=Xs(t);if(this._resizableNode.layout(i,n),this._setHoverWidgetDimensions(n,i),i=Ld(t),n=Xs(t),this._contentWidth=n,this._updateMinimumWidth(),this._resizableNode.layout(i,n),!((e=this._visibleData)===null||e===void 0)&&e.showAtPosition){const s=Ld(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(s,this._visibleData.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e-t.lineHeight})}scrollDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e+t.lineHeight})}scrollLeft(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e-bB})}scrollRight(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e+bB})}pageUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e-t})}pageDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e+t})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};pp.ID="editor.contrib.resizableContentHoverWidget";pp._lastDimensions=new Ct(0,0);pp=el=Wpe([p1(1,Me),p1(2,Je),p1(3,ho),p1(4,St)],pp);function CB(o,e,t,i,n,s){const r=t+n/2,a=i+s/2,l=Math.max(Math.abs(o-r)-n/2,0),d=Math.max(Math.abs(e-a)-s/2,0);return Math.sqrt(l*l+d*d)}let Vpe=class{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}};class Pz extends W{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new O),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new At(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new At(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new At(()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(60).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=hq(e=>this._computer.computeAsync(e)),(async()=>{try{for await(const e of this._asyncIterable)e&&(this._result.push(e),this._fireResult());this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(e){ze(e)}})()):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){this._state===3&&this._setState(4)}_fireResult(){if(this._state===1||this._state===2)return;const e=this._state===0,t=this._state===4;this._onResult.fire(new Vpe(this._result.slice(0),e,t))}start(e){if(e===0)this._state===0&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}class Kk{constructor(e,t,i,n){this.priority=e,this.range=t,this.initialMousePosX=i,this.initialMousePosY=n,this.type=1}equals(e){return e.type===1&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return e.type===1&&t.lineNumber===this.range.startLineNumber}}class sg{constructor(e,t,i,n,s,r){this.priority=e,this.owner=t,this.range=i,this.initialMousePosX=n,this.initialMousePosY=s,this.supportsMarkerHover=r,this.type=2}equals(e){return e.type===2&&this.owner===e.owner}canAdoptVisibleHover(e,t){return e.type===2&&this.owner===e.owner}}const Xh=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}};class zpe{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}async function Upe(o,e,t,i,n){const s=await Promise.resolve(o.provideHover(t,i,n)).catch(yi);if(!(!s||!jpe(s)))return new zpe(o,s,e)}function PP(o,e,t,i){const s=o.ordered(e).map((r,a)=>Upe(r,a,e,t,i));return Bi.fromPromises(s).coalesce()}function $pe(o,e,t,i){return PP(o,e,t,i).map(n=>n.hover).toPromise()}Kl("_executeHoverProvider",(o,e,t)=>{const i=o.get(me);return $pe(i.hoverProvider,e,t,st.None)});function jpe(o){const e=typeof o.range<"u",t=typeof o.contents<"u"&&o.contents&&o.contents.length>0;return e&&t}var Kpe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},bf=function(o,e){return function(t,i){e(t,i,o)}};const sm=te,qpe=_i("hover-increase-verbosity",oe.add,m("increaseHoverVerbosity","Icon for increaseing hover verbosity.")),Gpe=_i("hover-decrease-verbosity",oe.remove,m("decreaseHoverVerbosity","Icon for decreasing hover verbosity."));class ga{constructor(e,t,i,n,s,r=void 0){this.owner=e,this.range=t,this.contents=i,this.isBeforeContent=n,this.ordinal=s,this.source=r}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}class Oz{constructor(e,t,i){this.hover=e,this.hoverProvider=t,this.hoverPosition=i}supportsVerbosityAction(e){var t,i;switch(e){case Lo.Increase:return(t=this.hover.canIncreaseVerbosity)!==null&&t!==void 0?t:!1;case Lo.Decrease:return(i=this.hover.canDecreaseVerbosity)!==null&&i!==void 0?i:!1}}}let Zb=class{constructor(e,t,i,n,s,r,a){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=n,this._languageFeaturesService=s,this._keybindingService=r,this._hoverService=a,this.hoverOrdinal=3}createLoadingMessage(e){return new ga(this,e.range,[new Un().appendText(m("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];let a=1e3;const l=i.getLineLength(n),d=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),c=this._editor.getOption(117),h=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:d});let u=!1;c>=0&&l>c&&e.range.startColumn>=c&&(u=!0,r.push(new ga(this,e.range,[{value:m("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,a++))),!u&&typeof h=="number"&&l>=h&&r.push(new ga(this,e.range,[{value:m("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,a++));let g=!1;for(const f of t){const p=f.range.startLineNumber===n?f.range.startColumn:1,_=f.range.endLineNumber===n?f.range.endColumn:s,v=f.options.hoverMessage;if(!v||tp(v))continue;f.options.beforeContentClassName&&(g=!0);const b=new x(e.range.startLineNumber,p,e.range.startLineNumber,_);r.push(new ga(this,b,jR(v),g,a++))}return r}computeAsync(e,t,i){if(!this._editor.hasModel()||e.type!==1)return Bi.EMPTY;const n=this._editor.getModel(),s=this._languageFeaturesService.hoverProvider;return s.has(n)?this._getMarkdownHovers(s,n,e,i):Bi.EMPTY}_getMarkdownHovers(e,t,i,n){const s=i.range.getStartPosition();return PP(e,t,s,n).filter(l=>!tp(l.hover.contents)).map(l=>{const d=l.hover.range?x.lift(l.hover.range):i.range,c=new Oz(l.hover,l.provider,s);return new ga(this,d,l.hover.contents,!1,l.ordinal,c)})}renderHoverParts(e,t){return this._renderedHoverParts=new Zpe(t,e.fragment,this._editor,this._languageService,this._openerService,this._keybindingService,this._hoverService,this._configurationService,e.onContentsChanged),this._renderedHoverParts}markdownHoverContentAtIndex(e){var t,i;return(i=(t=this._renderedHoverParts)===null||t===void 0?void 0:t.markdownHoverContentAtIndex(e))!==null&&i!==void 0?i:""}doesMarkdownHoverAtIndexSupportVerbosityAction(e,t){var i,n;return(n=(i=this._renderedHoverParts)===null||i===void 0?void 0:i.doesMarkdownHoverAtIndexSupportVerbosityAction(e,t))!==null&&n!==void 0?n:!1}updateMarkdownHoverVerbosityLevel(e,t,i){var n;(n=this._renderedHoverParts)===null||n===void 0||n.updateMarkdownHoverPartVerbosityLevel(e,t,i)}};Zb=Kpe([bf(1,si),bf(2,fo),bf(3,Je),bf(4,me),bf(5,St),bf(6,Gl)],Zb);class Zpe extends W{constructor(e,t,i,n,s,r,a,l,d){super(),this._editor=i,this._languageService=n,this._openerService=s,this._keybindingService=r,this._hoverService=a,this._configurationService=l,this._onFinishedRendering=d,this._focusedHoverPartIndex=-1,this._ongoingHoverOperations=new Map,this._renderedHoverParts=this._renderHoverParts(e,t,this._onFinishedRendering),this._register(Ce(()=>{this._renderedHoverParts.forEach(c=>{c.disposables.dispose()})})),this._register(Ce(()=>{this._ongoingHoverOperations.forEach(c=>{c.tokenSource.dispose(!0)})}))}_renderHoverParts(e,t,i){return e.sort(zs(n=>n.ordinal,Br)),e.map((n,s)=>{const r=this._renderHoverPart(s,n.contents,n.source,i);return t.appendChild(r.renderedMarkdown),r})}_renderHoverPart(e,t,i,n){const{renderedMarkdown:s,disposables:r}=this._renderMarkdownContent(t,n);if(!i)return{renderedMarkdown:s,disposables:r};const a=i.supportsVerbosityAction(Lo.Increase),l=i.supportsVerbosityAction(Lo.Decrease);if(!a&&!l)return{renderedMarkdown:s,disposables:r,hoverSource:i};const d=sm("div.verbosity-actions");return s.prepend(d),r.add(this._renderHoverExpansionAction(d,Lo.Increase,a)),r.add(this._renderHoverExpansionAction(d,Lo.Decrease,l)),this._register(U(s,ee.FOCUS_IN,c=>{c.stopPropagation(),this._focusedHoverPartIndex=e})),this._register(U(s,ee.FOCUS_OUT,c=>{c.stopPropagation(),this._focusedHoverPartIndex=-1})),{renderedMarkdown:s,disposables:r,hoverSource:i}}_renderMarkdownContent(e,t){const i=sm("div.hover-row");i.tabIndex=0;const n=sm("div.hover-row-contents");i.appendChild(n);const s=new G;return s.add(Fz(this._editor,n,e,this._languageService,this._openerService,t)),{renderedMarkdown:i,disposables:s}}_renderHoverExpansionAction(e,t,i){const n=new G,s=t===Lo.Increase,r=Q(e,sm(Te.asCSSSelector(s?qpe:Gpe)));r.tabIndex=0;const a=new ep("mouse",!1,{target:e,position:{hoverPosition:0}},this._configurationService,this._hoverService);if(n.add(this._hoverService.setupUpdatableHover(a,r,Qpe(this._keybindingService,t))),!i)return r.classList.add("disabled"),n;r.classList.add("enabled");const l=()=>this.updateMarkdownHoverPartVerbosityLevel(t);return n.add(new u6(r,l)),n.add(new g6(r,l,[3,10])),n}async updateMarkdownHoverPartVerbosityLevel(e,t=-1,i=!0){var n;const s=this._editor.getModel();if(!s)return;const r=t!==-1?t:this._focusedHoverPartIndex,a=this._getRenderedHoverPartAtIndex(r);if(!a||!(!((n=a.hoverSource)===null||n===void 0)&&n.supportsVerbosityAction(e)))return;const l=a.hoverSource,d=await this._fetchHover(l,s,e);if(!d)return;const c=new Oz(d,l.hoverProvider,l.hoverPosition),h=this._renderHoverPart(r,d.contents,c,this._onFinishedRendering);this._replaceRenderedHoverPartAtIndex(r,h),i&&this._focusOnHoverPartWithIndex(r),this._onFinishedRendering()}markdownHoverContentAtIndex(e){var t;const i=this._getRenderedHoverPartAtIndex(e);return(t=i==null?void 0:i.renderedMarkdown.innerText)!==null&&t!==void 0?t:""}doesMarkdownHoverAtIndexSupportVerbosityAction(e,t){var i;const n=this._getRenderedHoverPartAtIndex(e);return!(!n||!(!((i=n.hoverSource)===null||i===void 0)&&i.supportsVerbosityAction(t)))}async _fetchHover(e,t,i){let n=i===Lo.Increase?1:-1;const s=e.hoverProvider,r=this._ongoingHoverOperations.get(s);r&&(r.tokenSource.cancel(),n+=r.verbosityDelta);const a=new ci;this._ongoingHoverOperations.set(s,{verbosityDelta:n,tokenSource:a});const l={verbosityRequest:{verbosityDelta:n,previousHover:e.hover}};let d;try{d=await Promise.resolve(s.provideHover(t,e.hoverPosition,a.token,l))}catch(c){yi(c)}return a.dispose(),this._ongoingHoverOperations.delete(s),d}_replaceRenderedHoverPartAtIndex(e,t){if(e>=this._renderHoverParts.length||e<0)return;const i=this._renderedHoverParts[e];i.renderedMarkdown.replaceWith(t.renderedMarkdown),i.disposables.dispose(),this._renderedHoverParts[e]=t}_focusOnHoverPartWithIndex(e){this._renderedHoverParts[e].renderedMarkdown.focus()}_getRenderedHoverPartAtIndex(e){return this._renderedHoverParts[e]}}function Ype(o,e,t,i,n){e.sort(zs(r=>r.ordinal,Br));const s=new G;for(const r of e)s.add(Fz(t,o.fragment,r.contents,i,n,o.onContentsChanged));return s}function Fz(o,e,t,i,n,s){const r=new G;for(const a of t){if(tp(a))continue;const l=sm("div.markdown-hover"),d=Q(l,sm("div.hover-contents")),c=r.add(new Fl({editor:o},i,n));r.add(c.onDidRenderAsync(()=>{d.className="hover-contents code-hover-contents",s()}));const h=r.add(c.render(a));d.appendChild(h.element),e.appendChild(l)}return r}function Qpe(o,e){switch(e){case Lo.Increase:{const t=o.lookupKeybinding(fx);return t?m("increaseVerbosityWithKb","Increase Hover Verbosity ({0})",t.getLabel()):m("increaseVerbosity","Increase Hover Verbosity")}case Lo.Decrease:{const t=o.lookupKeybinding(mx);return t?m("decreaseVerbosityWithKb","Decrease Hover Verbosity ({0})",t.getLabel()):m("decreaseVerbosity","Decrease Hover Verbosity")}}}function bM(o,e){return!!o[e]}class qk{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=bM(e.event,t.triggerModifier),this.hasSideBySideModifier=bM(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class wB{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=bM(e,t.triggerModifier)}}class _1{constructor(e,t,i,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function SB(o){return o==="altKey"?it?new _1(57,"metaKey",6,"altKey"):new _1(5,"ctrlKey",6,"altKey"):it?new _1(6,"altKey",57,"metaKey"):new _1(6,"altKey",5,"ctrlKey")}class px extends W{constructor(e,t){var i;super(),this._onMouseMoveOrRelevantKeyDown=this._register(new O),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new O),this.onExecute=this._onExecute.event,this._onCancel=this._register(new O),this.onCancel=this._onCancel.event,this._editor=e,this._extractLineNumberFromMouseEvent=(i=t==null?void 0:t.extractLineNumberFromMouseEvent)!==null&&i!==void 0?i:n=>n.target.position?n.target.position.lineNumber:0,this._opts=SB(this._editor.getOption(78)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(n=>{if(n.hasChanged(78)){const s=SB(this._editor.getOption(78));if(this._opts.equals(s))return;this._opts=s,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(n=>this._onEditorMouseMove(new qk(n,this._opts)))),this._register(this._editor.onMouseDown(n=>this._onEditorMouseDown(new qk(n,this._opts)))),this._register(this._editor.onMouseUp(n=>this._onEditorMouseUp(new qk(n,this._opts)))),this._register(this._editor.onKeyDown(n=>this._onEditorKeyDown(new wB(n,this._opts)))),this._register(this._editor.onKeyUp(n=>this._onEditorKeyUp(new wB(n,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(n=>this._onDidChangeCursorSelection(n))),this._register(this._editor.onDidChangeModel(n=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(n=>{(n.scrollTopChanged||n.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=this._extractLineNumberFromMouseEvent(e)}_onEditorMouseUp(e){const t=this._extractLineNumberFromMouseEvent(e);this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}class Bz{constructor(e,t){this.range=e,this.direction=t}}class OP{constructor(e,t,i){this.hint=e,this.anchor=t,this.provider=i,this._isResolved=!1}with(e){const t=new OP(this.hint,e.anchor,this.provider);return t._isResolved=this._isResolved,t._currentResolve=this._currentResolve,t}async resolve(e){if(typeof this.provider.resolveInlayHint=="function"){if(this._currentResolve)return await this._currentResolve,e.isCancellationRequested?void 0:this.resolve(e);this._isResolved||(this._currentResolve=this._doResolve(e).finally(()=>this._currentResolve=void 0)),await this._currentResolve}}async _doResolve(e){var t,i,n;try{const s=await Promise.resolve(this.provider.resolveInlayHint(this.hint,e));this.hint.tooltip=(t=s==null?void 0:s.tooltip)!==null&&t!==void 0?t:this.hint.tooltip,this.hint.label=(i=s==null?void 0:s.label)!==null&&i!==void 0?i:this.hint.label,this.hint.textEdits=(n=s==null?void 0:s.textEdits)!==null&&n!==void 0?n:this.hint.textEdits,this._isResolved=!0}catch(s){yi(s),this._isResolved=!1}}}class og{static async create(e,t,i,n){const s=[],r=e.ordered(t).reverse().map(a=>i.map(async l=>{try{const d=await a.provideInlayHints(t,l,n);(d!=null&&d.hints.length||a.onDidChangeInlayHints)&&s.push([d??og._emptyInlayHintList,a])}catch(d){yi(d)}}));if(await Promise.all(r.flat()),n.isCancellationRequested||t.isDisposed())throw new ka;return new og(i,s,t)}constructor(e,t,i){this._disposables=new G,this.ranges=e,this.provider=new Set;const n=[];for(const[s,r]of t){this._disposables.add(s),this.provider.add(r);for(const a of s.hints){const l=i.validatePosition(a.position);let d="before";const c=og._getRangeAtPosition(i,l);let h;c.getStartPosition().isBefore(l)?(h=x.fromPositions(c.getStartPosition(),l),d="after"):(h=x.fromPositions(l,c.getEndPosition()),d="before"),n.push(new OP(a,new Bz(h,d),r))}}this.items=n.sort((s,r)=>F.compare(s.hint.position,r.hint.position))}dispose(){this._disposables.dispose()}static _getRangeAtPosition(e,t){const i=t.lineNumber,n=e.getWordAtPosition(t);if(n)return new x(i,n.startColumn,i,n.endColumn);e.tokenization.tokenizeIfCheap(i);const s=e.tokenization.getLineTokens(i),r=t.column-1,a=s.findTokenIndexAtOffset(r);let l=s.getStartOffset(a),d=s.getEndOffset(a);return d-l===1&&(l===r&&a>1?(l=s.getStartOffset(a-1),d=s.getEndOffset(a-1)):d===r&&a=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},id=function(o,e){return function(t,i){e(t,i,o)}};let Ph=class extends Jm{constructor(e,t,i,n,s,r,a,l,d,c,h,u,g){super(e,{...n.getRawOptions(),overflowWidgetsDomNode:n.getOverflowWidgetsDomNode()},i,s,r,a,l,d,c,h,u,g),this._parentEditor=n,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(n.onDidChangeConfiguration(f=>this._onParentConfigurationChanged(f)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){Wy(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};Ph=Jpe([id(4,Le),id(5,_t),id(6,Qt),id(7,Me),id(8,Ji),id(9,Ri),id(10,ho),id(11,$t),id(12,me)],Ph);const yB=new z(new gt(0,122,204)),e_e={showArrow:!0,showFrame:!0,className:"",frameColor:yB,arrowColor:yB,keepEditorSelection:!1},t_e="vs.editor.contrib.zoneWidget";class i_e{constructor(e,t,i,n,s,r,a,l){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=n,this.showInHiddenAreas=a,this.ordinal=l,this._onDomNodeTop=s,this._onComputedHeight=r}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class n_e{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class _x{constructor(e){this._editor=e,this._ruleName=_x._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),kE(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){kE(this._ruleName),Zw(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px !important; margin-left: -${this._height}px; `)}show(e){e.column===1&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:x.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}_x._IdGenerator=new T2(".arrow-decoration-");class s_e{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new G,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=hd(t),Wy(this.options,e_e,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(i=>{const n=this._getWidth(i);this.domNode.style.width=n+"px",this.domNode.style.left=this._getLeft(i)+"px",this._onWidth(n)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null}),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new _x(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&e.minimap.minimapLeft===0?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){var t;if(this.domNode.style.height=`${e}px`,this.container){const i=e-this._decoratingElementsHeight();this.container.style.height=`${i}px`;const n=this.editor.getLayoutInfo();this._doLayout(i,this._getWidth(n))}(t=this._resizeSash)===null||t===void 0||t.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const i=x.isIRange(e)?x.lift(e):x.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:je.EMPTY}])}hide(){var e;this._viewZone&&(this.editor.changeViewZones(t=>{this._viewZone&&t.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),(e=this._arrow)===null||e===void 0||e.hide(),this._positionMarkerId.clear()}_decoratingElementsHeight(){const e=this.editor.getOption(67);let t=0;if(this.options.showArrow){const i=Math.round(e/3);t+=2*i}if(this.options.showFrame){const i=Math.round(e/9);t+=2*i}return t}_showImpl(e,t){const i=e.getStartPosition(),n=this.editor.getLayoutInfo(),s=this._getWidth(n);this.domNode.style.width=`${s}px`,this.domNode.style.left=this._getLeft(n)+"px";const r=document.createElement("div");r.style.overflow="hidden";const a=this.editor.getOption(67);if(!this.options.allowUnlimitedHeight){const u=Math.max(12,this.editor.getLayoutInfo().height/a*.8);t=Math.min(t,u)}let l=0,d=0;if(this._arrow&&this.options.showArrow&&(l=Math.round(a/3),this._arrow.height=l,this._arrow.show(i)),this.options.showFrame&&(d=Math.round(a/9)),this.editor.changeViewZones(u=>{this._viewZone&&u.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new i_e(r,i.lineNumber,i.column,t,g=>this._onViewZoneTop(g),g=>this._onViewZoneHeight(g),this.options.showInHiddenAreas,this.options.ordinal),this._viewZone.id=u.addZone(this._viewZone),this._overlayWidget=new n_e(t_e+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const u=this.options.frameWidth?this.options.frameWidth:d;this.container.style.borderTopWidth=u+"px",this.container.style.borderBottomWidth=u+"px"}const c=t*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=l+"px",this.container.style.height=c+"px",this.container.style.overflow="hidden"),this._doLayout(c,s),this.options.keepEditorSelection||this.editor.setSelection(e);const h=this.editor.getModel();if(h){const u=h.validateRange(new x(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(u,u.startLineNumber===h.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones(t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;this._resizeSash=this._disposables.add(new Vn(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0);let e;this._disposables.add(this._resizeSash.onDidStart(t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{e=void 0})),this._disposables.add(this._resizeSash.onDidChange(t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(67),n=i<0?Math.ceil(i):Math.floor(i),s=e.heightInLines+n;s>5&&s<35&&this._relayout(s)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var Wz=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Hz=function(o,e){return function(t,i){e(t,i,o)}};const Vz=ot("IPeekViewService");ht(Vz,class{constructor(){this._widgets=new Map}addExclusiveWidget(o,e){const t=this._widgets.get(o);t&&(t.listener.dispose(),t.widget.dispose());const i=()=>{const n=this._widgets.get(o);n&&n.widget===e&&(n.listener.dispose(),this._widgets.delete(o))};this._widgets.set(o,{widget:e,listener:e.onDidClose(i)})}},1);var qs;(function(o){o.inPeekEditor=new de("inReferenceSearchEditor",!0,m("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),o.notInPeekEditor=o.inPeekEditor.toNegated()})(qs||(qs={}));let Yb=class{constructor(e,t){e instanceof Ph&&qs.inPeekEditor.bindTo(t)}dispose(){}};Yb.ID="editor.contrib.referenceController";Yb=Wz([Hz(1,Me)],Yb);vt(Yb.ID,Yb,0);function o_e(o){const e=o.get(_t).getFocusedCodeEditor();return e instanceof Ph?e.getParentEditor():e}const r_e={headerBackgroundColor:z.white,primaryHeadingColor:z.fromHex("#333333"),secondaryHeadingColor:z.fromHex("#6c6c6cb3")};let Cy=class extends s_e{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new O,this.onDidClose=this._onDidClose.event,Wy(this.options,r_e,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=te(".head"),this._bodyElement=te(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){this._titleElement=te(".peekview-title"),this.options.supportOnTitleClick&&(this._titleElement.classList.add("clickable"),Si(this._titleElement,"click",s=>this._onTitleClick(s))),Q(this._headElement,this._titleElement),this._fillTitleIcon(this._titleElement),this._primaryHeading=te("span.filename"),this._secondaryHeading=te("span.dirname"),this._metaHeading=te("span.meta"),Q(this._titleElement,this._primaryHeading,this._secondaryHeading,this._metaHeading);const i=te(".peekview-actions");Q(this._headElement,i);const n=this._getActionBarOptions();this._actionbarWidget=new ur(i,n),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new no("peekview.close",m("label.close","Close"),Te.asClassName(oe.close),!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:Z6.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:xn(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,eo(this._metaHeading)):gs(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0){this.dispose();return}const i=Math.ceil(this.editor.getOption(67)*1.2),n=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(n,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};Cy=Wz([Hz(2,Le)],Cy);const a_e=N("peekViewTitle.background",{dark:"#252526",light:"#F3F3F3",hcDark:z.black,hcLight:z.white},m("peekViewTitleBackground","Background color of the peek view title area.")),zz=N("peekViewTitleLabel.foreground",{dark:z.white,light:z.black,hcDark:z.white,hcLight:nr},m("peekViewTitleForeground","Color of the peek view title.")),Uz=N("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},m("peekViewTitleInfoForeground","Color of the peek view title info.")),l_e=N("peekView.border",{dark:Vs,light:Vs,hcDark:at,hcLight:at},m("peekViewBorder","Color of the peek view borders and arrow.")),d_e=N("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:z.black,hcLight:z.white},m("peekViewResultsBackground","Background color of the peek view result list."));N("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:z.white,hcLight:nr},m("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list."));N("peekViewResult.fileForeground",{dark:z.white,light:"#1E1E1E",hcDark:z.white,hcLight:nr},m("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list."));N("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},m("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list."));N("peekViewResult.selectionForeground",{dark:z.white,light:"#6C6C6C",hcDark:z.white,hcLight:nr},m("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list."));const eh=N("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:z.black,hcLight:z.white},m("peekViewEditorBackground","Background color of the peek view editor."));N("peekViewEditorGutter.background",{dark:eh,light:eh,hcDark:eh,hcLight:eh},m("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor."));N("peekViewEditorStickyScroll.background",{dark:eh,light:eh,hcDark:eh,hcLight:eh},m("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor."));N("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},m("peekViewResultsMatchHighlight","Match highlight color in the peek view result list."));N("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},m("peekViewEditorMatchHighlight","Match highlight color in the peek view editor."));N("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:ti,hcLight:ti},m("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));class Oh{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=RN.nextId()}get uri(){return this.link.uri}get range(){var e,t;return(t=(e=this._range)!==null&&e!==void 0?e:this.link.targetSelectionRange)!==null&&t!==void 0?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=(e=this.parent.getPreview(this))===null||e===void 0?void 0:e.preview(this.range);return t?m({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"{0} in {1} on line {2} at column {3}",t.value,cr(this.uri),this.range.startLineNumber,this.range.startColumn):m("aria.oneReference","in {0} on line {1} at column {2}",cr(this.uri),this.range.startLineNumber,this.range.startColumn)}}class c_e{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:n,startColumn:s,endLineNumber:r,endColumn:a}=e,l=i.getWordUntilPosition({lineNumber:n,column:s-t}),d=new x(n,l.startColumn,n,s),c=new x(r,a,r,1073741824),h=i.getValueInRange(d).replace(/^\s+/,""),u=i.getValueInRange(e),g=i.getValueInRange(c).replace(/\s+$/,"");return{value:h+u+g,highlight:{start:h.length,end:h.length+u.length}}}}class Qb{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new Ni}dispose(){Pt(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return e===1?m("aria.fileReferences.1","1 symbol in {0}, full path {1}",cr(this.uri),this.uri.fsPath):m("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,cr(this.uri),this.uri.fsPath)}async resolve(e){if(this._previews.size!==0)return this;for(const t of this.children)if(!this._previews.has(t.uri))try{const i=await e.createModelReference(t.uri);this._previews.set(t.uri,new c_e(i))}catch(i){ze(i)}return this}}class oo{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new O,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;e.sort(oo._compareReferences);let n;for(const s of e)if((!n||!ii.isEqual(n.uri,s.uri,!0))&&(n=new Qb(this,s.uri),this.groups.push(n)),n.children.length===0||oo._compareReferences(s,n.children[n.children.length-1])!==0){const r=new Oh(i===s,n,s,a=>this._onDidChangeReferenceRange.fire(a));this.references.push(r),n.children.push(r)}}dispose(){Pt(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new oo(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?m("aria.result.0","No results found"):this.references.length===1?m("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?m("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):m("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let n=i.children.indexOf(e);const s=i.children.length,r=i.parent.groups.length;return r===1||t&&n+10?(t?n=(n+1)%s:n=(n+s-1)%s,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%r,i.parent.groups[n].children[0]):(n=(n+r-1)%r,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){const i=this.references.map((n,s)=>({idx:s,prefixLen:Ch(n.uri.toString(),e.toString()),offsetDist:Math.abs(n.range.startLineNumber-t.lineNumber)*100+Math.abs(n.range.startColumn-t.column)})).sort((n,s)=>n.prefixLen>s.prefixLen?-1:n.prefixLens.offsetDist?1:0)[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&x.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return ii.compare(e.uri,t.uri)||x.compareRangesUsingStarts(e.range,t.range)}}var vx=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},bx=function(o,e){return function(t,i){e(t,i,o)}},CM;let wM=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof oo||e instanceof Qb}getChildren(e){if(e instanceof oo)return e.groups;if(e instanceof Qb)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};wM=vx([bx(0,Gs)],wM);class h_e{getHeight(){return 23}getTemplateId(e){return e instanceof Qb?Xb.id:lC.id}}let SM=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof Oh){const i=(t=e.parent.getPreview(e))===null||t===void 0?void 0:t.preview(e.range);if(i)return i.value}return cr(e.uri)}};SM=vx([bx(0,St)],SM);class u_e{getId(e){return e instanceof Oh?e.id:e.uri}}let yM=class extends W{constructor(e,t){super(),this._labelService=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new QS(i,{supportHighlights:!0})),this.badge=new uT(Q(i,te(".count")),{},q6),e.appendChild(i)}set(e,t){const i=LL(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat(m("referencesCount","{0} references",n)):this.badge.setTitleFormat(m("referenceCount","{0} reference",n))}};yM=vx([bx(1,np)],yM);let Xb=CM=class{constructor(e){this._instantiationService=e,this.templateId=CM.id}renderTemplate(e){return this._instantiationService.createInstance(yM,e)}renderElement(e,t,i){i.set(e.element,U0(e.filterData))}disposeTemplate(e){e.dispose()}};Xb.id="FileReferencesRenderer";Xb=CM=vx([bx(0,Le)],Xb);class g_e extends W{constructor(e){super(),this.label=this._register(new uh(e))}set(e,t){var i;const n=(i=e.parent.getPreview(e))===null||i===void 0?void 0:i.preview(e.range);if(!n||!n.value)this.label.set(`${cr(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`);else{const{value:s,highlight:r}=n;t&&!ya.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(s,U0(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(s,[r]))}}}class lC{constructor(){this.templateId=lC.id}renderTemplate(e){return new g_e(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(e){e.dispose()}}lC.id="OneReferenceRenderer";class f_e{getWidgetAriaLabel(){return m("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var m_e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},nd=function(o,e){return function(t,i){e(t,i,o)}};class Cx{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new G,this._callOnModelChange=new G,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e){for(const t of this._model.references)if(t.uri.toString()===e.uri.toString()){this._addDecorations(t.parent);return}}}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));const t=[],i=[];for(let n=0,s=e.children.length;n{const s=n.deltaDecorations([],t);for(let r=0;r{s.equals(9)&&(this._keybindingService.dispatchEvent(s,s.target),s.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(__e,"ReferencesWidget",this._treeContainer,new h_e,[this._instantiationService.createInstance(Xb),this._instantiationService.createInstance(lC)],this._instantiationService.createInstance(wM),i),this._splitView.addView({onDidChange:ae.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:s=>{this._preview.layout({height:this._dim.height,width:s})}},jS.Distribute),this._splitView.addView({onDidChange:ae.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:s=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${s}px`,this._tree.layout(this._dim.height,s)}},jS.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));const n=(s,r)=>{s instanceof Oh&&(r==="show"&&this._revealReference(s,!1),this._onDidSelectReference.fire({element:s,kind:r,source:"tree"}))};this._tree.onDidOpen(s=>{s.sideBySide?n(s.element,"side"):s.editorOptions.pinned?n(s.element,"goto"):n(s.element,"show")}),gs(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new Ct(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then(()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))})}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=m("noResults","No results"),eo(this._messageContainer),Promise.resolve(void 0)):(gs(this._messageContainer),this._decorationsManager=new Cx(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(e=>this._tree.rerender(e))),this._disposeOnNewModel.add(this._preview.onMouseDown(e=>{const{event:t,target:i}=e;if(t.detail!==2)return;const n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),eo(this._treeContainer),eo(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();if(e instanceof Oh)return e;if(e instanceof Qb&&e.children.length>0)return e.children[0]}async revealReference(e){await this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})}async _revealReference(e,t){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==Oe.inMemory?this.setTitle(Nie(e.uri),this._uriLabel.getUriLabel(LL(e.uri))):this.setTitle(m("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent?this._tree.reveal(e):(t&&this._tree.reveal(e.parent),await this._tree.expand(e.parent),this._tree.reveal(e));const n=await i;if(!this._model){n.dispose();return}Pt(this._previewModelReference);const s=n.object;if(s){const r=this._preview.getModel()===s.textEditorModel?0:1,a=x.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(s.textEditorModel),this._preview.setSelection(a),this._preview.revealRangeInCenter(a,r)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()}};LM=m_e([nd(3,Ji),nd(4,Gs),nd(5,Le),nd(6,Vz),nd(7,np),nd(8,xL),nd(9,St),nd(10,si),nd(11,$t)],LM);var v_e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Cf=function(o,e){return function(t,i){e(t,i,o)}},Lw;const sf=new de("referenceSearchVisible",!1,m("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let Fh=Lw=class{static get(e){return e.getContribution(Lw.ID)}constructor(e,t,i,n,s,r,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=s,this._instantiationService=r,this._storageService=a,this._configurationService=l,this._disposables=new G,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=sf.bindTo(i)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),(e=this._widget)===null||e===void 0||e.dispose(),(t=this._model)===null||t===void 0||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),n&&e.containsPosition(n))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const s="peekViewLayout",r=p_e.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(LM,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(m("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(s,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(l=>{const{element:d,kind:c}=l;if(d)switch(c){case"open":(l.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(d,!1,!1);break;case"side":this.openReference(d,!0,!1);break;case"goto":i?this._gotoReference(d,!0):this.openReference(d,!1,!0);break}}));const a=++this._requestIdPool;t.then(l=>{var d;if(a!==this._requestIdPool||!this._widget){l.dispose();return}return(d=this._model)===null||d===void 0||d.dispose(),this._model=l,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(m("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const c=this._editor.getModel().uri,h=new F(e.startLineNumber,e.startColumn),u=this._model.nearestReference(c,h);if(u)return this._widget.setSelection(u).then(()=>{this._widget&&this._editor.getOption(87)==="editor"&&this._widget.focusOnPreviewEditor()})}})},l=>{this._notificationService.error(l)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}async goToNextOrPreviousReference(e){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const n=this._model.nextOrPreviousReference(i,e),s=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused();await this._widget.setSelection(n),await this._gotoReference(n,!1),s?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor()}async revealReference(e){!this._editor.hasModel()||!this._model||!this._widget||await this._widget.revealReference(e)}closeWidget(e=!0){var t,i;(t=this._widget)===null||t===void 0||t.dispose(),(i=this._model)===null||i===void 0||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){var i;(i=this._widget)===null||i===void 0||i.hide(),this._ignoreModelChangeEvent=!0;const n=x.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:n,selectionSource:"code.jump",pinned:t}},this._editor).then(s=>{var r;if(this._ignoreModelChangeEvent=!1,!s||!this._widget){this.closeWidget();return}if(this._editor===s)this._widget.show(n),this._widget.focusOnReferenceTree();else{const a=Lw.get(s),l=this._model.clone();this.closeWidget(),s.focus(),a==null||a.toggleWidget(n,an(d=>Promise.resolve(l)),(r=this._peekMode)!==null&&r!==void 0?r:!1)}},s=>{this._ignoreModelChangeEvent=!1,ze(s)})}openReference(e,t,i){t||this.closeWidget();const{uri:n,range:s}=e;this._editorService.openCodeEditor({resource:n,options:{selection:s,selectionSource:"code.jump",pinned:i}},this._editor,t)}};Fh.ID="editor.contrib.referencesController";Fh=Lw=v_e([Cf(2,Me),Cf(3,_t),Cf(4,Ri),Cf(5,Le),Cf(6,Kr),Cf(7,Je)],Fh);function of(o,e){const t=o_e(o);if(!t)return;const i=Fh.get(t);i&&e(i)}ks.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:Ki(2089,60),when:K.or(sf,qs.inPeekEditor),handler(o){of(o,e=>{e.changeFocusBetweenPreviewAndReferences()})}});ks.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:K.or(sf,qs.inPeekEditor),handler(o){of(o,e=>{e.goToNextOrPreviousReference(!0)})}});ks.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:K.or(sf,qs.inPeekEditor),handler(o){of(o,e=>{e.goToNextOrPreviousReference(!1)})}});ct.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference");ct.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference");ct.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch");ct.registerCommand("closeReferenceSearch",o=>of(o,e=>e.closeWidget()));ks.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:K.and(qs.inPeekEditor,K.not("config.editor.stablePeek"))});ks.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:K.and(sf,K.not("config.editor.stablePeek"),K.or(E.editorTextFocus,_H.negate()))});ks.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:K.and(sf,CH,Q2.negate(),X2.negate()),handler(o){var e;const i=(e=o.get(vr).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Oh&&of(o,n=>n.revealReference(i[0]))}});ks.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:K.and(sf,CH,Q2.negate(),X2.negate()),handler(o){var e;const i=(e=o.get(vr).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Oh&&of(o,n=>n.openReference(i[0],!0,!0))}});ct.registerCommand("openReference",o=>{var e;const i=(e=o.get(vr).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Oh&&of(o,n=>n.openReference(i[0],!1,!0))});var $z=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},G_=function(o,e){return function(t,i){e(t,i,o)}};const FP=new de("hasSymbols",!1,m("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),wx=ot("ISymbolNavigationService");let xM=class{constructor(e,t,i,n){this._editorService=t,this._notificationService=i,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=FP.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),(e=this._currentState)===null||e===void 0||e.dispose(),(t=this._currentMessage)===null||t===void 0||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1){this.reset();return}this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new DM(this._editorService),n=i.onDidChange(s=>{if(this._ignoreEditorChange)return;const r=this._editorService.getActiveCodeEditor();if(!r)return;const a=r.getModel(),l=r.getPosition();if(!a||!l)return;let d=!1,c=!1;for(const h of t.references)if(o2(h.uri,a.uri))d=!0,c=c||x.containsPosition(h.range,l);else if(d)break;(!d||!c)&&this.reset()});this._currentState=Wr(i,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:x.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var e;(e=this._currentMessage)===null||e===void 0||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?m("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):m("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};xM=$z([G_(0,Me),G_(1,_t),G_(2,Ri),G_(3,St)],xM);ht(wx,xM,1);le(new class extends Xi{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:FP,kbOpts:{weight:100,primary:70}})}runEditorCommand(o,e){return o.get(wx).revealNext(e)}});ks.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:FP,primary:9,handler(o){o.get(wx).reset()}});let DM=class{constructor(e){this._listener=new Map,this._disposables=new G,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),Pt(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,Wr(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){var t;(t=this._listener.get(e))===null||t===void 0||t.dispose(),this._listener.delete(e)}};DM=$z([G_(0,_t)],DM);function kM(o,e){return e.uri.scheme===o.uri.scheme?!0:!DE(e.uri,Oe.walkThroughSnippet,Oe.vscodeChatCodeBlock,Oe.vscodeChatCodeCompareBlock,Oe.vscodeCopilotBackingChatCodeBlock)}async function dC(o,e,t,i){const s=t.ordered(o).map(a=>Promise.resolve(i(a,o,e)).then(void 0,l=>{yi(l)})),r=await Promise.all(s);return xa(r.flat()).filter(a=>kM(o,a))}function Sx(o,e,t,i){return dC(e,t,o,(n,s,r)=>n.provideDefinition(s,r,i))}function jz(o,e,t,i){return dC(e,t,o,(n,s,r)=>n.provideDeclaration(s,r,i))}function Kz(o,e,t,i){return dC(e,t,o,(n,s,r)=>n.provideImplementation(s,r,i))}function qz(o,e,t,i){return dC(e,t,o,(n,s,r)=>n.provideTypeDefinition(s,r,i))}function yx(o,e,t,i,n){return dC(e,t,o,async(s,r,a)=>{var l,d;const c=(l=await s.provideReferences(r,a,{includeDeclaration:!0},n))===null||l===void 0?void 0:l.filter(u=>kM(r,u));if(!i||!c||c.length!==2)return c;const h=(d=await s.provideReferences(r,a,{includeDeclaration:!1},n))===null||d===void 0?void 0:d.filter(u=>kM(r,u));return h&&h.length===1?h:c})}async function cC(o){const e=await o(),t=new oo(e,""),i=t.references.map(n=>n.link);return t.dispose(),i}Kl("_executeDefinitionProvider",(o,e,t)=>{const i=o.get(me),n=Sx(i.definitionProvider,e,t,st.None);return cC(()=>n)});Kl("_executeTypeDefinitionProvider",(o,e,t)=>{const i=o.get(me),n=qz(i.typeDefinitionProvider,e,t,st.None);return cC(()=>n)});Kl("_executeDeclarationProvider",(o,e,t)=>{const i=o.get(me),n=jz(i.declarationProvider,e,t,st.None);return cC(()=>n)});Kl("_executeReferenceProvider",(o,e,t)=>{const i=o.get(me),n=yx(i.referenceProvider,e,t,!1,st.None);return cC(()=>n)});Kl("_executeImplementationProvider",(o,e,t)=>{const i=o.get(me),n=Kz(i.implementationProvider,e,t,st.None);return cC(()=>n)});var w_,S_,y_,v1,b1,C1,w1,S1;mn.appendMenuItem(k.EditorContext,{submenu:k.EditorContextPeek,title:m("peek.submenu","Peek"),group:"navigation",order:100});class _p{static is(e){return!e||typeof e!="object"?!1:!!(e instanceof _p||F.isIPosition(e.position)&&e.model)}constructor(e,t){this.model=e,this.position=t}}class is extends Fa{static all(){return is._allSymbolNavigationCommands.values()}static _patchConfig(e){const t={...e,f1:!0};if(t.menu)for(const i of dt.wrap(t.menu))(i.id===k.EditorContext||i.id===k.EditorContextPeek)&&(i.when=K.and(e.precondition,i.when));return t}constructor(e,t){super(is._patchConfig(t)),this.configuration=e,is._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,i,n){if(!t.hasModel())return Promise.resolve(void 0);const s=e.get(Ri),r=e.get(_t),a=e.get(Zh),l=e.get(wx),d=e.get(me),c=e.get(Le),h=t.getModel(),u=t.getPosition(),g=_p.is(i)?i:new _p(h,u),f=new Th(t,5),p=D0(this._getLocationModel(d,g.model,g.position,f.token),f.token).then(async _=>{var v;if(!_||f.token.isCancellationRequested)return;js(_.ariaMessage);let b;if(_.referenceAt(h.uri,u)){const w=this._getAlternativeCommand(t);!is._activeAlternativeCommands.has(w)&&is._allSymbolNavigationCommands.has(w)&&(b=is._allSymbolNavigationCommands.get(w))}const C=_.references.length;if(C===0){if(!this.configuration.muteMessage){const w=h.getWordAtPosition(u);(v=Ls.get(t))===null||v===void 0||v.showMessage(this._getNoResultFoundMessage(w),u)}}else if(C===1&&b)is._activeAlternativeCommands.add(this.desc.id),c.invokeFunction(w=>b.runEditorCommand(w,t,i,n).finally(()=>{is._activeAlternativeCommands.delete(this.desc.id)}));else return this._onResult(r,l,t,_,n)},_=>{s.error(_)}).finally(()=>{f.dispose()});return a.showWhile(p,250),p}async _onResult(e,t,i,n,s){const r=this._getGoToPreference(i);if(!(i instanceof Ph)&&(this.configuration.openInPeek||r==="peek"&&n.references.length>1))this._openInPeek(i,n,s);else{const a=n.firstReference(),l=n.references.length>1&&r==="gotoAndPeek",d=await this._openReference(i,e,a,this.configuration.openToSide,!l);l&&d?this._openInPeek(d,n,s):n.dispose(),r==="goto"&&t.put(a)}}async _openReference(e,t,i,n,s){let r;if(DK(i)&&(r=i.targetSelectionRange),r||(r=i.range),!r)return;const a=await t.openCodeEditor({resource:i.uri,options:{selection:x.collapseToStart(r),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(a){if(s){const l=a.getModel(),d=a.createDecorationsCollection([{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{a.getModel()===l&&d.clear()},350)}return a}}_openInPeek(e,t,i){const n=Fh.get(e);n&&e.hasModel()?n.toggleWidget(i??e.getSelection(),an(s=>Promise.resolve(t)),this.configuration.openInPeek):t.dispose()}}is._allSymbolNavigationCommands=new Map;is._activeAlternativeCommands=new Set;class hC extends is{async _getLocationModel(e,t,i,n){return new oo(await Sx(e.definitionProvider,t,i,n),m("def.title","Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?m("noResultWord","No definition found for '{0}'",e.word):m("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleDefinitions}}Vt((w_=class extends hC{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:w_.id,title:{...Fe("actions.goToDecl.label","Go to Definition"),mnemonicTitle:m({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:E.hasDefinitionProvider,keybinding:[{when:E.editorTextFocus,primary:70,weight:100},{when:K.and(E.editorTextFocus,mH),primary:2118,weight:100}],menu:[{id:k.EditorContext,group:"navigation",order:1.1},{id:k.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),ct.registerCommandAlias("editor.action.goToDeclaration",w_.id)}},w_.id="editor.action.revealDefinition",w_));Vt((S_=class extends hC{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:S_.id,title:Fe("actions.goToDeclToSide.label","Open Definition to the Side"),precondition:K.and(E.hasDefinitionProvider,E.isInEmbeddedEditor.toNegated()),keybinding:[{when:E.editorTextFocus,primary:Ki(2089,70),weight:100},{when:K.and(E.editorTextFocus,mH),primary:Ki(2089,2118),weight:100}]}),ct.registerCommandAlias("editor.action.openDeclarationToTheSide",S_.id)}},S_.id="editor.action.revealDefinitionAside",S_));Vt((y_=class extends hC{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:y_.id,title:Fe("actions.previewDecl.label","Peek Definition"),precondition:K.and(E.hasDefinitionProvider,qs.notInPeekEditor,E.isInEmbeddedEditor.toNegated()),keybinding:{when:E.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:k.EditorContextPeek,group:"peek",order:2}}),ct.registerCommandAlias("editor.action.previewDeclaration",y_.id)}},y_.id="editor.action.peekDefinition",y_));class Gz extends is{async _getLocationModel(e,t,i,n){return new oo(await jz(e.declarationProvider,t,i,n),m("decl.title","Declarations"))}_getNoResultFoundMessage(e){return e&&e.word?m("decl.noResultWord","No declaration found for '{0}'",e.word):m("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(58).multipleDeclarations}}Vt((v1=class extends Gz{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:v1.id,title:{...Fe("actions.goToDeclaration.label","Go to Declaration"),mnemonicTitle:m({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:K.and(E.hasDeclarationProvider,E.isInEmbeddedEditor.toNegated()),menu:[{id:k.EditorContext,group:"navigation",order:1.3},{id:k.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?m("decl.noResultWord","No declaration found for '{0}'",e.word):m("decl.generic.noResults","No declaration found")}},v1.id="editor.action.revealDeclaration",v1));Vt(class extends Gz{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:Fe("actions.peekDecl.label","Peek Declaration"),precondition:K.and(E.hasDeclarationProvider,qs.notInPeekEditor,E.isInEmbeddedEditor.toNegated()),menu:{id:k.EditorContextPeek,group:"peek",order:3}})}});class Zz extends is{async _getLocationModel(e,t,i,n){return new oo(await qz(e.typeDefinitionProvider,t,i,n),m("typedef.title","Type Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?m("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):m("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleTypeDefinitions}}Vt((b1=class extends Zz{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:b1.ID,title:{...Fe("actions.goToTypeDefinition.label","Go to Type Definition"),mnemonicTitle:m({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:E.hasTypeDefinitionProvider,keybinding:{when:E.editorTextFocus,primary:0,weight:100},menu:[{id:k.EditorContext,group:"navigation",order:1.4},{id:k.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}},b1.ID="editor.action.goToTypeDefinition",b1));Vt((C1=class extends Zz{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:C1.ID,title:Fe("actions.peekTypeDefinition.label","Peek Type Definition"),precondition:K.and(E.hasTypeDefinitionProvider,qs.notInPeekEditor,E.isInEmbeddedEditor.toNegated()),menu:{id:k.EditorContextPeek,group:"peek",order:4}})}},C1.ID="editor.action.peekTypeDefinition",C1));class Yz extends is{async _getLocationModel(e,t,i,n){return new oo(await Kz(e.implementationProvider,t,i,n),m("impl.title","Implementations"))}_getNoResultFoundMessage(e){return e&&e.word?m("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):m("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(58).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(58).multipleImplementations}}Vt((w1=class extends Yz{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:w1.ID,title:{...Fe("actions.goToImplementation.label","Go to Implementations"),mnemonicTitle:m({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:E.hasImplementationProvider,keybinding:{when:E.editorTextFocus,primary:2118,weight:100},menu:[{id:k.EditorContext,group:"navigation",order:1.45},{id:k.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}},w1.ID="editor.action.goToImplementation",w1));Vt((S1=class extends Yz{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:S1.ID,title:Fe("actions.peekImplementation.label","Peek Implementations"),precondition:K.and(E.hasImplementationProvider,qs.notInPeekEditor,E.isInEmbeddedEditor.toNegated()),keybinding:{when:E.editorTextFocus,primary:3142,weight:100},menu:{id:k.EditorContextPeek,group:"peek",order:5}})}},S1.ID="editor.action.peekImplementation",S1));class Qz extends is{_getNoResultFoundMessage(e){return e?m("references.no","No references found for '{0}'",e.word):m("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(58).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(58).multipleReferences}}Vt(class extends Qz{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{...Fe("goToReferences.label","Go to References"),mnemonicTitle:m({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:K.and(E.hasReferenceProvider,qs.notInPeekEditor,E.isInEmbeddedEditor.toNegated()),keybinding:{when:E.editorTextFocus,primary:1094,weight:100},menu:[{id:k.EditorContext,group:"navigation",order:1.45},{id:k.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}async _getLocationModel(e,t,i,n){return new oo(await yx(e.referenceProvider,t,i,!0,n),m("ref.title","References"))}});Vt(class extends Qz{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:Fe("references.action.label","Peek References"),precondition:K.and(E.hasReferenceProvider,qs.notInPeekEditor,E.isInEmbeddedEditor.toNegated()),menu:{id:k.EditorContextPeek,group:"peek",order:6}})}async _getLocationModel(e,t,i,n){return new oo(await yx(e.referenceProvider,t,i,!1,n),m("ref.title","References"))}});class b_e extends is{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:Fe("label.generic","Go to Any Symbol"),precondition:K.and(qs.notInPeekEditor,E.isInEmbeddedEditor.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}async _getLocationModel(e,t,i,n){return new oo(this._references,m("generic.title","Locations"))}_getNoResultFoundMessage(e){return e&&m("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(58).multipleReferences}_getAlternativeCommand(){return""}}ct.registerCommand({id:"editor.action.goToLocations",metadata:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:ke},{name:"position",description:"The position at which to start",constraint:F.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:async(o,e,t,i,n,s,r)=>{pt(ke.isUri(e)),pt(F.isIPosition(t)),pt(Array.isArray(i)),pt(typeof n>"u"||typeof n=="string"),pt(typeof r>"u"||typeof r=="boolean");const a=o.get(_t),l=await a.openCodeEditor({resource:e},a.getFocusedCodeEditor());if(Vl(l))return l.setPosition(t),l.revealPositionInCenterIfOutsideViewport(t,0),l.invokeWithinContext(d=>{const c=new class extends b_e{_getNoResultFoundMessage(h){return s||super._getNoResultFoundMessage(h)}}({muteMessage:!s,openInPeek:!!r,openToSide:!1},i,n);d.get(Le).invokeFunction(c.run.bind(c),l)})}});ct.registerCommand({id:"editor.action.peekLocations",metadata:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:ke},{name:"position",description:"The position at which to start",constraint:F.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"}]},handler:async(o,e,t,i,n)=>{o.get(Qt).executeCommand("editor.action.goToLocations",e,t,i,n,void 0,!0)}});ct.registerCommand({id:"editor.action.findReferences",handler:(o,e,t)=>{pt(ke.isUri(e)),pt(F.isIPosition(t));const i=o.get(me),n=o.get(_t);return n.openCodeEditor({resource:e},n.getFocusedCodeEditor()).then(s=>{if(!Vl(s)||!s.hasModel())return;const r=Fh.get(s);if(!r)return;const a=an(d=>yx(i.referenceProvider,s.getModel(),F.lift(t),!1,d).then(c=>new oo(c,m("ref.title","References")))),l=new x(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(r.toggleWidget(l,a,!1))})}});ct.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");async function C_e(o,e,t,i){var n;const s=o.get(Gs),r=o.get(go),a=o.get(Qt),l=o.get(Le),d=o.get(Ri);if(await i.item.resolve(st.None),!i.part.location)return;const c=i.part.location,h=[],u=new Set(mn.getMenuItems(k.EditorContext).map(f=>Wf(f)?f.command.id:hx()));for(const f of is.all())u.has(f.desc.id)&&h.push(new no(f.desc.id,so.label(f.desc,{renderShortTitle:!0}),void 0,!0,async()=>{const p=await s.createModelReference(c.uri);try{const _=new _p(p.object.textEditorModel,x.getStartPosition(c.range)),v=i.item.anchor.range;await l.invokeFunction(f.runEditorCommand.bind(f),e,_,v)}finally{p.dispose()}}));if(i.part.command){const{command:f}=i.part;h.push(new ji),h.push(new no(f.id,f.title,void 0,!0,async()=>{var p;try{await a.executeCommand(f.id,...(p=f.arguments)!==null&&p!==void 0?p:[])}catch(_){d.notify({severity:DL.Error,source:i.item.provider.displayName,message:_})}}))}const g=e.getOption(127);r.showContextMenu({domForShadowRoot:g&&(n=e.getDomNode())!==null&&n!==void 0?n:void 0,getAnchor:()=>{const f=Oi(t);return{x:f.left,y:f.top+f.height+8}},getActions:()=>h,onHide:()=>{e.focus()},autoSelectFirstItem:!0})}async function Xz(o,e,t,i){const s=await o.get(Gs).createModelReference(i.uri);await t.invokeWithinContext(async r=>{const a=e.hasSideBySideModifier,l=r.get(Me),d=qs.inPeekEditor.getValue(l),c=!a&&t.getOption(88)&&!d;return new hC({openToSide:a,openInPeek:c,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(r,new _p(s.object.textEditorModel,x.getStartPosition(i.range)),x.lift(i.range))}),s.dispose()}var w_e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},wf=function(o,e){return function(t,i){e(t,i,o)}},Mf;class wy{constructor(){this._entries=new ql(50)}get(e){const t=wy._key(e);return this._entries.get(t)}set(e,t){const i=wy._key(e);this._entries.set(i,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}}const Jz=ot("IInlayHintsCache");ht(Jz,wy,1);class IM{constructor(e,t){this.item=e,this.index=t}get part(){const e=this.item.hint.label;return typeof e=="string"?{label:e}:e[this.index]}}class S_e{constructor(e,t){this.part=e,this.hasTriggerModifier=t}}let Bh=Mf=class{static get(e){var t;return(t=e.getContribution(Mf.ID))!==null&&t!==void 0?t:void 0}constructor(e,t,i,n,s,r,a){this._editor=e,this._languageFeaturesService=t,this._inlayHintsCache=n,this._commandService=s,this._notificationService=r,this._instaService=a,this._disposables=new G,this._sessionDisposables=new G,this._decorationsMetadata=new Map,this._ruleFactory=new A0(this._editor),this._activeRenderMode=0,this._debounceInfo=i.for(t.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(t.inlayHintsProvider.onDidChange(()=>this._update())),this._disposables.add(e.onDidChangeModel(()=>this._update())),this._disposables.add(e.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(e.onDidChangeConfiguration(l=>{l.hasChanged(141)&&this._update()})),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();const e=this._editor.getOption(141);if(e.enabled==="off")return;const t=this._editor.getModel();if(!t||!this._languageFeaturesService.inlayHintsProvider.has(t))return;if(e.enabled==="on")this._activeRenderMode=0;else{let a,l;e.enabled==="onUnlessPressed"?(a=0,l=1):(a=1,l=0),this._activeRenderMode=a,this._sessionDisposables.add(xd.getInstance().event(d=>{if(!this._editor.hasModel())return;const c=d.altKey&&d.ctrlKey&&!(d.shiftKey||d.metaKey)?l:a;if(c!==this._activeRenderMode){this._activeRenderMode=c;const h=this._editor.getModel(),u=this._copyInlayHintsWithCurrentAnchor(h);this._updateHintsDecorators([h.getFullModelRange()],u),r.schedule(0)}}))}const i=this._inlayHintsCache.get(t);i&&this._updateHintsDecorators([t.getFullModelRange()],i),this._sessionDisposables.add(Ce(()=>{t.isDisposed()||this._cacheHintsForFastRestore(t)}));let n;const s=new Set,r=new At(async()=>{const a=Date.now();n==null||n.dispose(!0),n=new ci;const l=t.onWillDispose(()=>n==null?void 0:n.cancel());try{const d=n.token,c=await og.create(this._languageFeaturesService.inlayHintsProvider,t,this._getHintsRanges(),d);if(r.delay=this._debounceInfo.update(t,Date.now()-a),d.isCancellationRequested){c.dispose();return}for(const h of c.provider)typeof h.onDidChangeInlayHints=="function"&&!s.has(h)&&(s.add(h),this._sessionDisposables.add(h.onDidChangeInlayHints(()=>{r.isScheduled()||r.schedule()})));this._sessionDisposables.add(c),this._updateHintsDecorators(c.ranges,c.items),this._cacheHintsForFastRestore(t)}catch(d){ze(d)}finally{n.dispose(),l.dispose()}},this._debounceInfo.get(t));this._sessionDisposables.add(r),this._sessionDisposables.add(Ce(()=>n==null?void 0:n.dispose(!0))),r.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange(a=>{(a.scrollTopChanged||!r.isScheduled())&&r.schedule()})),this._sessionDisposables.add(this._editor.onDidChangeModelContent(a=>{n==null||n.cancel();const l=Math.max(r.delay,1250);r.schedule(l)})),this._sessionDisposables.add(this._installDblClickGesture(()=>r.schedule(0))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){const e=new G,t=e.add(new px(this._editor)),i=new G;return e.add(i),e.add(t.onMouseMoveOrRelevantKeyDown(n=>{const[s]=n,r=this._getInlayHintLabelPart(s),a=this._editor.getModel();if(!r||!a){i.clear();return}const l=new ci;i.add(Ce(()=>l.dispose(!0))),r.item.resolve(l.token),this._activeInlayHintPart=r.part.command||r.part.location?new S_e(r,s.hasTriggerModifier):void 0;const d=a.validatePosition(r.item.hint.position).lineNumber,c=new x(d,1,d,a.getLineMaxColumn(d)),h=this._getInlineHintsForRange(c);this._updateHintsDecorators([c],h),i.add(Ce(()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([c],h)}))})),e.add(t.onCancel(()=>i.clear())),e.add(t.onExecute(async n=>{const s=this._getInlayHintLabelPart(n);if(s){const r=s.part;r.location?this._instaService.invokeFunction(Xz,n,this._editor,r.location):DI.is(r.command)&&await this._invokeCommand(r.command,s.item)}})),e}_getInlineHintsForRange(e){const t=new Set;for(const i of this._decorationsMetadata.values())e.containsRange(i.item.anchor.range)&&t.add(i.item);return Array.from(t)}_installDblClickGesture(e){return this._editor.onMouseUp(async t=>{if(t.event.detail!==2)return;const i=this._getInlayHintLabelPart(t);if(i&&(t.event.preventDefault(),await i.item.resolve(st.None),jn(i.item.hint.textEdits))){const n=i.item.hint.textEdits.map(s=>ri.replace(x.lift(s.range),s.text));this._editor.executeEdits("inlayHint.default",n),e()}})}_installContextMenu(){return this._editor.onContextMenu(async e=>{if(!_n(e.event.target))return;const t=this._getInlayHintLabelPart(e);t&&await this._instaService.invokeFunction(C_e,this._editor,e.event.target,t)})}_getInlayHintLabelPart(e){var t;if(e.target.type!==6)return;const i=(t=e.target.detail.injectedText)===null||t===void 0?void 0:t.options;if(i instanceof Ih&&(i==null?void 0:i.attachedData)instanceof IM)return i.attachedData}async _invokeCommand(e,t){var i;try{await this._commandService.executeCommand(e.id,...(i=e.arguments)!==null&&i!==void 0?i:[])}catch(n){this._notificationService.notify({severity:DL.Error,source:t.provider.displayName,message:n})}}_cacheHintsForFastRestore(e){const t=this._copyInlayHintsWithCurrentAnchor(e);this._inlayHintsCache.set(e,t)}_copyInlayHintsWithCurrentAnchor(e){const t=new Map;for(const[i,n]of this._decorationsMetadata){if(t.has(n.item))continue;const s=e.getDecorationRange(i);if(s){const r=new Bz(s,n.item.anchor.direction),a=n.item.with({anchor:r});t.set(n.item,a)}}return Array.from(t.values())}_getHintsRanges(){const t=this._editor.getModel(),i=this._editor.getVisibleRangesPlusViewportAboveBelow(),n=[];for(const s of i.sort(x.compareRangesUsingStarts)){const r=t.validateRange(new x(s.startLineNumber-30,s.startColumn,s.endLineNumber+30,s.endColumn));n.length===0||!x.areIntersectingOrTouching(n[n.length-1],r)?n.push(r):n[n.length-1]=x.plusRange(n[n.length-1],r)}return n}_updateHintsDecorators(e,t){var i,n;const s=[],r=(_,v,b,C,w)=>{const S={content:b,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:v.className,cursorStops:C,attachedData:w};s.push({item:_,classNameRef:v,decoration:{range:_.anchor.range,options:{description:"InlayHint",showIfCollapsed:_.anchor.range.isEmpty(),collapseOnReplaceEdit:!_.anchor.range.isEmpty(),stickiness:0,[_.anchor.direction]:this._activeRenderMode===0?S:void 0}}})},a=(_,v)=>{const b=this._ruleFactory.createClassNameRef({width:`${l/3|0}px`,display:"inline-block"});r(_,b," ",v?Ar.Right:Ar.None)},{fontSize:l,fontFamily:d,padding:c,isUniform:h}=this._getLayoutInfo(),u="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(u,d);let g={line:0,totalLen:0};for(const _ of t){if(g.line!==_.anchor.range.startLineNumber&&(g={line:_.anchor.range.startLineNumber,totalLen:0}),g.totalLen>Mf._MAX_LABEL_LEN)continue;_.hint.paddingLeft&&a(_,!1);const v=typeof _.hint.label=="string"?[{label:_.hint.label}]:_.hint.label;for(let b=0;b0&&(D=D.slice(0,-T)+"…",I=!0),r(_,this._ruleFactory.createClassNameRef(L),y_e(D),S&&!_.hint.paddingRight?Ar.Right:Ar.None,new IM(_,b)),I)break}if(_.hint.paddingRight&&a(_,!0),s.length>Mf._MAX_DECORATORS)break}const f=[];for(const[_,v]of this._decorationsMetadata){const b=(n=this._editor.getModel())===null||n===void 0?void 0:n.getDecorationRange(_);b&&e.some(C=>C.containsRange(b))&&(f.push(_),v.classNameRef.dispose(),this._decorationsMetadata.delete(_))}const p=Pa.capture(this._editor);this._editor.changeDecorations(_=>{const v=_.deltaDecorations(f,s.map(b=>b.decoration));for(let b=0;bi)&&(s=i);const r=e.fontFamily||n;return{fontSize:s,fontFamily:r,padding:t,isUniform:!t&&r===n&&s===i}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(const e of this._decorationsMetadata.values())e.classNameRef.dispose();this._decorationsMetadata.clear()}};Bh.ID="editor.contrib.InlayHints";Bh._MAX_DECORATORS=1500;Bh._MAX_LABEL_LEN=43;Bh=Mf=w_e([wf(1,me),wf(2,fr),wf(3,Jz),wf(4,Qt),wf(5,Ri),wf(6,Le)],Bh);function y_e(o){return o.replace(/[ \t]/g," ")}ct.registerCommand("_executeInlayHintProvider",async(o,...e)=>{const[t,i]=e;pt(ke.isUri(t)),pt(x.isIRange(i));const{inlayHintsProvider:n}=o.get(me),s=await o.get(Gs).createModelReference(t);try{const r=await og.create(n,s.object.textEditorModel,[x.lift(i)],st.None),a=r.items.map(l=>l.hint);return setTimeout(()=>r.dispose(),0),a}finally{s.dispose()}});var L_e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},pu=function(o,e){return function(t,i){e(t,i,o)}};class LB extends sg{constructor(e,t,i,n){super(10,t,e.item.anchor.range,i,n,!0),this.part=e}}let Sy=class extends Zb{constructor(e,t,i,n,s,r,a,l){super(e,t,i,r,l,n,s),this._resolverService=a,this.hoverOrdinal=6}suggestHoverAnchor(e){var t;if(!Bh.get(this._editor)||e.target.type!==6)return null;const n=(t=e.target.detail.injectedText)===null||t===void 0?void 0:t.options;return n instanceof Ih&&n.attachedData instanceof IM?new LB(n.attachedData,this,e.event.posx,e.event.posy):null}computeSync(){return[]}computeAsync(e,t,i){return e instanceof LB?new Bi(async n=>{const{part:s}=e;if(await s.item.resolve(i),i.isCancellationRequested)return;let r;typeof s.item.hint.tooltip=="string"?r=new Un().appendText(s.item.hint.tooltip):s.item.hint.tooltip&&(r=s.item.hint.tooltip),r&&n.emitOne(new ga(this,e.range,[r],!1,0)),jn(s.item.hint.textEdits)&&n.emitOne(new ga(this,e.range,[new Un().appendText(m("hint.dbl","Double-click to insert"))],!1,10001));let a;if(typeof s.part.tooltip=="string"?a=new Un().appendText(s.part.tooltip):s.part.tooltip&&(a=s.part.tooltip),a&&n.emitOne(new ga(this,e.range,[a],!1,1)),s.part.location||s.part.command){let d;const h=this._editor.getOption(78)==="altKey"?it?m("links.navigate.kb.meta.mac","cmd + click"):m("links.navigate.kb.meta","ctrl + click"):it?m("links.navigate.kb.alt.mac","option + click"):m("links.navigate.kb.alt","alt + click");s.part.location&&s.part.command?d=new Un().appendText(m("hint.defAndCommand","Go to Definition ({0}), right click for more",h)):s.part.location?d=new Un().appendText(m("hint.def","Go to Definition ({0})",h)):s.part.command&&(d=new Un(`[${m("hint.cmd","Execute Command")}](${Xpe(s.part.command)} "${s.part.command.title}") (${h})`,{isTrusted:!0})),d&&n.emitOne(new ga(this,e.range,[d],!1,1e4))}const l=await this._resolveInlayHintLabelPartHover(s,i);for await(const d of l)n.emitOne(d)}):Bi.EMPTY}async _resolveInlayHintLabelPartHover(e,t){if(!e.part.location)return Bi.EMPTY;const{uri:i,range:n}=e.part.location,s=await this._resolverService.createModelReference(i);try{const r=s.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(r)?PP(this._languageFeaturesService.hoverProvider,r,new F(n.startLineNumber,n.startColumn),t).filter(a=>!tp(a.hover.contents)).map(a=>new ga(this,e.item.anchor.range,a.hover.contents,!1,2+a.ordinal)):Bi.EMPTY}finally{s.dispose()}}};Sy=L_e([pu(1,si),pu(2,fo),pu(3,St),pu(4,Gl),pu(5,Je),pu(6,Gs),pu(7,me)],Sy);class yy{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(t.type!==1&&!t.supportsMarkerHover)return[];const i=e.getModel(),n=t.range.startLineNumber;if(n>i.getLineCount())return[];const s=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter(r=>{if(r.options.isWholeLine)return!0;const a=r.range.startLineNumber===n?r.range.startColumn:1,l=r.range.endLineNumber===n?r.range.endColumn:s;if(r.options.showIfCollapsed){if(a>t.range.startColumn+1||t.range.endColumn-1>l)return!1}else if(a>t.range.startColumn||t.range.endColumn>l)return!1;return!0})}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return Bi.EMPTY;const i=yy._getLineDecorations(this._editor,t);return Bi.merge(this._participants.map(n=>n.computeAsync?n.computeAsync(t,i,e):Bi.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=yy._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return xa(t)}}class eU{constructor(e,t,i){this.anchor=e,this.messages=t,this.isComplete=i}filter(e){const t=this.messages.filter(i=>i.isValidForHoverAnchor(e));return t.length===this.messages.length?this:new x_e(this,this.anchor,t,this.isComplete)}}class x_e extends eU{constructor(e,t,i,n){super(t,i,n),this.original=e}filter(e){return this.original.filter(e)}}class D_e{constructor(e,t,i,n,s,r,a,l,d,c){this.initialMousePosX=e,this.initialMousePosY=t,this.colorPicker=i,this.showAtPosition=n,this.showAtSecondaryPosition=s,this.preferAbove=r,this.stoleFocus=a,this.source=l,this.isBeforeContent=d,this.disposables=c,this.closestMouseDistance=void 0}}var k_e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},I_e=function(o,e){return function(t,i){e(t,i,o)}};const xB=te;let Ly=class extends W{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=xB("div.hover-row.status-bar"),this.hoverElement.tabIndex=0,this.actionsElement=Q(this.hoverElement,xB("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(IL.render(this.actionsElement,e,i))}append(e){const t=Q(this.actionsElement,e);return this._hasContent=!0,t}};Ly=k_e([I_e(0,St)],Ly);var E_e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},DB=function(o,e){return function(t,i){e(t,i,o)}},xw;let xy=xw=class extends W{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._currentResult=null,this._onContentsChanged=this._register(new O),this.onContentsChanged=this._onContentsChanged.event,this._widget=this._register(this._instantiationService.createInstance(pp,this._editor)),this._participants=[];for(const n of Xh.getAll()){const s=this._instantiationService.createInstance(n,this._editor);s instanceof Zb&&!(s instanceof Sy)&&(this._markdownHoverParticipant=s),this._participants.push(s)}this._participants.sort((n,s)=>n.hoverOrdinal-s.hoverOrdinal),this._computer=new yy(this._editor,this._participants),this._hoverOperation=this._register(new Pz(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{if(!this._computer.anchor)return;const s=n.hasLoadingMessage?this._addLoadingMessage(n.value):n.value;this._withResult(new eU(this._computer.anchor,s,n.isComplete))})),this._register(Si(this._widget.getDomNode(),"keydown",n=>{n.equals(9)&&this.hide()})),this._register(gi.onDidChange(()=>{this._widget.position&&this._currentResult&&this._setCurrentResult(this._currentResult)}))}_startShowingOrUpdateHover(e,t,i,n,s){return!this._widget.position||!this._currentResult?e?(this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):!1:this._editor.getOption(60).sticky&&s&&this._widget.isMouseGettingCloser(s.event.posx,s.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,i,n,!0),!0):e?e&&this._currentResult.anchor.equals(e)?!0:e.canAdoptVisibleHover(this._currentResult.anchor,this._widget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(e,t,i,n,s){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=n,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=s,this._hoverOperation.start(t))}_setCurrentResult(e){this._currentResult!==e&&(e&&e.messages.length===0&&(e=null),this._currentResult=e,this._currentResult?this._renderMessages(this._currentResult.anchor,this._currentResult.messages):this._widget.hide())}_addLoadingMessage(e){if(this._computer.anchor){for(const t of this._participants)if(t.createLoadingMessage){const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}}return e}_withResult(e){this._widget.position&&this._currentResult&&this._currentResult.isComplete&&(!e.isComplete||this._computer.insistOnKeepingHoverVisible&&e.messages.length===0)||this._setCurrentResult(e)}_renderMessages(e,t){const{showAtPosition:i,showAtSecondaryPosition:n,highlightRange:s}=xw.computeHoverRanges(this._editor,e.range,t),r=new G,a=r.add(new Ly(this._keybindingService)),l=document.createDocumentFragment();let d=null;const c={fragment:l,statusBar:a,setColorPicker:u=>d=u,onContentsChanged:()=>this._doOnContentsChanged(),setMinimumDimensions:u=>this._widget.setMinimumDimensions(u),hide:()=>this.hide()};for(const u of this._participants){const g=t.filter(f=>f.owner===u);g.length>0&&r.add(u.renderHoverParts(c,g))}const h=t.some(u=>u.isBeforeContent);if(a.hasContent&&l.appendChild(a.hoverElement),l.hasChildNodes()){if(s){const u=this._editor.createDecorationsCollection();u.set([{range:s,options:xw._DECORATION_OPTIONS}]),r.add(Ce(()=>{u.clear()}))}this._widget.showAt(l,new D_e(e.initialMousePosX,e.initialMousePosY,d,i,n,this._editor.getOption(60).above,this._computer.shouldFocus,this._computer.source,h,r))}else r.dispose()}_doOnContentsChanged(){this._onContentsChanged.fire(),this._widget.onContentsChanged()}static computeHoverRanges(e,t,i){let n=1;if(e.hasModel()){const h=e._getViewModel(),u=h.coordinatesConverter,g=u.convertModelRangeToViewRange(t),f=new F(g.startLineNumber,h.getLineMinColumn(g.startLineNumber));n=u.convertViewPositionToModelPosition(f).column}const s=t.startLineNumber;let r=t.startColumn,a=i[0].range,l=null;for(const h of i)a=x.plusRange(a,h.range),h.range.startLineNumber===s&&h.range.endLineNumber===s&&(r=Math.max(Math.min(r,h.range.startColumn),n)),h.forceShowAtRange&&(l=h.range);const d=l?l.getStartPosition():new F(s,t.startColumn),c=l?l.getStartPosition():new F(s,r);return{showAtPosition:d,showAtSecondaryPosition:c,highlightRange:a}}showsOrWillShow(e){if(this._widget.isResizing)return!0;const t=[];for(const n of this._participants)if(n.suggestHoverAnchor){const s=n.suggestHoverAnchor(e);s&&t.push(s)}const i=e.target;if(i.type===6&&t.push(new Kk(0,i.range,e.event.posx,e.event.posy)),i.type===7){const n=this._editor.getOption(50).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&typeof i.detail.horizontalDistanceToText=="number"&&i.detail.horizontalDistanceToTexts.priority-n.priority),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,i,n){this._startShowingOrUpdateHover(new Kk(0,e,void 0,void 0),t,i,n,null)}async updateMarkdownHoverVerbosityLevel(e,t,i){var n;(n=this._markdownHoverParticipant)===null||n===void 0||n.updateMarkdownHoverVerbosityLevel(e,t,i)}markdownHoverContentAtIndex(e){var t,i;return(i=(t=this._markdownHoverParticipant)===null||t===void 0?void 0:t.markdownHoverContentAtIndex(e))!==null&&i!==void 0?i:""}doesMarkdownHoverAtIndexSupportVerbosityAction(e,t){var i,n;return(n=(i=this._markdownHoverParticipant)===null||i===void 0?void 0:i.doesMarkdownHoverAtIndexSupportVerbosityAction(e,t))!==null&&n!==void 0?n:!1}containsNode(e){return e?this._widget.getDomNode().contains(e):!1}focus(){this._widget.focus()}scrollUp(){this._widget.scrollUp()}scrollDown(){this._widget.scrollDown()}scrollLeft(){this._widget.scrollLeft()}scrollRight(){this._widget.scrollRight()}pageUp(){this._widget.pageUp()}pageDown(){this._widget.pageDown()}goToTop(){this._widget.goToTop()}goToBottom(){this._widget.goToBottom()}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}get isColorPickerVisible(){return this._widget.isColorPickerVisible}get isVisibleFromKeyboard(){return this._widget.isVisibleFromKeyboard}get isVisible(){return this._widget.isVisible}get isFocused(){return this._widget.isFocused}get isResizing(){return this._widget.isResizing}get widget(){return this._widget}};xy._DECORATION_OPTIONS=je.register({description:"content-hover-highlight",className:"hoverHighlight"});xy=xw=E_e([DB(1,Le),DB(2,St)],xy);class N_e{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}get lane(){return this._laneOrLine}set lane(e){this._laneOrLine=e}constructor(e){this._editor=e,this._lineNumber=-1,this._laneOrLine=Rl.Center}computeSync(){var e,t;const i=a=>({value:a}),n=this._editor.getLineDecorations(this._lineNumber),s=[],r=this._laneOrLine==="lineNo";if(!n)return s;for(const a of n){const l=(t=(e=a.options.glyphMargin)===null||e===void 0?void 0:e.position)!==null&&t!==void 0?t:Rl.Center;if(!r&&l!==this._laneOrLine)continue;const d=r?a.options.lineNumberHoverMessage:a.options.glyphMarginHoverMessage;!d||tp(d)||s.push(...jR(d).map(i))}return s}}const kB=te;class Jb extends W{constructor(e,t,i){super(),this._renderDisposeables=this._register(new G),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new S2),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new Fl({editor:this._editor},t,i)),this._computer=new N_e(this._editor),this._hoverOperation=this._register(new Pz(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{this._withResult(n.value)})),this._register(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(50)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return Jb.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}showsOrWillShow(e){const t=e.target;return t.type===2&&t.detail.glyphMarginLane?(this._startShowingAt(t.position.lineNumber,t.detail.glyphMarginLane),!0):t.type===3?(this._startShowingAt(t.position.lineNumber,"lineNo"),!0):!1}_startShowingAt(e,t){this._computer.lineNumber===e&&this._computer.lane===t||(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._computer.lane=t,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const n of t){const s=kB("div.hover-row.markdown-hover"),r=Q(s,kB("div.hover-contents")),a=this._renderDisposeables.add(this._markdownRenderer.render(n.value));r.appendChild(a.element),i.appendChild(s)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),s=this._editor.getOption(67),r=this._hover.containerDomNode.clientHeight,a=i-n-(r-s)/2,l=t.glyphMarginLeft+t.glyphMarginWidth+(this._computer.lane==="lineNo"?t.lineNumbersWidth:0);this._hover.containerDomNode.style.left=`${l}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(a),0)}px`}}Jb.ID="editor.contrib.modesGlyphHoverWidget";var T_e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},IB=function(o,e){return function(t,i){e(t,i,o)}},EM;const M_e=!1;let os=EM=class extends W{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._onHoverContentsChanged=this._register(new O),this.shouldKeepOpenOnEditorMouseMoveOrLeave=!1,this._listenersStore=new G,this._hoverState={mouseDown:!1,activatedByDecoratorClick:!1},this._reactToEditorMouseMoveRunner=this._register(new At(()=>this._reactToEditorMouseMove(this._mouseMoveEvent),0)),this._hookListeners(),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(60)&&(this._unhookListeners(),this._hookListeners())}))}static get(e){return e.getContribution(EM.ID)}_hookListeners(){const e=this._editor.getOption(60);this._hoverSettings={enabled:e.enabled,sticky:e.sticky,hidingDelay:e.delay},e.enabled?(this._listenersStore.add(this._editor.onMouseDown(t=>this._onEditorMouseDown(t))),this._listenersStore.add(this._editor.onMouseUp(()=>this._onEditorMouseUp())),this._listenersStore.add(this._editor.onMouseMove(t=>this._onEditorMouseMove(t))),this._listenersStore.add(this._editor.onKeyDown(t=>this._onKeyDown(t)))):(this._listenersStore.add(this._editor.onMouseMove(t=>this._onEditorMouseMove(t))),this._listenersStore.add(this._editor.onKeyDown(t=>this._onKeyDown(t)))),this._listenersStore.add(this._editor.onMouseLeave(t=>this._onEditorMouseLeave(t))),this._listenersStore.add(this._editor.onDidChangeModel(()=>{this._cancelScheduler(),this._hideWidgets()})),this._listenersStore.add(this._editor.onDidChangeModelContent(()=>this._cancelScheduler())),this._listenersStore.add(this._editor.onDidScrollChange(t=>this._onEditorScrollChanged(t)))}_unhookListeners(){this._listenersStore.clear()}_cancelScheduler(){this._mouseMoveEvent=void 0,this._reactToEditorMouseMoveRunner.cancel()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._hoverState.mouseDown=!0,!this._shouldNotHideCurrentHoverWidget(e)&&this._hideWidgets()}_shouldNotHideCurrentHoverWidget(e){return!!(this._isMouseOnContentHoverWidget(e)||this._isMouseOnMarginHoverWidget(e)||this._isContentWidgetResizing())}_isMouseOnMarginHoverWidget(e){const t=e.target;return t?t.type===12&&t.detail===Jb.ID:!1}_isMouseOnContentHoverWidget(e){const t=e.target;return t?t.type===9&&t.detail===pp.ID:!1}_onEditorMouseUp(){this._hoverState.mouseDown=!1}_onEditorMouseLeave(e){this.shouldKeepOpenOnEditorMouseMoveOrLeave||(this._cancelScheduler(),this._shouldNotHideCurrentHoverWidget(e))||this._hideWidgets()}_shouldNotRecomputeCurrentHoverWidget(e){const t=this._hoverSettings.sticky,i=(a,l)=>{const d=this._isMouseOnMarginHoverWidget(a);return l&&d},n=(a,l)=>{const d=this._isMouseOnContentHoverWidget(a);return l&&d},s=a=>{var l;const d=this._isMouseOnContentHoverWidget(a),c=(l=this._contentWidget)===null||l===void 0?void 0:l.isColorPickerVisible;return d&&c},r=(a,l)=>{var d,c,h,u;return l&&((d=this._contentWidget)===null||d===void 0?void 0:d.containsNode((c=a.event.browserEvent.view)===null||c===void 0?void 0:c.document.activeElement))&&!(!((u=(h=a.event.browserEvent.view)===null||h===void 0?void 0:h.getSelection())===null||u===void 0)&&u.isCollapsed)};return!!(i(e,t)||n(e,t)||s(e)||r(e,t))}_onEditorMouseMove(e){var t,i,n,s;if(this.shouldKeepOpenOnEditorMouseMoveOrLeave||(this._mouseMoveEvent=e,!((t=this._contentWidget)===null||t===void 0)&&t.isFocused||!((i=this._contentWidget)===null||i===void 0)&&i.isResizing))return;const r=this._hoverSettings.sticky;if(r&&(!((n=this._contentWidget)===null||n===void 0)&&n.isVisibleFromKeyboard))return;if(this._shouldNotRecomputeCurrentHoverWidget(e)){this._reactToEditorMouseMoveRunner.cancel();return}const l=this._hoverSettings.hidingDelay;if(((s=this._contentWidget)===null||s===void 0?void 0:s.isVisible)&&r&&l>0){this._reactToEditorMouseMoveRunner.isScheduled()||this._reactToEditorMouseMoveRunner.schedule(l);return}this._reactToEditorMouseMove(e)}_reactToEditorMouseMove(e){var t;if(!e)return;const n=(t=e.target.element)===null||t===void 0?void 0:t.classList.contains("colorpicker-color-decoration"),s=this._editor.getOption(148),r=this._hoverSettings.enabled,a=this._hoverState.activatedByDecoratorClick;if(n&&(s==="click"&&!a||s==="hover"&&!r&&!M_e||s==="clickAndHover"&&!r&&!a)||!n&&!r&&!a){this._hideWidgets();return}this._tryShowHoverWidget(e,0)||this._tryShowHoverWidget(e,1)||this._hideWidgets()}_tryShowHoverWidget(e,t){const i=this._getOrCreateContentWidget(),n=this._getOrCreateGlyphWidget();let s,r;switch(t){case 0:s=i,r=n;break;case 1:s=n,r=i;break;default:throw new Error(`HoverWidgetType ${t} is unrecognized`)}const a=s.showsOrWillShow(e);return a&&r.hide(),a}_onKeyDown(e){var t;if(!this._editor.hasModel())return;const i=this._keybindingService.softDispatch(e,this._editor.getDomNode()),n=i.kind===1||i.kind===2&&(i.commandId===Tz||i.commandId===fx||i.commandId===mx)&&((t=this._contentWidget)===null||t===void 0?void 0:t.isVisible);e.keyCode===5||e.keyCode===6||e.keyCode===57||e.keyCode===4||n||this._hideWidgets()}_hideWidgets(){var e,t,i;this._hoverState.mouseDown&&(!((e=this._contentWidget)===null||e===void 0)&&e.isColorPickerVisible)||Ah.dropDownVisible||(this._hoverState.activatedByDecoratorClick=!1,(t=this._glyphWidget)===null||t===void 0||t.hide(),(i=this._contentWidget)===null||i===void 0||i.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(xy,this._editor),this._listenersStore.add(this._contentWidget.onContentsChanged(()=>this._onHoverContentsChanged.fire()))),this._contentWidget}_getOrCreateGlyphWidget(){return this._glyphWidget||(this._glyphWidget=this._instantiationService.createInstance(Jb,this._editor)),this._glyphWidget}showContentHover(e,t,i,n,s=!1){this._hoverState.activatedByDecoratorClick=s,this._getOrCreateContentWidget().startShowingAtRange(e,t,i,n)}_isContentWidgetResizing(){var e;return((e=this._contentWidget)===null||e===void 0?void 0:e.widget.isResizing)||!1}markdownHoverContentAtIndex(e){return this._getOrCreateContentWidget().markdownHoverContentAtIndex(e)}doesMarkdownHoverAtIndexSupportVerbosityAction(e,t){return this._getOrCreateContentWidget().doesMarkdownHoverAtIndexSupportVerbosityAction(e,t)}updateMarkdownHoverVerbosityLevel(e,t,i){this._getOrCreateContentWidget().updateMarkdownHoverVerbosityLevel(e,t,i)}focus(){var e;(e=this._contentWidget)===null||e===void 0||e.focus()}scrollUp(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollUp()}scrollDown(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollDown()}scrollLeft(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollLeft()}scrollRight(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollRight()}pageUp(){var e;(e=this._contentWidget)===null||e===void 0||e.pageUp()}pageDown(){var e;(e=this._contentWidget)===null||e===void 0||e.pageDown()}goToTop(){var e;(e=this._contentWidget)===null||e===void 0||e.goToTop()}goToBottom(){var e;(e=this._contentWidget)===null||e===void 0||e.goToBottom()}get isColorPickerVisible(){var e;return(e=this._contentWidget)===null||e===void 0?void 0:e.isColorPickerVisible}get isHoverVisible(){var e;return(e=this._contentWidget)===null||e===void 0?void 0:e.isVisible}dispose(){var e,t;super.dispose(),this._unhookListeners(),this._listenersStore.dispose(),(e=this._glyphWidget)===null||e===void 0||e.dispose(),(t=this._contentWidget)===null||t===void 0||t.dispose()}};os.ID="editor.contrib.hover";os=EM=T_e([IB(1,Le),IB(2,St)],os);class NM extends W{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(t=>this.onMouseDown(t)))}dispose(){super.dispose()}onMouseDown(e){const t=this._editor.getOption(148);if(t!=="click"&&t!=="clickAndHover")return;const i=e.target;if(i.type!==6||!i.detail.injectedText||i.detail.injectedText.options.attachedData!==Lz||!i.range)return;const n=this._editor.getContribution(os.ID);if(n&&!n.isColorPickerVisible){const s=new x(i.range.startLineNumber,i.range.startColumn+1,i.range.endLineNumber,i.range.endColumn+1);n.showContentHover(s,1,0,!1,!0)}}}NM.ID="editor.contrib.colorContribution";vt(NM.ID,NM,2);Xh.register(by);var tU=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},da=function(o,e){return function(t,i){e(t,i,o)}},TM,MM;let Wh=TM=class extends W{constructor(e,t,i,n,s,r,a){super(),this._editor=e,this._modelService=i,this._keybindingService=n,this._instantiationService=s,this._languageFeatureService=r,this._languageConfigurationService=a,this._standaloneColorPickerWidget=null,this._standaloneColorPickerVisible=E.standaloneColorPickerVisible.bindTo(t),this._standaloneColorPickerFocused=E.standaloneColorPickerFocused.bindTo(t)}showOrFocus(){var e;this._editor.hasModel()&&(this._standaloneColorPickerVisible.get()?this._standaloneColorPickerFocused.get()||(e=this._standaloneColorPickerWidget)===null||e===void 0||e.focus():this._standaloneColorPickerWidget=new Dy(this._editor,this._standaloneColorPickerVisible,this._standaloneColorPickerFocused,this._instantiationService,this._modelService,this._keybindingService,this._languageFeatureService,this._languageConfigurationService))}hide(){var e;this._standaloneColorPickerFocused.set(!1),this._standaloneColorPickerVisible.set(!1),(e=this._standaloneColorPickerWidget)===null||e===void 0||e.hide(),this._editor.focus()}insertColor(){var e;(e=this._standaloneColorPickerWidget)===null||e===void 0||e.updateEditor(),this.hide()}static get(e){return e.getContribution(TM.ID)}};Wh.ID="editor.contrib.standaloneColorPickerController";Wh=TM=tU([da(1,Me),da(2,ai),da(3,St),da(4,Le),da(5,me),da(6,$t)],Wh);vt(Wh.ID,Wh,1);const EB=8,R_e=22;let Dy=MM=class extends W{constructor(e,t,i,n,s,r,a,l){var d;super(),this._editor=e,this._standaloneColorPickerVisible=t,this._standaloneColorPickerFocused=i,this._modelService=s,this._keybindingService=r,this._languageFeaturesService=a,this._languageConfigurationService=l,this.allowEditorOverflow=!0,this._position=void 0,this._body=document.createElement("div"),this._colorHover=null,this._selectionSetInEditor=!1,this._onResult=this._register(new O),this.onResult=this._onResult.event,this._standaloneColorPickerVisible.set(!0),this._standaloneColorPickerParticipant=n.createInstance(Gb,this._editor),this._position=(d=this._editor._getViewModel())===null||d===void 0?void 0:d.getPrimaryCursorState().modelState.position;const c=this._editor.getSelection(),h=c?{startLineNumber:c.startLineNumber,startColumn:c.startColumn,endLineNumber:c.endLineNumber,endColumn:c.endColumn}:{startLineNumber:0,endLineNumber:0,endColumn:0,startColumn:0},u=this._register(Ea(this._body));this._register(u.onDidBlur(g=>{this.hide()})),this._register(u.onDidFocus(g=>{this.focus()})),this._register(this._editor.onDidChangeCursorPosition(()=>{this._selectionSetInEditor?this._selectionSetInEditor=!1:this.hide()})),this._register(this._editor.onMouseMove(g=>{var f;const p=(f=g.target.element)===null||f===void 0?void 0:f.classList;p&&p.contains("colorpicker-color-decoration")&&this.hide()})),this._register(this.onResult(g=>{this._render(g.value,g.foundInEditor)})),this._start(h),this._body.style.zIndex="50",this._editor.addContentWidget(this)}updateEditor(){this._colorHover&&this._standaloneColorPickerParticipant.updateEditorModel(this._colorHover)}getId(){return MM.ID}getDomNode(){return this._body}getPosition(){if(!this._position)return null;const e=this._editor.getOption(60).above;return{position:this._position,secondaryPosition:this._position,preference:e?[1,2]:[2,1],positionAffinity:2}}hide(){this.dispose(),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerFocused.set(!1),this._editor.removeContentWidget(this),this._editor.focus()}focus(){this._standaloneColorPickerFocused.set(!0),this._body.focus()}async _start(e){const t=await this._computeAsync(e);t&&this._onResult.fire(new A_e(t.result,t.foundInEditor))}async _computeAsync(e){if(!this._editor.hasModel())return null;const t={range:e,color:{red:0,green:0,blue:0,alpha:1}},i=await this._standaloneColorPickerParticipant.createColorHover(t,new TP(this._modelService,this._languageConfigurationService),this._languageFeaturesService.colorProvider);return i?{result:i.colorHover,foundInEditor:i.foundInEditor}:null}_render(e,t){const i=document.createDocumentFragment(),n=this._register(new Ly(this._keybindingService));let s;const r={fragment:i,statusBar:n,setColorPicker:p=>s=p,onContentsChanged:()=>{},hide:()=>this.hide()};if(this._colorHover=e,this._register(this._standaloneColorPickerParticipant.renderHoverParts(r,[e])),s===void 0)return;this._body.classList.add("standalone-colorpicker-body"),this._body.style.maxHeight=Math.max(this._editor.getLayoutInfo().height/4,250)+"px",this._body.style.maxWidth=Math.max(this._editor.getLayoutInfo().width*.66,500)+"px",this._body.tabIndex=0,this._body.appendChild(i),s.layout();const a=s.body,l=a.saturationBox.domNode.clientWidth,d=a.domNode.clientWidth-l-R_e-EB,c=s.body.enterButton;c==null||c.onClicked(()=>{this.updateEditor(),this.hide()});const h=s.header,u=h.pickedColorNode;u.style.width=l+EB+"px";const g=h.originalColorNode;g.style.width=d+"px";const f=s.header.closeButton;f==null||f.onClicked(()=>{this.hide()}),t&&(c&&(c.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(e.range)),this._editor.layoutContentWidget(this)}};Dy.ID="editor.contrib.standaloneColorPickerWidget";Dy=MM=tU([da(3,Le),da(4,ai),da(5,St),da(6,me),da(7,$t)],Dy);class A_e{constructor(e,t){this.value=e,this.foundInEditor=t}}class P_e extends Fa{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:{...Fe("showOrFocusStandaloneColorPicker","Show or Focus Standalone Color Picker"),mnemonicTitle:m({key:"mishowOrFocusStandaloneColorPicker",comment:["&& denotes a mnemonic"]},"&&Show or Focus Standalone Color Picker")},precondition:void 0,menu:[{id:k.CommandPalette}],metadata:{description:Fe("showOrFocusStandaloneColorPickerDescription","Show or focus a standalone color picker which uses the default color provider. It displays hex/rgb/hsl colors.")}})}runEditorCommand(e,t){var i;(i=Wh.get(t))===null||i===void 0||i.showOrFocus()}}class O_e extends ce{constructor(){super({id:"editor.action.hideColorPicker",label:m({key:"hideColorPicker",comment:["Action that hides the color picker"]},"Hide the Color Picker"),alias:"Hide the Color Picker",precondition:E.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:9,weight:100},metadata:{description:Fe("hideColorPickerDescription","Hide the standalone color picker.")}})}run(e,t){var i;(i=Wh.get(t))===null||i===void 0||i.hide()}}class F_e extends ce{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:m({key:"insertColorWithStandaloneColorPicker",comment:["Action that inserts color with standalone color picker"]},"Insert Color with Standalone Color Picker"),alias:"Insert Color with Standalone Color Picker",precondition:E.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:3,weight:100},metadata:{description:Fe("insertColorWithStandaloneColorPickerDescription","Insert hex/rgb/hsl colors with the focused standalone color picker.")}})}run(e,t){var i;(i=Wh.get(t))===null||i===void 0||i.insertColor()}}J(O_e);J(F_e);Vt(P_e);class th{constructor(e,t,i){this.languageConfigurationService=i,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,i){if(i<0)return!1;const n=t.length,s=e.length;if(i+n>s)return!1;for(let r=0;r=65&&a<=90&&a+32===l)&&!(l>=65&&l<=90&&l+32===a))return!1}return!0}_createOperationsForBlockComment(e,t,i,n,s,r){const a=e.startLineNumber,l=e.startColumn,d=e.endLineNumber,c=e.endColumn,h=s.getLineContent(a),u=s.getLineContent(d);let g=h.lastIndexOf(t,l-1+t.length),f=u.indexOf(i,c-1-i.length);if(g!==-1&&f!==-1)if(a===d)h.substring(g+t.length,f).indexOf(i)>=0&&(g=-1,f=-1);else{const _=h.substring(g+t.length),v=u.substring(0,f);(_.indexOf(i)>=0||v.indexOf(i)>=0)&&(g=-1,f=-1)}let p;g!==-1&&f!==-1?(n&&g+t.length0&&u.charCodeAt(f-1)===32&&(i=" "+i,f-=1),p=th._createRemoveBlockCommentOperations(new x(a,g+t.length+1,d,f+1),t,i)):(p=th._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=p.length===1?i:null);for(const _ of p)r.addTrackedEditOperation(_.range,_.text)}static _createRemoveBlockCommentOperations(e,t,i){const n=[];return x.isEmpty(e)?n.push(ri.delete(new x(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(n.push(ri.delete(new x(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),n.push(ri.delete(new x(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),n}static _createAddBlockCommentOperations(e,t,i,n){const s=[];return x.isEmpty(e)?s.push(ri.replace(new x(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(s.push(ri.insert(new F(e.startLineNumber,e.startColumn),t+(n?" ":""))),s.push(ri.insert(new F(e.endLineNumber,e.endColumn),(n?" ":"")+i))),s}getEditOperations(e,t){const i=this._selection.startLineNumber,n=this._selection.startColumn;e.tokenization.tokenizeIfCheap(i);const s=e.getLanguageIdAtPosition(i,n),r=this.languageConfigurationService.getLanguageConfiguration(s).comments;!r||!r.blockCommentStartToken||!r.blockCommentEndToken||this._createOperationsForBlockComment(this._selection,r.blockCommentStartToken,r.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(i.length===2){const n=i[0],s=i[1];return new _e(n.range.endLineNumber,n.range.endColumn,s.range.startLineNumber,s.range.startColumn)}else{const n=i[0].range,s=this._usedEndToken?-this._usedEndToken.length-1:0;return new _e(n.endLineNumber,n.endColumn+s,n.endLineNumber,n.endColumn+s)}}}class cd{constructor(e,t,i,n,s,r,a){this.languageConfigurationService=e,this._selection=t,this._indentSize=i,this._type=n,this._insertSpace=s,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=r,this._ignoreFirstLine=a||!1}static _gatherPreflightCommentStrings(e,t,i,n){e.tokenization.tokenizeIfCheap(t);const s=e.getLanguageIdAtPosition(t,1),r=n.getLanguageConfiguration(s).comments,a=r?r.lineCommentToken:null;if(!a)return null;const l=[];for(let d=0,c=i-t+1;ds?t[l].commentStrOffset=r-1:t[l].commentStrOffset=r}}}class BP extends ce{constructor(e,t){super(t),this._type=e}run(e,t){const i=e.get($t);if(!t.hasModel())return;const n=t.getModel(),s=[],r=n.getOptions(),a=t.getOption(23),l=t.getSelections().map((c,h)=>({selection:c,index:h,ignoreFirstLine:!1}));l.sort((c,h)=>x.compareRangesUsingStarts(c.selection,h.selection));let d=l[0];for(let c=1;c=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},_u=function(o,e){return function(t,i){e(t,i,o)}},RM;let vp=RM=class{static get(e){return e.getContribution(RM.ID)}constructor(e,t,i,n,s,r,a,l){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=n,this._keybindingService=s,this._menuService=r,this._configurationService=a,this._workspaceContextService=l,this._toDispose=new G,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu(d=>this._onContextMenu(d))),this._toDispose.add(this._editor.onMouseWheel(d=>{if(this._contextMenuIsBeingShownCount>0){const c=this._contextViewService.getContextViewElement(),h=d.srcElement;h.shadowRoot&&fg(c)===h.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(d=>{this._editor.getOption(24)&&d.keyCode===58&&(d.preventDefault(),d.stopPropagation(),this.showContextMenu())}))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(24)){this._editor.focus(),e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position);return}if(e.target.type===12||e.target.type===6&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),e.target.type===11)return this._showScrollbarContextMenu(e.event);if(e.target.type!==6&&e.target.type!==7&&e.target.type!==1)return;if(this._editor.focus(),e.target.position){let i=!1;for(const n of this._editor.getSelections())if(n.containsPosition(e.target.position)){i=!0;break}i||this._editor.setPosition(e.target.position)}let t=null;e.target.type!==1&&(t=e.event),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(24)||!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.contextMenuId);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const i=[],n=this._menuService.createMenu(t,this._contextKeyService),s=n.getActions({arg:e.uri});n.dispose();for(const r of s){const[,a]=r;let l=0;for(const d of a)if(d instanceof hm){const c=this._getMenuActions(e,d.item.submenu);c.length>0&&(i.push(new Wm(d.id,d.label,c)),l++)}else i.push(d),l++;l&&i.push(new ji)}return i.length&&i.pop(),i}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;const i=this._editor.getOption(60);this._editor.updateOptions({hover:{enabled:!1}});let n=t;if(!n){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const r=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),a=Oi(this._editor.getDomNode()),l=a.left+r.left,d=a.top+r.top+r.height;n={x:l,y:d}}const s=this._editor.getOption(127)&&!Da;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:s?this._editor.getDomNode():void 0,getAnchor:()=>n,getActions:()=>e,getActionViewItem:r=>{const a=this._keybindingFor(r);if(a)return new rp(r,r,{label:!0,keybinding:a.getLabel(),isMenu:!0});const l=r;return typeof l.getActionViewItem=="function"?l.getActionViewItem():new rp(r,r,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:r=>this._keybindingFor(r),onHide:r=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:i})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel()||iae(this._workspaceContextService.getWorkspace()))return;const t=this._editor.getOption(73);let i=0;const n=d=>({id:`menu-action-${++i}`,label:d.label,tooltip:"",class:void 0,enabled:typeof d.enabled>"u"?!0:d.enabled,checked:d.checked,run:d.run}),s=(d,c)=>new Wm(`menu-action-${++i}`,d,c,void 0),r=(d,c,h,u,g)=>{if(!c)return n({label:d,enabled:c,run:()=>{}});const f=_=>()=>{this._configurationService.updateValue(h,_)},p=[];for(const _ of g)p.push(n({label:_.label,checked:u===_.value,run:f(_.value)}));return s(d,p)},a=[];a.push(n({label:m("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),a.push(new ji),a.push(n({label:m("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),a.push(r(m("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:m("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:m("context.minimap.size.fill","Fill"),value:"fill"},{label:m("context.minimap.size.fit","Fit"),value:"fit"}])),a.push(r(m("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:m("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:m("context.minimap.slider.always","Always"),value:"always"}]));const l=this._editor.getOption(127)&&!Da;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:l?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>a,onHide:d=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};vp.ID="editor.contrib.contextmenu";vp=RM=z_e([_u(1,go),_u(2,dc),_u(3,Me),_u(4,St),_u(5,zo),_u(6,Je),_u(7,wg)],vp);class U_e extends ce{constructor(){super({id:"editor.action.showContextMenu",label:m("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:E.textInputFocus,primary:1092,weight:100}})}run(e,t){var i;(i=vp.get(t))===null||i===void 0||i.showContextMenu()}}vt(vp.ID,vp,2);J(U_e);class Gk{constructor(e){this.selections=e}equals(e){const t=this.selections.length,i=e.selections.length;if(t!==i)return!1;for(let n=0;n{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeModelContent(t=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeCursorSelection(t=>{if(this._isCursorUndoRedo||!t.oldSelections||t.oldModelVersionId!==t.modelVersionId)return;const i=new Gk(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new Zk(i,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}cursorUndo(){!this._editor.hasModel()||this._undoStack.length===0||(this._redoStack.push(new Zk(new Gk(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){!this._editor.hasModel()||this._redoStack.length===0||(this._undoStack.push(new Zk(new Gk(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}Mg.ID="editor.contrib.cursorUndoRedoController";class $_e extends ce{constructor(){super({id:"cursorUndo",label:m("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:E.textInputFocus,primary:2099,weight:100}})}run(e,t,i){var n;(n=Mg.get(t))===null||n===void 0||n.cursorUndo()}}class j_e extends ce{constructor(){super({id:"cursorRedo",label:m("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){var n;(n=Mg.get(t))===null||n===void 0||n.cursorRedo()}}vt(Mg.ID,Mg,0);J($_e);J(j_e);class K_e{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){const i=e.getValueInRange(this.selection);if(this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new x(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new _e(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new _e(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumberthis._onEditorMouseDown(t))),this._register(this._editor.onMouseUp(t=>this._onEditorMouseUp(t))),this._register(this._editor.onMouseDrag(t=>this._onEditorMouseDrag(t))),this._register(this._editor.onMouseDrop(t=>this._onEditorMouseDrop(t))),this._register(this._editor.onMouseDropCanceled(()=>this._onEditorMouseDropCanceled())),this._register(this._editor.onKeyDown(t=>this.onEditorKeyDown(t))),this._register(this._editor.onKeyUp(t=>this.onEditorKeyUp(t))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){!this._editor.getOption(35)||this._editor.getOption(22)||(Sf(e)&&(this._modifierPressed=!0),this._mouseDown&&Sf(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){!this._editor.getOption(35)||this._editor.getOption(22)||(Sf(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===jd.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){const t=e.target;if(this._dragSelection===null){const n=(this._editor.getSelections()||[]).filter(s=>t.position&&s.containsPosition(t.position));if(n.length===1)this._dragSelection=n[0];else return}Sf(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){const t=new F(e.target.position.lineNumber,e.target.position.column);if(this._dragSelection===null){let i=null;if(e.event.shiftKey){const n=this._editor.getSelection();if(n){const{selectionStartLineNumber:s,selectionStartColumn:r}=n;i=[new _e(s,r,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map(n=>n.containsPosition(t)?new _e(t.lineNumber,t.column,t.lineNumber,t.column):n);this._editor.setSelections(i||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(Sf(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(jd.ID,new K_e(this._dragSelection,t,Sf(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){this._dndDecorationIds.set([{range:new x(e.lineNumber,e.column,e.lineNumber,e.column),options:jd._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return e.type===6||e.type===7}_hitMargin(e){return e.type===2||e.type===3||e.type===4}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}jd.ID="editor.contrib.dragAndDrop";jd.TRIGGER_KEY_VALUE=it?6:5;jd._DECORATION_OPTIONS=je.register({description:"dnd-target",className:"dnd-target"});vt(jd.ID,jd,2);var y1;vt(zl.ID,zl,0);eC(rM);le(new class extends Xi{constructor(){super({id:sz,precondition:xP,kbOpts:{weight:100,primary:2137}})}runEditorCommand(o,e){var t;return(t=zl.get(e))===null||t===void 0?void 0:t.changePasteType()}});le(new class extends Xi{constructor(){super({id:"editor.hidePasteWidget",precondition:xP,kbOpts:{weight:100,primary:9}})}runEditorCommand(o,e){var t;(t=zl.get(e))===null||t===void 0||t.clearWidgets()}});J((y1=class extends ce{constructor(){super({id:"editor.action.pasteAs",label:m("pasteAs","Paste As..."),alias:"Paste As...",precondition:E.writable,metadata:{description:"Paste as",args:[{name:"args",schema:y1.argsSchema}]}})}run(e,t,i){var n;let s=typeof(i==null?void 0:i.kind)=="string"?i.kind:void 0;return!s&&i&&(s=typeof i.id=="string"?i.id:void 0),(n=zl.get(t))===null||n===void 0?void 0:n.pasteAs(s?new Rt(s):void 0)}},y1.argsSchema={type:"object",properties:{kind:{type:"string",description:m("pasteAs.kind","The kind of the paste edit to try applying. If not provided or there are multiple edits for this kind, the editor will show a picker.")}}},y1));J(class extends ce{constructor(){super({id:"editor.action.pasteAsText",label:m("pasteAsText","Paste as Text"),alias:"Paste as Text",precondition:E.writable})}run(o,e){var t;return(t=zl.get(e))===null||t===void 0?void 0:t.pasteAs({providerId:sc.id})}});class q_e{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class NB{constructor(e){this.identifier=e}}const iU=ot("treeViewsDndService");ht(iU,q_e,1);var G_e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},L1=function(o,e){return function(t,i){e(t,i,o)}},AM;const nU="editor.experimental.dropIntoEditor.defaultProvider",sU="editor.changeDropType",WP=new de("dropWidgetVisible",!1,m("dropWidgetVisible","Whether the drop widget is showing"));let Rg=AM=class extends W{static get(e){return e.getContribution(AM.ID)}constructor(e,t,i,n,s){super(),this._configService=i,this._languageFeaturesService=n,this._treeViewsDragAndDropService=s,this.treeItemsTransfer=$b.getInstance(),this._dropProgressManager=this._register(t.createInstance(fy,"dropIntoEditor",e)),this._postDropWidgetManager=this._register(t.createInstance(_y,"dropIntoEditor",e,WP,{id:sU,label:m("postDropWidgetTitle","Show drop options...")})),this._register(e.onDropIntoEditor(r=>this.onDropIntoEditor(e,r.position,r.event)))}clearWidgets(){this._postDropWidgetManager.clear()}changeDropType(){this._postDropWidgetManager.tryShowSelector()}async onDropIntoEditor(e,t,i){var n;if(!i.dataTransfer||!e.hasModel())return;(n=this._currentOperation)===null||n===void 0||n.cancel(),e.focus(),e.setPosition(t);const s=an(async r=>{const a=new Th(e,1,void 0,r);try{const l=await this.extractDataTransferData(i);if(l.size===0||a.token.isCancellationRequested)return;const d=e.getModel();if(!d)return;const c=this._languageFeaturesService.documentDropEditProvider.ordered(d).filter(u=>u.dropMimeTypes?u.dropMimeTypes.some(g=>l.matches(g)):!0),h=await this.getDropEdits(c,d,t,l,a);if(a.token.isCancellationRequested)return;if(h.length){const u=this.getInitialActiveEditIndex(d,h),g=e.getOption(36).showDropSelector==="afterDrop";await this._postDropWidgetManager.applyEditAndShowIfNeeded([x.fromPositions(t)],{activeEditIndex:u,allEdits:h},g,async f=>f,r)}}finally{a.dispose(),this._currentOperation===s&&(this._currentOperation=void 0)}});this._dropProgressManager.showWhile(t,m("dropIntoEditorProgress","Running drop handlers. Click to cancel"),s),this._currentOperation=s}async getDropEdits(e,t,i,n,s){const r=await D0(Promise.all(e.map(async l=>{try{const d=await l.provideDocumentDropEdits(t,i,n,s.token);return d==null?void 0:d.map(c=>({...c,providerId:l.id}))}catch(d){console.error(d)}})),s.token),a=xa(r??[]).flat();return iz(a)}getInitialActiveEditIndex(e,t){const i=this._configService.getValue(nU,{resource:e.uri});for(const[n,s]of Object.entries(i)){const r=new Rt(s),a=t.findIndex(l=>r.value===l.providerId&&l.handledMimeType&&GV(n,[l.handledMimeType]));if(a>=0)return a}return 0}async extractDataTransferData(e){if(!e.dataTransfer)return new qV;const t=QV(e.dataTransfer);if(this.treeItemsTransfer.hasData(NB.prototype)){const i=this.treeItemsTransfer.getData(NB.prototype);if(Array.isArray(i))for(const n of i){const s=await this._treeViewsDragAndDropService.removeDragOperationTransfer(n.identifier);if(s)for(const[r,a]of s)t.replace(r,a)}}return t}};Rg.ID="editor.contrib.dropIntoEditorController";Rg=AM=G_e([L1(1,Le),L1(2,Je),L1(3,me),L1(4,iU)],Rg);vt(Rg.ID,Rg,2);eC(oM);le(new class extends Xi{constructor(){super({id:sU,precondition:WP,kbOpts:{weight:100,primary:2137}})}runEditorCommand(o,e,t){var i;(i=Rg.get(e))===null||i===void 0||i.changeDropType()}});le(new class extends Xi{constructor(){super({id:"editor.hideDropWidget",precondition:WP,kbOpts:{weight:100,primary:9}})}runEditorCommand(o,e,t){var i;(i=Rg.get(e))===null||i===void 0||i.clearWidgets()}});hi.as(Ba.Configuration).registerConfiguration({...ML,properties:{[nU]:{type:"object",scope:5,description:m("defaultProviderDescription","Configures the default drop provider to use for content of a given mime type."),default:{},additionalProperties:{type:"string"}}}});class es{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map(t=>this._editor.getModel().getDecorationRange(t)).filter(t=>!!t);if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){const t=e{if(this._highlightedDecorationId!==null&&(n.changeDecorationOptions(this._highlightedDecorationId,es._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),t!==null&&(this._highlightedDecorationId=t,n.changeDecorationOptions(this._highlightedDecorationId,es._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(n.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),t!==null){let s=this._editor.getModel().getDecorationRange(t);if(s.startLineNumber!==s.endLineNumber&&s.endColumn===1){const r=s.endLineNumber-1,a=this._editor.getModel().getLineMaxColumn(r);s=new x(s.startLineNumber,s.startColumn,r,a)}this._rangeHighlightDecorationId=n.addDecoration(s,es._RANGE_HIGHLIGHT_DECORATION)}}),i}set(e,t){this._editor.changeDecorations(i=>{let n=es._FIND_MATCH_DECORATION;const s=[];if(e.length>1e3){n=es._FIND_MATCH_NO_OVERVIEW_DECORATION;const a=this._editor.getModel().getLineCount(),d=this._editor.getLayoutInfo().height/a,c=Math.max(2,Math.ceil(3/d));let h=e[0].range.startLineNumber,u=e[0].range.endLineNumber;for(let g=1,f=e.length;g=p.startLineNumber?p.endLineNumber>u&&(u=p.endLineNumber):(s.push({range:new x(h,1,u,1),options:es._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),h=p.startLineNumber,u=p.endLineNumber)}s.push({range:new x(h,1,u,1),options:es._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const r=new Array(e.length);for(let a=0,l=e.length;ai.removeDecoration(a)),this._findScopeDecorationIds=[]),t!=null&&t.length&&(this._findScopeDecorationIds=t.map(a=>i.addDecoration(a,es._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(this._decorations.length===0)return null;for(let t=this._decorations.length-1;t>=0;t--){const i=this._decorations[t],n=this._editor.getModel().getDecorationRange(i);if(!(!n||n.endLineNumber>e.lineNumber)){if(n.endLineNumbere.column))return n}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(this._decorations.length===0)return null;for(let t=0,i=this._decorations.length;te.lineNumber)return s;if(!(s.startColumn0){const i=[];for(let r=0;rx.compareRangesUsingStarts(r.range,a.range));const n=[];let s=i[0];for(let r=1;r0?e[0].toUpperCase()+e.substr(1):o[0][0].toUpperCase()!==o[0][0]&&e.length>0?e[0].toLowerCase()+e.substr(1):e}else return e}function TB(o,e,t){return o[0].indexOf(t)!==-1&&e.indexOf(t)!==-1&&o[0].split(t).length===e.split(t).length}function MB(o,e,t){const i=e.split(t),n=o[0].split(t);let s="";return i.forEach((r,a)=>{s+=oU([n[a]],r)+t}),s.slice(0,-1)}class RB{constructor(e){this.staticValue=e,this.kind=0}}class Y_e{constructor(e){this.pieces=e,this.kind=1}}class bp{static fromStaticValue(e){return new bp([rg.staticValue(e)])}get hasReplacementPatterns(){return this._state.kind===1}constructor(e){!e||e.length===0?this._state=new RB(""):e.length===1&&e[0].staticValue!==null?this._state=new RB(e[0].staticValue):this._state=new Y_e(e)}buildReplaceString(e,t){if(this._state.kind===0)return t?oU(e,this._state.staticValue):this._state.staticValue;let i="";for(let n=0,s=this._state.pieces.length;n0){const l=[],d=r.caseOps.length;let c=0;for(let h=0,u=a.length;h=d){l.push(a.slice(h));break}switch(r.caseOps[c]){case"U":l.push(a[h].toUpperCase());break;case"u":l.push(a[h].toUpperCase()),c++;break;case"L":l.push(a[h].toLowerCase());break;case"l":l.push(a[h].toLowerCase()),c++;break;default:l.push(a[h])}}a=l.join("")}i+=a}return i}static _substitute(e,t){if(t===null)return"";if(e===0)return t[0];let i="";for(;e>0;){if(e=n)break;const r=o.charCodeAt(i);switch(r){case 92:t.emitUnchanged(i-1),t.emitStatic("\\",i+1);break;case 110:t.emitUnchanged(i-1),t.emitStatic(` +`,i+1);break;case 116:t.emitUnchanged(i-1),t.emitStatic(" ",i+1);break;case 117:case 85:case 108:case 76:t.emitUnchanged(i-1),t.emitStatic("",i+1),e.push(String.fromCharCode(r));break}continue}if(s===36){if(i++,i>=n)break;const r=o.charCodeAt(i);if(r===36){t.emitUnchanged(i-1),t.emitStatic("$",i+1);continue}if(r===48||r===38){t.emitUnchanged(i-1),t.emitMatchIndex(0,i+1,e),e.length=0;continue}if(49<=r&&r<=57){let a=r-48;if(i+1this.research(!1),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(i=>{(i.reason===3||i.reason===5||i.reason===6)&&this._decorations.setStartPosition(this._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(i=>{this._ignoreModelContentChanged||(i.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(i=>this._onStateChanged(i))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,Pt(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){this._isDisposed||this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)},J_e)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor))}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let i=null;typeof t<"u"?t!==null&&(Array.isArray(t)?i=t:i=[t]):i=this._decorations.getFindScopes(),i!==null&&(i=i.map(a=>{if(a.startLineNumber!==a.endLineNumber){let l=a.endLineNumber;return a.endColumn===1&&(l=l-1),new x(a.startLineNumber,1,l,this._editor.getModel().getLineMaxColumn(l))}return a}));const n=this._findMatches(i,!1,ih);this._decorations.set(n,i);const s=this._editor.getSelection();let r=this._decorations.getCurrentMatchesPosition(s);if(r===0&&n.length>0){const a=Jv(n.map(l=>l.range),l=>x.compareRangesUsingStarts(l,s)>=0);r=a>0?a-1+1:r}this._state.changeMatchInfo(r,this._decorations.getCount(),void 0),e&&this._editor.getOption(41).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){const e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){const t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:n}=e;const s=this._editor.getModel();return t||n===1?(i===1?i=s.getLineCount():i--,n=s.getLineMaxColumn(i)):n--,new F(i,n)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){const c=this._decorations.matchAfterPosition(e);c&&this._setCurrentFindMatch(c);return}if(this._decorations.getCount()=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:n}=e;const s=this._editor.getModel();return t||n===s.getLineMaxColumn(i)?(i===s.getLineCount()?i=1:i++,n=1):n++,new F(i,n)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){const i=this._decorations.matchBeforePosition(e);i&&this._setCurrentFindMatch(i);return}if(this._decorations.getCount()Ev._getSearchRange(this._editor.getModel(),s));return this._editor.getModel().findMatches(this._state.searchString,n,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null,t,i)}replaceAll(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();e===null&&this._state.matchesCount>=ih?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){const t=new wu(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null).parseSearchRequest();if(!t)return;let i=t.regex;if(!i.multiline){let h="mu";i.ignoreCase&&(h+="i"),i.global&&(h+="g"),i=new RegExp(i.source,h)}const n=this._editor.getModel(),s=n.getValue(1),r=n.getFullModelRange(),a=this._getReplacePattern();let l;const d=this._state.preserveCase;a.hasReplacementPatterns||d?l=s.replace(i,function(){return a.buildReplaceString(arguments,d)}):l=s.replace(i,a.buildReplaceString(null,d));const c=new ZA(r,l,this._editor.getSelection());this._executeEditorCommand("replaceAll",c)}_regularReplaceAll(e){const t=this._getReplacePattern(),i=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),n=[];for(let r=0,a=i.length;rr.range),n);this._executeEditorCommand("replaceAll",s)}selectAllMatches(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();let i=this._findMatches(e,!1,1073741824).map(s=>new _e(s.range.startLineNumber,s.range.startColumn,s.range.endLineNumber,s.range.endColumn));const n=this._editor.getSelection();for(let s=0,r=i.length;sthis._hide(),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.style.zIndex="12",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const n={inputActiveOptionBorder:he(VA),inputActiveOptionForeground:he(zA),inputActiveOptionBackground:he(Hu)},s=this._register(op());this.caseSensitive=this._register(new tH({appendTitle:this._keybindingLabelFor(Gt.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase,hoverDelegate:s,...n})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new iH({appendTitle:this._keybindingLabelFor(Gt.ToggleWholeWordCommand),isChecked:this._state.wholeWord,hoverDelegate:s,...n})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new nH({appendTitle:this._keybindingLabelFor(Gt.ToggleRegexCommand),isChecked:this._state.isRegex,hoverDelegate:s,...n})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(r=>{let a=!1;r.isRegex&&(this.regex.checked=this._state.isRegex,a=!0),r.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,a=!0),r.matchCase&&(this.caseSensitive.checked=this._state.matchCase,a=!0),!this._state.isRevealed&&a&&this._revealTemporarily()})),this._register(U(this._domNode,ee.MOUSE_LEAVE,r=>this._onMouseLeave())),this._register(U(this._domNode,"mouseover",r=>this._onMouseOver()))}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return xx.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}}xx.ID="editor.contrib.findOptionsWidget";function N1(o,e){return o===1?!0:o===2?!1:e}class eve extends W{get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return N1(this._isRegexOverride,this._isRegex)}get wholeWord(){return N1(this._wholeWordOverride,this._wholeWord)}get matchCase(){return N1(this._matchCaseOverride,this._matchCase)}get preserveCase(){return N1(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}constructor(){super(),this._onFindReplaceStateChange=this._register(new O),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}changeMatchInfo(e,t,i){const n={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let s=!1;t===0&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,n.matchesPosition=!0,s=!0),this._matchesCount!==t&&(this._matchesCount=t,n.matchesCount=!0,s=!0),typeof i<"u"&&(x.equalsRange(this._currentMatch,i)||(this._currentMatch=i,n.currentMatch=!0,s=!0)),s&&this._onFindReplaceStateChange.fire(n)}change(e,t,i=!0){var n;const s={moveCursor:t,updateHistory:i,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let r=!1;const a=this.isRegex,l=this.wholeWord,d=this.matchCase,c=this.preserveCase;typeof e.searchString<"u"&&this._searchString!==e.searchString&&(this._searchString=e.searchString,s.searchString=!0,r=!0),typeof e.replaceString<"u"&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,s.replaceString=!0,r=!0),typeof e.isRevealed<"u"&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,s.isRevealed=!0,r=!0),typeof e.isReplaceRevealed<"u"&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,s.isReplaceRevealed=!0,r=!0),typeof e.isRegex<"u"&&(this._isRegex=e.isRegex),typeof e.wholeWord<"u"&&(this._wholeWord=e.wholeWord),typeof e.matchCase<"u"&&(this._matchCase=e.matchCase),typeof e.preserveCase<"u"&&(this._preserveCase=e.preserveCase),typeof e.searchScope<"u"&&(!((n=e.searchScope)===null||n===void 0)&&n.every(h=>{var u;return(u=this._searchScope)===null||u===void 0?void 0:u.some(g=>!x.equalsRange(g,h))})||(this._searchScope=e.searchScope,s.searchScope=!0,r=!0)),typeof e.loop<"u"&&this._loop!==e.loop&&(this._loop=e.loop,s.loop=!0,r=!0),typeof e.isSearching<"u"&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,s.isSearching=!0,r=!0),typeof e.filters<"u"&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,s.filters=!0,r=!0),this._isRegexOverride=typeof e.isRegexOverride<"u"?e.isRegexOverride:0,this._wholeWordOverride=typeof e.wholeWordOverride<"u"?e.wholeWordOverride:0,this._matchCaseOverride=typeof e.matchCaseOverride<"u"?e.matchCaseOverride:0,this._preserveCaseOverride=typeof e.preserveCaseOverride<"u"?e.preserveCaseOverride:0,a!==this.isRegex&&(r=!0,s.isRegex=!0),l!==this.wholeWord&&(r=!0,s.wholeWord=!0),d!==this.matchCase&&(r=!0,s.matchCase=!0),c!==this.preserveCase&&(r=!0,s.preserveCase=!0),r&&this._onFindReplaceStateChange.fire(s)}canNavigateBack(){return this.canNavigateInLoop()||this.matchesPosition!==1}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition=ih}}const tve=m("defaultLabel","input"),ive=m("label.preserveCaseToggle","Preserve Case");class nve extends Op{constructor(e){var t;super({icon:oe.preserveCase,title:ive+e.appendTitle,isChecked:e.isChecked,hoverDelegate:(t=e.hoverDelegate)!==null&&t!==void 0?t:Ts("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class sve extends Uo{constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new O),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new O),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new O),this._onInput=this._register(new O),this._onKeyUp=this._register(new O),this._onPreserveCaseKeyDown=this._register(new O),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||tve;const s=n.appendPreserveCaseLabel||"",r=n.history||[],a=!!n.flexibleHeight,l=!!n.flexibleWidth,d=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new sH(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:r,showHistoryHint:n.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:d,inputBoxStyles:n.inputBoxStyles})),this.preserveCase=this._register(new nve({appendTitle:s,isChecked:!1,...n.toggleStyles})),this._register(this.preserveCase.onChange(u=>{this._onDidOptionChange.fire(u),!u&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(u=>{this._onPreserveCaseKeyDown.fire(u)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const c=[this.preserveCase.domNode];this.onkeydown(this.domNode,u=>{if(u.equals(15)||u.equals(17)||u.equals(9)){const g=c.indexOf(this.domNode.ownerDocument.activeElement);if(g>=0){let f=-1;u.equals(17)?f=(g+1)%c.length:u.equals(15)&&(g===0?f=c.length-1:f=g-1),u.equals(9)?(c[g].blur(),this.inputBox.focus()):f>=0&&c[f].focus(),lt.stop(u,!0)}}});const h=document.createElement("div");h.className="controls",h.style.display=this._showOptionButtons?"block":"none",h.appendChild(this.preserveCase.domNode),this.domNode.appendChild(h),e==null||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,u=>this._onKeyDown.fire(u)),this.onkeyup(this.inputBox.inputElement,u=>this._onKeyUp.fire(u)),this.oninput(this.inputBox.inputElement,u=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,u=>this._onMouseDown.fire(u))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){var e;(e=this.inputBox)===null||e===void 0||e.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var rU=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},aU=function(o,e){return function(t,i){e(t,i,o)}};const VP=new de("suggestWidgetVisible",!1,m("suggestWidgetVisible","Whether suggestion are visible")),zP="historyNavigationWidgetFocus",lU="historyNavigationForwardsEnabled",dU="historyNavigationBackwardsEnabled";let Kd;const T1=[];function cU(o,e){if(T1.includes(e))throw new Error("Cannot register the same widget multiple times");T1.push(e);const t=new G,i=new de(zP,!1).bindTo(o),n=new de(lU,!0).bindTo(o),s=new de(dU,!0).bindTo(o),r=()=>{i.set(!0),Kd=e},a=()=>{i.set(!1),Kd===e&&(Kd=void 0)};return Zy(e.element)&&r(),t.add(e.onDidFocus(()=>r())),t.add(e.onDidBlur(()=>a())),t.add(Ce(()=>{T1.splice(T1.indexOf(e),1),a()})),{historyNavigationForwardsEnablement:n,historyNavigationBackwardsEnablement:s,dispose(){t.dispose()}}}let PM=class extends oH{constructor(e,t,i,n){super(e,t,i);const s=this._register(n.createScoped(this.inputBox.element));this._register(cU(s,this.inputBox))}};PM=rU([aU(3,Me)],PM);let OM=class extends sve{constructor(e,t,i,n,s=!1){super(e,t,s,i);const r=this._register(n.createScoped(this.inputBox.element));this._register(cU(r,this.inputBox))}};OM=rU([aU(3,Me)],OM);ks.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:K.and(K.has(zP),K.equals(dU,!0),K.not("isComposing"),VP.isEqualTo(!1)),primary:16,secondary:[528],handler:o=>{Kd==null||Kd.showPreviousValue()}});ks.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:K.and(K.has(zP),K.equals(lU,!0),K.not("isComposing"),VP.isEqualTo(!1)),primary:18,secondary:[530],handler:o=>{Kd==null||Kd.showNextValue()}});function AB(o){var e,t;return((e=o.lookupKeybinding("history.showPrevious"))===null||e===void 0?void 0:e.getElectronAccelerator())==="Up"&&((t=o.lookupKeybinding("history.showNext"))===null||t===void 0?void 0:t.getElectronAccelerator())==="Down"}const PB=_i("find-collapsed",oe.chevronRight,m("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),OB=_i("find-expanded",oe.chevronDown,m("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),ove=_i("find-selection",oe.selection,m("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),rve=_i("find-replace",oe.replace,m("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),ave=_i("find-replace-all",oe.replaceAll,m("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),lve=_i("find-previous-match",oe.arrowUp,m("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),dve=_i("find-next-match",oe.arrowDown,m("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),cve=m("label.findDialog","Find / Replace"),hve=m("label.find","Find"),uve=m("placeholder.find","Find"),gve=m("label.previousMatchButton","Previous Match"),fve=m("label.nextMatchButton","Next Match"),mve=m("label.toggleSelectionFind","Find in Selection"),pve=m("label.closeButton","Close"),_ve=m("label.replace","Replace"),vve=m("placeholder.replace","Replace"),bve=m("label.replaceButton","Replace"),Cve=m("label.replaceAllButton","Replace All"),wve=m("label.toggleReplaceButton","Toggle Replace"),Sve=m("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",ih),yve=m("label.matchesLocation","{0} of {1}"),FB=m("label.noResults","No results"),Za=419,Lve=275,xve=Lve-54;let L_=69;const Dve=33,BB="ctrlEnterReplaceAll.windows.donotask",WB=it?256:2048;class Yk{constructor(e){this.afterLineNumber=e,this.heightInPx=Dve,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function HB(o,e,t){const i=!!e.match(/\n/);if(t&&i&&t.selectionStart>0){o.stopPropagation();return}}function VB(o,e,t){const i=!!e.match(/\n/);if(t&&i&&t.selectionEndthis._updateHistoryDelayer.cancel())),this._register(this._state.onFindReplaceStateChange(h=>this._onStateChanged(h))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration(h=>{if(h.hasChanged(91)&&(this._codeEditor.getOption(91)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),h.hasChanged(145)&&this._tryUpdateWidgetWidth(),h.hasChanged(2)&&this.updateAccessibilitySupport(),h.hasChanged(41)){const u=this._codeEditor.getOption(41).loop;this._state.change({loop:u},!1);const g=this._codeEditor.getOption(41).addExtraSpaceOnTop;g&&!this._viewZone&&(this._viewZone=new Yk(0),this._showViewZone()),!g&&this._viewZone&&this._removeViewZone()}})),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection(()=>{this._isVisible&&this._updateToggleSelectionFindButton()})),this._register(this._codeEditor.onDidFocusEditorWidget(async()=>{if(this._isVisible){const h=await this._controller.getGlobalBufferTerm();h&&h!==this._state.searchString&&(this._state.change({searchString:h},!1),this._findInput.select())}})),this._findInputFocused=Lx.bindTo(r),this._findFocusTracker=this._register(Ea(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus(()=>{this._findInputFocused.set(!0),this._updateSearchScope()})),this._register(this._findFocusTracker.onDidBlur(()=>{this._findInputFocused.set(!1)})),this._replaceInputFocused=HP.bindTo(r),this._replaceFocusTracker=this._register(Ea(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus(()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()})),this._register(this._replaceFocusTracker.onDidBlur(()=>{this._replaceInputFocused.set(!1)})),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(41).addExtraSpaceOnTop&&(this._viewZone=new Yk(0)),this._register(this._codeEditor.onDidChangeModel(()=>{this._isVisible&&(this._viewZoneId=void 0)})),this._register(this._codeEditor.onDidScrollChange(h=>{if(h.scrollTopChanged){this._layoutViewZone();return}setTimeout(()=>{this._layoutViewZone()},0)}))}getId(){return Dx.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?!this._codeEditor.getOption(91)&&!this._isReplaceVisible&&(this._isReplaceVisible=!0,this._replaceInput.width=Xs(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){const t=this._state.searchString.length>0&&this._state.matchesCount===0;this._domNode.classList.toggle("no-results",t),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,ze)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){this._matchesCount.style.minWidth=L_+"px",this._state.matchesCount>=ih?this._matchesCount.title=Sve:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);let e;if(this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=ih&&(t+="+");let i=String(this._state.matchesPosition);i==="0"&&(i="?"),e=cg(yve,i,t)}else e=FB;this._matchesCount.appendChild(document.createTextNode(e)),js(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),L_=Math.max(L_,this._matchesCount.clientWidth)}_getAriaLabel(e,t,i){if(e===FB)return i===""?m("ariaSearchNoResultEmpty","{0} found",e):m("ariaSearchNoResult","{0} found for '{1}'",e,i);if(t){const n=m("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,i,t.startLineNumber+":"+t.startColumn),s=this._codeEditor.getModel();return s&&t.startLineNumber<=s.getLineCount()&&t.startLineNumber>=1?`${s.getLineContent(t.startLineNumber)}, ${n}`:n}return m("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,i)}_updateToggleSelectionFindButton(){const e=this._codeEditor.getSelection(),t=e?e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn:!1,i=this._toggleSelectionFind.checked;this._isVisible&&(i||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);const e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);const i=!this._codeEditor.getOption(91);this._toggleReplaceBtn.setEnabled(this._isVisible&&i)}_reveal(){if(this._revealTimeouts.forEach(e=>{clearTimeout(e)}),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(41).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{const i=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=i;break}}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout(()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")},0)),this._revealTimeouts.push(setTimeout(()=>{this._findInput.validate()},200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(41).seedSearchStringFromSelection&&e){const i=this._codeEditor.getDomNode();if(i){const n=Oi(i),s=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),r=n.left+(s?s.left:0),a=s?s.top:0;if(this._viewZone&&ae.startLineNumber&&(t=!1);const l=$9(this._domNode).left;r>l&&(t=!1);const d=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());n.left+(d?d.left:0)>l&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach(t=>{clearTimeout(t)}),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(!this._codeEditor.getOption(41).addExtraSpaceOnTop){this._removeViewZone();return}if(!this._isVisible)return;const i=this._viewZone;this._viewZoneId!==void 0||!i||this._codeEditor.changeViewZones(n=>{i.heightInPx=this._getHeight(),this._viewZoneId=n.addZone(i),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+i.heightInPx)})}_showViewZone(e=!0){if(!this._isVisible||!this._codeEditor.getOption(41).addExtraSpaceOnTop)return;this._viewZone===void 0&&(this._viewZone=new Yk(0));const i=this._viewZone;this._codeEditor.changeViewZones(n=>{if(this._viewZoneId!==void 0){const s=this._getHeight();if(s===i.heightInPx)return;const r=s-i.heightInPx;i.heightInPx=s,n.layoutZone(this._viewZoneId),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+r);return}else{let s=this._getHeight();if(s-=this._codeEditor.getOption(84).top,s<=0)return;i.heightInPx=s,this._viewZoneId=n.addZone(i),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+s)}})}_removeViewZone(){this._codeEditor.changeViewZones(e=>{this._viewZoneId!==void 0&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))})}_tryUpdateWidgetWidth(){if(!this._isVisible||!this._domNode.isConnected)return;const e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0){this._domNode.classList.add("hiddenEditor");return}else this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const i=e.width,n=e.minimap.minimapWidth;let s=!1,r=!1,a=!1;if(this._resized&&Xs(this._domNode)>Za){this._domNode.style.maxWidth=`${i-28-n-15}px`,this._replaceInput.width=Xs(this._findInput.domNode);return}if(Za+28+n>=i&&(r=!0),Za+28+n-L_>=i&&(a=!0),Za+28+n-L_>=i+50&&(s=!0),this._domNode.classList.toggle("collapsed-find-widget",s),this._domNode.classList.toggle("narrow-find-widget",a),this._domNode.classList.toggle("reduced-find-widget",r),!a&&!s&&(this._domNode.style.maxWidth=`${i-28-n-15}px`),this._findInput.layout({collapsedFindWidget:s,narrowFindWidget:a,reducedFindWidget:r}),this._resized){const l=this._findInput.inputBox.element.clientWidth;l>0&&(this._replaceInput.width=l)}else this._isReplaceVisible&&(this._replaceInput.width=Xs(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){const e=this._getHeight();return this._cachedHeight!==null&&this._cachedHeight===e?!1:(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){const e=this._codeEditor.getSelections();e.map(t=>{t.endColumn===1&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(t.endLineNumber-1)));const i=this._state.currentMatch;return t.startLineNumber!==t.endLineNumber&&!x.equalsRange(t,i)?t:null}).filter(t=>!!t),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){if(e.equals(WB|3))if(this._keybindingService.dispatchEvent(e,e.target)){e.preventDefault();return}else{this._findInput.inputBox.insertAtCursor(` +`),e.preventDefault();return}if(e.equals(2)){this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),e.preventDefault();return}if(e.equals(2066)){this._codeEditor.focus(),e.preventDefault();return}if(e.equals(16))return HB(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"));if(e.equals(18))return VB(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"))}_onReplaceInputKeyDown(e){if(e.equals(WB|3))if(this._keybindingService.dispatchEvent(e,e.target)){e.preventDefault();return}else{Fn&&_a&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(m("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(BB,!0,0,0)),this._replaceInput.inputBox.insertAtCursor(` +`),e.preventDefault();return}if(e.equals(2)){this._findInput.focusOnCaseSensitive(),e.preventDefault();return}if(e.equals(1026)){this._findInput.focus(),e.preventDefault();return}if(e.equals(2066)){this._codeEditor.focus(),e.preventDefault();return}if(e.equals(16))return HB(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(e.equals(18))return VB(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new PM(null,this._contextViewProvider,{width:xve,label:hve,placeholder:uve,appendCaseSensitiveLabel:this._keybindingLabelFor(Gt.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(Gt.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(Gt.ToggleRegexCommand),validation:c=>{if(c.length===0||!this._findInput.getRegex())return null;try{return new RegExp(c,"gu"),null}catch(h){return{content:h.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showCommonFindToggles:!0,showHistoryHint:()=>AB(this._keybindingService),inputBoxStyles:PS,toggleStyles:AS},this._contextKeyService)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(c=>this._onFindInputKeyDown(c))),this._register(this._findInput.inputBox.onDidChange(()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(c=>{c.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),c.preventDefault())})),this._register(this._findInput.onRegexKeyDown(c=>{c.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),c.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(c=>{this._tryUpdateHeight()&&this._showViewZone()})),xs&&this._register(this._findInput.onMouseDown(c=>this._onFindInputMouseDown(c))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount();const i=this._register(op());this._prevBtn=this._register(new yf({label:gve+this._keybindingLabelFor(Gt.PreviousMatchFindAction),icon:lve,hoverDelegate:i,onTrigger:()=>{Hc(this._codeEditor.getAction(Gt.PreviousMatchFindAction)).run().then(void 0,ze)}},this._hoverService)),this._nextBtn=this._register(new yf({label:fve+this._keybindingLabelFor(Gt.NextMatchFindAction),icon:dve,hoverDelegate:i,onTrigger:()=>{Hc(this._codeEditor.getAction(Gt.NextMatchFindAction)).run().then(void 0,ze)}},this._hoverService));const n=document.createElement("div");n.className="find-part",n.appendChild(this._findInput.domNode);const s=document.createElement("div");s.className="find-actions",n.appendChild(s),s.appendChild(this._matchesCount),s.appendChild(this._prevBtn.domNode),s.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new Op({icon:ove,title:mve+this._keybindingLabelFor(Gt.ToggleSearchScopeCommand),isChecked:!1,hoverDelegate:i,inputActiveOptionBackground:he(Hu),inputActiveOptionBorder:he(VA),inputActiveOptionForeground:he(zA)})),this._register(this._toggleSelectionFind.onChange(()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let c=this._codeEditor.getSelections();c=c.map(h=>(h.endColumn===1&&h.endLineNumber>h.startLineNumber&&(h=h.setEndPosition(h.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(h.endLineNumber-1))),h.isEmpty()?null:h)).filter(h=>!!h),c.length&&this._state.change({searchScope:c},!0)}}else this._state.change({searchScope:null},!0)})),s.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new yf({label:pve+this._keybindingLabelFor(Gt.CloseFindWidgetCommand),icon:PH,hoverDelegate:i,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:c=>{c.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),c.preventDefault())}},this._hoverService)),this._replaceInput=this._register(new OM(null,void 0,{label:_ve,placeholder:vve,appendPreserveCaseLabel:this._keybindingLabelFor(Gt.TogglePreserveCaseCommand),history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>AB(this._keybindingService),inputBoxStyles:PS,toggleStyles:AS},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(c=>this._onReplaceInputKeyDown(c))),this._register(this._replaceInput.inputBox.onDidChange(()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(c=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(c=>{c.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),c.preventDefault())}));const r=this._register(op());this._replaceBtn=this._register(new yf({label:bve+this._keybindingLabelFor(Gt.ReplaceOneAction),icon:rve,hoverDelegate:r,onTrigger:()=>{this._controller.replace()},onKeyDown:c=>{c.equals(1026)&&(this._closeBtn.focus(),c.preventDefault())}},this._hoverService)),this._replaceAllBtn=this._register(new yf({label:Cve+this._keybindingLabelFor(Gt.ReplaceAllAction),icon:ave,hoverDelegate:r,onTrigger:()=>{this._controller.replaceAll()}},this._hoverService));const a=document.createElement("div");a.className="replace-part",a.appendChild(this._replaceInput.domNode);const l=document.createElement("div");l.className="replace-actions",a.appendChild(l),l.appendChild(this._replaceBtn.domNode),l.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new yf({label:wve,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=Xs(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}},this._hoverService)),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.ariaLabel=cve,this._domNode.role="dialog",this._domNode.style.width=`${Za}px`,this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(n),this._domNode.appendChild(this._closeBtn.domNode),this._domNode.appendChild(a),this._resizeSash=this._register(new Vn(this._domNode,this,{orientation:0,size:2})),this._resized=!1;let d=Za;this._register(this._resizeSash.onDidStart(()=>{d=Xs(this._domNode)})),this._register(this._resizeSash.onDidChange(c=>{this._resized=!0;const h=d+c.startX-c.currentX;if(hu||(this._domNode.style.width=`${h}px`,this._isReplaceVisible&&(this._replaceInput.width=Xs(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())})),this._register(this._resizeSash.onDidReset(()=>{const c=Xs(this._domNode);if(c{this._opts.onTrigger(),s.preventDefault()}),this.onkeydown(this._domNode,s=>{var r,a;if(s.equals(10)||s.equals(3)){this._opts.onTrigger(),s.preventDefault();return}(a=(r=this._opts).onKeyDown)===null||a===void 0||a.call(r,s)})}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(...Te.asClassNameArray(PB)),this._domNode.classList.add(...Te.asClassNameArray(OB))):(this._domNode.classList.remove(...Te.asClassNameArray(OB)),this._domNode.classList.add(...Te.asClassNameArray(PB)))}}gr((o,e)=>{const t=o.getColor(jc);t&&e.addRule(`.monaco-editor .findMatch { border: 1px ${Sa(o.type)?"dotted":"solid"} ${t}; box-sizing: border-box; }`);const i=o.getColor(GQ);i&&e.addRule(`.monaco-editor .findScope { border: 1px ${Sa(o.type)?"dashed":"solid"} ${i}; }`);const n=o.getColor(at);n&&e.addRule(`.monaco-editor .find-widget { border: 1px solid ${n}; }`);const s=o.getColor(KQ);s&&e.addRule(`.monaco-editor .findMatchInline { color: ${s}; }`);const r=o.getColor(qQ);r&&e.addRule(`.monaco-editor .currentFindMatchInline { color: ${r}; }`)});var hU=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Zo=function(o,e){return function(t,i){e(t,i,o)}},FM;const kve=524288;function BM(o,e="single",t=!1){if(!o.hasModel())return null;const i=o.getSelection();if(e==="single"&&i.startLineNumber===i.endLineNumber||e==="multiple"){if(i.isEmpty()){const n=o.getConfiguredWordAtPosition(i.getStartPosition());if(n&&t===!1)return n.word}else if(o.getModel().getValueLengthInRange(i)this._onStateChanged(a))),this._model=null,this._register(this._editor.onDidChangeModel(()=>{const a=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),a&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(41).loop})}))}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,1),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,1),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,1),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,1)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!Lx.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){let e=this._editor.getSelections();e=e.map(t=>(t.endColumn===1&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,this._editor.getModel().getLineMaxColumn(t.endLineNumber-1))),t.isEmpty()?null:t)).filter(t=>!!t),e.length&&this._state.change({searchScope:e},!0)}}setSearchString(e){this._state.isRegex&&(e=Oo(e)),this._state.change({searchString:e},!1)}highlightFindOptions(e=!1){}async _start(e,t){if(this.disposeModel(),!this._editor.hasModel())return;const i={...t,isRevealed:!0};if(e.seedSearchStringFromSelection==="single"){const n=BM(this._editor,e.seedSearchStringFromSelection,e.seedSearchStringFromNonEmptySelection);n&&(this._state.isRegex?i.searchString=Oo(n):i.searchString=n)}else if(e.seedSearchStringFromSelection==="multiple"&&!e.updateSearchScope){const n=BM(this._editor,e.seedSearchStringFromSelection);n&&(i.searchString=n)}if(!i.searchString&&e.seedSearchStringFromGlobalClipboard){const n=await this.getGlobalBufferTerm();if(!this._editor.hasModel())return;n&&(i.searchString=n)}if(e.forceRevealReplace||i.isReplaceRevealed?i.isReplaceRevealed=!0:this._findWidgetVisible.get()||(i.isReplaceRevealed=!1),e.updateSearchScope){const n=this._editor.getSelections();n.some(s=>!s.isEmpty())&&(i.searchScope=n)}i.loop=e.loop,this._state.change(i,!1),this._model||(this._model=new Ev(this._editor,this._state))}start(e,t){return this._start(e,t)}moveToNextMatch(){return this._model?(this._model.moveToNextMatch(),!0):!1}moveToPrevMatch(){return this._model?(this._model.moveToPrevMatch(),!0):!1}goToMatch(e){return this._model?(this._model.moveToMatch(e),!0):!1}replace(){return this._model?(this._model.replace(),!0):!1}replaceAll(){var e;return this._model?!((e=this._editor.getModel())===null||e===void 0)&&e.isTooLargeForHeapOperation()?(this._notificationService.warn(m("too.large.for.replaceall","The file is too large to perform a replace all operation.")),!1):(this._model.replaceAll(),!0):!1}selectAllMatches(){return this._model?(this._model.selectAllMatches(),this._editor.focus(),!0):!1}async getGlobalBufferTerm(){return this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""}setGlobalBufferTerm(e){this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};Is.ID="editor.contrib.findController";Is=FM=hU([Zo(1,Me),Zo(2,Kr),Zo(3,uc),Zo(4,Ri),Zo(5,Gl)],Is);let WM=class extends Is{constructor(e,t,i,n,s,r,a,l,d){super(e,i,a,l,r,d),this._contextViewService=t,this._keybindingService=n,this._themeService=s,this._widget=null,this._findOptionsWidget=null}async _start(e,t){this._widget||this._createFindWidget();const i=this._editor.getSelection();let n=!1;switch(this._editor.getOption(41).autoFindInSelection){case"always":n=!0;break;case"never":n=!1;break;case"multiline":{n=!!i&&i.startLineNumber!==i.endLineNumber;break}}e.updateSearchScope=e.updateSearchScope||n,await super._start(e,t),this._widget&&(e.shouldFocus===2?this._widget.focusReplaceInput():e.shouldFocus===1&&this._widget.focusFindInput())}highlightFindOptions(e=!1){this._widget||this._createFindWidget(),this._state.isRevealed&&!e?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new Dx(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService,this._hoverService)),this._findOptionsWidget=this._register(new xx(this._editor,this._state,this._keybindingService))}};WM=hU([Zo(1,dc),Zo(2,Me),Zo(3,St),Zo(4,Ji),Zo(5,Ri),Zo(6,Kr),Zo(7,uc),Zo(8,Gl)],WM);const Ive=aW(new rW({id:Gt.StartFindAction,label:m("startFindAction","Find"),alias:"Find",precondition:K.or(E.focus,K.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:k.MenubarEditMenu,group:"3_find",title:m({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}}));Ive.addImplementation(0,(o,e,t)=>{const i=Is.get(e);return i?i.start({forceRevealReplace:!1,seedSearchStringFromSelection:e.getOption(41).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:e.getOption(41).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:e.getOption(41).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:e.getOption(41).loop}):!1});const Eve={description:"Open a new In-Editor Find Widget.",args:[{name:"Open a new In-Editor Find Widget args",schema:{properties:{searchString:{type:"string"},replaceString:{type:"string"},isRegex:{type:"boolean"},matchWholeWord:{type:"boolean"},isCaseSensitive:{type:"boolean"},preserveCase:{type:"boolean"},findInSelection:{type:"boolean"}}}}]};class Nve extends ce{constructor(){super({id:Gt.StartFindWithArgs,label:m("startFindWithArgsAction","Find With Arguments"),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},metadata:Eve})}async run(e,t,i){const n=Is.get(t);if(n){const s=i?{searchString:i.searchString,replaceString:i.replaceString,isReplaceRevealed:i.replaceString!==void 0,isRegex:i.isRegex,wholeWord:i.matchWholeWord,matchCase:i.isCaseSensitive,preserveCase:i.preserveCase}:{};await n.start({forceRevealReplace:!1,seedSearchStringFromSelection:n.getState().searchString.length===0&&t.getOption(41).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:t.getOption(41).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:(i==null?void 0:i.findInSelection)||!1,loop:t.getOption(41).loop},s),n.setGlobalBufferTerm(n.getState().searchString)}}}class Tve extends ce{constructor(){super({id:Gt.StartFindWithSelection,label:m("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}async run(e,t){const i=Is.get(t);i&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),i.setGlobalBufferTerm(i.getState().searchString))}}class uU extends ce{async run(e,t){const i=Is.get(t);i&&!this._run(i)&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:i.getState().searchString.length===0&&t.getOption(41).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:t.getOption(41).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),this._run(i))}}class Mve extends uU{constructor(){super({id:Gt.NextMatchFindAction,label:m("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:E.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:K.and(E.focus,Lx),primary:3,weight:100}]})}_run(e){return e.moveToNextMatch()?(e.editor.pushUndoStop(),!0):!1}}class Rve extends uU{constructor(){super({id:Gt.PreviousMatchFindAction,label:m("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:E.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:K.and(E.focus,Lx),primary:1027,weight:100}]})}_run(e){return e.moveToPrevMatch()}}class Ave extends ce{constructor(){super({id:Gt.GoToMatchFindAction,label:m("findMatchAction.goToMatch","Go to Match..."),alias:"Go to Match...",precondition:fc}),this._highlightDecorations=[]}run(e,t,i){const n=Is.get(t);if(!n)return;const s=n.getState().matchesCount;if(s<1){e.get(Ri).notify({severity:DL.Warning,message:m("findMatchAction.noResults","No matches. Try searching for something else.")});return}const a=e.get(_r).createInputBox();a.placeholder=m("findMatchAction.inputPlaceHolder","Type a number to go to a specific match (between 1 and {0})",s);const l=c=>{const h=parseInt(c);if(isNaN(h))return;const u=n.getState().matchesCount;if(h>0&&h<=u)return h-1;if(h<0&&h>=-u)return u+h},d=c=>{const h=l(c);if(typeof h=="number"){a.validationMessage=void 0,n.goToMatch(h);const u=n.getState().currentMatch;u&&this.addDecorations(t,u)}else a.validationMessage=m("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",n.getState().matchesCount),this.clearDecorations(t)};a.onDidChangeValue(c=>{d(c)}),a.onDidAccept(()=>{const c=l(a.value);typeof c=="number"?(n.goToMatch(c),a.hide()):a.validationMessage=m("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",n.getState().matchesCount)}),a.onDidHide(()=>{this.clearDecorations(t),a.dispose()}),a.show()}clearDecorations(e){e.changeDecorations(t=>{this._highlightDecorations=t.deltaDecorations(this._highlightDecorations,[])})}addDecorations(e,t){e.changeDecorations(i=>{this._highlightDecorations=i.deltaDecorations(this._highlightDecorations,[{range:t,options:{description:"find-match-quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"find-match-quick-access-range-highlight-overview",overviewRuler:{color:fi(d8),position:Bo.Full}}}])})}}class gU extends ce{async run(e,t){const i=Is.get(t);if(!i)return;const n=BM(t,"single",!1);n&&i.setSearchString(n),this._run(i)||(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),this._run(i))}}class Pve extends gU{constructor(){super({id:Gt.NextSelectionMatchFindAction,label:m("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:E.focus,primary:2109,weight:100}})}_run(e){return e.moveToNextMatch()}}class Ove extends gU{constructor(){super({id:Gt.PreviousSelectionMatchFindAction,label:m("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:E.focus,primary:3133,weight:100}})}_run(e){return e.moveToPrevMatch()}}const Fve=aW(new rW({id:Gt.StartFindReplaceAction,label:m("startReplace","Replace"),alias:"Replace",precondition:K.or(E.focus,K.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:k.MenubarEditMenu,group:"3_find",title:m({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}}));Fve.addImplementation(0,(o,e,t)=>{if(!e.hasModel()||e.getOption(91))return!1;const i=Is.get(e);if(!i)return!1;const n=e.getSelection(),s=i.isFindInputFocused(),r=!n.isEmpty()&&n.startLineNumber===n.endLineNumber&&e.getOption(41).seedSearchStringFromSelection!=="never"&&!s,a=s||r?2:1;return i.start({forceRevealReplace:!0,seedSearchStringFromSelection:r?"single":"none",seedSearchStringFromNonEmptySelection:e.getOption(41).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:e.getOption(41).seedSearchStringFromSelection!=="never",shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1,loop:e.getOption(41).loop})});vt(Is.ID,WM,0);J(Nve);J(Tve);J(Mve);J(Rve);J(Ave);J(Pve);J(Ove);const Va=Xi.bindToContribution(Is.get);le(new Va({id:Gt.CloseFindWidgetCommand,precondition:fc,handler:o=>o.closeFindWidget(),kbOpts:{weight:105,kbExpr:K.and(E.focus,K.not("isComposing")),primary:9,secondary:[1033]}}));le(new Va({id:Gt.ToggleCaseSensitiveCommand,precondition:void 0,handler:o=>o.toggleCaseSensitive(),kbOpts:{weight:105,kbExpr:E.focus,primary:x1.primary,mac:x1.mac,win:x1.win,linux:x1.linux}}));le(new Va({id:Gt.ToggleWholeWordCommand,precondition:void 0,handler:o=>o.toggleWholeWords(),kbOpts:{weight:105,kbExpr:E.focus,primary:D1.primary,mac:D1.mac,win:D1.win,linux:D1.linux}}));le(new Va({id:Gt.ToggleRegexCommand,precondition:void 0,handler:o=>o.toggleRegex(),kbOpts:{weight:105,kbExpr:E.focus,primary:k1.primary,mac:k1.mac,win:k1.win,linux:k1.linux}}));le(new Va({id:Gt.ToggleSearchScopeCommand,precondition:void 0,handler:o=>o.toggleSearchScope(),kbOpts:{weight:105,kbExpr:E.focus,primary:I1.primary,mac:I1.mac,win:I1.win,linux:I1.linux}}));le(new Va({id:Gt.TogglePreserveCaseCommand,precondition:void 0,handler:o=>o.togglePreserveCase(),kbOpts:{weight:105,kbExpr:E.focus,primary:E1.primary,mac:E1.mac,win:E1.win,linux:E1.linux}}));le(new Va({id:Gt.ReplaceOneAction,precondition:fc,handler:o=>o.replace(),kbOpts:{weight:105,kbExpr:E.focus,primary:3094}}));le(new Va({id:Gt.ReplaceOneAction,precondition:fc,handler:o=>o.replace(),kbOpts:{weight:105,kbExpr:K.and(E.focus,HP),primary:3}}));le(new Va({id:Gt.ReplaceAllAction,precondition:fc,handler:o=>o.replaceAll(),kbOpts:{weight:105,kbExpr:E.focus,primary:2563}}));le(new Va({id:Gt.ReplaceAllAction,precondition:fc,handler:o=>o.replaceAll(),kbOpts:{weight:105,kbExpr:K.and(E.focus,HP),primary:void 0,mac:{primary:2051}}}));le(new Va({id:Gt.SelectAllMatchesAction,precondition:fc,handler:o=>o.selectAllMatches(),kbOpts:{weight:105,kbExpr:E.focus,primary:515}}));const Bve={0:" ",1:"u",2:"r"},zB=65535,ra=16777215,UB=4278190080;class Qk{constructor(e){const t=Math.ceil(e/32);this._states=new Uint32Array(t)}get(e){const t=e/32|0,i=e%32;return(this._states[t]&1<zB)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new Qk(e.length),this._userDefinedStates=new Qk(e.length),this._recoveredStates=new Qk(e.length),this._types=i,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;const e=[],t=(i,n)=>{const s=e[e.length-1];return this.getStartLineNumber(s)<=i&&this.getEndLineNumber(s)>=n};for(let i=0,n=this._startIndexes.length;ira||r>ra)throw new Error("startLineNumber or endLineNumber must not exceed "+ra);for(;e.length>0&&!t(s,r);)e.pop();const a=e.length>0?e[e.length-1]:-1;e.push(i),this._startIndexes[i]=s+((a&255)<<24),this._endIndexes[i]=r+((a&65280)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return this._startIndexes[e]&ra}getEndLineNumber(e){return this._endIndexes[e]&ra}getType(e){return this._types?this._types[e]:void 0}hasTypes(){return!!this._types}isCollapsed(e){return this._collapseStates.get(e)}setCollapsed(e,t){this._collapseStates.set(e,t)}isUserDefined(e){return this._userDefinedStates.get(e)}setUserDefined(e,t){return this._userDefinedStates.set(e,t)}isRecovered(e){return this._recoveredStates.get(e)}setRecovered(e,t){return this._recoveredStates.set(e,t)}getSource(e){return this.isUserDefined(e)?1:this.isRecovered(e)?2:0}setSource(e,t){t===1?(this.setUserDefined(e,!0),this.setRecovered(e,!1)):t===2?(this.setUserDefined(e,!1),this.setRecovered(e,!0)):(this.setUserDefined(e,!1),this.setRecovered(e,!1))}setCollapsedAllOfType(e,t){let i=!1;if(this._types)for(let n=0;n>>24)+((this._endIndexes[e]&UB)>>>16);return t===zB?-1:t}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){let t=0,i=this._startIndexes.length;if(i===0)return-1;for(;t=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);t!==-1;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1}toString(){const e=[];for(let t=0;tArray.isArray(p)?v=>v<_?p[v]:void 0:v=>v<_?p.toFoldRange(v):void 0,s=n(e,e.length),r=n(t,t.length);let a=0,l=0,d=s(0),c=r(0);const h=[];let u,g=0;const f=[];for(;d||c;){let p;if(c&&(!d||d.startLineNumber>=c.startLineNumber))d&&d.startLineNumber===c.startLineNumber?(c.source===1?p=c:(p=d,p.isCollapsed=c.isCollapsed&&d.endLineNumber===c.endLineNumber,p.source=0),d=s(++a)):(p=c,c.isCollapsed&&c.source===0&&(p.source=2)),c=r(++l);else{let _=l,v=c;for(;;){if(!v||v.startLineNumber>d.endLineNumber){p=d;break}if(v.source===1&&v.endLineNumber>d.endLineNumber)break;v=r(++_)}d=s(++a)}if(p){for(;u&&u.endLineNumberp.startLineNumber&&p.startLineNumber>g&&p.endLineNumber<=i&&(!u||u.endLineNumber>=p.endLineNumber)&&(f.push(p),g=p.startLineNumber,u&&h.push(u),u=p)}}return f}}class Wve{constructor(e,t){this.ranges=e,this.index=t}get startLineNumber(){return this.ranges.getStartLineNumber(this.index)}get endLineNumber(){return this.ranges.getEndLineNumber(this.index)}get regionIndex(){return this.index}get parentIndex(){return this.ranges.getParentIndex(this.index)}get isCollapsed(){return this.ranges.isCollapsed(this.index)}containedBy(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber}containsLine(e){return this.startLineNumber<=e&&e<=this.endLineNumber}}class Hve{get regions(){return this._regions}get textModel(){return this._textModel}constructor(e,t){this._updateEventEmitter=new O,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new xo(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[]}toggleCollapseState(e){if(!e.length)return;e=e.sort((i,n)=>i.regionIndex-n.regionIndex);const t={};this._decorationProvider.changeDecorations(i=>{let n=0,s=-1,r=-1;const a=l=>{for(;nr&&(r=d),n++}};for(const l of e){const d=l.regionIndex,c=this._editorDecorationIds[d];if(c&&!t[c]){t[c]=!0,a(d);const h=!this._regions.isCollapsed(d);this._regions.setCollapsed(d,h),s=Math.max(s,this._regions.getEndLineNumber(d))}}a(this._regions.length)}),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}removeManualRanges(e){const t=new Array,i=n=>{for(const s of e)if(!(s.startLineNumber>n.endLineNumber||n.startLineNumber>s.endLineNumber))return!0;return!1};for(let n=0;ni&&(i=a)}this._decorationProvider.changeDecorations(n=>this._editorDecorationIds=n.deltaDecorations(this._editorDecorationIds,t)),this._regions=e,this._updateEventEmitter.fire({model:this})}_currentFoldedOrManualRanges(e=[]){const t=(n,s)=>{for(const r of e)if(n=r.endLineNumber||r.startLineNumber<1||r.endLineNumber>i)continue;const a=this._getLinesChecksum(r.startLineNumber+1,r.endLineNumber);t.push({startLineNumber:r.startLineNumber,endLineNumber:r.endLineNumber,isCollapsed:r.isCollapsed,source:r.source,checksum:a})}return t.length>0?t:void 0}applyMemento(e){var t,i;if(!Array.isArray(e))return;const n=[],s=this._textModel.getLineCount();for(const a of e){if(a.startLineNumber>=a.endLineNumber||a.startLineNumber<1||a.endLineNumber>s)continue;const l=this._getLinesChecksum(a.startLineNumber+1,a.endLineNumber);(!a.checksum||l===a.checksum)&&n.push({startLineNumber:a.startLineNumber,endLineNumber:a.endLineNumber,type:void 0,isCollapsed:(t=a.isCollapsed)!==null&&t!==void 0?t:!0,source:(i=a.source)!==null&&i!==void 0?i:0})}const r=xo.sanitizeAndMerge(this._regions,n,s);this.updatePost(xo.fromFoldRanges(r))}_getLinesChecksum(e,t){return $y(this._textModel.getLineContent(e)+this._textModel.getLineContent(t))%1e6}dispose(){this._decorationProvider.removeDecorations(this._editorDecorationIds)}getAllRegionsAtLine(e,t){const i=[];if(this._regions){let n=this._regions.findRange(e),s=1;for(;n>=0;){const r=this._regions.toRegion(n);(!t||t(r,s))&&i.push(r),s++,n=r.parentIndex}}return i}getRegionAtLine(e){if(this._regions){const t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){const i=[],n=e?e.regionIndex+1:0,s=e?e.endLineNumber:Number.MAX_VALUE;if(t&&t.length===2){const r=[];for(let a=n,l=this._regions.length;a0&&!d.containedBy(r[r.length-1]);)r.pop();r.push(d),t(d,r.length)&&i.push(d)}else break}}else for(let r=n,a=this._regions.length;r1){const a=o.getRegionsInside(s,(l,d)=>l.isCollapsed!==r&&d0)for(const s of i){const r=o.getRegionAtLine(s);if(r&&(r.isCollapsed!==e&&n.push(r),t>1)){const a=o.getRegionsInside(r,(l,d)=>l.isCollapsed!==e&&dr.isCollapsed!==e&&aa.isCollapsed!==e&&l<=t);n.push(...r)}o.toggleCollapseState(n)}function Vve(o,e,t){const i=[];for(const n of t){const s=o.getAllRegionsAtLine(n,r=>r.isCollapsed!==e);s.length>0&&i.push(s[0])}o.toggleCollapseState(i)}function zve(o,e,t,i){const n=(r,a)=>a===e&&r.isCollapsed!==t&&!i.some(l=>r.containsLine(l)),s=o.getRegionsInside(null,n);o.toggleCollapseState(s)}function pU(o,e,t){const i=[];for(const r of t){const a=o.getAllRegionsAtLine(r,void 0);a.length>0&&i.push(a[0])}const n=r=>i.every(a=>!a.containedBy(r)&&!r.containedBy(a))&&r.isCollapsed!==e,s=o.getRegionsInside(null,n);o.toggleCollapseState(s)}function UP(o,e,t){const i=o.textModel,n=o.regions,s=[];for(let r=n.length-1;r>=0;r--)if(t!==n.isCollapsed(r)){const a=n.getStartLineNumber(r);e.test(i.getLineContent(a))&&s.push(n.toRegion(r))}o.toggleCollapseState(s)}function $P(o,e,t){const i=o.regions,n=[];for(let s=i.length-1;s>=0;s--)t!==i.isCollapsed(s)&&e===i.getType(s)&&n.push(i.toRegion(s));o.toggleCollapseState(n)}function Uve(o,e){let t=null;const i=e.getRegionAtLine(o);if(i!==null&&(t=i.startLineNumber,o===t)){const n=i.parentIndex;n!==-1?t=e.regions.getStartLineNumber(n):t=null}return t}function $ve(o,e){let t=e.getRegionAtLine(o);if(t!==null&&t.startLineNumber===o){if(o!==t.startLineNumber)return t.startLineNumber;{const i=t.parentIndex;let n=0;for(i!==-1&&(n=e.regions.getStartLineNumber(t.parentIndex));t!==null;)if(t.regionIndex>0){if(t=e.regions.toRegion(t.regionIndex-1),t.startLineNumber<=n)return null;if(t.parentIndex===i)return t.startLineNumber}else return null}}else if(e.regions.length>0)for(t=e.regions.toRegion(e.regions.length-1);t!==null;){if(t.startLineNumber0?t=e.regions.toRegion(t.regionIndex-1):t=null}return null}function jve(o,e){let t=e.getRegionAtLine(o);if(t!==null&&t.startLineNumber===o){const i=t.parentIndex;let n=0;if(i!==-1)n=e.regions.getEndLineNumber(t.parentIndex);else{if(e.regions.length===0)return null;n=e.regions.getEndLineNumber(e.regions.length-1)}for(;t!==null;)if(t.regionIndex=n)return null;if(t.parentIndex===i)return t.startLineNumber}else return null}else if(e.regions.length>0)for(t=e.regions.toRegion(0);t!==null;){if(t.startLineNumber>o)return t.startLineNumber;t.regionIndexthis.updateHiddenRanges()),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}notifyChangeModelContent(e){this._hiddenRanges.length&&!this._hasLineChanges&&(this._hasLineChanges=e.changes.some(t=>t.range.endLineNumber!==t.range.startLineNumber||xh(t.text)[0]!==0))}updateHiddenRanges(){let e=!1;const t=[];let i=0,n=0,s=Number.MAX_VALUE,r=-1;const a=this._foldingModel.regions;for(;i0}isHidden(e){return $B(this._hiddenRanges,e)!==null}adjustSelections(e){let t=!1;const i=this._foldingModel.textModel;let n=null;const s=r=>((!n||!qve(r,n))&&(n=$B(this._hiddenRanges,r)),n?n.startLineNumber-1:null);for(let r=0,a=e.length;r0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}function qve(o,e){return o>=e.startLineNumber&&o<=e.endLineNumber}function $B(o,e){const t=Jv(o,i=>e=0&&o[t].endLineNumber>=e?o[t]:null}const Gve=5e3,Zve="indent";class jP{constructor(e,t,i){this.editorModel=e,this.languageConfigurationService=t,this.foldingRangesLimit=i,this.id=Zve}dispose(){}compute(e){const t=this.languageConfigurationService.getLanguageConfiguration(this.editorModel.getLanguageId()).foldingRules,i=t&&!!t.offSide,n=t&&t.markers;return Promise.resolve(Xve(this.editorModel,i,n,this.foldingRangesLimit))}}let Yve=class{constructor(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,i){if(e>ra||t>ra)return;const n=this._length;this._startIndexes[n]=e,this._endIndexes[n]=t,this._length++,i<1e3&&(this._indentOccurrences[i]=(this._indentOccurrences[i]||0)+1)}toIndentRanges(e){const t=this._foldingRangesLimit.limit;if(this._length<=t){this._foldingRangesLimit.update(this._length,!1);const i=new Uint32Array(this._length),n=new Uint32Array(this._length);for(let s=this._length-1,r=0;s>=0;s--,r++)i[r]=this._startIndexes[s],n[r]=this._endIndexes[s];return new xo(i,n)}else{this._foldingRangesLimit.update(this._length,t);let i=0,n=this._indentOccurrences.length;for(let l=0;lt){n=l;break}i+=d}}const s=e.getOptions().tabSize,r=new Uint32Array(t),a=new Uint32Array(t);for(let l=this._length-1,d=0;l>=0;l--){const c=this._startIndexes[l],h=e.getLineContent(c),u=SL(h,s);(u{}};function Xve(o,e,t,i=Qve){const n=o.getOptions().tabSize,s=new Yve(i);let r;t&&(r=new RegExp(`(${t.start.source})|(?:${t.end.source})`));const a=[],l=o.getLineCount()+1;a.push({indent:-1,endAbove:l,line:l});for(let d=o.getLineCount();d>0;d--){const c=o.getLineContent(d),h=SL(c,n);let u=a[a.length-1];if(h===-1){e&&(u.endAbove=d);continue}let g;if(r&&(g=c.match(r)))if(g[1]){let f=a.length-1;for(;f>0&&a[f].indent!==-2;)f--;if(f>0){a.length=f+1,u=a[f],s.insertFirst(d,u.line,h),u.line=d,u.indent=h,u.endAbove=d;continue}}else{a.push({indent:-2,endAbove:d,line:d});continue}if(u.indent>h){do a.pop(),u=a[a.length-1];while(u.indent>h);const f=u.endAbove-1;f-d>=1&&s.insertFirst(d,f,h)}u.indent===h?u.endAbove=d:a.push({indent:h,endAbove:d,line:d})}return s.toIndentRanges(o)}const Jve=N("editor.foldBackground",{light:Se($c,.3),dark:Se($c,.3),hcDark:null,hcLight:null},m("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0);N("editorGutter.foldingControlForeground",{dark:vl,light:vl,hcDark:vl,hcLight:vl},m("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));const kx=_i("folding-expanded",oe.chevronDown,m("foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),Ix=_i("folding-collapsed",oe.chevronRight,m("foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin.")),_U=_i("folding-manual-collapsed",Ix,m("foldingManualCollapedIcon","Icon for manually collapsed ranges in the editor glyph margin.")),vU=_i("folding-manual-expanded",kx,m("foldingManualExpandedIcon","Icon for manually expanded ranges in the editor glyph margin.")),KP={color:fi(Jve),position:1},jp=m("linesCollapsed","Click to expand the range."),Ex=m("linesExpanded","Click to collapse the range.");class Fi{constructor(e){this.editor=e,this.showFoldingControls="mouseover",this.showFoldingHighlights=!0}getDecorationOption(e,t,i){return t?Fi.HIDDEN_RANGE_DECORATION:this.showFoldingControls==="never"?e?this.showFoldingHighlights?Fi.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION:Fi.NO_CONTROLS_COLLAPSED_RANGE_DECORATION:Fi.NO_CONTROLS_EXPANDED_RANGE_DECORATION:e?i?this.showFoldingHighlights?Fi.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:Fi.MANUALLY_COLLAPSED_VISUAL_DECORATION:this.showFoldingHighlights?Fi.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:Fi.COLLAPSED_VISUAL_DECORATION:this.showFoldingControls==="mouseover"?i?Fi.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION:Fi.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:i?Fi.MANUALLY_EXPANDED_VISUAL_DECORATION:Fi.EXPANDED_VISUAL_DECORATION}changeDecorations(e){return this.editor.changeDecorations(e)}removeDecorations(e){this.editor.removeDecorations(e)}}Fi.COLLAPSED_VISUAL_DECORATION=je.register({description:"folding-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:jp,firstLineDecorationClassName:Te.asClassName(Ix)});Fi.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=je.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:KP,isWholeLine:!0,linesDecorationsTooltip:jp,firstLineDecorationClassName:Te.asClassName(Ix)});Fi.MANUALLY_COLLAPSED_VISUAL_DECORATION=je.register({description:"folding-manually-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:jp,firstLineDecorationClassName:Te.asClassName(_U)});Fi.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=je.register({description:"folding-manually-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:KP,isWholeLine:!0,linesDecorationsTooltip:jp,firstLineDecorationClassName:Te.asClassName(_U)});Fi.NO_CONTROLS_COLLAPSED_RANGE_DECORATION=je.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:jp});Fi.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION=je.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:KP,isWholeLine:!0,linesDecorationsTooltip:jp});Fi.EXPANDED_VISUAL_DECORATION=je.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+Te.asClassName(kx),linesDecorationsTooltip:Ex});Fi.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=je.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:Te.asClassName(kx),linesDecorationsTooltip:Ex});Fi.MANUALLY_EXPANDED_VISUAL_DECORATION=je.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+Te.asClassName(vU),linesDecorationsTooltip:Ex});Fi.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION=je.register({description:"folding-manually-expanded-auto-hide-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:Te.asClassName(vU),linesDecorationsTooltip:Ex});Fi.NO_CONTROLS_EXPANDED_RANGE_DECORATION=je.register({description:"folding-no-controls-range-decoration",stickiness:0,isWholeLine:!0});Fi.HIDDEN_RANGE_DECORATION=je.register({description:"folding-hidden-range-decoration",stickiness:1});const ebe={},tbe="syntax";class qP{constructor(e,t,i,n,s){this.editorModel=e,this.providers=t,this.handleFoldingRangesChange=i,this.foldingRangesLimit=n,this.fallbackRangeProvider=s,this.id=tbe,this.disposables=new G,s&&this.disposables.add(s);for(const r of t)typeof r.onDidChange=="function"&&this.disposables.add(r.onDidChange(i))}compute(e){return ibe(this.providers,this.editorModel,e).then(t=>{var i,n;return t?sbe(t,this.foldingRangesLimit):(n=(i=this.fallbackRangeProvider)===null||i===void 0?void 0:i.compute(e))!==null&&n!==void 0?n:null})}dispose(){this.disposables.dispose()}}function ibe(o,e,t){let i=null;const n=o.map((s,r)=>Promise.resolve(s.provideFoldingRanges(e,ebe,t)).then(a=>{if(!t.isCancellationRequested&&Array.isArray(a)){Array.isArray(i)||(i=[]);const l=e.getLineCount();for(const d of a)d.start>0&&d.end>d.start&&d.end<=l&&i.push({start:d.start,end:d.end,rank:r,kind:d.kind})}},yi));return Promise.all(n).then(s=>i)}class nbe{constructor(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,i,n){if(e>ra||t>ra)return;const s=this._length;this._startIndexes[s]=e,this._endIndexes[s]=t,this._nestingLevels[s]=n,this._types[s]=i,this._length++,n<30&&(this._nestingLevelCounts[n]=(this._nestingLevelCounts[n]||0)+1)}toIndentRanges(){const e=this._foldingRangesLimit.limit;if(this._length<=e){this._foldingRangesLimit.update(this._length,!1);const t=new Uint32Array(this._length),i=new Uint32Array(this._length);for(let n=0;ne){i=a;break}t+=l}}const n=new Uint32Array(e),s=new Uint32Array(e),r=[];for(let a=0,l=0;a{let l=r.start-a.start;return l===0&&(l=r.rank-a.rank),l}),i=new nbe(e);let n;const s=[];for(const r of t)if(!n)n=r,i.add(r.start,r.end,r.kind&&r.kind.value,s.length);else if(r.start>n.start)if(r.end<=n.end)s.push(n),n=r,i.add(r.start,r.end,r.kind&&r.kind.value,s.length);else{if(r.start>n.end){do n=s.pop();while(n&&r.start>n.end);n&&s.push(n),n=r}i.add(r.start,r.end,r.kind&&r.kind.value,s.length)}return i.toIndentRanges()}var obe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},x_=function(o,e){return function(t,i){e(t,i,o)}},Rf;const Gn=new de("foldingEnabled",!1);let oc=Rf=class extends W{static get(e){return e.getContribution(Rf.ID)}static getFoldingRangeProviders(e,t){var i,n;const s=e.foldingRangeProvider.ordered(t);return(n=(i=Rf._foldingRangeSelector)===null||i===void 0?void 0:i.call(Rf,s,t))!==null&&n!==void 0?n:s}constructor(e,t,i,n,s,r){super(),this.contextKeyService=t,this.languageConfigurationService=i,this.languageFeaturesService=r,this.localToDispose=this._register(new G),this.editor=e,this._foldingLimitReporter=new bU(e);const a=this.editor.getOptions();this._isEnabled=a.get(43),this._useFoldingProviders=a.get(44)!=="indentation",this._unfoldOnClickAfterEndOfLine=a.get(48),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=a.get(46),this.updateDebounceInfo=s.for(r.foldingRangeProvider,"Folding",{min:200}),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new Fi(e),this.foldingDecorationProvider.showFoldingControls=a.get(110),this.foldingDecorationProvider.showFoldingHighlights=a.get(45),this.foldingEnabled=Gn.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel(()=>this.onModelChanged())),this._register(this.editor.onDidChangeConfiguration(l=>{if(l.hasChanged(43)&&(this._isEnabled=this.editor.getOptions().get(43),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),l.hasChanged(47)&&this.onModelChanged(),l.hasChanged(110)||l.hasChanged(45)){const d=this.editor.getOptions();this.foldingDecorationProvider.showFoldingControls=d.get(110),this.foldingDecorationProvider.showFoldingHighlights=d.get(45),this.triggerFoldingModelChanged()}l.hasChanged(44)&&(this._useFoldingProviders=this.editor.getOptions().get(44)!=="indentation",this.onFoldingStrategyChanged()),l.hasChanged(48)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(48)),l.hasChanged(46)&&(this._foldingImportsByDefault=this.editor.getOptions().get(46))})),this.onModelChanged()}saveViewState(){const e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){const t=this.foldingModel.getMemento(),i=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:i,foldedImports:this._currentModelHasFoldedImports}}}restoreViewState(e){const t=this.editor.getModel();if(!(!t||!this._isEnabled||t.isTooLargeForTokenization()||!this.hiddenRangeModel)&&e&&(this._currentModelHasFoldedImports=!!e.foldedImports,e.collapsedRegions&&e.collapsedRegions.length>0&&this.foldingModel)){this._restoringViewState=!0;try{this.foldingModel.applyMemento(e.collapsedRegions)}finally{this._restoringViewState=!1}}}onModelChanged(){this.localToDispose.clear();const e=this.editor.getModel();!this._isEnabled||!e||e.isTooLargeForTokenization()||(this._currentModelHasFoldedImports=!1,this.foldingModel=new Hve(e,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new Kve(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(t=>this.onHiddenRangesChanges(t))),this.updateScheduler=new Vr(this.updateDebounceInfo.get(e)),this.cursorChangedScheduler=new At(()=>this.revealCursor(),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(this.languageFeaturesService.foldingRangeProvider.onDidChange(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelContent(t=>this.onDidChangeModelContent(t))),this.localToDispose.add(this.editor.onDidChangeCursorPosition(()=>this.onCursorPositionChanged())),this.localToDispose.add(this.editor.onMouseDown(t=>this.onEditorMouseDown(t))),this.localToDispose.add(this.editor.onMouseUp(t=>this.onEditorMouseUp(t))),this.localToDispose.add({dispose:()=>{var t,i;this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),(t=this.updateScheduler)===null||t===void 0||t.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,(i=this.rangeProvider)===null||i===void 0||i.dispose(),this.rangeProvider=null}}),this.triggerFoldingModelChanged())}onFoldingStrategyChanged(){var e;(e=this.rangeProvider)===null||e===void 0||e.dispose(),this.rangeProvider=null,this.triggerFoldingModelChanged()}getRangeProvider(e){if(this.rangeProvider)return this.rangeProvider;const t=new jP(e,this.languageConfigurationService,this._foldingLimitReporter);if(this.rangeProvider=t,this._useFoldingProviders&&this.foldingModel){const i=Rf.getFoldingRangeProviders(this.languageFeaturesService,e);i.length>0&&(this.rangeProvider=new qP(e,i,()=>this.triggerFoldingModelChanged(),this._foldingLimitReporter,t))}return this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onDidChangeModelContent(e){var t;(t=this.hiddenRangeModel)===null||t===void 0||t.notifyChangeModelContent(e),this.triggerFoldingModelChanged()}triggerFoldingModelChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(()=>{const e=this.foldingModel;if(!e)return null;const t=new In,i=this.getRangeProvider(e.textModel),n=this.foldingRegionPromise=an(s=>i.compute(s));return n.then(s=>{if(s&&n===this.foldingRegionPromise){let r;if(this._foldingImportsByDefault&&!this._currentModelHasFoldedImports){const c=s.setCollapsedAllOfType(bs.Imports.value,!0);c&&(r=Pa.capture(this.editor),this._currentModelHasFoldedImports=c)}const a=this.editor.getSelections(),l=a?a.map(c=>c.startLineNumber):[];e.update(s,l),r==null||r.restore(this.editor);const d=this.updateDebounceInfo.update(e.textModel,t.elapsed());this.updateScheduler&&(this.updateScheduler.defaultDelay=d)}return e})}).then(void 0,e=>(ze(e),null)))}onHiddenRangesChanges(e){if(this.hiddenRangeModel&&e.length&&!this._restoringViewState){const t=this.editor.getSelections();t&&this.hiddenRangeModel.adjustSelections(t)&&this.editor.setSelections(t)}this.editor.setHiddenAreas(e,this)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){const e=this.getFoldingModel();e&&e.then(t=>{if(t){const i=this.editor.getSelections();if(i&&i.length>0){const n=[];for(const s of i){const r=s.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(r)&&n.push(...t.getAllRegionsAtLine(r,a=>a.isCollapsed&&r>a.startLineNumber))}n.length&&(t.toggleCollapseState(n),this.reveal(i[0].getPosition()))}}}).then(void 0,ze)}onEditorMouseDown(e){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!e.target||!e.target.range||!e.event.leftButton&&!e.event.middleButton)return;const t=e.target.range;let i=!1;switch(e.target.type){case 4:{const n=e.target.detail,s=e.target.element.offsetLeft;if(n.offsetX-s<4)return;i=!0;break}case 7:{if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()&&!e.target.detail.isAfterLines)break;return}case 6:{if(this.hiddenRangeModel.hasRanges()){const n=this.editor.getModel();if(n&&t.startColumn===n.getLineMaxColumn(t.startLineNumber))break}return}default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:i}}onEditorMouseUp(e){const t=this.foldingModel;if(!t||!this.mouseDownInfo||!e.target)return;const i=this.mouseDownInfo.lineNumber,n=this.mouseDownInfo.iconClicked,s=e.target.range;if(!s||s.startLineNumber!==i)return;if(n){if(e.target.type!==4)return}else{const a=this.editor.getModel();if(!a||s.startColumn!==a.getLineMaxColumn(i))return}const r=t.getRegionAtLine(i);if(r&&r.startLineNumber===i){const a=r.isCollapsed;if(n||a){const l=e.event.altKey;let d=[];if(l){const c=u=>!u.containedBy(r)&&!r.containedBy(u),h=t.getRegionsInside(null,c);for(const u of h)u.isCollapsed&&d.push(u);d.length===0&&(d=h)}else{const c=e.event.middleButton||e.event.shiftKey;if(c)for(const h of t.getRegionsInside(r))h.isCollapsed===a&&d.push(h);(a||!c||d.length===0)&&d.push(r)}t.toggleCollapseState(d),this.reveal({lineNumber:i,column:1})}}}reveal(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}};oc.ID="editor.contrib.folding";oc=Rf=obe([x_(1,Me),x_(2,$t),x_(3,Ri),x_(4,fr),x_(5,me)],oc);class bU{constructor(e){this.editor=e,this._onDidChange=new O,this._computed=0,this._limited=!1}get limit(){return this.editor.getOptions().get(47)}update(e,t){(e!==this._computed||t!==this._limited)&&(this._computed=e,this._limited=t,this._onDidChange.fire())}}class rs extends ce{runEditorCommand(e,t,i){const n=e.get($t),s=oc.get(t);if(!s)return;const r=s.getFoldingModel();if(r)return this.reportTelemetry(e,t),r.then(a=>{if(a){this.invoke(s,a,t,i,n);const l=t.getSelection();l&&s.reveal(l.getStartPosition())}})}getSelectedLines(e){const t=e.getSelections();return t?t.map(i=>i.startLineNumber):[]}getLineNumbers(e,t){return e&&e.selectionLines?e.selectionLines.map(i=>i+1):this.getSelectedLines(t)}run(e,t){}}function CU(o){if(!Hs(o)){if(!_s(o))return!1;const e=o;if(!Hs(e.levels)&&!vh(e.levels)||!Hs(e.direction)&&!ys(e.direction)||!Hs(e.selectionLines)&&(!Array.isArray(e.selectionLines)||!e.selectionLines.every(vh)))return!1}return!0}class rbe extends rs{constructor(){super({id:"editor.unfold",label:m("unfoldAction.label","Unfold"),alias:"Unfold",precondition:Gn,kbOpts:{kbExpr:E.editorTextFocus,primary:3166,mac:{primary:2654},weight:100},metadata:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:`Property-value pairs that can be passed through this argument: + * 'levels': Number of levels to unfold. If not set, defaults to 1. + * 'direction': If 'up', unfold given number of levels up otherwise unfolds down. + * 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used. + `,constraint:CU,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,n){const s=n&&n.levels||1,r=this.getLineNumbers(n,i);n&&n.direction==="up"?mU(t,!1,s,r):$p(t,!1,s,r)}}class abe extends rs{constructor(){super({id:"editor.unfoldRecursively",label:m("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:Gn,kbOpts:{kbExpr:E.editorTextFocus,primary:Ki(2089,2142),weight:100}})}invoke(e,t,i,n){$p(t,!1,Number.MAX_VALUE,this.getSelectedLines(i))}}class lbe extends rs{constructor(){super({id:"editor.fold",label:m("foldAction.label","Fold"),alias:"Fold",precondition:Gn,kbOpts:{kbExpr:E.editorTextFocus,primary:3164,mac:{primary:2652},weight:100},metadata:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:`Property-value pairs that can be passed through this argument: + * 'levels': Number of levels to fold. + * 'direction': If 'up', folds given number of levels up otherwise folds down. + * 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used. + If no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead. + `,constraint:CU,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,n){const s=this.getLineNumbers(n,i),r=n&&n.levels,a=n&&n.direction;typeof r!="number"&&typeof a!="string"?Vve(t,!0,s):a==="up"?mU(t,!0,r||1,s):$p(t,!0,r||1,s)}}class dbe extends rs{constructor(){super({id:"editor.toggleFold",label:m("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:Gn,kbOpts:{kbExpr:E.editorTextFocus,primary:Ki(2089,2090),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);fU(t,1,n)}}class cbe extends rs{constructor(){super({id:"editor.foldRecursively",label:m("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:Gn,kbOpts:{kbExpr:E.editorTextFocus,primary:Ki(2089,2140),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);$p(t,!0,Number.MAX_VALUE,n)}}class hbe extends rs{constructor(){super({id:"editor.foldAllBlockComments",label:m("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:Gn,kbOpts:{kbExpr:E.editorTextFocus,primary:Ki(2089,2138),weight:100}})}invoke(e,t,i,n,s){if(t.regions.hasTypes())$P(t,bs.Comment.value,!0);else{const r=i.getModel();if(!r)return;const a=s.getLanguageConfiguration(r.getLanguageId()).comments;if(a&&a.blockCommentStartToken){const l=new RegExp("^\\s*"+Oo(a.blockCommentStartToken));UP(t,l,!0)}}}}class ube extends rs{constructor(){super({id:"editor.foldAllMarkerRegions",label:m("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:Gn,kbOpts:{kbExpr:E.editorTextFocus,primary:Ki(2089,2077),weight:100}})}invoke(e,t,i,n,s){if(t.regions.hasTypes())$P(t,bs.Region.value,!0);else{const r=i.getModel();if(!r)return;const a=s.getLanguageConfiguration(r.getLanguageId()).foldingRules;if(a&&a.markers&&a.markers.start){const l=new RegExp(a.markers.start);UP(t,l,!0)}}}}class gbe extends rs{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:m("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:Gn,kbOpts:{kbExpr:E.editorTextFocus,primary:Ki(2089,2078),weight:100}})}invoke(e,t,i,n,s){if(t.regions.hasTypes())$P(t,bs.Region.value,!1);else{const r=i.getModel();if(!r)return;const a=s.getLanguageConfiguration(r.getLanguageId()).foldingRules;if(a&&a.markers&&a.markers.start){const l=new RegExp(a.markers.start);UP(t,l,!1)}}}}class fbe extends rs{constructor(){super({id:"editor.foldAllExcept",label:m("foldAllExcept.label","Fold All Except Selected"),alias:"Fold All Except Selected",precondition:Gn,kbOpts:{kbExpr:E.editorTextFocus,primary:Ki(2089,2136),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);pU(t,!0,n)}}class mbe extends rs{constructor(){super({id:"editor.unfoldAllExcept",label:m("unfoldAllExcept.label","Unfold All Except Selected"),alias:"Unfold All Except Selected",precondition:Gn,kbOpts:{kbExpr:E.editorTextFocus,primary:Ki(2089,2134),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);pU(t,!1,n)}}class pbe extends rs{constructor(){super({id:"editor.foldAll",label:m("foldAllAction.label","Fold All"),alias:"Fold All",precondition:Gn,kbOpts:{kbExpr:E.editorTextFocus,primary:Ki(2089,2069),weight:100}})}invoke(e,t,i){$p(t,!0)}}class _be extends rs{constructor(){super({id:"editor.unfoldAll",label:m("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:Gn,kbOpts:{kbExpr:E.editorTextFocus,primary:Ki(2089,2088),weight:100}})}invoke(e,t,i){$p(t,!1)}}class Ag extends rs{getFoldingLevel(){return parseInt(this.id.substr(Ag.ID_PREFIX.length))}invoke(e,t,i){zve(t,this.getFoldingLevel(),!0,this.getSelectedLines(i))}}Ag.ID_PREFIX="editor.foldLevel";Ag.ID=o=>Ag.ID_PREFIX+o;class vbe extends rs{constructor(){super({id:"editor.gotoParentFold",label:m("gotoParentFold.label","Go to Parent Fold"),alias:"Go to Parent Fold",precondition:Gn,kbOpts:{kbExpr:E.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const s=Uve(n[0],t);s!==null&&i.setSelection({startLineNumber:s,startColumn:1,endLineNumber:s,endColumn:1})}}}class bbe extends rs{constructor(){super({id:"editor.gotoPreviousFold",label:m("gotoPreviousFold.label","Go to Previous Folding Range"),alias:"Go to Previous Folding Range",precondition:Gn,kbOpts:{kbExpr:E.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const s=$ve(n[0],t);s!==null&&i.setSelection({startLineNumber:s,startColumn:1,endLineNumber:s,endColumn:1})}}}class Cbe extends rs{constructor(){super({id:"editor.gotoNextFold",label:m("gotoNextFold.label","Go to Next Folding Range"),alias:"Go to Next Folding Range",precondition:Gn,kbOpts:{kbExpr:E.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const s=jve(n[0],t);s!==null&&i.setSelection({startLineNumber:s,startColumn:1,endLineNumber:s,endColumn:1})}}}class wbe extends rs{constructor(){super({id:"editor.createFoldingRangeFromSelection",label:m("createManualFoldRange.label","Create Folding Range from Selection"),alias:"Create Folding Range from Selection",precondition:Gn,kbOpts:{kbExpr:E.editorTextFocus,primary:Ki(2089,2135),weight:100}})}invoke(e,t,i){var n;const s=[],r=i.getSelections();if(r){for(const a of r){let l=a.endLineNumber;a.endColumn===1&&--l,l>a.startLineNumber&&(s.push({startLineNumber:a.startLineNumber,endLineNumber:l,type:void 0,isCollapsed:!0,source:1}),i.setSelection({startLineNumber:a.startLineNumber,startColumn:1,endLineNumber:a.startLineNumber,endColumn:1}))}if(s.length>0){s.sort((l,d)=>l.startLineNumber-d.startLineNumber);const a=xo.sanitizeAndMerge(t.regions,s,(n=i.getModel())===null||n===void 0?void 0:n.getLineCount());t.updatePost(xo.fromFoldRanges(a))}}}}class Sbe extends rs{constructor(){super({id:"editor.removeManualFoldingRanges",label:m("removeManualFoldingRanges.label","Remove Manual Folding Ranges"),alias:"Remove Manual Folding Ranges",precondition:Gn,kbOpts:{kbExpr:E.editorTextFocus,primary:Ki(2089,2137),weight:100}})}invoke(e,t,i){const n=i.getSelections();if(n){const s=[];for(const r of n){const{startLineNumber:a,endLineNumber:l}=r;s.push(l>=a?{startLineNumber:a,endLineNumber:l}:{endLineNumber:l,startLineNumber:a})}t.removeManualRanges(s),e.triggerFoldingModelChanged()}}}vt(oc.ID,oc,0);J(rbe);J(abe);J(lbe);J(cbe);J(pbe);J(_be);J(hbe);J(ube);J(gbe);J(fbe);J(mbe);J(dbe);J(vbe);J(bbe);J(Cbe);J(wbe);J(Sbe);for(let o=1;o<=7;o++)HG(new Ag({id:Ag.ID(o),label:m("foldLevelAction.label","Fold Level {0}",o),alias:`Fold Level ${o}`,precondition:Gn,kbOpts:{kbExpr:E.editorTextFocus,primary:Ki(2089,2048|21+o),weight:100}}));ct.registerCommand("_executeFoldingRangeProvider",async function(o,...e){const[t]=e;if(!(t instanceof ke))throw or();const i=o.get(me),n=o.get(ai).getModel(t);if(!n)throw or();const s=o.get(Je);if(!s.getValue("editor.folding",{resource:t}))return[];const r=o.get($t),a=s.getValue("editor.foldingStrategy",{resource:t}),l={get limit(){return s.getValue("editor.foldingMaximumRegions",{resource:t})},update:(g,f)=>{}},d=new jP(n,r,l);let c=d;if(a!=="indentation"){const g=oc.getFoldingRangeProviders(i,n);g.length&&(c=new qP(n,g,()=>{},l,d))}const h=await c.compute(st.None),u=[];try{if(h)for(let g=0;g=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Nv=function(o,e){return function(t,i){e(t,i,o)}};let e0=class{constructor(e,t,i,n){this._editor=e,this._languageFeaturesService=t,this._workerService=i,this._accessibilitySignalService=n,this._disposables=new G,this._sessionDisposables=new G,this._disposables.add(t.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(e.onDidChangeModel(()=>this._update())),this._disposables.add(e.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(e.onDidChangeConfiguration(s=>{s.hasChanged(56)&&this._update()})),this._update()}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(56)||!this._editor.hasModel())return;const e=this._editor.getModel(),[t]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;const i=new eS;for(const n of t.autoFormatTriggerCharacters)i.add(n.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType(n=>{const s=n.charCodeAt(n.length-1);i.has(s)&&this._trigger(String.fromCharCode(s))}))}_trigger(e){if(!this._editor.hasModel()||this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;const t=this._editor.getModel(),i=this._editor.getPosition(),n=new ci,s=this._editor.onDidChangeModelContent(r=>{if(r.isFlush){n.cancel(),s.dispose();return}for(let a=0,l=r.changes.length;a{n.token.isCancellationRequested||jn(r)&&(this._accessibilitySignalService.playSignal(Be.format,{userGesture:!1}),gp.execute(this._editor,r,!0))}).finally(()=>{s.dispose()})}};e0.ID="editor.contrib.autoFormat";e0=wU([Nv(1,me),Nv(2,pr),Nv(3,Qh)],e0);let t0=class{constructor(e,t,i){this.editor=e,this._languageFeaturesService=t,this._instantiationService=i,this._callOnDispose=new G,this._callOnModel=new G,this._callOnDispose.add(e.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(e.onDidChangeModel(()=>this._update())),this._callOnDispose.add(e.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(t.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(55)&&this.editor.hasModel()&&this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste(({range:e})=>this._trigger(e)))}_trigger(e){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(lV,this.editor,e,2,$d.None,st.None,!1).catch(ze))}};t0.ID="editor.contrib.formatOnPaste";t0=wU([Nv(1,me),Nv(2,Le)],t0);class Dbe extends ce{constructor(){super({id:"editor.action.formatDocument",label:m("formatDocument.label","Format Document"),alias:"Format Document",precondition:K.and(E.notInCompositeEditor,E.writable,E.hasDocumentFormattingProvider),kbOpts:{kbExpr:E.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}async run(e,t){if(t.hasModel()){const i=e.get(Le);await e.get(Zh).showWhile(i.invokeFunction(Qge,t,1,$d.None,st.None,!0),250)}}}class kbe extends ce{constructor(){super({id:"editor.action.formatSelection",label:m("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:K.and(E.writable,E.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:E.editorTextFocus,primary:Ki(2089,2084),weight:100},contextMenuOpts:{when:E.hasNonEmptySelection,group:"1_modification",order:1.31}})}async run(e,t){if(!t.hasModel())return;const i=e.get(Le),n=t.getModel(),s=t.getSelections().map(a=>a.isEmpty()?new x(a.startLineNumber,1,a.startLineNumber,n.getLineMaxColumn(a.startLineNumber)):a);await e.get(Zh).showWhile(i.invokeFunction(lV,t,s,1,$d.None,st.None,!0),250)}}vt(e0.ID,e0,2);vt(t0.ID,t0,2);J(Dbe);J(kbe);ct.registerCommand("editor.action.format",async o=>{const e=o.get(_t).getFocusedCodeEditor();if(!e||!e.hasModel())return;const t=o.get(Qt);e.getSelection().isEmpty()?await t.executeCommand("editor.action.formatDocument"):await t.executeCommand("editor.action.formatSelection")});var Ibe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Xk=function(o,e){return function(t,i){e(t,i,o)}};class om{remove(){var e;(e=this.parent)===null||e===void 0||e.children.delete(this.id)}static findId(e,t){let i;typeof e=="string"?i=`${t.id}/${e}`:(i=`${t.id}/${e.name}`,t.children.get(i)!==void 0&&(i=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let n=i;for(let s=0;t.children.get(n)!==void 0;s++)n=`${i}_${s}`;return n}static empty(e){return e.children.size===0}}class HM extends om{constructor(e,t,i){super(),this.id=e,this.parent=t,this.symbol=i,this.children=new Map}}class SU extends om{constructor(e,t,i,n){super(),this.id=e,this.parent=t,this.label=i,this.order=n,this.children=new Map}}class md extends om{static create(e,t,i){const n=new ci(i),s=new md(t.uri),r=e.ordered(t),a=r.map((d,c)=>{var h;const u=om.findId(`provider_${c}`,s),g=new SU(u,s,(h=d.displayName)!==null&&h!==void 0?h:"Unknown Outline Provider",c);return Promise.resolve(d.provideDocumentSymbols(t,n.token)).then(f=>{for(const p of f||[])md._makeOutlineElement(p,g);return g},f=>(yi(f),g)).then(f=>{om.empty(f)?f.remove():s._groups.set(u,f)})}),l=e.onDidChange(()=>{const d=e.ordered(t);di(d,r)||n.cancel()});return Promise.all(a).then(()=>n.token.isCancellationRequested&&!i.isCancellationRequested?md.create(e,t,i):s._compact()).finally(()=>{n.dispose(),l.dispose(),n.dispose()})}static _makeOutlineElement(e,t){const i=om.findId(e,t),n=new HM(i,t,e);if(e.children)for(const s of e.children)md._makeOutlineElement(s,n);t.children.set(n.id,n)}constructor(e){super(),this.uri=e,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}_compact(){let e=0;for(const[t,i]of this._groups)i.children.size===0?this._groups.delete(t):e+=1;if(e!==1)this.children=this._groups;else{const t=dt.first(this._groups.values());for(const[,i]of t.children)i.parent=this,this.children.set(i.id,i)}return this}getTopLevelSymbols(){const e=[];for(const t of this.children.values())t instanceof HM?e.push(t.symbol):e.push(...dt.map(t.children.values(),i=>i.symbol));return e.sort((t,i)=>x.compareRangesUsingStarts(t.range,i.range))}asListOfDocumentSymbols(){const e=this.getTopLevelSymbols(),t=[];return md._flattenDocumentSymbols(t,e,""),t.sort((i,n)=>F.compare(x.getStartPosition(i.range),x.getStartPosition(n.range))||F.compare(x.getEndPosition(n.range),x.getEndPosition(i.range)))}static _flattenDocumentSymbols(e,t,i){for(const n of t)e.push({kind:n.kind,tags:n.tags,name:n.name,detail:n.detail,containerName:n.containerName||i,range:n.range,selectionRange:n.selectionRange,children:void 0}),n.children&&md._flattenDocumentSymbols(e,n.children,n.name)}}const uC=ot("IOutlineModelService");let VM=class{constructor(e,t,i){this._languageFeaturesService=e,this._disposables=new G,this._cache=new ql(10,.7),this._debounceInformation=t.for(e.documentSymbolProvider,"DocumentSymbols",{min:350}),this._disposables.add(i.onModelRemoved(n=>{this._cache.delete(n.id)}))}dispose(){this._disposables.dispose()}async getOrCreate(e,t){const i=this._languageFeaturesService.documentSymbolProvider,n=i.ordered(e);let s=this._cache.get(e.id);if(!s||s.versionId!==e.getVersionId()||!di(s.provider,n)){const a=new ci;s={versionId:e.getVersionId(),provider:n,promiseCnt:0,source:a,promise:md.create(i,e,a.token),model:void 0},this._cache.set(e.id,s);const l=Date.now();s.promise.then(d=>{s.model=d,this._debounceInformation.update(e,Date.now()-l)}).catch(d=>{this._cache.delete(e.id)})}if(s.model)return s.model;s.promiseCnt+=1;const r=t.onCancellationRequested(()=>{--s.promiseCnt===0&&(s.source.cancel(),this._cache.delete(e.id))});try{return await s.promise}finally{r.dispose()}}};VM=Ibe([Xk(0,me),Xk(1,fr),Xk(2,ai)],VM);ht(uC,VM,1);ct.registerCommand("_executeDocumentSymbolProvider",async function(o,...e){const[t]=e;pt(ke.isUri(t));const i=o.get(uC),s=await o.get(Gs).createModelReference(t);try{return(await i.getOrCreate(s.object.textEditorModel,st.None)).getTopLevelSymbols()}finally{s.dispose()}});class pn extends W{constructor(e,t){super(),this.contextKeyService=e,this.model=t,this.inlineCompletionVisible=pn.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=pn.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=pn.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService),this.suppressSuggestions=pn.suppressSuggestions.bindTo(this.contextKeyService),this._register(Xe(i=>{const n=this.model.read(i),s=n==null?void 0:n.state.read(i),r=!!(s!=null&&s.inlineCompletion)&&(s==null?void 0:s.primaryGhostText)!==void 0&&!(s!=null&&s.primaryGhostText.isEmpty());this.inlineCompletionVisible.set(r),s!=null&&s.primaryGhostText&&(s!=null&&s.inlineCompletion)&&this.suppressSuggestions.set(s.inlineCompletion.inlineCompletion.source.inlineCompletions.suppressSuggestions)})),this._register(Xe(i=>{const n=this.model.read(i);let s=!1,r=!0;const a=n==null?void 0:n.primaryGhostText.read(i);if(n!=null&&n.selectedSuggestItem&&a&&a.parts.length>0){const{column:l,lines:d}=a.parts[0],c=d[0],h=n.textModel.getLineIndentColumn(a.lineNumber);if(l<=h){let g=ss(c);g===-1&&(g=c.length-1),s=g>0;const f=n.textModel.getOptions().tabSize;r=Yi.visibleColumnFromColumn(c,g+1,f)t.equals(e.parts[i]))}renderForScreenReader(e){if(this.parts.length===0)return"";const t=this.parts[this.parts.length-1],i=e.substr(0,t.column-1);return new EA([...this.parts.map(s=>new tc(x.fromPositions(new F(1,s.column)),s.lines.join(` +`)))]).applyToString(i).substring(this.parts[0].column-1)}isEmpty(){return this.parts.every(e=>e.lines.length===0)}get lineCount(){return 1+this.parts.reduce((e,t)=>e+t.lines.length-1,0)}}class ky{constructor(e,t,i){this.column=e,this.text=t,this.preview=i,this.lines=$l(this.text)}equals(e){return this.column===e.column&&this.lines.length===e.lines.length&&this.lines.every((t,i)=>t===e.lines[i])}}class zM{constructor(e,t,i,n=0){this.lineNumber=e,this.columnRange=t,this.text=i,this.additionalReservedLineCount=n,this.parts=[new ky(this.columnRange.endColumnExclusive,this.text,!1)],this.newLines=$l(this.text)}renderForScreenReader(e){return this.newLines.join(` +`)}get lineCount(){return this.newLines.length}isEmpty(){return this.parts.every(e=>e.lines.length===0)}equals(e){return this.lineNumber===e.lineNumber&&this.columnRange.equals(e.columnRange)&&this.newLines.length===e.newLines.length&&this.newLines.every((t,i)=>t===e.newLines[i])&&this.additionalReservedLineCount===e.additionalReservedLineCount}}function jB(o,e){return di(o,e,yU)}function yU(o,e){return o===e?!0:!o||!e?!1:o instanceof i0&&e instanceof i0||o instanceof zM&&e instanceof zM?o.equals(e):!1}const Ebe=[];function Nbe(){return Ebe}class LU{constructor(e,t){if(this.startColumn=e,this.endColumnExclusive=t,e>t)throw new Tt(`startColumn ${e} cannot be after endColumnExclusive ${t}`)}toRange(e){return new x(e,this.startColumn,e,this.endColumnExclusive)}equals(e){return this.startColumn===e.startColumn&&this.endColumnExclusive===e.endColumnExclusive}}function xU(o,e){const t=new G,i=o.createDecorationsCollection();return t.add(BL({debugName:()=>`Apply decorations from ${e.debugName}`},n=>{const s=e.read(n);i.set(s)})),t.add({dispose:()=>{i.clear()}}),t}function Tbe(o,e){return new F(o.lineNumber+e.lineNumber-1,e.lineNumber===1?o.column+e.column-1:e.column)}function KB(o,e){return new F(o.lineNumber-e.lineNumber+1,o.lineNumber-e.lineNumber===0?o.column-e.column+1:o.column)}var Mbe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Rbe=function(o,e){return function(t,i){e(t,i,o)}};const qB="ghost-text";let UM=class extends W{constructor(e,t,i){super(),this.editor=e,this.model=t,this.languageService=i,this.isDisposed=ut(this,!1),this.currentTextModel=Nt(this.editor.onDidChangeModel,()=>this.editor.getModel()),this.uiState=He(this,n=>{if(this.isDisposed.read(n))return;const s=this.currentTextModel.read(n);if(s!==this.model.targetTextModel.read(n))return;const r=this.model.ghostText.read(n);if(!r)return;const a=r instanceof zM?r.columnRange:void 0,l=[],d=[];function c(p,_){if(d.length>0){const v=d[d.length-1];_&&v.decorations.push(new ws(v.content.length+1,v.content.length+1+p[0].length,_,0)),v.content+=p[0],p=p.slice(1)}for(const v of p)d.push({content:v,decorations:_?[new ws(1,v.length+1,_,0)]:[]})}const h=s.getLineContent(r.lineNumber);let u,g=0;for(const p of r.parts){let _=p.lines;u===void 0?(l.push({column:p.column,text:_[0],preview:p.preview}),_=_.slice(1)):c([h.substring(g,p.column-1)],void 0),_.length>0&&(c(_,qB),u===void 0&&p.column<=h.length&&(u=p.column)),g=p.column-1}u!==void 0&&c([h.substring(g)],void 0);const f=u!==void 0?new LU(u,h.length+1):void 0;return{replacedRange:a,inlineTexts:l,additionalLines:d,hiddenRange:f,lineNumber:r.lineNumber,additionalReservedLineCount:this.model.minReservedLineCount.read(n),targetTextModel:s}}),this.decorations=He(this,n=>{const s=this.uiState.read(n);if(!s)return[];const r=[];s.replacedRange&&r.push({range:s.replacedRange.toRange(s.lineNumber),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}),s.hiddenRange&&r.push({range:s.hiddenRange.toRange(s.lineNumber),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}});for(const a of s.inlineTexts)r.push({range:x.fromPositions(new F(s.lineNumber,a.column)),options:{description:qB,after:{content:a.text,inlineClassName:a.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:Ar.Left},showIfCollapsed:!0}});return r}),this.additionalLinesWidget=this._register(new DU(this.editor,this.languageService.languageIdCodec,He(n=>{const s=this.uiState.read(n);return s?{lineNumber:s.lineNumber,additionalLines:s.additionalLines,minReservedLineCount:s.additionalReservedLineCount,targetTextModel:s.targetTextModel}:void 0}))),this._register(Ce(()=>{this.isDisposed.set(!0,void 0)})),this._register(xU(this.editor,this.decorations))}ownsViewZone(e){return this.additionalLinesWidget.viewZoneId===e}};UM=Mbe([Rbe(2,si)],UM);class DU extends W{get viewZoneId(){return this._viewZoneId}constructor(e,t,i){super(),this.editor=e,this.languageIdCodec=t,this.lines=i,this._viewZoneId=void 0,this.editorOptionsChanged=$n("editorOptionChanged",ae.filter(this.editor.onDidChangeConfiguration,n=>n.hasChanged(33)||n.hasChanged(117)||n.hasChanged(99)||n.hasChanged(94)||n.hasChanged(51)||n.hasChanged(50)||n.hasChanged(67))),this._register(Xe(n=>{const s=this.lines.read(n);this.editorOptionsChanged.read(n),s?this.updateLines(s.lineNumber,s.additionalLines,s.minReservedLineCount):this.clear()}))}dispose(){super.dispose(),this.clear()}clear(){this.editor.changeViewZones(e=>{this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0)})}updateLines(e,t,i){const n=this.editor.getModel();if(!n)return;const{tabSize:s}=n.getOptions();this.editor.changeViewZones(r=>{this._viewZoneId&&(r.removeZone(this._viewZoneId),this._viewZoneId=void 0);const a=Math.max(t.length,i);if(a>0){const l=document.createElement("div");Abe(l,s,t,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=r.addZone({afterLineNumber:e,heightInLines:a,domNode:l,afterColumnAffinity:1})}})}}function Abe(o,e,t,i,n){const s=i.get(33),r=i.get(117),a="none",l=i.get(94),d=i.get(51),c=i.get(50),h=i.get(67),u=new Tp(1e4);u.appendString('
    ');for(let p=0,_=t.length;p<_;p++){const v=t[p],b=v.content;u.appendString('
    ');const C=L0(b),w=Bm(b),S=Vi.createEmpty(b,n);M0(new Kh(c.isMonospace&&!s,c.canUseHalfwidthRightwardsArrow,b,!1,C,w,0,S,v.decorations,e,0,c.spaceWidth,c.middotWidth,c.wsmiddotWidth,r,a,l,d!==ko.OFF,null),u),u.appendString("
    ")}u.appendString("
    "),kn(o,c);const g=u.build(),f=GB?GB.createHTML(g):g;o.innerHTML=f}const GB=lc("editorGhostText",{createHTML:o=>o});function Pbe(o,e){const t=new T8,i=new R8(t,d=>e.getLanguageConfiguration(d)),n=new M8(new Obe([o]),i),s=lN(n,[],void 0,!0);let r="";const a=o.getLineContent();function l(d,c){if(d.kind===2)if(l(d.openingBracket,c),c=mi(c,d.openingBracket.length),d.child&&(l(d.child,c),c=mi(c,d.child.length)),d.closingBracket)l(d.closingBracket,c),c=mi(c,d.closingBracket.length);else{const u=i.getSingleLanguageBracketTokens(d.openingBracket.languageId).findClosingTokenText(d.openingBracket.bracketIds);r+=u}else if(d.kind!==3){if(d.kind===0||d.kind===1)r+=a.substring(c,mi(c,d.length));else if(d.kind===4)for(const h of d.children)l(h,c),c=mi(c,h.length)}}return l(s,Ss),r}class Obe{constructor(e){this.lines=e,this.tokenization={getLineTokens:t=>this.lines[t-1]}}getLineCount(){return this.lines.length}getLineLength(e){return this.lines[e-1].getLineContent().length}}async function Fbe(o,e,t,i,n=st.None,s){const r=Hbe(e,t),a=o.all(t),l=new LA;for(const v of a)v.groupId&&l.add(v.groupId,v);function d(v){if(!v.yieldsToGroupIds)return[];const b=[];for(const C of v.yieldsToGroupIds||[]){const w=l.get(C);for(const S of w)b.push(S)}return b}const c=new Map,h=new Set;function u(v,b){if(b=[...b,v],h.has(v))return b;h.add(v);try{const C=d(v);for(const w of C){const S=u(w,b);if(S)return S}}finally{h.delete(v)}}function g(v){const b=c.get(v);if(b)return b;const C=u(v,[]);C&&yi(new Error(`Inline completions: cyclic yield-to dependency detected. Path: ${C.map(S=>S.toString?S.toString():""+S).join(" -> ")}`));const w=new k0;return c.set(v,w.p),(async()=>{if(!C){const S=d(v);for(const L of S){const D=await g(L);if(D&&D.items.length>0)return}}try{return await v.provideInlineCompletions(t,e,i,n)}catch(S){yi(S);return}})().then(S=>w.complete(S),S=>w.error(S)),w.p}const f=await Promise.all(a.map(async v=>({provider:v,completions:await g(v)}))),p=new Map,_=[];for(const v of f){const b=v.completions;if(!b)continue;const C=new Wbe(b,v.provider);_.push(C);for(const w of b.items){const S=Iy.from(w,C,r,t,s);p.set(S.hash(),S)}}return new Bbe(Array.from(p.values()),new Set(p.keys()),_)}class Bbe{constructor(e,t,i){this.completions=e,this.hashs=t,this.providerResults=i}has(e){return this.hashs.has(e.hash())}dispose(){for(const e of this.providerResults)e.removeRef()}}class Wbe{constructor(e,t){this.inlineCompletions=e,this.provider=t,this.refCount=1}addRef(){this.refCount++}removeRef(){this.refCount--,this.refCount===0&&this.provider.freeInlineCompletions(this.inlineCompletions)}}class Iy{static from(e,t,i,n,s){let r,a,l=e.range?x.lift(e.range):i;if(typeof e.insertText=="string"){if(r=e.insertText,s&&e.completeBracketPairs){r=ZB(r,l.getStartPosition(),n,s);const d=r.length-e.insertText.length;d!==0&&(l=new x(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn+d))}a=void 0}else if("snippet"in e.insertText){const d=e.insertText.snippet.length;if(s&&e.completeBracketPairs){e.insertText.snippet=ZB(e.insertText.snippet,l.getStartPosition(),n,s);const h=e.insertText.snippet.length-d;h!==0&&(l=new x(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn+h))}const c=new kg().parse(e.insertText.snippet);c.children.length===1&&c.children[0]instanceof ms?(r=c.children[0].value,a=void 0):(r=c.toString(),a={snippet:e.insertText.snippet,range:l})}else oL(e.insertText);return new Iy(r,e.command,l,r,a,e.additionalTextEdits||Nbe(),e,t)}constructor(e,t,i,n,s,r,a,l){this.filterText=e,this.command=t,this.range=i,this.insertText=n,this.snippetInfo=s,this.additionalTextEdits=r,this.sourceInlineCompletion=a,this.source=l,e=e.replace(/\r\n|\r/g,` +`),n=e.replace(/\r\n|\r/g,` +`)}withRange(e){return new Iy(this.filterText,this.command,e,this.insertText,this.snippetInfo,this.additionalTextEdits,this.sourceInlineCompletion,this.source)}hash(){return JSON.stringify({insertText:this.insertText,range:this.range.toString()})}}function Hbe(o,e){const t=e.getWordAtPosition(o),i=e.getLineMaxColumn(o.lineNumber);return t?new x(o.lineNumber,t.startColumn,o.lineNumber,i):x.fromPositions(o,o.with(void 0,i))}function ZB(o,e,t,i){const s=t.getLineContent(e.lineNumber).substring(0,e.column-1)+o,r=t.tokenization.tokenizeLineWithEdit(e,s.length-(e.column-1),o),a=r==null?void 0:r.sliceAndInflate(e.column-1,s.length,0);return a?Pbe(a,i):o}function ag(o,e,t){const i=t?o.range.intersectRanges(t):o.range;if(!i)return o;const n=e.getValueInRange(i,1),s=Ch(n,o.text),r=Cs.ofText(n.substring(0,s)).addToPosition(o.range.getStartPosition()),a=o.text.substring(s),l=x.fromPositions(r,o.range.getEndPosition());return new tc(l,a)}function kU(o,e){return o.text.startsWith(e.text)&&Vbe(o.range,e.range)}function YB(o,e,t,i,n=0){let s=ag(o,e);if(s.range.endLineNumber!==s.range.startLineNumber)return;const r=e.getLineContent(s.range.startLineNumber),a=Bt(r).length;if(s.range.startColumn-1<=a){const f=Bt(s.text).length,p=r.substring(s.range.startColumn-1,a),[_,v]=[s.range.getStartPosition(),s.range.getEndPosition()],b=_.column+p.length<=v.column?_.delta(0,p.length):v,C=x.fromPositions(b,v),w=s.text.startsWith(p)?s.text.substring(p.length):s.text.substring(f);s=new tc(C,w)}const d=e.getValueInRange(s.range),c=zbe(d,s.text);if(!c)return;const h=s.range.startLineNumber,u=new Array;if(t==="prefix"){const f=c.filter(p=>p.originalLength===0);if(f.length>1||f.length===1&&f[0].originalStart!==d.length)return}const g=s.text.length-n;for(const f of c){const p=s.range.startColumn+f.originalStart+f.originalLength;if(t==="subwordSmart"&&i&&i.lineNumber===s.range.startLineNumber&&p0)return;if(f.modifiedLength===0)continue;const _=f.modifiedStart+f.modifiedLength,v=Math.max(f.modifiedStart,Math.min(_,g)),b=s.text.substring(f.modifiedStart,v),C=s.text.substring(v,Math.max(f.modifiedStart,_));b.length>0&&u.push(new ky(p,b,!1)),C.length>0&&u.push(new ky(p,C,!0))}return new i0(h,u)}function Vbe(o,e){return e.getStartPosition().equals(o.getStartPosition())&&e.getEndPosition().isBeforeOrEqual(o.getEndPosition())}let Ya;function zbe(o,e){if((Ya==null?void 0:Ya.originalValue)===o&&(Ya==null?void 0:Ya.newValue)===e)return Ya==null?void 0:Ya.changes;{let t=XB(o,e,!0);if(t){const i=QB(t);if(i>0){const n=XB(o,e,!1);n&&QB(n)5e3||e.length>5e3)return;function i(d){let c=0;for(let h=0,u=d.length;hc&&(c=g)}return c}const n=Math.max(i(o),i(e));function s(d){if(d<0)throw new Error("unexpected");return n+d+1}function r(d){let c=0,h=0;const u=new Int32Array(d.length);for(let g=0,f=d.length;ga},{getElements:()=>l}).ComputeDiff(!1).changes}var Ube=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},JB=function(o,e){return function(t,i){e(t,i,o)}};let $M=class extends W{constructor(e,t,i,n,s){super(),this.textModel=e,this.versionId=t,this._debounceValue=i,this.languageFeaturesService=n,this.languageConfigurationService=s,this._updateOperation=this._register(new ln),this.inlineCompletions=kb("inlineCompletions",void 0),this.suggestWidgetInlineCompletions=kb("suggestWidgetInlineCompletions",void 0),this._register(this.textModel.onDidChangeContent(()=>{this._updateOperation.clear()}))}fetch(e,t,i){var n,s;const r=new jbe(e,t,this.textModel.getVersionId()),a=t.selectedSuggestionInfo?this.suggestWidgetInlineCompletions:this.inlineCompletions;if(!((n=this._updateOperation.value)===null||n===void 0)&&n.request.satisfies(r))return this._updateOperation.value.promise;if(!((s=a.get())===null||s===void 0)&&s.request.satisfies(r))return Promise.resolve(!0);const l=!!this._updateOperation.value;this._updateOperation.clear();const d=new ci,c=(async()=>{if((l||t.triggerKind===Hd.Automatic)&&await $be(this._debounceValue.get(this.textModel),d.token),d.token.isCancellationRequested||this.textModel.getVersionId()!==r.versionId)return!1;const g=new Date,f=await Fbe(this.languageFeaturesService.inlineCompletionsProvider,e,this.textModel,t,d.token,this.languageConfigurationService);if(d.token.isCancellationRequested||this.textModel.getVersionId()!==r.versionId)return!1;const p=new Date;this._debounceValue.update(this.textModel,p.getTime()-g.getTime());const _=new qbe(f,r,this.textModel,this.versionId);if(i){const v=i.toInlineCompletion(void 0);i.canBeReused(this.textModel,e)&&!f.has(v)&&_.prepend(i.inlineCompletion,v.range,!0)}return this._updateOperation.clear(),Wt(v=>{a.set(_,v)}),!0})(),h=new Kbe(r,d,c);return this._updateOperation.value=h,c}clear(e){this._updateOperation.clear(),this.inlineCompletions.set(void 0,e),this.suggestWidgetInlineCompletions.set(void 0,e)}clearSuggestWidgetInlineCompletions(e){var t;!((t=this._updateOperation.value)===null||t===void 0)&&t.request.context.selectedSuggestionInfo&&this._updateOperation.clear(),this.suggestWidgetInlineCompletions.set(void 0,e)}cancelUpdate(){this._updateOperation.clear()}};$M=Ube([JB(3,me),JB(4,$t)],$M);function $be(o,e){return new Promise(t=>{let i;const n=setTimeout(()=>{i&&i.dispose(),t()},o);e&&(i=e.onCancellationRequested(()=>{clearTimeout(n),i&&i.dispose(),t()}))})}class jbe{constructor(e,t,i){this.position=e,this.context=t,this.versionId=i}satisfies(e){return this.position.equals(e.position)&&xae(this.context.selectedSuggestionInfo,e.context.selectedSuggestionInfo,A6())&&(e.context.triggerKind===Hd.Automatic||this.context.triggerKind===Hd.Explicit)&&this.versionId===e.versionId}}class Kbe{constructor(e,t,i){this.request=e,this.cancellationTokenSource=t,this.promise=i}dispose(){this.cancellationTokenSource.cancel()}}class qbe{get inlineCompletions(){return this._inlineCompletions}constructor(e,t,i,n){this.inlineCompletionProviderResult=e,this.request=t,this._textModel=i,this._versionId=n,this._refCount=1,this._prependedInlineCompletionItems=[];const s=i.deltaDecorations([],e.completions.map(r=>({range:r.range,options:{description:"inline-completion-tracking-range"}})));this._inlineCompletions=e.completions.map((r,a)=>new e7(r,s[a],this._textModel,this._versionId))}clone(){return this._refCount++,this}dispose(){if(this._refCount--,this._refCount===0){setTimeout(()=>{this._textModel.isDisposed()||this._textModel.deltaDecorations(this._inlineCompletions.map(e=>e.decorationId),[])},0),this.inlineCompletionProviderResult.dispose();for(const e of this._prependedInlineCompletionItems)e.source.removeRef()}}prepend(e,t,i){i&&e.source.addRef();const n=this._textModel.deltaDecorations([],[{range:t,options:{description:"inline-completion-tracking-range"}}])[0];this._inlineCompletions.unshift(new e7(e,n,this._textModel,this._versionId)),this._prependedInlineCompletionItems.push(e)}}class e7{get forwardStable(){var e;return(e=this.inlineCompletion.source.inlineCompletions.enableForwardStability)!==null&&e!==void 0?e:!1}constructor(e,t,i,n){this.inlineCompletion=e,this.decorationId=t,this._textModel=i,this._modelVersion=n,this.semanticId=JSON.stringify([this.inlineCompletion.filterText,this.inlineCompletion.insertText,this.inlineCompletion.range.getStartPosition().toString()]),this._updatedRange=wd({owner:this,equalsFn:x.equalsRange},s=>(this._modelVersion.read(s),this._textModel.getDecorationRange(this.decorationId)))}toInlineCompletion(e){var t;return this.inlineCompletion.withRange((t=this._updatedRange.read(e))!==null&&t!==void 0?t:Jk)}toSingleTextEdit(e){var t;return new tc((t=this._updatedRange.read(e))!==null&&t!==void 0?t:Jk,this.inlineCompletion.insertText)}isVisible(e,t,i){const n=ag(this._toFilterTextReplacement(i),e),s=this._updatedRange.read(i);if(!s||!this.inlineCompletion.range.getStartPosition().equals(s.getStartPosition())||t.lineNumber!==n.range.startLineNumber)return!1;const r=e.getValueInRange(n.range,1),a=n.text,l=Math.max(0,t.column-n.range.startColumn);let d=a.substring(0,l),c=a.substring(l),h=r.substring(0,l),u=r.substring(l);const g=e.getLineIndentColumn(n.range.startLineNumber);return n.range.startColumn<=g&&(h=h.trimStart(),h.length===0&&(u=u.trimStart()),d=d.trimStart(),d.length===0&&(c=c.trimStart())),d.startsWith(h)&&!!_6(u,c)}canBeReused(e,t){const i=this._updatedRange.read(void 0);return!!i&&i.containsPosition(t)&&this.isVisible(e,t,void 0)&&Cs.ofRange(i).isGreaterThanOrEqualTo(Cs.ofRange(this.inlineCompletion.range))}_toFilterTextReplacement(e){var t;return new tc((t=this._updatedRange.read(e))!==null&&t!==void 0?t:Jk,this.inlineCompletion.filterText)}}const Jk=new x(1,1,1,1),Qe={Visible:VP,HasFocusedSuggestion:new de("suggestWidgetHasFocusedSuggestion",!1,m("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new de("suggestWidgetDetailsVisible",!1,m("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new de("suggestWidgetMultipleSuggestions",!1,m("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new de("suggestionMakesTextEdit",!0,m("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new de("acceptSuggestionOnEnter",!0,m("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new de("suggestionHasInsertAndReplaceRange",!1,m("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new de("suggestionInsertMode",void 0,{type:"string",description:m("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new de("suggestionCanResolve",!1,m("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},fh=new k("suggestWidgetStatusBar");class Gbe{constructor(e,t,i,n){var s;this.position=e,this.completion=t,this.container=i,this.provider=n,this.isInvalid=!1,this.score=ya.Default,this.distance=0,this.textLabel=typeof t.label=="string"?t.label:(s=t.label)===null||s===void 0?void 0:s.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,x.isIRange(t.range)?(this.editStart=new F(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new F(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new F(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||x.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new F(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new F(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new F(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||x.spansMultipleLines(t.range.insert)||x.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),typeof n.resolveCompletionItem!="function"&&(this._resolveCache=Promise.resolve(),this._resolveDuration=0)}get isResolved(){return this._resolveDuration!==void 0}get resolveDuration(){return this._resolveDuration!==void 0?this._resolveDuration:-1}async resolve(e){if(!this._resolveCache){const t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._resolveDuration=void 0}),i=new In(!0);this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(n=>{Object.assign(this.completion,n),this._resolveDuration=i.elapsed()},n=>{Ur(n)&&(this._resolveCache=void 0,this._resolveDuration=void 0)}).finally(()=>{t.dispose()})}return this._resolveCache}}class n0{constructor(e=2,t=new Set,i=new Set,n=new Map,s=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.providerItemsToReuse=n,this.showDeprecated=s}}n0.default=new n0;let Zbe;function Ybe(){return Zbe}class Qbe{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}async function GP(o,e,t,i=n0.default,n={triggerKind:0},s=st.None){const r=new In;t=t.clone();const a=e.getWordAtPosition(t),l=a?new x(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn):x.fromPositions(t),d={replace:l,insert:l.setEndPosition(t.lineNumber,t.column)},c=[],h=new G,u=[];let g=!1;const f=(_,v,b)=>{var C,w,S;let L=!1;if(!v)return L;for(const D of v.suggestions)if(!i.kindFilter.has(D.kind)){if(!i.showDeprecated&&(!((C=D==null?void 0:D.tags)===null||C===void 0)&&C.includes(1)))continue;D.range||(D.range=d),D.sortText||(D.sortText=typeof D.label=="string"?D.label:D.label.label),!g&&D.insertTextRules&&D.insertTextRules&4&&(g=kg.guessNeedsClipboard(D.insertText)),c.push(new Gbe(t,D,v,_)),L=!0}return Vy(v)&&h.add(v),u.push({providerName:(w=_._debugDisplayName)!==null&&w!==void 0?w:"unknown_provider",elapsedProvider:(S=v.duration)!==null&&S!==void 0?S:-1,elapsedOverall:b.elapsed()}),L},p=(async()=>{})();for(const _ of o.orderedGroups(e)){let v=!1;if(await Promise.all(_.map(async b=>{if(i.providerItemsToReuse.has(b)){const C=i.providerItemsToReuse.get(b);C.forEach(w=>c.push(w)),v=v||C.length>0;return}if(!(i.providerFilter.size>0&&!i.providerFilter.has(b)))try{const C=new In,w=await b.provideCompletionItems(e,t,n,s);v=f(b,w,C)||v}catch(C){yi(C)}})),v||s.isCancellationRequested)break}return await p,s.isCancellationRequested?(h.dispose(),Promise.reject(new ka)):new Qbe(c.sort(e0e(i.snippetSortOrder)),g,{entries:u,elapsed:r.elapsed()},h)}function ZP(o,e){if(o.sortTextLow&&e.sortTextLow){if(o.sortTextLowe.sortTextLow)return 1}return o.textLabele.textLabel?1:o.completion.kind-e.completion.kind}function Xbe(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return-1;if(e.completion.kind===27)return 1}return ZP(o,e)}function Jbe(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return 1;if(e.completion.kind===27)return-1}return ZP(o,e)}const Nx=new Map;Nx.set(0,Xbe);Nx.set(2,Jbe);Nx.set(1,ZP);function e0e(o){return Nx.get(o)}ct.registerCommand("_executeCompletionItemProvider",async(o,...e)=>{const[t,i,n,s]=e;pt(ke.isUri(t)),pt(F.isIPosition(i)),pt(typeof n=="string"||!n),pt(typeof s=="number"||!s);const{completionProvider:r}=o.get(me),a=await o.get(Gs).createModelReference(t);try{const l={incomplete:!1,suggestions:[]},d=[],c=a.object.textEditorModel.validatePosition(i),h=await GP(r,a.object.textEditorModel,c,void 0,{triggerCharacter:n??void 0,triggerKind:n?1:0});for(const u of h.items)d.length<(s??0)&&d.push(u.resolve(st.None)),l.incomplete=l.incomplete||u.container.incomplete,l.suggestions.push(u.completion);try{return await Promise.all(d),l}finally{setTimeout(()=>h.disposable.dispose(),100)}}finally{a.dispose()}});function t0e(o,e){var t;(t=o.getContribution("editor.contrib.suggestController"))===null||t===void 0||t.triggerSuggest(new Set().add(e),void 0,!0)}class rm{static isAllOff(e){return e.other==="off"&&e.comments==="off"&&e.strings==="off"}static isAllOn(e){return e.other==="on"&&e.comments==="on"&&e.strings==="on"}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}function t7(o,e=Fn){return Iie(o,e)?o.charAt(0).toUpperCase()+o.slice(1):o}var i0e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},n0e=function(o,e){return function(t,i){e(t,i,o)}};class i7{constructor(e){this._delegates=e}resolve(e){for(const t of this._delegates){const i=t.resolve(e);if(i!==void 0)return i}}}class n7{constructor(e,t,i,n){this._model=e,this._selection=t,this._selectionIdx=i,this._overtypingCapturer=n}resolve(e){const{name:t}=e;if(t==="SELECTION"||t==="TM_SELECTED_TEXT"){let i=this._model.getValueInRange(this._selection)||void 0,n=this._selection.startLineNumber!==this._selection.endLineNumber;if(!i&&this._overtypingCapturer){const s=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);s&&(i=s.value,n=s.multiline)}if(i&&n&&e.snippet){const s=this._model.getLineContent(this._selection.startLineNumber),r=Bt(s,0,this._selection.startColumn-1);let a=r;e.snippet.walk(d=>d===e?!1:(d instanceof ms&&(a=Bt($l(d.value).pop())),!0));const l=Ch(a,r);i=i.replace(/(\r\n|\r|\n)(.*)/g,(d,c,h)=>`${c}${a.substr(l)}${h}`)}return i}else{if(t==="TM_CURRENT_LINE")return this._model.getLineContent(this._selection.positionLineNumber);if(t==="TM_CURRENT_WORD"){const i=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return i&&i.word||void 0}else{if(t==="TM_LINE_INDEX")return String(this._selection.positionLineNumber-1);if(t==="TM_LINE_NUMBER")return String(this._selection.positionLineNumber);if(t==="CURSOR_INDEX")return String(this._selectionIdx);if(t==="CURSOR_NUMBER")return String(this._selectionIdx+1)}}}}class s7{constructor(e,t){this._labelService=e,this._model=t}resolve(e){const{name:t}=e;if(t==="TM_FILENAME")return oh(this._model.uri.fsPath);if(t==="TM_FILENAME_BASE"){const i=oh(this._model.uri.fsPath),n=i.lastIndexOf(".");return n<=0?i:i.slice(0,n)}else{if(t==="TM_DIRECTORY")return h9(this._model.uri.fsPath)==="."?"":this._labelService.getUriLabel(LL(this._model.uri));if(t==="TM_FILEPATH")return this._labelService.getUriLabel(this._model.uri);if(t==="RELATIVE_FILEPATH")return this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0})}}}class o7{constructor(e,t,i,n){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=i,this._spread=n}resolve(e){if(e.name!=="CLIPBOARD")return;const t=this._readClipboardText();if(t){if(this._spread){const i=t.split(/\r\n|\n|\r/).filter(n=>!b9(n));if(i.length===this._selectionCount)return i[this._selectionIdx]}return t}}}let Ey=class{constructor(e,t,i){this._model=e,this._selection=t,this._languageConfigurationService=i}resolve(e){const{name:t}=e,i=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),n=this._languageConfigurationService.getLanguageConfiguration(i).comments;if(n){if(t==="LINE_COMMENT")return n.lineCommentToken||void 0;if(t==="BLOCK_COMMENT_START")return n.blockCommentStartToken||void 0;if(t==="BLOCK_COMMENT_END")return n.blockCommentEndToken||void 0}}};Ey=i0e([n0e(2,$t)],Ey);class pa{constructor(){this._date=new Date}resolve(e){const{name:t}=e;if(t==="CURRENT_YEAR")return String(this._date.getFullYear());if(t==="CURRENT_YEAR_SHORT")return String(this._date.getFullYear()).slice(-2);if(t==="CURRENT_MONTH")return String(this._date.getMonth().valueOf()+1).padStart(2,"0");if(t==="CURRENT_DATE")return String(this._date.getDate().valueOf()).padStart(2,"0");if(t==="CURRENT_HOUR")return String(this._date.getHours().valueOf()).padStart(2,"0");if(t==="CURRENT_MINUTE")return String(this._date.getMinutes().valueOf()).padStart(2,"0");if(t==="CURRENT_SECOND")return String(this._date.getSeconds().valueOf()).padStart(2,"0");if(t==="CURRENT_DAY_NAME")return pa.dayNames[this._date.getDay()];if(t==="CURRENT_DAY_NAME_SHORT")return pa.dayNamesShort[this._date.getDay()];if(t==="CURRENT_MONTH_NAME")return pa.monthNames[this._date.getMonth()];if(t==="CURRENT_MONTH_NAME_SHORT")return pa.monthNamesShort[this._date.getMonth()];if(t==="CURRENT_SECONDS_UNIX")return String(Math.floor(this._date.getTime()/1e3));if(t==="CURRENT_TIMEZONE_OFFSET"){const i=this._date.getTimezoneOffset(),n=i>0?"-":"+",s=Math.trunc(Math.abs(i/60)),r=s<10?"0"+s:s,a=Math.abs(i)-s*60,l=a<10?"0"+a:a;return n+r+":"+l}}}pa.dayNames=[m("Sunday","Sunday"),m("Monday","Monday"),m("Tuesday","Tuesday"),m("Wednesday","Wednesday"),m("Thursday","Thursday"),m("Friday","Friday"),m("Saturday","Saturday")];pa.dayNamesShort=[m("SundayShort","Sun"),m("MondayShort","Mon"),m("TuesdayShort","Tue"),m("WednesdayShort","Wed"),m("ThursdayShort","Thu"),m("FridayShort","Fri"),m("SaturdayShort","Sat")];pa.monthNames=[m("January","January"),m("February","February"),m("March","March"),m("April","April"),m("May","May"),m("June","June"),m("July","July"),m("August","August"),m("September","September"),m("October","October"),m("November","November"),m("December","December")];pa.monthNamesShort=[m("JanuaryShort","Jan"),m("FebruaryShort","Feb"),m("MarchShort","Mar"),m("AprilShort","Apr"),m("MayShort","May"),m("JuneShort","Jun"),m("JulyShort","Jul"),m("AugustShort","Aug"),m("SeptemberShort","Sep"),m("OctoberShort","Oct"),m("NovemberShort","Nov"),m("DecemberShort","Dec")];class r7{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;const t=Jre(this._workspaceService.getWorkspace());if(!Yre(t)){if(e.name==="WORKSPACE_NAME")return this._resolveWorkspaceName(t);if(e.name==="WORKSPACE_FOLDER")return this._resoveWorkspacePath(t)}}_resolveWorkspaceName(e){if(VN(e))return oh(e.uri.path);let t=oh(e.configPath.path);return t.endsWith(zN)&&(t=t.substr(0,t.length-zN.length-1)),t}_resoveWorkspacePath(e){if(VN(e))return t7(e.uri.fsPath);const t=oh(e.configPath.path);let i=e.configPath.fsPath;return i.endsWith(t)&&(i=i.substr(0,i.length-t.length-1)),i?t7(i):"/"}}class a7{resolve(e){const{name:t}=e;if(t==="RANDOM")return Math.random().toString().slice(-6);if(t==="RANDOM_HEX")return Math.random().toString(16).slice(-6);if(t==="UUID")return hx()}}var s0e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},o0e=function(o,e){return function(t,i){e(t,i,o)}},ea;class Go{constructor(e,t,i){this._editor=e,this._snippet=t,this._snippetLineLeadingWhitespace=i,this._offset=-1,this._nestingLevel=1,this._placeholderGroups=vO(t.placeholders,Yo.compareByIndex),this._placeholderGroupsIdx=-1}initialize(e){this._offset=e.newPosition}dispose(){this._placeholderDecorations&&this._editor.removeDecorations([...this._placeholderDecorations.values()]),this._placeholderGroups.length=0}_initDecorations(){if(this._offset===-1)throw new Error("Snippet not initialized!");if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;const e=this._editor.getModel();this._editor.changeDecorations(t=>{for(const i of this._snippet.placeholders){const n=this._snippet.offset(i),s=this._snippet.fullLen(i),r=x.fromPositions(e.getPositionAt(this._offset+n),e.getPositionAt(this._offset+n+s)),a=i.isFinalTabstop?Go._decor.inactiveFinal:Go._decor.inactive,l=t.addDecoration(r,a);this._placeholderDecorations.set(i,l)}})}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){const n=[];for(const s of this._placeholderGroups[this._placeholderGroupsIdx])if(s.transform){const r=this._placeholderDecorations.get(s),a=this._editor.getModel().getDecorationRange(r),l=this._editor.getModel().getValueInRange(a),d=s.transform.resolve(l).split(/\r\n|\r|\n/);for(let c=1;c0&&this._editor.executeEdits("snippet.placeholderTransform",n)}let t=!1;e===!0&&this._placeholderGroupsIdx0&&(this._placeholderGroupsIdx-=1,t=!0);const i=this._editor.getModel().changeDecorations(n=>{const s=new Set,r=[];for(const a of this._placeholderGroups[this._placeholderGroupsIdx]){const l=this._placeholderDecorations.get(a),d=this._editor.getModel().getDecorationRange(l);r.push(new _e(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(a),n.changeDecorationOptions(l,a.isFinalTabstop?Go._decor.activeFinal:Go._decor.active),s.add(a);for(const c of this._snippet.enclosingPlaceholders(a)){const h=this._placeholderDecorations.get(c);n.changeDecorationOptions(h,c.isFinalTabstop?Go._decor.activeFinal:Go._decor.active),s.add(c)}}for(const[a,l]of this._placeholderDecorations)s.has(a)||n.changeDecorationOptions(l,a.isFinalTabstop?Go._decor.inactiveFinal:Go._decor.inactive);return r});return t?this.move(e):i??[]}_hasPlaceholderBeenCollapsed(e){let t=e;for(;t;){if(t instanceof Yo){const i=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(i).isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||this._placeholderGroups.length===0}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}get isTrivialSnippet(){if(this._snippet.placeholders.length===0)return!0;if(this._snippet.placeholders.length===1){const[e]=this._snippet.placeholders;if(e.isFinalTabstop&&this._snippet.rightMostDescendant===e)return!0}return!1}computePossibleSelections(){const e=new Map;for(const t of this._placeholderGroups){let i;for(const n of t){if(n.isFinalTabstop)break;i||(i=[],e.set(n.index,i));const s=this._placeholderDecorations.get(n),r=this._editor.getModel().getDecorationRange(s);if(!r){e.delete(n.index);break}i.push(r)}}return e}get activeChoice(){if(!this._placeholderDecorations)return;const e=this._placeholderGroups[this._placeholderGroupsIdx][0];if(!(e!=null&&e.choice))return;const t=this._placeholderDecorations.get(e);if(!t)return;const i=this._editor.getModel().getDecorationRange(t);if(i)return{range:i,choice:e.choice}}get hasChoice(){let e=!1;return this._snippet.walk(t=>(e=t instanceof Up,!e)),e}merge(e){const t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(i=>{for(const n of this._placeholderGroups[this._placeholderGroupsIdx]){const s=e.shift();console.assert(s._offset!==-1),console.assert(!s._placeholderDecorations);const r=s._snippet.placeholderInfo.last.index;for(const l of s._snippet.placeholderInfo.all)l.isFinalTabstop?l.index=n.index+(r+1)/this._nestingLevel:l.index=n.index+l.index/this._nestingLevel;this._snippet.replace(n,s._snippet.children);const a=this._placeholderDecorations.get(n);i.removeDecoration(a),this._placeholderDecorations.delete(n);for(const l of s._snippet.placeholders){const d=s._snippet.offset(l),c=s._snippet.fullLen(l),h=x.fromPositions(t.getPositionAt(s._offset+d),t.getPositionAt(s._offset+d+c)),u=i.addDecoration(h,Go._decor.inactive);this._placeholderDecorations.set(l,u)}}this._placeholderGroups=vO(this._snippet.placeholders,Yo.compareByIndex)})}}Go._decor={active:je.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:je.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:je.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:je.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})};const l7={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let Ny=ea=class{static adjustWhitespace(e,t,i,n,s){const r=e.getLineContent(t.lineNumber),a=Bt(r,0,t.column-1);let l;return n.walk(d=>{if(!(d instanceof ms)||d.parent instanceof Up||s&&!s.has(d))return!0;const c=d.value.split(/\r\n|\r|\n/);if(i){const u=n.offset(d);if(u===0)c[0]=e.normalizeIndentation(c[0]);else{l=l??n.toString();const g=l.charCodeAt(u-1);(g===10||g===13)&&(c[0]=e.normalizeIndentation(a+c[0]))}for(let g=1;gw.get(wg)),f=e.invokeWithinContext(w=>new s7(w.get(np),u)),p=()=>a,_=u.getValueInRange(ea.adjustSelection(u,e.getSelection(),i,0)),v=u.getValueInRange(ea.adjustSelection(u,e.getSelection(),0,n)),b=u.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber),C=e.getSelections().map((w,S)=>({selection:w,idx:S})).sort((w,S)=>x.compareRangesUsingStarts(w.selection,S.selection));for(const{selection:w,idx:S}of C){let L=ea.adjustSelection(u,w,i,0),D=ea.adjustSelection(u,w,0,n);_!==u.getValueInRange(L)&&(L=w),v!==u.getValueInRange(D)&&(D=w);const I=w.setStartPosition(L.startLineNumber,L.startColumn).setEndPosition(D.endLineNumber,D.endColumn),T=new kg().parse(t,!0,s),V=I.getStartPosition(),P=ea.adjustWhitespace(u,V,r||S>0&&b!==u.getLineFirstNonWhitespaceColumn(w.positionLineNumber),T);T.resolveVariables(new i7([f,new o7(p,S,C.length,e.getOption(79)==="spread"),new n7(u,w,S,l),new Ey(u,w,d),new pa,new r7(g),new a7])),c[S]=ri.replace(I,T.toString()),c[S].identifier={major:S,minor:0},c[S]._isTracked=!0,h[S]=new Go(e,T,P)}return{edits:c,snippets:h}}static createEditsAndSnippetsFromEdits(e,t,i,n,s,r,a){if(!e.hasModel()||t.length===0)return{edits:[],snippets:[]};const l=[],d=e.getModel(),c=new kg,h=new oC,u=new i7([e.invokeWithinContext(f=>new s7(f.get(np),d)),new o7(()=>s,0,e.getSelections().length,e.getOption(79)==="spread"),new n7(d,e.getSelection(),0,r),new Ey(d,e.getSelection(),a),new pa,new r7(e.invokeWithinContext(f=>f.get(wg))),new a7]);t=t.sort((f,p)=>x.compareRangesUsingStarts(f.range,p.range));let g=0;for(let f=0;f0){const S=t[f-1].range,L=x.fromPositions(S.getEndPosition(),p.getStartPosition()),D=new ms(d.getValueInRange(L));h.appendChild(D),g+=D.value.length}const v=c.parseFragment(_,h);ea.adjustWhitespace(d,p.getStartPosition(),!0,h,new Set(v)),h.resolveVariables(u);const b=h.toString(),C=b.slice(g);g=b.length;const w=ri.replace(p,C);w.identifier={major:f,minor:0},w._isTracked=!0,l.push(w)}return c.ensureFinalTabstop(h,i,!0),{edits:l,snippets:[new Go(e,h,"")]}}constructor(e,t,i=l7,n){this._editor=e,this._template=t,this._options=i,this._languageConfigurationService=n,this._templateMerges=[],this._snippets=[]}dispose(){Pt(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;const{edits:e,snippets:t}=typeof this._template=="string"?ea.createEditsAndSnippetsFromSelections(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService):ea.createEditsAndSnippetsFromEdits(this._editor,this._template,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService);this._snippets=t,this._editor.executeEdits("snippet",e,i=>{const n=i.filter(s=>!!s.identifier);for(let s=0;s_e.fromPositions(s.range.getEndPosition()))}),this._editor.revealRange(this._editor.getSelections()[0])}merge(e,t=l7){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);const{edits:i,snippets:n}=ea.createEditsAndSnippetsFromSelections(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText,t.overtypingCapturer,this._languageConfigurationService);this._editor.executeEdits("snippet",i,s=>{const r=s.filter(l=>!!l.identifier);for(let l=0;l_e.fromPositions(l.range.getEndPosition()))})}next(){const e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){const e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){const t=[];for(const i of this._snippets){const n=i.move(e);t.push(...n)}return t}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get hasChoice(){return this._snippets[0].hasChoice}get activeChoice(){return this._snippets[0].activeChoice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;const e=this._editor.getSelections();if(e.length{s.push(...n.get(r))})}e.sort(x.compareRangesUsingStarts);for(const[i,n]of t){if(n.length!==e.length){t.delete(i);continue}n.sort(x.compareRangesUsingStarts);for(let s=0;s0}};Ny=ea=s0e([o0e(3,$t)],Ny);var r0e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},M1=function(o,e){return function(t,i){e(t,i,o)}},Af;const d7={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let En=Af=class{static get(e){return e.getContribution(Af.ID)}constructor(e,t,i,n,s){this._editor=e,this._logService=t,this._languageFeaturesService=i,this._languageConfigurationService=s,this._snippetListener=new G,this._modelVersionId=-1,this._inSnippet=Af.InSnippetMode.bindTo(n),this._hasNextTabstop=Af.HasNextTabstop.bindTo(n),this._hasPrevTabstop=Af.HasPrevTabstop.bindTo(n)}dispose(){var e;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),(e=this._session)===null||e===void 0||e.dispose(),this._snippetListener.dispose()}insert(e,t){try{this._doInsert(e,typeof t>"u"?d7:{...d7,...t})}catch(i){this.cancel(),this._logService.error(i),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"")}}_doInsert(e,t){var i;if(this._editor.hasModel()){if(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&typeof e!="string"&&this.cancel(),this._session?(pt(typeof e=="string"),this._session.merge(e,t)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new Ny(this._editor,e,t,this._languageConfigurationService),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),!((i=this._session)===null||i===void 0)&&i.hasChoice){const n={_debugDisplayName:"snippetChoiceCompletions",provideCompletionItems:(c,h)=>{if(!this._session||c!==this._editor.getModel()||!F.equals(this._editor.getPosition(),h))return;const{activeChoice:u}=this._session;if(!u||u.choice.options.length===0)return;const g=c.getValueInRange(u.range),f=!!u.choice.options.find(_=>_.value===g),p=[];for(let _=0;_{r==null||r.dispose(),a=!1},d=()=>{a||(r=this._languageFeaturesService.completionProvider.register({language:s.getLanguageId(),pattern:s.uri.fsPath,scheme:s.uri.scheme,exclusive:!0},n),this._snippetListener.add(r),a=!0)};this._choiceCompletions={provider:n,enable:d,disable:l}}this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(n=>n.isFlush&&this.cancel())),this._snippetListener.add(this._editor.onDidChangeModel(()=>this.cancel())),this._snippetListener.add(this._editor.onDidChangeCursorSelection(()=>this._updateState()))}}_updateState(){if(!(!this._session||!this._editor.hasModel())){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this._editor.getModel().pushStackElement(),this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){var e;if(!this._session||!this._editor.hasModel()){this._currentChoice=void 0;return}const{activeChoice:t}=this._session;if(!t||!this._choiceCompletions){(e=this._choiceCompletions)===null||e===void 0||e.disable(),this._currentChoice=void 0;return}this._currentChoice!==t.choice&&(this._currentChoice=t.choice,this._choiceCompletions.enable(),queueMicrotask(()=>{t0e(this._editor,this._choiceCompletions.provider)}))}finish(){for(;this._inSnippet.get();)this.next()}cancel(e=!1){var t;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),this._currentChoice=void 0,(t=this._session)===null||t===void 0||t.dispose(),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){var e;(e=this._session)===null||e===void 0||e.prev(),this._updateState()}next(){var e;(e=this._session)===null||e===void 0||e.next(),this._updateState()}isInSnippet(){return!!this._inSnippet.get()}};En.ID="snippetController2";En.InSnippetMode=new de("inSnippetMode",!1,m("inSnippetMode","Whether the editor in current in snippet mode"));En.HasNextTabstop=new de("hasNextTabstop",!1,m("hasNextTabstop","Whether there is a next tab stop when in snippet mode"));En.HasPrevTabstop=new de("hasPrevTabstop",!1,m("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode"));En=Af=r0e([M1(1,qn),M1(2,me),M1(3,Me),M1(4,$t)],En);vt(En.ID,En,4);const Tx=Xi.bindToContribution(En.get);le(new Tx({id:"jumpToNextSnippetPlaceholder",precondition:K.and(En.InSnippetMode,En.HasNextTabstop),handler:o=>o.next(),kbOpts:{weight:130,kbExpr:E.textInputFocus,primary:2}}));le(new Tx({id:"jumpToPrevSnippetPlaceholder",precondition:K.and(En.InSnippetMode,En.HasPrevTabstop),handler:o=>o.prev(),kbOpts:{weight:130,kbExpr:E.textInputFocus,primary:1026}}));le(new Tx({id:"leaveSnippet",precondition:En.InSnippetMode,handler:o=>o.cancel(!0),kbOpts:{weight:130,kbExpr:E.textInputFocus,primary:9,secondary:[1033]}}));le(new Tx({id:"acceptSnippet",precondition:En.InSnippetMode,handler:o=>o.finish()}));var a0e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},eI=function(o,e){return function(t,i){e(t,i,o)}},Co;(function(o){o[o.Undo=0]="Undo",o[o.Redo=1]="Redo",o[o.AcceptWord=2]="AcceptWord",o[o.Other=3]="Other"})(Co||(Co={}));let jM=class extends W{get isAcceptingPartially(){return this._isAcceptingPartially}constructor(e,t,i,n,s,r,a,l,d,c,h,u){super(),this.textModel=e,this.selectedSuggestItem=t,this.textModelVersionId=i,this._positions=n,this._debounceValue=s,this._suggestPreviewEnabled=r,this._suggestPreviewMode=a,this._inlineSuggestMode=l,this._enabled=d,this._instantiationService=c,this._commandService=h,this._languageConfigurationService=u,this._source=this._register(this._instantiationService.createInstance($M,this.textModel,this.textModelVersionId,this._debounceValue)),this._isActive=ut(this,!1),this._forceUpdateExplicitlySignal=HL(this),this._selectedInlineCompletionId=ut(this,void 0),this._primaryPosition=He(this,f=>{var p;return(p=this._positions.read(f)[0])!==null&&p!==void 0?p:new F(1,1)}),this._isAcceptingPartially=!1,this._preserveCurrentCompletionReasons=new Set([Co.Redo,Co.Undo,Co.AcceptWord]),this._fetchInlineCompletionsPromise=Fae({owner:this,createEmptyChangeSummary:()=>({preserveCurrentCompletion:!1,inlineCompletionTriggerKind:Hd.Automatic}),handleChange:(f,p)=>(f.didChange(this.textModelVersionId)&&this._preserveCurrentCompletionReasons.has(f.change)?p.preserveCurrentCompletion=!0:f.didChange(this._forceUpdateExplicitlySignal)&&(p.inlineCompletionTriggerKind=Hd.Explicit),!0)},(f,p)=>{if(this._forceUpdateExplicitlySignal.read(f),!(this._enabled.read(f)&&this.selectedSuggestItem.read(f)||this._isActive.read(f))){this._source.cancelUpdate();return}this.textModelVersionId.read(f);const v=this._source.suggestWidgetInlineCompletions.get(),b=this.selectedSuggestItem.read(f);if(v&&!b){const D=this._source.inlineCompletions.get();Wt(I=>{(!D||v.request.versionId>D.request.versionId)&&this._source.inlineCompletions.set(v.clone(),I),this._source.clearSuggestWidgetInlineCompletions(I)})}const C=this._primaryPosition.read(f),w={triggerKind:p.inlineCompletionTriggerKind,selectedSuggestionInfo:b==null?void 0:b.toSelectedSuggestionInfo()},S=this.selectedInlineCompletion.get(),L=p.preserveCurrentCompletion||S!=null&&S.forwardStable?S:void 0;return this._source.fetch(C,w,L)}),this._filteredInlineCompletionItems=wd({owner:this,equalsFn:GN()},f=>{const p=this._source.inlineCompletions.read(f);if(!p)return[];const _=this._primaryPosition.read(f);return p.inlineCompletions.filter(b=>b.isVisible(this.textModel,_,f))}),this.selectedInlineCompletionIndex=He(this,f=>{const p=this._selectedInlineCompletionId.read(f),_=this._filteredInlineCompletionItems.read(f),v=this._selectedInlineCompletionId===void 0?-1:_.findIndex(b=>b.semanticId===p);return v===-1?(this._selectedInlineCompletionId.set(void 0,void 0),0):v}),this.selectedInlineCompletion=He(this,f=>{const p=this._filteredInlineCompletionItems.read(f),_=this.selectedInlineCompletionIndex.read(f);return p[_]}),this.activeCommands=wd({owner:this,equalsFn:GN()},f=>{var p,_;return(_=(p=this.selectedInlineCompletion.read(f))===null||p===void 0?void 0:p.inlineCompletion.source.inlineCompletions.commands)!==null&&_!==void 0?_:[]}),this.lastTriggerKind=this._source.inlineCompletions.map(this,f=>f==null?void 0:f.request.context.triggerKind),this.inlineCompletionsCount=He(this,f=>{if(this.lastTriggerKind.read(f)===Hd.Explicit)return this._filteredInlineCompletionItems.read(f).length}),this.state=wd({owner:this,equalsFn:(f,p)=>!f||!p?f===p:jB(f.ghostTexts,p.ghostTexts)&&f.inlineCompletion===p.inlineCompletion&&f.suggestItem===p.suggestItem},f=>{var p,_;const v=this.textModel,b=this.selectedSuggestItem.read(f);if(b){const C=ag(b.toSingleTextEdit(),v),w=this._computeAugmentation(C,f);if(!this._suggestPreviewEnabled.read(f)&&!w)return;const L=(p=w==null?void 0:w.edit)!==null&&p!==void 0?p:C,D=w?w.edit.text.length-C.text.length:0,I=this._suggestPreviewMode.read(f),T=this._positions.read(f),V=[L,...tI(this.textModel,T,L)],P=V.map((B,j)=>YB(B,v,I,T[j],D)).filter(xl),A=(_=P[0])!==null&&_!==void 0?_:new i0(L.range.endLineNumber,[]);return{edits:V,primaryGhostText:A,ghostTexts:P,inlineCompletion:w==null?void 0:w.completion,suggestItem:b}}else{if(!this._isActive.read(f))return;const C=this.selectedInlineCompletion.read(f);if(!C)return;const w=C.toSingleTextEdit(f),S=this._inlineSuggestMode.read(f),L=this._positions.read(f),D=[w,...tI(this.textModel,L,w)],I=D.map((T,V)=>YB(T,v,S,L[V],0)).filter(xl);return I[0]?{edits:D,primaryGhostText:I[0],ghostTexts:I,inlineCompletion:C,suggestItem:void 0}:void 0}}),this.ghostTexts=wd({owner:this,equalsFn:jB},f=>{const p=this.state.read(f);if(p)return p.ghostTexts}),this.primaryGhostText=wd({owner:this,equalsFn:yU},f=>{const p=this.state.read(f);if(p)return p==null?void 0:p.primaryGhostText}),this._register(G0(this._fetchInlineCompletionsPromise));let g;this._register(Xe(f=>{var p,_;const v=this.state.read(f),b=v==null?void 0:v.inlineCompletion;if((b==null?void 0:b.semanticId)!==(g==null?void 0:g.semanticId)&&(g=b,b)){const C=b.inlineCompletion,w=C.source;(_=(p=w.provider).handleItemDidShow)===null||_===void 0||_.call(p,w.inlineCompletions,C.sourceInlineCompletion,C.insertText)}}))}async trigger(e){this._isActive.set(!0,e),await this._fetchInlineCompletionsPromise.get()}async triggerExplicitly(e){Db(e,t=>{this._isActive.set(!0,t),this._forceUpdateExplicitlySignal.trigger(t)}),await this._fetchInlineCompletionsPromise.get()}stop(e){Db(e,t=>{this._isActive.set(!1,t),this._source.clear(t)})}_computeAugmentation(e,t){const i=this.textModel,n=this._source.suggestWidgetInlineCompletions.read(t),s=n?n.inlineCompletions:[this.selectedInlineCompletion.read(t)].filter(xl);return cY(s,a=>{let l=a.toSingleTextEdit(t);return l=ag(l,i,x.fromPositions(l.range.getStartPosition(),e.range.getEndPosition())),kU(l,e)?{completion:a,edit:l}:void 0})}async _deltaSelectedInlineCompletionIndex(e){await this.triggerExplicitly();const t=this._filteredInlineCompletionItems.get()||[];if(t.length>0){const i=(this.selectedInlineCompletionIndex.get()+e+t.length)%t.length;this._selectedInlineCompletionId.set(t[i].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)}async next(){await this._deltaSelectedInlineCompletionIndex(1)}async previous(){await this._deltaSelectedInlineCompletionIndex(-1)}async accept(e){var t;if(e.getModel()!==this.textModel)throw new Tt;const i=this.state.get();if(!i||i.primaryGhostText.isEmpty()||!i.inlineCompletion)return;const n=i.inlineCompletion.toInlineCompletion(void 0);if(e.pushUndoStop(),n.snippetInfo)e.executeEdits("inlineSuggestion.accept",[ri.replace(n.range,""),...n.additionalTextEdits]),e.setPosition(n.snippetInfo.range.getStartPosition(),"inlineCompletionAccept"),(t=En.get(e))===null||t===void 0||t.insert(n.snippetInfo.snippet,{undoStopBefore:!1});else{const s=i.edits,r=c7(s).map(a=>_e.fromPositions(a));e.executeEdits("inlineSuggestion.accept",[...s.map(a=>ri.replace(a.range,a.text)),...n.additionalTextEdits]),e.setSelections(r,"inlineCompletionAccept")}n.command&&n.source.addRef(),Wt(s=>{this._source.clear(s),this._isActive.set(!1,s)}),n.command&&(await this._commandService.executeCommand(n.command.id,...n.command.arguments||[]).then(void 0,yi),n.source.removeRef())}async acceptNextWord(e){await this._acceptNext(e,(t,i)=>{const n=this.textModel.getLanguageIdAtPosition(t.lineNumber,t.column),s=this._languageConfigurationService.getLanguageConfiguration(n),r=new RegExp(s.wordDefinition.source,s.wordDefinition.flags.replace("g","")),a=i.match(r);let l=0;a&&a.index!==void 0?a.index===0?l=a[0].length:l=a.index:l=i.length;const c=/\s+/g.exec(i);return c&&c.index!==void 0&&c.index+c[0].length{const n=i.match(/\n/);return n&&n.index!==void 0?n.index+1:i.length},1)}async _acceptNext(e,t,i){if(e.getModel()!==this.textModel)throw new Tt;const n=this.state.get();if(!n||n.primaryGhostText.isEmpty()||!n.inlineCompletion)return;const s=n.primaryGhostText,r=n.inlineCompletion.toInlineCompletion(void 0);if(r.snippetInfo||r.filterText!==r.insertText){await this.accept(e);return}const a=s.parts[0],l=new F(s.lineNumber,a.column),d=a.text,c=t(l,d);if(c===d.length&&s.parts.length===1){this.accept(e);return}const h=d.substring(0,c),u=this._positions.get(),g=u[0];r.source.addRef();try{this._isAcceptingPartially=!0;try{e.pushUndoStop();const f=x.fromPositions(g,l),p=e.getModel().getValueInRange(f)+h,_=new tc(f,p),v=[_,...tI(this.textModel,u,_)],b=c7(v).map(C=>_e.fromPositions(C));e.executeEdits("inlineSuggestion.accept",v.map(C=>ri.replace(C.range,C.text))),e.setSelections(b,"inlineCompletionPartialAccept"),e.revealPositionInCenterIfOutsideViewport(e.getPosition(),1)}finally{this._isAcceptingPartially=!1}if(r.source.provider.handlePartialAccept){const f=x.fromPositions(r.range.getStartPosition(),Cs.ofText(h).addToPosition(l)),p=e.getModel().getValueInRange(f,1);r.source.provider.handlePartialAccept(r.source.inlineCompletions,r.sourceInlineCompletion,p.length,{kind:i})}}finally{r.source.removeRef()}}handleSuggestAccepted(e){var t,i;const n=ag(e.toSingleTextEdit(),this.textModel),s=this._computeAugmentation(n,void 0);if(!s)return;const r=s.completion.inlineCompletion;(i=(t=r.source.provider).handlePartialAccept)===null||i===void 0||i.call(t,r.source.inlineCompletions,r.sourceInlineCompletion,n.text.length,{kind:2})}};jM=a0e([eI(9,Le),eI(10,Qt),eI(11,$t)],jM);function tI(o,e,t){if(e.length===1)return[];const i=e[0],n=e.slice(1),s=t.range.getStartPosition(),r=t.range.getEndPosition(),a=o.getValueInRange(x.fromPositions(i,r)),l=KB(i,s);if(l.lineNumber<1)return ze(new Tt(`positionWithinTextEdit line number should be bigger than 0. + Invalid subtraction between ${i.toString()} and ${s.toString()}`)),[];const d=l0e(t.text,l);return n.map(c=>{const h=Tbe(KB(c,s),r),u=o.getValueInRange(x.fromPositions(c,h)),g=Ch(a,u),f=x.fromPositions(c,c.delta(0,g));return new tc(f,d)})}function l0e(o,e){let t="";const i=BK(o);for(let n=e.lineNumber-1;nx.compareRangesUsingStarts(s.range,r.range)),i=new EA(e.apply(o)).getNewRanges();return e.inverse().apply(i).map(s=>s.getEndPosition())}var d0e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},h7=function(o,e){return function(t,i){e(t,i,o)}},Z_;class YP{constructor(e){this.name=e}select(e,t,i){if(i.length===0)return 0;const n=i[0].score[0];for(let s=0;sl&&h.type===i[d].completion.kind&&h.insertText===i[d].completion.insertText&&(l=h.touch,a=d),i[d].completion.preselect&&r===-1)return r=d}return a!==-1?a:r!==-1?r:0}toJSON(){return this._cache.toJSON()}fromJSON(e){this._cache.clear();const t=0;for(const[i,n]of e)n.touch=t,n.type=typeof n.type=="number"?n.type:Vv.fromString(n.type),this._cache.set(i,n);this._seq=this._cache.size}}class h0e extends YP{constructor(){super("recentlyUsedByPrefix"),this._trie=Dm.forStrings(),this._seq=0}memorize(e,t,i){const{word:n}=e.getWordUntilPosition(t),s=`${e.getLanguageId()}/${n}`;this._trie.set(s,{type:i.completion.kind,insertText:i.completion.insertText,touch:this._seq++})}select(e,t,i){const{word:n}=e.getWordUntilPosition(t);if(!n)return super.select(e,t,i);const s=`${e.getLanguageId()}/${n}`;let r=this._trie.get(s);if(r||(r=this._trie.findSubstr(s)),r)for(let a=0;ae.push([i,t])),e.sort((t,i)=>-(t[1].touch-i[1].touch)).forEach((t,i)=>t[1].touch=i),e.slice(0,200)}fromJSON(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(const[t,i]of e)i.type=typeof i.type=="number"?i.type:Vv.fromString(i.type),this._trie.set(t,i)}}}let s0=Z_=class{constructor(e,t){this._storageService=e,this._configService=t,this._disposables=new G,this._persistSoon=new At(()=>this._saveState(),500),this._disposables.add(e.onWillSaveState(i=>{i.reason===Eb.SHUTDOWN&&this._saveState()}))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,i){this._withStrategy(e,t).memorize(e,t,i),this._persistSoon.schedule()}select(e,t,i){return this._withStrategy(e,t).select(e,t,i)}_withStrategy(e,t){var i;const n=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:e.getLanguageIdAtPosition(t.lineNumber,t.column),resource:e.uri});if(((i=this._strategy)===null||i===void 0?void 0:i.name)!==n){this._saveState();const s=Z_._strategyCtors.get(n)||IU;this._strategy=new s;try{const a=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,l=this._storageService.get(`${Z_._storagePrefix}/${n}`,a);l&&this._strategy.fromJSON(JSON.parse(l))}catch{}}return this._strategy}_saveState(){if(this._strategy){const t=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,i=JSON.stringify(this._strategy);this._storageService.store(`${Z_._storagePrefix}/${this._strategy.name}`,i,t,1)}}};s0._strategyCtors=new Map([["recentlyUsedByPrefix",h0e],["recentlyUsed",c0e],["first",IU]]);s0._storagePrefix="suggest/memories";s0=Z_=d0e([h7(0,Kr),h7(1,Je)],s0);const Mx=ot("ISuggestMemories");ht(Mx,s0,1);var u0e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},g0e=function(o,e){return function(t,i){e(t,i,o)}},KM;let o0=KM=class{constructor(e,t){this._editor=e,this._enabled=!1,this._ckAtEnd=KM.AtEnd.bindTo(t),this._configListener=this._editor.onDidChangeConfiguration(i=>i.hasChanged(123)&&this._update()),this._update()}dispose(){var e;this._configListener.dispose(),(e=this._selectionListener)===null||e===void 0||e.dispose(),this._ckAtEnd.reset()}_update(){const e=this._editor.getOption(123)==="on";if(this._enabled!==e)if(this._enabled=e,this._enabled){const t=()=>{if(!this._editor.hasModel()){this._ckAtEnd.set(!1);return}const i=this._editor.getModel(),n=this._editor.getSelection(),s=i.getWordAtPosition(n.getStartPosition());if(!s){this._ckAtEnd.set(!1);return}this._ckAtEnd.set(s.endColumn===n.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(t),t()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};o0.AtEnd=new de("atEndOfWord",!1);o0=KM=u0e([g0e(1,Me)],o0);var f0e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},m0e=function(o,e){return function(t,i){e(t,i,o)}},Y_;let Pg=Y_=class{constructor(e,t){this._editor=e,this._index=0,this._ckOtherSuggestions=Y_.OtherSuggestions.bindTo(t)}dispose(){this.reset()}reset(){var e;this._ckOtherSuggestions.reset(),(e=this._listener)===null||e===void 0||e.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:e,index:t},i){if(e.items.length===0){this.reset();return}if(Y_._moveIndex(!0,e,t)===t){this.reset();return}this._acceptNext=i,this._model=e,this._index=t,this._listener=this._editor.onDidChangeCursorPosition(()=>{this._ignore||this.reset()}),this._ckOtherSuggestions.set(!0)}static _moveIndex(e,t,i){let n=i;for(let s=t.items.length;s>0&&(n=(n+t.items.length+(e?1:-1))%t.items.length,!(n===i||!t.items[n].completion.additionalTextEdits));s--);return n}next(){this._move(!0)}prev(){this._move(!1)}_move(e){if(this._model)try{this._ignore=!0,this._index=Y_._moveIndex(e,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};Pg.OtherSuggestions=new de("hasOtherSuggestions",!1);Pg=Y_=f0e([m0e(1,Me)],Pg);class p0e{constructor(e,t,i,n){this._disposables=new G,this._disposables.add(i.onDidSuggest(s=>{s.completionModel.items.length===0&&this.reset()})),this._disposables.add(i.onDidCancel(s=>{this.reset()})),this._disposables.add(t.onDidShow(()=>this._onItem(t.getFocusedItem()))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType(s=>{if(this._active&&!t.isFrozen()&&i.state!==0){const r=s.charCodeAt(s.length-1);this._active.acceptCharacters.has(r)&&e.getOption(0)&&n(this._active.item)}}))}_onItem(e){if(!e||!jn(e.item.completion.commitCharacters)){this.reset();return}if(this._active&&this._active.item.item===e.item)return;const t=new eS;for(const i of e.item.completion.commitCharacters)i.length>0&&t.add(i.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}class wo{async provideSelectionRanges(e,t){const i=[];for(const n of t){const s=[];i.push(s);const r=new Map;await new Promise(a=>wo._bracketsRightYield(a,0,e,n,r)),await new Promise(a=>wo._bracketsLeftYield(a,0,e,n,r,s))}return i}static _bracketsRightYield(e,t,i,n,s){const r=new Map,a=Date.now();for(;;){if(t>=wo._maxRounds){e();break}if(!n){e();break}const l=i.bracketPairs.findNextBracket(n);if(!l){e();break}if(Date.now()-a>wo._maxDuration){setTimeout(()=>wo._bracketsRightYield(e,t+1,i,n,s));break}if(l.bracketInfo.isOpeningBracket){const c=l.bracketInfo.bracketText,h=r.has(c)?r.get(c):0;r.set(c,h+1)}else{const c=l.bracketInfo.getOpeningBrackets()[0].bracketText;let h=r.has(c)?r.get(c):0;if(h-=1,r.set(c,Math.max(0,h)),h<0){let u=s.get(c);u||(u=new vs,s.set(c,u)),u.push(l.range)}}n=l.range.getEndPosition()}}static _bracketsLeftYield(e,t,i,n,s,r){const a=new Map,l=Date.now();for(;;){if(t>=wo._maxRounds&&s.size===0){e();break}if(!n){e();break}const d=i.bracketPairs.findPrevBracket(n);if(!d){e();break}if(Date.now()-l>wo._maxDuration){setTimeout(()=>wo._bracketsLeftYield(e,t+1,i,n,s,r));break}if(d.bracketInfo.isOpeningBracket){const h=d.bracketInfo.bracketText;let u=a.has(h)?a.get(h):0;if(u-=1,a.set(h,Math.max(0,u)),u<0){const g=s.get(h);if(g){const f=g.shift();g.size===0&&s.delete(h);const p=x.fromPositions(d.range.getEndPosition(),f.getStartPosition()),_=x.fromPositions(d.range.getStartPosition(),f.getEndPosition());r.push({range:p}),r.push({range:_}),wo._addBracketLeading(i,_,r)}}}else{const h=d.bracketInfo.getOpeningBrackets()[0].bracketText,u=a.has(h)?a.get(h):0;a.set(h,u+1)}n=d.range.getStartPosition()}}static _addBracketLeading(e,t,i){if(t.startLineNumber===t.endLineNumber)return;const n=t.startLineNumber,s=e.getLineFirstNonWhitespaceColumn(n);s!==0&&s!==t.startColumn&&(i.push({range:x.fromPositions(new F(n,s),t.getEndPosition())}),i.push({range:x.fromPositions(new F(n,1),t.getEndPosition())}));const r=n-1;if(r>0){const a=e.getLineFirstNonWhitespaceColumn(r);a===t.startColumn&&a!==e.getLineLastNonWhitespaceColumn(r)&&(i.push({range:x.fromPositions(new F(r,a),t.getEndPosition())}),i.push({range:x.fromPositions(new F(r,1),t.getEndPosition())}))}}}wo._maxDuration=30;wo._maxRounds=2;class ca{static async create(e,t){if(!t.getOption(118).localityBonus||!t.hasModel())return ca.None;const i=t.getModel(),n=t.getPosition();if(!e.canComputeWordRanges(i.uri))return ca.None;const[s]=await new wo().provideSelectionRanges(i,[n]);if(s.length===0)return ca.None;const r=await e.computeWordRanges(i.uri,s[0].range);if(!r)return ca.None;const a=i.getWordUntilPosition(n);return delete r[a.word],new class extends ca{distance(l,d){if(!n.equals(t.getPosition()))return 0;if(d.kind===17)return 2<<20;const c=typeof d.label=="string"?d.label:d.label.label,h=r[c];if(H7(h))return 2<<20;const u=Ov(h,x.fromPositions(l),x.compareRangesUsingStarts),g=u>=0?h[u]:h[Math.max(0,~u-1)];let f=s.length;for(const p of s){if(!x.containsRange(p.range,g))break;f-=1}return f}}}}ca.None=new class extends ca{distance(){return 0}};let u7=class{constructor(e,t){this.leadingLineContent=e,this.characterCountDelta=t}};class Bc{constructor(e,t,i,n,s,r,a=NL.default,l=void 0){this.clipboardText=l,this._snippetCompareFn=Bc._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=n,this._options=s,this._refilterKind=1,this._lineContext=i,this._fuzzyScoreOptions=a,r==="top"?this._snippetCompareFn=Bc._compareCompletionItemsSnippetsUp:r==="bottom"&&(this._snippetCompareFn=Bc._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){(this._lineContext.leadingLineContent!==e.leadingLineContent||this._lineContext.characterCountDelta!==e.characterCountDelta)&&(this._refilterKind=this._lineContext.characterCountDelta0&&i[0].container.incomplete&&e.add(t);return e}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){this._refilterKind!==0&&this._createCachedState()}_createCachedState(){this._itemsByProvider=new Map;const e=[],{leadingLineContent:t,characterCountDelta:i}=this._lineContext;let n="",s="";const r=this._refilterKind===1?this._items:this._filteredItems,a=[],l=!this._options.filterGraceful||r.length>2e3?Cg:Moe;for(let d=0;d=g)c.score=ya.Default;else if(typeof c.completion.filterText=="string"){const p=l(n,s,f,c.completion.filterText,c.filterTextLow,0,this._fuzzyScoreOptions);if(!p)continue;bE(c.completion.filterText,c.textLabel)===0?c.score=p:(c.score=Ioe(n,s,f,c.textLabel,c.labelLow,0),c.score[0]=p[0])}else{const p=l(n,s,f,c.textLabel,c.labelLow,0,this._fuzzyScoreOptions);if(!p)continue;c.score=p}}c.idx=d,c.distance=this._wordDistance.distance(c.position,c.completion),a.push(c),e.push(c.textLabel.length)}this._filteredItems=a.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:e.length?mI(e.length-.85,e,(d,c)=>d-c):0}}static _compareCompletionItems(e,t){return e.score[0]>t.score[0]?-1:e.score[0]t.distance?1:e.idxt.idx?1:0}static _compareCompletionItemsSnippetsDown(e,t){if(e.completion.kind!==t.completion.kind){if(e.completion.kind===27)return 1;if(t.completion.kind===27)return-1}return Bc._compareCompletionItems(e,t)}static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(e.completion.kind===27)return-1;if(t.completion.kind===27)return 1}return Bc._compareCompletionItems(e,t)}}var _0e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Cc=function(o,e){return function(t,i){e(t,i,o)}},qM;class vu{static shouldAutoTrigger(e){if(!e.hasModel())return!1;const t=e.getModel(),i=e.getPosition();t.tokenization.tokenizeIfCheap(i.lineNumber);const n=t.getWordAtPosition(i);return!(!n||n.endColumn!==i.column&&n.startColumn+1!==i.column||!isNaN(Number(n.word)))}constructor(e,t,i){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.triggerOptions=i}}function v0e(o,e,t){if(!e.getContextKeyValue(pn.inlineSuggestionVisible.key))return!0;const i=e.getContextKeyValue(pn.suppressSuggestions.key);return i!==void 0?!i:!o.getOption(62).suppressSuggestions}function b0e(o,e,t){if(!e.getContextKeyValue("inlineSuggestionVisible"))return!0;const i=e.getContextKeyValue(pn.suppressSuggestions.key);return i!==void 0?!i:!o.getOption(62).suppressSuggestions}let Ty=qM=class{constructor(e,t,i,n,s,r,a,l,d){this._editor=e,this._editorWorkerService=t,this._clipboardService=i,this._telemetryService=n,this._logService=s,this._contextKeyService=r,this._configurationService=a,this._languageFeaturesService=l,this._envService=d,this._toDispose=new G,this._triggerCharacterListener=new G,this._triggerQuickSuggest=new jr,this._triggerState=void 0,this._completionDisposables=new G,this._onDidCancel=new O,this._onDidTrigger=new O,this._onDidSuggest=new O,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new _e(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(()=>{this._updateTriggerCharacters()})),this._toDispose.add(this._languageFeaturesService.completionProvider.onDidChange(()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()}));let c=!1;this._toDispose.add(this._editor.onDidCompositionStart(()=>{c=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(()=>{c=!1,this._onCompositionEnd()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(h=>{c||this._onCursorChange(h)})),this._toDispose.add(this._editor.onDidChangeModelContent(()=>{!c&&this._triggerState!==void 0&&this._refilterCompletionItems()})),this._updateTriggerCharacters()}dispose(){Pt(this._triggerCharacterListener),Pt([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(91)||!this._editor.hasModel()||!this._editor.getOption(121))return;const e=new Map;for(const i of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(const n of i.triggerCharacters||[]){let s=e.get(n);s||(s=new Set,s.add(Ybe()),e.set(n,s)),s.add(i)}const t=i=>{var n;if(!b0e(this._editor,this._contextKeyService,this._configurationService)||vu.shouldAutoTrigger(this._editor))return;if(!i){const a=this._editor.getPosition();i=this._editor.getModel().getLineContent(a.lineNumber).substr(0,a.column-1)}let s="";hg(i.charCodeAt(i.length-1))?sn(i.charCodeAt(i.length-2))&&(s=i.substr(i.length-2)):s=i.charAt(i.length-1);const r=e.get(s);if(r){const a=new Map;if(this._completionModel)for(const[l,d]of this._completionModel.getItemsByProvider())r.has(l)||a.set(l,d);this.trigger({auto:!0,triggerKind:1,triggerCharacter:s,retrigger:!!this._completionModel,clipboardText:(n=this._completionModel)===null||n===void 0?void 0:n.clipboardText,completionOptions:{providerFilter:r,providerItemsToReuse:a}})}};this._triggerCharacterListener.add(this._editor.onDidType(t)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(()=>t()))}get state(){return this._triggerState?this._triggerState.auto?2:1:0}cancel(e=!1){var t;this._triggerState!==void 0&&(this._triggerQuickSuggest.cancel(),(t=this._requestToken)===null||t===void 0||t.cancel(),this._requestToken=void 0,this._triggerState=void 0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){this._triggerState!==void 0&&(!this._editor.hasModel()||!this._languageFeaturesService.completionProvider.has(this._editor.getModel())?this.cancel():this.trigger({auto:this._triggerState.auto,retrigger:!0}))}_onCursorChange(e){if(!this._editor.hasModel())return;const t=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||e.reason!==0&&e.reason!==3||e.source!=="keyboard"&&e.source!=="deleteLeft"){this.cancel();return}this._triggerState===void 0&&e.reason===0?(t.containsRange(this._currentSelection)||t.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))&&this._doTriggerQuickSuggest():this._triggerState!==void 0&&e.reason===3&&this._refilterCompletionItems()}_onCompositionEnd(){this._triggerState===void 0?this._doTriggerQuickSuggest():this._refilterCompletionItems()}_doTriggerQuickSuggest(){var e;rm.isAllOff(this._editor.getOption(89))||this._editor.getOption(118).snippetsPreventQuickSuggestions&&(!((e=En.get(this._editor))===null||e===void 0)&&e.isInSnippet())||(this.cancel(),this._triggerQuickSuggest.cancelAndSet(()=>{if(this._triggerState!==void 0||!vu.shouldAutoTrigger(this._editor)||!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;const t=this._editor.getModel(),i=this._editor.getPosition(),n=this._editor.getOption(89);if(!rm.isAllOff(n)){if(!rm.isAllOn(n)){t.tokenization.tokenizeIfCheap(i.lineNumber);const s=t.tokenization.getLineTokens(i.lineNumber),r=s.getStandardTokenType(s.findTokenIndexAtOffset(Math.max(i.column-1-1,0)));if(rm.valueFor(n,r)!=="on")return}v0e(this._editor,this._contextKeyService,this._configurationService)&&this._languageFeaturesService.completionProvider.has(t)&&this.trigger({auto:!0})}},this._editor.getOption(90)))}_refilterCompletionItems(){pt(this._editor.hasModel()),pt(this._triggerState!==void 0);const e=this._editor.getModel(),t=this._editor.getPosition(),i=new vu(e,t,{...this._triggerState,refilter:!0});this._onNewContext(i)}trigger(e){var t,i,n,s,r,a;if(!this._editor.hasModel())return;const l=this._editor.getModel(),d=new vu(l,this._editor.getPosition(),e);this.cancel(e.retrigger),this._triggerState=e,this._onDidTrigger.fire({auto:e.auto,shy:(t=e.shy)!==null&&t!==void 0?t:!1,position:this._editor.getPosition()}),this._context=d;let c={triggerKind:(i=e.triggerKind)!==null&&i!==void 0?i:0};e.triggerCharacter&&(c={triggerKind:1,triggerCharacter:e.triggerCharacter}),this._requestToken=new ci;const h=this._editor.getOption(112);let u=1;switch(h){case"top":u=0;break;case"bottom":u=2;break}const{itemKind:g,showDeprecated:f}=qM.createSuggestFilter(this._editor),p=new n0(u,(s=(n=e.completionOptions)===null||n===void 0?void 0:n.kindFilter)!==null&&s!==void 0?s:g,(r=e.completionOptions)===null||r===void 0?void 0:r.providerFilter,(a=e.completionOptions)===null||a===void 0?void 0:a.providerItemsToReuse,f),_=ca.create(this._editorWorkerService,this._editor),v=GP(this._languageFeaturesService.completionProvider,l,this._editor.getPosition(),p,c,this._requestToken.token);Promise.all([v,_]).then(async([b,C])=>{var w;if((w=this._requestToken)===null||w===void 0||w.dispose(),!this._editor.hasModel())return;let S=e==null?void 0:e.clipboardText;if(!S&&b.needsClipboard&&(S=await this._clipboardService.readText()),this._triggerState===void 0)return;const L=this._editor.getModel(),D=new vu(L,this._editor.getPosition(),e),I={...NL.default,firstMatchCanBeWeak:!this._editor.getOption(118).matchOnWordStartOnly};if(this._completionModel=new Bc(b.items,this._context.column,{leadingLineContent:D.leadingLineContent,characterCountDelta:D.column-this._context.column},C,this._editor.getOption(118),this._editor.getOption(112),I,S),this._completionDisposables.add(b.disposable),this._onNewContext(D),this._reportDurationsTelemetry(b.durations),!this._envService.isBuilt||this._envService.isExtensionDevelopment)for(const T of b.items)T.isInvalid&&this._logService.warn(`[suggest] did IGNORE invalid completion item from ${T.provider._debugDisplayName}`,T.completion)}).catch(ze)}_reportDurationsTelemetry(e){this._telemetryGate++%230===0&&setTimeout(()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(e)}),this._logService.debug("suggest.durations.json",e)})}static createSuggestFilter(e){const t=new Set;e.getOption(112)==="none"&&t.add(27);const n=e.getOption(118);return n.showMethods||t.add(0),n.showFunctions||t.add(1),n.showConstructors||t.add(2),n.showFields||t.add(3),n.showVariables||t.add(4),n.showClasses||t.add(5),n.showStructs||t.add(6),n.showInterfaces||t.add(7),n.showModules||t.add(8),n.showProperties||t.add(9),n.showEvents||t.add(10),n.showOperators||t.add(11),n.showUnits||t.add(12),n.showValues||t.add(13),n.showConstants||t.add(14),n.showEnums||t.add(15),n.showEnumMembers||t.add(16),n.showKeywords||t.add(17),n.showWords||t.add(18),n.showColors||t.add(19),n.showFiles||t.add(20),n.showReferences||t.add(21),n.showColors||t.add(22),n.showFolders||t.add(23),n.showTypeParameters||t.add(24),n.showSnippets||t.add(27),n.showUsers||t.add(25),n.showIssues||t.add(26),{itemKind:t,showDeprecated:n.showDeprecated}}_onNewContext(e){if(this._context){if(e.lineNumber!==this._context.lineNumber){this.cancel();return}if(Bt(e.leadingLineContent)!==Bt(this._context.leadingLineContent)){this.cancel();return}if(e.columnthis._context.leadingWord.startColumn){if(vu.shouldAutoTrigger(this._editor)&&this._context){const i=this._completionModel.getItemsByProvider();this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerItemsToReuse:i}})}return}if(e.column>this._context.column&&this._completionModel.getIncompleteProvider().size>0&&e.leadingWord.word.length!==0){const t=new Map,i=new Set;for(const[n,s]of this._completionModel.getItemsByProvider())s.length>0&&s[0].container.incomplete?i.add(n):t.set(n,s);this.trigger({auto:this._context.triggerOptions.auto,triggerKind:2,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerFilter:i,providerItemsToReuse:t}})}else{const t=this._completionModel.lineContext;let i=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},this._completionModel.items.length===0){const n=vu.shouldAutoTrigger(this._editor);if(!this._context){this.cancel();return}if(n&&this._context.leadingWord.endColumn0,i&&e.leadingWord.word.length===0){this.cancel();return}}this._onDidSuggest.fire({completionModel:this._completionModel,triggerOptions:e.triggerOptions,isFrozen:i})}}}}};Ty=qM=_0e([Cc(1,pr),Cc(2,uc),Cc(3,Bn),Cc(4,qn),Cc(5,Me),Cc(6,Je),Cc(7,me),Cc(8,b2)],Ty);class Rx{constructor(e,t){this._disposables=new G,this._lastOvertyped=[],this._locked=!1,this._disposables.add(e.onWillType(()=>{if(this._locked||!e.hasModel())return;const i=e.getSelections(),n=i.length;let s=!1;for(let a=0;aRx._maxSelectionLength)return;this._lastOvertyped[a]={value:r.getValueInRange(l),multiline:l.startLineNumber!==l.endLineNumber}}})),this._disposables.add(t.onDidTrigger(i=>{this._locked=!0})),this._disposables.add(t.onDidCancel(i=>{this._locked=!1}))}getLastOvertypedInfo(e){if(e>=0&&e=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},iI=function(o,e){return function(t,i){e(t,i,o)}};let w0e=class EU extends Eh{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();this.label&&(this.label.textContent=m({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",this._action.label,EU.symbolPrintEnter(e)))}static symbolPrintEnter(e){var t;return(t=e.getLabel())===null||t===void 0?void 0:t.replace(/\benter\b/gi,"⏎")}},GM=class{constructor(e,t,i,n,s){this._menuId=t,this._menuService=n,this._contextKeyService=s,this._menuDisposables=new G,this.element=Q(e,te(".suggest-status-bar"));const r=a=>a instanceof so?i.createInstance(w0e,a,void 0):void 0;this._leftActions=new ur(this.element,{actionViewItemProvider:r}),this._rightActions=new ur(this.element,{actionViewItemProvider:r}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this._leftActions.dispose(),this._rightActions.dispose(),this.element.remove()}show(){const e=this._menuService.createMenu(this._menuId,this._contextKeyService),t=()=>{const i=[],n=[];for(const[s,r]of e.getActions())s==="left"?i.push(...r):n.push(...r);this._leftActions.clear(),this._leftActions.push(i),this._rightActions.clear(),this._rightActions.push(n)};this._menuDisposables.add(e.onDidChange(()=>t())),this._menuDisposables.add(e)}hide(){this._menuDisposables.clear()}};GM=C0e([iI(2,Le),iI(3,zo),iI(4,Me)],GM);var S0e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},y0e=function(o,e){return function(t,i){e(t,i,o)}};function QP(o){return!!o&&!!(o.completion.documentation||o.completion.detail&&o.completion.detail!==o.completion.label)}let ZM=class{constructor(e,t){this._editor=e,this._onDidClose=new O,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new O,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new G,this._renderDisposeable=new G,this._borderWidth=1,this._size=new Ct(330,0),this.domNode=te(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=t.createInstance(Fl,{editor:e}),this._body=te(".body"),this._scrollbar=new O0(this._body,{alwaysConsumeMouseWheel:!0}),Q(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=Q(this._body,te(".header")),this._close=Q(this._header,te("span"+Te.asCSSSelector(oe.close))),this._close.title=m("details.close","Close"),this._type=Q(this._header,te("p.type")),this._docs=Q(this._body,te("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(50)&&this._configureFont()}))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){const e=this._editor.getOptions(),t=e.get(50),i=t.getMassagedFontFamily(),n=e.get(119)||t.fontSize,s=e.get(120)||t.lineHeight,r=t.fontWeight,a=`${n}px`,l=`${s}px`;this.domNode.style.fontSize=a,this.domNode.style.lineHeight=`${s/n}`,this.domNode.style.fontWeight=r,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=i,this._close.style.height=l,this._close.style.width=l}getLayoutInfo(){const e=this._editor.getOption(120)||this._editor.getOption(50).lineHeight,t=this._borderWidth,i=t*2;return{lineHeight:e,borderWidth:t,borderHeight:i,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=m("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,this.getLayoutInfo().lineHeight*2),this._onDidChangeContents.fire(this)}renderItem(e,t){var i,n;this._renderDisposeable.clear();let{detail:s,documentation:r}=e.completion;if(t){let a="";a+=`score: ${e.score[0]} +`,a+=`prefix: ${(i=e.word)!==null&&i!==void 0?i:"(no prefix)"} +`,a+=`word: ${e.completion.filterText?e.completion.filterText+" (filterText)":e.textLabel} +`,a+=`distance: ${e.distance} (localityBonus-setting) +`,a+=`index: ${e.idx}, based on ${e.completion.sortText&&`sortText: "${e.completion.sortText}"`||"label"} +`,a+=`commit_chars: ${(n=e.completion.commitCharacters)===null||n===void 0?void 0:n.join("")} +`,r=new Un().appendCodeblock("empty",a),s=`Provider: ${e.provider._debugDisplayName}`}if(!t&&!QP(e)){this.clearContents();return}if(this.domNode.classList.remove("no-docs","no-type"),s){const a=s.length>1e5?`${s.substr(0,1e5)}…`:s;this._type.textContent=a,this._type.title=a,eo(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gmi.test(a))}else xn(this._type),this._type.title="",gs(this._type),this.domNode.classList.add("no-type");if(xn(this._docs),typeof r=="string")this._docs.classList.remove("markdown-docs"),this._docs.textContent=r;else if(r){this._docs.classList.add("markdown-docs"),xn(this._docs);const a=this._markdownRenderer.render(r);this._docs.appendChild(a.element),this._renderDisposeable.add(a),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync(()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=a=>{a.preventDefault(),a.stopPropagation()},this._close.onclick=a=>{a.preventDefault(),a.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get isEmpty(){return this.domNode.classList.contains("no-docs")}get size(){return this._size}layout(e,t){const i=new Ct(e,t);Ct.equals(i,this._size)||(this._size=i,Kq(this.domNode,e,t)),this._scrollbar.scanDomNode()}scrollDown(e=8){this._body.scrollTop+=e}scrollUp(e=8){this._body.scrollTop-=e}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(e){this._borderWidth=e}get borderWidth(){return this._borderWidth}};ZM=S0e([y0e(1,Le)],ZM);class L0e{constructor(e,t){this.widget=e,this._editor=t,this.allowEditorOverflow=!0,this._disposables=new G,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new AP,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let i,n,s=0,r=0;this._disposables.add(this._resizable.onDidWillResize(()=>{i=this._topLeft,n=this._resizable.size})),this._disposables.add(this._resizable.onDidResize(a=>{if(i&&n){this.widget.layout(a.dimension.width,a.dimension.height);let l=!1;a.west&&(r=n.width-a.dimension.width,l=!0),a.north&&(s=n.height-a.dimension.height,l=!0),l&&this._applyTopLeft({top:i.top+s,left:i.left+r})}a.done&&(i=void 0,n=void 0,s=0,r=0,this._userSize=a.dimension)})),this._disposables.add(this.widget.onDidChangeContents(()=>{var a;this._anchorBox&&this._placeAtAnchor(this._anchorBox,(a=this._userSize)!==null&&a!==void 0?a:this.widget.size,this._preferAlignAtTop)}))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return this._topLeft?{preference:this._topLeft}:null}show(){this._added||(this._editor.addOverlayWidget(this),this._added=!0)}hide(e=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),e&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(e,t){var i;const n=e.getBoundingClientRect();this._anchorBox=n,this._preferAlignAtTop=t,this._placeAtAnchor(this._anchorBox,(i=this._userSize)!==null&&i!==void 0?i:this.widget.size,t)}_placeAtAnchor(e,t,i){var n;const s=Jd(this.getDomNode().ownerDocument.body),r=this.widget.getLayoutInfo(),a=new Ct(220,2*r.lineHeight),l=e.top,d=function(){const L=s.width-(e.left+e.width+r.borderWidth+r.horizontalPadding),D=-r.borderWidth+e.left+e.width,I=new Ct(L,s.height-e.top-r.borderHeight-r.verticalPadding),T=I.with(void 0,e.top+e.height-r.borderHeight-r.verticalPadding);return{top:l,left:D,fit:L-t.width,maxSizeTop:I,maxSizeBottom:T,minSize:a.with(Math.min(L,a.width))}}(),c=function(){const L=e.left-r.borderWidth-r.horizontalPadding,D=Math.max(r.horizontalPadding,e.left-t.width-r.borderWidth),I=new Ct(L,s.height-e.top-r.borderHeight-r.verticalPadding),T=I.with(void 0,e.top+e.height-r.borderHeight-r.verticalPadding);return{top:l,left:D,fit:L-t.width,maxSizeTop:I,maxSizeBottom:T,minSize:a.with(Math.min(L,a.width))}}(),h=function(){const L=e.left,D=-r.borderWidth+e.top+e.height,I=new Ct(e.width-r.borderHeight,s.height-e.top-e.height-r.verticalPadding);return{top:D,left:L,fit:I.height-t.height,maxSizeBottom:I,maxSizeTop:I,minSize:a.with(I.width)}}(),u=[d,c,h],g=(n=u.find(L=>L.fit>=0))!==null&&n!==void 0?n:u.sort((L,D)=>D.fit-L.fit)[0],f=e.top+e.height-r.borderHeight;let p,_=t.height;const v=Math.max(g.maxSizeTop.height,g.maxSizeBottom.height);_>v&&(_=v);let b;i?_<=g.maxSizeTop.height?(p=!0,b=g.maxSizeTop):(p=!1,b=g.maxSizeBottom):_<=g.maxSizeBottom.height?(p=!1,b=g.maxSizeBottom):(p=!0,b=g.maxSizeTop);let{top:C,left:w}=g;!p&&_>e.height&&(C=f-_);const S=this._editor.getDomNode();if(S){const L=S.getBoundingClientRect();C-=L.top,w-=L.left}this._applyTopLeft({left:w,top:C}),this._resizable.enableSashes(!p,g===d,p,g!==d),this._resizable.minSize=g.minSize,this._resizable.maxSize=b,this._resizable.layout(_,Math.min(b.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this._editor.layoutOverlayWidget(this)}}var yl;(function(o){o[o.FILE=0]="FILE",o[o.FOLDER=1]="FOLDER",o[o.ROOT_FOLDER=2]="ROOT_FOLDER"})(yl||(yl={}));const x0e=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function R1(o,e,t,i,n){if(Te.isThemeIcon(n))return[`codicon-${n.id}`,"predefined-file-icon"];if(ke.isUri(n))return[];const s=i===yl.ROOT_FOLDER?["rootfolder-icon"]:i===yl.FOLDER?["folder-icon"]:["file-icon"];if(t){let r;if(t.scheme===Oe.data)r=Dh.parseMetaData(t).get(Dh.META_DATA_LABEL);else{const a=t.path.match(x0e);a?(r=A1(a[2].toLowerCase()),a[1]&&s.push(`${A1(a[1].toLowerCase())}-name-dir-icon`)):r=A1(t.authority.toLowerCase())}if(i===yl.ROOT_FOLDER)s.push(`${r}-root-name-folder-icon`);else if(i===yl.FOLDER)s.push(`${r}-name-folder-icon`);else{if(r){if(s.push(`${r}-name-file-icon`),s.push("name-file-icon"),r.length<=255){const l=r.split(".");for(let d=1;d=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},nI=function(o,e){return function(t,i){e(t,i,o)}},wc;function NU(o){return`suggest-aria-id:${o}`}const I0e=_i("suggest-more-info",oe.chevronRight,m("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),E0e=new(wc=class{extract(e,t){if(e.textLabel.match(wc._regexStrict))return t[0]=e.textLabel,!0;if(e.completion.detail&&e.completion.detail.match(wc._regexStrict))return t[0]=e.completion.detail,!0;if(e.completion.documentation){const i=typeof e.completion.documentation=="string"?e.completion.documentation:e.completion.documentation.value,n=wc._regexRelaxed.exec(i);if(n&&(n.index===0||n.index+n[0].length===i.length))return t[0]=n[0],!0}return!1}},wc._regexRelaxed=/(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/,wc._regexStrict=new RegExp(`^${wc._regexRelaxed.source}$`,"i"),wc);let YM=class{constructor(e,t,i,n){this._editor=e,this._modelService=t,this._languageService=i,this._themeService=n,this._onDidToggleDetails=new O,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(e){const t=new G,i=e;i.classList.add("show-file-icons");const n=Q(e,te(".icon")),s=Q(n,te("span.colorspan")),r=Q(e,te(".contents")),a=Q(r,te(".main")),l=Q(a,te(".icon-label.codicon")),d=Q(a,te("span.left")),c=Q(a,te("span.right")),h=new QS(d,{supportHighlights:!0,supportIcons:!0});t.add(h);const u=Q(d,te("span.signature-label")),g=Q(d,te("span.qualifier-label")),f=Q(c,te("span.details-label")),p=Q(c,te("span.readMore"+Te.asCSSSelector(I0e)));return p.title=m("readMore","Read More"),{root:i,left:d,right:c,icon:n,colorspan:s,iconLabel:h,iconContainer:l,parametersLabel:u,qualifierLabel:g,detailsLabel:f,readMore:p,disposables:t,configureFont:()=>{const v=this._editor.getOptions(),b=v.get(50),C=b.getMassagedFontFamily(),w=b.fontFeatureSettings,S=v.get(119)||b.fontSize,L=v.get(120)||b.lineHeight,D=b.fontWeight,I=b.letterSpacing,T=`${S}px`,V=`${L}px`,P=`${I}px`;i.style.fontSize=T,i.style.fontWeight=D,i.style.letterSpacing=P,a.style.fontFamily=C,a.style.fontFeatureSettings=w,a.style.lineHeight=V,n.style.height=V,n.style.width=V,p.style.height=V,p.style.width=V}}}renderElement(e,t,i){i.configureFont();const{completion:n}=e;i.root.id=NU(t),i.colorspan.style.backgroundColor="";const s={labelEscapeNewLines:!0,matches:U0(e.score)},r=[];if(n.kind===19&&E0e.extract(e,r))i.icon.className="icon customcolor",i.iconContainer.className="icon hide",i.colorspan.style.backgroundColor=r[0];else if(n.kind===20&&this._themeService.getFileIconTheme().hasFileIcons){i.icon.className="icon hide",i.iconContainer.className="icon hide";const a=R1(this._modelService,this._languageService,ke.from({scheme:"fake",path:e.textLabel}),yl.FILE),l=R1(this._modelService,this._languageService,ke.from({scheme:"fake",path:n.detail}),yl.FILE);s.extraClasses=a.length>l.length?a:l}else n.kind===23&&this._themeService.getFileIconTheme().hasFolderIcons?(i.icon.className="icon hide",i.iconContainer.className="icon hide",s.extraClasses=[R1(this._modelService,this._languageService,ke.from({scheme:"fake",path:e.textLabel}),yl.FOLDER),R1(this._modelService,this._languageService,ke.from({scheme:"fake",path:n.detail}),yl.FOLDER)].flat()):(i.icon.className="icon hide",i.iconContainer.className="",i.iconContainer.classList.add("suggest-icon",...Te.asClassNameArray(Vv.toIcon(n.kind))));n.tags&&n.tags.indexOf(1)>=0&&(s.extraClasses=(s.extraClasses||[]).concat(["deprecated"]),s.matches=[]),i.iconLabel.setLabel(e.textLabel,void 0,s),typeof n.label=="string"?(i.parametersLabel.textContent="",i.detailsLabel.textContent=sI(n.detail||""),i.root.classList.add("string-label")):(i.parametersLabel.textContent=sI(n.label.detail||""),i.detailsLabel.textContent=sI(n.label.description||""),i.root.classList.remove("string-label")),this._editor.getOption(118).showInlineDetails?eo(i.detailsLabel):gs(i.detailsLabel),QP(e)?(i.right.classList.add("can-expand-details"),eo(i.readMore),i.readMore.onmousedown=a=>{a.stopPropagation(),a.preventDefault()},i.readMore.onclick=a=>{a.stopPropagation(),a.preventDefault(),this._onDidToggleDetails.fire()}):(i.right.classList.remove("can-expand-details"),gs(i.readMore),i.readMore.onmousedown=null,i.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};YM=k0e([nI(1,ai),nI(2,si),nI(3,Ji)],YM);function sI(o){return o.replace(/\r\n|\r|\n/g,"")}var N0e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},P1=function(o,e){return function(t,i){e(t,i,o)}},Pf;N("editorSuggestWidget.background",{dark:Ti,light:Ti,hcDark:Ti,hcLight:Ti},m("editorSuggestWidgetBackground","Background color of the suggest widget."));N("editorSuggestWidget.border",{dark:kd,light:kd,hcDark:kd,hcLight:kd},m("editorSuggestWidgetBorder","Border color of the suggest widget."));const O1=N("editorSuggestWidget.foreground",{dark:nr,light:nr,hcDark:nr,hcLight:nr},m("editorSuggestWidgetForeground","Foreground color of the suggest widget."));N("editorSuggestWidget.selectedForeground",{dark:Kc,light:Kc,hcDark:Kc,hcLight:Kc},m("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget."));N("editorSuggestWidget.selectedIconForeground",{dark:Gf,light:Gf,hcDark:Gf,hcLight:Gf},m("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget."));const T0e=N("editorSuggestWidget.selectedBackground",{dark:qc,light:qc,hcDark:qc,hcLight:qc},m("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget."));N("editorSuggestWidget.highlightForeground",{dark:Or,light:Or,hcDark:Or,hcLight:Or},m("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget."));N("editorSuggestWidget.focusHighlightForeground",{dark:RC,light:RC,hcDark:RC,hcLight:RC},m("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused."));N("editorSuggestWidgetStatus.foreground",{dark:Se(O1,.5),light:Se(O1,.5),hcDark:Se(O1,.5),hcLight:Se(O1,.5)},m("editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status."));class M0e{constructor(e,t){this._service=e,this._key=`suggestWidget.size/${t.getEditorType()}/${t instanceof Ph}`}restore(){var e;const t=(e=this._service.get(this._key,0))!==null&&e!==void 0?e:"";try{const i=JSON.parse(t);if(Ct.is(i))return Ct.lift(i)}catch{}}store(e){this._service.store(this._key,JSON.stringify(e),0,1)}reset(){this._service.remove(this._key,0)}}let r0=Pf=class{constructor(e,t,i,n,s){this.editor=e,this._storageService=t,this._state=0,this._isAuto=!1,this._pendingLayout=new ln,this._pendingShowDetails=new ln,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new jr,this._disposables=new G,this._onDidSelect=new dg,this._onDidFocus=new dg,this._onDidHide=new O,this._onDidShow=new O,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new O,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new AP,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new R0e(this,e),this._persistedSize=new M0e(t,e);class r{constructor(g,f,p=!1,_=!1){this.persistedSize=g,this.currentSize=f,this.persistHeight=p,this.persistWidth=_}}let a;this._disposables.add(this.element.onDidWillResize(()=>{this._contentWidget.lockPreference(),a=new r(this._persistedSize.restore(),this.element.size)})),this._disposables.add(this.element.onDidResize(u=>{var g,f,p,_;if(this._resize(u.dimension.width,u.dimension.height),a&&(a.persistHeight=a.persistHeight||!!u.north||!!u.south,a.persistWidth=a.persistWidth||!!u.east||!!u.west),!!u.done){if(a){const{itemHeight:v,defaultSize:b}=this.getLayoutInfo(),C=Math.round(v/2);let{width:w,height:S}=this.element.size;(!a.persistHeight||Math.abs(a.currentSize.height-S)<=C)&&(S=(f=(g=a.persistedSize)===null||g===void 0?void 0:g.height)!==null&&f!==void 0?f:b.height),(!a.persistWidth||Math.abs(a.currentSize.width-w)<=C)&&(w=(_=(p=a.persistedSize)===null||p===void 0?void 0:p.width)!==null&&_!==void 0?_:b.width),this._persistedSize.store(new Ct(w,S))}this._contentWidget.unlockPreference(),a=void 0}})),this._messageElement=Q(this.element.domNode,te(".message")),this._listElement=Q(this.element.domNode,te(".tree"));const l=this._disposables.add(s.createInstance(ZM,this.editor));l.onDidClose(this.toggleDetails,this,this._disposables),this._details=new L0e(l,this.editor);const d=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(118).showIcons);d();const c=s.createInstance(YM,this.editor);this._disposables.add(c),this._disposables.add(c.onDidToggleDetails(()=>this.toggleDetails())),this._list=new $o("SuggestWidget",this._listElement,{getHeight:u=>this.getLayoutInfo().itemHeight,getTemplateId:u=>"suggestion"},[c],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>m("suggest","Suggest"),getWidgetRole:()=>"listbox",getAriaLabel:u=>{let g=u.textLabel;if(typeof u.completion.label!="string"){const{detail:v,description:b}=u.completion.label;v&&b?g=m("label.full","{0} {1}, {2}",g,v,b):v?g=m("label.detail","{0} {1}",g,v):b&&(g=m("label.desc","{0}, {1}",g,b))}if(!u.isResolved||!this._isDetailsVisible())return g;const{documentation:f,detail:p}=u.completion,_=cg("{0}{1}",p||"",f?typeof f=="string"?f:f.value:"");return m("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",g,_)}}}),this._list.style(Qg({listInactiveFocusBackground:T0e,listInactiveFocusOutline:ti})),this._status=s.createInstance(GM,this.element.domNode,fh);const h=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(118).showStatusBar);h(),this._disposables.add(n.onDidColorThemeChange(u=>this._onThemeChange(u))),this._onThemeChange(n.getColorTheme()),this._disposables.add(this._list.onMouseDown(u=>this._onListMouseDownOrTap(u))),this._disposables.add(this._list.onTap(u=>this._onListMouseDownOrTap(u))),this._disposables.add(this._list.onDidChangeSelection(u=>this._onListSelection(u))),this._disposables.add(this._list.onDidChangeFocus(u=>this._onListFocus(u))),this._disposables.add(this.editor.onDidChangeCursorSelection(()=>this._onCursorSelectionChanged())),this._disposables.add(this.editor.onDidChangeConfiguration(u=>{u.hasChanged(118)&&(h(),d()),this._completionModel&&(u.hasChanged(50)||u.hasChanged(119)||u.hasChanged(120))&&this._list.splice(0,this._list.length,this._completionModel.items)})),this._ctxSuggestWidgetVisible=Qe.Visible.bindTo(i),this._ctxSuggestWidgetDetailsVisible=Qe.DetailsVisible.bindTo(i),this._ctxSuggestWidgetMultipleSuggestions=Qe.MultipleSuggestions.bindTo(i),this._ctxSuggestWidgetHasFocusedSuggestion=Qe.HasFocusedSuggestion.bindTo(i),this._disposables.add(Si(this._details.widget.domNode,"keydown",u=>{this._onDetailsKeydown.fire(u)})),this._disposables.add(this.editor.onMouseDown(u=>this._onEditorMouseDown(u)))}dispose(){var e;this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),(e=this._loadingTimeout)===null||e===void 0||e.dispose(),this._pendingLayout.dispose(),this._pendingShowDetails.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(e){this._details.widget.domNode.contains(e.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(e.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){this._state!==0&&this._contentWidget.layout()}_onListMouseDownOrTap(e){typeof e.element>"u"||typeof e.index>"u"||(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this._select(e.element,e.index))}_onListSelection(e){e.elements.length&&this._select(e.elements[0],e.indexes[0])}_select(e,t){const i=this._completionModel;i&&(this._onDidSelect.fire({item:e,index:t,model:i}),this.editor.focus())}_onThemeChange(e){this._details.widget.borderWidth=Sa(e.type)?2:1}_onListFocus(e){var t;if(this._ignoreFocusEvents)return;if(!e.elements.length){this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0}),this._ctxSuggestWidgetHasFocusedSuggestion.set(!1);return}if(!this._completionModel)return;this._ctxSuggestWidgetHasFocusedSuggestion.set(!0);const i=e.elements[0],n=e.indexes[0];i!==this._focusedItem&&((t=this._currentSuggestionDetails)===null||t===void 0||t.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=i,this._list.reveal(n),this._currentSuggestionDetails=an(async s=>{const r=Sh(()=>{this._isDetailsVisible()&&this.showDetails(!0)},250),a=s.onCancellationRequested(()=>r.dispose());try{return await i.resolve(s)}finally{r.dispose(),a.dispose()}}),this._currentSuggestionDetails.then(()=>{n>=this._list.length||i!==this._list.element(n)||(this._ignoreFocusEvents=!0,this._list.splice(n,1,[i]),this._list.setFocus([n]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:NU(n)}))}).catch(ze)),this._onDidFocus.fire({item:i,index:n,model:this._completionModel})}_setState(e){if(this._state!==e)switch(this._state=e,this.element.domNode.classList.toggle("frozen",e===4),this.element.domNode.classList.remove("message"),e){case 0:gs(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._ctxSuggestWidgetHasFocusedSuggestion.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=Pf.LOADING_MESSAGE,gs(this._listElement,this._status.element),eo(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,Al(Pf.LOADING_MESSAGE);break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=Pf.NO_SUGGESTIONS_MESSAGE,gs(this._listElement,this._status.element),eo(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,Al(Pf.NO_SUGGESTIONS_MESSAGE);break;case 3:gs(this._messageElement),eo(this._listElement,this._status.element),this._show();break;case 4:gs(this._messageElement),eo(this._listElement,this._status.element),this._show();break;case 5:gs(this._messageElement),eo(this._listElement,this._status.element),this._details.show(),this._show();break}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet(()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)},100)}showTriggered(e,t){this._state===0&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!e,this._isAuto||(this._loadingTimeout=Sh(()=>this._setState(1),t)))}showSuggestions(e,t,i,n,s){var r,a;if(this._contentWidget.setPosition(this.editor.getPosition()),(r=this._loadingTimeout)===null||r===void 0||r.dispose(),(a=this._currentSuggestionDetails)===null||a===void 0||a.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),i&&this._state!==2&&this._state!==0){this._setState(4);return}const l=this._completionModel.items.length,d=l===0;if(this._ctxSuggestWidgetMultipleSuggestions.set(l>1),d){this._setState(n?0:2),this._completionModel=void 0;return}this._focusedItem=void 0,this._onDidFocus.pause(),this._onDidSelect.pause();try{this._list.splice(0,this._list.length,this._completionModel.items),this._setState(i?4:3),this._list.reveal(t,0),this._list.setFocus(s?[]:[t])}finally{this._onDidFocus.resume(),this._onDidSelect.resume()}this._pendingLayout.value=qw(De(this.element.domNode),()=>{this._pendingLayout.clear(),this._layout(this.element.size),this._details.widget.domNode.classList.remove("focused")})}focusSelected(){this._list.length>0&&this._list.setFocus([0])}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(this._state!==0&&this._state!==2&&this._state!==1&&this._completionModel&&this._list.getFocus().length>0)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){this._state===5?(this._setState(3),this._details.widget.domNode.classList.remove("focused")):this._state===3&&this._isDetailsVisible()&&(this._setState(5),this._details.widget.domNode.classList.add("focused"))}toggleDetails(){this._isDetailsVisible()?(this._pendingShowDetails.clear(),this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):(QP(this._list.getFocusedElements()[0])||this._explainMode)&&(this._state===3||this._state===5||this._state===4)&&(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(e){this._pendingShowDetails.value=qw(De(this.element.domNode),()=>{this._pendingShowDetails.clear(),this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._details.widget.isEmpty?this._details.hide():(this._positionDetails(),this.element.domNode.classList.add("shows-details")),this.editor.focus()})}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){var e;this._pendingLayout.clear(),this._pendingShowDetails.clear(),(e=this._loadingTimeout)===null||e===void 0||e.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();const t=this._persistedSize.restore(),i=Math.ceil(this.getLayoutInfo().itemHeight*4.3);t&&t.heightd&&(l=d);const c=this._completionModel?this._completionModel.stats.pLabelLen*r.typicalHalfwidthCharacterWidth:l,h=r.statusBarHeight+this._list.contentHeight+r.borderHeight,u=r.itemHeight+r.statusBarHeight,g=Oi(this.editor.getDomNode()),f=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),p=g.top+f.top+f.height,_=Math.min(s.height-p-r.verticalPadding,h),v=g.top+f.top-r.verticalPadding,b=Math.min(v,h);let C=Math.min(Math.max(b,_)+r.borderHeight,h);a===((t=this._cappedHeight)===null||t===void 0?void 0:t.capped)&&(a=this._cappedHeight.wanted),aC&&(a=C),a>_||this._forceRenderingAbove&&v>150?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),C=b):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),C=_),this.element.preferredSize=new Ct(c,r.defaultSize.height),this.element.maxSize=new Ct(d,C),this.element.minSize=new Ct(220,u),this._cappedHeight=a===h?{wanted:(n=(i=this._cappedHeight)===null||i===void 0?void 0:i.wanted)!==null&&n!==void 0?n:e.height,capped:a}:void 0}this._resize(l,a)}_resize(e,t){const{width:i,height:n}=this.element.maxSize;e=Math.min(i,e),t=Math.min(n,t);const{statusBarHeight:s}=this.getLayoutInfo();this._list.layout(t-s,e),this._listElement.style.height=`${t-s}px`,this.element.layout(t,e),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){var e;this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode,((e=this._contentWidget.getPosition())===null||e===void 0?void 0:e.preference[0])===2)}getLayoutInfo(){const e=this.editor.getOption(50),t=hs(this.editor.getOption(120)||e.lineHeight,8,1e3),i=!this.editor.getOption(118).showStatusBar||this._state===2||this._state===1?0:t,n=this._details.widget.borderWidth,s=2*n;return{itemHeight:t,statusBarHeight:i,borderWidth:n,borderHeight:s,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new Ct(430,i+12*t+s)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(e){this._storageService.store("expandSuggestionDocs",e,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}};r0.LOADING_MESSAGE=m("suggestWidget.loading","Loading...");r0.NO_SUGGESTIONS_MESSAGE=m("suggestWidget.noSuggestions","No suggestions.");r0=Pf=N0e([P1(1,Kr),P1(2,Me),P1(3,Ji),P1(4,Le)],r0);class R0e{constructor(e,t){this._widget=e,this._editor=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return this._hidden||!this._position||!this._preference?null:{position:this._position,preference:[this._preference]}}beforeRender(){const{height:e,width:t}=this._widget.element.size,{borderWidth:i,horizontalPadding:n}=this._widget.getLayoutInfo();return new Ct(t+2*i+n,e+2*i)}afterRender(e){this._widget._afterRender(e)}setPreference(e){this._preferenceLocked||(this._preference=e)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(e){this._position=e}}var A0e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Lf=function(o,e){return function(t,i){e(t,i,o)}},QM;class P0e{constructor(e,t){if(this._model=e,this._position=t,this._decorationOptions=je.register({description:"suggest-line-suffix",stickiness:1}),e.getLineMaxColumn(t.lineNumber)!==t.column){const n=e.getOffsetAt(t),s=e.getPositionAt(n+1);e.changeDecorations(r=>{this._marker&&r.removeDecoration(this._marker),this._marker=r.addDecoration(x.fromPositions(t,s),this._decorationOptions)})}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.changeDecorations(e=>{e.removeDecoration(this._marker),this._marker=void 0})}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){const t=this._model.getDecorationRange(this._marker);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}else return this._model.getLineMaxColumn(e.lineNumber)-e.column}}let Fr=QM=class{static get(e){return e.getContribution(QM.ID)}constructor(e,t,i,n,s,r,a){this._memoryService=t,this._commandService=i,this._contextKeyService=n,this._instantiationService=s,this._logService=r,this._telemetryService=a,this._lineSuffix=new ln,this._toDispose=new G,this._selectors=new O0e(h=>h.priority),this._onWillInsertSuggestItem=new O,this.onWillInsertSuggestItem=this._onWillInsertSuggestItem.event,this.editor=e,this.model=s.createInstance(Ty,this.editor),this._selectors.register({priority:0,select:(h,u,g)=>this._memoryService.select(h,u,g)});const l=Qe.InsertMode.bindTo(n);l.set(e.getOption(118).insertMode),this._toDispose.add(this.model.onDidTrigger(()=>l.set(e.getOption(118).insertMode))),this.widget=this._toDispose.add(new CD(De(e.getDomNode()),()=>{const h=this._instantiationService.createInstance(r0,this.editor);this._toDispose.add(h),this._toDispose.add(h.onDidSelect(_=>this._insertSuggestion(_,0),this));const u=new p0e(this.editor,h,this.model,_=>this._insertSuggestion(_,2));this._toDispose.add(u);const g=Qe.MakesTextEdit.bindTo(this._contextKeyService),f=Qe.HasInsertAndReplaceRange.bindTo(this._contextKeyService),p=Qe.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add(Ce(()=>{g.reset(),f.reset(),p.reset()})),this._toDispose.add(h.onDidFocus(({item:_})=>{const v=this.editor.getPosition(),b=_.editStart.column,C=v.column;let w=!0;this.editor.getOption(1)==="smart"&&this.model.state===2&&!_.completion.additionalTextEdits&&!(_.completion.insertTextRules&4)&&C-b===_.completion.insertText.length&&(w=this.editor.getModel().getValueInRange({startLineNumber:v.lineNumber,startColumn:b,endLineNumber:v.lineNumber,endColumn:C})!==_.completion.insertText),g.set(w),f.set(!F.equals(_.editInsertEnd,_.editReplaceEnd)),p.set(!!_.provider.resolveCompletionItem||!!_.completion.documentation||_.completion.detail!==_.completion.label)})),this._toDispose.add(h.onDetailsKeyDown(_=>{if(_.toKeyCodeChord().equals(new Qd(!0,!1,!1,!1,33))||it&&_.toKeyCodeChord().equals(new Qd(!1,!1,!1,!0,33))){_.stopPropagation();return}_.toKeyCodeChord().isModifierKey()||this.editor.focus()})),h})),this._overtypingCapturer=this._toDispose.add(new CD(De(e.getDomNode()),()=>this._toDispose.add(new Rx(this.editor,this.model)))),this._alternatives=this._toDispose.add(new CD(De(e.getDomNode()),()=>this._toDispose.add(new Pg(this.editor,this._contextKeyService)))),this._toDispose.add(s.createInstance(o0,e)),this._toDispose.add(this.model.onDidTrigger(h=>{this.widget.value.showTriggered(h.auto,h.shy?250:50),this._lineSuffix.value=new P0e(this.editor.getModel(),h.position)})),this._toDispose.add(this.model.onDidSuggest(h=>{if(h.triggerOptions.shy)return;let u=-1;for(const f of this._selectors.itemsOrderedByPriorityDesc)if(u=f.select(this.editor.getModel(),this.editor.getPosition(),h.completionModel.items),u!==-1)break;if(u===-1&&(u=0),this.model.state===0)return;let g=!1;if(h.triggerOptions.auto){const f=this.editor.getOption(118);f.selectionMode==="never"||f.selectionMode==="always"?g=f.selectionMode==="never":f.selectionMode==="whenTriggerCharacter"?g=h.triggerOptions.triggerKind!==1:f.selectionMode==="whenQuickSuggestion"&&(g=h.triggerOptions.triggerKind===1&&!h.triggerOptions.refilter)}this.widget.value.showSuggestions(h.completionModel,u,h.isFrozen,h.triggerOptions.auto,g)})),this._toDispose.add(this.model.onDidCancel(h=>{h.retrigger||this.widget.value.hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(()=>{this.model.cancel(),this.model.clear()}));const d=Qe.AcceptSuggestionsOnEnter.bindTo(n),c=()=>{const h=this.editor.getOption(1);d.set(h==="on"||h==="smart")};this._toDispose.add(this.editor.onDidChangeConfiguration(()=>c())),c()}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose(),this._onWillInsertSuggestItem.dispose()}_insertSuggestion(e,t){if(!e||!e.item){this._alternatives.value.reset(),this.model.cancel(),this.model.clear();return}if(!this.editor.hasModel())return;const i=En.get(this.editor);if(!i)return;this._onWillInsertSuggestItem.fire({item:e.item});const n=this.editor.getModel(),s=n.getAlternativeVersionId(),{item:r}=e,a=[],l=new ci;t&1||this.editor.pushUndoStop();const d=this.getOverwriteInfo(r,!!(t&8));this._memoryService.memorize(n,this.editor.getPosition(),r);const c=r.isResolved;let h=-1,u=-1;if(Array.isArray(r.completion.additionalTextEdits)){this.model.cancel();const f=Pa.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",r.completion.additionalTextEdits.map(p=>{let _=x.lift(p.range);if(_.startLineNumber===r.position.lineNumber&&_.startColumn>r.position.column){const v=this.editor.getPosition().column-r.position.column,b=v,C=x.spansMultipleLines(_)?0:v;_=new x(_.startLineNumber,_.startColumn+b,_.endLineNumber,_.endColumn+C)}return ri.replaceMove(_,p.text)})),f.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!c){const f=new In;let p;const _=n.onDidChangeContent(w=>{if(w.isFlush){l.cancel(),_.dispose();return}for(const S of w.changes){const L=x.getEndPosition(S.range);(!p||F.isBefore(L,p))&&(p=L)}}),v=t;t|=2;let b=!1;const C=this.editor.onWillType(()=>{C.dispose(),b=!0,v&2||this.editor.pushUndoStop()});a.push(r.resolve(l.token).then(()=>{if(!r.completion.additionalTextEdits||l.token.isCancellationRequested)return;if(p&&r.completion.additionalTextEdits.some(S=>F.isBefore(p,x.getStartPosition(S.range))))return!1;b&&this.editor.pushUndoStop();const w=Pa.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",r.completion.additionalTextEdits.map(S=>ri.replaceMove(x.lift(S.range),S.text))),w.restoreRelativeVerticalPositionOfCursor(this.editor),(b||!(v&2))&&this.editor.pushUndoStop(),!0}).then(w=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",f.elapsed(),w),u=w===!0?1:w===!1?0:-2}).finally(()=>{_.dispose(),C.dispose()}))}let{insertText:g}=r.completion;if(r.completion.insertTextRules&4||(g=kg.escape(g)),this.model.cancel(),i.insert(g,{overwriteBefore:d.overwriteBefore,overwriteAfter:d.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(r.completion.insertTextRules&1),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),t&2||this.editor.pushUndoStop(),r.completion.command)if(r.completion.command.id===gC.id)this.model.trigger({auto:!0,retrigger:!0});else{const f=new In;a.push(this._commandService.executeCommand(r.completion.command.id,...r.completion.command.arguments?[...r.completion.command.arguments]:[]).catch(p=>{r.completion.extensionId?yi(p):ze(p)}).finally(()=>{h=f.elapsed()}))}t&4&&this._alternatives.value.set(e,f=>{for(l.cancel();n.canUndo();){s!==n.getAlternativeVersionId()&&n.undo(),this._insertSuggestion(f,3|(t&8?8:0));break}}),this._alertCompletionItem(r),Promise.all(a).finally(()=>{this._reportSuggestionAcceptedTelemetry(r,n,c,h,u),this.model.clear(),l.dispose()})}_reportSuggestionAcceptedTelemetry(e,t,i,n,s){var r,a,l;Math.floor(Math.random()*100)!==0&&this._telemetryService.publicLog2("suggest.acceptedSuggestion",{extensionId:(a=(r=e.extensionId)===null||r===void 0?void 0:r.value)!==null&&a!==void 0?a:"unknown",providerId:(l=e.provider._debugDisplayName)!==null&&l!==void 0?l:"unknown",kind:e.completion.kind,basenameHash:$y(cr(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:Tie(t.uri),resolveInfo:e.provider.resolveCompletionItem?i?1:0:-1,resolveDuration:e.resolveDuration,commandDuration:n,additionalEditsAsync:s})}getOverwriteInfo(e,t){pt(this.editor.hasModel());let i=this.editor.getOption(118).insertMode==="replace";t&&(i=!i);const n=e.position.column-e.editStart.column,s=(i?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column,r=this.editor.getPosition().column-e.position.column,a=this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0;return{overwriteBefore:n+r,overwriteAfter:s+a}}_alertCompletionItem(e){if(jn(e.completion.additionalTextEdits)){const t=m("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);js(t)}}triggerSuggest(e,t,i){this.editor.hasModel()&&(this.model.trigger({auto:t??!1,completionOptions:{providerFilter:e,kindFilter:i?new Set:void 0}}),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;const t=this.editor.getPosition(),i=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},n=s=>{if(s.completion.insertTextRules&4||s.completion.additionalTextEdits)return!0;const r=this.editor.getPosition(),a=s.editStart.column,l=r.column;return l-a!==s.completion.insertText.length?!0:this.editor.getModel().getValueInRange({startLineNumber:r.lineNumber,startColumn:a,endLineNumber:r.lineNumber,endColumn:l})!==s.completion.insertText};ae.once(this.model.onDidTrigger)(s=>{const r=[];ae.any(this.model.onDidTrigger,this.model.onDidCancel)(()=>{Pt(r),i()},void 0,r),this.model.onDidSuggest(({completionModel:a})=>{if(Pt(r),a.items.length===0){i();return}const l=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),a.items),d=a.items[l];if(!n(d)){i();return}this.editor.pushUndoStop(),this._insertSuggestion({index:l,item:d,model:a},7)},void 0,r)}),this.model.trigger({auto:!1,shy:!0}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){const i=this.widget.value.getFocusedItem();let n=0;e&&(n|=4),t&&(n|=8),this._insertSuggestion(i,n)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}focusSuggestion(){this.widget.value.focusSelected()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){this.widget.isInitialized&&this.widget.value.stopForceRenderingAbove()}registerSelector(e){return this._selectors.register(e)}};Fr.ID="editor.contrib.suggestController";Fr=QM=A0e([Lf(1,Mx),Lf(2,Qt),Lf(3,Me),Lf(4,Le),Lf(5,qn),Lf(6,Bn)],Fr);class O0e{constructor(e){this.prioritySelector=e,this._items=new Array}register(e){if(this._items.indexOf(e)!==-1)throw new Error("Value is already registered");return this._items.push(e),this._items.sort((t,i)=>this.prioritySelector(i)-this.prioritySelector(t)),{dispose:()=>{const t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}}class gC extends ce{constructor(){super({id:gC.id,label:m("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:K.and(E.writable,E.hasCompletionItemProvider,Qe.Visible.toNegated()),kbOpts:{kbExpr:E.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,i){const n=Fr.get(t);if(!n)return;let s;i&&typeof i=="object"&&i.auto===!0&&(s=!0),n.triggerSuggest(void 0,s,void 0)}}gC.id="editor.action.triggerSuggest";vt(Fr.ID,Fr,2);J(gC);const Ho=190,Rs=Xi.bindToContribution(Fr.get);le(new Rs({id:"acceptSelectedSuggestion",precondition:K.and(Qe.Visible,Qe.HasFocusedSuggestion),handler(o){o.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:K.and(Qe.Visible,E.textInputFocus),weight:Ho},{primary:3,kbExpr:K.and(Qe.Visible,E.textInputFocus,Qe.AcceptSuggestionsOnEnter,Qe.MakesTextEdit),weight:Ho}],menuOpts:[{menuId:fh,title:m("accept.insert","Insert"),group:"left",order:1,when:Qe.HasInsertAndReplaceRange.toNegated()},{menuId:fh,title:m("accept.insert","Insert"),group:"left",order:1,when:K.and(Qe.HasInsertAndReplaceRange,Qe.InsertMode.isEqualTo("insert"))},{menuId:fh,title:m("accept.replace","Replace"),group:"left",order:1,when:K.and(Qe.HasInsertAndReplaceRange,Qe.InsertMode.isEqualTo("replace"))}]}));le(new Rs({id:"acceptAlternativeSelectedSuggestion",precondition:K.and(Qe.Visible,E.textInputFocus,Qe.HasFocusedSuggestion),kbOpts:{weight:Ho,kbExpr:E.textInputFocus,primary:1027,secondary:[1026]},handler(o){o.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:fh,group:"left",order:2,when:K.and(Qe.HasInsertAndReplaceRange,Qe.InsertMode.isEqualTo("insert")),title:m("accept.replace","Replace")},{menuId:fh,group:"left",order:2,when:K.and(Qe.HasInsertAndReplaceRange,Qe.InsertMode.isEqualTo("replace")),title:m("accept.insert","Insert")}]}));ct.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion");le(new Rs({id:"hideSuggestWidget",precondition:Qe.Visible,handler:o=>o.cancelSuggestWidget(),kbOpts:{weight:Ho,kbExpr:E.textInputFocus,primary:9,secondary:[1033]}}));le(new Rs({id:"selectNextSuggestion",precondition:K.and(Qe.Visible,K.or(Qe.MultipleSuggestions,Qe.HasFocusedSuggestion.negate())),handler:o=>o.selectNextSuggestion(),kbOpts:{weight:Ho,kbExpr:E.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}}));le(new Rs({id:"selectNextPageSuggestion",precondition:K.and(Qe.Visible,K.or(Qe.MultipleSuggestions,Qe.HasFocusedSuggestion.negate())),handler:o=>o.selectNextPageSuggestion(),kbOpts:{weight:Ho,kbExpr:E.textInputFocus,primary:12,secondary:[2060]}}));le(new Rs({id:"selectLastSuggestion",precondition:K.and(Qe.Visible,K.or(Qe.MultipleSuggestions,Qe.HasFocusedSuggestion.negate())),handler:o=>o.selectLastSuggestion()}));le(new Rs({id:"selectPrevSuggestion",precondition:K.and(Qe.Visible,K.or(Qe.MultipleSuggestions,Qe.HasFocusedSuggestion.negate())),handler:o=>o.selectPrevSuggestion(),kbOpts:{weight:Ho,kbExpr:E.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}}));le(new Rs({id:"selectPrevPageSuggestion",precondition:K.and(Qe.Visible,K.or(Qe.MultipleSuggestions,Qe.HasFocusedSuggestion.negate())),handler:o=>o.selectPrevPageSuggestion(),kbOpts:{weight:Ho,kbExpr:E.textInputFocus,primary:11,secondary:[2059]}}));le(new Rs({id:"selectFirstSuggestion",precondition:K.and(Qe.Visible,K.or(Qe.MultipleSuggestions,Qe.HasFocusedSuggestion.negate())),handler:o=>o.selectFirstSuggestion()}));le(new Rs({id:"focusSuggestion",precondition:K.and(Qe.Visible,Qe.HasFocusedSuggestion.negate()),handler:o=>o.focusSuggestion(),kbOpts:{weight:Ho,kbExpr:E.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}}}));le(new Rs({id:"focusAndAcceptSuggestion",precondition:K.and(Qe.Visible,Qe.HasFocusedSuggestion.negate()),handler:o=>{o.focusSuggestion(),o.acceptSelectedSuggestion(!0,!1)}}));le(new Rs({id:"toggleSuggestionDetails",precondition:K.and(Qe.Visible,Qe.HasFocusedSuggestion),handler:o=>o.toggleSuggestionDetails(),kbOpts:{weight:Ho,kbExpr:E.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:fh,group:"right",order:1,when:K.and(Qe.DetailsVisible,Qe.CanResolve),title:m("detail.more","show less")},{menuId:fh,group:"right",order:1,when:K.and(Qe.DetailsVisible.toNegated(),Qe.CanResolve),title:m("detail.less","show more")}]}));le(new Rs({id:"toggleExplainMode",precondition:Qe.Visible,handler:o=>o.toggleExplainMode(),kbOpts:{weight:100,primary:2138}}));le(new Rs({id:"toggleSuggestionFocus",precondition:Qe.Visible,handler:o=>o.toggleSuggestionFocus(),kbOpts:{weight:Ho,kbExpr:E.textInputFocus,primary:2570,mac:{primary:778}}}));le(new Rs({id:"insertBestCompletion",precondition:K.and(E.textInputFocus,K.equals("config.editor.tabCompletion","on"),o0.AtEnd,Qe.Visible.toNegated(),Pg.OtherSuggestions.toNegated(),En.InSnippetMode.toNegated()),handler:(o,e)=>{o.triggerSuggestAndAcceptBest(_s(e)?{fallback:"tab",...e}:{fallback:"tab"})},kbOpts:{weight:Ho,primary:2}}));le(new Rs({id:"insertNextSuggestion",precondition:K.and(E.textInputFocus,K.equals("config.editor.tabCompletion","on"),Pg.OtherSuggestions,Qe.Visible.toNegated(),En.InSnippetMode.toNegated()),handler:o=>o.acceptNextSuggestion(),kbOpts:{weight:Ho,kbExpr:E.textInputFocus,primary:2}}));le(new Rs({id:"insertPrevSuggestion",precondition:K.and(E.textInputFocus,K.equals("config.editor.tabCompletion","on"),Pg.OtherSuggestions,Qe.Visible.toNegated(),En.InSnippetMode.toNegated()),handler:o=>o.acceptPrevSuggestion(),kbOpts:{weight:Ho,kbExpr:E.textInputFocus,primary:1026}}));J(class extends ce{constructor(){super({id:"editor.action.resetSuggestSize",label:m("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(o,e){var t;(t=Fr.get(e))===null||t===void 0||t.resetWidgetSize()}});class F0e extends W{get selectedItem(){return this._selectedItem}constructor(e,t,i,n){super(),this.editor=e,this.suggestControllerPreselector=t,this.checkModelVersion=i,this.onWillAccept=n,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this._selectedItem=ut(this,void 0),this._register(e.onKeyDown(r=>{r.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))})),this._register(e.onKeyUp(r=>{r.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))}));const s=Fr.get(this.editor);if(s){this._register(s.registerSelector({priority:100,select:(l,d,c)=>{Wt(v=>this.checkModelVersion(v));const h=this.editor.getModel();if(!h)return-1;const u=this.suggestControllerPreselector(),g=u?ag(u,h):void 0;if(!g)return-1;const f=F.lift(d),p=c.map((v,b)=>{const C=Tv.fromSuggestion(s,h,f,v,this.isShiftKeyPressed),w=ag(C.toSingleTextEdit(),h),S=kU(g,w);return{index:b,valid:S,prefixLength:w.text.length,suggestItem:v}}).filter(v=>v&&v.valid&&v.prefixLength>0),_=IA(p,zs(v=>v.prefixLength,Br));return _?_.index:-1}}));let r=!1;const a=()=>{r||(r=!0,this._register(s.widget.value.onDidShow(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})),this._register(s.widget.value.onDidHide(()=>{this.isSuggestWidgetVisible=!1,this.update(!1)})),this._register(s.widget.value.onDidFocus(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})))};this._register(ae.once(s.model.onDidTrigger)(l=>{a()})),this._register(s.onWillInsertSuggestItem(l=>{const d=this.editor.getPosition(),c=this.editor.getModel();if(!d||!c)return;const h=Tv.fromSuggestion(s,c,d,l.item,this.isShiftKeyPressed);this.onWillAccept(h)}))}this.update(this._isActive)}update(e){const t=this.getSuggestItemInfo();(this._isActive!==e||!B0e(this._currentSuggestItemInfo,t))&&(this._isActive=e,this._currentSuggestItemInfo=t,Wt(i=>{this.checkModelVersion(i),this._selectedItem.set(this._isActive?this._currentSuggestItemInfo:void 0,i)}))}getSuggestItemInfo(){const e=Fr.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;const t=e.widget.value.getFocusedItem(),i=this.editor.getPosition(),n=this.editor.getModel();if(!(!t||!i||!n))return Tv.fromSuggestion(e,n,i,t.item,this.isShiftKeyPressed)}stopForceRenderingAbove(){const e=Fr.get(this.editor);e==null||e.stopForceRenderingAbove()}forceRenderingAbove(){const e=Fr.get(this.editor);e==null||e.forceRenderingAbove()}}class Tv{static fromSuggestion(e,t,i,n,s){let{insertText:r}=n.completion,a=!1;if(n.completion.insertTextRules&4){const d=new kg().parse(r);d.children.length<100&&Ny.adjustWhitespace(t,i,!0,d),r=d.toString(),a=!0}const l=e.getOverwriteInfo(n,s);return new Tv(x.fromPositions(i.delta(0,-l.overwriteBefore),i.delta(0,Math.max(l.overwriteAfter,0))),r,n.completion.kind,a)}constructor(e,t,i,n){this.range=e,this.insertText=t,this.completionItemKind=i,this.isSnippetText=n}equals(e){return this.range.equalsRange(e.range)&&this.insertText===e.insertText&&this.completionItemKind===e.completionItemKind&&this.isSnippetText===e.isSnippetText}toSelectedSuggestionInfo(){return new p9(this.range,this.insertText,this.completionItemKind,this.isSnippetText)}toSingleTextEdit(){return new tc(this.range,this.insertText)}}function B0e(o,e){return o===e?!0:!o||!e?!1:o.equals(e)}var W0e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sd=function(o,e){return function(t,i){e(t,i,o)}},XM;let Vo=XM=class extends W{static get(e){return e.getContribution(XM.ID)}constructor(e,t,i,n,s,r,a,l,d,c){super(),this.editor=e,this._instantiationService=t,this._contextKeyService=i,this._configurationService=n,this._commandService=s,this._debounceService=r,this._languageFeaturesService=a,this._accessibilitySignalService=l,this._keybindingService=d,this._accessibilityService=c,this.model=this._register(kb("inlineCompletionModel",void 0)),this._textModelVersionId=ut(this,-1),this._positions=Pae({owner:this,equalsFn:GN(A6())},[new F(1,1)]),this._suggestWidgetAdaptor=this._register(new F0e(this.editor,()=>{var p,_;return(_=(p=this.model.get())===null||p===void 0?void 0:p.selectedInlineCompletion.get())===null||_===void 0?void 0:_.toSingleTextEdit(void 0)},p=>this.updateObservables(p,Co.Other),p=>{Wt(_=>{var v;this.updateObservables(_,Co.Other),(v=this.model.get())===null||v===void 0||v.handleSuggestAccepted(p)})})),this._enabledInConfig=Nt(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(62).enabled),this._isScreenReaderEnabled=Nt(this._accessibilityService.onDidChangeScreenReaderOptimized,()=>this._accessibilityService.isScreenReaderOptimized()),this._editorDictationInProgress=Nt(this._contextKeyService.onDidChangeContext,()=>this._contextKeyService.getContext(this.editor.getDomNode()).getValue("editorDictation.inProgress")===!0),this._enabled=He(this,p=>this._enabledInConfig.read(p)&&(!this._isScreenReaderEnabled.read(p)||!this._editorDictationInProgress.read(p))),this._fontFamily=Nt(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(62).fontFamily),this._ghostTexts=He(this,p=>{var _;const v=this.model.read(p);return(_=v==null?void 0:v.ghostTexts.read(p))!==null&&_!==void 0?_:[]}),this._stablizedGhostTexts=H0e(this._ghostTexts,this._store),this._ghostTextWidgets=Uae(this,this._stablizedGhostTexts,(p,_)=>_.add(this._instantiationService.createInstance(UM,this.editor,{ghostText:p,minReservedLineCount:ma(0),targetTextModel:this.model.map(v=>v==null?void 0:v.textModel)}))).recomputeInitiallyAndOnChange(this._store),this._debounceValue=this._debounceService.for(this._languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this._playAccessibilitySignal=HL(this),this._isReadonly=Nt(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(91)),this._textModel=Nt(this.editor.onDidChangeModel,()=>this.editor.getModel()),this._textModelIfWritable=He(p=>this._isReadonly.read(p)?void 0:this._textModel.read(p)),this._register(new pn(this._contextKeyService,this.model)),this._register(Xe(p=>{const _=this._textModelIfWritable.read(p);Wt(v=>{if(this.model.set(void 0,v),this.updateObservables(v,Co.Other),_){const b=t.createInstance(jM,_,this._suggestWidgetAdaptor.selectedItem,this._textModelVersionId,this._positions,this._debounceValue,Nt(e.onDidChangeConfiguration,()=>e.getOption(118).preview),Nt(e.onDidChangeConfiguration,()=>e.getOption(118).previewMode),Nt(e.onDidChangeConfiguration,()=>e.getOption(62).mode),this._enabled);this.model.set(b,v)}})}));const h=this._register(G9());this._register(Xe(p=>{const _=this._fontFamily.read(p);h.setStyle(_===""||_==="default"?"":` +.monaco-editor .ghost-text-decoration, +.monaco-editor .ghost-text-decoration-preview, +.monaco-editor .ghost-text { + font-family: ${_}; +}`)}));const u=p=>{var _;return p.isUndoing?Co.Undo:p.isRedoing?Co.Redo:!((_=this.model.get())===null||_===void 0)&&_.isAcceptingPartially?Co.AcceptWord:Co.Other};this._register(e.onDidChangeModelContent(p=>Wt(_=>this.updateObservables(_,u(p))))),this._register(e.onDidChangeCursorPosition(p=>Wt(_=>{var v;this.updateObservables(_,Co.Other),(p.reason===3||p.source==="api")&&((v=this.model.get())===null||v===void 0||v.stop(_))}))),this._register(e.onDidType(()=>Wt(p=>{var _;this.updateObservables(p,Co.Other),this._enabled.get()&&((_=this.model.get())===null||_===void 0||_.trigger(p))}))),this._register(this._commandService.onDidExecuteCommand(p=>{new Set([bm.Tab.id,bm.DeleteLeft.id,bm.DeleteRight.id,Mz,"acceptSelectedSuggestion"]).has(p.commandId)&&e.hasTextFocus()&&this._enabled.get()&&Wt(v=>{var b;(b=this.model.get())===null||b===void 0||b.trigger(v)})})),this._register(this.editor.onDidBlurEditorWidget(()=>{this._contextKeyService.getContextKeyValue("accessibleViewIsShown")||this._configurationService.getValue("editor.inlineSuggest.keepOnBlur")||e.getOption(62).keepOnBlur||Ah.dropDownVisible||Wt(p=>{var _;(_=this.model.get())===null||_===void 0||_.stop(p)})})),this._register(Xe(p=>{var _;const v=(_=this.model.read(p))===null||_===void 0?void 0:_.state.read(p);v!=null&&v.suggestItem?v.primaryGhostText.lineCount>=2&&this._suggestWidgetAdaptor.forceRenderingAbove():this._suggestWidgetAdaptor.stopForceRenderingAbove()})),this._register(Ce(()=>{this._suggestWidgetAdaptor.stopForceRenderingAbove()}));const g=this._register(new G);let f;this._register(q0({handleChange:(p,_)=>(p.didChange(this._playAccessibilitySignal)&&(f=void 0),!0)},async(p,_)=>{this._playAccessibilitySignal.read(p);const v=this.model.read(p),b=v==null?void 0:v.state.read(p);if(!v||!b||!b.inlineCompletion){f=void 0;return}if(b.inlineCompletion.semanticId!==f){g.clear(),f=b.inlineCompletion.semanticId;const C=v.textModel.getLineContent(b.primaryGhostText.lineNumber);await Xd(50,IO(g)),await W6(this._suggestWidgetAdaptor.selectedItem,Hs,()=>!1,IO(g)),await this._accessibilitySignalService.playSignal(Be.inlineSuggestion),this.editor.getOption(8)&&this.provideScreenReaderUpdate(b.primaryGhostText.renderForScreenReader(C))}})),this._register(new _M(this.editor,this.model,this._instantiationService)),this._register(this._configurationService.onDidChangeConfiguration(p=>{p.affectsConfiguration("accessibility.verbosity.inlineCompletions")&&this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})})),this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}playAccessibilitySignal(e){this._playAccessibilitySignal.trigger(e)}provideScreenReaderUpdate(e){const t=this._contextKeyService.getContextKeyValue("accessibleViewIsShown"),i=this._keybindingService.lookupKeybinding("editor.action.accessibleView");let n;!t&&i&&this.editor.getOption(149)&&(n=m("showAccessibleViewHint","Inspect this in the accessible view ({0})",i.getAriaLabel())),js(n?e+", "+n:e)}updateObservables(e,t){var i,n,s;const r=this.editor.getModel();this._textModelVersionId.set((i=r==null?void 0:r.getVersionId())!==null&&i!==void 0?i:-1,e,t),this._positions.set((s=(n=this.editor.getSelections())===null||n===void 0?void 0:n.map(a=>a.getPosition()))!==null&&s!==void 0?s:[new F(1,1)],e)}shouldShowHoverAt(e){var t;const i=(t=this.model.get())===null||t===void 0?void 0:t.primaryGhostText.get();return i?i.parts.some(n=>e.containsPosition(new F(i.lineNumber,n.column))):!1}shouldShowHoverAtViewZone(e){var t,i;return(i=(t=this._ghostTextWidgets.get()[0])===null||t===void 0?void 0:t.ownsViewZone(e))!==null&&i!==void 0?i:!1}};Vo.ID="editor.contrib.inlineCompletionsController";Vo=XM=W0e([sd(1,Le),sd(2,Me),sd(3,Je),sd(4,Qt),sd(5,fr),sd(6,me),sd(7,Qh),sd(8,St),sd(9,ho)],Vo);function H0e(o,e){const t=ut("result",[]),i=[];return e.add(Xe(n=>{const s=o.read(n);Wt(r=>{if(s.length!==i.length){i.length=s.length;for(let a=0;aa.set(s[l],r))})})),t}class Ax extends ce{constructor(){super({id:Ax.ID,label:m("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:K.and(E.writable,pn.inlineSuggestionVisible),kbOpts:{weight:100,primary:606}})}async run(e,t){var i;const n=Vo.get(t);(i=n==null?void 0:n.model.get())===null||i===void 0||i.next()}}Ax.ID=Az;class Px extends ce{constructor(){super({id:Px.ID,label:m("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:K.and(E.writable,pn.inlineSuggestionVisible),kbOpts:{weight:100,primary:604}})}async run(e,t){var i;const n=Vo.get(t);(i=n==null?void 0:n.model.get())===null||i===void 0||i.previous()}}Px.ID=Rz;class V0e extends ce{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:m("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:E.writable})}async run(e,t){const i=Vo.get(t);await Aae(async n=>{var s;await((s=i==null?void 0:i.model.get())===null||s===void 0?void 0:s.triggerExplicitly(n)),i==null||i.playAccessibilitySignal(n)})}}class z0e extends ce{constructor(){super({id:"editor.action.inlineSuggest.acceptNextWord",label:m("action.inlineSuggest.acceptNextWord","Accept Next Word Of Inline Suggestion"),alias:"Accept Next Word Of Inline Suggestion",precondition:K.and(E.writable,pn.inlineSuggestionVisible),kbOpts:{weight:101,primary:2065,kbExpr:K.and(E.writable,pn.inlineSuggestionVisible)},menuOpts:[{menuId:k.InlineSuggestionToolbar,title:m("acceptWord","Accept Word"),group:"primary",order:2}]})}async run(e,t){var i;const n=Vo.get(t);await((i=n==null?void 0:n.model.get())===null||i===void 0?void 0:i.acceptNextWord(n.editor))}}class U0e extends ce{constructor(){super({id:"editor.action.inlineSuggest.acceptNextLine",label:m("action.inlineSuggest.acceptNextLine","Accept Next Line Of Inline Suggestion"),alias:"Accept Next Line Of Inline Suggestion",precondition:K.and(E.writable,pn.inlineSuggestionVisible),kbOpts:{weight:101},menuOpts:[{menuId:k.InlineSuggestionToolbar,title:m("acceptLine","Accept Line"),group:"secondary",order:2}]})}async run(e,t){var i;const n=Vo.get(t);await((i=n==null?void 0:n.model.get())===null||i===void 0?void 0:i.acceptNextLine(n.editor))}}class $0e extends ce{constructor(){super({id:Mz,label:m("action.inlineSuggest.accept","Accept Inline Suggestion"),alias:"Accept Inline Suggestion",precondition:pn.inlineSuggestionVisible,menuOpts:[{menuId:k.InlineSuggestionToolbar,title:m("accept","Accept"),group:"primary",order:1}],kbOpts:{primary:2,weight:200,kbExpr:K.and(pn.inlineSuggestionVisible,E.tabMovesFocus.toNegated(),pn.inlineSuggestionHasIndentationLessThanTabSize,Qe.Visible.toNegated(),E.hoverFocused.toNegated())}})}async run(e,t){var i;const n=Vo.get(t);n&&((i=n.model.get())===null||i===void 0||i.accept(n.editor),n.editor.focus())}}class Ox extends ce{constructor(){super({id:Ox.ID,label:m("action.inlineSuggest.hide","Hide Inline Suggestion"),alias:"Hide Inline Suggestion",precondition:pn.inlineSuggestionVisible,kbOpts:{weight:100,primary:9}})}async run(e,t){const i=Vo.get(t);Wt(n=>{var s;(s=i==null?void 0:i.model.get())===null||s===void 0||s.stop(n)})}}Ox.ID="editor.action.inlineSuggest.hide";class Fx extends Es{constructor(){super({id:Fx.ID,title:m("action.inlineSuggest.alwaysShowToolbar","Always Show Toolbar"),f1:!1,precondition:void 0,menu:[{id:k.InlineSuggestionToolbar,group:"secondary",order:10}],toggled:K.equals("config.editor.inlineSuggest.showToolbar","always")})}async run(e,t){const i=e.get(Je),s=i.getValue("editor.inlineSuggest.showToolbar")==="always"?"onHover":"always";i.updateValue("editor.inlineSuggest.showToolbar",s)}}Fx.ID="editor.action.inlineSuggest.toggleAlwaysShowToolbar";var j0e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},D_=function(o,e){return function(t,i){e(t,i,o)}};class K0e{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let JM=class{constructor(e,t,i,n,s,r){this._editor=e,this._languageService=t,this._openerService=i,this.accessibilityService=n,this._instantiationService=s,this._telemetryService=r,this.hoverOrdinal=4}suggestHoverAnchor(e){const t=Vo.get(this._editor);if(!t)return null;const i=e.target;if(i.type===8){const n=i.detail;if(t.shouldShowHoverAtViewZone(n.viewZoneId))return new sg(1e3,this,x.fromPositions(this._editor.getModel().validatePosition(n.positionBefore||n.position)),e.event.posx,e.event.posy,!1)}return i.type===7&&t.shouldShowHoverAt(i.range)?new sg(1e3,this,i.range,e.event.posx,e.event.posy,!1):i.type===6&&i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range)?new sg(1e3,this,i.range,e.event.posx,e.event.posy,!1):null}computeSync(e,t){if(this._editor.getOption(62).showToolbar!=="onHover")return[];const i=Vo.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new K0e(this,e.range,i)]:[]}renderHoverParts(e,t){const i=new G,n=t[0];this._telemetryService.publicLog2("inlineCompletionHover.shown"),this.accessibilityService.isScreenReaderOptimized()&&!this._editor.getOption(8)&&this.renderScreenReaderText(e,n,i);const s=n.controller.model.get(),r=this._instantiationService.createInstance(Ah,this._editor,!1,ma(null),s.selectedInlineCompletionIndex,s.inlineCompletionsCount,s.activeCommands);return e.fragment.appendChild(r.getDomNode()),s.triggerExplicitly(),i.add(r),i}renderScreenReaderText(e,t,i){const n=te,s=n("div.hover-row.markdown-hover"),r=Q(s,n("div.hover-contents",{"aria-live":"assertive"})),a=i.add(new Fl({editor:this._editor},this._languageService,this._openerService)),l=d=>{i.add(a.onDidRenderAsync(()=>{r.className="hover-contents code-hover-contents",e.onContentsChanged()}));const c=m("inlineSuggestionFollows","Suggestion:"),h=i.add(a.render(new Un().appendText(c).appendCodeblock("text",d)));r.replaceChildren(h.element)};i.add(Xe(d=>{var c;const h=(c=t.controller.model.read(d))===null||c===void 0?void 0:c.primaryGhostText.read(d);if(h){const u=this._editor.getModel().getLineContent(h.lineNumber);l(h.renderForScreenReader(u))}else Dn(r)})),e.fragment.appendChild(s)}};JM=j0e([D_(1,si),D_(2,fo),D_(3,ho),D_(4,Le),D_(5,Bn)],JM);class q0e extends W{constructor(){super()}}const Bx=new class{constructor(){this._implementations=[]}register(e){return this._implementations.push(e),{dispose:()=>{const t=this._implementations.indexOf(e);t!==-1&&this._implementations.splice(t,1),e.dispose()}}}getImplementations(){return this._implementations}};vt(Vo.ID,Vo,3);J(V0e);J(Ax);J(Px);J(z0e);J(U0e);J($0e);J(Ox);Vt(Fx);Xh.register(JM);Bx.register(new q0e);var G0e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},oI=function(o,e){return function(t,i){e(t,i,o)}},Q_;let Og=Q_=class{constructor(e,t,i,n){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=n,this.toUnhook=new G,this.toUnhookForKeyboard=new G,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const s=new px(e);this.toUnhook.add(s),this.toUnhook.add(s.onMouseMoveOrRelevantKeyDown(([r,a])=>{this.startFindDefinitionFromMouse(r,a??void 0)})),this.toUnhook.add(s.onExecute(r=>{this.isEnabled(r)&&this.gotoDefinition(r.target.position,r.hasSideBySideModifier).catch(a=>{ze(a)}).finally(()=>{this.removeLinkDecorations()})})),this.toUnhook.add(s.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(Q_.ID)}async startFindDefinitionFromCursor(e){await this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(t=>{t&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))}startFindDefinitionFromMouse(e,t){if(e.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}const i=e.target.position;this.startFindDefinition(i)}async startFindDefinition(e){var t;this.toUnhookForKeyboard.clear();const i=e?(t=this.editor.getModel())===null||t===void 0?void 0:t.getWordAtPosition(e):null;if(!i){this.currentWordAtPosition=null,this.removeLinkDecorations();return}if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return;this.currentWordAtPosition=i;const n=new oV(this.editor,15);this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=an(a=>this.findDefinition(e,a));let s;try{s=await this.previousPromise}catch(a){ze(a);return}if(!s||!s.length||!n.validate(this.editor)){this.removeLinkDecorations();return}const r=s[0].originSelectionRange?x.lift(s[0].originSelectionRange):new x(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);if(s.length>1){let a=r;for(const{originSelectionRange:l}of s)l&&(a=x.plusRange(a,l));this.addDecoration(a,new Un().appendText(m("multipleResults","Click to show {0} definitions.",s.length)))}else{const a=s[0];if(!a.uri)return;this.textModelResolverService.createModelReference(a.uri).then(l=>{if(!l.object||!l.object.textEditorModel){l.dispose();return}const{object:{textEditorModel:d}}=l,{startLineNumber:c}=a.range;if(c<1||c>d.getLineCount()){l.dispose();return}const h=this.getPreviewValue(d,c,a),u=this.languageService.guessLanguageIdByFilepathOrFirstLine(d.uri);this.addDecoration(r,h?new Un().appendCodeblock(u||"",h):void 0),l.dispose()})}}getPreviewValue(e,t,i){let n=i.range;return n.endLineNumber-n.startLineNumber>=Q_.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,i){let s=e.getLineFirstNonWhitespaceColumn(t);for(let a=t+1;a{const n=!t&&this.editor.getOption(88)&&!this.isInPeekEditor(i);return new hC({openToSide:t,openInPeek:n,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(i)})}isInPeekEditor(e){const t=e.get(Me);return qs.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};Og.ID="editor.contrib.gotodefinitionatposition";Og.MAX_SOURCE_PREVIEW_LINES=8;Og=Q_=G0e([oI(1,Gs),oI(2,si),oI(3,me)],Og);vt(Og.ID,Og,2);var TU=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},My=function(o,e){return function(t,i){e(t,i,o)}};class g7{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let eR=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._dispoables=new G,this._markers=[],this._nextIdx=-1,ke.isUri(e)?this._resourceFilter=a=>a.toString()===e.toString():e&&(this._resourceFilter=e);const n=this._configService.getValue("problems.sortOrder"),s=(a,l)=>{let d=jv(a.resource.toString(),l.resource.toString());return d===0&&(n==="position"?d=x.compareRangesUsingStarts(a,l)||pi.compare(a.severity,l.severity):d=pi.compare(a.severity,l.severity)||x.compareRangesUsingStarts(a,l)),d},r=()=>{this._markers=this._markerService.read({resource:ke.isUri(e)?e:void 0,severities:pi.Error|pi.Warning|pi.Info}),typeof e=="function"&&(this._markers=this._markers.filter(a=>this._resourceFilter(a.resource))),this._markers.sort(s)};r(),this._dispoables.add(t.onMarkerChanged(a=>{(!this._resourceFilter||a.some(l=>this._resourceFilter(l)))&&(r(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e?!0:!this._resourceFilter||!e?!1:this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new g7(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let n=!1,s=this._markers.findIndex(r=>r.resource.toString()===e.uri.toString());s<0&&(s=Ov(this._markers,{resource:e.uri},(r,a)=>jv(r.resource.toString(),a.resource.toString())),s<0&&(s=~s));for(let r=s;rn.resource.toString()===e.toString());if(!(i<0)){for(;i=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},xf=function(o,e){return function(t,i){e(t,i,o)}},nR;class Y0e{constructor(e,t,i,n,s){this._openerService=n,this._labelService=s,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new G,this._editor=t;const r=document.createElement("div");r.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),r.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),r.appendChild(this._relatedBlock),this._disposables.add(Si(this._relatedBlock,"click",a=>{a.preventDefault();const l=this._relatedDiagnostics.get(a.target);l&&i(l)})),this._scrollable=new n8(r,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(a=>{r.style.left=`-${a.scrollLeft}px`,r.style.top=`-${a.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){Pt(this._disposables)}update(e){const{source:t,message:i,relatedInformation:n,code:s}=e;let r=((t==null?void 0:t.length)||0)+2;s&&(typeof s=="string"?r+=s.length:r+=s.value.length);const a=$l(i);this._lines=a.length,this._longestLineLength=0;for(const u of a)this._longestLineLength=Math.max(u.length+r,this._longestLineLength);xn(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let l=this._messageBlock;for(const u of a)l=document.createElement("div"),l.innerText=u,u===""&&(l.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(l);if(t||s){const u=document.createElement("span");if(u.classList.add("details"),l.appendChild(u),t){const g=document.createElement("span");g.innerText=t,g.classList.add("source"),u.appendChild(g)}if(s)if(typeof s=="string"){const g=document.createElement("span");g.innerText=`(${s})`,g.classList.add("code"),u.appendChild(g)}else{this._codeLink=te("a.code-link"),this._codeLink.setAttribute("href",`${s.target.toString()}`),this._codeLink.onclick=f=>{this._openerService.open(s.target,{allowCommands:!0}),f.preventDefault(),f.stopPropagation()};const g=Q(this._codeLink,te("span"));g.innerText=s.value,u.appendChild(this._codeLink)}}if(xn(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),jn(n)){const u=this._relatedBlock.appendChild(document.createElement("div"));u.style.paddingTop=`${Math.floor(this._editor.getOption(67)*.66)}px`,this._lines+=1;for(const g of n){const f=document.createElement("div"),p=document.createElement("a");p.classList.add("filename"),p.innerText=`${this._labelService.getUriBasenameLabel(g.resource)}(${g.startLineNumber}, ${g.startColumn}): `,p.title=this._labelService.getUriLabel(g.resource),this._relatedDiagnostics.set(p,g);const _=document.createElement("span");_.innerText=g.message,f.appendChild(p),f.appendChild(_),this._lines+=1,u.appendChild(f)}}const d=this._editor.getOption(50),c=Math.ceil(d.typicalFullwidthCharacterWidth*this._longestLineLength*.75),h=d.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:c,scrollHeight:h})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case pi.Error:t=m("Error","Error");break;case pi.Warning:t=m("Warning","Warning");break;case pi.Info:t=m("Info","Info");break;case pi.Hint:t=m("Hint","Hint");break}let i=m("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const n=this._editor.getModel();return n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1&&(i=`${n.getLineContent(e.startLineNumber)}, ${i}`),i}}let Cp=nR=class extends Cy{constructor(e,t,i,n,s,r,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},s),this._themeService=t,this._openerService=i,this._menuService=n,this._contextKeyService=r,this._labelService=a,this._callOnDispose=new G,this._onDidSelectRelatedInformation=new O,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=pi.Warning,this._backgroundColor=z.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(eCe);let t=sR,i=Q0e;this._severity===pi.Warning?(t=Dw,i=X0e):this._severity===pi.Info&&(t=oR,i=J0e);const n=e.getColor(t),s=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:s,primaryHeadingColor:e.getColor(zz),secondaryHeadingColor:e.getColor(Uz)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun(n=>this.editor.focus()));const t=[],i=this._menuService.createMenu(nR.TitleMenu,this._contextKeyService);UL(i,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),i.dispose()}_fillTitleIcon(e){this._icon=Q(e,te(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new Y0e(this._container,this.editor,t=>this._onDidSelectRelatedInformation.fire(t),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const n=x.lift(e),s=this.editor.getPosition(),r=s&&n.containsPosition(s)?s:n.getStartPosition();super.show(r,this.computeRequiredHeight());const a=this.editor.getModel();if(a){const l=i>1?m("problems","{0} of {1} problems",t,i):m("change","{0} of {1} problem",t,i);this.setTitle(cr(a.uri),l)}this._icon.className=`codicon ${iR.className(pi.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(r,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};Cp.TitleMenu=new k("gotoErrorTitleMenu");Cp=nR=Z0e([xf(1,Ji),xf(2,fo),xf(3,zo),xf(4,Le),xf(5,Me),xf(6,np)],Cp);const f7=ob(bl,zQ),m7=ob(ns,rb),p7=ob(Vs,ab),sR=N("editorMarkerNavigationError.background",{dark:f7,light:f7,hcDark:at,hcLight:at},m("editorMarkerNavigationError","Editor marker navigation widget error color.")),Q0e=N("editorMarkerNavigationError.headerBackground",{dark:Se(sR,.1),light:Se(sR,.1),hcDark:null,hcLight:null},m("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),Dw=N("editorMarkerNavigationWarning.background",{dark:m7,light:m7,hcDark:at,hcLight:at},m("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),X0e=N("editorMarkerNavigationWarning.headerBackground",{dark:Se(Dw,.1),light:Se(Dw,.1),hcDark:"#0C141F",hcLight:Se(Dw,.2)},m("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),oR=N("editorMarkerNavigationInfo.background",{dark:p7,light:p7,hcDark:at,hcLight:at},m("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),J0e=N("editorMarkerNavigationInfo.headerBackground",{dark:Se(oR,.1),light:Se(oR,.1),hcDark:null,hcLight:null},m("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),eCe=N("editorMarkerNavigation.background",{dark:rn,light:rn,hcDark:rn,hcLight:rn},m("editorMarkerNavigationBackground","Editor marker navigation widget background."));var tCe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},F1=function(o,e){return function(t,i){e(t,i,o)}},X_;let Hh=X_=class{static get(e){return e.getContribution(X_.ID)}constructor(e,t,i,n,s){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=n,this._instantiationService=s,this._sessionDispoables=new G,this._editor=e,this._widgetVisible=RU.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(Cp,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(i=>{var n,s,r;(!(!((n=this._model)===null||n===void 0)&&n.selected)||!x.containsPosition((s=this._model)===null||s===void 0?void 0:s.selected.marker,i.position))&&((r=this._model)===null||r===void 0||r.resetIndex())})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;const i=this._model.find(this._editor.getModel().uri,this._widget.position);i?this._widget.updateMarker(i.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(i=>{this._editorService.openCodeEditor({resource:i.resource,options:{pinned:!0,revealIfOpened:!0,selection:x.lift(i).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new F(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}async nagivate(e,t){var i,n;if(this._editor.hasModel()){const s=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(s.move(e,this._editor.getModel(),this._editor.getPosition()),!s.selected)return;if(s.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const r=await this._editorService.openCodeEditor({resource:s.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:s.selected.marker}},this._editor);r&&((i=X_.get(r))===null||i===void 0||i.close(),(n=X_.get(r))===null||n===void 0||n.nagivate(e,t))}else this._widget.showAtMarker(s.selected.marker,s.selected.index,s.selected.total)}}};Hh.ID="editor.contrib.markerController";Hh=X_=tCe([F1(1,MU),F1(2,Me),F1(3,_t),F1(4,Le)],Hh);class Wx extends ce{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}async run(e,t){var i;t.hasModel()&&((i=Hh.get(t))===null||i===void 0||i.nagivate(this._next,this._multiFile))}}class mh extends Wx{constructor(){super(!0,!1,{id:mh.ID,label:mh.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:E.focus,primary:578,weight:100},menuOpts:{menuId:Cp.TitleMenu,title:mh.LABEL,icon:_i("marker-navigation-next",oe.arrowDown,m("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}mh.ID="editor.action.marker.next";mh.LABEL=m("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class lg extends Wx{constructor(){super(!1,!1,{id:lg.ID,label:lg.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:E.focus,primary:1602,weight:100},menuOpts:{menuId:Cp.TitleMenu,title:lg.LABEL,icon:_i("marker-navigation-previous",oe.arrowUp,m("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}lg.ID="editor.action.marker.prev";lg.LABEL=m("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");class iCe extends Wx{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:m("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:E.focus,primary:66,weight:100},menuOpts:{menuId:k.MenubarGoMenu,title:m({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}class nCe extends Wx{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:m("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:E.focus,primary:1090,weight:100},menuOpts:{menuId:k.MenubarGoMenu,title:m({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}}vt(Hh.ID,Hh,4);J(mh);J(lg);J(iCe);J(nCe);const RU=new de("markersNavigationVisible",!1),sCe=Xi.bindToContribution(Hh.get);le(new sCe({id:"closeMarkersNavigation",precondition:RU,handler:o=>o.close(),kbOpts:{weight:150,kbExpr:E.focus,primary:9,secondary:[1033]}}));var ta;(function(o){o.NoAutoFocus="noAutoFocus",o.FocusIfVisible="focusIfVisible",o.AutoFocusImmediately="autoFocusImmediately"})(ta||(ta={}));class oCe extends ce{constructor(){super({id:Tz,label:m({key:"showOrFocusHover",comment:["Label for action that will trigger the showing/focusing of a hover in the editor.","If the hover is not visible, it will show the hover.","This allows for users to show the hover without using the mouse."]},"Show or Focus Hover"),metadata:{description:Fe("showOrFocusHoverDescription","Show or focus the editor hover which shows documentation, references, and other content for a symbol at the current cursor position."),args:[{name:"args",schema:{type:"object",properties:{focus:{description:"Controls if and when the hover should take focus upon being triggered by this action.",enum:[ta.NoAutoFocus,ta.FocusIfVisible,ta.AutoFocusImmediately],enumDescriptions:[m("showOrFocusHover.focus.noAutoFocus","The hover will not automatically take focus."),m("showOrFocusHover.focus.focusIfVisible","The hover will take focus only if it is already visible."),m("showOrFocusHover.focus.autoFocusImmediately","The hover will automatically take focus when it appears.")],default:ta.FocusIfVisible}}}}]},alias:"Show or Focus Hover",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:Ki(2089,2087),weight:100}})}run(e,t,i){if(!t.hasModel())return;const n=os.get(t);if(!n)return;const s=i==null?void 0:i.focus;let r=ta.FocusIfVisible;Object.values(ta).includes(s)?r=s:typeof s=="boolean"&&s&&(r=ta.AutoFocusImmediately);const a=d=>{const c=t.getPosition(),h=new x(c.lineNumber,c.column,c.lineNumber,c.column);n.showContentHover(h,1,1,d)},l=t.getOption(2)===2;n.isHoverVisible?r!==ta.NoAutoFocus?n.focus():a(l):a(l||r===ta.AutoFocusImmediately)}}class rCe extends ce{constructor(){super({id:wpe,label:m({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0,metadata:{description:Fe("showDefinitionPreviewHoverDescription","Show the definition preview hover in the editor.")}})}run(e,t){const i=os.get(t);if(!i)return;const n=t.getPosition();if(!n)return;const s=new x(n.lineNumber,n.column,n.lineNumber,n.column),r=Og.get(t);if(!r)return;r.startFindDefinitionFromCursor(n).then(()=>{i.showContentHover(s,1,1,!0)})}}class aCe extends ce{constructor(){super({id:Spe,label:m({key:"scrollUpHover",comment:["Action that allows to scroll up in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Up Hover"),alias:"Scroll Up Hover",precondition:E.hoverFocused,kbOpts:{kbExpr:E.hoverFocused,primary:16,weight:100},metadata:{description:Fe("scrollUpHoverDescription","Scroll up the editor hover.")}})}run(e,t){const i=os.get(t);i&&i.scrollUp()}}class lCe extends ce{constructor(){super({id:ype,label:m({key:"scrollDownHover",comment:["Action that allows to scroll down in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Down Hover"),alias:"Scroll Down Hover",precondition:E.hoverFocused,kbOpts:{kbExpr:E.hoverFocused,primary:18,weight:100},metadata:{description:Fe("scrollDownHoverDescription","Scroll down the editor hover.")}})}run(e,t){const i=os.get(t);i&&i.scrollDown()}}class dCe extends ce{constructor(){super({id:Lpe,label:m({key:"scrollLeftHover",comment:["Action that allows to scroll left in the hover widget with the left arrow when the hover widget is focused."]},"Scroll Left Hover"),alias:"Scroll Left Hover",precondition:E.hoverFocused,kbOpts:{kbExpr:E.hoverFocused,primary:15,weight:100},metadata:{description:Fe("scrollLeftHoverDescription","Scroll left the editor hover.")}})}run(e,t){const i=os.get(t);i&&i.scrollLeft()}}class cCe extends ce{constructor(){super({id:xpe,label:m({key:"scrollRightHover",comment:["Action that allows to scroll right in the hover widget with the right arrow when the hover widget is focused."]},"Scroll Right Hover"),alias:"Scroll Right Hover",precondition:E.hoverFocused,kbOpts:{kbExpr:E.hoverFocused,primary:17,weight:100},metadata:{description:Fe("scrollRightHoverDescription","Scroll right the editor hover.")}})}run(e,t){const i=os.get(t);i&&i.scrollRight()}}class hCe extends ce{constructor(){super({id:Dpe,label:m({key:"pageUpHover",comment:["Action that allows to page up in the hover widget with the page up command when the hover widget is focused."]},"Page Up Hover"),alias:"Page Up Hover",precondition:E.hoverFocused,kbOpts:{kbExpr:E.hoverFocused,primary:11,secondary:[528],weight:100},metadata:{description:Fe("pageUpHoverDescription","Page up the editor hover.")}})}run(e,t){const i=os.get(t);i&&i.pageUp()}}class uCe extends ce{constructor(){super({id:kpe,label:m({key:"pageDownHover",comment:["Action that allows to page down in the hover widget with the page down command when the hover widget is focused."]},"Page Down Hover"),alias:"Page Down Hover",precondition:E.hoverFocused,kbOpts:{kbExpr:E.hoverFocused,primary:12,secondary:[530],weight:100},metadata:{description:Fe("pageDownHoverDescription","Page down the editor hover.")}})}run(e,t){const i=os.get(t);i&&i.pageDown()}}class gCe extends ce{constructor(){super({id:Ipe,label:m({key:"goToTopHover",comment:["Action that allows to go to the top of the hover widget with the home command when the hover widget is focused."]},"Go To Top Hover"),alias:"Go To Bottom Hover",precondition:E.hoverFocused,kbOpts:{kbExpr:E.hoverFocused,primary:14,secondary:[2064],weight:100},metadata:{description:Fe("goToTopHoverDescription","Go to the top of the editor hover.")}})}run(e,t){const i=os.get(t);i&&i.goToTop()}}class fCe extends ce{constructor(){super({id:Epe,label:m({key:"goToBottomHover",comment:["Action that allows to go to the bottom in the hover widget with the end command when the hover widget is focused."]},"Go To Bottom Hover"),alias:"Go To Bottom Hover",precondition:E.hoverFocused,kbOpts:{kbExpr:E.hoverFocused,primary:13,secondary:[2066],weight:100},metadata:{description:Fe("goToBottomHoverDescription","Go to the bottom of the editor hover.")}})}run(e,t){const i=os.get(t);i&&i.goToBottom()}}class mCe extends ce{constructor(){super({id:fx,label:Npe,alias:"Increase Hover Verbosity Level",precondition:E.hoverVisible})}run(e,t,i){var n;(n=os.get(t))===null||n===void 0||n.updateMarkdownHoverVerbosityLevel(Lo.Increase,i==null?void 0:i.index,i==null?void 0:i.focus)}}class pCe extends ce{constructor(){super({id:mx,label:Tpe,alias:"Decrease Hover Verbosity Level",precondition:E.hoverVisible})}run(e,t,i){var n;(n=os.get(t))===null||n===void 0||n.updateMarkdownHoverVerbosityLevel(Lo.Decrease,i==null?void 0:i.index,i==null?void 0:i.focus)}}var _Ce=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},rI=function(o,e){return function(t,i){e(t,i,o)}};const yr=te;class vCe{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const _7={type:1,filter:{include:ei.QuickFix},triggerAction:lo.QuickFixHover};let rR=class{constructor(e,t,i,n){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=n,this.hoverOrdinal=1,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1&&!e.supportsMarkerHover)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];for(const a of t){const l=a.range.startLineNumber===n?a.range.startColumn:1,d=a.range.endLineNumber===n?a.range.endColumn:s,c=this._markerDecorationsService.getMarker(i.uri,a);if(!c)continue;const h=new x(e.range.startLineNumber,l,e.range.startLineNumber,d);r.push(new vCe(this,h,c))}return r}renderHoverParts(e,t){if(!t.length)return W.None;const i=new G;t.forEach(s=>e.fragment.appendChild(this.renderMarkerHover(s,i)));const n=t.length===1?t[0]:t.sort((s,r)=>pi.compare(s.marker.severity,r.marker.severity))[0];return this.renderMarkerStatusbar(e,n,i),i}renderMarkerHover(e,t){const i=yr("div.hover-row");i.tabIndex=0;const n=Q(i,yr("div.marker.hover-contents")),{source:s,message:r,code:a,relatedInformation:l}=e.marker;this._editor.applyFontInfo(n);const d=Q(n,yr("span"));if(d.style.whiteSpace="pre-wrap",d.innerText=r,s||a)if(a&&typeof a!="string"){const c=yr("span");if(s){const f=Q(c,yr("span"));f.innerText=s}const h=Q(c,yr("a.code-link"));h.setAttribute("href",a.target.toString()),t.add(U(h,"click",f=>{this._openerService.open(a.target,{allowCommands:!0}),f.preventDefault(),f.stopPropagation()}));const u=Q(h,yr("span"));u.innerText=a.value;const g=Q(n,c);g.style.opacity="0.6",g.style.paddingLeft="6px"}else{const c=Q(n,yr("span"));c.style.opacity="0.6",c.style.paddingLeft="6px",c.innerText=s&&a?`${s}(${a})`:s||`(${a})`}if(jn(l))for(const{message:c,resource:h,startLineNumber:u,startColumn:g}of l){const f=Q(n,yr("div"));f.style.marginTop="8px";const p=Q(f,yr("a"));p.innerText=`${cr(h)}(${u}, ${g}): `,p.style.cursor="pointer",t.add(U(p,"click",v=>{v.stopPropagation(),v.preventDefault(),this._openerService&&this._openerService.open(h,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:u,startColumn:g}}}).catch(ze)}));const _=Q(f,yr("span"));_.innerText=c,this._editor.applyFontInfo(_)}return i}renderMarkerStatusbar(e,t,i){if(t.marker.severity===pi.Error||t.marker.severity===pi.Warning||t.marker.severity===pi.Info){const n=Hh.get(this._editor);n&&e.statusBar.addAction({label:m("view problem","View Problem"),commandId:mh.ID,run:()=>{e.hide(),n.showAtMarker(t.marker),this._editor.focus()}})}if(!this._editor.getOption(91)){const n=e.statusBar.append(yr("div"));this.recentMarkerCodeActionsInfo&&(WS.makeKey(this.recentMarkerCodeActionsInfo.marker)===WS.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=m("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const s=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?W.None:Sh(()=>n.textContent=m("checkingForQuickFixes","Checking for quick fixes..."),200,i);n.textContent||(n.textContent=" ");const r=this.getCodeActions(t.marker);i.add(Ce(()=>r.cancel())),r.then(a=>{if(s.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:a.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){a.dispose(),n.textContent=m("noQuickFixes","No quick fixes available");return}n.style.display="none";let l=!1;i.add(Ce(()=>{l||a.dispose()})),e.statusBar.addAction({label:m("quick fixes","Quick Fix..."),commandId:kP,run:d=>{l=!0;const c=Mh.get(this._editor),h=Oi(d);e.hide(),c==null||c.showCodeActions(_7,a,{x:h.left,y:h.top,width:h.width,height:h.height})}})},ze)}}getCodeActions(e){return an(t=>Iv(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new x(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),_7,$d.None,t))}};rR=_Ce([rI(1,FA),rI(2,fo),rI(3,me)],rR);var v7;(function(o){o.intro=m("intro","Focus on the hover widget to cycle through the hover parts with the Tab key."),o.increaseVerbosity=m("increaseVerbosity","- The focused hover part verbosity level can be increased with the Increase Hover Verbosity command.",fx),o.decreaseVerbosity=m("decreaseVerbosity","- The focused hover part verbosity level can be decreased with the Decrease Hover Verbosity command.",mx),o.hoverContent=m("contentHover","The last focused hover content is the following.")})(v7||(v7={}));class bCe{dispose(){var e;(e=this._provider)===null||e===void 0||e.dispose()}}class CCe{dispose(){var e;(e=this._provider)===null||e===void 0||e.dispose()}}class wCe{dispose(){}}vt(os.ID,os,2);J(oCe);J(rCe);J(aCe);J(lCe);J(dCe);J(cCe);J(hCe);J(uCe);J(gCe);J(fCe);J(mCe);J(pCe);Xh.register(Zb);Xh.register(rR);gr((o,e)=>{const t=o.getColor($W);t&&(e.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${t.transparent(.5)}; }`))});Bx.register(new bCe);Bx.register(new CCe);Bx.register(new wCe);function Qs(o,e){let t=0;for(let i=0;ii-1)return[];const{tabSize:r,indentSize:a,insertSpaces:l}=o.getOptions(),d=(p,_)=>(_=_||1,er.shiftIndent(p,p.length+_,r,a,l)),c=(p,_)=>(_=_||1,er.unshiftIndent(p,p.length+_,r,a,l)),h=[],u=o.getLineContent(t);let g=Bt(u),f=g;s.shouldIncrease(t)?(f=d(f),g=d(g)):s.shouldIndentNextLine(t)&&(f=d(f)),t++;for(let p=t;p<=i;p++){if(SCe(o,p))continue;const _=o.getLineContent(p),v=Bt(_),b=f;s.shouldDecrease(p,b)&&(f=c(f),g=c(g)),v!==f&&h.push(ri.replaceMove(new _e(p,1,p,v.length+1),GA(f,a,l))),!s.shouldIgnore(p)&&(s.shouldIncrease(p,b)?(g=d(g),f=g):s.shouldIndentNextLine(p,b)?f=d(f):f=g)}return h}function SCe(o,e){return o.tokenization.isCheapToTokenize(e)?o.tokenization.getLineTokens(e).getStandardTokenType(0)===2:!1}var yCe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},LCe=function(o,e){return function(t,i){e(t,i,o)}};class Hx extends ce{constructor(){super({id:Hx.ID,label:m("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:E.writable,metadata:{description:Fe("indentationToSpacesDescription","Convert the tab indentation to spaces.")}})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),s=t.getSelection();if(!s)return;const r=new ECe(s,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),i.updateOptions({insertSpaces:!0})}}Hx.ID="editor.action.indentationToSpaces";class Vx extends ce{constructor(){super({id:Vx.ID,label:m("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:E.writable,metadata:{description:Fe("indentationToTabsDescription","Convert the spaces indentation to tabs.")}})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),s=t.getSelection();if(!s)return;const r=new NCe(s,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),i.updateOptions({insertSpaces:!1})}}Vx.ID="editor.action.indentationToTabs";class XP extends ce{constructor(e,t,i){super(i),this.insertSpaces=e,this.displaySizeOnly=t}run(e,t){const i=e.get(_r),n=e.get(ai),s=t.getModel();if(!s)return;const r=n.getCreationOptions(s.getLanguageId(),s.uri,s.isForSimpleWidget),a=s.getOptions(),l=[1,2,3,4,5,6,7,8].map(c=>({id:c.toString(),label:c.toString(),description:c===r.tabSize&&c===a.tabSize?m("configuredTabSize","Configured Tab Size"):c===r.tabSize?m("defaultTabSize","Default Tab Size"):c===a.tabSize?m("currentTabSize","Current Tab Size"):void 0})),d=Math.min(s.getOptions().tabSize-1,7);setTimeout(()=>{i.pick(l,{placeHolder:m({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:l[d]}).then(c=>{if(c&&s&&!s.isDisposed()){const h=parseInt(c.label,10);this.displaySizeOnly?s.updateOptions({tabSize:h}):s.updateOptions({tabSize:h,indentSize:h,insertSpaces:this.insertSpaces})}})},50)}}class zx extends XP{constructor(){super(!1,!1,{id:zx.ID,label:m("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0,metadata:{description:Fe("indentUsingTabsDescription","Use indentation with tabs.")}})}}zx.ID="editor.action.indentUsingTabs";class Ux extends XP{constructor(){super(!0,!1,{id:Ux.ID,label:m("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0,metadata:{description:Fe("indentUsingSpacesDescription","Use indentation with spaces.")}})}}Ux.ID="editor.action.indentUsingSpaces";class $x extends XP{constructor(){super(!0,!0,{id:$x.ID,label:m("changeTabDisplaySize","Change Tab Display Size"),alias:"Change Tab Display Size",precondition:void 0,metadata:{description:Fe("changeTabDisplaySizeDescription","Change the space size equivalent of the tab.")}})}}$x.ID="editor.action.changeTabDisplaySize";class jx extends ce{constructor(){super({id:jx.ID,label:m("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0,metadata:{description:Fe("detectIndentationDescription","Detect the indentation from content.")}})}run(e,t){const i=e.get(ai),n=t.getModel();if(!n)return;const s=i.getCreationOptions(n.getLanguageId(),n.uri,n.isForSimpleWidget);n.detectIndentation(s.insertSpaces,s.tabSize)}}jx.ID="editor.action.detectIndentation";class xCe extends ce{constructor(){super({id:"editor.action.reindentlines",label:m("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:E.writable,metadata:{description:Fe("editor.reindentlinesDescription","Reindent the lines of the editor.")}})}run(e,t){const i=e.get($t),n=t.getModel();if(!n)return;const s=AU(n,i,1,n.getLineCount());s.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop())}}class DCe extends ce{constructor(){super({id:"editor.action.reindentselectedlines",label:m("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:E.writable,metadata:{description:Fe("editor.reindentselectedlinesDescription","Reindent the selected lines of the editor.")}})}run(e,t){const i=e.get($t),n=t.getModel();if(!n)return;const s=t.getSelections();if(s===null)return;const r=[];for(const a of s){let l=a.startLineNumber,d=a.endLineNumber;if(l!==d&&a.endColumn===1&&d--,l===1){if(l===d)continue}else l--;const c=AU(n,i,l,d);r.push(...c)}r.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,r),t.pushUndoStop())}}class kCe{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(const i of e)i.range&&typeof i.text=="string"&&this._edits.push(i)}getEditOperations(e,t){for(const n of this._edits)t.addEditOperation(x.lift(n.range),n.text);let i=!1;Array.isArray(this._edits)&&this._edits.length===1&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),i||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}let a0=class{constructor(e,t){this.editor=e,this._languageConfigurationService=t,this.callOnDispose=new G,this.callOnModel=new G,this.callOnDispose.add(e.onDidChangeConfiguration(()=>this.update())),this.callOnDispose.add(e.onDidChangeModel(()=>this.update())),this.callOnDispose.add(e.onDidChangeModelLanguage(()=>this.update()))}update(){this.callOnModel.clear(),!(this.editor.getOption(12)<4||this.editor.getOption(55))&&this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste(({range:e})=>{this.trigger(e)}))}trigger(e){const t=this.editor.getSelections();if(t===null||t.length>1)return;const i=this.editor.getModel();if(!i||ICe(i,e)||!i.tokenization.isCheapToTokenize(e.getStartPosition().lineNumber))return;const n=this.editor.getOption(12),{tabSize:s,indentSize:r,insertSpaces:a}=i.getOptions(),l=[],d={shiftIndent:g=>er.shiftIndent(g,g.length+1,s,r,a),unshiftIndent:g=>er.unshiftIndent(g,g.length+1,s,r,a)};let c=e.startLineNumber;for(;c<=e.endLineNumber;){if(this.shouldIgnoreLine(i,c)){c++;continue}break}if(c>e.endLineNumber)return;let h=i.getLineContent(c);if(!/\S/.test(h.substring(0,e.startColumn-1))){const g=dv(n,i,i.getLanguageId(),c,d,this._languageConfigurationService);if(g!==null){const f=Bt(h),p=Qs(g,s),_=Qs(f,s);if(p!==_){const v=Mv(p,s,a);l.push({range:new x(c,1,c,f.length+1),text:v}),h=v+h.substr(f.length)}else{const v=v8(i,c,this._languageConfigurationService);if(v===0||v===8)return}}}const u=c;for(;ci.tokenization.getLineTokens(p),getLanguageId:()=>i.getLanguageId(),getLanguageIdAtPosition:(p,_)=>i.getLanguageIdAtPosition(p,_)},getLineContent:p=>p===u?h:i.getLineContent(p)},i.getLanguageId(),c+1,d,this._languageConfigurationService);if(f!==null){const p=Qs(f,s),_=Qs(Bt(i.getLineContent(c+1)),s);if(p!==_){const v=p-_;for(let b=c+1;b<=e.endLineNumber;b++){const C=i.getLineContent(b),w=Bt(C),L=Qs(w,s)+v,D=Mv(L,s,a);D!==w&&l.push({range:new x(b,1,b,w.length+1),text:D})}}}}if(l.length>0){this.editor.pushUndoStop();const g=new kCe(l,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",g),this.editor.pushUndoStop()}}shouldIgnoreLine(e,t){e.tokenization.forceTokenization(t);const i=e.getLineFirstNonWhitespaceColumn(t);if(i===0)return!0;const n=e.tokenization.getLineTokens(t);if(n.getCount()>0){const s=n.findTokenIndexAtOffset(i);if(s>=0&&n.getStandardTokenType(s)===1)return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};a0.ID="editor.contrib.autoIndentOnPaste";a0=yCe([LCe(1,$t)],a0);function ICe(o,e){const t=i=>QY(o,i)===2;return t(e.getStartPosition())||t(e.getEndPosition())}function PU(o,e,t,i){if(o.getLineCount()===1&&o.getLineMaxColumn(1)===1)return;let n="";for(let r=0;r=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},RCe=function(o,e){return function(t,i){e(t,i,o)}},kw;let Vh=kw=class{static get(e){return e.getContribution(kw.ID)}constructor(e,t){this.editor=e,this.editorWorkerService=t,this.decorations=this.editor.createDecorationsCollection()}dispose(){}run(e,t){var i;(i=this.currentRequest)===null||i===void 0||i.cancel();const n=this.editor.getSelection(),s=this.editor.getModel();if(!s||!n)return;let r=n;if(r.startLineNumber!==r.endLineNumber)return;const a=new oV(this.editor,5),l=s.uri;return this.editorWorkerService.canNavigateValueSet(l)?(this.currentRequest=an(d=>this.editorWorkerService.navigateValueSet(l,r,t)),this.currentRequest.then(d=>{var c;if(!d||!d.range||!d.value||!a.validate(this.editor))return;const h=x.lift(d.range);let u=d.range;const g=d.value.length-(r.endColumn-r.startColumn);u={startLineNumber:u.startLineNumber,startColumn:u.startColumn,endLineNumber:u.endLineNumber,endColumn:u.startColumn+d.value.length},g>1&&(r=new _e(r.startLineNumber,r.startColumn,r.endLineNumber,r.endColumn+g-1));const f=new TCe(h,r,d.value);this.editor.pushUndoStop(),this.editor.executeCommand(e,f),this.editor.pushUndoStop(),this.decorations.set([{range:u,options:kw.DECORATION}]),(c=this.decorationRemover)===null||c===void 0||c.cancel(),this.decorationRemover=Xd(350),this.decorationRemover.then(()=>this.decorations.clear()).catch(ze)}).catch(ze)):Promise.resolve(void 0)}};Vh.ID="editor.contrib.inPlaceReplaceController";Vh.DECORATION=je.register({description:"in-place-replace",className:"valueSetReplacement"});Vh=kw=MCe([RCe(1,pr)],Vh);class ACe extends ce{constructor(){super({id:"editor.action.inPlaceReplace.up",label:m("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:E.writable,kbOpts:{kbExpr:E.editorTextFocus,primary:3159,weight:100}})}run(e,t){const i=Vh.get(t);return i?i.run(this.id,!1):Promise.resolve(void 0)}}class PCe extends ce{constructor(){super({id:"editor.action.inPlaceReplace.down",label:m("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:E.writable,kbOpts:{kbExpr:E.editorTextFocus,primary:3161,weight:100}})}run(e,t){const i=Vh.get(t);return i?i.run(this.id,!0):Promise.resolve(void 0)}}vt(Vh.ID,Vh,4);J(ACe);J(PCe);class OCe extends ce{constructor(){super({id:"expandLineSelection",label:m("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:E.textInputFocus,primary:2090}})}run(e,t,i){if(i=i||{},!t.hasModel())return;const n=t._getViewModel();n.model.pushStackElement(),n.setCursorStates(i.source,3,Cn.expandLineSelection(n,n.getCursorStates())),n.revealAllCursors(i.source,!0)}}J(OCe);class FCe{constructor(e,t,i){this._selection=e,this._cursors=t,this._selectionId=null,this._trimInRegexesAndStrings=i}getEditOperations(e,t){const i=BCe(e,this._cursors,this._trimInRegexesAndStrings);for(let n=0,s=i.length;na.lineNumber===l.lineNumber?a.column-l.column:a.lineNumber-l.lineNumber);for(let a=e.length-2;a>=0;a--)e[a].lineNumber===e[a+1].lineNumber&&e.splice(a,1);const i=[];let n=0,s=0;const r=e.length;for(let a=1,l=o.getLineCount();a<=l;a++){const d=o.getLineContent(a),c=d.length+1;let h=0;if(s=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},HCe=function(o,e){return function(t,i){e(t,i,o)}};let aR=class{constructor(e,t,i,n){this._languageConfigurationService=n,this._selection=e,this._isMovingDown=t,this._autoIndent=i,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(e,t){const i=()=>e.getLanguageId(),n=(h,u)=>e.getLanguageIdAtPosition(h,u),s=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===s){this._selectionId=t.trackSelection(this._selection);return}if(!this._isMovingDown&&this._selection.startLineNumber===1){this._selectionId=t.trackSelection(this._selection);return}this._moveEndPositionDown=!1;let r=this._selection;r.startLineNumberb===r.startLineNumber?e.tokenization.getLineTokens(h):e.tokenization.getLineTokens(b),getLanguageId:i,getLanguageIdAtPosition:n},getLineContent:b=>b===r.startLineNumber?e.getLineContent(h):e.getLineContent(b)},v=dv(this._autoIndent,_,e.getLanguageIdAtPosition(h,1),r.startLineNumber,c,this._languageConfigurationService);if(v!==null){const b=Bt(e.getLineContent(h)),C=Qs(v,a),w=Qs(b,a);C!==w&&(g=Mv(C,a,d)+this.trimStart(u))}}t.addEditOperation(new x(r.startLineNumber,1,r.startLineNumber,1),g+` +`);const p=this.matchEnterRuleMovingDown(e,c,a,r.startLineNumber,h,g);if(p!==null)p!==0&&this.getIndentEditsOfMovingBlock(e,t,r,a,d,p);else{const _={tokenization:{getLineTokens:b=>b===r.startLineNumber?e.tokenization.getLineTokens(h):b>=r.startLineNumber+1&&b<=r.endLineNumber+1?e.tokenization.getLineTokens(b-1):e.tokenization.getLineTokens(b),getLanguageId:i,getLanguageIdAtPosition:n},getLineContent:b=>b===r.startLineNumber?g:b>=r.startLineNumber+1&&b<=r.endLineNumber+1?e.getLineContent(b-1):e.getLineContent(b)},v=dv(this._autoIndent,_,e.getLanguageIdAtPosition(h,1),r.startLineNumber+1,c,this._languageConfigurationService);if(v!==null){const b=Bt(e.getLineContent(r.startLineNumber)),C=Qs(v,a),w=Qs(b,a);if(C!==w){const S=C-w;this.getIndentEditsOfMovingBlock(e,t,r,a,d,S)}}}}else t.addEditOperation(new x(r.startLineNumber,1,r.startLineNumber,1),g+` +`)}else if(h=r.startLineNumber-1,u=e.getLineContent(h),t.addEditOperation(new x(h,1,h+1,1),null),t.addEditOperation(new x(r.endLineNumber,e.getLineMaxColumn(r.endLineNumber),r.endLineNumber,e.getLineMaxColumn(r.endLineNumber)),` +`+u),this.shouldAutoIndent(e,r)){const g={tokenization:{getLineTokens:p=>p===h?e.tokenization.getLineTokens(r.startLineNumber):e.tokenization.getLineTokens(p),getLanguageId:i,getLanguageIdAtPosition:n},getLineContent:p=>p===h?e.getLineContent(r.startLineNumber):e.getLineContent(p)},f=this.matchEnterRule(e,c,a,r.startLineNumber,r.startLineNumber-2);if(f!==null)f!==0&&this.getIndentEditsOfMovingBlock(e,t,r,a,d,f);else{const p=dv(this._autoIndent,g,e.getLanguageIdAtPosition(r.startLineNumber,1),h,c,this._languageConfigurationService);if(p!==null){const _=Bt(e.getLineContent(r.startLineNumber)),v=Qs(p,a),b=Qs(_,a);if(v!==b){const C=v-b;this.getIndentEditsOfMovingBlock(e,t,r,a,d,C)}}}}}this._selectionId=t.trackSelection(r)}buildIndentConverter(e,t,i){return{shiftIndent:n=>er.shiftIndent(n,n.length+1,e,t,i),unshiftIndent:n=>er.unshiftIndent(n,n.length+1,e,t,i)}}parseEnterResult(e,t,i,n,s){if(s){let r=s.indentation;s.indentAction===Hi.None||s.indentAction===Hi.Indent?r=s.indentation+s.appendText:s.indentAction===Hi.IndentOutdent?r=s.indentation:s.indentAction===Hi.Outdent&&(r=t.unshiftIndent(s.indentation)+s.appendText);const a=e.getLineContent(n);if(this.trimStart(a).indexOf(this.trimStart(r))>=0){const l=Bt(e.getLineContent(n));let d=Bt(r);const c=v8(e,n,this._languageConfigurationService);c!==null&&c&2&&(d=t.unshiftIndent(d));const h=Qs(d,i),u=Qs(l,i);return h-u}}return null}matchEnterRuleMovingDown(e,t,i,n,s,r){if(ba(r)>=0){const a=e.getLineMaxColumn(s),l=vm(this._autoIndent,e,new x(s,a,s,a),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,l)}else{let a=n-1;for(;a>=1;){const c=e.getLineContent(a);if(ba(c)>=0)break;a--}if(a<1||n>e.getLineCount())return null;const l=e.getLineMaxColumn(a),d=vm(this._autoIndent,e,new x(a,l,a,l),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,d)}}matchEnterRule(e,t,i,n,s,r){let a=s;for(;a>=1;){let c;if(a===s&&r!==void 0?c=r:c=e.getLineContent(a),ba(c)>=0)break;a--}if(a<1||n>e.getLineCount())return null;const l=e.getLineMaxColumn(a),d=vm(this._autoIndent,e,new x(a,l,a,l),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,d)}trimStart(e){return e.replace(/^\s+/,"")}shouldAutoIndent(e,t){if(this._autoIndent<4||!e.tokenization.isCheapToTokenize(t.startLineNumber))return!1;const i=e.getLanguageIdAtPosition(t.startLineNumber,1),n=e.getLanguageIdAtPosition(t.endLineNumber,1);return!(i!==n||this._languageConfigurationService.getLanguageConfiguration(i).indentRulesSupport===null)}getIndentEditsOfMovingBlock(e,t,i,n,s,r){for(let a=i.startLineNumber;a<=i.endLineNumber;a++){const l=e.getLineContent(a),d=Bt(l),h=Qs(d,n)+r,u=Mv(h,n,s);u!==d&&(t.addEditOperation(new x(a,1,a,d.length+1),u),a===i.endLineNumber&&i.endColumn<=d.length+1&&u===""&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&i.startLineNumber=n)return null;const s=[];for(let a=i;a<=n;a++)s.push(o.getLineContent(a));let r=s.slice(0);return r.sort(ph.getCollator().compare),t===!0&&(r=r.reverse()),{startLineNumber:i,endLineNumber:n,before:s,after:r}}function VCe(o,e,t){const i=FU(o,e,t);return i?ri.replace(new x(i.startLineNumber,1,i.endLineNumber,o.getLineMaxColumn(i.endLineNumber)),i.after.join(` +`)):null}class BU extends ce{constructor(e,t){super(t),this.down=e}run(e,t){if(!t.hasModel())return;const i=t.getSelections().map((r,a)=>({selection:r,index:a,ignore:!1}));i.sort((r,a)=>x.compareRangesUsingStarts(r.selection,a.selection));let n=i[0];for(let r=1;rnew F(c.positionLineNumber,c.positionColumn)));const s=t.getSelection();if(s===null)return;const r=e.get(Je),a=t.getModel(),l=r.getValue("files.trimTrailingWhitespaceInRegexAndStrings",{overrideIdentifier:a==null?void 0:a.getLanguageId(),resource:a==null?void 0:a.uri}),d=new FCe(s,n,l);t.pushUndoStop(),t.executeCommands(this.id,[d]),t.pushUndoStop()}}Kx.ID="editor.action.trimTrailingWhitespace";class YCe extends ce{constructor(){super({id:"editor.action.deleteLines",label:m("lines.delete","Delete Line"),alias:"Delete Line",precondition:E.writable,kbOpts:{kbExpr:E.textInputFocus,primary:3113,weight:100}})}run(e,t){if(!t.hasModel())return;const i=this._getLinesToRemove(t),n=t.getModel();if(n.getLineCount()===1&&n.getLineMaxColumn(1)===1)return;let s=0;const r=[],a=[];for(let l=0,d=i.length;l1&&(h-=1,g=n.getLineMaxColumn(h)),r.push(ri.replace(new _e(h,g,u,f),"")),a.push(new _e(h-s,c.positionColumn,h-s,c.positionColumn)),s+=c.endLineNumber-c.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,r,a),t.pushUndoStop()}_getLinesToRemove(e){const t=e.getSelections().map(s=>{let r=s.endLineNumber;return s.startLineNumbers.startLineNumber===r.startLineNumber?s.endLineNumber-r.endLineNumber:s.startLineNumber-r.startLineNumber);const i=[];let n=t[0];for(let s=1;s=t[s].startLineNumber?n.endLineNumber=t[s].endLineNumber:(i.push(n),n=t[s]);return i.push(n),i}}class QCe extends ce{constructor(){super({id:"editor.action.indentLines",label:m("lines.indent","Indent Line"),alias:"Indent Line",precondition:E.writable,kbOpts:{kbExpr:E.editorTextFocus,primary:2142,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,li.indent(i.cursorConfig,t.getModel(),t.getSelections())),t.pushUndoStop())}}class XCe extends ce{constructor(){super({id:"editor.action.outdentLines",label:m("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:E.writable,kbOpts:{kbExpr:E.editorTextFocus,primary:2140,weight:100}})}run(e,t){bm.Outdent.runEditorCommand(e,t,null)}}class JCe extends ce{constructor(){super({id:"editor.action.insertLineBefore",label:m("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:E.writable,kbOpts:{kbExpr:E.editorTextFocus,primary:3075,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,li.lineInsertBefore(i.cursorConfig,t.getModel(),t.getSelections())))}}class e1e extends ce{constructor(){super({id:"editor.action.insertLineAfter",label:m("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:E.writable,kbOpts:{kbExpr:E.editorTextFocus,primary:2051,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,li.lineInsertAfter(i.cursorConfig,t.getModel(),t.getSelections())))}}class VU extends ce{run(e,t){if(!t.hasModel())return;const i=t.getSelection(),n=this._getRangesToDelete(t),s=[];for(let l=0,d=n.length-1;lri.replace(l,""));t.pushUndoStop(),t.executeEdits(this.id,a,r),t.pushUndoStop()}}class t1e extends VU{constructor(){super({id:"deleteAllLeft",label:m("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:E.writable,kbOpts:{kbExpr:E.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(e,t){let i=null;const n=[];let s=0;return t.forEach(r=>{let a;if(r.endColumn===1&&s>0){const l=r.startLineNumber-s;a=new _e(l,r.startColumn,l,r.startColumn)}else a=new _e(r.startLineNumber,r.startColumn,r.startLineNumber,r.startColumn);s+=r.endLineNumber-r.startLineNumber,r.intersectRanges(e)?i=a:n.push(a)}),i&&n.unshift(i),n}_getRangesToDelete(e){const t=e.getSelections();if(t===null)return[];let i=t;const n=e.getModel();return n===null?[]:(i.sort(x.compareRangesUsingStarts),i=i.map(s=>{if(s.isEmpty())if(s.startColumn===1){const r=Math.max(1,s.startLineNumber-1),a=s.startLineNumber===1?1:n.getLineLength(r)+1;return new x(r,a,s.startLineNumber,1)}else return new x(s.startLineNumber,1,s.startLineNumber,s.startColumn);else return new x(s.startLineNumber,1,s.endLineNumber,s.endColumn)}),i)}}class i1e extends VU{constructor(){super({id:"deleteAllRight",label:m("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:E.writable,kbOpts:{kbExpr:E.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(e,t){let i=null;const n=[];for(let s=0,r=t.length,a=0;s{if(s.isEmpty()){const r=t.getLineMaxColumn(s.startLineNumber);return s.startColumn===r?new x(s.startLineNumber,s.startColumn,s.startLineNumber+1,1):new x(s.startLineNumber,s.startColumn,s.startLineNumber,r)}return s});return n.sort(x.compareRangesUsingStarts),n}}class n1e extends ce{constructor(){super({id:"editor.action.joinLines",label:m("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:E.writable,kbOpts:{kbExpr:E.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(e,t){const i=t.getSelections();if(i===null)return;let n=t.getSelection();if(n===null)return;i.sort(x.compareRangesUsingStarts);const s=[],r=i.reduce((u,g)=>u.isEmpty()?u.endLineNumber===g.startLineNumber?(n.equalsSelection(u)&&(n=g),g):g.startLineNumber>u.endLineNumber+1?(s.push(u),g):new _e(u.startLineNumber,u.startColumn,g.endLineNumber,g.endColumn):g.startLineNumber>u.endLineNumber?(s.push(u),g):new _e(u.startLineNumber,u.startColumn,g.endLineNumber,g.endColumn));s.push(r);const a=t.getModel();if(a===null)return;const l=[],d=[];let c=n,h=0;for(let u=0,g=s.length;u=1){let V=!0;S===""&&(V=!1),V&&(S.charAt(S.length-1)===" "||S.charAt(S.length-1)===" ")&&(V=!1,S=S.replace(/[\s\uFEFF\xA0]+$/g," "));const P=I.substr(T-1);S+=(V?" ":"")+P,V?v=P.length+1:v=P.length}else v=0}const L=new x(p,_,b,C);if(!L.isEmpty()){let D;f.isEmpty()?(l.push(ri.replace(L,S)),D=new _e(L.startLineNumber-h,S.length-v+1,p-h,S.length-v+1)):f.startLineNumber===f.endLineNumber?(l.push(ri.replace(L,S)),D=new _e(f.startLineNumber-h,f.startColumn,f.endLineNumber-h,f.endColumn)):(l.push(ri.replace(L,S)),D=new _e(f.startLineNumber-h,f.startColumn,f.startLineNumber-h,S.length-w)),x.intersectRanges(L,n)!==null?c=D:d.push(D)}h+=L.endLineNumber-L.startLineNumber}d.unshift(c),t.pushUndoStop(),t.executeEdits(this.id,l,d),t.pushUndoStop()}}class s1e extends ce{constructor(){super({id:"editor.action.transpose",label:m("editor.transpose","Transpose Characters around the Cursor"),alias:"Transpose Characters around the Cursor",precondition:E.writable})}run(e,t){const i=t.getSelections();if(i===null)return;const n=t.getModel();if(n===null)return;const s=[];for(let r=0,a=i.length;r=c){if(d.lineNumber===n.getLineCount())continue;const h=new x(d.lineNumber,Math.max(1,d.column-1),d.lineNumber+1,1),u=n.getValueInRange(h).split("").reverse().join("");s.push(new Tn(new _e(d.lineNumber,Math.max(1,d.column-1),d.lineNumber+1,1),u))}else{const h=new x(d.lineNumber,Math.max(1,d.column-1),d.lineNumber,d.column+1),u=n.getValueInRange(h).split("").reverse().join("");s.push(new ZA(h,u,new _e(d.lineNumber,d.column+1,d.lineNumber,d.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class rf extends ce{run(e,t){const i=t.getSelections();if(i===null)return;const n=t.getModel();if(n===null)return;const s=t.getOption(131),r=[];for(const a of i)if(a.isEmpty()){const l=a.getStartPosition(),d=t.getConfiguredWordAtPosition(l);if(!d)continue;const c=new x(l.lineNumber,d.startColumn,l.lineNumber,d.endColumn),h=n.getValueInRange(c);r.push(ri.replace(c,this._modifyText(h,s)))}else{const l=n.getValueInRange(a);r.push(ri.replace(a,this._modifyText(l,s)))}t.pushUndoStop(),t.executeEdits(this.id,r),t.pushUndoStop()}}class o1e extends rf{constructor(){super({id:"editor.action.transformToUppercase",label:m("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:E.writable})}_modifyText(e,t){return e.toLocaleUpperCase()}}class r1e extends rf{constructor(){super({id:"editor.action.transformToLowercase",label:m("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:E.writable})}_modifyText(e,t){return e.toLocaleLowerCase()}}class mc{constructor(e,t){this._pattern=e,this._flags=t,this._actual=null,this._evaluated=!1}get(){if(!this._evaluated){this._evaluated=!0;try{this._actual=new RegExp(this._pattern,this._flags)}catch{}}return this._actual}isSupported(){return this.get()!==null}}class l0 extends rf{constructor(){super({id:"editor.action.transformToTitlecase",label:m("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:E.writable})}_modifyText(e,t){const i=l0.titleBoundary.get();return i?e.toLocaleLowerCase().replace(i,n=>n.toLocaleUpperCase()):e}}l0.titleBoundary=new mc("(^|[^\\p{L}\\p{N}']|((^|\\P{L})'))\\p{L}","gmu");class _h extends rf{constructor(){super({id:"editor.action.transformToSnakecase",label:m("editor.transformToSnakecase","Transform to Snake Case"),alias:"Transform to Snake Case",precondition:E.writable})}_modifyText(e,t){const i=_h.caseBoundary.get(),n=_h.singleLetters.get();return!i||!n?e:e.replace(i,"$1_$2").replace(n,"$1_$2$3").toLocaleLowerCase()}}_h.caseBoundary=new mc("(\\p{Ll})(\\p{Lu})","gmu");_h.singleLetters=new mc("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu");class d0 extends rf{constructor(){super({id:"editor.action.transformToCamelcase",label:m("editor.transformToCamelcase","Transform to Camel Case"),alias:"Transform to Camel Case",precondition:E.writable})}_modifyText(e,t){const i=d0.wordBoundary.get();if(!i)return e;const n=e.split(i);return n.shift()+n.map(r=>r.substring(0,1).toLocaleUpperCase()+r.substring(1)).join("")}}d0.wordBoundary=new mc("[_\\s-]","gm");class Fg extends rf{constructor(){super({id:"editor.action.transformToPascalcase",label:m("editor.transformToPascalcase","Transform to Pascal Case"),alias:"Transform to Pascal Case",precondition:E.writable})}_modifyText(e,t){const i=Fg.wordBoundary.get(),n=Fg.wordBoundaryToMaintain.get();return!i||!n?e:e.split(n).map(a=>a.split(i)).flat().map(a=>a.substring(0,1).toLocaleUpperCase()+a.substring(1)).join("")}}Fg.wordBoundary=new mc("[_\\s-]","gm");Fg.wordBoundaryToMaintain=new mc("(?<=\\.)","gm");class qd extends rf{static isSupported(){return[this.caseBoundary,this.singleLetters,this.underscoreBoundary].every(t=>t.isSupported())}constructor(){super({id:"editor.action.transformToKebabcase",label:m("editor.transformToKebabcase","Transform to Kebab Case"),alias:"Transform to Kebab Case",precondition:E.writable})}_modifyText(e,t){const i=qd.caseBoundary.get(),n=qd.singleLetters.get(),s=qd.underscoreBoundary.get();return!i||!n||!s?e:e.replace(s,"$1-$3").replace(i,"$1-$2").replace(n,"$1-$2").toLocaleLowerCase()}}qd.caseBoundary=new mc("(\\p{Ll})(\\p{Lu})","gmu");qd.singleLetters=new mc("(\\p{Lu}|\\p{N})(\\p{Lu}\\p{Ll})","gmu");qd.underscoreBoundary=new mc("(\\S)(_)(\\S)","gm");J(zCe);J(UCe);J($Ce);J(jCe);J(KCe);J(qCe);J(GCe);J(ZCe);J(Kx);J(YCe);J(QCe);J(XCe);J(JCe);J(e1e);J(t1e);J(i1e);J(n1e);J(s1e);J(o1e);J(r1e);_h.caseBoundary.isSupported()&&_h.singleLetters.isSupported()&&J(_h);d0.wordBoundary.isSupported()&&J(d0);Fg.wordBoundary.isSupported()&&J(Fg);l0.titleBoundary.isSupported()&&J(l0);qd.isSupported()&&J(qd);var a1e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},B1=function(o,e){return function(t,i){e(t,i,o)}},Iw;const zU=new de("LinkedEditingInputVisible",!1),l1e="linked-editing-decoration";let zh=Iw=class extends W{static get(e){return e.getContribution(Iw.ID)}constructor(e,t,i,n,s){super(),this.languageConfigurationService=n,this._syncRangesToken=0,this._localToDispose=this._register(new G),this._editor=e,this._providers=i.linkedEditingRangeProvider,this._enabled=!1,this._visibleContextKey=zU.bindTo(t),this._debounceInformation=s.for(this._providers,"Linked Editing",{max:200}),this._currentDecorations=this._editor.createDecorationsCollection(),this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new G),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequestCts=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel(()=>this.reinitialize(!0))),this._register(this._editor.onDidChangeConfiguration(r=>{(r.hasChanged(70)||r.hasChanged(93))&&this.reinitialize(!1)})),this._register(this._providers.onDidChange(()=>this.reinitialize(!1))),this._register(this._editor.onDidChangeModelLanguage(()=>this.reinitialize(!0))),this.reinitialize(!0)}reinitialize(e){const t=this._editor.getModel(),i=t!==null&&(this._editor.getOption(70)||this._editor.getOption(93))&&this._providers.has(t);if(i===this._enabled&&!e||(this._enabled=i,this.clearRanges(),this._localToDispose.clear(),!i||t===null))return;this._localToDispose.add(ae.runAndSubscribe(t.onDidChangeLanguageConfiguration,()=>{this._languageWordPattern=this.languageConfigurationService.getLanguageConfiguration(t.getLanguageId()).getWordDefinition()}));const n=new Vr(this._debounceInformation.get(t)),s=()=>{var l;this._rangeUpdateTriggerPromise=n.trigger(()=>this.updateRanges(),(l=this._debounceDuration)!==null&&l!==void 0?l:this._debounceInformation.get(t))},r=new Vr(0),a=l=>{this._rangeSyncTriggerPromise=r.trigger(()=>this._syncRanges(l))};this._localToDispose.add(this._editor.onDidChangeCursorPosition(()=>{s()})),this._localToDispose.add(this._editor.onDidChangeModelContent(l=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){const d=this._currentDecorations.getRange(0);if(d&&l.changes.every(c=>d.intersectRanges(c.range))){a(this._syncRangesToken);return}}s()})),this._localToDispose.add({dispose:()=>{n.dispose(),r.dispose()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._syncRangesToken||this._currentDecorations.length===0)return;const t=this._editor.getModel(),i=this._currentDecorations.getRange(0);if(!i||i.startLineNumber!==i.endLineNumber)return this.clearRanges();const n=t.getValueInRange(i);if(this._currentWordPattern){const r=n.match(this._currentWordPattern);if((r?r[0].length:0)!==n.length)return this.clearRanges()}const s=[];for(let r=1,a=this._currentDecorations.length;r1){this.clearRanges();return}const i=this._editor.getModel(),n=i.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===n){if(t.equals(this._currentRequestPosition))return;if(this._currentDecorations.length>0){const r=this._currentDecorations.getRange(0);if(r&&r.containsPosition(t))return}}this.clearRanges(),this._currentRequestPosition=t,this._currentRequestModelVersion=n;const s=this._currentRequestCts=new ci;try{const r=new In(!1),a=await UU(this._providers,i,t,s.token);if(this._debounceInformation.update(i,r.elapsed()),s!==this._currentRequestCts||(this._currentRequestCts=null,n!==i.getVersionId()))return;let l=[];a!=null&&a.ranges&&(l=a.ranges),this._currentWordPattern=(a==null?void 0:a.wordPattern)||this._languageWordPattern;let d=!1;for(let h=0,u=l.length;h({range:h,options:Iw.DECORATION}));this._visibleContextKey.set(!0),this._currentDecorations.set(c),this._syncRangesToken++}catch(r){Ur(r)||ze(r),(this._currentRequestCts===s||!this._currentRequestCts)&&this.clearRanges()}}};zh.ID="editor.contrib.linkedEditing";zh.DECORATION=je.register({description:"linked-editing",stickiness:0,className:l1e});zh=Iw=a1e([B1(1,Me),B1(2,me),B1(3,$t),B1(4,fr)],zh);class d1e extends ce{constructor(){super({id:"editor.action.linkedEditing",label:m("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:K.and(E.writable,E.hasRenameProvider),kbOpts:{kbExpr:E.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){const i=e.get(_t),[n,s]=Array.isArray(t)&&t||[void 0,void 0];return ke.isUri(n)&&F.isIPosition(s)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then(r=>{r&&(r.setPosition(s),r.invokeWithinContext(a=>(this.reportTelemetry(a,r),this.run(a,r))))},ze):super.runCommand(e,t)}run(e,t){const i=zh.get(t);return i?Promise.resolve(i.updateRanges(!0)):Promise.resolve()}}const c1e=Xi.bindToContribution(zh.get);le(new c1e({id:"cancelLinkedEditingInput",precondition:zU,handler:o=>o.clearRanges(),kbOpts:{kbExpr:E.editorTextFocus,weight:199,primary:9,secondary:[1033]}}));function UU(o,e,t,i){const n=o.ordered(e);return hA(n.map(s=>async()=>{try{return await s.provideLinkedEditingRanges(e,t,i)}catch(r){yi(r);return}}),s=>!!s&&jn(s==null?void 0:s.ranges))}N("editor.linkedEditingBackground",{dark:z.fromHex("#f00").transparent(.3),light:z.fromHex("#f00").transparent(.3),hcDark:z.fromHex("#f00").transparent(.3),hcLight:z.white},m("editorLinkedEditingBackground","Background color when the editor auto renames on type."));Kl("_executeLinkedEditingProvider",(o,e,t)=>{const{linkedEditingRangeProvider:i}=o.get(me);return UU(i,e,t,st.None)});vt(zh.ID,zh,1);J(d1e);let h1e=class{constructor(e,t){this._link=e,this._provider=t}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}async resolve(e){return this._link.url?this._link.url:typeof this._provider.resolveLink=="function"?Promise.resolve(this._provider.resolveLink(this._link,e)).then(t=>(this._link=t||this._link,this._link.url?this.resolve(e):Promise.reject(new Error("missing")))):Promise.reject(new Error("missing"))}};class Ry{constructor(e){this._disposables=new G;let t=[];for(const[i,n]of e){const s=i.links.map(r=>new h1e(r,n));t=Ry._union(t,s),Vy(i)&&this._disposables.add(i)}this.links=t}dispose(){this._disposables.dispose(),this.links.length=0}static _union(e,t){const i=[];let n,s,r,a;for(n=0,r=0,s=e.length,a=t.length;nPromise.resolve(s.provideLinks(e,t)).then(a=>{a&&(i[r]=[a,s])},yi));return Promise.all(n).then(()=>{const s=new Ry(xa(i));return t.isCancellationRequested?(s.dispose(),new Ry([])):s})}ct.registerCommand("_executeLinkProvider",async(o,...e)=>{let[t,i]=e;pt(t instanceof ke),typeof i!="number"&&(i=0);const{linkProvider:n}=o.get(me),s=o.get(ai).getModel(t);if(!s)return[];const r=await $U(n,s,st.None);if(!r)return[];for(let l=0;l=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},W1=function(o,e){return function(t,i){e(t,i,o)}},lR;let wp=lR=class extends W{static get(e){return e.getContribution(lR.ID)}constructor(e,t,i,n,s){super(),this.editor=e,this.openerService=t,this.notificationService=i,this.languageFeaturesService=n,this.providers=this.languageFeaturesService.linkProvider,this.debounceInformation=s.for(this.providers,"Links",{min:1e3,max:4e3}),this.computeLinks=this._register(new At(()=>this.computeLinksNow(),1e3)),this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null;const r=this._register(new px(e));this._register(r.onMouseMoveOrRelevantKeyDown(([a,l])=>{this._onEditorMouseMove(a,l)})),this._register(r.onExecute(a=>{this.onEditorMouseUp(a)})),this._register(r.onCancel(a=>{this.cleanUpActiveLinkDecoration()})),this._register(e.onDidChangeConfiguration(a=>{a.hasChanged(71)&&(this.updateDecorations([]),this.stop(),this.computeLinks.schedule(0))})),this._register(e.onDidChangeModelContent(a=>{this.editor.hasModel()&&this.computeLinks.schedule(this.debounceInformation.get(this.editor.getModel()))})),this._register(e.onDidChangeModel(a=>{this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.computeLinks.schedule(0)})),this._register(e.onDidChangeModelLanguage(a=>{this.stop(),this.computeLinks.schedule(0)})),this._register(this.providers.onDidChange(a=>{this.stop(),this.computeLinks.schedule(0)})),this.computeLinks.schedule(0)}async computeLinksNow(){if(!this.editor.hasModel()||!this.editor.getOption(71))return;const e=this.editor.getModel();if(!e.isTooLargeForSyncing()&&this.providers.has(e)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=an(t=>$U(this.providers,e,t));try{const t=new In(!1);if(this.activeLinksList=await this.computePromise,this.debounceInformation.update(e,t.elapsed()),e.isDisposed())return;this.updateDecorations(this.activeLinksList.links)}catch(t){ze(t)}finally{this.computePromise=null}}}updateDecorations(e){const t=this.editor.getOption(78)==="altKey",i=[],n=Object.keys(this.currentOccurrences);for(const r of n){const a=this.currentOccurrences[r];i.push(a.decorationId)}const s=[];if(e)for(const r of e)s.push(Mm.decoration(r,t));this.editor.changeDecorations(r=>{const a=r.deltaDecorations(i,s);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let l=0,d=a.length;l{n.activate(s,i),this.activeLinkDecorationId=n.decorationId})}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){const e=this.editor.getOption(78)==="altKey";if(this.activeLinkDecorationId){const t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations(i=>{t.deactivate(i,e)}),this.activeLinkDecorationId=null}}onEditorMouseUp(e){if(!this.isEnabled(e))return;const t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}openLinkOccurrence(e,t,i=!1){if(!this.openerService)return;const{link:n}=e;n.resolve(st.None).then(s=>{if(typeof s=="string"&&this.editor.hasModel()){const r=this.editor.getModel().uri;if(r.scheme===Oe.file&&s.startsWith(`${Oe.file}:`)){const a=ke.parse(s);if(a.scheme===Oe.file){const l=Ja(a);let d=null;l.startsWith("/./")||l.startsWith("\\.\\")?d=`.${l.substr(1)}`:(l.startsWith("//./")||l.startsWith("\\\\.\\"))&&(d=`.${l.substr(2)}`),d&&(s=Mie(r,d))}}}return this.openerService.open(s,{openToSide:t,fromUserGesture:i,allowContributedOpeners:!0,allowCommands:!0,fromWorkspace:!0})},s=>{const r=s instanceof Error?s.message:s;r==="invalid"?this.notificationService.warn(m("invalid.url","Failed to open this link because it is not well-formed: {0}",n.url.toString())):r==="missing"?this.notificationService.warn(m("missing.url","Failed to open this link because its target is missing.")):ze(s)})}getLinkOccurrence(e){if(!this.editor.hasModel()||!e)return null;const t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);for(const i of t){const n=this.currentOccurrences[i.id];if(n)return n}return null}isEnabled(e,t){return!!(e.target.type===6&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))}stop(){var e;this.computeLinks.cancel(),this.activeLinksList&&((e=this.activeLinksList)===null||e===void 0||e.dispose(),this.activeLinksList=null),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop()}};wp.ID="editor.linkDetector";wp=lR=u1e([W1(1,fo),W1(2,Ri),W1(3,me),W1(4,fr)],wp);const b7={general:je.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:je.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})};class Mm{static decoration(e,t){return{range:e.range,options:Mm._getOptions(e,t,!1)}}static _getOptions(e,t,i){const n={...i?b7.active:b7.general};return n.hoverMessage=g1e(e,t),n}constructor(e,t){this.link=e,this.decorationId=t}activate(e,t){e.changeDecorationOptions(this.decorationId,Mm._getOptions(this.link,t,!0))}deactivate(e,t){e.changeDecorationOptions(this.decorationId,Mm._getOptions(this.link,t,!1))}}function g1e(o,e){const t=o.url&&/^command:/i.test(o.url.toString()),i=o.tooltip?o.tooltip:t?m("links.navigate.executeCmd","Execute command"):m("links.navigate.follow","Follow link"),n=e?it?m("links.navigate.kb.meta.mac","cmd + click"):m("links.navigate.kb.meta","ctrl + click"):it?m("links.navigate.kb.alt.mac","option + click"):m("links.navigate.kb.alt","alt + click");if(o.url){let s="";if(/^command:/i.test(o.url.toString())){const a=o.url.toString().match(/^command:([^?#]+)/);if(a){const l=a[1];s=m("tooltip.explanation","Execute command {0}",l)}}return new Un("",!0).appendLink(o.url.toString(!0).replace(/ /g,"%20"),i,s).appendMarkdown(` (${n})`)}else return new Un().appendText(`${i} (${n})`)}class f1e extends ce{constructor(){super({id:"editor.action.openLink",label:m("label","Open Link"),alias:"Open Link",precondition:void 0})}run(e,t){const i=wp.get(t);if(!i||!t.hasModel())return;const n=t.getSelections();for(const s of n){const r=i.getLinkOccurrence(s.getEndPosition());r&&i.openLinkOccurrence(r,!1)}}}vt(wp.ID,wp,1);J(f1e);class dR extends W{constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown(t=>{const i=this._editor.getOption(117);i>=0&&t.target.type===6&&t.target.position.column>=i&&this._editor.updateOptions({stopRenderingLineAfter:-1})}))}}dR.ID="editor.contrib.longLinesHelper";vt(dR.ID,dR,2);const H1=N("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},m("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0);N("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},m("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0);N("editor.wordHighlightTextBackground",{light:H1,dark:H1,hcDark:H1,hcLight:H1},m("wordHighlightText","Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0);const V1=N("editor.wordHighlightBorder",{light:null,dark:null,hcDark:ti,hcLight:ti},m("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable."));N("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:ti,hcLight:ti},m("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable."));N("editor.wordHighlightTextBorder",{light:V1,dark:V1,hcDark:V1,hcLight:V1},m("wordHighlightTextBorder","Border color of a textual occurrence for a symbol."));const m1e=N("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},m("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),p1e=N("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hcDark:"#C0A0C0CC",hcLight:"#C0A0C0CC"},m("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),_1e=N("editorOverviewRuler.wordHighlightTextForeground",{dark:P_,light:P_,hcDark:P_,hcLight:P_},m("overviewRulerWordHighlightTextForeground","Overview ruler marker color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0),v1e=je.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:fi(p1e),position:Bo.Center},minimap:{color:fi(fL),position:1}}),b1e=je.register({description:"word-highlight-text",stickiness:1,className:"wordHighlightText",overviewRuler:{color:fi(_1e),position:Bo.Center},minimap:{color:fi(fL),position:1}}),C1e=je.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:fi(P_),position:Bo.Center},minimap:{color:fi(fL),position:1}}),w1e=je.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),S1e=je.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:fi(m1e),position:Bo.Center},minimap:{color:fi(fL),position:1}});function y1e(o){return o===Uv.Write?v1e:o===Uv.Text?b1e:S1e}function L1e(o){return o?w1e:C1e}gr((o,e)=>{const t=o.getColor(WA);t&&e.addRule(`.monaco-editor .selectionHighlight { background-color: ${t.transparent(.5)}; }`)});var x1e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},D1e=function(o,e){return function(t,i){e(t,i,o)}},cR;function Jh(o,e){const t=e.filter(i=>!o.find(n=>n.equals(i)));if(t.length>=1){const i=t.map(s=>`line ${s.viewState.position.lineNumber} column ${s.viewState.position.column}`).join(", "),n=t.length===1?m("cursorAdded","Cursor added: {0}",i):m("cursorsAdded","Cursors added: {0}",i);Al(n)}}class k1e extends ce{constructor(){super({id:"editor.action.insertCursorAbove",label:m("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:k.MenubarSelectionMenu,group:"3_multi",title:m({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(e,t,i){if(!t.hasModel())return;let n=!0;i&&i.logicalLine===!1&&(n=!1);const s=t._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();const r=s.getCursorStates();s.setCursorStates(i.source,3,Cn.addCursorUp(s,r,n)),s.revealTopMostCursor(i.source),Jh(r,s.getCursorStates())}}class I1e extends ce{constructor(){super({id:"editor.action.insertCursorBelow",label:m("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:k.MenubarSelectionMenu,group:"3_multi",title:m({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(e,t,i){if(!t.hasModel())return;let n=!0;i&&i.logicalLine===!1&&(n=!1);const s=t._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();const r=s.getCursorStates();s.setCursorStates(i.source,3,Cn.addCursorDown(s,r,n)),s.revealBottomMostCursor(i.source),Jh(r,s.getCursorStates())}}class E1e extends ce{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:m("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:k.MenubarSelectionMenu,group:"3_multi",title:m({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,i){if(!e.isEmpty()){for(let n=e.startLineNumber;n1&&i.push(new _e(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=t.getSelections(),s=t._getViewModel(),r=s.getCursorStates(),a=[];n.forEach(l=>this.getCursorsForSelection(l,i,a)),a.length>0&&t.setSelections(a),Jh(r,s.getCursorStates())}}class N1e extends ce{constructor(){super({id:"editor.action.addCursorsToBottom",label:m("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),n=t.getModel().getLineCount(),s=[];for(let l=i[0].startLineNumber;l<=n;l++)s.push(new _e(l,i[0].startColumn,l,i[0].endColumn));const r=t._getViewModel(),a=r.getCursorStates();s.length>0&&t.setSelections(s),Jh(a,r.getCursorStates())}}class T1e extends ce{constructor(){super({id:"editor.action.addCursorsToTop",label:m("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),n=[];for(let a=i[0].startLineNumber;a>=1;a--)n.push(new _e(a,i[0].startColumn,a,i[0].endColumn));const s=t._getViewModel(),r=s.getCursorStates();n.length>0&&t.setSelections(n),Jh(r,s.getCursorStates())}}class z1{constructor(e,t,i){this.selections=e,this.revealRange=t,this.revealScrollType=i}}class c0{static create(e,t){if(!e.hasModel())return null;const i=t.getState();if(!e.hasTextFocus()&&i.isRevealed&&i.searchString.length>0)return new c0(e,t,!1,i.searchString,i.wholeWord,i.matchCase,null);let n=!1,s,r;const a=e.getSelections();a.length===1&&a[0].isEmpty()?(n=!0,s=!0,r=!0):(s=i.wholeWord,r=i.matchCase);const l=e.getSelection();let d,c=null;if(l.isEmpty()){const h=e.getConfiguredWordAtPosition(l.getStartPosition());if(!h)return null;d=h.word,c=new _e(l.startLineNumber,h.startColumn,l.startLineNumber,h.endColumn)}else d=e.getModel().getValueInRange(l).replace(/\r\n/g,` +`);return new c0(e,t,n,d,s,r,c)}constructor(e,t,i,n,s,r,a){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=i,this.searchText=n,this.wholeWord=s,this.matchCase=r,this.currentMatch=a}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new z1(t.concat(e),e,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new z1(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const n=this.currentMatch;return this.currentMatch=null,n}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1);return i?new _e(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new z1(t.concat(e),e,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new z1(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const n=this.currentMatch;return this.currentMatch=null,n}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1);return i?new _e(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}selectAll(e){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();const t=this._editor.getModel();return e?t.findMatches(this.searchText,e,!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1,1073741824):t.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1,1073741824)}}class Bg extends W{static get(e){return e.getContribution(Bg.ID)}constructor(e){super(),this._sessionDispose=this._register(new G),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){const t=c0.create(this._editor,e);if(!t)return;this._session=t;const i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(n=>{this._ignoreSelectionChange||this._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(()=>{this._endSession()})),this._sessionDispose.add(e.getState().onFindReplaceStateChange(n=>{(n.matchCase||n.wholeWord)&&this._endSession()}))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){const e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;const i=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return i?new _e(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){const t=this._editor.getSelections();if(t.length>1){const n=e.getState().matchCase;if(!jU(this._editor.getModel(),t,n)){const r=this._editor.getModel(),a=[];for(let l=0,d=t.length;l0&&i.isRegex){const n=this._editor.getModel();i.searchScope?t=n.findMatches(i.searchString,i.searchScope,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(131):null,!1,1073741824):t=n.findMatches(i.searchString,!0,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(131):null,!1,1073741824)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(i.searchScope)}if(t.length>0){const n=this._editor.getSelection();for(let s=0,r=t.length;snew _e(s.range.startLineNumber,s.range.startColumn,s.range.endLineNumber,s.range.endColumn)))}}}Bg.ID="editor.contrib.multiCursorController";class Kp extends ce{run(e,t){const i=Bg.get(t);if(!i)return;const n=t._getViewModel();if(n){const s=n.getCursorStates(),r=Is.get(t);if(r)this._run(i,r);else{const a=e.get(Le).createInstance(Is,t);this._run(i,a),a.dispose()}Jh(s,n.getCursorStates())}}}class M1e extends Kp{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:m("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:E.focus,primary:2082,weight:100},menuOpts:{menuId:k.MenubarSelectionMenu,group:"3_multi",title:m({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}}class R1e extends Kp{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:m("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:k.MenubarSelectionMenu,group:"3_multi",title:m({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}}class A1e extends Kp{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:m("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:E.focus,primary:Ki(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}}class P1e extends Kp{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:m("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}}class O1e extends Kp{constructor(){super({id:"editor.action.selectHighlights",label:m("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:E.focus,primary:3114,weight:100},menuOpts:{menuId:k.MenubarSelectionMenu,group:"3_multi",title:m({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}}class F1e extends Kp{constructor(){super({id:"editor.action.changeAll",label:m("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:K.and(E.writable,E.editorTextFocus),kbOpts:{kbExpr:E.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}}class B1e{constructor(e,t,i,n,s){this._model=e,this._searchText=t,this._matchCase=i,this._wordSeparators=n,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,s&&this._model===s._model&&this._searchText===s._searchText&&this._matchCase===s._matchCase&&this._wordSeparators===s._wordSeparators&&this._modelVersionId===s._modelVersionId&&(this._cachedFindMatches=s._cachedFindMatches)}findMatches(){return this._cachedFindMatches===null&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map(e=>e.range),this._cachedFindMatches.sort(x.compareRangesUsingStarts)),this._cachedFindMatches}}let h0=cR=class extends W{constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(108),this._decorations=e.createDecorationsCollection(),this.updateSoon=this._register(new At(()=>this._update(),300)),this.state=null,this._register(e.onDidChangeConfiguration(n=>{this._isEnabled=e.getOption(108)})),this._register(e.onDidChangeCursorSelection(n=>{this._isEnabled&&(n.selection.isEmpty()?n.reason===3?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())})),this._register(e.onDidChangeModel(n=>{this._setState(null)})),this._register(e.onDidChangeModelContent(n=>{this._isEnabled&&this.updateSoon.schedule()}));const i=Is.get(e);i&&this._register(i.getState().onFindReplaceStateChange(n=>{this._update()})),this.updateSoon.schedule()}_update(){this._setState(cR._createState(this.state,this._isEnabled,this.editor))}static _createState(e,t,i){if(!t||!i.hasModel())return null;const n=i.getSelection();if(n.startLineNumber!==n.endLineNumber)return null;const s=Bg.get(i);if(!s)return null;const r=Is.get(i);if(!r)return null;let a=s.getSession(r);if(!a){const c=i.getSelections();if(c.length>1){const u=r.getState().matchCase;if(!jU(i.getModel(),c,u))return null}a=c0.create(i,r)}if(!a||a.currentMatch||/^[ \t]+$/.test(a.searchText)||a.searchText.length>200)return null;const l=r.getState(),d=l.matchCase;if(l.isRevealed){let c=l.searchString;d||(c=c.toLowerCase());let h=a.searchText;if(d||(h=h.toLowerCase()),c===h&&a.matchCase===l.matchCase&&a.wholeWord===l.wholeWord&&!l.isRegex)return null}return new B1e(i.getModel(),a.searchText,a.matchCase,a.wholeWord?i.getOption(131):null,e)}_setState(e){if(this.state=e,!this.state){this._decorations.clear();return}if(!this.editor.hasModel())return;const t=this.editor.getModel();if(t.isTooLargeForTokenization())return;const i=this.state.findMatches(),n=this.editor.getSelections();n.sort(x.compareRangesUsingStarts);const s=[];for(let d=0,c=0,h=i.length,u=n.length;d=u)s.push(g),d++;else{const f=x.compareRangesUsingStarts(g,n[c]);f<0?((n[c].isEmpty()||!x.areIntersecting(g,n[c]))&&s.push(g),d++):(f>0||d++,c++)}}const r=this.editor.getOption(81)!=="off",a=this._languageFeaturesService.documentHighlightProvider.has(t)&&r,l=s.map(d=>({range:d,options:L1e(a)}));this._decorations.set(l)}dispose(){this._setState(null),super.dispose()}};h0.ID="editor.contrib.selectionHighlighter";h0=cR=x1e([D1e(1,me)],h0);function jU(o,e,t){const i=C7(o,e[0],!t);for(let n=1,s=e.length;n=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},K1e=function(o,e){return function(t,i){e(t,i,o)}};const aI="inline-edit";let hR=class extends W{constructor(e,t,i){super(),this.editor=e,this.model=t,this.languageService=i,this.isDisposed=ut(this,!1),this.currentTextModel=Nt(this.editor.onDidChangeModel,()=>this.editor.getModel()),this.uiState=He(this,n=>{var s;if(this.isDisposed.read(n))return;const r=this.currentTextModel.read(n);if(r!==this.model.targetTextModel.read(n))return;const a=this.model.ghostText.read(n);if(!a)return;let l=(s=this.model.range)===null||s===void 0?void 0:s.read(n);l&&l.startLineNumber===l.endLineNumber&&l.startColumn===l.endColumn&&(l=void 0);const d=(l?l.startLineNumber===l.endLineNumber:!0)&&a.parts.length===1&&a.parts[0].lines.length===1,c=a.parts.length===1&&a.parts[0].lines.every(C=>C.length===0),h=[],u=[];function g(C,w){if(u.length>0){const S=u[u.length-1];w&&S.decorations.push(new ws(S.content.length+1,S.content.length+1+C[0].length,w,0)),S.content+=C[0],C=C.slice(1)}for(const S of C)u.push({content:S,decorations:w?[new ws(1,S.length+1,w,0)]:[]})}const f=r.getLineContent(a.lineNumber);let p,_=0;if(!c){for(const C of a.parts){let w=C.lines;l&&!d&&(g(w,aI),w=[]),p===void 0?(h.push({column:C.column,text:w[0],preview:C.preview}),w=w.slice(1)):g([f.substring(_,C.column-1)],void 0),w.length>0&&(g(w,aI),p===void 0&&C.column<=f.length&&(p=C.column)),_=C.column-1}p!==void 0&&g([f.substring(_)],void 0)}const v=p!==void 0?new LU(p,f.length+1):void 0,b=d||!l?a.lineNumber:l.endLineNumber-1;return{inlineTexts:h,additionalLines:u,hiddenRange:v,lineNumber:b,additionalReservedLineCount:this.model.minReservedLineCount.read(n),targetTextModel:r,range:l,isSingleLine:d,isPureRemove:c,backgroundColoring:this.model.backgroundColoring.read(n)}}),this.decorations=He(this,n=>{const s=this.uiState.read(n);if(!s)return[];const r=[];if(s.hiddenRange&&r.push({range:s.hiddenRange.toRange(s.lineNumber),options:{inlineClassName:"inline-edit-hidden",description:"inline-edit-hidden"}}),s.range){const a=[];if(s.isSingleLine)a.push(s.range);else if(s.isPureRemove){const d=s.range.endLineNumber-s.range.startLineNumber;for(let c=0;c{const s=this.uiState.read(n);return s&&!s.isPureRemove?{lineNumber:s.lineNumber,additionalLines:s.additionalLines,minReservedLineCount:s.additionalReservedLineCount,targetTextModel:s.targetTextModel}:void 0}))),this._register(Ce(()=>{this.isDisposed.set(!0,void 0)})),this._register(xU(this.editor,this.decorations))}ownsViewZone(e){return this.additionalLinesWidget.viewZoneId===e}};hR=j1e([K1e(2,si)],hR);var JP=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ll=function(o,e){return function(t,i){e(t,i,o)}},Ew;let uR=class extends W{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=Nt(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(63).showToolbar==="always"),this.sessionPosition=void 0,this.position=He(this,n=>{var s,r,a;const l=(s=this.model.read(n))===null||s===void 0?void 0:s.widget.model.ghostText.read(n);if(!this.alwaysShowToolbar.read(n)||!l||l.parts.length===0)return this.sessionPosition=void 0,null;const d=l.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==l.lineNumber&&(this.sessionPosition=void 0);const c=new F(l.lineNumber,Math.min(d,(a=(r=this.sessionPosition)===null||r===void 0?void 0:r.column)!==null&&a!==void 0?a:Number.MAX_SAFE_INTEGER));return this.sessionPosition=c,c}),this._register(hr((n,s)=>{if(!this.model.read(n)||!this.alwaysShowToolbar.read(n))return;const a=s.add(this.instantiationService.createInstance(Sp,this.editor,!0,this.position));e.addContentWidget(a),s.add(Ce(()=>e.removeContentWidget(a)))}))}};uR=JP([ll(2,Le)],uR);let Sp=Ew=class extends W{constructor(e,t,i,n,s,r){super(),this.editor=e,this.withBorder=t,this._position=i,this._contextKeyService=s,this._menuService=r,this.id=`InlineEditHintsContentWidget${Ew.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=bt("div.inlineEditHints",{className:this.withBorder?".withBorder":""},[bt("div@toolBar")]),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(k.InlineEditActions,this._contextKeyService)),this.toolBar=this._register(n.createInstance(gR,this.nodes.toolBar,this.editor,k.InlineEditToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:a=>a.startsWith("primary")},actionViewItemProvider:(a,l)=>{if(a instanceof so)return n.createInstance(q1e,a,void 0)},telemetrySource:"InlineEditToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility(a=>{Ew._dropDownVisible=a})),this._register(Xe(a=>{this._position.read(a),this.editor.layoutContentWidget(this)})),this._register(Xe(a=>{const l=[];for(const[d,c]of this.inlineCompletionsActionsMenus.getActions())for(const h of c)h instanceof so&&l.push(h);l.length>0&&l.unshift(new ji),this.toolBar.setAdditionalSecondaryActions(l)}))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};Sp._dropDownVisible=!1;Sp.id=0;Sp=Ew=JP([ll(3,Le),ll(4,Me),ll(5,zo)],Sp);class q1e extends Eh{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=bt("div.keybinding").root;this._register(new Bp(t,to,{disableTitle:!0,...DH})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineEditStatusBarItemLabel")}}updateTooltip(){}}let gR=class extends Hb{constructor(e,t,i,n,s,r,a,l,d,c){super(e,{resetMenu:i,...n},s,r,a,l,d,c),this.editor=t,this.menuId=i,this.options2=n,this.menuService=s,this.contextKeyService=r,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange(()=>this.updateToolbar())),this._store.add(this.editor.onDidChangeCursorPosition(()=>this.updateToolbar())),this.updateToolbar()}updateToolbar(){var e,t,i,n,s,r,a;const l=[],d=[];UL(this.menu,(e=this.options2)===null||e===void 0?void 0:e.menuOptions,{primary:l,secondary:d},(i=(t=this.options2)===null||t===void 0?void 0:t.toolbarOptions)===null||i===void 0?void 0:i.primaryGroup,(s=(n=this.options2)===null||n===void 0?void 0:n.toolbarOptions)===null||s===void 0?void 0:s.shouldInlineSubmenu,(a=(r=this.options2)===null||r===void 0?void 0:r.toolbarOptions)===null||a===void 0?void 0:a.useSeparatorsInPrimaryActions),d.push(...this.additionalActions),l.unshift(...this.prependedPrimaryActions),this.setActions(l,d)}setAdditionalSecondaryActions(e){di(this.additionalActions,e,(t,i)=>t===i)||(this.additionalActions=e,this.updateToolbar())}};gR=JP([ll(4,zo),ll(5,Me),ll(6,go),ll(7,St),ll(8,Qt),ll(9,Bn)],gR);var G1e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},k_=function(o,e){return function(t,i){e(t,i,o)}},Gu;class Z1e{constructor(e,t){this.widget=e,this.edit=t}dispose(){this.widget.dispose()}}let Qi=Gu=class extends W{static get(e){return e.getContribution(Gu.ID)}constructor(e,t,i,n,s,r){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.languageFeaturesService=n,this._commandService=s,this._configurationService=r,this._isVisibleContext=Gu.inlineEditVisibleContext.bindTo(this.contextKeyService),this._isCursorAtInlineEditContext=Gu.cursorAtInlineEditContext.bindTo(this.contextKeyService),this._currentEdit=this._register(kb(this,void 0)),this._isAccepting=ut(this,!1),this._enabled=Nt(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(63).enabled),this._fontFamily=Nt(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(63).fontFamily),this._backgroundColoring=Nt(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(63).backgroundColoring);const a=$n("InlineEditController.modelContentChangedSignal",e.onDidChangeModelContent);this._register(Xe(u=>{this._enabled.read(u)&&(a.read(u),!this._isAccepting.read(u)&&this.getInlineEdit(e,!0))}));const l=Nt(e.onDidChangeCursorPosition,()=>e.getPosition());this._register(Xe(u=>{if(!this._enabled.read(u))return;const g=l.read(u);g&&this.checkCursorPosition(g)})),this._register(Xe(u=>{const g=this._currentEdit.read(u);if(this._isCursorAtInlineEditContext.set(!1),!g){this._isVisibleContext.set(!1);return}this._isVisibleContext.set(!0);const f=e.getPosition();f&&this.checkCursorPosition(f)}));const d=$n("InlineEditController.editorBlurSignal",e.onDidBlurEditorWidget);this._register(Xe(async u=>{var g;this._enabled.read(u)&&(d.read(u),!(this._configurationService.getValue("editor.experimentalInlineEdit.keepOnBlur")||e.getOption(63).keepOnBlur)&&((g=this._currentRequestCts)===null||g===void 0||g.dispose(!0),this._currentRequestCts=void 0,await this.clear(!1)))}));const c=$n("InlineEditController.editorFocusSignal",e.onDidFocusEditorText);this._register(Xe(u=>{this._enabled.read(u)&&(c.read(u),this.getInlineEdit(e,!0))}));const h=this._register(G9());this._register(Xe(u=>{const g=this._fontFamily.read(u);h.setStyle(g===""||g==="default"?"":` +.monaco-editor .inline-edit-decoration, +.monaco-editor .inline-edit-decoration-preview, +.monaco-editor .inline-edit { + font-family: ${g}; +}`)})),this._register(new uR(this.editor,this._currentEdit,this.instantiationService))}checkCursorPosition(e){var t;if(!this._currentEdit){this._isCursorAtInlineEditContext.set(!1);return}const i=(t=this._currentEdit.get())===null||t===void 0?void 0:t.edit;if(!i){this._isCursorAtInlineEditContext.set(!1);return}this._isCursorAtInlineEditContext.set(x.containsPosition(i.range,e))}validateInlineEdit(e,t){var i,n;if(t.text.includes(` +`)&&t.range.startLineNumber!==t.range.endLineNumber&&t.range.startColumn!==t.range.endColumn){if(t.range.startColumn!==1)return!1;const r=t.range.endLineNumber,a=t.range.endColumn,l=(n=(i=e.getModel())===null||i===void 0?void 0:i.getLineLength(r))!==null&&n!==void 0?n:0;if(a!==l+1)return!1}return!0}async fetchInlineEdit(e,t){this._currentRequestCts&&this._currentRequestCts.dispose(!0);const i=e.getModel();if(!i)return;const n=i.getVersionId(),s=this.languageFeaturesService.inlineEditProvider.all(i);if(s.length===0)return;const r=s[0];this._currentRequestCts=new ci;const a=this._currentRequestCts.token,l=t?zw.Automatic:zw.Invoke;if(t&&await Y1e(50,a),a.isCancellationRequested||i.isDisposed()||i.getVersionId()!==n)return;const c=await r.provideInlineEdit(i,{triggerKind:l},a);if(c&&!(a.isCancellationRequested||i.isDisposed()||i.getVersionId()!==n)&&this.validateInlineEdit(e,c))return c}async getInlineEdit(e,t){var i;this._isCursorAtInlineEditContext.set(!1),await this.clear();const n=await this.fetchInlineEdit(e,t);if(!n)return;const s=n.range.endLineNumber,r=n.range.endColumn,a=n.text.endsWith(` +`)&&!(n.range.startLineNumber===n.range.endLineNumber&&n.range.startColumn===n.range.endColumn)?n.text.slice(0,-1):n.text,l=new i0(s,[new ky(r,a,!1)]),d=this.instantiationService.createInstance(hR,this.editor,{ghostText:ma(l),minReservedLineCount:ma(0),targetTextModel:ma((i=this.editor.getModel())!==null&&i!==void 0?i:void 0),range:ma(n.range),backgroundColoring:this._backgroundColoring});this._currentEdit.set(new Z1e(d,n),void 0)}async trigger(){await this.getInlineEdit(this.editor,!1)}async jumpBack(){this._jumpBackPosition&&(this.editor.setPosition(this._jumpBackPosition),this.editor.revealPositionInCenterIfOutsideViewport(this._jumpBackPosition))}async accept(){var e;this._isAccepting.set(!0,void 0);const t=(e=this._currentEdit.get())===null||e===void 0?void 0:e.edit;if(!t)return;let i=t.text;t.text.startsWith(` +`)&&(i=t.text.substring(1)),this.editor.pushUndoStop(),this.editor.executeEdits("acceptCurrent",[ri.replace(x.lift(t.range),i)]),t.accepted&&await this._commandService.executeCommand(t.accepted.id,...t.accepted.arguments||[]).then(void 0,yi),this.freeEdit(t),Wt(n=>{this._currentEdit.set(void 0,n),this._isAccepting.set(!1,n)})}jumpToCurrent(){var e,t;this._jumpBackPosition=(e=this.editor.getSelection())===null||e===void 0?void 0:e.getStartPosition();const i=(t=this._currentEdit.get())===null||t===void 0?void 0:t.edit;if(!i)return;const n=F.lift({lineNumber:i.range.startLineNumber,column:i.range.startColumn});this.editor.setPosition(n),this.editor.revealPositionInCenterIfOutsideViewport(n)}async clear(e=!0){var t;const i=(t=this._currentEdit.get())===null||t===void 0?void 0:t.edit;i&&(i!=null&&i.rejected)&&e&&await this._commandService.executeCommand(i.rejected.id,...i.rejected.arguments||[]).then(void 0,yi),i&&this.freeEdit(i),this._currentEdit.set(void 0,void 0)}freeEdit(e){const t=this.editor.getModel();if(!t)return;const i=this.languageFeaturesService.inlineEditProvider.all(t);i.length!==0&&i[0].freeInlineEdit(e)}shouldShowHoverAt(e){const t=this._currentEdit.get();if(!t)return!1;const i=t.edit,n=t.widget.model;if(x.containsPosition(i.range,e.getStartPosition())||x.containsPosition(i.range,e.getEndPosition()))return!0;const r=n.ghostText.get();return r?r.parts.some(a=>e.containsPosition(new F(r.lineNumber,a.column))):!1}shouldShowHoverAtViewZone(e){var t,i;return(i=(t=this._currentEdit.get())===null||t===void 0?void 0:t.widget.ownsViewZone(e))!==null&&i!==void 0?i:!1}};Qi.ID="editor.contrib.inlineEditController";Qi.inlineEditVisibleKey="inlineEditVisible";Qi.inlineEditVisibleContext=new de(Gu.inlineEditVisibleKey,!1);Qi.cursorAtInlineEditKey="cursorAtInlineEdit";Qi.cursorAtInlineEditContext=new de(Gu.cursorAtInlineEditKey,!1);Qi=Gu=G1e([k_(1,Le),k_(2,Me),k_(3,me),k_(4,Qt),k_(5,Je)],Qi);function Y1e(o,e){return new Promise(t=>{let i;const n=setTimeout(()=>{i&&i.dispose(),t()},o);e&&(i=e.onCancellationRequested(()=>{clearTimeout(n),i&&i.dispose(),t()}))})}class Q1e extends ce{constructor(){super({id:V1e,label:"Accept Inline Edit",alias:"Accept Inline Edit",precondition:K.and(E.writable,Qi.inlineEditVisibleContext),kbOpts:[{weight:101,primary:2,kbExpr:K.and(E.writable,Qi.inlineEditVisibleContext,Qi.cursorAtInlineEditContext)}],menuOpts:[{menuId:k.InlineEditToolbar,title:"Accept",group:"primary",order:1}]})}async run(e,t){const i=Qi.get(t);await(i==null?void 0:i.accept())}}class X1e extends ce{constructor(){const e=K.and(E.writable,K.not(Qi.inlineEditVisibleKey));super({id:"editor.action.inlineEdit.trigger",label:"Trigger Inline Edit",alias:"Trigger Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e}})}async run(e,t){const i=Qi.get(t);i==null||i.trigger()}}class J1e extends ce{constructor(){const e=K.and(E.writable,Qi.inlineEditVisibleContext,K.not(Qi.cursorAtInlineEditKey));super({id:U1e,label:"Jump to Inline Edit",alias:"Jump to Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e},menuOpts:[{menuId:k.InlineEditToolbar,title:"Jump To Edit",group:"primary",order:3,when:e}]})}async run(e,t){const i=Qi.get(t);i==null||i.jumpToCurrent()}}class ewe extends ce{constructor(){const e=K.and(E.writable,Qi.cursorAtInlineEditContext);super({id:$1e,label:"Jump Back from Inline Edit",alias:"Jump Back from Inline Edit",precondition:e,kbOpts:{weight:110,primary:2646,kbExpr:e},menuOpts:[{menuId:k.InlineEditToolbar,title:"Jump Back",group:"primary",order:3,when:e}]})}async run(e,t){const i=Qi.get(t);i==null||i.jumpBack()}}class twe extends ce{constructor(){const e=K.and(E.writable,Qi.inlineEditVisibleContext);super({id:z1e,label:"Reject Inline Edit",alias:"Reject Inline Edit",precondition:e,kbOpts:{weight:100,primary:9,kbExpr:e},menuOpts:[{menuId:k.InlineEditToolbar,title:"Reject",group:"secondary",order:2}]})}async run(e,t){const i=Qi.get(t);await(i==null?void 0:i.clear())}}var iwe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},w7=function(o,e){return function(t,i){e(t,i,o)}};class nwe{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let fR=class{constructor(e,t,i){this._editor=e,this._instantiationService=t,this._telemetryService=i,this.hoverOrdinal=5}suggestHoverAnchor(e){const t=Qi.get(this._editor);if(!t)return null;const i=e.target;if(i.type===8){const n=i.detail;if(t.shouldShowHoverAtViewZone(n.viewZoneId)){const s=i.range;return new sg(1e3,this,s,e.event.posx,e.event.posy,!1)}}return i.type===7&&t.shouldShowHoverAt(i.range)?new sg(1e3,this,i.range,e.event.posx,e.event.posy,!1):i.type===6&&i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range)?new sg(1e3,this,i.range,e.event.posx,e.event.posy,!1):null}computeSync(e,t){if(this._editor.getOption(63).showToolbar!=="onHover")return[];const i=Qi.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new nwe(this,e.range,i)]:[]}renderHoverParts(e,t){const i=new G;this._telemetryService.publicLog2("inlineEditHover.shown");const n=this._instantiationService.createInstance(Sp,this._editor,!1,ma(null));return e.fragment.appendChild(n.getDomNode()),i.add(n),i}};fR=iwe([w7(1,Le),w7(2,Bn)],fR);J(Q1e);J(twe);J(J1e);J(ewe);J(X1e);vt(Qi.ID,Qi,3);Xh.register(fR);const Wg={Visible:new de("parameterHintsVisible",!1),MultipleSignatures:new de("parameterHintsMultipleSignatures",!1)};async function KU(o,e,t,i,n){const s=o.ordered(e);for(const r of s)try{const a=await r.provideSignatureHelp(e,t,n,i);if(a)return a}catch(a){yi(a)}}ct.registerCommand("_executeSignatureHelpProvider",async(o,...e)=>{const[t,i,n]=e;pt(ke.isUri(t)),pt(F.isIPosition(i)),pt(typeof n=="string"||!n);const s=o.get(me),r=await o.get(Gs).createModelReference(t);try{const a=await KU(s.signatureHelpProvider,r.object.textEditorModel,F.lift(i),{triggerKind:Dl.Invoke,isRetrigger:!1,triggerCharacter:n},st.None);return a?(setTimeout(()=>a.dispose(),0),a.value):void 0}finally{r.dispose()}});var Tc;(function(o){o.Default={type:0};class e{constructor(n,s){this.request=n,this.previouslyActiveHints=s,this.type=2}}o.Pending=e;class t{constructor(n){this.hints=n,this.type=1}}o.Active=t})(Tc||(Tc={}));class qx extends W{constructor(e,t,i=qx.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new O),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=Tc.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new ln),this.triggerChars=new eS,this.retriggerChars=new eS,this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new Vr(i),this._register(this.editor.onDidBlurEditorWidget(()=>this.cancel())),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(n=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(n=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(n=>this.onCursorChange(n))),this._register(this.editor.onDidChangeModelContent(n=>this.onModelContentChange())),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(n=>this.onDidType(n))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){this._state.type===2&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=Tc.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){const i=this.editor.getModel();if(!i||!this.providers.has(i))return;const n=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger(()=>this.doTrigger(n),t).catch(ze)}next(){if(this.state.type!==1)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=t%e===e-1,n=this.editor.getOption(86).cycle;if((e<2||i)&&!n){this.cancel();return}this.updateActiveSignature(i&&n?0:t+1)}previous(){if(this.state.type!==1)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=t===0,n=this.editor.getOption(86).cycle;if((e<2||i)&&!n){this.cancel();return}this.updateActiveSignature(i&&n?e-1:t-1)}updateActiveSignature(e){this.state.type===1&&(this.state=new Tc.Active({...this.state.hints,activeSignature:e}),this._onChangedHints.fire(this.state.hints))}async doTrigger(e){const t=this.state.type===1||this.state.type===2,i=this.getLastActiveHints();if(this.cancel(!0),this._pendingTriggers.length===0)return!1;const n=this._pendingTriggers.reduce(swe);this._pendingTriggers=[];const s={triggerKind:n.triggerKind,triggerCharacter:n.triggerCharacter,isRetrigger:t,activeSignatureHelp:i};if(!this.editor.hasModel())return!1;const r=this.editor.getModel(),a=this.editor.getPosition();this.state=new Tc.Pending(an(l=>KU(this.providers,r,a,s,l)),i);try{const l=await this.state.request;return e!==this.triggerId?(l==null||l.dispose(),!1):!l||!l.value.signatures||l.value.signatures.length===0?(l==null||l.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1):(this.state=new Tc.Active(l.value),this._lastSignatureHelpResult.value=l,this._onChangedHints.fire(this.state.hints),!0)}catch(l){return e===this.triggerId&&(this.state=Tc.Default),ze(l),!1}}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return this.state.type===1||this.state.type===2||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars.clear(),this.retriggerChars.clear();const e=this.editor.getModel();if(e)for(const t of this.providers.ordered(e)){for(const i of t.signatureHelpTriggerCharacters||[])if(i.length){const n=i.charCodeAt(0);this.triggerChars.add(n),this.retriggerChars.add(n)}for(const i of t.signatureHelpRetriggerCharacters||[])i.length&&this.retriggerChars.add(i.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;const t=e.length-1,i=e.charCodeAt(t);(this.triggerChars.has(i)||this.isTriggered&&this.retriggerChars.has(i))&&this.trigger({triggerKind:Dl.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){e.source==="mouse"?this.cancel():this.isTriggered&&this.trigger({triggerKind:Dl.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:Dl.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(86).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}qx.DEFAULT_DELAY=120;function swe(o,e){switch(e.triggerKind){case Dl.Invoke:return e;case Dl.ContentChange:return o;case Dl.TriggerCharacter:default:return e}}var owe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},U1=function(o,e){return function(t,i){e(t,i,o)}},mR;const po=te,rwe=_i("parameter-hints-next",oe.chevronDown,m("parameterHintsNextIcon","Icon for show next parameter hint.")),awe=_i("parameter-hints-previous",oe.chevronUp,m("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let Ay=mR=class extends W{constructor(e,t,i,n,s,r){super(),this.editor=e,this.model=t,this.telemetryService=r,this.renderDisposeables=this._register(new G),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new Fl({editor:e},s,n)),this.keyVisible=Wg.Visible.bindTo(i),this.keyMultipleSignatures=Wg.MultipleSignatures.bindTo(i)}createParameterHintDOMNodes(){const e=po(".editor-widget.parameter-hints-widget"),t=Q(e,po(".phwrapper"));t.tabIndex=-1;const i=Q(t,po(".controls")),n=Q(i,po(".button"+Te.asCSSSelector(awe))),s=Q(i,po(".overloads")),r=Q(i,po(".button"+Te.asCSSSelector(rwe)));this._register(U(n,"click",u=>{lt.stop(u),this.previous()})),this._register(U(r,"click",u=>{lt.stop(u),this.next()}));const a=po(".body"),l=new O0(a,{alwaysConsumeMouseWheel:!0});this._register(l),t.appendChild(l.getDomNode());const d=Q(a,po(".signature")),c=Q(a,po(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:d,overloads:s,docs:c,scrollbar:l},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(u=>{this.visible&&this.editor.layoutContentWidget(this)}));const h=()=>{if(!this.domNodes)return;const u=this.editor.getOption(50);this.domNodes.element.style.fontSize=`${u.fontSize}px`,this.domNodes.element.style.lineHeight=`${u.lineHeight/u.fontSize}`};h(),this._register(ae.chain(this.editor.onDidChangeConfiguration.bind(this.editor),u=>u.filter(g=>g.hasChanged(50)))(h)),this._register(this.editor.onDidLayoutChange(u=>this.updateMaxHeight())),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(()=>{var e;(e=this.domNodes)===null||e===void 0||e.element.classList.add("visible")},100),this.editor.layoutContentWidget(this))}hide(){var e;this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,(e=this.domNodes)===null||e===void 0||e.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(e){var t;if(this.renderDisposeables.clear(),!this.domNodes)return;const i=e.signatures.length>1;this.domNodes.element.classList.toggle("multiple",i),this.keyMultipleSignatures.set(i),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";const n=e.signatures[e.activeSignature];if(!n)return;const s=Q(this.domNodes.signature,po(".code")),r=this.editor.getOption(50);s.style.fontSize=`${r.fontSize}px`,s.style.fontFamily=r.fontFamily;const a=n.parameters.length>0,l=(t=n.activeParameter)!==null&&t!==void 0?t:e.activeParameter;if(a)this.renderParameters(s,n,l);else{const h=Q(s,po("span"));h.textContent=n.label}const d=n.parameters[l];if(d!=null&&d.documentation){const h=po("span.documentation");if(typeof d.documentation=="string")h.textContent=d.documentation;else{const u=this.renderMarkdownDocs(d.documentation);h.appendChild(u.element)}Q(this.domNodes.docs,po("p",{},h))}if(n.documentation!==void 0)if(typeof n.documentation=="string")Q(this.domNodes.docs,po("p",{},n.documentation));else{const h=this.renderMarkdownDocs(n.documentation);Q(this.domNodes.docs,h.element)}const c=this.hasDocs(n,d);if(this.domNodes.signature.classList.toggle("has-docs",c),this.domNodes.docs.classList.toggle("empty",!c),this.domNodes.overloads.textContent=String(e.activeSignature+1).padStart(e.signatures.length.toString().length,"0")+"/"+e.signatures.length,d){let h="";const u=n.parameters[l];Array.isArray(u.label)?h=n.label.substring(u.label[0],u.label[1]):h=u.label,u.documentation&&(h+=typeof u.documentation=="string"?`, ${u.documentation}`:`, ${u.documentation.value}`),n.documentation&&(h+=typeof n.documentation=="string"?`, ${n.documentation}`:`, ${n.documentation.value}`),this.announcedLabel!==h&&(js(m("hint","{0}, hint",h)),this.announcedLabel=h)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(e){const t=new In,i=this.renderDisposeables.add(this.markdownRenderer.render(e,{asyncRenderCallback:()=>{var s;(s=this.domNodes)===null||s===void 0||s.scrollbar.scanDomNode()}}));i.element.classList.add("markdown-docs");const n=t.elapsed();return n>300&&this.telemetryService.publicLog2("parameterHints.parseMarkdown",{renderDuration:n}),i}hasDocs(e,t){return!!(t&&typeof t.documentation=="string"&&Hc(t.documentation).length>0||t&&typeof t.documentation=="object"&&Hc(t.documentation).value.length>0||e.documentation&&typeof e.documentation=="string"&&Hc(e.documentation).length>0||e.documentation&&typeof e.documentation=="object"&&Hc(e.documentation.value).length>0)}renderParameters(e,t,i){const[n,s]=this.getParameterLabelOffsets(t,i),r=document.createElement("span");r.textContent=t.label.substring(0,n);const a=document.createElement("span");a.textContent=t.label.substring(n,s),a.className="parameter active";const l=document.createElement("span");l.textContent=t.label.substring(s),Q(e,r,a,l)}getParameterLabelOffsets(e,t){const i=e.parameters[t];if(i){if(Array.isArray(i.label))return i.label;if(i.label.length){const n=new RegExp(`(\\W|^)${Oo(i.label)}(?=\\W|$)`,"g");n.test(e.label);const s=n.lastIndex-i.label.length;return s>=0?[s,n.lastIndex]:[0,0]}else return[0,0]}else return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return mR.ID}updateMaxHeight(){if(!this.domNodes)return;const t=`${Math.max(this.editor.getLayoutInfo().height/4,250)}px`;this.domNodes.element.style.maxHeight=t;const i=this.domNodes.element.getElementsByClassName("phwrapper");i.length&&(i[0].style.maxHeight=t)}};Ay.ID="editor.widget.parameterHintsWidget";Ay=mR=owe([U1(2,Me),U1(3,fo),U1(4,si),U1(5,Bn)],Ay);N("editorHoverWidget.highlightForeground",{dark:Or,light:Or,hcDark:Or,hcLight:Or},m("editorHoverWidgetHighlightForeground","Foreground color of the active item in the parameter hint."));var lwe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},S7=function(o,e){return function(t,i){e(t,i,o)}},pR;let Hg=pR=class extends W{static get(e){return e.getContribution(pR.ID)}constructor(e,t,i){super(),this.editor=e,this.model=this._register(new qx(e,i.signatureHelpProvider)),this._register(this.model.onChangedHints(n=>{var s;n?(this.widget.value.show(),this.widget.value.render(n)):(s=this.widget.rawValue)===null||s===void 0||s.hide()})),this.widget=new $r(()=>this._register(t.createInstance(Ay,this.editor,this.model)))}cancel(){this.model.cancel()}previous(){var e;(e=this.widget.rawValue)===null||e===void 0||e.previous()}next(){var e;(e=this.widget.rawValue)===null||e===void 0||e.next()}trigger(e){this.model.trigger(e,0)}};Hg.ID="editor.controller.parameterHints";Hg=pR=lwe([S7(1,Le),S7(2,me)],Hg);class dwe extends ce{constructor(){super({id:"editor.action.triggerParameterHints",label:m("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:E.hasSignatureHelpProvider,kbOpts:{kbExpr:E.editorTextFocus,primary:3082,weight:100}})}run(e,t){const i=Hg.get(t);i==null||i.trigger({triggerKind:Dl.Invoke})}}vt(Hg.ID,Hg,2);J(dwe);const eO=175,tO=Xi.bindToContribution(Hg.get);le(new tO({id:"closeParameterHints",precondition:Wg.Visible,handler:o=>o.cancel(),kbOpts:{weight:eO,kbExpr:E.focus,primary:9,secondary:[1033]}}));le(new tO({id:"showPrevParameterHint",precondition:K.and(Wg.Visible,Wg.MultipleSignatures),handler:o=>o.previous(),kbOpts:{weight:eO,kbExpr:E.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}}));le(new tO({id:"showNextParameterHint",precondition:K.and(Wg.Visible,Wg.MultipleSignatures),handler:o=>o.next(),kbOpts:{weight:eO,kbExpr:E.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}));var cwe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},$1=function(o,e){return function(t,i){e(t,i,o)}};const qp=new de("renameInputVisible",!1,m("renameInputVisible","Whether the rename input widget is visible"));new de("renameInputFocused",!1,m("renameInputFocused","Whether the rename input widget is focused"));let _R=class{constructor(e,t,i,n,s,r){this._editor=e,this._acceptKeybindings=t,this._themeService=i,this._keybindingService=n,this._logService=r,this.allowEditorOverflow=!0,this._disposables=new G,this._visibleContextKey=qp.bindTo(s),this._isEditingRenameCandidate=!1,this._nRenameSuggestionsInvocations=0,this._hadAutomaticRenameSuggestionsInvocation=!1,this._candidates=new Set,this._beforeFirstInputFieldEditSW=new In,this._inputWithButton=new hwe,this._disposables.add(this._inputWithButton),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(a=>{a.hasChanged(50)&&this._updateFont()})),this._disposables.add(i.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._domNode.appendChild(this._inputWithButton.domNode),this._renameCandidateListView=this._disposables.add(new iO(this._domNode,{fontInfo:this._editor.getOption(50),onFocusChange:e=>{this._inputWithButton.input.value=e,this._isEditingRenameCandidate=!1},onSelectionChange:()=>{this._isEditingRenameCandidate=!1,this.acceptInput(!1)}})),this._disposables.add(this._inputWithButton.onDidInputChange(()=>{var e,t,i,n;((e=this._renameCandidateListView)===null||e===void 0?void 0:e.focusedCandidate)!==void 0&&(this._isEditingRenameCandidate=!0),(t=this._timeBeforeFirstInputFieldEdit)!==null&&t!==void 0||(this._timeBeforeFirstInputFieldEdit=this._beforeFirstInputFieldEditSW.elapsed()),((i=this._renameCandidateProvidersCts)===null||i===void 0?void 0:i.token.isCancellationRequested)===!1&&this._renameCandidateProvidersCts.cancel(),(n=this._renameCandidateListView)===null||n===void 0||n.clearFocus()})),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())),this._domNode}_updateStyles(e){var t,i,n,s,r;if(!this._domNode)return;const a=e.getColor(Td),l=e.getColor(jW);this._domNode.style.backgroundColor=String((t=e.getColor(Ti))!==null&&t!==void 0?t:""),this._domNode.style.boxShadow=a?` 0 0 8px 2px ${a}`:"",this._domNode.style.border=l?`1px solid ${l}`:"",this._domNode.style.color=String((i=e.getColor(qW))!==null&&i!==void 0?i:"");const d=e.getColor(GW);this._inputWithButton.domNode.style.backgroundColor=String((n=e.getColor(YE))!==null&&n!==void 0?n:""),this._inputWithButton.input.style.backgroundColor=String((s=e.getColor(YE))!==null&&s!==void 0?s:""),this._inputWithButton.domNode.style.borderWidth=d?"1px":"0px",this._inputWithButton.domNode.style.borderStyle=d?"solid":"none",this._inputWithButton.domNode.style.borderColor=(r=d==null?void 0:d.toString())!==null&&r!==void 0?r:"none"}_updateFont(){if(this._domNode===void 0)return;pt(this._label!==void 0,"RenameWidget#_updateFont: _label must not be undefined given _domNode is defined"),this._editor.applyFontInfo(this._inputWithButton.input);const e=this._editor.getOption(50);this._label.style.fontSize=`${this._computeLabelFontSize(e.fontSize)}px`}_computeLabelFontSize(e){return e*.8}getPosition(){if(!this._visible||!this._editor.hasModel()||!this._editor.getDomNode())return null;const e=Jd(this.getDomNode().ownerDocument.body),t=Oi(this._editor.getDomNode()),i=this._getTopForPosition();this._nPxAvailableAbove=i+t.top,this._nPxAvailableBelow=e.height-this._nPxAvailableAbove;const n=this._editor.getOption(67),{totalHeight:s}=Vg.getLayoutInfo({lineHeight:n}),r=this._nPxAvailableBelow>s*6?[2,1]:[1,2];return{position:this._position,preference:r}}beforeRender(){var e,t;const[i,n]=this._acceptKeybindings;return this._label.innerText=m({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",(e=this._keybindingService.lookupKeybinding(i))===null||e===void 0?void 0:e.getLabel(),(t=this._keybindingService.lookupKeybinding(n))===null||t===void 0?void 0:t.getLabel()),this._domNode.style.minWidth="200px",null}afterRender(e){if(this._trace("invoking afterRender, position: ",e?"not null":"null"),e===null){this.cancelInput(!0,"afterRender (because position is null)");return}if(!this._editor.hasModel()||!this._editor.getDomNode())return;pt(this._renameCandidateListView),pt(this._nPxAvailableAbove!==void 0),pt(this._nPxAvailableBelow!==void 0);const t=Ld(this._inputWithButton.domNode),i=Ld(this._label);let n;e===2?n=this._nPxAvailableBelow:n=this._nPxAvailableAbove,this._renameCandidateListView.layout({height:n-i-t,width:Xs(this._inputWithButton.domNode)})}acceptInput(e){var t;this._trace("invoking acceptInput"),(t=this._currentAcceptInput)===null||t===void 0||t.call(this,e)}cancelInput(e,t){var i;this._trace(`invoking cancelInput, caller: ${t}, _currentCancelInput: ${this._currentAcceptInput?"not undefined":"undefined"}`),(i=this._currentCancelInput)===null||i===void 0||i.call(this,e)}focusNextRenameSuggestion(){var e;!((e=this._renameCandidateListView)===null||e===void 0)&&e.focusNext()||(this._inputWithButton.input.value=this._currentName)}focusPreviousRenameSuggestion(){var e;!((e=this._renameCandidateListView)===null||e===void 0)&&e.focusPrevious()||(this._inputWithButton.input.value=this._currentName)}getInput(e,t,i,n,s){const{start:r,end:a}=this._getSelection(e,t);this._renameCts=s;const l=new G;this._nRenameSuggestionsInvocations=0,this._hadAutomaticRenameSuggestionsInvocation=!1,n===void 0?this._inputWithButton.button.style.display="none":(this._inputWithButton.button.style.display="flex",this._requestRenameCandidatesOnce=n,this._requestRenameCandidates(t,!1),l.add(U(this._inputWithButton.button,"click",()=>this._requestRenameCandidates(t,!0))),l.add(U(this._inputWithButton.button,ee.KEY_DOWN,c=>{const h=new Ht(c);(h.equals(3)||h.equals(10))&&(h.stopPropagation(),h.preventDefault(),this._requestRenameCandidates(t,!0))}))),this._isEditingRenameCandidate=!1,this._domNode.classList.toggle("preview",i),this._position=new F(e.startLineNumber,e.startColumn),this._currentName=t,this._inputWithButton.input.value=t,this._inputWithButton.input.setAttribute("selectionStart",r.toString()),this._inputWithButton.input.setAttribute("selectionEnd",a.toString()),this._inputWithButton.input.size=Math.max((e.endColumn-e.startColumn)*1.1,20),this._beforeFirstInputFieldEditSW.reset(),l.add(Ce(()=>{this._renameCts=void 0,s.dispose(!0)})),l.add(Ce(()=>{this._renameCandidateProvidersCts!==void 0&&(this._renameCandidateProvidersCts.dispose(!0),this._renameCandidateProvidersCts=void 0)})),l.add(Ce(()=>this._candidates.clear()));const d=new k0;return d.p.finally(()=>{l.dispose(),this._hide()}),this._currentCancelInput=c=>{var h;return this._trace("invoking _currentCancelInput"),this._currentAcceptInput=void 0,this._currentCancelInput=void 0,(h=this._renameCandidateListView)===null||h===void 0||h.clearCandidates(),d.complete(c),!0},this._currentAcceptInput=c=>{this._trace("invoking _currentAcceptInput"),pt(this._renameCandidateListView!==void 0);const h=this._renameCandidateListView.nCandidates;let u,g;const f=this._renameCandidateListView.focusedCandidate;if(f!==void 0?(this._trace("using new name from renameSuggestion"),u=f,g={k:"renameSuggestion"}):(this._trace("using new name from inputField"),u=this._inputWithButton.input.value,g=this._isEditingRenameCandidate?{k:"userEditedRenameSuggestion"}:{k:"inputField"}),u===t||u.trim().length===0){this.cancelInput(!0,"_currentAcceptInput (because newName === value || newName.trim().length === 0)");return}this._currentAcceptInput=void 0,this._currentCancelInput=void 0,this._renameCandidateListView.clearCandidates(),d.complete({newName:u,wantsPreview:i&&c,stats:{source:g,nRenameSuggestions:h,timeBeforeFirstInputFieldEdit:this._timeBeforeFirstInputFieldEdit,nRenameSuggestionsInvocations:this._nRenameSuggestionsInvocations,hadAutomaticRenameSuggestionsInvocation:this._hadAutomaticRenameSuggestionsInvocation}})},l.add(s.token.onCancellationRequested(()=>this.cancelInput(!0,"cts.token.onCancellationRequested"))),l.add(this._editor.onDidBlurEditorWidget(()=>{var c;return this.cancelInput(!(!((c=this._domNode)===null||c===void 0)&&c.ownerDocument.hasFocus()),"editor.onDidBlurEditorWidget")})),this._show(),d.p}_requestRenameCandidates(e,t){if(this._requestRenameCandidatesOnce!==void 0&&(this._renameCandidateProvidersCts!==void 0&&this._renameCandidateProvidersCts.dispose(!0),pt(this._renameCts),this._inputWithButton.buttonState!=="stop")){this._renameCandidateProvidersCts=new ci;const i=t?$v.Invoke:$v.Automatic,n=this._requestRenameCandidatesOnce(i,this._renameCandidateProvidersCts.token);if(n.length===0){this._inputWithButton.setSparkleButton();return}t||(this._hadAutomaticRenameSuggestionsInvocation=!0),this._nRenameSuggestionsInvocations+=1,this._inputWithButton.setStopButton(),this._updateRenameCandidates(n,e,this._renameCts.token)}}_getSelection(e,t){pt(this._editor.hasModel());const i=this._editor.getSelection();let n=0,s=t.length;return!x.isEmpty(i)&&!x.spansMultipleLines(i)&&x.containsRange(e,i)&&(n=Math.max(0,i.startColumn-e.startColumn),s=Math.min(e.endColumn,i.endColumn)-e.startColumn),{start:n,end:s}}_show(){this._trace("invoking _show"),this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(()=>{this._inputWithButton.input.focus(),this._inputWithButton.input.setSelectionRange(parseInt(this._inputWithButton.input.getAttribute("selectionStart")),parseInt(this._inputWithButton.input.getAttribute("selectionEnd")))},100)}async _updateRenameCandidates(e,t,i){const n=(...d)=>this._trace("_updateRenameCandidates",...d);n("start");const s=await D0(Promise.allSettled(e),i);if(this._inputWithButton.setSparkleButton(),s===void 0){n("returning early - received updateRenameCandidates results - undefined");return}const r=s.flatMap(d=>d.status==="fulfilled"&&xl(d.value)?d.value:[]);n(`received updateRenameCandidates results - total (unfiltered) ${r.length} candidates.`);const a=Gd(r,d=>d.newSymbolName);n(`distinct candidates - ${a.length} candidates.`);const l=a.filter(({newSymbolName:d})=>d.trim().length>0&&d!==this._inputWithButton.input.value&&d!==t&&!this._candidates.has(d));if(n(`valid distinct candidates - ${r.length} candidates.`),l.forEach(d=>this._candidates.add(d.newSymbolName)),l.length<1){n("returning early - no valid distinct candidates");return}n("setting candidates"),this._renameCandidateListView.setCandidates(l),n("asking editor to re-layout"),this._editor.layoutContentWidget(this)}_hide(){this._trace("invoked _hide"),this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}_getTopForPosition(){const e=this._editor.getVisibleRanges();let t;return e.length>0?t=e[0].startLineNumber:(this._logService.warn("RenameWidget#_getTopForPosition: this should not happen - visibleRanges is empty"),t=Math.max(1,this._position.lineNumber-5)),this._editor.getTopForLineNumber(this._position.lineNumber)-this._editor.getTopForLineNumber(t)}_trace(...e){this._logService.trace("RenameWidget",...e)}};_R=cwe([$1(2,Ji),$1(3,St),$1(4,Me),$1(5,qn)],_R);class iO{constructor(e,t){this._disposables=new G,this._availableHeight=0,this._minimumWidth=0,this._lineHeight=t.fontInfo.lineHeight,this._typicalHalfwidthCharacterWidth=t.fontInfo.typicalHalfwidthCharacterWidth,this._listContainer=document.createElement("div"),this._listContainer.className="rename-box rename-candidate-list-container",e.appendChild(this._listContainer),this._listWidget=iO._createListWidget(this._listContainer,this._candidateViewHeight,t.fontInfo),this._listWidget.onDidChangeFocus(i=>{i.elements.length===1&&t.onFocusChange(i.elements[0].newSymbolName)},this._disposables),this._listWidget.onDidChangeSelection(i=>{i.elements.length===1&&t.onSelectionChange()},this._disposables),this._disposables.add(this._listWidget.onDidBlur(i=>{this._listWidget.setFocus([])})),this._listWidget.style(Qg({listInactiveFocusForeground:Kc,listInactiveFocusBackground:qc}))}dispose(){this._listWidget.dispose(),this._disposables.dispose()}layout({height:e,width:t}){this._availableHeight=e,this._minimumWidth=t}setCandidates(e){this._listWidget.splice(0,0,e);const t=this._pickListHeight(this._listWidget.length),i=this._pickListWidth(e);this._listWidget.layout(t,i),this._listContainer.style.height=`${t}px`,this._listContainer.style.width=`${i}px`,Al(m("renameSuggestionsReceivedAria","Received {0} rename suggestions",e.length))}clearCandidates(){this._listContainer.style.height="0px",this._listContainer.style.width="0px",this._listWidget.splice(0,this._listWidget.length,[])}get nCandidates(){return this._listWidget.length}get focusedCandidate(){if(this._listWidget.length===0)return;const e=this._listWidget.getSelectedElements()[0];if(e!==void 0)return e.newSymbolName;const t=this._listWidget.getFocusedElements()[0];if(t!==void 0)return t.newSymbolName}focusNext(){if(this._listWidget.length===0)return!1;const e=this._listWidget.getFocus();if(e.length===0)return this._listWidget.focusFirst(),this._listWidget.reveal(0),!0;if(e[0]===this._listWidget.length-1)return this._listWidget.setFocus([]),this._listWidget.reveal(0),!1;{this._listWidget.focusNext();const t=this._listWidget.getFocus()[0];return this._listWidget.reveal(t),!0}}focusPrevious(){if(this._listWidget.length===0)return!1;const e=this._listWidget.getFocus();if(e.length===0){this._listWidget.focusLast();const t=this._listWidget.getFocus()[0];return this._listWidget.reveal(t),!0}else{if(e[0]===0)return this._listWidget.setFocus([]),!1;{this._listWidget.focusPrevious();const t=this._listWidget.getFocus()[0];return this._listWidget.reveal(t),!0}}}clearFocus(){this._listWidget.setFocus([])}get _candidateViewHeight(){const{totalHeight:e}=Vg.getLayoutInfo({lineHeight:this._lineHeight});return e}_pickListHeight(e){const t=this._candidateViewHeight*e;return Math.min(t,this._availableHeight,this._candidateViewHeight*7)}_pickListWidth(e){const t=Math.ceil(Math.max(...e.map(n=>n.newSymbolName.length))*this._typicalHalfwidthCharacterWidth);return Math.max(this._minimumWidth,25+t+10)}static _createListWidget(e,t,i){const n=new class{getTemplateId(r){return"candidate"}getHeight(r){return t}},s=new class{constructor(){this.templateId="candidate"}renderTemplate(r){return new Vg(r,i)}renderElement(r,a,l){l.populate(r)}disposeTemplate(r){r.dispose()}};return new $o("NewSymbolNameCandidates",e,n,[s],{keyboardSupport:!1,mouseSupport:!0,multipleSelectionSupport:!1})}}class hwe{constructor(){this._onDidInputChange=new O,this.onDidInputChange=this._onDidInputChange.event,this._disposables=new G}get domNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="rename-input-with-button",this._domNode.style.display="flex",this._domNode.style.flexDirection="row",this._domNode.style.alignItems="center",this._inputNode=document.createElement("input"),this._inputNode.className="rename-input",this._inputNode.type="text",this._inputNode.style.border="none",this._inputNode.setAttribute("aria-label",m("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._inputNode),this._buttonNode=document.createElement("div"),this._buttonNode.className="rename-suggestions-button",this._buttonNode.setAttribute("tabindex","0"),this._buttonGenHoverText=m("generateRenameSuggestionsButton","Generate new name suggestions"),this._buttonCancelHoverText=m("cancelRenameSuggestionsButton","Cancel"),this._buttonHover=Ha().setupUpdatableHover(Ts("element"),this._buttonNode,this._buttonGenHoverText),this._disposables.add(this._buttonHover),this._domNode.appendChild(this._buttonNode),this._disposables.add(U(this.input,ee.INPUT,()=>this._onDidInputChange.fire())),this._disposables.add(U(this.input,ee.KEY_DOWN,e=>{const t=new Ht(e);(t.keyCode===15||t.keyCode===17)&&this._onDidInputChange.fire()})),this._disposables.add(U(this.input,ee.CLICK,()=>this._onDidInputChange.fire())),this._disposables.add(U(this.input,ee.FOCUS,()=>{this.domNode.style.outlineWidth="1px",this.domNode.style.outlineStyle="solid",this.domNode.style.outlineOffset="-1px",this.domNode.style.outlineColor="var(--vscode-focusBorder)"})),this._disposables.add(U(this.input,ee.BLUR,()=>{this.domNode.style.outline="none"}))),this._domNode}get input(){return pt(this._inputNode),this._inputNode}get button(){return pt(this._buttonNode),this._buttonNode}get buttonState(){return this._buttonState}setSparkleButton(){var e,t;this._buttonState="sparkle",(e=this._sparkleIcon)!==null&&e!==void 0||(this._sparkleIcon=bg(oe.sparkle)),xn(this.button),this.button.appendChild(this._sparkleIcon),this.button.setAttribute("aria-label","Generating new name suggestions"),(t=this._buttonHover)===null||t===void 0||t.update(this._buttonGenHoverText),this.input.focus()}setStopButton(){var e,t;this._buttonState="stop",(e=this._stopIcon)!==null&&e!==void 0||(this._stopIcon=bg(oe.primitiveSquare)),xn(this.button),this.button.appendChild(this._stopIcon),this.button.setAttribute("aria-label","Cancel generating new name suggestions"),(t=this._buttonHover)===null||t===void 0||t.update(this._buttonCancelHoverText),this.input.focus()}dispose(){this._disposables.dispose()}}class Vg{constructor(e,t){this._domNode=document.createElement("div"),this._domNode.className="rename-box rename-candidate",this._domNode.style.display="flex",this._domNode.style.columnGap="5px",this._domNode.style.alignItems="center",this._domNode.style.height=`${t.lineHeight}px`,this._domNode.style.padding=`${Vg._PADDING}px`;const i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.width=i.style.height=`${t.lineHeight*.8}px`,this._domNode.appendChild(i),this._icon=bg(oe.sparkle),this._icon.style.display="none",i.appendChild(this._icon),this._label=document.createElement("div"),kn(this._label,t),this._domNode.appendChild(this._label),e.appendChild(this._domNode)}populate(e){this._updateIcon(e),this._updateLabel(e)}_updateIcon(e){var t;const i=!!(!((t=e.tags)===null||t===void 0)&&t.includes(xI.AIGenerated));this._icon.style.display=i?"inherit":"none"}_updateLabel(e){this._label.innerText=e.newSymbolName}static getLayoutInfo({lineHeight:e}){return{totalHeight:e+Vg._PADDING*2}}dispose(){}}Vg._PADDING=2;var uwe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Sc=function(o,e){return function(t,i){e(t,i,o)}},vR;class nO{constructor(e,t,i){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=i.ordered(e)}hasProvider(){return this._providers.length>0}async resolveRenameLocation(e){const t=[];for(this._providerRenameIdx=0;this._providerRenameIdx0?t.join(` +`):void 0}:{range:x.fromPositions(this.position),text:"",rejectReason:t.length>0?t.join(` +`):void 0}}async provideRenameEdits(e,t){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)}async _provideRenameEdits(e,t,i,n){const s=this._providers[t];if(!s)return{edits:[],rejectReason:i.join(` +`)};const r=await s.provideRenameEdits(this.model,this.position,e,n);if(r){if(r.rejectReason)return this._provideRenameEdits(e,t+1,i.concat(r.rejectReason),n)}else return this._provideRenameEdits(e,t+1,i.concat(m("no result","No result.")),n);return r}}async function gwe(o,e,t,i){const n=new nO(e,t,o),s=await n.resolveRenameLocation(st.None);return s!=null&&s.rejectReason?{edits:[],rejectReason:s.rejectReason}:n.provideRenameEdits(i,st.None)}let rc=vR=class{static get(e){return e.getContribution(vR.ID)}constructor(e,t,i,n,s,r,a,l,d){this.editor=e,this._instaService=t,this._notificationService=i,this._bulkEditService=n,this._progressService=s,this._logService=r,this._configService=a,this._languageFeaturesService=l,this._telemetryService=d,this._disposableStore=new G,this._cts=new ci,this._renameWidget=this._disposableStore.add(this._instaService.createInstance(_R,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}async run(){var e,t;const i=this._logService.trace.bind(this._logService,"[rename]");if(this._cts.dispose(!0),this._cts=new ci,!this.editor.hasModel()){i("editor has no model");return}const n=this.editor.getPosition(),s=new nO(this.editor.getModel(),n,this._languageFeaturesService.renameProvider);if(!s.hasProvider()){i("skeleton has no provider");return}const r=new Th(this.editor,5,void 0,this._cts.token);let a;try{i("resolving rename location");const _=s.resolveRenameLocation(r.token);this._progressService.showWhile(_,250),a=await _,i("resolved rename location")}catch(_){_ instanceof ka?i("resolve rename location cancelled",JSON.stringify(_,null," ")):(i("resolve rename location failed",_ instanceof Error?_:JSON.stringify(_,null," ")),(typeof _=="string"||La(_))&&((e=Ls.get(this.editor))===null||e===void 0||e.showMessage(_||m("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),n)));return}finally{r.dispose()}if(!a){i("returning early - no loc");return}if(a.rejectReason){i(`returning early - rejected with reason: ${a.rejectReason}`,a.rejectReason),(t=Ls.get(this.editor))===null||t===void 0||t.showMessage(a.rejectReason,n);return}if(r.token.isCancellationRequested){i("returning early - cts1 cancelled");return}const l=new Th(this.editor,5,a.range,this._cts.token),d=this.editor.getModel(),c=this._languageFeaturesService.newSymbolNamesProvider.all(d),h=await Promise.all(c.map(async _=>{var v;return[_,(v=await _.supportsAutomaticNewSymbolNamesTriggerKind)!==null&&v!==void 0?v:!1]})),u=(_,v)=>{let b=h.slice();return _===$v.Automatic&&(b=b.filter(([C,w])=>w)),b.map(([C])=>C.provideNewSymbolNames(d,a.range,_,v))};i("creating rename input field and awaiting its result");const g=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),f=await this._renameWidget.getInput(a.range,a.text,g,c.length>0?u:void 0,l);if(i("received response from rename input field"),c.length>0&&this._reportTelemetry(c.length,d.getLanguageId(),f),typeof f=="boolean"){i(`returning early - rename input field response - ${f}`),f&&this.editor.focus(),l.dispose();return}this.editor.focus(),i("requesting rename edits");const p=D0(s.provideRenameEdits(f.newName,l.token),l.token).then(async _=>{if(!_){i("returning early - no rename edits result");return}if(!this.editor.hasModel()){i("returning early - no model after rename edits are provided");return}if(_.rejectReason){i(`returning early - rejected with reason: ${_.rejectReason}`),this._notificationService.info(_.rejectReason);return}this.editor.setSelection(x.fromPositions(this.editor.getSelection().getPosition())),i("applying edits"),this._bulkEditService.apply(_,{editor:this.editor,showPreview:f.wantsPreview,label:m("label","Renaming '{0}' to '{1}'",a==null?void 0:a.text,f.newName),code:"undoredo.rename",quotableLabel:m("quotableLabel","Renaming {0} to {1}",a==null?void 0:a.text,f.newName),respectAutoSaveConfig:!0}).then(v=>{i("edits applied"),v.ariaSummary&&js(m("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",a.text,f.newName,v.ariaSummary))}).catch(v=>{i(`error when applying edits ${JSON.stringify(v,null," ")}`),this._notificationService.error(m("rename.failedApply","Rename failed to apply edits")),this._logService.error(v)})},_=>{i("error when providing rename edits",JSON.stringify(_,null," ")),this._notificationService.error(m("rename.failed","Rename failed to compute edits")),this._logService.error(_)}).finally(()=>{l.dispose()});return i("returning rename operation"),this._progressService.showWhile(p,250),p}acceptRenameInput(e){this._renameWidget.acceptInput(e)}cancelRenameInput(){this._renameWidget.cancelInput(!0,"cancelRenameInput command")}focusNextRenameSuggestion(){this._renameWidget.focusNextRenameSuggestion()}focusPreviousRenameSuggestion(){this._renameWidget.focusPreviousRenameSuggestion()}_reportTelemetry(e,t,i){const n=typeof i=="boolean"?{kind:"cancelled",languageId:t,nRenameSuggestionProviders:e}:{kind:"accepted",languageId:t,nRenameSuggestionProviders:e,source:i.stats.source.k,nRenameSuggestions:i.stats.nRenameSuggestions,timeBeforeFirstInputFieldEdit:i.stats.timeBeforeFirstInputFieldEdit,wantsPreview:i.wantsPreview,nRenameSuggestionsInvocations:i.stats.nRenameSuggestionsInvocations,hadAutomaticRenameSuggestionsInvocation:i.stats.hadAutomaticRenameSuggestionsInvocation};this._telemetryService.publicLog2("renameInvokedEvent",n)}};rc.ID="editor.contrib.renameController";rc=vR=uwe([Sc(1,Le),Sc(2,Ri),Sc(3,$0),Sc(4,Zh),Sc(5,qn),Sc(6,TA),Sc(7,me),Sc(8,Bn)],rc);class fwe extends ce{constructor(){super({id:"editor.action.rename",label:m("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:K.and(E.writable,E.hasRenameProvider),kbOpts:{kbExpr:E.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){const i=e.get(_t),[n,s]=Array.isArray(t)&&t||[void 0,void 0];return ke.isUri(n)&&F.isIPosition(s)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then(r=>{r&&(r.setPosition(s),r.invokeWithinContext(a=>(this.reportTelemetry(a,r),this.run(a,r))))},ze):super.runCommand(e,t)}run(e,t){const i=e.get(qn),n=rc.get(t);return n?(i.trace("[RenameAction] got controller, running..."),n.run()):(i.trace("[RenameAction] returning early - controller missing"),Promise.resolve())}}vt(rc.ID,rc,4);J(fwe);const sO=Xi.bindToContribution(rc.get);le(new sO({id:"acceptRenameInput",precondition:qp,handler:o=>o.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:K.and(E.focus,K.not("isComposing")),primary:3}}));le(new sO({id:"acceptRenameInputWithPreview",precondition:K.and(qp,K.has("config.editor.rename.enablePreview")),handler:o=>o.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:K.and(E.focus,K.not("isComposing")),primary:2051}}));le(new sO({id:"cancelRenameInput",precondition:qp,handler:o=>o.cancelRenameInput(),kbOpts:{weight:199,kbExpr:E.focus,primary:9,secondary:[1033]}}));Vt(class extends Es{constructor(){super({id:"focusNextRenameSuggestion",title:{...Fe("focusNextRenameSuggestion","Focus Next Rename Suggestion")},precondition:qp,keybinding:[{primary:18,weight:199}]})}run(e){const t=e.get(_t).getFocusedCodeEditor();if(!t)return;const i=rc.get(t);i&&i.focusNextRenameSuggestion()}});Vt(class extends Es{constructor(){super({id:"focusPreviousRenameSuggestion",title:{...Fe("focusPreviousRenameSuggestion","Focus Previous Rename Suggestion")},precondition:qp,keybinding:[{primary:16,weight:199}]})}run(e){const t=e.get(_t).getFocusedCodeEditor();if(!t)return;const i=rc.get(t);i&&i.focusPreviousRenameSuggestion()}});Kl("_executeDocumentRenameProvider",function(o,e,t,...i){const[n]=i;pt(typeof n=="string");const{renameProvider:s}=o.get(me);return gwe(s,e,t,n)});Kl("_executePrepareRename",async function(o,e,t){const{renameProvider:i}=o.get(me),s=await new nO(e,t,i).resolveRenameLocation(st.None);if(s!=null&&s.rejectReason)throw new Error(s.rejectReason);return s});hi.as(Ba.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:m("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}});var mwe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},y7=function(o,e){return function(t,i){e(t,i,o)}};let u0=class extends W{constructor(e,t,i){super(),this.editor=e,this.languageConfigurationService=t,this.editorWorkerService=i,this.decorations=this.editor.createDecorationsCollection(),this.options=this.createOptions(e.getOption(73)),this.computePromise=null,this.currentOccurrences={},this._register(e.onDidChangeModel(n=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)})),this._register(e.onDidChangeModelLanguage(n=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)})),this._register(t.onDidChange(n=>{var s;const r=(s=this.editor.getModel())===null||s===void 0?void 0:s.getLanguageId();r&&n.affects(r)&&(this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0))})),this._register(e.onDidChangeConfiguration(n=>{this.options&&!n.hasChanged(73)||(this.options=this.createOptions(e.getOption(73)),this.updateDecorations([]),this.stop(),this.computeSectionHeaders.schedule(0))})),this._register(this.editor.onDidChangeModelContent(n=>{this.computeSectionHeaders.schedule()})),this._register(e.onDidChangeModelTokens(n=>{this.computeSectionHeaders.isScheduled()||this.computeSectionHeaders.schedule(1e3)})),this.computeSectionHeaders=this._register(new At(()=>{this.findSectionHeaders()},250)),this.computeSectionHeaders.schedule(0)}createOptions(e){if(!e||!this.editor.hasModel())return;const t=this.editor.getModel().getLanguageId();if(!t)return;const i=this.languageConfigurationService.getLanguageConfiguration(t).comments,n=this.languageConfigurationService.getLanguageConfiguration(t).foldingRules;if(!(!i&&!(n!=null&&n.markers)))return{foldingRules:n,findMarkSectionHeaders:e.showMarkSectionHeaders,findRegionSectionHeaders:e.showRegionSectionHeaders}}findSectionHeaders(){var e,t;if(!this.editor.hasModel()||!(!((e=this.options)===null||e===void 0)&&e.findMarkSectionHeaders)&&!(!((t=this.options)===null||t===void 0)&&t.findRegionSectionHeaders))return;const i=this.editor.getModel();if(i.isDisposed()||i.isTooLargeForSyncing())return;const n=i.getVersionId();this.editorWorkerService.findSectionHeaders(i.uri,this.options).then(s=>{i.isDisposed()||i.getVersionId()!==n||this.updateDecorations(s)})}updateDecorations(e){const t=this.editor.getModel();t&&(e=e.filter(s=>{if(!s.shouldBeInComments)return!0;const r=t.validateRange(s.range),a=t.tokenization.getLineTokens(r.startLineNumber),l=a.findTokenIndexAtOffset(r.startColumn-1),d=a.getStandardTokenType(l);return a.getLanguageId(l)===t.getLanguageId()&&d===1}));const i=Object.values(this.currentOccurrences).map(s=>s.decorationId),n=e.map(s=>pwe(s));this.editor.changeDecorations(s=>{const r=s.deltaDecorations(i,n);this.currentOccurrences={};for(let a=0,l=r.length;a0?t[0]:[]}async function YU(o,e,t,i,n){const s=wwe(o,e),r=await Promise.all(s.map(async a=>{let l,d=null;try{l=await a.provideDocumentSemanticTokens(e,a===t?i:null,n)}catch(c){d=c,l=null}return(!l||!Gx(l)&&!GU(l))&&(l=null),new Cwe(a,l,d)}));for(const a of r){if(a.error)throw a.error;if(a.tokens)return a}return r.length>0?r[0]:null}function Swe(o,e){const t=o.orderedGroups(e);return t.length>0?t[0]:null}class ywe{constructor(e,t){this.provider=e,this.tokens=t}}function Lwe(o,e){return o.has(e)}function QU(o,e){const t=o.orderedGroups(e);return t.length>0?t[0]:[]}async function oO(o,e,t,i){const n=QU(o,e),s=await Promise.all(n.map(async r=>{let a;try{a=await r.provideDocumentRangeSemanticTokens(e,t,i)}catch(l){yi(l),a=null}return(!a||!Gx(a))&&(a=null),new ywe(r,a)}));for(const r of s)if(r.tokens)return r;return s.length>0?s[0]:null}ct.registerCommand("_provideDocumentSemanticTokensLegend",async(o,...e)=>{const[t]=e;pt(t instanceof ke);const i=o.get(ai).getModel(t);if(!i)return;const{documentSemanticTokensProvider:n}=o.get(me),s=Swe(n,i);return s?s[0].getLegend():o.get(Qt).executeCommand("_provideDocumentRangeSemanticTokensLegend",t)});ct.registerCommand("_provideDocumentSemanticTokens",async(o,...e)=>{const[t]=e;pt(t instanceof ke);const i=o.get(ai).getModel(t);if(!i)return;const{documentSemanticTokensProvider:n}=o.get(me);if(!ZU(n,i))return o.get(Qt).executeCommand("_provideDocumentRangeSemanticTokens",t,i.getFullModelRange());const s=await YU(n,i,null,null,st.None);if(!s)return;const{provider:r,tokens:a}=s;if(!a||!Gx(a))return;const l=qU({id:0,type:"full",data:a.data});return a.resultId&&r.releaseDocumentSemanticTokens(a.resultId),l});ct.registerCommand("_provideDocumentRangeSemanticTokensLegend",async(o,...e)=>{const[t,i]=e;pt(t instanceof ke);const n=o.get(ai).getModel(t);if(!n)return;const{documentRangeSemanticTokensProvider:s}=o.get(me),r=QU(s,n);if(r.length===0)return;if(r.length===1)return r[0].getLegend();if(!i||!x.isIRange(i))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),r[0].getLegend();const a=await oO(s,n,x.lift(i),st.None);if(a)return a.provider.getLegend()});ct.registerCommand("_provideDocumentRangeSemanticTokens",async(o,...e)=>{const[t,i]=e;pt(t instanceof ke),pt(x.isIRange(i));const n=o.get(ai).getModel(t);if(!n)return;const{documentRangeSemanticTokensProvider:s}=o.get(me),r=await oO(s,n,x.lift(i),st.None);if(!(!r||!r.tokens))return qU({id:0,type:"full",data:r.tokens.data})});const rO="editor.semanticHighlighting";function Nw(o,e,t){var i;const n=(i=t.getValue(rO,{overrideIdentifier:o.getLanguageId(),resource:o.uri}))===null||i===void 0?void 0:i.enabled;return typeof n=="boolean"?n:e.getColorTheme().semanticHighlighting}var XU=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},dl=function(o,e){return function(t,i){e(t,i,o)}},Ec;let bR=class extends W{constructor(e,t,i,n,s,r){super(),this._watchers=Object.create(null);const a=c=>{this._watchers[c.uri.toString()]=new g0(c,e,i,s,r)},l=(c,h)=>{h.dispose(),delete this._watchers[c.uri.toString()]},d=()=>{for(const c of t.getModels()){const h=this._watchers[c.uri.toString()];Nw(c,i,n)?h||a(c):h&&l(c,h)}};t.getModels().forEach(c=>{Nw(c,i,n)&&a(c)}),this._register(t.onModelAdded(c=>{Nw(c,i,n)&&a(c)})),this._register(t.onModelRemoved(c=>{const h=this._watchers[c.uri.toString()];h&&l(c,h)})),this._register(n.onDidChangeConfiguration(c=>{c.affectsConfiguration(rO)&&d()})),this._register(i.onDidColorThemeChange(d))}dispose(){for(const e of Object.values(this._watchers))e.dispose();super.dispose()}};bR=XU([dl(0,kL),dl(1,ai),dl(2,Ji),dl(3,Je),dl(4,fr),dl(5,me)],bR);let g0=Ec=class extends W{constructor(e,t,i,n,s){super(),this._semanticTokensStylingService=t,this._isDisposed=!1,this._model=e,this._provider=s.documentSemanticTokensProvider,this._debounceInformation=n.for(this._provider,"DocumentSemanticTokens",{min:Ec.REQUEST_MIN_DELAY,max:Ec.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new At(()=>this._fetchDocumentSemanticTokensNow(),Ec.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._providersChangedDuringRequest=!1,this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeAttached(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeLanguage(()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)}));const r=()=>{Pt(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const a of this._provider.all(e))typeof a.onDidChange=="function"&&this._documentProvidersChangeListeners.push(a.onDidChange(()=>{if(this._currentDocumentRequestCancellationTokenSource){this._providersChangedDuringRequest=!0;return}this._fetchDocumentSemanticTokens.schedule(0)}))};r(),this._register(this._provider.onDidChange(()=>{r(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(i.onDidColorThemeChange(a=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),Pt(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[],this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!ZU(this._provider,this._model)){this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1);return}if(!this._model.isAttachedToEditor())return;const e=new ci,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,i=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,n=YU(this._provider,this._model,t,i,e.token);this._currentDocumentRequestCancellationTokenSource=e,this._providersChangedDuringRequest=!1;const s=[],r=this._model.onDidChangeContent(l=>{s.push(l)}),a=new In(!1);n.then(l=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),!l)this._setDocumentSemanticTokens(null,null,null,s);else{const{provider:d,tokens:c}=l,h=this._semanticTokensStylingService.getStyling(d);this._setDocumentSemanticTokens(d,c||null,h,s)}},l=>{l&&(Ur(l)||typeof l.message=="string"&&l.message.indexOf("busy")!==-1)||ze(l),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),(s.length>0||this._providersChangedDuringRequest)&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))})}static _copy(e,t,i,n,s){s=Math.min(s,i.length-n,e.length-t);for(let r=0;r{(n.length>0||this._providersChangedDuringRequest)&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed){e&&t&&e.releaseDocumentSemanticTokens(t.resultId);return}if(!e||!i){this._model.tokenization.setSemanticTokens(null,!1);return}if(!t){this._model.tokenization.setSemanticTokens(null,!0),r();return}if(GU(t)){if(!s){this._model.tokenization.setSemanticTokens(null,!0);return}if(t.edits.length===0)t={resultId:t.resultId,data:s.data};else{let a=0;for(const u of t.edits)a+=(u.data?u.data.length:0)-u.deleteCount;const l=s.data,d=new Uint32Array(l.length+a);let c=l.length,h=d.length;for(let u=t.edits.length-1;u>=0;u--){const g=t.edits[u];if(g.start>l.length){i.warnInvalidEditStart(s.resultId,t.resultId,u,g.start,l.length),this._model.tokenization.setSemanticTokens(null,!0);return}const f=c-(g.start+g.deleteCount);f>0&&(Ec._copy(l,c-f,d,h-f,f),h-=f),g.data&&(Ec._copy(g.data,0,d,h-g.data.length,g.data.length),h-=g.data.length),c=g.start}c>0&&Ec._copy(l,0,d,0,c),t={resultId:t.resultId,data:d}}}if(Gx(t)){this._currentDocumentResponse=new xwe(e,t.resultId,t.data);const a=r6(t,i,this._model.getLanguageId());if(n.length>0)for(const l of n)for(const d of a)for(const c of l.changes)d.applyEdit(c.range,c.text);this._model.tokenization.setSemanticTokens(a,!0)}else this._model.tokenization.setSemanticTokens(null,!0);r()}};g0.REQUEST_MIN_DELAY=300;g0.REQUEST_MAX_DELAY=2e3;g0=Ec=XU([dl(1,kL),dl(2,Ji),dl(3,fr),dl(4,me)],g0);class xwe{constructor(e,t,i){this.provider=e,this.resultId=t,this.data=i}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}eC(bR);var Dwe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},I_=function(o,e){return function(t,i){e(t,i,o)}};let f0=class extends W{constructor(e,t,i,n,s,r){super(),this._semanticTokensStylingService=t,this._themeService=i,this._configurationService=n,this._editor=e,this._provider=r.documentRangeSemanticTokensProvider,this._debounceInformation=s.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new At(()=>this._tokenizeViewportNow(),100)),this._outstandingRequests=[];const a=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange(()=>{a()})),this._register(this._editor.onDidChangeModel(()=>{this._cancelAll(),a()})),this._register(this._editor.onDidChangeModelContent(l=>{this._cancelAll(),a()})),this._register(this._provider.onDidChange(()=>{this._cancelAll(),a()})),this._register(this._configurationService.onDidChangeConfiguration(l=>{l.affectsConfiguration(rO)&&(this._cancelAll(),a())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),a()})),a()}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,i=this._outstandingRequests.length;tthis._requestRange(e,i)))}_requestRange(e,t){const i=e.getVersionId(),n=an(r=>Promise.resolve(oO(this._provider,e,t,r))),s=new In(!1);return n.then(r=>{if(this._debounceInformation.update(e,s.elapsed()),!r||!r.tokens||e.isDisposed()||e.getVersionId()!==i)return;const{provider:a,tokens:l}=r,d=this._semanticTokensStylingService.getStyling(a);e.tokenization.setPartialSemanticTokens(t,r6(l,d,e.getLanguageId()))}).then(()=>this._removeOutstandingRequest(n),()=>this._removeOutstandingRequest(n)),n}};f0.ID="editor.contrib.viewportSemanticTokens";f0=Dwe([I_(1,kL),I_(2,Ji),I_(3,Je),I_(4,fr),I_(5,me)],f0);vt(f0.ID,f0,1);class kwe{constructor(e=!0){this.selectSubwords=e}provideSelectionRanges(e,t){const i=[];for(const n of t){const s=[];i.push(s),this.selectSubwords&&this._addInWordRanges(s,e,n),this._addWordRanges(s,e,n),this._addWhitespaceLine(s,e,n),s.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,i){const n=t.getWordAtPosition(i);if(!n)return;const{word:s,startColumn:r}=n,a=i.column-r;let l=a,d=a,c=0;for(;l>=0;l--){const h=s.charCodeAt(l);if(l!==a&&(h===95||h===45))break;if(Vc(h)&&ol(c))break;c=h}for(l+=1;d0&&t.getLineFirstNonWhitespaceColumn(i.lineNumber)===0&&t.getLineLastNonWhitespaceColumn(i.lineNumber)===0&&e.push({range:new x(i.lineNumber,1,i.lineNumber,t.getLineMaxColumn(i.lineNumber))})}}var Iwe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ewe=function(o,e){return function(t,i){e(t,i,o)}},CR;class aO{constructor(e,t){this.index=e,this.ranges=t}mov(e){const t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;const i=new aO(t,this.ranges);return i.ranges[t].equalsRange(this.ranges[this.index])?i.mov(e):i}}let yp=CR=class{static get(e){return e.getContribution(CR.ID)}constructor(e,t){this._editor=e,this._languageFeaturesService=t,this._ignoreSelection=!1}dispose(){var e;(e=this._selectionListener)===null||e===void 0||e.dispose()}async run(e){if(!this._editor.hasModel())return;const t=this._editor.getSelections(),i=this._editor.getModel();if(this._state||await e$(this._languageFeaturesService.selectionRangeProvider,i,t.map(s=>s.getPosition()),this._editor.getOption(113),st.None).then(s=>{var r;if(!(!jn(s)||s.length!==t.length)&&!(!this._editor.hasModel()||!di(this._editor.getSelections(),t,(a,l)=>a.equalsSelection(l)))){for(let a=0;al.containsPosition(t[a].getStartPosition())&&l.containsPosition(t[a].getEndPosition())),s[a].unshift(t[a]);this._state=s.map(a=>new aO(0,a)),(r=this._selectionListener)===null||r===void 0||r.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition(()=>{var a;this._ignoreSelection||((a=this._selectionListener)===null||a===void 0||a.dispose(),this._state=void 0)})}}),!this._state)return;this._state=this._state.map(s=>s.mov(e));const n=this._state.map(s=>_e.fromPositions(s.ranges[s.index].getStartPosition(),s.ranges[s.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(n)}finally{this._ignoreSelection=!1}}};yp.ID="editor.contrib.smartSelectController";yp=CR=Iwe([Ewe(1,me)],yp);class JU extends ce{constructor(e,t){super(t),this._forward=e}async run(e,t){const i=yp.get(t);i&&await i.run(this._forward)}}class Nwe extends JU{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:m("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:k.MenubarSelectionMenu,group:"1_basic",title:m({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}}ct.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");class Twe extends JU{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:m("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:k.MenubarSelectionMenu,group:"1_basic",title:m({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}}vt(yp.ID,yp,4);J(Nwe);J(Twe);async function e$(o,e,t,i,n){const s=o.all(e).concat(new kwe(i.selectSubwords));s.length===1&&s.unshift(new wo);const r=[],a=[];for(const l of s)r.push(Promise.resolve(l.provideSelectionRanges(e,t,n)).then(d=>{if(jn(d)&&d.length===t.length)for(let c=0;c{if(l.length===0)return[];l.sort((u,g)=>F.isBefore(u.getStartPosition(),g.getStartPosition())?1:F.isBefore(g.getStartPosition(),u.getStartPosition())||F.isBefore(u.getEndPosition(),g.getEndPosition())?-1:F.isBefore(g.getEndPosition(),u.getEndPosition())?1:0);const d=[];let c;for(const u of l)(!c||x.containsRange(u,c)&&!x.equalsRange(u,c))&&(d.push(u),c=u);if(!i.selectLeadingAndTrailingWhitespace)return d;const h=[d[0]];for(let u=1;uo}),lI="data-sticky-line-index",D7="data-sticky-is-line",Rwe="data-sticky-is-line-number",k7="data-sticky-is-folding-icon";class Awe extends W{constructor(e){super(),this._editor=e,this._foldingIconStore=new G,this._rootDomNode=document.createElement("div"),this._lineNumbersDomNode=document.createElement("div"),this._linesDomNodeScrollable=document.createElement("div"),this._linesDomNode=document.createElement("div"),this._lineHeight=this._editor.getOption(67),this._renderedStickyLines=[],this._lineNumbers=[],this._lastLineRelativePosition=0,this._minContentWidthInPx=0,this._isOnGlyphMargin=!1,this._lineNumbersDomNode.className="sticky-widget-line-numbers",this._lineNumbersDomNode.setAttribute("role","none"),this._linesDomNode.className="sticky-widget-lines",this._linesDomNode.setAttribute("role","list"),this._linesDomNodeScrollable.className="sticky-widget-lines-scrollable",this._linesDomNodeScrollable.appendChild(this._linesDomNode),this._rootDomNode.className="sticky-widget",this._rootDomNode.classList.toggle("peek",e instanceof Ph),this._rootDomNode.appendChild(this._lineNumbersDomNode),this._rootDomNode.appendChild(this._linesDomNodeScrollable);const t=()=>{this._linesDomNode.style.left=this._editor.getOption(115).scrollWithEditor?`-${this._editor.getScrollLeft()}px`:"0px"};this._register(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(115)&&t(),i.hasChanged(67)&&(this._lineHeight=this._editor.getOption(67))})),this._register(this._editor.onDidScrollChange(i=>{i.scrollLeftChanged&&t(),i.scrollWidthChanged&&this._updateWidgetWidth()})),this._register(this._editor.onDidChangeModel(()=>{t(),this._updateWidgetWidth()})),this._register(this._foldingIconStore),t(),this._register(this._editor.onDidLayoutChange(i=>{this._updateWidgetWidth()})),this._updateWidgetWidth()}get lineNumbers(){return this._lineNumbers}get lineNumberCount(){return this._lineNumbers.length}getRenderedStickyLine(e){return this._renderedStickyLines.find(t=>t.lineNumber===e)}getCurrentLines(){return this._lineNumbers}setState(e,t,i){if(i===void 0&&(!this._previousState&&!e||this._previousState&&this._previousState.equals(e)))return;const n=this._isWidgetHeightZero(e),s=n?void 0:e,r=n?0:this._findLineToRebuildWidgetFrom(e,i);this._renderRootNode(s,t,r),this._previousState=e}_isWidgetHeightZero(e){if(!e)return!0;const t=e.startLineNumbers.length*this._lineHeight+e.lastLineRelativePosition;if(t>0){this._lastLineRelativePosition=e.lastLineRelativePosition;const i=[...e.startLineNumbers];e.showEndForLine!==null&&(i[e.showEndForLine]=e.endLineNumbers[e.showEndForLine]),this._lineNumbers=i}else this._lastLineRelativePosition=0,this._lineNumbers=[];return t===0}_findLineToRebuildWidgetFrom(e,t){if(!e||!this._previousState)return 0;if(t!==void 0)return t;const i=this._previousState,n=e.startLineNumbers.findIndex(s=>!i.startLineNumbers.includes(s));return n===-1?0:n}_updateWidgetWidth(){const e=this._editor.getLayoutInfo(),t=e.contentLeft;this._lineNumbersDomNode.style.width=`${t}px`,this._linesDomNodeScrollable.style.setProperty("--vscode-editorStickyScroll-scrollableWidth",`${this._editor.getScrollWidth()-e.verticalScrollbarWidth}px`),this._rootDomNode.style.width=`${e.width-e.verticalScrollbarWidth}px`}_clearStickyLinesFromLine(e){this._foldingIconStore.clear();for(let t=e;ta.scrollWidth))+n.verticalScrollbarWidth,this._editor.layoutOverlayWidget(this)}_setFoldingHoverListeners(){this._editor.getOption(110)==="mouseover"&&(this._foldingIconStore.add(U(this._lineNumbersDomNode,ee.MOUSE_ENTER,()=>{this._isOnGlyphMargin=!0,this._setFoldingIconsVisibility(!0)})),this._foldingIconStore.add(U(this._lineNumbersDomNode,ee.MOUSE_LEAVE,()=>{this._isOnGlyphMargin=!1,this._useFoldingOpacityTransition(!0),this._setFoldingIconsVisibility(!1)})))}_renderChildNode(e,t,i,n){const s=this._editor._getViewModel();if(!s)return;const r=s.coordinatesConverter.convertModelPositionToViewPosition(new F(t,1)).lineNumber,a=s.getViewLineRenderingData(r),l=this._editor.getOption(68);let d;try{d=ws.filter(a.inlineDecorations,r,a.minColumn,a.maxColumn)}catch{d=[]}const c=new Kh(!0,!0,a.content,a.continuesWithWrappedLine,a.isBasicASCII,a.containsRTL,0,a.tokens,d,a.tabSize,a.startVisibleColumn,1,1,1,500,"none",!0,!0,null),h=new Tp(2e3),u=M0(c,h);let g;x7?g=x7.createHTML(h.build()):g=h.build();const f=document.createElement("span");f.setAttribute(lI,String(e)),f.setAttribute(D7,""),f.setAttribute("role","listitem"),f.tabIndex=0,f.className="sticky-line-content",f.classList.add(`stickyLine${t}`),f.style.lineHeight=`${this._lineHeight}px`,f.innerHTML=g;const p=document.createElement("span");p.setAttribute(lI,String(e)),p.setAttribute(Rwe,""),p.className="sticky-line-number",p.style.lineHeight=`${this._lineHeight}px`;const _=n.contentLeft;p.style.width=`${_}px`;const v=document.createElement("span");l.renderType===1||l.renderType===3&&t%10===0?v.innerText=t.toString():l.renderType===2&&(v.innerText=Math.abs(t-this._editor.getPosition().lineNumber).toString()),v.className="sticky-line-number-inner",v.style.lineHeight=`${this._lineHeight}px`,v.style.width=`${n.lineNumbersWidth}px`,v.style.paddingLeft=`${n.lineNumbersLeft}px`,p.appendChild(v);const b=this._renderFoldingIconForLine(i,t);b&&p.appendChild(b.domNode),this._editor.applyFontInfo(f),this._editor.applyFontInfo(v),p.style.lineHeight=`${this._lineHeight}px`,f.style.lineHeight=`${this._lineHeight}px`,p.style.height=`${this._lineHeight}px`,f.style.height=`${this._lineHeight}px`;const C=new Pwe(e,t,f,p,b,u.characterMapping,f.scrollWidth);return this._updateTopAndZIndexOfStickyLine(C)}_updateTopAndZIndexOfStickyLine(e){var t;const i=e.index,n=e.lineDomNode,s=e.lineNumberDomNode,r=i===this._lineNumbers.length-1,a="0",l="1";n.style.zIndex=r?a:l,s.style.zIndex=r?a:l;const d=`${i*this._lineHeight+this._lastLineRelativePosition+(!((t=e.foldingIcon)===null||t===void 0)&&t.isCollapsed?1:0)}px`,c=`${i*this._lineHeight}px`;return n.style.top=r?d:c,s.style.top=r?d:c,e}_renderFoldingIconForLine(e,t){const i=this._editor.getOption(110);if(!e||i==="never")return;const n=e.regions,s=n.findRange(t),r=n.getStartLineNumber(s);if(!(t===r))return;const l=n.isCollapsed(s),d=new Owe(l,r,n.getEndLineNumber(s),this._lineHeight);return d.setVisible(this._isOnGlyphMargin?!0:l||i==="always"),d.domNode.setAttribute(k7,""),d}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this._rootDomNode}getPosition(){return{preference:2,stackOridinal:10}}getMinContentWidthInPx(){return this._minContentWidthInPx}focusLineWithIndex(e){0<=e&&e0)return null;const t=this._getRenderedStickyLineFromChildDomNode(e);if(!t)return null;const i=jA(t.characterMapping,e,0);return new F(t.lineNumber,i)}getLineNumberFromChildDomNode(e){var t,i;return(i=(t=this._getRenderedStickyLineFromChildDomNode(e))===null||t===void 0?void 0:t.lineNumber)!==null&&i!==void 0?i:null}_getRenderedStickyLineFromChildDomNode(e){const t=this.getLineIndexFromChildDomNode(e);return t===null||t<0||t>=this._renderedStickyLines.length?null:this._renderedStickyLines[t]}getLineIndexFromChildDomNode(e){const t=this._getAttributeValue(e,lI);return t?parseInt(t,10):null}isInStickyLine(e){return this._getAttributeValue(e,D7)!==void 0}isInFoldingIconDomNode(e){return this._getAttributeValue(e,k7)!==void 0}_getAttributeValue(e,t){for(;e&&e!==this._rootDomNode;){const i=e.getAttribute(t);if(i!==null)return i;e=e.parentElement}}}class Pwe{constructor(e,t,i,n,s,r,a){this.index=e,this.lineNumber=t,this.lineDomNode=i,this.lineNumberDomNode=n,this.foldingIcon=s,this.characterMapping=r,this.scrollWidth=a}}class Owe{constructor(e,t,i,n){this.isCollapsed=e,this.foldingStartLine=t,this.foldingEndLine=i,this.dimension=n,this.domNode=document.createElement("div"),this.domNode.style.width=`${n}px`,this.domNode.style.height=`${n}px`,this.domNode.className=Te.asClassName(e?Ix:kx)}setVisible(e){this.domNode.style.cursor=e?"pointer":"default",this.domNode.style.opacity=e?"1":"0"}}class Rv{constructor(e,t){this.startLineNumber=e,this.endLineNumber=t}}class Py{constructor(e,t,i){this.range=e,this.children=t,this.parent=i}}class t${constructor(e,t,i,n){this.uri=e,this.version=t,this.element=i,this.outlineProviderId=n}}var Zx=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},m0=function(o,e){return function(t,i){e(t,i,o)}},Av;(function(o){o.OUTLINE_MODEL="outlineModel",o.FOLDING_PROVIDER_MODEL="foldingProviderModel",o.INDENTATION_MODEL="indentationModel"})(Av||(Av={}));var nh;(function(o){o[o.VALID=0]="VALID",o[o.INVALID=1]="INVALID",o[o.CANCELED=2]="CANCELED"})(nh||(nh={}));let wR=class extends W{constructor(e,t,i,n){switch(super(),this._editor=e,this._modelProviders=[],this._modelPromise=null,this._updateScheduler=this._register(new Vr(300)),this._updateOperation=this._register(new G),this._editor.getOption(115).defaultModel){case Av.OUTLINE_MODEL:this._modelProviders.push(new SR(this._editor,n));case Av.FOLDING_PROVIDER_MODEL:this._modelProviders.push(new LR(this._editor,t,n));case Av.INDENTATION_MODEL:this._modelProviders.push(new yR(this._editor,i));break}}dispose(){this._modelProviders.forEach(e=>e.dispose()),this._updateOperation.clear(),this._cancelModelPromise(),super.dispose()}_cancelModelPromise(){this._modelPromise&&(this._modelPromise.cancel(),this._modelPromise=null)}async update(e){return this._updateOperation.clear(),this._updateOperation.add({dispose:()=>{this._cancelModelPromise(),this._updateScheduler.cancel()}}),this._cancelModelPromise(),await this._updateScheduler.trigger(async()=>{for(const t of this._modelProviders){const{statusPromise:i,modelPromise:n}=t.computeStickyModel(e);this._modelPromise=n;const s=await i;if(this._modelPromise!==n)return null;switch(s){case nh.CANCELED:return this._updateOperation.clear(),null;case nh.VALID:return t.stickyModel}}return null}).catch(t=>(ze(t),null))}};wR=Zx([m0(2,Le),m0(3,me)],wR);class i$ extends W{constructor(e){super(),this._editor=e,this._stickyModel=null}get stickyModel(){return this._stickyModel}_invalid(){return this._stickyModel=null,nh.INVALID}computeStickyModel(e){if(e.isCancellationRequested||!this.isProviderValid())return{statusPromise:this._invalid(),modelPromise:null};const t=an(i=>this.createModelFromProvider(i));return{statusPromise:t.then(i=>this.isModelValid(i)?e.isCancellationRequested?nh.CANCELED:(this._stickyModel=this.createStickyModel(e,i),nh.VALID):this._invalid()).then(void 0,i=>(ze(i),nh.CANCELED)),modelPromise:t}}isModelValid(e){return!0}isProviderValid(){return!0}}let SR=class extends i${constructor(e,t){super(e),this._languageFeaturesService=t}createModelFromProvider(e){return md.create(this._languageFeaturesService.documentSymbolProvider,this._editor.getModel(),e)}createStickyModel(e,t){var i;const{stickyOutlineElement:n,providerID:s}=this._stickyModelFromOutlineModel(t,(i=this._stickyModel)===null||i===void 0?void 0:i.outlineProviderId),r=this._editor.getModel();return new t$(r.uri,r.getVersionId(),n,s)}isModelValid(e){return e&&e.children.size>0}_stickyModelFromOutlineModel(e,t){let i;if(dt.first(e.children.values())instanceof SU){const a=dt.find(e.children.values(),l=>l.id===t);if(a)i=a.children;else{let l="",d=-1,c;for(const[h,u]of e.children.entries()){const g=this._findSumOfRangesOfGroup(u);g>d&&(c=u,d=g,l=u.id)}t=l,i=c.children}}else i=e.children;const n=[],s=Array.from(i.values()).sort((a,l)=>{const d=new Rv(a.symbol.range.startLineNumber,a.symbol.range.endLineNumber),c=new Rv(l.symbol.range.startLineNumber,l.symbol.range.endLineNumber);return this._comparator(d,c)});for(const a of s)n.push(this._stickyModelFromOutlineElement(a,a.symbol.selectionRange.startLineNumber));return{stickyOutlineElement:new Py(void 0,n,void 0),providerID:t}}_stickyModelFromOutlineElement(e,t){const i=[];for(const s of e.children.values())if(s.symbol.selectionRange.startLineNumber!==s.symbol.range.endLineNumber)if(s.symbol.selectionRange.startLineNumber!==t)i.push(this._stickyModelFromOutlineElement(s,s.symbol.selectionRange.startLineNumber));else for(const r of s.children.values())i.push(this._stickyModelFromOutlineElement(r,s.symbol.selectionRange.startLineNumber));i.sort((s,r)=>this._comparator(s.range,r.range));const n=new Rv(e.symbol.selectionRange.startLineNumber,e.symbol.range.endLineNumber);return new Py(n,i,void 0)}_comparator(e,t){return e.startLineNumber!==t.startLineNumber?e.startLineNumber-t.startLineNumber:t.endLineNumber-e.endLineNumber}_findSumOfRangesOfGroup(e){let t=0;for(const i of e.children.values())t+=this._findSumOfRangesOfGroup(i);return e instanceof HM?t+e.symbol.range.endLineNumber-e.symbol.selectionRange.startLineNumber:t}};SR=Zx([m0(1,me)],SR);class n$ extends i${constructor(e){super(e),this._foldingLimitReporter=new bU(e)}createStickyModel(e,t){const i=this._fromFoldingRegions(t),n=this._editor.getModel();return new t$(n.uri,n.getVersionId(),i,void 0)}isModelValid(e){return e!==null}_fromFoldingRegions(e){const t=e.length,i=[],n=new Py(void 0,[],void 0);for(let s=0;s0&&(this.provider=this._register(new qP(e.getModel(),n,t,this._foldingLimitReporter,void 0)))}isProviderValid(){return this.provider!==void 0}async createModelFromProvider(e){var t,i;return(i=(t=this.provider)===null||t===void 0?void 0:t.compute(e))!==null&&i!==void 0?i:null}};LR=Zx([m0(2,me)],LR);var Fwe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},I7=function(o,e){return function(t,i){e(t,i,o)}};class Bwe{constructor(e,t,i){this.startLineNumber=e,this.endLineNumber=t,this.nestingDepth=i}}let xR=class extends W{constructor(e,t,i){super(),this._languageFeaturesService=t,this._languageConfigurationService=i,this._onDidChangeStickyScroll=this._register(new O),this.onDidChangeStickyScroll=this._onDidChangeStickyScroll.event,this._model=null,this._cts=null,this._stickyModelProvider=null,this._editor=e,this._sessionStore=this._register(new G),this._updateSoon=this._register(new At(()=>this.update(),50)),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(115)&&this.readConfiguration()})),this.readConfiguration()}readConfiguration(){this._sessionStore.clear(),this._editor.getOption(115).enabled&&(this._sessionStore.add(this._editor.onDidChangeModel(()=>{this._model=null,this.updateStickyModelProvider(),this._onDidChangeStickyScroll.fire(),this.update()})),this._sessionStore.add(this._editor.onDidChangeHiddenAreas(()=>this.update())),this._sessionStore.add(this._editor.onDidChangeModelContent(()=>this._updateSoon.schedule())),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>this.update())),this._sessionStore.add(Ce(()=>{var t;(t=this._stickyModelProvider)===null||t===void 0||t.dispose(),this._stickyModelProvider=null})),this.updateStickyModelProvider(),this.update())}getVersionId(){var e;return(e=this._model)===null||e===void 0?void 0:e.version}updateStickyModelProvider(){var e;(e=this._stickyModelProvider)===null||e===void 0||e.dispose(),this._stickyModelProvider=null;const t=this._editor;t.hasModel()&&(this._stickyModelProvider=new wR(t,()=>this._updateSoon.schedule(),this._languageConfigurationService,this._languageFeaturesService))}async update(){var e;(e=this._cts)===null||e===void 0||e.dispose(!0),this._cts=new ci,await this.updateStickyModel(this._cts.token),this._onDidChangeStickyScroll.fire()}async updateStickyModel(e){if(!this._editor.hasModel()||!this._stickyModelProvider||this._editor.getModel().isTooLargeForTokenization()){this._model=null;return}const t=await this._stickyModelProvider.update(e);e.isCancellationRequested||(this._model=t)}updateIndex(e){return e===-1?e=0:e<0&&(e=-e-2),e}getCandidateStickyLinesIntersectingFromStickyModel(e,t,i,n,s){if(t.children.length===0)return;let r=s;const a=[];for(let c=0;cc-h)),d=this.updateIndex(Ov(a,e.startLineNumber+n,(c,h)=>c-h));for(let c=l;c<=d;c++){const h=t.children[c];if(!h)return;if(h.range){const u=h.range.startLineNumber,g=h.range.endLineNumber;e.startLineNumber<=g+1&&u-1<=e.endLineNumber&&u!==r&&(r=u,i.push(new Bwe(u,g-1,n+1)),this.getCandidateStickyLinesIntersectingFromStickyModel(e,h,i,n+1,u))}else this.getCandidateStickyLinesIntersectingFromStickyModel(e,h,i,n,s)}}getCandidateStickyLinesIntersecting(e){var t,i;if(!(!((t=this._model)===null||t===void 0)&&t.element))return[];let n=[];this.getCandidateStickyLinesIntersectingFromStickyModel(e,this._model.element,n,0,-1);const s=(i=this._editor._getViewModel())===null||i===void 0?void 0:i.getHiddenAreas();if(s)for(const r of s)n=n.filter(a=>!(a.startLineNumber>=r.startLineNumber&&a.endLineNumber<=r.endLineNumber+1));return n}};xR=Fwe([I7(1,me),I7(2,$t)],xR);var Wwe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Df=function(o,e){return function(t,i){e(t,i,o)}},DR;let Ul=DR=class extends W{constructor(e,t,i,n,s,r,a){super(),this._editor=e,this._contextMenuService=t,this._languageFeaturesService=i,this._instaService=n,this._contextKeyService=a,this._sessionStore=new G,this._foldingModel=null,this._maxStickyLines=Number.MAX_SAFE_INTEGER,this._candidateDefinitionsLength=-1,this._focusedStickyElementIndex=-1,this._enabled=!1,this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1,this._endLineNumbers=[],this._showEndForLine=null,this._stickyScrollWidget=new Awe(this._editor),this._stickyLineCandidateProvider=new xR(this._editor,i,s),this._register(this._stickyScrollWidget),this._register(this._stickyLineCandidateProvider),this._widgetState=new L7([],[],0),this._onDidResize(),this._readConfiguration();const l=this._stickyScrollWidget.getDomNode();this._register(this._editor.onDidChangeConfiguration(c=>{this._readConfigurationChange(c)})),this._register(U(l,ee.CONTEXT_MENU,async c=>{this._onContextMenu(De(l),c)})),this._stickyScrollFocusedContextKey=E.stickyScrollFocused.bindTo(this._contextKeyService),this._stickyScrollVisibleContextKey=E.stickyScrollVisible.bindTo(this._contextKeyService);const d=this._register(Ea(l));this._register(d.onDidBlur(c=>{this._positionRevealed===!1&&l.clientHeight===0?(this._focusedStickyElementIndex=-1,this.focus()):this._disposeFocusStickyScrollStore()})),this._register(d.onDidFocus(c=>{this.focus()})),this._registerMouseListeners(),this._register(U(l,ee.MOUSE_DOWN,c=>{this._onMouseDown=!0}))}static get(e){return e.getContribution(DR.ID)}_disposeFocusStickyScrollStore(){var e;this._stickyScrollFocusedContextKey.set(!1),(e=this._focusDisposableStore)===null||e===void 0||e.dispose(),this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1}focus(){if(this._onMouseDown){this._onMouseDown=!1,this._editor.focus();return}this._stickyScrollFocusedContextKey.get()!==!0&&(this._focused=!0,this._focusDisposableStore=new G,this._stickyScrollFocusedContextKey.set(!0),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumbers.length-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}focusNext(){this._focusedStickyElementIndex0&&this._focusNav(!1)}selectEditor(){this._editor.focus()}_focusNav(e){this._focusedStickyElementIndex=e?this._focusedStickyElementIndex+1:this._focusedStickyElementIndex-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}goToFocused(){const e=this._stickyScrollWidget.lineNumbers;this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:e[this._focusedStickyElementIndex],column:1})}_revealPosition(e){this._reveaInEditor(e,()=>this._editor.revealPosition(e))}_revealLineInCenterIfOutsideViewport(e){this._reveaInEditor(e,()=>this._editor.revealLineInCenterIfOutsideViewport(e.lineNumber,0))}_reveaInEditor(e,t){this._focused&&this._disposeFocusStickyScrollStore(),this._positionRevealed=!0,t(),this._editor.setSelection(x.fromPositions(e)),this._editor.focus()}_registerMouseListeners(){const e=this._register(new G),t=this._register(new px(this._editor,{extractLineNumberFromMouseEvent:s=>{const r=this._stickyScrollWidget.getEditorPositionFromNode(s.target.element);return r?r.lineNumber:0}})),i=s=>{if(!this._editor.hasModel()||s.target.type!==12||s.target.detail!==this._stickyScrollWidget.getId())return null;const r=s.target.element;if(!r||r.innerText!==r.innerHTML)return null;const a=this._stickyScrollWidget.getEditorPositionFromNode(r);return a?{range:new x(a.lineNumber,a.column,a.lineNumber,a.column+r.innerText.length),textElement:r}:null},n=this._stickyScrollWidget.getDomNode();this._register(Si(n,ee.CLICK,s=>{if(s.ctrlKey||s.altKey||s.metaKey||!s.leftButton)return;if(s.shiftKey){const d=this._stickyScrollWidget.getLineIndexFromChildDomNode(s.target);if(d===null)return;const c=new F(this._endLineNumbers[d],1);this._revealLineInCenterIfOutsideViewport(c);return}if(this._stickyScrollWidget.isInFoldingIconDomNode(s.target)){const d=this._stickyScrollWidget.getLineNumberFromChildDomNode(s.target);this._toggleFoldingRegionForLine(d);return}if(!this._stickyScrollWidget.isInStickyLine(s.target))return;let l=this._stickyScrollWidget.getEditorPositionFromNode(s.target);if(!l){const d=this._stickyScrollWidget.getLineNumberFromChildDomNode(s.target);if(d===null)return;l=new F(d,1)}this._revealPosition(l)})),this._register(Si(n,ee.MOUSE_MOVE,s=>{if(s.shiftKey){const r=this._stickyScrollWidget.getLineIndexFromChildDomNode(s.target);if(r===null||this._showEndForLine!==null&&this._showEndForLine===r)return;this._showEndForLine=r,this._renderStickyScroll();return}this._showEndForLine!==null&&(this._showEndForLine=null,this._renderStickyScroll())})),this._register(U(n,ee.MOUSE_LEAVE,s=>{this._showEndForLine!==null&&(this._showEndForLine=null,this._renderStickyScroll())})),this._register(t.onMouseMoveOrRelevantKeyDown(([s,r])=>{const a=i(s);if(!a||!s.hasTriggerModifier||!this._editor.hasModel()){e.clear();return}const{range:l,textElement:d}=a;if(!l.equalsRange(this._stickyRangeProjectedOnEditor))this._stickyRangeProjectedOnEditor=l,e.clear();else if(d.style.textDecoration==="underline")return;const c=new ci;e.add(Ce(()=>c.dispose(!0)));let h;Sx(this._languageFeaturesService.definitionProvider,this._editor.getModel(),new F(l.startLineNumber,l.startColumn+1),c.token).then(u=>{if(!c.token.isCancellationRequested)if(u.length!==0){this._candidateDefinitionsLength=u.length;const g=d;h!==g?(e.clear(),h=g,h.style.textDecoration="underline",e.add(Ce(()=>{h.style.textDecoration="none"}))):h||(h=g,h.style.textDecoration="underline",e.add(Ce(()=>{h.style.textDecoration="none"})))}else e.clear()})})),this._register(t.onCancel(()=>{e.clear()})),this._register(t.onExecute(async s=>{if(s.target.type!==12||s.target.detail!==this._stickyScrollWidget.getId())return;const r=this._stickyScrollWidget.getEditorPositionFromNode(s.target.element);r&&(!this._editor.hasModel()||!this._stickyRangeProjectedOnEditor||(this._candidateDefinitionsLength>1&&(this._focused&&this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:r.lineNumber,column:1})),this._instaService.invokeFunction(Xz,s,this._editor,{uri:this._editor.getModel().uri,range:this._stickyRangeProjectedOnEditor})))}))}_onContextMenu(e,t){const i=new Rr(e,t);this._contextMenuService.showContextMenu({menuId:k.StickyScrollContext,getAnchor:()=>i})}_toggleFoldingRegionForLine(e){if(!this._foldingModel||e===null)return;const t=this._stickyScrollWidget.getRenderedStickyLine(e),i=t==null?void 0:t.foldingIcon;if(!i)return;fU(this._foldingModel,Number.MAX_VALUE,[e]),i.isCollapsed=!i.isCollapsed;const n=(i.isCollapsed?this._editor.getTopForLineNumber(i.foldingEndLine):this._editor.getTopForLineNumber(i.foldingStartLine))-this._editor.getOption(67)*t.index+1;this._editor.setScrollTop(n),this._renderStickyScroll(e)}_readConfiguration(){const e=this._editor.getOption(115);if(e.enabled===!1){this._editor.removeOverlayWidget(this._stickyScrollWidget),this._sessionStore.clear(),this._enabled=!1;return}else e.enabled&&!this._enabled&&(this._editor.addOverlayWidget(this._stickyScrollWidget),this._sessionStore.add(this._editor.onDidScrollChange(i=>{i.scrollTopChanged&&(this._showEndForLine=null,this._renderStickyScroll())})),this._sessionStore.add(this._editor.onDidLayoutChange(()=>this._onDidResize())),this._sessionStore.add(this._editor.onDidChangeModelTokens(i=>this._onTokensChange(i))),this._sessionStore.add(this._stickyLineCandidateProvider.onDidChangeStickyScroll(()=>{this._showEndForLine=null,this._renderStickyScroll()})),this._enabled=!0);this._editor.getOption(68).renderType===2&&this._sessionStore.add(this._editor.onDidChangeCursorPosition(()=>{this._showEndForLine=null,this._renderStickyScroll(0)}))}_readConfigurationChange(e){(e.hasChanged(115)||e.hasChanged(73)||e.hasChanged(67)||e.hasChanged(110)||e.hasChanged(68))&&this._readConfiguration(),e.hasChanged(68)&&this._renderStickyScroll(0)}_needsUpdate(e){const t=this._stickyScrollWidget.getCurrentLines();for(const i of t)for(const n of e.ranges)if(i>=n.fromLineNumber&&i<=n.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._renderStickyScroll(0)}_onDidResize(){const t=this._editor.getLayoutInfo().height/this._editor.getOption(67);this._maxStickyLines=Math.round(t*.25)}async _renderStickyScroll(e){var t,i;const n=this._editor.getModel();if(!n||n.isTooLargeForTokenization()){this._foldingModel=null,this._stickyScrollWidget.setState(void 0,null);return}const s=this._stickyLineCandidateProvider.getVersionId();if(s===void 0||s===n.getVersionId())if(this._foldingModel=(i=await((t=oc.get(this._editor))===null||t===void 0?void 0:t.getFoldingModel()))!==null&&i!==void 0?i:null,this._widgetState=this.findScrollWidgetState(),this._stickyScrollVisibleContextKey.set(this._widgetState.startLineNumbers.length!==0),!this._focused)this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e);else if(this._focusedStickyElementIndex===-1)this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1,this._focusedStickyElementIndex!==-1&&this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex);else{const r=this._stickyScrollWidget.lineNumbers[this._focusedStickyElementIndex];this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e),this._stickyScrollWidget.lineNumberCount===0?this._focusedStickyElementIndex=-1:(this._stickyScrollWidget.lineNumbers.includes(r)||(this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1),this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}}findScrollWidgetState(){const e=this._editor.getOption(67),t=Math.min(this._maxStickyLines,this._editor.getOption(115).maxLineCount),i=this._editor.getScrollTop();let n=0;const s=[],r=[],a=this._editor.getVisibleRanges();if(a.length!==0){const l=new Rv(a[0].startLineNumber,a[a.length-1].endLineNumber),d=this._stickyLineCandidateProvider.getCandidateStickyLinesIntersecting(l);for(const c of d){const h=c.startLineNumber,u=c.endLineNumber,g=c.nestingDepth;if(u-h>0){const f=(g-1)*e,p=g*e,_=this._editor.getBottomForLineNumber(h)-i,v=this._editor.getTopForLineNumber(u)-i,b=this._editor.getBottomForLineNumber(u)-i;if(f>v&&f<=b){s.push(h),r.push(u+1),n=b-p;break}else p>_&&p<=b&&(s.push(h),r.push(u+1));if(s.length===t)break}}}return this._endLineNumbers=r,new L7(s,r,n,this._showEndForLine)}dispose(){super.dispose(),this._sessionStore.dispose()}};Ul.ID="store.contrib.stickyScrollController";Ul=DR=Wwe([Df(1,go),Df(2,me),Df(3,Le),Df(4,$t),Df(5,fr),Df(6,Me)],Ul);class Hwe extends Es{constructor(){super({id:"editor.action.toggleStickyScroll",title:{...Fe("toggleEditorStickyScroll","Toggle Editor Sticky Scroll"),mnemonicTitle:m({key:"mitoggleStickyScroll",comment:["&& denotes a mnemonic"]},"&&Toggle Editor Sticky Scroll")},metadata:{description:Fe("toggleEditorStickyScroll.description","Toggle/enable the editor sticky scroll which shows the nested scopes at the top of the viewport")},category:Mwe.View,toggled:{condition:K.equals("config.editor.stickyScroll.enabled",!0),title:m("stickyScroll","Sticky Scroll"),mnemonicTitle:m({key:"miStickyScroll",comment:["&& denotes a mnemonic"]},"&&Sticky Scroll")},menu:[{id:k.CommandPalette},{id:k.MenubarAppearanceMenu,group:"4_editor",order:3},{id:k.StickyScrollContext}]})}async run(e){const t=e.get(Je),i=!t.getValue("editor.stickyScroll.enabled");return t.updateValue("editor.stickyScroll.enabled",i)}}const Yx=100;class Vwe extends Fa{constructor(){super({id:"editor.action.focusStickyScroll",title:{...Fe("focusStickyScroll","Focus on the editor sticky scroll"),mnemonicTitle:m({key:"mifocusStickyScroll",comment:["&& denotes a mnemonic"]},"&&Focus Sticky Scroll")},precondition:K.and(K.has("config.editor.stickyScroll.enabled"),E.stickyScrollVisible),menu:[{id:k.CommandPalette}]})}runEditorCommand(e,t){var i;(i=Ul.get(t))===null||i===void 0||i.focus()}}class zwe extends Fa{constructor(){super({id:"editor.action.selectNextStickyScrollLine",title:Fe("selectNextStickyScrollLine.title","Select the next editor sticky scroll line"),precondition:E.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:Yx,primary:18}})}runEditorCommand(e,t){var i;(i=Ul.get(t))===null||i===void 0||i.focusNext()}}class Uwe extends Fa{constructor(){super({id:"editor.action.selectPreviousStickyScrollLine",title:Fe("selectPreviousStickyScrollLine.title","Select the previous sticky scroll line"),precondition:E.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:Yx,primary:16}})}runEditorCommand(e,t){var i;(i=Ul.get(t))===null||i===void 0||i.focusPrevious()}}class $we extends Fa{constructor(){super({id:"editor.action.goToFocusedStickyScrollLine",title:Fe("goToFocusedStickyScrollLine.title","Go to the focused sticky scroll line"),precondition:E.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:Yx,primary:3}})}runEditorCommand(e,t){var i;(i=Ul.get(t))===null||i===void 0||i.goToFocused()}}class jwe extends Fa{constructor(){super({id:"editor.action.selectEditor",title:Fe("selectEditor.title","Select Editor"),precondition:E.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:Yx,primary:9}})}runEditorCommand(e,t){var i;(i=Ul.get(t))===null||i===void 0||i.selectEditor()}}vt(Ul.ID,Ul,1);Vt(Hwe);Vt(Vwe);Vt(Uwe);Vt(zwe);Vt($we);Vt(jwe);var s$=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},J_=function(o,e){return function(t,i){e(t,i,o)}};class Kwe{constructor(e,t,i,n,s,r){this.range=e,this.insertText=t,this.filterText=i,this.additionalTextEdits=n,this.command=s,this.completion=r}}let kR=class extends $j{constructor(e,t,i,n,s,r){super(s.disposable),this.model=e,this.line=t,this.word=i,this.completionModel=n,this._suggestMemoryService=r}canBeReused(e,t,i){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===i.startColumn&&this.word.endColumn=0&&l.resolve(st.None)}return t}};kR=s$([J_(5,Mx)],kR);let IR=class extends W{constructor(e,t,i,n){super(),this._languageFeatureService=e,this._clipboardService=t,this._suggestMemoryService=i,this._editorService=n,this._store.add(e.inlineCompletionsProvider.register("*",this))}async provideInlineCompletions(e,t,i,n){var s;if(i.selectedSuggestionInfo)return;let r;for(const f of this._editorService.listCodeEditors())if(f.getModel()===e){r=f;break}if(!r)return;const a=r.getOption(89);if(rm.isAllOff(a))return;e.tokenization.tokenizeIfCheap(t.lineNumber);const l=e.tokenization.getLineTokens(t.lineNumber),d=l.getStandardTokenType(l.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if(rm.valueFor(a,d)!=="inline")return;let c=e.getWordAtPosition(t),h;if(c!=null&&c.word||(h=this._getTriggerCharacterInfo(e,t)),!(c!=null&&c.word)&&!h||(c||(c=e.getWordUntilPosition(t)),c.endColumn!==t.column))return;let u;const g=e.getValueInRange(new x(t.lineNumber,1,t.lineNumber,t.column));if(!h&&(!((s=this._lastResult)===null||s===void 0)&&s.canBeReused(e,t.lineNumber,c))){const f=new u7(g,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=f,this._lastResult.acquire(),u=this._lastResult}else{const f=await GP(this._languageFeatureService.completionProvider,e,t,new n0(void 0,Ty.createSuggestFilter(r).itemKind,h==null?void 0:h.providers),h&&{triggerKind:1,triggerCharacter:h.ch},n);let p;f.needsClipboard&&(p=await this._clipboardService.readText());const _=new Bc(f.items,t.column,new u7(g,0),ca.None,r.getOption(118),r.getOption(112),{boostFullMatch:!1,firstMatchCanBeWeak:!1},p);u=new kR(e,t.lineNumber,c,_,f,this._suggestMemoryService)}return this._lastResult=u,u}handleItemDidShow(e,t){t.completion.resolve(st.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){var i;const n=e.getValueInRange(x.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),s=new Set;for(const r of this._languageFeatureService.completionProvider.all(e))!((i=r.triggerCharacters)===null||i===void 0)&&i.includes(n)&&s.add(r);if(s.size!==0)return{providers:s,ch:n}}};IR=s$([J_(0,me),J_(1,uc),J_(2,Mx),J_(3,_t)],IR);eC(IR);class qwe extends ce{constructor(){super({id:"editor.action.forceRetokenize",label:m("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getModel();i.tokenization.resetTokenization();const n=new In;i.tokenization.forceTokenization(i.getLineCount()),n.stop(),console.log(`tokenization took ${n.elapsed()}`)}}J(qwe);class Qx extends Es{constructor(){super({id:Qx.ID,title:Fe({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:Fe("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(){const t=!jm.getTabFocusMode();jm.setTabFocusMode(t),js(t?m("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element"):m("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}Qx.ID="editor.action.toggleTabFocusMode";Vt(Qx);var Gwe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},E7=function(o,e){return function(t,i){e(t,i,o)}};let ER=class extends W{get enabled(){return this._enabled}set enabled(e){e?(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=e}constructor(e,t,i={},n,s){var r,a;super(),this._link=t,this._hoverService=n,this._enabled=!0,this.el=Q(e,te("a.monaco-link",{tabIndex:(r=t.tabIndex)!==null&&r!==void 0?r:0,href:t.href},t.label)),this.hoverDelegate=(a=i.hoverDelegate)!==null&&a!==void 0?a:Ts("mouse"),this.setTooltip(t.title),this.el.setAttribute("role","button");const l=this._register(new rt(this.el,"click")),d=this._register(new rt(this.el,"keypress")),c=ae.chain(d.event,g=>g.map(f=>new Ht(f)).filter(f=>f.keyCode===3)),h=this._register(new rt(this.el,Ut.Tap)).event;this._register(zt.addTarget(this.el));const u=ae.any(l.event,c,h);this._register(u(g=>{this.enabled&&(lt.stop(g,!0),i!=null&&i.opener?i.opener(this._link.href):s.open(this._link.href,{allowCommands:!0}))})),this.enabled=!0}setTooltip(e){this.hoverDelegate.showNativeHover?this.el.title=e??"":!this.hover&&e?this.hover=this._register(this._hoverService.setupUpdatableHover(this.hoverDelegate,this.el,e)):this.hover&&this.hover.update(e)}};ER=Gwe([E7(3,Gl),E7(4,fo)],ER);var o$=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},r$=function(o,e){return function(t,i){e(t,i,o)}};const Zwe=26;let NR=class extends W{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(TR))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show({...e,onClose:()=>{var t;this.hide(),(t=e.onClose)===null||t===void 0||t.call(e)}}),this._editor.setBanner(this.banner.element,Zwe)}};NR=o$([r$(1,Le)],NR);let TR=class extends W{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(Fl,{}),this.element=te("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(e){if(e.ariaLabel)return e.ariaLabel;if(typeof e.message=="string")return e.message}getBannerMessage(e){if(typeof e=="string"){const t=te("span");return t.innerText=e,t}return this.markdownRenderer.render(e).element}clear(){xn(this.element)}show(e){xn(this.element);const t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);const i=Q(this.element,te("div.icon-container"));i.setAttribute("aria-hidden","true"),e.icon&&i.appendChild(te(`div${Te.asCSSSelector(e.icon)}`));const n=Q(this.element,te("div.message-container"));if(n.setAttribute("aria-hidden","true"),n.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=Q(this.element,te("div.message-actions-container")),e.actions)for(const r of e.actions)this._register(this.instantiationService.createInstance(ER,this.messageActionsContainer,{...r,tabIndex:-1},{}));const s=Q(this.element,te("div.action-container"));this.actionBar=this._register(new ur(s)),this.actionBar.push(this._register(new no("banner.close","Close Banner",Te.asClassName(PH),!0,()=>{typeof e.onClose=="function"&&e.onClose()})),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};TR=o$([r$(0,Le)],TR);var lO=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Rm=function(o,e){return function(t,i){e(t,i,o)}};const Ywe=_i("extensions-warning-message",oe.warning,m("warningIcon","Icon shown with a warning message in the extensions editor."));let Lp=class extends W{constructor(e,t,i,n){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=i,this._highlighter=null,this._bannerClosed=!1,this._updateState=s=>{if(s&&s.hasMore){if(this._bannerClosed)return;const r=Math.max(s.ambiguousCharacterCount,s.nonBasicAsciiCharacterCount,s.invisibleCharacterCount);let a;if(s.nonBasicAsciiCharacterCount>=r)a={message:m("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new Zp};else if(s.ambiguousCharacterCount>=r)a={message:m("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new eu};else if(s.invisibleCharacterCount>=r)a={message:m("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new Gp};else throw new Error("Unreachable");this._bannerController.show({id:"unicodeHighlightBanner",message:a.message,icon:Ywe,actions:[{label:a.command.shortLabel,href:`command:${a.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(n.createInstance(NR,e)),this._register(this._editor.onDidChangeModel(()=>{this._bannerClosed=!1,this._updateHighlighter()})),this._options=e.getOption(125),this._register(i.onDidChangeTrust(s=>{this._updateHighlighter()})),this._register(e.onDidChangeConfiguration(s=>{s.hasChanged(125)&&(this._options=e.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;const e=Qwe(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every(i=>i===!1))return;const t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map(i=>i.codePointAt(0)),allowedLocales:Object.keys(e.allowedLocales).map(i=>i==="_os"?new Intl.NumberFormat().resolvedOptions().locale:i==="_vscode"?U$:i)};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new MR(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new Xwe(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};Lp.ID="editor.contrib.unicodeHighlighter";Lp=lO([Rm(1,pr),Rm(2,T6),Rm(3,Le)],Lp);function Qwe(o,e){return{nonBasicASCII:e.nonBasicASCII===vo?!o:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments===vo?!o:e.includeComments,includeStrings:e.includeStrings===vo?!o:e.includeStrings,allowedCharacters:e.allowedCharacters,allowedLocales:e.allowedLocales}}let MR=class extends W{constructor(e,t,i,n){super(),this._editor=e,this._options=t,this._updateState=i,this._editorWorkerService=n,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new At(()=>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}const e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then(t=>{if(this._model.isDisposed()||this._model.getVersionId()!==e)return;this._updateState(t);const i=[];if(!t.hasMore)for(const n of t.ranges)i.push({range:n,options:Oy.instance.getDecorationFromOptions(this._options)});this._decorations.set(i)})}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel();if(!m2(t,e))return null;const i=t.getValueInRange(e.range);return{reason:l$(i,this._options),inComment:p2(t,e),inString:_2(t,e)}}};MR=lO([Rm(3,pr)],MR);class Xwe extends W{constructor(e,t,i){super(),this._editor=e,this._options=t,this._updateState=i,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new At(()=>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}const e=this._editor.getVisibleRanges(),t=[],i={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(const n of e){const s=DA.computeUnicodeHighlights(this._model,this._options,n);for(const r of s.ranges)i.ranges.push(r);i.ambiguousCharacterCount+=i.ambiguousCharacterCount,i.invisibleCharacterCount+=i.invisibleCharacterCount,i.nonBasicAsciiCharacterCount+=i.nonBasicAsciiCharacterCount,i.hasMore=i.hasMore||s.hasMore}if(!i.hasMore)for(const n of i.ranges)t.push({range:n,options:Oy.instance.getDecorationFromOptions(this._options)});this._updateState(i),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel(),i=t.getValueInRange(e.range);return m2(t,e)?{reason:l$(i,this._options),inComment:p2(t,e),inString:_2(t,e)}:null}}const a$=m("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options");let RR=class{constructor(e,t,i){this._editor=e,this._languageService=t,this._openerService=i,this.hoverOrdinal=5}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=this._editor.getContribution(Lp.ID);if(!n)return[];const s=[],r=new Set;let a=300;for(const l of t){const d=n.getDecorationInfo(l);if(!d)continue;const h=i.getValueInRange(l.range).codePointAt(0),u=dI(h);let g;switch(d.reason.kind){case 0:{L0(d.reason.confusableWith)?g=m("unicodeHighlight.characterIsAmbiguousASCII","The character {0} could be confused with the ASCII character {1}, which is more common in source code.",u,dI(d.reason.confusableWith.codePointAt(0))):g=m("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",u,dI(d.reason.confusableWith.codePointAt(0)));break}case 1:g=m("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",u);break;case 2:g=m("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",u);break}if(r.has(g))continue;r.add(g);const f={codePoint:h,reason:d.reason,inComment:d.inComment,inString:d.inString},p=m("unicodeHighlight.adjustSettings","Adjust settings"),_=`command:${fC.ID}?${encodeURIComponent(JSON.stringify(f))}`,v=new Un("",!0).appendMarkdown(g).appendText(" ").appendLink(_,p,a$);s.push(new ga(this,l.range,[v],!1,a++))}return s}renderHoverParts(e,t){return Ype(e,t,this._editor,this._languageService,this._openerService)}};RR=lO([Rm(1,si),Rm(2,fo)],RR);function AR(o){return`U+${o.toString(16).padStart(4,"0")}`}function dI(o){let e=`\`${AR(o)}\``;return kl.isInvisibleCharacter(o)||(e+=` "${`${Jwe(o)}`}"`),e}function Jwe(o){return o===96?"`` ` ``":"`"+String.fromCodePoint(o)+"`"}function l$(o,e){return DA.computeUnicodeHighlightReason(o,e)}class Oy{constructor(){this.map=new Map}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){const i=`${e}${t}`;let n=this.map.get(i);return n||(n=je.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(i,n)),n}}Oy.instance=new Oy;class eSe extends ce{constructor(){super({id:eu.ID,label:m("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=m("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}async run(e,t,i){const n=e==null?void 0:e.get(Je);n&&this.runAction(n)}async runAction(e){await e.updateValue(Bs.includeComments,!1,2)}}class tSe extends ce{constructor(){super({id:eu.ID,label:m("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=m("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}async run(e,t,i){const n=e==null?void 0:e.get(Je);n&&this.runAction(n)}async runAction(e){await e.updateValue(Bs.includeStrings,!1,2)}}class eu extends ce{constructor(){super({id:eu.ID,label:m("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=m("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}async run(e,t,i){const n=e==null?void 0:e.get(Je);n&&this.runAction(n)}async runAction(e){await e.updateValue(Bs.ambiguousCharacters,!1,2)}}eu.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";class Gp extends ce{constructor(){super({id:Gp.ID,label:m("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=m("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}async run(e,t,i){const n=e==null?void 0:e.get(Je);n&&this.runAction(n)}async runAction(e){await e.updateValue(Bs.invisibleCharacters,!1,2)}}Gp.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";class Zp extends ce{constructor(){super({id:Zp.ID,label:m("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=m("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}async run(e,t,i){const n=e==null?void 0:e.get(Je);n&&this.runAction(n)}async runAction(e){await e.updateValue(Bs.nonBasicASCII,!1,2)}}Zp.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";class fC extends ce{constructor(){super({id:fC.ID,label:m("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}async run(e,t,i){const{codePoint:n,reason:s,inString:r,inComment:a}=i,l=String.fromCodePoint(n),d=e.get(_r),c=e.get(Je);function h(f){return kl.isInvisibleCharacter(f)?m("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",AR(f)):m("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${AR(f)} "${l}"`)}const u=[];if(s.kind===0)for(const f of s.notAmbiguousInLocales)u.push({label:m("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',f),run:async()=>{nSe(c,[f])}});if(u.push({label:h(n),run:()=>iSe(c,[n])}),a){const f=new eSe;u.push({label:f.label,run:async()=>f.runAction(c)})}else if(r){const f=new tSe;u.push({label:f.label,run:async()=>f.runAction(c)})}if(s.kind===0){const f=new eu;u.push({label:f.label,run:async()=>f.runAction(c)})}else if(s.kind===1){const f=new Gp;u.push({label:f.label,run:async()=>f.runAction(c)})}else if(s.kind===2){const f=new Zp;u.push({label:f.label,run:async()=>f.runAction(c)})}else sSe(s);const g=await d.pick(u,{title:a$});g&&await g.run()}}fC.ID="editor.action.unicodeHighlight.showExcludeOptions";async function iSe(o,e){const t=o.getValue(Bs.allowedCharacters);let i;typeof t=="object"&&t?i=t:i={};for(const n of e)i[String.fromCodePoint(n)]=!0;await o.updateValue(Bs.allowedCharacters,i,2)}async function nSe(o,e){var t;const i=(t=o.inspect(Bs.allowedLocales).user)===null||t===void 0?void 0:t.value;let n;typeof i=="object"&&i?n=Object.assign({},i):n={};for(const s of e)n[s]=!0;await o.updateValue(Bs.allowedLocales,n,2)}function sSe(o){throw new Error(`Unexpected value: ${o}`)}J(eu);J(Gp);J(Zp);J(fC);vt(Lp.ID,Lp,1);Xh.register(RR);var oSe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},N7=function(o,e){return function(t,i){e(t,i,o)}};const d$="ignoreUnusualLineTerminators";function rSe(o,e,t){o.setModelProperty(e.uri,d$,t)}function aSe(o,e){return o.getModelProperty(e.uri,d$)}let p0=class extends W{constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._isPresentingDialog=!1,this._config=this._editor.getOption(126),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(126)&&(this._config=this._editor.getOption(126),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(n=>{n.isUndoing||this._checkForUnusualLineTerminators()})),this._checkForUnusualLineTerminators()}async _checkForUnusualLineTerminators(){if(this._config==="off"||!this._editor.hasModel())return;const e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators()||aSe(this._codeEditorService,e)===!0||this._editor.getOption(91))return;if(this._config==="auto"){e.removeUnusualLineTerminators(this._editor.getSelections());return}if(this._isPresentingDialog)return;let i;try{this._isPresentingDialog=!0,i=await this._dialogService.confirm({title:m("unusualLineTerminators.title","Unusual Line Terminators"),message:m("unusualLineTerminators.message","Detected unusual line terminators"),detail:m("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`.",cr(e.uri)),primaryButton:m({key:"unusualLineTerminators.fix",comment:["&& denotes a mnemonic"]},"&&Remove Unusual Line Terminators"),cancelButton:m("unusualLineTerminators.ignore","Ignore")})}finally{this._isPresentingDialog=!1}if(!i.confirmed){rSe(this._codeEditorService,e,!0);return}e.removeUnusualLineTerminators(this._editor.getSelections())}};p0.ID="editor.contrib.unusualLineTerminatorsDetector";p0=oSe([N7(1,z0),N7(2,_t)],p0);vt(p0.ID,p0,1);var c$=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Tw=function(o,e){return function(t,i){e(t,i,o)}},Zi,PR;const Xx=new de("hasWordHighlights",!1);function h$(o,e,t,i){const n=o.ordered(e);return hA(n.map(s=>()=>Promise.resolve(s.provideDocumentHighlights(e,t,i)).then(void 0,yi)),jn).then(s=>{if(s){const r=new Ni;return r.set(e.uri,s),r}return new Ni})}function lSe(o,e,t,i,n,s){const r=o.ordered(e);return hA(r.map(a=>()=>{const l=s.filter(d=>LW(d)).filter(d=>w2(a.selector,d.uri,d.getLanguageId(),!0,void 0,void 0)>0);return Promise.resolve(a.provideMultiDocumentHighlights(e,t,l,n)).then(void 0,yi)}),a=>a instanceof Ni&&a.size>0)}class dO{constructor(e,t,i){this._model=e,this._selection=t,this._wordSeparators=i,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||(this._result=an(e=>this._compute(this._model,this._selection,this._wordSeparators,e))),this._result}_getCurrentWordRange(e,t){const i=e.getWordAtPosition(t.getPosition());return i?new x(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):null}isValid(e,t,i){const n=t.startLineNumber,s=t.startColumn,r=t.endColumn,a=this._getCurrentWordRange(e,t);let l=!!(this._wordRange&&this._wordRange.equalsRange(a));for(let d=0,c=i.length;!l&&d=r&&(l=!0)}return l}cancel(){this.result.cancel()}}class dSe extends dO{constructor(e,t,i,n){super(e,t,i),this._providers=n}_compute(e,t,i,n){return h$(this._providers,e,t.getPosition(),n).then(s=>s||new Ni)}}class cSe extends dO{constructor(e,t,i,n,s){super(e,t,i),this._providers=n,this._otherModels=s}_compute(e,t,i,n){return lSe(this._providers,e,t.getPosition(),i,n,this._otherModels).then(s=>s||new Ni)}}class u$ extends dO{constructor(e,t,i,n,s){super(e,t,n),this._otherModels=s,this._selectionIsEmpty=t.isEmpty(),this._word=i}_compute(e,t,i,n){return Xd(250,n).then(()=>{const s=new Ni;let r;if(this._word?r=this._word:r=e.getWordAtPosition(t.getPosition()),!r)return new Ni;const a=[e,...this._otherModels];for(const l of a){if(l.isDisposed())continue;const c=l.findMatches(r.word,!0,!1,!0,i,!1).map(h=>({range:h.range,kind:Uv.Text}));c&&s.set(l.uri,c)}return s})}isValid(e,t,i){const n=t.isEmpty();return this._selectionIsEmpty!==n?!1:super.isValid(e,t,i)}}function hSe(o,e,t,i,n){return o.has(e)?new dSe(e,t,n,o):new u$(e,t,i,n,[])}function uSe(o,e,t,i,n,s){return o.has(e)?new cSe(e,t,n,o,s):new u$(e,t,i,n,s)}Kl("_executeDocumentHighlights",async(o,e,t)=>{const i=o.get(me),n=await h$(i.documentHighlightProvider,e,t,st.None);return n==null?void 0:n.get(e.uri)});let _0=Zi=class{constructor(e,t,i,n,s){this.toUnhook=new G,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=new Ni,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this.providers=t,this.multiDocumentProviders=i,this.codeEditorService=s,this._hasWordHighlights=Xx.bindTo(n),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(81),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition(r=>{this._ignorePositionChangeEvent||this.occurrencesHighlight!=="off"&&this._onPositionChanged(r)})),this.toUnhook.add(e.onDidFocusEditorText(r=>{this.occurrencesHighlight!=="off"&&(this.workerRequest||this._run())})),this.toUnhook.add(e.onDidChangeModelContent(r=>{this._stopAll()})),this.toUnhook.add(e.onDidChangeModel(r=>{!r.newModelUrl&&r.oldModelUrl?this._stopSingular():Zi.query&&this._run()})),this.toUnhook.add(e.onDidChangeConfiguration(r=>{const a=this.editor.getOption(81);this.occurrencesHighlight!==a&&(this.occurrencesHighlight=a,this._stopAll())})),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,Zi.query&&this._run()}hasDecorations(){return this.decorations.length>0}restore(){this.occurrencesHighlight!=="off"&&this._run()}_getSortedHighlights(){return this.decorations.getRanges().sort(x.compareRangesUsingStarts)}moveNext(){const e=this._getSortedHighlights(),i=(e.findIndex(s=>s.containsPosition(this.editor.getPosition()))+1)%e.length,n=e[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);const s=this._getWord();if(s){const r=this.editor.getModel().getLineContent(n.startLineNumber);js(`${r}, ${i+1} of ${e.length} for '${s.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){const e=this._getSortedHighlights(),i=(e.findIndex(s=>s.containsPosition(this.editor.getPosition()))-1+e.length)%e.length,n=e[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);const s=this._getWord();if(s){const r=this.editor.getModel().getLineContent(n.startLineNumber);js(`${r}, ${i+1} of ${e.length} for '${s.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeSingleDecorations(){if(!this.editor.hasModel())return;const e=Zi.storedDecorations.get(this.editor.getModel().uri);e&&(this.editor.removeDecorations(e),Zi.storedDecorations.delete(this.editor.getModel().uri),this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1)))}_removeAllDecorations(){const e=this.codeEditorService.listCodeEditors(),t=[];for(const i of e){if(!i.hasModel())continue;const n=Zi.storedDecorations.get(i.getModel().uri);if(!n)continue;i.removeDecorations(n),t.push(i.getModel().uri);const s=ac.get(i);s!=null&&s.wordHighlighter&&s.wordHighlighter.decorations.length>0&&(s.wordHighlighter.decorations.clear(),s.wordHighlighter.workerRequest=null,s.wordHighlighter._hasWordHighlights.set(!1))}for(const i of t)Zi.storedDecorations.delete(i)}_stopSingular(){var e,t,i,n;this._removeSingleDecorations(),this.editor.hasTextFocus()&&(((e=this.editor.getModel())===null||e===void 0?void 0:e.uri.scheme)!==Oe.vscodeNotebookCell&&((i=(t=Zi.query)===null||t===void 0?void 0:t.modelInfo)===null||i===void 0?void 0:i.model.uri.scheme)!==Oe.vscodeNotebookCell?(Zi.query=null,this._run()):!((n=Zi.query)===null||n===void 0)&&n.modelInfo&&(Zi.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(e){var t;if(this.occurrencesHighlight==="off"){this._stopAll();return}if(e.reason!==3&&((t=this.editor.getModel())===null||t===void 0?void 0:t.uri.scheme)!==Oe.vscodeNotebookCell){this._stopAll();return}this._run()}_getWord(){const e=this.editor.getSelection(),t=e.startLineNumber,i=e.startColumn;return this.model.isDisposed()?null:this.model.getWordAtPosition({lineNumber:t,column:i})}getOtherModelsToHighlight(e){if(!e)return[];if(e.uri.scheme===Oe.vscodeNotebookCell){const s=[],r=this.codeEditorService.listCodeEditors();for(const a of r){const l=a.getModel();l&&l!==e&&l.uri.scheme===Oe.vscodeNotebookCell&&s.push(l)}return s}const i=[],n=this.codeEditorService.listCodeEditors();for(const s of n){if(!pP(s))continue;const r=s.getModel();r&&e===r.modified&&i.push(r.modified)}if(i.length)return i;if(this.occurrencesHighlight==="singleFile")return[];for(const s of n){const r=s.getModel();r&&r!==e&&i.push(r)}return i}_run(){var e;let t;if(this.editor.hasTextFocus()){const n=this.editor.getSelection();if(!n||n.startLineNumber!==n.endLineNumber){Zi.query=null,this._stopAll();return}const s=n.startColumn,r=n.endColumn,a=this._getWord();if(!a||a.startColumn>s||a.endColumn{n===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=r||[],this._beginRenderDecorations())},ze)}}computeWithModel(e,t,i,n){return n.length?uSe(this.multiDocumentProviders,e,t,i,this.editor.getOption(131),n):hSe(this.providers,e,t,i,this.editor.getOption(131))}_beginRenderDecorations(){const e=new Date().getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},t-e)}renderDecorations(){var e,t,i;this.renderDecorationsTimer=-1;const n=this.codeEditorService.listCodeEditors();for(const s of n){const r=ac.get(s);if(!r)continue;const a=[],l=(e=s.getModel())===null||e===void 0?void 0:e.uri;if(l&&this.workerRequestValue.has(l)){const d=Zi.storedDecorations.get(l),c=this.workerRequestValue.get(l);if(c)for(const u of c)u.range&&a.push({range:u.range,options:y1e(u.kind)});let h=[];s.changeDecorations(u=>{h=u.deltaDecorations(d??[],a)}),Zi.storedDecorations=Zi.storedDecorations.set(l,h),a.length>0&&((t=r.wordHighlighter)===null||t===void 0||t.decorations.set(a),(i=r.wordHighlighter)===null||i===void 0||i._hasWordHighlights.set(!0))}}}dispose(){this._stopSingular(),this.toUnhook.dispose()}};_0.storedDecorations=new Ni;_0.query=null;_0=Zi=c$([Tw(4,_t)],_0);let ac=PR=class extends W{static get(e){return e.getContribution(PR.ID)}constructor(e,t,i,n){super(),this._wordHighlighter=null;const s=()=>{e.hasModel()&&!e.getModel().isTooLargeForTokenization()&&(this._wordHighlighter=new _0(e,i.documentHighlightProvider,i.multiDocumentHighlightProvider,t,n))};this._register(e.onDidChangeModel(r=>{this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),s()})),s()}get wordHighlighter(){return this._wordHighlighter}saveViewState(){return!!(this._wordHighlighter&&this._wordHighlighter.hasDecorations())}moveNext(){var e;(e=this._wordHighlighter)===null||e===void 0||e.moveNext()}moveBack(){var e;(e=this._wordHighlighter)===null||e===void 0||e.moveBack()}restoreViewState(e){this._wordHighlighter&&e&&this._wordHighlighter.restore()}dispose(){this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),super.dispose()}};ac.ID="editor.contrib.wordHighlighter";ac=PR=c$([Tw(1,Me),Tw(2,me),Tw(3,_t)],ac);class g$ extends ce{constructor(e,t){super(t),this._isNext=e}run(e,t){const i=ac.get(t);i&&(this._isNext?i.moveNext():i.moveBack())}}class gSe extends g${constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:m("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:Xx,kbOpts:{kbExpr:E.editorTextFocus,primary:65,weight:100}})}}class fSe extends g${constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:m("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:Xx,kbOpts:{kbExpr:E.editorTextFocus,primary:1089,weight:100}})}}class mSe extends ce{constructor(){super({id:"editor.action.wordHighlight.trigger",label:m("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:Xx.toNegated(),kbOpts:{kbExpr:E.editorTextFocus,primary:0,weight:100}})}run(e,t,i){const n=ac.get(t);n&&n.restoreViewState(!0)}}vt(ac.ID,ac,0);J(gSe);J(fSe);J(mSe);class Jx extends Xi{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){if(!t.hasModel())return;const n=dr(t.getOption(131),t.getOption(130)),s=t.getModel(),a=t.getSelections().map(l=>{const d=new F(l.positionLineNumber,l.positionColumn),c=this._move(n,s,d,this._wordNavigationType);return this._moveTo(l,c,this._inSelectionMode)});if(s.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,a.map(l=>mt.fromModelSelection(l))),a.length===1){const l=new F(a[0].positionLineNumber,a[0].positionColumn);t.revealPosition(l,0)}}_moveTo(e,t,i){return i?new _e(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new _e(t.lineNumber,t.column,t.lineNumber,t.column)}}class tu extends Jx{_move(e,t,i,n){return yt.moveWordLeft(e,t,i,n)}}class iu extends Jx{_move(e,t,i,n){return yt.moveWordRight(e,t,i,n)}}class pSe extends tu{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}class _Se extends tu{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}class vSe extends tu{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:K.and(E.textInputFocus,(e=K.and(R0,qL))===null||e===void 0?void 0:e.negate()),primary:2063,mac:{primary:527},weight:100}})}}class bSe extends tu{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}class CSe extends tu{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}class wSe extends tu{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:K.and(E.textInputFocus,(e=K.and(R0,qL))===null||e===void 0?void 0:e.negate()),primary:3087,mac:{primary:1551},weight:100}})}}class SSe extends tu{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,i,n){return super._move(dr(Oa.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n)}}class ySe extends tu{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,i,n){return super._move(dr(Oa.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n)}}class LSe extends iu{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}class xSe extends iu{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:K.and(E.textInputFocus,(e=K.and(R0,qL))===null||e===void 0?void 0:e.negate()),primary:2065,mac:{primary:529},weight:100}})}}class DSe extends iu{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}class kSe extends iu{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}class ISe extends iu{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:K.and(E.textInputFocus,(e=K.and(R0,qL))===null||e===void 0?void 0:e.negate()),primary:3089,mac:{primary:1553},weight:100}})}}class ESe extends iu{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}class NSe extends iu{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,i,n){return super._move(dr(Oa.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n)}}class TSe extends iu{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,i,n){return super._move(dr(Oa.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n)}}class eD extends Xi{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){const n=e.get($t);if(!t.hasModel())return;const s=dr(t.getOption(131),t.getOption(130)),r=t.getModel(),a=t.getSelections(),l=t.getOption(6),d=t.getOption(11),c=n.getLanguageConfiguration(r.getLanguageId()).getAutoClosingPairs(),h=t._getViewModel(),u=a.map(g=>{const f=this._delete({wordSeparators:s,model:r,selection:g,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(9),autoClosingBrackets:l,autoClosingQuotes:d,autoClosingPairs:c,autoClosedCharacters:h.getCursorAutoClosedCharacters()},this._wordNavigationType);return new Tn(f,"")});t.pushUndoStop(),t.executeCommands(this.id,u),t.pushUndoStop()}}class cO extends eD{_delete(e,t){const i=yt.deleteWordLeft(e,t);return i||new x(1,1,1,1)}}class hO extends eD{_delete(e,t){const i=yt.deleteWordRight(e,t);if(i)return i;const n=e.model.getLineCount(),s=e.model.getLineMaxColumn(n);return new x(n,s,n,s)}}class MSe extends cO{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:E.writable})}}class RSe extends cO{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:E.writable})}}class ASe extends cO{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:E.writable,kbOpts:{kbExpr:E.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}class PSe extends hO{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:E.writable})}}class OSe extends hO{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:E.writable})}}class FSe extends hO{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:E.writable,kbOpts:{kbExpr:E.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}class BSe extends ce{constructor(){super({id:"deleteInsideWord",precondition:E.writable,label:m("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,i){if(!t.hasModel())return;const n=dr(t.getOption(131),t.getOption(130)),s=t.getModel(),a=t.getSelections().map(l=>{const d=yt.deleteInsideWord(n,s,l);return new Tn(d,"")});t.pushUndoStop(),t.executeCommands(this.id,a),t.pushUndoStop()}}le(new pSe);le(new _Se);le(new vSe);le(new bSe);le(new CSe);le(new wSe);le(new LSe);le(new xSe);le(new DSe);le(new kSe);le(new ISe);le(new ESe);le(new SSe);le(new ySe);le(new NSe);le(new TSe);le(new MSe);le(new RSe);le(new ASe);le(new PSe);le(new OSe);le(new FSe);J(BSe);class WSe extends eD{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:E.writable,kbOpts:{kbExpr:E.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){const i=bL.deleteWordPartLeft(e);return i||new x(1,1,1,1)}}class HSe extends eD{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:E.writable,kbOpts:{kbExpr:E.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){const i=bL.deleteWordPartRight(e);if(i)return i;const n=e.model.getLineCount(),s=e.model.getLineMaxColumn(n);return new x(n,s,n,s)}}class f$ extends Jx{_move(e,t,i,n){return bL.moveWordPartLeft(e,t,i)}}class VSe extends f${constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:E.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}ct.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");class zSe extends f${constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:E.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}ct.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class m$ extends Jx{_move(e,t,i,n){return bL.moveWordPartRight(e,t,i)}}class USe extends m${constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:E.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}class $Se extends m${constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:E.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}}le(new WSe);le(new HSe);le(new VSe);le(new zSe);le(new USe);le(new $Se);class OR extends W{constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}_onDidAttemptReadOnlyEdit(){const e=Ls.get(this.editor);if(e&&this.editor.hasModel()){let t=this.editor.getOptions().get(92);t||(this.editor.isSimpleWidget?t=new Un(m("editor.simple.readonly","Cannot edit in read-only input")):t=new Un(m("editor.readonly","Cannot edit in read-only editor"))),e.showMessage(t,this.editor.getPosition())}}}OR.ID="editor.contrib.readOnlyMessageController";vt(OR.ID,OR,2);var jSe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},T7=function(o,e){return function(t,i){e(t,i,o)}};let FR=class extends W{constructor(e,t,i){super(),this._textModel=e,this._languageFeaturesService=t,this._outlineModelService=i,this._currentModel=ut(this,void 0);const n=$n("documentSymbolProvider.onDidChange",this._languageFeaturesService.documentSymbolProvider.onDidChange),s=$n("_textModel.onDidChangeContent",ae.debounce(r=>this._textModel.onDidChangeContent(r),()=>{},100));this._register(hr(async(r,a)=>{n.read(r),s.read(r);const l=a.add(new Lhe),d=await this._outlineModelService.getOrCreate(this._textModel,l.token);a.isDisposed||this._currentModel.set(d,void 0)}))}getBreadcrumbItems(e,t){const i=this._currentModel.read(t);if(!i)return[];const n=i.asListOfDocumentSymbols().filter(s=>e.contains(s.range.startLineNumber)&&!e.contains(s.range.endLineNumber));return n.sort(z7(zs(s=>s.range.endLineNumber-s.range.startLineNumber,Br))),n.map(s=>({name:s.name,kind:s.kind,startLineNumber:s.range.startLineNumber}))}};FR=jSe([T7(1,me),T7(2,uC)],FR);Vb.setBreadcrumbsSourceFactory((o,e)=>e.createInstance(FR,o));class BR extends W{constructor(e){super(),this.editor=e,this.widget=null,Da&&(this._register(e.onDidChangeConfiguration(()=>this.update())),this.update())}update(){const e=!this.editor.getOption(91);!this.widget&&e?this.widget=new tD(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}BR.ID="editor.contrib.iPadShowKeyboard";class tD extends W{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(U(this._domNode,"touchstart",t=>{this.editor.focus()})),this._register(U(this._domNode,"focus",t=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return tD.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}tD.ID="editor.contrib.ShowKeyboardWidget";vt(BR.ID,BR,3);var KSe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},M7=function(o,e){return function(t,i){e(t,i,o)}},WR;let xp=WR=class extends W{static get(e){return e.getContribution(WR.ID)}constructor(e,t,i){super(),this._editor=e,this._languageService=i,this._widget=null,this._register(this._editor.onDidChangeModel(n=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(n=>this.stop())),this._register(gi.onDidChange(n=>this.stop())),this._register(this._editor.onKeyUp(n=>n.keyCode===9&&this.stop()))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new iD(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};xp.ID="editor.contrib.inspectTokens";xp=WR=KSe([M7(1,jo),M7(2,si)],xp);class qSe extends ce{constructor(){super({id:"editor.action.inspectTokens",label:UN.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){const i=xp.get(t);i==null||i.launch()}}function GSe(o){let e="";for(let t=0,i=o.length;t$m,tokenize:(n,s,r)=>RA(e,r),tokenizeEncoded:(n,s,r)=>hL(i,r)}}class iD extends W{constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=ZSe(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(i=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return iD._ID}_compute(e){const t=this._getTokensAtLine(e.lineNumber);let i=0;for(let l=t.tokens1.length-1;l>=0;l--){const d=t.tokens1[l];if(e.column-1>=d.offset){i=l;break}}let n=0;for(let l=t.tokens2.length>>>1;l>=0;l--)if(e.column-1>=t.tokens2[l<<1]){n=l;break}const s=this._model.getLineContent(e.lineNumber);let r="";if(i=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},R7=function(o,e){return function(t,i){e(t,i,o)}},ev;let Fy=ev=class{constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=hi.as(Xg.Quickaccess)}provide(e){const t=new G;return t.add(e.onDidAccept(()=>{const[i]=e.selectedItems;i&&this.quickInputService.quickAccess.show(i.prefix,{preserveValue:!0})})),t.add(e.onDidChangeValue(i=>{const n=this.registry.getQuickAccessProvider(i.substr(ev.PREFIX.length));n&&n.prefix&&n.prefix!==ev.PREFIX&&this.quickInputService.quickAccess.show(n.prefix,{preserveValue:!0})})),e.items=this.getQuickAccessProviders().filter(i=>i.prefix!==ev.PREFIX),t}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort((t,i)=>t.prefix.localeCompare(i.prefix)).flatMap(t=>this.createPicks(t))}createPicks(e){return e.helpEntries.map(t=>{const i=t.prefix||e.prefix,n=i||"…";return{prefix:i,label:n,keybinding:t.commandId?this.keybindingService.lookupKeybinding(t.commandId):void 0,ariaLabel:m("helpPickAriaLabel","{0}, {1}",n,t.description),description:t.description}})}};Fy.PREFIX="?";Fy=ev=YSe([R7(0,_r),R7(1,St)],Fy);hi.as(Xg.Quickaccess).registerQuickAccessProvider({ctor:Fy,prefix:"",helpEntries:[{description:$N.helpQuickAccessActionLabel}]});class p${constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t,i){var n;const s=new G;e.canAcceptInBackground=!!(!((n=this.options)===null||n===void 0)&&n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const r=s.add(new ln);return r.value=this.doProvide(e,t,i),s.add(this.onDidActiveTextEditorControlChange(()=>{r.value=void 0,r.value=this.doProvide(e,t)})),s}doProvide(e,t,i){var n;const s=new G,r=this.activeTextEditorControl;if(r&&this.canProvideWithTextEditor(r)){const a={editor:r},l=rV(r);if(l){let d=(n=r.saveViewState())!==null&&n!==void 0?n:void 0;s.add(l.onDidChangeCursorPosition(()=>{var c;d=(c=r.saveViewState())!==null&&c!==void 0?c:void 0})),a.restoreViewState=()=>{d&&r===this.activeTextEditorControl&&r.restoreViewState(d)},s.add(bh(t.onCancellationRequested)(()=>{var c;return(c=a.restoreViewState)===null||c===void 0?void 0:c.call(a)}))}s.add(Ce(()=>this.clearDecorations(r))),s.add(this.provideWithTextEditor(a,e,t,i))}else s.add(this.provideWithoutTextEditor(e,t));return s}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range,"code.jump"),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus();const i=e.getModel();i&&"getLineContent"in i&&Al(`${i.getLineContent(t.range.startLineNumber)}`)}getModel(e){var t;return pP(e)?(t=e.getModel())===null||t===void 0?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(i=>{const n=[];this.rangeHighlightDecorationId&&(n.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),n.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const s=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:fi(d8),position:Bo.Full}}}],[r,a]=i.deltaDecorations(n,s);this.rangeHighlightDecorationId={rangeHighlightId:r,overviewRulerDecorationId:a}})}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(i=>{i.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}class nD extends p${constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){const t=m("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,W.None}provideWithTextEditor(e,t,i){const n=e.editor,s=new G;s.add(t.onDidAccept(l=>{const[d]=t.selectedItems;if(d){if(!this.isValidLineNumber(n,d.lineNumber))return;this.gotoLocation(e,{range:this.toRange(d.lineNumber,d.column),keyMods:t.keyMods,preserveFocus:l.inBackground}),l.inBackground||t.hide()}}));const r=()=>{const l=this.parsePosition(n,t.value.trim().substr(nD.PREFIX.length)),d=this.getPickLabel(n,l.lineNumber,l.column);if(t.items=[{lineNumber:l.lineNumber,column:l.column,label:d}],t.ariaLabel=d,!this.isValidLineNumber(n,l.lineNumber)){this.clearDecorations(n);return}const c=this.toRange(l.lineNumber,l.column);n.revealRangeInCenter(c,0),this.addDecorations(n,c)};r(),s.add(t.onDidChangeValue(()=>r()));const a=rV(n);return a&&a.getOptions().get(68).renderType===2&&(a.updateOptions({lineNumbers:"on"}),s.add(Ce(()=>a.updateOptions({lineNumbers:"relative"})))),s}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){const i=t.split(/,|:|#/).map(s=>parseInt(s,10)).filter(s=>!isNaN(s)),n=this.lineCount(e)+1;return{lineNumber:i[0]>0?i[0]:n+i[0],column:i[1]}}getPickLabel(e,t,i){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,i)?m("gotoLineColumnLabel","Go to line {0} and character {1}.",t,i):m("gotoLineLabel","Go to line {0}.",t);const n=e.getPosition()||{lineNumber:1,column:1},s=this.lineCount(e);return s>1?m("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",n.lineNumber,n.column,s):m("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",n.lineNumber,n.column)}isValidLineNumber(e,t){return!t||typeof t!="number"?!1:t>0&&t<=this.lineCount(e)}isValidColumn(e,t,i){if(!i||typeof i!="number")return!1;const n=this.getModel(e);if(!n)return!1;const s={lineNumber:t,column:i};return n.validatePosition(s).equals(s)}lineCount(e){var t,i;return(i=(t=this.getModel(e))===null||t===void 0?void 0:t.getLineCount())!==null&&i!==void 0?i:0}}nD.PREFIX=":";var QSe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},XSe=function(o,e){return function(t,i){e(t,i,o)}};let v0=class extends nD{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=ae.None}get activeTextEditorControl(){var e;return(e=this.editorService.getFocusedCodeEditor())!==null&&e!==void 0?e:void 0}};v0=QSe([XSe(0,_t)],v0);let uO=class _$ extends ce{constructor(){super({id:_$.ID,label:ES.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:E.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(_r).quickAccess.show(v0.PREFIX)}};uO.ID="editor.action.gotoLine";J(uO);hi.as(Xg.Quickaccess).registerQuickAccessProvider({ctor:v0,prefix:v0.PREFIX,helpEntries:[{description:ES.gotoLineActionLabel,commandId:uO.ID}]});const v$=[void 0,[]];function cI(o,e,t=0,i=0){const n=e;return n.values&&n.values.length>1?JSe(o,n.values,t,i):b$(o,e,t,i)}function JSe(o,e,t,i){let n=0;const s=[];for(const r of e){const[a,l]=b$(o,r,t,i);if(typeof a!="number")return v$;n+=a,s.push(...l)}return[n,eye(s)]}function b$(o,e,t,i){const n=Cg(e.original,e.originalLowercase,t,o,o.toLowerCase(),i,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return n?[n[0],U0(n)]:v$}function eye(o){const e=o.sort((n,s)=>n.start-s.start),t=[];let i;for(const n of e)!i||!tye(i,n)?(i=n,t.push(n)):(i.start=Math.min(i.start,n.start),i.end=Math.max(i.end,n.end));return t}function tye(o,e){return!(o.end=0,r=A7(o);let a;const l=o.split(C$);if(l.length>1)for(const d of l){const c=A7(d),{pathNormalized:h,normalized:u,normalizedLowercase:g}=P7(d);u&&(a||(a=[]),a.push({original:d,originalLowercase:d.toLowerCase(),pathNormalized:h,normalized:u,normalizedLowercase:g,expectContiguousMatch:c}))}return{original:o,originalLowercase:e,pathNormalized:t,normalized:i,normalizedLowercase:n,values:a,containsPathSeparator:s,expectContiguousMatch:r}}function P7(o){let e;Fn?e=o.replace(/\//g,va):e=o.replace(/\\/g,va);const t=OK(e).replace(/\s|"/g,"");return{pathNormalized:e,normalized:t,normalizedLowercase:t.toLowerCase()}}function O7(o){return Array.isArray(o)?HR(o.map(e=>e.original).join(C$)):HR(o.original)}var iye=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},F7=function(o,e){return function(t,i){e(t,i,o)}},Am;let Tl=Am=class extends p${constructor(e,t,i=Object.create(null)){super(i),this._languageFeaturesService=e,this._outlineModelService=t,this.options=i,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,m("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),W.None}provideWithTextEditor(e,t,i,n){const s=e.editor,r=this.getModel(s);return r?this._languageFeaturesService.documentSymbolProvider.has(r)?this.doProvideWithEditorSymbols(e,r,t,i,n):this.doProvideWithoutEditorSymbols(e,r,t,i):W.None}doProvideWithoutEditorSymbols(e,t,i,n){const s=new G;return this.provideLabelPick(i,m("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),(async()=>!await this.waitForLanguageSymbolRegistry(t,s)||n.isCancellationRequested||s.add(this.doProvideWithEditorSymbols(e,t,i,n)))(),s}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}async waitForLanguageSymbolRegistry(e,t){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;const i=new k0,n=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(n.dispose(),i.complete(!0))}));return t.add(Ce(()=>i.complete(!1))),i.p}doProvideWithEditorSymbols(e,t,i,n,s){var r;const a=e.editor,l=new G;l.add(i.onDidAccept(u=>{var g;const[f]=i.selectedItems;f&&f.range&&(this.gotoLocation(e,{range:f.range.selection,keyMods:i.keyMods,preserveFocus:u.inBackground}),(g=s==null?void 0:s.handleAccept)===null||g===void 0||g.call(s,f),u.inBackground||i.hide())})),l.add(i.onDidTriggerItemButton(({item:u})=>{u&&u.range&&(this.gotoLocation(e,{range:u.range.selection,keyMods:i.keyMods,forceSideBySide:!0}),i.hide())}));const d=this.getDocumentSymbols(t,n);let c;const h=async u=>{c==null||c.dispose(!0),i.busy=!1,c=new ci(n),i.busy=!0;try{const g=HR(i.value.substr(Am.PREFIX.length).trim()),f=await this.doGetSymbolPicks(d,g,void 0,c.token,t);if(n.isCancellationRequested)return;if(f.length>0){if(i.items=f,u&&g.original.length===0){const p=Qv(f,_=>!!(_.type!=="separator"&&_.range&&x.containsPosition(_.range.decoration,u)));p&&(i.activeItems=[p])}}else g.original.length>0?this.provideLabelPick(i,m("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(i,m("noSymbolResults","No editor symbols"))}finally{n.isCancellationRequested||(i.busy=!1)}};return l.add(i.onDidChangeValue(()=>h(void 0))),h((r=a.getSelection())===null||r===void 0?void 0:r.getPosition()),l.add(i.onDidChangeActive(()=>{const[u]=i.activeItems;u&&u.range&&(a.revealRangeInCenter(u.range.selection,0),this.addDecorations(a,u.range.decoration))})),l}async doGetSymbolPicks(e,t,i,n,s){var r,a;const l=await e;if(n.isCancellationRequested)return[];const d=t.original.indexOf(Am.SCOPE_PREFIX)===0,c=d?1:0;let h,u;t.values&&t.values.length>1?(h=O7(t.values[0]),u=O7(t.values.slice(1))):h=t;let g;const f=(a=(r=this.options)===null||r===void 0?void 0:r.openSideBySideDirection)===null||a===void 0?void 0:a.call(r);f&&(g=[{iconClass:f==="right"?Te.asClassName(oe.splitHorizontal):Te.asClassName(oe.splitVertical),tooltip:f==="right"?m("openToSide","Open to the Side"):m("openToBottom","Open to the Bottom")}]);const p=[];for(let b=0;bc){let B=!1;if(h!==t&&([I,T]=cI(S,{...t,values:void 0},c,L),typeof I=="number"&&(B=!0)),typeof I!="number"&&([I,T]=cI(S,h,c,L),typeof I!="number"))continue;if(!B&&u){if(D&&u.original.length>0&&([V,P]=cI(D,u)),typeof V!="number")continue;typeof I=="number"&&(I+=V)}}const A=C.tags&&C.tags.indexOf(1)>=0;p.push({index:b,kind:C.kind,score:I,label:S,ariaLabel:IK(C.name,C.kind),description:D,highlights:A?void 0:{label:T,description:P},range:{selection:x.collapseToStart(C.selectionRange),decoration:C.range},uri:s.uri,symbolName:w,strikethrough:A,buttons:g})}const _=p.sort((b,C)=>d?this.compareByKindAndScore(b,C):this.compareByScore(b,C));let v=[];if(d){let S=function(){C&&typeof b=="number"&&w>0&&(C.label=cg(uI[b]||hI,w))},b,C,w=0;for(const L of _)b!==L.kind?(S(),b=L.kind,w=1,C={type:"separator"},v.push(C)):w++,v.push(L);S()}else _.length>0&&(v=[{label:m("symbols","symbols ({0})",p.length),type:"separator"},..._]);return v}compareByScore(e,t){if(typeof e.score!="number"&&typeof t.score=="number")return 1;if(typeof e.score=="number"&&typeof t.score!="number")return-1;if(typeof e.score=="number"&&typeof t.score=="number"){if(e.score>t.score)return-1;if(e.scoret.index?1:0}compareByKindAndScore(e,t){const i=uI[e.kind]||hI,n=uI[t.kind]||hI,s=i.localeCompare(n);return s===0?this.compareByScore(e,t):s}async getDocumentSymbols(e,t){const i=await this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()}};Tl.PREFIX="@";Tl.SCOPE_PREFIX=":";Tl.PREFIX_BY_CATEGORY=`${Am.PREFIX}${Am.SCOPE_PREFIX}`;Tl=Am=iye([F7(0,me),F7(1,uC)],Tl);const hI=m("property","properties ({0})"),uI={5:m("method","methods ({0})"),11:m("function","functions ({0})"),8:m("_constructor","constructors ({0})"),12:m("variable","variables ({0})"),4:m("class","classes ({0})"),22:m("struct","structs ({0})"),23:m("event","events ({0})"),24:m("operator","operators ({0})"),10:m("interface","interfaces ({0})"),2:m("namespace","namespaces ({0})"),3:m("package","packages ({0})"),25:m("typeParameter","type parameters ({0})"),1:m("modules","modules ({0})"),6:m("property","properties ({0})"),9:m("enum","enumerations ({0})"),21:m("enumMember","enumeration members ({0})"),14:m("string","strings ({0})"),0:m("file","files ({0})"),17:m("array","arrays ({0})"),15:m("number","numbers ({0})"),16:m("boolean","booleans ({0})"),18:m("object","objects ({0})"),19:m("key","keys ({0})"),7:m("field","fields ({0})"),13:m("constant","constants ({0})")};var nye=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},gI=function(o,e){return function(t,i){e(t,i,o)}};let VR=class extends Tl{constructor(e,t,i){super(t,i),this.editorService=e,this.onDidActiveTextEditorControlChange=ae.None}get activeTextEditorControl(){var e;return(e=this.editorService.getFocusedCodeEditor())!==null&&e!==void 0?e:void 0}};VR=nye([gI(0,_t),gI(1,me),gI(2,uC)],VR);class mC extends ce{constructor(){super({id:mC.ID,label:Sb.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:E.hasDocumentSymbolProvider,kbOpts:{kbExpr:E.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(_r).quickAccess.show(Tl.PREFIX,{itemActivation:sa.NONE})}}mC.ID="editor.action.quickOutline";J(mC);hi.as(Xg.Quickaccess).registerQuickAccessProvider({ctor:VR,prefix:Tl.PREFIX,helpEntries:[{description:Sb.quickOutlineActionLabel,prefix:Tl.PREFIX,commandId:mC.ID},{description:Sb.quickOutlineByCategoryActionLabel,prefix:Tl.PREFIX_BY_CATEGORY}]});function sye(o){var e;const t=new Map;for(const i of o)t.set(i,((e=t.get(i))!==null&&e!==void 0?e:0)+1);return t}class Pv{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(e,t){const i=this.computeEmbedding(e),n=new Map,s=[];for(const[r,a]of this.documents){if(t.isCancellationRequested)return[];for(const l of a.chunks){const d=this.computeSimilarityScore(l,i,n);d>0&&s.push({key:r,score:d})}}return s}static termFrequencies(e){return sye(Pv.splitTerms(e))}static*splitTerms(e){const t=i=>i.toLowerCase();for(const[i]of e.matchAll(new RegExp("\\b\\p{Letter}[\\p{Letter}\\d]{2,}\\b","gu"))){yield t(i);const n=i.replace(/([a-z])([A-Z])/g,"$1 $2").split(/\s+/g);if(n.length>1)for(const s of n)s.length>2&&new RegExp("\\p{Letter}{3,}","gu").test(s)&&(yield t(s))}}updateDocuments(e){var t;for(const{key:i}of e)this.deleteDocument(i);for(const i of e){const n=[];for(const s of i.textChunks){const r=Pv.termFrequencies(s);for(const a of r.keys())this.chunkOccurrences.set(a,((t=this.chunkOccurrences.get(a))!==null&&t!==void 0?t:0)+1);n.push({text:s,tf:r})}this.chunkCount+=n.length,this.documents.set(i.key,{chunks:n})}return this}deleteDocument(e){const t=this.documents.get(e);if(t){this.documents.delete(e),this.chunkCount-=t.chunks.length;for(const i of t.chunks)for(const n of i.tf.keys()){const s=this.chunkOccurrences.get(n);if(typeof s=="number"){const r=s-1;r<=0?this.chunkOccurrences.delete(n):this.chunkOccurrences.set(n,r)}}}}computeSimilarityScore(e,t,i){let n=0;for(const[s,r]of Object.entries(t)){const a=e.tf.get(s);if(!a)continue;let l=i.get(s);typeof l!="number"&&(l=this.computeIdf(s),i.set(s,l));const d=a*l;n+=d*r}return n}computeEmbedding(e){const t=Pv.termFrequencies(e);return this.computeTfidf(t)}computeIdf(e){var t;const i=(t=this.chunkOccurrences.get(e))!==null&&t!==void 0?t:0;return i>0?Math.log((this.chunkCount+1)/i):0}computeTfidf(e){const t=Object.create(null);for(const[i,n]of e){const s=this.computeIdf(i);s>0&&(t[i]=n*s)}return t}}function oye(o){var e,t;const i=o.slice(0);i.sort((s,r)=>r.score-s.score);const n=(t=(e=i[0])===null||e===void 0?void 0:e.score)!==null&&t!==void 0?t:0;if(n>0)for(const s of i)s.score/=n;return i}var am;(function(o){o[o.NO_ACTION=0]="NO_ACTION",o[o.CLOSE_PICKER=1]="CLOSE_PICKER",o[o.REFRESH_PICKER=2]="REFRESH_PICKER",o[o.REMOVE_ITEM=3]="REMOVE_ITEM"})(am||(am={}));function fI(o){const e=o;return Array.isArray(e.items)}function B7(o){const e=o;return!!e.picks&&e.additionalPicks instanceof Promise}class rye extends W{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,i){var n;const s=new G;e.canAcceptInBackground=!!(!((n=this.options)===null||n===void 0)&&n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let r;const a=s.add(new ln),l=async()=>{var c;const h=a.value=new G;r==null||r.dispose(!0),e.busy=!1,r=new ci(t);const u=r.token;let g=e.value.substring(this.prefix.length);!((c=this.options)===null||c===void 0)&&c.shouldSkipTrimPickFilter||(g=g.trim());const f=this._getPicks(g,h,u,i),p=(v,b)=>{var C;let w,S;if(fI(v)?(w=v.items,S=v.active):w=v,w.length===0){if(b)return!1;(g.length>0||e.hideInput)&&(!((C=this.options)===null||C===void 0)&&C.noResultsPick)&&(Bv(this.options.noResultsPick)?w=[this.options.noResultsPick(g)]:w=[this.options.noResultsPick])}return e.items=w,S&&(e.activeItems=[S]),!0},_=async v=>{let b=!1,C=!1;await Promise.all([(async()=>{typeof v.mergeDelay=="number"&&(await Xd(v.mergeDelay),u.isCancellationRequested)||C||(b=p(v.picks,!0))})(),(async()=>{e.busy=!0;try{const w=await v.additionalPicks;if(u.isCancellationRequested)return;let S,L;fI(v.picks)?(S=v.picks.items,L=v.picks.active):S=v.picks;let D,I;if(fI(w)?(D=w.items,I=w.active):D=w,D.length>0||!b){let T;if(!L&&!I){const V=e.activeItems[0];V&&S.indexOf(V)!==-1&&(T=V)}p({items:[...S,...D],active:L||I||T})}}finally{u.isCancellationRequested||(e.busy=!1),C=!0}})()])};if(f!==null)if(B7(f))await _(f);else if(!(f instanceof Promise))p(f);else{e.busy=!0;try{const v=await f;if(u.isCancellationRequested)return;B7(v)?await _(v):p(v)}finally{u.isCancellationRequested||(e.busy=!1)}}};s.add(e.onDidChangeValue(()=>l())),l(),s.add(e.onDidAccept(c=>{var h;if(i!=null&&i.handleAccept){c.inBackground||e.hide(),(h=i.handleAccept)===null||h===void 0||h.call(i,e.activeItems[0]);return}const[u]=e.selectedItems;typeof(u==null?void 0:u.accept)=="function"&&(c.inBackground||e.hide(),u.accept(e.keyMods,c))}));const d=async(c,h)=>{var u,g;if(typeof h.trigger!="function")return;const f=(g=(u=h.buttons)===null||u===void 0?void 0:u.indexOf(c))!==null&&g!==void 0?g:-1;if(f>=0){const p=h.trigger(f,e.keyMods),_=typeof p=="number"?p:await p;if(t.isCancellationRequested)return;switch(_){case am.NO_ACTION:break;case am.CLOSE_PICKER:e.hide();break;case am.REFRESH_PICKER:l();break;case am.REMOVE_ITEM:{const v=e.items.indexOf(h);if(v!==-1){const b=e.items.slice(),C=b.splice(v,1),w=e.activeItems.filter(L=>L!==C[0]),S=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=b,w&&(e.activeItems=w),e.keepScrollPosition=S}break}}}};return s.add(e.onDidTriggerItemButton(({button:c,item:h})=>d(c,h))),s.add(e.onDidTriggerSeparatorButton(({button:c,separator:h})=>d(c,h))),s}}var w$=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Wc=function(o,e){return function(t,i){e(t,i,o)}},Du,zi;let zg=Du=class extends rye{constructor(e,t,i,n,s,r){super(Du.PREFIX,e),this.instantiationService=t,this.keybindingService=i,this.commandService=n,this.telemetryService=s,this.dialogService=r,this.commandsHistory=this._register(this.instantiationService.createInstance(Uh)),this.options=e}async _getPicks(e,t,i,n){var s,r,a,l;const d=await this.getCommandPicks(i);if(i.isCancellationRequested)return[];const c=bh(()=>{const v=new Pv;v.updateDocuments(d.map(C=>({key:C.commandId,textChunks:[this.getTfIdfChunk(C)]})));const b=v.calculateScores(e,i);return oye(b).filter(C=>C.score>Du.TFIDF_THRESHOLD).slice(0,Du.TFIDF_MAX_RESULTS)}),h=[];for(const v of d){const b=(s=Du.WORD_FILTER(e,v.label))!==null&&s!==void 0?s:void 0,C=v.commandAlias&&(r=Du.WORD_FILTER(e,v.commandAlias))!==null&&r!==void 0?r:void 0;if(b||C)v.highlights={label:b,detail:this.options.showAlias?C:void 0},h.push(v);else if(e===v.commandId)h.push(v);else if(e.length>=3){const w=c();if(i.isCancellationRequested)return[];const S=w.find(L=>L.key===v.commandId);S&&(v.tfIdfScore=S.score,h.push(v))}}const u=new Map;for(const v of h){const b=u.get(v.label);b?(v.description=v.commandId,b.description=b.commandId):u.set(v.label,v)}h.sort((v,b)=>{if(v.tfIdfScore&&b.tfIdfScore)return v.tfIdfScore===b.tfIdfScore?v.label.localeCompare(b.label):b.tfIdfScore-v.tfIdfScore;if(v.tfIdfScore)return 1;if(b.tfIdfScore)return-1;const C=this.commandsHistory.peek(v.commandId),w=this.commandsHistory.peek(b.commandId);if(C&&w)return C>w?-1:1;if(C)return-1;if(w)return 1;if(this.options.suggestedCommandIds){const S=this.options.suggestedCommandIds.has(v.commandId),L=this.options.suggestedCommandIds.has(b.commandId);if(S&&L)return 0;if(S)return-1;if(L)return 1}return v.label.localeCompare(b.label)});const g=[];let f=!1,p=!0,_=!!this.options.suggestedCommandIds;for(let v=0;v{var v;const b=await this.getAdditionalCommandPicks(d,h,e,i);if(i.isCancellationRequested)return[];const C=b.map(w=>this.toCommandPick(w,n));return p&&((v=C[0])===null||v===void 0?void 0:v.type)!=="separator"&&C.unshift({type:"separator",label:m("suggested","similar commands")}),C})()}:g}toCommandPick(e,t){if(e.type==="separator")return e;const i=this.keybindingService.lookupKeybinding(e.commandId),n=i?m("commandPickAriaLabelWithKeybinding","{0}, {1}",e.label,i.getAriaLabel()):e.label;return{...e,ariaLabel:n,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:i,accept:async()=>{var s,r;this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.commandId,from:(s=t==null?void 0:t.from)!==null&&s!==void 0?s:"quick open"});try{!((r=e.args)===null||r===void 0)&&r.length?await this.commandService.executeCommand(e.commandId,...e.args):await this.commandService.executeCommand(e.commandId)}catch(a){Ur(a)||this.dialogService.error(m("canNotRun","Command '{0}' resulted in an error",e.label),my(a))}}}}getTfIdfChunk({label:e,commandAlias:t,commandDescription:i}){let n=e;return t&&t!==e&&(n+=` - ${t}`),i&&i.value!==e&&(n+=` - ${i.value===i.original?i.value:`${i.value} (${i.original})`}`),n}};zg.PREFIX=">";zg.TFIDF_THRESHOLD=.5;zg.TFIDF_MAX_RESULTS=5;zg.WORD_FILTER=L2(bb,Loe,p6);zg=Du=w$([Wc(1,Le),Wc(2,St),Wc(3,Qt),Wc(4,Bn),Wc(5,z0)],zg);let Uh=zi=class extends W{constructor(e,t,i){super(),this.storageService=e,this.configurationService=t,this.logService=i,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>this.updateConfiguration(e))),this._register(this.storageService.onWillSaveState(e=>{e.reason===Eb.SHUTDOWN&&this.saveState()}))}updateConfiguration(e){e&&!e.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=zi.getConfiguredCommandHistoryLength(this.configurationService),zi.cache&&zi.cache.limit!==this.configuredCommandsHistoryLength&&(zi.cache.limit=this.configuredCommandsHistoryLength,zi.hasChanges=!0))}load(){const e=this.storageService.get(zi.PREF_KEY_CACHE,0);let t;if(e)try{t=JSON.parse(e)}catch(n){this.logService.error(`[CommandsHistory] invalid data: ${n}`)}const i=zi.cache=new ql(this.configuredCommandsHistoryLength,1);if(t){let n;t.usesLRU?n=t.entries:n=t.entries.sort((s,r)=>s.value-r.value),n.forEach(s=>i.set(s.key,s.value))}zi.counter=this.storageService.getNumber(zi.PREF_KEY_COUNTER,0,zi.counter)}push(e){zi.cache&&(zi.cache.set(e,zi.counter++),zi.hasChanges=!0)}peek(e){var t;return(t=zi.cache)===null||t===void 0?void 0:t.peek(e)}saveState(){if(!zi.cache||!zi.hasChanges)return;const e={usesLRU:!0,entries:[]};zi.cache.forEach((t,i)=>e.entries.push({key:i,value:t})),this.storageService.store(zi.PREF_KEY_CACHE,JSON.stringify(e),0,0),this.storageService.store(zi.PREF_KEY_COUNTER,zi.counter,0,0),zi.hasChanges=!1}static getConfiguredCommandHistoryLength(e){var t,i;const s=(i=(t=e.getValue().workbench)===null||t===void 0?void 0:t.commandPalette)===null||i===void 0?void 0:i.history;return typeof s=="number"?s:zi.DEFAULT_COMMANDS_HISTORY_LENGTH}};Uh.DEFAULT_COMMANDS_HISTORY_LENGTH=50;Uh.PREF_KEY_CACHE="commandPalette.mru.cache";Uh.PREF_KEY_COUNTER="commandPalette.mru.counter";Uh.counter=1;Uh.hasChanges=!1;Uh=zi=w$([Wc(0,Kr),Wc(1,Je),Wc(2,qn)],Uh);class aye extends zg{constructor(e,t,i,n,s,r){super(e,t,i,n,s,r)}getCodeEditorCommandPicks(){var e;const t=this.activeTextEditorControl;if(!t)return[];const i=[];for(const n of t.getSupportedActions()){let s;!((e=n.metadata)===null||e===void 0)&&e.description&&(hle(n.metadata.description)?s=n.metadata.description:s={original:n.metadata.description,value:n.metadata.description}),i.push({commandId:n.id,commandAlias:n.alias,commandDescription:s,label:N2(n.label)||n.id})}return i}}var lye=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},kf=function(o,e){return function(t,i){e(t,i,o)}};let b0=class extends aye{get activeTextEditorControl(){var e;return(e=this.codeEditorService.getFocusedCodeEditor())!==null&&e!==void 0?e:void 0}constructor(e,t,i,n,s,r){super({showAlias:!1},e,i,n,s,r),this.codeEditorService=t}async getCommandPicks(){return this.getCodeEditorCommandPicks()}hasAdditionalCommandPicks(){return!1}async getAdditionalCommandPicks(){return[]}};b0=lye([kf(0,Le),kf(1,_t),kf(2,St),kf(3,Qt),kf(4,Bn),kf(5,z0)],b0);class pC extends ce{constructor(){super({id:pC.ID,label:NS.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:E.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(_r).quickAccess.show(b0.PREFIX)}}pC.ID="editor.action.quickCommand";J(pC);hi.as(Xg.Quickaccess).registerQuickAccessProvider({ctor:b0,prefix:b0.PREFIX,helpEntries:[{description:NS.quickCommandHelp,commandId:pC.ID}]});var dye=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},If=function(o,e){return function(t,i){e(t,i,o)}};let zR=class extends Fh{constructor(e,t,i,n,s,r,a){super(!0,e,t,i,n,s,r,a)}};zR=dye([If(1,Me),If(2,_t),If(3,Ri),If(4,Le),If(5,Kr),If(6,Je)],zR);vt(Fh.ID,zR,4);class cye extends ce{constructor(){super({id:"editor.action.toggleHighContrast",label:jN.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const i=e.get(jo),n=i.getColorTheme();Sa(n.type)?(i.setTheme(this._originalThemeName||(Gm(n.type)?Nm:Sd)),this._originalThemeName=null):(i.setTheme(Gm(n.type)?ig:ng),this._originalThemeName=n.themeName)}}J(cye);const hye=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:cV,Emitter:hV,KeyCode:uV,KeyMod:gV,MarkerSeverity:vV,MarkerTag:bV,Position:fV,Range:mV,Selection:pV,SelectionDirection:_V,Token:wV,Uri:CV,editor:SV,languages:yV},Symbol.toStringTag,{value:"Module"}));function uye(o){return new Worker(""+new URL("../workers/editor.worker-h8SPNzyA.js",import.meta.url).href,{name:o==null?void 0:o.name})}function gye(o){return new Worker(""+new URL("../workers/css.worker-7XQMzCbE.js",import.meta.url).href,{name:o==null?void 0:o.name})}function fye(o){return new Worker(""+new URL("../workers/html.worker-_WqjtmWa.js",import.meta.url).href,{name:o==null?void 0:o.name})}function mye(o){return new Worker(""+new URL("../workers/json.worker-S0WRJMsA.js",import.meta.url).href,{name:o==null?void 0:o.name})}function pye(o){return new Worker(""+new URL("../workers/ts.worker-rkwwokxe.js",import.meta.url).href,{name:o==null?void 0:o.name})}self.MonacoEnvironment={getWorker:function(o,e){switch(e){case"json":return new mye;case"css":case"scss":case"less":return new gye;case"html":case"handlebars":case"razor":return new fye;case"typescript":case"javascript":return new pye;default:return new uye}}};const pIe=Object.freeze(Object.defineProperty({__proto__:null,default:hye},Symbol.toStringTag,{value:"Module"}));export{pIe as i,tC as m,VV as t}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["./javascript.nSubN90U.js","./typescript.FaBf3sEe.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} diff --git a/ui/assets/local/_app/immutable/chunks/index.cVovwi_s.js b/ui/assets/local/_app/immutable/chunks/index.Z3Qqxacm.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/index.cVovwi_s.js rename to ui/assets/local/_app/immutable/chunks/index.Z3Qqxacm.js index cf2c5399e3..58de01ac04 100644 --- a/ui/assets/local/_app/immutable/chunks/index.cVovwi_s.js +++ b/ui/assets/local/_app/immutable/chunks/index.Z3Qqxacm.js @@ -1,4 +1,4 @@ -var J=Object.defineProperty;var K=(t,e,n)=>e in t?J(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var I=(t,e,n)=>(K(t,typeof e!="symbol"?e+"":e,n),n);import{v as w,aj as T,f as Q,ak as W,H as E,a1 as O,Z as j,al as X,V as N,am as H,k as Y,Q as tt,an as et,ao as nt,ap as it,P as L,aq as st,ar as rt,as as at,at as ot,au as ft}from"./scheduler.1T9hOnFr.js";const U=typeof window<"u";let V=U?()=>window.performance.now():()=>Date.now(),q=U?t=>requestAnimationFrame(t):w;const k=new Set;function Z(t){k.forEach(e=>{e.c(t)||(k.delete(e),e.f())}),k.size!==0&&q(Z)}function B(t){let e;return k.size===0&&q(Z),{promise:new Promise(n=>{k.add(e={c:t,f:n})}),abort(){k.delete(e)}}}const M=new Map;let R=0;function ut(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function ct(t,e){const n={stylesheet:W(e),rules:{}};return M.set(t,n),n}function z(t,e,n,s,u,a,c,i=0){const l=16.666/s;let r=`{ +var J=Object.defineProperty;var K=(t,e,n)=>e in t?J(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var I=(t,e,n)=>(K(t,typeof e!="symbol"?e+"":e,n),n);import{v as w,aj as T,f as Q,ak as W,H as E,a1 as O,Z as j,al as X,V as N,am as H,k as Y,Q as tt,an as et,ao as nt,ap as it,P as L,aq as st,ar as rt,as as at,at as ot,au as ft}from"./scheduler.pPC3woXQ.js";const U=typeof window<"u";let V=U?()=>window.performance.now():()=>Date.now(),q=U?t=>requestAnimationFrame(t):w;const k=new Set;function Z(t){k.forEach(e=>{e.c(t)||(k.delete(e),e.f())}),k.size!==0&&q(Z)}function B(t){let e;return k.size===0&&q(Z),{promise:new Promise(n=>{k.add(e={c:t,f:n})}),abort(){k.delete(e)}}}const M=new Map;let R=0;function ut(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function ct(t,e){const n={stylesheet:W(e),rules:{}};return M.set(t,n),n}function z(t,e,n,s,u,a,c,i=0){const l=16.666/s;let r=`{ `;for(let $=0;$<=1;$+=l){const g=e+(n-e)*a($);r+=$*100+`%{${c(g,1-g)}} `}const d=r+`100% {${c(n,1-n)}} }`,f=`__svelte_${ut(d)}_${i}`,m=T(t),{stylesheet:h,rules:o}=M.get(m)||ct(m,t);o[f]||(o[f]=!0,h.insertRule(`@keyframes ${f} ${d}`,h.cssRules.length));const _=t.style.animation||"";return t.style.animation=`${_?`${_}, `:""}${f} ${s}ms linear ${u}ms 1 both`,R+=1,f}function A(t,e){const n=(t.style.animation||"").split(", "),s=n.filter(e?a=>a.indexOf(e)<0:a=>a.indexOf("__svelte")===-1),u=n.length-s.length;u&&(t.style.animation=s.join(", "),R-=u,R||lt())}function lt(){q(()=>{R||(M.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&Q(e)}),M.clear())})}let S;function D(){return S||(S=Promise.resolve(),S.then(()=>{S=null})),S}function v(t,e,n){t.dispatchEvent(X(`${e?"intro":"outro"}${n}`))}const C=new Set;let p;function yt(){p={r:0,c:[],p}}function xt(){p.r||E(p.c),p=p.p}function dt(t,e){t&&t.i&&(C.delete(t),t.i(e))}function vt(t,e,n,s){if(t&&t.o){if(C.has(t))return;C.add(t),p.c.push(()=>{C.delete(t),s&&(n&&t.d(1),s())}),t.o(e)}else s&&s()}const F={duration:0};function wt(t,e,n){const s={direction:"in"};let u=e(t,n,s),a=!1,c,i,l=0;function r(){c&&A(t,c)}function d(){const{delay:m=0,duration:h=300,easing:o=N,tick:_=w,css:$}=u||F;$&&(c=z(t,0,1,h,m,o,$,l++)),_(0,1);const g=V()+m,y=g+h;i&&i.abort(),a=!0,j(()=>v(t,!0,"start")),i=B(x=>{if(a){if(x>=y)return _(1,0),v(t,!0,"end"),r(),a=!1;if(x>=g){const b=o((x-g)/h);_(b,1-b)}}return a})}let f=!1;return{start(){f||(f=!0,A(t),O(u)?(u=u(s),D().then(d)):d())},invalidate(){f=!1},end(){a&&(r(),a=!1)}}}function bt(t,e,n){const s={direction:"out"};let u=e(t,n,s),a=!0,c;const i=p;i.r+=1;let l;function r(){const{delay:d=0,duration:f=300,easing:m=N,tick:h=w,css:o}=u||F;o&&(c=z(t,1,0,f,d,m,o));const _=V()+d,$=_+f;j(()=>v(t,!1,"start")),"inert"in t&&(l=t.inert,t.inert=!0),B(g=>{if(a){if(g>=$)return h(0,1),v(t,!1,"end"),--i.r||E(i.c),!1;if(g>=_){const y=m((g-_)/f);h(1-y,y)}}return a})}return O(u)?D().then(()=>{u=u(s),r()}):r(),{end(d){d&&"inert"in t&&(t.inert=l),d&&u.tick&&u.tick(1,0),a&&(c&&A(t,c),a=!1)}}}function kt(t,e,n,s){let a=e(t,n,{direction:"both"}),c=s?0:1,i=null,l=null,r=null,d;function f(){r&&A(t,r)}function m(o,_){const $=o.b-c;return _*=Math.abs($),{a:c,b:o.b,d:$,duration:_,start:o.start,end:o.start+_,group:o.group}}function h(o){const{delay:_=0,duration:$=300,easing:g=N,tick:y=w,css:x}=a||F,b={start:V()+_,b:o};o||(b.group=p,p.r+=1),"inert"in t&&(o?d!==void 0&&(t.inert=d):(d=t.inert,t.inert=!0)),i||l?l=b:(x&&(f(),r=z(t,c,o,$,_,g,x)),o&&y(0,1),i=m(b,$),j(()=>v(t,o,"start")),B(P=>{if(l&&P>l.start&&(i=m(l,$),l=null,v(t,i.b,"start"),x&&(f(),r=z(t,c,i.b,i.duration,0,g,a.css))),i){if(P>=i.end)y(c=i.b,1-c),v(t,i.b,"end"),l||(i.b?f():--i.group.r||E(i.group.c)),i=null;else if(P>=i.start){const G=P-i.start;c=i.a+i.d*g(G/i.duration),y(c,1-c)}}return!!(i||l)}))}return{run(o){O(a)?D().then(()=>{a=a({direction:o?"in":"out"}),h(o)}):h(o)},end(){f(),i=l=null}}}function Et(t,e,n){const s=t.$$.props[e];s!==void 0&&(t.$$.bound[s]=n,n(t.$$.ctx[s]))}function St(t){t&&t.c()}function jt(t,e){t&&t.l(e)}function _t(t,e,n){const{fragment:s,after_update:u}=t.$$;s&&s.m(e,n),j(()=>{const a=t.$$.on_mount.map(st).filter(O);t.$$.on_destroy?t.$$.on_destroy.push(...a):E(a),t.$$.on_mount=[]}),u.forEach(j)}function $t(t,e){const n=t.$$;n.fragment!==null&&(nt(n.after_update),E(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ht(t,e){t.$$.dirty[0]===-1&&(rt.push(t),at(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const o=h.length?h[0]:m;return r.ctx&&u(r.ctx[f],r.ctx[f]=o)&&(!r.skip_bound&&r.bound[f]&&r.bound[f](o),d&&ht(t,f)),m}):[],r.update(),d=!0,E(r.before_update),r.fragment=s?s(r.ctx):!1,e.target){if(e.hydrate){ot();const f=Y(e.target);r.fragment&&r.fragment.l(f),f.forEach(Q)}else r.fragment&&r.fragment.c();e.intro&&dt(t.$$.fragment),_t(t,e.target,e.anchor),ft(),tt()}L(l)}class Pt{constructor(){I(this,"$$");I(this,"$$set")}$destroy(){$t(this,1),this.$destroy=w}$on(e,n){if(!O(n))return w;const s=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return s.push(n),()=>{const u=s.indexOf(n);u!==-1&&s.splice(u,1)}}$set(e){this.$$set&&!et(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const mt="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(mt);export{Pt as S,jt as a,vt as b,St as c,$t as d,xt as e,Et as f,yt as g,wt as h,Ot as i,bt as j,kt as k,_t as m,dt as t}; diff --git a/ui/assets/local/_app/immutable/chunks/index.45yCe-rq.js b/ui/assets/local/_app/immutable/chunks/index.fCt83tdf.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/index.45yCe-rq.js rename to ui/assets/local/_app/immutable/chunks/index.fCt83tdf.js index e41b64eac3..6ac921b1c7 100644 --- a/ui/assets/local/_app/immutable/chunks/index.45yCe-rq.js +++ b/ui/assets/local/_app/immutable/chunks/index.fCt83tdf.js @@ -1 +1 @@ -import{h as y,i as W}from"./has.Hk4nWl3x.js";import{j as p,k as x,l as F,m as N,n as J,o as X,p as v,q as Y,c as L,e as R,r as Z,s as tt,t as G,u as D,v as it,d as j,w as et,f as K,x as rt,y as nt,z as st,A as ot,b as at,B as dt,C as ut,D as ct,E as lt,F as ft,G as Et,H as pt,I as P,J as q,K as B,i as k,L as w,M as I,N as S,O as b,P as A,Q as m,R as kt}from"./is-event-type.Ut7dN4k9.js";import{b as mt}from"./format-time.PmxHXK_V.js";import{c as gt}from"./format-camel-case.z6e2GZpK.js";import{e as yt,i as wt}from"./decode-payload.J6AgBD-I.js";const At=(t,i)=>{let e;return p(t)&&(e=i.find(r=>r.activityId===t.attributes.activityId)),e},Mt=(t,i)=>p(t)&&i?i.activityId===t.attributes.activityId:!1,ht=(t,i)=>{let e;return x(t)&&(e=i.find(r=>r.scheduledEventId===t.id)),e},Q=t=>F(t)||N(t)||J(t)||X(t)||v(t)||Y(t)||L(t)||R(t)||Z(t)||tt(t),$t=t=>h(t)?t.isFailureOrTimedOut:Q(t),U=t=>G(t)||D(t)||it(t)||j(t),zt=t=>h(t)?t.isCanceled:U(t),M=t=>et(t)||K(t),Ht=t=>h(t)?t.isTerminated:M(t),O=t=>rt(t)?String(t.activityTaskStartedEventAttributes.scheduledEventId):G(t)?String(t.activityTaskCanceledEventAttributes.scheduledEventId):nt(t)?String(t.activityTaskCancelRequestedEventAttributes.scheduledEventId):N(t)?String(t.activityTaskFailedEventAttributes.scheduledEventId):F(t)?String(t.activityTaskTimedOutEventAttributes.scheduledEventId):st(t)?String(t.activityTaskCompletedEventAttributes.scheduledEventId):ot(t)?String(t.childWorkflowExecutionStartedEventAttributes.initiatedEventId):K(t)?String(t.childWorkflowExecutionTerminatedEventAttributes.initiatedEventId):at(t)?String(t.childWorkflowExecutionCompletedEventAttributes.initiatedEventId):j(t)?String(t.childWorkflowExecutionCanceledEventAttributes.initiatedEventId):L(t)?String(t.childWorkflowExecutionFailedEventAttributes.initiatedEventId):R(t)?String(t.childWorkflowExecutionTimedOutEventAttributes.initiatedEventId):dt(t)?String(t.timerFiredEventAttributes.startedEventId):D(t)?String(t.timerCanceledEventAttributes.startedEventId):ut(t)?String(t.workflowExecutionUpdateCompletedEventAttributes.acceptedEventId):ct(t)?String(t.externalWorkflowExecutionSignaledEventAttributes.initiatedEventId):lt(t)?String(t.workflowTaskStartedEventAttributes.scheduledEventId):ft(t)?String(t.workflowTaskCompletedEventAttributes.scheduledEventId):Et(t)?String(t.workflowTaskFailedEventAttributes.scheduledEventId):v(t)?String(t.workflowTaskTimedOutEventAttributes.scheduledEventId):pt(t)?String(t.nexusOperationStartedEventAttributes.scheduledEventId):P(t)?String(t.nexusOperationCompletedEventAttributes.scheduledEventId):q(t)?String(t.nexusOperationFailedEventAttributes.scheduledEventId):B(t)?String(t.nexusOperationCanceledEventAttributes.scheduledEventId):t.id,Tt={key:"",value:""},xt=new Set(["activityId","attempt","binaryChecksum","identity","parentInitiatedEventId","requestId","scheduledEventId","startedEventId","lastHeartbeatTime","scheduledTime","expirationTime"]),Vt=t=>xt.has(t),$=new Set(["suggestContinueAsNew","historySizeBytes"]),z=(t,i)=>!(i===null||i===void 0||i===""||i==="0s"||t==="type"||(!i||i==="0")&&$.has(t)),It=["attempt","maximumAttempts","heartbeatDetails","lastHeartbeatTime","lastFailure","lastStartedTime","scheduledTime","expirationTime","lastWorkerIdentity"],_t=t=>It.includes(t),Jt=(t,i)=>!(i===null||i===void 0||i===""||i==="0s"||t==="type"||t==="workflowId"||t==="initiatedEventId"||t==="startedEventId"||t==="scheduledEventId"||t==="activityId"||t==="namespace"||t==="namespaceId"||t==="workflowTaskCompletedEventId"||t==="taskQueueKind"||(!i||i==="0")&&$.has(t)),Xt=t=>!(t===null||t===void 0||t===""||Array.isArray(t)&&!t.length),Yt=t=>typeof t=="string"?t:[t==null?void 0:t.payloads,t==null?void 0:t.indexedFields,t==null?void 0:t.points,t].find(i=>i!==void 0),St=t=>{if(W(t)){if(y(t,"stackTrace")&&t.stackTrace)return t.stackTrace;for(const i in t)if(W(t[i]))return St(t[i])}},bt=["baseRunId","continuedExecutionRunId","firstExecutionRunId","newExecutionRunId","newRunId","originalExecutionRunId"],Zt=t=>{for(const i of bt)if(t===i)return!0;return!1},Ot=["taskQueueName"],ti=t=>{for(const i of Ot)if(t===i)return!0;return!1},Ct=["workflowExecutionWorkflowId","workflowExecutionRunId"],ii=(t,i)=>{const e=!!(i!=null&&i.workflowExecutionWorkflowId&&(i!=null&&i.workflowExecutionRunId));for(const r of Ct)if(t===r&&e)return!0;return!1},g=(t,i)=>{if(typeof i=="object"){if(wt(i))return{key:t,value:i};const[e]=Object.keys(i);return e?e==="payloads"?{key:t,value:i}:{key:t+gt(e),value:i[e]}:{key:t,value:{}}}else return{key:t,value:i.toString()}},Wt=["failure","input","activityType","parentInitiatedEventId","workflowExecution","workflowType","taskQueue"],Ft=({attributes:t})=>{for(const[i,e]of Object.entries(t))if(z(i,e))return g(i,e)},Nt=t=>{if(y(t,"ActivityType"))return t.ActivityType;if(y(t,"activity_type"))return t.activity_type},vt=t=>{var i,e,r;return!!((r=(e=(i=t.markerRecordedEventAttributes)==null?void 0:i.details)==null?void 0:e.type)!=null&&r.payloads)},C=t=>{var e,r,n,u,s,E;const i=Ft(t);if(k(t)){const o=(((n=(r=(e=t.markerRecordedEventAttributes)==null?void 0:e.details)==null?void 0:r.data)==null?void 0:n.payloads)||((E=(s=(u=t.markerRecordedEventAttributes)==null?void 0:u.details)==null?void 0:s.type)==null?void 0:E.payloads)||[]).map(c=>yt(c)),a=o==null?void 0:o[0];if(vt(t)&&a)return g("ActivityType",a);const l=Nt(a);if(l)return g("ActivityType",l)}for(const[d,o]of Object.entries(t.attributes))for(const a of Wt)if(d===a&&z(d,o))return g(d,o);return i},Lt=({lastEvent:t})=>C(t),ei=t=>t?h(t)?Lt(t):C(t):Tt,H=t=>{var i,e,r,n,u,s,E,d,o,a,l,c;if(!t)return"";if(p(t))return(e=(i=t.activityTaskScheduledEventAttributes)==null?void 0:i.activityType)==null?void 0:e.name;if(w(t))return`${(r=t.timerStartedEventAttributes)==null?void 0:r.timerId} (${mt((n=t.timerStartedEventAttributes)==null?void 0:n.startToFireTimeout)})`;if(I(t))return(u=t.signalExternalWorkflowExecutionInitiatedEventAttributes)==null?void 0:u.signalName;if(S(t))return(s=t.workflowExecutionSignaledEventAttributes)==null?void 0:s.signalName;if(b(t))return k(t)?"Local Activity":(E=t.markerRecordedEventAttributes)==null?void 0:E.markerName;if(A(t))return(o=(d=t.startChildWorkflowExecutionInitiatedEventAttributes)==null?void 0:d.workflowType)==null?void 0:o.name;if(m(t))return(c=(l=(a=t.workflowExecutionUpdateAcceptedEventAttributes)==null?void 0:a.acceptedRequest)==null?void 0:l.input)==null?void 0:c.name;if(x(t))return`${t.nexusOperationScheduledEventAttributes.service}.${t.nexusOperationScheduledEventAttributes.operation}`},Rt=t=>{if(!t||p(t))return"";if(w(t))return"Timer";if(I(t))return"Signal";if(S(t))return"Signal received";if(b(t))return"Marker";if(A(t))return"Child Workflow";if(m(t))return""},Gt=t=>{var i,e;return t?k(t)?((e=(i=C(t))==null?void 0:i.value)==null?void 0:e.toString())??"Local Activity":H(t):""},T=({events:t})=>{let i=0,e;for(const r of t.values()){const n=Number(r.id);n>=i&&(i=n,e=r)}return e},Dt=(t,i)=>i!=null&&i.length&&m(t)?i.find(e=>{var r;return e.id===((r=t.workflowExecutionUpdateAcceptedEventAttributes)==null?void 0:r.acceptedRequestSequencingEventId.toString())}):t,f=(t,i)=>{const e=O(t),r=H(t),n=Rt(t),u=Gt(t),{timestamp:s,category:E,classification:d}=t,o=Dt(t,i),a=new Map,l=new Set;return o&&m(t)?(a.set(o.id,o),a.set(t.id,t),l.add(o.id),l.add(t.id)):(a.set(t.id,t),l.add(t.id)),{id:e,name:r,label:n,displayName:u,events:a,eventIds:l,initialEvent:o,timestamp:s,category:k(t)?"local-activity":E,classification:d,level:void 0,pendingActivity:void 0,pendingNexusOperation:void 0,get eventTime(){var c;return(c=this.lastEvent)==null?void 0:c.eventTime},get attributes(){var c;return(c=T(this))==null?void 0:c.attributes},get eventList(){return Array.from(this.events,([c,_])=>_)},get lastEvent(){return T(this)},get finalClassification(){return T(this).classification},get isPending(){return this.pendingActivity||this.pendingNexusOperation||w(this.initialEvent)&&this.eventList.length===1||A(this.initialEvent)&&this.eventList.length===2},get isFailureOrTimedOut(){return!!this.eventList.find(Q)},get isCanceled(){return!!this.eventList.find(U)},get isTerminated(){return!!this.eventList.find(M)}}},jt=(t,i)=>{if(p(t)||A(t)||w(t)||I(t)||S(t))return f(t);if(b(t))return k(t),f(t);if(m(t)||x(t))return f(t,i)},Kt=(t,i)=>{if(kt(t))return f(t,i)},V=(t,i,e=void 0,r=void 0)=>{if(!t)return;t.events.set(i.id,i),t.eventIds.add(i.id),t.timestamp=i.timestamp,e&&(t.pendingActivity=e),t.pendingActivity&&t.eventList.length===3&&delete t.pendingActivity,r&&(t.pendingNexusOperation=r);const n=P(i)||q(i)||B(i);t.pendingNexusOperation&&n&&delete t.pendingNexusOperation},ri=(t,i="ascending",e=[],r=[])=>{const n={},u=s=>{const E=O(s),d=jt(s,t),o=At(s,e),a=ht(s,r);d?(n[d.id]=d,o&&(d.pendingActivity=o),a&&(d.pendingNexusOperation=a)):V(n[E],s,o,a)};if(i==="ascending")for(const s of t)u(s);else for(let s=t.length-1;s>=0;s--)u(t[s]);return i==="descending"?Object.values(n).reverse():Object.values(n)},h=t=>t==null?!1:y(t,"events"),ni=(t,i="ascending")=>{const e={},r=n=>{const u=O(n),s=Kt(n,t);s?e[s.id]=s:V(e[u],n)};if(i==="ascending")for(const n of t)r(n);else for(let n=t.length-1;n>=0;n--)r(t[n]);return i==="descending"?Object.values(e).reverse():Object.values(e)};export{Xt as a,Jt as b,_t as c,Yt as d,St as e,Zt as f,ri as g,ii as h,ti as i,Vt as j,$t as k,zt as l,Ht as m,h as n,ei as o,It as p,Mt as q,ni as r,z as s,C as t}; +import{h as y,i as W}from"./has.Hk4nWl3x.js";import{j as p,k as x,l as F,m as N,n as J,o as X,p as v,q as Y,c as L,e as R,r as Z,s as tt,t as G,u as D,v as it,d as j,w as et,f as K,x as rt,y as nt,z as st,A as ot,b as at,B as dt,C as ut,D as ct,E as lt,F as ft,G as Et,H as pt,I as P,J as q,K as B,i as k,L as w,M as I,N as S,O as b,P as A,Q as m,R as kt}from"./is-event-type.Ut7dN4k9.js";import{b as mt}from"./format-time.PmxHXK_V.js";import{c as gt}from"./format-camel-case.z6e2GZpK.js";import{e as yt,i as wt}from"./decode-payload.gln8j6uZ.js";const At=(t,i)=>{let e;return p(t)&&(e=i.find(r=>r.activityId===t.attributes.activityId)),e},Mt=(t,i)=>p(t)&&i?i.activityId===t.attributes.activityId:!1,ht=(t,i)=>{let e;return x(t)&&(e=i.find(r=>r.scheduledEventId===t.id)),e},Q=t=>F(t)||N(t)||J(t)||X(t)||v(t)||Y(t)||L(t)||R(t)||Z(t)||tt(t),$t=t=>h(t)?t.isFailureOrTimedOut:Q(t),U=t=>G(t)||D(t)||it(t)||j(t),zt=t=>h(t)?t.isCanceled:U(t),M=t=>et(t)||K(t),Ht=t=>h(t)?t.isTerminated:M(t),O=t=>rt(t)?String(t.activityTaskStartedEventAttributes.scheduledEventId):G(t)?String(t.activityTaskCanceledEventAttributes.scheduledEventId):nt(t)?String(t.activityTaskCancelRequestedEventAttributes.scheduledEventId):N(t)?String(t.activityTaskFailedEventAttributes.scheduledEventId):F(t)?String(t.activityTaskTimedOutEventAttributes.scheduledEventId):st(t)?String(t.activityTaskCompletedEventAttributes.scheduledEventId):ot(t)?String(t.childWorkflowExecutionStartedEventAttributes.initiatedEventId):K(t)?String(t.childWorkflowExecutionTerminatedEventAttributes.initiatedEventId):at(t)?String(t.childWorkflowExecutionCompletedEventAttributes.initiatedEventId):j(t)?String(t.childWorkflowExecutionCanceledEventAttributes.initiatedEventId):L(t)?String(t.childWorkflowExecutionFailedEventAttributes.initiatedEventId):R(t)?String(t.childWorkflowExecutionTimedOutEventAttributes.initiatedEventId):dt(t)?String(t.timerFiredEventAttributes.startedEventId):D(t)?String(t.timerCanceledEventAttributes.startedEventId):ut(t)?String(t.workflowExecutionUpdateCompletedEventAttributes.acceptedEventId):ct(t)?String(t.externalWorkflowExecutionSignaledEventAttributes.initiatedEventId):lt(t)?String(t.workflowTaskStartedEventAttributes.scheduledEventId):ft(t)?String(t.workflowTaskCompletedEventAttributes.scheduledEventId):Et(t)?String(t.workflowTaskFailedEventAttributes.scheduledEventId):v(t)?String(t.workflowTaskTimedOutEventAttributes.scheduledEventId):pt(t)?String(t.nexusOperationStartedEventAttributes.scheduledEventId):P(t)?String(t.nexusOperationCompletedEventAttributes.scheduledEventId):q(t)?String(t.nexusOperationFailedEventAttributes.scheduledEventId):B(t)?String(t.nexusOperationCanceledEventAttributes.scheduledEventId):t.id,Tt={key:"",value:""},xt=new Set(["activityId","attempt","binaryChecksum","identity","parentInitiatedEventId","requestId","scheduledEventId","startedEventId","lastHeartbeatTime","scheduledTime","expirationTime"]),Vt=t=>xt.has(t),$=new Set(["suggestContinueAsNew","historySizeBytes"]),z=(t,i)=>!(i===null||i===void 0||i===""||i==="0s"||t==="type"||(!i||i==="0")&&$.has(t)),It=["attempt","maximumAttempts","heartbeatDetails","lastHeartbeatTime","lastFailure","lastStartedTime","scheduledTime","expirationTime","lastWorkerIdentity"],_t=t=>It.includes(t),Jt=(t,i)=>!(i===null||i===void 0||i===""||i==="0s"||t==="type"||t==="workflowId"||t==="initiatedEventId"||t==="startedEventId"||t==="scheduledEventId"||t==="activityId"||t==="namespace"||t==="namespaceId"||t==="workflowTaskCompletedEventId"||t==="taskQueueKind"||(!i||i==="0")&&$.has(t)),Xt=t=>!(t===null||t===void 0||t===""||Array.isArray(t)&&!t.length),Yt=t=>typeof t=="string"?t:[t==null?void 0:t.payloads,t==null?void 0:t.indexedFields,t==null?void 0:t.points,t].find(i=>i!==void 0),St=t=>{if(W(t)){if(y(t,"stackTrace")&&t.stackTrace)return t.stackTrace;for(const i in t)if(W(t[i]))return St(t[i])}},bt=["baseRunId","continuedExecutionRunId","firstExecutionRunId","newExecutionRunId","newRunId","originalExecutionRunId"],Zt=t=>{for(const i of bt)if(t===i)return!0;return!1},Ot=["taskQueueName"],ti=t=>{for(const i of Ot)if(t===i)return!0;return!1},Ct=["workflowExecutionWorkflowId","workflowExecutionRunId"],ii=(t,i)=>{const e=!!(i!=null&&i.workflowExecutionWorkflowId&&(i!=null&&i.workflowExecutionRunId));for(const r of Ct)if(t===r&&e)return!0;return!1},g=(t,i)=>{if(typeof i=="object"){if(wt(i))return{key:t,value:i};const[e]=Object.keys(i);return e?e==="payloads"?{key:t,value:i}:{key:t+gt(e),value:i[e]}:{key:t,value:{}}}else return{key:t,value:i.toString()}},Wt=["failure","input","activityType","parentInitiatedEventId","workflowExecution","workflowType","taskQueue"],Ft=({attributes:t})=>{for(const[i,e]of Object.entries(t))if(z(i,e))return g(i,e)},Nt=t=>{if(y(t,"ActivityType"))return t.ActivityType;if(y(t,"activity_type"))return t.activity_type},vt=t=>{var i,e,r;return!!((r=(e=(i=t.markerRecordedEventAttributes)==null?void 0:i.details)==null?void 0:e.type)!=null&&r.payloads)},C=t=>{var e,r,n,u,s,E;const i=Ft(t);if(k(t)){const o=(((n=(r=(e=t.markerRecordedEventAttributes)==null?void 0:e.details)==null?void 0:r.data)==null?void 0:n.payloads)||((E=(s=(u=t.markerRecordedEventAttributes)==null?void 0:u.details)==null?void 0:s.type)==null?void 0:E.payloads)||[]).map(c=>yt(c)),a=o==null?void 0:o[0];if(vt(t)&&a)return g("ActivityType",a);const l=Nt(a);if(l)return g("ActivityType",l)}for(const[d,o]of Object.entries(t.attributes))for(const a of Wt)if(d===a&&z(d,o))return g(d,o);return i},Lt=({lastEvent:t})=>C(t),ei=t=>t?h(t)?Lt(t):C(t):Tt,H=t=>{var i,e,r,n,u,s,E,d,o,a,l,c;if(!t)return"";if(p(t))return(e=(i=t.activityTaskScheduledEventAttributes)==null?void 0:i.activityType)==null?void 0:e.name;if(w(t))return`${(r=t.timerStartedEventAttributes)==null?void 0:r.timerId} (${mt((n=t.timerStartedEventAttributes)==null?void 0:n.startToFireTimeout)})`;if(I(t))return(u=t.signalExternalWorkflowExecutionInitiatedEventAttributes)==null?void 0:u.signalName;if(S(t))return(s=t.workflowExecutionSignaledEventAttributes)==null?void 0:s.signalName;if(b(t))return k(t)?"Local Activity":(E=t.markerRecordedEventAttributes)==null?void 0:E.markerName;if(A(t))return(o=(d=t.startChildWorkflowExecutionInitiatedEventAttributes)==null?void 0:d.workflowType)==null?void 0:o.name;if(m(t))return(c=(l=(a=t.workflowExecutionUpdateAcceptedEventAttributes)==null?void 0:a.acceptedRequest)==null?void 0:l.input)==null?void 0:c.name;if(x(t))return`${t.nexusOperationScheduledEventAttributes.service}.${t.nexusOperationScheduledEventAttributes.operation}`},Rt=t=>{if(!t||p(t))return"";if(w(t))return"Timer";if(I(t))return"Signal";if(S(t))return"Signal received";if(b(t))return"Marker";if(A(t))return"Child Workflow";if(m(t))return""},Gt=t=>{var i,e;return t?k(t)?((e=(i=C(t))==null?void 0:i.value)==null?void 0:e.toString())??"Local Activity":H(t):""},T=({events:t})=>{let i=0,e;for(const r of t.values()){const n=Number(r.id);n>=i&&(i=n,e=r)}return e},Dt=(t,i)=>i!=null&&i.length&&m(t)?i.find(e=>{var r;return e.id===((r=t.workflowExecutionUpdateAcceptedEventAttributes)==null?void 0:r.acceptedRequestSequencingEventId.toString())}):t,f=(t,i)=>{const e=O(t),r=H(t),n=Rt(t),u=Gt(t),{timestamp:s,category:E,classification:d}=t,o=Dt(t,i),a=new Map,l=new Set;return o&&m(t)?(a.set(o.id,o),a.set(t.id,t),l.add(o.id),l.add(t.id)):(a.set(t.id,t),l.add(t.id)),{id:e,name:r,label:n,displayName:u,events:a,eventIds:l,initialEvent:o,timestamp:s,category:k(t)?"local-activity":E,classification:d,level:void 0,pendingActivity:void 0,pendingNexusOperation:void 0,get eventTime(){var c;return(c=this.lastEvent)==null?void 0:c.eventTime},get attributes(){var c;return(c=T(this))==null?void 0:c.attributes},get eventList(){return Array.from(this.events,([c,_])=>_)},get lastEvent(){return T(this)},get finalClassification(){return T(this).classification},get isPending(){return this.pendingActivity||this.pendingNexusOperation||w(this.initialEvent)&&this.eventList.length===1||A(this.initialEvent)&&this.eventList.length===2},get isFailureOrTimedOut(){return!!this.eventList.find(Q)},get isCanceled(){return!!this.eventList.find(U)},get isTerminated(){return!!this.eventList.find(M)}}},jt=(t,i)=>{if(p(t)||A(t)||w(t)||I(t)||S(t))return f(t);if(b(t))return k(t),f(t);if(m(t)||x(t))return f(t,i)},Kt=(t,i)=>{if(kt(t))return f(t,i)},V=(t,i,e=void 0,r=void 0)=>{if(!t)return;t.events.set(i.id,i),t.eventIds.add(i.id),t.timestamp=i.timestamp,e&&(t.pendingActivity=e),t.pendingActivity&&t.eventList.length===3&&delete t.pendingActivity,r&&(t.pendingNexusOperation=r);const n=P(i)||q(i)||B(i);t.pendingNexusOperation&&n&&delete t.pendingNexusOperation},ri=(t,i="ascending",e=[],r=[])=>{const n={},u=s=>{const E=O(s),d=jt(s,t),o=At(s,e),a=ht(s,r);d?(n[d.id]=d,o&&(d.pendingActivity=o),a&&(d.pendingNexusOperation=a)):V(n[E],s,o,a)};if(i==="ascending")for(const s of t)u(s);else for(let s=t.length-1;s>=0;s--)u(t[s]);return i==="descending"?Object.values(n).reverse():Object.values(n)},h=t=>t==null?!1:y(t,"events"),ni=(t,i="ascending")=>{const e={},r=n=>{const u=O(n),s=Kt(n,t);s?e[s.id]=s:V(e[u],n)};if(i==="ascending")for(const n of t)r(n);else for(let n=t.length-1;n>=0;n--)r(t[n]);return i==="descending"?Object.values(e).reverse():Object.values(e)};export{Xt as a,Jt as b,_t as c,Yt as d,St as e,Zt as f,ri as g,ii as h,ti as i,Vt as j,$t as k,zt as l,Ht as m,h as n,ei as o,It as p,Mt as q,ni as r,z as s,C as t}; diff --git a/ui/assets/local/_app/immutable/chunks/index.PGYMwVVp.js b/ui/assets/local/_app/immutable/chunks/index.mieHu6w-.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/index.PGYMwVVp.js rename to ui/assets/local/_app/immutable/chunks/index.mieHu6w-.js index 682d9c557a..a7ee5efd98 100644 --- a/ui/assets/local/_app/immutable/chunks/index.PGYMwVVp.js +++ b/ui/assets/local/_app/immutable/chunks/index.mieHu6w-.js @@ -1 +1 @@ -import{s as K,x as C,i as v,f as m,L as M,c as Q,z as A,A as E,a as N,h as T,b as B,j as I,k as y,d as q,m as h,n as S,u as O,g as P,e as j,p as R,t as z,l as D,I as d,q as L}from"./scheduler.1T9hOnFr.js";import{S as W,i as X,g as Y,b as g,e as Z,t as k,c as U,a as V,m as F,d as G}from"./index.cVovwi_s.js";import{c as w}from"./copy-to-clipboard.NHd-JF1v.js";import{B as H}from"./button.OZpWag17.js";function $(s){let e,o,t,n,l;const u=s[11].default,p=N(u,s,s[10],null),c=p||ee(s);return t=new H({props:{copyIconTitle:s[3],copySuccessIconTitle:s[4],class:s[1]?"visible":"invisible group-hover:visible",copied:s[5]}}),t.$on("click",s[7]),{c(){e=T("div"),c&&c.c(),o=B(),U(t.$$.fragment),this.h()},l(a){e=I(a,"DIV",{class:!0});var i=y(e);c&&c.l(i),o=q(i),V(t.$$.fragment,i),i.forEach(m),this.h()},h(){h(e,"class",n="group flex items-center gap-1 "+s[8]["container-class"])},m(a,i){v(a,e,i),c&&c.m(e,null),S(e,o),F(t,e,null),l=!0},p(a,i){p?p.p&&(!l||i&1024)&&O(p,u,a,a[10],l?j(u,a[10],i,null):P(a[10]),null):c&&c.p&&(!l||i&769)&&c.p(a,l?i:-1);const f={};i&8&&(f.copyIconTitle=a[3]),i&16&&(f.copySuccessIconTitle=a[4]),i&2&&(f.class=a[1]?"visible":"invisible group-hover:visible"),i&32&&(f.copied=a[5]),t.$set(f),(!l||i&256&&n!==(n="group flex items-center gap-1 "+a[8]["container-class"]))&&h(e,"class",n)},i(a){l||(k(c,a),k(t.$$.fragment,a),l=!0)},o(a){g(c,a),g(t.$$.fragment,a),l=!1},d(a){a&&m(e),c&&c.d(a),G(t)}}}function x(s){let e,o,t,n,l,u,p;const c=s[11].default,a=N(c,s,s[10],null),i=a||le(s);return t=new H({props:{copyIconTitle:s[3],copySuccessIconTitle:s[4],class:s[1]?"visible":"invisible group-hover:visible",copied:s[5]}}),t.$on("click",s[7]),{c(){e=T("button"),i&&i.c(),o=B(),U(t.$$.fragment),this.h()},l(f){e=I(f,"BUTTON",{class:!0});var r=y(e);i&&i.l(r),o=q(r),V(t.$$.fragment,r),r.forEach(m),this.h()},h(){h(e,"class",n="group flex items-center gap-1 break-all "+s[8]["container-class"])},m(f,r){v(f,e,r),i&&i.m(e,null),S(e,o),F(t,e,null),l=!0,u||(p=R(e,"click",s[7]),u=!0)},p(f,r){a?a.p&&(!l||r&1024)&&O(a,c,f,f[10],l?j(c,f[10],r,null):P(f[10]),null):i&&i.p&&(!l||r&769)&&i.p(f,l?r:-1);const b={};r&8&&(b.copyIconTitle=f[3]),r&16&&(b.copySuccessIconTitle=f[4]),r&2&&(b.class=f[1]?"visible":"invisible group-hover:visible"),r&32&&(b.copied=f[5]),t.$set(b),(!l||r&256&&n!==(n="group flex items-center gap-1 break-all "+f[8]["container-class"]))&&h(e,"class",n)},i(f){l||(k(i,f),k(t.$$.fragment,f),l=!0)},o(f){g(i,f),g(t.$$.fragment,f),l=!1},d(f){f&&m(e),i&&i.d(f),G(t),u=!1,p()}}}function ee(s){let e,o,t;return{c(){e=T("span"),o=z(s[0]),this.h()},l(n){e=I(n,"SPAN",{class:!0});var l=y(e);o=D(l,s[0]),l.forEach(m),this.h()},h(){h(e,"class",t=s[8].class),d(e,"select-all",!s[9].default)},m(n,l){v(n,e,l),S(e,o)},p(n,l){l&1&&L(o,n[0]),l&256&&t!==(t=n[8].class)&&h(e,"class",t),l&768&&d(e,"select-all",!n[9].default)},d(n){n&&m(e)}}}function le(s){let e,o,t;return{c(){e=T("span"),o=z(s[0]),this.h()},l(n){e=I(n,"SPAN",{class:!0});var l=y(e);o=D(l,s[0]),l.forEach(m),this.h()},h(){h(e,"class",t=s[8].class),d(e,"select-all",!s[9].default)},m(n,l){v(n,e,l),S(e,o)},p(n,l){l&1&&L(o,n[0]),l&256&&t!==(t=n[8].class)&&h(e,"class",t),l&768&&d(e,"select-all",!n[9].default)},d(n){n&&m(e)}}}function se(s){let e,o,t,n;const l=[x,$],u=[];function p(c,a){return c[2]?0:1}return e=p(s),o=u[e]=l[e](s),{c(){o.c(),t=C()},l(c){o.l(c),t=C()},m(c,a){u[e].m(c,a),v(c,t,a),n=!0},p(c,[a]){let i=e;e=p(c),e===i?u[e].p(c,a):(Y(),g(u[i],1,1,()=>{u[i]=null}),Z(),o=u[e],o?o.p(c,a):(o=u[e]=l[e](c),o.c()),k(o,1),o.m(t.parentNode,t))},i(c){n||(k(o),n=!0)},o(c){g(o),n=!1},d(c){c&&m(t),u[e].d(c)}}}function oe(s,e,o){let t,{$$slots:n={},$$scope:l}=e;const u=M(n);let{content:p}=e,{visible:c=!1}=e,{clickAllToCopy:a=!1}=e,{copyIconTitle:i}=e,{copySuccessIconTitle:f}=e;const{copy:r,copied:b}=w();Q(s,b,_=>o(5,t=_));function J(_){r(_,p)}return s.$$set=_=>{o(8,e=A(A({},e),E(_))),"content"in _&&o(0,p=_.content),"visible"in _&&o(1,c=_.visible),"clickAllToCopy"in _&&o(2,a=_.clickAllToCopy),"copyIconTitle"in _&&o(3,i=_.copyIconTitle),"copySuccessIconTitle"in _&&o(4,f=_.copySuccessIconTitle),"$$scope"in _&&o(10,l=_.$$scope)},e=E(e),[p,c,a,i,f,t,b,J,e,u,l,n]}class ie extends W{constructor(e){super(),X(this,e,oe,se,K,{content:0,visible:1,clickAllToCopy:2,copyIconTitle:3,copySuccessIconTitle:4})}}export{ie as C}; +import{s as K,x as C,i as v,f as m,L as M,c as Q,z as A,A as E,a as N,h as T,b as B,j as I,k as y,d as q,m as h,n as S,u as O,g as P,e as j,p as R,t as z,l as D,I as d,q as L}from"./scheduler.pPC3woXQ.js";import{S as W,i as X,g as Y,b as g,e as Z,t as k,c as U,a as V,m as F,d as G}from"./index.Z3Qqxacm.js";import{c as w}from"./copy-to-clipboard.TAMpnAY_.js";import{B as H}from"./button.mAcrdxlG.js";function $(s){let e,o,t,n,l;const u=s[11].default,p=N(u,s,s[10],null),c=p||ee(s);return t=new H({props:{copyIconTitle:s[3],copySuccessIconTitle:s[4],class:s[1]?"visible":"invisible group-hover:visible",copied:s[5]}}),t.$on("click",s[7]),{c(){e=T("div"),c&&c.c(),o=B(),U(t.$$.fragment),this.h()},l(a){e=I(a,"DIV",{class:!0});var i=y(e);c&&c.l(i),o=q(i),V(t.$$.fragment,i),i.forEach(m),this.h()},h(){h(e,"class",n="group flex items-center gap-1 "+s[8]["container-class"])},m(a,i){v(a,e,i),c&&c.m(e,null),S(e,o),F(t,e,null),l=!0},p(a,i){p?p.p&&(!l||i&1024)&&O(p,u,a,a[10],l?j(u,a[10],i,null):P(a[10]),null):c&&c.p&&(!l||i&769)&&c.p(a,l?i:-1);const f={};i&8&&(f.copyIconTitle=a[3]),i&16&&(f.copySuccessIconTitle=a[4]),i&2&&(f.class=a[1]?"visible":"invisible group-hover:visible"),i&32&&(f.copied=a[5]),t.$set(f),(!l||i&256&&n!==(n="group flex items-center gap-1 "+a[8]["container-class"]))&&h(e,"class",n)},i(a){l||(k(c,a),k(t.$$.fragment,a),l=!0)},o(a){g(c,a),g(t.$$.fragment,a),l=!1},d(a){a&&m(e),c&&c.d(a),G(t)}}}function x(s){let e,o,t,n,l,u,p;const c=s[11].default,a=N(c,s,s[10],null),i=a||le(s);return t=new H({props:{copyIconTitle:s[3],copySuccessIconTitle:s[4],class:s[1]?"visible":"invisible group-hover:visible",copied:s[5]}}),t.$on("click",s[7]),{c(){e=T("button"),i&&i.c(),o=B(),U(t.$$.fragment),this.h()},l(f){e=I(f,"BUTTON",{class:!0});var r=y(e);i&&i.l(r),o=q(r),V(t.$$.fragment,r),r.forEach(m),this.h()},h(){h(e,"class",n="group flex items-center gap-1 break-all "+s[8]["container-class"])},m(f,r){v(f,e,r),i&&i.m(e,null),S(e,o),F(t,e,null),l=!0,u||(p=R(e,"click",s[7]),u=!0)},p(f,r){a?a.p&&(!l||r&1024)&&O(a,c,f,f[10],l?j(c,f[10],r,null):P(f[10]),null):i&&i.p&&(!l||r&769)&&i.p(f,l?r:-1);const b={};r&8&&(b.copyIconTitle=f[3]),r&16&&(b.copySuccessIconTitle=f[4]),r&2&&(b.class=f[1]?"visible":"invisible group-hover:visible"),r&32&&(b.copied=f[5]),t.$set(b),(!l||r&256&&n!==(n="group flex items-center gap-1 break-all "+f[8]["container-class"]))&&h(e,"class",n)},i(f){l||(k(i,f),k(t.$$.fragment,f),l=!0)},o(f){g(i,f),g(t.$$.fragment,f),l=!1},d(f){f&&m(e),i&&i.d(f),G(t),u=!1,p()}}}function ee(s){let e,o,t;return{c(){e=T("span"),o=z(s[0]),this.h()},l(n){e=I(n,"SPAN",{class:!0});var l=y(e);o=D(l,s[0]),l.forEach(m),this.h()},h(){h(e,"class",t=s[8].class),d(e,"select-all",!s[9].default)},m(n,l){v(n,e,l),S(e,o)},p(n,l){l&1&&L(o,n[0]),l&256&&t!==(t=n[8].class)&&h(e,"class",t),l&768&&d(e,"select-all",!n[9].default)},d(n){n&&m(e)}}}function le(s){let e,o,t;return{c(){e=T("span"),o=z(s[0]),this.h()},l(n){e=I(n,"SPAN",{class:!0});var l=y(e);o=D(l,s[0]),l.forEach(m),this.h()},h(){h(e,"class",t=s[8].class),d(e,"select-all",!s[9].default)},m(n,l){v(n,e,l),S(e,o)},p(n,l){l&1&&L(o,n[0]),l&256&&t!==(t=n[8].class)&&h(e,"class",t),l&768&&d(e,"select-all",!n[9].default)},d(n){n&&m(e)}}}function se(s){let e,o,t,n;const l=[x,$],u=[];function p(c,a){return c[2]?0:1}return e=p(s),o=u[e]=l[e](s),{c(){o.c(),t=C()},l(c){o.l(c),t=C()},m(c,a){u[e].m(c,a),v(c,t,a),n=!0},p(c,[a]){let i=e;e=p(c),e===i?u[e].p(c,a):(Y(),g(u[i],1,1,()=>{u[i]=null}),Z(),o=u[e],o?o.p(c,a):(o=u[e]=l[e](c),o.c()),k(o,1),o.m(t.parentNode,t))},i(c){n||(k(o),n=!0)},o(c){g(o),n=!1},d(c){c&&m(t),u[e].d(c)}}}function oe(s,e,o){let t,{$$slots:n={},$$scope:l}=e;const u=M(n);let{content:p}=e,{visible:c=!1}=e,{clickAllToCopy:a=!1}=e,{copyIconTitle:i}=e,{copySuccessIconTitle:f}=e;const{copy:r,copied:b}=w();Q(s,b,_=>o(5,t=_));function J(_){r(_,p)}return s.$$set=_=>{o(8,e=A(A({},e),E(_))),"content"in _&&o(0,p=_.content),"visible"in _&&o(1,c=_.visible),"clickAllToCopy"in _&&o(2,a=_.clickAllToCopy),"copyIconTitle"in _&&o(3,i=_.copyIconTitle),"copySuccessIconTitle"in _&&o(4,f=_.copySuccessIconTitle),"$$scope"in _&&o(10,l=_.$$scope)},e=E(e),[p,c,a,i,f,t,b,J,e,u,l,n]}class ie extends W{constructor(e){super(),X(this,e,oe,se,K,{content:0,visible:1,clickAllToCopy:2,copyIconTitle:3,copySuccessIconTitle:4})}}export{ie as C}; diff --git a/ui/assets/local/_app/immutable/chunks/index.5wZ4nYFD.js b/ui/assets/local/_app/immutable/chunks/index.xcFFIXD-.js similarity index 91% rename from ui/assets/local/_app/immutable/chunks/index.5wZ4nYFD.js rename to ui/assets/local/_app/immutable/chunks/index.xcFFIXD-.js index 0cd595b485..5c9326d553 100644 --- a/ui/assets/local/_app/immutable/chunks/index.5wZ4nYFD.js +++ b/ui/assets/local/_app/immutable/chunks/index.xcFFIXD-.js @@ -1 +1 @@ -import"./entry.1BQh90wu.js";import"./i18next.dQ3wfJvm.js";import"./auth-user.ZpmVHepC.js";import"./is-http.6riBcNrE.js";import"./parse-with-big-int.e3oI4SEy.js";import{f as r}from"./time-format.HFIwVHuT.js";import{h as f}from"./is-event-type.Ut7dN4k9.js";import{e as c}from"./screaming-enums.6mdiatB1.js";import{g as l}from"./get-event-categorization.if3aIlTT.js";import{a as u}from"./format-time.PmxHXK_V.js";const T=["Unspecified","Scheduled","Open","New","Started","Initiated","Running","Completed","Fired","CancelRequested","TimedOut","Signaled","Canceled","Failed","Terminated"],d=e=>{if(e.includes("RequestCancel"))return"CancelRequested";for(const t of T)if(e.includes(t))return t},p=["closeTime","createTime","currentAttemptScheduledTime","earliestTime","eventTime","executionTime","expirationTime","expireTime","lastAccessTime","lastHeartbeatTime","lastStartedTime","lastUpdateTime","latestTime","releaseTime","scheduledTime","startedTime","startTime","workflowExecutionExpirationTime"],k=["backoffStartInterval","defaultWorkflowTaskTimeout","firstWorkflowTaskBackoff","heartbeatTimeout","initialInterval","maximumInterval","scheduleToCloseTimeout","scheduleToStartTimeout","startToCloseTimeout","startToFireTimeout","workflowExecutionRetentionPeriod","workflowExecutionRetentionTtl","workflowExecutionTimeout","workflowRunTimeout","workflowTaskTimeout"],w=e=>{for(const t of p)if(t===e)return!0;return!1},y=e=>{for(const t of k)if(t===e)return!0;return!1},g=e=>{if(e===null||e===void 0||typeof e!="object")return!1;const t=Object.keys(e),[o]=t;return!(t.length!==1||typeof e[o]!="string")},v=e=>{for(const t of Object.values(e))return t};function x(e,t=!1){for(const[o,i]of Object.entries(e))g(i)&&(e[o]=v(i)),w(o)&&!t&&(e[o]=r(i)),y(o)&&(e[o]=u(i));return e}const C=e=>{const t=String(e.eventId),o=c(e.eventType),i=r(String(e.eventTime)),n=d(o),s=l(o),{key:a,attributes:m}=f(e);return{...e,name:o,id:t,eventType:o,timestamp:i,classification:n,category:s,attributes:x({type:a,...m})}},B=e=>e.map(C),D=e=>{const t={...e};return delete t.name,delete t.id,delete t.timestamp,delete t.classification,delete t.category,delete t.attributes,t};export{D as f,x as s,B as t}; +import"./entry.6mxJxwSM.js";import"./i18next.dQ3wfJvm.js";import"./auth-user.hBqnVR-w.js";import"./is-http.d0DfcwIt.js";import"./parse-with-big-int.e3oI4SEy.js";import{f as r}from"./time-format.dnMZnAkG.js";import{h as f}from"./is-event-type.Ut7dN4k9.js";import{e as c}from"./screaming-enums.6mdiatB1.js";import{g as l}from"./get-event-categorization.if3aIlTT.js";import{a as u}from"./format-time.PmxHXK_V.js";const T=["Unspecified","Scheduled","Open","New","Started","Initiated","Running","Completed","Fired","CancelRequested","TimedOut","Signaled","Canceled","Failed","Terminated"],d=e=>{if(e.includes("RequestCancel"))return"CancelRequested";for(const t of T)if(e.includes(t))return t},p=["closeTime","createTime","currentAttemptScheduledTime","earliestTime","eventTime","executionTime","expirationTime","expireTime","lastAccessTime","lastHeartbeatTime","lastStartedTime","lastUpdateTime","latestTime","releaseTime","scheduledTime","startedTime","startTime","workflowExecutionExpirationTime"],k=["backoffStartInterval","defaultWorkflowTaskTimeout","firstWorkflowTaskBackoff","heartbeatTimeout","initialInterval","maximumInterval","scheduleToCloseTimeout","scheduleToStartTimeout","startToCloseTimeout","startToFireTimeout","workflowExecutionRetentionPeriod","workflowExecutionRetentionTtl","workflowExecutionTimeout","workflowRunTimeout","workflowTaskTimeout"],w=e=>{for(const t of p)if(t===e)return!0;return!1},y=e=>{for(const t of k)if(t===e)return!0;return!1},g=e=>{if(e===null||e===void 0||typeof e!="object")return!1;const t=Object.keys(e),[o]=t;return!(t.length!==1||typeof e[o]!="string")},v=e=>{for(const t of Object.values(e))return t};function x(e,t=!1){for(const[o,i]of Object.entries(e))g(i)&&(e[o]=v(i)),w(o)&&!t&&(e[o]=r(i)),y(o)&&(e[o]=u(i));return e}const C=e=>{const t=String(e.eventId),o=c(e.eventType),i=r(String(e.eventTime)),n=d(o),s=l(o),{key:a,attributes:m}=f(e);return{...e,name:o,id:t,eventType:o,timestamp:i,classification:n,category:s,attributes:x({type:a,...m})}},B=e=>e.map(C),D=e=>{const t={...e};return delete t.name,delete t.id,delete t.timestamp,delete t.classification,delete t.category,delete t.attributes,t};export{D as f,x as s,B as t}; diff --git a/ui/assets/local/_app/immutable/chunks/ini.fP0BiIJa.js b/ui/assets/local/_app/immutable/chunks/ini.fP0BiIJa.js new file mode 100644 index 0000000000..92ab19a3ee --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/ini.fP0BiIJa.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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:"'"}]},n={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"}}]]}};export{e as conf,n as language}; diff --git a/ui/assets/local/_app/immutable/chunks/input-and-results.wHzei0yW.js b/ui/assets/local/_app/immutable/chunks/input-and-results.uWnxtHct.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/input-and-results.wHzei0yW.js rename to ui/assets/local/_app/immutable/chunks/input-and-results.uWnxtHct.js index 40a9f02797..832010a110 100644 --- a/ui/assets/local/_app/immutable/chunks/input-and-results.wHzei0yW.js +++ b/ui/assets/local/_app/immutable/chunks/input-and-results.uWnxtHct.js @@ -1 +1 @@ -import{s as Y,z as H,h as R,t as M,b as j,j as q,k as N,l as O,d as z,f as h,m as Q,F as D,i as w,n as A,q as U,E as F,A as Z,x as B,y as x}from"./scheduler.1T9hOnFr.js";import{S as ee,i as te,t as m,g as E,b as _,e as T,c as $,a as y,m as k,d as v}from"./index.cVovwi_s.js";import{e as L}from"./each.QHpLJPfe.js";import{g as ne}from"./spread.rEx3vLA9.js";import{B as le}from"./badge.kH3kuYyU.js";import{C as W}from"./code-block.S0zkvBiB.js";import{t as S}from"./translate.HrioCK44.js";import{p as C,s as V}from"./parse-with-big-int.e3oI4SEy.js";import{P as X}from"./payload-decoder.bHDO67Bo.js";function G(c,t,l){const e=c.slice();return e[12]=t[l],e}function J(c){let t,l;return t=new le({props:{type:"count",class:"rounded-sm",$$slots:{default:[oe]},$$scope:{ctx:c}}}),{c(){$(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,n){k(t,e,n),l=!0},p(e,n){const s={};n&32776&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){l||(m(t.$$.fragment,e),l=!0)},o(e){_(t.$$.fragment,e),l=!1},d(e){v(t,e)}}}function oe(c){let t=c[3].length+"",l;return{c(){l=M(t)},l(e){l=O(e,t)},m(e,n){w(e,l,n)},p(e,n){n&8&&t!==(t=e[3].length+"")&&U(l,t)},d(e){e&&h(l)}}}function re(c){let t,l;return t=new W({props:{content:c[2]?"Results will appear upon completion.":"",language:"text",class:"mb-2 pt-1",maxHeight:384,copyable:!1}}),{c(){$(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,n){k(t,e,n),l=!0},p(e,n){const s={};n&4&&(s.content=e[2]?"Results will appear upon completion.":""),t.$set(s)},i(e){l||(m(t.$$.fragment,e),l=!0)},o(e){_(t.$$.fragment,e),l=!1},d(e){v(t,e)}}}function ce(c){let t,l,e,n;const s=[se,ae],o=[];function i(r,f){return r[6]?0:1}return t=i(c),l=o[t]=s[t](c),{c(){l.c(),e=B()},l(r){l.l(r),e=B()},m(r,f){o[t].m(r,f),w(r,e,f),n=!0},p(r,f){let d=t;t=i(r),t===d?o[t].p(r,f):(E(),_(o[d],1,1,()=>{o[d]=null}),T(),l=o[t],l?l.p(r,f):(l=o[t]=s[t](r),l.c()),m(l,1),l.m(e.parentNode,e))},i(r){n||(m(l),n=!0)},o(r){_(l),n=!1},d(r){r&&h(e),o[t].d(r)}}}function ae(c){let t,l;return t=new X({props:{value:C(c[0]),$$slots:{default:[ie,({decodedValue:e})=>({11:e}),({decodedValue:e})=>e?2048:0]},$$scope:{ctx:c}}}),{c(){$(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,n){k(t,e,n),l=!0},p(e,n){const s={};n&1&&(s.value=C(e[0])),n&34816&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){l||(m(t.$$.fragment,e),l=!0)},o(e){_(t.$$.fragment,e),l=!1},d(e){v(t,e)}}}function se(c){let t,l,e;return l=new X({props:{value:c[4],key:"payloads",$$slots:{default:[fe,({decodedValue:n})=>({11:n}),({decodedValue:n})=>n?2048:0]},$$scope:{ctx:c}}}),{c(){t=R("div"),$(l.$$.fragment),this.h()},l(n){t=q(n,"DIV",{class:!0});var s=N(t);y(l.$$.fragment,s),s.forEach(h),this.h()},h(){Q(t,"class","max-h-96 overflow-auto p-1")},m(n,s){w(n,t,s),k(l,t,null),e=!0},p(n,s){const o={};s&16&&(o.value=n[4]),s&34816&&(o.$$scope={dirty:s,ctx:n}),l.$set(o)},i(n){e||(m(l.$$.fragment,n),e=!0)},o(n){_(l.$$.fragment,n),e=!1},d(n){n&&h(t),v(l)}}}function ie(c){let t,l;return t=new W({props:{content:c[11],class:"mb-2 pt-1",maxHeight:384,copyIconTitle:S("common.copy-icon-title"),copySuccessIconTitle:S("common.copy-success-icon-title")}}),{c(){$(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,n){k(t,e,n),l=!0},p(e,n){const s={};n&2048&&(s.content=e[11]),t.$set(s)},i(e){l||(m(t.$$.fragment,e),l=!0)},o(e){_(t.$$.fragment,e),l=!1},d(e){v(t,e)}}}function K(c){let t,l;return t=new W({props:{content:V(c[12]),class:"mb-2",copyIconTitle:S("common.copy-icon-title"),copySuccessIconTitle:S("common.copy-success-icon-title")}}),{c(){$(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,n){k(t,e,n),l=!0},p(e,n){const s={};n&2048&&(s.content=V(e[12])),t.$set(s)},i(e){l||(m(t.$$.fragment,e),l=!0)},o(e){_(t.$$.fragment,e),l=!1},d(e){v(t,e)}}}function fe(c){let t,l,e=L(c[7](c[11])),n=[];for(let o=0;o_(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;o{f=null}),T());let g=o;o=P(a),o===g?p[o].p(a,u):(E(),_(p[g],1,1,()=>{p[g]=null}),T(),i=p[o],i?i.p(a,u):(i=p[o]=d[o](a),i.c()),m(i,1),i.m(t,null)),D(t,b=ne(I,[{class:"flex w-full flex-col"},u&256&&a[8]]))},i(a){r||(m(f),m(i),r=!0)},o(a){_(f),_(i),r=!1},d(a){a&&h(t),f&&f.d(),p[o].d()}}}function me(c,t,l){let e,n,s,o;const i=["content","title","running"];let r=F(t,i),{content:f}=t,{title:d}=t,{running:p=!1}=t;const P=a=>{try{return C(a)}catch{return}},I=a=>{try{const u=C(a);return Array.isArray(u)?C(a):[]}catch{return[]}},b=a=>{try{const u=a==null?void 0:a.payloads;return Array.isArray(u)?u:[]}catch{return[]}};return c.$$set=a=>{t=H(H({},t),Z(a)),l(8,r=F(t,i)),"content"in a&&l(0,f=a.content),"title"in a&&l(1,d=a.title),"running"in a&&l(2,p=a.running)},c.$$.update=()=>{c.$$.dirty&1&&l(4,e=P(f)),c.$$.dirty&16&&l(3,n=b(e)),c.$$.dirty&8&&l(6,s=n.length>0),c.$$.dirty&8&&l(5,o=n.length>1)},[f,d,p,n,e,o,s,I,r]}class ve extends ee{constructor(t){super(),te(this,t,me,ue,Y,{content:0,title:1,running:2})}}export{ve as I}; +import{s as Y,z as H,h as R,t as M,b as j,j as q,k as N,l as O,d as z,f as h,m as Q,F as D,i as w,n as A,q as U,E as F,A as Z,x as B,y as x}from"./scheduler.pPC3woXQ.js";import{S as ee,i as te,t as m,g as E,b as _,e as T,c as $,a as y,m as k,d as v}from"./index.Z3Qqxacm.js";import{e as L}from"./each.fm8Uvuh8.js";import{g as ne}from"./spread.rEx3vLA9.js";import{B as le}from"./badge.rkMH44Sz.js";import{C as W}from"./code-block.Xpz7isZb.js";import{t as S}from"./translate.HrioCK44.js";import{p as C,s as V}from"./parse-with-big-int.e3oI4SEy.js";import{P as X}from"./payload-decoder.MNO5fgLK.js";function G(c,t,l){const e=c.slice();return e[12]=t[l],e}function J(c){let t,l;return t=new le({props:{type:"count",class:"rounded-sm",$$slots:{default:[oe]},$$scope:{ctx:c}}}),{c(){$(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,n){k(t,e,n),l=!0},p(e,n){const s={};n&32776&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){l||(m(t.$$.fragment,e),l=!0)},o(e){_(t.$$.fragment,e),l=!1},d(e){v(t,e)}}}function oe(c){let t=c[3].length+"",l;return{c(){l=M(t)},l(e){l=O(e,t)},m(e,n){w(e,l,n)},p(e,n){n&8&&t!==(t=e[3].length+"")&&U(l,t)},d(e){e&&h(l)}}}function re(c){let t,l;return t=new W({props:{content:c[2]?"Results will appear upon completion.":"",language:"text",class:"mb-2 pt-1",maxHeight:384,copyable:!1}}),{c(){$(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,n){k(t,e,n),l=!0},p(e,n){const s={};n&4&&(s.content=e[2]?"Results will appear upon completion.":""),t.$set(s)},i(e){l||(m(t.$$.fragment,e),l=!0)},o(e){_(t.$$.fragment,e),l=!1},d(e){v(t,e)}}}function ce(c){let t,l,e,n;const s=[se,ae],o=[];function i(r,f){return r[6]?0:1}return t=i(c),l=o[t]=s[t](c),{c(){l.c(),e=B()},l(r){l.l(r),e=B()},m(r,f){o[t].m(r,f),w(r,e,f),n=!0},p(r,f){let d=t;t=i(r),t===d?o[t].p(r,f):(E(),_(o[d],1,1,()=>{o[d]=null}),T(),l=o[t],l?l.p(r,f):(l=o[t]=s[t](r),l.c()),m(l,1),l.m(e.parentNode,e))},i(r){n||(m(l),n=!0)},o(r){_(l),n=!1},d(r){r&&h(e),o[t].d(r)}}}function ae(c){let t,l;return t=new X({props:{value:C(c[0]),$$slots:{default:[ie,({decodedValue:e})=>({11:e}),({decodedValue:e})=>e?2048:0]},$$scope:{ctx:c}}}),{c(){$(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,n){k(t,e,n),l=!0},p(e,n){const s={};n&1&&(s.value=C(e[0])),n&34816&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){l||(m(t.$$.fragment,e),l=!0)},o(e){_(t.$$.fragment,e),l=!1},d(e){v(t,e)}}}function se(c){let t,l,e;return l=new X({props:{value:c[4],key:"payloads",$$slots:{default:[fe,({decodedValue:n})=>({11:n}),({decodedValue:n})=>n?2048:0]},$$scope:{ctx:c}}}),{c(){t=R("div"),$(l.$$.fragment),this.h()},l(n){t=q(n,"DIV",{class:!0});var s=N(t);y(l.$$.fragment,s),s.forEach(h),this.h()},h(){Q(t,"class","max-h-96 overflow-auto p-1")},m(n,s){w(n,t,s),k(l,t,null),e=!0},p(n,s){const o={};s&16&&(o.value=n[4]),s&34816&&(o.$$scope={dirty:s,ctx:n}),l.$set(o)},i(n){e||(m(l.$$.fragment,n),e=!0)},o(n){_(l.$$.fragment,n),e=!1},d(n){n&&h(t),v(l)}}}function ie(c){let t,l;return t=new W({props:{content:c[11],class:"mb-2 pt-1",maxHeight:384,copyIconTitle:S("common.copy-icon-title"),copySuccessIconTitle:S("common.copy-success-icon-title")}}),{c(){$(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,n){k(t,e,n),l=!0},p(e,n){const s={};n&2048&&(s.content=e[11]),t.$set(s)},i(e){l||(m(t.$$.fragment,e),l=!0)},o(e){_(t.$$.fragment,e),l=!1},d(e){v(t,e)}}}function K(c){let t,l;return t=new W({props:{content:V(c[12]),class:"mb-2",copyIconTitle:S("common.copy-icon-title"),copySuccessIconTitle:S("common.copy-success-icon-title")}}),{c(){$(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,n){k(t,e,n),l=!0},p(e,n){const s={};n&2048&&(s.content=V(e[12])),t.$set(s)},i(e){l||(m(t.$$.fragment,e),l=!0)},o(e){_(t.$$.fragment,e),l=!1},d(e){v(t,e)}}}function fe(c){let t,l,e=L(c[7](c[11])),n=[];for(let o=0;o_(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;o{f=null}),T());let g=o;o=P(a),o===g?p[o].p(a,u):(E(),_(p[g],1,1,()=>{p[g]=null}),T(),i=p[o],i?i.p(a,u):(i=p[o]=d[o](a),i.c()),m(i,1),i.m(t,null)),D(t,b=ne(I,[{class:"flex w-full flex-col"},u&256&&a[8]]))},i(a){r||(m(f),m(i),r=!0)},o(a){_(f),_(i),r=!1},d(a){a&&h(t),f&&f.d(),p[o].d()}}}function me(c,t,l){let e,n,s,o;const i=["content","title","running"];let r=F(t,i),{content:f}=t,{title:d}=t,{running:p=!1}=t;const P=a=>{try{return C(a)}catch{return}},I=a=>{try{const u=C(a);return Array.isArray(u)?C(a):[]}catch{return[]}},b=a=>{try{const u=a==null?void 0:a.payloads;return Array.isArray(u)?u:[]}catch{return[]}};return c.$$set=a=>{t=H(H({},t),Z(a)),l(8,r=F(t,i)),"content"in a&&l(0,f=a.content),"title"in a&&l(1,d=a.title),"running"in a&&l(2,p=a.running)},c.$$.update=()=>{c.$$.dirty&1&&l(4,e=P(f)),c.$$.dirty&16&&l(3,n=b(e)),c.$$.dirty&8&&l(6,s=n.length>0),c.$$.dirty&8&&l(5,o=n.length>1)},[f,d,p,n,e,o,s,I,r]}class ve extends ee{constructor(t){super(),te(this,t,me,ue,Y,{content:0,title:1,running:2})}}export{ve as I}; diff --git a/ui/assets/local/_app/immutable/chunks/input.Q5M-PWyi.js b/ui/assets/local/_app/immutable/chunks/input.T-q3Sv8I.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/input.Q5M-PWyi.js rename to ui/assets/local/_app/immutable/chunks/input.T-q3Sv8I.js index 9e97869734..be008172e3 100644 --- a/ui/assets/local/_app/immutable/chunks/input.Q5M-PWyi.js +++ b/ui/assets/local/_app/immutable/chunks/input.T-q3Sv8I.js @@ -1 +1 @@ -import{s as Ue,a as he,z as re,h as V,b as U,t as ue,j as H,k as P,d as j,f as q,l as oe,F as me,I as h,m as E,W as _e,i as X,n as L,X as be,p as z,G as ge,Y as je,u as ke,g as ve,e as Le,q as se,H as ze,E as qe,L as Ge,r as Me,c as Oe,A as Be,B as x,v as We}from"./scheduler.1T9hOnFr.js";import{S as Xe,i as Ye,c as $,a as ee,m as le,t as C,g as ce,b as N,e as de,d as te}from"./index.cVovwi_s.js";import{g as Je}from"./spread.rEx3vLA9.js";import{I as fe}from"./icon.w8eknFMq.js";import{L as Ke}from"./label.ujgKMPb9.js";import{c as Qe}from"./copy-to-clipboard.NHd-JF1v.js";import{I as Ze}from"./icon-button.WQBA9EQY.js";import{t as Ie}from"./tw-merge.NbP7EmZe.js";const ye=t=>({disabled:t[0]&1}),Ee=t=>({disabled:t[0]}),we=t=>({disabled:t[0]&1}),pe=t=>({disabled:t[0]});function Te(t){let e,l,u;return l=new fe({props:{name:t[5]}}),{c(){e=V("span"),$(l.$$.fragment),this.h()},l(a){e=H(a,"SPAN",{class:!0});var r=P(e);ee(l.$$.fragment,r),r.forEach(q),this.h()},h(){E(e,"class","icon-container svelte-1tq4pou")},m(a,r){X(a,e,r),le(l,e,null),u=!0},p(a,r){const s={};r[0]&32&&(s.name=a[5]),l.$set(s)},i(a){u||(C(l.$$.fragment,a),u=!0)},o(a){N(l.$$.fragment,a),u=!1},d(a){a&&q(e),te(l)}}}function xe(t){let e,l,u;return l=new Ze({props:{label:t[23],icon:"close"}}),l.$on("click",t[28]),{c(){e=V("div"),$(l.$$.fragment),this.h()},l(a){e=H(a,"DIV",{class:!0,"data-testid":!0});var r=P(e);ee(l.$$.fragment,r),r.forEach(q),this.h()},h(){E(e,"class","clear-icon-container svelte-1tq4pou"),E(e,"data-testid","clear-input")},m(a,r){X(a,e,r),le(l,e,null),u=!0},p(a,r){const s={};r[0]&8388608&&(s.label=a[23]),l.$set(s)},i(a){u||(C(l.$$.fragment,a),u=!0)},o(a){N(l.$$.fragment,a),u=!1},d(a){a&&q(e),te(l)}}}function $e(t){let e,l,u;return l=new fe({props:{name:"lock"}}),{c(){e=V("div"),$(l.$$.fragment),this.h()},l(a){e=H(a,"DIV",{class:!0});var r=P(e);ee(l.$$.fragment,r),r.forEach(q),this.h()},h(){E(e,"class","disabled-icon-container svelte-1tq4pou")},m(a,r){X(a,e,r),le(l,e,null),u=!0},p:We,i(a){u||(C(l.$$.fragment,a),u=!0)},o(a){N(l.$$.fragment,a),u=!1},d(a){a&&q(e),te(l)}}}function el(t){let e,l,u,a,r,s,_;const f=[tl,ll],g=[];function R(c,m){return c[25]?0:1}return u=R(t),a=g[u]=f[u](t),{c(){e=V("div"),l=V("button"),a.c(),this.h()},l(c){e=H(c,"DIV",{class:!0});var m=P(e);l=H(m,"BUTTON",{"aria-label":!0});var D=P(l);a.l(D),D.forEach(q),m.forEach(q),this.h()},h(){E(l,"aria-label",t[22]),E(e,"class","copy-icon-container svelte-1tq4pou")},m(c,m){X(c,e,m),L(e,l),g[u].m(l,null),r=!0,s||(_=z(l,"click",t[43]),s=!0)},p(c,m){let D=u;u=R(c),u!==D&&(ce(),N(g[D],1,1,()=>{g[D]=null}),de(),a=g[u],a||(a=g[u]=f[u](c),a.c()),C(a,1),a.m(l,null)),(!r||m[0]&4194304)&&E(l,"aria-label",c[22])},i(c){r||(C(a),r=!0)},o(c){N(a),r=!1},d(c){c&&q(e),g[u].d(),s=!1,_()}}}function ll(t){let e,l;return e=new fe({props:{name:"copy"}}),{c(){$(e.$$.fragment)},l(u){ee(e.$$.fragment,u)},m(u,a){le(e,u,a),l=!0},i(u){l||(C(e.$$.fragment,u),l=!0)},o(u){N(e.$$.fragment,u),l=!1},d(u){te(e,u)}}}function tl(t){let e,l;return e=new fe({props:{name:"checkmark"}}),{c(){$(e.$$.fragment)},l(u){ee(e.$$.fragment,u)},m(u,a){le(e,u,a),l=!0},i(u){l||(C(e.$$.fragment,u),l=!0)},o(u){N(e.$$.fragment,u),l=!1},d(u){te(e,u)}}}function Ce(t){let e,l,u=t[1].length+"",a,r,s;return{c(){e=V("span"),l=V("span"),a=ue(u),r=ue("/"),s=ue(t[14]),this.h()},l(_){e=H(_,"SPAN",{class:!0});var f=P(e);l=H(f,"SPAN",{class:!0});var g=P(l);a=oe(g,u),g.forEach(q),r=oe(f,"/"),s=oe(f,t[14]),f.forEach(q),this.h()},h(){E(l,"class","svelte-1tq4pou"),h(l,"ok",t[14]-t[1].length>5),h(l,"warn",t[14]-t[1].length<=5),h(l,"error",t[14]===t[1].length),E(e,"class","count svelte-1tq4pou")},m(_,f){X(_,e,f),L(e,l),L(l,a),L(e,r),L(e,s)},p(_,f){f[0]&2&&u!==(u=_[1].length+"")&&se(a,u),f[0]&16386&&h(l,"ok",_[14]-_[1].length>5),f[0]&16386&&h(l,"warn",_[14]-_[1].length<=5),f[0]&16386&&h(l,"error",_[14]===_[1].length),f[0]&16384&&se(s,_[14])},d(_){_&&q(e)}}}function De(t){let e,l;return{c(){e=V("div"),l=ue(t[7]),this.h()},l(u){e=H(u,"DIV",{class:!0});var a=P(e);l=oe(a,t[7]),a.forEach(q),this.h()},h(){E(e,"class","suffix svelte-1tq4pou")},m(u,a){X(u,e,a),L(e,l)},p(u,a){a[0]&128&&se(l,u[7])},d(u){u&&q(e)}}}function nl(t){let e,l,u,a,r,s,_,f,g,R,c,m,D,G,Y,J,B,A,M,O,d,K,ne;l=new Ke({props:{required:t[21],label:t[3],hidden:t[4],for:t[2]}});const Q=t[35]["before-input"],p=he(Q,t,t[34],pe);let b=t[5]&&Te(t),Z=[{class:"input"},{disabled:t[0]},{"data-lpignore":"true"},{maxlength:g=t[14]>0?t[14]:void 0},{placeholder:t[6]},{id:t[2]},{name:t[8]},{spellcheck:t[16]},{required:t[21]},{autocomplete:t[11]},{"data-testid":t[26]},t[32]],W={};for(let n=0;n{b=null}),de()),me(f,W=Je(Z,[{class:"input"},(!d||o[0]&1)&&{disabled:n[0]},{"data-lpignore":"true"},(!d||o[0]&16384&&g!==(g=n[14]>0?n[14]:void 0))&&{maxlength:g},(!d||o[0]&64)&&{placeholder:n[6]},(!d||o[0]&4)&&{id:n[2]},(!d||o[0]&256)&&{name:n[8]},(!d||o[0]&65536)&&{spellcheck:n[16]},(!d||o[0]&2097152)&&{required:n[21]},(!d||o[0]&2048)&&{autocomplete:n[11]},{"data-testid":n[26]},o[1]&2&&n[32]])),o[0]&2&&f.value!==n[1]&&be(f,n[1]),h(f,"disabled",n[0]),h(f,"svelte-1tq4pou",!0);let I=c;c=ae(n),c===I?~c&&S[c].p(n,o):(m&&(ce(),N(S[I],1,1,()=>{S[I]=null}),de()),~c?(m=S[c],m?m.p(n,o):(m=S[c]=y[c](n),m.c()),C(m,1),m.m(s,D)):m=null),n[14]&&!n[0]&&!n[15]?k?k.p(n,o):(k=Ce(n),k.c(),k.m(s,G)):k&&(k.d(1),k=null),n[7]?v?v.p(n,o):(v=De(n),v.c(),v.m(s,null)):v&&(v.d(1),v=null),(!d||o[0]&1)&&h(s,"disabled",n[0]),(!d||o[0]&1048576)&&h(s,"error",n[20]),(!d||o[0]&524288)&&h(s,"noBorder",n[19]),(!d||o[0]&262144|o[1]&1)&&h(s,"unroundLeft",n[18]||n[31]["before-input"]),(!d||o[0]&131072|o[1]&1)&&h(s,"unroundRight",n[17]||n[31]["after-input"]),(!d||o[0]&4096)&&h(s,"invalid",!n[12]),T&&T.p&&(!d||o[0]&1|o[1]&8)&&ke(T,w,n,n[34],d?Le(w,n[34],o,ye):ve(n[34]),Ee),(!d||o[0]&8192)&&se(A,n[13]),(!d||o[0]&1048576&&M!==(M=n[20]?"alert":null))&&E(B,"role",M),(!d||o[0]&4096)&&h(B,"invalid",!n[12]),(!d||o[0]&1048576)&&h(B,"error",n[20]),(!d||o[0]&8192)&&h(B,"hidden",!n[13]),(!d||o[0]&16777216&&O!==(O=_e(Ie("flex flex-col gap-1",n[24]))+" svelte-1tq4pou"))&&E(e,"class",O)},i(n){d||(C(l.$$.fragment,n),C(p,n),C(b),C(m),C(T,n),d=!0)},o(n){N(l.$$.fragment,n),N(p,n),N(b),N(m),N(T,n),d=!1},d(n){n&&q(e),te(l),p&&p.d(n),b&&b.d(),~c&&S[c].d(),k&&k.d(),v&&v.d(),T&&T.d(n),K=!1,ze(ne)}}}function al(t,e,l){const u=["id","value","label","labelHidden","icon","placeholder","suffix","name","copyable","disabled","clearable","autocomplete","valid","hintText","maxLength","hideCount","spellcheck","unroundRight","unroundLeft","noBorder","autoFocus","error","required","copyButtonLabel","clearButtonLabel","class"];let a=qe(e,u),r,{$$slots:s={},$$scope:_}=e;const f=Ge(s);let{id:g}=e,{value:R}=e,{label:c}=e,{labelHidden:m=!1}=e,{icon:D=null}=e,{placeholder:G=""}=e,{suffix:Y=""}=e,{name:J=g}=e,{copyable:B=!1}=e,{disabled:A=!1}=e,{clearable:M=!1}=e,{autocomplete:O="off"}=e,{valid:d=!0}=e,{hintText:K=""}=e,{maxLength:ne=0}=e,{hideCount:Q=!1}=e,{spellcheck:p=null}=e,{unroundRight:b=!1}=e,{unroundLeft:Z=!1}=e,{noBorder:W=!1}=e,{autoFocus:y=!1}=e,{error:S=!1}=e,{required:ae=!1}=e,{copyButtonLabel:k=""}=e,{clearButtonLabel:v=""}=e,{class:w=""}=e,T=e["data-testid"]||g;function n(i){y&&i&&i.focus()}const o=Me();function F(){l(1,R=""),o("clear",{})}const{copy:I,copied:ie}=Qe();Oe(t,ie,i=>l(25,r=i));function Fe(i){x.call(this,t,i)}function Ne(i){x.call(this,t,i)}function Re(i){x.call(this,t,i)}function Ve(i){x.call(this,t,i)}function He(i){x.call(this,t,i)}function Pe(i){x.call(this,t,i)}function Se(){R=this.value,l(1,R)}const Ae=i=>I(i,R);return t.$$set=i=>{l(45,e=re(re({},e),Be(i))),l(32,a=qe(e,u)),"id"in i&&l(2,g=i.id),"value"in i&&l(1,R=i.value),"label"in i&&l(3,c=i.label),"labelHidden"in i&&l(4,m=i.labelHidden),"icon"in i&&l(5,D=i.icon),"placeholder"in i&&l(6,G=i.placeholder),"suffix"in i&&l(7,Y=i.suffix),"name"in i&&l(8,J=i.name),"copyable"in i&&l(9,B=i.copyable),"disabled"in i&&l(0,A=i.disabled),"clearable"in i&&l(10,M=i.clearable),"autocomplete"in i&&l(11,O=i.autocomplete),"valid"in i&&l(12,d=i.valid),"hintText"in i&&l(13,K=i.hintText),"maxLength"in i&&l(14,ne=i.maxLength),"hideCount"in i&&l(15,Q=i.hideCount),"spellcheck"in i&&l(16,p=i.spellcheck),"unroundRight"in i&&l(17,b=i.unroundRight),"unroundLeft"in i&&l(18,Z=i.unroundLeft),"noBorder"in i&&l(19,W=i.noBorder),"autoFocus"in i&&l(33,y=i.autoFocus),"error"in i&&l(20,S=i.error),"required"in i&&l(21,ae=i.required),"copyButtonLabel"in i&&l(22,k=i.copyButtonLabel),"clearButtonLabel"in i&&l(23,v=i.clearButtonLabel),"class"in i&&l(24,w=i.class),"$$scope"in i&&l(34,_=i.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&513&&l(0,A=A||B)},e=Be(e),[A,R,g,c,m,D,G,Y,J,B,M,O,d,K,ne,Q,p,b,Z,W,S,ae,k,v,w,r,T,n,F,I,ie,f,a,y,_,s,Fe,Ne,Re,Ve,He,Pe,Se,Ae]}class hl extends Xe{constructor(e){super(),Ye(this,e,al,nl,Ue,{id:2,value:1,label:3,labelHidden:4,icon:5,placeholder:6,suffix:7,name:8,copyable:9,disabled:0,clearable:10,autocomplete:11,valid:12,hintText:13,maxLength:14,hideCount:15,spellcheck:16,unroundRight:17,unroundLeft:18,noBorder:19,autoFocus:33,error:20,required:21,copyButtonLabel:22,clearButtonLabel:23,class:24},null,[-1,-1])}}export{hl as I}; +import{s as Ue,a as he,z as re,h as V,b as U,t as ue,j as H,k as P,d as j,f as q,l as oe,F as me,I as h,m as E,W as _e,i as X,n as L,X as be,p as z,G as ge,Y as je,u as ke,g as ve,e as Le,q as se,H as ze,E as qe,L as Ge,r as Me,c as Oe,A as Be,B as x,v as We}from"./scheduler.pPC3woXQ.js";import{S as Xe,i as Ye,c as $,a as ee,m as le,t as C,g as ce,b as N,e as de,d as te}from"./index.Z3Qqxacm.js";import{g as Je}from"./spread.rEx3vLA9.js";import{I as fe}from"./icon.IMxiy1l_.js";import{L as Ke}from"./label.zXYhHpIA.js";import{c as Qe}from"./copy-to-clipboard.TAMpnAY_.js";import{I as Ze}from"./icon-button.dQoJQbAi.js";import{t as Ie}from"./tw-merge.NbP7EmZe.js";const ye=t=>({disabled:t[0]&1}),Ee=t=>({disabled:t[0]}),we=t=>({disabled:t[0]&1}),pe=t=>({disabled:t[0]});function Te(t){let e,l,u;return l=new fe({props:{name:t[5]}}),{c(){e=V("span"),$(l.$$.fragment),this.h()},l(a){e=H(a,"SPAN",{class:!0});var r=P(e);ee(l.$$.fragment,r),r.forEach(q),this.h()},h(){E(e,"class","icon-container svelte-1tq4pou")},m(a,r){X(a,e,r),le(l,e,null),u=!0},p(a,r){const s={};r[0]&32&&(s.name=a[5]),l.$set(s)},i(a){u||(C(l.$$.fragment,a),u=!0)},o(a){N(l.$$.fragment,a),u=!1},d(a){a&&q(e),te(l)}}}function xe(t){let e,l,u;return l=new Ze({props:{label:t[23],icon:"close"}}),l.$on("click",t[28]),{c(){e=V("div"),$(l.$$.fragment),this.h()},l(a){e=H(a,"DIV",{class:!0,"data-testid":!0});var r=P(e);ee(l.$$.fragment,r),r.forEach(q),this.h()},h(){E(e,"class","clear-icon-container svelte-1tq4pou"),E(e,"data-testid","clear-input")},m(a,r){X(a,e,r),le(l,e,null),u=!0},p(a,r){const s={};r[0]&8388608&&(s.label=a[23]),l.$set(s)},i(a){u||(C(l.$$.fragment,a),u=!0)},o(a){N(l.$$.fragment,a),u=!1},d(a){a&&q(e),te(l)}}}function $e(t){let e,l,u;return l=new fe({props:{name:"lock"}}),{c(){e=V("div"),$(l.$$.fragment),this.h()},l(a){e=H(a,"DIV",{class:!0});var r=P(e);ee(l.$$.fragment,r),r.forEach(q),this.h()},h(){E(e,"class","disabled-icon-container svelte-1tq4pou")},m(a,r){X(a,e,r),le(l,e,null),u=!0},p:We,i(a){u||(C(l.$$.fragment,a),u=!0)},o(a){N(l.$$.fragment,a),u=!1},d(a){a&&q(e),te(l)}}}function el(t){let e,l,u,a,r,s,_;const f=[tl,ll],g=[];function R(c,m){return c[25]?0:1}return u=R(t),a=g[u]=f[u](t),{c(){e=V("div"),l=V("button"),a.c(),this.h()},l(c){e=H(c,"DIV",{class:!0});var m=P(e);l=H(m,"BUTTON",{"aria-label":!0});var D=P(l);a.l(D),D.forEach(q),m.forEach(q),this.h()},h(){E(l,"aria-label",t[22]),E(e,"class","copy-icon-container svelte-1tq4pou")},m(c,m){X(c,e,m),L(e,l),g[u].m(l,null),r=!0,s||(_=z(l,"click",t[43]),s=!0)},p(c,m){let D=u;u=R(c),u!==D&&(ce(),N(g[D],1,1,()=>{g[D]=null}),de(),a=g[u],a||(a=g[u]=f[u](c),a.c()),C(a,1),a.m(l,null)),(!r||m[0]&4194304)&&E(l,"aria-label",c[22])},i(c){r||(C(a),r=!0)},o(c){N(a),r=!1},d(c){c&&q(e),g[u].d(),s=!1,_()}}}function ll(t){let e,l;return e=new fe({props:{name:"copy"}}),{c(){$(e.$$.fragment)},l(u){ee(e.$$.fragment,u)},m(u,a){le(e,u,a),l=!0},i(u){l||(C(e.$$.fragment,u),l=!0)},o(u){N(e.$$.fragment,u),l=!1},d(u){te(e,u)}}}function tl(t){let e,l;return e=new fe({props:{name:"checkmark"}}),{c(){$(e.$$.fragment)},l(u){ee(e.$$.fragment,u)},m(u,a){le(e,u,a),l=!0},i(u){l||(C(e.$$.fragment,u),l=!0)},o(u){N(e.$$.fragment,u),l=!1},d(u){te(e,u)}}}function Ce(t){let e,l,u=t[1].length+"",a,r,s;return{c(){e=V("span"),l=V("span"),a=ue(u),r=ue("/"),s=ue(t[14]),this.h()},l(_){e=H(_,"SPAN",{class:!0});var f=P(e);l=H(f,"SPAN",{class:!0});var g=P(l);a=oe(g,u),g.forEach(q),r=oe(f,"/"),s=oe(f,t[14]),f.forEach(q),this.h()},h(){E(l,"class","svelte-1tq4pou"),h(l,"ok",t[14]-t[1].length>5),h(l,"warn",t[14]-t[1].length<=5),h(l,"error",t[14]===t[1].length),E(e,"class","count svelte-1tq4pou")},m(_,f){X(_,e,f),L(e,l),L(l,a),L(e,r),L(e,s)},p(_,f){f[0]&2&&u!==(u=_[1].length+"")&&se(a,u),f[0]&16386&&h(l,"ok",_[14]-_[1].length>5),f[0]&16386&&h(l,"warn",_[14]-_[1].length<=5),f[0]&16386&&h(l,"error",_[14]===_[1].length),f[0]&16384&&se(s,_[14])},d(_){_&&q(e)}}}function De(t){let e,l;return{c(){e=V("div"),l=ue(t[7]),this.h()},l(u){e=H(u,"DIV",{class:!0});var a=P(e);l=oe(a,t[7]),a.forEach(q),this.h()},h(){E(e,"class","suffix svelte-1tq4pou")},m(u,a){X(u,e,a),L(e,l)},p(u,a){a[0]&128&&se(l,u[7])},d(u){u&&q(e)}}}function nl(t){let e,l,u,a,r,s,_,f,g,R,c,m,D,G,Y,J,B,A,M,O,d,K,ne;l=new Ke({props:{required:t[21],label:t[3],hidden:t[4],for:t[2]}});const Q=t[35]["before-input"],p=he(Q,t,t[34],pe);let b=t[5]&&Te(t),Z=[{class:"input"},{disabled:t[0]},{"data-lpignore":"true"},{maxlength:g=t[14]>0?t[14]:void 0},{placeholder:t[6]},{id:t[2]},{name:t[8]},{spellcheck:t[16]},{required:t[21]},{autocomplete:t[11]},{"data-testid":t[26]},t[32]],W={};for(let n=0;n{b=null}),de()),me(f,W=Je(Z,[{class:"input"},(!d||o[0]&1)&&{disabled:n[0]},{"data-lpignore":"true"},(!d||o[0]&16384&&g!==(g=n[14]>0?n[14]:void 0))&&{maxlength:g},(!d||o[0]&64)&&{placeholder:n[6]},(!d||o[0]&4)&&{id:n[2]},(!d||o[0]&256)&&{name:n[8]},(!d||o[0]&65536)&&{spellcheck:n[16]},(!d||o[0]&2097152)&&{required:n[21]},(!d||o[0]&2048)&&{autocomplete:n[11]},{"data-testid":n[26]},o[1]&2&&n[32]])),o[0]&2&&f.value!==n[1]&&be(f,n[1]),h(f,"disabled",n[0]),h(f,"svelte-1tq4pou",!0);let I=c;c=ae(n),c===I?~c&&S[c].p(n,o):(m&&(ce(),N(S[I],1,1,()=>{S[I]=null}),de()),~c?(m=S[c],m?m.p(n,o):(m=S[c]=y[c](n),m.c()),C(m,1),m.m(s,D)):m=null),n[14]&&!n[0]&&!n[15]?k?k.p(n,o):(k=Ce(n),k.c(),k.m(s,G)):k&&(k.d(1),k=null),n[7]?v?v.p(n,o):(v=De(n),v.c(),v.m(s,null)):v&&(v.d(1),v=null),(!d||o[0]&1)&&h(s,"disabled",n[0]),(!d||o[0]&1048576)&&h(s,"error",n[20]),(!d||o[0]&524288)&&h(s,"noBorder",n[19]),(!d||o[0]&262144|o[1]&1)&&h(s,"unroundLeft",n[18]||n[31]["before-input"]),(!d||o[0]&131072|o[1]&1)&&h(s,"unroundRight",n[17]||n[31]["after-input"]),(!d||o[0]&4096)&&h(s,"invalid",!n[12]),T&&T.p&&(!d||o[0]&1|o[1]&8)&&ke(T,w,n,n[34],d?Le(w,n[34],o,ye):ve(n[34]),Ee),(!d||o[0]&8192)&&se(A,n[13]),(!d||o[0]&1048576&&M!==(M=n[20]?"alert":null))&&E(B,"role",M),(!d||o[0]&4096)&&h(B,"invalid",!n[12]),(!d||o[0]&1048576)&&h(B,"error",n[20]),(!d||o[0]&8192)&&h(B,"hidden",!n[13]),(!d||o[0]&16777216&&O!==(O=_e(Ie("flex flex-col gap-1",n[24]))+" svelte-1tq4pou"))&&E(e,"class",O)},i(n){d||(C(l.$$.fragment,n),C(p,n),C(b),C(m),C(T,n),d=!0)},o(n){N(l.$$.fragment,n),N(p,n),N(b),N(m),N(T,n),d=!1},d(n){n&&q(e),te(l),p&&p.d(n),b&&b.d(),~c&&S[c].d(),k&&k.d(),v&&v.d(),T&&T.d(n),K=!1,ze(ne)}}}function al(t,e,l){const u=["id","value","label","labelHidden","icon","placeholder","suffix","name","copyable","disabled","clearable","autocomplete","valid","hintText","maxLength","hideCount","spellcheck","unroundRight","unroundLeft","noBorder","autoFocus","error","required","copyButtonLabel","clearButtonLabel","class"];let a=qe(e,u),r,{$$slots:s={},$$scope:_}=e;const f=Ge(s);let{id:g}=e,{value:R}=e,{label:c}=e,{labelHidden:m=!1}=e,{icon:D=null}=e,{placeholder:G=""}=e,{suffix:Y=""}=e,{name:J=g}=e,{copyable:B=!1}=e,{disabled:A=!1}=e,{clearable:M=!1}=e,{autocomplete:O="off"}=e,{valid:d=!0}=e,{hintText:K=""}=e,{maxLength:ne=0}=e,{hideCount:Q=!1}=e,{spellcheck:p=null}=e,{unroundRight:b=!1}=e,{unroundLeft:Z=!1}=e,{noBorder:W=!1}=e,{autoFocus:y=!1}=e,{error:S=!1}=e,{required:ae=!1}=e,{copyButtonLabel:k=""}=e,{clearButtonLabel:v=""}=e,{class:w=""}=e,T=e["data-testid"]||g;function n(i){y&&i&&i.focus()}const o=Me();function F(){l(1,R=""),o("clear",{})}const{copy:I,copied:ie}=Qe();Oe(t,ie,i=>l(25,r=i));function Fe(i){x.call(this,t,i)}function Ne(i){x.call(this,t,i)}function Re(i){x.call(this,t,i)}function Ve(i){x.call(this,t,i)}function He(i){x.call(this,t,i)}function Pe(i){x.call(this,t,i)}function Se(){R=this.value,l(1,R)}const Ae=i=>I(i,R);return t.$$set=i=>{l(45,e=re(re({},e),Be(i))),l(32,a=qe(e,u)),"id"in i&&l(2,g=i.id),"value"in i&&l(1,R=i.value),"label"in i&&l(3,c=i.label),"labelHidden"in i&&l(4,m=i.labelHidden),"icon"in i&&l(5,D=i.icon),"placeholder"in i&&l(6,G=i.placeholder),"suffix"in i&&l(7,Y=i.suffix),"name"in i&&l(8,J=i.name),"copyable"in i&&l(9,B=i.copyable),"disabled"in i&&l(0,A=i.disabled),"clearable"in i&&l(10,M=i.clearable),"autocomplete"in i&&l(11,O=i.autocomplete),"valid"in i&&l(12,d=i.valid),"hintText"in i&&l(13,K=i.hintText),"maxLength"in i&&l(14,ne=i.maxLength),"hideCount"in i&&l(15,Q=i.hideCount),"spellcheck"in i&&l(16,p=i.spellcheck),"unroundRight"in i&&l(17,b=i.unroundRight),"unroundLeft"in i&&l(18,Z=i.unroundLeft),"noBorder"in i&&l(19,W=i.noBorder),"autoFocus"in i&&l(33,y=i.autoFocus),"error"in i&&l(20,S=i.error),"required"in i&&l(21,ae=i.required),"copyButtonLabel"in i&&l(22,k=i.copyButtonLabel),"clearButtonLabel"in i&&l(23,v=i.clearButtonLabel),"class"in i&&l(24,w=i.class),"$$scope"in i&&l(34,_=i.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&513&&l(0,A=A||B)},e=Be(e),[A,R,g,c,m,D,G,Y,J,B,M,O,d,K,ne,Q,p,b,Z,W,S,ae,k,v,w,r,T,n,F,I,ie,f,a,y,_,s,Fe,Ne,Re,Ve,He,Pe,Se,Ae]}class hl extends Xe{constructor(e){super(),Ye(this,e,al,nl,Ue,{id:2,value:1,label:3,labelHidden:4,icon:5,placeholder:6,suffix:7,name:8,copyable:9,disabled:0,clearable:10,autocomplete:11,valid:12,hintText:13,maxLength:14,hideCount:15,spellcheck:16,unroundRight:17,unroundLeft:18,noBorder:19,autoFocus:33,error:20,required:21,copyButtonLabel:22,clearButtonLabel:23,class:24},null,[-1,-1])}}export{hl as I}; diff --git a/ui/assets/local/_app/immutable/chunks/is-http.6riBcNrE.js b/ui/assets/local/_app/immutable/chunks/is-http.d0DfcwIt.js similarity index 80% rename from ui/assets/local/_app/immutable/chunks/is-http.6riBcNrE.js rename to ui/assets/local/_app/immutable/chunks/is-http.d0DfcwIt.js index 80171b586d..cd08a007a3 100644 --- a/ui/assets/local/_app/immutable/chunks/is-http.6riBcNrE.js +++ b/ui/assets/local/_app/immutable/chunks/is-http.d0DfcwIt.js @@ -1 +1 @@ -import{w as r}from"./entry.1BQh90wu.js";import{p as t}from"./persist-store.yDfC1oT_.js";import{h as c}from"./has.Hk4nWl3x.js";const f=t("endpoint",null,!0),d=t("passAccessToken",!1,!0),m=t("includeCredentials",!1,!0),p=t("overrideRemoteCodecConfiguration",!1,!0),e=r("notRequested"),a=r("");function g(s){e.set("error"),s&&c(s,"message")&&typeof s.message=="string"?a.set(s.message):a.set("")}function E(){e.set("success")}function v(){e.set("notRequested")}const o=s=>(s==null?void 0:s.substring(0,8))==="https://",n=s=>(s==null?void 0:s.substring(0,7))==="http://",C=s=>n(s)||o(s);export{E as a,C as b,f as c,m as i,e as l,p as o,d as p,v as r,g as s,o as v}; +import{w as r}from"./entry.6mxJxwSM.js";import{p as t}from"./persist-store.cEgNkZhn.js";import{h as c}from"./has.Hk4nWl3x.js";const f=t("endpoint",null,!0),d=t("passAccessToken",!1,!0),m=t("includeCredentials",!1,!0),p=t("overrideRemoteCodecConfiguration",!1,!0),e=r("notRequested"),a=r("");function g(s){e.set("error"),s&&c(s,"message")&&typeof s.message=="string"?a.set(s.message):a.set("")}function E(){e.set("success")}function v(){e.set("notRequested")}const o=s=>(s==null?void 0:s.substring(0,8))==="https://",n=s=>(s==null?void 0:s.substring(0,7))==="http://",C=s=>n(s)||o(s);export{E as a,C as b,f as c,m as i,e as l,p as o,d as p,v as r,g as s,o as v}; diff --git a/ui/assets/local/_app/immutable/chunks/java.TaV9TSzJ.js b/ui/assets/local/_app/immutable/chunks/java.TaV9TSzJ.js new file mode 100644 index 0000000000..1bdf822ec4 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/java.TaV9TSzJ.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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)|(?:))")}}},t={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"]]}};export{e as conf,t as language}; diff --git a/ui/assets/local/_app/immutable/chunks/javascript.nSubN90U.js b/ui/assets/local/_app/immutable/chunks/javascript.nSubN90U.js new file mode 100644 index 0000000000..6c4d0f1a62 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/javascript.nSubN90U.js @@ -0,0 +1,6 @@ +import{conf as t,language as e}from"./typescript.FaBf3sEe.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 + *-----------------------------------------------------------------------------*/var i=t,o={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:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{i as conf,o as language}; diff --git a/ui/assets/local/_app/immutable/chunks/jsonMode.RJzdksEY.js b/ui/assets/local/_app/immutable/chunks/jsonMode.RJzdksEY.js new file mode 100644 index 0000000000..ee206bb6ec --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/jsonMode.RJzdksEY.js @@ -0,0 +1,15 @@ +import{m as Lt}from"./index.RJsVUSS8.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 + *-----------------------------------------------------------------------------*/var Ot=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,Rt=Object.getOwnPropertyNames,Mt=Object.prototype.hasOwnProperty,le=(e,r,i,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of Rt(r))!Mt.call(e,t)&&t!==i&&Ot(e,t,{get:()=>r[t],enumerable:!(n=Nt(r,t))||n.enumerable});return e},Dt=(e,r,i)=>(le(e,r,"default"),i&&le(i,r,"default")),f={};Dt(f,Lt);var Ft=2*60*1e3,Ut=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>Ft&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=f.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let r;return this._getClient().then(i=>{r=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>r)}},fe;(function(e){function r(i){return typeof i=="string"}e.is=r})(fe||(fe={}));var Q;(function(e){function r(i){return typeof i=="string"}e.is=r})(Q||(Q={}));var de;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function r(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=r})(de||(de={}));var W;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function r(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=r})(W||(W={}));var O;(function(e){function r(n,t){return n===Number.MAX_VALUE&&(n=W.MAX_VALUE),t===Number.MAX_VALUE&&(t=W.MAX_VALUE),{line:n,character:t}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&a.uinteger(t.line)&&a.uinteger(t.character)}e.is=i})(O||(O={}));var m;(function(e){function r(n,t,o,s){if(a.uinteger(n)&&a.uinteger(t)&&a.uinteger(o)&&a.uinteger(s))return{start:O.create(n,t),end:O.create(o,s)};if(O.is(n)&&O.is(t))return{start:n,end:t};throw new Error(`Range#create called with invalid arguments[${n}, ${t}, ${o}, ${s}]`)}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&O.is(t.start)&&O.is(t.end)}e.is=i})(m||(m={}));var H;(function(e){function r(n,t){return{uri:n,range:t}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&m.is(t.range)&&(a.string(t.uri)||a.undefined(t.uri))}e.is=i})(H||(H={}));var ge;(function(e){function r(n,t,o,s){return{targetUri:n,targetRange:t,targetSelectionRange:o,originSelectionRange:s}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&m.is(t.targetRange)&&a.string(t.targetUri)&&m.is(t.targetSelectionRange)&&(m.is(t.originSelectionRange)||a.undefined(t.originSelectionRange))}e.is=i})(ge||(ge={}));var Y;(function(e){function r(n,t,o,s){return{red:n,green:t,blue:o,alpha:s}}e.create=r;function i(n){const t=n;return a.objectLiteral(t)&&a.numberRange(t.red,0,1)&&a.numberRange(t.green,0,1)&&a.numberRange(t.blue,0,1)&&a.numberRange(t.alpha,0,1)}e.is=i})(Y||(Y={}));var pe;(function(e){function r(n,t){return{range:n,color:t}}e.create=r;function i(n){const t=n;return a.objectLiteral(t)&&m.is(t.range)&&Y.is(t.color)}e.is=i})(pe||(pe={}));var ve;(function(e){function r(n,t,o){return{label:n,textEdit:t,additionalTextEdits:o}}e.create=r;function i(n){const t=n;return a.objectLiteral(t)&&a.string(t.label)&&(a.undefined(t.textEdit)||T.is(t))&&(a.undefined(t.additionalTextEdits)||a.typedArray(t.additionalTextEdits,T.is))}e.is=i})(ve||(ve={}));var P;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(P||(P={}));var me;(function(e){function r(n,t,o,s,u,g){const c={startLine:n,endLine:t};return a.defined(o)&&(c.startCharacter=o),a.defined(s)&&(c.endCharacter=s),a.defined(u)&&(c.kind=u),a.defined(g)&&(c.collapsedText=g),c}e.create=r;function i(n){const t=n;return a.objectLiteral(t)&&a.uinteger(t.startLine)&&a.uinteger(t.startLine)&&(a.undefined(t.startCharacter)||a.uinteger(t.startCharacter))&&(a.undefined(t.endCharacter)||a.uinteger(t.endCharacter))&&(a.undefined(t.kind)||a.string(t.kind))}e.is=i})(me||(me={}));var G;(function(e){function r(n,t){return{location:n,message:t}}e.create=r;function i(n){let t=n;return a.defined(t)&&H.is(t.location)&&a.string(t.message)}e.is=i})(G||(G={}));var F;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(F||(F={}));var he;(function(e){e.Unnecessary=1,e.Deprecated=2})(he||(he={}));var _e;(function(e){function r(i){const n=i;return a.objectLiteral(n)&&a.string(n.href)}e.is=r})(_e||(_e={}));var z;(function(e){function r(n,t,o,s,u,g){let c={range:n,message:t};return a.defined(o)&&(c.severity=o),a.defined(s)&&(c.code=s),a.defined(u)&&(c.source=u),a.defined(g)&&(c.relatedInformation=g),c}e.create=r;function i(n){var t;let o=n;return a.defined(o)&&m.is(o.range)&&a.string(o.message)&&(a.number(o.severity)||a.undefined(o.severity))&&(a.integer(o.code)||a.string(o.code)||a.undefined(o.code))&&(a.undefined(o.codeDescription)||a.string((t=o.codeDescription)===null||t===void 0?void 0:t.href))&&(a.string(o.source)||a.undefined(o.source))&&(a.undefined(o.relatedInformation)||a.typedArray(o.relatedInformation,G.is))}e.is=i})(z||(z={}));var U;(function(e){function r(n,t,...o){let s={title:n,command:t};return a.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=r;function i(n){let t=n;return a.defined(t)&&a.string(t.title)&&a.string(t.command)}e.is=i})(U||(U={}));var T;(function(e){function r(o,s){return{range:o,newText:s}}e.replace=r;function i(o,s){return{range:{start:o,end:o},newText:s}}e.insert=i;function n(o){return{range:o,newText:""}}e.del=n;function t(o){const s=o;return a.objectLiteral(s)&&a.string(s.newText)&&m.is(s.range)}e.is=t})(T||(T={}));var Z;(function(e){function r(n,t,o){const s={label:n};return t!==void 0&&(s.needsConfirmation=t),o!==void 0&&(s.description=o),s}e.create=r;function i(n){const t=n;return a.objectLiteral(t)&&a.string(t.label)&&(a.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(a.string(t.description)||t.description===void 0)}e.is=i})(Z||(Z={}));var j;(function(e){function r(i){const n=i;return a.string(n)}e.is=r})(j||(j={}));var ke;(function(e){function r(o,s,u){return{range:o,newText:s,annotationId:u}}e.replace=r;function i(o,s,u){return{range:{start:o,end:o},newText:s,annotationId:u}}e.insert=i;function n(o,s){return{range:o,newText:"",annotationId:s}}e.del=n;function t(o){const s=o;return T.is(s)&&(Z.is(s.annotationId)||j.is(s.annotationId))}e.is=t})(ke||(ke={}));var K;(function(e){function r(n,t){return{textDocument:n,edits:t}}e.create=r;function i(n){let t=n;return a.defined(t)&&re.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(K||(K={}));var C;(function(e){function r(n,t,o){let s={kind:"create",uri:n};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(s.options=t),o!==void 0&&(s.annotationId=o),s}e.create=r;function i(n){let t=n;return t&&t.kind==="create"&&a.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||a.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||a.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||j.is(t.annotationId))}e.is=i})(C||(C={}));var ee;(function(e){function r(n,t,o,s){let u={kind:"rename",oldUri:n,newUri:t};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(u.options=o),s!==void 0&&(u.annotationId=s),u}e.create=r;function i(n){let t=n;return t&&t.kind==="rename"&&a.string(t.oldUri)&&a.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||a.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||a.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||j.is(t.annotationId))}e.is=i})(ee||(ee={}));var te;(function(e){function r(n,t,o){let s={kind:"delete",uri:n};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(s.options=t),o!==void 0&&(s.annotationId=o),s}e.create=r;function i(n){let t=n;return t&&t.kind==="delete"&&a.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||a.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||a.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||j.is(t.annotationId))}e.is=i})(te||(te={}));var ne;(function(e){function r(i){let n=i;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(t=>a.string(t.kind)?C.is(t)||ee.is(t)||te.is(t):K.is(t)))}e.is=r})(ne||(ne={}));var be;(function(e){function r(n){return{uri:n}}e.create=r;function i(n){let t=n;return a.defined(t)&&a.string(t.uri)}e.is=i})(be||(be={}));var we;(function(e){function r(n,t){return{uri:n,version:t}}e.create=r;function i(n){let t=n;return a.defined(t)&&a.string(t.uri)&&a.integer(t.version)}e.is=i})(we||(we={}));var re;(function(e){function r(n,t){return{uri:n,version:t}}e.create=r;function i(n){let t=n;return a.defined(t)&&a.string(t.uri)&&(t.version===null||a.integer(t.version))}e.is=i})(re||(re={}));var Ae;(function(e){function r(n,t,o,s){return{uri:n,languageId:t,version:o,text:s}}e.create=r;function i(n){let t=n;return a.defined(t)&&a.string(t.uri)&&a.string(t.languageId)&&a.integer(t.version)&&a.string(t.text)}e.is=i})(Ae||(Ae={}));var ie;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function r(i){const n=i;return n===e.PlainText||n===e.Markdown}e.is=r})(ie||(ie={}));var S;(function(e){function r(i){const n=i;return a.objectLiteral(i)&&ie.is(n.kind)&&a.string(n.value)}e.is=r})(S||(S={}));var h;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(h||(h={}));var oe;(function(e){e.PlainText=1,e.Snippet=2})(oe||(oe={}));var Ie;(function(e){e.Deprecated=1})(Ie||(Ie={}));var Ee;(function(e){function r(n,t,o){return{newText:n,insert:t,replace:o}}e.create=r;function i(n){const t=n;return t&&a.string(t.newText)&&m.is(t.insert)&&m.is(t.replace)}e.is=i})(Ee||(Ee={}));var Le;(function(e){e.asIs=1,e.adjustIndentation=2})(Le||(Le={}));var Oe;(function(e){function r(i){const n=i;return n&&(a.string(n.detail)||n.detail===void 0)&&(a.string(n.description)||n.description===void 0)}e.is=r})(Oe||(Oe={}));var Ne;(function(e){function r(i){return{label:i}}e.create=r})(Ne||(Ne={}));var Re;(function(e){function r(i,n){return{items:i||[],isIncomplete:!!n}}e.create=r})(Re||(Re={}));var X;(function(e){function r(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=r;function i(n){const t=n;return a.string(t)||a.objectLiteral(t)&&a.string(t.language)&&a.string(t.value)}e.is=i})(X||(X={}));var Me;(function(e){function r(i){let n=i;return!!n&&a.objectLiteral(n)&&(S.is(n.contents)||X.is(n.contents)||a.typedArray(n.contents,X.is))&&(i.range===void 0||m.is(i.range))}e.is=r})(Me||(Me={}));var De;(function(e){function r(i,n){return n?{label:i,documentation:n}:{label:i}}e.create=r})(De||(De={}));var Fe;(function(e){function r(i,n,...t){let o={label:i};return a.defined(n)&&(o.documentation=n),a.defined(t)?o.parameters=t:o.parameters=[],o}e.create=r})(Fe||(Fe={}));var V;(function(e){e.Text=1,e.Read=2,e.Write=3})(V||(V={}));var Ue;(function(e){function r(i,n){let t={range:i};return a.number(n)&&(t.kind=n),t}e.create=r})(Ue||(Ue={}));var _;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(_||(_={}));var Te;(function(e){e.Deprecated=1})(Te||(Te={}));var je;(function(e){function r(i,n,t,o,s){let u={name:i,kind:n,location:{uri:o,range:t}};return s&&(u.containerName=s),u}e.create=r})(je||(je={}));var xe;(function(e){function r(i,n,t,o){return o!==void 0?{name:i,kind:n,location:{uri:t,range:o}}:{name:i,kind:n,location:{uri:t}}}e.create=r})(xe||(xe={}));var ye;(function(e){function r(n,t,o,s,u,g){let c={name:n,detail:t,kind:o,range:s,selectionRange:u};return g!==void 0&&(c.children=g),c}e.create=r;function i(n){let t=n;return t&&a.string(t.name)&&a.number(t.kind)&&m.is(t.range)&&m.is(t.selectionRange)&&(t.detail===void 0||a.string(t.detail))&&(t.deprecated===void 0||a.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}e.is=i})(ye||(ye={}));var Pe;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Pe||(Pe={}));var q;(function(e){e.Invoked=1,e.Automatic=2})(q||(q={}));var Ve;(function(e){function r(n,t,o){let s={diagnostics:n};return t!=null&&(s.only=t),o!=null&&(s.triggerKind=o),s}e.create=r;function i(n){let t=n;return a.defined(t)&&a.typedArray(t.diagnostics,z.is)&&(t.only===void 0||a.typedArray(t.only,a.string))&&(t.triggerKind===void 0||t.triggerKind===q.Invoked||t.triggerKind===q.Automatic)}e.is=i})(Ve||(Ve={}));var Se;(function(e){function r(n,t,o){let s={title:n},u=!0;return typeof t=="string"?(u=!1,s.kind=t):U.is(t)?s.command=t:s.edit=t,u&&o!==void 0&&(s.kind=o),s}e.create=r;function i(n){let t=n;return t&&a.string(t.title)&&(t.diagnostics===void 0||a.typedArray(t.diagnostics,z.is))&&(t.kind===void 0||a.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||U.is(t.command))&&(t.isPreferred===void 0||a.boolean(t.isPreferred))&&(t.edit===void 0||ne.is(t.edit))}e.is=i})(Se||(Se={}));var Be;(function(e){function r(n,t){let o={range:n};return a.defined(t)&&(o.data=t),o}e.create=r;function i(n){let t=n;return a.defined(t)&&m.is(t.range)&&(a.undefined(t.command)||U.is(t.command))}e.is=i})(Be||(Be={}));var We;(function(e){function r(n,t){return{tabSize:n,insertSpaces:t}}e.create=r;function i(n){let t=n;return a.defined(t)&&a.uinteger(t.tabSize)&&a.boolean(t.insertSpaces)}e.is=i})(We||(We={}));var He;(function(e){function r(n,t,o){return{range:n,target:t,data:o}}e.create=r;function i(n){let t=n;return a.defined(t)&&m.is(t.range)&&(a.undefined(t.target)||a.string(t.target))}e.is=i})(He||(He={}));var ze;(function(e){function r(n,t){return{range:n,parent:t}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&m.is(t.range)&&(t.parent===void 0||e.is(t.parent))}e.is=i})(ze||(ze={}));var Xe;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Xe||(Xe={}));var qe;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(qe||(qe={}));var Je;(function(e){function r(i){const n=i;return a.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}e.is=r})(Je||(Je={}));var $e;(function(e){function r(n,t){return{range:n,text:t}}e.create=r;function i(n){const t=n;return t!=null&&m.is(t.range)&&a.string(t.text)}e.is=i})($e||($e={}));var Qe;(function(e){function r(n,t,o){return{range:n,variableName:t,caseSensitiveLookup:o}}e.create=r;function i(n){const t=n;return t!=null&&m.is(t.range)&&a.boolean(t.caseSensitiveLookup)&&(a.string(t.variableName)||t.variableName===void 0)}e.is=i})(Qe||(Qe={}));var Ye;(function(e){function r(n,t){return{range:n,expression:t}}e.create=r;function i(n){const t=n;return t!=null&&m.is(t.range)&&(a.string(t.expression)||t.expression===void 0)}e.is=i})(Ye||(Ye={}));var Ge;(function(e){function r(n,t){return{frameId:n,stoppedLocation:t}}e.create=r;function i(n){const t=n;return a.defined(t)&&m.is(n.stoppedLocation)}e.is=i})(Ge||(Ge={}));var se;(function(e){e.Type=1,e.Parameter=2;function r(i){return i===1||i===2}e.is=r})(se||(se={}));var ae;(function(e){function r(n){return{value:n}}e.create=r;function i(n){const t=n;return a.objectLiteral(t)&&(t.tooltip===void 0||a.string(t.tooltip)||S.is(t.tooltip))&&(t.location===void 0||H.is(t.location))&&(t.command===void 0||U.is(t.command))}e.is=i})(ae||(ae={}));var Ze;(function(e){function r(n,t,o){const s={position:n,label:t};return o!==void 0&&(s.kind=o),s}e.create=r;function i(n){const t=n;return a.objectLiteral(t)&&O.is(t.position)&&(a.string(t.label)||a.typedArray(t.label,ae.is))&&(t.kind===void 0||se.is(t.kind))&&t.textEdits===void 0||a.typedArray(t.textEdits,T.is)&&(t.tooltip===void 0||a.string(t.tooltip)||S.is(t.tooltip))&&(t.paddingLeft===void 0||a.boolean(t.paddingLeft))&&(t.paddingRight===void 0||a.boolean(t.paddingRight))}e.is=i})(Ze||(Ze={}));var Ke;(function(e){function r(i){return{kind:"snippet",value:i}}e.createSnippet=r})(Ke||(Ke={}));var Ce;(function(e){function r(i,n,t,o){return{insertText:i,filterText:n,range:t,command:o}}e.create=r})(Ce||(Ce={}));var et;(function(e){function r(i){return{items:i}}e.create=r})(et||(et={}));var tt;(function(e){e.Invoked=0,e.Automatic=1})(tt||(tt={}));var nt;(function(e){function r(i,n){return{range:i,text:n}}e.create=r})(nt||(nt={}));var rt;(function(e){function r(i,n){return{triggerKind:i,selectedCompletionInfo:n}}e.create=r})(rt||(rt={}));var it;(function(e){function r(i){const n=i;return a.objectLiteral(n)&&Q.is(n.uri)&&a.string(n.name)}e.is=r})(it||(it={}));var ot;(function(e){function r(o,s,u,g){return new Tt(o,s,u,g)}e.create=r;function i(o){let s=o;return!!(a.defined(s)&&a.string(s.uri)&&(a.undefined(s.languageId)||a.string(s.languageId))&&a.uinteger(s.lineCount)&&a.func(s.getText)&&a.func(s.positionAt)&&a.func(s.offsetAt))}e.is=i;function n(o,s){let u=o.getText(),g=t(s,(v,d)=>{let k=v.range.start.line-d.range.start.line;return k===0?v.range.start.character-d.range.start.character:k}),c=u.length;for(let v=g.length-1;v>=0;v--){let d=g[v],k=o.offsetAt(d.range.start),p=o.offsetAt(d.range.end);if(p<=c)u=u.substring(0,k)+d.newText+u.substring(p,u.length);else throw new Error("Overlapping edit");c=k}return u}e.applyEdits=n;function t(o,s){if(o.length<=1)return o;const u=o.length/2|0,g=o.slice(0,u),c=o.slice(u);t(g,s),t(c,s);let v=0,d=0,k=0;for(;v0&&e.push(r.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let r=this.getLineOffsets(),i=0,n=r.length;if(n===0)return O.create(0,e);for(;ie?n=o:i=o+1}let t=i-1;return O.create(t,e-r[t])}offsetAt(e){let r=this.getLineOffsets();if(e.line>=r.length)return this._content.length;if(e.line<0)return 0;let i=r[e.line],n=e.line+1"u"}e.undefined=n;function t(p){return p===!0||p===!1}e.boolean=t;function o(p){return r.call(p)==="[object String]"}e.string=o;function s(p){return r.call(p)==="[object Number]"}e.number=s;function u(p,N,J){return r.call(p)==="[object Number]"&&N<=p&&p<=J}e.numberRange=u;function g(p){return r.call(p)==="[object Number]"&&-2147483648<=p&&p<=2147483647}e.integer=g;function c(p){return r.call(p)==="[object Number]"&&0<=p&&p<=2147483647}e.uinteger=c;function v(p){return r.call(p)==="[object Function]"}e.func=v;function d(p){return p!==null&&typeof p=="object"}e.objectLiteral=d;function k(p,N){return Array.isArray(p)&&p.every(N)}e.typedArray=k})(a||(a={}));var jt=class{constructor(e,r,i){this._languageId=e,this._worker=r,this._disposables=[],this._listener=Object.create(null);const n=o=>{let s=o.getLanguageId();if(s!==this._languageId)return;let u;this._listener[o.uri.toString()]=o.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(o.uri,s),500)}),this._doValidate(o.uri,s)},t=o=>{f.editor.setModelMarkers(o,this._languageId,[]);let s=o.uri.toString(),u=this._listener[s];u&&(u.dispose(),delete this._listener[s])};this._disposables.push(f.editor.onDidCreateModel(n)),this._disposables.push(f.editor.onWillDisposeModel(t)),this._disposables.push(f.editor.onDidChangeModelLanguage(o=>{t(o.model),n(o.model)})),this._disposables.push(i(o=>{f.editor.getModels().forEach(s=>{s.getLanguageId()===this._languageId&&(t(s),n(s))})})),this._disposables.push({dispose:()=>{f.editor.getModels().forEach(t);for(let o in this._listener)this._listener[o].dispose()}}),f.editor.getModels().forEach(n)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,r){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const n=i.map(o=>yt(e,o));let t=f.editor.getModel(e);t&&t.getLanguageId()===r&&f.editor.setModelMarkers(t,r,n)}).then(void 0,i=>{console.error(i)})}};function xt(e){switch(e){case F.Error:return f.MarkerSeverity.Error;case F.Warning:return f.MarkerSeverity.Warning;case F.Information:return f.MarkerSeverity.Info;case F.Hint:return f.MarkerSeverity.Hint;default:return f.MarkerSeverity.Info}}function yt(e,r){let i=typeof r.code=="number"?String(r.code):r.code;return{severity:xt(r.severity),startLineNumber:r.range.start.line+1,startColumn:r.range.start.character+1,endLineNumber:r.range.end.line+1,endColumn:r.range.end.character+1,message:r.message,code:i,source:r.source}}var Pt=class{constructor(e,r){this._worker=e,this._triggerCharacters=r}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,r,i,n){const t=e.uri;return this._worker(t).then(o=>o.doComplete(t.toString(),R(r))).then(o=>{if(!o)return;const s=e.getWordUntilPosition(r),u=new f.Range(r.lineNumber,s.startColumn,r.lineNumber,s.endColumn),g=o.items.map(c=>{const v={label:c.label,insertText:c.insertText||c.label,sortText:c.sortText,filterText:c.filterText,documentation:c.documentation,detail:c.detail,command:Bt(c.command),range:u,kind:St(c.kind)};return c.textEdit&&(Vt(c.textEdit)?v.range={insert:w(c.textEdit.insert),replace:w(c.textEdit.replace)}:v.range=w(c.textEdit.range),v.insertText=c.textEdit.newText),c.additionalTextEdits&&(v.additionalTextEdits=c.additionalTextEdits.map(B)),c.insertTextFormat===oe.Snippet&&(v.insertTextRules=f.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:o.isIncomplete,suggestions:g}})}};function R(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function vt(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function w(e){if(e)return new f.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function Vt(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function St(e){const r=f.languages.CompletionItemKind;switch(e){case h.Text:return r.Text;case h.Method:return r.Method;case h.Function:return r.Function;case h.Constructor:return r.Constructor;case h.Field:return r.Field;case h.Variable:return r.Variable;case h.Class:return r.Class;case h.Interface:return r.Interface;case h.Module:return r.Module;case h.Property:return r.Property;case h.Unit:return r.Unit;case h.Value:return r.Value;case h.Enum:return r.Enum;case h.Keyword:return r.Keyword;case h.Snippet:return r.Snippet;case h.Color:return r.Color;case h.File:return r.File;case h.Reference:return r.Reference}return r.Property}function B(e){if(e)return{range:w(e.range),text:e.newText}}function Bt(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Wt=class{constructor(e){this._worker=e}provideHover(e,r,i){let n=e.uri;return this._worker(n).then(t=>t.doHover(n.toString(),R(r))).then(t=>{if(t)return{range:w(t.range),contents:zt(t.contents)}})}};function Ht(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function st(e){return typeof e=="string"?{value:e}:Ht(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` +`+e.value+"\n```\n"}}function zt(e){if(e)return Array.isArray(e)?e.map(st):[st(e)]}var hn=class{constructor(e){this._worker=e}provideDocumentHighlights(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.findDocumentHighlights(n.toString(),R(r))).then(t=>{if(t)return t.map(o=>({range:w(o.range),kind:Xt(o.kind)}))})}};function Xt(e){switch(e){case V.Read:return f.languages.DocumentHighlightKind.Read;case V.Write:return f.languages.DocumentHighlightKind.Write;case V.Text:return f.languages.DocumentHighlightKind.Text}return f.languages.DocumentHighlightKind.Text}var _n=class{constructor(e){this._worker=e}provideDefinition(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.findDefinition(n.toString(),R(r))).then(t=>{if(t)return[mt(t)]})}};function mt(e){return{uri:f.Uri.parse(e.uri),range:w(e.range)}}var kn=class{constructor(e){this._worker=e}provideReferences(e,r,i,n){const t=e.uri;return this._worker(t).then(o=>o.findReferences(t.toString(),R(r))).then(o=>{if(o)return o.map(mt)})}},bn=class{constructor(e){this._worker=e}provideRenameEdits(e,r,i,n){const t=e.uri;return this._worker(t).then(o=>o.doRename(t.toString(),R(r),i)).then(o=>qt(o))}};function qt(e){if(!e||!e.changes)return;let r=[];for(let i in e.changes){const n=f.Uri.parse(i);for(let t of e.changes[i])r.push({resource:n,versionId:void 0,textEdit:{range:w(t.range),text:t.newText}})}return{edits:r}}var Jt=class{constructor(e){this._worker=e}provideDocumentSymbols(e,r){const i=e.uri;return this._worker(i).then(n=>n.findDocumentSymbols(i.toString())).then(n=>{if(n)return n.map(t=>$t(t)?ht(t):{name:t.name,detail:"",containerName:t.containerName,kind:_t(t.kind),range:w(t.location.range),selectionRange:w(t.location.range),tags:[]})})}};function $t(e){return"children"in e}function ht(e){return{name:e.name,detail:e.detail??"",kind:_t(e.kind),range:w(e.range),selectionRange:w(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map(r=>ht(r))}}function _t(e){let r=f.languages.SymbolKind;switch(e){case _.File:return r.File;case _.Module:return r.Module;case _.Namespace:return r.Namespace;case _.Package:return r.Package;case _.Class:return r.Class;case _.Method:return r.Method;case _.Property:return r.Property;case _.Field:return r.Field;case _.Constructor:return r.Constructor;case _.Enum:return r.Enum;case _.Interface:return r.Interface;case _.Function:return r.Function;case _.Variable:return r.Variable;case _.Constant:return r.Constant;case _.String:return r.String;case _.Number:return r.Number;case _.Boolean:return r.Boolean;case _.Array:return r.Array}return r.Function}var wn=class{constructor(e){this._worker=e}provideLinks(e,r){const i=e.uri;return this._worker(i).then(n=>n.findDocumentLinks(i.toString())).then(n=>{if(n)return{links:n.map(t=>({range:w(t.range),url:t.target}))}})}},Qt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.format(n.toString(),null,kt(r)).then(o=>{if(!(!o||o.length===0))return o.map(B)}))}},Yt=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,r,i,n){const t=e.uri;return this._worker(t).then(o=>o.format(t.toString(),vt(r),kt(i)).then(s=>{if(!(!s||s.length===0))return s.map(B)}))}};function kt(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Gt=class{constructor(e){this._worker=e}provideDocumentColors(e,r){const i=e.uri;return this._worker(i).then(n=>n.findDocumentColors(i.toString())).then(n=>{if(n)return n.map(t=>({color:t.color,range:w(t.range)}))})}provideColorPresentations(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.getColorPresentations(n.toString(),r.color,vt(r.range))).then(t=>{if(t)return t.map(o=>{let s={label:o.label};return o.textEdit&&(s.textEdit=B(o.textEdit)),o.additionalTextEdits&&(s.additionalTextEdits=o.additionalTextEdits.map(B)),s})})}},Zt=class{constructor(e){this._worker=e}provideFoldingRanges(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.getFoldingRanges(n.toString(),r)).then(t=>{if(t)return t.map(o=>{const s={start:o.startLine+1,end:o.endLine+1};return typeof o.kind<"u"&&(s.kind=Kt(o.kind)),s})})}};function Kt(e){switch(e){case P.Comment:return f.languages.FoldingRangeKind.Comment;case P.Imports:return f.languages.FoldingRangeKind.Imports;case P.Region:return f.languages.FoldingRangeKind.Region}}var Ct=class{constructor(e){this._worker=e}provideSelectionRanges(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.getSelectionRanges(n.toString(),r.map(R))).then(t=>{if(t)return t.map(o=>{const s=[];for(;o;)s.push({range:w(o.range)}),o=o.parent;return s})})}};function en(e,r=!1){const i=e.length;let n=0,t="",o=0,s=16,u=0,g=0,c=0,v=0,d=0;function k(l,A){let L=0,I=0;for(;L=48&&b<=57)I=I*16+b-48;else if(b>=65&&b<=70)I=I*16+b-65+10;else if(b>=97&&b<=102)I=I*16+b-97+10;else break;n++,L++}return L=i){l+=e.substring(A,n),d=2;break}const L=e.charCodeAt(n);if(L===34){l+=e.substring(A,n),n++;break}if(L===92){if(l+=e.substring(A,n),n++,n>=i){d=2;break}switch(e.charCodeAt(n++)){case 34:l+='"';break;case 92:l+="\\";break;case 47:l+="/";break;case 98:l+="\b";break;case 102:l+="\f";break;case 110:l+=` +`;break;case 114:l+="\r";break;case 116:l+=" ";break;case 117:const b=k(4,!0);b>=0?l+=String.fromCharCode(b):d=4;break;default:d=5}A=n;continue}if(L>=0&&L<=31)if(x(L)){l+=e.substring(A,n),d=2;break}else d=6;n++}return l}function ce(){if(t="",d=0,o=n,g=u,v=c,n>=i)return o=i,s=17;let l=e.charCodeAt(n);if($(l)){do n++,t+=String.fromCharCode(l),l=e.charCodeAt(n);while($(l));return s=15}if(x(l))return n++,t+=String.fromCharCode(l),l===13&&e.charCodeAt(n)===10&&(n++,t+=` +`),u++,c=n,s=14;switch(l){case 123:return n++,s=1;case 125:return n++,s=2;case 91:return n++,s=3;case 93:return n++,s=4;case 58:return n++,s=6;case 44:return n++,s=5;case 34:return n++,t=J(),s=10;case 47:const A=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n=12&&l<=15);return l}return{setPosition:p,getPosition:()=>n,scan:r?Et:ce,getToken:()=>s,getTokenValue:()=>t,getTokenOffset:()=>o,getTokenLength:()=>n-o,getTokenStartLine:()=>g,getTokenStartCharacter:()=>o-v,getTokenError:()=>d}}function $(e){return e===32||e===9}function x(e){return e===10||e===13}function M(e){return e>=48&&e<=57}var at;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",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.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(at||(at={}));new Array(20).fill(0).map((e,r)=>" ".repeat(r));var D=200;new Array(D).fill(0).map((e,r)=>` +`+" ".repeat(r)),new Array(D).fill(0).map((e,r)=>"\r"+" ".repeat(r)),new Array(D).fill(0).map((e,r)=>`\r +`+" ".repeat(r)),new Array(D).fill(0).map((e,r)=>` +`+" ".repeat(r)),new Array(D).fill(0).map((e,r)=>"\r"+" ".repeat(r)),new Array(D).fill(0).map((e,r)=>`\r +`+" ".repeat(r));var ut;(function(e){e.DEFAULT={allowTrailingComma:!1}})(ut||(ut={}));var tn=en,ct;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(ct||(ct={}));var lt;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(lt||(lt={}));var ft;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(ft||(ft={}));function nn(e){return{getInitialState:()=>new wt(null,null,!1,null),tokenize:(r,i)=>gn(e,r,i)}}var dt="delimiter.bracket.json",gt="delimiter.array.json",rn="delimiter.colon.json",on="delimiter.comma.json",sn="keyword.json",an="keyword.json",un="string.value.json",cn="number.json",ln="string.key.json",fn="comment.block.json",dn="comment.line.json",y=class bt{constructor(r,i){this.parent=r,this.type=i}static pop(r){return r?r.parent:null}static push(r,i){return new bt(r,i)}static equals(r,i){if(!r&&!i)return!0;if(!r||!i)return!1;for(;r&&i;){if(r===i)return!0;if(r.type!==i.type)return!1;r=r.parent,i=i.parent}return!0}},wt=class ue{constructor(r,i,n,t){this._state=r,this.scanError=i,this.lastWasColon=n,this.parents=t}clone(){return new ue(this._state,this.scanError,this.lastWasColon,this.parents)}equals(r){return r===this?!0:!r||!(r instanceof ue)?!1:this.scanError===r.scanError&&this.lastWasColon===r.lastWasColon&&y.equals(this.parents,r.parents)}getStateData(){return this._state}setStateData(r){this._state=r}};function gn(e,r,i,n=0){let t=0,o=!1;switch(i.scanError){case 2:r='"'+r,t=1;break;case 1:r="/*"+r,t=2;break}const s=tn(r);let u=i.lastWasColon,g=i.parents;const c={tokens:[],endState:i.clone()};for(;;){let v=n+s.getPosition(),d="";const k=s.scan();if(k===17)break;if(v===n+s.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+r.substr(s.getPosition(),3));switch(o&&(v-=t),o=t>0,k){case 1:g=y.push(g,0),d=dt,u=!1;break;case 2:g=y.pop(g),d=dt,u=!1;break;case 3:g=y.push(g,1),d=gt,u=!1;break;case 4:g=y.pop(g),d=gt,u=!1;break;case 6:d=rn,u=!0;break;case 5:d=on,u=!1;break;case 8:case 9:d=sn,u=!1;break;case 7:d=an,u=!1;break;case 10:const N=(g?g.type:0)===1;d=u||N?un:ln,u=!1;break;case 11:d=cn,u=!1;break}if(e)switch(k){case 12:d=dn;break;case 13:d=fn;break}c.endState=new wt(i.getStateData(),s.getTokenError(),u,g),c.tokens.push({startIndex:v,scopes:d})}return c}var E;function An(){return new Promise((e,r)=>{if(!E)return r("JSON not registered!");e(E)})}var pn=class extends jt{constructor(e,r,i){super(e,r,i.onDidChange),this._disposables.push(f.editor.onWillDisposeModel(n=>{this._resetSchema(n.uri)})),this._disposables.push(f.editor.onDidChangeModelLanguage(n=>{this._resetSchema(n.model.uri)}))}_resetSchema(e){this._worker().then(r=>{r.resetSchema(e.toString())})}};function In(e){const r=[],i=[],n=new Ut(e);r.push(n),E=(...s)=>n.getLanguageServiceWorker(...s);function t(){const{languageId:s,modeConfiguration:u}=e;At(i),u.documentFormattingEdits&&i.push(f.languages.registerDocumentFormattingEditProvider(s,new Qt(E))),u.documentRangeFormattingEdits&&i.push(f.languages.registerDocumentRangeFormattingEditProvider(s,new Yt(E))),u.completionItems&&i.push(f.languages.registerCompletionItemProvider(s,new Pt(E,[" ",":",'"']))),u.hovers&&i.push(f.languages.registerHoverProvider(s,new Wt(E))),u.documentSymbols&&i.push(f.languages.registerDocumentSymbolProvider(s,new Jt(E))),u.tokens&&i.push(f.languages.setTokensProvider(s,nn(!0))),u.colors&&i.push(f.languages.registerColorProvider(s,new Gt(E))),u.foldingRanges&&i.push(f.languages.registerFoldingRangeProvider(s,new Zt(E))),u.diagnostics&&i.push(new pn(s,E,e)),u.selectionRanges&&i.push(f.languages.registerSelectionRangeProvider(s,new Ct(E)))}t(),r.push(f.languages.setLanguageConfiguration(e.languageId,vn));let o=e.modeConfiguration;return e.onDidChange(s=>{s.modeConfiguration!==o&&(o=s.modeConfiguration,t())}),r.push(pt(i)),pt(r)}function pt(e){return{dispose:()=>At(e)}}function At(e){for(;e.length;)e.pop().dispose()}var vn={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]};export{Pt as CompletionAdapter,_n as DefinitionAdapter,jt as DiagnosticsAdapter,Gt as DocumentColorAdapter,Qt as DocumentFormattingEditProvider,hn as DocumentHighlightAdapter,wn as DocumentLinkAdapter,Yt as DocumentRangeFormattingEditProvider,Jt as DocumentSymbolAdapter,Zt as FoldingRangeAdapter,Wt as HoverAdapter,kn as ReferenceAdapter,bn as RenameAdapter,Ct as SelectionRangeAdapter,Ut as WorkerManager,R as fromPosition,vt as fromRange,An as getWorker,In as setupMode,w as toRange,B as toTextEdit}; diff --git a/ui/assets/local/_app/immutable/chunks/julia.vR3wwAFW.js b/ui/assets/local/_app/immutable/chunks/julia.vR3wwAFW.js new file mode 100644 index 0000000000..220cb97f21 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/julia.vR3wwAFW.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},t={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","π","ℯ","ans","PROGRAM_FILE","ARGS","C_NULL","VERSION","DEPOT_PATH","LOAD_PATH"],operators:["!","!=","!==","%","&","*","+","-","/","//","<","<<","<=","==","===","=>",">",">=",">>",">>>","\\","^","|","|>","~","÷","∈","∉","∋","∌","∘","√","∛","∩","∪","≈","≉","≠","≡","≢","≤","≥","⊆","⊇","⊈","⊉","⊊","⊋","⊻"],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"]]}};export{e as conf,t as language}; diff --git a/ui/assets/local/_app/immutable/chunks/kotlin.szYx7HIt.js b/ui/assets/local/_app/immutable/chunks/kotlin.szYx7HIt.js new file mode 100644 index 0000000000..d9f8b9d984 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/kotlin.szYx7HIt.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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)|(?:))")}}},t={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"]]}};export{e as conf,t as language}; diff --git a/ui/assets/local/_app/immutable/chunks/label.ujgKMPb9.js b/ui/assets/local/_app/immutable/chunks/label.zXYhHpIA.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/label.ujgKMPb9.js rename to ui/assets/local/_app/immutable/chunks/label.zXYhHpIA.js index 666b0aeec9..96ece12b8b 100644 --- a/ui/assets/local/_app/immutable/chunks/label.ujgKMPb9.js +++ b/ui/assets/local/_app/immutable/chunks/label.zXYhHpIA.js @@ -1 +1 @@ -import{s as N,a as P,z as _,h as b,b as j,j as h,k as g,d as p,f as c,F as k,i as q,n as S,u as y,g as z,e as B,E,A as C,m as F,t as M,l as v,q as D}from"./scheduler.1T9hOnFr.js";import{S as G,i as H,t as I,b as J}from"./index.cVovwi_s.js";import{g as K}from"./spread.rEx3vLA9.js";import{t as A}from"./tw-merge.NbP7EmZe.js";function O(r){let e,s;return{c(){e=b("span"),s=M(r[0])},l(n){e=h(n,"SPAN",{});var t=g(e);s=v(t,r[0]),t.forEach(c)},m(n,t){q(n,e,t),S(e,s)},p(n,t){t&1&&D(s,n[0])},d(n){n&&c(e)}}}function L(r){let e;return{c(){e=b("span"),this.h()},l(s){e=h(s,"SPAN",{class:!0}),g(e).forEach(c),this.h()},h(){F(e,"class","h-1.5 w-1.5 rounded-full bg-interactive-error")},m(s,n){q(s,e,n)},d(s){s&&c(e)}}}function Q(r){let e,s,n,t;const m=r[7].default,o=P(m,r,r[6],null),f=o||O(r);let i=r[2]&&L(),d=[{class:n=A("inline-flex","flex-row","items-center","grow","cursor-pointer","gap-2","text-primary","text-sm","font-medium","focus:outline-none",r[1]&&"sr-only",r[3]&&"cursor-not-allowed",r[4])},{"data-required":r[2]},r[5]],u={};for(let l=0;l{e=_(_({},e),C(a)),s(5,t=E(e,n)),"label"in a&&s(0,f=a.label),"hidden"in a&&s(1,i=a.hidden),"required"in a&&s(2,d=a.required),"disabled"in a&&s(3,u=a.disabled),"class"in a&&s(4,l=a.class),"$$scope"in a&&s(6,o=a.$$scope)},[f,i,d,u,l,t,o,m]}class X extends G{constructor(e){super(),H(this,e,R,Q,N,{label:0,hidden:1,required:2,disabled:3,class:4})}}export{X as L}; +import{s as N,a as P,z as _,h as b,b as j,j as h,k as g,d as p,f as c,F as k,i as q,n as S,u as y,g as z,e as B,E,A as C,m as F,t as M,l as v,q as D}from"./scheduler.pPC3woXQ.js";import{S as G,i as H,t as I,b as J}from"./index.Z3Qqxacm.js";import{g as K}from"./spread.rEx3vLA9.js";import{t as A}from"./tw-merge.NbP7EmZe.js";function O(r){let e,s;return{c(){e=b("span"),s=M(r[0])},l(n){e=h(n,"SPAN",{});var t=g(e);s=v(t,r[0]),t.forEach(c)},m(n,t){q(n,e,t),S(e,s)},p(n,t){t&1&&D(s,n[0])},d(n){n&&c(e)}}}function L(r){let e;return{c(){e=b("span"),this.h()},l(s){e=h(s,"SPAN",{class:!0}),g(e).forEach(c),this.h()},h(){F(e,"class","h-1.5 w-1.5 rounded-full bg-interactive-error")},m(s,n){q(s,e,n)},d(s){s&&c(e)}}}function Q(r){let e,s,n,t;const m=r[7].default,o=P(m,r,r[6],null),f=o||O(r);let i=r[2]&&L(),d=[{class:n=A("inline-flex","flex-row","items-center","grow","cursor-pointer","gap-2","text-primary","text-sm","font-medium","focus:outline-none",r[1]&&"sr-only",r[3]&&"cursor-not-allowed",r[4])},{"data-required":r[2]},r[5]],u={};for(let l=0;l{e=_(_({},e),C(a)),s(5,t=E(e,n)),"label"in a&&s(0,f=a.label),"hidden"in a&&s(1,i=a.hidden),"required"in a&&s(2,d=a.required),"disabled"in a&&s(3,u=a.disabled),"class"in a&&s(4,l=a.class),"$$scope"in a&&s(6,o=a.$$scope)},[f,i,d,u,l,t,o,m]}class X extends G{constructor(e){super(),H(this,e,R,Q,N,{label:0,hidden:1,required:2,disabled:3,class:4})}}export{X as L}; diff --git a/ui/assets/local/_app/immutable/chunks/labs-mode-guard.Ii8p6Le4.js b/ui/assets/local/_app/immutable/chunks/labs-mode-guard.b5vdKAOM.js similarity index 84% rename from ui/assets/local/_app/immutable/chunks/labs-mode-guard.Ii8p6Le4.js rename to ui/assets/local/_app/immutable/chunks/labs-mode-guard.b5vdKAOM.js index 9edda231fb..63f9f7fe3a 100644 --- a/ui/assets/local/_app/immutable/chunks/labs-mode-guard.Ii8p6Le4.js +++ b/ui/assets/local/_app/immutable/chunks/labs-mode-guard.b5vdKAOM.js @@ -1 +1 @@ -import{s as P,x as m,i as L,f as O,c as b,w as d,a as g,u as h,g as y,e as M}from"./scheduler.1T9hOnFr.js";import{S,i as q,g as w,b as c,e as C,t as _}from"./index.cVovwi_s.js";import{p as N}from"./stores.6oDSidma.js";import{l as p}from"./labs-mode.fOLyo5Y9.js";const j=o=>({}),k=o=>({});function z(o){let s;const l=o[5].fallback,e=g(l,o,o[4],k);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,r){e&&e.m(t,r),s=!0},p(t,r){e&&e.p&&(!s||r&16)&&h(e,l,t,t[4],s?M(l,t[4],r,j):y(t[4]),k)},i(t){s||(_(e,t),s=!0)},o(t){c(e,t),s=!1},d(t){e&&e.d(t)}}}function A(o){let s;const l=o[5].default,e=g(l,o,o[4],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,r){e&&e.m(t,r),s=!0},p(t,r){e&&e.p&&(!s||r&16)&&h(e,l,t,t[4],s?M(l,t[4],r,null):y(t[4]),null)},i(t){s||(_(e,t),s=!0)},o(t){c(e,t),s=!1},d(t){e&&e.d(t)}}}function B(o){let s,l,e,t;const r=[A,z],n=[];function f(a,i){return a[0]?0:1}return s=f(o),l=n[s]=r[s](o),{c(){l.c(),e=m()},l(a){l.l(a),e=m()},m(a,i){n[s].m(a,i),L(a,e,i),t=!0},p(a,[i]){let u=s;s=f(a),s===u?n[s].p(a,i):(w(),c(n[u],1,1,()=>{n[u]=null}),C(),l=n[s],l?l.p(a,i):(l=n[s]=r[s](a),l.c()),_(l,1),l.m(e.parentNode,e))},i(a){t||(_(l),t=!0)},o(a){c(l),t=!1},d(a){a&&O(e),n[s].d(a)}}}function D(o,s,l){let e,t,r,n;b(o,p,i=>l(0,r=i)),b(o,N,i=>l(3,n=i));let{$$slots:f={},$$scope:a}=s;return o.$$set=i=>{"$$scope"in i&&l(4,a=i.$$scope)},o.$$.update=()=>{o.$$.dirty&8&&l(2,e=n.url.searchParams.get("labs")==="true"),o.$$.dirty&8&&l(1,t=n.url.searchParams.get("labs")==="false"),o.$$.dirty&6&&(e?d(p,r=!0,r):t&&d(p,r=!1,r))},[r,t,e,n,a,f]}class I extends S{constructor(s){super(),q(this,s,D,B,P,{})}}export{I as L}; +import{s as P,x as m,i as L,f as O,c as b,w as d,a as g,u as h,g as y,e as M}from"./scheduler.pPC3woXQ.js";import{S,i as q,g as w,b as c,e as C,t as _}from"./index.Z3Qqxacm.js";import{p as N}from"./stores.cW8AX6ex.js";import{l as p}from"./labs-mode.1yaKRJGd.js";const j=o=>({}),k=o=>({});function z(o){let s;const l=o[5].fallback,e=g(l,o,o[4],k);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,r){e&&e.m(t,r),s=!0},p(t,r){e&&e.p&&(!s||r&16)&&h(e,l,t,t[4],s?M(l,t[4],r,j):y(t[4]),k)},i(t){s||(_(e,t),s=!0)},o(t){c(e,t),s=!1},d(t){e&&e.d(t)}}}function A(o){let s;const l=o[5].default,e=g(l,o,o[4],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,r){e&&e.m(t,r),s=!0},p(t,r){e&&e.p&&(!s||r&16)&&h(e,l,t,t[4],s?M(l,t[4],r,null):y(t[4]),null)},i(t){s||(_(e,t),s=!0)},o(t){c(e,t),s=!1},d(t){e&&e.d(t)}}}function B(o){let s,l,e,t;const r=[A,z],n=[];function f(a,i){return a[0]?0:1}return s=f(o),l=n[s]=r[s](o),{c(){l.c(),e=m()},l(a){l.l(a),e=m()},m(a,i){n[s].m(a,i),L(a,e,i),t=!0},p(a,[i]){let u=s;s=f(a),s===u?n[s].p(a,i):(w(),c(n[u],1,1,()=>{n[u]=null}),C(),l=n[s],l?l.p(a,i):(l=n[s]=r[s](a),l.c()),_(l,1),l.m(e.parentNode,e))},i(a){t||(_(l),t=!0)},o(a){c(l),t=!1},d(a){a&&O(e),n[s].d(a)}}}function D(o,s,l){let e,t,r,n;b(o,p,i=>l(0,r=i)),b(o,N,i=>l(3,n=i));let{$$slots:f={},$$scope:a}=s;return o.$$set=i=>{"$$scope"in i&&l(4,a=i.$$scope)},o.$$.update=()=>{o.$$.dirty&8&&l(2,e=n.url.searchParams.get("labs")==="true"),o.$$.dirty&8&&l(1,t=n.url.searchParams.get("labs")==="false"),o.$$.dirty&6&&(e?d(p,r=!0,r):t&&d(p,r=!1,r))},[r,t,e,n,a,f]}class I extends S{constructor(s){super(),q(this,s,D,B,P,{})}}export{I as L}; diff --git a/ui/assets/local/_app/immutable/chunks/labs-mode.1yaKRJGd.js b/ui/assets/local/_app/immutable/chunks/labs-mode.1yaKRJGd.js new file mode 100644 index 0000000000..9c76a2fd11 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/labs-mode.1yaKRJGd.js @@ -0,0 +1 @@ +import{p as s}from"./persist-store.cEgNkZhn.js";const o=s("labsMode",!1,!0);export{o as l}; diff --git a/ui/assets/local/_app/immutable/chunks/labs-mode.fOLyo5Y9.js b/ui/assets/local/_app/immutable/chunks/labs-mode.fOLyo5Y9.js deleted file mode 100644 index ead986c623..0000000000 --- a/ui/assets/local/_app/immutable/chunks/labs-mode.fOLyo5Y9.js +++ /dev/null @@ -1 +0,0 @@ -import{p as s}from"./persist-store.yDfC1oT_.js";const o=s("labsMode",!1,!0);export{o as l}; diff --git a/ui/assets/local/_app/immutable/chunks/layout._T7M2bL_.js b/ui/assets/local/_app/immutable/chunks/layout.pYaD100d.js similarity index 77% rename from ui/assets/local/_app/immutable/chunks/layout._T7M2bL_.js rename to ui/assets/local/_app/immutable/chunks/layout.pYaD100d.js index d0aa5b2c60..7e91b03207 100644 --- a/ui/assets/local/_app/immutable/chunks/layout._T7M2bL_.js +++ b/ui/assets/local/_app/immutable/chunks/layout.pYaD100d.js @@ -1 +1 @@ -import{s as l,a as i,u as r,g as u,e as f}from"./scheduler.1T9hOnFr.js";import{S as _,i as c,t as p,b as m}from"./index.cVovwi_s.js";function $(o){let s;const n=o[1].default,e=i(n,o,o[0],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,a){e&&e.m(t,a),s=!0},p(t,[a]){e&&e.p&&(!s||a&1)&&r(e,n,t,t[0],s?f(n,t[0],a,null):u(t[0]),null)},i(t){s||(p(e,t),s=!0)},o(t){m(e,t),s=!1},d(t){e&&e.d(t)}}}function d(o,s,n){let{$$slots:e={},$$scope:t}=s;return o.$$set=a=>{"$$scope"in a&&n(0,t=a.$$scope)},[t,e]}class h extends _{constructor(s){super(),c(this,s,d,$,l,{})}}export{h as L}; +import{s as l,a as i,u as r,g as u,e as f}from"./scheduler.pPC3woXQ.js";import{S as _,i as c,t as p,b as m}from"./index.Z3Qqxacm.js";function $(o){let s;const n=o[1].default,e=i(n,o,o[0],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,a){e&&e.m(t,a),s=!0},p(t,[a]){e&&e.p&&(!s||a&1)&&r(e,n,t,t[0],s?f(n,t[0],a,null):u(t[0]),null)},i(t){s||(p(e,t),s=!0)},o(t){m(e,t),s=!1},d(t){e&&e.d(t)}}}function d(o,s,n){let{$$slots:e={},$$scope:t}=s;return o.$$set=a=>{"$$scope"in a&&n(0,t=a.$$scope)},[t,e]}class h extends _{constructor(s){super(),c(this,s,d,$,l,{})}}export{h as L}; diff --git a/ui/assets/local/_app/immutable/chunks/less.dU5gobSM.js b/ui/assets/local/_app/immutable/chunks/less.dU5gobSM.js new file mode 100644 index 0000000000..bdf2f61e62 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/less.dU5gobSM.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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.*\\*\\/")}}},t={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"]]}};export{e as conf,t as language}; diff --git a/ui/assets/local/_app/immutable/chunks/lexon.KVbeDWNK.js b/ui/assets/local/_app/immutable/chunks/lexon.KVbeDWNK.js new file mode 100644 index 0000000000..400cf9b72e --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/lexon.KVbeDWNK.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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")}}},t={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"]]}};export{e as conf,t as language}; diff --git a/ui/assets/local/_app/immutable/chunks/link.S6PxEIxj.js b/ui/assets/local/_app/immutable/chunks/link.k1D2UsV0.js similarity index 91% rename from ui/assets/local/_app/immutable/chunks/link.S6PxEIxj.js rename to ui/assets/local/_app/immutable/chunks/link.k1D2UsV0.js index b74b5d0c73..cf9e24152b 100644 --- a/ui/assets/local/_app/immutable/chunks/link.S6PxEIxj.js +++ b/ui/assets/local/_app/immutable/chunks/link.k1D2UsV0.js @@ -1 +1 @@ -import{s as K,a as M,z as L,h as N,b as A,j as B,k as G,d as C,f as q,F as E,I as k,i as F,n as P,p as H,u as J,g as O,e as Q,E as S,A as R,t as U,l as V,q as W}from"./scheduler.1T9hOnFr.js";import{S as X,i as Y,t as v,g as Z,b as I,e as y,c as p,a as w,m as x,d as $}from"./index.cVovwi_s.js";import{g as ee}from"./spread.rEx3vLA9.js";import{g as te}from"./entry.1BQh90wu.js";import{I as le}from"./icon.w8eknFMq.js";import{t as j}from"./tw-merge.NbP7EmZe.js";function z(s){let e,l;return e=new le({props:{class:"mt-0.5",name:s[4]}}),{c(){p(e.$$.fragment)},l(n){w(e.$$.fragment,n)},m(n,c){x(e,n,c),l=!0},p(n,c){const m={};c&16&&(m.name=n[4]),e.$set(m)},i(n){l||(v(e.$$.fragment,n),l=!0)},o(n){I(e.$$.fragment,n),l=!1},d(n){$(e,n)}}}function D(s){let e;return{c(){e=U(s[5])},l(l){e=V(l,s[5])},m(l,n){F(l,e,n)},p(l,n){n&32&&W(e,l[5])},d(l){l&&q(e)}}}function ae(s){let e,l,n,c,m,_,g,o,h,b,i=s[4]&&z(s),r=s[5]&&D(s);const d=s[10].default,u=M(d,s,s[9],null);let a=[{href:s[1]},{target:c=s[3]?"_blank":null},{rel:m=s[3]?"noreferrer":null},{class:_=j("link",s[4]?"inline-flex":"inline",s[0])},{tabindex:g=s[1]?null:0},s[8]],T={};for(let t=0;t{i=null}),y()),t[5]?r?r.p(t,f):(r=D(t),r.c(),r.m(e,n)):r&&(r.d(1),r=null),u&&u.p&&(!o||f&512)&&J(u,d,t,t[9],o?Q(d,t[9],f,null):O(t[9]),null),E(e,T=ee(a,[(!o||f&2)&&{href:t[1]},(!o||f&8&&c!==(c=t[3]?"_blank":null))&&{target:c},(!o||f&8&&m!==(m=t[3]?"noreferrer":null))&&{rel:m},(!o||f&17&&_!==(_=j("link",t[4]?"inline-flex":"inline",t[0])))&&{class:_},(!o||f&2&&g!==(g=t[1]?null:0))&&{tabindex:g},f&256&&t[8]])),k(e,"active",t[2]),k(e,"light",t[6]),k(e,"svelte-d10xwu",!0)},i(t){o||(v(i),v(u,t),o=!0)},o(t){I(i),I(u,t),o=!1},d(t){t&&q(e),i&&i.d(),r&&r.d(),u&&u.d(t),h=!1,b()}}}function se(s,e,l){const n=["class","href","active","newTab","icon","text","light"];let c=S(e,n),{$$slots:m={},$$scope:_}=e,{class:g=""}=e,{href:o}=e,{active:h=!1}=e,{newTab:b=!1}=e,{icon:i=null}=e,{text:r=""}=e,{light:d=!1}=e;const u=a=>{a.button===1||b||a.metaKey||(a.preventDefault(),a.stopPropagation(),te(o))};return s.$$set=a=>{e=L(L({},e),R(a)),l(8,c=S(e,n)),"class"in a&&l(0,g=a.class),"href"in a&&l(1,o=a.href),"active"in a&&l(2,h=a.active),"newTab"in a&&l(3,b=a.newTab),"icon"in a&&l(4,i=a.icon),"text"in a&&l(5,r=a.text),"light"in a&&l(6,d=a.light),"$$scope"in a&&l(9,_=a.$$scope)},[g,o,h,b,i,r,d,u,c,_,m]}class ce extends X{constructor(e){super(),Y(this,e,se,ae,K,{class:0,href:1,active:2,newTab:3,icon:4,text:5,light:6})}}export{ce as L}; +import{s as K,a as M,z as L,h as N,b as A,j as B,k as G,d as C,f as q,F as E,I as k,i as F,n as P,p as H,u as J,g as O,e as Q,E as S,A as R,t as U,l as V,q as W}from"./scheduler.pPC3woXQ.js";import{S as X,i as Y,t as v,g as Z,b as I,e as y,c as p,a as w,m as x,d as $}from"./index.Z3Qqxacm.js";import{g as ee}from"./spread.rEx3vLA9.js";import{g as te}from"./entry.6mxJxwSM.js";import{I as le}from"./icon.IMxiy1l_.js";import{t as j}from"./tw-merge.NbP7EmZe.js";function z(s){let e,l;return e=new le({props:{class:"mt-0.5",name:s[4]}}),{c(){p(e.$$.fragment)},l(n){w(e.$$.fragment,n)},m(n,c){x(e,n,c),l=!0},p(n,c){const m={};c&16&&(m.name=n[4]),e.$set(m)},i(n){l||(v(e.$$.fragment,n),l=!0)},o(n){I(e.$$.fragment,n),l=!1},d(n){$(e,n)}}}function D(s){let e;return{c(){e=U(s[5])},l(l){e=V(l,s[5])},m(l,n){F(l,e,n)},p(l,n){n&32&&W(e,l[5])},d(l){l&&q(e)}}}function ae(s){let e,l,n,c,m,_,g,o,h,b,i=s[4]&&z(s),r=s[5]&&D(s);const d=s[10].default,u=M(d,s,s[9],null);let a=[{href:s[1]},{target:c=s[3]?"_blank":null},{rel:m=s[3]?"noreferrer":null},{class:_=j("link",s[4]?"inline-flex":"inline",s[0])},{tabindex:g=s[1]?null:0},s[8]],T={};for(let t=0;t{i=null}),y()),t[5]?r?r.p(t,f):(r=D(t),r.c(),r.m(e,n)):r&&(r.d(1),r=null),u&&u.p&&(!o||f&512)&&J(u,d,t,t[9],o?Q(d,t[9],f,null):O(t[9]),null),E(e,T=ee(a,[(!o||f&2)&&{href:t[1]},(!o||f&8&&c!==(c=t[3]?"_blank":null))&&{target:c},(!o||f&8&&m!==(m=t[3]?"noreferrer":null))&&{rel:m},(!o||f&17&&_!==(_=j("link",t[4]?"inline-flex":"inline",t[0])))&&{class:_},(!o||f&2&&g!==(g=t[1]?null:0))&&{tabindex:g},f&256&&t[8]])),k(e,"active",t[2]),k(e,"light",t[6]),k(e,"svelte-d10xwu",!0)},i(t){o||(v(i),v(u,t),o=!0)},o(t){I(i),I(u,t),o=!1},d(t){t&&q(e),i&&i.d(),r&&r.d(),u&&u.d(t),h=!1,b()}}}function se(s,e,l){const n=["class","href","active","newTab","icon","text","light"];let c=S(e,n),{$$slots:m={},$$scope:_}=e,{class:g=""}=e,{href:o}=e,{active:h=!1}=e,{newTab:b=!1}=e,{icon:i=null}=e,{text:r=""}=e,{light:d=!1}=e;const u=a=>{a.button===1||b||a.metaKey||(a.preventDefault(),a.stopPropagation(),te(o))};return s.$$set=a=>{e=L(L({},e),R(a)),l(8,c=S(e,n)),"class"in a&&l(0,g=a.class),"href"in a&&l(1,o=a.href),"active"in a&&l(2,h=a.active),"newTab"in a&&l(3,b=a.newTab),"icon"in a&&l(4,i=a.icon),"text"in a&&l(5,r=a.text),"light"in a&&l(6,d=a.light),"$$scope"in a&&l(9,_=a.$$scope)},[g,o,h,b,i,r,d,u,c,_,m]}class ce extends X{constructor(e){super(),Y(this,e,se,ae,K,{class:0,href:1,active:2,newTab:3,icon:4,text:5,light:6})}}export{ce as L}; diff --git a/ui/assets/local/_app/immutable/chunks/liquid.VXUoiMh9.js b/ui/assets/local/_app/immutable/chunks/liquid.VXUoiMh9.js new file mode 100644 index 0000000000..63568a7b36 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/liquid.VXUoiMh9.js @@ -0,0 +1,6 @@ +import{m as d}from"./index.RJsVUSS8.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 + *-----------------------------------------------------------------------------*/var s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,m=Object.prototype.hasOwnProperty,a=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of u(e))!m.call(t,i)&&i!==r&&s(t,i,{get:()=>e[i],enumerable:!(n=c(e,i))||n.enumerable});return t},p=(t,e,r)=>(a(t,e,"default"),r&&a(r,e,"default")),o={};p(o,d);var l=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],g={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(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:o.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:o.languages.IndentAction.Indent}}]},_={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"]]}};export{g as conf,_ as language}; diff --git a/ui/assets/local/_app/immutable/chunks/loading.IcbT-3mP.js b/ui/assets/local/_app/immutable/chunks/loading.TnDAnZ7t.js similarity index 92% rename from ui/assets/local/_app/immutable/chunks/loading.IcbT-3mP.js rename to ui/assets/local/_app/immutable/chunks/loading.TnDAnZ7t.js index c7477a6ad1..dfe66eb988 100644 --- a/ui/assets/local/_app/immutable/chunks/loading.IcbT-3mP.js +++ b/ui/assets/local/_app/immutable/chunks/loading.TnDAnZ7t.js @@ -1 +1 @@ -import{s as j,h as d,b as U,t as q,j as h,k as y,d as C,l as I,f as p,m as u,i as S,n as g,q as M,S as O,z as E,A,M as T,v,R}from"./scheduler.1T9hOnFr.js";import{S as x,i as D,g as H,b,e as V,t as k,c as z,a as K,m as P,d as B}from"./index.cVovwi_s.js";import{L as F}from"./logo.yjYW7Lh-.js";import{t as G}from"./translate.HrioCK44.js";const J=""+new URL("../assets/Temporal_Logo_Animation.tKj2M1-H.mp4",import.meta.url).href,N=""+new URL("../assets/Temporal_Logo_Animation.TclPAL91.webm",import.meta.url).href;function Q(n){let e,t;return e=new F({props:{height:160,width:160}}),{c(){z(e.$$.fragment)},l(s){K(e.$$.fragment,s)},m(s,a){P(e,s,a),t=!0},p:v,i(s){t||(k(e.$$.fragment,s),t=!0)},o(s){b(e.$$.fragment,s),t=!1},d(s){B(e,s)}}}function W(n){let e,t,s,a,r;return{c(){e=d("video"),t=d("source"),a=d("source"),this.h()},l(i){e=h(i,"VIDEO",{preload:!0,height:!0,width:!0,class:!0});var o=y(e);t=h(o,"SOURCE",{src:!0,type:!0}),a=h(o,"SOURCE",{src:!0,type:!0}),o.forEach(p),this.h()},h(){R(t.src,s=J)||u(t,"src",s),u(t,"type","video/mp4;codecs=hvc1"),R(a.src,r=N)||u(a,"src",r),u(a,"type","video/webm"),e.autoplay=!0,e.loop=!0,e.muted=!0,e.playsInline=!0,u(e,"preload","auto"),u(e,"height","160"),u(e,"width","160"),u(e,"class","dark:invert")},m(i,o){S(i,e,o),g(e,t),g(e,a),n[4](e)},p:v,i:v,o:v,d(i){i&&p(e),n[4](null)}}}function X(n){let e,t,s,a,r,i,o,f;const L=[W,Q],m=[];function w(l,c){return l[1]?0:1}return t=w(n),s=m[t]=L[t](n),{c(){e=d("div"),s.c(),a=U(),r=d("h2"),i=q(n[0]),this.h()},l(l){e=h(l,"DIV",{class:!0});var c=y(e);s.l(c),a=C(c),r=h(c,"H2",{});var _=y(r);i=I(_,n[0]),_.forEach(p),c.forEach(p),this.h()},h(){u(e,"class",o="my-12 flex flex-col items-center justify-start gap-4 "+n[3].class)},m(l,c){S(l,e,c),m[t].m(e,null),g(e,a),g(e,r),g(r,i),f=!0},p(l,[c]){let _=t;t=w(l),t===_?m[t].p(l,c):(H(),b(m[_],1,1,()=>{m[_]=null}),V(),s=m[t],s?s.p(l,c):(s=m[t]=L[t](l),s.c()),k(s,1),s.m(e,a)),(!f||c&1)&&M(i,l[0]),(!f||c&8&&o!==(o="my-12 flex flex-col items-center justify-start gap-4 "+l[3].class))&&u(e,"class",o)},i(l){f||(k(s),f=!0)},o(l){b(s),f=!1},d(l){l&&p(e),m[t].d()}}}function Y(n,e,t){let{title:s=G("common.loading")}=e,a=!0,r;O(async()=>{const o=r==null?void 0:r.play();if(o!==void 0)try{await o}catch{r&&t(1,a=!1)}else t(1,a=!1)});function i(o){T[o?"unshift":"push"](()=>{r=o,t(2,r)})}return n.$$set=o=>{t(3,e=E(E({},e),A(o))),"title"in o&&t(0,s=o.title)},e=A(e),[s,a,r,e,i]}class se extends x{constructor(e){super(),D(this,e,Y,X,j,{title:0})}}export{se as L}; +import{s as j,h as d,b as U,t as q,j as h,k as y,d as C,l as I,f as p,m as u,i as S,n as g,q as M,S as O,z as E,A,M as T,v,R}from"./scheduler.pPC3woXQ.js";import{S as x,i as D,g as H,b,e as V,t as k,c as z,a as K,m as P,d as B}from"./index.Z3Qqxacm.js";import{L as F}from"./logo.P0OpvX66.js";import{t as G}from"./translate.HrioCK44.js";const J=""+new URL("../assets/Temporal_Logo_Animation.tKj2M1-H.mp4",import.meta.url).href,N=""+new URL("../assets/Temporal_Logo_Animation.TclPAL91.webm",import.meta.url).href;function Q(n){let e,t;return e=new F({props:{height:160,width:160}}),{c(){z(e.$$.fragment)},l(s){K(e.$$.fragment,s)},m(s,a){P(e,s,a),t=!0},p:v,i(s){t||(k(e.$$.fragment,s),t=!0)},o(s){b(e.$$.fragment,s),t=!1},d(s){B(e,s)}}}function W(n){let e,t,s,a,r;return{c(){e=d("video"),t=d("source"),a=d("source"),this.h()},l(i){e=h(i,"VIDEO",{preload:!0,height:!0,width:!0,class:!0});var o=y(e);t=h(o,"SOURCE",{src:!0,type:!0}),a=h(o,"SOURCE",{src:!0,type:!0}),o.forEach(p),this.h()},h(){R(t.src,s=J)||u(t,"src",s),u(t,"type","video/mp4;codecs=hvc1"),R(a.src,r=N)||u(a,"src",r),u(a,"type","video/webm"),e.autoplay=!0,e.loop=!0,e.muted=!0,e.playsInline=!0,u(e,"preload","auto"),u(e,"height","160"),u(e,"width","160"),u(e,"class","dark:invert")},m(i,o){S(i,e,o),g(e,t),g(e,a),n[4](e)},p:v,i:v,o:v,d(i){i&&p(e),n[4](null)}}}function X(n){let e,t,s,a,r,i,o,f;const L=[W,Q],m=[];function w(l,c){return l[1]?0:1}return t=w(n),s=m[t]=L[t](n),{c(){e=d("div"),s.c(),a=U(),r=d("h2"),i=q(n[0]),this.h()},l(l){e=h(l,"DIV",{class:!0});var c=y(e);s.l(c),a=C(c),r=h(c,"H2",{});var _=y(r);i=I(_,n[0]),_.forEach(p),c.forEach(p),this.h()},h(){u(e,"class",o="my-12 flex flex-col items-center justify-start gap-4 "+n[3].class)},m(l,c){S(l,e,c),m[t].m(e,null),g(e,a),g(e,r),g(r,i),f=!0},p(l,[c]){let _=t;t=w(l),t===_?m[t].p(l,c):(H(),b(m[_],1,1,()=>{m[_]=null}),V(),s=m[t],s?s.p(l,c):(s=m[t]=L[t](l),s.c()),k(s,1),s.m(e,a)),(!f||c&1)&&M(i,l[0]),(!f||c&8&&o!==(o="my-12 flex flex-col items-center justify-start gap-4 "+l[3].class))&&u(e,"class",o)},i(l){f||(k(s),f=!0)},o(l){b(s),f=!1},d(l){l&&p(e),m[t].d()}}}function Y(n,e,t){let{title:s=G("common.loading")}=e,a=!0,r;O(async()=>{const o=r==null?void 0:r.play();if(o!==void 0)try{await o}catch{r&&t(1,a=!1)}else t(1,a=!1)});function i(o){T[o?"unshift":"push"](()=>{r=o,t(2,r)})}return n.$$set=o=>{t(3,e=E(E({},e),A(o))),"title"in o&&t(0,s=o.title)},e=A(e),[s,a,r,e,i]}class se extends x{constructor(e){super(),D(this,e,Y,X,j,{title:0})}}export{se as L}; diff --git a/ui/assets/local/_app/immutable/chunks/logo.yjYW7Lh-.js b/ui/assets/local/_app/immutable/chunks/logo.P0OpvX66.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/logo.yjYW7Lh-.js rename to ui/assets/local/_app/immutable/chunks/logo.P0OpvX66.js index 4507b44a2b..90e356c59f 100644 --- a/ui/assets/local/_app/immutable/chunks/logo.yjYW7Lh-.js +++ b/ui/assets/local/_app/immutable/chunks/logo.P0OpvX66.js @@ -1 +1 @@ -import{s as v,J as o,K as u,k as c,f as l,m as s,i as _,n as w,v as g,E as f,z as d,A as p}from"./scheduler.1T9hOnFr.js";import{S as M,i as L}from"./index.cVovwi_s.js";import{t as m}from"./tw-merge.NbP7EmZe.js";function Z(a){let e,C,r;return{c(){e=o("svg"),C=o("path"),this.h()},l(t){e=u(t,"svg",{xmlns:!0,role:!0,viewBox:!0,width:!0,height:!0,class:!0});var i=c(e);C=u(i,"path",{"fill-rule":!0,"clip-rule":!0,d:!0}),c(C).forEach(l),i.forEach(l),this.h()},h(){s(C,"fill-rule","evenodd"),s(C,"clip-rule","evenodd"),s(C,"d","M31.5463 31.5462C23.5873 32.693 16.5393 34.5814 11.1945 37.0669C8.17255 38.4722 5.49221 40.1613 3.51061 42.187C1.51225 44.2298 2.48353e-07 46.8655 0 50C0 53.1345 1.51225 55.7703 3.51062 57.8131C5.49221 59.8387 8.17256 61.5278 11.1945 62.9331C16.5393 65.4187 23.5873 67.307 31.5463 68.4538C32.693 76.4127 34.5814 83.4607 37.067 88.8055C38.4723 91.8275 40.1613 94.5078 42.187 96.4894C44.2298 98.4877 46.8655 100 50 100C53.1374 100 55.7729 98.4839 57.8136 96.4828C59.837 94.4986 61.5229 91.8154 62.9251 88.7916C65.4052 83.4434 67.2887 76.3924 68.4342 68.4342C76.3924 67.2886 83.4434 65.4052 88.7916 62.9251C91.8154 61.5229 94.4986 59.837 96.4828 57.8136C98.4839 55.7729 100 53.1373 100 50C100 46.8655 98.4877 44.2298 96.4894 42.187C94.5078 40.1613 91.8275 38.4722 88.8055 37.0669C83.4607 34.5814 76.4127 32.693 68.4538 31.5463C67.307 23.5873 65.4187 16.5393 62.9331 11.1945C61.5278 8.17255 59.8387 5.4922 57.8131 3.51061C55.7702 1.51225 53.1345 2.48353e-07 50 0C46.8655 0 44.2298 1.51225 42.187 3.51062C40.1613 5.49221 38.4722 8.17255 37.0669 11.1945C34.5814 16.5393 32.693 23.5873 31.5463 31.5462ZM40.1218 30.6199C46.6904 30.1307 53.3096 30.1307 59.8782 30.6199C58.8023 24.132 57.2245 18.6816 55.3769 14.7084C54.2152 12.2105 53.0394 10.4985 51.9857 9.46763C50.949 8.45356 50.2908 8.33333 50 8.33333C49.7092 8.33333 49.051 8.45356 48.0143 9.46762C46.9606 10.4985 45.7848 12.2105 44.6232 14.7084C42.7755 18.6816 41.1978 24.132 40.1218 30.6199ZM30.6199 59.8782C30.1308 53.3096 30.1308 46.6904 30.6199 40.1218C24.132 41.1978 18.6816 42.7755 14.7084 44.6232C12.2105 45.7848 10.4985 46.9606 9.46763 48.0144C8.45356 49.051 8.33333 49.7093 8.33333 50C8.33333 50.2908 8.45356 50.9491 9.46763 51.9857C10.4985 53.0395 12.2105 54.2153 14.7084 55.3769C18.6816 57.2245 24.132 58.8023 30.6199 59.8782ZM39.0663 39.0663C47.4383 38.3286 55.9175 38.4413 64.2566 39.4045C73.0116 40.4157 80.3118 42.3074 85.2916 44.6232C87.7895 45.7848 89.5015 46.9606 90.5324 48.0143C91.5464 49.051 91.6667 49.7092 91.6667 50C91.6667 50.2879 91.5478 50.9439 90.5328 51.9789C89.5009 53.0313 87.7868 54.2053 85.2858 55.3651C80.3001 57.6771 72.9936 59.5643 64.2369 60.5758L60.9549 60.9548L60.5758 64.2368C59.5644 72.9936 57.6771 80.3001 55.3651 85.2858C54.2053 87.7868 53.0313 89.5009 51.979 90.5328C50.9439 91.5478 50.288 91.6667 50 91.6667C49.7093 91.6667 49.051 91.5464 48.0144 90.5324C46.9606 89.5015 45.7848 87.7895 44.6232 85.2916C42.3074 80.3118 40.4157 73.0116 39.4045 64.2566C38.4413 55.9175 38.3286 47.4382 39.0663 39.0663Z"),s(e,"xmlns","http://www.w3.org/2000/svg"),s(e,"role","img"),s(e,"viewBox","0 0 100 100"),s(e,"width",a[0]),s(e,"height",a[1]),s(e,"class",r=m("fill-current",a[2].class))},m(t,i){_(t,e,i),w(e,C)},p(t,[i]){i&1&&s(e,"width",t[0]),i&2&&s(e,"height",t[1]),i&4&&r!==(r=m("fill-current",t[2].class))&&s(e,"class",r)},i:g,o:g,d(t){t&&l(e)}}}function x(a,e,C){const r=["width","height"];let t=f(e,r),{width:i=100}=e,{height:n=100}=e;return a.$$set=h=>{e=d(d({},e),p(h)),C(2,t=f(e,r)),"width"in h&&C(0,i=h.width),"height"in h&&C(1,n=h.height)},[i,n,t]}class k extends M{constructor(e){super(),L(this,e,x,Z,v,{width:0,height:1})}}export{k as L}; +import{s as v,J as o,K as u,k as c,f as l,m as s,i as _,n as w,v as g,E as f,z as d,A as p}from"./scheduler.pPC3woXQ.js";import{S as M,i as L}from"./index.Z3Qqxacm.js";import{t as m}from"./tw-merge.NbP7EmZe.js";function Z(a){let e,C,r;return{c(){e=o("svg"),C=o("path"),this.h()},l(t){e=u(t,"svg",{xmlns:!0,role:!0,viewBox:!0,width:!0,height:!0,class:!0});var i=c(e);C=u(i,"path",{"fill-rule":!0,"clip-rule":!0,d:!0}),c(C).forEach(l),i.forEach(l),this.h()},h(){s(C,"fill-rule","evenodd"),s(C,"clip-rule","evenodd"),s(C,"d","M31.5463 31.5462C23.5873 32.693 16.5393 34.5814 11.1945 37.0669C8.17255 38.4722 5.49221 40.1613 3.51061 42.187C1.51225 44.2298 2.48353e-07 46.8655 0 50C0 53.1345 1.51225 55.7703 3.51062 57.8131C5.49221 59.8387 8.17256 61.5278 11.1945 62.9331C16.5393 65.4187 23.5873 67.307 31.5463 68.4538C32.693 76.4127 34.5814 83.4607 37.067 88.8055C38.4723 91.8275 40.1613 94.5078 42.187 96.4894C44.2298 98.4877 46.8655 100 50 100C53.1374 100 55.7729 98.4839 57.8136 96.4828C59.837 94.4986 61.5229 91.8154 62.9251 88.7916C65.4052 83.4434 67.2887 76.3924 68.4342 68.4342C76.3924 67.2886 83.4434 65.4052 88.7916 62.9251C91.8154 61.5229 94.4986 59.837 96.4828 57.8136C98.4839 55.7729 100 53.1373 100 50C100 46.8655 98.4877 44.2298 96.4894 42.187C94.5078 40.1613 91.8275 38.4722 88.8055 37.0669C83.4607 34.5814 76.4127 32.693 68.4538 31.5463C67.307 23.5873 65.4187 16.5393 62.9331 11.1945C61.5278 8.17255 59.8387 5.4922 57.8131 3.51061C55.7702 1.51225 53.1345 2.48353e-07 50 0C46.8655 0 44.2298 1.51225 42.187 3.51062C40.1613 5.49221 38.4722 8.17255 37.0669 11.1945C34.5814 16.5393 32.693 23.5873 31.5463 31.5462ZM40.1218 30.6199C46.6904 30.1307 53.3096 30.1307 59.8782 30.6199C58.8023 24.132 57.2245 18.6816 55.3769 14.7084C54.2152 12.2105 53.0394 10.4985 51.9857 9.46763C50.949 8.45356 50.2908 8.33333 50 8.33333C49.7092 8.33333 49.051 8.45356 48.0143 9.46762C46.9606 10.4985 45.7848 12.2105 44.6232 14.7084C42.7755 18.6816 41.1978 24.132 40.1218 30.6199ZM30.6199 59.8782C30.1308 53.3096 30.1308 46.6904 30.6199 40.1218C24.132 41.1978 18.6816 42.7755 14.7084 44.6232C12.2105 45.7848 10.4985 46.9606 9.46763 48.0144C8.45356 49.051 8.33333 49.7093 8.33333 50C8.33333 50.2908 8.45356 50.9491 9.46763 51.9857C10.4985 53.0395 12.2105 54.2153 14.7084 55.3769C18.6816 57.2245 24.132 58.8023 30.6199 59.8782ZM39.0663 39.0663C47.4383 38.3286 55.9175 38.4413 64.2566 39.4045C73.0116 40.4157 80.3118 42.3074 85.2916 44.6232C87.7895 45.7848 89.5015 46.9606 90.5324 48.0143C91.5464 49.051 91.6667 49.7092 91.6667 50C91.6667 50.2879 91.5478 50.9439 90.5328 51.9789C89.5009 53.0313 87.7868 54.2053 85.2858 55.3651C80.3001 57.6771 72.9936 59.5643 64.2369 60.5758L60.9549 60.9548L60.5758 64.2368C59.5644 72.9936 57.6771 80.3001 55.3651 85.2858C54.2053 87.7868 53.0313 89.5009 51.979 90.5328C50.9439 91.5478 50.288 91.6667 50 91.6667C49.7093 91.6667 49.051 91.5464 48.0144 90.5324C46.9606 89.5015 45.7848 87.7895 44.6232 85.2916C42.3074 80.3118 40.4157 73.0116 39.4045 64.2566C38.4413 55.9175 38.3286 47.4382 39.0663 39.0663Z"),s(e,"xmlns","http://www.w3.org/2000/svg"),s(e,"role","img"),s(e,"viewBox","0 0 100 100"),s(e,"width",a[0]),s(e,"height",a[1]),s(e,"class",r=m("fill-current",a[2].class))},m(t,i){_(t,e,i),w(e,C)},p(t,[i]){i&1&&s(e,"width",t[0]),i&2&&s(e,"height",t[1]),i&4&&r!==(r=m("fill-current",t[2].class))&&s(e,"class",r)},i:g,o:g,d(t){t&&l(e)}}}function x(a,e,C){const r=["width","height"];let t=f(e,r),{width:i=100}=e,{height:n=100}=e;return a.$$set=h=>{e=d(d({},e),p(h)),C(2,t=f(e,r)),"width"in h&&C(0,i=h.width),"height"in h&&C(1,n=h.height)},[i,n,t]}class k extends M{constructor(e){super(),L(this,e,x,Z,v,{width:0,height:1})}}export{k as L}; diff --git a/ui/assets/local/_app/immutable/chunks/logo.Nbcn9dc7.js b/ui/assets/local/_app/immutable/chunks/logo.eL_Bb5-G.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/logo.Nbcn9dc7.js rename to ui/assets/local/_app/immutable/chunks/logo.eL_Bb5-G.js index 7c95addea7..385a934657 100644 --- a/ui/assets/local/_app/immutable/chunks/logo.Nbcn9dc7.js +++ b/ui/assets/local/_app/immutable/chunks/logo.eL_Bb5-G.js @@ -1,3 +1,3 @@ -import{s as g,h as m,t as _,j as p,k as h,f as d,l as b,m as o,i as x,n as u,v as k,c as w}from"./scheduler.1T9hOnFr.js";import{S as $,i as y,c as C,a as F,m as I,t as M,b as Z,d as j}from"./index.cVovwi_s.js";import{p as E}from"./stores.6oDSidma.js";import{I as G}from"./icon.w8eknFMq.js";function L(c){let e,s,n,t,r,i;return t=new G({props:{class:"text-purple-200",name:"feedback",height:12,width:12}}),{c(){e=m("a"),s=m("div"),n=m("div"),C(t.$$.fragment),r=_(` +import{s as g,h as m,t as _,j as p,k as h,f as d,l as b,m as o,i as x,n as u,v as k,c as w}from"./scheduler.pPC3woXQ.js";import{S as $,i as y,c as C,a as F,m as I,t as M,b as Z,d as j}from"./index.Z3Qqxacm.js";import{p as E}from"./stores.cW8AX6ex.js";import{I as G}from"./icon.IMxiy1l_.js";function L(c){let e,s,n,t,r,i;return t=new G({props:{class:"text-purple-200",name:"feedback",height:12,width:12}}),{c(){e=m("a"),s=m("div"),n=m("div"),C(t.$$.fragment),r=_(` Give Feedback`),this.h()},l(a){e=p(a,"A",{href:!0,target:!0,"data-testid":!0,rel:!0});var l=h(e);s=p(l,"DIV",{class:!0});var f=h(s);n=p(f,"DIV",{class:!0});var v=h(n);F(t.$$.fragment,v),v.forEach(d),r=b(f,` Give Feedback`),f.forEach(d),l.forEach(d),this.h()},h(){o(n,"class","feedback-icon svelte-1909j35"),o(s,"class","feedback-button svelte-1909j35"),o(e,"href",c[0]),o(e,"target","_blank"),o(e,"data-testid","give-feedback"),o(e,"rel","noreferrer")},m(a,l){x(a,e,l),u(e,s),u(s,n),I(t,n,null),u(s,r),i=!0},p:k,i(a){i||(M(t.$$.fragment,a),i=!0)},o(a){Z(t.$$.fragment,a),i=!1},d(a){a&&d(e),j(t)}}}function P(c,e,s){let n;w(c,E,a=>s(3,n=a));var t,r;return[((r=(t=n.data)===null||t===void 0?void 0:t.settings)===null||r===void 0?void 0:r.feedbackURL)||"https://github.com/temporalio/ui/issues/new/choose"]}class q extends ${constructor(e){super(),y(this,e,P,L,g,{})}}const A="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='100px'%20height='100px'%20viewBox='0%200%20100%20100'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20version='1.1'%3e%3c!--%20Generated%20by%20Pixelmator%20Pro%202.1.3%20--%3e%3cpath%20id='Path'%20d='M65.816%2034.224%20C63.684%2018.251%2058.288%204.917%2049.999%204.917%2041.711%204.917%2036.314%2018.251%2034.182%2034.224%2018.208%2036.357%204.874%2041.753%204.874%2050.042%204.874%2058.33%2018.211%2063.727%2034.182%2065.859%2036.314%2081.83%2041.711%2095.167%2049.999%2095.167%2058.288%2095.167%2063.684%2081.83%2065.816%2065.859%2081.79%2063.727%2095.124%2058.33%2095.124%2050.042%2095.124%2041.753%2081.788%2036.357%2065.816%2034.224%20Z%20M33.661%2061.206%20C18.363%2058.997%209.44%2053.939%209.44%2050.042%209.44%2046.144%2018.363%2041.087%2033.661%2038.877%2033.324%2042.56%2033.149%2046.319%2033.149%2050.042%2033.149%2053.764%2033.324%2057.526%2033.661%2061.206%20Z%20M49.999%209.483%20C53.897%209.483%2058.954%2018.405%2061.164%2033.703%2057.483%2033.367%2053.721%2033.191%2049.999%2033.191%2046.277%2033.191%2042.515%2033.367%2038.835%2033.703%2041.044%2018.405%2046.102%209.483%2049.999%209.483%20Z%20M66.338%2061.206%20C65.585%2061.316%2062.496%2061.678%2061.715%2061.755%2061.638%2062.539%2061.273%2065.625%2061.166%2066.378%2058.956%2081.676%2053.899%2090.598%2050.001%2090.598%2046.104%2090.598%2041.047%2081.676%2038.837%2066.378%2038.73%2065.625%2038.365%2062.536%2038.288%2061.755%2037.932%2058.129%2037.717%2054.234%2037.717%2050.042%2037.717%2045.85%2037.932%2041.954%2038.288%2038.326%2041.914%2037.97%2045.809%2037.755%2050.001%2037.755%2054.194%2037.755%2058.089%2037.97%2061.715%2038.326%2062.499%2038.403%2065.585%2038.767%2066.338%2038.875%2081.636%2041.085%2090.56%2046.144%2090.56%2050.039%2090.56%2053.935%2081.636%2058.997%2066.338%2061.206%20Z'%20fill='%23ffffff'%20fill-opacity='1'%20stroke='none'/%3e%3c/svg%3e";export{q as F,A as L}; diff --git a/ui/assets/local/_app/immutable/chunks/lua.yQYSJvdl.js b/ui/assets/local/_app/immutable/chunks/lua.yQYSJvdl.js new file mode 100644 index 0000000000..f179cd391b --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/lua.yQYSJvdl.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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:"'"}]},o={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:/[=>"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}]},o={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"]]}};export{e as conf,o as language}; diff --git a/ui/assets/local/_app/immutable/chunks/main-content-container.TZpjCxUq.js b/ui/assets/local/_app/immutable/chunks/main-content-container.9pBi3yw-.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/main-content-container.TZpjCxUq.js rename to ui/assets/local/_app/immutable/chunks/main-content-container.9pBi3yw-.js index d627506e6e..d405dd849b 100644 --- a/ui/assets/local/_app/immutable/chunks/main-content-container.TZpjCxUq.js +++ b/ui/assets/local/_app/immutable/chunks/main-content-container.9pBi3yw-.js @@ -1 +1 @@ -import{D as v,s as R,z as B,a1 as io,h as y,j,k as D,f as k,m as C,I as F,i as U,E as J,A as K,b as O,d as q,W as to,n as I,c as L,a as Z,p as fo,u as w,g as x,e as $,v as uo,w as H}from"./scheduler.1T9hOnFr.js";import{S as X,i as Y,c as z,a as G,m as P,t as p,b as S,d as V,g as mo,e as _o}from"./index.cVovwi_s.js";import{w as M}from"./entry.1BQh90wu.js";import{h as To}from"./has.Hk4nWl3x.js";import{f as ho,a as go}from"./events.aXJDTsuJ.js";import{g as ro,a as ao}from"./spread.rEx3vLA9.js";import{B as co}from"./button.y7LhNtq8.js";const bo=t=>t===null||typeof t!="object"||Array.isArray(t)?!1:!!To(t,"activityType"),Q=200,N=M(0),W=M(Q),_=M([]),b=M([]),vo=()=>{b.set([]),_.set([]),N.set(0),W.set(Q)},Fo=()=>{b.set([]),_.set([])},Jo=t=>{_.set([]),v(b).includes(t.id)?b.set(v(b).filter(o=>o!==t.id)):b.set([...v(b),t.id])},Ko=t=>{_.set([]),v(b).includes(t.id)?b.set([]):b.set([t.id])},Qo=t=>{b.set([]),v(_).includes(t.id)?_.set([]):_.set([t.id])},Ro=(t,o)=>{if(b.set([]),bo(t)){_.set(v(_).filter(l=>l!==t.activityId));return}if(v(_).includes(t.id))_.set(v(_).filter(l=>l!==t.id));else{const l=v(_).find(s=>o==null?void 0:o.eventIds.has(s));l?_.set([...v(_).filter(s=>s!==l),t.id]):_.set([...v(_),t.id])}};function po(t){let o,l,s;const i=[{size:"xs"},{variant:"primary"},{leadingIcon:"arrow-down"},t[2]];let r={};for(let e=0;e{o=B(B({},o),K(n)),l(2,i=J(o,s)),"hidden"in n&&l(0,r=n.hidden),"onScrollToBottomClick"in n&&l(1,e=n.onScrollToBottomClick)},[r,e,i]}class ko extends X{constructor(o){super(),Y(this,o,So,po,R,{hidden:0,onScrollToBottomClick:1})}}function Co(t){let o,l,s;const i=[{size:"xs"},{variant:"primary"},{leadingIcon:"arrow-up"},t[2]];let r={};for(let e=0;e{o=B(B({},o),K(n)),l(2,i=J(o,s)),"hidden"in n&&l(0,r=n.hidden),"onScrollToTopClick"in n&&l(1,e=n.onScrollToTopClick)},[r,e,i]}class Ao extends X{constructor(o){super(),Y(this,o,Bo,Co,R,{hidden:0,onScrollToTopClick:1})}}function eo(t){let o,l;return o=new ko({props:{hidden:t[1],onScrollToBottomClick:t[3],"aria-label":t[5]}}),{c(){z(o.$$.fragment)},l(s){G(o.$$.fragment,s)},m(s,i){P(o,s,i),l=!0},p(s,i){const r={};i&2&&(r.hidden=s[1]),i&8&&(r.onScrollToBottomClick=s[3]),i&32&&(r["aria-label"]=s[5]),o.$set(r)},i(s){l||(p(o.$$.fragment,s),l=!0)},o(s){S(o.$$.fragment,s),l=!1},d(s){V(o,s)}}}function Eo(t){let o,l,s,i,r;l=new Ao({props:{hidden:t[0],onScrollToTopClick:t[2],"aria-label":t[4]}});let e=t[6].length&&eo(t);return{c(){o=y("div"),z(l.$$.fragment),s=O(),e&&e.c(),this.h()},l(n){o=j(n,"DIV",{id:!0,class:!0});var c=D(o);G(l.$$.fragment,c),s=q(c),e&&e.l(c),c.forEach(k),this.h()},h(){C(o,"id","scroll-container"),C(o,"class",i=to(t[7].class)+" svelte-jpa06r")},m(n,c){U(n,o,c),P(l,o,null),I(o,s),e&&e.m(o,null),r=!0},p(n,[c]){const g={};c&1&&(g.hidden=n[0]),c&4&&(g.onScrollToTopClick=n[2]),c&16&&(g["aria-label"]=n[4]),l.$set(g),n[6].length?e?(e.p(n,c),c&64&&p(e,1)):(e=eo(n),e.c(),p(e,1),e.m(o,null)):e&&(mo(),S(e,1,1,()=>{e=null}),_o()),(!r||c&128&&i!==(i=to(n[7].class)+" svelte-jpa06r"))&&C(o,"class",i)},i(n){r||(p(l.$$.fragment,n),p(e),r=!0)},o(n){S(l.$$.fragment,n),S(e),r=!1},d(n){n&&k(o),V(l),e&&e.d()}}}function Ho(t,o,l){let s;L(t,ho,u=>l(6,s=u));let{scrollToTopHidden:i=!0}=o,{scrollToBottomHidden:r=!1}=o,{onScrollToTopClick:e}=o,{onScrollToBottomClick:n}=o,{scrollToTopAriaLabel:c}=o,{scrollToBottomAriaLabel:g}=o;return t.$$set=u=>{l(7,o=B(B({},o),K(u))),"scrollToTopHidden"in u&&l(0,i=u.scrollToTopHidden),"scrollToBottomHidden"in u&&l(1,r=u.scrollToBottomHidden),"onScrollToTopClick"in u&&l(2,e=u.onScrollToTopClick),"onScrollToBottomClick"in u&&l(3,n=u.onScrollToBottomClick),"scrollToTopAriaLabel"in u&&l(4,c=u.scrollToTopAriaLabel),"scrollToBottomAriaLabel"in u&&l(5,g=u.scrollToBottomAriaLabel)},o=K(o),[i,r,e,n,c,g,s,o]}class Io extends X{constructor(o){super(),Y(this,o,Ho,Eo,R,{scrollToTopHidden:0,scrollToBottomHidden:1,onScrollToTopClick:2,onScrollToBottomClick:3,scrollToTopAriaLabel:4,scrollToBottomAriaLabel:5})}}const Lo=t=>({}),lo=t=>({}),yo=t=>({}),no=t=>({});function jo(t){let o,l,s,i,r,e,n,c,g;const u=t[5].default,T=Z(u,t,t[4],null),A=t[5].main,h=Z(A,t,t[4],no),f=t[5].footer,d=Z(f,t,t[4],lo);return e=new Io({props:{scrollToTopHidden:t[0],scrollToBottomHidden:Do,onScrollToTopClick:t[1],onScrollToBottomClick:t[2],scrollToTopAriaLabel:"Scroll to top",scrollToBottomAriaLabel:"Scroll to bottom"}}),{c(){o=y("div"),T&&T.c(),l=O(),s=y("main"),h&&h.c(),i=O(),d&&d.c(),r=O(),z(e.$$.fragment),this.h()},l(a){o=j(a,"DIV",{id:!0,class:!0});var m=D(o);T&&T.l(m),l=q(m),s=j(m,"MAIN",{id:!0,class:!0});var E=D(s);h&&h.l(E),E.forEach(k),i=q(m),d&&d.l(m),r=q(m),G(e.$$.fragment,m),m.forEach(k),this.h()},h(){C(s,"id","content"),C(s,"class","pb-16 md:pb-0"),C(o,"id","content-wrapper"),C(o,"class","relative h-screen w-max flex-auto overflow-auto")},m(a,m){U(a,o,m),T&&T.m(o,null),I(o,l),I(o,s),h&&h.m(s,null),I(o,i),d&&d.m(o,null),I(o,r),P(e,o,null),n=!0,c||(g=fo(o,"scroll",t[3]),c=!0)},p(a,[m]){T&&T.p&&(!n||m&16)&&w(T,u,a,a[4],n?$(u,a[4],m,null):x(a[4]),null),h&&h.p&&(!n||m&16)&&w(h,A,a,a[4],n?$(A,a[4],m,yo):x(a[4]),no),d&&d.p&&(!n||m&16)&&w(d,f,a,a[4],n?$(f,a[4],m,Lo):x(a[4]),lo);const E={};m&1&&(E.scrollToTopHidden=a[0]),e.$set(E)},i(a){n||(p(T,a),p(h,a),p(d,a),p(e.$$.fragment,a),n=!0)},o(a){S(T,a),S(h,a),S(d,a),S(e.$$.fragment,a),n=!1},d(a){a&&k(o),T&&T.d(a),h&&h.d(a),d&&d.d(a),V(e),c=!1,g()}}}const so=M(0);let Do=!1,zo=150;function oo(){return document.getElementById("content-wrapper")}function Go(t,o,l){let s,i=uo,r,e,n;L(t,so,f=>l(6,s=f)),L(t,W,f=>l(7,r=f)),L(t,N,f=>l(8,e=f)),L(t,go,f=>l(9,n=f)),t.$$.on_destroy.push(()=>i());let{$$slots:c={},$$scope:g}=o,u=!0;function T(){var f;H(N,e=0,e),H(W,r=Q,r),(f=oo())===null||f===void 0||f.scrollTo(0,0)}function A(){var f,d;const a=n==null?void 0:n.length;a&&(vo(),H(W,r=a,r),H(N,e=r-Q,e)),(f=oo())===null||f===void 0||f.scrollTo(0,(d=oo())===null||d===void 0?void 0:d.scrollHeight)}function h(f){const d=f.target;H(so,s=d.scrollTop,s),l(0,u=s{"$$scope"in f&&l(4,g=f.$$scope)},[u,T,A,h,g,c]}class Uo extends X{constructor(o){super(),Y(this,o,Go,jo,R,{})}}export{Uo as M,Qo as a,N as b,Fo as c,so as d,W as e,Q as f,Jo as g,Ko as h,bo as i,vo as j,b as k,_ as l,Ro as s}; +import{D as v,s as R,z as B,a1 as io,h as y,j,k as D,f as k,m as C,I as F,i as U,E as J,A as K,b as O,d as q,W as to,n as I,c as L,a as Z,p as fo,u as w,g as x,e as $,v as uo,w as H}from"./scheduler.pPC3woXQ.js";import{S as X,i as Y,c as z,a as G,m as P,t as p,b as S,d as V,g as mo,e as _o}from"./index.Z3Qqxacm.js";import{w as M}from"./entry.6mxJxwSM.js";import{h as To}from"./has.Hk4nWl3x.js";import{f as ho,a as go}from"./events.iAm6Xqt4.js";import{g as ro,a as ao}from"./spread.rEx3vLA9.js";import{B as co}from"./button.pYfDLC93.js";const bo=t=>t===null||typeof t!="object"||Array.isArray(t)?!1:!!To(t,"activityType"),Q=200,N=M(0),W=M(Q),_=M([]),b=M([]),vo=()=>{b.set([]),_.set([]),N.set(0),W.set(Q)},Fo=()=>{b.set([]),_.set([])},Jo=t=>{_.set([]),v(b).includes(t.id)?b.set(v(b).filter(o=>o!==t.id)):b.set([...v(b),t.id])},Ko=t=>{_.set([]),v(b).includes(t.id)?b.set([]):b.set([t.id])},Qo=t=>{b.set([]),v(_).includes(t.id)?_.set([]):_.set([t.id])},Ro=(t,o)=>{if(b.set([]),bo(t)){_.set(v(_).filter(l=>l!==t.activityId));return}if(v(_).includes(t.id))_.set(v(_).filter(l=>l!==t.id));else{const l=v(_).find(s=>o==null?void 0:o.eventIds.has(s));l?_.set([...v(_).filter(s=>s!==l),t.id]):_.set([...v(_),t.id])}};function po(t){let o,l,s;const i=[{size:"xs"},{variant:"primary"},{leadingIcon:"arrow-down"},t[2]];let r={};for(let e=0;e{o=B(B({},o),K(n)),l(2,i=J(o,s)),"hidden"in n&&l(0,r=n.hidden),"onScrollToBottomClick"in n&&l(1,e=n.onScrollToBottomClick)},[r,e,i]}class ko extends X{constructor(o){super(),Y(this,o,So,po,R,{hidden:0,onScrollToBottomClick:1})}}function Co(t){let o,l,s;const i=[{size:"xs"},{variant:"primary"},{leadingIcon:"arrow-up"},t[2]];let r={};for(let e=0;e{o=B(B({},o),K(n)),l(2,i=J(o,s)),"hidden"in n&&l(0,r=n.hidden),"onScrollToTopClick"in n&&l(1,e=n.onScrollToTopClick)},[r,e,i]}class Ao extends X{constructor(o){super(),Y(this,o,Bo,Co,R,{hidden:0,onScrollToTopClick:1})}}function eo(t){let o,l;return o=new ko({props:{hidden:t[1],onScrollToBottomClick:t[3],"aria-label":t[5]}}),{c(){z(o.$$.fragment)},l(s){G(o.$$.fragment,s)},m(s,i){P(o,s,i),l=!0},p(s,i){const r={};i&2&&(r.hidden=s[1]),i&8&&(r.onScrollToBottomClick=s[3]),i&32&&(r["aria-label"]=s[5]),o.$set(r)},i(s){l||(p(o.$$.fragment,s),l=!0)},o(s){S(o.$$.fragment,s),l=!1},d(s){V(o,s)}}}function Eo(t){let o,l,s,i,r;l=new Ao({props:{hidden:t[0],onScrollToTopClick:t[2],"aria-label":t[4]}});let e=t[6].length&&eo(t);return{c(){o=y("div"),z(l.$$.fragment),s=O(),e&&e.c(),this.h()},l(n){o=j(n,"DIV",{id:!0,class:!0});var c=D(o);G(l.$$.fragment,c),s=q(c),e&&e.l(c),c.forEach(k),this.h()},h(){C(o,"id","scroll-container"),C(o,"class",i=to(t[7].class)+" svelte-jpa06r")},m(n,c){U(n,o,c),P(l,o,null),I(o,s),e&&e.m(o,null),r=!0},p(n,[c]){const g={};c&1&&(g.hidden=n[0]),c&4&&(g.onScrollToTopClick=n[2]),c&16&&(g["aria-label"]=n[4]),l.$set(g),n[6].length?e?(e.p(n,c),c&64&&p(e,1)):(e=eo(n),e.c(),p(e,1),e.m(o,null)):e&&(mo(),S(e,1,1,()=>{e=null}),_o()),(!r||c&128&&i!==(i=to(n[7].class)+" svelte-jpa06r"))&&C(o,"class",i)},i(n){r||(p(l.$$.fragment,n),p(e),r=!0)},o(n){S(l.$$.fragment,n),S(e),r=!1},d(n){n&&k(o),V(l),e&&e.d()}}}function Ho(t,o,l){let s;L(t,ho,u=>l(6,s=u));let{scrollToTopHidden:i=!0}=o,{scrollToBottomHidden:r=!1}=o,{onScrollToTopClick:e}=o,{onScrollToBottomClick:n}=o,{scrollToTopAriaLabel:c}=o,{scrollToBottomAriaLabel:g}=o;return t.$$set=u=>{l(7,o=B(B({},o),K(u))),"scrollToTopHidden"in u&&l(0,i=u.scrollToTopHidden),"scrollToBottomHidden"in u&&l(1,r=u.scrollToBottomHidden),"onScrollToTopClick"in u&&l(2,e=u.onScrollToTopClick),"onScrollToBottomClick"in u&&l(3,n=u.onScrollToBottomClick),"scrollToTopAriaLabel"in u&&l(4,c=u.scrollToTopAriaLabel),"scrollToBottomAriaLabel"in u&&l(5,g=u.scrollToBottomAriaLabel)},o=K(o),[i,r,e,n,c,g,s,o]}class Io extends X{constructor(o){super(),Y(this,o,Ho,Eo,R,{scrollToTopHidden:0,scrollToBottomHidden:1,onScrollToTopClick:2,onScrollToBottomClick:3,scrollToTopAriaLabel:4,scrollToBottomAriaLabel:5})}}const Lo=t=>({}),lo=t=>({}),yo=t=>({}),no=t=>({});function jo(t){let o,l,s,i,r,e,n,c,g;const u=t[5].default,T=Z(u,t,t[4],null),A=t[5].main,h=Z(A,t,t[4],no),f=t[5].footer,d=Z(f,t,t[4],lo);return e=new Io({props:{scrollToTopHidden:t[0],scrollToBottomHidden:Do,onScrollToTopClick:t[1],onScrollToBottomClick:t[2],scrollToTopAriaLabel:"Scroll to top",scrollToBottomAriaLabel:"Scroll to bottom"}}),{c(){o=y("div"),T&&T.c(),l=O(),s=y("main"),h&&h.c(),i=O(),d&&d.c(),r=O(),z(e.$$.fragment),this.h()},l(a){o=j(a,"DIV",{id:!0,class:!0});var m=D(o);T&&T.l(m),l=q(m),s=j(m,"MAIN",{id:!0,class:!0});var E=D(s);h&&h.l(E),E.forEach(k),i=q(m),d&&d.l(m),r=q(m),G(e.$$.fragment,m),m.forEach(k),this.h()},h(){C(s,"id","content"),C(s,"class","pb-16 md:pb-0"),C(o,"id","content-wrapper"),C(o,"class","relative h-screen w-max flex-auto overflow-auto")},m(a,m){U(a,o,m),T&&T.m(o,null),I(o,l),I(o,s),h&&h.m(s,null),I(o,i),d&&d.m(o,null),I(o,r),P(e,o,null),n=!0,c||(g=fo(o,"scroll",t[3]),c=!0)},p(a,[m]){T&&T.p&&(!n||m&16)&&w(T,u,a,a[4],n?$(u,a[4],m,null):x(a[4]),null),h&&h.p&&(!n||m&16)&&w(h,A,a,a[4],n?$(A,a[4],m,yo):x(a[4]),no),d&&d.p&&(!n||m&16)&&w(d,f,a,a[4],n?$(f,a[4],m,Lo):x(a[4]),lo);const E={};m&1&&(E.scrollToTopHidden=a[0]),e.$set(E)},i(a){n||(p(T,a),p(h,a),p(d,a),p(e.$$.fragment,a),n=!0)},o(a){S(T,a),S(h,a),S(d,a),S(e.$$.fragment,a),n=!1},d(a){a&&k(o),T&&T.d(a),h&&h.d(a),d&&d.d(a),V(e),c=!1,g()}}}const so=M(0);let Do=!1,zo=150;function oo(){return document.getElementById("content-wrapper")}function Go(t,o,l){let s,i=uo,r,e,n;L(t,so,f=>l(6,s=f)),L(t,W,f=>l(7,r=f)),L(t,N,f=>l(8,e=f)),L(t,go,f=>l(9,n=f)),t.$$.on_destroy.push(()=>i());let{$$slots:c={},$$scope:g}=o,u=!0;function T(){var f;H(N,e=0,e),H(W,r=Q,r),(f=oo())===null||f===void 0||f.scrollTo(0,0)}function A(){var f,d;const a=n==null?void 0:n.length;a&&(vo(),H(W,r=a,r),H(N,e=r-Q,e)),(f=oo())===null||f===void 0||f.scrollTo(0,(d=oo())===null||d===void 0?void 0:d.scrollHeight)}function h(f){const d=f.target;H(so,s=d.scrollTop,s),l(0,u=s{"$$scope"in f&&l(4,g=f.$$scope)},[u,T,A,h,g,c]}class Uo extends X{constructor(o){super(),Y(this,o,Go,jo,R,{})}}export{Uo as M,Qo as a,N as b,Fo as c,so as d,W as e,Q as f,Jo as g,Ko as h,bo as i,vo as j,b as k,_ as l,Ro as s}; diff --git a/ui/assets/local/_app/immutable/chunks/markdown.IWAhDOwN.js b/ui/assets/local/_app/immutable/chunks/markdown.IWAhDOwN.js new file mode 100644 index 0000000000..fd821fd462 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/markdown.IWAhDOwN.js @@ -0,0 +1 @@ +import{s as f,h as d,j as _,k as p,f as c,m as a,i as k,v as u,c as w,R as m,p as M,M as y}from"./scheduler.pPC3woXQ.js";import{S as I,i as C}from"./index.Z3Qqxacm.js";import{u as E}from"./dark-mode.YD2NgNRt.js";function h(r){let e,o,s,n;return{c(){e=d("iframe"),this.h()},l(t){e=_(t,"IFRAME",{title:!0,src:!0,class:!0}),p(e).forEach(c),this.h()},h(){a(e,"title","output"),m(e.src,o="/render?content="+encodeURIComponent(r[0])+"&theme="+r[2])||a(e,"src",o),a(e,"class","w-full rounded-md shadow-md dark:shadow-slate-900")},m(t,i){k(t,e,i),r[5](e),s||(n=M(e,"load",r[3]),s=!0)},p(t,i){i&5&&!m(e.src,o="/render?content="+encodeURIComponent(t[0])+"&theme="+t[2])&&a(e,"src",o)},d(t){t&&c(e),r[5](null),s=!1,n()}}}function R(r){let e,o=r[2],s=h(r);return{c(){e=d("section"),s.c(),this.h()},l(n){e=_(n,"SECTION",{class:!0});var t=p(e);s.l(t),t.forEach(c),this.h()},h(){a(e,"class","h-full w-full")},m(n,t){k(n,e,t),s.m(e,null)},p(n,[t]){t&4&&f(o,o=n[2])?(s.d(1),s=h(n),s.c(),s.m(e,null)):s.p(n,t)},i:u,o:u,d(n){n&&c(e),s.d(n)}}}function S(r,e,o){let s,n;w(r,E,l=>o(4,n=l));let{content:t}=e,i;const b=()=>{i&&(o(1,i.height="",i),o(1,i.height=i.contentWindow.document.body.scrollHeight+2+"px",i))};function g(l){y[l?"unshift":"push"](()=>{i=l,o(1,i)})}return r.$$set=l=>{"content"in l&&o(0,t=l.content)},r.$$.update=()=>{r.$$.dirty&16&&o(2,s=n?"dark":"light")},[t,i,s,b,n,g]}class j extends I{constructor(e){super(),C(this,e,S,R,f,{content:0})}}export{j as M}; diff --git a/ui/assets/local/_app/immutable/chunks/markdown.cMcvu1Qa.js b/ui/assets/local/_app/immutable/chunks/markdown.cMcvu1Qa.js new file mode 100644 index 0000000000..7ac15aec63 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/markdown.cMcvu1Qa.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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*")}}},t={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})/};export{e as conf,t as language}; diff --git a/ui/assets/local/_app/immutable/chunks/pla.hC4n8AoX.js b/ui/assets/local/_app/immutable/chunks/pla.hC4n8AoX.js new file mode 100644 index 0000000000..bec254074c --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/pla.hC4n8AoX.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"#"},brackets:[["[","]"],["<",">"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}]},o={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"}}]]}};export{e as conf,o as language}; diff --git a/ui/assets/local/_app/immutable/chunks/pollers-service.pBUc3Km3.js b/ui/assets/local/_app/immutable/chunks/pollers-service.GIYRmUbh.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/pollers-service.pBUc3Km3.js rename to ui/assets/local/_app/immutable/chunks/pollers-service.GIYRmUbh.js index 993a9ca083..82d7be3c7e 100644 --- a/ui/assets/local/_app/immutable/chunks/pollers-service.pBUc3Km3.js +++ b/ui/assets/local/_app/immutable/chunks/pollers-service.GIYRmUbh.js @@ -1 +1 @@ -import{t as l}from"./translate.HrioCK44.js";import{r as h,a as g}from"./route-for-api.FVhOJtE0.js";const p=e=>(e!=null&&e.majorVersionSets?[...e.majorVersionSets]:[]).reverse(),y=e=>{if(!(!e||!e.length))return e[e.length-1]},k=e=>e?e.slice(0,e.length-1).reverse():[],C=e=>{var n;const t=p(e);if(!t.length)return;const s=(n=t[0])==null?void 0:n.buildIds;if(s!=null&&s.length)return y(t[0].buildIds)},v=e=>{var t,s;if(e!=null&&e.assignedBuildId)return e.assignedBuildId;if((t=e==null?void 0:e.mostRecentWorkerVersionStamp)!=null&&t.useVersioning)return((s=e.mostRecentWorkerVersionStamp)==null?void 0:s.buildId)||void 0},T=e=>{var t,s;if((t=e==null?void 0:e.workerVersionCapabilities)!=null&&t.useVersioning)return((s=e.workerVersionCapabilities)==null?void 0:s.buildId)||void 0},A=e=>[...new Set(e==null?void 0:e.map(T).filter(Boolean))],F=e=>e==null?void 0:e.some(t=>{var s;return(s=t==null?void 0:t.workerVersionCapabilities)==null?void 0:s.useVersioning});async function W(e,t=fetch){var a;const s=h("task-queue",e),n=await g(s,{request:t,params:{taskQueueType:"1"}}),r=await g(s,{request:t,params:{taskQueueType:"2"}});n!=null&&n.pollers||(n.pollers=[]),r!=null&&r.pollers||(r.pollers=[]),r.pollers.forEach(u=>{u.taskQueueTypes=["ACTIVITY"]}),n.pollers.forEach(u=>{u.taskQueueTypes=["WORKFLOW"]});const c=u=>(d,m)=>{const f=d[m.identity]||{lastAccessTime:void 0,taskQueueTypes:[]};return d[m.identity]={lastAccessTime:!f.lastAccessTime||f.lastAccessTimen.pollers.some(d=>{if(u.identity===d.identity)return u.taskQueueTypes=[...d.taskQueueTypes,...u.taskQueueTypes],u})),(a=r.pollers)==null||a.reduce(c("ACTIVITY"),n.pollers.reduce(c("WORKFLOW"),{}));const i=r.pollers.length?r.pollers:n.pollers,o=r.pollers.length?r.taskQueueStatus:n.taskQueueStatus;return{pollers:i,taskQueueStatus:o}}async function B(e,t=fetch){const s=await I(e,t),n=await Q(e,t),r=p(n);return{rules:s,compatibility:n,versionSets:r}}async function I(e,t=fetch){const s=h("task-queue.rules",e);return g(s,{request:t,handleError:n=>{}})}async function Q(e,t=fetch){const s=h("task-queue.compatibility",e);return g(s,{request:t,handleError:n=>{}})}async function E(e,t=fetch){const{namespace:s,buildIds:n,queue:r}=e,c=h("worker-task-reachability",{namespace:s}),i=new URLSearchParams;if(n.length)for(const o of n)i.append("buildIds",o);else i.append("buildIds",""),i.append("taskQueues",r);return await g(c,{request:t,params:i,handleError:o=>({buildIdReachability:[]})})}function V(e){return!e||!e.length?l("workers.ready-to-be-retired"):e.length===1&&e.includes("CLOSED")?l("common.maybe"):l("common.no")}function O(e,t,s){var i,o;const n=(i=e==null?void 0:e.buildIdReachability)==null?void 0:i.find(a=>a.buildId===s);if(!n)return"";const r=(o=n==null?void 0:n.taskQueueReachability)==null?void 0:o.find(a=>(a==null?void 0:a.taskQueue)===t);if(!r)return"";const c=r==null?void 0:r.reachability;return V(c)}export{C as a,T as b,O as c,y as d,k as e,B as f,p as g,A as h,E as i,W as j,v as k,F as p}; +import{t as l}from"./translate.HrioCK44.js";import{r as h,a as g}from"./route-for-api.hWBHnwul.js";const p=e=>(e!=null&&e.majorVersionSets?[...e.majorVersionSets]:[]).reverse(),y=e=>{if(!(!e||!e.length))return e[e.length-1]},k=e=>e?e.slice(0,e.length-1).reverse():[],C=e=>{var n;const t=p(e);if(!t.length)return;const s=(n=t[0])==null?void 0:n.buildIds;if(s!=null&&s.length)return y(t[0].buildIds)},v=e=>{var t,s;if(e!=null&&e.assignedBuildId)return e.assignedBuildId;if((t=e==null?void 0:e.mostRecentWorkerVersionStamp)!=null&&t.useVersioning)return((s=e.mostRecentWorkerVersionStamp)==null?void 0:s.buildId)||void 0},T=e=>{var t,s;if((t=e==null?void 0:e.workerVersionCapabilities)!=null&&t.useVersioning)return((s=e.workerVersionCapabilities)==null?void 0:s.buildId)||void 0},A=e=>[...new Set(e==null?void 0:e.map(T).filter(Boolean))],F=e=>e==null?void 0:e.some(t=>{var s;return(s=t==null?void 0:t.workerVersionCapabilities)==null?void 0:s.useVersioning});async function W(e,t=fetch){var a;const s=h("task-queue",e),n=await g(s,{request:t,params:{taskQueueType:"1"}}),r=await g(s,{request:t,params:{taskQueueType:"2"}});n!=null&&n.pollers||(n.pollers=[]),r!=null&&r.pollers||(r.pollers=[]),r.pollers.forEach(u=>{u.taskQueueTypes=["ACTIVITY"]}),n.pollers.forEach(u=>{u.taskQueueTypes=["WORKFLOW"]});const c=u=>(d,m)=>{const f=d[m.identity]||{lastAccessTime:void 0,taskQueueTypes:[]};return d[m.identity]={lastAccessTime:!f.lastAccessTime||f.lastAccessTimen.pollers.some(d=>{if(u.identity===d.identity)return u.taskQueueTypes=[...d.taskQueueTypes,...u.taskQueueTypes],u})),(a=r.pollers)==null||a.reduce(c("ACTIVITY"),n.pollers.reduce(c("WORKFLOW"),{}));const i=r.pollers.length?r.pollers:n.pollers,o=r.pollers.length?r.taskQueueStatus:n.taskQueueStatus;return{pollers:i,taskQueueStatus:o}}async function B(e,t=fetch){const s=await I(e,t),n=await Q(e,t),r=p(n);return{rules:s,compatibility:n,versionSets:r}}async function I(e,t=fetch){const s=h("task-queue.rules",e);return g(s,{request:t,handleError:n=>{}})}async function Q(e,t=fetch){const s=h("task-queue.compatibility",e);return g(s,{request:t,handleError:n=>{}})}async function E(e,t=fetch){const{namespace:s,buildIds:n,queue:r}=e,c=h("worker-task-reachability",{namespace:s}),i=new URLSearchParams;if(n.length)for(const o of n)i.append("buildIds",o);else i.append("buildIds",""),i.append("taskQueues",r);return await g(c,{request:t,params:i,handleError:o=>({buildIdReachability:[]})})}function V(e){return!e||!e.length?l("workers.ready-to-be-retired"):e.length===1&&e.includes("CLOSED")?l("common.maybe"):l("common.no")}function O(e,t,s){var i,o;const n=(i=e==null?void 0:e.buildIdReachability)==null?void 0:i.find(a=>a.buildId===s);if(!n)return"";const r=(o=n==null?void 0:n.taskQueueReachability)==null?void 0:o.find(a=>(a==null?void 0:a.taskQueue)===t);if(!r)return"";const c=r==null?void 0:r.reachability;return V(c)}export{C as a,T as b,O as c,y as d,k as e,B as f,p as g,A as h,E as i,W as j,v as k,F as p}; diff --git a/ui/assets/local/_app/immutable/chunks/postiats.pZAh034b.js b/ui/assets/local/_app/immutable/chunks/postiats.pZAh034b.js new file mode 100644 index 0000000000..e5e5392ef2 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/postiats.pZAh034b.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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"]}]},t={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"}}]}};export{e as conf,t as language}; diff --git a/ui/assets/local/_app/immutable/chunks/powerquery.UYX00GYd.js b/ui/assets/local/_app/immutable/chunks/powerquery.UYX00GYd.js new file mode 100644 index 0000000000..a75d99ebd1 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/powerquery.UYX00GYd.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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"]}]},t={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"]]}};export{e as conf,t as language}; diff --git a/ui/assets/local/_app/immutable/chunks/powershell.xTmuV_ro.js b/ui/assets/local/_app/immutable/chunks/powershell.xTmuV_ro.js new file mode 100644 index 0000000000..60c6fcb5dc --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/powershell.xTmuV_ro.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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")}}},n={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"]]}};export{e as conf,n as language}; diff --git a/ui/assets/local/_app/immutable/chunks/preload-helper.0HuHagjb.js b/ui/assets/local/_app/immutable/chunks/preload-helper.0HuHagjb.js new file mode 100644 index 0000000000..31c2703244 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/preload-helper.0HuHagjb.js @@ -0,0 +1 @@ +const d="modulepreload",m=function(a,l){return new URL(a,l).href},f={},E=function(l,i,c){let u=Promise.resolve();if(i&&i.length>0){const n=document.getElementsByTagName("link");u=Promise.all(i.map(e=>{if(e=m(e,c),e in f)return;f[e]=!0;const r=e.endsWith(".css"),h=r?'[rel="stylesheet"]':"";if(!!c)for(let s=n.length-1;s>=0;s--){const o=n[s];if(o.href===e&&(!r||o.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${e}"]${h}`))return;const t=document.createElement("link");if(t.rel=r?"stylesheet":d,r||(t.as="script",t.crossOrigin=""),t.href=e,document.head.appendChild(t),r)return new Promise((s,o)=>{t.addEventListener("load",s),t.addEventListener("error",()=>o(new Error(`Unable to preload CSS for ${e}`)))})}))}return u.then(()=>l()).catch(n=>{const e=new Event("vite:preloadError",{cancelable:!0});if(e.payload=n,window.dispatchEvent(e),!e.defaultPrevented)throw n})};export{E as _}; diff --git a/ui/assets/local/_app/immutable/chunks/progress-bar.l83o4fxW.js b/ui/assets/local/_app/immutable/chunks/progress-bar.c2MAH3Wt.js similarity index 81% rename from ui/assets/local/_app/immutable/chunks/progress-bar.l83o4fxW.js rename to ui/assets/local/_app/immutable/chunks/progress-bar.c2MAH3Wt.js index 3df4185acd..0a3821c956 100644 --- a/ui/assets/local/_app/immutable/chunks/progress-bar.l83o4fxW.js +++ b/ui/assets/local/_app/immutable/chunks/progress-bar.c2MAH3Wt.js @@ -1 +1 @@ -import{s as f,h as r,j as l,k as o,f as n,C as h,m as c,i as m,n as u,v as d}from"./scheduler.1T9hOnFr.js";import{S as p,i as _}from"./index.cVovwi_s.js";function v(i){let t,e;return{c(){t=r("div"),e=r("span"),this.h()},l(s){t=l(s,"DIV",{class:!0});var a=o(t);e=l(a,"SPAN",{style:!0,class:!0}),o(e).forEach(n),a.forEach(n),this.h()},h(){h(e,"width",i[0]),c(e,"class","svelte-y7l6sy"),c(t,"class","meter svelte-y7l6sy")},m(s,a){m(s,t,a),u(t,e)},p(s,[a]){a&1&&h(e,"width",s[0])},i:d,o:d,d(s){s&&n(t)}}}function y(i,t,e){let{width:s="100%"}=t;return i.$$set=a=>{"width"in a&&e(0,s=a.width)},[s]}class S extends p{constructor(t){super(),_(this,t,y,v,f,{width:0})}}export{S as P}; +import{s as f,h as r,j as l,k as o,f as n,C as h,m as c,i as m,n as u,v as d}from"./scheduler.pPC3woXQ.js";import{S as p,i as _}from"./index.Z3Qqxacm.js";function v(i){let t,e;return{c(){t=r("div"),e=r("span"),this.h()},l(s){t=l(s,"DIV",{class:!0});var a=o(t);e=l(a,"SPAN",{style:!0,class:!0}),o(e).forEach(n),a.forEach(n),this.h()},h(){h(e,"width",i[0]),c(e,"class","svelte-y7l6sy"),c(t,"class","meter svelte-y7l6sy")},m(s,a){m(s,t,a),u(t,e)},p(s,[a]){a&1&&h(e,"width",s[0])},i:d,o:d,d(s){s&&n(t)}}}function y(i,t,e){let{width:s="100%"}=t;return i.$$set=a=>{"width"in a&&e(0,s=a.width)},[s]}class S extends p{constructor(t){super(),_(this,t,y,v,f,{width:0})}}export{S as P}; diff --git a/ui/assets/local/_app/immutable/chunks/protobuf.CWi0Pjxk.js b/ui/assets/local/_app/immutable/chunks/protobuf.CWi0Pjxk.js new file mode 100644 index 0000000000..9195c4518e --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/protobuf.CWi0Pjxk.js @@ -0,0 +1,7 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e=["true","false"],t={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*[\\}\\]].*$")}},n={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"}]]}};export{t as conf,n as language}; diff --git a/ui/assets/local/_app/immutable/chunks/pug.SAbAMZ1d.js b/ui/assets/local/_app/immutable/chunks/pug.SAbAMZ1d.js new file mode 100644 index 0000000000..647d011fde --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/pug.SAbAMZ1d.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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}},t={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(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:a.languages.IndentAction.Indent}}]},y={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})/};export{b as conf,y as language}; diff --git a/ui/assets/local/_app/immutable/chunks/redis.FKkC1Cmr.js b/ui/assets/local/_app/immutable/chunks/redis.FKkC1Cmr.js new file mode 100644 index 0000000000..96aa9df23e --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/redis.FKkC1Cmr.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var E={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},S={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:[]}};export{E as conf,S as language}; diff --git a/ui/assets/local/_app/immutable/chunks/redshift.DVyaNrB-.js b/ui/assets/local/_app/immutable/chunks/redshift.DVyaNrB-.js new file mode 100644 index 0000000000..c814050e70 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/redshift.DVyaNrB-.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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:"'"}]},_={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:[]}};export{e as conf,_ as language}; diff --git a/ui/assets/local/_app/immutable/chunks/restructuredtext.F6AaRcRA.js b/ui/assets/local/_app/immutable/chunks/restructuredtext.F6AaRcRA.js new file mode 100644 index 0000000000..a4733023d3 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/restructuredtext.F6AaRcRA.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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*")}}},n={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"]]}};export{e as conf,n as language}; diff --git a/ui/assets/local/_app/immutable/chunks/route-for-api.FVhOJtE0.js b/ui/assets/local/_app/immutable/chunks/route-for-api.hWBHnwul.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/route-for-api.FVhOJtE0.js rename to ui/assets/local/_app/immutable/chunks/route-for-api.hWBHnwul.js index 6d6dfbe06e..af9219ab9c 100644 --- a/ui/assets/local/_app/immutable/chunks/route-for-api.FVhOJtE0.js +++ b/ui/assets/local/_app/immutable/chunks/route-for-api.hWBHnwul.js @@ -1 +1 @@ -import{B as f}from"./prod-browser.6V4A_NcJ.js";import{g as $}from"./auth-user.ZpmVHepC.js";import{w as C}from"./entry.1BQh90wu.js";import{t as R}from"./toaster.IevlZuOP.js";import{h as y}from"./has.Hk4nWl3x.js";import{i as F}from"./is-network-error.8f5XuXSS.js";import{n as h,t as O}from"./route-for.R0Qj5GxB.js";import{i as P}from"./persist-store.yDfC1oT_.js";import{D as I}from"./scheduler.1T9hOnFr.js";import{b as W}from"./paths.uI-MwgM_.js";import{p as T}from"./stores.6oDSidma.js";import{m as N}from"./version-check.HLZIw2tw.js";const S=C(null),_=(c,n=R,i=S,s=f)=>{if(!(c instanceof DOMException&&c.name==="AbortError"))throw typeof c=="string"?n.push({variant:"error",message:c}):c.report=!1,c instanceof Error&&n.push({variant:"error",message:c.message}),v(c)&&s&&window.location.assign(h(c==null?void 0:c.message)),x(c)&&s&&window.location.assign(h(c==null?void 0:c.message)),F(c)&&(n.push({variant:"error",message:`${c.statusCode} ${c.statusText}`}),i.set(c)),c},un=(c,n=f)=>{var s;const i=`${c==null?void 0:c.status} ${(s=c==null?void 0:c.body)==null?void 0:s.message}`;if(v(c)&&n){window.location.assign(h(i));return}if(x(c)&&n){window.location.assign(h(i));return}},v=c=>U(c,401),x=c=>U(c,403),U=(c,n)=>y(c,"statusCode")?c.statusCode===n:y(c,"status")?c.status===n:!1,ln=c=>(c==null?void 0:c.message)!==void 0&&typeof(c==null?void 0:c.message)=="string",tn=async(c,n={})=>{const{params:i={},request:s=fetch,token:u,notifyOnError:o=!0,handleError:t=_,onError:k,isBrowser:g=f}=n;let{options:w}=n,e=new URLSearchParams;if(i!=null&&i.entries)e=i,u&&e.set("nextPageToken",u);else{const l=u?{next_page_token:u}:{};e=new URLSearchParams({...i,...l})}const q=O(c,e);try{w=z(w,g),c.endsWith("api/v1/settings")||(w=await L(w,g));const l=await s(q,w),d=await l.json(),{status:E,statusText:A}=l;if(!l.ok)if(k&&P(k))k({status:E,statusText:A,body:d});else throw{statusCode:l.status,statusText:l.statusText,response:l,message:(d==null?void 0:d.message)??l.statusText};return d}catch(l){if(o)t(l);else throw l}},z=(c,n=f)=>{const i={credentials:"include",...c};return i.headers=D(c==null?void 0:c.headers,n),i},L=async(c,n=f)=>(globalThis!=null&&globalThis.AccessToken?c.headers=await b(c==null?void 0:c.headers,globalThis.AccessToken,n):$().accessToken&&(c.headers=await b(c==null?void 0:c.headers,async()=>$().accessToken,n),c.headers=B(c==null?void 0:c.headers,$().idToken,n)),c),b=async(c,n,i=f)=>{if(c||(c={}),!i)return c;try{const s=await n();s&&(c.Authorization=`Bearer ${s}`)}catch(s){console.error(s)}return c},B=(c={},n,i=f)=>(i&&n&&(c["Authorization-Extras"]=n),c),D=(c,n=f)=>{if(c||(c={}),c["Caller-Type"]="operator",!n)return c;const i="_csrf=",s="X-CSRF-TOKEN";try{let o=document.cookie.split(";").find(t=>t.includes(i));o&&!c[s]&&(o=o.trim().slice(i.length),c[s]=o)}catch(u){console.error(u)}return c};function J(c=f){const n="",i=!n.startsWith("http");let s="";return i?s=c?window.location.origin+n:"":s=n,s.endsWith("/")&&(s=s.slice(0,-1)),s}const H=(c,n)=>c?c.replace("%namespace%",n):"",K=c=>{var o,t;let n="";const i=(o=I(T).data)==null?void 0:o.webUrl,s=i&&c,u=((t=globalThis==null?void 0:globalThis.AppConfig)==null?void 0:t.apiUrl)&&c;return s?n=i:u?(console.warn("Using fallback api url, web url not found"),n=H(globalThis.AppConfig.apiUrl,c)):n=J(),n.endsWith("/")&&(n=n.slice(0,-1)),n=`${n}${W}`,n},M=c=>(c.startsWith("/")&&(c=c.slice(1)),`/api/v1/${c}`),V=(c,n)=>`${K(n)}${c}`,X=c=>{var i,s,u;const n=(u=(s=(i=I(T))==null?void 0:i.data)==null?void 0:s.settings)==null?void 0:u.version;return Object.keys(c??{}).reduce((o,t)=>(n&&N("2.23.0",n)?o[t]=encodeURIComponent(c[t]):o[t]=encodeURIComponent(encodeURIComponent(c[t])),o),{namespace:"",workflowId:"",scheduleId:"",queue:"",queryType:"",signalName:"",batchJobId:"",activityId:"",endpointId:""})};function G(c,n,i=!0){i&&(n=X(n));const s={systemInfo:"/system-info",cluster:"/cluster-info",namespaces:"/namespaces",namespace:`/namespaces/${n==null?void 0:n.namespace}`,"search-attributes":`/namespaces/${n.namespace}/search-attributes`,"events.ascending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/history`,"events.descending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/history-reverse`,query:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/query/${n.queryType}`,schedule:`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}`,"schedule.patch":`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}/patch`,"schedule.edit":`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}/update`,schedules:`/namespaces/${n==null?void 0:n.namespace}/schedules`,settings:"/settings","task-queue":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}`,"task-queue.compatibility":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}/worker-build-id-compatibility`,"task-queue.rules":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}/worker-versioning-rules`,user:"/me","worker-task-reachability":`/namespaces/${n==null?void 0:n.namespace}/worker-task-reachability`,"workflow.terminate":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/terminate`,"workflow.cancel":`/namespaces/${n.namespace}/workflows/${n.workflowId}/cancel`,"workflow.signal":`/namespaces/${n.namespace}/workflows/${n.workflowId}/signal/${n.signalName}`,"workflow.reset":`/namespaces/${n.namespace}/workflows/${n.workflowId}/reset`,workflow:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}`,workflows:`/namespaces/${n==null?void 0:n.namespace}/workflows`,"workflows.archived":`/namespaces/${n==null?void 0:n.namespace}/archived-workflows`,"workflows.count":`/namespaces/${n==null?void 0:n.namespace}/workflow-count`,"activity.complete":`/namespaces/${n.namespace}/activities/complete-by-id`,"activity.fail":`/namespaces/${n.namespace}/activities/fail-by-id`,"batch-operations.list":`/namespaces/${n.namespace}/batch-operations`,"batch-operations":`/namespaces/${n.namespace}/batch-operations/${n==null?void 0:n.batchJobId}`,"nexus-endpoints":"/nexus/endpoints","nexus-endpoint":`/nexus/endpoints/${n.endpointId}`,"nexus-endpoint.update":`/nexus/endpoints/${n.endpointId}/update`};return M(s[c])}function fn(c,n,i=!0){const s=G(c,n,i);return V(s,n==null?void 0:n.namespace)}export{tn as a,K as b,un as c,v as d,x as e,J as g,_ as h,ln as i,S as n,G as p,fn as r}; +import{B as f}from"./prod-browser.6V4A_NcJ.js";import{g as $}from"./auth-user.hBqnVR-w.js";import{w as C}from"./entry.6mxJxwSM.js";import{t as R}from"./toaster.pceGNaxq.js";import{h as y}from"./has.Hk4nWl3x.js";import{i as F}from"./is-network-error.8f5XuXSS.js";import{n as h,t as O}from"./route-for.Gs4LHMCg.js";import{i as P}from"./persist-store.cEgNkZhn.js";import{D as I}from"./scheduler.pPC3woXQ.js";import{b as W}from"./paths.yvZ-Br9O.js";import{p as T}from"./stores.cW8AX6ex.js";import{m as N}from"./version-check.HLZIw2tw.js";const S=C(null),_=(c,n=R,i=S,s=f)=>{if(!(c instanceof DOMException&&c.name==="AbortError"))throw typeof c=="string"?n.push({variant:"error",message:c}):c.report=!1,c instanceof Error&&n.push({variant:"error",message:c.message}),v(c)&&s&&window.location.assign(h(c==null?void 0:c.message)),x(c)&&s&&window.location.assign(h(c==null?void 0:c.message)),F(c)&&(n.push({variant:"error",message:`${c.statusCode} ${c.statusText}`}),i.set(c)),c},un=(c,n=f)=>{var s;const i=`${c==null?void 0:c.status} ${(s=c==null?void 0:c.body)==null?void 0:s.message}`;if(v(c)&&n){window.location.assign(h(i));return}if(x(c)&&n){window.location.assign(h(i));return}},v=c=>U(c,401),x=c=>U(c,403),U=(c,n)=>y(c,"statusCode")?c.statusCode===n:y(c,"status")?c.status===n:!1,ln=c=>(c==null?void 0:c.message)!==void 0&&typeof(c==null?void 0:c.message)=="string",tn=async(c,n={})=>{const{params:i={},request:s=fetch,token:u,notifyOnError:o=!0,handleError:t=_,onError:k,isBrowser:g=f}=n;let{options:w}=n,e=new URLSearchParams;if(i!=null&&i.entries)e=i,u&&e.set("nextPageToken",u);else{const l=u?{next_page_token:u}:{};e=new URLSearchParams({...i,...l})}const q=O(c,e);try{w=z(w,g),c.endsWith("api/v1/settings")||(w=await L(w,g));const l=await s(q,w),d=await l.json(),{status:E,statusText:A}=l;if(!l.ok)if(k&&P(k))k({status:E,statusText:A,body:d});else throw{statusCode:l.status,statusText:l.statusText,response:l,message:(d==null?void 0:d.message)??l.statusText};return d}catch(l){if(o)t(l);else throw l}},z=(c,n=f)=>{const i={credentials:"include",...c};return i.headers=D(c==null?void 0:c.headers,n),i},L=async(c,n=f)=>(globalThis!=null&&globalThis.AccessToken?c.headers=await b(c==null?void 0:c.headers,globalThis.AccessToken,n):$().accessToken&&(c.headers=await b(c==null?void 0:c.headers,async()=>$().accessToken,n),c.headers=B(c==null?void 0:c.headers,$().idToken,n)),c),b=async(c,n,i=f)=>{if(c||(c={}),!i)return c;try{const s=await n();s&&(c.Authorization=`Bearer ${s}`)}catch(s){console.error(s)}return c},B=(c={},n,i=f)=>(i&&n&&(c["Authorization-Extras"]=n),c),D=(c,n=f)=>{if(c||(c={}),c["Caller-Type"]="operator",!n)return c;const i="_csrf=",s="X-CSRF-TOKEN";try{let o=document.cookie.split(";").find(t=>t.includes(i));o&&!c[s]&&(o=o.trim().slice(i.length),c[s]=o)}catch(u){console.error(u)}return c};function J(c=f){const n="",i=!n.startsWith("http");let s="";return i?s=c?window.location.origin+n:"":s=n,s.endsWith("/")&&(s=s.slice(0,-1)),s}const H=(c,n)=>c?c.replace("%namespace%",n):"",K=c=>{var o,t;let n="";const i=(o=I(T).data)==null?void 0:o.webUrl,s=i&&c,u=((t=globalThis==null?void 0:globalThis.AppConfig)==null?void 0:t.apiUrl)&&c;return s?n=i:u?(console.warn("Using fallback api url, web url not found"),n=H(globalThis.AppConfig.apiUrl,c)):n=J(),n.endsWith("/")&&(n=n.slice(0,-1)),n=`${n}${W}`,n},M=c=>(c.startsWith("/")&&(c=c.slice(1)),`/api/v1/${c}`),V=(c,n)=>`${K(n)}${c}`,X=c=>{var i,s,u;const n=(u=(s=(i=I(T))==null?void 0:i.data)==null?void 0:s.settings)==null?void 0:u.version;return Object.keys(c??{}).reduce((o,t)=>(n&&N("2.23.0",n)?o[t]=encodeURIComponent(c[t]):o[t]=encodeURIComponent(encodeURIComponent(c[t])),o),{namespace:"",workflowId:"",scheduleId:"",queue:"",queryType:"",signalName:"",batchJobId:"",activityId:"",endpointId:""})};function G(c,n,i=!0){i&&(n=X(n));const s={systemInfo:"/system-info",cluster:"/cluster-info",namespaces:"/namespaces",namespace:`/namespaces/${n==null?void 0:n.namespace}`,"search-attributes":`/namespaces/${n.namespace}/search-attributes`,"events.ascending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/history`,"events.descending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/history-reverse`,query:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/query/${n.queryType}`,schedule:`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}`,"schedule.patch":`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}/patch`,"schedule.edit":`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}/update`,schedules:`/namespaces/${n==null?void 0:n.namespace}/schedules`,settings:"/settings","task-queue":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}`,"task-queue.compatibility":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}/worker-build-id-compatibility`,"task-queue.rules":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}/worker-versioning-rules`,user:"/me","worker-task-reachability":`/namespaces/${n==null?void 0:n.namespace}/worker-task-reachability`,"workflow.terminate":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/terminate`,"workflow.cancel":`/namespaces/${n.namespace}/workflows/${n.workflowId}/cancel`,"workflow.signal":`/namespaces/${n.namespace}/workflows/${n.workflowId}/signal/${n.signalName}`,"workflow.reset":`/namespaces/${n.namespace}/workflows/${n.workflowId}/reset`,workflow:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}`,workflows:`/namespaces/${n==null?void 0:n.namespace}/workflows`,"workflows.archived":`/namespaces/${n==null?void 0:n.namespace}/archived-workflows`,"workflows.count":`/namespaces/${n==null?void 0:n.namespace}/workflow-count`,"activity.complete":`/namespaces/${n.namespace}/activities/complete-by-id`,"activity.fail":`/namespaces/${n.namespace}/activities/fail-by-id`,"batch-operations.list":`/namespaces/${n.namespace}/batch-operations`,"batch-operations":`/namespaces/${n.namespace}/batch-operations/${n==null?void 0:n.batchJobId}`,"nexus-endpoints":"/nexus/endpoints","nexus-endpoint":`/nexus/endpoints/${n.endpointId}`,"nexus-endpoint.update":`/nexus/endpoints/${n.endpointId}/update`};return M(s[c])}function fn(c,n,i=!0){const s=G(c,n,i);return V(s,n==null?void 0:n.namespace)}export{tn as a,K as b,un as c,v as d,x as e,J as g,_ as h,ln as i,S as n,G as p,fn as r}; diff --git a/ui/assets/local/_app/immutable/chunks/route-for.R0Qj5GxB.js b/ui/assets/local/_app/immutable/chunks/route-for.Gs4LHMCg.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/route-for.R0Qj5GxB.js rename to ui/assets/local/_app/immutable/chunks/route-for.Gs4LHMCg.js index a490d3cd45..77739a43f0 100644 --- a/ui/assets/local/_app/immutable/chunks/route-for.R0Qj5GxB.js +++ b/ui/assets/local/_app/immutable/chunks/route-for.Gs4LHMCg.js @@ -1 +1 @@ -import{B as w}from"./prod-browser.6V4A_NcJ.js";import{b as o}from"./paths.uI-MwgM_.js";import{e as c}from"./encode-uri.Mzeiosm2.js";const $=(r,t)=>{const e=t instanceof URLSearchParams;return t&&!e&&(t=new URLSearchParams(t)),t?`${r}?${t}`:r},k=()=>`${o}/namespaces`,g=()=>`${o}/nexus`,v=r=>`${o}/nexus/${r}`,S=r=>`${o}/nexus/${r}/edit`,P=()=>`${o}/nexus/create`,a=({namespace:r})=>`${o}/namespaces/${r}`,y=()=>`${o}/select-namespace`,f=r=>`${a(r)}/workflows`,E=({namespace:r,workflowId:t,taskQueue:e,workflowType:n})=>$(`${a({namespace:r})}/workflows/start-workflow`,{workflowId:t||"",taskQueue:e||"",workflowType:n||""}),U=({namespace:r,query:t,page:e})=>$(f({namespace:r}),{query:t,...e&&{page:e}}),x=r=>`${a(r)}/archival`,s=({workflow:r,run:t,...e})=>{const n=c(r);return`${f(e)}/${n}/${t}`},l=r=>`${a(r)}/schedules`,R=({namespace:r})=>`${l({namespace:r})}/create`,W=({scheduleId:r,namespace:t})=>{const e=c(r);return`${l({namespace:t})}/${e}`},L=({scheduleId:r,namespace:t})=>{const e=c(r);return`${l({namespace:t})}/${e}/edit`},N=({queryParams:r,...t})=>{const e=`${s(t)}/history`;return $(`${e}`,r)},b=({eventId:r,...t})=>`${s(t)}/history/events/${r}`,q=({eventId:r,...t})=>`${s(t)}/history/event-groups/${r}`,B=r=>`${s(r)}/workers`,A=r=>`${s(r)}/relationships`,C=r=>{const t=c(r.queue);return`${a({namespace:r.namespace})}/task-queues/${t}`},H=r=>`${s(r)}/call-stack`,Q=r=>`${s(r)}/query`,I=r=>`${s(r)}/metadata`,O=r=>`${s(r)}/pending-activities`,T=r=>{const{settings:t,searchParams:e,originUrl:n}=r,u=new URL(`${o}/auth/sso`,t.baseUrl);let i=t.auth.options??[];return i=[...i,"returnUrl"],i.forEach(h=>{if(!e)return;const F=e.get(h);F&&u.searchParams.set(h,F)}),!u.searchParams.get("returnUrl")&&n&&u.searchParams.set("returnUrl",n),u.toString()},j=(r="",t=w)=>{if(t){const e=new URL(`${o}/login`,window.location.origin);return e.searchParams.set("returnUrl",window.location.href),r&&e.searchParams.set("error",r),e.toString()}return`${o}/login`},z=(r,t)=>r&&t?`${o}/import/events/${r}/workflow/run/history/${t}`:`${o}/import/events`,D=({namespace:r})=>`${o}/namespaces/${r}/batch-operations`,G=({namespace:r,jobId:t})=>`${o}/namespaces/${r}/batch-operations/${t}`;export{L as A,b as B,x as C,k as D,q as E,a,N as b,H as c,T as d,f as e,y as f,C as g,g as h,S as i,v as j,G as k,l,W as m,j as n,D as o,P as p,R as q,z as r,E as s,$ as t,B as u,A as v,Q as w,I as x,O as y,U as z}; +import{B as w}from"./prod-browser.6V4A_NcJ.js";import{b as o}from"./paths.yvZ-Br9O.js";import{e as c}from"./encode-uri.Mzeiosm2.js";const $=(r,t)=>{const e=t instanceof URLSearchParams;return t&&!e&&(t=new URLSearchParams(t)),t?`${r}?${t}`:r},k=()=>`${o}/namespaces`,g=()=>`${o}/nexus`,v=r=>`${o}/nexus/${r}`,S=r=>`${o}/nexus/${r}/edit`,P=()=>`${o}/nexus/create`,a=({namespace:r})=>`${o}/namespaces/${r}`,y=()=>`${o}/select-namespace`,f=r=>`${a(r)}/workflows`,E=({namespace:r,workflowId:t,taskQueue:e,workflowType:n})=>$(`${a({namespace:r})}/workflows/start-workflow`,{workflowId:t||"",taskQueue:e||"",workflowType:n||""}),U=({namespace:r,query:t,page:e})=>$(f({namespace:r}),{query:t,...e&&{page:e}}),x=r=>`${a(r)}/archival`,s=({workflow:r,run:t,...e})=>{const n=c(r);return`${f(e)}/${n}/${t}`},l=r=>`${a(r)}/schedules`,R=({namespace:r})=>`${l({namespace:r})}/create`,W=({scheduleId:r,namespace:t})=>{const e=c(r);return`${l({namespace:t})}/${e}`},L=({scheduleId:r,namespace:t})=>{const e=c(r);return`${l({namespace:t})}/${e}/edit`},N=({queryParams:r,...t})=>{const e=`${s(t)}/history`;return $(`${e}`,r)},b=({eventId:r,...t})=>`${s(t)}/history/events/${r}`,q=({eventId:r,...t})=>`${s(t)}/history/event-groups/${r}`,B=r=>`${s(r)}/workers`,A=r=>`${s(r)}/relationships`,C=r=>{const t=c(r.queue);return`${a({namespace:r.namespace})}/task-queues/${t}`},H=r=>`${s(r)}/call-stack`,Q=r=>`${s(r)}/query`,I=r=>`${s(r)}/metadata`,O=r=>`${s(r)}/pending-activities`,T=r=>{const{settings:t,searchParams:e,originUrl:n}=r,u=new URL(`${o}/auth/sso`,t.baseUrl);let i=t.auth.options??[];return i=[...i,"returnUrl"],i.forEach(h=>{if(!e)return;const F=e.get(h);F&&u.searchParams.set(h,F)}),!u.searchParams.get("returnUrl")&&n&&u.searchParams.set("returnUrl",n),u.toString()},j=(r="",t=w)=>{if(t){const e=new URL(`${o}/login`,window.location.origin);return e.searchParams.set("returnUrl",window.location.href),r&&e.searchParams.set("error",r),e.toString()}return`${o}/login`},z=(r,t)=>r&&t?`${o}/import/events/${r}/workflow/run/history/${t}`:`${o}/import/events`,D=({namespace:r})=>`${o}/namespaces/${r}/batch-operations`,G=({namespace:r,jobId:t})=>`${o}/namespaces/${r}/batch-operations/${t}`;export{L as A,b as B,x as C,k as D,q as E,a,N as b,H as c,T as d,f as e,y as f,C as g,g as h,S as i,v as j,G as k,l,W as m,j as n,D as o,P as p,R as q,z as r,E as s,$ as t,B as u,A as v,Q as w,I as x,O as y,U as z}; diff --git a/ui/assets/local/_app/immutable/chunks/ruby.nwSyFr10.js b/ui/assets/local/_app/immutable/chunks/ruby.nwSyFr10.js new file mode 100644 index 0000000000..678fc759e8 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/ruby.nwSyFr10.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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)")}},t={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"]]}};export{e as conf,t as language}; diff --git a/ui/assets/local/_app/immutable/chunks/rust.8UwLYfVl.js b/ui/assets/local/_app/immutable/chunks/rust.8UwLYfVl.js new file mode 100644 index 0000000000..9b2bda42de --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/rust.8UwLYfVl.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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")}}},t={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"}]]}};export{e as conf,t as language}; diff --git a/ui/assets/local/_app/immutable/chunks/sb.2ZGQ-dXi.js b/ui/assets/local/_app/immutable/chunks/sb.2ZGQ-dXi.js new file mode 100644 index 0000000000..955f2103d1 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/sb.2ZGQ-dXi.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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"]}]},o={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"]]}};export{e as conf,o as language}; diff --git a/ui/assets/local/_app/immutable/chunks/scala.EIZ9SpGc.js b/ui/assets/local/_app/immutable/chunks/scala.EIZ9SpGc.js new file mode 100644 index 0000000000..730abb0d1a --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/scala.EIZ9SpGc.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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)|(?:))")}}},t={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"]]}};export{e as conf,t as language}; diff --git a/ui/assets/local/_app/immutable/chunks/schedule-form-view.riaZR9bA.js b/ui/assets/local/_app/immutable/chunks/schedule-form-view.l0w-F3HH.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/schedule-form-view.riaZR9bA.js rename to ui/assets/local/_app/immutable/chunks/schedule-form-view.l0w-F3HH.js index 9f17a2b197..7e481183fb 100644 --- a/ui/assets/local/_app/immutable/chunks/schedule-form-view.riaZR9bA.js +++ b/ui/assets/local/_app/immutable/chunks/schedule-form-view.l0w-F3HH.js @@ -1 +1 @@ -import{s as $e,a as Ct,z as st,h as B,j,k as R,f as g,F as ot,I as Qe,i as q,u as Wt,g as Dt,e as Mt,E as ft,$ as Ht,c as Ye,A as Pt,m as x,n as b,y as et,t as ee,b as M,l as te,d as V,v as ge,M as U,T as F,o as nt,x as ct,a9 as Lt,w as dt,q as Nt}from"./scheduler.1T9hOnFr.js";import{S as we,i as ke,t as $,b as I,g as We,e as De,c as T,a as H,m as P,d as L,f as K}from"./index.cVovwi_s.js";import{p as Vt}from"./stores.6oDSidma.js";import{I as ye}from"./input.Q5M-PWyi.js";import{c as At,T as qt,a as Bt,b as Ge}from"./tab.6ESXCGXd.js";import{g as jt}from"./spread.rEx3vLA9.js";import{t as J}from"./translate.HrioCK44.js";import{e as Ce}from"./each.QHpLJPfe.js";import{B as Ue}from"./button.y7LhNtq8.js";import{m as ht,T as zt,b as tt,w as _t}from"./time-picker.GMYfL2o1.js";import{I as Qt}from"./icon.w8eknFMq.js";import{S as Ut}from"./schedule-frequency.-jEG8p5N.js";import{S as Ft,O as xe}from"./option.Bnn2FTCQ.js";import{A as Kt}from"./alert.9MQQTq3k.js";import{L as Rt}from"./link.S6PxEIxj.js";import{L as Jt}from"./loading.IcbT-3mP.js";import{e as lt,l as Gt}from"./schedules.bfy7DgBd.js";import{m as Xt,l as Yt}from"./route-for.R0Qj5GxB.js";import{w as mt}from"./write-actions-are-allowed.wbSpKvMt.js";import{C as Zt}from"./code-block.S0zkvBiB.js";import{L as xt}from"./label.ujgKMPb9.js";import{g as it}from"./encode-payload.KDTwh14f.js";import{P as en}from"./payload-decoder.bHDO67Bo.js";function tn(n){let e,t;const s=n[7].default,l=Ct(s,n,n[6],null);let r=[{id:n[0]},{"aria-labelledby":n[1]},{tabindex:"0"},{role:"tabpanel"},n[4]],f={};for(let i=0;it(5,f=_)),c(o),n.$$set=_=>{e=st(st({},e),Pt(_)),t(4,r=ft(e,l)),"id"in _&&t(0,o=_.id),"tabId"in _&&t(1,u=_.tabId),"$$scope"in _&&t(6,a=_.$$scope)},n.$$.update=()=>{n.$$.dirty&33&&t(2,s=f===o)},[o,u,s,h,r,f,a,i]}class Xe extends we{constructor(e){super(),ke(this,e,nn,tn,$e,{id:0,tabId:1})}}function pt(n,e,t){const s=n.slice();s[4]=e[t];const l=s[0].includes(s[4]);return s[5]=l,s}function ln(n){let e=n[4]+"",t,s;return{c(){t=ee(e),s=M()},l(l){t=te(l,e),s=V(l)},m(l,r){q(l,t,r),q(l,s,r)},p:ge,d(l){l&&(g(t),g(s))}}}function gt(n){let e,t;function s(...l){return n[3](n[4],...l)}return e=new Ue({props:{variant:"secondary",class:n[5]&&"bg-interactive-secondary-active",$$slots:{default:[ln]},$$scope:{ctx:n}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,r){P(e,l,r),t=!0},p(l,r){n=l;const f={};r&1&&(f.class=n[5]&&"bg-interactive-secondary-active"),r&256&&(f.$$scope={dirty:r,ctx:n}),e.$set(f)},i(l){t||($(e.$$.fragment,l),t=!0)},o(l){I(e.$$.fragment,l),t=!1},d(l){L(e,l)}}}function sn(n){let e,t,s,l=Ce(n[1]),r=[];for(let i=0;iI(r[i],1,1,()=>{r[i]=null});return{c(){e=B("div"),t=B("div");for(let i=0;ia+1);let{daysOfMonth:l}=e;const r=(i,a)=>{i.metaKey?l.includes(a)?l.filter(o=>o!==a):t(0,l=[...l,a]):t(0,l=[a])},f=(i,a)=>r(a,i);return n.$$set=i=>{"daysOfMonth"in i&&t(0,l=i.daysOfMonth)},[l,s,r,f]}class rn extends we{constructor(e){super(),ke(this,e,un,sn,$e,{daysOfMonth:0})}}function vt(n,e,t){const s=n.slice();s[3]=e[t].label,s[4]=e[t].value;const l=s[0].includes(s[4]);return s[5]=l,s}function an(n){let e=n[3]+"",t,s;return{c(){t=ee(e),s=M()},l(l){t=te(l,e),s=V(l)},m(l,r){q(l,t,r),q(l,s,r)},p:ge,d(l){l&&(g(t),g(s))}}}function bt(n){let e,t;function s(...l){return n[2](n[4],...l)}return e=new Ue({props:{variant:"secondary",class:n[5]&&"bg-interactive-secondary-active",$$slots:{default:[an]},$$scope:{ctx:n}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,r){P(e,l,r),t=!0},p(l,r){n=l;const f={};r&1&&(f.class=n[5]&&"bg-interactive-secondary-active"),r&256&&(f.$$scope={dirty:r,ctx:n}),e.$set(f)},i(l){t||($(e.$$.fragment,l),t=!0)},o(l){I(e.$$.fragment,l),t=!1},d(l){L(e,l)}}}function on(n){let e,t,s=Ce(ht),l=[];for(let f=0;fI(l[f],1,1,()=>{l[f]=null});return{c(){e=B("div");for(let f=0;f{f.metaKey&&i!=="*"?(s.includes("*")&&t(0,s=s.filter(a=>a!=="*")),s.includes(i)?t(0,s=s.filter(a=>a!==i)):t(0,s=[...s,i])):t(0,s=[i])},r=(f,i)=>l(i,f);return n.$$set=f=>{"months"in f&&t(0,s=f.months)},[s,l,r]}class cn extends we{constructor(e){super(),ke(this,e,fn,on,$e,{months:0})}}function dn(n){let e,t,s=J("schedules.time-view-heading")+"",l,r,f,i=J("schedules.time-view-description")+"",a,o,u,c,h,_,d,p,y,v,O=J("common.based-on-time-preface")+"",X,z,w;function k(Q){n[2](Q)}function W(Q){n[3](Q)}let le={twelveHourClock:!1,includeSeconds:!1};return n[0]!==void 0&&(le.hour=n[0]),n[1]!==void 0&&(le.minute=n[1]),u=new zt({props:le}),U.push(()=>K(u,"hour",k)),U.push(()=>K(u,"minute",W)),p=new Qt({props:{name:"clock","aria-hidden":"true"}}),{c(){e=B("div"),t=B("h3"),l=ee(s),r=M(),f=B("p"),a=ee(i),o=M(),T(u.$$.fragment),_=M(),d=B("div"),T(p.$$.fragment),y=M(),v=B("span"),X=ee(O),z=ee(" Universal Standard Time (UTC)"),this.h()},l(Q){e=j(Q,"DIV",{class:!0});var G=R(e);t=j(G,"H3",{});var Y=R(t);l=te(Y,s),Y.forEach(g),r=V(G),f=j(G,"P",{});var N=R(f);a=te(N,i),N.forEach(g),o=V(G),H(u.$$.fragment,G),_=V(G),d=j(G,"DIV",{class:!0});var D=R(d);H(p.$$.fragment,D),y=V(D),v=j(D,"SPAN",{class:!0});var ie=R(v);X=te(ie,O),z=te(ie," Universal Standard Time (UTC)"),ie.forEach(g),D.forEach(g),G.forEach(g),this.h()},h(){x(v,"class","text-xs font-normal text-slate-500"),x(d,"class","flex w-full flex-row items-center gap-2"),x(e,"class","flex flex-col gap-4")},m(Q,G){q(Q,e,G),b(e,t),b(t,l),b(e,r),b(e,f),b(f,a),b(e,o),P(u,e,null),b(e,_),b(e,d),P(p,d,null),b(d,y),b(d,v),b(v,X),b(v,z),w=!0},p(Q,[G]){const Y={};!c&&G&1&&(c=!0,Y.hour=Q[0],F(()=>c=!1)),!h&&G&2&&(h=!0,Y.minute=Q[1],F(()=>h=!1)),u.$set(Y)},i(Q){w||($(u.$$.fragment,Q),$(p.$$.fragment,Q),w=!0)},o(Q){I(u.$$.fragment,Q),I(p.$$.fragment,Q),w=!1},d(Q){Q&&g(e),L(u),L(p)}}}function hn(n,e,t){let{hour:s=""}=e,{minute:l=""}=e;function r(i){s=i,t(0,s)}function f(i){l=i,t(1,l)}return n.$$set=i=>{"hour"in i&&t(0,s=i.hour),"minute"in i&&t(1,l=i.minute)},[s,l,r,f]}class Tt extends we{constructor(e){super(),ke(this,e,hn,dn,$e,{hour:0,minute:1})}}function _n(n){let e,t,s=J("schedules.recurring-dates-heading")+"",l,r,f,i=J("schedules.recurring-dates-description")+"",a,o,u,c,h,_,d,p,y,v,O,X,z;function w(N){n[4](N)}let k={};n[0]!==void 0&&(k.daysOfMonth=n[0]),c=new rn({props:k}),U.push(()=>K(c,"daysOfMonth",w));function W(N){n[5](N)}let le={};n[1]!==void 0&&(le.months=n[1]),d=new cn({props:le}),U.push(()=>K(d,"months",W));function Q(N){n[6](N)}function G(N){n[7](N)}let Y={};return n[2]!==void 0&&(Y.hour=n[2]),n[3]!==void 0&&(Y.minute=n[3]),v=new Tt({props:Y}),U.push(()=>K(v,"hour",Q)),U.push(()=>K(v,"minute",G)),{c(){e=B("div"),t=B("h3"),l=ee(s),r=M(),f=B("p"),a=ee(i),o=M(),u=B("div"),T(c.$$.fragment),_=M(),T(d.$$.fragment),y=M(),T(v.$$.fragment),this.h()},l(N){e=j(N,"DIV",{class:!0});var D=R(e);t=j(D,"H3",{});var ie=R(t);l=te(ie,s),ie.forEach(g),r=V(D),f=j(D,"P",{});var ue=R(f);a=te(ue,i),ue.forEach(g),o=V(D),u=j(D,"DIV",{class:!0});var ne=R(u);H(c.$$.fragment,ne),_=V(ne),H(d.$$.fragment,ne),ne.forEach(g),D.forEach(g),y=V(N),H(v.$$.fragment,N),this.h()},h(){x(u,"class","flex w-full flex-col gap-4"),x(e,"class","my-2 flex flex-col gap-4")},m(N,D){q(N,e,D),b(e,t),b(t,l),b(e,r),b(e,f),b(f,a),b(e,o),b(e,u),P(c,u,null),b(u,_),P(d,u,null),q(N,y,D),P(v,N,D),z=!0},p(N,[D]){const ie={};!h&&D&1&&(h=!0,ie.daysOfMonth=N[0],F(()=>h=!1)),c.$set(ie);const ue={};!p&&D&2&&(p=!0,ue.months=N[1],F(()=>p=!1)),d.$set(ue);const ne={};!O&&D&4&&(O=!0,ne.hour=N[2],F(()=>O=!1)),!X&&D&8&&(X=!0,ne.minute=N[3],F(()=>X=!1)),v.$set(ne)},i(N){z||($(c.$$.fragment,N),$(d.$$.fragment,N),$(v.$$.fragment,N),z=!0)},o(N){I(c.$$.fragment,N),I(d.$$.fragment,N),I(v.$$.fragment,N),z=!1},d(N){N&&(g(e),g(y)),L(c),L(d),L(v,N)}}}function mn(n,e,t){let{daysOfMonth:s}=e,{months:l}=e,{hour:r}=e,{minute:f}=e;function i(c){s=c,t(0,s)}function a(c){l=c,t(1,l)}function o(c){r=c,t(2,r)}function u(c){f=c,t(3,f)}return n.$$set=c=>{"daysOfMonth"in c&&t(0,s=c.daysOfMonth),"months"in c&&t(1,l=c.months),"hour"in c&&t(2,r=c.hour),"minute"in c&&t(3,f=c.minute)},[s,l,r,f,i,a,o,u]}class pn extends we{constructor(e){super(),ke(this,e,mn,_n,$e,{daysOfMonth:0,months:1,hour:2,minute:3})}}function $t(n,e,t){const s=n.slice();s[4]=e[t].label,s[5]=e[t].value;const l=s[0].includes(s[5]);return s[6]=l,s}function wt(n,e,t){const s=n.slice();s[4]=e[t].label,s[5]=e[t].value;const l=s[0].includes(s[5]);return s[6]=l,s}function gn(n){let e=n[4]+"",t,s;return{c(){t=ee(e),s=M()},l(l){t=te(l,e),s=V(l)},m(l,r){q(l,t,r),q(l,s,r)},p:ge,d(l){l&&(g(t),g(s))}}}function kt(n){let e,t;function s(...l){return n[2](n[5],...l)}return e=new Ue({props:{variant:"secondary",class:n[6]&&"bg-interactive-secondary-active",$$slots:{default:[gn]},$$scope:{ctx:n}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,r){P(e,l,r),t=!0},p(l,r){n=l;const f={};r&1&&(f.class=n[6]&&"bg-interactive-secondary-active"),r&2048&&(f.$$scope={dirty:r,ctx:n}),e.$set(f)},i(l){t||($(e.$$.fragment,l),t=!0)},o(l){I(e.$$.fragment,l),t=!1},d(l){L(e,l)}}}function vn(n){let e=n[4]+"",t,s;return{c(){t=ee(e),s=M()},l(l){t=te(l,e),s=V(l)},m(l,r){q(l,t,r),q(l,s,r)},p:ge,d(l){l&&(g(t),g(s))}}}function yt(n){let e,t;function s(...l){return n[3](n[5],...l)}return e=new Ue({props:{variant:"secondary",class:n[6]&&"bg-interactive-secondary-active",$$slots:{default:[vn]},$$scope:{ctx:n}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,r){P(e,l,r),t=!0},p(l,r){n=l;const f={};r&1&&(f.class=n[6]&&"bg-interactive-secondary-active"),r&2048&&(f.$$scope={dirty:r,ctx:n}),e.$set(f)},i(l){t||($(e.$$.fragment,l),t=!0)},o(l){I(e.$$.fragment,l),t=!1},d(l){L(e,l)}}}function bn(n){let e,t,s,l,r,f=Ce(tt),i=[];for(let h=0;hI(i[h],1,1,()=>{i[h]=null});let o=Ce(_t),u=[];for(let h=0;hI(u[h],1,1,()=>{u[h]=null});return{c(){e=B("div"),t=B("div");for(let h=0;h{i.metaKey?(tt.find(o=>o.value===a)?t(0,s=[a]):s.find(o=>tt.find(u=>u.value===o))&&t(0,s=[a]),s.includes(a)?s.filter(o=>o!==a):t(0,s=[...s,a])):t(0,s=[a])},r=(i,a)=>l(a,i),f=(i,a)=>l(a,i);return n.$$set=i=>{"daysOfWeek"in i&&t(0,s=i.daysOfWeek)},[s,l,r,f]}class wn extends we{constructor(e){super(),ke(this,e,$n,bn,$e,{daysOfWeek:0})}}function kn(n){let e,t,s=J("schedules.recurring-days-heading")+"",l,r,f,i=J("schedules.recurring-days-description")+"",a,o,u,c,h,_,d,p,y;function v(k){n[3](k)}let O={};n[0]!==void 0&&(O.daysOfWeek=n[0]),u=new wn({props:O}),U.push(()=>K(u,"daysOfWeek",v));function X(k){n[4](k)}function z(k){n[5](k)}let w={};return n[1]!==void 0&&(w.hour=n[1]),n[2]!==void 0&&(w.minute=n[2]),_=new Tt({props:w}),U.push(()=>K(_,"hour",X)),U.push(()=>K(_,"minute",z)),{c(){e=B("div"),t=B("h3"),l=ee(s),r=M(),f=B("p"),a=ee(i),o=M(),T(u.$$.fragment),h=M(),T(_.$$.fragment),this.h()},l(k){e=j(k,"DIV",{class:!0});var W=R(e);t=j(W,"H3",{});var le=R(t);l=te(le,s),le.forEach(g),r=V(W),f=j(W,"P",{});var Q=R(f);a=te(Q,i),Q.forEach(g),o=V(W),H(u.$$.fragment,W),W.forEach(g),h=V(k),H(_.$$.fragment,k),this.h()},h(){x(e,"class","my-2 flex flex-col gap-4")},m(k,W){q(k,e,W),b(e,t),b(t,l),b(e,r),b(e,f),b(f,a),b(e,o),P(u,e,null),q(k,h,W),P(_,k,W),y=!0},p(k,[W]){const le={};!c&&W&1&&(c=!0,le.daysOfWeek=k[0],F(()=>c=!1)),u.$set(le);const Q={};!d&&W&2&&(d=!0,Q.hour=k[1],F(()=>d=!1)),!p&&W&4&&(p=!0,Q.minute=k[2],F(()=>p=!1)),_.$set(Q)},i(k){y||($(u.$$.fragment,k),$(_.$$.fragment,k),y=!0)},o(k){I(u.$$.fragment,k),I(_.$$.fragment,k),y=!1},d(k){k&&(g(e),g(h)),L(u),L(_,k)}}}function yn(n,e,t){let{daysOfWeek:s}=e,{hour:l}=e,{minute:r}=e;function f(o){s=o,t(0,s)}function i(o){l=o,t(1,l)}function a(o){r=o,t(2,r)}return n.$$set=o=>{"daysOfWeek"in o&&t(0,s=o.daysOfWeek),"hour"in o&&t(1,l=o.hour),"minute"in o&&t(2,r=o.minute)},[s,l,r,f,i,a]}class In extends we{constructor(e){super(),ke(this,e,yn,kn,$e,{daysOfWeek:0,hour:1,minute:2})}}function On(n){let e=J("common.days")+"",t;return{c(){t=ee(e)},l(s){t=te(s,e)},m(s,l){q(s,t,l)},p:ge,d(s){s&&g(t)}}}function En(n){let e=J("common.hours-abbreviated")+"",t;return{c(){t=ee(e)},l(s){t=te(s,e)},m(s,l){q(s,t,l)},p:ge,d(s){s&&g(t)}}}function Sn(n){let e=J("common.minutes-abbreviated")+"",t;return{c(){t=ee(e)},l(s){t=te(s,e)},m(s,l){q(s,t,l)},p:ge,d(s){s&&g(t)}}}function Cn(n){let e=J("common.seconds-abbreviated")+"",t;return{c(){t=ee(e)},l(s){t=te(s,e)},m(s,l){q(s,t,l)},p:ge,d(s){s&&g(t)}}}function Wn(n){let e,t,s,l,r,f,i,a;return e=new xe({props:{value:"days",$$slots:{default:[On]},$$scope:{ctx:n}}}),s=new xe({props:{value:"hrs",$$slots:{default:[En]},$$scope:{ctx:n}}}),r=new xe({props:{value:"min",$$slots:{default:[Sn]},$$scope:{ctx:n}}}),i=new xe({props:{value:"sec",$$slots:{default:[Cn]},$$scope:{ctx:n}}}),{c(){T(e.$$.fragment),t=M(),T(s.$$.fragment),l=M(),T(r.$$.fragment),f=M(),T(i.$$.fragment)},l(o){H(e.$$.fragment,o),t=V(o),H(s.$$.fragment,o),l=V(o),H(r.$$.fragment,o),f=V(o),H(i.$$.fragment,o)},m(o,u){P(e,o,u),q(o,t,u),P(s,o,u),q(o,l,u),P(r,o,u),q(o,f,u),P(i,o,u),a=!0},p(o,u){const c={};u&16384&&(c.$$scope={dirty:u,ctx:o}),e.$set(c);const h={};u&16384&&(h.$$scope={dirty:u,ctx:o}),s.$set(h);const _={};u&16384&&(_.$$scope={dirty:u,ctx:o}),r.$set(_);const d={};u&16384&&(d.$$scope={dirty:u,ctx:o}),i.$set(d)},i(o){a||($(e.$$.fragment,o),$(s.$$.fragment,o),$(r.$$.fragment,o),$(i.$$.fragment,o),a=!0)},o(o){I(e.$$.fragment,o),I(s.$$.fragment,o),I(r.$$.fragment,o),I(i.$$.fragment,o),a=!1},d(o){o&&(g(t),g(l),g(f)),L(e,o),L(s,o),L(r,o),L(i,o)}}}function Dn(n){let e,t,s=J("schedules.interval-view-heading")+"",l,r,f,i=J("schedules.interval-view-description")+"",a,o,u,c,h,_,d,p=":",y,v,O,X,z,w=":",k,W,le,Q,G,Y=":",N,D,ie,ue,ne,he=J("schedules.offset-heading")+"",fe,ce,ae,E=J("schedules.offset-description")+"",me,_e,de,re,Ie,Oe,pe,Ee,Se;function Me(C){n[8](C)}let Ve={id:"days",class:"w-28",label:J("common.days"),labelHidden:!0,placeholder:"000",suffix:J("common.days"),hideCount:!0,maxLength:3,error:n[7](n[0])};n[0]!==void 0&&(Ve.value=n[0]),c=new ye({props:Ve}),U.push(()=>K(c,"value",Me));function Te(C){n[9](C)}let He={id:"hour-interval",class:"w-24",label:J("common.hours-abbreviated"),labelHidden:!0,placeholder:"00",suffix:J("common.hours-abbreviated"),hideCount:!0,maxLength:2,error:n[7](n[1])};n[1]!==void 0&&(He.value=n[1]),v=new ye({props:He}),U.push(()=>K(v,"value",Te));function Fe(C){n[10](C)}let Pe={id:"minute-interval",class:"w-24",label:J("common.minutes-abbreviated"),labelHidden:!0,placeholder:"00",suffix:J("common.minutes-abbreviated"),hideCount:!0,maxLength:2,error:n[7](n[2])};n[2]!==void 0&&(Pe.value=n[2]),W=new ye({props:Pe}),U.push(()=>K(W,"value",Fe));function Ke(C){n[11](C)}let Le={id:"second",class:"w-24",label:J("common.seconds-abbreviated"),labelHidden:!0,placeholder:"00",suffix:J("common.seconds-abbreviated"),hideCount:!0,maxLength:2,error:n[7](n[3])};n[3]!==void 0&&(Le.value=n[3]),D=new ye({props:Le}),U.push(()=>K(D,"value",Ke));function Re(C){n[12](C)}let Ne={id:"phase",class:"w-28",label:J("schedules.offset-heading"),labelHidden:!0,placeholder:"00",maxLength:3,hideCount:!0,error:n[7](n[4])};n[5]!==void 0&&(Ne.value=n[5]),re=new ye({props:Ne}),U.push(()=>K(re,"value",Re));function Je(C){n[13](C)}let Ae={label:J("schedules.offset-unit"),labelHidden:!0,id:"phase-unit",$$slots:{default:[Wn]},$$scope:{ctx:n}};return n[6]!==void 0&&(Ae.value=n[6]),pe=new Ft({props:Ae}),U.push(()=>K(pe,"value",Je)),{c(){e=B("div"),t=B("h3"),l=ee(s),r=M(),f=B("p"),a=ee(i),o=M(),u=B("div"),T(c.$$.fragment),_=M(),d=B("div"),d.textContent=p,y=M(),T(v.$$.fragment),X=M(),z=B("div"),z.textContent=w,k=M(),T(W.$$.fragment),Q=M(),G=B("div"),G.textContent=Y,N=M(),T(D.$$.fragment),ue=M(),ne=B("h3"),fe=ee(he),ce=M(),ae=B("p"),me=ee(E),_e=M(),de=B("div"),T(re.$$.fragment),Oe=M(),T(pe.$$.fragment),this.h()},l(C){e=j(C,"DIV",{class:!0});var Z=R(e);t=j(Z,"H3",{});var S=R(t);l=te(S,s),S.forEach(g),r=V(Z),f=j(Z,"P",{});var oe=R(f);a=te(oe,i),oe.forEach(g),o=V(Z),u=j(Z,"DIV",{class:!0});var m=R(u);H(c.$$.fragment,m),_=V(m),d=j(m,"DIV",{class:!0,"data-svelte-h":!0}),nt(d)!=="svelte-qa0xbj"&&(d.textContent=p),y=V(m),H(v.$$.fragment,m),X=V(m),z=j(m,"DIV",{class:!0,"data-svelte-h":!0}),nt(z)!=="svelte-qa0xbj"&&(z.textContent=w),k=V(m),H(W.$$.fragment,m),Q=V(m),G=j(m,"DIV",{class:!0,"data-svelte-h":!0}),nt(G)!=="svelte-qa0xbj"&&(G.textContent=Y),N=V(m),H(D.$$.fragment,m),m.forEach(g),ue=V(Z),ne=j(Z,"H3",{class:!0});var A=R(ne);fe=te(A,he),A.forEach(g),ce=V(Z),ae=j(Z,"P",{});var ve=R(ae);me=te(ve,E),ve.forEach(g),_e=V(Z),de=j(Z,"DIV",{class:!0});var se=R(de);H(re.$$.fragment,se),Oe=V(se),H(pe.$$.fragment,se),se.forEach(g),Z.forEach(g),this.h()},h(){x(d,"class","hidden lg:block"),x(z,"class","hidden lg:block"),x(G,"class","hidden lg:block"),x(u,"class","flex flex-col items-center gap-2 lg:flex-row"),x(ne,"class","mt-4"),x(de,"class","flex w-48 gap-2"),x(e,"class","my-2 flex flex-col gap-4")},m(C,Z){q(C,e,Z),b(e,t),b(t,l),b(e,r),b(e,f),b(f,a),b(e,o),b(e,u),P(c,u,null),b(u,_),b(u,d),b(u,y),P(v,u,null),b(u,X),b(u,z),b(u,k),P(W,u,null),b(u,Q),b(u,G),b(u,N),P(D,u,null),b(e,ue),b(e,ne),b(ne,fe),b(e,ce),b(e,ae),b(ae,me),b(e,_e),b(e,de),P(re,de,null),b(de,Oe),P(pe,de,null),Se=!0},p(C,[Z]){const S={};Z&1&&(S.error=C[7](C[0])),!h&&Z&1&&(h=!0,S.value=C[0],F(()=>h=!1)),c.$set(S);const oe={};Z&2&&(oe.error=C[7](C[1])),!O&&Z&2&&(O=!0,oe.value=C[1],F(()=>O=!1)),v.$set(oe);const m={};Z&4&&(m.error=C[7](C[2])),!le&&Z&4&&(le=!0,m.value=C[2],F(()=>le=!1)),W.$set(m);const A={};Z&8&&(A.error=C[7](C[3])),!ie&&Z&8&&(ie=!0,A.value=C[3],F(()=>ie=!1)),D.$set(A);const ve={};Z&16&&(ve.error=C[7](C[4])),!Ie&&Z&32&&(Ie=!0,ve.value=C[5],F(()=>Ie=!1)),re.$set(ve);const se={};Z&16384&&(se.$$scope={dirty:Z,ctx:C}),!Ee&&Z&64&&(Ee=!0,se.value=C[6],F(()=>Ee=!1)),pe.$set(se)},i(C){Se||($(c.$$.fragment,C),$(v.$$.fragment,C),$(W.$$.fragment,C),$(D.$$.fragment,C),$(re.$$.fragment,C),$(pe.$$.fragment,C),Se=!0)},o(C){I(c.$$.fragment,C),I(v.$$.fragment,C),I(W.$$.fragment,C),I(D.$$.fragment,C),I(re.$$.fragment,C),I(pe.$$.fragment,C),Se=!1},d(C){C&&g(e),L(c),L(v),L(W),L(D),L(re),L(pe)}}}function Mn(n,e,t){let{days:s=""}=e,{hour:l=""}=e,{minute:r=""}=e,{second:f=""}=e,{phase:i=""}=e,a="",o="min";const u=v=>v?isNaN(parseInt(v)):!1;function c(v){s=v,t(0,s)}function h(v){l=v,t(1,l)}function _(v){r=v,t(2,r)}function d(v){f=v,t(3,f)}function p(v){a=v,t(5,a)}function y(v){o=v,t(6,o)}return n.$$set=v=>{"days"in v&&t(0,s=v.days),"hour"in v&&t(1,l=v.hour),"minute"in v&&t(2,r=v.minute),"second"in v&&t(3,f=v.second),"phase"in v&&t(4,i=v.phase)},n.$$.update=()=>{n.$$.dirty&96&&a&&(o==="days"?t(4,i=(parseInt(a)*60*60*24).toString()+"s"):o==="hrs"?t(4,i=(parseInt(a)*60*60).toString()+"s"):o==="min"?t(4,i=(parseInt(a)*60).toString()+"s"):o==="sec"&&t(4,i=parseInt(a).toString()+"s"))},[s,l,r,f,i,a,o,u,c,h,_,d,p,y]}class Vn extends we{constructor(e){super(),ke(this,e,Mn,Dn,$e,{days:0,hour:1,minute:2,second:3,phase:4})}}const Tn=n=>({preset:n[0]&1024}),It=n=>({preset:n[10]});function Ot(n){let e,t;return e=new Ge({props:{label:"Existing",id:"existing-tab",panelId:"existing-panel",onClick:n[12]}}),{c(){T(e.$$.fragment)},l(s){H(e.$$.fragment,s)},m(s,l){P(e,s,l),t=!0},p(s,l){const r={};l[0]&1024&&(r.onClick=s[12]),e.$set(r)},i(s){t||($(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){L(e,s)}}}function Hn(n){let e,t,s,l,r,f,i,a,o,u=n[9]&&Ot(n);return t=new Ge({props:{label:"Interval",id:"interval-tab",panelId:"interval-panel",onClick:n[13]}}),l=new Ge({props:{label:"Days of the Week",id:"daily-tab",panelId:"daily-panel",onClick:n[14]}}),f=new Ge({props:{label:"Days of the Month",id:"monthly-tab",panelId:"monthly-panel",onClick:n[15]}}),a=new Ge({props:{label:"String",id:"string-tab",panelId:"string-panel",onClick:n[16]}}),{c(){u&&u.c(),e=M(),T(t.$$.fragment),s=M(),T(l.$$.fragment),r=M(),T(f.$$.fragment),i=M(),T(a.$$.fragment)},l(c){u&&u.l(c),e=V(c),H(t.$$.fragment,c),s=V(c),H(l.$$.fragment,c),r=V(c),H(f.$$.fragment,c),i=V(c),H(a.$$.fragment,c)},m(c,h){u&&u.m(c,h),q(c,e,h),P(t,c,h),q(c,s,h),P(l,c,h),q(c,r,h),P(f,c,h),q(c,i,h),P(a,c,h),o=!0},p(c,h){c[9]?u?(u.p(c,h),h[0]&512&&$(u,1)):(u=Ot(c),u.c(),$(u,1),u.m(e.parentNode,e)):u&&(We(),I(u,1,1,()=>{u=null}),De());const _={};h[0]&1024&&(_.onClick=c[13]),t.$set(_);const d={};h[0]&1024&&(d.onClick=c[14]),l.$set(d);const p={};h[0]&1024&&(p.onClick=c[15]),f.$set(p);const y={};h[0]&1024&&(y.onClick=c[16]),a.$set(y)},i(c){o||($(u),$(t.$$.fragment,c),$(l.$$.fragment,c),$(f.$$.fragment,c),$(a.$$.fragment,c),o=!0)},o(c){I(u),I(t.$$.fragment,c),I(l.$$.fragment,c),I(f.$$.fragment,c),I(a.$$.fragment,c),o=!1},d(c){c&&(g(e),g(s),g(r),g(i)),u&&u.d(c),L(t,c),L(l,c),L(f,c),L(a,c)}}}function Et(n){let e,t;return e=new Xe({props:{id:"existing-panel",tabId:"existing-tab",class:"w-full",$$slots:{default:[Pn]},$$scope:{ctx:n}}}),{c(){T(e.$$.fragment)},l(s){H(e.$$.fragment,s)},m(s,l){P(e,s,l),t=!0},p(s,l){const r={};l[0]&1073742336&&(r.$$scope={dirty:l,ctx:s}),e.$set(r)},i(s){t||($(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){L(e,s)}}}function Pn(n){var s,l,r,f,i,a,o,u;let e,t;return e=new Ut({props:{calendar:(r=(l=(s=n[9])==null?void 0:s.spec)==null?void 0:l.structuredCalendar)==null?void 0:r[0],interval:(a=(i=(f=n[9])==null?void 0:f.spec)==null?void 0:i.interval)==null?void 0:a[0],timezoneName:(u=(o=n[9])==null?void 0:o.spec)==null?void 0:u.timezoneName}}),{c(){T(e.$$.fragment)},l(c){H(e.$$.fragment,c)},m(c,h){P(e,c,h),t=!0},p(c,h){var d,p,y,v,O,X,z,w;const _={};h[0]&512&&(_.calendar=(y=(p=(d=c[9])==null?void 0:d.spec)==null?void 0:p.structuredCalendar)==null?void 0:y[0]),h[0]&512&&(_.interval=(X=(O=(v=c[9])==null?void 0:v.spec)==null?void 0:O.interval)==null?void 0:X[0]),h[0]&512&&(_.timezoneName=(w=(z=c[9])==null?void 0:z.spec)==null?void 0:w.timezoneName),e.$set(_)},i(c){t||($(e.$$.fragment,c),t=!0)},o(c){I(e.$$.fragment,c),t=!1},d(c){L(e,c)}}}function Ln(n){let e,t,s,l,r,f,i;function a(d){n[17](d)}function o(d){n[18](d)}function u(d){n[19](d)}function c(d){n[20](d)}function h(d){n[21](d)}let _={};return n[3]!==void 0&&(_.days=n[3]),n[4]!==void 0&&(_.hour=n[4]),n[5]!==void 0&&(_.minute=n[5]),n[6]!==void 0&&(_.second=n[6]),n[7]!==void 0&&(_.phase=n[7]),e=new Vn({props:_}),U.push(()=>K(e,"days",a)),U.push(()=>K(e,"hour",o)),U.push(()=>K(e,"minute",u)),U.push(()=>K(e,"second",c)),U.push(()=>K(e,"phase",h)),{c(){T(e.$$.fragment)},l(d){H(e.$$.fragment,d)},m(d,p){P(e,d,p),i=!0},p(d,p){const y={};!t&&p[0]&8&&(t=!0,y.days=d[3],F(()=>t=!1)),!s&&p[0]&16&&(s=!0,y.hour=d[4],F(()=>s=!1)),!l&&p[0]&32&&(l=!0,y.minute=d[5],F(()=>l=!1)),!r&&p[0]&64&&(r=!0,y.second=d[6],F(()=>r=!1)),!f&&p[0]&128&&(f=!0,y.phase=d[7],F(()=>f=!1)),e.$set(y)},i(d){i||($(e.$$.fragment,d),i=!0)},o(d){I(e.$$.fragment,d),i=!1},d(d){L(e,d)}}}function Nn(n){let e,t,s,l,r;function f(u){n[22](u)}function i(u){n[23](u)}function a(u){n[24](u)}let o={};return n[0]!==void 0&&(o.daysOfWeek=n[0]),n[4]!==void 0&&(o.hour=n[4]),n[5]!==void 0&&(o.minute=n[5]),e=new In({props:o}),U.push(()=>K(e,"daysOfWeek",f)),U.push(()=>K(e,"hour",i)),U.push(()=>K(e,"minute",a)),{c(){T(e.$$.fragment)},l(u){H(e.$$.fragment,u)},m(u,c){P(e,u,c),r=!0},p(u,c){const h={};!t&&c[0]&1&&(t=!0,h.daysOfWeek=u[0],F(()=>t=!1)),!s&&c[0]&16&&(s=!0,h.hour=u[4],F(()=>s=!1)),!l&&c[0]&32&&(l=!0,h.minute=u[5],F(()=>l=!1)),e.$set(h)},i(u){r||($(e.$$.fragment,u),r=!0)},o(u){I(e.$$.fragment,u),r=!1},d(u){L(e,u)}}}function An(n){let e,t,s,l,r,f;function i(h){n[25](h)}function a(h){n[26](h)}function o(h){n[27](h)}function u(h){n[28](h)}let c={};return n[1]!==void 0&&(c.daysOfMonth=n[1]),n[2]!==void 0&&(c.months=n[2]),n[4]!==void 0&&(c.hour=n[4]),n[5]!==void 0&&(c.minute=n[5]),e=new pn({props:c}),U.push(()=>K(e,"daysOfMonth",i)),U.push(()=>K(e,"months",a)),U.push(()=>K(e,"hour",o)),U.push(()=>K(e,"minute",u)),{c(){T(e.$$.fragment)},l(h){H(e.$$.fragment,h)},m(h,_){P(e,h,_),f=!0},p(h,_){const d={};!t&&_[0]&2&&(t=!0,d.daysOfMonth=h[1],F(()=>t=!1)),!s&&_[0]&4&&(s=!0,d.months=h[2],F(()=>s=!1)),!l&&_[0]&16&&(l=!0,d.hour=h[4],F(()=>l=!1)),!r&&_[0]&32&&(r=!0,d.minute=h[5],F(()=>r=!1)),e.$set(d)},i(h){f||($(e.$$.fragment,h),f=!0)},o(h){I(e.$$.fragment,h),f=!1},d(h){L(e,h)}}}function qn(n){let e,t,s=J("schedules.cron-view-title")+"",l,r,f,i=J("schedules.cron-view-description")+"",a,o,u,c,h;function _(p){n[29](p)}let d={label:J("schedules.cron-view-title"),labelHidden:!0,id:"cronString",placeholder:"* * * * *"};return n[8]!==void 0&&(d.value=n[8]),u=new ye({props:d}),U.push(()=>K(u,"value",_)),{c(){e=B("div"),t=B("h3"),l=ee(s),r=M(),f=B("p"),a=ee(i),o=M(),T(u.$$.fragment),this.h()},l(p){e=j(p,"DIV",{class:!0});var y=R(e);t=j(y,"H3",{});var v=R(t);l=te(v,s),v.forEach(g),r=V(y),f=j(y,"P",{});var O=R(f);a=te(O,i),O.forEach(g),o=V(y),H(u.$$.fragment,y),y.forEach(g),this.h()},h(){x(e,"class","my-2 flex w-full flex-col gap-4")},m(p,y){q(p,e,y),b(e,t),b(t,l),b(e,r),b(e,f),b(f,a),b(e,o),P(u,e,null),h=!0},p(p,y){const v={};!c&&y[0]&256&&(c=!0,v.value=p[8],F(()=>c=!1)),u.$set(v)},i(p){h||($(u.$$.fragment,p),h=!0)},o(p){I(u.$$.fragment,p),h=!1},d(p){p&&g(e),L(u)}}}function Bn(n){let e,t=J("schedules.schedule-spec")+"",s,l,r,f,i,a,o,u,c,h,_,d,p,y,v;r=new Bt({props:{label:"Schedule Tabs",class:"flex flex-wrap gap-6",$$slots:{default:[Hn]},$$scope:{ctx:n}}});let O=n[9]&&Et(n);o=new Xe({props:{id:"interval-panel",tabId:"interval-tab",$$slots:{default:[Ln]},$$scope:{ctx:n}}}),c=new Xe({props:{id:"daily-panel",tabId:"daily-tab",$$slots:{default:[Nn]},$$scope:{ctx:n}}}),_=new Xe({props:{id:"monthly-panel",tabId:"monthly-tab",$$slots:{default:[An]},$$scope:{ctx:n}}}),p=new Xe({props:{id:"string-panel",tabId:"string-tab",$$slots:{default:[qn]},$$scope:{ctx:n}}});const X=n[11].default,z=Ct(X,n,n[30],It);return{c(){e=B("h2"),s=ee(t),l=M(),T(r.$$.fragment),f=M(),i=B("div"),O&&O.c(),a=M(),T(o.$$.fragment),u=M(),T(c.$$.fragment),h=M(),T(_.$$.fragment),d=M(),T(p.$$.fragment),y=M(),z&&z.c(),this.h()},l(w){e=j(w,"H2",{class:!0});var k=R(e);s=te(k,t),k.forEach(g),l=V(w),H(r.$$.fragment,w),f=V(w),i=j(w,"DIV",{class:!0});var W=R(i);O&&O.l(W),a=V(W),H(o.$$.fragment,W),u=V(W),H(c.$$.fragment,W),h=V(W),H(_.$$.fragment,W),d=V(W),H(p.$$.fragment,W),W.forEach(g),y=V(w),z&&z.l(w),this.h()},h(){x(e,"class","mb-4"),x(i,"class","mt-4 flex w-full flex-wrap gap-6")},m(w,k){q(w,e,k),b(e,s),q(w,l,k),P(r,w,k),q(w,f,k),q(w,i,k),O&&O.m(i,null),b(i,a),P(o,i,null),b(i,u),P(c,i,null),b(i,h),P(_,i,null),b(i,d),P(p,i,null),q(w,y,k),z&&z.m(w,k),v=!0},p(w,k){const W={};k[0]&1073743360&&(W.$$scope={dirty:k,ctx:w}),r.$set(W),w[9]?O?(O.p(w,k),k[0]&512&&$(O,1)):(O=Et(w),O.c(),$(O,1),O.m(i,a)):O&&(We(),I(O,1,1,()=>{O=null}),De());const le={};k[0]&1073742072&&(le.$$scope={dirty:k,ctx:w}),o.$set(le);const Q={};k[0]&1073741873&&(Q.$$scope={dirty:k,ctx:w}),c.$set(Q);const G={};k[0]&1073741878&&(G.$$scope={dirty:k,ctx:w}),_.$set(G);const Y={};k[0]&1073742080&&(Y.$$scope={dirty:k,ctx:w}),p.$set(Y),z&&z.p&&(!v||k[0]&1073742848)&&Wt(z,X,w,w[30],v?Mt(X,w[30],k,Tn):Dt(w[30]),It)},i(w){v||($(r.$$.fragment,w),$(O),$(o.$$.fragment,w),$(c.$$.fragment,w),$(_.$$.fragment,w),$(p.$$.fragment,w),$(z,w),v=!0)},o(w){I(r.$$.fragment,w),I(O),I(o.$$.fragment,w),I(c.$$.fragment,w),I(_.$$.fragment,w),I(p.$$.fragment,w),I(z,w),v=!1},d(w){w&&(g(e),g(l),g(f),g(i),g(y)),L(r,w),O&&O.d(),L(o),L(c),L(_),L(p),z&&z.d(w)}}}function jn(n){let e,t;return e=new qt({props:{class:"mt-8 w-full",$$slots:{default:[Bn]},$$scope:{ctx:n}}}),{c(){T(e.$$.fragment)},l(s){H(e.$$.fragment,s)},m(s,l){P(e,s,l),t=!0},p(s,l){const r={};l[0]&1073743871&&(r.$$scope={dirty:l,ctx:s}),e.$set(r)},i(s){t||($(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){L(e,s)}}}function zn(n,e,t){let s;Ye(n,Vt,E=>t(31,s=E));let{$$slots:l={},$$scope:r}=e,i=s.params.schedule?"existing":"interval",{schedule:a=null}=e,{daysOfWeek:o}=e,{daysOfMonth:u}=e,{months:c}=e,{days:h}=e,{hour:_}=e,{minute:d}=e,{second:p}=e,{phase:y}=e,{cronString:v}=e;const O=()=>{t(0,o=[]),t(1,u=[]),t(2,c=[]),t(3,h=""),t(4,_=""),t(5,d=""),t(6,p=""),t(7,y=""),t(8,v="")},X=()=>t(10,i="existing"),z=()=>t(10,i="interval"),w=()=>t(10,i="week"),k=()=>t(10,i="month"),W=()=>t(10,i="string");function le(E){h=E,t(3,h)}function Q(E){_=E,t(4,_)}function G(E){d=E,t(5,d)}function Y(E){p=E,t(6,p)}function N(E){y=E,t(7,y)}function D(E){o=E,t(0,o)}function ie(E){_=E,t(4,_)}function ue(E){d=E,t(5,d)}function ne(E){u=E,t(1,u)}function he(E){c=E,t(2,c)}function fe(E){_=E,t(4,_)}function ce(E){d=E,t(5,d)}function ae(E){v=E,t(8,v)}return n.$$set=E=>{"schedule"in E&&t(9,a=E.schedule),"daysOfWeek"in E&&t(0,o=E.daysOfWeek),"daysOfMonth"in E&&t(1,u=E.daysOfMonth),"months"in E&&t(2,c=E.months),"days"in E&&t(3,h=E.days),"hour"in E&&t(4,_=E.hour),"minute"in E&&t(5,d=E.minute),"second"in E&&t(6,p=E.second),"phase"in E&&t(7,y=E.phase),"cronString"in E&&t(8,v=E.cronString),"$$scope"in E&&t(30,r=E.$$scope)},O(),[o,u,c,h,_,d,p,y,v,a,i,l,X,z,w,k,W,le,Q,G,Y,N,D,ie,ue,ne,he,fe,ce,ae,r]}class Qn extends we{constructor(e){super(),ke(this,e,zn,jn,$e,{schedule:9,daysOfWeek:0,daysOfMonth:1,months:2,days:3,hour:4,minute:5,second:6,phase:7,cronString:8},null,[-1,-1])}}function St(n){let e,t;return e=new Zt({props:{id:"schedule-input",maxHeight:320,content:it(n[5]),editable:!0,copyable:!1}}),e.$on("change",n[2]),{c(){T(e.$$.fragment)},l(s){H(e.$$.fragment,s)},m(s,l){P(e,s,l),t=!0},p(s,l){const r={};l&32&&(r.content=it(s[5])),e.$set(r)},i(s){t||($(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){L(e,s)}}}function Un(n){let e=n[5],t,s,l=St(n);return{c(){l.c(),t=ct()},l(r){l.l(r),t=ct()},m(r,f){l.m(r,f),q(r,t,f),s=!0},p(r,f){f&32&&$e(e,e=r[5])?(We(),I(l,1,1,ge),De(),l=St(r),l.c(),$(l,1),l.m(t.parentNode,t)):l.p(r,f)},i(r){s||($(l),s=!0)},o(r){I(l),s=!1},d(r){r&&g(t),l.d(r)}}}function Fn(n){let e,t,s,l,r,f,i=J("workflows.signal-payload-input-label-hint")+"",a,o;return t=new xt({props:{for:"schedule-input",label:J("workflows.input")}}),l=new en({props:{value:n[0],key:"payloads",onDecode:n[3],$$slots:{default:[Un,({decodedValue:u})=>({5:u}),({decodedValue:u})=>u?32:0]},$$scope:{ctx:n}}}),{c(){e=B("div"),T(t.$$.fragment),s=M(),T(l.$$.fragment),r=M(),f=B("span"),a=ee(i),this.h()},l(u){e=j(u,"DIV",{class:!0});var c=R(e);H(t.$$.fragment,c),s=V(c),H(l.$$.fragment,c),r=V(c),f=j(c,"SPAN",{class:!0});var h=R(f);a=te(h,i),h.forEach(g),c.forEach(g),this.h()},h(){x(f,"class","text-xs font-light italic"),Qe(f,"text-red-700",n[1]),x(e,"class","flex flex-col gap-4")},m(u,c){q(u,e,c),P(t,e,null),b(e,s),P(l,e,null),b(e,r),b(e,f),b(f,a),o=!0},p(u,[c]){const h={};c&1&&(h.value=u[0]),c&96&&(h.$$scope={dirty:c,ctx:u}),l.$set(h),(!o||c&2)&&Qe(f,"text-red-700",u[1])},i(u){o||($(t.$$.fragment,u),$(l.$$.fragment,u),o=!0)},o(u){I(t.$$.fragment,u),I(l.$$.fragment,u),o=!1},d(u){u&&g(e),L(t),L(l)}}}function Kn(n,e,t){let{input:s}=e,{payloads:l}=e,{error:r=!1}=e;const f=a=>{t(4,s=a.detail)},i=a=>{t(4,s=it(a))};return n.$$set=a=>{"input"in a&&t(4,s=a.input),"payloads"in a&&t(0,l=a.payloads),"error"in a&&t(1,r=a.error)},[l,r,f,i,s]}class Rn extends we{constructor(e){super(),ke(this,e,Kn,Fn,$e,{input:4,payloads:0,error:1})}}function Jn(n){var Z,S,oe;let e,t,s,l,r,f,i,a,o,u,c,h,_,d,p,y,v,O,X,z,w,k,W,le,Q,G,Y,N,D,ie,ue,ne,he,fe,ce,ae,E,me,_e;t=new Rt({props:{href:n[23],icon:"chevron-left",$$slots:{default:[Xn]},$$scope:{ctx:n}}}),a=new Kt({props:{intent:"error",title:"",hidden:!n[17],$$slots:{default:[Yn]},$$scope:{ctx:n}}});function de(m){n[29](m)}let re={id:"name",label:J("schedules.name-label"),error:n[14].name,maxLength:232,disabled:!!n[19]};n[1]!==void 0&&(re.value=n[1]),c=new ye({props:re}),U.push(()=>K(c,"value",de)),c.$on("input",n[26]),c.$on("blur",n[27]);function Ie(m){n[30](m)}let Oe={id:"workflowType",label:J("schedules.workflow-type-label"),error:n[14].workflowType};n[2]!==void 0&&(Oe.value=n[2]),p=new ye({props:Oe}),U.push(()=>K(p,"value",Ie)),p.$on("input",n[26]),p.$on("blur",n[27]);function pe(m){n[31](m)}let Ee={id:"workflowId",label:J("schedules.workflow-id-label"),error:n[14].workflowId};n[3]!==void 0&&(Ee.value=n[3]),X=new ye({props:Ee}),U.push(()=>K(X,"value",pe)),X.$on("input",n[26]),X.$on("blur",n[27]);function Se(m){n[32](m)}let Me={id:"taskQueue",label:J("schedules.task-queue-label"),error:n[14].taskQueue};n[4]!==void 0&&(Me.value=n[4]),W=new ye({props:Me}),U.push(()=>K(W,"value",Se)),W.$on("input",n[26]),W.$on("blur",n[27]);function Ve(m){n[33](m)}let Te={payloads:(oe=(S=(Z=n[0])==null?void 0:Z.action)==null?void 0:S.startWorkflow)==null?void 0:oe.input,error:n[14].input};n[5]!==void 0&&(Te.input=n[5]),G=new Rn({props:Te}),U.push(()=>K(G,"input",Ve));function He(m){n[35](m)}function Fe(m){n[36](m)}function Pe(m){n[37](m)}function Ke(m){n[38](m)}function Le(m){n[39](m)}function Re(m){n[40](m)}function Ne(m){n[41](m)}function Je(m){n[42](m)}function Ae(m){n[43](m)}let C={schedule:n[0],$$slots:{default:[el,({preset:m})=>({58:m}),({preset:m})=>[0,m?134217728:0]]},$$scope:{ctx:n}};return n[6]!==void 0&&(C.daysOfWeek=n[6]),n[7]!==void 0&&(C.daysOfMonth=n[7]),n[8]!==void 0&&(C.months=n[8]),n[9]!==void 0&&(C.days=n[9]),n[10]!==void 0&&(C.hour=n[10]),n[11]!==void 0&&(C.minute=n[11]),n[12]!==void 0&&(C.second=n[12]),n[15]!==void 0&&(C.phase=n[15]),n[13]!==void 0&&(C.cronString=n[13]),D=new Qn({props:C}),U.push(()=>K(D,"daysOfWeek",He)),U.push(()=>K(D,"daysOfMonth",Fe)),U.push(()=>K(D,"months",Pe)),U.push(()=>K(D,"days",Ke)),U.push(()=>K(D,"hour",Le)),U.push(()=>K(D,"minute",Re)),U.push(()=>K(D,"second",Ne)),U.push(()=>K(D,"phase",Je)),U.push(()=>K(D,"cronString",Ae)),{c(){e=B("header"),T(t.$$.fragment),s=M(),l=B("h1"),r=ee(n[20]),f=M(),i=B("form"),T(a.$$.fragment),o=M(),u=B("div"),T(c.$$.fragment),_=M(),d=B("div"),T(p.$$.fragment),v=M(),O=B("div"),T(X.$$.fragment),w=M(),k=B("div"),T(W.$$.fragment),Q=M(),T(G.$$.fragment),N=M(),T(D.$$.fragment),this.h()},l(m){e=j(m,"HEADER",{class:!0});var A=R(e);H(t.$$.fragment,A),s=V(A),l=j(A,"H1",{});var ve=R(l);r=te(ve,n[20]),ve.forEach(g),A.forEach(g),f=V(m),i=j(m,"FORM",{class:!0});var se=R(i);H(a.$$.fragment,se),o=V(se),u=j(se,"DIV",{class:!0});var qe=R(u);H(c.$$.fragment,qe),qe.forEach(g),_=V(se),d=j(se,"DIV",{class:!0});var Be=R(d);H(p.$$.fragment,Be),Be.forEach(g),v=V(se),O=j(se,"DIV",{class:!0});var je=R(O);H(X.$$.fragment,je),je.forEach(g),w=V(se),k=j(se,"DIV",{class:!0});var ze=R(k);H(W.$$.fragment,ze),ze.forEach(g),Q=V(se),H(G.$$.fragment,se),N=V(se),H(D.$$.fragment,se),se.forEach(g),this.h()},h(){x(e,"class","mb-12 flex flex-col gap-4"),x(u,"class","w-full"),x(d,"class","w-full"),x(O,"class","w-full"),x(k,"class","w-full"),x(i,"class","mb-4 flex w-full flex-col gap-4 md:w-2/3 xl:w-1/2")},m(m,A){q(m,e,A),P(t,e,null),b(e,s),b(e,l),b(l,r),q(m,f,A),q(m,i,A),P(a,i,null),b(i,o),b(i,u),P(c,u,null),b(i,_),b(i,d),P(p,d,null),b(i,v),b(i,O),P(X,O,null),b(i,w),b(i,k),P(W,k,null),b(i,Q),P(G,i,null),b(i,N),P(D,i,null),_e=!0},p(m,A){var ut,rt,at;const ve={};A[1]&268435456&&(ve.$$scope={dirty:A,ctx:m}),t.$set(ve);const se={};A[0]&131072&&(se.hidden=!m[17]),A[0]&131072|A[1]&268435456&&(se.$$scope={dirty:A,ctx:m}),a.$set(se);const qe={};A[0]&16384&&(qe.error=m[14].name),!h&&A[0]&2&&(h=!0,qe.value=m[1],F(()=>h=!1)),c.$set(qe);const Be={};A[0]&16384&&(Be.error=m[14].workflowType),!y&&A[0]&4&&(y=!0,Be.value=m[2],F(()=>y=!1)),p.$set(Be);const je={};A[0]&16384&&(je.error=m[14].workflowId),!z&&A[0]&8&&(z=!0,je.value=m[3],F(()=>z=!1)),X.$set(je);const ze={};A[0]&16384&&(ze.error=m[14].taskQueue),!le&&A[0]&16&&(le=!0,ze.value=m[4],F(()=>le=!1)),W.$set(ze);const Ze={};A[0]&1&&(Ze.payloads=(at=(rt=(ut=m[0])==null?void 0:ut.action)==null?void 0:rt.startWorkflow)==null?void 0:at.input),A[0]&16384&&(Ze.error=m[14].input),!Y&&A[0]&32&&(Y=!0,Ze.input=m[5],F(()=>Y=!1)),G.$set(Ze);const be={};A[0]&1&&(be.schedule=m[0]),A[0]&65537|A[1]&402653184&&(be.$$scope={dirty:A,ctx:m}),!ie&&A[0]&64&&(ie=!0,be.daysOfWeek=m[6],F(()=>ie=!1)),!ue&&A[0]&128&&(ue=!0,be.daysOfMonth=m[7],F(()=>ue=!1)),!ne&&A[0]&256&&(ne=!0,be.months=m[8],F(()=>ne=!1)),!he&&A[0]&512&&(he=!0,be.days=m[9],F(()=>he=!1)),!fe&&A[0]&1024&&(fe=!0,be.hour=m[10],F(()=>fe=!1)),!ce&&A[0]&2048&&(ce=!0,be.minute=m[11],F(()=>ce=!1)),!ae&&A[0]&4096&&(ae=!0,be.second=m[12],F(()=>ae=!1)),!E&&A[0]&32768&&(E=!0,be.phase=m[15],F(()=>E=!1)),!me&&A[0]&8192&&(me=!0,be.cronString=m[13],F(()=>me=!1)),D.$set(be)},i(m){_e||($(t.$$.fragment,m),$(a.$$.fragment,m),$(c.$$.fragment,m),$(p.$$.fragment,m),$(X.$$.fragment,m),$(W.$$.fragment,m),$(G.$$.fragment,m),$(D.$$.fragment,m),_e=!0)},o(m){I(t.$$.fragment,m),I(a.$$.fragment,m),I(c.$$.fragment,m),I(p.$$.fragment,m),I(X.$$.fragment,m),I(W.$$.fragment,m),I(G.$$.fragment,m),I(D.$$.fragment,m),_e=!1},d(m){m&&(g(e),g(f),g(i)),L(t),L(a),L(c),L(p),L(X),L(W),L(G),L(D)}}}function Gn(n){let e,t;return e=new Jt({props:{title:n[21]}}),{c(){T(e.$$.fragment)},l(s){H(e.$$.fragment,s)},m(s,l){P(e,s,l),t=!0},p:ge,i(s){t||($(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){L(e,s)}}}function Xn(n){let e;return{c(){e=ee(n[22])},l(t){e=te(t,n[22])},m(t,s){q(t,e,s)},p:ge,d(t){t&&g(e)}}}function Yn(n){let e;return{c(){e=ee(n[17])},l(t){e=te(t,n[17])},m(t,s){q(t,e,s)},p(t,s){s[0]&131072&&Nt(e,t[17])},d(t){t&&g(e)}}}function Zn(n){let e;return{c(){e=ee(n[24])},l(t){e=te(t,n[24])},m(t,s){q(t,e,s)},p:ge,d(t){t&&g(e)}}}function xn(n){let e=J("common.cancel")+"",t;return{c(){t=ee(e)},l(s){t=te(s,e)},m(s,l){q(s,t,l)},p:ge,d(s){s&&g(t)}}}function el(n){let e,t,s,l,r;function f(){return n[34](n[58])}return t=new Ue({props:{disabled:n[16](n[58])||!mt(),$$slots:{default:[Zn]},$$scope:{ctx:n}}}),t.$on("click",f),l=new Ue({props:{variant:"ghost",href:n[23],$$slots:{default:[xn]},$$scope:{ctx:n}}}),{c(){e=B("div"),T(t.$$.fragment),s=M(),T(l.$$.fragment),this.h()},l(i){e=j(i,"DIV",{class:!0});var a=R(e);H(t.$$.fragment,a),s=V(a),H(l.$$.fragment,a),a.forEach(g),this.h()},h(){x(e,"class","mt-8 flex items-center gap-2")},m(i,a){q(i,e,a),P(t,e,null),b(e,s),P(l,e,null),r=!0},p(i,a){n=i;const o={};a[0]&65536|a[1]&134217728&&(o.disabled=n[16](n[58])||!mt()),a[1]&268435456&&(o.$$scope={dirty:a,ctx:n}),t.$set(o);const u={};a[1]&268435456&&(u.$$scope={dirty:a,ctx:n}),l.$set(u)},i(i){r||($(t.$$.fragment,i),$(l.$$.fragment,i),r=!0)},o(i){I(t.$$.fragment,i),I(l.$$.fragment,i),r=!1},d(i){i&&g(e),L(t),L(l)}}}function tl(n){let e,t,s,l;const r=[Gn,Jn],f=[];function i(a,o){return a[18]?0:1}return t=i(n),s=f[t]=r[t](n),{c(){e=B("div"),s.c(),this.h()},l(a){e=j(a,"DIV",{class:!0});var o=R(e);s.l(o),o.forEach(g),this.h()},h(){x(e,"class","pb-20")},m(a,o){q(a,e,o),f[t].m(e,null),l=!0},p(a,o){let u=t;t=i(a),t===u?f[t].p(a,o):(We(),I(f[u],1,1,()=>{f[u]=null}),De(),s=f[t],s?s.p(a,o):(s=f[t]=r[t](a),s.c()),$(s,1),s.m(e,null))},i(a){l||($(s),l=!0)},o(a){I(s),l=!1},d(a){a&&g(e),f[t].d()}}}function nl(n,e,t){let s,l,r,f;Ye(n,lt,S=>t(17,l=S)),Ye(n,Vt,S=>t(55,r=S)),Ye(n,Gt,S=>t(18,f=S));var i,a,o,u,c,h,_,d,p,y,v;let{schedule:O=null}=e,{onConfirm:X}=e,z=r.params.namespace,w=r.params.schedule,k=J(O?"schedules.edit":"schedules.create"),W=J(O?"schedules.editing":"schedules.creating"),le=J(O?"schedules.back-to-schedule":"schedules.back-to-schedules"),Q=O?Xt({namespace:z,scheduleId:w}):Yt({namespace:z}),G=O?J("common.save"):J("schedules.create"),Y={},N=w??"",D=(u=(o=(a=(i=O==null?void 0:O.action)===null||i===void 0?void 0:i.startWorkflow)===null||a===void 0?void 0:a.workflowType)===null||o===void 0?void 0:o.name)!==null&&u!==void 0?u:"",ie=(_=(h=(c=O==null?void 0:O.action)===null||c===void 0?void 0:c.startWorkflow)===null||h===void 0?void 0:h.workflowId)!==null&&_!==void 0?_:"",ue=(v=(y=(p=(d=O==null?void 0:O.action)===null||d===void 0?void 0:d.startWorkflow)===null||p===void 0?void 0:p.taskQueue)===null||y===void 0?void 0:y.name)!==null&&v!==void 0?v:"",ne="",he=[],fe=[],ce=[],ae="",E="",me="",_e="",de="",re="";const Ie=(S,oe)=>{X(S,{name:N,workflowType:D,workflowId:ie,taskQueue:ue,input:ne,hour:E,minute:me,second:_e,phase:de,cronString:re,daysOfWeek:he,daysOfMonth:fe,days:ae,months:ce},oe)},Oe=S=>{const{id:oe}=S.target;t(14,Y[oe]=!1,Y),l&&dt(lt,l="",l)},pe=S=>{const{value:oe,id:m}=S.target;oe.trim()?t(14,Y[m]=!1,Y):t(14,Y[m]=!0,Y)},Ee=S=>{if(!ne)return t(14,Y.input=!1,Y),!0;try{return JSON.parse(S),t(14,Y.input=!1,Y),!0}catch{return t(14,Y.input=!0,Y),!1}};Lt(()=>dt(lt,l="",l));function Se(S){N=S,t(1,N)}function Me(S){D=S,t(2,D)}function Ve(S){ie=S,t(3,ie)}function Te(S){ue=S,t(4,ue)}function He(S){ne=S,t(5,ne)}const Fe=S=>Ie(S,O);function Pe(S){he=S,t(6,he)}function Ke(S){fe=S,t(7,fe)}function Le(S){ce=S,t(8,ce)}function Re(S){ae=S,t(9,ae)}function Ne(S){E=S,t(10,E)}function Je(S){me=S,t(11,me)}function Ae(S){_e=S,t(12,_e)}function C(S){de=S,t(15,de)}function Z(S){re=S,t(13,re)}return n.$$set=S=>{"schedule"in S&&t(0,O=S.schedule),"onConfirm"in S&&t(28,X=S.onConfirm)},n.$$.update=()=>{n.$$.dirty[0]&16382&&t(16,s=S=>!N||!D||!ie||!ue||!Ee(ne)?!0:S==="interval"?!ae&&!E&&!me&&!_e:S==="week"?!he.length:S==="month"?!fe.length||!ce.length:S==="string"?!re:!1)},[O,N,D,ie,ue,ne,he,fe,ce,ae,E,me,_e,re,Y,de,s,l,f,w,k,W,le,Q,G,Ie,Oe,pe,X,Se,Me,Ve,Te,He,Fe,Pe,Ke,Le,Re,Ne,Je,Ae,C,Z]}class El extends we{constructor(e){super(),ke(this,e,nl,tl,$e,{schedule:0,onConfirm:28},null,[-1,-1])}}export{El as S}; +import{s as $e,a as Ct,z as st,h as B,j,k as R,f as g,F as ot,I as Qe,i as q,u as Wt,g as Dt,e as Mt,E as ft,$ as Ht,c as Ye,A as Pt,m as x,n as b,y as et,t as ee,b as M,l as te,d as V,v as ge,M as U,T as F,o as nt,x as ct,ac as Lt,w as dt,q as Nt}from"./scheduler.pPC3woXQ.js";import{S as we,i as ke,t as $,b as I,g as We,e as De,c as T,a as H,m as P,d as L,f as K}from"./index.Z3Qqxacm.js";import{p as Vt}from"./stores.cW8AX6ex.js";import{I as ye}from"./input.T-q3Sv8I.js";import{c as At,T as qt,a as Bt,b as Ge}from"./tab.R4rXEghr.js";import{g as jt}from"./spread.rEx3vLA9.js";import{t as J}from"./translate.HrioCK44.js";import{e as Ce}from"./each.fm8Uvuh8.js";import{B as Ue}from"./button.pYfDLC93.js";import{m as ht,T as zt,b as tt,w as _t}from"./time-picker.tBXm030o.js";import{I as Qt}from"./icon.IMxiy1l_.js";import{S as Ut}from"./schedule-frequency.MEesLAX9.js";import{S as Ft,O as xe}from"./option.r-5xNszF.js";import{A as Kt}from"./alert.j__UttVI.js";import{L as Rt}from"./link.k1D2UsV0.js";import{L as Jt}from"./loading.TnDAnZ7t.js";import{e as lt,l as Gt}from"./schedules.UsC4ogVF.js";import{m as Xt,l as Yt}from"./route-for.Gs4LHMCg.js";import{w as mt}from"./write-actions-are-allowed.266r6g9i.js";import{C as Zt}from"./code-block.Xpz7isZb.js";import{L as xt}from"./label.zXYhHpIA.js";import{g as it}from"./encode-payload.xDhwgfdU.js";import{P as en}from"./payload-decoder.MNO5fgLK.js";function tn(n){let e,t;const s=n[7].default,l=Ct(s,n,n[6],null);let r=[{id:n[0]},{"aria-labelledby":n[1]},{tabindex:"0"},{role:"tabpanel"},n[4]],f={};for(let i=0;it(5,f=_)),c(o),n.$$set=_=>{e=st(st({},e),Pt(_)),t(4,r=ft(e,l)),"id"in _&&t(0,o=_.id),"tabId"in _&&t(1,u=_.tabId),"$$scope"in _&&t(6,a=_.$$scope)},n.$$.update=()=>{n.$$.dirty&33&&t(2,s=f===o)},[o,u,s,h,r,f,a,i]}class Xe extends we{constructor(e){super(),ke(this,e,nn,tn,$e,{id:0,tabId:1})}}function pt(n,e,t){const s=n.slice();s[4]=e[t];const l=s[0].includes(s[4]);return s[5]=l,s}function ln(n){let e=n[4]+"",t,s;return{c(){t=ee(e),s=M()},l(l){t=te(l,e),s=V(l)},m(l,r){q(l,t,r),q(l,s,r)},p:ge,d(l){l&&(g(t),g(s))}}}function gt(n){let e,t;function s(...l){return n[3](n[4],...l)}return e=new Ue({props:{variant:"secondary",class:n[5]&&"bg-interactive-secondary-active",$$slots:{default:[ln]},$$scope:{ctx:n}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,r){P(e,l,r),t=!0},p(l,r){n=l;const f={};r&1&&(f.class=n[5]&&"bg-interactive-secondary-active"),r&256&&(f.$$scope={dirty:r,ctx:n}),e.$set(f)},i(l){t||($(e.$$.fragment,l),t=!0)},o(l){I(e.$$.fragment,l),t=!1},d(l){L(e,l)}}}function sn(n){let e,t,s,l=Ce(n[1]),r=[];for(let i=0;iI(r[i],1,1,()=>{r[i]=null});return{c(){e=B("div"),t=B("div");for(let i=0;ia+1);let{daysOfMonth:l}=e;const r=(i,a)=>{i.metaKey?l.includes(a)?l.filter(o=>o!==a):t(0,l=[...l,a]):t(0,l=[a])},f=(i,a)=>r(a,i);return n.$$set=i=>{"daysOfMonth"in i&&t(0,l=i.daysOfMonth)},[l,s,r,f]}class rn extends we{constructor(e){super(),ke(this,e,un,sn,$e,{daysOfMonth:0})}}function vt(n,e,t){const s=n.slice();s[3]=e[t].label,s[4]=e[t].value;const l=s[0].includes(s[4]);return s[5]=l,s}function an(n){let e=n[3]+"",t,s;return{c(){t=ee(e),s=M()},l(l){t=te(l,e),s=V(l)},m(l,r){q(l,t,r),q(l,s,r)},p:ge,d(l){l&&(g(t),g(s))}}}function bt(n){let e,t;function s(...l){return n[2](n[4],...l)}return e=new Ue({props:{variant:"secondary",class:n[5]&&"bg-interactive-secondary-active",$$slots:{default:[an]},$$scope:{ctx:n}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,r){P(e,l,r),t=!0},p(l,r){n=l;const f={};r&1&&(f.class=n[5]&&"bg-interactive-secondary-active"),r&256&&(f.$$scope={dirty:r,ctx:n}),e.$set(f)},i(l){t||($(e.$$.fragment,l),t=!0)},o(l){I(e.$$.fragment,l),t=!1},d(l){L(e,l)}}}function on(n){let e,t,s=Ce(ht),l=[];for(let f=0;fI(l[f],1,1,()=>{l[f]=null});return{c(){e=B("div");for(let f=0;f{f.metaKey&&i!=="*"?(s.includes("*")&&t(0,s=s.filter(a=>a!=="*")),s.includes(i)?t(0,s=s.filter(a=>a!==i)):t(0,s=[...s,i])):t(0,s=[i])},r=(f,i)=>l(i,f);return n.$$set=f=>{"months"in f&&t(0,s=f.months)},[s,l,r]}class cn extends we{constructor(e){super(),ke(this,e,fn,on,$e,{months:0})}}function dn(n){let e,t,s=J("schedules.time-view-heading")+"",l,r,f,i=J("schedules.time-view-description")+"",a,o,u,c,h,_,d,p,y,v,O=J("common.based-on-time-preface")+"",X,z,w;function k(Q){n[2](Q)}function W(Q){n[3](Q)}let le={twelveHourClock:!1,includeSeconds:!1};return n[0]!==void 0&&(le.hour=n[0]),n[1]!==void 0&&(le.minute=n[1]),u=new zt({props:le}),U.push(()=>K(u,"hour",k)),U.push(()=>K(u,"minute",W)),p=new Qt({props:{name:"clock","aria-hidden":"true"}}),{c(){e=B("div"),t=B("h3"),l=ee(s),r=M(),f=B("p"),a=ee(i),o=M(),T(u.$$.fragment),_=M(),d=B("div"),T(p.$$.fragment),y=M(),v=B("span"),X=ee(O),z=ee(" Universal Standard Time (UTC)"),this.h()},l(Q){e=j(Q,"DIV",{class:!0});var G=R(e);t=j(G,"H3",{});var Y=R(t);l=te(Y,s),Y.forEach(g),r=V(G),f=j(G,"P",{});var N=R(f);a=te(N,i),N.forEach(g),o=V(G),H(u.$$.fragment,G),_=V(G),d=j(G,"DIV",{class:!0});var D=R(d);H(p.$$.fragment,D),y=V(D),v=j(D,"SPAN",{class:!0});var ie=R(v);X=te(ie,O),z=te(ie," Universal Standard Time (UTC)"),ie.forEach(g),D.forEach(g),G.forEach(g),this.h()},h(){x(v,"class","text-xs font-normal text-slate-500"),x(d,"class","flex w-full flex-row items-center gap-2"),x(e,"class","flex flex-col gap-4")},m(Q,G){q(Q,e,G),b(e,t),b(t,l),b(e,r),b(e,f),b(f,a),b(e,o),P(u,e,null),b(e,_),b(e,d),P(p,d,null),b(d,y),b(d,v),b(v,X),b(v,z),w=!0},p(Q,[G]){const Y={};!c&&G&1&&(c=!0,Y.hour=Q[0],F(()=>c=!1)),!h&&G&2&&(h=!0,Y.minute=Q[1],F(()=>h=!1)),u.$set(Y)},i(Q){w||($(u.$$.fragment,Q),$(p.$$.fragment,Q),w=!0)},o(Q){I(u.$$.fragment,Q),I(p.$$.fragment,Q),w=!1},d(Q){Q&&g(e),L(u),L(p)}}}function hn(n,e,t){let{hour:s=""}=e,{minute:l=""}=e;function r(i){s=i,t(0,s)}function f(i){l=i,t(1,l)}return n.$$set=i=>{"hour"in i&&t(0,s=i.hour),"minute"in i&&t(1,l=i.minute)},[s,l,r,f]}class Tt extends we{constructor(e){super(),ke(this,e,hn,dn,$e,{hour:0,minute:1})}}function _n(n){let e,t,s=J("schedules.recurring-dates-heading")+"",l,r,f,i=J("schedules.recurring-dates-description")+"",a,o,u,c,h,_,d,p,y,v,O,X,z;function w(N){n[4](N)}let k={};n[0]!==void 0&&(k.daysOfMonth=n[0]),c=new rn({props:k}),U.push(()=>K(c,"daysOfMonth",w));function W(N){n[5](N)}let le={};n[1]!==void 0&&(le.months=n[1]),d=new cn({props:le}),U.push(()=>K(d,"months",W));function Q(N){n[6](N)}function G(N){n[7](N)}let Y={};return n[2]!==void 0&&(Y.hour=n[2]),n[3]!==void 0&&(Y.minute=n[3]),v=new Tt({props:Y}),U.push(()=>K(v,"hour",Q)),U.push(()=>K(v,"minute",G)),{c(){e=B("div"),t=B("h3"),l=ee(s),r=M(),f=B("p"),a=ee(i),o=M(),u=B("div"),T(c.$$.fragment),_=M(),T(d.$$.fragment),y=M(),T(v.$$.fragment),this.h()},l(N){e=j(N,"DIV",{class:!0});var D=R(e);t=j(D,"H3",{});var ie=R(t);l=te(ie,s),ie.forEach(g),r=V(D),f=j(D,"P",{});var ue=R(f);a=te(ue,i),ue.forEach(g),o=V(D),u=j(D,"DIV",{class:!0});var ne=R(u);H(c.$$.fragment,ne),_=V(ne),H(d.$$.fragment,ne),ne.forEach(g),D.forEach(g),y=V(N),H(v.$$.fragment,N),this.h()},h(){x(u,"class","flex w-full flex-col gap-4"),x(e,"class","my-2 flex flex-col gap-4")},m(N,D){q(N,e,D),b(e,t),b(t,l),b(e,r),b(e,f),b(f,a),b(e,o),b(e,u),P(c,u,null),b(u,_),P(d,u,null),q(N,y,D),P(v,N,D),z=!0},p(N,[D]){const ie={};!h&&D&1&&(h=!0,ie.daysOfMonth=N[0],F(()=>h=!1)),c.$set(ie);const ue={};!p&&D&2&&(p=!0,ue.months=N[1],F(()=>p=!1)),d.$set(ue);const ne={};!O&&D&4&&(O=!0,ne.hour=N[2],F(()=>O=!1)),!X&&D&8&&(X=!0,ne.minute=N[3],F(()=>X=!1)),v.$set(ne)},i(N){z||($(c.$$.fragment,N),$(d.$$.fragment,N),$(v.$$.fragment,N),z=!0)},o(N){I(c.$$.fragment,N),I(d.$$.fragment,N),I(v.$$.fragment,N),z=!1},d(N){N&&(g(e),g(y)),L(c),L(d),L(v,N)}}}function mn(n,e,t){let{daysOfMonth:s}=e,{months:l}=e,{hour:r}=e,{minute:f}=e;function i(c){s=c,t(0,s)}function a(c){l=c,t(1,l)}function o(c){r=c,t(2,r)}function u(c){f=c,t(3,f)}return n.$$set=c=>{"daysOfMonth"in c&&t(0,s=c.daysOfMonth),"months"in c&&t(1,l=c.months),"hour"in c&&t(2,r=c.hour),"minute"in c&&t(3,f=c.minute)},[s,l,r,f,i,a,o,u]}class pn extends we{constructor(e){super(),ke(this,e,mn,_n,$e,{daysOfMonth:0,months:1,hour:2,minute:3})}}function $t(n,e,t){const s=n.slice();s[4]=e[t].label,s[5]=e[t].value;const l=s[0].includes(s[5]);return s[6]=l,s}function wt(n,e,t){const s=n.slice();s[4]=e[t].label,s[5]=e[t].value;const l=s[0].includes(s[5]);return s[6]=l,s}function gn(n){let e=n[4]+"",t,s;return{c(){t=ee(e),s=M()},l(l){t=te(l,e),s=V(l)},m(l,r){q(l,t,r),q(l,s,r)},p:ge,d(l){l&&(g(t),g(s))}}}function kt(n){let e,t;function s(...l){return n[2](n[5],...l)}return e=new Ue({props:{variant:"secondary",class:n[6]&&"bg-interactive-secondary-active",$$slots:{default:[gn]},$$scope:{ctx:n}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,r){P(e,l,r),t=!0},p(l,r){n=l;const f={};r&1&&(f.class=n[6]&&"bg-interactive-secondary-active"),r&2048&&(f.$$scope={dirty:r,ctx:n}),e.$set(f)},i(l){t||($(e.$$.fragment,l),t=!0)},o(l){I(e.$$.fragment,l),t=!1},d(l){L(e,l)}}}function vn(n){let e=n[4]+"",t,s;return{c(){t=ee(e),s=M()},l(l){t=te(l,e),s=V(l)},m(l,r){q(l,t,r),q(l,s,r)},p:ge,d(l){l&&(g(t),g(s))}}}function yt(n){let e,t;function s(...l){return n[3](n[5],...l)}return e=new Ue({props:{variant:"secondary",class:n[6]&&"bg-interactive-secondary-active",$$slots:{default:[vn]},$$scope:{ctx:n}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,r){P(e,l,r),t=!0},p(l,r){n=l;const f={};r&1&&(f.class=n[6]&&"bg-interactive-secondary-active"),r&2048&&(f.$$scope={dirty:r,ctx:n}),e.$set(f)},i(l){t||($(e.$$.fragment,l),t=!0)},o(l){I(e.$$.fragment,l),t=!1},d(l){L(e,l)}}}function bn(n){let e,t,s,l,r,f=Ce(tt),i=[];for(let h=0;hI(i[h],1,1,()=>{i[h]=null});let o=Ce(_t),u=[];for(let h=0;hI(u[h],1,1,()=>{u[h]=null});return{c(){e=B("div"),t=B("div");for(let h=0;h{i.metaKey?(tt.find(o=>o.value===a)?t(0,s=[a]):s.find(o=>tt.find(u=>u.value===o))&&t(0,s=[a]),s.includes(a)?s.filter(o=>o!==a):t(0,s=[...s,a])):t(0,s=[a])},r=(i,a)=>l(a,i),f=(i,a)=>l(a,i);return n.$$set=i=>{"daysOfWeek"in i&&t(0,s=i.daysOfWeek)},[s,l,r,f]}class wn extends we{constructor(e){super(),ke(this,e,$n,bn,$e,{daysOfWeek:0})}}function kn(n){let e,t,s=J("schedules.recurring-days-heading")+"",l,r,f,i=J("schedules.recurring-days-description")+"",a,o,u,c,h,_,d,p,y;function v(k){n[3](k)}let O={};n[0]!==void 0&&(O.daysOfWeek=n[0]),u=new wn({props:O}),U.push(()=>K(u,"daysOfWeek",v));function X(k){n[4](k)}function z(k){n[5](k)}let w={};return n[1]!==void 0&&(w.hour=n[1]),n[2]!==void 0&&(w.minute=n[2]),_=new Tt({props:w}),U.push(()=>K(_,"hour",X)),U.push(()=>K(_,"minute",z)),{c(){e=B("div"),t=B("h3"),l=ee(s),r=M(),f=B("p"),a=ee(i),o=M(),T(u.$$.fragment),h=M(),T(_.$$.fragment),this.h()},l(k){e=j(k,"DIV",{class:!0});var W=R(e);t=j(W,"H3",{});var le=R(t);l=te(le,s),le.forEach(g),r=V(W),f=j(W,"P",{});var Q=R(f);a=te(Q,i),Q.forEach(g),o=V(W),H(u.$$.fragment,W),W.forEach(g),h=V(k),H(_.$$.fragment,k),this.h()},h(){x(e,"class","my-2 flex flex-col gap-4")},m(k,W){q(k,e,W),b(e,t),b(t,l),b(e,r),b(e,f),b(f,a),b(e,o),P(u,e,null),q(k,h,W),P(_,k,W),y=!0},p(k,[W]){const le={};!c&&W&1&&(c=!0,le.daysOfWeek=k[0],F(()=>c=!1)),u.$set(le);const Q={};!d&&W&2&&(d=!0,Q.hour=k[1],F(()=>d=!1)),!p&&W&4&&(p=!0,Q.minute=k[2],F(()=>p=!1)),_.$set(Q)},i(k){y||($(u.$$.fragment,k),$(_.$$.fragment,k),y=!0)},o(k){I(u.$$.fragment,k),I(_.$$.fragment,k),y=!1},d(k){k&&(g(e),g(h)),L(u),L(_,k)}}}function yn(n,e,t){let{daysOfWeek:s}=e,{hour:l}=e,{minute:r}=e;function f(o){s=o,t(0,s)}function i(o){l=o,t(1,l)}function a(o){r=o,t(2,r)}return n.$$set=o=>{"daysOfWeek"in o&&t(0,s=o.daysOfWeek),"hour"in o&&t(1,l=o.hour),"minute"in o&&t(2,r=o.minute)},[s,l,r,f,i,a]}class In extends we{constructor(e){super(),ke(this,e,yn,kn,$e,{daysOfWeek:0,hour:1,minute:2})}}function On(n){let e=J("common.days")+"",t;return{c(){t=ee(e)},l(s){t=te(s,e)},m(s,l){q(s,t,l)},p:ge,d(s){s&&g(t)}}}function En(n){let e=J("common.hours-abbreviated")+"",t;return{c(){t=ee(e)},l(s){t=te(s,e)},m(s,l){q(s,t,l)},p:ge,d(s){s&&g(t)}}}function Sn(n){let e=J("common.minutes-abbreviated")+"",t;return{c(){t=ee(e)},l(s){t=te(s,e)},m(s,l){q(s,t,l)},p:ge,d(s){s&&g(t)}}}function Cn(n){let e=J("common.seconds-abbreviated")+"",t;return{c(){t=ee(e)},l(s){t=te(s,e)},m(s,l){q(s,t,l)},p:ge,d(s){s&&g(t)}}}function Wn(n){let e,t,s,l,r,f,i,a;return e=new xe({props:{value:"days",$$slots:{default:[On]},$$scope:{ctx:n}}}),s=new xe({props:{value:"hrs",$$slots:{default:[En]},$$scope:{ctx:n}}}),r=new xe({props:{value:"min",$$slots:{default:[Sn]},$$scope:{ctx:n}}}),i=new xe({props:{value:"sec",$$slots:{default:[Cn]},$$scope:{ctx:n}}}),{c(){T(e.$$.fragment),t=M(),T(s.$$.fragment),l=M(),T(r.$$.fragment),f=M(),T(i.$$.fragment)},l(o){H(e.$$.fragment,o),t=V(o),H(s.$$.fragment,o),l=V(o),H(r.$$.fragment,o),f=V(o),H(i.$$.fragment,o)},m(o,u){P(e,o,u),q(o,t,u),P(s,o,u),q(o,l,u),P(r,o,u),q(o,f,u),P(i,o,u),a=!0},p(o,u){const c={};u&16384&&(c.$$scope={dirty:u,ctx:o}),e.$set(c);const h={};u&16384&&(h.$$scope={dirty:u,ctx:o}),s.$set(h);const _={};u&16384&&(_.$$scope={dirty:u,ctx:o}),r.$set(_);const d={};u&16384&&(d.$$scope={dirty:u,ctx:o}),i.$set(d)},i(o){a||($(e.$$.fragment,o),$(s.$$.fragment,o),$(r.$$.fragment,o),$(i.$$.fragment,o),a=!0)},o(o){I(e.$$.fragment,o),I(s.$$.fragment,o),I(r.$$.fragment,o),I(i.$$.fragment,o),a=!1},d(o){o&&(g(t),g(l),g(f)),L(e,o),L(s,o),L(r,o),L(i,o)}}}function Dn(n){let e,t,s=J("schedules.interval-view-heading")+"",l,r,f,i=J("schedules.interval-view-description")+"",a,o,u,c,h,_,d,p=":",y,v,O,X,z,w=":",k,W,le,Q,G,Y=":",N,D,ie,ue,ne,he=J("schedules.offset-heading")+"",fe,ce,ae,E=J("schedules.offset-description")+"",me,_e,de,re,Ie,Oe,pe,Ee,Se;function Me(C){n[8](C)}let Ve={id:"days",class:"w-28",label:J("common.days"),labelHidden:!0,placeholder:"000",suffix:J("common.days"),hideCount:!0,maxLength:3,error:n[7](n[0])};n[0]!==void 0&&(Ve.value=n[0]),c=new ye({props:Ve}),U.push(()=>K(c,"value",Me));function Te(C){n[9](C)}let He={id:"hour-interval",class:"w-24",label:J("common.hours-abbreviated"),labelHidden:!0,placeholder:"00",suffix:J("common.hours-abbreviated"),hideCount:!0,maxLength:2,error:n[7](n[1])};n[1]!==void 0&&(He.value=n[1]),v=new ye({props:He}),U.push(()=>K(v,"value",Te));function Fe(C){n[10](C)}let Pe={id:"minute-interval",class:"w-24",label:J("common.minutes-abbreviated"),labelHidden:!0,placeholder:"00",suffix:J("common.minutes-abbreviated"),hideCount:!0,maxLength:2,error:n[7](n[2])};n[2]!==void 0&&(Pe.value=n[2]),W=new ye({props:Pe}),U.push(()=>K(W,"value",Fe));function Ke(C){n[11](C)}let Le={id:"second",class:"w-24",label:J("common.seconds-abbreviated"),labelHidden:!0,placeholder:"00",suffix:J("common.seconds-abbreviated"),hideCount:!0,maxLength:2,error:n[7](n[3])};n[3]!==void 0&&(Le.value=n[3]),D=new ye({props:Le}),U.push(()=>K(D,"value",Ke));function Re(C){n[12](C)}let Ne={id:"phase",class:"w-28",label:J("schedules.offset-heading"),labelHidden:!0,placeholder:"00",maxLength:3,hideCount:!0,error:n[7](n[4])};n[5]!==void 0&&(Ne.value=n[5]),re=new ye({props:Ne}),U.push(()=>K(re,"value",Re));function Je(C){n[13](C)}let Ae={label:J("schedules.offset-unit"),labelHidden:!0,id:"phase-unit",$$slots:{default:[Wn]},$$scope:{ctx:n}};return n[6]!==void 0&&(Ae.value=n[6]),pe=new Ft({props:Ae}),U.push(()=>K(pe,"value",Je)),{c(){e=B("div"),t=B("h3"),l=ee(s),r=M(),f=B("p"),a=ee(i),o=M(),u=B("div"),T(c.$$.fragment),_=M(),d=B("div"),d.textContent=p,y=M(),T(v.$$.fragment),X=M(),z=B("div"),z.textContent=w,k=M(),T(W.$$.fragment),Q=M(),G=B("div"),G.textContent=Y,N=M(),T(D.$$.fragment),ue=M(),ne=B("h3"),fe=ee(he),ce=M(),ae=B("p"),me=ee(E),_e=M(),de=B("div"),T(re.$$.fragment),Oe=M(),T(pe.$$.fragment),this.h()},l(C){e=j(C,"DIV",{class:!0});var Z=R(e);t=j(Z,"H3",{});var S=R(t);l=te(S,s),S.forEach(g),r=V(Z),f=j(Z,"P",{});var oe=R(f);a=te(oe,i),oe.forEach(g),o=V(Z),u=j(Z,"DIV",{class:!0});var m=R(u);H(c.$$.fragment,m),_=V(m),d=j(m,"DIV",{class:!0,"data-svelte-h":!0}),nt(d)!=="svelte-qa0xbj"&&(d.textContent=p),y=V(m),H(v.$$.fragment,m),X=V(m),z=j(m,"DIV",{class:!0,"data-svelte-h":!0}),nt(z)!=="svelte-qa0xbj"&&(z.textContent=w),k=V(m),H(W.$$.fragment,m),Q=V(m),G=j(m,"DIV",{class:!0,"data-svelte-h":!0}),nt(G)!=="svelte-qa0xbj"&&(G.textContent=Y),N=V(m),H(D.$$.fragment,m),m.forEach(g),ue=V(Z),ne=j(Z,"H3",{class:!0});var A=R(ne);fe=te(A,he),A.forEach(g),ce=V(Z),ae=j(Z,"P",{});var ve=R(ae);me=te(ve,E),ve.forEach(g),_e=V(Z),de=j(Z,"DIV",{class:!0});var se=R(de);H(re.$$.fragment,se),Oe=V(se),H(pe.$$.fragment,se),se.forEach(g),Z.forEach(g),this.h()},h(){x(d,"class","hidden lg:block"),x(z,"class","hidden lg:block"),x(G,"class","hidden lg:block"),x(u,"class","flex flex-col items-center gap-2 lg:flex-row"),x(ne,"class","mt-4"),x(de,"class","flex w-48 gap-2"),x(e,"class","my-2 flex flex-col gap-4")},m(C,Z){q(C,e,Z),b(e,t),b(t,l),b(e,r),b(e,f),b(f,a),b(e,o),b(e,u),P(c,u,null),b(u,_),b(u,d),b(u,y),P(v,u,null),b(u,X),b(u,z),b(u,k),P(W,u,null),b(u,Q),b(u,G),b(u,N),P(D,u,null),b(e,ue),b(e,ne),b(ne,fe),b(e,ce),b(e,ae),b(ae,me),b(e,_e),b(e,de),P(re,de,null),b(de,Oe),P(pe,de,null),Se=!0},p(C,[Z]){const S={};Z&1&&(S.error=C[7](C[0])),!h&&Z&1&&(h=!0,S.value=C[0],F(()=>h=!1)),c.$set(S);const oe={};Z&2&&(oe.error=C[7](C[1])),!O&&Z&2&&(O=!0,oe.value=C[1],F(()=>O=!1)),v.$set(oe);const m={};Z&4&&(m.error=C[7](C[2])),!le&&Z&4&&(le=!0,m.value=C[2],F(()=>le=!1)),W.$set(m);const A={};Z&8&&(A.error=C[7](C[3])),!ie&&Z&8&&(ie=!0,A.value=C[3],F(()=>ie=!1)),D.$set(A);const ve={};Z&16&&(ve.error=C[7](C[4])),!Ie&&Z&32&&(Ie=!0,ve.value=C[5],F(()=>Ie=!1)),re.$set(ve);const se={};Z&16384&&(se.$$scope={dirty:Z,ctx:C}),!Ee&&Z&64&&(Ee=!0,se.value=C[6],F(()=>Ee=!1)),pe.$set(se)},i(C){Se||($(c.$$.fragment,C),$(v.$$.fragment,C),$(W.$$.fragment,C),$(D.$$.fragment,C),$(re.$$.fragment,C),$(pe.$$.fragment,C),Se=!0)},o(C){I(c.$$.fragment,C),I(v.$$.fragment,C),I(W.$$.fragment,C),I(D.$$.fragment,C),I(re.$$.fragment,C),I(pe.$$.fragment,C),Se=!1},d(C){C&&g(e),L(c),L(v),L(W),L(D),L(re),L(pe)}}}function Mn(n,e,t){let{days:s=""}=e,{hour:l=""}=e,{minute:r=""}=e,{second:f=""}=e,{phase:i=""}=e,a="",o="min";const u=v=>v?isNaN(parseInt(v)):!1;function c(v){s=v,t(0,s)}function h(v){l=v,t(1,l)}function _(v){r=v,t(2,r)}function d(v){f=v,t(3,f)}function p(v){a=v,t(5,a)}function y(v){o=v,t(6,o)}return n.$$set=v=>{"days"in v&&t(0,s=v.days),"hour"in v&&t(1,l=v.hour),"minute"in v&&t(2,r=v.minute),"second"in v&&t(3,f=v.second),"phase"in v&&t(4,i=v.phase)},n.$$.update=()=>{n.$$.dirty&96&&a&&(o==="days"?t(4,i=(parseInt(a)*60*60*24).toString()+"s"):o==="hrs"?t(4,i=(parseInt(a)*60*60).toString()+"s"):o==="min"?t(4,i=(parseInt(a)*60).toString()+"s"):o==="sec"&&t(4,i=parseInt(a).toString()+"s"))},[s,l,r,f,i,a,o,u,c,h,_,d,p,y]}class Vn extends we{constructor(e){super(),ke(this,e,Mn,Dn,$e,{days:0,hour:1,minute:2,second:3,phase:4})}}const Tn=n=>({preset:n[0]&1024}),It=n=>({preset:n[10]});function Ot(n){let e,t;return e=new Ge({props:{label:"Existing",id:"existing-tab",panelId:"existing-panel",onClick:n[12]}}),{c(){T(e.$$.fragment)},l(s){H(e.$$.fragment,s)},m(s,l){P(e,s,l),t=!0},p(s,l){const r={};l[0]&1024&&(r.onClick=s[12]),e.$set(r)},i(s){t||($(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){L(e,s)}}}function Hn(n){let e,t,s,l,r,f,i,a,o,u=n[9]&&Ot(n);return t=new Ge({props:{label:"Interval",id:"interval-tab",panelId:"interval-panel",onClick:n[13]}}),l=new Ge({props:{label:"Days of the Week",id:"daily-tab",panelId:"daily-panel",onClick:n[14]}}),f=new Ge({props:{label:"Days of the Month",id:"monthly-tab",panelId:"monthly-panel",onClick:n[15]}}),a=new Ge({props:{label:"String",id:"string-tab",panelId:"string-panel",onClick:n[16]}}),{c(){u&&u.c(),e=M(),T(t.$$.fragment),s=M(),T(l.$$.fragment),r=M(),T(f.$$.fragment),i=M(),T(a.$$.fragment)},l(c){u&&u.l(c),e=V(c),H(t.$$.fragment,c),s=V(c),H(l.$$.fragment,c),r=V(c),H(f.$$.fragment,c),i=V(c),H(a.$$.fragment,c)},m(c,h){u&&u.m(c,h),q(c,e,h),P(t,c,h),q(c,s,h),P(l,c,h),q(c,r,h),P(f,c,h),q(c,i,h),P(a,c,h),o=!0},p(c,h){c[9]?u?(u.p(c,h),h[0]&512&&$(u,1)):(u=Ot(c),u.c(),$(u,1),u.m(e.parentNode,e)):u&&(We(),I(u,1,1,()=>{u=null}),De());const _={};h[0]&1024&&(_.onClick=c[13]),t.$set(_);const d={};h[0]&1024&&(d.onClick=c[14]),l.$set(d);const p={};h[0]&1024&&(p.onClick=c[15]),f.$set(p);const y={};h[0]&1024&&(y.onClick=c[16]),a.$set(y)},i(c){o||($(u),$(t.$$.fragment,c),$(l.$$.fragment,c),$(f.$$.fragment,c),$(a.$$.fragment,c),o=!0)},o(c){I(u),I(t.$$.fragment,c),I(l.$$.fragment,c),I(f.$$.fragment,c),I(a.$$.fragment,c),o=!1},d(c){c&&(g(e),g(s),g(r),g(i)),u&&u.d(c),L(t,c),L(l,c),L(f,c),L(a,c)}}}function Et(n){let e,t;return e=new Xe({props:{id:"existing-panel",tabId:"existing-tab",class:"w-full",$$slots:{default:[Pn]},$$scope:{ctx:n}}}),{c(){T(e.$$.fragment)},l(s){H(e.$$.fragment,s)},m(s,l){P(e,s,l),t=!0},p(s,l){const r={};l[0]&1073742336&&(r.$$scope={dirty:l,ctx:s}),e.$set(r)},i(s){t||($(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){L(e,s)}}}function Pn(n){var s,l,r,f,i,a,o,u;let e,t;return e=new Ut({props:{calendar:(r=(l=(s=n[9])==null?void 0:s.spec)==null?void 0:l.structuredCalendar)==null?void 0:r[0],interval:(a=(i=(f=n[9])==null?void 0:f.spec)==null?void 0:i.interval)==null?void 0:a[0],timezoneName:(u=(o=n[9])==null?void 0:o.spec)==null?void 0:u.timezoneName}}),{c(){T(e.$$.fragment)},l(c){H(e.$$.fragment,c)},m(c,h){P(e,c,h),t=!0},p(c,h){var d,p,y,v,O,X,z,w;const _={};h[0]&512&&(_.calendar=(y=(p=(d=c[9])==null?void 0:d.spec)==null?void 0:p.structuredCalendar)==null?void 0:y[0]),h[0]&512&&(_.interval=(X=(O=(v=c[9])==null?void 0:v.spec)==null?void 0:O.interval)==null?void 0:X[0]),h[0]&512&&(_.timezoneName=(w=(z=c[9])==null?void 0:z.spec)==null?void 0:w.timezoneName),e.$set(_)},i(c){t||($(e.$$.fragment,c),t=!0)},o(c){I(e.$$.fragment,c),t=!1},d(c){L(e,c)}}}function Ln(n){let e,t,s,l,r,f,i;function a(d){n[17](d)}function o(d){n[18](d)}function u(d){n[19](d)}function c(d){n[20](d)}function h(d){n[21](d)}let _={};return n[3]!==void 0&&(_.days=n[3]),n[4]!==void 0&&(_.hour=n[4]),n[5]!==void 0&&(_.minute=n[5]),n[6]!==void 0&&(_.second=n[6]),n[7]!==void 0&&(_.phase=n[7]),e=new Vn({props:_}),U.push(()=>K(e,"days",a)),U.push(()=>K(e,"hour",o)),U.push(()=>K(e,"minute",u)),U.push(()=>K(e,"second",c)),U.push(()=>K(e,"phase",h)),{c(){T(e.$$.fragment)},l(d){H(e.$$.fragment,d)},m(d,p){P(e,d,p),i=!0},p(d,p){const y={};!t&&p[0]&8&&(t=!0,y.days=d[3],F(()=>t=!1)),!s&&p[0]&16&&(s=!0,y.hour=d[4],F(()=>s=!1)),!l&&p[0]&32&&(l=!0,y.minute=d[5],F(()=>l=!1)),!r&&p[0]&64&&(r=!0,y.second=d[6],F(()=>r=!1)),!f&&p[0]&128&&(f=!0,y.phase=d[7],F(()=>f=!1)),e.$set(y)},i(d){i||($(e.$$.fragment,d),i=!0)},o(d){I(e.$$.fragment,d),i=!1},d(d){L(e,d)}}}function Nn(n){let e,t,s,l,r;function f(u){n[22](u)}function i(u){n[23](u)}function a(u){n[24](u)}let o={};return n[0]!==void 0&&(o.daysOfWeek=n[0]),n[4]!==void 0&&(o.hour=n[4]),n[5]!==void 0&&(o.minute=n[5]),e=new In({props:o}),U.push(()=>K(e,"daysOfWeek",f)),U.push(()=>K(e,"hour",i)),U.push(()=>K(e,"minute",a)),{c(){T(e.$$.fragment)},l(u){H(e.$$.fragment,u)},m(u,c){P(e,u,c),r=!0},p(u,c){const h={};!t&&c[0]&1&&(t=!0,h.daysOfWeek=u[0],F(()=>t=!1)),!s&&c[0]&16&&(s=!0,h.hour=u[4],F(()=>s=!1)),!l&&c[0]&32&&(l=!0,h.minute=u[5],F(()=>l=!1)),e.$set(h)},i(u){r||($(e.$$.fragment,u),r=!0)},o(u){I(e.$$.fragment,u),r=!1},d(u){L(e,u)}}}function An(n){let e,t,s,l,r,f;function i(h){n[25](h)}function a(h){n[26](h)}function o(h){n[27](h)}function u(h){n[28](h)}let c={};return n[1]!==void 0&&(c.daysOfMonth=n[1]),n[2]!==void 0&&(c.months=n[2]),n[4]!==void 0&&(c.hour=n[4]),n[5]!==void 0&&(c.minute=n[5]),e=new pn({props:c}),U.push(()=>K(e,"daysOfMonth",i)),U.push(()=>K(e,"months",a)),U.push(()=>K(e,"hour",o)),U.push(()=>K(e,"minute",u)),{c(){T(e.$$.fragment)},l(h){H(e.$$.fragment,h)},m(h,_){P(e,h,_),f=!0},p(h,_){const d={};!t&&_[0]&2&&(t=!0,d.daysOfMonth=h[1],F(()=>t=!1)),!s&&_[0]&4&&(s=!0,d.months=h[2],F(()=>s=!1)),!l&&_[0]&16&&(l=!0,d.hour=h[4],F(()=>l=!1)),!r&&_[0]&32&&(r=!0,d.minute=h[5],F(()=>r=!1)),e.$set(d)},i(h){f||($(e.$$.fragment,h),f=!0)},o(h){I(e.$$.fragment,h),f=!1},d(h){L(e,h)}}}function qn(n){let e,t,s=J("schedules.cron-view-title")+"",l,r,f,i=J("schedules.cron-view-description")+"",a,o,u,c,h;function _(p){n[29](p)}let d={label:J("schedules.cron-view-title"),labelHidden:!0,id:"cronString",placeholder:"* * * * *"};return n[8]!==void 0&&(d.value=n[8]),u=new ye({props:d}),U.push(()=>K(u,"value",_)),{c(){e=B("div"),t=B("h3"),l=ee(s),r=M(),f=B("p"),a=ee(i),o=M(),T(u.$$.fragment),this.h()},l(p){e=j(p,"DIV",{class:!0});var y=R(e);t=j(y,"H3",{});var v=R(t);l=te(v,s),v.forEach(g),r=V(y),f=j(y,"P",{});var O=R(f);a=te(O,i),O.forEach(g),o=V(y),H(u.$$.fragment,y),y.forEach(g),this.h()},h(){x(e,"class","my-2 flex w-full flex-col gap-4")},m(p,y){q(p,e,y),b(e,t),b(t,l),b(e,r),b(e,f),b(f,a),b(e,o),P(u,e,null),h=!0},p(p,y){const v={};!c&&y[0]&256&&(c=!0,v.value=p[8],F(()=>c=!1)),u.$set(v)},i(p){h||($(u.$$.fragment,p),h=!0)},o(p){I(u.$$.fragment,p),h=!1},d(p){p&&g(e),L(u)}}}function Bn(n){let e,t=J("schedules.schedule-spec")+"",s,l,r,f,i,a,o,u,c,h,_,d,p,y,v;r=new Bt({props:{label:"Schedule Tabs",class:"flex flex-wrap gap-6",$$slots:{default:[Hn]},$$scope:{ctx:n}}});let O=n[9]&&Et(n);o=new Xe({props:{id:"interval-panel",tabId:"interval-tab",$$slots:{default:[Ln]},$$scope:{ctx:n}}}),c=new Xe({props:{id:"daily-panel",tabId:"daily-tab",$$slots:{default:[Nn]},$$scope:{ctx:n}}}),_=new Xe({props:{id:"monthly-panel",tabId:"monthly-tab",$$slots:{default:[An]},$$scope:{ctx:n}}}),p=new Xe({props:{id:"string-panel",tabId:"string-tab",$$slots:{default:[qn]},$$scope:{ctx:n}}});const X=n[11].default,z=Ct(X,n,n[30],It);return{c(){e=B("h2"),s=ee(t),l=M(),T(r.$$.fragment),f=M(),i=B("div"),O&&O.c(),a=M(),T(o.$$.fragment),u=M(),T(c.$$.fragment),h=M(),T(_.$$.fragment),d=M(),T(p.$$.fragment),y=M(),z&&z.c(),this.h()},l(w){e=j(w,"H2",{class:!0});var k=R(e);s=te(k,t),k.forEach(g),l=V(w),H(r.$$.fragment,w),f=V(w),i=j(w,"DIV",{class:!0});var W=R(i);O&&O.l(W),a=V(W),H(o.$$.fragment,W),u=V(W),H(c.$$.fragment,W),h=V(W),H(_.$$.fragment,W),d=V(W),H(p.$$.fragment,W),W.forEach(g),y=V(w),z&&z.l(w),this.h()},h(){x(e,"class","mb-4"),x(i,"class","mt-4 flex w-full flex-wrap gap-6")},m(w,k){q(w,e,k),b(e,s),q(w,l,k),P(r,w,k),q(w,f,k),q(w,i,k),O&&O.m(i,null),b(i,a),P(o,i,null),b(i,u),P(c,i,null),b(i,h),P(_,i,null),b(i,d),P(p,i,null),q(w,y,k),z&&z.m(w,k),v=!0},p(w,k){const W={};k[0]&1073743360&&(W.$$scope={dirty:k,ctx:w}),r.$set(W),w[9]?O?(O.p(w,k),k[0]&512&&$(O,1)):(O=Et(w),O.c(),$(O,1),O.m(i,a)):O&&(We(),I(O,1,1,()=>{O=null}),De());const le={};k[0]&1073742072&&(le.$$scope={dirty:k,ctx:w}),o.$set(le);const Q={};k[0]&1073741873&&(Q.$$scope={dirty:k,ctx:w}),c.$set(Q);const G={};k[0]&1073741878&&(G.$$scope={dirty:k,ctx:w}),_.$set(G);const Y={};k[0]&1073742080&&(Y.$$scope={dirty:k,ctx:w}),p.$set(Y),z&&z.p&&(!v||k[0]&1073742848)&&Wt(z,X,w,w[30],v?Mt(X,w[30],k,Tn):Dt(w[30]),It)},i(w){v||($(r.$$.fragment,w),$(O),$(o.$$.fragment,w),$(c.$$.fragment,w),$(_.$$.fragment,w),$(p.$$.fragment,w),$(z,w),v=!0)},o(w){I(r.$$.fragment,w),I(O),I(o.$$.fragment,w),I(c.$$.fragment,w),I(_.$$.fragment,w),I(p.$$.fragment,w),I(z,w),v=!1},d(w){w&&(g(e),g(l),g(f),g(i),g(y)),L(r,w),O&&O.d(),L(o),L(c),L(_),L(p),z&&z.d(w)}}}function jn(n){let e,t;return e=new qt({props:{class:"mt-8 w-full",$$slots:{default:[Bn]},$$scope:{ctx:n}}}),{c(){T(e.$$.fragment)},l(s){H(e.$$.fragment,s)},m(s,l){P(e,s,l),t=!0},p(s,l){const r={};l[0]&1073743871&&(r.$$scope={dirty:l,ctx:s}),e.$set(r)},i(s){t||($(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){L(e,s)}}}function zn(n,e,t){let s;Ye(n,Vt,E=>t(31,s=E));let{$$slots:l={},$$scope:r}=e,i=s.params.schedule?"existing":"interval",{schedule:a=null}=e,{daysOfWeek:o}=e,{daysOfMonth:u}=e,{months:c}=e,{days:h}=e,{hour:_}=e,{minute:d}=e,{second:p}=e,{phase:y}=e,{cronString:v}=e;const O=()=>{t(0,o=[]),t(1,u=[]),t(2,c=[]),t(3,h=""),t(4,_=""),t(5,d=""),t(6,p=""),t(7,y=""),t(8,v="")},X=()=>t(10,i="existing"),z=()=>t(10,i="interval"),w=()=>t(10,i="week"),k=()=>t(10,i="month"),W=()=>t(10,i="string");function le(E){h=E,t(3,h)}function Q(E){_=E,t(4,_)}function G(E){d=E,t(5,d)}function Y(E){p=E,t(6,p)}function N(E){y=E,t(7,y)}function D(E){o=E,t(0,o)}function ie(E){_=E,t(4,_)}function ue(E){d=E,t(5,d)}function ne(E){u=E,t(1,u)}function he(E){c=E,t(2,c)}function fe(E){_=E,t(4,_)}function ce(E){d=E,t(5,d)}function ae(E){v=E,t(8,v)}return n.$$set=E=>{"schedule"in E&&t(9,a=E.schedule),"daysOfWeek"in E&&t(0,o=E.daysOfWeek),"daysOfMonth"in E&&t(1,u=E.daysOfMonth),"months"in E&&t(2,c=E.months),"days"in E&&t(3,h=E.days),"hour"in E&&t(4,_=E.hour),"minute"in E&&t(5,d=E.minute),"second"in E&&t(6,p=E.second),"phase"in E&&t(7,y=E.phase),"cronString"in E&&t(8,v=E.cronString),"$$scope"in E&&t(30,r=E.$$scope)},O(),[o,u,c,h,_,d,p,y,v,a,i,l,X,z,w,k,W,le,Q,G,Y,N,D,ie,ue,ne,he,fe,ce,ae,r]}class Qn extends we{constructor(e){super(),ke(this,e,zn,jn,$e,{schedule:9,daysOfWeek:0,daysOfMonth:1,months:2,days:3,hour:4,minute:5,second:6,phase:7,cronString:8},null,[-1,-1])}}function St(n){let e,t;return e=new Zt({props:{id:"schedule-input",maxHeight:320,content:it(n[5]),editable:!0,copyable:!1}}),e.$on("change",n[2]),{c(){T(e.$$.fragment)},l(s){H(e.$$.fragment,s)},m(s,l){P(e,s,l),t=!0},p(s,l){const r={};l&32&&(r.content=it(s[5])),e.$set(r)},i(s){t||($(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){L(e,s)}}}function Un(n){let e=n[5],t,s,l=St(n);return{c(){l.c(),t=ct()},l(r){l.l(r),t=ct()},m(r,f){l.m(r,f),q(r,t,f),s=!0},p(r,f){f&32&&$e(e,e=r[5])?(We(),I(l,1,1,ge),De(),l=St(r),l.c(),$(l,1),l.m(t.parentNode,t)):l.p(r,f)},i(r){s||($(l),s=!0)},o(r){I(l),s=!1},d(r){r&&g(t),l.d(r)}}}function Fn(n){let e,t,s,l,r,f,i=J("workflows.signal-payload-input-label-hint")+"",a,o;return t=new xt({props:{for:"schedule-input",label:J("workflows.input")}}),l=new en({props:{value:n[0],key:"payloads",onDecode:n[3],$$slots:{default:[Un,({decodedValue:u})=>({5:u}),({decodedValue:u})=>u?32:0]},$$scope:{ctx:n}}}),{c(){e=B("div"),T(t.$$.fragment),s=M(),T(l.$$.fragment),r=M(),f=B("span"),a=ee(i),this.h()},l(u){e=j(u,"DIV",{class:!0});var c=R(e);H(t.$$.fragment,c),s=V(c),H(l.$$.fragment,c),r=V(c),f=j(c,"SPAN",{class:!0});var h=R(f);a=te(h,i),h.forEach(g),c.forEach(g),this.h()},h(){x(f,"class","text-xs font-light italic"),Qe(f,"text-red-700",n[1]),x(e,"class","flex flex-col gap-4")},m(u,c){q(u,e,c),P(t,e,null),b(e,s),P(l,e,null),b(e,r),b(e,f),b(f,a),o=!0},p(u,[c]){const h={};c&1&&(h.value=u[0]),c&96&&(h.$$scope={dirty:c,ctx:u}),l.$set(h),(!o||c&2)&&Qe(f,"text-red-700",u[1])},i(u){o||($(t.$$.fragment,u),$(l.$$.fragment,u),o=!0)},o(u){I(t.$$.fragment,u),I(l.$$.fragment,u),o=!1},d(u){u&&g(e),L(t),L(l)}}}function Kn(n,e,t){let{input:s}=e,{payloads:l}=e,{error:r=!1}=e;const f=a=>{t(4,s=a.detail)},i=a=>{t(4,s=it(a))};return n.$$set=a=>{"input"in a&&t(4,s=a.input),"payloads"in a&&t(0,l=a.payloads),"error"in a&&t(1,r=a.error)},[l,r,f,i,s]}class Rn extends we{constructor(e){super(),ke(this,e,Kn,Fn,$e,{input:4,payloads:0,error:1})}}function Jn(n){var Z,S,oe;let e,t,s,l,r,f,i,a,o,u,c,h,_,d,p,y,v,O,X,z,w,k,W,le,Q,G,Y,N,D,ie,ue,ne,he,fe,ce,ae,E,me,_e;t=new Rt({props:{href:n[23],icon:"chevron-left",$$slots:{default:[Xn]},$$scope:{ctx:n}}}),a=new Kt({props:{intent:"error",title:"",hidden:!n[17],$$slots:{default:[Yn]},$$scope:{ctx:n}}});function de(m){n[29](m)}let re={id:"name",label:J("schedules.name-label"),error:n[14].name,maxLength:232,disabled:!!n[19]};n[1]!==void 0&&(re.value=n[1]),c=new ye({props:re}),U.push(()=>K(c,"value",de)),c.$on("input",n[26]),c.$on("blur",n[27]);function Ie(m){n[30](m)}let Oe={id:"workflowType",label:J("schedules.workflow-type-label"),error:n[14].workflowType};n[2]!==void 0&&(Oe.value=n[2]),p=new ye({props:Oe}),U.push(()=>K(p,"value",Ie)),p.$on("input",n[26]),p.$on("blur",n[27]);function pe(m){n[31](m)}let Ee={id:"workflowId",label:J("schedules.workflow-id-label"),error:n[14].workflowId};n[3]!==void 0&&(Ee.value=n[3]),X=new ye({props:Ee}),U.push(()=>K(X,"value",pe)),X.$on("input",n[26]),X.$on("blur",n[27]);function Se(m){n[32](m)}let Me={id:"taskQueue",label:J("schedules.task-queue-label"),error:n[14].taskQueue};n[4]!==void 0&&(Me.value=n[4]),W=new ye({props:Me}),U.push(()=>K(W,"value",Se)),W.$on("input",n[26]),W.$on("blur",n[27]);function Ve(m){n[33](m)}let Te={payloads:(oe=(S=(Z=n[0])==null?void 0:Z.action)==null?void 0:S.startWorkflow)==null?void 0:oe.input,error:n[14].input};n[5]!==void 0&&(Te.input=n[5]),G=new Rn({props:Te}),U.push(()=>K(G,"input",Ve));function He(m){n[35](m)}function Fe(m){n[36](m)}function Pe(m){n[37](m)}function Ke(m){n[38](m)}function Le(m){n[39](m)}function Re(m){n[40](m)}function Ne(m){n[41](m)}function Je(m){n[42](m)}function Ae(m){n[43](m)}let C={schedule:n[0],$$slots:{default:[el,({preset:m})=>({58:m}),({preset:m})=>[0,m?134217728:0]]},$$scope:{ctx:n}};return n[6]!==void 0&&(C.daysOfWeek=n[6]),n[7]!==void 0&&(C.daysOfMonth=n[7]),n[8]!==void 0&&(C.months=n[8]),n[9]!==void 0&&(C.days=n[9]),n[10]!==void 0&&(C.hour=n[10]),n[11]!==void 0&&(C.minute=n[11]),n[12]!==void 0&&(C.second=n[12]),n[15]!==void 0&&(C.phase=n[15]),n[13]!==void 0&&(C.cronString=n[13]),D=new Qn({props:C}),U.push(()=>K(D,"daysOfWeek",He)),U.push(()=>K(D,"daysOfMonth",Fe)),U.push(()=>K(D,"months",Pe)),U.push(()=>K(D,"days",Ke)),U.push(()=>K(D,"hour",Le)),U.push(()=>K(D,"minute",Re)),U.push(()=>K(D,"second",Ne)),U.push(()=>K(D,"phase",Je)),U.push(()=>K(D,"cronString",Ae)),{c(){e=B("header"),T(t.$$.fragment),s=M(),l=B("h1"),r=ee(n[20]),f=M(),i=B("form"),T(a.$$.fragment),o=M(),u=B("div"),T(c.$$.fragment),_=M(),d=B("div"),T(p.$$.fragment),v=M(),O=B("div"),T(X.$$.fragment),w=M(),k=B("div"),T(W.$$.fragment),Q=M(),T(G.$$.fragment),N=M(),T(D.$$.fragment),this.h()},l(m){e=j(m,"HEADER",{class:!0});var A=R(e);H(t.$$.fragment,A),s=V(A),l=j(A,"H1",{});var ve=R(l);r=te(ve,n[20]),ve.forEach(g),A.forEach(g),f=V(m),i=j(m,"FORM",{class:!0});var se=R(i);H(a.$$.fragment,se),o=V(se),u=j(se,"DIV",{class:!0});var qe=R(u);H(c.$$.fragment,qe),qe.forEach(g),_=V(se),d=j(se,"DIV",{class:!0});var Be=R(d);H(p.$$.fragment,Be),Be.forEach(g),v=V(se),O=j(se,"DIV",{class:!0});var je=R(O);H(X.$$.fragment,je),je.forEach(g),w=V(se),k=j(se,"DIV",{class:!0});var ze=R(k);H(W.$$.fragment,ze),ze.forEach(g),Q=V(se),H(G.$$.fragment,se),N=V(se),H(D.$$.fragment,se),se.forEach(g),this.h()},h(){x(e,"class","mb-12 flex flex-col gap-4"),x(u,"class","w-full"),x(d,"class","w-full"),x(O,"class","w-full"),x(k,"class","w-full"),x(i,"class","mb-4 flex w-full flex-col gap-4 md:w-2/3 xl:w-1/2")},m(m,A){q(m,e,A),P(t,e,null),b(e,s),b(e,l),b(l,r),q(m,f,A),q(m,i,A),P(a,i,null),b(i,o),b(i,u),P(c,u,null),b(i,_),b(i,d),P(p,d,null),b(i,v),b(i,O),P(X,O,null),b(i,w),b(i,k),P(W,k,null),b(i,Q),P(G,i,null),b(i,N),P(D,i,null),_e=!0},p(m,A){var ut,rt,at;const ve={};A[1]&268435456&&(ve.$$scope={dirty:A,ctx:m}),t.$set(ve);const se={};A[0]&131072&&(se.hidden=!m[17]),A[0]&131072|A[1]&268435456&&(se.$$scope={dirty:A,ctx:m}),a.$set(se);const qe={};A[0]&16384&&(qe.error=m[14].name),!h&&A[0]&2&&(h=!0,qe.value=m[1],F(()=>h=!1)),c.$set(qe);const Be={};A[0]&16384&&(Be.error=m[14].workflowType),!y&&A[0]&4&&(y=!0,Be.value=m[2],F(()=>y=!1)),p.$set(Be);const je={};A[0]&16384&&(je.error=m[14].workflowId),!z&&A[0]&8&&(z=!0,je.value=m[3],F(()=>z=!1)),X.$set(je);const ze={};A[0]&16384&&(ze.error=m[14].taskQueue),!le&&A[0]&16&&(le=!0,ze.value=m[4],F(()=>le=!1)),W.$set(ze);const Ze={};A[0]&1&&(Ze.payloads=(at=(rt=(ut=m[0])==null?void 0:ut.action)==null?void 0:rt.startWorkflow)==null?void 0:at.input),A[0]&16384&&(Ze.error=m[14].input),!Y&&A[0]&32&&(Y=!0,Ze.input=m[5],F(()=>Y=!1)),G.$set(Ze);const be={};A[0]&1&&(be.schedule=m[0]),A[0]&65537|A[1]&402653184&&(be.$$scope={dirty:A,ctx:m}),!ie&&A[0]&64&&(ie=!0,be.daysOfWeek=m[6],F(()=>ie=!1)),!ue&&A[0]&128&&(ue=!0,be.daysOfMonth=m[7],F(()=>ue=!1)),!ne&&A[0]&256&&(ne=!0,be.months=m[8],F(()=>ne=!1)),!he&&A[0]&512&&(he=!0,be.days=m[9],F(()=>he=!1)),!fe&&A[0]&1024&&(fe=!0,be.hour=m[10],F(()=>fe=!1)),!ce&&A[0]&2048&&(ce=!0,be.minute=m[11],F(()=>ce=!1)),!ae&&A[0]&4096&&(ae=!0,be.second=m[12],F(()=>ae=!1)),!E&&A[0]&32768&&(E=!0,be.phase=m[15],F(()=>E=!1)),!me&&A[0]&8192&&(me=!0,be.cronString=m[13],F(()=>me=!1)),D.$set(be)},i(m){_e||($(t.$$.fragment,m),$(a.$$.fragment,m),$(c.$$.fragment,m),$(p.$$.fragment,m),$(X.$$.fragment,m),$(W.$$.fragment,m),$(G.$$.fragment,m),$(D.$$.fragment,m),_e=!0)},o(m){I(t.$$.fragment,m),I(a.$$.fragment,m),I(c.$$.fragment,m),I(p.$$.fragment,m),I(X.$$.fragment,m),I(W.$$.fragment,m),I(G.$$.fragment,m),I(D.$$.fragment,m),_e=!1},d(m){m&&(g(e),g(f),g(i)),L(t),L(a),L(c),L(p),L(X),L(W),L(G),L(D)}}}function Gn(n){let e,t;return e=new Jt({props:{title:n[21]}}),{c(){T(e.$$.fragment)},l(s){H(e.$$.fragment,s)},m(s,l){P(e,s,l),t=!0},p:ge,i(s){t||($(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){L(e,s)}}}function Xn(n){let e;return{c(){e=ee(n[22])},l(t){e=te(t,n[22])},m(t,s){q(t,e,s)},p:ge,d(t){t&&g(e)}}}function Yn(n){let e;return{c(){e=ee(n[17])},l(t){e=te(t,n[17])},m(t,s){q(t,e,s)},p(t,s){s[0]&131072&&Nt(e,t[17])},d(t){t&&g(e)}}}function Zn(n){let e;return{c(){e=ee(n[24])},l(t){e=te(t,n[24])},m(t,s){q(t,e,s)},p:ge,d(t){t&&g(e)}}}function xn(n){let e=J("common.cancel")+"",t;return{c(){t=ee(e)},l(s){t=te(s,e)},m(s,l){q(s,t,l)},p:ge,d(s){s&&g(t)}}}function el(n){let e,t,s,l,r;function f(){return n[34](n[58])}return t=new Ue({props:{disabled:n[16](n[58])||!mt(),$$slots:{default:[Zn]},$$scope:{ctx:n}}}),t.$on("click",f),l=new Ue({props:{variant:"ghost",href:n[23],$$slots:{default:[xn]},$$scope:{ctx:n}}}),{c(){e=B("div"),T(t.$$.fragment),s=M(),T(l.$$.fragment),this.h()},l(i){e=j(i,"DIV",{class:!0});var a=R(e);H(t.$$.fragment,a),s=V(a),H(l.$$.fragment,a),a.forEach(g),this.h()},h(){x(e,"class","mt-8 flex items-center gap-2")},m(i,a){q(i,e,a),P(t,e,null),b(e,s),P(l,e,null),r=!0},p(i,a){n=i;const o={};a[0]&65536|a[1]&134217728&&(o.disabled=n[16](n[58])||!mt()),a[1]&268435456&&(o.$$scope={dirty:a,ctx:n}),t.$set(o);const u={};a[1]&268435456&&(u.$$scope={dirty:a,ctx:n}),l.$set(u)},i(i){r||($(t.$$.fragment,i),$(l.$$.fragment,i),r=!0)},o(i){I(t.$$.fragment,i),I(l.$$.fragment,i),r=!1},d(i){i&&g(e),L(t),L(l)}}}function tl(n){let e,t,s,l;const r=[Gn,Jn],f=[];function i(a,o){return a[18]?0:1}return t=i(n),s=f[t]=r[t](n),{c(){e=B("div"),s.c(),this.h()},l(a){e=j(a,"DIV",{class:!0});var o=R(e);s.l(o),o.forEach(g),this.h()},h(){x(e,"class","pb-20")},m(a,o){q(a,e,o),f[t].m(e,null),l=!0},p(a,o){let u=t;t=i(a),t===u?f[t].p(a,o):(We(),I(f[u],1,1,()=>{f[u]=null}),De(),s=f[t],s?s.p(a,o):(s=f[t]=r[t](a),s.c()),$(s,1),s.m(e,null))},i(a){l||($(s),l=!0)},o(a){I(s),l=!1},d(a){a&&g(e),f[t].d()}}}function nl(n,e,t){let s,l,r,f;Ye(n,lt,S=>t(17,l=S)),Ye(n,Vt,S=>t(55,r=S)),Ye(n,Gt,S=>t(18,f=S));var i,a,o,u,c,h,_,d,p,y,v;let{schedule:O=null}=e,{onConfirm:X}=e,z=r.params.namespace,w=r.params.schedule,k=J(O?"schedules.edit":"schedules.create"),W=J(O?"schedules.editing":"schedules.creating"),le=J(O?"schedules.back-to-schedule":"schedules.back-to-schedules"),Q=O?Xt({namespace:z,scheduleId:w}):Yt({namespace:z}),G=O?J("common.save"):J("schedules.create"),Y={},N=w??"",D=(u=(o=(a=(i=O==null?void 0:O.action)===null||i===void 0?void 0:i.startWorkflow)===null||a===void 0?void 0:a.workflowType)===null||o===void 0?void 0:o.name)!==null&&u!==void 0?u:"",ie=(_=(h=(c=O==null?void 0:O.action)===null||c===void 0?void 0:c.startWorkflow)===null||h===void 0?void 0:h.workflowId)!==null&&_!==void 0?_:"",ue=(v=(y=(p=(d=O==null?void 0:O.action)===null||d===void 0?void 0:d.startWorkflow)===null||p===void 0?void 0:p.taskQueue)===null||y===void 0?void 0:y.name)!==null&&v!==void 0?v:"",ne="",he=[],fe=[],ce=[],ae="",E="",me="",_e="",de="",re="";const Ie=(S,oe)=>{X(S,{name:N,workflowType:D,workflowId:ie,taskQueue:ue,input:ne,hour:E,minute:me,second:_e,phase:de,cronString:re,daysOfWeek:he,daysOfMonth:fe,days:ae,months:ce},oe)},Oe=S=>{const{id:oe}=S.target;t(14,Y[oe]=!1,Y),l&&dt(lt,l="",l)},pe=S=>{const{value:oe,id:m}=S.target;oe.trim()?t(14,Y[m]=!1,Y):t(14,Y[m]=!0,Y)},Ee=S=>{if(!ne)return t(14,Y.input=!1,Y),!0;try{return JSON.parse(S),t(14,Y.input=!1,Y),!0}catch{return t(14,Y.input=!0,Y),!1}};Lt(()=>dt(lt,l="",l));function Se(S){N=S,t(1,N)}function Me(S){D=S,t(2,D)}function Ve(S){ie=S,t(3,ie)}function Te(S){ue=S,t(4,ue)}function He(S){ne=S,t(5,ne)}const Fe=S=>Ie(S,O);function Pe(S){he=S,t(6,he)}function Ke(S){fe=S,t(7,fe)}function Le(S){ce=S,t(8,ce)}function Re(S){ae=S,t(9,ae)}function Ne(S){E=S,t(10,E)}function Je(S){me=S,t(11,me)}function Ae(S){_e=S,t(12,_e)}function C(S){de=S,t(15,de)}function Z(S){re=S,t(13,re)}return n.$$set=S=>{"schedule"in S&&t(0,O=S.schedule),"onConfirm"in S&&t(28,X=S.onConfirm)},n.$$.update=()=>{n.$$.dirty[0]&16382&&t(16,s=S=>!N||!D||!ie||!ue||!Ee(ne)?!0:S==="interval"?!ae&&!E&&!me&&!_e:S==="week"?!he.length:S==="month"?!fe.length||!ce.length:S==="string"?!re:!1)},[O,N,D,ie,ue,ne,he,fe,ce,ae,E,me,_e,re,Y,de,s,l,f,w,k,W,le,Q,G,Ie,Oe,pe,X,Se,Me,Ve,Te,He,Fe,Pe,Ke,Le,Re,Ne,Je,Ae,C,Z]}class El extends we{constructor(e){super(),ke(this,e,nl,tl,$e,{schedule:0,onConfirm:28},null,[-1,-1])}}export{El as S}; diff --git a/ui/assets/local/_app/immutable/chunks/schedule-frequency.-jEG8p5N.js b/ui/assets/local/_app/immutable/chunks/schedule-frequency.MEesLAX9.js similarity index 89% rename from ui/assets/local/_app/immutable/chunks/schedule-frequency.-jEG8p5N.js rename to ui/assets/local/_app/immutable/chunks/schedule-frequency.MEesLAX9.js index 270accb35a..761738fc5a 100644 --- a/ui/assets/local/_app/immutable/chunks/schedule-frequency.-jEG8p5N.js +++ b/ui/assets/local/_app/immutable/chunks/schedule-frequency.MEesLAX9.js @@ -1 +1 @@ -import{s as I,x as _,i as T,v as j,f,z as h,A as k,h as g,b as q,j as v,k as b,d as E,m as z,n as y}from"./scheduler.1T9hOnFr.js";import{S as H,i as L,g as M,b as u,e as A,t as d,c as B,a as D,m as P,d as U}from"./index.cVovwi_s.js";import{C as V}from"./code-block.S0zkvBiB.js";import{t as N}from"./translate.HrioCK44.js";import{s as C}from"./parse-with-big-int.e3oI4SEy.js";function S(s){let n,a,r=N("common.timezone",{timezone:s[2]})+"",t,e,o,l;return e=new V({props:{copyable:!0,inline:s[3],testId:"schedule-calendar",language:"json",content:C(s[0]||s[1])}}),{c(){n=g("div"),a=g("p"),t=q(),B(e.$$.fragment),this.h()},l(i){n=v(i,"DIV",{class:!0});var c=b(n);a=v(c,"P",{});var m=b(a);m.forEach(f),t=E(c),D(e.$$.fragment,c),c.forEach(f),this.h()},h(){z(n,"class",o="flex flex-col "+s[4].class)},m(i,c){T(i,n,c),y(n,a),a.innerHTML=r,y(n,t),P(e,n,null),l=!0},p(i,c){(!l||c&4)&&r!==(r=N("common.timezone",{timezone:i[2]})+"")&&(a.innerHTML=r);const m={};c&8&&(m.inline=i[3]),c&3&&(m.content=C(i[0]||i[1])),e.$set(m),(!l||c&16&&o!==(o="flex flex-col "+i[4].class))&&z(n,"class",o)},i(i){l||(d(e.$$.fragment,i),l=!0)},o(i){u(e.$$.fragment,i),l=!1},d(i){i&&f(n),U(e)}}}function W(s){let n=[s[0],s[1]],a,r,t=S(s);return{c(){t.c(),a=_()},l(e){t.l(e),a=_()},m(e,o){t.m(e,o),T(e,a,o),r=!0},p(e,[o]){o&3&&I(n,n=[e[0],e[1]])?(M(),u(t,1,1,j),A(),t=S(e),t.c(),d(t,1),t.m(a.parentNode,a)):t.p(e,o)},i(e){r||(d(t),r=!0)},o(e){u(t),r=!1},d(e){e&&f(a),t.d(e)}}}function p(s,n,a){let{calendar:r=void 0}=n,{interval:t=void 0}=n,{timezoneName:e="UTC"}=n,{inline:o=!1}=n;return s.$$set=l=>{a(4,n=h(h({},n),k(l))),"calendar"in l&&a(0,r=l.calendar),"interval"in l&&a(1,t=l.interval),"timezoneName"in l&&a(2,e=l.timezoneName),"inline"in l&&a(3,o=l.inline)},n=k(n),[r,t,e,o,n]}class Q extends H{constructor(n){super(),L(this,n,p,W,I,{calendar:0,interval:1,timezoneName:2,inline:3})}}export{Q as S}; +import{s as I,x as _,i as T,v as j,f,z as h,A as k,h as g,b as q,j as v,k as b,d as E,m as z,n as y}from"./scheduler.pPC3woXQ.js";import{S as H,i as L,g as M,b as u,e as A,t as d,c as B,a as D,m as P,d as U}from"./index.Z3Qqxacm.js";import{C as V}from"./code-block.Xpz7isZb.js";import{t as N}from"./translate.HrioCK44.js";import{s as C}from"./parse-with-big-int.e3oI4SEy.js";function S(s){let n,a,r=N("common.timezone",{timezone:s[2]})+"",t,e,o,l;return e=new V({props:{copyable:!0,inline:s[3],testId:"schedule-calendar",language:"json",content:C(s[0]||s[1])}}),{c(){n=g("div"),a=g("p"),t=q(),B(e.$$.fragment),this.h()},l(i){n=v(i,"DIV",{class:!0});var c=b(n);a=v(c,"P",{});var m=b(a);m.forEach(f),t=E(c),D(e.$$.fragment,c),c.forEach(f),this.h()},h(){z(n,"class",o="flex flex-col "+s[4].class)},m(i,c){T(i,n,c),y(n,a),a.innerHTML=r,y(n,t),P(e,n,null),l=!0},p(i,c){(!l||c&4)&&r!==(r=N("common.timezone",{timezone:i[2]})+"")&&(a.innerHTML=r);const m={};c&8&&(m.inline=i[3]),c&3&&(m.content=C(i[0]||i[1])),e.$set(m),(!l||c&16&&o!==(o="flex flex-col "+i[4].class))&&z(n,"class",o)},i(i){l||(d(e.$$.fragment,i),l=!0)},o(i){u(e.$$.fragment,i),l=!1},d(i){i&&f(n),U(e)}}}function W(s){let n=[s[0],s[1]],a,r,t=S(s);return{c(){t.c(),a=_()},l(e){t.l(e),a=_()},m(e,o){t.m(e,o),T(e,a,o),r=!0},p(e,[o]){o&3&&I(n,n=[e[0],e[1]])?(M(),u(t,1,1,j),A(),t=S(e),t.c(),d(t,1),t.m(a.parentNode,a)):t.p(e,o)},i(e){r||(d(t),r=!0)},o(e){u(t),r=!1},d(e){e&&f(a),t.d(e)}}}function p(s,n,a){let{calendar:r=void 0}=n,{interval:t=void 0}=n,{timezoneName:e="UTC"}=n,{inline:o=!1}=n;return s.$$set=l=>{a(4,n=h(h({},n),k(l))),"calendar"in l&&a(0,r=l.calendar),"interval"in l&&a(1,t=l.interval),"timezoneName"in l&&a(2,e=l.timezoneName),"inline"in l&&a(3,o=l.inline)},n=k(n),[r,t,e,o,n]}class Q extends H{constructor(n){super(),L(this,n,p,W,I,{calendar:0,interval:1,timezoneName:2,inline:3})}}export{Q as S}; diff --git a/ui/assets/local/_app/immutable/chunks/scheduler.1T9hOnFr.js b/ui/assets/local/_app/immutable/chunks/scheduler.pPC3woXQ.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/scheduler.1T9hOnFr.js rename to ui/assets/local/_app/immutable/chunks/scheduler.pPC3woXQ.js index d0e42cad25..9615f521c3 100644 --- a/ui/assets/local/_app/immutable/chunks/scheduler.1T9hOnFr.js +++ b/ui/assets/local/_app/immutable/chunks/scheduler.pPC3woXQ.js @@ -1 +1 @@ -function j(){}const ut=t=>t;function H(t,e){for(const n in e)t[n]=e[n];return t}function ft(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}function L(t){return t()}function _t(){return Object.create(null)}function W(t){t.forEach(L)}function B(t){return typeof t=="function"}function dt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let p;function ht(t,e){return p||(p=document.createElement("a")),p.href=e,t===p.href}function pt(t){return Object.keys(t).length===0}function S(t,...e){if(t==null){for(const i of e)i(void 0);return j}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function mt(t){let e;return S(t,n=>e=n)(),e}function yt(t,e,n){t.$$.on_destroy.push(S(e,n))}function bt(t,e,n,i){if(t){const s=D(t,e,n,i);return t[0](s)}}function D(t,e,n,i){return t[1]&&i?H(n.ctx.slice(),t[1](i(e))):n.ctx}function gt(t,e,n,i){if(t[2]&&i){const s=t[2](i(n));if(e.dirty===void 0)return s;if(typeof s=="object"){const o=[],r=Math.max(e.dirty.length,s.length);for(let a=0;a32){const e=[],n=t.ctx.length/32;for(let i=0;iObject.prototype.hasOwnProperty.call(t,e);function Ot(t){return t&&B(t.destroy)?t.destroy:j}function Ct(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}const F=["",!0,1,"true","contenteditable"];let b=!1;function jt(){b=!0}function St(){b=!1}function I(t,e,n,i){for(;t>1);n(s)<=i?t=s+1:e=s}return t}function G(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const c=[];for(let l=0;l0&&e[n[s]].claim_order<=l?s+1:I(1,s,M=>e[n[M]].claim_order,l))-1;i[c]=n[u]+1;const A=u+1;n[A]=c,s=Math.max(A,s)}const o=[],r=[];let a=e.length-1;for(let c=n[s]+1;c!=0;c=i[c-1]){for(o.push(e[c-1]);a>=c;a--)r.push(e[a]);a--}for(;a>=0;a--)r.push(e[a]);o.reverse(),r.sort((c,l)=>c.claim_order-l.claim_order);for(let c=0,l=0;c=o[l].claim_order;)l++;const u=lt.removeEventListener(e,n,i)}function Ht(t){return function(e){return e.preventDefault(),t.call(this,e)}}function Lt(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function N(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const X=["width","height"];function Y(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const i in e)e[i]==null?t.removeAttribute(i):i==="style"?t.style.cssText=e[i]:i==="__value"?t.value=t[i]=e[i]:n[i]&&n[i].set&&X.indexOf(i)===-1?t[i]=e[i]:N(t,i,e[i])}function Wt(t,e){for(const n in e)N(t,n,e[n])}function Z(t,e){Object.keys(e).forEach(n=>{$(t,n,e[n])})}function $(t,e,n){e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:N(t,e,n)}function Bt(t){return/-/.test(t)?Z:Y}function Rt(t){return t.dataset.svelteH}function Ft(t){let e;return{p(...n){e=n,e.forEach(i=>t.push(i))},r(){e.forEach(n=>t.splice(t.indexOf(n),1))}}}function It(t){return t===""?null:+t}function Gt(t){return Array.from(t.childNodes)}function tt(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function P(t,e,n,i,s=!1){tt(t);const o=(()=>{for(let r=t.claim_info.last_index;r=0;r--){const a=t[r];if(e(a)){const c=n(a);return c===void 0?t.splice(r,1):t[r]=c,s?c===void 0&&t.claim_info.last_index--:t.claim_info.last_index=r,a}}return i()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function q(t,e,n,i){return P(t,s=>s.nodeName===e,s=>{const o=[];for(let r=0;rs.removeAttribute(r))},()=>i(e))}function Jt(t,e,n){return q(t,e,n,k)}function Kt(t,e,n){return q(t,e,n,V)}function et(t,e){return P(t,n=>n.nodeType===3,n=>{const i=""+e;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>E(e),!0)}function Qt(t){return et(t," ")}function nt(t,e){e=""+e,t.data!==e&&(t.data=e)}function it(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Ut(t,e,n){~F.indexOf(n)?it(t,e):nt(t,e)}function Vt(t,e){t.value=e??""}function Xt(t,e,n,i){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}function Yt(t,e,n){for(let i=0;i{r.source===i.contentWindow&&e()})):(i.src="about:blank",i.onload=()=>{o=O(i.contentWindow,"resize",e),e()}),T(t,i),()=>{(s||o&&i.contentWindow)&&o(),U(i)}}function ee(t,e,n){t.classList.toggle(e,!!n)}function rt(t,e,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:i})}function ne(t,e){const n=[];let i=0;for(const s of e.childNodes)if(s.nodeType===8){const o=s.textContent.trim();o===`HEAD_${t}_END`?(i-=1,n.push(s)):o===`HEAD_${t}_START`&&(i+=1,n.push(s))}else i>0&&n.push(s);return n}function ie(t,e){return new t(e)}let y;function g(t){y=t}function f(){if(!y)throw new Error("Function called outside component initialization");return y}function se(t){f().$$.on_mount.push(t)}function re(t){f().$$.after_update.push(t)}function oe(t){f().$$.on_destroy.push(t)}function ce(){const t=f();return(e,n,{cancelable:i=!1}={})=>{const s=t.$$.callbacks[e];if(s){const o=rt(e,n,{cancelable:i});return s.slice().forEach(r=>{r.call(t,o)}),!o.defaultPrevented}return!0}}function ae(t,e){return f().$$.context.set(t,e),e}function le(t){return f().$$.context.get(t)}function ue(t){return f().$$.context.has(t)}function fe(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(i=>i.call(this,e))}const h=[],C=[];let d=[];const w=[],z=Promise.resolve();let v=!1;function ot(){v||(v=!0,z.then(at))}function _e(){return ot(),z}function ct(t){d.push(t)}function de(t){w.push(t)}const x=new Set;let _=0;function at(){if(_!==0)return;const t=y;do{try{for(;_t.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),d=e}export{le as $,vt as A,fe as B,Xt as C,mt as D,kt as E,Y as F,Lt as G,W as H,ee as I,V as J,Kt as K,Et as L,C as M,ft as N,f as O,g as P,at as Q,ht as R,se as S,de as T,Ct as U,ut as V,Nt as W,Vt as X,Ot as Y,ct as Z,ue as _,bt as a,Ht as a0,B as a1,ae as a2,Ft as a3,te as a4,S as a5,Zt as a6,Yt as a7,$t as a8,oe as a9,qt as aa,$ as ab,_e as ac,re as ad,ie as ae,Bt as af,It as ag,Ut as ah,ne as ai,J as aj,Dt as ak,rt as al,_t as am,pt as an,he as ao,y as ap,L as aq,h as ar,ot as as,jt as at,St as au,Wt as av,zt as b,yt as c,Qt as d,gt as e,U as f,wt as g,k as h,Tt as i,Jt as j,Gt as k,et as l,N as m,Q as n,Rt as o,O as p,nt as q,ce as r,dt as s,E as t,xt as u,j as v,At as w,Mt as x,Pt as y,H as z}; +function j(){}const ut=t=>t;function H(t,e){for(const n in e)t[n]=e[n];return t}function ft(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}function L(t){return t()}function _t(){return Object.create(null)}function W(t){t.forEach(L)}function B(t){return typeof t=="function"}function dt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let p;function ht(t,e){return p||(p=document.createElement("a")),p.href=e,t===p.href}function pt(t){return Object.keys(t).length===0}function S(t,...e){if(t==null){for(const i of e)i(void 0);return j}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function mt(t){let e;return S(t,n=>e=n)(),e}function yt(t,e,n){t.$$.on_destroy.push(S(e,n))}function bt(t,e,n,i){if(t){const s=D(t,e,n,i);return t[0](s)}}function D(t,e,n,i){return t[1]&&i?H(n.ctx.slice(),t[1](i(e))):n.ctx}function gt(t,e,n,i){if(t[2]&&i){const s=t[2](i(n));if(e.dirty===void 0)return s;if(typeof s=="object"){const o=[],r=Math.max(e.dirty.length,s.length);for(let a=0;a32){const e=[],n=t.ctx.length/32;for(let i=0;iObject.prototype.hasOwnProperty.call(t,e);function Ot(t){return t&&B(t.destroy)?t.destroy:j}function Ct(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}const F=["",!0,1,"true","contenteditable"];let b=!1;function jt(){b=!0}function St(){b=!1}function I(t,e,n,i){for(;t>1);n(s)<=i?t=s+1:e=s}return t}function G(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const c=[];for(let l=0;l0&&e[n[s]].claim_order<=l?s+1:I(1,s,M=>e[n[M]].claim_order,l))-1;i[c]=n[u]+1;const A=u+1;n[A]=c,s=Math.max(A,s)}const o=[],r=[];let a=e.length-1;for(let c=n[s]+1;c!=0;c=i[c-1]){for(o.push(e[c-1]);a>=c;a--)r.push(e[a]);a--}for(;a>=0;a--)r.push(e[a]);o.reverse(),r.sort((c,l)=>c.claim_order-l.claim_order);for(let c=0,l=0;c=o[l].claim_order;)l++;const u=lt.removeEventListener(e,n,i)}function Ht(t){return function(e){return e.preventDefault(),t.call(this,e)}}function Lt(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function N(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const X=["width","height"];function Y(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const i in e)e[i]==null?t.removeAttribute(i):i==="style"?t.style.cssText=e[i]:i==="__value"?t.value=t[i]=e[i]:n[i]&&n[i].set&&X.indexOf(i)===-1?t[i]=e[i]:N(t,i,e[i])}function Wt(t,e){for(const n in e)N(t,n,e[n])}function Z(t,e){Object.keys(e).forEach(n=>{$(t,n,e[n])})}function $(t,e,n){e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:N(t,e,n)}function Bt(t){return/-/.test(t)?Z:Y}function Rt(t){return t.dataset.svelteH}function Ft(t){let e;return{p(...n){e=n,e.forEach(i=>t.push(i))},r(){e.forEach(n=>t.splice(t.indexOf(n),1))}}}function It(t){return t===""?null:+t}function Gt(t){return Array.from(t.childNodes)}function tt(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function P(t,e,n,i,s=!1){tt(t);const o=(()=>{for(let r=t.claim_info.last_index;r=0;r--){const a=t[r];if(e(a)){const c=n(a);return c===void 0?t.splice(r,1):t[r]=c,s?c===void 0&&t.claim_info.last_index--:t.claim_info.last_index=r,a}}return i()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function q(t,e,n,i){return P(t,s=>s.nodeName===e,s=>{const o=[];for(let r=0;rs.removeAttribute(r))},()=>i(e))}function Jt(t,e,n){return q(t,e,n,k)}function Kt(t,e,n){return q(t,e,n,V)}function et(t,e){return P(t,n=>n.nodeType===3,n=>{const i=""+e;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>E(e),!0)}function Qt(t){return et(t," ")}function nt(t,e){e=""+e,t.data!==e&&(t.data=e)}function it(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Ut(t,e,n){~F.indexOf(n)?it(t,e):nt(t,e)}function Vt(t,e){t.value=e??""}function Xt(t,e,n,i){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}function Yt(t,e,n){for(let i=0;i{r.source===i.contentWindow&&e()})):(i.src="about:blank",i.onload=()=>{o=O(i.contentWindow,"resize",e),e()}),T(t,i),()=>{(s||o&&i.contentWindow)&&o(),U(i)}}function ee(t,e,n){t.classList.toggle(e,!!n)}function rt(t,e,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:i})}function ne(t,e){const n=[];let i=0;for(const s of e.childNodes)if(s.nodeType===8){const o=s.textContent.trim();o===`HEAD_${t}_END`?(i-=1,n.push(s)):o===`HEAD_${t}_START`&&(i+=1,n.push(s))}else i>0&&n.push(s);return n}function ie(t,e){return new t(e)}let y;function g(t){y=t}function f(){if(!y)throw new Error("Function called outside component initialization");return y}function se(t){f().$$.on_mount.push(t)}function re(t){f().$$.after_update.push(t)}function oe(t){f().$$.on_destroy.push(t)}function ce(){const t=f();return(e,n,{cancelable:i=!1}={})=>{const s=t.$$.callbacks[e];if(s){const o=rt(e,n,{cancelable:i});return s.slice().forEach(r=>{r.call(t,o)}),!o.defaultPrevented}return!0}}function ae(t,e){return f().$$.context.set(t,e),e}function le(t){return f().$$.context.get(t)}function ue(t){return f().$$.context.has(t)}function fe(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(i=>i.call(this,e))}const h=[],C=[];let d=[];const w=[],z=Promise.resolve();let v=!1;function ot(){v||(v=!0,z.then(at))}function _e(){return ot(),z}function ct(t){d.push(t)}function de(t){w.push(t)}const x=new Set;let _=0;function at(){if(_!==0)return;const t=y;do{try{for(;_t.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),d=e}export{le as $,vt as A,fe as B,Xt as C,mt as D,kt as E,Y as F,Lt as G,W as H,ee as I,V as J,Kt as K,Et as L,C as M,ft as N,f as O,g as P,at as Q,ht as R,se as S,de as T,Ct as U,ut as V,Nt as W,Vt as X,Ot as Y,ct as Z,ue as _,bt as a,Ht as a0,B as a1,re as a2,ie as a3,_e as a4,ae as a5,Ft as a6,te as a7,S as a8,Zt as a9,Yt as aa,$t as ab,oe as ac,qt as ad,$ as ae,Bt as af,It as ag,Ut as ah,ne as ai,J as aj,Dt as ak,rt as al,_t as am,pt as an,he as ao,y as ap,L as aq,h as ar,ot as as,jt as at,St as au,Wt as av,zt as b,yt as c,Qt as d,gt as e,U as f,wt as g,k as h,Tt as i,Jt as j,Gt as k,et as l,N as m,Q as n,Rt as o,O as p,nt as q,ce as r,dt as s,E as t,xt as u,j as v,At as w,Mt as x,Pt as y,H as z}; diff --git a/ui/assets/local/_app/immutable/chunks/schedules.bfy7DgBd.js b/ui/assets/local/_app/immutable/chunks/schedules.UsC4ogVF.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/schedules.bfy7DgBd.js rename to ui/assets/local/_app/immutable/chunks/schedules.UsC4ogVF.js index 469aa1d181..e91d7921dc 100644 --- a/ui/assets/local/_app/immutable/chunks/schedules.bfy7DgBd.js +++ b/ui/assets/local/_app/immutable/chunks/schedules.UsC4ogVF.js @@ -1 +1 @@ -import{w as v,g as P}from"./entry.1BQh90wu.js";import{t as $}from"./translate.HrioCK44.js";import"./i18next.dQ3wfJvm.js";import{s as w}from"./parse-with-big-int.e3oI4SEy.js";import{r as h,a as p}from"./route-for-api.FVhOJtE0.js";import{v as S}from"./toaster.IevlZuOP.js";import{e as O}from"./encode-payload.KDTwh14f.js";import{l as E,m as b}from"./route-for.R0Qj5GxB.js";const R=async(e,o=fetch)=>(t=100,s="")=>{const n=h("schedules",{namespace:e});return p(n,{params:{maximumPageSize:String(t),nextPageToken:s},request:o}).then(({schedules:r,nextPageToken:a})=>({items:r,nextPageToken:a?String(a):""}))};async function L(e,o=fetch){const t=h("schedule",e);return p(t,{request:o})}async function G(e,o=fetch){const t=h("schedule",e);return p(t,{request:o,options:{method:"DELETE"}})}async function _({namespace:e,scheduleId:o,body:t}){let s="";const n=c=>{var u;return s=((u=c==null?void 0:c.body)==null?void 0:u.message)??`Error creating schedule: ${c.status}: ${c.statusText}`},r=h("schedule",{namespace:e,scheduleId:o}),{conflictToken:a}=await p(r,{options:{method:"POST",body:w({request_id:S(),...t})},onError:n});return{conflictToken:a,error:s}}async function x({namespace:e,scheduleId:o,body:t}){let s="";const n=a=>{var c;return s=((c=a==null?void 0:a.body)==null?void 0:c.message)??`Error editing schedule: ${a.status}: ${a.statusText}`},r=h("schedule.edit",{namespace:e,scheduleId:o});return await p(r,{options:{method:"POST",body:w({request_id:S(),...t})},onError:n}),{error:s}}async function H({namespace:e,scheduleId:o,reason:t}){const s={patch:{pause:t}},n=h("schedule.patch",{namespace:e,scheduleId:o});return await p(n,{options:{method:"POST",body:w({...s,request_id:S()})},onError:r=>console.error(r)})}async function J({namespace:e,scheduleId:o,reason:t}){const s={patch:{unpause:t}},n=h("schedule.patch",{namespace:e,scheduleId:o});return await p(n,{options:{method:"POST",body:w({...s,request_id:S()})}})}async function K({namespace:e,scheduleId:o,overlapPolicy:t}){const s={patch:{triggerImmediately:{overlapPolicy:t}}},n=h("schedule.patch",{namespace:e,scheduleId:o});return await p(n,{options:{method:"POST",body:w({...s,request_id:S()})}})}async function N({namespace:e,scheduleId:o,overlapPolicy:t,startTime:s,endTime:n}){const r={patch:{backfillRequest:[{overlapPolicy:t,startTime:s,endTime:n}]}},a=h("schedule.patch",{namespace:e,scheduleId:o});return await p(a,{options:{method:"POST",body:w({...r,request_id:S()})}})}const I=e=>e?parseInt(e):0,M=(e,o,t,s)=>`${I(e)*60*60*24+I(o)*60*60+I(t)*60+I(s)}s`,W=({months:e=[],daysOfMonth:o=[],daysOfWeek:t=[]})=>{var c,u;const s=e.sort((i,l)=>parseInt(i)-parseInt(l)).join(","),n=o.sort((i,l)=>i-l).join(","),a=(((u=(c=t==null?void 0:t[0])==null?void 0:c.split(","))==null?void 0:u.length)>1?t[0].split(","):t).sort((i,l)=>parseInt(i)-parseInt(l)).join(",");return{month:s,dayOfMonth:n,dayOfWeek:a}},q=(e,o,t)=>{const{hour:s,minute:n,second:r,phase:a,cronString:c}=o,{preset:u,months:i,days:l,daysOfMonth:m,daysOfWeek:f}=t;if(u==="string"){const d=`${c}#${c}`;e.schedule.spec.cronString=[d],e.schedule.spec.calendar=[],e.schedule.spec.interval=[]}else if(u==="interval"){const d=M(l,s,n,r);e.schedule.spec.interval=[{interval:d,phase:a||"0s"}],e.schedule.spec.cronString=[],e.schedule.spec.calendar=[]}else{const{month:d,dayOfMonth:k,dayOfWeek:T}=W({months:i,daysOfMonth:m,daysOfWeek:f});e.schedule.spec.calendar=[{year:"*",month:u==="month"?d:"",dayOfMonth:u==="month"?k:"",dayOfWeek:u==="week"?T:"",hour:s,minute:n,second:r}],e.schedule.spec.interval=[],e.schedule.spec.cronString=[]}},U=async({action:e,spec:o,presets:t})=>{const{namespace:s,name:n,workflowId:r,workflowType:a,taskQueue:c,input:u}=e;let i;if(u)try{i=await O(u)}catch(f){g.set(`${$("data-encoder.encode-error")}: ${f==null?void 0:f.message}`);return}const l={schedule_id:n.trim(),schedule:{spec:{calendar:[],interval:[],cronString:[]},action:{startWorkflow:{workflowId:r,workflowType:{name:a},taskQueue:{name:c},input:i?{payloads:i}:null}}}};q(l,o,t),y.set(!0);const{error:m}=await _({scheduleId:n,namespace:s,body:l});m?(g.set(m),y.set(!1)):setTimeout(()=>{g.set(""),y.set(!1),P(E({namespace:s}))},2e3)},V=async({action:e,spec:o,presets:t},s,n)=>{const{namespace:r,name:a,workflowId:c,workflowType:u,taskQueue:i,input:l}=e;let m;if(l)try{m=await O(l)}catch(T){g.set(`${$("data-encoder.encode-error")}: ${T==null?void 0:T.message}`);return}const{preset:f}=t,d={schedule_id:n,schedule:{...s,action:{startWorkflow:{...s.action.startWorkflow,workflowId:c,workflowType:{name:u},taskQueue:{name:i},input:m?{payloads:m}:null}}}};f==="existing"?d.schedule.spec=s.spec:(q(d,o,t),d.schedule.spec.structuredCalendar=[]),y.set(!0);const{error:k}=await x({namespace:r,scheduleId:n,body:d});k?(g.set(k),y.set(!1)):setTimeout(()=>{P(b({namespace:r,scheduleId:a})),g.set(""),y.set(!1)},2e3)},y=v(!1),g=v(""),X=v("0");export{U as a,X as b,R as c,G as d,g as e,L as f,N as g,y as l,H as p,V as s,K as t,J as u}; +import{w as v,g as P}from"./entry.6mxJxwSM.js";import{t as $}from"./translate.HrioCK44.js";import"./i18next.dQ3wfJvm.js";import{s as w}from"./parse-with-big-int.e3oI4SEy.js";import{r as h,a as p}from"./route-for-api.hWBHnwul.js";import{v as S}from"./toaster.pceGNaxq.js";import{e as O}from"./encode-payload.xDhwgfdU.js";import{l as E,m as b}from"./route-for.Gs4LHMCg.js";const R=async(e,o=fetch)=>(t=100,s="")=>{const n=h("schedules",{namespace:e});return p(n,{params:{maximumPageSize:String(t),nextPageToken:s},request:o}).then(({schedules:r,nextPageToken:a})=>({items:r,nextPageToken:a?String(a):""}))};async function L(e,o=fetch){const t=h("schedule",e);return p(t,{request:o})}async function G(e,o=fetch){const t=h("schedule",e);return p(t,{request:o,options:{method:"DELETE"}})}async function _({namespace:e,scheduleId:o,body:t}){let s="";const n=c=>{var u;return s=((u=c==null?void 0:c.body)==null?void 0:u.message)??`Error creating schedule: ${c.status}: ${c.statusText}`},r=h("schedule",{namespace:e,scheduleId:o}),{conflictToken:a}=await p(r,{options:{method:"POST",body:w({request_id:S(),...t})},onError:n});return{conflictToken:a,error:s}}async function x({namespace:e,scheduleId:o,body:t}){let s="";const n=a=>{var c;return s=((c=a==null?void 0:a.body)==null?void 0:c.message)??`Error editing schedule: ${a.status}: ${a.statusText}`},r=h("schedule.edit",{namespace:e,scheduleId:o});return await p(r,{options:{method:"POST",body:w({request_id:S(),...t})},onError:n}),{error:s}}async function H({namespace:e,scheduleId:o,reason:t}){const s={patch:{pause:t}},n=h("schedule.patch",{namespace:e,scheduleId:o});return await p(n,{options:{method:"POST",body:w({...s,request_id:S()})},onError:r=>console.error(r)})}async function J({namespace:e,scheduleId:o,reason:t}){const s={patch:{unpause:t}},n=h("schedule.patch",{namespace:e,scheduleId:o});return await p(n,{options:{method:"POST",body:w({...s,request_id:S()})}})}async function K({namespace:e,scheduleId:o,overlapPolicy:t}){const s={patch:{triggerImmediately:{overlapPolicy:t}}},n=h("schedule.patch",{namespace:e,scheduleId:o});return await p(n,{options:{method:"POST",body:w({...s,request_id:S()})}})}async function N({namespace:e,scheduleId:o,overlapPolicy:t,startTime:s,endTime:n}){const r={patch:{backfillRequest:[{overlapPolicy:t,startTime:s,endTime:n}]}},a=h("schedule.patch",{namespace:e,scheduleId:o});return await p(a,{options:{method:"POST",body:w({...r,request_id:S()})}})}const I=e=>e?parseInt(e):0,M=(e,o,t,s)=>`${I(e)*60*60*24+I(o)*60*60+I(t)*60+I(s)}s`,W=({months:e=[],daysOfMonth:o=[],daysOfWeek:t=[]})=>{var c,u;const s=e.sort((i,l)=>parseInt(i)-parseInt(l)).join(","),n=o.sort((i,l)=>i-l).join(","),a=(((u=(c=t==null?void 0:t[0])==null?void 0:c.split(","))==null?void 0:u.length)>1?t[0].split(","):t).sort((i,l)=>parseInt(i)-parseInt(l)).join(",");return{month:s,dayOfMonth:n,dayOfWeek:a}},q=(e,o,t)=>{const{hour:s,minute:n,second:r,phase:a,cronString:c}=o,{preset:u,months:i,days:l,daysOfMonth:m,daysOfWeek:f}=t;if(u==="string"){const d=`${c}#${c}`;e.schedule.spec.cronString=[d],e.schedule.spec.calendar=[],e.schedule.spec.interval=[]}else if(u==="interval"){const d=M(l,s,n,r);e.schedule.spec.interval=[{interval:d,phase:a||"0s"}],e.schedule.spec.cronString=[],e.schedule.spec.calendar=[]}else{const{month:d,dayOfMonth:k,dayOfWeek:T}=W({months:i,daysOfMonth:m,daysOfWeek:f});e.schedule.spec.calendar=[{year:"*",month:u==="month"?d:"",dayOfMonth:u==="month"?k:"",dayOfWeek:u==="week"?T:"",hour:s,minute:n,second:r}],e.schedule.spec.interval=[],e.schedule.spec.cronString=[]}},U=async({action:e,spec:o,presets:t})=>{const{namespace:s,name:n,workflowId:r,workflowType:a,taskQueue:c,input:u}=e;let i;if(u)try{i=await O(u)}catch(f){g.set(`${$("data-encoder.encode-error")}: ${f==null?void 0:f.message}`);return}const l={schedule_id:n.trim(),schedule:{spec:{calendar:[],interval:[],cronString:[]},action:{startWorkflow:{workflowId:r,workflowType:{name:a},taskQueue:{name:c},input:i?{payloads:i}:null}}}};q(l,o,t),y.set(!0);const{error:m}=await _({scheduleId:n,namespace:s,body:l});m?(g.set(m),y.set(!1)):setTimeout(()=>{g.set(""),y.set(!1),P(E({namespace:s}))},2e3)},V=async({action:e,spec:o,presets:t},s,n)=>{const{namespace:r,name:a,workflowId:c,workflowType:u,taskQueue:i,input:l}=e;let m;if(l)try{m=await O(l)}catch(T){g.set(`${$("data-encoder.encode-error")}: ${T==null?void 0:T.message}`);return}const{preset:f}=t,d={schedule_id:n,schedule:{...s,action:{startWorkflow:{...s.action.startWorkflow,workflowId:c,workflowType:{name:u},taskQueue:{name:i},input:m?{payloads:m}:null}}}};f==="existing"?d.schedule.spec=s.spec:(q(d,o,t),d.schedule.spec.structuredCalendar=[]),y.set(!0);const{error:k}=await x({namespace:r,scheduleId:n,body:d});k?(g.set(k),y.set(!1)):setTimeout(()=>{P(b({namespace:r,scheduleId:a})),g.set(""),y.set(!1)},2e3)},y=v(!1),g=v(""),X=v("0");export{U as a,X as b,R as c,G as d,g as e,L as f,N as g,y as l,H as p,V as s,K as t,J as u}; diff --git a/ui/assets/local/_app/immutable/chunks/scheme.Y49iubEl.js b/ui/assets/local/_app/immutable/chunks/scheme.Y49iubEl.js new file mode 100644 index 0000000000..d87b92350f --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/scheme.Y49iubEl.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={comments:{lineComment:";",blockComment:["#|","|#"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},o={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"]]}};export{e as conf,o as language}; diff --git a/ui/assets/local/_app/immutable/chunks/scss.ZohI8ULM.js b/ui/assets/local/_app/immutable/chunks/scss.ZohI8ULM.js new file mode 100644 index 0000000000..b11e072ac5 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/scss.ZohI8ULM.js @@ -0,0 +1,8 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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.*\\*\\/")}}},t={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"]]}};export{e as conf,t as language}; diff --git a/ui/assets/local/_app/immutable/chunks/search-attributes.DpHRWS9b.js b/ui/assets/local/_app/immutable/chunks/search-attributes.raipy_p6.js similarity index 84% rename from ui/assets/local/_app/immutable/chunks/search-attributes.DpHRWS9b.js rename to ui/assets/local/_app/immutable/chunks/search-attributes.raipy_p6.js index e1d4a1a179..a752ea12f8 100644 --- a/ui/assets/local/_app/immutable/chunks/search-attributes.DpHRWS9b.js +++ b/ui/assets/local/_app/immutable/chunks/search-attributes.raipy_p6.js @@ -1 +1 @@ -import{d as r,w as o}from"./entry.1BQh90wu.js";import{D as c}from"./scheduler.1T9hOnFr.js";const i=o({customAttributes:{},systemAttributes:{}}),b=r([i],([t])=>({...t.customAttributes,...t.systemAttributes}));r([i],([t])=>t.systemAttributes);const l=r([i],([t])=>t.customAttributes),p=t=>{const e=c(l);return t in e},f=(t,e)=>{var s;return e in(((s=t==null?void 0:t.searchAttributes)==null?void 0:s.indexedFields)??{})},m=r([b],([t])=>t?Object.entries(t).map(([e,s])=>({label:e,value:e,type:s})):[]),h=r([m],([t])=>{const e=["ExecutionStatus","WorkflowId","WorkflowType","RunId","StartTime","CloseTime"];return t.sort((s,u)=>s.labelu.label?1:0).sort((s,u)=>{const n=e.indexOf(s.value),a=e.indexOf(u.value);return n<0?1:a<0?-1:n-a})});export{i as a,h as b,l as c,p as i,b as s,f as w}; +import{d as r,w as o}from"./entry.6mxJxwSM.js";import{D as c}from"./scheduler.pPC3woXQ.js";const i=o({customAttributes:{},systemAttributes:{}}),b=r([i],([t])=>({...t.customAttributes,...t.systemAttributes}));r([i],([t])=>t.systemAttributes);const l=r([i],([t])=>t.customAttributes),p=t=>{const e=c(l);return t in e},f=(t,e)=>{var s;return e in(((s=t==null?void 0:t.searchAttributes)==null?void 0:s.indexedFields)??{})},m=r([b],([t])=>t?Object.entries(t).map(([e,s])=>({label:e,value:e,type:s})):[]),h=r([m],([t])=>{const e=["ExecutionStatus","WorkflowId","WorkflowType","RunId","StartTime","CloseTime"];return t.sort((s,u)=>s.labelu.label?1:0).sort((s,u)=>{const n=e.indexOf(s.value),a=e.indexOf(u.value);return n<0?1:a<0?-1:n-a})});export{i as a,h as b,l as c,p as i,b as s,f as w}; diff --git a/ui/assets/local/_app/immutable/chunks/settings-service.7FaOddFs.js b/ui/assets/local/_app/immutable/chunks/settings-service.SrudmkW4.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/settings-service.7FaOddFs.js rename to ui/assets/local/_app/immutable/chunks/settings-service.SrudmkW4.js index d040016807..472ac63c7d 100644 --- a/ui/assets/local/_app/immutable/chunks/settings-service.7FaOddFs.js +++ b/ui/assets/local/_app/immutable/chunks/settings-service.SrudmkW4.js @@ -1 +1 @@ -import{r as w,a as b,g as D}from"./route-for-api.FVhOJtE0.js";var t={VITE_TEMPORAL_PORT:"7233",VITE_API:"",VITE_MODE:"development",BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function E(){return t.VITE_TEMPORAL_UI_BUILD_TARGET??null}const f=/(tmprl\.cloud|tmprl-test\.cloud)$/,A=async(u=fetch)=>{var l,o,c,d,i;const m=w("settings"),r=await b(m,{request:u}),a=E();return{auth:{enabled:!!((l=r==null?void 0:r.Auth)!=null&&l.Enabled),options:(o=r==null?void 0:r.Auth)==null?void 0:o.Options},bannerText:r==null?void 0:r.BannerText,baseUrl:D(),codec:{endpoint:(c=r==null?void 0:r.Codec)==null?void 0:c.Endpoint,passAccessToken:(d=r==null?void 0:r.Codec)==null?void 0:d.PassAccessToken,includeCredentials:(i=r==null?void 0:r.Codec)==null?void 0:i.IncludeCredentials},defaultNamespace:(r==null?void 0:r.DefaultNamespace)||"default",disableWriteActions:!!(r!=null&&r.DisableWriteActions)||!1,workflowTerminateDisabled:!!(r!=null&&r.WorkflowTerminateDisabled),workflowCancelDisabled:!!(r!=null&&r.WorkflowCancelDisabled),workflowSignalDisabled:!!(r!=null&&r.WorkflowSignalDisabled),workflowResetDisabled:!!(r!=null&&r.WorkflowResetDisabled),batchActionsDisabled:!!(r!=null&&r.BatchActionsDisabled),startWorkflowDisabled:!!(r!=null&&r.StartWorkflowDisabled),hideWorkflowQueryErrors:!!(r!=null&&r.HideWorkflowQueryErrors),showTemporalSystemNamespace:r==null?void 0:r.ShowTemporalSystemNamespace,notifyOnNewVersion:r==null?void 0:r.NotifyOnNewVersion,feedbackURL:r==null?void 0:r.FeedbackURL,runtimeEnvironment:{get isCloud(){return a?a==="cloud":f.test(window.location.hostname)},get isLocal(){return a?a==="local":f.test(window.location.hostname)},envOverride:!!a},version:r==null?void 0:r.Version}};export{A as f}; +import{r as w,a as b,g as D}from"./route-for-api.hWBHnwul.js";var t={VITE_TEMPORAL_PORT:"7233",VITE_API:"",VITE_MODE:"development",BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function E(){return t.VITE_TEMPORAL_UI_BUILD_TARGET??null}const f=/(tmprl\.cloud|tmprl-test\.cloud)$/,A=async(u=fetch)=>{var l,o,c,d,i;const m=w("settings"),r=await b(m,{request:u}),a=E();return{auth:{enabled:!!((l=r==null?void 0:r.Auth)!=null&&l.Enabled),options:(o=r==null?void 0:r.Auth)==null?void 0:o.Options},bannerText:r==null?void 0:r.BannerText,baseUrl:D(),codec:{endpoint:(c=r==null?void 0:r.Codec)==null?void 0:c.Endpoint,passAccessToken:(d=r==null?void 0:r.Codec)==null?void 0:d.PassAccessToken,includeCredentials:(i=r==null?void 0:r.Codec)==null?void 0:i.IncludeCredentials},defaultNamespace:(r==null?void 0:r.DefaultNamespace)||"default",disableWriteActions:!!(r!=null&&r.DisableWriteActions)||!1,workflowTerminateDisabled:!!(r!=null&&r.WorkflowTerminateDisabled),workflowCancelDisabled:!!(r!=null&&r.WorkflowCancelDisabled),workflowSignalDisabled:!!(r!=null&&r.WorkflowSignalDisabled),workflowResetDisabled:!!(r!=null&&r.WorkflowResetDisabled),batchActionsDisabled:!!(r!=null&&r.BatchActionsDisabled),startWorkflowDisabled:!!(r!=null&&r.StartWorkflowDisabled),hideWorkflowQueryErrors:!!(r!=null&&r.HideWorkflowQueryErrors),showTemporalSystemNamespace:r==null?void 0:r.ShowTemporalSystemNamespace,notifyOnNewVersion:r==null?void 0:r.NotifyOnNewVersion,feedbackURL:r==null?void 0:r.FeedbackURL,runtimeEnvironment:{get isCloud(){return a?a==="cloud":f.test(window.location.hostname)},get isLocal(){return a?a==="local":f.test(window.location.hostname)},envOverride:!!a},version:r==null?void 0:r.Version}};export{A as f}; diff --git a/ui/assets/local/_app/immutable/chunks/settings.-qnGn1Lq.js b/ui/assets/local/_app/immutable/chunks/settings.-qnGn1Lq.js deleted file mode 100644 index 9a102b19e7..0000000000 --- a/ui/assets/local/_app/immutable/chunks/settings.-qnGn1Lq.js +++ /dev/null @@ -1 +0,0 @@ -import{d as t}from"./entry.1BQh90wu.js";import{p as a}from"./stores.6oDSidma.js";const r=t([a],([s])=>s.data.settings);export{r as s}; diff --git a/ui/assets/local/_app/immutable/chunks/settings.MUdBGWnD.js b/ui/assets/local/_app/immutable/chunks/settings.MUdBGWnD.js new file mode 100644 index 0000000000..5a93e204e1 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/settings.MUdBGWnD.js @@ -0,0 +1 @@ +import{d as t}from"./entry.6mxJxwSM.js";import{p as a}from"./stores.cW8AX6ex.js";const r=t([a],([s])=>s.data.settings);export{r as s}; diff --git a/ui/assets/local/_app/immutable/chunks/shell.snHqVOLE.js b/ui/assets/local/_app/immutable/chunks/shell.snHqVOLE.js new file mode 100644 index 0000000000..1d848e7231 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/shell.snHqVOLE.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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:"`"}]},r={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:/[=>{t(1,e=E(E({},e),O(a))),"value"in a&&t(0,c=a.value),"$$scope"in a&&t(2,l=a.$$scope)},e=O(e),[c,e,l,s]}class de extends R{constructor(e){super(),U(this,e,he,me,p,{value:0})}}function X(o,e,t){const s=o.slice();return s[13]=e[t],s}function Z(o){let e,t;return e=new de({props:{value:o[13]}}),{c(){W(e.$$.fragment)},l(s){Y(e.$$.fragment,s)},m(s,l){y(e,s,l),t=!0},p(s,l){const c={};l&128&&(c.value=s[13]),e.$set(c)},i(s){t||(v(e.$$.fragment,s),t=!0)},o(s){q(e.$$.fragment,s),t=!1},d(s){w(e,s)}}}function ge(o){let e,t,s=M(o[7]),l=[];for(let a=0;aq(l[a],1,1,()=>{l[a]=null});return{c(){for(let a=0;ao[12].call(l)),S(l,"remove",o[4]),S(l,"svelte-lrhs4a",!0)},m(i,r){L(i,e,r),y(t,e,null),z(e,s),z(e,l),_&&_.m(l,null),"value"in m&&(m.multiple?A:I)(l,m.value),l.autofocus&&l.focus(),I(l,o[0],!0),a=!0,n||(u=[D(l,"change",o[12]),D(l,"change",o[11])],n=!0)},p(i,[r]){const d={};r&64&&(d.required=i[6]),r&8&&(d.label=i[3]),r&4&&(d.for=i[2]),t.$set(d),g?g.p&&(!a||r&512)&&J(g,h,i,i[9],a?Q(h,i[9],r,null):K(i[9]),null):_&&_.p&&(!a||r&128)&&_.p(i,a?r:-1),j(l,m=fe(k,[(!a||r&2&&c!==(c=V("inline h-10 w-full rounded-lg border px-2 text-base",i[1])))&&{class:c},(!a||r&32)&&{name:i[5]},(!a||r&4)&&{id:i[2]},r&256&&i[8]])),r&294&&"value"in m&&(m.multiple?A:I)(l,m.value),r&1&&I(l,i[0]),S(l,"remove",i[4]),S(l,"svelte-lrhs4a",!0)},i(i){a||(v(t.$$.fragment,i),v(_,i),a=!0)},o(i){q(t.$$.fragment,i),q(_,i),a=!1},d(i){i&&b(e),w(t),_&&_.d(i),n=!1,se(u)}}}function ve(o,e,t){const s=["class","id","value","label","arrow","name","required","options"];let l=F(e,s),{$$slots:c={},$$scope:a}=e,{class:n=null}=e,{id:u}=e,{value:h}=e,{label:g=null}=e,{arrow:_=!1}=e,{name:k=u}=e,{required:m=!1}=e,{options:i=[]}=e;function r(f){oe.call(this,o,f)}function d(){h=ue(this),t(0,h)}return o.$$set=f=>{e=E(E({},e),O(f)),t(8,l=F(e,s)),"class"in f&&t(1,n=f.class),"id"in f&&t(2,u=f.id),"value"in f&&t(0,h=f.value),"label"in f&&t(3,g=f.label),"arrow"in f&&t(4,_=f.arrow),"name"in f&&t(5,k=f.name),"required"in f&&t(6,m=f.required),"options"in f&&t(7,i=f.options),"$$scope"in f&&t(9,a=f.$$scope)},[h,n,u,g,_,k,m,i,l,a,c,r,d]}class Ne extends R{constructor(e){super(),U(this,e,ve,be,p,{class:1,id:2,value:0,label:3,arrow:4,name:5,required:6,options:7})}}export{Ne as S,de as a}; +import{s as p,a as G,h as N,j as B,k as C,f as b,X as P,m as T,i as L,u as J,g as K,e as Q,z as E,A as O,t as x,l as $,q as ee,b as le,d as ae,F as j,Z as te,I as S,n as z,a9 as A,aa as I,p as D,H as se,E as F,x as H,y as ne,B as oe,ab as ue}from"./scheduler.pPC3woXQ.js";import{S as R,i as U,t as v,b as q,c as W,a as Y,m as y,d as w,g as ie,e as re}from"./index.Z3Qqxacm.js";import{e as M}from"./each.fm8Uvuh8.js";import{g as fe}from"./spread.rEx3vLA9.js";import{L as ce}from"./label.zXYhHpIA.js";import{t as V}from"./tw-merge.NbP7EmZe.js";function _e(o){let e;return{c(){e=x(o[0])},l(t){e=$(t,o[0])},m(t,s){L(t,e,s)},p(t,s){s&1&&ee(e,t[0])},d(t){t&&b(e)}}}function me(o){let e,t,s;const l=o[3].default,c=G(l,o,o[2],null),a=c||_e(o);return{c(){e=N("option"),a&&a.c(),this.h()},l(n){e=B(n,"OPTION",{class:!0});var u=C(e);a&&a.l(u),u.forEach(b),this.h()},h(){e.__value=o[0],P(e,e.__value),T(e,"class",t="border-0 "+o[1].class)},m(n,u){L(n,e,u),a&&a.m(e,null),s=!0},p(n,[u]){c?c.p&&(!s||u&4)&&J(c,l,n,n[2],s?Q(l,n[2],u,null):K(n[2]),null):a&&a.p&&(!s||u&1)&&a.p(n,s?u:-1),(!s||u&1)&&(e.__value=n[0],P(e,e.__value)),(!s||u&2&&t!==(t="border-0 "+n[1].class))&&T(e,"class",t)},i(n){s||(v(a,n),s=!0)},o(n){q(a,n),s=!1},d(n){n&&b(e),a&&a.d(n)}}}function he(o,e,t){let{$$slots:s={},$$scope:l}=e,{value:c=null}=e;return o.$$set=a=>{t(1,e=E(E({},e),O(a))),"value"in a&&t(0,c=a.value),"$$scope"in a&&t(2,l=a.$$scope)},e=O(e),[c,e,l,s]}class de extends R{constructor(e){super(),U(this,e,he,me,p,{value:0})}}function X(o,e,t){const s=o.slice();return s[13]=e[t],s}function Z(o){let e,t;return e=new de({props:{value:o[13]}}),{c(){W(e.$$.fragment)},l(s){Y(e.$$.fragment,s)},m(s,l){y(e,s,l),t=!0},p(s,l){const c={};l&128&&(c.value=s[13]),e.$set(c)},i(s){t||(v(e.$$.fragment,s),t=!0)},o(s){q(e.$$.fragment,s),t=!1},d(s){w(e,s)}}}function ge(o){let e,t,s=M(o[7]),l=[];for(let a=0;aq(l[a],1,1,()=>{l[a]=null});return{c(){for(let a=0;ao[12].call(l)),S(l,"remove",o[4]),S(l,"svelte-lrhs4a",!0)},m(i,r){L(i,e,r),y(t,e,null),z(e,s),z(e,l),_&&_.m(l,null),"value"in m&&(m.multiple?A:I)(l,m.value),l.autofocus&&l.focus(),I(l,o[0],!0),a=!0,n||(u=[D(l,"change",o[12]),D(l,"change",o[11])],n=!0)},p(i,[r]){const d={};r&64&&(d.required=i[6]),r&8&&(d.label=i[3]),r&4&&(d.for=i[2]),t.$set(d),g?g.p&&(!a||r&512)&&J(g,h,i,i[9],a?Q(h,i[9],r,null):K(i[9]),null):_&&_.p&&(!a||r&128)&&_.p(i,a?r:-1),j(l,m=fe(k,[(!a||r&2&&c!==(c=V("inline h-10 w-full rounded-lg border px-2 text-base",i[1])))&&{class:c},(!a||r&32)&&{name:i[5]},(!a||r&4)&&{id:i[2]},r&256&&i[8]])),r&294&&"value"in m&&(m.multiple?A:I)(l,m.value),r&1&&I(l,i[0]),S(l,"remove",i[4]),S(l,"svelte-lrhs4a",!0)},i(i){a||(v(t.$$.fragment,i),v(_,i),a=!0)},o(i){q(t.$$.fragment,i),q(_,i),a=!1},d(i){i&&b(e),w(t),_&&_.d(i),n=!1,se(u)}}}function ve(o,e,t){const s=["class","id","value","label","arrow","name","required","options"];let l=F(e,s),{$$slots:c={},$$scope:a}=e,{class:n=null}=e,{id:u}=e,{value:h}=e,{label:g=null}=e,{arrow:_=!1}=e,{name:k=u}=e,{required:m=!1}=e,{options:i=[]}=e;function r(f){oe.call(this,o,f)}function d(){h=ue(this),t(0,h)}return o.$$set=f=>{e=E(E({},e),O(f)),t(8,l=F(e,s)),"class"in f&&t(1,n=f.class),"id"in f&&t(2,u=f.id),"value"in f&&t(0,h=f.value),"label"in f&&t(3,g=f.label),"arrow"in f&&t(4,_=f.arrow),"name"in f&&t(5,k=f.name),"required"in f&&t(6,m=f.required),"options"in f&&t(7,i=f.options),"$$scope"in f&&t(9,a=f.$$scope)},[h,n,u,g,_,k,m,i,l,a,c,r,d]}class Ne extends R{constructor(e){super(),U(this,e,ve,be,p,{class:1,id:2,value:0,label:3,arrow:4,name:5,required:6,options:7})}}export{Ne as S,de as a}; diff --git a/ui/assets/local/_app/immutable/chunks/solidity.GyNrlfFw.js b/ui/assets/local/_app/immutable/chunks/solidity.GyNrlfFw.js new file mode 100644 index 0000000000..ca7b348e82 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/solidity.GyNrlfFw.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var x={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"]}]},e={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"]]}};export{x as conf,e as language}; diff --git a/ui/assets/local/_app/immutable/chunks/sophia.5GkRCa_Y.js b/ui/assets/local/_app/immutable/chunks/sophia.5GkRCa_Y.js new file mode 100644 index 0000000000..54944eb639 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/sophia.5GkRCa_Y.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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"]}]},t={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"]]}};export{e as conf,t as language}; diff --git a/ui/assets/local/_app/immutable/chunks/sparql.9VfQHtbu.js b/ui/assets/local/_app/immutable/chunks/sparql.9VfQHtbu.js new file mode 100644 index 0000000000..90fdce4964 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/sparql.9VfQHtbu.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"'",close:"'",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"}]},s={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"]]}};export{e as conf,s as language}; diff --git a/ui/assets/local/_app/immutable/chunks/split-button.ws8-5JKy.js b/ui/assets/local/_app/immutable/chunks/split-button.YBbzCyVA.js similarity index 93% rename from ui/assets/local/_app/immutable/chunks/split-button.ws8-5JKy.js rename to ui/assets/local/_app/immutable/chunks/split-button.YBbzCyVA.js index 8dc7bdc3f7..a41d1f591d 100644 --- a/ui/assets/local/_app/immutable/chunks/split-button.ws8-5JKy.js +++ b/ui/assets/local/_app/immutable/chunks/split-button.YBbzCyVA.js @@ -1 +1 @@ -import{s as q,z as M,A as S,h as j,b as I,j as z,k as C,d as L,f as g,m as E,i as D,n as N,B as V,t as F,l as G,q as H,a as J,u as K,g as O,e as P}from"./scheduler.1T9hOnFr.js";import{S as Q,i as R,c as h,a as p,m as k,t as r,b as c,d as A,g as T,e as U}from"./index.cVovwi_s.js";import{B as W}from"./button.y7LhNtq8.js";import{I as X}from"./icon.w8eknFMq.js";import{M as Y,a as Z,b as $}from"./menu.9pSyihPn.js";function B(i){let e,a;return e=new X({props:{name:i[2]}}),{c(){h(e.$$.fragment)},l(n){p(e.$$.fragment,n)},m(n,t){k(e,n,t),a=!0},p(n,t){const l={};t&4&&(l.name=n[2]),e.$set(l)},i(n){a||(r(e.$$.fragment,n),a=!0)},o(n){c(e.$$.fragment,n),a=!1},d(n){A(e,n)}}}function v(i){let e,a,n,t=i[2]&&B(i);return{c(){t&&t.c(),e=I(),a=F(i[0])},l(l){t&&t.l(l),e=L(l),a=G(l,i[0])},m(l,o){t&&t.m(l,o),D(l,e,o),D(l,a,o),n=!0},p(l,o){l[2]?t?(t.p(l,o),o&4&&r(t,1)):(t=B(l),t.c(),r(t,1),t.m(e.parentNode,e)):t&&(T(),c(t,1,1,()=>{t=null}),U()),(!n||o&1)&&H(a,l[0])},i(l){n||(r(t),n=!0)},o(l){c(t),n=!1},d(l){l&&(g(e),g(a)),t&&t.d(l)}}}function y(i){let e;const a=i[8].default,n=J(a,i,i[10],null);return{c(){n&&n.c()},l(t){n&&n.l(t)},m(t,l){n&&n.m(t,l),e=!0},p(t,l){n&&n.p&&(!e||l&1024)&&K(n,a,t,t[10],e?P(a,t[10],l,null):O(t[10]),null)},i(t){e||(r(n,t),e=!0)},o(t){c(n,t),e=!1},d(t){n&&n.d(t)}}}function w(i){let e,a,n,t,l,o,b;return a=new W({props:{disabled:i[4]||i[6],id:i[3]+"-primary-button",$$slots:{default:[v]},$$scope:{ctx:i}}}),a.$on("click",i[9]),t=new Z({props:{class:"max-w-fit grow-0 px-3",id:i[3]+"-menu-button",label:i[1],controls:i[3]+"-menu",variant:"primary",disabled:i[4],hasIndicator:!0}}),o=new $({props:{id:i[3]+"-menu",position:i[5],class:"w-full",$$slots:{default:[y]},$$scope:{ctx:i}}}),{c(){e=j("div"),h(a.$$.fragment),n=I(),h(t.$$.fragment),l=I(),h(o.$$.fragment),this.h()},l(s){e=z(s,"DIV",{class:!0});var f=C(e);p(a.$$.fragment,f),n=L(f),p(t.$$.fragment,f),f.forEach(g),l=L(s),p(o.$$.fragment,s),this.h()},h(){E(e,"class","button-group flex h-10 cursor-pointer flex-row gap-[1px]")},m(s,f){D(s,e,f),k(a,e,null),N(e,n),k(t,e,null),D(s,l,f),k(o,s,f),b=!0},p(s,f){const d={};f&80&&(d.disabled=s[4]||s[6]),f&8&&(d.id=s[3]+"-primary-button"),f&1029&&(d.$$scope={dirty:f,ctx:s}),a.$set(d);const m={};f&8&&(m.id=s[3]+"-menu-button"),f&2&&(m.label=s[1]),f&8&&(m.controls=s[3]+"-menu"),f&16&&(m.disabled=s[4]),t.$set(m);const _={};f&8&&(_.id=s[3]+"-menu"),f&32&&(_.position=s[5]),f&1024&&(_.$$scope={dirty:f,ctx:s}),o.$set(_)},i(s){b||(r(a.$$.fragment,s),r(t.$$.fragment,s),r(o.$$.fragment,s),b=!0)},o(s){c(a.$$.fragment,s),c(t.$$.fragment,s),c(o.$$.fragment,s),b=!1},d(s){s&&(g(e),g(l)),A(a),A(t),A(o,s)}}}function x(i){let e,a;return e=new Y({props:{class:i[7].class,$$slots:{default:[w]},$$scope:{ctx:i}}}),{c(){h(e.$$.fragment)},l(n){p(e.$$.fragment,n)},m(n,t){k(e,n,t),a=!0},p(n,[t]){const l={};t&128&&(l.class=n[7].class),t&1151&&(l.$$scope={dirty:t,ctx:n}),e.$set(l)},i(n){a||(r(e.$$.fragment,n),a=!0)},o(n){c(e.$$.fragment,n),a=!1},d(n){A(e,n)}}}function ee(i,e,a){let{$$slots:n={},$$scope:t}=e,{label:l}=e,{menuLabel:o}=e,{icon:b=void 0}=e,{id:s}=e,{disabled:f=!1}=e,{position:d="left"}=e,{primaryActionDisabled:m=!1}=e;function _(u){V.call(this,i,u)}return i.$$set=u=>{a(7,e=M(M({},e),S(u))),"label"in u&&a(0,l=u.label),"menuLabel"in u&&a(1,o=u.menuLabel),"icon"in u&&a(2,b=u.icon),"id"in u&&a(3,s=u.id),"disabled"in u&&a(4,f=u.disabled),"position"in u&&a(5,d=u.position),"primaryActionDisabled"in u&&a(6,m=u.primaryActionDisabled),"$$scope"in u&&a(10,t=u.$$scope)},e=S(e),[l,o,b,s,f,d,m,e,n,_,t]}class ie extends Q{constructor(e){super(),R(this,e,ee,x,q,{label:0,menuLabel:1,icon:2,id:3,disabled:4,position:5,primaryActionDisabled:6})}}export{ie as S}; +import{s as q,z as M,A as S,h as j,b as I,j as z,k as C,d as L,f as g,m as E,i as D,n as N,B as V,t as F,l as G,q as H,a as J,u as K,g as O,e as P}from"./scheduler.pPC3woXQ.js";import{S as Q,i as R,c as h,a as p,m as k,t as r,b as c,d as A,g as T,e as U}from"./index.Z3Qqxacm.js";import{B as W}from"./button.pYfDLC93.js";import{I as X}from"./icon.IMxiy1l_.js";import{M as Y,a as Z,b as $}from"./menu.jMDW2ED5.js";function B(i){let e,a;return e=new X({props:{name:i[2]}}),{c(){h(e.$$.fragment)},l(n){p(e.$$.fragment,n)},m(n,t){k(e,n,t),a=!0},p(n,t){const l={};t&4&&(l.name=n[2]),e.$set(l)},i(n){a||(r(e.$$.fragment,n),a=!0)},o(n){c(e.$$.fragment,n),a=!1},d(n){A(e,n)}}}function v(i){let e,a,n,t=i[2]&&B(i);return{c(){t&&t.c(),e=I(),a=F(i[0])},l(l){t&&t.l(l),e=L(l),a=G(l,i[0])},m(l,o){t&&t.m(l,o),D(l,e,o),D(l,a,o),n=!0},p(l,o){l[2]?t?(t.p(l,o),o&4&&r(t,1)):(t=B(l),t.c(),r(t,1),t.m(e.parentNode,e)):t&&(T(),c(t,1,1,()=>{t=null}),U()),(!n||o&1)&&H(a,l[0])},i(l){n||(r(t),n=!0)},o(l){c(t),n=!1},d(l){l&&(g(e),g(a)),t&&t.d(l)}}}function y(i){let e;const a=i[8].default,n=J(a,i,i[10],null);return{c(){n&&n.c()},l(t){n&&n.l(t)},m(t,l){n&&n.m(t,l),e=!0},p(t,l){n&&n.p&&(!e||l&1024)&&K(n,a,t,t[10],e?P(a,t[10],l,null):O(t[10]),null)},i(t){e||(r(n,t),e=!0)},o(t){c(n,t),e=!1},d(t){n&&n.d(t)}}}function w(i){let e,a,n,t,l,o,b;return a=new W({props:{disabled:i[4]||i[6],id:i[3]+"-primary-button",$$slots:{default:[v]},$$scope:{ctx:i}}}),a.$on("click",i[9]),t=new Z({props:{class:"max-w-fit grow-0 px-3",id:i[3]+"-menu-button",label:i[1],controls:i[3]+"-menu",variant:"primary",disabled:i[4],hasIndicator:!0}}),o=new $({props:{id:i[3]+"-menu",position:i[5],class:"w-full",$$slots:{default:[y]},$$scope:{ctx:i}}}),{c(){e=j("div"),h(a.$$.fragment),n=I(),h(t.$$.fragment),l=I(),h(o.$$.fragment),this.h()},l(s){e=z(s,"DIV",{class:!0});var f=C(e);p(a.$$.fragment,f),n=L(f),p(t.$$.fragment,f),f.forEach(g),l=L(s),p(o.$$.fragment,s),this.h()},h(){E(e,"class","button-group flex h-10 cursor-pointer flex-row gap-[1px]")},m(s,f){D(s,e,f),k(a,e,null),N(e,n),k(t,e,null),D(s,l,f),k(o,s,f),b=!0},p(s,f){const d={};f&80&&(d.disabled=s[4]||s[6]),f&8&&(d.id=s[3]+"-primary-button"),f&1029&&(d.$$scope={dirty:f,ctx:s}),a.$set(d);const m={};f&8&&(m.id=s[3]+"-menu-button"),f&2&&(m.label=s[1]),f&8&&(m.controls=s[3]+"-menu"),f&16&&(m.disabled=s[4]),t.$set(m);const _={};f&8&&(_.id=s[3]+"-menu"),f&32&&(_.position=s[5]),f&1024&&(_.$$scope={dirty:f,ctx:s}),o.$set(_)},i(s){b||(r(a.$$.fragment,s),r(t.$$.fragment,s),r(o.$$.fragment,s),b=!0)},o(s){c(a.$$.fragment,s),c(t.$$.fragment,s),c(o.$$.fragment,s),b=!1},d(s){s&&(g(e),g(l)),A(a),A(t),A(o,s)}}}function x(i){let e,a;return e=new Y({props:{class:i[7].class,$$slots:{default:[w]},$$scope:{ctx:i}}}),{c(){h(e.$$.fragment)},l(n){p(e.$$.fragment,n)},m(n,t){k(e,n,t),a=!0},p(n,[t]){const l={};t&128&&(l.class=n[7].class),t&1151&&(l.$$scope={dirty:t,ctx:n}),e.$set(l)},i(n){a||(r(e.$$.fragment,n),a=!0)},o(n){c(e.$$.fragment,n),a=!1},d(n){A(e,n)}}}function ee(i,e,a){let{$$slots:n={},$$scope:t}=e,{label:l}=e,{menuLabel:o}=e,{icon:b=void 0}=e,{id:s}=e,{disabled:f=!1}=e,{position:d="left"}=e,{primaryActionDisabled:m=!1}=e;function _(u){V.call(this,i,u)}return i.$$set=u=>{a(7,e=M(M({},e),S(u))),"label"in u&&a(0,l=u.label),"menuLabel"in u&&a(1,o=u.menuLabel),"icon"in u&&a(2,b=u.icon),"id"in u&&a(3,s=u.id),"disabled"in u&&a(4,f=u.disabled),"position"in u&&a(5,d=u.position),"primaryActionDisabled"in u&&a(6,m=u.primaryActionDisabled),"$$scope"in u&&a(10,t=u.$$scope)},e=S(e),[l,o,b,s,f,d,m,e,n,_,t]}class ie extends Q{constructor(e){super(),R(this,e,ee,x,q,{label:0,menuLabel:1,icon:2,id:3,disabled:4,position:5,primaryActionDisabled:6})}}export{ie as S}; diff --git a/ui/assets/local/_app/immutable/chunks/sql.jtz2ac56.js b/ui/assets/local/_app/immutable/chunks/sql.jtz2ac56.js new file mode 100644 index 0000000000..7341ea02fc --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/sql.jtz2ac56.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var E={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:"'"}]},T={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"}]]}};export{E as conf,T as language}; diff --git a/ui/assets/local/_app/immutable/chunks/st.AY6UE42C.js b/ui/assets/local/_app/immutable/chunks/st.AY6UE42C.js new file mode 100644 index 0000000000..03b9ec7fe8 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/st.AY6UE42C.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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")}}},n={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","сtu","ctud","r_trig","f_trig","move","concat","delete","find","insert","left","len","replace","right","rtc"],symbols:/[=>{const s=t;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}},c={subscribe(s){const e=r().updated;return c.check=e.check,e.subscribe(s)},check:()=>{throw new Error("Cannot check updated store before subscribing")}};export{b as p,c as u}; +import{s as t}from"./entry.6mxJxwSM.js";const r=()=>{const s=t;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}},c={subscribe(s){const e=r().updated;return c.check=e.check,e.subscribe(s)},check:()=>{throw new Error("Cannot check updated store before subscribing")}};export{b as p,c as u}; diff --git a/ui/assets/local/_app/immutable/chunks/swift.QKjTK3w8.js b/ui/assets/local/_app/immutable/chunks/swift.QKjTK3w8.js new file mode 100644 index 0000000000..e203518df9 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/swift.QKjTK3w8.js @@ -0,0 +1,8 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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:"`"}]},o={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":""}}]]}};/*!--------------------------------------------------------------------------------------------- + * Copyright (C) David Owens II, owensd.io. All rights reserved. + *--------------------------------------------------------------------------------------------*/export{e as conf,o as language}; diff --git a/ui/assets/local/_app/immutable/chunks/systemverilog.6QWaCDDD.js b/ui/assets/local/_app/immutable/chunks/systemverilog.6QWaCDDD.js new file mode 100644 index 0000000000..78e6901b7b --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/systemverilog.6QWaCDDD.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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")}}},n={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"]]}};export{e as conf,n as language}; diff --git a/ui/assets/local/_app/immutable/chunks/tab.6ESXCGXd.js b/ui/assets/local/_app/immutable/chunks/tab.R4rXEghr.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/tab.6ESXCGXd.js rename to ui/assets/local/_app/immutable/chunks/tab.R4rXEghr.js index 5d6a6c3629..c39bdc06f1 100644 --- a/ui/assets/local/_app/immutable/chunks/tab.6ESXCGXd.js +++ b/ui/assets/local/_app/immutable/chunks/tab.R4rXEghr.js @@ -1 +1 @@ -import{s as P,a as D,z as h,h as O,j as S,k as V,f as g,F as k,I as v,i as E,u as j,g as q,e as B,E as T,A as I,a2 as y,a9 as H,x as J,$ as p,c as w,t as x,b as $,l as ee,d as te,af as K,n as L,p as le,ah as ae,v as se}from"./scheduler.1T9hOnFr.js";import{S as F,i as M,t as N,b as z}from"./index.cVovwi_s.js";import{g as U}from"./spread.rEx3vLA9.js";import{t as Q}from"./tw-merge.NbP7EmZe.js";import{k as ie}from"./has.Hk4nWl3x.js";import{w as R}from"./entry.1BQh90wu.js";function ne(s){let e,i,f;const t=s[4].default,l=D(t,s,s[3],null);let o=[{class:i=Q("tab-list",s[1])},{role:"tablist"},{"aria-label":s[0]},s[2]],n={};for(let a=0;a{e=h(h({},e),I(r)),i(2,t=T(e,f)),"label"in r&&i(0,n=r.label),"class"in r&&i(1,a=r.class),"$$scope"in r&&i(3,o=r.$$scope)},[n,a,t,o,l]}class ge extends F{constructor(e){super(),M(this,e,ue,ne,P,{label:0,class:1})}}function oe(s){let e,i;const f=s[2].default,t=D(f,s,s[1],null);let l=[{class:"tabs"},s[0]],o={};for(let n=0;n{n.push(c),r.update(m=>m||c),H(()=>{const m=n.indexOf(c);n.splice(m,1),r.update(u=>u===c?n[m]||n[n.length-1]:u)})},registerPanel:c=>{a.push(c),d.update(m=>m||c),H(()=>{const m=a.indexOf(c);a.splice(m,1),d.update(u=>u===c?a[m]||a[a.length-1]:u)})},selectTab:c=>{const m=n.indexOf(c);r.set(c),d.set(a[m])},activeTab:r,activePanel:d}),s.$$set=c=>{e=h(h({},e),I(c)),i(0,t=T(e,f)),"$$scope"in c&&i(1,o=c.$$scope)},[t,o,l]}class Te extends F{constructor(e){super(),M(this,e,fe,oe,P,{})}}function A(s){let e,i,f,t,l,o,n,a;const r=s[14].default,d=D(r,s,s[13],null);let c=[{role:"tab"},{class:"tab"},{"aria-selected":s[5]},{"aria-controls":s[3]},{tabindex:t=s[5]?0:-1},{id:s[1]},{href:s[2]},{"data-testid":l=s[1]??s[8]["data-testid"]},s[9]],m={};for(let u=0;ui(12,o=_)),X(d);const Z=()=>{u||(Y(d),C&&C())};return s.$$set=_=>{i(8,e=h(h({},e),I(_))),i(9,l=T(e,t)),"label"in _&&i(0,r=_.label),"id"in _&&i(1,d=_.id),"href"in _&&i(2,c=_.href),"panelId"in _&&i(3,m=_.panelId),"disabled"in _&&i(4,u=_.disabled),"active"in _&&i(10,b=_.active),"onClick"in _&&i(11,C=_.onClick),"$$scope"in _&&i(13,a=_.$$scope)},s.$$.update=()=>{s.$$.dirty&5122&&i(5,f=ie(b)?o===d:b)},e=I(e),[r,d,c,m,u,f,G,Z,e,l,b,C,o,a,n]}class Ce extends F{constructor(e){super(),M(this,e,de,re,P,{label:0,id:1,href:2,panelId:3,disabled:4,active:10,onClick:11})}}export{Te as T,ge as a,Ce as b,W as c}; +import{s as P,a as D,z as h,h as O,j as S,k as V,f as g,F as k,I as v,i as E,u as j,g as q,e as B,E as T,A as I,a5 as y,ac as H,x as J,$ as p,c as w,t as x,b as $,l as ee,d as te,af as K,n as L,p as le,ah as ae,v as se}from"./scheduler.pPC3woXQ.js";import{S as F,i as M,t as N,b as z}from"./index.Z3Qqxacm.js";import{g as U}from"./spread.rEx3vLA9.js";import{t as Q}from"./tw-merge.NbP7EmZe.js";import{k as ie}from"./has.Hk4nWl3x.js";import{w as R}from"./entry.6mxJxwSM.js";function ne(s){let e,i,f;const t=s[4].default,l=D(t,s,s[3],null);let o=[{class:i=Q("tab-list",s[1])},{role:"tablist"},{"aria-label":s[0]},s[2]],n={};for(let a=0;a{e=h(h({},e),I(r)),i(2,t=T(e,f)),"label"in r&&i(0,n=r.label),"class"in r&&i(1,a=r.class),"$$scope"in r&&i(3,o=r.$$scope)},[n,a,t,o,l]}class ge extends F{constructor(e){super(),M(this,e,ue,ne,P,{label:0,class:1})}}function oe(s){let e,i;const f=s[2].default,t=D(f,s,s[1],null);let l=[{class:"tabs"},s[0]],o={};for(let n=0;n{n.push(c),r.update(m=>m||c),H(()=>{const m=n.indexOf(c);n.splice(m,1),r.update(u=>u===c?n[m]||n[n.length-1]:u)})},registerPanel:c=>{a.push(c),d.update(m=>m||c),H(()=>{const m=a.indexOf(c);a.splice(m,1),d.update(u=>u===c?a[m]||a[a.length-1]:u)})},selectTab:c=>{const m=n.indexOf(c);r.set(c),d.set(a[m])},activeTab:r,activePanel:d}),s.$$set=c=>{e=h(h({},e),I(c)),i(0,t=T(e,f)),"$$scope"in c&&i(1,o=c.$$scope)},[t,o,l]}class Te extends F{constructor(e){super(),M(this,e,fe,oe,P,{})}}function A(s){let e,i,f,t,l,o,n,a;const r=s[14].default,d=D(r,s,s[13],null);let c=[{role:"tab"},{class:"tab"},{"aria-selected":s[5]},{"aria-controls":s[3]},{tabindex:t=s[5]?0:-1},{id:s[1]},{href:s[2]},{"data-testid":l=s[1]??s[8]["data-testid"]},s[9]],m={};for(let u=0;ui(12,o=_)),X(d);const Z=()=>{u||(Y(d),C&&C())};return s.$$set=_=>{i(8,e=h(h({},e),I(_))),i(9,l=T(e,t)),"label"in _&&i(0,r=_.label),"id"in _&&i(1,d=_.id),"href"in _&&i(2,c=_.href),"panelId"in _&&i(3,m=_.panelId),"disabled"in _&&i(4,u=_.disabled),"active"in _&&i(10,b=_.active),"onClick"in _&&i(11,C=_.onClick),"$$scope"in _&&i(13,a=_.$$scope)},s.$$.update=()=>{s.$$.dirty&5122&&i(5,f=ie(b)?o===d:b)},e=I(e),[r,d,c,m,u,f,G,Z,e,l,b,C,o,a,n]}class Ce extends F{constructor(e){super(),M(this,e,de,re,P,{label:0,id:1,href:2,panelId:3,disabled:4,active:10,onClick:11})}}export{Te as T,ge as a,Ce as b,W as c}; diff --git a/ui/assets/local/_app/immutable/chunks/table-header-row.8AKDWknn.js b/ui/assets/local/_app/immutable/chunks/table-header-row.zRlA4wu6.js similarity index 93% rename from ui/assets/local/_app/immutable/chunks/table-header-row.8AKDWknn.js rename to ui/assets/local/_app/immutable/chunks/table-header-row.zRlA4wu6.js index d1df793952..6794aa8816 100644 --- a/ui/assets/local/_app/immutable/chunks/table-header-row.8AKDWknn.js +++ b/ui/assets/local/_app/immutable/chunks/table-header-row.zRlA4wu6.js @@ -1 +1 @@ -import{s as Q,a as q,z as B,h as T,b as A,j as k,k as D,d as P,f as p,m as H,F as O,I as R,i as U,n as b,u as z,g as C,e as F,E as Y,A as M}from"./scheduler.1T9hOnFr.js";import{S as V,i as W,t as v,g as X,b as E,e as Z,c as w,a as x,m as $,d as ee}from"./index.cVovwi_s.js";import{g as te}from"./spread.rEx3vLA9.js";import{P as se}from"./progress-bar.l83o4fxW.js";import{t as y}from"./tw-merge.NbP7EmZe.js";const ae=a=>({}),G=a=>({}),le=a=>({}),J=a=>({});function K(a){let e,n;return e=new se({}),{c(){w(e.$$.fragment)},l(l){x(e.$$.fragment,l)},m(l,c){$(e,l,c),n=!0},i(l){n||(v(e.$$.fragment,l),n=!0)},o(l){E(e.$$.fragment,l),n=!1},d(l){ee(e,l)}}}function ne(a){let e,n,l,c,m,d,_,i;const o=a[5].caption,t=q(o,a,a[4],J),u=a[5].headers,h=q(u,a,a[4],G);let r=a[2]&&K();const I=a[5].default,g=q(I,a,a[4],null);let L=[{class:_=y(a[1],a[0])},a[3]],S={};for(let s=0;s{r=null}),Z()),g&&g.p&&(!i||f&16)&&z(g,I,s,s[4],i?F(I,s[4],f,null):C(s[4]),null),O(e,S=te(L,[(!i||f&3&&_!==(_=y(s[1],s[0])))&&{class:_},f&8&&s[3]])),R(e,"svelte-21xv3o",!0)},i(s){i||(v(t,s),v(h,s),v(r),v(g,s),i=!0)},o(s){E(t,s),E(h,s),E(r),E(g,s),i=!1},d(s){s&&p(e),t&&t.d(s),h&&h.d(s),r&&r.d(),g&&g.d(s)}}}function oe(a,e,n){const l=["class","variant","updating"];let c=Y(e,l),{$$slots:m={},$$scope:d}=e,{class:_=""}=e,{variant:i="fancy"}=e,{updating:o=!1}=e;return a.$$set=t=>{e=B(B({},e),M(t)),n(3,c=Y(e,l)),"class"in t&&n(0,_=t.class),"variant"in t&&n(1,i=t.variant),"updating"in t&&n(2,o=t.updating),"$$scope"in t&&n(4,d=t.$$scope)},[_,i,o,c,d,m]}class de extends V{constructor(e){super(),W(this,e,oe,ne,Q,{class:0,variant:1,updating:2})}}function re(a){let e,n,l,c,m,d,_;const i=a[2].default,o=q(i,a,a[1],null);return{c(){e=T("tr"),n=T("td"),l=A(),o&&o.c(),c=A(),m=T("td"),this.h()},l(t){e=k(t,"TR",{class:!0});var u=D(e);n=k(u,"TD",{}),D(n).forEach(p),l=P(u),o&&o.l(u),c=P(u),m=k(u,"TD",{}),D(m).forEach(p),u.forEach(p),this.h()},h(){H(e,"class",d=a[0].class)},m(t,u){U(t,e,u),b(e,n),b(e,l),o&&o.m(e,null),b(e,c),b(e,m),_=!0},p(t,[u]){o&&o.p&&(!_||u&2)&&z(o,i,t,t[1],_?F(i,t[1],u,null):C(t[1]),null),(!_||u&1&&d!==(d=t[0].class))&&H(e,"class",d)},i(t){_||(v(o,t),_=!0)},o(t){E(o,t),_=!1},d(t){t&&p(e),o&&o.d(t)}}}function ie(a,e,n){let{$$slots:l={},$$scope:c}=e;return a.$$set=m=>{n(0,e=B(B({},e),M(m))),"$$scope"in m&&n(1,c=m.$$scope)},e=M(e),[e,c,l]}class he extends V{constructor(e){super(),W(this,e,ie,re,Q,{})}}export{de as T,he as a}; +import{s as Q,a as q,z as B,h as T,b as A,j as k,k as D,d as P,f as p,m as H,F as O,I as R,i as U,n as b,u as z,g as C,e as F,E as Y,A as M}from"./scheduler.pPC3woXQ.js";import{S as V,i as W,t as v,g as X,b as E,e as Z,c as w,a as x,m as $,d as ee}from"./index.Z3Qqxacm.js";import{g as te}from"./spread.rEx3vLA9.js";import{P as se}from"./progress-bar.c2MAH3Wt.js";import{t as y}from"./tw-merge.NbP7EmZe.js";const ae=a=>({}),G=a=>({}),le=a=>({}),J=a=>({});function K(a){let e,n;return e=new se({}),{c(){w(e.$$.fragment)},l(l){x(e.$$.fragment,l)},m(l,c){$(e,l,c),n=!0},i(l){n||(v(e.$$.fragment,l),n=!0)},o(l){E(e.$$.fragment,l),n=!1},d(l){ee(e,l)}}}function ne(a){let e,n,l,c,m,d,_,i;const o=a[5].caption,t=q(o,a,a[4],J),u=a[5].headers,h=q(u,a,a[4],G);let r=a[2]&&K();const I=a[5].default,g=q(I,a,a[4],null);let L=[{class:_=y(a[1],a[0])},a[3]],S={};for(let s=0;s{r=null}),Z()),g&&g.p&&(!i||f&16)&&z(g,I,s,s[4],i?F(I,s[4],f,null):C(s[4]),null),O(e,S=te(L,[(!i||f&3&&_!==(_=y(s[1],s[0])))&&{class:_},f&8&&s[3]])),R(e,"svelte-21xv3o",!0)},i(s){i||(v(t,s),v(h,s),v(r),v(g,s),i=!0)},o(s){E(t,s),E(h,s),E(r),E(g,s),i=!1},d(s){s&&p(e),t&&t.d(s),h&&h.d(s),r&&r.d(),g&&g.d(s)}}}function oe(a,e,n){const l=["class","variant","updating"];let c=Y(e,l),{$$slots:m={},$$scope:d}=e,{class:_=""}=e,{variant:i="fancy"}=e,{updating:o=!1}=e;return a.$$set=t=>{e=B(B({},e),M(t)),n(3,c=Y(e,l)),"class"in t&&n(0,_=t.class),"variant"in t&&n(1,i=t.variant),"updating"in t&&n(2,o=t.updating),"$$scope"in t&&n(4,d=t.$$scope)},[_,i,o,c,d,m]}class de extends V{constructor(e){super(),W(this,e,oe,ne,Q,{class:0,variant:1,updating:2})}}function re(a){let e,n,l,c,m,d,_;const i=a[2].default,o=q(i,a,a[1],null);return{c(){e=T("tr"),n=T("td"),l=A(),o&&o.c(),c=A(),m=T("td"),this.h()},l(t){e=k(t,"TR",{class:!0});var u=D(e);n=k(u,"TD",{}),D(n).forEach(p),l=P(u),o&&o.l(u),c=P(u),m=k(u,"TD",{}),D(m).forEach(p),u.forEach(p),this.h()},h(){H(e,"class",d=a[0].class)},m(t,u){U(t,e,u),b(e,n),b(e,l),o&&o.m(e,null),b(e,c),b(e,m),_=!0},p(t,[u]){o&&o.p&&(!_||u&2)&&z(o,i,t,t[1],_?F(i,t[1],u,null):C(t[1]),null),(!_||u&1&&d!==(d=t[0].class))&&H(e,"class",d)},i(t){_||(v(o,t),_=!0)},o(t){E(o,t),_=!1},d(t){t&&p(e),o&&o.d(t)}}}function ie(a,e,n){let{$$slots:l={},$$scope:c}=e;return a.$$set=m=>{n(0,e=B(B({},e),M(m))),"$$scope"in m&&n(1,c=m.$$scope)},e=M(e),[e,c,l]}class he extends V{constructor(e){super(),W(this,e,ie,re,Q,{})}}export{de as T,he as a}; diff --git a/ui/assets/local/_app/immutable/chunks/table-row.EPGn_fnl.js b/ui/assets/local/_app/immutable/chunks/table-row.tGhwPOmn.js similarity index 90% rename from ui/assets/local/_app/immutable/chunks/table-row.EPGn_fnl.js rename to ui/assets/local/_app/immutable/chunks/table-row.tGhwPOmn.js index 9b56d5d304..a5a3d8391c 100644 --- a/ui/assets/local/_app/immutable/chunks/table-row.EPGn_fnl.js +++ b/ui/assets/local/_app/immutable/chunks/table-row.tGhwPOmn.js @@ -1 +1 @@ -import{s as q,a as v,z as E,h as g,b as k,j as b,k as T,f as d,d as D,F as S,i as z,n as h,p as A,G as B,u as C,g as F,e as G,E as j,A as N,B as P}from"./scheduler.1T9hOnFr.js";import{S as R,i as y,t as H,b as I}from"./index.cVovwi_s.js";import{g as J}from"./spread.rEx3vLA9.js";function K(n){let s,i,r,c,_,o,u,f;const l=n[3].default,e=v(l,n,n[2],null);let p=[{class:n[0]},n[1]],m={};for(let t=0;t{s=E(E({},s),N(l)),i(1,c=j(s,r)),"class"in l&&i(0,u=l.class),"$$scope"in l&&i(2,o=l.$$scope)},[u,c,o,_,f]}class U extends R{constructor(s){super(),y(this,s,L,K,q,{class:0})}}export{U as T}; +import{s as q,a as v,z as E,h as g,b as k,j as b,k as T,f as d,d as D,F as S,i as z,n as h,p as A,G as B,u as C,g as F,e as G,E as j,A as N,B as P}from"./scheduler.pPC3woXQ.js";import{S as R,i as y,t as H,b as I}from"./index.Z3Qqxacm.js";import{g as J}from"./spread.rEx3vLA9.js";function K(n){let s,i,r,c,_,o,u,f;const l=n[3].default,e=v(l,n,n[2],null);let p=[{class:n[0]},n[1]],m={};for(let t=0;t{s=E(E({},s),N(l)),i(1,c=j(s,r)),"class"in l&&i(0,u=l.class),"$$scope"in l&&i(2,o=l.$$scope)},[u,c,o,_,f]}class U extends R{constructor(s){super(),y(this,s,L,K,q,{class:0})}}export{U as T}; diff --git a/ui/assets/local/_app/immutable/chunks/table.o71n5m6N.js b/ui/assets/local/_app/immutable/chunks/table.649EqDJq.js similarity index 93% rename from ui/assets/local/_app/immutable/chunks/table.o71n5m6N.js rename to ui/assets/local/_app/immutable/chunks/table.649EqDJq.js index 2307695a55..7d3b9b081f 100644 --- a/ui/assets/local/_app/immutable/chunks/table.o71n5m6N.js +++ b/ui/assets/local/_app/immutable/chunks/table.649EqDJq.js @@ -1 +1 @@ -import{s as x,x as g,i as h,f as _,y,a as D,u as H,g as z,e as F,b as G,d as I,h as B,j as C,k as E,C as w,v as J}from"./scheduler.1T9hOnFr.js";import{S as K,i as L,c as d,a as p,m as $,t as f,b as i,d as b,g as j,e as q}from"./index.cVovwi_s.js";import{e as u}from"./each.QHpLJPfe.js";import{T as M,a as O}from"./table-header-row.8AKDWknn.js";import{T as P}from"./table-row.EPGn_fnl.js";import{S as Q}from"./index.LNKoJEXQ.js";function k(c,l,n){const t=c.slice();return t[8]=l[n],t}function A(c,l,n){const t=c.slice();return t[5]=l[n],t}function T(c,l,n){const t=c.slice();return t[5]=l[n],t[7]=n,t}const R=c=>({}),v=c=>({});function S(c){let l,n,t;return n=new Q({props:{class:"h-4 w-full"}}),{c(){l=B("td"),d(n.$$.fragment),this.h()},l(e){l=C(e,"TD",{style:!0});var a=E(l);p(n.$$.fragment,a),a.forEach(_),this.h()},h(){w(l,"padding-right","0.5rem")},m(e,a){h(e,l,a),$(n,l,null),t=!0},p:J,i(e){t||(f(n.$$.fragment,e),t=!0)},o(e){i(n.$$.fragment,e),t=!1},d(e){e&&_(l),b(n)}}}function U(c){let l,n,t=u(Array.from(new Array(c[1]))),e=[];for(let r=0;ri(e[r],1,1,()=>{e[r]=null});return{c(){for(let r=0;ri(e[r],1,1,()=>{e[r]=null});return{c(){for(let r=0;r{"rows"in o&&n(0,a=o.rows),"columns"in o&&n(1,r=o.columns),"columnWidths"in o&&n(2,s=o.columnWidths),"$$scope"in o&&n(4,e=o.$$scope)},[a,r,s,t,e]}class ce extends K{constructor(l){super(),L(this,l,te,ee,x,{rows:0,columns:1,columnWidths:2})}}export{ce as T}; +import{s as x,x as g,i as h,f as _,y,a as D,u as H,g as z,e as F,b as G,d as I,h as B,j as C,k as E,C as w,v as J}from"./scheduler.pPC3woXQ.js";import{S as K,i as L,c as d,a as p,m as $,t as f,b as i,d as b,g as j,e as q}from"./index.Z3Qqxacm.js";import{e as u}from"./each.fm8Uvuh8.js";import{T as M,a as O}from"./table-header-row.zRlA4wu6.js";import{T as P}from"./table-row.tGhwPOmn.js";import{S as Q}from"./index.Oj9gxlvg.js";function k(c,l,n){const t=c.slice();return t[8]=l[n],t}function A(c,l,n){const t=c.slice();return t[5]=l[n],t}function T(c,l,n){const t=c.slice();return t[5]=l[n],t[7]=n,t}const R=c=>({}),v=c=>({});function S(c){let l,n,t;return n=new Q({props:{class:"h-4 w-full"}}),{c(){l=B("td"),d(n.$$.fragment),this.h()},l(e){l=C(e,"TD",{style:!0});var a=E(l);p(n.$$.fragment,a),a.forEach(_),this.h()},h(){w(l,"padding-right","0.5rem")},m(e,a){h(e,l,a),$(n,l,null),t=!0},p:J,i(e){t||(f(n.$$.fragment,e),t=!0)},o(e){i(n.$$.fragment,e),t=!1},d(e){e&&_(l),b(n)}}}function U(c){let l,n,t=u(Array.from(new Array(c[1]))),e=[];for(let r=0;ri(e[r],1,1,()=>{e[r]=null});return{c(){for(let r=0;ri(e[r],1,1,()=>{e[r]=null});return{c(){for(let r=0;r{"rows"in o&&n(0,a=o.rows),"columns"in o&&n(1,r=o.columns),"columnWidths"in o&&n(2,s=o.columnWidths),"$$scope"in o&&n(4,e=o.$$scope)},[a,r,s,t,e]}class ce extends K{constructor(l){super(),L(this,l,te,ee,x,{rows:0,columns:1,columnWidths:2})}}export{ce as T}; diff --git a/ui/assets/local/_app/immutable/chunks/tcl.KXPb6qnb.js b/ui/assets/local/_app/immutable/chunks/tcl.KXPb6qnb.js new file mode 100644 index 0000000000..5585e9106d --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/tcl.KXPb6qnb.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},t={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:/[=>1?"s":"")+" required, but only "+m.length+" present")}i.exports=e.default})(me,me.exports);var P=me.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var o=f(P);function f(n){return n&&n.__esModule?n:{default:n}}function m(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(t){return typeof t}:m=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(n)}function s(n){return(0,o.default)(1,arguments),n instanceof Date||m(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}i.exports=e.default})(ce,ce.exports);var Ya=ce.exports,ve={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var o=f(P);function f(n){return n&&n.__esModule?n:{default:n}}function m(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(t){return typeof t}:m=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(n)}function s(n){(0,o.default)(1,arguments);var a=Object.prototype.toString.call(n);return n instanceof Date||m(n)==="object"&&a==="[object Date]"?new Date(n.getTime()):typeof n=="number"||a==="[object Number]"?new Date(n):((typeof n=="string"||a==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}i.exports=e.default})(ve,ve.exports);var I=ve.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=s(Ya),f=s(I),m=s(P);function s(a){return a&&a.__esModule?a:{default:a}}function n(a){if((0,m.default)(1,arguments),!(0,o.default)(a)&&typeof a!="number")return!1;var t=(0,f.default)(a);return!isNaN(Number(t))}i.exports=e.default})(de,de.exports);var Wa=de.exports,Te={exports:{}},he={exports:{}},be={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f){if(f===null||f===!0||f===!1)return NaN;var m=Number(f);return isNaN(m)?m:m<0?Math.ceil(m):Math.floor(m)}i.exports=e.default})(be,be.exports);var H=be.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=s(H),f=s(I),m=s(P);function s(a){return a&&a.__esModule?a:{default:a}}function n(a,t){(0,m.default)(2,arguments);var r=(0,f.default)(a).getTime(),c=(0,o.default)(t);return new Date(r+c)}i.exports=e.default})(he,he.exports);var Ra=he.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=s(Ra),f=s(P),m=s(H);function s(a){return a&&a.__esModule?a:{default:a}}function n(a,t){(0,f.default)(2,arguments);var r=(0,m.default)(t);return(0,o.default)(a,-r)}i.exports=e.default})(Te,Te.exports);var Ha=Te.exports,ge={exports:{}},pe={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=m(I),f=m(P);function m(a){return a&&a.__esModule?a:{default:a}}var s=864e5;function n(a){(0,f.default)(1,arguments);var t=(0,o.default)(a),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var c=t.getTime(),g=r-c;return Math.floor(g/s)+1}i.exports=e.default})(pe,pe.exports);var Fa=pe.exports,Me={exports:{}},_e={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var o=m(I),f=m(P);function m(n){return n&&n.__esModule?n:{default:n}}function s(n){(0,f.default)(1,arguments);var a=1,t=(0,o.default)(n),r=t.getUTCDay(),c=(r=g.getTime()?r+1:t.getTime()>=h.getTime()?r:r-1}i.exports=e.default})(xe,xe.exports);var va=xe.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=s(va),f=s(ra),m=s(P);function s(a){return a&&a.__esModule?a:{default:a}}function n(a){(0,m.default)(1,arguments);var t=(0,o.default)(a),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var c=(0,f.default)(r);return c}i.exports=e.default})(Ae,Ae.exports);var La=Ae.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var o=n(I),f=n(ra),m=n(La),s=n(P);function n(r){return r&&r.__esModule?r:{default:r}}var a=6048e5;function t(r){(0,s.default)(1,arguments);var c=(0,o.default)(r),g=(0,f.default)(c).getTime()-(0,m.default)(c).getTime();return Math.round(g/a)+1}i.exports=e.default})(Me,Me.exports);var $a=Me.exports,ye={exports:{}},we={exports:{}},F={};Object.defineProperty(F,"__esModule",{value:!0});F.getDefaultOptions=qa;F.setDefaultOptions=Ba;var Ta={};function qa(){return Ta}function Ba(i){Ta=i}(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var o=n(I),f=n(P),m=n(H),s=F;function n(t){return t&&t.__esModule?t:{default:t}}function a(t,r){var c,g,x,h,M,p,T,l;(0,f.default)(1,arguments);var v=(0,s.getDefaultOptions)(),u=(0,m.default)((c=(g=(x=(h=r==null?void 0:r.weekStartsOn)!==null&&h!==void 0?h:r==null||(M=r.locale)===null||M===void 0||(p=M.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&x!==void 0?x:v.weekStartsOn)!==null&&g!==void 0?g:(T=v.locale)===null||T===void 0||(l=T.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&c!==void 0?c:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=(0,o.default)(t),b=d.getUTCDay(),w=(b=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=new Date(0);S.setUTCFullYear(d+1,0,w),S.setUTCHours(0,0,0,0);var y=(0,m.default)(S,c),_=new Date(0);_.setUTCFullYear(d,0,w),_.setUTCHours(0,0,0,0);var A=(0,m.default)(_,c);return u.getTime()>=y.getTime()?d+1:u.getTime()>=A.getTime()?d:d-1}i.exports=e.default})(Se,Se.exports);var ha=Se.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var o=a(ha),f=a(P),m=a(na),s=a(H),n=F;function a(r){return r&&r.__esModule?r:{default:r}}function t(r,c){var g,x,h,M,p,T,l,v;(0,f.default)(1,arguments);var u=(0,n.getDefaultOptions)(),d=(0,s.default)((g=(x=(h=(M=c==null?void 0:c.firstWeekContainsDate)!==null&&M!==void 0?M:c==null||(p=c.locale)===null||p===void 0||(T=p.options)===null||T===void 0?void 0:T.firstWeekContainsDate)!==null&&h!==void 0?h:u.firstWeekContainsDate)!==null&&x!==void 0?x:(l=u.locale)===null||l===void 0||(v=l.options)===null||v===void 0?void 0:v.firstWeekContainsDate)!==null&&g!==void 0?g:1),b=(0,o.default)(r,c),w=new Date(0);w.setUTCFullYear(b,0,d),w.setUTCHours(0,0,0,0);var S=(0,m.default)(w,c);return S}i.exports=e.default})(De,De.exports);var Xa=De.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var o=n(I),f=n(na),m=n(Xa),s=n(P);function n(r){return r&&r.__esModule?r:{default:r}}var a=6048e5;function t(r,c){(0,s.default)(1,arguments);var g=(0,o.default)(r),x=(0,f.default)(g,c).getTime()-(0,m.default)(g,c).getTime();return Math.round(x/a)+1}i.exports=e.default})(ye,ye.exports);var Za=ye.exports,ze={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f,m){for(var s=f<0?"-":"",n=Math.abs(f).toString();n.length0?r:1-r;return(0,o.default)(t==="yy"?c%100:c,t.length)},M:function(a,t){var r=a.getUTCMonth();return t==="M"?String(r+1):(0,o.default)(r+1,2)},d:function(a,t){return(0,o.default)(a.getUTCDate(),t.length)},a:function(a,t){var r=a.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(a,t){return(0,o.default)(a.getUTCHours()%12||12,t.length)},H:function(a,t){return(0,o.default)(a.getUTCHours(),t.length)},m:function(a,t){return(0,o.default)(a.getUTCMinutes(),t.length)},s:function(a,t){return(0,o.default)(a.getUTCSeconds(),t.length)},S:function(a,t){var r=t.length,c=a.getUTCMilliseconds(),g=Math.floor(c*Math.pow(10,r-3));return(0,o.default)(g,t.length)}},s=m;e.default=s,i.exports=e.default})(Oe,Oe.exports);var Va=Oe.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(Fa),f=r($a),m=r(va),s=r(Za),n=r(ha),a=r(ba),t=r(Va);function r(T){return T&&T.__esModule?T:{default:T}}var c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},g={G:function(l,v,u){var d=l.getUTCFullYear()>0?1:0;switch(v){case"G":case"GG":case"GGG":return u.era(d,{width:"abbreviated"});case"GGGGG":return u.era(d,{width:"narrow"});case"GGGG":default:return u.era(d,{width:"wide"})}},y:function(l,v,u){if(v==="yo"){var d=l.getUTCFullYear(),b=d>0?d:1-d;return u.ordinalNumber(b,{unit:"year"})}return t.default.y(l,v)},Y:function(l,v,u,d){var b=(0,n.default)(l,d),w=b>0?b:1-b;if(v==="YY"){var S=w%100;return(0,a.default)(S,2)}return v==="Yo"?u.ordinalNumber(w,{unit:"year"}):(0,a.default)(w,v.length)},R:function(l,v){var u=(0,m.default)(l);return(0,a.default)(u,v.length)},u:function(l,v){var u=l.getUTCFullYear();return(0,a.default)(u,v.length)},Q:function(l,v,u){var d=Math.ceil((l.getUTCMonth()+1)/3);switch(v){case"Q":return String(d);case"QQ":return(0,a.default)(d,2);case"Qo":return u.ordinalNumber(d,{unit:"quarter"});case"QQQ":return u.quarter(d,{width:"abbreviated",context:"formatting"});case"QQQQQ":return u.quarter(d,{width:"narrow",context:"formatting"});case"QQQQ":default:return u.quarter(d,{width:"wide",context:"formatting"})}},q:function(l,v,u){var d=Math.ceil((l.getUTCMonth()+1)/3);switch(v){case"q":return String(d);case"qq":return(0,a.default)(d,2);case"qo":return u.ordinalNumber(d,{unit:"quarter"});case"qqq":return u.quarter(d,{width:"abbreviated",context:"standalone"});case"qqqqq":return u.quarter(d,{width:"narrow",context:"standalone"});case"qqqq":default:return u.quarter(d,{width:"wide",context:"standalone"})}},M:function(l,v,u){var d=l.getUTCMonth();switch(v){case"M":case"MM":return t.default.M(l,v);case"Mo":return u.ordinalNumber(d+1,{unit:"month"});case"MMM":return u.month(d,{width:"abbreviated",context:"formatting"});case"MMMMM":return u.month(d,{width:"narrow",context:"formatting"});case"MMMM":default:return u.month(d,{width:"wide",context:"formatting"})}},L:function(l,v,u){var d=l.getUTCMonth();switch(v){case"L":return String(d+1);case"LL":return(0,a.default)(d+1,2);case"Lo":return u.ordinalNumber(d+1,{unit:"month"});case"LLL":return u.month(d,{width:"abbreviated",context:"standalone"});case"LLLLL":return u.month(d,{width:"narrow",context:"standalone"});case"LLLL":default:return u.month(d,{width:"wide",context:"standalone"})}},w:function(l,v,u,d){var b=(0,s.default)(l,d);return v==="wo"?u.ordinalNumber(b,{unit:"week"}):(0,a.default)(b,v.length)},I:function(l,v,u){var d=(0,f.default)(l);return v==="Io"?u.ordinalNumber(d,{unit:"week"}):(0,a.default)(d,v.length)},d:function(l,v,u){return v==="do"?u.ordinalNumber(l.getUTCDate(),{unit:"date"}):t.default.d(l,v)},D:function(l,v,u){var d=(0,o.default)(l);return v==="Do"?u.ordinalNumber(d,{unit:"dayOfYear"}):(0,a.default)(d,v.length)},E:function(l,v,u){var d=l.getUTCDay();switch(v){case"E":case"EE":case"EEE":return u.day(d,{width:"abbreviated",context:"formatting"});case"EEEEE":return u.day(d,{width:"narrow",context:"formatting"});case"EEEEEE":return u.day(d,{width:"short",context:"formatting"});case"EEEE":default:return u.day(d,{width:"wide",context:"formatting"})}},e:function(l,v,u,d){var b=l.getUTCDay(),w=(b-d.weekStartsOn+8)%7||7;switch(v){case"e":return String(w);case"ee":return(0,a.default)(w,2);case"eo":return u.ordinalNumber(w,{unit:"day"});case"eee":return u.day(b,{width:"abbreviated",context:"formatting"});case"eeeee":return u.day(b,{width:"narrow",context:"formatting"});case"eeeeee":return u.day(b,{width:"short",context:"formatting"});case"eeee":default:return u.day(b,{width:"wide",context:"formatting"})}},c:function(l,v,u,d){var b=l.getUTCDay(),w=(b-d.weekStartsOn+8)%7||7;switch(v){case"c":return String(w);case"cc":return(0,a.default)(w,v.length);case"co":return u.ordinalNumber(w,{unit:"day"});case"ccc":return u.day(b,{width:"abbreviated",context:"standalone"});case"ccccc":return u.day(b,{width:"narrow",context:"standalone"});case"cccccc":return u.day(b,{width:"short",context:"standalone"});case"cccc":default:return u.day(b,{width:"wide",context:"standalone"})}},i:function(l,v,u){var d=l.getUTCDay(),b=d===0?7:d;switch(v){case"i":return String(b);case"ii":return(0,a.default)(b,v.length);case"io":return u.ordinalNumber(b,{unit:"day"});case"iii":return u.day(d,{width:"abbreviated",context:"formatting"});case"iiiii":return u.day(d,{width:"narrow",context:"formatting"});case"iiiiii":return u.day(d,{width:"short",context:"formatting"});case"iiii":default:return u.day(d,{width:"wide",context:"formatting"})}},a:function(l,v,u){var d=l.getUTCHours(),b=d/12>=1?"pm":"am";switch(v){case"a":case"aa":return u.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"aaa":return u.dayPeriod(b,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return u.dayPeriod(b,{width:"narrow",context:"formatting"});case"aaaa":default:return u.dayPeriod(b,{width:"wide",context:"formatting"})}},b:function(l,v,u){var d=l.getUTCHours(),b;switch(d===12?b=c.noon:d===0?b=c.midnight:b=d/12>=1?"pm":"am",v){case"b":case"bb":return u.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"bbb":return u.dayPeriod(b,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return u.dayPeriod(b,{width:"narrow",context:"formatting"});case"bbbb":default:return u.dayPeriod(b,{width:"wide",context:"formatting"})}},B:function(l,v,u){var d=l.getUTCHours(),b;switch(d>=17?b=c.evening:d>=12?b=c.afternoon:d>=4?b=c.morning:b=c.night,v){case"B":case"BB":case"BBB":return u.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"BBBBB":return u.dayPeriod(b,{width:"narrow",context:"formatting"});case"BBBB":default:return u.dayPeriod(b,{width:"wide",context:"formatting"})}},h:function(l,v,u){if(v==="ho"){var d=l.getUTCHours()%12;return d===0&&(d=12),u.ordinalNumber(d,{unit:"hour"})}return t.default.h(l,v)},H:function(l,v,u){return v==="Ho"?u.ordinalNumber(l.getUTCHours(),{unit:"hour"}):t.default.H(l,v)},K:function(l,v,u){var d=l.getUTCHours()%12;return v==="Ko"?u.ordinalNumber(d,{unit:"hour"}):(0,a.default)(d,v.length)},k:function(l,v,u){var d=l.getUTCHours();return d===0&&(d=24),v==="ko"?u.ordinalNumber(d,{unit:"hour"}):(0,a.default)(d,v.length)},m:function(l,v,u){return v==="mo"?u.ordinalNumber(l.getUTCMinutes(),{unit:"minute"}):t.default.m(l,v)},s:function(l,v,u){return v==="so"?u.ordinalNumber(l.getUTCSeconds(),{unit:"second"}):t.default.s(l,v)},S:function(l,v){return t.default.S(l,v)},X:function(l,v,u,d){var b=d._originalDate||l,w=b.getTimezoneOffset();if(w===0)return"Z";switch(v){case"X":return h(w);case"XXXX":case"XX":return M(w);case"XXXXX":case"XXX":default:return M(w,":")}},x:function(l,v,u,d){var b=d._originalDate||l,w=b.getTimezoneOffset();switch(v){case"x":return h(w);case"xxxx":case"xx":return M(w);case"xxxxx":case"xxx":default:return M(w,":")}},O:function(l,v,u,d){var b=d._originalDate||l,w=b.getTimezoneOffset();switch(v){case"O":case"OO":case"OOO":return"GMT"+x(w,":");case"OOOO":default:return"GMT"+M(w,":")}},z:function(l,v,u,d){var b=d._originalDate||l,w=b.getTimezoneOffset();switch(v){case"z":case"zz":case"zzz":return"GMT"+x(w,":");case"zzzz":default:return"GMT"+M(w,":")}},t:function(l,v,u,d){var b=d._originalDate||l,w=Math.floor(b.getTime()/1e3);return(0,a.default)(w,v.length)},T:function(l,v,u,d){var b=d._originalDate||l,w=b.getTime();return(0,a.default)(w,v.length)}};function x(T,l){var v=T>0?"-":"+",u=Math.abs(T),d=Math.floor(u/60),b=u%60;if(b===0)return v+String(d);var w=l||"";return v+String(d)+w+(0,a.default)(b,2)}function h(T,l){if(T%60===0){var v=T>0?"-":"+";return v+(0,a.default)(Math.abs(T)/60,2)}return M(T,l)}function M(T,l){var v=l||"",u=T>0?"-":"+",d=Math.abs(T),b=(0,a.default)(Math.floor(d/60),2),w=(0,a.default)(d%60,2);return u+b+v+w}var p=g;e.default=p,i.exports=e.default})(ge,ge.exports);var Ka=ge.exports,Pe={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},f=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},m=function(t,r){var c=t.match(/(P+)(p+)?/)||[],g=c[1],x=c[2];if(!x)return o(t,r);var h;switch(g){case"P":h=r.dateTime({width:"short"});break;case"PP":h=r.dateTime({width:"medium"});break;case"PPP":h=r.dateTime({width:"long"});break;case"PPPP":default:h=r.dateTime({width:"full"});break}return h.replace("{{date}}",o(g,r)).replace("{{time}}",f(x,r))},s={p:f,P:m},n=s;e.default=n,i.exports=e.default})(Pe,Pe.exports);var Qa=Pe.exports,Ee={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f){var m=new Date(Date.UTC(f.getFullYear(),f.getMonth(),f.getDate(),f.getHours(),f.getMinutes(),f.getSeconds(),f.getMilliseconds()));return m.setUTCFullYear(f.getFullYear()),f.getTime()-m.getTime()}i.exports=e.default})(Ee,Ee.exports);var ga=Ee.exports,q={};Object.defineProperty(q,"__esModule",{value:!0});q.isProtectedDayOfYearToken=et;q.isProtectedWeekYearToken=at;q.throwProtectedError=tt;var Ja=["D","DD"],ja=["YY","YYYY"];function et(i){return Ja.indexOf(i)!==-1}function at(i){return ja.indexOf(i)!==-1}function tt(i,e,o){if(i==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ce={exports:{}},Ge={exports:{}},ke={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},f=function(n,a,t){var r,c=o[n];return typeof c=="string"?r=c:a===1?r=c.one:r=c.other.replace("{{count}}",a.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r},m=f;e.default=m,i.exports=e.default})(ke,ke.exports);var rt=ke.exports,Ne={exports:{}},Ie={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f){return function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=m.width?String(m.width):f.defaultWidth,n=f.formats[s]||f.formats[f.defaultWidth];return n}}i.exports=e.default})(Ie,Ie.exports);var nt=Ie.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=f(nt);function f(r){return r&&r.__esModule?r:{default:r}}var m={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},s={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},n={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},a={date:(0,o.default)({formats:m,defaultWidth:"full"}),time:(0,o.default)({formats:s,defaultWidth:"full"}),dateTime:(0,o.default)({formats:n,defaultWidth:"full"})},t=a;e.default=t,i.exports=e.default})(Ne,Ne.exports);var it=Ne.exports,Ue={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},f=function(n,a,t,r){return o[n]},m=f;e.default=m,i.exports=e.default})(Ue,Ue.exports);var ot=Ue.exports,Ye={exports:{}},We={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f){return function(m,s){var n=s!=null&&s.context?String(s.context):"standalone",a;if(n==="formatting"&&f.formattingValues){var t=f.defaultFormattingWidth||f.defaultWidth,r=s!=null&&s.width?String(s.width):t;a=f.formattingValues[r]||f.formattingValues[t]}else{var c=f.defaultWidth,g=s!=null&&s.width?String(s.width):f.defaultWidth;a=f.values[g]||f.values[c]}var x=f.argumentCallback?f.argumentCallback(m):m;return a[x]}}i.exports=e.default})(We,We.exports);var ut=We.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=f(ut);function f(h){return h&&h.__esModule?h:{default:h}}var m={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},s={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},n={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},a={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},t={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},r={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(M,p){var T=Number(M),l=T%100;if(l>20||l<10)switch(l%10){case 1:return T+"st";case 2:return T+"nd";case 3:return T+"rd"}return T+"th"},g={ordinalNumber:c,era:(0,o.default)({values:m,defaultWidth:"wide"}),quarter:(0,o.default)({values:s,defaultWidth:"wide",argumentCallback:function(M){return M-1}}),month:(0,o.default)({values:n,defaultWidth:"wide"}),day:(0,o.default)({values:a,defaultWidth:"wide"}),dayPeriod:(0,o.default)({values:t,defaultWidth:"wide",formattingValues:r,defaultFormattingWidth:"wide"})},x=g;e.default=x,i.exports=e.default})(Ye,Ye.exports);var st=Ye.exports,Re={exports:{}},He={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(s){return function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=a.width,r=t&&s.matchPatterns[t]||s.matchPatterns[s.defaultMatchWidth],c=n.match(r);if(!c)return null;var g=c[0],x=t&&s.parsePatterns[t]||s.parsePatterns[s.defaultParseWidth],h=Array.isArray(x)?m(x,function(T){return T.test(g)}):f(x,function(T){return T.test(g)}),M;M=s.valueCallback?s.valueCallback(h):h,M=a.valueCallback?a.valueCallback(M):M;var p=n.slice(g.length);return{value:M,rest:p}}}function f(s,n){for(var a in s)if(s.hasOwnProperty(a)&&n(s[a]))return a}function m(s,n){for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:{},n=m.match(f.matchPattern);if(!n)return null;var a=n[0],t=m.match(f.parsePattern);if(!t)return null;var r=f.valueCallback?f.valueCallback(t[0]):t[0];r=s.valueCallback?s.valueCallback(r):r;var c=m.slice(a.length);return{value:r,rest:c}}}i.exports=e.default})(Fe,Fe.exports);var lt=Fe.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=m(ft),f=m(lt);function m(u){return u&&u.__esModule?u:{default:u}}var s=/^(\d+)(th|st|nd|rd)?/i,n=/\d+/i,a={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},t={any:[/^b/i,/^(a|c)/i]},r={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},g={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},x={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},M={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},p={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},T={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},l={ordinalNumber:(0,f.default)({matchPattern:s,parsePattern:n,valueCallback:function(d){return parseInt(d,10)}}),era:(0,o.default)({matchPatterns:a,defaultMatchWidth:"wide",parsePatterns:t,defaultParseWidth:"any"}),quarter:(0,o.default)({matchPatterns:r,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(d){return d+1}}),month:(0,o.default)({matchPatterns:g,defaultMatchWidth:"wide",parsePatterns:x,defaultParseWidth:"any"}),day:(0,o.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:M,defaultParseWidth:"any"}),dayPeriod:(0,o.default)({matchPatterns:p,defaultMatchWidth:"any",parsePatterns:T,defaultParseWidth:"any"})},v=l;e.default=v,i.exports=e.default})(Re,Re.exports);var dt=Re.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(rt),f=a(it),m=a(ot),s=a(st),n=a(dt);function a(c){return c&&c.__esModule?c:{default:c}}var t={code:"en-US",formatDistance:o.default,formatLong:f.default,formatRelative:m.default,localize:s.default,match:n.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},r=t;e.default=r,i.exports=e.default})(Ge,Ge.exports);var ct=Ge.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=f(ct);function f(s){return s&&s.__esModule?s:{default:s}}var m=o.default;e.default=m,i.exports=e.default})(Ce,Ce.exports);var mt=Ce.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var o=h(Wa),f=h(Ha),m=h(I),s=h(Ka),n=h(Qa),a=h(ga),t=q,r=h(H),c=h(P),g=F,x=h(mt);function h(b){return b&&b.__esModule?b:{default:b}}var M=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,p=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,T=/^'([^]*?)'?$/,l=/''/g,v=/[a-zA-Z]/;function u(b,w,S){var y,_,A,D,z,O,C,U,G,Y,k,N,ee,ae,te,re,ne,ie;(0,c.default)(2,arguments);var Sa=String(w),L=(0,g.getDefaultOptions)(),$=(y=(_=S==null?void 0:S.locale)!==null&&_!==void 0?_:L.locale)!==null&&y!==void 0?y:x.default,oe=(0,r.default)((A=(D=(z=(O=S==null?void 0:S.firstWeekContainsDate)!==null&&O!==void 0?O:S==null||(C=S.locale)===null||C===void 0||(U=C.options)===null||U===void 0?void 0:U.firstWeekContainsDate)!==null&&z!==void 0?z:L.firstWeekContainsDate)!==null&&D!==void 0?D:(G=L.locale)===null||G===void 0||(Y=G.options)===null||Y===void 0?void 0:Y.firstWeekContainsDate)!==null&&A!==void 0?A:1);if(!(oe>=1&&oe<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ue=(0,r.default)((k=(N=(ee=(ae=S==null?void 0:S.weekStartsOn)!==null&&ae!==void 0?ae:S==null||(te=S.locale)===null||te===void 0||(re=te.options)===null||re===void 0?void 0:re.weekStartsOn)!==null&&ee!==void 0?ee:L.weekStartsOn)!==null&&N!==void 0?N:(ne=L.locale)===null||ne===void 0||(ie=ne.options)===null||ie===void 0?void 0:ie.weekStartsOn)!==null&&k!==void 0?k:0);if(!(ue>=0&&ue<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!$.localize)throw new RangeError("locale must contain localize property");if(!$.formatLong)throw new RangeError("locale must contain formatLong property");var X=(0,m.default)(b);if(!(0,o.default)(X))throw new RangeError("Invalid time value");var za=(0,a.default)(X),Oa=(0,f.default)(X,za),Pa={firstWeekContainsDate:oe,weekStartsOn:ue,locale:$,_originalDate:X},Ea=Sa.match(p).map(function(E){var W=E[0];if(W==="p"||W==="P"){var Z=n.default[W];return Z(E,$.formatLong)}return E}).join("").match(M).map(function(E){if(E==="''")return"'";var W=E[0];if(W==="'")return d(E);var Z=s.default[W];if(Z)return!(S!=null&&S.useAdditionalWeekYearTokens)&&(0,t.isProtectedWeekYearToken)(E)&&(0,t.throwProtectedError)(E,w,String(b)),!(S!=null&&S.useAdditionalDayOfYearTokens)&&(0,t.isProtectedDayOfYearToken)(E)&&(0,t.throwProtectedError)(E,w,String(b)),Z(Oa,E,$.localize,Pa);if(W.match(v))throw new RangeError("Format string contains an unescaped latin alphabet character `"+W+"`");return E}).join("");return Ea}function d(b){var w=b.match(T);return w?w[1].replace(l,"'"):b}i.exports=e.default})(le,le.exports);var vt=le.exports,Le={exports:{}},$e={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(n,a,t){var r=s(n,t.timeZone,t.locale);return r.formatToParts?f(r,a):m(r,a)}function f(n,a){for(var t=n.formatToParts(a),r=t.length-1;r>=0;--r)if(t[r].type==="timeZoneName")return t[r].value}function m(n,a){var t=n.format(a).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(t);return r?r[0].substr(1):""}function s(n,a,t){if(t&&!t.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(t?[t.code,"en-US"]:void 0,{timeZone:a,timeZoneName:n})}i.exports=e.default})($e,$e.exports);var Tt=$e.exports,qe={exports:{}},Be={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(t,r){var c=a(r);return c.formatToParts?m(c,t):s(c,t)}var f={year:0,month:1,day:2,hour:3,minute:4,second:5};function m(t,r){try{for(var c=t.formatToParts(r),g=[],x=0;x=0&&(g[h]=parseInt(c[x].value,10))}return g}catch(M){if(M instanceof RangeError)return[NaN];throw M}}function s(t,r){var c=t.format(r).replace(/\u200E/g,""),g=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[g[3],g[1],g[2],g[4],g[5],g[6]]}var n={};function a(t){if(!n[t]){var r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=r==="06/25/2014, 00:00:00"||r==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";n[t]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return n[t]}i.exports=e.default})(Be,Be.exports);var ht=Be.exports,Xe={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f,m,s,n,a,t,r){var c=new Date(0);return c.setUTCFullYear(f,m,s),c.setUTCHours(n,a,t,r),c}i.exports=e.default})(Xe,Xe.exports);var pa=Xe.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var o=m(ht),f=m(pa);function m(p){return p&&p.__esModule?p:{default:p}}var s=36e5,n=6e4,a={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function t(p,T,l){var v,u;if(p===""||(v=a.timezoneZ.exec(p),v))return 0;var d;if(v=a.timezoneHH.exec(p),v)return d=parseInt(v[1],10),x(d)?-(d*s):NaN;if(v=a.timezoneHHMM.exec(p),v){d=parseInt(v[1],10);var b=parseInt(v[2],10);return x(d,b)?(u=Math.abs(d)*s+b*n,d>0?-u:u):NaN}if(M(p)){T=new Date(T||Date.now());var w=l?T:r(T),S=c(w,p),y=l?S:g(T,S,p);return-y}return NaN}function r(p){return(0,f.default)(p.getFullYear(),p.getMonth(),p.getDate(),p.getHours(),p.getMinutes(),p.getSeconds(),p.getMilliseconds())}function c(p,T){var l=(0,o.default)(p,T),v=(0,f.default)(l[0],l[1]-1,l[2],l[3]%24,l[4],l[5],0).getTime(),u=p.getTime(),d=u%1e3;return u-=d>=0?d:1e3+d,v-u}function g(p,T,l){var v=p.getTime(),u=v-T,d=c(new Date(u),l);if(T===d)return T;u-=d-T;var b=c(new Date(u),l);return d===b?d:Math.max(d,b)}function x(p,T){return-23<=p&&p<=23&&(T==null||0<=T&&T<=59)}var h={};function M(p){if(h[p])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:p}),h[p]=!0,!0}catch{return!1}}i.exports=e.default})(qe,qe.exports);var B=qe.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=m(Tt),f=m(B);function m(h){return h&&h.__esModule?h:{default:h}}var s=60*1e3,n={X:function(h,M,p,T){var l=a(T.timeZone,T._originalDate||h);if(l===0)return"Z";switch(M){case"X":return c(l);case"XXXX":case"XX":return r(l);case"XXXXX":case"XXX":default:return r(l,":")}},x:function(h,M,p,T){var l=a(T.timeZone,T._originalDate||h);switch(M){case"x":return c(l);case"xxxx":case"xx":return r(l);case"xxxxx":case"xxx":default:return r(l,":")}},O:function(h,M,p,T){var l=a(T.timeZone,T._originalDate||h);switch(M){case"O":case"OO":case"OOO":return"GMT"+g(l,":");case"OOOO":default:return"GMT"+r(l,":")}},z:function(h,M,p,T){var l=T._originalDate||h;switch(M){case"z":case"zz":case"zzz":return(0,o.default)("short",l,T);case"zzzz":default:return(0,o.default)("long",l,T)}}};function a(h,M){var p=h?(0,f.default)(h,M,!0)/s:M.getTimezoneOffset();if(Number.isNaN(p))throw new RangeError("Invalid time zone specified: "+h);return p}function t(h,M){for(var p=h<0?"-":"",T=Math.abs(h).toString();T.length0?"-":"+",l=Math.abs(h),v=t(Math.floor(l/60),2),u=t(Math.floor(l%60),2);return T+v+p+u}function c(h,M){if(h%60===0){var p=h>0?"-":"+";return p+t(Math.abs(h)/60,2)}return r(h,M)}function g(h,M){var p=h>0?"-":"+",T=Math.abs(h),l=Math.floor(T/60),v=T%60;if(v===0)return p+String(l);var u=M||"";return p+String(l)+u+t(v,2)}var x=n;e.default=x,i.exports=e.default})(Le,Le.exports);var bt=Le.exports,Ze={exports:{}},Ve={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,f=o;e.default=f,i.exports=e.default})(Ve,Ve.exports);var Ma=Ve.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=g;var o=n(H),f=n(ga),m=n(B),s=n(Ma);function n(y){return y&&y.__esModule?y:{default:y}}var a=36e5,t=6e4,r=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:s.default};function g(y,_){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(y===null)return new Date(NaN);var A=_||{},D=A.additionalDigits==null?r:(0,o.default)(A.additionalDigits);if(D!==2&&D!==1&&D!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(y instanceof Date||typeof y=="object"&&Object.prototype.toString.call(y)==="[object Date]")return new Date(y.getTime());if(typeof y=="number"||Object.prototype.toString.call(y)==="[object Number]")return new Date(y);if(!(typeof y=="string"||Object.prototype.toString.call(y)==="[object String]"))return new Date(NaN);var z=x(y),O=h(z.date,D),C=O.year,U=O.restDateString,G=M(U,C);if(isNaN(G))return new Date(NaN);if(G){var Y=G.getTime(),k=0,N;if(z.time&&(k=p(z.time),isNaN(k)))return new Date(NaN);if(z.timeZone||A.timeZone){if(N=(0,m.default)(z.timeZone||A.timeZone,new Date(Y+k)),isNaN(N))return new Date(NaN)}else N=(0,f.default)(new Date(Y+k)),N=(0,f.default)(new Date(Y+k+N));return new Date(Y+k+N)}else return new Date(NaN)}function x(y){var _={},A=c.dateTimePattern.exec(y),D;if(A?(_.date=A[1],D=A[3]):(A=c.datePattern.exec(y),A?(_.date=A[1],D=A[2]):(_.date=null,D=y)),D){var z=c.timeZone.exec(D);z?(_.time=D.replace(z[1],""),_.timeZone=z[1].trim()):_.time=D}return _}function h(y,_){var A=c.YYY[_],D=c.YYYYY[_],z;if(z=c.YYYY.exec(y)||D.exec(y),z){var O=z[1];return{year:parseInt(O,10),restDateString:y.slice(O.length)}}if(z=c.YY.exec(y)||A.exec(y),z){var C=z[1];return{year:parseInt(C,10)*100,restDateString:y.slice(C.length)}}return{year:null}}function M(y,_){if(_===null)return null;var A,D,z,O;if(y.length===0)return D=new Date(0),D.setUTCFullYear(_),D;if(A=c.MM.exec(y),A)return D=new Date(0),z=parseInt(A[1],10)-1,d(_,z)?(D.setUTCFullYear(_,z),D):new Date(NaN);if(A=c.DDD.exec(y),A){D=new Date(0);var C=parseInt(A[1],10);return b(_,C)?(D.setUTCFullYear(_,0,C),D):new Date(NaN)}if(A=c.MMDD.exec(y),A){D=new Date(0),z=parseInt(A[1],10)-1;var U=parseInt(A[2],10);return d(_,z,U)?(D.setUTCFullYear(_,z,U),D):new Date(NaN)}if(A=c.Www.exec(y),A)return O=parseInt(A[1],10)-1,w(_,O)?T(_,O):new Date(NaN);if(A=c.WwwD.exec(y),A){O=parseInt(A[1],10)-1;var G=parseInt(A[2],10)-1;return w(_,O,G)?T(_,O,G):new Date(NaN)}return null}function p(y){var _,A,D;if(_=c.HH.exec(y),_)return A=parseFloat(_[1].replace(",",".")),S(A)?A%24*a:NaN;if(_=c.HHMM.exec(y),_)return A=parseInt(_[1],10),D=parseFloat(_[2].replace(",",".")),S(A,D)?A%24*a+D*t:NaN;if(_=c.HHMMSS.exec(y),_){A=parseInt(_[1],10),D=parseInt(_[2],10);var z=parseFloat(_[3].replace(",","."));return S(A,D,z)?A%24*a+D*t+z*1e3:NaN}return null}function T(y,_,A){_=_||0,A=A||0;var D=new Date(0);D.setUTCFullYear(y,0,4);var z=D.getUTCDay()||7,O=_*7+A+1-z;return D.setUTCDate(D.getUTCDate()+O),D}var l=[31,28,31,30,31,30,31,31,30,31,30,31],v=[31,29,31,30,31,30,31,31,30,31,30,31];function u(y){return y%400===0||y%4===0&&y%100!==0}function d(y,_,A){if(_<0||_>11)return!1;if(A!=null){if(A<1)return!1;var D=u(y);if(D&&A>v[_]||!D&&A>l[_])return!1}return!0}function b(y,_){if(_<1)return!1;var A=u(y);return!(A&&_>366||!A&&_>365)}function w(y,_,A){return!(_<0||_>52||A!=null&&(A<0||A>6))}function S(y,_,A){return!(y!=null&&(y<0||y>=25)||_!=null&&(_<0||_>=60)||A!=null&&(A<0||A>=60))}i.exports=e.default})(Ze,Ze.exports);var J=Ze.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var o=s(vt),f=s(bt),m=s(J);function s(t){return t&&t.__esModule?t:{default:t}}var n=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function a(t,r,c){var g=String(r),x=c||{},h=g.match(n);if(h){var M=(0,m.default)(t,x);g=h.reduce(function(p,T){if(T[0]==="'")return p;var l=p.indexOf(T),v=p[l-1]==="'",u=p.replace(T,"'"+f.default[T[0]](M,T,null,x)+"'");return v?u.substring(0,l-1)+u.substring(l+1):u},g)}return(0,o.default)(t,g,x)}i.exports=e.default})(fe,fe.exports);var _a=fe.exports,Ke={exports:{}},Qe={exports:{}},Je={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f,m){if(f==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var s in m)Object.prototype.hasOwnProperty.call(m,s)&&(f[s]=m[s]);return f}i.exports=e.default})(Je,Je.exports);var gt=Je.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=m;var o=f(gt);function f(s){return s&&s.__esModule?s:{default:s}}function m(s){return(0,o.default)({},s)}i.exports=e.default})(Qe,Qe.exports);var Aa=Qe.exports,je={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var o=m(B),f=m(J);function m(n){return n&&n.__esModule?n:{default:n}}function s(n,a,t){var r=(0,f.default)(n,t),c=(0,o.default)(a,r,!0),g=new Date(r.getTime()-c),x=new Date(0);return x.setFullYear(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate()),x.setHours(g.getUTCHours(),g.getUTCMinutes(),g.getUTCSeconds(),g.getUTCMilliseconds()),x}i.exports=e.default})(je,je.exports);var xa=je.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=s(Aa),f=s(_a),m=s(xa);function s(a){return a&&a.__esModule?a:{default:a}}function n(a,t,r,c){var g=(0,o.default)(c);return g.timeZone=t,(0,f.default)((0,m.default)(a,t),r,g)}i.exports=e.default})(Ke,Ke.exports);var pt=Ke.exports,ea={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=m;var o=f(B);function f(s){return s&&s.__esModule?s:{default:s}}function m(s,n){return-(0,o.default)(s,n)}i.exports=e.default})(ea,ea.exports);var Mt=ea.exports,aa={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var o=a(Aa),f=a(J),m=a(Ma),s=a(B),n=a(pa);function a(r){return r&&r.__esModule?r:{default:r}}function t(r,c,g){if(typeof r=="string"&&!r.match(m.default)){var x=(0,o.default)(g);return x.timeZone=c,(0,f.default)(r,x)}var h=(0,f.default)(r,g),M=(0,n.default)(h.getFullYear(),h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()).getTime(),p=(0,s.default)(c,new Date(M));return new Date(M+p)}i.exports=e.default})(aa,aa.exports);var _t=aa.exports,ta={format:_a,formatInTimeZone:pt,getTimezoneOffset:Mt,toDate:J,utcToZonedTime:xa,zonedTimeToUtc:_t};function ia(i,e){if(i==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o]);return i}function ya(i){return ia({},i)}var oa=1440,At=2520,se=43200,xt=86400;function yt(i,e,o){var f,m;Q(2,arguments);var s=ma(),n=(f=(m=o==null?void 0:o.locale)!==null&&m!==void 0?m:s.locale)!==null&&f!==void 0?f:da;if(!n.formatDistance)throw new RangeError("locale must contain formatDistance property");var a=ca(i,e);if(isNaN(a))throw new RangeError("Invalid time value");var t=ia(ya(o),{addSuffix:!!(o!=null&&o.addSuffix),comparison:a}),r,c;a>0?(r=R(e),c=R(i)):(r=R(i),c=R(e));var g=Ca(c,r),x=(V(c)-V(r))/1e3,h=Math.round((g-x)/60),M;if(h<2)return o!=null&&o.includeSeconds?g<5?n.formatDistance("lessThanXSeconds",5,t):g<10?n.formatDistance("lessThanXSeconds",10,t):g<20?n.formatDistance("lessThanXSeconds",20,t):g<40?n.formatDistance("halfAMinute",0,t):g<60?n.formatDistance("lessThanXMinutes",1,t):n.formatDistance("xMinutes",1,t):h===0?n.formatDistance("lessThanXMinutes",1,t):n.formatDistance("xMinutes",h,t);if(h<45)return n.formatDistance("xMinutes",h,t);if(h<90)return n.formatDistance("aboutXHours",1,t);if(h0?(c=R(e),g=R(i)):(c=R(i),g=R(e));var x=String((s=o==null?void 0:o.roundingMethod)!==null&&s!==void 0?s:"round"),h;if(x==="floor")h=Math.floor;else if(x==="ceil")h=Math.ceil;else if(x==="round")h=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var M=g.getTime()-c.getTime(),p=M/ua,T=V(g)-V(c),l=(M-T)/ua,v=o==null?void 0:o.unit,u;if(v?u=String(v):p<1?u="second":p<60?u="minute":p9?`${o}:00`:`0${o}:00`;if(i>0)return`${e}+${f}`;if(i<0)return`${e}-${f}`}function wa(){return Intl.DateTimeFormat().resolvedOptions().timeZone}function Ot(){const i=wa(),e=Pt.find(({zones:o})=>o==null?void 0:o.includes(i));return e?`${e.label} (${e.abbr})`:i}function Ut(i){if(i==="local")return Ot();const e=j[i];return e?`${i} (${e.abbr})`:i}function Yt({date:i=new Date,hour:e=0,minute:o=0,second:f=0}={}){const m=Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),Number(e),Number(o),Number(f));return new Date(m).toISOString()}const Wt=la("timeFormat","UTC"),Rt=la("relativeTime",!1),j={"Greenwich Mean Time":{abbr:"GMT",offset:0,zones:["Africa/Abidjan","Africa/Accra","Africa/Bamako","Africa/Banjul","Africa/Bissau","Africa/Conakry","Africa/Dakar","Africa/Freetown","Africa/Lome","Africa/Monrovia","Africa/Nouakchott","Africa/Ouagadougou","Africa/Sao_Tome","America/Danmarkshavn","Atlantic/Reykjavik","Atlantic/St_Helena"]},"East Africa Time":{abbr:"GMT+3",offset:3,zones:["Africa/Addis_Ababa","Africa/Asmera","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Kampala","Africa/Mogadishu","Africa/Nairobi","Indian/Antananarivo","Indian/Comoro","Indian/Mayotte"]},"Central European Standard Time":{abbr:"GMT+1",offset:1,zones:["Africa/Algiers","Africa/Tunis"]},"West Africa Standard Time":{abbr:"GMT+1",offset:1,zones:["Africa/Bangui","Africa/Brazzaville","Africa/Douala","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Luanda","Africa/Malabo","Africa/Ndjamena","Africa/Niamey","Africa/Porto-Novo"]},"Central Africa Time":{abbr:"GMT+2",offset:2,zones:["Africa/Blantyre","Africa/Bujumbura","Africa/Gaborone","Africa/Harare","Africa/Juba","Africa/Khartoum","Africa/Kigali","Africa/Lubumbashi","Africa/Lusaka","Africa/Maputo","Africa/Windhoek"]},"Eastern European Summer Time":{abbr:"GMT+3",offset:3,zones:["Africa/Cairo","Asia/Beirut","Asia/Gaza","Asia/Hebron","Asia/Nicosia","Europe/Athens","Europe/Bucharest","Europe/Chisinau","Europe/Helsinki","Europe/Kiev","Europe/Mariehamn","Europe/Riga","Europe/Sofia","Europe/Tallinn","Europe/Uzhgorod","Europe/Vilnius","Europe/Zaporozhye"]},"GMT+01:00":{abbr:"GMT+1",offset:1,zones:["Africa/Casablanca","Africa/El_Aaiun","Europe/Guernsey","Europe/Isle_of_Man","Europe/Jersey"]},"Central European Summer Time":{abbr:"GMT+2",offset:2,zones:["Africa/Ceuta","Arctic/Longyearbyen","Europe/Amsterdam","Europe/Andorra","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Budapest","Europe/Busingen","Europe/Copenhagen","Europe/Gibraltar","Europe/Ljubljana","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Monaco","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Rome","Europe/San_Marino","Europe/Sarajevo","Europe/Skopje","Europe/Stockholm","Europe/Tirane","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Warsaw","Europe/Zagreb","Europe/Zurich"]},"South Africa Standard Time":{abbr:"GMT+2",offset:2,zones:["Africa/Johannesburg","Africa/Maseru","Africa/Mbabane"]},"Eastern European Standard Time":{abbr:"GMT+2",offset:2,zones:["Africa/Tripoli","Europe/Kaliningrad"]},"Hawaii-Aleutian Daylight Time":{abbr:"HADT",offset:-9,zones:["America/Adak"]},"Alaska Daylight Time":{abbr:"AKDT",offset:-8,zones:["America/Anchorage","America/Juneau","America/Metlakatla","America/Nome","America/Sitka","America/Yakutat"]},"Atlantic Standard Time":{abbr:"AST",offset:-4,zones:["America/Anguilla","America/Antigua","America/Aruba","America/Barbados","America/Blanc-Sablon","America/Curacao","America/Dominica","America/Grenada","America/Guadeloupe","America/Kralendijk","America/Lower_Princes","America/Marigot","America/Martinique","America/Montserrat","America/Port_of_Spain","America/Puerto_Rico","America/Santo_Domingo","America/St_Barthelemy","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Tortola"]},"Brasilia Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Araguaina","America/Bahia","America/Belem","America/Fortaleza","America/Maceio","America/Recife","America/Santarem","America/Sao_Paulo"]},"Argentina Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Argentina/La_Rioja","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Buenos_Aires","America/Catamarca","America/Cordoba","America/Jujuy","America/Mendoza"]},"Paraguay Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Asuncion"]},"Central Standard Time":{abbr:"CST",offset:-6,zones:["America/Bahia_Banderas","America/Belize","America/Chihuahua","America/Costa_Rica","America/El_Salvador","America/Guatemala","America/Managua","America/Merida","America/Mexico_City","America/Monterrey","America/Regina","America/Swift_Current","America/Tegucigalpa"]},"Amazon Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Boa_Vista","America/Campo_Grande","America/Cuiaba","America/Manaus","America/Porto_Velho"]},"Colombia Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Bogota"]},"Mountain Daylight Time":{abbr:"MDT",offset:-6,zones:["America/Boise","America/Cambridge_Bay","America/Ciudad_Juarez","America/Denver","America/Edmonton","America/Inuvik","America/Yellowknife"]},"Eastern Standard Time":{abbr:"EST",offset:-5,zones:["America/Cancun","America/Cayman","America/Coral_Harbour","America/Jamaica","America/Panama"]},"Venezuela Time":{abbr:"GMT-4",offset:-4,zones:["America/Caracas"]},"French Guiana Time":{abbr:"GMT-3",offset:-3,zones:["America/Cayenne"]},"Central Daylight Time":{abbr:"CDT",offset:-5,zones:["America/Chicago","America/Indiana/Knox","America/Indiana/Tell_City","America/Matamoros","America/Menominee","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Rainy_River","America/Rankin_Inlet","America/Resolute","America/Winnipeg"]},"Mountain Standard Time":{abbr:"MST",offset:-7,zones:["America/Creston","America/Dawson_Creek","America/Fort_Nelson","America/Phoenix"]},"Yukon Time":{abbr:"GMT-7",offset:-7,zones:["America/Dawson","America/Whitehorse"]},"Eastern Daylight Time":{abbr:"EDT",offset:-4,zones:["America/Detroit","America/Grand_Turk","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Iqaluit","America/Kentucky/Monticello","America/Louisville","America/Nassau","America/New_York","America/Nipigon","America/Pangnirtung","America/Port-au-Prince","America/Thunder_Bay","America/Toronto"]},"Acre Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Eirunepe","America/Rio_Branco"]},"Atlantic Daylight Time":{abbr:"ADT",offset:-3,zones:["America/Glace_Bay","America/Goose_Bay","America/Halifax","America/Moncton","America/Thule","Atlantic/Bermuda"]},"West Greenland Summer Time":{abbr:"GMT-2",offset:-2,zones:["America/Godthab"]},"Ecuador Time":{abbr:"GMT-5",offset:-5,zones:["America/Guayaquil"]},"Guyana Time":{abbr:"GMT-4",offset:-4,zones:["America/Guyana"]},"Cuba Daylight Time":{abbr:"GMT-4",offset:-4,zones:["America/Havana"]},"Mexican Pacific Standard Time":{abbr:"GMT-7",offset:-7,zones:["America/Hermosillo","America/Mazatlan"]},"Bolivia Time":{abbr:"GMT-4",offset:-4,zones:["America/La_Paz"]},"Peru Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Lima"]},"Pacific Daylight Time":{abbr:"PDT",offset:-7,zones:["America/Los_Angeles","America/Tijuana","America/Vancouver"]},"St. Pierre & Miquelon Daylight Time":{abbr:"GMT-2",offset:-2,zones:["America/Miquelon"]},"Uruguay Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Montevideo"]},"GMT-04:00":{abbr:"GMT-4",offset:-4,zones:["America/Montreal"]},"Fernando de Noronha Standard Time":{abbr:"GMT-2",offset:-2,zones:["America/Noronha"]},"Suriname Time":{abbr:"GMT-3",offset:-3,zones:["America/Paramaribo"]},"GMT-03:00":{abbr:"GMT-3",offset:-3,zones:["America/Punta_Arenas","Antarctica/Palmer"]},"Northwest Mexico Daylight Time":{abbr:"GMT-7",offset:-7,zones:["America/Santa_Isabel"]},"Chile Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Santiago"]},"East Greenland Summer Time":{abbr:"GMT",offset:0,zones:["America/Scoresbysund"]},"Newfoundland Daylight Time":{abbr:"GMT-2:30",offset:-3,zones:["America/St_Johns"]},"Casey Time":{abbr:"GMT+11",offset:11,zones:["Antarctica/Casey"]},"Davis Time":{abbr:"GMT+7",offset:7,zones:["Antarctica/Davis"]},"Dumont-d’Urville Time":{abbr:"GMT+10",offset:10,zones:["Antarctica/DumontDUrville"]},"Australian Eastern Standard Time":{abbr:"GMT+10",offset:10,zones:["Antarctica/Macquarie","Australia/Brisbane","Australia/Currie","Australia/Hobart","Australia/Lindeman","Australia/Melbourne","Australia/Sydney"]},"Mawson Time":{abbr:"GMT+5",offset:5,zones:["Antarctica/Mawson"]},"New Zealand Standard Time":{abbr:"GMT+12",offset:12,zones:["Antarctica/McMurdo","Pacific/Auckland"]},"Rothera Time":{abbr:"GMT-3",offset:-3,zones:["Antarctica/Rothera"]},"Syowa Time":{abbr:"GMT+3",offset:3,zones:["Antarctica/Syowa"]},"GMT+02:00":{abbr:"GMT+2",offset:2,zones:["Antarctica/Troll"]},"Vostok Time":{abbr:"GMT+6",offset:6,zones:["Antarctica/Vostok"]},"Arabian Standard Time":{abbr:"GMT+3",offset:3,zones:["Asia/Aden","Asia/Baghdad","Asia/Bahrain","Asia/Kuwait","Asia/Qatar","Asia/Riyadh"]},"East Kazakhstan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Almaty","Asia/Qostanay"]},"GMT+03:00":{abbr:"GMT+3",offset:3,zones:["Asia/Amman","Asia/Damascus","Asia/Famagusta","Europe/Istanbul","Europe/Kirov"]},"Anadyr Standard Time":{abbr:"GMT+12",offset:12,zones:["Asia/Anadyr"]},"West Kazakhstan Time":{abbr:"GMT+5",offset:5,zones:["Asia/Aqtau","Asia/Aqtobe","Asia/Atyrau","Asia/Oral","Asia/Qyzylorda"]},"Turkmenistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Ashgabat"]},"Azerbaijan Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Baku"]},"Indochina Time":{abbr:"GMT+7",offset:7,zones:["Asia/Bangkok","Asia/Phnom_Penh","Asia/Saigon","Asia/Vientiane"]},"GMT+07:00":{abbr:"GMT+7",offset:7,zones:["Asia/Barnaul","Asia/Tomsk"]},"Kyrgyzstan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Bishkek"]},"Brunei Darussalam Time":{abbr:"GMT+8",offset:8,zones:["Asia/Brunei"]},"India Standard Time":{abbr:"GMT+5:30",offset:5,zones:["Asia/Calcutta","Asia/Colombo"]},"Yakutsk Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Chita","Asia/Khandyga","Asia/Yakutsk"]},"Ulaanbaatar Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Choibalsan","Asia/Ulaanbaatar"]},"Bangladesh Standard Time":{abbr:"GMT+6",offset:6,zones:["Asia/Dhaka"]},"East Timor Time":{abbr:"GMT+9",offset:9,zones:["Asia/Dili"]},"Gulf Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Dubai","Asia/Muscat"]},"Tajikistan Time":{abbr:"GMT+5",offset:5,zones:["Asia/Dushanbe"]},"Hong Kong Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Hong_Kong"]},"Hovd Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Hovd"]},"Irkutsk Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Irkutsk"]},"Western Indonesia Time":{abbr:"GMT+7",offset:7,zones:["Asia/Jakarta","Asia/Pontianak"]},"Eastern Indonesia Time":{abbr:"GMT+9",offset:9,zones:["Asia/Jayapura"]},"Israel Daylight Time":{abbr:"GMT+3",offset:3,zones:["Asia/Jerusalem"]},"Afghanistan Time":{abbr:"GMT+4:30",offset:4,zones:["Asia/Kabul"]},"Petropavlovsk-Kamchatski Standard Time":{abbr:"GMT+12",offset:12,zones:["Asia/Kamchatka"]},"Pakistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Karachi"]},"Nepal Time":{abbr:"GMT+5:45",offset:5,zones:["Asia/Katmandu"]},"Krasnoyarsk Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Krasnoyarsk","Asia/Novokuznetsk"]},"Malaysia Time":{abbr:"GMT+8",offset:8,zones:["Asia/Kuala_Lumpur","Asia/Kuching"]},"China Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Macau","Asia/Shanghai"]},"Magadan Standard Time":{abbr:"GMT+11",offset:11,zones:["Asia/Magadan"]},"Central Indonesia Time":{abbr:"GMT+8",offset:8,zones:["Asia/Makassar"]},"Philippine Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Manila"]},"Novosibirsk Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Novosibirsk"]},"Omsk Standard Time":{abbr:"GMT+6",offset:6,zones:["Asia/Omsk"]},"Korean Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Pyongyang","Asia/Seoul"]},"Myanmar Time":{abbr:"GMT+6:30",offset:6,zones:["Asia/Rangoon"]},"Sakhalin Standard Time":{abbr:"GMT+11",offset:11,zones:["Asia/Sakhalin"]},"Uzbekistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Samarkand","Asia/Tashkent"]},"Singapore Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Singapore"]},"GMT+11:00":{abbr:"GMT+11",offset:11,zones:["Asia/Srednekolymsk","Pacific/Bougainville"]},"Taipei Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Taipei"]},"Georgia Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Tbilisi"]},"Iran Standard Time":{abbr:"GMT+3:30",offset:3,zones:["Asia/Tehran"]},"Bhutan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Thimphu"]},"Japan Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Tokyo"]},"GMT+06:00":{abbr:"GMT+6",offset:6,zones:["Asia/Urumqi"]},"Vladivostok Standard Time":{abbr:"GMT+10",offset:10,zones:["Asia/Ust-Nera","Asia/Vladivostok"]},"Yekaterinburg Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Yekaterinburg"]},"Armenia Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Yerevan"]},"Azores Summer Time":{abbr:"GMT",offset:0,zones:["Atlantic/Azores"]},"Western European Summer Time":{abbr:"GMT+1",offset:1,zones:["Atlantic/Canary","Atlantic/Faeroe","Atlantic/Madeira","Europe/Lisbon"]},"Cape Verde Standard Time":{abbr:"GMT-1",offset:-1,zones:["Atlantic/Cape_Verde"]},"South Georgia Time":{abbr:"GMT-2",offset:-2,zones:["Atlantic/South_Georgia"]},"Falkland Islands Standard Time":{abbr:"GMT-3",offset:-3,zones:["Atlantic/Stanley"]},"Australian Central Standard Time":{abbr:"GMT+9:30",offset:9,zones:["Australia/Adelaide","Australia/Broken_Hill","Australia/Darwin"]},"Australian Central Western Standard Time":{abbr:"GMT+8:45",offset:8,zones:["Australia/Eucla"]},"Lord Howe Standard Time":{abbr:"GMT+10:30",offset:10,zones:["Australia/Lord_Howe"]},"Australian Western Standard Time":{abbr:"GMT+8",offset:8,zones:["Australia/Perth"]},"GMT+04:00":{abbr:"GMT+4",offset:4,zones:["Europe/Astrakhan","Europe/Saratov","Europe/Ulyanovsk"]},"Irish Standard Time":{abbr:"GMT+1",offset:1,zones:["Europe/Dublin"]},"British Summer Time":{abbr:"GMT+1",offset:1,zones:["Europe/London"]},"Moscow Standard Time":{abbr:"GMT+3",offset:3,zones:["Europe/Minsk","Europe/Moscow","Europe/Simferopol"]},"Samara Standard Time":{abbr:"GMT+4",offset:4,zones:["Europe/Samara"]},"Volgograd Standard Time":{abbr:"GMT+3",offset:3,zones:["Europe/Volgograd"]},"Indian Ocean Time":{abbr:"GMT+6",offset:6,zones:["Indian/Chagos"]},"Christmas Island Time":{abbr:"GMT+7",offset:7,zones:["Indian/Christmas"]},"Cocos Islands Time":{abbr:"GMT+6:30",offset:6,zones:["Indian/Cocos"]},"French Southern & Antarctic Time":{abbr:"GMT+5",offset:5,zones:["Indian/Kerguelen"]},"Seychelles Time":{abbr:"GMT+4",offset:4,zones:["Indian/Mahe"]},"Maldives Time":{abbr:"GMT+5",offset:5,zones:["Indian/Maldives"]},"Mauritius Standard Time":{abbr:"GMT+4",offset:4,zones:["Indian/Mauritius"]},"Réunion Time":{abbr:"GMT+4",offset:4,zones:["Indian/Reunion"]},"Apia Standard Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Apia"]},"Chatham Standard Time":{abbr:"GMT+12:45",offset:12,zones:["Pacific/Chatham"]},"Easter Island Standard Time":{abbr:"GMT-6",offset:-6,zones:["Pacific/Easter"]},"Vanuatu Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Efate"]},"Phoenix Islands Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Enderbury"]},"Tokelau Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Fakaofo"]},"Fiji Standard Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Fiji"]},"Tuvalu Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Funafuti"]},"Galapagos Time":{abbr:"GMT-6",offset:-6,zones:["Pacific/Galapagos"]},"Gambier Time":{abbr:"GMT-9",offset:-9,zones:["Pacific/Gambier"]},"Solomon Islands Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Guadalcanal"]},"Chamorro Standard Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Guam","Pacific/Saipan"]},"Hawaii-Aleutian Standard Time":{abbr:"HST",offset:-10,zones:["Pacific/Honolulu","Pacific/Johnston"]},"Line Islands Time":{abbr:"GMT+14",offset:14,zones:["Pacific/Kiritimati"]},"Kosrae Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Kosrae"]},"Marshall Islands Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Kwajalein","Pacific/Majuro"]},"Marquesas Time":{abbr:"GMT-9:30",offset:-10,zones:["Pacific/Marquesas"]},"Samoa Standard Time":{abbr:"GMT-11",offset:-11,zones:["Pacific/Midway","Pacific/Pago_Pago"]},"Nauru Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Nauru"]},"Niue Time":{abbr:"GMT-11",offset:-11,zones:["Pacific/Niue"]},"Norfolk Island Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Norfolk"]},"New Caledonia Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Noumea"]},"Palau Time":{abbr:"GMT+9",offset:9,zones:["Pacific/Palau"]},"Pitcairn Time":{abbr:"GMT-8",offset:-8,zones:["Pacific/Pitcairn"]},"Ponape Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Ponape"]},"Papua New Guinea Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Port_Moresby"]},"Cook Islands Standard Time":{abbr:"GMT-10",offset:-10,zones:["Pacific/Rarotonga"]},"Tahiti Time":{abbr:"GMT-10",offset:-10,zones:["Pacific/Tahiti"]},"Gilbert Islands Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Tarawa"]},"Tonga Standard Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Tongatapu"]},"Chuuk Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Truk"]},"Wake Island Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Wake"]},"Wallis & Futuna Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Wallis"]}},Pt=Object.entries(j).map(([i,e])=>({label:i,value:i,...e})).sort((i,e)=>i.label>e.label?1:e.label>i.label?-1:0),Da=i=>{var e;return i==="local"?wa():((e=j[i])==null?void 0:e.zones[0])??i},Et=i=>{const e=String(Math.abs(i)).padStart(2,"0");return i>=0?`+${e}:00`:`-${e}:00`},Ht=i=>{var o;let e=(o=j[i])==null?void 0:o.offset;if(e===void 0){const f=Da(i),m=ta.getTimezoneOffset(f);m?e=m/1e3/60/60:e=0}return Et(e)};export{Pt as T,Ot as a,j as b,It as c,Ut as d,Da as e,kt as f,Yt as g,ta as h,Nt as i,Ht as j,Rt as r,Wt as t}; +import{p as la}from"./persist-store.cEgNkZhn.js";import{r as Q,x as da,y as ca,e as R,z as Ca,A as V,B as Ga,C as ma,D as ka,E as Na,F as Ia,G as Ua}from"./format-time.PmxHXK_V.js";var fe={exports:{}},le={exports:{}},de={exports:{}},ce={exports:{}},me={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f,m){if(m.length1?"s":"")+" required, but only "+m.length+" present")}i.exports=e.default})(me,me.exports);var P=me.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var o=f(P);function f(n){return n&&n.__esModule?n:{default:n}}function m(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(t){return typeof t}:m=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(n)}function s(n){return(0,o.default)(1,arguments),n instanceof Date||m(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}i.exports=e.default})(ce,ce.exports);var Ya=ce.exports,ve={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var o=f(P);function f(n){return n&&n.__esModule?n:{default:n}}function m(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(t){return typeof t}:m=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(n)}function s(n){(0,o.default)(1,arguments);var a=Object.prototype.toString.call(n);return n instanceof Date||m(n)==="object"&&a==="[object Date]"?new Date(n.getTime()):typeof n=="number"||a==="[object Number]"?new Date(n):((typeof n=="string"||a==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}i.exports=e.default})(ve,ve.exports);var I=ve.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=s(Ya),f=s(I),m=s(P);function s(a){return a&&a.__esModule?a:{default:a}}function n(a){if((0,m.default)(1,arguments),!(0,o.default)(a)&&typeof a!="number")return!1;var t=(0,f.default)(a);return!isNaN(Number(t))}i.exports=e.default})(de,de.exports);var Wa=de.exports,Te={exports:{}},he={exports:{}},be={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f){if(f===null||f===!0||f===!1)return NaN;var m=Number(f);return isNaN(m)?m:m<0?Math.ceil(m):Math.floor(m)}i.exports=e.default})(be,be.exports);var H=be.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=s(H),f=s(I),m=s(P);function s(a){return a&&a.__esModule?a:{default:a}}function n(a,t){(0,m.default)(2,arguments);var r=(0,f.default)(a).getTime(),c=(0,o.default)(t);return new Date(r+c)}i.exports=e.default})(he,he.exports);var Ra=he.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=s(Ra),f=s(P),m=s(H);function s(a){return a&&a.__esModule?a:{default:a}}function n(a,t){(0,f.default)(2,arguments);var r=(0,m.default)(t);return(0,o.default)(a,-r)}i.exports=e.default})(Te,Te.exports);var Ha=Te.exports,ge={exports:{}},pe={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=m(I),f=m(P);function m(a){return a&&a.__esModule?a:{default:a}}var s=864e5;function n(a){(0,f.default)(1,arguments);var t=(0,o.default)(a),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var c=t.getTime(),g=r-c;return Math.floor(g/s)+1}i.exports=e.default})(pe,pe.exports);var Fa=pe.exports,Me={exports:{}},_e={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var o=m(I),f=m(P);function m(n){return n&&n.__esModule?n:{default:n}}function s(n){(0,f.default)(1,arguments);var a=1,t=(0,o.default)(n),r=t.getUTCDay(),c=(r=g.getTime()?r+1:t.getTime()>=h.getTime()?r:r-1}i.exports=e.default})(xe,xe.exports);var va=xe.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=s(va),f=s(ra),m=s(P);function s(a){return a&&a.__esModule?a:{default:a}}function n(a){(0,m.default)(1,arguments);var t=(0,o.default)(a),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var c=(0,f.default)(r);return c}i.exports=e.default})(Ae,Ae.exports);var La=Ae.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var o=n(I),f=n(ra),m=n(La),s=n(P);function n(r){return r&&r.__esModule?r:{default:r}}var a=6048e5;function t(r){(0,s.default)(1,arguments);var c=(0,o.default)(r),g=(0,f.default)(c).getTime()-(0,m.default)(c).getTime();return Math.round(g/a)+1}i.exports=e.default})(Me,Me.exports);var $a=Me.exports,ye={exports:{}},we={exports:{}},F={};Object.defineProperty(F,"__esModule",{value:!0});F.getDefaultOptions=qa;F.setDefaultOptions=Ba;var Ta={};function qa(){return Ta}function Ba(i){Ta=i}(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var o=n(I),f=n(P),m=n(H),s=F;function n(t){return t&&t.__esModule?t:{default:t}}function a(t,r){var c,g,x,h,M,p,T,l;(0,f.default)(1,arguments);var v=(0,s.getDefaultOptions)(),u=(0,m.default)((c=(g=(x=(h=r==null?void 0:r.weekStartsOn)!==null&&h!==void 0?h:r==null||(M=r.locale)===null||M===void 0||(p=M.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&x!==void 0?x:v.weekStartsOn)!==null&&g!==void 0?g:(T=v.locale)===null||T===void 0||(l=T.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&c!==void 0?c:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=(0,o.default)(t),b=d.getUTCDay(),w=(b=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=new Date(0);S.setUTCFullYear(d+1,0,w),S.setUTCHours(0,0,0,0);var y=(0,m.default)(S,c),_=new Date(0);_.setUTCFullYear(d,0,w),_.setUTCHours(0,0,0,0);var A=(0,m.default)(_,c);return u.getTime()>=y.getTime()?d+1:u.getTime()>=A.getTime()?d:d-1}i.exports=e.default})(Se,Se.exports);var ha=Se.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var o=a(ha),f=a(P),m=a(na),s=a(H),n=F;function a(r){return r&&r.__esModule?r:{default:r}}function t(r,c){var g,x,h,M,p,T,l,v;(0,f.default)(1,arguments);var u=(0,n.getDefaultOptions)(),d=(0,s.default)((g=(x=(h=(M=c==null?void 0:c.firstWeekContainsDate)!==null&&M!==void 0?M:c==null||(p=c.locale)===null||p===void 0||(T=p.options)===null||T===void 0?void 0:T.firstWeekContainsDate)!==null&&h!==void 0?h:u.firstWeekContainsDate)!==null&&x!==void 0?x:(l=u.locale)===null||l===void 0||(v=l.options)===null||v===void 0?void 0:v.firstWeekContainsDate)!==null&&g!==void 0?g:1),b=(0,o.default)(r,c),w=new Date(0);w.setUTCFullYear(b,0,d),w.setUTCHours(0,0,0,0);var S=(0,m.default)(w,c);return S}i.exports=e.default})(De,De.exports);var Xa=De.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var o=n(I),f=n(na),m=n(Xa),s=n(P);function n(r){return r&&r.__esModule?r:{default:r}}var a=6048e5;function t(r,c){(0,s.default)(1,arguments);var g=(0,o.default)(r),x=(0,f.default)(g,c).getTime()-(0,m.default)(g,c).getTime();return Math.round(x/a)+1}i.exports=e.default})(ye,ye.exports);var Za=ye.exports,ze={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f,m){for(var s=f<0?"-":"",n=Math.abs(f).toString();n.length0?r:1-r;return(0,o.default)(t==="yy"?c%100:c,t.length)},M:function(a,t){var r=a.getUTCMonth();return t==="M"?String(r+1):(0,o.default)(r+1,2)},d:function(a,t){return(0,o.default)(a.getUTCDate(),t.length)},a:function(a,t){var r=a.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(a,t){return(0,o.default)(a.getUTCHours()%12||12,t.length)},H:function(a,t){return(0,o.default)(a.getUTCHours(),t.length)},m:function(a,t){return(0,o.default)(a.getUTCMinutes(),t.length)},s:function(a,t){return(0,o.default)(a.getUTCSeconds(),t.length)},S:function(a,t){var r=t.length,c=a.getUTCMilliseconds(),g=Math.floor(c*Math.pow(10,r-3));return(0,o.default)(g,t.length)}},s=m;e.default=s,i.exports=e.default})(Oe,Oe.exports);var Va=Oe.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(Fa),f=r($a),m=r(va),s=r(Za),n=r(ha),a=r(ba),t=r(Va);function r(T){return T&&T.__esModule?T:{default:T}}var c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},g={G:function(l,v,u){var d=l.getUTCFullYear()>0?1:0;switch(v){case"G":case"GG":case"GGG":return u.era(d,{width:"abbreviated"});case"GGGGG":return u.era(d,{width:"narrow"});case"GGGG":default:return u.era(d,{width:"wide"})}},y:function(l,v,u){if(v==="yo"){var d=l.getUTCFullYear(),b=d>0?d:1-d;return u.ordinalNumber(b,{unit:"year"})}return t.default.y(l,v)},Y:function(l,v,u,d){var b=(0,n.default)(l,d),w=b>0?b:1-b;if(v==="YY"){var S=w%100;return(0,a.default)(S,2)}return v==="Yo"?u.ordinalNumber(w,{unit:"year"}):(0,a.default)(w,v.length)},R:function(l,v){var u=(0,m.default)(l);return(0,a.default)(u,v.length)},u:function(l,v){var u=l.getUTCFullYear();return(0,a.default)(u,v.length)},Q:function(l,v,u){var d=Math.ceil((l.getUTCMonth()+1)/3);switch(v){case"Q":return String(d);case"QQ":return(0,a.default)(d,2);case"Qo":return u.ordinalNumber(d,{unit:"quarter"});case"QQQ":return u.quarter(d,{width:"abbreviated",context:"formatting"});case"QQQQQ":return u.quarter(d,{width:"narrow",context:"formatting"});case"QQQQ":default:return u.quarter(d,{width:"wide",context:"formatting"})}},q:function(l,v,u){var d=Math.ceil((l.getUTCMonth()+1)/3);switch(v){case"q":return String(d);case"qq":return(0,a.default)(d,2);case"qo":return u.ordinalNumber(d,{unit:"quarter"});case"qqq":return u.quarter(d,{width:"abbreviated",context:"standalone"});case"qqqqq":return u.quarter(d,{width:"narrow",context:"standalone"});case"qqqq":default:return u.quarter(d,{width:"wide",context:"standalone"})}},M:function(l,v,u){var d=l.getUTCMonth();switch(v){case"M":case"MM":return t.default.M(l,v);case"Mo":return u.ordinalNumber(d+1,{unit:"month"});case"MMM":return u.month(d,{width:"abbreviated",context:"formatting"});case"MMMMM":return u.month(d,{width:"narrow",context:"formatting"});case"MMMM":default:return u.month(d,{width:"wide",context:"formatting"})}},L:function(l,v,u){var d=l.getUTCMonth();switch(v){case"L":return String(d+1);case"LL":return(0,a.default)(d+1,2);case"Lo":return u.ordinalNumber(d+1,{unit:"month"});case"LLL":return u.month(d,{width:"abbreviated",context:"standalone"});case"LLLLL":return u.month(d,{width:"narrow",context:"standalone"});case"LLLL":default:return u.month(d,{width:"wide",context:"standalone"})}},w:function(l,v,u,d){var b=(0,s.default)(l,d);return v==="wo"?u.ordinalNumber(b,{unit:"week"}):(0,a.default)(b,v.length)},I:function(l,v,u){var d=(0,f.default)(l);return v==="Io"?u.ordinalNumber(d,{unit:"week"}):(0,a.default)(d,v.length)},d:function(l,v,u){return v==="do"?u.ordinalNumber(l.getUTCDate(),{unit:"date"}):t.default.d(l,v)},D:function(l,v,u){var d=(0,o.default)(l);return v==="Do"?u.ordinalNumber(d,{unit:"dayOfYear"}):(0,a.default)(d,v.length)},E:function(l,v,u){var d=l.getUTCDay();switch(v){case"E":case"EE":case"EEE":return u.day(d,{width:"abbreviated",context:"formatting"});case"EEEEE":return u.day(d,{width:"narrow",context:"formatting"});case"EEEEEE":return u.day(d,{width:"short",context:"formatting"});case"EEEE":default:return u.day(d,{width:"wide",context:"formatting"})}},e:function(l,v,u,d){var b=l.getUTCDay(),w=(b-d.weekStartsOn+8)%7||7;switch(v){case"e":return String(w);case"ee":return(0,a.default)(w,2);case"eo":return u.ordinalNumber(w,{unit:"day"});case"eee":return u.day(b,{width:"abbreviated",context:"formatting"});case"eeeee":return u.day(b,{width:"narrow",context:"formatting"});case"eeeeee":return u.day(b,{width:"short",context:"formatting"});case"eeee":default:return u.day(b,{width:"wide",context:"formatting"})}},c:function(l,v,u,d){var b=l.getUTCDay(),w=(b-d.weekStartsOn+8)%7||7;switch(v){case"c":return String(w);case"cc":return(0,a.default)(w,v.length);case"co":return u.ordinalNumber(w,{unit:"day"});case"ccc":return u.day(b,{width:"abbreviated",context:"standalone"});case"ccccc":return u.day(b,{width:"narrow",context:"standalone"});case"cccccc":return u.day(b,{width:"short",context:"standalone"});case"cccc":default:return u.day(b,{width:"wide",context:"standalone"})}},i:function(l,v,u){var d=l.getUTCDay(),b=d===0?7:d;switch(v){case"i":return String(b);case"ii":return(0,a.default)(b,v.length);case"io":return u.ordinalNumber(b,{unit:"day"});case"iii":return u.day(d,{width:"abbreviated",context:"formatting"});case"iiiii":return u.day(d,{width:"narrow",context:"formatting"});case"iiiiii":return u.day(d,{width:"short",context:"formatting"});case"iiii":default:return u.day(d,{width:"wide",context:"formatting"})}},a:function(l,v,u){var d=l.getUTCHours(),b=d/12>=1?"pm":"am";switch(v){case"a":case"aa":return u.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"aaa":return u.dayPeriod(b,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return u.dayPeriod(b,{width:"narrow",context:"formatting"});case"aaaa":default:return u.dayPeriod(b,{width:"wide",context:"formatting"})}},b:function(l,v,u){var d=l.getUTCHours(),b;switch(d===12?b=c.noon:d===0?b=c.midnight:b=d/12>=1?"pm":"am",v){case"b":case"bb":return u.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"bbb":return u.dayPeriod(b,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return u.dayPeriod(b,{width:"narrow",context:"formatting"});case"bbbb":default:return u.dayPeriod(b,{width:"wide",context:"formatting"})}},B:function(l,v,u){var d=l.getUTCHours(),b;switch(d>=17?b=c.evening:d>=12?b=c.afternoon:d>=4?b=c.morning:b=c.night,v){case"B":case"BB":case"BBB":return u.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"BBBBB":return u.dayPeriod(b,{width:"narrow",context:"formatting"});case"BBBB":default:return u.dayPeriod(b,{width:"wide",context:"formatting"})}},h:function(l,v,u){if(v==="ho"){var d=l.getUTCHours()%12;return d===0&&(d=12),u.ordinalNumber(d,{unit:"hour"})}return t.default.h(l,v)},H:function(l,v,u){return v==="Ho"?u.ordinalNumber(l.getUTCHours(),{unit:"hour"}):t.default.H(l,v)},K:function(l,v,u){var d=l.getUTCHours()%12;return v==="Ko"?u.ordinalNumber(d,{unit:"hour"}):(0,a.default)(d,v.length)},k:function(l,v,u){var d=l.getUTCHours();return d===0&&(d=24),v==="ko"?u.ordinalNumber(d,{unit:"hour"}):(0,a.default)(d,v.length)},m:function(l,v,u){return v==="mo"?u.ordinalNumber(l.getUTCMinutes(),{unit:"minute"}):t.default.m(l,v)},s:function(l,v,u){return v==="so"?u.ordinalNumber(l.getUTCSeconds(),{unit:"second"}):t.default.s(l,v)},S:function(l,v){return t.default.S(l,v)},X:function(l,v,u,d){var b=d._originalDate||l,w=b.getTimezoneOffset();if(w===0)return"Z";switch(v){case"X":return h(w);case"XXXX":case"XX":return M(w);case"XXXXX":case"XXX":default:return M(w,":")}},x:function(l,v,u,d){var b=d._originalDate||l,w=b.getTimezoneOffset();switch(v){case"x":return h(w);case"xxxx":case"xx":return M(w);case"xxxxx":case"xxx":default:return M(w,":")}},O:function(l,v,u,d){var b=d._originalDate||l,w=b.getTimezoneOffset();switch(v){case"O":case"OO":case"OOO":return"GMT"+x(w,":");case"OOOO":default:return"GMT"+M(w,":")}},z:function(l,v,u,d){var b=d._originalDate||l,w=b.getTimezoneOffset();switch(v){case"z":case"zz":case"zzz":return"GMT"+x(w,":");case"zzzz":default:return"GMT"+M(w,":")}},t:function(l,v,u,d){var b=d._originalDate||l,w=Math.floor(b.getTime()/1e3);return(0,a.default)(w,v.length)},T:function(l,v,u,d){var b=d._originalDate||l,w=b.getTime();return(0,a.default)(w,v.length)}};function x(T,l){var v=T>0?"-":"+",u=Math.abs(T),d=Math.floor(u/60),b=u%60;if(b===0)return v+String(d);var w=l||"";return v+String(d)+w+(0,a.default)(b,2)}function h(T,l){if(T%60===0){var v=T>0?"-":"+";return v+(0,a.default)(Math.abs(T)/60,2)}return M(T,l)}function M(T,l){var v=l||"",u=T>0?"-":"+",d=Math.abs(T),b=(0,a.default)(Math.floor(d/60),2),w=(0,a.default)(d%60,2);return u+b+v+w}var p=g;e.default=p,i.exports=e.default})(ge,ge.exports);var Ka=ge.exports,Pe={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},f=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},m=function(t,r){var c=t.match(/(P+)(p+)?/)||[],g=c[1],x=c[2];if(!x)return o(t,r);var h;switch(g){case"P":h=r.dateTime({width:"short"});break;case"PP":h=r.dateTime({width:"medium"});break;case"PPP":h=r.dateTime({width:"long"});break;case"PPPP":default:h=r.dateTime({width:"full"});break}return h.replace("{{date}}",o(g,r)).replace("{{time}}",f(x,r))},s={p:f,P:m},n=s;e.default=n,i.exports=e.default})(Pe,Pe.exports);var Qa=Pe.exports,Ee={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f){var m=new Date(Date.UTC(f.getFullYear(),f.getMonth(),f.getDate(),f.getHours(),f.getMinutes(),f.getSeconds(),f.getMilliseconds()));return m.setUTCFullYear(f.getFullYear()),f.getTime()-m.getTime()}i.exports=e.default})(Ee,Ee.exports);var ga=Ee.exports,q={};Object.defineProperty(q,"__esModule",{value:!0});q.isProtectedDayOfYearToken=et;q.isProtectedWeekYearToken=at;q.throwProtectedError=tt;var Ja=["D","DD"],ja=["YY","YYYY"];function et(i){return Ja.indexOf(i)!==-1}function at(i){return ja.indexOf(i)!==-1}function tt(i,e,o){if(i==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ce={exports:{}},Ge={exports:{}},ke={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},f=function(n,a,t){var r,c=o[n];return typeof c=="string"?r=c:a===1?r=c.one:r=c.other.replace("{{count}}",a.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r},m=f;e.default=m,i.exports=e.default})(ke,ke.exports);var rt=ke.exports,Ne={exports:{}},Ie={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f){return function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=m.width?String(m.width):f.defaultWidth,n=f.formats[s]||f.formats[f.defaultWidth];return n}}i.exports=e.default})(Ie,Ie.exports);var nt=Ie.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=f(nt);function f(r){return r&&r.__esModule?r:{default:r}}var m={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},s={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},n={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},a={date:(0,o.default)({formats:m,defaultWidth:"full"}),time:(0,o.default)({formats:s,defaultWidth:"full"}),dateTime:(0,o.default)({formats:n,defaultWidth:"full"})},t=a;e.default=t,i.exports=e.default})(Ne,Ne.exports);var it=Ne.exports,Ue={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},f=function(n,a,t,r){return o[n]},m=f;e.default=m,i.exports=e.default})(Ue,Ue.exports);var ot=Ue.exports,Ye={exports:{}},We={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f){return function(m,s){var n=s!=null&&s.context?String(s.context):"standalone",a;if(n==="formatting"&&f.formattingValues){var t=f.defaultFormattingWidth||f.defaultWidth,r=s!=null&&s.width?String(s.width):t;a=f.formattingValues[r]||f.formattingValues[t]}else{var c=f.defaultWidth,g=s!=null&&s.width?String(s.width):f.defaultWidth;a=f.values[g]||f.values[c]}var x=f.argumentCallback?f.argumentCallback(m):m;return a[x]}}i.exports=e.default})(We,We.exports);var ut=We.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=f(ut);function f(h){return h&&h.__esModule?h:{default:h}}var m={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},s={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},n={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},a={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},t={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},r={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(M,p){var T=Number(M),l=T%100;if(l>20||l<10)switch(l%10){case 1:return T+"st";case 2:return T+"nd";case 3:return T+"rd"}return T+"th"},g={ordinalNumber:c,era:(0,o.default)({values:m,defaultWidth:"wide"}),quarter:(0,o.default)({values:s,defaultWidth:"wide",argumentCallback:function(M){return M-1}}),month:(0,o.default)({values:n,defaultWidth:"wide"}),day:(0,o.default)({values:a,defaultWidth:"wide"}),dayPeriod:(0,o.default)({values:t,defaultWidth:"wide",formattingValues:r,defaultFormattingWidth:"wide"})},x=g;e.default=x,i.exports=e.default})(Ye,Ye.exports);var st=Ye.exports,Re={exports:{}},He={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(s){return function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=a.width,r=t&&s.matchPatterns[t]||s.matchPatterns[s.defaultMatchWidth],c=n.match(r);if(!c)return null;var g=c[0],x=t&&s.parsePatterns[t]||s.parsePatterns[s.defaultParseWidth],h=Array.isArray(x)?m(x,function(T){return T.test(g)}):f(x,function(T){return T.test(g)}),M;M=s.valueCallback?s.valueCallback(h):h,M=a.valueCallback?a.valueCallback(M):M;var p=n.slice(g.length);return{value:M,rest:p}}}function f(s,n){for(var a in s)if(s.hasOwnProperty(a)&&n(s[a]))return a}function m(s,n){for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:{},n=m.match(f.matchPattern);if(!n)return null;var a=n[0],t=m.match(f.parsePattern);if(!t)return null;var r=f.valueCallback?f.valueCallback(t[0]):t[0];r=s.valueCallback?s.valueCallback(r):r;var c=m.slice(a.length);return{value:r,rest:c}}}i.exports=e.default})(Fe,Fe.exports);var lt=Fe.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=m(ft),f=m(lt);function m(u){return u&&u.__esModule?u:{default:u}}var s=/^(\d+)(th|st|nd|rd)?/i,n=/\d+/i,a={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},t={any:[/^b/i,/^(a|c)/i]},r={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},g={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},x={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},M={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},p={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},T={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},l={ordinalNumber:(0,f.default)({matchPattern:s,parsePattern:n,valueCallback:function(d){return parseInt(d,10)}}),era:(0,o.default)({matchPatterns:a,defaultMatchWidth:"wide",parsePatterns:t,defaultParseWidth:"any"}),quarter:(0,o.default)({matchPatterns:r,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(d){return d+1}}),month:(0,o.default)({matchPatterns:g,defaultMatchWidth:"wide",parsePatterns:x,defaultParseWidth:"any"}),day:(0,o.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:M,defaultParseWidth:"any"}),dayPeriod:(0,o.default)({matchPatterns:p,defaultMatchWidth:"any",parsePatterns:T,defaultParseWidth:"any"})},v=l;e.default=v,i.exports=e.default})(Re,Re.exports);var dt=Re.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(rt),f=a(it),m=a(ot),s=a(st),n=a(dt);function a(c){return c&&c.__esModule?c:{default:c}}var t={code:"en-US",formatDistance:o.default,formatLong:f.default,formatRelative:m.default,localize:s.default,match:n.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},r=t;e.default=r,i.exports=e.default})(Ge,Ge.exports);var ct=Ge.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=f(ct);function f(s){return s&&s.__esModule?s:{default:s}}var m=o.default;e.default=m,i.exports=e.default})(Ce,Ce.exports);var mt=Ce.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var o=h(Wa),f=h(Ha),m=h(I),s=h(Ka),n=h(Qa),a=h(ga),t=q,r=h(H),c=h(P),g=F,x=h(mt);function h(b){return b&&b.__esModule?b:{default:b}}var M=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,p=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,T=/^'([^]*?)'?$/,l=/''/g,v=/[a-zA-Z]/;function u(b,w,S){var y,_,A,D,z,O,C,U,G,Y,k,N,ee,ae,te,re,ne,ie;(0,c.default)(2,arguments);var Sa=String(w),L=(0,g.getDefaultOptions)(),$=(y=(_=S==null?void 0:S.locale)!==null&&_!==void 0?_:L.locale)!==null&&y!==void 0?y:x.default,oe=(0,r.default)((A=(D=(z=(O=S==null?void 0:S.firstWeekContainsDate)!==null&&O!==void 0?O:S==null||(C=S.locale)===null||C===void 0||(U=C.options)===null||U===void 0?void 0:U.firstWeekContainsDate)!==null&&z!==void 0?z:L.firstWeekContainsDate)!==null&&D!==void 0?D:(G=L.locale)===null||G===void 0||(Y=G.options)===null||Y===void 0?void 0:Y.firstWeekContainsDate)!==null&&A!==void 0?A:1);if(!(oe>=1&&oe<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ue=(0,r.default)((k=(N=(ee=(ae=S==null?void 0:S.weekStartsOn)!==null&&ae!==void 0?ae:S==null||(te=S.locale)===null||te===void 0||(re=te.options)===null||re===void 0?void 0:re.weekStartsOn)!==null&&ee!==void 0?ee:L.weekStartsOn)!==null&&N!==void 0?N:(ne=L.locale)===null||ne===void 0||(ie=ne.options)===null||ie===void 0?void 0:ie.weekStartsOn)!==null&&k!==void 0?k:0);if(!(ue>=0&&ue<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!$.localize)throw new RangeError("locale must contain localize property");if(!$.formatLong)throw new RangeError("locale must contain formatLong property");var X=(0,m.default)(b);if(!(0,o.default)(X))throw new RangeError("Invalid time value");var za=(0,a.default)(X),Oa=(0,f.default)(X,za),Pa={firstWeekContainsDate:oe,weekStartsOn:ue,locale:$,_originalDate:X},Ea=Sa.match(p).map(function(E){var W=E[0];if(W==="p"||W==="P"){var Z=n.default[W];return Z(E,$.formatLong)}return E}).join("").match(M).map(function(E){if(E==="''")return"'";var W=E[0];if(W==="'")return d(E);var Z=s.default[W];if(Z)return!(S!=null&&S.useAdditionalWeekYearTokens)&&(0,t.isProtectedWeekYearToken)(E)&&(0,t.throwProtectedError)(E,w,String(b)),!(S!=null&&S.useAdditionalDayOfYearTokens)&&(0,t.isProtectedDayOfYearToken)(E)&&(0,t.throwProtectedError)(E,w,String(b)),Z(Oa,E,$.localize,Pa);if(W.match(v))throw new RangeError("Format string contains an unescaped latin alphabet character `"+W+"`");return E}).join("");return Ea}function d(b){var w=b.match(T);return w?w[1].replace(l,"'"):b}i.exports=e.default})(le,le.exports);var vt=le.exports,Le={exports:{}},$e={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(n,a,t){var r=s(n,t.timeZone,t.locale);return r.formatToParts?f(r,a):m(r,a)}function f(n,a){for(var t=n.formatToParts(a),r=t.length-1;r>=0;--r)if(t[r].type==="timeZoneName")return t[r].value}function m(n,a){var t=n.format(a).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(t);return r?r[0].substr(1):""}function s(n,a,t){if(t&&!t.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(t?[t.code,"en-US"]:void 0,{timeZone:a,timeZoneName:n})}i.exports=e.default})($e,$e.exports);var Tt=$e.exports,qe={exports:{}},Be={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(t,r){var c=a(r);return c.formatToParts?m(c,t):s(c,t)}var f={year:0,month:1,day:2,hour:3,minute:4,second:5};function m(t,r){try{for(var c=t.formatToParts(r),g=[],x=0;x=0&&(g[h]=parseInt(c[x].value,10))}return g}catch(M){if(M instanceof RangeError)return[NaN];throw M}}function s(t,r){var c=t.format(r).replace(/\u200E/g,""),g=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[g[3],g[1],g[2],g[4],g[5],g[6]]}var n={};function a(t){if(!n[t]){var r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=r==="06/25/2014, 00:00:00"||r==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";n[t]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return n[t]}i.exports=e.default})(Be,Be.exports);var ht=Be.exports,Xe={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f,m,s,n,a,t,r){var c=new Date(0);return c.setUTCFullYear(f,m,s),c.setUTCHours(n,a,t,r),c}i.exports=e.default})(Xe,Xe.exports);var pa=Xe.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var o=m(ht),f=m(pa);function m(p){return p&&p.__esModule?p:{default:p}}var s=36e5,n=6e4,a={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function t(p,T,l){var v,u;if(p===""||(v=a.timezoneZ.exec(p),v))return 0;var d;if(v=a.timezoneHH.exec(p),v)return d=parseInt(v[1],10),x(d)?-(d*s):NaN;if(v=a.timezoneHHMM.exec(p),v){d=parseInt(v[1],10);var b=parseInt(v[2],10);return x(d,b)?(u=Math.abs(d)*s+b*n,d>0?-u:u):NaN}if(M(p)){T=new Date(T||Date.now());var w=l?T:r(T),S=c(w,p),y=l?S:g(T,S,p);return-y}return NaN}function r(p){return(0,f.default)(p.getFullYear(),p.getMonth(),p.getDate(),p.getHours(),p.getMinutes(),p.getSeconds(),p.getMilliseconds())}function c(p,T){var l=(0,o.default)(p,T),v=(0,f.default)(l[0],l[1]-1,l[2],l[3]%24,l[4],l[5],0).getTime(),u=p.getTime(),d=u%1e3;return u-=d>=0?d:1e3+d,v-u}function g(p,T,l){var v=p.getTime(),u=v-T,d=c(new Date(u),l);if(T===d)return T;u-=d-T;var b=c(new Date(u),l);return d===b?d:Math.max(d,b)}function x(p,T){return-23<=p&&p<=23&&(T==null||0<=T&&T<=59)}var h={};function M(p){if(h[p])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:p}),h[p]=!0,!0}catch{return!1}}i.exports=e.default})(qe,qe.exports);var B=qe.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=m(Tt),f=m(B);function m(h){return h&&h.__esModule?h:{default:h}}var s=60*1e3,n={X:function(h,M,p,T){var l=a(T.timeZone,T._originalDate||h);if(l===0)return"Z";switch(M){case"X":return c(l);case"XXXX":case"XX":return r(l);case"XXXXX":case"XXX":default:return r(l,":")}},x:function(h,M,p,T){var l=a(T.timeZone,T._originalDate||h);switch(M){case"x":return c(l);case"xxxx":case"xx":return r(l);case"xxxxx":case"xxx":default:return r(l,":")}},O:function(h,M,p,T){var l=a(T.timeZone,T._originalDate||h);switch(M){case"O":case"OO":case"OOO":return"GMT"+g(l,":");case"OOOO":default:return"GMT"+r(l,":")}},z:function(h,M,p,T){var l=T._originalDate||h;switch(M){case"z":case"zz":case"zzz":return(0,o.default)("short",l,T);case"zzzz":default:return(0,o.default)("long",l,T)}}};function a(h,M){var p=h?(0,f.default)(h,M,!0)/s:M.getTimezoneOffset();if(Number.isNaN(p))throw new RangeError("Invalid time zone specified: "+h);return p}function t(h,M){for(var p=h<0?"-":"",T=Math.abs(h).toString();T.length0?"-":"+",l=Math.abs(h),v=t(Math.floor(l/60),2),u=t(Math.floor(l%60),2);return T+v+p+u}function c(h,M){if(h%60===0){var p=h>0?"-":"+";return p+t(Math.abs(h)/60,2)}return r(h,M)}function g(h,M){var p=h>0?"-":"+",T=Math.abs(h),l=Math.floor(T/60),v=T%60;if(v===0)return p+String(l);var u=M||"";return p+String(l)+u+t(v,2)}var x=n;e.default=x,i.exports=e.default})(Le,Le.exports);var bt=Le.exports,Ze={exports:{}},Ve={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,f=o;e.default=f,i.exports=e.default})(Ve,Ve.exports);var Ma=Ve.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=g;var o=n(H),f=n(ga),m=n(B),s=n(Ma);function n(y){return y&&y.__esModule?y:{default:y}}var a=36e5,t=6e4,r=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:s.default};function g(y,_){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(y===null)return new Date(NaN);var A=_||{},D=A.additionalDigits==null?r:(0,o.default)(A.additionalDigits);if(D!==2&&D!==1&&D!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(y instanceof Date||typeof y=="object"&&Object.prototype.toString.call(y)==="[object Date]")return new Date(y.getTime());if(typeof y=="number"||Object.prototype.toString.call(y)==="[object Number]")return new Date(y);if(!(typeof y=="string"||Object.prototype.toString.call(y)==="[object String]"))return new Date(NaN);var z=x(y),O=h(z.date,D),C=O.year,U=O.restDateString,G=M(U,C);if(isNaN(G))return new Date(NaN);if(G){var Y=G.getTime(),k=0,N;if(z.time&&(k=p(z.time),isNaN(k)))return new Date(NaN);if(z.timeZone||A.timeZone){if(N=(0,m.default)(z.timeZone||A.timeZone,new Date(Y+k)),isNaN(N))return new Date(NaN)}else N=(0,f.default)(new Date(Y+k)),N=(0,f.default)(new Date(Y+k+N));return new Date(Y+k+N)}else return new Date(NaN)}function x(y){var _={},A=c.dateTimePattern.exec(y),D;if(A?(_.date=A[1],D=A[3]):(A=c.datePattern.exec(y),A?(_.date=A[1],D=A[2]):(_.date=null,D=y)),D){var z=c.timeZone.exec(D);z?(_.time=D.replace(z[1],""),_.timeZone=z[1].trim()):_.time=D}return _}function h(y,_){var A=c.YYY[_],D=c.YYYYY[_],z;if(z=c.YYYY.exec(y)||D.exec(y),z){var O=z[1];return{year:parseInt(O,10),restDateString:y.slice(O.length)}}if(z=c.YY.exec(y)||A.exec(y),z){var C=z[1];return{year:parseInt(C,10)*100,restDateString:y.slice(C.length)}}return{year:null}}function M(y,_){if(_===null)return null;var A,D,z,O;if(y.length===0)return D=new Date(0),D.setUTCFullYear(_),D;if(A=c.MM.exec(y),A)return D=new Date(0),z=parseInt(A[1],10)-1,d(_,z)?(D.setUTCFullYear(_,z),D):new Date(NaN);if(A=c.DDD.exec(y),A){D=new Date(0);var C=parseInt(A[1],10);return b(_,C)?(D.setUTCFullYear(_,0,C),D):new Date(NaN)}if(A=c.MMDD.exec(y),A){D=new Date(0),z=parseInt(A[1],10)-1;var U=parseInt(A[2],10);return d(_,z,U)?(D.setUTCFullYear(_,z,U),D):new Date(NaN)}if(A=c.Www.exec(y),A)return O=parseInt(A[1],10)-1,w(_,O)?T(_,O):new Date(NaN);if(A=c.WwwD.exec(y),A){O=parseInt(A[1],10)-1;var G=parseInt(A[2],10)-1;return w(_,O,G)?T(_,O,G):new Date(NaN)}return null}function p(y){var _,A,D;if(_=c.HH.exec(y),_)return A=parseFloat(_[1].replace(",",".")),S(A)?A%24*a:NaN;if(_=c.HHMM.exec(y),_)return A=parseInt(_[1],10),D=parseFloat(_[2].replace(",",".")),S(A,D)?A%24*a+D*t:NaN;if(_=c.HHMMSS.exec(y),_){A=parseInt(_[1],10),D=parseInt(_[2],10);var z=parseFloat(_[3].replace(",","."));return S(A,D,z)?A%24*a+D*t+z*1e3:NaN}return null}function T(y,_,A){_=_||0,A=A||0;var D=new Date(0);D.setUTCFullYear(y,0,4);var z=D.getUTCDay()||7,O=_*7+A+1-z;return D.setUTCDate(D.getUTCDate()+O),D}var l=[31,28,31,30,31,30,31,31,30,31,30,31],v=[31,29,31,30,31,30,31,31,30,31,30,31];function u(y){return y%400===0||y%4===0&&y%100!==0}function d(y,_,A){if(_<0||_>11)return!1;if(A!=null){if(A<1)return!1;var D=u(y);if(D&&A>v[_]||!D&&A>l[_])return!1}return!0}function b(y,_){if(_<1)return!1;var A=u(y);return!(A&&_>366||!A&&_>365)}function w(y,_,A){return!(_<0||_>52||A!=null&&(A<0||A>6))}function S(y,_,A){return!(y!=null&&(y<0||y>=25)||_!=null&&(_<0||_>=60)||A!=null&&(A<0||A>=60))}i.exports=e.default})(Ze,Ze.exports);var J=Ze.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var o=s(vt),f=s(bt),m=s(J);function s(t){return t&&t.__esModule?t:{default:t}}var n=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function a(t,r,c){var g=String(r),x=c||{},h=g.match(n);if(h){var M=(0,m.default)(t,x);g=h.reduce(function(p,T){if(T[0]==="'")return p;var l=p.indexOf(T),v=p[l-1]==="'",u=p.replace(T,"'"+f.default[T[0]](M,T,null,x)+"'");return v?u.substring(0,l-1)+u.substring(l+1):u},g)}return(0,o.default)(t,g,x)}i.exports=e.default})(fe,fe.exports);var _a=fe.exports,Ke={exports:{}},Qe={exports:{}},Je={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f,m){if(f==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var s in m)Object.prototype.hasOwnProperty.call(m,s)&&(f[s]=m[s]);return f}i.exports=e.default})(Je,Je.exports);var gt=Je.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=m;var o=f(gt);function f(s){return s&&s.__esModule?s:{default:s}}function m(s){return(0,o.default)({},s)}i.exports=e.default})(Qe,Qe.exports);var Aa=Qe.exports,je={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var o=m(B),f=m(J);function m(n){return n&&n.__esModule?n:{default:n}}function s(n,a,t){var r=(0,f.default)(n,t),c=(0,o.default)(a,r,!0),g=new Date(r.getTime()-c),x=new Date(0);return x.setFullYear(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate()),x.setHours(g.getUTCHours(),g.getUTCMinutes(),g.getUTCSeconds(),g.getUTCMilliseconds()),x}i.exports=e.default})(je,je.exports);var xa=je.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=s(Aa),f=s(_a),m=s(xa);function s(a){return a&&a.__esModule?a:{default:a}}function n(a,t,r,c){var g=(0,o.default)(c);return g.timeZone=t,(0,f.default)((0,m.default)(a,t),r,g)}i.exports=e.default})(Ke,Ke.exports);var pt=Ke.exports,ea={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=m;var o=f(B);function f(s){return s&&s.__esModule?s:{default:s}}function m(s,n){return-(0,o.default)(s,n)}i.exports=e.default})(ea,ea.exports);var Mt=ea.exports,aa={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var o=a(Aa),f=a(J),m=a(Ma),s=a(B),n=a(pa);function a(r){return r&&r.__esModule?r:{default:r}}function t(r,c,g){if(typeof r=="string"&&!r.match(m.default)){var x=(0,o.default)(g);return x.timeZone=c,(0,f.default)(r,x)}var h=(0,f.default)(r,g),M=(0,n.default)(h.getFullYear(),h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()).getTime(),p=(0,s.default)(c,new Date(M));return new Date(M+p)}i.exports=e.default})(aa,aa.exports);var _t=aa.exports,ta={format:_a,formatInTimeZone:pt,getTimezoneOffset:Mt,toDate:J,utcToZonedTime:xa,zonedTimeToUtc:_t};function ia(i,e){if(i==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o]);return i}function ya(i){return ia({},i)}var oa=1440,At=2520,se=43200,xt=86400;function yt(i,e,o){var f,m;Q(2,arguments);var s=ma(),n=(f=(m=o==null?void 0:o.locale)!==null&&m!==void 0?m:s.locale)!==null&&f!==void 0?f:da;if(!n.formatDistance)throw new RangeError("locale must contain formatDistance property");var a=ca(i,e);if(isNaN(a))throw new RangeError("Invalid time value");var t=ia(ya(o),{addSuffix:!!(o!=null&&o.addSuffix),comparison:a}),r,c;a>0?(r=R(e),c=R(i)):(r=R(i),c=R(e));var g=Ca(c,r),x=(V(c)-V(r))/1e3,h=Math.round((g-x)/60),M;if(h<2)return o!=null&&o.includeSeconds?g<5?n.formatDistance("lessThanXSeconds",5,t):g<10?n.formatDistance("lessThanXSeconds",10,t):g<20?n.formatDistance("lessThanXSeconds",20,t):g<40?n.formatDistance("halfAMinute",0,t):g<60?n.formatDistance("lessThanXMinutes",1,t):n.formatDistance("xMinutes",1,t):h===0?n.formatDistance("lessThanXMinutes",1,t):n.formatDistance("xMinutes",h,t);if(h<45)return n.formatDistance("xMinutes",h,t);if(h<90)return n.formatDistance("aboutXHours",1,t);if(h0?(c=R(e),g=R(i)):(c=R(i),g=R(e));var x=String((s=o==null?void 0:o.roundingMethod)!==null&&s!==void 0?s:"round"),h;if(x==="floor")h=Math.floor;else if(x==="ceil")h=Math.ceil;else if(x==="round")h=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var M=g.getTime()-c.getTime(),p=M/ua,T=V(g)-V(c),l=(M-T)/ua,v=o==null?void 0:o.unit,u;if(v?u=String(v):p<1?u="second":p<60?u="minute":p9?`${o}:00`:`0${o}:00`;if(i>0)return`${e}+${f}`;if(i<0)return`${e}-${f}`}function wa(){return Intl.DateTimeFormat().resolvedOptions().timeZone}function Ot(){const i=wa(),e=Pt.find(({zones:o})=>o==null?void 0:o.includes(i));return e?`${e.label} (${e.abbr})`:i}function Ut(i){if(i==="local")return Ot();const e=j[i];return e?`${i} (${e.abbr})`:i}function Yt({date:i=new Date,hour:e=0,minute:o=0,second:f=0}={}){const m=Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),Number(e),Number(o),Number(f));return new Date(m).toISOString()}const Wt=la("timeFormat","UTC"),Rt=la("relativeTime",!1),j={"Greenwich Mean Time":{abbr:"GMT",offset:0,zones:["Africa/Abidjan","Africa/Accra","Africa/Bamako","Africa/Banjul","Africa/Bissau","Africa/Conakry","Africa/Dakar","Africa/Freetown","Africa/Lome","Africa/Monrovia","Africa/Nouakchott","Africa/Ouagadougou","Africa/Sao_Tome","America/Danmarkshavn","Atlantic/Reykjavik","Atlantic/St_Helena"]},"East Africa Time":{abbr:"GMT+3",offset:3,zones:["Africa/Addis_Ababa","Africa/Asmera","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Kampala","Africa/Mogadishu","Africa/Nairobi","Indian/Antananarivo","Indian/Comoro","Indian/Mayotte"]},"Central European Standard Time":{abbr:"GMT+1",offset:1,zones:["Africa/Algiers","Africa/Tunis"]},"West Africa Standard Time":{abbr:"GMT+1",offset:1,zones:["Africa/Bangui","Africa/Brazzaville","Africa/Douala","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Luanda","Africa/Malabo","Africa/Ndjamena","Africa/Niamey","Africa/Porto-Novo"]},"Central Africa Time":{abbr:"GMT+2",offset:2,zones:["Africa/Blantyre","Africa/Bujumbura","Africa/Gaborone","Africa/Harare","Africa/Juba","Africa/Khartoum","Africa/Kigali","Africa/Lubumbashi","Africa/Lusaka","Africa/Maputo","Africa/Windhoek"]},"Eastern European Summer Time":{abbr:"GMT+3",offset:3,zones:["Africa/Cairo","Asia/Beirut","Asia/Gaza","Asia/Hebron","Asia/Nicosia","Europe/Athens","Europe/Bucharest","Europe/Chisinau","Europe/Helsinki","Europe/Kiev","Europe/Mariehamn","Europe/Riga","Europe/Sofia","Europe/Tallinn","Europe/Uzhgorod","Europe/Vilnius","Europe/Zaporozhye"]},"GMT+01:00":{abbr:"GMT+1",offset:1,zones:["Africa/Casablanca","Africa/El_Aaiun","Europe/Guernsey","Europe/Isle_of_Man","Europe/Jersey"]},"Central European Summer Time":{abbr:"GMT+2",offset:2,zones:["Africa/Ceuta","Arctic/Longyearbyen","Europe/Amsterdam","Europe/Andorra","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Budapest","Europe/Busingen","Europe/Copenhagen","Europe/Gibraltar","Europe/Ljubljana","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Monaco","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Rome","Europe/San_Marino","Europe/Sarajevo","Europe/Skopje","Europe/Stockholm","Europe/Tirane","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Warsaw","Europe/Zagreb","Europe/Zurich"]},"South Africa Standard Time":{abbr:"GMT+2",offset:2,zones:["Africa/Johannesburg","Africa/Maseru","Africa/Mbabane"]},"Eastern European Standard Time":{abbr:"GMT+2",offset:2,zones:["Africa/Tripoli","Europe/Kaliningrad"]},"Hawaii-Aleutian Daylight Time":{abbr:"HADT",offset:-9,zones:["America/Adak"]},"Alaska Daylight Time":{abbr:"AKDT",offset:-8,zones:["America/Anchorage","America/Juneau","America/Metlakatla","America/Nome","America/Sitka","America/Yakutat"]},"Atlantic Standard Time":{abbr:"AST",offset:-4,zones:["America/Anguilla","America/Antigua","America/Aruba","America/Barbados","America/Blanc-Sablon","America/Curacao","America/Dominica","America/Grenada","America/Guadeloupe","America/Kralendijk","America/Lower_Princes","America/Marigot","America/Martinique","America/Montserrat","America/Port_of_Spain","America/Puerto_Rico","America/Santo_Domingo","America/St_Barthelemy","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Tortola"]},"Brasilia Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Araguaina","America/Bahia","America/Belem","America/Fortaleza","America/Maceio","America/Recife","America/Santarem","America/Sao_Paulo"]},"Argentina Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Argentina/La_Rioja","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Buenos_Aires","America/Catamarca","America/Cordoba","America/Jujuy","America/Mendoza"]},"Paraguay Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Asuncion"]},"Central Standard Time":{abbr:"CST",offset:-6,zones:["America/Bahia_Banderas","America/Belize","America/Chihuahua","America/Costa_Rica","America/El_Salvador","America/Guatemala","America/Managua","America/Merida","America/Mexico_City","America/Monterrey","America/Regina","America/Swift_Current","America/Tegucigalpa"]},"Amazon Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Boa_Vista","America/Campo_Grande","America/Cuiaba","America/Manaus","America/Porto_Velho"]},"Colombia Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Bogota"]},"Mountain Daylight Time":{abbr:"MDT",offset:-6,zones:["America/Boise","America/Cambridge_Bay","America/Ciudad_Juarez","America/Denver","America/Edmonton","America/Inuvik","America/Yellowknife"]},"Eastern Standard Time":{abbr:"EST",offset:-5,zones:["America/Cancun","America/Cayman","America/Coral_Harbour","America/Jamaica","America/Panama"]},"Venezuela Time":{abbr:"GMT-4",offset:-4,zones:["America/Caracas"]},"French Guiana Time":{abbr:"GMT-3",offset:-3,zones:["America/Cayenne"]},"Central Daylight Time":{abbr:"CDT",offset:-5,zones:["America/Chicago","America/Indiana/Knox","America/Indiana/Tell_City","America/Matamoros","America/Menominee","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Rainy_River","America/Rankin_Inlet","America/Resolute","America/Winnipeg"]},"Mountain Standard Time":{abbr:"MST",offset:-7,zones:["America/Creston","America/Dawson_Creek","America/Fort_Nelson","America/Phoenix"]},"Yukon Time":{abbr:"GMT-7",offset:-7,zones:["America/Dawson","America/Whitehorse"]},"Eastern Daylight Time":{abbr:"EDT",offset:-4,zones:["America/Detroit","America/Grand_Turk","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Iqaluit","America/Kentucky/Monticello","America/Louisville","America/Nassau","America/New_York","America/Nipigon","America/Pangnirtung","America/Port-au-Prince","America/Thunder_Bay","America/Toronto"]},"Acre Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Eirunepe","America/Rio_Branco"]},"Atlantic Daylight Time":{abbr:"ADT",offset:-3,zones:["America/Glace_Bay","America/Goose_Bay","America/Halifax","America/Moncton","America/Thule","Atlantic/Bermuda"]},"West Greenland Summer Time":{abbr:"GMT-2",offset:-2,zones:["America/Godthab"]},"Ecuador Time":{abbr:"GMT-5",offset:-5,zones:["America/Guayaquil"]},"Guyana Time":{abbr:"GMT-4",offset:-4,zones:["America/Guyana"]},"Cuba Daylight Time":{abbr:"GMT-4",offset:-4,zones:["America/Havana"]},"Mexican Pacific Standard Time":{abbr:"GMT-7",offset:-7,zones:["America/Hermosillo","America/Mazatlan"]},"Bolivia Time":{abbr:"GMT-4",offset:-4,zones:["America/La_Paz"]},"Peru Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Lima"]},"Pacific Daylight Time":{abbr:"PDT",offset:-7,zones:["America/Los_Angeles","America/Tijuana","America/Vancouver"]},"St. Pierre & Miquelon Daylight Time":{abbr:"GMT-2",offset:-2,zones:["America/Miquelon"]},"Uruguay Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Montevideo"]},"GMT-04:00":{abbr:"GMT-4",offset:-4,zones:["America/Montreal"]},"Fernando de Noronha Standard Time":{abbr:"GMT-2",offset:-2,zones:["America/Noronha"]},"Suriname Time":{abbr:"GMT-3",offset:-3,zones:["America/Paramaribo"]},"GMT-03:00":{abbr:"GMT-3",offset:-3,zones:["America/Punta_Arenas","Antarctica/Palmer"]},"Northwest Mexico Daylight Time":{abbr:"GMT-7",offset:-7,zones:["America/Santa_Isabel"]},"Chile Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Santiago"]},"East Greenland Summer Time":{abbr:"GMT",offset:0,zones:["America/Scoresbysund"]},"Newfoundland Daylight Time":{abbr:"GMT-2:30",offset:-3,zones:["America/St_Johns"]},"Casey Time":{abbr:"GMT+11",offset:11,zones:["Antarctica/Casey"]},"Davis Time":{abbr:"GMT+7",offset:7,zones:["Antarctica/Davis"]},"Dumont-d’Urville Time":{abbr:"GMT+10",offset:10,zones:["Antarctica/DumontDUrville"]},"Australian Eastern Standard Time":{abbr:"GMT+10",offset:10,zones:["Antarctica/Macquarie","Australia/Brisbane","Australia/Currie","Australia/Hobart","Australia/Lindeman","Australia/Melbourne","Australia/Sydney"]},"Mawson Time":{abbr:"GMT+5",offset:5,zones:["Antarctica/Mawson"]},"New Zealand Standard Time":{abbr:"GMT+12",offset:12,zones:["Antarctica/McMurdo","Pacific/Auckland"]},"Rothera Time":{abbr:"GMT-3",offset:-3,zones:["Antarctica/Rothera"]},"Syowa Time":{abbr:"GMT+3",offset:3,zones:["Antarctica/Syowa"]},"GMT+02:00":{abbr:"GMT+2",offset:2,zones:["Antarctica/Troll"]},"Vostok Time":{abbr:"GMT+6",offset:6,zones:["Antarctica/Vostok"]},"Arabian Standard Time":{abbr:"GMT+3",offset:3,zones:["Asia/Aden","Asia/Baghdad","Asia/Bahrain","Asia/Kuwait","Asia/Qatar","Asia/Riyadh"]},"East Kazakhstan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Almaty","Asia/Qostanay"]},"GMT+03:00":{abbr:"GMT+3",offset:3,zones:["Asia/Amman","Asia/Damascus","Asia/Famagusta","Europe/Istanbul","Europe/Kirov"]},"Anadyr Standard Time":{abbr:"GMT+12",offset:12,zones:["Asia/Anadyr"]},"West Kazakhstan Time":{abbr:"GMT+5",offset:5,zones:["Asia/Aqtau","Asia/Aqtobe","Asia/Atyrau","Asia/Oral","Asia/Qyzylorda"]},"Turkmenistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Ashgabat"]},"Azerbaijan Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Baku"]},"Indochina Time":{abbr:"GMT+7",offset:7,zones:["Asia/Bangkok","Asia/Phnom_Penh","Asia/Saigon","Asia/Vientiane"]},"GMT+07:00":{abbr:"GMT+7",offset:7,zones:["Asia/Barnaul","Asia/Tomsk"]},"Kyrgyzstan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Bishkek"]},"Brunei Darussalam Time":{abbr:"GMT+8",offset:8,zones:["Asia/Brunei"]},"India Standard Time":{abbr:"GMT+5:30",offset:5,zones:["Asia/Calcutta","Asia/Colombo"]},"Yakutsk Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Chita","Asia/Khandyga","Asia/Yakutsk"]},"Ulaanbaatar Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Choibalsan","Asia/Ulaanbaatar"]},"Bangladesh Standard Time":{abbr:"GMT+6",offset:6,zones:["Asia/Dhaka"]},"East Timor Time":{abbr:"GMT+9",offset:9,zones:["Asia/Dili"]},"Gulf Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Dubai","Asia/Muscat"]},"Tajikistan Time":{abbr:"GMT+5",offset:5,zones:["Asia/Dushanbe"]},"Hong Kong Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Hong_Kong"]},"Hovd Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Hovd"]},"Irkutsk Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Irkutsk"]},"Western Indonesia Time":{abbr:"GMT+7",offset:7,zones:["Asia/Jakarta","Asia/Pontianak"]},"Eastern Indonesia Time":{abbr:"GMT+9",offset:9,zones:["Asia/Jayapura"]},"Israel Daylight Time":{abbr:"GMT+3",offset:3,zones:["Asia/Jerusalem"]},"Afghanistan Time":{abbr:"GMT+4:30",offset:4,zones:["Asia/Kabul"]},"Petropavlovsk-Kamchatski Standard Time":{abbr:"GMT+12",offset:12,zones:["Asia/Kamchatka"]},"Pakistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Karachi"]},"Nepal Time":{abbr:"GMT+5:45",offset:5,zones:["Asia/Katmandu"]},"Krasnoyarsk Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Krasnoyarsk","Asia/Novokuznetsk"]},"Malaysia Time":{abbr:"GMT+8",offset:8,zones:["Asia/Kuala_Lumpur","Asia/Kuching"]},"China Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Macau","Asia/Shanghai"]},"Magadan Standard Time":{abbr:"GMT+11",offset:11,zones:["Asia/Magadan"]},"Central Indonesia Time":{abbr:"GMT+8",offset:8,zones:["Asia/Makassar"]},"Philippine Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Manila"]},"Novosibirsk Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Novosibirsk"]},"Omsk Standard Time":{abbr:"GMT+6",offset:6,zones:["Asia/Omsk"]},"Korean Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Pyongyang","Asia/Seoul"]},"Myanmar Time":{abbr:"GMT+6:30",offset:6,zones:["Asia/Rangoon"]},"Sakhalin Standard Time":{abbr:"GMT+11",offset:11,zones:["Asia/Sakhalin"]},"Uzbekistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Samarkand","Asia/Tashkent"]},"Singapore Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Singapore"]},"GMT+11:00":{abbr:"GMT+11",offset:11,zones:["Asia/Srednekolymsk","Pacific/Bougainville"]},"Taipei Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Taipei"]},"Georgia Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Tbilisi"]},"Iran Standard Time":{abbr:"GMT+3:30",offset:3,zones:["Asia/Tehran"]},"Bhutan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Thimphu"]},"Japan Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Tokyo"]},"GMT+06:00":{abbr:"GMT+6",offset:6,zones:["Asia/Urumqi"]},"Vladivostok Standard Time":{abbr:"GMT+10",offset:10,zones:["Asia/Ust-Nera","Asia/Vladivostok"]},"Yekaterinburg Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Yekaterinburg"]},"Armenia Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Yerevan"]},"Azores Summer Time":{abbr:"GMT",offset:0,zones:["Atlantic/Azores"]},"Western European Summer Time":{abbr:"GMT+1",offset:1,zones:["Atlantic/Canary","Atlantic/Faeroe","Atlantic/Madeira","Europe/Lisbon"]},"Cape Verde Standard Time":{abbr:"GMT-1",offset:-1,zones:["Atlantic/Cape_Verde"]},"South Georgia Time":{abbr:"GMT-2",offset:-2,zones:["Atlantic/South_Georgia"]},"Falkland Islands Standard Time":{abbr:"GMT-3",offset:-3,zones:["Atlantic/Stanley"]},"Australian Central Standard Time":{abbr:"GMT+9:30",offset:9,zones:["Australia/Adelaide","Australia/Broken_Hill","Australia/Darwin"]},"Australian Central Western Standard Time":{abbr:"GMT+8:45",offset:8,zones:["Australia/Eucla"]},"Lord Howe Standard Time":{abbr:"GMT+10:30",offset:10,zones:["Australia/Lord_Howe"]},"Australian Western Standard Time":{abbr:"GMT+8",offset:8,zones:["Australia/Perth"]},"GMT+04:00":{abbr:"GMT+4",offset:4,zones:["Europe/Astrakhan","Europe/Saratov","Europe/Ulyanovsk"]},"Irish Standard Time":{abbr:"GMT+1",offset:1,zones:["Europe/Dublin"]},"British Summer Time":{abbr:"GMT+1",offset:1,zones:["Europe/London"]},"Moscow Standard Time":{abbr:"GMT+3",offset:3,zones:["Europe/Minsk","Europe/Moscow","Europe/Simferopol"]},"Samara Standard Time":{abbr:"GMT+4",offset:4,zones:["Europe/Samara"]},"Volgograd Standard Time":{abbr:"GMT+3",offset:3,zones:["Europe/Volgograd"]},"Indian Ocean Time":{abbr:"GMT+6",offset:6,zones:["Indian/Chagos"]},"Christmas Island Time":{abbr:"GMT+7",offset:7,zones:["Indian/Christmas"]},"Cocos Islands Time":{abbr:"GMT+6:30",offset:6,zones:["Indian/Cocos"]},"French Southern & Antarctic Time":{abbr:"GMT+5",offset:5,zones:["Indian/Kerguelen"]},"Seychelles Time":{abbr:"GMT+4",offset:4,zones:["Indian/Mahe"]},"Maldives Time":{abbr:"GMT+5",offset:5,zones:["Indian/Maldives"]},"Mauritius Standard Time":{abbr:"GMT+4",offset:4,zones:["Indian/Mauritius"]},"Réunion Time":{abbr:"GMT+4",offset:4,zones:["Indian/Reunion"]},"Apia Standard Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Apia"]},"Chatham Standard Time":{abbr:"GMT+12:45",offset:12,zones:["Pacific/Chatham"]},"Easter Island Standard Time":{abbr:"GMT-6",offset:-6,zones:["Pacific/Easter"]},"Vanuatu Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Efate"]},"Phoenix Islands Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Enderbury"]},"Tokelau Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Fakaofo"]},"Fiji Standard Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Fiji"]},"Tuvalu Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Funafuti"]},"Galapagos Time":{abbr:"GMT-6",offset:-6,zones:["Pacific/Galapagos"]},"Gambier Time":{abbr:"GMT-9",offset:-9,zones:["Pacific/Gambier"]},"Solomon Islands Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Guadalcanal"]},"Chamorro Standard Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Guam","Pacific/Saipan"]},"Hawaii-Aleutian Standard Time":{abbr:"HST",offset:-10,zones:["Pacific/Honolulu","Pacific/Johnston"]},"Line Islands Time":{abbr:"GMT+14",offset:14,zones:["Pacific/Kiritimati"]},"Kosrae Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Kosrae"]},"Marshall Islands Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Kwajalein","Pacific/Majuro"]},"Marquesas Time":{abbr:"GMT-9:30",offset:-10,zones:["Pacific/Marquesas"]},"Samoa Standard Time":{abbr:"GMT-11",offset:-11,zones:["Pacific/Midway","Pacific/Pago_Pago"]},"Nauru Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Nauru"]},"Niue Time":{abbr:"GMT-11",offset:-11,zones:["Pacific/Niue"]},"Norfolk Island Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Norfolk"]},"New Caledonia Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Noumea"]},"Palau Time":{abbr:"GMT+9",offset:9,zones:["Pacific/Palau"]},"Pitcairn Time":{abbr:"GMT-8",offset:-8,zones:["Pacific/Pitcairn"]},"Ponape Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Ponape"]},"Papua New Guinea Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Port_Moresby"]},"Cook Islands Standard Time":{abbr:"GMT-10",offset:-10,zones:["Pacific/Rarotonga"]},"Tahiti Time":{abbr:"GMT-10",offset:-10,zones:["Pacific/Tahiti"]},"Gilbert Islands Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Tarawa"]},"Tonga Standard Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Tongatapu"]},"Chuuk Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Truk"]},"Wake Island Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Wake"]},"Wallis & Futuna Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Wallis"]}},Pt=Object.entries(j).map(([i,e])=>({label:i,value:i,...e})).sort((i,e)=>i.label>e.label?1:e.label>i.label?-1:0),Da=i=>{var e;return i==="local"?wa():((e=j[i])==null?void 0:e.zones[0])??i},Et=i=>{const e=String(Math.abs(i)).padStart(2,"0");return i>=0?`+${e}:00`:`-${e}:00`},Ht=i=>{var o;let e=(o=j[i])==null?void 0:o.offset;if(e===void 0){const f=Da(i),m=ta.getTimezoneOffset(f);m?e=m/1e3/60/60:e=0}return Et(e)};export{Pt as T,Ot as a,j as b,It as c,Ut as d,Da as e,kt as f,Yt as g,ta as h,Nt as i,Ht as j,Rt as r,Wt as t}; diff --git a/ui/assets/local/_app/immutable/chunks/time-picker.GMYfL2o1.js b/ui/assets/local/_app/immutable/chunks/time-picker.tBXm030o.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/time-picker.GMYfL2o1.js rename to ui/assets/local/_app/immutable/chunks/time-picker.tBXm030o.js index 8328fbfaf6..cf38c22f90 100644 --- a/ui/assets/local/_app/immutable/chunks/time-picker.GMYfL2o1.js +++ b/ui/assets/local/_app/immutable/chunks/time-picker.tBXm030o.js @@ -1 +1 @@ -import{s as O,M as H,h as V,b as A,j as Y,k as z,d as I,f as k,m as G,i as D,n as T,T as E,t as R,l as j}from"./scheduler.1T9hOnFr.js";import{S as K,i as Q,f as P,c as _,a as h,m as v,t as d,g as L,b as g,e as W,d as p}from"./index.cVovwi_s.js";import{I as B}from"./input.Q5M-PWyi.js";import{T as U,a as J}from"./toggle-buttons.T_Q-cqgU.js";const q=[{label:"Every month",value:"*"},{label:"January",value:"1"},{label:"February",value:"2"},{label:"March",value:"3"},{label:"April",value:"4"},{label:"May",value:"5"},{label:"June",value:"6"},{label:"July",value:"7"},{label:"August",value:"8"},{label:"September",value:"9"},{label:"October",value:"10"},{label:"November",value:"11"},{label:"December",value:"12"}],ce=[{label:"Everyday",value:"*"},{label:"Weekdays",value:"1,2,3,4,5"},{label:"Weekends",value:"6,7"}],me=[{label:"Sunday",value:"7"},{label:"Monday",value:"1"},{label:"Tuesday",value:"2"},{label:"Wednesday",value:"3"},{label:"Thursday",value:"4"},{label:"Friday",value:"5"},{label:"Saturday",value:"6"}],X=[31,28,31,30,31,30,31,31,30,31,30,31],Z=l=>l%4===0,x=()=>Array.from({length:42}).map(()=>0),ee=(l,e)=>l!==1?X[l]:Z(e)?29:28,ne=(l,e)=>{const t=new Date(e,l,1).getMonth();return{name:q[t],days:ee(t,e)}},de=l=>q.filter(e=>e.value!=="*")[l],ge=(l,e)=>{const{days:n}=ne(l,e),t=x(),r=new Date(e,l,1).getDay();Array.from({length:n}).forEach((s,c)=>{const m=r+c;t[m]=c+1});const a=t.map(s=>Array.isArray(s)?void 0:s);return a[35]?a:a.slice(0,-7)};function N(l){let e,n,t;function r(s){l[9](s)}let a={id:"second",label:"sec",labelHidden:!0,placeholder:"00",suffix:"sec",maxLength:2,hideCount:!0,error:parseInt(l[0])>59,disabled:l[6]};return l[2]!==void 0&&(a.value=l[2]),e=new B({props:a}),H.push(()=>P(e,"value",r)),{c(){_(e.$$.fragment)},l(s){h(e.$$.fragment,s)},m(s,c){v(e,s,c),t=!0},p(s,c){const m={};c&1&&(m.error=parseInt(s[0])>59),c&64&&(m.disabled=s[6]),!n&&c&4&&(n=!0,m.value=s[2],E(()=>n=!1)),e.$set(m)},i(s){t||(d(e.$$.fragment,s),t=!0)},o(s){g(e.$$.fragment,s),t=!1},d(s){p(e,s)}}}function F(l){let e,n;return e=new U({props:{$$slots:{default:[te]},$$scope:{ctx:l}}}),{c(){_(e.$$.fragment)},l(t){h(e.$$.fragment,t)},m(t,r){v(e,t,r),n=!0},p(t,r){const a={};r&4104&&(a.$$scope={dirty:r,ctx:t}),e.$set(a)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){p(e,t)}}}function le(l){let e;return{c(){e=R("AM")},l(n){e=j(n,"AM")},m(n,t){D(n,e,t)},d(n){n&&k(e)}}}function ae(l){let e;return{c(){e=R("PM")},l(n){e=j(n,"PM")},m(n,t){D(n,e,t)},d(n){n&&k(e)}}}function te(l){let e,n,t,r;return e=new J({props:{active:l[3]==="AM",$$slots:{default:[le]},$$scope:{ctx:l}}}),e.$on("click",l[10]),t=new J({props:{active:l[3]==="PM",$$slots:{default:[ae]},$$scope:{ctx:l}}}),t.$on("click",l[11]),{c(){_(e.$$.fragment),n=A(),_(t.$$.fragment)},l(a){h(e.$$.fragment,a),n=I(a),h(t.$$.fragment,a)},m(a,s){v(e,a,s),D(a,n,s),v(t,a,s),r=!0},p(a,s){const c={};s&8&&(c.active=a[3]==="AM"),s&4096&&(c.$$scope={dirty:s,ctx:a}),e.$set(c);const m={};s&8&&(m.active=a[3]==="PM"),s&4096&&(m.$$scope={dirty:s,ctx:a}),t.$set(m)},i(a){r||(d(e.$$.fragment,a),d(t.$$.fragment,a),r=!0)},o(a){g(e.$$.fragment,a),g(t.$$.fragment,a),r=!1},d(a){a&&k(n),p(e,a),p(t,a)}}}function ue(l){let e,n,t,r,a,s,c,m,b;function S(o){l[7](o)}let w={id:"hour",label:"hrs",labelHidden:!0,placeholder:"00",suffix:"hrs",maxLength:2,hideCount:!0,error:l[4]?parseInt(l[0])>12:parseInt(l[0])>23,disabled:l[6]};l[0]!==void 0&&(w.value=l[0]),n=new B({props:w}),H.push(()=>P(n,"value",S));function C(o){l[8](o)}let M={id:"minute",label:"min",labelHidden:!0,placeholder:"00",suffix:"min",maxLength:2,hideCount:!0,error:parseInt(l[0])>59,disabled:l[6]};l[1]!==void 0&&(M.value=l[1]),a=new B({props:M}),H.push(()=>P(a,"value",C));let i=l[5]&&N(l),u=l[4]&&F(l);return{c(){e=V("div"),_(n.$$.fragment),r=A(),_(a.$$.fragment),c=A(),i&&i.c(),m=A(),u&&u.c(),this.h()},l(o){e=Y(o,"DIV",{class:!0});var f=z(e);h(n.$$.fragment,f),r=I(f),h(a.$$.fragment,f),c=I(f),i&&i.l(f),m=I(f),u&&u.l(f),f.forEach(k),this.h()},h(){G(e,"class","flex gap-2")},m(o,f){D(o,e,f),v(n,e,null),T(e,r),v(a,e,null),T(e,c),i&&i.m(e,null),T(e,m),u&&u.m(e,null),b=!0},p(o,[f]){const $={};f&17&&($.error=o[4]?parseInt(o[0])>12:parseInt(o[0])>23),f&64&&($.disabled=o[6]),!t&&f&1&&(t=!0,$.value=o[0],E(()=>t=!1)),n.$set($);const y={};f&1&&(y.error=parseInt(o[0])>59),f&64&&(y.disabled=o[6]),!s&&f&2&&(s=!0,y.value=o[1],E(()=>s=!1)),a.$set(y),o[5]?i?(i.p(o,f),f&32&&d(i,1)):(i=N(o),i.c(),d(i,1),i.m(e,m)):i&&(L(),g(i,1,1,()=>{i=null}),W()),o[4]?u?(u.p(o,f),f&16&&d(u,1)):(u=F(o),u.c(),d(u,1),u.m(e,null)):u&&(L(),g(u,1,1,()=>{u=null}),W())},i(o){b||(d(n.$$.fragment,o),d(a.$$.fragment,o),d(i),d(u),b=!0)},o(o){g(n.$$.fragment,o),g(a.$$.fragment,o),g(i),g(u),b=!1},d(o){o&&k(e),p(n),p(a),i&&i.d(),u&&u.d()}}}function se(l,e,n){let{hour:t=""}=e,{minute:r=""}=e,{second:a=""}=e,{half:s="AM"}=e,{twelveHourClock:c=!0}=e,{includeSeconds:m=!0}=e,{disabled:b=!1}=e;function S(u){t=u,n(0,t)}function w(u){r=u,n(1,r)}function C(u){a=u,n(2,a)}const M=()=>n(3,s="AM"),i=()=>n(3,s="PM");return l.$$set=u=>{"hour"in u&&n(0,t=u.hour),"minute"in u&&n(1,r=u.minute),"second"in u&&n(2,a=u.second),"half"in u&&n(3,s=u.half),"twelveHourClock"in u&&n(4,c=u.twelveHourClock),"includeSeconds"in u&&n(5,m=u.includeSeconds),"disabled"in u&&n(6,b=u.disabled)},[t,r,a,s,c,m,b,S,w,C,M,i]}class be extends K{constructor(e){super(),Q(this,e,se,ue,O,{hour:0,minute:1,second:2,half:3,twelveHourClock:4,includeSeconds:5,disabled:6})}}export{be as T,de as a,ce as b,ge as g,q as m,me as w}; +import{s as O,M as H,h as V,b as A,j as Y,k as z,d as I,f as k,m as G,i as D,n as T,T as E,t as R,l as j}from"./scheduler.pPC3woXQ.js";import{S as K,i as Q,f as P,c as _,a as h,m as v,t as d,g as L,b as g,e as W,d as p}from"./index.Z3Qqxacm.js";import{I as B}from"./input.T-q3Sv8I.js";import{T as U,a as J}from"./toggle-buttons.4_Ff5yMg.js";const q=[{label:"Every month",value:"*"},{label:"January",value:"1"},{label:"February",value:"2"},{label:"March",value:"3"},{label:"April",value:"4"},{label:"May",value:"5"},{label:"June",value:"6"},{label:"July",value:"7"},{label:"August",value:"8"},{label:"September",value:"9"},{label:"October",value:"10"},{label:"November",value:"11"},{label:"December",value:"12"}],ce=[{label:"Everyday",value:"*"},{label:"Weekdays",value:"1,2,3,4,5"},{label:"Weekends",value:"6,7"}],me=[{label:"Sunday",value:"7"},{label:"Monday",value:"1"},{label:"Tuesday",value:"2"},{label:"Wednesday",value:"3"},{label:"Thursday",value:"4"},{label:"Friday",value:"5"},{label:"Saturday",value:"6"}],X=[31,28,31,30,31,30,31,31,30,31,30,31],Z=l=>l%4===0,x=()=>Array.from({length:42}).map(()=>0),ee=(l,e)=>l!==1?X[l]:Z(e)?29:28,ne=(l,e)=>{const t=new Date(e,l,1).getMonth();return{name:q[t],days:ee(t,e)}},de=l=>q.filter(e=>e.value!=="*")[l],ge=(l,e)=>{const{days:n}=ne(l,e),t=x(),r=new Date(e,l,1).getDay();Array.from({length:n}).forEach((s,c)=>{const m=r+c;t[m]=c+1});const a=t.map(s=>Array.isArray(s)?void 0:s);return a[35]?a:a.slice(0,-7)};function N(l){let e,n,t;function r(s){l[9](s)}let a={id:"second",label:"sec",labelHidden:!0,placeholder:"00",suffix:"sec",maxLength:2,hideCount:!0,error:parseInt(l[0])>59,disabled:l[6]};return l[2]!==void 0&&(a.value=l[2]),e=new B({props:a}),H.push(()=>P(e,"value",r)),{c(){_(e.$$.fragment)},l(s){h(e.$$.fragment,s)},m(s,c){v(e,s,c),t=!0},p(s,c){const m={};c&1&&(m.error=parseInt(s[0])>59),c&64&&(m.disabled=s[6]),!n&&c&4&&(n=!0,m.value=s[2],E(()=>n=!1)),e.$set(m)},i(s){t||(d(e.$$.fragment,s),t=!0)},o(s){g(e.$$.fragment,s),t=!1},d(s){p(e,s)}}}function F(l){let e,n;return e=new U({props:{$$slots:{default:[te]},$$scope:{ctx:l}}}),{c(){_(e.$$.fragment)},l(t){h(e.$$.fragment,t)},m(t,r){v(e,t,r),n=!0},p(t,r){const a={};r&4104&&(a.$$scope={dirty:r,ctx:t}),e.$set(a)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){p(e,t)}}}function le(l){let e;return{c(){e=R("AM")},l(n){e=j(n,"AM")},m(n,t){D(n,e,t)},d(n){n&&k(e)}}}function ae(l){let e;return{c(){e=R("PM")},l(n){e=j(n,"PM")},m(n,t){D(n,e,t)},d(n){n&&k(e)}}}function te(l){let e,n,t,r;return e=new J({props:{active:l[3]==="AM",$$slots:{default:[le]},$$scope:{ctx:l}}}),e.$on("click",l[10]),t=new J({props:{active:l[3]==="PM",$$slots:{default:[ae]},$$scope:{ctx:l}}}),t.$on("click",l[11]),{c(){_(e.$$.fragment),n=A(),_(t.$$.fragment)},l(a){h(e.$$.fragment,a),n=I(a),h(t.$$.fragment,a)},m(a,s){v(e,a,s),D(a,n,s),v(t,a,s),r=!0},p(a,s){const c={};s&8&&(c.active=a[3]==="AM"),s&4096&&(c.$$scope={dirty:s,ctx:a}),e.$set(c);const m={};s&8&&(m.active=a[3]==="PM"),s&4096&&(m.$$scope={dirty:s,ctx:a}),t.$set(m)},i(a){r||(d(e.$$.fragment,a),d(t.$$.fragment,a),r=!0)},o(a){g(e.$$.fragment,a),g(t.$$.fragment,a),r=!1},d(a){a&&k(n),p(e,a),p(t,a)}}}function ue(l){let e,n,t,r,a,s,c,m,b;function S(o){l[7](o)}let w={id:"hour",label:"hrs",labelHidden:!0,placeholder:"00",suffix:"hrs",maxLength:2,hideCount:!0,error:l[4]?parseInt(l[0])>12:parseInt(l[0])>23,disabled:l[6]};l[0]!==void 0&&(w.value=l[0]),n=new B({props:w}),H.push(()=>P(n,"value",S));function C(o){l[8](o)}let M={id:"minute",label:"min",labelHidden:!0,placeholder:"00",suffix:"min",maxLength:2,hideCount:!0,error:parseInt(l[0])>59,disabled:l[6]};l[1]!==void 0&&(M.value=l[1]),a=new B({props:M}),H.push(()=>P(a,"value",C));let i=l[5]&&N(l),u=l[4]&&F(l);return{c(){e=V("div"),_(n.$$.fragment),r=A(),_(a.$$.fragment),c=A(),i&&i.c(),m=A(),u&&u.c(),this.h()},l(o){e=Y(o,"DIV",{class:!0});var f=z(e);h(n.$$.fragment,f),r=I(f),h(a.$$.fragment,f),c=I(f),i&&i.l(f),m=I(f),u&&u.l(f),f.forEach(k),this.h()},h(){G(e,"class","flex gap-2")},m(o,f){D(o,e,f),v(n,e,null),T(e,r),v(a,e,null),T(e,c),i&&i.m(e,null),T(e,m),u&&u.m(e,null),b=!0},p(o,[f]){const $={};f&17&&($.error=o[4]?parseInt(o[0])>12:parseInt(o[0])>23),f&64&&($.disabled=o[6]),!t&&f&1&&(t=!0,$.value=o[0],E(()=>t=!1)),n.$set($);const y={};f&1&&(y.error=parseInt(o[0])>59),f&64&&(y.disabled=o[6]),!s&&f&2&&(s=!0,y.value=o[1],E(()=>s=!1)),a.$set(y),o[5]?i?(i.p(o,f),f&32&&d(i,1)):(i=N(o),i.c(),d(i,1),i.m(e,m)):i&&(L(),g(i,1,1,()=>{i=null}),W()),o[4]?u?(u.p(o,f),f&16&&d(u,1)):(u=F(o),u.c(),d(u,1),u.m(e,null)):u&&(L(),g(u,1,1,()=>{u=null}),W())},i(o){b||(d(n.$$.fragment,o),d(a.$$.fragment,o),d(i),d(u),b=!0)},o(o){g(n.$$.fragment,o),g(a.$$.fragment,o),g(i),g(u),b=!1},d(o){o&&k(e),p(n),p(a),i&&i.d(),u&&u.d()}}}function se(l,e,n){let{hour:t=""}=e,{minute:r=""}=e,{second:a=""}=e,{half:s="AM"}=e,{twelveHourClock:c=!0}=e,{includeSeconds:m=!0}=e,{disabled:b=!1}=e;function S(u){t=u,n(0,t)}function w(u){r=u,n(1,r)}function C(u){a=u,n(2,a)}const M=()=>n(3,s="AM"),i=()=>n(3,s="PM");return l.$$set=u=>{"hour"in u&&n(0,t=u.hour),"minute"in u&&n(1,r=u.minute),"second"in u&&n(2,a=u.second),"half"in u&&n(3,s=u.half),"twelveHourClock"in u&&n(4,c=u.twelveHourClock),"includeSeconds"in u&&n(5,m=u.includeSeconds),"disabled"in u&&n(6,b=u.disabled)},[t,r,a,s,c,m,b,S,w,C,M,i]}class be extends K{constructor(e){super(),Q(this,e,se,ue,O,{hour:0,minute:1,second:2,half:3,twelveHourClock:4,includeSeconds:5,disabled:6})}}export{be as T,de as a,ce as b,ge as g,q as m,me as w}; diff --git a/ui/assets/local/_app/immutable/chunks/toaster.IevlZuOP.js b/ui/assets/local/_app/immutable/chunks/toaster.pceGNaxq.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/toaster.IevlZuOP.js rename to ui/assets/local/_app/immutable/chunks/toaster.pceGNaxq.js index 2e7092d8a1..6cc3dab8c0 100644 --- a/ui/assets/local/_app/immutable/chunks/toaster.IevlZuOP.js +++ b/ui/assets/local/_app/immutable/chunks/toaster.pceGNaxq.js @@ -1 +1 @@ -import{w as p}from"./entry.1BQh90wu.js";let c;const s=new Uint8Array(16);function m(){if(!c&&(c=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!c))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return c(s)}const e=[];for(let t=0;t<256;++t)e.push((t+256).toString(16).slice(1));function y(t,n=0){return(e[t[n+0]]+e[t[n+1]]+e[t[n+2]]+e[t[n+3]]+"-"+e[t[n+4]]+e[t[n+5]]+"-"+e[t[n+6]]+e[t[n+7]]+"-"+e[t[n+8]]+e[t[n+9]]+"-"+e[t[n+10]]+e[t[n+11]]+e[t[n+12]]+e[t[n+13]]+e[t[n+14]]+e[t[n+15]]).toLowerCase()}const l=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),r={randomUUID:l};function U(t,n,i){if(r.randomUUID&&!n&&!t)return r.randomUUID();t=t||{};const o=t.random||(t.rng||m)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,n){i=i||0;for(let d=0;d<16;++d)n[i+d]=o[d];return n}return y(o)}const u=p([]),g=t=>{const n={id:U(),duration:3e3,variant:"primary",...t};u.update(o=>[...o,n]);const i=setTimeout(()=>{a(n.id),clearTimeout(i)},n.duration)},a=t=>{u.update(n=>n.filter(i=>i.id!==t))},x=()=>{u.set([])},h={push:g,pop:a,clear:x,toasts:u,set:u.set,subscribe:u.subscribe,update:u.update};export{h as t,U as v}; +import{w as p}from"./entry.6mxJxwSM.js";let c;const s=new Uint8Array(16);function m(){if(!c&&(c=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!c))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return c(s)}const e=[];for(let t=0;t<256;++t)e.push((t+256).toString(16).slice(1));function y(t,n=0){return(e[t[n+0]]+e[t[n+1]]+e[t[n+2]]+e[t[n+3]]+"-"+e[t[n+4]]+e[t[n+5]]+"-"+e[t[n+6]]+e[t[n+7]]+"-"+e[t[n+8]]+e[t[n+9]]+"-"+e[t[n+10]]+e[t[n+11]]+e[t[n+12]]+e[t[n+13]]+e[t[n+14]]+e[t[n+15]]).toLowerCase()}const l=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),r={randomUUID:l};function U(t,n,i){if(r.randomUUID&&!n&&!t)return r.randomUUID();t=t||{};const o=t.random||(t.rng||m)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,n){i=i||0;for(let d=0;d<16;++d)n[i+d]=o[d];return n}return y(o)}const u=p([]),g=t=>{const n={id:U(),duration:3e3,variant:"primary",...t};u.update(o=>[...o,n]);const i=setTimeout(()=>{a(n.id),clearTimeout(i)},n.duration)},a=t=>{u.update(n=>n.filter(i=>i.id!==t))},x=()=>{u.set([])},h={push:g,pop:a,clear:x,toasts:u,set:u.set,subscribe:u.subscribe,update:u.update};export{h as t,U as v}; diff --git a/ui/assets/local/_app/immutable/chunks/toggle-buttons.T_Q-cqgU.js b/ui/assets/local/_app/immutable/chunks/toggle-buttons.4_Ff5yMg.js similarity index 93% rename from ui/assets/local/_app/immutable/chunks/toggle-buttons.T_Q-cqgU.js rename to ui/assets/local/_app/immutable/chunks/toggle-buttons.4_Ff5yMg.js index bca2ce13bf..1fbe276433 100644 --- a/ui/assets/local/_app/immutable/chunks/toggle-buttons.T_Q-cqgU.js +++ b/ui/assets/local/_app/immutable/chunks/toggle-buttons.4_Ff5yMg.js @@ -1 +1 @@ -import{$ as J,s as T,x as y,i as C,f as b,E as z,c as K,L as O,z as S,A as Q,h as E,j as I,k as N,af as B,I as _,p as R,B as W,a as D,u as P,g as V,e as j,b as X,d as Y,m as q,n as Z,a2 as w}from"./scheduler.1T9hOnFr.js";import{S as U,i as F,t as m,b as d,g as G,e as H,c as $,a as x,m as ee,d as te}from"./index.cVovwi_s.js";import{g as le}from"./spread.rEx3vLA9.js";import{p as se}from"./stores.6oDSidma.js";import{I as ne}from"./icon.w8eknFMq.js";import{t as L}from"./tw-merge.NbP7EmZe.js";function ae(n){return J(n)}function oe(n){let t;const s=n[10].default,a=D(s,n,n[9],null);return{c(){a&&a.c()},l(l){a&&a.l(l)},m(l,e){a&&a.m(l,e),t=!0},p(l,e){a&&a.p&&(!t||e&512)&&P(a,s,l,l[9],t?j(s,l[9],e,null):V(l[9]),null)},i(l){t||(m(a,l),t=!0)},o(l){d(a,l),t=!1},d(l){a&&a.d(l)}}}function ue(n){let t,s,a,l;s=new ne({props:{name:n[1]}});let e=n[8].default&&M(n);return{c(){t=E("div"),$(s.$$.fragment),a=X(),e&&e.c(),this.h()},l(o){t=I(o,"DIV",{class:!0});var r=N(t);x(s.$$.fragment,r),a=Y(r),e&&e.l(r),r.forEach(b),this.h()},h(){q(t,"class","flex items-center gap-2")},m(o,r){C(o,t,r),ee(s,t,null),Z(t,a),e&&e.m(t,null),l=!0},p(o,r){const h={};r&2&&(h.name=o[1]),s.$set(h),o[8].default?e?(e.p(o,r),r&256&&m(e,1)):(e=M(o),e.c(),m(e,1),e.m(t,null)):e&&(G(),d(e,1,1,()=>{e=null}),H())},i(o){l||(m(s.$$.fragment,o),m(e),l=!0)},o(o){d(s.$$.fragment,o),d(e),l=!1},d(o){o&&b(t),te(s),e&&e.d()}}}function M(n){let t,s;const a=n[10].default,l=D(a,n,n[9],null);return{c(){t=E("span"),l&&l.c(),this.h()},l(e){t=I(e,"SPAN",{class:!0});var o=N(t);l&&l.l(o),o.forEach(b),this.h()},h(){q(t,"class","hidden md:block")},m(e,o){C(e,t,o),l&&l.m(t,null),s=!0},p(e,o){l&&l.p&&(!s||o&512)&&P(l,a,e,e[9],s?j(a,e[9],o,null):V(e[9]),null)},i(e){s||(m(l,e),s=!0)},o(e){d(l,e),s=!1},d(e){e&&b(t),l&&l.d(e)}}}function A(n){let t,s,a,l,e,o,r,h;const v=[ue,oe],c=[];function k(u,f){return u[1]?0:1}s=k(n),a=c[s]=v[s](n);let g=[{class:l=L("toggle-button",n[0])},{href:e=n[3]?n[3]+n[6].url.search:null},{role:"button"},{tabindex:"0"},n[7]],p={};for(let u=0;u{c[i]=null}),H(),a=c[s],a?a.p(u,f):(a=c[s]=v[s](u),a.c()),m(a,1),a.m(t,null)),B(u[3]?"a":"button")(t,p=le(g,[(!o||f&1&&l!==(l=L("toggle-button",u[0])))&&{class:l},(!o||f&72&&e!==(e=u[3]?u[3]+u[6].url.search:null))&&{href:e},{role:"button"},{tabindex:"0"},f&128&&u[7]])),_(t,"group",u[2]),_(t,"active",u[3]?u[6].url.pathname.includes(u[4]):u[5]),_(t,"rounded-lg",!u[2]),_(t,"disabled",u[7].disabled),_(t,"svelte-1idnkre",!0)},i(u){o||(m(a),o=!0)},o(u){d(a),o=!1},d(u){u&&b(t),c[s].d(),r=!1,h()}}}function ie(n){let t=n[3]?"a":"button",s,a,l=(n[3]?"a":"button")&&A(n);return{c(){l&&l.c(),s=y()},l(e){l&&l.l(e),s=y()},m(e,o){l&&l.m(e,o),C(e,s,o),a=!0},p(e,[o]){e[3],t?T(t,e[3]?"a":"button")?(l.d(1),l=A(e),t=e[3]?"a":"button",l.c(),l.m(s.parentNode,s)):l.p(e,o):(l=A(e),t=e[3]?"a":"button",l.c(),l.m(s.parentNode,s))},i(e){a||(m(l,e),a=!0)},o(e){d(l,e),a=!1},d(e){e&&b(s),l&&l.d(e)}}}function re(n,t,s){const a=["class","icon","group","href","base","active"];let l=z(t,a),e;K(n,se,i=>s(6,e=i));let{$$slots:o={},$$scope:r}=t;const h=O(o);let{class:v=""}=t,{icon:c=null}=t,{group:k=ae("group")}=t,{href:g=""}=t,{base:p=g}=t,{active:u=!1}=t;function f(i){W.call(this,n,i)}return n.$$set=i=>{t=S(S({},t),Q(i)),s(7,l=z(t,a)),"class"in i&&s(0,v=i.class),"icon"in i&&s(1,c=i.icon),"group"in i&&s(2,k=i.group),"href"in i&&s(3,g=i.href),"base"in i&&s(4,p=i.base),"active"in i&&s(5,u=i.active),"$$scope"in i&&s(9,r=i.$$scope)},[v,c,k,g,p,u,e,l,h,r,o,f]}class pe extends U{constructor(t){super(),F(this,t,re,ie,T,{class:0,icon:1,group:2,href:3,base:4,active:5})}}function fe(n){let t,s;const a=n[1].default,l=D(a,n,n[0],null);return{c(){t=E("div"),l&&l.c(),this.h()},l(e){t=I(e,"DIV",{class:!0});var o=N(t);l&&l.l(o),o.forEach(b),this.h()},h(){q(t,"class","flex")},m(e,o){C(e,t,o),l&&l.m(t,null),s=!0},p(e,[o]){l&&l.p&&(!s||o&1)&&P(l,a,e,e[0],s?j(a,e[0],o,null):V(e[0]),null)},i(e){s||(m(l,e),s=!0)},o(e){d(l,e),s=!1},d(e){e&&b(t),l&&l.d(e)}}}function ce(n,t,s){let{$$slots:a={},$$scope:l}=t;return w("group",!0),n.$$set=e=>{"$$scope"in e&&s(0,l=e.$$scope)},[l,a]}class ve extends U{constructor(t){super(),F(this,t,ce,fe,T,{})}}export{ve as T,pe as a}; +import{$ as J,s as T,x as y,i as C,f as b,E as z,c as K,L as O,z as S,A as Q,h as E,j as I,k as N,af as B,I as _,p as R,B as W,a as D,u as P,g as V,e as j,b as X,d as Y,m as q,n as Z,a5 as w}from"./scheduler.pPC3woXQ.js";import{S as U,i as F,t as m,b as d,g as G,e as H,c as $,a as x,m as ee,d as te}from"./index.Z3Qqxacm.js";import{g as le}from"./spread.rEx3vLA9.js";import{p as se}from"./stores.cW8AX6ex.js";import{I as ne}from"./icon.IMxiy1l_.js";import{t as L}from"./tw-merge.NbP7EmZe.js";function ae(n){return J(n)}function oe(n){let t;const s=n[10].default,a=D(s,n,n[9],null);return{c(){a&&a.c()},l(l){a&&a.l(l)},m(l,e){a&&a.m(l,e),t=!0},p(l,e){a&&a.p&&(!t||e&512)&&P(a,s,l,l[9],t?j(s,l[9],e,null):V(l[9]),null)},i(l){t||(m(a,l),t=!0)},o(l){d(a,l),t=!1},d(l){a&&a.d(l)}}}function ue(n){let t,s,a,l;s=new ne({props:{name:n[1]}});let e=n[8].default&&M(n);return{c(){t=E("div"),$(s.$$.fragment),a=X(),e&&e.c(),this.h()},l(o){t=I(o,"DIV",{class:!0});var r=N(t);x(s.$$.fragment,r),a=Y(r),e&&e.l(r),r.forEach(b),this.h()},h(){q(t,"class","flex items-center gap-2")},m(o,r){C(o,t,r),ee(s,t,null),Z(t,a),e&&e.m(t,null),l=!0},p(o,r){const h={};r&2&&(h.name=o[1]),s.$set(h),o[8].default?e?(e.p(o,r),r&256&&m(e,1)):(e=M(o),e.c(),m(e,1),e.m(t,null)):e&&(G(),d(e,1,1,()=>{e=null}),H())},i(o){l||(m(s.$$.fragment,o),m(e),l=!0)},o(o){d(s.$$.fragment,o),d(e),l=!1},d(o){o&&b(t),te(s),e&&e.d()}}}function M(n){let t,s;const a=n[10].default,l=D(a,n,n[9],null);return{c(){t=E("span"),l&&l.c(),this.h()},l(e){t=I(e,"SPAN",{class:!0});var o=N(t);l&&l.l(o),o.forEach(b),this.h()},h(){q(t,"class","hidden md:block")},m(e,o){C(e,t,o),l&&l.m(t,null),s=!0},p(e,o){l&&l.p&&(!s||o&512)&&P(l,a,e,e[9],s?j(a,e[9],o,null):V(e[9]),null)},i(e){s||(m(l,e),s=!0)},o(e){d(l,e),s=!1},d(e){e&&b(t),l&&l.d(e)}}}function A(n){let t,s,a,l,e,o,r,h;const v=[ue,oe],c=[];function k(u,f){return u[1]?0:1}s=k(n),a=c[s]=v[s](n);let g=[{class:l=L("toggle-button",n[0])},{href:e=n[3]?n[3]+n[6].url.search:null},{role:"button"},{tabindex:"0"},n[7]],p={};for(let u=0;u{c[i]=null}),H(),a=c[s],a?a.p(u,f):(a=c[s]=v[s](u),a.c()),m(a,1),a.m(t,null)),B(u[3]?"a":"button")(t,p=le(g,[(!o||f&1&&l!==(l=L("toggle-button",u[0])))&&{class:l},(!o||f&72&&e!==(e=u[3]?u[3]+u[6].url.search:null))&&{href:e},{role:"button"},{tabindex:"0"},f&128&&u[7]])),_(t,"group",u[2]),_(t,"active",u[3]?u[6].url.pathname.includes(u[4]):u[5]),_(t,"rounded-lg",!u[2]),_(t,"disabled",u[7].disabled),_(t,"svelte-1idnkre",!0)},i(u){o||(m(a),o=!0)},o(u){d(a),o=!1},d(u){u&&b(t),c[s].d(),r=!1,h()}}}function ie(n){let t=n[3]?"a":"button",s,a,l=(n[3]?"a":"button")&&A(n);return{c(){l&&l.c(),s=y()},l(e){l&&l.l(e),s=y()},m(e,o){l&&l.m(e,o),C(e,s,o),a=!0},p(e,[o]){e[3],t?T(t,e[3]?"a":"button")?(l.d(1),l=A(e),t=e[3]?"a":"button",l.c(),l.m(s.parentNode,s)):l.p(e,o):(l=A(e),t=e[3]?"a":"button",l.c(),l.m(s.parentNode,s))},i(e){a||(m(l,e),a=!0)},o(e){d(l,e),a=!1},d(e){e&&b(s),l&&l.d(e)}}}function re(n,t,s){const a=["class","icon","group","href","base","active"];let l=z(t,a),e;K(n,se,i=>s(6,e=i));let{$$slots:o={},$$scope:r}=t;const h=O(o);let{class:v=""}=t,{icon:c=null}=t,{group:k=ae("group")}=t,{href:g=""}=t,{base:p=g}=t,{active:u=!1}=t;function f(i){W.call(this,n,i)}return n.$$set=i=>{t=S(S({},t),Q(i)),s(7,l=z(t,a)),"class"in i&&s(0,v=i.class),"icon"in i&&s(1,c=i.icon),"group"in i&&s(2,k=i.group),"href"in i&&s(3,g=i.href),"base"in i&&s(4,p=i.base),"active"in i&&s(5,u=i.active),"$$scope"in i&&s(9,r=i.$$scope)},[v,c,k,g,p,u,e,l,h,r,o,f]}class pe extends U{constructor(t){super(),F(this,t,re,ie,T,{class:0,icon:1,group:2,href:3,base:4,active:5})}}function fe(n){let t,s;const a=n[1].default,l=D(a,n,n[0],null);return{c(){t=E("div"),l&&l.c(),this.h()},l(e){t=I(e,"DIV",{class:!0});var o=N(t);l&&l.l(o),o.forEach(b),this.h()},h(){q(t,"class","flex")},m(e,o){C(e,t,o),l&&l.m(t,null),s=!0},p(e,[o]){l&&l.p&&(!s||o&1)&&P(l,a,e,e[0],s?j(a,e[0],o,null):V(e[0]),null)},i(e){s||(m(l,e),s=!0)},o(e){d(l,e),s=!1},d(e){e&&b(t),l&&l.d(e)}}}function ce(n,t,s){let{$$slots:a={},$$scope:l}=t;return w("group",!0),n.$$set=e=>{"$$scope"in e&&s(0,l=e.$$scope)},[l,a]}class ve extends U{constructor(t){super(),F(this,t,ce,fe,T,{})}}export{ve as T,pe as a}; diff --git a/ui/assets/local/_app/immutable/chunks/toggle-switch.UfN-z_wd.js b/ui/assets/local/_app/immutable/chunks/toggle-switch.zgefoq1_.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/toggle-switch.UfN-z_wd.js rename to ui/assets/local/_app/immutable/chunks/toggle-switch.zgefoq1_.js index f99fdc7824..ebbbdeb7e1 100644 --- a/ui/assets/local/_app/immutable/chunks/toggle-switch.UfN-z_wd.js +++ b/ui/assets/local/_app/immutable/chunks/toggle-switch.zgefoq1_.js @@ -1 +1 @@ -import{s as j,z as _,A as y,h as g,t as E,b as P,j as v,k as p,l as T,f,d as w,m as o,I as H,i as b,n as S,p as A,q,H as x,B as I}from"./scheduler.1T9hOnFr.js";import{S as L,i as z,c as B,a as C,m as M,t as U,b as D,d as F}from"./index.cVovwi_s.js";import{L as G}from"./label.ujgKMPb9.js";import{t as N}from"./tw-merge.NbP7EmZe.js";function J(s){let i,t,a,r,n,c,d,u,h,m;return{c(){i=g("span"),t=E(s[2]),a=P(),r=g("input"),n=P(),c=g("span"),d=g("span"),this.h()},l(e){i=v(e,"SPAN",{class:!0});var l=p(i);t=T(l,s[2]),l.forEach(f),a=w(e),r=v(e,"INPUT",{id:!0,type:!0,class:!0,role:!0}),n=w(e),c=v(e,"SPAN",{class:!0});var k=p(c);d=v(k,"SPAN",{class:!0}),p(d).forEach(f),k.forEach(f),this.h()},h(){o(i,"class","whitespace-nowrap text-sm font-medium"),H(i,"sr-only",s[5]),o(r,"id",s[1]),r.disabled=s[3],o(r,"type","checkbox"),o(r,"class","peer sr-only"),o(r,"role","switch"),o(d,"class","h-4 w-4 rounded-[50%] bg-current"),o(c,"class",u="surface-background not-sr-only flex h-5 w-9 items-center rounded-xl border border-secondary p-px peer-checked:justify-end peer-checked:border-interactive peer-checked:bg-interactive peer-checked:text-off-white "+(s[3]?"":"group-hover:border-information group-hover:bg-interactive-secondary-hover group-hover:peer-checked:bg-interactive-hover")+" peer-focus-visible:border-inverse peer-focus-visible:bg-interactive-secondary-hover peer-focus-visible:ring-4 peer-focus-visible:ring-primary/70 peer-focus-visible:peer-checked:bg-interactive-hover")},m(e,l){b(e,i,l),S(i,t),b(e,a,l),b(e,r,l),r.checked=s[0],b(e,n,l),b(e,c,l),S(c,d),h||(m=[A(r,"change",s[7]),A(r,"change",s[8])],h=!0)},p(e,l){l&4&&q(t,e[2]),l&32&&H(i,"sr-only",e[5]),l&2&&o(r,"id",e[1]),l&8&&(r.disabled=e[3]),l&1&&(r.checked=e[0]),l&8&&u!==(u="surface-background not-sr-only flex h-5 w-9 items-center rounded-xl border border-secondary p-px peer-checked:justify-end peer-checked:border-interactive peer-checked:bg-interactive peer-checked:text-off-white "+(e[3]?"":"group-hover:border-information group-hover:bg-interactive-secondary-hover group-hover:peer-checked:bg-interactive-hover")+" peer-focus-visible:border-inverse peer-focus-visible:bg-interactive-secondary-hover peer-focus-visible:ring-4 peer-focus-visible:ring-primary/70 peer-focus-visible:peer-checked:bg-interactive-hover")&&o(c,"class",u)},d(e){e&&(f(i),f(a),f(r),f(n),f(c)),h=!1,x(m)}}}function K(s){let i,t;return i=new G({props:{class:N("group relative flex w-fit min-w-fit rounded px-2",s[4]==="right"?"flex-row-reverse":"flex-row",s[3]&&"opacity-50"),disabled:s[3],"data-testid":s[6]["data-testid"],$$slots:{default:[J]},$$scope:{ctx:s}}}),{c(){B(i.$$.fragment)},l(a){C(i.$$.fragment,a)},m(a,r){M(i,a,r),t=!0},p(a,[r]){const n={};r&24&&(n.class=N("group relative flex w-fit min-w-fit rounded px-2",a[4]==="right"?"flex-row-reverse":"flex-row",a[3]&&"opacity-50")),r&8&&(n.disabled=a[3]),r&64&&(n["data-testid"]=a[6]["data-testid"]),r&559&&(n.$$scope={dirty:r,ctx:a}),i.$set(n)},i(a){t||(U(i.$$.fragment,a),t=!0)},o(a){D(i.$$.fragment,a),t=!1},d(a){F(i,a)}}}function O(s,i,t){let{id:a}=i,{label:r}=i,{disabled:n=!1}=i,{checked:c=!1}=i,{labelPosition:d="right"}=i,{labelHidden:u=!1}=i;function h(e){I.call(this,s,e)}function m(){c=this.checked,t(0,c)}return s.$$set=e=>{t(6,i=_(_({},i),y(e))),"id"in e&&t(1,a=e.id),"label"in e&&t(2,r=e.label),"disabled"in e&&t(3,n=e.disabled),"checked"in e&&t(0,c=e.checked),"labelPosition"in e&&t(4,d=e.labelPosition),"labelHidden"in e&&t(5,u=e.labelHidden)},i=y(i),[c,a,r,n,d,u,i,h,m]}class X extends L{constructor(i){super(),z(this,i,O,K,j,{id:1,label:2,disabled:3,checked:0,labelPosition:4,labelHidden:5})}}export{X as T}; +import{s as j,z as _,A as y,h as g,t as E,b as P,j as v,k as p,l as T,f,d as w,m as o,I as H,i as b,n as S,p as A,q,H as x,B as I}from"./scheduler.pPC3woXQ.js";import{S as L,i as z,c as B,a as C,m as M,t as U,b as D,d as F}from"./index.Z3Qqxacm.js";import{L as G}from"./label.zXYhHpIA.js";import{t as N}from"./tw-merge.NbP7EmZe.js";function J(s){let i,t,a,r,n,c,d,u,h,m;return{c(){i=g("span"),t=E(s[2]),a=P(),r=g("input"),n=P(),c=g("span"),d=g("span"),this.h()},l(e){i=v(e,"SPAN",{class:!0});var l=p(i);t=T(l,s[2]),l.forEach(f),a=w(e),r=v(e,"INPUT",{id:!0,type:!0,class:!0,role:!0}),n=w(e),c=v(e,"SPAN",{class:!0});var k=p(c);d=v(k,"SPAN",{class:!0}),p(d).forEach(f),k.forEach(f),this.h()},h(){o(i,"class","whitespace-nowrap text-sm font-medium"),H(i,"sr-only",s[5]),o(r,"id",s[1]),r.disabled=s[3],o(r,"type","checkbox"),o(r,"class","peer sr-only"),o(r,"role","switch"),o(d,"class","h-4 w-4 rounded-[50%] bg-current"),o(c,"class",u="surface-background not-sr-only flex h-5 w-9 items-center rounded-xl border border-secondary p-px peer-checked:justify-end peer-checked:border-interactive peer-checked:bg-interactive peer-checked:text-off-white "+(s[3]?"":"group-hover:border-information group-hover:bg-interactive-secondary-hover group-hover:peer-checked:bg-interactive-hover")+" peer-focus-visible:border-inverse peer-focus-visible:bg-interactive-secondary-hover peer-focus-visible:ring-4 peer-focus-visible:ring-primary/70 peer-focus-visible:peer-checked:bg-interactive-hover")},m(e,l){b(e,i,l),S(i,t),b(e,a,l),b(e,r,l),r.checked=s[0],b(e,n,l),b(e,c,l),S(c,d),h||(m=[A(r,"change",s[7]),A(r,"change",s[8])],h=!0)},p(e,l){l&4&&q(t,e[2]),l&32&&H(i,"sr-only",e[5]),l&2&&o(r,"id",e[1]),l&8&&(r.disabled=e[3]),l&1&&(r.checked=e[0]),l&8&&u!==(u="surface-background not-sr-only flex h-5 w-9 items-center rounded-xl border border-secondary p-px peer-checked:justify-end peer-checked:border-interactive peer-checked:bg-interactive peer-checked:text-off-white "+(e[3]?"":"group-hover:border-information group-hover:bg-interactive-secondary-hover group-hover:peer-checked:bg-interactive-hover")+" peer-focus-visible:border-inverse peer-focus-visible:bg-interactive-secondary-hover peer-focus-visible:ring-4 peer-focus-visible:ring-primary/70 peer-focus-visible:peer-checked:bg-interactive-hover")&&o(c,"class",u)},d(e){e&&(f(i),f(a),f(r),f(n),f(c)),h=!1,x(m)}}}function K(s){let i,t;return i=new G({props:{class:N("group relative flex w-fit min-w-fit rounded px-2",s[4]==="right"?"flex-row-reverse":"flex-row",s[3]&&"opacity-50"),disabled:s[3],"data-testid":s[6]["data-testid"],$$slots:{default:[J]},$$scope:{ctx:s}}}),{c(){B(i.$$.fragment)},l(a){C(i.$$.fragment,a)},m(a,r){M(i,a,r),t=!0},p(a,[r]){const n={};r&24&&(n.class=N("group relative flex w-fit min-w-fit rounded px-2",a[4]==="right"?"flex-row-reverse":"flex-row",a[3]&&"opacity-50")),r&8&&(n.disabled=a[3]),r&64&&(n["data-testid"]=a[6]["data-testid"]),r&559&&(n.$$scope={dirty:r,ctx:a}),i.$set(n)},i(a){t||(U(i.$$.fragment,a),t=!0)},o(a){D(i.$$.fragment,a),t=!1},d(a){F(i,a)}}}function O(s,i,t){let{id:a}=i,{label:r}=i,{disabled:n=!1}=i,{checked:c=!1}=i,{labelPosition:d="right"}=i,{labelHidden:u=!1}=i;function h(e){I.call(this,s,e)}function m(){c=this.checked,t(0,c)}return s.$$set=e=>{t(6,i=_(_({},i),y(e))),"id"in e&&t(1,a=e.id),"label"in e&&t(2,r=e.label),"disabled"in e&&t(3,n=e.disabled),"checked"in e&&t(0,c=e.checked),"labelPosition"in e&&t(4,d=e.labelPosition),"labelHidden"in e&&t(5,u=e.labelHidden)},i=y(i),[c,a,r,n,d,u,i,h,m]}class X extends L{constructor(i){super(),z(this,i,O,K,j,{id:1,label:2,disabled:3,checked:0,labelPosition:4,labelHidden:5})}}export{X as T}; diff --git a/ui/assets/local/_app/immutable/chunks/tokenize.jgAoLMNq.js b/ui/assets/local/_app/immutable/chunks/tokenize.qE8oOLRx.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/tokenize.jgAoLMNq.js rename to ui/assets/local/_app/immutable/chunks/tokenize.qE8oOLRx.js index 4e47f6fe0b..a105de6989 100644 --- a/ui/assets/local/_app/immutable/chunks/tokenize.jgAoLMNq.js +++ b/ui/assets/local/_app/immutable/chunks/tokenize.qE8oOLRx.js @@ -1 +1 @@ -import{s as z,x as F,i as y,f as m,c as Y,h as p,b as Z,j as I,k as w,d as x,m as _,W as q,n as $,I as B,p as A,G as D,a0 as G,a1 as ee,v as M}from"./scheduler.1T9hOnFr.js";import{S as te,i as le,t as r,g as d,b as u,e as k,c as H,a as J,m as K,d as L}from"./index.cVovwi_s.js";import{I as R}from"./icon.w8eknFMq.js";import{c as ie}from"./copy-to-clipboard.NHd-JF1v.js";import{t as N}from"./tw-merge.NbP7EmZe.js";import{c as O,d as Q,e as b,f as ne,g as E,j as oe}from"./has.Hk4nWl3x.js";function P(c){let e,o,l,i,s=c[1]&&U(c),t=c[2]&&W(c);return{c(){e=p("div"),s&&s.c(),o=Z(),t&&t.c(),this.h()},l(n){e=I(n,"DIV",{class:!0});var a=w(e);s&&s.l(a),o=x(a),t&&t.l(a),a.forEach(m),this.h()},h(){_(e,"class",l=q(N("copy-or-filter",c[9]))+" svelte-qwjj97")},m(n,a){y(n,e,a),s&&s.m(e,null),$(e,o),t&&t.m(e,null),i=!0},p(n,a){n[1]?s?(s.p(n,a),a&2&&r(s,1)):(s=U(n),s.c(),r(s,1),s.m(e,o)):s&&(d(),u(s,1,1,()=>{s=null}),k()),n[2]?t?(t.p(n,a),a&4&&r(t,1)):(t=W(n),t.c(),r(t,1),t.m(e,null)):t&&(d(),u(t,1,1,()=>{t=null}),k()),(!i||a&512&&l!==(l=q(N("copy-or-filter",n[9]))+" svelte-qwjj97"))&&_(e,"class",l)},i(n){i||(r(s),r(t),i=!0)},o(n){u(s),u(t),i=!1},d(n){n&&m(e),s&&s.d(),t&&t.d()}}}function U(c){let e,o=c[5],l,i,s,t=V(c);return{c(){e=p("button"),t.c(),this.h()},l(n){e=I(n,"BUTTON",{class:!0,id:!0});var a=w(e);t.l(a),a.forEach(m),this.h()},h(){_(e,"class","copy-or-filter-button svelte-qwjj97"),_(e,"id","filter-button"),B(e,"filtered",c[5])},m(n,a){y(n,e,a),t.m(e,null),l=!0,i||(s=A(e,"click",D(G(function(){ee(c[4])&&c[4].apply(this,arguments)}))),i=!0)},p(n,a){c=n,a&32&&z(o,o=c[5])?(d(),u(t,1,1,M),k(),t=V(c),t.c(),r(t,1),t.m(e,null)):t.p(c,a),(!l||a&32)&&B(e,"filtered",c[5])},i(n){l||(r(t),l=!0)},o(n){u(t),l=!1},d(n){n&&m(e),t.d(n),i=!1,s()}}}function V(c){let e,o;return e=new R({props:{title:c[8],name:"filter",class:"m-1"}}),{c(){H(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,i){K(e,l,i),o=!0},p(l,i){const s={};i&256&&(s.title=l[8]),e.$set(s)},i(l){o||(r(e.$$.fragment,l),o=!0)},o(l){u(e.$$.fragment,l),o=!1},d(l){L(e,l)}}}function W(c){let e,o,l,i,s;return o=new R({props:{title:c[10]?c[7]:c[6],name:c[10]?"checkmark":"copy",class:"m-1"}}),{c(){e=p("button"),H(o.$$.fragment),this.h()},l(t){e=I(t,"BUTTON",{class:!0,id:!0});var n=w(e);J(o.$$.fragment,n),n.forEach(m),this.h()},h(){_(e,"class","copy-or-filter-button svelte-qwjj97"),_(e,"id","copy-button")},m(t,n){y(t,e,n),K(o,e,null),l=!0,i||(s=A(e,"click",D(G(c[13]))),i=!0)},p(t,n){const a={};n&1216&&(a.title=t[10]?t[7]:t[6]),n&1024&&(a.name=t[10]?"checkmark":"copy"),o.$set(a)},i(t){l||(r(o.$$.fragment,t),l=!0)},o(t){u(o.$$.fragment,t),l=!1},d(t){t&&m(e),L(o),i=!1,s()}}}function ce(c){let e,o,l=c[0]&&P(c);return{c(){l&&l.c(),e=F()},l(i){l&&l.l(i),e=F()},m(i,s){l&&l.m(i,s),y(i,e,s),o=!0},p(i,[s]){i[0]?l?(l.p(i,s),s&1&&r(l,1)):(l=P(i),l.c(),r(l,1),l.m(e.parentNode,e)):l&&(d(),u(l,1,1,()=>{l=null}),k())},i(i){o||(r(l),o=!0)},o(i){u(l),o=!1},d(i){i&&m(e),l&&l.d(i)}}}function se(c,e,o){let l,{show:i=!1}=e,{filterable:s=!0}=e,{copyable:t=!0}=e,{content:n}=e,{onFilter:a=M}=e,{filtered:T=!1}=e,{copyIconTitle:h}=e,{copySuccessIconTitle:g}=e,{filterIconTitle:j}=e,{class:S=""}=e;const{copy:C,copied:v}=ie();Y(c,v,f=>o(10,l=f));const X=f=>C(f,n);return c.$$set=f=>{"show"in f&&o(0,i=f.show),"filterable"in f&&o(1,s=f.filterable),"copyable"in f&&o(2,t=f.copyable),"content"in f&&o(3,n=f.content),"onFilter"in f&&o(4,a=f.onFilter),"filtered"in f&&o(5,T=f.filtered),"copyIconTitle"in f&&o(6,h=f.copyIconTitle),"copySuccessIconTitle"in f&&o(7,g=f.copySuccessIconTitle),"filterIconTitle"in f&&o(8,j=f.filterIconTitle),"class"in f&&o(9,S=f.class)},[i,s,t,n,a,T,h,g,j,S,l,C,v,X]}class he extends te{constructor(e){super(),le(this,e,se,ce,z,{show:0,filterable:1,copyable:2,content:3,onFilter:4,filtered:5,copyIconTitle:6,copySuccessIconTitle:7,filterIconTitle:8,class:9})}}const be=c=>{const e=[],o=()=>{l&&(e.push(l),l="")};let l="",i=0;const s=t=>{for(let n=i+1;nh===t);continue}i++;continue}if(E(t)){o(),i++;continue}l+=t,i++}return o(),e};export{he as F,be as t}; +import{s as z,x as F,i as y,f as m,c as Y,h as p,b as Z,j as I,k as w,d as x,m as _,W as q,n as $,I as B,p as A,G as D,a0 as G,a1 as ee,v as M}from"./scheduler.pPC3woXQ.js";import{S as te,i as le,t as r,g as d,b as u,e as k,c as H,a as J,m as K,d as L}from"./index.Z3Qqxacm.js";import{I as R}from"./icon.IMxiy1l_.js";import{c as ie}from"./copy-to-clipboard.TAMpnAY_.js";import{t as N}from"./tw-merge.NbP7EmZe.js";import{c as O,d as Q,e as b,f as ne,g as E,j as oe}from"./has.Hk4nWl3x.js";function P(c){let e,o,l,i,s=c[1]&&U(c),t=c[2]&&W(c);return{c(){e=p("div"),s&&s.c(),o=Z(),t&&t.c(),this.h()},l(n){e=I(n,"DIV",{class:!0});var a=w(e);s&&s.l(a),o=x(a),t&&t.l(a),a.forEach(m),this.h()},h(){_(e,"class",l=q(N("copy-or-filter",c[9]))+" svelte-qwjj97")},m(n,a){y(n,e,a),s&&s.m(e,null),$(e,o),t&&t.m(e,null),i=!0},p(n,a){n[1]?s?(s.p(n,a),a&2&&r(s,1)):(s=U(n),s.c(),r(s,1),s.m(e,o)):s&&(d(),u(s,1,1,()=>{s=null}),k()),n[2]?t?(t.p(n,a),a&4&&r(t,1)):(t=W(n),t.c(),r(t,1),t.m(e,null)):t&&(d(),u(t,1,1,()=>{t=null}),k()),(!i||a&512&&l!==(l=q(N("copy-or-filter",n[9]))+" svelte-qwjj97"))&&_(e,"class",l)},i(n){i||(r(s),r(t),i=!0)},o(n){u(s),u(t),i=!1},d(n){n&&m(e),s&&s.d(),t&&t.d()}}}function U(c){let e,o=c[5],l,i,s,t=V(c);return{c(){e=p("button"),t.c(),this.h()},l(n){e=I(n,"BUTTON",{class:!0,id:!0});var a=w(e);t.l(a),a.forEach(m),this.h()},h(){_(e,"class","copy-or-filter-button svelte-qwjj97"),_(e,"id","filter-button"),B(e,"filtered",c[5])},m(n,a){y(n,e,a),t.m(e,null),l=!0,i||(s=A(e,"click",D(G(function(){ee(c[4])&&c[4].apply(this,arguments)}))),i=!0)},p(n,a){c=n,a&32&&z(o,o=c[5])?(d(),u(t,1,1,M),k(),t=V(c),t.c(),r(t,1),t.m(e,null)):t.p(c,a),(!l||a&32)&&B(e,"filtered",c[5])},i(n){l||(r(t),l=!0)},o(n){u(t),l=!1},d(n){n&&m(e),t.d(n),i=!1,s()}}}function V(c){let e,o;return e=new R({props:{title:c[8],name:"filter",class:"m-1"}}),{c(){H(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,i){K(e,l,i),o=!0},p(l,i){const s={};i&256&&(s.title=l[8]),e.$set(s)},i(l){o||(r(e.$$.fragment,l),o=!0)},o(l){u(e.$$.fragment,l),o=!1},d(l){L(e,l)}}}function W(c){let e,o,l,i,s;return o=new R({props:{title:c[10]?c[7]:c[6],name:c[10]?"checkmark":"copy",class:"m-1"}}),{c(){e=p("button"),H(o.$$.fragment),this.h()},l(t){e=I(t,"BUTTON",{class:!0,id:!0});var n=w(e);J(o.$$.fragment,n),n.forEach(m),this.h()},h(){_(e,"class","copy-or-filter-button svelte-qwjj97"),_(e,"id","copy-button")},m(t,n){y(t,e,n),K(o,e,null),l=!0,i||(s=A(e,"click",D(G(c[13]))),i=!0)},p(t,n){const a={};n&1216&&(a.title=t[10]?t[7]:t[6]),n&1024&&(a.name=t[10]?"checkmark":"copy"),o.$set(a)},i(t){l||(r(o.$$.fragment,t),l=!0)},o(t){u(o.$$.fragment,t),l=!1},d(t){t&&m(e),L(o),i=!1,s()}}}function ce(c){let e,o,l=c[0]&&P(c);return{c(){l&&l.c(),e=F()},l(i){l&&l.l(i),e=F()},m(i,s){l&&l.m(i,s),y(i,e,s),o=!0},p(i,[s]){i[0]?l?(l.p(i,s),s&1&&r(l,1)):(l=P(i),l.c(),r(l,1),l.m(e.parentNode,e)):l&&(d(),u(l,1,1,()=>{l=null}),k())},i(i){o||(r(l),o=!0)},o(i){u(l),o=!1},d(i){i&&m(e),l&&l.d(i)}}}function se(c,e,o){let l,{show:i=!1}=e,{filterable:s=!0}=e,{copyable:t=!0}=e,{content:n}=e,{onFilter:a=M}=e,{filtered:T=!1}=e,{copyIconTitle:h}=e,{copySuccessIconTitle:g}=e,{filterIconTitle:j}=e,{class:S=""}=e;const{copy:C,copied:v}=ie();Y(c,v,f=>o(10,l=f));const X=f=>C(f,n);return c.$$set=f=>{"show"in f&&o(0,i=f.show),"filterable"in f&&o(1,s=f.filterable),"copyable"in f&&o(2,t=f.copyable),"content"in f&&o(3,n=f.content),"onFilter"in f&&o(4,a=f.onFilter),"filtered"in f&&o(5,T=f.filtered),"copyIconTitle"in f&&o(6,h=f.copyIconTitle),"copySuccessIconTitle"in f&&o(7,g=f.copySuccessIconTitle),"filterIconTitle"in f&&o(8,j=f.filterIconTitle),"class"in f&&o(9,S=f.class)},[i,s,t,n,a,T,h,g,j,S,l,C,v,X]}class he extends te{constructor(e){super(),le(this,e,se,ce,z,{show:0,filterable:1,copyable:2,content:3,onFilter:4,filtered:5,copyIconTitle:6,copySuccessIconTitle:7,filterIconTitle:8,class:9})}}const be=c=>{const e=[],o=()=>{l&&(e.push(l),l="")};let l="",i=0;const s=t=>{for(let n=i+1;nh===t);continue}i++;continue}if(E(t)){o(),i++;continue}l+=t,i++}return o(),e};export{he as F,be as t}; diff --git a/ui/assets/local/_app/immutable/chunks/tooltip.HCleTy9P.js b/ui/assets/local/_app/immutable/chunks/tooltip.QCUL1Pfy.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/tooltip.HCleTy9P.js rename to ui/assets/local/_app/immutable/chunks/tooltip.QCUL1Pfy.js index e09d25e3cc..3f7ddcc2b6 100644 --- a/ui/assets/local/_app/immutable/chunks/tooltip.HCleTy9P.js +++ b/ui/assets/local/_app/immutable/chunks/tooltip.QCUL1Pfy.js @@ -1 +1 @@ -import{s as J,x as T,i as M,f as R,a as P,h as D,b as j,t as K,j as V,k as y,d as A,l as O,m as w,W as S,I as h,n as L,u as W,g as B,e as F,q as Q}from"./scheduler.1T9hOnFr.js";import{S as U,i as X,g as G,b as p,e as H,t as v,c as Y,a as Z,m as x,d as $}from"./index.cVovwi_s.js";import{I as ee}from"./icon.w8eknFMq.js";import{t as q}from"./tw-merge.NbP7EmZe.js";function te(n){let t,l,e,o,u,_,g,f,b,d,k,r;const I=n[15].default,m=P(I,n,n[14],null);let c=n[2]&&C(n);return{c(){t=D("div"),m&&m.c(),l=j(),e=D("div"),o=D("div"),u=D("div"),c&&c.c(),_=j(),g=D("span"),f=K(n[1]),this.h()},l(i){t=V(i,"DIV",{class:!0});var s=y(t);m&&m.l(s),l=A(s),e=V(s,"DIV",{class:!0,style:!0});var E=y(e);o=V(E,"DIV",{class:!0});var a=y(o);u=V(a,"DIV",{class:!0});var N=y(u);c&&c.l(N),_=A(N),g=V(N,"SPAN",{});var z=y(g);f=O(z,n[1]),z.forEach(R),N.forEach(R),a.forEach(R),E.forEach(R),s.forEach(R),this.h()},h(){w(u,"class","flex gap-2 text-slate-100"),w(o,"class","inline-block rounded-lg bg-slate-800 px-2 py-2"),w(e,"class",b=S(q("tooltip absolute left-0 top-0 z-50 hidden translate-x-12 whitespace-nowrap text-xs opacity-0 transition-all group-hover:inline-block group-hover:opacity-90",n[13]&&"inline-block opacity-90"))+" svelte-t5ul6i"),w(e,"style",d=n[12]?`white-space: pre-wrap; width: ${n[12]}px;`:null),h(e,"left",n[9]),h(e,"right",n[5]),h(e,"bottom",n[6]),h(e,"bottomLeft",n[7]),h(e,"bottomRight",n[8]),h(e,"top",n[3]),h(e,"topRight",n[4]),h(e,"topLeft",n[10]),w(t,"class",k=S(q("wrapper group relative inline-block",n[0]))+" svelte-t5ul6i")},m(i,s){M(i,t,s),m&&m.m(t,null),L(t,l),L(t,e),L(e,o),L(o,u),c&&c.m(u,null),L(u,_),L(u,g),L(g,f),r=!0},p(i,s){m&&m.p&&(!r||s&16384)&&W(m,I,i,i[14],r?F(I,i[14],s,null):B(i[14]),null),i[2]?c?(c.p(i,s),s&4&&v(c,1)):(c=C(i),c.c(),v(c,1),c.m(u,_)):c&&(G(),p(c,1,1,()=>{c=null}),H()),(!r||s&2)&&Q(f,i[1]),(!r||s&8192&&b!==(b=S(q("tooltip absolute left-0 top-0 z-50 hidden translate-x-12 whitespace-nowrap text-xs opacity-0 transition-all group-hover:inline-block group-hover:opacity-90",i[13]&&"inline-block opacity-90"))+" svelte-t5ul6i"))&&w(e,"class",b),(!r||s&4096&&d!==(d=i[12]?`white-space: pre-wrap; width: ${i[12]}px;`:null))&&w(e,"style",d),(!r||s&8704)&&h(e,"left",i[9]),(!r||s&8224)&&h(e,"right",i[5]),(!r||s&8256)&&h(e,"bottom",i[6]),(!r||s&8320)&&h(e,"bottomLeft",i[7]),(!r||s&8448)&&h(e,"bottomRight",i[8]),(!r||s&8200)&&h(e,"top",i[3]),(!r||s&8208)&&h(e,"topRight",i[4]),(!r||s&9216)&&h(e,"topLeft",i[10]),(!r||s&1&&k!==(k=S(q("wrapper group relative inline-block",i[0]))+" svelte-t5ul6i"))&&w(t,"class",k)},i(i){r||(v(m,i),v(c),r=!0)},o(i){p(m,i),p(c),r=!1},d(i){i&&R(t),m&&m.d(i),c&&c.d()}}}function le(n){let t;const l=n[15].default,e=P(l,n,n[14],null);return{c(){e&&e.c()},l(o){e&&e.l(o)},m(o,u){e&&e.m(o,u),t=!0},p(o,u){e&&e.p&&(!t||u&16384)&&W(e,l,o,o[14],t?F(l,o[14],u,null):B(o[14]),null)},i(o){t||(v(e,o),t=!0)},o(o){p(e,o),t=!1},d(o){e&&e.d(o)}}}function C(n){let t,l;return t=new ee({props:{name:n[2],class:"inline h-4 text-white"}}),{c(){Y(t.$$.fragment)},l(e){Z(t.$$.fragment,e)},m(e,o){x(t,e,o),l=!0},p(e,o){const u={};o&4&&(u.name=e[2]),t.$set(u)},i(e){l||(v(t.$$.fragment,e),l=!0)},o(e){p(t.$$.fragment,e),l=!1},d(e){$(t,e)}}}function ie(n){let t,l,e,o;const u=[le,te],_=[];function g(f,b){return f[11]?0:1}return t=g(n),l=_[t]=u[t](n),{c(){l.c(),e=T()},l(f){l.l(f),e=T()},m(f,b){_[t].m(f,b),M(f,e,b),o=!0},p(f,[b]){let d=t;t=g(f),t===d?_[t].p(f,b):(G(),p(_[d],1,1,()=>{_[d]=null}),H(),l=_[t],l?l.p(f,b):(l=_[t]=u[t](f),l.c()),v(l,1),l.m(e.parentNode,e))},i(f){o||(v(l),o=!0)},o(f){p(l),o=!1},d(f){f&&R(e),_[t].d(f)}}}function oe(n,t,l){let{$$slots:e={},$$scope:o}=t,{class:u=""}=t,{text:_=""}=t,{icon:g=null}=t,{top:f=!1}=t,{topRight:b=!1}=t,{right:d=!1}=t,{bottom:k=!1}=t,{bottomLeft:r=!1}=t,{bottomRight:I=!1}=t,{left:m=!1}=t,{topLeft:c=!1}=t,{hide:i=!1}=t,{width:s=null}=t,{show:E=!1}=t;return n.$$set=a=>{"class"in a&&l(0,u=a.class),"text"in a&&l(1,_=a.text),"icon"in a&&l(2,g=a.icon),"top"in a&&l(3,f=a.top),"topRight"in a&&l(4,b=a.topRight),"right"in a&&l(5,d=a.right),"bottom"in a&&l(6,k=a.bottom),"bottomLeft"in a&&l(7,r=a.bottomLeft),"bottomRight"in a&&l(8,I=a.bottomRight),"left"in a&&l(9,m=a.left),"topLeft"in a&&l(10,c=a.topLeft),"hide"in a&&l(11,i=a.hide),"width"in a&&l(12,s=a.width),"show"in a&&l(13,E=a.show),"$$scope"in a&&l(14,o=a.$$scope)},[u,_,g,f,b,d,k,r,I,m,c,i,s,E,o,e]}class ue extends U{constructor(t){super(),X(this,t,oe,ie,J,{class:0,text:1,icon:2,top:3,topRight:4,right:5,bottom:6,bottomLeft:7,bottomRight:8,left:9,topLeft:10,hide:11,width:12,show:13})}}export{ue as T}; +import{s as J,x as T,i as M,f as R,a as P,h as D,b as j,t as K,j as V,k as y,d as A,l as O,m as w,W as S,I as h,n as L,u as W,g as B,e as F,q as Q}from"./scheduler.pPC3woXQ.js";import{S as U,i as X,g as G,b as p,e as H,t as v,c as Y,a as Z,m as x,d as $}from"./index.Z3Qqxacm.js";import{I as ee}from"./icon.IMxiy1l_.js";import{t as q}from"./tw-merge.NbP7EmZe.js";function te(n){let t,l,e,o,u,_,g,f,b,d,k,r;const I=n[15].default,m=P(I,n,n[14],null);let c=n[2]&&C(n);return{c(){t=D("div"),m&&m.c(),l=j(),e=D("div"),o=D("div"),u=D("div"),c&&c.c(),_=j(),g=D("span"),f=K(n[1]),this.h()},l(i){t=V(i,"DIV",{class:!0});var s=y(t);m&&m.l(s),l=A(s),e=V(s,"DIV",{class:!0,style:!0});var E=y(e);o=V(E,"DIV",{class:!0});var a=y(o);u=V(a,"DIV",{class:!0});var N=y(u);c&&c.l(N),_=A(N),g=V(N,"SPAN",{});var z=y(g);f=O(z,n[1]),z.forEach(R),N.forEach(R),a.forEach(R),E.forEach(R),s.forEach(R),this.h()},h(){w(u,"class","flex gap-2 text-slate-100"),w(o,"class","inline-block rounded-lg bg-slate-800 px-2 py-2"),w(e,"class",b=S(q("tooltip absolute left-0 top-0 z-50 hidden translate-x-12 whitespace-nowrap text-xs opacity-0 transition-all group-hover:inline-block group-hover:opacity-90",n[13]&&"inline-block opacity-90"))+" svelte-t5ul6i"),w(e,"style",d=n[12]?`white-space: pre-wrap; width: ${n[12]}px;`:null),h(e,"left",n[9]),h(e,"right",n[5]),h(e,"bottom",n[6]),h(e,"bottomLeft",n[7]),h(e,"bottomRight",n[8]),h(e,"top",n[3]),h(e,"topRight",n[4]),h(e,"topLeft",n[10]),w(t,"class",k=S(q("wrapper group relative inline-block",n[0]))+" svelte-t5ul6i")},m(i,s){M(i,t,s),m&&m.m(t,null),L(t,l),L(t,e),L(e,o),L(o,u),c&&c.m(u,null),L(u,_),L(u,g),L(g,f),r=!0},p(i,s){m&&m.p&&(!r||s&16384)&&W(m,I,i,i[14],r?F(I,i[14],s,null):B(i[14]),null),i[2]?c?(c.p(i,s),s&4&&v(c,1)):(c=C(i),c.c(),v(c,1),c.m(u,_)):c&&(G(),p(c,1,1,()=>{c=null}),H()),(!r||s&2)&&Q(f,i[1]),(!r||s&8192&&b!==(b=S(q("tooltip absolute left-0 top-0 z-50 hidden translate-x-12 whitespace-nowrap text-xs opacity-0 transition-all group-hover:inline-block group-hover:opacity-90",i[13]&&"inline-block opacity-90"))+" svelte-t5ul6i"))&&w(e,"class",b),(!r||s&4096&&d!==(d=i[12]?`white-space: pre-wrap; width: ${i[12]}px;`:null))&&w(e,"style",d),(!r||s&8704)&&h(e,"left",i[9]),(!r||s&8224)&&h(e,"right",i[5]),(!r||s&8256)&&h(e,"bottom",i[6]),(!r||s&8320)&&h(e,"bottomLeft",i[7]),(!r||s&8448)&&h(e,"bottomRight",i[8]),(!r||s&8200)&&h(e,"top",i[3]),(!r||s&8208)&&h(e,"topRight",i[4]),(!r||s&9216)&&h(e,"topLeft",i[10]),(!r||s&1&&k!==(k=S(q("wrapper group relative inline-block",i[0]))+" svelte-t5ul6i"))&&w(t,"class",k)},i(i){r||(v(m,i),v(c),r=!0)},o(i){p(m,i),p(c),r=!1},d(i){i&&R(t),m&&m.d(i),c&&c.d()}}}function le(n){let t;const l=n[15].default,e=P(l,n,n[14],null);return{c(){e&&e.c()},l(o){e&&e.l(o)},m(o,u){e&&e.m(o,u),t=!0},p(o,u){e&&e.p&&(!t||u&16384)&&W(e,l,o,o[14],t?F(l,o[14],u,null):B(o[14]),null)},i(o){t||(v(e,o),t=!0)},o(o){p(e,o),t=!1},d(o){e&&e.d(o)}}}function C(n){let t,l;return t=new ee({props:{name:n[2],class:"inline h-4 text-white"}}),{c(){Y(t.$$.fragment)},l(e){Z(t.$$.fragment,e)},m(e,o){x(t,e,o),l=!0},p(e,o){const u={};o&4&&(u.name=e[2]),t.$set(u)},i(e){l||(v(t.$$.fragment,e),l=!0)},o(e){p(t.$$.fragment,e),l=!1},d(e){$(t,e)}}}function ie(n){let t,l,e,o;const u=[le,te],_=[];function g(f,b){return f[11]?0:1}return t=g(n),l=_[t]=u[t](n),{c(){l.c(),e=T()},l(f){l.l(f),e=T()},m(f,b){_[t].m(f,b),M(f,e,b),o=!0},p(f,[b]){let d=t;t=g(f),t===d?_[t].p(f,b):(G(),p(_[d],1,1,()=>{_[d]=null}),H(),l=_[t],l?l.p(f,b):(l=_[t]=u[t](f),l.c()),v(l,1),l.m(e.parentNode,e))},i(f){o||(v(l),o=!0)},o(f){p(l),o=!1},d(f){f&&R(e),_[t].d(f)}}}function oe(n,t,l){let{$$slots:e={},$$scope:o}=t,{class:u=""}=t,{text:_=""}=t,{icon:g=null}=t,{top:f=!1}=t,{topRight:b=!1}=t,{right:d=!1}=t,{bottom:k=!1}=t,{bottomLeft:r=!1}=t,{bottomRight:I=!1}=t,{left:m=!1}=t,{topLeft:c=!1}=t,{hide:i=!1}=t,{width:s=null}=t,{show:E=!1}=t;return n.$$set=a=>{"class"in a&&l(0,u=a.class),"text"in a&&l(1,_=a.text),"icon"in a&&l(2,g=a.icon),"top"in a&&l(3,f=a.top),"topRight"in a&&l(4,b=a.topRight),"right"in a&&l(5,d=a.right),"bottom"in a&&l(6,k=a.bottom),"bottomLeft"in a&&l(7,r=a.bottomLeft),"bottomRight"in a&&l(8,I=a.bottomRight),"left"in a&&l(9,m=a.left),"topLeft"in a&&l(10,c=a.topLeft),"hide"in a&&l(11,i=a.hide),"width"in a&&l(12,s=a.width),"show"in a&&l(13,E=a.show),"$$scope"in a&&l(14,o=a.$$scope)},[u,_,g,f,b,d,k,r,I,m,c,i,s,E,o,e]}class ue extends U{constructor(t){super(),X(this,t,oe,ie,J,{class:0,text:1,icon:2,top:3,topRight:4,right:5,bottom:6,bottomLeft:7,bottomRight:8,left:9,topLeft:10,hide:11,width:12,show:13})}}export{ue as T}; diff --git a/ui/assets/local/_app/immutable/chunks/translate.itkoGJDF.js b/ui/assets/local/_app/immutable/chunks/translate.yXMKf9IN.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/translate.itkoGJDF.js rename to ui/assets/local/_app/immutable/chunks/translate.yXMKf9IN.js index 914de0cc8e..81468de1ef 100644 --- a/ui/assets/local/_app/immutable/chunks/translate.itkoGJDF.js +++ b/ui/assets/local/_app/immutable/chunks/translate.yXMKf9IN.js @@ -1 +1 @@ -import{r as Qe,e as Ke,h as Ge}from"./format-time.PmxHXK_V.js";import{s as ue,h as y,j as D,k as I,f as m,m as w,i as L,c as ge,a9 as Xe,w as ye,x as j,v as G,b as O,d as W,n as _,y as Ze,r as Re,t as Y,l as Q,I as ne,p as re,a1 as ze,q as le,Y as xe,o as $e,H as et,a as tt,u as nt,g as lt,e as st}from"./scheduler.1T9hOnFr.js";import{S as ie,i as ce,c as X,a as Z,m as x,t as E,b as A,d as $,g as ke,e as pe}from"./index.cVovwi_s.js";import{e as se,u as Je,o as at,d as ot}from"./each.QHpLJPfe.js";import{p as rt}from"./stores.6oDSidma.js";import{S as ut}from"./index.LNKoJEXQ.js";import{a as Me}from"./workflow-counts.BAGoaW94.js";import{r as it,e as be,q as ct}from"./workflows.2hWpA1sK.js";import{e as ft}from"./decode-payload.J6AgBD-I.js";import{W as dt}from"./workflow-status.lPRlOa66.js";import{d as ht}from"./menu.9pSyihPn.js";import{t as Ie}from"./translate.HrioCK44.js";import{w as Le,g as _t,a as qe}from"./time-picker.GMYfL2o1.js";import{I as Ve}from"./icon.w8eknFMq.js";import{I as mt}from"./input.Q5M-PWyi.js";function gt(n,e){Qe(2,arguments);var t=Ke(n).getTime(),l=Ge(e);return new Date(t+l)}var bt=36e5;function Zt(n,e){Qe(2,arguments);var t=Ge(e);return gt(n,t*bt)}const we=["Running","TimedOut","Completed","Failed","ContinuedAsNew","Canceled","Terminated"];function xt(n){return we.includes(n)}const $t=["All",...we],Be=(n,e,t)=>{const a=Math.pow(3600/n,1/t),o=n*Math.pow(a,e);return Math.min(3600,Math.round(o))};function wt(n){let e,t;return e=new dt({props:{count:n[1],newCount:n[2],status:n[0],"test-id":"workflow-status-"+n[0]}}),{c(){X(e.$$.fragment)},l(l){Z(e.$$.fragment,l)},m(l,a){x(e,l,a),t=!0},p(l,[a]){const o={};a&2&&(o.count=l[1]),a&4&&(o.newCount=l[2]),a&1&&(o.status=l[0]),a&1&&(o["test-id"]="workflow-status-"+l[0]),e.$set(o)},i(l){t||(E(e.$$.fragment,l),t=!0)},o(l){A(e.$$.fragment,l),t=!1},d(l){$(e,l)}}}function kt(n,e,t){let{status:l}=e,{count:a=0}=e,{newCount:o=0}=e;return n.$$set=u=>{"status"in u&&t(0,l=u.status),"count"in u&&t(1,a=u.count),"newCount"in u&&t(2,o=u.newCount)},[l,a,o]}class pt extends ie{constructor(e){super(),ce(this,e,kt,wt,ue,{status:0,count:1,newCount:2})}}function Oe(n,e,t){const l=n.slice();return l[19]=e[t].count,l[20]=e[t].status,l}function vt(n){let e,t;return e=new ut({props:{class:"h-6 w-24 rounded"}}),{c(){X(e.$$.fragment)},l(l){Z(e.$$.fragment,l)},m(l,a){x(e,l,a),t=!0},p:G,i(l){t||(E(e.$$.fragment,l),t=!0)},o(l){A(e.$$.fragment,l),t=!1},d(l){$(e,l)}}}function yt(n){let e,t;function l(...o){return n[9](n[20],...o)}function a(...o){return n[10](n[20],...o)}return e=new pt({props:{status:n[20],count:n[19],newCount:n[1].find(l)?n[1].find(a).count-n[19]:0}}),{c(){X(e.$$.fragment)},l(o){Z(e.$$.fragment,o)},m(o,u){x(e,o,u),t=!0},p(o,u){n=o;const i={};u&1&&(i.status=n[20]),u&1&&(i.count=n[19]),u&3&&(i.newCount=n[1].find(l)?n[1].find(a).count-n[19]:0),e.$set(i)},i(o){t||(E(e.$$.fragment,o),t=!0)},o(o){A(e.$$.fragment,o),t=!1},d(o){$(e,o)}}}function We(n,e){let t,l,a,o,u;const i=[yt,vt],s=[];function r(d,f){return d[2]?1:0}return l=r(e),a=s[l]=i[l](e),{key:n,first:null,c(){t=j(),a.c(),o=j(),this.h()},l(d){t=j(),a.l(d),o=j(),this.h()},h(){this.first=t},m(d,f){L(d,t,f),s[l].m(d,f),L(d,o,f),u=!0},p(d,f){e=d;let c=l;l=r(e),l===c?s[l].p(e,f):(ke(),A(s[c],1,1,()=>{s[c]=null}),pe(),a=s[l],a?a.p(e,f):(a=s[l]=i[l](e),a.c()),E(a,1),a.m(o.parentNode,o))},i(d){u||(E(a),u=!0)},o(d){A(a),u=!1},d(d){d&&(m(t),m(o)),s[l].d(d)}}}function Dt(n){let e,t=[],l=new Map,a,o=se(n[0]);const u=i=>i[20];for(let i=0;it(6,o=g)),ge(n,be,g=>t(13,u=g)),ge(n,ct,g=>t(7,i=g)),ge(n,rt,g=>t(8,s=g));let{staticQuery:r=""}=e,d=[],f=[],c,h=1,k=!1;Xe(()=>{M()});const S=()=>{if(h+=1,clearInterval(c),h<=De){const g=Be(Fe,h,De)*1e3;c=setInterval(()=>J(),g)}},M=()=>{clearInterval(c),t(1,f=[]),ye(be,u.newCount=0,u),h=1,t(2,k=!0)},q=(g=[])=>g.map(p=>{const T=ft(p==null?void 0:p.groupValues[0]),b=parseInt(p.count);return{status:T,count:b}}).sort((p,T)=>we.indexOf(p.status)-we.indexOf(T.status)),J=async()=>{S();try{const{count:g,groups:p}=await Me({namespace:l,query:a});ye(be,u.newCount=parseInt(g)-u.count,u),t(1,f=q(p))}catch(g){console.error("Fetching workflow counts failed: ",g==null?void 0:g.message)}finally{t(2,k=!1)}},K=async()=>{M();const g=Be(Fe,h,De)*1e3;c=setInterval(()=>J(),g);try{const{count:p,groups:T}=await Me({namespace:l,query:a});ye(be,u.count=parseInt(p),u),t(0,d=q(T))}catch(p){console.error("Fetching workflow counts failed: ",p==null?void 0:p.message)}finally{t(2,k=!1)}},N=(g,p)=>p.status===g,F=(g,p)=>p.status===g;return n.$$set=g=>{"staticQuery"in g&&t(3,r=g.staticQuery)},n.$$.update=()=>{n.$$.dirty&256&&t(4,l=s.params.namespace),n.$$.dirty&136&&t(5,a=r||i),n.$$.dirty&112&&K()},[d,f,k,r,l,a,o,i,s,N,F]}class en extends ie{constructor(e){super(),ce(this,e,It,Dt,ue,{staticQuery:3})}}function He(n,e,t){const l=n.slice();return l[9]=e[t].allowed,l[10]=e[t].value,l[12]=t,l}function Pe(n,e,t){const l=n.slice();return l[13]=e[t],l}function je(n){let e,t=n[13].label.slice(0,2)+"",l;return{c(){e=y("p"),l=Y(t),this.h()},l(a){e=D(a,"P",{class:!0});var o=I(e);l=Q(o,t),o.forEach(m),this.h()},h(){w(e,"class","cell svelte-1qa9vfx")},m(a,o){L(a,e,o),_(e,l)},p:G,d(a){a&&m(e)}}}function Ct(n){let e;return{c(){e=y("div"),this.h()},l(t){e=D(t,"DIV",{class:!0}),I(e).forEach(m),this.h()},h(){w(e,"class","cell svelte-1qa9vfx")},m(t,l){L(t,e,l)},p:G,d(t){t&&m(e)}}}function Et(n){let e,t=(n[10]||"")+"",l,a,o,u;function i(){return n[6](n[10])}return{c(){e=y("button"),l=Y(t),a=O(),this.h()},l(s){e=D(s,"BUTTON",{type:!0,class:!0});var r=I(e);l=Q(r,t),a=W(r),r.forEach(m),this.h()},h(){w(e,"type","button"),w(e,"class","cell svelte-1qa9vfx"),ne(e,"highlight",n[9]&&n[10]),ne(e,"disabled",!n[9]),ne(e,"selected",new Date(n[0].getFullYear(),n[0].getMonth(),n[0].getDate()).getTime()===new Date(n[2],n[1],n[10]).getTime())},m(s,r){L(s,e,r),_(e,l),_(e,a),o||(u=re(e,"click",function(){ze(n[9]&&n[10]?i:G)&&(n[9]&&n[10]?i:G).apply(this,arguments)}),o=!0)},p(s,r){n=s,r&8&&t!==(t=(n[10]||"")+"")&&le(l,t),r&8&&ne(e,"highlight",n[9]&&n[10]),r&8&&ne(e,"disabled",!n[9]),r&15&&ne(e,"selected",new Date(n[0].getFullYear(),n[0].getMonth(),n[0].getDate()).getTime()===new Date(n[2],n[1],n[10]).getTime())},d(s){s&&m(e),o=!1,u()}}}function Ue(n,e){let t,l;function a(i,s){return i[10]?Et:Ct}let o=a(e),u=o(e);return{key:n,first:null,c(){t=j(),u.c(),l=j(),this.h()},l(i){t=j(),u.l(i),l=j(),this.h()},h(){this.first=t},m(i,s){L(i,t,s),u.m(i,s),L(i,l,s)},p(i,s){e=i,o===(o=a(e))&&u?u.p(e,s):(u.d(1),u=o(e),u&&(u.c(),u.m(l.parentNode,l)))},d(i){i&&(m(t),m(l)),u.d(i)}}}function St(n){let e,t,l,a,o=[],u=new Map,i=se(Le),s=[];for(let f=0;ff[12];for(let f=0;f!0}=e,s=[];const r=c=>{l("datechange",new Date(u,o,c))},d=(c,h,k)=>k?i(new Date(c,h,k)):!0,f=c=>r(c);return n.$$set=c=>{"date"in c&&t(0,a=c.date),"month"in c&&t(1,o=c.month),"year"in c&&t(2,u=c.year),"isAllowed"in c&&t(5,i=c.isAllowed)},n.$$.update=()=>{n.$$.dirty&6&&t(3,s=_t(o,u).map(c=>({value:c,allowed:d(u,o,c)})))},[a,o,u,s,r,i,f]}class At extends ie{constructor(e){super(),ce(this,e,Tt,St,ue,{date:0,month:1,year:2,isAllowed:5})}}function Ye(n){var Ee;let e,t,l,a,o,u,i,s,r,d,f=(((Ee=qe(n[8]))==null?void 0:Ee.label)??"")+"",c,h,k,S,M,q,J="Next Month",K,N,F,g,p,T,b,H,R,V,U,ee,ae,P,te,z,ve,Ce;return s=new Ve({props:{name:"chevron-left"}}),T=new Ve({props:{name:"chevron-right"}}),H=new At({props:{month:n[8],year:n[9],date:n[0],isAllowed:n[1]}}),H.$on("datechange",n[15]),{c(){e=y("div"),t=y("div"),l=y("div"),a=y("button"),o=y("span"),u=Y(n[16]),i=O(),X(s.$$.fragment),r=O(),d=y("div"),c=Y(f),h=O(),k=Y(n[9]),S=O(),M=y("div"),q=y("span"),q.textContent=J,K=O(),N=y("button"),F=y("span"),g=Y(n[17]),p=O(),X(T.$$.fragment),b=O(),X(H.$$.fragment),R=O(),V=y("div"),U=y("button"),ee=Y(n[4]),ae=O(),P=y("button"),te=Y(n[5]),this.h()},l(v){e=D(v,"DIV",{class:!0});var C=I(e);t=D(C,"DIV",{class:!0});var B=I(t);l=D(B,"DIV",{class:!0});var oe=I(l);a=D(oe,"BUTTON",{type:!0,title:!0});var fe=I(a);o=D(fe,"SPAN",{class:!0});var Se=I(o);u=Q(Se,n[16]),Se.forEach(m),i=W(fe),Z(s.$$.fragment,fe),fe.forEach(m),oe.forEach(m),r=W(B),d=D(B,"DIV",{class:!0});var de=I(d);c=Q(de,f),h=W(de),k=Q(de,n[9]),de.forEach(m),S=W(B),M=D(B,"DIV",{class:!0});var he=I(M);q=D(he,"SPAN",{class:!0,"data-svelte-h":!0}),$e(q)!=="svelte-uyb8ys"&&(q.textContent=J),K=W(he),N=D(he,"BUTTON",{type:!0,title:!0});var _e=I(N);F=D(_e,"SPAN",{class:!0});var Te=I(F);g=Q(Te,n[17]),Te.forEach(m),p=W(_e),Z(T.$$.fragment,_e),_e.forEach(m),he.forEach(m),B.forEach(m),b=W(C),Z(H.$$.fragment,C),R=W(C),V=D(C,"DIV",{class:!0});var me=I(V);U=D(me,"BUTTON",{type:!0,class:!0});var Ae=I(U);ee=Q(Ae,n[4]),Ae.forEach(m),ae=W(me),P=D(me,"BUTTON",{type:!0,class:!0});var Ne=I(P);te=Q(Ne,n[5]),Ne.forEach(m),me.forEach(m),C.forEach(m),this.h()},h(){w(o,"class","sr-only"),w(a,"type","button"),w(a,"title",n[16]),w(l,"class","flex items-center justify-center"),w(d,"class","flex items-center justify-center"),w(q,"class","sr-only"),w(F,"class","sr-only"),w(N,"type","button"),w(N,"title",n[17]),w(M,"class","flex items-center justify-center"),w(t,"class","mx-3 my-2 flex items-center justify-around"),w(U,"type","button"),w(U,"class","cursor-pointer text-[12px]"),w(P,"type","button"),w(P,"class","cursor-pointer text-[12px]"),w(V,"class","my-1 flex justify-between px-2"),w(e,"class","surface-primary absolute z-30 inline-block rounded border border-subtle shadow")},m(v,C){L(v,e,C),_(e,t),_(t,l),_(l,a),_(a,o),_(o,u),_(a,i),x(s,a,null),_(t,r),_(t,d),_(d,c),_(d,h),_(d,k),_(t,S),_(t,M),_(M,q),_(M,K),_(M,N),_(N,F),_(F,g),_(N,p),x(T,N,null),_(e,b),x(H,e,null),_(e,R),_(e,V),_(V,U),_(U,ee),_(V,ae),_(V,P),_(P,te),z=!0,ve||(Ce=[re(a,"click",n[14]),re(N,"click",n[13]),re(U,"click",n[18]),re(P,"click",n[19])],ve=!0)},p(v,C){var oe;(!z||C&256)&&f!==(f=(((oe=qe(v[8]))==null?void 0:oe.label)??"")+"")&&le(c,f),(!z||C&512)&&le(k,v[9]);const B={};C&256&&(B.month=v[8]),C&512&&(B.year=v[9]),C&1&&(B.date=v[0]),C&2&&(B.isAllowed=v[1]),H.$set(B),(!z||C&16)&&le(ee,v[4]),(!z||C&32)&&le(te,v[5])},i(v){z||(E(s.$$.fragment,v),E(T.$$.fragment,v),E(H.$$.fragment,v),z=!0)},o(v){A(s.$$.fragment,v),A(T.$$.fragment,v),A(H.$$.fragment,v),z=!1},d(v){v&&m(e),$(s),$(T),$(H),ve=!1,et(Ce)}}}function Nt(n){let e,t,l,a,o,u,i;t=new mt({props:{id:"datepicker",label:n[2],labelHidden:n[3],icon:"calendar-plus",type:"text",placeholder:"MM/DD/YY",value:n[0].toDateString(),clearable:!0,clearButtonLabel:n[6],disabled:n[7]}}),t.$on("focus",n[11]),t.$on("input",n[12]);let s=n[10]&&Ye(n);return{c(){e=y("div"),X(t.$$.fragment),l=O(),s&&s.c(),this.h()},l(r){e=D(r,"DIV",{class:!0});var d=I(e);Z(t.$$.fragment,d),l=W(d),s&&s.l(d),d.forEach(m),this.h()},h(){w(e,"class","relative")},m(r,d){L(r,e,d),x(t,e,null),_(e,l),s&&s.m(e,null),o=!0,u||(i=xe(a=ht.call(null,e,n[20])),u=!0)},p(r,[d]){const f={};d&4&&(f.label=r[2]),d&8&&(f.labelHidden=r[3]),d&1&&(f.value=r[0].toDateString()),d&64&&(f.clearButtonLabel=r[6]),d&128&&(f.disabled=r[7]),t.$set(f),r[10]?s?(s.p(r,d),d&1024&&E(s,1)):(s=Ye(r),s.c(),E(s,1),s.m(e,null)):s&&(ke(),A(s,1,1,()=>{s=null}),pe()),a&&ze(a.update)&&d&1024&&a.update.call(null,r[20])},i(r){o||(E(t.$$.fragment,r),E(s),o=!0)},o(r){A(t.$$.fragment,r),A(s),o=!1},d(r){r&&m(e),$(t),s&&s.d(),u=!1,i()}}}function Mt(n,e,t){const l=Re();let{isAllowed:a=()=>!0}=e,{selected:o=new Date}=e,{label:u}=e,{labelHidden:i=!1}=e,{todayLabel:s}=e,{closeLabel:r}=e,{clearLabel:d}=e,{disabled:f=!1}=e,c,h,k=!1;const S=()=>{t(10,k=!0)},M=b=>{const R=b.target.value;if(R.length===8){const V=R==null?void 0:R.split("/"),ee=2e3+parseInt(V[2]),ae=parseInt(V[0])-1,P=parseInt(V[1]),te=new Date(ee,ae,P);l("datechange",te)}},q=()=>{if(c===11){t(8,c=0),t(9,h=h+1);return}t(8,c=c+1)},J=()=>{if(c===0){t(8,c=11),t(9,h-=1);return}t(8,c-=1)},K=b=>{t(10,k=!1),l("datechange",b.detail)},N=Ie("date-picker.previous-month"),F=Ie("date-picker.next-month"),g=()=>t(0,o=new Date),p=()=>t(10,k=!1),T=()=>t(10,k=!1);return n.$$set=b=>{"isAllowed"in b&&t(1,a=b.isAllowed),"selected"in b&&t(0,o=b.selected),"label"in b&&t(2,u=b.label),"labelHidden"in b&&t(3,i=b.labelHidden),"todayLabel"in b&&t(4,s=b.todayLabel),"closeLabel"in b&&t(5,r=b.closeLabel),"clearLabel"in b&&t(6,d=b.clearLabel),"disabled"in b&&t(7,f=b.disabled)},n.$$.update=()=>{n.$$.dirty&1&&(t(8,c=o.getMonth()),t(9,h=o.getFullYear()))},[o,a,u,i,s,r,d,f,c,h,k,S,M,q,J,K,N,F,g,p,T]}class tn extends ie{constructor(e){super(),ce(this,e,Mt,Nt,ue,{isAllowed:1,selected:0,label:2,labelHidden:3,todayLabel:4,closeLabel:5,clearLabel:6,disabled:7})}}function Lt(n){let e;const t=n[5].default,l=tt(t,n,n[4],null);return{c(){l&&l.c()},l(a){l&&l.l(a)},m(a,o){l&&l.m(a,o),e=!0},p(a,o){l&&l.p&&(!e||o&16)&&nt(l,t,a,a[4],e?st(t,a[4],o,null):lt(a[4]),null)},i(a){e||(E(l,a),e=!0)},o(a){A(l,a),e=!1},d(a){l&&l.d(a)}}}function qt(n){let e;return{c(){e=Y(n[1])},l(t){e=Q(t,n[1])},m(t,l){L(t,e,l)},p(t,l){l&2&&le(e,t[1])},i:G,o:G,d(t){t&&m(e)}}}function Vt(n){let e,t,l,a;const o=[qt,Lt],u=[];function i(s,r){return s[1]!==s[0]?0:1}return e=i(n),t=u[e]=o[e](n),{c(){t.c(),l=j()},l(s){t.l(s),l=j()},m(s,r){u[e].m(s,r),L(s,l,r),a=!0},p(s,[r]){let d=e;e=i(s),e===d?u[e].p(s,r):(ke(),A(u[d],1,1,()=>{u[d]=null}),pe(),t=u[e],t?t.p(s,r):(t=u[e]=o[e](s),t.c()),E(t,1),t.m(l.parentNode,l))},i(s){a||(E(t),a=!0)},o(s){A(t),a=!1},d(s){s&&m(l),u[e].d(s)}}}function Bt(n,e,t){let l,{$$slots:a={},$$scope:o}=e,{key:u}=e,{count:i=void 0}=e,{replace:s=void 0}=e;return n.$$set=r=>{"key"in r&&t(0,u=r.key),"count"in r&&t(2,i=r.count),"replace"in r&&t(3,s=r.replace),"$$scope"in r&&t(4,o=r.$$scope)},n.$$.update=()=>{n.$$.dirty&13&&t(1,l=Ie(u,{...s,count:i}))},[u,l,i,s,o,a]}class nn extends ie{constructor(e){super(),ce(this,e,Bt,Vt,ue,{key:0,count:2,replace:3})}}export{tn as D,nn as T,en as W,Zt as a,gt as b,xt as i,$t as w}; +import{r as Qe,e as Ke,h as Ge}from"./format-time.PmxHXK_V.js";import{s as ue,h as y,j as D,k as I,f as m,m as w,i as L,c as ge,ac as Xe,w as ye,x as j,v as G,b as O,d as W,n as _,y as Ze,r as Re,t as Y,l as Q,I as ne,p as re,a1 as ze,q as le,Y as xe,o as $e,H as et,a as tt,u as nt,g as lt,e as st}from"./scheduler.pPC3woXQ.js";import{S as ie,i as ce,c as X,a as Z,m as x,t as E,b as A,d as $,g as ke,e as pe}from"./index.Z3Qqxacm.js";import{e as se,u as Je,o as at,d as ot}from"./each.fm8Uvuh8.js";import{p as rt}from"./stores.cW8AX6ex.js";import{S as ut}from"./index.Oj9gxlvg.js";import{a as Me}from"./workflow-counts.Ul38aWsQ.js";import{r as it,e as be,q as ct}from"./workflows.s9Ou474G.js";import{e as ft}from"./decode-payload.gln8j6uZ.js";import{W as dt}from"./workflow-status.F3-KzFL4.js";import{d as ht}from"./menu.jMDW2ED5.js";import{t as Ie}from"./translate.HrioCK44.js";import{w as Le,g as _t,a as qe}from"./time-picker.tBXm030o.js";import{I as Ve}from"./icon.IMxiy1l_.js";import{I as mt}from"./input.T-q3Sv8I.js";function gt(n,e){Qe(2,arguments);var t=Ke(n).getTime(),l=Ge(e);return new Date(t+l)}var bt=36e5;function Zt(n,e){Qe(2,arguments);var t=Ge(e);return gt(n,t*bt)}const we=["Running","TimedOut","Completed","Failed","ContinuedAsNew","Canceled","Terminated"];function xt(n){return we.includes(n)}const $t=["All",...we],Be=(n,e,t)=>{const a=Math.pow(3600/n,1/t),o=n*Math.pow(a,e);return Math.min(3600,Math.round(o))};function wt(n){let e,t;return e=new dt({props:{count:n[1],newCount:n[2],status:n[0],"test-id":"workflow-status-"+n[0]}}),{c(){X(e.$$.fragment)},l(l){Z(e.$$.fragment,l)},m(l,a){x(e,l,a),t=!0},p(l,[a]){const o={};a&2&&(o.count=l[1]),a&4&&(o.newCount=l[2]),a&1&&(o.status=l[0]),a&1&&(o["test-id"]="workflow-status-"+l[0]),e.$set(o)},i(l){t||(E(e.$$.fragment,l),t=!0)},o(l){A(e.$$.fragment,l),t=!1},d(l){$(e,l)}}}function kt(n,e,t){let{status:l}=e,{count:a=0}=e,{newCount:o=0}=e;return n.$$set=u=>{"status"in u&&t(0,l=u.status),"count"in u&&t(1,a=u.count),"newCount"in u&&t(2,o=u.newCount)},[l,a,o]}class pt extends ie{constructor(e){super(),ce(this,e,kt,wt,ue,{status:0,count:1,newCount:2})}}function Oe(n,e,t){const l=n.slice();return l[19]=e[t].count,l[20]=e[t].status,l}function vt(n){let e,t;return e=new ut({props:{class:"h-6 w-24 rounded"}}),{c(){X(e.$$.fragment)},l(l){Z(e.$$.fragment,l)},m(l,a){x(e,l,a),t=!0},p:G,i(l){t||(E(e.$$.fragment,l),t=!0)},o(l){A(e.$$.fragment,l),t=!1},d(l){$(e,l)}}}function yt(n){let e,t;function l(...o){return n[9](n[20],...o)}function a(...o){return n[10](n[20],...o)}return e=new pt({props:{status:n[20],count:n[19],newCount:n[1].find(l)?n[1].find(a).count-n[19]:0}}),{c(){X(e.$$.fragment)},l(o){Z(e.$$.fragment,o)},m(o,u){x(e,o,u),t=!0},p(o,u){n=o;const i={};u&1&&(i.status=n[20]),u&1&&(i.count=n[19]),u&3&&(i.newCount=n[1].find(l)?n[1].find(a).count-n[19]:0),e.$set(i)},i(o){t||(E(e.$$.fragment,o),t=!0)},o(o){A(e.$$.fragment,o),t=!1},d(o){$(e,o)}}}function We(n,e){let t,l,a,o,u;const i=[yt,vt],s=[];function r(d,f){return d[2]?1:0}return l=r(e),a=s[l]=i[l](e),{key:n,first:null,c(){t=j(),a.c(),o=j(),this.h()},l(d){t=j(),a.l(d),o=j(),this.h()},h(){this.first=t},m(d,f){L(d,t,f),s[l].m(d,f),L(d,o,f),u=!0},p(d,f){e=d;let c=l;l=r(e),l===c?s[l].p(e,f):(ke(),A(s[c],1,1,()=>{s[c]=null}),pe(),a=s[l],a?a.p(e,f):(a=s[l]=i[l](e),a.c()),E(a,1),a.m(o.parentNode,o))},i(d){u||(E(a),u=!0)},o(d){A(a),u=!1},d(d){d&&(m(t),m(o)),s[l].d(d)}}}function Dt(n){let e,t=[],l=new Map,a,o=se(n[0]);const u=i=>i[20];for(let i=0;it(6,o=g)),ge(n,be,g=>t(13,u=g)),ge(n,ct,g=>t(7,i=g)),ge(n,rt,g=>t(8,s=g));let{staticQuery:r=""}=e,d=[],f=[],c,h=1,k=!1;Xe(()=>{M()});const S=()=>{if(h+=1,clearInterval(c),h<=De){const g=Be(Fe,h,De)*1e3;c=setInterval(()=>J(),g)}},M=()=>{clearInterval(c),t(1,f=[]),ye(be,u.newCount=0,u),h=1,t(2,k=!0)},q=(g=[])=>g.map(p=>{const T=ft(p==null?void 0:p.groupValues[0]),b=parseInt(p.count);return{status:T,count:b}}).sort((p,T)=>we.indexOf(p.status)-we.indexOf(T.status)),J=async()=>{S();try{const{count:g,groups:p}=await Me({namespace:l,query:a});ye(be,u.newCount=parseInt(g)-u.count,u),t(1,f=q(p))}catch(g){console.error("Fetching workflow counts failed: ",g==null?void 0:g.message)}finally{t(2,k=!1)}},K=async()=>{M();const g=Be(Fe,h,De)*1e3;c=setInterval(()=>J(),g);try{const{count:p,groups:T}=await Me({namespace:l,query:a});ye(be,u.count=parseInt(p),u),t(0,d=q(T))}catch(p){console.error("Fetching workflow counts failed: ",p==null?void 0:p.message)}finally{t(2,k=!1)}},N=(g,p)=>p.status===g,F=(g,p)=>p.status===g;return n.$$set=g=>{"staticQuery"in g&&t(3,r=g.staticQuery)},n.$$.update=()=>{n.$$.dirty&256&&t(4,l=s.params.namespace),n.$$.dirty&136&&t(5,a=r||i),n.$$.dirty&112&&K()},[d,f,k,r,l,a,o,i,s,N,F]}class en extends ie{constructor(e){super(),ce(this,e,It,Dt,ue,{staticQuery:3})}}function He(n,e,t){const l=n.slice();return l[9]=e[t].allowed,l[10]=e[t].value,l[12]=t,l}function Pe(n,e,t){const l=n.slice();return l[13]=e[t],l}function je(n){let e,t=n[13].label.slice(0,2)+"",l;return{c(){e=y("p"),l=Y(t),this.h()},l(a){e=D(a,"P",{class:!0});var o=I(e);l=Q(o,t),o.forEach(m),this.h()},h(){w(e,"class","cell svelte-1qa9vfx")},m(a,o){L(a,e,o),_(e,l)},p:G,d(a){a&&m(e)}}}function Ct(n){let e;return{c(){e=y("div"),this.h()},l(t){e=D(t,"DIV",{class:!0}),I(e).forEach(m),this.h()},h(){w(e,"class","cell svelte-1qa9vfx")},m(t,l){L(t,e,l)},p:G,d(t){t&&m(e)}}}function Et(n){let e,t=(n[10]||"")+"",l,a,o,u;function i(){return n[6](n[10])}return{c(){e=y("button"),l=Y(t),a=O(),this.h()},l(s){e=D(s,"BUTTON",{type:!0,class:!0});var r=I(e);l=Q(r,t),a=W(r),r.forEach(m),this.h()},h(){w(e,"type","button"),w(e,"class","cell svelte-1qa9vfx"),ne(e,"highlight",n[9]&&n[10]),ne(e,"disabled",!n[9]),ne(e,"selected",new Date(n[0].getFullYear(),n[0].getMonth(),n[0].getDate()).getTime()===new Date(n[2],n[1],n[10]).getTime())},m(s,r){L(s,e,r),_(e,l),_(e,a),o||(u=re(e,"click",function(){ze(n[9]&&n[10]?i:G)&&(n[9]&&n[10]?i:G).apply(this,arguments)}),o=!0)},p(s,r){n=s,r&8&&t!==(t=(n[10]||"")+"")&&le(l,t),r&8&&ne(e,"highlight",n[9]&&n[10]),r&8&&ne(e,"disabled",!n[9]),r&15&&ne(e,"selected",new Date(n[0].getFullYear(),n[0].getMonth(),n[0].getDate()).getTime()===new Date(n[2],n[1],n[10]).getTime())},d(s){s&&m(e),o=!1,u()}}}function Ue(n,e){let t,l;function a(i,s){return i[10]?Et:Ct}let o=a(e),u=o(e);return{key:n,first:null,c(){t=j(),u.c(),l=j(),this.h()},l(i){t=j(),u.l(i),l=j(),this.h()},h(){this.first=t},m(i,s){L(i,t,s),u.m(i,s),L(i,l,s)},p(i,s){e=i,o===(o=a(e))&&u?u.p(e,s):(u.d(1),u=o(e),u&&(u.c(),u.m(l.parentNode,l)))},d(i){i&&(m(t),m(l)),u.d(i)}}}function St(n){let e,t,l,a,o=[],u=new Map,i=se(Le),s=[];for(let f=0;ff[12];for(let f=0;f!0}=e,s=[];const r=c=>{l("datechange",new Date(u,o,c))},d=(c,h,k)=>k?i(new Date(c,h,k)):!0,f=c=>r(c);return n.$$set=c=>{"date"in c&&t(0,a=c.date),"month"in c&&t(1,o=c.month),"year"in c&&t(2,u=c.year),"isAllowed"in c&&t(5,i=c.isAllowed)},n.$$.update=()=>{n.$$.dirty&6&&t(3,s=_t(o,u).map(c=>({value:c,allowed:d(u,o,c)})))},[a,o,u,s,r,i,f]}class At extends ie{constructor(e){super(),ce(this,e,Tt,St,ue,{date:0,month:1,year:2,isAllowed:5})}}function Ye(n){var Ee;let e,t,l,a,o,u,i,s,r,d,f=(((Ee=qe(n[8]))==null?void 0:Ee.label)??"")+"",c,h,k,S,M,q,J="Next Month",K,N,F,g,p,T,b,H,R,V,U,ee,ae,P,te,z,ve,Ce;return s=new Ve({props:{name:"chevron-left"}}),T=new Ve({props:{name:"chevron-right"}}),H=new At({props:{month:n[8],year:n[9],date:n[0],isAllowed:n[1]}}),H.$on("datechange",n[15]),{c(){e=y("div"),t=y("div"),l=y("div"),a=y("button"),o=y("span"),u=Y(n[16]),i=O(),X(s.$$.fragment),r=O(),d=y("div"),c=Y(f),h=O(),k=Y(n[9]),S=O(),M=y("div"),q=y("span"),q.textContent=J,K=O(),N=y("button"),F=y("span"),g=Y(n[17]),p=O(),X(T.$$.fragment),b=O(),X(H.$$.fragment),R=O(),V=y("div"),U=y("button"),ee=Y(n[4]),ae=O(),P=y("button"),te=Y(n[5]),this.h()},l(v){e=D(v,"DIV",{class:!0});var C=I(e);t=D(C,"DIV",{class:!0});var B=I(t);l=D(B,"DIV",{class:!0});var oe=I(l);a=D(oe,"BUTTON",{type:!0,title:!0});var fe=I(a);o=D(fe,"SPAN",{class:!0});var Se=I(o);u=Q(Se,n[16]),Se.forEach(m),i=W(fe),Z(s.$$.fragment,fe),fe.forEach(m),oe.forEach(m),r=W(B),d=D(B,"DIV",{class:!0});var de=I(d);c=Q(de,f),h=W(de),k=Q(de,n[9]),de.forEach(m),S=W(B),M=D(B,"DIV",{class:!0});var he=I(M);q=D(he,"SPAN",{class:!0,"data-svelte-h":!0}),$e(q)!=="svelte-uyb8ys"&&(q.textContent=J),K=W(he),N=D(he,"BUTTON",{type:!0,title:!0});var _e=I(N);F=D(_e,"SPAN",{class:!0});var Te=I(F);g=Q(Te,n[17]),Te.forEach(m),p=W(_e),Z(T.$$.fragment,_e),_e.forEach(m),he.forEach(m),B.forEach(m),b=W(C),Z(H.$$.fragment,C),R=W(C),V=D(C,"DIV",{class:!0});var me=I(V);U=D(me,"BUTTON",{type:!0,class:!0});var Ae=I(U);ee=Q(Ae,n[4]),Ae.forEach(m),ae=W(me),P=D(me,"BUTTON",{type:!0,class:!0});var Ne=I(P);te=Q(Ne,n[5]),Ne.forEach(m),me.forEach(m),C.forEach(m),this.h()},h(){w(o,"class","sr-only"),w(a,"type","button"),w(a,"title",n[16]),w(l,"class","flex items-center justify-center"),w(d,"class","flex items-center justify-center"),w(q,"class","sr-only"),w(F,"class","sr-only"),w(N,"type","button"),w(N,"title",n[17]),w(M,"class","flex items-center justify-center"),w(t,"class","mx-3 my-2 flex items-center justify-around"),w(U,"type","button"),w(U,"class","cursor-pointer text-[12px]"),w(P,"type","button"),w(P,"class","cursor-pointer text-[12px]"),w(V,"class","my-1 flex justify-between px-2"),w(e,"class","surface-primary absolute z-30 inline-block rounded border border-subtle shadow")},m(v,C){L(v,e,C),_(e,t),_(t,l),_(l,a),_(a,o),_(o,u),_(a,i),x(s,a,null),_(t,r),_(t,d),_(d,c),_(d,h),_(d,k),_(t,S),_(t,M),_(M,q),_(M,K),_(M,N),_(N,F),_(F,g),_(N,p),x(T,N,null),_(e,b),x(H,e,null),_(e,R),_(e,V),_(V,U),_(U,ee),_(V,ae),_(V,P),_(P,te),z=!0,ve||(Ce=[re(a,"click",n[14]),re(N,"click",n[13]),re(U,"click",n[18]),re(P,"click",n[19])],ve=!0)},p(v,C){var oe;(!z||C&256)&&f!==(f=(((oe=qe(v[8]))==null?void 0:oe.label)??"")+"")&&le(c,f),(!z||C&512)&&le(k,v[9]);const B={};C&256&&(B.month=v[8]),C&512&&(B.year=v[9]),C&1&&(B.date=v[0]),C&2&&(B.isAllowed=v[1]),H.$set(B),(!z||C&16)&&le(ee,v[4]),(!z||C&32)&&le(te,v[5])},i(v){z||(E(s.$$.fragment,v),E(T.$$.fragment,v),E(H.$$.fragment,v),z=!0)},o(v){A(s.$$.fragment,v),A(T.$$.fragment,v),A(H.$$.fragment,v),z=!1},d(v){v&&m(e),$(s),$(T),$(H),ve=!1,et(Ce)}}}function Nt(n){let e,t,l,a,o,u,i;t=new mt({props:{id:"datepicker",label:n[2],labelHidden:n[3],icon:"calendar-plus",type:"text",placeholder:"MM/DD/YY",value:n[0].toDateString(),clearable:!0,clearButtonLabel:n[6],disabled:n[7]}}),t.$on("focus",n[11]),t.$on("input",n[12]);let s=n[10]&&Ye(n);return{c(){e=y("div"),X(t.$$.fragment),l=O(),s&&s.c(),this.h()},l(r){e=D(r,"DIV",{class:!0});var d=I(e);Z(t.$$.fragment,d),l=W(d),s&&s.l(d),d.forEach(m),this.h()},h(){w(e,"class","relative")},m(r,d){L(r,e,d),x(t,e,null),_(e,l),s&&s.m(e,null),o=!0,u||(i=xe(a=ht.call(null,e,n[20])),u=!0)},p(r,[d]){const f={};d&4&&(f.label=r[2]),d&8&&(f.labelHidden=r[3]),d&1&&(f.value=r[0].toDateString()),d&64&&(f.clearButtonLabel=r[6]),d&128&&(f.disabled=r[7]),t.$set(f),r[10]?s?(s.p(r,d),d&1024&&E(s,1)):(s=Ye(r),s.c(),E(s,1),s.m(e,null)):s&&(ke(),A(s,1,1,()=>{s=null}),pe()),a&&ze(a.update)&&d&1024&&a.update.call(null,r[20])},i(r){o||(E(t.$$.fragment,r),E(s),o=!0)},o(r){A(t.$$.fragment,r),A(s),o=!1},d(r){r&&m(e),$(t),s&&s.d(),u=!1,i()}}}function Mt(n,e,t){const l=Re();let{isAllowed:a=()=>!0}=e,{selected:o=new Date}=e,{label:u}=e,{labelHidden:i=!1}=e,{todayLabel:s}=e,{closeLabel:r}=e,{clearLabel:d}=e,{disabled:f=!1}=e,c,h,k=!1;const S=()=>{t(10,k=!0)},M=b=>{const R=b.target.value;if(R.length===8){const V=R==null?void 0:R.split("/"),ee=2e3+parseInt(V[2]),ae=parseInt(V[0])-1,P=parseInt(V[1]),te=new Date(ee,ae,P);l("datechange",te)}},q=()=>{if(c===11){t(8,c=0),t(9,h=h+1);return}t(8,c=c+1)},J=()=>{if(c===0){t(8,c=11),t(9,h-=1);return}t(8,c-=1)},K=b=>{t(10,k=!1),l("datechange",b.detail)},N=Ie("date-picker.previous-month"),F=Ie("date-picker.next-month"),g=()=>t(0,o=new Date),p=()=>t(10,k=!1),T=()=>t(10,k=!1);return n.$$set=b=>{"isAllowed"in b&&t(1,a=b.isAllowed),"selected"in b&&t(0,o=b.selected),"label"in b&&t(2,u=b.label),"labelHidden"in b&&t(3,i=b.labelHidden),"todayLabel"in b&&t(4,s=b.todayLabel),"closeLabel"in b&&t(5,r=b.closeLabel),"clearLabel"in b&&t(6,d=b.clearLabel),"disabled"in b&&t(7,f=b.disabled)},n.$$.update=()=>{n.$$.dirty&1&&(t(8,c=o.getMonth()),t(9,h=o.getFullYear()))},[o,a,u,i,s,r,d,f,c,h,k,S,M,q,J,K,N,F,g,p,T]}class tn extends ie{constructor(e){super(),ce(this,e,Mt,Nt,ue,{isAllowed:1,selected:0,label:2,labelHidden:3,todayLabel:4,closeLabel:5,clearLabel:6,disabled:7})}}function Lt(n){let e;const t=n[5].default,l=tt(t,n,n[4],null);return{c(){l&&l.c()},l(a){l&&l.l(a)},m(a,o){l&&l.m(a,o),e=!0},p(a,o){l&&l.p&&(!e||o&16)&&nt(l,t,a,a[4],e?st(t,a[4],o,null):lt(a[4]),null)},i(a){e||(E(l,a),e=!0)},o(a){A(l,a),e=!1},d(a){l&&l.d(a)}}}function qt(n){let e;return{c(){e=Y(n[1])},l(t){e=Q(t,n[1])},m(t,l){L(t,e,l)},p(t,l){l&2&&le(e,t[1])},i:G,o:G,d(t){t&&m(e)}}}function Vt(n){let e,t,l,a;const o=[qt,Lt],u=[];function i(s,r){return s[1]!==s[0]?0:1}return e=i(n),t=u[e]=o[e](n),{c(){t.c(),l=j()},l(s){t.l(s),l=j()},m(s,r){u[e].m(s,r),L(s,l,r),a=!0},p(s,[r]){let d=e;e=i(s),e===d?u[e].p(s,r):(ke(),A(u[d],1,1,()=>{u[d]=null}),pe(),t=u[e],t?t.p(s,r):(t=u[e]=o[e](s),t.c()),E(t,1),t.m(l.parentNode,l))},i(s){a||(E(t),a=!0)},o(s){A(t),a=!1},d(s){s&&m(l),u[e].d(s)}}}function Bt(n,e,t){let l,{$$slots:a={},$$scope:o}=e,{key:u}=e,{count:i=void 0}=e,{replace:s=void 0}=e;return n.$$set=r=>{"key"in r&&t(0,u=r.key),"count"in r&&t(2,i=r.count),"replace"in r&&t(3,s=r.replace),"$$scope"in r&&t(4,o=r.$$scope)},n.$$.update=()=>{n.$$.dirty&13&&t(1,l=Ie(u,{...s,count:i}))},[u,l,i,s,o,a]}class nn extends ie{constructor(e){super(),ce(this,e,Bt,Vt,ue,{key:0,count:2,replace:3})}}export{tn as D,nn as T,en as W,Zt as a,gt as b,xt as i,$t as w}; diff --git a/ui/assets/local/_app/immutable/chunks/tsMode.-yiofk3P.js b/ui/assets/local/_app/immutable/chunks/tsMode.-yiofk3P.js new file mode 100644 index 0000000000..43432cf4cb --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/tsMode.-yiofk3P.js @@ -0,0 +1,16 @@ +import{t as I,m as N}from"./index.RJsVUSS8.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 + *-----------------------------------------------------------------------------*/var M=Object.defineProperty,R=Object.getOwnPropertyDescriptor,K=Object.getOwnPropertyNames,E=Object.prototype.hasOwnProperty,T=(e,t,i,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of K(t))!E.call(e,n)&&n!==i&&M(e,n,{get:()=>t[n],enumerable:!(o=R(t,n))||o.enumerable});return e},H=(e,t,i)=>(T(e,t,"default"),i&&T(i,t,"default")),a={};H(a,N);var V=class{constructor(e,t){this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker()),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(()=>this._updateExtraLibs())}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=a.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(a.editor.getModels().filter(e=>e.getLanguageId()===this._modeId).map(e=>e.uri)):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}},r={};r["lib.d.ts"]=!0;r["lib.decorators.d.ts"]=!0;r["lib.decorators.legacy.d.ts"]=!0;r["lib.dom.asynciterable.d.ts"]=!0;r["lib.dom.d.ts"]=!0;r["lib.dom.iterable.d.ts"]=!0;r["lib.es2015.collection.d.ts"]=!0;r["lib.es2015.core.d.ts"]=!0;r["lib.es2015.d.ts"]=!0;r["lib.es2015.generator.d.ts"]=!0;r["lib.es2015.iterable.d.ts"]=!0;r["lib.es2015.promise.d.ts"]=!0;r["lib.es2015.proxy.d.ts"]=!0;r["lib.es2015.reflect.d.ts"]=!0;r["lib.es2015.symbol.d.ts"]=!0;r["lib.es2015.symbol.wellknown.d.ts"]=!0;r["lib.es2016.array.include.d.ts"]=!0;r["lib.es2016.d.ts"]=!0;r["lib.es2016.full.d.ts"]=!0;r["lib.es2016.intl.d.ts"]=!0;r["lib.es2017.d.ts"]=!0;r["lib.es2017.date.d.ts"]=!0;r["lib.es2017.full.d.ts"]=!0;r["lib.es2017.intl.d.ts"]=!0;r["lib.es2017.object.d.ts"]=!0;r["lib.es2017.sharedmemory.d.ts"]=!0;r["lib.es2017.string.d.ts"]=!0;r["lib.es2017.typedarrays.d.ts"]=!0;r["lib.es2018.asyncgenerator.d.ts"]=!0;r["lib.es2018.asynciterable.d.ts"]=!0;r["lib.es2018.d.ts"]=!0;r["lib.es2018.full.d.ts"]=!0;r["lib.es2018.intl.d.ts"]=!0;r["lib.es2018.promise.d.ts"]=!0;r["lib.es2018.regexp.d.ts"]=!0;r["lib.es2019.array.d.ts"]=!0;r["lib.es2019.d.ts"]=!0;r["lib.es2019.full.d.ts"]=!0;r["lib.es2019.intl.d.ts"]=!0;r["lib.es2019.object.d.ts"]=!0;r["lib.es2019.string.d.ts"]=!0;r["lib.es2019.symbol.d.ts"]=!0;r["lib.es2020.bigint.d.ts"]=!0;r["lib.es2020.d.ts"]=!0;r["lib.es2020.date.d.ts"]=!0;r["lib.es2020.full.d.ts"]=!0;r["lib.es2020.intl.d.ts"]=!0;r["lib.es2020.number.d.ts"]=!0;r["lib.es2020.promise.d.ts"]=!0;r["lib.es2020.sharedmemory.d.ts"]=!0;r["lib.es2020.string.d.ts"]=!0;r["lib.es2020.symbol.wellknown.d.ts"]=!0;r["lib.es2021.d.ts"]=!0;r["lib.es2021.full.d.ts"]=!0;r["lib.es2021.intl.d.ts"]=!0;r["lib.es2021.promise.d.ts"]=!0;r["lib.es2021.string.d.ts"]=!0;r["lib.es2021.weakref.d.ts"]=!0;r["lib.es2022.array.d.ts"]=!0;r["lib.es2022.d.ts"]=!0;r["lib.es2022.error.d.ts"]=!0;r["lib.es2022.full.d.ts"]=!0;r["lib.es2022.intl.d.ts"]=!0;r["lib.es2022.object.d.ts"]=!0;r["lib.es2022.regexp.d.ts"]=!0;r["lib.es2022.sharedmemory.d.ts"]=!0;r["lib.es2022.string.d.ts"]=!0;r["lib.es2023.array.d.ts"]=!0;r["lib.es2023.collection.d.ts"]=!0;r["lib.es2023.d.ts"]=!0;r["lib.es2023.full.d.ts"]=!0;r["lib.es5.d.ts"]=!0;r["lib.es6.d.ts"]=!0;r["lib.esnext.collection.d.ts"]=!0;r["lib.esnext.d.ts"]=!0;r["lib.esnext.decorators.d.ts"]=!0;r["lib.esnext.disposable.d.ts"]=!0;r["lib.esnext.full.d.ts"]=!0;r["lib.esnext.intl.d.ts"]=!0;r["lib.esnext.object.d.ts"]=!0;r["lib.esnext.promise.d.ts"]=!0;r["lib.scripthost.d.ts"]=!0;r["lib.webworker.asynciterable.d.ts"]=!0;r["lib.webworker.d.ts"]=!0;r["lib.webworker.importscripts.d.ts"]=!0;r["lib.webworker.iterable.d.ts"]=!0;function D(e,t,i=0){if(typeof e=="string")return e;if(e===void 0)return"";let o="";if(i){o+=t;for(let n=0;nt.text).join(""):""}var _=class{constructor(e){this._worker=e}_textSpanToRange(e,t){let i=e.getPositionAt(t.start),o=e.getPositionAt(t.start+t.length),{lineNumber:n,column:c}=i,{lineNumber:u,column:s}=o;return{startLineNumber:n,startColumn:c,endLineNumber:u,endColumn:s}}},W=class{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return e&&e.path.indexOf("/lib.")===0?!!r[e.path.slice(1)]:!1}getOrCreateModel(e){const t=a.Uri.parse(e),i=a.editor.getModel(t);if(i)return i;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return a.editor.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const o=I.getExtraLibs()[e];return o?a.editor.createModel(o.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then(e=>e.getLibFiles()).then(e=>{this._hasFetchedLibFiles=!0,this._libFiles=e})),this._fetchLibFilesPromise}},j=class extends _{constructor(e,t,i,o){super(o),this._libFiles=e,this._defaults=t,this._selector=i,this._disposables=[],this._listener=Object.create(null);const n=s=>{if(s.getLanguageId()!==i)return;const l=()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h?s.isAttachedToEditor()&&this._doValidate(s):this._doValidate(s)};let g;const d=s.onDidChangeContent(()=>{clearTimeout(g),g=window.setTimeout(l,500)}),b=s.onDidChangeAttached(()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h&&(s.isAttachedToEditor()?l():a.editor.setModelMarkers(s,this._selector,[]))});this._listener[s.uri.toString()]={dispose(){d.dispose(),b.dispose(),clearTimeout(g)}},l()},c=s=>{a.editor.setModelMarkers(s,this._selector,[]);const l=s.uri.toString();this._listener[l]&&(this._listener[l].dispose(),delete this._listener[l])};this._disposables.push(a.editor.onDidCreateModel(s=>n(s))),this._disposables.push(a.editor.onWillDisposeModel(c)),this._disposables.push(a.editor.onDidChangeModelLanguage(s=>{c(s.model),n(s.model)})),this._disposables.push({dispose(){for(const s of a.editor.getModels())c(s)}});const u=()=>{for(const s of a.editor.getModels())c(s),n(s)};this._disposables.push(this._defaults.onDidChange(u)),this._disposables.push(this._defaults.onDidExtraLibsChange(u)),a.editor.getModels().forEach(s=>n(s))}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables=[]}async _doValidate(e){const t=await this._worker(e.uri);if(e.isDisposed())return;const i=[],{noSyntaxValidation:o,noSemanticValidation:n,noSuggestionDiagnostics:c}=this._defaults.getDiagnosticsOptions();o||i.push(t.getSyntacticDiagnostics(e.uri.toString())),n||i.push(t.getSemanticDiagnostics(e.uri.toString())),c||i.push(t.getSuggestionDiagnostics(e.uri.toString()));const u=await Promise.all(i);if(!u||e.isDisposed())return;const s=u.reduce((g,d)=>d.concat(g),[]).filter(g=>(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(g.code)===-1),l=s.map(g=>g.relatedInformation||[]).reduce((g,d)=>d.concat(g),[]).map(g=>g.file?a.Uri.parse(g.file.fileName):null);await this._libFiles.fetchLibFilesIfNecessary(l),!e.isDisposed()&&a.editor.setModelMarkers(e,this._selector,s.map(g=>this._convertDiagnostics(e,g)))}_convertDiagnostics(e,t){const i=t.start||0,o=t.length||1,{lineNumber:n,column:c}=e.getPositionAt(i),{lineNumber:u,column:s}=e.getPositionAt(i+o),l=[];return t.reportsUnnecessary&&l.push(a.MarkerTag.Unnecessary),t.reportsDeprecated&&l.push(a.MarkerTag.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:n,startColumn:c,endLineNumber:u,endColumn:s,message:D(t.messageText,` +`),code:t.code.toString(),tags:l,relatedInformation:this._convertRelatedInformation(e,t.relatedInformation)}}_convertRelatedInformation(e,t){if(!t)return[];const i=[];return t.forEach(o=>{let n=e;if(o.file&&(n=this._libFiles.getOrCreateModel(o.file.fileName)),!n)return;const c=o.start||0,u=o.length||1,{lineNumber:s,column:l}=n.getPositionAt(c),{lineNumber:g,column:d}=n.getPositionAt(c+u);i.push({resource:n.uri,startLineNumber:s,startColumn:l,endLineNumber:g,endColumn:d,message:D(o.messageText,` +`)})}),i}_tsDiagnosticCategoryToMarkerSeverity(e){switch(e){case 1:return a.MarkerSeverity.Error;case 3:return a.MarkerSeverity.Info;case 0:return a.MarkerSeverity.Warning;case 2:return a.MarkerSeverity.Hint}return a.MarkerSeverity.Info}},B=class C extends _{get triggerCharacters(){return["."]}async provideCompletionItems(t,i,o,n){const c=t.getWordUntilPosition(i),u=new a.Range(i.lineNumber,c.startColumn,i.lineNumber,c.endColumn),s=t.uri,l=t.getOffsetAt(i),g=await this._worker(s);if(t.isDisposed())return;const d=await g.getCompletionsAtPosition(s.toString(),l);return!d||t.isDisposed()?void 0:{suggestions:d.entries.map(h=>{let y=u;if(h.replacementSpan){const S=t.getPositionAt(h.replacementSpan.start),x=t.getPositionAt(h.replacementSpan.start+h.replacementSpan.length);y=new a.Range(S.lineNumber,S.column,x.lineNumber,x.column)}const v=[];return h.kindModifiers!==void 0&&h.kindModifiers.indexOf("deprecated")!==-1&&v.push(a.languages.CompletionItemTag.Deprecated),{uri:s,position:i,offset:l,range:y,label:h.name,insertText:h.name,sortText:h.sortText,kind:C.convertKind(h.kind),tags:v}})}}async resolveCompletionItem(t,i){const o=t,n=o.uri,c=o.position,u=o.offset,l=await(await this._worker(n)).getCompletionEntryDetails(n.toString(),u,o.label);return l?{uri:n,position:c,label:l.name,kind:C.convertKind(l.kind),detail:w(l.displayParts),documentation:{value:C.createDocumentationString(l)}}:o}static convertKind(t){switch(t){case f.primitiveType:case f.keyword:return a.languages.CompletionItemKind.Keyword;case f.variable:case f.localVariable:return a.languages.CompletionItemKind.Variable;case f.memberVariable:case f.memberGetAccessor:case f.memberSetAccessor:return a.languages.CompletionItemKind.Field;case f.function:case f.memberFunction:case f.constructSignature:case f.callSignature:case f.indexSignature:return a.languages.CompletionItemKind.Function;case f.enum:return a.languages.CompletionItemKind.Enum;case f.module:return a.languages.CompletionItemKind.Module;case f.class:return a.languages.CompletionItemKind.Class;case f.interface:return a.languages.CompletionItemKind.Interface;case f.warning:return a.languages.CompletionItemKind.File}return a.languages.CompletionItemKind.Property}static createDocumentationString(t){let i=w(t.documentation);if(t.tags)for(const o of t.tags)i+=` + +${P(o)}`;return i}};function P(e){let t=`*@${e.name}*`;if(e.name==="param"&&e.text){const[i,...o]=e.text;t+=`\`${i.text}\``,o.length>0&&(t+=` — ${o.map(n=>n.text).join(" ")}`)}else Array.isArray(e.text)?t+=` — ${e.text.map(i=>i.text).join(" ")}`:e.text&&(t+=` — ${e.text}`);return t}var U=class L extends _{constructor(){super(...arguments),this.signatureHelpTriggerCharacters=["(",","]}static _toSignatureHelpTriggerReason(t){switch(t.triggerKind){case a.languages.SignatureHelpTriggerKind.TriggerCharacter:return t.triggerCharacter?t.isRetrigger?{kind:"retrigger",triggerCharacter:t.triggerCharacter}:{kind:"characterTyped",triggerCharacter:t.triggerCharacter}:{kind:"invoked"};case a.languages.SignatureHelpTriggerKind.ContentChange:return t.isRetrigger?{kind:"retrigger"}:{kind:"invoked"};case a.languages.SignatureHelpTriggerKind.Invoke:default:return{kind:"invoked"}}}async provideSignatureHelp(t,i,o,n){const c=t.uri,u=t.getOffsetAt(i),s=await this._worker(c);if(t.isDisposed())return;const l=await s.getSignatureHelpItems(c.toString(),u,{triggerReason:L._toSignatureHelpTriggerReason(n)});if(!l||t.isDisposed())return;const g={activeSignature:l.selectedItemIndex,activeParameter:l.argumentIndex,signatures:[]};return l.items.forEach(d=>{const b={label:"",parameters:[]};b.documentation={value:w(d.documentation)},b.label+=w(d.prefixDisplayParts),d.parameters.forEach((h,y,v)=>{const S=w(h.displayParts),x={label:S,documentation:{value:w(h.documentation)}};b.label+=S,b.parameters.push(x),yP(d)).join(` + +`):"",g=w(u.displayParts);return{range:this._textSpanToRange(e,u.textSpan),contents:[{value:"```typescript\n"+g+"\n```\n"},{value:s+(l?` + +`+l:"")}]}}},z=class extends _{async provideDocumentHighlights(e,t,i){const o=e.uri,n=e.getOffsetAt(t),c=await this._worker(o);if(e.isDisposed())return;const u=await c.getDocumentHighlights(o.toString(),n,[o.toString()]);if(!(!u||e.isDisposed()))return u.flatMap(s=>s.highlightSpans.map(l=>({range:this._textSpanToRange(e,l.textSpan),kind:l.kind==="writtenReference"?a.languages.DocumentHighlightKind.Write:a.languages.DocumentHighlightKind.Text})))}},G=class extends _{constructor(e,t){super(t),this._libFiles=e}async provideDefinition(e,t,i){const o=e.uri,n=e.getOffsetAt(t),c=await this._worker(o);if(e.isDisposed())return;const u=await c.getDefinitionAtPosition(o.toString(),n);if(!u||e.isDisposed()||(await this._libFiles.fetchLibFilesIfNecessary(u.map(l=>a.Uri.parse(l.fileName))),e.isDisposed()))return;const s=[];for(let l of u){const g=this._libFiles.getOrCreateModel(l.fileName);g&&s.push({uri:g.uri,range:this._textSpanToRange(g,l.textSpan)})}return s}},J=class extends _{constructor(e,t){super(t),this._libFiles=e}async provideReferences(e,t,i,o){const n=e.uri,c=e.getOffsetAt(t),u=await this._worker(n);if(e.isDisposed())return;const s=await u.getReferencesAtPosition(n.toString(),c);if(!s||e.isDisposed()||(await this._libFiles.fetchLibFilesIfNecessary(s.map(g=>a.Uri.parse(g.fileName))),e.isDisposed()))return;const l=[];for(let g of s){const d=this._libFiles.getOrCreateModel(g.fileName);d&&l.push({uri:d.uri,range:this._textSpanToRange(d,g.textSpan)})}return l}},Q=class extends _{async provideDocumentSymbols(e,t){const i=e.uri,o=await this._worker(i);if(e.isDisposed())return;const n=await o.getNavigationTree(i.toString());if(!n||e.isDisposed())return;const c=(s,l)=>{var d;return{name:s.text,detail:"",kind:m[s.kind]||a.languages.SymbolKind.Variable,range:this._textSpanToRange(e,s.spans[0]),selectionRange:this._textSpanToRange(e,s.spans[0]),tags:[],children:(d=s.childItems)==null?void 0:d.map(b=>c(b,s.text)),containerName:l}};return n.childItems?n.childItems.map(s=>c(s)):[]}},p,f=(p=class{},p.unknown="",p.keyword="keyword",p.script="script",p.module="module",p.class="class",p.interface="interface",p.type="type",p.enum="enum",p.variable="var",p.localVariable="local var",p.function="function",p.localFunction="local function",p.memberFunction="method",p.memberGetAccessor="getter",p.memberSetAccessor="setter",p.memberVariable="property",p.constructorImplementation="constructor",p.callSignature="call",p.indexSignature="index",p.constructSignature="construct",p.parameter="parameter",p.typeParameter="type parameter",p.primitiveType="primitive type",p.label="label",p.alias="alias",p.const="const",p.let="let",p.warning="warning",p),m=Object.create(null);m[f.module]=a.languages.SymbolKind.Module;m[f.class]=a.languages.SymbolKind.Class;m[f.enum]=a.languages.SymbolKind.Enum;m[f.interface]=a.languages.SymbolKind.Interface;m[f.memberFunction]=a.languages.SymbolKind.Method;m[f.memberVariable]=a.languages.SymbolKind.Property;m[f.memberGetAccessor]=a.languages.SymbolKind.Property;m[f.memberSetAccessor]=a.languages.SymbolKind.Property;m[f.variable]=a.languages.SymbolKind.Variable;m[f.const]=a.languages.SymbolKind.Variable;m[f.localVariable]=a.languages.SymbolKind.Variable;m[f.variable]=a.languages.SymbolKind.Variable;m[f.function]=a.languages.SymbolKind.Function;m[f.localFunction]=a.languages.SymbolKind.Function;var k=class extends _{static _convertOptions(e){return{ConvertTabsToSpaces:e.insertSpaces,TabSize:e.tabSize,IndentSize:e.tabSize,IndentStyle:2,NewLineCharacter:` +`,InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1}}_convertTextChanges(e,t){return{text:t.newText,range:this._textSpanToRange(e,t.span)}}},q=class extends k{constructor(){super(...arguments),this.canFormatMultipleRanges=!1}async provideDocumentRangeFormattingEdits(e,t,i,o){const n=e.uri,c=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),u=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),s=await this._worker(n);if(e.isDisposed())return;const l=await s.getFormattingEditsForRange(n.toString(),c,u,k._convertOptions(i));if(!(!l||e.isDisposed()))return l.map(g=>this._convertTextChanges(e,g))}},X=class extends k{get autoFormatTriggerCharacters(){return[";","}",` +`]}async provideOnTypeFormattingEdits(e,t,i,o,n){const c=e.uri,u=e.getOffsetAt(t),s=await this._worker(c);if(e.isDisposed())return;const l=await s.getFormattingEditsAfterKeystroke(c.toString(),u,i,k._convertOptions(o));if(!(!l||e.isDisposed()))return l.map(g=>this._convertTextChanges(e,g))}},Y=class extends k{async provideCodeActions(e,t,i,o){const n=e.uri,c=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),u=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),s=k._convertOptions(e.getOptions()),l=i.markers.filter(h=>h.code).map(h=>h.code).map(Number),g=await this._worker(n);if(e.isDisposed())return;const d=await g.getCodeFixesAtPosition(n.toString(),c,u,l,s);return!d||e.isDisposed()?{actions:[],dispose:()=>{}}:{actions:d.filter(h=>h.changes.filter(y=>y.isNewFile).length===0).map(h=>this._tsCodeFixActionToMonacoCodeAction(e,i,h)),dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(e,t,i){const o=[];for(const c of i.changes)for(const u of c.textChanges)o.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,u.span),text:u.newText}});return{title:i.description,edit:{edits:o},diagnostics:t.markers,kind:"quickfix"}}},Z=class extends _{constructor(e,t){super(t),this._libFiles=e}async provideRenameEdits(e,t,i,o){const n=e.uri,c=n.toString(),u=e.getOffsetAt(t),s=await this._worker(n);if(e.isDisposed())return;const l=await s.getRenameInfo(c,u,{allowRenameOfImportPath:!1});if(l.canRename===!1)return{edits:[],rejectReason:l.localizedErrorMessage};if(l.fileToRename!==void 0)throw new Error("Renaming files is not supported.");const g=await s.findRenameLocations(c,u,!1,!1,!1);if(!g||e.isDisposed())return;const d=[];for(const b of g){const h=this._libFiles.getOrCreateModel(b.fileName);if(h)d.push({resource:h.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(h,b.textSpan),text:i}});else throw new Error(`Unknown file ${b.fileName}.`)}return{edits:d}}},ee=class extends _{async provideInlayHints(e,t,i){const o=e.uri,n=o.toString(),c=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),u=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),s=await this._worker(o);return e.isDisposed()?null:{hints:(await s.provideInlayHints(n,c,u)).map(d=>({...d,label:d.text,position:e.getPositionAt(d.position),kind:this._convertHintKind(d.kind)})),dispose:()=>{}}}_convertHintKind(e){switch(e){case"Parameter":return a.languages.InlayHintKind.Parameter;case"Type":return a.languages.InlayHintKind.Type;default:return a.languages.InlayHintKind.Type}}},A,F;function re(e){F=O(e,"typescript")}function ie(e){A=O(e,"javascript")}function ne(){return new Promise((e,t)=>{if(!A)return t("JavaScript not registered!");e(A)})}function ae(){return new Promise((e,t)=>{if(!F)return t("TypeScript not registered!");e(F)})}function O(e,t){const i=[],o=new V(t,e),n=(...s)=>o.getLanguageServiceWorker(...s),c=new W(n);function u(){const{modeConfiguration:s}=e;te(i),s.completionItems&&i.push(a.languages.registerCompletionItemProvider(t,new B(n))),s.signatureHelp&&i.push(a.languages.registerSignatureHelpProvider(t,new U(n))),s.hovers&&i.push(a.languages.registerHoverProvider(t,new $(n))),s.documentHighlights&&i.push(a.languages.registerDocumentHighlightProvider(t,new z(n))),s.definitions&&i.push(a.languages.registerDefinitionProvider(t,new G(c,n))),s.references&&i.push(a.languages.registerReferenceProvider(t,new J(c,n))),s.documentSymbols&&i.push(a.languages.registerDocumentSymbolProvider(t,new Q(n))),s.rename&&i.push(a.languages.registerRenameProvider(t,new Z(c,n))),s.documentRangeFormattingEdits&&i.push(a.languages.registerDocumentRangeFormattingEditProvider(t,new q(n))),s.onTypeFormattingEdits&&i.push(a.languages.registerOnTypeFormattingEditProvider(t,new X(n))),s.codeActions&&i.push(a.languages.registerCodeActionProvider(t,new Y(n))),s.inlayHints&&i.push(a.languages.registerInlayHintsProvider(t,new ee(n))),s.diagnostics&&i.push(new j(c,e,t,n))}return u(),n}function te(e){for(;e.length;)e.pop().dispose()}export{_ as Adapter,Y as CodeActionAdaptor,G as DefinitionAdapter,j as DiagnosticsAdapter,z as DocumentHighlightAdapter,q as FormatAdapter,k as FormatHelper,X as FormatOnTypeAdapter,ee as InlayHintsAdapter,f as Kind,W as LibFiles,Q as OutlineAdapter,$ as QuickInfoAdapter,J as ReferenceAdapter,Z as RenameAdapter,U as SignatureHelpAdapter,B as SuggestAdapter,V as WorkerManager,D as flattenDiagnosticMessageText,ne as getJavaScriptWorker,ae as getTypeScriptWorker,ie as setupJavaScript,re as setupTypeScript}; diff --git a/ui/assets/local/_app/immutable/chunks/twig.YU5xFCs4.js b/ui/assets/local/_app/immutable/chunks/twig.YU5xFCs4.js new file mode 100644 index 0000000000..0a28de210f --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/twig.YU5xFCs4.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var t={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:">"}]},e={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"}],[/[^<]+/,""]]}};export{t as conf,e as language}; diff --git a/ui/assets/local/_app/immutable/chunks/typescript.FaBf3sEe.js b/ui/assets/local/_app/immutable/chunks/typescript.FaBf3sEe.js new file mode 100644 index 0000000000..24782eb46d --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/typescript.FaBf3sEe.js @@ -0,0 +1,6 @@ +import{m as a}from"./index.RJsVUSS8.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 + *-----------------------------------------------------------------------------*/var c=Object.defineProperty,p=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,s=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of g(e))!l.call(t,n)&&n!==o&&c(t,n,{get:()=>e[n],enumerable:!(i=p(e,n))||i.enumerable});return t},d=(t,e,o)=>(s(t,e,"default"),o&&s(o,e,"default")),r={};d(r,a);var x={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:r.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:r.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:r.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:r.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")}}},b={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"}]}};export{x as conf,b as language}; diff --git a/ui/assets/local/_app/immutable/chunks/typespec.j5D_rXJM.js b/ui/assets/local/_app/immutable/chunks/typespec.j5D_rXJM.js new file mode 100644 index 0000000000..ef694565e5 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/typespec.j5D_rXJM.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var o=e=>`\\b${e}\\b`,n=e=>`(?!${e})`,r="[_a-zA-Z]",i="[_a-zA-Z0-9]",t=o(`${r}${i}*`),a=o("[_a-zA-Z-0-9]+"),s=["import","model","scalar","namespace","op","interface","union","using","is","extends","enum","alias","return","void","if","else","projection","dec","extern","fn"],c=["true","false","null","unknown","never"],g="[ \\t\\r\\n]",l="[0-9]+",k={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|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$")}},x={defaultToken:"",tokenPostfix:".tsp",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=:;<>]+/,keywords:s,namedLiterals:c,escapes:'\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|"|\\${)',tokenizer:{root:[{include:"@expression"},{include:"@whitespace"}],stringVerbatim:[{regex:'(|"|"")[^"]',action:{token:"string"}},{regex:`"""${n('"')}`,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:g},{regex:"\\/\\*",action:{token:"comment",next:"@comment"}},{regex:"\\/\\/.*$",action:{token:"comment"}}],expression:[{regex:'"""',action:{token:"string",next:"@stringVerbatim"}},{regex:`"${n('""')}`,action:{token:"string",next:"@stringLiteral"}},{regex:l,action:{token:"number"}},{regex:t,action:{cases:{"@keywords":{token:"keyword"},"@namedLiterals":{token:"keyword"},"@default":{token:"identifier"}}}},{regex:`@${t}`,action:{token:"tag"}},{regex:`#${a}`,action:{token:"directive"}}]}};export{k as conf,x as language}; diff --git a/ui/assets/local/_app/immutable/chunks/update-query-parameters.bYEFH29o.js b/ui/assets/local/_app/immutable/chunks/update-query-parameters.FxaVQrFe.js similarity index 85% rename from ui/assets/local/_app/immutable/chunks/update-query-parameters.bYEFH29o.js rename to ui/assets/local/_app/immutable/chunks/update-query-parameters.FxaVQrFe.js index 5a56ffd3b9..e1a8d1ad32 100644 --- a/ui/assets/local/_app/immutable/chunks/update-query-parameters.bYEFH29o.js +++ b/ui/assets/local/_app/immutable/chunks/update-query-parameters.FxaVQrFe.js @@ -1 +1 @@ -import{g as h}from"./entry.1BQh90wu.js";const p={keepFocus:!0,noScroll:!0},S=async({parameter:n,value:e,url:c,goto:f=h,allowEmpty:i=!1,clearParameters:a=[]})=>{const g=String(e),r={};c.searchParams.forEach((o,s)=>{s!==n&&(r[s]=o)});const t=new URLSearchParams(r);e?t.set(n,g):i&&t.set(n,""),a.length&&a.forEach(o=>{t.delete(o)});{const o=t==null?void 0:t.toString(),s=o?`${c.pathname}?${o}`:c.pathname;f(s,p)}return e};export{S as u}; +import{g as h}from"./entry.6mxJxwSM.js";const p={keepFocus:!0,noScroll:!0},S=async({parameter:n,value:e,url:c,goto:f=h,allowEmpty:i=!1,clearParameters:a=[]})=>{const g=String(e),r={};c.searchParams.forEach((o,s)=>{s!==n&&(r[s]=o)});const t=new URLSearchParams(r);e?t.set(n,g):i&&t.set(n,""),a.length&&a.forEach(o=>{t.delete(o)});{const o=t==null?void 0:t.toString(),s=o?`${c.pathname}?${o}`:c.pathname;f(s,p)}return e};export{S as u}; diff --git a/ui/assets/local/_app/immutable/chunks/vb.-URM9q1V.js b/ui/assets/local/_app/immutable/chunks/vb.-URM9q1V.js new file mode 100644 index 0000000000..4ae2417fab --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/vb.-URM9q1V.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var e={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")}}},n={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:/[=>{var a;return(a=r.data)==null?void 0:a.cluster}),t=o([n],([r])=>r==null?void 0:r.serverVersion),d=o([m],([r])=>r==null?void 0:r.version);export{n as c,t,d as u}; +import{d as o}from"./entry.6mxJxwSM.js";import{p as e}from"./stores.cW8AX6ex.js";import{s as m}from"./settings.MUdBGWnD.js";const n=o([e],([r])=>{var a;return(a=r.data)==null?void 0:a.cluster}),t=o([n],([r])=>r==null?void 0:r.serverVersion),d=o([m],([r])=>r==null?void 0:r.version);export{n as c,t,d as u}; diff --git a/ui/assets/local/_app/immutable/chunks/wgsl.cHB-EbgT.js b/ui/assets/local/_app/immutable/chunks/wgsl.cHB-EbgT.js new file mode 100644 index 0000000000..1c918416d5 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/wgsl.cHB-EbgT.js @@ -0,0 +1,303 @@ +/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var g={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"}]};function e(i){let o=[];const a=i.split(/\t+|\r+|\n+| +/);for(let r=0;r0&&o.push(a[r]);return o}var s=e("true false"),c=e(` + 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 + `),m=e(` + 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 + `),l=e(` + 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 +`),u=e(` + 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 + `),p=e(` + 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 + `),d=e(` + 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 + `),x=e(` + 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 +`),f=e(` + & + && + -> + / + = + == + != + > + >= + < + <= + % + - + -- + + + ++ + | + || + * + << + >> + += + -= + *= + /= + %= + &= + |= + ^= + >>= + <<= + `),_=/enable|requires|diagnostic/,n=new RegExp("[_\\p{XID_Start}]\\p{XID_Continue}*","u"),t="variable.predefined",h={tokenPostfix:".wgsl",defaultToken:"invalid",unicode:!0,atoms:s,keywords:c,reserved:m,predeclared_enums:l,predeclared_types:u,predeclared_type_generators:p,predeclared_type_aliases:d,predeclared_intrinsics:x,operators:f,symbols:/[!%&*+\-\.\/:;<=>^|_~,]+/,tokenizer:{root:[[_,"keyword","@directive"],[n,{cases:{"@atoms":t,"@keywords":"keyword","@reserved":"invalid","@predeclared_enums":t,"@predeclared_types":t,"@predeclared_type_generators":t,"@predeclared_type_aliases":t,"@predeclared_intrinsics":t,"@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"],[n,"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"]]}};export{g as conf,h as language}; diff --git a/ui/assets/local/_app/immutable/chunks/worker-table.b8mbcsoq.js b/ui/assets/local/_app/immutable/chunks/worker-table.B5UeXZ-Y.js similarity index 92% rename from ui/assets/local/_app/immutable/chunks/worker-table.b8mbcsoq.js rename to ui/assets/local/_app/immutable/chunks/worker-table.B5UeXZ-Y.js index 9d6a869109..92b50579a3 100644 --- a/ui/assets/local/_app/immutable/chunks/worker-table.b8mbcsoq.js +++ b/ui/assets/local/_app/immutable/chunks/worker-table.B5UeXZ-Y.js @@ -1 +1 @@ -import{s as ue,h as w,t as x,b as P,j as k,k as T,l as F,d as D,f as c,m as $,i as _,n as g,c as ee,q as J,x as te,y as pe,v as M}from"./scheduler.1T9hOnFr.js";import{S as fe,i as me,c as K,a as L,m as S,t as H,b as V,d as Y,g as le,e as se}from"./index.cVovwi_s.js";import{e as ae}from"./each.QHpLJPfe.js";import{B as de}from"./badge.kH3kuYyU.js";import{E as _e}from"./empty-state.e2HBTKUT.js";import{T as $e,a as he}from"./table-header-row.8AKDWknn.js";import{T as we}from"./table-row.EPGn_fnl.js";import{t as C}from"./translate.HrioCK44.js";import"./auth-user.ZpmVHepC.js";import"./toaster.IevlZuOP.js";import"./paths.uI-MwgM_.js";import"./entry.1BQh90wu.js";import{t as ke,r as Te,f as re}from"./time-format.HFIwVHuT.js";import{I as ge}from"./icon.w8eknFMq.js";function ve(u){let e,s;return e=new ge({props:{name:u[0]?"checkmark":"close",class:"m-auto "+(u[0]?"text-blue-700":"text-primary"),title:u[0]?C("common.yes"):C("common.no")}}),{c(){K(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){S(e,t,l),s=!0},p(t,[l]){const r={};l&1&&(r.name=t[0]?"checkmark":"close"),l&1&&(r.class="m-auto "+(t[0]?"text-blue-700":"text-primary")),l&1&&(r.title=t[0]?C("common.yes"):C("common.no")),e.$set(r)},i(t){s||(H(e.$$.fragment,t),s=!0)},o(t){V(e.$$.fragment,t),s=!1},d(t){Y(e,t)}}}function be(u,e,s){let{includesTaskQueueType:t}=e;return u.$$set=l=>{"includesTaskQueueType"in l&&s(0,t=l.includesTaskQueueType)},[t]}class oe extends fe{constructor(e){super(),me(this,e,be,ve,ue,{includesTaskQueueType:0})}}function ne(u,e,s){const t=u.slice();return t[3]=e[s],t}function Ee(u){var t,l;let e=(((l=(t=u[0])==null?void 0:t.pollers)==null?void 0:l.length)||0)+"",s;return{c(){s=x(e)},l(r){s=F(r,e)},m(r,a){_(r,s,a)},p(r,a){var f,n;a&1&&e!==(e=(((n=(f=r[0])==null?void 0:f.pollers)==null?void 0:n.length)||0)+"")&&J(s,e)},d(r){r&&c(s)}}}function ce(u){let e,s,t,l,r;return t=new _e({props:{title:C("workflows.workers-empty-state")}}),{c(){e=w("tr"),s=w("td"),K(t.$$.fragment),l=P(),this.h()},l(a){e=k(a,"TR",{class:!0});var f=T(e);s=k(f,"TD",{colspan:!0});var n=T(s);L(t.$$.fragment,n),n.forEach(c),l=D(f),f.forEach(c),this.h()},h(){$(s,"colspan",6),$(e,"class","w-full")},m(a,f){_(a,e,f),g(e,s),S(t,s,null),g(e,l),r=!0},p:M,i(a){r||(H(t.$$.fragment,a),r=!0)},o(a){V(t.$$.fragment,a),r=!1},d(a){a&&c(e),Y(t)}}}function ye(u){var b,z;let e,s,t=u[3].identity+"",l,r,a,f,n=(((z=(b=u[3])==null?void 0:b.workerVersionCapabilities)==null?void 0:z.buildId)??"")+"",o,p,m,v,y=re(u[3].lastAccessTime,u[1],{relative:u[2]})+"",W,j,A,Q,I,E,O,B,d;return Q=new oe({props:{includesTaskQueueType:u[3].taskQueueTypes.includes("WORKFLOW")}}),O=new oe({props:{includesTaskQueueType:u[3].taskQueueTypes.includes("ACTIVITY")}}),{c(){e=w("td"),s=w("p"),l=x(t),r=P(),a=w("td"),f=w("p"),o=x(n),p=P(),m=w("td"),v=w("p"),W=x(y),j=P(),A=w("td"),K(Q.$$.fragment),I=P(),E=w("td"),K(O.$$.fragment),B=P(),this.h()},l(i){e=k(i,"TD",{class:!0,"data-testid":!0});var h=T(e);s=k(h,"P",{class:!0});var N=T(s);l=F(N,t),N.forEach(c),h.forEach(c),r=D(i),a=k(i,"TD",{class:!0,"data-testid":!0});var R=T(a);f=k(R,"P",{class:!0});var q=T(f);o=F(q,n),q.forEach(c),R.forEach(c),p=D(i),m=k(i,"TD",{class:!0,"data-testid":!0});var G=T(m);v=k(G,"P",{class:!0});var U=T(v);W=F(U,y),U.forEach(c),G.forEach(c),j=D(i),A=k(i,"TD",{"data-testid":!0});var X=T(A);L(Q.$$.fragment,X),X.forEach(c),I=D(i),E=k(i,"TD",{"data-testid":!0});var Z=T(E);L(O.$$.fragment,Z),Z.forEach(c),B=D(i),this.h()},h(){$(s,"class","select-all"),$(e,"class","text-left"),$(e,"data-testid","worker-identity"),$(f,"class","select-all break-all"),$(a,"class","text-left"),$(a,"data-testid","worker-build-id"),$(v,"class","select-all"),$(m,"class","text-left"),$(m,"data-testid","worker-last-access-time"),$(A,"data-testid","workflow-poller"),$(E,"data-testid","activity-poller")},m(i,h){_(i,e,h),g(e,s),g(s,l),_(i,r,h),_(i,a,h),g(a,f),g(f,o),_(i,p,h),_(i,m,h),g(m,v),g(v,W),_(i,j,h),_(i,A,h),S(Q,A,null),_(i,I,h),_(i,E,h),S(O,E,null),_(i,B,h),d=!0},p(i,h){var q,G;(!d||h&1)&&t!==(t=i[3].identity+"")&&J(l,t),(!d||h&1)&&n!==(n=(((G=(q=i[3])==null?void 0:q.workerVersionCapabilities)==null?void 0:G.buildId)??"")+"")&&J(o,n),(!d||h&7)&&y!==(y=re(i[3].lastAccessTime,i[1],{relative:i[2]})+"")&&J(W,y);const N={};h&1&&(N.includesTaskQueueType=i[3].taskQueueTypes.includes("WORKFLOW")),Q.$set(N);const R={};h&1&&(R.includesTaskQueueType=i[3].taskQueueTypes.includes("ACTIVITY")),O.$set(R)},i(i){d||(H(Q.$$.fragment,i),H(O.$$.fragment,i),d=!0)},o(i){V(Q.$$.fragment,i),V(O.$$.fragment,i),d=!1},d(i){i&&(c(e),c(r),c(a),c(p),c(m),c(j),c(A),c(I),c(E),c(B)),Y(Q),Y(O)}}}function ie(u){let e,s;return e=new we({props:{"data-testid":"worker-row",$$slots:{default:[ye]},$$scope:{ctx:u}}}),{c(){K(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){S(e,t,l),s=!0},p(t,l){const r={};l&71&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){s||(H(e.$$.fragment,t),s=!0)},o(t){V(e.$$.fragment,t),s=!1},d(t){Y(e,t)}}}function Qe(u){var f;let e,s,t=ae((f=u[0])==null?void 0:f.pollers),l=[];for(let n=0;nV(l[n],1,1,()=>{l[n]=null});let a=null;return t.length||(a=ce()),{c(){for(let n=0;n{a=null}),se()):(a=ce(),a.c(),H(a,1),a.m(e.parentNode,e))}},i(n){if(!s){for(let o=0;os(1,t=a)),ee(u,Te,a=>s(2,l=a));let{workers:r}=e;return u.$$set=a=>{"workers"in a&&s(0,r=a.workers)},[r,t,l]}class je extends fe{constructor(e){super(),me(this,e,He,Ce,ue,{workers:0})}}export{oe as P,je as W}; +import{s as ue,h as w,t as x,b as P,j as k,k as T,l as F,d as D,f as c,m as $,i as _,n as g,c as ee,q as J,x as te,y as pe,v as M}from"./scheduler.pPC3woXQ.js";import{S as fe,i as me,c as K,a as L,m as S,t as H,b as V,d as Y,g as le,e as se}from"./index.Z3Qqxacm.js";import{e as ae}from"./each.fm8Uvuh8.js";import{B as de}from"./badge.rkMH44Sz.js";import{E as _e}from"./empty-state.EyhDYDWL.js";import{T as $e,a as he}from"./table-header-row.zRlA4wu6.js";import{T as we}from"./table-row.tGhwPOmn.js";import{t as C}from"./translate.HrioCK44.js";import"./auth-user.hBqnVR-w.js";import"./toaster.pceGNaxq.js";import"./paths.yvZ-Br9O.js";import"./entry.6mxJxwSM.js";import{t as ke,r as Te,f as re}from"./time-format.dnMZnAkG.js";import{I as ge}from"./icon.IMxiy1l_.js";function ve(u){let e,s;return e=new ge({props:{name:u[0]?"checkmark":"close",class:"m-auto "+(u[0]?"text-blue-700":"text-primary"),title:u[0]?C("common.yes"):C("common.no")}}),{c(){K(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){S(e,t,l),s=!0},p(t,[l]){const r={};l&1&&(r.name=t[0]?"checkmark":"close"),l&1&&(r.class="m-auto "+(t[0]?"text-blue-700":"text-primary")),l&1&&(r.title=t[0]?C("common.yes"):C("common.no")),e.$set(r)},i(t){s||(H(e.$$.fragment,t),s=!0)},o(t){V(e.$$.fragment,t),s=!1},d(t){Y(e,t)}}}function be(u,e,s){let{includesTaskQueueType:t}=e;return u.$$set=l=>{"includesTaskQueueType"in l&&s(0,t=l.includesTaskQueueType)},[t]}class oe extends fe{constructor(e){super(),me(this,e,be,ve,ue,{includesTaskQueueType:0})}}function ne(u,e,s){const t=u.slice();return t[3]=e[s],t}function Ee(u){var t,l;let e=(((l=(t=u[0])==null?void 0:t.pollers)==null?void 0:l.length)||0)+"",s;return{c(){s=x(e)},l(r){s=F(r,e)},m(r,a){_(r,s,a)},p(r,a){var f,n;a&1&&e!==(e=(((n=(f=r[0])==null?void 0:f.pollers)==null?void 0:n.length)||0)+"")&&J(s,e)},d(r){r&&c(s)}}}function ce(u){let e,s,t,l,r;return t=new _e({props:{title:C("workflows.workers-empty-state")}}),{c(){e=w("tr"),s=w("td"),K(t.$$.fragment),l=P(),this.h()},l(a){e=k(a,"TR",{class:!0});var f=T(e);s=k(f,"TD",{colspan:!0});var n=T(s);L(t.$$.fragment,n),n.forEach(c),l=D(f),f.forEach(c),this.h()},h(){$(s,"colspan",6),$(e,"class","w-full")},m(a,f){_(a,e,f),g(e,s),S(t,s,null),g(e,l),r=!0},p:M,i(a){r||(H(t.$$.fragment,a),r=!0)},o(a){V(t.$$.fragment,a),r=!1},d(a){a&&c(e),Y(t)}}}function ye(u){var b,z;let e,s,t=u[3].identity+"",l,r,a,f,n=(((z=(b=u[3])==null?void 0:b.workerVersionCapabilities)==null?void 0:z.buildId)??"")+"",o,p,m,v,y=re(u[3].lastAccessTime,u[1],{relative:u[2]})+"",W,j,A,Q,I,E,O,B,d;return Q=new oe({props:{includesTaskQueueType:u[3].taskQueueTypes.includes("WORKFLOW")}}),O=new oe({props:{includesTaskQueueType:u[3].taskQueueTypes.includes("ACTIVITY")}}),{c(){e=w("td"),s=w("p"),l=x(t),r=P(),a=w("td"),f=w("p"),o=x(n),p=P(),m=w("td"),v=w("p"),W=x(y),j=P(),A=w("td"),K(Q.$$.fragment),I=P(),E=w("td"),K(O.$$.fragment),B=P(),this.h()},l(i){e=k(i,"TD",{class:!0,"data-testid":!0});var h=T(e);s=k(h,"P",{class:!0});var N=T(s);l=F(N,t),N.forEach(c),h.forEach(c),r=D(i),a=k(i,"TD",{class:!0,"data-testid":!0});var R=T(a);f=k(R,"P",{class:!0});var q=T(f);o=F(q,n),q.forEach(c),R.forEach(c),p=D(i),m=k(i,"TD",{class:!0,"data-testid":!0});var G=T(m);v=k(G,"P",{class:!0});var U=T(v);W=F(U,y),U.forEach(c),G.forEach(c),j=D(i),A=k(i,"TD",{"data-testid":!0});var X=T(A);L(Q.$$.fragment,X),X.forEach(c),I=D(i),E=k(i,"TD",{"data-testid":!0});var Z=T(E);L(O.$$.fragment,Z),Z.forEach(c),B=D(i),this.h()},h(){$(s,"class","select-all"),$(e,"class","text-left"),$(e,"data-testid","worker-identity"),$(f,"class","select-all break-all"),$(a,"class","text-left"),$(a,"data-testid","worker-build-id"),$(v,"class","select-all"),$(m,"class","text-left"),$(m,"data-testid","worker-last-access-time"),$(A,"data-testid","workflow-poller"),$(E,"data-testid","activity-poller")},m(i,h){_(i,e,h),g(e,s),g(s,l),_(i,r,h),_(i,a,h),g(a,f),g(f,o),_(i,p,h),_(i,m,h),g(m,v),g(v,W),_(i,j,h),_(i,A,h),S(Q,A,null),_(i,I,h),_(i,E,h),S(O,E,null),_(i,B,h),d=!0},p(i,h){var q,G;(!d||h&1)&&t!==(t=i[3].identity+"")&&J(l,t),(!d||h&1)&&n!==(n=(((G=(q=i[3])==null?void 0:q.workerVersionCapabilities)==null?void 0:G.buildId)??"")+"")&&J(o,n),(!d||h&7)&&y!==(y=re(i[3].lastAccessTime,i[1],{relative:i[2]})+"")&&J(W,y);const N={};h&1&&(N.includesTaskQueueType=i[3].taskQueueTypes.includes("WORKFLOW")),Q.$set(N);const R={};h&1&&(R.includesTaskQueueType=i[3].taskQueueTypes.includes("ACTIVITY")),O.$set(R)},i(i){d||(H(Q.$$.fragment,i),H(O.$$.fragment,i),d=!0)},o(i){V(Q.$$.fragment,i),V(O.$$.fragment,i),d=!1},d(i){i&&(c(e),c(r),c(a),c(p),c(m),c(j),c(A),c(I),c(E),c(B)),Y(Q),Y(O)}}}function ie(u){let e,s;return e=new we({props:{"data-testid":"worker-row",$$slots:{default:[ye]},$$scope:{ctx:u}}}),{c(){K(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){S(e,t,l),s=!0},p(t,l){const r={};l&71&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){s||(H(e.$$.fragment,t),s=!0)},o(t){V(e.$$.fragment,t),s=!1},d(t){Y(e,t)}}}function Qe(u){var f;let e,s,t=ae((f=u[0])==null?void 0:f.pollers),l=[];for(let n=0;nV(l[n],1,1,()=>{l[n]=null});let a=null;return t.length||(a=ce()),{c(){for(let n=0;n{a=null}),se()):(a=ce(),a.c(),H(a,1),a.m(e.parentNode,e))}},i(n){if(!s){for(let o=0;os(1,t=a)),ee(u,Te,a=>s(2,l=a));let{workers:r}=e;return u.$$set=a=>{"workers"in a&&s(0,r=a.workers)},[r,t,l]}class je extends fe{constructor(e){super(),me(this,e,He,Ce,ue,{workers:0})}}export{oe as P,je as W}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-counts.BAGoaW94.js b/ui/assets/local/_app/immutable/chunks/workflow-counts.Ul38aWsQ.js similarity index 83% rename from ui/assets/local/_app/immutable/chunks/workflow-counts.BAGoaW94.js rename to ui/assets/local/_app/immutable/chunks/workflow-counts.Ul38aWsQ.js index 5644d1db4b..c16382c005 100644 --- a/ui/assets/local/_app/immutable/chunks/workflow-counts.BAGoaW94.js +++ b/ui/assets/local/_app/immutable/chunks/workflow-counts.Ul38aWsQ.js @@ -1 +1 @@ -import{v as e}from"./scheduler.1T9hOnFr.js";import{r as s,a as u}from"./route-for-api.FVhOJtE0.js";const p=async(r,o,t=fetch)=>{let n=0;try{const a=s("workflows.count",{namespace:r}),c=await u(a,{params:o?{query:o}:{},onError:e,handleError:e,request:t});n=parseInt((c==null?void 0:c.count)||"0")}catch{}return{count:n}},l=async({namespace:r,query:o})=>{const t="GROUP BY ExecutionStatus",n=s("workflows.count",{namespace:r}),{count:a,groups:c}=await u(n,{params:{query:o?`${o} ${t}`:`${t}`},notifyOnError:!1});return{count:a??"0",groups:c}},m=async({namespace:r})=>{const o='TemporalNamespaceDivision="TemporalScheduler" AND ExecutionStatus="Running"',t=s("workflows.count",{namespace:r}),{count:n}=await u(t,{params:{query:o},notifyOnError:!1});return n??"0"};export{l as a,m as b,p as f}; +import{v as e}from"./scheduler.pPC3woXQ.js";import{r as s,a as u}from"./route-for-api.hWBHnwul.js";const p=async(r,o,t=fetch)=>{let n=0;try{const a=s("workflows.count",{namespace:r}),c=await u(a,{params:o?{query:o}:{},onError:e,handleError:e,request:t});n=parseInt((c==null?void 0:c.count)||"0")}catch{}return{count:n}},l=async({namespace:r,query:o})=>{const t="GROUP BY ExecutionStatus",n=s("workflows.count",{namespace:r}),{count:a,groups:c}=await u(n,{params:{query:o?`${o} ${t}`:`${t}`},notifyOnError:!1});return{count:a??"0",groups:c}},m=async({namespace:r})=>{const o='TemporalNamespaceDivision="TemporalScheduler" AND ExecutionStatus="Running"',t=s("workflows.count",{namespace:r}),{count:n}=await u(t,{params:{query:o},notifyOnError:!1});return n??"0"};export{l as a,m as b,p as f}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-create-disabled.jIWkdC6s.js b/ui/assets/local/_app/immutable/chunks/workflow-create-disabled.jIWkdC6s.js deleted file mode 100644 index 7cf7d1167e..0000000000 --- a/ui/assets/local/_app/immutable/chunks/workflow-create-disabled.jIWkdC6s.js +++ /dev/null @@ -1 +0,0 @@ -import{D as a}from"./scheduler.1T9hOnFr.js";import{c as o}from"./core-user.hs5XQE51.js";const n=(e,r)=>{const s=o(),t=a(s).namespaceWriteDisabled(r??e.params.namespace);return e.data.settings.startWorkflowDisabled?!0:t};export{n as w}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-create-disabled.mxs571dE.js b/ui/assets/local/_app/immutable/chunks/workflow-create-disabled.mxs571dE.js new file mode 100644 index 0000000000..978f2e3e73 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/workflow-create-disabled.mxs571dE.js @@ -0,0 +1 @@ +import{D as a}from"./scheduler.pPC3woXQ.js";import{c as o}from"./core-user.pR4796gV.js";const n=(e,r)=>{const s=o(),t=a(s).namespaceWriteDisabled(r??e.params.namespace);return e.data.settings.startWorkflowDisabled?!0:t};export{n as w}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-json-navigator.nl8ecYmN.js b/ui/assets/local/_app/immutable/chunks/workflow-json-navigator.3IieKe3p.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/workflow-json-navigator.nl8ecYmN.js rename to ui/assets/local/_app/immutable/chunks/workflow-json-navigator.3IieKe3p.js index bff6691db6..69c4e2cc02 100644 --- a/ui/assets/local/_app/immutable/chunks/workflow-json-navigator.nl8ecYmN.js +++ b/ui/assets/local/_app/immutable/chunks/workflow-json-navigator.3IieKe3p.js @@ -1 +1 @@ -import{s as ne,z as oe,h as D,t as le,b as z,j as H,k as O,l as ae,f as E,d as B,m,C as _e,I as K,F as be,i as J,n as p,X as te,p as M,q as re,ag as ue,H as Ne,E as ge,A as he,M as Te,a as Se,x as Q,T as Ve,u as Oe,g as Ue,e as je,c as We,v as Pe}from"./scheduler.1T9hOnFr.js";import{S as Ae,i as De,c as Y,a as Z,m as $,t as W,b as X,d as x,f as Xe,g as ie,e as fe}from"./index.cVovwi_s.js";import{C as He}from"./code-block.S0zkvBiB.js";import{g as Ce}from"./spread.rEx3vLA9.js";import{L as ve}from"./label.ujgKMPb9.js";import{o as ke}from"./omit.d6LgPome.js";import{t as F}from"./translate.HrioCK44.js";import{f as se}from"./index.5wZ4nYFD.js";import{d as Le}from"./events.aXJDTsuJ.js";import{s as ye}from"./parse-with-big-int.e3oI4SEy.js";import{P as Re}from"./payload-decoder.bHDO67Bo.js";function ze(t){let n,s,e,l,a,d,c,g,y=(t[0]??"")+"",T,N,u,w,R,I,P,k,V,S,C,_,q,f,A,h,v,L,ee,o=[{id:w=t[6]+"-range"},{name:"range"},{type:"range"},{class:"h-0 w-full cursor-pointer appearance-none rounded border-y border-primary"},{min:t[3]},{max:t[4]},{step:t[5]},ke(t[14],"class")],b={};for(let r=0;r{if(Number.isNaN(f.currentTarget.valueAsNumber)){s(0,w=y);return}s(9,R=f.currentTarget.valueAsNumber>=y&&f.currentTarget.valueAsNumber<=T)},k=({value:f,min:A,max:h})=>(f-A)*100/(h-A),V=({outputElement:f,outputXPos:A})=>{var h;const v=(h=f==null?void 0:f.clientWidth)!==null&&h!==void 0?h:15;return Math.floor(A*v/100)},S=()=>{s(8,e=k({value:w,min:y,max:T})),s(10,l=V({outputElement:I,outputXPos:e}))};function C(f){Te[f?"unshift":"push"](()=>{I=f,s(7,I)})}function _(){w=ue(this.value),s(0,w)}function q(){w=ue(this.value),s(0,w)}return t.$$set=f=>{s(13,n=oe(oe({},n),he(f))),s(14,d=ge(n,a)),"label"in f&&s(1,c=f.label),"labelHidden"in f&&s(2,g=f.labelHidden),"min"in f&&s(3,y=f.min),"max"in f&&s(4,T=f.max),"step"in f&&s(5,N=f.step),"id"in f&&s(6,u=f.id),"value"in f&&s(0,w=f.value)},t.$$.update=()=>{t.$$.dirty&25&&s(8,e=k({value:w,min:y,max:T})),t.$$.dirty&409&&(w?(s(8,e=k({value:w,min:y,max:T})),s(10,l=V({outputElement:I,outputXPos:e}))):(s(8,e=0),s(10,l=0))),t.$$.dirty&384&&s(10,l=V({outputElement:I,outputXPos:e}))},n=he(n),[w,c,g,y,T,N,u,I,e,R,l,P,S,n,d,C,_,q]}class Ke extends Ae{constructor(n){super(),De(this,n,Be,ze,ne,{label:1,labelHidden:2,min:3,max:4,step:5,id:6,value:0})}}const Me=t=>({}),we=t=>({});function qe(t){let n=t[1],s,e,l=Ee(t);return{c(){l.c(),s=Q()},l(a){l.l(a),s=Q()},m(a,d){l.m(a,d),J(a,s,d),e=!0},p(a,d){d&2&&ne(n,n=a[1])?(ie(),X(l,1,1,Pe),fe(),l=Ee(a),l.c(),W(l,1),l.m(s.parentNode,s)):l.p(a,d)},i(a){e||(W(l),e=!0)},o(a){X(l),e=!1},d(a){a&&E(s),l.d(a)}}}function Fe(t){let n=[t[1],t[2]],s,e,l=Ie(t);return{c(){l.c(),s=Q()},l(a){l.l(a),s=Q()},m(a,d){l.m(a,d),J(a,s,d),e=!0},p(a,d){d&6&&ne(n,n=[a[1],a[2]])?(ie(),X(l,1,1,Pe),fe(),l=Ie(a),l.c(),W(l,1),l.m(s.parentNode,s)):l.p(a,d)},i(a){e||(W(l),e=!0)},o(a){X(l),e=!1},d(a){a&&E(s),l.d(a)}}}function Ee(t){let n,s;return n=new He({props:{content:ye(se(t[0][t[1]-1]),void 0,2),testId:"event-history-json",copyIconTitle:F("common.copy-icon-title"),copySuccessIconTitle:F("common.copy-success-icon-title")}}),{c(){Y(n.$$.fragment)},l(e){Z(n.$$.fragment,e)},m(e,l){$(n,e,l),s=!0},p(e,l){const a={};l&3&&(a.content=ye(se(e[0][e[1]-1]),void 0,2)),n.$set(a)},i(e){s||(W(n.$$.fragment,e),s=!0)},o(e){X(n.$$.fragment,e),s=!1},d(e){x(n,e)}}}function Ge(t){let n,s;return n=new He({props:{content:t[9],testId:"event-history-json",copyIconTitle:F("common.copy-icon-title"),copySuccessIconTitle:F("common.copy-success-icon-title")}}),{c(){Y(n.$$.fragment)},l(e){Z(n.$$.fragment,e)},m(e,l){$(n,e,l),s=!0},p(e,l){const a={};l&512&&(a.content=e[9]),n.$set(a)},i(e){s||(W(n.$$.fragment,e),s=!0)},o(e){X(n.$$.fragment,e),s=!1},d(e){x(n,e)}}}function Ie(t){let n,s;return n=new Re({props:{value:se(t[0][t[1]-1]),$$slots:{default:[Ge,({decodedValue:e})=>({9:e}),({decodedValue:e})=>e?512:0]},$$scope:{ctx:t}}}),{c(){Y(n.$$.fragment)},l(e){Z(n.$$.fragment,e)},m(e,l){$(n,e,l),s=!0},p(e,l){const a={};l&3&&(a.value=se(e[0][e[1]-1])),l&768&&(a.$$scope={dirty:l,ctx:e}),n.$set(a)},i(e){s||(W(n.$$.fragment,e),s=!0)},o(e){X(n.$$.fragment,e),s=!1},d(e){x(n,e)}}}function Je(t){let n,s,e,l,a,d,c,g,y,T,N,u,w,R,I,P,k,V,S,C,_;function q(o){t[5](o)}let f={label:F("common.event"),labelHidden:!0,id:"range-input-event-history",min:1,max:t[0].length};t[1]!==void 0&&(f.value=t[1]),e=new Ke({props:f}),Te.push(()=>Xe(e,"value",q));const A=t[4].decode,h=Se(A,t,t[8],we),v=[Fe,qe],L=[];function ee(o,b){return o[2]?0:1}return P=ee(t),k=L[P]=v[P](t),{c(){n=D("div"),s=D("div"),Y(e.$$.fragment),a=z(),d=D("div"),c=D("button"),g=D("span"),T=z(),N=D("button"),u=D("span"),R=z(),h&&h.c(),I=z(),k.c(),V=Q(),this.h()},l(o){n=H(o,"DIV",{class:!0});var b=O(n);s=H(b,"DIV",{class:!0});var r=O(s);Z(e.$$.fragment,r),a=B(r),d=H(r,"DIV",{class:!0});var i=O(d);c=H(i,"BUTTON",{class:!0,"aria-label":!0});var j=O(c);g=H(j,"SPAN",{class:!0}),O(g).forEach(E),j.forEach(E),T=B(i),N=H(i,"BUTTON",{class:!0,"aria-label":!0});var U=O(N);u=H(U,"SPAN",{class:!0}),O(u).forEach(E),U.forEach(E),i.forEach(E),r.forEach(E),R=B(b),h&&h.l(b),b.forEach(E),I=B(o),k.l(o),V=Q(),this.h()},h(){m(g,"class","arrow arrow-left svelte-1ryp6u1"),K(g,"arrow-left-disabled",t[1]===1),m(c,"class","caret svelte-1ryp6u1"),c.disabled=y=t[1]===1,m(c,"aria-label",F("common.previous")),m(u,"class","arrow arrow-right svelte-1ryp6u1"),K(u,"arrow-right-disabled",t[1]===t[0].length),m(N,"class","caret svelte-1ryp6u1"),N.disabled=w=t[1]===t[0].length,m(N,"aria-label",F("common.next")),m(d,"class","flex items-center justify-center gap-3"),m(s,"class","bg-gray-100 flex w-full gap-4"),m(n,"class","flex gap-4 max-sm:flex-col")},m(o,b){J(o,n,b),p(n,s),$(e,s,null),p(s,a),p(s,d),p(d,c),p(c,g),p(d,T),p(d,N),p(N,u),p(n,R),h&&h.m(n,null),J(o,I,b),L[P].m(o,b),J(o,V,b),S=!0,C||(_=[M(window,"keydown",t[3]),M(c,"click",t[6]),M(N,"click",t[7])],C=!0)},p(o,[b]){const r={};b&1&&(r.max=o[0].length),!l&&b&2&&(l=!0,r.value=o[1],Ve(()=>l=!1)),e.$set(r),(!S||b&2)&&K(g,"arrow-left-disabled",o[1]===1),(!S||b&2&&y!==(y=o[1]===1))&&(c.disabled=y),(!S||b&3)&&K(u,"arrow-right-disabled",o[1]===o[0].length),(!S||b&3&&w!==(w=o[1]===o[0].length))&&(N.disabled=w),h&&h.p&&(!S||b&256)&&Oe(h,A,o,o[8],S?je(A,o[8],b,Me):Ue(o[8]),we);let i=P;P=ee(o),P===i?L[P].p(o,b):(ie(),X(L[i],1,1,()=>{L[i]=null}),fe(),k=L[P],k?k.p(o,b):(k=L[P]=v[P](o),k.c()),W(k,1),k.m(V.parentNode,V))},i(o){S||(W(e.$$.fragment,o),W(h,o),W(k),S=!0)},o(o){X(e.$$.fragment,o),X(h,o),X(k),S=!1},d(o){o&&(E(n),E(I),E(V)),x(e),h&&h.d(o),L[P].d(o),C=!1,Ne(_)}}}function Qe(t,n,s){let e;We(t,Le,u=>s(2,e=u));let{$$slots:l={},$$scope:a}=n,{events:d=[]}=n,c=1;function g(u){switch(u.code){case"ArrowRight":case"KeyL":u.preventDefault(),u.stopPropagation(),c1&&s(1,c-=1);break}}function y(u){c=u,s(1,c)}const T=()=>{s(1,c-=1)},N=()=>{s(1,c+=1)};return t.$$set=u=>{"events"in u&&s(0,d=u.events),"$$scope"in u&&s(8,a=u.$$scope)},[d,c,e,g,l,y,T,N,a]}class ot extends Ae{constructor(n){super(),De(this,n,Qe,Je,ne,{events:0})}}export{ot as W}; +import{s as ne,z as oe,h as D,t as le,b as z,j as H,k as O,l as ae,f as E,d as B,m,C as _e,I as K,F as be,i as J,n as p,X as te,p as M,q as re,ag as ue,H as Ne,E as ge,A as he,M as Te,a as Se,x as Q,T as Ve,u as Oe,g as Ue,e as je,c as We,v as Pe}from"./scheduler.pPC3woXQ.js";import{S as Ae,i as De,c as Y,a as Z,m as $,t as W,b as X,d as x,f as Xe,g as ie,e as fe}from"./index.Z3Qqxacm.js";import{C as He}from"./code-block.Xpz7isZb.js";import{g as Ce}from"./spread.rEx3vLA9.js";import{L as ve}from"./label.zXYhHpIA.js";import{o as ke}from"./omit.d6LgPome.js";import{t as F}from"./translate.HrioCK44.js";import{f as se}from"./index.xcFFIXD-.js";import{d as Le}from"./events.iAm6Xqt4.js";import{s as ye}from"./parse-with-big-int.e3oI4SEy.js";import{P as Re}from"./payload-decoder.MNO5fgLK.js";function ze(t){let n,s,e,l,a,d,c,g,y=(t[0]??"")+"",T,N,u,w,R,I,P,k,V,S,C,_,q,f,A,h,v,L,ee,o=[{id:w=t[6]+"-range"},{name:"range"},{type:"range"},{class:"h-0 w-full cursor-pointer appearance-none rounded border-y border-primary"},{min:t[3]},{max:t[4]},{step:t[5]},ke(t[14],"class")],b={};for(let r=0;r{if(Number.isNaN(f.currentTarget.valueAsNumber)){s(0,w=y);return}s(9,R=f.currentTarget.valueAsNumber>=y&&f.currentTarget.valueAsNumber<=T)},k=({value:f,min:A,max:h})=>(f-A)*100/(h-A),V=({outputElement:f,outputXPos:A})=>{var h;const v=(h=f==null?void 0:f.clientWidth)!==null&&h!==void 0?h:15;return Math.floor(A*v/100)},S=()=>{s(8,e=k({value:w,min:y,max:T})),s(10,l=V({outputElement:I,outputXPos:e}))};function C(f){Te[f?"unshift":"push"](()=>{I=f,s(7,I)})}function _(){w=ue(this.value),s(0,w)}function q(){w=ue(this.value),s(0,w)}return t.$$set=f=>{s(13,n=oe(oe({},n),he(f))),s(14,d=ge(n,a)),"label"in f&&s(1,c=f.label),"labelHidden"in f&&s(2,g=f.labelHidden),"min"in f&&s(3,y=f.min),"max"in f&&s(4,T=f.max),"step"in f&&s(5,N=f.step),"id"in f&&s(6,u=f.id),"value"in f&&s(0,w=f.value)},t.$$.update=()=>{t.$$.dirty&25&&s(8,e=k({value:w,min:y,max:T})),t.$$.dirty&409&&(w?(s(8,e=k({value:w,min:y,max:T})),s(10,l=V({outputElement:I,outputXPos:e}))):(s(8,e=0),s(10,l=0))),t.$$.dirty&384&&s(10,l=V({outputElement:I,outputXPos:e}))},n=he(n),[w,c,g,y,T,N,u,I,e,R,l,P,S,n,d,C,_,q]}class Ke extends Ae{constructor(n){super(),De(this,n,Be,ze,ne,{label:1,labelHidden:2,min:3,max:4,step:5,id:6,value:0})}}const Me=t=>({}),we=t=>({});function qe(t){let n=t[1],s,e,l=Ee(t);return{c(){l.c(),s=Q()},l(a){l.l(a),s=Q()},m(a,d){l.m(a,d),J(a,s,d),e=!0},p(a,d){d&2&&ne(n,n=a[1])?(ie(),X(l,1,1,Pe),fe(),l=Ee(a),l.c(),W(l,1),l.m(s.parentNode,s)):l.p(a,d)},i(a){e||(W(l),e=!0)},o(a){X(l),e=!1},d(a){a&&E(s),l.d(a)}}}function Fe(t){let n=[t[1],t[2]],s,e,l=Ie(t);return{c(){l.c(),s=Q()},l(a){l.l(a),s=Q()},m(a,d){l.m(a,d),J(a,s,d),e=!0},p(a,d){d&6&&ne(n,n=[a[1],a[2]])?(ie(),X(l,1,1,Pe),fe(),l=Ie(a),l.c(),W(l,1),l.m(s.parentNode,s)):l.p(a,d)},i(a){e||(W(l),e=!0)},o(a){X(l),e=!1},d(a){a&&E(s),l.d(a)}}}function Ee(t){let n,s;return n=new He({props:{content:ye(se(t[0][t[1]-1]),void 0,2),testId:"event-history-json",copyIconTitle:F("common.copy-icon-title"),copySuccessIconTitle:F("common.copy-success-icon-title")}}),{c(){Y(n.$$.fragment)},l(e){Z(n.$$.fragment,e)},m(e,l){$(n,e,l),s=!0},p(e,l){const a={};l&3&&(a.content=ye(se(e[0][e[1]-1]),void 0,2)),n.$set(a)},i(e){s||(W(n.$$.fragment,e),s=!0)},o(e){X(n.$$.fragment,e),s=!1},d(e){x(n,e)}}}function Ge(t){let n,s;return n=new He({props:{content:t[9],testId:"event-history-json",copyIconTitle:F("common.copy-icon-title"),copySuccessIconTitle:F("common.copy-success-icon-title")}}),{c(){Y(n.$$.fragment)},l(e){Z(n.$$.fragment,e)},m(e,l){$(n,e,l),s=!0},p(e,l){const a={};l&512&&(a.content=e[9]),n.$set(a)},i(e){s||(W(n.$$.fragment,e),s=!0)},o(e){X(n.$$.fragment,e),s=!1},d(e){x(n,e)}}}function Ie(t){let n,s;return n=new Re({props:{value:se(t[0][t[1]-1]),$$slots:{default:[Ge,({decodedValue:e})=>({9:e}),({decodedValue:e})=>e?512:0]},$$scope:{ctx:t}}}),{c(){Y(n.$$.fragment)},l(e){Z(n.$$.fragment,e)},m(e,l){$(n,e,l),s=!0},p(e,l){const a={};l&3&&(a.value=se(e[0][e[1]-1])),l&768&&(a.$$scope={dirty:l,ctx:e}),n.$set(a)},i(e){s||(W(n.$$.fragment,e),s=!0)},o(e){X(n.$$.fragment,e),s=!1},d(e){x(n,e)}}}function Je(t){let n,s,e,l,a,d,c,g,y,T,N,u,w,R,I,P,k,V,S,C,_;function q(o){t[5](o)}let f={label:F("common.event"),labelHidden:!0,id:"range-input-event-history",min:1,max:t[0].length};t[1]!==void 0&&(f.value=t[1]),e=new Ke({props:f}),Te.push(()=>Xe(e,"value",q));const A=t[4].decode,h=Se(A,t,t[8],we),v=[Fe,qe],L=[];function ee(o,b){return o[2]?0:1}return P=ee(t),k=L[P]=v[P](t),{c(){n=D("div"),s=D("div"),Y(e.$$.fragment),a=z(),d=D("div"),c=D("button"),g=D("span"),T=z(),N=D("button"),u=D("span"),R=z(),h&&h.c(),I=z(),k.c(),V=Q(),this.h()},l(o){n=H(o,"DIV",{class:!0});var b=O(n);s=H(b,"DIV",{class:!0});var r=O(s);Z(e.$$.fragment,r),a=B(r),d=H(r,"DIV",{class:!0});var i=O(d);c=H(i,"BUTTON",{class:!0,"aria-label":!0});var j=O(c);g=H(j,"SPAN",{class:!0}),O(g).forEach(E),j.forEach(E),T=B(i),N=H(i,"BUTTON",{class:!0,"aria-label":!0});var U=O(N);u=H(U,"SPAN",{class:!0}),O(u).forEach(E),U.forEach(E),i.forEach(E),r.forEach(E),R=B(b),h&&h.l(b),b.forEach(E),I=B(o),k.l(o),V=Q(),this.h()},h(){m(g,"class","arrow arrow-left svelte-1ryp6u1"),K(g,"arrow-left-disabled",t[1]===1),m(c,"class","caret svelte-1ryp6u1"),c.disabled=y=t[1]===1,m(c,"aria-label",F("common.previous")),m(u,"class","arrow arrow-right svelte-1ryp6u1"),K(u,"arrow-right-disabled",t[1]===t[0].length),m(N,"class","caret svelte-1ryp6u1"),N.disabled=w=t[1]===t[0].length,m(N,"aria-label",F("common.next")),m(d,"class","flex items-center justify-center gap-3"),m(s,"class","bg-gray-100 flex w-full gap-4"),m(n,"class","flex gap-4 max-sm:flex-col")},m(o,b){J(o,n,b),p(n,s),$(e,s,null),p(s,a),p(s,d),p(d,c),p(c,g),p(d,T),p(d,N),p(N,u),p(n,R),h&&h.m(n,null),J(o,I,b),L[P].m(o,b),J(o,V,b),S=!0,C||(_=[M(window,"keydown",t[3]),M(c,"click",t[6]),M(N,"click",t[7])],C=!0)},p(o,[b]){const r={};b&1&&(r.max=o[0].length),!l&&b&2&&(l=!0,r.value=o[1],Ve(()=>l=!1)),e.$set(r),(!S||b&2)&&K(g,"arrow-left-disabled",o[1]===1),(!S||b&2&&y!==(y=o[1]===1))&&(c.disabled=y),(!S||b&3)&&K(u,"arrow-right-disabled",o[1]===o[0].length),(!S||b&3&&w!==(w=o[1]===o[0].length))&&(N.disabled=w),h&&h.p&&(!S||b&256)&&Oe(h,A,o,o[8],S?je(A,o[8],b,Me):Ue(o[8]),we);let i=P;P=ee(o),P===i?L[P].p(o,b):(ie(),X(L[i],1,1,()=>{L[i]=null}),fe(),k=L[P],k?k.p(o,b):(k=L[P]=v[P](o),k.c()),W(k,1),k.m(V.parentNode,V))},i(o){S||(W(e.$$.fragment,o),W(h,o),W(k),S=!0)},o(o){X(e.$$.fragment,o),X(h,o),X(k),S=!1},d(o){o&&(E(n),E(I),E(V)),x(e),h&&h.d(o),L[P].d(o),C=!1,Ne(_)}}}function Qe(t,n,s){let e;We(t,Le,u=>s(2,e=u));let{$$slots:l={},$$scope:a}=n,{events:d=[]}=n,c=1;function g(u){switch(u.code){case"ArrowRight":case"KeyL":u.preventDefault(),u.stopPropagation(),c1&&s(1,c-=1);break}}function y(u){c=u,s(1,c)}const T=()=>{s(1,c-=1)},N=()=>{s(1,c+=1)};return t.$$set=u=>{"events"in u&&s(0,d=u.events),"$$scope"in u&&s(8,a=u.$$scope)},[d,c,e,g,l,y,T,N,a]}class ot extends Ae{constructor(n){super(),De(this,n,Qe,Je,ne,{events:0})}}export{ot as W}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-padded-layout.lsuSOuBk.js b/ui/assets/local/_app/immutable/chunks/workflow-padded-layout.KtTTqjXd.js similarity index 86% rename from ui/assets/local/_app/immutable/chunks/workflow-padded-layout.lsuSOuBk.js rename to ui/assets/local/_app/immutable/chunks/workflow-padded-layout.KtTTqjXd.js index 543a1563d5..3b04cc314c 100644 --- a/ui/assets/local/_app/immutable/chunks/workflow-padded-layout.lsuSOuBk.js +++ b/ui/assets/local/_app/immutable/chunks/workflow-padded-layout.KtTTqjXd.js @@ -1 +1 @@ -import{s as p,a as c,h as $,j as g,k as h,f as i,m as b,i as k,u as _,g as m,e as d}from"./scheduler.1T9hOnFr.js";import{S as v,i as w,c as y,a as L,m as S,t as r,b as f,d as W}from"./index.cVovwi_s.js";import{L as j}from"./labs-mode-guard.Ii8p6Le4.js";const q=o=>({}),u=o=>({slot:"fallback"});function C(o){let s,l;const e=o[0].default,t=c(e,o,o[1],null);return{c(){s=$("div"),t&&t.c(),this.h()},l(a){s=g(a,"DIV",{class:!0});var n=h(s);t&&t.l(n),n.forEach(i),this.h()},h(){b(s,"class","h-full px-8 pb-16")},m(a,n){k(a,s,n),t&&t.m(s,null),l=!0},p(a,n){t&&t.p&&(!l||n&2)&&_(t,e,a,a[1],l?d(e,a[1],n,null):m(a[1]),null)},i(a){l||(r(t,a),l=!0)},o(a){f(t,a),l=!1},d(a){a&&i(s),t&&t.d(a)}}}function D(o){let s;const l=o[0].default,e=c(l,o,o[1],u);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,a){e&&e.m(t,a),s=!0},p(t,a){e&&e.p&&(!s||a&2)&&_(e,l,t,t[1],s?d(l,t[1],a,q):m(t[1]),u)},i(t){s||(r(e,t),s=!0)},o(t){f(e,t),s=!1},d(t){e&&e.d(t)}}}function E(o){let s,l;return s=new j({props:{$$slots:{fallback:[D],default:[C]},$$scope:{ctx:o}}}),{c(){y(s.$$.fragment)},l(e){L(s.$$.fragment,e)},m(e,t){S(s,e,t),l=!0},p(e,[t]){const a={};t&2&&(a.$$scope={dirty:t,ctx:e}),s.$set(a)},i(e){l||(r(s.$$.fragment,e),l=!0)},o(e){f(s.$$.fragment,e),l=!1},d(e){W(s,e)}}}function I(o,s,l){let{$$slots:e={},$$scope:t}=s;return o.$$set=a=>{"$$scope"in a&&l(1,t=a.$$scope)},[e,t]}class B extends v{constructor(s){super(),w(this,s,I,E,p,{})}}export{B as W}; +import{s as p,a as c,h as $,j as g,k as h,f as i,m as b,i as k,u as _,g as m,e as d}from"./scheduler.pPC3woXQ.js";import{S as v,i as w,c as y,a as L,m as S,t as r,b as f,d as W}from"./index.Z3Qqxacm.js";import{L as j}from"./labs-mode-guard.b5vdKAOM.js";const q=o=>({}),u=o=>({slot:"fallback"});function C(o){let s,l;const e=o[0].default,t=c(e,o,o[1],null);return{c(){s=$("div"),t&&t.c(),this.h()},l(a){s=g(a,"DIV",{class:!0});var n=h(s);t&&t.l(n),n.forEach(i),this.h()},h(){b(s,"class","h-full px-8 pb-16")},m(a,n){k(a,s,n),t&&t.m(s,null),l=!0},p(a,n){t&&t.p&&(!l||n&2)&&_(t,e,a,a[1],l?d(e,a[1],n,null):m(a[1]),null)},i(a){l||(r(t,a),l=!0)},o(a){f(t,a),l=!1},d(a){a&&i(s),t&&t.d(a)}}}function D(o){let s;const l=o[0].default,e=c(l,o,o[1],u);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,a){e&&e.m(t,a),s=!0},p(t,a){e&&e.p&&(!s||a&2)&&_(e,l,t,t[1],s?d(l,t[1],a,q):m(t[1]),u)},i(t){s||(r(e,t),s=!0)},o(t){f(e,t),s=!1},d(t){e&&e.d(t)}}}function E(o){let s,l;return s=new j({props:{$$slots:{fallback:[D],default:[C]},$$scope:{ctx:o}}}),{c(){y(s.$$.fragment)},l(e){L(s.$$.fragment,e)},m(e,t){S(s,e,t),l=!0},p(e,[t]){const a={};t&2&&(a.$$scope={dirty:t,ctx:e}),s.$set(a)},i(e){l||(r(s.$$.fragment,e),l=!0)},o(e){f(s.$$.fragment,e),l=!1},d(e){W(s,e)}}}function I(o,s,l){let{$$slots:e={},$$scope:t}=s;return o.$$set=a=>{"$$scope"in a&&l(1,t=a.$$scope)},[e,t]}class B extends v{constructor(s){super(),w(this,s,I,E,p,{})}}export{B as W}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-run.kUHgnSkK.js b/ui/assets/local/_app/immutable/chunks/workflow-run.UJKlq2cH.js similarity index 54% rename from ui/assets/local/_app/immutable/chunks/workflow-run.kUHgnSkK.js rename to ui/assets/local/_app/immutable/chunks/workflow-run.UJKlq2cH.js index a595b6d89b..07a7799a2e 100644 --- a/ui/assets/local/_app/immutable/chunks/workflow-run.kUHgnSkK.js +++ b/ui/assets/local/_app/immutable/chunks/workflow-run.UJKlq2cH.js @@ -1 +1 @@ -import{w as o}from"./entry.1BQh90wu.js";import{p as r}from"./persist-store.yDfC1oT_.js";const t=o(0),e={workflow:null,workers:{pollers:[],taskQueueStatus:null}},l=o(e),i=r("workflowSummaryView",!0,!0),a=r("workflowTimelineView",!0,!0);export{i as a,a as b,e as i,t as r,l as w}; +import{w as o}from"./entry.6mxJxwSM.js";import{p as r}from"./persist-store.cEgNkZhn.js";const t=o(0),e={workflow:null,workers:{pollers:[],taskQueueStatus:null}},l=o(e),i=r("workflowSummaryView",!0,!0),a=r("workflowTimelineView",!0,!0);export{i as a,a as b,e as i,t as r,l as w}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-status.lPRlOa66.js b/ui/assets/local/_app/immutable/chunks/workflow-status.F3-KzFL4.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/workflow-status.lPRlOa66.js rename to ui/assets/local/_app/immutable/chunks/workflow-status.F3-KzFL4.js index 84ee88cfe3..cbb4f73927 100644 --- a/ui/assets/local/_app/immutable/chunks/workflow-status.lPRlOa66.js +++ b/ui/assets/local/_app/immutable/chunks/workflow-status.F3-KzFL4.js @@ -1 +1 @@ -import{s as Y,h as P,b as I,t as N,j as T,k as E,d as O,l as A,f as k,m as v,I as y,i as F,n as S,q as W,z as U,A as j,W as z,Z as x,v as R}from"./scheduler.1T9hOnFr.js";import{S as $,i as ee,g as D,b as q,e as M,t as _,c as J,a as K,m as Q,d as X,h as te}from"./index.cVovwi_s.js";import{f as ne}from"./index.PXnAuqG7.js";import{c as ae}from"./index.polp_dyw.js";import{S as ie}from"./icon.w8eknFMq.js";import{t as d}from"./translate.HrioCK44.js";import{H as le}from"./heart-beat-indicator.MHmdZ7Da.js";import{t as V}from"./tw-merge.NbP7EmZe.js";function se(l){let e=l[2].toLocaleString()+"",n;return{c(){n=N(e)},l(t){n=A(t,e)},m(t,a){F(t,n,a)},p(t,a){a&4&&e!==(e=t[2].toLocaleString()+"")&&W(n,e)},i:R,o:R,d(t){t&&k(n)}}}function fe(l){let e,n;return e=new ie({props:{class:"h-4 w-4 animate-spin"}}),{c(){J(e.$$.fragment)},l(t){K(e.$$.fragment,t)},m(t,a){Q(e,t,a),n=!0},p:R,i(t){n||(_(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){X(e,t)}}}function Z(l){let e,n;return e=new le({props:{delay:l[0]}}),{c(){J(e.$$.fragment)},l(t){K(e.$$.fragment,t)},m(t,a){Q(e,t,a),n=!0},p(t,a){const s={};a&1&&(s.delay=t[0]),e.$set(s)},i(t){n||(_(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){X(e,t)}}}function B(l){let e,n,t,a,s=l[4]>0&&G();return{c(){e=P("span"),s&&s.c(),n=N(l[4]),this.h()},l(f){e=T(f,"SPAN",{class:!0});var m=E(e);s&&s.l(m),n=A(m,l[4]),m.forEach(k),this.h()},h(){v(e,"class",t=z(V("font-base surface-primary rounded-r px-1 py-0.5 text-xs",l[5]&&"text-lg"))+" svelte-1qqes14")},m(f,m){F(f,e,m),s&&s.m(e,null),S(e,n)},p(f,m){f[4]>0?s||(s=G(),s.c(),s.m(e,n)):s&&(s.d(1),s=null),m&16&&W(n,f[4]),m&32&&t!==(t=z(V("font-base surface-primary rounded-r px-1 py-0.5 text-xs",f[5]&&"text-lg"))+" svelte-1qqes14")&&v(e,"class",t)},i(f){f&&(a||x(()=>{a=te(e,ne,{}),a.start()}))},o:R,d(f){f&&k(e),s&&s.d()}}}function G(l){let e;return{c(){e=N("+")},l(n){e=A(n,"+")},m(n,t){F(n,e,t)},d(n){n&&k(e)}}}function oe(l){let e,n,t,a,s,f=l[6][l[1]]+"",m,h,w,C,c,b;const H=[fe,se],p=[];function L(i,u){return i[3]?0:i[2]>=0?1:-1}~(t=L(l))&&(a=p[t]=H[t](l));let o=l[1]==="Running"&&Z(l),r=l[4]&&B(l);return{c(){e=P("div"),n=P("span"),a&&a.c(),s=I(),m=N(f),h=I(),o&&o.c(),C=I(),r&&r.c(),this.h()},l(i){e=T(i,"DIV",{class:!0,"data-testid":!0});var u=E(e);n=T(u,"SPAN",{class:!0});var g=E(n);a&&a.l(g),s=O(g),m=A(g,f),h=O(g),o&&o.l(g),g.forEach(k),C=O(u),r&&r.l(u),u.forEach(k),this.h()},h(){v(n,"class",w="flex items-center gap-1 font-medium "+l[7]({status:l[1]})+" svelte-1qqes14"),y(n,"rounded-r-none",l[4]),y(n,"big",l[5]),v(e,"class","relative flex items-center gap-0 text-center text-sm leading-4"),v(e,"data-testid",c=l[8]["test-id"])},m(i,u){F(i,e,u),S(e,n),~t&&p[t].m(n,null),S(n,s),S(n,m),S(n,h),o&&o.m(n,null),S(e,C),r&&r.m(e,null),b=!0},p(i,[u]){let g=t;t=L(i),t===g?~t&&p[t].p(i,u):(a&&(D(),q(p[g],1,1,()=>{p[g]=null}),M()),~t?(a=p[t],a?a.p(i,u):(a=p[t]=H[t](i),a.c()),_(a,1),a.m(n,s)):a=null),(!b||u&2)&&f!==(f=i[6][i[1]]+"")&&W(m,f),i[1]==="Running"?o?(o.p(i,u),u&2&&_(o,1)):(o=Z(i),o.c(),_(o,1),o.m(n,null)):o&&(D(),q(o,1,1,()=>{o=null}),M()),(!b||u&2&&w!==(w="flex items-center gap-1 font-medium "+i[7]({status:i[1]})+" svelte-1qqes14"))&&v(n,"class",w),(!b||u&18)&&y(n,"rounded-r-none",i[4]),(!b||u&34)&&y(n,"big",i[5]),i[4]?r?(r.p(i,u),u&16&&_(r,1)):(r=B(i),r.c(),_(r,1),r.m(e,null)):r&&(r.d(1),r=null),(!b||u&256&&c!==(c=i[8]["test-id"]))&&v(e,"data-testid",c)},i(i){b||(_(a),_(o),_(r),b=!0)},o(i){q(a),q(o),b=!1},d(i){i&&k(e),~t&&p[t].d(),o&&o.d(),r&&r.d()}}}function re(l,e,n){let{delay:t=0}=e,{status:a="Running"}=e,{count:s=void 0}=e,{loading:f=!1}=e,{newCount:m=void 0}=e,{big:h=!1}=e;const w={Running:d("workflows.running"),TimedOut:d("workflows.timed-out"),Completed:d("workflows.completed"),Failed:d("workflows.failed"),ContinuedAsNew:d("workflows.continued-as-new"),Canceled:d("workflows.canceled"),Terminated:d("workflows.terminated"),Paused:d("workflows.paused"),Scheduled:d("events.event-classification.scheduled"),Started:d("events.event-classification.started"),Unspecified:d("events.event-classification.unspecified"),Open:d("events.event-classification.open"),New:d("events.event-classification.new"),Initiated:d("events.event-classification.initiated"),Fired:d("events.event-classification.fired"),CancelRequested:d("events.event-classification.cancelrequested"),Signaled:d("events.event-classification.signaled")},C=ae(["flex items-center rounded-sm px-1 py-0.5 whitespace-nowrap text-black"],{variants:{status:{Running:"bg-blue-300",TimedOut:"bg-orange-200",Completed:"bg-green-200",Failed:"bg-red-200",ContinuedAsNew:"bg-purple-200",Canceled:"bg-slate-100",Terminated:"bg-yellow-200",Paused:"bg-yellow-200",Unspecified:"bg-slate-100",Scheduled:"bg-blue-300",Started:"bg-blue-300",Open:"bg-green-200",New:"bg-blue-300",Initiated:"bg-blue-300",Fired:"bg-pink-200",CancelRequested:"bg-yellow-200",Signaled:"bg-pink-200"}}});return l.$$set=c=>{n(8,e=U(U({},e),j(c))),"delay"in c&&n(0,t=c.delay),"status"in c&&n(1,a=c.status),"count"in c&&n(2,s=c.count),"loading"in c&&n(3,f=c.loading),"newCount"in c&&n(4,m=c.newCount),"big"in c&&n(5,h=c.big)},e=j(e),[t,a,s,f,m,h,w,C,e]}class ve extends ${constructor(e){super(),ee(this,e,re,oe,Y,{delay:0,status:1,count:2,loading:3,newCount:4,big:5})}}export{ve as W}; +import{s as Y,h as P,b as I,t as N,j as T,k as E,d as O,l as A,f as k,m as v,I as y,i as F,n as S,q as W,z as U,A as j,W as z,Z as x,v as R}from"./scheduler.pPC3woXQ.js";import{S as $,i as ee,g as D,b as q,e as M,t as _,c as J,a as K,m as Q,d as X,h as te}from"./index.Z3Qqxacm.js";import{f as ne}from"./index.534V873p.js";import{c as ae}from"./index.polp_dyw.js";import{S as ie}from"./icon.IMxiy1l_.js";import{t as d}from"./translate.HrioCK44.js";import{H as le}from"./heart-beat-indicator.qiiCwRNe.js";import{t as V}from"./tw-merge.NbP7EmZe.js";function se(l){let e=l[2].toLocaleString()+"",n;return{c(){n=N(e)},l(t){n=A(t,e)},m(t,a){F(t,n,a)},p(t,a){a&4&&e!==(e=t[2].toLocaleString()+"")&&W(n,e)},i:R,o:R,d(t){t&&k(n)}}}function fe(l){let e,n;return e=new ie({props:{class:"h-4 w-4 animate-spin"}}),{c(){J(e.$$.fragment)},l(t){K(e.$$.fragment,t)},m(t,a){Q(e,t,a),n=!0},p:R,i(t){n||(_(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){X(e,t)}}}function Z(l){let e,n;return e=new le({props:{delay:l[0]}}),{c(){J(e.$$.fragment)},l(t){K(e.$$.fragment,t)},m(t,a){Q(e,t,a),n=!0},p(t,a){const s={};a&1&&(s.delay=t[0]),e.$set(s)},i(t){n||(_(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){X(e,t)}}}function B(l){let e,n,t,a,s=l[4]>0&&G();return{c(){e=P("span"),s&&s.c(),n=N(l[4]),this.h()},l(f){e=T(f,"SPAN",{class:!0});var m=E(e);s&&s.l(m),n=A(m,l[4]),m.forEach(k),this.h()},h(){v(e,"class",t=z(V("font-base surface-primary rounded-r px-1 py-0.5 text-xs",l[5]&&"text-lg"))+" svelte-1qqes14")},m(f,m){F(f,e,m),s&&s.m(e,null),S(e,n)},p(f,m){f[4]>0?s||(s=G(),s.c(),s.m(e,n)):s&&(s.d(1),s=null),m&16&&W(n,f[4]),m&32&&t!==(t=z(V("font-base surface-primary rounded-r px-1 py-0.5 text-xs",f[5]&&"text-lg"))+" svelte-1qqes14")&&v(e,"class",t)},i(f){f&&(a||x(()=>{a=te(e,ne,{}),a.start()}))},o:R,d(f){f&&k(e),s&&s.d()}}}function G(l){let e;return{c(){e=N("+")},l(n){e=A(n,"+")},m(n,t){F(n,e,t)},d(n){n&&k(e)}}}function oe(l){let e,n,t,a,s,f=l[6][l[1]]+"",m,h,w,C,c,b;const H=[fe,se],p=[];function L(i,u){return i[3]?0:i[2]>=0?1:-1}~(t=L(l))&&(a=p[t]=H[t](l));let o=l[1]==="Running"&&Z(l),r=l[4]&&B(l);return{c(){e=P("div"),n=P("span"),a&&a.c(),s=I(),m=N(f),h=I(),o&&o.c(),C=I(),r&&r.c(),this.h()},l(i){e=T(i,"DIV",{class:!0,"data-testid":!0});var u=E(e);n=T(u,"SPAN",{class:!0});var g=E(n);a&&a.l(g),s=O(g),m=A(g,f),h=O(g),o&&o.l(g),g.forEach(k),C=O(u),r&&r.l(u),u.forEach(k),this.h()},h(){v(n,"class",w="flex items-center gap-1 font-medium "+l[7]({status:l[1]})+" svelte-1qqes14"),y(n,"rounded-r-none",l[4]),y(n,"big",l[5]),v(e,"class","relative flex items-center gap-0 text-center text-sm leading-4"),v(e,"data-testid",c=l[8]["test-id"])},m(i,u){F(i,e,u),S(e,n),~t&&p[t].m(n,null),S(n,s),S(n,m),S(n,h),o&&o.m(n,null),S(e,C),r&&r.m(e,null),b=!0},p(i,[u]){let g=t;t=L(i),t===g?~t&&p[t].p(i,u):(a&&(D(),q(p[g],1,1,()=>{p[g]=null}),M()),~t?(a=p[t],a?a.p(i,u):(a=p[t]=H[t](i),a.c()),_(a,1),a.m(n,s)):a=null),(!b||u&2)&&f!==(f=i[6][i[1]]+"")&&W(m,f),i[1]==="Running"?o?(o.p(i,u),u&2&&_(o,1)):(o=Z(i),o.c(),_(o,1),o.m(n,null)):o&&(D(),q(o,1,1,()=>{o=null}),M()),(!b||u&2&&w!==(w="flex items-center gap-1 font-medium "+i[7]({status:i[1]})+" svelte-1qqes14"))&&v(n,"class",w),(!b||u&18)&&y(n,"rounded-r-none",i[4]),(!b||u&34)&&y(n,"big",i[5]),i[4]?r?(r.p(i,u),u&16&&_(r,1)):(r=B(i),r.c(),_(r,1),r.m(e,null)):r&&(r.d(1),r=null),(!b||u&256&&c!==(c=i[8]["test-id"]))&&v(e,"data-testid",c)},i(i){b||(_(a),_(o),_(r),b=!0)},o(i){q(a),q(o),b=!1},d(i){i&&k(e),~t&&p[t].d(),o&&o.d(),r&&r.d()}}}function re(l,e,n){let{delay:t=0}=e,{status:a="Running"}=e,{count:s=void 0}=e,{loading:f=!1}=e,{newCount:m=void 0}=e,{big:h=!1}=e;const w={Running:d("workflows.running"),TimedOut:d("workflows.timed-out"),Completed:d("workflows.completed"),Failed:d("workflows.failed"),ContinuedAsNew:d("workflows.continued-as-new"),Canceled:d("workflows.canceled"),Terminated:d("workflows.terminated"),Paused:d("workflows.paused"),Scheduled:d("events.event-classification.scheduled"),Started:d("events.event-classification.started"),Unspecified:d("events.event-classification.unspecified"),Open:d("events.event-classification.open"),New:d("events.event-classification.new"),Initiated:d("events.event-classification.initiated"),Fired:d("events.event-classification.fired"),CancelRequested:d("events.event-classification.cancelrequested"),Signaled:d("events.event-classification.signaled")},C=ae(["flex items-center rounded-sm px-1 py-0.5 whitespace-nowrap text-black"],{variants:{status:{Running:"bg-blue-300",TimedOut:"bg-orange-200",Completed:"bg-green-200",Failed:"bg-red-200",ContinuedAsNew:"bg-purple-200",Canceled:"bg-slate-100",Terminated:"bg-yellow-200",Paused:"bg-yellow-200",Unspecified:"bg-slate-100",Scheduled:"bg-blue-300",Started:"bg-blue-300",Open:"bg-green-200",New:"bg-blue-300",Initiated:"bg-blue-300",Fired:"bg-pink-200",CancelRequested:"bg-yellow-200",Signaled:"bg-pink-200"}}});return l.$$set=c=>{n(8,e=U(U({},e),j(c))),"delay"in c&&n(0,t=c.delay),"status"in c&&n(1,a=c.status),"count"in c&&n(2,s=c.count),"loading"in c&&n(3,f=c.loading),"newCount"in c&&n(4,m=c.newCount),"big"in c&&n(5,h=c.big)},e=j(e),[t,a,s,f,m,h,w,C,e]}class ve extends ${constructor(e){super(),ee(this,e,re,oe,Y,{delay:0,status:1,count:2,loading:3,newCount:4,big:5})}}export{ve as W}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.g5luSfBh.js b/ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.WajIRJ-R.js similarity index 90% rename from ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.g5luSfBh.js rename to ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.WajIRJ-R.js index 0bace441b7..0f7dba7e83 100644 --- a/ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.g5luSfBh.js +++ b/ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.WajIRJ-R.js @@ -1 +1 @@ -import{s as N,M as g,T as k,h as T,t as y,j as D,k as E,l as C,f as w,m as I,i as A,n as b,v as M,a5 as V,w as z,b as Q,d as U}from"./scheduler.1T9hOnFr.js";import{S as B,i as F,f as W,c as v,a as P,m as R,t as S,b as j,d as q}from"./index.cVovwi_s.js";import{M as G}from"./modal.a-O5h6rO.js";import{t as h}from"./translate.HrioCK44.js";import{c as X,t as Y}from"./workflows.2hWpA1sK.js";import{t as J}from"./toaster.IevlZuOP.js";import{i as K}from"./is-network-error.8f5XuXSS.js";import{I as Z}from"./input.Q5M-PWyi.js";function x(t){let e,o=h("workflows.cancel-modal-title")+"",a;return{c(){e=T("h3"),a=y(o),this.h()},l(r){e=D(r,"H3",{slot:!0});var l=E(e);a=C(l,o),l.forEach(w),this.h()},h(){I(e,"slot","title")},m(r,l){A(r,e,l),b(e,a)},p:M,d(r){r&&w(e)}}}function $(t){let e,o=h("workflows.cancel-modal-confirmation")+"",a;return{c(){e=T("p"),a=y(o)},l(r){e=D(r,"P",{});var l=E(e);a=C(l,o),l.forEach(w)},m(r,l){A(r,e,l),b(e,a)},p:M,d(r){r&&w(e)}}}function ee(t){let e,o,a,r;function l(n){t[7](n)}function i(n){t[8](n)}let m={id:"cancel-confirmation-modal","data-testid":"cancel-confirmation-modal",confirmText:h("common.confirm"),cancelText:h("common.cancel"),loading:t[2],confirmType:"destructive",$$slots:{content:[$],title:[x]},$$scope:{ctx:t}};return t[3]!==void 0&&(m.error=t[3]),t[0]!==void 0&&(m.open=t[0]),e=new G({props:m}),g.push(()=>W(e,"error",l)),g.push(()=>W(e,"open",i)),e.$on("confirmModal",t[4]),{c(){v(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,s){R(e,n,s),r=!0},p(n,[s]){const c={};s&4&&(c.loading=n[2]),s&1024&&(c.$$scope={dirty:s,ctx:n}),!o&&s&8&&(o=!0,c.error=n[3],k(()=>o=!1)),!a&&s&1&&(a=!0,c.open=n[0],k(()=>a=!1)),e.$set(c)},i(n){r||(S(e.$$.fragment,n),r=!0)},o(n){j(e.$$.fragment,n),r=!1},d(n){q(e,n)}}}function oe(t,e,o){let a,r=M,l=()=>(r(),r=V(s,u=>o(9,a=u)),s);t.$$.on_destroy.push(()=>r());let{open:i}=e,{workflow:m}=e,{namespace:n}=e,{refresh:s}=e;l();let c,f="";const _=async()=>{o(3,f=""),o(2,c=!0);try{await X({namespace:n,workflow:m}),o(0,i=!1),z(s,a=Date.now(),a),J.push({id:"workflow-cancelation-success-toast",message:h("workflows.cancel-success")})}catch(u){o(3,f=K(u)?u.message:h("common.unknown-error"))}finally{o(2,c=!1)}};function p(u){f=u,o(3,f)}function H(u){i=u,o(0,i)}return t.$$set=u=>{"open"in u&&o(0,i=u.open),"workflow"in u&&o(5,m=u.workflow),"namespace"in u&&o(6,n=u.namespace),"refresh"in u&&l(o(1,s=u.refresh))},[i,s,c,f,_,m,n,p,H]}class _e extends B{constructor(e){super(),F(this,e,oe,ee,N,{open:0,workflow:5,namespace:6,refresh:1})}}function ne(t){let e,o=h("workflows.terminate-modal-title")+"",a;return{c(){e=T("h3"),a=y(o),this.h()},l(r){e=D(r,"H3",{slot:!0});var l=E(e);a=C(l,o),l.forEach(w),this.h()},h(){I(e,"slot","title")},m(r,l){A(r,e,l),b(e,a)},p:M,d(r){r&&w(e)}}}function te(t){let e,o,a=h("workflows.terminate-modal-confirmation")+"",r,l,i,m,n;function s(f){t[9](f)}let c={id:"workflow-termination-reason",class:"mt-4",placeholder:h("common.reason-placeholder"),label:h("common.reason-placeholder"),labelHidden:!0};return t[2]!==void 0&&(c.value=t[2]),i=new Z({props:c}),g.push(()=>W(i,"value",s)),{c(){e=T("div"),o=T("p"),r=y(a),l=Q(),v(i.$$.fragment),this.h()},l(f){e=D(f,"DIV",{slot:!0});var _=E(e);o=D(_,"P",{});var p=E(o);r=C(p,a),p.forEach(w),l=U(_),P(i.$$.fragment,_),_.forEach(w),this.h()},h(){I(e,"slot","content")},m(f,_){A(f,e,_),b(e,o),b(o,r),b(e,l),R(i,e,null),n=!0},p(f,_){const p={};!m&&_&4&&(m=!0,p.value=f[2],k(()=>m=!1)),i.$set(p)},i(f){n||(S(i.$$.fragment,f),n=!0)},o(f){j(i.$$.fragment,f),n=!1},d(f){f&&w(e),q(i)}}}function re(t){let e,o,a,r;function l(n){t[10](n)}function i(n){t[11](n)}let m={id:"terminate-confirmation-modal","data-testid":"terminate-confirmation-modal",loading:t[4],confirmText:h("workflows.terminate"),cancelText:h("common.cancel"),confirmType:"destructive",$$slots:{content:[te],title:[ne]},$$scope:{ctx:t}};return t[3]!==void 0&&(m.error=t[3]),t[0]!==void 0&&(m.open=t[0]),e=new G({props:m}),g.push(()=>W(e,"error",l)),g.push(()=>W(e,"open",i)),e.$on("cancelModal",t[5]),e.$on("confirmModal",t[6]),{c(){v(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,s){R(e,n,s),r=!0},p(n,[s]){const c={};s&16&&(c.loading=n[4]),s&8196&&(c.$$scope={dirty:s,ctx:n}),!o&&s&8&&(o=!0,c.error=n[3],k(()=>o=!1)),!a&&s&1&&(a=!0,c.open=n[0],k(()=>a=!1)),e.$set(c)},i(n){r||(S(e.$$.fragment,n),r=!0)},o(n){j(e.$$.fragment,n),r=!1},d(n){q(e,n)}}}function ae(t,e,o){let a,r=M,l=()=>(r(),r=V(s,d=>o(12,a=d)),s);t.$$.on_destroy.push(()=>r());let{open:i}=e,{workflow:m}=e,{namespace:n}=e,{refresh:s}=e;l();let c="",f="",_=!1;const p=()=>{o(0,i=!1),o(2,c="")},H=async()=>{o(3,f=""),o(4,_=!0);try{await Y({workflow:m,namespace:n,reason:c}),o(0,i=!1),o(2,c=""),z(s,a=Date.now(),a),J.push({id:"workflow-termination-success-toast",message:h("workflows.terminate-success")})}catch(d){o(3,f=K(d)?d.message:h("common.unknown-error"))}finally{o(4,_=!1)}};function u(d){c=d,o(2,c)}function L(d){f=d,o(3,f)}function O(d){i=d,o(0,i)}return t.$$set=d=>{"open"in d&&o(0,i=d.open),"workflow"in d&&o(7,m=d.workflow),"namespace"in d&&o(8,n=d.namespace),"refresh"in d&&l(o(1,s=d.refresh))},[i,s,c,f,_,p,H,m,n,u,L,O]}class he extends B{constructor(e){super(),F(this,e,ae,re,N,{open:0,workflow:7,namespace:8,refresh:1})}}const pe=(t,e,o)=>!t.disableWriteActions&&!t.workflowCancelDisabled&&!e.namespaceWriteDisabled(o),we=(t,e,o)=>!t.disableWriteActions&&!t.workflowResetDisabled&&!e.namespaceWriteDisabled(o),be=(t,e,o)=>!t.disableWriteActions&&!t.workflowTerminateDisabled&&!e.namespaceWriteDisabled(o);export{_e as C,he as T,be as a,we as b,pe as w}; +import{s as N,M as g,T as k,h as T,t as y,j as D,k as E,l as C,f as w,m as I,i as A,n as b,v as M,a8 as V,w as z,b as Q,d as U}from"./scheduler.pPC3woXQ.js";import{S as B,i as F,f as W,c as v,a as P,m as R,t as S,b as j,d as q}from"./index.Z3Qqxacm.js";import{M as G}from"./modal.TcRT4NOF.js";import{t as h}from"./translate.HrioCK44.js";import{c as X,t as Y}from"./workflows.s9Ou474G.js";import{t as J}from"./toaster.pceGNaxq.js";import{i as K}from"./is-network-error.8f5XuXSS.js";import{I as Z}from"./input.T-q3Sv8I.js";function x(t){let e,o=h("workflows.cancel-modal-title")+"",a;return{c(){e=T("h3"),a=y(o),this.h()},l(r){e=D(r,"H3",{slot:!0});var l=E(e);a=C(l,o),l.forEach(w),this.h()},h(){I(e,"slot","title")},m(r,l){A(r,e,l),b(e,a)},p:M,d(r){r&&w(e)}}}function $(t){let e,o=h("workflows.cancel-modal-confirmation")+"",a;return{c(){e=T("p"),a=y(o)},l(r){e=D(r,"P",{});var l=E(e);a=C(l,o),l.forEach(w)},m(r,l){A(r,e,l),b(e,a)},p:M,d(r){r&&w(e)}}}function ee(t){let e,o,a,r;function l(n){t[7](n)}function i(n){t[8](n)}let m={id:"cancel-confirmation-modal","data-testid":"cancel-confirmation-modal",confirmText:h("common.confirm"),cancelText:h("common.cancel"),loading:t[2],confirmType:"destructive",$$slots:{content:[$],title:[x]},$$scope:{ctx:t}};return t[3]!==void 0&&(m.error=t[3]),t[0]!==void 0&&(m.open=t[0]),e=new G({props:m}),g.push(()=>W(e,"error",l)),g.push(()=>W(e,"open",i)),e.$on("confirmModal",t[4]),{c(){v(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,s){R(e,n,s),r=!0},p(n,[s]){const c={};s&4&&(c.loading=n[2]),s&1024&&(c.$$scope={dirty:s,ctx:n}),!o&&s&8&&(o=!0,c.error=n[3],k(()=>o=!1)),!a&&s&1&&(a=!0,c.open=n[0],k(()=>a=!1)),e.$set(c)},i(n){r||(S(e.$$.fragment,n),r=!0)},o(n){j(e.$$.fragment,n),r=!1},d(n){q(e,n)}}}function oe(t,e,o){let a,r=M,l=()=>(r(),r=V(s,u=>o(9,a=u)),s);t.$$.on_destroy.push(()=>r());let{open:i}=e,{workflow:m}=e,{namespace:n}=e,{refresh:s}=e;l();let c,f="";const _=async()=>{o(3,f=""),o(2,c=!0);try{await X({namespace:n,workflow:m}),o(0,i=!1),z(s,a=Date.now(),a),J.push({id:"workflow-cancelation-success-toast",message:h("workflows.cancel-success")})}catch(u){o(3,f=K(u)?u.message:h("common.unknown-error"))}finally{o(2,c=!1)}};function p(u){f=u,o(3,f)}function H(u){i=u,o(0,i)}return t.$$set=u=>{"open"in u&&o(0,i=u.open),"workflow"in u&&o(5,m=u.workflow),"namespace"in u&&o(6,n=u.namespace),"refresh"in u&&l(o(1,s=u.refresh))},[i,s,c,f,_,m,n,p,H]}class _e extends B{constructor(e){super(),F(this,e,oe,ee,N,{open:0,workflow:5,namespace:6,refresh:1})}}function ne(t){let e,o=h("workflows.terminate-modal-title")+"",a;return{c(){e=T("h3"),a=y(o),this.h()},l(r){e=D(r,"H3",{slot:!0});var l=E(e);a=C(l,o),l.forEach(w),this.h()},h(){I(e,"slot","title")},m(r,l){A(r,e,l),b(e,a)},p:M,d(r){r&&w(e)}}}function te(t){let e,o,a=h("workflows.terminate-modal-confirmation")+"",r,l,i,m,n;function s(f){t[9](f)}let c={id:"workflow-termination-reason",class:"mt-4",placeholder:h("common.reason-placeholder"),label:h("common.reason-placeholder"),labelHidden:!0};return t[2]!==void 0&&(c.value=t[2]),i=new Z({props:c}),g.push(()=>W(i,"value",s)),{c(){e=T("div"),o=T("p"),r=y(a),l=Q(),v(i.$$.fragment),this.h()},l(f){e=D(f,"DIV",{slot:!0});var _=E(e);o=D(_,"P",{});var p=E(o);r=C(p,a),p.forEach(w),l=U(_),P(i.$$.fragment,_),_.forEach(w),this.h()},h(){I(e,"slot","content")},m(f,_){A(f,e,_),b(e,o),b(o,r),b(e,l),R(i,e,null),n=!0},p(f,_){const p={};!m&&_&4&&(m=!0,p.value=f[2],k(()=>m=!1)),i.$set(p)},i(f){n||(S(i.$$.fragment,f),n=!0)},o(f){j(i.$$.fragment,f),n=!1},d(f){f&&w(e),q(i)}}}function re(t){let e,o,a,r;function l(n){t[10](n)}function i(n){t[11](n)}let m={id:"terminate-confirmation-modal","data-testid":"terminate-confirmation-modal",loading:t[4],confirmText:h("workflows.terminate"),cancelText:h("common.cancel"),confirmType:"destructive",$$slots:{content:[te],title:[ne]},$$scope:{ctx:t}};return t[3]!==void 0&&(m.error=t[3]),t[0]!==void 0&&(m.open=t[0]),e=new G({props:m}),g.push(()=>W(e,"error",l)),g.push(()=>W(e,"open",i)),e.$on("cancelModal",t[5]),e.$on("confirmModal",t[6]),{c(){v(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,s){R(e,n,s),r=!0},p(n,[s]){const c={};s&16&&(c.loading=n[4]),s&8196&&(c.$$scope={dirty:s,ctx:n}),!o&&s&8&&(o=!0,c.error=n[3],k(()=>o=!1)),!a&&s&1&&(a=!0,c.open=n[0],k(()=>a=!1)),e.$set(c)},i(n){r||(S(e.$$.fragment,n),r=!0)},o(n){j(e.$$.fragment,n),r=!1},d(n){q(e,n)}}}function ae(t,e,o){let a,r=M,l=()=>(r(),r=V(s,d=>o(12,a=d)),s);t.$$.on_destroy.push(()=>r());let{open:i}=e,{workflow:m}=e,{namespace:n}=e,{refresh:s}=e;l();let c="",f="",_=!1;const p=()=>{o(0,i=!1),o(2,c="")},H=async()=>{o(3,f=""),o(4,_=!0);try{await Y({workflow:m,namespace:n,reason:c}),o(0,i=!1),o(2,c=""),z(s,a=Date.now(),a),J.push({id:"workflow-termination-success-toast",message:h("workflows.terminate-success")})}catch(d){o(3,f=K(d)?d.message:h("common.unknown-error"))}finally{o(4,_=!1)}};function u(d){c=d,o(2,c)}function L(d){f=d,o(3,f)}function O(d){i=d,o(0,i)}return t.$$set=d=>{"open"in d&&o(0,i=d.open),"workflow"in d&&o(7,m=d.workflow),"namespace"in d&&o(8,n=d.namespace),"refresh"in d&&l(o(1,s=d.refresh))},[i,s,c,f,_,p,H,m,n,u,L,O]}class he extends B{constructor(e){super(),F(this,e,ae,re,N,{open:0,workflow:7,namespace:8,refresh:1})}}const pe=(t,e,o)=>!t.disableWriteActions&&!t.workflowCancelDisabled&&!e.namespaceWriteDisabled(o),we=(t,e,o)=>!t.disableWriteActions&&!t.workflowResetDisabled&&!e.namespaceWriteDisabled(o),be=(t,e,o)=>!t.disableWriteActions&&!t.workflowTerminateDisabled&&!e.namespaceWriteDisabled(o);export{_e as C,he as T,be as a,we as b,pe as w}; diff --git a/ui/assets/local/_app/immutable/chunks/workflows.2hWpA1sK.js b/ui/assets/local/_app/immutable/chunks/workflows.s9Ou474G.js similarity index 92% rename from ui/assets/local/_app/immutable/chunks/workflows.2hWpA1sK.js rename to ui/assets/local/_app/immutable/chunks/workflows.s9Ou474G.js index 88b6296b87..d949fbc165 100644 --- a/ui/assets/local/_app/immutable/chunks/workflows.2hWpA1sK.js +++ b/ui/assets/local/_app/immutable/chunks/workflows.s9Ou474G.js @@ -1 +1 @@ -import{d,r as nt,w as g}from"./entry.1BQh90wu.js";import{p as E}from"./stores.6oDSidma.js";import{t as p}from"./translate.HrioCK44.js";import{f as rt}from"./workflow-counts.BAGoaW94.js";import{D as x}from"./scheduler.1T9hOnFr.js";import{A as I}from"./workflow-actions.-K4W_iAA.js";import{e as at,c as it}from"./decode-payload.J6AgBD-I.js";import{f as st,g as ct,h as lt}from"./screaming-enums.6mdiatB1.js";import{w as ft}from"./write-actions-are-allowed.wbSpKvMt.js";import{s as ut}from"./index.5wZ4nYFD.js";import{a as T}from"./auth-user.ZpmVHepC.js";import{i as D,m as U}from"./version-check.HLZIw2tw.js";import{c as L,t as A}from"./versions.o_MWjQYY.js";import{s as dt}from"./filters.59IbP5Ow.js";import{e as j,s as wt}from"./encode-payload.KDTwh14f.js";import{b as mt,p as kt,a as w,r as m,c as ht,d as yt,e as xt}from"./route-for-api.FVhOJtE0.js";import{s as b}from"./parse-with-big-int.e3oI4SEy.js";import{i as Et,c as gt,t as z,d as pt}from"./format-time.PmxHXK_V.js";import{a as It}from"./events-service.NUMYVCrG.js";import{v as bt}from"./toaster.IevlZuOP.js";const Wt=(t=[])=>t.map(o=>{const e=ut(o,!0),n=o.activityId;return{...e,id:n}}),Tt=t=>t?t.map(o=>({...o,state:ct(o.state)})):[],At=t=>t?t.map(o=>({...o,state:lt(o.state)})):[],St=t=>!t||!t.indexedFields?{}:{indexedFields:Object.entries(t.indexedFields).reduce((e,[n,r])=>({...e,[n]:at(r)}),{})},S=t=>{var v,F,N,$,V,q,B,Q;const o=St(t.workflowExecutionInfo.searchAttributes),e=t.workflowExecutionInfo.memo,n=t.workflowExecutionInfo.type.name,r=t.workflowExecutionInfo.execution.workflowId,a=t.workflowExecutionInfo.execution.runId,s=t.workflowExecutionInfo.startTime,i=t.workflowExecutionInfo.closeTime,c=t.workflowExecutionInfo.executionTime,f=st(t.workflowExecutionInfo.status),u=f==="Running",k=t.workflowExecutionInfo.historyLength,l=t.workflowExecutionInfo.historySizeBytes,h=`/workflows/${r}/${a}`,y=((F=(v=t==null?void 0:t.executionConfig)==null?void 0:v.taskQueue)==null?void 0:F.name)||((N=t==null?void 0:t.workflowExecutionInfo)==null?void 0:N.taskQueue),R=($=t==null?void 0:t.workflowExecutionInfo)==null?void 0:$.mostRecentWorkerVersionStamp,H=(V=t==null?void 0:t.workflowExecutionInfo)==null?void 0:V.assignedBuildId,J=(q=t==null?void 0:t.workflowExecutionInfo)==null?void 0:q.parentNamespaceId,M=(B=t==null?void 0:t.workflowExecutionInfo)==null?void 0:B.parentExecution,X=t.workflowExecutionInfo.stateTransitionCount,Y=(Q=t.executionConfig)==null?void 0:Q.defaultWorkflowTaskTimeout,Z=Wt(t.pendingActivities),tt=(t==null?void 0:t.pendingChildren)??[],ot=Tt(t==null?void 0:t.pendingNexusOperations),et=At(t==null?void 0:t.callbacks);return{name:n,id:r,runId:a,startTime:s,endTime:i,executionTime:c,status:f,historyEvents:k,historySizeBytes:l,searchAttributes:o,memo:e,url:h,taskQueue:y,assignedBuildId:H,mostRecentWorkerVersionStamp:R,pendingActivities:Z,pendingChildren:tt,pendingNexusOperations:ot,callbacks:et,parentNamespaceId:J,parent:M,stateTransitionCount:X,isRunning:u,defaultWorkflowTaskTimeout:Y,get canBeTerminated(){return u&&ft()}}},C=t=>(t.executions||[]).map(o=>S({workflowExecutionInfo:o})),Ct=(t,o)=>{var e;return((e=t==null?void 0:t.visibilityStore)==null?void 0:e.includes("elasticsearch"))||D(o,"1.19")},Pt=t=>{var o;return(o=t==null?void 0:t.visibilityStore)==null?void 0:o.includes("elasticsearch")},P=d([E],([t])=>{var o,e,n;return(n=(e=(o=t.data)==null?void 0:o.settings)==null?void 0:e.runtimeEnvironment)==null?void 0:n.isCloud}),K=d([L,A,P],([t,o,e])=>Ct(t,o)||e);d([L,P],([t,o])=>Pt(t)||o);const Ot={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime"},Rt=["workflowId","workflowType","timeRange","executionStatus","closeTime"],vt=t=>!(t===null||t===void 0||t===""||typeof t=="string"&&t==="undefined"),Ft=t=>{if(typeof t!="string")return!1;for(const o of Rt)if(o===t)return!0;return!1},Nt=(t,o,e)=>{const n=Ot[t];return o==="All"?"":Et(o)||gt(o)?e||x(K)?`${n} > "${z(o)}"`:`${n} BETWEEN "${z(o)}" AND "${pt()}"`:`${n}="${o}"`},$t=(t,o)=>Object.entries(t).map(([e,n])=>{if(Ft(e)&&vt(n))return Nt(e,n,o)}).filter(Boolean),Vt=(t,o=!1)=>$t(t,o).join(" and ");function qt(t){console.error("Unhandled action:",t)}const Bt=(t,o)=>{let e;switch(t){case I.Cancel:e=p("workflows.canceled");break;case I.Reset:e=p("workflows.reset");break;case I.Terminate:e=p("workflows.terminated");break;default:qt(t)}return o?p("workflows.workflow-action-reason-placeholder-with-email",{action:e,email:o}):p("workflows.workflow-action-reason-placeholder",{action:e})},_=({action:t,reason:o,email:e})=>{const n=Bt(t,e);return o?[o.trim(),n].join(" "):n},O=async(t,o,e=fetch,n=!1)=>{const r=o.query||Vt(o,n);let a;try{a=decodeURIComponent(r)}catch{a=r}const s=n?"workflows.archived":"workflows";let i="";const c=l=>{var h,y;ht(l),(h=l==null?void 0:l.body)!=null&&h.message||l!=null&&l.status?i=((y=l==null?void 0:l.body)==null?void 0:y.message)??`Error fetching workflows: ${l.status}: ${l.statusText}`:i="Error fetching workflows: Server failed to respond"},f=m(s,{namespace:t}),{executions:u,nextPageToken:k}=await w(f,{params:{query:a},onError:c,handleError:c,request:e})??{executions:[],nextPageToken:""};return{workflows:C({executions:u}),nextPageToken:String(k),error:i}},po=async({namespace:t,workflowId:o,url:e},n=fetch)=>{var u;const r="workflows",a=e??mt(t),s=kt(r,{namespace:t}),i=a+s,{executions:c}=await w(i,{params:{query:`WorkflowId="${o}"`,pageSize:"1"},request:n})??{executions:[]},f=(u=C({executions:c}))==null?void 0:u[0];return{runId:f==null?void 0:f.runId}},Io=async(t,o=fetch,e=!1)=>{const n=e?"workflows.archived":"workflows";let r=!0;const a=i=>{(yt(i)||xt(i))&&(r=!1)},s=m(n,{namespace:t});return await w(s,{params:{pageSize:"1"},onError:a,handleError:a,request:o}),{authorized:r}},bo=async(t,o,e=fetch)=>O(t,o,e,!0);async function Wo(t,o=fetch){const e=m("workflow",{namespace:t.namespace,workflowId:t.workflowId});return w(e,{request:o,notifyOnError:!1,params:{"execution.runId":t.runId}}).then(n=>({workflow:S(n)})).catch(n=>({error:n}))}async function To({workflow:t,namespace:o,reason:e}){const n=m("workflow.terminate",{namespace:o,workflowId:t.id}),r=x(T).email,a=_({reason:e,action:I.Terminate,email:r});return await w(n,{options:{method:"POST",body:b({reason:a,...r&&{identity:r}})},notifyOnError:!1,params:{"execution.runId":t.runId}})}async function Ao({namespace:t,workflow:{id:o,runId:e}},n=fetch){const r=m("workflow.cancel",{namespace:t,workflowId:o});return w(r,{request:n,notifyOnError:!1,options:{method:"POST"},params:{"execution.runId":e}})}async function So({namespace:t,workflow:{id:o,runId:e},name:n,input:r}){const a=m("workflow.signal",{namespace:t,workflowId:o,signalName:n}),s=await j(r),i=x(E).data.settings,c=(i==null?void 0:i.version)??"",u=D(c,"2.22")?{signalName:n,workflowExecution:{workflowId:o,runId:e},input:{payloads:s}}:{signalName:n,input:{payloads:s},params:{"execution.runId":e}};return w(a,{notifyOnError:!1,options:{method:"POST",body:b(u)}})}async function Co({namespace:t,workflow:{id:o,runId:e},eventId:n,reason:r,reapplyType:a}){const s=m("workflow.reset",{namespace:t,workflowId:o}),i=x(T).email,c=_({action:I.Reset,reason:r,email:i}),f={workflowExecution:{workflowId:o,runId:e},workflowTaskFinishEventId:n,resetReapplyType:a,requestId:bt(),reason:c};return w(s,{notifyOnError:!1,options:{method:"POST",body:b(f)},params:{"execution.runId":e}})}async function Po(t,o=fetch){const e=r=>{console.error(r)},n=m("workflow",t);return w(n,{request:o,onError:e,handleError:e}).then(S)}async function Oo(t,o,e){if(!x(G))return[];try{let n=`ParentWorkflowId = "${o}"`;e&&(n+=` AND ParentRunId = "${e}"`);const{workflows:r}=await O(t,{query:n});return r}catch{return[]}}const Qt=t=>{if(!t.length)return{};const o={};return t.forEach(e=>{o[e.attribute]=wt(e.value)}),o};async function Ro({namespace:t,workflowId:o,taskQueue:e,workflowType:n,input:r,searchAttributes:a}){const s=m("workflow",{namespace:t,workflowId:o});let i;if(r)try{i=await j(r)}catch{console.error("Could not decode input for starting workflow")}const c=b({workflowId:o,taskQueue:{name:e},workflowType:{name:n},input:i?{payloads:i}:null,searchAttributes:a.length===0?null:{indexedFields:{...Qt(a)}}});return w(s,{notifyOnError:!1,options:{method:"POST",body:c}})}const vo=async({namespace:t,workflowType:o,workflowId:e})=>{var a,s,i;const n=c=>{console.error(c)},r={input:"",searchAttributes:void 0};try{let c="";o&&e?c=`WorkflowType = "${o}" AND WorkflowId = "${e}"`:o?c=`WorkflowType = "${o}"`:e&&(c=`WorkflowId = "${e}"`);const f=m("workflows",{namespace:t}),u=await w(f,{params:{query:c,pageSize:"1"},handleError:n});if(!((a=u==null?void 0:u.executions)!=null&&a[0]))return r;const k=C(u)[0],h=await It({namespace:t,workflowId:k.id,runId:k.runId}),y=await it((s=h==null?void 0:h.attributes)==null?void 0:s.input,t,x(E).data.settings,x(T).accessToken);return{input:b(y==null?void 0:y.payloads[0]),searchAttributes:(i=k==null?void 0:k.searchAttributes)==null?void 0:i.indexedFields}}catch{return r}},zt=300,Dt=async(t,o,e)=>{o.set(!0);try{await e()}catch(n){console.error(n)}t.set(!1),setTimeout(()=>{o.set(!1)},zt)},Ut=d([E],([t])=>{var o,e,n;return!!((n=(e=(o=t.data)==null?void 0:o.systemInfo)==null?void 0:e.capabilities)!=null&&n.countGroupByExecutionStatus)}),Fo=d([E,A],([t,o])=>{var r,a,s;const e=U("1.23.0",o),n=!!((s=(a=(r=t.data)==null?void 0:r.systemInfo)==null?void 0:a.capabilities)!=null&&s.prefixSearch);return e||n}),Lt=g(0),jt=d([E],([t])=>{var o,e;return(e=(o=t.data)==null?void 0:o.settings)==null?void 0:e.hideWorkflowQueryErrors}),G=d([P,A],([t,o])=>t||U("1.23.0",o)),Kt=d([E],([t])=>t.url.searchParams.get("query")),_t=d([Kt,G,dt],([t,o,e])=>o&&!e?t?`ParentWorkflowId is NULL AND ${t}`:"ParentWorkflowId is NULL":t),Gt=d([E],([t])=>t.params.namespace),Ht=d([Gt,_t,Lt,K,jt],([t,o,e,n,r])=>({namespace:t,query:o,refresh:e,supportsAdvancedVisibility:n,hideWorkflowQueryErrors:r})),Jt=t=>{Zt.set({...t,newCount:0})},Mt=t=>Ht.subscribe(({namespace:o,query:e,supportsAdvancedVisibility:n,hideWorkflowQueryErrors:r})=>{Dt(Yt,Xt,async()=>{const{workflows:a,error:s}=await O(o,{query:e});if(t(a),n&&!x(Ut)){const i=await rt(o,e);Jt(i)}s?r?W.set(p("workflows.workflows-error-querying")):W.set(s):W.set("")})}),No=g(""),Xt=g(!0),Yt=g(!0),Zt=g({count:0,newCount:0}),W=g(""),$o=nt([],Mt),Vo=g("");export{Xt as A,W as B,Io as a,Oo as b,Ao as c,vo as d,Zt as e,po as f,bo as g,Vt as h,Co as i,So as j,Wo as k,Po as l,Ut as m,Vo as n,Bt as o,P as p,_t as q,Lt as r,Ro as s,To as t,K as u,Fo as v,No as w,G as x,$o as y,Yt as z}; +import{d,r as nt,w as g}from"./entry.6mxJxwSM.js";import{p as E}from"./stores.cW8AX6ex.js";import{t as p}from"./translate.HrioCK44.js";import{f as rt}from"./workflow-counts.Ul38aWsQ.js";import{D as x}from"./scheduler.pPC3woXQ.js";import{A as I}from"./workflow-actions.-K4W_iAA.js";import{e as at,c as it}from"./decode-payload.gln8j6uZ.js";import{f as st,g as ct,h as lt}from"./screaming-enums.6mdiatB1.js";import{w as ft}from"./write-actions-are-allowed.266r6g9i.js";import{s as ut}from"./index.xcFFIXD-.js";import{a as T}from"./auth-user.hBqnVR-w.js";import{i as D,m as U}from"./version-check.HLZIw2tw.js";import{c as L,t as A}from"./versions.QfhK-6RJ.js";import{s as dt}from"./filters.iDq_cVKd.js";import{e as j,s as wt}from"./encode-payload.xDhwgfdU.js";import{b as mt,p as kt,a as w,r as m,c as ht,d as yt,e as xt}from"./route-for-api.hWBHnwul.js";import{s as b}from"./parse-with-big-int.e3oI4SEy.js";import{i as Et,c as gt,t as z,d as pt}from"./format-time.PmxHXK_V.js";import{a as It}from"./events-service.KaifCgIm.js";import{v as bt}from"./toaster.pceGNaxq.js";const Wt=(t=[])=>t.map(o=>{const e=ut(o,!0),n=o.activityId;return{...e,id:n}}),Tt=t=>t?t.map(o=>({...o,state:ct(o.state)})):[],At=t=>t?t.map(o=>({...o,state:lt(o.state)})):[],St=t=>!t||!t.indexedFields?{}:{indexedFields:Object.entries(t.indexedFields).reduce((e,[n,r])=>({...e,[n]:at(r)}),{})},S=t=>{var v,F,N,$,V,q,B,Q;const o=St(t.workflowExecutionInfo.searchAttributes),e=t.workflowExecutionInfo.memo,n=t.workflowExecutionInfo.type.name,r=t.workflowExecutionInfo.execution.workflowId,a=t.workflowExecutionInfo.execution.runId,s=t.workflowExecutionInfo.startTime,i=t.workflowExecutionInfo.closeTime,c=t.workflowExecutionInfo.executionTime,f=st(t.workflowExecutionInfo.status),u=f==="Running",k=t.workflowExecutionInfo.historyLength,l=t.workflowExecutionInfo.historySizeBytes,h=`/workflows/${r}/${a}`,y=((F=(v=t==null?void 0:t.executionConfig)==null?void 0:v.taskQueue)==null?void 0:F.name)||((N=t==null?void 0:t.workflowExecutionInfo)==null?void 0:N.taskQueue),R=($=t==null?void 0:t.workflowExecutionInfo)==null?void 0:$.mostRecentWorkerVersionStamp,H=(V=t==null?void 0:t.workflowExecutionInfo)==null?void 0:V.assignedBuildId,J=(q=t==null?void 0:t.workflowExecutionInfo)==null?void 0:q.parentNamespaceId,M=(B=t==null?void 0:t.workflowExecutionInfo)==null?void 0:B.parentExecution,X=t.workflowExecutionInfo.stateTransitionCount,Y=(Q=t.executionConfig)==null?void 0:Q.defaultWorkflowTaskTimeout,Z=Wt(t.pendingActivities),tt=(t==null?void 0:t.pendingChildren)??[],ot=Tt(t==null?void 0:t.pendingNexusOperations),et=At(t==null?void 0:t.callbacks);return{name:n,id:r,runId:a,startTime:s,endTime:i,executionTime:c,status:f,historyEvents:k,historySizeBytes:l,searchAttributes:o,memo:e,url:h,taskQueue:y,assignedBuildId:H,mostRecentWorkerVersionStamp:R,pendingActivities:Z,pendingChildren:tt,pendingNexusOperations:ot,callbacks:et,parentNamespaceId:J,parent:M,stateTransitionCount:X,isRunning:u,defaultWorkflowTaskTimeout:Y,get canBeTerminated(){return u&&ft()}}},C=t=>(t.executions||[]).map(o=>S({workflowExecutionInfo:o})),Ct=(t,o)=>{var e;return((e=t==null?void 0:t.visibilityStore)==null?void 0:e.includes("elasticsearch"))||D(o,"1.19")},Pt=t=>{var o;return(o=t==null?void 0:t.visibilityStore)==null?void 0:o.includes("elasticsearch")},P=d([E],([t])=>{var o,e,n;return(n=(e=(o=t.data)==null?void 0:o.settings)==null?void 0:e.runtimeEnvironment)==null?void 0:n.isCloud}),K=d([L,A,P],([t,o,e])=>Ct(t,o)||e);d([L,P],([t,o])=>Pt(t)||o);const Ot={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime"},Rt=["workflowId","workflowType","timeRange","executionStatus","closeTime"],vt=t=>!(t===null||t===void 0||t===""||typeof t=="string"&&t==="undefined"),Ft=t=>{if(typeof t!="string")return!1;for(const o of Rt)if(o===t)return!0;return!1},Nt=(t,o,e)=>{const n=Ot[t];return o==="All"?"":Et(o)||gt(o)?e||x(K)?`${n} > "${z(o)}"`:`${n} BETWEEN "${z(o)}" AND "${pt()}"`:`${n}="${o}"`},$t=(t,o)=>Object.entries(t).map(([e,n])=>{if(Ft(e)&&vt(n))return Nt(e,n,o)}).filter(Boolean),Vt=(t,o=!1)=>$t(t,o).join(" and ");function qt(t){console.error("Unhandled action:",t)}const Bt=(t,o)=>{let e;switch(t){case I.Cancel:e=p("workflows.canceled");break;case I.Reset:e=p("workflows.reset");break;case I.Terminate:e=p("workflows.terminated");break;default:qt(t)}return o?p("workflows.workflow-action-reason-placeholder-with-email",{action:e,email:o}):p("workflows.workflow-action-reason-placeholder",{action:e})},_=({action:t,reason:o,email:e})=>{const n=Bt(t,e);return o?[o.trim(),n].join(" "):n},O=async(t,o,e=fetch,n=!1)=>{const r=o.query||Vt(o,n);let a;try{a=decodeURIComponent(r)}catch{a=r}const s=n?"workflows.archived":"workflows";let i="";const c=l=>{var h,y;ht(l),(h=l==null?void 0:l.body)!=null&&h.message||l!=null&&l.status?i=((y=l==null?void 0:l.body)==null?void 0:y.message)??`Error fetching workflows: ${l.status}: ${l.statusText}`:i="Error fetching workflows: Server failed to respond"},f=m(s,{namespace:t}),{executions:u,nextPageToken:k}=await w(f,{params:{query:a},onError:c,handleError:c,request:e})??{executions:[],nextPageToken:""};return{workflows:C({executions:u}),nextPageToken:String(k),error:i}},po=async({namespace:t,workflowId:o,url:e},n=fetch)=>{var u;const r="workflows",a=e??mt(t),s=kt(r,{namespace:t}),i=a+s,{executions:c}=await w(i,{params:{query:`WorkflowId="${o}"`,pageSize:"1"},request:n})??{executions:[]},f=(u=C({executions:c}))==null?void 0:u[0];return{runId:f==null?void 0:f.runId}},Io=async(t,o=fetch,e=!1)=>{const n=e?"workflows.archived":"workflows";let r=!0;const a=i=>{(yt(i)||xt(i))&&(r=!1)},s=m(n,{namespace:t});return await w(s,{params:{pageSize:"1"},onError:a,handleError:a,request:o}),{authorized:r}},bo=async(t,o,e=fetch)=>O(t,o,e,!0);async function Wo(t,o=fetch){const e=m("workflow",{namespace:t.namespace,workflowId:t.workflowId});return w(e,{request:o,notifyOnError:!1,params:{"execution.runId":t.runId}}).then(n=>({workflow:S(n)})).catch(n=>({error:n}))}async function To({workflow:t,namespace:o,reason:e}){const n=m("workflow.terminate",{namespace:o,workflowId:t.id}),r=x(T).email,a=_({reason:e,action:I.Terminate,email:r});return await w(n,{options:{method:"POST",body:b({reason:a,...r&&{identity:r}})},notifyOnError:!1,params:{"execution.runId":t.runId}})}async function Ao({namespace:t,workflow:{id:o,runId:e}},n=fetch){const r=m("workflow.cancel",{namespace:t,workflowId:o});return w(r,{request:n,notifyOnError:!1,options:{method:"POST"},params:{"execution.runId":e}})}async function So({namespace:t,workflow:{id:o,runId:e},name:n,input:r}){const a=m("workflow.signal",{namespace:t,workflowId:o,signalName:n}),s=await j(r),i=x(E).data.settings,c=(i==null?void 0:i.version)??"",u=D(c,"2.22")?{signalName:n,workflowExecution:{workflowId:o,runId:e},input:{payloads:s}}:{signalName:n,input:{payloads:s},params:{"execution.runId":e}};return w(a,{notifyOnError:!1,options:{method:"POST",body:b(u)}})}async function Co({namespace:t,workflow:{id:o,runId:e},eventId:n,reason:r,reapplyType:a}){const s=m("workflow.reset",{namespace:t,workflowId:o}),i=x(T).email,c=_({action:I.Reset,reason:r,email:i}),f={workflowExecution:{workflowId:o,runId:e},workflowTaskFinishEventId:n,resetReapplyType:a,requestId:bt(),reason:c};return w(s,{notifyOnError:!1,options:{method:"POST",body:b(f)},params:{"execution.runId":e}})}async function Po(t,o=fetch){const e=r=>{console.error(r)},n=m("workflow",t);return w(n,{request:o,onError:e,handleError:e}).then(S)}async function Oo(t,o,e){if(!x(G))return[];try{let n=`ParentWorkflowId = "${o}"`;e&&(n+=` AND ParentRunId = "${e}"`);const{workflows:r}=await O(t,{query:n});return r}catch{return[]}}const Qt=t=>{if(!t.length)return{};const o={};return t.forEach(e=>{o[e.attribute]=wt(e.value)}),o};async function Ro({namespace:t,workflowId:o,taskQueue:e,workflowType:n,input:r,searchAttributes:a}){const s=m("workflow",{namespace:t,workflowId:o});let i;if(r)try{i=await j(r)}catch{console.error("Could not decode input for starting workflow")}const c=b({workflowId:o,taskQueue:{name:e},workflowType:{name:n},input:i?{payloads:i}:null,searchAttributes:a.length===0?null:{indexedFields:{...Qt(a)}}});return w(s,{notifyOnError:!1,options:{method:"POST",body:c}})}const vo=async({namespace:t,workflowType:o,workflowId:e})=>{var a,s,i;const n=c=>{console.error(c)},r={input:"",searchAttributes:void 0};try{let c="";o&&e?c=`WorkflowType = "${o}" AND WorkflowId = "${e}"`:o?c=`WorkflowType = "${o}"`:e&&(c=`WorkflowId = "${e}"`);const f=m("workflows",{namespace:t}),u=await w(f,{params:{query:c,pageSize:"1"},handleError:n});if(!((a=u==null?void 0:u.executions)!=null&&a[0]))return r;const k=C(u)[0],h=await It({namespace:t,workflowId:k.id,runId:k.runId}),y=await it((s=h==null?void 0:h.attributes)==null?void 0:s.input,t,x(E).data.settings,x(T).accessToken);return{input:b(y==null?void 0:y.payloads[0]),searchAttributes:(i=k==null?void 0:k.searchAttributes)==null?void 0:i.indexedFields}}catch{return r}},zt=300,Dt=async(t,o,e)=>{o.set(!0);try{await e()}catch(n){console.error(n)}t.set(!1),setTimeout(()=>{o.set(!1)},zt)},Ut=d([E],([t])=>{var o,e,n;return!!((n=(e=(o=t.data)==null?void 0:o.systemInfo)==null?void 0:e.capabilities)!=null&&n.countGroupByExecutionStatus)}),Fo=d([E,A],([t,o])=>{var r,a,s;const e=U("1.23.0",o),n=!!((s=(a=(r=t.data)==null?void 0:r.systemInfo)==null?void 0:a.capabilities)!=null&&s.prefixSearch);return e||n}),Lt=g(0),jt=d([E],([t])=>{var o,e;return(e=(o=t.data)==null?void 0:o.settings)==null?void 0:e.hideWorkflowQueryErrors}),G=d([P,A],([t,o])=>t||U("1.23.0",o)),Kt=d([E],([t])=>t.url.searchParams.get("query")),_t=d([Kt,G,dt],([t,o,e])=>o&&!e?t?`ParentWorkflowId is NULL AND ${t}`:"ParentWorkflowId is NULL":t),Gt=d([E],([t])=>t.params.namespace),Ht=d([Gt,_t,Lt,K,jt],([t,o,e,n,r])=>({namespace:t,query:o,refresh:e,supportsAdvancedVisibility:n,hideWorkflowQueryErrors:r})),Jt=t=>{Zt.set({...t,newCount:0})},Mt=t=>Ht.subscribe(({namespace:o,query:e,supportsAdvancedVisibility:n,hideWorkflowQueryErrors:r})=>{Dt(Yt,Xt,async()=>{const{workflows:a,error:s}=await O(o,{query:e});if(t(a),n&&!x(Ut)){const i=await rt(o,e);Jt(i)}s?r?W.set(p("workflows.workflows-error-querying")):W.set(s):W.set("")})}),No=g(""),Xt=g(!0),Yt=g(!0),Zt=g({count:0,newCount:0}),W=g(""),$o=nt([],Mt),Vo=g("");export{Xt as A,W as B,Io as a,Oo as b,Ao as c,vo as d,Zt as e,po as f,bo as g,Vt as h,Co as i,So as j,Wo as k,Po as l,Ut as m,Vo as n,Bt as o,P as p,_t as q,Lt as r,Ro as s,To as t,K as u,Fo as v,No as w,G as x,$o as y,Yt as z}; diff --git a/ui/assets/local/_app/immutable/chunks/write-actions-are-allowed.266r6g9i.js b/ui/assets/local/_app/immutable/chunks/write-actions-are-allowed.266r6g9i.js new file mode 100644 index 0000000000..5318ffe333 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/write-actions-are-allowed.266r6g9i.js @@ -0,0 +1 @@ +import{D as t}from"./scheduler.pPC3woXQ.js";import{s as e}from"./settings.MUdBGWnD.js";const a=(s=e)=>!t(s).disableWriteActions;export{a as w}; diff --git a/ui/assets/local/_app/immutable/chunks/write-actions-are-allowed.wbSpKvMt.js b/ui/assets/local/_app/immutable/chunks/write-actions-are-allowed.wbSpKvMt.js deleted file mode 100644 index 8408a6ce78..0000000000 --- a/ui/assets/local/_app/immutable/chunks/write-actions-are-allowed.wbSpKvMt.js +++ /dev/null @@ -1 +0,0 @@ -import{D as t}from"./scheduler.1T9hOnFr.js";import{s as e}from"./settings.-qnGn1Lq.js";const a=(s=e)=>!t(s).disableWriteActions;export{a as w}; diff --git a/ui/assets/local/_app/immutable/chunks/xml.0fzFNSxx.js b/ui/assets/local/_app/immutable/chunks/xml.0fzFNSxx.js new file mode 100644 index 0000000000..f68de81dae --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/xml.0fzFNSxx.js @@ -0,0 +1,6 @@ +import{m}from"./index.RJsVUSS8.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 + *-----------------------------------------------------------------------------*/var c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,r=(t,e,a,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of d(e))!p.call(t,n)&&n!==a&&c(t,n,{get:()=>e[n],enumerable:!(i=l(e,n))||i.enumerable});return t},s=(t,e,a)=>(r(t,e,"default"),a&&r(a,e,"default")),o={};s(o,m);var g={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:o.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:o.languages.IndentAction.Indent}}]},k={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"}],[/|<\/?script\s*\/?>?/i);if(p.length===0)return r.goToEnd(),g(T,z.Script);if(p==="")b=1;else if(p[1]!=="/")b===2&&(b=3);else if(b===3)b=2;else{r.goBack(p.length);break}}return s=B.WithinContent,Tu,getTokenOffset:()=>a,getTokenLength:()=>r.pos()-a,getTokenEnd:()=>r.pos(),getTokenText:()=>r.getSource().substring(a,r.pos()),getScannerState:()=>s,getTokenError:()=>o}}function ua(e,t){let n=0,i=e.length;if(i===0)return 0;for(;n0)r=s-1;else return s}return-(i+1)}var ca=class{get attributeNames(){return this.attributes?Object.keys(this.attributes):[]}constructor(e,t,n,i){this.start=e,this.end=t,this.children=n,this.parent=i,this.closed=!1}isSameTag(e){return this.tag===void 0?e===void 0:e!==void 0&&this.tag.length===e.length&&this.tag.toLowerCase()===e}get firstChild(){return this.children[0]}get lastChild(){return this.children.length?this.children[this.children.length-1]:void 0}findNodeBefore(e){const t=ua(this.children,n=>e<=n.start)-1;if(t>=0){const n=this.children[t];if(e>n.start){if(ee<=n.start)-1;if(t>=0){const n=this.children[t];if(e>n.start&&e<=n.end)return n.findNodeAt(e)}return this}},fu=class{constructor(e){this.dataManager=e}parseDocument(e){return this.parse(e.getText(),this.dataManager.getVoidElements(e.languageId))}parse(e,t){const n=fe(e,void 0,void 0,!0),i=new ca(0,e.length,[],void 0);let r=i,s=-1,a,u=null,o=n.scan();for(;o!==z.EOS;){switch(o){case z.StartTagOpen:const l=new ca(n.getTokenOffset(),e.length,[],r);r.children.push(l),r=l;break;case z.StartTag:r.tag=n.getTokenText();break;case z.StartTagClose:r.parent&&(r.end=n.getTokenEnd(),n.getTokenLength()?(r.startTagEnd=n.getTokenEnd(),r.tag&&this.dataManager.isVoidElement(r.tag,t)&&(r.closed=!0,r=r.parent)):r=r.parent);break;case z.StartTagSelfClose:r.parent&&(r.closed=!0,r.end=n.getTokenEnd(),r.startTagEnd=n.getTokenEnd(),r=r.parent);break;case z.EndTagOpen:s=n.getTokenOffset(),a=void 0;break;case z.EndTag:a=n.getTokenText().toLowerCase();break;case z.EndTagClose:let c=r;for(;!c.isSameTag(a)&&c.parent;)c=c.parent;if(c.parent){for(;r!==c;)r.end=s,r.closed=!1,r=r.parent;r.closed=!0,r.endTagStart=s,r.end=n.getTokenEnd(),r=r.parent}break;case z.AttributeName:{u=n.getTokenText();let d=r.attributes;d||(r.attributes=d={}),d[u]=null;break}case z.AttributeValue:{const d=n.getTokenText(),m=r.attributes;m&&u&&(m[u]=d,u=null);break}}o=n.scan()}for(;r.parent;)r.end=e.length,r.closed=!1,r=r.parent;return{roots:i.children,findNodeBefore:i.findNodeBefore.bind(i),findNodeAt:i.findNodeAt.bind(i)}}},St={"Aacute;":"Á",Aacute:"Á","aacute;":"á",aacute:"á","Abreve;":"Ă","abreve;":"ă","ac;":"∾","acd;":"∿","acE;":"∾̳","Acirc;":"Â",Acirc:"Â","acirc;":"â",acirc:"â","acute;":"´",acute:"´","Acy;":"А","acy;":"а","AElig;":"Æ",AElig:"Æ","aelig;":"æ",aelig:"æ","af;":"⁡","Afr;":"𝔄","afr;":"𝔞","Agrave;":"À",Agrave:"À","agrave;":"à",agrave:"à","alefsym;":"ℵ","aleph;":"ℵ","Alpha;":"Α","alpha;":"α","Amacr;":"Ā","amacr;":"ā","amalg;":"⨿","AMP;":"&",AMP:"&","amp;":"&",amp:"&","And;":"⩓","and;":"∧","andand;":"⩕","andd;":"⩜","andslope;":"⩘","andv;":"⩚","ang;":"∠","ange;":"⦤","angle;":"∠","angmsd;":"∡","angmsdaa;":"⦨","angmsdab;":"⦩","angmsdac;":"⦪","angmsdad;":"⦫","angmsdae;":"⦬","angmsdaf;":"⦭","angmsdag;":"⦮","angmsdah;":"⦯","angrt;":"∟","angrtvb;":"⊾","angrtvbd;":"⦝","angsph;":"∢","angst;":"Å","angzarr;":"⍼","Aogon;":"Ą","aogon;":"ą","Aopf;":"𝔸","aopf;":"𝕒","ap;":"≈","apacir;":"⩯","apE;":"⩰","ape;":"≊","apid;":"≋","apos;":"'","ApplyFunction;":"⁡","approx;":"≈","approxeq;":"≊","Aring;":"Å",Aring:"Å","aring;":"å",aring:"å","Ascr;":"𝒜","ascr;":"𝒶","Assign;":"≔","ast;":"*","asymp;":"≈","asympeq;":"≍","Atilde;":"Ã",Atilde:"Ã","atilde;":"ã",atilde:"ã","Auml;":"Ä",Auml:"Ä","auml;":"ä",auml:"ä","awconint;":"∳","awint;":"⨑","backcong;":"≌","backepsilon;":"϶","backprime;":"‵","backsim;":"∽","backsimeq;":"⋍","Backslash;":"∖","Barv;":"⫧","barvee;":"⊽","Barwed;":"⌆","barwed;":"⌅","barwedge;":"⌅","bbrk;":"⎵","bbrktbrk;":"⎶","bcong;":"≌","Bcy;":"Б","bcy;":"б","bdquo;":"„","becaus;":"∵","Because;":"∵","because;":"∵","bemptyv;":"⦰","bepsi;":"϶","bernou;":"ℬ","Bernoullis;":"ℬ","Beta;":"Β","beta;":"β","beth;":"ℶ","between;":"≬","Bfr;":"𝔅","bfr;":"𝔟","bigcap;":"⋂","bigcirc;":"◯","bigcup;":"⋃","bigodot;":"⨀","bigoplus;":"⨁","bigotimes;":"⨂","bigsqcup;":"⨆","bigstar;":"★","bigtriangledown;":"▽","bigtriangleup;":"△","biguplus;":"⨄","bigvee;":"⋁","bigwedge;":"⋀","bkarow;":"⤍","blacklozenge;":"⧫","blacksquare;":"▪","blacktriangle;":"▴","blacktriangledown;":"▾","blacktriangleleft;":"◂","blacktriangleright;":"▸","blank;":"␣","blk12;":"▒","blk14;":"░","blk34;":"▓","block;":"█","bne;":"=⃥","bnequiv;":"≡⃥","bNot;":"⫭","bnot;":"⌐","Bopf;":"𝔹","bopf;":"𝕓","bot;":"⊥","bottom;":"⊥","bowtie;":"⋈","boxbox;":"⧉","boxDL;":"╗","boxDl;":"╖","boxdL;":"╕","boxdl;":"┐","boxDR;":"╔","boxDr;":"╓","boxdR;":"╒","boxdr;":"┌","boxH;":"═","boxh;":"─","boxHD;":"╦","boxHd;":"╤","boxhD;":"╥","boxhd;":"┬","boxHU;":"╩","boxHu;":"╧","boxhU;":"╨","boxhu;":"┴","boxminus;":"⊟","boxplus;":"⊞","boxtimes;":"⊠","boxUL;":"╝","boxUl;":"╜","boxuL;":"╛","boxul;":"┘","boxUR;":"╚","boxUr;":"╙","boxuR;":"╘","boxur;":"└","boxV;":"║","boxv;":"│","boxVH;":"╬","boxVh;":"╫","boxvH;":"╪","boxvh;":"┼","boxVL;":"╣","boxVl;":"╢","boxvL;":"╡","boxvl;":"┤","boxVR;":"╠","boxVr;":"╟","boxvR;":"╞","boxvr;":"├","bprime;":"‵","Breve;":"˘","breve;":"˘","brvbar;":"¦",brvbar:"¦","Bscr;":"ℬ","bscr;":"𝒷","bsemi;":"⁏","bsim;":"∽","bsime;":"⋍","bsol;":"\\","bsolb;":"⧅","bsolhsub;":"⟈","bull;":"•","bullet;":"•","bump;":"≎","bumpE;":"⪮","bumpe;":"≏","Bumpeq;":"≎","bumpeq;":"≏","Cacute;":"Ć","cacute;":"ć","Cap;":"⋒","cap;":"∩","capand;":"⩄","capbrcup;":"⩉","capcap;":"⩋","capcup;":"⩇","capdot;":"⩀","CapitalDifferentialD;":"ⅅ","caps;":"∩︀","caret;":"⁁","caron;":"ˇ","Cayleys;":"ℭ","ccaps;":"⩍","Ccaron;":"Č","ccaron;":"č","Ccedil;":"Ç",Ccedil:"Ç","ccedil;":"ç",ccedil:"ç","Ccirc;":"Ĉ","ccirc;":"ĉ","Cconint;":"∰","ccups;":"⩌","ccupssm;":"⩐","Cdot;":"Ċ","cdot;":"ċ","cedil;":"¸",cedil:"¸","Cedilla;":"¸","cemptyv;":"⦲","cent;":"¢",cent:"¢","CenterDot;":"·","centerdot;":"·","Cfr;":"ℭ","cfr;":"𝔠","CHcy;":"Ч","chcy;":"ч","check;":"✓","checkmark;":"✓","Chi;":"Χ","chi;":"χ","cir;":"○","circ;":"ˆ","circeq;":"≗","circlearrowleft;":"↺","circlearrowright;":"↻","circledast;":"⊛","circledcirc;":"⊚","circleddash;":"⊝","CircleDot;":"⊙","circledR;":"®","circledS;":"Ⓢ","CircleMinus;":"⊖","CirclePlus;":"⊕","CircleTimes;":"⊗","cirE;":"⧃","cire;":"≗","cirfnint;":"⨐","cirmid;":"⫯","cirscir;":"⧂","ClockwiseContourIntegral;":"∲","CloseCurlyDoubleQuote;":"”","CloseCurlyQuote;":"’","clubs;":"♣","clubsuit;":"♣","Colon;":"∷","colon;":":","Colone;":"⩴","colone;":"≔","coloneq;":"≔","comma;":",","commat;":"@","comp;":"∁","compfn;":"∘","complement;":"∁","complexes;":"ℂ","cong;":"≅","congdot;":"⩭","Congruent;":"≡","Conint;":"∯","conint;":"∮","ContourIntegral;":"∮","Copf;":"ℂ","copf;":"𝕔","coprod;":"∐","Coproduct;":"∐","COPY;":"©",COPY:"©","copy;":"©",copy:"©","copysr;":"℗","CounterClockwiseContourIntegral;":"∳","crarr;":"↵","Cross;":"⨯","cross;":"✗","Cscr;":"𝒞","cscr;":"𝒸","csub;":"⫏","csube;":"⫑","csup;":"⫐","csupe;":"⫒","ctdot;":"⋯","cudarrl;":"⤸","cudarrr;":"⤵","cuepr;":"⋞","cuesc;":"⋟","cularr;":"↶","cularrp;":"⤽","Cup;":"⋓","cup;":"∪","cupbrcap;":"⩈","CupCap;":"≍","cupcap;":"⩆","cupcup;":"⩊","cupdot;":"⊍","cupor;":"⩅","cups;":"∪︀","curarr;":"↷","curarrm;":"⤼","curlyeqprec;":"⋞","curlyeqsucc;":"⋟","curlyvee;":"⋎","curlywedge;":"⋏","curren;":"¤",curren:"¤","curvearrowleft;":"↶","curvearrowright;":"↷","cuvee;":"⋎","cuwed;":"⋏","cwconint;":"∲","cwint;":"∱","cylcty;":"⌭","Dagger;":"‡","dagger;":"†","daleth;":"ℸ","Darr;":"↡","dArr;":"⇓","darr;":"↓","dash;":"‐","Dashv;":"⫤","dashv;":"⊣","dbkarow;":"⤏","dblac;":"˝","Dcaron;":"Ď","dcaron;":"ď","Dcy;":"Д","dcy;":"д","DD;":"ⅅ","dd;":"ⅆ","ddagger;":"‡","ddarr;":"⇊","DDotrahd;":"⤑","ddotseq;":"⩷","deg;":"°",deg:"°","Del;":"∇","Delta;":"Δ","delta;":"δ","demptyv;":"⦱","dfisht;":"⥿","Dfr;":"𝔇","dfr;":"𝔡","dHar;":"⥥","dharl;":"⇃","dharr;":"⇂","DiacriticalAcute;":"´","DiacriticalDot;":"˙","DiacriticalDoubleAcute;":"˝","DiacriticalGrave;":"`","DiacriticalTilde;":"˜","diam;":"⋄","Diamond;":"⋄","diamond;":"⋄","diamondsuit;":"♦","diams;":"♦","die;":"¨","DifferentialD;":"ⅆ","digamma;":"ϝ","disin;":"⋲","div;":"÷","divide;":"÷",divide:"÷","divideontimes;":"⋇","divonx;":"⋇","DJcy;":"Ђ","djcy;":"ђ","dlcorn;":"⌞","dlcrop;":"⌍","dollar;":"$","Dopf;":"𝔻","dopf;":"𝕕","Dot;":"¨","dot;":"˙","DotDot;":"⃜","doteq;":"≐","doteqdot;":"≑","DotEqual;":"≐","dotminus;":"∸","dotplus;":"∔","dotsquare;":"⊡","doublebarwedge;":"⌆","DoubleContourIntegral;":"∯","DoubleDot;":"¨","DoubleDownArrow;":"⇓","DoubleLeftArrow;":"⇐","DoubleLeftRightArrow;":"⇔","DoubleLeftTee;":"⫤","DoubleLongLeftArrow;":"⟸","DoubleLongLeftRightArrow;":"⟺","DoubleLongRightArrow;":"⟹","DoubleRightArrow;":"⇒","DoubleRightTee;":"⊨","DoubleUpArrow;":"⇑","DoubleUpDownArrow;":"⇕","DoubleVerticalBar;":"∥","DownArrow;":"↓","Downarrow;":"⇓","downarrow;":"↓","DownArrowBar;":"⤓","DownArrowUpArrow;":"⇵","DownBreve;":"̑","downdownarrows;":"⇊","downharpoonleft;":"⇃","downharpoonright;":"⇂","DownLeftRightVector;":"⥐","DownLeftTeeVector;":"⥞","DownLeftVector;":"↽","DownLeftVectorBar;":"⥖","DownRightTeeVector;":"⥟","DownRightVector;":"⇁","DownRightVectorBar;":"⥗","DownTee;":"⊤","DownTeeArrow;":"↧","drbkarow;":"⤐","drcorn;":"⌟","drcrop;":"⌌","Dscr;":"𝒟","dscr;":"𝒹","DScy;":"Ѕ","dscy;":"ѕ","dsol;":"⧶","Dstrok;":"Đ","dstrok;":"đ","dtdot;":"⋱","dtri;":"▿","dtrif;":"▾","duarr;":"⇵","duhar;":"⥯","dwangle;":"⦦","DZcy;":"Џ","dzcy;":"џ","dzigrarr;":"⟿","Eacute;":"É",Eacute:"É","eacute;":"é",eacute:"é","easter;":"⩮","Ecaron;":"Ě","ecaron;":"ě","ecir;":"≖","Ecirc;":"Ê",Ecirc:"Ê","ecirc;":"ê",ecirc:"ê","ecolon;":"≕","Ecy;":"Э","ecy;":"э","eDDot;":"⩷","Edot;":"Ė","eDot;":"≑","edot;":"ė","ee;":"ⅇ","efDot;":"≒","Efr;":"𝔈","efr;":"𝔢","eg;":"⪚","Egrave;":"È",Egrave:"È","egrave;":"è",egrave:"è","egs;":"⪖","egsdot;":"⪘","el;":"⪙","Element;":"∈","elinters;":"⏧","ell;":"ℓ","els;":"⪕","elsdot;":"⪗","Emacr;":"Ē","emacr;":"ē","empty;":"∅","emptyset;":"∅","EmptySmallSquare;":"◻","emptyv;":"∅","EmptyVerySmallSquare;":"▫","emsp;":" ","emsp13;":" ","emsp14;":" ","ENG;":"Ŋ","eng;":"ŋ","ensp;":" ","Eogon;":"Ę","eogon;":"ę","Eopf;":"𝔼","eopf;":"𝕖","epar;":"⋕","eparsl;":"⧣","eplus;":"⩱","epsi;":"ε","Epsilon;":"Ε","epsilon;":"ε","epsiv;":"ϵ","eqcirc;":"≖","eqcolon;":"≕","eqsim;":"≂","eqslantgtr;":"⪖","eqslantless;":"⪕","Equal;":"⩵","equals;":"=","EqualTilde;":"≂","equest;":"≟","Equilibrium;":"⇌","equiv;":"≡","equivDD;":"⩸","eqvparsl;":"⧥","erarr;":"⥱","erDot;":"≓","Escr;":"ℰ","escr;":"ℯ","esdot;":"≐","Esim;":"⩳","esim;":"≂","Eta;":"Η","eta;":"η","ETH;":"Ð",ETH:"Ð","eth;":"ð",eth:"ð","Euml;":"Ë",Euml:"Ë","euml;":"ë",euml:"ë","euro;":"€","excl;":"!","exist;":"∃","Exists;":"∃","expectation;":"ℰ","ExponentialE;":"ⅇ","exponentiale;":"ⅇ","fallingdotseq;":"≒","Fcy;":"Ф","fcy;":"ф","female;":"♀","ffilig;":"ffi","fflig;":"ff","ffllig;":"ffl","Ffr;":"𝔉","ffr;":"𝔣","filig;":"fi","FilledSmallSquare;":"◼","FilledVerySmallSquare;":"▪","fjlig;":"fj","flat;":"♭","fllig;":"fl","fltns;":"▱","fnof;":"ƒ","Fopf;":"𝔽","fopf;":"𝕗","ForAll;":"∀","forall;":"∀","fork;":"⋔","forkv;":"⫙","Fouriertrf;":"ℱ","fpartint;":"⨍","frac12;":"½",frac12:"½","frac13;":"⅓","frac14;":"¼",frac14:"¼","frac15;":"⅕","frac16;":"⅙","frac18;":"⅛","frac23;":"⅔","frac25;":"⅖","frac34;":"¾",frac34:"¾","frac35;":"⅗","frac38;":"⅜","frac45;":"⅘","frac56;":"⅚","frac58;":"⅝","frac78;":"⅞","frasl;":"⁄","frown;":"⌢","Fscr;":"ℱ","fscr;":"𝒻","gacute;":"ǵ","Gamma;":"Γ","gamma;":"γ","Gammad;":"Ϝ","gammad;":"ϝ","gap;":"⪆","Gbreve;":"Ğ","gbreve;":"ğ","Gcedil;":"Ģ","Gcirc;":"Ĝ","gcirc;":"ĝ","Gcy;":"Г","gcy;":"г","Gdot;":"Ġ","gdot;":"ġ","gE;":"≧","ge;":"≥","gEl;":"⪌","gel;":"⋛","geq;":"≥","geqq;":"≧","geqslant;":"⩾","ges;":"⩾","gescc;":"⪩","gesdot;":"⪀","gesdoto;":"⪂","gesdotol;":"⪄","gesl;":"⋛︀","gesles;":"⪔","Gfr;":"𝔊","gfr;":"𝔤","Gg;":"⋙","gg;":"≫","ggg;":"⋙","gimel;":"ℷ","GJcy;":"Ѓ","gjcy;":"ѓ","gl;":"≷","gla;":"⪥","glE;":"⪒","glj;":"⪤","gnap;":"⪊","gnapprox;":"⪊","gnE;":"≩","gne;":"⪈","gneq;":"⪈","gneqq;":"≩","gnsim;":"⋧","Gopf;":"𝔾","gopf;":"𝕘","grave;":"`","GreaterEqual;":"≥","GreaterEqualLess;":"⋛","GreaterFullEqual;":"≧","GreaterGreater;":"⪢","GreaterLess;":"≷","GreaterSlantEqual;":"⩾","GreaterTilde;":"≳","Gscr;":"𝒢","gscr;":"ℊ","gsim;":"≳","gsime;":"⪎","gsiml;":"⪐","GT;":">",GT:">","Gt;":"≫","gt;":">",gt:">","gtcc;":"⪧","gtcir;":"⩺","gtdot;":"⋗","gtlPar;":"⦕","gtquest;":"⩼","gtrapprox;":"⪆","gtrarr;":"⥸","gtrdot;":"⋗","gtreqless;":"⋛","gtreqqless;":"⪌","gtrless;":"≷","gtrsim;":"≳","gvertneqq;":"≩︀","gvnE;":"≩︀","Hacek;":"ˇ","hairsp;":" ","half;":"½","hamilt;":"ℋ","HARDcy;":"Ъ","hardcy;":"ъ","hArr;":"⇔","harr;":"↔","harrcir;":"⥈","harrw;":"↭","Hat;":"^","hbar;":"ℏ","Hcirc;":"Ĥ","hcirc;":"ĥ","hearts;":"♥","heartsuit;":"♥","hellip;":"…","hercon;":"⊹","Hfr;":"ℌ","hfr;":"𝔥","HilbertSpace;":"ℋ","hksearow;":"⤥","hkswarow;":"⤦","hoarr;":"⇿","homtht;":"∻","hookleftarrow;":"↩","hookrightarrow;":"↪","Hopf;":"ℍ","hopf;":"𝕙","horbar;":"―","HorizontalLine;":"─","Hscr;":"ℋ","hscr;":"𝒽","hslash;":"ℏ","Hstrok;":"Ħ","hstrok;":"ħ","HumpDownHump;":"≎","HumpEqual;":"≏","hybull;":"⁃","hyphen;":"‐","Iacute;":"Í",Iacute:"Í","iacute;":"í",iacute:"í","ic;":"⁣","Icirc;":"Î",Icirc:"Î","icirc;":"î",icirc:"î","Icy;":"И","icy;":"и","Idot;":"İ","IEcy;":"Е","iecy;":"е","iexcl;":"¡",iexcl:"¡","iff;":"⇔","Ifr;":"ℑ","ifr;":"𝔦","Igrave;":"Ì",Igrave:"Ì","igrave;":"ì",igrave:"ì","ii;":"ⅈ","iiiint;":"⨌","iiint;":"∭","iinfin;":"⧜","iiota;":"℩","IJlig;":"IJ","ijlig;":"ij","Im;":"ℑ","Imacr;":"Ī","imacr;":"ī","image;":"ℑ","ImaginaryI;":"ⅈ","imagline;":"ℐ","imagpart;":"ℑ","imath;":"ı","imof;":"⊷","imped;":"Ƶ","Implies;":"⇒","in;":"∈","incare;":"℅","infin;":"∞","infintie;":"⧝","inodot;":"ı","Int;":"∬","int;":"∫","intcal;":"⊺","integers;":"ℤ","Integral;":"∫","intercal;":"⊺","Intersection;":"⋂","intlarhk;":"⨗","intprod;":"⨼","InvisibleComma;":"⁣","InvisibleTimes;":"⁢","IOcy;":"Ё","iocy;":"ё","Iogon;":"Į","iogon;":"į","Iopf;":"𝕀","iopf;":"𝕚","Iota;":"Ι","iota;":"ι","iprod;":"⨼","iquest;":"¿",iquest:"¿","Iscr;":"ℐ","iscr;":"𝒾","isin;":"∈","isindot;":"⋵","isinE;":"⋹","isins;":"⋴","isinsv;":"⋳","isinv;":"∈","it;":"⁢","Itilde;":"Ĩ","itilde;":"ĩ","Iukcy;":"І","iukcy;":"і","Iuml;":"Ï",Iuml:"Ï","iuml;":"ï",iuml:"ï","Jcirc;":"Ĵ","jcirc;":"ĵ","Jcy;":"Й","jcy;":"й","Jfr;":"𝔍","jfr;":"𝔧","jmath;":"ȷ","Jopf;":"𝕁","jopf;":"𝕛","Jscr;":"𝒥","jscr;":"𝒿","Jsercy;":"Ј","jsercy;":"ј","Jukcy;":"Є","jukcy;":"є","Kappa;":"Κ","kappa;":"κ","kappav;":"ϰ","Kcedil;":"Ķ","kcedil;":"ķ","Kcy;":"К","kcy;":"к","Kfr;":"𝔎","kfr;":"𝔨","kgreen;":"ĸ","KHcy;":"Х","khcy;":"х","KJcy;":"Ќ","kjcy;":"ќ","Kopf;":"𝕂","kopf;":"𝕜","Kscr;":"𝒦","kscr;":"𝓀","lAarr;":"⇚","Lacute;":"Ĺ","lacute;":"ĺ","laemptyv;":"⦴","lagran;":"ℒ","Lambda;":"Λ","lambda;":"λ","Lang;":"⟪","lang;":"⟨","langd;":"⦑","langle;":"⟨","lap;":"⪅","Laplacetrf;":"ℒ","laquo;":"«",laquo:"«","Larr;":"↞","lArr;":"⇐","larr;":"←","larrb;":"⇤","larrbfs;":"⤟","larrfs;":"⤝","larrhk;":"↩","larrlp;":"↫","larrpl;":"⤹","larrsim;":"⥳","larrtl;":"↢","lat;":"⪫","lAtail;":"⤛","latail;":"⤙","late;":"⪭","lates;":"⪭︀","lBarr;":"⤎","lbarr;":"⤌","lbbrk;":"❲","lbrace;":"{","lbrack;":"[","lbrke;":"⦋","lbrksld;":"⦏","lbrkslu;":"⦍","Lcaron;":"Ľ","lcaron;":"ľ","Lcedil;":"Ļ","lcedil;":"ļ","lceil;":"⌈","lcub;":"{","Lcy;":"Л","lcy;":"л","ldca;":"⤶","ldquo;":"“","ldquor;":"„","ldrdhar;":"⥧","ldrushar;":"⥋","ldsh;":"↲","lE;":"≦","le;":"≤","LeftAngleBracket;":"⟨","LeftArrow;":"←","Leftarrow;":"⇐","leftarrow;":"←","LeftArrowBar;":"⇤","LeftArrowRightArrow;":"⇆","leftarrowtail;":"↢","LeftCeiling;":"⌈","LeftDoubleBracket;":"⟦","LeftDownTeeVector;":"⥡","LeftDownVector;":"⇃","LeftDownVectorBar;":"⥙","LeftFloor;":"⌊","leftharpoondown;":"↽","leftharpoonup;":"↼","leftleftarrows;":"⇇","LeftRightArrow;":"↔","Leftrightarrow;":"⇔","leftrightarrow;":"↔","leftrightarrows;":"⇆","leftrightharpoons;":"⇋","leftrightsquigarrow;":"↭","LeftRightVector;":"⥎","LeftTee;":"⊣","LeftTeeArrow;":"↤","LeftTeeVector;":"⥚","leftthreetimes;":"⋋","LeftTriangle;":"⊲","LeftTriangleBar;":"⧏","LeftTriangleEqual;":"⊴","LeftUpDownVector;":"⥑","LeftUpTeeVector;":"⥠","LeftUpVector;":"↿","LeftUpVectorBar;":"⥘","LeftVector;":"↼","LeftVectorBar;":"⥒","lEg;":"⪋","leg;":"⋚","leq;":"≤","leqq;":"≦","leqslant;":"⩽","les;":"⩽","lescc;":"⪨","lesdot;":"⩿","lesdoto;":"⪁","lesdotor;":"⪃","lesg;":"⋚︀","lesges;":"⪓","lessapprox;":"⪅","lessdot;":"⋖","lesseqgtr;":"⋚","lesseqqgtr;":"⪋","LessEqualGreater;":"⋚","LessFullEqual;":"≦","LessGreater;":"≶","lessgtr;":"≶","LessLess;":"⪡","lesssim;":"≲","LessSlantEqual;":"⩽","LessTilde;":"≲","lfisht;":"⥼","lfloor;":"⌊","Lfr;":"𝔏","lfr;":"𝔩","lg;":"≶","lgE;":"⪑","lHar;":"⥢","lhard;":"↽","lharu;":"↼","lharul;":"⥪","lhblk;":"▄","LJcy;":"Љ","ljcy;":"љ","Ll;":"⋘","ll;":"≪","llarr;":"⇇","llcorner;":"⌞","Lleftarrow;":"⇚","llhard;":"⥫","lltri;":"◺","Lmidot;":"Ŀ","lmidot;":"ŀ","lmoust;":"⎰","lmoustache;":"⎰","lnap;":"⪉","lnapprox;":"⪉","lnE;":"≨","lne;":"⪇","lneq;":"⪇","lneqq;":"≨","lnsim;":"⋦","loang;":"⟬","loarr;":"⇽","lobrk;":"⟦","LongLeftArrow;":"⟵","Longleftarrow;":"⟸","longleftarrow;":"⟵","LongLeftRightArrow;":"⟷","Longleftrightarrow;":"⟺","longleftrightarrow;":"⟷","longmapsto;":"⟼","LongRightArrow;":"⟶","Longrightarrow;":"⟹","longrightarrow;":"⟶","looparrowleft;":"↫","looparrowright;":"↬","lopar;":"⦅","Lopf;":"𝕃","lopf;":"𝕝","loplus;":"⨭","lotimes;":"⨴","lowast;":"∗","lowbar;":"_","LowerLeftArrow;":"↙","LowerRightArrow;":"↘","loz;":"◊","lozenge;":"◊","lozf;":"⧫","lpar;":"(","lparlt;":"⦓","lrarr;":"⇆","lrcorner;":"⌟","lrhar;":"⇋","lrhard;":"⥭","lrm;":"‎","lrtri;":"⊿","lsaquo;":"‹","Lscr;":"ℒ","lscr;":"𝓁","Lsh;":"↰","lsh;":"↰","lsim;":"≲","lsime;":"⪍","lsimg;":"⪏","lsqb;":"[","lsquo;":"‘","lsquor;":"‚","Lstrok;":"Ł","lstrok;":"ł","LT;":"<",LT:"<","Lt;":"≪","lt;":"<",lt:"<","ltcc;":"⪦","ltcir;":"⩹","ltdot;":"⋖","lthree;":"⋋","ltimes;":"⋉","ltlarr;":"⥶","ltquest;":"⩻","ltri;":"◃","ltrie;":"⊴","ltrif;":"◂","ltrPar;":"⦖","lurdshar;":"⥊","luruhar;":"⥦","lvertneqq;":"≨︀","lvnE;":"≨︀","macr;":"¯",macr:"¯","male;":"♂","malt;":"✠","maltese;":"✠","Map;":"⤅","map;":"↦","mapsto;":"↦","mapstodown;":"↧","mapstoleft;":"↤","mapstoup;":"↥","marker;":"▮","mcomma;":"⨩","Mcy;":"М","mcy;":"м","mdash;":"—","mDDot;":"∺","measuredangle;":"∡","MediumSpace;":" ","Mellintrf;":"ℳ","Mfr;":"𝔐","mfr;":"𝔪","mho;":"℧","micro;":"µ",micro:"µ","mid;":"∣","midast;":"*","midcir;":"⫰","middot;":"·",middot:"·","minus;":"−","minusb;":"⊟","minusd;":"∸","minusdu;":"⨪","MinusPlus;":"∓","mlcp;":"⫛","mldr;":"…","mnplus;":"∓","models;":"⊧","Mopf;":"𝕄","mopf;":"𝕞","mp;":"∓","Mscr;":"ℳ","mscr;":"𝓂","mstpos;":"∾","Mu;":"Μ","mu;":"μ","multimap;":"⊸","mumap;":"⊸","nabla;":"∇","Nacute;":"Ń","nacute;":"ń","nang;":"∠⃒","nap;":"≉","napE;":"⩰̸","napid;":"≋̸","napos;":"ʼn","napprox;":"≉","natur;":"♮","natural;":"♮","naturals;":"ℕ","nbsp;":" ",nbsp:" ","nbump;":"≎̸","nbumpe;":"≏̸","ncap;":"⩃","Ncaron;":"Ň","ncaron;":"ň","Ncedil;":"Ņ","ncedil;":"ņ","ncong;":"≇","ncongdot;":"⩭̸","ncup;":"⩂","Ncy;":"Н","ncy;":"н","ndash;":"–","ne;":"≠","nearhk;":"⤤","neArr;":"⇗","nearr;":"↗","nearrow;":"↗","nedot;":"≐̸","NegativeMediumSpace;":"​","NegativeThickSpace;":"​","NegativeThinSpace;":"​","NegativeVeryThinSpace;":"​","nequiv;":"≢","nesear;":"⤨","nesim;":"≂̸","NestedGreaterGreater;":"≫","NestedLessLess;":"≪","NewLine;":` +`,"nexist;":"∄","nexists;":"∄","Nfr;":"𝔑","nfr;":"𝔫","ngE;":"≧̸","nge;":"≱","ngeq;":"≱","ngeqq;":"≧̸","ngeqslant;":"⩾̸","nges;":"⩾̸","nGg;":"⋙̸","ngsim;":"≵","nGt;":"≫⃒","ngt;":"≯","ngtr;":"≯","nGtv;":"≫̸","nhArr;":"⇎","nharr;":"↮","nhpar;":"⫲","ni;":"∋","nis;":"⋼","nisd;":"⋺","niv;":"∋","NJcy;":"Њ","njcy;":"њ","nlArr;":"⇍","nlarr;":"↚","nldr;":"‥","nlE;":"≦̸","nle;":"≰","nLeftarrow;":"⇍","nleftarrow;":"↚","nLeftrightarrow;":"⇎","nleftrightarrow;":"↮","nleq;":"≰","nleqq;":"≦̸","nleqslant;":"⩽̸","nles;":"⩽̸","nless;":"≮","nLl;":"⋘̸","nlsim;":"≴","nLt;":"≪⃒","nlt;":"≮","nltri;":"⋪","nltrie;":"⋬","nLtv;":"≪̸","nmid;":"∤","NoBreak;":"⁠","NonBreakingSpace;":" ","Nopf;":"ℕ","nopf;":"𝕟","Not;":"⫬","not;":"¬",not:"¬","NotCongruent;":"≢","NotCupCap;":"≭","NotDoubleVerticalBar;":"∦","NotElement;":"∉","NotEqual;":"≠","NotEqualTilde;":"≂̸","NotExists;":"∄","NotGreater;":"≯","NotGreaterEqual;":"≱","NotGreaterFullEqual;":"≧̸","NotGreaterGreater;":"≫̸","NotGreaterLess;":"≹","NotGreaterSlantEqual;":"⩾̸","NotGreaterTilde;":"≵","NotHumpDownHump;":"≎̸","NotHumpEqual;":"≏̸","notin;":"∉","notindot;":"⋵̸","notinE;":"⋹̸","notinva;":"∉","notinvb;":"⋷","notinvc;":"⋶","NotLeftTriangle;":"⋪","NotLeftTriangleBar;":"⧏̸","NotLeftTriangleEqual;":"⋬","NotLess;":"≮","NotLessEqual;":"≰","NotLessGreater;":"≸","NotLessLess;":"≪̸","NotLessSlantEqual;":"⩽̸","NotLessTilde;":"≴","NotNestedGreaterGreater;":"⪢̸","NotNestedLessLess;":"⪡̸","notni;":"∌","notniva;":"∌","notnivb;":"⋾","notnivc;":"⋽","NotPrecedes;":"⊀","NotPrecedesEqual;":"⪯̸","NotPrecedesSlantEqual;":"⋠","NotReverseElement;":"∌","NotRightTriangle;":"⋫","NotRightTriangleBar;":"⧐̸","NotRightTriangleEqual;":"⋭","NotSquareSubset;":"⊏̸","NotSquareSubsetEqual;":"⋢","NotSquareSuperset;":"⊐̸","NotSquareSupersetEqual;":"⋣","NotSubset;":"⊂⃒","NotSubsetEqual;":"⊈","NotSucceeds;":"⊁","NotSucceedsEqual;":"⪰̸","NotSucceedsSlantEqual;":"⋡","NotSucceedsTilde;":"≿̸","NotSuperset;":"⊃⃒","NotSupersetEqual;":"⊉","NotTilde;":"≁","NotTildeEqual;":"≄","NotTildeFullEqual;":"≇","NotTildeTilde;":"≉","NotVerticalBar;":"∤","npar;":"∦","nparallel;":"∦","nparsl;":"⫽⃥","npart;":"∂̸","npolint;":"⨔","npr;":"⊀","nprcue;":"⋠","npre;":"⪯̸","nprec;":"⊀","npreceq;":"⪯̸","nrArr;":"⇏","nrarr;":"↛","nrarrc;":"⤳̸","nrarrw;":"↝̸","nRightarrow;":"⇏","nrightarrow;":"↛","nrtri;":"⋫","nrtrie;":"⋭","nsc;":"⊁","nsccue;":"⋡","nsce;":"⪰̸","Nscr;":"𝒩","nscr;":"𝓃","nshortmid;":"∤","nshortparallel;":"∦","nsim;":"≁","nsime;":"≄","nsimeq;":"≄","nsmid;":"∤","nspar;":"∦","nsqsube;":"⋢","nsqsupe;":"⋣","nsub;":"⊄","nsubE;":"⫅̸","nsube;":"⊈","nsubset;":"⊂⃒","nsubseteq;":"⊈","nsubseteqq;":"⫅̸","nsucc;":"⊁","nsucceq;":"⪰̸","nsup;":"⊅","nsupE;":"⫆̸","nsupe;":"⊉","nsupset;":"⊃⃒","nsupseteq;":"⊉","nsupseteqq;":"⫆̸","ntgl;":"≹","Ntilde;":"Ñ",Ntilde:"Ñ","ntilde;":"ñ",ntilde:"ñ","ntlg;":"≸","ntriangleleft;":"⋪","ntrianglelefteq;":"⋬","ntriangleright;":"⋫","ntrianglerighteq;":"⋭","Nu;":"Ν","nu;":"ν","num;":"#","numero;":"№","numsp;":" ","nvap;":"≍⃒","nVDash;":"⊯","nVdash;":"⊮","nvDash;":"⊭","nvdash;":"⊬","nvge;":"≥⃒","nvgt;":">⃒","nvHarr;":"⤄","nvinfin;":"⧞","nvlArr;":"⤂","nvle;":"≤⃒","nvlt;":"<⃒","nvltrie;":"⊴⃒","nvrArr;":"⤃","nvrtrie;":"⊵⃒","nvsim;":"∼⃒","nwarhk;":"⤣","nwArr;":"⇖","nwarr;":"↖","nwarrow;":"↖","nwnear;":"⤧","Oacute;":"Ó",Oacute:"Ó","oacute;":"ó",oacute:"ó","oast;":"⊛","ocir;":"⊚","Ocirc;":"Ô",Ocirc:"Ô","ocirc;":"ô",ocirc:"ô","Ocy;":"О","ocy;":"о","odash;":"⊝","Odblac;":"Ő","odblac;":"ő","odiv;":"⨸","odot;":"⊙","odsold;":"⦼","OElig;":"Œ","oelig;":"œ","ofcir;":"⦿","Ofr;":"𝔒","ofr;":"𝔬","ogon;":"˛","Ograve;":"Ò",Ograve:"Ò","ograve;":"ò",ograve:"ò","ogt;":"⧁","ohbar;":"⦵","ohm;":"Ω","oint;":"∮","olarr;":"↺","olcir;":"⦾","olcross;":"⦻","oline;":"‾","olt;":"⧀","Omacr;":"Ō","omacr;":"ō","Omega;":"Ω","omega;":"ω","Omicron;":"Ο","omicron;":"ο","omid;":"⦶","ominus;":"⊖","Oopf;":"𝕆","oopf;":"𝕠","opar;":"⦷","OpenCurlyDoubleQuote;":"“","OpenCurlyQuote;":"‘","operp;":"⦹","oplus;":"⊕","Or;":"⩔","or;":"∨","orarr;":"↻","ord;":"⩝","order;":"ℴ","orderof;":"ℴ","ordf;":"ª",ordf:"ª","ordm;":"º",ordm:"º","origof;":"⊶","oror;":"⩖","orslope;":"⩗","orv;":"⩛","oS;":"Ⓢ","Oscr;":"𝒪","oscr;":"ℴ","Oslash;":"Ø",Oslash:"Ø","oslash;":"ø",oslash:"ø","osol;":"⊘","Otilde;":"Õ",Otilde:"Õ","otilde;":"õ",otilde:"õ","Otimes;":"⨷","otimes;":"⊗","otimesas;":"⨶","Ouml;":"Ö",Ouml:"Ö","ouml;":"ö",ouml:"ö","ovbar;":"⌽","OverBar;":"‾","OverBrace;":"⏞","OverBracket;":"⎴","OverParenthesis;":"⏜","par;":"∥","para;":"¶",para:"¶","parallel;":"∥","parsim;":"⫳","parsl;":"⫽","part;":"∂","PartialD;":"∂","Pcy;":"П","pcy;":"п","percnt;":"%","period;":".","permil;":"‰","perp;":"⊥","pertenk;":"‱","Pfr;":"𝔓","pfr;":"𝔭","Phi;":"Φ","phi;":"φ","phiv;":"ϕ","phmmat;":"ℳ","phone;":"☎","Pi;":"Π","pi;":"π","pitchfork;":"⋔","piv;":"ϖ","planck;":"ℏ","planckh;":"ℎ","plankv;":"ℏ","plus;":"+","plusacir;":"⨣","plusb;":"⊞","pluscir;":"⨢","plusdo;":"∔","plusdu;":"⨥","pluse;":"⩲","PlusMinus;":"±","plusmn;":"±",plusmn:"±","plussim;":"⨦","plustwo;":"⨧","pm;":"±","Poincareplane;":"ℌ","pointint;":"⨕","Popf;":"ℙ","popf;":"𝕡","pound;":"£",pound:"£","Pr;":"⪻","pr;":"≺","prap;":"⪷","prcue;":"≼","prE;":"⪳","pre;":"⪯","prec;":"≺","precapprox;":"⪷","preccurlyeq;":"≼","Precedes;":"≺","PrecedesEqual;":"⪯","PrecedesSlantEqual;":"≼","PrecedesTilde;":"≾","preceq;":"⪯","precnapprox;":"⪹","precneqq;":"⪵","precnsim;":"⋨","precsim;":"≾","Prime;":"″","prime;":"′","primes;":"ℙ","prnap;":"⪹","prnE;":"⪵","prnsim;":"⋨","prod;":"∏","Product;":"∏","profalar;":"⌮","profline;":"⌒","profsurf;":"⌓","prop;":"∝","Proportion;":"∷","Proportional;":"∝","propto;":"∝","prsim;":"≾","prurel;":"⊰","Pscr;":"𝒫","pscr;":"𝓅","Psi;":"Ψ","psi;":"ψ","puncsp;":" ","Qfr;":"𝔔","qfr;":"𝔮","qint;":"⨌","Qopf;":"ℚ","qopf;":"𝕢","qprime;":"⁗","Qscr;":"𝒬","qscr;":"𝓆","quaternions;":"ℍ","quatint;":"⨖","quest;":"?","questeq;":"≟","QUOT;":'"',QUOT:'"',"quot;":'"',quot:'"',"rAarr;":"⇛","race;":"∽̱","Racute;":"Ŕ","racute;":"ŕ","radic;":"√","raemptyv;":"⦳","Rang;":"⟫","rang;":"⟩","rangd;":"⦒","range;":"⦥","rangle;":"⟩","raquo;":"»",raquo:"»","Rarr;":"↠","rArr;":"⇒","rarr;":"→","rarrap;":"⥵","rarrb;":"⇥","rarrbfs;":"⤠","rarrc;":"⤳","rarrfs;":"⤞","rarrhk;":"↪","rarrlp;":"↬","rarrpl;":"⥅","rarrsim;":"⥴","Rarrtl;":"⤖","rarrtl;":"↣","rarrw;":"↝","rAtail;":"⤜","ratail;":"⤚","ratio;":"∶","rationals;":"ℚ","RBarr;":"⤐","rBarr;":"⤏","rbarr;":"⤍","rbbrk;":"❳","rbrace;":"}","rbrack;":"]","rbrke;":"⦌","rbrksld;":"⦎","rbrkslu;":"⦐","Rcaron;":"Ř","rcaron;":"ř","Rcedil;":"Ŗ","rcedil;":"ŗ","rceil;":"⌉","rcub;":"}","Rcy;":"Р","rcy;":"р","rdca;":"⤷","rdldhar;":"⥩","rdquo;":"”","rdquor;":"”","rdsh;":"↳","Re;":"ℜ","real;":"ℜ","realine;":"ℛ","realpart;":"ℜ","reals;":"ℝ","rect;":"▭","REG;":"®",REG:"®","reg;":"®",reg:"®","ReverseElement;":"∋","ReverseEquilibrium;":"⇋","ReverseUpEquilibrium;":"⥯","rfisht;":"⥽","rfloor;":"⌋","Rfr;":"ℜ","rfr;":"𝔯","rHar;":"⥤","rhard;":"⇁","rharu;":"⇀","rharul;":"⥬","Rho;":"Ρ","rho;":"ρ","rhov;":"ϱ","RightAngleBracket;":"⟩","RightArrow;":"→","Rightarrow;":"⇒","rightarrow;":"→","RightArrowBar;":"⇥","RightArrowLeftArrow;":"⇄","rightarrowtail;":"↣","RightCeiling;":"⌉","RightDoubleBracket;":"⟧","RightDownTeeVector;":"⥝","RightDownVector;":"⇂","RightDownVectorBar;":"⥕","RightFloor;":"⌋","rightharpoondown;":"⇁","rightharpoonup;":"⇀","rightleftarrows;":"⇄","rightleftharpoons;":"⇌","rightrightarrows;":"⇉","rightsquigarrow;":"↝","RightTee;":"⊢","RightTeeArrow;":"↦","RightTeeVector;":"⥛","rightthreetimes;":"⋌","RightTriangle;":"⊳","RightTriangleBar;":"⧐","RightTriangleEqual;":"⊵","RightUpDownVector;":"⥏","RightUpTeeVector;":"⥜","RightUpVector;":"↾","RightUpVectorBar;":"⥔","RightVector;":"⇀","RightVectorBar;":"⥓","ring;":"˚","risingdotseq;":"≓","rlarr;":"⇄","rlhar;":"⇌","rlm;":"‏","rmoust;":"⎱","rmoustache;":"⎱","rnmid;":"⫮","roang;":"⟭","roarr;":"⇾","robrk;":"⟧","ropar;":"⦆","Ropf;":"ℝ","ropf;":"𝕣","roplus;":"⨮","rotimes;":"⨵","RoundImplies;":"⥰","rpar;":")","rpargt;":"⦔","rppolint;":"⨒","rrarr;":"⇉","Rrightarrow;":"⇛","rsaquo;":"›","Rscr;":"ℛ","rscr;":"𝓇","Rsh;":"↱","rsh;":"↱","rsqb;":"]","rsquo;":"’","rsquor;":"’","rthree;":"⋌","rtimes;":"⋊","rtri;":"▹","rtrie;":"⊵","rtrif;":"▸","rtriltri;":"⧎","RuleDelayed;":"⧴","ruluhar;":"⥨","rx;":"℞","Sacute;":"Ś","sacute;":"ś","sbquo;":"‚","Sc;":"⪼","sc;":"≻","scap;":"⪸","Scaron;":"Š","scaron;":"š","sccue;":"≽","scE;":"⪴","sce;":"⪰","Scedil;":"Ş","scedil;":"ş","Scirc;":"Ŝ","scirc;":"ŝ","scnap;":"⪺","scnE;":"⪶","scnsim;":"⋩","scpolint;":"⨓","scsim;":"≿","Scy;":"С","scy;":"с","sdot;":"⋅","sdotb;":"⊡","sdote;":"⩦","searhk;":"⤥","seArr;":"⇘","searr;":"↘","searrow;":"↘","sect;":"§",sect:"§","semi;":";","seswar;":"⤩","setminus;":"∖","setmn;":"∖","sext;":"✶","Sfr;":"𝔖","sfr;":"𝔰","sfrown;":"⌢","sharp;":"♯","SHCHcy;":"Щ","shchcy;":"щ","SHcy;":"Ш","shcy;":"ш","ShortDownArrow;":"↓","ShortLeftArrow;":"←","shortmid;":"∣","shortparallel;":"∥","ShortRightArrow;":"→","ShortUpArrow;":"↑","shy;":"­",shy:"­","Sigma;":"Σ","sigma;":"σ","sigmaf;":"ς","sigmav;":"ς","sim;":"∼","simdot;":"⩪","sime;":"≃","simeq;":"≃","simg;":"⪞","simgE;":"⪠","siml;":"⪝","simlE;":"⪟","simne;":"≆","simplus;":"⨤","simrarr;":"⥲","slarr;":"←","SmallCircle;":"∘","smallsetminus;":"∖","smashp;":"⨳","smeparsl;":"⧤","smid;":"∣","smile;":"⌣","smt;":"⪪","smte;":"⪬","smtes;":"⪬︀","SOFTcy;":"Ь","softcy;":"ь","sol;":"/","solb;":"⧄","solbar;":"⌿","Sopf;":"𝕊","sopf;":"𝕤","spades;":"♠","spadesuit;":"♠","spar;":"∥","sqcap;":"⊓","sqcaps;":"⊓︀","sqcup;":"⊔","sqcups;":"⊔︀","Sqrt;":"√","sqsub;":"⊏","sqsube;":"⊑","sqsubset;":"⊏","sqsubseteq;":"⊑","sqsup;":"⊐","sqsupe;":"⊒","sqsupset;":"⊐","sqsupseteq;":"⊒","squ;":"□","Square;":"□","square;":"□","SquareIntersection;":"⊓","SquareSubset;":"⊏","SquareSubsetEqual;":"⊑","SquareSuperset;":"⊐","SquareSupersetEqual;":"⊒","SquareUnion;":"⊔","squarf;":"▪","squf;":"▪","srarr;":"→","Sscr;":"𝒮","sscr;":"𝓈","ssetmn;":"∖","ssmile;":"⌣","sstarf;":"⋆","Star;":"⋆","star;":"☆","starf;":"★","straightepsilon;":"ϵ","straightphi;":"ϕ","strns;":"¯","Sub;":"⋐","sub;":"⊂","subdot;":"⪽","subE;":"⫅","sube;":"⊆","subedot;":"⫃","submult;":"⫁","subnE;":"⫋","subne;":"⊊","subplus;":"⪿","subrarr;":"⥹","Subset;":"⋐","subset;":"⊂","subseteq;":"⊆","subseteqq;":"⫅","SubsetEqual;":"⊆","subsetneq;":"⊊","subsetneqq;":"⫋","subsim;":"⫇","subsub;":"⫕","subsup;":"⫓","succ;":"≻","succapprox;":"⪸","succcurlyeq;":"≽","Succeeds;":"≻","SucceedsEqual;":"⪰","SucceedsSlantEqual;":"≽","SucceedsTilde;":"≿","succeq;":"⪰","succnapprox;":"⪺","succneqq;":"⪶","succnsim;":"⋩","succsim;":"≿","SuchThat;":"∋","Sum;":"∑","sum;":"∑","sung;":"♪","Sup;":"⋑","sup;":"⊃","sup1;":"¹",sup1:"¹","sup2;":"²",sup2:"²","sup3;":"³",sup3:"³","supdot;":"⪾","supdsub;":"⫘","supE;":"⫆","supe;":"⊇","supedot;":"⫄","Superset;":"⊃","SupersetEqual;":"⊇","suphsol;":"⟉","suphsub;":"⫗","suplarr;":"⥻","supmult;":"⫂","supnE;":"⫌","supne;":"⊋","supplus;":"⫀","Supset;":"⋑","supset;":"⊃","supseteq;":"⊇","supseteqq;":"⫆","supsetneq;":"⊋","supsetneqq;":"⫌","supsim;":"⫈","supsub;":"⫔","supsup;":"⫖","swarhk;":"⤦","swArr;":"⇙","swarr;":"↙","swarrow;":"↙","swnwar;":"⤪","szlig;":"ß",szlig:"ß","Tab;":" ","target;":"⌖","Tau;":"Τ","tau;":"τ","tbrk;":"⎴","Tcaron;":"Ť","tcaron;":"ť","Tcedil;":"Ţ","tcedil;":"ţ","Tcy;":"Т","tcy;":"т","tdot;":"⃛","telrec;":"⌕","Tfr;":"𝔗","tfr;":"𝔱","there4;":"∴","Therefore;":"∴","therefore;":"∴","Theta;":"Θ","theta;":"θ","thetasym;":"ϑ","thetav;":"ϑ","thickapprox;":"≈","thicksim;":"∼","ThickSpace;":"  ","thinsp;":" ","ThinSpace;":" ","thkap;":"≈","thksim;":"∼","THORN;":"Þ",THORN:"Þ","thorn;":"þ",thorn:"þ","Tilde;":"∼","tilde;":"˜","TildeEqual;":"≃","TildeFullEqual;":"≅","TildeTilde;":"≈","times;":"×",times:"×","timesb;":"⊠","timesbar;":"⨱","timesd;":"⨰","tint;":"∭","toea;":"⤨","top;":"⊤","topbot;":"⌶","topcir;":"⫱","Topf;":"𝕋","topf;":"𝕥","topfork;":"⫚","tosa;":"⤩","tprime;":"‴","TRADE;":"™","trade;":"™","triangle;":"▵","triangledown;":"▿","triangleleft;":"◃","trianglelefteq;":"⊴","triangleq;":"≜","triangleright;":"▹","trianglerighteq;":"⊵","tridot;":"◬","trie;":"≜","triminus;":"⨺","TripleDot;":"⃛","triplus;":"⨹","trisb;":"⧍","tritime;":"⨻","trpezium;":"⏢","Tscr;":"𝒯","tscr;":"𝓉","TScy;":"Ц","tscy;":"ц","TSHcy;":"Ћ","tshcy;":"ћ","Tstrok;":"Ŧ","tstrok;":"ŧ","twixt;":"≬","twoheadleftarrow;":"↞","twoheadrightarrow;":"↠","Uacute;":"Ú",Uacute:"Ú","uacute;":"ú",uacute:"ú","Uarr;":"↟","uArr;":"⇑","uarr;":"↑","Uarrocir;":"⥉","Ubrcy;":"Ў","ubrcy;":"ў","Ubreve;":"Ŭ","ubreve;":"ŭ","Ucirc;":"Û",Ucirc:"Û","ucirc;":"û",ucirc:"û","Ucy;":"У","ucy;":"у","udarr;":"⇅","Udblac;":"Ű","udblac;":"ű","udhar;":"⥮","ufisht;":"⥾","Ufr;":"𝔘","ufr;":"𝔲","Ugrave;":"Ù",Ugrave:"Ù","ugrave;":"ù",ugrave:"ù","uHar;":"⥣","uharl;":"↿","uharr;":"↾","uhblk;":"▀","ulcorn;":"⌜","ulcorner;":"⌜","ulcrop;":"⌏","ultri;":"◸","Umacr;":"Ū","umacr;":"ū","uml;":"¨",uml:"¨","UnderBar;":"_","UnderBrace;":"⏟","UnderBracket;":"⎵","UnderParenthesis;":"⏝","Union;":"⋃","UnionPlus;":"⊎","Uogon;":"Ų","uogon;":"ų","Uopf;":"𝕌","uopf;":"𝕦","UpArrow;":"↑","Uparrow;":"⇑","uparrow;":"↑","UpArrowBar;":"⤒","UpArrowDownArrow;":"⇅","UpDownArrow;":"↕","Updownarrow;":"⇕","updownarrow;":"↕","UpEquilibrium;":"⥮","upharpoonleft;":"↿","upharpoonright;":"↾","uplus;":"⊎","UpperLeftArrow;":"↖","UpperRightArrow;":"↗","Upsi;":"ϒ","upsi;":"υ","upsih;":"ϒ","Upsilon;":"Υ","upsilon;":"υ","UpTee;":"⊥","UpTeeArrow;":"↥","upuparrows;":"⇈","urcorn;":"⌝","urcorner;":"⌝","urcrop;":"⌎","Uring;":"Ů","uring;":"ů","urtri;":"◹","Uscr;":"𝒰","uscr;":"𝓊","utdot;":"⋰","Utilde;":"Ũ","utilde;":"ũ","utri;":"▵","utrif;":"▴","uuarr;":"⇈","Uuml;":"Ü",Uuml:"Ü","uuml;":"ü",uuml:"ü","uwangle;":"⦧","vangrt;":"⦜","varepsilon;":"ϵ","varkappa;":"ϰ","varnothing;":"∅","varphi;":"ϕ","varpi;":"ϖ","varpropto;":"∝","vArr;":"⇕","varr;":"↕","varrho;":"ϱ","varsigma;":"ς","varsubsetneq;":"⊊︀","varsubsetneqq;":"⫋︀","varsupsetneq;":"⊋︀","varsupsetneqq;":"⫌︀","vartheta;":"ϑ","vartriangleleft;":"⊲","vartriangleright;":"⊳","Vbar;":"⫫","vBar;":"⫨","vBarv;":"⫩","Vcy;":"В","vcy;":"в","VDash;":"⊫","Vdash;":"⊩","vDash;":"⊨","vdash;":"⊢","Vdashl;":"⫦","Vee;":"⋁","vee;":"∨","veebar;":"⊻","veeeq;":"≚","vellip;":"⋮","Verbar;":"‖","verbar;":"|","Vert;":"‖","vert;":"|","VerticalBar;":"∣","VerticalLine;":"|","VerticalSeparator;":"❘","VerticalTilde;":"≀","VeryThinSpace;":" ","Vfr;":"𝔙","vfr;":"𝔳","vltri;":"⊲","vnsub;":"⊂⃒","vnsup;":"⊃⃒","Vopf;":"𝕍","vopf;":"𝕧","vprop;":"∝","vrtri;":"⊳","Vscr;":"𝒱","vscr;":"𝓋","vsubnE;":"⫋︀","vsubne;":"⊊︀","vsupnE;":"⫌︀","vsupne;":"⊋︀","Vvdash;":"⊪","vzigzag;":"⦚","Wcirc;":"Ŵ","wcirc;":"ŵ","wedbar;":"⩟","Wedge;":"⋀","wedge;":"∧","wedgeq;":"≙","weierp;":"℘","Wfr;":"𝔚","wfr;":"𝔴","Wopf;":"𝕎","wopf;":"𝕨","wp;":"℘","wr;":"≀","wreath;":"≀","Wscr;":"𝒲","wscr;":"𝓌","xcap;":"⋂","xcirc;":"◯","xcup;":"⋃","xdtri;":"▽","Xfr;":"𝔛","xfr;":"𝔵","xhArr;":"⟺","xharr;":"⟷","Xi;":"Ξ","xi;":"ξ","xlArr;":"⟸","xlarr;":"⟵","xmap;":"⟼","xnis;":"⋻","xodot;":"⨀","Xopf;":"𝕏","xopf;":"𝕩","xoplus;":"⨁","xotime;":"⨂","xrArr;":"⟹","xrarr;":"⟶","Xscr;":"𝒳","xscr;":"𝓍","xsqcup;":"⨆","xuplus;":"⨄","xutri;":"△","xvee;":"⋁","xwedge;":"⋀","Yacute;":"Ý",Yacute:"Ý","yacute;":"ý",yacute:"ý","YAcy;":"Я","yacy;":"я","Ycirc;":"Ŷ","ycirc;":"ŷ","Ycy;":"Ы","ycy;":"ы","yen;":"¥",yen:"¥","Yfr;":"𝔜","yfr;":"𝔶","YIcy;":"Ї","yicy;":"ї","Yopf;":"𝕐","yopf;":"𝕪","Yscr;":"𝒴","yscr;":"𝓎","YUcy;":"Ю","yucy;":"ю","Yuml;":"Ÿ","yuml;":"ÿ",yuml:"ÿ","Zacute;":"Ź","zacute;":"ź","Zcaron;":"Ž","zcaron;":"ž","Zcy;":"З","zcy;":"з","Zdot;":"Ż","zdot;":"ż","zeetrf;":"ℨ","ZeroWidthSpace;":"​","Zeta;":"Ζ","zeta;":"ζ","Zfr;":"ℨ","zfr;":"𝔷","ZHcy;":"Ж","zhcy;":"ж","zigrarr;":"⇝","Zopf;":"ℤ","zopf;":"𝕫","Zscr;":"𝒵","zscr;":"𝓏","zwj;":"‍","zwnj;":"‌"};function Ve(e,t){if(e.length0?e.lastIndexOf(t)===n:n===0?e===t:!1}function ha(e,t){let n="";for(;t>0;)(t&1)===1&&(n+=e),e+=e,t=t>>>1;return n}var gu=97,bu=122,_u=65,wu=90,vu=48,yu=57;function Lt(e,t){const n=e.charCodeAt(t);return gu<=n&&n<=bu||_u<=n&&n<=wu||vu<=n&&n<=yu}function en(e){return typeof e<"u"}function xu(e){if(e)return typeof e=="string"?{kind:"markdown",value:e}:{kind:"markdown",value:e.value}}var da=class{isApplicable(){return!0}constructor(e,t){this.id=e,this._tags=[],this._tagMap={},this._valueSetMap={},this._tags=t.tags||[],this._globalAttributes=t.globalAttributes||[],this._tags.forEach(n=>{this._tagMap[n.name.toLowerCase()]=n}),t.valueSets&&t.valueSets.forEach(n=>{this._valueSetMap[n.name]=n.values})}getId(){return this.id}provideTags(){return this._tags}provideAttributes(e){const t=[],n=r=>{t.push(r)},i=this._tagMap[e.toLowerCase()];return i&&i.attributes.forEach(n),this._globalAttributes.forEach(n),t}provideValues(e,t){const n=[];t=t.toLowerCase();const i=s=>{s.forEach(a=>{a.name.toLowerCase()===t&&(a.values&&a.values.forEach(u=>{n.push(u)}),a.valueSet&&this._valueSetMap[a.valueSet]&&this._valueSetMap[a.valueSet].forEach(u=>{n.push(u)}))})},r=this._tagMap[e.toLowerCase()];return r&&i(r.attributes),i(this._globalAttributes),n}};function Qe(e,t={},n){const i={kind:n?"markdown":"plaintext",value:""};if(e.description&&t.documentation!==!1){const r=xu(e.description);r&&(i.value+=r.value)}if(e.references&&e.references.length>0&&t.references!==!1&&(i.value.length&&(i.value+=` + +`),n?i.value+=e.references.map(r=>`[${r.name}](${r.url})`).join(" | "):i.value+=e.references.map(r=>`${r.name}: ${r.url}`).join(` +`)),i.value!=="")return i}var Tu=class{constructor(e,t){this.dataManager=e,this.readDirectory=t,this.atributeCompletions=[]}onHtmlAttributeValue(e){this.dataManager.isPathAttribute(e.tag,e.attribute)&&this.atributeCompletions.push(e)}async computeCompletions(e,t){const n={items:[],isIncomplete:!1};for(const i of this.atributeCompletions){const r=Au(e.getText(i.range));if(Su(r))if(r==="."||r==="..")n.isIncomplete=!0;else{const s=Lu(i.value,r,i.range),a=await this.providePathSuggestions(i.value,s,e,t);for(const u of a)n.items.push(u)}}return n}async providePathSuggestions(e,t,n,i){const r=e.substring(0,e.lastIndexOf("/")+1);let s=i.resolveReference(r||".",n.uri);if(s)try{const a=[],u=await this.readDirectory(s);for(const[o,l]of u)o.charCodeAt(0)!==ku&&a.push(Cu(o,l===ii.Directory,t));return a}catch{}return[]}},ku=46;function Au(e){return Ve(e,"'")||Ve(e,'"')?e.slice(1,-1):e}function Su(e){return!(Ve(e,"http")||Ve(e,"https")||Ve(e,"//"))}function Lu(e,t,n){let i;const r=e.lastIndexOf("/");if(r===-1)i=Eu(n,1,-1);else{const s=t.slice(r+1),a=Ct(n.end,-1-s.length),u=s.indexOf(" ");let o;u!==-1?o=Ct(a,u):o=Ct(n.end,-1),i=j.create(a,o)}return i}function Cu(e,t,n){return t?(e=e+"/",{label:e,kind:he.Folder,textEdit:se.replace(n,e),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}):{label:e,kind:he.File,textEdit:se.replace(n,e)}}function Ct(e,t){return ie.create(e.line,e.character+t)}function Eu(e,t,n){const i=Ct(e.start,t),r=Ct(e.end,n);return j.create(i,r)}var Ru=class{constructor(e,t){this.lsOptions=e,this.dataManager=t,this.completionParticipants=[]}setCompletionParticipants(e){this.completionParticipants=e||[]}async doComplete2(e,t,n,i,r){if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return this.doComplete(e,t,n,r);const s=new Tu(this.dataManager,this.lsOptions.fileSystemProvider.readDirectory),a=this.completionParticipants;this.completionParticipants=[s].concat(a);const u=this.doComplete(e,t,n,r);try{const o=await s.computeCompletions(e,i);return{isIncomplete:u.isIncomplete||o.isIncomplete,items:o.items.concat(u.items)}}finally{this.completionParticipants=a}}doComplete(e,t,n,i){const r=this._doComplete(e,t,n,i);return this.convertCompletionList(r)}_doComplete(e,t,n,i){const r={isIncomplete:!1,items:[]},s=this.completionParticipants,a=this.dataManager.getDataProviders().filter(y=>y.isApplicable(e.languageId)&&(!i||i[y.getId()]!==!1)),u=this.dataManager.getVoidElements(a),o=this.doesSupportMarkdown(),l=e.getText(),c=e.offsetAt(t),d=n.findNodeBefore(c);if(!d)return r;const m=fe(l,d.start);let f="",w;function g(y,C=c){return y>c&&(y=c),{start:e.positionAt(y),end:e.positionAt(C)}}function S(y,C){const N=g(y,C);return a.forEach(I=>{I.provideTags().forEach(P=>{r.items.push({label:P.name,kind:he.Property,documentation:Qe(P,void 0,o),textEdit:se.replace(N,P.name),insertTextFormat:Te.PlainText})})}),r}function x(y){let C=y;for(;C>0;){const N=l.charAt(C-1);if(` +\r`.indexOf(N)>=0)return l.substring(C,y);if(!tn(N))return null;C--}return l.substring(0,y)}function T(y,C,N=c){const I=g(y,N),P=ma(l,N,B.WithinEndTag,z.EndTagClose)?"":">";let U=d;for(C&&(U=U.parent);U;){const W=U.tag;if(W&&(!U.closed||U.endTagStart&&U.endTagStart>c)){const G={label:"/"+W,kind:he.Property,filterText:"/"+W,textEdit:se.replace(I,"/"+W+P),insertTextFormat:Te.PlainText},$=x(U.start),le=x(y-1);if($!==null&&le!==null&&$!==le){const ke=$+"{W.provideTags().forEach(G=>{r.items.push({label:"/"+G.name,kind:he.Property,documentation:Qe(G,void 0,o),filterText:"/"+G.name+P,textEdit:se.replace(I,"/"+G.name+P),insertTextFormat:Te.PlainText})})}),r}const A=(y,C)=>{if(i&&i.hideAutoCompleteProposals)return r;if(!this.dataManager.isVoidElement(C,u)){const N=e.positionAt(y);r.items.push({label:"",kind:he.Property,filterText:"",textEdit:se.insert(N,"$0"),insertTextFormat:Te.Snippet})}return r};function M(y,C){return S(y,C),T(y,!0,C),r}function R(){const y=Object.create(null);return d.attributeNames.forEach(C=>{y[C]=!0}),y}function D(y,C=c){let N=c;for(;N{G.provideAttributes(f).forEach($=>{if(W[$.name])return;W[$.name]=!0;let le=$.name,ke;$.valueSet!=="v"&&U.length&&(le=le+U,($.valueSet||$.name==="style")&&(ke={title:"Suggest",command:"editor.action.triggerSuggest"})),r.items.push({label:$.name,kind:$.valueSet==="handler"?he.Function:he.Value,documentation:Qe($,void 0,o),textEdit:se.replace(P,le),insertTextFormat:Te.Snippet,command:ke})})}),b(P,W),r}function b(y,C){const N="data-",I={};I[N]=`${N}$1="$2"`;function P(U){U.attributeNames.forEach(W=>{Ve(W,N)&&!I[W]&&!C[W]&&(I[W]=W+'="$1"')}),U.children.forEach(W=>P(W))}n&&n.roots.forEach(U=>P(U)),Object.keys(I).forEach(U=>r.items.push({label:U,kind:he.Value,textEdit:se.replace(y,I[U]),insertTextFormat:Te.Snippet}))}function p(y,C=c){let N,I,P;if(c>y&&c<=C&&Mu(l[y])){const U=y+1;let W=C;C>y&&l[C-1]===l[y]&&W--;const G=Nu(l,c,U),$=Du(l,c,W);N=g(G,$),P=c>=U&&c<=W?l.substring(U,c):"",I=!1}else N=g(y,C),P=l.substring(y,c),I=!0;if(s.length>0){const U=f.toLowerCase(),W=w.toLowerCase(),G=g(y,C);for(const $ of s)$.onHtmlAttributeValue&&$.onHtmlAttributeValue({document:e,position:t,tag:U,attribute:W,value:P,range:G})}return a.forEach(U=>{U.provideValues(f,w).forEach(W=>{const G=I?'"'+W.name+'"':W.name;r.items.push({label:W.name,filterText:G,kind:he.Unit,documentation:Qe(W,void 0,o),textEdit:se.replace(N,G),insertTextFormat:Te.PlainText})})}),v(),r}function k(y){return c===m.getTokenEnd()&&(L=m.scan(),L===y&&m.getTokenOffset()===c)?m.getTokenEnd():c}function H(){for(const y of s)y.onHtmlContent&&y.onHtmlContent({document:e,position:t});return v()}function v(){let y=c-1,C=t.character;for(;y>=0&&Lt(l,y);)y--,C--;if(y>=0&&l[y]==="&"){const N=j.create(ie.create(t.line,C-1),t);for(const I in St)if(pu(I,";")){const P="&"+I;r.items.push({label:P,kind:he.Keyword,documentation:xe("Character entity representing '{0}'",St[I]),textEdit:se.replace(N,P),insertTextFormat:Te.PlainText})}}return r}function _(y,C){const N=g(y,C);r.items.push({label:"!DOCTYPE",kind:he.Property,documentation:"A preamble for an HTML document.",textEdit:se.replace(N,"!DOCTYPE html>"),insertTextFormat:Te.PlainText})}let L=m.scan();for(;L!==z.EOS&&m.getTokenOffset()<=c;){switch(L){case z.StartTagOpen:if(m.getTokenEnd()===c){const y=k(z.StartTag);return t.line===0&&_(c,y),M(c,y)}break;case z.StartTag:if(m.getTokenOffset()<=c&&c<=m.getTokenEnd())return S(m.getTokenOffset(),m.getTokenEnd());f=m.getTokenText();break;case z.AttributeName:if(m.getTokenOffset()<=c&&c<=m.getTokenEnd())return D(m.getTokenOffset(),m.getTokenEnd());w=m.getTokenText();break;case z.DelimiterAssign:if(m.getTokenEnd()===c){const y=k(z.AttributeValue);return p(c,y)}break;case z.AttributeValue:if(m.getTokenOffset()<=c&&c<=m.getTokenEnd())return p(m.getTokenOffset(),m.getTokenEnd());break;case z.Whitespace:if(c<=m.getTokenEnd())switch(m.getScannerState()){case B.AfterOpeningStartTag:const y=m.getTokenOffset(),C=k(z.StartTag);return M(y,C);case B.WithinTag:case B.AfterAttributeName:return D(m.getTokenEnd());case B.BeforeAttributeValue:return p(m.getTokenEnd());case B.AfterOpeningEndTag:return T(m.getTokenOffset()-1,!1);case B.WithinContent:return H()}break;case z.EndTagOpen:if(c<=m.getTokenEnd()){const y=m.getTokenOffset()+1,C=k(z.EndTag);return T(y,!1,C)}break;case z.EndTag:if(c<=m.getTokenEnd()){let y=m.getTokenOffset()-1;for(;y>=0;){const C=l.charAt(y);if(C==="/")return T(y,!1,m.getTokenEnd());if(!tn(C))break;y--}}break;case z.StartTagClose:if(c<=m.getTokenEnd()&&f)return A(m.getTokenEnd(),f);break;case z.Content:if(c<=m.getTokenEnd())return H();break;default:if(c<=m.getTokenEnd())return r;break}L=m.scan()}return r}doQuoteComplete(e,t,n,i){const r=e.offsetAt(t);if(r<=0)return null;const s=(i==null?void 0:i.attributeDefaultValue)??"doublequotes";if(s==="empty"||e.getText().charAt(r-1)!=="=")return null;const u=s==="doublequotes"?'"$1"':"'$1'",o=n.findNodeBefore(r);if(o&&o.attributes&&o.startr)){const l=fe(e.getText(),o.start);let c=l.scan();for(;c!==z.EOS&&l.getTokenEnd()<=r;){if(c===z.AttributeName&&l.getTokenEnd()===r-1)return c=l.scan(),c!==z.DelimiterAssign||(c=l.scan(),c===z.Unknown||c===z.AttributeValue)?null:u;c=l.scan()}}return null}doTagComplete(e,t,n){const i=e.offsetAt(t);if(i<=0)return null;const r=e.getText().charAt(i-1);if(r===">"){const s=this.dataManager.getVoidElements(e.languageId),a=n.findNodeBefore(i);if(a&&a.tag&&!this.dataManager.isVoidElement(a.tag,s)&&a.starti)){const u=fe(e.getText(),a.start);let o=u.scan();for(;o!==z.EOS&&u.getTokenEnd()<=i;){if(o===z.StartTagClose&&u.getTokenEnd()===i)return`$0`;o=u.scan()}}}else if(r==="/"){let s=n.findNodeBefore(i);for(;s&&s.closed&&!(s.endTagStart&&s.endTagStart>i);)s=s.parent;if(s&&s.tag){const a=fe(e.getText(),s.start);let u=a.scan();for(;u!==z.EOS&&a.getTokenEnd()<=i;){if(u===z.EndTagOpen&&a.getTokenEnd()===i)return e.getText().charAt(i)!==">"?`${s.tag}>`:s.tag;u=a.scan()}}}return null}convertCompletionList(e){return this.doesSupportMarkdown()||e.items.forEach(t=>{t.documentation&&typeof t.documentation!="string"&&(t.documentation={kind:"plaintext",value:t.documentation.value})}),e}doesSupportMarkdown(){var e,t,n;if(!en(this.supportsMarkdown)){if(!en(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const i=(n=(t=(e=this.lsOptions.clientCapabilities.textDocument)==null?void 0:e.completion)==null?void 0:t.completionItem)==null?void 0:n.documentationFormat;this.supportsMarkdown=Array.isArray(i)&&i.indexOf(Ie.Markdown)!==-1}return this.supportsMarkdown}};function Mu(e){return/^["']*$/.test(e)}function tn(e){return/^\s*$/.test(e)}function ma(e,t,n,i){const r=fe(e,t,n);let s=r.scan();for(;s===z.Whitespace;)s=r.scan();return s===i}function Nu(e,t,n){for(;t>n&&!tn(e[t-1]);)t--;return t}function Du(e,t,n){for(;tD.isApplicable(e.languageId));function c(D,b,p){for(const k of l){let H=null;if(k.provideTags().forEach(v=>{if(v.name.toLowerCase()===D.toLowerCase()){let _=Qe(v,i,s);_||(_={kind:s?"markdown":"plaintext",value:""}),H={contents:_,range:b}}}),H)return H.contents=r(H.contents),H}return null}function d(D,b,p){for(const k of l){let H=null;if(k.provideAttributes(D).forEach(v=>{if(b===v.name&&v.description){const _=Qe(v,i,s);_?H={contents:_,range:p}:H=null}}),H)return H.contents=r(H.contents),H}return null}function m(D,b,p,k){for(const H of l){let v=null;if(H.provideValues(D,b).forEach(_=>{if(p===_.name&&_.description){const L=Qe(_,i,s);L?v={contents:L,range:k}:v=null}}),v)return v.contents=r(v.contents),v}return null}function f(D,b){let p=S(D);for(const k in St){let H=null;const v="&"+k;if(p===v){let _=St[k].charCodeAt(0).toString(16).toUpperCase(),L="U+";if(_.length<4){const C=4-_.length;let N=0;for(;N=0&&Lt(o,D);)D--,b--;let p=D+1,k=b;for(;Lt(o,p);)p++,k++;if(D>=0&&o[D]==="&"){let H=null;return o[p]===";"?H=j.create(ie.create(t.line,b),ie.create(t.line,k+1)):H=j.create(ie.create(t.line,b),ie.create(t.line,k)),H}return null}function S(D){let b=a-1,p="&";for(;b>=0&&Lt(D,b);)b--;for(b=b+1;Lt(D,b);)p+=D[b],b+=1;return p+=";",p}if(u.endTagStart&&a>=u.endTagStart){const D=w(z.EndTag,u.endTagStart);return D?c(u.tag,D):null}const x=w(z.StartTag,u.start);if(x)return c(u.tag,x);const T=w(z.AttributeName,u.start);if(T){const D=u.tag,b=e.getText(T);return d(D,b,T)}const A=g();if(A)return f(o,A);function M(D,b){const p=fe(e.getText(),D);let k=p.scan(),H;for(;k!==z.EOS&&p.getTokenEnd()<=b;)k=p.scan(),k===z.AttributeName&&(H=p.getTokenText());return H}const R=w(z.AttributeValue,u.start);if(R){const D=u.tag,b=zu(e.getText(R)),p=M(u.start,e.offsetAt(R.start));if(p)return m(D,p,b,R)}return null}convertContents(e){if(!this.doesSupportMarkdown()){if(typeof e=="string")return e;if("kind"in e)return{kind:"plaintext",value:e.value};if(Array.isArray(e))e.map(t=>typeof t=="string"?t:t.value);else return e.value}return e}doesSupportMarkdown(){var e,t,n;if(!en(this.supportsMarkdown)){if(!en(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const i=(n=(t=(e=this.lsOptions.clientCapabilities)==null?void 0:e.textDocument)==null?void 0:t.hover)==null?void 0:n.contentFormat;this.supportsMarkdown=Array.isArray(i)&&i.indexOf(Ie.Markdown)!==-1}return this.supportsMarkdown}};function zu(e){return e.length<=1?e.replace(/['"]/,""):((e[0]==="'"||e[0]==='"')&&(e=e.slice(1)),(e[e.length-1]==="'"||e[e.length-1]==='"')&&(e=e.slice(0,-1)),e)}function Hu(e,t){return e}var fa;(function(){var e=[,,function(r){function s(o){this.__parent=o,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}s.prototype.clone_empty=function(){var o=new s(this.__parent);return o.set_indent(this.__indent_count,this.__alignment_count),o},s.prototype.item=function(o){return o<0?this.__items[this.__items.length+o]:this.__items[o]},s.prototype.has_match=function(o){for(var l=this.__items.length-1;l>=0;l--)if(this.__items[l].match(o))return!0;return!1},s.prototype.set_indent=function(o,l){this.is_empty()&&(this.__indent_count=o||0,this.__alignment_count=l||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},s.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},s.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},s.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var o=this.__parent.current_line;return o.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),o.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),o.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,o.__items[0]===" "&&(o.__items.splice(0,1),o.__character_count-=1),!0}return!1},s.prototype.is_empty=function(){return this.__items.length===0},s.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},s.prototype.push=function(o){this.__items.push(o);var l=o.lastIndexOf(` +`);l!==-1?this.__character_count=o.length-l:this.__character_count+=o.length},s.prototype.pop=function(){var o=null;return this.is_empty()||(o=this.__items.pop(),this.__character_count-=o.length),o},s.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},s.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},s.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},s.prototype.toString=function(){var o="";return this.is_empty()?this.__parent.indent_empty_lines&&(o=this.__parent.get_indent_string(this.__indent_count)):(o=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),o+=this.__items.join("")),o};function a(o,l){this.__cache=[""],this.__indent_size=o.indent_size,this.__indent_string=o.indent_char,o.indent_with_tabs||(this.__indent_string=new Array(o.indent_size+1).join(o.indent_char)),l=l||"",o.indent_level>0&&(l=new Array(o.indent_level+1).join(this.__indent_string)),this.__base_string=l,this.__base_string_length=l.length}a.prototype.get_indent_size=function(o,l){var c=this.__base_string_length;return l=l||0,o<0&&(c=0),c+=o*this.__indent_size,c+=l,c},a.prototype.get_indent_string=function(o,l){var c=this.__base_string;return l=l||0,o<0&&(o=0,c=""),l+=o*this.__indent_size,this.__ensure_cache(l),c+=this.__cache[l],c},a.prototype.__ensure_cache=function(o){for(;o>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var o=this.__cache.length,l=0,c="";this.__indent_size&&o>=this.__indent_size&&(l=Math.floor(o/this.__indent_size),o-=l*this.__indent_size,c=new Array(l+1).join(this.__indent_string)),o&&(c+=new Array(o+1).join(" ")),this.__cache.push(c)};function u(o,l){this.__indent_cache=new a(o,l),this.raw=!1,this._end_with_newline=o.end_with_newline,this.indent_size=o.indent_size,this.wrap_line_length=o.wrap_line_length,this.indent_empty_lines=o.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new s(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}u.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},u.prototype.get_line_number=function(){return this.__lines.length},u.prototype.get_indent_string=function(o,l){return this.__indent_cache.get_indent_string(o,l)},u.prototype.get_indent_size=function(o,l){return this.__indent_cache.get_indent_size(o,l)},u.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},u.prototype.add_new_line=function(o){return this.is_empty()||!o&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},u.prototype.get_code=function(o){this.trim(!0);var l=this.current_line.pop();l&&(l[l.length-1]===` +`&&(l=l.replace(/\n+$/g,"")),this.current_line.push(l)),this._end_with_newline&&this.__add_outputline();var c=this.__lines.join(` +`);return o!==` +`&&(c=c.replace(/[\n]/g,o)),c},u.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},u.prototype.set_indent=function(o,l){return o=o||0,l=l||0,this.next_line.set_indent(o,l),this.__lines.length>1?(this.current_line.set_indent(o,l),!0):(this.current_line.set_indent(),!1)},u.prototype.add_raw_token=function(o){for(var l=0;l1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},u.prototype.just_added_newline=function(){return this.current_line.is_empty()},u.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},u.prototype.ensure_empty_line_above=function(o,l){for(var c=this.__lines.length-2;c>=0;){var d=this.__lines[c];if(d.is_empty())break;if(d.item(0).indexOf(o)!==0&&d.item(-1)!==l){this.__lines.splice(c+1,0,new s(this)),this.previous_line=this.__lines[this.__lines.length-2];break}c--}},r.exports.Output=u},,,,function(r){function s(o,l){this.raw_options=a(o,l),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}s.prototype._get_array=function(o,l){var c=this.raw_options[o],d=l||[];return typeof c=="object"?c!==null&&typeof c.concat=="function"&&(d=c.concat()):typeof c=="string"&&(d=c.split(/[^a-zA-Z0-9_\/\-]+/)),d},s.prototype._get_boolean=function(o,l){var c=this.raw_options[o],d=c===void 0?!!l:!!c;return d},s.prototype._get_characters=function(o,l){var c=this.raw_options[o],d=l||"";return typeof c=="string"&&(d=c.replace(/\\r/,"\r").replace(/\\n/,` +`).replace(/\\t/," ")),d},s.prototype._get_number=function(o,l){var c=this.raw_options[o];l=parseInt(l,10),isNaN(l)&&(l=0);var d=parseInt(c,10);return isNaN(d)&&(d=l),d},s.prototype._get_selection=function(o,l,c){var d=this._get_selection_list(o,l,c);if(d.length!==1)throw new Error("Invalid Option Value: The option '"+o+`' can only be one of the following values: +`+l+` +You passed in: '`+this.raw_options[o]+"'");return d[0]},s.prototype._get_selection_list=function(o,l,c){if(!l||l.length===0)throw new Error("Selection list cannot be empty.");if(c=c||[l[0]],!this._is_valid_selection(c,l))throw new Error("Invalid Default Value!");var d=this._get_array(o,c);if(!this._is_valid_selection(d,l))throw new Error("Invalid Option Value: The option '"+o+`' can contain only the following values: +`+l+` +You passed in: '`+this.raw_options[o]+"'");return d},s.prototype._is_valid_selection=function(o,l){return o.length&&l.length&&!o.some(function(c){return l.indexOf(c)===-1})};function a(o,l){var c={};o=u(o);var d;for(d in o)d!==l&&(c[d]=o[d]);if(l&&o[l])for(d in o[l])c[d]=o[l][d];return c}function u(o){var l={},c;for(c in o){var d=c.replace(/-/g,"_");l[d]=o[c]}return l}r.exports.Options=s,r.exports.normalizeOpts=u,r.exports.mergeOpts=a},,function(r){var s=RegExp.prototype.hasOwnProperty("sticky");function a(u){this.__input=u||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position=0&&u=0&&o=u.length&&this.__input.substring(o-u.length,o).toLowerCase()===u},r.exports.InputScanner=a},,,,,function(r){function s(a,u){a=typeof a=="string"?a:a.source,u=typeof u=="string"?u:u.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+u,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+u,"g")}s.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var u={};this.__directive_pattern.lastIndex=0;for(var o=this.__directive_pattern.exec(a);o;)u[o[1]]=o[2],o=this.__directive_pattern.exec(a);return u},s.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},r.exports.Directives=s},,function(r,s,a){var u=a(16).Beautifier,o=a(17).Options;function l(c,d){var m=new u(c,d);return m.beautify()}r.exports=l,r.exports.defaultOptions=function(){return new o}},function(r,s,a){var u=a(17).Options,o=a(2).Output,l=a(8).InputScanner,c=a(13).Directives,d=new c(/\/\*/,/\*\//),m=/\r\n|[\r\n]/,f=/\r\n|[\r\n]/g,w=/\s/,g=/(?:\s|\n)+/g,S=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,x=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function T(A,M){this._source_text=A||"",this._options=new u(M),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}T.prototype.eatString=function(A){var M="";for(this._ch=this._input.next();this._ch;){if(M+=this._ch,this._ch==="\\")M+=this._input.next();else if(A.indexOf(this._ch)!==-1||this._ch===` +`)break;this._ch=this._input.next()}return M},T.prototype.eatWhitespace=function(A){for(var M=w.test(this._input.peek()),R=0;w.test(this._input.peek());)this._ch=this._input.next(),A&&this._ch===` +`&&(R===0||R0&&this._indentLevel--},T.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var A=this._source_text,M=this._options.eol;M==="auto"&&(M=` +`,A&&m.test(A||"")&&(M=A.match(m)[0])),A=A.replace(f,` +`);var R=A.match(/^[\t ]*/)[0];this._output=new o(this._options,R),this._input=new l(A),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var D=0,b=!1,p=!1,k=!1,H=!1,v=!1,_=this._ch,L=!1,y,C,N;y=this._input.read(g),C=y!=="",N=_,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),_=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var I=this._input.read(S),P=d.get_directives(I);P&&P.ignore==="start"&&(I+=d.readIgnored(this._input)),this.print_string(I),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(x)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(C),this.print_string(this._ch);var U=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);U.match(/[ :]$/)&&(U=this.eatString(": ").replace(/\s+$/,""),this.print_string(U),this._output.space_before_token=!0),D===0&&U.indexOf(":")!==-1&&(p=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(C),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var W=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);W.match(/[ :]$/)&&(W=this.eatString(": ").replace(/\s+$/,""),this.print_string(W),this._output.space_before_token=!0),D===0&&W.indexOf(":")!==-1?(p=!0,this.indent()):W in this.NESTED_AT_RULE?(this._nestedLevel+=1,W in this.CONDITIONAL_GROUP_RULE&&(k=!0)):D===0&&!p&&(H=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(C),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")p&&(p=!1,this.outdent()),H=!1,k?(k=!1,b=this._indentLevel>=this._nestedLevel):b=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&b&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(N==="("?this._output.space_before_token=!1:N!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),N==="{"&&this._output.trim(!0),p&&(this.outdent(),p=!1),this.print_string(this._ch),b=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var G=0;G"||this._ch==="+"||this._ch==="~")&&!p&&D===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&w.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(C),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),w.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var ke=N==='"'||N==="'";this.preserveSingleSpace(ke||C),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===` +`&&L&&this._output.add_new_line()}var oi=this._output.get_code(M);return oi},r.exports.Beautifier=T},function(r,s,a){var u=a(6).Options;function o(l){u.call(this,l,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var c=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||c;var d=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var m=0;m=0;l--)if(this.__items[l].match(o))return!0;return!1},s.prototype.set_indent=function(o,l){this.is_empty()&&(this.__indent_count=o||0,this.__alignment_count=l||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},s.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},s.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},s.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var o=this.__parent.current_line;return o.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),o.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),o.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,o.__items[0]===" "&&(o.__items.splice(0,1),o.__character_count-=1),!0}return!1},s.prototype.is_empty=function(){return this.__items.length===0},s.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},s.prototype.push=function(o){this.__items.push(o);var l=o.lastIndexOf(` +`);l!==-1?this.__character_count=o.length-l:this.__character_count+=o.length},s.prototype.pop=function(){var o=null;return this.is_empty()||(o=this.__items.pop(),this.__character_count-=o.length),o},s.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},s.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},s.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},s.prototype.toString=function(){var o="";return this.is_empty()?this.__parent.indent_empty_lines&&(o=this.__parent.get_indent_string(this.__indent_count)):(o=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),o+=this.__items.join("")),o};function a(o,l){this.__cache=[""],this.__indent_size=o.indent_size,this.__indent_string=o.indent_char,o.indent_with_tabs||(this.__indent_string=new Array(o.indent_size+1).join(o.indent_char)),l=l||"",o.indent_level>0&&(l=new Array(o.indent_level+1).join(this.__indent_string)),this.__base_string=l,this.__base_string_length=l.length}a.prototype.get_indent_size=function(o,l){var c=this.__base_string_length;return l=l||0,o<0&&(c=0),c+=o*this.__indent_size,c+=l,c},a.prototype.get_indent_string=function(o,l){var c=this.__base_string;return l=l||0,o<0&&(o=0,c=""),l+=o*this.__indent_size,this.__ensure_cache(l),c+=this.__cache[l],c},a.prototype.__ensure_cache=function(o){for(;o>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var o=this.__cache.length,l=0,c="";this.__indent_size&&o>=this.__indent_size&&(l=Math.floor(o/this.__indent_size),o-=l*this.__indent_size,c=new Array(l+1).join(this.__indent_string)),o&&(c+=new Array(o+1).join(" ")),this.__cache.push(c)};function u(o,l){this.__indent_cache=new a(o,l),this.raw=!1,this._end_with_newline=o.end_with_newline,this.indent_size=o.indent_size,this.wrap_line_length=o.wrap_line_length,this.indent_empty_lines=o.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new s(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}u.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},u.prototype.get_line_number=function(){return this.__lines.length},u.prototype.get_indent_string=function(o,l){return this.__indent_cache.get_indent_string(o,l)},u.prototype.get_indent_size=function(o,l){return this.__indent_cache.get_indent_size(o,l)},u.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},u.prototype.add_new_line=function(o){return this.is_empty()||!o&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},u.prototype.get_code=function(o){this.trim(!0);var l=this.current_line.pop();l&&(l[l.length-1]===` +`&&(l=l.replace(/\n+$/g,"")),this.current_line.push(l)),this._end_with_newline&&this.__add_outputline();var c=this.__lines.join(` +`);return o!==` +`&&(c=c.replace(/[\n]/g,o)),c},u.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},u.prototype.set_indent=function(o,l){return o=o||0,l=l||0,this.next_line.set_indent(o,l),this.__lines.length>1?(this.current_line.set_indent(o,l),!0):(this.current_line.set_indent(),!1)},u.prototype.add_raw_token=function(o){for(var l=0;l1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},u.prototype.just_added_newline=function(){return this.current_line.is_empty()},u.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},u.prototype.ensure_empty_line_above=function(o,l){for(var c=this.__lines.length-2;c>=0;){var d=this.__lines[c];if(d.is_empty())break;if(d.item(0).indexOf(o)!==0&&d.item(-1)!==l){this.__lines.splice(c+1,0,new s(this)),this.previous_line=this.__lines[this.__lines.length-2];break}c--}},r.exports.Output=u},function(r){function s(a,u,o,l){this.type=a,this.text=u,this.comments_before=null,this.newlines=o||0,this.whitespace_before=l||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}r.exports.Token=s},,,function(r){function s(o,l){this.raw_options=a(o,l),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}s.prototype._get_array=function(o,l){var c=this.raw_options[o],d=l||[];return typeof c=="object"?c!==null&&typeof c.concat=="function"&&(d=c.concat()):typeof c=="string"&&(d=c.split(/[^a-zA-Z0-9_\/\-]+/)),d},s.prototype._get_boolean=function(o,l){var c=this.raw_options[o],d=c===void 0?!!l:!!c;return d},s.prototype._get_characters=function(o,l){var c=this.raw_options[o],d=l||"";return typeof c=="string"&&(d=c.replace(/\\r/,"\r").replace(/\\n/,` +`).replace(/\\t/," ")),d},s.prototype._get_number=function(o,l){var c=this.raw_options[o];l=parseInt(l,10),isNaN(l)&&(l=0);var d=parseInt(c,10);return isNaN(d)&&(d=l),d},s.prototype._get_selection=function(o,l,c){var d=this._get_selection_list(o,l,c);if(d.length!==1)throw new Error("Invalid Option Value: The option '"+o+`' can only be one of the following values: +`+l+` +You passed in: '`+this.raw_options[o]+"'");return d[0]},s.prototype._get_selection_list=function(o,l,c){if(!l||l.length===0)throw new Error("Selection list cannot be empty.");if(c=c||[l[0]],!this._is_valid_selection(c,l))throw new Error("Invalid Default Value!");var d=this._get_array(o,c);if(!this._is_valid_selection(d,l))throw new Error("Invalid Option Value: The option '"+o+`' can contain only the following values: +`+l+` +You passed in: '`+this.raw_options[o]+"'");return d},s.prototype._is_valid_selection=function(o,l){return o.length&&l.length&&!o.some(function(c){return l.indexOf(c)===-1})};function a(o,l){var c={};o=u(o);var d;for(d in o)d!==l&&(c[d]=o[d]);if(l&&o[l])for(d in o[l])c[d]=o[l][d];return c}function u(o){var l={},c;for(c in o){var d=c.replace(/-/g,"_");l[d]=o[c]}return l}r.exports.Options=s,r.exports.normalizeOpts=u,r.exports.mergeOpts=a},,function(r){var s=RegExp.prototype.hasOwnProperty("sticky");function a(u){this.__input=u||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position=0&&u=0&&o=u.length&&this.__input.substring(o-u.length,o).toLowerCase()===u},r.exports.InputScanner=a},function(r,s,a){var u=a(8).InputScanner,o=a(3).Token,l=a(10).TokenStream,c=a(11).WhitespacePattern,d={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},m=function(f,w){this._input=new u(f),this._options=w||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new c(this._input)};m.prototype.tokenize=function(){this._input.restart(),this.__tokens=new l,this._reset();for(var f,w=new o(d.START,""),g=null,S=[],x=new l;w.type!==d.EOF;){for(f=this._get_next_token(w,g);this._is_comment(f);)x.add(f),f=this._get_next_token(w,g);x.isEmpty()||(f.comments_before=x,x=new l),f.parent=g,this._is_opening(f)?(S.push(g),g=f):g&&this._is_closing(f,g)&&(f.opened=g,g.closed=f,g=S.pop(),f.parent=g),f.previous=w,w.next=f,this.__tokens.add(f),w=f}return this.__tokens},m.prototype._is_first_token=function(){return this.__tokens.isEmpty()},m.prototype._reset=function(){},m.prototype._get_next_token=function(f,w){this._readWhitespace();var g=this._input.read(/.+/g);return g?this._create_token(d.RAW,g):this._create_token(d.EOF,"")},m.prototype._is_comment=function(f){return!1},m.prototype._is_opening=function(f){return!1},m.prototype._is_closing=function(f,w){return!1},m.prototype._create_token=function(f,w){var g=new o(f,w,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return g},m.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},r.exports.Tokenizer=m,r.exports.TOKEN=d},function(r){function s(a){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=a}s.prototype.restart=function(){this.__position=0},s.prototype.isEmpty=function(){return this.__tokens_length===0},s.prototype.hasNext=function(){return this.__position=0&&a/),erb:m.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:m.starting_with(/{%/).until_after(/%}/),django_value:m.starting_with(/{{/).until_after(/}}/),django_comment:m.starting_with(/{#/).until_after(/#}/),smarty:m.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:m.starting_with(/{\*/).until_after(/\*}/),smarty_literal:m.starting_with(/{literal}/).until_after(/{\/literal}/)}}l.prototype=new u,l.prototype._create=function(){return new l(this._input,this)},l.prototype._update=function(){this.__set_templated_pattern()},l.prototype.disable=function(c){var d=this._create();return d._disabled[c]=!0,d._update(),d},l.prototype.read_options=function(c){var d=this._create();for(var m in o)d._disabled[m]=c.templating.indexOf(m)===-1;return d._update(),d},l.prototype.exclude=function(c){var d=this._create();return d._excluded[c]=!0,d._update(),d},l.prototype.read=function(){var c="";this._match_pattern?c=this._input.read(this._starting_pattern):c=this._input.read(this._starting_pattern,this.__template_pattern);for(var d=this._read_template();d;)this._match_pattern?d+=this._input.read(this._match_pattern):d+=this._input.readUntil(this.__template_pattern),c+=d,d=this._read_template();return this._until_after&&(c+=this._input.readUntilAfter(this._until_pattern)),c},l.prototype.__set_templated_pattern=function(){var c=[];this._disabled.php||c.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||c.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||c.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(c.push(this.__patterns.django._starting_pattern.source),c.push(this.__patterns.django_value._starting_pattern.source),c.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||c.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&c.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+c.join("|")+")")},l.prototype._read_template=function(){var c="",d=this._input.peek();if(d==="<"){var m=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&m==="?"&&(c=c||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&m==="%"&&(c=c||this.__patterns.erb.read())}else d==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(c=c||this.__patterns.handlebars_comment.read(),c=c||this.__patterns.handlebars_unescaped.read(),c=c||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(c=c||this.__patterns.django_value.read()),this._excluded.django||(c=c||this.__patterns.django_comment.read(),c=c||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(c=c||this.__patterns.smarty_comment.read(),c=c||this.__patterns.smarty_literal.read(),c=c||this.__patterns.smarty.read()));return c},r.exports.TemplatablePattern=l},,,,function(r,s,a){var u=a(19).Beautifier,o=a(20).Options;function l(c,d,m,f){var w=new u(c,d,m,f);return w.beautify()}r.exports=l,r.exports.defaultOptions=function(){return new o}},function(r,s,a){var u=a(20).Options,o=a(2).Output,l=a(21).Tokenizer,c=a(21).TOKEN,d=/\r\n|[\r\n]/,m=/\r\n|[\r\n]/g,f=function(b,p){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=b.max_preserve_newlines,this.preserve_newlines=b.preserve_newlines,this._output=new o(b,p)};f.prototype.current_line_has_match=function(b){return this._output.current_line.has_match(b)},f.prototype.set_space_before_token=function(b,p){this._output.space_before_token=b,this._output.non_breaking_space=p},f.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},f.prototype.add_raw_token=function(b){this._output.add_raw_token(b)},f.prototype.print_preserved_newlines=function(b){var p=0;b.type!==c.TEXT&&b.previous.type!==c.TEXT&&(p=b.newlines?1:0),this.preserve_newlines&&(p=b.newlines0);return p!==0},f.prototype.traverse_whitespace=function(b){return b.whitespace_before||b.newlines?(this.print_preserved_newlines(b)||(this._output.space_before_token=!0),!0):!1},f.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},f.prototype.print_newline=function(b){this._output.add_new_line(b)},f.prototype.print_token=function(b){b.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(b.text))},f.prototype.indent=function(){this.indent_level++},f.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},f.prototype.get_full_indent=function(b){return b=this.indent_level+(b||0),b<1?"":this._output.get_indent_string(b)};var w=function(b){for(var p=null,k=b.next;k.type!==c.EOF&&b.closed!==k;){if(k.type===c.ATTRIBUTE&&k.text==="type"){k.next&&k.next.type===c.EQUALS&&k.next.next&&k.next.next.type===c.VALUE&&(p=k.next.next.text);break}k=k.next}return p},g=function(b,p){var k=null,H=null;return p.closed?(b==="script"?k="text/javascript":b==="style"&&(k="text/css"),k=w(p)||k,k.search("text/css")>-1?H="css":k.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?H="javascript":k.search(/(text|application|dojo)\/(x-)?(html)/)>-1?H="html":k.search(/test\/null/)>-1&&(H="null"),H):null};function S(b,p){return p.indexOf(b)!==-1}function x(b,p,k){this.parent=b||null,this.tag=p?p.tag_name:"",this.indent_level=k||0,this.parser_token=p||null}function T(b){this._printer=b,this._current_frame=null}T.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},T.prototype.record_tag=function(b){var p=new x(this._current_frame,b,this._printer.indent_level);this._current_frame=p},T.prototype._try_pop_frame=function(b){var p=null;return b&&(p=b.parser_token,this._printer.indent_level=b.indent_level,this._current_frame=b.parent),p},T.prototype._get_frame=function(b,p){for(var k=this._current_frame;k&&b.indexOf(k.tag)===-1;){if(p&&p.indexOf(k.tag)!==-1){k=null;break}k=k.parent}return k},T.prototype.try_pop=function(b,p){var k=this._get_frame([b],p);return this._try_pop_frame(k)},T.prototype.indent_to_tag=function(b){var p=this._get_frame(b);p&&(this._printer.indent_level=p.indent_level)};function A(b,p,k,H){this._source_text=b||"",p=p||{},this._js_beautify=k,this._css_beautify=H,this._tag_stack=null;var v=new u(p,"html");this._options=v,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}A.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var b=this._source_text,p=this._options.eol;this._options.eol==="auto"&&(p=` +`,b&&d.test(b)&&(p=b.match(d)[0])),b=b.replace(m,` +`);var k=b.match(/^[\t ]*/)[0],H={text:"",type:""},v=new M,_=new f(this._options,k),L=new l(b,this._options).tokenize();this._tag_stack=new T(_);for(var y=null,C=L.next();C.type!==c.EOF;)C.type===c.TAG_OPEN||C.type===c.COMMENT?(y=this._handle_tag_open(_,C,v,H,L),v=y):C.type===c.ATTRIBUTE||C.type===c.EQUALS||C.type===c.VALUE||C.type===c.TEXT&&!v.tag_complete?y=this._handle_inside_tag(_,C,v,H):C.type===c.TAG_CLOSE?y=this._handle_tag_close(_,C,v):C.type===c.TEXT?y=this._handle_text(_,C,v):C.type===c.CONTROL_FLOW_OPEN?y=this._handle_control_flow_open(_,C):C.type===c.CONTROL_FLOW_CLOSE?y=this._handle_control_flow_close(_,C):_.add_raw_token(C),H=y,C=L.next();var N=_._output.get_code(p);return N},A.prototype._handle_control_flow_open=function(b,p){var k={text:p.text,type:p.type};return b.set_space_before_token(p.newlines||p.whitespace_before!=="",!0),p.newlines?b.print_preserved_newlines(p):b.set_space_before_token(p.newlines||p.whitespace_before!=="",!0),b.print_token(p),b.indent(),k},A.prototype._handle_control_flow_close=function(b,p){var k={text:p.text,type:p.type};return b.deindent(),p.newlines?b.print_preserved_newlines(p):b.set_space_before_token(p.newlines||p.whitespace_before!=="",!0),b.print_token(p),k},A.prototype._handle_tag_close=function(b,p,k){var H={text:p.text,type:p.type};return b.alignment_size=0,k.tag_complete=!0,b.set_space_before_token(p.newlines||p.whitespace_before!=="",!0),k.is_unformatted?b.add_raw_token(p):(k.tag_start_char==="<"&&(b.set_space_before_token(p.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&k.has_wrapped_attrs&&b.print_newline(!1)),b.print_token(p)),k.indent_content&&!(k.is_unformatted||k.is_content_unformatted)&&(b.indent(),k.indent_content=!1),!k.is_inline_element&&!(k.is_unformatted||k.is_content_unformatted)&&b.set_wrap_point(),H},A.prototype._handle_inside_tag=function(b,p,k,H){var v=k.has_wrapped_attrs,_={text:p.text,type:p.type};return b.set_space_before_token(p.newlines||p.whitespace_before!=="",!0),k.is_unformatted?b.add_raw_token(p):k.tag_start_char==="{"&&p.type===c.TEXT?b.print_preserved_newlines(p)?(p.newlines=0,b.add_raw_token(p)):b.print_token(p):(p.type===c.ATTRIBUTE?b.set_space_before_token(!0):(p.type===c.EQUALS||p.type===c.VALUE&&p.previous.type===c.EQUALS)&&b.set_space_before_token(!1),p.type===c.ATTRIBUTE&&k.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(b.traverse_whitespace(p),v=v||p.newlines!==0),this._is_wrap_attributes_force&&k.attr_count>=this._options.wrap_attributes_min_attrs&&(H.type!==c.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(b.print_newline(!1),v=!0)),b.print_token(p),v=v||b.previous_token_wrapped(),k.has_wrapped_attrs=v),_},A.prototype._handle_text=function(b,p,k){var H={text:p.text,type:"TK_CONTENT"};return k.custom_beautifier_name?this._print_custom_beatifier_text(b,p,k):k.is_unformatted||k.is_content_unformatted?b.add_raw_token(p):(b.traverse_whitespace(p),b.print_token(p)),H},A.prototype._print_custom_beatifier_text=function(b,p,k){var H=this;if(p.text!==""){var v=p.text,_,L=1,y="",C="";k.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?_=this._js_beautify:k.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?_=this._css_beautify:k.custom_beautifier_name==="html"&&(_=function(G,$){var le=new A(G,$,H._js_beautify,H._css_beautify);return le.beautify()}),this._options.indent_scripts==="keep"?L=0:this._options.indent_scripts==="separate"&&(L=-b.indent_level);var N=b.get_full_indent(L);if(v=v.replace(/\n[ \t]*$/,""),k.custom_beautifier_name!=="html"&&v[0]==="<"&&v.match(/^(|]]>)$/.exec(v);if(!I){b.add_raw_token(p);return}y=N+I[1]+` +`,v=I[4],I[5]&&(C=N+I[5]),v=v.replace(/\n[ \t]*$/,""),(I[2]||I[3].indexOf(` +`)!==-1)&&(I=I[3].match(/[ \t]+$/),I&&(p.whitespace_before=I[0]))}if(v)if(_){var P=function(){this.eol=` +`};P.prototype=this._options.raw_options;var U=new P;v=_(N+v,U)}else{var W=p.whitespace_before;W&&(v=v.replace(new RegExp(` +(`+W+")?","g"),` +`)),v=N+v.replace(/\n/g,` +`+N)}y&&(v?v=y+v+` +`+C:v=y+C),b.print_newline(!1),v&&(p.text=v,p.whitespace_before="",p.newlines=0,b.add_raw_token(p),b.print_newline(!0))}},A.prototype._handle_tag_open=function(b,p,k,H,v){var _=this._get_tag_open_token(p);if((k.is_unformatted||k.is_content_unformatted)&&!k.is_empty_element&&p.type===c.TAG_OPEN&&!_.is_start_tag?(b.add_raw_token(p),_.start_tag_token=this._tag_stack.try_pop(_.tag_name)):(b.traverse_whitespace(p),this._set_tag_position(b,p,_,k,H),_.is_inline_element||b.set_wrap_point(),b.print_token(p)),_.is_start_tag&&this._is_wrap_attributes_force){var L=0,y;do y=v.peek(L),y.type===c.ATTRIBUTE&&(_.attr_count+=1),L+=1;while(y.type!==c.EOF&&y.type!==c.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(_.alignment_size=p.text.length+1),!_.tag_complete&&!_.is_unformatted&&(b.alignment_size=_.alignment_size),_};var M=function(b,p){if(this.parent=b||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!p)this.tag_complete=!0;else{var k;this.tag_start_char=p.text[0],this.text=p.text,this.tag_start_char==="<"?(k=p.text.match(/^<([^\s>]*)/),this.tag_check=k?k[1]:""):(k=p.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=k?k[1]:"",(p.text.startsWith("{{#>")||p.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&p.next!==null?this.tag_check=p.next.text.split(" ")[0]:this.tag_check=p.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),p.type===c.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||p.closed&&p.closed.text==="/>";var H=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(H=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(H)))}};A.prototype._get_tag_open_token=function(b){var p=new M(this._tag_stack.get_parser_token(),b);return p.alignment_size=this._options.wrap_attributes_indent_size,p.is_end_tag=p.is_end_tag||S(p.tag_check,this._options.void_elements),p.is_empty_element=p.tag_complete||p.is_start_tag&&p.is_end_tag,p.is_unformatted=!p.tag_complete&&S(p.tag_check,this._options.unformatted),p.is_content_unformatted=!p.is_empty_element&&S(p.tag_check,this._options.content_unformatted),p.is_inline_element=S(p.tag_name,this._options.inline)||this._options.inline_custom_elements&&p.tag_name.includes("-")||p.tag_start_char==="{",p},A.prototype._set_tag_position=function(b,p,k,H,v){if(k.is_empty_element||(k.is_end_tag?k.start_tag_token=this._tag_stack.try_pop(k.tag_name):(this._do_optional_end_element(k)&&(k.is_inline_element||b.print_newline(!1)),this._tag_stack.record_tag(k),(k.tag_name==="script"||k.tag_name==="style")&&!(k.is_unformatted||k.is_content_unformatted)&&(k.custom_beautifier_name=g(k.tag_check,p)))),S(k.tag_check,this._options.extra_liners)&&(b.print_newline(!1),b._output.just_added_blankline()||b.print_newline(!0)),k.is_empty_element){if(k.tag_start_char==="{"&&k.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),k.indent_content=!0;var _=b.current_line_has_match(/{{#if/);_||b.print_newline(!1)}k.tag_name==="!--"&&v.type===c.TAG_CLOSE&&H.is_end_tag&&k.text.indexOf(` +`)===-1||(k.is_inline_element||k.is_unformatted||b.print_newline(!1),this._calcluate_parent_multiline(b,k))}else if(k.is_end_tag){var L=!1;L=k.start_tag_token&&k.start_tag_token.multiline_content,L=L||!k.is_inline_element&&!(H.is_inline_element||H.is_unformatted)&&!(v.type===c.TAG_CLOSE&&k.start_tag_token===H)&&v.type!=="TK_CONTENT",(k.is_content_unformatted||k.is_unformatted)&&(L=!1),L&&b.print_newline(!1)}else k.indent_content=!k.custom_beautifier_name,k.tag_start_char==="<"&&(k.tag_name==="html"?k.indent_content=this._options.indent_inner_html:k.tag_name==="head"?k.indent_content=this._options.indent_head_inner_html:k.tag_name==="body"&&(k.indent_content=this._options.indent_body_inner_html)),!(k.is_inline_element||k.is_unformatted)&&(v.type!=="TK_CONTENT"||k.is_content_unformatted)&&b.print_newline(!1),this._calcluate_parent_multiline(b,k)},A.prototype._calcluate_parent_multiline=function(b,p){p.parent&&b._output.just_added_newline()&&!((p.is_inline_element||p.is_unformatted)&&p.parent.is_inline_element)&&(p.parent.multiline_content=!0)};var R=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],D=["a","audio","del","ins","map","noscript","video"];A.prototype._do_optional_end_element=function(b){var p=null;if(!(b.is_empty_element||!b.is_start_tag||!b.parent)){if(b.tag_name==="body")p=p||this._tag_stack.try_pop("head");else if(b.tag_name==="li")p=p||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(b.tag_name==="dd"||b.tag_name==="dt")p=p||this._tag_stack.try_pop("dt",["dl"]),p=p||this._tag_stack.try_pop("dd",["dl"]);else if(b.parent.tag_name==="p"&&R.indexOf(b.tag_name)!==-1){var k=b.parent.parent;(!k||D.indexOf(k.tag_name)===-1)&&(p=p||this._tag_stack.try_pop("p"))}else b.tag_name==="rp"||b.tag_name==="rt"?(p=p||this._tag_stack.try_pop("rt",["ruby","rtc"]),p=p||this._tag_stack.try_pop("rp",["ruby","rtc"])):b.tag_name==="optgroup"?p=p||this._tag_stack.try_pop("optgroup",["select"]):b.tag_name==="option"?p=p||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):b.tag_name==="colgroup"?p=p||this._tag_stack.try_pop("caption",["table"]):b.tag_name==="thead"?(p=p||this._tag_stack.try_pop("caption",["table"]),p=p||this._tag_stack.try_pop("colgroup",["table"])):b.tag_name==="tbody"||b.tag_name==="tfoot"?(p=p||this._tag_stack.try_pop("caption",["table"]),p=p||this._tag_stack.try_pop("colgroup",["table"]),p=p||this._tag_stack.try_pop("thead",["table"]),p=p||this._tag_stack.try_pop("tbody",["table"])):b.tag_name==="tr"?(p=p||this._tag_stack.try_pop("caption",["table"]),p=p||this._tag_stack.try_pop("colgroup",["table"]),p=p||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(b.tag_name==="th"||b.tag_name==="td")&&(p=p||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),p=p||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return b.parent=this._tag_stack.get_parser_token(),p}},r.exports.Beautifier=A},function(r,s,a){var u=a(6).Options;function o(l){u.call(this,l,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}o.prototype=new u,r.exports.Options=o},function(r,s,a){var u=a(9).Tokenizer,o=a(9).TOKEN,l=a(13).Directives,c=a(14).TemplatablePattern,d=a(12).Pattern,m={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:o.START,RAW:o.RAW,EOF:o.EOF},f=new l(/<\!--/,/-->/),w=function(g,S){u.call(this,g,S),this._current_tag_name="";var x=new c(this._input).read_options(this._options),T=new d(this._input);if(this.__patterns={word:x.until(/[\n\r\t <]/),word_control_flow_close_excluded:x.until(/[\n\r\t <}]/),single_quote:x.until_after(/'/),double_quote:x.until_after(/"/),attribute:x.until(/[\n\r\t =>]|\/>/),element_name:x.until(/[\n\r\t >\/]/),angular_control_flow_start:T.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:T.starting_with(/{{!--/).until_after(/--}}/),handlebars:T.starting_with(/{{/).until_after(/}}/),handlebars_open:T.until(/[\n\r\t }]/),handlebars_raw_close:T.until(/}}/),comment:T.starting_with(//),cdata:T.starting_with(//),conditional_comment:T.starting_with(//),processing:T.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var A=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=T.matching(A).until_after(A)}};w.prototype=new u,w.prototype._is_comment=function(g){return!1},w.prototype._is_opening=function(g){return g.type===m.TAG_OPEN||g.type===m.CONTROL_FLOW_OPEN},w.prototype._is_closing=function(g,S){return g.type===m.TAG_CLOSE&&S&&((g.text===">"||g.text==="/>")&&S.text[0]==="<"||g.text==="}}"&&S.text[0]==="{"&&S.text[1]==="{")||g.type===m.CONTROL_FLOW_CLOSE&&g.text==="}"&&S.text.endsWith("{")},w.prototype._reset=function(){this._current_tag_name=""},w.prototype._get_next_token=function(g,S){var x=null;this._readWhitespace();var T=this._input.peek();return T===null?this._create_token(m.EOF,""):(x=x||this._read_open_handlebars(T,S),x=x||this._read_attribute(T,g,S),x=x||this._read_close(T,S),x=x||this._read_control_flows(T,S),x=x||this._read_raw_content(T,g,S),x=x||this._read_content_word(T,S),x=x||this._read_comment_or_cdata(T),x=x||this._read_processing(T),x=x||this._read_open(T,S),x=x||this._create_token(m.UNKNOWN,this._input.next()),x)},w.prototype._read_comment_or_cdata=function(g){var S=null,x=null,T=null;if(g==="<"){var A=this._input.peek(1);A==="!"&&(x=this.__patterns.comment.read(),x?(T=f.get_directives(x),T&&T.ignore==="start"&&(x+=f.readIgnored(this._input))):x=this.__patterns.cdata.read()),x&&(S=this._create_token(m.COMMENT,x),S.directives=T)}return S},w.prototype._read_processing=function(g){var S=null,x=null,T=null;if(g==="<"){var A=this._input.peek(1);(A==="!"||A==="?")&&(x=this.__patterns.conditional_comment.read(),x=x||this.__patterns.processing.read()),x&&(S=this._create_token(m.COMMENT,x),S.directives=T)}return S},w.prototype._read_open=function(g,S){var x=null,T=null;return(!S||S.type===m.CONTROL_FLOW_OPEN)&&g==="<"&&(x=this._input.next(),this._input.peek()==="/"&&(x+=this._input.next()),x+=this.__patterns.element_name.read(),T=this._create_token(m.TAG_OPEN,x)),T},w.prototype._read_open_handlebars=function(g,S){var x=null,T=null;return(!S||S.type===m.CONTROL_FLOW_OPEN)&&this._options.indent_handlebars&&g==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(x=this.__patterns.handlebars_comment.read(),x=x||this.__patterns.handlebars.read(),T=this._create_token(m.COMMENT,x)):(x=this.__patterns.handlebars_open.read(),T=this._create_token(m.TAG_OPEN,x))),T},w.prototype._read_control_flows=function(g,S){var x="",T=null;if(!this._options.templating.includes("angular")||!this._options.indent_handlebars)return T;if(g==="@"){if(x=this.__patterns.angular_control_flow_start.read(),x==="")return T;for(var A=x.endsWith("(")?1:0,M=0;!(x.endsWith("{")&&A===M);){var R=this._input.next();if(R===null)break;R==="("?A++:R===")"&&M++,x+=R}T=this._create_token(m.CONTROL_FLOW_OPEN,x)}else g==="}"&&S&&S.type===m.CONTROL_FLOW_OPEN&&(x=this._input.next(),T=this._create_token(m.CONTROL_FLOW_CLOSE,x));return T},w.prototype._read_close=function(g,S){var x=null,T=null;return S&&S.type===m.TAG_OPEN&&(S.text[0]==="<"&&(g===">"||g==="/"&&this._input.peek(1)===">")?(x=this._input.next(),g==="/"&&(x+=this._input.next()),T=this._create_token(m.TAG_CLOSE,x)):S.text[0]==="{"&&g==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),T=this._create_token(m.TAG_CLOSE,"}}"))),T},w.prototype._read_attribute=function(g,S,x){var T=null,A="";if(x&&x.text[0]==="<")if(g==="=")T=this._create_token(m.EQUALS,this._input.next());else if(g==='"'||g==="'"){var M=this._input.next();g==='"'?M+=this.__patterns.double_quote.read():M+=this.__patterns.single_quote.read(),T=this._create_token(m.VALUE,M)}else A=this.__patterns.attribute.read(),A&&(S.type===m.EQUALS?T=this._create_token(m.VALUE,A):T=this._create_token(m.ATTRIBUTE,A));return T},w.prototype._is_content_unformatted=function(g){return this._options.void_elements.indexOf(g)===-1&&(this._options.content_unformatted.indexOf(g)!==-1||this._options.unformatted.indexOf(g)!==-1)},w.prototype._read_raw_content=function(g,S,x){var T="";if(x&&x.text[0]==="{")T=this.__patterns.handlebars_raw_close.read();else if(S.type===m.TAG_CLOSE&&S.opened.text[0]==="<"&&S.text[0]!=="/"){var A=S.opened.text.substr(1).toLowerCase();if(A==="script"||A==="style"){var M=this._read_comment_or_cdata(g);if(M)return M.type=m.TEXT,M;T=this._input.readUntil(new RegExp("","ig"))}else this._is_content_unformatted(A)&&(T=this._input.readUntil(new RegExp("","ig")))}return T?this._create_token(m.TEXT,T):null},w.prototype._read_content_word=function(g,S){var x="";if(this._options.unformatted_content_delimiter&&g===this._options.unformatted_content_delimiter[0]&&(x=this.__patterns.unformatted_content_delimiter.read()),x||(x=S&&S.type===m.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),x)return this._create_token(m.TEXT,x)},r.exports.Tokenizer=w,r.exports.TOKEN=m}],t={};function n(r){var s=t[r];if(s!==void 0)return s.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}var i=n(18);pa=i})();function Wu(e,t){return pa(e,t,Hu,Uu)}function Fu(e,t,n){let i=e.getText(),r=!0,s=0;const a=n.tabSize||4;if(t){let l=e.offsetAt(t.start),c=l;for(;c>0&&ba(i,c-1);)c--;c===0||ga(i,c-1)?l=c:c]*$/).test(f))return i=i.substring(l,d),[{range:t,newText:i}];if(r=d===i.length,i=i.substring(l,d),l!==0){const w=e.offsetAt(ie.create(t.start.line,0));s=qu(e.getText(),w,n)}}else t=j.create(ie.create(0,0),e.positionAt(i.length));const u={indent_size:a,indent_char:n.insertSpaces?" ":" ",indent_empty_lines:pe(n,"indentEmptyLines",!1),wrap_line_length:pe(n,"wrapLineLength",120),unformatted:si(n,"unformatted",void 0),content_unformatted:si(n,"contentUnformatted",void 0),indent_inner_html:pe(n,"indentInnerHtml",!1),preserve_newlines:pe(n,"preserveNewLines",!0),max_preserve_newlines:pe(n,"maxPreserveNewLines",32786),indent_handlebars:pe(n,"indentHandlebars",!1),end_with_newline:r&&pe(n,"endWithNewline",!1),extra_liners:si(n,"extraLiners",void 0),wrap_attributes:pe(n,"wrapAttributes","auto"),wrap_attributes_indent_size:pe(n,"wrapAttributesIndentSize",void 0),eol:` +`,indent_scripts:pe(n,"indentScripts","normal"),templating:Bu(n,"all"),unformatted_content_delimiter:pe(n,"unformattedContentDelimiter","")};let o=Wu(Pu(i),u);if(s>0){const l=n.insertSpaces?ha(" ",a*s):ha(" ",s);o=o.split(` +`).join(` +`+l),t.start.character===0&&(o=l+o)}return[{range:t,newText:o}]}function Pu(e){return e.replace(/^\s+/,"")}function pe(e,t,n){if(e&&e.hasOwnProperty(t)){const i=e[t];if(i!==null)return i}return n}function si(e,t,n){const i=pe(e,t,null);return typeof i=="string"?i.length>0?i.split(",").map(r=>r.trim().toLowerCase()):[]:n}function Bu(e,t){const n=pe(e,"templating",t);return n===!0?["auto"]:n===!1||n===t||Array.isArray(n)===!1?["none"]:n}function qu(e,t,n){let i=t,r=0;const s=n.tabSize||4;for(;i{var e={470:r=>{function s(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function a(o,l){for(var c,d="",m=0,f=-1,w=0,g=0;g<=o.length;++g){if(g2){var S=d.lastIndexOf("/");if(S!==d.length-1){S===-1?(d="",m=0):m=(d=d.slice(0,S)).length-1-d.lastIndexOf("/"),f=g,w=0;continue}}else if(d.length===2||d.length===1){d="",m=0,f=g,w=0;continue}}l&&(d.length>0?d+="/..":d="..",m=2)}else d.length>0?d+="/"+o.slice(f+1,g):d=o.slice(f+1,g),m=g-f-1;f=g,w=0}else c===46&&w!==-1?++w:w=-1}return d}var u={resolve:function(){for(var o,l="",c=!1,d=arguments.length-1;d>=-1&&!c;d--){var m;d>=0?m=arguments[d]:(o===void 0&&(o=process.cwd()),m=o),s(m),m.length!==0&&(l=m+"/"+l,c=m.charCodeAt(0)===47)}return l=a(l,!c),c?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(o){if(s(o),o.length===0)return".";var l=o.charCodeAt(0)===47,c=o.charCodeAt(o.length-1)===47;return(o=a(o,!l)).length!==0||l||(o="."),o.length>0&&c&&(o+="/"),l?"/"+o:o},isAbsolute:function(o){return s(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,l=0;l0&&(o===void 0?o=c:o+="/"+c)}return o===void 0?".":u.normalize(o)},relative:function(o,l){if(s(o),s(l),o===l||(o=u.resolve(o))===(l=u.resolve(l)))return"";for(var c=1;cg){if(l.charCodeAt(f+x)===47)return l.slice(f+x+1);if(x===0)return l.slice(f+x)}else m>g&&(o.charCodeAt(c+x)===47?S=x:x===0&&(S=0));break}var T=o.charCodeAt(c+x);if(T!==l.charCodeAt(f+x))break;T===47&&(S=x)}var A="";for(x=c+S+1;x<=d;++x)x!==d&&o.charCodeAt(x)!==47||(A.length===0?A+="..":A+="/..");return A.length>0?A+l.slice(f+S):(f+=S,l.charCodeAt(f)===47&&++f,l.slice(f))},_makeLong:function(o){return o},dirname:function(o){if(s(o),o.length===0)return".";for(var l=o.charCodeAt(0),c=l===47,d=-1,m=!0,f=o.length-1;f>=1;--f)if((l=o.charCodeAt(f))===47){if(!m){d=f;break}}else m=!1;return d===-1?c?"/":".":c&&d===1?"//":o.slice(0,d)},basename:function(o,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');s(o);var c,d=0,m=-1,f=!0;if(l!==void 0&&l.length>0&&l.length<=o.length){if(l.length===o.length&&l===o)return"";var w=l.length-1,g=-1;for(c=o.length-1;c>=0;--c){var S=o.charCodeAt(c);if(S===47){if(!f){d=c+1;break}}else g===-1&&(f=!1,g=c+1),w>=0&&(S===l.charCodeAt(w)?--w==-1&&(m=c):(w=-1,m=g))}return d===m?m=g:m===-1&&(m=o.length),o.slice(d,m)}for(c=o.length-1;c>=0;--c)if(o.charCodeAt(c)===47){if(!f){d=c+1;break}}else m===-1&&(f=!1,m=c+1);return m===-1?"":o.slice(d,m)},extname:function(o){s(o);for(var l=-1,c=0,d=-1,m=!0,f=0,w=o.length-1;w>=0;--w){var g=o.charCodeAt(w);if(g!==47)d===-1&&(m=!1,d=w+1),g===46?l===-1?l=w:f!==1&&(f=1):l!==-1&&(f=-1);else if(!m){c=w+1;break}}return l===-1||d===-1||f===0||f===1&&l===d-1&&l===c+1?"":o.slice(l,d)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return function(l,c){var d=c.dir||c.root,m=c.base||(c.name||"")+(c.ext||"");return d?d===c.root?d+m:d+"/"+m:m}(0,o)},parse:function(o){s(o);var l={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return l;var c,d=o.charCodeAt(0),m=d===47;m?(l.root="/",c=1):c=0;for(var f=-1,w=0,g=-1,S=!0,x=o.length-1,T=0;x>=c;--x)if((d=o.charCodeAt(x))!==47)g===-1&&(S=!1,g=x+1),d===46?f===-1?f=x:T!==1&&(T=1):f!==-1&&(T=-1);else if(!S){w=x+1;break}return f===-1||g===-1||T===0||T===1&&f===g-1&&f===w+1?g!==-1&&(l.base=l.name=w===0&&m?o.slice(1,g):o.slice(w,g)):(w===0&&m?(l.name=o.slice(1,f),l.base=o.slice(1,g)):(l.name=o.slice(w,f),l.base=o.slice(w,g)),l.ext=o.slice(f,g)),w>0?l.dir=o.slice(0,w-1):m&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};u.posix=u,r.exports=u}},t={};function n(r){var s=t[r];if(s!==void 0)return s.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.d=(r,s)=>{for(var a in s)n.o(s,a)&&!n.o(r,a)&&Object.defineProperty(r,a,{enumerable:!0,get:s[a]})},n.o=(r,s)=>Object.prototype.hasOwnProperty.call(r,s),n.r=r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var i={};(()=>{let r;n.r(i),n.d(i,{URI:()=>m,Utils:()=>H}),typeof process=="object"?r=process.platform==="win32":typeof navigator=="object"&&(r=navigator.userAgent.indexOf("Windows")>=0);const s=/^\w[\w\d+.-]*$/,a=/^\//,u=/^\/\//;function o(v,_){if(!v.scheme&&_)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${v.authority}", path: "${v.path}", query: "${v.query}", fragment: "${v.fragment}"}`);if(v.scheme&&!s.test(v.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(v.path){if(v.authority){if(!a.test(v.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(u.test(v.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const l="",c="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class m{constructor(_,L,y,C,N,I=!1){je(this,"scheme");je(this,"authority");je(this,"path");je(this,"query");je(this,"fragment");typeof _=="object"?(this.scheme=_.scheme||l,this.authority=_.authority||l,this.path=_.path||l,this.query=_.query||l,this.fragment=_.fragment||l):(this.scheme=function(P,U){return P||U?P:"file"}(_,I),this.authority=L||l,this.path=function(P,U){switch(P){case"https":case"http":case"file":U?U[0]!==c&&(U=c+U):U=c}return U}(this.scheme,y||l),this.query=C||l,this.fragment=N||l,o(this,I))}static isUri(_){return _ instanceof m||!!_&&typeof _.authority=="string"&&typeof _.fragment=="string"&&typeof _.path=="string"&&typeof _.query=="string"&&typeof _.scheme=="string"&&typeof _.fsPath=="string"&&typeof _.with=="function"&&typeof _.toString=="function"}get fsPath(){return T(this,!1)}with(_){if(!_)return this;let{scheme:L,authority:y,path:C,query:N,fragment:I}=_;return L===void 0?L=this.scheme:L===null&&(L=l),y===void 0?y=this.authority:y===null&&(y=l),C===void 0?C=this.path:C===null&&(C=l),N===void 0?N=this.query:N===null&&(N=l),I===void 0?I=this.fragment:I===null&&(I=l),L===this.scheme&&y===this.authority&&C===this.path&&N===this.query&&I===this.fragment?this:new w(L,y,C,N,I)}static parse(_,L=!1){const y=d.exec(_);return y?new w(y[2]||l,D(y[4]||l),D(y[5]||l),D(y[7]||l),D(y[9]||l),L):new w(l,l,l,l,l)}static file(_){let L=l;if(r&&(_=_.replace(/\\/g,c)),_[0]===c&&_[1]===c){const y=_.indexOf(c,2);y===-1?(L=_.substring(2),_=c):(L=_.substring(2,y),_=_.substring(y)||c)}return new w("file",L,_,l,l)}static from(_){const L=new w(_.scheme,_.authority,_.path,_.query,_.fragment);return o(L,!0),L}toString(_=!1){return A(this,_)}toJSON(){return this}static revive(_){if(_){if(_ instanceof m)return _;{const L=new w(_);return L._formatted=_.external,L._fsPath=_._sep===f?_.fsPath:null,L}}return _}}const f=r?1:void 0;class w extends m{constructor(){super(...arguments);je(this,"_formatted",null);je(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=T(this,!1)),this._fsPath}toString(L=!1){return L?A(this,!0):(this._formatted||(this._formatted=A(this,!1)),this._formatted)}toJSON(){const L={$mid:1};return this._fsPath&&(L.fsPath=this._fsPath,L._sep=f),this._formatted&&(L.external=this._formatted),this.path&&(L.path=this.path),this.scheme&&(L.scheme=this.scheme),this.authority&&(L.authority=this.authority),this.query&&(L.query=this.query),this.fragment&&(L.fragment=this.fragment),L}}const g={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 S(v,_,L){let y,C=-1;for(let N=0;N=97&&I<=122||I>=65&&I<=90||I>=48&&I<=57||I===45||I===46||I===95||I===126||_&&I===47||L&&I===91||L&&I===93||L&&I===58)C!==-1&&(y+=encodeURIComponent(v.substring(C,N)),C=-1),y!==void 0&&(y+=v.charAt(N));else{y===void 0&&(y=v.substr(0,N));const P=g[I];P!==void 0?(C!==-1&&(y+=encodeURIComponent(v.substring(C,N)),C=-1),y+=P):C===-1&&(C=N)}}return C!==-1&&(y+=encodeURIComponent(v.substring(C))),y!==void 0?y:v}function x(v){let _;for(let L=0;L1&&v.scheme==="file"?`//${v.authority}${v.path}`:v.path.charCodeAt(0)===47&&(v.path.charCodeAt(1)>=65&&v.path.charCodeAt(1)<=90||v.path.charCodeAt(1)>=97&&v.path.charCodeAt(1)<=122)&&v.path.charCodeAt(2)===58?_?v.path.substr(1):v.path[1].toLowerCase()+v.path.substr(2):v.path,r&&(L=L.replace(/\//g,"\\")),L}function A(v,_){const L=_?x:S;let y="",{scheme:C,authority:N,path:I,query:P,fragment:U}=v;if(C&&(y+=C,y+=":"),(N||C==="file")&&(y+=c,y+=c),N){let W=N.indexOf("@");if(W!==-1){const G=N.substr(0,W);N=N.substr(W+1),W=G.lastIndexOf(":"),W===-1?y+=L(G,!1,!1):(y+=L(G.substr(0,W),!1,!1),y+=":",y+=L(G.substr(W+1),!1,!0)),y+="@"}N=N.toLowerCase(),W=N.lastIndexOf(":"),W===-1?y+=L(N,!1,!0):(y+=L(N.substr(0,W),!1,!0),y+=N.substr(W))}if(I){if(I.length>=3&&I.charCodeAt(0)===47&&I.charCodeAt(2)===58){const W=I.charCodeAt(1);W>=65&&W<=90&&(I=`/${String.fromCharCode(W+32)}:${I.substr(3)}`)}else if(I.length>=2&&I.charCodeAt(1)===58){const W=I.charCodeAt(0);W>=65&&W<=90&&(I=`${String.fromCharCode(W+32)}:${I.substr(2)}`)}y+=L(I,!0,!1)}return P&&(y+="?",y+=L(P,!1,!1)),U&&(y+="#",y+=_?U:S(U,!1,!1)),y}function M(v){try{return decodeURIComponent(v)}catch{return v.length>3?v.substr(0,3)+M(v.substr(3)):v}}const R=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function D(v){return v.match(R)?v.replace(R,_=>M(_)):v}var b=n(470);const p=b.posix||b,k="/";var H;(function(v){v.joinPath=function(_,...L){return _.with({path:p.join(_.path,...L)})},v.resolvePath=function(_,...L){let y=_.path,C=!1;y[0]!==k&&(y=k+y,C=!0);let N=p.resolve(y,...L);return C&&N[0]===k&&!_.authority&&(N=N.substring(1)),_.with({path:N})},v.dirname=function(_){if(_.path.length===0||_.path===k)return _;let L=p.dirname(_.path);return L.length===1&&L.charCodeAt(0)===46&&(L=""),_.with({path:L})},v.basename=function(_){return p.basename(_.path)},v.extname=function(_){return p.extname(_.path)}})(H||(H={}))})(),_a=i})();var{URI:Ou,Utils:_c}=_a;function ai(e){const t=e[0],n=e[e.length-1];return t===n&&(t==="'"||t==='"')&&(e=e.substring(1,e.length-1)),e}function Vu(e,t){return!e.length||t==="handlebars"&&/{{|}}/.test(e)?!1:/\b(w[\w\d+.-]*:\/\/)?[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))/.test(e)}function ju(e,t,n,i){if(/^\s*javascript\:/i.test(t)||/[\n\r]/.test(t))return;t=t.replace(/^\s*/g,"");const r=t.match(/^(\w[\w\d+.-]*):/);if(r){const s=r[1].toLowerCase();return s==="http"||s==="https"||s==="file"?t:void 0}return/^\#/i.test(t)?e+t:/^\/\//i.test(t)?(Ve(e,"https://")?"https":"http")+":"+t.replace(/^\s*/g,""):n?n.resolveReference(t,i||e):t}function Gu(e,t,n,i,r,s){const a=ai(n);if(!Vu(a,e.languageId))return;a.length"u"&&(o=ai(c),o&&t&&(o=t.resolveReference(o,e.uri))),u=!1,s=void 0}else if(s==="id"){const c=ai(i.getTokenText());l[c]=i.getTokenOffset()}break}r=i.scan()}for(const c of n){const d=e.uri+"#";if(c.target&&Ve(c.target,d)){const m=c.target.substring(d.length),f=l[m];if(f!==void 0){const w=e.positionAt(f);c.target=`${d}${w.line+1},${w.character+1}`}else c.target=e.uri}}return n}};function Qu(e,t,n){const i=e.offsetAt(t),r=n.findNodeAt(i);if(!r.tag)return[];const s=[],a=ya(z.StartTag,e,r.start),u=typeof r.endTagStart=="number"&&ya(z.EndTag,e,r.endTagStart);return(a&&va(a,t)||u&&va(u,t))&&(a&&s.push({kind:Qt.Read,range:a}),u&&s.push({kind:Qt.Read,range:u})),s}function wa(e,t){return e.line{Ta(e,i,n)}),n}function Ta(e,t,n){const i=Zu(t),r=j.create(e.positionAt(t.start),e.positionAt(t.end)),s=Zn.create(i,void 0,Qn.Field,r,r);n.push(s),t.children.forEach(a=>{s.children??(s.children=[]),Ta(e,a,s.children)})}function Zu(e){let t=e.tag;if(e.attributes){const n=e.attributes.id,i=e.attributes.class;n&&(t+=`#${n.replace(/[\"\']/g,"")}`),i&&(t+=i.replace(/[\"\']/g,"").split(/\s+/).map(r=>`.${r}`).join(""))}return t||"?"}function Ku(e,t,n,i){const r=e.offsetAt(t),s=i.findNodeAt(r);if(!s.tag||!ec(s,r,s.tag))return null;const a=[],u={start:e.positionAt(s.start+1),end:e.positionAt(s.start+1+s.tag.length)};if(a.push({range:u,newText:n}),s.endTagStart){const l={start:e.positionAt(s.endTagStart+2),end:e.positionAt(s.endTagStart+2+s.tag.length)};a.push({range:l,newText:n})}return{changes:{[e.uri.toString()]:a}}}function ec(e,t,n){return e.endTagStart&&e.endTagStart+2<=t&&t<=e.endTagStart+2+n.length?!0:e.start+1<=t&&t<=e.start+1+n.length}function tc(e,t,n){const i=e.offsetAt(t),r=n.findNodeAt(i);if(!r.tag||!r.endTagStart)return null;if(r.start+1<=i&&i<=r.start+1+r.tag.length){const s=i-1-r.start+r.endTagStart+2;return e.positionAt(s)}if(r.endTagStart+2<=i&&i<=r.endTagStart+2+r.tag.length){const s=i-2-r.endTagStart+r.start+1;return e.positionAt(s)}return null}function ka(e,t,n){const i=e.offsetAt(t),r=n.findNodeAt(i),s=r.tag?r.tag.length:0;return r.endTagStart&&(r.start+1<=i&&i<=r.start+1+s||r.endTagStart+2<=i&&i<=r.endTagStart+2+s)?[j.create(e.positionAt(r.start+1),e.positionAt(r.start+1+s)),j.create(e.positionAt(r.endTagStart+2),e.positionAt(r.endTagStart+2+s))]:null}var nc=class{constructor(e){this.dataManager=e}limitRanges(e,t){e=e.sort((c,d)=>{let m=c.startLine-d.startLine;return m===0&&(m=c.endLine-d.endLine),m});let n;const i=[],r=[],s=[],a=(c,d)=>{r[c]=d,d<30&&(s[d]=(s[d]||0)+1)};for(let c=0;cn.startLine){if(d.endLine<=n.endLine)i.push(n),n=d,a(c,i.length);else if(d.startLine>n.endLine){do n=i.pop();while(n&&d.startLine>n.endLine);n&&i.push(n),n=d,a(c,i.length)}}}let u=0,o=0;for(let c=0;ct){o=c;break}u+=d}}const l=[];for(let c=0;c=0&&a[d].tagName!==u;)d--;if(d>=0){const m=a[d];a.length=d;const f=e.positionAt(i.getTokenOffset()).line,w=m.startLine,g=f-1;g>w&&o!==w&&l({startLine:w,endLine:g})}break}case z.Comment:{let d=e.positionAt(i.getTokenOffset()).line;const f=i.getTokenText().match(/^\s*#(region\b)|(endregion\b)/);if(f)if(f[1])a.push({startLine:d,tagName:""});else{let w=a.length-1;for(;w>=0&&a[w].tagName.length;)w--;if(w>=0){const g=a[w];a.length=w;const S=d;d=g.startLine,S>d&&o!==d&&l({startLine:d,endLine:S,kind:$t.Region})}}else{const w=e.positionAt(i.getTokenOffset()+i.getTokenLength()).line;dc?this.limitRanges(s,c):s}},ic=class{constructor(e){this.htmlParser=e}getSelectionRanges(e,t){const n=this.htmlParser.parseDocument(e);return t.map(i=>this.getSelectionRange(i,e,n))}getSelectionRange(e,t,n){const i=this.getApplicableRanges(t,e,n);let r,s;for(let a=i.length-1;a>=0;a--){const u=i[a];(!r||u[0]!==r[0]||u[1]!==r[1])&&(s=Zt.create(j.create(t.positionAt(i[a][0]),t.positionAt(i[a][1])),s)),r=u}return s||(s=Zt.create(j.create(e,e))),s}getApplicableRanges(e,t,n){const i=e.offsetAt(t),r=n.findNodeAt(i);let s=this.getAllParentTagRanges(r);if(r.startTagEnd&&!r.endTagStart){if(r.startTagEnd!==r.end)return[[r.start,r.end]];const a=j.create(e.positionAt(r.startTagEnd-2),e.positionAt(r.startTagEnd));return e.getText(a)==="/>"?s.unshift([r.start+1,r.startTagEnd-2]):s.unshift([r.start+1,r.startTagEnd-1]),s=this.getAttributeLevelRanges(e,r,i).concat(s),s}return!r.startTagEnd||!r.endTagStart?s:(s.unshift([r.start,r.end]),r.start=r.endTagStart+2&&s.unshift([r.endTagStart+2,r.end-1]),s))}getAllParentTagRanges(e){let t=e;const n=[];for(;t.parent;)t=t.parent,this.getNodeRanges(t).forEach(i=>n.push(i));return n}getNodeRanges(e){return e.startTagEnd&&e.endTagStart&&e.startTagEnd=a.getTokenOffset()&&s<=a.getTokenEnd()&&(l.unshift([a.getTokenOffset(),a.getTokenEnd()]),(m[0]==='"'&&m[m.length-1]==='"'||m[0]==="'"&&m[m.length-1]==="'")&&s>=a.getTokenOffset()+1&&s<=a.getTokenEnd()-1&&l.unshift([a.getTokenOffset()+1,a.getTokenEnd()-1]),l.push([d,a.getTokenEnd()]));break}}u=a.scan()}return l.map(m=>[m[0]+o,m[1]+o])}},rc={version:1.1,tags:[{name:"html",description:{kind:"markdown",value:"The html element represents the root of an HTML document."},attributes:[{name:"manifest",description:{kind:"markdown",value:"Specifies the URI of a resource manifest indicating resources that should be cached locally. See [Using the application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache) for details."}},{name:"version",description:'Specifies the version of the HTML [Document Type Definition](https://developer.mozilla.org/en-US/docs/Glossary/DTD "Document Type Definition: In HTML, the doctype is the required "" preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called “quirks mode” when rendering a document; that is, the "" doctype ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.") that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration.'},{name:"xmlns",description:'Specifies the XML Namespace of the document. Default value is `"http://www.w3.org/1999/xhtml"`. This is required in documents parsed with XML parsers, and optional in text/html documents.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/html"}]},{name:"head",description:{kind:"markdown",value:"The head element represents a collection of metadata for the Document."},attributes:[{name:"profile",description:"The URIs of one or more metadata profiles, separated by white space."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/head"}]},{name:"title",description:{kind:"markdown",value:"The title element represents the document's title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results. The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/title"}]},{name:"base",description:{kind:"markdown",value:"The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:"The base URL to be used throughout the document for relative URL addresses. If this attribute is specified, this element must come before any other elements with attributes whose values are URLs. Absolute and relative URLs are allowed."}},{name:"target",valueSet:"target",description:{kind:"markdown",value:"A name or keyword indicating the default location to display the result when hyperlinks or forms cause navigation, for elements that do not have an explicit target reference. It is a name of, or keyword for, a _browsing context_ (for example: tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the result into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the result into a new unnamed browsing context.\n* `_parent`: Load the result into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the result into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n\nIf this attribute is specified, this element must come before any other elements with attributes whose values are URLs."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/base"}]},{name:"link",description:{kind:"markdown",value:"The link element allows authors to link their document to other resources."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:'This attribute specifies the [URL](https://developer.mozilla.org/en-US/docs/Glossary/URL "URL: Uniform Resource Locator (URL) is a text string specifying where a resource can be found on the Internet.") of the linked resource. A URL can be absolute or relative.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") must be used when fetching the resource. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_Enabled_Image) can be reused in the [``](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\n`anonymous`\n\nA cross-origin request (i.e. with an [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) is performed, but no credential is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header) the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e. with an `Origin` HTTP header) is performed along with a credential sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through [`Access-Control-Allow-Credentials`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials "The Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request\'s credentials mode (Request.credentials) is "include".") HTTP header), the resource will be _tainted_ and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") request (i.e. without sending the `Origin` HTTP header), preventing its non-tainted usage. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for additional information.'}},{name:"rel",description:{kind:"markdown",value:"This attribute names a relationship of the linked document to the current document. The attribute must be a space-separated list of the [link types values](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"media",description:{kind:"markdown",value:"This attribute specifies the media that the linked resource applies to. Its value must be a media type / [media query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries). This attribute is mainly useful when linking to external stylesheets — it allows the user agent to pick the best adapted one for the device it runs on.\n\n**Notes:**\n\n* In HTML 4, this can only be a simple white-space-separated list of media description literals, i.e., [media types and groups](https://developer.mozilla.org/en-US/docs/Web/CSS/@media), where defined and allowed as values for this attribute, such as `print`, `screen`, `aural`, `braille`. HTML5 extended this to any kind of [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries), which are a superset of the allowed values of HTML 4.\n* Browsers not supporting [CSS3 Media Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries) won't necessarily recognize the adequate link; do not forget to set fallback links, the restricted set of media queries defined in HTML 4."}},{name:"hreflang",description:{kind:"markdown",value:"This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt). Use this attribute only if the [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute is present."}},{name:"type",description:{kind:"markdown",value:'This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as **text/html**, **text/css**, and so on. The common use of this attribute is to define the type of stylesheet being referenced (such as **text/css**), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the `type` attribute, but is actually now recommended practice. It is also used on `rel="preload"` link types, to make sure the browser only downloads file types that it supports.'}},{name:"sizes",description:{kind:"markdown",value:"This attribute defines the sizes of the icons for visual media contained in the resource. It must be present only if the [`rel`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel) contains a value of `icon` or a non-standard type such as Apple's `apple-touch-icon`. It may have the following values:\n\n* `any`, meaning that the icon can be scaled to any size as it is in a vector format, like `image/svg+xml`.\n* a white-space separated list of sizes, each in the format `__x__` or `__X__`. Each of these sizes must be contained in the resource.\n\n**Note:** Most icon formats are only able to store one single icon; therefore most of the time the [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-sizes) contains only one entry. MS's ICO format does, as well as Apple's ICNS. ICO is more ubiquitous; you should definitely use it."}},{name:"as",description:'This attribute is only used when `rel="preload"` or `rel="prefetch"` has been set on the `` element. It specifies the type of content being loaded by the ``, which is necessary for content prioritization, request matching, application of correct [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and setting of correct [`Accept`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept "The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. Browsers set adequate values for this header depending on the context where the request is done: when fetching a CSS stylesheet a different value is set for the request than when fetching an image, video or a script.") request header.'},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:'**`auto`**: Indicates **no preference**. The browser may use its own heuristics to decide the priority of the resource.\n\n**`high`**: Indicates to the browser that the resource is of **high** priority.\n\n**`low`**: Indicates to the browser that the resource is of **low** priority.\n\n**Note:** The `importance` attribute may only be used for the `` element if `rel="preload"` or `rel="prefetch"` is present.'},{name:"integrity",description:"Contains inline metadata — a base64-encoded cryptographic hash of the resource (file) you’re telling the browser to fetch. The browser can use this to verify that the fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"referrerpolicy",description:'A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer` means that the [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` means that no [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent’s default behavior, if no policy is otherwise specified.\n* `origin` means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port.\n* `origin-when-cross-origin` means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer\'s path.\n* `unsafe-url` means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.'},{name:"title",description:'The `title` attribute has special semantics on the `` element. When used on a `` it defines a [preferred or an alternate stylesheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets). Incorrectly using it may [cause the stylesheet to be ignored](https://developer.mozilla.org/en-US/docs/Correctly_Using_Titles_With_External_Stylesheets).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/link"}]},{name:"meta",description:{kind:"markdown",value:"The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements."},void:!0,attributes:[{name:"name",description:{kind:"markdown",value:`This attribute defines the name of a piece of document-level metadata. It should not be set if one of the attributes [\`itemprop\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-itemprop), [\`http-equiv\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [\`charset\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) is also set. + +This metadata name is associated with the value contained by the [\`content\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute. The possible values for the name attribute are: + +* \`application-name\` which defines the name of the application running in the web page. + + **Note:** + + * Browsers may use this to identify the application. It is different from the [\`\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title "The HTML Title element (<title>) defines the document's title that is shown in a browser's title bar or a page's tab.") element, which usually contain the application name, but may also contain information like the document name or a status. + * Simple web pages shouldn't define an application-name. + +* \`author\` which defines the name of the document's author. +* \`description\` which contains a short and accurate summary of the content of the page. Several browsers, like Firefox and Opera, use this as the default description of bookmarked pages. +* \`generator\` which contains the identifier of the software that generated the page. +* \`keywords\` which contains words relevant to the page's content separated by commas. +* \`referrer\` which controls the [\`Referer\` HTTP header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) attached to requests sent from the document: + + Values for the \`content\` attribute of \`<meta name="referrer">\` + + \`no-referrer\` + + Do not send a HTTP \`Referrer\` header. + + \`origin\` + + Send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the document. + + \`no-referrer-when-downgrade\` + + Send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) as a referrer to URLs as secure as the current page, (https→https), but does not send a referrer to less secure URLs (https→http). This is the default behaviour. + + \`origin-when-cross-origin\` + + Send the full URL (stripped of parameters) for same-origin requests, but only send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) for other cases. + + \`same-origin\` + + A referrer will be sent for [same-site origins](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy), but cross-origin requests will contain no referrer information. + + \`strict-origin\` + + Only send the origin of the document as the referrer to a-priori as-much-secure destination (HTTPS->HTTPS), but don't send it to a less secure destination (HTTPS->HTTP). + + \`strict-origin-when-cross-origin\` + + Send a full URL when performing a same-origin request, only send the origin of the document to a-priori as-much-secure destination (HTTPS->HTTPS), and send no header to a less secure destination (HTTPS->HTTP). + + \`unsafe-URL\` + + Send the full URL (stripped of parameters) for same-origin or cross-origin requests. + + **Notes:** + + * Some browsers support the deprecated values of \`always\`, \`default\`, and \`never\` for referrer. + * Dynamically inserting \`<meta name="referrer">\` (with [\`document.write\`](https://developer.mozilla.org/en-US/docs/Web/API/Document/write) or [\`appendChild\`](https://developer.mozilla.org/en-US/docs/Web/API/Node/appendChild)) makes the referrer behaviour unpredictable. + * When several conflicting policies are defined, the no-referrer policy is applied. + + +This attribute may also have a value taken from the extended list defined on [WHATWG Wiki MetaExtensions page](https://wiki.whatwg.org/wiki/MetaExtensions). Although none have been formally accepted yet, a few commonly used names are: + +* \`creator\` which defines the name of the creator of the document, such as an organization or institution. If there are more than one, several [\`<meta>\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") elements should be used. +* \`googlebot\`, a synonym of \`robots\`, is only followed by Googlebot (the indexing crawler for Google). +* \`publisher\` which defines the name of the document's publisher. +* \`robots\` which defines the behaviour that cooperative crawlers, or "robots", should use with the page. It is a comma-separated list of the values below: + + Values for the content of \`<meta name="robots">\` + + Value + + Description + + Used by + + \`index\` + + Allows the robot to index the page (default). + + All + + \`noindex\` + + Requests the robot to not index the page. + + All + + \`follow\` + + Allows the robot to follow the links on the page (default). + + All + + \`nofollow\` + + Requests the robot to not follow the links on the page. + + All + + \`none\` + + Equivalent to \`noindex, nofollow\` + + [Google](https://support.google.com/webmasters/answer/79812) + + \`noodp\` + + Prevents using the [Open Directory Project](https://www.dmoz.org/) description, if any, as the page description in search engine results. + + [Google](https://support.google.com/webmasters/answer/35624#nodmoz), [Yahoo](https://help.yahoo.com/kb/search-for-desktop/meta-tags-robotstxt-yahoo-search-sln2213.html#cont5), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240) + + \`noarchive\` + + Requests the search engine not to cache the page content. + + [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives), [Yahoo](https://help.yahoo.com/kb/search-for-desktop/SLN2213.html), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240) + + \`nosnippet\` + + Prevents displaying any description of the page in search engine results. + + [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240) + + \`noimageindex\` + + Requests this page not to appear as the referring page of an indexed image. + + [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives) + + \`nocache\` + + Synonym of \`noarchive\`. + + [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240) + + **Notes:** + + * Only cooperative robots follow these rules. Do not expect to prevent e-mail harvesters with them. + * The robot still needs to access the page in order to read these rules. To prevent bandwidth consumption, use a _[robots.txt](https://developer.mozilla.org/en-US/docs/Glossary/robots.txt "robots.txt: Robots.txt is a file which is usually placed in the root of any website. It decides whether crawlers are permitted or forbidden access to the web site.")_ file. + * If you want to remove a page, \`noindex\` will work, but only after the robot visits the page again. Ensure that the \`robots.txt\` file is not preventing revisits. + * Some values are mutually exclusive, like \`index\` and \`noindex\`, or \`follow\` and \`nofollow\`. In these cases the robot's behaviour is undefined and may vary between them. + * Some crawler robots, like Google, Yahoo and Bing, support the same values for the HTTP header \`X-Robots-Tag\`; this allows non-HTML documents like images to use these rules. + +* \`slurp\`, is a synonym of \`robots\`, but only for Slurp - the crawler for Yahoo Search. +* \`viewport\`, which gives hints about the size of the initial size of the [viewport](https://developer.mozilla.org/en-US/docs/Glossary/viewport "viewport: A viewport represents a polygonal (normally rectangular) area in computer graphics that is currently being viewed. In web browser terms, it refers to the part of the document you're viewing which is currently visible in its window (or the screen, if the document is being viewed in full screen mode). Content outside the viewport is not visible onscreen until scrolled into view."). Used by mobile devices only. + + Values for the content of \`<meta name="viewport">\` + + Value + + Possible subvalues + + Description + + \`width\` + + A positive integer number, or the text \`device-width\` + + Defines the pixel width of the viewport that you want the web site to be rendered at. + + \`height\` + + A positive integer, or the text \`device-height\` + + Defines the height of the viewport. Not used by any browser. + + \`initial-scale\` + + A positive number between \`0.0\` and \`10.0\` + + Defines the ratio between the device width (\`device-width\` in portrait mode or \`device-height\` in landscape mode) and the viewport size. + + \`maximum-scale\` + + A positive number between \`0.0\` and \`10.0\` + + Defines the maximum amount to zoom in. It must be greater or equal to the \`minimum-scale\` or the behaviour is undefined. Browser settings can ignore this rule and iOS10+ ignores it by default. + + \`minimum-scale\` + + A positive number between \`0.0\` and \`10.0\` + + Defines the minimum zoom level. It must be smaller or equal to the \`maximum-scale\` or the behaviour is undefined. Browser settings can ignore this rule and iOS10+ ignores it by default. + + \`user-scalable\` + + \`yes\` or \`no\` + + If set to \`no\`, the user is not able to zoom in the webpage. The default is \`yes\`. Browser settings can ignore this rule, and iOS10+ ignores it by default. + + Specification + + Status + + Comment + + [CSS Device Adaptation + The definition of '<meta name="viewport">' in that specification.](https://drafts.csswg.org/css-device-adapt/#viewport-meta) + + Working Draft + + Non-normatively describes the Viewport META element + + See also: [\`@viewport\`](https://developer.mozilla.org/en-US/docs/Web/CSS/@viewport "The @viewport CSS at-rule lets you configure the viewport through which the document is viewed. It's primarily used for mobile devices, but is also used by desktop browsers that support features like "snap to edge" (such as Microsoft Edge).") + + **Notes:** + + * Though unstandardized, this declaration is respected by most mobile browsers due to de-facto dominance. + * The default values may vary between devices and browsers. + * To learn about this declaration in Firefox for Mobile, see [this article](https://developer.mozilla.org/en-US/docs/Mobile/Viewport_meta_tag "Mobile/Viewport meta tag").`}},{name:"http-equiv",description:{kind:"markdown",value:'Defines a pragma directive. The attribute is named `**http-equiv**(alent)` because all the allowed values are names of particular HTTP headers:\n\n* `"content-language"` \n Defines the default language of the page. It can be overridden by the [lang](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang) attribute on any element.\n \n **Warning:** Do not use this value, as it is obsolete. Prefer the `lang` attribute on the [`<html>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html "The HTML <html> element represents the root (top-level element) of an HTML document, so it is also referred to as the root element. All other elements must be descendants of this element.") element.\n \n* `"content-security-policy"` \n Allows page authors to define a [content policy](https://developer.mozilla.org/en-US/docs/Web/Security/CSP/CSP_policy_directives) for the current page. Content policies mostly specify allowed server origins and script endpoints which help guard against cross-site scripting attacks.\n* `"content-type"` \n Defines the [MIME type](https://developer.mozilla.org/en-US/docs/Glossary/MIME_type) of the document, followed by its character encoding. It follows the same syntax as the HTTP `content-type` entity-header field, but as it is inside a HTML page, most values other than `text/html` are impossible. Therefore the valid syntax for its `content` is the string \'`text/html`\' followed by a character set with the following syntax: \'`; charset=_IANAcharset_`\', where `IANAcharset` is the _preferred MIME name_ for a character set as [defined by the IANA.](https://www.iana.org/assignments/character-sets)\n \n **Warning:** Do not use this value, as it is obsolete. Use the [`charset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) attribute on the [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element.\n \n **Note:** As [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") can\'t change documents\' types in XHTML or HTML5\'s XHTML serialization, never set the MIME type to an XHTML MIME type with `<meta>`.\n \n* `"refresh"` \n This instruction specifies:\n * The number of seconds until the page should be reloaded - only if the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute contains a positive integer.\n * The number of seconds until the page should redirect to another - only if the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute contains a positive integer followed by the string \'`;url=`\', and a valid URL.\n* `"set-cookie"` \n Defines a [cookie](https://developer.mozilla.org/en-US/docs/cookie) for the page. Its content must follow the syntax defined in the [IETF HTTP Cookie Specification](https://tools.ietf.org/html/draft-ietf-httpstate-cookie-14).\n \n **Warning:** Do not use this instruction, as it is obsolete. Use the HTTP header [`Set-Cookie`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) instead.'}},{name:"content",description:{kind:"markdown",value:"This attribute contains the value for the [`http-equiv`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [`name`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-name) attribute, depending on which is used."}},{name:"charset",description:{kind:"markdown",value:'This attribute declares the page\'s character encoding. It must contain a [standard IANA MIME name for character encodings](https://www.iana.org/assignments/character-sets). Although the standard doesn\'t request a specific encoding, it suggests:\n\n* Authors are encouraged to use [`UTF-8`](https://developer.mozilla.org/en-US/docs/Glossary/UTF-8).\n* Authors should not use ASCII-incompatible encodings to avoid security risk: browsers not supporting them may interpret harmful content as HTML. This happens with the `JIS_C6226-1983`, `JIS_X0212-1990`, `HZ-GB-2312`, `JOHAB`, the ISO-2022 family and the EBCDIC family.\n\n**Note:** ASCII-incompatible encodings are those that don\'t map the 8-bit code points `0x20` to `0x7E` to the `0x0020` to `0x007E` Unicode code points)\n\n* Authors **must not** use `CESU-8`, `UTF-7`, `BOCU-1` and/or `SCSU` as [cross-site scripting](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting) attacks with these encodings have been demonstrated.\n* Authors should not use `UTF-32` because not all HTML5 encoding algorithms can distinguish it from `UTF-16`.\n\n**Notes:**\n\n* The declared character encoding must match the one the page was saved with to avoid garbled characters and security holes.\n* The [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element declaring the encoding must be inside the [`<head>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head "The HTML <head> element provides general information (metadata) about the document, including its title and links to its scripts and style sheets.") element and **within the first 1024 bytes** of the HTML as some browsers only look at those bytes before choosing an encoding.\n* This [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element is only one part of the [algorithm to determine a page\'s character set](https://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#encoding-sniffing-algorithm "Algorithm charset page"). The [`Content-Type` header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type) and any [Byte-Order Marks](https://developer.mozilla.org/en-US/docs/Glossary/Byte-Order_Mark "The definition of that term (Byte-Order Marks) has not been written yet; please consider contributing it!") override this element.\n* It is strongly recommended to define the character encoding. If a page\'s encoding is undefined, cross-scripting techniques are possible, such as the [`UTF-7` fallback cross-scripting technique](https://code.google.com/p/doctype-mirror/wiki/ArticleUtf7).\n* The [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element with a `charset` attribute is a synonym for the pre-HTML5 `<meta http-equiv="Content-Type" content="text/html; charset=_IANAcharset_">`, where _`IANAcharset`_ contains the value of the equivalent [`charset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) attribute. This syntax is still allowed, although no longer recommended.'}},{name:"scheme",description:"This attribute defines the scheme in which metadata is described. A scheme is a context leading to the correct interpretations of the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) value, like a format.\n\n**Warning:** Do not use this value, as it is obsolete. There is no replacement as there was no real usage for it."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/meta"}]},{name:"style",description:{kind:"markdown",value:"The style element allows authors to embed style information in their documents. The style element is one of several inputs to the styling processing model. The element does not represent content for the user."},attributes:[{name:"media",description:{kind:"markdown",value:"This attribute defines which media the style should be applied to. Its value is a [media query](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries), which defaults to `all` if the attribute is missing."}},{name:"nonce",description:{kind:"markdown",value:"A cryptographic nonce (number used once) used to whitelist inline styles in a [style-src Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide a nonce that cannot be guessed as bypassing a resource’s policy is otherwise trivial."}},{name:"type",description:{kind:"markdown",value:"This attribute defines the styling language as a MIME type (charset should not be specified). This attribute is optional and defaults to `text/css` if it is not specified — there is very little reason to include this in modern web documents."}},{name:"scoped",valueSet:"v"},{name:"title",description:"This attribute specifies [alternative style sheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets) sets."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/style"}]},{name:"body",description:{kind:"markdown",value:"The body element represents the content of the document."},attributes:[{name:"onafterprint",description:{kind:"markdown",value:"Function to call after the user has printed the document."}},{name:"onbeforeprint",description:{kind:"markdown",value:"Function to call when the user requests printing of the document."}},{name:"onbeforeunload",description:{kind:"markdown",value:"Function to call when the document is about to be unloaded."}},{name:"onhashchange",description:{kind:"markdown",value:"Function to call when the fragment identifier part (starting with the hash (`'#'`) character) of the document's current address has changed."}},{name:"onlanguagechange",description:{kind:"markdown",value:"Function to call when the preferred languages changed."}},{name:"onmessage",description:{kind:"markdown",value:"Function to call when the document has received a message."}},{name:"onoffline",description:{kind:"markdown",value:"Function to call when network communication has failed."}},{name:"ononline",description:{kind:"markdown",value:"Function to call when network communication has been restored."}},{name:"onpagehide"},{name:"onpageshow"},{name:"onpopstate",description:{kind:"markdown",value:"Function to call when the user has navigated session history."}},{name:"onstorage",description:{kind:"markdown",value:"Function to call when the storage area has changed."}},{name:"onunload",description:{kind:"markdown",value:"Function to call when the document is going away."}},{name:"alink",description:'Color of text for hyperlinks when selected. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:active`](https://developer.mozilla.org/en-US/docs/Web/CSS/:active "The :active CSS pseudo-class represents an element (such as a button) that is being activated by the user.") pseudo-class instead._'},{name:"background",description:'URI of a image to use as a background. _This method is non-conforming, use CSS [`background`](https://developer.mozilla.org/en-US/docs/Web/CSS/background "The background shorthand CSS property sets all background style properties at once, such as color, image, origin and size, or repeat method.") property on the element instead._'},{name:"bgcolor",description:'Background color for the document. _This method is non-conforming, use CSS [`background-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property on the element instead._'},{name:"bottommargin",description:'The margin of the bottom of the body. _This method is non-conforming, use CSS [`margin-bottom`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom "The margin-bottom CSS property sets the margin area on the bottom of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"leftmargin",description:'The margin of the left of the body. _This method is non-conforming, use CSS [`margin-left`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left "The margin-left CSS property sets the margin area on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"link",description:'Color of text for unvisited hypertext links. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:link`](https://developer.mozilla.org/en-US/docs/Web/CSS/:link "The :link CSS pseudo-class represents an element that has not yet been visited. It matches every unvisited <a>, <area>, or <link> element that has an href attribute.") pseudo-class instead._'},{name:"onblur",description:"Function to call when the document loses focus."},{name:"onerror",description:"Function to call when the document fails to load properly."},{name:"onfocus",description:"Function to call when the document receives focus."},{name:"onload",description:"Function to call when the document has finished loading."},{name:"onredo",description:"Function to call when the user has moved forward in undo transaction history."},{name:"onresize",description:"Function to call when the document has been resized."},{name:"onundo",description:"Function to call when the user has moved backward in undo transaction history."},{name:"rightmargin",description:'The margin of the right of the body. _This method is non-conforming, use CSS [`margin-right`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right "The margin-right CSS property sets the margin area on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"text",description:'Foreground color of text. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property on the element instead._'},{name:"topmargin",description:'The margin of the top of the body. _This method is non-conforming, use CSS [`margin-top`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top "The margin-top CSS property sets the margin area on the top of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"vlink",description:'Color of text for visited hypertext links. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:visited`](https://developer.mozilla.org/en-US/docs/Web/CSS/:visited "The :visited CSS pseudo-class represents links that the user has already visited. For privacy reasons, the styles that can be modified using this selector are very limited.") pseudo-class instead._'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/body"}]},{name:"article",description:{kind:"markdown",value:"The article element represents a complete, or self-contained, composition in a document, page, application, or site and that is, in principle, independently distributable or reusable, e.g. in syndication. This could be a forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content. Each article should be identified, typically by including a heading (h1–h6 element) as a child of the article element."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/article"}]},{name:"section",description:{kind:"markdown",value:"The section element represents a generic section of a document or application. A section, in this context, is a thematic grouping of content. Each section should be identified, typically by including a heading ( h1- h6 element) as a child of the section element."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/section"}]},{name:"nav",description:{kind:"markdown",value:"The nav element represents a section of a page that links to other pages or to parts within the page: a section with navigation links."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/nav"}]},{name:"aside",description:{kind:"markdown",value:"The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typography."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/aside"}]},{name:"h1",description:{kind:"markdown",value:"The h1 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h2",description:{kind:"markdown",value:"The h2 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h3",description:{kind:"markdown",value:"The h3 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h4",description:{kind:"markdown",value:"The h4 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h5",description:{kind:"markdown",value:"The h5 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h6",description:{kind:"markdown",value:"The h6 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"header",description:{kind:"markdown",value:"The header element represents introductory content for its nearest ancestor sectioning content or sectioning root element. A header typically contains a group of introductory or navigational aids. When the nearest ancestor sectioning content or sectioning root element is the body element, then it applies to the whole page."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/header"}]},{name:"footer",description:{kind:"markdown",value:"The footer element represents a footer for its nearest ancestor sectioning content or sectioning root element. A footer typically contains information about its section such as who wrote it, links to related documents, copyright data, and the like."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/footer"}]},{name:"address",description:{kind:"markdown",value:"The address element represents the contact information for its nearest article or body element ancestor. If that is the body element, then the contact information applies to the document as a whole."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/address"}]},{name:"p",description:{kind:"markdown",value:"The p element represents a paragraph."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/p"}]},{name:"hr",description:{kind:"markdown",value:"The hr element represents a paragraph-level thematic break, e.g. a scene change in a story, or a transition to another topic within a section of a reference book."},void:!0,attributes:[{name:"align",description:"Sets the alignment of the rule on the page. If no value is specified, the default value is `left`."},{name:"color",description:"Sets the color of the rule through color name or hexadecimal value."},{name:"noshade",description:"Sets the rule to have no shading."},{name:"size",description:"Sets the height, in pixels, of the rule."},{name:"width",description:"Sets the length of the rule on the page through a pixel or percentage value."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/hr"}]},{name:"pre",description:{kind:"markdown",value:"The pre element represents a block of preformatted text, in which structure is represented by typographic conventions rather than by elements."},attributes:[{name:"cols",description:'Contains the _preferred_ count of characters that a line should have. It was a non-standard synonym of [`width`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre#attr-width). To achieve such an effect, use CSS [`width`](https://developer.mozilla.org/en-US/docs/Web/CSS/width "The width CSS property sets an element\'s width. By default it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area.") instead.'},{name:"width",description:'Contains the _preferred_ count of characters that a line should have. Though technically still implemented, this attribute has no visual effect; to achieve such an effect, use CSS [`width`](https://developer.mozilla.org/en-US/docs/Web/CSS/width "The width CSS property sets an element\'s width. By default it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area.") instead.'},{name:"wrap",description:'Is a _hint_ indicating how the overflow must happen. In modern browser this hint is ignored and no visual effect results in its present; to achieve such an effect, use CSS [`white-space`](https://developer.mozilla.org/en-US/docs/Web/CSS/white-space "The white-space CSS property sets how white space inside an element is handled.") instead.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/pre"}]},{name:"blockquote",description:{kind:"markdown",value:"The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a footer or cite element, and optionally with in-line changes such as annotations and abbreviations."},attributes:[{name:"cite",description:{kind:"markdown",value:"A URL that designates a source document or message for the information quoted. This attribute is intended to point to information explaining the context or the reference for the quote."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/blockquote"}]},{name:"ol",description:{kind:"markdown",value:"The ol element represents a list of items, where the items have been intentionally ordered, such that changing the order would change the meaning of the document."},attributes:[{name:"reversed",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute specifies that the items of the list are specified in reversed order."}},{name:"start",description:{kind:"markdown",value:'This integer attribute specifies the start value for numbering the individual list items. Although the ordering type of list elements might be Roman numerals, such as XXXI, or letters, the value of start is always represented as a number. To start numbering elements from the letter "C", use `<ol start="3">`.\n\n**Note**: This attribute was deprecated in HTML4, but reintroduced in HTML5.'}},{name:"type",valueSet:"lt",description:{kind:"markdown",value:"Indicates the numbering type:\n\n* `'a'` indicates lowercase letters,\n* `'A'` indicates uppercase letters,\n* `'i'` indicates lowercase Roman numerals,\n* `'I'` indicates uppercase Roman numerals,\n* and `'1'` indicates numbers (default).\n\nThe type set is used for the entire list unless a different [`type`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li#attr-type) attribute is used within an enclosed [`<li>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li \"The HTML <li> element is used to represent an item in a list. It must be contained in a parent element: an ordered list (<ol>), an unordered list (<ul>), or a menu (<menu>). In menus and unordered lists, list items are usually displayed using bullet points. In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter.\") element.\n\n**Note:** This attribute was deprecated in HTML4, but reintroduced in HTML5.\n\nUnless the value of the list number matters (e.g. in legal or technical documents where items are to be referenced by their number/letter), the CSS [`list-style-type`](https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type \"The list-style-type CSS property sets the marker (such as a disc, character, or custom counter style) of a list item element.\") property should be used instead."}},{name:"compact",description:'This Boolean attribute hints that the list should be rendered in a compact style. The interpretation of this attribute depends on the user agent and it doesn\'t work in all browsers.\n\n**Warning:** Do not use this attribute, as it has been deprecated: the [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To give an effect similar to the `compact` attribute, the [CSS](https://developer.mozilla.org/en-US/docs/CSS) property [`line-height`](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height "The line-height CSS property sets the amount of space used for lines, such as in text. On block-level elements, it specifies the minimum height of line boxes within the element. On non-replaced inline elements, it specifies the height that is used to calculate line box height.") can be used with a value of `80%`.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ol"}]},{name:"ul",description:{kind:"markdown",value:"The ul element represents a list of items, where the order of the items is not important — that is, where changing the order would not materially change the meaning of the document."},attributes:[{name:"compact",description:'This Boolean attribute hints that the list should be rendered in a compact style. The interpretation of this attribute depends on the user agent and it doesn\'t work in all browsers.\n\n**Usage note: **Do not use this attribute, as it has been deprecated: the [`<ul>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul "The HTML <ul> element represents an unordered list of items, typically rendered as a bulleted list.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To give a similar effect as the `compact` attribute, the [CSS](https://developer.mozilla.org/en-US/docs/CSS) property [line-height](https://developer.mozilla.org/en-US/docs/CSS/line-height) can be used with a value of `80%`.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ul"}]},{name:"li",description:{kind:"markdown",value:"The li element represents a list item. If its parent element is an ol, ul, or menu element, then the element is an item of the parent element's list, as defined for those elements. Otherwise, the list item has no defined list-related relationship to any other li element."},attributes:[{name:"value",description:{kind:"markdown",value:'This integer attribute indicates the current ordinal value of the list item as defined by the [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element. The only allowed value for this attribute is a number, even if the list is displayed with Roman numerals or letters. List items that follow this one continue numbering from the value set. The **value** attribute has no meaning for unordered lists ([`<ul>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul "The HTML <ul> element represents an unordered list of items, typically rendered as a bulleted list.")) or for menus ([`<menu>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu "The HTML <menu> element represents a group of commands that a user can perform or activate. This includes both list menus, which might appear across the top of a screen, as well as context menus, such as those that might appear underneath a button after it has been clicked.")).\n\n**Note**: This attribute was deprecated in HTML4, but reintroduced in HTML5.\n\n**Note:** Prior to Gecko 9.0, negative values were incorrectly converted to 0. Starting in Gecko 9.0 all integer values are correctly parsed.'}},{name:"type",description:'This character attribute indicates the numbering type:\n\n* `a`: lowercase letters\n* `A`: uppercase letters\n* `i`: lowercase Roman numerals\n* `I`: uppercase Roman numerals\n* `1`: numbers\n\nThis type overrides the one used by its parent [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element, if any.\n\n**Usage note:** This attribute has been deprecated: use the CSS [`list-style-type`](https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type "The list-style-type CSS property sets the marker (such as a disc, character, or custom counter style) of a list item element.") property instead.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/li"}]},{name:"dl",description:{kind:"markdown",value:"The dl element represents an association list consisting of zero or more name-value groups (a description list). A name-value group consists of one or more names (dt elements) followed by one or more values (dd elements), ignoring any nodes other than dt and dd elements. Within a single dl element, there should not be more than one dt element for each name."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dl"}]},{name:"dt",description:{kind:"markdown",value:"The dt element represents the term, or name, part of a term-description group in a description list (dl element)."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dt"}]},{name:"dd",description:{kind:"markdown",value:"The dd element represents the description, definition, or value, part of a term-description group in a description list (dl element)."},attributes:[{name:"nowrap",description:"If the value of this attribute is set to `yes`, the definition text will not wrap. The default value is `no`."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dd"}]},{name:"figure",description:{kind:"markdown",value:"The figure element represents some flow content, optionally with a caption, that is self-contained (like a complete sentence) and is typically referenced as a single unit from the main flow of the document."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/figure"}]},{name:"figcaption",description:{kind:"markdown",value:"The figcaption element represents a caption or legend for the rest of the contents of the figcaption element's parent figure element, if any."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/figcaption"}]},{name:"main",description:{kind:"markdown",value:"The main element represents the main content of the body of a document or application. The main content area consists of content that is directly related to or expands upon the central topic of a document or central functionality of an application."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/main"}]},{name:"div",description:{kind:"markdown",value:"The div element has no special meaning at all. It represents its children. It can be used with the class, lang, and title attributes to mark up semantics common to a group of consecutive elements."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/div"}]},{name:"a",description:{kind:"markdown",value:"If the a element has an href attribute, then it represents a hyperlink (a hypertext anchor) labeled by its contents."},attributes:[{name:"href",description:{kind:"markdown",value:'Contains a URL or a URL fragment that the hyperlink points to.\nA URL fragment is a name preceded by a hash mark (`#`), which specifies an internal target location (an [`id`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-id) of an HTML element) within the current document. URLs are not restricted to Web (HTTP)-based documents, but can use any protocol supported by the browser. For example, [`file:`](https://en.wikipedia.org/wiki/File_URI_scheme), `ftp:`, and `mailto:` work in most browsers.\n\n**Note:** You can use `href="#top"` or the empty fragment `href="#"` to link to the top of the current page. [This behavior is specified by HTML5](https://www.w3.org/TR/html5/single-page.html#scroll-to-fragid).'}},{name:"target",valueSet:"target",description:{kind:"markdown",value:'Specifies where to display the linked URL. It is a name of, or keyword for, a _browsing context_: a tab, window, or `<iframe>`. The following keywords have special meanings:\n\n* `_self`: Load the URL into the same browsing context as the current one. This is the default behavior.\n* `_blank`: Load the URL into a new browsing context. This is usually a tab, but users can configure browsers to use new windows instead.\n* `_parent`: Load the URL into the parent browsing context of the current one. If there is no parent, this behaves the same way as `_self`.\n* `_top`: Load the URL into the top-level browsing context (that is, the "highest" browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this behaves the same way as `_self`.\n\n**Note:** When using `target`, consider adding `rel="noreferrer"` to avoid exploitation of the `window.opener` API.\n\n**Note:** Linking to another page using `target="_blank"` will run the new page on the same process as your page. If the new page is executing expensive JS, your page\'s performance may suffer. To avoid this use `rel="noopener"`.'}},{name:"download",description:{kind:"markdown",value:"This attribute instructs browsers to download a URL instead of navigating to it, so the user will be prompted to save it as a local file. If the attribute has a value, it is used as the pre-filled file name in the Save prompt (the user can still change the file name if they want). There are no restrictions on allowed values, though `/` and `\\` are converted to underscores. Most file systems limit some punctuation in file names, and browsers will adjust the suggested name accordingly.\n\n**Notes:**\n\n* This attribute only works for [same-origin URLs](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy).\n* Although HTTP(s) URLs need to be in the same-origin, [`blob:` URLs](https://developer.mozilla.org/en-US/docs/Web/API/URL.createObjectURL) and [`data:` URLs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) are allowed so that content generated by JavaScript, such as pictures created in an image-editor Web app, can be downloaded.\n* If the HTTP header [`Content-Disposition:`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition) gives a different filename than this attribute, the HTTP header takes priority over this attribute.\n* If `Content-Disposition:` is set to `inline`, Firefox prioritizes `Content-Disposition`, like the filename case, while Chrome prioritizes the `download` attribute."}},{name:"ping",description:{kind:"markdown",value:'Contains a space-separated list of URLs to which, when the hyperlink is followed, [`POST`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST "The HTTP POST method sends data to the server. The type of the body of the request is indicated by the Content-Type header.") requests with the body `PING` will be sent by the browser (in the background). Typically used for tracking.'}},{name:"rel",description:{kind:"markdown",value:"Specifies the relationship of the target object to the link object. The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"hreflang",description:{kind:"markdown",value:'This attribute indicates the human language of the linked resource. It is purely advisory, with no built-in functionality. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt "Tags for Identifying Languages").'}},{name:"type",description:{kind:"markdown",value:'Specifies the media type in the form of a [MIME type](https://developer.mozilla.org/en-US/docs/Glossary/MIME_type "MIME type: A MIME type (now properly called "media type", but also sometimes "content type") is a string sent along with a file indicating the type of the file (describing the content format, for example, a sound file might be labeled audio/ogg, or an image file image/png).") for the linked URL. It is purely advisory, with no built-in functionality.'}},{name:"referrerpolicy",description:"Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) to send when fetching the URL:\n\n* `'no-referrer'` means the `Referer:` header will not be sent.\n* `'no-referrer-when-downgrade'` means no `Referer:` header will be sent when navigating to an origin without HTTPS. This is the default behavior.\n* `'origin'` means the referrer will be the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the page, not including information after the domain.\n* `'origin-when-cross-origin'` meaning that navigations to other origins will be limited to the scheme, the host and the port, while navigations on the same origin will include the referrer's path.\n* `'strict-origin-when-cross-origin'`\n* `'unsafe-url'` means the referrer will include the origin and path, but not the fragment, password, or username. This is unsafe because it can leak data from secure URLs to insecure ones."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/a"}]},{name:"em",description:{kind:"markdown",value:"The em element represents stress emphasis of its contents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/em"}]},{name:"strong",description:{kind:"markdown",value:"The strong element represents strong importance, seriousness, or urgency for its contents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/strong"}]},{name:"small",description:{kind:"markdown",value:"The small element represents side comments such as small print."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/small"}]},{name:"s",description:{kind:"markdown",value:"The s element represents contents that are no longer accurate or no longer relevant."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/s"}]},{name:"cite",description:{kind:"markdown",value:"The cite element represents a reference to a creative work. It must include the title of the work or the name of the author(person, people or organization) or an URL reference, or a reference in abbreviated form as per the conventions used for the addition of citation metadata."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/cite"}]},{name:"q",description:{kind:"markdown",value:"The q element represents some phrasing content quoted from another source."},attributes:[{name:"cite",description:{kind:"markdown",value:"The value of this attribute is a URL that designates a source document or message for the information quoted. This attribute is intended to point to information explaining the context or the reference for the quote."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/q"}]},{name:"dfn",description:{kind:"markdown",value:"The dfn element represents the defining instance of a term. The paragraph, description list group, or section that is the nearest ancestor of the dfn element must also contain the definition(s) for the term given by the dfn element."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dfn"}]},{name:"abbr",description:{kind:"markdown",value:"The abbr element represents an abbreviation or acronym, optionally with its expansion. The title attribute may be used to provide an expansion of the abbreviation. The attribute, if specified, must contain an expansion of the abbreviation, and nothing else."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/abbr"}]},{name:"ruby",description:{kind:"markdown",value:"The ruby element allows one or more spans of phrasing content to be marked with ruby annotations. Ruby annotations are short runs of text presented alongside base text, primarily used in East Asian typography as a guide for pronunciation or to include other annotations. In Japanese, this form of typography is also known as furigana. Ruby text can appear on either side, and sometimes both sides, of the base text, and it is possible to control its position using CSS. A more complete introduction to ruby can be found in the Use Cases & Exploratory Approaches for Ruby Markup document as well as in CSS Ruby Module Level 1. [RUBY-UC] [CSSRUBY]"},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ruby"}]},{name:"rb",description:{kind:"markdown",value:"The rb element marks the base text component of a ruby annotation. When it is the child of a ruby element, it doesn't represent anything itself, but its parent ruby element uses it as part of determining what it represents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/rb"}]},{name:"rt",description:{kind:"markdown",value:"The rt element marks the ruby text component of a ruby annotation. When it is the child of a ruby element or of an rtc element that is itself the child of a ruby element, it doesn't represent anything itself, but its ancestor ruby element uses it as part of determining what it represents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/rt"}]},{name:"rp",description:{kind:"markdown",value:"The rp element is used to provide fallback text to be shown by user agents that don't support ruby annotations. One widespread convention is to provide parentheses around the ruby text component of a ruby annotation."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/rp"}]},{name:"time",description:{kind:"markdown",value:"The time element represents its contents, along with a machine-readable form of those contents in the datetime attribute. The kind of content is limited to various kinds of dates, times, time-zone offsets, and durations, as described below."},attributes:[{name:"datetime",description:{kind:"markdown",value:"This attribute indicates the time and/or date of the element and must be in one of the formats described below."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/time"}]},{name:"code",description:{kind:"markdown",value:"The code element represents a fragment of computer code. This could be an XML element name, a file name, a computer program, or any other string that a computer would recognize."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/code"}]},{name:"var",description:{kind:"markdown",value:"The var element represents a variable. This could be an actual variable in a mathematical expression or programming context, an identifier representing a constant, a symbol identifying a physical quantity, a function parameter, or just be a term used as a placeholder in prose."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/var"}]},{name:"samp",description:{kind:"markdown",value:"The samp element represents sample or quoted output from another program or computing system."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/samp"}]},{name:"kbd",description:{kind:"markdown",value:"The kbd element represents user input (typically keyboard input, although it may also be used to represent other input, such as voice commands)."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/kbd"}]},{name:"sub",description:{kind:"markdown",value:"The sub element represents a subscript."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/sub"}]},{name:"sup",description:{kind:"markdown",value:"The sup element represents a superscript."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/sup"}]},{name:"i",description:{kind:"markdown",value:"The i element represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose in a manner indicating a different quality of text, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, transliteration, a thought, or a ship name in Western texts."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/i"}]},{name:"b",description:{kind:"markdown",value:"The b element represents a span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood, such as key words in a document abstract, product names in a review, actionable words in interactive text-driven software, or an article lede."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/b"}]},{name:"u",description:{kind:"markdown",value:"The u element represents a span of text with an unarticulated, though explicitly rendered, non-textual annotation, such as labeling the text as being a proper name in Chinese text (a Chinese proper name mark), or labeling the text as being misspelt."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/u"}]},{name:"mark",description:{kind:"markdown",value:"The mark element represents a run of text in one document marked or highlighted for reference purposes, due to its relevance in another context. When used in a quotation or other block of text referred to from the prose, it indicates a highlight that was not originally present but which has been added to bring the reader's attention to a part of the text that might not have been considered important by the original author when the block was originally written, but which is now under previously unexpected scrutiny. When used in the main prose of a document, it indicates a part of the document that has been highlighted due to its likely relevance to the user's current activity."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/mark"}]},{name:"bdi",description:{kind:"markdown",value:"The bdi element represents a span of text that is to be isolated from its surroundings for the purposes of bidirectional text formatting. [BIDI]"},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/bdi"}]},{name:"bdo",description:{kind:"markdown",value:"The bdo element represents explicit text directionality formatting control for its children. It allows authors to override the Unicode bidirectional algorithm by explicitly specifying a direction override. [BIDI]"},attributes:[{name:"dir",description:"The direction in which text should be rendered in this element's contents. Possible values are:\n\n* `ltr`: Indicates that the text should go in a left-to-right direction.\n* `rtl`: Indicates that the text should go in a right-to-left direction."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/bdo"}]},{name:"span",description:{kind:"markdown",value:"The span element doesn't mean anything on its own, but can be useful when used together with the global attributes, e.g. class, lang, or dir. It represents its children."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/span"}]},{name:"br",description:{kind:"markdown",value:"The br element represents a line break."},void:!0,attributes:[{name:"clear",description:"Indicates where to begin the next line after the break."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/br"}]},{name:"wbr",description:{kind:"markdown",value:"The wbr element represents a line break opportunity."},void:!0,attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/wbr"}]},{name:"ins",description:{kind:"markdown",value:"The ins element represents an addition to the document."},attributes:[{name:"cite",description:"This attribute defines the URI of a resource that explains the change, such as a link to meeting minutes or a ticket in a troubleshooting system."},{name:"datetime",description:'This attribute indicates the time and date of the change and must be a valid date with an optional time string. If the value cannot be parsed as a date with an optional time string, the element does not have an associated time stamp. For the format of the string without a time, see [Format of a valid date string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_date_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article."). The format of the string if it includes both date and time is covered in [Format of a valid local date and time string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_local_date_and_time_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.").'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ins"}]},{name:"del",description:{kind:"markdown",value:"The del element represents a removal from the document."},attributes:[{name:"cite",description:{kind:"markdown",value:"A URI for a resource that explains the change (for example, meeting minutes)."}},{name:"datetime",description:{kind:"markdown",value:'This attribute indicates the time and date of the change and must be a valid date string with an optional time. If the value cannot be parsed as a date with an optional time string, the element does not have an associated time stamp. For the format of the string without a time, see [Format of a valid date string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_date_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article."). The format of the string if it includes both date and time is covered in [Format of a valid local date and time string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_local_date_and_time_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.").'}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/del"}]},{name:"picture",description:{kind:"markdown",value:"The picture element is a container which provides multiple sources to its contained img element to allow authors to declaratively control or give hints to the user agent about which image resource to use, based on the screen pixel density, viewport size, image format, and other factors. It represents its children."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/picture"}]},{name:"img",description:{kind:"markdown",value:"An img element represents an image."},void:!0,attributes:[{name:"alt",description:{kind:"markdown",value:'This attribute defines an alternative text description of the image.\n\n**Note:** Browsers do not always display the image referenced by the element. This is the case for non-graphical browsers (including those used by people with visual impairments), if the user chooses not to display images, or if the browser cannot display the image because it is invalid or an [unsupported type](#Supported_image_formats). In these cases, the browser may replace the image with the text defined in this element\'s `alt` attribute. You should, for these reasons and others, provide a useful value for `alt` whenever possible.\n\n**Note:** Omitting this attribute altogether indicates that the image is a key part of the content, and no textual equivalent is available. Setting this attribute to an empty string (`alt=""`) indicates that this image is _not_ a key part of the content (decorative), and that non-visual browsers may omit it from rendering.'}},{name:"src",description:{kind:"markdown",value:"The image URL. This attribute is mandatory for the `<img>` element. On browsers supporting `srcset`, `src` is treated like a candidate image with a pixel density descriptor `1x` unless an image with this pixel density descriptor is already defined in `srcset,` or unless `srcset` contains '`w`' descriptors."}},{name:"srcset",description:{kind:"markdown",value:"A list of one or more strings separated by commas indicating a set of possible image sources for the user agent to use. Each string is composed of:\n\n1. a URL to an image,\n2. optionally, whitespace followed by one of:\n * A width descriptor, or a positive integer directly followed by '`w`'. The width descriptor is divided by the source size given in the `sizes` attribute to calculate the effective pixel density.\n * A pixel density descriptor, which is a positive floating point number directly followed by '`x`'.\n\nIf no descriptor is specified, the source is assigned the default descriptor: `1x`.\n\nIt is incorrect to mix width descriptors and pixel density descriptors in the same `srcset` attribute. Duplicate descriptors (for instance, two sources in the same `srcset` which are both described with '`2x`') are also invalid.\n\nThe user agent selects any one of the available sources at its discretion. This provides them with significant leeway to tailor their selection based on things like user preferences or bandwidth conditions. See our [Responsive images](https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images) tutorial for an example."}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates if the fetching of the related image must be done using CORS or not. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being "[tainted](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image#What_is_a_tainted_canvas)." The allowed values are:\n`anonymous`\n\nA cross-origin request (i.e., with `Origin:` HTTP header) is performed, but no credential is sent (i.e., no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header), the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e., with the [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) performed along with credentials sent (i.e., a cookie, certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (through the `Access-Control-Allow-Credentials` HTTP header), the image will be tainted and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a CORS request (i.e., without sending the `Origin` HTTP header), preventing its non-tainted usage in [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") elements. If invalid, it is handled as if the `anonymous` value was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/HTML/CORS_settings_attributes) for additional information.'}},{name:"usemap",description:{kind:"markdown",value:'The partial URL (starting with \'#\') of an [image map](https://developer.mozilla.org/en-US/docs/HTML/Element/map) associated with the element.\n\n**Note:** You cannot use this attribute if the `<img>` element is a descendant of an [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL.") or [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") element.'}},{name:"ismap",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the image is part of a server-side map. If so, the precise coordinates of a click are sent to the server.\n\n**Note:** This attribute is allowed only if the `<img>` element is a descendant of an [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL.") element with a valid [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute.'}},{name:"width",description:{kind:"markdown",value:"The intrinsic width of the image in pixels."}},{name:"height",description:{kind:"markdown",value:"The intrinsic height of the image in pixels."}},{name:"decoding",valueSet:"decoding",description:{kind:"markdown",value:`Provides an image decoding hint to the browser. The allowed values are: +\`sync\` + +Decode the image synchronously for atomic presentation with other content. + +\`async\` + +Decode the image asynchronously to reduce delay in presenting other content. + +\`auto\` + +Default mode, which indicates no preference for the decoding mode. The browser decides what is best for the user.`}},{name:"loading",valueSet:"loading",description:{kind:"markdown",value:"Indicates how the browser should load the image."}},{name:"referrerpolicy",valueSet:"referrerpolicy",description:{kind:"markdown",value:"A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer:` The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer \"The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.\") header will not be sent.\n* `no-referrer-when-downgrade:` No `Referer` header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent’s default behavior if no policy is otherwise specified.\n* `origin:` The `Referer` header will include the page of origin's scheme, the host, and the port.\n* `origin-when-cross-origin:` Navigating to other origins will limit the included referral data to the scheme, the host and the port, while navigating from the same origin will include the referrer's full path.\n* `unsafe-url:` The `Referer` header will include the origin and the path, but not the fragment, password, or username. This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins."}},{name:"sizes",description:{kind:"markdown",value:"A list of one or more strings separated by commas indicating a set of source sizes. Each source size consists of:\n\n1. a media condition. This must be omitted for the last item.\n2. a source size value.\n\nSource size values specify the intended display size of the image. User agents use the current source size to select one of the sources supplied by the `srcset` attribute, when those sources are described using width ('`w`') descriptors. The selected source size affects the intrinsic size of the image (the image’s display size if no CSS styling is applied). If the `srcset` attribute is absent, or contains no values with a width (`w`) descriptor, then the `sizes` attribute has no effect."}},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:"`auto`: Indicates **no preference**. The browser may use its own heuristics to decide the priority of the image.\n\n`high`: Indicates to the browser that the image is of **high** priority.\n\n`low`: Indicates to the browser that the image is of **low** priority."},{name:"intrinsicsize",description:"This attribute tells the browser to ignore the actual intrinsic size of the image and pretend it’s the size specified in the attribute. Specifically, the image would raster at these dimensions and `naturalWidth`/`naturalHeight` on images would return the values specified in this attribute. [Explainer](https://github.com/ojanvafai/intrinsicsize-attribute), [examples](https://googlechrome.github.io/samples/intrinsic-size/index.html)"}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/img"}]},{name:"iframe",description:{kind:"markdown",value:"The iframe element represents a nested browsing context."},attributes:[{name:"src",description:{kind:"markdown",value:'The URL of the page to embed. Use a value of `about:blank` to embed an empty page that conforms to the [same-origin policy](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy#Inherited_origins). Also note that programatically removing an `<iframe>`\'s src attribute (e.g. via [`Element.removeAttribute()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/removeAttribute "The Element method removeAttribute() removes the attribute with the specified name from the element.")) causes `about:blank` to be loaded in the frame in Firefox (from version 65), Chromium-based browsers, and Safari/iOS.'}},{name:"srcdoc",description:{kind:"markdown",value:"Inline HTML to embed, overriding the `src` attribute. If a browser does not support the `srcdoc` attribute, it will fall back to the URL in the `src` attribute."}},{name:"name",description:{kind:"markdown",value:'A targetable name for the embedded browsing context. This can be used in the `target` attribute of the [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL."), [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server."), or [`<base>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base "The HTML <base> element specifies the base URL to use for all relative URLs contained within a document. There can be only one <base> element in a document.") elements; the `formtarget` attribute of the [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") or [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") elements; or the `windowName` parameter in the [`window.open()`](https://developer.mozilla.org/en-US/docs/Web/API/Window/open "The Window interface\'s open() method loads the specified resource into the browsing context (window, <iframe> or tab) with the specified name. If the name doesn\'t exist, then a new window is opened and the specified resource is loaded into its browsing context.") method.'}},{name:"sandbox",valueSet:"sb",description:{kind:"markdown",value:'Applies extra restrictions to the content in the frame. The value of the attribute can either be empty to apply all restrictions, or space-separated tokens to lift particular restrictions:\n\n* `allow-forms`: Allows the resource to submit forms. If this keyword is not used, form submission is blocked.\n* `allow-modals`: Lets the resource [open modal windows](https://html.spec.whatwg.org/multipage/origin.html#sandboxed-modals-flag).\n* `allow-orientation-lock`: Lets the resource [lock the screen orientation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/lockOrientation).\n* `allow-pointer-lock`: Lets the resource use the [Pointer Lock API](https://developer.mozilla.org/en-US/docs/WebAPI/Pointer_Lock).\n* `allow-popups`: Allows popups (such as `window.open()`, `target="_blank"`, or `showModalDialog()`). If this keyword is not used, the popup will silently fail to open.\n* `allow-popups-to-escape-sandbox`: Lets the sandboxed document open new windows without those windows inheriting the sandboxing. For example, this can safely sandbox an advertisement without forcing the same restrictions upon the page the ad links to.\n* `allow-presentation`: Lets the resource start a [presentation session](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest).\n* `allow-same-origin`: If this token is not used, the resource is treated as being from a special origin that always fails the [same-origin policy](https://developer.mozilla.org/en-US/docs/Glossary/same-origin_policy "same-origin policy: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin.").\n* `allow-scripts`: Lets the resource run scripts (but not create popup windows).\n* `allow-storage-access-by-user-activation` : Lets the resource request access to the parent\'s storage capabilities with the [Storage Access API](https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API).\n* `allow-top-navigation`: Lets the resource navigate the top-level browsing context (the one named `_top`).\n* `allow-top-navigation-by-user-activation`: Lets the resource navigate the top-level browsing context, but only if initiated by a user gesture.\n\n**Notes about sandboxing:**\n\n* When the embedded document has the same origin as the embedding page, it is **strongly discouraged** to use both `allow-scripts` and `allow-same-origin`, as that lets the embedded document remove the `sandbox` attribute — making it no more secure than not using the `sandbox` attribute at all.\n* Sandboxing is useless if the attacker can display content outside a sandboxed `iframe` — such as if the viewer opens the frame in a new tab. Such content should be also served from a _separate origin_ to limit potential damage.\n* The `sandbox` attribute is unsupported in Internet Explorer 9 and earlier.'}},{name:"seamless",valueSet:"v"},{name:"allowfullscreen",valueSet:"v",description:{kind:"markdown",value:'Set to `true` if the `<iframe>` can activate fullscreen mode by calling the [`requestFullscreen()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullscreen "The Element.requestFullscreen() method issues an asynchronous request to make the element be displayed in full-screen mode.") method.\nThis attribute is considered a legacy attribute and redefined as `allow="fullscreen"`.'}},{name:"width",description:{kind:"markdown",value:"The width of the frame in CSS pixels. Default is `300`."}},{name:"height",description:{kind:"markdown",value:"The height of the frame in CSS pixels. Default is `150`."}},{name:"allow",description:"Specifies a [feature policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Feature_Policy) for the `<iframe>`."},{name:"allowpaymentrequest",description:"Set to `true` if a cross-origin `<iframe>` should be allowed to invoke the [Payment Request API](https://developer.mozilla.org/en-US/docs/Web/API/Payment_Request_API)."},{name:"allowpaymentrequest",description:'This attribute is considered a legacy attribute and redefined as `allow="payment"`.'},{name:"csp",description:'A [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) enforced for the embedded resource. See [`HTMLIFrameElement.csp`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/csp "The csp property of the HTMLIFrameElement interface specifies the Content Security Policy that an embedded document must agree to enforce upon itself.") for details.'},{name:"importance",description:`The download priority of the resource in the \`<iframe>\`'s \`src\` attribute. Allowed values: + +\`auto\` (default) + +No preference. The browser uses its own heuristics to decide the priority of the resource. + +\`high\` + +The resource should be downloaded before other lower-priority page resources. + +\`low\` + +The resource should be downloaded after other higher-priority page resources.`},{name:"referrerpolicy",description:'Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer) to send when fetching the frame\'s resource:\n\n* `no-referrer`: The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` (default): The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent to [origin](https://developer.mozilla.org/en-US/docs/Glossary/origin "origin: Web content\'s origin is defined by the scheme (protocol), host (domain), and port of the URL used to access it. Two objects have the same origin only when the scheme, host, and port all match.")s without [TLS](https://developer.mozilla.org/en-US/docs/Glossary/TLS "TLS: Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), is a protocol used by applications to communicate securely across a network, preventing tampering with and eavesdropping on email, web browsing, messaging, and other protocols.") ([HTTPS](https://developer.mozilla.org/en-US/docs/Glossary/HTTPS "HTTPS: HTTPS (HTTP Secure) is an encrypted version of the HTTP protocol. It usually uses SSL or TLS to encrypt all communication between a client and a server. This secure connection allows clients to safely exchange sensitive data with a server, for example for banking activities or online shopping.")).\n* `origin`: The sent referrer will be limited to the origin of the referring page: its [scheme](https://developer.mozilla.org/en-US/docs/Archive/Mozilla/URIScheme), [host](https://developer.mozilla.org/en-US/docs/Glossary/host "host: A host is a device connected to the Internet (or a local network). Some hosts called servers offer additional services like serving webpages or storing files and emails."), and [port](https://developer.mozilla.org/en-US/docs/Glossary/port "port: For a computer connected to a network with an IP address, a port is a communication endpoint. Ports are designated by numbers, and below 1024 each port is associated by default with a specific protocol.").\n* `origin-when-cross-origin`: The referrer sent to other origins will be limited to the scheme, the host, and the port. Navigations on the same origin will still include the path.\n* `same-origin`: A referrer will be sent for [same origin](https://developer.mozilla.org/en-US/docs/Glossary/Same-origin_policy "same origin: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin."), but cross-origin requests will contain no referrer information.\n* `strict-origin`: Only send the origin of the document as the referrer when the protocol security level stays the same (HTTPS→HTTPS), but don\'t send it to a less secure destination (HTTPS→HTTP).\n* `strict-origin-when-cross-origin`: Send a full URL when performing a same-origin request, only send the origin when the protocol security level stays the same (HTTPS→HTTPS), and send no header to a less secure destination (HTTPS→HTTP).\n* `unsafe-url`: The referrer will include the origin _and_ the path (but not the [fragment](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hash), [password](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/password), or [username](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/username)). **This value is unsafe**, because it leaks origins and paths from TLS-protected resources to insecure origins.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/iframe"}]},{name:"embed",description:{kind:"markdown",value:"The embed element provides an integration point for an external (typically non-HTML) application or interactive content."},void:!0,attributes:[{name:"src",description:{kind:"markdown",value:"The URL of the resource being embedded."}},{name:"type",description:{kind:"markdown",value:"The MIME type to use to select the plug-in to instantiate."}},{name:"width",description:{kind:"markdown",value:"The displayed width of the resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). This must be an absolute value; percentages are _not_ allowed."}},{name:"height",description:{kind:"markdown",value:"The displayed height of the resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). This must be an absolute value; percentages are _not_ allowed."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/embed"}]},{name:"object",description:{kind:"markdown",value:"The object element can represent an external resource, which, depending on the type of the resource, will either be treated as an image, as a nested browsing context, or as an external resource to be processed by a plugin."},attributes:[{name:"data",description:{kind:"markdown",value:"The address of the resource as a valid URL. At least one of **data** and **type** must be defined."}},{name:"type",description:{kind:"markdown",value:"The [content type](https://developer.mozilla.org/en-US/docs/Glossary/Content_type) of the resource specified by **data**. At least one of **data** and **type** must be defined."}},{name:"typemustmatch",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates if the **type** attribute and the actual [content type](https://developer.mozilla.org/en-US/docs/Glossary/Content_type) of the resource must match to be used."}},{name:"name",description:{kind:"markdown",value:"The name of valid browsing context (HTML5), or the name of the control (HTML 4)."}},{name:"usemap",description:{kind:"markdown",value:"A hash-name reference to a [`<map>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map \"The HTML <map> element is used with <area> elements to define an image map (a clickable link area).\") element; that is a '#' followed by the value of a [`name`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map#attr-name) of a map element."}},{name:"form",description:{kind:"markdown",value:'The form element, if any, that the object element is associated with (its _form owner_). The value of the attribute must be an ID of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document.'}},{name:"width",description:{kind:"markdown",value:"The width of the display resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). -- (Absolute values only. [NO percentages](https://html.spec.whatwg.org/multipage/embedded-content.html#dimension-attributes))"}},{name:"height",description:{kind:"markdown",value:"The height of the displayed resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). -- (Absolute values only. [NO percentages](https://html.spec.whatwg.org/multipage/embedded-content.html#dimension-attributes))"}},{name:"archive",description:"A space-separated list of URIs for archives of resources for the object."},{name:"border",description:"The width of a border around the control, in pixels."},{name:"classid",description:"The URI of the object's implementation. It can be used together with, or in place of, the **data** attribute."},{name:"codebase",description:"The base path used to resolve relative URIs specified by **classid**, **data**, or **archive**. If not specified, the default is the base URI of the current document."},{name:"codetype",description:"The content type of the data specified by **classid**."},{name:"declare",description:"The presence of this Boolean attribute makes this element a declaration only. The object must be instantiated by a subsequent `<object>` element. In HTML5, repeat the <object> element completely each that that the resource is reused."},{name:"standby",description:"A message that the browser can show while loading the object's implementation and data."},{name:"tabindex",description:"The position of the element in the tabbing navigation order for the current document."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/object"}]},{name:"param",description:{kind:"markdown",value:"The param element defines parameters for plugins invoked by object elements. It does not represent anything on its own."},void:!0,attributes:[{name:"name",description:{kind:"markdown",value:"Name of the parameter."}},{name:"value",description:{kind:"markdown",value:"Specifies the value of the parameter."}},{name:"type",description:'Only used if the `valuetype` is set to "ref". Specifies the MIME type of values found at the URI specified by value.'},{name:"valuetype",description:`Specifies the type of the \`value\` attribute. Possible values are: + +* data: Default value. The value is passed to the object's implementation as a string. +* ref: The value is a URI to a resource where run-time values are stored. +* object: An ID of another [\`<object>\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object "The HTML <object> element represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin.") in the same document.`}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/param"}]},{name:"video",description:{kind:"markdown",value:"A video element is used for playing videos or movies, and audio files with captions."},attributes:[{name:"src"},{name:"crossorigin",valueSet:"xo"},{name:"poster"},{name:"preload",valueSet:"pl"},{name:"autoplay",valueSet:"v",description:{kind:"markdown",value:'A Boolean attribute; if specified, the video automatically begins to play back as soon as it can do so without stopping to finish loading the data.\n**Note**: Sites that automatically play audio (or video with an audio track) can be an unpleasant experience for users, so it should be avoided when possible. If you must offer autoplay functionality, you should make it opt-in (requiring a user to specifically enable it). However, this can be useful when creating media elements whose source will be set at a later time, under user control.\n\nTo disable video autoplay, `autoplay="false"` will not work; the video will autoplay if the attribute is there in the `<video>` tag at all. To remove autoplay the attribute needs to be removed altogether.\n\nIn some browsers (e.g. Chrome 70.0) autoplay is not working if no `muted` attribute is present.'}},{name:"mediagroup"},{name:"loop",valueSet:"v"},{name:"muted",valueSet:"v"},{name:"controls",valueSet:"v"},{name:"width"},{name:"height"}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/video"}]},{name:"audio",description:{kind:"markdown",value:"An audio element represents a sound or audio stream."},attributes:[{name:"src",description:{kind:"markdown",value:'The URL of the audio to embed. This is subject to [HTTP access controls](https://developer.mozilla.org/en-US/docs/HTTP_access_control). This is optional; you may instead use the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source "The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.") element within the audio block to specify the audio to embed.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether to use CORS to fetch the related image. [CORS-enabled resources](https://developer.mozilla.org/en-US/docs/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\nanonymous\n\nSends a cross-origin request without a credential. In other words, it sends the `Origin:` HTTP header without a cookie, X.509 certificate, or performing HTTP Basic authentication. If the server does not give credentials to the origin site (by not setting the `Access-Control-Allow-Origin:` HTTP header), the image will be _tainted_, and its usage restricted.\n\nuse-credentials\n\nSends a cross-origin request with a credential. In other words, it sends the `Origin:` HTTP header with a cookie, a certificate, or performing HTTP Basic authentication. If the server does not give credentials to the origin site (through `Access-Control-Allow-Credentials:` HTTP header), the image will be _tainted_ and its usage restricted.\n\nWhen not present, the resource is fetched without a CORS request (i.e. without sending the `Origin:` HTTP header), preventing its non-tainted used in [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") elements. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/HTML/CORS_settings_attributes) for additional information.'}},{name:"preload",valueSet:"pl",description:{kind:"markdown",value:"This enumerated attribute is intended to provide a hint to the browser about what the author thinks will lead to the best user experience. It may have one of the following values:\n\n* `none`: Indicates that the audio should not be preloaded.\n* `metadata`: Indicates that only audio metadata (e.g. length) is fetched.\n* `auto`: Indicates that the whole audio file can be downloaded, even if the user is not expected to use it.\n* _empty string_: A synonym of the `auto` value.\n\nIf not set, `preload`'s default value is browser-defined (i.e. each browser may have its own default value). The spec advises it to be set to `metadata`.\n\n**Usage notes:**\n\n* The `autoplay` attribute has precedence over `preload`. If `autoplay` is specified, the browser would obviously need to start downloading the audio for playback.\n* The browser is not forced by the specification to follow the value of this attribute; it is a mere hint."}},{name:"autoplay",valueSet:"v",description:{kind:"markdown",value:`A Boolean attribute: if specified, the audio will automatically begin playback as soon as it can do so, without waiting for the entire audio file to finish downloading. + +**Note**: Sites that automatically play audio (or videos with an audio track) can be an unpleasant experience for users, so should be avoided when possible. If you must offer autoplay functionality, you should make it opt-in (requiring a user to specifically enable it). However, this can be useful when creating media elements whose source will be set at a later time, under user control.`}},{name:"mediagroup"},{name:"loop",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute: if specified, the audio player will automatically seek back to the start upon reaching the end of the audio."}},{name:"muted",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute that indicates whether the audio will be initially silenced. Its default value is `false`."}},{name:"controls",valueSet:"v",description:{kind:"markdown",value:"If this attribute is present, the browser will offer controls to allow the user to control audio playback, including volume, seeking, and pause/resume playback."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/audio"}]},{name:"source",description:{kind:"markdown",value:"The source element allows authors to specify multiple alternative media resources for media elements. It does not represent anything on its own."},void:!0,attributes:[{name:"src",description:{kind:"markdown",value:'Required for [`<audio>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio "The HTML <audio> element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the <source> element: the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.") and [`<video>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video "The HTML Video element (<video>) embeds a media player which supports video playback into the document."), address of the media resource. The value of this attribute is ignored when the `<source>` element is placed inside a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'}},{name:"type",description:{kind:"markdown",value:"The MIME-type of the resource, optionally with a `codecs` parameter. See [RFC 4281](https://tools.ietf.org/html/rfc4281) for information about how to specify codecs."}},{name:"sizes",description:'Is a list of source sizes that describes the final rendered width of the image represented by the source. Each source size consists of a comma-separated list of media condition-length pairs. This information is used by the browser to determine, before laying the page out, which image defined in [`srcset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#attr-srcset) to use. \nThe `sizes` attribute has an effect only when the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source "The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.") element is the direct child of a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'},{name:"srcset",description:"A list of one or more strings separated by commas indicating a set of possible images represented by the source for the browser to use. Each string is composed of:\n\n1. one URL to an image,\n2. a width descriptor, that is a positive integer directly followed by `'w'`. The default value, if missing, is the infinity.\n3. a pixel density descriptor, that is a positive floating number directly followed by `'x'`. The default value, if missing, is `1x`.\n\nEach string in the list must have at least a width descriptor or a pixel density descriptor to be valid. Among the list, there must be only one string containing the same tuple of width descriptor and pixel density descriptor. \nThe browser chooses the most adequate image to display at a given point of time. \nThe `srcset` attribute has an effect only when the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source \"The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.\") element is the direct child of a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture \"The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.\") element."},{name:"media",description:'[Media query](https://developer.mozilla.org/en-US/docs/CSS/Media_queries) of the resource\'s intended media; this should be used only in a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/source"}]},{name:"track",description:{kind:"markdown",value:"The track element allows authors to specify explicit external timed text tracks for media elements. It does not represent anything on its own."},void:!0,attributes:[{name:"default",valueSet:"v",description:{kind:"markdown",value:"This attribute indicates that the track should be enabled unless the user's preferences indicate that another track is more appropriate. This may only be used on one `track` element per media element."}},{name:"kind",valueSet:"tk",description:{kind:"markdown",value:"How the text track is meant to be used. If omitted the default kind is `subtitles`. If the attribute is not present, it will use the `subtitles`. If the attribute contains an invalid value, it will use `metadata`. (Versions of Chrome earlier than 52 treated an invalid value as `subtitles`.) The following keywords are allowed:\n\n* `subtitles`\n * Subtitles provide translation of content that cannot be understood by the viewer. For example dialogue or text that is not English in an English language film.\n * Subtitles may contain additional content, usually extra background information. For example the text at the beginning of the Star Wars films, or the date, time, and location of a scene.\n* `captions`\n * Closed captions provide a transcription and possibly a translation of audio.\n * It may include important non-verbal information such as music cues or sound effects. It may indicate the cue's source (e.g. music, text, character).\n * Suitable for users who are deaf or when the sound is muted.\n* `descriptions`\n * Textual description of the video content.\n * Suitable for users who are blind or where the video cannot be seen.\n* `chapters`\n * Chapter titles are intended to be used when the user is navigating the media resource.\n* `metadata`\n * Tracks used by scripts. Not visible to the user."}},{name:"label",description:{kind:"markdown",value:"A user-readable title of the text track which is used by the browser when listing available text tracks."}},{name:"src",description:{kind:"markdown",value:'Address of the track (`.vtt` file). Must be a valid URL. This attribute must be specified and its URL value must have the same origin as the document — unless the [`<audio>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio "The HTML <audio> element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the <source> element: the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.") or [`<video>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video "The HTML Video element (<video>) embeds a media player which supports video playback into the document.") parent element of the `track` element has a [`crossorigin`](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) attribute.'}},{name:"srclang",description:{kind:"markdown",value:"Language of the track text data. It must be a valid [BCP 47](https://r12a.github.io/app-subtags/) language tag. If the `kind` attribute is set to `subtitles,` then `srclang` must be defined."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/track"}]},{name:"map",description:{kind:"markdown",value:"The map element, in conjunction with an img element and any area element descendants, defines an image map. The element represents its children."},attributes:[{name:"name",description:{kind:"markdown",value:"The name attribute gives the map a name so that it can be referenced. The attribute must be present and must have a non-empty value with no space characters. The value of the name attribute must not be a compatibility-caseless match for the value of the name attribute of another map element in the same document. If the id attribute is also specified, both attributes must have the same value."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/map"}]},{name:"area",description:{kind:"markdown",value:"The area element represents either a hyperlink with some text and a corresponding area on an image map, or a dead area on an image map."},void:!0,attributes:[{name:"alt"},{name:"coords"},{name:"shape",valueSet:"sh"},{name:"href"},{name:"target",valueSet:"target"},{name:"download"},{name:"ping"},{name:"rel"},{name:"hreflang"},{name:"type"},{name:"accesskey",description:"Specifies a keyboard navigation accelerator for the element. Pressing ALT or a similar key in association with the specified character selects the form control correlated with that key sequence. Page designers are forewarned to avoid key sequences already bound to browsers. This attribute is global since HTML5."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/area"}]},{name:"table",description:{kind:"markdown",value:"The table element represents data with more than one dimension, in the form of a table."},attributes:[{name:"border"},{name:"align",description:'This enumerated attribute indicates how the table must be aligned inside the containing document. It may have the following values:\n\n* left: the table is displayed on the left side of the document;\n* center: the table is displayed in the center of the document;\n* right: the table is displayed on the right side of the document.\n\n**Usage Note**\n\n* **Do not use this attribute**, as it has been deprecated. The [`<table>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table "The HTML <table> element represents tabular data — that is, information presented in a two-dimensional table comprised of rows and columns of cells containing data.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). Set [`margin-left`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left "The margin-left CSS property sets the margin area on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") and [`margin-right`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right "The margin-right CSS property sets the margin area on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") to `auto` or [`margin`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin "The margin CSS property sets the margin area on all four sides of an element. It is a shorthand for margin-top, margin-right, margin-bottom, and margin-left.") to `0 auto` to achieve an effect that is similar to the align attribute.\n* Prior to Firefox 4, Firefox also supported the `middle`, `absmiddle`, and `abscenter` values as synonyms of `center`, in quirks mode only.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/table"}]},{name:"caption",description:{kind:"markdown",value:"The caption element represents the title of the table that is its parent, if it has a parent and that is a table element."},attributes:[{name:"align",description:`This enumerated attribute indicates how the caption must be aligned with respect to the table. It may have one of the following values: + +\`left\` + +The caption is displayed to the left of the table. + +\`top\` + +The caption is displayed above the table. + +\`right\` + +The caption is displayed to the right of the table. + +\`bottom\` + +The caption is displayed below the table. + +**Usage note:** Do not use this attribute, as it has been deprecated. The [\`<caption>\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption "The HTML Table Caption element (<caption>) specifies the caption (or title) of a table, and if used is always the first child of a <table>.") element should be styled using the [CSS](https://developer.mozilla.org/en-US/docs/CSS) properties [\`caption-side\`](https://developer.mozilla.org/en-US/docs/Web/CSS/caption-side "The caption-side CSS property puts the content of a table's <caption> on the specified side. The values are relative to the writing-mode of the table.") and [\`text-align\`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.").`}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/caption"}]},{name:"colgroup",description:{kind:"markdown",value:"The colgroup element represents a group of one or more columns in the table that is its parent, if it has a parent and that is a table element."},attributes:[{name:"span"},{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each column cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-charoff) attributes Unimplemented (see [bug 2212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed. The descendant [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") elements may override this value using their own [`align`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-align) attribute.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values:\n * Do not try to set the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on a selector giving a [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element. Because [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") elements are not descendant of the [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element, they won\'t inherit it.\n * If the table doesn\'t use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, use one `td:nth-child(an+b)` CSS selector per column, where a is the total number of the columns in the table and b is the ordinal position of this column in the table. Only after this selector the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property can be used.\n * If the table does use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, the effect can be achieved by combining adequate CSS attribute selectors like `[colspan=n]`, though this is not trivial.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/colgroup"}]},{name:"col",description:{kind:"markdown",value:"If a col element has a parent and that is a colgroup element that itself has a parent that is a table element, then the col element represents one or more columns in the column group represented by that colgroup."},void:!0,attributes:[{name:"span"},{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each column cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-charoff) attributes Unimplemented (see [bug 2212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, its value is inherited from the [`align`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup#attr-align) of the [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element this `<col>` element belongs too. If there are none, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values:\n * Do not try to set the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on a selector giving a [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") element. Because [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") elements are not descendant of the [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") element, they won\'t inherit it.\n * If the table doesn\'t use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, use the `td:nth-child(an+b)` CSS selector. Set `a` to zero and `b` to the position of the column in the table, e.g. `td:nth-child(2) { text-align: right; }` to right-align the second column.\n * If the table does use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, the effect can be achieved by combining adequate CSS attribute selectors like `[colspan=n]`, though this is not trivial.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/col"}]},{name:"tbody",description:{kind:"markdown",value:"The tbody element represents a block of rows that consist of a body of data for the parent table element, if the tbody element has a parent and it is a table."},attributes:[{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-charoff) attributes.\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/tbody"}]},{name:"thead",description:{kind:"markdown",value:"The thead element represents the block of rows that consist of the column labels (headers) for the parent table element, if the thead element has a parent and it is a table."},attributes:[{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-charoff) attributes Unimplemented (see [bug 2212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/thead"}]},{name:"tfoot",description:{kind:"markdown",value:"The tfoot element represents the block of rows that consist of the column summaries (footers) for the parent table element, if the tfoot element has a parent and it is a table."},attributes:[{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-charoff) attributes Unimplemented (see [bug 2212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/tfoot"}]},{name:"tr",description:{kind:"markdown",value:"The tr element represents a row of cells in a table."},attributes:[{name:"align",description:'A [`DOMString`](https://developer.mozilla.org/en-US/docs/Web/API/DOMString "DOMString is a UTF-16 String. As JavaScript already uses such strings, DOMString is mapped directly to a String.") which specifies how the cell\'s context should be aligned horizontally within the cells in the row; this is shorthand for using `align` on every cell in the row individually. Possible values are:\n\n`left`\n\nAlign the content of each cell at its left edge.\n\n`center`\n\nCenter the contents of each cell between their left and right edges.\n\n`right`\n\nAlign the content of each cell at its right edge.\n\n`justify`\n\nWiden whitespaces within the text of each cell so that the text fills the full width of each cell (full justification).\n\n`char`\n\nAlign each cell in the row on a specific character (such that each row in the column that is configured this way will horizontally align its cells on that character). This uses the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr#attr-charoff) to establish the alignment character (typically "." or "," when aligning numerical data) and the number of characters that should follow the alignment character. This alignment type was never widely supported.\n\nIf no value is expressly set for `align`, the parent node\'s value is inherited.\n\nInstead of using the obsolete `align` attribute, you should instead use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to establish `left`, `center`, `right`, or `justify` alignment for the row\'s cells. To apply character-based alignment, set the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the alignment character (such as `"."` or `","`).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/tr"}]},{name:"td",description:{kind:"markdown",value:"The td element represents a data cell in a table."},attributes:[{name:"colspan"},{name:"rowspan"},{name:"headers"},{name:"abbr",description:`This attribute contains a short abbreviated description of the cell's content. Some user-agents, such as speech readers, may present this description before the content itself. + +**Note:** Do not use this attribute as it is obsolete in the latest standard. Alternatively, you can put the abbreviated description inside the cell and place the long content in the **title** attribute.`},{name:"align",description:'This enumerated attribute specifies how the cell content\'s horizontal alignment will be handled. Possible values are:\n\n* `left`: The content is aligned to the left of the cell.\n* `center`: The content is centered in the cell.\n* `right`: The content is aligned to the right of the cell.\n* `justify` (with text only): The content is stretched out inside the cell so that it covers its entire width.\n* `char` (with text only): The content is aligned to a character inside the `<th>` element with minimal offset. This character is defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-charoff) attributes Unimplemented (see [bug 2212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nThe default value when this attribute is not specified is `left`.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, apply the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the element.\n* To achieve the same effect as the `char` value, give the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property the same value you would use for the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-char). Unimplemented in CSS3.'},{name:"axis",description:"This attribute contains a list of space-separated strings. Each string is the `id` of a group of cells that this header applies to.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard."},{name:"bgcolor",description:`This attribute defines the background color of each cell in a column. It consists of a 6-digit hexadecimal code as defined in [sRGB](https://www.w3.org/Graphics/Color/sRGB) and is prefixed by '#'. This attribute may be used with one of sixteen predefined color strings: + +  + +\`black\` = "#000000" + +  + +\`green\` = "#008000" + +  + +\`silver\` = "#C0C0C0" + +  + +\`lime\` = "#00FF00" + +  + +\`gray\` = "#808080" + +  + +\`olive\` = "#808000" + +  + +\`white\` = "#FFFFFF" + +  + +\`yellow\` = "#FFFF00" + +  + +\`maroon\` = "#800000" + +  + +\`navy\` = "#000080" + +  + +\`red\` = "#FF0000" + +  + +\`blue\` = "#0000FF" + +  + +\`purple\` = "#800080" + +  + +\`teal\` = "#008080" + +  + +\`fuchsia\` = "#FF00FF" + +  + +\`aqua\` = "#00FFFF" + +**Note:** Do not use this attribute, as it is non-standard and only implemented in some versions of Microsoft Internet Explorer: The [\`<td>\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To create a similar effect use the [\`background-color\`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property in [CSS](https://developer.mozilla.org/en-US/docs/CSS) instead.`}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/td"}]},{name:"th",description:{kind:"markdown",value:"The th element represents a header cell in a table."},attributes:[{name:"colspan"},{name:"rowspan"},{name:"headers"},{name:"scope",valueSet:"s"},{name:"sorted"},{name:"abbr",description:{kind:"markdown",value:"This attribute contains a short abbreviated description of the cell's content. Some user-agents, such as speech readers, may present this description before the content itself."}},{name:"align",description:'This enumerated attribute specifies how the cell content\'s horizontal alignment will be handled. Possible values are:\n\n* `left`: The content is aligned to the left of the cell.\n* `center`: The content is centered in the cell.\n* `right`: The content is aligned to the right of the cell.\n* `justify` (with text only): The content is stretched out inside the cell so that it covers its entire width.\n* `char` (with text only): The content is aligned to a character inside the `<th>` element with minimal offset. This character is defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-charoff) attributes.\n\nThe default value when this attribute is not specified is `left`.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, apply the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the element.\n* To achieve the same effect as the `char` value, give the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property the same value you would use for the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-char). Unimplemented in CSS3.'},{name:"axis",description:"This attribute contains a list of space-separated strings. Each string is the `id` of a group of cells that this header applies to.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard: use the [`scope`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-scope) attribute instead."},{name:"bgcolor",description:`This attribute defines the background color of each cell in a column. It consists of a 6-digit hexadecimal code as defined in [sRGB](https://www.w3.org/Graphics/Color/sRGB) and is prefixed by '#'. This attribute may be used with one of sixteen predefined color strings: + +  + +\`black\` = "#000000" + +  + +\`green\` = "#008000" + +  + +\`silver\` = "#C0C0C0" + +  + +\`lime\` = "#00FF00" + +  + +\`gray\` = "#808080" + +  + +\`olive\` = "#808000" + +  + +\`white\` = "#FFFFFF" + +  + +\`yellow\` = "#FFFF00" + +  + +\`maroon\` = "#800000" + +  + +\`navy\` = "#000080" + +  + +\`red\` = "#FF0000" + +  + +\`blue\` = "#0000FF" + +  + +\`purple\` = "#800080" + +  + +\`teal\` = "#008080" + +  + +\`fuchsia\` = "#FF00FF" + +  + +\`aqua\` = "#00FFFF" + +**Note:** Do not use this attribute, as it is non-standard and only implemented in some versions of Microsoft Internet Explorer: The [\`<th>\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th "The HTML <th> element defines a cell as header of a group of table cells. The exact nature of this group is defined by the scope and headers attributes.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS). To create a similar effect use the [\`background-color\`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property in [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS) instead.`}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/th"}]},{name:"form",description:{kind:"markdown",value:"The form element represents a collection of form-associated elements, some of which can represent editable values that can be submitted to a server for processing."},attributes:[{name:"accept-charset",description:{kind:"markdown",value:'A space- or comma-delimited list of character encodings that the server accepts. The browser uses them in the order in which they are listed. The default value, the reserved string `"UNKNOWN"`, indicates the same encoding as that of the document containing the form element. \nIn previous versions of HTML, the different character encodings could be delimited by spaces or commas. In HTML5, only spaces are allowed as delimiters.'}},{name:"action",description:{kind:"markdown",value:'The URI of a program that processes the form information. This value can be overridden by a [`formaction`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formaction) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"autocomplete",valueSet:"o",description:{kind:"markdown",value:"Indicates whether input elements can by default have their values automatically completed by the browser. This setting can be overridden by an `autocomplete` attribute on an element belonging to the form. Possible values are:\n\n* `off`: The user must explicitly enter a value into each field for every use, or the document provides its own auto-completion method; the browser does not automatically complete entries.\n* `on`: The browser can automatically complete values based on values that the user has previously entered in the form.\n\nFor most modern browsers (including Firefox 38+, Google Chrome 34+, IE 11+) setting the autocomplete attribute will not prevent a browser's password manager from asking the user if they want to store login fields (username and password), if the user permits the storage the browser will autofill the login the next time the user visits the page. See [The autocomplete attribute and login fields](https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion#The_autocomplete_attribute_and_login_fields).\n**Note:** If you set `autocomplete` to `off` in a form because the document provides its own auto-completion, then you should also set `autocomplete` to `off` for each of the form's `input` elements that the document can auto-complete. For details, see the note regarding Google Chrome in the [Browser Compatibility chart](#compatChart)."}},{name:"enctype",valueSet:"et",description:{kind:"markdown",value:'When the value of the `method` attribute is `post`, enctype is the [MIME type](https://en.wikipedia.org/wiki/Mime_type) of content that is used to submit the form to the server. Possible values are:\n\n* `application/x-www-form-urlencoded`: The default value if the attribute is not specified.\n* `multipart/form-data`: The value used for an [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element with the `type` attribute set to "file".\n* `text/plain`: (HTML5)\n\nThis value can be overridden by a [`formenctype`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formenctype) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"method",valueSet:"m",description:{kind:"markdown",value:'The [HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP) method that the browser uses to submit the form. Possible values are:\n\n* `post`: Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5) ; form data are included in the body of the form and sent to the server.\n* `get`: Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a \'?\' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters.\n* `dialog`: Use when the form is inside a [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog "The HTML <dialog> element represents a dialog box or other interactive component, such as an inspector or window.") element to close the dialog when submitted.\n\nThis value can be overridden by a [`formmethod`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formmethod) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"name",description:{kind:"markdown",value:"The name of the form. In HTML 4, its use is deprecated (`id` should be used instead). It must be unique among the forms in a document and not just an empty string in HTML 5."}},{name:"novalidate",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the form is not to be validated when submitted. If this attribute is not specified (and therefore the form is validated), this default setting can be overridden by a [`formnovalidate`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formnovalidate) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element belonging to the form.'}},{name:"target",valueSet:"target",description:{kind:"markdown",value:'A name or keyword indicating where to display the response that is received after submitting the form. In HTML 4, this is the name/keyword for a frame. In HTML5, it is a name/keyword for a _browsing context_ (for example, tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the response into the same HTML 4 frame (or HTML5 browsing context) as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the response into a new unnamed HTML 4 window or HTML5 browsing context.\n* `_parent`: Load the response into the HTML 4 frameset parent of the current frame, or HTML5 parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: HTML 4: Load the response into the full original window, and cancel all other frames. HTML5: Load the response into the top-level browsing context (i.e., the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n* _iframename_: The response is displayed in a named [`<iframe>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe "The HTML Inline Frame element (<iframe>) represents a nested browsing context, embedding another HTML page into the current one.").\n\nHTML5: This value can be overridden by a [`formtarget`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formtarget) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"accept",description:'A comma-separated list of content types that the server accepts.\n\n**Usage note:** This attribute has been removed in HTML5 and should no longer be used. Instead, use the [`accept`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-accept) attribute of the specific [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'},{name:"autocapitalize",description:"This is a nonstandard attribute used by iOS Safari Mobile which controls whether and how the text value for textual form control descendants should be automatically capitalized as it is entered/edited by the user. If the `autocapitalize` attribute is specified on an individual form control descendant, it trumps the form-wide `autocapitalize` setting. The non-deprecated values are available in iOS 5 and later. The default value is `sentences`. Possible values are:\n\n* `none`: Completely disables automatic capitalization\n* `sentences`: Automatically capitalize the first letter of sentences.\n* `words`: Automatically capitalize the first letter of words.\n* `characters`: Automatically capitalize all characters.\n* `on`: Deprecated since iOS 5.\n* `off`: Deprecated since iOS 5."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/form"}]},{name:"label",description:{kind:"markdown",value:"The label element represents a caption in a user interface. The caption can be associated with a specific form control, known as the label element's labeled control, either using the for attribute, or by putting the form control inside the label element itself."},attributes:[{name:"form",description:{kind:"markdown",value:'The [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element with which the label is associated (its _form owner_). If specified, the value of the attribute is the `id` of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document. This lets you place label elements anywhere within a document, not just as descendants of their form elements.'}},{name:"for",description:{kind:"markdown",value:"The [`id`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-id) of a [labelable](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Form_labelable) form-related element in the same document as the `<label>` element. The first element in the document with an `id` matching the value of the `for` attribute is the _labeled control_ for this label element, if it is a labelable element. If it is not labelable then the `for` attribute has no effect. If there are other elements which also match the `id` value, later in the document, they are not considered.\n\n**Note**: A `<label>` element can have both a `for` attribute and a contained control element, as long as the `for` attribute points to the contained control element."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/label"}]},{name:"input",description:{kind:"markdown",value:"The input element represents a typed data field, usually with a form control to allow the user to edit the data."},void:!0,attributes:[{name:"accept"},{name:"alt"},{name:"autocomplete",valueSet:"inputautocomplete"},{name:"autofocus",valueSet:"v"},{name:"checked",valueSet:"v"},{name:"dirname"},{name:"disabled",valueSet:"v"},{name:"form"},{name:"formaction"},{name:"formenctype",valueSet:"et"},{name:"formmethod",valueSet:"fm"},{name:"formnovalidate",valueSet:"v"},{name:"formtarget"},{name:"height"},{name:"inputmode",valueSet:"im"},{name:"list"},{name:"max"},{name:"maxlength"},{name:"min"},{name:"minlength"},{name:"multiple",valueSet:"v"},{name:"name"},{name:"pattern"},{name:"placeholder"},{name:"readonly",valueSet:"v"},{name:"required",valueSet:"v"},{name:"size"},{name:"src"},{name:"step"},{name:"type",valueSet:"t"},{name:"value"},{name:"width"}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/input"}]},{name:"button",description:{kind:"markdown",value:"The button element represents a button labeled by its contents."},attributes:[{name:"autofocus",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute lets you specify that the button should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form-associated element in a document can have this attribute specified."}},{name:"disabled",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the user cannot interact with the button. If this attribute is not specified, the button inherits its setting from the containing element, for example [`<fieldset>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset "The HTML <fieldset> element is used to group several controls as well as labels (<label>) within a web form."); if there is no containing element with the **disabled** attribute set, then the button is enabled.\n\nFirefox will, unlike other browsers, by default, [persist the dynamic disabled state](https://stackoverflow.com/questions/5985839/bug-with-firefox-disabled-attribute-of-input-not-resetting-when-refreshing) of a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") across page loads. Use the [`autocomplete`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-autocomplete) attribute to control this feature.'}},{name:"form",description:{kind:"markdown",value:'The form element that the button is associated with (its _form owner_). The value of the attribute must be the **id** attribute of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document. If this attribute is not specified, the `<button>` element will be associated to an ancestor [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element, if one exists. This attribute enables you to associate `<button>` elements to [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") elements anywhere within a document, not just as descendants of [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") elements.'}},{name:"formaction",description:{kind:"markdown",value:"The URI of a program that processes the information submitted by the button. If specified, it overrides the [`action`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-action) attribute of the button's form owner."}},{name:"formenctype",valueSet:"et",description:{kind:"markdown",value:'If the button is a submit button, this attribute specifies the type of content that is used to submit the form to the server. Possible values are:\n\n* `application/x-www-form-urlencoded`: The default value if the attribute is not specified.\n* `multipart/form-data`: Use this value if you are using an [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element with the [`type`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-type) attribute set to `file`.\n* `text/plain`\n\nIf this attribute is specified, it overrides the [`enctype`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-enctype) attribute of the button\'s form owner.'}},{name:"formmethod",valueSet:"fm",description:{kind:"markdown",value:"If the button is a submit button, this attribute specifies the HTTP method that the browser uses to submit the form. Possible values are:\n\n* `post`: The data from the form are included in the body of the form and sent to the server.\n* `get`: The data from the form are appended to the **form** attribute URI, with a '?' as a separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters.\n\nIf specified, this attribute overrides the [`method`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-method) attribute of the button's form owner."}},{name:"formnovalidate",valueSet:"v",description:{kind:"markdown",value:"If the button is a submit button, this Boolean attribute specifies that the form is not to be validated when it is submitted. If this attribute is specified, it overrides the [`novalidate`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-novalidate) attribute of the button's form owner."}},{name:"formtarget",description:{kind:"markdown",value:"If the button is a submit button, this attribute is a name or keyword indicating where to display the response that is received after submitting the form. This is a name of, or keyword for, a _browsing context_ (for example, tab, window, or inline frame). If this attribute is specified, it overrides the [`target`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-target) attribute of the button's form owner. The following keywords have special meanings:\n\n* `_self`: Load the response into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the response into a new unnamed browsing context.\n* `_parent`: Load the response into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the response into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`."}},{name:"name",description:{kind:"markdown",value:"The name of the button, which is submitted with the form data."}},{name:"type",valueSet:"bt",description:{kind:"markdown",value:"The type of the button. Possible values are:\n\n* `submit`: The button submits the form data to the server. This is the default if the attribute is not specified, or if the attribute is dynamically changed to an empty or invalid value.\n* `reset`: The button resets all the controls to their initial values.\n* `button`: The button has no default behavior. It can have client-side scripts associated with the element's events, which are triggered when the events occur."}},{name:"value",description:{kind:"markdown",value:"The initial value of the button. It defines the value associated with the button which is submitted with the form data. This value is passed to the server in params when the form is submitted."}},{name:"autocomplete",description:'The use of this attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") is nonstandard and Firefox-specific. By default, unlike other browsers, [Firefox persists the dynamic disabled state](https://stackoverflow.com/questions/5985839/bug-with-firefox-disabled-attribute-of-input-not-resetting-when-refreshing) of a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") across page loads. Setting the value of this attribute to `off` (i.e. `autocomplete="off"`) disables this feature. See [bug 654072](https://bugzilla.mozilla.org/show_bug.cgi?id=654072 "if disabled state is changed with javascript, the normal state doesn\'t return after refreshing the page").'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/button"}]},{name:"select",description:{kind:"markdown",value:"The select element represents a control for selecting amongst a set of options."},attributes:[{name:"autocomplete",valueSet:"inputautocomplete",description:{kind:"markdown",value:'A [`DOMString`](https://developer.mozilla.org/en-US/docs/Web/API/DOMString "DOMString is a UTF-16 String. As JavaScript already uses such strings, DOMString is mapped directly to a String.") providing a hint for a [user agent\'s](https://developer.mozilla.org/en-US/docs/Glossary/user_agent "user agent\'s: A user agent is a computer program representing a person, for example, a browser in a Web context.") autocomplete feature. See [The HTML autocomplete attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for a complete list of values and details on how to use autocomplete.'}},{name:"autofocus",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute lets you specify that a form control should have input focus when the page loads. Only one form element in a document can have the `autofocus` attribute."}},{name:"disabled",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates that the user cannot interact with the control. If this attribute is not specified, the control inherits its setting from the containing element, for example `fieldset`; if there is no containing element with the `disabled` attribute set, then the control is enabled."}},{name:"form",description:{kind:"markdown",value:'This attribute lets you specify the form element to which the select element is associated (that is, its "form owner"). If this attribute is specified, its value must be the same as the `id` of a form element in the same document. This enables you to place select elements anywhere within a document, not just as descendants of their form elements.'}},{name:"multiple",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates that multiple options can be selected in the list. If it is not specified, then only one option can be selected at a time. When `multiple` is specified, most browsers will show a scrolling list box instead of a single line dropdown."}},{name:"name",description:{kind:"markdown",value:"This attribute is used to specify the name of the control."}},{name:"required",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute indicating that an option with a non-empty string value must be selected."}},{name:"size",description:{kind:"markdown",value:"If the control is presented as a scrolling list box (e.g. when `multiple` is specified), this attribute represents the number of rows in the list that should be visible at one time. Browsers are not required to present a select element as a scrolled list box. The default value is 0.\n\n**Note:** According to the HTML5 specification, the default value for size should be 1; however, in practice, this has been found to break some web sites, and no other browser currently does that, so Mozilla has opted to continue to return 0 for the time being with Firefox."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/select"}]},{name:"datalist",description:{kind:"markdown",value:"The datalist element represents a set of option elements that represent predefined options for other controls. In the rendering, the datalist element represents nothing and it, along with its children, should be hidden."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/datalist"}]},{name:"optgroup",description:{kind:"markdown",value:"The optgroup element represents a group of option elements with a common label."},attributes:[{name:"disabled",valueSet:"v",description:{kind:"markdown",value:"If this Boolean attribute is set, none of the items in this option group is selectable. Often browsers grey out such control and it won't receive any browsing events, like mouse clicks or focus-related ones."}},{name:"label",description:{kind:"markdown",value:"The name of the group of options, which the browser can use when labeling the options in the user interface. This attribute is mandatory if this element is used."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/optgroup"}]},{name:"option",description:{kind:"markdown",value:"The option element represents an option in a select element or as part of a list of suggestions in a datalist element."},attributes:[{name:"disabled",valueSet:"v",description:{kind:"markdown",value:'If this Boolean attribute is set, this option is not checkable. Often browsers grey out such control and it won\'t receive any browsing event, like mouse clicks or focus-related ones. If this attribute is not set, the element can still be disabled if one of its ancestors is a disabled [`<optgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup "The HTML <optgroup> element creates a grouping of options within a <select> element.") element.'}},{name:"label",description:{kind:"markdown",value:"This attribute is text for the label indicating the meaning of the option. If the `label` attribute isn't defined, its value is that of the element text content."}},{name:"selected",valueSet:"v",description:{kind:"markdown",value:'If present, this Boolean attribute indicates that the option is initially selected. If the `<option>` element is the descendant of a [`<select>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select "The HTML <select> element represents a control that provides a menu of options") element whose [`multiple`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select#attr-multiple) attribute is not set, only one single `<option>` of this [`<select>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select "The HTML <select> element represents a control that provides a menu of options") element may have the `selected` attribute.'}},{name:"value",description:{kind:"markdown",value:"The content of this attribute represents the value to be submitted with the form, should this option be selected. If this attribute is omitted, the value is taken from the text content of the option element."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/option"}]},{name:"textarea",description:{kind:"markdown",value:"The textarea element represents a multiline plain text edit control for the element's raw value. The contents of the control represent the control's default value."},attributes:[{name:"autocomplete",valueSet:"inputautocomplete",description:{kind:"markdown",value:'This attribute indicates whether the value of the control can be automatically completed by the browser. Possible values are:\n\n* `off`: The user must explicitly enter a value into this field for every use, or the document provides its own auto-completion method; the browser does not automatically complete the entry.\n* `on`: The browser can automatically complete the value based on values that the user has entered during previous uses.\n\nIf the `autocomplete` attribute is not specified on a `<textarea>` element, then the browser uses the `autocomplete` attribute value of the `<textarea>` element\'s form owner. The form owner is either the [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element that this `<textarea>` element is a descendant of or the form element whose `id` is specified by the `form` attribute of the input element. For more information, see the [`autocomplete`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-autocomplete) attribute in [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.").'}},{name:"autofocus",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute lets you specify that a form control should have input focus when the page loads. Only one form-associated element in a document can have this attribute specified."}},{name:"cols",description:{kind:"markdown",value:"The visible width of the text control, in average character widths. If it is specified, it must be a positive integer. If it is not specified, the default value is `20`."}},{name:"dirname"},{name:"disabled",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the user cannot interact with the control. If this attribute is not specified, the control inherits its setting from the containing element, for example [`<fieldset>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset "The HTML <fieldset> element is used to group several controls as well as labels (<label>) within a web form."); if there is no containing element when the `disabled` attribute is set, the control is enabled.'}},{name:"form",description:{kind:"markdown",value:'The form element that the `<textarea>` element is associated with (its "form owner"). The value of the attribute must be the `id` of a form element in the same document. If this attribute is not specified, the `<textarea>` element must be a descendant of a form element. This attribute enables you to place `<textarea>` elements anywhere within a document, not just as descendants of form elements.'}},{name:"inputmode",valueSet:"im"},{name:"maxlength",description:{kind:"markdown",value:"The maximum number of characters (unicode code points) that the user can enter. If this value isn't specified, the user can enter an unlimited number of characters."}},{name:"minlength",description:{kind:"markdown",value:"The minimum number of characters (unicode code points) required that the user should enter."}},{name:"name",description:{kind:"markdown",value:"The name of the control."}},{name:"placeholder",description:{kind:"markdown",value:'A hint to the user of what can be entered in the control. Carriage returns or line-feeds within the placeholder text must be treated as line breaks when rendering the hint.\n\n**Note:** Placeholders should only be used to show an example of the type of data that should be entered into a form; they are _not_ a substitute for a proper [`<label>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label "The HTML <label> element represents a caption for an item in a user interface.") element tied to the input. See [Labels and placeholders](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Labels_and_placeholders "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") in [<input>: The Input (Form Input) element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") for a full explanation.'}},{name:"readonly",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates that the user cannot modify the value of the control. Unlike the `disabled` attribute, the `readonly` attribute does not prevent the user from clicking or selecting in the control. The value of a read-only control is still submitted with the form."}},{name:"required",valueSet:"v",description:{kind:"markdown",value:"This attribute specifies that the user must fill in a value before submitting a form."}},{name:"rows",description:{kind:"markdown",value:"The number of visible text lines for the control."}},{name:"wrap",valueSet:"w",description:{kind:"markdown",value:"Indicates how the control wraps text. Possible values are:\n\n* `hard`: The browser automatically inserts line breaks (CR+LF) so that each line has no more than the width of the control; the `cols` attribute must also be specified for this to take effect.\n* `soft`: The browser ensures that all line breaks in the value consist of a CR+LF pair, but does not insert any additional line breaks.\n* `off` : Like `soft` but changes appearance to `white-space: pre` so line segments exceeding `cols` are not wrapped and the `<textarea>` becomes horizontally scrollable.\n\nIf this attribute is not specified, `soft` is its default value."}},{name:"autocapitalize",description:"This is a non-standard attribute supported by WebKit on iOS (therefore nearly all browsers running on iOS, including Safari, Firefox, and Chrome), which controls whether and how the text value should be automatically capitalized as it is entered/edited by the user. The non-deprecated values are available in iOS 5 and later. Possible values are:\n\n* `none`: Completely disables automatic capitalization.\n* `sentences`: Automatically capitalize the first letter of sentences.\n* `words`: Automatically capitalize the first letter of words.\n* `characters`: Automatically capitalize all characters.\n* `on`: Deprecated since iOS 5.\n* `off`: Deprecated since iOS 5."},{name:"spellcheck",description:"Specifies whether the `<textarea>` is subject to spell checking by the underlying browser/OS. the value can be:\n\n* `true`: Indicates that the element needs to have its spelling and grammar checked.\n* `default` : Indicates that the element is to act according to a default behavior, possibly based on the parent element's own `spellcheck` value.\n* `false` : Indicates that the element should not be spell checked."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/textarea"}]},{name:"output",description:{kind:"markdown",value:"The output element represents the result of a calculation performed by the application, or the result of a user action."},attributes:[{name:"for",description:{kind:"markdown",value:"A space-separated list of other elements’ [`id`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id)s, indicating that those elements contributed input values to (or otherwise affected) the calculation."}},{name:"form",description:{kind:"markdown",value:'The [form element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form) that this element is associated with (its "form owner"). The value of the attribute must be an `id` of a form element in the same document. If this attribute is not specified, the output element must be a descendant of a form element. This attribute enables you to place output elements anywhere within a document, not just as descendants of their form elements.'}},{name:"name",description:{kind:"markdown",value:'The name of the element, exposed in the [`HTMLFormElement`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement "The HTMLFormElement interface represents a <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements.") API.'}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/output"}]},{name:"progress",description:{kind:"markdown",value:"The progress element represents the completion progress of a task. The progress is either indeterminate, indicating that progress is being made but that it is not clear how much more work remains to be done before the task is complete (e.g. because the task is waiting for a remote host to respond), or the progress is a number in the range zero to a maximum, giving the fraction of work that has so far been completed."},attributes:[{name:"value",description:{kind:"markdown",value:"This attribute specifies how much of the task that has been completed. It must be a valid floating point number between 0 and `max`, or between 0 and 1 if `max` is omitted. If there is no `value` attribute, the progress bar is indeterminate; this indicates that an activity is ongoing with no indication of how long it is expected to take."}},{name:"max",description:{kind:"markdown",value:"This attribute describes how much work the task indicated by the `progress` element requires. The `max` attribute, if present, must have a value greater than zero and be a valid floating point number. The default value is 1."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/progress"}]},{name:"meter",description:{kind:"markdown",value:"The meter element represents a scalar measurement within a known range, or a fractional value; for example disk usage, the relevance of a query result, or the fraction of a voting population to have selected a particular candidate."},attributes:[{name:"value",description:{kind:"markdown",value:"The current numeric value. This must be between the minimum and maximum values (`min` attribute and `max` attribute) if they are specified. If unspecified or malformed, the value is 0. If specified, but not within the range given by the `min` attribute and `max` attribute, the value is equal to the nearest end of the range.\n\n**Usage note:** Unless the `value` attribute is between `0` and `1` (inclusive), the `min` and `max` attributes should define the range so that the `value` attribute's value is within it."}},{name:"min",description:{kind:"markdown",value:"The lower numeric bound of the measured range. This must be less than the maximum value (`max` attribute), if specified. If unspecified, the minimum value is 0."}},{name:"max",description:{kind:"markdown",value:"The upper numeric bound of the measured range. This must be greater than the minimum value (`min` attribute), if specified. If unspecified, the maximum value is 1."}},{name:"low",description:{kind:"markdown",value:"The upper numeric bound of the low end of the measured range. This must be greater than the minimum value (`min` attribute), and it also must be less than the high value and maximum value (`high` attribute and `max` attribute, respectively), if any are specified. If unspecified, or if less than the minimum value, the `low` value is equal to the minimum value."}},{name:"high",description:{kind:"markdown",value:"The lower numeric bound of the high end of the measured range. This must be less than the maximum value (`max` attribute), and it also must be greater than the low value and minimum value (`low` attribute and **min** attribute, respectively), if any are specified. If unspecified, or if greater than the maximum value, the `high` value is equal to the maximum value."}},{name:"optimum",description:{kind:"markdown",value:"This attribute indicates the optimal numeric value. It must be within the range (as defined by the `min` attribute and `max` attribute). When used with the `low` attribute and `high` attribute, it gives an indication where along the range is considered preferable. For example, if it is between the `min` attribute and the `low` attribute, then the lower range is considered preferred."}},{name:"form",description:"This attribute associates the element with a `form` element that has ownership of the `meter` element. For example, a `meter` might be displaying a range corresponding to an `input` element of `type` _number_. This attribute is only used if the `meter` element is being used as a form-associated element; even then, it may be omitted if the element appears as a descendant of a `form` element."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/meter"}]},{name:"fieldset",description:{kind:"markdown",value:"The fieldset element represents a set of form controls optionally grouped under a common name."},attributes:[{name:"disabled",valueSet:"v",description:{kind:"markdown",value:"If this Boolean attribute is set, all form controls that are descendants of the `<fieldset>`, are disabled, meaning they are not editable and won't be submitted along with the `<form>`. They won't receive any browsing events, like mouse clicks or focus-related events. By default browsers display such controls grayed out. Note that form elements inside the [`<legend>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend \"The HTML <legend> element represents a caption for the content of its parent <fieldset>.\") element won't be disabled."}},{name:"form",description:{kind:"markdown",value:'This attribute takes the value of the `id` attribute of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element you want the `<fieldset>` to be part of, even if it is not inside the form.'}},{name:"name",description:{kind:"markdown",value:'The name associated with the group.\n\n**Note**: The caption for the fieldset is given by the first [`<legend>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend "The HTML <legend> element represents a caption for the content of its parent <fieldset>.") element nested inside it.'}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/fieldset"}]},{name:"legend",description:{kind:"markdown",value:"The legend element represents a caption for the rest of the contents of the legend element's parent fieldset element, if any."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/legend"}]},{name:"details",description:{kind:"markdown",value:"The details element represents a disclosure widget from which the user can obtain additional information or controls."},attributes:[{name:"open",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates whether or not the details — that is, the contents of the `<details>` element — are currently visible. The default, `false`, means the details are not visible."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/details"}]},{name:"summary",description:{kind:"markdown",value:"The summary element represents a summary, caption, or legend for the rest of the contents of the summary element's parent details element, if any."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/summary"}]},{name:"dialog",description:{kind:"markdown",value:"The dialog element represents a part of an application that a user interacts with to perform a task, for example a dialog box, inspector, or window."},attributes:[{name:"open",description:"Indicates that the dialog is active and available for interaction. When the `open` attribute is not set, the dialog shouldn't be shown to the user."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dialog"}]},{name:"script",description:{kind:"markdown",value:"The script element allows authors to include dynamic script and data blocks in their documents. The element does not represent content for the user."},attributes:[{name:"src",description:{kind:"markdown",value:"This attribute specifies the URI of an external script; this can be used as an alternative to embedding a script directly within a document.\n\nIf a `script` element has a `src` attribute specified, it should not have a script embedded inside its tags."}},{name:"type",description:{kind:"markdown",value:'This attribute indicates the type of script represented. The value of this attribute will be in one of the following categories:\n\n* **Omitted or a JavaScript MIME type:** For HTML5-compliant browsers this indicates the script is JavaScript. HTML5 specification urges authors to omit the attribute rather than provide a redundant MIME type. In earlier browsers, this identified the scripting language of the embedded or imported (via the `src` attribute) code. JavaScript MIME types are [listed in the specification](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#JavaScript_types).\n* **`module`:** For HTML5-compliant browsers the code is treated as a JavaScript module. The processing of the script contents is not affected by the `charset` and `defer` attributes. For information on using `module`, see [ES6 in Depth: Modules](https://hacks.mozilla.org/2015/08/es6-in-depth-modules/). Code may behave differently when the `module` keyword is used.\n* **Any other value:** The embedded content is treated as a data block which won\'t be processed by the browser. Developers must use a valid MIME type that is not a JavaScript MIME type to denote data blocks. The `src` attribute will be ignored.\n\n**Note:** in Firefox you could specify the version of JavaScript contained in a `<script>` element by including a non-standard `version` parameter inside the `type` attribute — for example `type="text/javascript;version=1.8"`. This has been removed in Firefox 59 (see [bug 1428745](https://bugzilla.mozilla.org/show_bug.cgi?id=1428745 "FIXED: Remove support for version parameter from script loader")).'}},{name:"charset"},{name:"async",valueSet:"v",description:{kind:"markdown",value:`This is a Boolean attribute indicating that the browser should, if possible, load the script asynchronously. + +This attribute must not be used if the \`src\` attribute is absent (i.e. for inline scripts). If it is included in this case it will have no effect. + +Browsers usually assume the worst case scenario and load scripts synchronously, (i.e. \`async="false"\`) during HTML parsing. + +Dynamically inserted scripts (using [\`document.createElement()\`](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement "In an HTML document, the document.createElement() method creates the HTML element specified by tagName, or an HTMLUnknownElement if tagName isn't recognized.")) load asynchronously by default, so to turn on synchronous loading (i.e. scripts load in the order they were inserted) set \`async="false"\`. + +See [Browser compatibility](#Browser_compatibility) for notes on browser support. See also [Async scripts for asm.js](https://developer.mozilla.org/en-US/docs/Games/Techniques/Async_scripts).`}},{name:"defer",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute is set to indicate to a browser that the script is meant to be executed after the document has been parsed, but before firing [`DOMContentLoaded`](https://developer.mozilla.org/en-US/docs/Web/Events/DOMContentLoaded "/en-US/docs/Web/Events/DOMContentLoaded").\n\nScripts with the `defer` attribute will prevent the `DOMContentLoaded` event from firing until the script has loaded and finished evaluating.\n\nThis attribute must not be used if the `src` attribute is absent (i.e. for inline scripts), in this case it would have no effect.\n\nTo achieve a similar effect for dynamically inserted scripts use `async="false"` instead. Scripts with the `defer` attribute will execute in the order in which they appear in the document.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'Normal `script` elements pass minimal information to the [`window.onerror`](https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror "The onerror property of the GlobalEventHandlers mixin is an EventHandler that processes error events.") for scripts which do not pass the standard [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") checks. To allow error logging for sites which use a separate domain for static media, use this attribute. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for a more descriptive explanation of its valid arguments.'}},{name:"nonce",description:{kind:"markdown",value:"A cryptographic nonce (number used once) to list the allowed inline scripts in a [script-src Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide a nonce that cannot be guessed as bypassing a resource's policy is otherwise trivial."}},{name:"integrity",description:"This attribute contains inline metadata that a user agent can use to verify that a fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"nomodule",description:"This Boolean attribute is set to indicate that the script should not be executed in browsers that support [ES2015 modules](https://hacks.mozilla.org/2015/08/es6-in-depth-modules/) — in effect, this can be used to serve fallback scripts to older browsers that do not support modular JavaScript code."},{name:"referrerpolicy",description:'Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer) to send when fetching the script, or resources fetched by the script:\n\n* `no-referrer`: The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` (default): The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent to [origin](https://developer.mozilla.org/en-US/docs/Glossary/origin "origin: Web content\'s origin is defined by the scheme (protocol), host (domain), and port of the URL used to access it. Two objects have the same origin only when the scheme, host, and port all match.")s without [TLS](https://developer.mozilla.org/en-US/docs/Glossary/TLS "TLS: Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), is a protocol used by applications to communicate securely across a network, preventing tampering with and eavesdropping on email, web browsing, messaging, and other protocols.") ([HTTPS](https://developer.mozilla.org/en-US/docs/Glossary/HTTPS "HTTPS: HTTPS (HTTP Secure) is an encrypted version of the HTTP protocol. It usually uses SSL or TLS to encrypt all communication between a client and a server. This secure connection allows clients to safely exchange sensitive data with a server, for example for banking activities or online shopping.")).\n* `origin`: The sent referrer will be limited to the origin of the referring page: its [scheme](https://developer.mozilla.org/en-US/docs/Archive/Mozilla/URIScheme), [host](https://developer.mozilla.org/en-US/docs/Glossary/host "host: A host is a device connected to the Internet (or a local network). Some hosts called servers offer additional services like serving webpages or storing files and emails."), and [port](https://developer.mozilla.org/en-US/docs/Glossary/port "port: For a computer connected to a network with an IP address, a port is a communication endpoint. Ports are designated by numbers, and below 1024 each port is associated by default with a specific protocol.").\n* `origin-when-cross-origin`: The referrer sent to other origins will be limited to the scheme, the host, and the port. Navigations on the same origin will still include the path.\n* `same-origin`: A referrer will be sent for [same origin](https://developer.mozilla.org/en-US/docs/Glossary/Same-origin_policy "same origin: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin."), but cross-origin requests will contain no referrer information.\n* `strict-origin`: Only send the origin of the document as the referrer when the protocol security level stays the same (e.g. HTTPS→HTTPS), but don\'t send it to a less secure destination (e.g. HTTPS→HTTP).\n* `strict-origin-when-cross-origin`: Send a full URL when performing a same-origin request, but only send the origin when the protocol security level stays the same (e.g.HTTPS→HTTPS), and send no header to a less secure destination (e.g. HTTPS→HTTP).\n* `unsafe-url`: The referrer will include the origin _and_ the path (but not the [fragment](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hash), [password](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/password), or [username](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/username)). **This value is unsafe**, because it leaks origins and paths from TLS-protected resources to insecure origins.\n\n**Note**: An empty string value (`""`) is both the default value, and a fallback value if `referrerpolicy` is not supported. If `referrerpolicy` is not explicitly specified on the `<script>` element, it will adopt a higher-level referrer policy, i.e. one set on the whole document or domain. If a higher-level policy is not available, the empty string is treated as being equivalent to `no-referrer-when-downgrade`.'},{name:"text",description:"Like the `textContent` attribute, this attribute sets the text content of the element. Unlike the `textContent` attribute, however, this attribute is evaluated as executable code after the node is inserted into the DOM."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/script"}]},{name:"noscript",description:{kind:"markdown",value:"The noscript element represents nothing if scripting is enabled, and represents its children if scripting is disabled. It is used to present different markup to user agents that support scripting and those that don't support scripting, by affecting how the document is parsed."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/noscript"}]},{name:"template",description:{kind:"markdown",value:"The template element is used to declare fragments of HTML that can be cloned and inserted in the document by script."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/template"}]},{name:"canvas",description:{kind:"markdown",value:"The canvas element provides scripts with a resolution-dependent bitmap canvas, which can be used for rendering graphs, game graphics, art, or other visual images on the fly."},attributes:[{name:"width",description:{kind:"markdown",value:"The width of the coordinate space in CSS pixels. Defaults to 300."}},{name:"height",description:{kind:"markdown",value:"The height of the coordinate space in CSS pixels. Defaults to 150."}},{name:"moz-opaque",description:"Lets the canvas know whether or not translucency will be a factor. If the canvas knows there's no translucency, painting performance can be optimized. This is only supported by Mozilla-based browsers; use the standardized [`canvas.getContext('2d', { alpha: false })`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext \"The HTMLCanvasElement.getContext() method returns a drawing context on the canvas, or null if the context identifier is not supported.\") instead."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/canvas"}]},{name:"slot",description:{kind:"markdown",value:"The slot element is a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together."},attributes:[{name:"name",description:{kind:"markdown",value:"The slot's name.\nA **named slot** is a `<slot>` element with a `name` attribute."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/slot"}]},{name:"data",description:{kind:"markdown",value:"The data element links a given piece of content with a machine-readable translation."},attributes:[{name:"value",description:{kind:"markdown",value:"This attribute specifies the machine-readable translation of the content of the element."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/data"}]},{name:"hgroup",description:{kind:"markdown",value:"The hgroup element represents a heading and related content. It groups a single h1–h6 element with one or more p."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/hgroup"}]},{name:"menu",description:{kind:"markdown",value:"The menu element represents an unordered list of interactive items."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/menu"}]}],globalAttributes:[{name:"accesskey",description:{kind:"markdown",value:"Provides a hint for generating a keyboard shortcut for the current element. This attribute consists of a space-separated list of characters. The browser should use the first one that exists on the computer keyboard layout."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/accesskey"}]},{name:"autocapitalize",description:{kind:"markdown",value:"Controls whether and how text input is automatically capitalized as it is entered/edited by the user. It can have the following values:\n\n* `off` or `none`, no autocapitalization is applied (all letters default to lowercase)\n* `on` or `sentences`, the first letter of each sentence defaults to a capital letter; all other letters default to lowercase\n* `words`, the first letter of each word defaults to a capital letter; all other letters default to lowercase\n* `characters`, all letters should default to uppercase"},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/autocapitalize"}]},{name:"class",description:{kind:"markdown",value:'A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the [class selectors](https://developer.mozilla.org/docs/Web/CSS/Class_selectors) or functions like the method [`Document.getElementsByClassName()`](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName "returns an array-like object of all child elements which have all of the given class names.").'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/class"}]},{name:"contenteditable",description:{kind:"markdown",value:"An enumerated attribute indicating if the element should be editable by the user. If so, the browser modifies its widget to allow editing. The attribute must take one of the following values:\n\n* `true` or the _empty string_, which indicates that the element must be editable;\n* `false`, which indicates that the element must not be editable."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/contenteditable"}]},{name:"contextmenu",description:{kind:"markdown",value:'The `[**id**](#attr-id)` of a [`<menu>`](https://developer.mozilla.org/docs/Web/HTML/Element/menu "The HTML <menu> element represents a group of commands that a user can perform or activate. This includes both list menus, which might appear across the top of a screen, as well as context menus, such as those that might appear underneath a button after it has been clicked.") to use as the contextual menu for this element.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/contextmenu"}]},{name:"dir",description:{kind:"markdown",value:"An enumerated attribute indicating the directionality of the element's text. It can have the following values:\n\n* `ltr`, which means _left to right_ and is to be used for languages that are written from the left to the right (like English);\n* `rtl`, which means _right to left_ and is to be used for languages that are written from the right to the left (like Arabic);\n* `auto`, which lets the user agent decide. It uses a basic algorithm as it parses the characters inside the element until it finds a character with a strong directionality, then it applies that directionality to the whole element."},valueSet:"d",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/dir"}]},{name:"draggable",description:{kind:"markdown",value:"An enumerated attribute indicating whether the element can be dragged, using the [Drag and Drop API](https://developer.mozilla.org/docs/DragDrop/Drag_and_Drop). It can have the following values:\n\n* `true`, which indicates that the element may be dragged\n* `false`, which indicates that the element may not be dragged."},valueSet:"b",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/draggable"}]},{name:"dropzone",description:{kind:"markdown",value:"An enumerated attribute indicating what types of content can be dropped on an element, using the [Drag and Drop API](https://developer.mozilla.org/docs/DragDrop/Drag_and_Drop). It can have the following values:\n\n* `copy`, which indicates that dropping will create a copy of the element that was dragged\n* `move`, which indicates that the element that was dragged will be moved to this new location.\n* `link`, will create a link to the dragged data."}},{name:"exportparts",description:{kind:"markdown",value:"Used to transitively export shadow parts from a nested shadow tree into a containing light tree."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/exportparts"}]},{name:"hidden",description:{kind:"markdown",value:"A Boolean attribute indicates that the element is not yet, or is no longer, _relevant_. For example, it can be used to hide elements of the page that can't be used until the login process has been completed. The browser won't render such elements. This attribute must not be used to hide content that could legitimately be shown."},valueSet:"v",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/hidden"}]},{name:"id",description:{kind:"markdown",value:"Defines a unique identifier (ID) which must be unique in the whole document. Its purpose is to identify the element when linking (using a fragment identifier), scripting, or styling (with CSS)."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/id"}]},{name:"inputmode",description:{kind:"markdown",value:'Provides a hint to browsers as to the type of virtual keyboard configuration to use when editing this element or its contents. Used primarily on [`<input>`](https://developer.mozilla.org/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") elements, but is usable on any element while in `[contenteditable](https://developer.mozilla.org/docs/Web/HTML/Global_attributes#attr-contenteditable)` mode.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/inputmode"}]},{name:"is",description:{kind:"markdown",value:"Allows you to specify that a standard HTML element should behave like a registered custom built-in element (see [Using custom elements](https://developer.mozilla.org/docs/Web/Web_Components/Using_custom_elements) for more details)."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/is"}]},{name:"itemid",description:{kind:"markdown",value:"The unique, global identifier of an item."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemid"}]},{name:"itemprop",description:{kind:"markdown",value:"Used to add properties to an item. Every HTML element may have an `itemprop` attribute specified, where an `itemprop` consists of a name and value pair."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemprop"}]},{name:"itemref",description:{kind:"markdown",value:"Properties that are not descendants of an element with the `itemscope` attribute can be associated with the item using an `itemref`. It provides a list of element ids (not `itemid`s) with additional properties elsewhere in the document."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemref"}]},{name:"itemscope",description:{kind:"markdown",value:"`itemscope` (usually) works along with `[itemtype](https://developer.mozilla.org/docs/Web/HTML/Global_attributes#attr-itemtype)` to specify that the HTML contained in a block is about a particular item. `itemscope` creates the Item and defines the scope of the `itemtype` associated with it. `itemtype` is a valid URL of a vocabulary (such as [schema.org](https://schema.org/)) that describes the item and its properties context."},valueSet:"v",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemscope"}]},{name:"itemtype",description:{kind:"markdown",value:"Specifies the URL of the vocabulary that will be used to define `itemprop`s (item properties) in the data structure. `[itemscope](https://developer.mozilla.org/docs/Web/HTML/Global_attributes#attr-itemscope)` is used to set the scope of where in the data structure the vocabulary set by `itemtype` will be active."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemtype"}]},{name:"lang",description:{kind:"markdown",value:"Helps define the language of an element: the language that non-editable elements are in, or the language that editable elements should be written in by the user. The attribute contains one “language tag” (made of hyphen-separated “language subtags”) in the format defined in [_Tags for Identifying Languages (BCP47)_](https://www.ietf.org/rfc/bcp/bcp47.txt). [**xml:lang**](#attr-xml:lang) has priority over it."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/lang"}]},{name:"part",description:{kind:"markdown",value:'A space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the [`::part`](https://developer.mozilla.org/docs/Web/CSS/::part "The ::part CSS pseudo-element represents any element within a shadow tree that has a matching part attribute.") pseudo-element.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/part"}]},{name:"role",valueSet:"roles"},{name:"slot",description:{kind:"markdown",value:"Assigns a slot in a [shadow DOM](https://developer.mozilla.org/docs/Web/Web_Components/Shadow_DOM) shadow tree to an element: An element with a `slot` attribute is assigned to the slot created by the [`<slot>`](https://developer.mozilla.org/docs/Web/HTML/Element/slot \"The HTML <slot> element—part of the Web Components technology suite—is a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together.\") element whose `[name](https://developer.mozilla.org/docs/Web/HTML/Element/slot#attr-name)` attribute's value matches that `slot` attribute's value."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/slot"}]},{name:"spellcheck",description:{kind:"markdown",value:"An enumerated attribute defines whether the element may be checked for spelling errors. It may have the following values:\n\n* `true`, which indicates that the element should be, if possible, checked for spelling errors;\n* `false`, which indicates that the element should not be checked for spelling errors."},valueSet:"b",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/spellcheck"}]},{name:"style",description:{kind:"markdown",value:'Contains [CSS](https://developer.mozilla.org/docs/Web/CSS) styling declarations to be applied to the element. Note that it is recommended for styles to be defined in a separate file or files. This attribute and the [`<style>`](https://developer.mozilla.org/docs/Web/HTML/Element/style "The HTML <style> element contains style information for a document, or part of a document.") element have mainly the purpose of allowing for quick styling, for example for testing purposes.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/style"}]},{name:"tabindex",description:{kind:"markdown",value:`An integer attribute indicating if the element can take input focus (is _focusable_), if it should participate to sequential keyboard navigation, and if so, at what position. It can take several values: + +* a _negative value_ means that the element should be focusable, but should not be reachable via sequential keyboard navigation; +* \`0\` means that the element should be focusable and reachable via sequential keyboard navigation, but its relative order is defined by the platform convention; +* a _positive value_ means that the element should be focusable and reachable via sequential keyboard navigation; the order in which the elements are focused is the increasing value of the [**tabindex**](#attr-tabindex). If several elements share the same tabindex, their relative order follows their relative positions in the document.`},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/tabindex"}]},{name:"title",description:{kind:"markdown",value:"Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/title"}]},{name:"translate",description:{kind:"markdown",value:"An enumerated attribute that is used to specify whether an element's attribute values and the values of its [`Text`](https://developer.mozilla.org/docs/Web/API/Text \"The Text interface represents the textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.\") node children are to be translated when the page is localized, or whether to leave them unchanged. It can have the following values:\n\n* empty string and `yes`, which indicates that the element will be translated.\n* `no`, which indicates that the element will not be translated."},valueSet:"y",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/translate"}]},{name:"onabort",description:{kind:"markdown",value:"The loading of a resource has been aborted."}},{name:"onblur",description:{kind:"markdown",value:"An element has lost focus (does not bubble)."}},{name:"oncanplay",description:{kind:"markdown",value:"The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content."}},{name:"oncanplaythrough",description:{kind:"markdown",value:"The user agent can play the media up to its end without having to stop for further buffering of content."}},{name:"onchange",description:{kind:"markdown",value:"The change event is fired for <input>, <select>, and <textarea> elements when a change to the element's value is committed by the user."}},{name:"onclick",description:{kind:"markdown",value:"A pointing device button has been pressed and released on an element."}},{name:"oncontextmenu",description:{kind:"markdown",value:"The right button of the mouse is clicked (before the context menu is displayed)."}},{name:"ondblclick",description:{kind:"markdown",value:"A pointing device button is clicked twice on an element."}},{name:"ondrag",description:{kind:"markdown",value:"An element or text selection is being dragged (every 350ms)."}},{name:"ondragend",description:{kind:"markdown",value:"A drag operation is being ended (by releasing a mouse button or hitting the escape key)."}},{name:"ondragenter",description:{kind:"markdown",value:"A dragged element or text selection enters a valid drop target."}},{name:"ondragleave",description:{kind:"markdown",value:"A dragged element or text selection leaves a valid drop target."}},{name:"ondragover",description:{kind:"markdown",value:"An element or text selection is being dragged over a valid drop target (every 350ms)."}},{name:"ondragstart",description:{kind:"markdown",value:"The user starts dragging an element or text selection."}},{name:"ondrop",description:{kind:"markdown",value:"An element is dropped on a valid drop target."}},{name:"ondurationchange",description:{kind:"markdown",value:"The duration attribute has been updated."}},{name:"onemptied",description:{kind:"markdown",value:"The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it."}},{name:"onended",description:{kind:"markdown",value:"Playback has stopped because the end of the media was reached."}},{name:"onerror",description:{kind:"markdown",value:"A resource failed to load."}},{name:"onfocus",description:{kind:"markdown",value:"An element has received focus (does not bubble)."}},{name:"onformchange"},{name:"onforminput"},{name:"oninput",description:{kind:"markdown",value:"The value of an element changes or the content of an element with the attribute contenteditable is modified."}},{name:"oninvalid",description:{kind:"markdown",value:"A submittable element has been checked and doesn't satisfy its constraints."}},{name:"onkeydown",description:{kind:"markdown",value:"A key is pressed down."}},{name:"onkeypress",description:{kind:"markdown",value:"A key is pressed down and that key normally produces a character value (use input instead)."}},{name:"onkeyup",description:{kind:"markdown",value:"A key is released."}},{name:"onload",description:{kind:"markdown",value:"A resource and its dependent resources have finished loading."}},{name:"onloadeddata",description:{kind:"markdown",value:"The first frame of the media has finished loading."}},{name:"onloadedmetadata",description:{kind:"markdown",value:"The metadata has been loaded."}},{name:"onloadstart",description:{kind:"markdown",value:"Progress has begun."}},{name:"onmousedown",description:{kind:"markdown",value:"A pointing device button (usually a mouse) is pressed on an element."}},{name:"onmousemove",description:{kind:"markdown",value:"A pointing device is moved over an element."}},{name:"onmouseout",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached or off one of its children."}},{name:"onmouseover",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached or onto one of its children."}},{name:"onmouseup",description:{kind:"markdown",value:"A pointing device button is released over an element."}},{name:"onmousewheel"},{name:"onmouseenter",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached."}},{name:"onmouseleave",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached."}},{name:"onpause",description:{kind:"markdown",value:"Playback has been paused."}},{name:"onplay",description:{kind:"markdown",value:"Playback has begun."}},{name:"onplaying",description:{kind:"markdown",value:"Playback is ready to start after having been paused or delayed due to lack of data."}},{name:"onprogress",description:{kind:"markdown",value:"In progress."}},{name:"onratechange",description:{kind:"markdown",value:"The playback rate has changed."}},{name:"onreset",description:{kind:"markdown",value:"A form is reset."}},{name:"onresize",description:{kind:"markdown",value:"The document view has been resized."}},{name:"onreadystatechange",description:{kind:"markdown",value:"The readyState attribute of a document has changed."}},{name:"onscroll",description:{kind:"markdown",value:"The document view or an element has been scrolled."}},{name:"onseeked",description:{kind:"markdown",value:"A seek operation completed."}},{name:"onseeking",description:{kind:"markdown",value:"A seek operation began."}},{name:"onselect",description:{kind:"markdown",value:"Some text is being selected."}},{name:"onshow",description:{kind:"markdown",value:"A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute"}},{name:"onstalled",description:{kind:"markdown",value:"The user agent is trying to fetch media data, but data is unexpectedly not forthcoming."}},{name:"onsubmit",description:{kind:"markdown",value:"A form is submitted."}},{name:"onsuspend",description:{kind:"markdown",value:"Media data loading has been suspended."}},{name:"ontimeupdate",description:{kind:"markdown",value:"The time indicated by the currentTime attribute has been updated."}},{name:"onvolumechange",description:{kind:"markdown",value:"The volume has changed."}},{name:"onwaiting",description:{kind:"markdown",value:"Playback has stopped because of a temporary lack of data."}},{name:"onpointercancel",description:{kind:"markdown",value:"The pointer is unlikely to produce any more events."}},{name:"onpointerdown",description:{kind:"markdown",value:"The pointer enters the active buttons state."}},{name:"onpointerenter",description:{kind:"markdown",value:"Pointing device is moved inside the hit-testing boundary."}},{name:"onpointerleave",description:{kind:"markdown",value:"Pointing device is moved out of the hit-testing boundary."}},{name:"onpointerlockchange",description:{kind:"markdown",value:"The pointer was locked or released."}},{name:"onpointerlockerror",description:{kind:"markdown",value:"It was impossible to lock the pointer for technical reasons or because the permission was denied."}},{name:"onpointermove",description:{kind:"markdown",value:"The pointer changed coordinates."}},{name:"onpointerout",description:{kind:"markdown",value:"The pointing device moved out of hit-testing boundary or leaves detectable hover range."}},{name:"onpointerover",description:{kind:"markdown",value:"The pointing device is moved into the hit-testing boundary."}},{name:"onpointerup",description:{kind:"markdown",value:"The pointer leaves the active buttons state."}},{name:"aria-activedescendant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-activedescendant"}],description:{kind:"markdown",value:"Identifies the currently active element when DOM focus is on a [`composite`](https://www.w3.org/TR/wai-aria-1.1/#composite) widget, [`textbox`](https://www.w3.org/TR/wai-aria-1.1/#textbox), [`group`](https://www.w3.org/TR/wai-aria-1.1/#group), or [`application`](https://www.w3.org/TR/wai-aria-1.1/#application)."}},{name:"aria-atomic",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-atomic"}],description:{kind:"markdown",value:"Indicates whether [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology) will present all, or only parts of, the changed region based on the change notifications defined by the [`aria-relevant`](https://www.w3.org/TR/wai-aria-1.1/#aria-relevant) attribute."}},{name:"aria-autocomplete",valueSet:"autocomplete",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-autocomplete"}],description:{kind:"markdown",value:"Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made."}},{name:"aria-busy",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-busy"}],description:{kind:"markdown",value:"Indicates an element is being modified and that assistive technologies _MAY_ want to wait until the modifications are complete before exposing them to the user."}},{name:"aria-checked",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-checked"}],description:{kind:"markdown",value:'Indicates the current "checked" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of checkboxes, radio buttons, and other [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-colcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colcount"}],description:{kind:"markdown",value:"Defines the total number of columns in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex)."}},{name:"aria-colindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) column index or position with respect to the total number of columns within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-colcount) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-colspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colspan"}],description:{kind:"markdown",value:"Defines the number of columns spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-controls",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-controls"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) whose contents or presence are controlled by the current element. See related [`aria-owns`](https://www.w3.org/TR/wai-aria-1.1/#aria-owns)."}},{name:"aria-current",valueSet:"current",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-current"}],description:{kind:"markdown",value:"Indicates the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that represents the current item within a container or set of related elements."}},{name:"aria-describedby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-describedby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that describes the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-disabled",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-disabled"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is [perceivable](https://www.w3.org/TR/wai-aria-1.1/#dfn-perceivable) but disabled, so it is not editable or otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-hidden`](https://www.w3.org/TR/wai-aria-1.1/#aria-hidden) and [`aria-readonly`](https://www.w3.org/TR/wai-aria-1.1/#aria-readonly)."}},{name:"aria-dropeffect",valueSet:"dropeffect",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-dropeffect"}],description:{kind:"markdown",value:"\\[Deprecated in ARIA 1.1\\] Indicates what functions can be performed when a dragged object is released on the drop target."}},{name:"aria-errormessage",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides an error message for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-invalid`](https://www.w3.org/TR/wai-aria-1.1/#aria-invalid) and [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-expanded",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-expanded"}],description:{kind:"markdown",value:"Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed."}},{name:"aria-flowto",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-flowto"}],description:{kind:"markdown",value:"Identifies the next [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order."}},{name:"aria-grabbed",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-grabbed"}],description:{kind:"markdown",value:`\\[Deprecated in ARIA 1.1\\] Indicates an element's "grabbed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) in a drag-and-drop operation.`}},{name:"aria-haspopup",valueSet:"haspopup",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup"}],description:{kind:"markdown",value:"Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-hidden",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-hidden"}],description:{kind:"markdown",value:"Indicates whether the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is exposed to an accessibility API. See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-invalid",valueSet:"invalid",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-invalid"}],description:{kind:"markdown",value:"Indicates the entered value does not conform to the format expected by the application. See related [`aria-errormessage`](https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage)."}},{name:"aria-label",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-label"}],description:{kind:"markdown",value:"Defines a string value that labels the current element. See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-labelledby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that labels the current element. See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-level",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-level"}],description:{kind:"markdown",value:"Defines the hierarchical level of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) within a structure."}},{name:"aria-live",valueSet:"live",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-live"}],description:{kind:"markdown",value:"Indicates that an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) will be updated, and describes the types of updates the [user agents](https://www.w3.org/TR/wai-aria-1.1/#dfn-user-agent), [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology), and user can expect from the [live region](https://www.w3.org/TR/wai-aria-1.1/#dfn-live-region)."}},{name:"aria-modal",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-modal"}],description:{kind:"markdown",value:"Indicates whether an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is modal when displayed."}},{name:"aria-multiline",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiline"}],description:{kind:"markdown",value:"Indicates whether a text box accepts multiple lines of input or only a single line."}},{name:"aria-multiselectable",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiselectable"}],description:{kind:"markdown",value:"Indicates that the user may select more than one item from the current selectable descendants."}},{name:"aria-orientation",valueSet:"orientation",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-orientation"}],description:{kind:"markdown",value:"Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous."}},{name:"aria-owns",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-owns"}],description:{kind:"markdown",value:"Identifies an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in order to define a visual, functional, or contextual parent/child [relationship](https://www.w3.org/TR/wai-aria-1.1/#dfn-relationship) between DOM elements where the DOM hierarchy cannot be used to represent the relationship. See related [`aria-controls`](https://www.w3.org/TR/wai-aria-1.1/#aria-controls)."}},{name:"aria-placeholder",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-placeholder"}],description:{kind:"markdown",value:"Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format."}},{name:"aria-posinset",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-posinset"}],description:{kind:"markdown",value:"Defines an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)'s number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-setsize`](https://www.w3.org/TR/wai-aria-1.1/#aria-setsize)."}},{name:"aria-pressed",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-pressed"}],description:{kind:"markdown",value:'Indicates the current "pressed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of toggle buttons. See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-readonly",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-readonly"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is not editable, but is otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-relevant",valueSet:"relevant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-relevant"}],description:{kind:"markdown",value:"Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. See related [`aria-atomic`](https://www.w3.org/TR/wai-aria-1.1/#aria-atomic)."}},{name:"aria-required",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-required"}],description:{kind:"markdown",value:"Indicates that user input is required on the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) before a form may be submitted."}},{name:"aria-roledescription",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-roledescription"}],description:{kind:"markdown",value:"Defines a human-readable, author-localized description for the [role](https://www.w3.org/TR/wai-aria-1.1/#dfn-role) of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-rowcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount"}],description:{kind:"markdown",value:"Defines the total number of rows in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex)."}},{name:"aria-rowindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) row index or position with respect to the total number of rows within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-rowspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan"}],description:{kind:"markdown",value:"Defines the number of rows spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-selected",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-selected"}],description:{kind:"markdown",value:'Indicates the current "selected" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of various [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed).'}},{name:"aria-setsize",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-setsize"}],description:{kind:"markdown",value:"Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-posinset`](https://www.w3.org/TR/wai-aria-1.1/#aria-posinset)."}},{name:"aria-sort",valueSet:"sort",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-sort"}],description:{kind:"markdown",value:"Indicates if items in a table or grid are sorted in ascending or descending order."}},{name:"aria-valuemax",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemax"}],description:{kind:"markdown",value:"Defines the maximum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuemin",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemin"}],description:{kind:"markdown",value:"Defines the minimum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuenow",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow"}],description:{kind:"markdown",value:"Defines the current value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-valuetext`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext)."}},{name:"aria-valuetext",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext"}],description:{kind:"markdown",value:"Defines the human readable text alternative of [`aria-valuenow`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow) for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-details",description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides a detailed, extended description for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-keyshortcuts",description:{kind:"markdown",value:"Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element."}}],valueSets:[{name:"b",values:[{name:"true"},{name:"false"}]},{name:"u",values:[{name:"true"},{name:"false"},{name:"undefined"}]},{name:"o",values:[{name:"on"},{name:"off"}]},{name:"y",values:[{name:"yes"},{name:"no"}]},{name:"w",values:[{name:"soft"},{name:"hard"}]},{name:"d",values:[{name:"ltr"},{name:"rtl"},{name:"auto"}]},{name:"m",values:[{name:"get",description:{kind:"markdown",value:"Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a '?' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters."}},{name:"post",description:{kind:"markdown",value:"Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5); form data are included in the body of the form and sent to the server."}},{name:"dialog",description:{kind:"markdown",value:"Use when the form is inside a [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog) element to close the dialog when submitted."}}]},{name:"fm",values:[{name:"get"},{name:"post"}]},{name:"s",values:[{name:"row"},{name:"col"},{name:"rowgroup"},{name:"colgroup"}]},{name:"t",values:[{name:"hidden"},{name:"text"},{name:"search"},{name:"tel"},{name:"url"},{name:"email"},{name:"password"},{name:"datetime"},{name:"date"},{name:"month"},{name:"week"},{name:"time"},{name:"datetime-local"},{name:"number"},{name:"range"},{name:"color"},{name:"checkbox"},{name:"radio"},{name:"file"},{name:"submit"},{name:"image"},{name:"reset"},{name:"button"}]},{name:"im",values:[{name:"verbatim"},{name:"latin"},{name:"latin-name"},{name:"latin-prose"},{name:"full-width-latin"},{name:"kana"},{name:"kana-name"},{name:"katakana"},{name:"numeric"},{name:"tel"},{name:"email"},{name:"url"}]},{name:"bt",values:[{name:"button"},{name:"submit"},{name:"reset"},{name:"menu"}]},{name:"lt",values:[{name:"1"},{name:"a"},{name:"A"},{name:"i"},{name:"I"}]},{name:"mt",values:[{name:"context"},{name:"toolbar"}]},{name:"mit",values:[{name:"command"},{name:"checkbox"},{name:"radio"}]},{name:"et",values:[{name:"application/x-www-form-urlencoded"},{name:"multipart/form-data"},{name:"text/plain"}]},{name:"tk",values:[{name:"subtitles"},{name:"captions"},{name:"descriptions"},{name:"chapters"},{name:"metadata"}]},{name:"pl",values:[{name:"none"},{name:"metadata"},{name:"auto"}]},{name:"sh",values:[{name:"circle"},{name:"default"},{name:"poly"},{name:"rect"}]},{name:"xo",values:[{name:"anonymous"},{name:"use-credentials"}]},{name:"target",values:[{name:"_self"},{name:"_blank"},{name:"_parent"},{name:"_top"}]},{name:"sb",values:[{name:"allow-forms"},{name:"allow-modals"},{name:"allow-pointer-lock"},{name:"allow-popups"},{name:"allow-popups-to-escape-sandbox"},{name:"allow-same-origin"},{name:"allow-scripts"},{name:"allow-top-navigation"}]},{name:"tristate",values:[{name:"true"},{name:"false"},{name:"mixed"},{name:"undefined"}]},{name:"inputautocomplete",values:[{name:"additional-name"},{name:"address-level1"},{name:"address-level2"},{name:"address-level3"},{name:"address-level4"},{name:"address-line1"},{name:"address-line2"},{name:"address-line3"},{name:"bday"},{name:"bday-year"},{name:"bday-day"},{name:"bday-month"},{name:"billing"},{name:"cc-additional-name"},{name:"cc-csc"},{name:"cc-exp"},{name:"cc-exp-month"},{name:"cc-exp-year"},{name:"cc-family-name"},{name:"cc-given-name"},{name:"cc-name"},{name:"cc-number"},{name:"cc-type"},{name:"country"},{name:"country-name"},{name:"current-password"},{name:"email"},{name:"family-name"},{name:"fax"},{name:"given-name"},{name:"home"},{name:"honorific-prefix"},{name:"honorific-suffix"},{name:"impp"},{name:"language"},{name:"mobile"},{name:"name"},{name:"new-password"},{name:"nickname"},{name:"off"},{name:"on"},{name:"organization"},{name:"organization-title"},{name:"pager"},{name:"photo"},{name:"postal-code"},{name:"sex"},{name:"shipping"},{name:"street-address"},{name:"tel-area-code"},{name:"tel"},{name:"tel-country-code"},{name:"tel-extension"},{name:"tel-local"},{name:"tel-local-prefix"},{name:"tel-local-suffix"},{name:"tel-national"},{name:"transaction-amount"},{name:"transaction-currency"},{name:"url"},{name:"username"},{name:"work"}]},{name:"autocomplete",values:[{name:"inline"},{name:"list"},{name:"both"},{name:"none"}]},{name:"current",values:[{name:"page"},{name:"step"},{name:"location"},{name:"date"},{name:"time"},{name:"true"},{name:"false"}]},{name:"dropeffect",values:[{name:"copy"},{name:"move"},{name:"link"},{name:"execute"},{name:"popup"},{name:"none"}]},{name:"invalid",values:[{name:"grammar"},{name:"false"},{name:"spelling"},{name:"true"}]},{name:"live",values:[{name:"off"},{name:"polite"},{name:"assertive"}]},{name:"orientation",values:[{name:"vertical"},{name:"horizontal"},{name:"undefined"}]},{name:"relevant",values:[{name:"additions"},{name:"removals"},{name:"text"},{name:"all"},{name:"additions text"}]},{name:"sort",values:[{name:"ascending"},{name:"descending"},{name:"none"},{name:"other"}]},{name:"roles",values:[{name:"alert"},{name:"alertdialog"},{name:"button"},{name:"checkbox"},{name:"dialog"},{name:"gridcell"},{name:"link"},{name:"log"},{name:"marquee"},{name:"menuitem"},{name:"menuitemcheckbox"},{name:"menuitemradio"},{name:"option"},{name:"progressbar"},{name:"radio"},{name:"scrollbar"},{name:"searchbox"},{name:"slider"},{name:"spinbutton"},{name:"status"},{name:"switch"},{name:"tab"},{name:"tabpanel"},{name:"textbox"},{name:"timer"},{name:"tooltip"},{name:"treeitem"},{name:"combobox"},{name:"grid"},{name:"listbox"},{name:"menu"},{name:"menubar"},{name:"radiogroup"},{name:"tablist"},{name:"tree"},{name:"treegrid"},{name:"application"},{name:"article"},{name:"cell"},{name:"columnheader"},{name:"definition"},{name:"directory"},{name:"document"},{name:"feed"},{name:"figure"},{name:"group"},{name:"heading"},{name:"img"},{name:"list"},{name:"listitem"},{name:"math"},{name:"none"},{name:"note"},{name:"presentation"},{name:"region"},{name:"row"},{name:"rowgroup"},{name:"rowheader"},{name:"separator"},{name:"table"},{name:"term"},{name:"text"},{name:"toolbar"},{name:"banner"},{name:"complementary"},{name:"contentinfo"},{name:"form"},{name:"main"},{name:"navigation"},{name:"region"},{name:"search"},{name:"doc-abstract"},{name:"doc-acknowledgments"},{name:"doc-afterword"},{name:"doc-appendix"},{name:"doc-backlink"},{name:"doc-biblioentry"},{name:"doc-bibliography"},{name:"doc-biblioref"},{name:"doc-chapter"},{name:"doc-colophon"},{name:"doc-conclusion"},{name:"doc-cover"},{name:"doc-credit"},{name:"doc-credits"},{name:"doc-dedication"},{name:"doc-endnote"},{name:"doc-endnotes"},{name:"doc-epigraph"},{name:"doc-epilogue"},{name:"doc-errata"},{name:"doc-example"},{name:"doc-footnote"},{name:"doc-foreword"},{name:"doc-glossary"},{name:"doc-glossref"},{name:"doc-index"},{name:"doc-introduction"},{name:"doc-noteref"},{name:"doc-notice"},{name:"doc-pagebreak"},{name:"doc-pagelist"},{name:"doc-part"},{name:"doc-preface"},{name:"doc-prologue"},{name:"doc-pullquote"},{name:"doc-qna"},{name:"doc-subtitle"},{name:"doc-tip"},{name:"doc-toc"}]},{name:"metanames",values:[{name:"application-name"},{name:"author"},{name:"description"},{name:"format-detection"},{name:"generator"},{name:"keywords"},{name:"publisher"},{name:"referrer"},{name:"robots"},{name:"theme-color"},{name:"viewport"}]},{name:"haspopup",values:[{name:"false",description:{kind:"markdown",value:"(default) Indicates the element does not have a popup."}},{name:"true",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"menu",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"listbox",description:{kind:"markdown",value:"Indicates the popup is a listbox."}},{name:"tree",description:{kind:"markdown",value:"Indicates the popup is a tree."}},{name:"grid",description:{kind:"markdown",value:"Indicates the popup is a grid."}},{name:"dialog",description:{kind:"markdown",value:"Indicates the popup is a dialog."}}]},{name:"decoding",values:[{name:"sync"},{name:"async"},{name:"auto"}]},{name:"loading",values:[{name:"eager",description:{kind:"markdown",value:"Loads the image immediately, regardless of whether or not the image is currently within the visible viewport (this is the default value)."}},{name:"lazy",description:{kind:"markdown",value:"Defers loading the image until it reaches a calculated distance from the viewport, as defined by the browser. The intent is to avoid the network and storage bandwidth needed to handle the image until it's reasonably certain that it will be needed. This generally improves the performance of the content in most typical use cases."}}]},{name:"referrerpolicy",values:[{name:"no-referrer"},{name:"no-referrer-when-downgrade"},{name:"origin"},{name:"origin-when-cross-origin"},{name:"same-origin"},{name:"strict-origin"},{name:"strict-origin-when-cross-origin"},{name:"unsafe-url"}]}]},sc=class{constructor(e){this.dataProviders=[],this.setDataProviders(e.useDefaultDataProvider!==!1,e.customDataProviders||[])}setDataProviders(e,t){this.dataProviders=[],e&&this.dataProviders.push(new da("html5",rc)),this.dataProviders.push(...t)}getDataProviders(){return this.dataProviders}isVoidElement(e,t){return!!e&&mu(t,e.toLowerCase(),(n,i)=>n.localeCompare(i))>=0}getVoidElements(e){const t=Array.isArray(e)?e:this.getDataProviders().filter(i=>i.isApplicable(e)),n=[];return t.forEach(i=>{i.provideTags().filter(r=>r.void).forEach(r=>n.push(r.name))}),n.sort()}isPathAttribute(e,t){if(t==="src"||t==="href")return!0;const n=ac[e];return n?typeof n=="string"?n===t:n.indexOf(t)!==-1:!1}},ac={a:"href",area:"href",body:"background",blockquote:"cite",del:"cite",form:"action",frame:["src","longdesc"],img:["src","longdesc"],ins:"cite",link:"href",object:"data",q:"cite",script:"src",audio:"src",button:"formaction",command:"icon",embed:"src",html:"manifest",input:["src","formaction"],source:"src",track:"src",video:["src","poster"]},oc={};function lc(e=oc){const t=new sc(e),n=new Iu(e,t),i=new Ru(e,t),r=new fu(t),s=new ic(r),a=new nc(t),u=new Ju(t);return{setDataProviders:t.setDataProviders.bind(t),createScanner:fe,parseHTMLDocument:r.parseDocument.bind(r),doComplete:i.doComplete.bind(i),doComplete2:i.doComplete2.bind(i),setCompletionParticipants:i.setCompletionParticipants.bind(i),doHover:n.doHover.bind(n),format:Fu,findDocumentHighlights:Qu,findDocumentLinks:u.findDocumentLinks.bind(u),findDocumentSymbols:Yu,findDocumentSymbols2:xa,getFoldingRanges:a.getFoldingRanges.bind(a),getSelectionRanges:s.getSelectionRanges.bind(s),doQuoteComplete:i.doQuoteComplete.bind(i),doTagComplete:i.doTagComplete.bind(i),doRename:Ku,findMatchingTagPosition:tc,findOnTypeRenameRanges:ka,findLinkedEditingRanges:ka}}function uc(e,t){return new da(e,t)}var cc=class{constructor(e,t){this._ctx=e,this._languageSettings=t.languageSettings,this._languageId=t.languageId;const n=this._languageSettings.data,i=n==null?void 0:n.useDefaultDataProvider,r=[];if(n!=null&&n.dataProviders)for(const s in n.dataProviders)r.push(uc(s,n.dataProviders[s]));this._languageService=lc({useDefaultDataProvider:i,customDataProviders:r})}async doComplete(e,t){let n=this._getTextDocument(e);if(!n)return null;let i=this._languageService.parseHTMLDocument(n);return Promise.resolve(this._languageService.doComplete(n,t,i,this._languageSettings&&this._languageSettings.suggest))}async format(e,t,n){let i=this._getTextDocument(e);if(!i)return[];let r={...this._languageSettings.format,...n},s=this._languageService.format(i,t,r);return Promise.resolve(s)}async doHover(e,t){let n=this._getTextDocument(e);if(!n)return null;let i=this._languageService.parseHTMLDocument(n),r=this._languageService.doHover(n,t,i);return Promise.resolve(r)}async findDocumentHighlights(e,t){let n=this._getTextDocument(e);if(!n)return[];let i=this._languageService.parseHTMLDocument(n),r=this._languageService.findDocumentHighlights(n,t,i);return Promise.resolve(r)}async findDocumentLinks(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.findDocumentLinks(t,null);return Promise.resolve(n)}async findDocumentSymbols(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseHTMLDocument(t),i=this._languageService.findDocumentSymbols(t,n);return Promise.resolve(i)}async getFoldingRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let i=this._languageService.getFoldingRanges(n,t);return Promise.resolve(i)}async getSelectionRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let i=this._languageService.getSelectionRanges(n,t);return Promise.resolve(i)}async doRename(e,t,n){let i=this._getTextDocument(e);if(!i)return null;let r=this._languageService.parseHTMLDocument(i),s=this._languageService.doRename(i,t,n,r);return Promise.resolve(s)}_getTextDocument(e){let t=this._ctx.getMirrorModels();for(let n of t)if(n.uri.toString()===e)return ti.create(e,this._languageId,n.version,n.getValue());return null}};self.onmessage=()=>{cs((e,t)=>new cc(e,t))}})(); diff --git a/ui/assets/local/_app/immutable/workers/json.worker-S0WRJMsA.js b/ui/assets/local/_app/immutable/workers/json.worker-S0WRJMsA.js new file mode 100644 index 0000000000..53e9be7323 --- /dev/null +++ b/ui/assets/local/_app/immutable/workers/json.worker-S0WRJMsA.js @@ -0,0 +1,48 @@ +var Hc=Object.defineProperty;var zc=(et,Ve,Re)=>Ve in et?Hc(et,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Re}):et[Ve]=Re;var Ke=(et,Ve,Re)=>(zc(et,typeof Ve!="symbol"?Ve+"":Ve,Re),Re);(function(){"use strict";class et{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?ct.isErrorNoTelemetry(t)?new ct(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)}}const Ve=new et;function Re(e){so(e)||Ve.onUnexpectedError(e)}function Tr(e){if(e instanceof Error){const{name:t,message:n}=e,r=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:r,noTelemetry:ct.isErrorNoTelemetry(e)}}return e}const Ln="Canceled";function so(e){return e instanceof ao?!0:e instanceof Error&&e.name===Ln&&e.message===Ln}class ao extends Error{constructor(){super(Ln),this.name=this.message}}class ct extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof ct)return t;const n=new ct;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}}class Ee extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,Ee.prototype)}}function oo(e,t){const n=this;let 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 Xt;(function(e){function t(b){return b&&typeof b=="object"&&typeof b[Symbol.iterator]=="function"}e.is=t;const 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 w=b.length-1;w>=0;w--)yield b[w]}e.reverse=l;function o(b){return!b||b[Symbol.iterator]().next().done===!0}e.isEmpty=o;function u(b){return b[Symbol.iterator]().next().value}e.first=u;function h(b,w){for(const v of b)if(w(v))return!0;return!1}e.some=h;function f(b,w){for(const v of b)if(w(v))return v}e.find=f;function*d(b,w){for(const v of b)w(v)&&(yield v)}e.filter=d;function*m(b,w){let v=0;for(const L of b)yield w(L,v++)}e.map=m;function*g(...b){for(const w of b)yield*w}e.concat=g;function p(b,w,v){let L=v;for(const R of b)L=w(L,R);return L}e.reduce=p;function*x(b,w,v=b.length){for(w<0&&(w+=b.length),v<0?v+=b.length:v>b.length&&(v=b.length);w<v;w++)yield b[w]}e.slice=x;function _(b,w=Number.POSITIVE_INFINITY){const v=[];if(w===0)return[v,b];const L=b[Symbol.iterator]();for(let R=0;R<w;R++){const C=L.next();if(C.done)return[v,e.empty()];v.push(C.value)}return[v,{[Symbol.iterator](){return L}}]}e.consume=_;async function S(b){const w=[];for await(const v of b)w.push(v);return Promise.resolve(w)}e.asyncToArray=S})(Xt||(Xt={}));function Gc(e){return e}function Jc(e,t){}function Pr(e){if(Xt.is(e)){const t=[];for(const 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 lo(...e){return Qt(()=>Pr(e))}function Qt(e){return{dispose:oo(()=>{e()})}}class ft{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Pr(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 this._isDisposed?ft.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)}}ft.DISABLE_DISPOSED_WARNING=!1;class Tt{constructor(){this._store=new ft,this._store}dispose(){this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}}Tt.None=Object.freeze({dispose(){}});class H{constructor(t){this.element=t,this.next=H.Undefined,this.prev=H.Undefined}}H.Undefined=new H(void 0);class uo{constructor(){this._first=H.Undefined,this._last=H.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===H.Undefined}clear(){let t=this._first;for(;t!==H.Undefined;){const n=t.next;t.prev=H.Undefined,t.next=H.Undefined,t=n}this._first=H.Undefined,this._last=H.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){const r=new H(t);if(this._first===H.Undefined)this._first=r,this._last=r;else if(n){const s=this._last;this._last=r,r.prev=s,s.next=r}else{const 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!==H.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==H.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==H.Undefined&&t.next!==H.Undefined){const n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===H.Undefined&&t.next===H.Undefined?(this._first=H.Undefined,this._last=H.Undefined):t.next===H.Undefined?(this._last=this._last.prev,this._last.next=H.Undefined):t.prev===H.Undefined&&(this._first=this._first.next,this._first.prev=H.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==H.Undefined;)yield t.element,t=t.next}}const co=globalThis.performance&&typeof globalThis.performance.now=="function";class Zt{static create(t){return new Zt(t)}constructor(t){this._now=co&&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 Nn;(function(e){e.None=()=>Tt.None;function t(N,y){return f(N,()=>{},0,void 0,!0,void 0,y)}e.defer=t;function n(N){return(y,k=null,M)=>{let T=!1,I;return I=N(F=>{if(!T)return I?I.dispose():T=!0,y.call(k,F)},null,M),T&&I.dispose(),I}}e.once=n;function r(N,y,k){return u((M,T=null,I)=>N(F=>M.call(T,y(F)),null,I),k)}e.map=r;function i(N,y,k){return u((M,T=null,I)=>N(F=>{y(F),M.call(T,F)},null,I),k)}e.forEach=i;function s(N,y,k){return u((M,T=null,I)=>N(F=>y(F)&&M.call(T,F),null,I),k)}e.filter=s;function a(N){return N}e.signal=a;function l(...N){return(y,k=null,M)=>{const T=lo(...N.map(I=>I(F=>y.call(k,F))));return h(T,M)}}e.any=l;function o(N,y,k,M){let T=k;return r(N,I=>(T=y(T,I),T),M)}e.reduce=o;function u(N,y){let k;const M={onWillAddFirstListener(){k=N(T.fire,T)},onDidRemoveLastListener(){k==null||k.dispose()}},T=new _e(M);return y==null||y.add(T),T.event}function h(N,y){return y instanceof Array?y.push(N):y&&y.add(N),N}function f(N,y,k=100,M=!1,T=!1,I,F){let j,W,J,Ue=0,lt;const qc={leakWarningThreshold:I,onWillAddFirstListener(){j=N(jc=>{Ue++,W=y(W,jc),M&&!J&&(_n.fire(W),W=void 0),lt=()=>{const Wc=W;W=void 0,J=void 0,(!M||Ue>1)&&_n.fire(Wc),Ue=0},typeof k=="number"?(clearTimeout(J),J=setTimeout(lt,k)):J===void 0&&(J=0,queueMicrotask(lt))})},onWillRemoveListener(){T&&Ue>0&&(lt==null||lt())},onDidRemoveLastListener(){lt=void 0,j.dispose()}},_n=new _e(qc);return F==null||F.add(_n),_n.event}e.debounce=f;function d(N,y=0,k){return e.debounce(N,(M,T)=>M?(M.push(T),M):[T],y,void 0,!0,void 0,k)}e.accumulate=d;function m(N,y=(M,T)=>M===T,k){let M=!0,T;return s(N,I=>{const F=M||!y(I,T);return M=!1,T=I,F},k)}e.latch=m;function g(N,y,k){return[e.filter(N,y,k),e.filter(N,M=>!y(M),k)]}e.split=g;function p(N,y=!1,k=[],M){let T=k.slice(),I=N(W=>{T?T.push(W):j.fire(W)});M&&M.add(I);const F=()=>{T==null||T.forEach(W=>j.fire(W)),T=null},j=new _e({onWillAddFirstListener(){I||(I=N(W=>j.fire(W)),M&&M.add(I))},onDidAddFirstListener(){T&&(y?setTimeout(F):F())},onDidRemoveLastListener(){I&&I.dispose(),I=null}});return M&&M.add(j),j.event}e.buffer=p;function x(N,y){return(M,T,I)=>{const F=y(new S);return N(function(j){const W=F.evaluate(j);W!==_&&M.call(T,W)},void 0,I)}}e.chain=x;const _=Symbol("HaltChainable");class S{constructor(){this.steps=[]}map(y){return this.steps.push(y),this}forEach(y){return this.steps.push(k=>(y(k),k)),this}filter(y){return this.steps.push(k=>y(k)?k:_),this}reduce(y,k){let M=k;return this.steps.push(T=>(M=y(M,T),M)),this}latch(y=(k,M)=>k===M){let k=!0,M;return this.steps.push(T=>{const I=k||!y(T,M);return k=!1,M=T,I?T:_}),this}evaluate(y){for(const k of this.steps)if(y=k(y),y===_)break;return y}}function b(N,y,k=M=>M){const M=(...j)=>F.fire(k(...j)),T=()=>N.on(y,M),I=()=>N.removeListener(y,M),F=new _e({onWillAddFirstListener:T,onDidRemoveLastListener:I});return F.event}e.fromNodeEventEmitter=b;function w(N,y,k=M=>M){const M=(...j)=>F.fire(k(...j)),T=()=>N.addEventListener(y,M),I=()=>N.removeEventListener(y,M),F=new _e({onWillAddFirstListener:T,onDidRemoveLastListener:I});return F.event}e.fromDOMEventEmitter=w;function v(N){return new Promise(y=>n(N)(y))}e.toPromise=v;function L(N){const y=new _e;return N.then(k=>{y.fire(k)},()=>{y.fire(void 0)}).finally(()=>{y.dispose()}),y.event}e.fromPromise=L;function R(N,y,k){return y(k),N(M=>y(M))}e.runAndSubscribe=R;class C{constructor(y,k){this._observable=y,this._counter=0,this._hasChanged=!1;const M={onWillAddFirstListener:()=>{y.addObserver(this)},onDidRemoveLastListener:()=>{y.removeObserver(this)}};this.emitter=new _e(M),k&&k.add(this.emitter)}beginUpdate(y){this._counter++}handlePossibleChange(y){}handleChange(y,k){this._hasChanged=!0}endUpdate(y){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function P(N,y){return new C(N,y).emitter.event}e.fromObservable=P;function D(N){return(y,k,M)=>{let T=0,I=!1;const F={beginUpdate(){T++},endUpdate(){T--,T===0&&(N.reportChanges(),I&&(I=!1,y.call(k)))},handlePossibleChange(){},handleChange(){I=!0}};N.addObserver(F),N.reportChanges();const j={dispose(){N.removeObserver(F)}};return M instanceof ft?M.add(j):Array.isArray(M)&&M.push(j),j}}e.fromObservableLight=D})(Nn||(Nn={}));class ht{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${ht._idPool++}`,ht.all.add(this)}start(t){this._stopWatch=new Zt,this.listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}}ht.all=new Set,ht._idPool=0;let fo=-1;class ho{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){const r=this.threshold;if(r<=0||n<r)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;const[s,a]=this.getMostFrequentStack(),l=`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${a}):`;console.warn(l),console.warn(s);const o=new mo(l,s);this._errorHandler(o)}return()=>{const s=this._stacks.get(t.value)||0;this._stacks.set(t.value,s-1)}}getMostFrequentStack(){if(!this._stacks)return;let t,n=0;for(const[r,i]of this._stacks)(!t||n<i)&&(t=[r,i],n=i);return t}}class Sn{static create(){var t;const n=new Error;return new Sn((t=n.stack)!==null&&t!==void 0?t:"")}constructor(t){this.value=t}print(){console.warn(this.value.split(` +`).slice(2).join(` +`))}}class mo extends Error{constructor(t,n){super(t),this.name="ListenerLeakError",this.stack=n}}class go extends Error{constructor(t,n){super(t),this.name="ListenerRefusalError",this.stack=n}}class An{constructor(t){this.value=t}}const po=2;class _e{constructor(t){var n,r,i,s,a,l;this._size=0,this._options=t,this._leakageMon=!((n=this._options)===null||n===void 0)&&n.leakWarningThreshold?new ho((r=t==null?void 0:t.onListenerError)!==null&&r!==void 0?r:Re,(s=(i=this._options)===null||i===void 0?void 0:i.leakWarningThreshold)!==null&&s!==void 0?s:fo):void 0,this._perfMon=!((a=this._options)===null||a===void 0)&&a._profName?new ht(this._options._profName):void 0,this._deliveryQueue=(l=this._options)===null||l===void 0?void 0:l.deliveryQueue}dispose(){var t,n,r,i;this._disposed||(this._disposed=!0,((t=this._deliveryQueue)===null||t===void 0?void 0:t.current)===this&&this._deliveryQueue.reset(),this._listeners&&(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,o,u,h,f;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const p=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(p);const x=(s=this._leakageMon.getMostFrequentStack())!==null&&s!==void 0?s:["UNKNOWN stack",-1],_=new go(`${p}. HINT: Stack shows most frequent listener (${x[1]}-times)`,x[0]);return(((a=this._options)===null||a===void 0?void 0:a.onListenerError)||Re)(_),Tt.None}if(this._disposed)return Tt.None;r&&(n=n.bind(r));const d=new An(n);let m;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(d.stack=Sn.create(),m=this._leakageMon.check(d.stack,this._size+1)),this._listeners?this._listeners instanceof An?((f=this._deliveryQueue)!==null&&f!==void 0||(this._deliveryQueue=new bo),this._listeners=[this._listeners,d]):this._listeners.push(d):((o=(l=this._options)===null||l===void 0?void 0:l.onWillAddFirstListener)===null||o===void 0||o.call(l,this),this._listeners=d,(h=(u=this._options)===null||u===void 0?void 0:u.onDidAddFirstListener)===null||h===void 0||h.call(u,this)),this._size++;const g=Qt(()=>{m==null||m(),this._removeListener(d)});return i instanceof ft?i.add(g):Array.isArray(i)&&i.push(g),g}),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}const 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;const o=this._deliveryQueue.current===this;if(this._size*po<=a.length){let u=0;for(let h=0;h<a.length;h++)a[h]?a[u++]=a[h]:o&&(this._deliveryQueue.end--,u<this._deliveryQueue.i&&this._deliveryQueue.i--);a.length=u}}_deliver(t,n){var r;if(!t)return;const i=((r=this._options)===null||r===void 0?void 0:r.onListenerError)||Re;if(!i){t.value(n);return}try{t.value(n)}catch(s){i(s)}}_deliverQueue(t){const n=t.current._listeners;for(;t.i<t.end;)this._deliver(n[t.i++],t.value);t.reset()}fire(t){var n,r,i,s;if(!((n=this._deliveryQueue)===null||n===void 0)&&n.current&&(this._deliverQueue(this._deliveryQueue),(r=this._perfMon)===null||r===void 0||r.stop()),(i=this._perfMon)===null||i===void 0||i.start(this._size),this._listeners)if(this._listeners instanceof An)this._deliver(this._listeners,t);else{const a=this._deliveryQueue;a.enqueue(this,t,this._listeners.length),this._deliverQueue(a)}(s=this._perfMon)===null||s===void 0||s.stop()}hasListeners(){return this._size>0}}class bo{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 vo(e){return typeof e=="string"}function xo(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}function kn(e){const t=[];for(const n of xo(e))typeof e[n]=="function"&&t.push(n);return t}function yo(e,t){const n=i=>function(){const s=Array.prototype.slice.call(arguments,0);return t(i,s)},r={};for(const i of e)r[i]=n(i);return r}let _o=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function wo(e,t){let n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,(r,i)=>{const s=i[0],a=t[s];let l=r;return typeof a=="string"?l=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(l=String(a)),l}),_o&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function z(e,t,...n){return wo(t,n)}function Xc(e){}var Rn,En;const dt="en";let Mn=!1,Cn=!1,Tn=!1,Yt,Pn=dt,Ir=dt,Lo,we;const tt=globalThis;let oe;typeof tt.vscode<"u"&&typeof tt.vscode.process<"u"?oe=tt.vscode.process:typeof process<"u"&&typeof((Rn=process==null?void 0:process.versions)===null||Rn===void 0?void 0:Rn.node)=="string"&&(oe=process);const No=typeof((En=oe==null?void 0:oe.versions)===null||En===void 0?void 0:En.electron)=="string"&&(oe==null?void 0:oe.type)==="renderer";if(typeof oe=="object"){Mn=oe.platform==="win32",Cn=oe.platform==="darwin",Tn=oe.platform==="linux",Tn&&oe.env.SNAP&&oe.env.SNAP_REVISION,oe.env.CI||oe.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Yt=dt,Pn=dt;const e=oe.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];Yt=t.locale,Ir=t.osLocale,Pn=n||dt,Lo=t._translationsConfigFile}catch{}}else typeof navigator=="object"&&!No?(we=navigator.userAgent,Mn=we.indexOf("Windows")>=0,Cn=we.indexOf("Macintosh")>=0,(we.indexOf("Macintosh")>=0||we.indexOf("iPad")>=0||we.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Tn=we.indexOf("Linux")>=0,(we==null?void 0:we.indexOf("Mobi"))>=0,z({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),Yt=dt,Pn=Yt,Ir=navigator.language):console.error("Unable to resolve platform.");const Pt=Mn,So=Cn,Me=we,Ao=typeof tt.postMessage=="function"&&!tt.importScripts;(()=>{if(Ao){const e=[];tt.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=e.length;r<i;r++){const s=e[r];if(s.id===n.data.vscodeScheduleAsyncWork){e.splice(r,1),s.callback();return}}});let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),tt.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})();const ko=!!(Me&&Me.indexOf("Chrome")>=0);Me&&Me.indexOf("Firefox")>=0,!ko&&Me&&Me.indexOf("Safari")>=0,Me&&Me.indexOf("Edg/")>=0,Me&&Me.indexOf("Android")>=0;function Ro(e){return e}class Eo{constructor(t,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof t=="function"?(this._fn=t,this._computeKey=Ro):(this._fn=n,this._computeKey=t.getCacheKey)}get(t){const n=this._computeKey(t);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(t)),this.lastCache}}class Fr{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 mt;function Mo(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Co(e){return e.split(/\r\n|\r|\n/)}function To(e){for(let t=0,n=e.length;t<n;t++){const r=e.charCodeAt(t);if(r!==32&&r!==9)return t}return-1}function Po(e,t=e.length-1){for(let n=t;n>=0;n--){const r=e.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function Vr(e){return e>=65&&e<=90}function In(e){return 55296<=e&&e<=56319}function Io(e){return 56320<=e&&e<=57343}function Fo(e,t){return(e-55296<<10)+(t-56320)+65536}function Vo(e,t,n){const r=e.charCodeAt(n);if(In(r)&&n+1<t){const i=e.charCodeAt(n+1);if(Io(i))return Fo(r,i)}return r}const Do=/^[\t\n\r\x20-\x7E]*$/;function Oo(e){return Do.test(e)}class nt{static getInstance(t){return mt.cache.get(Array.from(t))}static getLocales(){return mt._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())}}mt=nt,nt.ambiguousCharacterData=new Fr(()=>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]}')),nt.cache=new Eo({getCacheKey:JSON.stringify},e=>{function t(u){const h=new Map;for(let f=0;f<u.length;f+=2)h.set(u[f],u[f+1]);return h}function n(u,h){const f=new Map(u);for(const[d,m]of h)f.set(d,m);return f}function r(u,h){if(!u)return h;const f=new Map;for(const[d,m]of u)h.has(d)&&f.set(d,m);return f}const i=mt.ambiguousCharacterData.value;let s=e.filter(u=>!u.startsWith("_")&&u in i);s.length===0&&(s=["_default"]);let a;for(const u of s){const h=t(i[u]);a=r(a,h)}const l=t(i._common),o=n(l,a);return new mt(o)}),nt._locales=new Fr(()=>Object.keys(mt.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));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()}}$e._data=void 0;const Bo="$initialize";class Uo{constructor(t,n,r,i){this.vsWorker=t,this.req=n,this.method=r,this.args=i,this.type=0}}class Dr{constructor(t,n,r,i){this.vsWorker=t,this.seq=n,this.res=r,this.err=i,this.type=1}}class $o{constructor(t,n,r,i){this.vsWorker=t,this.req=n,this.eventName=r,this.arg=i,this.type=2}}class qo{constructor(t,n,r){this.vsWorker=t,this.req=n,this.event=r,this.type=3}}class jo{constructor(t,n){this.vsWorker=t,this.req=n,this.type=4}}class Wo{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){const r=String(++this._lastSentReq);return new Promise((i,s)=>{this._pendingReplies[r]={resolve:i,reject:s},this._send(new Uo(this._workerId,r,t,n))})}listen(t,n){let r=null;const i=new _e({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new $o(this._workerId,r,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new jo(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}const 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){const n=t.req;this._handler.handleMessage(t.method,t.args).then(i=>{this._send(new Dr(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=Tr(i.detail)),this._send(new Dr(this._workerId,n,void 0,Tr(i)))})}_handleSubscribeEventMessage(t){const n=t.req,r=this._handler.handleEvent(t.eventName,t.arg)(i=>{this._send(new qo(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){const n=[];if(t.type===0)for(let r=0;r<t.args.length;r++)t.args[r]instanceof ArrayBuffer&&n.push(t.args[r]);else t.type===1&&t.res instanceof ArrayBuffer&&n.push(t.res);this._handler.sendMessage(t,n)}}function Or(e){return e[0]==="o"&&e[1]==="n"&&Vr(e.charCodeAt(2))}function Br(e){return/^onDynamic/.test(e)&&Vr(e.charCodeAt(9))}function Ho(e,t,n){const r=a=>function(){const l=Array.prototype.slice.call(arguments,0);return t(a,l)},i=a=>function(l){return n(a,l)},s={};for(const a of e){if(Br(a)){s[a]=i(a);continue}if(Or(a)){s[a]=n(a,void 0);continue}s[a]=r(a)}return s}class zo{constructor(t,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new Wo({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===Bo)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(Br(t)){const 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(Or(t)){const 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);const l=Ho(i,(o,u)=>this._protocol.sendMessage(o,u),(o,u)=>this._protocol.listen(o,u));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(l),Promise.resolve(kn(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((o,u)=>{const h=globalThis.require;h([r],f=>{if(this._requestHandler=f.create(l),!this._requestHandler){u(new Error("No RequestHandler!"));return}o(kn(this._requestHandler))},u)}))}}class qe{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 Ur(e,t){return(t<<5)-t+e|0}function Go(e,t){t=Ur(149417,t);for(let n=0,r=e.length;n<r;n++)t=Ur(e.charCodeAt(n),t);return t}class $r{constructor(t){this.source=t}getElements(){const t=this.source,n=new Int32Array(t.length);for(let r=0,i=t.length;r<i;r++)n[r]=t.charCodeAt(r);return n}}function Jo(e,t,n){return new je(new $r(e),new $r(t)).ComputeDiff(n).changes}class gt{static Assert(t,n){if(!t)throw new Error(n)}}class pt{static Copy(t,n,r,i,s){for(let a=0;a<s;a++)r[i+a]=t[n+a]}static Copy2(t,n,r,i,s){for(let a=0;a<s;a++)r[i+a]=t[n+a]}}class qr{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new qe(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}}class je{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;const[i,s,a]=je._getElements(t),[l,o,u]=je._getElements(n);this._hasStrings=a&&u,this._originalStringElements=i,this._originalElementsOrHash=s,this._modifiedStringElements=l,this._modifiedElementsOrHash=o,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){const n=t.getElements();if(je._isStringArray(n)){const r=new Int32Array(n.length);for(let i=0,s=n.length;i<s;i++)r[i]=Go(n[i],0);return[n,r,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._modifiedStringElements[n]:!0}ElementsAreStrictEqual(t,n){if(!this.ElementsAreEqual(t,n))return!1;const r=je._getStrictElement(this._originalSequence,t),i=je._getStrictElement(this._modifiedSequence,n);return r===i}static _getStrictElement(t,n){return typeof t.getStrictElement=="function"?t.getStrictElement(n):null}OriginalElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._originalElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._originalStringElements[n]:!0}ModifiedElementsAreEqual(t,n){return this._modifiedElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._modifiedStringElements[t]===this._modifiedStringElements[n]:!0}ComputeDiff(t){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,t)}_ComputeDiff(t,n,r,i,s){const a=[!1];let l=this.ComputeDiffRecursive(t,n,r,i,a);return s&&(l=this.PrettifyChanges(l)),{quitEarly:a[0],changes:l}}ComputeDiffRecursive(t,n,r,i,s){for(s[0]=!1;t<=n&&r<=i&&this.ElementsAreEqual(t,r);)t++,r++;for(;n>=t&&i>=r&&this.ElementsAreEqual(n,i);)n--,i--;if(t>n||r>i){let f;return r<=i?(gt.Assert(t===n+1,"originalStart should only be one more than originalEnd"),f=[new qe(t,0,r,i-r+1)]):t<=n?(gt.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),f=[new qe(t,n-t+1,r,0)]):(gt.Assert(t===n+1,"originalStart should only be one more than originalEnd"),gt.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),f=[]),f}const a=[0],l=[0],o=this.ComputeRecursionPoint(t,n,r,i,a,l,s),u=a[0],h=l[0];if(o!==null)return o;if(!s[0]){const f=this.ComputeDiffRecursive(t,u,r,h,s);let d=[];return s[0]?d=[new qe(u+1,n-(u+1)+1,h+1,i-(h+1)+1)]:d=this.ComputeDiffRecursive(u+1,n,h+1,i,s),this.ConcatenateChanges(f,d)}return[new qe(t,n-t+1,r,i-r+1)]}WALKTRACE(t,n,r,i,s,a,l,o,u,h,f,d,m,g,p,x,_,S){let b=null,w=null,v=new qr,L=n,R=r,C=m[0]-x[0]-i,P=-1073741824,D=this.m_forwardHistory.length-1;do{const N=C+t;N===L||N<R&&u[N-1]<u[N+1]?(f=u[N+1],g=f-C-i,f<P&&v.MarkNextChange(),P=f,v.AddModifiedElement(f+1,g),C=N+1-t):(f=u[N-1]+1,g=f-C-i,f<P&&v.MarkNextChange(),P=f-1,v.AddOriginalElement(f,g+1),C=N-1-t),D>=0&&(u=this.m_forwardHistory[D],t=u[0],L=1,R=u.length-1)}while(--D>=-1);if(b=v.getReverseChanges(),S[0]){let N=m[0]+1,y=x[0]+1;if(b!==null&&b.length>0){const k=b[b.length-1];N=Math.max(N,k.getOriginalEnd()),y=Math.max(y,k.getModifiedEnd())}w=[new qe(N,d-N+1,y,p-y+1)]}else{v=new qr,L=a,R=l,C=m[0]-x[0]-o,P=1073741824,D=_?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const N=C+s;N===L||N<R&&h[N-1]>=h[N+1]?(f=h[N+1]-1,g=f-C-o,f>P&&v.MarkNextChange(),P=f+1,v.AddOriginalElement(f+1,g+1),C=N+1-s):(f=h[N-1],g=f-C-o,f>P&&v.MarkNextChange(),P=f,v.AddModifiedElement(f+1,g+1),C=N-1-s),D>=0&&(h=this.m_reverseHistory[D],s=h[0],L=1,R=h.length-1)}while(--D>=-1);w=v.getChanges()}return this.ConcatenateChanges(b,w)}ComputeRecursionPoint(t,n,r,i,s,a,l){let o=0,u=0,h=0,f=0,d=0,m=0;t--,r--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const g=n-t+(i-r),p=g+1,x=new Int32Array(p),_=new Int32Array(p),S=i-r,b=n-t,w=t-r,v=n-i,R=(b-S)%2===0;x[S]=t,_[b]=n,l[0]=!1;for(let C=1;C<=g/2+1;C++){let P=0,D=0;h=this.ClipDiagonalBound(S-C,C,S,p),f=this.ClipDiagonalBound(S+C,C,S,p);for(let y=h;y<=f;y+=2){y===h||y<f&&x[y-1]<x[y+1]?o=x[y+1]:o=x[y-1]+1,u=o-(y-S)-w;const k=o;for(;o<n&&u<i&&this.ElementsAreEqual(o+1,u+1);)o++,u++;if(x[y]=o,o+u>P+D&&(P=o,D=u),!R&&Math.abs(y-b)<=C-1&&o>=_[y])return s[0]=o,a[0]=u,k<=_[y]&&1447>0&&C<=1448?this.WALKTRACE(S,h,f,w,b,d,m,v,x,_,o,n,s,u,i,a,R,l):null}const N=(P-t+(D-r)-C)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(P,N))return l[0]=!0,s[0]=P,a[0]=D,N>0&&1447>0&&C<=1448?this.WALKTRACE(S,h,f,w,b,d,m,v,x,_,o,n,s,u,i,a,R,l):(t++,r++,[new qe(t,n-t+1,r,i-r+1)]);d=this.ClipDiagonalBound(b-C,C,b,p),m=this.ClipDiagonalBound(b+C,C,b,p);for(let y=d;y<=m;y+=2){y===d||y<m&&_[y-1]>=_[y+1]?o=_[y+1]-1:o=_[y-1],u=o-(y-b)-v;const k=o;for(;o>t&&u>r&&this.ElementsAreEqual(o,u);)o--,u--;if(_[y]=o,R&&Math.abs(y-S)<=C&&o<=x[y])return s[0]=o,a[0]=u,k>=x[y]&&1447>0&&C<=1448?this.WALKTRACE(S,h,f,w,b,d,m,v,x,_,o,n,s,u,i,a,R,l):null}if(C<=1447){let y=new Int32Array(f-h+2);y[0]=S-h+1,pt.Copy2(x,h,y,1,f-h+1),this.m_forwardHistory.push(y),y=new Int32Array(m-d+2),y[0]=b-d+1,pt.Copy2(_,d,y,1,m-d+1),this.m_reverseHistory.push(y)}}return this.WALKTRACE(S,h,f,w,b,d,m,v,x,_,o,n,s,u,i,a,R,l)}PrettifyChanges(t){for(let n=0;n<t.length;n++){const r=t[n],i=n<t.length-1?t[n+1].originalStart:this._originalElementsOrHash.length,s=n<t.length-1?t[n+1].modifiedStart:this._modifiedElementsOrHash.length,a=r.originalLength>0,l=r.modifiedLength>0;for(;r.originalStart+r.originalLength<i&&r.modifiedStart+r.modifiedLength<s&&(!a||this.OriginalElementsAreEqual(r.originalStart,r.originalStart+r.originalLength))&&(!l||this.ModifiedElementsAreEqual(r.modifiedStart,r.modifiedStart+r.modifiedLength));){const u=this.ElementsAreStrictEqual(r.originalStart,r.modifiedStart);if(this.ElementsAreStrictEqual(r.originalStart+r.originalLength,r.modifiedStart+r.modifiedLength)&&!u)break;r.originalStart++,r.modifiedStart++}const o=[null];if(n<t.length-1&&this.ChangesOverlap(t[n],t[n+1],o)){t[n]=o[0],t.splice(n+1,1),n--;continue}}for(let n=t.length-1;n>=0;n--){const r=t[n];let i=0,s=0;if(n>0){const f=t[n-1];i=f.originalStart+f.originalLength,s=f.modifiedStart+f.modifiedLength}const a=r.originalLength>0,l=r.modifiedLength>0;let o=0,u=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let f=1;;f++){const d=r.originalStart-f,m=r.modifiedStart-f;if(d<i||m<s||a&&!this.OriginalElementsAreEqual(d,d+r.originalLength)||l&&!this.ModifiedElementsAreEqual(m,m+r.modifiedLength))break;const p=(d===i&&m===s?5:0)+this._boundaryScore(d,r.originalLength,m,r.modifiedLength);p>u&&(u=p,o=f)}r.originalStart-=o,r.modifiedStart-=o;const h=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],h)){t[n-1]=h[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=t.length;n<r;n++){const i=t[n-1],s=t[n],a=s.originalStart-i.originalStart-i.originalLength,l=i.originalStart,o=s.originalStart+s.originalLength,u=o-l,h=i.modifiedStart,f=s.modifiedStart+s.modifiedLength,d=f-h;if(a<5&&u<20&&d<20){const m=this._findBetterContiguousSequence(l,u,h,d,a);if(m){const[g,p]=m;(g!==i.originalStart+i.originalLength||p!==i.modifiedStart+i.modifiedLength)&&(i.originalLength=g-i.originalStart,i.modifiedLength=p-i.modifiedStart,s.originalStart=g+a,s.modifiedStart=p+a,s.originalLength=o-s.originalStart,s.modifiedLength=f-s.modifiedStart)}}}return t}_findBetterContiguousSequence(t,n,r,i,s){if(n<s||i<s)return null;const a=t+n-s+1,l=r+i-s+1;let o=0,u=0,h=0;for(let f=t;f<a;f++)for(let d=r;d<l;d++){const m=this._contiguousSequenceScore(f,d,s);m>0&&m>o&&(o=m,u=f,h=d)}return o>0?[u,h]:null}_contiguousSequenceScore(t,n,r){let i=0;for(let s=0;s<r;s++){if(!this.ElementsAreEqual(t+s,n+s))return 0;i+=this._originalStringElements[t+s].length}return i}_OriginalIsBoundary(t){return t<=0||t>=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){const 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){const r=t+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(t,n,r,i){const s=this._OriginalRegionIsBoundary(t,n)?1:0,a=this._ModifiedRegionIsBoundary(r,i)?1:0;return s+a}ConcatenateChanges(t,n){const r=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],r)){const i=new Array(t.length+n.length-1);return pt.Copy(t,0,i,0,t.length-1),i[t.length-1]=r[0],pt.Copy(n,1,i,t.length,n.length-1),i}else{const i=new Array(t.length+n.length);return pt.Copy(t,0,i,0,t.length),pt.Copy(n,0,i,t.length,n.length),i}}ChangesOverlap(t,n,r){if(gt.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),gt.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){const i=t.originalStart;let s=t.originalLength;const a=t.modifiedStart;let 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 qe(i,s,a,l),!0}else return r[0]=null,!1}ClipDiagonalBound(t,n,r,i){if(t>=0&&t<i)return t;const s=r,a=i-r-1,l=n%2===0;if(t<0){const o=s%2===0;return l===o?0:1}else{const o=a%2===0;return l===o?i-1:i-2}}}var jr={};let bt;const Fn=globalThis.vscode;if(typeof Fn<"u"&&typeof Fn.process<"u"){const e=Fn.process;bt={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"?bt={get platform(){return process.platform},get arch(){return process.arch},get env(){return jr},cwd(){return jr.VSCODE_CWD||process.cwd()}}:bt={get platform(){return Pt?"win32":So?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const Kt=bt.cwd,Xo=bt.env,Qo=bt.platform,Zo=65,Yo=97,Ko=90,el=122,We=46,se=47,fe=92,He=58,tl=63;class Wr extends Error{constructor(t,n,r){let i;typeof n=="string"&&n.indexOf("not ")===0?(i="must not be",n=n.replace(/^not /,"")):i="must be";const s=t.indexOf(".")!==-1?"property":"argument";let a=`The "${t}" ${s} ${i} of type ${n}`;a+=`. Received type ${typeof r}`,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function nl(e,t){if(e===null||typeof e!="object")throw new Wr(t,"Object",e)}function Y(e,t){if(typeof e!="string")throw new Wr(t,"string",e)}const ze=Qo==="win32";function O(e){return e===se||e===fe}function Vn(e){return e===se}function Ge(e){return e>=Zo&&e<=Ko||e>=Yo&&e<=el}function en(e,t,n,r){let i="",s=0,a=-1,l=0,o=0;for(let u=0;u<=e.length;++u){if(u<e.length)o=e.charCodeAt(u);else{if(r(o))break;o=se}if(r(o)){if(!(a===u-1||l===1))if(l===2){if(i.length<2||s!==2||i.charCodeAt(i.length-1)!==We||i.charCodeAt(i.length-2)!==We){if(i.length>2){const h=i.lastIndexOf(n);h===-1?(i="",s=0):(i=i.slice(0,h),s=i.length-1-i.lastIndexOf(n)),a=u,l=0;continue}else if(i.length!==0){i="",s=0,a=u,l=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${e.slice(a+1,u)}`:i=e.slice(a+1,u),s=u-a-1;a=u,l=0}else o===We&&l!==-1?++l:l=-1}return i}function Hr(e,t){nl(t,"pathObject");const n=t.dir||t.root,r=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const ce={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],Y(s,"path"),s.length===0)continue}else t.length===0?s=Kt():(s=Xo[`=${t}`]||Kt(),(s===void 0||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===fe)&&(s=`${t}\\`));const a=s.length;let l=0,o="",u=!1;const h=s.charCodeAt(0);if(a===1)O(h)&&(l=1,u=!0);else if(O(h))if(u=!0,O(s.charCodeAt(1))){let f=2,d=f;for(;f<a&&!O(s.charCodeAt(f));)f++;if(f<a&&f!==d){const m=s.slice(d,f);for(d=f;f<a&&O(s.charCodeAt(f));)f++;if(f<a&&f!==d){for(d=f;f<a&&!O(s.charCodeAt(f));)f++;(f===a||f!==d)&&(o=`\\\\${m}\\${s.slice(d,f)}`,l=f)}}}else l=1;else Ge(h)&&s.charCodeAt(1)===He&&(o=s.slice(0,2),l=2,a>2&&O(s.charCodeAt(2))&&(u=!0,l=3));if(o.length>0)if(t.length>0){if(o.toLowerCase()!==t.toLowerCase())continue}else t=o;if(r){if(t.length>0)break}else if(n=`${s.slice(l)}\\${n}`,r=u,u&&t.length>0)break}return n=en(n,!r,"\\",O),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){Y(e,"path");const t=e.length;if(t===0)return".";let n=0,r,i=!1;const s=e.charCodeAt(0);if(t===1)return Vn(s)?"\\":e;if(O(s))if(i=!0,O(e.charCodeAt(1))){let l=2,o=l;for(;l<t&&!O(e.charCodeAt(l));)l++;if(l<t&&l!==o){const u=e.slice(o,l);for(o=l;l<t&&O(e.charCodeAt(l));)l++;if(l<t&&l!==o){for(o=l;l<t&&!O(e.charCodeAt(l));)l++;if(l===t)return`\\\\${u}\\${e.slice(o)}\\`;l!==o&&(r=`\\\\${u}\\${e.slice(o,l)}`,n=l)}}}else n=1;else Ge(s)&&e.charCodeAt(1)===He&&(r=e.slice(0,2),n=2,t>2&&O(e.charCodeAt(2))&&(i=!0,n=3));let a=n<t?en(e.slice(n),!i,"\\",O):"";return a.length===0&&!i&&(a="."),a.length>0&&O(e.charCodeAt(t-1))&&(a+="\\"),r===void 0?i?`\\${a}`:a:i?`${r}\\${a}`:`${r}${a}`},isAbsolute(e){Y(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return O(n)||t>2&&Ge(n)&&e.charCodeAt(1)===He&&O(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let s=0;s<e.length;++s){const a=e[s];Y(a,"path"),a.length>0&&(t===void 0?t=n=a:t+=`\\${a}`)}if(t===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&O(n.charCodeAt(0))){++i;const s=n.length;s>1&&O(n.charCodeAt(1))&&(++i,s>2&&(O(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&O(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return ce.normalize(t)},relative(e,t){if(Y(e,"from"),Y(t,"to"),e===t)return"";const n=ce.resolve(e),r=ce.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===fe;)i++;let s=e.length;for(;s-1>i&&e.charCodeAt(s-1)===fe;)s--;const a=s-i;let l=0;for(;l<t.length&&t.charCodeAt(l)===fe;)l++;let o=t.length;for(;o-1>l&&t.charCodeAt(o-1)===fe;)o--;const u=o-l,h=a<u?a:u;let f=-1,d=0;for(;d<h;d++){const g=e.charCodeAt(i+d);if(g!==t.charCodeAt(l+d))break;g===fe&&(f=d)}if(d!==h){if(f===-1)return r}else{if(u>h){if(t.charCodeAt(l+d)===fe)return r.slice(l+d+1);if(d===2)return r.slice(l+d)}a>h&&(e.charCodeAt(i+d)===fe?f=d:d===2&&(f=3)),f===-1&&(f=0)}let m="";for(d=i+f+1;d<=s;++d)(d===s||e.charCodeAt(d)===fe)&&(m+=m.length===0?"..":"\\..");return l+=f,m.length>0?`${m}${r.slice(l,o)}`:(r.charCodeAt(l)===fe&&++l,r.slice(l,o))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=ce.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===fe){if(t.charCodeAt(1)===fe){const n=t.charCodeAt(2);if(n!==tl&&n!==We)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(Ge(t.charCodeAt(0))&&t.charCodeAt(1)===He&&t.charCodeAt(2)===fe)return`\\\\?\\${t}`;return e},dirname(e){Y(e,"path");const t=e.length;if(t===0)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(t===1)return O(i)?e:".";if(O(i)){if(n=r=1,O(e.charCodeAt(1))){let l=2,o=l;for(;l<t&&!O(e.charCodeAt(l));)l++;if(l<t&&l!==o){for(o=l;l<t&&O(e.charCodeAt(l));)l++;if(l<t&&l!==o){for(o=l;l<t&&!O(e.charCodeAt(l));)l++;if(l===t)return e;l!==o&&(n=r=l+1)}}}}else Ge(i)&&e.charCodeAt(1)===He&&(n=t>2&&O(e.charCodeAt(2))?3:2,r=n);let s=-1,a=!0;for(let l=t-1;l>=r;--l)if(O(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&&Y(t,"ext"),Y(e,"path");let n=0,r=-1,i=!0,s;if(e.length>=2&&Ge(e.charCodeAt(0))&&e.charCodeAt(1)===He&&(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){const o=e.charCodeAt(s);if(O(o)){if(!i){n=s+1;break}}else l===-1&&(i=!1,l=s+1),a>=0&&(o===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(O(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){Y(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,a=0;e.length>=2&&e.charCodeAt(1)===He&&Ge(e.charCodeAt(0))&&(t=r=2);for(let l=e.length-1;l>=t;--l){const o=e.charCodeAt(l);if(O(o)){if(!s){r=l+1;break}continue}i===-1&&(s=!1,i=l+1),o===We?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:Hr.bind(null,"\\"),parse(e){Y(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.length;let r=0,i=e.charCodeAt(0);if(n===1)return O(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(O(i)){if(r=1,O(e.charCodeAt(1))){let f=2,d=f;for(;f<n&&!O(e.charCodeAt(f));)f++;if(f<n&&f!==d){for(d=f;f<n&&O(e.charCodeAt(f));)f++;if(f<n&&f!==d){for(d=f;f<n&&!O(e.charCodeAt(f));)f++;f===n?r=f:f!==d&&(r=f+1)}}}}else if(Ge(i)&&e.charCodeAt(1)===He){if(n<=2)return t.root=t.dir=e,t;if(r=2,O(e.charCodeAt(2))){if(n===3)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let s=-1,a=r,l=-1,o=!0,u=e.length-1,h=0;for(;u>=r;--u){if(i=e.charCodeAt(u),O(i)){if(!o){a=u+1;break}continue}l===-1&&(o=!1,l=u+1),i===We?s===-1?s=u:h!==1&&(h=1):s!==-1&&(h=-1)}return l!==-1&&(s===-1||h===0||h===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},rl=(()=>{if(ze){const e=/\\/g;return()=>{const t=Kt().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>Kt()})(),he={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:rl();Y(i,"path"),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===se)}return t=en(t,!n,"/",Vn),n?`/${t}`:t.length>0?t:"."},normalize(e){if(Y(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===se,n=e.charCodeAt(e.length-1)===se;return e=en(e,!t,"/",Vn),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return Y(e,"path"),e.length>0&&e.charCodeAt(0)===se},join(...e){if(e.length===0)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];Y(r,"path"),r.length>0&&(t===void 0?t=r:t+=`/${r}`)}return t===void 0?".":he.normalize(t)},relative(e,t){if(Y(e,"from"),Y(t,"to"),e===t||(e=he.resolve(e),t=he.resolve(t),e===t))return"";const n=1,r=e.length,i=r-n,s=1,a=t.length-s,l=i<a?i:a;let o=-1,u=0;for(;u<l;u++){const f=e.charCodeAt(n+u);if(f!==t.charCodeAt(s+u))break;f===se&&(o=u)}if(u===l)if(a>l){if(t.charCodeAt(s+u)===se)return t.slice(s+u+1);if(u===0)return t.slice(s+u)}else i>l&&(e.charCodeAt(n+u)===se?o=u:u===0&&(o=0));let h="";for(u=n+o+1;u<=r;++u)(u===r||e.charCodeAt(u)===se)&&(h+=h.length===0?"..":"/..");return`${h}${t.slice(s+o)}`},toNamespacedPath(e){return e},dirname(e){if(Y(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===se;let n=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===se){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&&Y(t,"ext"),Y(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){const o=e.charCodeAt(s);if(o===se){if(!i){n=s+1;break}}else l===-1&&(i=!1,l=s+1),a>=0&&(o===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)===se){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){Y(e,"path");let t=-1,n=0,r=-1,i=!0,s=0;for(let a=e.length-1;a>=0;--a){const l=e.charCodeAt(a);if(l===se){if(!i){n=a+1;break}continue}r===-1&&(i=!1,r=a+1),l===We?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:Hr.bind(null,"/"),parse(e){Y(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.charCodeAt(0)===se;let r;n?(t.root="/",r=1):r=0;let i=-1,s=0,a=-1,l=!0,o=e.length-1,u=0;for(;o>=r;--o){const h=e.charCodeAt(o);if(h===se){if(!l){s=o+1;break}continue}a===-1&&(l=!1,a=o+1),h===We?i===-1?i=o:u!==1&&(u=1):i!==-1&&(u=-1)}if(a!==-1){const h=s===0&&n?1:s;i===-1||u===0||u===1&&i===a-1&&i===s+1?t.base=t.name=e.slice(h,a):(t.name=e.slice(h,i),t.base=e.slice(h,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};he.win32=ce.win32=ce,he.posix=ce.posix=he,ze?ce.normalize:he.normalize,ze?ce.resolve:he.resolve,ze?ce.relative:he.relative,ze?ce.dirname:he.dirname,ze?ce.basename:he.basename,ze?ce.extname:he.extname,ze?ce.sep:he.sep;const il=/^\w[\w\d+.-]*$/,sl=/^\//,al=/^\/\//;function ol(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&&!il.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!sl.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(al.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 ll(e,t){return!e&&!t?"file":e}function ul(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Le&&(t=Le+t):t=Le;break}return t}const G="",Le="/",cl=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let Dn=class wn{static isUri(t){return t instanceof wn?!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||G,this.authority=t.authority||G,this.path=t.path||G,this.query=t.query||G,this.fragment=t.fragment||G):(this.scheme=ll(t,a),this.authority=n||G,this.path=ul(this.scheme,r||G),this.query=i||G,this.fragment=s||G,ol(this,a))}get fsPath(){return On(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=G),r===void 0?r=this.authority:r===null&&(r=G),i===void 0?i=this.path:i===null&&(i=G),s===void 0?s=this.query:s===null&&(s=G),a===void 0?a=this.fragment:a===null&&(a=G),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&a===this.fragment?this:new vt(n,r,i,s,a)}static parse(t,n=!1){const r=cl.exec(t);return r?new vt(r[2]||G,tn(r[4]||G),tn(r[5]||G),tn(r[7]||G),tn(r[9]||G),n):new vt(G,G,G,G,G)}static file(t){let n=G;if(Pt&&(t=t.replace(/\\/g,Le)),t[0]===Le&&t[1]===Le){const r=t.indexOf(Le,2);r===-1?(n=t.substring(2),t=Le):(n=t.substring(2,r),t=t.substring(r)||Le)}return new vt("file",n,t,G,G)}static from(t,n){return new vt(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 Pt&&t.scheme==="file"?r=wn.file(ce.join(On(t,!0),...n)).path:r=he.join(t.path,...n),t.with({path:r})}toString(t=!1){return Bn(this,t)}toJSON(){return this}static revive(t){var n,r;if(t){if(t instanceof wn)return t;{const i=new vt(t);return i._formatted=(n=t.external)!==null&&n!==void 0?n:null,i._fsPath=t._sep===zr&&(r=t.fsPath)!==null&&r!==void 0?r:null,i}}else return t}};const zr=Pt?1:void 0;class vt extends Dn{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=On(this,!1)),this._fsPath}toString(t=!1){return t?Bn(this,!0):(this._formatted||(this._formatted=Bn(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=zr),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}}const Gr={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 Jr(e,t,n){let r,i=-1;for(let s=0;s<e.length;s++){const a=e.charCodeAt(s);if(a>=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));const l=Gr[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 fl(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=Gr[r]):t!==void 0&&(t+=e[n])}return t!==void 0?t:e}function On(e,t){let n;return e.authority&&e.path.length>1&&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,Pt&&(n=n.replace(/\//g,"\\")),n}function Bn(e,t){const n=t?fl:Jr;let r="",{scheme:i,authority:s,path:a,query:l,fragment:o}=e;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=Le,r+=Le),s){let u=s.indexOf("@");if(u!==-1){const h=s.substr(0,u);s=s.substr(u+1),u=h.lastIndexOf(":"),u===-1?r+=n(h,!1,!1):(r+=n(h.substr(0,u),!1,!1),r+=":",r+=n(h.substr(u+1),!1,!0)),r+="@"}s=s.toLowerCase(),u=s.lastIndexOf(":"),u===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,u),!1,!0),r+=s.substr(u))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const u=a.charCodeAt(1);u>=65&&u<=90&&(a=`/${String.fromCharCode(u+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){const u=a.charCodeAt(0);u>=65&&u<=90&&(a=`${String.fromCharCode(u+32)}:${a.substr(2)}`)}r+=n(a,!0,!1)}return l&&(r+="?",r+=n(l,!1,!1)),o&&(r+="#",r+=t?o:Jr(o,!1,!1)),r}function Xr(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+Xr(e.substr(3)):e}}const Qr=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function tn(e){return e.match(Qr)?e.replace(Qr,t=>Xr(t)):e}let Ce=class ut{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 ut(t,n)}delta(t=0,n=0){return this.with(this.lineNumber+t,this.column+n)}equals(t){return ut.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return ut.isBefore(this,t)}static isBefore(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<n.column}isBeforeOrEqual(t){return ut.isBeforeOrEqual(this,t)}static isBeforeOrEqual(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<=n.column}static compare(t,n){const r=t.lineNumber|0,i=n.lineNumber|0;if(r===i){const s=t.column|0,a=n.column|0;return s-a}return r-i}clone(){return new ut(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new ut(t.lineNumber,t.column)}static isIPosition(t){return t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}},X=class ee{constructor(t,n,r,i){t>r||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 ee.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return ee.containsPosition(this,t)}static containsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<t.startColumn||n.lineNumber===t.endLineNumber&&n.column>t.endColumn)}static strictContainsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<=t.startColumn||n.lineNumber===t.endLineNumber&&n.column>=t.endColumn)}containsRange(t){return ee.containsRange(this,t)}static containsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>t.endColumn)}strictContainsRange(t){return ee.strictContainsRange(this,t)}static strictContainsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<=t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>=t.endColumn)}plusRange(t){return ee.plusRange(this,t)}static plusRange(t,n){let r,i,s,a;return n.startLineNumber<t.startLineNumber?(r=n.startLineNumber,i=n.startColumn):n.startLineNumber===t.startLineNumber?(r=n.startLineNumber,i=Math.min(n.startColumn,t.startColumn)):(r=t.startLineNumber,i=t.startColumn),n.endLineNumber>t.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 ee(r,i,s,a)}intersectRanges(t){return ee.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,i=t.startColumn,s=t.endLineNumber,a=t.endColumn;const l=n.startLineNumber,o=n.startColumn,u=n.endLineNumber,h=n.endColumn;return r<l?(r=l,i=o):r===l&&(i=Math.max(i,o)),s>u?(s=u,a=h):s===u&&(a=Math.min(a,h)),r>s||r===s&&i>a?null:new ee(r,i,s,a)}equalsRange(t){return ee.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 ee.getEndPosition(this)}static getEndPosition(t){return new Ce(t.endLineNumber,t.endColumn)}getStartPosition(){return ee.getStartPosition(this)}static getStartPosition(t){return new Ce(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new ee(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new ee(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return ee.collapseToStart(this)}static collapseToStart(t){return new ee(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return ee.collapseToEnd(this)}static collapseToEnd(t){return new ee(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new ee(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,n=t){return new ee(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new ee(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.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<t.startColumn)}static areIntersecting(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<=n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<=t.startColumn)}static compareRangesUsingStarts(t,n){if(t&&n){const s=t.startLineNumber|0,a=n.startLineNumber|0;if(s===a){const l=t.startColumn|0,o=n.startColumn|0;if(l===o){const u=t.endLineNumber|0,h=n.endLineNumber|0;if(u===h){const f=t.endColumn|0,d=n.endColumn|0;return f-d}return u-h}return l-o}return s-a}return(t?1:0)-(n?1:0)}static compareRangesUsingEnds(t,n){return t.endLineNumber===n.endLineNumber?t.endColumn===n.endColumn?t.startLineNumber===n.startLineNumber?t.startColumn-n.startColumn:t.startLineNumber-n.startLineNumber:t.endColumn-n.endColumn:t.endLineNumber-n.endLineNumber}static spansMultipleLines(t){return t.endLineNumber>t.startLineNumber}toJSON(){return this}};function hl(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;r<i;r++)if(!n(e[r],t[r]))return!1;return!0}function*dl(e,t){let n,r;for(const i of e)r!==void 0&&t(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}function ml(e,t){for(let n=0;n<=e.length;n++)t(n===0?void 0:e[n-1],n===e.length?void 0:e[n])}function gl(e,t){for(let n=0;n<e.length;n++)t(n===0?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function pl(e,t){for(const n of t)e.push(n)}var Zr;(function(e){function t(s){return s<0}e.isLessThan=t;function n(s){return s<=0}e.isLessThanOrEqual=n;function r(s){return s>0}e.isGreaterThan=r;function i(s){return s===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(Zr||(Zr={}));function nn(e,t){return(n,r)=>t(e(n),e(r))}const rn=(e,t)=>e-t;function bl(e){return(t,n)=>-e(t,n)}function Yr(e){return e<0?0:e>255?255:e|0}function xt(e){return e<0?0:e>4294967295?4294967295:e|0}class vl{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,n){t=xt(t);const 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<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,n){return t=xt(t),n=xt(n),this.values[t]===n?!1:(this.values[t]=n,t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),!0)}removeValues(t,n){t=xt(t),n=xt(n);const r=this.values,i=this.prefixSum;if(t>=r.length)return!1;const 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<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSumValidIndex[0]>=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=xt(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<a)r=i-1;else if(t>=s)n=i+1;else break;return new xl(i,t-a)}}class xl{constructor(t,n){this.index=t,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}}class yl{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);const n=t.changes;for(const r of n)this._acceptDeleteRange(r.range),this._acceptInsertText(new Ce(r.range.startLineNumber,r.range.startColumn),r.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const t=this._eol.length,n=this._lines.length,r=new Uint32Array(n);for(let i=0;i<n;i++)r[i]=this._lines[i].length+t;this._lineStarts=new vl(r)}}_setLineText(t,n){this._lines[t]=n,this._lineStarts&&this._lineStarts.setValue(t,this._lines[t].length+this._eol.length)}_acceptDeleteRange(t){if(t.startLineNumber===t.endLineNumber){if(t.startColumn===t.endColumn)return;this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.startLineNumber-1].substring(t.endColumn-1));return}this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.endLineNumber-1].substring(t.endColumn-1)),this._lines.splice(t.startLineNumber,t.endLineNumber-t.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(t.startLineNumber,t.endLineNumber-t.startLineNumber)}_acceptInsertText(t,n){if(n.length===0)return;const r=Co(n);if(r.length===1){this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]+this._lines[t.lineNumber-1].substring(t.column-1));return}r[r.length-1]+=this._lines[t.lineNumber-1].substring(t.column-1),this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]);const i=new Uint32Array(r.length-1);for(let s=1;s<r.length;s++)this._lines.splice(t.lineNumber+s-1,0,r[s]),i[s-1]=r[s].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(t.lineNumber,i)}}const _l="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function wl(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of _l)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}const Kr=wl();function ei(e){let t=Kr;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}const ti=new uo;ti.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Un(e,t,n,r,i){if(t=ei(t),i||(i=Xt.first(ti)),n.length>i.maxLen){let u=e-i.maxLen/2;return u<0?u=0:r+=u,n=n.substring(u,e+i.maxLen/2),Un(e,t,n,r,i)}const s=Date.now(),a=e-1-r;let l=-1,o=null;for(let u=1;!(Date.now()-s>=i.timeBudget);u++){const h=a-i.windowSize*u;t.lastIndex=Math.max(0,h);const f=Ll(t,n,a,l);if(!f&&o||(o=f,h<=0))break;l=h}if(o){const u={word:o[0],startColumn:r+1+o.index,endColumn:r+1+o.index+o[0].length};return t.lastIndex=0,u}return null}function Ll(e,t,n,r){let i;for(;i=e.exec(t);){const s=i.index||0;if(s<=n&&e.lastIndex>=n)return i;if(r>0&&s>r)return null}return null}class $n{constructor(t){const n=Yr(t);this._defaultValue=n,this._asciiMap=$n._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){const n=new Uint8Array(256);return n.fill(t),n}set(t,n){const r=Yr(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()}}class Nl{constructor(t,n,r){const i=new Uint8Array(t*n);for(let s=0,a=t*n;s<a;s++)i[s]=r;this._data=i,this.rows=t,this.cols=n}get(t,n){return this._data[t*this.cols+n]}set(t,n,r){this._data[t*this.cols+n]=r}}class Sl{constructor(t){let n=0,r=0;for(let s=0,a=t.length;s<a;s++){const[l,o,u]=t[s];o>n&&(n=o),l>r&&(r=l),u>r&&(r=u)}n++,r++;const i=new Nl(r,n,0);for(let s=0,a=t.length;s<a;s++){const[l,o,u]=t[s];i.set(l,o,u)}this._states=i,this._maxCharCode=n}nextState(t,n){return n<0||n>=this._maxCharCode?0:this._states.get(t,n)}}let qn=null;function Al(){return qn===null&&(qn=new Sl([[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]])),qn}let It=null;function kl(){if(It===null){It=new $n(0);const e=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let n=0;n<e.length;n++)It.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)It.set(t.charCodeAt(n),2)}return It}class sn{static _createLink(t,n,r,i,s){let a=s-1;do{const l=n.charCodeAt(a);if(t.get(l)!==2)break;a--}while(a>i);if(i>0){const l=n.charCodeAt(i-1),o=n.charCodeAt(a);(l===40&&o===41||l===91&&o===93||l===123&&o===125)&&a--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:a+2},url:n.substring(i,a+1)}}static computeLinks(t,n=Al()){const r=kl(),i=[];for(let s=1,a=t.getLineCount();s<=a;s++){const l=t.getLineContent(s),o=l.length;let u=0,h=0,f=0,d=1,m=!1,g=!1,p=!1,x=!1;for(;u<o;){let _=!1;const S=l.charCodeAt(u);if(d===13){let b;switch(S){case 40:m=!0,b=0;break;case 41:b=m?0:1;break;case 91:p=!0,g=!0,b=0;break;case 93:p=!1,b=g?0:1;break;case 123:x=!0,b=0;break;case 125:b=x?0:1;break;case 39:case 34:case 96:f===S?b=1:f===39||f===34||f===96?b=0:b=1;break;case 42:b=f===42?1:0;break;case 124:b=f===124?1:0;break;case 32:b=p?0:1;break;default:b=r.get(S)}b===1&&(i.push(sn._createLink(r,l,s,h,u)),_=!0)}else if(d===12){let b;S===91?(g=!0,b=0):b=r.get(S),b===1?_=!0:d=13}else d=n.nextState(d,S),d===0&&(_=!0);_&&(d=1,m=!1,g=!1,x=!1,h=u+1,f=S),u++}d===13&&i.push(sn._createLink(r,l,s,h,o))}return i}}function Rl(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:sn.computeLinks(e)}class jn{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(t,n,r,i,s){if(t&&n){const a=this.doNavigateValueSet(n,s);if(a)return{range:t,value:a}}if(r&&i){const a=this.doNavigateValueSet(i,s);if(a)return{range:r,value:a}}return null}doNavigateValueSet(t,n){const r=this.numberReplace(t,n);return r!==null?r:this.textReplace(t,n)}numberReplace(t,n){const r=Math.pow(10,t.length-(t.lastIndexOf(".")+1));let i=Number(t);const s=parseFloat(t);return!isNaN(i)&&!isNaN(s)&&i===s?i===0&&!n?null:(i=Math.floor(i*r),i+=n?r:-r,String(i/r)):null}textReplace(t,n){return this.valueSetsReplace(this._defaultValueSet,t,n)}valueSetsReplace(t,n,r){let i=null;for(let s=0,a=t.length;i===null&&s<a;s++)i=this.valueSetReplace(t[s],n,r);return i}valueSetReplace(t,n,r){let i=t.indexOf(n);return i>=0?(i+=r?1:-1,i<0?i=t.length-1:i%=t.length,t[i]):null}}jn.INSTANCE=new jn;const ni=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var an;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof on?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Nn.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:ni})})(an||(an={}));class on{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?ni:(this._emitter||(this._emitter=new _e),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class El{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 on),this._token}cancel(){this._token?this._token instanceof on&&this._token.cancel():this._token=an.Cancelled}dispose(t=!1){var n;t&&this.cancel(),(n=this._parentListener)===null||n===void 0||n.dispose(),this._token?this._token instanceof on&&this._token.dispose():this._token=an.None}}class Wn{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}}const ln=new Wn,Hn=new Wn,zn=new Wn,Ml=new Array(230),Cl=Object.create(null),Tl=Object.create(null);(function(){const 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(const i of t){const[s,a,l,o,u,h,f,d,m]=i;if(r[a]||(r[a]=!0,Cl[l]=a,Tl[l.toLowerCase()]=a),!n[o]){if(n[o]=!0,!u)throw new Error(`String representation missing for key code ${o} around scan code ${l}`);ln.define(o,u),Hn.define(o,d||u),zn.define(o,m||d||u)}h&&(Ml[h]=o)}})();var ri;(function(e){function t(l){return ln.keyCodeToStr(l)}e.toString=t;function n(l){return ln.strToKeyCode(l)}e.fromString=n;function r(l){return Hn.keyCodeToStr(l)}e.toUserSettingsUS=r;function i(l){return zn.keyCodeToStr(l)}e.toUserSettingsGeneral=i;function s(l){return Hn.strToKeyCode(l)||zn.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 ln.keyCodeToStr(l)}e.toElectronAccelerator=a})(ri||(ri={}));function Pl(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}class de extends X{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 de.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 de(this.startLineNumber,this.startColumn,t,n):new de(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new Ce(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Ce(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new de(t,n,this.endLineNumber,this.endColumn):new de(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new de(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new de(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new de(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new de(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<i;r++)if(!this.selectionsEqual(t[r],n[r]))return!1;return!0}static isISelection(t){return t&&typeof t.selectionStartLineNumber=="number"&&typeof t.selectionStartColumn=="number"&&typeof t.positionLineNumber=="number"&&typeof t.positionColumn=="number"}static createWithDirection(t,n,r,i,s){return s===0?new de(t,n,r,i):new de(r,i,t,n)}}const ii=Object.create(null);function c(e,t){if(vo(t)){const n=ii[t];if(n===void 0)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return ii[e]=t,{id:e}}const Il={add:c("add",6e4),plus:c("plus",6e4),gistNew:c("gist-new",6e4),repoCreate:c("repo-create",6e4),lightbulb:c("lightbulb",60001),lightBulb:c("light-bulb",60001),repo:c("repo",60002),repoDelete:c("repo-delete",60002),gistFork:c("gist-fork",60003),repoForked:c("repo-forked",60003),gitPullRequest:c("git-pull-request",60004),gitPullRequestAbandoned:c("git-pull-request-abandoned",60004),recordKeys:c("record-keys",60005),keyboard:c("keyboard",60005),tag:c("tag",60006),gitPullRequestLabel:c("git-pull-request-label",60006),tagAdd:c("tag-add",60006),tagRemove:c("tag-remove",60006),person:c("person",60007),personFollow:c("person-follow",60007),personOutline:c("person-outline",60007),personFilled:c("person-filled",60007),gitBranch:c("git-branch",60008),gitBranchCreate:c("git-branch-create",60008),gitBranchDelete:c("git-branch-delete",60008),sourceControl:c("source-control",60008),mirror:c("mirror",60009),mirrorPublic:c("mirror-public",60009),star:c("star",60010),starAdd:c("star-add",60010),starDelete:c("star-delete",60010),starEmpty:c("star-empty",60010),comment:c("comment",60011),commentAdd:c("comment-add",60011),alert:c("alert",60012),warning:c("warning",60012),search:c("search",60013),searchSave:c("search-save",60013),logOut:c("log-out",60014),signOut:c("sign-out",60014),logIn:c("log-in",60015),signIn:c("sign-in",60015),eye:c("eye",60016),eyeUnwatch:c("eye-unwatch",60016),eyeWatch:c("eye-watch",60016),circleFilled:c("circle-filled",60017),primitiveDot:c("primitive-dot",60017),closeDirty:c("close-dirty",60017),debugBreakpoint:c("debug-breakpoint",60017),debugBreakpointDisabled:c("debug-breakpoint-disabled",60017),debugHint:c("debug-hint",60017),terminalDecorationSuccess:c("terminal-decoration-success",60017),primitiveSquare:c("primitive-square",60018),edit:c("edit",60019),pencil:c("pencil",60019),info:c("info",60020),issueOpened:c("issue-opened",60020),gistPrivate:c("gist-private",60021),gitForkPrivate:c("git-fork-private",60021),lock:c("lock",60021),mirrorPrivate:c("mirror-private",60021),close:c("close",60022),removeClose:c("remove-close",60022),x:c("x",60022),repoSync:c("repo-sync",60023),sync:c("sync",60023),clone:c("clone",60024),desktopDownload:c("desktop-download",60024),beaker:c("beaker",60025),microscope:c("microscope",60025),vm:c("vm",60026),deviceDesktop:c("device-desktop",60026),file:c("file",60027),fileText:c("file-text",60027),more:c("more",60028),ellipsis:c("ellipsis",60028),kebabHorizontal:c("kebab-horizontal",60028),mailReply:c("mail-reply",60029),reply:c("reply",60029),organization:c("organization",60030),organizationFilled:c("organization-filled",60030),organizationOutline:c("organization-outline",60030),newFile:c("new-file",60031),fileAdd:c("file-add",60031),newFolder:c("new-folder",60032),fileDirectoryCreate:c("file-directory-create",60032),trash:c("trash",60033),trashcan:c("trashcan",60033),history:c("history",60034),clock:c("clock",60034),folder:c("folder",60035),fileDirectory:c("file-directory",60035),symbolFolder:c("symbol-folder",60035),logoGithub:c("logo-github",60036),markGithub:c("mark-github",60036),github:c("github",60036),terminal:c("terminal",60037),console:c("console",60037),repl:c("repl",60037),zap:c("zap",60038),symbolEvent:c("symbol-event",60038),error:c("error",60039),stop:c("stop",60039),variable:c("variable",60040),symbolVariable:c("symbol-variable",60040),array:c("array",60042),symbolArray:c("symbol-array",60042),symbolModule:c("symbol-module",60043),symbolPackage:c("symbol-package",60043),symbolNamespace:c("symbol-namespace",60043),symbolObject:c("symbol-object",60043),symbolMethod:c("symbol-method",60044),symbolFunction:c("symbol-function",60044),symbolConstructor:c("symbol-constructor",60044),symbolBoolean:c("symbol-boolean",60047),symbolNull:c("symbol-null",60047),symbolNumeric:c("symbol-numeric",60048),symbolNumber:c("symbol-number",60048),symbolStructure:c("symbol-structure",60049),symbolStruct:c("symbol-struct",60049),symbolParameter:c("symbol-parameter",60050),symbolTypeParameter:c("symbol-type-parameter",60050),symbolKey:c("symbol-key",60051),symbolText:c("symbol-text",60051),symbolReference:c("symbol-reference",60052),goToFile:c("go-to-file",60052),symbolEnum:c("symbol-enum",60053),symbolValue:c("symbol-value",60053),symbolRuler:c("symbol-ruler",60054),symbolUnit:c("symbol-unit",60054),activateBreakpoints:c("activate-breakpoints",60055),archive:c("archive",60056),arrowBoth:c("arrow-both",60057),arrowDown:c("arrow-down",60058),arrowLeft:c("arrow-left",60059),arrowRight:c("arrow-right",60060),arrowSmallDown:c("arrow-small-down",60061),arrowSmallLeft:c("arrow-small-left",60062),arrowSmallRight:c("arrow-small-right",60063),arrowSmallUp:c("arrow-small-up",60064),arrowUp:c("arrow-up",60065),bell:c("bell",60066),bold:c("bold",60067),book:c("book",60068),bookmark:c("bookmark",60069),debugBreakpointConditionalUnverified:c("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:c("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:c("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:c("debug-breakpoint-data-unverified",60072),debugBreakpointData:c("debug-breakpoint-data",60073),debugBreakpointDataDisabled:c("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:c("debug-breakpoint-log-unverified",60074),debugBreakpointLog:c("debug-breakpoint-log",60075),debugBreakpointLogDisabled:c("debug-breakpoint-log-disabled",60075),briefcase:c("briefcase",60076),broadcast:c("broadcast",60077),browser:c("browser",60078),bug:c("bug",60079),calendar:c("calendar",60080),caseSensitive:c("case-sensitive",60081),check:c("check",60082),checklist:c("checklist",60083),chevronDown:c("chevron-down",60084),chevronLeft:c("chevron-left",60085),chevronRight:c("chevron-right",60086),chevronUp:c("chevron-up",60087),chromeClose:c("chrome-close",60088),chromeMaximize:c("chrome-maximize",60089),chromeMinimize:c("chrome-minimize",60090),chromeRestore:c("chrome-restore",60091),circleOutline:c("circle-outline",60092),circle:c("circle",60092),debugBreakpointUnverified:c("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:c("terminal-decoration-incomplete",60092),circleSlash:c("circle-slash",60093),circuitBoard:c("circuit-board",60094),clearAll:c("clear-all",60095),clippy:c("clippy",60096),closeAll:c("close-all",60097),cloudDownload:c("cloud-download",60098),cloudUpload:c("cloud-upload",60099),code:c("code",60100),collapseAll:c("collapse-all",60101),colorMode:c("color-mode",60102),commentDiscussion:c("comment-discussion",60103),creditCard:c("credit-card",60105),dash:c("dash",60108),dashboard:c("dashboard",60109),database:c("database",60110),debugContinue:c("debug-continue",60111),debugDisconnect:c("debug-disconnect",60112),debugPause:c("debug-pause",60113),debugRestart:c("debug-restart",60114),debugStart:c("debug-start",60115),debugStepInto:c("debug-step-into",60116),debugStepOut:c("debug-step-out",60117),debugStepOver:c("debug-step-over",60118),debugStop:c("debug-stop",60119),debug:c("debug",60120),deviceCameraVideo:c("device-camera-video",60121),deviceCamera:c("device-camera",60122),deviceMobile:c("device-mobile",60123),diffAdded:c("diff-added",60124),diffIgnored:c("diff-ignored",60125),diffModified:c("diff-modified",60126),diffRemoved:c("diff-removed",60127),diffRenamed:c("diff-renamed",60128),diff:c("diff",60129),diffSidebyside:c("diff-sidebyside",60129),discard:c("discard",60130),editorLayout:c("editor-layout",60131),emptyWindow:c("empty-window",60132),exclude:c("exclude",60133),extensions:c("extensions",60134),eyeClosed:c("eye-closed",60135),fileBinary:c("file-binary",60136),fileCode:c("file-code",60137),fileMedia:c("file-media",60138),filePdf:c("file-pdf",60139),fileSubmodule:c("file-submodule",60140),fileSymlinkDirectory:c("file-symlink-directory",60141),fileSymlinkFile:c("file-symlink-file",60142),fileZip:c("file-zip",60143),files:c("files",60144),filter:c("filter",60145),flame:c("flame",60146),foldDown:c("fold-down",60147),foldUp:c("fold-up",60148),fold:c("fold",60149),folderActive:c("folder-active",60150),folderOpened:c("folder-opened",60151),gear:c("gear",60152),gift:c("gift",60153),gistSecret:c("gist-secret",60154),gist:c("gist",60155),gitCommit:c("git-commit",60156),gitCompare:c("git-compare",60157),compareChanges:c("compare-changes",60157),gitMerge:c("git-merge",60158),githubAction:c("github-action",60159),githubAlt:c("github-alt",60160),globe:c("globe",60161),grabber:c("grabber",60162),graph:c("graph",60163),gripper:c("gripper",60164),heart:c("heart",60165),home:c("home",60166),horizontalRule:c("horizontal-rule",60167),hubot:c("hubot",60168),inbox:c("inbox",60169),issueReopened:c("issue-reopened",60171),issues:c("issues",60172),italic:c("italic",60173),jersey:c("jersey",60174),json:c("json",60175),kebabVertical:c("kebab-vertical",60176),key:c("key",60177),law:c("law",60178),lightbulbAutofix:c("lightbulb-autofix",60179),linkExternal:c("link-external",60180),link:c("link",60181),listOrdered:c("list-ordered",60182),listUnordered:c("list-unordered",60183),liveShare:c("live-share",60184),loading:c("loading",60185),location:c("location",60186),mailRead:c("mail-read",60187),mail:c("mail",60188),markdown:c("markdown",60189),megaphone:c("megaphone",60190),mention:c("mention",60191),milestone:c("milestone",60192),gitPullRequestMilestone:c("git-pull-request-milestone",60192),mortarBoard:c("mortar-board",60193),move:c("move",60194),multipleWindows:c("multiple-windows",60195),mute:c("mute",60196),noNewline:c("no-newline",60197),note:c("note",60198),octoface:c("octoface",60199),openPreview:c("open-preview",60200),package:c("package",60201),paintcan:c("paintcan",60202),pin:c("pin",60203),play:c("play",60204),run:c("run",60204),plug:c("plug",60205),preserveCase:c("preserve-case",60206),preview:c("preview",60207),project:c("project",60208),pulse:c("pulse",60209),question:c("question",60210),quote:c("quote",60211),radioTower:c("radio-tower",60212),reactions:c("reactions",60213),references:c("references",60214),refresh:c("refresh",60215),regex:c("regex",60216),remoteExplorer:c("remote-explorer",60217),remote:c("remote",60218),remove:c("remove",60219),replaceAll:c("replace-all",60220),replace:c("replace",60221),repoClone:c("repo-clone",60222),repoForcePush:c("repo-force-push",60223),repoPull:c("repo-pull",60224),repoPush:c("repo-push",60225),report:c("report",60226),requestChanges:c("request-changes",60227),rocket:c("rocket",60228),rootFolderOpened:c("root-folder-opened",60229),rootFolder:c("root-folder",60230),rss:c("rss",60231),ruby:c("ruby",60232),saveAll:c("save-all",60233),saveAs:c("save-as",60234),save:c("save",60235),screenFull:c("screen-full",60236),screenNormal:c("screen-normal",60237),searchStop:c("search-stop",60238),server:c("server",60240),settingsGear:c("settings-gear",60241),settings:c("settings",60242),shield:c("shield",60243),smiley:c("smiley",60244),sortPrecedence:c("sort-precedence",60245),splitHorizontal:c("split-horizontal",60246),splitVertical:c("split-vertical",60247),squirrel:c("squirrel",60248),starFull:c("star-full",60249),starHalf:c("star-half",60250),symbolClass:c("symbol-class",60251),symbolColor:c("symbol-color",60252),symbolConstant:c("symbol-constant",60253),symbolEnumMember:c("symbol-enum-member",60254),symbolField:c("symbol-field",60255),symbolFile:c("symbol-file",60256),symbolInterface:c("symbol-interface",60257),symbolKeyword:c("symbol-keyword",60258),symbolMisc:c("symbol-misc",60259),symbolOperator:c("symbol-operator",60260),symbolProperty:c("symbol-property",60261),wrench:c("wrench",60261),wrenchSubaction:c("wrench-subaction",60261),symbolSnippet:c("symbol-snippet",60262),tasklist:c("tasklist",60263),telescope:c("telescope",60264),textSize:c("text-size",60265),threeBars:c("three-bars",60266),thumbsdown:c("thumbsdown",60267),thumbsup:c("thumbsup",60268),tools:c("tools",60269),triangleDown:c("triangle-down",60270),triangleLeft:c("triangle-left",60271),triangleRight:c("triangle-right",60272),triangleUp:c("triangle-up",60273),twitter:c("twitter",60274),unfold:c("unfold",60275),unlock:c("unlock",60276),unmute:c("unmute",60277),unverified:c("unverified",60278),verified:c("verified",60279),versions:c("versions",60280),vmActive:c("vm-active",60281),vmOutline:c("vm-outline",60282),vmRunning:c("vm-running",60283),watch:c("watch",60284),whitespace:c("whitespace",60285),wholeWord:c("whole-word",60286),window:c("window",60287),wordWrap:c("word-wrap",60288),zoomIn:c("zoom-in",60289),zoomOut:c("zoom-out",60290),listFilter:c("list-filter",60291),listFlat:c("list-flat",60292),listSelection:c("list-selection",60293),selection:c("selection",60293),listTree:c("list-tree",60294),debugBreakpointFunctionUnverified:c("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:c("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:c("debug-breakpoint-function-disabled",60296),debugStackframeActive:c("debug-stackframe-active",60297),circleSmallFilled:c("circle-small-filled",60298),debugStackframeDot:c("debug-stackframe-dot",60298),terminalDecorationMark:c("terminal-decoration-mark",60298),debugStackframe:c("debug-stackframe",60299),debugStackframeFocused:c("debug-stackframe-focused",60299),debugBreakpointUnsupported:c("debug-breakpoint-unsupported",60300),symbolString:c("symbol-string",60301),debugReverseContinue:c("debug-reverse-continue",60302),debugStepBack:c("debug-step-back",60303),debugRestartFrame:c("debug-restart-frame",60304),debugAlt:c("debug-alt",60305),callIncoming:c("call-incoming",60306),callOutgoing:c("call-outgoing",60307),menu:c("menu",60308),expandAll:c("expand-all",60309),feedback:c("feedback",60310),gitPullRequestReviewer:c("git-pull-request-reviewer",60310),groupByRefType:c("group-by-ref-type",60311),ungroupByRefType:c("ungroup-by-ref-type",60312),account:c("account",60313),gitPullRequestAssignee:c("git-pull-request-assignee",60313),bellDot:c("bell-dot",60314),debugConsole:c("debug-console",60315),library:c("library",60316),output:c("output",60317),runAll:c("run-all",60318),syncIgnored:c("sync-ignored",60319),pinned:c("pinned",60320),githubInverted:c("github-inverted",60321),serverProcess:c("server-process",60322),serverEnvironment:c("server-environment",60323),pass:c("pass",60324),issueClosed:c("issue-closed",60324),stopCircle:c("stop-circle",60325),playCircle:c("play-circle",60326),record:c("record",60327),debugAltSmall:c("debug-alt-small",60328),vmConnect:c("vm-connect",60329),cloud:c("cloud",60330),merge:c("merge",60331),export:c("export",60332),graphLeft:c("graph-left",60333),magnet:c("magnet",60334),notebook:c("notebook",60335),redo:c("redo",60336),checkAll:c("check-all",60337),pinnedDirty:c("pinned-dirty",60338),passFilled:c("pass-filled",60339),circleLargeFilled:c("circle-large-filled",60340),circleLarge:c("circle-large",60341),circleLargeOutline:c("circle-large-outline",60341),combine:c("combine",60342),gather:c("gather",60342),table:c("table",60343),variableGroup:c("variable-group",60344),typeHierarchy:c("type-hierarchy",60345),typeHierarchySub:c("type-hierarchy-sub",60346),typeHierarchySuper:c("type-hierarchy-super",60347),gitPullRequestCreate:c("git-pull-request-create",60348),runAbove:c("run-above",60349),runBelow:c("run-below",60350),notebookTemplate:c("notebook-template",60351),debugRerun:c("debug-rerun",60352),workspaceTrusted:c("workspace-trusted",60353),workspaceUntrusted:c("workspace-untrusted",60354),workspaceUnknown:c("workspace-unknown",60355),terminalCmd:c("terminal-cmd",60356),terminalDebian:c("terminal-debian",60357),terminalLinux:c("terminal-linux",60358),terminalPowershell:c("terminal-powershell",60359),terminalTmux:c("terminal-tmux",60360),terminalUbuntu:c("terminal-ubuntu",60361),terminalBash:c("terminal-bash",60362),arrowSwap:c("arrow-swap",60363),copy:c("copy",60364),personAdd:c("person-add",60365),filterFilled:c("filter-filled",60366),wand:c("wand",60367),debugLineByLine:c("debug-line-by-line",60368),inspect:c("inspect",60369),layers:c("layers",60370),layersDot:c("layers-dot",60371),layersActive:c("layers-active",60372),compass:c("compass",60373),compassDot:c("compass-dot",60374),compassActive:c("compass-active",60375),azure:c("azure",60376),issueDraft:c("issue-draft",60377),gitPullRequestClosed:c("git-pull-request-closed",60378),gitPullRequestDraft:c("git-pull-request-draft",60379),debugAll:c("debug-all",60380),debugCoverage:c("debug-coverage",60381),runErrors:c("run-errors",60382),folderLibrary:c("folder-library",60383),debugContinueSmall:c("debug-continue-small",60384),beakerStop:c("beaker-stop",60385),graphLine:c("graph-line",60386),graphScatter:c("graph-scatter",60387),pieChart:c("pie-chart",60388),bracket:c("bracket",60175),bracketDot:c("bracket-dot",60389),bracketError:c("bracket-error",60390),lockSmall:c("lock-small",60391),azureDevops:c("azure-devops",60392),verifiedFilled:c("verified-filled",60393),newline:c("newline",60394),layout:c("layout",60395),layoutActivitybarLeft:c("layout-activitybar-left",60396),layoutActivitybarRight:c("layout-activitybar-right",60397),layoutPanelLeft:c("layout-panel-left",60398),layoutPanelCenter:c("layout-panel-center",60399),layoutPanelJustify:c("layout-panel-justify",60400),layoutPanelRight:c("layout-panel-right",60401),layoutPanel:c("layout-panel",60402),layoutSidebarLeft:c("layout-sidebar-left",60403),layoutSidebarRight:c("layout-sidebar-right",60404),layoutStatusbar:c("layout-statusbar",60405),layoutMenubar:c("layout-menubar",60406),layoutCentered:c("layout-centered",60407),target:c("target",60408),indent:c("indent",60409),recordSmall:c("record-small",60410),errorSmall:c("error-small",60411),terminalDecorationError:c("terminal-decoration-error",60411),arrowCircleDown:c("arrow-circle-down",60412),arrowCircleLeft:c("arrow-circle-left",60413),arrowCircleRight:c("arrow-circle-right",60414),arrowCircleUp:c("arrow-circle-up",60415),layoutSidebarRightOff:c("layout-sidebar-right-off",60416),layoutPanelOff:c("layout-panel-off",60417),layoutSidebarLeftOff:c("layout-sidebar-left-off",60418),blank:c("blank",60419),heartFilled:c("heart-filled",60420),map:c("map",60421),mapHorizontal:c("map-horizontal",60421),foldHorizontal:c("fold-horizontal",60421),mapFilled:c("map-filled",60422),mapHorizontalFilled:c("map-horizontal-filled",60422),foldHorizontalFilled:c("fold-horizontal-filled",60422),circleSmall:c("circle-small",60423),bellSlash:c("bell-slash",60424),bellSlashDot:c("bell-slash-dot",60425),commentUnresolved:c("comment-unresolved",60426),gitPullRequestGoToChanges:c("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:c("git-pull-request-new-changes",60428),searchFuzzy:c("search-fuzzy",60429),commentDraft:c("comment-draft",60430),send:c("send",60431),sparkle:c("sparkle",60432),insert:c("insert",60433),mic:c("mic",60434),thumbsdownFilled:c("thumbsdown-filled",60435),thumbsupFilled:c("thumbsup-filled",60436),coffee:c("coffee",60437),snake:c("snake",60438),game:c("game",60439),vr:c("vr",60440),chip:c("chip",60441),piano:c("piano",60442),music:c("music",60443),micFilled:c("mic-filled",60444),repoFetch:c("repo-fetch",60445),copilot:c("copilot",60446),lightbulbSparkle:c("lightbulb-sparkle",60447),robot:c("robot",60448),sparkleFilled:c("sparkle-filled",60449),diffSingle:c("diff-single",60450),diffMultiple:c("diff-multiple",60451),surroundWith:c("surround-with",60452),share:c("share",60453),gitStash:c("git-stash",60454),gitStashApply:c("git-stash-apply",60455),gitStashPop:c("git-stash-pop",60456),vscode:c("vscode",60457),vscodeInsiders:c("vscode-insiders",60458),codeOss:c("code-oss",60459),runCoverage:c("run-coverage",60460),runAllCoverage:c("run-all-coverage",60461),coverage:c("coverage",60462),githubProject:c("github-project",60463),mapVertical:c("map-vertical",60464),foldVertical:c("fold-vertical",60464),mapVerticalFilled:c("map-vertical-filled",60465),foldVerticalFilled:c("fold-vertical-filled",60465),goToSearch:c("go-to-search",60466),percentage:c("percentage",60467),sortPercentage:c("sort-percentage",60467),attach:c("attach",60468)},Fl={dialogError:c("dialog-error","error"),dialogWarning:c("dialog-warning","warning"),dialogInfo:c("dialog-info","info"),dialogClose:c("dialog-close","close"),treeItemExpanded:c("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:c("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:c("tree-filter-on-type-off","list-selection"),treeFilterClear:c("tree-filter-clear","close"),treeItemLoading:c("tree-item-loading","loading"),menuSelection:c("menu-selection","check"),menuSubmenu:c("menu-submenu","chevron-right"),menuBarMore:c("menubar-more","more"),scrollbarButtonLeft:c("scrollbar-button-left","triangle-left"),scrollbarButtonRight:c("scrollbar-button-right","triangle-right"),scrollbarButtonUp:c("scrollbar-button-up","triangle-up"),scrollbarButtonDown:c("scrollbar-button-down","triangle-down"),toolBarMore:c("toolbar-more","more"),quickInputBack:c("quick-input-back","arrow-left"),dropDownButton:c("drop-down-button",60084),symbolCustomColor:c("symbol-customcolor",60252),exportIcon:c("export",60332),workspaceUnspecified:c("workspace-unspecified",60355),newLine:c("newline",60394),thumbsDownFilled:c("thumbsdown-filled",60435),thumbsUpFilled:c("thumbsup-filled",60436),gitFetch:c("git-fetch",60445),lightbulbSparkleAutofix:c("lightbulb-sparkle-autofix",60447),debugBreakpointPending:c("debug-breakpoint-pending",60377)},V={...Il,...Fl};class Vl{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new _e,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(t){this._onDidChange.fire({changedLanguages:t,changedColorMap:!1})}register(t,n){return this._tokenizationSupports.set(t,n),this.handleChange([t]),Qt(()=>{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();const i=new Dl(this,t,n);return this._factories.set(t,i),Qt(()=>{const s=this._factories.get(t);!s||s!==i||(this._factories.delete(t),s.dispose())})}async getOrCreate(t){const n=this.get(t);if(n)return n;const r=this._factories.get(t);return!r||r.isResolved?null:(await r.resolve(),this.get(t))}isResolved(t){if(this.get(t))return!0;const 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}}class Dl extends Tt{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(){const t=await this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))}}class Ol{constructor(t,n,r){this.offset=t,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var si;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(si||(si={}));var ai;(function(e){const t=new Map;t.set(0,V.symbolMethod),t.set(1,V.symbolFunction),t.set(2,V.symbolConstructor),t.set(3,V.symbolField),t.set(4,V.symbolVariable),t.set(5,V.symbolClass),t.set(6,V.symbolStruct),t.set(7,V.symbolInterface),t.set(8,V.symbolModule),t.set(9,V.symbolProperty),t.set(10,V.symbolEvent),t.set(11,V.symbolOperator),t.set(12,V.symbolUnit),t.set(13,V.symbolValue),t.set(15,V.symbolEnum),t.set(14,V.symbolConstant),t.set(15,V.symbolEnum),t.set(16,V.symbolEnumMember),t.set(17,V.symbolKeyword),t.set(27,V.symbolSnippet),t.set(18,V.symbolText),t.set(19,V.symbolColor),t.set(20,V.symbolFile),t.set(21,V.symbolReference),t.set(22,V.symbolCustomColor),t.set(23,V.symbolFolder),t.set(24,V.symbolTypeParameter),t.set(25,V.account),t.set(26,V.issues);function n(s){let a=t.get(s);return a||(console.info("No codicon found for CompletionItemKind "+s),a=V.symbolProperty),a}e.toIcon=n;const 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})(ai||(ai={}));var oi;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(oi||(oi={}));var li;(function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"})(li||(li={}));var ui;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(ui||(ui={}));var ci;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(ci||(ci={})),z("Array","array"),z("Boolean","boolean"),z("Class","class"),z("Constant","constant"),z("Constructor","constructor"),z("Enum","enumeration"),z("EnumMember","enumeration member"),z("Event","event"),z("Field","field"),z("File","file"),z("Function","function"),z("Interface","interface"),z("Key","key"),z("Method","method"),z("Module","module"),z("Namespace","namespace"),z("Null","null"),z("Number","number"),z("Object","object"),z("Operator","operator"),z("Package","package"),z("Property","property"),z("String","string"),z("Struct","struct"),z("TypeParameter","type parameter"),z("Variable","variable");var fi;(function(e){const t=new Map;t.set(0,V.symbolFile),t.set(1,V.symbolModule),t.set(2,V.symbolNamespace),t.set(3,V.symbolPackage),t.set(4,V.symbolClass),t.set(5,V.symbolMethod),t.set(6,V.symbolProperty),t.set(7,V.symbolField),t.set(8,V.symbolConstructor),t.set(9,V.symbolEnum),t.set(10,V.symbolInterface),t.set(11,V.symbolFunction),t.set(12,V.symbolVariable),t.set(13,V.symbolConstant),t.set(14,V.symbolString),t.set(15,V.symbolNumber),t.set(16,V.symbolBoolean),t.set(17,V.symbolArray),t.set(18,V.symbolObject),t.set(19,V.symbolKey),t.set(20,V.symbolNull),t.set(21,V.symbolEnumMember),t.set(22,V.symbolStruct),t.set(23,V.symbolEvent),t.set(24,V.symbolOperator),t.set(25,V.symbolTypeParameter);function n(r){let i=t.get(r);return i||(console.info("No codicon found for SymbolKind "+r),i=V.symbolProperty),i}e.toIcon=n})(fi||(fi={}));var hi;(function(e){e[e.AIGenerated=1]="AIGenerated"})(hi||(hi={}));var di;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(di||(di={}));var mi;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(mi||(mi={}));var gi;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(gi||(gi={})),new Vl;var pi;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(pi||(pi={}));var bi;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(bi||(bi={}));var vi;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(vi||(vi={}));var xi;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(xi||(xi={}));var yi;(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"})(yi||(yi={}));var _i;(function(e){e[e.Deprecated=1]="Deprecated"})(_i||(_i={}));var wi;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(wi||(wi={}));var Li;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(Li||(Li={}));var Ni;(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"})(Ni||(Ni={}));var Si;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Si||(Si={}));var Ai;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Ai||(Ai={}));var ki;(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"})(ki||(ki={}));var Ri;(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"})(Ri||(Ri={}));var Ei;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Ei||(Ei={}));var Mi;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(Mi||(Mi={}));var Ci;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(Ci||(Ci={}));var Ti;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(Ti||(Ti={}));var Pi;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(Pi||(Pi={}));var Ii;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Ii||(Ii={}));var Fi;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Fi||(Fi={}));var Vi;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(Vi||(Vi={}));var Di;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Di||(Di={}));var Gn;(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"})(Gn||(Gn={}));var Jn;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(Jn||(Jn={}));var Xn;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(Xn||(Xn={}));var Oi;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(Oi||(Oi={}));var Bi;(function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"})(Bi||(Bi={}));var Ui;(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"})(Ui||(Ui={}));var $i;(function(e){e[e.AIGenerated=1]="AIGenerated"})($i||($i={}));var qi;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(qi||(qi={}));var ji;(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"})(ji||(ji={}));var Wi;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(Wi||(Wi={}));var Hi;(function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"})(Hi||(Hi={}));var zi;(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"})(zi||(zi={}));var Gi;(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"})(Gi||(Gi={}));var Ji;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(Ji||(Ji={}));var Xi;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(Xi||(Xi={}));var Qi;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(Qi||(Qi={}));var Qn;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(Qn||(Qn={}));var Zi;(function(e){e.Off="off",e.OnCode="onCode",e.On="on"})(Zi||(Zi={}));var Yi;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(Yi||(Yi={}));var Ki;(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"})(Ki||(Ki={}));var es;(function(e){e[e.Deprecated=1]="Deprecated"})(es||(es={}));var ts;(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"})(ts||(ts={}));var ns;(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"})(ns||(ns={}));var rs;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(rs||(rs={}));var is;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(is||(is={}));class Ft{static chord(t,n){return Pl(t,n)}}Ft.CtrlCmd=2048,Ft.Shift=1024,Ft.Alt=512,Ft.WinCtrl=256;function Bl(){return{editor:void 0,languages:void 0,CancellationTokenSource:El,Emitter:_e,KeyCode:Gn,KeyMod:Ft,Position:Ce,Range:X,Selection:de,SelectionDirection:Qn,MarkerSeverity:Jn,MarkerTag:Xn,Uri:Dn,Token:Ol}}var ss;class Ul{constructor(){this[ss]="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){const 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){const 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");const t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){const r=this._state;let 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(){const t=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.key,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}values(){const t=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.value,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}entries(){const t=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:[r.key,r.value],done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}[(ss=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{const 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;const 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;const 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(){const t=[];return this.forEach((n,r)=>{t.push([r,n])}),t}fromJSON(t){this.clear();for(const[n,r]of t)this.set(n,r)}}class $l extends Ul{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))}}class ql extends $l{constructor(t,n=1){super(t,n)}trim(t){this.trimOld(t)}set(t,n){return super.set(t,n),this.checkTrim(),this}}class jl{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){const r=this.map.get(t);r&&(r.delete(n),r.size===0&&this.map.delete(t))}forEach(t,n){const r=this.map.get(t);r&&r.forEach(n)}get(t){const n=this.map.get(t);return n||new Set}}new ql(10);var as;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(as||(as={}));var os;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(os||(os={}));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 Wl(e,t,n,r,i){if(r===0)return!0;const s=t.charCodeAt(r-1);if(e.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=t.charCodeAt(r);if(e.get(a)!==0)return!0}return!1}function Hl(e,t,n,r,i){if(r+i===n)return!0;const s=t.charCodeAt(r+i);if(e.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=t.charCodeAt(r+i-1);if(e.get(a)!==0)return!0}return!1}function zl(e,t,n,r,i){return Wl(e,t,n,r,i)&&Hl(e,t,n,r,i)}class Gl{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){const n=t.length;let r;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(r=this._searchRegex.exec(t),!r))return null;const i=r.index,s=r[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){Vo(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||zl(this._wordSeparators,t,n,i,s))return r}while(r);return null}}function Jl(e,t="Unreachable"){throw new Error(t)}function un(e){if(!e()){debugger;e(),Re(new Ee("Assertion Failed"))}}function us(e,t){let n=0;for(;n<e.length-1;){const r=e[n],i=e[n+1];if(!t(r,i))return!1;n++}return!0}class Xl{static computeUnicodeHighlights(t,n,r){const i=r?r.startLineNumber:1,s=r?r.endLineNumber:t.getLineCount(),a=new cs(n),l=a.getCandidateCodePoints();let o;l==="allNonBasicAscii"?o=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):o=new RegExp(`${Ql(Array.from(l))}`,"g");const u=new Gl(null,o),h=[];let f=!1,d,m=0,g=0,p=0;e:for(let x=i,_=s;x<=_;x++){const S=t.getLineContent(x),b=S.length;u.reset(0);do if(d=u.next(S),d){let w=d.index,v=d.index+d[0].length;if(w>0){const P=S.charCodeAt(w-1);In(P)&&w--}if(v+1<b){const P=S.charCodeAt(v-1);In(P)&&v++}const L=S.substring(w,v);let R=Un(w+1,Kr,S,0);R&&R.endColumn<=w+1&&(R=null);const C=a.shouldHighlightNonBasicASCII(L,R?R.word:null);if(C!==0){if(C===3?m++:C===2?g++:C===1?p++:Jl(),h.length>=1e3){f=!0;break e}h.push(new X(x,w+1,x,v+1))}}while(d)}return{ranges:h,hasMore:f,ambiguousCharacterCount:m,invisibleCharacterCount:g,nonBasicAsciiCharacterCount:p}}static computeUnicodeHighlightReason(t,n){const r=new cs(n);switch(r.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=t.codePointAt(0),a=r.ambiguousCharacters.getPrimaryConfusable(s),l=nt.getLocales().filter(o=>!nt.getInstance(new Set([...n.allowedLocales,o])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:l}}case 1:return{kind:2}}}}function Ql(e,t){return`[${Mo(e.map(r=>String.fromCodePoint(r)).join(""))}]`}class cs{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=nt.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const t=new Set;if(this.options.invisibleCharacters)for(const n of $e.codePoints)fs(String.fromCodePoint(n))||t.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())t.add(n);for(const n of this.allowedCodePoints)t.delete(n);return t}shouldHighlightNonBasicASCII(t,n){const 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(const a of n){const l=a.codePointAt(0),o=Oo(a);i=i||o,!o&&!this.ambiguousCharacters.isAmbiguous(l)&&!$e.isInvisibleCharacter(l)&&(s=!0)}return!i&&s?0:this.options.invisibleCharacters&&!fs(t)&&$e.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}}function fs(e){return e===" "||e===` +`||e===" "}class cn{constructor(t,n,r){this.changes=t,this.moves=n,this.hitTimeout=r}}class Zl{constructor(t,n){this.lineRangeMapping=t,this.changes=n}}class ${static addRange(t,n){let r=0;for(;r<n.length&&n[r].endExclusive<t.start;)r++;let i=r;for(;i<n.length&&n[i].start<=t.endExclusive;)i++;if(r===i)n.splice(r,0,t);else{const s=Math.min(t.start,n[r].start),a=Math.max(t.endExclusive,n[i-1].endExclusive);n.splice(r,i-r,new $(s,a))}}static tryCreate(t,n){if(!(t>n))return new $(t,n)}static ofLength(t){return new $(0,t)}static ofStartAndLength(t,n){return new $(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 $(this.start+t,this.endExclusive+t)}deltaStart(t){return new $(this.start+t,this.endExclusive)}deltaEnd(t){return new $(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<this.endExclusive}join(t){return new $(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){const n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);if(n<=r)return new $(n,r)}intersects(t){const n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);return n<r}isBefore(t){return this.endExclusive<=t.start}isAfter(t){return this.start>=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.start?this.endExclusive-(this.start-t)%this.length:t>=this.endExclusive?this.start+(t-this.start)%this.length:t}forEach(t){for(let n=this.start;n<this.endExclusive;n++)t(n)}}function yt(e,t){const n=Vt(e,t);return n===-1?void 0:e[n]}function Vt(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const a=Math.floor((i+s)/2);t(e[a])?i=a+1:s=a}return i-1}function Yl(e,t){const n=Zn(e,t);return n===e.length?void 0:e[n]}function Zn(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const a=Math.floor((i+s)/2);t(e[a])?s=a:i=a+1}return i}class Dt{constructor(t){this._array=t,this._findLastMonotonousLastIdx=0}findLastMonotonous(t){if(Dt.assertInvariants){if(this._prevFindLastPredicate){for(const r of this._array)if(this._prevFindLastPredicate(r)&&!t(r))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=t}const n=Vt(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}}Dt.assertInvariants=!1;class B{static fromRangeInclusive(t){return new B(t.startLineNumber,t.endLineNumber+1)}static joinMany(t){if(t.length===0)return[];let n=new Te(t[0].slice());for(let r=1;r<t.length;r++)n=n.getUnion(new Te(t[r].slice()));return n.ranges}static join(t){if(t.length===0)throw new Ee("lineRanges cannot be empty");let n=t[0].startLineNumber,r=t[0].endLineNumberExclusive;for(let i=1;i<t.length;i++)n=Math.min(n,t[i].startLineNumber),r=Math.max(r,t[i].endLineNumberExclusive);return new B(n,r)}static ofLength(t,n){return new B(t,t+n)}static deserialize(t){return new B(t[0],t[1])}constructor(t,n){if(t>n)throw new Ee(`startLineNumber ${t} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=t,this.endLineNumberExclusive=n}contains(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(t){return new B(this.startLineNumber+t,this.endLineNumberExclusive+t)}deltaLength(t){return new B(this.startLineNumber,this.endLineNumberExclusive+t)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(t){return new B(Math.min(this.startLineNumber,t.startLineNumber),Math.max(this.endLineNumberExclusive,t.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(t){const n=Math.max(this.startLineNumber,t.startLineNumber),r=Math.min(this.endLineNumberExclusive,t.endLineNumberExclusive);if(n<=r)return new B(n,r)}intersectsStrict(t){return this.startLineNumber<t.endLineNumberExclusive&&t.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(t){return this.startLineNumber<=t.endLineNumberExclusive&&t.startLineNumber<=this.endLineNumberExclusive}equals(t){return this.startLineNumber===t.startLineNumber&&this.endLineNumberExclusive===t.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new X(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new X(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(t){const n=[];for(let r=this.startLineNumber;r<this.endLineNumberExclusive;r++)n.push(t(r));return n}forEach(t){for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t(n)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}toOffsetRange(){return new $(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class Te{constructor(t=[]){this._normalizedRanges=t}get ranges(){return this._normalizedRanges}addRange(t){if(t.length===0)return;const n=Zn(this._normalizedRanges,i=>i.endLineNumberExclusive>=t.startLineNumber),r=Vt(this._normalizedRanges,i=>i.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)this._normalizedRanges.splice(n,0,t);else if(n===r-1){const i=this._normalizedRanges[n];this._normalizedRanges[n]=i.join(t)}else{const i=this._normalizedRanges[n].join(this._normalizedRanges[r-1]).join(t);this._normalizedRanges.splice(n,r-n,i)}}contains(t){const n=yt(this._normalizedRanges,r=>r.startLineNumber<=t);return!!n&&n.endLineNumberExclusive>t}intersects(t){const n=yt(this._normalizedRanges,r=>r.startLineNumber<t.endLineNumberExclusive);return!!n&&n.endLineNumberExclusive>t.startLineNumber}getUnion(t){if(this._normalizedRanges.length===0)return t;if(t._normalizedRanges.length===0)return this;const n=[];let r=0,i=0,s=null;for(;r<this._normalizedRanges.length||i<t._normalizedRanges.length;){let a=null;if(r<this._normalizedRanges.length&&i<t._normalizedRanges.length){const l=this._normalizedRanges[r],o=t._normalizedRanges[i];l.startLineNumber<o.startLineNumber?(a=l,r++):(a=o,i++)}else r<this._normalizedRanges.length?(a=this._normalizedRanges[r],r++):(a=t._normalizedRanges[i],i++);s===null?s=a:s.endLineNumberExclusive>=a.startLineNumber?s=new B(s.startLineNumber,Math.max(s.endLineNumberExclusive,a.endLineNumberExclusive)):(n.push(s),s=a)}return s!==null&&n.push(s),new Te(n)}subtractFrom(t){const n=Zn(this._normalizedRanges,a=>a.endLineNumberExclusive>=t.startLineNumber),r=Vt(this._normalizedRanges,a=>a.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)return new Te([t]);const i=[];let s=t.startLineNumber;for(let a=n;a<r;a++){const l=this._normalizedRanges[a];l.startLineNumber>s&&i.push(new B(s,l.startLineNumber)),s=l.endLineNumberExclusive}return s<t.endLineNumberExclusive&&i.push(new B(s,t.endLineNumberExclusive)),new Te(i)}toString(){return this._normalizedRanges.map(t=>t.toString()).join(", ")}getIntersection(t){const n=[];let r=0,i=0;for(;r<this._normalizedRanges.length&&i<t._normalizedRanges.length;){const s=this._normalizedRanges[r],a=t._normalizedRanges[i],l=s.intersect(a);l&&!l.isEmpty&&n.push(l),s.endLineNumberExclusive<a.endLineNumberExclusive?r++:i++}return new Te(n)}getWithDelta(t){return new Te(this._normalizedRanges.map(n=>n.delta(t)))}}class Kl{constructor(t,n){this.range=t,this.text=n}}class Ne{static inverse(t,n,r){const i=[];let s=1,a=1;for(const o of t){const u=new Ne(new B(s,o.original.startLineNumber),new B(a,o.modified.startLineNumber));u.modified.isEmpty||i.push(u),s=o.original.endLineNumberExclusive,a=o.modified.endLineNumberExclusive}const l=new Ne(new B(s,n+1),new B(a,r+1));return l.modified.isEmpty||i.push(l),i}static clip(t,n,r){const i=[];for(const s of t){const a=s.original.intersect(n),l=s.modified.intersect(r);a&&!a.isEmpty&&l&&!l.isEmpty&&i.push(new Ne(a,l))}return i}constructor(t,n){this.original=t,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Ne(this.modified,this.original)}join(t){return new Ne(this.original.join(t.original),this.modified.join(t.modified))}toRangeMapping(){const t=this.original.toInclusiveRange(),n=this.modified.toInclusiveRange();if(t&&n)return new Je(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 Je(new X(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new X(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new Je(new X(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new X(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}}class De extends Ne{static fromRangeMappings(t){const n=B.join(t.map(i=>B.fromRangeInclusive(i.originalRange))),r=B.join(t.map(i=>B.fromRangeInclusive(i.modifiedRange)));return new De(n,r,t)}constructor(t,n,r){super(t,n),this.innerChanges=r}flip(){var t;return new De(this.modified,this.original,(t=this.innerChanges)===null||t===void 0?void 0:t.map(n=>n.flip()))}withInnerChangesFromLineRanges(){return new De(this.original,this.modified,[this.toRangeMapping()])}}class Je{constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Je(this.modifiedRange,this.originalRange)}toTextEdit(t){const n=t.getValueOfRange(this.modifiedRange);return new Kl(this.originalRange,n)}}const eu=3;class tu{computeDiff(t,n,r){var i;const a=new iu(t,n,{maxComputationTime:r.maxComputationTimeMs,shouldIgnoreTrimWhitespace:r.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),l=[];let o=null;for(const u of a.changes){let h;u.originalEndLineNumber===0?h=new B(u.originalStartLineNumber+1,u.originalStartLineNumber+1):h=new B(u.originalStartLineNumber,u.originalEndLineNumber+1);let f;u.modifiedEndLineNumber===0?f=new B(u.modifiedStartLineNumber+1,u.modifiedStartLineNumber+1):f=new B(u.modifiedStartLineNumber,u.modifiedEndLineNumber+1);let d=new De(h,f,(i=u.charChanges)===null||i===void 0?void 0:i.map(m=>new Je(new X(m.originalStartLineNumber,m.originalStartColumn,m.originalEndLineNumber,m.originalEndColumn),new X(m.modifiedStartLineNumber,m.modifiedStartColumn,m.modifiedEndLineNumber,m.modifiedEndColumn))));o&&(o.modified.endLineNumberExclusive===d.modified.startLineNumber||o.original.endLineNumberExclusive===d.original.startLineNumber)&&(d=new De(o.original.join(d.original),o.modified.join(d.modified),o.innerChanges&&d.innerChanges?o.innerChanges.concat(d.innerChanges):void 0),l.pop()),l.push(d),o=d}return un(()=>us(l,(u,h)=>h.original.startLineNumber-u.original.endLineNumberExclusive===h.modified.startLineNumber-u.modified.endLineNumberExclusive&&u.original.endLineNumberExclusive<h.original.startLineNumber&&u.modified.endLineNumberExclusive<h.modified.startLineNumber)),new cn(l,[],a.quitEarly)}}function hs(e,t,n,r){return new je(e,t,n).ComputeDiff(r)}let ds=class{constructor(t){const n=[],r=[];for(let i=0,s=t.length;i<s;i++)n[i]=Yn(t[i],1),r[i]=Kn(t[i],1);this.lines=t,this._startColumns=n,this._endColumns=r}getElements(){const t=[];for(let n=0,r=this.lines.length;n<r;n++)t[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return t}getStrictElement(t){return this.lines[t]}getStartLineNumber(t){return t+1}getEndLineNumber(t){return t+1}createCharSequence(t,n,r){const i=[],s=[],a=[];let l=0;for(let o=n;o<=r;o++){const u=this.lines[o],h=t?this._startColumns[o]:1,f=t?this._endColumns[o]:u.length+1;for(let d=h;d<f;d++)i[l]=u.charCodeAt(d-1),s[l]=o+1,a[l]=d,l++;!t&&o<r&&(i[l]=10,s[l]=o+1,a[l]=u.length+1,l++)}return new nu(i,s,a)}};class nu{constructor(t,n,r){this._charCodes=t,this._lineNumbers=n,this._columns=r}toString(){return"["+this._charCodes.map((t,n)=>(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)}}class _t{constructor(t,n,r,i,s,a,l,o){this.originalStartLineNumber=t,this.originalStartColumn=n,this.originalEndLineNumber=r,this.originalEndColumn=i,this.modifiedStartLineNumber=s,this.modifiedStartColumn=a,this.modifiedEndLineNumber=l,this.modifiedEndColumn=o}static createFromDiffChange(t,n,r){const 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),o=r.getStartLineNumber(t.modifiedStart),u=r.getStartColumn(t.modifiedStart),h=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),f=r.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new _t(i,s,a,l,o,u,h,f)}}function ru(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,i=e.length;r<i;r++){const s=e[r],a=s.originalStart-(n.originalStart+n.originalLength),l=s.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(a,l)<eu?(n.originalLength=s.originalStart+s.originalLength-n.originalStart,n.modifiedLength=s.modifiedStart+s.modifiedLength-n.modifiedStart):(t.push(s),n=s)}return t}class Ot{constructor(t,n,r,i,s){this.originalStartLineNumber=t,this.originalEndLineNumber=n,this.modifiedStartLineNumber=r,this.modifiedEndLineNumber=i,this.charChanges=s}static createFromDiffResult(t,n,r,i,s,a,l){let o,u,h,f,d;if(n.originalLength===0?(o=r.getStartLineNumber(n.originalStart)-1,u=0):(o=r.getStartLineNumber(n.originalStart),u=r.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(h=i.getStartLineNumber(n.modifiedStart)-1,f=0):(h=i.getStartLineNumber(n.modifiedStart),f=i.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),a&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){const m=r.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),g=i.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(m.getElements().length>0&&g.getElements().length>0){let p=hs(m,g,s,!0).changes;l&&(p=ru(p)),d=[];for(let x=0,_=p.length;x<_;x++)d.push(_t.createFromDiffChange(p[x],m,g))}}return new Ot(o,u,h,f,d)}}class iu{constructor(t,n,r){this.shouldComputeCharChanges=r.shouldComputeCharChanges,this.shouldPostProcessCharChanges=r.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=r.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=r.shouldMakePrettyDiff,this.originalLines=t,this.modifiedLines=n,this.original=new ds(t),this.modified=new ds(n),this.continueLineDiff=ms(r.maxComputationTime),this.continueCharDiff=ms(r.maxComputationTime===0?0:Math.min(r.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const t=hs(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=t.changes,r=t.quitEarly;if(this.shouldIgnoreTrimWhitespace){const l=[];for(let o=0,u=n.length;o<u;o++)l.push(Ot.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[o],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:r,changes:l}}const i=[];let s=0,a=0;for(let l=-1,o=n.length;l<o;l++){const u=l+1<o?n[l+1]:null,h=u?u.originalStart:this.originalLines.length,f=u?u.modifiedStart:this.modifiedLines.length;for(;s<h&&a<f;){const d=this.originalLines[s],m=this.modifiedLines[a];if(d!==m){{let g=Yn(d,1),p=Yn(m,1);for(;g>1&&p>1;){const x=d.charCodeAt(g-2),_=m.charCodeAt(p-2);if(x!==_)break;g--,p--}(g>1||p>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,g,a+1,1,p)}{let g=Kn(d,1),p=Kn(m,1);const x=d.length+1,_=m.length+1;for(;g<x&&p<_;){const S=d.charCodeAt(g-1),b=d.charCodeAt(p-1);if(S!==b)break;g++,p++}(g<x||p<_)&&this._pushTrimWhitespaceCharChange(i,s+1,g,x,a+1,p,_)}}s++,a++}u&&(i.push(Ot.createFromDiffResult(this.shouldIgnoreTrimWhitespace,u,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=u.originalLength,a+=u.modifiedLength)}return{quitEarly:r,changes:i}}_pushTrimWhitespaceCharChange(t,n,r,i,s,a,l){if(this._mergeTrimWhitespaceCharChange(t,n,r,i,s,a,l))return;let o;this.shouldComputeCharChanges&&(o=[new _t(n,r,n,i,s,a,s,l)]),t.push(new Ot(n,n,s,s,o))}_mergeTrimWhitespaceCharChange(t,n,r,i,s,a,l){const o=t.length;if(o===0)return!1;const u=t[o-1];return u.originalEndLineNumber===0||u.modifiedEndLineNumber===0?!1:u.originalEndLineNumber===n&&u.modifiedEndLineNumber===s?(this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new _t(n,r,n,i,s,a,s,l)),!0):u.originalEndLineNumber+1===n&&u.modifiedEndLineNumber+1===s?(u.originalEndLineNumber=n,u.modifiedEndLineNumber=s,this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new _t(n,r,n,i,s,a,s,l)),!0):!1}}function Yn(e,t){const n=To(e);return n===-1?t:n+1}function Kn(e,t){const n=Po(e);return n===-1?t:n+2}function ms(e){if(e===0)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}class Oe{static trivial(t,n){return new Oe([new Q($.ofLength(t.length),$.ofLength(n.length))],!1)}static trivialTimedOut(t,n){return new Oe([new Q($.ofLength(t.length),$.ofLength(n.length))],!0)}constructor(t,n){this.diffs=t,this.hitTimeout=n}}class Q{static invert(t,n){const r=[];return ml(t,(i,s)=>{r.push(Q.fromOffsetPairs(i?i.getEndExclusives():me.zero,s?s.getStarts():new me(n,(i?i.seq2Range.endExclusive-i.seq1Range.endExclusive:0)+n)))}),r}static fromOffsetPairs(t,n){return new Q(new $(t.offset1,n.offset1),new $(t.offset2,n.offset2))}constructor(t,n){this.seq1Range=t,this.seq2Range=n}swap(){return new Q(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new Q(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new Q(this.seq1Range.delta(t),this.seq2Range.delta(t))}deltaStart(t){return t===0?this:new Q(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))}deltaEnd(t){return t===0?this:new Q(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))}intersect(t){const n=this.seq1Range.intersect(t.seq1Range),r=this.seq2Range.intersect(t.seq2Range);if(!(!n||!r))return new Q(n,r)}getStarts(){return new me(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new me(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class me{constructor(t,n){this.offset1=t,this.offset2=n}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(t){return t===0?this:new me(this.offset1+t,this.offset2+t)}equals(t){return this.offset1===t.offset1&&this.offset2===t.offset2}}me.zero=new me(0,0),me.max=new me(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class Bt{isValid(){return!0}}Bt.instance=new Bt;class su{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.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}}class er{constructor(t,n){this.width=t,this.height=n,this.array=[],this.array=new Array(t*n)}get(t,n){return this.array[t+n*this.width]}set(t,n,r){this.array[t+n*this.width]=r}}function tr(e){return e===32||e===9}class wt{static getKey(t){let n=this.chrKeys.get(t);return n===void 0&&(n=this.chrKeys.size,this.chrKeys.set(t,n)),n}constructor(t,n,r){this.range=t,this.lines=n,this.source=r,this.histogram=[];let i=0;for(let s=t.startLineNumber-1;s<t.endLineNumberExclusive-1;s++){const a=n[s];for(let o=0;o<a.length;o++){i++;const u=a[o],h=wt.getKey(u);this.histogram[h]=(this.histogram[h]||0)+1}i++;const l=wt.getKey(` +`);this.histogram[l]=(this.histogram[l]||0)+1}this.totalCount=i}computeSimilarity(t){var n,r;let i=0;const s=Math.max(this.histogram.length,t.histogram.length);for(let a=0;a<s;a++)i+=Math.abs(((n=this.histogram[a])!==null&&n!==void 0?n:0)-((r=t.histogram[a])!==null&&r!==void 0?r:0));return 1-i/(this.totalCount+t.totalCount)}}wt.chrKeys=new Map;class au{compute(t,n,r=Bt.instance,i){if(t.length===0||n.length===0)return Oe.trivial(t,n);const s=new er(t.length,n.length),a=new er(t.length,n.length),l=new er(t.length,n.length);for(let g=0;g<t.length;g++)for(let p=0;p<n.length;p++){if(!r.isValid())return Oe.trivialTimedOut(t,n);const x=g===0?0:s.get(g-1,p),_=p===0?0:s.get(g,p-1);let S;t.getElement(g)===n.getElement(p)?(g===0||p===0?S=0:S=s.get(g-1,p-1),g>0&&p>0&&a.get(g-1,p-1)===3&&(S+=l.get(g-1,p-1)),S+=i?i(g,p):1):S=-1;const b=Math.max(x,_,S);if(b===S){const w=g>0&&p>0?l.get(g-1,p-1):0;l.set(g,p,w+1),a.set(g,p,3)}else b===x?(l.set(g,p,0),a.set(g,p,1)):b===_&&(l.set(g,p,0),a.set(g,p,2));s.set(g,p,b)}const o=[];let u=t.length,h=n.length;function f(g,p){(g+1!==u||p+1!==h)&&o.push(new Q(new $(g+1,u),new $(p+1,h))),u=g,h=p}let d=t.length-1,m=n.length-1;for(;d>=0&&m>=0;)a.get(d,m)===3?(f(d,m),d--,m--):a.get(d,m)===1?d--:m--;return f(-1,-1),o.reverse(),new Oe(o,!1)}}class gs{compute(t,n,r=Bt.instance){if(t.length===0||n.length===0)return Oe.trivial(t,n);const i=t,s=n;function a(p,x){for(;p<i.length&&x<s.length&&i.getElement(p)===s.getElement(x);)p++,x++;return p}let l=0;const o=new ou;o.set(0,a(0,0));const u=new lu;u.set(0,o.get(0)===0?null:new ps(null,0,0,o.get(0)));let h=0;e:for(;;){if(l++,!r.isValid())return Oe.trivialTimedOut(i,s);const p=-Math.min(l,s.length+l%2),x=Math.min(l,i.length+l%2);for(h=p;h<=x;h+=2){const _=h===x?-1:o.get(h+1),S=h===p?-1:o.get(h-1)+1,b=Math.min(Math.max(_,S),i.length),w=b-h;if(b>i.length||w>s.length)continue;const v=a(b,w);o.set(h,v);const L=b===_?u.get(h+1):u.get(h-1);if(u.set(h,v!==b?new ps(L,b,w,v-b):L),o.get(h)===i.length&&o.get(h)-h===s.length)break e}}let f=u.get(h);const d=[];let m=i.length,g=s.length;for(;;){const p=f?f.x+f.length:0,x=f?f.y+f.length:0;if((p!==m||x!==g)&&d.push(new Q(new $(p,m),new $(x,g))),!f)break;m=f.x,g=f.y,f=f.prev}return d.reverse(),new Oe(d,!1)}}class ps{constructor(t,n,r,i){this.prev=t,this.x=n,this.y=r,this.length=i}}class ou{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){const r=this.negativeArr;this.negativeArr=new Int32Array(r.length*2),this.negativeArr.set(r)}this.negativeArr[t]=n}else{if(t>=this.positiveArr.length){const r=this.positiveArr;this.positiveArr=new Int32Array(r.length*2),this.positiveArr.set(r)}this.positiveArr[t]=n}}}class lu{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}}class fn{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 $(n.start-1,n.endExclusive),i=!0),this.lineRange=n,this.firstCharOffsetByLine[0]=0;for(let s=this.lineRange.start;s<this.lineRange.endExclusive;s++){let a=t[s],l=0;if(i)l=a.length,a="",i=!1;else if(!r){const o=a.trimStart();l=a.length-o.length,a=o.trimEnd()}this.additionalOffsetByLine.push(l);for(let o=0;o<a.length;o++)this.elements.push(a.charCodeAt(o));s<t.length-1&&(this.elements.push(10),this.firstCharOffsetByLine[s-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new $(0,this.length))}getText(t){return this.elements.slice(t.start,t.endExclusive).map(n=>String.fromCharCode(n)).join("")}getElement(t){return this.elements[t]}get length(){return this.elements.length}getBoundaryScore(t){const n=vs(t>0?this.elements[t-1]:-1),r=vs(t<this.elements.length?this.elements[t]:-1);if(n===7&&r===8)return 0;if(n===8)return 150;let i=0;return n!==r&&(i+=10,n===0&&r===1&&(i+=1)),i+=bs(n),i+=bs(r),i}translateOffset(t){if(this.lineRange.isEmpty)return new Ce(this.lineRange.start+1,1);const n=Vt(this.firstCharOffsetByLine,r=>r<=t);return new Ce(this.lineRange.start+n+1,t-this.firstCharOffsetByLine[n]+this.additionalOffsetByLine[n]+1)}translateRange(t){return X.fromPositions(this.translateOffset(t.start),this.translateOffset(t.endExclusive))}findWordContaining(t){if(t<0||t>=this.elements.length||!nr(this.elements[t]))return;let n=t;for(;n>0&&nr(this.elements[n-1]);)n--;let r=t;for(;r<this.elements.length&&nr(this.elements[r]);)r++;return new $(n,r)}countLinesIn(t){return this.translateOffset(t.endExclusive).lineNumber-this.translateOffset(t.start).lineNumber}isStronglyEqual(t,n){return this.elements[t]===this.elements[n]}extendToFullLines(t){var n,r;const i=(n=yt(this.firstCharOffsetByLine,a=>a<=t.start))!==null&&n!==void 0?n:0,s=(r=Yl(this.firstCharOffsetByLine,a=>t.endExclusive<=a))!==null&&r!==void 0?r:this.elements.length;return new $(i,s)}}function nr(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const uu={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function bs(e){return uu[e]}function vs(e){return e===10?8:e===13?7:tr(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 cu(e,t,n,r,i,s){let{moves:a,excludedChanges:l}=hu(e,t,n,s);if(!s.isValid())return[];const o=e.filter(h=>!l.has(h)),u=du(o,r,i,t,n,s);return pl(a,u),a=mu(a),a=a.filter(h=>{const f=h.original.toOffsetRange().slice(t).map(m=>m.trim());return f.join(` +`).length>=15&&fu(f,m=>m.length>=2)>=2}),a=gu(e,a),a}function fu(e,t){let n=0;for(const r of e)t(r)&&n++;return n}function hu(e,t,n,r){const i=[],s=e.filter(o=>o.modified.isEmpty&&o.original.length>=3).map(o=>new wt(o.original,t,o)),a=new Set(e.filter(o=>o.original.isEmpty&&o.modified.length>=3).map(o=>new wt(o.modified,n,o))),l=new Set;for(const o of s){let u=-1,h;for(const f of a){const d=o.computeSimilarity(f);d>u&&(u=d,h=f)}if(u>.9&&h&&(a.delete(h),i.push(new Ne(o.range,h.range)),l.add(o.source),l.add(h.source)),!r.isValid())return{moves:i,excludedChanges:l}}return{moves:i,excludedChanges:l}}function du(e,t,n,r,i,s){const a=[],l=new jl;for(const d of e)for(let m=d.original.startLineNumber;m<d.original.endLineNumberExclusive-2;m++){const g=`${t[m-1]}:${t[m+1-1]}:${t[m+2-1]}`;l.add(g,{range:new B(m,m+3)})}const o=[];e.sort(nn(d=>d.modified.startLineNumber,rn));for(const d of e){let m=[];for(let g=d.modified.startLineNumber;g<d.modified.endLineNumberExclusive-2;g++){const p=`${n[g-1]}:${n[g+1-1]}:${n[g+2-1]}`,x=new B(g,g+3),_=[];l.forEach(p,({range:S})=>{for(const w of m)if(w.originalLineRange.endLineNumberExclusive+1===S.endLineNumberExclusive&&w.modifiedLineRange.endLineNumberExclusive+1===x.endLineNumberExclusive){w.originalLineRange=new B(w.originalLineRange.startLineNumber,S.endLineNumberExclusive),w.modifiedLineRange=new B(w.modifiedLineRange.startLineNumber,x.endLineNumberExclusive),_.push(w);return}const b={modifiedLineRange:x,originalLineRange:S};o.push(b),_.push(b)}),m=_}if(!s.isValid())return[]}o.sort(bl(nn(d=>d.modifiedLineRange.length,rn)));const u=new Te,h=new Te;for(const d of o){const m=d.modifiedLineRange.startLineNumber-d.originalLineRange.startLineNumber,g=u.subtractFrom(d.modifiedLineRange),p=h.subtractFrom(d.originalLineRange).getWithDelta(m),x=g.getIntersection(p);for(const _ of x.ranges){if(_.length<3)continue;const S=_,b=_.delta(-m);a.push(new Ne(b,S)),u.addRange(S),h.addRange(b)}}a.sort(nn(d=>d.original.startLineNumber,rn));const f=new Dt(e);for(let d=0;d<a.length;d++){const m=a[d],g=f.findLastMonotonous(L=>L.original.startLineNumber<=m.original.startLineNumber),p=yt(e,L=>L.modified.startLineNumber<=m.modified.startLineNumber),x=Math.max(m.original.startLineNumber-g.original.startLineNumber,m.modified.startLineNumber-p.modified.startLineNumber),_=f.findLastMonotonous(L=>L.original.startLineNumber<m.original.endLineNumberExclusive),S=yt(e,L=>L.modified.startLineNumber<m.modified.endLineNumberExclusive),b=Math.max(_.original.endLineNumberExclusive-m.original.endLineNumberExclusive,S.modified.endLineNumberExclusive-m.modified.endLineNumberExclusive);let w;for(w=0;w<x;w++){const L=m.original.startLineNumber-w-1,R=m.modified.startLineNumber-w-1;if(L>r.length||R>i.length||u.contains(R)||h.contains(L)||!xs(r[L-1],i[R-1],s))break}w>0&&(h.addRange(new B(m.original.startLineNumber-w,m.original.startLineNumber)),u.addRange(new B(m.modified.startLineNumber-w,m.modified.startLineNumber)));let v;for(v=0;v<b;v++){const L=m.original.endLineNumberExclusive+v,R=m.modified.endLineNumberExclusive+v;if(L>r.length||R>i.length||u.contains(R)||h.contains(L)||!xs(r[L-1],i[R-1],s))break}v>0&&(h.addRange(new B(m.original.endLineNumberExclusive,m.original.endLineNumberExclusive+v)),u.addRange(new B(m.modified.endLineNumberExclusive,m.modified.endLineNumberExclusive+v))),(w>0||v>0)&&(a[d]=new Ne(new B(m.original.startLineNumber-w,m.original.endLineNumberExclusive+v),new B(m.modified.startLineNumber-w,m.modified.endLineNumberExclusive+v)))}return a}function xs(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const i=new gs().compute(new fn([e],new $(0,1),!1),new fn([t],new $(0,1),!1),n);let s=0;const a=Q.invert(i.diffs,e.length);for(const h of a)h.seq1Range.forEach(f=>{tr(e.charCodeAt(f))||s++});function l(h){let f=0;for(let d=0;d<e.length;d++)tr(h.charCodeAt(d))||f++;return f}const o=l(e.length>t.length?e:t);return s/o>.6&&o>10}function mu(e){if(e.length===0)return e;e.sort(nn(n=>n.original.startLineNumber,rn));const t=[e[0]];for(let n=1;n<e.length;n++){const r=t[t.length-1],i=e[n],s=i.original.startLineNumber-r.original.endLineNumberExclusive,a=i.modified.startLineNumber-r.modified.endLineNumberExclusive;if(s>=0&&a>=0&&s+a<=2){t[t.length-1]=r.join(i);continue}t.push(i)}return t}function gu(e,t){const n=new Dt(e);return t=t.filter(r=>{const i=n.findLastMonotonous(l=>l.original.startLineNumber<r.original.endLineNumberExclusive)||new Ne(new B(1,1),new B(1,1)),s=yt(e,l=>l.modified.startLineNumber<r.modified.endLineNumberExclusive);return i!==s}),t}function ys(e,t,n){let r=n;return r=_s(e,t,r),r=_s(e,t,r),r=pu(e,t,r),r}function _s(e,t,n){if(n.length===0)return n;const r=[];r.push(n[0]);for(let s=1;s<n.length;s++){const a=r[r.length-1];let l=n[s];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const o=l.seq1Range.start-a.seq1Range.endExclusive;let u;for(u=1;u<=o&&!(e.getElement(l.seq1Range.start-u)!==e.getElement(l.seq1Range.endExclusive-u)||t.getElement(l.seq2Range.start-u)!==t.getElement(l.seq2Range.endExclusive-u));u++);if(u--,u===o){r[r.length-1]=new Q(new $(a.seq1Range.start,l.seq1Range.endExclusive-o),new $(a.seq2Range.start,l.seq2Range.endExclusive-o));continue}l=l.delta(-u)}r.push(l)}const i=[];for(let s=0;s<r.length-1;s++){const a=r[s+1];let l=r[s];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const o=a.seq1Range.start-l.seq1Range.endExclusive;let u;for(u=0;u<o&&!(!e.isStronglyEqual(l.seq1Range.start+u,l.seq1Range.endExclusive+u)||!t.isStronglyEqual(l.seq2Range.start+u,l.seq2Range.endExclusive+u));u++);if(u===o){r[s+1]=new Q(new $(l.seq1Range.start+o,a.seq1Range.endExclusive),new $(l.seq2Range.start+o,a.seq2Range.endExclusive));continue}u>0&&(l=l.delta(u))}i.push(l)}return r.length>0&&i.push(r[r.length-1]),i}function pu(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){const i=r>0?n[r-1]:void 0,s=n[r],a=r+1<n.length?n[r+1]:void 0,l=new $(i?i.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:e.length),o=new $(i?i.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:t.length);s.seq1Range.isEmpty?n[r]=ws(s,e,t,l,o):s.seq2Range.isEmpty&&(n[r]=ws(s.swap(),t,e,o,l).swap())}return n}function ws(e,t,n,r,i){let a=1;for(;e.seq1Range.start-a>=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+l<r.endExclusive&&e.seq2Range.endExclusive+l<i.endExclusive&&n.isStronglyEqual(e.seq2Range.start+l,e.seq2Range.endExclusive+l)&&l<100;)l++;if(a===0&&l===0)return e;let o=0,u=-1;for(let h=-a;h<=l;h++){const f=e.seq2Range.start+h,d=e.seq2Range.endExclusive+h,m=e.seq1Range.start+h,g=t.getBoundaryScore(m)+n.getBoundaryScore(f)+n.getBoundaryScore(d);g>u&&(u=g,o=h)}return e.delta(o)}function bu(e,t,n){const r=[];for(const i of n){const 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 Q(s.seq1Range.join(i.seq1Range),s.seq2Range.join(i.seq2Range)):r.push(i)}return r}function vu(e,t,n){const r=Q.invert(n,e.length),i=[];let s=new me(0,0);function a(o,u){if(o.offset1<s.offset1||o.offset2<s.offset2)return;const h=e.findWordContaining(o.offset1),f=t.findWordContaining(o.offset2);if(!h||!f)return;let d=new Q(h,f);const m=d.intersect(u);let g=m.seq1Range.length,p=m.seq2Range.length;for(;r.length>0;){const x=r[0];if(!(x.seq1Range.intersects(d.seq1Range)||x.seq2Range.intersects(d.seq2Range)))break;const S=e.findWordContaining(x.seq1Range.start),b=t.findWordContaining(x.seq2Range.start),w=new Q(S,b),v=w.intersect(x);if(g+=v.seq1Range.length,p+=v.seq2Range.length,d=d.join(w),d.seq1Range.endExclusive>=x.seq1Range.endExclusive)r.shift();else break}g+p<(d.seq1Range.length+d.seq2Range.length)*2/3&&i.push(d),s=d.getEndExclusives()}for(;r.length>0;){const o=r.shift();o.seq1Range.isEmpty||(a(o.getStarts(),o),a(o.getEndExclusives().delta(-1),o))}return xu(n,i)}function xu(e,t){const n=[];for(;e.length>0||t.length>0;){const r=e[0],i=t[0];let s;r&&(!i||r.seq1Range.start<i.seq1Range.start)?s=e.shift():s=t.shift(),n.length>0&&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 yu(e,t,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;const a=[r[0]];for(let l=1;l<r.length;l++){let h=function(d,m){const g=new $(u.seq1Range.endExclusive,o.seq1Range.start);return e.getText(g).replace(/\s/g,"").length<=4&&(d.seq1Range.length+d.seq2Range.length>5||m.seq1Range.length+m.seq2Range.length>5)};const o=r[l],u=a[a.length-1];h(u,o)?(s=!0,a[a.length-1]=a[a.length-1].join(o)):a.push(o)}r=a}while(i++<10&&s);return r}function _u(e,t,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;const l=[r[0]];for(let o=1;o<r.length;o++){let f=function(m,g){const p=new $(h.seq1Range.endExclusive,u.seq1Range.start);if(e.countLinesIn(p)>5||p.length>500)return!1;const _=e.getText(p).trim();if(_.length>20||_.split(/\r\n|\r|\n/).length>1)return!1;const S=e.countLinesIn(m.seq1Range),b=m.seq1Range.length,w=t.countLinesIn(m.seq2Range),v=m.seq2Range.length,L=e.countLinesIn(g.seq1Range),R=g.seq1Range.length,C=t.countLinesIn(g.seq2Range),P=g.seq2Range.length,D=2*40+50;function N(y){return Math.min(y,D)}return Math.pow(Math.pow(N(S*40+b),1.5)+Math.pow(N(w*40+v),1.5),1.5)+Math.pow(Math.pow(N(L*40+R),1.5)+Math.pow(N(C*40+P),1.5),1.5)>(D**1.5)**1.5*1.3};const u=r[o],h=l[l.length-1];f(h,u)?(s=!0,l[l.length-1]=l[l.length-1].join(u)):l.push(u)}r=l}while(i++<10&&s);const a=[];return gl(r,(l,o,u)=>{let h=o;function f(_){return _.length>0&&_.trim().length<=3&&o.seq1Range.length+o.seq2Range.length>100}const d=e.extendToFullLines(o.seq1Range),m=e.getText(new $(d.start,o.seq1Range.start));f(m)&&(h=h.deltaStart(-m.length));const g=e.getText(new $(o.seq1Range.endExclusive,d.endExclusive));f(g)&&(h=h.deltaEnd(g.length));const p=Q.fromOffsetPairs(l?l.getEndExclusives():me.zero,u?u.getStarts():me.max),x=h.intersect(p);a.length>0&&x.getStarts().equals(a[a.length-1].getEndExclusives())?a[a.length-1]=a[a.length-1].join(x):a.push(x)}),a}class Ls{constructor(t,n){this.trimmedHash=t,this.lines=n}getElement(t){return this.trimmedHash[t]}get length(){return this.trimmedHash.length}getBoundaryScore(t){const n=t===0?0:Ns(this.lines[t-1]),r=t===this.lines.length?0:Ns(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 Ns(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===32||e.charCodeAt(t)===9);)t++;return t}class wu{constructor(){this.dynamicProgrammingDiffing=new au,this.myersDiffingAlgorithm=new gs}computeDiff(t,n,r){if(t.length<=1&&hl(t,n,(v,L)=>v===L))return new cn([],[],!1);if(t.length===1&&t[0].length===0||n.length===1&&n[0].length===0)return new cn([new De(new B(1,t.length+1),new B(1,n.length+1),[new Je(new X(1,1,t.length,t[t.length-1].length+1),new X(1,1,n.length,n[n.length-1].length+1))])],[],!1);const i=r.maxComputationTimeMs===0?Bt.instance:new su(r.maxComputationTimeMs),s=!r.ignoreTrimWhitespace,a=new Map;function l(v){let L=a.get(v);return L===void 0&&(L=a.size,a.set(v,L)),L}const o=t.map(v=>l(v.trim())),u=n.map(v=>l(v.trim())),h=new Ls(o,t),f=new Ls(u,n),d=h.length+f.length<1700?this.dynamicProgrammingDiffing.compute(h,f,i,(v,L)=>t[v]===n[L]?n[L].length===0?.1:1+Math.log(1+n[L].length):.99):this.myersDiffingAlgorithm.compute(h,f,i);let m=d.diffs,g=d.hitTimeout;m=ys(h,f,m),m=yu(h,f,m);const p=[],x=v=>{if(s)for(let L=0;L<v;L++){const R=_+L,C=S+L;if(t[R]!==n[C]){const P=this.refineDiff(t,n,new Q(new $(R,R+1),new $(C,C+1)),i,s);for(const D of P.mappings)p.push(D);P.hitTimeout&&(g=!0)}}};let _=0,S=0;for(const v of m){un(()=>v.seq1Range.start-_===v.seq2Range.start-S);const L=v.seq1Range.start-_;x(L),_=v.seq1Range.endExclusive,S=v.seq2Range.endExclusive;const R=this.refineDiff(t,n,v,i,s);R.hitTimeout&&(g=!0);for(const C of R.mappings)p.push(C)}x(t.length-_);const b=Ss(p,t,n);let w=[];return r.computeMoves&&(w=this.computeMoves(b,t,n,o,u,i,s)),un(()=>{function v(R,C){if(R.lineNumber<1||R.lineNumber>C.length)return!1;const P=C[R.lineNumber-1];return!(R.column<1||R.column>P.length+1)}function L(R,C){return!(R.startLineNumber<1||R.startLineNumber>C.length+1||R.endLineNumberExclusive<1||R.endLineNumberExclusive>C.length+1)}for(const R of b){if(!R.innerChanges)return!1;for(const C of R.innerChanges)if(!(v(C.modifiedRange.getStartPosition(),n)&&v(C.modifiedRange.getEndPosition(),n)&&v(C.originalRange.getStartPosition(),t)&&v(C.originalRange.getEndPosition(),t)))return!1;if(!L(R.modified,n)||!L(R.original,t))return!1}return!0}),new cn(b,w,g)}computeMoves(t,n,r,i,s,a,l){return cu(t,n,r,i,s,a).map(h=>{const f=this.refineDiff(n,r,new Q(h.original.toOffsetRange(),h.modified.toOffsetRange()),a,l),d=Ss(f.mappings,n,r,!0);return new Zl(h,d)})}refineDiff(t,n,r,i,s){const a=new fn(t,r.seq1Range,s),l=new fn(n,r.seq2Range,s),o=a.length+l.length<500?this.dynamicProgrammingDiffing.compute(a,l,i):this.myersDiffingAlgorithm.compute(a,l,i);let u=o.diffs;return u=ys(a,l,u),u=vu(a,l,u),u=bu(a,l,u),u=_u(a,l,u),{mappings:u.map(f=>new Je(a.translateRange(f.seq1Range),l.translateRange(f.seq2Range))),hitTimeout:o.hitTimeout}}}function Ss(e,t,n,r=!1){const i=[];for(const s of dl(e.map(a=>Lu(a,t,n)),(a,l)=>a.original.overlapOrTouch(l.original)||a.modified.overlapOrTouch(l.modified))){const a=s[0],l=s[s.length-1];i.push(new De(a.original.join(l.original),a.modified.join(l.modified),s.map(o=>o.innerChanges[0])))}return un(()=>!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:us(i,(s,a)=>a.original.startLineNumber-s.original.endLineNumberExclusive===a.modified.startLineNumber-s.modified.endLineNumberExclusive&&s.original.endLineNumberExclusive<a.original.startLineNumber&&s.modified.endLineNumberExclusive<a.modified.startLineNumber)),i}function Lu(e,t,n){let r=0,i=0;e.modifiedRange.endColumn===1&&e.originalRange.endColumn===1&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(i=-1),e.modifiedRange.startColumn-1>=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);const s=new B(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),a=new B(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i);return new De(s,a,[e])}const As={getLegacy:()=>new tu,getDefault:()=>new wu};function Xe(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}class ie{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=Xe(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}}class ve{constructor(t,n,r,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=Xe(Math.max(Math.min(1,n),0),3),this.l=Xe(Math.max(Math.min(1,r),0),3),this.a=Xe(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){const 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);let o=0,u=0;const h=(l+a)/2,f=a-l;if(f>0){switch(u=Math.min(h<=.5?f/(2*h):f/(2-2*h),1),a){case n:o=(r-i)/f+(r<i?6:0);break;case r:o=(i-n)/f+2;break;case i:o=(n-r)/f+4;break}o*=60,o=Math.round(o)}return new ve(o,u,h,s)}static _hue2rgb(t,n,r){return r<0&&(r+=1),r>1&&(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){const n=t.h/360,{s:r,l:i,a:s}=t;let a,l,o;if(r===0)a=l=o=i;else{const u=i<.5?i*(1+r):i+r-i*r,h=2*i-u;a=ve._hue2rgb(h,u,n+1/3),l=ve._hue2rgb(h,u,n),o=ve._hue2rgb(h,u,n-1/3)}return new ie(Math.round(a*255),Math.round(l*255),Math.round(o*255),s)}}class Lt{constructor(t,n,r,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=Xe(Math.max(Math.min(1,n),0),3),this.v=Xe(Math.max(Math.min(1,r),0),3),this.a=Xe(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){const 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,o=s===0?0:l/s;let u;return l===0?u=0:s===n?u=((r-i)/l%6+6)%6:s===r?u=(i-n)/l+2:u=(n-r)/l+4,new Lt(Math.round(u*60),o,s,t.a)}static toRGBA(t){const{h:n,s:r,v:i,a:s}=t,a=i*r,l=a*(1-Math.abs(n/60%2-1)),o=i-a;let[u,h,f]=[0,0,0];return n<60?(u=a,h=l):n<120?(u=l,h=a):n<180?(h=a,f=l):n<240?(h=l,f=a):n<300?(u=l,f=a):n<=360&&(u=a,f=l),u=Math.round((u+o)*255),h=Math.round((h+o)*255),f=Math.round((f+o)*255),new ie(u,h,f,s)}}let te=class ye{static fromHex(t){return ye.Format.CSS.parseHex(t)||ye.red}static equals(t,n){return!t&&!n?!0:!t||!n?!1:t.equals(n)}get hsla(){return this._hsla?this._hsla:ve.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Lt.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof ie)this.rgba=t;else if(t instanceof ve)this._hsla=t,this.rgba=ve.toRGBA(t);else if(t instanceof Lt)this._hsva=t,this.rgba=Lt.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&ie.equals(this.rgba,t.rgba)&&ve.equals(this.hsla,t.hsla)&&Lt.equals(this.hsva,t.hsva)}getRelativeLuminance(){const t=ye._relativeLuminanceForComponent(this.rgba.r),n=ye._relativeLuminanceForComponent(this.rgba.g),r=ye._relativeLuminanceForComponent(this.rgba.b),i=.2126*t+.7152*n+.0722*r;return Xe(i,4)}static _relativeLuminanceForComponent(t){const 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){const n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n>r}isDarkerThan(t){const n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n<r}lighten(t){return new ye(new ve(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}darken(t){return new ye(new ve(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))}transparent(t){const{r:n,g:r,b:i,a:s}=this.rgba;return new ye(new ie(n,r,i,s*t))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new ye(new ie(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(t){if(this.isOpaque()||t.rgba.a!==1)return this;const{r:n,g:r,b:i,a:s}=this.rgba;return new ye(new ie(t.rgba.r-s*(t.rgba.r-n),t.rgba.g-s*(t.rgba.g-r),t.rgba.b-s*(t.rgba.b-i),1))}toString(){return this._toString||(this._toString=ye.Format.CSS.format(this)),this._toString}static getLighterColor(t,n,r){if(t.isLighterThan(n))return t;r=r||.5;const i=t.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(s-i)/s,t.lighten(r)}static getDarkerColor(t,n,r){if(t.isDarkerThan(n))return t;r=r||.5;const i=t.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(i-s)/i,t.darken(r)}};te.white=new te(new ie(255,255,255,1)),te.black=new te(new ie(0,0,0,1)),te.red=new te(new ie(255,0,0,1)),te.blue=new te(new ie(0,0,255,1)),te.green=new te(new ie(0,255,0,1)),te.cyan=new te(new ie(0,255,255,1)),te.lightgrey=new te(new ie(211,211,211,1)),te.transparent=new te(new ie(0,0,0,0)),function(e){(function(t){(function(n){function r(m){return m.rgba.a===1?`rgb(${m.rgba.r}, ${m.rgba.g}, ${m.rgba.b})`:e.Format.CSS.formatRGBA(m)}n.formatRGB=r;function i(m){return`rgba(${m.rgba.r}, ${m.rgba.g}, ${m.rgba.b}, ${+m.rgba.a.toFixed(2)})`}n.formatRGBA=i;function s(m){return m.hsla.a===1?`hsl(${m.hsla.h}, ${(m.hsla.s*100).toFixed(2)}%, ${(m.hsla.l*100).toFixed(2)}%)`:e.Format.CSS.formatHSLA(m)}n.formatHSL=s;function a(m){return`hsla(${m.hsla.h}, ${(m.hsla.s*100).toFixed(2)}%, ${(m.hsla.l*100).toFixed(2)}%, ${m.hsla.a.toFixed(2)})`}n.formatHSLA=a;function l(m){const g=m.toString(16);return g.length!==2?"0"+g:g}function o(m){return`#${l(m.rgba.r)}${l(m.rgba.g)}${l(m.rgba.b)}`}n.formatHex=o;function u(m,g=!1){return g&&m.rgba.a===1?e.Format.CSS.formatHex(m):`#${l(m.rgba.r)}${l(m.rgba.g)}${l(m.rgba.b)}${l(Math.round(m.rgba.a*255))}`}n.formatHexA=u;function h(m){return m.isOpaque()?e.Format.CSS.formatHex(m):e.Format.CSS.formatRGBA(m)}n.format=h;function f(m){const g=m.length;if(g===0||m.charCodeAt(0)!==35)return null;if(g===7){const p=16*d(m.charCodeAt(1))+d(m.charCodeAt(2)),x=16*d(m.charCodeAt(3))+d(m.charCodeAt(4)),_=16*d(m.charCodeAt(5))+d(m.charCodeAt(6));return new e(new ie(p,x,_,1))}if(g===9){const p=16*d(m.charCodeAt(1))+d(m.charCodeAt(2)),x=16*d(m.charCodeAt(3))+d(m.charCodeAt(4)),_=16*d(m.charCodeAt(5))+d(m.charCodeAt(6)),S=16*d(m.charCodeAt(7))+d(m.charCodeAt(8));return new e(new ie(p,x,_,S/255))}if(g===4){const p=d(m.charCodeAt(1)),x=d(m.charCodeAt(2)),_=d(m.charCodeAt(3));return new e(new ie(16*p+p,16*x+x,16*_+_))}if(g===5){const p=d(m.charCodeAt(1)),x=d(m.charCodeAt(2)),_=d(m.charCodeAt(3)),S=d(m.charCodeAt(4));return new e(new ie(16*p+p,16*x+x,16*_+_,(16*S+S)/255))}return null}n.parseHex=f;function d(m){switch(m){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(t.CSS||(t.CSS={}))})(e.Format||(e.Format={}))}(te||(te={}));function ks(e){const t=[];for(const n of e){const r=Number(n);(r||r===0&&n.replace(/\s/g,"")!=="")&&t.push(r)}return t}function rr(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function Ut(e,t){const n=t.index,r=t[0].length;if(!n)return;const i=e.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function Nu(e,t){if(!e)return;const n=te.Format.CSS.parseHex(t);if(n)return{range:e,color:rr(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function Rs(e,t,n){if(!e||t.length!==1)return;const i=t[0].values(),s=ks(i);return{range:e,color:rr(s[0],s[1],s[2],n?s[3]:1)}}function Es(e,t,n){if(!e||t.length!==1)return;const i=t[0].values(),s=ks(i),a=new te(new ve(s[0],s[1]/100,s[2]/100,n?s[3]:1));return{range:e,color:rr(a.rgba.r,a.rgba.g,a.rgba.b,a.rgba.a)}}function $t(e,t){return typeof e=="string"?[...e.matchAll(t)]:e.findMatches(t)}function Su(e){const t=[],r=$t(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(r.length>0)for(const i of r){const s=i.filter(u=>u!==void 0),a=s[1],l=s[2];if(!l)continue;let o;if(a==="rgb"){const u=/^\(\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;o=Rs(Ut(e,i),$t(l,u),!1)}else if(a==="rgba"){const u=/^\(\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;o=Rs(Ut(e,i),$t(l,u),!0)}else if(a==="hsl"){const u=/^\(\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;o=Es(Ut(e,i),$t(l,u),!1)}else if(a==="hsla"){const u=/^\(\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;o=Es(Ut(e,i),$t(l,u),!0)}else a==="#"&&(o=Nu(Ut(e,i),a+l));o&&t.push(o)}return t}function Au(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:Su(e)}const Ms=new RegExp("\\bMARK:\\s*(.*)$","d"),ku=/^-+|-+$/g;function Ru(e,t){var n;let r=[];if(t.findRegionSectionHeaders&&(!((n=t.foldingRules)===null||n===void 0)&&n.markers)){const i=Eu(e,t);r=r.concat(i)}if(t.findMarkSectionHeaders){const i=Mu(e);r=r.concat(i)}return r}function Eu(e,t){const n=[],r=e.getLineCount();for(let i=1;i<=r;i++){const s=e.getLineContent(i),a=s.match(t.foldingRules.markers.start);if(a){const l={startLineNumber:i,startColumn:a[0].length+1,endLineNumber:i,endColumn:s.length+1};if(l.endColumn>l.startColumn){const o={range:l,...Cs(s.substring(a[0].length)),shouldBeInComments:!1};(o.text||o.hasSeparatorLine)&&n.push(o)}}}return n}function Mu(e){const t=[],n=e.getLineCount();for(let r=1;r<=n;r++){const i=e.getLineContent(r);Cu(i,r,t)}return t}function Cu(e,t,n){Ms.lastIndex=0;const r=Ms.exec(e);if(r){const 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){const l={range:a,...Cs(r[1]),shouldBeInComments:!0};(l.text||l.hasSeparatorLine)&&n.push(l)}}}function Cs(e){e=e.trim();const t=e.startsWith("-");return e=e.replace(ku,""),{text:e,hasSeparatorLine:t}}class Tu extends yl{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(t){const n=[];for(let r=0;r<this._lines.length;r++){const i=this._lines[r],s=this.offsetAt(new Ce(r+1,1)),a=i.matchAll(t);for(const l of a)(l.index||l.index===0)&&(l.index=l.index+s),n.push(l)}return n}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(t){return this._lines[t-1]}getWordAtPosition(t,n){const r=Un(t.column,ei(n),this._lines[t.lineNumber-1],0);return r?new X(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):null}words(t){const n=this._lines,r=this._wordenize.bind(this);let i=0,s="",a=0,l=[];return{*[Symbol.iterator](){for(;;)if(a<l.length){const o=s.substring(l[a].start,l[a].end);a+=1,yield o}else if(i<n.length)s=n[i],l=r(s,t),a=0,i+=1;else break}}}getLineWords(t,n){const r=this._lines[t-1],i=this._wordenize(r,n),s=[];for(const a of i)s.push({word:r.substring(a.start,a.end),startColumn:a.start+1,endColumn:a.end+1});return s}_wordenize(t,n){const r=[];let i;for(n.lastIndex=0;(i=n.exec(t))&&i[0].length!==0;)r.push({start:i.index,end:i.index+i[0].length});return r}getValueInRange(t){if(t=this._validateRange(t),t.startLineNumber===t.endLineNumber)return this._lines[t.startLineNumber-1].substring(t.startColumn-1,t.endColumn-1);const n=this._eol,r=t.startLineNumber-1,i=t.endLineNumber-1,s=[];s.push(this._lines[r].substring(t.startColumn-1));for(let a=r+1;a<i;a++)s.push(this._lines[a]);return s.push(this._lines[i].substring(0,t.endColumn-1)),s.join(n)}offsetAt(t){return t=this._validatePosition(t),this._ensureLineStarts(),this._lineStarts.getPrefixSum(t.lineNumber-2)+(t.column-1)}positionAt(t){t=Math.floor(t),t=Math.max(0,t),this._ensureLineStarts();const n=this._lineStarts.getIndexOf(t),r=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,r)}}_validateRange(t){const n=this._validatePosition({lineNumber:t.startLineNumber,column:t.startColumn}),r=this._validatePosition({lineNumber:t.endLineNumber,column:t.endColumn});return n.lineNumber!==t.startLineNumber||n.column!==t.startColumn||r.lineNumber!==t.endLineNumber||r.column!==t.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:r.lineNumber,endColumn:r.column}:t}_validatePosition(t){if(!Ce.isIPosition(t))throw new Error("bad position");let{lineNumber:n,column:r}=t,i=!1;if(n<1)n=1,r=1,i=!0;else if(n>this._lines.length)n=this._lines.length,r=this._lines[n-1].length+1,i=!0;else{const 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}}class rt{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(){const t=[];return Object.keys(this._models).forEach(n=>t.push(this._models[n])),t}acceptNewModel(t){this._models[t.url]=new Tu(Dn.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){const i=this._getModel(t);return i?Xl.computeUnicodeHighlights(i,n,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(t,n){const r=this._getModel(t);return r?Ru(r,n):[]}async computeDiff(t,n,r,i){const s=this._getModel(t),a=this._getModel(n);return!s||!a?null:rt.computeDiff(s,a,r,i)}static computeDiff(t,n,r,i){const s=i==="advanced"?As.getDefault():As.getLegacy(),a=t.getLinesContent(),l=n.getLinesContent(),o=s.computeDiff(a,l,r),u=o.changes.length>0?!1:this._modelsAreIdentical(t,n);function h(f){return f.map(d=>{var m;return[d.original.startLineNumber,d.original.endLineNumberExclusive,d.modified.startLineNumber,d.modified.endLineNumberExclusive,(m=d.innerChanges)===null||m===void 0?void 0:m.map(g=>[g.originalRange.startLineNumber,g.originalRange.startColumn,g.originalRange.endLineNumber,g.originalRange.endColumn,g.modifiedRange.startLineNumber,g.modifiedRange.startColumn,g.modifiedRange.endLineNumber,g.modifiedRange.endColumn])]})}return{identical:u,quitEarly:o.hitTimeout,changes:h(o.changes),moves:o.moves.map(f=>[f.lineRangeMapping.original.startLineNumber,f.lineRangeMapping.original.endLineNumberExclusive,f.lineRangeMapping.modified.startLineNumber,f.lineRangeMapping.modified.endLineNumberExclusive,h(f.changes)])}}static _modelsAreIdentical(t,n){const r=t.getLineCount(),i=n.getLineCount();if(r!==i)return!1;for(let s=1;s<=r;s++){const a=t.getLineContent(s),l=n.getLineContent(s);if(a!==l)return!1}return!0}async computeMoreMinimalEdits(t,n,r){const i=this._getModel(t);if(!i)return n;const s=[];let a;n=n.slice(0).sort((o,u)=>{if(o.range&&u.range)return X.compareRangesUsingStarts(o.range,u.range);const h=o.range?0:1,f=u.range?0:1;return h-f});let l=0;for(let o=1;o<n.length;o++)X.getEndPosition(n[l].range).equals(X.getStartPosition(n[o].range))?(n[l].range=X.fromPositions(X.getStartPosition(n[l].range),X.getEndPosition(n[o].range)),n[l].text+=n[o].text):(l++,n[l]=n[o]);n.length=l+1;for(let{range:o,text:u,eol:h}of n){if(typeof h=="number"&&(a=h),X.isEmpty(o)&&!u)continue;const f=i.getValueInRange(o);if(u=u.replace(/\r\n|\n|\r/g,i.eol),f===u)continue;if(Math.max(u.length,f.length)>rt._diffLimit){s.push({range:o,text:u});continue}const d=Jo(f,u,r),m=i.offsetAt(X.lift(o).getStartPosition());for(const g of d){const p=i.positionAt(m+g.originalStart),x=i.positionAt(m+g.originalStart+g.originalLength),_={text:u.substr(g.modifiedStart,g.modifiedLength),range:{startLineNumber:p.lineNumber,startColumn:p.column,endLineNumber:x.lineNumber,endColumn:x.column}};i.getValueInRange(_.range)!==_.text&&s.push(_)}}return typeof a=="number"&&s.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async computeLinks(t){const n=this._getModel(t);return n?Rl(n):null}async computeDefaultDocumentColors(t){const n=this._getModel(t);return n?Au(n):null}async textualSuggest(t,n,r,i){const s=new Zt,a=new RegExp(r,i),l=new Set;e:for(const o of t){const u=this._getModel(o);if(u){for(const h of u.words(a))if(!(h===n||!isNaN(Number(h)))&&(l.add(h),l.size>rt._suggestionsLimit))break e}}return{words:Array.from(l),duration:s.elapsed()}}async computeWordRanges(t,n,r,i){const s=this._getModel(t);if(!s)return Object.create(null);const a=new RegExp(r,i),l=Object.create(null);for(let o=n.startLineNumber;o<n.endLineNumber;o++){const u=s.getLineWords(o,a);for(const h of u){if(!isNaN(Number(h.word)))continue;let f=l[h.word];f||(f=[],l[h.word]=f),f.push({startLineNumber:o,startColumn:h.startColumn,endLineNumber:o,endColumn:h.endColumn})}}return l}async navigateValueSet(t,n,r,i,s){const a=this._getModel(t);if(!a)return null;const l=new RegExp(i,s);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});const o=a.getValueInRange(n),u=a.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},l);if(!u)return null;const h=a.getValueInRange(u);return jn.INSTANCE.navigateValueSet(n,o,u,h,r)}loadForeignModule(t,n,r){const a={host:yo(r,(l,o)=>this._host.fhr(l,o)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(a,n),Promise.resolve(kn(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)}}}rt._diffLimit=1e5,rt._suggestionsLimit=1e4,typeof importScripts=="function"&&(globalThis.monaco=Bl());let ir=!1;function Ts(e){if(ir)return;ir=!0;const t=new zo(n=>{globalThis.postMessage(n)},n=>new rt(n,e));globalThis.onmessage=n=>{t.onmessage(n.data)}}globalThis.onmessage=e=>{ir||Ts(null)};/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/function sr(e,t=!1){const n=e.length;let r=0,i="",s=0,a=16,l=0,o=0,u=0,h=0,f=0;function d(b,w){let v=0,L=0;for(;v<b||!w;){let R=e.charCodeAt(r);if(R>=48&&R<=57)L=L*16+R-48;else if(R>=65&&R<=70)L=L*16+R-65+10;else if(R>=97&&R<=102)L=L*16+R-97+10;else break;r++,v++}return v<b&&(L=-1),L}function m(b){r=b,i="",s=0,a=16,f=0}function g(){let b=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&Nt(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&Nt(e.charCodeAt(r)))for(r++;r<e.length&&Nt(e.charCodeAt(r));)r++;else return f=3,e.substring(b,r);let w=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&Nt(e.charCodeAt(r))){for(r++;r<e.length&&Nt(e.charCodeAt(r));)r++;w=r}else f=3;return e.substring(b,w)}function p(){let b="",w=r;for(;;){if(r>=n){b+=e.substring(w,r),f=2;break}const v=e.charCodeAt(r);if(v===34){b+=e.substring(w,r),r++;break}if(v===92){if(b+=e.substring(w,r),r++,r>=n){f=2;break}switch(e.charCodeAt(r++)){case 34:b+='"';break;case 92:b+="\\";break;case 47:b+="/";break;case 98:b+="\b";break;case 102:b+="\f";break;case 110:b+=` +`;break;case 114:b+="\r";break;case 116:b+=" ";break;case 117:const R=d(4,!0);R>=0?b+=String.fromCharCode(R):f=4;break;default:f=5}w=r;continue}if(v>=0&&v<=31)if(qt(v)){b+=e.substring(w,r),f=2;break}else f=6;r++}return b}function x(){if(i="",f=0,s=r,o=l,h=u,r>=n)return s=n,a=17;let b=e.charCodeAt(r);if(ar(b)){do r++,i+=String.fromCharCode(b),b=e.charCodeAt(r);while(ar(b));return a=15}if(qt(b))return r++,i+=String.fromCharCode(b),b===13&&e.charCodeAt(r)===10&&(r++,i+=` +`),l++,u=r,a=14;switch(b){case 123:return r++,a=1;case 125:return r++,a=2;case 91:return r++,a=3;case 93:return r++,a=4;case 58:return r++,a=6;case 44:return r++,a=5;case 34:return r++,i=p(),a=10;case 47:const w=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!qt(e.charCodeAt(r));)r++;return i=e.substring(w,r),a=12}if(e.charCodeAt(r+1)===42){r+=2;const v=n-1;let L=!1;for(;r<v;){const R=e.charCodeAt(r);if(R===42&&e.charCodeAt(r+1)===47){r+=2,L=!0;break}r++,qt(R)&&(R===13&&e.charCodeAt(r)===10&&r++,l++,u=r)}return L||(r++,f=1),i=e.substring(w,r),a=13}return i+=String.fromCharCode(b),r++,a=16;case 45:if(i+=String.fromCharCode(b),r++,r===n||!Nt(e.charCodeAt(r)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=g(),a=11;default:for(;r<n&&_(b);)r++,b=e.charCodeAt(r);if(s!==r){switch(i=e.substring(s,r),i){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return i+=String.fromCharCode(b),r++,a=16}}function _(b){if(ar(b)||qt(b))return!1;switch(b){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function S(){let b;do b=x();while(b>=12&&b<=15);return b}return{setPosition:m,getPosition:()=>r,scan:t?S:x,getToken:()=>a,getTokenValue:()=>i,getTokenOffset:()=>s,getTokenLength:()=>r-s,getTokenStartLine:()=>o,getTokenStartCharacter:()=>s-h,getTokenError:()=>f}}function ar(e){return e===32||e===9}function qt(e){return e===10||e===13}function Nt(e){return e>=48&&e<=57}var Ps;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",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.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(Ps||(Ps={}));var xe=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),St=200,Is={" ":{"\n":new Array(St).fill(0).map((e,t)=>` +`+" ".repeat(t)),"\r":new Array(St).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(St).fill(0).map((e,t)=>`\r +`+" ".repeat(t))}," ":{"\n":new Array(St).fill(0).map((e,t)=>` +`+" ".repeat(t)),"\r":new Array(St).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(St).fill(0).map((e,t)=>`\r +`+" ".repeat(t))}},Pu=[` +`,"\r",`\r +`];function Iu(e,t,n){let r,i,s,a,l;if(t){for(a=t.offset,l=a+t.length,s=a;s>0&&!Fs(e,s-1);)s--;let v=l;for(;v<e.length&&!Fs(e,v);)v++;i=e.substring(s,v),r=Fu(i,n)}else i=e,r=0,s=0,a=0,l=e.length;const o=Vu(n,e),u=Pu.includes(o);let h=0,f=0,d;n.insertSpaces?d=xe[n.tabSize||4]??At(xe[1],n.tabSize||4):d=" ";const m=d===" "?" ":" ";let g=sr(i,!1),p=!1;function x(){if(h>1)return At(o,h)+At(d,r+f);const v=d.length*(r+f);return!u||v>Is[m][o].length?o+At(d,r+f):v<=0?o:Is[m][o][v]}function _(){let v=g.scan();for(h=0;v===15||v===14;)v===14&&n.keepLines?h+=1:v===14&&(h=1),v=g.scan();return p=v===16||g.getTokenError()!==0,v}const S=[];function b(v,L,R){!p&&(!t||L<l&&R>a)&&e.substring(L,R)!==v&&S.push({offset:L,length:R-L,content:v})}let w=_();if(n.keepLines&&h>0&&b(At(o,h),0,0),w!==17){let v=g.getTokenOffset()+s,L=d.length*r<20&&n.insertSpaces?xe[d.length*r]:At(d,r);b(L,s,v)}for(;w!==17;){let v=g.getTokenOffset()+g.getTokenLength()+s,L=_(),R="",C=!1;for(;h===0&&(L===12||L===13);){let D=g.getTokenOffset()+s;b(xe[1],v,D),v=g.getTokenOffset()+g.getTokenLength()+s,C=L===12,R=C?x():"",L=_()}if(L===2)w!==1&&f--,n.keepLines&&h>0||!n.keepLines&&w!==1?R=x():n.keepLines&&(R=xe[1]);else if(L===4)w!==3&&f--,n.keepLines&&h>0||!n.keepLines&&w!==3?R=x():n.keepLines&&(R=xe[1]);else{switch(w){case 3:case 1:f++,n.keepLines&&h>0||!n.keepLines?R=x():R=xe[1];break;case 5:n.keepLines&&h>0||!n.keepLines?R=x():R=xe[1];break;case 12:R=x();break;case 13:h>0?R=x():C||(R=xe[1]);break;case 6:n.keepLines&&h>0?R=x():C||(R=xe[1]);break;case 10:n.keepLines&&h>0?R=x():L===6&&!C&&(R="");break;case 7:case 8:case 9:case 11:case 2:case 4:n.keepLines&&h>0?R=x():(L===12||L===13)&&!C?R=xe[1]:L!==5&&L!==17&&(p=!0);break;case 16:p=!0;break}h>0&&(L===12||L===13)&&(R=x())}L===17&&(n.keepLines&&h>0?R=x():R=n.insertFinalNewline?o:"");const P=g.getTokenOffset()+s;b(R,v,P),w=L}return S}function At(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n}function Fu(e,t){let n=0,r=0;const i=t.tabSize||4;for(;n<e.length;){let s=e.charAt(n);if(s===xe[1])r++;else if(s===" ")r+=i;else break;n++}return Math.floor(r/i)}function Vu(e,t){for(let n=0;n<t.length;n++){const r=t.charAt(n);if(r==="\r")return n+1<t.length&&t.charAt(n+1)===` +`?`\r +`:"\r";if(r===` +`)return` +`}return e&&e.eol||` +`}function Fs(e,t){return`\r +`.indexOf(e.charAt(t))!==-1}var hn;(function(e){e.DEFAULT={allowTrailingComma:!1}})(hn||(hn={}));function Du(e,t=[],n=hn.DEFAULT){let r=null,i=[];const s=[];function a(o){Array.isArray(i)?i.push(o):r!==null&&(i[r]=o)}return Bu(e,{onObjectBegin:()=>{const o={};a(o),s.push(i),i=o,r=null},onObjectProperty:o=>{r=o},onObjectEnd:()=>{i=s.pop()},onArrayBegin:()=>{const o=[];a(o),s.push(i),i=o,r=null},onArrayEnd:()=>{i=s.pop()},onLiteralValue:a,onError:(o,u,h)=>{t.push({error:o,offset:u,length:h})}},n),i[0]}function Vs(e){if(!e.parent||!e.parent.children)return[];const t=Vs(e.parent);if(e.parent.type==="property"){const n=e.parent.children[0].value;t.push(n)}else if(e.parent.type==="array"){const n=e.parent.children.indexOf(e);n!==-1&&t.push(n)}return t}function or(e){switch(e.type){case"array":return e.children.map(or);case"object":const t=Object.create(null);for(let n of e.children){const r=n.children[1];r&&(t[n.children[0].value]=or(r))}return t;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function Ou(e,t,n=!1){return t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}function Ds(e,t,n=!1){if(Ou(e,t,n)){const r=e.children;if(Array.isArray(r))for(let i=0;i<r.length&&r[i].offset<=t;i++){const s=Ds(r[i],t,n);if(s)return s}return e}}function Bu(e,t,n=hn.DEFAULT){const r=sr(e,!1),i=[];function s(y){return y?()=>y(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a(y){return y?()=>y(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}function l(y){return y?k=>y(k,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function o(y){return y?k=>y(k,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}const u=a(t.onObjectBegin),h=o(t.onObjectProperty),f=s(t.onObjectEnd),d=a(t.onArrayBegin),m=s(t.onArrayEnd),g=o(t.onLiteralValue),p=l(t.onSeparator),x=s(t.onComment),_=l(t.onError),S=n&&n.disallowComments,b=n&&n.allowTrailingComma;function w(){for(;;){const y=r.scan();switch(r.getTokenError()){case 4:v(14);break;case 5:v(15);break;case 3:v(13);break;case 1:S||v(11);break;case 2:v(12);break;case 6:v(16);break}switch(y){case 12:case 13:S?v(10):x();break;case 16:v(1);break;case 15:case 14:break;default:return y}}}function v(y,k=[],M=[]){if(_(y),k.length+M.length>0){let T=r.getToken();for(;T!==17;){if(k.indexOf(T)!==-1){w();break}else if(M.indexOf(T)!==-1)break;T=w()}}}function L(y){const k=r.getTokenValue();return y?g(k):(h(k),i.push(k)),w(),!0}function R(){switch(r.getToken()){case 11:const y=r.getTokenValue();let k=Number(y);isNaN(k)&&(v(2),k=0),g(k);break;case 7:g(null);break;case 8:g(!0);break;case 9:g(!1);break;default:return!1}return w(),!0}function C(){return r.getToken()!==10?(v(3,[],[2,5]),!1):(L(!1),r.getToken()===6?(p(":"),w(),N()||v(4,[],[2,5])):v(5,[],[2,5]),i.pop(),!0)}function P(){u(),w();let y=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(y||v(4,[],[]),p(","),w(),r.getToken()===2&&b)break}else y&&v(6,[],[]);C()||v(4,[],[2,5]),y=!0}return f(),r.getToken()!==2?v(7,[2],[]):w(),!0}function D(){d(),w();let y=!0,k=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(k||v(4,[],[]),p(","),w(),r.getToken()===4&&b)break}else k&&v(6,[],[]);y?(i.push(0),y=!1):i[i.length-1]++,N()||v(4,[],[4,5]),k=!0}return m(),y||i.pop(),r.getToken()!==4?v(8,[4],[]):w(),!0}function N(){switch(r.getToken()){case 3:return D();case 1:return P();case 10:return L(!0);default:return R()}}return w(),r.getToken()===17?n.allowEmptyContent?!0:(v(4,[],[]),!1):N()?(r.getToken()!==17&&v(9,[],[]),!0):(v(4,[],[]),!1)}var it=sr,Os;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(Os||(Os={}));var Bs;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(Bs||(Bs={}));var Uu=Du,$u=Ds,qu=Vs,ju=or,Us;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(Us||(Us={}));function Wu(e,t,n){return Iu(e,t,n)}function kt(e,t){if(e===t)return!0;if(e==null||t===null||t===void 0||typeof e!=typeof t||typeof e!="object"||Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!kt(e[n],t[n]))return!1}else{const i=[];for(r in e)i.push(r);i.sort();const s=[];for(r in t)s.push(r);if(s.sort(),!kt(i,s))return!1;for(n=0;n<i.length;n++)if(!kt(e[i[n]],t[i[n]]))return!1}return!0}function le(e){return typeof e=="number"}function Se(e){return typeof e<"u"}function Pe(e){return typeof e=="boolean"}function $s(e){return typeof e=="string"}function Qe(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Hu(e,t){if(e.length<t.length)return!1;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function jt(e,t){const n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:n===0?e===t:!1}function dn(e){let t="";Hu(e,"(?i)")&&(e=e.substring(4),t="i");try{return new RegExp(e,t+"u")}catch{try{return new RegExp(e,t)}catch{return}}}function qs(e){let t=0;for(let n=0;n<e.length;n++){t++;const r=e.charCodeAt(n);55296<=r&&r<=56319&&n++}return t}var js;(function(e){function t(n){return typeof n=="string"}e.is=t})(js||(js={}));var lr;(function(e){function t(n){return typeof n=="string"}e.is=t})(lr||(lr={}));var Ws;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(Ws||(Ws={}));var mn;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(mn||(mn={}));var Z;(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=mn.MAX_VALUE),i===Number.MAX_VALUE&&(i=mn.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return A.objectLiteral(i)&&A.uinteger(i.line)&&A.uinteger(i.character)}e.is=n})(Z||(Z={}));var U;(function(e){function t(r,i,s,a){if(A.uinteger(r)&&A.uinteger(i)&&A.uinteger(s)&&A.uinteger(a))return{start:Z.create(r,i),end:Z.create(s,a)};if(Z.is(r)&&Z.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${s}, ${a}]`)}e.create=t;function n(r){let i=r;return A.objectLiteral(i)&&Z.is(i.start)&&Z.is(i.end)}e.is=n})(U||(U={}));var Rt;(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return A.objectLiteral(i)&&U.is(i.range)&&(A.string(i.uri)||A.undefined(i.uri))}e.is=n})(Rt||(Rt={}));var Hs;(function(e){function t(r,i,s,a){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:a}}e.create=t;function n(r){let i=r;return A.objectLiteral(i)&&U.is(i.targetRange)&&A.string(i.targetUri)&&U.is(i.targetSelectionRange)&&(U.is(i.originSelectionRange)||A.undefined(i.originSelectionRange))}e.is=n})(Hs||(Hs={}));var ur;(function(e){function t(r,i,s,a){return{red:r,green:i,blue:s,alpha:a}}e.create=t;function n(r){const i=r;return A.objectLiteral(i)&&A.numberRange(i.red,0,1)&&A.numberRange(i.green,0,1)&&A.numberRange(i.blue,0,1)&&A.numberRange(i.alpha,0,1)}e.is=n})(ur||(ur={}));var zs;(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){const i=r;return A.objectLiteral(i)&&U.is(i.range)&&ur.is(i.color)}e.is=n})(zs||(zs={}));var Gs;(function(e){function t(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}e.create=t;function n(r){const i=r;return A.objectLiteral(i)&&A.string(i.label)&&(A.undefined(i.textEdit)||Ie.is(i))&&(A.undefined(i.additionalTextEdits)||A.typedArray(i.additionalTextEdits,Ie.is))}e.is=n})(Gs||(Gs={}));var Wt;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Wt||(Wt={}));var Js;(function(e){function t(r,i,s,a,l,o){const u={startLine:r,endLine:i};return A.defined(s)&&(u.startCharacter=s),A.defined(a)&&(u.endCharacter=a),A.defined(l)&&(u.kind=l),A.defined(o)&&(u.collapsedText=o),u}e.create=t;function n(r){const i=r;return A.objectLiteral(i)&&A.uinteger(i.startLine)&&A.uinteger(i.startLine)&&(A.undefined(i.startCharacter)||A.uinteger(i.startCharacter))&&(A.undefined(i.endCharacter)||A.uinteger(i.endCharacter))&&(A.undefined(i.kind)||A.string(i.kind))}e.is=n})(Js||(Js={}));var cr;(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return A.defined(i)&&Rt.is(i.location)&&A.string(i.message)}e.is=n})(cr||(cr={}));var ge;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(ge||(ge={}));var Xs;(function(e){e.Unnecessary=1,e.Deprecated=2})(Xs||(Xs={}));var Qs;(function(e){function t(n){const r=n;return A.objectLiteral(r)&&A.string(r.href)}e.is=t})(Qs||(Qs={}));var Be;(function(e){function t(r,i,s,a,l,o){let u={range:r,message:i};return A.defined(s)&&(u.severity=s),A.defined(a)&&(u.code=a),A.defined(l)&&(u.source=l),A.defined(o)&&(u.relatedInformation=o),u}e.create=t;function n(r){var i;let s=r;return A.defined(s)&&U.is(s.range)&&A.string(s.message)&&(A.number(s.severity)||A.undefined(s.severity))&&(A.integer(s.code)||A.string(s.code)||A.undefined(s.code))&&(A.undefined(s.codeDescription)||A.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(A.string(s.source)||A.undefined(s.source))&&(A.undefined(s.relatedInformation)||A.typedArray(s.relatedInformation,cr.is))}e.is=n})(Be||(Be={}));var Et;(function(e){function t(r,i,...s){let a={title:r,command:i};return A.defined(s)&&s.length>0&&(a.arguments=s),a}e.create=t;function n(r){let i=r;return A.defined(i)&&A.string(i.title)&&A.string(i.command)}e.is=n})(Et||(Et={}));var Ie;(function(e){function t(s,a){return{range:s,newText:a}}e.replace=t;function n(s,a){return{range:{start:s,end:s},newText:a}}e.insert=n;function r(s){return{range:s,newText:""}}e.del=r;function i(s){const a=s;return A.objectLiteral(a)&&A.string(a.newText)&&U.is(a.range)}e.is=i})(Ie||(Ie={}));var fr;(function(e){function t(r,i,s){const a={label:r};return i!==void 0&&(a.needsConfirmation=i),s!==void 0&&(a.description=s),a}e.create=t;function n(r){const i=r;return A.objectLiteral(i)&&A.string(i.label)&&(A.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(A.string(i.description)||i.description===void 0)}e.is=n})(fr||(fr={}));var Mt;(function(e){function t(n){const r=n;return A.string(r)}e.is=t})(Mt||(Mt={}));var Zs;(function(e){function t(s,a,l){return{range:s,newText:a,annotationId:l}}e.replace=t;function n(s,a,l){return{range:{start:s,end:s},newText:a,annotationId:l}}e.insert=n;function r(s,a){return{range:s,newText:"",annotationId:a}}e.del=r;function i(s){const a=s;return Ie.is(a)&&(fr.is(a.annotationId)||Mt.is(a.annotationId))}e.is=i})(Zs||(Zs={}));var hr;(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return A.defined(i)&&br.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(hr||(hr={}));var dr;(function(e){function t(r,i,s){let a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="create"&&A.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||A.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||A.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Mt.is(i.annotationId))}e.is=n})(dr||(dr={}));var mr;(function(e){function t(r,i,s,a){let l={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(l.options=s),a!==void 0&&(l.annotationId=a),l}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&A.string(i.oldUri)&&A.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||A.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||A.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Mt.is(i.annotationId))}e.is=n})(mr||(mr={}));var gr;(function(e){function t(r,i,s){let a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="delete"&&A.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||A.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||A.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Mt.is(i.annotationId))}e.is=n})(gr||(gr={}));var pr;(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>A.string(i.kind)?dr.is(i)||mr.is(i)||gr.is(i):hr.is(i)))}e.is=t})(pr||(pr={}));var Ys;(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return A.defined(i)&&A.string(i.uri)}e.is=n})(Ys||(Ys={}));var Ks;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return A.defined(i)&&A.string(i.uri)&&A.integer(i.version)}e.is=n})(Ks||(Ks={}));var br;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return A.defined(i)&&A.string(i.uri)&&(i.version===null||A.integer(i.version))}e.is=n})(br||(br={}));var ea;(function(e){function t(r,i,s,a){return{uri:r,languageId:i,version:s,text:a}}e.create=t;function n(r){let i=r;return A.defined(i)&&A.string(i.uri)&&A.string(i.languageId)&&A.integer(i.version)&&A.string(i.text)}e.is=n})(ea||(ea={}));var st;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){const r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(st||(st={}));var Ht;(function(e){function t(n){const r=n;return A.objectLiteral(n)&&st.is(r.kind)&&A.string(r.value)}e.is=t})(Ht||(Ht={}));var pe;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(pe||(pe={}));var ne;(function(e){e.PlainText=1,e.Snippet=2})(ne||(ne={}));var ta;(function(e){e.Deprecated=1})(ta||(ta={}));var na;(function(e){function t(r,i,s){return{newText:r,insert:i,replace:s}}e.create=t;function n(r){const i=r;return i&&A.string(i.newText)&&U.is(i.insert)&&U.is(i.replace)}e.is=n})(na||(na={}));var ra;(function(e){e.asIs=1,e.adjustIndentation=2})(ra||(ra={}));var ia;(function(e){function t(n){const r=n;return r&&(A.string(r.detail)||r.detail===void 0)&&(A.string(r.description)||r.description===void 0)}e.is=t})(ia||(ia={}));var vr;(function(e){function t(n){return{label:n}}e.create=t})(vr||(vr={}));var sa;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(sa||(sa={}));var gn;(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){const i=r;return A.string(i)||A.objectLiteral(i)&&A.string(i.language)&&A.string(i.value)}e.is=n})(gn||(gn={}));var aa;(function(e){function t(n){let r=n;return!!r&&A.objectLiteral(r)&&(Ht.is(r.contents)||gn.is(r.contents)||A.typedArray(r.contents,gn.is))&&(n.range===void 0||U.is(n.range))}e.is=t})(aa||(aa={}));var oa;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(oa||(oa={}));var la;(function(e){function t(n,r,...i){let s={label:n};return A.defined(r)&&(s.documentation=r),A.defined(i)?s.parameters=i:s.parameters=[],s}e.create=t})(la||(la={}));var ua;(function(e){e.Text=1,e.Read=2,e.Write=3})(ua||(ua={}));var ca;(function(e){function t(n,r){let i={range:n};return A.number(r)&&(i.kind=r),i}e.create=t})(ca||(ca={}));var Fe;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Fe||(Fe={}));var fa;(function(e){e.Deprecated=1})(fa||(fa={}));var ha;(function(e){function t(n,r,i,s,a){let l={name:n,kind:r,location:{uri:s,range:i}};return a&&(l.containerName=a),l}e.create=t})(ha||(ha={}));var da;(function(e){function t(n,r,i,s){return s!==void 0?{name:n,kind:r,location:{uri:i,range:s}}:{name:n,kind:r,location:{uri:i}}}e.create=t})(da||(da={}));var ma;(function(e){function t(r,i,s,a,l,o){let u={name:r,detail:i,kind:s,range:a,selectionRange:l};return o!==void 0&&(u.children=o),u}e.create=t;function n(r){let i=r;return i&&A.string(i.name)&&A.number(i.kind)&&U.is(i.range)&&U.is(i.selectionRange)&&(i.detail===void 0||A.string(i.detail))&&(i.deprecated===void 0||A.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(ma||(ma={}));var ga;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(ga||(ga={}));var pn;(function(e){e.Invoked=1,e.Automatic=2})(pn||(pn={}));var pa;(function(e){function t(r,i,s){let a={diagnostics:r};return i!=null&&(a.only=i),s!=null&&(a.triggerKind=s),a}e.create=t;function n(r){let i=r;return A.defined(i)&&A.typedArray(i.diagnostics,Be.is)&&(i.only===void 0||A.typedArray(i.only,A.string))&&(i.triggerKind===void 0||i.triggerKind===pn.Invoked||i.triggerKind===pn.Automatic)}e.is=n})(pa||(pa={}));var ba;(function(e){function t(r,i,s){let a={title:r},l=!0;return typeof i=="string"?(l=!1,a.kind=i):Et.is(i)?a.command=i:a.edit=i,l&&s!==void 0&&(a.kind=s),a}e.create=t;function n(r){let i=r;return i&&A.string(i.title)&&(i.diagnostics===void 0||A.typedArray(i.diagnostics,Be.is))&&(i.kind===void 0||A.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Et.is(i.command))&&(i.isPreferred===void 0||A.boolean(i.isPreferred))&&(i.edit===void 0||pr.is(i.edit))}e.is=n})(ba||(ba={}));var va;(function(e){function t(r,i){let s={range:r};return A.defined(i)&&(s.data=i),s}e.create=t;function n(r){let i=r;return A.defined(i)&&U.is(i.range)&&(A.undefined(i.command)||Et.is(i.command))}e.is=n})(va||(va={}));var xa;(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return A.defined(i)&&A.uinteger(i.tabSize)&&A.boolean(i.insertSpaces)}e.is=n})(xa||(xa={}));var ya;(function(e){function t(r,i,s){return{range:r,target:i,data:s}}e.create=t;function n(r){let i=r;return A.defined(i)&&U.is(i.range)&&(A.undefined(i.target)||A.string(i.target))}e.is=n})(ya||(ya={}));var bn;(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return A.objectLiteral(i)&&U.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(bn||(bn={}));var _a;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(_a||(_a={}));var wa;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(wa||(wa={}));var La;(function(e){function t(n){const r=n;return A.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=t})(La||(La={}));var Na;(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){const i=r;return i!=null&&U.is(i.range)&&A.string(i.text)}e.is=n})(Na||(Na={}));var Sa;(function(e){function t(r,i,s){return{range:r,variableName:i,caseSensitiveLookup:s}}e.create=t;function n(r){const i=r;return i!=null&&U.is(i.range)&&A.boolean(i.caseSensitiveLookup)&&(A.string(i.variableName)||i.variableName===void 0)}e.is=n})(Sa||(Sa={}));var Aa;(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){const i=r;return i!=null&&U.is(i.range)&&(A.string(i.expression)||i.expression===void 0)}e.is=n})(Aa||(Aa={}));var ka;(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){const i=r;return A.defined(i)&&U.is(r.stoppedLocation)}e.is=n})(ka||(ka={}));var xr;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(xr||(xr={}));var yr;(function(e){function t(r){return{value:r}}e.create=t;function n(r){const i=r;return A.objectLiteral(i)&&(i.tooltip===void 0||A.string(i.tooltip)||Ht.is(i.tooltip))&&(i.location===void 0||Rt.is(i.location))&&(i.command===void 0||Et.is(i.command))}e.is=n})(yr||(yr={}));var Ra;(function(e){function t(r,i,s){const a={position:r,label:i};return s!==void 0&&(a.kind=s),a}e.create=t;function n(r){const i=r;return A.objectLiteral(i)&&Z.is(i.position)&&(A.string(i.label)||A.typedArray(i.label,yr.is))&&(i.kind===void 0||xr.is(i.kind))&&i.textEdits===void 0||A.typedArray(i.textEdits,Ie.is)&&(i.tooltip===void 0||A.string(i.tooltip)||Ht.is(i.tooltip))&&(i.paddingLeft===void 0||A.boolean(i.paddingLeft))&&(i.paddingRight===void 0||A.boolean(i.paddingRight))}e.is=n})(Ra||(Ra={}));var Ea;(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(Ea||(Ea={}));var Ma;(function(e){function t(n,r,i,s){return{insertText:n,filterText:r,range:i,command:s}}e.create=t})(Ma||(Ma={}));var Ca;(function(e){function t(n){return{items:n}}e.create=t})(Ca||(Ca={}));var Ta;(function(e){e.Invoked=0,e.Automatic=1})(Ta||(Ta={}));var Pa;(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(Pa||(Pa={}));var Ia;(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(Ia||(Ia={}));var Fa;(function(e){function t(n){const r=n;return A.objectLiteral(r)&&lr.is(r.uri)&&A.string(r.name)}e.is=t})(Fa||(Fa={}));var Va;(function(e){function t(s,a,l,o){return new zu(s,a,l,o)}e.create=t;function n(s){let a=s;return!!(A.defined(a)&&A.string(a.uri)&&(A.undefined(a.languageId)||A.string(a.languageId))&&A.uinteger(a.lineCount)&&A.func(a.getText)&&A.func(a.positionAt)&&A.func(a.offsetAt))}e.is=n;function r(s,a){let l=s.getText(),o=i(a,(h,f)=>{let d=h.range.start.line-f.range.start.line;return d===0?h.range.start.character-f.range.start.character:d}),u=l.length;for(let h=o.length-1;h>=0;h--){let f=o[h],d=s.offsetAt(f.range.start),m=s.offsetAt(f.range.end);if(m<=u)l=l.substring(0,d)+f.newText+l.substring(m,l.length);else throw new Error("Overlapping edit");u=d}return l}e.applyEdits=r;function i(s,a){if(s.length<=1)return s;const l=s.length/2|0,o=s.slice(0,l),u=s.slice(l);i(o,a),i(u,a);let h=0,f=0,d=0;for(;h<o.length&&f<u.length;)a(o[h],u[f])<=0?s[d++]=o[h++]:s[d++]=u[f++];for(;h<o.length;)s[d++]=o[h++];for(;f<u.length;)s[d++]=u[f++];return s}})(Va||(Va={}));var zu=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n=i==="\r"||i===` +`,i==="\r"&&r+1<t.length&&t.charAt(r+1)===` +`&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(r===0)return Z.create(0,e);for(;n<r;){let s=Math.floor((n+r)/2);t[s]>e?r=s:n=s+1}let i=n-1;return Z.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}},A;(function(e){const t=Object.prototype.toString;function n(m){return typeof m<"u"}e.defined=n;function r(m){return typeof m>"u"}e.undefined=r;function i(m){return m===!0||m===!1}e.boolean=i;function s(m){return t.call(m)==="[object String]"}e.string=s;function a(m){return t.call(m)==="[object Number]"}e.number=a;function l(m,g,p){return t.call(m)==="[object Number]"&&g<=m&&m<=p}e.numberRange=l;function o(m){return t.call(m)==="[object Number]"&&-2147483648<=m&&m<=2147483647}e.integer=o;function u(m){return t.call(m)==="[object Number]"&&0<=m&&m<=2147483647}e.uinteger=u;function h(m){return t.call(m)==="[object Function]"}e.func=h;function f(m){return m!==null&&typeof m=="object"}e.objectLiteral=f;function d(m,g){return Array.isArray(m)&&m.every(g)}e.typedArray=d})(A||(A={}));var Da=class Cr{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){const n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){for(let r of t)if(Cr.isIncremental(r)){const i=Ba(r.range),s=this.offsetAt(i.start),a=this.offsetAt(i.end);this._content=this._content.substring(0,s)+r.text+this._content.substring(a,this._content.length);const l=Math.max(i.start.line,0),o=Math.max(i.end.line,0);let u=this._lineOffsets;const h=Oa(r.text,!1,s);if(o-l===h.length)for(let d=0,m=h.length;d<m;d++)u[d+l+1]=h[d];else h.length<1e4?u.splice(l+1,o-l,...h):this._lineOffsets=u=u.slice(0,l+1).concat(h,u.slice(o+1));const f=r.text.length-(a-s);if(f!==0)for(let d=l+1+h.length,m=u.length;d<m;d++)u[d]=u[d]+f}else if(Cr.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Oa(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:t};for(;r<i;){let a=Math.floor((r+i)/2);n[a]>t?i=a:r=a+1}let s=r-1;return{line:s,character:t-n[s]}}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}},Ae;(function(e){function t(i,s,a,l){return new Da(i,s,a,l)}e.create=t;function n(i,s,a){if(i instanceof Da)return i.update(s,a),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,s){let a=i.getText(),l=_r(s.map(Gu),(h,f)=>{let d=h.range.start.line-f.range.start.line;return d===0?h.range.start.character-f.range.start.character:d}),o=0;const u=[];for(const h of l){let f=i.offsetAt(h.range.start);if(f<o)throw new Error("Overlapping edit");f>o&&u.push(a.substring(o,f)),h.newText.length&&u.push(h.newText),o=i.offsetAt(h.range.end)}return u.push(a.substr(o)),u.join("")}e.applyEdits=r})(Ae||(Ae={}));function _r(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);_r(r,t),_r(i,t);let s=0,a=0,l=0;for(;s<r.length&&a<i.length;)t(r[s],i[a])<=0?e[l++]=r[s++]:e[l++]=i[a++];for(;s<r.length;)e[l++]=r[s++];for(;a<i.length;)e[l++]=i[a++];return e}function Oa(e,t,n=0){const r=t?[n]:[];for(let i=0;i<e.length;i++){let s=e.charCodeAt(i);(s===13||s===10)&&(s===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function Ba(e){const t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Gu(e){const t=Ba(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var q;(function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.Deprecated=2]="Deprecated",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.PropertyKeysMustBeDoublequoted=528]="PropertyKeysMustBeDoublequoted",e[e.SchemaResolveError=768]="SchemaResolveError",e[e.SchemaUnsupportedFeature=769]="SchemaUnsupportedFeature"})(q||(q={}));var ke;(function(e){e[e.v3=3]="v3",e[e.v4=4]="v4",e[e.v6=6]="v6",e[e.v7=7]="v7",e[e.v2019_09=19]="v2019_09",e[e.v2020_12=20]="v2020_12"})(ke||(ke={}));var wr;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[st.Markdown,st.PlainText],commitCharactersSupport:!0,labelDetailsSupport:!0}}}}})(wr||(wr={}));function E(...e){const t=e[0];let n,r,i;if(typeof t=="string")n=t,r=t,e.splice(0,1),i=!e||typeof e[0]!="object"?e:e[0];else if(t instanceof Array){const s=e.slice(1);if(t.length!==s.length+1)throw new Error("expected a string as the first argument to l10n.t");let a=t[0];for(let l=1;l<t.length;l++)a+=`{${l-1}}`+t[l];return E(a,...s)}else r=t.message,n=r,t.comment&&t.comment.length>0&&(n+=`/${Array.isArray(t.comment)?t.comment.join(""):t.comment}`),i=t.args??{};return Xu(r,i)}var Ju=/{([^}]+)}/g;function Xu(e,t){return Object.keys(t).length===0?e:e.replace(Ju,(n,r)=>t[r]??n)}var Qu={"color-hex":{errorMessage:E("Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:E("String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:E("String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:E("String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:E("String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}))$/},hostname:{errorMessage:E("String is not a hostname."),pattern:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i},ipv4:{errorMessage:E("String is not an IPv4 address."),pattern:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/},ipv6:{errorMessage:E("String is not an IPv6 address."),pattern:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i}},at=class{constructor(e,t,n=0){this.offset=t,this.length=n,this.parent=e}get children(){return[]}toString(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")}},Zu=class extends at{constructor(e,t){super(e,t),this.type="null",this.value=null}},Ua=class extends at{constructor(e,t,n){super(e,n),this.type="boolean",this.value=t}},Yu=class extends at{constructor(e,t){super(e,t),this.type="array",this.items=[]}get children(){return this.items}},Ku=class extends at{constructor(e,t){super(e,t),this.type="number",this.isInteger=!0,this.value=Number.NaN}},Lr=class extends at{constructor(e,t,n){super(e,t,n),this.type="string",this.value=""}},ec=class extends at{constructor(e,t,n){super(e,t),this.type="property",this.colonOffset=-1,this.keyNode=n}get children(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]}},tc=class extends at{constructor(e,t){super(e,t),this.type="object",this.properties=[]}get children(){return this.properties}};function be(e){return Pe(e)?e?{}:{not:{}}:e}var $a;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})($a||($a={}));var nc={"http://json-schema.org/draft-03/schema#":ke.v3,"http://json-schema.org/draft-04/schema#":ke.v4,"http://json-schema.org/draft-06/schema#":ke.v6,"http://json-schema.org/draft-07/schema#":ke.v7,"https://json-schema.org/draft/2019-09/schema":ke.v2019_09,"https://json-schema.org/draft/2020-12/schema":ke.v2020_12},qa=class{constructor(e){this.schemaDraft=e}},rc=class io{constructor(t=-1,n){this.focusOffset=t,this.exclude=n,this.schemas=[]}add(t){this.schemas.push(t)}merge(t){Array.prototype.push.apply(this.schemas,t.schemas)}include(t){return(this.focusOffset===-1||ja(t,this.focusOffset))&&t!==this.exclude}newSub(){return new io(-1,this.exclude)}},zt=class{constructor(){}get schemas(){return[]}add(e){}merge(e){}include(e){return!0}newSub(){return this}};zt.instance=new zt;var ue=class{constructor(){this.problems=[],this.propertiesMatches=0,this.processedProperties=new Set,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}hasProblems(){return!!this.problems.length}merge(e){this.problems=this.problems.concat(e.problems),this.propertiesMatches+=e.propertiesMatches,this.propertiesValueMatches+=e.propertiesValueMatches,this.mergeProcessedProperties(e)}mergeEnumValues(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(const t of this.problems)t.code===q.EnumValueMismatch&&(t.message=E("Value is not accepted. Valid values: {0}.",this.enumValues.map(n=>JSON.stringify(n)).join(", ")))}}mergePropertyMatch(e){this.problems=this.problems.concat(e.problems),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&e.enumValues.length===1&&this.primaryValueMatches++}mergeProcessedProperties(e){e.processedProperties.forEach(t=>this.processedProperties.add(t))}compare(e){const t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.propertiesMatches-e.propertiesMatches}};function ic(e,t=[]){return new Wa(e,t,[])}function ot(e){return ju(e)}function Nr(e){return qu(e)}function ja(e,t,n=!1){return t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}var Wa=class{constructor(e,t=[],n=[]){this.root=e,this.syntaxErrors=t,this.comments=n}getNodeFromOffset(e,t=!1){if(this.root)return $u(this.root,e,t)}visit(e){if(this.root){const t=n=>{let r=e(n);const i=n.children;if(Array.isArray(i))for(let s=0;s<i.length&&r;s++)r=t(i[s]);return r};t(this.root)}}validate(e,t,n=ge.Warning,r){if(this.root&&t){const i=new ue;return ae(this.root,t,i,zt.instance,new qa(r??Ha(t))),i.problems.map(s=>{const a=U.create(e.positionAt(s.location.offset),e.positionAt(s.location.offset+s.location.length));return Be.create(a,s.message,s.severity??n,s.code)})}}getMatchingSchemas(e,t=-1,n){if(this.root&&e){const r=new rc(t,n),i=Ha(e),s=new qa(i);return ae(this.root,e,new ue,r,s),r.schemas}return[]}};function Ha(e,t=ke.v2020_12){let n=e.$schema;return n?nc[n]??t:t}function ae(e,t,n,r,i){if(!e||!r.include(e))return;if(e.type==="property")return ae(e.valueNode,t,n,r,i);const s=e;switch(a(),s.type){case"object":h(s);break;case"array":u(s);break;case"string":o(s);break;case"number":l(s);break}r.add({node:s,schema:t});function a(){var S;function f(b){return s.type===b||b==="integer"&&s.type==="number"&&s.isInteger}if(Array.isArray(t.type)?t.type.some(f)||n.problems.push({location:{offset:s.offset,length:s.length},message:t.errorMessage||E("Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(f(t.type)||n.problems.push({location:{offset:s.offset,length:s.length},message:t.errorMessage||E('Incorrect type. Expected "{0}".',t.type)})),Array.isArray(t.allOf))for(const b of t.allOf){const w=new ue,v=r.newSub();ae(s,be(b),w,v,i),n.merge(w),r.merge(v)}const d=be(t.not);if(d){const b=new ue,w=r.newSub();ae(s,d,b,w,i),b.hasProblems()||n.problems.push({location:{offset:s.offset,length:s.length},message:t.errorMessage||E("Matches a schema that is not allowed.")});for(const v of w.schemas)v.inverted=!v.inverted,r.add(v)}const m=(b,w)=>{const v=[];let L;for(const R of b){const C=be(R),P=new ue,D=r.newSub();if(ae(s,C,P,D,i),P.hasProblems()||v.push(C),!L)L={schema:C,validationResult:P,matchingSchemas:D};else if(!w&&!P.hasProblems()&&!L.validationResult.hasProblems())L.matchingSchemas.merge(D),L.validationResult.propertiesMatches+=P.propertiesMatches,L.validationResult.propertiesValueMatches+=P.propertiesValueMatches,L.validationResult.mergeProcessedProperties(P);else{const N=P.compare(L.validationResult);N>0?L={schema:C,validationResult:P,matchingSchemas:D}:N===0&&(L.matchingSchemas.merge(D),L.validationResult.mergeEnumValues(P))}}return v.length>1&&w&&n.problems.push({location:{offset:s.offset,length:1},message:E("Matches multiple schemas when only one must validate.")}),L&&(n.merge(L.validationResult),r.merge(L.matchingSchemas)),v.length};Array.isArray(t.anyOf)&&m(t.anyOf,!1),Array.isArray(t.oneOf)&&m(t.oneOf,!0);const g=b=>{const w=new ue,v=r.newSub();ae(s,be(b),w,v,i),n.merge(w),r.merge(v)},p=(b,w,v)=>{const L=be(b),R=new ue,C=r.newSub();ae(s,L,R,C,i),r.merge(C),n.mergeProcessedProperties(R),R.hasProblems()?v&&g(v):w&&g(w)},x=be(t.if);if(x&&p(x,be(t.then),be(t.else)),Array.isArray(t.enum)){const b=ot(s);let w=!1;for(const v of t.enum)if(kt(b,v)){w=!0;break}n.enumValues=t.enum,n.enumValueMatch=w,w||n.problems.push({location:{offset:s.offset,length:s.length},code:q.EnumValueMismatch,message:t.errorMessage||E("Value is not accepted. Valid values: {0}.",t.enum.map(v=>JSON.stringify(v)).join(", "))})}if(Se(t.const)){const b=ot(s);kt(b,t.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:s.offset,length:s.length},code:q.EnumValueMismatch,message:t.errorMessage||E("Value must be {0}.",JSON.stringify(t.const))}),n.enumValueMatch=!1),n.enumValues=[t.const]}let _=t.deprecationMessage;if(_||t.deprecated){_=_||E("Value is deprecated");let b=((S=s.parent)==null?void 0:S.type)==="property"?s.parent:s;n.problems.push({location:{offset:b.offset,length:b.length},severity:ge.Warning,message:_,code:q.Deprecated})}}function l(f){const d=f.value;function m(w){var L;const v=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(w.toString());return v&&{value:Number(v[1]+(v[2]||"")),multiplier:(((L=v[2])==null?void 0:L.length)||0)-(parseInt(v[3])||0)}}if(le(t.multipleOf)){let w=-1;if(Number.isInteger(t.multipleOf))w=d%t.multipleOf;else{let v=m(t.multipleOf),L=m(d);if(v&&L){const R=10**Math.abs(L.multiplier-v.multiplier);L.multiplier<v.multiplier?L.value*=R:v.value*=R,w=L.value%v.value}}w!==0&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Value is not divisible by {0}.",t.multipleOf)})}function g(w,v){if(le(v))return v;if(Pe(v)&&v)return w}function p(w,v){if(!Pe(v)||!v)return w}const x=g(t.minimum,t.exclusiveMinimum);le(x)&&d<=x&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Value is below the exclusive minimum of {0}.",x)});const _=g(t.maximum,t.exclusiveMaximum);le(_)&&d>=_&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Value is above the exclusive maximum of {0}.",_)});const S=p(t.minimum,t.exclusiveMinimum);le(S)&&d<S&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Value is below the minimum of {0}.",S)});const b=p(t.maximum,t.exclusiveMaximum);le(b)&&d>b&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Value is above the maximum of {0}.",b)})}function o(f){if(le(t.minLength)&&qs(f.value)<t.minLength&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("String is shorter than the minimum length of {0}.",t.minLength)}),le(t.maxLength)&&qs(f.value)>t.maxLength&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("String is longer than the maximum length of {0}.",t.maxLength)}),$s(t.pattern)){const d=dn(t.pattern);d!=null&&d.test(f.value)||n.problems.push({location:{offset:f.offset,length:f.length},message:t.patternErrorMessage||t.errorMessage||E('String does not match the pattern of "{0}".',t.pattern)})}if(t.format)switch(t.format){case"uri":case"uri-reference":{let m;if(!f.value)m=E("URI expected.");else{const g=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(f.value);g?!g[2]&&t.format==="uri"&&(m=E("URI with a scheme is expected.")):m=E("URI is expected.")}m&&n.problems.push({location:{offset:f.offset,length:f.length},message:t.patternErrorMessage||t.errorMessage||E("String is not a URI: {0}",m)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":case"hostname":case"ipv4":case"ipv6":const d=Qu[t.format];(!f.value||!d.pattern.exec(f.value))&&n.problems.push({location:{offset:f.offset,length:f.length},message:t.patternErrorMessage||t.errorMessage||d.errorMessage})}}function u(f){let d,m;i.schemaDraft>=ke.v2020_12?(d=t.prefixItems,m=Array.isArray(t.items)?void 0:t.items):(d=Array.isArray(t.items)?t.items:void 0,m=Array.isArray(t.items)?t.additionalItems:t.items);let g=0;if(d!==void 0){const _=Math.min(d.length,f.items.length);for(;g<_;g++){const S=d[g],b=be(S),w=new ue,v=f.items[g];v&&(ae(v,b,w,r,i),n.mergePropertyMatch(w)),n.processedProperties.add(String(g))}}if(m!==void 0&&g<f.items.length)if(typeof m=="boolean")for(m===!1&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Array has too many items according to schema. Expected {0} or fewer.",g)});g<f.items.length;g++)n.processedProperties.add(String(g)),n.propertiesValueMatches++;else for(;g<f.items.length;g++){const _=new ue;ae(f.items[g],m,_,r,i),n.mergePropertyMatch(_),n.processedProperties.add(String(g))}const p=be(t.contains);if(p){let _=0;for(let S=0;S<f.items.length;S++){const b=f.items[S],w=new ue;ae(b,p,w,zt.instance,i),w.hasProblems()||(_++,i.schemaDraft>=ke.v2020_12&&n.processedProperties.add(String(S)))}_===0&&!le(t.minContains)&&n.problems.push({location:{offset:f.offset,length:f.length},message:t.errorMessage||E("Array does not contain required item.")}),le(t.minContains)&&_<t.minContains&&n.problems.push({location:{offset:f.offset,length:f.length},message:t.errorMessage||E("Array has too few items that match the contains contraint. Expected {0} or more.",t.minContains)}),le(t.maxContains)&&_>t.maxContains&&n.problems.push({location:{offset:f.offset,length:f.length},message:t.errorMessage||E("Array has too many items that match the contains contraint. Expected {0} or less.",t.maxContains)})}const x=t.unevaluatedItems;if(x!==void 0)for(let _=0;_<f.items.length;_++){if(!n.processedProperties.has(String(_)))if(x===!1)n.problems.push({location:{offset:f.offset,length:f.length},message:E("Item does not match any validation rule from the array.")});else{const S=new ue;ae(f.items[_],t.unevaluatedItems,S,r,i),n.mergePropertyMatch(S)}n.processedProperties.add(String(_)),n.propertiesValueMatches++}if(le(t.minItems)&&f.items.length<t.minItems&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Array has too few items. Expected {0} or more.",t.minItems)}),le(t.maxItems)&&f.items.length>t.maxItems&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Array has too many items. Expected {0} or fewer.",t.maxItems)}),t.uniqueItems===!0){let _=function(){for(let b=0;b<S.length-1;b++){const w=S[b];for(let v=b+1;v<S.length;v++)if(kt(w,S[v]))return!0}return!1};const S=ot(f);_()&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Array has duplicate items.")})}}function h(f){const d=Object.create(null),m=new Set;for(const b of f.properties){const w=b.keyNode.value;d[w]=b.valueNode,m.add(w)}if(Array.isArray(t.required)){for(const b of t.required)if(!d[b]){const w=f.parent&&f.parent.type==="property"&&f.parent.keyNode,v=w?{offset:w.offset,length:w.length}:{offset:f.offset,length:1};n.problems.push({location:v,message:E('Missing property "{0}".',b)})}}const g=b=>{m.delete(b),n.processedProperties.add(b)};if(t.properties)for(const b of Object.keys(t.properties)){g(b);const w=t.properties[b],v=d[b];if(v)if(Pe(w))if(w)n.propertiesMatches++,n.propertiesValueMatches++;else{const L=v.parent;n.problems.push({location:{offset:L.keyNode.offset,length:L.keyNode.length},message:t.errorMessage||E("Property {0} is not allowed.",b)})}else{const L=new ue;ae(v,w,L,r,i),n.mergePropertyMatch(L)}}if(t.patternProperties)for(const b of Object.keys(t.patternProperties)){const w=dn(b);if(w){const v=[];for(const L of m)if(w.test(L)){v.push(L);const R=d[L];if(R){const C=t.patternProperties[b];if(Pe(C))if(C)n.propertiesMatches++,n.propertiesValueMatches++;else{const P=R.parent;n.problems.push({location:{offset:P.keyNode.offset,length:P.keyNode.length},message:t.errorMessage||E("Property {0} is not allowed.",L)})}else{const P=new ue;ae(R,C,P,r,i),n.mergePropertyMatch(P)}}}v.forEach(g)}}const p=t.additionalProperties;if(p!==void 0)for(const b of m){g(b);const w=d[b];if(w){if(p===!1){const v=w.parent;n.problems.push({location:{offset:v.keyNode.offset,length:v.keyNode.length},message:t.errorMessage||E("Property {0} is not allowed.",b)})}else if(p!==!0){const v=new ue;ae(w,p,v,r,i),n.mergePropertyMatch(v)}}}const x=t.unevaluatedProperties;if(x!==void 0){const b=[];for(const w of m)if(!n.processedProperties.has(w)){b.push(w);const v=d[w];if(v){if(x===!1){const L=v.parent;n.problems.push({location:{offset:L.keyNode.offset,length:L.keyNode.length},message:t.errorMessage||E("Property {0} is not allowed.",w)})}else if(x!==!0){const L=new ue;ae(v,x,L,r,i),n.mergePropertyMatch(L)}}}b.forEach(g)}if(le(t.maxProperties)&&f.properties.length>t.maxProperties&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Object has more properties than limit of {0}.",t.maxProperties)}),le(t.minProperties)&&f.properties.length<t.minProperties&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Object has fewer properties than the required number of {0}",t.minProperties)}),t.dependentRequired)for(const b in t.dependentRequired){const w=d[b],v=t.dependentRequired[b];w&&Array.isArray(v)&&S(b,v)}if(t.dependentSchemas)for(const b in t.dependentSchemas){const w=d[b],v=t.dependentSchemas[b];w&&Qe(v)&&S(b,v)}if(t.dependencies)for(const b in t.dependencies)d[b]&&S(b,t.dependencies[b]);const _=be(t.propertyNames);if(_)for(const b of f.properties){const w=b.keyNode;w&&ae(w,_,n,zt.instance,i)}function S(b,w){if(Array.isArray(w))for(const v of w)d[v]?n.propertiesValueMatches++:n.problems.push({location:{offset:f.offset,length:f.length},message:E("Object is missing property {0} required by property {1}.",v,b)});else{const v=be(w);if(v){const L=new ue;ae(f,v,L,r,i),n.mergePropertyMatch(L)}}}}}function sc(e,t){const n=[];let r=-1;const i=e.getText(),s=it(i,!1),a=t&&t.collectComments?[]:void 0;function l(){for(;;){const L=s.scan();switch(h(),L){case 12:case 13:Array.isArray(a)&&a.push(U.create(e.positionAt(s.getTokenOffset()),e.positionAt(s.getTokenOffset()+s.getTokenLength())));break;case 15:case 14:break;default:return L}}}function o(L,R,C,P,D=ge.Error){if(n.length===0||C!==r){const N=U.create(e.positionAt(C),e.positionAt(P));n.push(Be.create(N,L,D,R,e.languageId)),r=C}}function u(L,R,C=void 0,P=[],D=[]){let N=s.getTokenOffset(),y=s.getTokenOffset()+s.getTokenLength();if(N===y&&N>0){for(N--;N>0&&/\s/.test(i.charAt(N));)N--;y=N+1}if(o(L,R,N,y),C&&f(C,!1),P.length+D.length>0){let k=s.getToken();for(;k!==17;){if(P.indexOf(k)!==-1){l();break}else if(D.indexOf(k)!==-1)break;k=l()}}return C}function h(){switch(s.getTokenError()){case 4:return u(E("Invalid unicode sequence in string."),q.InvalidUnicode),!0;case 5:return u(E("Invalid escape character in string."),q.InvalidEscapeCharacter),!0;case 3:return u(E("Unexpected end of number."),q.UnexpectedEndOfNumber),!0;case 1:return u(E("Unexpected end of comment."),q.UnexpectedEndOfComment),!0;case 2:return u(E("Unexpected end of string."),q.UnexpectedEndOfString),!0;case 6:return u(E("Invalid characters in string. Control characters must be escaped."),q.InvalidCharacter),!0}return!1}function f(L,R){return L.length=s.getTokenOffset()+s.getTokenLength()-L.offset,R&&l(),L}function d(L){if(s.getToken()!==3)return;const R=new Yu(L,s.getTokenOffset());l();let C=!1;for(;s.getToken()!==4&&s.getToken()!==17;){if(s.getToken()===5){C||u(E("Value expected"),q.ValueExpected);const D=s.getTokenOffset();if(l(),s.getToken()===4){C&&o(E("Trailing comma"),q.TrailingComma,D,D+1);continue}}else C&&u(E("Expected comma"),q.CommaExpected);const P=b(R);P?R.items.push(P):u(E("Value expected"),q.ValueExpected,void 0,[],[4,5]),C=!0}return s.getToken()!==4?u(E("Expected comma or closing bracket"),q.CommaOrCloseBacketExpected,R):f(R,!0)}const m=new Lr(void 0,0,0);function g(L,R){const C=new ec(L,s.getTokenOffset(),m);let P=x(C);if(!P)if(s.getToken()===16){u(E("Property keys must be doublequoted"),q.PropertyKeysMustBeDoublequoted);const N=new Lr(C,s.getTokenOffset(),s.getTokenLength());N.value=s.getTokenValue(),P=N,l()}else return;if(C.keyNode=P,P.value!=="//"){const N=R[P.value];N?(o(E("Duplicate object key"),q.DuplicateKey,C.keyNode.offset,C.keyNode.offset+C.keyNode.length,ge.Warning),Qe(N)&&o(E("Duplicate object key"),q.DuplicateKey,N.keyNode.offset,N.keyNode.offset+N.keyNode.length,ge.Warning),R[P.value]=!0):R[P.value]=C}if(s.getToken()===6)C.colonOffset=s.getTokenOffset(),l();else if(u(E("Colon expected"),q.ColonExpected),s.getToken()===10&&e.positionAt(P.offset+P.length).line<e.positionAt(s.getTokenOffset()).line)return C.length=P.length,C;const D=b(C);return D?(C.valueNode=D,C.length=D.offset+D.length-C.offset,C):u(E("Value expected"),q.ValueExpected,C,[],[2,5])}function p(L){if(s.getToken()!==1)return;const R=new tc(L,s.getTokenOffset()),C=Object.create(null);l();let P=!1;for(;s.getToken()!==2&&s.getToken()!==17;){if(s.getToken()===5){P||u(E("Property expected"),q.PropertyExpected);const N=s.getTokenOffset();if(l(),s.getToken()===2){P&&o(E("Trailing comma"),q.TrailingComma,N,N+1);continue}}else P&&u(E("Expected comma"),q.CommaExpected);const D=g(R,C);D?R.properties.push(D):u(E("Property expected"),q.PropertyExpected,void 0,[],[2,5]),P=!0}return s.getToken()!==2?u(E("Expected comma or closing brace"),q.CommaOrCloseBraceExpected,R):f(R,!0)}function x(L){if(s.getToken()!==10)return;const R=new Lr(L,s.getTokenOffset());return R.value=s.getTokenValue(),f(R,!0)}function _(L){if(s.getToken()!==11)return;const R=new Ku(L,s.getTokenOffset());if(s.getTokenError()===0){const C=s.getTokenValue();try{const P=JSON.parse(C);if(!le(P))return u(E("Invalid number format."),q.Undefined,R);R.value=P}catch{return u(E("Invalid number format."),q.Undefined,R)}R.isInteger=C.indexOf(".")===-1}return f(R,!0)}function S(L){switch(s.getToken()){case 7:return f(new Zu(L,s.getTokenOffset()),!0);case 8:return f(new Ua(L,!0,s.getTokenOffset()),!0);case 9:return f(new Ua(L,!1,s.getTokenOffset()),!0);default:return}}function b(L){return d(L)||p(L)||x(L)||_(L)||S(L)}let w;return l()!==17&&(w=b(w),w?s.getToken()!==17&&u(E("End of file expected."),q.Undefined):u(E("Expected a JSON object, array or literal."),q.Undefined)),new Wa(w,n,a)}function Sr(e,t,n){if(e!==null&&typeof e=="object"){const r=t+" ";if(Array.isArray(e)){if(e.length===0)return"[]";let i=`[ +`;for(let s=0;s<e.length;s++)i+=r+Sr(e[s],r,n),s<e.length-1&&(i+=","),i+=` +`;return i+=t+"]",i}else{const i=Object.keys(e);if(i.length===0)return"{}";let s=`{ +`;for(let a=0;a<i.length;a++){const l=i[a];s+=r+JSON.stringify(l)+": "+Sr(e[l],r,n),a<i.length-1&&(s+=","),s+=` +`}return s+=t+"}",s}}return n(e)}var ac=class{constructor(e,t=[],n=Promise,r={}){this.schemaService=e,this.contributions=t,this.promiseConstructor=n,this.clientCapabilities=r}doResolve(e){for(let t=this.contributions.length-1;t>=0;t--){const n=this.contributions[t].resolveCompletion;if(n){const r=n(e);if(r)return r}}return this.promiseConstructor.resolve(e)}doComplete(e,t,n){const r={items:[],isIncomplete:!1},i=e.getText(),s=e.offsetAt(t);let a=n.getNodeFromOffset(s,!0);if(this.isInComment(e,a?a.offset:0,s))return Promise.resolve(r);if(a&&s===a.offset+a.length&&s>0){const f=i[s-1];(a.type==="object"&&f==="}"||a.type==="array"&&f==="]")&&(a=a.parent)}const l=this.getCurrentWord(e,s);let o;if(a&&(a.type==="string"||a.type==="number"||a.type==="boolean"||a.type==="null"))o=U.create(e.positionAt(a.offset),e.positionAt(a.offset+a.length));else{let f=s-l.length;f>0&&i[f-1]==='"'&&f--,o=U.create(e.positionAt(f),t)}const u=new Map,h={add:f=>{let d=f.label;const m=u.get(d);if(m)m.documentation||(m.documentation=f.documentation),m.detail||(m.detail=f.detail),m.labelDetails||(m.labelDetails=f.labelDetails);else{if(d=d.replace(/[\n]/g,"↵"),d.length>60){const g=d.substr(0,57).trim()+"...";u.has(g)||(d=g)}f.textEdit=Ie.replace(o,f.insertText),f.label=d,u.set(d,f),r.items.push(f)}},setAsIncomplete:()=>{r.isIncomplete=!0},error:f=>{console.error(f)},getNumberOfProposals:()=>r.items.length};return this.schemaService.getSchemaForResource(e.uri,n).then(f=>{const d=[];let m=!0,g="",p;if(a&&a.type==="string"){const _=a.parent;_&&_.type==="property"&&_.keyNode===a&&(m=!_.valueNode,p=_,g=i.substr(a.offset+1,a.length-2),_&&(a=_.parent))}if(a&&a.type==="object"){if(a.offset===s)return r;a.properties.forEach(w=>{(!p||p!==w)&&u.set(w.keyNode.value,vr.create("__"))});let S="";m&&(S=this.evaluateSeparatorAfter(e,e.offsetAt(o.end))),f?this.getPropertyCompletions(f,n,a,m,S,h):this.getSchemaLessPropertyCompletions(n,a,g,h);const b=Nr(a);this.contributions.forEach(w=>{const v=w.collectPropertyCompletions(e.uri,b,l,m,S==="",h);v&&d.push(v)}),!f&&l.length>0&&i.charAt(s-l.length-1)!=='"'&&(h.add({kind:pe.Property,label:this.getLabelForValue(l),insertText:this.getInsertTextForProperty(l,void 0,!1,S),insertTextFormat:ne.Snippet,documentation:""}),h.setAsIncomplete())}const x={};return f?this.getValueCompletions(f,n,a,s,e,h,x):this.getSchemaLessValueCompletions(n,a,s,e,h),this.contributions.length>0&&this.getContributedValueCompletions(n,a,s,e,h,d),this.promiseConstructor.all(d).then(()=>{if(h.getNumberOfProposals()===0){let _=s;a&&(a.type==="string"||a.type==="number"||a.type==="boolean"||a.type==="null")&&(_=a.offset+a.length);const S=this.evaluateSeparatorAfter(e,_);this.addFillerValueCompletions(x,S,h)}return r})})}getPropertyCompletions(e,t,n,r,i,s){t.getMatchingSchemas(e.schema,n.offset).forEach(l=>{if(l.node===n&&!l.inverted){const o=l.schema.properties;o&&Object.keys(o).forEach(h=>{const f=o[h];if(typeof f=="object"&&!f.deprecationMessage&&!f.doNotSuggest){const d={kind:pe.Property,label:h,insertText:this.getInsertTextForProperty(h,f,r,i),insertTextFormat:ne.Snippet,filterText:this.getFilterTextForValue(h),documentation:this.fromMarkup(f.markdownDescription)||f.description||""};f.suggestSortText!==void 0&&(d.sortText=f.suggestSortText),d.insertText&&jt(d.insertText,`$1${i}`)&&(d.command={title:"Suggest",command:"editor.action.triggerSuggest"}),s.add(d)}});const u=l.schema.propertyNames;if(typeof u=="object"&&!u.deprecationMessage&&!u.doNotSuggest){const h=(f,d=void 0)=>{const m={kind:pe.Property,label:f,insertText:this.getInsertTextForProperty(f,void 0,r,i),insertTextFormat:ne.Snippet,filterText:this.getFilterTextForValue(f),documentation:d||this.fromMarkup(u.markdownDescription)||u.description||""};u.suggestSortText!==void 0&&(m.sortText=u.suggestSortText),m.insertText&&jt(m.insertText,`$1${i}`)&&(m.command={title:"Suggest",command:"editor.action.triggerSuggest"}),s.add(m)};if(u.enum)for(let f=0;f<u.enum.length;f++){let d;u.markdownEnumDescriptions&&f<u.markdownEnumDescriptions.length?d=this.fromMarkup(u.markdownEnumDescriptions[f]):u.enumDescriptions&&f<u.enumDescriptions.length&&(d=u.enumDescriptions[f]),h(u.enum[f],d)}u.const&&h(u.const)}}})}getSchemaLessPropertyCompletions(e,t,n,r){const i=s=>{s.properties.forEach(a=>{const l=a.keyNode.value;r.add({kind:pe.Property,label:l,insertText:this.getInsertTextForValue(l,""),insertTextFormat:ne.Snippet,filterText:this.getFilterTextForValue(l),documentation:""})})};if(t.parent)if(t.parent.type==="property"){const s=t.parent.keyNode.value;e.visit(a=>(a.type==="property"&&a!==t.parent&&a.keyNode.value===s&&a.valueNode&&a.valueNode.type==="object"&&i(a.valueNode),!0))}else t.parent.type==="array"&&t.parent.items.forEach(s=>{s.type==="object"&&s!==t&&i(s)});else t.type==="object"&&r.add({kind:pe.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",void 0,!0,""),insertTextFormat:ne.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})}getSchemaLessValueCompletions(e,t,n,r,i){let s=n;if(t&&(t.type==="string"||t.type==="number"||t.type==="boolean"||t.type==="null")&&(s=t.offset+t.length,t=t.parent),!t){i.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:ne.Snippet,documentation:""}),i.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:ne.Snippet,documentation:""});return}const a=this.evaluateSeparatorAfter(r,s),l=o=>{o.parent&&!ja(o.parent,n,!0)&&i.add({kind:this.getSuggestionKind(o.type),label:this.getLabelTextForMatchingNode(o,r),insertText:this.getInsertTextForMatchingNode(o,r,a),insertTextFormat:ne.Snippet,documentation:""}),o.type==="boolean"&&this.addBooleanValueCompletion(!o.value,a,i)};if(t.type==="property"&&n>(t.colonOffset||0)){const o=t.valueNode;if(o&&(n>o.offset+o.length||o.type==="object"||o.type==="array"))return;const u=t.keyNode.value;e.visit(h=>(h.type==="property"&&h.keyNode.value===u&&h.valueNode&&l(h.valueNode),!0)),u==="$schema"&&t.parent&&!t.parent.parent&&this.addDollarSchemaCompletions(a,i)}if(t.type==="array")if(t.parent&&t.parent.type==="property"){const o=t.parent.keyNode.value;e.visit(u=>(u.type==="property"&&u.keyNode.value===o&&u.valueNode&&u.valueNode.type==="array"&&u.valueNode.items.forEach(l),!0))}else t.items.forEach(l)}getValueCompletions(e,t,n,r,i,s,a){let l=r,o,u;if(n&&(n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(l=n.offset+n.length,u=n,n=n.parent),!n){this.addSchemaValueCompletions(e.schema,"",s,a);return}if(n.type==="property"&&r>(n.colonOffset||0)){const h=n.valueNode;if(h&&r>h.offset+h.length)return;o=n.keyNode.value,n=n.parent}if(n&&(o!==void 0||n.type==="array")){const h=this.evaluateSeparatorAfter(i,l),f=t.getMatchingSchemas(e.schema,n.offset,u);for(const d of f)if(d.node===n&&!d.inverted&&d.schema){if(n.type==="array"&&d.schema.items){let m=s;if(d.schema.uniqueItems){const g=new Set;n.children.forEach(p=>{p.type!=="array"&&p.type!=="object"&&g.add(this.getLabelForValue(ot(p)))}),m={...s,add(p){g.has(p.label)||s.add(p)}}}if(Array.isArray(d.schema.items)){const g=this.findItemAtOffset(n,i,r);g<d.schema.items.length&&this.addSchemaValueCompletions(d.schema.items[g],h,m,a)}else this.addSchemaValueCompletions(d.schema.items,h,m,a)}if(o!==void 0){let m=!1;if(d.schema.properties){const g=d.schema.properties[o];g&&(m=!0,this.addSchemaValueCompletions(g,h,s,a))}if(d.schema.patternProperties&&!m)for(const g of Object.keys(d.schema.patternProperties)){const p=dn(g);if(p!=null&&p.test(o)){m=!0;const x=d.schema.patternProperties[g];this.addSchemaValueCompletions(x,h,s,a)}}if(d.schema.additionalProperties&&!m){const g=d.schema.additionalProperties;this.addSchemaValueCompletions(g,h,s,a)}}}o==="$schema"&&!n.parent&&this.addDollarSchemaCompletions(h,s),a.boolean&&(this.addBooleanValueCompletion(!0,h,s),this.addBooleanValueCompletion(!1,h,s)),a.null&&this.addNullValueCompletion(h,s)}}getContributedValueCompletions(e,t,n,r,i,s){if(!t)this.contributions.forEach(a=>{const l=a.collectDefaultCompletions(r.uri,i);l&&s.push(l)});else if((t.type==="string"||t.type==="number"||t.type==="boolean"||t.type==="null")&&(t=t.parent),t&&t.type==="property"&&n>(t.colonOffset||0)){const a=t.keyNode.value,l=t.valueNode;if((!l||n<=l.offset+l.length)&&t.parent){const o=Nr(t.parent);this.contributions.forEach(u=>{const h=u.collectValueCompletions(r.uri,o,a,i);h&&s.push(h)})}}}addSchemaValueCompletions(e,t,n,r){typeof e=="object"&&(this.addEnumValueCompletions(e,t,n),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),Array.isArray(e.allOf)&&e.allOf.forEach(i=>this.addSchemaValueCompletions(i,t,n,r)),Array.isArray(e.anyOf)&&e.anyOf.forEach(i=>this.addSchemaValueCompletions(i,t,n,r)),Array.isArray(e.oneOf)&&e.oneOf.forEach(i=>this.addSchemaValueCompletions(i,t,n,r)))}addDefaultValueCompletions(e,t,n,r=0){let i=!1;if(Se(e.default)){let s=e.type,a=e.default;for(let o=r;o>0;o--)a=[a],s="array";const l={kind:this.getSuggestionKind(s),label:this.getLabelForValue(a),insertText:this.getInsertTextForValue(a,t),insertTextFormat:ne.Snippet};this.doesSupportsLabelDetails()?l.labelDetails={description:E("Default value")}:l.detail=E("Default value"),n.add(l),i=!0}Array.isArray(e.examples)&&e.examples.forEach(s=>{let a=e.type,l=s;for(let o=r;o>0;o--)l=[l],a="array";n.add({kind:this.getSuggestionKind(a),label:this.getLabelForValue(l),insertText:this.getInsertTextForValue(l,t),insertTextFormat:ne.Snippet}),i=!0}),Array.isArray(e.defaultSnippets)&&e.defaultSnippets.forEach(s=>{let a=e.type,l=s.body,o=s.label,u,h;if(Se(l)){e.type;for(let f=r;f>0;f--)l=[l];u=this.getInsertTextForSnippetValue(l,t),h=this.getFilterTextForSnippetValue(l),o=o||this.getLabelForSnippetValue(l)}else if(typeof s.bodyText=="string"){let f="",d="",m="";for(let g=r;g>0;g--)f=f+m+`[ +`,d=d+` +`+m+"]",m+=" ",a="array";u=f+m+s.bodyText.split(` +`).join(` +`+m)+d+t,o=o||u,h=u.replace(/[\n]/g,"")}else return;n.add({kind:this.getSuggestionKind(a),label:o,documentation:this.fromMarkup(s.markdownDescription)||s.description,insertText:u,insertTextFormat:ne.Snippet,filterText:h}),i=!0}),!i&&typeof e.items=="object"&&!Array.isArray(e.items)&&r<5&&this.addDefaultValueCompletions(e.items,t,n,r+1)}addEnumValueCompletions(e,t,n){if(Se(e.const)&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t),insertTextFormat:ne.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(let r=0,i=e.enum.length;r<i;r++){const s=e.enum[r];let a=this.fromMarkup(e.markdownDescription)||e.description;e.markdownEnumDescriptions&&r<e.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?a=this.fromMarkup(e.markdownEnumDescriptions[r]):e.enumDescriptions&&r<e.enumDescriptions.length&&(a=e.enumDescriptions[r]),n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(s),insertText:this.getInsertTextForValue(s,t),insertTextFormat:ne.Snippet,documentation:a})}}collectTypes(e,t){if(Array.isArray(e.enum)||Se(e.const))return;const n=e.type;Array.isArray(n)?n.forEach(r=>t[r]=!0):n&&(t[n]=!0)}addFillerValueCompletions(e,t,n){e.object&&n.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},t),insertTextFormat:ne.Snippet,detail:E("New object"),documentation:""}),e.array&&n.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],t),insertTextFormat:ne.Snippet,detail:E("New array"),documentation:""})}addBooleanValueCompletion(e,t,n){n.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t),insertTextFormat:ne.Snippet,documentation:""})}addNullValueCompletion(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:ne.Snippet,documentation:""})}addDollarSchemaCompletions(e,t){this.schemaService.getRegisteredSchemaIds(r=>r==="http"||r==="https").forEach(r=>{r.startsWith("http://json-schema.org/draft-")&&(r=r+"#"),t.add({kind:pe.Module,label:this.getLabelForValue(r),filterText:this.getFilterTextForValue(r),insertText:this.getInsertTextForValue(r,e),insertTextFormat:ne.Snippet,documentation:""})})}getLabelForValue(e){return JSON.stringify(e)}getValueFromLabel(e){return JSON.parse(e)}getFilterTextForValue(e){return JSON.stringify(e)}getFilterTextForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getLabelForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getInsertTextForPlainText(e){return e.replace(/[\\\$\}]/g,"\\$&")}getInsertTextForValue(e,t){const n=JSON.stringify(e,null," ");return n==="{}"?"{$1}"+t:n==="[]"?"[$1]"+t:this.getInsertTextForPlainText(n+t)}getInsertTextForSnippetValue(e,t){return Sr(e,"",r=>typeof r=="string"&&r[0]==="^"?r.substr(1):JSON.stringify(r))+t}getInsertTextForGuessedValue(e,t){switch(typeof e){case"object":return e===null?"${1:null}"+t:this.getInsertTextForValue(e,t);case"string":let n=JSON.stringify(e);return n=n.substr(1,n.length-2),n=this.getInsertTextForPlainText(n),'"${1:'+n+'}"'+t;case"number":case"boolean":return"${1:"+JSON.stringify(e)+"}"+t}return this.getInsertTextForValue(e,t)}getSuggestionKind(e){if(Array.isArray(e)){const t=e;e=t.length>0?t[0]:void 0}if(!e)return pe.Value;switch(e){case"string":return pe.Value;case"object":return pe.Module;case"property":return pe.Property;default:return pe.Value}}getLabelTextForMatchingNode(e,t){switch(e.type){case"array":return"[]";case"object":return"{}";default:return t.getText().substr(e.offset,e.length)}}getInsertTextForMatchingNode(e,t,n){switch(e.type){case"array":return this.getInsertTextForValue([],n);case"object":return this.getInsertTextForValue({},n);default:const r=t.getText().substr(e.offset,e.length)+n;return this.getInsertTextForPlainText(r)}}getInsertTextForProperty(e,t,n,r){const i=this.getInsertTextForValue(e,"");if(!n)return i;const s=i+": ";let a,l=0;if(t){if(Array.isArray(t.defaultSnippets)){if(t.defaultSnippets.length===1){const o=t.defaultSnippets[0].body;Se(o)&&(a=this.getInsertTextForSnippetValue(o,""))}l+=t.defaultSnippets.length}if(t.enum&&(!a&&t.enum.length===1&&(a=this.getInsertTextForGuessedValue(t.enum[0],"")),l+=t.enum.length),Se(t.const)&&(a||(a=this.getInsertTextForGuessedValue(t.const,"")),l++),Se(t.default)&&(a||(a=this.getInsertTextForGuessedValue(t.default,"")),l++),Array.isArray(t.examples)&&t.examples.length&&(a||(a=this.getInsertTextForGuessedValue(t.examples[0],"")),l+=t.examples.length),l===0){let o=Array.isArray(t.type)?t.type[0]:t.type;switch(o||(t.properties?o="object":t.items&&(o="array")),o){case"boolean":a="$1";break;case"string":a='"$1"';break;case"object":a="{$1}";break;case"array":a="[$1]";break;case"number":case"integer":a="${1:0}";break;case"null":a="${1:null}";break;default:return i}}}return(!a||l>1)&&(a="$1"),s+a+r}getCurrentWord(e,t){let n=t-1;const r=e.getText();for(;n>=0&&` +\r\v":{[,]}`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,t)}evaluateSeparatorAfter(e,t){const n=it(e.getText(),!0);switch(n.setPosition(t),n.scan()){case 5:case 2:case 4:case 17:return"";default:return","}}findItemAtOffset(e,t,n){const r=it(t.getText(),!0),i=e.items;for(let s=i.length-1;s>=0;s--){const a=i[s];if(n>a.offset+a.length)return r.setPosition(a.offset+a.length),r.scan()===5&&n>=r.getTokenOffset()+r.getTokenLength()?s+1:s;if(n>=a.offset)return s}return 0}isInComment(e,t,n){const r=it(e.getText(),!1);r.setPosition(t);let i=r.scan();for(;i!==17&&r.getTokenOffset()+r.getTokenLength()<n;)i=r.scan();return(i===12||i===13)&&r.getTokenOffset()<=n}fromMarkup(e){if(e&&this.doesSupportMarkdown())return{kind:st.Markdown,value:e}}doesSupportMarkdown(){var e,t,n;if(!Se(this.supportsMarkdown)){const r=(n=(t=(e=this.clientCapabilities.textDocument)==null?void 0:e.completion)==null?void 0:t.completionItem)==null?void 0:n.documentationFormat;this.supportsMarkdown=Array.isArray(r)&&r.indexOf(st.Markdown)!==-1}return this.supportsMarkdown}doesSupportsCommitCharacters(){var e,t,n;return Se(this.supportsCommitCharacters)||(this.labelDetailsSupport=(n=(t=(e=this.clientCapabilities.textDocument)==null?void 0:e.completion)==null?void 0:t.completionItem)==null?void 0:n.commitCharactersSupport),this.supportsCommitCharacters}doesSupportsLabelDetails(){var e,t,n;return Se(this.labelDetailsSupport)||(this.labelDetailsSupport=(n=(t=(e=this.clientCapabilities.textDocument)==null?void 0:e.completion)==null?void 0:t.completionItem)==null?void 0:n.labelDetailsSupport),this.labelDetailsSupport}},oc=class{constructor(e,t=[],n){this.schemaService=e,this.contributions=t,this.promise=n||Promise}doHover(e,t,n){const r=e.offsetAt(t);let i=n.getNodeFromOffset(r);if(!i||(i.type==="object"||i.type==="array")&&r>i.offset+1&&r<i.offset+i.length-1)return this.promise.resolve(null);const s=i;if(i.type==="string"){const u=i.parent;if(u&&u.type==="property"&&u.keyNode===i&&(i=u.valueNode,!i))return this.promise.resolve(null)}const a=U.create(e.positionAt(s.offset),e.positionAt(s.offset+s.length)),l=u=>({contents:u,range:a}),o=Nr(i);for(let u=this.contributions.length-1;u>=0;u--){const f=this.contributions[u].getInfoContribution(e.uri,o);if(f)return f.then(d=>l(d))}return this.schemaService.getSchemaForResource(e.uri,n).then(u=>{if(u&&i){const h=n.getMatchingSchemas(u.schema,i.offset);let f,d,m,g;h.every(x=>{if(x.node===i&&!x.inverted&&x.schema&&(f=f||x.schema.title,d=d||x.schema.markdownDescription||Ar(x.schema.description),x.schema.enum)){const _=x.schema.enum.indexOf(ot(i));x.schema.markdownEnumDescriptions?m=x.schema.markdownEnumDescriptions[_]:x.schema.enumDescriptions&&(m=Ar(x.schema.enumDescriptions[_])),m&&(g=x.schema.enum[_],typeof g!="string"&&(g=JSON.stringify(g)))}return!0});let p="";return f&&(p=Ar(f)),d&&(p.length>0&&(p+=` + +`),p+=d),m&&(p.length>0&&(p+=` + +`),p+=`\`${lc(g)}\`: ${m}`),l([p])}return null})}};function Ar(e){if(e)return e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1 + +$3`).replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function lc(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}var uc=class{constructor(e,t){this.jsonSchemaService=e,this.promise=t,this.validationEnabled=!0}configure(e){e&&(this.validationEnabled=e.validate!==!1,this.commentSeverity=e.allowComments?void 0:ge.Error)}doValidation(e,t,n,r){if(!this.validationEnabled)return this.promise.resolve([]);const i=[],s={},a=o=>{const u=o.range.start.line+" "+o.range.start.character+" "+o.message;s[u]||(s[u]=!0,i.push(o))},l=o=>{let u=n!=null&&n.trailingCommas?vn(n.trailingCommas):ge.Error,h=n!=null&&n.comments?vn(n.comments):this.commentSeverity,f=n!=null&&n.schemaValidation?vn(n.schemaValidation):ge.Warning,d=n!=null&&n.schemaRequest?vn(n.schemaRequest):ge.Warning;if(o){const m=(g,p)=>{if(t.root&&d){const x=t.root,_=x.type==="object"?x.properties[0]:void 0;if(_&&_.keyNode.value==="$schema"){const S=_.valueNode||_,b=U.create(e.positionAt(S.offset),e.positionAt(S.offset+S.length));a(Be.create(b,g,d,p))}else{const S=U.create(e.positionAt(x.offset),e.positionAt(x.offset+1));a(Be.create(S,g,d,p))}}};if(o.errors.length)m(o.errors[0],q.SchemaResolveError);else if(f){for(const p of o.warnings)m(p,q.SchemaUnsupportedFeature);const g=t.validate(e,o.schema,f,n==null?void 0:n.schemaDraft);g&&g.forEach(a)}za(o.schema)&&(h=void 0),Ga(o.schema)&&(u=void 0)}for(const m of t.syntaxErrors){if(m.code===q.TrailingComma){if(typeof u!="number")continue;m.severity=u}a(m)}if(typeof h=="number"){const m=E("Comments are not permitted in JSON.");t.comments.forEach(g=>{a(Be.create(g,m,h,q.CommentNotPermitted))})}return i};if(r){const o=r.id||"schemaservice://untitled/"+cc++;return this.jsonSchemaService.registerExternalSchema({uri:o,schema:r}).getResolvedSchema().then(h=>l(h))}return this.jsonSchemaService.getSchemaForResource(e.uri,t).then(o=>l(o))}getLanguageStatus(e,t){return{schemas:this.jsonSchemaService.getSchemaURIsForResource(e.uri,t)}}},cc=0;function za(e){if(e&&typeof e=="object"){if(Pe(e.allowComments))return e.allowComments;if(e.allOf)for(const t of e.allOf){const n=za(t);if(Pe(n))return n}}}function Ga(e){if(e&&typeof e=="object"){if(Pe(e.allowTrailingCommas))return e.allowTrailingCommas;const t=e;if(Pe(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(e.allOf)for(const n of e.allOf){const r=Ga(n);if(Pe(r))return r}}}function vn(e){switch(e){case"error":return ge.Error;case"warning":return ge.Warning;case"ignore":return}}var Ja=48,fc=57,hc=65,xn=97,dc=102;function K(e){return e<Ja?0:e<=fc?e-Ja:(e<xn&&(e+=xn-hc),e>=xn&&e<=dc?e-xn+10:0)}function mc(e){if(e[0]==="#")switch(e.length){case 4:return{red:K(e.charCodeAt(1))*17/255,green:K(e.charCodeAt(2))*17/255,blue:K(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:K(e.charCodeAt(1))*17/255,green:K(e.charCodeAt(2))*17/255,blue:K(e.charCodeAt(3))*17/255,alpha:K(e.charCodeAt(4))*17/255};case 7:return{red:(K(e.charCodeAt(1))*16+K(e.charCodeAt(2)))/255,green:(K(e.charCodeAt(3))*16+K(e.charCodeAt(4)))/255,blue:(K(e.charCodeAt(5))*16+K(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(K(e.charCodeAt(1))*16+K(e.charCodeAt(2)))/255,green:(K(e.charCodeAt(3))*16+K(e.charCodeAt(4)))/255,blue:(K(e.charCodeAt(5))*16+K(e.charCodeAt(6)))/255,alpha:(K(e.charCodeAt(7))*16+K(e.charCodeAt(8)))/255}}}var gc=class{constructor(e){this.schemaService=e}findDocumentSymbols(e,t,n={resultLimit:Number.MAX_VALUE}){const r=t.root;if(!r)return[];let i=n.resultLimit||Number.MAX_VALUE;const s=e.uri;if((s==="vscode://defaultsettings/keybindings.json"||jt(s.toLowerCase(),"/user/keybindings.json"))&&r.type==="array"){const f=[];for(const d of r.items)if(d.type==="object"){for(const m of d.properties)if(m.keyNode.value==="key"&&m.valueNode){const g=Rt.create(e.uri,Ze(e,d));if(f.push({name:Xa(m.valueNode),kind:Fe.Function,location:g}),i--,i<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),f}}return f}const a=[{node:r,containerName:""}];let l=0,o=!1;const u=[],h=(f,d)=>{f.type==="array"?f.items.forEach(m=>{m&&a.push({node:m,containerName:d})}):f.type==="object"&&f.properties.forEach(m=>{const g=m.valueNode;if(g)if(i>0){i--;const p=Rt.create(e.uri,Ze(e,m)),x=d?d+"."+m.keyNode.value:m.keyNode.value;u.push({name:this.getKeyLabel(m),kind:this.getSymbolKind(g.type),location:p,containerName:d}),a.push({node:g,containerName:x})}else o=!0})};for(;l<a.length;){const f=a[l++];h(f.node,f.containerName)}return o&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),u}findDocumentSymbols2(e,t,n={resultLimit:Number.MAX_VALUE}){const r=t.root;if(!r)return[];let i=n.resultLimit||Number.MAX_VALUE;const s=e.uri;if((s==="vscode://defaultsettings/keybindings.json"||jt(s.toLowerCase(),"/user/keybindings.json"))&&r.type==="array"){const f=[];for(const d of r.items)if(d.type==="object"){for(const m of d.properties)if(m.keyNode.value==="key"&&m.valueNode){const g=Ze(e,d),p=Ze(e,m.keyNode);if(f.push({name:Xa(m.valueNode),kind:Fe.Function,range:g,selectionRange:p}),i--,i<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),f}}return f}const a=[],l=[{node:r,result:a}];let o=0,u=!1;const h=(f,d)=>{f.type==="array"?f.items.forEach((m,g)=>{if(m)if(i>0){i--;const p=Ze(e,m),x=p,S={name:String(g),kind:this.getSymbolKind(m.type),range:p,selectionRange:x,children:[]};d.push(S),l.push({result:S.children,node:m})}else u=!0}):f.type==="object"&&f.properties.forEach(m=>{const g=m.valueNode;if(g)if(i>0){i--;const p=Ze(e,m),x=Ze(e,m.keyNode),_=[],S={name:this.getKeyLabel(m),kind:this.getSymbolKind(g.type),range:p,selectionRange:x,children:_,detail:this.getDetail(g)};d.push(S),l.push({result:_,node:g})}else u=!0})};for(;o<l.length;){const f=l[o++];h(f.node,f.result)}return u&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),a}getSymbolKind(e){switch(e){case"object":return Fe.Module;case"string":return Fe.String;case"number":return Fe.Number;case"array":return Fe.Array;case"boolean":return Fe.Boolean;default:return Fe.Variable}}getKeyLabel(e){let t=e.keyNode.value;return t&&(t=t.replace(/[\n]/g,"↵")),t&&t.trim()?t:`"${t}"`}getDetail(e){if(e){if(e.type==="boolean"||e.type==="number"||e.type==="null"||e.type==="string")return String(e.value);if(e.type==="array")return e.children.length?void 0:"[]";if(e.type==="object")return e.children.length?void 0:"{}"}}findDocumentColors(e,t,n){return this.schemaService.getSchemaForResource(e.uri,t).then(r=>{const i=[];if(r){let s=n&&typeof n.resultLimit=="number"?n.resultLimit:Number.MAX_VALUE;const a=t.getMatchingSchemas(r.schema),l={};for(const o of a)if(!o.inverted&&o.schema&&(o.schema.format==="color"||o.schema.format==="color-hex")&&o.node&&o.node.type==="string"){const u=String(o.node.offset);if(!l[u]){const h=mc(ot(o.node));if(h){const f=Ze(e,o.node);i.push({color:h,range:f})}if(l[u]=!0,s--,s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(e.uri),i}}}return i})}getColorPresentations(e,t,n,r){const i=[],s=Math.round(n.red*255),a=Math.round(n.green*255),l=Math.round(n.blue*255);function o(h){const f=h.toString(16);return f.length!==2?"0"+f:f}let u;return n.alpha===1?u=`#${o(s)}${o(a)}${o(l)}`:u=`#${o(s)}${o(a)}${o(l)}${o(Math.round(n.alpha*255))}`,i.push({label:u,textEdit:Ie.replace(r,JSON.stringify(u))}),i}};function Ze(e,t){return U.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}function Xa(e){return ot(e)||E("<empty>")}var kr={schemaAssociations:[],schemas:{"http://json-schema.org/draft-04/schema#":{$schema:"http://json-schema.org/draft-04/schema#",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{type:"string",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minLength:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minItems:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},uniqueItems:{type:"boolean",default:!1},maxProperties:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minProperties:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},required:{allOf:[{$ref:"#/definitions/stringArray"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{anyOf:[{type:"string",enum:["date-time","uri","email","hostname","ipv4","ipv6","regex"]},{type:"string"}]},allOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},anyOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},oneOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},not:{allOf:[{$ref:"#"}]}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},"http://json-schema.org/draft-07/schema#":{definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}},pc={id:E("A unique identifier for the schema."),$schema:E("The schema to verify this document against."),title:E("A descriptive title of the element."),description:E("A long description of the element. Used in hover menus and suggestions."),default:E("A default value. Used by suggestions."),multipleOf:E("A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:E("The maximum numerical value, inclusive by default."),exclusiveMaximum:E("Makes the maximum property exclusive."),minimum:E("The minimum numerical value, inclusive by default."),exclusiveMinimum:E("Makes the minimum property exclusive."),maxLength:E("The maximum length of a string."),minLength:E("The minimum length of a string."),pattern:E("A regular expression to match the string against. It is not implicitly anchored."),additionalItems:E("For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),items:E("For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),maxItems:E("The maximum number of items that can be inside an array. Inclusive."),minItems:E("The minimum number of items that can be inside an array. Inclusive."),uniqueItems:E("If all of the items in the array must be unique. Defaults to false."),maxProperties:E("The maximum number of properties an object can have. Inclusive."),minProperties:E("The minimum number of properties an object can have. Inclusive."),required:E("An array of strings that lists the names of all properties required on this object."),additionalProperties:E("Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."),definitions:E("Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:E("A map of property names to schemas for each property."),patternProperties:E("A map of regular expressions on property names to schemas for matching properties."),dependencies:E("A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),enum:E("The set of literal values that are valid."),type:E("Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),format:E("Describes the format expected for the value."),allOf:E("An array of schemas, all of which must match."),anyOf:E("An array of schemas, where at least one must match."),oneOf:E("An array of schemas, exactly one of which must match."),not:E("A schema which must not match."),$id:E("A unique identifier for the schema."),$ref:E("Reference a definition hosted on any location."),$comment:E("Comments from schema authors to readers or maintainers of the schema."),readOnly:E("Indicates that the value of the instance is managed exclusively by the owning authority."),examples:E("Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:E('An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:E("If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:E("An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:E("Describes the media type of a string property."),contentEncoding:E("Describes the content encoding of a string property."),if:E('The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:E('The "if" subschema is used for validation when the "if" subschema succeeds.'),else:E('The "else" subschema is used for validation when the "if" subschema fails.')};for(const e in kr.schemas){const t=kr.schemas[e];for(const n in t.properties){let r=t.properties[n];typeof r=="boolean"&&(r=t.properties[n]={});const i=pc[n];i&&(r.description=i)}}var Qa;(()=>{var e={470:i=>{function s(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function a(o,u){for(var h,f="",d=0,m=-1,g=0,p=0;p<=o.length;++p){if(p<o.length)h=o.charCodeAt(p);else{if(h===47)break;h=47}if(h===47){if(!(m===p-1||g===1))if(m!==p-1&&g===2){if(f.length<2||d!==2||f.charCodeAt(f.length-1)!==46||f.charCodeAt(f.length-2)!==46){if(f.length>2){var x=f.lastIndexOf("/");if(x!==f.length-1){x===-1?(f="",d=0):d=(f=f.slice(0,x)).length-1-f.lastIndexOf("/"),m=p,g=0;continue}}else if(f.length===2||f.length===1){f="",d=0,m=p,g=0;continue}}u&&(f.length>0?f+="/..":f="..",d=2)}else f.length>0?f+="/"+o.slice(m+1,p):f=o.slice(m+1,p),d=p-m-1;m=p,g=0}else h===46&&g!==-1?++g:g=-1}return f}var l={resolve:function(){for(var o,u="",h=!1,f=arguments.length-1;f>=-1&&!h;f--){var d;f>=0?d=arguments[f]:(o===void 0&&(o=process.cwd()),d=o),s(d),d.length!==0&&(u=d+"/"+u,h=d.charCodeAt(0)===47)}return u=a(u,!h),h?u.length>0?"/"+u:"/":u.length>0?u:"."},normalize:function(o){if(s(o),o.length===0)return".";var u=o.charCodeAt(0)===47,h=o.charCodeAt(o.length-1)===47;return(o=a(o,!u)).length!==0||u||(o="."),o.length>0&&h&&(o+="/"),u?"/"+o:o},isAbsolute:function(o){return s(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,u=0;u<arguments.length;++u){var h=arguments[u];s(h),h.length>0&&(o===void 0?o=h:o+="/"+h)}return o===void 0?".":l.normalize(o)},relative:function(o,u){if(s(o),s(u),o===u||(o=l.resolve(o))===(u=l.resolve(u)))return"";for(var h=1;h<o.length&&o.charCodeAt(h)===47;++h);for(var f=o.length,d=f-h,m=1;m<u.length&&u.charCodeAt(m)===47;++m);for(var g=u.length-m,p=d<g?d:g,x=-1,_=0;_<=p;++_){if(_===p){if(g>p){if(u.charCodeAt(m+_)===47)return u.slice(m+_+1);if(_===0)return u.slice(m+_)}else d>p&&(o.charCodeAt(h+_)===47?x=_:_===0&&(x=0));break}var S=o.charCodeAt(h+_);if(S!==u.charCodeAt(m+_))break;S===47&&(x=_)}var b="";for(_=h+x+1;_<=f;++_)_!==f&&o.charCodeAt(_)!==47||(b.length===0?b+="..":b+="/..");return b.length>0?b+u.slice(m+x):(m+=x,u.charCodeAt(m)===47&&++m,u.slice(m))},_makeLong:function(o){return o},dirname:function(o){if(s(o),o.length===0)return".";for(var u=o.charCodeAt(0),h=u===47,f=-1,d=!0,m=o.length-1;m>=1;--m)if((u=o.charCodeAt(m))===47){if(!d){f=m;break}}else d=!1;return f===-1?h?"/":".":h&&f===1?"//":o.slice(0,f)},basename:function(o,u){if(u!==void 0&&typeof u!="string")throw new TypeError('"ext" argument must be a string');s(o);var h,f=0,d=-1,m=!0;if(u!==void 0&&u.length>0&&u.length<=o.length){if(u.length===o.length&&u===o)return"";var g=u.length-1,p=-1;for(h=o.length-1;h>=0;--h){var x=o.charCodeAt(h);if(x===47){if(!m){f=h+1;break}}else p===-1&&(m=!1,p=h+1),g>=0&&(x===u.charCodeAt(g)?--g==-1&&(d=h):(g=-1,d=p))}return f===d?d=p:d===-1&&(d=o.length),o.slice(f,d)}for(h=o.length-1;h>=0;--h)if(o.charCodeAt(h)===47){if(!m){f=h+1;break}}else d===-1&&(m=!1,d=h+1);return d===-1?"":o.slice(f,d)},extname:function(o){s(o);for(var u=-1,h=0,f=-1,d=!0,m=0,g=o.length-1;g>=0;--g){var p=o.charCodeAt(g);if(p!==47)f===-1&&(d=!1,f=g+1),p===46?u===-1?u=g:m!==1&&(m=1):u!==-1&&(m=-1);else if(!d){h=g+1;break}}return u===-1||f===-1||m===0||m===1&&u===f-1&&u===h+1?"":o.slice(u,f)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return function(u,h){var f=h.dir||h.root,d=h.base||(h.name||"")+(h.ext||"");return f?f===h.root?f+d:f+"/"+d:d}(0,o)},parse:function(o){s(o);var u={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return u;var h,f=o.charCodeAt(0),d=f===47;d?(u.root="/",h=1):h=0;for(var m=-1,g=0,p=-1,x=!0,_=o.length-1,S=0;_>=h;--_)if((f=o.charCodeAt(_))!==47)p===-1&&(x=!1,p=_+1),f===46?m===-1?m=_:S!==1&&(S=1):m!==-1&&(S=-1);else if(!x){g=_+1;break}return m===-1||p===-1||S===0||S===1&&m===p-1&&m===g+1?p!==-1&&(u.base=u.name=g===0&&d?o.slice(1,p):o.slice(g,p)):(g===0&&d?(u.name=o.slice(1,m),u.base=o.slice(1,p)):(u.name=o.slice(g,m),u.base=o.slice(g,p)),u.ext=o.slice(m,p)),g>0?u.dir=o.slice(0,g-1):d&&(u.dir="/"),u},sep:"/",delimiter:":",win32:null,posix:null};l.posix=l,i.exports=l}},t={};function n(i){var s=t[i];if(s!==void 0)return s.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}n.d=(i,s)=>{for(var a in s)n.o(s,a)&&!n.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:s[a]})},n.o=(i,s)=>Object.prototype.hasOwnProperty.call(i,s),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{let i;n.r(r),n.d(r,{URI:()=>d,Utils:()=>D}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);const s=/^\w[\w\d+.-]*$/,a=/^\//,l=/^\/\//;function o(N,y){if(!N.scheme&&y)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${N.authority}", path: "${N.path}", query: "${N.query}", fragment: "${N.fragment}"}`);if(N.scheme&&!s.test(N.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(N.path){if(N.authority){if(!a.test(N.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(l.test(N.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const u="",h="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{constructor(y,k,M,T,I,F=!1){Ke(this,"scheme");Ke(this,"authority");Ke(this,"path");Ke(this,"query");Ke(this,"fragment");typeof y=="object"?(this.scheme=y.scheme||u,this.authority=y.authority||u,this.path=y.path||u,this.query=y.query||u,this.fragment=y.fragment||u):(this.scheme=function(j,W){return j||W?j:"file"}(y,F),this.authority=k||u,this.path=function(j,W){switch(j){case"https":case"http":case"file":W?W[0]!==h&&(W=h+W):W=h}return W}(this.scheme,M||u),this.query=T||u,this.fragment=I||u,o(this,F))}static isUri(y){return y instanceof d||!!y&&typeof y.authority=="string"&&typeof y.fragment=="string"&&typeof y.path=="string"&&typeof y.query=="string"&&typeof y.scheme=="string"&&typeof y.fsPath=="string"&&typeof y.with=="function"&&typeof y.toString=="function"}get fsPath(){return S(this,!1)}with(y){if(!y)return this;let{scheme:k,authority:M,path:T,query:I,fragment:F}=y;return k===void 0?k=this.scheme:k===null&&(k=u),M===void 0?M=this.authority:M===null&&(M=u),T===void 0?T=this.path:T===null&&(T=u),I===void 0?I=this.query:I===null&&(I=u),F===void 0?F=this.fragment:F===null&&(F=u),k===this.scheme&&M===this.authority&&T===this.path&&I===this.query&&F===this.fragment?this:new g(k,M,T,I,F)}static parse(y,k=!1){const M=f.exec(y);return M?new g(M[2]||u,L(M[4]||u),L(M[5]||u),L(M[7]||u),L(M[9]||u),k):new g(u,u,u,u,u)}static file(y){let k=u;if(i&&(y=y.replace(/\\/g,h)),y[0]===h&&y[1]===h){const M=y.indexOf(h,2);M===-1?(k=y.substring(2),y=h):(k=y.substring(2,M),y=y.substring(M)||h)}return new g("file",k,y,u,u)}static from(y){const k=new g(y.scheme,y.authority,y.path,y.query,y.fragment);return o(k,!0),k}toString(y=!1){return b(this,y)}toJSON(){return this}static revive(y){if(y){if(y instanceof d)return y;{const k=new g(y);return k._formatted=y.external,k._fsPath=y._sep===m?y.fsPath:null,k}}return y}}const m=i?1:void 0;class g extends d{constructor(){super(...arguments);Ke(this,"_formatted",null);Ke(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=S(this,!1)),this._fsPath}toString(k=!1){return k?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const k={$mid:1};return this._fsPath&&(k.fsPath=this._fsPath,k._sep=m),this._formatted&&(k.external=this._formatted),this.path&&(k.path=this.path),this.scheme&&(k.scheme=this.scheme),this.authority&&(k.authority=this.authority),this.query&&(k.query=this.query),this.fragment&&(k.fragment=this.fragment),k}}const p={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 x(N,y,k){let M,T=-1;for(let I=0;I<N.length;I++){const F=N.charCodeAt(I);if(F>=97&&F<=122||F>=65&&F<=90||F>=48&&F<=57||F===45||F===46||F===95||F===126||y&&F===47||k&&F===91||k&&F===93||k&&F===58)T!==-1&&(M+=encodeURIComponent(N.substring(T,I)),T=-1),M!==void 0&&(M+=N.charAt(I));else{M===void 0&&(M=N.substr(0,I));const j=p[F];j!==void 0?(T!==-1&&(M+=encodeURIComponent(N.substring(T,I)),T=-1),M+=j):T===-1&&(T=I)}}return T!==-1&&(M+=encodeURIComponent(N.substring(T))),M!==void 0?M:N}function _(N){let y;for(let k=0;k<N.length;k++){const M=N.charCodeAt(k);M===35||M===63?(y===void 0&&(y=N.substr(0,k)),y+=p[M]):y!==void 0&&(y+=N[k])}return y!==void 0?y:N}function S(N,y){let k;return k=N.authority&&N.path.length>1&&N.scheme==="file"?`//${N.authority}${N.path}`:N.path.charCodeAt(0)===47&&(N.path.charCodeAt(1)>=65&&N.path.charCodeAt(1)<=90||N.path.charCodeAt(1)>=97&&N.path.charCodeAt(1)<=122)&&N.path.charCodeAt(2)===58?y?N.path.substr(1):N.path[1].toLowerCase()+N.path.substr(2):N.path,i&&(k=k.replace(/\//g,"\\")),k}function b(N,y){const k=y?_:x;let M="",{scheme:T,authority:I,path:F,query:j,fragment:W}=N;if(T&&(M+=T,M+=":"),(I||T==="file")&&(M+=h,M+=h),I){let J=I.indexOf("@");if(J!==-1){const Ue=I.substr(0,J);I=I.substr(J+1),J=Ue.lastIndexOf(":"),J===-1?M+=k(Ue,!1,!1):(M+=k(Ue.substr(0,J),!1,!1),M+=":",M+=k(Ue.substr(J+1),!1,!0)),M+="@"}I=I.toLowerCase(),J=I.lastIndexOf(":"),J===-1?M+=k(I,!1,!0):(M+=k(I.substr(0,J),!1,!0),M+=I.substr(J))}if(F){if(F.length>=3&&F.charCodeAt(0)===47&&F.charCodeAt(2)===58){const J=F.charCodeAt(1);J>=65&&J<=90&&(F=`/${String.fromCharCode(J+32)}:${F.substr(3)}`)}else if(F.length>=2&&F.charCodeAt(1)===58){const J=F.charCodeAt(0);J>=65&&J<=90&&(F=`${String.fromCharCode(J+32)}:${F.substr(2)}`)}M+=k(F,!0,!1)}return j&&(M+="?",M+=k(j,!1,!1)),W&&(M+="#",M+=y?W:x(W,!1,!1)),M}function w(N){try{return decodeURIComponent(N)}catch{return N.length>3?N.substr(0,3)+w(N.substr(3)):N}}const v=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function L(N){return N.match(v)?N.replace(v,y=>w(y)):N}var R=n(470);const C=R.posix||R,P="/";var D;(function(N){N.joinPath=function(y,...k){return y.with({path:C.join(y.path,...k)})},N.resolvePath=function(y,...k){let M=y.path,T=!1;M[0]!==P&&(M=P+M,T=!0);let I=C.resolve(M,...k);return T&&I[0]===P&&!y.authority&&(I=I.substring(1)),y.with({path:I})},N.dirname=function(y){if(y.path.length===0||y.path===P)return y;let k=C.dirname(y.path);return k.length===1&&k.charCodeAt(0)===46&&(k=""),y.with({path:k})},N.basename=function(y){return C.basename(y.path)},N.extname=function(y){return C.extname(y.path)}})(D||(D={}))})(),Qa=r})();var{URI:Ct,Utils:Zc}=Qa;function bc(e,t){if(typeof e!="string")throw new TypeError("Expected a string");const n=String(e);let r="";const i=t?!!t.extended:!1,s=t?!!t.globstar:!1;let a=!1;const l=t&&typeof t.flags=="string"?t.flags:"";let o;for(let u=0,h=n.length;u<h;u++)switch(o=n[u],o){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":r+="\\"+o;break;case"?":if(i){r+=".";break}case"[":case"]":if(i){r+=o;break}case"{":if(i){a=!0,r+="(";break}case"}":if(i){a=!1,r+=")";break}case",":if(a){r+="|";break}r+="\\"+o;break;case"*":const f=n[u-1];let d=1;for(;n[u+1]==="*";)d++,u++;const m=n[u+1];s?d>1&&(f==="/"||f===void 0||f==="{"||f===",")&&(m==="/"||m===void 0||m===","||m==="}")?(m==="/"?u++:f==="/"&&r.endsWith("\\/")&&(r=r.substr(0,r.length-2)),r+="((?:[^/]*(?:/|$))*)"):r+="([^/]*)":r+=".*";break;default:r+=o}return(!l||!~l.indexOf("g"))&&(r="^"+r+"$"),new RegExp(r,l)}var vc="!",xc="/",yc=class{constructor(e,t,n){this.folderUri=t,this.uris=n,this.globWrappers=[];try{for(let r of e){const i=r[0]!==vc;i||(r=r.substring(1)),r.length>0&&(r[0]===xc&&(r=r.substring(1)),this.globWrappers.push({regexp:bc("**/"+r,{extended:!0,globstar:!0}),include:i}))}t&&(t=Ya(t),t.endsWith("/")||(t=t+"/"),this.folderUri=t)}catch{this.globWrappers.length=0,this.uris=[]}}matchesPattern(e){if(this.folderUri&&!e.startsWith(this.folderUri))return!1;let t=!1;for(const{regexp:n,include:r}of this.globWrappers)n.test(e)&&(t=r);return t}getURIs(){return this.uris}},_c=class{constructor(e,t,n){this.service=e,this.uri=t,this.dependencies=new Set,this.anchors=void 0,n&&(this.unresolvedSchema=this.service.promise.resolve(new Gt(n)))}getUnresolvedSchema(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.uri)),this.unresolvedSchema}getResolvedSchema(){return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(e=>this.service.resolveSchemaContent(e,this))),this.resolvedSchema}clearSchema(){const e=!!this.unresolvedSchema;return this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies.clear(),this.anchors=void 0,e}},Gt=class{constructor(e,t=[]){this.schema=e,this.errors=t}},Za=class{constructor(e,t=[],n=[],r){this.schema=e,this.errors=t,this.warnings=n,this.schemaDraft=r}getSection(e){const t=this.getSectionRecursive(e,this.schema);if(t)return be(t)}getSectionRecursive(e,t){if(!t||typeof t=="boolean"||e.length===0)return t;const n=e.shift();if(t.properties&&typeof t.properties[n])return this.getSectionRecursive(e,t.properties[n]);if(t.patternProperties)for(const r of Object.keys(t.patternProperties)){const i=dn(r);if(i!=null&&i.test(n))return this.getSectionRecursive(e,t.patternProperties[r])}else{if(typeof t.additionalProperties=="object")return this.getSectionRecursive(e,t.additionalProperties);if(n.match("[0-9]+")){if(Array.isArray(t.items)){const r=parseInt(n,10);if(!isNaN(r)&&t.items[r])return this.getSectionRecursive(e,t.items[r])}else if(t.items)return this.getSectionRecursive(e,t.items)}}}},wc=class{constructor(e,t,n){this.contextService=t,this.requestService=e,this.promiseConstructor=n||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}getRegisteredSchemaIds(e){return Object.keys(this.registeredSchemasIds).filter(t=>{const n=Ct.parse(t).scheme;return n!=="schemaservice"&&(!e||e(n))})}get promise(){return this.promiseConstructor}dispose(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()}onResourceChange(e){this.cachedSchemaForResource=void 0;let t=!1;e=Ye(e);const n=[e],r=Object.keys(this.schemasById).map(i=>this.schemasById[i]);for(;n.length;){const i=n.pop();for(let s=0;s<r.length;s++){const a=r[s];a&&(a.uri===i||a.dependencies.has(i))&&(a.uri!==i&&n.push(a.uri),a.clearSchema()&&(t=!0),r[s]=void 0)}}return t}setSchemaContributions(e){if(e.schemas){const t=e.schemas;for(const n in t){const r=Ye(n);this.contributionSchemas[r]=this.addSchemaHandle(r,t[n])}}if(Array.isArray(e.schemaAssociations)){const t=e.schemaAssociations;for(let n of t){const r=n.uris.map(Ye),i=this.addFilePatternAssociation(n.pattern,n.folderUri,r);this.contributionAssociations.push(i)}}}addSchemaHandle(e,t){const n=new _c(this,e,t);return this.schemasById[e]=n,n}getOrAddSchemaHandle(e,t){return this.schemasById[e]||this.addSchemaHandle(e,t)}addFilePatternAssociation(e,t,n){const r=new yc(e,t,n);return this.filePatternAssociations.push(r),r}registerExternalSchema(e){const t=Ye(e.uri);return this.registeredSchemasIds[t]=!0,this.cachedSchemaForResource=void 0,e.fileMatch&&e.fileMatch.length&&this.addFilePatternAssociation(e.fileMatch,e.folderUri,[t]),e.schema?this.addSchemaHandle(t,e.schema):this.getOrAddSchemaHandle(t)}clearExternalSchemas(){this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0;for(const e in this.contributionSchemas)this.schemasById[e]=this.contributionSchemas[e],this.registeredSchemasIds[e]=!0;for(const e of this.contributionAssociations)this.filePatternAssociations.push(e)}getResolvedSchema(e){const t=Ye(e),n=this.schemasById[t];return n?n.getResolvedSchema():this.promise.resolve(void 0)}loadSchema(e){if(!this.requestService){const t=E("Unable to load schema from '{0}'. No schema request service available",Jt(e));return this.promise.resolve(new Gt({},[t]))}return e.startsWith("http://json-schema.org/")&&(e="https"+e.substring(4)),this.requestService(e).then(t=>{if(!t){const s=E("Unable to load schema from '{0}': No content.",Jt(e));return new Gt({},[s])}const n=[];t.charCodeAt(0)===65279&&(n.push(E("Problem reading content from '{0}': UTF-8 with BOM detected, only UTF 8 is allowed.",Jt(e))),t=t.trimStart());let r={};const i=[];return r=Uu(t,i),i.length&&n.push(E("Unable to parse content from '{0}': Parse error at offset {1}.",Jt(e),i[0].offset)),new Gt(r,n)},t=>{let n=t.toString();const r=t.toString().split("Error: ");return r.length>1&&(n=r[1]),jt(n,".")&&(n=n.substr(0,n.length-1)),new Gt({},[E("Unable to load schema from '{0}': {1}.",Jt(e),n)])})}resolveSchemaContent(e,t){const n=e.errors.slice(0),r=e.schema;let i=r.$schema?Ye(r.$schema):void 0;if(i==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Za({},[E("Draft-03 schemas are not supported.")],[],i));let s=new Set;const a=this.contextService,l=(g,p)=>{p=decodeURIComponent(p);let x=g;return p[0]==="/"&&(p=p.substring(1)),p.split("/").some(_=>(_=_.replace(/~1/g,"/").replace(/~0/g,"~"),x=x[_],!x)),x},o=(g,p,x)=>(p.anchors||(p.anchors=m(g)),p.anchors.get(x)),u=(g,p)=>{for(const x in p)p.hasOwnProperty(x)&&x!=="id"&&x!=="$id"&&(g[x]=p[x])},h=(g,p,x,_)=>{let S;_===void 0||_.length===0?S=p:_.charAt(0)==="/"?S=l(p,_):S=o(p,x,_),S?u(g,S):n.push(E("$ref '{0}' in '{1}' can not be resolved.",_||"",x.uri))},f=(g,p,x,_)=>{a&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(p)&&(p=a.resolveRelativePath(p,_.uri)),p=Ye(p);const S=this.getOrAddSchemaHandle(p);return S.getUnresolvedSchema().then(b=>{if(_.dependencies.add(p),b.errors.length){const w=x?p+"#"+x:p;n.push(E("Problems loading reference '{0}': {1}",w,b.errors[0]))}return h(g,b.schema,S,x),d(g,b.schema,S)})},d=(g,p,x)=>{const _=[];return this.traverseNodes(g,S=>{const b=new Set;for(;S.$ref;){const w=S.$ref,v=w.split("#",2);if(delete S.$ref,v[0].length>0){_.push(f(S,v[0],v[1],x));return}else if(!b.has(w)){const L=v[1];h(S,p,x,L),b.add(w)}}S.$recursiveRef&&s.add("$recursiveRef"),S.$dynamicRef&&s.add("$dynamicRef")}),this.promise.all(_)},m=g=>{const p=new Map;return this.traverseNodes(g,x=>{const _=x.$id||x.id,S=$s(_)&&_.charAt(0)==="#"?_.substring(1):x.$anchor;S&&(p.has(S)?n.push(E("Duplicate anchor declaration: '{0}'",S)):p.set(S,x)),x.$recursiveAnchor&&s.add("$recursiveAnchor"),x.$dynamicAnchor&&s.add("$dynamicAnchor")}),p};return d(r,r,t).then(g=>{let p=[];return s.size&&p.push(E("The schema uses meta-schema features ({0}) that are not yet supported by the validator.",Array.from(s.keys()).join(", "))),new Za(r,n,p,i)})}traverseNodes(e,t){if(!e||typeof e!="object")return Promise.resolve(null);const n=new Set,r=(...u)=>{for(const h of u)Qe(h)&&l.push(h)},i=(...u)=>{for(const h of u)if(Qe(h))for(const f in h){const m=h[f];Qe(m)&&l.push(m)}},s=(...u)=>{for(const h of u)if(Array.isArray(h))for(const f of h)Qe(f)&&l.push(f)},a=u=>{if(Array.isArray(u))for(const h of u)Qe(h)&&l.push(h);else Qe(u)&&l.push(u)},l=[e];let o=l.pop();for(;o;)n.has(o)||(n.add(o),t(o),r(o.additionalItems,o.additionalProperties,o.not,o.contains,o.propertyNames,o.if,o.then,o.else,o.unevaluatedItems,o.unevaluatedProperties),i(o.definitions,o.$defs,o.properties,o.patternProperties,o.dependencies,o.dependentSchemas),s(o.anyOf,o.allOf,o.oneOf,o.prefixItems),a(o.items)),o=l.pop()}getSchemaFromProperty(e,t){var n,r;if(((n=t.root)==null?void 0:n.type)==="object"){for(const i of t.root.properties)if(i.keyNode.value==="$schema"&&((r=i.valueNode)==null?void 0:r.type)==="string"){let s=i.valueNode.value;return this.contextService&&!/^\w[\w\d+.-]*:/.test(s)&&(s=this.contextService.resolveRelativePath(s,e)),s}}}getAssociatedSchemas(e){const t=Object.create(null),n=[],r=Ya(e);for(const i of this.filePatternAssociations)if(i.matchesPattern(r))for(const s of i.getURIs())t[s]||(n.push(s),t[s]=!0);return n}getSchemaURIsForResource(e,t){let n=t&&this.getSchemaFromProperty(e,t);return n?[n]:this.getAssociatedSchemas(e)}getSchemaForResource(e,t){if(t){let i=this.getSchemaFromProperty(e,t);if(i){const s=Ye(i);return this.getOrAddSchemaHandle(s).getResolvedSchema()}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===e)return this.cachedSchemaForResource.resolvedSchema;const n=this.getAssociatedSchemas(e),r=n.length>0?this.createCombinedSchema(e,n).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:e,resolvedSchema:r},r}createCombinedSchema(e,t){if(t.length===1)return this.getOrAddSchemaHandle(t[0]);{const n="schemaservice://combinedSchema/"+encodeURIComponent(e),r={allOf:t.map(i=>({$ref:i}))};return this.addSchemaHandle(n,r)}}getMatchingSchemas(e,t,n){if(n){const r=n.id||"schemaservice://untitled/matchingSchemas/"+Lc++;return this.addSchemaHandle(r,n).getResolvedSchema().then(s=>t.getMatchingSchemas(s.schema).filter(a=>!a.inverted))}return this.getSchemaForResource(e.uri,t).then(r=>r?t.getMatchingSchemas(r.schema).filter(i=>!i.inverted):[])}},Lc=0;function Ye(e){try{return Ct.parse(e).toString(!0)}catch{return e}}function Ya(e){try{return Ct.parse(e).with({fragment:null,query:null}).toString(!0)}catch{return e}}function Jt(e){try{const t=Ct.parse(e);if(t.scheme==="file")return t.fsPath}catch{}return e}function Nc(e,t){const n=[],r=[],i=[];let s=-1;const a=it(e.getText(),!1);let l=a.scan();function o(g){n.push(g),r.push(i.length)}for(;l!==17;){switch(l){case 1:case 3:{const g=e.positionAt(a.getTokenOffset()).line,p={startLine:g,endLine:g,kind:l===1?"object":"array"};i.push(p);break}case 2:case 4:{const g=l===2?"object":"array";if(i.length>0&&i[i.length-1].kind===g){const p=i.pop(),x=e.positionAt(a.getTokenOffset()).line;p&&x>p.startLine+1&&s!==p.startLine&&(p.endLine=x-1,o(p),s=p.startLine)}break}case 13:{const g=e.positionAt(a.getTokenOffset()).line,p=e.positionAt(a.getTokenOffset()+a.getTokenLength()).line;a.getTokenError()===1&&g+1<e.lineCount?a.setPosition(e.offsetAt(Z.create(g+1,0))):g<p&&(o({startLine:g,endLine:p,kind:Wt.Comment}),s=g);break}case 12:{const p=e.getText().substr(a.getTokenOffset(),a.getTokenLength()).match(/^\/\/\s*#(region\b)|(endregion\b)/);if(p){const x=e.positionAt(a.getTokenOffset()).line;if(p[1]){const _={startLine:x,endLine:x,kind:Wt.Region};i.push(_)}else{let _=i.length-1;for(;_>=0&&i[_].kind!==Wt.Region;)_--;if(_>=0){const S=i[_];i.length=_,x>S.startLine&&s!==S.startLine&&(S.endLine=x,o(S),s=S.startLine)}}}break}}l=a.scan()}const u=t&&t.rangeLimit;if(typeof u!="number"||n.length<=u)return n;t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri);const h=[];for(let g of r)g<30&&(h[g]=(h[g]||0)+1);let f=0,d=0;for(let g=0;g<h.length;g++){const p=h[g];if(p){if(p+f>u){d=g;break}f+=p}}const m=[];for(let g=0;g<n.length;g++){const p=r[g];typeof p=="number"&&(p<d||p===d&&f++<u)&&m.push(n[g])}return m}function Sc(e,t,n){function r(l){let o=e.offsetAt(l),u=n.getNodeFromOffset(o,!0);const h=[];for(;u;){switch(u.type){case"string":case"object":case"array":const d=u.offset+1,m=u.offset+u.length-1;d<m&&o>=d&&o<=m&&h.push(i(d,m)),h.push(i(u.offset,u.offset+u.length));break;case"number":case"boolean":case"null":case"property":h.push(i(u.offset,u.offset+u.length));break}if(u.type==="property"||u.parent&&u.parent.type==="array"){const d=a(u.offset+u.length,5);d!==-1&&h.push(i(u.offset,d))}u=u.parent}let f;for(let d=h.length-1;d>=0;d--)f=bn.create(h[d],f);return f||(f=bn.create(U.create(l,l))),f}function i(l,o){return U.create(e.positionAt(l),e.positionAt(o))}const s=it(e.getText(),!0);function a(l,o){return s.setPosition(l),s.scan()===o?s.getTokenOffset()+s.getTokenLength():-1}return t.map(r)}function Rr(e,t,n){let r;if(n){const s=e.offsetAt(n.start),a=e.offsetAt(n.end)-s;r={offset:s,length:a}}const i={tabSize:t?t.tabSize:4,insertSpaces:(t==null?void 0:t.insertSpaces)===!0,insertFinalNewline:(t==null?void 0:t.insertFinalNewline)===!0,eol:` +`,keepLines:(t==null?void 0:t.keepLines)===!0};return Wu(e.getText(),r,i).map(s=>Ie.replace(U.create(e.positionAt(s.offset),e.positionAt(s.offset+s.length)),s.content))}var re;(function(e){e[e.Object=0]="Object",e[e.Array=1]="Array"})(re||(re={}));var yn=class{constructor(e,t){this.propertyName=e??"",this.beginningLineNumber=t,this.childrenProperties=[],this.lastProperty=!1,this.noKeyName=!1}addChildProperty(e){if(e.parent=this,this.childrenProperties.length>0){let t=0;e.noKeyName?t=this.childrenProperties.length:t=kc(this.childrenProperties,e,Ac),t<0&&(t=t*-1-1),this.childrenProperties.splice(t,0,e)}else this.childrenProperties.push(e);return e}};function Ac(e,t){const n=e.propertyName.toLowerCase(),r=t.propertyName.toLowerCase();return n<r?-1:n>r?1:0}function kc(e,t,n){const r=t.propertyName.toLowerCase(),i=e[0].propertyName.toLowerCase(),s=e[e.length-1].propertyName.toLowerCase();if(r<i)return 0;if(r>s)return e.length;let a=0,l=e.length-1;for(;a<=l;){let o=l+a>>1,u=n(t,e[o]);if(u>0)a=o+1;else if(u<0)l=o-1;else return o}return-a-1}function Rc(e,t){const n={...t,keepLines:!1},r=Ae.applyEdits(e,Rr(e,n,void 0)),i=Ae.create("test://test.json","json",0,r),s=Ec(i),a=Mc(i,s),l=Rr(a,n,void 0),o=Ae.applyEdits(a,l);return[Ie.replace(U.create(Z.create(0,0),e.positionAt(e.getText().length)),o)]}function Ec(e){const t=e.getText(),n=it(t,!1);let r=new yn,i=r,s=r,a=r,l,o=0,u=0,h,f,d=-1,m=-1,g=0,p=0,x=[],_=!1,S=!1;for(;(l=n.scan())!==17;){if(_===!0&&l!==14&&l!==15&&l!==12&&l!==13&&s.endLineNumber===void 0){let b=n.getTokenStartLine();f===2||f===4?a.endLineNumber=b-1:s.endLineNumber=b-1,g=b,_=!1}if(S===!0&&l!==14&&l!==15&&l!==12&&l!==13&&(g=n.getTokenStartLine(),S=!1),n.getTokenStartLine()!==o){for(let b=o;b<n.getTokenStartLine();b++){const w=e.getText(U.create(Z.create(b,0),Z.create(b+1,0))).length;u=u+w}o=n.getTokenStartLine()}switch(l){case 10:{if(h===void 0||h===1||h===5&&x[x.length-1]===re.Object){const b=new yn(n.getTokenValue(),g);a=s,s=i.addChildProperty(b)}break}case 3:{if(r.beginningLineNumber===void 0&&(r.beginningLineNumber=n.getTokenStartLine()),x[x.length-1]===re.Object)i=s;else if(x[x.length-1]===re.Array){const b=new yn(n.getTokenValue(),g);b.noKeyName=!0,a=s,s=i.addChildProperty(b),i=s}x.push(re.Array),s.type=re.Array,g=n.getTokenStartLine(),g++;break}case 1:{if(r.beginningLineNumber===void 0)r.beginningLineNumber=n.getTokenStartLine();else if(x[x.length-1]===re.Array){const b=new yn(n.getTokenValue(),g);b.noKeyName=!0,a=s,s=i.addChildProperty(b)}s.type=re.Object,x.push(re.Object),i=s,g=n.getTokenStartLine(),g++;break}case 4:{p=n.getTokenStartLine(),x.pop(),s.endLineNumber===void 0&&(h===2||h===4)&&(s.endLineNumber=p-1,s.lastProperty=!0,s.lineWhereToAddComma=d,s.indexWhereToAddComa=m,a=s,s=s?s.parent:void 0,i=s),r.endLineNumber=p,g=p+1;break}case 2:{p=n.getTokenStartLine(),x.pop(),h!==1&&(s.endLineNumber===void 0&&(s.endLineNumber=p-1,s.lastProperty=!0,s.lineWhereToAddComma=d,s.indexWhereToAddComa=m),a=s,s=s?s.parent:void 0,i=s),r.endLineNumber=n.getTokenStartLine(),g=p+1;break}case 5:{p=n.getTokenStartLine(),s.endLineNumber===void 0&&(x[x.length-1]===re.Object||x[x.length-1]===re.Array&&(h===2||h===4))&&(s.endLineNumber=p,s.commaIndex=n.getTokenOffset()-u,s.commaLine=p),(h===2||h===4)&&(a=s,s=s?s.parent:void 0,i=s),g=p+1;break}case 13:{h===5&&d===n.getTokenStartLine()&&(x[x.length-1]===re.Array&&(f===2||f===4)||x[x.length-1]===re.Object)&&(x[x.length-1]===re.Array&&(f===2||f===4)||x[x.length-1]===re.Object)&&(s.endLineNumber=void 0,_=!0),(h===1||h===3)&&d===n.getTokenStartLine()&&(S=!0);break}}l!==14&&l!==13&&l!==12&&l!==15&&(f=h,h=l,d=n.getTokenStartLine(),m=n.getTokenOffset()+n.getTokenLength()-u)}return r}function Mc(e,t){if(t.childrenProperties.length===0)return e;const n=Ae.create("test://test.json","json",0,e.getText()),r=[];for(Ka(r,t,t.beginningLineNumber);r.length>0;){const i=r.shift(),s=i.propertyTreeArray;let a=i.beginningLineNumber;for(let l=0;l<s.length;l++){const o=s[l],u=U.create(Z.create(o.beginningLineNumber,0),Z.create(o.endLineNumber+1,0)),h=e.getText(u),f=Ae.create("test://test.json","json",0,h);if(o.lastProperty===!0&&l!==s.length-1){const g=o.lineWhereToAddComma-o.beginningLineNumber,p=o.indexWhereToAddComa,x={range:U.create(Z.create(g,p),Z.create(g,p)),text:","};Ae.update(f,[x],1)}else if(o.lastProperty===!1&&l===s.length-1){const g=o.commaIndex,x=o.commaLine-o.beginningLineNumber,_={range:U.create(Z.create(x,g),Z.create(x,g+1)),text:""};Ae.update(f,[_],1)}const d=o.endLineNumber-o.beginningLineNumber+1,m={range:U.create(Z.create(a,0),Z.create(a+d,0)),text:f.getText()};Ae.update(n,[m],1),Ka(r,o,a),a=a+d}}return n}function Ka(e,t,n){if(t.childrenProperties.length!==0)if(t.type===re.Object){let r=1/0;for(const s of t.childrenProperties)s.beginningLineNumber<r&&(r=s.beginningLineNumber);const i=r-t.beginningLineNumber;n=n+i,e.push(new to(n,t.childrenProperties))}else t.type===re.Array&&eo(e,t,n)}function eo(e,t,n){for(const r of t.childrenProperties){if(r.type===re.Object){let i=1/0;for(const a of r.childrenProperties)a.beginningLineNumber<i&&(i=a.beginningLineNumber);const s=i-r.beginningLineNumber;e.push(new to(n+r.beginningLineNumber-t.beginningLineNumber+s,r.childrenProperties))}r.type===re.Array&&eo(e,r,n+r.beginningLineNumber-t.beginningLineNumber)}}var to=class{constructor(e,t){this.beginningLineNumber=e,this.propertyTreeArray=t}};function Cc(e,t){const n=[];return t.visit(r=>{var i;if(r.type==="property"&&r.keyNode.value==="$ref"&&((i=r.valueNode)==null?void 0:i.type)==="string"){const s=r.valueNode.value,a=Pc(t,s);if(a){const l=e.positionAt(a.offset);n.push({target:`${e.uri}#${l.line+1},${l.character+1}`,range:Tc(e,r.valueNode)})}}return!0}),Promise.resolve(n)}function Tc(e,t){return U.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function Pc(e,t){const n=Ic(t);return n?Er(n,e.root):null}function Er(e,t){if(!t)return null;if(e.length===0)return t;const n=e.shift();if(t&&t.type==="object"){const r=t.properties.find(i=>i.keyNode.value===n);return r?Er(e,r.valueNode):null}else if(t&&t.type==="array"&&n.match(/^(0|[1-9][0-9]*)$/)){const r=Number.parseInt(n),i=t.items[r];return i?Er(e,i):null}return null}function Ic(e){return e==="#"?[]:e[0]!=="#"||e[1]!=="/"?null:e.substring(2).split(/\//).map(Fc)}function Fc(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Vc(e){const t=e.promiseConstructor||Promise,n=new wc(e.schemaRequestService,e.workspaceContext,t);n.setSchemaContributions(kr);const r=new ac(n,e.contributions,t,e.clientCapabilities),i=new oc(n,e.contributions,t),s=new gc(n),a=new uc(n,t);return{configure:l=>{var o;n.clearExternalSchemas(),(o=l.schemas)==null||o.forEach(n.registerExternalSchema.bind(n)),a.configure(l)},resetSchema:l=>n.onResourceChange(l),doValidation:a.doValidation.bind(a),getLanguageStatus:a.getLanguageStatus.bind(a),parseJSONDocument:l=>sc(l,{collectComments:!0}),newJSONDocument:(l,o)=>ic(l,o),getMatchingSchemas:n.getMatchingSchemas.bind(n),doResolve:r.doResolve.bind(r),doComplete:r.doComplete.bind(r),findDocumentSymbols:s.findDocumentSymbols.bind(s),findDocumentSymbols2:s.findDocumentSymbols2.bind(s),findDocumentColors:s.findDocumentColors.bind(s),getColorPresentations:s.getColorPresentations.bind(s),doHover:i.doHover.bind(i),getFoldingRanges:Nc,getSelectionRanges:Sc,findDefinition:()=>Promise.resolve([]),findLinks:Cc,format:(l,o,u)=>Rr(l,u,o),sort:(l,o)=>Rc(l,o)}}var no;typeof fetch<"u"&&(no=function(e){return fetch(e).then(t=>t.text())});var Dc=class{constructor(e,t){this._ctx=e,this._languageSettings=t.languageSettings,this._languageId=t.languageId,this._languageService=Vc({workspaceContext:{resolveRelativePath:(n,r)=>{const i=r.substr(0,r.lastIndexOf("/")+1);return Uc(i,n)}},schemaRequestService:t.enableSchemaRequest?no:void 0,clientCapabilities:wr.LATEST}),this._languageService.configure(this._languageSettings)}async doValidation(e){let t=this._getTextDocument(e);if(t){let n=this._languageService.parseJSONDocument(t);return this._languageService.doValidation(t,n,this._languageSettings)}return Promise.resolve([])}async doComplete(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseJSONDocument(n);return this._languageService.doComplete(n,t,r)}async doResolve(e){return this._languageService.doResolve(e)}async doHover(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseJSONDocument(n);return this._languageService.doHover(n,t,r)}async format(e,t,n){let r=this._getTextDocument(e);if(!r)return[];let i=this._languageService.format(r,t,n);return Promise.resolve(i)}async resetSchema(e){return Promise.resolve(this._languageService.resetSchema(e))}async findDocumentSymbols(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t),r=this._languageService.findDocumentSymbols2(t,n);return Promise.resolve(r)}async findDocumentColors(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t),r=this._languageService.findDocumentColors(t,n);return Promise.resolve(r)}async getColorPresentations(e,t,n){let r=this._getTextDocument(e);if(!r)return[];let i=this._languageService.parseJSONDocument(r),s=this._languageService.getColorPresentations(r,i,t,n);return Promise.resolve(s)}async getFoldingRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let r=this._languageService.getFoldingRanges(n,t);return Promise.resolve(r)}async getSelectionRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let r=this._languageService.parseJSONDocument(n),i=this._languageService.getSelectionRanges(n,t,r);return Promise.resolve(i)}async parseJSONDocument(e){let t=this._getTextDocument(e);if(!t)return null;let n=this._languageService.parseJSONDocument(t);return Promise.resolve(n)}async getMatchingSchemas(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t);return Promise.resolve(this._languageService.getMatchingSchemas(t,n))}_getTextDocument(e){let t=this._ctx.getMirrorModels();for(let n of t)if(n.uri.toString()===e)return Ae.create(e,this._languageId,n.version,n.getValue());return null}},Oc=47,Mr=46;function Bc(e){return e.charCodeAt(0)===Oc}function Uc(e,t){if(Bc(t)){const n=Ct.parse(e),r=t.split("/");return n.with({path:ro(r)}).toString()}return $c(e,t)}function ro(e){const t=[];for(const r of e)r.length===0||r.length===1&&r.charCodeAt(0)===Mr||(r.length===2&&r.charCodeAt(0)===Mr&&r.charCodeAt(1)===Mr?t.pop():t.push(r));e.length>1&&e[e.length-1].length===0&&t.push("");let n=t.join("/");return e[0].length===0&&(n="/"+n),n}function $c(e,...t){const n=Ct.parse(e),r=n.path.split("/");for(let i of t)r.push(...i.split("/"));return n.with({path:ro(r)}).toString()}self.onmessage=()=>{Ts((e,t)=>new Dc(e,t))}})(); diff --git a/ui/assets/local/_app/immutable/workers/ts.worker-rkwwokxe.js b/ui/assets/local/_app/immutable/workers/ts.worker-rkwwokxe.js new file mode 100644 index 0000000000..2422c2c896 --- /dev/null +++ b/ui/assets/local/_app/immutable/workers/ts.worker-rkwwokxe.js @@ -0,0 +1,51333 @@ +(function(){"use strict";class FFe{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(b){setTimeout(()=>{throw b.stack?_2.isErrorNoTelemetry(b)?new _2(b.message+` + +`+b.stack):new Error(b.message+` + +`+b.stack):b},0)}}emit(b){this.listeners.forEach(I=>{I(b)})}onUnexpectedError(b){this.unexpectedErrorHandler(b),this.emit(b)}onUnexpectedExternalError(b){this.unexpectedErrorHandler(b)}}const zFe=new FFe;function bB(g){BFe(g)||zFe.onUnexpectedError(g)}function vbe(g){if(g instanceof Error){const{name:b,message:I}=g,z=g.stacktrace||g.stack;return{$isError:!0,name:b,message:I,stack:z,noTelemetry:_2.isErrorNoTelemetry(g)}}return g}const pte="Canceled";function BFe(g){return g instanceof GFe?!0:g instanceof Error&&g.name===pte&&g.message===pte}class GFe extends Error{constructor(){super(pte),this.name=this.message}}class _2 extends Error{constructor(b){super(b),this.name="CodeExpectedError"}static fromError(b){if(b instanceof _2)return b;const I=new _2;return I.message=b.message,I.stack=b.stack,I}static isErrorNoTelemetry(b){return b.name==="CodeExpectedError"}}class tS extends Error{constructor(b){super(b||"An unexpected bug occurred."),Object.setPrototypeOf(this,tS.prototype)}}function VFe(g,b){const I=this;let z=!1,ee;return function(){if(z)return ee;if(z=!0,b)try{ee=g.apply(I,arguments)}finally{b()}else ee=g.apply(I,arguments);return ee}}var EB;(function(g){function b(oi){return oi&&typeof oi=="object"&&typeof oi[Symbol.iterator]=="function"}g.is=b;const I=Object.freeze([]);function z(){return I}g.empty=z;function*ee(oi){yield oi}g.single=ee;function _e(oi){return b(oi)?oi:ee(oi)}g.wrap=_e;function Re(oi){return oi||I}g.from=Re;function*Ge(oi){for(let mi=oi.length-1;mi>=0;mi--)yield oi[mi]}g.reverse=Ge;function at(oi){return!oi||oi[Symbol.iterator]().next().done===!0}g.isEmpty=at;function Ne(oi){return oi[Symbol.iterator]().next().value}g.first=Ne;function Xe(oi,mi){for(const Yi of oi)if(mi(Yi))return!0;return!1}g.some=Xe;function $t(oi,mi){for(const Yi of oi)if(mi(Yi))return Yi}g.find=$t;function*Ht(oi,mi){for(const Yi of oi)mi(Yi)&&(yield Yi)}g.filter=Ht;function*pn(oi,mi){let Yi=0;for(const ja of oi)yield mi(ja,Yi++)}g.map=pn;function*Pr(...oi){for(const mi of oi)yield*mi}g.concat=Pr;function gi(oi,mi,Yi){let ja=Yi;for(const Or of oi)ja=mi(ja,Or);return ja}g.reduce=gi;function*io(oi,mi,Yi=oi.length){for(mi<0&&(mi+=oi.length),Yi<0?Yi+=oi.length:Yi>oi.length&&(Yi=oi.length);mi<Yi;mi++)yield oi[mi]}g.slice=io;function Jn(oi,mi=Number.POSITIVE_INFINITY){const Yi=[];if(mi===0)return[Yi,oi];const ja=oi[Symbol.iterator]();for(let Or=0;Or<mi;Or++){const Ba=ja.next();if(Ba.done)return[Yi,g.empty()];Yi.push(Ba.value)}return[Yi,{[Symbol.iterator](){return ja}}]}g.consume=Jn;async function In(oi){const mi=[];for await(const Yi of oi)mi.push(Yi);return Promise.resolve(mi)}g.asyncToArray=In})(EB||(EB={}));function Vyt(g){return g}function jyt(g,b){}function ybe(g){if(EB.is(g)){const b=[];for(const I of g)if(I)try{I.dispose()}catch(z){b.push(z)}if(b.length===1)throw b[0];if(b.length>1)throw new AggregateError(b,"Encountered errors while disposing of store");return Array.isArray(g)?[]:g}else if(g)return g.dispose(),g}function jFe(...g){return SB(()=>ybe(g))}function SB(g){return{dispose:VFe(()=>{g()})}}class h2{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{ybe(this._toDispose)}finally{this._toDispose.clear()}}add(b){if(!b)return b;if(b===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?h2.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(b),b}deleteAndLeak(b){b&&this._toDispose.has(b)&&this._toDispose.delete(b)}}h2.DISABLE_DISPOSED_WARNING=!1;class c6{constructor(){this._store=new h2,this._store}dispose(){this._store.dispose()}_register(b){if(b===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(b)}}c6.None=Object.freeze({dispose(){}});class Ed{constructor(b){this.element=b,this.next=Ed.Undefined,this.prev=Ed.Undefined}}Ed.Undefined=new Ed(void 0);class UFe{constructor(){this._first=Ed.Undefined,this._last=Ed.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Ed.Undefined}clear(){let b=this._first;for(;b!==Ed.Undefined;){const I=b.next;b.prev=Ed.Undefined,b.next=Ed.Undefined,b=I}this._first=Ed.Undefined,this._last=Ed.Undefined,this._size=0}unshift(b){return this._insert(b,!1)}push(b){return this._insert(b,!0)}_insert(b,I){const z=new Ed(b);if(this._first===Ed.Undefined)this._first=z,this._last=z;else if(I){const _e=this._last;this._last=z,z.prev=_e,_e.next=z}else{const _e=this._first;this._first=z,z.next=_e,_e.prev=z}this._size+=1;let ee=!1;return()=>{ee||(ee=!0,this._remove(z))}}shift(){if(this._first!==Ed.Undefined){const b=this._first.element;return this._remove(this._first),b}}pop(){if(this._last!==Ed.Undefined){const b=this._last.element;return this._remove(this._last),b}}_remove(b){if(b.prev!==Ed.Undefined&&b.next!==Ed.Undefined){const I=b.prev;I.next=b.next,b.next.prev=I}else b.prev===Ed.Undefined&&b.next===Ed.Undefined?(this._first=Ed.Undefined,this._last=Ed.Undefined):b.next===Ed.Undefined?(this._last=this._last.prev,this._last.next=Ed.Undefined):b.prev===Ed.Undefined&&(this._first=this._first.next,this._first.prev=Ed.Undefined);this._size-=1}*[Symbol.iterator](){let b=this._first;for(;b!==Ed.Undefined;)yield b.element,b=b.next}}const HFe=globalThis.performance&&typeof globalThis.performance.now=="function";class TB{static create(b){return new TB(b)}constructor(b){this._now=HFe&&b===!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 fte;(function(g){g.None=()=>c6.None;function b(mn,li){return $t(mn,()=>{},0,void 0,!0,void 0,li)}g.defer=b;function I(mn){return(li,jo=null,Wt)=>{let Qa=!1,Zo;return Zo=mn(Cs=>{if(!Qa)return Zo?Zo.dispose():Qa=!0,li.call(jo,Cs)},null,Wt),Qa&&Zo.dispose(),Zo}}g.once=I;function z(mn,li,jo){return Ne((Wt,Qa=null,Zo)=>mn(Cs=>Wt.call(Qa,li(Cs)),null,Zo),jo)}g.map=z;function ee(mn,li,jo){return Ne((Wt,Qa=null,Zo)=>mn(Cs=>{li(Cs),Wt.call(Qa,Cs)},null,Zo),jo)}g.forEach=ee;function _e(mn,li,jo){return Ne((Wt,Qa=null,Zo)=>mn(Cs=>li(Cs)&&Wt.call(Qa,Cs),null,Zo),jo)}g.filter=_e;function Re(mn){return mn}g.signal=Re;function Ge(...mn){return(li,jo=null,Wt)=>{const Qa=jFe(...mn.map(Zo=>Zo(Cs=>li.call(jo,Cs))));return Xe(Qa,Wt)}}g.any=Ge;function at(mn,li,jo,Wt){let Qa=jo;return z(mn,Zo=>(Qa=li(Qa,Zo),Qa),Wt)}g.reduce=at;function Ne(mn,li){let jo;const Wt={onWillAddFirstListener(){jo=mn(Qa.fire,Qa)},onDidRemoveLastListener(){jo==null||jo.dispose()}},Qa=new _E(Wt);return li==null||li.add(Qa),Qa.event}function Xe(mn,li){return li instanceof Array?li.push(mn):li&&li.add(mn),mn}function $t(mn,li,jo=100,Wt=!1,Qa=!1,Zo,Cs){let Do,kp,EE,Cx=0,Jb;const eo={leakWarningThreshold:Zo,onWillAddFirstListener(){Do=mn(y6=>{Cx++,kp=li(kp,y6),Wt&&!EE&&(Kb.fire(kp),kp=void 0),Jb=()=>{const dA=kp;kp=void 0,EE=void 0,(!Wt||Cx>1)&&Kb.fire(dA),Cx=0},typeof jo=="number"?(clearTimeout(EE),EE=setTimeout(Jb,jo)):EE===void 0&&(EE=0,queueMicrotask(Jb))})},onWillRemoveListener(){Qa&&Cx>0&&(Jb==null||Jb())},onDidRemoveLastListener(){Jb=void 0,Do.dispose()}},Kb=new _E(eo);return Cs==null||Cs.add(Kb),Kb.event}g.debounce=$t;function Ht(mn,li=0,jo){return g.debounce(mn,(Wt,Qa)=>Wt?(Wt.push(Qa),Wt):[Qa],li,void 0,!0,void 0,jo)}g.accumulate=Ht;function pn(mn,li=(Wt,Qa)=>Wt===Qa,jo){let Wt=!0,Qa;return _e(mn,Zo=>{const Cs=Wt||!li(Zo,Qa);return Wt=!1,Qa=Zo,Cs},jo)}g.latch=pn;function Pr(mn,li,jo){return[g.filter(mn,li,jo),g.filter(mn,Wt=>!li(Wt),jo)]}g.split=Pr;function gi(mn,li=!1,jo=[],Wt){let Qa=jo.slice(),Zo=mn(kp=>{Qa?Qa.push(kp):Do.fire(kp)});Wt&&Wt.add(Zo);const Cs=()=>{Qa==null||Qa.forEach(kp=>Do.fire(kp)),Qa=null},Do=new _E({onWillAddFirstListener(){Zo||(Zo=mn(kp=>Do.fire(kp)),Wt&&Wt.add(Zo))},onDidAddFirstListener(){Qa&&(li?setTimeout(Cs):Cs())},onDidRemoveLastListener(){Zo&&Zo.dispose(),Zo=null}});return Wt&&Wt.add(Do),Do.event}g.buffer=gi;function io(mn,li){return(Wt,Qa,Zo)=>{const Cs=li(new In);return mn(function(Do){const kp=Cs.evaluate(Do);kp!==Jn&&Wt.call(Qa,kp)},void 0,Zo)}}g.chain=io;const Jn=Symbol("HaltChainable");class In{constructor(){this.steps=[]}map(li){return this.steps.push(li),this}forEach(li){return this.steps.push(jo=>(li(jo),jo)),this}filter(li){return this.steps.push(jo=>li(jo)?jo:Jn),this}reduce(li,jo){let Wt=jo;return this.steps.push(Qa=>(Wt=li(Wt,Qa),Wt)),this}latch(li=(jo,Wt)=>jo===Wt){let jo=!0,Wt;return this.steps.push(Qa=>{const Zo=jo||!li(Qa,Wt);return jo=!1,Wt=Qa,Zo?Qa:Jn}),this}evaluate(li){for(const jo of this.steps)if(li=jo(li),li===Jn)break;return li}}function oi(mn,li,jo=Wt=>Wt){const Wt=(...Do)=>Cs.fire(jo(...Do)),Qa=()=>mn.on(li,Wt),Zo=()=>mn.removeListener(li,Wt),Cs=new _E({onWillAddFirstListener:Qa,onDidRemoveLastListener:Zo});return Cs.event}g.fromNodeEventEmitter=oi;function mi(mn,li,jo=Wt=>Wt){const Wt=(...Do)=>Cs.fire(jo(...Do)),Qa=()=>mn.addEventListener(li,Wt),Zo=()=>mn.removeEventListener(li,Wt),Cs=new _E({onWillAddFirstListener:Qa,onDidRemoveLastListener:Zo});return Cs.event}g.fromDOMEventEmitter=mi;function Yi(mn){return new Promise(li=>I(mn)(li))}g.toPromise=Yi;function ja(mn){const li=new _E;return mn.then(jo=>{li.fire(jo)},()=>{li.fire(void 0)}).finally(()=>{li.dispose()}),li.event}g.fromPromise=ja;function Or(mn,li,jo){return li(jo),mn(Wt=>li(Wt))}g.runAndSubscribe=Or;class Ba{constructor(li,jo){this._observable=li,this._counter=0,this._hasChanged=!1;const Wt={onWillAddFirstListener:()=>{li.addObserver(this)},onDidRemoveLastListener:()=>{li.removeObserver(this)}};this.emitter=new _E(Wt),jo&&jo.add(this.emitter)}beginUpdate(li){this._counter++}handlePossibleChange(li){}handleChange(li,jo){this._hasChanged=!0}endUpdate(li){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function Jc(mn,li){return new Ba(mn,li).emitter.event}g.fromObservable=Jc;function ou(mn){return(li,jo,Wt)=>{let Qa=0,Zo=!1;const Cs={beginUpdate(){Qa++},endUpdate(){Qa--,Qa===0&&(mn.reportChanges(),Zo&&(Zo=!1,li.call(jo)))},handlePossibleChange(){},handleChange(){Zo=!0}};mn.addObserver(Cs),mn.reportChanges();const Do={dispose(){mn.removeObserver(Cs)}};return Wt instanceof h2?Wt.add(Do):Array.isArray(Wt)&&Wt.push(Do),Do}}g.fromObservableLight=ou})(fte||(fte={}));class g2{constructor(b){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${b}_${g2._idPool++}`,g2.all.add(this)}start(b){this._stopWatch=new TB,this.listenerCount=b}stop(){if(this._stopWatch){const b=this._stopWatch.elapsed();this.durations.push(b),this.elapsedOverall+=b,this.invocationCount+=1,this._stopWatch=void 0}}}g2.all=new Set,g2._idPool=0;let qFe=-1;class JFe{constructor(b,I,z=Math.random().toString(18).slice(2,5)){this._errorHandler=b,this.threshold=I,this.name=z,this._warnCountdown=0}dispose(){var b;(b=this._stacks)===null||b===void 0||b.clear()}check(b,I){const z=this.threshold;if(z<=0||I<z)return;this._stacks||(this._stacks=new Map);const ee=this._stacks.get(b.value)||0;if(this._stacks.set(b.value,ee+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=z*.5;const[_e,Re]=this.getMostFrequentStack(),Ge=`[${this.name}] potential listener LEAK detected, having ${I} listeners already. MOST frequent listener (${Re}):`;console.warn(Ge),console.warn(_e);const at=new KFe(Ge,_e);this._errorHandler(at)}return()=>{const _e=this._stacks.get(b.value)||0;this._stacks.set(b.value,_e-1)}}getMostFrequentStack(){if(!this._stacks)return;let b,I=0;for(const[z,ee]of this._stacks)(!b||I<ee)&&(b=[z,ee],I=ee);return b}}class mte{static create(){var b;const I=new Error;return new mte((b=I.stack)!==null&&b!==void 0?b:"")}constructor(b){this.value=b}print(){console.warn(this.value.split(` +`).slice(2).join(` +`))}}class KFe extends Error{constructor(b,I){super(b),this.name="ListenerLeakError",this.stack=I}}class XFe extends Error{constructor(b,I){super(b),this.name="ListenerRefusalError",this.stack=I}}class _te{constructor(b){this.value=b}}const YFe=2;class _E{constructor(b){var I,z,ee,_e,Re,Ge;this._size=0,this._options=b,this._leakageMon=!((I=this._options)===null||I===void 0)&&I.leakWarningThreshold?new JFe((z=b==null?void 0:b.onListenerError)!==null&&z!==void 0?z:bB,(_e=(ee=this._options)===null||ee===void 0?void 0:ee.leakWarningThreshold)!==null&&_e!==void 0?_e:qFe):void 0,this._perfMon=!((Re=this._options)===null||Re===void 0)&&Re._profName?new g2(this._options._profName):void 0,this._deliveryQueue=(Ge=this._options)===null||Ge===void 0?void 0:Ge.deliveryQueue}dispose(){var b,I,z,ee;this._disposed||(this._disposed=!0,((b=this._deliveryQueue)===null||b===void 0?void 0:b.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(z=(I=this._options)===null||I===void 0?void 0:I.onDidRemoveLastListener)===null||z===void 0||z.call(I),(ee=this._leakageMon)===null||ee===void 0||ee.dispose())}get event(){var b;return(b=this._event)!==null&&b!==void 0||(this._event=(I,z,ee)=>{var _e,Re,Ge,at,Ne,Xe,$t;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const gi=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(gi);const io=(_e=this._leakageMon.getMostFrequentStack())!==null&&_e!==void 0?_e:["UNKNOWN stack",-1],Jn=new XFe(`${gi}. HINT: Stack shows most frequent listener (${io[1]}-times)`,io[0]);return(((Re=this._options)===null||Re===void 0?void 0:Re.onListenerError)||bB)(Jn),c6.None}if(this._disposed)return c6.None;z&&(I=I.bind(z));const Ht=new _te(I);let pn;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(Ht.stack=mte.create(),pn=this._leakageMon.check(Ht.stack,this._size+1)),this._listeners?this._listeners instanceof _te?(($t=this._deliveryQueue)!==null&&$t!==void 0||(this._deliveryQueue=new $Fe),this._listeners=[this._listeners,Ht]):this._listeners.push(Ht):((at=(Ge=this._options)===null||Ge===void 0?void 0:Ge.onWillAddFirstListener)===null||at===void 0||at.call(Ge,this),this._listeners=Ht,(Xe=(Ne=this._options)===null||Ne===void 0?void 0:Ne.onDidAddFirstListener)===null||Xe===void 0||Xe.call(Ne,this)),this._size++;const Pr=SB(()=>{pn==null||pn(),this._removeListener(Ht)});return ee instanceof h2?ee.add(Pr):Array.isArray(ee)&&ee.push(Pr),Pr}),this._event}_removeListener(b){var I,z,ee,_e;if((z=(I=this._options)===null||I===void 0?void 0:I.onWillRemoveListener)===null||z===void 0||z.call(I,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(_e=(ee=this._options)===null||ee===void 0?void 0:ee.onDidRemoveLastListener)===null||_e===void 0||_e.call(ee,this),this._size=0;return}const Re=this._listeners,Ge=Re.indexOf(b);if(Ge===-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--,Re[Ge]=void 0;const at=this._deliveryQueue.current===this;if(this._size*YFe<=Re.length){let Ne=0;for(let Xe=0;Xe<Re.length;Xe++)Re[Xe]?Re[Ne++]=Re[Xe]:at&&(this._deliveryQueue.end--,Ne<this._deliveryQueue.i&&this._deliveryQueue.i--);Re.length=Ne}}_deliver(b,I){var z;if(!b)return;const ee=((z=this._options)===null||z===void 0?void 0:z.onListenerError)||bB;if(!ee){b.value(I);return}try{b.value(I)}catch(_e){ee(_e)}}_deliverQueue(b){const I=b.current._listeners;for(;b.i<b.end;)this._deliver(I[b.i++],b.value);b.reset()}fire(b){var I,z,ee,_e;if(!((I=this._deliveryQueue)===null||I===void 0)&&I.current&&(this._deliverQueue(this._deliveryQueue),(z=this._perfMon)===null||z===void 0||z.stop()),(ee=this._perfMon)===null||ee===void 0||ee.start(this._size),this._listeners)if(this._listeners instanceof _te)this._deliver(this._listeners,b);else{const Re=this._deliveryQueue;Re.enqueue(this,b,this._listeners.length),this._deliverQueue(Re)}(_e=this._perfMon)===null||_e===void 0||_e.stop()}hasListeners(){return this._size>0}}class $Fe{constructor(){this.i=-1,this.end=0}enqueue(b,I,z){this.i=0,this.end=z,this.current=b,this.value=I}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function QFe(g){return typeof g=="string"}function ZFe(g){let b=[];for(;Object.prototype!==g;)b=b.concat(Object.getOwnPropertyNames(g)),g=Object.getPrototypeOf(g);return b}function hte(g){const b=[];for(const I of ZFe(g))typeof g[I]=="function"&&b.push(I);return b}function e7e(g,b){const I=ee=>function(){const _e=Array.prototype.slice.call(arguments,0);return b(ee,_e)},z={};for(const ee of g)z[ee]=I(ee);return z}let t7e=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function n7e(g,b){let I;return b.length===0?I=g:I=g.replace(/\{(\d+)\}/g,(z,ee)=>{const _e=ee[0],Re=b[_e];let Ge=z;return typeof Re=="string"?Ge=Re:(typeof Re=="number"||typeof Re=="boolean"||Re===void 0||Re===null)&&(Ge=String(Re)),Ge}),t7e&&(I="["+I.replace(/[aouei]/g,"$&$&")+"]"),I}function wd(g,b,...I){return n7e(b,I)}function Uyt(g){}var gte,vte;const v2="en";let yte=!1,bte=!1,Ete=!1,AB,Ste=v2,bbe=v2,r7e,hE;const zN=globalThis;let ih;typeof zN.vscode<"u"&&typeof zN.vscode.process<"u"?ih=zN.vscode.process:typeof process<"u"&&typeof((gte=process==null?void 0:process.versions)===null||gte===void 0?void 0:gte.node)=="string"&&(ih=process);const i7e=typeof((vte=ih==null?void 0:ih.versions)===null||vte===void 0?void 0:vte.electron)=="string"&&(ih==null?void 0:ih.type)==="renderer";if(typeof ih=="object"){yte=ih.platform==="win32",bte=ih.platform==="darwin",Ete=ih.platform==="linux",Ete&&ih.env.SNAP&&ih.env.SNAP_REVISION,ih.env.CI||ih.env.BUILD_ARTIFACTSTAGINGDIRECTORY,AB=v2,Ste=v2;const g=ih.env.VSCODE_NLS_CONFIG;if(g)try{const b=JSON.parse(g),I=b.availableLanguages["*"];AB=b.locale,bbe=b.osLocale,Ste=I||v2,r7e=b._translationsConfigFile}catch{}}else typeof navigator=="object"&&!i7e?(hE=navigator.userAgent,yte=hE.indexOf("Windows")>=0,bte=hE.indexOf("Macintosh")>=0,(hE.indexOf("Macintosh")>=0||hE.indexOf("iPad")>=0||hE.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Ete=hE.indexOf("Linux")>=0,(hE==null?void 0:hE.indexOf("Mobi"))>=0,wd({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),AB=v2,Ste=AB,bbe=navigator.language):console.error("Unable to resolve platform.");const u6=yte,o7e=bte,nS=hE,a7e=typeof zN.postMessage=="function"&&!zN.importScripts;(()=>{if(a7e){const g=[];zN.addEventListener("message",I=>{if(I.data&&I.data.vscodeScheduleAsyncWork)for(let z=0,ee=g.length;z<ee;z++){const _e=g[z];if(_e.id===I.data.vscodeScheduleAsyncWork){g.splice(z,1),_e.callback();return}}});let b=0;return I=>{const z=++b;g.push({id:z,callback:I}),zN.postMessage({vscodeScheduleAsyncWork:z},"*")}}return g=>setTimeout(g)})();const s7e=!!(nS&&nS.indexOf("Chrome")>=0);nS&&nS.indexOf("Firefox")>=0,!s7e&&nS&&nS.indexOf("Safari")>=0,nS&&nS.indexOf("Edg/")>=0,nS&&nS.indexOf("Android")>=0;function l7e(g){return g}class c7e{constructor(b,I){this.lastCache=void 0,this.lastArgKey=void 0,typeof b=="function"?(this._fn=b,this._computeKey=l7e):(this._fn=I,this._computeKey=b.getCacheKey)}get(b){const I=this._computeKey(b);return this.lastArgKey!==I&&(this.lastArgKey=I,this.lastCache=this._fn(b)),this.lastCache}}class Ebe{constructor(b){this.executor=b,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(b){this._error=b}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var y2;function u7e(g){return g.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function d7e(g){return g.split(/\r\n|\r|\n/)}function p7e(g){for(let b=0,I=g.length;b<I;b++){const z=g.charCodeAt(b);if(z!==32&&z!==9)return b}return-1}function f7e(g,b=g.length-1){for(let I=b;I>=0;I--){const z=g.charCodeAt(I);if(z!==32&&z!==9)return I}return-1}function Sbe(g){return g>=65&&g<=90}function Tte(g){return 55296<=g&&g<=56319}function m7e(g){return 56320<=g&&g<=57343}function _7e(g,b){return(g-55296<<10)+(b-56320)+65536}function h7e(g,b,I){const z=g.charCodeAt(I);if(Tte(z)&&I+1<b){const ee=g.charCodeAt(I+1);if(m7e(ee))return _7e(z,ee)}return z}const g7e=/^[\t\n\r\x20-\x7E]*$/;function v7e(g){return g7e.test(g)}class BN{static getInstance(b){return y2.cache.get(Array.from(b))}static getLocales(){return y2._locales.value}constructor(b){this.confusableDictionary=b}isAmbiguous(b){return this.confusableDictionary.has(b)}getPrimaryConfusable(b){return this.confusableDictionary.get(b)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}y2=BN,BN.ambiguousCharacterData=new Ebe(()=>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]}')),BN.cache=new c7e({getCacheKey:JSON.stringify},g=>{function b(Ne){const Xe=new Map;for(let $t=0;$t<Ne.length;$t+=2)Xe.set(Ne[$t],Ne[$t+1]);return Xe}function I(Ne,Xe){const $t=new Map(Ne);for(const[Ht,pn]of Xe)$t.set(Ht,pn);return $t}function z(Ne,Xe){if(!Ne)return Xe;const $t=new Map;for(const[Ht,pn]of Ne)Xe.has(Ht)&&$t.set(Ht,pn);return $t}const ee=y2.ambiguousCharacterData.value;let _e=g.filter(Ne=>!Ne.startsWith("_")&&Ne in ee);_e.length===0&&(_e=["_default"]);let Re;for(const Ne of _e){const Xe=b(ee[Ne]);Re=z(Re,Xe)}const Ge=b(ee._common),at=I(Ge,Re);return new y2(at)}),BN._locales=new Ebe(()=>Object.keys(y2.ambiguousCharacterData.value).filter(g=>!g.startsWith("_")));class Ex{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(Ex.getRawData())),this._data}static isInvisibleCharacter(b){return Ex.getData().has(b)}static get codePoints(){return Ex.getData()}}Ex._data=void 0;const y7e="$initialize";class b7e{constructor(b,I,z,ee){this.vsWorker=b,this.req=I,this.method=z,this.args=ee,this.type=0}}class Tbe{constructor(b,I,z,ee){this.vsWorker=b,this.seq=I,this.res=z,this.err=ee,this.type=1}}class E7e{constructor(b,I,z,ee){this.vsWorker=b,this.req=I,this.eventName=z,this.arg=ee,this.type=2}}class S7e{constructor(b,I,z){this.vsWorker=b,this.req=I,this.event=z,this.type=3}}class T7e{constructor(b,I){this.vsWorker=b,this.req=I,this.type=4}}class A7e{constructor(b){this._workerId=-1,this._handler=b,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(b){this._workerId=b}sendMessage(b,I){const z=String(++this._lastSentReq);return new Promise((ee,_e)=>{this._pendingReplies[z]={resolve:ee,reject:_e},this._send(new b7e(this._workerId,z,b,I))})}listen(b,I){let z=null;const ee=new _E({onWillAddFirstListener:()=>{z=String(++this._lastSentReq),this._pendingEmitters.set(z,ee),this._send(new E7e(this._workerId,z,b,I))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(z),this._send(new T7e(this._workerId,z)),z=null}});return ee.event}handleMessage(b){!b||!b.vsWorker||this._workerId!==-1&&b.vsWorker!==this._workerId||this._handleMessage(b)}_handleMessage(b){switch(b.type){case 1:return this._handleReplyMessage(b);case 0:return this._handleRequestMessage(b);case 2:return this._handleSubscribeEventMessage(b);case 3:return this._handleEventMessage(b);case 4:return this._handleUnsubscribeEventMessage(b)}}_handleReplyMessage(b){if(!this._pendingReplies[b.seq]){console.warn("Got reply to unknown seq");return}const I=this._pendingReplies[b.seq];if(delete this._pendingReplies[b.seq],b.err){let z=b.err;b.err.$isError&&(z=new Error,z.name=b.err.name,z.message=b.err.message,z.stack=b.err.stack),I.reject(z);return}I.resolve(b.res)}_handleRequestMessage(b){const I=b.req;this._handler.handleMessage(b.method,b.args).then(ee=>{this._send(new Tbe(this._workerId,I,ee,void 0))},ee=>{ee.detail instanceof Error&&(ee.detail=vbe(ee.detail)),this._send(new Tbe(this._workerId,I,void 0,vbe(ee)))})}_handleSubscribeEventMessage(b){const I=b.req,z=this._handler.handleEvent(b.eventName,b.arg)(ee=>{this._send(new S7e(this._workerId,I,ee))});this._pendingEvents.set(I,z)}_handleEventMessage(b){if(!this._pendingEmitters.has(b.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(b.req).fire(b.event)}_handleUnsubscribeEventMessage(b){if(!this._pendingEvents.has(b.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(b.req).dispose(),this._pendingEvents.delete(b.req)}_send(b){const I=[];if(b.type===0)for(let z=0;z<b.args.length;z++)b.args[z]instanceof ArrayBuffer&&I.push(b.args[z]);else b.type===1&&b.res instanceof ArrayBuffer&&I.push(b.res);this._handler.sendMessage(b,I)}}function Abe(g){return g[0]==="o"&&g[1]==="n"&&Sbe(g.charCodeAt(2))}function Ibe(g){return/^onDynamic/.test(g)&&Sbe(g.charCodeAt(9))}function I7e(g,b,I){const z=Re=>function(){const Ge=Array.prototype.slice.call(arguments,0);return b(Re,Ge)},ee=Re=>function(Ge){return I(Re,Ge)},_e={};for(const Re of g){if(Ibe(Re)){_e[Re]=ee(Re);continue}if(Abe(Re)){_e[Re]=I(Re,void 0);continue}_e[Re]=z(Re)}return _e}class x7e{constructor(b,I){this._requestHandlerFactory=I,this._requestHandler=null,this._protocol=new A7e({sendMessage:(z,ee)=>{b(z,ee)},handleMessage:(z,ee)=>this._handleMessage(z,ee),handleEvent:(z,ee)=>this._handleEvent(z,ee)})}onmessage(b){this._protocol.handleMessage(b)}_handleMessage(b,I){if(b===y7e)return this.initialize(I[0],I[1],I[2],I[3]);if(!this._requestHandler||typeof this._requestHandler[b]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+b));try{return Promise.resolve(this._requestHandler[b].apply(this._requestHandler,I))}catch(z){return Promise.reject(z)}}_handleEvent(b,I){if(!this._requestHandler)throw new Error("Missing requestHandler");if(Ibe(b)){const z=this._requestHandler[b].call(this._requestHandler,I);if(typeof z!="function")throw new Error(`Missing dynamic event ${b} on request handler.`);return z}if(Abe(b)){const z=this._requestHandler[b];if(typeof z!="function")throw new Error(`Missing event ${b} on request handler.`);return z}throw new Error(`Malformed event name ${b}`)}initialize(b,I,z,ee){this._protocol.setWorkerId(b);const Ge=I7e(ee,(at,Ne)=>this._protocol.sendMessage(at,Ne),(at,Ne)=>this._protocol.listen(at,Ne));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(Ge),Promise.resolve(hte(this._requestHandler))):(I&&(typeof I.baseUrl<"u"&&delete I.baseUrl,typeof I.paths<"u"&&typeof I.paths.vs<"u"&&delete I.paths.vs,typeof I.trustedTypesPolicy<"u"&&delete I.trustedTypesPolicy,I.catchError=!0,globalThis.require.config(I)),new Promise((at,Ne)=>{const Xe=globalThis.require;Xe([z],$t=>{if(this._requestHandler=$t.create(Ge),!this._requestHandler){Ne(new Error("No RequestHandler!"));return}at(hte(this._requestHandler))},Ne)}))}}class Sx{constructor(b,I,z,ee){this.originalStart=b,this.originalLength=I,this.modifiedStart=z,this.modifiedLength=ee}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function xbe(g,b){return(b<<5)-b+g|0}function R7e(g,b){b=xbe(149417,b);for(let I=0,z=g.length;I<z;I++)b=xbe(g.charCodeAt(I),b);return b}class Rbe{constructor(b){this.source=b}getElements(){const b=this.source,I=new Int32Array(b.length);for(let z=0,ee=b.length;z<ee;z++)I[z]=b.charCodeAt(z);return I}}function D7e(g,b,I){return new Tx(new Rbe(g),new Rbe(b)).ComputeDiff(I).changes}class b2{static Assert(b,I){if(!b)throw new Error(I)}}class E2{static Copy(b,I,z,ee,_e){for(let Re=0;Re<_e;Re++)z[ee+Re]=b[I+Re]}static Copy2(b,I,z,ee,_e){for(let Re=0;Re<_e;Re++)z[ee+Re]=b[I+Re]}}class Dbe{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new Sx(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(b,I){this.m_originalStart=Math.min(this.m_originalStart,b),this.m_modifiedStart=Math.min(this.m_modifiedStart,I),this.m_originalCount++}AddModifiedElement(b,I){this.m_originalStart=Math.min(this.m_originalStart,b),this.m_modifiedStart=Math.min(this.m_modifiedStart,I),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}}class Tx{constructor(b,I,z=null){this.ContinueProcessingPredicate=z,this._originalSequence=b,this._modifiedSequence=I;const[ee,_e,Re]=Tx._getElements(b),[Ge,at,Ne]=Tx._getElements(I);this._hasStrings=Re&&Ne,this._originalStringElements=ee,this._originalElementsOrHash=_e,this._modifiedStringElements=Ge,this._modifiedElementsOrHash=at,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(b){return b.length>0&&typeof b[0]=="string"}static _getElements(b){const I=b.getElements();if(Tx._isStringArray(I)){const z=new Int32Array(I.length);for(let ee=0,_e=I.length;ee<_e;ee++)z[ee]=R7e(I[ee],0);return[I,z,!0]}return I instanceof Int32Array?[[],I,!1]:[[],new Int32Array(I),!1]}ElementsAreEqual(b,I){return this._originalElementsOrHash[b]!==this._modifiedElementsOrHash[I]?!1:this._hasStrings?this._originalStringElements[b]===this._modifiedStringElements[I]:!0}ElementsAreStrictEqual(b,I){if(!this.ElementsAreEqual(b,I))return!1;const z=Tx._getStrictElement(this._originalSequence,b),ee=Tx._getStrictElement(this._modifiedSequence,I);return z===ee}static _getStrictElement(b,I){return typeof b.getStrictElement=="function"?b.getStrictElement(I):null}OriginalElementsAreEqual(b,I){return this._originalElementsOrHash[b]!==this._originalElementsOrHash[I]?!1:this._hasStrings?this._originalStringElements[b]===this._originalStringElements[I]:!0}ModifiedElementsAreEqual(b,I){return this._modifiedElementsOrHash[b]!==this._modifiedElementsOrHash[I]?!1:this._hasStrings?this._modifiedStringElements[b]===this._modifiedStringElements[I]:!0}ComputeDiff(b){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,b)}_ComputeDiff(b,I,z,ee,_e){const Re=[!1];let Ge=this.ComputeDiffRecursive(b,I,z,ee,Re);return _e&&(Ge=this.PrettifyChanges(Ge)),{quitEarly:Re[0],changes:Ge}}ComputeDiffRecursive(b,I,z,ee,_e){for(_e[0]=!1;b<=I&&z<=ee&&this.ElementsAreEqual(b,z);)b++,z++;for(;I>=b&&ee>=z&&this.ElementsAreEqual(I,ee);)I--,ee--;if(b>I||z>ee){let $t;return z<=ee?(b2.Assert(b===I+1,"originalStart should only be one more than originalEnd"),$t=[new Sx(b,0,z,ee-z+1)]):b<=I?(b2.Assert(z===ee+1,"modifiedStart should only be one more than modifiedEnd"),$t=[new Sx(b,I-b+1,z,0)]):(b2.Assert(b===I+1,"originalStart should only be one more than originalEnd"),b2.Assert(z===ee+1,"modifiedStart should only be one more than modifiedEnd"),$t=[]),$t}const Re=[0],Ge=[0],at=this.ComputeRecursionPoint(b,I,z,ee,Re,Ge,_e),Ne=Re[0],Xe=Ge[0];if(at!==null)return at;if(!_e[0]){const $t=this.ComputeDiffRecursive(b,Ne,z,Xe,_e);let Ht=[];return _e[0]?Ht=[new Sx(Ne+1,I-(Ne+1)+1,Xe+1,ee-(Xe+1)+1)]:Ht=this.ComputeDiffRecursive(Ne+1,I,Xe+1,ee,_e),this.ConcatenateChanges($t,Ht)}return[new Sx(b,I-b+1,z,ee-z+1)]}WALKTRACE(b,I,z,ee,_e,Re,Ge,at,Ne,Xe,$t,Ht,pn,Pr,gi,io,Jn,In){let oi=null,mi=null,Yi=new Dbe,ja=I,Or=z,Ba=pn[0]-io[0]-ee,Jc=-1073741824,ou=this.m_forwardHistory.length-1;do{const mn=Ba+b;mn===ja||mn<Or&&Ne[mn-1]<Ne[mn+1]?($t=Ne[mn+1],Pr=$t-Ba-ee,$t<Jc&&Yi.MarkNextChange(),Jc=$t,Yi.AddModifiedElement($t+1,Pr),Ba=mn+1-b):($t=Ne[mn-1]+1,Pr=$t-Ba-ee,$t<Jc&&Yi.MarkNextChange(),Jc=$t-1,Yi.AddOriginalElement($t,Pr+1),Ba=mn-1-b),ou>=0&&(Ne=this.m_forwardHistory[ou],b=Ne[0],ja=1,Or=Ne.length-1)}while(--ou>=-1);if(oi=Yi.getReverseChanges(),In[0]){let mn=pn[0]+1,li=io[0]+1;if(oi!==null&&oi.length>0){const jo=oi[oi.length-1];mn=Math.max(mn,jo.getOriginalEnd()),li=Math.max(li,jo.getModifiedEnd())}mi=[new Sx(mn,Ht-mn+1,li,gi-li+1)]}else{Yi=new Dbe,ja=Re,Or=Ge,Ba=pn[0]-io[0]-at,Jc=1073741824,ou=Jn?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const mn=Ba+_e;mn===ja||mn<Or&&Xe[mn-1]>=Xe[mn+1]?($t=Xe[mn+1]-1,Pr=$t-Ba-at,$t>Jc&&Yi.MarkNextChange(),Jc=$t+1,Yi.AddOriginalElement($t+1,Pr+1),Ba=mn+1-_e):($t=Xe[mn-1],Pr=$t-Ba-at,$t>Jc&&Yi.MarkNextChange(),Jc=$t,Yi.AddModifiedElement($t+1,Pr+1),Ba=mn-1-_e),ou>=0&&(Xe=this.m_reverseHistory[ou],_e=Xe[0],ja=1,Or=Xe.length-1)}while(--ou>=-1);mi=Yi.getChanges()}return this.ConcatenateChanges(oi,mi)}ComputeRecursionPoint(b,I,z,ee,_e,Re,Ge){let at=0,Ne=0,Xe=0,$t=0,Ht=0,pn=0;b--,z--,_e[0]=0,Re[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const Pr=I-b+(ee-z),gi=Pr+1,io=new Int32Array(gi),Jn=new Int32Array(gi),In=ee-z,oi=I-b,mi=b-z,Yi=I-ee,Or=(oi-In)%2===0;io[In]=b,Jn[oi]=I,Ge[0]=!1;for(let Ba=1;Ba<=Pr/2+1;Ba++){let Jc=0,ou=0;Xe=this.ClipDiagonalBound(In-Ba,Ba,In,gi),$t=this.ClipDiagonalBound(In+Ba,Ba,In,gi);for(let li=Xe;li<=$t;li+=2){li===Xe||li<$t&&io[li-1]<io[li+1]?at=io[li+1]:at=io[li-1]+1,Ne=at-(li-In)-mi;const jo=at;for(;at<I&&Ne<ee&&this.ElementsAreEqual(at+1,Ne+1);)at++,Ne++;if(io[li]=at,at+Ne>Jc+ou&&(Jc=at,ou=Ne),!Or&&Math.abs(li-oi)<=Ba-1&&at>=Jn[li])return _e[0]=at,Re[0]=Ne,jo<=Jn[li]&&1447>0&&Ba<=1448?this.WALKTRACE(In,Xe,$t,mi,oi,Ht,pn,Yi,io,Jn,at,I,_e,Ne,ee,Re,Or,Ge):null}const mn=(Jc-b+(ou-z)-Ba)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Jc,mn))return Ge[0]=!0,_e[0]=Jc,Re[0]=ou,mn>0&&1447>0&&Ba<=1448?this.WALKTRACE(In,Xe,$t,mi,oi,Ht,pn,Yi,io,Jn,at,I,_e,Ne,ee,Re,Or,Ge):(b++,z++,[new Sx(b,I-b+1,z,ee-z+1)]);Ht=this.ClipDiagonalBound(oi-Ba,Ba,oi,gi),pn=this.ClipDiagonalBound(oi+Ba,Ba,oi,gi);for(let li=Ht;li<=pn;li+=2){li===Ht||li<pn&&Jn[li-1]>=Jn[li+1]?at=Jn[li+1]-1:at=Jn[li-1],Ne=at-(li-oi)-Yi;const jo=at;for(;at>b&&Ne>z&&this.ElementsAreEqual(at,Ne);)at--,Ne--;if(Jn[li]=at,Or&&Math.abs(li-In)<=Ba&&at<=io[li])return _e[0]=at,Re[0]=Ne,jo>=io[li]&&1447>0&&Ba<=1448?this.WALKTRACE(In,Xe,$t,mi,oi,Ht,pn,Yi,io,Jn,at,I,_e,Ne,ee,Re,Or,Ge):null}if(Ba<=1447){let li=new Int32Array($t-Xe+2);li[0]=In-Xe+1,E2.Copy2(io,Xe,li,1,$t-Xe+1),this.m_forwardHistory.push(li),li=new Int32Array(pn-Ht+2),li[0]=oi-Ht+1,E2.Copy2(Jn,Ht,li,1,pn-Ht+1),this.m_reverseHistory.push(li)}}return this.WALKTRACE(In,Xe,$t,mi,oi,Ht,pn,Yi,io,Jn,at,I,_e,Ne,ee,Re,Or,Ge)}PrettifyChanges(b){for(let I=0;I<b.length;I++){const z=b[I],ee=I<b.length-1?b[I+1].originalStart:this._originalElementsOrHash.length,_e=I<b.length-1?b[I+1].modifiedStart:this._modifiedElementsOrHash.length,Re=z.originalLength>0,Ge=z.modifiedLength>0;for(;z.originalStart+z.originalLength<ee&&z.modifiedStart+z.modifiedLength<_e&&(!Re||this.OriginalElementsAreEqual(z.originalStart,z.originalStart+z.originalLength))&&(!Ge||this.ModifiedElementsAreEqual(z.modifiedStart,z.modifiedStart+z.modifiedLength));){const Ne=this.ElementsAreStrictEqual(z.originalStart,z.modifiedStart);if(this.ElementsAreStrictEqual(z.originalStart+z.originalLength,z.modifiedStart+z.modifiedLength)&&!Ne)break;z.originalStart++,z.modifiedStart++}const at=[null];if(I<b.length-1&&this.ChangesOverlap(b[I],b[I+1],at)){b[I]=at[0],b.splice(I+1,1),I--;continue}}for(let I=b.length-1;I>=0;I--){const z=b[I];let ee=0,_e=0;if(I>0){const $t=b[I-1];ee=$t.originalStart+$t.originalLength,_e=$t.modifiedStart+$t.modifiedLength}const Re=z.originalLength>0,Ge=z.modifiedLength>0;let at=0,Ne=this._boundaryScore(z.originalStart,z.originalLength,z.modifiedStart,z.modifiedLength);for(let $t=1;;$t++){const Ht=z.originalStart-$t,pn=z.modifiedStart-$t;if(Ht<ee||pn<_e||Re&&!this.OriginalElementsAreEqual(Ht,Ht+z.originalLength)||Ge&&!this.ModifiedElementsAreEqual(pn,pn+z.modifiedLength))break;const gi=(Ht===ee&&pn===_e?5:0)+this._boundaryScore(Ht,z.originalLength,pn,z.modifiedLength);gi>Ne&&(Ne=gi,at=$t)}z.originalStart-=at,z.modifiedStart-=at;const Xe=[null];if(I>0&&this.ChangesOverlap(b[I-1],b[I],Xe)){b[I-1]=Xe[0],b.splice(I,1),I++;continue}}if(this._hasStrings)for(let I=1,z=b.length;I<z;I++){const ee=b[I-1],_e=b[I],Re=_e.originalStart-ee.originalStart-ee.originalLength,Ge=ee.originalStart,at=_e.originalStart+_e.originalLength,Ne=at-Ge,Xe=ee.modifiedStart,$t=_e.modifiedStart+_e.modifiedLength,Ht=$t-Xe;if(Re<5&&Ne<20&&Ht<20){const pn=this._findBetterContiguousSequence(Ge,Ne,Xe,Ht,Re);if(pn){const[Pr,gi]=pn;(Pr!==ee.originalStart+ee.originalLength||gi!==ee.modifiedStart+ee.modifiedLength)&&(ee.originalLength=Pr-ee.originalStart,ee.modifiedLength=gi-ee.modifiedStart,_e.originalStart=Pr+Re,_e.modifiedStart=gi+Re,_e.originalLength=at-_e.originalStart,_e.modifiedLength=$t-_e.modifiedStart)}}}return b}_findBetterContiguousSequence(b,I,z,ee,_e){if(I<_e||ee<_e)return null;const Re=b+I-_e+1,Ge=z+ee-_e+1;let at=0,Ne=0,Xe=0;for(let $t=b;$t<Re;$t++)for(let Ht=z;Ht<Ge;Ht++){const pn=this._contiguousSequenceScore($t,Ht,_e);pn>0&&pn>at&&(at=pn,Ne=$t,Xe=Ht)}return at>0?[Ne,Xe]:null}_contiguousSequenceScore(b,I,z){let ee=0;for(let _e=0;_e<z;_e++){if(!this.ElementsAreEqual(b+_e,I+_e))return 0;ee+=this._originalStringElements[b+_e].length}return ee}_OriginalIsBoundary(b){return b<=0||b>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[b])}_OriginalRegionIsBoundary(b,I){if(this._OriginalIsBoundary(b)||this._OriginalIsBoundary(b-1))return!0;if(I>0){const z=b+I;if(this._OriginalIsBoundary(z-1)||this._OriginalIsBoundary(z))return!0}return!1}_ModifiedIsBoundary(b){return b<=0||b>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[b])}_ModifiedRegionIsBoundary(b,I){if(this._ModifiedIsBoundary(b)||this._ModifiedIsBoundary(b-1))return!0;if(I>0){const z=b+I;if(this._ModifiedIsBoundary(z-1)||this._ModifiedIsBoundary(z))return!0}return!1}_boundaryScore(b,I,z,ee){const _e=this._OriginalRegionIsBoundary(b,I)?1:0,Re=this._ModifiedRegionIsBoundary(z,ee)?1:0;return _e+Re}ConcatenateChanges(b,I){const z=[];if(b.length===0||I.length===0)return I.length>0?I:b;if(this.ChangesOverlap(b[b.length-1],I[0],z)){const ee=new Array(b.length+I.length-1);return E2.Copy(b,0,ee,0,b.length-1),ee[b.length-1]=z[0],E2.Copy(I,1,ee,b.length,I.length-1),ee}else{const ee=new Array(b.length+I.length);return E2.Copy(b,0,ee,0,b.length),E2.Copy(I,0,ee,b.length,I.length),ee}}ChangesOverlap(b,I,z){if(b2.Assert(b.originalStart<=I.originalStart,"Left change is not less than or equal to right change"),b2.Assert(b.modifiedStart<=I.modifiedStart,"Left change is not less than or equal to right change"),b.originalStart+b.originalLength>=I.originalStart||b.modifiedStart+b.modifiedLength>=I.modifiedStart){const ee=b.originalStart;let _e=b.originalLength;const Re=b.modifiedStart;let Ge=b.modifiedLength;return b.originalStart+b.originalLength>=I.originalStart&&(_e=I.originalStart+I.originalLength-b.originalStart),b.modifiedStart+b.modifiedLength>=I.modifiedStart&&(Ge=I.modifiedStart+I.modifiedLength-b.modifiedStart),z[0]=new Sx(ee,_e,Re,Ge),!0}else return z[0]=null,!1}ClipDiagonalBound(b,I,z,ee){if(b>=0&&b<ee)return b;const _e=z,Re=ee-z-1,Ge=I%2===0;if(b<0){const at=_e%2===0;return Ge===at?0:1}else{const at=Re%2===0;return Ge===at?ee-1:ee-2}}}var Nbe={};let S2;const Ate=globalThis.vscode;if(typeof Ate<"u"&&typeof Ate.process<"u"){const g=Ate.process;S2={get platform(){return g.platform},get arch(){return g.arch},get env(){return g.env},cwd(){return g.cwd()}}}else typeof process<"u"?S2={get platform(){return process.platform},get arch(){return process.arch},get env(){return Nbe},cwd(){return Nbe.VSCODE_CWD||process.cwd()}}:S2={get platform(){return u6?"win32":o7e?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const IB=S2.cwd,N7e=S2.env,C7e=S2.platform,P7e=65,M7e=97,L7e=90,k7e=122,Ax=46,b_=47,bv=92,Ix=58,w7e=63;class Cbe extends Error{constructor(b,I,z){let ee;typeof I=="string"&&I.indexOf("not ")===0?(ee="must not be",I=I.replace(/^not /,"")):ee="must be";const _e=b.indexOf(".")!==-1?"property":"argument";let Re=`The "${b}" ${_e} ${ee} of type ${I}`;Re+=`. Received type ${typeof z}`,super(Re),this.code="ERR_INVALID_ARG_TYPE"}}function O7e(g,b){if(g===null||typeof g!="object")throw new Cbe(b,"Object",g)}function bf(g,b){if(typeof g!="string")throw new Cbe(b,"string",g)}const xx=C7e==="win32";function jl(g){return g===b_||g===bv}function Ite(g){return g===b_}function Rx(g){return g>=P7e&&g<=L7e||g>=M7e&&g<=k7e}function xB(g,b,I,z){let ee="",_e=0,Re=-1,Ge=0,at=0;for(let Ne=0;Ne<=g.length;++Ne){if(Ne<g.length)at=g.charCodeAt(Ne);else{if(z(at))break;at=b_}if(z(at)){if(!(Re===Ne-1||Ge===1))if(Ge===2){if(ee.length<2||_e!==2||ee.charCodeAt(ee.length-1)!==Ax||ee.charCodeAt(ee.length-2)!==Ax){if(ee.length>2){const Xe=ee.lastIndexOf(I);Xe===-1?(ee="",_e=0):(ee=ee.slice(0,Xe),_e=ee.length-1-ee.lastIndexOf(I)),Re=Ne,Ge=0;continue}else if(ee.length!==0){ee="",_e=0,Re=Ne,Ge=0;continue}}b&&(ee+=ee.length>0?`${I}..`:"..",_e=2)}else ee.length>0?ee+=`${I}${g.slice(Re+1,Ne)}`:ee=g.slice(Re+1,Ne),_e=Ne-Re-1;Re=Ne,Ge=0}else at===Ax&&Ge!==-1?++Ge:Ge=-1}return ee}function Pbe(g,b){O7e(b,"pathObject");const I=b.dir||b.root,z=b.base||`${b.name||""}${b.ext||""}`;return I?I===b.root?`${I}${z}`:`${I}${g}${z}`:z}const xg={resolve(...g){let b="",I="",z=!1;for(let ee=g.length-1;ee>=-1;ee--){let _e;if(ee>=0){if(_e=g[ee],bf(_e,"path"),_e.length===0)continue}else b.length===0?_e=IB():(_e=N7e[`=${b}`]||IB(),(_e===void 0||_e.slice(0,2).toLowerCase()!==b.toLowerCase()&&_e.charCodeAt(2)===bv)&&(_e=`${b}\\`));const Re=_e.length;let Ge=0,at="",Ne=!1;const Xe=_e.charCodeAt(0);if(Re===1)jl(Xe)&&(Ge=1,Ne=!0);else if(jl(Xe))if(Ne=!0,jl(_e.charCodeAt(1))){let $t=2,Ht=$t;for(;$t<Re&&!jl(_e.charCodeAt($t));)$t++;if($t<Re&&$t!==Ht){const pn=_e.slice(Ht,$t);for(Ht=$t;$t<Re&&jl(_e.charCodeAt($t));)$t++;if($t<Re&&$t!==Ht){for(Ht=$t;$t<Re&&!jl(_e.charCodeAt($t));)$t++;($t===Re||$t!==Ht)&&(at=`\\\\${pn}\\${_e.slice(Ht,$t)}`,Ge=$t)}}}else Ge=1;else Rx(Xe)&&_e.charCodeAt(1)===Ix&&(at=_e.slice(0,2),Ge=2,Re>2&&jl(_e.charCodeAt(2))&&(Ne=!0,Ge=3));if(at.length>0)if(b.length>0){if(at.toLowerCase()!==b.toLowerCase())continue}else b=at;if(z){if(b.length>0)break}else if(I=`${_e.slice(Ge)}\\${I}`,z=Ne,Ne&&b.length>0)break}return I=xB(I,!z,"\\",jl),z?`${b}\\${I}`:`${b}${I}`||"."},normalize(g){bf(g,"path");const b=g.length;if(b===0)return".";let I=0,z,ee=!1;const _e=g.charCodeAt(0);if(b===1)return Ite(_e)?"\\":g;if(jl(_e))if(ee=!0,jl(g.charCodeAt(1))){let Ge=2,at=Ge;for(;Ge<b&&!jl(g.charCodeAt(Ge));)Ge++;if(Ge<b&&Ge!==at){const Ne=g.slice(at,Ge);for(at=Ge;Ge<b&&jl(g.charCodeAt(Ge));)Ge++;if(Ge<b&&Ge!==at){for(at=Ge;Ge<b&&!jl(g.charCodeAt(Ge));)Ge++;if(Ge===b)return`\\\\${Ne}\\${g.slice(at)}\\`;Ge!==at&&(z=`\\\\${Ne}\\${g.slice(at,Ge)}`,I=Ge)}}}else I=1;else Rx(_e)&&g.charCodeAt(1)===Ix&&(z=g.slice(0,2),I=2,b>2&&jl(g.charCodeAt(2))&&(ee=!0,I=3));let Re=I<b?xB(g.slice(I),!ee,"\\",jl):"";return Re.length===0&&!ee&&(Re="."),Re.length>0&&jl(g.charCodeAt(b-1))&&(Re+="\\"),z===void 0?ee?`\\${Re}`:Re:ee?`${z}\\${Re}`:`${z}${Re}`},isAbsolute(g){bf(g,"path");const b=g.length;if(b===0)return!1;const I=g.charCodeAt(0);return jl(I)||b>2&&Rx(I)&&g.charCodeAt(1)===Ix&&jl(g.charCodeAt(2))},join(...g){if(g.length===0)return".";let b,I;for(let _e=0;_e<g.length;++_e){const Re=g[_e];bf(Re,"path"),Re.length>0&&(b===void 0?b=I=Re:b+=`\\${Re}`)}if(b===void 0)return".";let z=!0,ee=0;if(typeof I=="string"&&jl(I.charCodeAt(0))){++ee;const _e=I.length;_e>1&&jl(I.charCodeAt(1))&&(++ee,_e>2&&(jl(I.charCodeAt(2))?++ee:z=!1))}if(z){for(;ee<b.length&&jl(b.charCodeAt(ee));)ee++;ee>=2&&(b=`\\${b.slice(ee)}`)}return xg.normalize(b)},relative(g,b){if(bf(g,"from"),bf(b,"to"),g===b)return"";const I=xg.resolve(g),z=xg.resolve(b);if(I===z||(g=I.toLowerCase(),b=z.toLowerCase(),g===b))return"";let ee=0;for(;ee<g.length&&g.charCodeAt(ee)===bv;)ee++;let _e=g.length;for(;_e-1>ee&&g.charCodeAt(_e-1)===bv;)_e--;const Re=_e-ee;let Ge=0;for(;Ge<b.length&&b.charCodeAt(Ge)===bv;)Ge++;let at=b.length;for(;at-1>Ge&&b.charCodeAt(at-1)===bv;)at--;const Ne=at-Ge,Xe=Re<Ne?Re:Ne;let $t=-1,Ht=0;for(;Ht<Xe;Ht++){const Pr=g.charCodeAt(ee+Ht);if(Pr!==b.charCodeAt(Ge+Ht))break;Pr===bv&&($t=Ht)}if(Ht!==Xe){if($t===-1)return z}else{if(Ne>Xe){if(b.charCodeAt(Ge+Ht)===bv)return z.slice(Ge+Ht+1);if(Ht===2)return z.slice(Ge+Ht)}Re>Xe&&(g.charCodeAt(ee+Ht)===bv?$t=Ht:Ht===2&&($t=3)),$t===-1&&($t=0)}let pn="";for(Ht=ee+$t+1;Ht<=_e;++Ht)(Ht===_e||g.charCodeAt(Ht)===bv)&&(pn+=pn.length===0?"..":"\\..");return Ge+=$t,pn.length>0?`${pn}${z.slice(Ge,at)}`:(z.charCodeAt(Ge)===bv&&++Ge,z.slice(Ge,at))},toNamespacedPath(g){if(typeof g!="string"||g.length===0)return g;const b=xg.resolve(g);if(b.length<=2)return g;if(b.charCodeAt(0)===bv){if(b.charCodeAt(1)===bv){const I=b.charCodeAt(2);if(I!==w7e&&I!==Ax)return`\\\\?\\UNC\\${b.slice(2)}`}}else if(Rx(b.charCodeAt(0))&&b.charCodeAt(1)===Ix&&b.charCodeAt(2)===bv)return`\\\\?\\${b}`;return g},dirname(g){bf(g,"path");const b=g.length;if(b===0)return".";let I=-1,z=0;const ee=g.charCodeAt(0);if(b===1)return jl(ee)?g:".";if(jl(ee)){if(I=z=1,jl(g.charCodeAt(1))){let Ge=2,at=Ge;for(;Ge<b&&!jl(g.charCodeAt(Ge));)Ge++;if(Ge<b&&Ge!==at){for(at=Ge;Ge<b&&jl(g.charCodeAt(Ge));)Ge++;if(Ge<b&&Ge!==at){for(at=Ge;Ge<b&&!jl(g.charCodeAt(Ge));)Ge++;if(Ge===b)return g;Ge!==at&&(I=z=Ge+1)}}}}else Rx(ee)&&g.charCodeAt(1)===Ix&&(I=b>2&&jl(g.charCodeAt(2))?3:2,z=I);let _e=-1,Re=!0;for(let Ge=b-1;Ge>=z;--Ge)if(jl(g.charCodeAt(Ge))){if(!Re){_e=Ge;break}}else Re=!1;if(_e===-1){if(I===-1)return".";_e=I}return g.slice(0,_e)},basename(g,b){b!==void 0&&bf(b,"ext"),bf(g,"path");let I=0,z=-1,ee=!0,_e;if(g.length>=2&&Rx(g.charCodeAt(0))&&g.charCodeAt(1)===Ix&&(I=2),b!==void 0&&b.length>0&&b.length<=g.length){if(b===g)return"";let Re=b.length-1,Ge=-1;for(_e=g.length-1;_e>=I;--_e){const at=g.charCodeAt(_e);if(jl(at)){if(!ee){I=_e+1;break}}else Ge===-1&&(ee=!1,Ge=_e+1),Re>=0&&(at===b.charCodeAt(Re)?--Re===-1&&(z=_e):(Re=-1,z=Ge))}return I===z?z=Ge:z===-1&&(z=g.length),g.slice(I,z)}for(_e=g.length-1;_e>=I;--_e)if(jl(g.charCodeAt(_e))){if(!ee){I=_e+1;break}}else z===-1&&(ee=!1,z=_e+1);return z===-1?"":g.slice(I,z)},extname(g){bf(g,"path");let b=0,I=-1,z=0,ee=-1,_e=!0,Re=0;g.length>=2&&g.charCodeAt(1)===Ix&&Rx(g.charCodeAt(0))&&(b=z=2);for(let Ge=g.length-1;Ge>=b;--Ge){const at=g.charCodeAt(Ge);if(jl(at)){if(!_e){z=Ge+1;break}continue}ee===-1&&(_e=!1,ee=Ge+1),at===Ax?I===-1?I=Ge:Re!==1&&(Re=1):I!==-1&&(Re=-1)}return I===-1||ee===-1||Re===0||Re===1&&I===ee-1&&I===z+1?"":g.slice(I,ee)},format:Pbe.bind(null,"\\"),parse(g){bf(g,"path");const b={root:"",dir:"",base:"",ext:"",name:""};if(g.length===0)return b;const I=g.length;let z=0,ee=g.charCodeAt(0);if(I===1)return jl(ee)?(b.root=b.dir=g,b):(b.base=b.name=g,b);if(jl(ee)){if(z=1,jl(g.charCodeAt(1))){let $t=2,Ht=$t;for(;$t<I&&!jl(g.charCodeAt($t));)$t++;if($t<I&&$t!==Ht){for(Ht=$t;$t<I&&jl(g.charCodeAt($t));)$t++;if($t<I&&$t!==Ht){for(Ht=$t;$t<I&&!jl(g.charCodeAt($t));)$t++;$t===I?z=$t:$t!==Ht&&(z=$t+1)}}}}else if(Rx(ee)&&g.charCodeAt(1)===Ix){if(I<=2)return b.root=b.dir=g,b;if(z=2,jl(g.charCodeAt(2))){if(I===3)return b.root=b.dir=g,b;z=3}}z>0&&(b.root=g.slice(0,z));let _e=-1,Re=z,Ge=-1,at=!0,Ne=g.length-1,Xe=0;for(;Ne>=z;--Ne){if(ee=g.charCodeAt(Ne),jl(ee)){if(!at){Re=Ne+1;break}continue}Ge===-1&&(at=!1,Ge=Ne+1),ee===Ax?_e===-1?_e=Ne:Xe!==1&&(Xe=1):_e!==-1&&(Xe=-1)}return Ge!==-1&&(_e===-1||Xe===0||Xe===1&&_e===Ge-1&&_e===Re+1?b.base=b.name=g.slice(Re,Ge):(b.name=g.slice(Re,_e),b.base=g.slice(Re,Ge),b.ext=g.slice(_e,Ge))),Re>0&&Re!==z?b.dir=g.slice(0,Re-1):b.dir=b.root,b},sep:"\\",delimiter:";",win32:null,posix:null},W7e=(()=>{if(xx){const g=/\\/g;return()=>{const b=IB().replace(g,"/");return b.slice(b.indexOf("/"))}}return()=>IB()})(),Ev={resolve(...g){let b="",I=!1;for(let z=g.length-1;z>=-1&&!I;z--){const ee=z>=0?g[z]:W7e();bf(ee,"path"),ee.length!==0&&(b=`${ee}/${b}`,I=ee.charCodeAt(0)===b_)}return b=xB(b,!I,"/",Ite),I?`/${b}`:b.length>0?b:"."},normalize(g){if(bf(g,"path"),g.length===0)return".";const b=g.charCodeAt(0)===b_,I=g.charCodeAt(g.length-1)===b_;return g=xB(g,!b,"/",Ite),g.length===0?b?"/":I?"./":".":(I&&(g+="/"),b?`/${g}`:g)},isAbsolute(g){return bf(g,"path"),g.length>0&&g.charCodeAt(0)===b_},join(...g){if(g.length===0)return".";let b;for(let I=0;I<g.length;++I){const z=g[I];bf(z,"path"),z.length>0&&(b===void 0?b=z:b+=`/${z}`)}return b===void 0?".":Ev.normalize(b)},relative(g,b){if(bf(g,"from"),bf(b,"to"),g===b||(g=Ev.resolve(g),b=Ev.resolve(b),g===b))return"";const I=1,z=g.length,ee=z-I,_e=1,Re=b.length-_e,Ge=ee<Re?ee:Re;let at=-1,Ne=0;for(;Ne<Ge;Ne++){const $t=g.charCodeAt(I+Ne);if($t!==b.charCodeAt(_e+Ne))break;$t===b_&&(at=Ne)}if(Ne===Ge)if(Re>Ge){if(b.charCodeAt(_e+Ne)===b_)return b.slice(_e+Ne+1);if(Ne===0)return b.slice(_e+Ne)}else ee>Ge&&(g.charCodeAt(I+Ne)===b_?at=Ne:Ne===0&&(at=0));let Xe="";for(Ne=I+at+1;Ne<=z;++Ne)(Ne===z||g.charCodeAt(Ne)===b_)&&(Xe+=Xe.length===0?"..":"/..");return`${Xe}${b.slice(_e+at)}`},toNamespacedPath(g){return g},dirname(g){if(bf(g,"path"),g.length===0)return".";const b=g.charCodeAt(0)===b_;let I=-1,z=!0;for(let ee=g.length-1;ee>=1;--ee)if(g.charCodeAt(ee)===b_){if(!z){I=ee;break}}else z=!1;return I===-1?b?"/":".":b&&I===1?"//":g.slice(0,I)},basename(g,b){b!==void 0&&bf(b,"ext"),bf(g,"path");let I=0,z=-1,ee=!0,_e;if(b!==void 0&&b.length>0&&b.length<=g.length){if(b===g)return"";let Re=b.length-1,Ge=-1;for(_e=g.length-1;_e>=0;--_e){const at=g.charCodeAt(_e);if(at===b_){if(!ee){I=_e+1;break}}else Ge===-1&&(ee=!1,Ge=_e+1),Re>=0&&(at===b.charCodeAt(Re)?--Re===-1&&(z=_e):(Re=-1,z=Ge))}return I===z?z=Ge:z===-1&&(z=g.length),g.slice(I,z)}for(_e=g.length-1;_e>=0;--_e)if(g.charCodeAt(_e)===b_){if(!ee){I=_e+1;break}}else z===-1&&(ee=!1,z=_e+1);return z===-1?"":g.slice(I,z)},extname(g){bf(g,"path");let b=-1,I=0,z=-1,ee=!0,_e=0;for(let Re=g.length-1;Re>=0;--Re){const Ge=g.charCodeAt(Re);if(Ge===b_){if(!ee){I=Re+1;break}continue}z===-1&&(ee=!1,z=Re+1),Ge===Ax?b===-1?b=Re:_e!==1&&(_e=1):b!==-1&&(_e=-1)}return b===-1||z===-1||_e===0||_e===1&&b===z-1&&b===I+1?"":g.slice(b,z)},format:Pbe.bind(null,"/"),parse(g){bf(g,"path");const b={root:"",dir:"",base:"",ext:"",name:""};if(g.length===0)return b;const I=g.charCodeAt(0)===b_;let z;I?(b.root="/",z=1):z=0;let ee=-1,_e=0,Re=-1,Ge=!0,at=g.length-1,Ne=0;for(;at>=z;--at){const Xe=g.charCodeAt(at);if(Xe===b_){if(!Ge){_e=at+1;break}continue}Re===-1&&(Ge=!1,Re=at+1),Xe===Ax?ee===-1?ee=at:Ne!==1&&(Ne=1):ee!==-1&&(Ne=-1)}if(Re!==-1){const Xe=_e===0&&I?1:_e;ee===-1||Ne===0||Ne===1&&ee===Re-1&&ee===_e+1?b.base=b.name=g.slice(Xe,Re):(b.name=g.slice(Xe,ee),b.base=g.slice(Xe,Re),b.ext=g.slice(ee,Re))}return _e>0?b.dir=g.slice(0,_e-1):I&&(b.dir="/"),b},sep:"/",delimiter:":",win32:null,posix:null};Ev.win32=xg.win32=xg,Ev.posix=xg.posix=Ev,xx?xg.normalize:Ev.normalize,xx?xg.resolve:Ev.resolve,xx?xg.relative:Ev.relative,xx?xg.dirname:Ev.dirname,xx?xg.basename:Ev.basename,xx?xg.extname:Ev.extname,xx?xg.sep:Ev.sep;const F7e=/^\w[\w\d+.-]*$/,z7e=/^\//,B7e=/^\/\//;function G7e(g,b){if(!g.scheme&&b)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${g.authority}", path: "${g.path}", query: "${g.query}", fragment: "${g.fragment}"}`);if(g.scheme&&!F7e.test(g.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(g.path){if(g.authority){if(!z7e.test(g.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(B7e.test(g.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function V7e(g,b){return!g&&!b?"file":g}function j7e(g,b){switch(g){case"https":case"http":case"file":b?b[0]!==gE&&(b=gE+b):b=gE;break}return b}const Od="",gE="/",U7e=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class GN{static isUri(b){return b instanceof GN?!0:b?typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="string"&&typeof b.with=="function"&&typeof b.toString=="function":!1}constructor(b,I,z,ee,_e,Re=!1){typeof b=="object"?(this.scheme=b.scheme||Od,this.authority=b.authority||Od,this.path=b.path||Od,this.query=b.query||Od,this.fragment=b.fragment||Od):(this.scheme=V7e(b,Re),this.authority=I||Od,this.path=j7e(this.scheme,z||Od),this.query=ee||Od,this.fragment=_e||Od,G7e(this,Re))}get fsPath(){return xte(this,!1)}with(b){if(!b)return this;let{scheme:I,authority:z,path:ee,query:_e,fragment:Re}=b;return I===void 0?I=this.scheme:I===null&&(I=Od),z===void 0?z=this.authority:z===null&&(z=Od),ee===void 0?ee=this.path:ee===null&&(ee=Od),_e===void 0?_e=this.query:_e===null&&(_e=Od),Re===void 0?Re=this.fragment:Re===null&&(Re=Od),I===this.scheme&&z===this.authority&&ee===this.path&&_e===this.query&&Re===this.fragment?this:new T2(I,z,ee,_e,Re)}static parse(b,I=!1){const z=U7e.exec(b);return z?new T2(z[2]||Od,RB(z[4]||Od),RB(z[5]||Od),RB(z[7]||Od),RB(z[9]||Od),I):new T2(Od,Od,Od,Od,Od)}static file(b){let I=Od;if(u6&&(b=b.replace(/\\/g,gE)),b[0]===gE&&b[1]===gE){const z=b.indexOf(gE,2);z===-1?(I=b.substring(2),b=gE):(I=b.substring(2,z),b=b.substring(z)||gE)}return new T2("file",I,b,Od,Od)}static from(b,I){return new T2(b.scheme,b.authority,b.path,b.query,b.fragment,I)}static joinPath(b,...I){if(!b.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let z;return u6&&b.scheme==="file"?z=GN.file(xg.join(xte(b,!0),...I)).path:z=Ev.join(b.path,...I),b.with({path:z})}toString(b=!1){return Rte(this,b)}toJSON(){return this}static revive(b){var I,z;if(b){if(b instanceof GN)return b;{const ee=new T2(b);return ee._formatted=(I=b.external)!==null&&I!==void 0?I:null,ee._fsPath=b._sep===Mbe&&(z=b.fsPath)!==null&&z!==void 0?z:null,ee}}else return b}}const Mbe=u6?1:void 0;class T2 extends GN{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=xte(this,!1)),this._fsPath}toString(b=!1){return b?Rte(this,!0):(this._formatted||(this._formatted=Rte(this,!1)),this._formatted)}toJSON(){const b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=Mbe),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}const Lbe={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 kbe(g,b,I){let z,ee=-1;for(let _e=0;_e<g.length;_e++){const Re=g.charCodeAt(_e);if(Re>=97&&Re<=122||Re>=65&&Re<=90||Re>=48&&Re<=57||Re===45||Re===46||Re===95||Re===126||b&&Re===47||I&&Re===91||I&&Re===93||I&&Re===58)ee!==-1&&(z+=encodeURIComponent(g.substring(ee,_e)),ee=-1),z!==void 0&&(z+=g.charAt(_e));else{z===void 0&&(z=g.substr(0,_e));const Ge=Lbe[Re];Ge!==void 0?(ee!==-1&&(z+=encodeURIComponent(g.substring(ee,_e)),ee=-1),z+=Ge):ee===-1&&(ee=_e)}}return ee!==-1&&(z+=encodeURIComponent(g.substring(ee))),z!==void 0?z:g}function H7e(g){let b;for(let I=0;I<g.length;I++){const z=g.charCodeAt(I);z===35||z===63?(b===void 0&&(b=g.substr(0,I)),b+=Lbe[z]):b!==void 0&&(b+=g[I])}return b!==void 0?b:g}function xte(g,b){let I;return g.authority&&g.path.length>1&&g.scheme==="file"?I=`//${g.authority}${g.path}`:g.path.charCodeAt(0)===47&&(g.path.charCodeAt(1)>=65&&g.path.charCodeAt(1)<=90||g.path.charCodeAt(1)>=97&&g.path.charCodeAt(1)<=122)&&g.path.charCodeAt(2)===58?b?I=g.path.substr(1):I=g.path[1].toLowerCase()+g.path.substr(2):I=g.path,u6&&(I=I.replace(/\//g,"\\")),I}function Rte(g,b){const I=b?H7e:kbe;let z="",{scheme:ee,authority:_e,path:Re,query:Ge,fragment:at}=g;if(ee&&(z+=ee,z+=":"),(_e||ee==="file")&&(z+=gE,z+=gE),_e){let Ne=_e.indexOf("@");if(Ne!==-1){const Xe=_e.substr(0,Ne);_e=_e.substr(Ne+1),Ne=Xe.lastIndexOf(":"),Ne===-1?z+=I(Xe,!1,!1):(z+=I(Xe.substr(0,Ne),!1,!1),z+=":",z+=I(Xe.substr(Ne+1),!1,!0)),z+="@"}_e=_e.toLowerCase(),Ne=_e.lastIndexOf(":"),Ne===-1?z+=I(_e,!1,!0):(z+=I(_e.substr(0,Ne),!1,!0),z+=_e.substr(Ne))}if(Re){if(Re.length>=3&&Re.charCodeAt(0)===47&&Re.charCodeAt(2)===58){const Ne=Re.charCodeAt(1);Ne>=65&&Ne<=90&&(Re=`/${String.fromCharCode(Ne+32)}:${Re.substr(3)}`)}else if(Re.length>=2&&Re.charCodeAt(1)===58){const Ne=Re.charCodeAt(0);Ne>=65&&Ne<=90&&(Re=`${String.fromCharCode(Ne+32)}:${Re.substr(2)}`)}z+=I(Re,!0,!1)}return Ge&&(z+="?",z+=I(Ge,!1,!1)),at&&(z+="#",z+=b?at:kbe(at,!1,!1)),z}function wbe(g){try{return decodeURIComponent(g)}catch{return g.length>3?g.substr(0,3)+wbe(g.substr(3)):g}}const Obe=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function RB(g){return g.match(Obe)?g.replace(Obe,b=>wbe(b)):g}class oh{constructor(b,I){this.lineNumber=b,this.column=I}with(b=this.lineNumber,I=this.column){return b===this.lineNumber&&I===this.column?this:new oh(b,I)}delta(b=0,I=0){return this.with(this.lineNumber+b,this.column+I)}equals(b){return oh.equals(this,b)}static equals(b,I){return!b&&!I?!0:!!b&&!!I&&b.lineNumber===I.lineNumber&&b.column===I.column}isBefore(b){return oh.isBefore(this,b)}static isBefore(b,I){return b.lineNumber<I.lineNumber?!0:I.lineNumber<b.lineNumber?!1:b.column<I.column}isBeforeOrEqual(b){return oh.isBeforeOrEqual(this,b)}static isBeforeOrEqual(b,I){return b.lineNumber<I.lineNumber?!0:I.lineNumber<b.lineNumber?!1:b.column<=I.column}static compare(b,I){const z=b.lineNumber|0,ee=I.lineNumber|0;if(z===ee){const _e=b.column|0,Re=I.column|0;return _e-Re}return z-ee}clone(){return new oh(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(b){return new oh(b.lineNumber,b.column)}static isIPosition(b){return b&&typeof b.lineNumber=="number"&&typeof b.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}class Tl{constructor(b,I,z,ee){b>z||b===z&&I>ee?(this.startLineNumber=z,this.startColumn=ee,this.endLineNumber=b,this.endColumn=I):(this.startLineNumber=b,this.startColumn=I,this.endLineNumber=z,this.endColumn=ee)}isEmpty(){return Tl.isEmpty(this)}static isEmpty(b){return b.startLineNumber===b.endLineNumber&&b.startColumn===b.endColumn}containsPosition(b){return Tl.containsPosition(this,b)}static containsPosition(b,I){return!(I.lineNumber<b.startLineNumber||I.lineNumber>b.endLineNumber||I.lineNumber===b.startLineNumber&&I.column<b.startColumn||I.lineNumber===b.endLineNumber&&I.column>b.endColumn)}static strictContainsPosition(b,I){return!(I.lineNumber<b.startLineNumber||I.lineNumber>b.endLineNumber||I.lineNumber===b.startLineNumber&&I.column<=b.startColumn||I.lineNumber===b.endLineNumber&&I.column>=b.endColumn)}containsRange(b){return Tl.containsRange(this,b)}static containsRange(b,I){return!(I.startLineNumber<b.startLineNumber||I.endLineNumber<b.startLineNumber||I.startLineNumber>b.endLineNumber||I.endLineNumber>b.endLineNumber||I.startLineNumber===b.startLineNumber&&I.startColumn<b.startColumn||I.endLineNumber===b.endLineNumber&&I.endColumn>b.endColumn)}strictContainsRange(b){return Tl.strictContainsRange(this,b)}static strictContainsRange(b,I){return!(I.startLineNumber<b.startLineNumber||I.endLineNumber<b.startLineNumber||I.startLineNumber>b.endLineNumber||I.endLineNumber>b.endLineNumber||I.startLineNumber===b.startLineNumber&&I.startColumn<=b.startColumn||I.endLineNumber===b.endLineNumber&&I.endColumn>=b.endColumn)}plusRange(b){return Tl.plusRange(this,b)}static plusRange(b,I){let z,ee,_e,Re;return I.startLineNumber<b.startLineNumber?(z=I.startLineNumber,ee=I.startColumn):I.startLineNumber===b.startLineNumber?(z=I.startLineNumber,ee=Math.min(I.startColumn,b.startColumn)):(z=b.startLineNumber,ee=b.startColumn),I.endLineNumber>b.endLineNumber?(_e=I.endLineNumber,Re=I.endColumn):I.endLineNumber===b.endLineNumber?(_e=I.endLineNumber,Re=Math.max(I.endColumn,b.endColumn)):(_e=b.endLineNumber,Re=b.endColumn),new Tl(z,ee,_e,Re)}intersectRanges(b){return Tl.intersectRanges(this,b)}static intersectRanges(b,I){let z=b.startLineNumber,ee=b.startColumn,_e=b.endLineNumber,Re=b.endColumn;const Ge=I.startLineNumber,at=I.startColumn,Ne=I.endLineNumber,Xe=I.endColumn;return z<Ge?(z=Ge,ee=at):z===Ge&&(ee=Math.max(ee,at)),_e>Ne?(_e=Ne,Re=Xe):_e===Ne&&(Re=Math.min(Re,Xe)),z>_e||z===_e&&ee>Re?null:new Tl(z,ee,_e,Re)}equalsRange(b){return Tl.equalsRange(this,b)}static equalsRange(b,I){return!b&&!I?!0:!!b&&!!I&&b.startLineNumber===I.startLineNumber&&b.startColumn===I.startColumn&&b.endLineNumber===I.endLineNumber&&b.endColumn===I.endColumn}getEndPosition(){return Tl.getEndPosition(this)}static getEndPosition(b){return new oh(b.endLineNumber,b.endColumn)}getStartPosition(){return Tl.getStartPosition(this)}static getStartPosition(b){return new oh(b.startLineNumber,b.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(b,I){return new Tl(this.startLineNumber,this.startColumn,b,I)}setStartPosition(b,I){return new Tl(b,I,this.endLineNumber,this.endColumn)}collapseToStart(){return Tl.collapseToStart(this)}static collapseToStart(b){return new Tl(b.startLineNumber,b.startColumn,b.startLineNumber,b.startColumn)}collapseToEnd(){return Tl.collapseToEnd(this)}static collapseToEnd(b){return new Tl(b.endLineNumber,b.endColumn,b.endLineNumber,b.endColumn)}delta(b){return new Tl(this.startLineNumber+b,this.startColumn,this.endLineNumber+b,this.endColumn)}static fromPositions(b,I=b){return new Tl(b.lineNumber,b.column,I.lineNumber,I.column)}static lift(b){return b?new Tl(b.startLineNumber,b.startColumn,b.endLineNumber,b.endColumn):null}static isIRange(b){return b&&typeof b.startLineNumber=="number"&&typeof b.startColumn=="number"&&typeof b.endLineNumber=="number"&&typeof b.endColumn=="number"}static areIntersectingOrTouching(b,I){return!(b.endLineNumber<I.startLineNumber||b.endLineNumber===I.startLineNumber&&b.endColumn<I.startColumn||I.endLineNumber<b.startLineNumber||I.endLineNumber===b.startLineNumber&&I.endColumn<b.startColumn)}static areIntersecting(b,I){return!(b.endLineNumber<I.startLineNumber||b.endLineNumber===I.startLineNumber&&b.endColumn<=I.startColumn||I.endLineNumber<b.startLineNumber||I.endLineNumber===b.startLineNumber&&I.endColumn<=b.startColumn)}static compareRangesUsingStarts(b,I){if(b&&I){const _e=b.startLineNumber|0,Re=I.startLineNumber|0;if(_e===Re){const Ge=b.startColumn|0,at=I.startColumn|0;if(Ge===at){const Ne=b.endLineNumber|0,Xe=I.endLineNumber|0;if(Ne===Xe){const $t=b.endColumn|0,Ht=I.endColumn|0;return $t-Ht}return Ne-Xe}return Ge-at}return _e-Re}return(b?1:0)-(I?1:0)}static compareRangesUsingEnds(b,I){return b.endLineNumber===I.endLineNumber?b.endColumn===I.endColumn?b.startLineNumber===I.startLineNumber?b.startColumn-I.startColumn:b.startLineNumber-I.startLineNumber:b.endColumn-I.endColumn:b.endLineNumber-I.endLineNumber}static spansMultipleLines(b){return b.endLineNumber>b.startLineNumber}toJSON(){return this}}function q7e(g,b,I=(z,ee)=>z===ee){if(g===b)return!0;if(!g||!b||g.length!==b.length)return!1;for(let z=0,ee=g.length;z<ee;z++)if(!I(g[z],b[z]))return!1;return!0}function*J7e(g,b){let I,z;for(const ee of g)z!==void 0&&b(z,ee)?I.push(ee):(I&&(yield I),I=[ee]),z=ee;I&&(yield I)}function K7e(g,b){for(let I=0;I<=g.length;I++)b(I===0?void 0:g[I-1],I===g.length?void 0:g[I])}function X7e(g,b){for(let I=0;I<g.length;I++)b(I===0?void 0:g[I-1],g[I],I+1===g.length?void 0:g[I+1])}function Y7e(g,b){for(const I of b)g.push(I)}var Wbe;(function(g){function b(_e){return _e<0}g.isLessThan=b;function I(_e){return _e<=0}g.isLessThanOrEqual=I;function z(_e){return _e>0}g.isGreaterThan=z;function ee(_e){return _e===0}g.isNeitherLessOrGreaterThan=ee,g.greaterThan=1,g.lessThan=-1,g.neitherLessOrGreaterThan=0})(Wbe||(Wbe={}));function DB(g,b){return(I,z)=>b(g(I),g(z))}const NB=(g,b)=>g-b;function $7e(g){return(b,I)=>-g(b,I)}function Fbe(g){return g<0?0:g>255?255:g|0}function A2(g){return g<0?0:g>4294967295?4294967295:g|0}class Q7e{constructor(b){this.values=b,this.prefixSum=new Uint32Array(b.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(b,I){b=A2(b);const z=this.values,ee=this.prefixSum,_e=I.length;return _e===0?!1:(this.values=new Uint32Array(z.length+_e),this.values.set(z.subarray(0,b),0),this.values.set(z.subarray(b),b+_e),this.values.set(I,b),b-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=b-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(ee.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(b,I){return b=A2(b),I=A2(I),this.values[b]===I?!1:(this.values[b]=I,b-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=b-1),!0)}removeValues(b,I){b=A2(b),I=A2(I);const z=this.values,ee=this.prefixSum;if(b>=z.length)return!1;const _e=z.length-b;return I>=_e&&(I=_e),I===0?!1:(this.values=new Uint32Array(z.length-I),this.values.set(z.subarray(0,b),0),this.values.set(z.subarray(b+I),b),this.prefixSum=new Uint32Array(this.values.length),b-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=b-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(ee.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(b){return b<0?0:(b=A2(b),this._getPrefixSum(b))}_getPrefixSum(b){if(b<=this.prefixSumValidIndex[0])return this.prefixSum[b];let I=this.prefixSumValidIndex[0]+1;I===0&&(this.prefixSum[0]=this.values[0],I++),b>=this.values.length&&(b=this.values.length-1);for(let z=I;z<=b;z++)this.prefixSum[z]=this.prefixSum[z-1]+this.values[z];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],b),this.prefixSum[b]}getIndexOf(b){b=Math.floor(b),this.getTotalSum();let I=0,z=this.values.length-1,ee=0,_e=0,Re=0;for(;I<=z;)if(ee=I+(z-I)/2|0,_e=this.prefixSum[ee],Re=_e-this.values[ee],b<Re)z=ee-1;else if(b>=_e)I=ee+1;else break;return new Z7e(ee,b-Re)}}class Z7e{constructor(b,I){this.index=b,this.remainder=I,this._prefixSumIndexOfResultBrand=void 0,this.index=b,this.remainder=I}}class e5e{constructor(b,I,z,ee){this._uri=b,this._lines=I,this._eol=z,this._versionId=ee,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(b){b.eol&&b.eol!==this._eol&&(this._eol=b.eol,this._lineStarts=null);const I=b.changes;for(const z of I)this._acceptDeleteRange(z.range),this._acceptInsertText(new oh(z.range.startLineNumber,z.range.startColumn),z.text);this._versionId=b.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const b=this._eol.length,I=this._lines.length,z=new Uint32Array(I);for(let ee=0;ee<I;ee++)z[ee]=this._lines[ee].length+b;this._lineStarts=new Q7e(z)}}_setLineText(b,I){this._lines[b]=I,this._lineStarts&&this._lineStarts.setValue(b,this._lines[b].length+this._eol.length)}_acceptDeleteRange(b){if(b.startLineNumber===b.endLineNumber){if(b.startColumn===b.endColumn)return;this._setLineText(b.startLineNumber-1,this._lines[b.startLineNumber-1].substring(0,b.startColumn-1)+this._lines[b.startLineNumber-1].substring(b.endColumn-1));return}this._setLineText(b.startLineNumber-1,this._lines[b.startLineNumber-1].substring(0,b.startColumn-1)+this._lines[b.endLineNumber-1].substring(b.endColumn-1)),this._lines.splice(b.startLineNumber,b.endLineNumber-b.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(b.startLineNumber,b.endLineNumber-b.startLineNumber)}_acceptInsertText(b,I){if(I.length===0)return;const z=d7e(I);if(z.length===1){this._setLineText(b.lineNumber-1,this._lines[b.lineNumber-1].substring(0,b.column-1)+z[0]+this._lines[b.lineNumber-1].substring(b.column-1));return}z[z.length-1]+=this._lines[b.lineNumber-1].substring(b.column-1),this._setLineText(b.lineNumber-1,this._lines[b.lineNumber-1].substring(0,b.column-1)+z[0]);const ee=new Uint32Array(z.length-1);for(let _e=1;_e<z.length;_e++)this._lines.splice(b.lineNumber+_e-1,0,z[_e]),ee[_e-1]=z[_e].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(b.lineNumber,ee)}}const t5e="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function n5e(g=""){let b="(-?\\d*\\.\\d\\w*)|([^";for(const I of t5e)g.indexOf(I)>=0||(b+="\\"+I);return b+="\\s]+)",new RegExp(b,"g")}const zbe=n5e();function Bbe(g){let b=zbe;if(g&&g instanceof RegExp)if(g.global)b=g;else{let I="g";g.ignoreCase&&(I+="i"),g.multiline&&(I+="m"),g.unicode&&(I+="u"),b=new RegExp(g.source,I)}return b.lastIndex=0,b}const Gbe=new UFe;Gbe.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Dte(g,b,I,z,ee){if(b=Bbe(b),ee||(ee=EB.first(Gbe)),I.length>ee.maxLen){let Ne=g-ee.maxLen/2;return Ne<0?Ne=0:z+=Ne,I=I.substring(Ne,g+ee.maxLen/2),Dte(g,b,I,z,ee)}const _e=Date.now(),Re=g-1-z;let Ge=-1,at=null;for(let Ne=1;!(Date.now()-_e>=ee.timeBudget);Ne++){const Xe=Re-ee.windowSize*Ne;b.lastIndex=Math.max(0,Xe);const $t=r5e(b,I,Re,Ge);if(!$t&&at||(at=$t,Xe<=0))break;Ge=Xe}if(at){const Ne={word:at[0],startColumn:z+1+at.index,endColumn:z+1+at.index+at[0].length};return b.lastIndex=0,Ne}return null}function r5e(g,b,I,z){let ee;for(;ee=g.exec(b);){const _e=ee.index||0;if(_e<=I&&g.lastIndex>=I)return ee;if(z>0&&_e>z)return null}return null}class Nte{constructor(b){const I=Fbe(b);this._defaultValue=I,this._asciiMap=Nte._createAsciiMap(I),this._map=new Map}static _createAsciiMap(b){const I=new Uint8Array(256);return I.fill(b),I}set(b,I){const z=Fbe(I);b>=0&&b<256?this._asciiMap[b]=z:this._map.set(b,z)}get(b){return b>=0&&b<256?this._asciiMap[b]:this._map.get(b)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class i5e{constructor(b,I,z){const ee=new Uint8Array(b*I);for(let _e=0,Re=b*I;_e<Re;_e++)ee[_e]=z;this._data=ee,this.rows=b,this.cols=I}get(b,I){return this._data[b*this.cols+I]}set(b,I,z){this._data[b*this.cols+I]=z}}class o5e{constructor(b){let I=0,z=0;for(let _e=0,Re=b.length;_e<Re;_e++){const[Ge,at,Ne]=b[_e];at>I&&(I=at),Ge>z&&(z=Ge),Ne>z&&(z=Ne)}I++,z++;const ee=new i5e(z,I,0);for(let _e=0,Re=b.length;_e<Re;_e++){const[Ge,at,Ne]=b[_e];ee.set(Ge,at,Ne)}this._states=ee,this._maxCharCode=I}nextState(b,I){return I<0||I>=this._maxCharCode?0:this._states.get(b,I)}}let Cte=null;function a5e(){return Cte===null&&(Cte=new o5e([[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]])),Cte}let d6=null;function s5e(){if(d6===null){d6=new Nte(0);const g=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let I=0;I<g.length;I++)d6.set(g.charCodeAt(I),1);const b=".,;:";for(let I=0;I<b.length;I++)d6.set(b.charCodeAt(I),2)}return d6}class CB{static _createLink(b,I,z,ee,_e){let Re=_e-1;do{const Ge=I.charCodeAt(Re);if(b.get(Ge)!==2)break;Re--}while(Re>ee);if(ee>0){const Ge=I.charCodeAt(ee-1),at=I.charCodeAt(Re);(Ge===40&&at===41||Ge===91&&at===93||Ge===123&&at===125)&&Re--}return{range:{startLineNumber:z,startColumn:ee+1,endLineNumber:z,endColumn:Re+2},url:I.substring(ee,Re+1)}}static computeLinks(b,I=a5e()){const z=s5e(),ee=[];for(let _e=1,Re=b.getLineCount();_e<=Re;_e++){const Ge=b.getLineContent(_e),at=Ge.length;let Ne=0,Xe=0,$t=0,Ht=1,pn=!1,Pr=!1,gi=!1,io=!1;for(;Ne<at;){let Jn=!1;const In=Ge.charCodeAt(Ne);if(Ht===13){let oi;switch(In){case 40:pn=!0,oi=0;break;case 41:oi=pn?0:1;break;case 91:gi=!0,Pr=!0,oi=0;break;case 93:gi=!1,oi=Pr?0:1;break;case 123:io=!0,oi=0;break;case 125:oi=io?0:1;break;case 39:case 34:case 96:$t===In?oi=1:$t===39||$t===34||$t===96?oi=0:oi=1;break;case 42:oi=$t===42?1:0;break;case 124:oi=$t===124?1:0;break;case 32:oi=gi?0:1;break;default:oi=z.get(In)}oi===1&&(ee.push(CB._createLink(z,Ge,_e,Xe,Ne)),Jn=!0)}else if(Ht===12){let oi;In===91?(Pr=!0,oi=0):oi=z.get(In),oi===1?Jn=!0:Ht=13}else Ht=I.nextState(Ht,In),Ht===0&&(Jn=!0);Jn&&(Ht=1,pn=!1,Pr=!1,io=!1,Xe=Ne+1,$t=In),Ne++}Ht===13&&ee.push(CB._createLink(z,Ge,_e,Xe,at))}return ee}}function l5e(g){return!g||typeof g.getLineCount!="function"||typeof g.getLineContent!="function"?[]:CB.computeLinks(g)}class Pte{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(b,I,z,ee,_e){if(b&&I){const Re=this.doNavigateValueSet(I,_e);if(Re)return{range:b,value:Re}}if(z&&ee){const Re=this.doNavigateValueSet(ee,_e);if(Re)return{range:z,value:Re}}return null}doNavigateValueSet(b,I){const z=this.numberReplace(b,I);return z!==null?z:this.textReplace(b,I)}numberReplace(b,I){const z=Math.pow(10,b.length-(b.lastIndexOf(".")+1));let ee=Number(b);const _e=parseFloat(b);return!isNaN(ee)&&!isNaN(_e)&&ee===_e?ee===0&&!I?null:(ee=Math.floor(ee*z),ee+=I?z:-z,String(ee/z)):null}textReplace(b,I){return this.valueSetsReplace(this._defaultValueSet,b,I)}valueSetsReplace(b,I,z){let ee=null;for(let _e=0,Re=b.length;ee===null&&_e<Re;_e++)ee=this.valueSetReplace(b[_e],I,z);return ee}valueSetReplace(b,I,z){let ee=b.indexOf(I);return ee>=0?(ee+=z?1:-1,ee<0?ee=b.length-1:ee%=b.length,b[ee]):null}}Pte.INSTANCE=new Pte;const Vbe=Object.freeze(function(g,b){const I=setTimeout(g.bind(b),0);return{dispose(){clearTimeout(I)}}});var PB;(function(g){function b(I){return I===g.None||I===g.Cancelled||I instanceof MB?!0:!I||typeof I!="object"?!1:typeof I.isCancellationRequested=="boolean"&&typeof I.onCancellationRequested=="function"}g.isCancellationToken=b,g.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:fte.None}),g.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Vbe})})(PB||(PB={}));class MB{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?Vbe:(this._emitter||(this._emitter=new _E),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class c5e{constructor(b){this._token=void 0,this._parentListener=void 0,this._parentListener=b&&b.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new MB),this._token}cancel(){this._token?this._token instanceof MB&&this._token.cancel():this._token=PB.Cancelled}dispose(b=!1){var I;b&&this.cancel(),(I=this._parentListener)===null||I===void 0||I.dispose(),this._token?this._token instanceof MB&&this._token.dispose():this._token=PB.None}}class Mte{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(b,I){this._keyCodeToStr[b]=I,this._strToKeyCode[I.toLowerCase()]=b}keyCodeToStr(b){return this._keyCodeToStr[b]}strToKeyCode(b){return this._strToKeyCode[b.toLowerCase()]||0}}const LB=new Mte,Lte=new Mte,kte=new Mte,u5e=new Array(230),d5e=Object.create(null),p5e=Object.create(null);(function(){const g="",b=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",g,g],[1,1,"Hyper",0,g,0,g,g,g],[1,2,"Super",0,g,0,g,g,g],[1,3,"Fn",0,g,0,g,g,g],[1,4,"FnLock",0,g,0,g,g,g],[1,5,"Suspend",0,g,0,g,g,g],[1,6,"Resume",0,g,0,g,g,g],[1,7,"Turbo",0,g,0,g,g,g],[1,8,"Sleep",0,g,0,"VK_SLEEP",g,g],[1,9,"WakeUp",0,g,0,g,g,g],[0,10,"KeyA",31,"A",65,"VK_A",g,g],[0,11,"KeyB",32,"B",66,"VK_B",g,g],[0,12,"KeyC",33,"C",67,"VK_C",g,g],[0,13,"KeyD",34,"D",68,"VK_D",g,g],[0,14,"KeyE",35,"E",69,"VK_E",g,g],[0,15,"KeyF",36,"F",70,"VK_F",g,g],[0,16,"KeyG",37,"G",71,"VK_G",g,g],[0,17,"KeyH",38,"H",72,"VK_H",g,g],[0,18,"KeyI",39,"I",73,"VK_I",g,g],[0,19,"KeyJ",40,"J",74,"VK_J",g,g],[0,20,"KeyK",41,"K",75,"VK_K",g,g],[0,21,"KeyL",42,"L",76,"VK_L",g,g],[0,22,"KeyM",43,"M",77,"VK_M",g,g],[0,23,"KeyN",44,"N",78,"VK_N",g,g],[0,24,"KeyO",45,"O",79,"VK_O",g,g],[0,25,"KeyP",46,"P",80,"VK_P",g,g],[0,26,"KeyQ",47,"Q",81,"VK_Q",g,g],[0,27,"KeyR",48,"R",82,"VK_R",g,g],[0,28,"KeyS",49,"S",83,"VK_S",g,g],[0,29,"KeyT",50,"T",84,"VK_T",g,g],[0,30,"KeyU",51,"U",85,"VK_U",g,g],[0,31,"KeyV",52,"V",86,"VK_V",g,g],[0,32,"KeyW",53,"W",87,"VK_W",g,g],[0,33,"KeyX",54,"X",88,"VK_X",g,g],[0,34,"KeyY",55,"Y",89,"VK_Y",g,g],[0,35,"KeyZ",56,"Z",90,"VK_Z",g,g],[0,36,"Digit1",22,"1",49,"VK_1",g,g],[0,37,"Digit2",23,"2",50,"VK_2",g,g],[0,38,"Digit3",24,"3",51,"VK_3",g,g],[0,39,"Digit4",25,"4",52,"VK_4",g,g],[0,40,"Digit5",26,"5",53,"VK_5",g,g],[0,41,"Digit6",27,"6",54,"VK_6",g,g],[0,42,"Digit7",28,"7",55,"VK_7",g,g],[0,43,"Digit8",29,"8",56,"VK_8",g,g],[0,44,"Digit9",30,"9",57,"VK_9",g,g],[0,45,"Digit0",21,"0",48,"VK_0",g,g],[1,46,"Enter",3,"Enter",13,"VK_RETURN",g,g],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",g,g],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",g,g],[1,49,"Tab",2,"Tab",9,"VK_TAB",g,g],[1,50,"Space",10,"Space",32,"VK_SPACE",g,g],[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,g,0,g,g,g],[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",g,g],[1,64,"F1",59,"F1",112,"VK_F1",g,g],[1,65,"F2",60,"F2",113,"VK_F2",g,g],[1,66,"F3",61,"F3",114,"VK_F3",g,g],[1,67,"F4",62,"F4",115,"VK_F4",g,g],[1,68,"F5",63,"F5",116,"VK_F5",g,g],[1,69,"F6",64,"F6",117,"VK_F6",g,g],[1,70,"F7",65,"F7",118,"VK_F7",g,g],[1,71,"F8",66,"F8",119,"VK_F8",g,g],[1,72,"F9",67,"F9",120,"VK_F9",g,g],[1,73,"F10",68,"F10",121,"VK_F10",g,g],[1,74,"F11",69,"F11",122,"VK_F11",g,g],[1,75,"F12",70,"F12",123,"VK_F12",g,g],[1,76,"PrintScreen",0,g,0,g,g,g],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",g,g],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",g,g],[1,79,"Insert",19,"Insert",45,"VK_INSERT",g,g],[1,80,"Home",14,"Home",36,"VK_HOME",g,g],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",g,g],[1,82,"Delete",20,"Delete",46,"VK_DELETE",g,g],[1,83,"End",13,"End",35,"VK_END",g,g],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",g,g],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",g],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",g],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",g],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",g],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",g,g],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",g,g],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",g,g],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",g,g],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",g,g],[1,94,"NumpadEnter",3,g,0,g,g,g],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",g,g],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",g,g],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",g,g],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",g,g],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",g,g],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",g,g],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",g,g],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",g,g],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",g,g],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",g,g],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",g,g],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",g,g],[1,107,"ContextMenu",58,"ContextMenu",93,g,g,g],[1,108,"Power",0,g,0,g,g,g],[1,109,"NumpadEqual",0,g,0,g,g,g],[1,110,"F13",71,"F13",124,"VK_F13",g,g],[1,111,"F14",72,"F14",125,"VK_F14",g,g],[1,112,"F15",73,"F15",126,"VK_F15",g,g],[1,113,"F16",74,"F16",127,"VK_F16",g,g],[1,114,"F17",75,"F17",128,"VK_F17",g,g],[1,115,"F18",76,"F18",129,"VK_F18",g,g],[1,116,"F19",77,"F19",130,"VK_F19",g,g],[1,117,"F20",78,"F20",131,"VK_F20",g,g],[1,118,"F21",79,"F21",132,"VK_F21",g,g],[1,119,"F22",80,"F22",133,"VK_F22",g,g],[1,120,"F23",81,"F23",134,"VK_F23",g,g],[1,121,"F24",82,"F24",135,"VK_F24",g,g],[1,122,"Open",0,g,0,g,g,g],[1,123,"Help",0,g,0,g,g,g],[1,124,"Select",0,g,0,g,g,g],[1,125,"Again",0,g,0,g,g,g],[1,126,"Undo",0,g,0,g,g,g],[1,127,"Cut",0,g,0,g,g,g],[1,128,"Copy",0,g,0,g,g,g],[1,129,"Paste",0,g,0,g,g,g],[1,130,"Find",0,g,0,g,g,g],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",g,g],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",g,g],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",g,g],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",g,g],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",g,g],[1,136,"KanaMode",0,g,0,g,g,g],[0,137,"IntlYen",0,g,0,g,g,g],[1,138,"Convert",0,g,0,g,g,g],[1,139,"NonConvert",0,g,0,g,g,g],[1,140,"Lang1",0,g,0,g,g,g],[1,141,"Lang2",0,g,0,g,g,g],[1,142,"Lang3",0,g,0,g,g,g],[1,143,"Lang4",0,g,0,g,g,g],[1,144,"Lang5",0,g,0,g,g,g],[1,145,"Abort",0,g,0,g,g,g],[1,146,"Props",0,g,0,g,g,g],[1,147,"NumpadParenLeft",0,g,0,g,g,g],[1,148,"NumpadParenRight",0,g,0,g,g,g],[1,149,"NumpadBackspace",0,g,0,g,g,g],[1,150,"NumpadMemoryStore",0,g,0,g,g,g],[1,151,"NumpadMemoryRecall",0,g,0,g,g,g],[1,152,"NumpadMemoryClear",0,g,0,g,g,g],[1,153,"NumpadMemoryAdd",0,g,0,g,g,g],[1,154,"NumpadMemorySubtract",0,g,0,g,g,g],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",g,g],[1,156,"NumpadClearEntry",0,g,0,g,g,g],[1,0,g,5,"Ctrl",17,"VK_CONTROL",g,g],[1,0,g,4,"Shift",16,"VK_SHIFT",g,g],[1,0,g,6,"Alt",18,"VK_MENU",g,g],[1,0,g,57,"Meta",91,"VK_COMMAND",g,g],[1,157,"ControlLeft",5,g,0,"VK_LCONTROL",g,g],[1,158,"ShiftLeft",4,g,0,"VK_LSHIFT",g,g],[1,159,"AltLeft",6,g,0,"VK_LMENU",g,g],[1,160,"MetaLeft",57,g,0,"VK_LWIN",g,g],[1,161,"ControlRight",5,g,0,"VK_RCONTROL",g,g],[1,162,"ShiftRight",4,g,0,"VK_RSHIFT",g,g],[1,163,"AltRight",6,g,0,"VK_RMENU",g,g],[1,164,"MetaRight",57,g,0,"VK_RWIN",g,g],[1,165,"BrightnessUp",0,g,0,g,g,g],[1,166,"BrightnessDown",0,g,0,g,g,g],[1,167,"MediaPlay",0,g,0,g,g,g],[1,168,"MediaRecord",0,g,0,g,g,g],[1,169,"MediaFastForward",0,g,0,g,g,g],[1,170,"MediaRewind",0,g,0,g,g,g],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",g,g],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",g,g],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",g,g],[1,174,"Eject",0,g,0,g,g,g],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",g,g],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",g,g],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",g,g],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",g,g],[1,179,"LaunchApp1",0,g,0,"VK_MEDIA_LAUNCH_APP1",g,g],[1,180,"SelectTask",0,g,0,g,g,g],[1,181,"LaunchScreenSaver",0,g,0,g,g,g],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",g,g],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",g,g],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",g,g],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",g,g],[1,186,"BrowserStop",0,g,0,"VK_BROWSER_STOP",g,g],[1,187,"BrowserRefresh",0,g,0,"VK_BROWSER_REFRESH",g,g],[1,188,"BrowserFavorites",0,g,0,"VK_BROWSER_FAVORITES",g,g],[1,189,"ZoomToggle",0,g,0,g,g,g],[1,190,"MailReply",0,g,0,g,g,g],[1,191,"MailForward",0,g,0,g,g,g],[1,192,"MailSend",0,g,0,g,g,g],[1,0,g,114,"KeyInComposition",229,g,g,g],[1,0,g,116,"ABNT_C2",194,"VK_ABNT_C2",g,g],[1,0,g,96,"OEM_8",223,"VK_OEM_8",g,g],[1,0,g,0,g,0,"VK_KANA",g,g],[1,0,g,0,g,0,"VK_HANGUL",g,g],[1,0,g,0,g,0,"VK_JUNJA",g,g],[1,0,g,0,g,0,"VK_FINAL",g,g],[1,0,g,0,g,0,"VK_HANJA",g,g],[1,0,g,0,g,0,"VK_KANJI",g,g],[1,0,g,0,g,0,"VK_CONVERT",g,g],[1,0,g,0,g,0,"VK_NONCONVERT",g,g],[1,0,g,0,g,0,"VK_ACCEPT",g,g],[1,0,g,0,g,0,"VK_MODECHANGE",g,g],[1,0,g,0,g,0,"VK_SELECT",g,g],[1,0,g,0,g,0,"VK_PRINT",g,g],[1,0,g,0,g,0,"VK_EXECUTE",g,g],[1,0,g,0,g,0,"VK_SNAPSHOT",g,g],[1,0,g,0,g,0,"VK_HELP",g,g],[1,0,g,0,g,0,"VK_APPS",g,g],[1,0,g,0,g,0,"VK_PROCESSKEY",g,g],[1,0,g,0,g,0,"VK_PACKET",g,g],[1,0,g,0,g,0,"VK_DBE_SBCSCHAR",g,g],[1,0,g,0,g,0,"VK_DBE_DBCSCHAR",g,g],[1,0,g,0,g,0,"VK_ATTN",g,g],[1,0,g,0,g,0,"VK_CRSEL",g,g],[1,0,g,0,g,0,"VK_EXSEL",g,g],[1,0,g,0,g,0,"VK_EREOF",g,g],[1,0,g,0,g,0,"VK_PLAY",g,g],[1,0,g,0,g,0,"VK_ZOOM",g,g],[1,0,g,0,g,0,"VK_NONAME",g,g],[1,0,g,0,g,0,"VK_PA1",g,g],[1,0,g,0,g,0,"VK_OEM_CLEAR",g,g]],I=[],z=[];for(const ee of b){const[_e,Re,Ge,at,Ne,Xe,$t,Ht,pn]=ee;if(z[Re]||(z[Re]=!0,d5e[Ge]=Re,p5e[Ge.toLowerCase()]=Re),!I[at]){if(I[at]=!0,!Ne)throw new Error(`String representation missing for key code ${at} around scan code ${Ge}`);LB.define(at,Ne),Lte.define(at,Ht||Ne),kte.define(at,pn||Ht||Ne)}Xe&&(u5e[Xe]=at)}})();var jbe;(function(g){function b(Ge){return LB.keyCodeToStr(Ge)}g.toString=b;function I(Ge){return LB.strToKeyCode(Ge)}g.fromString=I;function z(Ge){return Lte.keyCodeToStr(Ge)}g.toUserSettingsUS=z;function ee(Ge){return kte.keyCodeToStr(Ge)}g.toUserSettingsGeneral=ee;function _e(Ge){return Lte.strToKeyCode(Ge)||kte.strToKeyCode(Ge)}g.fromUserSettings=_e;function Re(Ge){if(Ge>=98&&Ge<=113)return null;switch(Ge){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return LB.keyCodeToStr(Ge)}g.toElectronAccelerator=Re})(jbe||(jbe={}));function f5e(g,b){const I=(b&65535)<<16>>>0;return(g|I)>>>0}class vy extends Tl{constructor(b,I,z,ee){super(b,I,z,ee),this.selectionStartLineNumber=b,this.selectionStartColumn=I,this.positionLineNumber=z,this.positionColumn=ee}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(b){return vy.selectionsEqual(this,b)}static selectionsEqual(b,I){return b.selectionStartLineNumber===I.selectionStartLineNumber&&b.selectionStartColumn===I.selectionStartColumn&&b.positionLineNumber===I.positionLineNumber&&b.positionColumn===I.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(b,I){return this.getDirection()===0?new vy(this.startLineNumber,this.startColumn,b,I):new vy(b,I,this.startLineNumber,this.startColumn)}getPosition(){return new oh(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new oh(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(b,I){return this.getDirection()===0?new vy(b,I,this.endLineNumber,this.endColumn):new vy(this.endLineNumber,this.endColumn,b,I)}static fromPositions(b,I=b){return new vy(b.lineNumber,b.column,I.lineNumber,I.column)}static fromRange(b,I){return I===0?new vy(b.startLineNumber,b.startColumn,b.endLineNumber,b.endColumn):new vy(b.endLineNumber,b.endColumn,b.startLineNumber,b.startColumn)}static liftSelection(b){return new vy(b.selectionStartLineNumber,b.selectionStartColumn,b.positionLineNumber,b.positionColumn)}static selectionsArrEqual(b,I){if(b&&!I||!b&&I)return!1;if(!b&&!I)return!0;if(b.length!==I.length)return!1;for(let z=0,ee=b.length;z<ee;z++)if(!this.selectionsEqual(b[z],I[z]))return!1;return!0}static isISelection(b){return b&&typeof b.selectionStartLineNumber=="number"&&typeof b.selectionStartColumn=="number"&&typeof b.positionLineNumber=="number"&&typeof b.positionColumn=="number"}static createWithDirection(b,I,z,ee,_e){return _e===0?new vy(b,I,z,ee):new vy(z,ee,b,I)}}const Ube=Object.create(null);function Ie(g,b){if(QFe(b)){const I=Ube[b];if(I===void 0)throw new Error(`${g} references an unknown codicon: ${b}`);b=I}return Ube[g]=b,{id:g}}const m5e={add:Ie("add",6e4),plus:Ie("plus",6e4),gistNew:Ie("gist-new",6e4),repoCreate:Ie("repo-create",6e4),lightbulb:Ie("lightbulb",60001),lightBulb:Ie("light-bulb",60001),repo:Ie("repo",60002),repoDelete:Ie("repo-delete",60002),gistFork:Ie("gist-fork",60003),repoForked:Ie("repo-forked",60003),gitPullRequest:Ie("git-pull-request",60004),gitPullRequestAbandoned:Ie("git-pull-request-abandoned",60004),recordKeys:Ie("record-keys",60005),keyboard:Ie("keyboard",60005),tag:Ie("tag",60006),gitPullRequestLabel:Ie("git-pull-request-label",60006),tagAdd:Ie("tag-add",60006),tagRemove:Ie("tag-remove",60006),person:Ie("person",60007),personFollow:Ie("person-follow",60007),personOutline:Ie("person-outline",60007),personFilled:Ie("person-filled",60007),gitBranch:Ie("git-branch",60008),gitBranchCreate:Ie("git-branch-create",60008),gitBranchDelete:Ie("git-branch-delete",60008),sourceControl:Ie("source-control",60008),mirror:Ie("mirror",60009),mirrorPublic:Ie("mirror-public",60009),star:Ie("star",60010),starAdd:Ie("star-add",60010),starDelete:Ie("star-delete",60010),starEmpty:Ie("star-empty",60010),comment:Ie("comment",60011),commentAdd:Ie("comment-add",60011),alert:Ie("alert",60012),warning:Ie("warning",60012),search:Ie("search",60013),searchSave:Ie("search-save",60013),logOut:Ie("log-out",60014),signOut:Ie("sign-out",60014),logIn:Ie("log-in",60015),signIn:Ie("sign-in",60015),eye:Ie("eye",60016),eyeUnwatch:Ie("eye-unwatch",60016),eyeWatch:Ie("eye-watch",60016),circleFilled:Ie("circle-filled",60017),primitiveDot:Ie("primitive-dot",60017),closeDirty:Ie("close-dirty",60017),debugBreakpoint:Ie("debug-breakpoint",60017),debugBreakpointDisabled:Ie("debug-breakpoint-disabled",60017),debugHint:Ie("debug-hint",60017),terminalDecorationSuccess:Ie("terminal-decoration-success",60017),primitiveSquare:Ie("primitive-square",60018),edit:Ie("edit",60019),pencil:Ie("pencil",60019),info:Ie("info",60020),issueOpened:Ie("issue-opened",60020),gistPrivate:Ie("gist-private",60021),gitForkPrivate:Ie("git-fork-private",60021),lock:Ie("lock",60021),mirrorPrivate:Ie("mirror-private",60021),close:Ie("close",60022),removeClose:Ie("remove-close",60022),x:Ie("x",60022),repoSync:Ie("repo-sync",60023),sync:Ie("sync",60023),clone:Ie("clone",60024),desktopDownload:Ie("desktop-download",60024),beaker:Ie("beaker",60025),microscope:Ie("microscope",60025),vm:Ie("vm",60026),deviceDesktop:Ie("device-desktop",60026),file:Ie("file",60027),fileText:Ie("file-text",60027),more:Ie("more",60028),ellipsis:Ie("ellipsis",60028),kebabHorizontal:Ie("kebab-horizontal",60028),mailReply:Ie("mail-reply",60029),reply:Ie("reply",60029),organization:Ie("organization",60030),organizationFilled:Ie("organization-filled",60030),organizationOutline:Ie("organization-outline",60030),newFile:Ie("new-file",60031),fileAdd:Ie("file-add",60031),newFolder:Ie("new-folder",60032),fileDirectoryCreate:Ie("file-directory-create",60032),trash:Ie("trash",60033),trashcan:Ie("trashcan",60033),history:Ie("history",60034),clock:Ie("clock",60034),folder:Ie("folder",60035),fileDirectory:Ie("file-directory",60035),symbolFolder:Ie("symbol-folder",60035),logoGithub:Ie("logo-github",60036),markGithub:Ie("mark-github",60036),github:Ie("github",60036),terminal:Ie("terminal",60037),console:Ie("console",60037),repl:Ie("repl",60037),zap:Ie("zap",60038),symbolEvent:Ie("symbol-event",60038),error:Ie("error",60039),stop:Ie("stop",60039),variable:Ie("variable",60040),symbolVariable:Ie("symbol-variable",60040),array:Ie("array",60042),symbolArray:Ie("symbol-array",60042),symbolModule:Ie("symbol-module",60043),symbolPackage:Ie("symbol-package",60043),symbolNamespace:Ie("symbol-namespace",60043),symbolObject:Ie("symbol-object",60043),symbolMethod:Ie("symbol-method",60044),symbolFunction:Ie("symbol-function",60044),symbolConstructor:Ie("symbol-constructor",60044),symbolBoolean:Ie("symbol-boolean",60047),symbolNull:Ie("symbol-null",60047),symbolNumeric:Ie("symbol-numeric",60048),symbolNumber:Ie("symbol-number",60048),symbolStructure:Ie("symbol-structure",60049),symbolStruct:Ie("symbol-struct",60049),symbolParameter:Ie("symbol-parameter",60050),symbolTypeParameter:Ie("symbol-type-parameter",60050),symbolKey:Ie("symbol-key",60051),symbolText:Ie("symbol-text",60051),symbolReference:Ie("symbol-reference",60052),goToFile:Ie("go-to-file",60052),symbolEnum:Ie("symbol-enum",60053),symbolValue:Ie("symbol-value",60053),symbolRuler:Ie("symbol-ruler",60054),symbolUnit:Ie("symbol-unit",60054),activateBreakpoints:Ie("activate-breakpoints",60055),archive:Ie("archive",60056),arrowBoth:Ie("arrow-both",60057),arrowDown:Ie("arrow-down",60058),arrowLeft:Ie("arrow-left",60059),arrowRight:Ie("arrow-right",60060),arrowSmallDown:Ie("arrow-small-down",60061),arrowSmallLeft:Ie("arrow-small-left",60062),arrowSmallRight:Ie("arrow-small-right",60063),arrowSmallUp:Ie("arrow-small-up",60064),arrowUp:Ie("arrow-up",60065),bell:Ie("bell",60066),bold:Ie("bold",60067),book:Ie("book",60068),bookmark:Ie("bookmark",60069),debugBreakpointConditionalUnverified:Ie("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:Ie("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:Ie("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:Ie("debug-breakpoint-data-unverified",60072),debugBreakpointData:Ie("debug-breakpoint-data",60073),debugBreakpointDataDisabled:Ie("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:Ie("debug-breakpoint-log-unverified",60074),debugBreakpointLog:Ie("debug-breakpoint-log",60075),debugBreakpointLogDisabled:Ie("debug-breakpoint-log-disabled",60075),briefcase:Ie("briefcase",60076),broadcast:Ie("broadcast",60077),browser:Ie("browser",60078),bug:Ie("bug",60079),calendar:Ie("calendar",60080),caseSensitive:Ie("case-sensitive",60081),check:Ie("check",60082),checklist:Ie("checklist",60083),chevronDown:Ie("chevron-down",60084),chevronLeft:Ie("chevron-left",60085),chevronRight:Ie("chevron-right",60086),chevronUp:Ie("chevron-up",60087),chromeClose:Ie("chrome-close",60088),chromeMaximize:Ie("chrome-maximize",60089),chromeMinimize:Ie("chrome-minimize",60090),chromeRestore:Ie("chrome-restore",60091),circleOutline:Ie("circle-outline",60092),circle:Ie("circle",60092),debugBreakpointUnverified:Ie("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:Ie("terminal-decoration-incomplete",60092),circleSlash:Ie("circle-slash",60093),circuitBoard:Ie("circuit-board",60094),clearAll:Ie("clear-all",60095),clippy:Ie("clippy",60096),closeAll:Ie("close-all",60097),cloudDownload:Ie("cloud-download",60098),cloudUpload:Ie("cloud-upload",60099),code:Ie("code",60100),collapseAll:Ie("collapse-all",60101),colorMode:Ie("color-mode",60102),commentDiscussion:Ie("comment-discussion",60103),creditCard:Ie("credit-card",60105),dash:Ie("dash",60108),dashboard:Ie("dashboard",60109),database:Ie("database",60110),debugContinue:Ie("debug-continue",60111),debugDisconnect:Ie("debug-disconnect",60112),debugPause:Ie("debug-pause",60113),debugRestart:Ie("debug-restart",60114),debugStart:Ie("debug-start",60115),debugStepInto:Ie("debug-step-into",60116),debugStepOut:Ie("debug-step-out",60117),debugStepOver:Ie("debug-step-over",60118),debugStop:Ie("debug-stop",60119),debug:Ie("debug",60120),deviceCameraVideo:Ie("device-camera-video",60121),deviceCamera:Ie("device-camera",60122),deviceMobile:Ie("device-mobile",60123),diffAdded:Ie("diff-added",60124),diffIgnored:Ie("diff-ignored",60125),diffModified:Ie("diff-modified",60126),diffRemoved:Ie("diff-removed",60127),diffRenamed:Ie("diff-renamed",60128),diff:Ie("diff",60129),diffSidebyside:Ie("diff-sidebyside",60129),discard:Ie("discard",60130),editorLayout:Ie("editor-layout",60131),emptyWindow:Ie("empty-window",60132),exclude:Ie("exclude",60133),extensions:Ie("extensions",60134),eyeClosed:Ie("eye-closed",60135),fileBinary:Ie("file-binary",60136),fileCode:Ie("file-code",60137),fileMedia:Ie("file-media",60138),filePdf:Ie("file-pdf",60139),fileSubmodule:Ie("file-submodule",60140),fileSymlinkDirectory:Ie("file-symlink-directory",60141),fileSymlinkFile:Ie("file-symlink-file",60142),fileZip:Ie("file-zip",60143),files:Ie("files",60144),filter:Ie("filter",60145),flame:Ie("flame",60146),foldDown:Ie("fold-down",60147),foldUp:Ie("fold-up",60148),fold:Ie("fold",60149),folderActive:Ie("folder-active",60150),folderOpened:Ie("folder-opened",60151),gear:Ie("gear",60152),gift:Ie("gift",60153),gistSecret:Ie("gist-secret",60154),gist:Ie("gist",60155),gitCommit:Ie("git-commit",60156),gitCompare:Ie("git-compare",60157),compareChanges:Ie("compare-changes",60157),gitMerge:Ie("git-merge",60158),githubAction:Ie("github-action",60159),githubAlt:Ie("github-alt",60160),globe:Ie("globe",60161),grabber:Ie("grabber",60162),graph:Ie("graph",60163),gripper:Ie("gripper",60164),heart:Ie("heart",60165),home:Ie("home",60166),horizontalRule:Ie("horizontal-rule",60167),hubot:Ie("hubot",60168),inbox:Ie("inbox",60169),issueReopened:Ie("issue-reopened",60171),issues:Ie("issues",60172),italic:Ie("italic",60173),jersey:Ie("jersey",60174),json:Ie("json",60175),kebabVertical:Ie("kebab-vertical",60176),key:Ie("key",60177),law:Ie("law",60178),lightbulbAutofix:Ie("lightbulb-autofix",60179),linkExternal:Ie("link-external",60180),link:Ie("link",60181),listOrdered:Ie("list-ordered",60182),listUnordered:Ie("list-unordered",60183),liveShare:Ie("live-share",60184),loading:Ie("loading",60185),location:Ie("location",60186),mailRead:Ie("mail-read",60187),mail:Ie("mail",60188),markdown:Ie("markdown",60189),megaphone:Ie("megaphone",60190),mention:Ie("mention",60191),milestone:Ie("milestone",60192),gitPullRequestMilestone:Ie("git-pull-request-milestone",60192),mortarBoard:Ie("mortar-board",60193),move:Ie("move",60194),multipleWindows:Ie("multiple-windows",60195),mute:Ie("mute",60196),noNewline:Ie("no-newline",60197),note:Ie("note",60198),octoface:Ie("octoface",60199),openPreview:Ie("open-preview",60200),package:Ie("package",60201),paintcan:Ie("paintcan",60202),pin:Ie("pin",60203),play:Ie("play",60204),run:Ie("run",60204),plug:Ie("plug",60205),preserveCase:Ie("preserve-case",60206),preview:Ie("preview",60207),project:Ie("project",60208),pulse:Ie("pulse",60209),question:Ie("question",60210),quote:Ie("quote",60211),radioTower:Ie("radio-tower",60212),reactions:Ie("reactions",60213),references:Ie("references",60214),refresh:Ie("refresh",60215),regex:Ie("regex",60216),remoteExplorer:Ie("remote-explorer",60217),remote:Ie("remote",60218),remove:Ie("remove",60219),replaceAll:Ie("replace-all",60220),replace:Ie("replace",60221),repoClone:Ie("repo-clone",60222),repoForcePush:Ie("repo-force-push",60223),repoPull:Ie("repo-pull",60224),repoPush:Ie("repo-push",60225),report:Ie("report",60226),requestChanges:Ie("request-changes",60227),rocket:Ie("rocket",60228),rootFolderOpened:Ie("root-folder-opened",60229),rootFolder:Ie("root-folder",60230),rss:Ie("rss",60231),ruby:Ie("ruby",60232),saveAll:Ie("save-all",60233),saveAs:Ie("save-as",60234),save:Ie("save",60235),screenFull:Ie("screen-full",60236),screenNormal:Ie("screen-normal",60237),searchStop:Ie("search-stop",60238),server:Ie("server",60240),settingsGear:Ie("settings-gear",60241),settings:Ie("settings",60242),shield:Ie("shield",60243),smiley:Ie("smiley",60244),sortPrecedence:Ie("sort-precedence",60245),splitHorizontal:Ie("split-horizontal",60246),splitVertical:Ie("split-vertical",60247),squirrel:Ie("squirrel",60248),starFull:Ie("star-full",60249),starHalf:Ie("star-half",60250),symbolClass:Ie("symbol-class",60251),symbolColor:Ie("symbol-color",60252),symbolConstant:Ie("symbol-constant",60253),symbolEnumMember:Ie("symbol-enum-member",60254),symbolField:Ie("symbol-field",60255),symbolFile:Ie("symbol-file",60256),symbolInterface:Ie("symbol-interface",60257),symbolKeyword:Ie("symbol-keyword",60258),symbolMisc:Ie("symbol-misc",60259),symbolOperator:Ie("symbol-operator",60260),symbolProperty:Ie("symbol-property",60261),wrench:Ie("wrench",60261),wrenchSubaction:Ie("wrench-subaction",60261),symbolSnippet:Ie("symbol-snippet",60262),tasklist:Ie("tasklist",60263),telescope:Ie("telescope",60264),textSize:Ie("text-size",60265),threeBars:Ie("three-bars",60266),thumbsdown:Ie("thumbsdown",60267),thumbsup:Ie("thumbsup",60268),tools:Ie("tools",60269),triangleDown:Ie("triangle-down",60270),triangleLeft:Ie("triangle-left",60271),triangleRight:Ie("triangle-right",60272),triangleUp:Ie("triangle-up",60273),twitter:Ie("twitter",60274),unfold:Ie("unfold",60275),unlock:Ie("unlock",60276),unmute:Ie("unmute",60277),unverified:Ie("unverified",60278),verified:Ie("verified",60279),versions:Ie("versions",60280),vmActive:Ie("vm-active",60281),vmOutline:Ie("vm-outline",60282),vmRunning:Ie("vm-running",60283),watch:Ie("watch",60284),whitespace:Ie("whitespace",60285),wholeWord:Ie("whole-word",60286),window:Ie("window",60287),wordWrap:Ie("word-wrap",60288),zoomIn:Ie("zoom-in",60289),zoomOut:Ie("zoom-out",60290),listFilter:Ie("list-filter",60291),listFlat:Ie("list-flat",60292),listSelection:Ie("list-selection",60293),selection:Ie("selection",60293),listTree:Ie("list-tree",60294),debugBreakpointFunctionUnverified:Ie("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:Ie("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:Ie("debug-breakpoint-function-disabled",60296),debugStackframeActive:Ie("debug-stackframe-active",60297),circleSmallFilled:Ie("circle-small-filled",60298),debugStackframeDot:Ie("debug-stackframe-dot",60298),terminalDecorationMark:Ie("terminal-decoration-mark",60298),debugStackframe:Ie("debug-stackframe",60299),debugStackframeFocused:Ie("debug-stackframe-focused",60299),debugBreakpointUnsupported:Ie("debug-breakpoint-unsupported",60300),symbolString:Ie("symbol-string",60301),debugReverseContinue:Ie("debug-reverse-continue",60302),debugStepBack:Ie("debug-step-back",60303),debugRestartFrame:Ie("debug-restart-frame",60304),debugAlt:Ie("debug-alt",60305),callIncoming:Ie("call-incoming",60306),callOutgoing:Ie("call-outgoing",60307),menu:Ie("menu",60308),expandAll:Ie("expand-all",60309),feedback:Ie("feedback",60310),gitPullRequestReviewer:Ie("git-pull-request-reviewer",60310),groupByRefType:Ie("group-by-ref-type",60311),ungroupByRefType:Ie("ungroup-by-ref-type",60312),account:Ie("account",60313),gitPullRequestAssignee:Ie("git-pull-request-assignee",60313),bellDot:Ie("bell-dot",60314),debugConsole:Ie("debug-console",60315),library:Ie("library",60316),output:Ie("output",60317),runAll:Ie("run-all",60318),syncIgnored:Ie("sync-ignored",60319),pinned:Ie("pinned",60320),githubInverted:Ie("github-inverted",60321),serverProcess:Ie("server-process",60322),serverEnvironment:Ie("server-environment",60323),pass:Ie("pass",60324),issueClosed:Ie("issue-closed",60324),stopCircle:Ie("stop-circle",60325),playCircle:Ie("play-circle",60326),record:Ie("record",60327),debugAltSmall:Ie("debug-alt-small",60328),vmConnect:Ie("vm-connect",60329),cloud:Ie("cloud",60330),merge:Ie("merge",60331),export:Ie("export",60332),graphLeft:Ie("graph-left",60333),magnet:Ie("magnet",60334),notebook:Ie("notebook",60335),redo:Ie("redo",60336),checkAll:Ie("check-all",60337),pinnedDirty:Ie("pinned-dirty",60338),passFilled:Ie("pass-filled",60339),circleLargeFilled:Ie("circle-large-filled",60340),circleLarge:Ie("circle-large",60341),circleLargeOutline:Ie("circle-large-outline",60341),combine:Ie("combine",60342),gather:Ie("gather",60342),table:Ie("table",60343),variableGroup:Ie("variable-group",60344),typeHierarchy:Ie("type-hierarchy",60345),typeHierarchySub:Ie("type-hierarchy-sub",60346),typeHierarchySuper:Ie("type-hierarchy-super",60347),gitPullRequestCreate:Ie("git-pull-request-create",60348),runAbove:Ie("run-above",60349),runBelow:Ie("run-below",60350),notebookTemplate:Ie("notebook-template",60351),debugRerun:Ie("debug-rerun",60352),workspaceTrusted:Ie("workspace-trusted",60353),workspaceUntrusted:Ie("workspace-untrusted",60354),workspaceUnknown:Ie("workspace-unknown",60355),terminalCmd:Ie("terminal-cmd",60356),terminalDebian:Ie("terminal-debian",60357),terminalLinux:Ie("terminal-linux",60358),terminalPowershell:Ie("terminal-powershell",60359),terminalTmux:Ie("terminal-tmux",60360),terminalUbuntu:Ie("terminal-ubuntu",60361),terminalBash:Ie("terminal-bash",60362),arrowSwap:Ie("arrow-swap",60363),copy:Ie("copy",60364),personAdd:Ie("person-add",60365),filterFilled:Ie("filter-filled",60366),wand:Ie("wand",60367),debugLineByLine:Ie("debug-line-by-line",60368),inspect:Ie("inspect",60369),layers:Ie("layers",60370),layersDot:Ie("layers-dot",60371),layersActive:Ie("layers-active",60372),compass:Ie("compass",60373),compassDot:Ie("compass-dot",60374),compassActive:Ie("compass-active",60375),azure:Ie("azure",60376),issueDraft:Ie("issue-draft",60377),gitPullRequestClosed:Ie("git-pull-request-closed",60378),gitPullRequestDraft:Ie("git-pull-request-draft",60379),debugAll:Ie("debug-all",60380),debugCoverage:Ie("debug-coverage",60381),runErrors:Ie("run-errors",60382),folderLibrary:Ie("folder-library",60383),debugContinueSmall:Ie("debug-continue-small",60384),beakerStop:Ie("beaker-stop",60385),graphLine:Ie("graph-line",60386),graphScatter:Ie("graph-scatter",60387),pieChart:Ie("pie-chart",60388),bracket:Ie("bracket",60175),bracketDot:Ie("bracket-dot",60389),bracketError:Ie("bracket-error",60390),lockSmall:Ie("lock-small",60391),azureDevops:Ie("azure-devops",60392),verifiedFilled:Ie("verified-filled",60393),newline:Ie("newline",60394),layout:Ie("layout",60395),layoutActivitybarLeft:Ie("layout-activitybar-left",60396),layoutActivitybarRight:Ie("layout-activitybar-right",60397),layoutPanelLeft:Ie("layout-panel-left",60398),layoutPanelCenter:Ie("layout-panel-center",60399),layoutPanelJustify:Ie("layout-panel-justify",60400),layoutPanelRight:Ie("layout-panel-right",60401),layoutPanel:Ie("layout-panel",60402),layoutSidebarLeft:Ie("layout-sidebar-left",60403),layoutSidebarRight:Ie("layout-sidebar-right",60404),layoutStatusbar:Ie("layout-statusbar",60405),layoutMenubar:Ie("layout-menubar",60406),layoutCentered:Ie("layout-centered",60407),target:Ie("target",60408),indent:Ie("indent",60409),recordSmall:Ie("record-small",60410),errorSmall:Ie("error-small",60411),terminalDecorationError:Ie("terminal-decoration-error",60411),arrowCircleDown:Ie("arrow-circle-down",60412),arrowCircleLeft:Ie("arrow-circle-left",60413),arrowCircleRight:Ie("arrow-circle-right",60414),arrowCircleUp:Ie("arrow-circle-up",60415),layoutSidebarRightOff:Ie("layout-sidebar-right-off",60416),layoutPanelOff:Ie("layout-panel-off",60417),layoutSidebarLeftOff:Ie("layout-sidebar-left-off",60418),blank:Ie("blank",60419),heartFilled:Ie("heart-filled",60420),map:Ie("map",60421),mapHorizontal:Ie("map-horizontal",60421),foldHorizontal:Ie("fold-horizontal",60421),mapFilled:Ie("map-filled",60422),mapHorizontalFilled:Ie("map-horizontal-filled",60422),foldHorizontalFilled:Ie("fold-horizontal-filled",60422),circleSmall:Ie("circle-small",60423),bellSlash:Ie("bell-slash",60424),bellSlashDot:Ie("bell-slash-dot",60425),commentUnresolved:Ie("comment-unresolved",60426),gitPullRequestGoToChanges:Ie("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:Ie("git-pull-request-new-changes",60428),searchFuzzy:Ie("search-fuzzy",60429),commentDraft:Ie("comment-draft",60430),send:Ie("send",60431),sparkle:Ie("sparkle",60432),insert:Ie("insert",60433),mic:Ie("mic",60434),thumbsdownFilled:Ie("thumbsdown-filled",60435),thumbsupFilled:Ie("thumbsup-filled",60436),coffee:Ie("coffee",60437),snake:Ie("snake",60438),game:Ie("game",60439),vr:Ie("vr",60440),chip:Ie("chip",60441),piano:Ie("piano",60442),music:Ie("music",60443),micFilled:Ie("mic-filled",60444),repoFetch:Ie("repo-fetch",60445),copilot:Ie("copilot",60446),lightbulbSparkle:Ie("lightbulb-sparkle",60447),robot:Ie("robot",60448),sparkleFilled:Ie("sparkle-filled",60449),diffSingle:Ie("diff-single",60450),diffMultiple:Ie("diff-multiple",60451),surroundWith:Ie("surround-with",60452),share:Ie("share",60453),gitStash:Ie("git-stash",60454),gitStashApply:Ie("git-stash-apply",60455),gitStashPop:Ie("git-stash-pop",60456),vscode:Ie("vscode",60457),vscodeInsiders:Ie("vscode-insiders",60458),codeOss:Ie("code-oss",60459),runCoverage:Ie("run-coverage",60460),runAllCoverage:Ie("run-all-coverage",60461),coverage:Ie("coverage",60462),githubProject:Ie("github-project",60463),mapVertical:Ie("map-vertical",60464),foldVertical:Ie("fold-vertical",60464),mapVerticalFilled:Ie("map-vertical-filled",60465),foldVerticalFilled:Ie("fold-vertical-filled",60465),goToSearch:Ie("go-to-search",60466),percentage:Ie("percentage",60467),sortPercentage:Ie("sort-percentage",60467),attach:Ie("attach",60468)},_5e={dialogError:Ie("dialog-error","error"),dialogWarning:Ie("dialog-warning","warning"),dialogInfo:Ie("dialog-info","info"),dialogClose:Ie("dialog-close","close"),treeItemExpanded:Ie("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:Ie("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:Ie("tree-filter-on-type-off","list-selection"),treeFilterClear:Ie("tree-filter-clear","close"),treeItemLoading:Ie("tree-item-loading","loading"),menuSelection:Ie("menu-selection","check"),menuSubmenu:Ie("menu-submenu","chevron-right"),menuBarMore:Ie("menubar-more","more"),scrollbarButtonLeft:Ie("scrollbar-button-left","triangle-left"),scrollbarButtonRight:Ie("scrollbar-button-right","triangle-right"),scrollbarButtonUp:Ie("scrollbar-button-up","triangle-up"),scrollbarButtonDown:Ie("scrollbar-button-down","triangle-down"),toolBarMore:Ie("toolbar-more","more"),quickInputBack:Ie("quick-input-back","arrow-left"),dropDownButton:Ie("drop-down-button",60084),symbolCustomColor:Ie("symbol-customcolor",60252),exportIcon:Ie("export",60332),workspaceUnspecified:Ie("workspace-unspecified",60355),newLine:Ie("newline",60394),thumbsDownFilled:Ie("thumbsdown-filled",60435),thumbsUpFilled:Ie("thumbsup-filled",60436),gitFetch:Ie("git-fetch",60445),lightbulbSparkleAutofix:Ie("lightbulb-sparkle-autofix",60447),debugBreakpointPending:Ie("debug-breakpoint-pending",60377)},_s={...m5e,..._5e};class h5e{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new _E,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(b){this._onDidChange.fire({changedLanguages:b,changedColorMap:!1})}register(b,I){return this._tokenizationSupports.set(b,I),this.handleChange([b]),SB(()=>{this._tokenizationSupports.get(b)===I&&(this._tokenizationSupports.delete(b),this.handleChange([b]))})}get(b){return this._tokenizationSupports.get(b)||null}registerFactory(b,I){var z;(z=this._factories.get(b))===null||z===void 0||z.dispose();const ee=new g5e(this,b,I);return this._factories.set(b,ee),SB(()=>{const _e=this._factories.get(b);!_e||_e!==ee||(this._factories.delete(b),_e.dispose())})}async getOrCreate(b){const I=this.get(b);if(I)return I;const z=this._factories.get(b);return!z||z.isResolved?null:(await z.resolve(),this.get(b))}isResolved(b){if(this.get(b))return!0;const z=this._factories.get(b);return!!(!z||z.isResolved)}setColorMap(b){this._colorMap=b,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}}class g5e extends c6{get isResolved(){return this._isResolved}constructor(b,I,z){super(),this._registry=b,this._languageId=I,this._factory=z,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(){const b=await this._factory.tokenizationSupport;this._isResolved=!0,b&&!this._isDisposed&&this._register(this._registry.register(this._languageId,b))}}class v5e{constructor(b,I,z){this.offset=b,this.type=I,this.language=z,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var Hbe;(function(g){g[g.Increase=0]="Increase",g[g.Decrease=1]="Decrease"})(Hbe||(Hbe={}));var qbe;(function(g){const b=new Map;b.set(0,_s.symbolMethod),b.set(1,_s.symbolFunction),b.set(2,_s.symbolConstructor),b.set(3,_s.symbolField),b.set(4,_s.symbolVariable),b.set(5,_s.symbolClass),b.set(6,_s.symbolStruct),b.set(7,_s.symbolInterface),b.set(8,_s.symbolModule),b.set(9,_s.symbolProperty),b.set(10,_s.symbolEvent),b.set(11,_s.symbolOperator),b.set(12,_s.symbolUnit),b.set(13,_s.symbolValue),b.set(15,_s.symbolEnum),b.set(14,_s.symbolConstant),b.set(15,_s.symbolEnum),b.set(16,_s.symbolEnumMember),b.set(17,_s.symbolKeyword),b.set(27,_s.symbolSnippet),b.set(18,_s.symbolText),b.set(19,_s.symbolColor),b.set(20,_s.symbolFile),b.set(21,_s.symbolReference),b.set(22,_s.symbolCustomColor),b.set(23,_s.symbolFolder),b.set(24,_s.symbolTypeParameter),b.set(25,_s.account),b.set(26,_s.issues);function I(_e){let Re=b.get(_e);return Re||(console.info("No codicon found for CompletionItemKind "+_e),Re=_s.symbolProperty),Re}g.toIcon=I;const z=new Map;z.set("method",0),z.set("function",1),z.set("constructor",2),z.set("field",3),z.set("variable",4),z.set("class",5),z.set("struct",6),z.set("interface",7),z.set("module",8),z.set("property",9),z.set("event",10),z.set("operator",11),z.set("unit",12),z.set("value",13),z.set("constant",14),z.set("enum",15),z.set("enum-member",16),z.set("enumMember",16),z.set("keyword",17),z.set("snippet",27),z.set("text",18),z.set("color",19),z.set("file",20),z.set("reference",21),z.set("customcolor",22),z.set("folder",23),z.set("type-parameter",24),z.set("typeParameter",24),z.set("account",25),z.set("issue",26);function ee(_e,Re){let Ge=z.get(_e);return typeof Ge>"u"&&!Re&&(Ge=9),Ge}g.fromString=ee})(qbe||(qbe={}));var Jbe;(function(g){g[g.Automatic=0]="Automatic",g[g.Explicit=1]="Explicit"})(Jbe||(Jbe={}));var Kbe;(function(g){g[g.Automatic=0]="Automatic",g[g.PasteAs=1]="PasteAs"})(Kbe||(Kbe={}));var Xbe;(function(g){g[g.Invoke=1]="Invoke",g[g.TriggerCharacter=2]="TriggerCharacter",g[g.ContentChange=3]="ContentChange"})(Xbe||(Xbe={}));var Ybe;(function(g){g[g.Text=0]="Text",g[g.Read=1]="Read",g[g.Write=2]="Write"})(Ybe||(Ybe={})),wd("Array","array"),wd("Boolean","boolean"),wd("Class","class"),wd("Constant","constant"),wd("Constructor","constructor"),wd("Enum","enumeration"),wd("EnumMember","enumeration member"),wd("Event","event"),wd("Field","field"),wd("File","file"),wd("Function","function"),wd("Interface","interface"),wd("Key","key"),wd("Method","method"),wd("Module","module"),wd("Namespace","namespace"),wd("Null","null"),wd("Number","number"),wd("Object","object"),wd("Operator","operator"),wd("Package","package"),wd("Property","property"),wd("String","string"),wd("Struct","struct"),wd("TypeParameter","type parameter"),wd("Variable","variable");var $be;(function(g){const b=new Map;b.set(0,_s.symbolFile),b.set(1,_s.symbolModule),b.set(2,_s.symbolNamespace),b.set(3,_s.symbolPackage),b.set(4,_s.symbolClass),b.set(5,_s.symbolMethod),b.set(6,_s.symbolProperty),b.set(7,_s.symbolField),b.set(8,_s.symbolConstructor),b.set(9,_s.symbolEnum),b.set(10,_s.symbolInterface),b.set(11,_s.symbolFunction),b.set(12,_s.symbolVariable),b.set(13,_s.symbolConstant),b.set(14,_s.symbolString),b.set(15,_s.symbolNumber),b.set(16,_s.symbolBoolean),b.set(17,_s.symbolArray),b.set(18,_s.symbolObject),b.set(19,_s.symbolKey),b.set(20,_s.symbolNull),b.set(21,_s.symbolEnumMember),b.set(22,_s.symbolStruct),b.set(23,_s.symbolEvent),b.set(24,_s.symbolOperator),b.set(25,_s.symbolTypeParameter);function I(z){let ee=b.get(z);return ee||(console.info("No codicon found for SymbolKind "+z),ee=_s.symbolProperty),ee}g.toIcon=I})($be||($be={}));var Qbe;(function(g){g[g.AIGenerated=1]="AIGenerated"})(Qbe||(Qbe={}));var Zbe;(function(g){g[g.Invoke=0]="Invoke",g[g.Automatic=1]="Automatic"})(Zbe||(Zbe={}));var e0e;(function(g){function b(I){return!I||typeof I!="object"?!1:typeof I.id=="string"&&typeof I.title=="string"}g.is=b})(e0e||(e0e={}));var t0e;(function(g){g[g.Type=1]="Type",g[g.Parameter=2]="Parameter"})(t0e||(t0e={})),new h5e;var n0e;(function(g){g[g.Invoke=0]="Invoke",g[g.Automatic=1]="Automatic"})(n0e||(n0e={}));var r0e;(function(g){g[g.Unknown=0]="Unknown",g[g.Disabled=1]="Disabled",g[g.Enabled=2]="Enabled"})(r0e||(r0e={}));var i0e;(function(g){g[g.Invoke=1]="Invoke",g[g.Auto=2]="Auto"})(i0e||(i0e={}));var o0e;(function(g){g[g.None=0]="None",g[g.KeepWhitespace=1]="KeepWhitespace",g[g.InsertAsSnippet=4]="InsertAsSnippet"})(o0e||(o0e={}));var a0e;(function(g){g[g.Method=0]="Method",g[g.Function=1]="Function",g[g.Constructor=2]="Constructor",g[g.Field=3]="Field",g[g.Variable=4]="Variable",g[g.Class=5]="Class",g[g.Struct=6]="Struct",g[g.Interface=7]="Interface",g[g.Module=8]="Module",g[g.Property=9]="Property",g[g.Event=10]="Event",g[g.Operator=11]="Operator",g[g.Unit=12]="Unit",g[g.Value=13]="Value",g[g.Constant=14]="Constant",g[g.Enum=15]="Enum",g[g.EnumMember=16]="EnumMember",g[g.Keyword=17]="Keyword",g[g.Text=18]="Text",g[g.Color=19]="Color",g[g.File=20]="File",g[g.Reference=21]="Reference",g[g.Customcolor=22]="Customcolor",g[g.Folder=23]="Folder",g[g.TypeParameter=24]="TypeParameter",g[g.User=25]="User",g[g.Issue=26]="Issue",g[g.Snippet=27]="Snippet"})(a0e||(a0e={}));var s0e;(function(g){g[g.Deprecated=1]="Deprecated"})(s0e||(s0e={}));var l0e;(function(g){g[g.Invoke=0]="Invoke",g[g.TriggerCharacter=1]="TriggerCharacter",g[g.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(l0e||(l0e={}));var c0e;(function(g){g[g.EXACT=0]="EXACT",g[g.ABOVE=1]="ABOVE",g[g.BELOW=2]="BELOW"})(c0e||(c0e={}));var u0e;(function(g){g[g.NotSet=0]="NotSet",g[g.ContentFlush=1]="ContentFlush",g[g.RecoverFromMarkers=2]="RecoverFromMarkers",g[g.Explicit=3]="Explicit",g[g.Paste=4]="Paste",g[g.Undo=5]="Undo",g[g.Redo=6]="Redo"})(u0e||(u0e={}));var d0e;(function(g){g[g.LF=1]="LF",g[g.CRLF=2]="CRLF"})(d0e||(d0e={}));var p0e;(function(g){g[g.Text=0]="Text",g[g.Read=1]="Read",g[g.Write=2]="Write"})(p0e||(p0e={}));var f0e;(function(g){g[g.None=0]="None",g[g.Keep=1]="Keep",g[g.Brackets=2]="Brackets",g[g.Advanced=3]="Advanced",g[g.Full=4]="Full"})(f0e||(f0e={}));var m0e;(function(g){g[g.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",g[g.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",g[g.accessibilitySupport=2]="accessibilitySupport",g[g.accessibilityPageSize=3]="accessibilityPageSize",g[g.ariaLabel=4]="ariaLabel",g[g.ariaRequired=5]="ariaRequired",g[g.autoClosingBrackets=6]="autoClosingBrackets",g[g.autoClosingComments=7]="autoClosingComments",g[g.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",g[g.autoClosingDelete=9]="autoClosingDelete",g[g.autoClosingOvertype=10]="autoClosingOvertype",g[g.autoClosingQuotes=11]="autoClosingQuotes",g[g.autoIndent=12]="autoIndent",g[g.automaticLayout=13]="automaticLayout",g[g.autoSurround=14]="autoSurround",g[g.bracketPairColorization=15]="bracketPairColorization",g[g.guides=16]="guides",g[g.codeLens=17]="codeLens",g[g.codeLensFontFamily=18]="codeLensFontFamily",g[g.codeLensFontSize=19]="codeLensFontSize",g[g.colorDecorators=20]="colorDecorators",g[g.colorDecoratorsLimit=21]="colorDecoratorsLimit",g[g.columnSelection=22]="columnSelection",g[g.comments=23]="comments",g[g.contextmenu=24]="contextmenu",g[g.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",g[g.cursorBlinking=26]="cursorBlinking",g[g.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",g[g.cursorStyle=28]="cursorStyle",g[g.cursorSurroundingLines=29]="cursorSurroundingLines",g[g.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",g[g.cursorWidth=31]="cursorWidth",g[g.disableLayerHinting=32]="disableLayerHinting",g[g.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",g[g.domReadOnly=34]="domReadOnly",g[g.dragAndDrop=35]="dragAndDrop",g[g.dropIntoEditor=36]="dropIntoEditor",g[g.emptySelectionClipboard=37]="emptySelectionClipboard",g[g.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",g[g.extraEditorClassName=39]="extraEditorClassName",g[g.fastScrollSensitivity=40]="fastScrollSensitivity",g[g.find=41]="find",g[g.fixedOverflowWidgets=42]="fixedOverflowWidgets",g[g.folding=43]="folding",g[g.foldingStrategy=44]="foldingStrategy",g[g.foldingHighlight=45]="foldingHighlight",g[g.foldingImportsByDefault=46]="foldingImportsByDefault",g[g.foldingMaximumRegions=47]="foldingMaximumRegions",g[g.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",g[g.fontFamily=49]="fontFamily",g[g.fontInfo=50]="fontInfo",g[g.fontLigatures=51]="fontLigatures",g[g.fontSize=52]="fontSize",g[g.fontWeight=53]="fontWeight",g[g.fontVariations=54]="fontVariations",g[g.formatOnPaste=55]="formatOnPaste",g[g.formatOnType=56]="formatOnType",g[g.glyphMargin=57]="glyphMargin",g[g.gotoLocation=58]="gotoLocation",g[g.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",g[g.hover=60]="hover",g[g.inDiffEditor=61]="inDiffEditor",g[g.inlineSuggest=62]="inlineSuggest",g[g.inlineEdit=63]="inlineEdit",g[g.letterSpacing=64]="letterSpacing",g[g.lightbulb=65]="lightbulb",g[g.lineDecorationsWidth=66]="lineDecorationsWidth",g[g.lineHeight=67]="lineHeight",g[g.lineNumbers=68]="lineNumbers",g[g.lineNumbersMinChars=69]="lineNumbersMinChars",g[g.linkedEditing=70]="linkedEditing",g[g.links=71]="links",g[g.matchBrackets=72]="matchBrackets",g[g.minimap=73]="minimap",g[g.mouseStyle=74]="mouseStyle",g[g.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",g[g.mouseWheelZoom=76]="mouseWheelZoom",g[g.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",g[g.multiCursorModifier=78]="multiCursorModifier",g[g.multiCursorPaste=79]="multiCursorPaste",g[g.multiCursorLimit=80]="multiCursorLimit",g[g.occurrencesHighlight=81]="occurrencesHighlight",g[g.overviewRulerBorder=82]="overviewRulerBorder",g[g.overviewRulerLanes=83]="overviewRulerLanes",g[g.padding=84]="padding",g[g.pasteAs=85]="pasteAs",g[g.parameterHints=86]="parameterHints",g[g.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",g[g.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",g[g.quickSuggestions=89]="quickSuggestions",g[g.quickSuggestionsDelay=90]="quickSuggestionsDelay",g[g.readOnly=91]="readOnly",g[g.readOnlyMessage=92]="readOnlyMessage",g[g.renameOnType=93]="renameOnType",g[g.renderControlCharacters=94]="renderControlCharacters",g[g.renderFinalNewline=95]="renderFinalNewline",g[g.renderLineHighlight=96]="renderLineHighlight",g[g.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",g[g.renderValidationDecorations=98]="renderValidationDecorations",g[g.renderWhitespace=99]="renderWhitespace",g[g.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",g[g.roundedSelection=101]="roundedSelection",g[g.rulers=102]="rulers",g[g.scrollbar=103]="scrollbar",g[g.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",g[g.scrollBeyondLastLine=105]="scrollBeyondLastLine",g[g.scrollPredominantAxis=106]="scrollPredominantAxis",g[g.selectionClipboard=107]="selectionClipboard",g[g.selectionHighlight=108]="selectionHighlight",g[g.selectOnLineNumbers=109]="selectOnLineNumbers",g[g.showFoldingControls=110]="showFoldingControls",g[g.showUnused=111]="showUnused",g[g.snippetSuggestions=112]="snippetSuggestions",g[g.smartSelect=113]="smartSelect",g[g.smoothScrolling=114]="smoothScrolling",g[g.stickyScroll=115]="stickyScroll",g[g.stickyTabStops=116]="stickyTabStops",g[g.stopRenderingLineAfter=117]="stopRenderingLineAfter",g[g.suggest=118]="suggest",g[g.suggestFontSize=119]="suggestFontSize",g[g.suggestLineHeight=120]="suggestLineHeight",g[g.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",g[g.suggestSelection=122]="suggestSelection",g[g.tabCompletion=123]="tabCompletion",g[g.tabIndex=124]="tabIndex",g[g.unicodeHighlighting=125]="unicodeHighlighting",g[g.unusualLineTerminators=126]="unusualLineTerminators",g[g.useShadowDOM=127]="useShadowDOM",g[g.useTabStops=128]="useTabStops",g[g.wordBreak=129]="wordBreak",g[g.wordSegmenterLocales=130]="wordSegmenterLocales",g[g.wordSeparators=131]="wordSeparators",g[g.wordWrap=132]="wordWrap",g[g.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",g[g.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",g[g.wordWrapColumn=135]="wordWrapColumn",g[g.wordWrapOverride1=136]="wordWrapOverride1",g[g.wordWrapOverride2=137]="wordWrapOverride2",g[g.wrappingIndent=138]="wrappingIndent",g[g.wrappingStrategy=139]="wrappingStrategy",g[g.showDeprecated=140]="showDeprecated",g[g.inlayHints=141]="inlayHints",g[g.editorClassName=142]="editorClassName",g[g.pixelRatio=143]="pixelRatio",g[g.tabFocusMode=144]="tabFocusMode",g[g.layoutInfo=145]="layoutInfo",g[g.wrappingInfo=146]="wrappingInfo",g[g.defaultColorDecorators=147]="defaultColorDecorators",g[g.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",g[g.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"})(m0e||(m0e={}));var _0e;(function(g){g[g.TextDefined=0]="TextDefined",g[g.LF=1]="LF",g[g.CRLF=2]="CRLF"})(_0e||(_0e={}));var h0e;(function(g){g[g.LF=0]="LF",g[g.CRLF=1]="CRLF"})(h0e||(h0e={}));var g0e;(function(g){g[g.Left=1]="Left",g[g.Center=2]="Center",g[g.Right=3]="Right"})(g0e||(g0e={}));var v0e;(function(g){g[g.Increase=0]="Increase",g[g.Decrease=1]="Decrease"})(v0e||(v0e={}));var y0e;(function(g){g[g.None=0]="None",g[g.Indent=1]="Indent",g[g.IndentOutdent=2]="IndentOutdent",g[g.Outdent=3]="Outdent"})(y0e||(y0e={}));var b0e;(function(g){g[g.Both=0]="Both",g[g.Right=1]="Right",g[g.Left=2]="Left",g[g.None=3]="None"})(b0e||(b0e={}));var E0e;(function(g){g[g.Type=1]="Type",g[g.Parameter=2]="Parameter"})(E0e||(E0e={}));var S0e;(function(g){g[g.Automatic=0]="Automatic",g[g.Explicit=1]="Explicit"})(S0e||(S0e={}));var T0e;(function(g){g[g.Invoke=0]="Invoke",g[g.Automatic=1]="Automatic"})(T0e||(T0e={}));var wte;(function(g){g[g.DependsOnKbLayout=-1]="DependsOnKbLayout",g[g.Unknown=0]="Unknown",g[g.Backspace=1]="Backspace",g[g.Tab=2]="Tab",g[g.Enter=3]="Enter",g[g.Shift=4]="Shift",g[g.Ctrl=5]="Ctrl",g[g.Alt=6]="Alt",g[g.PauseBreak=7]="PauseBreak",g[g.CapsLock=8]="CapsLock",g[g.Escape=9]="Escape",g[g.Space=10]="Space",g[g.PageUp=11]="PageUp",g[g.PageDown=12]="PageDown",g[g.End=13]="End",g[g.Home=14]="Home",g[g.LeftArrow=15]="LeftArrow",g[g.UpArrow=16]="UpArrow",g[g.RightArrow=17]="RightArrow",g[g.DownArrow=18]="DownArrow",g[g.Insert=19]="Insert",g[g.Delete=20]="Delete",g[g.Digit0=21]="Digit0",g[g.Digit1=22]="Digit1",g[g.Digit2=23]="Digit2",g[g.Digit3=24]="Digit3",g[g.Digit4=25]="Digit4",g[g.Digit5=26]="Digit5",g[g.Digit6=27]="Digit6",g[g.Digit7=28]="Digit7",g[g.Digit8=29]="Digit8",g[g.Digit9=30]="Digit9",g[g.KeyA=31]="KeyA",g[g.KeyB=32]="KeyB",g[g.KeyC=33]="KeyC",g[g.KeyD=34]="KeyD",g[g.KeyE=35]="KeyE",g[g.KeyF=36]="KeyF",g[g.KeyG=37]="KeyG",g[g.KeyH=38]="KeyH",g[g.KeyI=39]="KeyI",g[g.KeyJ=40]="KeyJ",g[g.KeyK=41]="KeyK",g[g.KeyL=42]="KeyL",g[g.KeyM=43]="KeyM",g[g.KeyN=44]="KeyN",g[g.KeyO=45]="KeyO",g[g.KeyP=46]="KeyP",g[g.KeyQ=47]="KeyQ",g[g.KeyR=48]="KeyR",g[g.KeyS=49]="KeyS",g[g.KeyT=50]="KeyT",g[g.KeyU=51]="KeyU",g[g.KeyV=52]="KeyV",g[g.KeyW=53]="KeyW",g[g.KeyX=54]="KeyX",g[g.KeyY=55]="KeyY",g[g.KeyZ=56]="KeyZ",g[g.Meta=57]="Meta",g[g.ContextMenu=58]="ContextMenu",g[g.F1=59]="F1",g[g.F2=60]="F2",g[g.F3=61]="F3",g[g.F4=62]="F4",g[g.F5=63]="F5",g[g.F6=64]="F6",g[g.F7=65]="F7",g[g.F8=66]="F8",g[g.F9=67]="F9",g[g.F10=68]="F10",g[g.F11=69]="F11",g[g.F12=70]="F12",g[g.F13=71]="F13",g[g.F14=72]="F14",g[g.F15=73]="F15",g[g.F16=74]="F16",g[g.F17=75]="F17",g[g.F18=76]="F18",g[g.F19=77]="F19",g[g.F20=78]="F20",g[g.F21=79]="F21",g[g.F22=80]="F22",g[g.F23=81]="F23",g[g.F24=82]="F24",g[g.NumLock=83]="NumLock",g[g.ScrollLock=84]="ScrollLock",g[g.Semicolon=85]="Semicolon",g[g.Equal=86]="Equal",g[g.Comma=87]="Comma",g[g.Minus=88]="Minus",g[g.Period=89]="Period",g[g.Slash=90]="Slash",g[g.Backquote=91]="Backquote",g[g.BracketLeft=92]="BracketLeft",g[g.Backslash=93]="Backslash",g[g.BracketRight=94]="BracketRight",g[g.Quote=95]="Quote",g[g.OEM_8=96]="OEM_8",g[g.IntlBackslash=97]="IntlBackslash",g[g.Numpad0=98]="Numpad0",g[g.Numpad1=99]="Numpad1",g[g.Numpad2=100]="Numpad2",g[g.Numpad3=101]="Numpad3",g[g.Numpad4=102]="Numpad4",g[g.Numpad5=103]="Numpad5",g[g.Numpad6=104]="Numpad6",g[g.Numpad7=105]="Numpad7",g[g.Numpad8=106]="Numpad8",g[g.Numpad9=107]="Numpad9",g[g.NumpadMultiply=108]="NumpadMultiply",g[g.NumpadAdd=109]="NumpadAdd",g[g.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",g[g.NumpadSubtract=111]="NumpadSubtract",g[g.NumpadDecimal=112]="NumpadDecimal",g[g.NumpadDivide=113]="NumpadDivide",g[g.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",g[g.ABNT_C1=115]="ABNT_C1",g[g.ABNT_C2=116]="ABNT_C2",g[g.AudioVolumeMute=117]="AudioVolumeMute",g[g.AudioVolumeUp=118]="AudioVolumeUp",g[g.AudioVolumeDown=119]="AudioVolumeDown",g[g.BrowserSearch=120]="BrowserSearch",g[g.BrowserHome=121]="BrowserHome",g[g.BrowserBack=122]="BrowserBack",g[g.BrowserForward=123]="BrowserForward",g[g.MediaTrackNext=124]="MediaTrackNext",g[g.MediaTrackPrevious=125]="MediaTrackPrevious",g[g.MediaStop=126]="MediaStop",g[g.MediaPlayPause=127]="MediaPlayPause",g[g.LaunchMediaPlayer=128]="LaunchMediaPlayer",g[g.LaunchMail=129]="LaunchMail",g[g.LaunchApp2=130]="LaunchApp2",g[g.Clear=131]="Clear",g[g.MAX_VALUE=132]="MAX_VALUE"})(wte||(wte={}));var Ote;(function(g){g[g.Hint=1]="Hint",g[g.Info=2]="Info",g[g.Warning=4]="Warning",g[g.Error=8]="Error"})(Ote||(Ote={}));var Wte;(function(g){g[g.Unnecessary=1]="Unnecessary",g[g.Deprecated=2]="Deprecated"})(Wte||(Wte={}));var A0e;(function(g){g[g.Inline=1]="Inline",g[g.Gutter=2]="Gutter"})(A0e||(A0e={}));var I0e;(function(g){g[g.Normal=1]="Normal",g[g.Underlined=2]="Underlined"})(I0e||(I0e={}));var x0e;(function(g){g[g.UNKNOWN=0]="UNKNOWN",g[g.TEXTAREA=1]="TEXTAREA",g[g.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",g[g.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",g[g.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",g[g.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",g[g.CONTENT_TEXT=6]="CONTENT_TEXT",g[g.CONTENT_EMPTY=7]="CONTENT_EMPTY",g[g.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",g[g.CONTENT_WIDGET=9]="CONTENT_WIDGET",g[g.OVERVIEW_RULER=10]="OVERVIEW_RULER",g[g.SCROLLBAR=11]="SCROLLBAR",g[g.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",g[g.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(x0e||(x0e={}));var R0e;(function(g){g[g.AIGenerated=1]="AIGenerated"})(R0e||(R0e={}));var D0e;(function(g){g[g.Invoke=0]="Invoke",g[g.Automatic=1]="Automatic"})(D0e||(D0e={}));var N0e;(function(g){g[g.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",g[g.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",g[g.TOP_CENTER=2]="TOP_CENTER"})(N0e||(N0e={}));var C0e;(function(g){g[g.Left=1]="Left",g[g.Center=2]="Center",g[g.Right=4]="Right",g[g.Full=7]="Full"})(C0e||(C0e={}));var P0e;(function(g){g[g.Word=0]="Word",g[g.Line=1]="Line",g[g.Suggest=2]="Suggest"})(P0e||(P0e={}));var M0e;(function(g){g[g.Left=0]="Left",g[g.Right=1]="Right",g[g.None=2]="None",g[g.LeftOfInjectedText=3]="LeftOfInjectedText",g[g.RightOfInjectedText=4]="RightOfInjectedText"})(M0e||(M0e={}));var L0e;(function(g){g[g.Off=0]="Off",g[g.On=1]="On",g[g.Relative=2]="Relative",g[g.Interval=3]="Interval",g[g.Custom=4]="Custom"})(L0e||(L0e={}));var k0e;(function(g){g[g.None=0]="None",g[g.Text=1]="Text",g[g.Blocks=2]="Blocks"})(k0e||(k0e={}));var w0e;(function(g){g[g.Smooth=0]="Smooth",g[g.Immediate=1]="Immediate"})(w0e||(w0e={}));var O0e;(function(g){g[g.Auto=1]="Auto",g[g.Hidden=2]="Hidden",g[g.Visible=3]="Visible"})(O0e||(O0e={}));var Fte;(function(g){g[g.LTR=0]="LTR",g[g.RTL=1]="RTL"})(Fte||(Fte={}));var W0e;(function(g){g.Off="off",g.OnCode="onCode",g.On="on"})(W0e||(W0e={}));var F0e;(function(g){g[g.Invoke=1]="Invoke",g[g.TriggerCharacter=2]="TriggerCharacter",g[g.ContentChange=3]="ContentChange"})(F0e||(F0e={}));var z0e;(function(g){g[g.File=0]="File",g[g.Module=1]="Module",g[g.Namespace=2]="Namespace",g[g.Package=3]="Package",g[g.Class=4]="Class",g[g.Method=5]="Method",g[g.Property=6]="Property",g[g.Field=7]="Field",g[g.Constructor=8]="Constructor",g[g.Enum=9]="Enum",g[g.Interface=10]="Interface",g[g.Function=11]="Function",g[g.Variable=12]="Variable",g[g.Constant=13]="Constant",g[g.String=14]="String",g[g.Number=15]="Number",g[g.Boolean=16]="Boolean",g[g.Array=17]="Array",g[g.Object=18]="Object",g[g.Key=19]="Key",g[g.Null=20]="Null",g[g.EnumMember=21]="EnumMember",g[g.Struct=22]="Struct",g[g.Event=23]="Event",g[g.Operator=24]="Operator",g[g.TypeParameter=25]="TypeParameter"})(z0e||(z0e={}));var B0e;(function(g){g[g.Deprecated=1]="Deprecated"})(B0e||(B0e={}));var G0e;(function(g){g[g.Hidden=0]="Hidden",g[g.Blink=1]="Blink",g[g.Smooth=2]="Smooth",g[g.Phase=3]="Phase",g[g.Expand=4]="Expand",g[g.Solid=5]="Solid"})(G0e||(G0e={}));var V0e;(function(g){g[g.Line=1]="Line",g[g.Block=2]="Block",g[g.Underline=3]="Underline",g[g.LineThin=4]="LineThin",g[g.BlockOutline=5]="BlockOutline",g[g.UnderlineThin=6]="UnderlineThin"})(V0e||(V0e={}));var j0e;(function(g){g[g.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",g[g.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",g[g.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",g[g.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(j0e||(j0e={}));var U0e;(function(g){g[g.None=0]="None",g[g.Same=1]="Same",g[g.Indent=2]="Indent",g[g.DeepIndent=3]="DeepIndent"})(U0e||(U0e={}));class p6{static chord(b,I){return f5e(b,I)}}p6.CtrlCmd=2048,p6.Shift=1024,p6.Alt=512,p6.WinCtrl=256;function y5e(){return{editor:void 0,languages:void 0,CancellationTokenSource:c5e,Emitter:_E,KeyCode:wte,KeyMod:p6,Position:oh,Range:Tl,Selection:vy,SelectionDirection:Fte,MarkerSeverity:Ote,MarkerTag:Wte,Uri:GN,Token:v5e}}var H0e;class b5e{constructor(){this[H0e]="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 b;return(b=this._head)===null||b===void 0?void 0:b.value}get last(){var b;return(b=this._tail)===null||b===void 0?void 0:b.value}has(b){return this._map.has(b)}get(b,I=0){const z=this._map.get(b);if(z)return I!==0&&this.touch(z,I),z.value}set(b,I,z=0){let ee=this._map.get(b);if(ee)ee.value=I,z!==0&&this.touch(ee,z);else{switch(ee={key:b,value:I,next:void 0,previous:void 0},z){case 0:this.addItemLast(ee);break;case 1:this.addItemFirst(ee);break;case 2:this.addItemLast(ee);break;default:this.addItemLast(ee);break}this._map.set(b,ee),this._size++}return this}delete(b){return!!this.remove(b)}remove(b){const I=this._map.get(b);if(I)return this._map.delete(b),this.removeItem(I),this._size--,I.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const b=this._head;return this._map.delete(b.key),this.removeItem(b),this._size--,b.value}forEach(b,I){const z=this._state;let ee=this._head;for(;ee;){if(I?b.bind(I)(ee.value,ee.key,this):b(ee.value,ee.key,this),this._state!==z)throw new Error("LinkedMap got modified during iteration.");ee=ee.next}}keys(){const b=this,I=this._state;let z=this._head;const ee={[Symbol.iterator](){return ee},next(){if(b._state!==I)throw new Error("LinkedMap got modified during iteration.");if(z){const _e={value:z.key,done:!1};return z=z.next,_e}else return{value:void 0,done:!0}}};return ee}values(){const b=this,I=this._state;let z=this._head;const ee={[Symbol.iterator](){return ee},next(){if(b._state!==I)throw new Error("LinkedMap got modified during iteration.");if(z){const _e={value:z.value,done:!1};return z=z.next,_e}else return{value:void 0,done:!0}}};return ee}entries(){const b=this,I=this._state;let z=this._head;const ee={[Symbol.iterator](){return ee},next(){if(b._state!==I)throw new Error("LinkedMap got modified during iteration.");if(z){const _e={value:[z.key,z.value],done:!1};return z=z.next,_e}else return{value:void 0,done:!0}}};return ee}[(H0e=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(b){if(b>=this.size)return;if(b===0){this.clear();return}let I=this._head,z=this.size;for(;I&&z>b;)this._map.delete(I.key),I=I.next,z--;this._head=I,this._size=z,I&&(I.previous=void 0),this._state++}trimNew(b){if(b>=this.size)return;if(b===0){this.clear();return}let I=this._tail,z=this.size;for(;I&&z>b;)this._map.delete(I.key),I=I.previous,z--;this._tail=I,this._size=z,I&&(I.next=void 0),this._state++}addItemFirst(b){if(!this._head&&!this._tail)this._tail=b;else if(this._head)b.next=this._head,this._head.previous=b;else throw new Error("Invalid list");this._head=b,this._state++}addItemLast(b){if(!this._head&&!this._tail)this._head=b;else if(this._tail)b.previous=this._tail,this._tail.next=b;else throw new Error("Invalid list");this._tail=b,this._state++}removeItem(b){if(b===this._head&&b===this._tail)this._head=void 0,this._tail=void 0;else if(b===this._head){if(!b.next)throw new Error("Invalid list");b.next.previous=void 0,this._head=b.next}else if(b===this._tail){if(!b.previous)throw new Error("Invalid list");b.previous.next=void 0,this._tail=b.previous}else{const I=b.next,z=b.previous;if(!I||!z)throw new Error("Invalid list");I.previous=z,z.next=I}b.next=void 0,b.previous=void 0,this._state++}touch(b,I){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(I!==1&&I!==2)){if(I===1){if(b===this._head)return;const z=b.next,ee=b.previous;b===this._tail?(ee.next=void 0,this._tail=ee):(z.previous=ee,ee.next=z),b.previous=void 0,b.next=this._head,this._head.previous=b,this._head=b,this._state++}else if(I===2){if(b===this._tail)return;const z=b.next,ee=b.previous;b===this._head?(z.previous=void 0,this._head=z):(z.previous=ee,ee.next=z),b.next=void 0,b.previous=this._tail,this._tail.next=b,this._tail=b,this._state++}}}toJSON(){const b=[];return this.forEach((I,z)=>{b.push([z,I])}),b}fromJSON(b){this.clear();for(const[I,z]of b)this.set(I,z)}}class E5e extends b5e{constructor(b,I=1){super(),this._limit=b,this._ratio=Math.min(Math.max(0,I),1)}get limit(){return this._limit}set limit(b){this._limit=b,this.checkTrim()}get(b,I=2){return super.get(b,I)}peek(b){return super.get(b,0)}set(b,I){return super.set(b,I,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class S5e extends E5e{constructor(b,I=1){super(b,I)}trim(b){this.trimOld(b)}set(b,I){return super.set(b,I),this.checkTrim(),this}}class T5e{constructor(){this.map=new Map}add(b,I){let z=this.map.get(b);z||(z=new Set,this.map.set(b,z)),z.add(I)}delete(b,I){const z=this.map.get(b);z&&(z.delete(I),z.size===0&&this.map.delete(b))}forEach(b,I){const z=this.map.get(b);z&&z.forEach(I)}get(b){const I=this.map.get(b);return I||new Set}}new S5e(10);var q0e;(function(g){g[g.Left=1]="Left",g[g.Center=2]="Center",g[g.Right=4]="Right",g[g.Full=7]="Full"})(q0e||(q0e={}));var J0e;(function(g){g[g.Left=1]="Left",g[g.Center=2]="Center",g[g.Right=3]="Right"})(J0e||(J0e={}));var K0e;(function(g){g[g.Both=0]="Both",g[g.Right=1]="Right",g[g.Left=2]="Left",g[g.None=3]="None"})(K0e||(K0e={}));function A5e(g,b,I,z,ee){if(z===0)return!0;const _e=b.charCodeAt(z-1);if(g.get(_e)!==0||_e===13||_e===10)return!0;if(ee>0){const Re=b.charCodeAt(z);if(g.get(Re)!==0)return!0}return!1}function I5e(g,b,I,z,ee){if(z+ee===I)return!0;const _e=b.charCodeAt(z+ee);if(g.get(_e)!==0||_e===13||_e===10)return!0;if(ee>0){const Re=b.charCodeAt(z+ee-1);if(g.get(Re)!==0)return!0}return!1}function x5e(g,b,I,z,ee){return A5e(g,b,I,z,ee)&&I5e(g,b,I,z,ee)}class R5e{constructor(b,I){this._wordSeparators=b,this._searchRegex=I,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(b){this._searchRegex.lastIndex=b,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(b){const I=b.length;let z;do{if(this._prevMatchStartIndex+this._prevMatchLength===I||(z=this._searchRegex.exec(b),!z))return null;const ee=z.index,_e=z[0].length;if(ee===this._prevMatchStartIndex&&_e===this._prevMatchLength){if(_e===0){h7e(b,I,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=ee,this._prevMatchLength=_e,!this._wordSeparators||x5e(this._wordSeparators,b,I,ee,_e))return z}while(z);return null}}function D5e(g,b="Unreachable"){throw new Error(b)}function kB(g){if(!g()){debugger;g(),bB(new tS("Assertion Failed"))}}function X0e(g,b){let I=0;for(;I<g.length-1;){const z=g[I],ee=g[I+1];if(!b(z,ee))return!1;I++}return!0}class N5e{static computeUnicodeHighlights(b,I,z){const ee=z?z.startLineNumber:1,_e=z?z.endLineNumber:b.getLineCount(),Re=new Y0e(I),Ge=Re.getCandidateCodePoints();let at;Ge==="allNonBasicAscii"?at=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):at=new RegExp(`${C5e(Array.from(Ge))}`,"g");const Ne=new R5e(null,at),Xe=[];let $t=!1,Ht,pn=0,Pr=0,gi=0;e:for(let io=ee,Jn=_e;io<=Jn;io++){const In=b.getLineContent(io),oi=In.length;Ne.reset(0);do if(Ht=Ne.next(In),Ht){let mi=Ht.index,Yi=Ht.index+Ht[0].length;if(mi>0){const Jc=In.charCodeAt(mi-1);Tte(Jc)&&mi--}if(Yi+1<oi){const Jc=In.charCodeAt(Yi-1);Tte(Jc)&&Yi++}const ja=In.substring(mi,Yi);let Or=Dte(mi+1,zbe,In,0);Or&&Or.endColumn<=mi+1&&(Or=null);const Ba=Re.shouldHighlightNonBasicASCII(ja,Or?Or.word:null);if(Ba!==0){if(Ba===3?pn++:Ba===2?Pr++:Ba===1?gi++:D5e(),Xe.length>=1e3){$t=!0;break e}Xe.push(new Tl(io,mi+1,io,Yi+1))}}while(Ht)}return{ranges:Xe,hasMore:$t,ambiguousCharacterCount:pn,invisibleCharacterCount:Pr,nonBasicAsciiCharacterCount:gi}}static computeUnicodeHighlightReason(b,I){const z=new Y0e(I);switch(z.shouldHighlightNonBasicASCII(b,null)){case 0:return null;case 2:return{kind:1};case 3:{const _e=b.codePointAt(0),Re=z.ambiguousCharacters.getPrimaryConfusable(_e),Ge=BN.getLocales().filter(at=>!BN.getInstance(new Set([...I.allowedLocales,at])).isAmbiguous(_e));return{kind:0,confusableWith:String.fromCodePoint(Re),notAmbiguousInLocales:Ge}}case 1:return{kind:2}}}}function C5e(g,b){return`[${u7e(g.map(z=>String.fromCodePoint(z)).join(""))}]`}class Y0e{constructor(b){this.options=b,this.allowedCodePoints=new Set(b.allowedCodePoints),this.ambiguousCharacters=BN.getInstance(new Set(b.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const b=new Set;if(this.options.invisibleCharacters)for(const I of Ex.codePoints)$0e(String.fromCodePoint(I))||b.add(I);if(this.options.ambiguousCharacters)for(const I of this.ambiguousCharacters.getConfusableCodePoints())b.add(I);for(const I of this.allowedCodePoints)b.delete(I);return b}shouldHighlightNonBasicASCII(b,I){const z=b.codePointAt(0);if(this.allowedCodePoints.has(z))return 0;if(this.options.nonBasicASCII)return 1;let ee=!1,_e=!1;if(I)for(const Re of I){const Ge=Re.codePointAt(0),at=v7e(Re);ee=ee||at,!at&&!this.ambiguousCharacters.isAmbiguous(Ge)&&!Ex.isInvisibleCharacter(Ge)&&(_e=!0)}return!ee&&_e?0:this.options.invisibleCharacters&&!$0e(b)&&Ex.isInvisibleCharacter(z)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(z)?3:0}}function $0e(g){return g===" "||g===` +`||g===" "}class wB{constructor(b,I,z){this.changes=b,this.moves=I,this.hitTimeout=z}}class P5e{constructor(b,I){this.lineRangeMapping=b,this.changes=I}}class rc{static addRange(b,I){let z=0;for(;z<I.length&&I[z].endExclusive<b.start;)z++;let ee=z;for(;ee<I.length&&I[ee].start<=b.endExclusive;)ee++;if(z===ee)I.splice(z,0,b);else{const _e=Math.min(b.start,I[z].start),Re=Math.max(b.endExclusive,I[ee-1].endExclusive);I.splice(z,ee-z,new rc(_e,Re))}}static tryCreate(b,I){if(!(b>I))return new rc(b,I)}static ofLength(b){return new rc(0,b)}static ofStartAndLength(b,I){return new rc(b,b+I)}constructor(b,I){if(this.start=b,this.endExclusive=I,b>I)throw new tS(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(b){return new rc(this.start+b,this.endExclusive+b)}deltaStart(b){return new rc(this.start+b,this.endExclusive)}deltaEnd(b){return new rc(this.start,this.endExclusive+b)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(b){return this.start<=b&&b<this.endExclusive}join(b){return new rc(Math.min(this.start,b.start),Math.max(this.endExclusive,b.endExclusive))}intersect(b){const I=Math.max(this.start,b.start),z=Math.min(this.endExclusive,b.endExclusive);if(I<=z)return new rc(I,z)}intersects(b){const I=Math.max(this.start,b.start),z=Math.min(this.endExclusive,b.endExclusive);return I<z}isBefore(b){return this.endExclusive<=b.start}isAfter(b){return this.start>=b.endExclusive}slice(b){return b.slice(this.start,this.endExclusive)}substring(b){return b.substring(this.start,this.endExclusive)}clip(b){if(this.isEmpty)throw new tS(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,b))}clipCyclic(b){if(this.isEmpty)throw new tS(`Invalid clipping range: ${this.toString()}`);return b<this.start?this.endExclusive-(this.start-b)%this.length:b>=this.endExclusive?this.start+(b-this.start)%this.length:b}forEach(b){for(let I=this.start;I<this.endExclusive;I++)b(I)}}function I2(g,b){const I=f6(g,b);return I===-1?void 0:g[I]}function f6(g,b,I=0,z=g.length){let ee=I,_e=z;for(;ee<_e;){const Re=Math.floor((ee+_e)/2);b(g[Re])?ee=Re+1:_e=Re}return ee-1}function M5e(g,b){const I=zte(g,b);return I===g.length?void 0:g[I]}function zte(g,b,I=0,z=g.length){let ee=I,_e=z;for(;ee<_e;){const Re=Math.floor((ee+_e)/2);b(g[Re])?_e=Re:ee=Re+1}return ee}class m6{constructor(b){this._array=b,this._findLastMonotonousLastIdx=0}findLastMonotonous(b){if(m6.assertInvariants){if(this._prevFindLastPredicate){for(const z of this._array)if(this._prevFindLastPredicate(z)&&!b(z))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=b}const I=f6(this._array,b,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=I+1,I===-1?void 0:this._array[I]}}m6.assertInvariants=!1;class Jl{static fromRangeInclusive(b){return new Jl(b.startLineNumber,b.endLineNumber+1)}static joinMany(b){if(b.length===0)return[];let I=new rS(b[0].slice());for(let z=1;z<b.length;z++)I=I.getUnion(new rS(b[z].slice()));return I.ranges}static join(b){if(b.length===0)throw new tS("lineRanges cannot be empty");let I=b[0].startLineNumber,z=b[0].endLineNumberExclusive;for(let ee=1;ee<b.length;ee++)I=Math.min(I,b[ee].startLineNumber),z=Math.max(z,b[ee].endLineNumberExclusive);return new Jl(I,z)}static ofLength(b,I){return new Jl(b,b+I)}static deserialize(b){return new Jl(b[0],b[1])}constructor(b,I){if(b>I)throw new tS(`startLineNumber ${b} cannot be after endLineNumberExclusive ${I}`);this.startLineNumber=b,this.endLineNumberExclusive=I}contains(b){return this.startLineNumber<=b&&b<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(b){return new Jl(this.startLineNumber+b,this.endLineNumberExclusive+b)}deltaLength(b){return new Jl(this.startLineNumber,this.endLineNumberExclusive+b)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(b){return new Jl(Math.min(this.startLineNumber,b.startLineNumber),Math.max(this.endLineNumberExclusive,b.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(b){const I=Math.max(this.startLineNumber,b.startLineNumber),z=Math.min(this.endLineNumberExclusive,b.endLineNumberExclusive);if(I<=z)return new Jl(I,z)}intersectsStrict(b){return this.startLineNumber<b.endLineNumberExclusive&&b.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(b){return this.startLineNumber<=b.endLineNumberExclusive&&b.startLineNumber<=this.endLineNumberExclusive}equals(b){return this.startLineNumber===b.startLineNumber&&this.endLineNumberExclusive===b.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new Tl(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new Tl(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(b){const I=[];for(let z=this.startLineNumber;z<this.endLineNumberExclusive;z++)I.push(b(z));return I}forEach(b){for(let I=this.startLineNumber;I<this.endLineNumberExclusive;I++)b(I)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(b){return this.startLineNumber<=b&&b<this.endLineNumberExclusive}toOffsetRange(){return new rc(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class rS{constructor(b=[]){this._normalizedRanges=b}get ranges(){return this._normalizedRanges}addRange(b){if(b.length===0)return;const I=zte(this._normalizedRanges,ee=>ee.endLineNumberExclusive>=b.startLineNumber),z=f6(this._normalizedRanges,ee=>ee.startLineNumber<=b.endLineNumberExclusive)+1;if(I===z)this._normalizedRanges.splice(I,0,b);else if(I===z-1){const ee=this._normalizedRanges[I];this._normalizedRanges[I]=ee.join(b)}else{const ee=this._normalizedRanges[I].join(this._normalizedRanges[z-1]).join(b);this._normalizedRanges.splice(I,z-I,ee)}}contains(b){const I=I2(this._normalizedRanges,z=>z.startLineNumber<=b);return!!I&&I.endLineNumberExclusive>b}intersects(b){const I=I2(this._normalizedRanges,z=>z.startLineNumber<b.endLineNumberExclusive);return!!I&&I.endLineNumberExclusive>b.startLineNumber}getUnion(b){if(this._normalizedRanges.length===0)return b;if(b._normalizedRanges.length===0)return this;const I=[];let z=0,ee=0,_e=null;for(;z<this._normalizedRanges.length||ee<b._normalizedRanges.length;){let Re=null;if(z<this._normalizedRanges.length&&ee<b._normalizedRanges.length){const Ge=this._normalizedRanges[z],at=b._normalizedRanges[ee];Ge.startLineNumber<at.startLineNumber?(Re=Ge,z++):(Re=at,ee++)}else z<this._normalizedRanges.length?(Re=this._normalizedRanges[z],z++):(Re=b._normalizedRanges[ee],ee++);_e===null?_e=Re:_e.endLineNumberExclusive>=Re.startLineNumber?_e=new Jl(_e.startLineNumber,Math.max(_e.endLineNumberExclusive,Re.endLineNumberExclusive)):(I.push(_e),_e=Re)}return _e!==null&&I.push(_e),new rS(I)}subtractFrom(b){const I=zte(this._normalizedRanges,Re=>Re.endLineNumberExclusive>=b.startLineNumber),z=f6(this._normalizedRanges,Re=>Re.startLineNumber<=b.endLineNumberExclusive)+1;if(I===z)return new rS([b]);const ee=[];let _e=b.startLineNumber;for(let Re=I;Re<z;Re++){const Ge=this._normalizedRanges[Re];Ge.startLineNumber>_e&&ee.push(new Jl(_e,Ge.startLineNumber)),_e=Ge.endLineNumberExclusive}return _e<b.endLineNumberExclusive&&ee.push(new Jl(_e,b.endLineNumberExclusive)),new rS(ee)}toString(){return this._normalizedRanges.map(b=>b.toString()).join(", ")}getIntersection(b){const I=[];let z=0,ee=0;for(;z<this._normalizedRanges.length&&ee<b._normalizedRanges.length;){const _e=this._normalizedRanges[z],Re=b._normalizedRanges[ee],Ge=_e.intersect(Re);Ge&&!Ge.isEmpty&&I.push(Ge),_e.endLineNumberExclusive<Re.endLineNumberExclusive?z++:ee++}return new rS(I)}getWithDelta(b){return new rS(this._normalizedRanges.map(I=>I.delta(b)))}}class L5e{constructor(b,I){this.range=b,this.text=I}}class vE{static inverse(b,I,z){const ee=[];let _e=1,Re=1;for(const at of b){const Ne=new vE(new Jl(_e,at.original.startLineNumber),new Jl(Re,at.modified.startLineNumber));Ne.modified.isEmpty||ee.push(Ne),_e=at.original.endLineNumberExclusive,Re=at.modified.endLineNumberExclusive}const Ge=new vE(new Jl(_e,I+1),new Jl(Re,z+1));return Ge.modified.isEmpty||ee.push(Ge),ee}static clip(b,I,z){const ee=[];for(const _e of b){const Re=_e.original.intersect(I),Ge=_e.modified.intersect(z);Re&&!Re.isEmpty&&Ge&&!Ge.isEmpty&&ee.push(new vE(Re,Ge))}return ee}constructor(b,I){this.original=b,this.modified=I}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new vE(this.modified,this.original)}join(b){return new vE(this.original.join(b.original),this.modified.join(b.modified))}toRangeMapping(){const b=this.original.toInclusiveRange(),I=this.modified.toInclusiveRange();if(b&&I)return new Dx(b,I);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new tS("not a valid diff");return new Dx(new Tl(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new Tl(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new Dx(new Tl(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new Tl(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}}class cA extends vE{static fromRangeMappings(b){const I=Jl.join(b.map(ee=>Jl.fromRangeInclusive(ee.originalRange))),z=Jl.join(b.map(ee=>Jl.fromRangeInclusive(ee.modifiedRange)));return new cA(I,z,b)}constructor(b,I,z){super(b,I),this.innerChanges=z}flip(){var b;return new cA(this.modified,this.original,(b=this.innerChanges)===null||b===void 0?void 0:b.map(I=>I.flip()))}withInnerChangesFromLineRanges(){return new cA(this.original,this.modified,[this.toRangeMapping()])}}class Dx{constructor(b,I){this.originalRange=b,this.modifiedRange=I}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Dx(this.modifiedRange,this.originalRange)}toTextEdit(b){const I=b.getValueOfRange(this.modifiedRange);return new L5e(this.originalRange,I)}}const k5e=3;class w5e{computeDiff(b,I,z){var ee;const Re=new F5e(b,I,{maxComputationTime:z.maxComputationTimeMs,shouldIgnoreTrimWhitespace:z.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),Ge=[];let at=null;for(const Ne of Re.changes){let Xe;Ne.originalEndLineNumber===0?Xe=new Jl(Ne.originalStartLineNumber+1,Ne.originalStartLineNumber+1):Xe=new Jl(Ne.originalStartLineNumber,Ne.originalEndLineNumber+1);let $t;Ne.modifiedEndLineNumber===0?$t=new Jl(Ne.modifiedStartLineNumber+1,Ne.modifiedStartLineNumber+1):$t=new Jl(Ne.modifiedStartLineNumber,Ne.modifiedEndLineNumber+1);let Ht=new cA(Xe,$t,(ee=Ne.charChanges)===null||ee===void 0?void 0:ee.map(pn=>new Dx(new Tl(pn.originalStartLineNumber,pn.originalStartColumn,pn.originalEndLineNumber,pn.originalEndColumn),new Tl(pn.modifiedStartLineNumber,pn.modifiedStartColumn,pn.modifiedEndLineNumber,pn.modifiedEndColumn))));at&&(at.modified.endLineNumberExclusive===Ht.modified.startLineNumber||at.original.endLineNumberExclusive===Ht.original.startLineNumber)&&(Ht=new cA(at.original.join(Ht.original),at.modified.join(Ht.modified),at.innerChanges&&Ht.innerChanges?at.innerChanges.concat(Ht.innerChanges):void 0),Ge.pop()),Ge.push(Ht),at=Ht}return kB(()=>X0e(Ge,(Ne,Xe)=>Xe.original.startLineNumber-Ne.original.endLineNumberExclusive===Xe.modified.startLineNumber-Ne.modified.endLineNumberExclusive&&Ne.original.endLineNumberExclusive<Xe.original.startLineNumber&&Ne.modified.endLineNumberExclusive<Xe.modified.startLineNumber)),new wB(Ge,[],Re.quitEarly)}}function Q0e(g,b,I,z){return new Tx(g,b,I).ComputeDiff(z)}let Z0e=class{constructor(b){const I=[],z=[];for(let ee=0,_e=b.length;ee<_e;ee++)I[ee]=Bte(b[ee],1),z[ee]=Gte(b[ee],1);this.lines=b,this._startColumns=I,this._endColumns=z}getElements(){const b=[];for(let I=0,z=this.lines.length;I<z;I++)b[I]=this.lines[I].substring(this._startColumns[I]-1,this._endColumns[I]-1);return b}getStrictElement(b){return this.lines[b]}getStartLineNumber(b){return b+1}getEndLineNumber(b){return b+1}createCharSequence(b,I,z){const ee=[],_e=[],Re=[];let Ge=0;for(let at=I;at<=z;at++){const Ne=this.lines[at],Xe=b?this._startColumns[at]:1,$t=b?this._endColumns[at]:Ne.length+1;for(let Ht=Xe;Ht<$t;Ht++)ee[Ge]=Ne.charCodeAt(Ht-1),_e[Ge]=at+1,Re[Ge]=Ht,Ge++;!b&&at<z&&(ee[Ge]=10,_e[Ge]=at+1,Re[Ge]=Ne.length+1,Ge++)}return new O5e(ee,_e,Re)}};class O5e{constructor(b,I,z){this._charCodes=b,this._lineNumbers=I,this._columns=z}toString(){return"["+this._charCodes.map((b,I)=>(b===10?"\\n":String.fromCharCode(b))+`-(${this._lineNumbers[I]},${this._columns[I]})`).join(", ")+"]"}_assertIndex(b,I){if(b<0||b>=I.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(b){return b>0&&b===this._lineNumbers.length?this.getEndLineNumber(b-1):(this._assertIndex(b,this._lineNumbers),this._lineNumbers[b])}getEndLineNumber(b){return b===-1?this.getStartLineNumber(b+1):(this._assertIndex(b,this._lineNumbers),this._charCodes[b]===10?this._lineNumbers[b]+1:this._lineNumbers[b])}getStartColumn(b){return b>0&&b===this._columns.length?this.getEndColumn(b-1):(this._assertIndex(b,this._columns),this._columns[b])}getEndColumn(b){return b===-1?this.getStartColumn(b+1):(this._assertIndex(b,this._columns),this._charCodes[b]===10?1:this._columns[b]+1)}}class x2{constructor(b,I,z,ee,_e,Re,Ge,at){this.originalStartLineNumber=b,this.originalStartColumn=I,this.originalEndLineNumber=z,this.originalEndColumn=ee,this.modifiedStartLineNumber=_e,this.modifiedStartColumn=Re,this.modifiedEndLineNumber=Ge,this.modifiedEndColumn=at}static createFromDiffChange(b,I,z){const ee=I.getStartLineNumber(b.originalStart),_e=I.getStartColumn(b.originalStart),Re=I.getEndLineNumber(b.originalStart+b.originalLength-1),Ge=I.getEndColumn(b.originalStart+b.originalLength-1),at=z.getStartLineNumber(b.modifiedStart),Ne=z.getStartColumn(b.modifiedStart),Xe=z.getEndLineNumber(b.modifiedStart+b.modifiedLength-1),$t=z.getEndColumn(b.modifiedStart+b.modifiedLength-1);return new x2(ee,_e,Re,Ge,at,Ne,Xe,$t)}}function W5e(g){if(g.length<=1)return g;const b=[g[0]];let I=b[0];for(let z=1,ee=g.length;z<ee;z++){const _e=g[z],Re=_e.originalStart-(I.originalStart+I.originalLength),Ge=_e.modifiedStart-(I.modifiedStart+I.modifiedLength);Math.min(Re,Ge)<k5e?(I.originalLength=_e.originalStart+_e.originalLength-I.originalStart,I.modifiedLength=_e.modifiedStart+_e.modifiedLength-I.modifiedStart):(b.push(_e),I=_e)}return b}class _6{constructor(b,I,z,ee,_e){this.originalStartLineNumber=b,this.originalEndLineNumber=I,this.modifiedStartLineNumber=z,this.modifiedEndLineNumber=ee,this.charChanges=_e}static createFromDiffResult(b,I,z,ee,_e,Re,Ge){let at,Ne,Xe,$t,Ht;if(I.originalLength===0?(at=z.getStartLineNumber(I.originalStart)-1,Ne=0):(at=z.getStartLineNumber(I.originalStart),Ne=z.getEndLineNumber(I.originalStart+I.originalLength-1)),I.modifiedLength===0?(Xe=ee.getStartLineNumber(I.modifiedStart)-1,$t=0):(Xe=ee.getStartLineNumber(I.modifiedStart),$t=ee.getEndLineNumber(I.modifiedStart+I.modifiedLength-1)),Re&&I.originalLength>0&&I.originalLength<20&&I.modifiedLength>0&&I.modifiedLength<20&&_e()){const pn=z.createCharSequence(b,I.originalStart,I.originalStart+I.originalLength-1),Pr=ee.createCharSequence(b,I.modifiedStart,I.modifiedStart+I.modifiedLength-1);if(pn.getElements().length>0&&Pr.getElements().length>0){let gi=Q0e(pn,Pr,_e,!0).changes;Ge&&(gi=W5e(gi)),Ht=[];for(let io=0,Jn=gi.length;io<Jn;io++)Ht.push(x2.createFromDiffChange(gi[io],pn,Pr))}}return new _6(at,Ne,Xe,$t,Ht)}}class F5e{constructor(b,I,z){this.shouldComputeCharChanges=z.shouldComputeCharChanges,this.shouldPostProcessCharChanges=z.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=z.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=z.shouldMakePrettyDiff,this.originalLines=b,this.modifiedLines=I,this.original=new Z0e(b),this.modified=new Z0e(I),this.continueLineDiff=eEe(z.maxComputationTime),this.continueCharDiff=eEe(z.maxComputationTime===0?0:Math.min(z.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const b=Q0e(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),I=b.changes,z=b.quitEarly;if(this.shouldIgnoreTrimWhitespace){const Ge=[];for(let at=0,Ne=I.length;at<Ne;at++)Ge.push(_6.createFromDiffResult(this.shouldIgnoreTrimWhitespace,I[at],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:z,changes:Ge}}const ee=[];let _e=0,Re=0;for(let Ge=-1,at=I.length;Ge<at;Ge++){const Ne=Ge+1<at?I[Ge+1]:null,Xe=Ne?Ne.originalStart:this.originalLines.length,$t=Ne?Ne.modifiedStart:this.modifiedLines.length;for(;_e<Xe&&Re<$t;){const Ht=this.originalLines[_e],pn=this.modifiedLines[Re];if(Ht!==pn){{let Pr=Bte(Ht,1),gi=Bte(pn,1);for(;Pr>1&&gi>1;){const io=Ht.charCodeAt(Pr-2),Jn=pn.charCodeAt(gi-2);if(io!==Jn)break;Pr--,gi--}(Pr>1||gi>1)&&this._pushTrimWhitespaceCharChange(ee,_e+1,1,Pr,Re+1,1,gi)}{let Pr=Gte(Ht,1),gi=Gte(pn,1);const io=Ht.length+1,Jn=pn.length+1;for(;Pr<io&&gi<Jn;){const In=Ht.charCodeAt(Pr-1),oi=Ht.charCodeAt(gi-1);if(In!==oi)break;Pr++,gi++}(Pr<io||gi<Jn)&&this._pushTrimWhitespaceCharChange(ee,_e+1,Pr,io,Re+1,gi,Jn)}}_e++,Re++}Ne&&(ee.push(_6.createFromDiffResult(this.shouldIgnoreTrimWhitespace,Ne,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),_e+=Ne.originalLength,Re+=Ne.modifiedLength)}return{quitEarly:z,changes:ee}}_pushTrimWhitespaceCharChange(b,I,z,ee,_e,Re,Ge){if(this._mergeTrimWhitespaceCharChange(b,I,z,ee,_e,Re,Ge))return;let at;this.shouldComputeCharChanges&&(at=[new x2(I,z,I,ee,_e,Re,_e,Ge)]),b.push(new _6(I,I,_e,_e,at))}_mergeTrimWhitespaceCharChange(b,I,z,ee,_e,Re,Ge){const at=b.length;if(at===0)return!1;const Ne=b[at-1];return Ne.originalEndLineNumber===0||Ne.modifiedEndLineNumber===0?!1:Ne.originalEndLineNumber===I&&Ne.modifiedEndLineNumber===_e?(this.shouldComputeCharChanges&&Ne.charChanges&&Ne.charChanges.push(new x2(I,z,I,ee,_e,Re,_e,Ge)),!0):Ne.originalEndLineNumber+1===I&&Ne.modifiedEndLineNumber+1===_e?(Ne.originalEndLineNumber=I,Ne.modifiedEndLineNumber=_e,this.shouldComputeCharChanges&&Ne.charChanges&&Ne.charChanges.push(new x2(I,z,I,ee,_e,Re,_e,Ge)),!0):!1}}function Bte(g,b){const I=p7e(g);return I===-1?b:I+1}function Gte(g,b){const I=f7e(g);return I===-1?b:I+2}function eEe(g){if(g===0)return()=>!0;const b=Date.now();return()=>Date.now()-b<g}class uA{static trivial(b,I){return new uA([new Yp(rc.ofLength(b.length),rc.ofLength(I.length))],!1)}static trivialTimedOut(b,I){return new uA([new Yp(rc.ofLength(b.length),rc.ofLength(I.length))],!0)}constructor(b,I){this.diffs=b,this.hitTimeout=I}}class Yp{static invert(b,I){const z=[];return K7e(b,(ee,_e)=>{z.push(Yp.fromOffsetPairs(ee?ee.getEndExclusives():yy.zero,_e?_e.getStarts():new yy(I,(ee?ee.seq2Range.endExclusive-ee.seq1Range.endExclusive:0)+I)))}),z}static fromOffsetPairs(b,I){return new Yp(new rc(b.offset1,I.offset1),new rc(b.offset2,I.offset2))}constructor(b,I){this.seq1Range=b,this.seq2Range=I}swap(){return new Yp(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(b){return new Yp(this.seq1Range.join(b.seq1Range),this.seq2Range.join(b.seq2Range))}delta(b){return b===0?this:new Yp(this.seq1Range.delta(b),this.seq2Range.delta(b))}deltaStart(b){return b===0?this:new Yp(this.seq1Range.deltaStart(b),this.seq2Range.deltaStart(b))}deltaEnd(b){return b===0?this:new Yp(this.seq1Range.deltaEnd(b),this.seq2Range.deltaEnd(b))}intersect(b){const I=this.seq1Range.intersect(b.seq1Range),z=this.seq2Range.intersect(b.seq2Range);if(!(!I||!z))return new Yp(I,z)}getStarts(){return new yy(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new yy(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class yy{constructor(b,I){this.offset1=b,this.offset2=I}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(b){return b===0?this:new yy(this.offset1+b,this.offset2+b)}equals(b){return this.offset1===b.offset1&&this.offset2===b.offset2}}yy.zero=new yy(0,0),yy.max=new yy(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class h6{isValid(){return!0}}h6.instance=new h6;class z5e{constructor(b){if(this.timeout=b,this.startTime=Date.now(),this.valid=!0,b<=0)throw new tS("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}}class Vte{constructor(b,I){this.width=b,this.height=I,this.array=[],this.array=new Array(b*I)}get(b,I){return this.array[b+I*this.width]}set(b,I,z){this.array[b+I*this.width]=z}}function jte(g){return g===32||g===9}class R2{static getKey(b){let I=this.chrKeys.get(b);return I===void 0&&(I=this.chrKeys.size,this.chrKeys.set(b,I)),I}constructor(b,I,z){this.range=b,this.lines=I,this.source=z,this.histogram=[];let ee=0;for(let _e=b.startLineNumber-1;_e<b.endLineNumberExclusive-1;_e++){const Re=I[_e];for(let at=0;at<Re.length;at++){ee++;const Ne=Re[at],Xe=R2.getKey(Ne);this.histogram[Xe]=(this.histogram[Xe]||0)+1}ee++;const Ge=R2.getKey(` +`);this.histogram[Ge]=(this.histogram[Ge]||0)+1}this.totalCount=ee}computeSimilarity(b){var I,z;let ee=0;const _e=Math.max(this.histogram.length,b.histogram.length);for(let Re=0;Re<_e;Re++)ee+=Math.abs(((I=this.histogram[Re])!==null&&I!==void 0?I:0)-((z=b.histogram[Re])!==null&&z!==void 0?z:0));return 1-ee/(this.totalCount+b.totalCount)}}R2.chrKeys=new Map;class B5e{compute(b,I,z=h6.instance,ee){if(b.length===0||I.length===0)return uA.trivial(b,I);const _e=new Vte(b.length,I.length),Re=new Vte(b.length,I.length),Ge=new Vte(b.length,I.length);for(let Pr=0;Pr<b.length;Pr++)for(let gi=0;gi<I.length;gi++){if(!z.isValid())return uA.trivialTimedOut(b,I);const io=Pr===0?0:_e.get(Pr-1,gi),Jn=gi===0?0:_e.get(Pr,gi-1);let In;b.getElement(Pr)===I.getElement(gi)?(Pr===0||gi===0?In=0:In=_e.get(Pr-1,gi-1),Pr>0&&gi>0&&Re.get(Pr-1,gi-1)===3&&(In+=Ge.get(Pr-1,gi-1)),In+=ee?ee(Pr,gi):1):In=-1;const oi=Math.max(io,Jn,In);if(oi===In){const mi=Pr>0&&gi>0?Ge.get(Pr-1,gi-1):0;Ge.set(Pr,gi,mi+1),Re.set(Pr,gi,3)}else oi===io?(Ge.set(Pr,gi,0),Re.set(Pr,gi,1)):oi===Jn&&(Ge.set(Pr,gi,0),Re.set(Pr,gi,2));_e.set(Pr,gi,oi)}const at=[];let Ne=b.length,Xe=I.length;function $t(Pr,gi){(Pr+1!==Ne||gi+1!==Xe)&&at.push(new Yp(new rc(Pr+1,Ne),new rc(gi+1,Xe))),Ne=Pr,Xe=gi}let Ht=b.length-1,pn=I.length-1;for(;Ht>=0&&pn>=0;)Re.get(Ht,pn)===3?($t(Ht,pn),Ht--,pn--):Re.get(Ht,pn)===1?Ht--:pn--;return $t(-1,-1),at.reverse(),new uA(at,!1)}}class tEe{compute(b,I,z=h6.instance){if(b.length===0||I.length===0)return uA.trivial(b,I);const ee=b,_e=I;function Re(gi,io){for(;gi<ee.length&&io<_e.length&&ee.getElement(gi)===_e.getElement(io);)gi++,io++;return gi}let Ge=0;const at=new G5e;at.set(0,Re(0,0));const Ne=new V5e;Ne.set(0,at.get(0)===0?null:new nEe(null,0,0,at.get(0)));let Xe=0;e:for(;;){if(Ge++,!z.isValid())return uA.trivialTimedOut(ee,_e);const gi=-Math.min(Ge,_e.length+Ge%2),io=Math.min(Ge,ee.length+Ge%2);for(Xe=gi;Xe<=io;Xe+=2){const Jn=Xe===io?-1:at.get(Xe+1),In=Xe===gi?-1:at.get(Xe-1)+1,oi=Math.min(Math.max(Jn,In),ee.length),mi=oi-Xe;if(oi>ee.length||mi>_e.length)continue;const Yi=Re(oi,mi);at.set(Xe,Yi);const ja=oi===Jn?Ne.get(Xe+1):Ne.get(Xe-1);if(Ne.set(Xe,Yi!==oi?new nEe(ja,oi,mi,Yi-oi):ja),at.get(Xe)===ee.length&&at.get(Xe)-Xe===_e.length)break e}}let $t=Ne.get(Xe);const Ht=[];let pn=ee.length,Pr=_e.length;for(;;){const gi=$t?$t.x+$t.length:0,io=$t?$t.y+$t.length:0;if((gi!==pn||io!==Pr)&&Ht.push(new Yp(new rc(gi,pn),new rc(io,Pr))),!$t)break;pn=$t.x,Pr=$t.y,$t=$t.prev}return Ht.reverse(),new uA(Ht,!1)}}class nEe{constructor(b,I,z,ee){this.prev=b,this.x=I,this.y=z,this.length=ee}}class G5e{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(b){return b<0?(b=-b-1,this.negativeArr[b]):this.positiveArr[b]}set(b,I){if(b<0){if(b=-b-1,b>=this.negativeArr.length){const z=this.negativeArr;this.negativeArr=new Int32Array(z.length*2),this.negativeArr.set(z)}this.negativeArr[b]=I}else{if(b>=this.positiveArr.length){const z=this.positiveArr;this.positiveArr=new Int32Array(z.length*2),this.positiveArr.set(z)}this.positiveArr[b]=I}}}class V5e{constructor(){this.positiveArr=[],this.negativeArr=[]}get(b){return b<0?(b=-b-1,this.negativeArr[b]):this.positiveArr[b]}set(b,I){b<0?(b=-b-1,this.negativeArr[b]=I):this.positiveArr[b]=I}}class OB{constructor(b,I,z){this.lines=b,this.considerWhitespaceChanges=z,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let ee=!1;I.start>0&&I.endExclusive>=b.length&&(I=new rc(I.start-1,I.endExclusive),ee=!0),this.lineRange=I,this.firstCharOffsetByLine[0]=0;for(let _e=this.lineRange.start;_e<this.lineRange.endExclusive;_e++){let Re=b[_e],Ge=0;if(ee)Ge=Re.length,Re="",ee=!1;else if(!z){const at=Re.trimStart();Ge=Re.length-at.length,Re=at.trimEnd()}this.additionalOffsetByLine.push(Ge);for(let at=0;at<Re.length;at++)this.elements.push(Re.charCodeAt(at));_e<b.length-1&&(this.elements.push(10),this.firstCharOffsetByLine[_e-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new rc(0,this.length))}getText(b){return this.elements.slice(b.start,b.endExclusive).map(I=>String.fromCharCode(I)).join("")}getElement(b){return this.elements[b]}get length(){return this.elements.length}getBoundaryScore(b){const I=iEe(b>0?this.elements[b-1]:-1),z=iEe(b<this.elements.length?this.elements[b]:-1);if(I===7&&z===8)return 0;if(I===8)return 150;let ee=0;return I!==z&&(ee+=10,I===0&&z===1&&(ee+=1)),ee+=rEe(I),ee+=rEe(z),ee}translateOffset(b){if(this.lineRange.isEmpty)return new oh(this.lineRange.start+1,1);const I=f6(this.firstCharOffsetByLine,z=>z<=b);return new oh(this.lineRange.start+I+1,b-this.firstCharOffsetByLine[I]+this.additionalOffsetByLine[I]+1)}translateRange(b){return Tl.fromPositions(this.translateOffset(b.start),this.translateOffset(b.endExclusive))}findWordContaining(b){if(b<0||b>=this.elements.length||!Ute(this.elements[b]))return;let I=b;for(;I>0&&Ute(this.elements[I-1]);)I--;let z=b;for(;z<this.elements.length&&Ute(this.elements[z]);)z++;return new rc(I,z)}countLinesIn(b){return this.translateOffset(b.endExclusive).lineNumber-this.translateOffset(b.start).lineNumber}isStronglyEqual(b,I){return this.elements[b]===this.elements[I]}extendToFullLines(b){var I,z;const ee=(I=I2(this.firstCharOffsetByLine,Re=>Re<=b.start))!==null&&I!==void 0?I:0,_e=(z=M5e(this.firstCharOffsetByLine,Re=>b.endExclusive<=Re))!==null&&z!==void 0?z:this.elements.length;return new rc(ee,_e)}}function Ute(g){return g>=97&&g<=122||g>=65&&g<=90||g>=48&&g<=57}const j5e={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function rEe(g){return j5e[g]}function iEe(g){return g===10?8:g===13?7:jte(g)?6:g>=97&&g<=122?0:g>=65&&g<=90?1:g>=48&&g<=57?2:g===-1?3:g===44||g===59?5:4}function U5e(g,b,I,z,ee,_e){let{moves:Re,excludedChanges:Ge}=q5e(g,b,I,_e);if(!_e.isValid())return[];const at=g.filter(Xe=>!Ge.has(Xe)),Ne=J5e(at,z,ee,b,I,_e);return Y7e(Re,Ne),Re=K5e(Re),Re=Re.filter(Xe=>{const $t=Xe.original.toOffsetRange().slice(b).map(pn=>pn.trim());return $t.join(` +`).length>=15&&H5e($t,pn=>pn.length>=2)>=2}),Re=X5e(g,Re),Re}function H5e(g,b){let I=0;for(const z of g)b(z)&&I++;return I}function q5e(g,b,I,z){const ee=[],_e=g.filter(at=>at.modified.isEmpty&&at.original.length>=3).map(at=>new R2(at.original,b,at)),Re=new Set(g.filter(at=>at.original.isEmpty&&at.modified.length>=3).map(at=>new R2(at.modified,I,at))),Ge=new Set;for(const at of _e){let Ne=-1,Xe;for(const $t of Re){const Ht=at.computeSimilarity($t);Ht>Ne&&(Ne=Ht,Xe=$t)}if(Ne>.9&&Xe&&(Re.delete(Xe),ee.push(new vE(at.range,Xe.range)),Ge.add(at.source),Ge.add(Xe.source)),!z.isValid())return{moves:ee,excludedChanges:Ge}}return{moves:ee,excludedChanges:Ge}}function J5e(g,b,I,z,ee,_e){const Re=[],Ge=new T5e;for(const Ht of g)for(let pn=Ht.original.startLineNumber;pn<Ht.original.endLineNumberExclusive-2;pn++){const Pr=`${b[pn-1]}:${b[pn+1-1]}:${b[pn+2-1]}`;Ge.add(Pr,{range:new Jl(pn,pn+3)})}const at=[];g.sort(DB(Ht=>Ht.modified.startLineNumber,NB));for(const Ht of g){let pn=[];for(let Pr=Ht.modified.startLineNumber;Pr<Ht.modified.endLineNumberExclusive-2;Pr++){const gi=`${I[Pr-1]}:${I[Pr+1-1]}:${I[Pr+2-1]}`,io=new Jl(Pr,Pr+3),Jn=[];Ge.forEach(gi,({range:In})=>{for(const mi of pn)if(mi.originalLineRange.endLineNumberExclusive+1===In.endLineNumberExclusive&&mi.modifiedLineRange.endLineNumberExclusive+1===io.endLineNumberExclusive){mi.originalLineRange=new Jl(mi.originalLineRange.startLineNumber,In.endLineNumberExclusive),mi.modifiedLineRange=new Jl(mi.modifiedLineRange.startLineNumber,io.endLineNumberExclusive),Jn.push(mi);return}const oi={modifiedLineRange:io,originalLineRange:In};at.push(oi),Jn.push(oi)}),pn=Jn}if(!_e.isValid())return[]}at.sort($7e(DB(Ht=>Ht.modifiedLineRange.length,NB)));const Ne=new rS,Xe=new rS;for(const Ht of at){const pn=Ht.modifiedLineRange.startLineNumber-Ht.originalLineRange.startLineNumber,Pr=Ne.subtractFrom(Ht.modifiedLineRange),gi=Xe.subtractFrom(Ht.originalLineRange).getWithDelta(pn),io=Pr.getIntersection(gi);for(const Jn of io.ranges){if(Jn.length<3)continue;const In=Jn,oi=Jn.delta(-pn);Re.push(new vE(oi,In)),Ne.addRange(In),Xe.addRange(oi)}}Re.sort(DB(Ht=>Ht.original.startLineNumber,NB));const $t=new m6(g);for(let Ht=0;Ht<Re.length;Ht++){const pn=Re[Ht],Pr=$t.findLastMonotonous(ja=>ja.original.startLineNumber<=pn.original.startLineNumber),gi=I2(g,ja=>ja.modified.startLineNumber<=pn.modified.startLineNumber),io=Math.max(pn.original.startLineNumber-Pr.original.startLineNumber,pn.modified.startLineNumber-gi.modified.startLineNumber),Jn=$t.findLastMonotonous(ja=>ja.original.startLineNumber<pn.original.endLineNumberExclusive),In=I2(g,ja=>ja.modified.startLineNumber<pn.modified.endLineNumberExclusive),oi=Math.max(Jn.original.endLineNumberExclusive-pn.original.endLineNumberExclusive,In.modified.endLineNumberExclusive-pn.modified.endLineNumberExclusive);let mi;for(mi=0;mi<io;mi++){const ja=pn.original.startLineNumber-mi-1,Or=pn.modified.startLineNumber-mi-1;if(ja>z.length||Or>ee.length||Ne.contains(Or)||Xe.contains(ja)||!oEe(z[ja-1],ee[Or-1],_e))break}mi>0&&(Xe.addRange(new Jl(pn.original.startLineNumber-mi,pn.original.startLineNumber)),Ne.addRange(new Jl(pn.modified.startLineNumber-mi,pn.modified.startLineNumber)));let Yi;for(Yi=0;Yi<oi;Yi++){const ja=pn.original.endLineNumberExclusive+Yi,Or=pn.modified.endLineNumberExclusive+Yi;if(ja>z.length||Or>ee.length||Ne.contains(Or)||Xe.contains(ja)||!oEe(z[ja-1],ee[Or-1],_e))break}Yi>0&&(Xe.addRange(new Jl(pn.original.endLineNumberExclusive,pn.original.endLineNumberExclusive+Yi)),Ne.addRange(new Jl(pn.modified.endLineNumberExclusive,pn.modified.endLineNumberExclusive+Yi))),(mi>0||Yi>0)&&(Re[Ht]=new vE(new Jl(pn.original.startLineNumber-mi,pn.original.endLineNumberExclusive+Yi),new Jl(pn.modified.startLineNumber-mi,pn.modified.endLineNumberExclusive+Yi)))}return Re}function oEe(g,b,I){if(g.trim()===b.trim())return!0;if(g.length>300&&b.length>300)return!1;const ee=new tEe().compute(new OB([g],new rc(0,1),!1),new OB([b],new rc(0,1),!1),I);let _e=0;const Re=Yp.invert(ee.diffs,g.length);for(const Xe of Re)Xe.seq1Range.forEach($t=>{jte(g.charCodeAt($t))||_e++});function Ge(Xe){let $t=0;for(let Ht=0;Ht<g.length;Ht++)jte(Xe.charCodeAt(Ht))||$t++;return $t}const at=Ge(g.length>b.length?g:b);return _e/at>.6&&at>10}function K5e(g){if(g.length===0)return g;g.sort(DB(I=>I.original.startLineNumber,NB));const b=[g[0]];for(let I=1;I<g.length;I++){const z=b[b.length-1],ee=g[I],_e=ee.original.startLineNumber-z.original.endLineNumberExclusive,Re=ee.modified.startLineNumber-z.modified.endLineNumberExclusive;if(_e>=0&&Re>=0&&_e+Re<=2){b[b.length-1]=z.join(ee);continue}b.push(ee)}return b}function X5e(g,b){const I=new m6(g);return b=b.filter(z=>{const ee=I.findLastMonotonous(Ge=>Ge.original.startLineNumber<z.original.endLineNumberExclusive)||new vE(new Jl(1,1),new Jl(1,1)),_e=I2(g,Ge=>Ge.modified.startLineNumber<z.modified.endLineNumberExclusive);return ee!==_e}),b}function aEe(g,b,I){let z=I;return z=sEe(g,b,z),z=sEe(g,b,z),z=Y5e(g,b,z),z}function sEe(g,b,I){if(I.length===0)return I;const z=[];z.push(I[0]);for(let _e=1;_e<I.length;_e++){const Re=z[z.length-1];let Ge=I[_e];if(Ge.seq1Range.isEmpty||Ge.seq2Range.isEmpty){const at=Ge.seq1Range.start-Re.seq1Range.endExclusive;let Ne;for(Ne=1;Ne<=at&&!(g.getElement(Ge.seq1Range.start-Ne)!==g.getElement(Ge.seq1Range.endExclusive-Ne)||b.getElement(Ge.seq2Range.start-Ne)!==b.getElement(Ge.seq2Range.endExclusive-Ne));Ne++);if(Ne--,Ne===at){z[z.length-1]=new Yp(new rc(Re.seq1Range.start,Ge.seq1Range.endExclusive-at),new rc(Re.seq2Range.start,Ge.seq2Range.endExclusive-at));continue}Ge=Ge.delta(-Ne)}z.push(Ge)}const ee=[];for(let _e=0;_e<z.length-1;_e++){const Re=z[_e+1];let Ge=z[_e];if(Ge.seq1Range.isEmpty||Ge.seq2Range.isEmpty){const at=Re.seq1Range.start-Ge.seq1Range.endExclusive;let Ne;for(Ne=0;Ne<at&&!(!g.isStronglyEqual(Ge.seq1Range.start+Ne,Ge.seq1Range.endExclusive+Ne)||!b.isStronglyEqual(Ge.seq2Range.start+Ne,Ge.seq2Range.endExclusive+Ne));Ne++);if(Ne===at){z[_e+1]=new Yp(new rc(Ge.seq1Range.start+at,Re.seq1Range.endExclusive),new rc(Ge.seq2Range.start+at,Re.seq2Range.endExclusive));continue}Ne>0&&(Ge=Ge.delta(Ne))}ee.push(Ge)}return z.length>0&&ee.push(z[z.length-1]),ee}function Y5e(g,b,I){if(!g.getBoundaryScore||!b.getBoundaryScore)return I;for(let z=0;z<I.length;z++){const ee=z>0?I[z-1]:void 0,_e=I[z],Re=z+1<I.length?I[z+1]:void 0,Ge=new rc(ee?ee.seq1Range.endExclusive+1:0,Re?Re.seq1Range.start-1:g.length),at=new rc(ee?ee.seq2Range.endExclusive+1:0,Re?Re.seq2Range.start-1:b.length);_e.seq1Range.isEmpty?I[z]=lEe(_e,g,b,Ge,at):_e.seq2Range.isEmpty&&(I[z]=lEe(_e.swap(),b,g,at,Ge).swap())}return I}function lEe(g,b,I,z,ee){let Re=1;for(;g.seq1Range.start-Re>=z.start&&g.seq2Range.start-Re>=ee.start&&I.isStronglyEqual(g.seq2Range.start-Re,g.seq2Range.endExclusive-Re)&&Re<100;)Re++;Re--;let Ge=0;for(;g.seq1Range.start+Ge<z.endExclusive&&g.seq2Range.endExclusive+Ge<ee.endExclusive&&I.isStronglyEqual(g.seq2Range.start+Ge,g.seq2Range.endExclusive+Ge)&&Ge<100;)Ge++;if(Re===0&&Ge===0)return g;let at=0,Ne=-1;for(let Xe=-Re;Xe<=Ge;Xe++){const $t=g.seq2Range.start+Xe,Ht=g.seq2Range.endExclusive+Xe,pn=g.seq1Range.start+Xe,Pr=b.getBoundaryScore(pn)+I.getBoundaryScore($t)+I.getBoundaryScore(Ht);Pr>Ne&&(Ne=Pr,at=Xe)}return g.delta(at)}function $5e(g,b,I){const z=[];for(const ee of I){const _e=z[z.length-1];if(!_e){z.push(ee);continue}ee.seq1Range.start-_e.seq1Range.endExclusive<=2||ee.seq2Range.start-_e.seq2Range.endExclusive<=2?z[z.length-1]=new Yp(_e.seq1Range.join(ee.seq1Range),_e.seq2Range.join(ee.seq2Range)):z.push(ee)}return z}function Q5e(g,b,I){const z=Yp.invert(I,g.length),ee=[];let _e=new yy(0,0);function Re(at,Ne){if(at.offset1<_e.offset1||at.offset2<_e.offset2)return;const Xe=g.findWordContaining(at.offset1),$t=b.findWordContaining(at.offset2);if(!Xe||!$t)return;let Ht=new Yp(Xe,$t);const pn=Ht.intersect(Ne);let Pr=pn.seq1Range.length,gi=pn.seq2Range.length;for(;z.length>0;){const io=z[0];if(!(io.seq1Range.intersects(Ht.seq1Range)||io.seq2Range.intersects(Ht.seq2Range)))break;const In=g.findWordContaining(io.seq1Range.start),oi=b.findWordContaining(io.seq2Range.start),mi=new Yp(In,oi),Yi=mi.intersect(io);if(Pr+=Yi.seq1Range.length,gi+=Yi.seq2Range.length,Ht=Ht.join(mi),Ht.seq1Range.endExclusive>=io.seq1Range.endExclusive)z.shift();else break}Pr+gi<(Ht.seq1Range.length+Ht.seq2Range.length)*2/3&&ee.push(Ht),_e=Ht.getEndExclusives()}for(;z.length>0;){const at=z.shift();at.seq1Range.isEmpty||(Re(at.getStarts(),at),Re(at.getEndExclusives().delta(-1),at))}return Z5e(I,ee)}function Z5e(g,b){const I=[];for(;g.length>0||b.length>0;){const z=g[0],ee=b[0];let _e;z&&(!ee||z.seq1Range.start<ee.seq1Range.start)?_e=g.shift():_e=b.shift(),I.length>0&&I[I.length-1].seq1Range.endExclusive>=_e.seq1Range.start?I[I.length-1]=I[I.length-1].join(_e):I.push(_e)}return I}function eze(g,b,I){let z=I;if(z.length===0)return z;let ee=0,_e;do{_e=!1;const Re=[z[0]];for(let Ge=1;Ge<z.length;Ge++){let Xe=function(Ht,pn){const Pr=new rc(Ne.seq1Range.endExclusive,at.seq1Range.start);return g.getText(Pr).replace(/\s/g,"").length<=4&&(Ht.seq1Range.length+Ht.seq2Range.length>5||pn.seq1Range.length+pn.seq2Range.length>5)};const at=z[Ge],Ne=Re[Re.length-1];Xe(Ne,at)?(_e=!0,Re[Re.length-1]=Re[Re.length-1].join(at)):Re.push(at)}z=Re}while(ee++<10&&_e);return z}function tze(g,b,I){let z=I;if(z.length===0)return z;let ee=0,_e;do{_e=!1;const Ge=[z[0]];for(let at=1;at<z.length;at++){let $t=function(pn,Pr){const gi=new rc(Xe.seq1Range.endExclusive,Ne.seq1Range.start);if(g.countLinesIn(gi)>5||gi.length>500)return!1;const Jn=g.getText(gi).trim();if(Jn.length>20||Jn.split(/\r\n|\r|\n/).length>1)return!1;const In=g.countLinesIn(pn.seq1Range),oi=pn.seq1Range.length,mi=b.countLinesIn(pn.seq2Range),Yi=pn.seq2Range.length,ja=g.countLinesIn(Pr.seq1Range),Or=Pr.seq1Range.length,Ba=b.countLinesIn(Pr.seq2Range),Jc=Pr.seq2Range.length,ou=2*40+50;function mn(li){return Math.min(li,ou)}return Math.pow(Math.pow(mn(In*40+oi),1.5)+Math.pow(mn(mi*40+Yi),1.5),1.5)+Math.pow(Math.pow(mn(ja*40+Or),1.5)+Math.pow(mn(Ba*40+Jc),1.5),1.5)>(ou**1.5)**1.5*1.3};const Ne=z[at],Xe=Ge[Ge.length-1];$t(Xe,Ne)?(_e=!0,Ge[Ge.length-1]=Ge[Ge.length-1].join(Ne)):Ge.push(Ne)}z=Ge}while(ee++<10&&_e);const Re=[];return X7e(z,(Ge,at,Ne)=>{let Xe=at;function $t(Jn){return Jn.length>0&&Jn.trim().length<=3&&at.seq1Range.length+at.seq2Range.length>100}const Ht=g.extendToFullLines(at.seq1Range),pn=g.getText(new rc(Ht.start,at.seq1Range.start));$t(pn)&&(Xe=Xe.deltaStart(-pn.length));const Pr=g.getText(new rc(at.seq1Range.endExclusive,Ht.endExclusive));$t(Pr)&&(Xe=Xe.deltaEnd(Pr.length));const gi=Yp.fromOffsetPairs(Ge?Ge.getEndExclusives():yy.zero,Ne?Ne.getStarts():yy.max),io=Xe.intersect(gi);Re.length>0&&io.getStarts().equals(Re[Re.length-1].getEndExclusives())?Re[Re.length-1]=Re[Re.length-1].join(io):Re.push(io)}),Re}class cEe{constructor(b,I){this.trimmedHash=b,this.lines=I}getElement(b){return this.trimmedHash[b]}get length(){return this.trimmedHash.length}getBoundaryScore(b){const I=b===0?0:uEe(this.lines[b-1]),z=b===this.lines.length?0:uEe(this.lines[b]);return 1e3-(I+z)}getText(b){return this.lines.slice(b.start,b.endExclusive).join(` +`)}isStronglyEqual(b,I){return this.lines[b]===this.lines[I]}}function uEe(g){let b=0;for(;b<g.length&&(g.charCodeAt(b)===32||g.charCodeAt(b)===9);)b++;return b}class nze{constructor(){this.dynamicProgrammingDiffing=new B5e,this.myersDiffingAlgorithm=new tEe}computeDiff(b,I,z){if(b.length<=1&&q7e(b,I,(Yi,ja)=>Yi===ja))return new wB([],[],!1);if(b.length===1&&b[0].length===0||I.length===1&&I[0].length===0)return new wB([new cA(new Jl(1,b.length+1),new Jl(1,I.length+1),[new Dx(new Tl(1,1,b.length,b[b.length-1].length+1),new Tl(1,1,I.length,I[I.length-1].length+1))])],[],!1);const ee=z.maxComputationTimeMs===0?h6.instance:new z5e(z.maxComputationTimeMs),_e=!z.ignoreTrimWhitespace,Re=new Map;function Ge(Yi){let ja=Re.get(Yi);return ja===void 0&&(ja=Re.size,Re.set(Yi,ja)),ja}const at=b.map(Yi=>Ge(Yi.trim())),Ne=I.map(Yi=>Ge(Yi.trim())),Xe=new cEe(at,b),$t=new cEe(Ne,I),Ht=Xe.length+$t.length<1700?this.dynamicProgrammingDiffing.compute(Xe,$t,ee,(Yi,ja)=>b[Yi]===I[ja]?I[ja].length===0?.1:1+Math.log(1+I[ja].length):.99):this.myersDiffingAlgorithm.compute(Xe,$t,ee);let pn=Ht.diffs,Pr=Ht.hitTimeout;pn=aEe(Xe,$t,pn),pn=eze(Xe,$t,pn);const gi=[],io=Yi=>{if(_e)for(let ja=0;ja<Yi;ja++){const Or=Jn+ja,Ba=In+ja;if(b[Or]!==I[Ba]){const Jc=this.refineDiff(b,I,new Yp(new rc(Or,Or+1),new rc(Ba,Ba+1)),ee,_e);for(const ou of Jc.mappings)gi.push(ou);Jc.hitTimeout&&(Pr=!0)}}};let Jn=0,In=0;for(const Yi of pn){kB(()=>Yi.seq1Range.start-Jn===Yi.seq2Range.start-In);const ja=Yi.seq1Range.start-Jn;io(ja),Jn=Yi.seq1Range.endExclusive,In=Yi.seq2Range.endExclusive;const Or=this.refineDiff(b,I,Yi,ee,_e);Or.hitTimeout&&(Pr=!0);for(const Ba of Or.mappings)gi.push(Ba)}io(b.length-Jn);const oi=dEe(gi,b,I);let mi=[];return z.computeMoves&&(mi=this.computeMoves(oi,b,I,at,Ne,ee,_e)),kB(()=>{function Yi(Or,Ba){if(Or.lineNumber<1||Or.lineNumber>Ba.length)return!1;const Jc=Ba[Or.lineNumber-1];return!(Or.column<1||Or.column>Jc.length+1)}function ja(Or,Ba){return!(Or.startLineNumber<1||Or.startLineNumber>Ba.length+1||Or.endLineNumberExclusive<1||Or.endLineNumberExclusive>Ba.length+1)}for(const Or of oi){if(!Or.innerChanges)return!1;for(const Ba of Or.innerChanges)if(!(Yi(Ba.modifiedRange.getStartPosition(),I)&&Yi(Ba.modifiedRange.getEndPosition(),I)&&Yi(Ba.originalRange.getStartPosition(),b)&&Yi(Ba.originalRange.getEndPosition(),b)))return!1;if(!ja(Or.modified,I)||!ja(Or.original,b))return!1}return!0}),new wB(oi,mi,Pr)}computeMoves(b,I,z,ee,_e,Re,Ge){return U5e(b,I,z,ee,_e,Re).map(Xe=>{const $t=this.refineDiff(I,z,new Yp(Xe.original.toOffsetRange(),Xe.modified.toOffsetRange()),Re,Ge),Ht=dEe($t.mappings,I,z,!0);return new P5e(Xe,Ht)})}refineDiff(b,I,z,ee,_e){const Re=new OB(b,z.seq1Range,_e),Ge=new OB(I,z.seq2Range,_e),at=Re.length+Ge.length<500?this.dynamicProgrammingDiffing.compute(Re,Ge,ee):this.myersDiffingAlgorithm.compute(Re,Ge,ee);let Ne=at.diffs;return Ne=aEe(Re,Ge,Ne),Ne=Q5e(Re,Ge,Ne),Ne=$5e(Re,Ge,Ne),Ne=tze(Re,Ge,Ne),{mappings:Ne.map($t=>new Dx(Re.translateRange($t.seq1Range),Ge.translateRange($t.seq2Range))),hitTimeout:at.hitTimeout}}}function dEe(g,b,I,z=!1){const ee=[];for(const _e of J7e(g.map(Re=>rze(Re,b,I)),(Re,Ge)=>Re.original.overlapOrTouch(Ge.original)||Re.modified.overlapOrTouch(Ge.modified))){const Re=_e[0],Ge=_e[_e.length-1];ee.push(new cA(Re.original.join(Ge.original),Re.modified.join(Ge.modified),_e.map(at=>at.innerChanges[0])))}return kB(()=>!z&&ee.length>0&&(ee[0].modified.startLineNumber!==ee[0].original.startLineNumber||I.length-ee[ee.length-1].modified.endLineNumberExclusive!==b.length-ee[ee.length-1].original.endLineNumberExclusive)?!1:X0e(ee,(_e,Re)=>Re.original.startLineNumber-_e.original.endLineNumberExclusive===Re.modified.startLineNumber-_e.modified.endLineNumberExclusive&&_e.original.endLineNumberExclusive<Re.original.startLineNumber&&_e.modified.endLineNumberExclusive<Re.modified.startLineNumber)),ee}function rze(g,b,I){let z=0,ee=0;g.modifiedRange.endColumn===1&&g.originalRange.endColumn===1&&g.originalRange.startLineNumber+z<=g.originalRange.endLineNumber&&g.modifiedRange.startLineNumber+z<=g.modifiedRange.endLineNumber&&(ee=-1),g.modifiedRange.startColumn-1>=I[g.modifiedRange.startLineNumber-1].length&&g.originalRange.startColumn-1>=b[g.originalRange.startLineNumber-1].length&&g.originalRange.startLineNumber<=g.originalRange.endLineNumber+ee&&g.modifiedRange.startLineNumber<=g.modifiedRange.endLineNumber+ee&&(z=1);const _e=new Jl(g.originalRange.startLineNumber+z,g.originalRange.endLineNumber+1+ee),Re=new Jl(g.modifiedRange.startLineNumber+z,g.modifiedRange.endLineNumber+1+ee);return new cA(_e,Re,[g])}const pEe={getLegacy:()=>new w5e,getDefault:()=>new nze};function Nx(g,b){const I=Math.pow(10,b);return Math.round(g*I)/I}class Um{constructor(b,I,z,ee=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,b))|0,this.g=Math.min(255,Math.max(0,I))|0,this.b=Math.min(255,Math.max(0,z))|0,this.a=Nx(Math.max(Math.min(1,ee),0),3)}static equals(b,I){return b.r===I.r&&b.g===I.g&&b.b===I.b&&b.a===I.a}}class qb{constructor(b,I,z,ee){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,b),0)|0,this.s=Nx(Math.max(Math.min(1,I),0),3),this.l=Nx(Math.max(Math.min(1,z),0),3),this.a=Nx(Math.max(Math.min(1,ee),0),3)}static equals(b,I){return b.h===I.h&&b.s===I.s&&b.l===I.l&&b.a===I.a}static fromRGBA(b){const I=b.r/255,z=b.g/255,ee=b.b/255,_e=b.a,Re=Math.max(I,z,ee),Ge=Math.min(I,z,ee);let at=0,Ne=0;const Xe=(Ge+Re)/2,$t=Re-Ge;if($t>0){switch(Ne=Math.min(Xe<=.5?$t/(2*Xe):$t/(2-2*Xe),1),Re){case I:at=(z-ee)/$t+(z<ee?6:0);break;case z:at=(ee-I)/$t+2;break;case ee:at=(I-z)/$t+4;break}at*=60,at=Math.round(at)}return new qb(at,Ne,Xe,_e)}static _hue2rgb(b,I,z){return z<0&&(z+=1),z>1&&(z-=1),z<1/6?b+(I-b)*6*z:z<1/2?I:z<2/3?b+(I-b)*(2/3-z)*6:b}static toRGBA(b){const I=b.h/360,{s:z,l:ee,a:_e}=b;let Re,Ge,at;if(z===0)Re=Ge=at=ee;else{const Ne=ee<.5?ee*(1+z):ee+z-ee*z,Xe=2*ee-Ne;Re=qb._hue2rgb(Xe,Ne,I+1/3),Ge=qb._hue2rgb(Xe,Ne,I),at=qb._hue2rgb(Xe,Ne,I-1/3)}return new Um(Math.round(Re*255),Math.round(Ge*255),Math.round(at*255),_e)}}class D2{constructor(b,I,z,ee){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,b),0)|0,this.s=Nx(Math.max(Math.min(1,I),0),3),this.v=Nx(Math.max(Math.min(1,z),0),3),this.a=Nx(Math.max(Math.min(1,ee),0),3)}static equals(b,I){return b.h===I.h&&b.s===I.s&&b.v===I.v&&b.a===I.a}static fromRGBA(b){const I=b.r/255,z=b.g/255,ee=b.b/255,_e=Math.max(I,z,ee),Re=Math.min(I,z,ee),Ge=_e-Re,at=_e===0?0:Ge/_e;let Ne;return Ge===0?Ne=0:_e===I?Ne=((z-ee)/Ge%6+6)%6:_e===z?Ne=(ee-I)/Ge+2:Ne=(I-z)/Ge+4,new D2(Math.round(Ne*60),at,_e,b.a)}static toRGBA(b){const{h:I,s:z,v:ee,a:_e}=b,Re=ee*z,Ge=Re*(1-Math.abs(I/60%2-1)),at=ee-Re;let[Ne,Xe,$t]=[0,0,0];return I<60?(Ne=Re,Xe=Ge):I<120?(Ne=Ge,Xe=Re):I<180?(Xe=Re,$t=Ge):I<240?(Xe=Ge,$t=Re):I<300?(Ne=Ge,$t=Re):I<=360&&(Ne=Re,$t=Ge),Ne=Math.round((Ne+at)*255),Xe=Math.round((Xe+at)*255),$t=Math.round(($t+at)*255),new Um(Ne,Xe,$t,_e)}}class hu{static fromHex(b){return hu.Format.CSS.parseHex(b)||hu.red}static equals(b,I){return!b&&!I?!0:!b||!I?!1:b.equals(I)}get hsla(){return this._hsla?this._hsla:qb.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:D2.fromRGBA(this.rgba)}constructor(b){if(b)if(b instanceof Um)this.rgba=b;else if(b instanceof qb)this._hsla=b,this.rgba=qb.toRGBA(b);else if(b instanceof D2)this._hsva=b,this.rgba=D2.toRGBA(b);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(b){return!!b&&Um.equals(this.rgba,b.rgba)&&qb.equals(this.hsla,b.hsla)&&D2.equals(this.hsva,b.hsva)}getRelativeLuminance(){const b=hu._relativeLuminanceForComponent(this.rgba.r),I=hu._relativeLuminanceForComponent(this.rgba.g),z=hu._relativeLuminanceForComponent(this.rgba.b),ee=.2126*b+.7152*I+.0722*z;return Nx(ee,4)}static _relativeLuminanceForComponent(b){const I=b/255;return I<=.03928?I/12.92:Math.pow((I+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(b){const I=this.getRelativeLuminance(),z=b.getRelativeLuminance();return I>z}isDarkerThan(b){const I=this.getRelativeLuminance(),z=b.getRelativeLuminance();return I<z}lighten(b){return new hu(new qb(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*b,this.hsla.a))}darken(b){return new hu(new qb(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*b,this.hsla.a))}transparent(b){const{r:I,g:z,b:ee,a:_e}=this.rgba;return new hu(new Um(I,z,ee,_e*b))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new hu(new Um(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(b){if(this.isOpaque()||b.rgba.a!==1)return this;const{r:I,g:z,b:ee,a:_e}=this.rgba;return new hu(new Um(b.rgba.r-_e*(b.rgba.r-I),b.rgba.g-_e*(b.rgba.g-z),b.rgba.b-_e*(b.rgba.b-ee),1))}toString(){return this._toString||(this._toString=hu.Format.CSS.format(this)),this._toString}static getLighterColor(b,I,z){if(b.isLighterThan(I))return b;z=z||.5;const ee=b.getRelativeLuminance(),_e=I.getRelativeLuminance();return z=z*(_e-ee)/_e,b.lighten(z)}static getDarkerColor(b,I,z){if(b.isDarkerThan(I))return b;z=z||.5;const ee=b.getRelativeLuminance(),_e=I.getRelativeLuminance();return z=z*(ee-_e)/ee,b.darken(z)}}hu.white=new hu(new Um(255,255,255,1)),hu.black=new hu(new Um(0,0,0,1)),hu.red=new hu(new Um(255,0,0,1)),hu.blue=new hu(new Um(0,0,255,1)),hu.green=new hu(new Um(0,255,0,1)),hu.cyan=new hu(new Um(0,255,255,1)),hu.lightgrey=new hu(new Um(211,211,211,1)),hu.transparent=new hu(new Um(0,0,0,0)),function(g){(function(b){(function(I){function z(pn){return pn.rgba.a===1?`rgb(${pn.rgba.r}, ${pn.rgba.g}, ${pn.rgba.b})`:g.Format.CSS.formatRGBA(pn)}I.formatRGB=z;function ee(pn){return`rgba(${pn.rgba.r}, ${pn.rgba.g}, ${pn.rgba.b}, ${+pn.rgba.a.toFixed(2)})`}I.formatRGBA=ee;function _e(pn){return pn.hsla.a===1?`hsl(${pn.hsla.h}, ${(pn.hsla.s*100).toFixed(2)}%, ${(pn.hsla.l*100).toFixed(2)}%)`:g.Format.CSS.formatHSLA(pn)}I.formatHSL=_e;function Re(pn){return`hsla(${pn.hsla.h}, ${(pn.hsla.s*100).toFixed(2)}%, ${(pn.hsla.l*100).toFixed(2)}%, ${pn.hsla.a.toFixed(2)})`}I.formatHSLA=Re;function Ge(pn){const Pr=pn.toString(16);return Pr.length!==2?"0"+Pr:Pr}function at(pn){return`#${Ge(pn.rgba.r)}${Ge(pn.rgba.g)}${Ge(pn.rgba.b)}`}I.formatHex=at;function Ne(pn,Pr=!1){return Pr&&pn.rgba.a===1?g.Format.CSS.formatHex(pn):`#${Ge(pn.rgba.r)}${Ge(pn.rgba.g)}${Ge(pn.rgba.b)}${Ge(Math.round(pn.rgba.a*255))}`}I.formatHexA=Ne;function Xe(pn){return pn.isOpaque()?g.Format.CSS.formatHex(pn):g.Format.CSS.formatRGBA(pn)}I.format=Xe;function $t(pn){const Pr=pn.length;if(Pr===0||pn.charCodeAt(0)!==35)return null;if(Pr===7){const gi=16*Ht(pn.charCodeAt(1))+Ht(pn.charCodeAt(2)),io=16*Ht(pn.charCodeAt(3))+Ht(pn.charCodeAt(4)),Jn=16*Ht(pn.charCodeAt(5))+Ht(pn.charCodeAt(6));return new g(new Um(gi,io,Jn,1))}if(Pr===9){const gi=16*Ht(pn.charCodeAt(1))+Ht(pn.charCodeAt(2)),io=16*Ht(pn.charCodeAt(3))+Ht(pn.charCodeAt(4)),Jn=16*Ht(pn.charCodeAt(5))+Ht(pn.charCodeAt(6)),In=16*Ht(pn.charCodeAt(7))+Ht(pn.charCodeAt(8));return new g(new Um(gi,io,Jn,In/255))}if(Pr===4){const gi=Ht(pn.charCodeAt(1)),io=Ht(pn.charCodeAt(2)),Jn=Ht(pn.charCodeAt(3));return new g(new Um(16*gi+gi,16*io+io,16*Jn+Jn))}if(Pr===5){const gi=Ht(pn.charCodeAt(1)),io=Ht(pn.charCodeAt(2)),Jn=Ht(pn.charCodeAt(3)),In=Ht(pn.charCodeAt(4));return new g(new Um(16*gi+gi,16*io+io,16*Jn+Jn,(16*In+In)/255))}return null}I.parseHex=$t;function Ht(pn){switch(pn){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(b.CSS||(b.CSS={}))})(g.Format||(g.Format={}))}(hu||(hu={}));function fEe(g){const b=[];for(const I of g){const z=Number(I);(z||z===0&&I.replace(/\s/g,"")!=="")&&b.push(z)}return b}function Hte(g,b,I,z){return{red:g/255,blue:I/255,green:b/255,alpha:z}}function g6(g,b){const I=b.index,z=b[0].length;if(!I)return;const ee=g.positionAt(I);return{startLineNumber:ee.lineNumber,startColumn:ee.column,endLineNumber:ee.lineNumber,endColumn:ee.column+z}}function ize(g,b){if(!g)return;const I=hu.Format.CSS.parseHex(b);if(I)return{range:g,color:Hte(I.rgba.r,I.rgba.g,I.rgba.b,I.rgba.a)}}function mEe(g,b,I){if(!g||b.length!==1)return;const ee=b[0].values(),_e=fEe(ee);return{range:g,color:Hte(_e[0],_e[1],_e[2],I?_e[3]:1)}}function _Ee(g,b,I){if(!g||b.length!==1)return;const ee=b[0].values(),_e=fEe(ee),Re=new hu(new qb(_e[0],_e[1]/100,_e[2]/100,I?_e[3]:1));return{range:g,color:Hte(Re.rgba.r,Re.rgba.g,Re.rgba.b,Re.rgba.a)}}function v6(g,b){return typeof g=="string"?[...g.matchAll(b)]:g.findMatches(b)}function oze(g){const b=[],z=v6(g,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(z.length>0)for(const ee of z){const _e=ee.filter(Ne=>Ne!==void 0),Re=_e[1],Ge=_e[2];if(!Ge)continue;let at;if(Re==="rgb"){const Ne=/^\(\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;at=mEe(g6(g,ee),v6(Ge,Ne),!1)}else if(Re==="rgba"){const Ne=/^\(\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;at=mEe(g6(g,ee),v6(Ge,Ne),!0)}else if(Re==="hsl"){const Ne=/^\(\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;at=_Ee(g6(g,ee),v6(Ge,Ne),!1)}else if(Re==="hsla"){const Ne=/^\(\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;at=_Ee(g6(g,ee),v6(Ge,Ne),!0)}else Re==="#"&&(at=ize(g6(g,ee),Re+Ge));at&&b.push(at)}return b}function aze(g){return!g||typeof g.getValue!="function"||typeof g.positionAt!="function"?[]:oze(g)}const hEe=new RegExp("\\bMARK:\\s*(.*)$","d"),sze=/^-+|-+$/g;function lze(g,b){var I;let z=[];if(b.findRegionSectionHeaders&&(!((I=b.foldingRules)===null||I===void 0)&&I.markers)){const ee=cze(g,b);z=z.concat(ee)}if(b.findMarkSectionHeaders){const ee=uze(g);z=z.concat(ee)}return z}function cze(g,b){const I=[],z=g.getLineCount();for(let ee=1;ee<=z;ee++){const _e=g.getLineContent(ee),Re=_e.match(b.foldingRules.markers.start);if(Re){const Ge={startLineNumber:ee,startColumn:Re[0].length+1,endLineNumber:ee,endColumn:_e.length+1};if(Ge.endColumn>Ge.startColumn){const at={range:Ge,...gEe(_e.substring(Re[0].length)),shouldBeInComments:!1};(at.text||at.hasSeparatorLine)&&I.push(at)}}}return I}function uze(g){const b=[],I=g.getLineCount();for(let z=1;z<=I;z++){const ee=g.getLineContent(z);dze(ee,z,b)}return b}function dze(g,b,I){hEe.lastIndex=0;const z=hEe.exec(g);if(z){const ee=z.indices[1][0]+1,_e=z.indices[1][1]+1,Re={startLineNumber:b,startColumn:ee,endLineNumber:b,endColumn:_e};if(Re.endColumn>Re.startColumn){const Ge={range:Re,...gEe(z[1]),shouldBeInComments:!0};(Ge.text||Ge.hasSeparatorLine)&&I.push(Ge)}}}function gEe(g){g=g.trim();const b=g.startsWith("-");return g=g.replace(sze,""),{text:g,hasSeparatorLine:b}}class pze extends e5e{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(b){const I=[];for(let z=0;z<this._lines.length;z++){const ee=this._lines[z],_e=this.offsetAt(new oh(z+1,1)),Re=ee.matchAll(b);for(const Ge of Re)(Ge.index||Ge.index===0)&&(Ge.index=Ge.index+_e),I.push(Ge)}return I}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(b){return this._lines[b-1]}getWordAtPosition(b,I){const z=Dte(b.column,Bbe(I),this._lines[b.lineNumber-1],0);return z?new Tl(b.lineNumber,z.startColumn,b.lineNumber,z.endColumn):null}words(b){const I=this._lines,z=this._wordenize.bind(this);let ee=0,_e="",Re=0,Ge=[];return{*[Symbol.iterator](){for(;;)if(Re<Ge.length){const at=_e.substring(Ge[Re].start,Ge[Re].end);Re+=1,yield at}else if(ee<I.length)_e=I[ee],Ge=z(_e,b),Re=0,ee+=1;else break}}}getLineWords(b,I){const z=this._lines[b-1],ee=this._wordenize(z,I),_e=[];for(const Re of ee)_e.push({word:z.substring(Re.start,Re.end),startColumn:Re.start+1,endColumn:Re.end+1});return _e}_wordenize(b,I){const z=[];let ee;for(I.lastIndex=0;(ee=I.exec(b))&&ee[0].length!==0;)z.push({start:ee.index,end:ee.index+ee[0].length});return z}getValueInRange(b){if(b=this._validateRange(b),b.startLineNumber===b.endLineNumber)return this._lines[b.startLineNumber-1].substring(b.startColumn-1,b.endColumn-1);const I=this._eol,z=b.startLineNumber-1,ee=b.endLineNumber-1,_e=[];_e.push(this._lines[z].substring(b.startColumn-1));for(let Re=z+1;Re<ee;Re++)_e.push(this._lines[Re]);return _e.push(this._lines[ee].substring(0,b.endColumn-1)),_e.join(I)}offsetAt(b){return b=this._validatePosition(b),this._ensureLineStarts(),this._lineStarts.getPrefixSum(b.lineNumber-2)+(b.column-1)}positionAt(b){b=Math.floor(b),b=Math.max(0,b),this._ensureLineStarts();const I=this._lineStarts.getIndexOf(b),z=this._lines[I.index].length;return{lineNumber:1+I.index,column:1+Math.min(I.remainder,z)}}_validateRange(b){const I=this._validatePosition({lineNumber:b.startLineNumber,column:b.startColumn}),z=this._validatePosition({lineNumber:b.endLineNumber,column:b.endColumn});return I.lineNumber!==b.startLineNumber||I.column!==b.startColumn||z.lineNumber!==b.endLineNumber||z.column!==b.endColumn?{startLineNumber:I.lineNumber,startColumn:I.column,endLineNumber:z.lineNumber,endColumn:z.column}:b}_validatePosition(b){if(!oh.isIPosition(b))throw new Error("bad position");let{lineNumber:I,column:z}=b,ee=!1;if(I<1)I=1,z=1,ee=!0;else if(I>this._lines.length)I=this._lines.length,z=this._lines[I-1].length+1,ee=!0;else{const _e=this._lines[I-1].length+1;z<1?(z=1,ee=!0):z>_e&&(z=_e,ee=!0)}return ee?{lineNumber:I,column:z}:b}}class VN{constructor(b,I){this._host=b,this._models=Object.create(null),this._foreignModuleFactory=I,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(b){return this._models[b]}_getModels(){const b=[];return Object.keys(this._models).forEach(I=>b.push(this._models[I])),b}acceptNewModel(b){this._models[b.url]=new pze(GN.parse(b.url),b.lines,b.EOL,b.versionId)}acceptModelChanged(b,I){if(!this._models[b])return;this._models[b].onEvents(I)}acceptRemovedModel(b){this._models[b]&&delete this._models[b]}async computeUnicodeHighlights(b,I,z){const ee=this._getModel(b);return ee?N5e.computeUnicodeHighlights(ee,I,z):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(b,I){const z=this._getModel(b);return z?lze(z,I):[]}async computeDiff(b,I,z,ee){const _e=this._getModel(b),Re=this._getModel(I);return!_e||!Re?null:VN.computeDiff(_e,Re,z,ee)}static computeDiff(b,I,z,ee){const _e=ee==="advanced"?pEe.getDefault():pEe.getLegacy(),Re=b.getLinesContent(),Ge=I.getLinesContent(),at=_e.computeDiff(Re,Ge,z),Ne=at.changes.length>0?!1:this._modelsAreIdentical(b,I);function Xe($t){return $t.map(Ht=>{var pn;return[Ht.original.startLineNumber,Ht.original.endLineNumberExclusive,Ht.modified.startLineNumber,Ht.modified.endLineNumberExclusive,(pn=Ht.innerChanges)===null||pn===void 0?void 0:pn.map(Pr=>[Pr.originalRange.startLineNumber,Pr.originalRange.startColumn,Pr.originalRange.endLineNumber,Pr.originalRange.endColumn,Pr.modifiedRange.startLineNumber,Pr.modifiedRange.startColumn,Pr.modifiedRange.endLineNumber,Pr.modifiedRange.endColumn])]})}return{identical:Ne,quitEarly:at.hitTimeout,changes:Xe(at.changes),moves:at.moves.map($t=>[$t.lineRangeMapping.original.startLineNumber,$t.lineRangeMapping.original.endLineNumberExclusive,$t.lineRangeMapping.modified.startLineNumber,$t.lineRangeMapping.modified.endLineNumberExclusive,Xe($t.changes)])}}static _modelsAreIdentical(b,I){const z=b.getLineCount(),ee=I.getLineCount();if(z!==ee)return!1;for(let _e=1;_e<=z;_e++){const Re=b.getLineContent(_e),Ge=I.getLineContent(_e);if(Re!==Ge)return!1}return!0}async computeMoreMinimalEdits(b,I,z){const ee=this._getModel(b);if(!ee)return I;const _e=[];let Re;I=I.slice(0).sort((at,Ne)=>{if(at.range&&Ne.range)return Tl.compareRangesUsingStarts(at.range,Ne.range);const Xe=at.range?0:1,$t=Ne.range?0:1;return Xe-$t});let Ge=0;for(let at=1;at<I.length;at++)Tl.getEndPosition(I[Ge].range).equals(Tl.getStartPosition(I[at].range))?(I[Ge].range=Tl.fromPositions(Tl.getStartPosition(I[Ge].range),Tl.getEndPosition(I[at].range)),I[Ge].text+=I[at].text):(Ge++,I[Ge]=I[at]);I.length=Ge+1;for(let{range:at,text:Ne,eol:Xe}of I){if(typeof Xe=="number"&&(Re=Xe),Tl.isEmpty(at)&&!Ne)continue;const $t=ee.getValueInRange(at);if(Ne=Ne.replace(/\r\n|\n|\r/g,ee.eol),$t===Ne)continue;if(Math.max(Ne.length,$t.length)>VN._diffLimit){_e.push({range:at,text:Ne});continue}const Ht=D7e($t,Ne,z),pn=ee.offsetAt(Tl.lift(at).getStartPosition());for(const Pr of Ht){const gi=ee.positionAt(pn+Pr.originalStart),io=ee.positionAt(pn+Pr.originalStart+Pr.originalLength),Jn={text:Ne.substr(Pr.modifiedStart,Pr.modifiedLength),range:{startLineNumber:gi.lineNumber,startColumn:gi.column,endLineNumber:io.lineNumber,endColumn:io.column}};ee.getValueInRange(Jn.range)!==Jn.text&&_e.push(Jn)}}return typeof Re=="number"&&_e.push({eol:Re,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),_e}async computeLinks(b){const I=this._getModel(b);return I?l5e(I):null}async computeDefaultDocumentColors(b){const I=this._getModel(b);return I?aze(I):null}async textualSuggest(b,I,z,ee){const _e=new TB,Re=new RegExp(z,ee),Ge=new Set;e:for(const at of b){const Ne=this._getModel(at);if(Ne){for(const Xe of Ne.words(Re))if(!(Xe===I||!isNaN(Number(Xe)))&&(Ge.add(Xe),Ge.size>VN._suggestionsLimit))break e}}return{words:Array.from(Ge),duration:_e.elapsed()}}async computeWordRanges(b,I,z,ee){const _e=this._getModel(b);if(!_e)return Object.create(null);const Re=new RegExp(z,ee),Ge=Object.create(null);for(let at=I.startLineNumber;at<I.endLineNumber;at++){const Ne=_e.getLineWords(at,Re);for(const Xe of Ne){if(!isNaN(Number(Xe.word)))continue;let $t=Ge[Xe.word];$t||($t=[],Ge[Xe.word]=$t),$t.push({startLineNumber:at,startColumn:Xe.startColumn,endLineNumber:at,endColumn:Xe.endColumn})}}return Ge}async navigateValueSet(b,I,z,ee,_e){const Re=this._getModel(b);if(!Re)return null;const Ge=new RegExp(ee,_e);I.startColumn===I.endColumn&&(I={startLineNumber:I.startLineNumber,startColumn:I.startColumn,endLineNumber:I.endLineNumber,endColumn:I.endColumn+1});const at=Re.getValueInRange(I),Ne=Re.getWordAtPosition({lineNumber:I.startLineNumber,column:I.startColumn},Ge);if(!Ne)return null;const Xe=Re.getValueInRange(Ne);return Pte.INSTANCE.navigateValueSet(I,at,Ne,Xe,z)}loadForeignModule(b,I,z){const Re={host:e7e(z,(Ge,at)=>this._host.fhr(Ge,at)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(Re,I),Promise.resolve(hte(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(b,I){if(!this._foreignModule||typeof this._foreignModule[b]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+b));try{return Promise.resolve(this._foreignModule[b].apply(this._foreignModule,I))}catch(z){return Promise.reject(z)}}}VN._diffLimit=1e5,VN._suggestionsLimit=1e4,typeof importScripts=="function"&&(globalThis.monaco=y5e());let qte=!1;function vEe(g){if(qte)return;qte=!0;const b=new x7e(I=>{globalThis.postMessage(I)},I=>new VN(I,g));globalThis.onmessage=I=>{b.onmessage(I.data)}}globalThis.onmessage=g=>{qte||vEe(null)};var jN={};/*!----------------------------------------------------------------------------- + * 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 + *-----------------------------------------------------------------------------*/var fze=Object.defineProperty,mze=(g,b)=>{for(var I in b)fze(g,I,{get:b[I],enumerable:!0})},yEe={};mze(yEe,{EndOfLineState:()=>gze,IndentStyle:()=>yze,ScriptKind:()=>UN,ScriptTarget:()=>bze,TokenClass:()=>Eze,createClassifier:()=>_ze,createLanguageService:()=>bEe,displayPartsToString:()=>hze,flattenDiagnosticMessageText:()=>vze,typescript:()=>EEe});var yE=void 0,WB={exports:{}},bE=(()=>{var g=Object.defineProperty,b=Object.getOwnPropertyNames,I=(e,t)=>function(){return e&&(t=(0,e[b(e)[0]])(e=0)),t},z=(e,t)=>function(){return t||(0,e[b(e)[0]])((t={exports:{}}).exports,t),t.exports},ee=(e,t)=>{for(var r in t)g(e,r,{get:t[r],enumerable:!0})},_e,Re,Ge,at=I({"src/compiler/corePublic.ts"(){_e="5.4",Re="5.4.5",Ge=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Ge||{})}});function Ne(e){return e?e.length:0}function Xe(e,t){if(e)for(let r=0;r<e.length;r++){const i=t(e[r],r);if(i)return i}}function $t(e,t){if(e)for(let r=e.length-1;r>=0;r--){const i=t(e[r],r);if(i)return i}}function Ht(e,t){if(e!==void 0)for(let r=0;r<e.length;r++){const i=t(e[r],r);if(i!==void 0)return i}}function pn(e,t){for(const r of e){const i=t(r);if(i!==void 0)return i}}function Pr(e,t,r){let i=r;if(e){let o=0;for(const s of e)i=t(i,s,o),o++}return i}function gi(e,t,r){const i=[];N.assertEqual(e.length,t.length);for(let o=0;o<e.length;o++)i.push(r(e[o],t[o],o));return i}function io(e,t){if(e.length<=1)return e;const r=[];for(let i=0,o=e.length;i<o;i++)i&&r.push(t),r.push(e[i]);return r}function Jn(e,t){if(e){for(let r=0;r<e.length;r++)if(!t(e[r],r))return!1}return!0}function In(e,t,r){if(e!==void 0)for(let i=r??0;i<e.length;i++){const o=e[i];if(t(o,i))return o}}function oi(e,t,r){if(e!==void 0)for(let i=r??e.length-1;i>=0;i--){const o=e[i];if(t(o,i))return o}}function mi(e,t,r){if(e===void 0)return-1;for(let i=r??0;i<e.length;i++)if(t(e[i],i))return i;return-1}function Yi(e,t,r){if(e===void 0)return-1;for(let i=r??e.length-1;i>=0;i--)if(t(e[i],i))return i;return-1}function ja(e,t){for(let r=0;r<e.length;r++){const i=t(e[r],r);if(i)return i}return N.fail()}function Or(e,t,r=xv){if(e){for(const i of e)if(r(i,t))return!0}return!1}function Ba(e,t,r=xv){return e.length===t.length&&e.every((i,o)=>r(i,t[o]))}function Jc(e,t,r){for(let i=r||0;i<e.length;i++)if(Or(t,e.charCodeAt(i)))return i;return-1}function ou(e,t){let r=0;if(e)for(let i=0;i<e.length;i++){const o=e[i];t(o,i)&&r++}return r}function mn(e,t){if(e){const r=e.length;let i=0;for(;i<r&&t(e[i]);)i++;if(i<r){const o=e.slice(0,i);for(i++;i<r;){const s=e[i];t(s)&&o.push(s),i++}return o}}return e}function li(e,t){let r=0;for(let i=0;i<e.length;i++)t(e[i],i,e)&&(e[r]=e[i],r++);e.length=r}function jo(e){e.length=0}function Wt(e,t){let r;if(e){r=[];for(let i=0;i<e.length;i++)r.push(t(e[i],i))}return r}function*Qa(e,t){for(const r of e)yield t(r)}function Zo(e,t){if(e)for(let r=0;r<e.length;r++){const i=e[r],o=t(i,r);if(i!==o){const s=e.slice(0,r);for(s.push(o),r++;r<e.length;r++)s.push(t(e[r],r));return s}}return e}function Cs(e){const t=[];for(const r of e)r&&(To(r)?qr(t,r):t.push(r));return t}function Do(e,t){let r;if(e)for(let i=0;i<e.length;i++){const o=t(e[i],i);o&&(To(o)?r=qr(r,o):r=Rn(r,o))}return r||et}function kp(e,t){const r=[];if(e)for(let i=0;i<e.length;i++){const o=t(e[i],i);o&&(To(o)?qr(r,o):r.push(o))}return r}function*EE(e,t){for(const r of e){const i=t(r);i&&(yield*i)}}function Cx(e,t){let r;if(e)for(let i=0;i<e.length;i++){const o=e[i],s=t(o,i);(r||o!==s||To(s))&&(r||(r=e.slice(0,i)),To(s)?qr(r,s):r.push(s))}return r||e}function Jb(e,t){const r=[];for(let i=0;i<e.length;i++){const o=t(e[i],i);if(o===void 0)return;r.push(o)}return r}function eo(e,t){const r=[];if(e)for(let i=0;i<e.length;i++){const o=t(e[i],i);o!==void 0&&r.push(o)}return r}function*Kb(e,t){for(const r of e){const i=t(r);i!==void 0&&(yield i)}}function y6(e,t){if(!e)return;const r=new Map;return e.forEach((i,o)=>{const s=t(o,i);if(s!==void 0){const[l,u]=s;l!==void 0&&u!==void 0&&r.set(l,u)}}),r}function dA(e,t,r){if(e.has(t))return e.get(t);const i=r();return e.set(t,i),i}function Xb(e,t){return e.has(t)?!1:(e.add(t),!0)}function*Jte(e){yield e}function FB(e,t,r){let i;if(e){i=[];const o=e.length;let s,l,u=0,p=0;for(;u<o;){for(;p<o;){const h=e[p];if(l=t(h,p),p===0)s=l;else if(l!==s)break;p++}if(u<p){const h=r(e.slice(u,p),s,u,p);h&&i.push(h),u=p}s=l,p++}}return i}function Kte(e,t){if(!e)return;const r=new Map;return e.forEach((i,o)=>{const[s,l]=t(o,i);r.set(s,l)}),r}function bt(e,t){if(e)if(t){for(const r of e)if(t(r))return!0}else return e.length>0;return!1}function zB(e,t,r){let i;for(let o=0;o<e.length;o++)t(e[o])?i=i===void 0?o:i:i!==void 0&&(r(i,o),i=void 0);i!==void 0&&r(i,e.length)}function So(e,t){return bt(t)?bt(e)?[...e,...t]:t:e}function Tze(e,t){return t}function N2(e){return e.map(Tze)}function Aze(e,t,r){const i=N2(e);TEe(e,i,r);let o=e[i[0]];const s=[i[0]];for(let l=1;l<i.length;l++){const u=i[l],p=e[u];t(o,p)||(s.push(u),o=p)}return s.sort(),s.map(l=>e[l])}function Ize(e,t){const r=[];for(const i of e)Ef(r,i,t);return r}function SE(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?Aze(e,t,r):Ize(e,t)}function xze(e,t){if(e.length===0)return et;let r=e[0];const i=[r];for(let o=1;o<e.length;o++){const s=e[o];switch(t(s,r)){case!0:case 0:continue;case-1:return N.fail("Array is unsorted.")}i.push(r=s)}return i}function BB(){return[]}function by(e,t,r,i){if(e.length===0)return e.push(t),!0;const o=Tv(e,t,tl,r);return o<0?(e.splice(~o,0,t),!0):i?(e.splice(o,0,t),!0):!1}function HN(e,t,r){return xze(iS(e,t),r||t||Uu)}function b6(e,t){if(e.length<2)return!0;for(let r=1,i=e.length;r<i;r++)if(t(e[r-1],e[r])===1)return!1;return!0}function qN(e,t,r,i){let o=3;if(e.length<2)return o;let s=t(e[0]);for(let l=1,u=e.length;l<u&&o!==0;l++){const p=t(e[l]);o&1&&r(s,p)>0&&(o&=-2),o&2&&i(s,p)>0&&(o&=-3),s=p}return o}function Hm(e,t,r=xv){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!r(e[i],t[i],i))return!1;return!0}function C2(e){let t;if(e)for(let r=0;r<e.length;r++){const i=e[r];(t||!i)&&(t||(t=e.slice(0,r)),i&&t.push(i))}return t||e}function Xte(e,t,r){if(!t||!e||t.length===0||e.length===0)return t;const i=[];e:for(let o=0,s=0;s<t.length;s++){s>0&&N.assertGreaterThanOrEqual(r(t[s],t[s-1]),0);t:for(const l=o;o<e.length;o++)switch(o>l&&N.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 Rn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Px(e,t){return e===void 0?t:t===void 0?e:To(e)?To(t)?So(e,t):Rn(e,t):To(t)?Rn(t,e):[e,t]}function Yte(e,t){return t<0?e.length+t:t}function qr(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:Yte(t,r),i=i===void 0?t.length:Yte(t,i);for(let o=r;o<i&&o<t.length;o++)t[o]!==void 0&&e.push(t[o]);return e}function Ef(e,t,r){return Or(e,t,r)?!1:(e.push(t),!0)}function Rg(e,t,r){return e?(Ef(e,t,r),e):[t]}function TEe(e,t,r){t.sort((i,o)=>r(e[i],e[o])||nl(i,o))}function iS(e,t){return e.length===0?e:e.slice().sort(t)}function*GB(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Sv(e,t){const r=N2(e);return TEe(e,r,t),r.map(i=>e[i])}function VB(e,t,r,i){for(;r<i;){if(e[r]!==t[r])return!1;r++}return!0}function Kc(e){return e===void 0||e.length===0?void 0:e[0]}function E6(e){if(e)for(const t of e)return t}function Ua(e){return N.assert(e.length!==0),e[0]}function jB(e){for(const t of e)return t;N.fail("iterator is empty")}function el(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function Xa(e){return N.assert(e.length!==0),e[e.length-1]}function ah(e){return e&&e.length===1?e[0]:void 0}function UB(e){return N.checkDefined(ah(e))}function sh(e){return e&&e.length===1?e[0]:e}function HB(e,t,r){const i=e.slice(0);return i[t]=r,i}function Tv(e,t,r,i,o){return pA(e,r(t),r,i,o)}function pA(e,t,r,i,o){if(!bt(e))return-1;let s=o||0,l=e.length-1;for(;s<=l;){const u=s+(l-s>>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 rd(e,t,r,i,o){if(e&&e.length>0){const s=e.length;if(s>0){let l=i===void 0||i<0?0:i;const u=o===void 0||l+o>s-1?s-1:l+o;let 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 Is(e,t){return Ty.call(e,t)}function S6(e,t){return Ty.call(e,t)?e[t]:void 0}function Hh(e){const t=[];for(const r in e)Ty.call(e,r)&&t.push(r);return t}function AEe(e){const t=[];do{const r=Object.getOwnPropertyNames(e);for(const i of r)Ef(t,i)}while(e=Object.getPrototypeOf(e));return t}function fA(e){const t=[];for(const r in e)Ty.call(e,r)&&t.push(e[r]);return t}function $te(e,t){const r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i);return r}function zo(e,t){const r=[];for(const i of e)r.push(t?t(i):i);return r}function Mx(e,...t){for(const r of t)if(r!==void 0)for(const i in r)Is(r,i)&&(e[i]=r[i]);return e}function Qte(e,t,r=xv){if(e===t)return!0;if(!e||!t)return!1;for(const i in e)if(Ty.call(e,i)&&(!Ty.call(t,i)||!r(e[i],t[i])))return!1;for(const i in t)if(Ty.call(t,i)&&!Ty.call(e,i))return!1;return!0}function TE(e,t,r=tl){const i=new Map;for(const o of e){const s=t(o);s!==void 0&&i.set(s,r(o))}return i}function Zte(e,t,r=tl){const i=[];for(const o of e)i[t(o)]=r(o);return i}function P2(e,t,r=tl){const i=$p();for(const o of e)i.add(t(o),r(o));return i}function JN(e,t,r=tl){return zo(P2(e,t).values(),r)}function T6(e,t){const r={};if(e)for(const i of e){const o=`${t(i)}`;(r[o]??(r[o]=[])).push(i)}return r}function qB(e){const t={};for(const r in e)Ty.call(e,r)&&(t[r]=e[r]);return t}function A6(e,t){const r={};for(const i in t)Ty.call(t,i)&&(r[i]=t[i]);for(const i in e)Ty.call(e,i)&&(r[i]=e[i]);return r}function JB(e,t){for(const r in t)Ty.call(t,r)&&(e[r]=t[r])}function ia(e,t){return t?t.bind(e):void 0}function $p(){const e=new Map;return e.add=Rze,e.remove=Dze,e}function Rze(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function Dze(e,t){const r=this.get(e);r&&(_A(r,t),r.length||this.delete(e))}function M2(e){const t=(e==null?void 0:e.slice())||[];let r=0;function i(){return r===t.length}function o(...l){t.push(...l)}function s(){if(i())throw new Error("Queue is empty");const l=t[r];if(t[r]=void 0,r++,r>100&&r>t.length>>1){const u=t.length-r;t.copyWithin(0,r),t.length=u,r=0}return l}return{enqueue:o,dequeue:s,isEmpty:i}}function KB(e,t){const r=new Map;let i=0;function*o(){for(const l of r.values())To(l)?yield*l:yield l}const s={has(l){const u=e(l);if(!r.has(u))return!1;const p=r.get(u);if(!To(p))return t(p,l);for(const h of p)if(t(h,l))return!0;return!1},add(l){const u=e(l);if(r.has(u)){const p=r.get(u);if(To(p))Or(p,l,t)||(p.push(l),i++);else{const h=p;t(h,l)||(r.set(u,[h,l]),i++)}}else r.set(u,l),i++;return this},delete(l){const u=e(l);if(!r.has(u))return!1;const p=r.get(u);if(To(p)){for(let h=0;h<p.length;h++)if(t(p[h],l))return p.length===1?r.delete(u):p.length===2?r.set(u,p[1-h]):$B(p,h),i--,!0}else if(t(p,l))return r.delete(u),i--,!0;return!1},clear(){r.clear(),i=0},get size(){return i},forEach(l){for(const u of zo(r.values()))if(To(u))for(const p of u)l(p,p,s);else{const p=u;l(p,p,s)}},keys(){return o()},values(){return o()},*entries(){for(const l of o())yield[l,l]},[Symbol.iterator]:()=>o(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return s}function To(e){return Array.isArray(e)}function mA(e){return To(e)?e:[e]}function Mo(e){return typeof e=="string"}function Av(e){return typeof e=="number"}function ri(e,t){return e!==void 0&&t(e)?e:void 0}function oa(e,t){return e!==void 0&&t(e)?e:N.fail(`Invalid cast. The supplied value ${e} did not pass the test '${N.getFunctionName(t)}'.`)}function Ya(e){}function qm(){return!1}function Iv(){return!0}function Yb(){}function tl(e){return e}function ene(e){return e.toLowerCase()}function lh(e){return pne.test(e)?e.replace(pne,ene):e}function Jo(){throw new Error("Not implemented")}function Sd(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function ch(e){const t=new Map;return r=>{const i=`${typeof r}:${r}`;let o=t.get(i);return o===void 0&&!t.has(i)&&(o=e(r),t.set(i,o)),o}}function IEe(e){const 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 tne(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 xEe(e,t,r,i,o){if(o){const s=[];for(let l=0;l<arguments.length;l++)s[l]=arguments[l];return l=>rd(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 xv(e,t){return e===t}function $b(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function oS(e,t){return xv(e,t)}function REe(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function nl(e,t){return REe(e,t)}function I6(e,t){return nl(e==null?void 0:e.start,t==null?void 0:t.start)||nl(e==null?void 0:e.length,t==null?void 0:t.length)}function XB(e,t){return rd(e,(r,i)=>t(r,i)===-1?r:i)}function x6(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),e<t?-1:e>t?1:0)}function nne(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),e<t?-1:e>t?1:0)}function Uu(e,t){return REe(e,t)}function Lx(e){return e?x6:Uu}function rne(){return rG}function ine(e){rG!==e&&(rG=e,fne=void 0)}function L2(e,t){return(fne||(fne=CEe(rG)))(e,t)}function one(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function Ey(e,t){return nl(e?1:0,t?1:0)}function KN(e,t,r){const i=Math.max(2,Math.floor(e.length*.34));let o=Math.floor(e.length*.4)+1,s;for(const l of t){const 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;const p=Nze(e,u,o-.1);if(p===void 0)continue;N.assert(p<o),o=p,s=l}}return s}function Nze(e,t,r){let i=new Array(t.length+1),o=new Array(t.length+1);const s=r+.01;for(let u=0;u<=t.length;u++)i[u]=u;for(let u=1;u<=e.length;u++){const p=e.charCodeAt(u-1),h=Math.ceil(u>r?u-r:1),m=Math.floor(t.length>r+u?r+u:t.length);o[0]=u;let y=u;for(let A=1;A<h;A++)o[A]=s;for(let A=h;A<=m;A++){const R=e[u-1].toLowerCase()===t[A-1].toLowerCase()?i[A-1]+.1:i[A-1]+2,M=p===t.charCodeAt(A-1)?i[A-1]:Math.min(i[A]+1,o[A-1]+1,R);o[A]=M,y=Math.min(y,M)}for(let A=m+1;A<=t.length;A++)o[A]=s;if(y>r)return;const T=i;i=o,o=T}const l=i[t.length];return l>r?void 0:l}function Al(e,t,r){const i=e.length-t.length;return i>=0&&(r?$b(e.slice(i),t):e.indexOf(t,i)===i)}function kx(e,t){return Al(e,t)?e.slice(0,e.length-t.length):e}function ane(e,t){return Al(e,t)?e.slice(0,e.length-t.length):void 0}function YB(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 wx(e,t){for(let r=0;r<e.length;r++)if(e[r]===t)return Sy(e,r),!0;return!1}function Sy(e,t){for(let r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function $B(e,t){e[t]=e[e.length-1],e.pop()}function _A(e,t){return Cze(e,r=>r===t)}function Cze(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return $B(e,r),!0;return!1}function Mu(e){return e?tl:lh}function sne({prefix:e,suffix:t}){return`${e}*${t}`}function lne(e,t){return N.assert(R6(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function QB(e,t,r){let i,o=-1;for(const s of e){const l=t(s);R6(l,r)&&l.prefix.length>o&&(o=l.prefix.length,i=s)}return i}function uo(e,t,r){return r?$b(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function XN(e,t){return uo(e,t)?e.substr(t.length):e}function ZB(e,t,r=tl){return uo(r(e),r(t))?e.substring(t.length):void 0}function R6({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&uo(r,e)&&Al(r,t)}function D6(e,t){return r=>e(r)&&t(r)}function Jm(...e){return(...t)=>{let r;for(const i of e)if(r=i(...t),r)return r;return r}}function N6(e){return(...t)=>!e(...t)}function DEe(e){}function hA(e){return e===void 0?void 0:[e]}function C6(e,t,r,i,o,s){s=s||Ya;let l=0,u=0;const p=e.length,h=t.length;let m=!1;for(;l<p&&u<h;){const y=e[l],T=t[u],A=r(y,T);A===-1?(i(y),l++,m=!0):A===1?(o(T),u++,m=!0):(s(T,y),l++,u++)}for(;l<p;)i(e[l++]),m=!0;for(;u<h;)o(t[u++]),m=!0;return m}function cne(e){const t=[];return NEe(e,t,void 0,0),t}function NEe(e,t,r,i){for(const o of e[i]){let s;r?(s=r.slice(),s.push(o)):s=[o],i===e.length-1?t.push(s):NEe(e,t,s,i+1)}}function P6(e,t){if(e){const r=e.length;let i=0;for(;i<r&&t(e[i]);)i++;return e.slice(0,i)}}function une(e,t){if(e){const r=e.length;let i=0;for(;i<r&&t(e[i]);)i++;return e.slice(i)}}function eG(){return typeof process<"u"&&!!process.nextTick&&!process.browser&&typeof WB=="object"}var et,M6,dne,tG,Rv,Ty,pne,nG,CEe,fne,rG,Pze=I({"src/compiler/core.ts"(){ra(),et=[],M6=new Map,dne=new Set,tG=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(tG||{}),Rv=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e&&(t=Yte(e,t),t<e.length))return e[t]},Ty=Object.prototype.hasOwnProperty,pne=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g,nG=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(nG||{}),CEe=(()=>{return t;function e(r,i,o){if(r===i)return 0;if(r===void 0)return-1;if(i===void 0)return 1;const s=o(r,i);return s<0?-1:s>0?1:0}function t(r){const i=new Intl.Collator(r,{usage:"sort",sensitivity:"variant"}).compare;return(o,s)=>e(o,s,i)}})()}}),iG,N,Mze=I({"src/compiler/debug.ts"(){ra(),ra(),iG=(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))(iG||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(sn){return e.currentLogLevel<=sn}e.shouldLog=r;function i(sn,tt){e.loggingHost&&r(sn)&&e.loggingHost.log(sn,tt)}function o(sn){i(3,sn)}e.log=o,(sn=>{function tt(yi){i(1,yi)}sn.error=tt;function zt(yi){i(2,yi)}sn.warn=zt;function Dn(yi){i(3,yi)}sn.log=Dn;function ci(yi){i(4,yi)}sn.trace=ci})(o=e.log||(e.log={}));const s={};function l(){return t}e.getAssertionLevel=l;function u(sn){const tt=t;if(t=sn,sn>tt)for(const zt of Hh(s)){const Dn=s[zt];Dn!==void 0&&e[zt]!==Dn.assertion&&sn>=Dn.level&&(e[zt]=Dn,s[zt]=void 0)}}e.setAssertionLevel=u;function p(sn){return t>=sn}e.shouldAssert=p;function h(sn,tt){return p(sn)?!0:(s[tt]={level:sn,assertion:e[tt]},e[tt]=Ya,!1)}function m(sn,tt){const zt=new Error(sn?`Debug Failure. ${sn}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(zt,tt||m),zt}e.fail=m;function y(sn,tt,zt){return m(`${tt||"Unexpected node."}\r +Node ${ve(sn.kind)} was unexpected.`,zt||y)}e.failBadSyntaxKind=y;function T(sn,tt,zt,Dn){sn||(tt=tt?`False expression: ${tt}`:"False expression.",zt&&(tt+=`\r +Verbose Debug Information: `+(typeof zt=="string"?zt:zt())),m(tt,Dn||T))}e.assert=T;function A(sn,tt,zt,Dn,ci){if(sn!==tt){const yi=zt?Dn?`${zt} ${Dn}`:zt:"";m(`Expected ${sn} === ${tt}. ${yi}`,ci||A)}}e.assertEqual=A;function R(sn,tt,zt,Dn){sn>=tt&&m(`Expected ${sn} < ${tt}. ${zt||""}`,Dn||R)}e.assertLessThan=R;function M(sn,tt,zt){sn>tt&&m(`Expected ${sn} <= ${tt}`,zt||M)}e.assertLessThanOrEqual=M;function C(sn,tt,zt){sn<tt&&m(`Expected ${sn} >= ${tt}`,zt||C)}e.assertGreaterThanOrEqual=C;function O(sn,tt,zt){sn==null&&m(tt,zt||O)}e.assertIsDefined=O;function U(sn,tt,zt){return O(sn,tt,zt||U),sn}e.checkDefined=U;function K(sn,tt,zt){for(const Dn of sn)O(Dn,tt,zt||K)}e.assertEachIsDefined=K;function Q(sn,tt,zt){return K(sn,tt,zt||Q),sn}e.checkEachDefined=Q;function V(sn,tt="Illegal value:",zt){const Dn=typeof sn=="object"&&Is(sn,"kind")&&Is(sn,"pos")?"SyntaxKind: "+ve(sn.kind):JSON.stringify(sn);return m(`${tt} ${Dn}`,zt||V)}e.assertNever=V;function se(sn,tt,zt,Dn){h(1,"assertEachNode")&&T(tt===void 0||Jn(sn,tt),zt||"Unexpected node.",()=>`Node array did not pass test '${oe(tt)}'.`,Dn||se)}e.assertEachNode=se;function G(sn,tt,zt,Dn){h(1,"assertNode")&&T(sn!==void 0&&(tt===void 0||tt(sn)),zt||"Unexpected node.",()=>`Node ${ve(sn==null?void 0:sn.kind)} did not pass test '${oe(tt)}'.`,Dn||G)}e.assertNode=G;function ne(sn,tt,zt,Dn){h(1,"assertNotNode")&&T(sn===void 0||tt===void 0||!tt(sn),zt||"Unexpected node.",()=>`Node ${ve(sn.kind)} should not have passed test '${oe(tt)}'.`,Dn||ne)}e.assertNotNode=ne;function he(sn,tt,zt,Dn){h(1,"assertOptionalNode")&&T(tt===void 0||sn===void 0||tt(sn),zt||"Unexpected node.",()=>`Node ${ve(sn==null?void 0:sn.kind)} did not pass test '${oe(tt)}'.`,Dn||he)}e.assertOptionalNode=he;function ye(sn,tt,zt,Dn){h(1,"assertOptionalToken")&&T(tt===void 0||sn===void 0||sn.kind===tt,zt||"Unexpected node.",()=>`Node ${ve(sn==null?void 0:sn.kind)} was not a '${ve(tt)}' token.`,Dn||ye)}e.assertOptionalToken=ye;function Y(sn,tt,zt){h(1,"assertMissingNode")&&T(sn===void 0,tt||"Unexpected node.",()=>`Node ${ve(sn.kind)} was unexpected'.`,zt||Y)}e.assertMissingNode=Y;function X(sn){}e.type=X;function oe(sn){if(typeof sn!="function")return"";if(Is(sn,"name"))return sn.name;{const tt=Function.prototype.toString.call(sn),zt=/^function\s+([\w$]+)\s*\(/.exec(tt);return zt?zt[1]:""}}e.getFunctionName=oe;function pe(sn){return`{ name: ${Vi(sn.escapedName)}; flags: ${At(sn.flags)}; declarations: ${Wt(sn.declarations,tt=>ve(tt.kind))} }`}e.formatSymbol=pe;function Ce(sn=0,tt,zt){const Dn=ie(tt);if(sn===0)return Dn.length>0&&Dn[0][0]===0?Dn[0][1]:"0";if(zt){const ci=[];let yi=sn;for(const[Qi,Io]of Dn){if(Qi>sn)break;Qi!==0&&Qi&sn&&(ci.push(Io),yi&=~Qi)}if(yi===0)return ci.join("|")}else for(const[ci,yi]of Dn)if(ci===sn)return yi;return sn.toString()}e.formatEnum=Ce;const de=new Map;function ie(sn){const tt=de.get(sn);if(tt)return tt;const zt=[];for(const ci in sn){const yi=sn[ci];typeof yi=="number"&&zt.push([yi,ci])}const Dn=Sv(zt,(ci,yi)=>nl(ci[0],yi[0]));return de.set(sn,Dn),Dn}function ve(sn){return Ce(sn,k6,!1)}e.formatSyntaxKind=ve;function Le(sn){return Ce(sn,J6,!1)}e.formatSnippetKind=Le;function Ue(sn){return Ce(sn,H6,!1)}e.formatScriptKind=Ue;function Ee(sn){return Ce(sn,w6,!0)}e.formatNodeFlags=Ee;function De(sn){return Ce(sn,O6,!0)}e.formatModifierFlags=De;function Me(sn){return Ce(sn,q6,!0)}e.formatTransformFlags=Me;function We(sn){return Ce(sn,K6,!0)}e.formatEmitFlags=We;function At(sn){return Ce(sn,G6,!0)}e.formatSymbolFlags=At;function Se(sn){return Ce(sn,V6,!0)}e.formatTypeFlags=Se;function je(sn){return Ce(sn,U6,!0)}e.formatSignatureFlags=je;function ot(sn){return Ce(sn,j6,!0)}e.formatObjectFlags=ot;function Bt(sn){return Ce(sn,W2,!0)}e.formatFlowFlags=Bt;function vt(sn){return Ce(sn,W6,!0)}e.formatRelationComparisonResult=vt;function $e(sn){return Ce(sn,FF,!0)}e.formatCheckMode=$e;function It(sn){return Ce(sn,zF,!0)}e.formatSignatureCheckMode=It;function tn(sn){return Ce(sn,WF,!0)}e.formatTypeFacts=tn;let rn=!1,Mn;function $n(sn){"__debugFlowFlags"in sn||Object.defineProperties(sn,{__tsDebuggerDisplay:{value(){const 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 Ce(this.flags,W2,!0)}},__debugToString:{value(){return Ar(this)}}})}function gn(sn){rn&&(typeof Object.setPrototypeOf=="function"?(Mn||(Mn=Object.create(Object.prototype),$n(Mn)),Object.setPrototypeOf(sn,Mn)):$n(sn))}e.attachFlowNodeDebugInfo=gn;let Qt;function Yt(sn){"__tsDebuggerDisplay"in sn||Object.defineProperties(sn,{__tsDebuggerDisplay:{value(tt){return tt=String(tt).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${tt}`}}})}function vi(sn){rn&&(typeof Object.setPrototypeOf=="function"?(Qt||(Qt=Object.create(Array.prototype),Yt(Qt)),Object.setPrototypeOf(sn,Qt)):Yt(sn))}e.attachNodeArrayDebugInfo=vi;function so(){if(rn)return;const sn=new WeakMap,tt=new WeakMap;Object.defineProperties(su.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const Dn=this.flags&33554432?"TransientSymbol":"Symbol",ci=this.flags&-33554433;return`${Dn} '${El(this)}'${ci?` (${At(ci)})`:""}`}},__debugFlags:{get(){return At(this.flags)}}}),Object.defineProperties(su.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const Dn=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",ci=this.flags&524288?this.objectFlags&-1344:0;return`${Dn}${this.symbol?` '${El(this.symbol)}'`:""}${ci?` (${ot(ci)})`:""}`}},__debugFlags:{get(){return Se(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?ot(this.objectFlags):""}},__debugTypeToString:{value(){let Dn=sn.get(this);return Dn===void 0&&(Dn=this.checker.typeToString(this),sn.set(this,Dn)),Dn}}}),Object.defineProperties(su.getSignatureConstructor().prototype,{__debugFlags:{get(){return je(this.flags)}},__debugSignatureToString:{value(){var Dn;return(Dn=this.checker)==null?void 0:Dn.signatureToString(this)}}});const zt=[su.getNodeConstructor(),su.getIdentifierConstructor(),su.getTokenConstructor(),su.getSourceFileConstructor()];for(const Dn of zt)Is(Dn.prototype,"__debugKind")||Object.defineProperties(Dn.prototype,{__tsDebuggerDisplay:{value(){return`${al(this)?"GeneratedIdentifier":Ve(this)?`Identifier '${Er(this)}'`:qi(this)?`PrivateIdentifier '${Er(this)}'`:Na(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:hp(this)?`NumericLiteral ${this.text}`:FW(this)?`BigIntLiteral ${this.text}n`:hl(this)?"TypeParameterDeclaration":Ao(this)?"ParameterDeclaration":Ml(this)?"ConstructorDeclaration":tf(this)?"GetAccessorDeclaration":vp(this)?"SetAccessorDeclaration":ZA(this)?"CallSignatureDeclaration":Bk(this)?"ConstructSignatureDeclaration":XE(this)?"IndexSignatureDeclaration":Gk(this)?"TypePredicateNode":Df(this)?"TypeReferenceNode":bh(this)?"FunctionTypeNode":zR(this)?"ConstructorTypeNode":eI(this)?"TypeQueryNode":yp(this)?"TypeLiteralNode":Vk(this)?"ArrayTypeNode":tI(this)?"TupleTypeNode":jW(this)?"OptionalTypeNode":UW(this)?"RestTypeNode":qy(this)?"UnionTypeNode":nI(this)?"IntersectionTypeNode":rI(this)?"ConditionalTypeNode":kS(this)?"InferTypeNode":wS(this)?"ParenthesizedTypeNode":jk(this)?"ThisTypeNode":OS(this)?"TypeOperatorNode":WS(this)?"IndexedAccessTypeNode":GR(this)?"MappedTypeNode":Jy(this)?"LiteralTypeNode":BR(this)?"NamedTupleMember":ag(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 De(Bie(this))}},__debugTransformFlags:{get(){return Me(this.transformFlags)}},__debugIsParseTreeNode:{get(){return aC(this)}},__debugEmitFlags:{get(){return We(Ga(this))}},__debugGetText:{value(ci){if(Ys(this))return"";let yi=tt.get(this);if(yi===void 0){const Qi=No(this),Io=Qi&&Un(Qi);yi=Io?CE(Io,Qi,ci):"",tt.set(this,yi)}return yi}}});rn=!0}e.enableDebugInfo=so;function Wi(sn){const tt=sn&7;let zt=tt===0?"in out":tt===3?"[bivariant]":tt===2?"in":tt===1?"out":tt===4?"[independent]":"";return sn&8?zt+=" (unmeasurable)":sn&16&&(zt+=" (unreliable)"),zt}e.formatVariance=Wi;class Co{__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 gi(this.sources,this.targets||Wt(this.sources,()=>"any"),(zt,Dn)=>`${zt.__debugTypeToString()} -> ${typeof Dn=="string"?Dn:Dn.__debugTypeToString()}`).join(", ");case 2:return gi(this.sources,this.targets,(zt,Dn)=>`${zt.__debugTypeToString()} -> ${Dn().__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=Co;function Ln(sn){return e.isDebugging?Object.setPrototypeOf(sn,Co.prototype):sn}e.attachDebugPrototypeIfDebug=Ln;function Ci(sn){return console.log(Ar(sn))}e.printControlFlowGraph=Ci;function Ar(sn){let tt=-1;function zt(L){return L.id||(L.id=tt,tt--),L.id}let Dn;(L=>{L.lr="─",L.ud="│",L.dr="╭",L.dl="╮",L.ul="╯",L.ur="╰",L.udr="├",L.udl="┤",L.dlr="┬",L.ulr="┴",L.udlr="╫"})(Dn||(Dn={}));let ci;(L=>{L[L.None=0]="None",L[L.Up=1]="Up",L[L.Down=2]="Down",L[L.Left=4]="Left",L[L.Right=8]="Right",L[L.UpDown=3]="UpDown",L[L.LeftRight=12]="LeftRight",L[L.UpLeft=5]="UpLeft",L[L.UpRight=9]="UpRight",L[L.DownLeft=6]="DownLeft",L[L.DownRight=10]="DownRight",L[L.UpDownLeft=7]="UpDownLeft",L[L.UpDownRight=11]="UpDownRight",L[L.UpLeftRight=13]="UpLeftRight",L[L.DownLeftRight=14]="DownLeftRight",L[L.UpDownLeftRight=15]="UpDownLeftRight",L[L.NoChildren=16]="NoChildren"})(ci||(ci={}));const yi=2032,Qi=882,Io=Object.create(null),fa=[],ka=pt(sn,new Set);for(const L of fa)L.text=fn(L.flowNode,L.circular),it(L);const Tn=Rt(ka),wn=Ye(Tn);return _t(ka,0),hn();function He(L){return!!(L.flags&128)}function mt(L){return!!(L.flags&12)&&!!L.antecedents}function ft(L){return!!(L.flags&yi)}function Ct(L){return!!(L.flags&Qi)}function le(L){const me=[];for(const J of L.edges)J.source===L&&me.push(J.target);return me}function Fe(L){const me=[];for(const J of L.edges)J.target===L&&me.push(J.source);return me}function pt(L,me){const J=zt(L);let fe=Io[J];if(fe&&me.has(L))return fe.circular=!0,fe={id:-1,flowNode:L,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},fa.push(fe),fe;if(me.add(L),!fe)if(Io[J]=fe={id:J,flowNode:L,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},fa.push(fe),mt(L))for(const Be of L.antecedents)j(fe,Be,me);else ft(L)&&j(fe,L.antecedent,me);return me.delete(L),fe}function j(L,me,J){const fe=pt(me,J),Be={source:L,target:fe};L.edges.push(Be),fe.edges.push(Be)}function it(L){if(L.level!==-1)return L.level;let me=0;for(const J of Fe(L))me=Math.max(me,it(J)+1);return L.level=me}function Rt(L){let me=0;for(const J of le(L))me=Math.max(me,Rt(J));return me+1}function Ye(L){const me=Oe(Array(L),0);for(const J of fa)me[J.level]=Math.max(me[J.level],J.text.length);return me}function _t(L,me){if(L.lane===-1){L.lane=me,L.endLane=me;const J=le(L);for(let fe=0;fe<J.length;fe++){fe>0&&me++;const Be=J[fe];_t(Be,me),Be.endLane>L.endLane&&(me=Be.endLane)}L.endLane=me}}function Gt(L){if(L&2)return"Start";if(L&4)return"Branch";if(L&8)return"Loop";if(L&16)return"Assignment";if(L&32)return"True";if(L&64)return"False";if(L&128)return"SwitchClause";if(L&256)return"ArrayMutation";if(L&512)return"Call";if(L&1024)return"ReduceLabel";if(L&1)return"Unreachable";throw new Error}function yn(L){const me=Un(L);return CE(me,L,!1)}function fn(L,me){let J=Gt(L.flags);if(me&&(J=`${J}#${zt(L)}`),Ct(L))L.node&&(J+=` (${yn(L.node)})`);else if(He(L)){const fe=[];for(let Be=L.clauseStart;Be<L.clauseEnd;Be++){const ke=L.switchStatement.caseBlock.clauses[Be];EP(ke)?fe.push("default"):fe.push(yn(ke.expression))}J+=` (${fe.join(", ")})`}return me==="circularity"?`Circular(${J})`:J}function hn(){const L=wn.length,me=fa.reduce((Tt,kt)=>Math.max(Tt,kt.lane),0)+1,J=Oe(Array(me),""),fe=wn.map(()=>Array(me)),Be=wn.map(()=>Oe(Array(me),0));for(const Tt of fa){fe[Tt.level][Tt.lane]=Tt;const kt=le(Tt);for(let En=0;En<kt.length;En++){const Gn=kt[En];let qn=8;Gn.lane===Tt.lane&&(qn|=4),En>0&&(qn|=1),En<kt.length-1&&(qn|=2),Be[Tt.level][Gn.lane]|=qn}kt.length===0&&(Be[Tt.level][Tt.lane]|=16);const en=Fe(Tt);for(let En=0;En<en.length;En++){const Gn=en[En];let qn=4;En>0&&(qn|=1),En<en.length-1&&(qn|=2),Be[Tt.level-1][Gn.lane]|=qn}}for(let Tt=0;Tt<L;Tt++)for(let kt=0;kt<me;kt++){const en=Tt>0?Be[Tt-1][kt]:0,En=kt>0?Be[Tt][kt-1]:0;let Gn=Be[Tt][kt];Gn||(en&8&&(Gn|=12),En&2&&(Gn|=3),Be[Tt][kt]=Gn)}for(let Tt=0;Tt<L;Tt++)for(let kt=0;kt<J.length;kt++){const en=Be[Tt][kt],En=en&4?"─":" ",Gn=fe[Tt][kt];Gn?(ke(kt,Gn.text),Tt<L-1&&(ke(kt," "),ke(kt,Lt(En,wn[Tt]-Gn.text.length)))):Tt<L-1&&ke(kt,Lt(En,wn[Tt]+1)),ke(kt,q(en)),ke(kt,en&8&&Tt<L-1&&!fe[Tt+1][kt]?"─":" ")}return` +${J.join(` +`)} +`;function ke(Tt,kt){J[Tt]+=kt}}function q(L){switch(L){case 3:return"│";case 12:return"─";case 5:return"╯";case 9:return"╰";case 6:return"╮";case 10:return"╭";case 7:return"┤";case 11:return"├";case 13:return"┴";case 14:return"┬";case 15:return"╫"}return" "}function Oe(L,me){if(L.fill)L.fill(me);else for(let J=0;J<L.length;J++)L[J]=me;return L}function Lt(L,me){if(L.repeat)return me>0?L.repeat(me):"";let J="";for(;J.length<me;)J+=L;return J}}e.formatControlFlowGraph=Ar})(N||(N={}))}});function PEe(e){const t=LEe.exec(e);if(!t)return;const[,r,i="0",o="0",s="",l=""]=t;if(!(s&&!kEe.test(s))&&!(l&&!OEe.test(l)))return{major:parseInt(r,10),minor:parseInt(i,10),patch:parseInt(o,10),prerelease:s,build:l}}function Lze(e,t){if(e===t)return 0;if(e.length===0)return t.length===0?0:1;if(t.length===0)return-1;const r=Math.min(e.length,t.length);for(let i=0;i<r;i++){const o=e[i],s=t[i];if(o===s)continue;const l=_ne.test(o),u=_ne.test(s);if(l||u){if(l!==u)return l?-1:1;const p=nl(+o,+s);if(p)return p}else{const p=Uu(o,s);if(p)return p}}return nl(e.length,t.length)}function MEe(e){const t=[];for(let r of e.trim().split(FEe)){if(!r)continue;const i=[];r=r.trim();const o=GEe.exec(r);if(o){if(!kze(o[1],o[2],i))return}else for(const s of r.split(zEe)){const l=VEe.exec(s.trim());if(!l||!wze(l[1],l[2],i))return}t.push(i)}return t}function mne(e){const t=BEe.exec(e);if(!t)return;const[,r,i="*",o="*",s,l]=t;return{version:new hm(qf(r)?0:parseInt(r,10),qf(r)||qf(i)?0:parseInt(i,10),qf(r)||qf(i)||qf(o)?0:parseInt(o,10),s,l),major:r,minor:i,patch:o}}function kze(e,t,r){const i=mne(e);if(!i)return!1;const o=mne(t);return o?(qf(i.major)||r.push(uh(">=",i.version)),qf(o.major)||r.push(qf(o.minor)?uh("<",o.version.increment("major")):qf(o.patch)?uh("<",o.version.increment("minor")):uh("<=",o.version)),!0):!1}function wze(e,t,r){const i=mne(t);if(!i)return!1;const{version:o,major:s,minor:l,patch:u}=i;if(qf(s))(e==="<"||e===">")&&r.push(uh("<",hm.zero));else switch(e){case"~":r.push(uh(">=",o)),r.push(uh("<",o.increment(qf(l)?"major":"minor")));break;case"^":r.push(uh(">=",o)),r.push(uh("<",o.increment(o.major>0||qf(l)?"major":o.minor>0||qf(u)?"minor":"patch")));break;case"<":case">=":r.push(qf(l)||qf(u)?uh(e,o.with({prerelease:"0"})):uh(e,o));break;case"<=":case">":r.push(qf(l)?uh(e==="<="?"<":">=",o.increment("major").with({prerelease:"0"})):qf(u)?uh(e==="<="?"<":">=",o.increment("minor").with({prerelease:"0"})):uh(e,o));break;case"=":case void 0:qf(l)||qf(u)?(r.push(uh(">=",o.with({prerelease:"0"}))),r.push(uh("<",o.increment(qf(l)?"major":"minor").with({prerelease:"0"})))):r.push(uh("=",o));break;default:return!1}return!0}function qf(e){return e==="*"||e==="x"||e==="X"}function uh(e,t){return{operator:e,operand:t}}function Oze(e,t){if(t.length===0)return!0;for(const r of t)if(Wze(e,r))return!0;return!1}function Wze(e,t){for(const r of t)if(!Fze(e,r.operator,r.operand))return!1;return!0}function Fze(e,t,r){const 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 N.assertNever(t)}}function zze(e){return Wt(e,Bze).join(" || ")||"*"}function Bze(e){return Wt(e,Gze).join(" ")}function Gze(e){return`${e.operator}${e.operand}`}var LEe,kEe,wEe,OEe,WEe,_ne,oG,hm,k2,FEe,zEe,BEe,GEe,VEe,Vze=I({"src/compiler/semver.ts"(){ra(),LEe=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,kEe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,wEe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,OEe=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,WEe=/^[a-z0-9-]+$/i,_ne=/^(0|[1-9]\d*)$/,oG=class s6{constructor(t,r=0,i=0,o="",s=""){typeof t=="string"&&({major:t,minor:r,patch:i,prerelease:o,build:s}=N.checkDefined(PEe(t),"Invalid version")),N.assert(t>=0,"Invalid argument: major"),N.assert(r>=0,"Invalid argument: minor"),N.assert(i>=0,"Invalid argument: patch");const l=o?To(o)?o:o.split("."):et,u=s?To(s)?s:s.split("."):et;N.assert(Jn(l,p=>wEe.test(p)),"Invalid argument: prerelease"),N.assert(Jn(u,p=>WEe.test(p)),"Invalid argument: build"),this.major=t,this.minor=r,this.patch=i,this.prerelease=l,this.build=u}static tryParse(t){const r=PEe(t);if(!r)return;const{major:i,minor:o,patch:s,prerelease:l,build:u}=r;return new s6(i,o,s,l,u)}compareTo(t){return this===t?0:t===void 0?1:nl(this.major,t.major)||nl(this.minor,t.minor)||nl(this.patch,t.patch)||Lze(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new s6(this.major+1,0,0);case"minor":return new s6(this.major,this.minor+1,0);case"patch":return new s6(this.major,this.minor,this.patch+1);default:return N.assertNever(t)}}with(t){const{major:r=this.major,minor:i=this.minor,patch:o=this.patch,prerelease:s=this.prerelease,build:l=this.build}=t;return new s6(r,i,o,s,l)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return bt(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),bt(this.build)&&(t+=`+${this.build.join(".")}`),t}},oG.zero=new oG(0,0,0,["0"]),hm=oG,k2=class PFe{constructor(t){this._alternatives=t?N.checkDefined(MEe(t),"Invalid range spec."):et}static tryParse(t){const r=MEe(t);if(r){const i=new PFe("");return i._alternatives=r,i}}test(t){return typeof t=="string"&&(t=new hm(t)),Oze(t,this._alternatives)}toString(){return zze(this._alternatives)}},FEe=/\|\|/g,zEe=/\s+/g,BEe=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,GEe=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,VEe=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function jEe(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 jze(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&jEe(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function Uze(){if(eG())try{const{performance:e,PerformanceObserver:t}=yE("perf_hooks");if(jEe(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}function hne(){return aG}var aG,gne,Xs,Hze=I({"src/compiler/performanceCore.ts"(){ra(),aG=jze()||Uze(),gne=aG==null?void 0:aG.performance,Xs=gne?()=>gne.now():Date.now?Date.now:()=>+new Date}}),L6,id,qze=I({"src/compiler/perfLogger.ts"(){try{const e=jN.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";L6=yE(e)}catch{L6=void 0}id=L6!=null&&L6.logEvent?L6:void 0}});function UEe(e,t,r,i){return e?sG(t,r,i):lG}function sG(e,t,r){let i=0;return{enter:o,exit:s};function o(){++i===1&&rl(t)}function s(){--i===0?(rl(r),Qp(e,t,r)):i<0&&N.fail("enter/exit count does not match.")}}function rl(e){if(Ox){const t=YN.get(e)??0;YN.set(e,t+1),Wx.set(e,Xs()),aS==null||aS.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function Qp(e,t,r){if(Ox){const i=(r!==void 0?Wx.get(r):void 0)??Xs(),o=(t!==void 0?Wx.get(t):void 0)??vne,s=Fx.get(e)||0;Fx.set(e,s+(i-o)),aS==null||aS.measure(e,t,r)}}function Jze(e){return YN.get(e)||0}function Kze(e){return Fx.get(e)||0}function Xze(e){Fx.forEach((t,r)=>e(r,t))}function Yze(e){Wx.forEach((t,r)=>e(r))}function $ze(e){e!==void 0?Fx.delete(e):Fx.clear(),aS==null||aS.clearMeasures(e)}function Qze(e){e!==void 0?(YN.delete(e),Wx.delete(e)):(YN.clear(),Wx.clear()),aS==null||aS.clearMarks(e)}function Zze(){return Ox}function e9e(e=gu){var t;return Ox||(Ox=!0,w2||(w2=hne()),w2&&(vne=w2.performance.timeOrigin,(w2.shouldWriteNativeEvents||(t=e==null?void 0:e.cpuProfilingEnabled)!=null&&t.call(e)||e!=null&&e.debugMode)&&(aS=w2.performance))),!0}function t9e(){Ox&&(Wx.clear(),YN.clear(),Fx.clear(),aS=void 0,Ox=!1)}var w2,aS,lG,Ox,vne,Wx,YN,Fx,n9e=I({"src/compiler/performance.ts"(){ra(),lG={enter:Ya,exit:Ya},Ox=!1,vne=Xs(),Wx=new Map,YN=new Map,Fx=new Map}}),yne={};ee(yne,{clearMarks:()=>Qze,clearMeasures:()=>$ze,createTimer:()=>sG,createTimerIf:()=>UEe,disable:()=>t9e,enable:()=>e9e,forEachMark:()=>Yze,forEachMeasure:()=>Xze,getCount:()=>Jze,getDuration:()=>Kze,isEnabled:()=>Zze,mark:()=>rl,measure:()=>Qp,nullTimer:()=>lG});var sS=I({"src/compiler/_namespaces/ts.performance.ts"(){n9e()}}),sr,O2,bne,Ene,r9e=I({"src/compiler/tracing.ts"(){ra(),sS(),(e=>{let t,r=0,i=0,o;const s=[];let l;const u=[];function p(se,G,ne){if(N.assert(!sr,"Tracing already started"),t===void 0)try{t=yE("fs")}catch(oe){throw new Error(`tracing requires having fs +(original error: ${oe.message||oe})`)}o=se,s.length=0,l===void 0&&(l=$r(G,"legend.json")),t.existsSync(G)||t.mkdirSync(G,{recursive:!0});const he=o==="build"?`.${process.pid}-${++r}`:o==="server"?`.${process.pid}`:"",ye=$r(G,`trace${he}.json`),Y=$r(G,`types${he}.json`);u.push({configFilePath:ne,tracePath:ye,typesPath:Y}),i=t.openSync(ye,"w"),sr=e;const X={cat:"__metadata",ph:"M",ts:1e3*Xs(),pid:1,tid:1};t.writeSync(i,`[ +`+[{name:"process_name",args:{name:"tsc"},...X},{name:"thread_name",args:{name:"Main"},...X},{name:"TracingStartedInBrowser",...X,cat:"disabled-by-default-devtools.timeline"}].map(oe=>JSON.stringify(oe)).join(`, +`))}e.startTracing=p;function h(){N.assert(sr,"Tracing is not in progress"),N.assert(!!s.length==(o!=="server")),t.writeSync(i,` +] +`),t.closeSync(i),sr=void 0,s.length?Q(s):u[u.length-1].typesPath=void 0}e.stopTracing=h;function m(se){o!=="server"&&s.push(se)}e.recordType=m,(se=>{se.Parse="parse",se.Program="program",se.Bind="bind",se.Check="check",se.CheckTypes="checkTypes",se.Emit="emit",se.Session="session"})(e.Phase||(e.Phase={}));function y(se,G,ne){U("I",se,G,ne,'"s":"g"')}e.instant=y;const T=[];function A(se,G,ne,he=!1){he&&U("B",se,G,ne),T.push({phase:se,name:G,args:ne,time:1e3*Xs(),separateBeginAndEnd:he})}e.push=A;function R(se){N.assert(T.length>0),O(T.length-1,1e3*Xs(),se),T.length--}e.pop=R;function M(){const se=1e3*Xs();for(let G=T.length-1;G>=0;G--)O(G,se);T.length=0}e.popAll=M;const C=1e3*10;function O(se,G,ne){const{phase:he,name:ye,args:Y,time:X,separateBeginAndEnd:oe}=T[se];oe?(N.assert(!ne,"`results` are not supported for events with `separateBeginAndEnd`"),U("E",he,ye,Y,void 0,G)):C-X%C<=G-X&&U("X",he,ye,{...Y,results:ne},`"dur":${G-X}`,X)}function U(se,G,ne,he,ye,Y=1e3*Xs()){o==="server"&&G==="checkTypes"||(rl("beginTracing"),t.writeSync(i,`, +{"pid":1,"tid":1,"ph":"${se}","cat":"${G}","ts":${Y},"name":"${ne}"`),ye&&t.writeSync(i,`,${ye}`),he&&t.writeSync(i,`,"args":${JSON.stringify(he)}`),t.writeSync(i,"}"),rl("endTracing"),Qp("Tracing","beginTracing","endTracing"))}function K(se){const G=Un(se);return G?{path:G.path,start:ne(ys(G,se.pos)),end:ne(ys(G,se.end))}:void 0;function ne(he){return{line:he.line+1,character:he.character+1}}}function Q(se){var G,ne,he,ye,Y,X,oe,pe,Ce,de,ie,ve,Le,Ue,Ee,De,Me,We,At;rl("beginDumpTypes");const Se=u[u.length-1].typesPath,je=t.openSync(Se,"w"),ot=new Map;t.writeSync(je,"[");const Bt=se.length;for(let vt=0;vt<Bt;vt++){const $e=se[vt],It=$e.objectFlags,tn=$e.aliasSymbol??$e.symbol;let rn;if(It&16|$e.flags&2944)try{rn=(G=$e.checker)==null?void 0:G.typeToString($e)}catch{rn=void 0}let Mn={};if($e.flags&8388608){const Ln=$e;Mn={indexedAccessObjectType:(ne=Ln.objectType)==null?void 0:ne.id,indexedAccessIndexType:(he=Ln.indexType)==null?void 0:he.id}}let $n={};if(It&4){const Ln=$e;$n={instantiatedType:(ye=Ln.target)==null?void 0:ye.id,typeArguments:(Y=Ln.resolvedTypeArguments)==null?void 0:Y.map(Ci=>Ci.id),referenceLocation:K(Ln.node)}}let gn={};if($e.flags&16777216){const Ln=$e;gn={conditionalCheckType:(X=Ln.checkType)==null?void 0:X.id,conditionalExtendsType:(oe=Ln.extendsType)==null?void 0:oe.id,conditionalTrueType:((pe=Ln.resolvedTrueType)==null?void 0:pe.id)??-1,conditionalFalseType:((Ce=Ln.resolvedFalseType)==null?void 0:Ce.id)??-1}}let Qt={};if($e.flags&33554432){const Ln=$e;Qt={substitutionBaseType:(de=Ln.baseType)==null?void 0:de.id,constraintType:(ie=Ln.constraint)==null?void 0:ie.id}}let Yt={};if(It&1024){const Ln=$e;Yt={reverseMappedSourceType:(ve=Ln.source)==null?void 0:ve.id,reverseMappedMappedType:(Le=Ln.mappedType)==null?void 0:Le.id,reverseMappedConstraintType:(Ue=Ln.constraintType)==null?void 0:Ue.id}}let vi={};if(It&256){const Ln=$e;vi={evolvingArrayElementType:Ln.elementType.id,evolvingArrayFinalType:(Ee=Ln.finalArrayType)==null?void 0:Ee.id}}let so;const Wi=$e.checker.getRecursionIdentity($e);Wi&&(so=ot.get(Wi),so||(so=ot.size,ot.set(Wi,so)));const Co={id:$e.id,intrinsicName:$e.intrinsicName,symbolName:(tn==null?void 0:tn.escapedName)&&Vi(tn.escapedName),recursionId:so,isTuple:It&8?!0:void 0,unionTypes:$e.flags&1048576?(De=$e.types)==null?void 0:De.map(Ln=>Ln.id):void 0,intersectionTypes:$e.flags&2097152?$e.types.map(Ln=>Ln.id):void 0,aliasTypeArguments:(Me=$e.aliasTypeArguments)==null?void 0:Me.map(Ln=>Ln.id),keyofType:$e.flags&4194304?(We=$e.type)==null?void 0:We.id:void 0,...Mn,...$n,...gn,...Qt,...Yt,...vi,destructuringPattern:K($e.pattern),firstDeclaration:K((At=tn==null?void 0:tn.declarations)==null?void 0:At[0]),flags:N.formatTypeFlags($e.flags).split("|"),display:rn};t.writeSync(je,JSON.stringify(Co)),vt<Bt-1&&t.writeSync(je,`, +`)}t.writeSync(je,`] +`),t.closeSync(je),rl("endDumpTypes"),Qp("Dump types","beginDumpTypes","endDumpTypes")}function V(){l&&t.writeFileSync(l,JSON.stringify(u))}e.dumpLegend=V})(O2||(O2={})),bne=O2.startTracing,Ene=O2.dumpLegend}});function lS(e,t=!0){const r=F2[e.category];return t?r.toLowerCase():r}var k6,w6,O6,cG,W6,F6,uG,W2,dG,zx,z6,pG,fG,B6,mG,_G,hG,gG,vG,yG,bG,EG,SG,TG,AG,G6,IG,xG,RG,DG,V6,j6,NG,CG,PG,MG,LG,kG,U6,wG,OG,WG,FG,zG,BG,F2,Bx,GG,VG,jG,UG,$N,HG,qG,JG,H6,KG,XG,YG,$G,QG,q6,J6,K6,ZG,eV,tV,nV,rV,iV,oV,aV,z2,sV,HEe=I({"src/compiler/types.ts"(){k6=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.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))(k6||{}),w6=(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))(w6||{}),O6=(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))(O6||{}),cG=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(cG||{}),W6=(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))(W6||{}),F6=(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))(F6||{}),uG=(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))(uG||{}),W2=(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))(W2||{}),dG=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(dG||{}),zx=class{},z6=(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))(z6||{}),pG=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(pG||{}),fG=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(fG||{}),B6=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(B6||{}),mG=(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))(mG||{}),_G=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(_G||{}),hG=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(hG||{}),gG=(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))(gG||{}),vG=(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))(vG||{}),yG=(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))(yG||{}),bG=(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))(bG||{}),EG=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(EG||{}),SG=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(SG||{}),TG=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(TG||{}),AG=(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))(AG||{}),G6=(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))(G6||{}),IG=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(IG||{}),xG=(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))(xG||{}),RG=(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))(RG||{}),DG=(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))(DG||{}),V6=(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))(V6||{}),j6=(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))(j6||{}),NG=(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))(NG||{}),CG=(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))(CG||{}),PG=(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))(PG||{}),MG=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(MG||{}),LG=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(LG||{}),kG=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(kG||{}),U6=(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))(U6||{}),wG=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(wG||{}),OG=(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))(OG||{}),WG=(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))(WG||{}),FG=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(FG||{}),zG=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(zG||{}),BG=(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))(BG||{}),F2=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(F2||{}),Bx=(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))(Bx||{}),GG=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(GG||{}),VG=(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))(VG||{}),jG=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(jG||{}),UG=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(UG||{}),$N=(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))($N||{}),HG=(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))(HG||{}),qG=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(qG||{}),JG=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(JG||{}),H6=(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))(H6||{}),KG=(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))(KG||{}),XG=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(XG||{}),YG=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(YG||{}),$G=(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))($G||{}),QG=(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))(QG||{}),q6=(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))(q6||{}),J6=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(J6||{}),K6=(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))(K6||{}),ZG=(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))(ZG||{}),eV=(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))(eV||{}),tV=(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))(tV||{}),nV=(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))(nV||{}),rV=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(rV||{}),iV=(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))(iV||{}),oV=(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))(oV||{}),aV=(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))(aV||{}),z2={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}},sV=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(sV||{})}});function QN(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t.toString()}function qEe(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}function gA(e,t){return e.getModifiedTime(t)||wp}function Sne(e){return{250:e.Low,500:e.Medium,2e3:e.High}}function i9e(e){if(!e.getEnvironmentVariable)return;const t=o("TSC_WATCH_POLLINGINTERVAL",X6);$6=s("TSC_WATCH_POLLINGCHUNKSIZE",Y6)||$6,G2=s("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",Y6)||G2;function r(l,u){return e.getEnvironmentVariable(`${l}_${u.toUpperCase()}`)}function i(l){let u;return p("Low"),p("Medium"),p("High"),u;function p(h){const m=r(l,h);m&&((u||(u={}))[h]=Number(m))}}function o(l,u){const p=i(l);if(p)return h("Low"),h("Medium"),h("High"),!0;return!1;function h(m){u[m]=p[m]||u[m]}}function s(l,u){const p=i(l);return(t||p)&&Sne(p?{...u,...p}:u)}}function JEe(e,t,r,i,o){let s=r;for(let u=t.length;i&&u;l(),u--){const p=t[r];if(p){if(p.isClosed){t[r]=void 0;continue}}else continue;i--;const h=l9e(p,gA(e,p.fileName));if(p.isClosed){t[r]=void 0;continue}o==null||o(p,r,h),t[r]&&(s<r&&(t[s]=p,t[r]=void 0),s++)}return r;function l(){r++,r===t.length&&(s<r&&(t.length=s),r=0,s=0)}}function o9e(e){const t=[],r=[],i=u(250),o=u(500),s=u(2e3);return l;function l(C,O,U){const K={fileName:C,callback:O,unchangedPolls:0,mtime:gA(e,C)};return t.push(K),T(K,U),{close:()=>{K.isClosed=!0,_A(t,K)}}}function u(C){const O=[];return O.pollingInterval=C,O.pollIndex=0,O.pollScheduled=!1,O}function p(C,O){O.pollIndex=m(O,O.pollingInterval,O.pollIndex,$6[O.pollingInterval]),O.length?M(O.pollingInterval):(N.assert(O.pollIndex===0),O.pollScheduled=!1)}function h(C,O){m(r,250,0,r.length),p(C,O),!O.pollScheduled&&r.length&&M(250)}function m(C,O,U,K){return JEe(e,C,U,K,Q);function Q(V,se,G){G?(V.unchangedPolls=0,C!==r&&(C[se]=void 0,A(V))):V.unchangedPolls!==G2[O]?V.unchangedPolls++:C===r?(V.unchangedPolls=1,C[se]=void 0,T(V,250)):O!==2e3&&(V.unchangedPolls++,C[se]=void 0,T(V,O===250?500:2e3))}}function y(C){switch(C){case 250:return i;case 500:return o;case 2e3:return s}}function T(C,O){y(O).push(C),R(O)}function A(C){r.push(C),R(250)}function R(C){y(C).pollScheduled||M(C)}function M(C){y(C).pollScheduled=e.setTimeout(C===250?h:p,C,C===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",y(C))}}function a9e(e,t,r,i){const o=$p(),s=i?new Map:void 0,l=new Map,u=Mu(t);return p;function p(m,y,T,A){const R=u(m);o.add(R,y).length===1&&s&&s.set(R,r(m)||wp);const M=ai(R)||".",C=l.get(M)||h(ai(m)||".",M,A);return C.referenceCount++,{close:()=>{C.referenceCount===1?(C.close(),l.delete(M)):C.referenceCount--,o.remove(R,y)}}}function h(m,y,T){const A=e(m,1,(R,M)=>{if(!Mo(M))return;const C=go(M,m),O=u(C),U=C&&o.get(O);if(U){let K,Q=1;if(s){const V=s.get(O);if(R==="change"&&(K=r(C)||wp,K.getTime()===V.getTime()))return;K||(K=r(C)||wp),s.set(O,K),V===wp?Q=0:K===wp&&(Q=2)}for(const V of U)V(C,Q,K)}},!1,500,T);return A.referenceCount=0,l.set(y,A),A}}function s9e(e){const t=[];let r=0,i;return o;function o(u,p){const h={fileName:u,callback:p,mtime:gA(e,u)};return t.push(h),l(),{close:()=>{h.isClosed=!0,_A(t,h)}}}function s(){i=void 0,r=JEe(e,t,r,$6[250]),l()}function l(){!t.length||i||(i=e.setTimeout(s,2e3,"pollQueue"))}}function KEe(e,t,r,i,o){const l=Mu(t)(r),u=e.get(l);return u?u.callbacks.push(i):e.set(l,{watcher:o((p,h,m)=>{var y;return(y=e.get(l))==null?void 0:y.callbacks.slice().forEach(T=>T(p,h,m))}),callbacks:[i]}),{close:()=>{const p=e.get(l);p&&(!wx(p.callbacks,i)||p.callbacks.length||(e.delete(l),Cf(p)))}}}function l9e(e,t){const r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,lV(r,i),t),!0):!1}function lV(e,t){return e===0?0:t===0?2:1}function B2(e){return xne(e)}function Tne(e){xne=e}function c9e({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:o,realpath:s,setTimeout:l,clearTimeout:u}){const p=new Map,h=$p(),m=new Map;let y;const T=Lx(!t),A=Mu(t);return(G,ne,he,ye)=>he?R(G,ye,ne):e(G,ne,he,ye);function R(G,ne,he){const ye=A(G);let Y=p.get(ye);Y?Y.refCount++:(Y={watcher:e(G,oe=>{V(oe,ne)||(ne!=null&&ne.synchronousWatchDirectory?(M(ye,oe),Q(G,ye,ne)):C(G,ye,oe,ne))},!1,ne),refCount:1,childWatches:et},p.set(ye,Y),Q(G,ye,ne));const X=he&&{dirName:G,callback:he};return X&&h.add(ye,X),{dirName:G,close:()=>{const oe=N.checkDefined(p.get(ye));X&&h.remove(ye,X),oe.refCount--,!oe.refCount&&(p.delete(ye),Cf(oe),oe.childWatches.forEach(Xm))}}}function M(G,ne,he){let ye,Y;Mo(ne)?ye=ne:Y=ne,h.forEach((X,oe)=>{if(!(Y&&Y.get(oe)===!0)&&(oe===G||uo(G,oe)&&G[oe.length]===ol))if(Y)if(he){const pe=Y.get(oe);pe?pe.push(...he):Y.set(oe,he.slice())}else Y.set(oe,!0);else X.forEach(({callback:pe})=>pe(ye))})}function C(G,ne,he,ye){const Y=p.get(ne);if(Y&&o(G,1)){O(G,ne,he,ye);return}M(ne,he),K(Y)}function O(G,ne,he,ye){const Y=m.get(ne);Y?Y.fileNames.push(he):m.set(ne,{dirName:G,options:ye,fileNames:[he]}),y&&(u(y),y=void 0),y=l(U,1e3,"timerToUpdateChildWatches")}function U(){y=void 0,B2(`sysLog:: onTimerToUpdateChildWatches:: ${m.size}`);const G=Xs(),ne=new Map;for(;!y&&m.size;){const ye=m.entries().next();N.assert(!ye.done);const{value:[Y,{dirName:X,options:oe,fileNames:pe}]}=ye;m.delete(Y);const Ce=Q(X,Y,oe);M(Y,ne,Ce?void 0:pe)}B2(`sysLog:: invokingWatchers:: Elapsed:: ${Xs()-G}ms:: ${m.size}`),h.forEach((ye,Y)=>{const X=ne.get(Y);X&&ye.forEach(({callback:oe,dirName:pe})=>{To(X)?X.forEach(oe):oe(pe)})});const he=Xs()-G;B2(`sysLog:: Elapsed:: ${he}ms:: onTimerToUpdateChildWatches:: ${m.size} ${y}`)}function K(G){if(!G)return;const ne=G.childWatches;G.childWatches=et;for(const he of ne)he.close(),K(p.get(A(he.dirName)))}function Q(G,ne,he){const ye=p.get(ne);if(!ye)return!1;let Y;const X=C6(o(G,1)?eo(i(G),Ce=>{const de=go(Ce,G);return!V(de,he)&&T(de,ha(s(de)))===0?de:void 0}):et,ye.childWatches,(Ce,de)=>T(Ce,de.dirName),oe,Xm,pe);return ye.childWatches=Y||et,X;function oe(Ce){const de=R(Ce,he);pe(de)}function pe(Ce){(Y||(Y=[])).push(Ce)}}function V(G,ne){return bt(V2,he=>se(G,he))||XEe(G,ne,t,r)}function se(G,ne){return G.includes(ne)?!0:t?!1:A(G).includes(ne)}}function u9e(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function d9e(e,t,r){return(i,o,s)=>{i==="rename"?(s||(s=r(e)||wp),t(e,s!==wp?0:2,s)):t(e,1,s)}}function XEe(e,t,r,i){return((t==null?void 0:t.excludeDirectories)||(t==null?void 0:t.excludeFiles))&&(_F(e,t==null?void 0:t.excludeFiles,r,i())||_F(e,t==null?void 0:t.excludeDirectories,r,i()))}function YEe(e,t,r,i,o){return(s,l)=>{if(s==="rename"){const u=l?ha($r(e,l)):e;(!l||!XEe(u,r,i,o))&&t(u)}}}function Ane({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:o,fileSystemEntryExists:s,useCaseSensitiveFileNames:l,getCurrentDirectory:u,fsSupportsRecursiveFsWatch:p,getAccessibleSortedChildDirectories:h,realpath:m,tscWatchFile:y,useNonPollingWatchers:T,tscWatchDirectory:A,inodeWatching:R,fsWatchWithTimestamp:M,sysLog:C}){const O=new Map,U=new Map,K=new Map;let Q,V,se,G,ne=!1;return{watchFile:he,watchDirectory:pe};function he(Ee,De,Me,We){We=X(We,T);const At=N.checkDefined(We.watchFile);switch(At){case 0:return ie(Ee,De,250,void 0);case 1:return ie(Ee,De,Me,void 0);case 2:return ye()(Ee,De,Me,void 0);case 3:return Y()(Ee,De,void 0,void 0);case 4:return ve(Ee,0,d9e(Ee,De,t),!1,Me,Ww(We));case 5:return se||(se=a9e(ve,l,t,M)),se(Ee,De,Me,Ww(We));default:N.assertNever(At)}}function ye(){return Q||(Q=o9e({getModifiedTime:t,setTimeout:r}))}function Y(){return V||(V=s9e({getModifiedTime:t,setTimeout:r}))}function X(Ee,De){if(Ee&&Ee.watchFile!==void 0)return Ee;switch(y){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":De=!0;default:return De?oe(5,1,Ee):{watchFile:4}}}function oe(Ee,De,Me){const We=Me==null?void 0:Me.fallbackPolling;return{watchFile:Ee,fallbackPolling:We===void 0?De:We}}function pe(Ee,De,Me,We){return p?ve(Ee,1,YEe(Ee,De,We,l,u),Me,500,Ww(We)):(G||(G=c9e({useCaseSensitiveFileNames:l,getCurrentDirectory:u,fileSystemEntryExists:s,getAccessibleSortedChildDirectories:h,watchDirectory:Ce,realpath:m,setTimeout:r,clearTimeout:i})),G(Ee,De,Me,We))}function Ce(Ee,De,Me,We){N.assert(!Me);const At=de(We),Se=N.checkDefined(At.watchDirectory);switch(Se){case 1:return ie(Ee,()=>De(Ee),500,void 0);case 2:return ye()(Ee,()=>De(Ee),500,void 0);case 3:return Y()(Ee,()=>De(Ee),void 0,void 0);case 0:return ve(Ee,1,YEe(Ee,De,We,l,u),Me,500,Ww(At));default:N.assertNever(Se)}}function de(Ee){if(Ee&&Ee.watchDirectory!==void 0)return Ee;switch(A){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const De=Ee==null?void 0:Ee.fallbackPolling;return{watchDirectory:0,fallbackPolling:De!==void 0?De:void 0}}}function ie(Ee,De,Me,We){return KEe(O,l,Ee,De,At=>e(Ee,At,Me,We))}function ve(Ee,De,Me,We,At,Se){return KEe(We?K:U,l,Ee,Me,je=>Le(Ee,De,je,We,At,Se))}function Le(Ee,De,Me,We,At,Se){let je,ot;R&&(je=Ee.substring(Ee.lastIndexOf(ol)),ot=je.slice(ol.length));let Bt=s(Ee,De)?$e():rn();return{close:()=>{Bt&&(Bt.close(),Bt=void 0)}};function vt(Mn){Bt&&(C(`sysLog:: ${Ee}:: Changing watcher to ${Mn===$e?"Present":"Missing"}FileSystemEntryWatcher`),Bt.close(),Bt=Mn())}function $e(){if(ne)return C(`sysLog:: ${Ee}:: Defaulting to watchFile`),tn();try{const Mn=(De===1||!M?o:Ue)(Ee,We,R?It:Me);return Mn.on("error",()=>{Me("rename",""),vt(rn)}),Mn}catch(Mn){return ne||(ne=Mn.code==="ENOSPC"),C(`sysLog:: ${Ee}:: Changing to watchFile`),tn()}}function It(Mn,$n){let gn;if($n&&Al($n,"~")&&(gn=$n,$n=$n.slice(0,$n.length-1)),Mn==="rename"&&(!$n||$n===ot||Al($n,je))){const Qt=t(Ee)||wp;gn&&Me(Mn,gn,Qt),Me(Mn,$n,Qt),R?vt(Qt===wp?rn:$e):Qt===wp&&vt(rn)}else gn&&Me(Mn,gn),Me(Mn,$n)}function tn(){return he(Ee,u9e(Me),At,Se)}function rn(){return he(Ee,(Mn,$n,gn)=>{$n===0&&(gn||(gn=t(Ee)||wp),gn!==wp&&(Me("rename","",gn),vt($e)))},At,Se)}}function Ue(Ee,De,Me){let We=t(Ee)||wp;return o(Ee,De,(At,Se,je)=>{At==="change"&&(je||(je=t(Ee)||wp),je.getTime()===We.getTime())||(We=je||t(Ee)||wp,Me(At,Se,We))})}}function Ine(e){const t=e.writeFile;e.writeFile=(r,i,o)=>Hj(r,i,!!o,(s,l,u)=>t.call(e,s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s))}function $Ee(e){gu=e}var cV,X6,wp,Y6,$6,G2,V2,xne,uV,gu,p9e=I({"src/compiler/sys.ts"(){ra(),cV=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(cV||{}),X6=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(X6||{}),wp=new Date(0),Y6={Low:32,Medium:64,High:256},$6=Sne(Y6),G2=Sne(Y6),V2=["/node_modules/.","/.git","/.#"],xne=Ya,uV=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(uV||{}),gu=(()=>{const e="\uFEFF";function t(){const i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,o=yE("fs"),s=yE("path"),l=yE("os");let u;try{u=yE("crypto")}catch{u=void 0}let p,h="./profile.cpuprofile";const m=yE("buffer").Buffer,y=process.platform==="darwin",T=process.platform==="linux"||y,A=l.platform(),R=Y(),M=o.realpathSync.native?process.platform==="win32"?We:o.realpathSync.native:o.realpathSync,C=__filename.endsWith("sys.js")?s.join(s.dirname(__dirname),"__fake__.js"):__filename,O=process.platform==="win32"||y,U=Sd(()=>process.cwd()),{watchFile:K,watchDirectory:Q}=Ane({pollingWatchFileWorker:oe,getModifiedTime:Se,setTimeout,clearTimeout,fsWatchWorker:pe,useCaseSensitiveFileNames:R,getCurrentDirectory:U,fileSystemEntryExists:Ue,fsSupportsRecursiveFsWatch:O,getAccessibleSortedChildDirectories:vt=>ve(vt).directories,realpath:At,tscWatchFile:jN.TSC_WATCHFILE,useNonPollingWatchers:!!jN.TSC_NONPOLLING_WATCHER,tscWatchDirectory:jN.TSC_WATCHDIRECTORY,inodeWatching:T,fsWatchWithTimestamp:y,sysLog:B2}),V={args:process.argv.slice(2),newLine:l.EOL,useCaseSensitiveFileNames:R,write(vt){process.stdout.write(vt)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:de,writeFile:ie,watchFile:K,watchDirectory:Q,resolvePath:vt=>s.resolve(vt),fileExists:Ee,directoryExists:De,getAccessibleFileSystemEntries:ve,createDirectory(vt){if(!V.directoryExists(vt))try{o.mkdirSync(vt)}catch($e){if($e.code!=="EEXIST")throw $e}},getExecutingFilePath(){return C},getCurrentDirectory:U,getDirectories:Me,getEnvironmentVariable(vt){return jN[vt]||""},readDirectory:Le,getModifiedTime:Se,setModifiedTime:je,deleteFile:ot,createHash:u?Bt:QN,createSHA256Hash:u?Bt:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(vt){try{const $e=se(vt);if($e!=null&&$e.isFile())return $e.size}catch{}return 0},exit(vt){he(()=>process.exit(vt))},enableCPUProfiler:G,disableCPUProfiler:he,cpuProfilingEnabled:()=>!!p||Or(process.execArgv,"--cpu-prof")||Or(process.execArgv,"--prof"),realpath:At,debugMode:!!jN.NODE_INSPECTOR_IPC||!!jN.VSCODE_INSPECTOR_OPTIONS||bt(process.execArgv,vt=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(vt))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{yE("source-map-support").install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var vt;const $e=(vt=process.stdout)==null?void 0:vt._handle;$e&&$e.setBlocking&&$e.setBlocking(!0)},bufferFrom:ye,base64decode:vt=>ye(vt,"base64").toString("utf8"),base64encode:vt=>ye(vt).toString("base64"),require:(vt,$e)=>{try{const It=bse($e,vt,V);return{module:yE(It),modulePath:It,error:void 0}}catch(It){return{module:void 0,modulePath:void 0,error:It}}}};return V;function se(vt){return o.statSync(vt,{throwIfNoEntry:!1})}function G(vt,$e){if(p)return $e(),!1;const It=yE("inspector");if(!It||!It.Session)return $e(),!1;const tn=new It.Session;return tn.connect(),tn.post("Profiler.enable",()=>{tn.post("Profiler.start",()=>{p=tn,h=vt,$e()})}),!0}function ne(vt){let $e=0;const It=new Map,tn=Lu(s.dirname(C)),rn=`file://${dh(tn)===1?"":"/"}${tn}`;for(const Mn of vt.nodes)if(Mn.callFrame.url){const $n=Lu(Mn.callFrame.url);gm(rn,$n,R)?Mn.callFrame.url=yA(rn,$n,rn,Mu(R),!0):i.test($n)||(Mn.callFrame.url=(It.has($n)?It:It.set($n,`external${$e}.js`)).get($n),$e++)}return vt}function he(vt){if(p&&p!=="stopping"){const $e=p;return p.post("Profiler.stop",(It,{profile:tn})=>{var rn;if(!It){try{(rn=se(h))!=null&&rn.isDirectory()&&(h=s.join(h,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{o.mkdirSync(s.dirname(h),{recursive:!0})}catch{}o.writeFileSync(h,JSON.stringify(ne(tn)))}p=void 0,$e.disconnect(),vt()}),p="stopping",!0}else return vt(),!1}function ye(vt,$e){return m.from&&m.from!==Int8Array.from?m.from(vt,$e):new m(vt,$e)}function Y(){return A==="win32"||A==="win64"?!1:!Ee(X(__filename))}function X(vt){return vt.replace(/\w/g,$e=>{const It=$e.toUpperCase();return $e===It?$e.toLowerCase():It})}function oe(vt,$e,It){o.watchFile(vt,{persistent:!0,interval:It},rn);let tn;return{close:()=>o.unwatchFile(vt,rn)};function rn(Mn,$n){const gn=+$n.mtime==0||tn===2;if(+Mn.mtime==0){if(gn)return;tn=2}else if(gn)tn=0;else{if(+Mn.mtime==+$n.mtime)return;tn=1}$e(vt,tn,Mn.mtime)}}function pe(vt,$e,It){return o.watch(vt,O?{persistent:!0,recursive:!!$e}:{persistent:!0},It)}function Ce(vt,$e){let It;try{It=o.readFileSync(vt)}catch{return}let tn=It.length;if(tn>=2&&It[0]===254&&It[1]===255){tn&=-2;for(let rn=0;rn<tn;rn+=2){const Mn=It[rn];It[rn]=It[rn+1],It[rn+1]=Mn}return It.toString("utf16le",2)}return tn>=2&&It[0]===255&&It[1]===254?It.toString("utf16le",2):tn>=3&&It[0]===239&&It[1]===187&&It[2]===191?It.toString("utf8",3):It.toString("utf8")}function de(vt,$e){var It,tn;(It=id)==null||It.logStartReadFile(vt);const rn=Ce(vt);return(tn=id)==null||tn.logStopReadFile(),rn}function ie(vt,$e,It){var tn;(tn=id)==null||tn.logEvent("WriteFile: "+vt),It&&($e=e+$e);let rn;try{rn=o.openSync(vt,"w"),o.writeSync(rn,$e,void 0,"utf8")}finally{rn!==void 0&&o.closeSync(rn)}}function ve(vt){var $e;($e=id)==null||$e.logEvent("ReadDir: "+(vt||"."));try{const It=o.readdirSync(vt||".",{withFileTypes:!0}),tn=[],rn=[];for(const Mn of It){const $n=typeof Mn=="string"?Mn:Mn.name;if($n==="."||$n==="..")continue;let gn;if(typeof Mn=="string"||Mn.isSymbolicLink()){const Qt=$r(vt,$n);try{if(gn=se(Qt),!gn)continue}catch{continue}}else gn=Mn;gn.isFile()?tn.push($n):gn.isDirectory()&&rn.push($n)}return tn.sort(),rn.sort(),{files:tn,directories:rn}}catch{return oW}}function Le(vt,$e,It,tn,rn){return mU(vt,$e,It,tn,R,process.cwd(),rn,ve,At)}function Ue(vt,$e){const It=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const tn=se(vt);if(!tn)return!1;switch($e){case 0:return tn.isFile();case 1:return tn.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=It}}function Ee(vt){return Ue(vt,0)}function De(vt){return Ue(vt,1)}function Me(vt){return ve(vt).directories.slice()}function We(vt){return vt.length<260?o.realpathSync.native(vt):o.realpathSync(vt)}function At(vt){try{return M(vt)}catch{return vt}}function Se(vt){var $e;const It=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return($e=se(vt))==null?void 0:$e.mtime}catch{return}finally{Error.stackTraceLimit=It}}function je(vt,$e){try{o.utimesSync(vt,$e,$e)}catch{return}}function ot(vt){try{return o.unlinkSync(vt)}catch{return}}function Bt(vt){const $e=u.createHash("sha256");return $e.update(vt),$e.digest("hex")}}let r;return eG()&&(r=t()),r&&Ine(r),r})(),gu&&gu.getEnvironmentVariable&&(i9e(gu),N.setAssertionLevel(/^development$/i.test(gu.getEnvironmentVariable("NODE_ENV"))?1:0)),gu&&gu.debugMode&&(N.isDebugging=!0)}});function dV(e){return e===47||e===92}function Rne(e){return Q6(e)<0}function dp(e){return Q6(e)>0}function pV(e){const t=Q6(e);return t>0&&t===e.length}function ZN(e){return Q6(e)!==0}function Op(e){return/^\.\.?($|[\\/])/.test(e)}function fV(e){return!ZN(e)&&!Op(e)}function vA(e){return ic(e).includes(".")}function Il(e,t){return e.length>t.length&&Al(e,t)}function Sc(e,t){for(const r of t)if(Il(e,r))return!0;return!1}function Dv(e){return e.length>0&&dV(e.charCodeAt(e.length-1))}function QEe(e){return e>=97&&e<=122||e>=65&&e<=90}function f9e(e,t){const r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){const i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function Q6(e){if(!e)return 0;const t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;const i=e.indexOf(t===47?ol:q2,2);return i<0?e.length:i+1}if(QEe(t)&&e.charCodeAt(1)===58){const i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}const r=e.indexOf(Cne);if(r!==-1){const i=r+Cne.length,o=e.indexOf(ol,i);if(o!==-1){const s=e.slice(0,r),l=e.slice(i,o);if(s==="file"&&(l===""||l==="localhost")&&QEe(e.charCodeAt(o+1))){const u=f9e(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){const t=Q6(e);return t<0?~t:t}function ai(e){e=Lu(e);const t=dh(e);return t===e.length?e:(e=Qb(e),e.slice(0,Math.max(t,e.lastIndexOf(ol))))}function ic(e,t,r){if(e=Lu(e),dh(e)===e.length)return"";e=Qb(e);const o=e.slice(Math.max(dh(e),e.lastIndexOf(ol)+1)),s=t!==void 0&&r!==void 0?Gx(o,t,r):void 0;return s?o.slice(0,o.length-s.length):o}function ZEe(e,t,r){if(uo(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){const i=e.slice(e.length-t.length);if(r(i,t))return i}}function m9e(e,t,r){if(typeof t=="string")return ZEe(e,t,r)||"";for(const i of t){const o=ZEe(e,i,r);if(o)return o}return""}function Gx(e,t,r){if(t)return m9e(Qb(e),t,r?$b:oS);const i=ic(e),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}function _9e(e,t){const r=e.substring(0,t),i=e.substring(t).split(ol);return i.length&&!el(i)&&i.pop(),[r,...i]}function Wc(e,t=""){return e=$r(t,e),_9e(e,dh(e))}function Ay(e,t){return e.length===0?"":(e[0]&&Fc(e[0]))+e.slice(1,t).join(ol)}function Lu(e){return e.includes("\\")?e.replace(n1e,ol):e}function cS(e){if(!bt(e))return[];const t=[e[0]];for(let r=1;r<e.length;r++){const i=e[r];if(i&&i!=="."){if(i===".."){if(t.length>1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function $r(e,...t){e&&(e=Lu(e));for(let r of t)r&&(r=Lu(r),!e||dh(r)!==0?e=r:e=Fc(e)+r);return e}function Iy(e,...t){return ha(bt(t)?$r(e,...t):Lu(e))}function j2(e,t){return cS(Wc(e,t))}function go(e,t){return Ay(j2(e,t))}function ha(e){if(e=Lu(e),!e4.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!e4.test(e)))return e;const r=Ay(cS(Wc(e)));return r&&Dv(e)?Fc(r):r}function h9e(e){return e.length===0?"":e.slice(1).join(ol)}function mV(e,t){return h9e(j2(e,t))}function il(e,t,r){const i=dp(e)?ha(e):go(e,t);return r(i)}function Qb(e){return Dv(e)?e.substr(0,e.length-1):e}function Fc(e){return Dv(e)?e:e+ol}function AE(e){return!ZN(e)&&!Op(e)?"./"+e:e}function U2(e,t,r,i){const o=r!==void 0&&i!==void 0?Gx(e,r,i):Gx(e);return o?e.slice(0,e.length-o.length)+(uo(t,".")?t:"."+t):e}function Dne(e,t){const r=wH(e);return r?e.slice(0,e.length-r.length)+(uo(t,".")?t:"."+t):U2(e,t)}function Nne(e,t,r){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;const i=e.substring(0,dh(e)),o=t.substring(0,dh(t)),s=x6(i,o);if(s!==0)return s;const l=e.substring(i.length),u=t.substring(o.length);if(!e4.test(l)&&!e4.test(u))return r(l,u);const p=cS(Wc(e)),h=cS(Wc(t)),m=Math.min(p.length,h.length);for(let y=1;y<m;y++){const T=r(p[y],h[y]);if(T!==0)return T}return nl(p.length,h.length)}function e1e(e,t){return Nne(e,t,Uu)}function t1e(e,t){return Nne(e,t,x6)}function Dg(e,t,r,i){return typeof r=="string"?(e=$r(r,e),t=$r(r,t)):typeof r=="boolean"&&(i=r),Nne(e,t,Lx(i))}function gm(e,t,r,i){if(typeof r=="string"?(e=$r(r,e),t=$r(r,t)):typeof r=="boolean"&&(i=r),e===void 0||t===void 0)return!1;if(e===t)return!0;const o=cS(Wc(e)),s=cS(Wc(t));if(s.length<o.length)return!1;const l=i?$b:oS;for(let u=0;u<o.length;u++)if(!(u===0?$b:l)(o[u],s[u]))return!1;return!0}function _V(e,t,r){const i=r(e),o=r(t);return uo(i,o+"/")||uo(i,o+"\\")}function hV(e,t,r,i){const o=cS(Wc(e)),s=cS(Wc(t));let l;for(l=0;l<o.length&&l<s.length;l++){const h=i(o[l]),m=i(s[l]);if(!(l===0?$b:r)(h,m))break}if(l===0)return s;const u=s.slice(l),p=[];for(;l<o.length;l++)p.push("..");return["",...p,...u]}function vm(e,t,r){N.assert(dh(e)>0==dh(t)>0,"Paths must either both be absolute or both be relative");const s=hV(e,t,(typeof r=="boolean"?r:!1)?$b:oS,typeof r=="function"?r:tl);return Ay(s)}function eC(e,t,r){return dp(e)?yA(t,e,t,r,!1):e}function H2(e,t,r){return AE(vm(ai(e),t,r))}function yA(e,t,r,i,o){const s=hV(Iy(r,e),Iy(r,t),oS,i),l=s[0];if(o&&dp(l)){const u=l.charAt(0)===ol?"file://":"file:///";s[0]=u+l}return Ay(s)}function ym(e,t){for(;;){const r=t(e);if(r!==void 0)return r;const i=ai(e);if(i===e)return;e=i}}function Z6(e){return Al(e,"/node_modules")}var ol,q2,Cne,n1e,e4,g9e=I({"src/compiler/path.ts"(){ra(),ol="/",q2="\\",Cne="://",n1e=/\\/g,e4=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});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,v9e=I({"src/compiler/diagnosticInformationMap.generated.ts"(){HEe(),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<T> 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<T> 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 <language> or <language>-<territory>. 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 '<reference>'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 od(e){return e>=80}function Pne(e){return e===32||od(e)}function J2(e,t){if(e<t[0])return!1;let r=0,i=t.length,o;for(;r+1<i;){if(o=r+(i-r)/2,o-=o%2,t[o]<=e&&e<=t[o+1])return!0;e<t[o]?i=o:r=o+2}return!1}function t4(e,t){return t>=2?J2(e,u1e):t===1?J2(e,l1e):J2(e,a1e)}function y9e(e,t){return t>=2?J2(e,d1e):t===1?J2(e,c1e):J2(e,s1e)}function b9e(e){const t=[];return e.forEach((r,i)=>{t[r]=i}),t}function pa(e){return _1e[e]}function IE(e){return wne.get(e)}function bA(e){const t=[];let r=0,i=0;for(;r<e.length;){const o=e.charCodeAt(r);switch(r++,o){case 13:e.charCodeAt(r)===10&&r++;case 10:t.push(i),i=r;break;default:o>127&&Hu(o)&&(t.push(i),i=r);break}}return t.push(i),t}function K2(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):n4(Ng(e),t,r,e.text,i)}function n4(e,t,r,i,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:N.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?Ba(e,bA(i)):"unknown"}`));const s=e[t]+r;return o?s>e[t+1]?e[t+1]:typeof i=="string"&&s>i.length?i.length:s:(t<e.length-1?N.assert(s<e[t+1]):i!==void 0&&N.assert(s<=i.length),s)}function Ng(e){return e.lineMap||(e.lineMap=bA(e.text))}function Vx(e,t){const r=tC(e,t);return{line:r,character:t-e[r]}}function tC(e,t,r){let i=Tv(e,t,tl,nl,r);return i<0&&(i=~i-1,N.assert(i!==-1,"position cannot precede the beginning of the file")),i}function nC(e,t,r){if(t===r)return 0;const i=Ng(e),o=Math.min(t,r),s=o===r,l=s?t:r,u=tC(i,o),p=tC(i,l,u);return s?u-p:p-u}function ys(e,t){return Vx(Ng(e),t)}function Cg(e){return E_(e)||Hu(e)}function E_(e){return e===32||e===9||e===11||e===12||e===160||e===133||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Hu(e){return e===10||e===13||e===8232||e===8233}function rC(e){return e>=48&&e<=57}function r1e(e){return rC(e)||e>=65&&e<=70||e>=97&&e<=102}function E9e(e){return e<=1114111}function r4(e){return e>=48&&e<=55}function Mne(e,t){const 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 Pa(e,t,r,i,o){if(Ym(t))return t;let s=!1;for(;;){const 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;t<e.length&&!Hu(e.charCodeAt(t));)t++;s=!1;continue}if(e.charCodeAt(t+1)===42){for(t+=2;t<e.length;){if(e.charCodeAt(t)===42&&e.charCodeAt(t+1)===47){t+=2;break}t++}s=!1;continue}break;case 60:case 124:case 61:case 62:if(iC(e,t)){t=X2(e,t),s=!1;continue}break;case 35:if(t===0&&gV(e,t)){t=vV(e,t),s=!1;continue}break;case 42:if(s){t++,s=!1;continue}break;default:if(l>127&&Cg(l)){t++;continue}break}return t}}function iC(e,t){if(N.assert(t>=0),t===0||Hu(e.charCodeAt(t-1))){const r=e.charCodeAt(t);if(t+o4<e.length){for(let i=0;i<o4;i++)if(e.charCodeAt(t+i)!==r)return!1;return r===61||e.charCodeAt(t+o4)===32}}return!1}function X2(e,t,r){r&&r(f.Merge_conflict_marker_encountered,t,o4);const i=e.charCodeAt(t),o=e.length;if(i===60||i===62)for(;t<o&&!Hu(e.charCodeAt(t));)t++;else for(N.assert(i===124||i===61);t<o;){const s=e.charCodeAt(t);if((s===61||s===62)&&s!==i&&iC(e,t))break;t++}return t}function gV(e,t){return N.assert(t===0),bV.test(e)}function vV(e,t){const r=bV.exec(e)[0];return t=t+r.length,t}function yV(e,t,r,i,o,s,l){let u,p,h,m,y=!1,T=i,A=l;if(r===0){T=!0;const R=i4(t);R&&(r=R.length)}e:for(;r>=0&&r<t.length;){const R=t.charCodeAt(r);switch(R){case 13:t.charCodeAt(r+1)===10&&r++;case 10:if(r++,i)break e;T=!0,y&&(m=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:const M=t.charCodeAt(r+1);let C=!1;if(M===47||M===42){const O=M===47?2:3,U=r;if(r+=2,M===47)for(;r<t.length;){if(Hu(t.charCodeAt(r))){C=!0;break}r++}else for(;r<t.length;){if(t.charCodeAt(r)===42&&t.charCodeAt(r+1)===47){r+=2;break}r++}if(T){if(y&&(A=o(u,p,h,m,s,A),!e&&A))return A;u=U,p=r,h=O,m=C,y=!0}continue}break e;default:if(R>127&&Cg(R)){y&&Hu(R)&&(m=!0),r++;continue}break e}}return y&&(A=o(u,p,h,m,s,A)),A}function Y2(e,t,r,i){return yV(!1,e,t,!1,r,i)}function $2(e,t,r,i){return yV(!1,e,t,!0,r,i)}function Lne(e,t,r,i,o){return yV(!0,e,t,!1,r,i,o)}function kne(e,t,r,i,o){return yV(!0,e,t,!0,r,i,o)}function i1e(e,t,r,i,o,s=[]){return s.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),s}function qh(e,t){return Lne(e,t,i1e,void 0,void 0)}function Zb(e,t){return kne(e,t,i1e,void 0,void 0)}function i4(e){const t=bV.exec(e);if(t)return t[0]}function Jh(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&t4(e,t)}function e0(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&&y9e(e,t)}function Zp(e,t,r){let i=xy(e,0);if(!Jh(i,t))return!1;for(let o=t0(i);o<e.length;o+=t0(i))if(!e0(i=xy(e,o),t,r))return!1;return!0}function Nv(e,t,r=0,i,o,s,l){var u=i,p,h,m,y,T,A,R,M,C=0,O=0,U=0;zt(u,s,l);var K={getTokenFullStart:()=>m,getStartPos:()=>m,getTokenEnd:()=>p,getTextPos:()=>p,getToken:()=>T,getTokenStart:()=>y,getTokenPos:()=>y,getTokenText:()=>u.substring(y,p),getTokenValue:()=>A,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:ot,reScanTemplateToken:$e,reScanTemplateHeadOrNoSubstitutionTemplate:It,scanJsxIdentifier:Qt,scanJsxAttributeValue:Yt,reScanJsxAttributeValue:vi,reScanJsxToken:tn,reScanLessThanToken:rn,reScanHashToken:Mn,reScanQuestionToken:$n,reScanInvalidIdentifier:We,scanJsxToken:gn,scanJsDocToken:Wi,scanJSDocCommentTextToken:so,scan:De,getText:sn,clearCommentDirectives:tt,setText:zt,setScriptTarget:ci,setLanguageVariant:yi,setScriptKind:Qi,setJSDocParsingMode:Io,setOnError:Dn,resetTokenState:fa,setTextPos:fa,setInJSDocType:ka,tryScan:Ar,lookAhead:Ci,scanRange:Ln};return N.isDebugging&&Object.defineProperty(K,"__debugShowCurrentPositionInText",{get:()=>{const Tn=K.getText();return Tn.slice(0,K.getTokenFullStart())+"║"+Tn.slice(K.getTokenFullStart())}}),K;function Q(Tn,wn=p,He,mt){if(o){const ft=p;p=wn,o(Tn,He||0,mt),p=ft}}function V(){let Tn=p,wn=!1,He=!1,mt="";for(;;){const ft=u.charCodeAt(p);if(ft===95){R|=512,wn?(wn=!1,He=!0,mt+=u.substring(Tn,p)):(R|=16384,Q(He?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1)),p++,Tn=p;continue}if(rC(ft)){wn=!0,He=!1,p++;continue}break}return u.charCodeAt(p-1)===95&&(R|=16384,Q(f.Numeric_separators_are_not_allowed_here,p-1,1)),mt+u.substring(Tn,p)}function se(){let Tn=p,wn;if(u.charCodeAt(p)===48)if(p++,u.charCodeAt(p)===95)R|=16896,Q(f.Numeric_separators_are_not_allowed_here,p,1),p--,wn=V();else if(!ne())R|=8192,wn=""+ +A;else if(!A)wn="0";else{A=""+parseInt(A,8),R|=32;const le=T===41,Fe=(le?"-":"")+"0o"+(+A).toString(8);return le&&Tn--,Q(f.Octal_literals_are_not_allowed_Use_the_syntax_0,Tn,p-Tn,Fe),9}else wn=V();let He,mt;u.charCodeAt(p)===46&&(p++,He=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++;const le=p,Fe=V();Fe?(mt=u.substring(ft,le)+Fe,ft=p):Q(f.Digit_expected)}let Ct;if(R&512?(Ct=wn,He&&(Ct+="."+He),mt&&(Ct+=mt)):Ct=u.substring(Tn,ft),R&8192)return Q(f.Decimals_with_leading_zeros_are_not_allowed,Tn,ft-Tn),A=""+ +Ct,9;if(He!==void 0||R&16)return G(Tn,He===void 0&&!!(R&16)),A=""+ +Ct,9;{A=Ct;const le=Ee();return G(Tn),le}}function G(Tn,wn){if(!Jh(xy(u,p),e))return;const He=p,{length:mt}=ve();mt===1&&u[He]==="n"?Q(wn?f.A_bigint_literal_cannot_use_exponential_notation:f.A_bigint_literal_must_be_an_integer,Tn,He-Tn+1):(Q(f.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,He,mt),p=He)}function ne(){const Tn=p;let wn=!0;for(;rC(u.charCodeAt(p));)r4(u.charCodeAt(p))||(wn=!1),p++;return A=u.substring(Tn,p),wn}function he(Tn,wn){const He=Y(Tn,!1,wn);return He?parseInt(He,16):-1}function ye(Tn,wn){return Y(Tn,!0,wn)}function Y(Tn,wn,He){let mt=[],ft=!1,Ct=!1;for(;mt.length<Tn||wn;){let le=u.charCodeAt(p);if(He&&le===95){R|=512,ft?(ft=!1,Ct=!0):Q(Ct?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1),p++;continue}if(ft=He,le>=65&&le<=70)le+=32;else if(!(le>=48&&le<=57||le>=97&&le<=102))break;mt.push(le),p++,Ct=!1}return mt.length<Tn&&(mt=[]),u.charCodeAt(p-1)===95&&Q(f.Numeric_separators_are_not_allowed_here,p-1,1),String.fromCharCode(...mt)}function X(Tn=!1){const wn=u.charCodeAt(p);p++;let He="",mt=p;for(;;){if(p>=h){He+=u.substring(mt,p),R|=4,Q(f.Unterminated_string_literal);break}const ft=u.charCodeAt(p);if(ft===wn){He+=u.substring(mt,p),p++;break}if(ft===92&&!Tn){He+=u.substring(mt,p),He+=pe(!0),mt=p;continue}if((ft===10||ft===13)&&!Tn){He+=u.substring(mt,p),R|=4,Q(f.Unterminated_string_literal);break}p++}return He}function oe(Tn){const wn=u.charCodeAt(p)===96;p++;let He=p,mt="",ft;for(;;){if(p>=h){mt+=u.substring(He,p),R|=4,Q(f.Unterminated_template_literal),ft=wn?15:18;break}const Ct=u.charCodeAt(p);if(Ct===96){mt+=u.substring(He,p),p++,ft=wn?15:18;break}if(Ct===36&&p+1<h&&u.charCodeAt(p+1)===123){mt+=u.substring(He,p),p+=2,ft=wn?16:17;break}if(Ct===92){mt+=u.substring(He,p),mt+=pe(Tn),He=p;continue}if(Ct===13){mt+=u.substring(He,p),p++,p<h&&u.charCodeAt(p)===10&&p++,mt+=` +`,He=p;continue}p++}return N.assert(ft!==void 0),A=mt,ft}function pe(Tn){const wn=p;if(p++,p>=h)return Q(f.Unexpected_end_of_text),"";const He=u.charCodeAt(p);switch(p++,He){case 48:if(p>=h||!rC(u.charCodeAt(p)))return"\0";case 49:case 50:case 51:p<h&&r4(u.charCodeAt(p))&&p++;case 52:case 53:case 54:case 55:if(p<h&&r4(u.charCodeAt(p))&&p++,R|=2048,Tn){const mt=parseInt(u.substring(wn+1,p),8);return Q(f.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,wn,p-wn,"\\x"+mt.toString(16).padStart(2,"0")),String.fromCharCode(mt)}return u.substring(wn,p);case 56:case 57:return R|=2048,Tn?(Q(f.Escape_sequence_0_is_not_allowed,wn,p-wn,u.substring(wn,p)),String.fromCharCode(He)):u.substring(wn,p);case 98:return"\b";case 116:return" ";case 110:return` +`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(p<h&&u.charCodeAt(p)===123){p++;const mt=ye(1,!1),ft=mt?parseInt(mt,16):-1;return ft<0?(R|=2048,Tn&&Q(f.Hexadecimal_digit_expected),u.substring(wn,p)):E9e(ft)?p>=h?(R|=2048,Tn&&Q(f.Unexpected_end_of_text),u.substring(wn,p)):u.charCodeAt(p)!==125?(R|=2048,Tn&&Q(f.Unterminated_Unicode_escape_sequence),u.substring(wn,p)):(p++,R|=8,jx(ft)):(R|=2048,Tn&&Q(f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),u.substring(wn,p))}for(;p<wn+6;p++)if(!(p<h&&r1e(u.charCodeAt(p))))return R|=2048,Tn&&Q(f.Hexadecimal_digit_expected),u.substring(wn,p);return R|=1024,String.fromCharCode(parseInt(u.substring(wn+2,p),16));case 120:for(;p<wn+4;p++)if(!(p<h&&r1e(u.charCodeAt(p))))return R|=2048,Tn&&Q(f.Hexadecimal_digit_expected),u.substring(wn,p);return R|=4096,String.fromCharCode(parseInt(u.substring(wn+2,p),16));case 13:p<h&&u.charCodeAt(p)===10&&p++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(He)}}function Ce(){const Tn=ye(1,!1),wn=Tn?parseInt(Tn,16):-1;let He=!1;return wn<0?(Q(f.Hexadecimal_digit_expected),He=!0):wn>1114111&&(Q(f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),He=!0),p>=h?(Q(f.Unexpected_end_of_text),He=!0):u.charCodeAt(p)===125?p++:(Q(f.Unterminated_Unicode_escape_sequence),He=!0),He?"":jx(wn)}function de(){if(p+5<h&&u.charCodeAt(p+1)===117){const Tn=p;p+=2;const wn=he(4,!1);return p=Tn,wn}return-1}function ie(){if(xy(u,p+1)===117&&xy(u,p+2)===123){const Tn=p;p+=3;const wn=ye(1,!1),He=wn?parseInt(wn,16):-1;return p=Tn,He}return-1}function ve(){let Tn="",wn=p;for(;p<h;){let He=xy(u,p);if(e0(He,e))p+=t0(He);else if(He===92){if(He=ie(),He>=0&&e0(He,e)){p+=3,R|=8,Tn+=Ce(),wn=p;continue}if(He=de(),!(He>=0&&e0(He,e)))break;R|=1024,Tn+=u.substring(wn,p),Tn+=jx(He),p+=6,wn=p}else break}return Tn+=u.substring(wn,p),Tn}function Le(){const Tn=A.length;if(Tn>=2&&Tn<=12){const wn=A.charCodeAt(0);if(wn>=97&&wn<=122){const He=o1e.get(A);if(He!==void 0)return T=He}}return T=80}function Ue(Tn){let wn="",He=!1,mt=!1;for(;;){const ft=u.charCodeAt(p);if(ft===95){R|=512,He?(He=!1,mt=!0):Q(mt?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1),p++;continue}if(He=!0,!rC(ft)||ft-48>=Tn)break;wn+=u[p],p++,mt=!1}return u.charCodeAt(p-1)===95&&Q(f.Numeric_separators_are_not_allowed_here,p-1,1),wn}function Ee(){return u.charCodeAt(p)===110?(A+="n",R&384&&(A=$C(A)+"n"),p++,10):(A=""+(R&128?parseInt(A.slice(2),2):R&256?parseInt(A.slice(2),8):+A),9)}function De(){m=p,R=0;let Tn=!1;for(;;){if(y=p,p>=h)return T=1;const wn=xy(u,p);if(p===0){if(u.slice(0,256).includes("�"))return Q(f.File_appears_to_be_binary),p=h,T=8;if(wn===35&&gV(u,p)){if(p=vV(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<h&&u.charCodeAt(p+1)===10?p+=2:p++,T=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(t){p++;continue}else{for(;p<h&&E_(u.charCodeAt(p));)p++;return T=5}case 33:return u.charCodeAt(p+1)===61?u.charCodeAt(p+2)===61?(p+=3,T=38):(p+=2,T=36):(p++,T=54);case 34:case 39:return A=X(),T=11;case 96:return T=oe(!1);case 37:return u.charCodeAt(p+1)===61?(p+=2,T=70):(p++,T=45);case 38:return u.charCodeAt(p+1)===38?u.charCodeAt(p+2)===61?(p+=3,T=77):(p+=2,T=56):u.charCodeAt(p+1)===61?(p+=2,T=74):(p++,T=51);case 40:return p++,T=21;case 41:return p++,T=22;case 42:if(u.charCodeAt(p+1)===61)return p+=2,T=67;if(u.charCodeAt(p+1)===42)return u.charCodeAt(p+2)===61?(p+=3,T=68):(p+=2,T=43);if(p++,C&&!Tn&&R&1){Tn=!0;continue}return T=42;case 43:return u.charCodeAt(p+1)===43?(p+=2,T=46):u.charCodeAt(p+1)===61?(p+=2,T=65):(p++,T=40);case 44:return p++,T=28;case 45:return u.charCodeAt(p+1)===45?(p+=2,T=47):u.charCodeAt(p+1)===61?(p+=2,T=66):(p++,T=41);case 46:return rC(u.charCodeAt(p+1))?(se(),T=9):u.charCodeAt(p+1)===46&&u.charCodeAt(p+2)===46?(p+=3,T=26):(p++,T=25);case 47:if(u.charCodeAt(p+1)===47){for(p+=2;p<h&&!Hu(u.charCodeAt(p));)p++;if(M=Bt(M,u.slice(y,p),p1e,y),t)continue;return T=2}if(u.charCodeAt(p+1)===42){p+=2;const Fe=u.charCodeAt(p)===42&&u.charCodeAt(p+1)!==47;let pt=!1,j=y;for(;p<h;){const it=u.charCodeAt(p);if(it===42&&u.charCodeAt(p+1)===47){p+=2,pt=!0;break}p++,Hu(it)&&(j=p,R|=1)}if(Fe&&Me()&&(R|=2),M=Bt(M,u.slice(j,p),f1e,j),pt||Q(f.Asterisk_Slash_expected),t)continue;return pt||(R|=4),T=3}return u.charCodeAt(p+1)===61?(p+=2,T=69):(p++,T=44);case 48:if(p+2<h&&(u.charCodeAt(p+1)===88||u.charCodeAt(p+1)===120))return p+=2,A=ye(1,!0),A||(Q(f.Hexadecimal_digit_expected),A="0"),A="0x"+A,R|=64,T=Ee();if(p+2<h&&(u.charCodeAt(p+1)===66||u.charCodeAt(p+1)===98))return p+=2,A=Ue(2),A||(Q(f.Binary_digit_expected),A="0"),A="0b"+A,R|=128,T=Ee();if(p+2<h&&(u.charCodeAt(p+1)===79||u.charCodeAt(p+1)===111))return p+=2,A=Ue(8),A||(Q(f.Octal_digit_expected),A="0"),A="0o"+A,R|=256,T=Ee();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return T=se();case 58:return p++,T=59;case 59:return p++,T=27;case 60:if(iC(u,p)){if(p=X2(u,p,Q),t)continue;return T=7}return u.charCodeAt(p+1)===60?u.charCodeAt(p+2)===61?(p+=3,T=71):(p+=2,T=48):u.charCodeAt(p+1)===61?(p+=2,T=33):r===1&&u.charCodeAt(p+1)===47&&u.charCodeAt(p+2)!==42?(p+=2,T=31):(p++,T=30);case 61:if(iC(u,p)){if(p=X2(u,p,Q),t)continue;return T=7}return u.charCodeAt(p+1)===61?u.charCodeAt(p+2)===61?(p+=3,T=37):(p+=2,T=35):u.charCodeAt(p+1)===62?(p+=2,T=39):(p++,T=64);case 62:if(iC(u,p)){if(p=X2(u,p,Q),t)continue;return T=7}return p++,T=32;case 63:return u.charCodeAt(p+1)===46&&!rC(u.charCodeAt(p+2))?(p+=2,T=29):u.charCodeAt(p+1)===63?u.charCodeAt(p+2)===61?(p+=3,T=78):(p+=2,T=61):(p++,T=58);case 91:return p++,T=23;case 93:return p++,T=24;case 94:return u.charCodeAt(p+1)===61?(p+=2,T=79):(p++,T=53);case 123:return p++,T=19;case 124:if(iC(u,p)){if(p=X2(u,p,Q),t)continue;return T=7}return u.charCodeAt(p+1)===124?u.charCodeAt(p+2)===61?(p+=3,T=76):(p+=2,T=57):u.charCodeAt(p+1)===61?(p+=2,T=75):(p++,T=52);case 125:return p++,T=20;case 126:return p++,T=55;case 64:return p++,T=60;case 92:const He=ie();if(He>=0&&Jh(He,e))return p+=3,R|=8,A=Ce()+ve(),T=Le();const mt=de();return mt>=0&&Jh(mt,e)?(p+=6,R|=1024,A=String.fromCharCode(mt)+ve(),T=Le()):(Q(f.Invalid_character),p++,T=0);case 35:if(p!==0&&u[p+1]==="!")return Q(f.can_only_be_used_at_the_start_of_a_file),p++,T=0;const ft=xy(u,p+1);if(ft===92){p++;const Fe=ie();if(Fe>=0&&Jh(Fe,e))return p+=3,R|=8,A="#"+Ce()+ve(),T=81;const pt=de();if(pt>=0&&Jh(pt,e))return p+=6,R|=1024,A="#"+String.fromCharCode(pt)+ve(),T=81;p--}return Jh(ft,e)?(p++,At(ft,e)):(A="#",Q(f.Invalid_character,p++,t0(wn))),T=81;default:const Ct=At(wn,e);if(Ct)return T=Ct;if(E_(wn)){p+=t0(wn);continue}else if(Hu(wn)){R|=1,p+=t0(wn);continue}const le=t0(wn);return Q(f.Invalid_character,p,le),p+=le,T=0}}}function Me(){switch(U){case 0:return!0;case 1:return!1}return O!==3&&O!==4?!0:U===3?!1:m1e.test(u.slice(m,p))}function We(){N.assert(T===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),p=y=m,R=0;const Tn=xy(u,p),wn=At(Tn,99);return wn?T=wn:(p+=t0(Tn),T)}function At(Tn,wn){let He=Tn;if(Jh(He,wn)){for(p+=t0(He);p<h&&e0(He=xy(u,p),wn);)p+=t0(He);return A=u.substring(y,p),He===92&&(A+=ve()),Le()}}function Se(){if(T===32){if(u.charCodeAt(p)===62)return u.charCodeAt(p+1)===62?u.charCodeAt(p+2)===61?(p+=3,T=73):(p+=2,T=50):u.charCodeAt(p+1)===61?(p+=2,T=72):(p++,T=49);if(u.charCodeAt(p)===61)return p++,T=34}return T}function je(){return N.assert(T===67,"'reScanAsteriskEqualsToken' should only be called on a '*='"),p=y+1,T=64}function ot(){if(T===44||T===69){let Tn=y+1,wn=!1,He=!1;for(;;){if(Tn>=h){R|=4,Q(f.Unterminated_regular_expression_literal);break}const mt=u.charCodeAt(Tn);if(Hu(mt)){R|=4,Q(f.Unterminated_regular_expression_literal);break}if(wn)wn=!1;else if(mt===47&&!He){Tn++;break}else mt===91?He=!0:mt===92?wn=!0:mt===93&&(He=!1);Tn++}for(;Tn<h&&e0(u.charCodeAt(Tn),e);)Tn++;p=Tn,A=u.substring(y,p),T=14}return T}function Bt(Tn,wn,He,mt){const ft=vt(wn.trimStart(),He);return ft===void 0?Tn:Rn(Tn,{range:{pos:mt,end:p},type:ft})}function vt(Tn,wn){const He=wn.exec(Tn);if(He)switch(He[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function $e(Tn){return p=y,T=oe(!Tn)}function It(){return p=y,T=oe(!0)}function tn(Tn=!0){return p=y=m,T=gn(Tn)}function rn(){return T===48?(p=y+1,T=30):T}function Mn(){return T===81?(p=y+1,T=63):T}function $n(){return N.assert(T===61,"'reScanQuestionToken' should only be called on a '??'"),p=y+1,T=58}function gn(Tn=!0){if(m=y=p,p>=h)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 He=0;for(;p<h&&(wn=u.charCodeAt(p),wn!==123);){if(wn===60){if(iC(u,p))return p=X2(u,p,Q),T=7;break}if(wn===62&&Q(f.Unexpected_token_Did_you_mean_or_gt,p,1),wn===125&&Q(f.Unexpected_token_Did_you_mean_or_rbrace,p,1),Hu(wn)&&He===0)He=-1;else{if(!Tn&&Hu(wn)&&He>0)break;Cg(wn)||(He=p)}p++}return A=u.substring(m,p),He===-1?13:12}function Qt(){if(od(T)){for(;p<h;){if(u.charCodeAt(p)===45){A+="-",p++;continue}const wn=p;if(A+=ve(),p===wn)break}return Le()}return T}function Yt(){switch(m=p,u.charCodeAt(p)){case 34:case 39:return A=X(!0),T=11;default:return De()}}function vi(){return p=y=m,Yt()}function so(Tn){if(m=y=p,R=0,p>=h)return T=1;for(let wn=u.charCodeAt(p);p<h&&!Hu(wn)&&wn!==96;wn=xy(u,++p))if(!Tn){if(wn===123)break;if(wn===64&&p-1>=0&&E_(u.charCodeAt(p-1))&&!(p+1<h&&Cg(u.charCodeAt(p+1))))break}return p===y?Wi():(A=u.substring(y,p),T=82)}function Wi(){if(m=y=p,R=0,p>=h)return T=1;const Tn=xy(u,p);switch(p+=t0(Tn),Tn){case 9:case 11:case 12:case 32:for(;p<h&&E_(u.charCodeAt(p));)p++;return T=5;case 64:return T=60;case 13:u.charCodeAt(p)===10&&p++;case 10:return R|=1,T=4;case 42:return T=42;case 123:return T=19;case 125:return T=20;case 91:return T=23;case 93:return T=24;case 60:return T=30;case 62:return T=32;case 61:return T=64;case 44:return T=28;case 46:return T=25;case 96:return T=62;case 35:return T=63;case 92:p--;const wn=ie();if(wn>=0&&Jh(wn,e))return p+=3,R|=8,A=Ce()+ve(),T=Le();const He=de();return He>=0&&Jh(He,e)?(p+=6,R|=1024,A=String.fromCharCode(He)+ve(),T=Le()):(p++,T=0)}if(Jh(Tn,e)){let wn=Tn;for(;p<h&&e0(wn=xy(u,p),e)||u.charCodeAt(p)===45;)p+=t0(wn);return A=u.substring(y,p),wn===92&&(A+=ve()),T=Le()}else return T=0}function Co(Tn,wn){const He=p,mt=m,ft=y,Ct=T,le=A,Fe=R,pt=Tn();return(!pt||wn)&&(p=He,m=mt,y=ft,T=Ct,A=le,R=Fe),pt}function Ln(Tn,wn,He){const mt=h,ft=p,Ct=m,le=y,Fe=T,pt=A,j=R,it=M;zt(u,Tn,wn);const Rt=He();return h=mt,p=ft,m=Ct,y=le,T=Fe,A=pt,R=j,M=it,Rt}function Ci(Tn){return Co(Tn,!0)}function Ar(Tn){return Co(Tn,!1)}function sn(){return u}function tt(){M=void 0}function zt(Tn,wn,He){u=Tn||"",h=He===void 0?u.length:wn+He,fa(wn||0)}function Dn(Tn){o=Tn}function ci(Tn){e=Tn}function yi(Tn){r=Tn}function Qi(Tn){O=Tn}function Io(Tn){U=Tn}function fa(Tn){N.assert(Tn>=0),p=Tn,m=Tn,y=Tn,T=0,A=void 0,R=0}function ka(Tn){C+=Tn?1:-1}}function xy(e,t){return e.codePointAt(t)}function t0(e){return e>=65536?2:1}function S9e(e){if(N.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}function jx(e){return h1e(e)}var Q2,o1e,wne,a1e,s1e,l1e,c1e,u1e,d1e,p1e,f1e,m1e,_1e,o4,bV,h1e,T9e=I({"src/compiler/scanner.ts"(){ra(),Q2={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},o1e=new Map(Object.entries(Q2)),wne=new Map(Object.entries({...Q2,"{":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,"</":31,">>":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})),a1e=[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],s1e=[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],l1e=[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],u1e=[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],d1e=[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],p1e=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,f1e=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,m1e=/@(?:see|link)/i,_1e=b9e(wne),o4=7,bV=/^#!.*/,h1e=String.fromCodePoint?e=>String.fromCodePoint(e):S9e}});function Xc(e){return Op(e)||dp(e)}function Ux(e){return HN(e,HC)}function Z2(e){switch(os(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 Kl(e){return e.start+e.length}function One(e){return e.length===0}function EV(e,t){return t>=e.start&&t<Kl(e)}function eL(e,t){return t>=e.pos&&t<=e.end}function Wne(e,t){return t.start>=e.start&&Kl(t)<=Kl(e)}function g1e(e,t){return Fne(e,t)!==void 0}function Fne(e,t){const r=Bne(e,t);return r&&r.length===0?void 0:r}function v1e(e,t){return tL(e.start,e.length,t.start,t.length)}function a4(e,t,r){return tL(e.start,e.length,t,r)}function tL(e,t,r,i){const o=e+t,s=r+i;return r<=o&&s>=e}function zne(e,t){return t<=Kl(e)&&t>=e.start}function Bne(e,t){const r=Math.max(e.start,t.start),i=Math.min(Kl(e),Kl(t));return r<=i?pc(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 pc(e,t){return vu(e,t-e)}function oC(e){return vu(e.span.start,e.newLength)}function Gne(e){return One(e.span)&&e.newLength===0}function nL(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function Vne(e){if(e.length===0)return vL;if(e.length===1)return e[0];const t=e[0];let r=t.span.start,i=Kl(t.span),o=r+t.newLength;for(let s=1;s<e.length;s++){const l=e[s],u=r,p=i,h=o,m=l.span.start,y=Kl(l.span),T=m+l.newLength;r=Math.min(u,m),i=Math.max(p,p+(y-h)),o=Math.max(T,T+(h-y))}return nL(pc(r,i),o-r)}function y1e(e){if(e&&e.kind===168){for(let t=e;t;t=t.parent)if(ea(t)||di(t)||t.kind===264)return t}}function pp(e,t){return Ao(e)&&Qr(e,31)&&t.kind===176}function jne(e){return ta(e)?Jn(e.elements,Une):!1}function Une(e){return Gc(e)?!0:jne(e.name)}function Hx(e){let t=e.parent;for(;$a(t.parent);)t=t.parent.parent;return t.parent}function Hne(e,t){$a(e)&&(e=Hx(e));let r=t(e);return e.kind===260&&(e=e.parent),e&&e.kind===261&&(r|=t(e),e=e.parent),e&&e.kind===243&&(r|=t(e)),r}function n0(e){return Hne(e,ud)}function SV(e){return Hne(e,zie)}function Cv(e){return Hne(e,A9e)}function A9e(e){return e.flags}function b1e(e,t,r){const i=e.toLowerCase(),o=/^([a-z]+)([_-]([a-z]+))?$/.exec(i);if(!o){r&&r.push(Ul(f.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}const s=o[1],l=o[3];Or(qV,i)&&!u(s,l,r)&&u(s,void 0,r),ine(e);function u(p,h,m){const y=ha(t.getExecutingFilePath()),T=ai(y);let A=$r(T,p);if(h&&(A=A+"-"+h),A=t.resolvePath($r(A,"diagnosticMessages.generated.json")),!t.fileExists(A))return!1;let R="";try{R=t.readFile(A)}catch{return m&&m.push(Ul(f.Unable_to_open_file_0,A)),!1}try{aoe(JSON.parse(R))}catch{return m&&m.push(Ul(f.Corrupted_locale_file_0,A)),!1}return!0}}function Pl(e,t){if(e)for(;e.original!==void 0;)e=e.original;return!e||!t||t(e)?e:void 0}function Vn(e,t){for(;e;){const r=t(e);if(r==="quit")return;if(r)return e;e=e.parent}}function aC(e){return(e.flags&16)===0}function No(e,t){if(e===void 0||aC(e))return e;for(e=e.original;e;){if(aC(e))return!t||t(e)?e:void 0;e=e.original}}function _l(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Vi(e){const t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function Er(e){return Vi(e.escapedText)}function r0(e){const t=IE(e.escapedText);return t?ri(t,Bd):void 0}function El(e){return e.valueDeclaration&&sd(e.valueDeclaration)?Er(e.valueDeclaration.name):Vi(e.escapedName)}function E1e(e){const t=e.parent.parent;if(t){if(Ju(t))return TV(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return TV(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:const i=r.argumentExpression;if(Ve(i))return i}break;case 217:return TV(t.expression);case 256:{if(Ju(t.statement)||yt(t.statement))return TV(t.statement);break}}}}function TV(e){const t=Lo(e);return t&&Ve(t)?t:void 0}function rL(e,t){return!!(ad(e)&&Ve(e.name)&&Er(e.name)===Er(t)||Ll(e)&&bt(e.declarationList.declarations,r=>rL(r,t)))}function qne(e){return e.name||E1e(e)}function ad(e){return!!e.name}function s4(e){switch(e.kind){case 80:return e;case 355:case 348:{const{name:r}=e;if(r.kind===166)return r.right;break}case 213:case 226:{const r=e;switch(zl(r)){case 1:case 4:case 5:case 3:return r3(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 353:return qne(e);case 347:return E1e(e);case 277:{const{expression:r}=e;return Ve(r)?r:void 0}case 212:const t=e;if(n3(t))return t.argumentExpression}return e.name}function Lo(e){if(e!==void 0)return s4(e)||(Os(e)||Gs(e)||Qc(e)?l4(e):void 0)}function l4(e){if(e.parent){if(hc(e.parent)||$a(e.parent))return e.parent.name;if(mr(e.parent)&&e===e.parent.right){if(Ve(e.parent.left))return e.parent.left;if(ws(e.parent.left))return r3(e.parent.left)}else if(Oi(e.parent)&&Ve(e.parent.name))return e.parent.name}else return}function Ry(e){if(Tf(e))return mn(e.modifiers,Eu)}function xE(e){if(Qr(e,98303))return mn(e.modifiers,Aa)}function S1e(e,t){if(e.name)if(Ve(e.name)){const r=e.name.escapedText;return oL(e.parent,t).filter(i=>e_(i)&&Ve(i.name)&&i.name.escapedText===r)}else{const r=e.parent.parameters.indexOf(e);N.assert(r>-1,"Parameters should always be in their parents' parameter list");const i=oL(e.parent,t).filter(e_);if(r<i.length)return[i[r]]}return et}function qx(e){return S1e(e,!1)}function Jne(e){return S1e(e,!0)}function T1e(e,t){const r=e.name.escapedText;return oL(e.parent,t).filter(i=>om(i)&&i.typeParameters.some(o=>o.name.escapedText===r))}function Kne(e){return T1e(e,!1)}function Xne(e){return T1e(e,!0)}function Yne(e){return!!Jf(e,e_)}function $ne(e){return Jf(e,uI)}function Qne(e){return u4(e,ZW)}function AV(e){return Jf(e,Tae)}function A1e(e){return Jf(e,_H)}function Zne(e){return Jf(e,_H,!0)}function I1e(e){return Jf(e,hH)}function ere(e){return Jf(e,hH,!0)}function x1e(e){return Jf(e,gH)}function tre(e){return Jf(e,gH,!0)}function R1e(e){return Jf(e,vH)}function nre(e){return Jf(e,vH,!0)}function rre(e){return Jf(e,$W,!0)}function IV(e){return Jf(e,yH)}function ire(e){return Jf(e,yH,!0)}function xV(e){return Jf(e,Jk)}function c4(e){return Jf(e,bH)}function ore(e){return Jf(e,QW)}function D1e(e){return Jf(e,om)}function RV(e){return Jf(e,eF)}function i0(e){const t=Jf(e,TP);if(t&&t.typeExpression&&t.typeExpression.type)return t}function o0(e){let t=Jf(e,TP);return!t&&Ao(e)&&(t=In(qx(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function iL(e){const t=ore(e);if(t&&t.typeExpression)return t.typeExpression.type;const r=i0(e);if(r&&r.typeExpression){const i=r.typeExpression.type;if(yp(i)){const o=In(i.members,ZA);return o&&o.type}if(bh(i)||qR(i))return i.type}}function oL(e,t){var r;if(!JL(e))return et;let i=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(i===void 0||t){const o=Tj(e,t);N.assert(o.length<2||o[0]!==o[1]),i=Do(o,s=>Zm(s)?s.tags:s),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function a0(e){return oL(e,!1)}function N1e(e){return oL(e,!0)}function Jf(e,t,r){return In(oL(e,r),t)}function u4(e,t){return a0(e).filter(t)}function C1e(e,t){return a0(e).filter(r=>r.kind===t)}function aL(e){return typeof e=="string"?e:e==null?void 0:e.map(t=>t.kind===328?t.text:I9e(t)).join("")}function I9e(e){const 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 Dy(e){if(E0(e)){if(JR(e.parent)){const t=hR(e.parent);if(t&&Ne(t.tags))return Do(t.tags,r=>om(r)?r.typeParameters:void 0)}return et}if($f(e))return N.assert(e.parent.kind===327),Do(e.parent.tags,t=>om(t)?t.typeParameters:void 0);if(e.typeParameters||kae(e)&&e.typeParameters)return e.typeParameters;if(lr(e)){const t=g3(e);if(t.length)return t;const r=o0(e);if(r&&bh(r)&&r.typeParameters)return r.typeParameters}return et}function Jx(e){return e.constraint?e.constraint:om(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function Kh(e){return e.kind===80||e.kind===81}function d4(e){return e.kind===178||e.kind===177}function p4(e){return Fr(e)&&!!(e.flags&64)}function DV(e){return $s(e)&&!!(e.flags&64)}function uS(e){return sa(e)&&!!(e.flags&64)}function qu(e){const t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function sC(e){return qu(e)&&!oI(e)&&!!e.questionDotToken}function f4(e){return sC(e.parent)&&e.parent.expression===e}function lC(e){return!qu(e.parent)||sC(e.parent)||e!==e.parent.expression}function NV(e){return e.kind===226&&e.operatorToken.kind===61}function Pg(e){return Df(e)&&Ve(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function bm(e){return $l(e,8)}function m4(e){return oI(e)&&!!(e.flags&64)}function cC(e){return e.kind===252||e.kind===251}function CV(e){return e.kind===280||e.kind===279}function are(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function PV(e){return are(e)||e.kind===307||e.kind===311}function uC(e){return e.kind===355||e.kind===348}function P1e(e){return sL(e.kind)}function sL(e){return e>=166}function MV(e){return e>=0&&e<=165}function EA(e){return MV(e.kind)}function RE(e){return Is(e,"pos")&&Is(e,"end")}function dC(e){return 9<=e&&e<=15}function DE(e){return dC(e.kind)}function LV(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function Ny(e){return 15<=e&&e<=18}function sre(e){return Ny(e.kind)}function _4(e){const t=e.kind;return t===17||t===18}function SA(e){return tp(e)||Ku(e)}function lL(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 lre(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 s0(e){return lL(e)||lre(e)}function kV(e){return e.kind===11||Ny(e.kind)}function cre(e){return Na(e)||Ve(e)}function al(e){var t;return Ve(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function dS(e){var t;return qi(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function cL(e){const t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function sd(e){return(qo(e)||AA(e))&&qi(e.name)}function Kx(e){return Fr(e)&&qi(e.name)}function Pv(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 pC(e){return!!(OA(e)&31)}function wV(e){return pC(e)||e===126||e===164||e===129}function Aa(e){return Pv(e.kind)}function Qd(e){const t=e.kind;return t===166||t===80}function oc(e){const t=e.kind;return t===80||t===81||t===11||t===9||t===167}function pS(e){const t=e.kind;return t===80||t===206||t===207}function ea(e){return!!e&&TA(e.kind)}function Xx(e){return!!e&&(TA(e.kind)||Rl(e))}function Bs(e){return e&&M1e(e.kind)}function fC(e){return e.kind===112||e.kind===97}function M1e(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function TA(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return M1e(e)}}function OV(e){return $i(e)||L_(e)||Ko(e)&&ea(e.parent)}function Yc(e){const t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function di(e){return e&&(e.kind===263||e.kind===231)}function Cy(e){return e&&(e.kind===177||e.kind===178)}function Wd(e){return qo(e)&&D_(e)}function ure(e){return lr(e)&&Y3(e)?(!OE(e)||!zy(e.expression))&&!TS(e,!0):e.parent&&di(e.parent)&&qo(e)&&!D_(e)}function AA(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function L1e(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function sl(e){return Aa(e)||Eu(e)}function fS(e){const t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178}function h4(e){return fS(e)||Yc(e)}function Mg(e){const t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function ji(e){return aU(e.kind)}function dre(e){switch(e.kind){case 184:case 185:return!0}return!1}function ta(e){if(e){const t=e.kind;return t===207||t===206}return!1}function mC(e){const t=e.kind;return t===209||t===210}function g4(e){const t=e.kind;return t===208||t===232}function uL(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function pre(e){return Oi(e)||Ao(e)||pL(e)||fL(e)}function dL(e){return WV(e)||FV(e)}function WV(e){switch(e.kind){case 206:case 210:return!0}return!1}function pL(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function FV(e){switch(e.kind){case 207:case 209:return!0}return!1}function fL(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Pc(e,!0)}function fre(e){const t=e.kind;return t===211||t===166||t===205}function mre(e){const t=e.kind;return t===211||t===166}function zV(e){return NE(e)||qE(e)}function NE(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function S_(e){return e.kind===213||e.kind===214}function IA(e){const t=e.kind;return t===228||t===15}function Zd(e){return k1e(bm(e).kind)}function k1e(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 BV(e){return w1e(bm(e).kind)}function w1e(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return k1e(e)}}function _re(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function hre(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return DE(e)}}function yt(e){return x9e(bm(e).kind)}function x9e(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 w1e(e)}}function mS(e){const t=e.kind;return t===216||t===234}function O1e(e){return dH(e)||JW(e)}function Py(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&Py(e.statement,t)}return!1}function gre(e){return kl(e)||Yl(e)}function vre(e){return bt(e,gre)}function v4(e){return!TL(e)&&!kl(e)&&!Qr(e,32)&&!ku(e)}function mL(e){return TL(e)||kl(e)||Qr(e,32)}function Yx(e){return e.kind===249||e.kind===250}function y4(e){return Ko(e)||yt(e)}function GV(e){return Ko(e)}function Sf(e){return Vc(e)||yt(e)}function yre(e){const t=e.kind;return t===268||t===267||t===80}function W1e(e){const t=e.kind;return t===268||t===267}function F1e(e){const t=e.kind;return t===80||t===267}function VV(e){const t=e.kind;return t===275||t===274}function _L(e){return e.kind===267||e.kind===266}function T_(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 R9e(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 bre(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 Ere(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 Ju(e){return e.kind===168?e.parent&&e.parent.kind!==352||lr(e):R9e(e.kind)}function Sre(e){return bre(e.kind)}function hL(e){return Ere(e.kind)}function Hi(e){const t=e.kind;return Ere(t)||bre(t)||D9e(e)}function D9e(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!kE(e)}function Tre(e){const t=e.kind;return Ere(t)||bre(t)||t===241}function Are(e){const t=e.kind;return t===283||t===166||t===80}function _C(e){const t=e.kind;return t===110||t===80||t===211||t===295}function gL(e){const t=e.kind;return t===284||t===294||t===285||t===12||t===288}function b4(e){const t=e.kind;return t===291||t===293}function Ire(e){const t=e.kind;return t===11||t===294}function ld(e){const t=e.kind;return t===286||t===285}function E4(e){const t=e.kind;return t===296||t===297}function $x(e){return e.kind>=316&&e.kind<=357}function S4(e){return e.kind===327||e.kind===326||e.kind===328||xA(e)||Qx(e)||jS(e)||E0(e)}function Qx(e){return e.kind>=334&&e.kind<=357}function Mv(e){return e.kind===178}function My(e){return e.kind===177}function Wp(e){if(!JL(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function T4(e){return!!e.type}function Ly(e){return!!e.initializer}function _S(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function jV(e){return e.kind===291||e.kind===293||Mg(e)}function A4(e){return e.kind===183||e.kind===233}function xre(e){let t=Rre;for(const r of e){if(!r.length)continue;let i=0;for(;i<r.length&&i<t&&Cg(r.charCodeAt(i));i++);if(i<t&&(t=i),t===0)return 0}return t===Rre?void 0:t}function ls(e){return e.kind===11||e.kind===15}function xA(e){return e.kind===331||e.kind===332||e.kind===333}function UV(e){const t=el(e.parameters);return!!t&&Xh(t)}function Xh(e){const t=e_(e)?e.typeExpression&&e.typeExpression.type:e.type;return e.dotDotDotToken!==void 0||!!t&&t.kind===325}function z1e(e,t){return t.text.substring(e.pos,e.end).includes("@internal")}function HV(e,t){t??(t=Un(e));const r=No(e);if(r&&r.kind===169){const o=r.parent.parameters.indexOf(r),s=o>0?r.parent.parameters[o-1]:void 0,l=t.text,u=s?So(Zb(l,Pa(l,s.end+1,!1,!0)),qh(l,e.pos)):Zb(l,Pa(l,e.pos,!1,!0));return bt(u)&&z1e(Xa(u),t)}const i=r&&uj(r,t);return!!Xe(i,o=>z1e(o,t))}var vL,qV,Rre,N9e=I({"src/compiler/utilitiesPublic.ts"(){ra(),vL=nL(vu(0,0),0),qV=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],Rre=1073741823}});function pl(e,t){const r=e.declarations;if(r){for(const i of r)if(i.kind===t)return i}}function Dre(e,t){return mn(e.declarations||et,r=>r.kind===t)}function ca(e){const t=new Map;if(e)for(const r of e)t.set(r.escapedName,r);return t}function fh(e){return(e.flags&33554432)!==0}function C9e(){var e="";const 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&&Cg(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:Ya,decreaseIndent:Ya,clear:()=>e=""}}function I4(e,t){return e.configFilePath!==t.configFilePath||Nre(e,t)}function Nre(e,t){return Zx(e,t,gF)}function Cre(e,t){return Zx(e,t,tq)}function Zx(e,t,r){return e!==t&&r.some(i=>!U3(L3(e,i),L3(t,i)))}function Pre(e,t){for(;;){const r=t(e);if(r==="quit")return;if(r!==void 0)return r;if($i(e))return;e=e.parent}}function zc(e,t){const r=e.entries();for(const[i,o]of r){const s=t(o,i);if(s)return s}}function mh(e,t){const r=e.keys();for(const i of r){const o=t(i);if(o)return o}}function x4(e,t){e.forEach((r,i)=>{t.set(i,r)})}function hC(e){const t=Tk.getText();try{return e(Tk),Tk.getText()}finally{Tk.clear(),Tk.writeKeyword(t)}}function yL(e){return e.end-e.pos}function JV(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function Mre(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&&P9e(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function R4(e,t,r,i,o){var s;const l=(s=t.getResolvedModule(e,r,i))==null?void 0:s.alternateResult,u=l&&(pd(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/${aD(o)}`:o]]),p=u?Vo(void 0,u[0],...u[1]):t.typesPackageExists(o)?Vo(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,aD(o)):t.packageBundlesTypes(o)?Vo(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):Vo(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,aD(o));return p&&(p.repopulateInfo=()=>({moduleReference:r,mode:i,packageName:o===r?void 0:o})),p}function P9e(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function D4({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function ky(e){return`${D4(e)}@${e.version}`}function Lre(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 KV(e,t,r,i){N.assert(e.length===t.length);for(let o=0;o<e.length;o++){const s=t[o],l=e[o],u=r(l);if(u?!s||!i(u,s):s)return!0}return!1}function eR(e){return M9e(e),(e.flags&1048576)!==0}function M9e(e){e.flags&2097152||((e.flags&262144||Uo(e,eR))&&(e.flags|=1048576),e.flags|=2097152)}function Un(e){for(;e&&e.kind!==312;)e=e.parent;return e}function N4(e){return Un(e.valueDeclaration||nj(e))}function bL(e,t){return!!e&&(e.scriptKind===1||e.scriptKind===2)&&!e.checkJsDirective&&t===void 0}function kre(e){switch(e.kind){case 241:case 269:case 248:case 249:case 250:return!0}return!1}function wy(e,t){return N.assert(e>=0),Ng(t)[e]}function B1e(e){const t=Un(e),r=ys(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function EL(e,t){N.assert(e>=0);const r=Ng(t),i=e,o=t.text;if(i+1===r.length)return o.length-1;{const s=r[i];let l=r[i+1]-1;for(N.assert(Hu(o.charCodeAt(l)));s<=l&&Hu(o.charCodeAt(l));)l--;return l}}function C4(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 Kf(e){return!Fl(e)}function wre(e,t){return hl(e)?t===e.expression:Rl(e)?t===e.modifiers:gp(e)?t===e.initializer:qo(e)?t===e.questionToken&&Wd(e):hc(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||SL(e.modifiers,t,sl):np(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||SL(e.modifiers,t,sl):Hl(e)?t===e.exclamationToken:Ml(e)?t===e.typeParameters||t===e.type||SL(e.typeParameters,t,hl):tf(e)?t===e.typeParameters||SL(e.typeParameters,t,hl):vp(e)?t===e.typeParameters||t===e.type||SL(e.typeParameters,t,hl):qk(e)?t===e.modifiers||SL(e.modifiers,t,sl):!1}function SL(e,t,r){return!e||To(t)||!r(t)?!1:Or(e,t)}function G1e(e,t,r){if(t===void 0||t.length===0)return e;let i=0;for(;i<e.length&&r(e[i]);++i);return e.splice(i,0,...t),e}function V1e(e,t,r){if(t===void 0)return e;let i=0;for(;i<e.length&&r(e[i]);++i);return e.splice(i,0,t),e}function j1e(e){return Sm(e)||!!(Ga(e)&2097152)}function Yh(e,t){return G1e(e,t,Sm)}function XV(e,t){return G1e(e,t,j1e)}function U1e(e,t){return V1e(e,t,Sm)}function hS(e,t){return V1e(e,t,j1e)}function YV(e,t,r){if(e.charCodeAt(t+1)===47&&t+2<r&&e.charCodeAt(t+2)===47){const i=e.substring(t,r);return!!(xU.test(i)||RU.test(i)||PSe.test(i)||NSe.test(i)||CSe.test(i)||MSe.test(i))}return!1}function P4(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===33}function Ore(e,t){const r=new Map(t.map(l=>[`${ys(e,l.range.end).line}`,l])),i=new Map;return{getUnusedExpectations:o,markUsed:s};function o(){return zo(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 l0(e,t,r){return Fl(e)?e.pos:$x(e)||e.kind===12?Pa((t||Un(e)).text,e.pos,!1,!0):r&&Wp(e)?l0(e.jsDoc[0],t):e.kind===358&&e._children.length>0?l0(e._children[0],t,r):Pa((t||Un(e)).text,e.pos,!1,!1,kL(e))}function $V(e,t){const r=!Fl(e)&&Rm(e)?oi(e.modifiers,Eu):void 0;return r?Pa((t||Un(e)).text,r.end):l0(e,t)}function CE(e,t,r=!1){return gC(e.text,t,r)}function L9e(e){return!!Vn(e,o1)}function M4(e){return!!(Yl(e)&&e.exportClause&&Sh(e.exportClause)&&e.exportClause.name.escapedText==="default")}function gC(e,t,r=!1){if(Fl(t))return"";let i=e.substring(r?t.pos:Pa(e,t.pos),t.end);return L9e(t)&&(i=i.split(/\r\n|\n|\r/).map(o=>o.replace(/^\s*\*/,"").trimStart()).join(` +`)),i}function fc(e,t=!1){return CE(Un(e),e,t)}function k9e(e){return e.pos}function tR(e,t){return Tv(e,t,k9e,nl)}function Ga(e){const t=e.emitNode;return t&&t.flags||0}function Em(e){const t=e.emitNode;return t&&t.internalFlags||0}function Wre(e,t,r){if(t&&w9e(e,r))return CE(t,e);switch(e.kind){case 11:{const i=r&2?Gj:r&1||Ga(e)&16777216?tg:ik;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const i=r&1||Ga(e)&16777216?tg:ik,o=e.rawText??zj(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 N.fail(`Literal kind '${e.kind}' not accounted for.`)}function w9e(e,t){if(Ys(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!FW(e)}function Fre(e){return Mo(e)?'"'+ik(e)+'"':""+e}function zre(e){return ic(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function QV(e){return(Cv(e)&7)!==0||ZV(e)}function ZV(e){const t=R_(e);return t.kind===260&&t.parent.kind===299}function ku(e){return Xl(e)&&(e.name.kind===11||A_(e))}function L4(e){return Xl(e)&&e.name.kind===11}function ej(e){return Xl(e)&&Na(e.name)}function Bre(e){return Xl(e)||Ve(e)}function vC(e){return O9e(e.valueDeclaration)}function O9e(e){return!!e&&e.kind===267&&!e.body}function Gre(e){return e.kind===312||e.kind===267||Xx(e)}function A_(e){return!!(e.flags&2048)}function PE(e){return ku(e)&&tj(e)}function tj(e){switch(e.parent.kind){case 312:return sc(e.parent);case 268:return ku(e.parent.parent)&&$i(e.parent.parent.parent)&&!sc(e.parent.parent.parent)}return!1}function nj(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!PE(r)&&!(Xl(r)&&A_(r)))}function W9e(e){return e===1||e===100||e===199}function RA(e,t){return sc(e)||W9e(wu(t))&&!!e.commonJsModuleIndicator}function rj(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:dd(t,"alwaysStrict")||Cae(e.statements)?!0:sc(e)||rm(t)?wu(t)>=5?!0:!t.noImplicitUseStrict:!1}function ij(e){return!!(e.flags&33554432)||Qr(e,128)}function oj(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!Xx(t)}return!1}function aj(e){switch(N.type(e),e.kind){case 345:case 353:case 330:return!0;default:return sj(e)}}function sj(e){switch(N.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 gS(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function Vre(e){return gS(e)||wE(e)}function k4(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 jre(e){return TL(e)||Xl(e)||ag(e)||zp(e)}function TL(e){return gS(e)||Yl(e)}function lj(e){return Vn(e.parent,t=>!!(bq(t)&1))}function _h(e){return Vn(e.parent,t=>oj(t,t.parent))}function Ure(e,t){let r=_h(e);for(;r;)t(r),r=_h(r)}function xs(e){return!e||yL(e)===0?"(Missing)":fc(e)}function Hre(e){return e.declaration?xs(e.declaration.parameters[0].name):void 0}function AL(e){return e.kind===167&&!ef(e.expression)}function yC(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 _l(e.text);case 167:return ef(e.expression)?_l(e.expression.text):void 0;case 295:return VA(e);default:return N.assertNever(e)}}function nR(e){return N.checkDefined(yC(e))}function fp(e){switch(e.kind){case 110:return"this";case 81:case 80:return yL(e)===0?Er(e):fc(e);case 166:return fp(e.left)+"."+fp(e.right);case 211:return Ve(e.name)||qi(e.name)?fp(e.expression)+"."+fp(e.name):N.assertNever(e.name);case 318:return fp(e.left)+fp(e.right);case 295:return fp(e.namespace)+":"+fp(e.name);default:return N.assertNever(e)}}function kr(e,t,...r){const i=Un(e);return Xf(i,e,t,...r)}function rR(e,t,r,...i){const o=Pa(e.text,t.pos);return $c(e,o,t.end-o,r,...i)}function Xf(e,t,r,...i){const o=vS(e,t);return $c(e,o.start,o.length,r,...i)}function Lg(e,t,r,i){const o=vS(e,t);return w4(e,o.start,o.length,r,i)}function IL(e,t,r,i){const o=Pa(e.text,t.pos);return w4(e,o,t.end-o,r,i)}function qre(e,t,r){N.assertGreaterThanOrEqual(t,0),N.assertGreaterThanOrEqual(r,0),N.assertLessThanOrEqual(t,e.length),N.assertLessThanOrEqual(t+r,e.length)}function w4(e,t,r,i,o){return qre(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 cj(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 Jre(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Kre(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){const r=Nv(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();const i=r.getTokenStart();return pc(i,r.getTokenEnd())}function Xre(e,t){const r=Nv(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function F9e(e,t){const r=Pa(e.text,t.pos);if(t.body&&t.body.kind===241){const{line:i}=ys(e,t.body.pos),{line:o}=ys(e,t.body.end);if(i<o)return vu(r,EL(i,e)-r+1)}return pc(r,t.end)}function vS(e,t){let r=t;switch(t.kind){case 312:{const s=Pa(e.text,0,!1);return s===e.text.length?vu(0,0):hh(e,s)}case 260:case 208:case 263:case 231:case 264:case 267:case 266:case 306:case 262:case 218:case 174:case 177:case 178:case 265:case 172:case 171:case 274:r=t.name;break;case 219:return F9e(e,t);case 296:case 297:{const s=Pa(e.text,t.pos),l=t.statements.length>0?t.statements[0].pos:t.end;return pc(s,l)}case 253:case 229:{const s=Pa(e.text,t.pos);return hh(e,s)}case 238:{const s=Pa(e.text,t.expression.end);return hh(e,s)}case 357:{const s=Pa(e.text,t.tagName.pos);return hh(e,s)}}if(r===void 0)return hh(e,t.pos);N.assert(!Zm(r));const i=Fl(r),o=i||KA(t)?r.pos:Pa(e.text,r.pos);return i?(N.assert(o===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),N.assert(o===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(N.assert(o>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),N.assert(o<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),pc(o,r.end)}function Fp(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function Yf(e){return e.scriptKind===6}function ME(e){return!!(n0(e)&4096)}function O4(e){return!!(n0(e)&8&&!pp(e,e.parent))}function xL(e){return(Cv(e)&7)===6}function RL(e){return(Cv(e)&7)===4}function iR(e){return(Cv(e)&7)===2}function W4(e){return(Cv(e)&7)===1}function yS(e){return e.kind===213&&e.expression.kind===108}function zp(e){return e.kind===213&&e.expression.kind===102}function oR(e){return _P(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function Oy(e){return ag(e)&&Jy(e.argument)&&Na(e.argument.literal)}function Sm(e){return e.kind===244&&e.expression.kind===11}function DL(e){return!!(Ga(e)&2097152)}function F4(e){return DL(e)&&Tc(e)}function z9e(e){return Ve(e.name)&&!e.initializer}function z4(e){return DL(e)&&Ll(e)&&Jn(e.declarationList.declarations,z9e)}function uj(e,t){return e.kind!==12?qh(t.text,e.pos):void 0}function dj(e,t){const r=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?So(Zb(t,e.pos),qh(t,e.pos)):qh(t,e.pos);return mn(r,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function $h(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 H1e(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),N.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:{const{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 H1e(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 Or(t.typeArguments,e)}}}return!1}function H1e(e){return ZW(e.parent)||uI(e.parent)||nf(e.parent)&&!b3(e)}function q1e(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function LE(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 Uo(i,r)}}}function Yre(e,t){return r(e);function r(i){switch(i.kind){case 229:t(i);const 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 $h(i)||Uo(i,r)}}}function pj(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?ah(e.typeArguments):void 0}function $re(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function aR(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 Qre(e){return aR(e)||Cy(e)}function bC(e){return e.parent.kind===261&&e.parent.parent.kind===243}function Zre(e){return lr(e)?La(e.parent)&&mr(e.parent.parent)&&zl(e.parent.parent)===2||B4(e.parent):!1}function B4(e){return lr(e)?mr(e)&&zl(e)===1:!1}function eie(e){return(Oi(e)?iR(e)&&Ve(e.name)&&bC(e):qo(e)?OC(e)&&mc(e):gp(e)&&OC(e))||B4(e)}function tie(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function fj(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function kE(e){return e&&e.kind===241&&ea(e.parent)}function Tm(e){return e&&e.kind===174&&e.parent.kind===210}function G4(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function nie(e){return e&&e.kind===1}function J1e(e){return e&&e.kind===0}function sR(e,t,r,i){return Xe(e==null?void 0:e.properties,o=>{if(!hc(o))return;const s=yC(o.name);return t===s||i&&i===s?r(o):void 0})}function rie(e,t,r){return sR(e,t,i=>fd(i.initializer)?In(i.initializer.elements,o=>Na(o)&&o.text===r):void 0)}function EC(e){if(e&&e.statements.length){const t=e.statements[0].expression;return ri(t,La)}}function V4(e,t,r){return NL(e,t,i=>fd(i.initializer)?In(i.initializer.elements,o=>Na(o)&&o.text===r):void 0)}function NL(e,t,r){return sR(EC(e),t,r)}function Bp(e){return Vn(e.parent,ea)}function iie(e){return Vn(e.parent,Bs)}function au(e){return Vn(e.parent,di)}function oie(e){return Vn(e.parent,t=>di(t)||ea(t)?"quit":Rl(t))}function j4(e){return Vn(e.parent,Xx)}function U4(e){const t=Vn(e.parent,r=>di(r)?"quit":Eu(r));return t&&di(t.parent)?au(t.parent):au(t??e)}function Fd(e,t,r){for(N.assert(e.kind!==312);;){if(e=e.parent,!e)return N.fail();switch(e.kind){case 167:if(r&&di(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&Yc(e.parent.parent)?e=e.parent.parent:Yc(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 aie(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 H4(e){Ve(e)&&(Ac(e.parent)||Tc(e.parent))&&e.parent.name===e&&(e=e.parent);const t=Fd(e,!0,!1);return $i(t)}function sie(e){const t=Fd(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&&Yc(e.parent.parent)?e=e.parent.parent:Yc(e.parent)&&(e=e.parent);break}}}function bS(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 K1e(e){return e.kind===108||zd(e)}function zd(e){const t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function PL(e){const t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function q4(e){var t;return!!e&&Oi(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function lie(e){return!!e&&(np(e)||hc(e))&&mr(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function ML(e){switch(e.kind){case 183:return e.typeName;case 233:return Bl(e.expression)?e.expression:void 0;case 80:case 166:return e}}function J4(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 K4(e,t,r,i){if(e&&ad(t)&&qi(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return r!==void 0&&(e?Ac(r):di(r)&&!jE(t)&&!Jj(t));case 177:case 178:case 174:return t.body!==void 0&&r!==void 0&&(e?Ac(r):di(r));case 169:return e?r!==void 0&&r.body!==void 0&&(r.kind===176||r.kind===174||r.kind===178)&&BE(r)!==t&&i!==void 0&&i.kind===263:!1}return!1}function lR(e,t,r,i){return Tf(t)&&K4(e,t,r,i)}function LL(e,t,r,i){return lR(e,t,r,i)||SC(e,t,r)}function SC(e,t,r){switch(t.kind){case 263:return bt(t.members,i=>LL(e,i,t,r));case 231:return!e&&bt(t.members,i=>LL(e,i,t,r));case 174:case 178:case 176:return bt(t.parameters,i=>lR(e,i,t,r));default:return!1}}function Lv(e,t){if(lR(e,t))return!0;const r=ng(t);return!!r&&SC(e,r,t)}function mj(e,t,r){let i;if(Cy(t)){const{firstAccessor:o,secondAccessor:s,setAccessor:l}=NS(r.members,t),u=Tf(o)?o:s&&Tf(s)?s:void 0;if(!u||t!==u)return!1;i=l==null?void 0:l.parameters}else Hl(t)&&(i=t.parameters);if(lR(e,t,r))return!0;if(i){for(const o of i)if(!GE(o)&&lR(e,o,t,r))return!0}return!1}function _j(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return _j(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function cR(e){const{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function Qh(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!nf(e.parent)&&!uI(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||xA(e.parent)||SP(e.parent)||b0(e.parent)||cR(e);case 318:for(;b0(e.parent);)e=e.parent;return e.parent.kind===186||xA(e.parent)||SP(e.parent)||b0(e.parent)||cR(e);case 81:return mr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||xA(e.parent)||SP(e.parent)||b0(e.parent)||cR(e))return!0;case 9:case 10:case 11:case 15:case 110:return X4(e);default:return!1}}function X4(e){const{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:const r=t;return r.initializer===e&&r.initializer.kind!==261||r.condition===e||r.incrementor===e;case 249:case 250:const 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&&!$h(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return Qh(t)}}function Y4(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function cie(e){return Sh(e)&&!!e.parent.moduleSpecifier}function c0(e){return e.kind===271&&e.moduleReference.kind===283}function TC(e){return N.assert(c0(e)),e.moduleReference.expression}function hj(e){return wE(e)&&DR(e.initializer).arguments[0]}function uR(e){return e.kind===271&&e.moduleReference.kind!==283}function cd(e){return lr(e)}function X1e(e){return!lr(e)}function lr(e){return!!e&&!!(e.flags&524288)}function $4(e){return!!e&&!!(e.flags&134217728)}function gj(e){return!Yf(e)}function kL(e){return!!e&&!!(e.flags&16777216)}function Q4(e){return Df(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 Td(e,t){if(e.kind!==213)return!1;const{expression:r,arguments:i}=e;if(r.kind!==80||r.escapedText!=="require"||i.length!==1)return!1;const o=i[0];return!t||ls(o)}function Z4(e){return Y1e(e,!1)}function wE(e){return Y1e(e,!0)}function uie(e){return $a(e)&&wE(e.parent.parent)}function Y1e(e,t){return Oi(e)&&!!e.initializer&&Td(t?DR(e.initializer):e.initializer,!0)}function vj(e){return Ll(e)&&e.declarationList.declarations.length>0&&Jn(e.declarationList.declarations,t=>Z4(t))}function wL(e){return e===39||e===34}function e3(e,t){return CE(t,e).charCodeAt(0)===34}function AC(e){return mr(e)||ws(e)||Ve(e)||sa(e)}function OL(e){return lr(e)&&e.initializer&&mr(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&Bl(e.name)&&dR(e.name,e.initializer.left)?e.initializer.right:e.initializer}function WL(e){const t=OL(e);return t&&u0(t,zy(e.name))}function B9e(e,t){return Xe(e.properties,r=>hc(r)&&Ve(r.name)&&r.name.escapedText==="value"&&r.initializer&&u0(r.initializer,t))}function DA(e){if(e&&e.parent&&mr(e.parent)&&e.parent.operatorToken.kind===64){const t=zy(e.parent.left);return u0(e.parent.right,t)||G9e(e.parent.left,e.parent.right,t)}if(e&&sa(e)&&SS(e)){const t=B9e(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function u0(e,t){if(sa(e)){const r=hs(e.expression);return r.kind===218||r.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||La(e)&&(e.properties.length===0||t))return e}function G9e(e,t,r){const i=mr(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&u0(t.right,r);if(i&&dR(e,t.left))return i}function die(e){const t=Oi(e.parent)?e.parent.name:mr(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&u0(e.right,zy(t))&&Bl(t)&&dR(t,e.left)}function yj(e){if(mr(e.parent)){const t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&mr(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 dR(e,t){return x_(e)&&x_(t)?Qf(e)===Qf(t):Kh(e)&&t3(t)&&(t.expression.kind===110||Ve(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?dR(e,BL(t)):t3(e)&&t3(t)?kg(e)===kg(t)&&dR(e.expression,t.expression):!1}function FL(e){for(;Pc(e,!0);)e=e.right;return e}function ES(e){return Ve(e)&&e.escapedText==="exports"}function bj(e){return Ve(e)&&e.escapedText==="module"}function Zh(e){return(Fr(e)||zL(e))&&bj(e.expression)&&kg(e)==="exports"}function zl(e){const t=V9e(e);return t===5||lr(e)?t:0}function SS(e){return Ne(e.arguments)===3&&Fr(e.expression)&&Ve(e.expression.expression)&&Er(e.expression.expression)==="Object"&&Er(e.expression.name)==="defineProperty"&&ef(e.arguments[1])&&TS(e.arguments[0],!0)}function t3(e){return Fr(e)||zL(e)}function zL(e){return $s(e)&&ef(e.argumentExpression)}function OE(e,t){return Fr(e)&&(!t&&e.expression.kind===110||Ve(e.name)&&TS(e.expression,!0))||n3(e,t)}function n3(e,t){return zL(e)&&(!t&&e.expression.kind===110||Bl(e.expression)||OE(e.expression,!0))}function TS(e,t){return Bl(e)||OE(e,t)}function BL(e){return Fr(e)?e.name:e.argumentExpression}function V9e(e){if(sa(e)){if(!SS(e))return 0;const t=e.arguments[0];return ES(t)||Zh(t)?8:OE(t)&&kg(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!ws(e.left)||j9e(FL(e))?0:TS(e.left.expression,!0)&&kg(e.left)==="prototype"&&La(Ej(e))?6:GL(e.left)}function j9e(e){return iI(e)&&hp(e.expression)&&e.expression.text==="0"}function r3(e){if(Fr(e))return e.name;const t=hs(e.argumentExpression);return hp(t)||ls(t)?t:e}function kg(e){const t=r3(e);if(t){if(Ve(t))return t.escapedText;if(ls(t)||hp(t))return _l(t.text)}}function GL(e){if(e.expression.kind===110)return 4;if(Zh(e))return 2;if(TS(e.expression,!0)){if(zy(e.expression))return 3;let t=e;for(;!Ve(t.expression);)t=t.expression;const r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&kg(t)==="exports")&&OE(e))return 1;if(TS(e,!0)||$s(e)&&c3(e))return 5}return 0}function Ej(e){for(;mr(e.right);)e=e.right;return e.right}function VL(e){return mr(e)&&zl(e)===3}function pie(e){return lr(e)&&e.parent&&e.parent.kind===244&&(!$s(e)||zL(e))&&!!i0(e.parent)}function jL(e,t){const{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!lr(t)&&!(r.flags&33554432))&&AC(r)&&!AC(t)||r.kind!==t.kind&&Bre(r))&&(e.valueDeclaration=t)}function fie(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return t.kind===262||Oi(t)&&t.initializer&&ea(t.initializer)}function pR(e){var t,r;switch(e.kind){case 260:case 208:return(t=Vn(e.initializer,i=>Td(i,!0)))==null?void 0:t.arguments[0];case 272:case 278:return ri(e.moduleSpecifier,ls);case 271:return ri((r=ri(e.moduleReference,Th))==null?void 0:r.expression,ls);case 273:case 280:return ri(e.parent.moduleSpecifier,ls);case 274:case 281:return ri(e.parent.parent.moduleSpecifier,ls);case 276:return ri(e.parent.parent.parent.moduleSpecifier,ls);case 205:return Oy(e)?e.argument.literal:void 0;default:N.assertNever(e)}}function IC(e){return UL(e)||N.failBadSyntaxKind(e.parent)}function UL(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return zp(e.parent)||Td(e.parent,!1)?e.parent:void 0;case 201:return N.assert(Na(e)),ri(e.parent.parent,ag);default:return}}function fR(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 Oy(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 N.assertNever(e)}}function mR(e){switch(e.kind){case 272:return e.importClause&&ri(e.importClause.namedBindings,Yy);case 271:return e;case 278:return e.exportClause&&ri(e.exportClause,Sh);default:return N.assertNever(e)}}function NA(e){return e.kind===272&&!!e.importClause&&!!e.importClause.name}function i3(e,t){if(e.name){const r=t(e);if(r)return r}if(e.namedBindings){const r=Yy(e.namedBindings)?t(e.namedBindings):Xe(e.namedBindings.elements,t);if(r)return r}}function CA(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 _R(e){const t=qR(e)?Kc(e.parameters):void 0,r=ri(t&&t.name,Ve);return!!r&&r.escapedText==="new"}function $f(e){return e.kind===353||e.kind===345||e.kind===347}function HL(e){return $f(e)||xm(e)}function U9e(e){return Zc(e)&&mr(e.expression)&&e.expression.operatorToken.kind===64?FL(e.expression):void 0}function $1e(e){return Zc(e)&&mr(e.expression)&&zl(e.expression)!==0&&mr(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function Sj(e){switch(e.kind){case 243:const t=PA(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function PA(e){return Ll(e)?Kc(e.declarationList.declarations):void 0}function Q1e(e){return Xl(e)&&e.body&&e.body.kind===267?e.body:void 0}function qL(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 JL(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 Tj(e,t){let r;aR(e)&&Ly(e)&&Wp(e.initializer)&&(r=qr(r,Z1e(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(Wp(i)&&(r=qr(r,Z1e(e,i.jsDoc))),i.kind===169){r=qr(r,(t?Jne:qx)(i));break}if(i.kind===168){r=qr(r,(t?Xne:Kne)(i));break}i=Aj(i)}return r||et}function Z1e(e,t){const r=Xa(t);return Do(t,i=>{if(i===r){const o=mn(i.tags,s=>H9e(e,s));return i.tags===o?[i]:o}else return mn(i.tags,JR)})}function H9e(e,t){return!(TP(t)||eF(t))||!t.parent||!Zm(t.parent)||!Gd(t.parent.parent)||t.parent.parent===e}function Aj(e){const t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||Q1e(t)||Pc(e))return t;if(t.parent&&(PA(t.parent)===e||Pc(t)))return t.parent;if(t.parent&&t.parent.parent&&(PA(t.parent.parent)||Sj(t.parent.parent)===e||$1e(t.parent.parent)))return t.parent.parent}function KL(e){if(e.symbol)return e.symbol;if(!Ve(e.name))return;const t=e.name.escapedText,r=d0(e);if(!r)return;const i=In(r.parameters,o=>o.name.kind===80&&o.name.escapedText===t);return i&&i.symbol}function o3(e){if(Zm(e.parent)&&e.parent.tags){const t=In(e.parent.tags,$f);if(t)return t}return d0(e)}function Ij(e){return u4(e,JR)}function d0(e){const t=p0(e);if(t)return gp(t)&&t.type&&ea(t.type)?t.type:ea(t)?t:void 0}function p0(e){const t=AS(e);if(t)return $1e(t)||U9e(t)||Sj(t)||PA(t)||Q1e(t)||t}function AS(e){const t=hR(e);if(!t)return;const r=t.parent;if(r&&r.jsDoc&&t===el(r.jsDoc))return r}function hR(e){return Vn(e.parent,Zm)}function mie(e){const t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&In(r,i=>i.name.escapedText===t)}function eSe(e){return!!e.typeArguments}function _ie(e){let t=e.parent;for(;;){switch(t.kind){case 226:const r=t,i=r.operatorToken.kind;return Ov(i)&&r.left===e?r:void 0;case 224:case 225:const o=t,s=o.operator;return s===46||s===47?o:void 0;case 249:case 250:const 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 MA(e){const t=_ie(e);if(!t)return 0;switch(t.kind){case 226:const r=t.operatorToken.kind;return r===64||WC(r)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function eg(e){return!!_ie(e)}function q9e(e){const t=hs(e.right);return t.kind===226&&CH(t.operatorToken.kind)}function xj(e){const t=_ie(e);return!!t&&Pc(t,!0)&&q9e(t)}function hie(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 gie(e){return Os(e)||Gs(e)||AA(e)||Tc(e)||Ml(e)}function tSe(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function XL(e){return tSe(e,196)}function kv(e){return tSe(e,217)}function vie(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function YL(e){for(;wS(e);)e=e.type;return e}function hs(e,t){return $l(e,t?17:1)}function Rj(e){return e.kind!==211&&e.kind!==212?!1:(e=kv(e.parent),e&&e.kind===220)}function WE(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function wg(e){return!$i(e)&&!ta(e)&&Ju(e.parent)&&e.parent.name===e}function xC(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(Za(t))return t.parent;case 80:if(Ju(t))return t.name===e?t:void 0;if(Id(t)){const r=t.parent;return e_(r)&&r.name===t?r:void 0}else{const r=t.parent;return mr(r)&&zl(r)!==0&&(r.left.symbol||r.symbol)&&Lo(r)===e?r:void 0}case 81:return Ju(t)&&t.name===e?t:void 0;default:return}}function $L(e){return ef(e)&&e.parent.kind===167&&Ju(e.parent.parent)}function yie(e){const 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 nSe(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&&gR(e)?!0:lr(e)&&(mr(e)&&zl(e)===2&&gR(e)||Fr(e)&&mr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&QL(e.parent.right))}function Dj(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 Dj(e)}}function QL(e){return Bl(e)||Qc(e)}function gR(e){const t=Nj(e);return QL(t)}function Nj(e){return kl(e)?e.expression:e.right}function bie(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function I_(e){const t=FE(e);if(t&&lr(e)){const r=$ne(e);if(r)return r.class}return t}function FE(e){const t=ZL(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function vR(e){if(lr(e))return Qne(e).map(t=>t.class);{const t=ZL(e.heritageClauses,119);return t==null?void 0:t.types}}function RC(e){return md(e)?DC(e)||et:di(e)&&So(hA(I_(e)),vR(e))||et}function DC(e){const t=ZL(e.heritageClauses,96);return t?t.types:void 0}function ZL(e,t){if(e){for(const r of e)if(r.token===t)return r}}function f0(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Bd(e){return 83<=e&&e<=165}function Cj(e){return 19<=e&&e<=79}function a3(e){return Bd(e)||Cj(e)}function s3(e){return 128<=e&&e<=165}function Pj(e){return Bd(e)&&!s3(e)}function rSe(e){return 119<=e&&e<=127}function LA(e){const t=IE(e);return t!==void 0&&Pj(t)}function iSe(e){const t=IE(e);return t!==void 0&&Bd(t)}function Mj(e){const t=r0(e);return!!t&&!s3(t)}function yR(e){return 2<=e&&e<=7}function Bc(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:Qr(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function NC(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&Qr(e,1024)}return!1}function ef(e){return ls(e)||hp(e)}function l3(e){return Xy(e)&&(e.operator===40||e.operator===41)&&hp(e.operand)}function Wy(e){const t=Lo(e);return!!t&&c3(t)}function c3(e){if(!(e.kind===167||e.kind===212))return!1;const t=$s(e)?hs(e.argumentExpression):e.expression;return!ef(t)&&!l3(t)}function IS(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return _l(e.text);case 167:const t=e.expression;return ef(t)?_l(t.text):l3(t)?t.operator===41?pa(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return VA(e);default:return N.assertNever(e)}}function x_(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Qf(e){return Kh(e)?Er(e):Qm(e)?oP(e):e.text}function CC(e){return Kh(e)?e.escapedText:Qm(e)?VA(e):_l(e.text)}function oSe(e){return`__@${Sa(e)}@${e.escapedName}`}function ek(e,t){return`__#${Sa(e)}@${t}`}function tk(e){return uo(e.escapedName,"__@")}function Eie(e){return uo(e.escapedName,"__#")}function aSe(e){return e.kind===80&&e.escapedText==="Symbol"}function Sie(e){return Ve(e)?Er(e)==="__proto__":Na(e)&&e.text==="__proto__"}function PC(e,t){switch(e=$l(e),e.kind){case 231:if(Vq(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 Lj(e){switch(e.kind){case 303:return!Sie(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(!Lj(e))return!1;switch(e.kind){case 303:return PC(e.initializer,t);case 304:return PC(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return PC(e.initializer,t);case 226:return PC(e.right,t);case 277:return PC(e.expression,t)}}function kj(e){return e.escapedText==="push"||e.escapedText==="unshift"}function zE(e){return R_(e).kind===169}function R_(e){for(;e.kind===208;)e=e.parent.parent;return e}function wj(e){const t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===312}function Ys(e){return Ym(e.pos)||Ym(e.end)}function sSe(e){return No(e,$i)||e}function Oj(e){const t=Fj(e),r=e.kind===214&&e.arguments!==void 0;return Wj(e.kind,t,r)}function Wj(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 MC(e){const t=Fj(e),r=e.kind===214&&e.arguments!==void 0;return nk(e.kind,t,r)}function Fj(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}function nk(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 rk(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 rk(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 bR(e){return mn(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function ER(){let e=[];const t=[],r=new Map;let i=!1;return{add:s,lookup:o,getGlobalDiagnostics:l,getDiagnostics:u};function o(p){let h;if(p.file?h=r.get(p.file.fileName):h=e,!h)return;const m=Tv(h,p,tl,C3);if(m>=0)return h[m]}function s(p){let h;p.file?(h=r.get(p.file.fileName),h||(h=[],r.set(p.file.fileName,h),by(t,p.file.fileName,Uu))):(i&&(i=!1,e=e.slice()),h=e),by(h,p,C3)}function l(){return i=!0,e}function u(p){if(p)return r.get(p)||[];const h=kp(t,m=>r.get(m));return e.length&&h.unshift(...e),h}}function zj(e){return e.replace(LSe,"\\${")}function Tie(e){return!!((e.templateFlags||0)&2048)}function Bj(e){return e&&!!(XA(e)?Tie(e):Tie(e.head)||bt(e.templateSpans,t=>Tie(t.literal)))}function lSe(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function J9e(e,t,r){if(e.charCodeAt(0)===0){const i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return WSe.get(e)||lSe(e.charCodeAt(0))}function tg(e,t){const r=t===96?OSe:t===39?wSe:kSe;return e.replace(r,J9e)}function ik(e,t){return e=tg(e,t),Loe.test(e)?e.replace(Loe,r=>lSe(r.charCodeAt(0))):e}function K9e(e){return"&#x"+e.toString(16).toUpperCase()+";"}function X9e(e){return e.charCodeAt(0)===0?"�":BSe.get(e)||K9e(e.charCodeAt(0))}function Gj(e,t){const r=t===39?zSe:FSe;return e.replace(r,X9e)}function Zf(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&Y9e(e.charCodeAt(0))?e.substring(1,t-1):e}function Y9e(e){return e===39||e===34||e===96}function SR(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}function u3(e){const t=aP[1];for(let r=aP.length;r<=e;r++)aP.push(aP[r-1]+t);return aP[e]}function TR(){return aP[1].length}function ok(e){var t,r,i,o,s,l=!1;function u(C){const O=bA(C);O.length>1?(o=o+O.length-1,s=t.length-C.length+Xa(O),i=s-t.length===0):i=!1}function p(C){C&&C.length&&(i&&(C=u3(r)+C,i=!1),t+=C,u(C))}function h(C){C&&(l=!1),p(C)}function m(C){C&&(l=!0),p(C)}function y(){t="",r=0,i=!0,o=0,s=0,l=!1}function T(C){C!==void 0&&(t+=C,u(C),l=!1)}function A(C){C&&C.length&&h(C)}function R(C){(!i||C)&&(t+=e,o++,s=t.length,i=!0,l=!1)}function M(){return i?t.length:t.length+e.length}return y(),{write:h,rawWrite:T,writeLiteral:A,writeLine:R,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>o,getColumn:()=>i?r*TR():t.length-s,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>l,hasTrailingWhitespace:()=>!!t.length&&Cg(t.charCodeAt(t.length-1)),clear:y,writeKeyword:h,writeOperator:h,writeParameter:h,writeProperty:h,writePunctuation:h,writeSpace:h,writeStringLiteral:h,writeSymbol:(C,O)=>h(C),writeTrailingSemicolon:h,writeComment:m,getTextPosWithWriteLine:M}}function Vj(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 AR(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function wv(e){return Mu(AR(e))}function d3(e,t,r){return t.moduleName||jj(e,t.fileName,r&&r.fileName)}function cSe(e,t){return e.getCanonicalFileName(go(t,e.getCurrentDirectory()))}function Aie(e,t,r){const i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;const o=fR(r);if(!(o&&ls(o)&&!Op(o.text)&&!cSe(e,i.path).includes(cSe(e,Fc(e.getCommonSourceDirectory())))))return d3(e,i)}function jj(e,t,r){const i=p=>e.getCanonicalFileName(p),o=il(r?ai(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),s=go(t,e.getCurrentDirectory()),l=yA(o,s,o,i,!1),u=Ad(l);return r?AE(u):u}function Iie(e,t,r){const i=t.getCompilerOptions();let o;return i.outDir?o=Ad(_3(e,t,i.outDir)):o=Ad(e),o+r}function xie(e,t){return p3(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),r=>t.getCanonicalFileName(r))}function p3(e,t,r,i,o){const s=t.declarationDir||t.outDir,l=s?h3(e,s,r,i,o):e,u=f3(l);return Ad(l)+u}function f3(e){return Sc(e,[".mjs",".mts"])?".d.mts":Sc(e,[".cjs",".cts"])?".d.cts":Sc(e,[".json"])?".d.json.ts":".d.ts"}function Rie(e){return Sc(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Sc(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Sc(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Ps(e){return e.outFile||e.out}function m3(e,t){var r;if(e.paths)return e.baseUrl??N.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function Uj(e,t,r){const i=e.getCompilerOptions();if(Ps(i)){const o=wu(i),s=i.emitDeclarationOnly||o===2||o===4;return mn(e.getSourceFiles(),l=>(s||!sc(l))&&xS(l,e,r))}else{const o=t===void 0?e.getSourceFiles():[t];return mn(o,s=>xS(s,e,r))}}function xS(e,t,r){const i=t.getCompilerOptions();if(i.noEmitForJsFiles&&cd(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(r)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!Yf(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){const o=go(KP(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),s=h3(e.fileName,i.outDir,t.getCurrentDirectory(),o,t.getCanonicalFileName);if(Dg(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function _3(e,t,r){return h3(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function h3(e,t,r,i,o){let s=go(e,r);return s=o(s).indexOf(o(i))===0?s.substring(i.length):s,$r(t,s)}function LC(e,t,r,i,o,s,l){e.writeFile(r,i,o,u=>{t.add(Ul(f.Could_not_write_file_0_Colon_1,r,u))},s,l)}function uSe(e,t,r){if(e.length>dh(e)&&!r(e)){const i=ai(e);uSe(i,t,r),t(e)}}function Hj(e,t,r,i,o,s){try{i(e,t,r)}catch{uSe(ai(ha(e)),o,s),i(e,t,r)}}function kC(e,t){const r=Ng(e);return tC(r,t)}function RS(e,t){return tC(e,t)}function ng(e){return In(e.members,t=>Ml(t)&&Kf(t.body))}function wC(e){if(e&&e.parameters.length>0){const t=e.parameters.length===2&&GE(e.parameters[0]);return e.parameters[t?1:0]}}function Die(e){const t=wC(e);return t&&t.type}function BE(e){if(e.parameters.length&&!E0(e)){const t=e.parameters[0];if(GE(t))return t}}function GE(e){return VE(e.name)}function VE(e){return!!e&&e.kind===80&&qj(e)}function DS(e){return!!Vn(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function kA(e){if(!VE(e))return!1;for(;Id(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function qj(e){return e.escapedText==="this"}function NS(e,t){let r,i,o,s;return Wy(t)?(r=t,t.kind===177?o=t:t.kind===178?s=t:N.fail("Accessor has wrong kind")):Xe(e,l=>{if(Cy(l)&&aa(l)===aa(t)){const u=IS(l.name),p=IS(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(!lr(e)&&Tc(e))return;const t=e.type;return t||!lr(e)?t:uC(e)?e.typeExpression&&e.typeExpression.type:o0(e)}function Nie(e){return e.type}function em(e){return E0(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(lr(e)?iL(e):void 0)}function g3(e){return Do(a0(e),t=>$9e(t)?t.typeParameters:void 0)}function $9e(e){return om(e)&&!(e.parent.kind===327&&(e.parent.tags.some($f)||e.parent.tags.some(JR)))}function Cie(e){const t=wC(e);return t&&yu(t)}function Pie(e,t,r,i){Mie(e,t,r.pos,i)}function Mie(e,t,r,i){i&&i.length&&r!==i[0].pos&&RS(e,r)!==RS(e,i[0].pos)&&t.writeLine()}function Lie(e,t,r,i){r!==i&&RS(e,r)!==RS(e,i)&&t.writeLine()}function kie(e,t,r,i,o,s,l,u){if(i&&i.length>0){o&&r.writeSpace(" ");let p=!1;for(const h of i)p&&(r.writeSpace(" "),p=!1),u(e,t,r,h.pos,h.end,l),h.hasTrailingNewLine?r.writeLine():p=!0;p&&s&&r.writeSpace(" ")}}function wie(e,t,r,i,o,s,l){let u,p;if(l?o.pos===0&&(u=mn(qh(e,o.pos),h)):u=qh(e,o.pos),u){const m=[];let y;for(const T of u){if(y){const A=RS(t,y.end);if(RS(t,T.pos)>=A+2)break}m.push(T),y=T}if(m.length){const T=RS(t,Xa(m).end);RS(t,Pa(e,o.pos))>=T+2&&(Pie(t,r,o,u),kie(e,t,r,m,!1,!0,s,i),p={nodePos:o.pos,detachedCommentEndPos:Xa(m).end})}}return p;function h(m){return P4(e,m.pos)}}function IR(e,t,r,i,o,s){if(e.charCodeAt(i+1)===42){const l=Vx(t,i),u=t.length;let p;for(let h=i,m=l.line;h<o;m++){const y=m+1===u?e.length+1:t[m+1];if(h!==i){p===void 0&&(p=dSe(e,t[l.line],i));const A=r.getIndent()*TR()-p+dSe(e,h,y);if(A>0){let R=A%TR();const M=u3((A-R)/TR());for(r.rawWrite(M);R;)r.rawWrite(" "),R--}else r.rawWrite("")}Q9e(e,o,r,s,h,y),h=y}}else r.writeComment(e.substring(i,o))}function Q9e(e,t,r,i,o,s){const l=Math.min(t,s-1),u=e.substring(o,l).trim();u?(r.writeComment(u),l!==t&&r.writeLine()):r.rawWrite(i)}function dSe(e,t,r){let i=0;for(;t<r&&E_(e.charCodeAt(t));t++)e.charCodeAt(t)===9?i+=TR()-i%TR():i++;return i}function v3(e){return ud(e)!==0}function Oie(e){return Fy(e)!==0}function _p(e,t){return!!wA(e,t)}function Qr(e,t){return!!Wie(e,t)}function aa(e){return Yc(e)&&mc(e)||Rl(e)}function mc(e){return Qr(e,256)}function y3(e){return _p(e,16)}function jE(e){return Qr(e,64)}function Jj(e){return Qr(e,128)}function D_(e){return Qr(e,512)}function OC(e){return _p(e,8)}function Tf(e){return Qr(e,32768)}function wA(e,t){return ud(e)&t}function Wie(e,t){return Fy(e)&t}function Fie(e,t,r){return e.kind>=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=Kj(e)|536870912),r||t&&lr(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=pSe(e)|268435456),fSe(e.modifierFlagsCache)):Z9e(e.modifierFlagsCache))}function ud(e){return Fie(e,!0)}function zie(e){return Fie(e,!0,!0)}function Fy(e){return Fie(e,!1)}function pSe(e){let t=0;return e.parent&&!Ao(e)&&(lr(e)&&(Zne(e)&&(t|=8388608),ere(e)&&(t|=16777216),tre(e)&&(t|=33554432),nre(e)&&(t|=67108864),rre(e)&&(t|=134217728)),ire(e)&&(t|=65536)),t}function Z9e(e){return e&65535}function fSe(e){return e&131071|(e&260046848)>>>23}function eBe(e){return fSe(pSe(e))}function Bie(e){return Kj(e)|eBe(e)}function Kj(e){let t=Rm(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(const r of e)t|=OA(r.kind);return t}function OA(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 mSe(e){return e===57||e===56}function Gie(e){return mSe(e)||e===54}function WC(e){return e===76||e===77||e===78}function Xj(e){return mr(e)&&WC(e.operatorToken.kind)}function ak(e){return mSe(e)||e===61}function sk(e){return mr(e)&&ak(e.operatorToken.kind)}function Ov(e){return e>=64&&e<=79}function Yj(e){const t=$j(e);return t&&!t.isImplements?t.class:void 0}function $j(e){if(Vv(e)){if(nf(e.parent)&&di(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(uI(e.parent)){const t=p0(e.parent);if(t&&di(t))return{class:t,isImplements:!1}}}}function Pc(e,t){return mr(e)&&(t?e.operatorToken.kind===64:Ov(e.operatorToken.kind))&&Zd(e.left)}function _Se(e){return Pc(e.parent)&&e.parent.left===e}function Wv(e){if(Pc(e,!0)){const t=e.left.kind;return t===210||t===209}return!1}function b3(e){return Yj(e)!==void 0}function Bl(e){return e.kind===80||lk(e)}function Gp(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 FC(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&FC(e.expression)||e.kind===217&&FC(e.expression)}function lk(e){return Fr(e)&&Ve(e.name)&&Bl(e.expression)}function ck(e){if(Fr(e)){const t=ck(e.expression);if(t!==void 0)return t+"."+fp(e.name)}else if($s(e)){const t=ck(e.expression);if(t!==void 0&&oc(e.argumentExpression))return t+"."+IS(e.argumentExpression)}else{if(Ve(e))return Vi(e.escapedText);if(Qm(e))return oP(e)}}function zy(e){return OE(e)&&kg(e)==="prototype"}function zC(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 Qj(e){return!!e.parent&&(Fr(e.parent)&&e.parent.name===e||$s(e.parent)&&e.parent.argumentExpression===e)}function Vie(e){return Id(e.parent)&&e.parent.right===e||Fr(e.parent)&&e.parent.name===e||b0(e.parent)&&e.parent.right===e}function E3(e){return mr(e)&&e.operatorToken.kind===104}function jie(e){return E3(e.parent)&&e===e.parent.right}function Zj(e){return e.kind===210&&e.properties.length===0}function Uie(e){return e.kind===209&&e.elements.length===0}function xR(e){if(!(!tBe(e)||!e.declarations)){for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}}function tBe(e){return e&&Ne(e.declarations)>0&&Qr(e.declarations[0],2048)}function S3(e){return In(HSe,t=>Il(e,t))}function nBe(e){const t=[],r=e.length;for(let i=0;i<r;i++){const o=e.charCodeAt(i);o<128?t.push(o):o<2048?(t.push(o>>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)):N.assert(!1,"Unexpected code point")}return t}function Hie(e){let t="";const r=nBe(e);let i=0;const o=r.length;let s,l,u,p;for(;i<o;)s=r[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+=PS.charAt(s)+PS.charAt(l)+PS.charAt(u)+PS.charAt(p),i+=3;return t}function rBe(e){let t="",r=0;const i=e.length;for(;r<i;){const o=e[r];if(o<128)t+=String.fromCharCode(o),r++;else if((o&192)===192){let s=o&63;r++;let l=e[r];for(;(l&192)===128;)s=s<<6|l&63,r++,l=e[r];t+=String.fromCharCode(s)}else t+=String.fromCharCode(o),r++}return t}function qie(e,t){return e&&e.base64encode?e.base64encode(t):Hie(t)}function Jie(e,t){if(e&&e.base64decode)return e.base64decode(t);const r=t.length,i=[];let o=0;for(;o<r&&t.charCodeAt(o)!==PS.charCodeAt(64);){const s=PS.indexOf(t[o]),l=PS.indexOf(t[o+1]),u=PS.indexOf(t[o+2]),p=PS.indexOf(t[o+3]),h=(s&63)<<2|l>>4&3,m=(l&15)<<4|u>>2&15,y=(u&3)<<6|p&63;m===0&&u!==0?i.push(h):y===0&&p!==0?i.push(h,m):i.push(h,m,y),o+=4}return rBe(i)}function eU(e,t){const r=Mo(t)?t:t.readFile(e);if(!r)return;const i=jH(e,r);return i.error?void 0:i.config}function BC(e,t){return eU(e,t)||{}}function T3(e){try{return JSON.parse(e)}catch{return}}function Km(e,t){return!t.directoryExists||t.directoryExists(e)}function Fv(e){switch(e.newLine){case 0:return GSe;case 1:case void 0:return VSe}}function Af(e,t=e){return N.assert(t>=e||t===-1),{pos:e,end:t}}function A3(e,t){return Af(e.pos,t)}function m0(e,t){return Af(t,e.end)}function Og(e){const t=Rm(e)?oi(e.modifiers,Eu):void 0;return t&&!Ym(t.end)?m0(e,t.end):e}function C_(e){if(qo(e)||Hl(e))return m0(e,e.name.pos);const t=Rm(e)?el(e.modifiers):void 0;return t&&!Ym(t.end)?m0(e,t.end):Og(e)}function hSe(e){return e.pos===e.end}function tU(e,t){return Af(e,e+pa(t).length)}function CS(e,t){return Xie(e,e,t)}function I3(e,t,r){return If(GC(e,r,!1),GC(t,r,!1),r)}function Kie(e,t,r){return If(e.end,t.end,r)}function Xie(e,t,r){return If(GC(e,r,!1),t.end,r)}function uk(e,t,r){return If(e.end,GC(t,r,!1),r)}function nU(e,t,r,i){const o=GC(t,r,i);return nC(r,e.end,o)}function gSe(e,t,r){return nC(r,e.end,t.end)}function Yie(e,t){return!If(e.pos,e.end,t)}function If(e,t,r){return nC(r,e,t)===0}function GC(e,t,r){return Ym(e.pos)?-1:Pa(t.text,e.pos,!1,r)}function $ie(e,t,r,i){const o=Pa(r.text,e,!1,i),s=iBe(o,t,r);return nC(r,s??t,o)}function Qie(e,t,r,i){const o=Pa(r.text,e,!1,i);return nC(r,e,Math.min(t,o))}function iBe(e,t=0,r){for(;e-- >t;)if(!Cg(r.text.charCodeAt(e)))return e}function rU(e){const t=No(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function VC(e){return mn(e.declarations,dk)}function dk(e){return Oi(e)&&e.initializer!==void 0}function vSe(e){return e.watch&&Is(e,"watch")}function Xm(e){e.close()}function xl(e){return e.flags&33554432?e.links.checkFlags:0}function xf(e,t=!1){if(e.valueDeclaration){const r=t&&e.declarations&&In(e.declarations,vp)||e.flags&32768&&In(e.declarations,tf)||e.valueDeclaration,i=n0(r);return e.parent&&e.parent.flags&32?i:i&-8}if(xl(e)&6){const 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 RR(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function x3(e){return jC(e)===1}function WA(e){return jC(e)!==0}function jC(e){const{parent:t}=e;switch(t==null?void 0:t.kind){case 217:return jC(t);case 225:case 224:const{operator:r}=t;return r===46||r===47?2:0;case 226:const{left:i,operatorToken:o}=t;return i===e&&Ov(o.kind)?o.kind===64?1:2:0;case 211:return t.name!==e?0:jC(t);case 303:{const s=jC(t.parent);return e===t.name?oBe(s):s}case 304:return e===t.objectAssignmentInitializer?0:jC(t.parent);case 209:return jC(t);default:return 0}}function oBe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return N.assertNever(e)}}function iU(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(typeof e[r]=="object"){if(!iU(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 rg(e,t,r){const{onDeleteValue:i,onExistingValue:o}=r;e.forEach((s,l)=>{var u;t!=null&&t.has(l)?o&&o(s,(u=t.get)==null?void 0:u.call(t,l),l):(e.delete(l),i(s,l))})}function UC(e,t,r){rg(e,t,r);const{createNewValue:i}=r;t==null||t.forEach((o,s)=>{e.has(s)||e.set(s,i(s,o))})}function Zie(e){if(e.flags&32){const t=Wg(e);return!!t&&Qr(t,64)}return!1}function Wg(e){var t;return(t=e.declarations)==null?void 0:t.find(di)}function Wr(e){return e.flags&3899393?e.objectFlags:0}function ySe(e,t){return!!ym(e,r=>t(r)?!0:void 0)}function R3(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&qk(e.declarations[0])}function eoe({moduleSpecifier:e}){return Na(e)?e.text:fc(e)}function oU(e){let t;return Uo(e,r=>{Kf(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(Kf(r[i])){t=r[i];break}}),t}function Am(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function FA(e){return di(e)||md(e)||yp(e)}function aU(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 ws(e){return e.kind===211||e.kind===212}function sU(e){return e.kind===211?e.name:(N.assert(e.kind===212),e.argumentExpression)}function toe(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function D3(e){return e.kind===275||e.kind===279}function DR(e){for(;ws(e);)e=e.expression;return e}function noe(e,t){if(ws(e.parent)&&Qj(e))return r(e.parent);function r(i){if(i.kind===211){const o=t(i.name);if(o!==void 0)return o}else if(i.kind===212)if(Ve(i.argumentExpression)||ls(i.argumentExpression)){const o=t(i.argumentExpression);if(o!==void 0)return o}else return;if(ws(i.expression))return r(i.expression);if(Ve(i.expression))return t(i.expression)}}function NR(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 aBe(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 sBe(e,t){this.flags=t,(N.isDebugging||sr)&&(this.checker=e)}function lBe(e,t){this.flags=t,N.isDebugging&&(this.checker=e)}function roe(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 cBe(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 uBe(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 dBe(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}function ioe(e){koe.push(e),e(su)}function ooe(e){Object.assign(su,e),Xe(koe,t=>t(su))}function ig(e,t){return e.replace(/{(\d+)}/g,(r,i)=>""+N.checkDefined(t[+i]))}function aoe(e){tW=e}function soe(e){!tW&&e&&(tW=e())}function Wo(e){return tW&&tW[e.key]||e.message}function CR(e,t,r,i,o,...s){r+i>t.length&&(i=t.length-r),qre(t,r,i);let l=Wo(o);return bt(s)&&(l=ig(l,s)),{file:void 0,start:r,length:i,messageText:l,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function pBe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function bSe(e,t){const r=t.fileName||"",i=t.text.length;N.assertEqual(e.fileName,r),N.assertLessThanOrEqual(e.start,i),N.assertLessThanOrEqual(e.start+e.length,i);const 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(const s of e.relatedInformation)pBe(s)&&s.fileName===r?(N.assertLessThanOrEqual(s.start,i),N.assertLessThanOrEqual(s.start+s.length,i),o.relatedInformation.push(bSe(s,t))):o.relatedInformation.push(s)}return o}function zA(e,t){const r=[];for(const i of e)r.push(bSe(i,t));return r}function $c(e,t,r,i,...o){qre(e.text,t,r);let s=Wo(i);return bt(o)&&(s=ig(s,o)),{file:e,start:t,length:r,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function lU(e,...t){let r=Wo(e);return bt(t)&&(r=ig(r,t)),r}function Ul(e,...t){let r=Wo(e);return bt(t)&&(r=ig(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 N3(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 Vo(e,t,...r){let i=Wo(t);return bt(r)&&(i=ig(i,r)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function loe(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function ESe(e){return e.file?e.file.path:void 0}function HC(e,t){return C3(e,t)||fBe(e,t)||0}function C3(e,t){return Uu(ESe(e),ESe(t))||nl(e.start,t.start)||nl(e.length,t.length)||nl(e.code,t.code)||SSe(e.messageText,t.messageText)||0}function fBe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?nl(e.relatedInformation.length,t.relatedInformation.length)||Xe(e.relatedInformation,(r,i)=>{const o=t.relatedInformation[i];return HC(r,o)})||0:e.relatedInformation?-1:1}function SSe(e,t){if(typeof e=="string"&&typeof t=="string")return Uu(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let r=Uu(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;const i=Math.min(e.next.length,t.next.length);for(let o=0;o<i;o++)if(r=SSe(e.next[o],t.next[o]),r)return r;return e.next.length<t.next.length?-1:e.next.length>t.next.length?1:0}function pk(e){return e===4||e===2||e===1||e===6?1:0}function TSe(e){if(e.transformFlags&2)return ld(e)||t1(e)?e:Uo(e,TSe)}function mBe(e){return e.isDeclarationFile?void 0:TSe(e)}function _Be(e){return(e.impliedNodeFormat===99||Sc(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function fk(e){switch(MU(e)){case 3:return o=>{o.externalModuleIndicator=rw(o)||!o.isDeclarationFile||void 0};case 1:return o=>{o.externalModuleIndicator=rw(o)};case 2:const t=[rw];(e.jsx===4||e.jsx===5)&&t.push(mBe),t.push(_Be);const r=Jm(...t);return o=>void(o.externalModuleIndicator=r(o))}}function qyt(e){return e}function P3(e){return e>=5&&e<=99}function M3(e){switch(wu(e)){case 0:case 4:case 3:return!1}return!0}function cU(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function coe(e){return e.allowUnreachableCode===!1}function uoe(e){return e.allowUnusedLabels===!1}function BA(e){return e>=3&&e<=99||e===100}function dd(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function doe(e){return e.useDefineForClassFields!==!1&&os(e)>=9}function poe(e,t){return Zx(t,e,QH)}function foe(e,t){return Zx(t,e,ZH)}function moe(e,t){return Zx(t,e,eq)}function L3(e,t){return t.strictFlag?dd(e,t.name):t.allowJsFlag?jy(e):e[t.name]}function k3(e){const t=e.jsx;return t===2||t===4||t===5}function w3(e,t){const r=t==null?void 0:t.pragmas.get("jsximportsource"),i=To(r)?r[r.length-1]:r;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?(i==null?void 0:i.arguments.factory)||e.jsxImportSource||"react":void 0}function O3(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function uU(e){let t=!1;for(let r=0;r<e.length;r++)if(e.charCodeAt(r)===42)if(!t)t=!0;else return!1;return!0}function dU(e,t){let r,i,o,s=!1;return{getSymlinkedFiles:()=>o,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(u,p)=>(o||(o=new Map)).set(u,p),setSymlinkedDirectory:(u,p)=>{let h=il(u,e,t);eP(h)||(h=Fc(h),p!==!1&&!(r!=null&&r.has(h))&&(i||(i=$p())).add(p.realPath,u),(r||(r=new Map)).set(h,p))},setSymlinksFromResolutions(u,p,h){N.assert(!s),s=!0,u(m=>l(this,m.resolvedModule)),p(m=>l(this,m.resolvedTypeReferenceDirective)),h.forEach(m=>l(this,m.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>s};function l(u,p){if(!p||!p.originalPath||!p.resolvedFileName)return;const{resolvedFileName:h,originalPath:m}=p;u.setSymlinkedFile(il(m,e,t),h);const[y,T]=hBe(h,m,e,t)||et;y&&T&&u.setSymlinkedDirectory(T,{real:Fc(y),realPath:Fc(il(y,e,t))})}}function hBe(e,t,r,i){const o=Wc(go(e,r)),s=Wc(go(t,r));let l=!1;for(;o.length>=2&&s.length>=2&&!ASe(o[o.length-2],i)&&!ASe(s[s.length-2],i)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),l=!0;return l?[Ay(o),Ay(s)]:void 0}function ASe(e,t){return e!==void 0&&(t(e)==="node_modules"||uo(e,"@"))}function gBe(e){return dV(e.charCodeAt(0))?e.slice(1):void 0}function pU(e,t,r){const i=ZB(e,t,r);return i===void 0?void 0:gBe(i)}function ISe(e){return e.replace(LU,vBe)}function vBe(e){return"\\"+e}function qC(e,t,r){const i=W3(e,t,r);return!i||!i.length?void 0:`^(${i.map(l=>`(${l})`).join("|")})${r==="exclude"?"($|/)":"$"}`}function W3(e,t,r){if(!(e===void 0||e.length===0))return Do(e,i=>i&&F3(i,t,r,OU[r]))}function fU(e){return!/[.*?]/.test(e)}function _oe(e,t,r){const i=e&&F3(e,t,r,OU[r]);return i&&`^(${i})${r==="exclude"?"($|/)":"$"}`}function F3(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:s}=OU[r]){let l="",u=!1;const p=j2(e,t),h=Xa(p);if(r!=="exclude"&&h==="**")return;p[0]=Qb(p[0]),fU(h)&&p.push("**","*");let m=0;for(let y of p){if(y==="**")l+=o;else if(r==="directories"&&(l+="(",m++),u&&(l+=ol),r!=="exclude"){let T="";y.charCodeAt(0)===42?(T+="([^./]"+i+")?",y=y.substr(1)):y.charCodeAt(0)===63&&(T+="[^./]",y=y.substr(1)),T+=y.replace(LU,s),T!==y&&(l+=wU),l+=T}else l+=y.replace(LU,s);u=!0}for(;m>0;)l+=")?",m--;return l}function hoe(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function z3(e,t,r,i,o){e=ha(e),o=ha(o);const s=$r(o,e);return{includeFilePatterns:Wt(W3(r,s,"files"),l=>`^${l}$`),includeFilePattern:qC(r,s,"files"),includeDirectoryPattern:qC(r,s,"directories"),excludePattern:qC(t,s,"exclude"),basePaths:yBe(e,r,i)}}function By(e,t){return new RegExp(e,t?"":"i")}function mU(e,t,r,i,o,s,l,u,p){e=ha(e),s=ha(s);const h=z3(e,r,i,o,s),m=h.includeFilePatterns&&h.includeFilePatterns.map(O=>By(O,o)),y=h.includeDirectoryPattern&&By(h.includeDirectoryPattern,o),T=h.excludePattern&&By(h.excludePattern,o),A=m?m.map(()=>[]):[[]],R=new Map,M=Mu(o);for(const O of h.basePaths)C(O,$r(s,O),l);return Cs(A);function C(O,U,K){const Q=M(p(U));if(R.has(Q))return;R.set(Q,!0);const{files:V,directories:se}=u(O);for(const G of iS(V,Uu)){const ne=$r(O,G),he=$r(U,G);if(!(t&&!Sc(ne,t))&&!(T&&T.test(he)))if(!m)A[0].push(ne);else{const ye=mi(m,Y=>Y.test(he));ye!==-1&&A[ye].push(ne)}}if(!(K!==void 0&&(K--,K===0)))for(const G of iS(se,Uu)){const ne=$r(O,G),he=$r(U,G);(!y||y.test(he))&&(!T||!T.test(he))&&C(ne,he,K)}}}function yBe(e,t,r){const i=[e];if(t){const o=[];for(const s of t){const l=dp(s)?s:ha($r(e,s));o.push(bBe(l))}o.sort(Lx(!r));for(const s of o)Jn(i,l=>!gm(l,s,e,!r))&&i.push(s)}return i}function bBe(e){const t=Jc(e,jSe);return t<0?vA(e)?Qb(ai(e)):e:e.substring(0,e.lastIndexOf(ol,t))}function B3(e,t){return t||G3(e)||3}function G3(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 JC(e,t){const r=e&&jy(e);if(!t||t.length===0)return r?iW:wR;const i=r?iW:wR,o=Cs(i);return[...i,...eo(t,l=>l.scriptKind===7||r&&EBe(l.scriptKind)&&!o.includes(l.extension)?[l.extension]:void 0)]}function mk(e,t){return!e||!g0(e)?t:t===iW?qSe:t===wR?USe:[...t,[".json"]]}function EBe(e){return e===1||e===2}function UE(e){return bt(OR,t=>Il(e,t))}function GA(e){return bt(WU,t=>Il(e,t))}function goe({imports:e},t=Jm(UE,GA)){return Ht(e,({text:r})=>Op(r)&&!Sc(r,Rk)?t(r):void 0)||!1}function voe(e,t,r,i){const o=pd(r),s=3<=o&&o<=99;if(e==="js"||t===99&&s)return sD(r)&&l()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!sD(r))return goe(i)?2:0;return l();function l(){let u=!1;const p=i.imports.length?i.imports:cd(i)?SBe(i).map(h=>h.arguments[0]):et;for(const h of p)if(Op(h.text)){if(s&&t===1&&mJ(i,h,r)===99||Sc(h.text,Rk))continue;if(GA(h.text))return 3;UE(h.text)&&(u=!0)}return u?2:0}}function SBe(e){let t=0,r;for(const i of e.statements){if(t>3)break;vj(i)?r=So(r,i.declarationList.declarations.map(o=>o.initializer)):Zc(i)&&Td(i.expression,!0)?r=Rn(r,i.expression):t++}return r||et}function yoe(e,t,r){if(!e)return!1;const i=JC(t,r);for(const o of Cs(mk(t,i)))if(Il(e,o))return!0;return!1}function xSe(e){const t=e.match(/\//g);return t?t.length:0}function _k(e,t){return nl(xSe(e),xSe(t))}function Ad(e){for(const t of BU){const r=boe(e,t);if(r!==void 0)return r}return e}function boe(e,t){return Il(e,t)?hk(e,t):void 0}function hk(e,t){return e.substring(0,e.length-t.length)}function _0(e,t){return U2(e,t,BU,!1)}function PR(e){const 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 V3(e){return eo(Hh(e),t=>PR(t))}function Ym(e){return!(e>=0)}function j3(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||uo(e,".d.")&&Al(e,".ts")}function KC(e){return j3(e)||e===".json"}function XC(e){const t=Fg(e);return t!==void 0?t:N.fail(`File ${e} has unknown extension.`)}function RSe(e){return Fg(e)!==void 0}function Fg(e){return In(BU,t=>Il(e,t))}function gk(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function _U(e,t){const r=[];for(const i of e){if(i===t)return t;Mo(i)||r.push(i)}return QB(r,i=>i,t)}function hU(e,t){const r=e.indexOf(t);return N.assert(r!==-1),e.slice(r)}function Ma(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),N.assert(e.relatedInformation!==et,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Eoe(e,t){N.assert(e.length!==0);let r=t(e[0]),i=r;for(let o=1;o<e.length;o++){const s=t(e[o]);s<r?r=s:s>i&&(i=s)}return{min:r,max:i}}function gU(e){return{pos:l0(e),end:e.end}}function vU(e,t){const r=t.pos-1,i=Math.min(e.text.length,Pa(e.text,t.end)+1);return{pos:r,end:i}}function YC(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}function U3(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&Qte(e,t,U3)}function $C(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const h=e.length-1;let m=0;for(;e.charCodeAt(m)===48;)m++;return e.slice(m,h)||"0"}const r=2,i=e.length-1,o=(i-r)*t,s=new Uint16Array((o>>>4)+(o&15?1:0));for(let h=i-1,m=0;h>=r;h--,m+=t){const y=m>>>4,T=e.charCodeAt(h),R=(T<=57?T-48:10+T-(T<=70?65:97))<<(m&15);s[y]|=R;const M=R>>>16;M&&(s[y+1]|=M)}let l="",u=s.length-1,p=!0;for(;p;){let h=0;p=!1;for(let m=u;m>=0;m--){const y=h<<16|s[m],T=y/10|0;s[m]=T,h=y-T*10,T&&!p&&(u=m,p=!0)}l=h+l}return l}function HE({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Soe(e){if(H3(e,!1))return yU(e)}function yU(e){const t=e.startsWith("-"),r=$C(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function H3(e,t){if(e==="")return!1;const r=Nv(99,!1);let i=!0;r.setOnError(()=>i=!1),r.setText(e+"n");let o=r.scan();const s=o===41;s&&(o=r.scan());const l=r.getTokenFlags();return i&&o===10&&r.getTokenEnd()===e.length+1&&!(l&512)&&(!t||e===HE({negative:s,base10Value:$C(r.getTokenValue())}))}function h0(e){return!!(e.flags&33554432)||Y4(e)||IBe(e)||ABe(e)||!(Qh(e)||TBe(e))}function TBe(e){return Ve(e)&&np(e.parent)&&e.parent.name===e}function ABe(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(Qr(e.parent,64))return!0;const t=e.parent.parent.kind;return t===264||t===187}function IBe(e){if(e.kind!==80)return!1;const t=Vn(e.parent,r=>{switch(r.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return(t==null?void 0:t.token)===119||(t==null?void 0:t.parent.kind)===264}function Toe(e){return Df(e)&&Ve(e.typeName)}function Aoe(e,t=xv){if(e.length<2)return!0;const r=e[0];for(let i=1,o=e.length;i<o;i++){const s=e[i];if(!t(r,s))return!1}return!0}function QC(e,t){return e.pos=t,e}function MR(e,t){return e.end=t,e}function gh(e,t,r){return MR(QC(e,t),r)}function ZC(e,t,r){return gh(e,t,t+r)}function Ioe(e,t){return e&&(e.flags=t),e}function Ha(e,t){return e&&t&&(e.parent=t),e}function LR(e,t){if(e)for(const r of e)Ha(r,t);return e}function Gy(e,t){if(!e)return e;return RP(e,$x(e)?r:o),e;function r(s,l){if(t&&s.parent===l)return"skip";Ha(s,l)}function i(s){if(Wp(s))for(const l of s.jsDoc)r(l,s),RP(l,r)}function o(s,l){return r(s,l)||i(s)}}function xBe(e){return!Gc(e)}function bU(e){return fd(e)&&Jn(e.elements,xBe)}function xoe(e){for(N.assertIsDefined(e.parent);;){const t=e.parent;if(Gd(t)){e=t;continue}if(Zc(t)||iI(t)||zS(t)&&(t.initializer===e||t.incrementor===e))return!0;if(hP(t)){if(e!==Xa(t.elements))return!0;e=t;continue}if(mr(t)&&t.operatorToken.kind===28){if(e===t.left)return!0;e=t;continue}return!1}}function eP(e){return bt(V2,t=>e.includes(t))}function Roe(e){if(!e.parent)return;switch(e.kind){case 168:const{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:{const{parent:i}=e;return qS(i)?i.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:t}=e;if(Qx(e))return jS(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return fS(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 ji(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return gL(e)?t.children:void 0;case 286:case 285:return ji(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 Yc(e)?t.members:void 0;case 266:return i1(e)?t.members:void 0;case 312:return t.statements}}function q3(e){if(!e.typeParameters){if(bt(e.parameters,t=>!yu(t)))return!0;if(e.kind!==219){const t=Kc(e.parameters);if(!(t&&GE(t)))return!0}}return!1}function tP(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function Doe(e){return e.kind===260&&e.parent.kind===299}function qE(e){return e.kind===218||e.kind===219}function JE(e){return e.replace(/\$/gm,()=>"\\$")}function og(e){return(+e).toString()===e}function J3(e,t,r,i,o){const s=o&&e==="new";return!s&&Zp(e,t)?w.createIdentifier(e):!i&&!s&&og(e)&&+e>=0?w.createNumericLiteral(+e):w.createStringLiteral(e,!!r)}function nP(e){return!!(e.flags&262144&&e.isThisType)}function K3(e){let t=0,r=0,i=0,o=0,s;(h=>{h[h.BeforeNodeModules=0]="BeforeNodeModules",h[h.NodeModules=1]="NodeModules",h[h.Scope=2]="Scope",h[h.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 DSe(e){var t;return e.kind===348?(t=e.typeExpression)==null?void 0:t.type:e.type}function kR(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 vk(e){return y0(e)||Ll(e)||Tc(e)||Ac(e)||md(e)||kR(e)||Xl(e)&&!PE(e)&&!A_(e)}function yk(e){if(!uC(e))return!1;const{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===323}function EU(e,t){if(e.length===0)return!1;const r=e.charCodeAt(0);return r===35?e.length>1&&Jh(e.charCodeAt(1),t):Jh(r,t)}function Noe(e){var t;return((t=XU(e))==null?void 0:t.kind)===0}function bk(e){return lr(e)&&(e.type&&e.type.kind===323||qx(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===323))}function rP(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||bk(e);case 355:case 348:return yk(e);default:return!1}}function Coe(e){const t=e.kind;return(t===211||t===212)&&oI(e.expression)}function SU(e){return lr(e)&&Gd(e)&&Wp(e)&&!!RV(e)}function TU(e){return N.checkDefined(X3(e))}function X3(e){const t=RV(e);return t&&t.typeExpression&&t.typeExpression.type}function iP(e){return Ve(e)?e.escapedText:VA(e)}function Ek(e){return Ve(e)?Er(e):oP(e)}function Poe(e){const t=e.kind;return t===80||t===295}function VA(e){return`${e.namespace.escapedText}:${Er(e.name)}`}function oP(e){return`${Er(e.namespace)}:${Er(e.name)}`}function AU(e){return Ve(e)?Er(e):oP(e)}function tm(e){return!!(e.flags&8576)}function nm(e){return e.flags&8192?e.escapedName:e.flags&384?_l(""+e.value):N.fail()}function Y3(e){return!!e&&(Fr(e)||$s(e)||mr(e))}function Moe(e){return e===void 0?!1:!!uD(e.attributes)}function jA(e,t){return JSe.call(e,"*",t)}function $3(e){return Ve(e.name)?e.name.escapedText:_l(e.name.text)}var Q3,Vy,Sk,Z3,Tk,eW,IU,xU,NSe,CSe,RU,PSe,MSe,DU,NU,CU,PU,LSe,kSe,wSe,OSe,WSe,Loe,FSe,zSe,BSe,aP,PS,GSe,VSe,su,koe,tW,_c,os,wu,pd,MU,rm,vh,MS,nW,rW,g0,Rf,KE,sP,Ak,jy,lP,LU,jSe,kU,wU,woe,Ooe,Woe,OU,wR,WU,USe,HSe,FU,OR,iW,qSe,Ik,xk,Rk,zU,BU,oW,JSe,RBe=I({"src/compiler/utilities.ts"(){ra(),Q3=[],Vy="tslib",Sk=160,Z3=1e6,Tk=C9e(),eW=Sd(()=>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"]}))}))),IU=(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))(IU||{}),xU=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,NSe=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,CSe=/^(\/\/\/\s*<reference\s+lib\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,RU=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,PSe=/^\/\/\/\s*<amd-module\s+.*?\/>/,MSe=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/,DU=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(DU||{}),NU=(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))(NU||{}),CU=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(CU||{}),PU=(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))(PU||{}),LSe=/\$\{/g,kSe=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,wSe=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,OSe=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,WSe=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"})),Loe=/[^\u0000-\u007F]/g,FSe=/["\u0000-\u001f\u2028\u2029\u0085]/g,zSe=/['\u0000-\u001f\u2028\u2029\u0085]/g,BSe=new Map(Object.entries({'"':""","'":"'"})),aP=[""," "],PS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",GSe=`\r +`,VSe=` +`,su={getNodeConstructor:()=>roe,getTokenConstructor:()=>cBe,getIdentifierConstructor:()=>uBe,getPrivateIdentifierConstructor:()=>roe,getSourceFileConstructor:()=>roe,getSymbolConstructor:()=>aBe,getTypeConstructor:()=>sBe,getSignatureConstructor:()=>lBe,getSourceMapSourceConstructor:()=>dBe},koe=[],_c={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:_c.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(_c.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||(_c.module.computeValue(e)===100||_c.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(_c.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:_c.esModuleInterop.computeValue(e)||_c.module.computeValue(e)===4||_c.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{const t=_c.moduleResolution.computeValue(e);if(!BA(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=>{const t=_c.moduleResolution.computeValue(e);if(!BA(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:_c.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||_c.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&_c.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?_c.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>dd(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>dd(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>dd(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>dd(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>dd(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>dd(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>dd(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>dd(e,"useUnknownInCatchVariables")}},os=_c.target.computeValue,wu=_c.module.computeValue,pd=_c.moduleResolution.computeValue,MU=_c.moduleDetection.computeValue,rm=_c.isolatedModules.computeValue,vh=_c.esModuleInterop.computeValue,MS=_c.allowSyntheticDefaultImports.computeValue,nW=_c.resolvePackageJsonExports.computeValue,rW=_c.resolvePackageJsonImports.computeValue,g0=_c.resolveJsonModule.computeValue,Rf=_c.declaration.computeValue,KE=_c.preserveConstEnums.computeValue,sP=_c.incremental.computeValue,Ak=_c.declarationMap.computeValue,jy=_c.allowJs.computeValue,lP=_c.useDefineForClassFields.computeValue,LU=/[^\w\s/]/g,jSe=[42,63],kU=["node_modules","bower_components","jspm_packages"],wU=`(?!(${kU.join("|")})(/|$))`,woe={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${wU}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>hoe(e,woe.singleAsteriskRegexFragment)},Ooe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${wU}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>hoe(e,Ooe.singleAsteriskRegexFragment)},Woe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>hoe(e,Woe.singleAsteriskRegexFragment)},OU={files:woe,directories:Ooe,exclude:Woe},wR=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],WU=Cs(wR),USe=[...wR,[".json"]],HSe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],FU=[[".js",".jsx"],[".mjs"],[".cjs"]],OR=Cs(FU),iW=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],qSe=[...iW,[".json"]],Ik=[".d.ts",".d.cts",".d.mts"],xk=[".ts",".cts",".mts",".tsx"],Rk=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],zU=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(zU||{}),BU=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],oW={files:et,directories:et},JSe=String.prototype.replace}});function Foe(){let e,t,r,i,o;return{createBaseSourceFileNode:s,createBaseIdentifierNode:l,createBasePrivateIdentifierNode:u,createBaseTokenNode:p,createBaseNode:h};function s(m){return new(o||(o=su.getSourceFileConstructor()))(m,-1,-1)}function l(m){return new(r||(r=su.getIdentifierConstructor()))(m,-1,-1)}function u(m){return new(i||(i=su.getPrivateIdentifierConstructor()))(m,-1,-1)}function p(m){return new(t||(t=su.getTokenConstructor()))(m,-1,-1)}function h(m){return new(e||(e=su.getNodeConstructor()))(m,-1,-1)}}var DBe=I({"src/compiler/factory/baseNodeFactory.ts"(){ra()}});function zoe(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:o,parenthesizeLeftSideOfBinary:h,parenthesizeRightSideOfBinary:m,parenthesizeExpressionOfComputedPropertyName:y,parenthesizeConditionOfConditionalExpression:T,parenthesizeBranchOfConditionalExpression:A,parenthesizeExpressionOfExportDefault:R,parenthesizeExpressionOfNew:M,parenthesizeLeftSideOfAccess:C,parenthesizeOperandOfPostfixUnary:O,parenthesizeOperandOfPrefixUnary:U,parenthesizeExpressionsOfCommaDelimitedList:K,parenthesizeExpressionForDisallowedComma:Q,parenthesizeExpressionOfExpressionStatement:V,parenthesizeConciseBodyOfArrowFunction:se,parenthesizeCheckTypeOfConditionalType:G,parenthesizeExtendsTypeOfConditionalType:ne,parenthesizeConstituentTypesOfUnionType:ye,parenthesizeConstituentTypeOfUnionType:he,parenthesizeConstituentTypesOfIntersectionType:X,parenthesizeConstituentTypeOfIntersectionType:Y,parenthesizeOperandOfTypeOperator:oe,parenthesizeOperandOfReadonlyTypeOperator:pe,parenthesizeNonArrayTypeOfPostfixType:Ce,parenthesizeElementTypesOfTupleType:de,parenthesizeElementTypeOfTupleType:ie,parenthesizeTypeOfOptionalType:Le,parenthesizeTypeArguments:De,parenthesizeLeadingTypeArgument:Ue};function i(Me){t||(t=new Map);let We=t.get(Me);return We||(We=At=>h(Me,At),t.set(Me,We)),We}function o(Me){r||(r=new Map);let We=r.get(Me);return We||(We=At=>m(Me,void 0,At),r.set(Me,We)),We}function s(Me,We,At,Se){const je=nk(226,Me),ot=Wj(226,Me),Bt=bm(We);if(!At&&We.kind===219&&je>3)return!0;const vt=MC(Bt);switch(nl(vt,je)){case-1:return!(!At&&ot===1&&We.kind===229);case 1:return!1;case 0:if(At)return ot===1;if(mr(Bt)&&Bt.operatorToken.kind===Me){if(l(Me))return!1;if(Me===40){const It=Se?u(Se):0;if(dC(It)&&It===u(Bt))return!1}}return Oj(Bt)===0}}function l(Me){return Me===42||Me===52||Me===51||Me===53||Me===28}function u(Me){if(Me=bm(Me),dC(Me.kind))return Me.kind;if(Me.kind===226&&Me.operatorToken.kind===40){if(Me.cachedLiteralKind!==void 0)return Me.cachedLiteralKind;const We=u(Me.left),At=dC(We)&&We===u(Me.right)?We:0;return Me.cachedLiteralKind=At,At}return 0}function p(Me,We,At,Se){return bm(We).kind===217?We:s(Me,We,At,Se)?e.createParenthesizedExpression(We):We}function h(Me,We){return p(Me,We,!0)}function m(Me,We,At){return p(Me,At,!1,We)}function y(Me){return AP(Me)?e.createParenthesizedExpression(Me):Me}function T(Me){const We=nk(227,58),At=bm(Me),Se=MC(At);return nl(Se,We)!==1?e.createParenthesizedExpression(Me):Me}function A(Me){const We=bm(Me);return AP(We)?e.createParenthesizedExpression(Me):Me}function R(Me){const We=bm(Me);let At=AP(We);if(!At)switch(NR(We,!1).kind){case 231:case 218:At=!0}return At?e.createParenthesizedExpression(Me):Me}function M(Me){const We=NR(Me,!0);switch(We.kind){case 213:return e.createParenthesizedExpression(Me);case 214:return We.arguments?Me:e.createParenthesizedExpression(Me)}return C(Me)}function C(Me,We){const At=bm(Me);return Zd(At)&&(At.kind!==214||At.arguments)&&(We||!qu(At))?Me:dt(e.createParenthesizedExpression(Me),Me)}function O(Me){return Zd(Me)?Me:dt(e.createParenthesizedExpression(Me),Me)}function U(Me){return BV(Me)?Me:dt(e.createParenthesizedExpression(Me),Me)}function K(Me){const We=Zo(Me,Q);return dt(e.createNodeArray(We,Me.hasTrailingComma),Me)}function Q(Me){const We=bm(Me),At=MC(We),Se=nk(226,28);return At>Se?Me:dt(e.createParenthesizedExpression(Me),Me)}function V(Me){const We=bm(Me);if(sa(We)){const Se=We.expression,je=bm(Se).kind;if(je===218||je===219){const ot=e.updateCallExpression(We,dt(e.createParenthesizedExpression(Se),Se),We.typeArguments,We.arguments);return e.restoreOuterExpressions(Me,ot,8)}}const At=NR(We,!1).kind;return At===210||At===218?dt(e.createParenthesizedExpression(Me),Me):Me}function se(Me){return!Ko(Me)&&(AP(Me)||NR(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(Zo(Me,he))}function Y(Me){switch(Me.kind){case 192:case 193:return e.createParenthesizedType(Me)}return he(Me)}function X(Me){return e.createNodeArray(Zo(Me,Y))}function oe(Me){switch(Me.kind){case 193:return e.createParenthesizedType(Me)}return Y(Me)}function pe(Me){switch(Me.kind){case 198:return e.createParenthesizedType(Me)}return oe(Me)}function Ce(Me){switch(Me.kind){case 195:case 198:case 186:return e.createParenthesizedType(Me)}return oe(Me)}function de(Me){return e.createNodeArray(Zo(Me,ie))}function ie(Me){return ve(Me)?e.createParenthesizedType(Me):Me}function ve(Me){return HR(Me)?Me.postfix:BR(Me)||bh(Me)||zR(Me)||OS(Me)?ve(Me.type):rI(Me)?ve(Me.falseType):qy(Me)||nI(Me)?ve(Xa(Me.types)):kS(Me)?!!Me.typeParameter.constraint&&ve(Me.typeParameter.constraint):!1}function Le(Me){return ve(Me)?e.createParenthesizedType(Me):Ce(Me)}function Ue(Me){return dre(Me)&&Me.typeParameters?e.createParenthesizedType(Me):Me}function Ee(Me,We){return We===0?Ue(Me):Me}function De(Me){if(bt(Me))return e.createNodeArray(Zo(Me,Ee))}}var GU,NBe=I({"src/compiler/factory/parenthesizerRules.ts"(){ra(),GU={getParenthesizeLeftSideOfBinaryForOperator:e=>tl,getParenthesizeRightSideOfBinaryForOperator:e=>tl,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:tl,parenthesizeConditionOfConditionalExpression:tl,parenthesizeBranchOfConditionalExpression:tl,parenthesizeExpressionOfExportDefault:tl,parenthesizeExpressionOfNew:e=>oa(e,Zd),parenthesizeLeftSideOfAccess:e=>oa(e,Zd),parenthesizeOperandOfPostfixUnary:e=>oa(e,Zd),parenthesizeOperandOfPrefixUnary:e=>oa(e,BV),parenthesizeExpressionsOfCommaDelimitedList:e=>oa(e,RE),parenthesizeExpressionForDisallowedComma:tl,parenthesizeExpressionOfExpressionStatement:tl,parenthesizeConciseBodyOfArrowFunction:tl,parenthesizeCheckTypeOfConditionalType:tl,parenthesizeExtendsTypeOfConditionalType:tl,parenthesizeConstituentTypesOfUnionType:e=>oa(e,RE),parenthesizeConstituentTypeOfUnionType:tl,parenthesizeConstituentTypesOfIntersectionType:e=>oa(e,RE),parenthesizeConstituentTypeOfIntersectionType:tl,parenthesizeOperandOfTypeOperator:tl,parenthesizeOperandOfReadonlyTypeOperator:tl,parenthesizeNonArrayTypeOfPostfixType:tl,parenthesizeElementTypesOfTupleType:e=>oa(e,RE),parenthesizeElementTypeOfTupleType:tl,parenthesizeTypeOfOptionalType:tl,parenthesizeTypeArguments:e=>e&&oa(e,RE),parenthesizeLeadingTypeArgument:tl}}});function Boe(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToClassExpression:i,convertToArrayAssignmentElement:o,convertToObjectAssignmentElement:s,convertToAssignmentPattern:l,convertToObjectAssignmentPattern:u,convertToArrayAssignmentPattern:p,convertToAssignmentElementTarget:h};function t(m,y){if(Ko(m))return m;const T=e.createReturnStatement(m);dt(T,m);const A=e.createBlock([T],y);return dt(A,m),A}function r(m){var y;if(!m.body)return N.fail("Cannot convert a FunctionDeclaration without a body");const T=e.createFunctionExpression((y=xE(m))==null?void 0:y.filter(A=>!$A(A)&&!VW(A)),m.asteriskToken,m.name,m.typeParameters,m.parameters,m.type,m.body);return Nr(T,m),dt(T,m),cP(m)&&lW(T,!0),T}function i(m){var y;const T=e.createClassExpression((y=m.modifiers)==null?void 0:y.filter(A=>!$A(A)&&!VW(A)),m.name,m.typeParameters,m.heritageClauses,m.members);return Nr(T,m),dt(T,m),cP(m)&&lW(T,!0),T}function o(m){if($a(m)){if(m.dotDotDotToken)return N.assertNode(m.name,Ve),Nr(dt(e.createSpreadElement(m.name),m),m);const y=h(m.name);return m.initializer?Nr(dt(e.createAssignment(y,m.initializer),m),m):y}return oa(m,yt)}function s(m){if($a(m)){if(m.dotDotDotToken)return N.assertNode(m.name,Ve),Nr(dt(e.createSpreadAssignment(m.name),m),m);if(m.propertyName){const y=h(m.name);return Nr(dt(e.createPropertyAssignment(m.propertyName,m.initializer?e.createAssignment(y,m.initializer):y),m),m)}return N.assertNode(m.name,Ve),Nr(dt(e.createShorthandPropertyAssignment(m.name,m.initializer),m),m)}return oa(m,Mg)}function l(m){switch(m.kind){case 207:case 209:return p(m);case 206:case 210:return u(m)}}function u(m){return im(m)?Nr(dt(e.createObjectLiteralExpression(Wt(m.elements,s)),m),m):oa(m,La)}function p(m){return YE(m)?Nr(dt(e.createArrayLiteralExpression(Wt(m.elements,o)),m),m):oa(m,fd)}function h(m){return ta(m)?l(m):oa(m,yt)}}var VU,CBe=I({"src/compiler/factory/nodeConverters.ts"(){ra(),VU={convertToFunctionBlock:Jo,convertToFunctionExpression:Jo,convertToClassExpression:Jo,convertToArrayAssignmentElement:Jo,convertToObjectAssignmentElement:Jo,convertToAssignmentPattern:Jo,convertToObjectAssignmentPattern:Jo,convertToArrayAssignmentPattern:Jo,convertToAssignmentElementTarget:Jo}}});function KSe(e){Voe.push(e)}function Dk(e,t){const r=e&8?tl:Nr,i=Sd(()=>e&1?GU:zoe(O)),o=Sd(()=>e&2?VU:Boe(O)),s=ch(E=>(P,B)=>Te(P,E,B)),l=ch(E=>P=>lt(E,P)),u=ch(E=>P=>Vt(P,E)),p=ch(E=>()=>eN(E)),h=ch(E=>P=>yT(E,P)),m=ch(E=>(P,B)=>R1(E,P,B)),y=ch(E=>(P,B)=>tN(E,P,B)),T=ch(E=>(P,B)=>Qs(E,P,B)),A=ch(E=>(P,B)=>q0(E,P,B)),R=ch(E=>(P,B,ce)=>Of(E,P,B,ce)),M=ch(E=>(P,B,ce)=>hb(E,P,B,ce)),C=ch(E=>(P,B,ce,Qe)=>gb(E,P,B,ce,Qe)),O={get parenthesizer(){return i()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:U,createNumericLiteral:se,createBigIntLiteral:G,createStringLiteral:he,createStringLiteralFromNode:ye,createRegularExpressionLiteral:Y,createLiteralLikeNode:X,createIdentifier:Ce,createTempVariable:de,createLoopVariable:ie,createUniqueName:ve,getGeneratedNameForNode:Le,createPrivateIdentifier:Ee,createUniquePrivateName:Me,getGeneratedPrivateNameForNode:We,createToken:Se,createSuper:je,createThis:ot,createNull:Bt,createTrue:vt,createFalse:$e,createModifier:It,createModifiersFromModifierFlags:tn,createQualifiedName:rn,updateQualifiedName:Mn,createComputedPropertyName:$n,updateComputedPropertyName:gn,createTypeParameterDeclaration:Qt,updateTypeParameterDeclaration:Yt,createParameterDeclaration:vi,updateParameterDeclaration:so,createDecorator:Wi,updateDecorator:Co,createPropertySignature:Ln,updatePropertySignature:Ci,createPropertyDeclaration:sn,updatePropertyDeclaration:tt,createMethodSignature:zt,updateMethodSignature:Dn,createMethodDeclaration:ci,updateMethodDeclaration:yi,createConstructorDeclaration:Tn,updateConstructorDeclaration:wn,createGetAccessorDeclaration:mt,updateGetAccessorDeclaration:ft,createSetAccessorDeclaration:le,updateSetAccessorDeclaration:Fe,createCallSignature:j,updateCallSignature:it,createConstructSignature:Rt,updateConstructSignature:Ye,createIndexSignature:_t,updateIndexSignature:Gt,createClassStaticBlockDeclaration:Io,updateClassStaticBlockDeclaration:fa,createTemplateLiteralTypeSpan:yn,updateTemplateLiteralTypeSpan:fn,createKeywordTypeNode:hn,createTypePredicateNode:q,updateTypePredicateNode:Oe,createTypeReferenceNode:Lt,updateTypeReferenceNode:L,createFunctionTypeNode:me,updateFunctionTypeNode:J,createConstructorTypeNode:Be,updateConstructorTypeNode:kt,createTypeQueryNode:Gn,updateTypeQueryNode:qn,createTypeLiteralNode:Pi,updateTypeLiteralNode:xi,createArrayTypeNode:ir,updateArrayTypeNode:Vr,createTupleTypeNode:vo,updateTupleTypeNode:Mi,createNamedTupleMember:Ri,updateNamedTupleMember:Jr,createOptionalTypeNode:xo,updateOptionalTypeNode:Nn,createRestTypeNode:Fs,updateRestTypeNode:Ql,createUnionTypeNode:Vs,updateUnionTypeNode:gl,createIntersectionTypeNode:cu,updateIntersectionTypeNode:ho,createConditionalTypeNode:da,updateConditionalTypeNode:uu,createInferTypeNode:Ts,updateInferTypeNode:Ca,createImportTypeNode:lc,updateImportTypeNode:Nl,createParenthesizedType:cl,updateParenthesizedType:wo,createThisTypeNode:nn,createTypeOperatorNode:js,updateTypeOperatorNode:tu,createIndexedAccessTypeNode:du,updateIndexedAccessTypeNode:Tp,createMappedTypeNode:Ms,updateMappedTypeNode:xc,createLiteralTypeNode:ue,updateLiteralTypeNode:Z,createTemplateLiteralType:ml,updateTemplateLiteralType:Lf,createObjectBindingPattern:we,updateObjectBindingPattern:Et,createArrayBindingPattern:un,updateArrayBindingPattern:Sr,createBindingElement:vr,updateBindingElement:jr,createArrayLiteralExpression:Di,updateArrayLiteralExpression:Mr,createObjectLiteralExpression:Yo,updateObjectLiteralExpression:Sl,createPropertyAccessExpression:e&4?(E,P)=>pr(Us(E,P),262144):Us,updatePropertyAccessExpression:vc,createPropertyAccessChain:e&4?(E,P,B)=>pr(Es(E,P,B),262144):Es,updatePropertyAccessChain:Uc,createElementAccessExpression:wc,updateElementAccessExpression:sm,createElementAccessChain:_d,updateElementAccessChain:Pe,createCallExpression:Xn,updateCallExpression:yo,createCallChain:$o,updateCallChain:na,createNewExpression:Zl,updateNewExpression:yc,createTaggedTemplateExpression:ul,updateTaggedTemplateExpression:vl,createTypeAssertion:Gl,updateTypeAssertion:ec,createParenthesizedExpression:Hc,updateParenthesizedExpression:df,createFunctionExpression:jd,updateFunctionExpression:Nd,createArrowFunction:kf,updateArrowFunction:V_,createDeleteExpression:Dh,updateDeleteExpression:qg,createTypeOfExpression:Bu,updateTypeOfExpression:Jg,createVoidExpression:Ap,updateVoidExpression:dg,createAwaitExpression:Ud,updateAwaitExpression:te,createPrefixUnaryExpression:lt,updatePrefixUnaryExpression:Ft,createPostfixUnaryExpression:Vt,updatePostfixUnaryExpression:W,createBinaryExpression:Te,updateBinaryExpression:qt,createConditionalExpression:rr,updateConditionalExpression:ii,createTemplateExpression:Yr,updateTemplateExpression:oo,createTemplateHead:Ip,createTemplateMiddle:Hd,createTemplateTail:ab,createNoSubstitutionTemplateLiteral:us,createTemplateLiteralLikeNode:Rc,createYieldExpression:Pm,updateYieldExpression:Mm,createSpreadElement:Ui,updateSpreadElement:Kg,createClassExpression:ey,updateClassExpression:Lm,createOmittedExpression:b1,createExpressionWithTypeArguments:E1,updateExpressionWithTypeArguments:pf,createAsExpression:j_,updateAsExpression:ff,createNonNullExpression:Xg,updateNonNullExpression:ze,createSatisfiesExpression:Ze,updateSatisfiesExpression:Mt,createNonNullChain:jt,updateNonNullChain:bn,createMetaProperty:Qn,updateMetaProperty:vn,createTemplateSpan:Zn,updateTemplateSpan:_i,createSemicolonClassElement:cr,createBlock:ni,updateBlock:fr,createVariableStatement:Qo,updateVariableStatement:Ja,createEmptyStatement:Zu,createExpressionStatement:fu,updateExpressionStatement:Yg,createIfStatement:O0,updateIfStatement:zI,createDoStatement:W0,updateDoStatement:qD,createWhileStatement:JD,updateWhileStatement:KD,createForStatement:uT,updateForStatement:S1,createForInStatement:BI,updateForInStatement:XD,createForOfStatement:GI,updateForOfStatement:VI,createContinueStatement:jI,updateContinueStatement:UI,createBreakStatement:dT,updateBreakStatement:HI,createReturnStatement:T1,updateReturnStatement:A1,createWithStatement:sb,updateWithStatement:lb,createSwitchStatement:pg,updateSwitchStatement:F0,createLabeledStatement:ts,updateLabeledStatement:pT,createThrowStatement:YD,updateThrowStatement:z0,createTryStatement:$g,updateTryStatement:Nh,createDebuggerStatement:wf,createVariableDeclaration:qd,updateVariableDeclaration:xp,createVariableDeclarationList:op,updateVariableDeclarationList:ty,createFunctionDeclaration:fT,updateFunctionDeclaration:$D,createClassDeclaration:cb,updateClassDeclaration:B0,createInterfaceDeclaration:JI,updateInterfaceDeclaration:bc,createTypeAliasDeclaration:ny,updateTypeAliasDeclaration:KI,createEnumDeclaration:r_,updateEnumDeclaration:mT,createModuleDeclaration:qe,updateModuleDeclaration:i_,createModuleBlock:mu,updateModuleBlock:G0,createCaseBlock:XI,updateCaseBlock:ub,createNamespaceExportDeclaration:ry,updateNamespaceExportDeclaration:iy,createImportEqualsDeclaration:Ka,updateImportEqualsDeclaration:o_,createImportDeclaration:_T,updateImportDeclaration:hT,createImportClause:V0,updateImportClause:gT,createAssertClause:lm,updateAssertClause:cm,createAssertEntry:Qg,updateAssertEntry:YI,createImportTypeAssertionContainer:a_,updateImportTypeAssertionContainer:QD,createImportAttributes:I1,updateImportAttributes:Ki,createImportAttribute:Zr,updateImportAttribute:Ch,createNamespaceImport:Jd,updateNamespaceImport:NM,createNamespaceExport:Zg,updateNamespaceExport:CM,createNamedImports:db,updateNamedImports:yl,createImportSpecifier:jp,updateImportSpecifier:fg,createExportAssignment:um,updateExportAssignment:pb,createExportDeclaration:km,updateExportDeclaration:ev,createNamedExports:vT,updateNamedExports:mg,createExportSpecifier:$I,updateExportSpecifier:_g,createMissingDeclaration:U_,createExternalModuleReference:oy,updateExternalModuleReference:ZD,get createJSDocAllType(){return p(319)},get createJSDocUnknownType(){return p(320)},get createJSDocNonNullableType(){return y(322)},get updateJSDocNonNullableType(){return T(322)},get createJSDocNullableType(){return y(321)},get updateJSDocNullableType(){return T(321)},get createJSDocOptionalType(){return h(323)},get updateJSDocOptionalType(){return m(323)},get createJSDocVariadicType(){return h(325)},get updateJSDocVariadicType(){return m(325)},get createJSDocNamepathType(){return h(326)},get updateJSDocNamepathType(){return m(326)},createJSDocFunctionType:bT,updateJSDocFunctionType:wm,createJSDocTypeLiteral:fb,updateJSDocTypeLiteral:nN,createJSDocTypeExpression:ET,updateJSDocTypeExpression:PM,createJSDocSignature:hr,updateJSDocSignature:nu,createJSDocTemplateTag:H_,updateJSDocTemplateTag:ur,createJSDocTypedefTag:ST,updateJSDocTypedefTag:j0,createJSDocParameterTag:qc,updateJSDocParameterTag:Ph,createJSDocPropertyTag:Om,updateJSDocPropertyTag:D1,createJSDocCallbackTag:N1,updateJSDocCallbackTag:mb,createJSDocOverloadTag:tv,updateJSDocOverloadTag:TT,createJSDocAugmentsTag:Wm,updateJSDocAugmentsTag:U0,createJSDocImplementsTag:hg,updateJSDocImplementsTag:ap,createJSDocSeeTag:_b,updateJSDocSeeTag:QI,createJSDocNameReference:H0,updateJSDocNameReference:rN,createJSDocMemberName:C1,updateJSDocMemberName:AT,createJSDocLink:Up,updateJSDocLink:IT,createJSDocLinkCode:Vl,updateJSDocLinkCode:Oc,createJSDocLinkPlain:xT,updateJSDocLinkPlain:Au,get createJSDocTypeTag(){return M(351)},get updateJSDocTypeTag(){return C(351)},get createJSDocReturnTag(){return M(349)},get updateJSDocReturnTag(){return C(349)},get createJSDocThisTag(){return M(350)},get updateJSDocThisTag(){return C(350)},get createJSDocAuthorTag(){return A(337)},get updateJSDocAuthorTag(){return R(337)},get createJSDocClassTag(){return A(339)},get updateJSDocClassTag(){return R(339)},get createJSDocPublicTag(){return A(340)},get updateJSDocPublicTag(){return R(340)},get createJSDocPrivateTag(){return A(341)},get updateJSDocPrivateTag(){return R(341)},get createJSDocProtectedTag(){return A(342)},get updateJSDocProtectedTag(){return R(342)},get createJSDocReadonlyTag(){return A(343)},get updateJSDocReadonlyTag(){return R(343)},get createJSDocOverrideTag(){return A(344)},get updateJSDocOverrideTag(){return R(344)},get createJSDocDeprecatedTag(){return A(338)},get updateJSDocDeprecatedTag(){return R(338)},get createJSDocThrowsTag(){return M(356)},get updateJSDocThrowsTag(){return C(356)},get createJSDocSatisfiesTag(){return M(357)},get updateJSDocSatisfiesTag(){return C(357)},createJSDocEnumTag:Hp,updateJSDocEnumTag:RT,createJSDocUnknownTag:ru,updateJSDocUnknownTag:ZI,createJSDocText:DT,updateJSDocText:Hs,createJSDocComment:iN,updateJSDocComment:J0,createJsxElement:P1,updateJsxElement:MM,createJsxSelfClosingElement:hd,updateJsxSelfClosingElement:nv,createJsxOpeningElement:q_,updateJsxOpeningElement:ex,createJsxClosingElement:Rp,updateJsxClosingElement:tx,createJsxFragment:sp,createJsxText:sy,updateJsxText:NT,createJsxOpeningFragment:oN,createJsxJsxClosingFragment:aN,updateJsxFragment:nx,createJsxAttribute:CT,updateJsxAttribute:sN,createJsxAttributes:vb,updateJsxAttributes:Dp,createJsxSpreadAttribute:Mh,updateJsxSpreadAttribute:lN,createJsxExpression:PT,updateJsxExpression:rs,createJsxNamespacedName:Ir,updateJsxNamespacedName:_f,createCaseClause:Cd,updateCaseClause:M1,createDefaultClause:cN,updateDefaultClause:K0,createHeritageClause:L1,updateHeritageClause:MT,createCatchClause:gg,updateCatchClause:s_,createPropertyAssignment:hf,updatePropertyAssignment:Fm,createShorthandPropertyAssignment:vg,updateShorthandPropertyAssignment:yg,createSpreadAssignment:cc,updateSpreadAssignment:uN,createEnumMember:Wf,updateEnumMember:Lh,createSourceFile:gf,updateSourceFile:Ls,createRedirectedSourceFile:k1,createBundle:w1,updateBundle:O1,createUnparsedSource:iv,createUnparsedPrologue:Y0,createUnparsedPrepend:D,createUnparsedTextLike:ae,createUnparsedSyntheticReference:ht,createInputFiles:on,createSyntheticExpression:wr,createSyntaxList:wi,createNotEmittedStatement:bi,createPartiallyEmittedExpression:no,updatePartiallyEmittedExpression:ga,createCommaListExpression:Pd,updateCommaListExpression:Ff,createSyntheticReferenceExpression:bb,updateSyntheticReferenceExpression:Si,cloneNode:Sb,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:kT,createImmediatelyInvokedArrowFunction:W1,createVoidZero:J_,createExportDefault:wh,createExternalModuleExport:dN,createTypeCheck:wT,createIsNotTypeCheck:$z,createMethodCall:Tb,createGlobalMethodCall:l_,createFunctionBindCall:h8,createFunctionCallCall:g8,createFunctionApplyCall:$0,createArraySliceCall:LM,createArrayConcatCall:Oh,createObjectDefinePropertyCall:ax,createObjectGetOwnPropertyDescriptorCall:v8,createReflectGetCall:K_,createReflectSetCall:$,createPropertyDescriptor:Ke,createCallBinding:Ni,createAssignmentTargetWrapper:hi,inlineExpressions:Xi,getInternalName:Rs,getLocalName:es,getExportName:zf,getDeclarationName:X_,getNamespaceMemberName:bg,getExternalModuleOrNamespaceExportName:ov,restoreOuterExpressions:Jt,restoreEnclosingLabel:zr,createUseStrictPrologue:lp,copyPrologue:av,copyStandardPrologue:OT,copyCustomPrologue:pN,ensureUseStrict:kM,liftToBlock:wM,mergeLexicalEnvironment:sv,replaceModifiers:Ib,replaceDecoratorsAndModifiers:fN,replacePropertyName:qp};return Xe(Voe,E=>E(O)),O;function U(E,P){if(E===void 0||E===et)E=[];else if(RE(E)){if(P===void 0||E.hasTrailingComma===P)return E.transformFlags===void 0&&XSe(E),N.attachNodeArrayDebugInfo(E),E;const Qe=E.slice();return Qe.pos=E.pos,Qe.end=E.end,Qe.hasTrailingComma=P,Qe.transformFlags=E.transformFlags,N.attachNodeArrayDebugInfo(Qe),Qe}const B=E.length,ce=B>=1&&B<=4?E.slice():E;return ce.pos=-1,ce.end=-1,ce.hasTrailingComma=!!P,ce.transformFlags=0,XSe(ce),N.attachNodeArrayDebugInfo(ce),ce}function K(E){return t.createBaseNode(E)}function Q(E){const P=K(E);return P.symbol=void 0,P.localSymbol=void 0,P}function V(E,P){return E!==P&&(E.typeArguments=P.typeArguments),or(E,P)}function se(E,P=0){const B=typeof E=="number"?E+"":E;N.assert(B.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");const ce=Q(9);return ce.text=B,ce.numericLiteralFlags=P,P&384&&(ce.transformFlags|=1024),ce}function G(E){const P=At(10);return P.text=typeof E=="string"?E:HE(E)+"n",P.transformFlags|=32,P}function ne(E,P){const B=Q(11);return B.text=E,B.singleQuote=P,B}function he(E,P,B){const ce=ne(E,P);return ce.hasExtendedUnicodeEscape=B,B&&(ce.transformFlags|=1024),ce}function ye(E){const P=ne(Qf(E),void 0);return P.textSourceNode=E,P}function Y(E){const P=At(14);return P.text=E,P}function X(E,P){switch(E){case 9:return se(P,0);case 10:return G(P);case 11:return he(P,void 0);case 12:return sy(P,!1);case 13:return sy(P,!0);case 14:return Y(P);case 15:return Rc(E,P,void 0,0)}}function oe(E){const P=t.createBaseIdentifierNode(80);return P.escapedText=E,P.jsDoc=void 0,P.flowNode=void 0,P.symbol=void 0,P}function pe(E,P,B,ce){const Qe=oe(_l(E));return kk(Qe,{flags:P,id:sW,prefix:B,suffix:ce}),sW++,Qe}function Ce(E,P,B){P===void 0&&E&&(P=IE(E)),P===80&&(P=void 0);const ce=oe(_l(E));return B&&(ce.flags|=256),ce.escapedText==="await"&&(ce.transformFlags|=67108864),ce.flags&256&&(ce.transformFlags|=1024),ce}function de(E,P,B,ce){let Qe=1;P&&(Qe|=8);const Kt=pe("",Qe,B,ce);return E&&E(Kt),Kt}function ie(E){let P=2;return E&&(P|=8),pe("",P,void 0,void 0)}function ve(E,P=0,B,ce){return N.assert(!(P&7),"Argument out of range: flags"),N.assert((P&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),pe(E,3|P,B,ce)}function Le(E,P=0,B,ce){N.assert(!(P&7),"Argument out of range: flags");const Qe=E?Kh(E)?S0(!1,B,E,ce,Er):`generated@${as(E)}`:"";(B||ce)&&(P|=16);const Kt=pe(Qe,4|P,B,ce);return Kt.original=E,Kt}function Ue(E){const P=t.createBasePrivateIdentifierNode(81);return P.escapedText=E,P.transformFlags|=16777216,P}function Ee(E){return uo(E,"#")||N.fail("First character of private identifier must be #: "+E),Ue(_l(E))}function De(E,P,B,ce){const Qe=Ue(_l(E));return kk(Qe,{flags:P,id:sW,prefix:B,suffix:ce}),sW++,Qe}function Me(E,P,B){E&&!uo(E,"#")&&N.fail("First character of private identifier must be #: "+E);const ce=8|(E?3:1);return De(E??"",ce,P,B)}function We(E,P,B){const ce=Kh(E)?S0(!0,P,E,B,Er):`#generated@${as(E)}`,Kt=De(ce,4|(P||B?16:0),P,B);return Kt.original=E,Kt}function At(E){return t.createBaseTokenNode(E)}function Se(E){N.assert(E>=0&&E<=165,"Invalid token"),N.assert(E<=15||E>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),N.assert(E<=9||E>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),N.assert(E!==80,"Invalid token. Use 'createIdentifier' to create identifiers");const P=At(E);let 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 ot(){return Se(110)}function Bt(){return Se(106)}function vt(){return Se(112)}function $e(){return Se(97)}function It(E){return Se(E)}function tn(E){const P=[];return E&32&&P.push(It(95)),E&128&&P.push(It(138)),E&2048&&P.push(It(90)),E&4096&&P.push(It(87)),E&1&&P.push(It(125)),E&2&&P.push(It(123)),E&4&&P.push(It(124)),E&64&&P.push(It(128)),E&256&&P.push(It(126)),E&16&&P.push(It(164)),E&8&&P.push(It(148)),E&512&&P.push(It(129)),E&1024&&P.push(It(134)),E&8192&&P.push(It(103)),E&16384&&P.push(It(147)),P.length?P:void 0}function rn(E,P){const B=K(166);return B.left=E,B.right=uc(P),B.transformFlags|=Tr(B.left)|Nk(B.right),B.flowNode=void 0,B}function Mn(E,P,B){return E.left!==P||E.right!==B?or(rn(P,B),E):E}function $n(E){const P=K(167);return P.expression=i().parenthesizeExpressionOfComputedPropertyName(E),P.transformFlags|=Tr(P.expression)|1024|131072,P}function gn(E,P){return E.expression!==P?or($n(P),E):E}function Qt(E,P,B,ce){const Qe=Q(168);return Qe.modifiers=Va(E),Qe.name=uc(P),Qe.constraint=B,Qe.default=ce,Qe.transformFlags=1,Qe.expression=void 0,Qe.jsDoc=void 0,Qe}function Yt(E,P,B,ce,Qe){return E.modifiers!==P||E.name!==B||E.constraint!==ce||E.default!==Qe?or(Qt(P,B,ce,Qe),E):E}function vi(E,P,B,ce,Qe,Kt){const yr=Q(169);return yr.modifiers=Va(E),yr.dotDotDotToken=P,yr.name=uc(B),yr.questionToken=ce,yr.type=Qe,yr.initializer=sx(Kt),VE(yr.name)?yr.transformFlags=1:yr.transformFlags=qa(yr.modifiers)|Tr(yr.dotDotDotToken)|Uy(yr.name)|Tr(yr.questionToken)|Tr(yr.initializer)|(yr.questionToken??yr.type?1:0)|(yr.dotDotDotToken??yr.initializer?1024:0)|(N_(yr.modifiers)&31?8192:0),yr.jsDoc=void 0,yr}function so(E,P,B,ce,Qe,Kt,yr){return E.modifiers!==P||E.dotDotDotToken!==B||E.name!==ce||E.questionToken!==Qe||E.type!==Kt||E.initializer!==yr?or(vi(P,B,ce,Qe,Kt,yr),E):E}function Wi(E){const P=K(170);return P.expression=i().parenthesizeLeftSideOfAccess(E,!1),P.transformFlags|=Tr(P.expression)|1|8192|33554432,P}function Co(E,P){return E.expression!==P?or(Wi(P),E):E}function Ln(E,P,B,ce){const Qe=Q(171);return Qe.modifiers=Va(E),Qe.name=uc(P),Qe.type=ce,Qe.questionToken=B,Qe.transformFlags=1,Qe.initializer=void 0,Qe.jsDoc=void 0,Qe}function Ci(E,P,B,ce,Qe){return E.modifiers!==P||E.name!==B||E.questionToken!==ce||E.type!==Qe?Ar(Ln(P,B,ce,Qe),E):E}function Ar(E,P){return E!==P&&(E.initializer=P.initializer),or(E,P)}function sn(E,P,B,ce,Qe){const Kt=Q(172);Kt.modifiers=Va(E),Kt.name=uc(P),Kt.questionToken=B&&Hy(B)?B:void 0,Kt.exclamationToken=B&&zk(B)?B:void 0,Kt.type=ce,Kt.initializer=sx(Qe);const yr=Kt.flags&33554432||N_(Kt.modifiers)&128;return Kt.transformFlags=qa(Kt.modifiers)|Uy(Kt.name)|Tr(Kt.initializer)|(yr||Kt.questionToken||Kt.exclamationToken||Kt.type?1:0)|(Za(Kt.name)||N_(Kt.modifiers)&256&&Kt.initializer?8192:0)|16777216,Kt.jsDoc=void 0,Kt}function tt(E,P,B,ce,Qe,Kt){return E.modifiers!==P||E.name!==B||E.questionToken!==(ce!==void 0&&Hy(ce)?ce:void 0)||E.exclamationToken!==(ce!==void 0&&zk(ce)?ce:void 0)||E.type!==Qe||E.initializer!==Kt?or(sn(P,B,ce,Qe,Kt),E):E}function zt(E,P,B,ce,Qe,Kt){const yr=Q(173);return yr.modifiers=Va(E),yr.name=uc(P),yr.questionToken=B,yr.typeParameters=Va(ce),yr.parameters=Va(Qe),yr.type=Kt,yr.transformFlags=1,yr.jsDoc=void 0,yr.locals=void 0,yr.nextContainer=void 0,yr.typeArguments=void 0,yr}function Dn(E,P,B,ce,Qe,Kt,yr){return E.modifiers!==P||E.name!==B||E.questionToken!==ce||E.typeParameters!==Qe||E.parameters!==Kt||E.type!==yr?V(zt(P,B,ce,Qe,Kt,yr),E):E}function ci(E,P,B,ce,Qe,Kt,yr,ro){const qs=Q(174);if(qs.modifiers=Va(E),qs.asteriskToken=P,qs.name=uc(B),qs.questionToken=ce,qs.exclamationToken=void 0,qs.typeParameters=Va(Qe),qs.parameters=U(Kt),qs.type=yr,qs.body=ro,!qs.body)qs.transformFlags=1;else{const c_=N_(qs.modifiers)&1024,Rb=!!qs.asteriskToken,zm=c_&&Rb;qs.transformFlags=qa(qs.modifiers)|Tr(qs.asteriskToken)|Uy(qs.name)|Tr(qs.questionToken)|qa(qs.typeParameters)|qa(qs.parameters)|Tr(qs.type)|Tr(qs.body)&-67108865|(zm?128:c_?256:Rb?2048:0)|(qs.questionToken||qs.typeParameters||qs.type?1:0)|1024}return qs.typeArguments=void 0,qs.jsDoc=void 0,qs.locals=void 0,qs.nextContainer=void 0,qs.flowNode=void 0,qs.endFlowNode=void 0,qs.returnFlowNode=void 0,qs}function yi(E,P,B,ce,Qe,Kt,yr,ro,qs){return E.modifiers!==P||E.asteriskToken!==B||E.name!==ce||E.questionToken!==Qe||E.typeParameters!==Kt||E.parameters!==yr||E.type!==ro||E.body!==qs?Qi(ci(P,B,ce,Qe,Kt,yr,ro,qs),E):E}function Qi(E,P){return E!==P&&(E.exclamationToken=P.exclamationToken),or(E,P)}function Io(E){const P=Q(175);return P.body=E,P.transformFlags=Tr(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 fa(E,P){return E.body!==P?ka(Io(P),E):E}function ka(E,P){return E!==P&&(E.modifiers=P.modifiers),or(E,P)}function Tn(E,P,B){const ce=Q(176);return ce.modifiers=Va(E),ce.parameters=U(P),ce.body=B,ce.transformFlags=qa(ce.modifiers)|qa(ce.parameters)|Tr(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?He(Tn(P,B,ce),E):E}function He(E,P){return E!==P&&(E.typeParameters=P.typeParameters,E.type=P.type),V(E,P)}function mt(E,P,B,ce,Qe){const Kt=Q(177);return Kt.modifiers=Va(E),Kt.name=uc(P),Kt.parameters=U(B),Kt.type=ce,Kt.body=Qe,Kt.body?Kt.transformFlags=qa(Kt.modifiers)|Uy(Kt.name)|qa(Kt.parameters)|Tr(Kt.type)|Tr(Kt.body)&-67108865|(Kt.type?1:0):Kt.transformFlags=1,Kt.typeArguments=void 0,Kt.typeParameters=void 0,Kt.jsDoc=void 0,Kt.locals=void 0,Kt.nextContainer=void 0,Kt.flowNode=void 0,Kt.endFlowNode=void 0,Kt.returnFlowNode=void 0,Kt}function ft(E,P,B,ce,Qe,Kt){return E.modifiers!==P||E.name!==B||E.parameters!==ce||E.type!==Qe||E.body!==Kt?Ct(mt(P,B,ce,Qe,Kt),E):E}function Ct(E,P){return E!==P&&(E.typeParameters=P.typeParameters),V(E,P)}function le(E,P,B,ce){const Qe=Q(178);return Qe.modifiers=Va(E),Qe.name=uc(P),Qe.parameters=U(B),Qe.body=ce,Qe.body?Qe.transformFlags=qa(Qe.modifiers)|Uy(Qe.name)|qa(Qe.parameters)|Tr(Qe.body)&-67108865|(Qe.type?1:0):Qe.transformFlags=1,Qe.typeArguments=void 0,Qe.typeParameters=void 0,Qe.type=void 0,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.flowNode=void 0,Qe.endFlowNode=void 0,Qe.returnFlowNode=void 0,Qe}function Fe(E,P,B,ce,Qe){return E.modifiers!==P||E.name!==B||E.parameters!==ce||E.body!==Qe?pt(le(P,B,ce,Qe),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){const ce=Q(179);return ce.typeParameters=Va(E),ce.parameters=Va(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 it(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?V(j(P,B,ce),E):E}function Rt(E,P,B){const ce=Q(180);return ce.typeParameters=Va(E),ce.parameters=Va(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(Rt(P,B,ce),E):E}function _t(E,P,B){const ce=Q(181);return ce.modifiers=Va(E),ce.parameters=Va(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 Gt(E,P,B,ce){return E.parameters!==B||E.type!==ce||E.modifiers!==P?V(_t(P,B,ce),E):E}function yn(E,P){const 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?or(yn(P,B),E):E}function hn(E){return Se(E)}function q(E,P,B){const ce=K(182);return ce.assertsModifier=E,ce.parameterName=uc(P),ce.type=B,ce.transformFlags=1,ce}function Oe(E,P,B,ce){return E.assertsModifier!==P||E.parameterName!==B||E.type!==ce?or(q(P,B,ce),E):E}function Lt(E,P){const B=K(183);return B.typeName=uc(E),B.typeArguments=P&&i().parenthesizeTypeArguments(U(P)),B.transformFlags=1,B}function L(E,P,B){return E.typeName!==P||E.typeArguments!==B?or(Lt(P,B),E):E}function me(E,P,B){const ce=Q(184);return ce.typeParameters=Va(E),ce.parameters=Va(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?fe(me(P,B,ce),E):E}function fe(E,P){return E!==P&&(E.modifiers=P.modifiers),V(E,P)}function Be(...E){return E.length===4?ke(...E):E.length===3?Tt(...E):N.fail("Incorrect number of arguments specified.")}function ke(E,P,B,ce){const Qe=Q(185);return Qe.modifiers=Va(E),Qe.typeParameters=Va(P),Qe.parameters=Va(B),Qe.type=ce,Qe.transformFlags=1,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.typeArguments=void 0,Qe}function Tt(E,P,B){return ke(void 0,E,P,B)}function kt(...E){return E.length===5?en(...E):E.length===4?En(...E):N.fail("Incorrect number of arguments specified.")}function en(E,P,B,ce,Qe){return E.modifiers!==P||E.typeParameters!==B||E.parameters!==ce||E.type!==Qe?V(Be(P,B,ce,Qe),E):E}function En(E,P,B,ce){return en(E,E.modifiers,P,B,ce)}function Gn(E,P){const B=K(186);return B.exprName=E,B.typeArguments=P&&i().parenthesizeTypeArguments(P),B.transformFlags=1,B}function qn(E,P,B){return E.exprName!==P||E.typeArguments!==B?or(Gn(P,B),E):E}function Pi(E){const P=Q(187);return P.members=U(E),P.transformFlags=1,P}function xi(E,P){return E.members!==P?or(Pi(P),E):E}function ir(E){const P=K(188);return P.elementType=i().parenthesizeNonArrayTypeOfPostfixType(E),P.transformFlags=1,P}function Vr(E,P){return E.elementType!==P?or(ir(P),E):E}function vo(E){const P=K(189);return P.elements=U(i().parenthesizeElementTypesOfTupleType(E)),P.transformFlags=1,P}function Mi(E,P){return E.elements!==P?or(vo(P),E):E}function Ri(E,P,B,ce){const Qe=Q(202);return Qe.dotDotDotToken=E,Qe.name=P,Qe.questionToken=B,Qe.type=ce,Qe.transformFlags=1,Qe.jsDoc=void 0,Qe}function Jr(E,P,B,ce,Qe){return E.dotDotDotToken!==P||E.name!==B||E.questionToken!==ce||E.type!==Qe?or(Ri(P,B,ce,Qe),E):E}function xo(E){const P=K(190);return P.type=i().parenthesizeTypeOfOptionalType(E),P.transformFlags=1,P}function Nn(E,P){return E.type!==P?or(xo(P),E):E}function Fs(E){const P=K(191);return P.type=E,P.transformFlags=1,P}function Ql(E,P){return E.type!==P?or(Fs(P),E):E}function ko(E,P,B){const ce=K(E);return ce.types=O.createNodeArray(B(P)),ce.transformFlags=1,ce}function cs(E,P,B){return E.types!==P?or(ko(E.kind,P,B),E):E}function Vs(E){return ko(192,E,i().parenthesizeConstituentTypesOfUnionType)}function gl(E,P){return cs(E,P,i().parenthesizeConstituentTypesOfUnionType)}function cu(E){return ko(193,E,i().parenthesizeConstituentTypesOfIntersectionType)}function ho(E,P){return cs(E,P,i().parenthesizeConstituentTypesOfIntersectionType)}function da(E,P,B,ce){const Qe=K(194);return Qe.checkType=i().parenthesizeCheckTypeOfConditionalType(E),Qe.extendsType=i().parenthesizeExtendsTypeOfConditionalType(P),Qe.trueType=B,Qe.falseType=ce,Qe.transformFlags=1,Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function uu(E,P,B,ce,Qe){return E.checkType!==P||E.extendsType!==B||E.trueType!==ce||E.falseType!==Qe?or(da(P,B,ce,Qe),E):E}function Ts(E){const P=K(195);return P.typeParameter=E,P.transformFlags=1,P}function Ca(E,P){return E.typeParameter!==P?or(Ts(P),E):E}function ml(E,P){const B=K(203);return B.head=E,B.templateSpans=U(P),B.transformFlags=1,B}function Lf(E,P,B){return E.head!==P||E.templateSpans!==B?or(ml(P,B),E):E}function lc(E,P,B,ce,Qe=!1){const Kt=K(205);return Kt.argument=E,Kt.attributes=P,Kt.assertions&&Kt.assertions.assertClause&&Kt.attributes&&(Kt.assertions.assertClause=Kt.attributes),Kt.qualifier=B,Kt.typeArguments=ce&&i().parenthesizeTypeArguments(ce),Kt.isTypeOf=Qe,Kt.transformFlags=1,Kt}function Nl(E,P,B,ce,Qe,Kt=E.isTypeOf){return E.argument!==P||E.attributes!==B||E.qualifier!==ce||E.typeArguments!==Qe||E.isTypeOf!==Kt?or(lc(P,B,ce,Qe,Kt),E):E}function cl(E){const P=K(196);return P.type=E,P.transformFlags=1,P}function wo(E,P){return E.type!==P?or(cl(P),E):E}function nn(){const E=K(197);return E.transformFlags=1,E}function js(E,P){const B=K(198);return B.operator=E,B.type=E===148?i().parenthesizeOperandOfReadonlyTypeOperator(P):i().parenthesizeOperandOfTypeOperator(P),B.transformFlags=1,B}function tu(E,P){return E.type!==P?or(js(E.operator,P),E):E}function du(E,P){const 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?or(du(P,B),E):E}function Ms(E,P,B,ce,Qe,Kt){const yr=Q(200);return yr.readonlyToken=E,yr.typeParameter=P,yr.nameType=B,yr.questionToken=ce,yr.type=Qe,yr.members=Kt&&U(Kt),yr.transformFlags=1,yr.locals=void 0,yr.nextContainer=void 0,yr}function xc(E,P,B,ce,Qe,Kt,yr){return E.readonlyToken!==P||E.typeParameter!==B||E.nameType!==ce||E.questionToken!==Qe||E.type!==Kt||E.members!==yr?or(Ms(P,B,ce,Qe,Kt,yr),E):E}function ue(E){const P=K(201);return P.literal=E,P.transformFlags=1,P}function Z(E,P){return E.literal!==P?or(ue(P),E):E}function we(E){const P=K(206);return P.elements=U(E),P.transformFlags|=qa(P.elements)|1024|524288,P.transformFlags&32768&&(P.transformFlags|=65664),P}function Et(E,P){return E.elements!==P?or(we(P),E):E}function un(E){const P=K(207);return P.elements=U(E),P.transformFlags|=qa(P.elements)|1024|524288,P}function Sr(E,P){return E.elements!==P?or(un(P),E):E}function vr(E,P,B,ce){const Qe=Q(208);return Qe.dotDotDotToken=E,Qe.propertyName=uc(P),Qe.name=uc(B),Qe.initializer=sx(ce),Qe.transformFlags|=Tr(Qe.dotDotDotToken)|Uy(Qe.propertyName)|Uy(Qe.name)|Tr(Qe.initializer)|(Qe.dotDotDotToken?32768:0)|1024,Qe.flowNode=void 0,Qe}function jr(E,P,B,ce,Qe){return E.propertyName!==B||E.dotDotDotToken!==P||E.name!==ce||E.initializer!==Qe?or(vr(P,B,ce,Qe),E):E}function Di(E,P){const B=K(209),ce=E&&el(E),Qe=U(E,ce&&Gc(ce)?!0:void 0);return B.elements=i().parenthesizeExpressionsOfCommaDelimitedList(Qe),B.multiLine=P,B.transformFlags|=qa(B.elements),B}function Mr(E,P){return E.elements!==P?or(Di(P,E.multiLine),E):E}function Yo(E,P){const B=Q(210);return B.properties=U(E),B.multiLine=P,B.transformFlags|=qa(B.properties),B.jsDoc=void 0,B}function Sl(E,P){return E.properties!==P?or(Yo(P,E.multiLine),E):E}function jc(E,P,B){const ce=Q(211);return ce.expression=E,ce.questionDotToken=P,ce.name=B,ce.transformFlags=Tr(ce.expression)|Tr(ce.questionDotToken)|(Ve(ce.name)?Nk(ce.name):Tr(ce.name)|536870912),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function Us(E,P){const B=jc(i().parenthesizeLeftSideOfAccess(E,!1),void 0,uc(P));return fP(E)&&(B.transformFlags|=384),B}function vc(E,P,B){return p4(E)?Uc(E,P,E.questionDotToken,oa(B,Ve)):E.expression!==P||E.name!==B?or(Us(P,B),E):E}function Es(E,P,B){const ce=jc(i().parenthesizeLeftSideOfAccess(E,!0),P,uc(B));return ce.flags|=64,ce.transformFlags|=32,ce}function Uc(E,P,B,ce){return N.assert(!!(E.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),E.expression!==P||E.questionDotToken!==B||E.name!==ce?or(Es(P,B,ce),E):E}function ip(E,P,B){const ce=Q(212);return ce.expression=E,ce.questionDotToken=P,ce.argumentExpression=B,ce.transformFlags|=Tr(ce.expression)|Tr(ce.questionDotToken)|Tr(ce.argumentExpression),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function wc(E,P){const B=ip(i().parenthesizeLeftSideOfAccess(E,!1),void 0,Z0(P));return fP(E)&&(B.transformFlags|=384),B}function sm(E,P,B){return DV(E)?Pe(E,P,E.questionDotToken,B):E.expression!==P||E.argumentExpression!==B?or(wc(P,B),E):E}function _d(E,P,B){const ce=ip(i().parenthesizeLeftSideOfAccess(E,!0),P,Z0(B));return ce.flags|=64,ce.transformFlags|=32,ce}function Pe(E,P,B,ce){return N.assert(!!(E.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),E.expression!==P||E.questionDotToken!==B||E.argumentExpression!==ce?or(_d(P,B,ce),E):E}function Ot(E,P,B,ce){const Qe=Q(213);return Qe.expression=E,Qe.questionDotToken=P,Qe.typeArguments=B,Qe.arguments=ce,Qe.transformFlags|=Tr(Qe.expression)|Tr(Qe.questionDotToken)|qa(Qe.typeArguments)|qa(Qe.arguments),Qe.typeArguments&&(Qe.transformFlags|=1),zd(Qe.expression)&&(Qe.transformFlags|=16384),Qe}function Xn(E,P,B){const ce=Ot(i().parenthesizeLeftSideOfAccess(E,!1),void 0,Va(P),i().parenthesizeExpressionsOfCommaDelimitedList(U(B)));return mP(ce.expression)&&(ce.transformFlags|=8388608),ce}function yo(E,P,B,ce){return uS(E)?na(E,P,E.questionDotToken,B,ce):E.expression!==P||E.typeArguments!==B||E.arguments!==ce?or(Xn(P,B,ce),E):E}function $o(E,P,B,ce){const Qe=Ot(i().parenthesizeLeftSideOfAccess(E,!0),P,Va(B),i().parenthesizeExpressionsOfCommaDelimitedList(U(ce)));return Qe.flags|=64,Qe.transformFlags|=32,Qe}function na(E,P,B,ce,Qe){return N.assert(!!(E.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),E.expression!==P||E.questionDotToken!==B||E.typeArguments!==ce||E.arguments!==Qe?or($o(P,B,ce,Qe),E):E}function Zl(E,P,B){const ce=Q(214);return ce.expression=i().parenthesizeExpressionOfNew(E),ce.typeArguments=Va(P),ce.arguments=B?i().parenthesizeExpressionsOfCommaDelimitedList(B):void 0,ce.transformFlags|=Tr(ce.expression)|qa(ce.typeArguments)|qa(ce.arguments)|32,ce.typeArguments&&(ce.transformFlags|=1),ce}function yc(E,P,B,ce){return E.expression!==P||E.typeArguments!==B||E.arguments!==ce?or(Zl(P,B,ce),E):E}function ul(E,P,B){const ce=K(215);return ce.tag=i().parenthesizeLeftSideOfAccess(E,!1),ce.typeArguments=Va(P),ce.template=B,ce.transformFlags|=Tr(ce.tag)|qa(ce.typeArguments)|Tr(ce.template)|1024,ce.typeArguments&&(ce.transformFlags|=1),Bj(ce.template)&&(ce.transformFlags|=128),ce}function vl(E,P,B,ce){return E.tag!==P||E.typeArguments!==B||E.template!==ce?or(ul(P,B,ce),E):E}function Gl(E,P){const B=K(216);return B.expression=i().parenthesizeOperandOfPrefixUnary(P),B.type=E,B.transformFlags|=Tr(B.expression)|Tr(B.type)|1,B}function ec(E,P,B){return E.type!==P||E.expression!==B?or(Gl(P,B),E):E}function Hc(E){const P=K(217);return P.expression=E,P.transformFlags=Tr(P.expression),P.jsDoc=void 0,P}function df(E,P){return E.expression!==P?or(Hc(P),E):E}function jd(E,P,B,ce,Qe,Kt,yr){const ro=Q(218);ro.modifiers=Va(E),ro.asteriskToken=P,ro.name=uc(B),ro.typeParameters=Va(ce),ro.parameters=U(Qe),ro.type=Kt,ro.body=yr;const qs=N_(ro.modifiers)&1024,c_=!!ro.asteriskToken,Rb=qs&&c_;return ro.transformFlags=qa(ro.modifiers)|Tr(ro.asteriskToken)|Uy(ro.name)|qa(ro.typeParameters)|qa(ro.parameters)|Tr(ro.type)|Tr(ro.body)&-67108865|(Rb?128:qs?256:c_?2048:0)|(ro.typeParameters||ro.type?1:0)|4194304,ro.typeArguments=void 0,ro.jsDoc=void 0,ro.locals=void 0,ro.nextContainer=void 0,ro.flowNode=void 0,ro.endFlowNode=void 0,ro.returnFlowNode=void 0,ro}function Nd(E,P,B,ce,Qe,Kt,yr,ro){return E.name!==ce||E.modifiers!==P||E.asteriskToken!==B||E.typeParameters!==Qe||E.parameters!==Kt||E.type!==yr||E.body!==ro?V(jd(P,B,ce,Qe,Kt,yr,ro),E):E}function kf(E,P,B,ce,Qe,Kt){const yr=Q(219);yr.modifiers=Va(E),yr.typeParameters=Va(P),yr.parameters=U(B),yr.type=ce,yr.equalsGreaterThanToken=Qe??Se(39),yr.body=i().parenthesizeConciseBodyOfArrowFunction(Kt);const ro=N_(yr.modifiers)&1024;return yr.transformFlags=qa(yr.modifiers)|qa(yr.typeParameters)|qa(yr.parameters)|Tr(yr.type)|Tr(yr.equalsGreaterThanToken)|Tr(yr.body)&-67108865|(yr.typeParameters||yr.type?1:0)|(ro?16640:0)|1024,yr.typeArguments=void 0,yr.jsDoc=void 0,yr.locals=void 0,yr.nextContainer=void 0,yr.flowNode=void 0,yr.endFlowNode=void 0,yr.returnFlowNode=void 0,yr}function V_(E,P,B,ce,Qe,Kt,yr){return E.modifiers!==P||E.typeParameters!==B||E.parameters!==ce||E.type!==Qe||E.equalsGreaterThanToken!==Kt||E.body!==yr?V(kf(P,B,ce,Qe,Kt,yr),E):E}function Dh(E){const P=K(220);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Tr(P.expression),P}function qg(E,P){return E.expression!==P?or(Dh(P),E):E}function Bu(E){const P=K(221);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Tr(P.expression),P}function Jg(E,P){return E.expression!==P?or(Bu(P),E):E}function Ap(E){const P=K(222);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Tr(P.expression),P}function dg(E,P){return E.expression!==P?or(Ap(P),E):E}function Ud(E){const P=K(223);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Tr(P.expression)|256|128|2097152,P}function te(E,P){return E.expression!==P?or(Ud(P),E):E}function lt(E,P){const B=K(224);return B.operator=E,B.operand=i().parenthesizeOperandOfPrefixUnary(P),B.transformFlags|=Tr(B.operand),(E===46||E===47)&&Ve(B.operand)&&!al(B.operand)&&!Gg(B.operand)&&(B.transformFlags|=268435456),B}function Ft(E,P){return E.operand!==P?or(lt(E.operator,P),E):E}function Vt(E,P){const B=K(225);return B.operator=P,B.operand=i().parenthesizeOperandOfPostfixUnary(E),B.transformFlags|=Tr(B.operand),Ve(B.operand)&&!al(B.operand)&&!Gg(B.operand)&&(B.transformFlags|=268435456),B}function W(E,P){return E.operand!==P?or(Vt(P,E.operator),E):E}function Te(E,P,B){const ce=Q(226),Qe=OM(P),Kt=Qe.kind;return ce.left=i().parenthesizeLeftSideOfBinary(Kt,E),ce.operatorToken=Qe,ce.right=i().parenthesizeRightSideOfBinary(Kt,ce.left,B),ce.transformFlags|=Tr(ce.left)|Tr(ce.operatorToken)|Tr(ce.right),Kt===61?ce.transformFlags|=32:Kt===64?La(ce.left)?ce.transformFlags|=5248|st(ce.left):fd(ce.left)&&(ce.transformFlags|=5120|st(ce.left)):Kt===43||Kt===68?ce.transformFlags|=512:WC(Kt)&&(ce.transformFlags|=16),Kt===103&&qi(ce.left)&&(ce.transformFlags|=536870912),ce.jsDoc=void 0,ce}function st(E){return nw(E)?65536:0}function qt(E,P,B,ce){return E.left!==P||E.operatorToken!==B||E.right!==ce?or(Te(P,B,ce),E):E}function rr(E,P,B,ce,Qe){const Kt=K(227);return Kt.condition=i().parenthesizeConditionOfConditionalExpression(E),Kt.questionToken=P??Se(58),Kt.whenTrue=i().parenthesizeBranchOfConditionalExpression(B),Kt.colonToken=ce??Se(59),Kt.whenFalse=i().parenthesizeBranchOfConditionalExpression(Qe),Kt.transformFlags|=Tr(Kt.condition)|Tr(Kt.questionToken)|Tr(Kt.whenTrue)|Tr(Kt.colonToken)|Tr(Kt.whenFalse),Kt}function ii(E,P,B,ce,Qe,Kt){return E.condition!==P||E.questionToken!==B||E.whenTrue!==ce||E.colonToken!==Qe||E.whenFalse!==Kt?or(rr(P,B,ce,Qe,Kt),E):E}function Yr(E,P){const B=K(228);return B.head=E,B.templateSpans=U(P),B.transformFlags|=Tr(B.head)|qa(B.templateSpans)|1024,B}function oo(E,P,B){return E.head!==P||E.templateSpans!==B?or(Yr(P,B),E):E}function wa(E,P,B,ce=0){N.assert(!(ce&-7177),"Unsupported template flags.");let Qe;if(B!==void 0&&B!==P&&(Qe=PBe(E,B),typeof Qe=="object"))return N.fail("Invalid raw text");if(P===void 0){if(Qe===void 0)return N.fail("Arguments 'text' and 'rawText' may not both be undefined.");P=Qe}else Qe!==void 0&&N.assert(P===Qe,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return P}function Oa(E){let P=1024;return E&&(P|=128),P}function Ol(E,P,B,ce){const Qe=At(E);return Qe.text=P,Qe.rawText=B,Qe.templateFlags=ce&7176,Qe.transformFlags=Oa(Qe.templateFlags),Qe}function pu(E,P,B,ce){const Qe=Q(E);return Qe.text=P,Qe.rawText=B,Qe.templateFlags=ce&7176,Qe.transformFlags=Oa(Qe.templateFlags),Qe}function Rc(E,P,B,ce){return E===15?pu(E,P,B,ce):Ol(E,P,B,ce)}function Ip(E,P,B){return E=wa(16,E,P,B),Rc(16,E,P,B)}function Hd(E,P,B){return E=wa(16,E,P,B),Rc(17,E,P,B)}function ab(E,P,B){return E=wa(16,E,P,B),Rc(18,E,P,B)}function us(E,P,B){return E=wa(16,E,P,B),pu(15,E,P,B)}function Pm(E,P){N.assert(!E||!!P,"A `YieldExpression` with an asteriskToken must have an expression.");const B=K(229);return B.expression=P&&i().parenthesizeExpressionForDisallowedComma(P),B.asteriskToken=E,B.transformFlags|=Tr(B.expression)|Tr(B.asteriskToken)|1024|128|1048576,B}function Mm(E,P,B){return E.expression!==B||E.asteriskToken!==P?or(Pm(P,B),E):E}function Ui(E){const P=K(230);return P.expression=i().parenthesizeExpressionForDisallowedComma(E),P.transformFlags|=Tr(P.expression)|1024|32768,P}function Kg(E,P){return E.expression!==P?or(Ui(P),E):E}function ey(E,P,B,ce,Qe){const Kt=Q(231);return Kt.modifiers=Va(E),Kt.name=uc(P),Kt.typeParameters=Va(B),Kt.heritageClauses=Va(ce),Kt.members=U(Qe),Kt.transformFlags|=qa(Kt.modifiers)|Uy(Kt.name)|qa(Kt.typeParameters)|qa(Kt.heritageClauses)|qa(Kt.members)|(Kt.typeParameters?1:0)|1024,Kt.jsDoc=void 0,Kt}function Lm(E,P,B,ce,Qe,Kt){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.heritageClauses!==Qe||E.members!==Kt?or(ey(P,B,ce,Qe,Kt),E):E}function b1(){return K(232)}function E1(E,P){const B=K(233);return B.expression=i().parenthesizeLeftSideOfAccess(E,!1),B.typeArguments=P&&i().parenthesizeTypeArguments(P),B.transformFlags|=Tr(B.expression)|qa(B.typeArguments)|1024,B}function pf(E,P,B){return E.expression!==P||E.typeArguments!==B?or(E1(P,B),E):E}function j_(E,P){const B=K(234);return B.expression=E,B.type=P,B.transformFlags|=Tr(B.expression)|Tr(B.type)|1,B}function ff(E,P,B){return E.expression!==P||E.type!==B?or(j_(P,B),E):E}function Xg(E){const P=K(235);return P.expression=i().parenthesizeLeftSideOfAccess(E,!1),P.transformFlags|=Tr(P.expression)|1,P}function ze(E,P){return m4(E)?bn(E,P):E.expression!==P?or(Xg(P),E):E}function Ze(E,P){const B=K(238);return B.expression=E,B.type=P,B.transformFlags|=Tr(B.expression)|Tr(B.type)|1,B}function Mt(E,P,B){return E.expression!==P||E.type!==B?or(Ze(P,B),E):E}function jt(E){const P=K(235);return P.flags|=64,P.expression=i().parenthesizeLeftSideOfAccess(E,!0),P.transformFlags|=Tr(P.expression)|1,P}function bn(E,P){return N.assert(!!(E.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),E.expression!==P?or(jt(P),E):E}function Qn(E,P){const B=K(236);switch(B.keywordToken=E,B.name=P,B.transformFlags|=Tr(B.name),E){case 105:B.transformFlags|=1024;break;case 102:B.transformFlags|=32;break;default:return N.assertNever(E)}return B.flowNode=void 0,B}function vn(E,P){return E.name!==P?or(Qn(E.keywordToken,P),E):E}function Zn(E,P){const B=K(239);return B.expression=E,B.literal=P,B.transformFlags|=Tr(B.expression)|Tr(B.literal)|1024,B}function _i(E,P,B){return E.expression!==P||E.literal!==B?or(Zn(P,B),E):E}function cr(){const E=K(240);return E.transformFlags|=1024,E}function ni(E,P){const B=K(241);return B.statements=U(E),B.multiLine=P,B.transformFlags|=qa(B.statements),B.jsDoc=void 0,B.locals=void 0,B.nextContainer=void 0,B}function fr(E,P){return E.statements!==P?or(ni(P,E.multiLine),E):E}function Qo(E,P){const B=K(243);return B.modifiers=Va(E),B.declarationList=To(P)?op(P):P,B.transformFlags|=qa(B.modifiers)|Tr(B.declarationList),N_(B.modifiers)&128&&(B.transformFlags=1),B.jsDoc=void 0,B.flowNode=void 0,B}function Ja(E,P,B){return E.modifiers!==P||E.declarationList!==B?or(Qo(P,B),E):E}function Zu(){const E=K(242);return E.jsDoc=void 0,E}function fu(E){const P=K(244);return P.expression=i().parenthesizeExpressionOfExpressionStatement(E),P.transformFlags|=Tr(P.expression),P.jsDoc=void 0,P.flowNode=void 0,P}function Yg(E,P){return E.expression!==P?or(fu(P),E):E}function O0(E,P,B){const ce=K(245);return ce.expression=E,ce.thenStatement=xb(P),ce.elseStatement=xb(B),ce.transformFlags|=Tr(ce.expression)|Tr(ce.thenStatement)|Tr(ce.elseStatement),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function zI(E,P,B,ce){return E.expression!==P||E.thenStatement!==B||E.elseStatement!==ce?or(O0(P,B,ce),E):E}function W0(E,P){const B=K(246);return B.statement=xb(E),B.expression=P,B.transformFlags|=Tr(B.statement)|Tr(B.expression),B.jsDoc=void 0,B.flowNode=void 0,B}function qD(E,P,B){return E.statement!==P||E.expression!==B?or(W0(P,B),E):E}function JD(E,P){const B=K(247);return B.expression=E,B.statement=xb(P),B.transformFlags|=Tr(B.expression)|Tr(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function KD(E,P,B){return E.expression!==P||E.statement!==B?or(JD(P,B),E):E}function uT(E,P,B,ce){const Qe=K(248);return Qe.initializer=E,Qe.condition=P,Qe.incrementor=B,Qe.statement=xb(ce),Qe.transformFlags|=Tr(Qe.initializer)|Tr(Qe.condition)|Tr(Qe.incrementor)|Tr(Qe.statement),Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.flowNode=void 0,Qe}function S1(E,P,B,ce,Qe){return E.initializer!==P||E.condition!==B||E.incrementor!==ce||E.statement!==Qe?or(uT(P,B,ce,Qe),E):E}function BI(E,P,B){const ce=K(249);return ce.initializer=E,ce.expression=P,ce.statement=xb(B),ce.transformFlags|=Tr(ce.initializer)|Tr(ce.expression)|Tr(ce.statement),ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.flowNode=void 0,ce}function XD(E,P,B,ce){return E.initializer!==P||E.expression!==B||E.statement!==ce?or(BI(P,B,ce),E):E}function GI(E,P,B,ce){const Qe=K(250);return Qe.awaitModifier=E,Qe.initializer=P,Qe.expression=i().parenthesizeExpressionForDisallowedComma(B),Qe.statement=xb(ce),Qe.transformFlags|=Tr(Qe.awaitModifier)|Tr(Qe.initializer)|Tr(Qe.expression)|Tr(Qe.statement)|1024,E&&(Qe.transformFlags|=128),Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.flowNode=void 0,Qe}function VI(E,P,B,ce,Qe){return E.awaitModifier!==P||E.initializer!==B||E.expression!==ce||E.statement!==Qe?or(GI(P,B,ce,Qe),E):E}function jI(E){const P=K(251);return P.label=uc(E),P.transformFlags|=Tr(P.label)|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function UI(E,P){return E.label!==P?or(jI(P),E):E}function dT(E){const P=K(252);return P.label=uc(E),P.transformFlags|=Tr(P.label)|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function HI(E,P){return E.label!==P?or(dT(P),E):E}function T1(E){const P=K(253);return P.expression=E,P.transformFlags|=Tr(P.expression)|128|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function A1(E,P){return E.expression!==P?or(T1(P),E):E}function sb(E,P){const B=K(254);return B.expression=E,B.statement=xb(P),B.transformFlags|=Tr(B.expression)|Tr(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function lb(E,P,B){return E.expression!==P||E.statement!==B?or(sb(P,B),E):E}function pg(E,P){const B=K(255);return B.expression=i().parenthesizeExpressionForDisallowedComma(E),B.caseBlock=P,B.transformFlags|=Tr(B.expression)|Tr(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?or(pg(P,B),E):E}function ts(E,P){const B=K(256);return B.label=uc(E),B.statement=xb(P),B.transformFlags|=Tr(B.label)|Tr(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function pT(E,P,B){return E.label!==P||E.statement!==B?or(ts(P,B),E):E}function YD(E){const P=K(257);return P.expression=E,P.transformFlags|=Tr(P.expression),P.jsDoc=void 0,P.flowNode=void 0,P}function z0(E,P){return E.expression!==P?or(YD(P),E):E}function $g(E,P,B){const ce=K(258);return ce.tryBlock=E,ce.catchClause=P,ce.finallyBlock=B,ce.transformFlags|=Tr(ce.tryBlock)|Tr(ce.catchClause)|Tr(ce.finallyBlock),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function Nh(E,P,B,ce){return E.tryBlock!==P||E.catchClause!==B||E.finallyBlock!==ce?or($g(P,B,ce),E):E}function wf(){const E=K(259);return E.jsDoc=void 0,E.flowNode=void 0,E}function qd(E,P,B,ce){const Qe=Q(260);return Qe.name=uc(E),Qe.exclamationToken=P,Qe.type=B,Qe.initializer=sx(ce),Qe.transformFlags|=Uy(Qe.name)|Tr(Qe.initializer)|(Qe.exclamationToken??Qe.type?1:0),Qe.jsDoc=void 0,Qe}function xp(E,P,B,ce,Qe){return E.name!==P||E.type!==ce||E.exclamationToken!==B||E.initializer!==Qe?or(qd(P,B,ce,Qe),E):E}function op(E,P=0){const B=K(261);return B.flags|=P&7,B.declarations=U(E),B.transformFlags|=qa(B.declarations)|4194304,P&7&&(B.transformFlags|=263168),P&4&&(B.transformFlags|=4),B}function ty(E,P){return E.declarations!==P?or(op(P,E.flags),E):E}function fT(E,P,B,ce,Qe,Kt,yr){const ro=Q(262);if(ro.modifiers=Va(E),ro.asteriskToken=P,ro.name=uc(B),ro.typeParameters=Va(ce),ro.parameters=U(Qe),ro.type=Kt,ro.body=yr,!ro.body||N_(ro.modifiers)&128)ro.transformFlags=1;else{const qs=N_(ro.modifiers)&1024,c_=!!ro.asteriskToken,Rb=qs&&c_;ro.transformFlags=qa(ro.modifiers)|Tr(ro.asteriskToken)|Uy(ro.name)|qa(ro.typeParameters)|qa(ro.parameters)|Tr(ro.type)|Tr(ro.body)&-67108865|(Rb?128:qs?256:c_?2048:0)|(ro.typeParameters||ro.type?1:0)|4194304}return ro.typeArguments=void 0,ro.jsDoc=void 0,ro.locals=void 0,ro.nextContainer=void 0,ro.endFlowNode=void 0,ro.returnFlowNode=void 0,ro}function $D(E,P,B,ce,Qe,Kt,yr,ro){return E.modifiers!==P||E.asteriskToken!==B||E.name!==ce||E.typeParameters!==Qe||E.parameters!==Kt||E.type!==yr||E.body!==ro?qI(fT(P,B,ce,Qe,Kt,yr,ro),E):E}function qI(E,P){return E!==P&&E.modifiers===P.modifiers&&(E.modifiers=P.modifiers),V(E,P)}function cb(E,P,B,ce,Qe){const Kt=Q(263);return Kt.modifiers=Va(E),Kt.name=uc(P),Kt.typeParameters=Va(B),Kt.heritageClauses=Va(ce),Kt.members=U(Qe),N_(Kt.modifiers)&128?Kt.transformFlags=1:(Kt.transformFlags|=qa(Kt.modifiers)|Uy(Kt.name)|qa(Kt.typeParameters)|qa(Kt.heritageClauses)|qa(Kt.members)|(Kt.typeParameters?1:0)|1024,Kt.transformFlags&8192&&(Kt.transformFlags|=1)),Kt.jsDoc=void 0,Kt}function B0(E,P,B,ce,Qe,Kt){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.heritageClauses!==Qe||E.members!==Kt?or(cb(P,B,ce,Qe,Kt),E):E}function JI(E,P,B,ce,Qe){const Kt=Q(264);return Kt.modifiers=Va(E),Kt.name=uc(P),Kt.typeParameters=Va(B),Kt.heritageClauses=Va(ce),Kt.members=U(Qe),Kt.transformFlags=1,Kt.jsDoc=void 0,Kt}function bc(E,P,B,ce,Qe,Kt){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.heritageClauses!==Qe||E.members!==Kt?or(JI(P,B,ce,Qe,Kt),E):E}function ny(E,P,B,ce){const Qe=Q(265);return Qe.modifiers=Va(E),Qe.name=uc(P),Qe.typeParameters=Va(B),Qe.type=ce,Qe.transformFlags=1,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function KI(E,P,B,ce,Qe){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.type!==Qe?or(ny(P,B,ce,Qe),E):E}function r_(E,P,B){const ce=Q(266);return ce.modifiers=Va(E),ce.name=uc(P),ce.members=U(B),ce.transformFlags|=qa(ce.modifiers)|Tr(ce.name)|qa(ce.members)|1,ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function mT(E,P,B,ce){return E.modifiers!==P||E.name!==B||E.members!==ce?or(r_(P,B,ce),E):E}function qe(E,P,B,ce=0){const Qe=Q(267);return Qe.modifiers=Va(E),Qe.flags|=ce&2088,Qe.name=P,Qe.body=B,N_(Qe.modifiers)&128?Qe.transformFlags=1:Qe.transformFlags|=qa(Qe.modifiers)|Tr(Qe.name)|Tr(Qe.body)|1,Qe.transformFlags&=-67108865,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function i_(E,P,B,ce){return E.modifiers!==P||E.name!==B||E.body!==ce?or(qe(P,B,ce,E.flags),E):E}function mu(E){const P=K(268);return P.statements=U(E),P.transformFlags|=qa(P.statements),P.jsDoc=void 0,P}function G0(E,P){return E.statements!==P?or(mu(P),E):E}function XI(E){const P=K(269);return P.clauses=U(E),P.transformFlags|=qa(P.clauses),P.locals=void 0,P.nextContainer=void 0,P}function ub(E,P){return E.clauses!==P?or(XI(P),E):E}function ry(E){const P=Q(270);return P.name=uc(E),P.transformFlags|=Nk(P.name)|1,P.modifiers=void 0,P.jsDoc=void 0,P}function iy(E,P){return E.name!==P?DM(ry(P),E):E}function DM(E,P){return E!==P&&(E.modifiers=P.modifiers),or(E,P)}function Ka(E,P,B,ce){const Qe=Q(271);return Qe.modifiers=Va(E),Qe.name=uc(B),Qe.isTypeOnly=P,Qe.moduleReference=ce,Qe.transformFlags|=qa(Qe.modifiers)|Nk(Qe.name)|Tr(Qe.moduleReference),Th(Qe.moduleReference)||(Qe.transformFlags|=1),Qe.transformFlags&=-67108865,Qe.jsDoc=void 0,Qe}function o_(E,P,B,ce,Qe){return E.modifiers!==P||E.isTypeOnly!==B||E.name!==ce||E.moduleReference!==Qe?or(Ka(P,B,ce,Qe),E):E}function _T(E,P,B,ce){const Qe=K(272);return Qe.modifiers=Va(E),Qe.importClause=P,Qe.moduleSpecifier=B,Qe.attributes=Qe.assertClause=ce,Qe.transformFlags|=Tr(Qe.importClause)|Tr(Qe.moduleSpecifier),Qe.transformFlags&=-67108865,Qe.jsDoc=void 0,Qe}function hT(E,P,B,ce,Qe){return E.modifiers!==P||E.importClause!==B||E.moduleSpecifier!==ce||E.attributes!==Qe?or(_T(P,B,ce,Qe),E):E}function V0(E,P,B){const ce=Q(273);return ce.isTypeOnly=E,ce.name=P,ce.namedBindings=B,ce.transformFlags|=Tr(ce.name)|Tr(ce.namedBindings),E&&(ce.transformFlags|=1),ce.transformFlags&=-67108865,ce}function gT(E,P,B,ce){return E.isTypeOnly!==P||E.name!==B||E.namedBindings!==ce?or(V0(P,B,ce),E):E}function lm(E,P){const B=K(300);return B.elements=U(E),B.multiLine=P,B.token=132,B.transformFlags|=4,B}function cm(E,P,B){return E.elements!==P||E.multiLine!==B?or(lm(P,B),E):E}function Qg(E,P){const B=K(301);return B.name=E,B.value=P,B.transformFlags|=4,B}function YI(E,P,B){return E.name!==P||E.value!==B?or(Qg(P,B),E):E}function a_(E,P){const B=K(302);return B.assertClause=E,B.multiLine=P,B}function QD(E,P,B){return E.assertClause!==P||E.multiLine!==B?or(a_(P,B),E):E}function I1(E,P,B){const ce=K(300);return ce.token=B??118,ce.elements=U(E),ce.multiLine=P,ce.transformFlags|=4,ce}function Ki(E,P,B){return E.elements!==P||E.multiLine!==B?or(I1(P,B,E.token),E):E}function Zr(E,P){const B=K(301);return B.name=E,B.value=P,B.transformFlags|=4,B}function Ch(E,P,B){return E.name!==P||E.value!==B?or(Zr(P,B),E):E}function Jd(E){const P=Q(274);return P.name=E,P.transformFlags|=Tr(P.name),P.transformFlags&=-67108865,P}function NM(E,P){return E.name!==P?or(Jd(P),E):E}function Zg(E){const P=Q(280);return P.name=E,P.transformFlags|=Tr(P.name)|32,P.transformFlags&=-67108865,P}function CM(E,P){return E.name!==P?or(Zg(P),E):E}function db(E){const P=K(275);return P.elements=U(E),P.transformFlags|=qa(P.elements),P.transformFlags&=-67108865,P}function yl(E,P){return E.elements!==P?or(db(P),E):E}function jp(E,P,B){const ce=Q(276);return ce.isTypeOnly=E,ce.propertyName=P,ce.name=B,ce.transformFlags|=Tr(ce.propertyName)|Tr(ce.name),ce.transformFlags&=-67108865,ce}function fg(E,P,B,ce){return E.isTypeOnly!==P||E.propertyName!==B||E.name!==ce?or(jp(P,B,ce),E):E}function um(E,P,B){const ce=Q(277);return ce.modifiers=Va(E),ce.isExportEquals=P,ce.expression=P?i().parenthesizeRightSideOfBinary(64,void 0,B):i().parenthesizeExpressionOfExportDefault(B),ce.transformFlags|=qa(ce.modifiers)|Tr(ce.expression),ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function pb(E,P,B){return E.modifiers!==P||E.expression!==B?or(um(P,E.isExportEquals,B),E):E}function km(E,P,B,ce,Qe){const Kt=Q(278);return Kt.modifiers=Va(E),Kt.isTypeOnly=P,Kt.exportClause=B,Kt.moduleSpecifier=ce,Kt.attributes=Kt.assertClause=Qe,Kt.transformFlags|=qa(Kt.modifiers)|Tr(Kt.exportClause)|Tr(Kt.moduleSpecifier),Kt.transformFlags&=-67108865,Kt.jsDoc=void 0,Kt}function ev(E,P,B,ce,Qe,Kt){return E.modifiers!==P||E.isTypeOnly!==B||E.exportClause!==ce||E.moduleSpecifier!==Qe||E.attributes!==Kt?x1(km(P,B,ce,Qe,Kt),E):E}function x1(E,P){return E!==P&&E.modifiers===P.modifiers&&(E.modifiers=P.modifiers),or(E,P)}function vT(E){const P=K(279);return P.elements=U(E),P.transformFlags|=qa(P.elements),P.transformFlags&=-67108865,P}function mg(E,P){return E.elements!==P?or(vT(P),E):E}function $I(E,P,B){const ce=K(281);return ce.isTypeOnly=E,ce.propertyName=uc(P),ce.name=uc(B),ce.transformFlags|=Tr(ce.propertyName)|Tr(ce.name),ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function _g(E,P,B,ce){return E.isTypeOnly!==P||E.propertyName!==B||E.name!==ce?or($I(P,B,ce),E):E}function U_(){const E=Q(282);return E.jsDoc=void 0,E}function oy(E){const P=K(283);return P.expression=E,P.transformFlags|=Tr(P.expression),P.transformFlags&=-67108865,P}function ZD(E,P){return E.expression!==P?or(oy(P),E):E}function eN(E){return K(E)}function tN(E,P,B=!1){const ce=yT(E,B?P&&i().parenthesizeNonArrayTypeOfPostfixType(P):P);return ce.postfix=B,ce}function yT(E,P){const B=K(E);return B.type=P,B}function Qs(E,P,B){return P.type!==B?or(tN(E,B,P.postfix),P):P}function R1(E,P,B){return P.type!==B?or(yT(E,B),P):P}function bT(E,P){const B=Q(324);return B.parameters=Va(E),B.type=P,B.transformFlags=qa(B.parameters)|(B.type?1:0),B.jsDoc=void 0,B.locals=void 0,B.nextContainer=void 0,B.typeArguments=void 0,B}function wm(E,P,B){return E.parameters!==P||E.type!==B?or(bT(P,B),E):E}function fb(E,P=!1){const B=Q(329);return B.jsDocPropertyTags=Va(E),B.isArrayType=P,B}function nN(E,P,B){return E.jsDocPropertyTags!==P||E.isArrayType!==B?or(fb(P,B),E):E}function ET(E){const P=K(316);return P.type=E,P}function PM(E,P){return E.type!==P?or(ET(P),E):E}function hr(E,P,B){const ce=Q(330);return ce.typeParameters=Va(E),ce.parameters=U(P),ce.type=B,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce}function nu(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?or(hr(P,B,ce),E):E}function to(E){const P=jU(E.kind);return E.tagName.escapedText===_l(P)?E.tagName:Ce(P)}function mf(E,P,B){const ce=K(E);return ce.tagName=P,ce.comment=B,ce}function ay(E,P,B){const ce=Q(E);return ce.tagName=P,ce.comment=B,ce}function H_(E,P,B,ce){const Qe=mf(352,E??Ce("template"),ce);return Qe.constraint=P,Qe.typeParameters=U(B),Qe}function ur(E,P=to(E),B,ce,Qe){return E.tagName!==P||E.constraint!==B||E.typeParameters!==ce||E.comment!==Qe?or(H_(P,B,ce,Qe),E):E}function ST(E,P,B,ce){const Qe=ay(353,E??Ce("typedef"),ce);return Qe.typeExpression=P,Qe.fullName=B,Qe.name=DH(B),Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function j0(E,P=to(E),B,ce,Qe){return E.tagName!==P||E.typeExpression!==B||E.fullName!==ce||E.comment!==Qe?or(ST(P,B,ce,Qe),E):E}function qc(E,P,B,ce,Qe,Kt){const yr=ay(348,E??Ce("param"),Kt);return yr.typeExpression=ce,yr.name=P,yr.isNameFirst=!!Qe,yr.isBracketed=B,yr}function Ph(E,P=to(E),B,ce,Qe,Kt,yr){return E.tagName!==P||E.name!==B||E.isBracketed!==ce||E.typeExpression!==Qe||E.isNameFirst!==Kt||E.comment!==yr?or(qc(P,B,ce,Qe,Kt,yr),E):E}function Om(E,P,B,ce,Qe,Kt){const yr=ay(355,E??Ce("prop"),Kt);return yr.typeExpression=ce,yr.name=P,yr.isNameFirst=!!Qe,yr.isBracketed=B,yr}function D1(E,P=to(E),B,ce,Qe,Kt,yr){return E.tagName!==P||E.name!==B||E.isBracketed!==ce||E.typeExpression!==Qe||E.isNameFirst!==Kt||E.comment!==yr?or(Om(P,B,ce,Qe,Kt,yr),E):E}function N1(E,P,B,ce){const Qe=ay(345,E??Ce("callback"),ce);return Qe.typeExpression=P,Qe.fullName=B,Qe.name=DH(B),Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function mb(E,P=to(E),B,ce,Qe){return E.tagName!==P||E.typeExpression!==B||E.fullName!==ce||E.comment!==Qe?or(N1(P,B,ce,Qe),E):E}function tv(E,P,B){const ce=mf(346,E??Ce("overload"),B);return ce.typeExpression=P,ce}function TT(E,P=to(E),B,ce){return E.tagName!==P||E.typeExpression!==B||E.comment!==ce?or(tv(P,B,ce),E):E}function Wm(E,P,B){const ce=mf(335,E??Ce("augments"),B);return ce.class=P,ce}function U0(E,P=to(E),B,ce){return E.tagName!==P||E.class!==B||E.comment!==ce?or(Wm(P,B,ce),E):E}function hg(E,P,B){const ce=mf(336,E??Ce("implements"),B);return ce.class=P,ce}function _b(E,P,B){const ce=mf(354,E??Ce("see"),B);return ce.name=P,ce}function QI(E,P,B,ce){return E.tagName!==P||E.name!==B||E.comment!==ce?or(_b(P,B,ce),E):E}function H0(E){const P=K(317);return P.name=E,P}function rN(E,P){return E.name!==P?or(H0(P),E):E}function C1(E,P){const B=K(318);return B.left=E,B.right=P,B.transformFlags|=Tr(B.left)|Tr(B.right),B}function AT(E,P,B){return E.left!==P||E.right!==B?or(C1(P,B),E):E}function Up(E,P){const B=K(331);return B.name=E,B.text=P,B}function IT(E,P,B){return E.name!==P?or(Up(P,B),E):E}function Vl(E,P){const B=K(332);return B.name=E,B.text=P,B}function Oc(E,P,B){return E.name!==P?or(Vl(P,B),E):E}function xT(E,P){const B=K(333);return B.name=E,B.text=P,B}function Au(E,P,B){return E.name!==P?or(xT(P,B),E):E}function ap(E,P=to(E),B,ce){return E.tagName!==P||E.class!==B||E.comment!==ce?or(hg(P,B,ce),E):E}function q0(E,P,B){return mf(E,P??Ce(jU(E)),B)}function Of(E,P,B=to(P),ce){return P.tagName!==B||P.comment!==ce?or(q0(E,B,ce),P):P}function hb(E,P,B,ce){const Qe=mf(E,P??Ce(jU(E)),ce);return Qe.typeExpression=B,Qe}function gb(E,P,B=to(P),ce,Qe){return P.tagName!==B||P.typeExpression!==ce||P.comment!==Qe?or(hb(E,B,ce,Qe),P):P}function ru(E,P){return mf(334,E,P)}function ZI(E,P,B){return E.tagName!==P||E.comment!==B?or(ru(P,B),E):E}function Hp(E,P,B){const ce=ay(347,E??Ce(jU(347)),B);return ce.typeExpression=P,ce.locals=void 0,ce.nextContainer=void 0,ce}function RT(E,P=to(E),B,ce){return E.tagName!==P||E.typeExpression!==B||E.comment!==ce?or(Hp(P,B,ce),E):E}function DT(E){const P=K(328);return P.text=E,P}function Hs(E,P){return E.text!==P?or(DT(P),E):E}function iN(E,P){const B=K(327);return B.comment=E,B.tags=Va(P),B}function J0(E,P,B){return E.comment!==P||E.tags!==B?or(iN(P,B),E):E}function P1(E,P,B){const ce=K(284);return ce.openingElement=E,ce.children=U(P),ce.closingElement=B,ce.transformFlags|=Tr(ce.openingElement)|qa(ce.children)|Tr(ce.closingElement)|2,ce}function MM(E,P,B,ce){return E.openingElement!==P||E.children!==B||E.closingElement!==ce?or(P1(P,B,ce),E):E}function hd(E,P,B){const ce=K(285);return ce.tagName=E,ce.typeArguments=Va(P),ce.attributes=B,ce.transformFlags|=Tr(ce.tagName)|qa(ce.typeArguments)|Tr(ce.attributes)|2,ce.typeArguments&&(ce.transformFlags|=1),ce}function nv(E,P,B,ce){return E.tagName!==P||E.typeArguments!==B||E.attributes!==ce?or(hd(P,B,ce),E):E}function q_(E,P,B){const ce=K(286);return ce.tagName=E,ce.typeArguments=Va(P),ce.attributes=B,ce.transformFlags|=Tr(ce.tagName)|qa(ce.typeArguments)|Tr(ce.attributes)|2,P&&(ce.transformFlags|=1),ce}function ex(E,P,B,ce){return E.tagName!==P||E.typeArguments!==B||E.attributes!==ce?or(q_(P,B,ce),E):E}function Rp(E){const P=K(287);return P.tagName=E,P.transformFlags|=Tr(P.tagName)|2,P}function tx(E,P){return E.tagName!==P?or(Rp(P),E):E}function sp(E,P,B){const ce=K(288);return ce.openingFragment=E,ce.children=U(P),ce.closingFragment=B,ce.transformFlags|=Tr(ce.openingFragment)|qa(ce.children)|Tr(ce.closingFragment)|2,ce}function nx(E,P,B,ce){return E.openingFragment!==P||E.children!==B||E.closingFragment!==ce?or(sp(P,B,ce),E):E}function sy(E,P){const B=K(12);return B.text=E,B.containsOnlyTriviaWhiteSpaces=!!P,B.transformFlags|=2,B}function NT(E,P,B){return E.text!==P||E.containsOnlyTriviaWhiteSpaces!==B?or(sy(P,B),E):E}function oN(){const E=K(289);return E.transformFlags|=2,E}function aN(){const E=K(290);return E.transformFlags|=2,E}function CT(E,P){const B=Q(291);return B.name=E,B.initializer=P,B.transformFlags|=Tr(B.name)|Tr(B.initializer)|2,B}function sN(E,P,B){return E.name!==P||E.initializer!==B?or(CT(P,B),E):E}function vb(E){const P=Q(292);return P.properties=U(E),P.transformFlags|=qa(P.properties)|2,P}function Dp(E,P){return E.properties!==P?or(vb(P),E):E}function Mh(E){const P=K(293);return P.expression=E,P.transformFlags|=Tr(P.expression)|2,P}function lN(E,P){return E.expression!==P?or(Mh(P),E):E}function PT(E,P){const B=K(294);return B.dotDotDotToken=E,B.expression=P,B.transformFlags|=Tr(B.dotDotDotToken)|Tr(B.expression)|2,B}function rs(E,P){return E.expression!==P?or(PT(E.dotDotDotToken,P),E):E}function Ir(E,P){const B=K(295);return B.namespace=E,B.name=P,B.transformFlags|=Tr(B.namespace)|Tr(B.name)|2,B}function _f(E,P,B){return E.namespace!==P||E.name!==B?or(Ir(P,B),E):E}function Cd(E,P){const B=K(296);return B.expression=i().parenthesizeExpressionForDisallowedComma(E),B.statements=U(P),B.transformFlags|=Tr(B.expression)|qa(B.statements),B.jsDoc=void 0,B}function M1(E,P,B){return E.expression!==P||E.statements!==B?or(Cd(P,B),E):E}function cN(E){const P=K(297);return P.statements=U(E),P.transformFlags=qa(P.statements),P}function K0(E,P){return E.statements!==P?or(cN(P),E):E}function L1(E,P){const B=K(298);switch(B.token=E,B.types=U(P),B.transformFlags|=qa(B.types),E){case 96:B.transformFlags|=1024;break;case 119:B.transformFlags|=1;break;default:return N.assertNever(E)}return B}function MT(E,P){return E.types!==P?or(L1(E.token,P),E):E}function gg(E,P){const B=K(299);return B.variableDeclaration=WM(E),B.block=P,B.transformFlags|=Tr(B.variableDeclaration)|Tr(B.block)|(E?0:64),B.locals=void 0,B.nextContainer=void 0,B}function s_(E,P,B){return E.variableDeclaration!==P||E.block!==B?or(gg(P,B),E):E}function hf(E,P){const B=Q(303);return B.name=uc(E),B.initializer=i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Uy(B.name)|Tr(B.initializer),B.modifiers=void 0,B.questionToken=void 0,B.exclamationToken=void 0,B.jsDoc=void 0,B}function Fm(E,P,B){return E.name!==P||E.initializer!==B?rv(hf(P,B),E):E}function rv(E,P){return E!==P&&(E.modifiers=P.modifiers,E.questionToken=P.questionToken,E.exclamationToken=P.exclamationToken),or(E,P)}function vg(E,P){const B=Q(304);return B.name=uc(E),B.objectAssignmentInitializer=P&&i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Nk(B.name)|Tr(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 yg(E,P,B){return E.name!==P||E.objectAssignmentInitializer!==B?rx(vg(P,B),E):E}function rx(E,P){return E!==P&&(E.modifiers=P.modifiers,E.questionToken=P.questionToken,E.exclamationToken=P.exclamationToken,E.equalsToken=P.equalsToken),or(E,P)}function cc(E){const P=Q(305);return P.expression=i().parenthesizeExpressionForDisallowedComma(E),P.transformFlags|=Tr(P.expression)|128|65536,P.jsDoc=void 0,P}function uN(E,P){return E.expression!==P?or(cc(P),E):E}function Wf(E,P){const B=Q(306);return B.name=uc(E),B.initializer=P&&i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Tr(B.name)|Tr(B.initializer)|1,B.jsDoc=void 0,B}function Lh(E,P,B){return E.name!==P||E.initializer!==B?or(Wf(P,B),E):E}function gf(E,P,B){const ce=t.createBaseSourceFileNode(312);return ce.statements=U(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|=qa(ce.statements)|Tr(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 k1(E){const 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 X0(E){const P=k1(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 ix(E){const P=t.createBaseSourceFileNode(312);P.flags|=E.flags&-17;for(const B in E)if(!(Is(P,B)||!Is(E,B))){if(B==="emitNode"){P.emitNode=void 0;continue}P[B]=E[B]}return P}function LT(E){const P=E.redirectInfo?X0(E):ix(E);return r(P,E),P}function vf(E,P,B,ce,Qe,Kt,yr){const ro=LT(E);return ro.statements=U(P),ro.isDeclarationFile=B,ro.referencedFiles=ce,ro.typeReferenceDirectives=Qe,ro.hasNoDefaultLib=Kt,ro.libReferenceDirectives=yr,ro.transformFlags=qa(ro.statements)|Tr(ro.endOfFileToken),ro}function Ls(E,P,B=E.isDeclarationFile,ce=E.referencedFiles,Qe=E.typeReferenceDirectives,Kt=E.hasNoDefaultLib,yr=E.libReferenceDirectives){return E.statements!==P||E.isDeclarationFile!==B||E.referencedFiles!==ce||E.typeReferenceDirectives!==Qe||E.hasNoDefaultLib!==Kt||E.libReferenceDirectives!==yr?or(vf(E,P,B,ce,Qe,Kt,yr),E):E}function w1(E,P=et){const 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 O1(E,P,B=et){return E.sourceFiles!==P||E.prepends!==B?or(w1(P,B),E):E}function iv(E,P,B){const 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=Qe=>ys(ce,Qe),ce}function yb(E,P){const B=K(E);return B.data=P,B}function Y0(E){return yb(307,E)}function D(E,P){const B=yb(308,E);return B.texts=P,B}function ae(E,P){return yb(P?310:309,E)}function ht(E){const P=K(311);return P.data=E.data,P.section=E,P}function on(){const E=K(315);return E.javascriptText="",E.declarationText="",E}function wr(E,P=!1,B){const ce=K(237);return ce.type=E,ce.isSpread=P,ce.tupleNameSource=B,ce}function wi(E){const P=K(358);return P._children=E,P}function bi(E){const P=K(359);return P.original=E,dt(P,E),P}function no(E,P){const B=K(360);return B.expression=E,B.original=P,B.transformFlags|=Tr(B.expression)|1,dt(B,P),B}function ga(E,P){return E.expression!==P?or(no(P,E.original),E):E}function ed(E){if(Ys(E)&&!aC(E)&&!E.original&&!E.emitNode&&!E.id){if(hP(E))return E.elements;if(mr(E)&&tae(E.operatorToken))return[E.left,E.right]}return E}function Pd(E){const P=K(361);return P.elements=U(Cx(E,ed)),P.transformFlags|=qa(P.elements),P}function Ff(E,P){return E.elements!==P?or(Pd(P),E):E}function bb(E,P){const B=K(362);return B.expression=E,B.thisArg=P,B.transformFlags|=Tr(B.expression)|Tr(B.thisArg),B}function Si(E,P,B){return E.expression!==P||E.thisArg!==B?or(bb(P,B),E):E}function kh(E){const P=oe(E.escapedText);return P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E),kk(P,{...E.emitNode.autoGenerate}),P}function Hn(E){const 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);const B=LS(E);return B&&Gv(P,B),P}function ox(E){const P=Ue(E.escapedText);return P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E),kk(P,{...E.emitNode.autoGenerate}),P}function Eb(E){const P=Ue(E.escapedText);return P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E),P}function Sb(E){if(E===void 0)return E;if($i(E))return LT(E);if(al(E))return kh(E);if(Ve(E))return Hn(E);if(dS(E))return ox(E);if(qi(E))return Eb(E);const P=sL(E.kind)?t.createBaseNode(E.kind):t.createBaseTokenNode(E.kind);P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E);for(const B in E)Is(P,B)||!Is(E,B)||(P[B]=E[B]);return P}function kT(E,P,B){return Xn(jd(void 0,void 0,void 0,void 0,P?[P]:[],void 0,ni(E,!0)),void 0,B?[B]:[])}function W1(E,P,B){return Xn(kf(void 0,void 0,P?[P]:[],void 0,void 0,ni(E,!0)),void 0,B?[B]:[])}function J_(){return Ap(se("0"))}function wh(E){return um(void 0,!1,E)}function dN(E){return km(void 0,!1,vT([$I(!1,void 0,E)]))}function wT(E,P){return P==="null"?O.createStrictEquality(E,Bt()):P==="undefined"?O.createStrictEquality(E,J_()):O.createStrictEquality(Bu(E),he(P))}function $z(E,P){return P==="null"?O.createStrictInequality(E,Bt()):P==="undefined"?O.createStrictInequality(E,J_()):O.createStrictInequality(Bu(E),he(P))}function Tb(E,P,B){return uS(E)?$o(Es(E,void 0,P),void 0,void 0,B):Xn(Us(E,P),void 0,B)}function h8(E,P,B){return Tb(E,"bind",[P,...B])}function g8(E,P,B){return Tb(E,"call",[P,...B])}function $0(E,P,B){return Tb(E,"apply",[P,B])}function l_(E,P,B){return Tb(Ce(E),P,B)}function LM(E,P){return Tb(E,"slice",P===void 0?[]:[Z0(P)])}function Oh(E,P){return Tb(E,"concat",P)}function ax(E,P,B){return l_("Object","defineProperty",[E,Z0(P),B])}function v8(E,P){return l_("Object","getOwnPropertyDescriptor",[E,Z0(P)])}function K_(E,P,B){return l_("Reflect","get",B?[E,P,B]:[E,P])}function $(E,P,B,ce){return l_("Reflect","set",ce?[E,P,B,ce]:[E,P,B])}function xe(E,P,B){return B?(E.push(hf(P,B)),!0):!1}function Ke(E,P){const B=[];xe(B,"enumerable",Z0(E.enumerable)),xe(B,"configurable",Z0(E.configurable));let ce=xe(B,"writable",Z0(E.writable));ce=xe(B,"value",E.value)||ce;let Qe=xe(B,"get",E.get);return Qe=xe(B,"set",E.set)||Qe,N.assert(!(ce&&Qe),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Yo(B,!P)}function xt(E,P){switch(E.kind){case 217:return df(E,P);case 216:return ec(E,E.type,P);case 234:return ff(E,P,E.type);case 238:return Mt(E,P,E.type);case 235:return ze(E,P);case 360:return ga(E,P)}}function Nt(E){return Gd(E)&&Ys(E)&&Ys(Bv(E))&&Ys(M_(E))&&!bt(WR(E))&&!bt(Lk(E))}function Jt(E,P,B=15){return E&&iF(E,B)&&!Nt(E)?xt(E,Jt(E.expression,P)):P}function zr(E,P,B){if(!P)return E;const ce=pT(P,P.label,ZE(P.statement)?zr(E,P.statement):E);return B&&B(P),ce}function Fi(E,P){const B=hs(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 Ni(E,P,B,ce=!1){const Qe=$l(E,15);let Kt,yr;return zd(Qe)?(Kt=ot(),yr=Qe):fP(Qe)?(Kt=ot(),yr=B!==void 0&&B<2?dt(Ce("_super"),Qe):Qe):Ga(Qe)&8192?(Kt=J_(),yr=i().parenthesizeLeftSideOfAccess(Qe,!1)):Fr(Qe)?Fi(Qe.expression,ce)?(Kt=de(P),yr=Us(dt(O.createAssignment(Kt,Qe.expression),Qe.expression),Qe.name),dt(yr,Qe)):(Kt=Qe.expression,yr=Qe):$s(Qe)?Fi(Qe.expression,ce)?(Kt=de(P),yr=wc(dt(O.createAssignment(Kt,Qe.expression),Qe.expression),Qe.argumentExpression),dt(yr,Qe)):(Kt=Qe.expression,yr=Qe):(Kt=J_(),yr=i().parenthesizeLeftSideOfAccess(E,!1)),{target:yr,thisArg:Kt}}function hi(E,P){return Us(Hc(Yo([le(void 0,"value",[vi(void 0,void 0,E,void 0,void 0,void 0)],ni([fu(P)]))])),"value")}function Xi(E){return E.length>10?Pd(E):rd(E,O.createComma)}function ds(E,P,B,ce=0,Qe){const Kt=Qe?E&&s4(E):Lo(E);if(Kt&&Ve(Kt)&&!al(Kt)){const yr=Ha(dt(Sb(Kt),Kt),Kt.parent);return ce|=Ga(Kt),B||(ce|=96),P||(ce|=3072),ce&&pr(yr,ce),yr}return Le(E)}function Rs(E,P,B){return ds(E,P,B,98304)}function es(E,P,B,ce){return ds(E,P,B,32768,ce)}function zf(E,P,B){return ds(E,P,B,16384)}function X_(E,P,B){return ds(E,P,B)}function bg(E,P,B,ce){const Qe=Us(E,Ys(P)?P:Sb(P));dt(Qe,P);let Kt=0;return ce||(Kt|=96),B||(Kt|=3072),Kt&&pr(Qe,Kt),Qe}function ov(E,P,B,ce){return E&&Qr(P,32)?bg(E,ds(P),B,ce):zf(P,B,ce)}function av(E,P,B,ce){const Qe=OT(E,P,0,B);return pN(E,P,Qe,ce)}function Ab(E){return Na(E.expression)&&E.expression.text==="use strict"}function lp(){return Xu(fu(he("use strict")))}function OT(E,P,B=0,ce){N.assert(P.length===0,"Prologue directives should be at the first statement in the target statements array");let Qe=!1;const Kt=E.length;for(;B<Kt;){const yr=E[B];if(Sm(yr))Ab(yr)&&(Qe=!0),P.push(yr);else break;B++}return ce&&!Qe&&P.push(lp()),B}function pN(E,P,B,ce,Qe=Iv){const Kt=E.length;for(;B!==void 0&&B<Kt;){const yr=E[B];if(Ga(yr)&2097152&&Qe(yr))Rn(P,ce?nt(yr,ce,Hi):yr);else break;B++}return B}function kM(E){return IH(E)?E:dt(U([lp(),...E]),E)}function wM(E){return N.assert(Jn(E,Tre),"Cannot lift nodes to a Block."),ah(E)||ni(E)}function Q0(E,P,B){let ce=B;for(;ce<E.length&&P(E[ce]);)ce++;return ce}function sv(E,P){if(!bt(P))return E;const B=Q0(E,Sm,0),ce=Q0(E,F4,B),Qe=Q0(E,z4,ce),Kt=Q0(P,Sm,0),yr=Q0(P,F4,Kt),ro=Q0(P,z4,yr),qs=Q0(P,DL,ro);N.assert(qs===P.length,"Expected declarations to be valid standard or custom prologues");const c_=RE(E)?E.slice():E;if(qs>ro&&c_.splice(Qe,0,...P.slice(ro,qs)),ro>yr&&c_.splice(ce,0,...P.slice(yr,ro)),yr>Kt&&c_.splice(B,0,...P.slice(Kt,yr)),Kt>0)if(B===0)c_.splice(0,0,...P.slice(0,Kt));else{const Rb=new Map;for(let zm=0;zm<B;zm++){const eE=E[zm];Rb.set(eE.expression.text,!0)}for(let zm=Kt-1;zm>=0;zm--){const eE=P[zm];Rb.has(eE.expression.text)||c_.unshift(eE)}}return RE(E)?dt(U(c_,E.hasTrailingComma),E):E}function Ib(E,P){let B;return typeof P=="number"?B=tn(P):B=P,hl(E)?Yt(E,B,E.name,E.constraint,E.default):Ao(E)?so(E,B,E.dotDotDotToken,E.name,E.questionToken,E.type,E.initializer):zR(E)?en(E,B,E.typeParameters,E.parameters,E.type):gp(E)?Ci(E,B,E.name,E.questionToken,E.type):qo(E)?tt(E,B,E.name,E.questionToken??E.exclamationToken,E.type,E.initializer):yh(E)?Dn(E,B,E.name,E.questionToken,E.typeParameters,E.parameters,E.type):Hl(E)?yi(E,B,E.asteriskToken,E.name,E.questionToken,E.typeParameters,E.parameters,E.type,E.body):Ml(E)?wn(E,B,E.parameters,E.body):tf(E)?ft(E,B,E.name,E.parameters,E.type,E.body):vp(E)?Fe(E,B,E.name,E.parameters,E.body):XE(E)?Gt(E,B,E.parameters,E.type):Os(E)?Nd(E,B,E.asteriskToken,E.name,E.typeParameters,E.parameters,E.type,E.body):Gs(E)?V_(E,B,E.typeParameters,E.parameters,E.type,E.equalsGreaterThanToken,E.body):Qc(E)?Lm(E,B,E.name,E.typeParameters,E.heritageClauses,E.members):Ll(E)?Ja(E,B,E.declarationList):Tc(E)?$D(E,B,E.asteriskToken,E.name,E.typeParameters,E.parameters,E.type,E.body):Ac(E)?B0(E,B,E.name,E.typeParameters,E.heritageClauses,E.members):md(E)?bc(E,B,E.name,E.typeParameters,E.heritageClauses,E.members):xm(E)?KI(E,B,E.name,E.typeParameters,E.type):y0(E)?mT(E,B,E.name,E.members):Xl(E)?i_(E,B,E.name,E.body):eu(E)?o_(E,B,E.isTypeOnly,E.name,E.moduleReference):Mc(E)?hT(E,B,E.importClause,E.moduleSpecifier,E.attributes):kl(E)?pb(E,B,E.expression):Yl(E)?ev(E,B,E.isTypeOnly,E.exportClause,E.moduleSpecifier,E.attributes):N.assertNever(E)}function fN(E,P){return Ao(E)?so(E,P,E.dotDotDotToken,E.name,E.questionToken,E.type,E.initializer):qo(E)?tt(E,P,E.name,E.questionToken??E.exclamationToken,E.type,E.initializer):Hl(E)?yi(E,P,E.asteriskToken,E.name,E.questionToken,E.typeParameters,E.parameters,E.type,E.body):tf(E)?ft(E,P,E.name,E.parameters,E.type,E.body):vp(E)?Fe(E,P,E.name,E.parameters,E.body):Qc(E)?Lm(E,P,E.name,E.typeParameters,E.heritageClauses,E.members):Ac(E)?B0(E,P,E.name,E.typeParameters,E.heritageClauses,E.members):N.assertNever(E)}function qp(E,P){switch(E.kind){case 177:return ft(E,E.modifiers,P,E.parameters,E.type,E.body);case 178:return Fe(E,E.modifiers,P,E.parameters,E.body);case 174:return yi(E,E.modifiers,E.asteriskToken,P,E.questionToken,E.typeParameters,E.parameters,E.type,E.body);case 173:return Dn(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 Ci(E,E.modifiers,P,E.questionToken,E.type);case 303:return Fm(E,P,E.initializer)}}function Va(E){return E?U(E):void 0}function uc(E){return typeof E=="string"?Ce(E):E}function Z0(E){return typeof E=="string"?he(E):typeof E=="number"?se(E):typeof E=="boolean"?E?vt():$e():E}function sx(E){return E&&i().parenthesizeExpressionForDisallowedComma(E)}function OM(E){return typeof E=="number"?Se(E):E}function xb(E){return E&&dH(E)?dt(r(Zu(),E),E):E}function WM(E){return typeof E=="string"||E&&!Oi(E)?qd(E,void 0,void 0,void 0):E}function or(E,P){return E!==P&&(r(E,P),dt(E,P)),E}}function jU(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 N.fail(`Unsupported kind: ${N.formatSyntaxKind(e)}`)}}function PBe(e,t){switch(zv||(zv=Nv(99,!1,0)),e){case 15:zv.setText("`"+t+"`");break;case 16:zv.setText("`"+t+"${");break;case 17:zv.setText("}"+t+"${");break;case 18:zv.setText("}"+t+"`");break}let r=zv.scan();if(r===20&&(r=zv.reScanTemplateToken(!1)),zv.isUnterminated())return zv.setText(void 0),joe;let i;switch(r){case 15:case 16:case 17:case 18:i=zv.getTokenValue();break}return i===void 0||zv.scan()!==1?(zv.setText(void 0),joe):(zv.setText(void 0),i)}function Uy(e){return e&&Ve(e)?Nk(e):Tr(e)}function Nk(e){return Tr(e)&-67108865}function MBe(e,t){return t|e.transformFlags&134234112}function Tr(e){if(!e)return 0;const t=e.transformFlags&~Goe(e.kind);return ad(e)&&oc(e.name)?MBe(e.name,t):t}function qa(e){return e?e.transformFlags:0}function XSe(e){let t=0;for(const r of e)t|=Tr(r);e.transformFlags=t}function Goe(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 aW(e){return e.flags|=16,e}function UU(e,t,r){let i,o,s,l,u,p,h,m,y,T;Mo(e)?(s="",l=e,u=e.length,p=t,h=r):(N.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,y=()=>t==="js"?e.javascriptMapText:e.declarationMapText,u=()=>m().length,e.buildInfo&&e.buildInfo.bundle&&(N.assert(r===void 0||typeof r=="boolean"),i=r,o=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,T=e.oldFileOfCurrentEmit));const A=T?kBe(N.checkDefined(o)):LBe(o,i,u);return A.fileName=s,A.sourceMapPath=p,A.oldFileOfCurrentEmit=T,m&&y?(Object.defineProperty(A,"text",{get:m}),Object.defineProperty(A,"sourceMapText",{get:y})):(N.assert(!T),A.text=l??"",A.sourceMapText=h),A}function LBe(e,t,r){let i,o,s,l,u,p,h,m;for(const T of e?e.sections:et)switch(T.kind){case"prologue":i=Rn(i,dt(w.createUnparsedPrologue(T.data),T));break;case"emitHelpers":o=Rn(o,ZU().get(T.data));break;case"no-default-lib":m=!0;break;case"reference":s=Rn(s,{pos:-1,end:-1,fileName:T.data});break;case"type":l=Rn(l,{pos:-1,end:-1,fileName:T.data});break;case"type-import":l=Rn(l,{pos:-1,end:-1,fileName:T.data,resolutionMode:99});break;case"type-require":l=Rn(l,{pos:-1,end:-1,fileName:T.data,resolutionMode:1});break;case"lib":u=Rn(u,{pos:-1,end:-1,fileName:T.data});break;case"prepend":let A;for(const R of T.texts)(!t||R.kind!=="internal")&&(A=Rn(A,dt(w.createUnparsedTextLike(R.data,R.kind==="internal"),R)));p=qr(p,A),h=Rn(h,w.createUnparsedPrepend(T.data,A??et));break;case"internal":if(t){h||(h=[]);break}case"text":h=Rn(h,dt(w.createUnparsedTextLike(T.data,T.kind==="internal"),T));break;default:N.assertNever(T)}if(!h){const T=w.createUnparsedTextLike(void 0,!1);ZC(T,0,typeof r=="function"?r():r),h=[T]}const y=Ah.createUnparsedSource(i??et,void 0,h);return LR(i,y),LR(h,y),LR(p,y),y.hasNoDefaultLib=m,y.helpers=o,y.referencedFiles=s||et,y.typeReferenceDirectives=l,y.libReferenceDirectives=u||et,y}function kBe(e){let t,r;for(const o of e.sections)switch(o.kind){case"internal":case"text":t=Rn(t,dt(w.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=Rn(r,dt(w.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:N.assertNever(o)}const i=w.createUnparsedSource(et,r,t??et);return LR(r,i),LR(t,i),i.helpers=Wt(e.sources&&e.sources.helpers,o=>ZU().get(o)),i}function YSe(e,t,r,i,o,s){return Mo(e)?qU(void 0,e,r,i,void 0,t,o,s):HU(e,t,r,i,o,s)}function HU(e,t,r,i,o,s,l,u){const p=Ah.createInputFiles();p.javascriptPath=t,p.javascriptMapPath=r,p.declarationPath=i,p.declarationMapPath=o,p.buildInfoPath=s;const h=new Map,m=R=>{if(R===void 0)return;let M=h.get(R);return M===void 0&&(M=e(R),h.set(R,M!==void 0?M:!1)),M!==!1?M:void 0},y=R=>{const M=m(R);return M!==void 0?M:`/* Input file ${R} was missing */\r +`};let T;return Object.defineProperties(p,{javascriptText:{get:()=>y(t)},javascriptMapText:{get:()=>m(r)},declarationText:{get:()=>y(N.checkDefined(i))},declarationMapText:{get:()=>m(o)},buildInfo:{get:()=>{if(T===void 0&&s)if(l!=null&&l.getBuildInfo)T=l.getBuildInfo(s,u.configFilePath)??!1;else{const R=m(s);T=R!==void 0?n7(s,R)??!1:!1}return T||void 0}}}),p}function qU(e,t,r,i,o,s,l,u,p,h,m){const y=Ah.createInputFiles();return y.javascriptPath=e,y.javascriptText=t,y.javascriptMapPath=r,y.javascriptMapText=i,y.declarationPath=o,y.declarationText=s,y.declarationMapPath=l,y.declarationMapText=u,y.buildInfoPath=p,y.buildInfo=h,y.oldFileOfCurrentEmit=m,y}function $Se(e,t,r){return new(ZSe||(ZSe=su.getSourceMapSourceConstructor()))(e,t,r)}function Nr(e,t){if(e.original!==t&&(e.original=t,t)){const r=t.emitNode;r&&(e.emitNode=wBe(r,e.emitNode))}return e}function wBe(e,t){const{flags:r,internalFlags:i,leadingComments:o,trailingComments:s,commentRange:l,sourceMapRange:u,tokenSourceMapRanges:p,constantValue:h,helpers:m,startsOnNewLine:y,snippetElement:T,classThis:A,assignedName:R}=e;if(t||(t={}),r&&(t.flags=r),i&&(t.internalFlags=i&-9),o&&(t.leadingComments=qr(o.slice(),t.leadingComments)),s&&(t.trailingComments=qr(s.slice(),t.trailingComments)),l&&(t.commentRange=l),u&&(t.sourceMapRange=u),p&&(t.tokenSourceMapRanges=OBe(p,t.tokenSourceMapRanges)),h!==void 0&&(t.constantValue=h),m)for(const M of m)t.helpers=Rg(t.helpers,M);return y!==void 0&&(t.startsOnNewLine=y),T!==void 0&&(t.snippetElement=T),A&&(t.classThis=A),R&&(t.assignedName=R),t}function OBe(e,t){t||(t=[]);for(const r in e)t[r]=e[r];return t}var sW,JU,Voe,zv,joe,Ck,QSe,w,ZSe,WBe=I({"src/compiler/factory/nodeFactory.ts"(){ra(),sW=0,JU=(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))(JU||{}),Voe=[],joe={},Ck=Foe(),QSe={createBaseSourceFileNode:e=>aW(Ck.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>aW(Ck.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>aW(Ck.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>aW(Ck.createBaseTokenNode(e)),createBaseNode:e=>aW(Ck.createBaseNode(e))},w=Dk(4,QSe)}});function Ou(e){if(e.emitNode)N.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(aC(e)){if(e.kind===312)return e.emitNode={annotatedNodes:[e]};const t=Un(No(Un(e)))??N.fail("Could not determine parsed source file.");Ou(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function KU(e){var t,r;const i=(r=(t=Un(No(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(const o of i)o.emitNode=void 0}function Pk(e){const t=Ou(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function pr(e,t){return Ou(e).flags=t,e}function P_(e,t){const r=Ou(e);return r.flags=r.flags|t,e}function Mk(e,t){return Ou(e).internalFlags=t,e}function UA(e,t){const r=Ou(e);return r.internalFlags=r.internalFlags|t,e}function Bv(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function Da(e,t){return Ou(e).sourceMapRange=t,e}function eTe(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function Uoe(e,t,r){const i=Ou(e),o=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return o[t]=r,e}function cP(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function lW(e,t){return Ou(e).startsOnNewLine=t,e}function M_(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function ac(e,t){return Ou(e).commentRange=t,e}function WR(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function v0(e,t){return Ou(e).leadingComments=t,e}function uP(e,t,r,i){return v0(e,Rn(WR(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Lk(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function HA(e,t){return Ou(e).trailingComments=t,e}function cW(e,t,r,i){return HA(e,Rn(Lk(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Hoe(e,t){v0(e,WR(t)),HA(e,Lk(t));const r=Ou(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function qoe(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function Joe(e,t){const r=Ou(e);return r.constantValue=t,e}function qA(e,t){const r=Ou(e);return r.helpers=Rn(r.helpers,t),e}function zg(e,t){if(bt(t)){const r=Ou(e);for(const i of t)r.helpers=Rg(r.helpers,i)}return e}function tTe(e,t){var r;const i=(r=e.emitNode)==null?void 0:r.helpers;return i?wx(i,t):!1}function uW(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function Koe(e,t,r){const i=e.emitNode,o=i&&i.helpers;if(!bt(o))return;const s=Ou(t);let l=0;for(let u=0;u<o.length;u++){const p=o[u];r(p)?(l++,s.helpers=Rg(s.helpers,p)):l>0&&(o[u-l]=p)}l>0&&(o.length-=l)}function XU(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function YU(e,t){const r=Ou(e);return r.snippetElement=t,e}function $U(e){return Ou(e).internalFlags|=4,e}function Xoe(e,t){const r=Ou(e);return r.typeNode=t,e}function Yoe(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function Gv(e,t){return Ou(e).identifierTypeArguments=t,e}function LS(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function kk(e,t){return Ou(e).autoGenerate=t,e}function nTe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function $oe(e,t){return Ou(e).generatedImportReference=t,e}function Qoe(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var FBe=I({"src/compiler/factory/emitNode.ts"(){ra()}});function Zoe(e){const t=e.factory,r=Sd(()=>Mk(t.createTrue(),8)),i=Sd(()=>Mk(t.createFalse(),8));return{getUnscopedHelperName:o,createDecorateHelper:s,createMetadataHelper:l,createParamHelper:u,createESDecorateHelper:M,createRunInitializersHelper:C,createAssignHelper:O,createAwaitHelper:U,createAsyncGeneratorHelper:K,createAsyncDelegatorHelper:Q,createAsyncValuesHelper:V,createRestHelper:se,createAwaiterHelper:G,createExtendsHelper:ne,createTemplateObjectHelper:he,createSpreadArrayHelper:ye,createPropKeyHelper:Y,createSetFunctionNameHelper:X,createValuesHelper:oe,createReadHelper:pe,createGeneratorHelper:Ce,createCreateBindingHelper:de,createImportStarHelper:ie,createImportStarCallbackHelper:ve,createImportDefaultHelper:Le,createExportStarHelper:Ue,createClassPrivateFieldGetHelper:Ee,createClassPrivateFieldSetHelper:De,createClassPrivateFieldInHelper:Me,createAddDisposableResourceHelper:We,createDisposeResourcesHelper:At};function o(Se){return pr(t.createIdentifier(Se),8196)}function s(Se,je,ot,Bt){e.requestEmitHelper(dW);const vt=[];return vt.push(t.createArrayLiteralExpression(Se,!0)),vt.push(je),ot&&(vt.push(ot),Bt&&vt.push(Bt)),t.createCallExpression(o("__decorate"),void 0,vt)}function l(Se,je){return e.requestEmitHelper(pW),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(Se),je])}function u(Se,je,ot){return e.requestEmitHelper(fW),dt(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(je+""),Se]),ot)}function p(Se){const 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 h(Se){const 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){const 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 y(Se){const 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){const ot=[];return ot.push(y(Se)),je.get&&ot.push(h(Se)),je.set&&ot.push(m(Se)),t.createObjectLiteralExpression(ot)}function A(Se){const 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):A(Se)}function M(Se,je,ot,Bt,vt,$e){return e.requestEmitHelper(mW),t.createCallExpression(o("__esDecorate"),void 0,[Se??t.createNull(),je??t.createNull(),ot,R(Bt),vt,$e])}function C(Se,je,ot){return e.requestEmitHelper(_W),t.createCallExpression(o("__runInitializers"),void 0,ot?[Se,je,ot]:[Se,je])}function O(Se){return os(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,Se):(e.requestEmitHelper(hW),t.createCallExpression(o("__assign"),void 0,Se))}function U(Se){return e.requestEmitHelper(JA),t.createCallExpression(o("__await"),void 0,[Se])}function K(Se,je){return e.requestEmitHelper(JA),e.requestEmitHelper(gW),(Se.emitNode||(Se.emitNode={})).flags|=1572864,t.createCallExpression(o("__asyncGenerator"),void 0,[je?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),Se])}function Q(Se){return e.requestEmitHelper(JA),e.requestEmitHelper(vW),t.createCallExpression(o("__asyncDelegator"),void 0,[Se])}function V(Se){return e.requestEmitHelper(yW),t.createCallExpression(o("__asyncValues"),void 0,[Se])}function se(Se,je,ot,Bt){e.requestEmitHelper(bW);const vt=[];let $e=0;for(let It=0;It<je.length-1;It++){const tn=RH(je[It]);if(tn)if(Za(tn)){N.assertIsDefined(ot,"Encountered computed property name but 'computedTempVariables' argument was not provided.");const rn=ot[$e];$e++,vt.push(t.createConditionalExpression(t.createTypeCheck(rn,"symbol"),void 0,rn,void 0,t.createAdd(rn,t.createStringLiteral(""))))}else vt.push(t.createStringLiteralFromNode(tn))}return t.createCallExpression(o("__rest"),void 0,[Se,dt(t.createArrayLiteralExpression(vt),Bt)])}function G(Se,je,ot,Bt,vt){e.requestEmitHelper(EW);const $e=t.createFunctionExpression(void 0,t.createToken(42),void 0,void 0,Bt??[],void 0,vt);return($e.emitNode||($e.emitNode={})).flags|=1572864,t.createCallExpression(o("__awaiter"),void 0,[Se?t.createThis():t.createVoidZero(),je??t.createVoidZero(),ot?Xk(t,ot):t.createVoidZero(),$e])}function ne(Se){return e.requestEmitHelper(SW),t.createCallExpression(o("__extends"),void 0,[Se,t.createUniqueName("_super",48)])}function he(Se,je){return e.requestEmitHelper(TW),t.createCallExpression(o("__makeTemplateObject"),void 0,[Se,je])}function ye(Se,je,ot){return e.requestEmitHelper(IW),t.createCallExpression(o("__spreadArray"),void 0,[Se,je,ot?r():i()])}function Y(Se){return e.requestEmitHelper(xW),t.createCallExpression(o("__propKey"),void 0,[Se])}function X(Se,je,ot){return e.requestEmitHelper(RW),e.factory.createCallExpression(o("__setFunctionName"),void 0,ot?[Se,je,e.factory.createStringLiteral(ot)]:[Se,je])}function oe(Se){return e.requestEmitHelper(DW),t.createCallExpression(o("__values"),void 0,[Se])}function pe(Se,je){return e.requestEmitHelper(AW),t.createCallExpression(o("__read"),void 0,je!==void 0?[Se,t.createNumericLiteral(je+"")]:[Se])}function Ce(Se){return e.requestEmitHelper(NW),t.createCallExpression(o("__generator"),void 0,[t.createThis(),Se])}function de(Se,je,ot){return e.requestEmitHelper(FR),t.createCallExpression(o("__createBinding"),void 0,[t.createIdentifier("exports"),Se,je,...ot?[ot]:[]])}function ie(Se){return e.requestEmitHelper(wk),t.createCallExpression(o("__importStar"),void 0,[Se])}function ve(){return e.requestEmitHelper(wk),o("__importStar")}function Le(Se){return e.requestEmitHelper(PW),t.createCallExpression(o("__importDefault"),void 0,[Se])}function Ue(Se,je=t.createIdentifier("exports")){return e.requestEmitHelper(MW),e.requestEmitHelper(FR),t.createCallExpression(o("__exportStar"),void 0,[Se,je])}function Ee(Se,je,ot,Bt){e.requestEmitHelper(LW);let vt;return Bt?vt=[Se,je,t.createStringLiteral(ot),Bt]:vt=[Se,je,t.createStringLiteral(ot)],t.createCallExpression(o("__classPrivateFieldGet"),void 0,vt)}function De(Se,je,ot,Bt,vt){e.requestEmitHelper(kW);let $e;return vt?$e=[Se,je,ot,t.createStringLiteral(Bt),vt]:$e=[Se,je,ot,t.createStringLiteral(Bt)],t.createCallExpression(o("__classPrivateFieldSet"),void 0,$e)}function Me(Se,je){return e.requestEmitHelper(wW),t.createCallExpression(o("__classPrivateFieldIn"),void 0,[Se,je])}function We(Se,je,ot){return e.requestEmitHelper(OW),t.createCallExpression(o("__addDisposableResource"),void 0,[Se,je,ot?t.createTrue():t.createFalse()])}function At(Se){return e.requestEmitHelper(WW),t.createCallExpression(o("__disposeResources"),void 0,[Se])}}function eae(e,t){return e===t||e.priority===t.priority?0:e.priority===void 0?1:t.priority===void 0?-1:nl(e.priority,t.priority)}function QU(e,...t){return r=>{let i="";for(let o=0;o<t.length;o++)i+=e[o],i+=r(t[o]);return i+=e[e.length-1],i}}function ZU(){return rTe||(rTe=TE([dW,pW,fW,mW,_W,hW,JA,gW,vW,yW,bW,EW,SW,TW,IW,DW,AW,xW,RW,NW,wk,PW,MW,LW,kW,wW,FR,CW,OW,WW],e=>e.name))}function dP(e,t){return sa(e)&&Ve(e.expression)&&(Ga(e.expression)&8192)!==0&&e.expression.escapedText===t}var eH,dW,pW,fW,mW,_W,hW,JA,gW,vW,yW,bW,EW,SW,TW,AW,IW,xW,RW,DW,NW,FR,CW,wk,PW,MW,LW,kW,wW,OW,WW,rTe,Ok,Wk,zBe=I({"src/compiler/factory/emitHelpers.ts"(){ra(),eH=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(eH||{}),dW={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; + };`},pW={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); + };`},fW={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); } + };`},mW={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; + };`},_W={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; + };`},hW={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); + };`},JA={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); }`},gW={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[JA],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]); } + };`},vW={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[JA],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; } + };`},yW={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); } + };`},bW={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; + };`},EW={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()); + }); + };`},SW={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 __()); + }; + })();`},TW={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; + };`},AW={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; + };`},IW={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)); + };`},xW={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` + var __propKey = (this && this.__propKey) || function (x) { + return typeof x === "symbol" ? x : "".concat(x); + };`},RW={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 }); + };`},DW={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."); + };`},NW={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 }; + } + };`},FR={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]; + }));`},CW={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; + });`},wk={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[FR,CW],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; + };`},PW={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` + var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + };`},MW={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[FR],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); + };`},LW={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); + };`},kW={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; + };`},wW={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); + };`},OW={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; + };`},WW={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; + });`},Ok={name:"typescript:async-super",scoped:!0,text:QU` + const ${"_superIndex"} = name => super[name];`},Wk={name:"typescript:advanced-async-super",scoped:!0,text:QU` + 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 FW(e){return e.kind===10}function Na(e){return e.kind===11}function KA(e){return e.kind===12}function tH(e){return e.kind===14}function XA(e){return e.kind===15}function YA(e){return e.kind===16}function nH(e){return e.kind===17}function zW(e){return e.kind===18}function BW(e){return e.kind===26}function tae(e){return e.kind===28}function rH(e){return e.kind===40}function iH(e){return e.kind===41}function Fk(e){return e.kind===42}function zk(e){return e.kind===54}function Hy(e){return e.kind===58}function nae(e){return e.kind===59}function GW(e){return e.kind===29}function rae(e){return e.kind===39}function Ve(e){return e.kind===80}function qi(e){return e.kind===81}function $A(e){return e.kind===95}function VW(e){return e.kind===90}function pP(e){return e.kind===134}function iae(e){return e.kind===131}function oH(e){return e.kind===135}function oae(e){return e.kind===148}function QA(e){return e.kind===126}function aae(e){return e.kind===128}function sae(e){return e.kind===164}function lae(e){return e.kind===129}function fP(e){return e.kind===108}function mP(e){return e.kind===102}function cae(e){return e.kind===84}function Id(e){return e.kind===166}function Za(e){return e.kind===167}function hl(e){return e.kind===168}function Ao(e){return e.kind===169}function Eu(e){return e.kind===170}function gp(e){return e.kind===171}function qo(e){return e.kind===172}function yh(e){return e.kind===173}function Hl(e){return e.kind===174}function Rl(e){return e.kind===175}function Ml(e){return e.kind===176}function tf(e){return e.kind===177}function vp(e){return e.kind===178}function ZA(e){return e.kind===179}function Bk(e){return e.kind===180}function XE(e){return e.kind===181}function Gk(e){return e.kind===182}function Df(e){return e.kind===183}function bh(e){return e.kind===184}function zR(e){return e.kind===185}function eI(e){return e.kind===186}function yp(e){return e.kind===187}function Vk(e){return e.kind===188}function tI(e){return e.kind===189}function BR(e){return e.kind===202}function jW(e){return e.kind===190}function UW(e){return e.kind===191}function qy(e){return e.kind===192}function nI(e){return e.kind===193}function rI(e){return e.kind===194}function kS(e){return e.kind===195}function wS(e){return e.kind===196}function jk(e){return e.kind===197}function OS(e){return e.kind===198}function WS(e){return e.kind===199}function GR(e){return e.kind===200}function Jy(e){return e.kind===201}function ag(e){return e.kind===205}function aH(e){return e.kind===204}function uae(e){return e.kind===203}function im(e){return e.kind===206}function YE(e){return e.kind===207}function $a(e){return e.kind===208}function fd(e){return e.kind===209}function La(e){return e.kind===210}function Fr(e){return e.kind===211}function $s(e){return e.kind===212}function sa(e){return e.kind===213}function $E(e){return e.kind===214}function QE(e){return e.kind===215}function dae(e){return e.kind===216}function Gd(e){return e.kind===217}function Os(e){return e.kind===218}function Gs(e){return e.kind===219}function pae(e){return e.kind===220}function VR(e){return e.kind===221}function iI(e){return e.kind===222}function Ky(e){return e.kind===223}function Xy(e){return e.kind===224}function sH(e){return e.kind===225}function mr(e){return e.kind===226}function jR(e){return e.kind===227}function HW(e){return e.kind===228}function qW(e){return e.kind===229}function $m(e){return e.kind===230}function Qc(e){return e.kind===231}function Gc(e){return e.kind===232}function Vv(e){return e.kind===233}function Uk(e){return e.kind===234}function lH(e){return e.kind===238}function oI(e){return e.kind===235}function _P(e){return e.kind===236}function iTe(e){return e.kind===237}function JW(e){return e.kind===360}function hP(e){return e.kind===361}function gP(e){return e.kind===239}function fae(e){return e.kind===240}function Ko(e){return e.kind===241}function Ll(e){return e.kind===243}function cH(e){return e.kind===242}function Zc(e){return e.kind===244}function FS(e){return e.kind===245}function oTe(e){return e.kind===246}function aTe(e){return e.kind===247}function zS(e){return e.kind===248}function KW(e){return e.kind===249}function Hk(e){return e.kind===250}function sTe(e){return e.kind===251}function lTe(e){return e.kind===252}function Im(e){return e.kind===253}function mae(e){return e.kind===254}function vP(e){return e.kind===255}function ZE(e){return e.kind===256}function uH(e){return e.kind===257}function BS(e){return e.kind===258}function cTe(e){return e.kind===259}function Oi(e){return e.kind===260}function Vc(e){return e.kind===261}function Tc(e){return e.kind===262}function Ac(e){return e.kind===263}function md(e){return e.kind===264}function xm(e){return e.kind===265}function y0(e){return e.kind===266}function Xl(e){return e.kind===267}function L_(e){return e.kind===268}function yP(e){return e.kind===269}function qk(e){return e.kind===270}function eu(e){return e.kind===271}function Mc(e){return e.kind===272}function Eh(e){return e.kind===273}function uTe(e){return e.kind===302}function _ae(e){return e.kind===300}function dTe(e){return e.kind===301}function aI(e){return e.kind===300}function hae(e){return e.kind===301}function Yy(e){return e.kind===274}function Sh(e){return e.kind===280}function Bg(e){return e.kind===275}function tp(e){return e.kind===276}function kl(e){return e.kind===277}function Yl(e){return e.kind===278}function Nf(e){return e.kind===279}function Ku(e){return e.kind===281}function pTe(e){return e.kind===282}function dH(e){return e.kind===359}function sI(e){return e.kind===362}function Th(e){return e.kind===283}function sg(e){return e.kind===284}function GS(e){return e.kind===285}function k_(e){return e.kind===286}function e1(e){return e.kind===287}function t1(e){return e.kind===288}function lI(e){return e.kind===289}function gae(e){return e.kind===290}function w_(e){return e.kind===291}function n1(e){return e.kind===292}function cI(e){return e.kind===293}function bP(e){return e.kind===294}function Qm(e){return e.kind===295}function UR(e){return e.kind===296}function EP(e){return e.kind===297}function nf(e){return e.kind===298}function r1(e){return e.kind===299}function hc(e){return e.kind===303}function np(e){return e.kind===304}function jv(e){return e.kind===305}function i1(e){return e.kind===306}function vae(e){return e.kind===308}function $i(e){return e.kind===312}function pH(e){return e.kind===313}function VS(e){return e.kind===314}function o1(e){return e.kind===316}function SP(e){return e.kind===317}function b0(e){return e.kind===318}function yae(e){return e.kind===331}function bae(e){return e.kind===332}function fTe(e){return e.kind===333}function Eae(e){return e.kind===319}function Sae(e){return e.kind===320}function HR(e){return e.kind===321}function XW(e){return e.kind===322}function fH(e){return e.kind===323}function qR(e){return e.kind===324}function YW(e){return e.kind===325}function mTe(e){return e.kind===326}function Zm(e){return e.kind===327}function jS(e){return e.kind===329}function E0(e){return e.kind===330}function uI(e){return e.kind===335}function _Te(e){return e.kind===337}function Tae(e){return e.kind===339}function mH(e){return e.kind===345}function _H(e){return e.kind===340}function hH(e){return e.kind===341}function gH(e){return e.kind===342}function vH(e){return e.kind===343}function $W(e){return e.kind===344}function JR(e){return e.kind===346}function yH(e){return e.kind===338}function hTe(e){return e.kind===354}function Jk(e){return e.kind===347}function e_(e){return e.kind===348}function QW(e){return e.kind===349}function bH(e){return e.kind===350}function TP(e){return e.kind===351}function om(e){return e.kind===352}function US(e){return e.kind===353}function gTe(e){return e.kind===334}function Aae(e){return e.kind===355}function ZW(e){return e.kind===336}function eF(e){return e.kind===357}function vTe(e){return e.kind===356}function KR(e){return e.kind===358}var BBe=I({"src/compiler/factory/nodeTests.ts"(){ra()}});function Kk(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function HS(e,t,r,i){if(Za(r))return dt(e.createElementAccessExpression(t,r.expression),i);{const o=dt(Kh(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return P_(o,128),o}}function Iae(e,t){const r=Ah.createIdentifier(e||"React");return Ha(r,No(t)),r}function xae(e,t,r){if(Id(t)){const i=xae(e,t.left,r),o=e.createIdentifier(Er(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,o)}else return Iae(Er(t),r)}function EH(e,t,r,i){return t?xae(e,t,i):e.createPropertyAccessExpression(Iae(r,i),"createElement")}function GBe(e,t,r,i){return t?xae(e,t,i):e.createPropertyAccessExpression(Iae(r,i),"Fragment")}function Rae(e,t,r,i,o,s){const l=[r];if(i&&l.push(i),o&&o.length>0)if(i||l.push(e.createNull()),o.length>1)for(const u of o)Xu(u),l.push(u);else l.push(o[0]);return dt(e.createCallExpression(t,void 0,l),s)}function Dae(e,t,r,i,o,s,l){const p=[GBe(e,r,i,s),e.createNull()];if(o&&o.length>0)if(o.length>1)for(const h of o)Xu(h),p.push(h);else p.push(o[0]);return dt(e.createCallExpression(EH(e,t,i,s),void 0,p),l)}function SH(e,t,r){if(Vc(t)){const i=Ua(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{const i=dt(e.createAssignment(t,r),t);return dt(e.createExpressionStatement(i),t)}}function yTe(e,t,r){return Ko(t)?e.updateBlock(t,dt(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function Xk(e,t){if(Id(t)){const r=Xk(e,t.left),i=Ha(dt(e.cloneNode(t.right),t.right),t.right.parent);return dt(e.createPropertyAccessExpression(r,i),t)}else return Ha(dt(e.cloneNode(t),t),t.parent)}function TH(e,t){return Ve(t)?e.createStringLiteralFromNode(t):Za(t)?Ha(dt(e.cloneNode(t.expression),t.expression),t.expression.parent):Ha(dt(e.cloneNode(t),t),t.parent)}function VBe(e,t,r,i,o){const{firstAccessor:s,getAccessor:l,setAccessor:u}=NS(t,r);if(r===s)return dt(e.createObjectDefinePropertyCall(i,TH(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:l&&dt(Nr(e.createFunctionExpression(xE(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:u&&dt(Nr(e.createFunctionExpression(xE(u),void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!o)),s)}function jBe(e,t,r){return Nr(dt(e.createAssignment(HS(e,r,t.name,t.name),t.initializer),t),t)}function UBe(e,t,r){return Nr(dt(e.createAssignment(HS(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function HBe(e,t,r){return Nr(dt(e.createAssignment(HS(e,r,t.name,t.name),Nr(dt(e.createFunctionExpression(xE(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function Nae(e,t,r,i){switch(r.name&&qi(r.name)&&N.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 177:case 178:return VBe(e,t.properties,r,i,!!t.multiLine);case 303:return jBe(e,r,i);case 304:return UBe(e,r,i);case 174:return HBe(e,r,i)}}function tF(e,t,r,i,o){const s=t.operator;N.assert(s===46||s===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const l=e.createTempVariable(i);r=e.createAssignment(l,r),dt(r,t.operand);let u=Xy(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),sH(t)&&(r=e.createComma(r,l),dt(r,t)),r}function AH(e){return(Ga(e)&65536)!==0}function Gg(e){return(Ga(e)&32768)!==0}function nF(e){return(Ga(e)&16384)!==0}function bTe(e){return Na(e.expression)&&e.expression.text==="use strict"}function IH(e){for(const t of e)if(Sm(t)){if(bTe(t))return t}else break}function Cae(e){const t=Kc(e);return t!==void 0&&Sm(t)&&bTe(t)}function Yk(e){return e.kind===226&&e.operatorToken.kind===28}function AP(e){return Yk(e)||hP(e)}function XR(e){return Gd(e)&&lr(e)&&!!i0(e)}function rF(e){const t=o0(e);return N.assertIsDefined(t),t}function iF(e,t=15){switch(e.kind){case 217:return t&16&&XR(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 $l(e,t=15){for(;iF(e,t);)e=e.expression;return e}function Pae(e,t=15){let r=e.parent;for(;iF(r,t);)r=r.parent,N.assert(r);return r}function ETe(e){return $l(e,6)}function Xu(e){return lW(e,!0)}function $k(e){const t=Pl(e,$i),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function Mae(e){const t=Pl(e,$i),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function xH(e,t,r,i,o,s,l){if(i.importHelpers&&RA(r,i)){let u;const p=wu(i);if(p>=5&&p<=99||r.impliedNodeFormat===99){const h=uW(r);if(h){const m=[];for(const y of h)if(!y.scoped){const T=y.importName;T&&Ef(m,T)}if(bt(m)){m.sort(Uu),u=e.createNamedImports(Wt(m,A=>C4(r,A)?e.createImportSpecifier(!1,void 0,e.createIdentifier(A)):e.createImportSpecifier(!1,e.createIdentifier(A),t.getUnscopedHelperName(A))));const y=Pl(r,$i),T=Ou(y);T.externalHelpers=!0}}}else{const h=Lae(e,r,i,o,s||l);h&&(u=e.createNamespaceImport(h))}if(u){const h=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,u),e.createStringLiteral(Vy),void 0);return UA(h,2),h}}}function Lae(e,t,r,i,o){if(r.importHelpers&&RA(t,r)){const s=$k(t);if(s)return s;const l=wu(r);let u=(i||vh(r)&&o)&&l!==4&&(l<5||t.impliedNodeFormat===1);if(!u){const p=uW(t);if(p){for(const h of p)if(!h.scoped){u=!0;break}}}if(u){const p=Pl(t,$i),h=Ou(p);return h.externalHelpersModuleName||(h.externalHelpersModuleName=e.createUniqueName(Vy))}}}function YR(e,t,r){const i=mR(t);if(i&&!NA(t)&&!M4(t)){const o=i.name;return al(o)?o:e.createIdentifier(CE(r,o)||Er(o))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function dI(e,t,r,i,o,s){const l=fR(t);if(l&&Na(l))return JBe(t,i,e,o,s)||qBe(e,l,r)||e.cloneNode(l)}function qBe(e,t,r){const i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function Qk(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&Ps(i))return e.createStringLiteral(jj(r,t.fileName))}}function JBe(e,t,r,i,o){return Qk(r,i.getExternalModuleFileFromDeclaration(e),t,o)}function Zk(e){if(uL(e))return e.initializer;if(hc(e)){const t=e.initializer;return Pc(t,!0)?t.right:void 0}if(np(e))return e.objectAssignmentInitializer;if(Pc(e,!0))return e.right;if($m(e))return Zk(e.expression)}function $y(e){if(uL(e))return e.name;if(Mg(e)){switch(e.kind){case 303:return $y(e.initializer);case 304:return e.name;case 305:return $y(e.expression)}return}return Pc(e,!0)?$y(e.left):$m(e)?$y(e.expression):e}function oF(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function RH(e){const t=aF(e);return N.assert(!!t||jv(e),"Invalid property name for binding element."),t}function aF(e){switch(e.kind){case 208:if(e.propertyName){const r=e.propertyName;return qi(r)?N.failBadSyntaxKind(r):Za(r)&&STe(r.expression)?r.expression:r}break;case 303:if(e.name){const r=e.name;return qi(r)?N.failBadSyntaxKind(r):Za(r)&&STe(r.expression)?r.expression:r}break;case 305:return e.name&&qi(e.name)?N.failBadSyntaxKind(e.name):e.name}const t=$y(e);if(t&&oc(t))return t}function STe(e){const t=e.kind;return t===11||t===9}function $R(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function DH(e){if(e){let t=e;for(;;){if(Ve(t)||!t.body)return Ve(t)?t:t.name;t=t.body}}}function TTe(e){const t=e.kind;return t===176||t===178}function kae(e){const t=e.kind;return t===176||t===177||t===178}function NH(e){const 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 wae(e){const t=e.kind;return t===175||t===303||t===304||t===282||t===270}function Oae(e){return Hy(e)||zk(e)}function Wae(e){return Ve(e)||jk(e)}function Fae(e){return oae(e)||rH(e)||iH(e)}function zae(e){return Hy(e)||rH(e)||iH(e)}function Bae(e){return Ve(e)||Na(e)}function ATe(e){const t=e.kind;return t===106||t===112||t===97||DE(e)||Xy(e)}function KBe(e){return e===43}function XBe(e){return e===42||e===44||e===45}function YBe(e){return KBe(e)||XBe(e)}function $Be(e){return e===40||e===41}function QBe(e){return $Be(e)||YBe(e)}function ZBe(e){return e===48||e===49||e===50}function CH(e){return ZBe(e)||QBe(e)}function eGe(e){return e===30||e===33||e===32||e===34||e===104||e===103}function tGe(e){return eGe(e)||CH(e)}function nGe(e){return e===35||e===37||e===36||e===38}function rGe(e){return nGe(e)||tGe(e)}function iGe(e){return e===51||e===52||e===53}function oGe(e){return iGe(e)||rGe(e)}function aGe(e){return e===56||e===57}function sGe(e){return aGe(e)||oGe(e)}function lGe(e){return e===61||sGe(e)||Ov(e)}function cGe(e){return lGe(e)||e===28}function Gae(e){return cGe(e.kind)}function sF(e,t,r,i,o,s){const l=new RTe(e,t,r,i,o,s);return u;function u(p,h){const m={value:void 0},y=[MH.enter],T=[p],A=[void 0];let R=0;for(;y[R]!==MH.done;)R=y[R](l,R,y,T,A,m,h);return N.assertEqual(R,0),m.value}}function ITe(e){return e===95||e===90}function ew(e){const t=e.kind;return ITe(t)}function xTe(e){const t=e.kind;return Pv(t)&&!ITe(t)}function Vae(e,t){if(t!==void 0)return t.length===0?t:dt(e.createNodeArray([],t.hasTrailingComma),t)}function tw(e){var t;const r=e.emitNode.autoGenerate;if(r.flags&4){const i=r.id;let o=e,s=o.original;for(;s;){o=s;const l=(t=o.emitNode)==null?void 0:t.autoGenerate;if(Kh(o)&&(l===void 0||l.flags&4&&l.id!==i))break;s=o.original}return o}return e}function QR(e,t){return typeof e=="object"?S0(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function uGe(e,t){return typeof e=="string"?e:dGe(e,N.checkDefined(t))}function dGe(e,t){return dS(e)?t(e).slice(1):al(e)?t(e):qi(e)?e.escapedText.slice(1):Er(e)}function S0(e,t,r,i,o){return t=QR(t,o),i=QR(i,o),r=uGe(r,o),`${e?"#":""}${t}${r}${i}`}function PH(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function jae(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 Uae(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 lF(e){let t=e.expression;for(;;){if(t=$l(t),hP(t)){t=Xa(t.elements);continue}if(Yk(t)){t=t.right;continue}if(Pc(t,!0)&&al(t.left))return t;break}}function pGe(e){return Gd(e)&&Ys(e)&&!e.emitNode}function cF(e,t){if(pGe(e))cF(e.expression,t);else if(Yk(e))cF(e.left,t),cF(e.right,t);else if(hP(e))for(const r of e.elements)cF(r,t);else t.push(e)}function Hae(e){const t=[];return cF(e,t),t}function nw(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(const t of $R(e)){const r=$y(t);if(r&&mC(r)&&(r.transformFlags&65536||r.transformFlags&128&&nw(r)))return!0}return!1}var MH,RTe,fGe=I({"src/compiler/factory/utilities.ts"(){ra(),(e=>{function t(m,y,T,A,R,M,C){const O=y>0?R[y-1]:void 0;return N.assertEqual(T[y],t),R[y]=m.onEnter(A[y],O,C),T[y]=u(m,t),y}e.enter=t;function r(m,y,T,A,R,M,C){N.assertEqual(T[y],r),N.assertIsDefined(m.onLeft),T[y]=u(m,r);const O=m.onLeft(A[y].left,R[y],A[y]);return O?(h(y,A,O),p(y,T,A,R,O)):y}e.left=r;function i(m,y,T,A,R,M,C){return N.assertEqual(T[y],i),N.assertIsDefined(m.onOperator),T[y]=u(m,i),m.onOperator(A[y].operatorToken,R[y],A[y]),y}e.operator=i;function o(m,y,T,A,R,M,C){N.assertEqual(T[y],o),N.assertIsDefined(m.onRight),T[y]=u(m,o);const O=m.onRight(A[y].right,R[y],A[y]);return O?(h(y,A,O),p(y,T,A,R,O)):y}e.right=o;function s(m,y,T,A,R,M,C){N.assertEqual(T[y],s),T[y]=u(m,s);const O=m.onExit(A[y],R[y]);if(y>0){if(y--,m.foldState){const U=T[y]===s?"right":"left";R[y]=m.foldState(R[y],O,U)}}else M.value=O;return y}e.exit=s;function l(m,y,T,A,R,M,C){return N.assertEqual(T[y],l),y}e.done=l;function u(m,y){switch(y){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:N.fail("Invalid state")}}e.nextState=u;function p(m,y,T,A,R){return m++,y[m]=t,T[m]=R,A[m]=void 0,m}function h(m,y,T){if(N.shouldAssert(2))for(;m>=0;)N.assert(y[m]!==T,"Circular traversal detected."),m--}})(MH||(MH={})),RTe=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 Rm(e){const 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 qS(e){const t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var mGe=I({"src/compiler/factory/utilitiesPublic.ts"(){ra()}});function Xt(e,t){return t&&e(t)}function Gi(e,t,r){if(r){if(t)return t(r);for(const i of r){const o=e(i);if(o)return o}}}function LH(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function rw(e){return Xe(e.statements,_Ge)||hGe(e)}function _Ge(e){return Rm(e)&&gGe(e,95)||eu(e)&&Th(e.moduleReference)||Mc(e)||kl(e)||Yl(e)?e:void 0}function hGe(e){return e.flags&8388608?DTe(e):void 0}function DTe(e){return vGe(e)?e:Uo(e,DTe)}function gGe(e,t){return bt(e.modifiers,r=>r.kind===t)}function vGe(e){return _P(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function NTe(e,t,r){return Gi(t,r,e.typeParameters)||Gi(t,r,e.parameters)||Xt(t,e.type)}function CTe(e,t,r){return Gi(t,r,e.types)}function PTe(e,t,r){return Xt(t,e.type)}function MTe(e,t,r){return Gi(t,r,e.elements)}function LTe(e,t,r){return Xt(t,e.expression)||Xt(t,e.questionDotToken)||Gi(t,r,e.typeArguments)||Gi(t,r,e.arguments)}function kTe(e,t,r){return Gi(t,r,e.statements)}function wTe(e,t,r){return Xt(t,e.label)}function OTe(e,t,r){return Gi(t,r,e.modifiers)||Xt(t,e.name)||Gi(t,r,e.typeParameters)||Gi(t,r,e.heritageClauses)||Gi(t,r,e.members)}function WTe(e,t,r){return Gi(t,r,e.elements)}function FTe(e,t,r){return Xt(t,e.propertyName)||Xt(t,e.name)}function zTe(e,t,r){return Xt(t,e.tagName)||Gi(t,r,e.typeArguments)||Xt(t,e.attributes)}function IP(e,t,r){return Xt(t,e.type)}function BTe(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:Gi(t,r,e.comment))}function xP(e,t,r){return Xt(t,e.tagName)||Xt(t,e.typeExpression)||(typeof e.comment=="string"?void 0:Gi(t,r,e.comment))}function qae(e,t,r){return Xt(t,e.name)}function ZR(e,t,r){return Xt(t,e.tagName)||(typeof e.comment=="string"?void 0:Gi(t,r,e.comment))}function yGe(e,t,r){return Xt(t,e.expression)}function Uo(e,t,r){if(e===void 0||e.kind<=165)return;const i=YTe[e.kind];return i===void 0?void 0:i(e,t,r)}function RP(e,t,r){const i=GTe(e),o=[];for(;o.length<i.length;)o.push(e);for(;i.length!==0;){const s=i.pop(),l=o.pop();if(To(s)){if(r){const u=r(s,l);if(u){if(u==="skip")continue;return u}}for(let u=s.length-1;u>=0;--u)i.push(s[u]),o.push(l)}else{const u=t(s,l);if(u){if(u==="skip")continue;return u}if(s.kind>=166)for(const p of GTe(s))i.push(p),o.push(s)}}}function GTe(e){const t=[];return Uo(e,r,r),t;function r(i){t.unshift(i)}}function VTe(e){e.externalModuleIndicator=rw(e)}function iw(e,t,r,i=!1,o){var s,l,u,p;(s=sr)==null||s.push(sr.Phase.Parse,"createSourceFile",{path:e},!0),rl("beforeParse");let h;(l=id)==null||l.logStartParseSourceFile(e);const{languageVersion:m,setExternalModuleIndicator:y,impliedNodeFormat:T,jsDocParsingMode:A}=typeof r=="object"?r:{languageVersion:r};if(m===100)h=A0.parseSourceFile(e,t,m,void 0,i,6,Ya,A);else{const R=T===void 0?y:M=>(M.impliedNodeFormat=T,(y||VTe)(M));h=A0.parseSourceFile(e,t,m,void 0,i,o,R,A)}return(u=id)==null||u.logStopParseSourceFile(),rl("afterParse"),Qp("Parse","beforeParse","afterParse"),(p=sr)==null||p.pop(),h}function pI(e,t){return A0.parseIsolatedEntityName(e,t)}function ow(e,t){return A0.parseJsonText(e,t)}function sc(e){return e.externalModuleIndicator!==void 0}function kH(e,t,r,i=!1){const o=zH.updateSourceFile(e,t,r,i);return o.flags|=e.flags&12582912,o}function Jae(e,t,r){const i=A0.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&A0.fixupParentReferences(i.jsDoc),i}function jTe(e,t,r){return A0.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function Su(e){return wH(e)!==void 0}function wH(e){const t=Gx(e,Ik,!1);if(t)return t;if(Il(e,".ts")){const r=ic(e).lastIndexOf(".d.");if(r>=0)return e.substring(r)}}function bGe(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 OH(e,t){const r=[];for(const i of qh(t,0)||et){const o=t.substring(i.pos,i.end);SGe(r,i,o)}e.pragmas=new Map;for(const i of r){if(e.pragmas.has(i.name)){const 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 WH(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":{const o=e.referencedFiles,s=e.typeReferenceDirectives,l=e.libReferenceDirectives;Xe(mA(r),u=>{const{types:p,lib:h,path:m,["resolution-mode"]:y}=u.arguments;if(u.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(p){const T=bGe(y,p.pos,p.end,t);s.push({pos:p.pos,end:p.end,fileName:p.value,...T?{resolutionMode:T}:{}})}else h?l.push({pos:h.pos,end:h.end,fileName:h.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=Wt(mA(r),o=>({name:o.arguments.name,path:o.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(const 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":{Xe(mA(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:N.fail("Unhandled pragma kind")}})}function EGe(e){if(BH.has(e))return BH.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return BH.set(e,t),t}function SGe(e,t,r){const i=t.kind===2&&$Te.exec(r);if(i){const s=i[1].toLowerCase(),l=z2[s];if(!l||!(l.kind&1))return;if(l.args){const u={};for(const p of l.args){const m=EGe(p.name).exec(r);if(!m&&!p.optional)return;if(m){const y=m[2]||m[3];if(p.captureSpan){const T=t.pos+m.index+m[1].length+1;u[p.name]={value:y,pos:T,end:T+y.length}}else u[p.name]=y}}e.push({name:s,args:{arguments:u,range:t}})}else e.push({name:s,args:{arguments:{},range:t}});return}const o=t.kind===2&&QTe.exec(r);if(o)return UTe(e,t,2,o);if(t.kind===3){const s=/@(\S+)(\s+.*)?$/gim;let l;for(;l=s.exec(r);)UTe(e,t,4,l)}}function UTe(e,t,r,i){if(!i)return;const o=i[1].toLowerCase(),s=z2[o];if(!s||!(s.kind&r))return;const l=i[2],u=TGe(s,l);u!=="fail"&&e.push({name:o,args:{arguments:u,range:t}})}function TGe(e,t){if(!t)return{};if(!e.args)return{};const r=t.trim().split(/\s+/),i={};for(let o=0;o<e.args.length;o++){const s=e.args[o];if(!r[o]&&!s.optional)return"fail";if(s.captureSpan)return N.fail("Capture spans not yet implemented for non-xml pragmas");i[s.name]=r[o]}return i}function T0(e,t){return e.kind!==t.kind?!1:e.kind===80?e.escapedText===t.escapedText:e.kind===110?!0:e.kind===295?e.namespace.escapedText===t.namespace.escapedText&&e.name.escapedText===t.name.escapedText:e.name.escapedText===t.name.escapedText&&T0(e.expression,t.expression)}var HTe,qTe,JTe,KTe,XTe,FH,Ah,YTe,A0,zH,BH,$Te,QTe,AGe=I({"src/compiler/parser.ts"(){ra(),sS(),FH={createBaseSourceFileNode:e=>new(XTe||(XTe=su.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(JTe||(JTe=su.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(KTe||(KTe=su.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(qTe||(qTe=su.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(HTe||(HTe=su.getNodeConstructor()))(e,-1,-1)},Ah=Dk(1,FH),YTe={166:function(t,r,i){return Xt(r,t.left)||Xt(r,t.right)},168:function(t,r,i){return Gi(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 Gi(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 Gi(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 Gi(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 Gi(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 Gi(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 Gi(r,i,t.modifiers)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Xt(r,t.type)},185:function(t,r,i){return Gi(r,i,t.modifiers)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Xt(r,t.type)},184:function(t,r,i){return Gi(r,i,t.modifiers)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Xt(r,t.type)},179:NTe,180:NTe,174:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.asteriskToken)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.exclamationToken)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},173:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.questionToken)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Xt(r,t.type)},176:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},177:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},178:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},262:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.asteriskToken)||Xt(r,t.name)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},218:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.asteriskToken)||Xt(r,t.name)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},219:function(t,r,i){return Gi(r,i,t.modifiers)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.equalsGreaterThanToken)||Xt(r,t.body)},175:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.body)},183:function(t,r,i){return Xt(r,t.typeName)||Gi(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)||Gi(r,i,t.typeArguments)},187:function(t,r,i){return Gi(r,i,t.members)},188:function(t,r,i){return Xt(r,t.elementType)},189:function(t,r,i){return Gi(r,i,t.elements)},192:CTe,193:CTe,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)||Gi(r,i,t.typeArguments)},302:function(t,r,i){return Xt(r,t.assertClause)},196:PTe,198:PTe,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)||Gi(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:MTe,207:MTe,209:function(t,r,i){return Gi(r,i,t.elements)},210:function(t,r,i){return Gi(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:LTe,214:LTe,215:function(t,r,i){return Xt(r,t.tag)||Xt(r,t.questionDotToken)||Gi(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:kTe,268:kTe,312:function(t,r,i){return Gi(r,i,t.statements)||Xt(r,t.endOfFileToken)},243:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.declarationList)},261:function(t,r,i){return Gi(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:wTe,252:wTe,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 Gi(r,i,t.clauses)},296:function(t,r,i){return Xt(r,t.expression)||Gi(r,i,t.statements)},297:function(t,r,i){return Gi(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:OTe,231:OTe,264:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)||Gi(r,i,t.typeParameters)||Gi(r,i,t.heritageClauses)||Gi(r,i,t.members)},265:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)||Gi(r,i,t.typeParameters)||Xt(r,t.type)},266:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)||Gi(r,i,t.members)},306:function(t,r,i){return Xt(r,t.name)||Xt(r,t.initializer)},267:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.body)},271:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.moduleReference)},272:function(t,r,i){return Gi(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 Gi(r,i,t.elements)},301:function(t,r,i){return Xt(r,t.name)||Xt(r,t.value)},270:function(t,r,i){return Gi(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:WTe,279:WTe,278:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.exportClause)||Xt(r,t.moduleSpecifier)||Xt(r,t.attributes)},276:FTe,281:FTe,277:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.expression)},228:function(t,r,i){return Xt(r,t.head)||Gi(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)||Gi(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 Gi(r,i,t.types)},233:function(t,r,i){return Xt(r,t.expression)||Gi(r,i,t.typeArguments)},283:function(t,r,i){return Xt(r,t.expression)},282:function(t,r,i){return Gi(r,i,t.modifiers)},361:function(t,r,i){return Gi(r,i,t.elements)},284:function(t,r,i){return Xt(r,t.openingElement)||Gi(r,i,t.children)||Xt(r,t.closingElement)},288:function(t,r,i){return Xt(r,t.openingFragment)||Gi(r,i,t.children)||Xt(r,t.closingFragment)},285:zTe,286:zTe,292:function(t,r,i){return Gi(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:IP,191:IP,316:IP,322:IP,321:IP,323:IP,325:IP,324:function(t,r,i){return Gi(r,i,t.parameters)||Xt(r,t.type)},327:function(t,r,i){return(typeof t.comment=="string"?void 0:Gi(r,i,t.comment))||Gi(r,i,t.tags)},354:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.name)||(typeof t.comment=="string"?void 0:Gi(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:BTe,355:BTe,337:function(t,r,i){return Xt(r,t.tagName)||(typeof t.comment=="string"?void 0:Gi(r,i,t.comment))},336:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.class)||(typeof t.comment=="string"?void 0:Gi(r,i,t.comment))},335:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.class)||(typeof t.comment=="string"?void 0:Gi(r,i,t.comment))},352:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.constraint)||Gi(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:Gi(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:Gi(r,i,t.comment)):Xt(r,t.fullName)||Xt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Gi(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:Gi(r,i,t.comment))},349:xP,351:xP,350:xP,347:xP,357:xP,356:xP,346:xP,330:function(t,r,i){return Xe(t.typeParameters,r)||Xe(t.parameters,r)||Xt(r,t.type)},331:qae,332:qae,333:qae,329:function(t,r,i){return Xe(t.jsDocPropertyTags,r)},334:ZR,339:ZR,340:ZR,341:ZR,342:ZR,343:ZR,338:ZR,344:ZR,360:yGe},(e=>{var t=Nv(99,!0),r=40960,i,o,s,l,u;function p($){return $e++,$}var h={createBaseSourceFileNode:$=>p(new u($,0,0)),createBaseIdentifierNode:$=>p(new s($,0,0)),createBasePrivateIdentifierNode:$=>p(new l($,0,0)),createBaseTokenNode:$=>p(new o($,0,0)),createBaseNode:$=>p(new i($,0,0))},m=Dk(11,h),{createNodeArray:y,createNumericLiteral:T,createStringLiteral:A,createLiteralLikeNode:R,createIdentifier:M,createPrivateIdentifier:C,createToken:O,createArrayLiteralExpression:U,createObjectLiteralExpression:K,createPropertyAccessExpression:Q,createPropertyAccessChain:V,createElementAccessExpression:se,createElementAccessChain:G,createCallExpression:ne,createCallChain:he,createNewExpression:ye,createParenthesizedExpression:Y,createBlock:X,createVariableStatement:oe,createExpressionStatement:pe,createIfStatement:Ce,createWhileStatement:de,createForStatement:ie,createForOfStatement:ve,createVariableDeclaration:Le,createVariableDeclarationList:Ue}=m,Ee,De,Me,We,At,Se,je,ot,Bt,vt,$e,It,tn,rn,Mn,$n,gn=!0,Qt=!1;function Yt($,xe,Ke,xt,Nt=!1,Jt,zr,Fi=0){var Ni;if(Jt=B3($,Jt),Jt===6){const Xi=so($,xe,Ke,xt,Nt);return lw(Xi,(Ni=Xi.statements[0])==null?void 0:Ni.expression,Xi.parseDiagnostics,!1,void 0),Xi.referencedFiles=et,Xi.typeReferenceDirectives=et,Xi.libReferenceDirectives=et,Xi.amdDependencies=et,Xi.hasNoDefaultLib=!1,Xi.pragmas=M6,Xi}Wi($,xe,Ke,xt,Jt,Fi);const hi=Ln(Ke,Nt,Jt,zr||VTe,Fi);return Co(),hi}e.parseSourceFile=Yt;function vi($,xe){Wi("",$,xe,void 0,1,0),ke();const Ke=te(!0),xt=J()===1&&!je.length;return Co(),xt?Ke:void 0}e.parseIsolatedEntityName=vi;function so($,xe,Ke=2,xt,Nt=!1){Wi($,xe,Ke,xt,6,0),De=$n,ke();const Jt=L();let zr,Fi;if(J()===1)zr=wo([],Jt,Jt),Fi=ml();else{let Xi;for(;J()!==1;){let es;switch(J()){case 23:es=N1();break;case 112:case 97:case 106:es=ml();break;case 41:Mi(()=>ke()===9&&ke()!==59)?es=Zr():es=tv();break;case 9:case 11:if(Mi(()=>ke()!==59)){es=Yr();break}default:es=tv();break}Xi&&To(Xi)?Xi.push(es):Xi?Xi=[Xi,es]:(Xi=es,J()!==1&&fn(f.Unexpected_token))}const ds=To(Xi)?nn(U(Xi),Jt):N.checkDefined(Xi),Rs=pe(ds);nn(Rs,Jt),zr=wo([Rs],Jt),Fi=Ts(1,f.Unexpected_token)}const Ni=zt($,2,6,!1,zr,Fi,De,Ya);Nt&&tt(Ni),Ni.nodeCount=$e,Ni.identifierCount=tn,Ni.identifiers=It,Ni.parseDiagnostics=zA(je,Ni),ot&&(Ni.jsDocDiagnostics=zA(ot,Ni));const hi=Ni;return Co(),hi}e.parseJsonText=so;function Wi($,xe,Ke,xt,Nt,Jt){switch(i=su.getNodeConstructor(),o=su.getTokenConstructor(),s=su.getIdentifierConstructor(),l=su.getPrivateIdentifierConstructor(),u=su.getSourceFileConstructor(),Ee=ha($),Me=xe,We=Ke,Bt=xt,At=Nt,Se=pk(Nt),je=[],rn=0,It=new Map,tn=0,$e=0,De=0,gn=!0,At){case 1:case 2:$n=524288;break;case 6:$n=134742016;break;default:$n=0;break}Qt=!1,t.setText(Me),t.setOnError(Lt),t.setScriptTarget(We),t.setLanguageVariant(Se),t.setScriptKind(At),t.setJSDocParsingMode(Jt)}function Co(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),Me=void 0,We=void 0,Bt=void 0,At=void 0,Se=void 0,De=0,je=void 0,ot=void 0,rn=0,It=void 0,Mn=void 0,gn=!0}function Ln($,xe,Ke,xt,Nt){const Jt=Su(Ee);Jt&&($n|=33554432),De=$n,ke();const zr=na(0,sp);N.assert(J()===1);const Fi=me(),Ni=Ar(ml(),Fi),hi=zt(Ee,$,Ke,Jt,zr,Ni,De,xt);return OH(hi,Me),WH(hi,Xi),hi.commentDirectives=t.getCommentDirectives(),hi.nodeCount=$e,hi.identifierCount=tn,hi.identifiers=It,hi.parseDiagnostics=zA(je,hi),hi.jsDocParsingMode=Nt,ot&&(hi.jsDocDiagnostics=zA(ot,hi)),xe&&tt(hi),hi;function Xi(ds,Rs,es){je.push(CR(Ee,Me,ds,Rs,es))}}let Ci=!1;function Ar($,xe){if(!xe)return $;N.assert(!$.jsDoc);const Ke=eo(dj($,Me),xt=>K_.parseJSDocComment($,xt.pos,xt.end-xt.pos));return Ke.length&&($.jsDoc=Ke),Ci&&(Ci=!1,$.flags|=536870912),$}function sn($){const xe=Bt,Ke=zH.createSyntaxCursor($);Bt={currentNode:Xi};const xt=[],Nt=je;je=[];let Jt=0,zr=Ni($.statements,0);for(;zr!==-1;){const ds=$.statements[Jt],Rs=$.statements[zr];qr(xt,$.statements,Jt,zr),Jt=hi($.statements,zr);const es=mi(Nt,X_=>X_.start>=ds.pos),zf=es>=0?mi(Nt,X_=>X_.start>=Rs.pos,es):-1;es>=0&&qr(je,Nt,es,zf>=0?zf:void 0),vo(()=>{const X_=$n;for($n|=65536,t.resetTokenState(Rs.pos),ke();J()!==1;){const bg=t.getTokenFullStart(),ov=Zl(0,sp);if(xt.push(ov),bg===t.getTokenFullStart()&&ke(),Jt>=0){const av=$.statements[Jt];if(ov.end===av.pos)break;ov.end>av.pos&&(Jt=hi($.statements,Jt+1))}}$n=X_},2),zr=Jt>=0?Ni($.statements,Jt):-1}if(Jt>=0){const ds=$.statements[Jt];qr(xt,$.statements,Jt);const Rs=mi(Nt,es=>es.start>=ds.pos);Rs>=0&&qr(je,Nt,Rs)}return Bt=xe,m.updateSourceFile($,dt(y(xt),$.statements));function Fi(ds){return!(ds.flags&65536)&&!!(ds.transformFlags&67108864)}function Ni(ds,Rs){for(let es=Rs;es<ds.length;es++)if(Fi(ds[es]))return es;return-1}function hi(ds,Rs){for(let es=Rs;es<ds.length;es++)if(!Fi(ds[es]))return es;return-1}function Xi(ds){const Rs=Ke.currentNode(ds);return gn&&Rs&&Fi(Rs)&&(Rs.intersectsChange=!0),Rs}}function tt($){Gy($,!0)}e.fixupParentReferences=tt;function zt($,xe,Ke,xt,Nt,Jt,zr,Fi){let Ni=m.createSourceFile(Nt,Jt,zr);if(ZC(Ni,0,Me.length),hi(Ni),!xt&&sc(Ni)&&Ni.transformFlags&67108864){const Xi=Ni;Ni=sn(Ni),Xi!==Ni&&hi(Ni)}return Ni;function hi(Xi){Xi.text=Me,Xi.bindDiagnostics=[],Xi.bindSuggestionDiagnostics=void 0,Xi.languageVersion=xe,Xi.fileName=$,Xi.languageVariant=pk(Ke),Xi.isDeclarationFile=xt,Xi.scriptKind=Ke,Fi(Xi),Xi.setExternalModuleIndicator=Fi}}function Dn($,xe){$?$n|=xe:$n&=~xe}function ci($){Dn($,8192)}function yi($){Dn($,16384)}function Qi($){Dn($,32768)}function Io($){Dn($,65536)}function fa($,xe){const Ke=$&$n;if(Ke){Dn(!1,Ke);const xt=xe();return Dn(!0,Ke),xt}return xe()}function ka($,xe){const Ke=$&~$n;if(Ke){Dn(!0,Ke);const xt=xe();return Dn(!1,Ke),xt}return xe()}function Tn($){return fa(8192,$)}function wn($){return ka(8192,$)}function He($){return fa(131072,$)}function mt($){return ka(131072,$)}function ft($){return ka(16384,$)}function Ct($){return ka(32768,$)}function le($){return ka(65536,$)}function Fe($){return fa(65536,$)}function pt($){return ka(81920,$)}function j($){return fa(81920,$)}function it($){return($n&$)!==0}function Rt(){return it(16384)}function Ye(){return it(8192)}function _t(){return it(131072)}function Gt(){return it(32768)}function yn(){return it(65536)}function fn($,...xe){return q(t.getTokenStart(),t.getTokenEnd(),$,...xe)}function hn($,xe,Ke,...xt){const Nt=el(je);let Jt;return(!Nt||$!==Nt.start)&&(Jt=CR(Ee,Me,$,xe,Ke,...xt),je.push(Jt)),Qt=!0,Jt}function q($,xe,Ke,...xt){return hn($,xe-$,Ke,...xt)}function Oe($,xe,...Ke){q($.pos,$.end,xe,...Ke)}function Lt($,xe,Ke){hn(t.getTokenEnd(),xe,$,Ke)}function L(){return t.getTokenFullStart()}function me(){return t.hasPrecedingJSDocComment()}function J(){return vt}function fe(){return vt=t.scan()}function Be($){return ke(),$()}function ke(){return Bd(vt)&&(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&q(t.getTokenStart(),t.getTokenEnd(),f.Keywords_cannot_contain_escape_characters),fe()}function Tt(){return vt=t.scanJsDocToken()}function kt($){return vt=t.scanJSDocCommentTextToken($)}function en(){return vt=t.reScanGreaterToken()}function En(){return vt=t.reScanSlashToken()}function Gn($){return vt=t.reScanTemplateToken($)}function qn(){return vt=t.reScanLessThanToken()}function Pi(){return vt=t.reScanHashToken()}function xi(){return vt=t.scanJsxIdentifier()}function ir(){return vt=t.scanJsxToken()}function Vr(){return vt=t.scanJsxAttributeValue()}function vo($,xe){const Ke=vt,xt=je.length,Nt=Qt,Jt=$n,zr=xe!==0?t.lookAhead($):t.tryScan($);return N.assert(Jt===$n),(!zr||xe!==0)&&(vt=Ke,xe!==2&&(je.length=xt),Qt=Nt),zr}function Mi($){return vo($,1)}function Ri($){return vo($,0)}function Jr(){return J()===80?!0:J()>118}function xo(){return J()===80?!0:J()===127&&Rt()||J()===135&&yn()?!1:J()>118}function Nn($,xe,Ke=!0){return J()===$?(Ke&&ke(),!0):(xe?fn(xe):fn(f._0_expected,pa($)),!1)}const Fs=Object.keys(Q2).filter($=>$.length>2);function Ql($){if(QE($)){q(Pa(Me,$.template.pos),$.template.end,f.Module_declaration_names_may_only_use_or_quoted_strings);return}const xe=Ve($)?Er($):void 0;if(!xe||!Zp(xe,We)){fn(f._0_expected,pa(27));return}const Ke=Pa(Me,$.pos);switch(xe){case"const":case"let":case"var":q(Ke,$.end,f.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":ko(f.Interface_name_cannot_be_0,f.Interface_must_be_given_a_name,19);return;case"is":q(Ke,t.getTokenStart(),f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":ko(f.Namespace_name_cannot_be_0,f.Namespace_must_be_given_a_name,19);return;case"type":ko(f.Type_alias_name_cannot_be_0,f.Type_alias_must_be_given_a_name,64);return}const xt=KN(xe,Fs,Nt=>Nt)??cs(xe);if(xt){q(Ke,$.end,f.Unknown_keyword_or_identifier_Did_you_mean_0,xt);return}J()!==0&&q(Ke,$.end,f.Unexpected_keyword_or_identifier)}function ko($,xe,Ke){J()===Ke?fn(xe):fn($,t.getTokenValue())}function cs($){for(const xe of Fs)if($.length>xe.length+2&&uo($,xe))return`${xe} ${$.slice(xe.length)}`}function Vs($,xe,Ke){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(xe&&!lc()){Ke?fn(f._0_expected,pa(27)):fn(f.Expected_for_property_initializer);return}if(!Nl()){if(Ke){fn(f._0_expected,pa(27));return}Ql($)}}function gl($){return J()===$?(Tt(),!0):(N.assert(a3($)),fn(f._0_expected,pa($)),!1)}function cu($,xe,Ke,xt){if(J()===xe){ke();return}const Nt=fn(f._0_expected,pa(xe));Ke&&Nt&&Ma(Nt,CR(Ee,Me,xt,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,pa($),pa(xe)))}function ho($){return J()===$?(ke(),!0):!1}function da($){if(J()===$)return ml()}function uu($){if(J()===$)return Lf()}function Ts($,xe,Ke){return da($)||js($,!1,xe||f._0_expected,Ke||pa($))}function Ca($){const xe=uu($);return xe||(N.assert(a3($)),js($,!1,f._0_expected,pa($)))}function ml(){const $=L(),xe=J();return ke(),nn(O(xe),$)}function Lf(){const $=L(),xe=J();return Tt(),nn(O(xe),$)}function lc(){return J()===27?!0:J()===20||J()===1||t.hasPrecedingLineBreak()}function Nl(){return lc()?(J()===27&&ke(),!0):!1}function cl(){return Nl()||Nn(27)}function wo($,xe,Ke,xt){const Nt=y($,xt);return gh(Nt,xe,Ke??t.getTokenFullStart()),Nt}function nn($,xe,Ke){return gh($,xe,Ke??t.getTokenFullStart()),$n&&($.flags|=$n),Qt&&(Qt=!1,$.flags|=262144),$}function js($,xe,Ke,...xt){xe?hn(t.getTokenFullStart(),0,Ke,...xt):Ke&&fn(Ke,...xt);const Nt=L(),Jt=$===80?M("",void 0):Ny($)?m.createTemplateLiteralLikeNode($,"","",void 0):$===9?T("",void 0):$===11?A("",void 0):$===282?m.createMissingDeclaration():O($);return nn(Jt,Nt)}function tu($){let xe=It.get($);return xe===void 0&&It.set($,xe=$),xe}function du($,xe,Ke){if($){tn++;const Fi=L(),Ni=J(),hi=tu(t.getTokenValue()),Xi=t.hasExtendedUnicodeEscape();return fe(),nn(M(hi,Ni,Xi),Fi)}if(J()===81)return fn(Ke||f.Private_identifiers_are_not_allowed_outside_class_bodies),du(!0);if(J()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return du(!0);tn++;const xt=J()===1,Nt=t.isReservedWord(),Jt=t.getTokenText(),zr=Nt?f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:f.Identifier_expected;return js(80,xt,xe||zr,Jt)}function Tp($){return du(Jr(),void 0,$)}function Ms($,xe){return du(xo(),$,xe)}function xc($){return du(od(J()),$)}function ue(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&fn(f.Unicode_escape_sequence_cannot_appear_here),du(od(J()))}function Z(){return od(J())||J()===11||J()===9}function we(){return od(J())||J()===11}function Et($){if(J()===11||J()===9){const xe=Yr();return xe.text=tu(xe.text),xe}return $&&J()===23?Sr():J()===81?vr():xc()}function un(){return Et(!0)}function Sr(){const $=L();Nn(23);const xe=Tn(qe);return Nn(24),nn(m.createComputedPropertyName(xe),$)}function vr(){const $=L(),xe=C(tu(t.getTokenValue()));return ke(),nn(xe,$)}function jr($){return J()===$&&Ri(Mr)}function Di(){return ke(),t.hasPrecedingLineBreak()?!1:Us()}function Mr(){switch(J()){case 87:return ke()===94;case 95:return ke(),J()===90?Mi(vc):J()===156?Mi(Sl):Yo();case 90:return vc();case 126:case 139:case 153:return ke(),Us();default:return Di()}}function Yo(){return J()===60||J()!==42&&J()!==130&&J()!==19&&Us()}function Sl(){return ke(),Yo()}function jc(){return Pv(J())&&Ri(Mr)}function Us(){return J()===23||J()===19||J()===42||J()===26||Z()}function vc(){return ke(),J()===86||J()===100||J()===120||J()===60||J()===128&&Mi(RT)||J()===134&&Mi(DT)}function Es($,xe){if(yc($))return!0;switch($){case 0:case 1:case 3:return!(J()===27&&xe)&&P1();case 2:return J()===84||J()===90;case 4:return Mi(Ja);case 5:return Mi(vg)||J()===27&&!xe;case 6:return J()===23||Z();case 12:switch(J()){case 23:case 42:case 26:case 25:return!0;default:return Z()}case 18:return Z();case 9:return J()===23||J()===26||Z();case 24:return we();case 7:return J()===19?Mi(Uc):xe?xo()&&!_d():KI()&&!_d();case 8:return rs();case 10:return J()===28||J()===26||rs();case 19:return J()===103||J()===87||xo();case 15:switch(J()){case 28:case 25:return!0}case 11:return J()===26||r_();case 16:return j_(!1);case 17:return j_(!0);case 20:case 21:return J()===28||pg();case 22:return D();case 23:return J()===161&&Mi(aN)?!1:od(J());case 13:return od(J())||J()===19;case 14:return!0;case 25:return!0;case 26:return N.fail("ParsingContext.Count used as a context");default:N.assertNever($,"Non-exhaustive case in 'isListElement'.")}}function Uc(){if(N.assert(J()===19),ke()===20){const $=ke();return $===28||$===19||$===96||$===119}return!0}function ip(){return ke(),xo()}function wc(){return ke(),od(J())}function sm(){return ke(),Pne(J())}function _d(){return J()===119||J()===96?Mi(Pe):!1}function Pe(){return ke(),r_()}function Ot(){return ke(),pg()}function Xn($){if(J()===1)return!0;switch($){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 yo();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(Si);default:return!1}}function yo(){return!!(lc()||Qg(J())||J()===39)}function $o(){N.assert(rn,"Missing parsing context");for(let $=0;$<26;$++)if(rn&1<<$&&(Es($,!0)||Xn($)))return!0;return!1}function na($,xe){const Ke=rn;rn|=1<<$;const xt=[],Nt=L();for(;!Xn($);){if(Es($,!1)){xt.push(Zl($,xe));continue}if(Dh($))break}return rn=Ke,wo(xt,Nt)}function Zl($,xe){const Ke=yc($);return Ke?ul(Ke):xe()}function yc($,xe){var Ke;if(!Bt||!vl($)||Qt)return;const xt=Bt.currentNode(xe??t.getTokenFullStart());if(!(Fl(xt)||xt.intersectsChange||eR(xt)||(xt.flags&101441536)!==$n)&&Gl(xt,$))return JL(xt)&&((Ke=xt.jsDoc)!=null&&Ke.jsDocCache)&&(xt.jsDoc.jsDocCache=void 0),xt}function ul($){return t.resetTokenState($.end),ke(),$}function vl($){switch($){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}function Gl($,xe){switch(xe){case 5:return ec($);case 2:return Hc($);case 0:case 1:case 3:return df($);case 6:return jd($);case 4:return Nd($);case 8:return kf($);case 17:case 16:return V_($)}return!1}function ec($){if($)switch($.kind){case 176:case 181:case 177:case 178:case 172:case 240:return!0;case 174:const xe=$;return!(xe.name.kind===80&&xe.name.escapedText==="constructor")}return!1}function Hc($){if($)switch($.kind){case 296:case 297:return!0}return!1}function df($){if($)switch($.kind){case 262:case 243:case 241:case 245:case 244:case 257:case 253:case 255:case 252:case 251:case 249:case 250:case 248:case 247:case 254:case 242:case 258:case 256:case 246:case 259:case 272:case 271:case 278:case 277:case 267:case 263:case 264:case 266:case 265:return!0}return!1}function jd($){return $.kind===306}function Nd($){if($)switch($.kind){case 180:case 173:case 181:case 171:case 179:return!0}return!1}function kf($){return $.kind!==260?!1:$.initializer===void 0}function V_($){return $.kind!==169?!1:$.initializer===void 0}function Dh($){return qg($),$o()?!0:(ke(),!1)}function qg($){switch($){case 0:return J()===90?fn(f._0_expected,pa(95)):fn(f.Declaration_or_statement_expected);case 1:return fn(f.Declaration_or_statement_expected);case 2:return fn(f.case_or_default_expected);case 3:return fn(f.Statement_expected);case 18:case 4:return fn(f.Property_or_signature_expected);case 5:return fn(f.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return fn(f.Enum_member_expected);case 7:return fn(f.Expression_expected);case 8:return Bd(J())?fn(f._0_is_not_allowed_as_a_variable_declaration_name,pa(J())):fn(f.Variable_declaration_expected);case 9:return fn(f.Property_destructuring_pattern_expected);case 10:return fn(f.Array_element_destructuring_pattern_expected);case 11:return fn(f.Argument_expression_expected);case 12:return fn(f.Property_assignment_expected);case 15:return fn(f.Expression_or_comma_expected);case 17:return fn(f.Parameter_declaration_expected);case 16:return Bd(J())?fn(f._0_is_not_allowed_as_a_parameter_name,pa(J())):fn(f.Parameter_declaration_expected);case 19:return fn(f.Type_parameter_declaration_expected);case 20:return fn(f.Type_argument_expected);case 21:return fn(f.Type_expected);case 22:return fn(f.Unexpected_token_expected);case 23:return J()===161?fn(f._0_expected,"}"):fn(f.Identifier_expected);case 13:return fn(f.Identifier_expected);case 14:return fn(f.Identifier_expected);case 24:return fn(f.Identifier_or_string_literal_expected);case 25:return fn(f.Identifier_expected);case 26:return N.fail("ParsingContext.Count used as a context");default:N.assertNever($)}}function Bu($,xe,Ke){const xt=rn;rn|=1<<$;const Nt=[],Jt=L();let zr=-1;for(;;){if(Es($,!1)){const Fi=t.getTokenFullStart(),Ni=Zl($,xe);if(!Ni){rn=xt;return}if(Nt.push(Ni),zr=t.getTokenStart(),ho(28))continue;if(zr=-1,Xn($))break;Nn(28,Jg($)),Ke&&J()===27&&!t.hasPrecedingLineBreak()&&ke(),Fi===t.getTokenFullStart()&&ke();continue}if(Xn($)||Dh($))break}return rn=xt,wo(Nt,Jt,void 0,zr>=0)}function Jg($){return $===6?f.An_enum_member_name_must_be_followed_by_a_or:void 0}function Ap(){const $=wo([],L());return $.isMissingList=!0,$}function dg($){return!!$.isMissingList}function Ud($,xe,Ke,xt){if(Nn(Ke)){const Nt=Bu($,xe);return Nn(xt),Nt}return Ap()}function te($,xe){const Ke=L();let xt=$?xc(xe):Ms(xe);for(;ho(25)&&J()!==30;)xt=nn(m.createQualifiedName(xt,Ft($,!1,!0)),Ke);return xt}function lt($,xe){return nn(m.createQualifiedName($,xe),$.pos)}function Ft($,xe,Ke){if(t.hasPrecedingLineBreak()&&od(J())&&Mi(Hp))return js(80,!0,f.Identifier_expected);if(J()===81){const xt=vr();return xe?xt:js(80,!0,f.Identifier_expected)}return $?Ke?xc():ue():Ms()}function Vt($){const xe=L(),Ke=[];let xt;do xt=ii($),Ke.push(xt);while(xt.literal.kind===17);return wo(Ke,xe)}function W($){const xe=L();return nn(m.createTemplateExpression(oo($),Vt($)),xe)}function Te(){const $=L();return nn(m.createTemplateLiteralType(oo(!1),st()),$)}function st(){const $=L(),xe=[];let Ke;do Ke=qt(),xe.push(Ke);while(Ke.literal.kind===17);return wo(xe,$)}function qt(){const $=L();return nn(m.createTemplateLiteralTypeSpan(bc(),rr(!1)),$)}function rr($){return J()===20?(Gn($),wa()):Ts(18,f._0_expected,pa(20))}function ii($){const xe=L();return nn(m.createTemplateSpan(Tn(qe),rr($)),xe)}function Yr(){return Ol(J())}function oo($){!$&&t.getTokenFlags()&26656&&Gn(!1);const xe=Ol(J());return N.assert(xe.kind===16,"Template head has wrong token kind"),xe}function wa(){const $=Ol(J());return N.assert($.kind===17||$.kind===18,"Template fragment has wrong token kind"),$}function Oa($){const xe=$===15||$===18,Ke=t.getTokenText();return Ke.substring(1,Ke.length-(t.isUnterminated()?0:xe?1:2))}function Ol($){const xe=L(),Ke=Ny($)?m.createTemplateLiteralLikeNode($,t.getTokenValue(),Oa($),t.getTokenFlags()&7176):$===9?T(t.getTokenValue(),t.getNumericLiteralFlags()):$===11?A(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):dC($)?R($,t.getTokenValue()):N.fail();return t.hasExtendedUnicodeEscape()&&(Ke.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(Ke.isUnterminated=!0),ke(),nn(Ke,xe)}function pu(){return te(!0,f.Type_expected)}function Rc(){if(!t.hasPrecedingLineBreak()&&qn()===30)return Ud(20,bc,30,32)}function Ip(){const $=L();return nn(m.createTypeReferenceNode(pu(),Rc()),$)}function Hd($){switch($.kind){case 183:return Fl($.typeName);case 184:case 185:{const{parameters:xe,type:Ke}=$;return dg(xe)||Hd(Ke)}case 196:return Hd($.type);default:return!1}}function ab($){return ke(),nn(m.createTypePredicateNode(void 0,$,bc()),$.pos)}function us(){const $=L();return ke(),nn(m.createThisTypeNode(),$)}function Pm(){const $=L();return ke(),nn(m.createJSDocAllType(),$)}function Mm(){const $=L();return ke(),nn(m.createJSDocNonNullableType(lb(),!1),$)}function Ui(){const $=L();return ke(),J()===28||J()===20||J()===22||J()===32||J()===64||J()===52?nn(m.createJSDocUnknownType(),$):nn(m.createJSDocNullableType(bc(),!1),$)}function Kg(){const $=L(),xe=me();if(Ri(Ff)){const Ke=vn(36),xt=jt(59,!1);return Ar(nn(m.createJSDocFunctionType(Ke,xt),$),xe)}return nn(m.createTypeReferenceNode(xc(),void 0),$)}function ey(){const $=L();let xe;return(J()===110||J()===105)&&(xe=xc(),Nn(59)),nn(m.createParameterDeclaration(void 0,void 0,xe,void 0,Lm(),void 0),$)}function Lm(){t.setInJSDocType(!0);const $=L();if(ho(144)){const xt=m.createJSDocNamepathType(void 0);e:for(;;)switch(J()){case 20:case 1:case 28:case 5:break e;default:Tt()}return t.setInJSDocType(!1),nn(xt,$)}const xe=ho(26);let Ke=cb();return t.setInJSDocType(!1),xe&&(Ke=nn(m.createJSDocVariadicType(Ke),$)),J()===64?(ke(),nn(m.createJSDocOptionalType(Ke),$)):Ke}function b1(){const $=L();Nn(114);const xe=te(!0),Ke=t.hasPrecedingLineBreak()?void 0:Y0();return nn(m.createTypeQueryNode(xe,Ke),$)}function E1(){const $=L(),xe=Lh(!1,!0),Ke=Ms();let xt,Nt;ho(96)&&(pg()||!r_()?xt=bc():Nt=db());const Jt=ho(64)?bc():void 0,zr=m.createTypeParameterDeclaration(xe,Ke,xt,Jt);return zr.expression=Nt,nn(zr,$)}function pf(){if(J()===30)return Ud(19,E1,30,32)}function j_($){return J()===26||rs()||Pv(J())||J()===60||pg(!$)}function ff($){const xe=Ir(f.Private_identifiers_cannot_be_used_as_parameters);return yL(xe)===0&&!bt($)&&Pv(J())&&ke(),xe}function Xg(){return Jr()||J()===23||J()===19}function ze($){return Mt($)}function Ze($){return Mt($,!1)}function Mt($,xe=!0){const Ke=L(),xt=me(),Nt=$?le(()=>Lh(!0)):Fe(()=>Lh(!0));if(J()===110){const Ni=m.createParameterDeclaration(Nt,void 0,du(!0),void 0,ny(),void 0),hi=Kc(Nt);return hi&&Oe(hi,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ar(nn(Ni,Ke),xt)}const Jt=gn;gn=!1;const zr=da(26);if(!xe&&!Xg())return;const Fi=Ar(nn(m.createParameterDeclaration(Nt,zr,ff(Nt),da(58),ny(),i_()),Ke),xt);return gn=Jt,Fi}function jt($,xe){if(bn($,xe))return He(cb)}function bn($,xe){return $===39?(Nn($),!0):ho(59)?!0:xe&&J()===39?(fn(f._0_expected,pa(59)),ke(),!0):!1}function Qn($,xe){const Ke=Rt(),xt=yn();yi(!!($&1)),Io(!!($&2));const Nt=$&32?Bu(17,ey):Bu(16,()=>xe?ze(xt):Ze(xt));return yi(Ke),Io(xt),Nt}function vn($){if(!Nn(21))return Ap();const xe=Qn($,!0);return Nn(22),xe}function Zn(){ho(28)||cl()}function _i($){const xe=L(),Ke=me();$===180&&Nn(105);const xt=pf(),Nt=vn(4),Jt=jt(59,!0);Zn();const zr=$===179?m.createCallSignature(xt,Nt,Jt):m.createConstructSignature(xt,Nt,Jt);return Ar(nn(zr,xe),Ke)}function cr(){return J()===23&&Mi(ni)}function ni(){if(ke(),J()===26||J()===24)return!0;if(Pv(J())){if(ke(),xo())return!0}else if(xo())ke();else return!1;return J()===59||J()===28?!0:J()!==58?!1:(ke(),J()===59||J()===28||J()===24)}function fr($,xe,Ke){const xt=Ud(16,()=>ze(!1),23,24),Nt=ny();Zn();const Jt=m.createIndexSignature(Ke,xt,Nt);return Ar(nn(Jt,$),xe)}function Qo($,xe,Ke){const xt=un(),Nt=da(58);let Jt;if(J()===21||J()===30){const zr=pf(),Fi=vn(4),Ni=jt(59,!0);Jt=m.createMethodSignature(Ke,xt,Nt,zr,Fi,Ni)}else{const zr=ny();Jt=m.createPropertySignature(Ke,xt,Nt,zr),J()===64&&(Jt.initializer=i_())}return Zn(),Ar(nn(Jt,$),xe)}function Ja(){if(J()===21||J()===30||J()===139||J()===153)return!0;let $=!1;for(;Pv(J());)$=!0,ke();return J()===23?!0:(Z()&&($=!0,ke()),$?J()===21||J()===30||J()===58||J()===59||J()===28||lc():!1)}function Zu(){if(J()===21||J()===30)return _i(179);if(J()===105&&Mi(fu))return _i(180);const $=L(),xe=me(),Ke=Lh(!1);return jr(139)?rv($,xe,Ke,177,4):jr(153)?rv($,xe,Ke,178,4):cr()?fr($,xe,Ke):Qo($,xe,Ke)}function fu(){return ke(),J()===21||J()===30}function Yg(){return ke()===25}function O0(){switch(ke()){case 21:case 30:case 25:return!0}return!1}function zI(){const $=L();return nn(m.createTypeLiteralNode(W0()),$)}function W0(){let $;return Nn(19)?($=na(4,Zu),Nn(20)):$=Ap(),$}function qD(){return ke(),J()===40||J()===41?ke()===148:(J()===148&&ke(),J()===23&&ip()&&ke()===103)}function JD(){const $=L(),xe=xc();Nn(103);const Ke=bc();return nn(m.createTypeParameterDeclaration(void 0,xe,Ke,void 0),$)}function KD(){const $=L();Nn(19);let xe;(J()===148||J()===40||J()===41)&&(xe=ml(),xe.kind!==148&&Nn(148)),Nn(23);const Ke=JD(),xt=ho(130)?bc():void 0;Nn(24);let Nt;(J()===58||J()===40||J()===41)&&(Nt=ml(),Nt.kind!==58&&Nn(58));const Jt=ny();cl();const zr=na(4,Zu);return Nn(20),nn(m.createMappedTypeNode(xe,Ke,xt,Nt,Jt,zr),$)}function uT(){const $=L();if(ho(26))return nn(m.createRestTypeNode(bc()),$);const xe=bc();if(HR(xe)&&xe.pos===xe.type.pos){const Ke=m.createOptionalTypeNode(xe.type);return dt(Ke,xe),Ke.flags=xe.flags,Ke}return xe}function S1(){return ke()===59||J()===58&&ke()===59}function BI(){return J()===26?od(ke())&&S1():od(J())&&S1()}function XD(){if(Mi(BI)){const $=L(),xe=me(),Ke=da(26),xt=xc(),Nt=da(58);Nn(59);const Jt=uT(),zr=m.createNamedTupleMember(Ke,xt,Nt,Jt);return Ar(nn(zr,$),xe)}return uT()}function GI(){const $=L();return nn(m.createTupleTypeNode(Ud(21,XD,23,24)),$)}function VI(){const $=L();Nn(21);const xe=bc();return Nn(22),nn(m.createParenthesizedType(xe),$)}function jI(){let $;if(J()===128){const xe=L();ke();const Ke=nn(O(128),xe);$=wo([Ke],xe)}return $}function UI(){const $=L(),xe=me(),Ke=jI(),xt=ho(105);N.assert(!Ke||xt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const Nt=pf(),Jt=vn(4),zr=jt(39,!1),Fi=xt?m.createConstructorTypeNode(Ke,Nt,Jt,zr):m.createFunctionTypeNode(Nt,Jt,zr);return Ar(nn(Fi,$),xe)}function dT(){const $=ml();return J()===25?void 0:$}function HI($){const xe=L();$&&ke();let Ke=J()===112||J()===97||J()===106?ml():Ol(J());return $&&(Ke=nn(m.createPrefixUnaryExpression(41,Ke),xe)),nn(m.createLiteralTypeNode(Ke),xe)}function T1(){return ke(),J()===102}function A1(){De|=4194304;const $=L(),xe=ho(114);Nn(102),Nn(21);const Ke=bc();let xt;if(ho(28)){const zr=t.getTokenStart();Nn(19);const Fi=J();if(Fi===118||Fi===132?ke():fn(f._0_expected,pa(118)),Nn(59),xt=Eb(Fi,!0),!Nn(20)){const Ni=el(je);Ni&&Ni.code===f._0_expected.code&&Ma(Ni,CR(Ee,Me,zr,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}Nn(22);const Nt=ho(25)?pu():void 0,Jt=Rc();return nn(m.createImportTypeNode(Ke,xt,Nt,Jt,xe),$)}function sb(){return ke(),J()===9||J()===10}function lb(){switch(J()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return Ri(dT)||Ip();case 67:t.reScanAsteriskEqualsToken();case 42:return Pm();case 61:t.reScanQuestionToken();case 58:return Ui();case 100:return Kg();case 54:return Mm();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return HI();case 41:return Mi(sb)?HI(!0):Ip();case 116:return ml();case 110:{const $=us();return J()===142&&!t.hasPrecedingLineBreak()?ab($):$}case 114:return Mi(T1)?A1():b1();case 19:return Mi(qD)?KD():zI();case 23:return GI();case 21:return VI();case 102:return A1();case 131:return Mi(Hp)?JI():Ip();case 16:return Te();default:return Ip()}}function pg($){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!$;case 41:return!$&&Mi(sb);case 21:return!$&&Mi(F0);default:return xo()}}function F0(){return ke(),J()===22||j_(!1)||pg()}function ts(){const $=L();let xe=lb();for(;!t.hasPrecedingLineBreak();)switch(J()){case 54:ke(),xe=nn(m.createJSDocNonNullableType(xe,!0),$);break;case 58:if(Mi(Ot))return xe;ke(),xe=nn(m.createJSDocNullableType(xe,!0),$);break;case 23:if(Nn(23),pg()){const Ke=bc();Nn(24),xe=nn(m.createIndexedAccessTypeNode(xe,Ke),$)}else Nn(24),xe=nn(m.createArrayTypeNode(xe),$);break;default:return xe}return xe}function pT($){const xe=L();return Nn($),nn(m.createTypeOperatorNode($,Nh()),xe)}function YD(){if(ho(96)){const $=mt(bc);if(_t()||J()!==58)return $}}function z0(){const $=L(),xe=Ms(),Ke=Ri(YD),xt=m.createTypeParameterDeclaration(void 0,xe,Ke);return nn(xt,$)}function $g(){const $=L();return Nn(140),nn(m.createInferTypeNode(z0()),$)}function Nh(){const $=J();switch($){case 143:case 158:case 148:return pT($);case 140:return $g()}return He(ts)}function wf($){if(fT()){const xe=UI();let Ke;return bh(xe)?Ke=$?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:Ke=$?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(xe,Ke),xe}}function qd($,xe,Ke){const xt=L(),Nt=$===52,Jt=ho($);let zr=Jt&&wf(Nt)||xe();if(J()===$||Jt){const Fi=[zr];for(;ho($);)Fi.push(wf(Nt)||xe());zr=nn(Ke(wo(Fi,xt)),xt)}return zr}function xp(){return qd(51,Nh,m.createIntersectionTypeNode)}function op(){return qd(52,xp,m.createUnionTypeNode)}function ty(){return ke(),J()===105}function fT(){return J()===30||J()===21&&Mi(qI)?!0:J()===105||J()===128&&Mi(ty)}function $D(){if(Pv(J())&&Lh(!1),xo()||J()===110)return ke(),!0;if(J()===23||J()===19){const $=je.length;return Ir(),$===je.length}return!1}function qI(){return ke(),!!(J()===22||J()===26||$D()&&(J()===59||J()===28||J()===58||J()===64||J()===22&&(ke(),J()===39)))}function cb(){const $=L(),xe=xo()&&Ri(B0),Ke=bc();return xe?nn(m.createTypePredicateNode(void 0,xe,Ke),$):Ke}function B0(){const $=Ms();if(J()===142&&!t.hasPrecedingLineBreak())return ke(),$}function JI(){const $=L(),xe=Ts(131),Ke=J()===110?us():Ms(),xt=ho(142)?bc():void 0;return nn(m.createTypePredicateNode(xe,Ke,xt),$)}function bc(){if($n&81920)return fa(81920,bc);if(fT())return UI();const $=L(),xe=op();if(!_t()&&!t.hasPrecedingLineBreak()&&ho(96)){const Ke=mt(bc);Nn(58);const xt=He(bc);Nn(59);const Nt=He(bc);return nn(m.createConditionalTypeNode(xe,Ke,xt,Nt),$)}return xe}function ny(){return ho(59)?bc():void 0}function KI(){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(O0);default:return xo()}}function r_(){if(KI())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 a_()?!0:xo()}}function mT(){return J()!==19&&J()!==100&&J()!==86&&J()!==60&&r_()}function qe(){const $=Gt();$&&Qi(!1);const xe=L();let Ke=mu(!0),xt;for(;xt=da(28);)Ke=I1(Ke,xt,mu(!0),xe);return $&&Qi(!0),Ke}function i_(){return ho(64)?mu(!0):void 0}function mu($){if(G0())return ub();const xe=iy($)||_T($);if(xe)return xe;const Ke=L(),xt=me(),Nt=cm(0);return Nt.kind===80&&J()===39?ry(Ke,Nt,$,xt,void 0):Zd(Nt)&&Ov(en())?I1(Nt,ml(),mu($),Ke):lm(Nt,Ke,$)}function G0(){return J()===127?Rt()?!0:Mi(Hs):!1}function XI(){return ke(),!t.hasPrecedingLineBreak()&&xo()}function ub(){const $=L();return ke(),!t.hasPrecedingLineBreak()&&(J()===42||r_())?nn(m.createYieldExpression(da(42),mu(!0)),$):nn(m.createYieldExpression(void 0,void 0),$)}function ry($,xe,Ke,xt,Nt){N.assert(J()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const Jt=m.createParameterDeclaration(void 0,void 0,xe,void 0,void 0,void 0);nn(Jt,xe.pos);const zr=wo([Jt],Jt.pos,Jt.end),Fi=Ts(39),Ni=gT(!!Nt,Ke),hi=m.createArrowFunction(Nt,void 0,zr,void 0,Fi,Ni);return Ar(nn(hi,$),xt)}function iy($){const xe=DM();if(xe!==0)return xe===1?V0(!0,!0):Ri(()=>o_($))}function DM(){return J()===21||J()===30||J()===134?Mi(Ka):J()===39?1:0}function Ka(){if(J()===134&&(ke(),t.hasPrecedingLineBreak()||J()!==21&&J()!==30))return 0;const $=J(),xe=ke();if($===21){if(xe===22)switch(ke()){case 39:case 59:case 19:return 1;default:return 0}if(xe===23||xe===19)return 2;if(xe===26)return 1;if(Pv(xe)&&xe!==134&&Mi(ip))return ke()===130?0:1;if(!xo()&&xe!==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 N.assert($===30),!xo()&&J()!==87?0:Se===1?Mi(()=>{ho(87);const xt=ke();if(xt===96)switch(ke()){case 64:case 32:case 44:return!1;default:return!0}else if(xt===28||xt===64)return!0;return!1})?1:0:2}function o_($){const xe=t.getTokenStart();if(Mn!=null&&Mn.has(xe))return;const Ke=V0(!1,$);return Ke||(Mn||(Mn=new Set)).add(xe),Ke}function _T($){if(J()===134&&Mi(hT)===1){const xe=L(),Ke=me(),xt=gf(),Nt=cm(0);return ry(xe,Nt,$,Ke,xt)}}function hT(){if(J()===134){if(ke(),t.hasPrecedingLineBreak()||J()===39)return 0;const $=cm(0);if(!t.hasPrecedingLineBreak()&&$.kind===80&&J()===39)return 1}return 0}function V0($,xe){const Ke=L(),xt=me(),Nt=gf(),Jt=bt(Nt,pP)?2:0,zr=pf();let Fi;if(Nn(21)){if($)Fi=Qn(Jt,$);else{const bg=Qn(Jt,$);if(!bg)return;Fi=bg}if(!Nn(22)&&!$)return}else{if(!$)return;Fi=Ap()}const Ni=J()===59,hi=jt(59,!1);if(hi&&!$&&Hd(hi))return;let Xi=hi;for(;(Xi==null?void 0:Xi.kind)===196;)Xi=Xi.type;const ds=Xi&&qR(Xi);if(!$&&J()!==39&&(ds||J()!==19))return;const Rs=J(),es=Ts(39),zf=Rs===39||Rs===19?gT(bt(Nt,pP),xe):Ms();if(!xe&&Ni&&J()!==59)return;const X_=m.createArrowFunction(Nt,zr,Fi,hi,es,zf);return Ar(nn(X_,Ke),xt)}function gT($,xe){if(J()===19)return _b($?2:0);if(J()!==27&&J()!==100&&J()!==86&&P1()&&!mT())return _b(16|($?2:0));const Ke=gn;gn=!1;const xt=$?le(()=>mu(xe)):Fe(()=>mu(xe));return gn=Ke,xt}function lm($,xe,Ke){const xt=da(58);if(!xt)return $;let Nt;return nn(m.createConditionalExpression($,xt,fa(r,()=>mu(!1)),Nt=Ts(59),Kf(Nt)?mu(Ke):js(80,!1,f._0_expected,pa(59))),xe)}function cm($){const xe=L(),Ke=db();return YI($,Ke,xe)}function Qg($){return $===103||$===165}function YI($,xe,Ke){for(;;){en();const xt=rk(J());if(!(J()===43?xt>=$:xt>$)||J()===103&&Ye())break;if(J()===130||J()===152){if(t.hasPrecedingLineBreak())break;{const Jt=J();ke(),xe=Jt===152?QD(xe,bc()):Ki(xe,bc())}}else xe=I1(xe,ml(),cm(xt),Ke)}return xe}function a_(){return Ye()&&J()===103?!1:rk(J())>0}function QD($,xe){return nn(m.createSatisfiesExpression($,xe),$.pos)}function I1($,xe,Ke,xt){return nn(m.createBinaryExpression($,xe,Ke),xt)}function Ki($,xe){return nn(m.createAsExpression($,xe),$.pos)}function Zr(){const $=L();return nn(m.createPrefixUnaryExpression(J(),Be(yl)),$)}function Ch(){const $=L();return nn(m.createDeleteExpression(Be(yl)),$)}function Jd(){const $=L();return nn(m.createTypeOfExpression(Be(yl)),$)}function NM(){const $=L();return nn(m.createVoidExpression(Be(yl)),$)}function Zg(){return J()===135?yn()?!0:Mi(Hs):!1}function CM(){const $=L();return nn(m.createAwaitExpression(Be(yl)),$)}function db(){if(jp()){const Ke=L(),xt=fg();return J()===43?YI(rk(J()),xt,Ke):xt}const $=J(),xe=yl();if(J()===43){const Ke=Pa(Me,xe.pos),{end:xt}=xe;xe.kind===216?q(Ke,xt,f.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(N.assert(a3($)),q(Ke,xt,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,pa($)))}return xe}function yl(){switch(J()){case 40:case 41:case 55:case 54:return Zr();case 91:return Ch();case 114:return Jd();case 116:return NM();case 30:return Se===1?ev(!0,void 0,void 0,!0):wm();case 135:if(Zg())return CM();default:return fg()}}function jp(){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 fg(){if(J()===46||J()===47){const xe=L();return nn(m.createPrefixUnaryExpression(J(),Be(um)),xe)}else if(Se===1&&J()===30&&Mi(sm))return ev(!0);const $=um();if(N.assert(Zd($)),(J()===46||J()===47)&&!t.hasPrecedingLineBreak()){const xe=J();return ke(),nn(m.createPostfixUnaryExpression($,xe),$.pos)}return $}function um(){const $=L();let xe;return J()===102?Mi(fu)?(De|=4194304,xe=ml()):Mi(Yg)?(ke(),ke(),xe=nn(m.createMetaProperty(102,xc()),$),De|=8388608):xe=pb():xe=J()===108?km():pb(),ay($,xe)}function pb(){const $=L(),xe=j0();return nu($,xe,!0)}function km(){const $=L();let xe=ml();if(J()===30){const Ke=L(),xt=Ri(ur);xt!==void 0&&(q(Ke,L(),f.super_may_not_use_type_arguments),to()||(xe=m.createExpressionWithTypeArguments(xe,xt)))}return J()===21||J()===25||J()===23?xe:(Ts(25,f.super_must_be_followed_by_an_argument_list_or_member_access),nn(Q(xe,Ft(!0,!0,!0)),$))}function ev($,xe,Ke,xt=!1){const Nt=L(),Jt=_g($);let zr;if(Jt.kind===286){let Fi=mg(Jt),Ni;const hi=Fi[Fi.length-1];if((hi==null?void 0:hi.kind)===284&&!T0(hi.openingElement.tagName,hi.closingElement.tagName)&&T0(Jt.tagName,hi.closingElement.tagName)){const Xi=hi.children.end,ds=nn(m.createJsxElement(hi.openingElement,hi.children,nn(m.createJsxClosingElement(nn(M(""),Xi,Xi)),Xi,Xi)),hi.openingElement.pos,Xi);Fi=wo([...Fi.slice(0,Fi.length-1),ds],Fi.pos,Xi),Ni=hi.closingElement}else Ni=R1(Jt,$),T0(Jt.tagName,Ni.tagName)||(Ke&&k_(Ke)&&T0(Ni.tagName,Ke.tagName)?Oe(Jt.tagName,f.JSX_element_0_has_no_corresponding_closing_tag,gC(Me,Jt.tagName)):Oe(Ni.tagName,f.Expected_corresponding_JSX_closing_tag_for_0,gC(Me,Jt.tagName)));zr=nn(m.createJsxElement(Jt,Fi,Ni),Nt)}else Jt.kind===289?zr=nn(m.createJsxFragment(Jt,mg(Jt),bT($)),Nt):(N.assert(Jt.kind===285),zr=Jt);if(!xt&&$&&J()===30){const Fi=typeof xe>"u"?zr.pos:xe,Ni=Ri(()=>ev(!0,Fi));if(Ni){const hi=js(28,!1);return ZC(hi,Ni.pos,0),q(Pa(Me,Fi),Ni.end,f.JSX_expressions_must_have_one_parent_element),nn(m.createBinaryExpression(zr,hi,Ni),Nt)}}return zr}function x1(){const $=L(),xe=m.createJsxText(t.getTokenValue(),vt===13);return vt=t.scanJsxToken(),nn(xe,$)}function vT($,xe){switch(xe){case 1:if(lI($))Oe($,f.JSX_fragment_has_no_corresponding_closing_tag);else{const Ke=$.tagName,xt=Math.min(Pa(Me,Ke.pos),Ke.end);q(xt,Ke.end,f.JSX_element_0_has_no_corresponding_closing_tag,gC(Me,$.tagName))}return;case 31:case 7:return;case 12:case 13:return x1();case 19:return ZD(!1);case 30:return ev(!1,void 0,$);default:return N.assertNever(xe)}}function mg($){const xe=[],Ke=L(),xt=rn;for(rn|=16384;;){const Nt=vT($,vt=t.reScanJsxToken());if(!Nt||(xe.push(Nt),k_($)&&(Nt==null?void 0:Nt.kind)===284&&!T0(Nt.openingElement.tagName,Nt.closingElement.tagName)&&T0($.tagName,Nt.closingElement.tagName)))break}return rn=xt,wo(xe,Ke)}function $I(){const $=L();return nn(m.createJsxAttributes(na(13,eN)),$)}function _g($){const xe=L();if(Nn(30),J()===32)return ir(),nn(m.createJsxOpeningFragment(),xe);const Ke=U_(),xt=$n&524288?void 0:Y0(),Nt=$I();let Jt;return J()===32?(ir(),Jt=m.createJsxOpeningElement(Ke,xt,Nt)):(Nn(44),Nn(32,void 0,!1)&&($?ke():ir()),Jt=m.createJsxSelfClosingElement(Ke,xt,Nt)),nn(Jt,xe)}function U_(){const $=L(),xe=oy();if(Qm(xe))return xe;let Ke=xe;for(;ho(25);)Ke=nn(Q(Ke,Ft(!0,!1,!1)),$);return Ke}function oy(){const $=L();xi();const xe=J()===110,Ke=ue();return ho(59)?(xi(),nn(m.createJsxNamespacedName(Ke,ue()),$)):xe?nn(m.createToken(110),$):Ke}function ZD($){const xe=L();if(!Nn(19))return;let Ke,xt;return J()!==20&&($||(Ke=da(26)),xt=qe()),$?Nn(20):Nn(20,void 0,!1)&&ir(),nn(m.createJsxExpression(Ke,xt),xe)}function eN(){if(J()===19)return Qs();const $=L();return nn(m.createJsxAttribute(yT(),tN()),$)}function tN(){if(J()===64){if(Vr()===11)return Yr();if(J()===19)return ZD(!0);if(J()===30)return ev(!0);fn(f.or_JSX_element_expected)}}function yT(){const $=L();xi();const xe=ue();return ho(59)?(xi(),nn(m.createJsxNamespacedName(xe,ue()),$)):xe}function Qs(){const $=L();Nn(19),Nn(26);const xe=qe();return Nn(20),nn(m.createJsxSpreadAttribute(xe),$)}function R1($,xe){const Ke=L();Nn(31);const xt=U_();return Nn(32,void 0,!1)&&(xe||!T0($.tagName,xt)?ke():ir()),nn(m.createJsxClosingElement(xt),Ke)}function bT($){const xe=L();return Nn(31),Nn(32,f.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&($?ke():ir()),nn(m.createJsxJsxClosingFragment(),xe)}function wm(){N.assert(Se!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const $=L();Nn(30);const xe=bc();Nn(32);const Ke=yl();return nn(m.createTypeAssertion(xe,Ke),$)}function fb(){return ke(),od(J())||J()===23||to()}function nN(){return J()===29&&Mi(fb)}function ET($){if($.flags&64)return!0;if(oI($)){let xe=$.expression;for(;oI(xe)&&!(xe.flags&64);)xe=xe.expression;if(xe.flags&64){for(;oI($);)$.flags|=64,$=$.expression;return!0}}return!1}function PM($,xe,Ke){const xt=Ft(!0,!0,!0),Nt=Ke||ET(xe),Jt=Nt?V(xe,Ke,xt):Q(xe,xt);if(Nt&&qi(Jt.name)&&Oe(Jt.name,f.An_optional_chain_cannot_contain_private_identifiers),Vv(xe)&&xe.typeArguments){const zr=xe.typeArguments.pos-1,Fi=Pa(Me,xe.typeArguments.end)+1;q(zr,Fi,f.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return nn(Jt,$)}function hr($,xe,Ke){let xt;if(J()===24)xt=js(80,!0,f.An_element_access_expression_should_take_an_argument);else{const Jt=Tn(qe);ef(Jt)&&(Jt.text=tu(Jt.text)),xt=Jt}Nn(24);const Nt=Ke||ET(xe)?G(xe,Ke,xt):se(xe,xt);return nn(Nt,$)}function nu($,xe,Ke){for(;;){let xt,Nt=!1;if(Ke&&nN()?(xt=Ts(29),Nt=od(J())):Nt=ho(25),Nt){xe=PM($,xe,xt);continue}if((xt||!Gt())&&ho(23)){xe=hr($,xe,xt);continue}if(to()){xe=!xt&&xe.kind===233?mf($,xe.expression,xt,xe.typeArguments):mf($,xe,xt,void 0);continue}if(!xt){if(J()===54&&!t.hasPrecedingLineBreak()){ke(),xe=nn(m.createNonNullExpression(xe),$);continue}const Jt=Ri(ur);if(Jt){xe=nn(m.createExpressionWithTypeArguments(xe,Jt),$);continue}}return xe}}function to(){return J()===15||J()===16}function mf($,xe,Ke,xt){const Nt=m.createTaggedTemplateExpression(xe,xt,J()===15?(Gn(!0),Yr()):W(!0));return(Ke||xe.flags&64)&&(Nt.flags|=64),Nt.questionDotToken=Ke,nn(Nt,$)}function ay($,xe){for(;;){xe=nu($,xe,!0);let Ke;const xt=da(29);if(xt&&(Ke=Ri(ur),to())){xe=mf($,xe,xt,Ke);continue}if(Ke||J()===21){!xt&&xe.kind===233&&(Ke=xe.typeArguments,xe=xe.expression);const Nt=H_(),Jt=xt||ET(xe)?he(xe,xt,Ke,Nt):ne(xe,Ke,Nt);xe=nn(Jt,$);continue}if(xt){const Nt=js(80,!1,f.Identifier_expected);xe=nn(V(xe,xt,Nt),$)}break}return xe}function H_(){Nn(21);const $=Bu(11,D1);return Nn(22),$}function ur(){if($n&524288||qn()!==30)return;ke();const $=Bu(20,bc);if(en()===32)return ke(),$&&ST()?$:void 0}function ST(){switch(J()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||a_()||!r_()}function j0(){switch(J()){case 15:t.getTokenFlags()&26656&&Gn(!1);case 9:case 10:case 11:return Yr();case 110:case 108:case 106:case 112:case 97:return ml();case 21:return qc();case 23:return N1();case 19:return tv();case 134:if(!Mi(DT))break;return TT();case 60:return X0();case 86:return ix();case 100:return TT();case 105:return U0();case 44:case 69:if(En()===14)return Yr();break;case 16:return W(!1);case 81:return vr()}return Ms(f.Expression_expected)}function qc(){const $=L(),xe=me();Nn(21);const Ke=Tn(qe);return Nn(22),Ar(nn(Y(Ke),$),xe)}function Ph(){const $=L();Nn(26);const xe=mu(!0);return nn(m.createSpreadElement(xe),$)}function Om(){return J()===26?Ph():J()===28?nn(m.createOmittedExpression(),L()):mu(!0)}function D1(){return fa(r,Om)}function N1(){const $=L(),xe=t.getTokenStart(),Ke=Nn(23),xt=t.hasPrecedingLineBreak(),Nt=Bu(15,Om);return cu(23,24,Ke,xe),nn(U(Nt,xt),$)}function mb(){const $=L(),xe=me();if(da(26)){const Xi=mu(!0);return Ar(nn(m.createSpreadAssignment(Xi),$),xe)}const Ke=Lh(!0);if(jr(139))return rv($,xe,Ke,177,0);if(jr(153))return rv($,xe,Ke,178,0);const xt=da(42),Nt=xo(),Jt=un(),zr=da(58),Fi=da(54);if(xt||J()===21||J()===30)return s_($,xe,Ke,xt,Jt,zr,Fi);let Ni;if(Nt&&J()!==59){const Xi=da(64),ds=Xi?Tn(()=>mu(!0)):void 0;Ni=m.createShorthandPropertyAssignment(Jt,ds),Ni.equalsToken=Xi}else{Nn(59);const Xi=Tn(()=>mu(!0));Ni=m.createPropertyAssignment(Jt,Xi)}return Ni.modifiers=Ke,Ni.questionToken=zr,Ni.exclamationToken=Fi,Ar(nn(Ni,$),xe)}function tv(){const $=L(),xe=t.getTokenStart(),Ke=Nn(19),xt=t.hasPrecedingLineBreak(),Nt=Bu(12,mb,!0);return cu(19,20,Ke,xe),nn(K(Nt,xt),$)}function TT(){const $=Gt();Qi(!1);const xe=L(),Ke=me(),xt=Lh(!1);Nn(100);const Nt=da(42),Jt=Nt?1:0,zr=bt(xt,pP)?2:0,Fi=Jt&&zr?pt(Wm):Jt?ft(Wm):zr?le(Wm):Wm(),Ni=pf(),hi=vn(Jt|zr),Xi=jt(59,!1),ds=_b(Jt|zr);Qi($);const Rs=m.createFunctionExpression(xt,Nt,Fi,Ni,hi,Xi,ds);return Ar(nn(Rs,xe),Ke)}function Wm(){return Jr()?Tp():void 0}function U0(){const $=L();if(Nn(105),ho(25)){const Jt=xc();return nn(m.createMetaProperty(105,Jt),$)}const xe=L();let Ke=nu(xe,j0(),!1),xt;Ke.kind===233&&(xt=Ke.typeArguments,Ke=Ke.expression),J()===29&&fn(f.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,gC(Me,Ke));const Nt=J()===21?H_():void 0;return nn(ye(Ke,xt,Nt),$)}function hg($,xe){const Ke=L(),xt=me(),Nt=t.getTokenStart(),Jt=Nn(19,xe);if(Jt||$){const zr=t.hasPrecedingLineBreak(),Fi=na(1,sp);cu(19,20,Jt,Nt);const Ni=Ar(nn(X(Fi,zr),Ke),xt);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()),Ni}else{const zr=Ap();return Ar(nn(X(zr,void 0),Ke),xt)}}function _b($,xe){const Ke=Rt();yi(!!($&1));const xt=yn();Io(!!($&2));const Nt=gn;gn=!1;const Jt=Gt();Jt&&Qi(!1);const zr=hg(!!($&16),xe);return Jt&&Qi(!0),gn=Nt,yi(Ke),Io(xt),zr}function QI(){const $=L(),xe=me();return Nn(27),Ar(nn(m.createEmptyStatement(),$),xe)}function H0(){const $=L(),xe=me();Nn(101);const Ke=t.getTokenStart(),xt=Nn(21),Nt=Tn(qe);cu(21,22,xt,Ke);const Jt=sp(),zr=ho(93)?sp():void 0;return Ar(nn(Ce(Nt,Jt,zr),$),xe)}function rN(){const $=L(),xe=me();Nn(92);const Ke=sp();Nn(117);const xt=t.getTokenStart(),Nt=Nn(21),Jt=Tn(qe);return cu(21,22,Nt,xt),ho(27),Ar(nn(m.createDoStatement(Ke,Jt),$),xe)}function C1(){const $=L(),xe=me();Nn(117);const Ke=t.getTokenStart(),xt=Nn(21),Nt=Tn(qe);cu(21,22,xt,Ke);const Jt=sp();return Ar(nn(de(Nt,Jt),$),xe)}function AT(){const $=L(),xe=me();Nn(99);const Ke=da(135);Nn(21);let xt;J()!==27&&(J()===115||J()===121||J()===87||J()===160&&Mi(nv)||J()===135&&Mi(Rp)?xt=M1(!0):xt=wn(qe));let Nt;if(Ke?Nn(165):ho(165)){const Jt=Tn(()=>mu(!0));Nn(22),Nt=ve(Ke,xt,Jt,sp())}else if(ho(103)){const Jt=Tn(qe);Nn(22),Nt=m.createForInStatement(xt,Jt,sp())}else{Nn(27);const Jt=J()!==27&&J()!==22?Tn(qe):void 0;Nn(27);const zr=J()!==22?Tn(qe):void 0;Nn(22),Nt=ie(xt,Jt,zr,sp())}return Ar(nn(Nt,$),xe)}function Up($){const xe=L(),Ke=me();Nn($===252?83:88);const xt=lc()?void 0:Ms();cl();const Nt=$===252?m.createBreakStatement(xt):m.createContinueStatement(xt);return Ar(nn(Nt,xe),Ke)}function IT(){const $=L(),xe=me();Nn(107);const Ke=lc()?void 0:Tn(qe);return cl(),Ar(nn(m.createReturnStatement(Ke),$),xe)}function Vl(){const $=L(),xe=me();Nn(118);const Ke=t.getTokenStart(),xt=Nn(21),Nt=Tn(qe);cu(21,22,xt,Ke);const Jt=ka(67108864,sp);return Ar(nn(m.createWithStatement(Nt,Jt),$),xe)}function Oc(){const $=L(),xe=me();Nn(84);const Ke=Tn(qe);Nn(59);const xt=na(3,sp);return Ar(nn(m.createCaseClause(Ke,xt),$),xe)}function xT(){const $=L();Nn(90),Nn(59);const xe=na(3,sp);return nn(m.createDefaultClause(xe),$)}function Au(){return J()===84?Oc():xT()}function ap(){const $=L();Nn(19);const xe=na(2,Au);return Nn(20),nn(m.createCaseBlock(xe),$)}function q0(){const $=L(),xe=me();Nn(109),Nn(21);const Ke=Tn(qe);Nn(22);const xt=ap();return Ar(nn(m.createSwitchStatement(Ke,xt),$),xe)}function Of(){const $=L(),xe=me();Nn(111);let Ke=t.hasPrecedingLineBreak()?void 0:Tn(qe);return Ke===void 0&&(tn++,Ke=nn(M(""),L())),Nl()||Ql(Ke),Ar(nn(m.createThrowStatement(Ke),$),xe)}function hb(){const $=L(),xe=me();Nn(113);const Ke=hg(!1),xt=J()===85?gb():void 0;let Nt;return(!xt||J()===98)&&(Nn(98,f.catch_or_finally_expected),Nt=hg(!1)),Ar(nn(m.createTryStatement(Ke,xt,Nt),$),xe)}function gb(){const $=L();Nn(85);let xe;ho(21)?(xe=Cd(),Nn(22)):xe=void 0;const Ke=hg(!1);return nn(m.createCatchClause(xe,Ke),$)}function ru(){const $=L(),xe=me();return Nn(89),cl(),Ar(nn(m.createDebuggerStatement(),$),xe)}function ZI(){const $=L();let xe=me(),Ke;const xt=J()===21,Nt=Tn(qe);return Ve(Nt)&&ho(59)?Ke=m.createLabeledStatement(Nt,sp()):(Nl()||Ql(Nt),Ke=pe(Nt),xt&&(xe=!1)),Ar(nn(Ke,$),xe)}function Hp(){return ke(),od(J())&&!t.hasPrecedingLineBreak()}function RT(){return ke(),J()===86&&!t.hasPrecedingLineBreak()}function DT(){return ke(),J()===100&&!t.hasPrecedingLineBreak()}function Hs(){return ke(),(od(J())||J()===9||J()===10||J()===11)&&!t.hasPrecedingLineBreak()}function iN(){for(;;)switch(J()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return ex();case 135:return tx();case 120:case 156:return XI();case 144:case 145:return sN();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const $=J();if(ke(),t.hasPrecedingLineBreak())return!1;if($===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||od(J());case 95:let xe=ke();if(xe===156&&(xe=Mi(ke)),xe===64||xe===42||xe===19||xe===90||xe===130||xe===60)return!0;continue;case 126:ke();continue;default:return!1}}function J0(){return Mi(iN)}function P1(){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 J0()||Mi(O0);case 87:case 95:return J0();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 J0()||!Mi(Hp);default:return r_()}}function MM(){return ke(),Jr()||J()===19||J()===23}function hd(){return Mi(MM)}function nv(){return q_(!0)}function q_($){return ke(),$&&J()===165?!1:(Jr()||J()===19)&&!t.hasPrecedingLineBreak()}function ex(){return Mi(q_)}function Rp($){return ke()===160?q_($):!1}function tx(){return Mi(Rp)}function sp(){switch(J()){case 27:return QI();case 19:return hg(!1);case 115:return K0(L(),me(),void 0);case 121:if(hd())return K0(L(),me(),void 0);break;case 135:if(tx())return K0(L(),me(),void 0);break;case 160:if(ex())return K0(L(),me(),void 0);break;case 100:return L1(L(),me(),void 0);case 86:return LT(L(),me(),void 0);case 101:return H0();case 92:return rN();case 117:return C1();case 99:return AT();case 88:return Up(251);case 83:return Up(252);case 107:return IT();case 118:return Vl();case 109:return q0();case 111:return Of();case 113:case 85:case 98:return hb();case 89:return ru();case 60:return sy();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(J0())return sy();break}return ZI()}function nx($){return $.kind===138}function sy(){const $=L(),xe=me(),Ke=Lh(!0);if(bt(Ke,nx)){const Nt=NT($);if(Nt)return Nt;for(const Jt of Ke)Jt.flags|=33554432;return ka(33554432,()=>oN($,xe,Ke))}else return oN($,xe,Ke)}function NT($){return ka(33554432,()=>{const xe=yc(rn,$);if(xe)return ul(xe)})}function oN($,xe,Ke){switch(J()){case 115:case 121:case 87:case 160:case 135:return K0($,xe,Ke);case 100:return L1($,xe,Ke);case 86:return LT($,xe,Ke);case 120:return ht($,xe,Ke);case 156:return on($,xe,Ke);case 94:return wi($,xe,Ke);case 162:case 144:case 145:return ed($,xe,Ke);case 102:return Hn($,xe,Ke);case 95:switch(ke(),J()){case 90:case 64:return Oh($,xe,Ke);case 130:return kh($,xe,Ke);default:return LM($,xe,Ke)}default:if(Ke){const xt=js(282,!0,f.Declaration_expected);return QC(xt,$),xt.modifiers=Ke,xt}return}}function aN(){return ke()===11}function CT(){return ke(),J()===161||J()===64}function sN(){return ke(),!t.hasPrecedingLineBreak()&&(xo()||J()===11)}function vb($,xe){if(J()!==19){if($&4){Zn();return}if(lc()){cl();return}}return _b($,xe)}function Dp(){const $=L();if(J()===28)return nn(m.createOmittedExpression(),$);const xe=da(26),Ke=Ir(),xt=i_();return nn(m.createBindingElement(xe,void 0,Ke,xt),$)}function Mh(){const $=L(),xe=da(26),Ke=Jr();let xt=un(),Nt;Ke&&J()!==59?(Nt=xt,xt=void 0):(Nn(59),Nt=Ir());const Jt=i_();return nn(m.createBindingElement(xe,xt,Nt,Jt),$)}function lN(){const $=L();Nn(19);const xe=Tn(()=>Bu(9,Mh));return Nn(20),nn(m.createObjectBindingPattern(xe),$)}function PT(){const $=L();Nn(23);const xe=Tn(()=>Bu(10,Dp));return Nn(24),nn(m.createArrayBindingPattern(xe),$)}function rs(){return J()===19||J()===23||J()===81||Jr()}function Ir($){return J()===23?PT():J()===19?lN():Tp($)}function _f(){return Cd(!0)}function Cd($){const xe=L(),Ke=me(),xt=Ir(f.Private_identifiers_are_not_allowed_in_variable_declarations);let Nt;$&&xt.kind===80&&J()===54&&!t.hasPrecedingLineBreak()&&(Nt=ml());const Jt=ny(),zr=Qg(J())?void 0:i_(),Fi=Le(xt,Nt,Jt,zr);return Ar(nn(Fi,xe),Ke)}function M1($){const xe=L();let Ke=0;switch(J()){case 115:break;case 121:Ke|=1;break;case 87:Ke|=2;break;case 160:Ke|=4;break;case 135:N.assert(tx()),Ke|=6,ke();break;default:N.fail()}ke();let xt;if(J()===165&&Mi(cN))xt=Ap();else{const Nt=Ye();ci($),xt=Bu(8,$?Cd:_f),ci(Nt)}return nn(Ue(xt,Ke),xe)}function cN(){return ip()&&ke()===22}function K0($,xe,Ke){const xt=M1(!1);cl();const Nt=oe(Ke,xt);return Ar(nn(Nt,$),xe)}function L1($,xe,Ke){const xt=yn(),Nt=N_(Ke);Nn(100);const Jt=da(42),zr=Nt&2048?Wm():Tp(),Fi=Jt?1:0,Ni=Nt&1024?2:0,hi=pf();Nt&32&&Io(!0);const Xi=vn(Fi|Ni),ds=jt(59,!1),Rs=vb(Fi|Ni,f.or_expected);Io(xt);const es=m.createFunctionDeclaration(Ke,Jt,zr,hi,Xi,ds,Rs);return Ar(nn(es,$),xe)}function MT(){if(J()===137)return Nn(137);if(J()===11&&Mi(ke)===21)return Ri(()=>{const $=Yr();return $.text==="constructor"?$:void 0})}function gg($,xe,Ke){return Ri(()=>{if(MT()){const xt=pf(),Nt=vn(0),Jt=jt(59,!1),zr=vb(0,f.or_expected),Fi=m.createConstructorDeclaration(Ke,Nt,zr);return Fi.typeParameters=xt,Fi.type=Jt,Ar(nn(Fi,$),xe)}})}function s_($,xe,Ke,xt,Nt,Jt,zr,Fi){const Ni=xt?1:0,hi=bt(Ke,pP)?2:0,Xi=pf(),ds=vn(Ni|hi),Rs=jt(59,!1),es=vb(Ni|hi,Fi),zf=m.createMethodDeclaration(Ke,xt,Nt,Jt,Xi,ds,Rs,es);return zf.exclamationToken=zr,Ar(nn(zf,$),xe)}function hf($,xe,Ke,xt,Nt){const Jt=!Nt&&!t.hasPrecedingLineBreak()?da(54):void 0,zr=ny(),Fi=fa(90112,i_);Vs(xt,zr,Fi);const Ni=m.createPropertyDeclaration(Ke,xt,Nt||Jt,zr,Fi);return Ar(nn(Ni,$),xe)}function Fm($,xe,Ke){const xt=da(42),Nt=un(),Jt=da(58);return xt||J()===21||J()===30?s_($,xe,Ke,xt,Nt,Jt,void 0,f.or_expected):hf($,xe,Ke,Nt,Jt)}function rv($,xe,Ke,xt,Nt){const Jt=un(),zr=pf(),Fi=vn(0),Ni=jt(59,!1),hi=vb(Nt),Xi=xt===177?m.createGetAccessorDeclaration(Ke,Jt,Fi,Ni,hi):m.createSetAccessorDeclaration(Ke,Jt,Fi,hi);return Xi.typeParameters=zr,vp(Xi)&&(Xi.type=Ni),Ar(nn(Xi,$),xe)}function vg(){let $;if(J()===60)return!0;for(;Pv(J());){if($=J(),wV($))return!0;ke()}if(J()===42||(Z()&&($=J(),ke()),J()===23))return!0;if($!==void 0){if(!Bd($)||$===153||$===139)return!0;switch(J()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return lc()}}return!1}function yg($,xe,Ke){Ts(126);const xt=rx(),Nt=Ar(nn(m.createClassStaticBlockDeclaration(xt),$),xe);return Nt.modifiers=Ke,Nt}function rx(){const $=Rt(),xe=yn();yi(!1),Io(!0);const Ke=hg(!1);return yi($),Io(xe),Ke}function cc(){if(yn()&&J()===135){const $=L(),xe=Ms(f.Expression_expected);ke();const Ke=nu($,xe,!0);return ay($,Ke)}return um()}function uN(){const $=L();if(!ho(60))return;const xe=Ct(cc);return nn(m.createDecorator(xe),$)}function Wf($,xe,Ke){const xt=L(),Nt=J();if(J()===87&&xe){if(!Ri(Di))return}else{if(Ke&&J()===126&&Mi(bb))return;if($&&J()===126)return;if(!jc())return}return nn(O(Nt),xt)}function Lh($,xe,Ke){const xt=L();let Nt,Jt,zr,Fi=!1,Ni=!1,hi=!1;if($&&J()===60)for(;Jt=uN();)Nt=Rn(Nt,Jt);for(;zr=Wf(Fi,xe,Ke);)zr.kind===126&&(Fi=!0),Nt=Rn(Nt,zr),Ni=!0;if(Ni&&$&&J()===60)for(;Jt=uN();)Nt=Rn(Nt,Jt),hi=!0;if(hi)for(;zr=Wf(Fi,xe,Ke);)zr.kind===126&&(Fi=!0),Nt=Rn(Nt,zr);return Nt&&wo(Nt,xt)}function gf(){let $;if(J()===134){const xe=L();ke();const Ke=nn(O(134),xe);$=wo([Ke],xe)}return $}function k1(){const $=L(),xe=me();if(J()===27)return ke(),Ar(nn(m.createSemicolonClassElement(),$),xe);const Ke=Lh(!0,!0,!0);if(J()===126&&Mi(bb))return yg($,xe,Ke);if(jr(139))return rv($,xe,Ke,177,0);if(jr(153))return rv($,xe,Ke,178,0);if(J()===137||J()===11){const xt=gg($,xe,Ke);if(xt)return xt}if(cr())return fr($,xe,Ke);if(od(J())||J()===11||J()===9||J()===42||J()===23)if(bt(Ke,nx)){for(const Nt of Ke)Nt.flags|=33554432;return ka(33554432,()=>Fm($,xe,Ke))}else return Fm($,xe,Ke);if(Ke){const xt=js(80,!0,f.Declaration_expected);return hf($,xe,Ke,xt,void 0)}return N.fail("Should not have attempted to parse class member declaration.")}function X0(){const $=L(),xe=me(),Ke=Lh(!0);if(J()===86)return vf($,xe,Ke,231);const xt=js(282,!0,f.Expression_expected);return QC(xt,$),xt.modifiers=Ke,xt}function ix(){return vf(L(),me(),void 0,231)}function LT($,xe,Ke){return vf($,xe,Ke,263)}function vf($,xe,Ke,xt){const Nt=yn();Nn(86);const Jt=Ls(),zr=pf();bt(Ke,$A)&&Io(!0);const Fi=O1();let Ni;Nn(19)?(Ni=ae(),Nn(20)):Ni=Ap(),Io(Nt);const hi=xt===263?m.createClassDeclaration(Ke,Jt,zr,Fi,Ni):m.createClassExpression(Ke,Jt,zr,Fi,Ni);return Ar(nn(hi,$),xe)}function Ls(){return Jr()&&!w1()?du(Jr()):void 0}function w1(){return J()===119&&Mi(wc)}function O1(){if(D())return na(22,iv)}function iv(){const $=L(),xe=J();N.assert(xe===96||xe===119),ke();const Ke=Bu(7,yb);return nn(m.createHeritageClause(xe,Ke),$)}function yb(){const $=L(),xe=um();if(xe.kind===233)return xe;const Ke=Y0();return nn(m.createExpressionWithTypeArguments(xe,Ke),$)}function Y0(){return J()===30?Ud(20,bc,30,32):void 0}function D(){return J()===96||J()===119}function ae(){return na(5,k1)}function ht($,xe,Ke){Nn(120);const xt=Ms(),Nt=pf(),Jt=O1(),zr=W0(),Fi=m.createInterfaceDeclaration(Ke,xt,Nt,Jt,zr);return Ar(nn(Fi,$),xe)}function on($,xe,Ke){Nn(156),t.hasPrecedingLineBreak()&&fn(f.Line_break_not_permitted_here);const xt=Ms(),Nt=pf();Nn(64);const Jt=J()===141&&Ri(dT)||bc();cl();const zr=m.createTypeAliasDeclaration(Ke,xt,Nt,Jt);return Ar(nn(zr,$),xe)}function wr(){const $=L(),xe=me(),Ke=un(),xt=Tn(i_);return Ar(nn(m.createEnumMember(Ke,xt),$),xe)}function wi($,xe,Ke){Nn(94);const xt=Ms();let Nt;Nn(19)?(Nt=j(()=>Bu(6,wr)),Nn(20)):Nt=Ap();const Jt=m.createEnumDeclaration(Ke,xt,Nt);return Ar(nn(Jt,$),xe)}function bi(){const $=L();let xe;return Nn(19)?(xe=na(1,sp),Nn(20)):xe=Ap(),nn(m.createModuleBlock(xe),$)}function no($,xe,Ke,xt){const Nt=xt&32,Jt=xt&8?xc():Ms(),zr=ho(25)?no(L(),!1,void 0,8|Nt):bi(),Fi=m.createModuleDeclaration(Ke,Jt,zr,xt);return Ar(nn(Fi,$),xe)}function ga($,xe,Ke){let xt=0,Nt;J()===162?(Nt=Ms(),xt|=2048):(Nt=Yr(),Nt.text=tu(Nt.text));let Jt;J()===19?Jt=bi():cl();const zr=m.createModuleDeclaration(Ke,Nt,Jt,xt);return Ar(nn(zr,$),xe)}function ed($,xe,Ke){let xt=0;if(J()===162)return ga($,xe,Ke);if(ho(145))xt|=32;else if(Nn(144),J()===11)return ga($,xe,Ke);return no($,xe,Ke,xt)}function Pd(){return J()===149&&Mi(Ff)}function Ff(){return ke()===21}function bb(){return ke()===19}function Si(){return ke()===44}function kh($,xe,Ke){Nn(130),Nn(145);const xt=Ms();cl();const Nt=m.createNamespaceExportDeclaration(xt);return Nt.modifiers=Ke,Ar(nn(Nt,$),xe)}function Hn($,xe,Ke){Nn(102);const xt=t.getTokenFullStart();let Nt;xo()&&(Nt=Ms());let Jt=!1;if((Nt==null?void 0:Nt.escapedText)==="type"&&(J()!==161||xo()&&Mi(CT))&&(xo()||Sb())&&(Jt=!0,Nt=xo()?Ms():void 0),Nt&&!kT())return W1($,xe,Ke,Nt,Jt);let zr;(Nt||J()===42||J()===19)&&(zr=J_(Nt,xt,Jt),Nn(161));const Fi=wT(),Ni=J();let hi;(Ni===118||Ni===132)&&!t.hasPrecedingLineBreak()&&(hi=Eb(Ni)),cl();const Xi=m.createImportDeclaration(Ke,zr,Fi,hi);return Ar(nn(Xi,$),xe)}function ox(){const $=L(),xe=od(J())?xc():Ol(11);Nn(59);const Ke=mu(!0);return nn(m.createImportAttribute(xe,Ke),$)}function Eb($,xe){const Ke=L();xe||Nn($);const xt=t.getTokenStart();if(Nn(19)){const Nt=t.hasPrecedingLineBreak(),Jt=Bu(24,ox,!0);if(!Nn(20)){const zr=el(je);zr&&zr.code===f._0_expected.code&&Ma(zr,CR(Ee,Me,xt,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return nn(m.createImportAttributes(Jt,Nt,$),Ke)}else{const Nt=wo([],L(),void 0,!1);return nn(m.createImportAttributes(Nt,!1,$),Ke)}}function Sb(){return J()===42||J()===19}function kT(){return J()===28||J()===161}function W1($,xe,Ke,xt,Nt){Nn(64);const Jt=wh();cl();const zr=m.createImportEqualsDeclaration(Ke,Nt,xt,Jt);return Ar(nn(zr,$),xe)}function J_($,xe,Ke){let xt;return(!$||ho(28))&&(xt=J()===42?$z():Tb(275)),nn(m.createImportClause(Ke,$,xt),xe)}function wh(){return Pd()?dN():te(!1)}function dN(){const $=L();Nn(149),Nn(21);const xe=wT();return Nn(22),nn(m.createExternalModuleReference(xe),$)}function wT(){if(J()===11){const $=Yr();return $.text=tu($.text),$}else return qe()}function $z(){const $=L();Nn(42),Nn(130);const xe=Ms();return nn(m.createNamespaceImport(xe),$)}function Tb($){const xe=L(),Ke=$===275?m.createNamedImports(Ud(23,g8,19,20)):m.createNamedExports(Ud(23,h8,19,20));return nn(Ke,xe)}function h8(){const $=me();return Ar($0(281),$)}function g8(){return $0(276)}function $0($){const xe=L();let Ke=Bd(J())&&!xo(),xt=t.getTokenStart(),Nt=t.getTokenEnd(),Jt=!1,zr,Fi=!0,Ni=xc();if(Ni.escapedText==="type")if(J()===130){const ds=xc();if(J()===130){const Rs=xc();od(J())?(Jt=!0,zr=ds,Ni=Xi(),Fi=!1):(zr=Ni,Ni=Rs,Fi=!1)}else od(J())?(zr=Ni,Fi=!1,Ni=Xi()):(Jt=!0,Ni=ds)}else od(J())&&(Jt=!0,Ni=Xi());Fi&&J()===130&&(zr=Ni,Nn(130),Ni=Xi()),$===276&&Ke&&q(xt,Nt,f.Identifier_expected);const hi=$===276?m.createImportSpecifier(Jt,zr,Ni):m.createExportSpecifier(Jt,zr,Ni);return nn(hi,xe);function Xi(){return Ke=Bd(J())&&!xo(),xt=t.getTokenStart(),Nt=t.getTokenEnd(),xc()}}function l_($){return nn(m.createNamespaceExport(xc()),$)}function LM($,xe,Ke){const xt=yn();Io(!0);let Nt,Jt,zr;const Fi=ho(156),Ni=L();ho(42)?(ho(130)&&(Nt=l_(Ni)),Nn(161),Jt=wT()):(Nt=Tb(279),(J()===161||J()===11&&!t.hasPrecedingLineBreak())&&(Nn(161),Jt=wT()));const hi=J();Jt&&(hi===118||hi===132)&&!t.hasPrecedingLineBreak()&&(zr=Eb(hi)),cl(),Io(xt);const Xi=m.createExportDeclaration(Ke,Fi,Nt,Jt,zr);return Ar(nn(Xi,$),xe)}function Oh($,xe,Ke){const xt=yn();Io(!0);let Nt;ho(64)?Nt=!0:Nn(90);const Jt=mu(!0);cl(),Io(xt);const zr=m.createExportAssignment(Ke,Nt,Jt);return Ar(nn(zr,$),xe)}let ax;($=>{$[$.SourceElements=0]="SourceElements",$[$.BlockStatements=1]="BlockStatements",$[$.SwitchClauses=2]="SwitchClauses",$[$.SwitchClauseStatements=3]="SwitchClauseStatements",$[$.TypeMembers=4]="TypeMembers",$[$.ClassMembers=5]="ClassMembers",$[$.EnumMembers=6]="EnumMembers",$[$.HeritageClauseElement=7]="HeritageClauseElement",$[$.VariableDeclarations=8]="VariableDeclarations",$[$.ObjectBindingElements=9]="ObjectBindingElements",$[$.ArrayBindingElements=10]="ArrayBindingElements",$[$.ArgumentExpressions=11]="ArgumentExpressions",$[$.ObjectLiteralMembers=12]="ObjectLiteralMembers",$[$.JsxAttributes=13]="JsxAttributes",$[$.JsxChildren=14]="JsxChildren",$[$.ArrayLiteralMembers=15]="ArrayLiteralMembers",$[$.Parameters=16]="Parameters",$[$.JSDocParameters=17]="JSDocParameters",$[$.RestProperties=18]="RestProperties",$[$.TypeParameters=19]="TypeParameters",$[$.TypeArguments=20]="TypeArguments",$[$.TupleElementTypes=21]="TupleElementTypes",$[$.HeritageClauses=22]="HeritageClauses",$[$.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",$[$.ImportAttributes=24]="ImportAttributes",$[$.JSDocComment=25]="JSDocComment",$[$.Count=26]="Count"})(ax||(ax={}));let v8;($=>{$[$.False=0]="False",$[$.True=1]="True",$[$.Unknown=2]="Unknown"})(v8||(v8={}));let K_;($=>{function xe(hi,Xi,ds){Wi("file.js",hi,99,void 0,1,0),t.setText(hi,Xi,ds),vt=t.scan();const Rs=Ke(),es=zt("file.js",99,1,!1,[],O(1),0,Ya),zf=zA(je,es);return ot&&(es.jsDocDiagnostics=zA(ot,es)),Co(),Rs?{jsDocTypeExpression:Rs,diagnostics:zf}:void 0}$.parseJSDocTypeExpressionForTests=xe;function Ke(hi){const Xi=L(),ds=(hi?ho:Nn)(19),Rs=ka(16777216,Lm);(!hi||ds)&&gl(20);const es=m.createJSDocTypeExpression(Rs);return tt(es),nn(es,Xi)}$.parseJSDocTypeExpression=Ke;function xt(){const hi=L(),Xi=ho(19),ds=L();let Rs=te(!1);for(;J()===81;)Pi(),Tt(),Rs=nn(m.createJSDocMemberName(Rs,Ms()),ds);Xi&&gl(20);const es=m.createJSDocNameReference(Rs);return tt(es),nn(es,hi)}$.parseJSDocNameReference=xt;function Nt(hi,Xi,ds){Wi("",hi,99,void 0,1,0);const Rs=ka(16777216,()=>Ni(Xi,ds)),zf=zA(je,{languageVariant:0,text:hi});return Co(),Rs?{jsDoc:Rs,diagnostics:zf}:void 0}$.parseIsolatedJSDocComment=Nt;function Jt(hi,Xi,ds){const Rs=vt,es=je.length,zf=Qt,X_=ka(16777216,()=>Ni(Xi,ds));return Ha(X_,hi),$n&524288&&(ot||(ot=[]),qr(ot,je,es)),vt=Rs,je.length=es,Qt=zf,X_}$.parseJSDocComment=Jt;let zr;(hi=>{hi[hi.BeginningOfLine=0]="BeginningOfLine",hi[hi.SawAsterisk=1]="SawAsterisk",hi[hi.SavingComments=2]="SavingComments",hi[hi.SavingBackticks=3]="SavingBackticks"})(zr||(zr={}));let Fi;(hi=>{hi[hi.Property=1]="Property",hi[hi.Parameter=2]="Parameter",hi[hi.CallbackParameter=4]="CallbackParameter"})(Fi||(Fi={}));function Ni(hi=0,Xi){const ds=Me,Rs=Xi===void 0?ds.length:hi+Xi;if(Xi=Rs-hi,N.assert(hi>=0),N.assert(hi<=Rs),N.assert(Rs<=ds.length),!LH(ds,hi))return;let es,zf,X_,bg,ov,av=[];const Ab=[],lp=rn;rn|=1<<25;const OT=t.scanRange(hi+3,Xi-5,pN);return rn=lp,OT;function pN(){let Pn=1,Gr,Lr=hi-(ds.lastIndexOf(` +`,hi)+1)+4;function zi(As){Gr||(Gr=Lr),av.push(As),Lr+=As.length}for(Tt();ly(5););ly(4)&&(Pn=0,Lr=0);e:for(;;){switch(J()){case 60:wM(av),ov||(ov=L()),WM(fN(Lr)),Pn=0,Gr=void 0;break;case 4:av.push(t.getTokenText()),Pn=0,Lr=0;break;case 42:const As=t.getTokenText();Pn===1?(Pn=2,zi(As)):(N.assert(Pn===0),Pn=1,Lr+=As.length);break;case 5:N.assert(Pn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");const td=t.getTokenText();Gr!==void 0&&Lr+td.length>Gr&&av.push(td.slice(Gr-Lr)),Lr+=td.length;break;case 1:break e;case 82:Pn=2,zi(t.getTokenValue());break;case 19:Pn=2;const Wh=t.getTokenFullStart(),Np=t.getTokenEnd()-1,u_=uc(Np);if(u_){bg||kM(av),Ab.push(nn(m.createJSDocText(av.join("")),bg??hi,Wh)),Ab.push(u_),av=[],bg=t.getTokenEnd();break}default:Pn=2,zi(t.getTokenText());break}Pn===2?kt(!1):Tt()}const Li=av.join("").trimEnd();Ab.length&&Li.length&&Ab.push(nn(m.createJSDocText(Li),bg??hi,ov)),Ab.length&&es&&N.assertIsDefined(ov,"having parsed tags implies that the end of the comment span should be set");const is=es&&wo(es,zf,X_);return nn(m.createJSDocComment(Ab.length?wo(Ab,hi,ov):Li.length?Li:void 0,is),hi,Rs)}function kM(Pn){for(;Pn.length&&(Pn[0]===` +`||Pn[0]==="\r");)Pn.shift()}function wM(Pn){for(;Pn.length;){const Gr=Pn[Pn.length-1].trimEnd();if(Gr==="")Pn.pop();else if(Gr.length<Pn[Pn.length-1].length){Pn[Pn.length-1]=Gr;break}else break}}function Q0(){for(;;){if(Tt(),J()===1)return!0;if(!(J()===5||J()===4))return!1}}function sv(){if(!((J()===5||J()===4)&&Mi(Q0)))for(;J()===5||J()===4;)Tt()}function Ib(){if((J()===5||J()===4)&&Mi(Q0))return"";let Pn=t.hasPrecedingLineBreak(),Gr=!1,Lr="";for(;Pn&&J()===42||J()===5||J()===4;)Lr+=t.getTokenText(),J()===4?(Pn=!0,Gr=!0,Lr=""):J()===42&&(Pn=!1),Tt();return Gr?Lr:""}function fN(Pn){N.assert(J()===60);const Gr=t.getTokenStart();Tt();const Lr=nE(void 0),zi=Ib();let Li;switch(Lr.escapedText){case"author":Li=qs(Gr,Lr,Pn,zi);break;case"implements":Li=Rb(Gr,Lr,Pn,zi);break;case"augments":case"extends":Li=zm(Gr,Lr,Pn,zi);break;case"class":case"constructor":Li=tE(Gr,m.createJSDocClassTag,Lr,Pn,zi);break;case"public":Li=tE(Gr,m.createJSDocPublicTag,Lr,Pn,zi);break;case"private":Li=tE(Gr,m.createJSDocPrivateTag,Lr,Pn,zi);break;case"protected":Li=tE(Gr,m.createJSDocProtectedTag,Lr,Pn,zi);break;case"readonly":Li=tE(Gr,m.createJSDocReadonlyTag,Lr,Pn,zi);break;case"override":Li=tE(Gr,m.createJSDocOverrideTag,Lr,Pn,zi);break;case"deprecated":Ci=!0,Li=tE(Gr,m.createJSDocDeprecatedTag,Lr,Pn,zi);break;case"this":Li=Qz(Gr,Lr,Pn,zi);break;case"enum":Li=mZ(Gr,Lr,Pn,zi);break;case"arg":case"argument":case"param":return B(Gr,Lr,2,Pn);case"return":case"returns":Li=Qe(Gr,Lr,Pn,zi);break;case"template":Li=Nb(Gr,Lr,Pn,zi);break;case"type":Li=Kt(Gr,Lr,Pn,zi);break;case"typedef":Li=FM(Gr,Lr,Pn,zi);break;case"callback":Li=Bhe(Gr,Lr,Pn,zi);break;case"overload":Li=Ghe(Gr,Lr,Pn,zi);break;case"satisfies":Li=eE(Gr,Lr,Pn,zi);break;case"see":Li=yr(Gr,Lr,Pn,zi);break;case"exception":case"throws":Li=ro(Gr,Lr,Pn,zi);break;default:Li=xb(Gr,Lr,Pn,zi);break}return Li}function qp(Pn,Gr,Lr,zi){return zi||(Lr+=Gr-Pn),Va(Lr,zi.slice(Lr))}function Va(Pn,Gr){const Lr=L();let zi=[];const Li=[];let is,As=0,td;function Wh(lv){td||(td=Pn),zi.push(lv),Pn+=lv.length}Gr!==void 0&&(Gr!==""&&Wh(Gr),As=1);let Np=J();e:for(;;){switch(Np){case 4:As=0,zi.push(t.getTokenText()),Pn=0;break;case 60:t.resetTokenState(t.getTokenEnd()-1);break e;case 1:break e;case 5:N.assert(As!==2&&As!==3,"whitespace shouldn't come from the scanner while saving comment text");const lv=t.getTokenText();td!==void 0&&Pn+lv.length>td&&(zi.push(lv.slice(td-Pn)),As=2),Pn+=lv.length;break;case 19:As=2;const Cp=t.getTokenFullStart(),hN=t.getTokenEnd()-1,y8=uc(hN);y8?(Li.push(nn(m.createJSDocText(zi.join("")),is??Lr,Cp)),Li.push(y8),zi=[],is=t.getTokenEnd()):Wh(t.getTokenText());break;case 62:As===3?As=2:As=3,Wh(t.getTokenText());break;case 82:As!==3&&(As=2),Wh(t.getTokenValue());break;case 42:if(As===0){As=1,Pn+=1;break}default:As!==3&&(As=2),Wh(t.getTokenText());break}As===2||As===3?Np=kt(As===3):Np=Tt()}kM(zi);const u_=zi.join("").trimEnd();if(Li.length)return u_.length&&Li.push(nn(m.createJSDocText(u_),is??Lr)),wo(Li,Lr,t.getTokenEnd());if(u_.length)return u_}function uc(Pn){const Gr=Ri(sx);if(!Gr)return;Tt(),sv();const Lr=Z0(),zi=[];for(;J()!==20&&J()!==4&&J()!==1;)zi.push(t.getTokenText()),Tt();const Li=Gr==="link"?m.createJSDocLink:Gr==="linkcode"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return nn(Li(Lr,zi.join("")),Pn,t.getTokenEnd())}function Z0(){if(od(J())){const Pn=L();let Gr=xc();for(;ho(25);)Gr=nn(m.createQualifiedName(Gr,J()===81?js(80,!1):Ms()),Pn);for(;J()===81;)Pi(),Tt(),Gr=nn(m.createJSDocMemberName(Gr,Ms()),Pn);return Gr}}function sx(){if(Ib(),J()===19&&Tt()===60&&od(Tt())){const Pn=t.getTokenValue();if(OM(Pn))return Pn}}function OM(Pn){return Pn==="link"||Pn==="linkcode"||Pn==="linkplain"}function xb(Pn,Gr,Lr,zi){return nn(m.createJSDocUnknownTag(Gr,qp(Pn,L(),Lr,zi)),Pn)}function WM(Pn){Pn&&(es?es.push(Pn):(es=[Pn],zf=Pn.pos),X_=Pn.end)}function or(){return Ib(),J()===19?Ke():void 0}function E(){const Pn=ly(23);Pn&&sv();const Gr=ly(62),Lr=_N();return Gr&&Ca(62),Pn&&(sv(),da(64)&&qe(),Nn(24)),{name:Lr,isBracketed:Pn}}function P(Pn){switch(Pn.kind){case 151:return!0;case 188:return P(Pn.elementType);default:return Df(Pn)&&Ve(Pn.typeName)&&Pn.typeName.escapedText==="Object"&&!Pn.typeArguments}}function B(Pn,Gr,Lr,zi){let Li=or(),is=!Li;Ib();const{name:As,isBracketed:td}=E(),Wh=Ib();is&&!Mi(sx)&&(Li=or());const Np=qp(Pn,L(),zi,Wh),u_=ce(Li,As,Lr,zi);u_&&(Li=u_,is=!0);const lv=Lr===1?m.createJSDocPropertyTag(Gr,As,td,Li,is,Np):m.createJSDocParameterTag(Gr,As,td,Li,is,Np);return nn(lv,Pn)}function ce(Pn,Gr,Lr,zi){if(Pn&&P(Pn.type)){const Li=L();let is,As;for(;is=Ri(()=>e9(Lr,zi,Gr));)is.kind===348||is.kind===355?As=Rn(As,is):is.kind===352&&Oe(is.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(As){const td=nn(m.createJSDocTypeLiteral(As,Pn.type.kind===188),Li);return nn(m.createJSDocTypeExpression(td),Li)}}}function Qe(Pn,Gr,Lr,zi){bt(es,QW)&&q(Gr.pos,t.getTokenStart(),f._0_tag_already_specified,Vi(Gr.escapedText));const Li=or();return nn(m.createJSDocReturnTag(Gr,Li,qp(Pn,L(),Lr,zi)),Pn)}function Kt(Pn,Gr,Lr,zi){bt(es,TP)&&q(Gr.pos,t.getTokenStart(),f._0_tag_already_specified,Vi(Gr.escapedText));const Li=Ke(!0),is=Lr!==void 0&&zi!==void 0?qp(Pn,L(),Lr,zi):void 0;return nn(m.createJSDocTypeTag(Gr,Li,is),Pn)}function yr(Pn,Gr,Lr,zi){const is=J()===23||Mi(()=>Tt()===60&&od(Tt())&&OM(t.getTokenValue()))?void 0:xt(),As=Lr!==void 0&&zi!==void 0?qp(Pn,L(),Lr,zi):void 0;return nn(m.createJSDocSeeTag(Gr,is,As),Pn)}function ro(Pn,Gr,Lr,zi){const Li=or(),is=qp(Pn,L(),Lr,zi);return nn(m.createJSDocThrowsTag(Gr,Li,is),Pn)}function qs(Pn,Gr,Lr,zi){const Li=L(),is=c_();let As=t.getTokenFullStart();const td=qp(Pn,As,Lr,zi);td||(As=t.getTokenFullStart());const Wh=typeof td!="string"?wo(So([nn(is,Li,As)],td),Li):is.text+td;return nn(m.createJSDocAuthorTag(Gr,Wh),Pn)}function c_(){const Pn=[];let Gr=!1,Lr=t.getToken();for(;Lr!==1&&Lr!==4;){if(Lr===30)Gr=!0;else{if(Lr===60&&!Gr)break;if(Lr===32&&Gr){Pn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}Pn.push(t.getTokenText()),Lr=Tt()}return m.createJSDocText(Pn.join(""))}function Rb(Pn,Gr,Lr,zi){const Li=fZ();return nn(m.createJSDocImplementsTag(Gr,Li,qp(Pn,L(),Lr,zi)),Pn)}function zm(Pn,Gr,Lr,zi){const Li=fZ();return nn(m.createJSDocAugmentsTag(Gr,Li,qp(Pn,L(),Lr,zi)),Pn)}function eE(Pn,Gr,Lr,zi){const Li=Ke(!1),is=Lr!==void 0&&zi!==void 0?qp(Pn,L(),Lr,zi):void 0;return nn(m.createJSDocSatisfiesTag(Gr,Li,is),Pn)}function fZ(){const Pn=ho(19),Gr=L(),Lr=zhe();t.setInJSDocType(!0);const zi=Y0();t.setInJSDocType(!1);const Li=m.createExpressionWithTypeArguments(Lr,zi),is=nn(Li,Gr);return Pn&&Nn(20),is}function zhe(){const Pn=L();let Gr=nE();for(;ho(25);){const Lr=nE();Gr=nn(Q(Gr,Lr),Pn)}return Gr}function tE(Pn,Gr,Lr,zi,Li){return nn(Gr(Lr,qp(Pn,L(),zi,Li)),Pn)}function Qz(Pn,Gr,Lr,zi){const Li=Ke(!0);return sv(),nn(m.createJSDocThisTag(Gr,Li,qp(Pn,L(),Lr,zi)),Pn)}function mZ(Pn,Gr,Lr,zi){const Li=Ke(!0);return sv(),nn(m.createJSDocEnumTag(Gr,Li,qp(Pn,L(),Lr,zi)),Pn)}function FM(Pn,Gr,Lr,zi){let Li=or();Ib();const is=Zz();sv();let As=Va(Lr),td;if(!Li||P(Li.type)){let Np,u_,lv,Cp=!1;for(;(Np=Ri(()=>gZ(Lr)))&&Np.kind!==352;)if(Cp=!0,Np.kind===351)if(u_){const hN=fn(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);hN&&Ma(hN,CR(Ee,Me,0,0,f.The_tag_was_first_specified_here));break}else u_=Np;else lv=Rn(lv,Np);if(Cp){const hN=Li&&Li.type.kind===188,y8=m.createJSDocTypeLiteral(lv,hN);Li=u_&&u_.typeExpression&&!P(u_.typeExpression.type)?u_.typeExpression:nn(y8,Pn),td=Li.end}}td=td||As!==void 0?L():(is??Li??Gr).end,As||(As=qp(Pn,td,Lr,zi));const Wh=m.createJSDocTypedefTag(Gr,Li,is,As);return nn(Wh,Pn,td)}function Zz(Pn){const Gr=t.getTokenStart();if(!od(J()))return;const Lr=nE();if(ho(25)){const zi=Zz(!0),Li=m.createModuleDeclaration(void 0,Lr,zi,Pn?8:void 0);return nn(Li,Gr)}return Pn&&(Lr.flags|=4096),Lr}function _Z(Pn){const Gr=L();let Lr,zi;for(;Lr=Ri(()=>e9(4,Pn));){if(Lr.kind===352){Oe(Lr.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}zi=Rn(zi,Lr)}return wo(zi||[],Gr)}function hZ(Pn,Gr){const Lr=_Z(Gr),zi=Ri(()=>{if(ly(60)){const Li=fN(Gr);if(Li&&Li.kind===349)return Li}});return nn(m.createJSDocSignature(void 0,Lr,zi),Pn)}function Bhe(Pn,Gr,Lr,zi){const Li=Zz();sv();let is=Va(Lr);const As=hZ(Pn,Lr);is||(is=qp(Pn,L(),Lr,zi));const td=is!==void 0?L():As.end;return nn(m.createJSDocCallbackTag(Gr,As,Li,is),Pn,td)}function Ghe(Pn,Gr,Lr,zi){sv();let Li=Va(Lr);const is=hZ(Pn,Lr);Li||(Li=qp(Pn,L(),Lr,zi));const As=Li!==void 0?L():is.end;return nn(m.createJSDocOverloadTag(Gr,is,Li),Pn,As)}function mN(Pn,Gr){for(;!Ve(Pn)||!Ve(Gr);)if(!Ve(Pn)&&!Ve(Gr)&&Pn.right.escapedText===Gr.right.escapedText)Pn=Pn.left,Gr=Gr.left;else return!1;return Pn.escapedText===Gr.escapedText}function gZ(Pn){return e9(1,Pn)}function e9(Pn,Gr,Lr){let zi=!0,Li=!1;for(;;)switch(Tt()){case 60:if(zi){const is=F1(Pn,Gr);return is&&(is.kind===348||is.kind===355)&&Lr&&(Ve(is.name)||!mN(Lr,is.name.left))?!1:is}Li=!1;break;case 4:zi=!0,Li=!1;break;case 42:Li&&(zi=!1),Li=!0;break;case 80:zi=!1;break;case 1:return!1}}function F1(Pn,Gr){N.assert(J()===60);const Lr=t.getTokenFullStart();Tt();const zi=nE(),Li=Ib();let is;switch(zi.escapedText){case"type":return Pn===1&&Kt(Lr,zi);case"prop":case"property":is=1;break;case"arg":case"argument":case"param":is=6;break;case"template":return Nb(Lr,zi,Gr,Li);case"this":return Qz(Lr,zi,Gr,Li);default:return!1}return Pn&is?B(Lr,zi,Pn,Gr):!1}function dr(){const Pn=L(),Gr=ly(23);Gr&&sv();const Lr=Lh(!1,!0),zi=nE(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let Li;if(Gr&&(sv(),Nn(64),Li=ka(16777216,Lm),Nn(24)),!Fl(zi))return nn(m.createTypeParameterDeclaration(Lr,zi,void 0,Li),Pn)}function Db(){const Pn=L(),Gr=[];do{sv();const Lr=dr();Lr!==void 0&&Gr.push(Lr),Ib()}while(ly(28));return wo(Gr,Pn)}function Nb(Pn,Gr,Lr,zi){const Li=J()===19?Ke():void 0,is=Db();return nn(m.createJSDocTemplateTag(Gr,Li,is,qp(Pn,L(),Lr,zi)),Pn)}function ly(Pn){return J()===Pn?(Tt(),!0):!1}function _N(){let Pn=nE();for(ho(23)&&Nn(24);ho(25);){const Gr=nE();ho(23)&&Nn(24),Pn=lt(Pn,Gr)}return Pn}function nE(Pn){if(!od(J()))return js(80,!Pn,Pn||f.Identifier_expected);tn++;const Gr=t.getTokenStart(),Lr=t.getTokenEnd(),zi=J(),Li=tu(t.getTokenValue()),is=nn(M(Li,zi),Gr,Lr);return Tt(),is}}})(K_=e.JSDocParser||(e.JSDocParser={}))})(A0||(A0={})),(e=>{function t(A,R,M,C){if(C=C||N.shouldAssert(2),m(A,R,M,C),Gne(M))return A;if(A.statements.length===0)return A0.parseSourceFile(A.fileName,R,A.languageVersion,void 0,!0,A.scriptKind,A.setExternalModuleIndicator,A.jsDocParsingMode);const O=A;N.assert(!O.hasBeenIncrementallyParsed),O.hasBeenIncrementallyParsed=!0,A0.fixupParentReferences(O);const U=A.text,K=y(A),Q=p(A,M);m(A,R,Q,C),N.assert(Q.span.start<=M.span.start),N.assert(Kl(Q.span)===Kl(M.span)),N.assert(Kl(oC(Q))===Kl(oC(M)));const V=oC(Q).length-Q.span.length;u(O,Q.span.start,Kl(Q.span),Kl(oC(Q)),V,U,R,C);const se=A0.parseSourceFile(A.fileName,R,A.languageVersion,K,!0,A.scriptKind,A.setExternalModuleIndicator,A.jsDocParsingMode);return se.commentDirectives=r(A.commentDirectives,se.commentDirectives,Q.span.start,Kl(Q.span),V,U,R,C),se.impliedNodeFormat=A.impliedNodeFormat,se}e.updateSourceFile=t;function r(A,R,M,C,O,U,K,Q){if(!A)return R;let V,se=!1;for(const ne of A){const{range:he,type:ye}=ne;if(he.end<M)V=Rn(V,ne);else if(he.pos>C){G();const Y={range:{pos:he.pos+O,end:he.end+O},type:ye};V=Rn(V,Y),Q&&N.assert(U.substring(he.pos,he.end)===K.substring(Y.range.pos,Y.range.end))}}return G(),V;function G(){se||(se=!0,V?R&&V.push(...R):V=R)}}function i(A,R,M,C,O,U){R?Q(A):K(A);return;function K(V){let se="";if(U&&o(V)&&(se=C.substring(V.pos,V.end)),V._children&&(V._children=void 0),gh(V,V.pos+M,V.end+M),U&&o(V)&&N.assert(se===O.substring(V.pos,V.end)),Uo(V,K,Q),Wp(V))for(const G of V.jsDoc)K(G);l(V,U)}function Q(V){V._children=void 0,gh(V,V.pos+M,V.end+M);for(const se of V)K(se)}}function o(A){switch(A.kind){case 11:case 9:case 80:return!0}return!1}function s(A,R,M,C,O){N.assert(A.end>=R,"Adjusting an element that was entirely before the change range"),N.assert(A.pos<=M,"Adjusting an element that was entirely after the change range"),N.assert(A.pos<=A.end);const U=Math.min(A.pos,C),K=A.end>=M?A.end+O:Math.min(A.end,C);N.assert(U<=K),A.parent&&(N.assertGreaterThanOrEqual(U,A.parent.pos),N.assertLessThanOrEqual(K,A.parent.end)),gh(A,U,K)}function l(A,R){if(R){let M=A.pos;const C=O=>{N.assert(O.pos>=M),M=O.end};if(Wp(A))for(const O of A.jsDoc)C(O);Uo(A,C),N.assert(M<=A.end)}}function u(A,R,M,C,O,U,K,Q){V(A);return;function V(G){if(N.assert(G.pos<=G.end),G.pos>M){i(G,!1,O,U,K,Q);return}const ne=G.end;if(ne>=R){if(G.intersectsChange=!0,G._children=void 0,s(G,R,M,C,O),Uo(G,V,se),Wp(G))for(const he of G.jsDoc)V(he);l(G,Q);return}N.assert(ne<R)}function se(G){if(N.assert(G.pos<=G.end),G.pos>M){i(G,!0,O,U,K,Q);return}const ne=G.end;if(ne>=R){G.intersectsChange=!0,G._children=void 0,s(G,R,M,C,O);for(const he of G)V(he);return}N.assert(ne<R)}}function p(A,R){let C=R.span.start;for(let K=0;C>0&&K<=1;K++){const Q=h(A,C);N.assert(Q.pos<=C);const V=Q.pos;C=Math.max(0,V-1)}const O=pc(C,Kl(R.span)),U=R.newLength+(R.span.start-C);return nL(O,U)}function h(A,R){let M=A,C;if(Uo(A,U),C){const K=O(C);K.pos>M.pos&&(M=K)}return M;function O(K){for(;;){const Q=oU(K);if(Q)K=Q;else return K}}function U(K){if(!Fl(K))if(K.pos<=R){if(K.pos>=M.pos&&(M=K),R<K.end)return Uo(K,U),!0;N.assert(K.end<=R),C=K}else return N.assert(K.pos>R),!0}}function m(A,R,M,C){const O=A.text;if(M&&(N.assert(O.length-M.span.length+M.newLength===R.length),C||N.shouldAssert(3))){const U=O.substr(0,M.span.start),K=R.substr(0,M.span.start);N.assert(U===K);const Q=O.substring(Kl(M.span),O.length),V=R.substring(Kl(oC(M)),R.length);N.assert(Q===V)}}function y(A){let R=A.statements,M=0;N.assert(M<R.length);let C=R[M],O=-1;return{currentNode(K){return K!==O&&(C&&C.end===K&&M<R.length-1&&(M++,C=R[M]),(!C||C.pos!==K)&&U(K)),O=K,N.assert(!C||C.pos===K),C}};function U(K){R=void 0,M=-1,C=void 0,Uo(A,Q,V);return;function Q(se){return K>=se.pos&&K<se.end?(Uo(se,Q,V),!0):!1}function V(se){if(K>=se.pos&&K<se.end)for(let G=0;G<se.length;G++){const ne=se[G];if(ne){if(ne.pos===K)return R=se,M=G,C=ne,!0;if(ne.pos<K&&K<ne.end)return Uo(ne,Q,V),!0}}return!1}}}e.createSyntaxCursor=y;let T;(A=>{A[A.Value=-1]="Value"})(T||(T={}))})(zH||(zH={})),BH=new Map,$Te=/^\/\/\/\s*<(\S+)\s.*?\/>/im,QTe=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function uF(e){const t=new Map,r=new Map;return Xe(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function eD(){return OAe||(OAe=uF(lg))}function Kae(e){return ZTe(e,Ul)}function ZTe(e,t){const r=zo(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 dF(e,t,r){return PAe(e,(t??"").trim(),r)}function Xae(e,t="",r){if(t=t.trim(),uo(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return fI(e,t,r);if(t==="")return[];const i=t.split(",");switch(e.element.type){case"number":return eo(i,o=>fI(e.element,parseInt(o),r));case"string":return eo(i,o=>fI(e.element,o||"",r));case"boolean":case"object":return N.fail(`List of ${e.element.type} is not yet supported.`);default:return eo(i,o=>dF(e.element,o,r))}}function eAe(e){return e.name}function Yae(e,t,r,i,o){var s;if((s=t.alternateMode)!=null&&s.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return I0(o,i,t.alternateMode.diagnostic,e);const l=KN(e,t.optionDeclarations,eAe);return l?I0(o,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):I0(o,i,t.unknownOptionDiagnostic,r||e)}function GH(e,t,r){const i={};let o;const s=[],l=[];return u(t),{options:i,watchOptions:o,fileNames:s,errors:l};function u(h){let m=0;for(;m<h.length;){const y=h[m];if(m++,y.charCodeAt(0)===64)p(y.slice(1));else if(y.charCodeAt(0)===45){const T=y.slice(y.charCodeAt(1)===45?2:1),A=$ae(e.getOptionsNameMap,T,!0);if(A)m=tAe(h,m,e,A,i,l);else{const R=$ae(EF.getOptionsNameMap,T,!0);R?m=tAe(h,m,EF,R,o||(o={}),l):l.push(Yae(T,e,y))}}else s.push(y)}}function p(h){const m=DP(h,r||(A=>gu.readFile(A)));if(!Mo(m)){l.push(m);return}const y=[];let T=0;for(;;){for(;T<m.length&&m.charCodeAt(T)<=32;)T++;if(T>=m.length)break;const A=T;if(m.charCodeAt(A)===34){for(T++;T<m.length&&m.charCodeAt(T)!==34;)T++;T<m.length?(y.push(m.substring(A+1,T)),T++):l.push(Ul(f.Unterminated_quoted_string_in_response_file_0,h))}else{for(;m.charCodeAt(T)>32;)T++;y.push(m.substring(A,T))}}u(y)}}function tAe(e,t,r,i,o,s){if(i.isTSConfigOnly){const l=e[t];l==="null"?(o[i.name]=void 0,t++):i.type==="boolean"?l==="false"?(o[i.name]=fI(i,!1,s),t++):(l==="true"&&t++,s.push(Ul(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(Ul(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(Ul(r.optionTypeMismatchDiagnostic,i.name,HH(i))),e[t]!=="null")switch(i.type){case"number":o[i.name]=fI(i,parseInt(e[t]),s),t++;break;case"boolean":const l=e[t];o[i.name]=fI(i,l!=="false",s),(l==="false"||l==="true")&&t++;break;case"string":o[i.name]=fI(i,e[t]||"",s),t++;break;case"list":const u=Xae(i,e[t],s);o[i.name]=u||[],u&&t++;break;case"listOrElement":N.fail("listOrElement not supported here");break;default:o[i.name]=dF(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function nAe(e,t){return GH(hw,e,t)}function VH(e,t){return $ae(eD,e,t)}function $ae(e,t,r=!1){t=t.toLowerCase();const{optionsNameMap:i,shortOptionNames:o}=e();if(r){const s=o.get(t);s!==void 0&&(t=s)}return i.get(t)}function rAe(){return FAe||(FAe=uF(yF))}function iAe(e){const{options:t,watchOptions:r,fileNames:i,errors:o}=GH(BAe,e),s=t;return i.length===0&&i.push("."),s.clean&&s.force&&o.push(Ul(f.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(Ul(f.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(Ul(f.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(Ul(f.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function oAe(e,...t){return oa(Ul(e,...t).messageText,Mo)}function aw(e,t,r,i,o,s){const l=DP(e,h=>r.readFile(h));if(!Mo(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}const u=ow(e,l),p=r.getCurrentDirectory();return u.path=il(e,p,Mu(r.useCaseSensitiveFileNames)),u.resolvedPath=u.path,u.originalFileName=u.fileName,cw(u,r,go(ai(e),p),t,go(e,p),void 0,s,i,o)}function sw(e,t){const r=DP(e,t);return Mo(r)?jH(e,r):{config:{},error:r}}function jH(e,t){const r=ow(e,t);return{config:uAe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function Qae(e,t){const r=DP(e,t);return Mo(r)?ow(e,r):{fileName:e,parseDiagnostics:[r]}}function DP(e,t){let r;try{r=t(e)}catch(i){return Ul(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?Ul(f.Cannot_read_file_0,e):r}function UH(e){return TE(e,eAe)}function aAe(){return GAe||(GAe=uF(tD))}function sAe(){return VAe||(VAe=UH(lg))}function lAe(){return jAe||(jAe=UH(tD))}function cAe(){return UAe||(UAe=UH(_w))}function IGe(){return fse===void 0&&(fse={name:void 0,type:"object",elementOptions:UH([use,dse,pse,gw,{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},dw])}),fse}function uAe(e,t,r){var i;const o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==210){if(t.push(Xf(e,o,f.The_root_value_of_a_0_file_must_be_an_object,ic(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),fd(o)){const s=In(o.elements,La);if(s)return lw(e,s,t,!0,r)}return{}}return lw(e,o,t,!0,r)}function Zae(e,t){var r;return lw(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function lw(e,t,r,i,o){if(!t)return i?{}:void 0;return u(t,o==null?void 0:o.rootOptions);function s(h,m){var y;const T=i?{}:void 0;for(const A of h.properties){if(A.kind!==303){r.push(Xf(e,A,f.Property_assignment_expected));continue}A.questionToken&&r.push(Xf(e,A.questionToken,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),p(A.name)||r.push(Xf(e,A.name,f.String_literal_with_double_quotes_expected));const R=AL(A.name)?void 0:nR(A.name),M=R&&Vi(R),C=M?(y=m==null?void 0:m.elementOptions)==null?void 0:y.get(M):void 0,O=u(A.initializer,C);typeof M<"u"&&(i&&(T[M]=O),o==null||o.onPropertySet(M,O,A,m,C))}return T}function l(h,m){if(!i){h.forEach(y=>u(y,m));return}return mn(h.map(y=>u(y,m)),y=>y!==void 0)}function u(h,m){switch(h.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return p(h)||r.push(Xf(e,h,f.String_literal_with_double_quotes_expected)),h.text;case 9:return Number(h.text);case 224:if(h.operator!==41||h.operand.kind!==9)break;return-Number(h.operand.text);case 210:return s(h,m);case 209:return l(h.elements,m&&m.element)}m?r.push(Xf(e,h,f.Compiler_option_0_requires_a_value_of_type_1,m.name,HH(m))):r.push(Xf(e,h,f.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function p(h){return Na(h)&&e3(h,e)}}function HH(e){return e.type==="listOrElement"?`${HH(e.element)} or Array`:e.type==="list"?"Array":Mo(e.type)?e.type:"string"}function dAe(e,t){if(e){if(uw(t))return!e.disallowNullOrUndefined;if(e.type==="list")return To(t);if(e.type==="listOrElement")return To(t)||dAe(e.element,t);const r=Mo(e.type)?e.type:"string";return typeof t===r}return!1}function pAe(e,t,r){var i,o,s;const l=Mu(r.useCaseSensitiveFileNames),u=Wt(mn(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?RGe(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):Iv),R=>H2(go(t,r.getCurrentDirectory()),go(R,r.getCurrentDirectory()),l)),p={configFilePath:go(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},h=fF(e.options,p),m=e.watchOptions&&DGe(e.watchOptions),y={compilerOptions:{...pF(h),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&&pF(m),references:Wt(e.projectReferences,R=>({...R,path:R.originalPath?R.originalPath:"",originalPath:void 0})),files:Ne(u)?u:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:xGe(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},T=new Set(h.keys()),A={};for(const R in _c)if(!T.has(R)&&bt(_c[R].dependencies,M=>T.has(M))){const M=_c[R].computeValue(e.options),C=_c[R].computeValue({});M!==C&&(A[R]=_c[R].computeValue(e.options))}return Mx(y.compilerOptions,pF(fF(A,p))),y}function pF(e){return{...zo(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function xGe(e){if(Ne(e)){if(Ne(e)!==1)return e;if(e[0]!==SF)return e}}function RGe(e,t,r,i){if(!t)return Iv;const o=z3(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&By(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&By(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?u=>!(l.test(u)&&!s.test(u)):u=>!l.test(u):s?u=>s.test(u):Iv}function fAe(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return fAe(e.element);default:return e.type}}function qH(e,t){return zc(t,(r,i)=>{if(r===e)return i})}function fF(e,t){return mAe(e,eD(),t)}function DGe(e){return mAe(e,aAe())}function mAe(e,{optionsNameMap:t},r){const i=new Map,o=r&&Mu(r.useCaseSensitiveFileNames);for(const s in e)if(Is(e,s)){if(t.has(s)&&(t.get(s).category===f.Command_line_Options||t.get(s).category===f.Output_Formatting))continue;const l=e[s],u=t.get(s.toLowerCase());if(u){N.assert(u.type!=="listOrElement");const p=fAe(u);p?u.type==="list"?i.set(s,l.map(h=>qH(h,p))):i.set(s,qH(l,p)):r&&u.isFilePath?i.set(s,H2(r.configFilePath,go(l,ai(r.configFilePath)),o)):i.set(s,l)}}return i}function _Ae(e,t){const r=hAe(e);return o();function i(s){return Array(s+1).join(" ")}function o(){const s=[],l=i(2);return $H.forEach(u=>{if(!r.has(u.name))return;const p=r.get(u.name),h=ase(u);p!==h?s.push(`${l}${u.name}: ${p}`):Is(bF,u.name)&&s.push(`${l}${u.name}: ${h}`)}),s.join(t)+t}}function hAe(e){const t=A6(e,bF);return fF(t)}function gAe(e,t,r){const i=hAe(e);return l();function o(u){return Array(u+1).join(" ")}function s({category:u,name:p,isCommandLineOnly:h}){const m=[f.Command_line_Options,f.Editor_Support,f.Compiler_Diagnostics,f.Backwards_Compatibility,f.Watch_and_Build_Modes,f.Output_Formatting];return!h&&u!==void 0&&(!m.includes(u)||i.has(p))}function l(){const 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(const A of lg)if(s(A)){let R=u.get(A.category);R||u.set(A.category,R=[]),R.push(A)}let p=0,h=0;const m=[];u.forEach((A,R)=>{m.length!==0&&m.push({value:""}),m.push({value:`/* ${Wo(R)} */`});for(const M of A){let C;i.has(M.name)?C=`"${M.name}": ${JSON.stringify(i.get(M.name))}${(h+=1)===i.size?"":","}`:C=`// "${M.name}": ${JSON.stringify(ase(M))},`,m.push({value:C,description:`/* ${M.description&&Wo(M.description)||M.name} */`}),p=Math.max(C.length,p)}});const y=o(2),T=[];T.push("{"),T.push(`${y}"compilerOptions": {`),T.push(`${y}${y}/* ${Wo(f.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),T.push("");for(const A of m){const{value:R,description:M=""}=A;T.push(R&&`${y}${y}${R}${M&&o(p-R.length+2)+M}`)}if(t.length){T.push(`${y}},`),T.push(`${y}"files": [`);for(let A=0;A<t.length;A++)T.push(`${y}${y}${JSON.stringify(t[A])}${A===t.length-1?"":","}`);T.push(`${y}]`)}else T.push(`${y}}`);return T.push("}"),T.join(r)+r}}function JH(e,t){const r={},i=eD().optionsNameMap;for(const o in e)Is(e,o)&&(r[o]=NGe(i.get(o.toLowerCase()),e[o],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function NGe(e,t,r){if(e&&!uw(t)){if(e.type==="list"){const i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t);N.assert(e.type!=="listOrElement")}return t}function vAe(e,t,r,i,o,s,l,u,p){return bAe(e,void 0,t,r,i,p,o,s,l,u)}function cw(e,t,r,i,o,s,l,u,p){var h,m;(h=sr)==null||h.push(sr.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});const y=bAe(void 0,e,t,r,i,p,o,s,l,u);return(m=sr)==null||m.pop(),y}function KH(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function uw(e){return e==null}function yAe(e,t){return ai(go(e,t))}function bAe(e,t,r,i,o={},s,l,u=[],p=[],h){N.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);const m=[],y=TAe(e,t,r,i,l,u,m,h),{raw:T}=y,A=A6(o,y.options||{}),R=s&&y.watchOptions?A6(s,y.watchOptions):y.watchOptions||s;A.configFilePath=l&&Lu(l);const M=O();t&&(t.configFileSpecs=M),KH(A,t);const C=ha(l?yAe(l,i):i);return{options:A,watchOptions:R,fileNames:U(C),projectReferences:K(C),typeAcquisition:y.typeAcquisition||XH(),raw:T,errors:m,wildcardDirectories:FGe(M,C,r.useCaseSensitiveFileNames),compileOnSave:!!T.compileOnSave};function O(){const ne=se("references",de=>typeof de=="object","object"),he=Q(V("files"));if(he){const de=ne==="no-prop"||To(ne)&&ne.length===0,ie=Is(T,"extends");if(he.length===0&&de&&!ie)if(t){const ve=l||"tsconfig.json",Le=f.The_files_list_in_config_file_0_is_empty,Ue=NL(t,"files",De=>De.initializer),Ee=I0(t,Ue,Le,ve);m.push(Ee)}else G(f.The_files_list_in_config_file_0_is_empty,l||"tsconfig.json")}let ye=Q(V("include"));const Y=V("exclude");let X=!1,oe=Q(Y);if(Y==="no-prop"&&T.compilerOptions){const de=T.compilerOptions.outDir,ie=T.compilerOptions.declarationDir;(de||ie)&&(oe=[de,ie].filter(ve=>!!ve))}he===void 0&&ye===void 0&&(ye=[SF],X=!0);let pe,Ce;return ye&&(pe=wAe(ye,m,!0,t,"include")),oe&&(Ce=wAe(oe,m,!1,t,"exclude")),{filesSpecs:he,includeSpecs:ye,excludeSpecs:oe,validatedFilesSpec:mn(he,Mo),validatedIncludeSpecs:pe,validatedExcludeSpecs:Ce,pathPatterns:void 0,isDefaultIncludeSpec:X}}function U(ne){const he=CP(M,ne,A,r,p);return SAe(he,NP(T),u)&&m.push(EAe(M,l)),he}function K(ne){let he;const ye=se("references",Y=>typeof Y=="object","object");if(To(ye))for(const Y of ye)typeof Y.path!="string"?G(f.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(he||(he=[])).push({path:go(Y.path,ne),originalPath:Y.path,prepend:Y.prepend,circular:Y.circular});return he}function Q(ne){return To(ne)?ne:void 0}function V(ne){return se(ne,Mo,"string")}function se(ne,he,ye){if(Is(T,ne)&&!uw(T[ne]))if(To(T[ne])){const Y=T[ne];return!t&&!Jn(Y,he)&&m.push(Ul(f.Compiler_option_0_requires_a_value_of_type_1,ne,ye)),Y}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(Ul(ne,...he))}}function CGe(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 EAe({includeSpecs:e,excludeSpecs:t},r){return Ul(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 SAe(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function NP(e){return!Is(e,"files")&&!Is(e,"references")}function mF(e,t,r,i,o){const s=i.length;return SAe(e,o)?i.push(EAe(r,t)):li(i,l=>!CGe(l)),s!==i.length}function PGe(e){return!!e.options}function TAe(e,t,r,i,o,s,l,u){var p;i=Lu(i);const h=go(o||"",i);if(s.includes(h))return l.push(Ul(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,h].join(" -> "))),{raw:e||Zae(t,l)};const m=e?MGe(e,r,i,o,l):LGe(t,r,i,o,l);if((p=m.options)!=null&&p.paths&&(m.options.pathsBasePath=i),m.extendedConfigPath){s=s.concat([h]);const T={options:{}};Mo(m.extendedConfigPath)?y(T,m.extendedConfigPath):m.extendedConfigPath.forEach(A=>y(T,A)),!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=zo(T.extendedSourceFiles.keys())),m.options=Mx(T.options,m.options),m.watchOptions=m.watchOptions&&T.watchOptions?Mx(T.watchOptions,m.watchOptions):m.watchOptions||T.watchOptions}return m;function y(T,A){const R=kGe(t,A,r,s,l,u,T);if(R&&PGe(R)){const M=R.raw;let C;const O=U=>{M[U]&&(T[U]=Wt(M[U],K=>dp(K)?K:$r(C||(C=eC(ai(A),i,Mu(r.useCaseSensitiveFileNames))),K)))};O("include"),O("exclude"),O("files"),M.compileOnSave!==void 0&&(T.compileOnSave=M.compileOnSave),Mx(T.options,R.options),T.watchOptions=T.watchOptions&&R.watchOptions?Mx({},T.watchOptions,R.watchOptions):T.watchOptions||R.watchOptions}}}function MGe(e,t,r,i,o){Is(e,"excludes")&&o.push(Ul(f.Unknown_option_excludes_Did_you_mean_exclude));const s=NAe(e.compilerOptions,r,o,i),l=CAe(e.typeAcquisition,r,o,i),u=OGe(e.watchOptions,r,o);e.compileOnSave=wGe(e,r,o);const p=e.extends||e.extends===""?AAe(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:u,typeAcquisition:l,extendedConfigPath:p}}function AAe(e,t,r,i,o,s,l,u){let p;const h=i?yAe(i,r):r;if(Mo(e))p=IAe(e,t,h,o,l,u);else if(To(e)){p=[];for(let m=0;m<e.length;m++){const y=e[m];Mo(y)?p=Rn(p,IAe(y,t,h,o,l==null?void 0:l.elements[m],u)):JS(gw.element,e,r,o,s,l==null?void 0:l.elements[m],u)}}else JS(gw,e,r,o,s,l,u);return p}function LGe(e,t,r,i,o){const s=DAe(i);let l,u,p,h;const m=IGe(),y=uAe(e,o,{rootOptions:m,onPropertySet:T});return l||(l=XH(i)),h&&y&&y.compilerOptions===void 0&&o.push(Xf(e,h[0],f._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,nR(h[0]))),{raw:y,options:s,watchOptions:u,typeAcquisition:l,extendedConfigPath:p};function T(A,R,M,C,O){if(O&&O!==gw&&(R=JS(O,R,r,o,M,M.initializer,e)),C!=null&&C.name)if(O){let U;C===use?U=s:C===dse?U=u??(u={}):C===pse?U=l??(l=XH(i)):N.fail("Unknown option"),U[O.name]=R}else A&&(C!=null&&C.extraKeyDiagnostics)&&(C.elementOptions?o.push(Yae(A,C.extraKeyDiagnostics,void 0,M.name,e)):o.push(Xf(e,M.name,C.extraKeyDiagnostics.unknownOptionDiagnostic,A)));else C===m&&(O===gw?p=AAe(R,t,r,i,o,M,M.initializer,e):O||(A==="excludes"&&o.push(Xf(e,M.name,f.Unknown_option_excludes_Did_you_mean_exclude)),In($H,U=>U.name===A)&&(h=Rn(h,M.name))))}}function IAe(e,t,r,i,o,s){if(e=Lu(e),dp(e)||uo(e,"./")||uo(e,"../")){let u=go(e,r);if(!t.fileExists(u)&&!Al(u,".json")&&(u=`${u}.json`,!t.fileExists(u))){i.push(I0(s,o,f.File_0_not_found,e));return}return u}const l=Tse(e,$r(r,"tsconfig.json"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===""?i.push(I0(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(I0(s,o,f.File_0_not_found,e))}function kGe(e,t,r,i,o,s,l){const u=r.useCaseSensitiveFileNames?t:lh(t);let p,h,m;if(s&&(p=s.get(u))?{extendedResult:h,extendedConfig:m}=p:(h=Qae(t,y=>r.readFile(y)),h.parseDiagnostics.length||(m=TAe(void 0,h,r,ai(t),ic(t),i,o,s)),s&&s.set(u,{extendedResult:h,extendedConfig:m})),e&&((l.extendedSourceFiles??(l.extendedSourceFiles=new Set)).add(h.fileName),h.extendedSourceFiles))for(const y of h.extendedSourceFiles)l.extendedSourceFiles.add(y);if(h.parseDiagnostics.length){o.push(...h.parseDiagnostics);return}return m}function wGe(e,t,r){if(!Is(e,dw.name))return!1;const i=JS(dw,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function xAe(e,t,r){const i=[];return{options:NAe(e,t,i,r),errors:i}}function RAe(e,t,r){const i=[];return{options:CAe(e,t,i,r),errors:i}}function DAe(e){return e&&ic(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function NAe(e,t,r,i){const o=DAe(i);return ese(sAe(),e,t,o,hw,r),i&&(o.configFilePath=Lu(i)),o}function XH(e){return{enable:!!e&&ic(e)==="jsconfig.json",include:[],exclude:[]}}function CAe(e,t,r,i){const o=XH(i);return ese(cAe(),e,t,o,cse,r),o}function OGe(e,t,r){return ese(lAe(),e,t,void 0,EF,r)}function ese(e,t,r,i,o,s){if(t){for(const l in t){const u=e.get(l);u?(i||(i={}))[u.name]=JS(u,t[l],r,s):s.push(Yae(l,o))}return i}}function I0(e,t,r,...i){return e&&t?Xf(e,t,r,...i):Ul(r,...i)}function JS(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(I0(l,o==null?void 0:o.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(dAe(e,t)){const u=e.type;if(u==="list"&&To(t))return MAe(e,t,r,i,o,s,l);if(u==="listOrElement")return To(t)?MAe(e,t,r,i,o,s,l):JS(e.element,t,r,i,o,s,l);if(!Mo(e.type))return PAe(e,t,i,s,l);const p=fI(e,t,i,s,l);return uw(p)?p:WGe(e,r,p)}else i.push(I0(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,HH(e)))}function WGe(e,t,r){return e.isFilePath&&(r=go(r,t),r===""&&(r=".")),r}function fI(e,t,r,i,o){var s;if(uw(t))return;const l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(I0(o,i,...l))}function PAe(e,t,r,i,o){if(uw(t))return;const s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return fI(e,l,r,i,o);r.push(ZTe(e,(u,...p)=>I0(o,i,u,...p)))}function MAe(e,t,r,i,o,s,l){return mn(Wt(t,(u,p)=>JS(e.element,u,r,i,o,s==null?void 0:s.elements[p],l)),u=>e.listPreserveFalsyValues?!0:!!u)}function CP(e,t,r,i,o=et){t=ha(t);const s=Mu(i.useCaseSensitiveFileNames),l=new Map,u=new Map,p=new Map,{validatedFilesSpec:h,validatedIncludeSpecs:m,validatedExcludeSpecs:y}=e,T=JC(r,o),A=mk(r,T);if(h)for(const O of h){const U=go(O,t);l.set(s(U),U)}let R;if(m&&m.length>0)for(const O of i.readDirectory(t,Cs(A),y,m,void 0)){if(Il(O,".json")){if(!R){const Q=m.filter(se=>Al(se,".json")),V=Wt(W3(Q,t,"files"),se=>`^${se}$`);R=V?V.map(se=>By(se,i.useCaseSensitiveFileNames)):et}if(mi(R,Q=>Q.test(O))!==-1){const Q=s(O);!l.has(Q)&&!p.has(Q)&&p.set(Q,O)}continue}if(BGe(O,l,u,T,s))continue;GGe(O,u,T,s);const U=s(O);!l.has(U)&&!u.has(U)&&u.set(U,O)}const M=zo(l.values()),C=zo(u.values());return M.concat(C,zo(p.values()))}function tse(e,t,r,i,o){const{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:u}=t;if(!Ne(l)||!Ne(u))return!1;r=ha(r);const p=Mu(i);if(s){for(const h of s)if(p(go(h,r))===e)return!1}return kAe(e,u,i,o,r)}function LAe(e){const t=uo(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(Al(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function _F(e,t,r,i){return kAe(e,mn(t,o=>!LAe(o)),r,i)}function kAe(e,t,r,i,o){const s=qC(t,$r(ha(i),o),"exclude"),l=s&&By(s,r);return l?l.test(e)?!0:!vA(e)&&l.test(Fc(e)):!1}function wAe(e,t,r,i,o){return e.filter(l=>{if(!Mo(l))return!1;const u=nse(l,r);return u!==void 0&&t.push(s(...u)),u===void 0});function s(l,u){const p=V4(i,o,u);return I0(i,p,l,u)}}function nse(e,t){if(N.assert(typeof e=="string"),t&&HAe.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(LAe(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function FGe({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){const o=qC(t,r,"exclude"),s=o&&new RegExp(o,i?"":"i"),l={},u=new Map;if(e!==void 0){const p=[];for(const h of e){const m=ha($r(r,h));if(s&&s.test(m))continue;const y=zGe(m,i);if(y){const{key:T,path:A,flags:R}=y,M=u.get(T),C=M!==void 0?l[M]:void 0;(C===void 0||C<R)&&(l[M!==void 0?M:A]=R,M===void 0&&u.set(T,A),R===1&&p.push(T))}}for(const h in l)if(Is(l,h))for(const m of p){const y=rse(h,i);y!==m&&gm(m,y,r,!i)&&delete l[h]}}return l}function rse(e,t){return t?e:lh(e)}function zGe(e,t){const r=qAe.exec(e);if(r){const i=e.indexOf("?"),o=e.indexOf("*"),s=e.lastIndexOf(ol);return{key:rse(r[0],t),path:r[0],flags:i!==-1&&i<s||o!==-1&&o<s?1:0}}if(fU(e.substring(e.lastIndexOf(ol)+1))){const i=Qb(e);return{key:rse(i,t),path:i,flags:1}}}function BGe(e,t,r,i,o){const s=Xe(i,l=>Sc(e,l)?l:void 0);if(!s)return!1;for(const l of s){if(Il(e,l)&&(l!==".ts"||!Il(e,".d.ts")))return!1;const u=o(_0(e,l));if(t.has(u)||r.has(u)){if(l===".d.ts"&&(Il(e,".js")||Il(e,".jsx")))continue;return!0}}return!1}function GGe(e,t,r,i){const o=Xe(r,s=>Sc(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){const l=o[s];if(Il(e,l))return;const u=i(_0(e,l));t.delete(u)}}function ise(e){const t={};for(const r in e)if(Is(e,r)){const i=VH(r);i!==void 0&&(t[r]=ose(e[r],i))}return t}function ose(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(!To(e))return ose(e,t.element);case"list":const r=t.element;return To(e)?eo(e,i=>ose(i,r)):"";default:return zc(t.type,(i,o)=>{if(i===e)return o})}}function ase(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return ase(e.element);case"object":return{};default:const r=E6(e.type.keys());return r!==void 0?r:N.fail("Expected 'option.type' to have entries.")}}var dw,sse,PP,lse,pw,hF,tD,fw,mw,YH,$H,lg,QH,ZH,eq,gF,vF,tq,nq,rq,yF,_w,OAe,WAe,bF,hw,FAe,zAe,BAe,cse,GAe,EF,VAe,jAe,UAe,gw,use,dse,pse,fse,SF,HAe,qAe,VGe=I({"src/compiler/commandLineParser.ts"(){ra(),dw={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},sse=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),PP=new Map(Qa(sse.entries(),([e,t])=>[""+t,e])),lse=[["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"]],pw=lse.map(e=>e[0]),hF=new Map(lse),tD=[{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:nse},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:nse},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],fw=[{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}],mw={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},YH={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},$H=[{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},mw,YH,{name:"lib",type:"list",element:{name:"lib",type:hF,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:sse,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}],lg=[...fw,...$H],QH=lg.filter(e=>!!e.affectsSemanticDiagnostics),ZH=lg.filter(e=>!!e.affectsEmit),eq=lg.filter(e=>!!e.affectsDeclarationPath),gF=lg.filter(e=>!!e.affectsModuleResolution),vF=lg.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),tq=lg.filter(e=>!!e.affectsProgramStructure),nq=lg.filter(e=>Is(e,"transpileOptionValue")),rq=[{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}],yF=[...fw,...rq],_w=[{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}],WAe={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:rAe},bF={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},hw={alternateMode:WAe,getOptionsNameMap:eD,optionDeclarations:lg,unknownOptionDiagnostic:f.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:f.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Compiler_option_0_expects_an_argument},zAe={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:eD},BAe={alternateMode:zAe,getOptionsNameMap:rAe,optionDeclarations:yF,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},cse={optionDeclarations:_w,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},EF={getOptionsNameMap:aAe,optionDeclarations:tD,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},gw={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:f.File_Management,disallowNullOrUndefined:!0},use={name:"compilerOptions",type:"object",elementOptions:sAe(),extraKeyDiagnostics:hw},dse={name:"watchOptions",type:"object",elementOptions:lAe(),extraKeyDiagnostics:EF},pse={name:"typeAcquisition",type:"object",elementOptions:cAe(),extraKeyDiagnostics:cse},SF="**/*",HAe=/(^|\/)\*\*\/?$/,qAe=/^[^*?]*(?=\/[^/]*[*?])/}});function bo(e,t,...r){e.trace(lU(t,...r))}function Vg(e,t){return!!e.traceResolution&&t.trace!==void 0}function mI(e,t){let r;if(t&&e){const i=e.contents.packageJsonContent;typeof i.name=="string"&&typeof i.version=="string"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+ol.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function iq(e){return mI(void 0,e)}function JAe(e){if(e)return N.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function TF(e){const 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 jGe(e){const t=[];return e&1&&t.push(...xk),e&2&&t.push(...OR),e&4&&t.push(...Ik),e&8&&t.push(".json"),t}function mse(e){if(e)return N.assert(j3(e.extension)),{fileName:e.path,packageId:e.packageId}}function KAe(e,t,r,i,o,s,l,u,p){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!Xc(e)){const{resolvedFileName:h,originalPath:m}=$Ae(t.path,l.host,l.traceEnabled);m&&(t={...t,path:h,originalPath:m})}return XAe(t,r,i,o,s,l.resultFromCache,u,p)}function XAe(e,t,r,i,o,s,l,u){return s?l!=null&&l.isReadonly?{...s,failedLookupLocations:_se(s.failedLookupLocations,r),affectingLocations:_se(s.affectingLocations,i),resolutionDiagnostics:_se(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=nD(s.failedLookupLocations,r),s.affectingLocations=nD(s.affectingLocations,i),s.resolutionDiagnostics=nD(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:MP(r),affectingLocations:MP(i),resolutionDiagnostics:MP(o),alternateResult:u}}function MP(e){return e.length?e:void 0}function nD(e,t){return t!=null&&t.length?e!=null&&e.length?(e.push(...t),e):t:e}function _se(e,t){return e!=null&&e.length?t.length?[...e,...t]:e.slice():MP(t)}function YAe(e,t,r,i){if(!Is(e,t)){i.traceEnabled&&bo(i.host,f.package_json_does_not_have_a_0_field,t);return}const o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&bo(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 oq(e,t,r,i){const o=YAe(e,t,"string",i);if(o===void 0)return;if(!o){i.traceEnabled&&bo(i.host,f.package_json_had_a_falsy_0_field,t);return}const s=ha($r(r,o));return i.traceEnabled&&bo(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function UGe(e,t,r){return oq(e,"typings",t,r)||oq(e,"types",t,r)}function HGe(e,t,r){return oq(e,"tsconfig",t,r)}function qGe(e,t,r){return oq(e,"main",t,r)}function JGe(e,t){const r=YAe(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&bo(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function KGe(e,t){const r=JGe(e,t);if(r===void 0)return;if(t.traceEnabled)for(const l in r)Is(r,l)&&!k2.tryParse(l)&&bo(t.host,f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);const i=AF(r);if(!i){t.traceEnabled&&bo(t.host,f.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,_e);return}const{version:o,paths:s}=i;if(typeof s!="object"){t.traceEnabled&&bo(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 AF(e){Nse||(Nse=new hm(Re));for(const t in e){if(!Is(e,t))continue;const r=k2.tryParse(t);if(r!==void 0&&r.test(Nse))return{version:t,paths:e[t]}}}function LP(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=ai(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return XGe(r)}function XGe(e){let t;return ym(ha(e),r=>{const i=$r(r,yIe);(t??(t=[])).push(i)}),t}function YGe(e,t,r){const i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Dg(e,t,!i)===0}function $Ae(e,t,r){const i=lVe(e,t,r),o=YGe(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function QAe(e,t,r){const i=Al(e,"/node_modules/@types")||Al(e,"/node_modules/@types/")?hIe(t,r):t;return $r(e,i)}function hse(e,t,r,i,o,s,l){N.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.");const u=Vg(r,i);o&&(r=o.commandLine.options);const p=t?ai(t):void 0;let h=p?s==null?void 0:s.getFromDirectoryCache(e,l,p,o):void 0;if(!h&&p&&!Xc(e)&&(h=s==null?void 0:s.getFromNonRelativeNameCache(e,l,p,o)),h)return u&&(bo(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&bo(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),bo(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,p),V(h)),h;const m=LP(r,i);u&&(t===void 0?m===void 0?bo(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):bo(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?bo(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):bo(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),o&&bo(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const y=[],T=[];let A=gse(r);l!==void 0&&(A|=30);const R=pd(r);l===99&&3<=R&&R<=99&&(A|=32);const M=A&8?Qy(r,l):[],C=[],O={compilerOptions:r,host:i,traceEnabled:u,failedLookupLocations:y,affectingLocations:T,packageJsonInfoCache:s,features:A,conditions:M,requestContainingDirectory:p,reportDiagnostic:ne=>void C.push(ne),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let U=se(),K=!0;U||(U=G(),K=!1);let Q;if(U){const{fileName:ne,packageId:he}=U;let ye=ne,Y;r.preserveSymlinks||({resolvedFileName:ye,originalPath:Y}=$Ae(ne,i,u)),Q={primary:K,resolvedFileName:ye,originalPath:Y,packageId:he,isExternalLibraryImport:x0(ne)}}return h={resolvedTypeReferenceDirective:Q,failedLookupLocations:MP(y),affectingLocations:MP(T),resolutionDiagnostics:MP(C)},p&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(p,o).set(e,l,h),Xc(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(p,h)),u&&V(h),h;function V(ne){var he;(he=ne.resolvedTypeReferenceDirective)!=null&&he.resolvedFileName?ne.resolvedTypeReferenceDirective.packageId?bo(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,ne.resolvedTypeReferenceDirective.resolvedFileName,ky(ne.resolvedTypeReferenceDirective.packageId),ne.resolvedTypeReferenceDirective.primary):bo(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,ne.resolvedTypeReferenceDirective.resolvedFileName,ne.resolvedTypeReferenceDirective.primary):bo(i,f.Type_reference_directive_0_was_not_resolved,e)}function se(){if(m&&m.length)return u&&bo(i,f.Resolving_with_primary_search_path_0,m.join(", ")),Ht(m,ne=>{const he=QAe(ne,e,O),ye=Km(ne,i);if(!ye&&u&&bo(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,ne),r.typeRoots){const Y=oD(4,he,!ye,O);if(Y){const X=yw(Y.path),oe=X?a1(X,!1,O):void 0;return mse(mI(oe,Y))}}return mse(Ise(4,he,!ye,O))});u&&bo(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function G(){const ne=t&&ai(t);if(ne!==void 0){let he;if(!r.typeRoots||!Al(t,fD))if(u&&bo(i,f.Looking_up_in_node_modules_folder_initial_location_0,ne),Xc(e)){const{path:ye}=iIe(ne,e);he=uq(4,ye,!1,O,!0)}else{const ye=pIe(4,e,ne,O,void 0,void 0);he=ye&&ye.value}else u&&bo(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return mse(he)}else u&&bo(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function gse(e){let t=0;switch(pd(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 Qy(e,t){const r=pd(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}const i=t===99?["import"]:["require"];return e.noDtsResolution||i.push("types"),r!==100&&i.push("node"),So(i,e.customConditions)}function aq(e,t,r,i,o){const s=bw(o==null?void 0:o.getPackageJsonInfoCache(),i,r);return ym(t,l=>{if(ic(l)!=="node_modules"){const u=$r(l,"node_modules"),p=$r(u,e);return a1(p,!1,s)}})}function IF(e,t){if(e.types)return e.types;const r=[];if(t.directoryExists&&t.getDirectories){const i=LP(e,t);if(i){for(const o of i)if(t.directoryExists(o))for(const s of t.getDirectories(o)){const l=ha(s),u=$r(o,l,"package.json");if(!(t.fileExists(u)&&BC(u,t).typings===null)){const h=ic(l);h.charCodeAt(0)!==46&&r.push(h)}}}}return r}function xF(e){return!!(e!=null&&e.contents)}function vse(e){return!!e&&!e.contents}function yse(e){var t;if(e===null||typeof e!="object")return""+e;if(To(e))return`[${(t=e.map(i=>yse(i)))==null?void 0:t.join(",")}]`;let r="{";for(const i in e)Is(e,i)&&(r+=`${i}: ${yse(e[i])}`);return r+"}"}function sq(e,t){return t.map(r=>yse(L3(e,r))).join("|")+`|${e.pathsBasePath}`}function lq(e,t){const r=new Map,i=new Map;let o=new Map;return e&&r.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:l,update:u,clear:h,getOwnMap:()=>o};function s(y){return y?p(y.commandLine.options,!1):o}function l(y){return y?p(y.commandLine.options,!0):o}function u(y){e!==y&&(e?o=p(y,!0):r.set(y,o),e=y)}function p(y,T){let A=r.get(y);if(A)return A;const R=m(y);if(A=i.get(R),!A){if(e){const M=m(e);M===R?A=o:i.has(M)||i.set(M,o)}T&&(A??(A=new Map)),A&&i.set(R,A)}return A&&r.set(y,A),A}function h(){const y=e&&t.get(e);o.clear(),r.clear(),t.clear(),i.clear(),e&&(y&&t.set(e,y),r.set(e,o))}function m(y){let T=t.get(y);return T||t.set(y,T=sq(y,gF)),T}}function $Ge(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(u){return r==null?void 0:r.get(il(u,e,t))}function o(u,p){(r||(r=new Map)).set(il(u,e,t),p)}function s(){r=void 0}function l(){return r}}function ZAe(e,t,r,i){const o=e.getOrCreateMapOfCacheRedirects(t);let s=o.get(r);return s||(s=i(),o.set(r,s)),s}function QGe(e,t,r,i){const o=lq(r,i);return{getFromDirectoryCache:p,getOrCreateCacheForDirectory:u,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(h){o.update(h)}function u(h,m){const y=il(h,e,t);return ZAe(o,m,y,()=>_I())}function p(h,m,y,T){var A,R;const M=il(y,e,t);return(R=(A=o.getMapOfCacheRedirects(T))==null?void 0:A.get(M))==null?void 0:R.get(h,m)}}function kP(e,t){return t===void 0?e:`${t}|${e}`}function _I(){const 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)=>{const[u,p]=t.get(l);return o(s,u,p)})},size(){return e.size}};return r;function i(o,s){const l=kP(o,s);return t.set(l,[o,s]),l}}function ZGe(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function eVe(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function tVe(e,t,r,i,o){const s=lq(r,o);return{getFromNonRelativeNameCache:p,getOrCreateCacheForNonRelativeName:h,clear:l,update:u};function l(){s.clear()}function u(y){s.update(y)}function p(y,T,A,R){var M,C;return N.assert(!Xc(y)),(C=(M=s.getMapOfCacheRedirects(R))==null?void 0:M.get(kP(y,T)))==null?void 0:C.get(A)}function h(y,T,A){return N.assert(!Xc(y)),ZAe(s,A,kP(y,T),m)}function m(){const y=new Map;return{get:T,set:A};function T(M){return y.get(il(M,e,t))}function A(M,C){const O=il(M,e,t);if(y.has(O))return;y.set(O,C);const U=i(C),K=U&&R(O,U);let Q=O;for(;Q!==K;){const V=ai(Q);if(V===Q||y.has(V))break;y.set(V,C),Q=V}}function R(M,C){const O=il(ai(C),e,t);let U=0;const K=Math.min(M.length,O.length);for(;U<K&&M.charCodeAt(U)===O.charCodeAt(U);)U++;if(U===M.length&&(O.length===U||O[U]===ol))return M;const Q=dh(M);if(U<Q)return;const V=M.lastIndexOf(ol,U-1);if(V!==-1)return M.substr(0,Math.max(V,Q))}}}function eIe(e,t,r,i,o,s){s??(s=new Map);const l=QGe(e,t,r,s),u=tVe(e,t,r,o,s);return i??(i=$Ge(e,t)),{...i,...l,...u,clear:p,update:m,getPackageJsonInfoCache:()=>i,clearAllExceptPackageJsonInfoCache:h,optionsToRedirectsKey:s};function p(){h(),i.clear()}function h(){l.clear(),u.clear()}function m(y){l.update(y),u.update(y)}}function rD(e,t,r,i,o){const s=eIe(e,t,r,i,ZGe,o);return s.getOrCreateCacheForModuleName=(l,u,p)=>s.getOrCreateCacheForNonRelativeName(l,u,p),s}function RF(e,t,r,i,o){return eIe(e,t,r,i,eVe,o)}function cq(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function DF(e,t,r,i,o){return iD(e,t,cq(r),i,o)}function tIe(e,t,r,i){const o=ai(t);return r.getFromDirectoryCache(e,i,o,void 0)}function iD(e,t,r,i,o,s,l){var u,p,h;const m=Vg(r,i);s&&(r=s.commandLine.options),m&&(bo(i,f.Resolving_module_0_from_1,e,t),s&&bo(i,f.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));const y=ai(t);let T=o==null?void 0:o.getFromDirectoryCache(e,l,y,s);if(T)m&&bo(i,f.Resolution_for_module_0_was_found_in_cache_from_location_1,e,y);else{let A=r.moduleResolution;switch(A===void 0?(A=pd(r),m&&bo(i,f.Module_resolution_kind_is_not_specified_using_0,Bx[A])):m&&bo(i,f.Explicitly_specified_module_resolution_kind_Colon_0,Bx[A]),(u=id)==null||u.logStartResolveModule(e),A){case 3:T=oVe(e,t,r,i,o,s,l);break;case 99:T=aVe(e,t,r,i,o,s,l);break;case 2:T=Sse(e,t,r,i,o,s,l?Qy(r,l):void 0);break;case 1:T=Rse(e,t,r,i,o,s);break;case 100:T=Ese(e,t,r,i,o,s,l?Qy(r,l):void 0);break;default:return N.fail(`Unexpected moduleResolution: ${A}`)}T&&T.resolvedModule&&((p=id)==null||p.logInfoEvent(`Module "${e}" resolved to "${T.resolvedModule.resolvedFileName}"`)),(h=id)==null||h.logStopResolveModule(T&&T.resolvedModule?""+T.resolvedModule.resolvedFileName:"null"),o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(y,s).set(e,l,T),Xc(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(y,T))}return m&&(T.resolvedModule?T.resolvedModule.packageId?bo(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,T.resolvedModule.resolvedFileName,ky(T.resolvedModule.packageId)):bo(i,f.Module_name_0_was_successfully_resolved_to_1,e,T.resolvedModule.resolvedFileName):bo(i,f.Module_name_0_was_not_resolved,e)),T}function nIe(e,t,r,i,o){const s=nVe(e,t,i,o);return s?s.value:Xc(t)?rVe(e,t,r,i,o):iVe(e,t,i,o)}function nVe(e,t,r,i){var o;const{baseUrl:s,paths:l,configFile:u}=i.compilerOptions;if(l&&!Op(t)){i.traceEnabled&&(s&&bo(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),bo(i.host,f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));const p=m3(i.compilerOptions,i.host),h=u!=null&&u.configFileSpecs?(o=u.configFileSpecs).pathPatterns||(o.pathPatterns=V3(l)):void 0;return xse(e,t,p,l,h,r,!1,i)}}function rVe(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&bo(o.host,f.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const s=ha($r(r,t));let l,u;for(const p of o.compilerOptions.rootDirs){let h=ha(p);Al(h,ol)||(h+=ol);const m=uo(s,h)&&(u===void 0||u.length<h.length);o.traceEnabled&&bo(o.host,f.Checking_if_0_is_the_longest_matching_prefix_for_1_2,h,s,m),m&&(u=h,l=p)}if(u){o.traceEnabled&&bo(o.host,f.Longest_matching_prefix_for_0_is_1,s,u);const p=s.substr(u.length);o.traceEnabled&&bo(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,p,u,s);const h=i(e,s,!Km(r,o.host),o);if(h)return h;o.traceEnabled&&bo(o.host,f.Trying_other_entries_in_rootDirs);for(const m of o.compilerOptions.rootDirs){if(m===l)continue;const y=$r(ha(m),p);o.traceEnabled&&bo(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,p,m,y);const T=ai(y),A=i(e,y,!Km(T,o.host),o);if(A)return A}o.traceEnabled&&bo(o.host,f.Module_resolution_using_rootDirs_has_failed)}}function iVe(e,t,r,i){const{baseUrl:o}=i.compilerOptions;if(!o)return;i.traceEnabled&&bo(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t);const s=ha($r(o,t));return i.traceEnabled&&bo(i.host,f.Resolving_module_name_0_relative_to_base_url_1_2,t,o,s),r(e,s,!Km(ai(s),i.host),i)}function bse(e,t,r){const{resolvedModule:i,failedLookupLocations:o}=sVe(e,t,r);if(!i)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${o==null?void 0:o.join(", ")}`);return i.resolvedFileName}function oVe(e,t,r,i,o,s,l){return rIe(30,e,t,r,i,o,s,l)}function aVe(e,t,r,i,o,s,l){return rIe(30,e,t,r,i,o,s,l)}function rIe(e,t,r,i,o,s,l,u,p){const h=ai(r),m=u===99?32:0;let y=i.noDtsResolution?3:7;return g0(i)&&(y|=8),vw(e|m,t,h,i,o,s,y,!1,l,p)}function sVe(e,t,r){return vw(0,e,t,{moduleResolution:2,allowJs:!0},r,void 0,2,!1,void 0,void 0)}function Ese(e,t,r,i,o,s,l){const u=ai(t);let p=r.noDtsResolution?3:7;return g0(r)&&(p|=8),vw(gse(r),e,u,r,i,o,p,!1,s,l)}function Sse(e,t,r,i,o,s,l,u){let p;return u?p=8:r.noDtsResolution?(p=3,g0(r)&&(p|=8)):p=g0(r)?15:7,vw(l?30:0,e,ai(t),r,i,o,p,!!u,s,l)}function Tse(e,t,r){return vw(30,e,ai(t),{moduleResolution:99},r,void 0,8,!0,void 0,void 0)}function vw(e,t,r,i,o,s,l,u,p,h){var m,y,T,A,R;const M=Vg(i,o),C=[],O=[],U=pd(i);h??(h=Qy(i,U===100||U===2?void 0:e&32?99:1));const K=[],Q={compilerOptions:i,host:o,traceEnabled:M,failedLookupLocations:C,affectingLocations:O,packageJsonInfoCache:s,features:e,conditions:h??et,requestContainingDirectory:r,reportDiagnostic:ne=>void K.push(ne),isConfigLookup:u,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};M&&BA(U)&&bo(o,f.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",Q.conditions.map(ne=>`'${ne}'`).join(", "));let V;if(U===2){const ne=l&5,he=l&-6;V=ne&&G(ne,Q)||he&&G(he,Q)||void 0}else V=G(l,Q);let se;if(Q.resolvedPackageDirectory&&!u&&!Xc(t)){const ne=(V==null?void 0:V.value)&&l&5&&!cIe(5,V.value.resolved.extension);if((m=V==null?void 0:V.value)!=null&&m.isExternalLibraryImport&&ne&&e&8&&(h!=null&&h.includes("import"))){Zy(Q,f.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const he={...Q,features:Q.features&-9,reportDiagnostic:Ya},ye=G(l&5,he);(y=ye==null?void 0:ye.value)!=null&&y.isExternalLibraryImport&&(se=ye.value.resolved.path)}else if((!(V!=null&&V.value)||ne)&&U===2){Zy(Q,f.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);const he={...Q.compilerOptions,moduleResolution:100},ye={...Q,compilerOptions:he,features:30,conditions:Qy(he),reportDiagnostic:Ya},Y=G(l&5,ye);(T=Y==null?void 0:Y.value)!=null&&T.isExternalLibraryImport&&(se=Y.value.resolved.path)}}return KAe(t,(A=V==null?void 0:V.value)==null?void 0:A.resolved,(R=V==null?void 0:V.value)==null?void 0:R.isExternalLibraryImport,C,O,K,Q,s,se);function G(ne,he){const Y=nIe(ne,t,r,(X,oe,pe,Ce)=>uq(X,oe,pe,Ce,!0),he);if(Y)return rf({resolved:Y,isExternalLibraryImport:x0(Y.path)});if(Xc(t)){const{path:X,parts:oe}=iIe(r,t),pe=uq(ne,X,!1,he,!0);return pe&&rf({resolved:pe,isExternalLibraryImport:Or(oe,"node_modules")})}else{let X;if(e&2&&uo(t,"#")&&(X=pVe(ne,t,r,he,s,p)),!X&&e&4&&(X=dVe(ne,t,r,he,s,p)),!X){if(t.includes(":")){M&&bo(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,TF(ne));return}M&&bo(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,TF(ne)),X=pIe(ne,t,r,he,s,p)}return ne&4&&(X??(X=vIe(t,he))),X&&{value:X.value&&{resolved:X.value,isExternalLibraryImport:!0}}}}}function iIe(e,t){const r=$r(e,t),i=Wc(r),o=el(i);return{path:o==="."||o===".."?Fc(ha(r)):ha(r),parts:i}}function lVe(e,t,r){if(!t.realpath)return e;const i=ha(t.realpath(e));return r&&bo(t,f.Resolving_real_path_for_0_result_1,e,i),i}function uq(e,t,r,i,o){if(i.traceEnabled&&bo(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,TF(e)),!Dv(t)){if(!r){const l=ai(t);Km(l,i.host)||(i.traceEnabled&&bo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}const s=oD(e,t,r,i);if(s){const l=o?yw(s.path):void 0,u=l?a1(l,!1,i):void 0;return mI(u,s)}}if(r||Km(t,i.host)||(i.traceEnabled&&bo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return Ise(e,t,r,i,o)}function x0(e){return e.includes(Ih)}function yw(e,t){const r=ha(e),i=r.lastIndexOf(Ih);if(i===-1)return;const o=i+Ih.length;let s=oIe(r,o,t);return r.charCodeAt(o)===64&&(s=oIe(r,s,t)),r.slice(0,s)}function oIe(e,t,r){const i=e.indexOf(ol,t+1);return i===-1?r?e.length:t:i}function Ase(e,t,r,i){return iq(oD(e,t,r,i))}function oD(e,t,r,i){const o=aIe(e,t,r,i);if(o)return o;if(!(i.features&32)){const s=sIe(t,e,"",r,i);if(s)return s}}function aIe(e,t,r,i){if(!ic(t).includes("."))return;let s=Ad(t);s===t&&(s=t.substring(0,t.lastIndexOf(".")));const l=t.substring(s.length);return i.traceEnabled&&bo(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),sIe(s,e,l,r,i)}function dq(e,t,r,i){return e&1&&Sc(t,xk)||e&4&&Sc(t,Ik)?pq(t,r,i)!==void 0?{path:t,ext:S3(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&Il(t,".json")?pq(t,r,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:aIe(e,t,r,i)}function sIe(e,t,r,i,o){if(!i){const l=ai(e);l&&(i=!Km(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){const p=pq(e+l,i,o);return p===void 0?void 0:{path:p,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&u}}}function pq(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return lIe(e,t,r);const o=Fg(e)??"",s=o?hk(e,o):e;return Xe(r.compilerOptions.moduleSuffixes,l=>lIe(s+l+o,t,r))}function lIe(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&bo(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&bo(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function Ise(e,t,r,i,o=!0){const s=o?a1(t,r,i):void 0,l=s&&s.contents.packageJsonContent,u=s&&NF(s,i);return mI(s,mq(e,t,r,i,l,u))}function fq(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s;const l=5|(o?2:0),u=gse(t),p=bw(i==null?void 0:i.getPackageJsonInfoCache(),r,t);p.conditions=Qy(t),p.requestContainingDirectory=e.packageDirectory;const h=mq(l,e.packageDirectory,!1,p,e.contents.packageJsonContent,NF(e,p));if(s=Rn(s,h==null?void 0:h.path),u&8&&e.contents.packageJsonContent.exports){const m=SE([Qy(t,99),Qy(t,1)],Hm);for(const y of m){const T={...p,failedLookupLocations:[],conditions:y,host:r},A=cVe(e,e.contents.packageJsonContent.exports,T,l);if(A)for(const R of A)s=Rg(s,R.path)}}return e.contents.resolvedEntrypoints=s||!1}function cVe(e,t,r,i){let o;if(To(t))for(const l of t)s(l);else if(typeof t=="object"&&t!==null&&CF(t))for(const 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,jGe(i),void 0,[Dne(jA(l,"**/*"),".*")]).forEach(h=>{o=Rg(o,{path:h,ext:Gx(h),resolvedUsingTsExtension:void 0})})}else{const h=Wc(l).slice(2);if(h.includes("..")||h.includes(".")||h.includes("node_modules"))return!1;const m=$r(e.packageDirectory,l),y=go(m,(p=(u=r.host).getCurrentDirectory)==null?void 0:p.call(u)),T=dq(i,y,!1,r);if(T)return o=Rg(o,T,(A,R)=>A.path===R.path),!0}else if(Array.isArray(l)){for(const h of l)if(s(h))return!0}else if(typeof l=="object"&&l!==null)return Xe(Hh(l),h=>{if(h==="default"||Or(r.conditions,h)||Tw(r.conditions,h))return s(l[h]),!0})}}function bw(e,t,r){return{host:t,compilerOptions:r,traceEnabled:Vg(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:et,requestContainingDirectory:void 0,reportDiagnostic:Ya,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function Ew(e,t){const r=Wc(e);for(r.pop();r.length>0;){const i=a1(Ay(r),!1,t);if(i)return i;r.pop()}}function NF(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=KGe(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function a1(e,t,r){var i,o,s,l,u,p;const{host:h,traceEnabled:m}=r,y=$r(e,"package.json");if(t){(i=r.failedLookupLocations)==null||i.push(y);return}const T=(o=r.packageJsonInfoCache)==null?void 0:o.getPackageJsonInfo(y);if(T!==void 0){if(xF(T))return m&&bo(h,f.File_0_exists_according_to_earlier_cached_lookups,y),(s=r.affectingLocations)==null||s.push(y),T.packageDirectory===e?T:{packageDirectory:e,contents:T.contents};T.directoryExists&&m&&bo(h,f.File_0_does_not_exist_according_to_earlier_cached_lookups,y),(l=r.failedLookupLocations)==null||l.push(y);return}const A=Km(e,h);if(A&&h.fileExists(y)){const R=BC(y,h);m&&bo(h,f.Found_package_json_at_0,y);const M={packageDirectory:e,contents:{packageJsonContent:R,versionPaths:void 0,resolvedEntrypoints:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(y,M),(u=r.affectingLocations)==null||u.push(y),M}else A&&m&&bo(h,f.File_0_does_not_exist,y),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(y,{packageDirectory:e,directoryExists:A}),(p=r.failedLookupLocations)==null||p.push(y)}function mq(e,t,r,i,o,s){let l;o&&(i.isConfigLookup?l=HGe(o,t,i):l=e&4&&UGe(o,t,i)||e&7&&qGe(o,t,i)||void 0);const u=(T,A,R,M)=>{const C=dq(T,A,R,M);if(C)return iq(C);const O=T===4?5:T,U=M.features,K=M.candidateIsFromPackageJsonField;M.candidateIsFromPackageJsonField=!0,(o==null?void 0:o.type)!=="module"&&(M.features&=-33);const Q=uq(O,A,R,M,!1);return M.features=U,M.candidateIsFromPackageJsonField=K,Q},p=l?!Km(ai(l),i.host):void 0,h=r||!Km(t,i.host),m=$r(t,i.isConfigLookup?"tsconfig":"index");if(s&&(!l||gm(t,l))){const T=vm(t,l||m,!1);i.traceEnabled&&bo(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,Re,T);const A=xse(e,T,t,s.paths,void 0,u,p||h,i);if(A)return JAe(A.value)}const y=l&&JAe(u(e,l,p,i));if(y)return y;if(!(i.features&32))return oD(e,m,h,i)}function cIe(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 Sw(e){let t=e.indexOf(ol);return e[0]==="@"&&(t=e.indexOf(ol,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function CF(e){return Jn(Hh(e),t=>uo(t,"."))}function uVe(e){return!bt(Hh(e),t=>uo(t,"."))}function dVe(e,t,r,i,o,s){var l,u;const p=go($r(r,"dummy"),(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),h=Ew(p,i);if(!h||!h.contents.packageJsonContent.exports||typeof h.contents.packageJsonContent.name!="string")return;const m=Wc(t),y=Wc(h.contents.packageJsonContent.name);if(!Jn(y,(C,O)=>m[O]===C))return;const T=m.slice(y.length),A=Ne(T)?`.${ol}${T.join(ol)}`:".";if(jy(i.compilerOptions)&&!x0(r))return _q(h,e,A,i,o,s);const R=e&5,M=e&-6;return _q(h,R,A,i,o,s)||_q(h,M,A,i,o,s)}function _q(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"&&uVe(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:Is(e.contents.packageJsonContent.exports,".")&&(l=e.contents.packageJsonContent.exports["."]),l)return dIe(t,i,o,s,r,e,!1)(l,"",!1,".")}else if(CF(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&bo(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),rf(void 0);const l=uIe(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&bo(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),rf(void 0)}}function pVe(e,t,r,i,o,s){var l,u;if(t==="#"||uo(t,"#/"))return i.traceEnabled&&bo(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),rf(void 0);const p=go($r(r,"dummy"),(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),h=Ew(p,i);if(!h)return i.traceEnabled&&bo(i.host,f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,p),rf(void 0);if(!h.contents.packageJsonContent.imports)return i.traceEnabled&&bo(i.host,f.package_json_scope_0_has_no_imports_defined,h.packageDirectory),rf(void 0);const m=uIe(e,i,o,s,t,h.contents.packageJsonContent.imports,h,!0);return m||(i.traceEnabled&&bo(i.host,f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,h.packageDirectory),rf(void 0))}function hq(e,t){const 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 uIe(e,t,r,i,o,s,l,u){const p=dIe(e,t,r,i,o,l,u);if(!Al(o,ol)&&!o.includes("*")&&Is(s,o)){const y=s[o];return p(y,"",!1,o)}const h=iS(mn(Hh(s),y=>y.includes("*")||Al(y,"/")),hq);for(const y of h)if(t.features&16&&m(y,o)){const T=s[y],A=y.indexOf("*"),R=o.substring(y.substring(0,A).length,o.length-(y.length-1-A));return p(T,R,!0,y)}else if(Al(y,"*")&&uo(o,y.substring(0,y.length-1))){const T=s[y],A=o.substring(y.length-1);return p(T,A,!0,y)}else if(uo(o,y)){const T=s[y],A=o.substring(y.length);return p(T,A,!1,y)}function m(y,T){if(Al(y,"*"))return!1;const A=y.indexOf("*");return A===-1?!1:uo(T,y.substring(0,A))&&Al(T,y.substring(A+1))}}function dIe(e,t,r,i,o,s,l){return u;function u(p,h,m,y){if(typeof p=="string"){if(!m&&h.length>0&&!Al(p,"/"))return t.traceEnabled&&bo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),rf(void 0);if(!uo(p,"./")){if(l&&!uo(p,"../")&&!uo(p,"/")&&!dp(p)){const V=m?p.replace(/\*/g,h):p+h;Zy(t,f.Using_0_subpath_1_with_target_2,"imports",y,V),Zy(t,f.Resolving_module_0_from_1,V,s.packageDirectory+"/");const se=vw(t.features,V,s.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return rf(se.resolvedModule?{path:se.resolvedModule.resolvedFileName,extension:se.resolvedModule.extension,packageId:se.resolvedModule.packageId,originalPath:se.resolvedModule.originalPath,resolvedUsingTsExtension:se.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&bo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),rf(void 0)}const C=(Op(p)?Wc(p).slice(1):Wc(p)).slice(1);if(C.includes("..")||C.includes(".")||C.includes("node_modules"))return t.traceEnabled&&bo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),rf(void 0);const O=$r(s.packageDirectory,p),U=Wc(h);if(U.includes("..")||U.includes(".")||U.includes("node_modules"))return t.traceEnabled&&bo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),rf(void 0);t.traceEnabled&&bo(t.host,f.Using_0_subpath_1_with_target_2,l?"imports":"exports",y,m?p.replace(/\*/g,h):p+h);const K=T(m?O.replace(/\*/g,h):O+h),Q=R(K,h,$r(s.packageDirectory,"package.json"),l);return Q||rf(mI(s,dq(e,K,!1,t)))}else if(typeof p=="object"&&p!==null)if(Array.isArray(p)){if(!Ne(p))return t.traceEnabled&&bo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),rf(void 0);for(const M of p){const C=u(M,h,m,y);if(C)return C}}else{Zy(t,f.Entering_conditional_exports);for(const M of Hh(p))if(M==="default"||t.conditions.includes(M)||Tw(t.conditions,M)){Zy(t,f.Matched_0_condition_1,l?"imports":"exports",M);const C=p[M],O=u(C,h,m,y);if(O)return Zy(t,f.Resolved_under_condition_0,M),Zy(t,f.Exiting_conditional_exports),O;Zy(t,f.Failed_to_resolve_under_condition_0,M)}else Zy(t,f.Saw_non_matching_condition_0,M);Zy(t,f.Exiting_conditional_exports);return}else if(p===null)return t.traceEnabled&&bo(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),rf(void 0);return t.traceEnabled&&bo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),rf(void 0);function T(M){var C,O;return M===void 0?M:go(M,(O=(C=t.host).getCurrentDirectory)==null?void 0:O.call(C))}function A(M,C){return Fc($r(M,C))}function R(M,C,O,U){var K,Q,V,se;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!M.includes("/node_modules/")&&(!t.compilerOptions.configFile||gm(s.packageDirectory,T(t.compilerOptions.configFile.fileName),!gq(t)))){const ne=wv({useCaseSensitiveFileNames:()=>gq(t)}),he=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const ye=T(KP(t.compilerOptions,()=>[],((Q=(K=t.host).getCurrentDirectory)==null?void 0:Q.call(K))||"",ne));he.push(ye)}else if(t.requestContainingDirectory){const ye=T($r(t.requestContainingDirectory,"index.ts")),Y=T(KP(t.compilerOptions,()=>[ye,T(O)],((se=(V=t.host).getCurrentDirectory)==null?void 0:se.call(V))||"",ne));he.push(Y);let X=Fc(Y);for(;X&&X.length>1;){const oe=Wc(X);oe.pop();const pe=Ay(oe);he.unshift(pe),X=Fc(pe)}}he.length>1&&t.reportDiagnostic(Ul(U?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,C===""?".":C,O));for(const ye of he){const Y=G(ye);for(const X of Y)if(gm(X,M,!gq(t))){const oe=M.slice(X.length+1),pe=$r(ye,oe),Ce=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const de of Ce)if(Il(pe,de)){const ie=Rie(pe);for(const ve of ie){if(!cIe(e,ve))continue;const Le=U2(pe,ve,de,!gq(t));if(t.host.fileExists(Le))return rf(mI(s,dq(e,Le,!1,t)))}}}}}return;function G(ne){var he,ye;const Y=t.compilerOptions.configFile?((ye=(he=t.host).getCurrentDirectory)==null?void 0:ye.call(he))||"":ne,X=[];return t.compilerOptions.declarationDir&&X.push(T(A(Y,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&X.push(T(A(Y,t.compilerOptions.outDir))),X}}}}function Tw(e,t){if(!e.includes("types")||!uo(t,"types@"))return!1;const r=k2.tryParse(t.substring(6));return r?r.test(Re):!1}function pIe(e,t,r,i,o,s){return fIe(e,t,r,i,!1,o,s)}function fVe(e,t,r){return fIe(4,e,t,r,!0,void 0,void 0)}function fIe(e,t,r,i,o,s,l){const u=i.features===0?void 0:i.features&32?99:1,p=e&5,h=e&-6;if(p){Zy(i,f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,TF(p));const y=m(p);if(y)return y}if(h&&!o)return Zy(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,TF(h)),m(h);function m(y){return ym(Lu(r),T=>{if(ic(T)!=="node_modules"){const A=gIe(s,t,u,T,l,i);return A||rf(mIe(y,t,T,i,o,s,l))}})}}function mIe(e,t,r,i,o,s,l){const u=$r(r,"node_modules"),p=Km(u,i.host);if(!p&&i.traceEnabled&&bo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),!o){const h=_Ie(e,t,u,p,i,s,l);if(h)return h}if(e&4){const h=$r(u,"@types");let m=p;return p&&!Km(h,i.host)&&(i.traceEnabled&&bo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,h),m=!1),_Ie(4,hIe(t,i),h,m,i,s,l)}}function _Ie(e,t,r,i,o,s,l){var u,p;const h=ha($r(r,t)),{packageName:m,rest:y}=Sw(t),T=$r(r,m);let A,R=a1(h,!i,o);if(y!==""&&R&&(!(o.features&8)||!Is(((u=A=a1(T,!i,o))==null?void 0:u.contents.packageJsonContent)??et,"exports"))){const O=oD(e,h,!i,o);if(O)return iq(O);const U=mq(e,h,!i,o,R.contents.packageJsonContent,NF(R,o));return mI(R,U)}const M=(O,U,K,Q)=>{let V=(y||!(Q.features&32))&&oD(O,U,K,Q)||mq(O,U,K,Q,R&&R.contents.packageJsonContent,R&&NF(R,Q));return!V&&R&&(R.contents.packageJsonContent.exports===void 0||R.contents.packageJsonContent.exports===null)&&Q.features&32&&(V=oD(O,$r(U,"index.js"),K,Q)),mI(R,V)};if(y!==""&&(R=A??a1(T,!i,o)),R&&(o.resolvedPackageDirectory=!0),R&&R.contents.packageJsonContent.exports&&o.features&8)return(p=_q(R,e,$r(".",y),o,s,l))==null?void 0:p.value;const C=y!==""&&R?NF(R,o):void 0;if(C){o.traceEnabled&&bo(o.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,C.version,Re,y);const O=i&&Km(T,o.host),U=xse(e,y,T,C.paths,void 0,M,!O,o);if(U)return U.value}return M(e,h,!i,o)}function xse(e,t,r,i,o,s,l,u){o||(o=V3(i));const p=_U(o,t);if(p){const h=Mo(p)?void 0:lne(p,t),m=Mo(p)?p:sne(p);return u.traceEnabled&&bo(u.host,f.Module_name_0_matched_pattern_1,t,m),{value:Xe(i[m],T=>{const A=h?jA(T,h):T,R=ha($r(r,A));u.traceEnabled&&bo(u.host,f.Trying_substitution_0_candidate_module_location_Colon_1,T,A);const M=Fg(T);if(M!==void 0){const C=pq(R,l,u);if(C!==void 0)return iq({path:C,ext:M,resolvedUsingTsExtension:void 0})}return s(e,R,l||!Km(ai(R),u.host),u)})}}}function hIe(e,t){const r=aD(e);return t.traceEnabled&&r!==e&&bo(t.host,f.Scoped_package_detected_looking_in_0,r),r}function PF(e){return`@types/${aD(e)}`}function aD(e){if(uo(e,"@")){const t=e.replace(ol,yq);if(t!==e)return t.slice(1)}return e}function wP(e){const t=XN(e,"@types/");return t!==e?Aw(t):e}function Aw(e){return e.includes(yq)?"@"+e.replace(yq,ol):e}function gIe(e,t,r,i,o,s){const l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&bo(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 Rse(e,t,r,i,o,s){const l=Vg(r,i),u=[],p=[],h=ai(t),m=[],y={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:p,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:h,reportDiagnostic:R=>void m.push(R),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},T=A(5)||A(2|(r.resolveJsonModule?8:0));return KAe(e,T&&T.value,(T==null?void 0:T.value)&&x0(T.value.path),u,p,m,y,o);function A(R){const M=nIe(R,e,h,Ase,y);if(M)return{value:M};if(Xc(e)){const C=ha($r(h,e));return rf(Ase(R,C,!1,y))}else{const C=ym(h,O=>{const U=gIe(o,e,void 0,O,s,y);if(U)return U;const K=ha($r(O,e));return rf(Ase(R,K,!1,y))});if(C)return C;if(R&5){let O=fVe(e,h,y);return R&4&&(O??(O=vIe(e,y))),O}}}}function vIe(e,t){if(t.compilerOptions.typeRoots)for(const r of t.compilerOptions.typeRoots){const i=QAe(r,e,t),o=Km(r,t.host);!o&&t.traceEnabled&&bo(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);const s=oD(4,i,!o,t);if(s){const u=yw(s.path),p=u?a1(u,!1,t):void 0;return rf(mI(p,s))}const l=Ise(4,i,!o,t);if(l)return rf(l)}}function sD(e,t){return!!e.allowImportingTsExtensions||t&&Su(t)}function Dse(e,t,r,i,o,s){const l=Vg(r,i);l&&bo(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);const u=[],p=[],h=[],m={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:p,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:T=>void h.push(T),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},y=mIe(4,e,o,m,!1,void 0,void 0);return XAe(y,!0,u,p,h,m.resultFromCache,void 0)}function rf(e){return e!==void 0?{value:e}:void 0}function Zy(e,t,...r){e.traceEnabled&&bo(e.host,t,...r)}function gq(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var Nse,yIe,vq,Ih,yq,mVe=I({"src/compiler/moduleNameResolver.ts"(){ra(),yIe=$r("node_modules","@types"),vq=(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))(vq||{}),Ih="/node_modules/",yq="__"}});function jg(e,t){return e.body&&!e.body.parent&&(Ha(e.body,e),Gy(e.body,!1)),e.body?Cse(e.body,t):1}function Cse(e,t=new Map){const r=as(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);const i=_Ve(e,t);return t.set(r,i),i}function _Ve(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(ME(e))return 2;break;case 272:case 271:if(!Qr(e,32))return 0;break;case 278:const r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let i=0;for(const o of r.exportClause.elements){const s=hVe(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 268:{let i=0;return Uo(e,o=>{const s=Cse(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:N.assertNever(s)}}),i}case 267:return jg(e,t);case 80:if(e.flags&4096)return 0}return 1}function hVe(e,t){const r=e.propertyName||e.name;let i=e.parent;for(;i;){if(Ko(i)||L_(i)||$i(i)){const o=i.statements;let s;for(const l of o)if(rL(l,r)){l.parent||(Ha(l,i),Gy(l,!1));const u=Cse(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 hI(e){return N.attachFlowNodeDebugInfo(e),e}function Pse(e,t){var r,i;rl("beforeBind"),(r=id)==null||r.logStartBindFile(""+e.fileName),EIe(e,t),(i=id)==null||i.logStopBindFile(),rl("afterBind"),Qp("Bind","beforeBind","afterBind")}function gVe(){var e,t,r,i,o,s,l,u,p,h,m,y,T,A,R,M,C,O,U,K,Q,V,se=!1,G=0,ne,he,ye={flags:1},Y={flags:1},X=q();return pe;function oe(W,Te,...st){return Xf(Un(W)||e,W,Te,...st)}function pe(W,Te){var st,qt;e=W,t=Te,r=os(t),V=Ce(e,Te),he=new Set,G=0,ne=su.getSymbolConstructor(),N.attachFlowNodeDebugInfo(ye),N.attachFlowNodeDebugInfo(Y),e.locals||((st=sr)==null||st.push(sr.Phase.Bind,"bindSourceFile",{path:e.path},!0),we(e),(qt=sr)==null||qt.pop(),e.symbolCount=G,e.classifiableNames=he,cu()),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,h=!1,m=void 0,y=void 0,T=void 0,A=void 0,R=void 0,M=void 0,C=void 0,U=void 0,K=!1,se=!1,Q=0}function Ce(W,Te){return dd(Te,"alwaysStrict")&&!W.isDeclarationFile?!0:!!W.externalModuleIndicator}function de(W,Te){return G++,new ne(W,Te)}function ie(W,Te,st){W.flags|=st,Te.symbol=W,W.declarations=Rg(W.declarations,Te),st&1955&&!W.exports&&(W.exports=ca()),st&6240&&!W.members&&(W.members=ca()),W.constEnumOnlyModule&&W.flags&304&&(W.constEnumOnlyModule=!1),st&111551&&jL(W,Te)}function ve(W){if(W.kind===277)return W.isExportEquals?"export=":"default";const Te=Lo(W);if(Te){if(ku(W)){const st=Qf(Te);return A_(W)?"__global":`"${st}"`}if(Te.kind===167){const st=Te.expression;if(ef(st))return _l(st.text);if(l3(st))return pa(st.operator)+st.operand.text;N.fail("Only computed properties with literal names have declaration names")}if(qi(Te)){const st=au(W);if(!st)return;const qt=st.symbol;return ek(qt,Te.escapedText)}return Qm(Te)?VA(Te):x_(Te)?CC(Te):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(zl(W)===2)return"export=";N.fail("Unknown binary declaration kind");break;case 324:return _R(W)?"__new":"__call";case 169:return N.assert(W.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${N.formatSyntaxKind(W.parent.kind)}, expected JSDocFunctionType`),"arg"+W.parent.parameters.indexOf(W)}}function Le(W){return ad(W)?xs(W.name):Vi(N.checkDefined(ve(W)))}function Ue(W,Te,st,qt,rr,ii,Yr){N.assert(Yr||!Wy(st));const oo=Qr(st,2048)||Ku(st)&&st.name.escapedText==="default",wa=Yr?"__computed":oo&&Te?"default":ve(st);let Oa;if(wa===void 0)Oa=de(0,"__missing");else if(Oa=W.get(wa),qt&2885600&&he.add(wa),!Oa)W.set(wa,Oa=de(0,wa)),ii&&(Oa.isReplaceableByMethod=!0);else{if(ii&&!Oa.isReplaceableByMethod)return Oa;if(Oa.flags&rr){if(Oa.isReplaceableByMethod)W.set(wa,Oa=de(0,wa));else if(!(qt&3&&Oa.flags&67108864)){ad(st)&&Ha(st.name,st);let Ol=Oa.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,pu=!0;(Oa.flags&384||qt&384)&&(Ol=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,pu=!1);let Rc=!1;Ne(Oa.declarations)&&(oo||Oa.declarations&&Oa.declarations.length&&st.kind===277&&!st.isExportEquals)&&(Ol=f.A_module_cannot_have_multiple_default_exports,pu=!1,Rc=!0);const Ip=[];xm(st)&&Fl(st.type)&&Qr(st,32)&&Oa.flags&2887656&&Ip.push(oe(st,f.Did_you_mean_0,`export type { ${Vi(st.name.escapedText)} }`));const Hd=Lo(st)||st;Xe(Oa.declarations,(us,Pm)=>{const Mm=Lo(us)||us,Ui=pu?oe(Mm,Ol,Le(us)):oe(Mm,Ol);e.bindDiagnostics.push(Rc?Ma(Ui,oe(Hd,Pm===0?f.Another_export_default_is_here:f.and_here)):Ui),Rc&&Ip.push(oe(Mm,f.The_first_export_default_is_here))});const ab=pu?oe(Hd,Ol,Le(st)):oe(Hd,Ol);e.bindDiagnostics.push(Ma(ab,...Ip)),Oa=de(0,wa)}}}return ie(Oa,st,qt),Oa.parent?N.assert(Oa.parent===Te,"Existing symbol parent should match new one"):Oa.parent=Te,Oa}function Ee(W,Te,st){const qt=!!(n0(W)&32)||De(W);if(Te&2097152)return W.kind===281||W.kind===271&&qt?Ue(o.symbol.exports,o.symbol,W,Te,st):(N.assertNode(o,ph),Ue(o.locals,void 0,W,Te,st));if($f(W)&&N.assert(lr(W)),!ku(W)&&(qt||o.flags&128)){if(!ph(o)||!o.locals||Qr(W,2048)&&!ve(W))return Ue(o.symbol.exports,o.symbol,W,Te,st);const rr=Te&111551?1048576:0,ii=Ue(o.locals,void 0,W,rr,st);return ii.exportSymbol=Ue(o.symbol.exports,o.symbol,W,Te,st),W.localSymbol=ii,ii}else return N.assertNode(o,ph),Ue(o.locals,void 0,W,Te,st)}function De(W){if(W.parent&&Xl(W)&&(W=W.parent),!$f(W))return!1;if(!Jk(W)&&W.fullName)return!0;const Te=Lo(W);return Te?!!(lk(Te.parent)&&ec(Te.parent)||Ju(Te.parent)&&n0(Te.parent)&32):!1}function Me(W,Te){const st=o,qt=s,rr=l;if(Te&1?(W.kind!==219&&(s=o),o=l=W,Te&32&&(o.locals=ca(),ir(o))):Te&2&&(l=W,Te&32&&(l.locals=void 0)),Te&4){const ii=m,Yr=y,oo=T,wa=A,Oa=C,Ol=U,pu=K,Rc=Te&16&&!Qr(W,1024)&&!W.asteriskToken&&!!bS(W)||W.kind===175;Rc||(m=hI({flags:2}),Te&144&&(m.node=W)),A=Rc||W.kind===176||lr(W)&&(W.kind===262||W.kind===218)?Mn():void 0,C=void 0,y=void 0,T=void 0,U=void 0,K=!1,je(W),W.flags&=-5633,!(m.flags&1)&&Te&8&&Kf(W.body)&&(W.flags|=512,K&&(W.flags|=1024),W.endFlowNode=m),W.kind===312&&(W.flags|=Q,W.endFlowNode=m),A&&(Yt(A,m),m=Ln(A),(W.kind===176||W.kind===175||lr(W)&&(W.kind===262||W.kind===218))&&(W.returnFlowNode=m)),Rc||(m=ii),y=Yr,T=oo,A=wa,C=Oa,U=Ol,K=pu}else Te&64?(h=!1,je(W),N.assertNotNode(W,Ve),W.flags=h?W.flags|256:W.flags&-257):je(W);o=st,s=qt,l=rr}function We(W){At(W,Te=>Te.kind===262?we(Te):void 0),At(W,Te=>Te.kind!==262?we(Te):void 0)}function At(W,Te=we){W!==void 0&&Xe(W,Te)}function Se(W){Uo(W,we,At)}function je(W){const Te=se;if(se=!1,Vt(W)){Se(W),Et(W),se=Te;return}switch(W.kind>=243&&W.kind<=259&&!t.allowUnreachableCode&&(W.flowNode=m),W.kind){case 247:Qi(W);break;case 246:Io(W);break;case 248:fa(W);break;case 249:case 250:ka(W);break;case 245:Tn(W);break;case 253:case 257:wn(W);break;case 252:case 251:ft(W);break;case 258:Ct(W);break;case 255:le(W);break;case 269:Fe(W);break;case 296:pt(W);break;case 244:j(W);break;case 256:Rt(W);break;case 224:yn(W);break;case 225:fn(W);break;case 226:if(Wv(W)){se=Te,hn(W);return}X(W);break;case 220:Oe(W);break;case 227:Lt(W);break;case 260:me(W);break;case 211:case 212:Pi(W);break;case 213:xi(W);break;case 235:qn(W);break;case 353:case 345:case 347:ke(W);break;case 312:{We(W.statements),we(W.endOfFileToken);break}case 241:case 268:We(W.statements);break;case 208:J(W);break;case 169:fe(W);break;case 210:case 209:case 303:case 230:se=Te;default:Se(W);break}Et(W),se=Te}function ot(W){switch(W.kind){case 80:case 81:case 110:case 211:case 212:return vt(W);case 213:return $e(W);case 217:if(XR(W))return!1;case 235:return ot(W.expression);case 226:return tn(W);case 224:return W.operator===54&&ot(W.operand);case 221:return ot(W.expression)}return!1}function Bt(W){return FC(W)||(Fr(W)||oI(W)||Gd(W))&&Bt(W.expression)||mr(W)&&W.operatorToken.kind===28&&Bt(W.right)||$s(W)&&(ef(W.argumentExpression)||Bl(W.argumentExpression))&&Bt(W.expression)||Pc(W)&&Bt(W.left)}function vt(W){return Bt(W)||qu(W)&&vt(W.expression)}function $e(W){if(W.arguments){for(const Te of W.arguments)if(vt(Te))return!0}return!!(W.expression.kind===211&&vt(W.expression.expression))}function It(W,Te){return VR(W)&&rn(W.expression)&&ls(Te)}function tn(W){switch(W.operatorToken.kind){case 64:case 76:case 77:case 78:return vt(W.left);case 35:case 36:case 37:case 38:return rn(W.left)||rn(W.right)||It(W.right,W.left)||It(W.left,W.right)||fC(W.right)&&ot(W.left)||fC(W.left)&&ot(W.right);case 104:return rn(W.left);case 103:return ot(W.right);case 28:return ot(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 vt(W)}function Mn(){return hI({flags:4,antecedents:void 0})}function $n(){return hI({flags:8,antecedents:void 0})}function gn(W,Te,st){return hI({flags:1024,target:W,antecedents:Te,antecedent:st})}function Qt(W){W.flags|=W.flags&2048?4096:2048}function Yt(W,Te){!(Te.flags&1)&&!Or(W.antecedents,Te)&&((W.antecedents||(W.antecedents=[])).push(Te),Qt(Te))}function vi(W,Te,st){return Te.flags&1?Te:st?(st.kind===112&&W&64||st.kind===97&&W&32)&&!f4(st)&&!NV(st.parent)?ye:ot(st)?(Qt(Te),hI({flags:W,antecedent:Te,node:st})):Te:W&32?Te:ye}function so(W,Te,st,qt){return Qt(W),hI({flags:128,antecedent:W,switchStatement:Te,clauseStart:st,clauseEnd:qt})}function Wi(W,Te,st){Qt(Te);const qt=hI({flags:W,antecedent:Te,node:st});return C&&Yt(C,qt),qt}function Co(W,Te){return Qt(W),hI({flags:512,antecedent:W,node:Te})}function Ln(W){const Te=W.antecedents;return Te?Te.length===1?Te[0]:W:ye}function Ci(W){const Te=W.parent;switch(Te.kind){case 245:case 247:case 246:return Te.expression===W;case 248:case 227:return Te.condition===W}return!1}function Ar(W){for(;;)if(W.kind===217)W=W.expression;else if(W.kind===224&&W.operator===54)W=W.operand;else return sk(W)}function sn(W){return Xj(hs(W))}function tt(W){for(;Gd(W.parent)||Xy(W.parent)&&W.parent.operator===54;)W=W.parent;return!Ci(W)&&!Ar(W.parent)&&!(qu(W.parent)&&W.parent.expression===W)}function zt(W,Te,st,qt){const rr=R,ii=M;R=st,M=qt,W(Te),R=rr,M=ii}function Dn(W,Te,st){zt(we,W,Te,st),(!W||!sn(W)&&!Ar(W)&&!(qu(W)&&lC(W)))&&(Yt(Te,vi(32,m,W)),Yt(st,vi(64,m,W)))}function ci(W,Te,st){const qt=y,rr=T;y=Te,T=st,we(W),y=qt,T=rr}function yi(W,Te){let st=U;for(;st&&W.parent.kind===256;)st.continueTarget=Te,st=st.next,W=W.parent;return Te}function Qi(W){const Te=yi(W,$n()),st=Mn(),qt=Mn();Yt(Te,m),m=Te,Dn(W.expression,st,qt),m=Ln(st),ci(W.statement,qt,Te),Yt(Te,m),m=Ln(qt)}function Io(W){const Te=$n(),st=yi(W,Mn()),qt=Mn();Yt(Te,m),m=Te,ci(W.statement,qt,st),Yt(st,m),m=Ln(st),Dn(W.expression,Te,qt),m=Ln(qt)}function fa(W){const Te=yi(W,$n()),st=Mn(),qt=Mn();we(W.initializer),Yt(Te,m),m=Te,Dn(W.condition,st,qt),m=Ln(st),ci(W.statement,qt,Te),we(W.incrementor),Yt(Te,m),m=Ln(qt)}function ka(W){const Te=yi(W,$n()),st=Mn();we(W.expression),Yt(Te,m),m=Te,W.kind===250&&we(W.awaitModifier),Yt(st,m),we(W.initializer),W.initializer.kind!==261&&_t(W.initializer),ci(W.statement,st,Te),Yt(Te,m),m=Ln(st)}function Tn(W){const Te=Mn(),st=Mn(),qt=Mn();Dn(W.expression,Te,st),m=Ln(Te),we(W.thenStatement),Yt(qt,m),m=Ln(st),we(W.elseStatement),Yt(qt,m),m=Ln(qt)}function wn(W){we(W.expression),W.kind===253&&(K=!0,A&&Yt(A,m)),m=ye}function He(W){for(let Te=U;Te;Te=Te.next)if(Te.name===W)return Te}function mt(W,Te,st){const qt=W.kind===252?Te:st;qt&&(Yt(qt,m),m=ye)}function ft(W){if(we(W.label),W.label){const Te=He(W.label.escapedText);Te&&(Te.referenced=!0,mt(W,Te.breakTarget,Te.continueTarget))}else mt(W,y,T)}function Ct(W){const Te=A,st=C,qt=Mn(),rr=Mn();let ii=Mn();if(W.finallyBlock&&(A=rr),Yt(ii,m),C=ii,we(W.tryBlock),Yt(qt,m),W.catchClause&&(m=Ln(ii),ii=Mn(),Yt(ii,m),C=ii,we(W.catchClause),Yt(qt,m)),A=Te,C=st,W.finallyBlock){const Yr=Mn();Yr.antecedents=So(So(qt.antecedents,ii.antecedents),rr.antecedents),m=Yr,we(W.finallyBlock),m.flags&1?m=ye:(A&&rr.antecedents&&Yt(A,gn(Yr,rr.antecedents,m)),C&&ii.antecedents&&Yt(C,gn(Yr,ii.antecedents,m)),m=qt.antecedents?gn(Yr,qt.antecedents,m):ye)}else m=Ln(qt)}function le(W){const Te=Mn();we(W.expression);const st=y,qt=O;y=Te,O=m,we(W.caseBlock),Yt(Te,m);const rr=Xe(W.caseBlock.clauses,ii=>ii.kind===297);W.possiblyExhaustive=!rr&&!Te.antecedents,rr||Yt(Te,so(O,W,0,0)),y=st,O=qt,m=Ln(Te)}function Fe(W){const Te=W.clauses,st=W.parent.expression.kind===112||ot(W.parent.expression);let qt=ye;for(let rr=0;rr<Te.length;rr++){const ii=rr;for(;!Te[rr].statements.length&&rr+1<Te.length;)qt===ye&&(m=O),we(Te[rr]),rr++;const Yr=Mn();Yt(Yr,st?so(O,W.parent,ii,rr+1):O),Yt(Yr,qt),m=Ln(Yr);const oo=Te[rr];we(oo),qt=m,!(m.flags&1)&&rr!==Te.length-1&&t.noFallthroughCasesInSwitch&&(oo.fallthroughFlowNode=m)}}function pt(W){const Te=m;m=O,we(W.expression),m=Te,At(W.statements)}function j(W){we(W.expression),it(W.expression)}function it(W){if(W.kind===213){const Te=W;Te.expression.kind!==108&&FC(Te.expression)&&(m=Co(m,Te))}}function Rt(W){const Te=Mn();U={next:U,name:W.label.escapedText,breakTarget:Te,continueTarget:void 0,referenced:!1},we(W.label),we(W.statement),!U.referenced&&!t.allowUnusedLabels&&xc(uoe(t),W.label,f.Unused_label),U=U.next,Yt(Te,m),m=Ln(Te)}function Ye(W){W.kind===226&&W.operatorToken.kind===64?_t(W.left):_t(W)}function _t(W){if(Bt(W))m=Wi(16,m,W);else if(W.kind===209)for(const Te of W.elements)Te.kind===230?_t(Te.expression):Ye(Te);else if(W.kind===210)for(const Te of W.properties)Te.kind===303?Ye(Te.initializer):Te.kind===304?_t(Te.name):Te.kind===305&&_t(Te.expression)}function Gt(W,Te,st){const qt=Mn();W.operatorToken.kind===56||W.operatorToken.kind===77?Dn(W.left,qt,st):Dn(W.left,Te,qt),m=Ln(qt),we(W.operatorToken),WC(W.operatorToken.kind)?(zt(we,W.right,Te,st),_t(W.left),Yt(Te,vi(32,m,W)),Yt(st,vi(64,m,W))):Dn(W.right,Te,st)}function yn(W){if(W.operator===54){const Te=R;R=M,M=Te,Se(W),M=R,R=Te}else Se(W),(W.operator===46||W.operator===47)&&_t(W.operand)}function fn(W){Se(W),(W.operator===46||W.operator===47)&&_t(W.operand)}function hn(W){se?(se=!1,we(W.operatorToken),we(W.right),se=!0,we(W.left)):(se=!0,we(W.left),se=!1,we(W.operatorToken),we(W.right)),_t(W.left)}function q(){return sF(W,Te,st,qt,rr,void 0);function W(Yr,oo){if(oo){oo.stackIndex++,Ha(Yr,i);const Oa=V;vr(Yr);const Ol=i;i=Yr,oo.skip=!1,oo.inStrictModeStack[oo.stackIndex]=Oa,oo.parentStack[oo.stackIndex]=Ol}else oo={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};const wa=Yr.operatorToken.kind;if(ak(wa)||WC(wa)){if(tt(Yr)){const Oa=Mn();Gt(Yr,Oa,Oa),m=Ln(Oa)}else Gt(Yr,R,M);oo.skip=!0}return oo}function Te(Yr,oo,wa){if(!oo.skip){const Oa=ii(Yr);return wa.operatorToken.kind===28&&it(Yr),Oa}}function st(Yr,oo,wa){oo.skip||we(Yr)}function qt(Yr,oo,wa){if(!oo.skip){const Oa=ii(Yr);return wa.operatorToken.kind===28&&it(Yr),Oa}}function rr(Yr,oo){if(!oo.skip){const Ol=Yr.operatorToken.kind;if(Ov(Ol)&&!eg(Yr)&&(_t(Yr.left),Ol===64&&Yr.left.kind===212)){const pu=Yr.left;rn(pu.expression)&&(m=Wi(256,m,Yr))}}const wa=oo.inStrictModeStack[oo.stackIndex],Oa=oo.parentStack[oo.stackIndex];wa!==void 0&&(V=wa),Oa!==void 0&&(i=Oa),oo.skip=!1,oo.stackIndex--}function ii(Yr){if(Yr&&mr(Yr)&&!Wv(Yr))return Yr;we(Yr)}}function Oe(W){Se(W),W.expression.kind===211&&_t(W.expression)}function Lt(W){const Te=Mn(),st=Mn(),qt=Mn();Dn(W.condition,Te,st),m=Ln(Te),we(W.questionToken),we(W.whenTrue),Yt(qt,m),m=Ln(st),we(W.colonToken),we(W.whenFalse),Yt(qt,m),m=Ln(qt)}function L(W){const Te=Gc(W)?void 0:W.name;if(ta(Te))for(const st of Te.elements)L(st);else m=Wi(16,m,W)}function me(W){Se(W),(W.initializer||Yx(W.parent.parent))&&L(W)}function J(W){we(W.dotDotDotToken),we(W.propertyName),Be(W.initializer),we(W.name)}function fe(W){At(W.modifiers),we(W.dotDotDotToken),we(W.questionToken),we(W.type),Be(W.initializer),we(W.name)}function Be(W){if(!W)return;const Te=m;if(we(W),Te===ye||Te===m)return;const st=Mn();Yt(st,Te),Yt(st,m),m=Ln(st)}function ke(W){we(W.tagName),W.kind!==347&&W.fullName&&(Ha(W.fullName,W),Gy(W.fullName,!1)),typeof W.comment!="string"&&At(W.comment)}function Tt(W){Se(W);const Te=d0(W);Te&&Te.kind!==174&&ie(Te.symbol,Te,32)}function kt(W,Te,st){zt(we,W,Te,st),(!qu(W)||lC(W))&&(Yt(Te,vi(32,m,W)),Yt(st,vi(64,m,W)))}function en(W){switch(W.kind){case 211:we(W.questionDotToken),we(W.name);break;case 212:we(W.questionDotToken),we(W.argumentExpression);break;case 213:we(W.questionDotToken),At(W.typeArguments),At(W.arguments);break}}function En(W,Te,st){const qt=sC(W)?Mn():void 0;kt(W.expression,qt||Te,st),qt&&(m=Ln(qt)),zt(en,W,Te,st),lC(W)&&(Yt(Te,vi(32,m,W)),Yt(st,vi(64,m,W)))}function Gn(W){if(tt(W)){const Te=Mn();En(W,Te,Te),m=Ln(Te)}else En(W,R,M)}function qn(W){qu(W)?Gn(W):Se(W)}function Pi(W){qu(W)?Gn(W):Se(W)}function xi(W){if(qu(W))Gn(W);else{const Te=hs(W.expression);Te.kind===218||Te.kind===219?(At(W.typeArguments),At(W.arguments),we(W.expression)):(Se(W),W.expression.kind===108&&(m=Co(m,W)))}if(W.expression.kind===211){const Te=W.expression;Ve(Te.name)&&rn(Te.expression)&&kj(Te.name)&&(m=Wi(256,m,W))}}function ir(W){u&&(u.nextContainer=W),u=W}function Vr(W,Te,st){switch(o.kind){case 267:return Ee(W,Te,st);case 312:return Mi(W,Te,st);case 231:case 263:return vo(W,Te,st);case 266:return Ue(o.symbol.exports,o.symbol,W,Te,st);case 187:case 329:case 210:case 264:case 292:return Ue(o.symbol.members,o.symbol,W,Te,st);case 184:case 185:case 179:case 180:case 330:case 181:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 324:case 175:case 265:case 200:return o.locals&&N.assertNode(o,ph),Ue(o.locals,void 0,W,Te,st)}}function vo(W,Te,st){return aa(W)?Ue(o.symbol.exports,o.symbol,W,Te,st):Ue(o.symbol.members,o.symbol,W,Te,st)}function Mi(W,Te,st){return sc(e)?Ee(W,Te,st):Ue(e.locals,void 0,W,Te,st)}function Ri(W){const Te=$i(W)?W:ri(W.body,L_);return!!Te&&Te.statements.some(st=>Yl(st)||kl(st))}function Jr(W){W.flags&33554432&&!Ri(W)?W.flags|=128:W.flags&=-129}function xo(W){if(Jr(W),ku(W))if(Qr(W,32)&&Ms(W,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),tj(W))Nn(W);else{let Te;if(W.name.kind===11){const{text:qt}=W.name;Te=PR(qt),Te===void 0&&Ms(W.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,qt)}const st=Vr(W,512,110735);e.patternAmbientModules=Rn(e.patternAmbientModules,Te&&!Mo(Te)?{pattern:Te,symbol:st}:void 0)}else{const Te=Nn(W);if(Te!==0){const{symbol:st}=W;st.constEnumOnlyModule=!(st.flags&304)&&Te===2&&st.constEnumOnlyModule!==!1}}}function Nn(W){const Te=jg(W),st=Te!==0;return Vr(W,st?512:1024,st?110735:0),Te}function Fs(W){const Te=de(131072,ve(W));ie(Te,W,131072);const st=de(2048,"__type");ie(st,W,2048),st.members=ca(),st.members.set(Te.escapedName,Te)}function Ql(W){return Vs(W,4096,"__object")}function ko(W){return Vs(W,4096,"__jsxAttributes")}function cs(W,Te,st){return Vr(W,Te,st)}function Vs(W,Te,st){const qt=de(Te,st);return Te&106508&&(qt.parent=o.symbol),ie(qt,W,Te),qt}function gl(W,Te,st){switch(l.kind){case 267:Ee(W,Te,st);break;case 312:if(Fp(o)){Ee(W,Te,st);break}default:N.assertNode(l,ph),l.locals||(l.locals=ca(),ir(l)),Ue(l.locals,void 0,W,Te,st)}}function cu(){if(!p)return;const W=o,Te=u,st=l,qt=i,rr=m;for(const ii of p){const Yr=ii.parent.parent;o=lj(Yr)||e,l=_h(Yr)||e,m=hI({flags:2}),i=ii,we(ii.typeExpression);const oo=Lo(ii);if((Jk(ii)||!ii.fullName)&&oo&&lk(oo.parent)){const wa=ec(oo.parent);if(wa){vl(e.symbol,oo.parent,wa,!!Vn(oo,Ol=>Fr(Ol)&&Ol.name.escapedText==="prototype"),!1);const Oa=o;switch(GL(oo.parent)){case 1:case 2:Fp(e)?o=e:o=void 0;break;case 4:o=oo.parent.expression;break;case 3:o=oo.parent.expression.name;break;case 5:o=s1(e,oo.parent.expression)?e:Fr(oo.parent.expression)?oo.parent.expression.name:oo.parent.expression;break;case 0:return N.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&Ee(ii,524288,788968),o=Oa}}else Jk(ii)||!ii.fullName||ii.fullName.kind===80?(i=ii.parent,gl(ii,524288,788968)):we(ii.fullName)}o=W,u=Te,l=st,i=qt,m=rr}function ho(W){if(!e.parseDiagnostics.length&&!(W.flags&33554432)&&!(W.flags&16777216)&&!yie(W)){const Te=r0(W);if(Te===void 0)return;V&&Te>=119&&Te<=127?e.bindDiagnostics.push(oe(W,da(W),xs(W))):Te===135?sc(e)&&H4(W)?e.bindDiagnostics.push(oe(W,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,xs(W))):W.flags&65536&&e.bindDiagnostics.push(oe(W,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,xs(W))):Te===127&&W.flags&16384&&e.bindDiagnostics.push(oe(W,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,xs(W)))}}function da(W){return au(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 uu(W){W.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(oe(W,f.constructor_is_a_reserved_word,xs(W))))}function Ts(W){V&&Zd(W.left)&&Ov(W.operatorToken.kind)&&lc(W,W.left)}function Ca(W){V&&W.variableDeclaration&&lc(W,W.variableDeclaration.name)}function ml(W){if(V&&W.expression.kind===80){const Te=vS(e,W.expression);e.bindDiagnostics.push($c(e,Te.start,Te.length,f.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Lf(W){return Ve(W)&&(W.escapedText==="eval"||W.escapedText==="arguments")}function lc(W,Te){if(Te&&Te.kind===80){const st=Te;if(Lf(st)){const qt=vS(e,Te);e.bindDiagnostics.push($c(e,qt.start,qt.length,Nl(W),Er(st)))}}}function Nl(W){return au(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 cl(W){V&&lc(W,W.name)}function wo(W){return au(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 nn(W){if(r<2&&l.kind!==312&&l.kind!==267&&!Xx(l)){const Te=vS(e,W);e.bindDiagnostics.push($c(e,Te.start,Te.length,wo(W)))}}function js(W){V&&lc(W,W.operand)}function tu(W){V&&(W.operator===46||W.operator===47)&&lc(W,W.operand)}function du(W){V&&Ms(W,f.with_statements_are_not_allowed_in_strict_mode)}function Tp(W){V&&os(t)>=2&&(Sre(W.statement)||Ll(W.statement))&&Ms(W.label,f.A_label_is_not_allowed_here)}function Ms(W,Te,...st){const qt=hh(e,W.pos);e.bindDiagnostics.push($c(e,qt.start,qt.length,Te,...st))}function xc(W,Te,st){ue(W,Te,Te,st)}function ue(W,Te,st,qt){Z(W,{pos:l0(Te,e),end:st.end},qt)}function Z(W,Te,st){const qt=$c(e,Te.pos,Te.end-Te.pos,st);W?e.bindDiagnostics.push(qt):e.bindSuggestionDiagnostics=Rn(e.bindSuggestionDiagnostics,{...qt,category:2})}function we(W){if(!W)return;Ha(W,i),sr&&(W.tracingPath=e.path);const Te=V;if(vr(W),W.kind>165){const st=i;i=W;const qt=bq(W);qt===0?je(W):Me(W,qt),i=st}else{const st=i;W.kind===1&&(i=W),Et(W),i=st}V=Te}function Et(W){if(Wp(W))if(lr(W))for(const Te of W.jsDoc)we(Te);else for(const Te of W.jsDoc)Ha(Te,W),Gy(Te,!1)}function un(W){if(!V)for(const Te of W){if(!Sm(Te))return;if(Sr(Te)){V=!0;return}}}function Sr(W){const Te=CE(e,W.expression);return Te==='"use strict"'||Te==="'use strict'"}function vr(W){switch(W.kind){case 80:if(W.flags&4096){let Yr=W.parent;for(;Yr&&!$f(Yr);)Yr=Yr.parent;gl(Yr,524288,788968);break}case 110:return m&&(yt(W)||i.kind===304)&&(W.flowNode=m),ho(W);case 166:m&&Y4(W)&&(W.flowNode=m);break;case 236:case 108:W.flowNode=m;break;case 81:return uu(W);case 211:case 212:const Te=W;m&&Bt(Te)&&(Te.flowNode=m),pie(Te)&&Xn(Te),lr(Te)&&e.commonJsModuleIndicator&&Zh(Te)&&!MF(l,"module")&&Ue(e.locals,void 0,Te.expression,134217729,111550);break;case 226:switch(zl(W)){case 1:ip(W);break;case 2:wc(W);break;case 3:na(W.left,W);break;case 6:yo(W);break;case 4:_d(W);break;case 5:const Yr=W.left.expression;if(lr(W)&&Ve(Yr)){const oo=MF(l,Yr.escapedText);if(q4(oo==null?void 0:oo.valueDeclaration)){_d(W);break}}yc(W);break;case 0:break;default:N.fail("Unknown binary expression special property assignment kind")}return Ts(W);case 299:return Ca(W);case 220:return ml(W);case 225:return js(W);case 224:return tu(W);case 254:return du(W);case 256:return Tp(W);case 197:h=!0;return;case 182:break;case 168:return lt(W);case 169:return Jg(W);case 260:return Bu(W);case 208:return W.flowNode=m,Bu(W);case 172:case 171:return jr(W);case 303:case 304:return Ud(W,4,0);case 306:return Ud(W,8,900095);case 179:case 180:case 181:return Vr(W,131072,0);case 174:case 173:return Ud(W,8192|(W.questionToken?16777216:0),Tm(W)?0:103359);case 262:return Ap(W);case 176:return Vr(W,16384,0);case 177:return Ud(W,32768,46015);case 178:return Ud(W,65536,78783);case 184:case 324:case 330:case 185:return Fs(W);case 187:case 329:case 200:return Di(W);case 339:return Tt(W);case 210:return Ql(W);case 218:case 219:return dg(W);case 213:switch(zl(W)){case 7:return Zl(W);case 8:return Uc(W);case 9:return $o(W);case 0:break;default:return N.fail("Unknown call expression assignment declaration kind")}lr(W)&&V_(W);break;case 231:case 263:return V=!0,Dh(W);case 264:return gl(W,64,788872);case 265:return gl(W,524288,788968);case 266:return qg(W);case 267:return xo(W);case 292:return ko(W);case 291:return cs(W,4,0);case 271:case 274:case 276:case 281:return Vr(W,2097152,2097152);case 270:return jc(W);case 273:return vc(W);case 278:return Us(W);case 277:return Sl(W);case 312:return un(W.statements),Mr();case 241:if(!Xx(W.parent))return;case 268:return un(W.statements);case 348:if(W.parent.kind===330)return Jg(W);if(W.parent.kind!==329)break;case 355:const rr=W,ii=rr.isBracketed||rr.typeExpression&&rr.typeExpression.type.kind===323?16777220:4;return Vr(rr,ii,0);case 353:case 345:case 347:return(p||(p=[])).push(W);case 346:return we(W.typeExpression)}}function jr(W){const Te=Wd(W),st=Te?98304:4,qt=Te?13247:0;return Ud(W,st|(W.questionToken?16777216:0),qt)}function Di(W){return Vs(W,2048,"__type")}function Mr(){if(Jr(e),sc(e))Yo();else if(Yf(e)){Yo();const W=e.symbol;Ue(e.symbol.exports,e.symbol,e,4,-1),e.symbol=W}}function Yo(){Vs(e,512,`"${Ad(e.fileName)}"`)}function Sl(W){if(!o.symbol||!o.symbol.exports)Vs(W,111551,ve(W));else{const Te=gR(W)?2097152:4,st=Ue(o.symbol.exports,o.symbol,W,Te,-1);W.isExportEquals&&jL(st,W)}}function jc(W){bt(W.modifiers)&&e.bindDiagnostics.push(oe(W,f.Modifiers_cannot_appear_here));const Te=$i(W.parent)?sc(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;Te?e.bindDiagnostics.push(oe(W,Te)):(e.symbol.globalExports=e.symbol.globalExports||ca(),Ue(e.symbol.globalExports,e.symbol,W,2097152,2097152))}function Us(W){!o.symbol||!o.symbol.exports?Vs(W,8388608,ve(W)):W.exportClause?Sh(W.exportClause)&&(Ha(W.exportClause,W),Ue(o.symbol.exports,o.symbol,W.exportClause,2097152,2097152)):Ue(o.symbol.exports,o.symbol,W,8388608,0)}function vc(W){W.name&&Vr(W,2097152,2097152)}function Es(W){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=W,e.externalModuleIndicator||Yo()),!0)}function Uc(W){if(!Es(W))return;const Te=kf(W.arguments[0],void 0,(st,qt)=>(qt&&ie(qt,st,67110400),qt));Te&&Ue(Te.exports,Te,W,1048580,0)}function ip(W){if(!Es(W))return;const Te=kf(W.left.expression,void 0,(st,qt)=>(qt&&ie(qt,st,67110400),qt));if(Te){const qt=QL(W.right)&&(ES(W.left.expression)||Zh(W.left.expression))?2097152:1048580;Ha(W.left,W),Ue(Te.exports,Te,W.left,qt,0)}}function wc(W){if(!Es(W))return;const Te=FL(W.right);if(Zj(Te)||o===e&&s1(e,Te))return;if(La(Te)&&Jn(Te.properties,np)){Xe(Te.properties,sm);return}const st=gR(W)?2097152:1049092,qt=Ue(e.symbol.exports,e.symbol,W,st|67108864,0);jL(qt,W)}function sm(W){Ue(e.symbol.exports,e.symbol,W,69206016,0)}function _d(W){if(N.assert(lr(W)),mr(W)&&Fr(W.left)&&qi(W.left.name)||Fr(W)&&qi(W.name))return;const st=Fd(W,!1,!1);switch(st.kind){case 262:case 218:let qt=st.symbol;if(mr(st.parent)&&st.parent.operatorToken.kind===64){const Yr=st.parent.left;OE(Yr)&&zy(Yr.expression)&&(qt=Nd(Yr.expression.expression,s))}qt&&qt.valueDeclaration&&(qt.members=qt.members||ca(),Wy(W)?Pe(W,qt,qt.members):Ue(qt.members,qt,W,67108868,0),ie(qt,qt.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const rr=st.parent,ii=aa(st)?rr.symbol.exports:rr.symbol.members;Wy(W)?Pe(W,rr.symbol,ii):Ue(ii,rr.symbol,W,67108868,0,!0);break;case 312:if(Wy(W))break;st.commonJsModuleIndicator?Ue(st.symbol.exports,st.symbol,W,1048580,0):Vr(W,1,111550);break;case 267:break;default:N.failBadSyntaxKind(st)}}function Pe(W,Te,st){Ue(st,Te,W,4,0,!0,!0),Ot(W,Te)}function Ot(W,Te){Te&&(Te.assignmentDeclarationMembers||(Te.assignmentDeclarationMembers=new Map)).set(as(W),W)}function Xn(W){W.expression.kind===110?_d(W):OE(W)&&W.parent.parent.kind===312&&(zy(W.expression)?na(W,W.parent):ul(W))}function yo(W){Ha(W.left,W),Ha(W.right,W),Hc(W.left.expression,W.left,!1,!0)}function $o(W){const Te=Nd(W.arguments[0].expression);Te&&Te.valueDeclaration&&ie(Te,Te.valueDeclaration,32),Gl(W,Te,!0)}function na(W,Te){const st=W.expression,qt=st.expression;Ha(qt,st),Ha(st,W),Ha(W,Te),Hc(qt,W,!0,!0)}function Zl(W){let Te=Nd(W.arguments[0]);const st=W.parent.parent.kind===312;Te=vl(Te,W.arguments[0],st,!1,!1),Gl(W,Te,!1)}function yc(W){var Te;const st=Nd(W.left.expression,l)||Nd(W.left.expression,o);if(!lr(W)&&!fie(st))return;const qt=DR(W.left);if(!(Ve(qt)&&((Te=MF(o,qt.escapedText))==null?void 0:Te.flags)&2097152))if(Ha(W.left,W),Ha(W.right,W),Ve(W.left.expression)&&o===e&&s1(e,W.left.expression))ip(W);else if(Wy(W)){Vs(W,67108868,"__computed");const rr=vl(st,W.left.expression,ec(W.left),!1,!1);Ot(W,rr)}else ul(oa(W.left,TS))}function ul(W){N.assert(!Ve(W)),Ha(W.expression,W),Hc(W.expression,W,!1,!1)}function vl(W,Te,st,qt,rr){return(W==null?void 0:W.flags)&2097152||(st&&!qt&&(W=kf(Te,W,(oo,wa,Oa)=>{if(wa)return ie(wa,oo,67110400),wa;{const Ol=Oa?Oa.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=ca());return Ue(Ol,Oa,oo,67110400,110735)}})),rr&&W&&W.valueDeclaration&&ie(W,W.valueDeclaration,32)),W}function Gl(W,Te,st){if(!Te||!df(Te))return;const qt=st?Te.members||(Te.members=ca()):Te.exports||(Te.exports=ca());let rr=0,ii=0;Bs(DA(W))?(rr=8192,ii=103359):sa(W)&&SS(W)&&(bt(W.arguments[2].properties,Yr=>{const oo=Lo(Yr);return!!oo&&Ve(oo)&&Er(oo)==="set"})&&(rr|=65540,ii|=78783),bt(W.arguments[2].properties,Yr=>{const oo=Lo(Yr);return!!oo&&Ve(oo)&&Er(oo)==="get"})&&(rr|=32772,ii|=46015)),rr===0&&(rr=4,ii=0),Ue(qt,Te,W,rr|67108864,ii&-67108865)}function ec(W){return mr(W.parent)?jd(W.parent).parent.kind===312:W.parent.parent.kind===312}function Hc(W,Te,st,qt){let rr=Nd(W,l)||Nd(W,o);const ii=ec(Te);rr=vl(rr,Te.expression,ii,st,qt),Gl(Te,rr,st)}function df(W){if(W.flags&1072)return!0;const Te=W.valueDeclaration;if(Te&&sa(Te))return!!DA(Te);let st=Te?Oi(Te)?Te.initializer:mr(Te)?Te.right:Fr(Te)&&mr(Te.parent)?Te.parent.right:void 0:void 0;if(st=st&&FL(st),st){const qt=zy(Oi(Te)?Te.name:mr(Te)?Te.left:Te);return!!u0(mr(st)&&(st.operatorToken.kind===57||st.operatorToken.kind===61)?st.right:st,qt)}return!1}function jd(W){for(;mr(W.parent);)W=W.parent;return W.parent}function Nd(W,Te=o){if(Ve(W))return MF(Te,W.escapedText);{const st=Nd(W.expression);return st&&st.exports&&st.exports.get(kg(W))}}function kf(W,Te,st){if(s1(e,W))return e.symbol;if(Ve(W))return st(W,Nd(W),Te);{const qt=kf(W.expression,Te,st),rr=BL(W);return qi(rr)&&N.fail("unexpected PrivateIdentifier"),st(rr,qt&&qt.exports&&qt.exports.get(kg(W)),qt)}}function V_(W){!e.commonJsModuleIndicator&&Td(W,!1)&&Es(W)}function Dh(W){if(W.kind===263)gl(W,32,899503);else{const rr=W.name?W.name.escapedText:"__class";Vs(W,32,rr),W.name&&he.add(W.name.escapedText)}const{symbol:Te}=W,st=de(4194308,"prototype"),qt=Te.exports.get(st.escapedName);qt&&(W.name&&Ha(W.name,W),e.bindDiagnostics.push(oe(qt.declarations[0],f.Duplicate_identifier_0,El(st)))),Te.exports.set(st.escapedName,st),st.parent=Te}function qg(W){return ME(W)?gl(W,128,899967):gl(W,256,899327)}function Bu(W){if(V&&lc(W,W.name),!ta(W.name)){const Te=W.kind===260?W:W.parent.parent;lr(W)&&wE(Te)&&!i0(W)&&!(n0(W)&32)?Vr(W,2097152,2097152):QV(W)?gl(W,2,111551):zE(W)?Vr(W,1,111551):Vr(W,1,111550)}}function Jg(W){if(!(W.kind===348&&o.kind!==330)&&(V&&!(W.flags&33554432)&&lc(W,W.name),ta(W.name)?Vs(W,1,"__"+W.parent.parameters.indexOf(W)):Vr(W,1,111551),pp(W,W.parent))){const Te=W.parent.parent;Ue(Te.symbol.members,Te.symbol,W,4|(W.questionToken?16777216:0),0)}}function Ap(W){!e.isDeclarationFile&&!(W.flags&33554432)&&NC(W)&&(Q|=4096),cl(W),V?(nn(W),gl(W,16,110991)):Vr(W,16,110991)}function dg(W){!e.isDeclarationFile&&!(W.flags&33554432)&&NC(W)&&(Q|=4096),m&&(W.flowNode=m),cl(W);const Te=W.name?W.name.escapedText:"__function";return Vs(W,16,Te)}function Ud(W,Te,st){return!e.isDeclarationFile&&!(W.flags&33554432)&&NC(W)&&(Q|=4096),m&&G4(W)&&(W.flowNode=m),Wy(W)?Vs(W,Te,"__computed"):Vr(W,Te,st)}function te(W){const Te=Vn(W,st=>st.parent&&rI(st.parent)&&st.parent.extendsType===st);return Te&&Te.parent}function lt(W){if(om(W.parent)){const Te=o3(W.parent);Te?(N.assertNode(Te,ph),Te.locals??(Te.locals=ca()),Ue(Te.locals,void 0,W,262144,526824)):Vr(W,262144,526824)}else if(W.parent.kind===195){const Te=te(W.parent);Te?(N.assertNode(Te,ph),Te.locals??(Te.locals=ca()),Ue(Te.locals,void 0,W,262144,526824)):Vs(W,262144,ve(W))}else Vr(W,262144,526824)}function Ft(W){const Te=jg(W);return Te===1||Te===2&&KE(t)}function Vt(W){if(!(m.flags&1))return!1;if(m===ye&&(hL(W)&&W.kind!==242||W.kind===263||W.kind===267&&Ft(W))&&(m=Y,!t.allowUnreachableCode)){const st=coe(t)&&!(W.flags&33554432)&&(!Ll(W)||!!(Cv(W.declarationList)&7)||W.declarationList.declarations.some(qt=>!!qt.initializer));vVe(W,(qt,rr)=>ue(st,qt,rr,f.Unreachable_code_detected))}return!0}}function vVe(e,t){if(Hi(e)&&bIe(e)&&Ko(e.parent)){const{statements:r}=e.parent,i=hU(r,e);zB(i,bIe,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function bIe(e){return!Tc(e)&&!yVe(e)&&!y0(e)&&!(Ll(e)&&!(Cv(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function yVe(e){switch(e.kind){case 264:case 265:return!0;case 267:return jg(e)!==1;case 266:return Qr(e,4096);default:return!1}}function s1(e,t){let r=0;const i=M2();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),ES(t)||Zh(t))return!0;if(Ve(t)){const o=MF(e,t.escapedText);if(o&&o.valueDeclaration&&Oi(o.valueDeclaration)&&o.valueDeclaration.initializer){const s=o.valueDeclaration.initializer;i.enqueue(s),Pc(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function bq(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(G4(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)||Rl(e.parent)?0:34}return 0}function MF(e,t){var r,i,o,s;const l=(i=(r=ri(e,ph))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return l.exportSymbol??l;if($i(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(T_(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}var Eq,Sq,EIe,bVe=I({"src/compiler/binder.ts"(){ra(),sS(),Eq=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(Eq||{}),Sq=(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))(Sq||{}),EIe=gVe()}});function Mse(e,t,r,i,o,s,l,u,p,h){return m;function m(y=()=>!0){const T=[],A=[];return{walkType:he=>{try{return R(he),{visitedTypes:fA(T),visitedSymbols:fA(A)}}finally{jo(T),jo(A)}},walkSymbol:he=>{try{return ne(he),{visitedTypes:fA(T),visitedSymbols:fA(A)}}finally{jo(T),jo(A)}}};function R(he){if(!(!he||T[he.id]||(T[he.id]=he,ne(he.symbol)))){if(he.flags&524288){const Y=he,X=Y.objectFlags;X&4&&M(he),X&32&&Q(he),X&3&&se(he),X&24&&G(Y)}he.flags&262144&&C(he),he.flags&3145728&&O(he),he.flags&4194304&&U(he),he.flags&8388608&&K(he)}}function M(he){R(he.target),Xe(h(he),R)}function C(he){R(u(he))}function O(he){Xe(he.types,R)}function U(he){R(he.type)}function K(he){R(he.objectType),R(he.indexType),R(he.constraint)}function Q(he){R(he.typeParameter),R(he.constraintType),R(he.templateType),R(he.modifiersType)}function V(he){const ye=t(he);ye&&R(ye.type),Xe(he.typeParameters,R);for(const Y of he.parameters)ne(Y);R(e(he)),R(r(he))}function se(he){G(he),Xe(he.typeParameters,R),Xe(i(he),R),R(he.thisType)}function G(he){const ye=o(he);for(const Y of ye.indexInfos)R(Y.keyType),R(Y.type);for(const Y of ye.callSignatures)V(Y);for(const Y of ye.constructSignatures)V(Y);for(const Y of ye.properties)ne(Y)}function ne(he){if(!he)return!1;const ye=Sa(he);if(A[ye])return!1;if(A[ye]=he,!y(he))return!0;const Y=s(he);return R(Y),he.exports&&he.exports.forEach(ne),Xe(he.declarations,X=>{if(X.type&&X.type.kind===186){const oe=X.type,pe=l(p(oe.exprName));ne(pe)}}),!1}}}var EVe=I({"src/compiler/symbolWalker.ts"(){ra()}});function Iw({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){const s=l();return{relativePreference:o!==void 0?Xc(o)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:u=>{const p=u!==i.impliedNodeFormat?l(u):s;if((u??i.impliedNodeFormat)===99)return sD(r,i.fileName)?[3,2]:[2];if(pd(r)===1)return p===2?[2,1]:[1,2];const h=sD(r,i.fileName);switch(p){case 2:return h?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return h?[1,0,3,2]:[1,0,2];case 0:return h?[0,1,3,2]:[0,1,2];default:N.assertNever(p)}}};function l(u){if(o!==void 0){if(UE(o))return 2;if(Al(o,"/index"))return 1}return voe(t,u??i.impliedNodeFormat,r,i)}}function SVe(e,t,r,i,o,s,l={}){const u=SIe(e,t,r,i,o,Iw({},e,t,s),{},l);if(u!==s)return u}function LF(e,t,r,i,o,s={}){return SIe(e,t,r,i,o,Iw({},e,t),{},s)}function TVe(e,t,r,i,o,s={}){const l=Tq(t.fileName,i),u=NIe(l,r,i,o,s);return Ht(u,p=>kse(p,l,t,i,e,o,!0,s.overrideImportMode))}function SIe(e,t,r,i,o,s,l,u={}){const p=Tq(r,o),h=NIe(p,i,o,l,u);return Ht(h,m=>kse(m,p,t,o,e,l,void 0,u.overrideImportMode))||xIe(i,p,e,o,u.overrideImportMode||t.impliedNodeFormat,s)}function AVe(e,t,r,i,o={}){return TIe(e,t,r,i,o)[0]}function TIe(e,t,r,i,o={}){var s;const l=N4(e);if(!l)return et;const u=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),p=u==null?void 0:u.get(t.path,l.path,i,o);return[p==null?void 0:p.moduleSpecifiers,l,p==null?void 0:p.modulePaths,u]}function AIe(e,t,r,i,o,s,l={}){return IIe(e,t,r,i,o,s,l,!1).moduleSpecifiers}function IIe(e,t,r,i,o,s,l={},u){let p=!1;const h=RVe(e,t);if(h)return{moduleSpecifiers:[h],computedWithoutCache:p};let[m,y,T,A]=TIe(e,i,o,s,l);if(m)return{moduleSpecifiers:m,computedWithoutCache:p};if(!y)return{moduleSpecifiers:et,computedWithoutCache:p};p=!0,T||(T=CIe(Tq(i.fileName,o),y.originalFileName,o));const R=IVe(T,r,i,o,s,l,u);return A==null||A.set(i.path,y.path,s,l,T,R),{moduleSpecifiers:R,computedWithoutCache:p}}function IVe(e,t,r,i,o,s={},l){const u=Tq(r.fileName,i),p=Iw(o,t,r),h=Xe(e,M=>Xe(i.getFileIncludeReasons().get(il(M.path,i.getCurrentDirectory(),u.getCanonicalFileName)),C=>{if(C.kind!==3||C.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==Ule(r,C.index,t))return;const O=Vw(r,C.index).text;return p.relativePreference!==1||!Op(O)?O:void 0}));if(h)return[h];const m=bt(e,M=>M.isInNodeModules);let y,T,A,R;for(const M of e){const C=M.isInNodeModules?kse(M,u,r,i,t,o,void 0,s.overrideImportMode):void 0;if(y=Rn(y,C),C&&M.isRedirect)return y;if(!C){const O=xIe(M.path,u,t,i,s.overrideImportMode||r.impliedNodeFormat,p,M.isRedirect);if(!O)continue;M.isRedirect?A=Rn(A,O):fV(O)?x0(O)?R=Rn(R,O):T=Rn(T,O):(l||!m||M.isInNodeModules)&&(R=Rn(R,O))}}return T!=null&&T.length?T:A!=null&&A.length?A:y!=null&&y.length?y:N.checkDefined(R)}function Tq(e,t){e=go(e,t.getCurrentDirectory());const r=Mu(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=ai(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function xIe(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l},u){const{baseUrl:p,paths:h,rootDirs:m}=r;if(u&&!h)return;const{sourceDirectory:y,canonicalSourceDirectory:T,getCanonicalFileName:A}=t,R=s(o),M=m&&CVe(m,e,y,A,R,r)||xw(AE(vm(y,e,A)),R,r);if(!p&&!h&&!rW(r)||l===0)return u?void 0:M;const C=go(m3(r,i)||p,i.getCurrentDirectory()),O=kIe(e,C,A);if(!O)return u?void 0:M;const U=u?void 0:NVe(e,y,r,i,o),K=u||U===void 0?h&&PIe(O,h,R,i,r):void 0;if(u)return K;const Q=U??(K===void 0&&p!==void 0?xw(O,R,r):K);if(!Q)return M;if(l===1&&!Op(Q))return Q;if(l===3&&!Op(Q)){const V=r.configFilePath?il(ai(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),se=il(e,V,A),G=uo(T,V),ne=uo(se,V);if(G&&!ne||!G&&ne)return Q;const he=Lse(i,ai(se)),ye=Lse(i,y),Y=!AR(i);return xVe(he,ye,Y)?M:Q}return wIe(Q)||kF(M)<kF(Q)?M:Q}function xVe(e,t,r){return e===t?!0:e===void 0||t===void 0?!1:Dg(e,t,r)===0}function kF(e){let t=0;for(let r=uo(e,"./")?2:0;r<e.length;r++)e.charCodeAt(r)===47&&t++;return t}function RIe(e,t){return Ey(t.isRedirect,e.isRedirect)||_k(e.path,t.path)}function Lse(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):ym(t,r=>e.fileExists($r(r,"package.json"))?r:void 0)}function DIe(e,t,r,i,o){var s;const l=wv(r),u=r.getCurrentDirectory(),p=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,h=il(t,u,l),m=r.redirectTargetsMap.get(h)||et,T=[...p?[p]:et,t,...m].map(O=>go(O,u));let A=!Jn(T,eP);if(!i){const O=Xe(T,U=>!(A&&eP(U))&&o(U,p===U));if(O)return O}const R=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),M=go(t,u);return R&&ym(ai(M),O=>{const U=R.get(Fc(il(O,u,l)));if(U)return _V(e,O,l)?!1:Xe(T,K=>{if(!_V(K,O,l))return;const Q=vm(O,K,l);for(const V of U){const se=Iy(V,Q),G=o(se,K===p);if(A=!0,G)return G}})})||(i?Xe(T,O=>A&&eP(O)?void 0:o(O,O===p)):void 0)}function NIe(e,t,r,i,o={}){var s;const l=il(e.importingSourceFileName,r.getCurrentDirectory(),wv(r)),u=il(t,r.getCurrentDirectory(),wv(r)),p=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(p){const m=p.get(l,u,i,o);if(m!=null&&m.modulePaths)return m.modulePaths}const h=CIe(e,t,r);return p&&p.setModulePaths(l,u,i,o,h),h}function CIe(e,t,r){const i=new Map;DIe(e.importingSourceFileName,t,r,!0,(s,l)=>{const u=x0(s);i.set(s,{path:e.getCanonicalFileName(s),isRedirect:l,isInNodeModules:u})});const o=[];for(let s=e.canonicalSourceDirectory;i.size!==0;){const l=Fc(s);let u;i.forEach(({path:h,isRedirect:m,isInNodeModules:y},T)=>{uo(h,l)&&((u||(u=[])).push({path:T,isRedirect:m,isInNodeModules:y}),i.delete(T))}),u&&(u.length>1&&u.sort(RIe),o.push(...u));const p=ai(s);if(p===s)break;s=p}if(i.size){const s=zo(i.entries(),([l,{isRedirect:u,isInNodeModules:p}])=>({path:l,isRedirect:u,isInNodeModules:p}));s.length>1&&s.sort(RIe),o.push(...s)}return o}function RVe(e,t){var r;const i=(r=e.declarations)==null?void 0:r.find(l=>ej(l)&&(!PE(l)||!Xc(Qf(l.name))));if(i)return i.name.text;const s=eo(e.declarations,l=>{var u,p,h,m;if(!Xl(l))return;const y=M(l);if(!((u=y==null?void 0:y.parent)!=null&&u.parent&&L_(y.parent)&&ku(y.parent.parent)&&$i(y.parent.parent.parent)))return;const T=(m=(h=(p=y.parent.parent.symbol.exports)==null?void 0:p.get("export="))==null?void 0:h.valueDeclaration)==null?void 0:m.expression;if(!T)return;const A=t.getSymbolAtLocation(T);if(!A)return;if(((A==null?void 0:A.flags)&2097152?t.getAliasedSymbol(A):A)===l.symbol)return y.parent.parent;function M(C){for(;C.flags&8;)C=C.parent;return C}})[0];if(s)return s.name.text}function PIe(e,t,r,i,o){for(const l in t)for(const u of t[l]){const p=ha(u),h=p.indexOf("*"),m=r.map(y=>({ending:y,value:xw(e,[y],o)}));if(Fg(p)&&m.push({ending:void 0,value:e}),h!==-1){const y=p.substring(0,h),T=p.substring(h+1);for(const{ending:A,value:R}of m)if(R.length>=y.length+T.length&&uo(R,y)&&Al(R,T)&&s({ending:A,value:R})){const M=R.substring(y.length,R.length-T.length);if(!Op(M))return jA(l,M)}}else if(bt(m,y=>y.ending!==0&&p===y.value)||bt(m,y=>y.ending===0&&p===y.value&&s(y)))return l}function s({ending:l,value:u}){return l!==0||u===xw(e,[l],o,i)}}function wF(e,t,r,i,o,s,l,u,p){if(typeof s=="string"){const h=!AR(t),m=()=>t.getCommonSourceDirectory(),y=p&&Zq(r,e,h,m),T=p&&Qq(r,e,h,m),A=go($r(i,s),void 0),R=GA(r)?Ad(r)+Ose(r,e):void 0;switch(u){case 0:if(R&&Dg(R,A,h)===0||Dg(r,A,h)===0||y&&Dg(y,A,h)===0||T&&Dg(T,A,h)===0)return{moduleFileToTry:o};break;case 1:if(R&&gm(A,R,h)){const U=vm(A,R,!1);return{moduleFileToTry:go($r($r(o,s),U),void 0)}}if(gm(A,r,h)){const U=vm(A,r,!1);return{moduleFileToTry:go($r($r(o,s),U),void 0)}}if(y&&gm(A,y,h)){const U=vm(A,y,!1);return{moduleFileToTry:$r(o,U)}}if(T&&gm(A,T,h)){const U=vm(A,T,!1);return{moduleFileToTry:$r(o,U)}}break;case 2:const M=A.indexOf("*"),C=A.slice(0,M),O=A.slice(M+1);if(R&&uo(R,C,h)&&Al(R,O,h)){const U=R.slice(C.length,R.length-O.length);return{moduleFileToTry:jA(o,U)}}if(uo(r,C,h)&&Al(r,O,h)){const U=r.slice(C.length,r.length-O.length);return{moduleFileToTry:jA(o,U)}}if(y&&uo(y,C,h)&&Al(y,O,h)){const U=y.slice(C.length,y.length-O.length);return{moduleFileToTry:jA(o,U)}}if(T&&uo(T,C,h)&&Al(T,O,h)){const U=T.slice(C.length,T.length-O.length);return{moduleFileToTry:jA(o,U)}}break}}else{if(Array.isArray(s))return Xe(s,h=>wF(e,t,r,i,o,h,l,u,p));if(typeof s=="object"&&s!==null){for(const h of Hh(s))if(h==="default"||l.indexOf(h)>=0||Tw(l,h)){const m=s[h],y=wF(e,t,r,i,o,m,l,u,p);if(y)return y}}}}function DVe(e,t,r,i,o,s,l){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&CF(s)?Xe(Hh(s),u=>{const p=go($r(o,u),void 0),h=Al(u,"/")?1:u.includes("*")?2:0;return wF(e,t,r,i,p,s[u],l,h,!1)}):wF(e,t,r,i,o,s,l,0,!1)}function NVe(e,t,r,i,o){var s,l,u;if(!i.readFile||!rW(r))return;const p=Lse(i,t);if(!p)return;const h=$r(p,"package.json"),m=(l=(s=i.getPackageJsonInfoCache)==null?void 0:s.call(i))==null?void 0:l.getPackageJsonInfo(h);if(vse(m)||!i.fileExists(h))return;const y=(m==null?void 0:m.contents.packageJsonContent)||T3(i.readFile(h)),T=y==null?void 0:y.imports;if(!T)return;const A=Qy(r,o);return(u=Xe(Hh(T),R=>{if(!uo(R,"#")||R==="#"||uo(R,"#/"))return;const M=Al(R,"/")?1:R.includes("*")?2:0;return wF(r,i,e,p,R,T[R],A,M,!0)}))==null?void 0:u.moduleFileToTry}function CVe(e,t,r,i,o,s){const l=MIe(t,e,i);if(l===void 0)return;const u=MIe(r,e,i),p=Do(u,m=>Wt(l,y=>AE(vm(m,y,i)))),h=XB(p,_k);if(h)return xw(h,o,s)}function kse({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,u,p,h){if(!s.fileExists||!s.readFile)return;const m=K3(e);if(!m)return;const T=Iw(u,l,o).getAllowedEndingsInPreferredOrder();let A=e,R=!1;if(!p){let Q=m.packageRootIndex,V;for(;;){const{moduleFileToTry:se,packageRootPath:G,blockedByExports:ne,verbatimFromExports:he}=K(Q);if(pd(l)!==1){if(ne)return;if(he)return se}if(G){A=G,R=!0;break}if(V||(V=se),Q=e.indexOf(ol,Q+1),Q===-1){A=xw(V,T,l,s);break}}}if(t&&!R)return;const M=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),C=r(A.substring(0,m.topLevelNodeModulesIndex));if(!(uo(i,C)||M&&uo(r(M),C)))return;const O=A.substring(m.topLevelPackageNameIndex+1),U=wP(O);return pd(l)===1&&U===O?void 0:U;function K(Q){var V,se;const G=e.substring(0,Q),ne=$r(G,"package.json");let he=e,ye=!1;const Y=(se=(V=s.getPackageJsonInfoCache)==null?void 0:V.call(s))==null?void 0:se.getPackageJsonInfo(ne);if(xF(Y)||Y===void 0&&s.fileExists(ne)){const X=(Y==null?void 0:Y.contents.packageJsonContent)||T3(s.readFile(ne)),oe=h||o.impliedNodeFormat;if(nW(l)){const de=G.substring(m.topLevelPackageNameIndex+1),ie=wP(de),ve=Qy(l,oe),Le=X!=null&&X.exports?DVe(l,s,e,G,ie,X.exports,ve):void 0;if(Le)return{...Le,verbatimFromExports:!0};if(X!=null&&X.exports)return{moduleFileToTry:e,blockedByExports:!0}}const pe=X!=null&&X.typesVersions?AF(X.typesVersions):void 0;if(pe){const de=e.slice(G.length+1),ie=PIe(de,pe.paths,T,s,l);ie===void 0?ye=!0:he=$r(G,ie)}const Ce=(X==null?void 0:X.typings)||(X==null?void 0:X.types)||(X==null?void 0:X.main)||"index.js";if(Mo(Ce)&&!(ye&&_U(V3(pe.paths),Ce))){const de=il(Ce,G,r),ie=r(he);if(Ad(de)===Ad(ie))return{packageRootPath:G,moduleFileToTry:he};if((X==null?void 0:X.type)!=="module"&&!Sc(ie,Rk)&&uo(ie,de)&&ai(ie)===Qb(de)&&Ad(ic(ie))==="index")return{packageRootPath:G,moduleFileToTry:he}}}else{const X=r(he.substring(m.packageRootIndex+1));if(X==="index.d.ts"||X==="index.js"||X==="index.ts"||X==="index.tsx")return{moduleFileToTry:he,packageRootPath:G}}return{moduleFileToTry:he}}}function PVe(e,t){if(!e.fileExists)return;const r=Cs(JC({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const i of r){const o=t+i;if(e.fileExists(o))return o}}function MIe(e,t,r){return eo(t,i=>{const o=kIe(e,i,r);return o!==void 0&&wIe(o)?void 0:o})}function xw(e,t,r,i){if(Sc(e,[".json",".mjs",".cjs"]))return e;const o=Ad(e);if(e===o)return e;const s=t.indexOf(2),l=t.indexOf(3);if(Sc(e,[".mts",".cts"])&&l!==-1&&l<s)return e;if(Sc(e,[".d.mts",".mts",".d.cts",".cts"]))return o+wse(e,r);if(!Sc(e,[".d.ts"])&&Sc(e,[".ts"])&&e.includes(".d."))return LIe(e);switch(t[0]){case 0:const u=kx(o,"/index");return i&&u!==o&&PVe(i,u)?o:u;case 1:return o;case 2:return o+wse(e,r);case 3:if(Su(e)){const p=t.findIndex(h=>h===0||h===1);return p!==-1&&p<s?o:o+wse(e,r)}return e;default:return N.assertNever(t[0])}}function LIe(e){const t=ic(e);if(!Al(e,".ts")||!t.includes(".d.")||Sc(t,[".d.ts"]))return;const r=hk(e,".ts"),i=r.substring(r.lastIndexOf("."));return r.substring(0,r.indexOf(".d."))+i}function wse(e,t){return Ose(e,t)??N.fail(`Extension ${XC(e)} is unsupported:: FileName:: ${e}`)}function Ose(e,t){const r=Fg(e);switch(r){case".ts":case".d.ts":return".js";case".tsx":return t.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return r;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}function kIe(e,t,r){const i=yA(t,e,t,r,!1);return dp(i)?void 0:i}function wIe(e){return uo(e,"..")}var Wse,Fse=I({"src/compiler/moduleSpecifiers.ts"(){ra(),Wse=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(Wse||{})}}),l1={};ee(l1,{RelativePreference:()=>Wse,countPathComponents:()=>kF,forEachFileNameOfModule:()=>DIe,getModuleSpecifier:()=>LF,getModuleSpecifierPreferences:()=>Iw,getModuleSpecifiers:()=>AIe,getModuleSpecifiersWithCacheInfo:()=>IIe,getNodeModulesPackageName:()=>TVe,tryGetJSExtensionForFile:()=>Ose,tryGetModuleSpecifiersFromCache:()=>AVe,tryGetRealFileNameForNonJsDeclarationFileName:()=>LIe,updateModuleSpecifier:()=>SVe});var zse=I({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){Fse()}});function MVe(){this.flags=0}function as(e){return e.id||(e.id=Vse,Vse++),e.id}function Sa(e){return e.id||(e.id=Gse,Gse++),e.id}function Aq(e,t){const r=jg(e);return r===1||t&&r===2}function Bse(e){var t=[],r=n=>{t.push(n)},i,o=new Set,s,l,u=su.getSymbolConstructor(),p=su.getTypeConstructor(),h=su.getSignatureConstructor(),m=0,y=0,T=0,A=0,R=0,M=0,C,O,U=!1,K=ca(),Q=[1],V=e.getCompilerOptions(),se=os(V),G=wu(V),ne=!!V.experimentalDecorators,he=lP(V),ye=doe(V),Y=MS(V),X=dd(V,"strictNullChecks"),oe=dd(V,"strictFunctionTypes"),pe=dd(V,"strictBindCallApply"),Ce=dd(V,"strictPropertyInitialization"),de=dd(V,"noImplicitAny"),ie=dd(V,"noImplicitThis"),ve=dd(V,"useUnknownInCatchVariables"),Le=!!V.keyofStringsOnly,Ue=Le?1:0,Ee=V.suppressExcessPropertyErrors?0:8192,De=V.exactOptionalPropertyTypes,Me=u_t(),We=jvt(),At=J_(),Se=ca(),je=Ka(4,"undefined");je.declarations=[];var ot=Ka(1536,"globalThis",8);ot.exports=Se,ot.declarations=[],Se.set(ot.escapedName,ot);var Bt=Ka(4,"arguments"),vt=Ka(4,"require"),$e=V.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",It=!V.verbatimModuleSyntax||!!V.importsNotUsedAsValues,tn,rn,Mn=0,$n,gn=0;const Qt={getNodeCount:()=>rd(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>rd(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>rd(e.getSourceFiles(),(n,a)=>n+a.symbolCount,y),getTypeCount:()=>m,getInstantiationCount:()=>T,getRelationCacheSizes:()=>({assignable:qd.size,identity:op.size,subtype:Nh.size,strictSubtype:wf.size}),isUndefinedSymbol:n=>n===je,isArgumentsSymbol:n=>n===Bt,isUnknownSymbol:n=>n===ft,getMergedSymbol:rs,getDiagnostics:rFe,getGlobalDiagnostics:ovt,getRecursionIdentity:YZ,getUnmatchedProperties:hve,getTypeOfSymbolAtLocation:(n,a)=>{const c=No(a);return c?Qdt(n,c):_t},getTypeOfSymbol:dr,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{const c=No(n,Ao);return c===void 0?N.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(N.assert(pp(c,c.parent)),NM(c,_l(a)))},getDeclaredTypeOfSymbol:Zs,getPropertiesOfType:gs,getPropertyOfType:(n,a)=>va(n,_l(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{const d=No(c);if(!d)return;const _=_l(a),v=Ree(_,d);return v?tye(n,v):void 0},getTypeOfPropertyOfType:(n,a)=>Ke(n,_l(a)),getIndexInfoOfType:(n,a)=>Sg(n,a===0?ke:Tt),getIndexInfosOfType:gd,getIndexInfosOfIndexSymbol:uge,getSignaturesOfType:Xo,getIndexTypeOfType:(n,a)=>iE(n,a===0?ke:Tt),getIndexType:n=>Y_(n),getBaseTypes:Cp,getBaseTypeOfLiteralType:_v,getWidenedType:Kp,getTypeFromTypeNode:n=>{const a=No(n,ji);return a?Ti(a):_t},getParameterType:h_,getParameterIdentifierInfoAtPosition:Dmt,getPromisedTypeOfPromise:Q8,getAwaitedType:n=>oA(n),getReturnTypeOfSignature:ps,isNullableType:H9,getNullableType:N9,getNonNullableType:hv,getNonOptionalType:eee,getTypeArguments:Js,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)=>{const c=No(n);return c?avt(c,a):[]},getSymbolAtLocation:n=>{const a=No(n);return a?Vm(a,!0):void 0},getIndexInfosAtLocation:n=>{const a=No(n);return a?mvt(a):void 0},getShorthandAssignmentValueSymbol:n=>{const a=No(n);return a?_vt(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{const a=No(n,Ku);return a?hvt(a):void 0},getExportSymbolOfSymbol(n){return rs(n.exportSymbol||n)},getTypeAtLocation:n=>{const a=No(n);return a?gx(a):_t},getTypeOfAssignmentPattern:n=>{const a=No(n,mC);return a&&rte(a)||_t},getPropertySymbolOfDestructuringAssignment:n=>{const a=No(n,Ve);return a?gvt(a):void 0},signatureToString:(n,a,c,d)=>kh(n,No(a),c,d),typeToString:(n,a,c)=>Hn(n,No(a),c),symbolToString:(n,a,c,d)=>Si(n,No(a),c,d),typePredicateToString:(n,a,c)=>wh(n,No(a),c),writeSignature:(n,a,c,d,_)=>kh(n,No(a),c,d,_),writeType:(n,a,c,d)=>Hn(n,No(a),c,d),writeSymbol:(n,a,c,d,_)=>Si(n,No(a),c,d,_),writeTypePredicate:(n,a,c,d)=>wh(n,No(a),c,d),getAugmentedPropertiesOfType:nbe,getRootSymbols:dFe,getSymbolOfExpando:Oee,getContextualType:(n,a)=>{const c=No(n,yt);if(c)return a&4?so(c,()=>Yd(c,a)):Yd(c,a)},getContextualTypeForObjectLiteralElement:n=>{const a=No(n,Mg);return a?Gve(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{const c=No(n,NE);return c&&Bve(c,a)},getContextualTypeForJsxAttribute:n=>{const a=No(n,b4);return a&&I4e(a,void 0)},isContextSensitive:Vf,getTypeOfPropertyOfContextualType:fE,getFullyQualifiedName:Hp,getResolvedSignature:(n,a,c)=>Wi(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:Yt,getResolvedSignatureForSignatureHelp:(n,a,c)=>vi(n,()=>Wi(n,a,c,16)),getExpandedParameters:xOe,hasEffectiveRestParameter:jh,containsArgumentsReference:sge,getConstantValue:n=>{const a=No(n,hFe);return a?rbe(a):void 0},isValidPropertyAccess:(n,a)=>{const c=No(n,fre);return!!c&&Wft(c,_l(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{const d=No(n,Fr);return!!d&&t3e(d,a,c)},getSignatureFromDeclaration:n=>{const a=No(n,ea);return a?dm(a):void 0},isImplementationOfOverload:n=>{const a=No(n,ea);return a?mFe(a):void 0},getImmediateAliasedSymbol:qve,getAliasedSymbol:Oc,getEmitResolver:ny,getExportsOfModule:NT,getExportsAndPropertiesOfModule:oN,forEachExportAndPropertyOfModule:aN,getSymbolWalker:Mse(blt,Gf,ps,Cp,p_,dr,Bm,Md,Gp,Js),getAmbientModules:Myt,getJsxIntrinsicTagNamesAt:hft,isOptionalParameter:n=>{const a=No(n,Ao);return a?T8(a):!1},tryGetMemberInModuleExports:(n,a)=>CT(_l(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>sN(_l(n),a),tryFindAmbientModule:n=>SZ(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>SZ(n,!1),getApparentType:Ld,getUnionType:ei,isTypeAssignableTo:ba,createAnonymousType:Ls,createSignature:Eg,createSymbol:Ka,createIndexInfo:Bh,getAnyType:()=>j,getStringType:()=>ke,getStringLiteralType:Xd,getNumberType:()=>Tt,getNumberLiteralType:m_,getBigIntType:()=>kt,createPromiseType:nB,createArrayType:Vu,getElementTypeOfArrayType:D9,getBooleanType:()=>Pi,getFalseType:n=>n?en:En,getTrueType:n=>n?Gn:qn,getVoidType:()=>ir,getUndefinedType:()=>Oe,getNullType:()=>fe,getESSymbolType:()=>xi,getNeverType:()=>Vr,getOptionalType:()=>J,getPromiseType:()=>p9(!1),getPromiseLikeType:()=>f8e(!1),getAsyncIterableType:()=>{const n=MZ(!1);if(n!==wo)return n},isSymbolAccessible:wi,isArrayType:Uf,isTupleType:Wa,isArrayLikeType:my,isEmptyAnonymousObjectType:Vh,isTypeInvalidDueToUnionDiscriminant:tlt,getExactOptionalProperties:Dut,getAllPossiblePropertiesOfTypes:nlt,getSuggestedSymbolForNonexistentProperty:iye,getSuggestionForNonexistentProperty:oye,getSuggestedSymbolForNonexistentJSXAttribute:Z4e,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>aye(n,_l(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>Lft(n,_l(a),c),getSuggestedSymbolForNonexistentModule:Nee,getSuggestionForNonexistentExport:kft,getSuggestedSymbolForNonexistentClassMember:Q4e,getBaseConstraintOfType:Gu,getDefaultFromTypeParameter:n=>n&&n.flags&262144?GT(n):void 0,resolveName(n,a,c,d){return yl(a,_l(n),c,void 0,void 0,!1,d)},getJsxNamespace:n=>Vi(B0(n)),getJsxFragmentFactory:n=>{const a=obe(n);return a&&Vi(Gp(a).escapedText)},getAccessibleSymbolChain:yb,getTypePredicateOfSignature:Gf,resolveExternalModuleName:n=>{const a=No(n,yt);return a&&hd(a,a,!0)},resolveExternalModuleSymbol:Rp,tryGetThisTypeAt:(n,a,c)=>{const d=No(n);return d&&Ove(d,a,c)},getTypeArgumentConstraint:n=>{const a=No(n,ji);return a&&V_t(a)},getSuggestionDiagnostics:(n,a)=>{const c=No(n,$i)||N.fail("Could not determine parsed source file.");if(YC(c,V,e))return et;let d;try{return i=a,ebe(c),N.assert(!!(Zr(c).flags&1)),d=qr(d,pT.getDiagnostics(c.fileName)),yWe(nFe(c),(_,v,x)=>{!eR(_)&&!tFe(v,!!(_.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:Lr,isDeclarationVisible:l_,isPropertyAccessible:lye,getTypeOnlyAliasDeclaration:Of,getMemberOverrideModifierStatus:bgt,isTypeParameterPossiblyReferenced:y9,typeHasCallOrConstructSignatures:ite};function Yt(n,a){const c=new Set,d=[];so(a,()=>Wi(n,d,void 0,0));for(const _ of d)c.add(_);d.length=0,vi(a,()=>Wi(n,d,void 0,0));for(const _ of d)c.add(_);return zo(c)}function vi(n,a){if(n=Vn(n,zV),n){const c=[],d=[];for(;n;){const v=Zr(n);if(c.push([v,v.resolvedSignature]),v.resolvedSignature=void 0,qE(n)){const x=Ki(Ir(n)),k=x.type;d.push([x,k]),x.type=void 0}n=Vn(n.parent,zV)}const _=a();for(const[v,x]of c)v.resolvedSignature=x;for(const[v,x]of d)v.type=x;return _}return a()}function so(n,a){const c=Vn(n,NE);if(c){let _=n;do Zr(_).skipDirectInference=!0,_=_.parent;while(_&&_!==c)}U=!0;const d=vi(n,a);if(U=!1,c){let _=n;do Zr(_).skipDirectInference=void 0,_=_.parent;while(_&&_!==c)}return d}function Wi(n,a,c,d){const _=No(n,NE);tn=c;const v=_?PN(_,a,d):void 0;return tn=void 0,v}var Co=new Map,Ln=new Map,Ci=new Map,Ar=new Map,sn=new Map,tt=new Map,zt=new Map,Dn=new Map,ci=new Map,yi=new Map,Qi=new Map,Io=new Map,fa=new Map,ka=new Map,Tn=new Map,wn=[],He=new Map,mt=new Set,ft=Ka(4,"unknown"),Ct=Ka(0,"__resolving__"),le=new Map,Fe=new Map,pt=new Set,j=cc(1,"any"),it=cc(1,"any",262144,"auto"),Rt=cc(1,"any",void 0,"wildcard"),Ye=cc(1,"any",void 0,"blocked string"),_t=cc(1,"error"),Gt=cc(1,"unresolved"),yn=cc(1,"any",65536,"non-inferrable"),fn=cc(1,"intrinsic"),hn=cc(2,"unknown"),q=cc(2,"unknown",void 0,"non-null"),Oe=cc(32768,"undefined"),Lt=X?Oe:cc(32768,"undefined",65536,"widening"),L=cc(32768,"undefined",void 0,"missing"),me=De?L:Oe,J=cc(32768,"undefined",void 0,"optional"),fe=cc(65536,"null"),Be=X?fe:cc(65536,"null",65536,"widening"),ke=cc(4,"string"),Tt=cc(8,"number"),kt=cc(64,"bigint"),en=cc(512,"false",void 0,"fresh"),En=cc(512,"false"),Gn=cc(512,"true",void 0,"fresh"),qn=cc(512,"true");Gn.regularType=qn,Gn.freshType=Gn,qn.regularType=qn,qn.freshType=Gn,en.regularType=En,en.freshType=en,En.regularType=En,En.freshType=en;var Pi=ei([En,qn]),xi=cc(4096,"symbol"),ir=cc(16384,"void"),Vr=cc(131072,"never"),vo=cc(131072,"never",262144,"silent"),Mi=cc(131072,"never",void 0,"implicit"),Ri=cc(131072,"never",void 0,"unreachable"),Jr=cc(67108864,"object"),xo=ei([ke,Tt]),Nn=ei([ke,Tt,xi]),Fs=Le?ke:Nn,Ql=ei([Tt,kt]),ko=ei([ke,Tt,Pi,kt,fe,Oe]),cs=jT(["",""],[Tt]),Vs=v9(n=>n.flags&262144?tut(n):n,()=>"(restrictive mapper)"),gl=v9(n=>n.flags&262144?Rt:n,()=>"(permissive mapper)"),cu=cc(131072,"never",void 0,"unique literal"),ho=v9(n=>n.flags&262144?cu:n,()=>"(unique literal mapper)"),da,uu=v9(n=>(da&&(n===Tp||n===Ms||n===xc)&&da(!0),n),()=>"(unmeasurable reporter)"),Ts=v9(n=>(da&&(n===Tp||n===Ms||n===xc)&&da(!1),n),()=>"(unreliable reporter)"),Ca=Ls(void 0,K,et,et,et),ml=Ls(void 0,K,et,et,et);ml.objectFlags|=2048;var Lf=Ka(2048,"__type");Lf.members=ca();var lc=Ls(Lf,K,et,et,et),Nl=Ls(void 0,K,et,et,et),cl=X?ei([Oe,fe,Nl]):hn,wo=Ls(void 0,K,et,et,et);wo.instantiations=new Map;var nn=Ls(void 0,K,et,et,et);nn.objectFlags|=262144;var js=Ls(void 0,K,et,et,et),tu=Ls(void 0,K,et,et,et),du=Ls(void 0,K,et,et,et),Tp=gf(),Ms=gf();Ms.constraint=Tp;var xc=gf(),ue=gf(),Z=gf();Z.constraint=ue;var we=u9(1,"<<unresolved>>",0,j),Et=Eg(void 0,void 0,void 0,et,j,void 0,0,0),un=Eg(void 0,void 0,void 0,et,_t,void 0,0,0),Sr=Eg(void 0,void 0,void 0,et,j,void 0,0,0),vr=Eg(void 0,void 0,void 0,et,vo,void 0,0,0),jr=Bh(Tt,ke,!0),Di=new Map,Mr={get yieldType(){return N.fail("Not supported")},get returnType(){return N.fail("Not supported")},get nextType(){return N.fail("Not supported")}},Yo=gy(j,j,j),Sl=gy(j,j,hn),jc=gy(Vr,j,Oe),Us={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:wlt,getGlobalIterableType:MZ,getGlobalIterableIteratorType:Olt,getGlobalGeneratorType:Wlt,resolveIterationType:(n,a)=>oA(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},vc={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:Flt,getGlobalIterableType:Sge,getGlobalIterableIteratorType:zlt,getGlobalGeneratorType:Blt,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},Es,Uc=new Map,ip=[],wc,sm,_d,Pe,Ot,Xn,yo,$o,na,Zl,yc,ul,vl,Gl,ec,Hc,df,jd,Nd,kf,V_,Dh,qg,Bu,Jg,Ap,dg,Ud,te,lt,Ft,Vt,W,Te,st,qt,rr,ii,Yr,oo,wa,Oa,Ol,pu,Rc,Ip,Hd,ab,us,Pm,Mm,Ui,Kg,ey,Lm,b1,E1,pf=new Map,j_=0,ff=0,Xg=0,ze=!1,Ze=0,Mt,jt,bn,Qn=[],vn=[],Zn=[],_i=0,cr=[],ni=[],fr=0,Qo=Xd(""),Ja=m_(0),Zu=WZ({negative:!1,base10Value:"0"}),fu=[],Yg=[],O0=[],zI=0,W0=!1,qD=0,JD=10,KD=[],uT=[],S1=[],BI=[],XD=[],GI=[],VI=[],jI=[],UI=[],dT=[],HI=[],T1=[],A1=[],sb=[],lb=[],pg=[],F0=[],ts=ER(),pT=ER(),YD=Lh(),z0,$g,Nh=new Map,wf=new Map,qd=new Map,xp=new Map,op=new Map,ty=new Map,fT=ca();fT.set(je.escapedName,je);var $D=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",V.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Uvt(),Qt;function qI(n){return n?Tn.get(n):void 0}function cb(n,a){return n&&Tn.set(n,a),a}function B0(n){if(n){const a=Un(n);if(a)if(lI(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;const c=a.pragmas.get("jsxfrag");if(c){const _=To(c)?c[0]:c;if(a.localJsxFragmentFactory=pI(_.arguments.factory,se),nt(a.localJsxFragmentFactory,bc,Qd),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=Gp(a.localJsxFragmentFactory).escapedText}const d=obe(n);if(d)return a.localJsxFragmentFactory=d,a.localJsxFragmentNamespace=Gp(d).escapedText}else{const c=JI(a);if(c)return a.localJsxNamespace=c}}return z0||(z0="React",V.jsxFactory?($g=pI(V.jsxFactory,se),nt($g,bc),$g&&(z0=Gp($g).escapedText)):V.reactNamespace&&(z0=_l(V.reactNamespace))),$g||($g=w.createQualifiedName(w.createIdentifier(Vi(z0)),"createElement")),z0}function JI(n){if(n.localJsxNamespace)return n.localJsxNamespace;const a=n.pragmas.get("jsx");if(a){const c=To(a)?a[0]:a;if(n.localJsxFactory=pI(c.arguments.factory,se),nt(n.localJsxFactory,bc,Qd),n.localJsxFactory)return n.localJsxNamespace=Gp(n.localJsxFactory).escapedText}}function bc(n){return gh(n,-1,-1),xn(n,bc,void 0)}function ny(n,a){return rFe(n,a),We}function KI(n,a,...c){const d=n?kr(n,a,...c):Ul(a,...c),_=ts.lookup(d);return _||(ts.add(d),d)}function r_(n,a,c,...d){const _=qe(a,c,...d);return _.skippedOn=n,_}function mT(n,a,...c){return n?kr(n,a,...c):Ul(a,...c)}function qe(n,a,...c){const d=mT(n,a,...c);return ts.add(d),d}function i_(n,a){n?ts.add(a):pT.add({...a,category:2})}function mu(n,a,c,...d){if(a.pos<0||a.end<0){if(!n)return;const _=Un(a);i_(n,"message"in c?$c(_,0,0,c,...d):cj(_,c));return}i_(n,"message"in c?kr(a,c,...d):Lg(Un(a),a,c))}function G0(n,a,c,...d){const _=qe(n,c,...d);if(a){const v=kr(n,f.Did_you_forget_to_use_await);Ma(_,v)}return _}function XI(n,a){const c=Array.isArray(n)?Xe(n,IV):IV(n);return c&&Ma(a,kr(c,f.The_declaration_was_marked_as_deprecated_here)),pT.add(a),a}function ub(n){const a=Cd(n);return a&&Ne(n.declarations)>1?a.flags&64?bt(n.declarations,ry):Jn(n.declarations,ry):!!n.valueDeclaration&&ry(n.valueDeclaration)||Ne(n.declarations)&&Jn(n.declarations,ry)}function ry(n){return!!(eS(n)&536870912)}function iy(n,a,c){const d=kr(n,f._0_is_deprecated,c);return XI(a,d)}function DM(n,a,c,d){const _=c?kr(n,f.The_signature_0_of_1_is_deprecated,d,c):kr(n,f._0_is_deprecated,d);return XI(a,_)}function Ka(n,a,c){y++;const d=new u(n|33554432,a);return d.links=new Hse,d.links.checkFlags=c||0,d}function o_(n,a){const c=Ka(1,n);return c.links.type=a,c}function _T(n,a){const c=Ka(4,n);return c.links.type=a,c}function hT(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 V0(n,a){a.mergeId||(a.mergeId=jse,jse++),KD[a.mergeId]=n}function gT(n){const a=Ka(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)),V0(a,n),a}function lm(n,a,c=!1){if(!(n.flags&hT(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){const _=Vl(n);if(_===ft)return a;n=gT(_)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&jL(n,a.valueDeclaration),qr(n.declarations,a.declarations),a.members&&(n.members||(n.members=ca()),a_(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=ca()),a_(n.exports,a.exports,c)),c||V0(n,a)}else if(n.flags&1024)n!==ot&&qe(a.declarations&&Lo(a.declarations[0]),f.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Si(n));else{const _=!!(n.flags&384||a.flags&384),v=!!(n.flags&2||a.flags&2),x=_?f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:v?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,k=a.declarations&&Un(a.declarations[0]),F=n.declarations&&Un(n.declarations[0]),H=bL(k,V.checkJs),re=bL(F,V.checkJs),be=Si(a);if(k&&F&&Es&&!_&&k!==F){const ge=Dg(k.path,F.path)===-1?k:F,Je=ge===k?F:k,gt=dA(Es,`${ge.path}|${Je.path}`,()=>({firstFile:ge,secondFile:Je,conflictingSymbols:new Map})),Dt=dA(gt.conflictingSymbols,be,()=>({isBlockScoped:v,firstFileLocations:[],secondFileLocations:[]}));H||d(Dt.firstFileLocations,a),re||d(Dt.secondFileLocations,n)}else H||cm(a,x,be,n),re||cm(n,x,be,a)}return n;function d(_,v){if(v.declarations)for(const x of v.declarations)Ef(_,x)}}function cm(n,a,c,d){Xe(n.declarations,_=>{Qg(_,a,c,d.declarations)})}function Qg(n,a,c,d){const _=(u0(n,!1)?yj(n):Lo(n))||n,v=KI(_,a,c);for(const x of d||et){const k=(u0(x,!1)?yj(x):Lo(x))||x;if(k===_)continue;v.relatedInformation=v.relatedInformation||[];const F=kr(k,f._0_was_also_declared_here,c),H=kr(k,f.and_here);Ne(v.relatedInformation)>=5||bt(v.relatedInformation,re=>HC(re,H)===0||HC(re,F)===0)||Ma(v,Ne(v.relatedInformation)?H:F)}}function YI(n,a){if(!(n!=null&&n.size))return a;if(!(a!=null&&a.size))return n;const c=ca();return a_(c,n),a_(c,a),c}function a_(n,a,c=!1){a.forEach((d,_)=>{const v=n.get(_);n.set(_,v?lm(v,d,c):rs(d))})}function QD(n){var a,c,d;const _=n.parent;if(((a=_.symbol.declarations)==null?void 0:a[0])!==_){N.assert(_.symbol.declarations.length>1);return}if(A_(_))a_(Se,_.symbol.exports);else{const v=n.parent.parent.flags&33554432?void 0:f.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let x=nv(n,n,v,!0);if(!x)return;if(x=Rp(x),x.flags&1920)if(bt(sm,k=>x===k.symbol)){const k=lm(_.symbol,x,!0);_d||(_d=new Map),_d.set(n.text,k)}else{if((c=x.exports)!=null&&c.get("__export")&&((d=_.symbol.exports)!=null&&d.size)){const k=Uhe(x,"resolvedExports");for(const[F,H]of zo(_.symbol.exports.entries()))k.has(F)&&!x.exports.has(F)&&lm(k.get(F),H)}lm(x,_.symbol)}else qe(n,f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function I1(n,a,c){a.forEach((_,v)=>{const x=n.get(v);x?Xe(x.declarations,d(Vi(v),c)):n.set(v,_)});function d(_,v){return x=>ts.add(kr(x,v,_))}}function Ki(n){if(n.flags&33554432)return n.links;const a=Sa(n);return uT[a]??(uT[a]=new Hse)}function Zr(n){const a=as(n);return S1[a]||(S1[a]=new MVe)}function Ch(n){return n.kind===312&&!Fp(n)}function Jd(n,a,c){if(c){const d=rs(n.get(a));if(d&&(N.assert((xl(d)&1)===0,"Should never get an instantiated symbol here."),d.flags&c||d.flags&2097152&&Au(d)&c))return d}}function NM(n,a){const c=n.parent,d=n.parent.parent,_=Jd(c.locals,a,111551),v=Jd(Cb(d.symbol),a,111551);return _&&v?[_,v]:N.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Zg(n,a){const c=Un(n),d=Un(a),_=_h(n);if(c!==d){if(G&&(c.externalModuleIndicator||d.externalModuleIndicator)||!Ps(V)||DS(a)||n.flags&33554432||x(a,n))return!0;const F=e.getSourceFiles();return F.indexOf(c)<=F.indexOf(d)}if(a.flags&16777216||DS(a)||Tve(a))return!0;if(n.pos<=a.pos&&!(qo(n)&&PL(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){const F=f0(a,208);return F?Vn(F,$a)!==Vn(n,$a)||n.pos<F.pos:Zg(f0(n,260),a)}else{if(n.kind===260)return!v(n,a);if(di(n))return!Vn(a,F=>Za(F)&&F.parent.parent===n);if(qo(n))return!k(n,a,!1);if(pp(n,n.parent))return!(ye&&au(n)===au(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&&au(n)&&(qo(n)||pp(n,n.parent))?!k(n,a,!0):!0;return!1;function v(F,H){switch(F.parent.parent.kind){case 243:case 248:case 250:if(R1(H,F,_))return!0;break}const re=F.parent.parent;return Yx(re)&&R1(H,re.expression,_)}function x(F,H){return!!Vn(F,re=>{if(re===_)return"quit";if(ea(re))return!0;if(Rl(re))return H.pos<F.pos;const be=ri(re.parent,qo);if(be&&be.initializer===re){if(aa(re.parent)){if(H.kind===174)return!0;if(qo(H)&&au(F)===au(H)){const Je=H.name;if(Ve(Je)||qi(Je)){const gt=dr(Ir(H)),Dt=mn(H.parent.members,Rl);if(xgt(Je,gt,Dt,H.parent.pos,re.pos))return!0}}}else if(!(H.kind===172&&!aa(H))||au(F)!==au(H))return!0}return!1})}function k(F,H,re){return H.end>F.end?!1:Vn(H,ge=>{if(ge===F)return"quit";switch(ge.kind){case 219:return!0;case 172:return re&&(qo(F)&&ge.parent===F.parent||pp(F,F.parent)&&ge.parent===F.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 CM(n,a,c){const d=os(V),_=a;if(Ao(c)&&_.body&&n.valueDeclaration&&n.valueDeclaration.pos>=_.body.pos&&n.valueDeclaration.end<=_.body.end&&d>=2){const k=Zr(_);return k.declarationRequiresScopeChange===void 0&&(k.declarationRequiresScopeChange=Xe(_.parameters,v)||!1),!k.declarationRequiresScopeChange}return!1;function v(k){return x(k.name)||!!k.initializer&&x(k.initializer)}function x(k){switch(k.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return x(k.name);case 172:return mc(k)?!ye:x(k.name);default:return NV(k)||qu(k)?d<7:$a(k)&&k.dotDotDotToken&&im(k.parent)?d<4:ji(k)?!1:Uo(k,x)||!1}}}function db(n){return mS(n)&&Pg(n.type)||TP(n)&&Pg(n.typeExpression)}function yl(n,a,c,d,_,v,x=!1,k=!0){return jp(n,a,c,d,_,v,x,k,Jd)}function jp(n,a,c,d,_,v,x,k,F){var H,re,be;const ge=n;let Je,gt,Dt,an,cn,ar=!1;const Wn=n;let ln,Bn=!1;e:for(;n;){if(a==="const"&&db(n))return;if(_L(n)&>&&n.name===gt&&(gt=n,n=n.parent),ph(n)&&n.locals&&!Ch(n)&&(Je=F(n.locals,a,c))){let tr=!0;if(ea(n)&>&>!==n.body?(c&Je.flags&788968&>.kind!==327&&(tr=Je.flags&262144?gt===n.type||gt.kind===169||gt.kind===348||gt.kind===349||gt.kind===168:!1),c&Je.flags&3&&(CM(Je,n,gt)?tr=!1:Je.flags&1&&(tr=gt.kind===169||gt===n.type&&!!Vn(Je.valueDeclaration,Ao)))):n.kind===194&&(tr=gt===n.trueType),tr)break e;Je=void 0}switch(ar=ar||um(n,gt),n.kind){case 312:if(!Fp(n))break;Bn=!0;case 267:const tr=((H=Ir(n))==null?void 0:H.exports)||K;if(n.kind===312||Xl(n)&&n.flags&33554432&&!A_(n)){if(Je=tr.get("default")){const Ro=xR(Je);if(Ro&&Je.flags&c&&Ro.escapedName===a)break e;Je=void 0}const nr=tr.get(a);if(nr&&nr.flags===2097152&&(pl(nr,281)||pl(nr,280)))break}if(a!=="default"&&(Je=F(tr,a,c&2623475)))if($i(n)&&n.commonJsModuleIndicator&&!((re=Je.declarations)!=null&&re.some($f)))Je=void 0;else break e;break;case 266:if(Je=F(((be=Ir(n))==null?void 0:be.exports)||K,a,c&8)){d&&rm(V)&&!(n.flags&33554432)&&Un(n)!==Un(Je.valueDeclaration)&&qe(Wn,f.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Vi(a),$e,`${Vi(_f(n).escapedName)}.${Vi(a)}`);break e}break;case 172:if(!aa(n)){const nr=rv(n.parent);nr&&nr.locals&&F(nr.locals,a,c&111551)&&(N.assertNode(n,qo),an=n)}break;case 263:case 231:case 264:if(Je=F(Ir(n).members||K,a,c&788968)){if(!ev(Je,n)){Je=void 0;break}if(gt&&aa(gt)){d&&qe(Wn,f.Static_members_cannot_reference_class_type_parameters);return}break e}if(Qc(n)&&c&32){const nr=n.name;if(nr&&a===nr.escapedText){Je=n.symbol;break e}}break;case 233:if(gt===n.expression&&n.parent.token===96){const nr=n.parent.parent;if(di(nr)&&(Je=F(Ir(nr).members,a,c&788968))){d&&qe(Wn,f.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(ln=n.parent.parent,(di(ln)||ln.kind===264)&&(Je=F(Ir(ln).members,a,c&788968))){d&&qe(Wn,f.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(os(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){const nr=n.name;if(nr&&a===nr.escapedText){Je=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&(Yc(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:const Kn=hR(n);Kn&&(n=Kn.parent);break;case 169:gt&&(gt===n.initializer||gt===n.name&&ta(gt))&&(cn||(cn=n));break;case 208:gt&&(gt===n.initializer||gt===n.name&&ta(gt))&&zE(n)&&!cn&&(cn=n);break;case 195:if(c&262144){const nr=n.typeParameter.name;if(nr&&a===nr.escapedText){Je=n.typeParameter.symbol;break e}}break;case 281:gt&>===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}pb(n)&&(Dt=n),gt=n,n=om(n)?o3(n)||n.parent:(e_(n)||QW(n))&&d0(n)||n.parent}if(v&&Je&&(!Dt||Je!==Dt.symbol)&&(Je.isReferenced|=c),!Je){if(gt&&(N.assertNode(gt,$i),gt.commonJsModuleIndicator&&a==="exports"&&c>.symbol.flags))return gt.symbol;x||(Je=F(Se,a,c))}if(!Je&&ge&&lr(ge)&&ge.parent&&Td(ge.parent,!1))return vt;function zn(){return an&&!ye?(qe(Wn,Wn&&an.type&&eL(an.type,Wn.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,xs(an.name),km(_)),!0):!1}if(Je){if(d&&zn())return}else{d&&r(()=>{if(!Wn||Wn.parent.kind!==331&&!x1(Wn,a,_)&&!zn()&&!vT(Wn)&&!$I(Wn,a,c)&&!oy(Wn,a)&&!yT(Wn,a,c)&&!ZD(Wn,a,c)&&!_g(Wn,a,c)){let tr,Kn;if(_&&(Kn=Pft(_),Kn&&qe(Wn,d,km(_),Kn)),!Kn&&k&&qD<JD&&(tr=aye(ge,a,c),(tr==null?void 0:tr.valueDeclaration)&&ku(tr.valueDeclaration)&&A_(tr.valueDeclaration)&&(tr=void 0),tr)){const Ro=Si(tr),Eo=rye(ge,tr,!1),Bo=c===1920||_&&typeof _!="string"&&Ys(_)?f.Cannot_find_namespace_0_Did_you_mean_1:Eo?f.Could_not_find_name_0_Did_you_mean_1:f.Cannot_find_name_0_Did_you_mean_1,_o=mT(Wn,Bo,km(_),Ro);i_(!Eo,_o),tr.valueDeclaration&&Ma(_o,kr(tr.valueDeclaration,f._0_is_declared_here,Ro))}!tr&&!Kn&&_&&qe(Wn,d,km(_)),qD++}});return}return d&&r(()=>{var tr;if(Wn&&(c&2||(c&32||c&384)&&(c&111551)===111551)){const Kn=hf(Je);(Kn.flags&2||Kn.flags&32||Kn.flags&384)&&Qs(Kn,Wn)}if(Je&&Bn&&(c&111551)===111551&&!(ge.flags&16777216)){const Kn=rs(Je);Ne(Kn.declarations)&&Jn(Kn.declarations,nr=>qk(nr)||$i(nr)&&!!nr.symbol.globalExports)&&mu(!V.allowUmdGlobalAccess,Wn,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Vi(a))}if(Je&&cn&&!ar&&(c&111551)===111551){const Kn=rs(yZ(Je)),nr=R_(cn);Kn===Ir(cn)?qe(Wn,f.Parameter_0_cannot_reference_itself,xs(cn.name)):Kn.valueDeclaration&&Kn.valueDeclaration.pos>cn.pos&&nr.parent.locals&&F(nr.parent.locals,Kn.escapedName,c)===Kn&&qe(Wn,f.Parameter_0_cannot_reference_identifier_1_declared_after_it,xs(cn.name),xs(Wn))}if(Je&&Wn&&c&111551&&Je.flags&2097152&&!(Je.flags&111551)&&!h0(Wn)){const Kn=Of(Je,111551);if(Kn){const nr=Kn.kind===281||Kn.kind===278||Kn.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,Ro=Vi(a);fg(qe(Wn,nr,Ro),Kn,Ro)}}if(V.isolatedModules&&Je&&Bn&&(c&111551)===111551){const nr=F(Se,a,c)===Je&&$i(gt)&>.locals&&F(gt.locals,a,-111552);if(nr){const Ro=(tr=nr.declarations)==null?void 0:tr.find(Eo=>Eo.kind===276||Eo.kind===273||Eo.kind===274||Eo.kind===271);Ro&&!lL(Ro)&&qe(Ro,f.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Vi(a))}}}),Je}function fg(n,a,c){return a?Ma(n,kr(a,a.kind===281||a.kind===278||a.kind===280?f._0_was_exported_here:f._0_was_imported_here,c)):n}function um(n,a){return n.kind!==219&&n.kind!==218?eI(n)||(Bs(n)||n.kind===172&&!aa(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||Qr(n,1024)?!0:!bS(n)}function pb(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function km(n){return Mo(n)?Vi(n):xs(n)}function ev(n,a){if(n.declarations){for(const c of n.declarations)if(c.kind===168&&(om(c.parent)?AS(c.parent):c.parent)===a)return!(om(c.parent)&&In(c.parent.parent.tags,$f))}return!1}function x1(n,a,c){if(!Ve(n)||n.escapedText!==a||iFe(n)||DS(n))return!1;const d=Fd(n,!1,!1);let _=d;for(;_;){if(di(_.parent)){const v=Ir(_.parent);if(!v)break;const x=dr(v);if(va(x,a))return qe(n,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,km(c),Si(v)),!0;if(_===d&&!aa(_)){const k=Zs(v).thisType;if(va(k,a))return qe(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,km(c)),!0}}_=_.parent}return!1}function vT(n){const a=mg(n);return a&&Hs(a,64,!0)?(qe(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,fc(a)),!0):!1}function mg(n){switch(n.kind){case 80:case 211:return n.parent?mg(n.parent):void 0;case 233:if(Bl(n.expression))return n.expression;default:return}}function $I(n,a,c){const d=1920|(lr(n)?111551:0);if(c===d){const _=Vl(yl(n,a,788968&~d,void 0,void 0,!1)),v=n.parent;if(_){if(Id(v)){N.assert(v.left===n,"Should only be resolving left side of qualified name as a namespace");const x=v.right.escapedText;if(va(Zs(_),x))return qe(v,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,Vi(a),Vi(x)),!0}return qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Vi(a)),!0}}return!1}function _g(n,a,c){if(c&788584){const d=Vl(yl(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,Vi(a)),!0}return!1}function U_(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function oy(n,a){return U_(a)&&n.parent.kind===281?(qe(n,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function ZD(n,a,c){if(c&111551){if(U_(a)){const v=n.parent.parent;if(v&&v.parent&&nf(v)){const x=v.token,k=v.parent.kind;k===264&&x===96?qe(n,f.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Vi(a)):k===263&&x===96?qe(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Vi(a)):k===263&&x===119&&qe(n,f.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Vi(a))}else qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Vi(a));return!0}const d=Vl(yl(n,a,788544,void 0,void 0,!1)),_=d&&Au(d);if(d&&_!==void 0&&!(_&111551)){const v=Vi(a);return tN(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,v):eN(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,v,v==="K"?"P":"K"):qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,v),!0}}return!1}function eN(n,a){const c=Vn(n.parent,d=>Za(d)||gp(d)?!1:yp(d)||"quit");if(c&&c.members.length===1){const d=Zs(a);return!!(d.flags&1048576)&&oB(d,384,!0)}return!1}function tN(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function yT(n,a,c){if(c&111127){if(Vl(yl(n,a,1024,void 0,void 0,!1)))return qe(n,f.Cannot_use_namespace_0_as_a_value,Vi(a)),!0}else if(c&788544&&Vl(yl(n,a,1536,void 0,void 0,!1)))return qe(n,f.Cannot_use_namespace_0_as_a_type,Vi(a)),!0;return!1}function Qs(n,a){var c;if(N.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;const d=(c=n.declarations)==null?void 0:c.find(_=>QV(_)||di(_)||_.kind===266);if(d===void 0)return N.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(d.flags&33554432)&&!Zg(d,a)){let _;const v=xs(Lo(d));n.flags&2?_=qe(a,f.Block_scoped_variable_0_used_before_its_declaration,v):n.flags&32?_=qe(a,f.Class_0_used_before_its_declaration,v):n.flags&256?_=qe(a,f.Enum_0_used_before_its_declaration,v):(N.assert(!!(n.flags&128)),rm(V)&&(_=qe(a,f.Enum_0_used_before_its_declaration,v))),_&&Ma(_,kr(d,f._0_is_declared_here,v))}}function R1(n,a,c){return!!a&&!!Vn(n,d=>d===a||(d===c||ea(d)&&(!bS(d)||Bc(d)&3)?"quit":!1))}function bT(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 wm(n){return n.declarations&&oi(n.declarations,fb)}function fb(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&&gR(n)||mr(n)&&zl(n)===2&&gR(n)||ws(n)&&mr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&nN(n.parent.right)||n.kind===304||n.kind===303&&nN(n.initializer)||n.kind===260&&wE(n)||n.kind===208&&wE(n.parent.parent)}function nN(n){return QL(n)||Os(n)&&eh(n)}function ET(n,a){const c=_b(n);if(c){const _=DR(c.expression).arguments[0];return Ve(c.name)?Vl(va(qOe(_),c.name.escapedText)):void 0}if(Oi(n)||n.moduleReference.kind===283){const _=hd(n,hj(n)||TC(n)),v=Rp(_);return ap(n,_,v,!1),v}const d=ZI(n.moduleReference,a);return PM(n,d),d}function PM(n,a){if(ap(n,void 0,a,!1)&&!n.isTypeOnly){const c=Of(Ir(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,v=d?f._0_was_exported_here:f._0_was_imported_here,x=c.kind===278?"*":Vi(c.name.escapedText);Ma(qe(n.moduleReference,_),kr(c,v,x))}}function hr(n,a,c,d){const _=n.exports.get("export="),v=_?va(dr(_),a,!0):n.exports.get(a),x=Vl(v,d);return ap(c,v,x,!1),x}function nu(n){return kl(n)&&!n.isExportEquals||Qr(n,2048)||Ku(n)||Sh(n)}function to(n){return ls(n)?e.getModeForUsageLocation(Un(n),n):void 0}function mf(n,a){return n===99&&a===1}function ay(n){return to(n)===99&&Al(n.text,".json")}function H_(n,a,c,d){const _=n&&to(d);if(n&&_!==void 0&&100<=G&&G<=199){const v=mf(_,n.impliedNodeFormat);if(_===99||v)return v}if(!Y)return!1;if(!n||n.isDeclarationFile){const v=hr(a,"default",void 0,!0);return!(v&&bt(v.declarations,nu)||hr(a,_l("__esModule"),void 0,c))}return cd(n)?typeof n.externalModuleIndicator!="object"&&!hr(a,_l("__esModule"),void 0,c):sy(a)}function ur(n,a){const c=hd(n,n.parent.moduleSpecifier);if(c)return ST(c,n,a)}function ST(n,a,c){var d;let _;vC(n)?_=n:_=hr(n,"default",a,c);const v=(d=n.declarations)==null?void 0:d.find($i),x=j0(a);if(!x)return _;const k=ay(x),F=H_(v,n,c,x);if(!_&&!F&&!k)if(sy(n)&&!Y){const H=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,Si(n),H);be&&Ma(ge,kr(be,f.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,H))}else Eh(a)?qc(n,a):TT(n,n,a,SA(a)&&a.propertyName||a.name);else if(F||k){const H=Rp(n,c)||Vl(n,c);return ap(a,n,H,!1),H}return ap(a,_,void 0,!1),_}function j0(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 N.assertNever(n)}}function qc(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,Si(n),Si(a.symbol));else{const v=qe(a.name,f.Module_0_has_no_default_export,Si(n)),x=(d=n.exports)==null?void 0:d.get("__export");if(x){const k=(_=x.declarations)==null?void 0:_.find(F=>{var H,re;return!!(Yl(F)&&F.moduleSpecifier&&((re=(H=hd(F,F.moduleSpecifier))==null?void 0:H.exports)!=null&&re.has("default")))});k&&Ma(v,kr(k,f.export_Asterisk_does_not_re_export_a_default))}}}function Ph(n,a){const c=n.parent.parent.moduleSpecifier,d=hd(n,c),_=sp(d,c,a,!1);return ap(n,d,_,!1),_}function Om(n,a){const c=n.parent.moduleSpecifier,d=c&&hd(n,c),_=c&&sp(d,c,a,!1);return ap(n,d,_,!1),_}function D1(n,a){if(n===ft&&a===ft)return ft;if(n.flags&790504)return n;const c=Ka(n.flags|a.flags,n.escapedName);return N.assert(n.declarations||a.declarations),c.declarations=SE(So(n.declarations,a.declarations),xv),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 N1(n,a,c,d){var _;if(n.flags&1536){const v=Dp(n).get(a.escapedText),x=Vl(v,d),k=(_=Ki(n).typeOnlyExportStarMap)==null?void 0:_.get(a.escapedText);return ap(c,v,x,!1,k,a.escapedText),x}}function mb(n,a){if(n.flags&3){const c=n.valueDeclaration.type;if(c)return Vl(va(Ti(c),a))}}function tv(n,a,c=!1){var d;const _=hj(n)||n.moduleSpecifier,v=hd(n,_),x=!Fr(a)&&a.propertyName||a.name;if(!Ve(x))return;const k=x.escapedText==="default"&&Y,F=sp(v,_,!1,k);if(F&&x.escapedText){if(vC(v))return v;let H;v&&v.exports&&v.exports.get("export=")?H=va(dr(F),x.escapedText,!0):H=mb(F,x.escapedText),H=Vl(H,c);let re=N1(F,x,a,c);if(re===void 0&&x.escapedText==="default"){const ge=(d=v.declarations)==null?void 0:d.find($i);(ay(_)||H_(ge,v,c,_))&&(re=Rp(v,c)||Vl(v,c))}const be=re&&H&&re!==H?D1(H,re):re||H;return be||TT(v,F,n,x),be}}function TT(n,a,c,d){var _;const v=Hp(n,c),x=xs(d),k=Nee(d,a);if(k!==void 0){const F=Si(k),H=qe(d,f._0_has_no_exported_member_named_1_Did_you_mean_2,v,x,F);k.valueDeclaration&&Ma(H,kr(k.valueDeclaration,f._0_is_declared_here,F))}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,v,x):Wm(c,d,x,n,v)}function Wm(n,a,c,d,_){var v,x;const k=(x=(v=ri(d.valueDeclaration,ph))==null?void 0:v.locals)==null?void 0:x.get(a.escapedText),F=d.exports;if(k){const H=F==null?void 0:F.get("export=");if(H)s_(H,k)?U0(n,a,c,_):qe(a,f.Module_0_has_no_exported_member_1,_,c);else{const re=F?In(age(F),ge=>!!s_(ge,k)):void 0,be=re?qe(a,f.Module_0_declares_1_locally_but_it_is_exported_as_2,_,c,Si(re)):qe(a,f.Module_0_declares_1_locally_but_it_is_not_exported,_,c);k.declarations&&Ma(be,...Wt(k.declarations,(ge,Je)=>kr(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 U0(n,a,c,d){if(G>=5){const _=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(lr(n)){const _=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{const _=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 hg(n,a){if(tp(n)&&Er(n.propertyName||n.name)==="default"){const x=j0(n),k=x&&hd(n,x);if(k)return ST(k,n,a)}const c=$a(n)?R_(n):n.parent.parent.parent,d=_b(c),_=tv(c,d||n,a),v=n.propertyName||n.name;return d&&_&&Ve(v)?Vl(va(dr(_),v.escapedText),a):(ap(n,void 0,_,!1),_)}function _b(n){if(Oi(n)&&n.initializer&&Fr(n.initializer))return n.initializer}function QI(n,a){if(T_(n.parent)){const c=Rp(n.parent.symbol,a);return ap(n,void 0,c,!1),c}}function H0(n,a,c){if(Er(n.propertyName||n.name)==="default"){const _=j0(n),v=_&&hd(n,_);if(v)return ST(v,n,!!c)}const d=n.parent.parent.moduleSpecifier?tv(n.parent.parent,n,c):Hs(n.propertyName||n.name,a,!1,c);return ap(n,void 0,d,!1),d}function rN(n,a){const c=kl(n)?n.expression:n.right,d=C1(c,a);return ap(n,void 0,d,!1),d}function C1(n,a){if(Qc(n))return nc(n).symbol;if(!Qd(n)&&!Bl(n))return;const c=Hs(n,901119,!0,a);return c||(nc(n),Zr(n).resolvedSymbol)}function AT(n,a){if(mr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return C1(n.parent.right,a)}function Up(n,a=!1){switch(n.kind){case 271:case 260:return ET(n,a);case 273:return ur(n,a);case 274:return Ph(n,a);case 280:return Om(n,a);case 276:case 208:return hg(n,a);case 281:return H0(n,901119,a);case 277:case 226:return rN(n,a);case 270:return QI(n,a);case 304:return Hs(n.name,901119,!0,a);case 303:return C1(n.initializer,a);case 212:case 211:return AT(n,a);default:return N.fail()}}function IT(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function Vl(n,a){return!a&&IT(n)?Oc(n):n}function Oc(n){N.assert((n.flags&2097152)!==0,"Should only get Alias here.");const a=Ki(n);if(a.aliasTarget)a.aliasTarget===Ct&&(a.aliasTarget=ft);else{a.aliasTarget=Ct;const c=wm(n);if(!c)return N.fail();const d=Up(c);a.aliasTarget===Ct?a.aliasTarget=d||ft:qe(c,f.Circular_definition_of_import_alias_0,Si(n))}return a.aliasTarget}function xT(n){if(Ki(n).aliasTarget!==Ct)return Oc(n)}function Au(n,a,c){const d=a&&Of(n),_=d&&Yl(d),v=d&&(_?hd(d.moduleSpecifier,d.moduleSpecifier,!0):Oc(d.symbol)),x=_&&v?Mh(v):void 0;let k=c?0:n.flags,F;for(;n.flags&2097152;){const H=hf(Oc(n));if(!_&&H===v||(x==null?void 0:x.get(H.escapedName))===H)break;if(H===ft)return-1;if(H===n||F!=null&&F.has(H))break;H.flags&2097152&&(F?F.add(H):F=new Set([n,H])),k|=H.flags,n=H}return k}function ap(n,a,c,d,_,v){if(!n||Fr(n))return!1;const x=Ir(n);if(s0(n)){const F=Ki(x);return F.typeOnlyDeclaration=n,!0}if(_){const F=Ki(x);return F.typeOnlyDeclaration=_,x.escapedName!==v&&(F.typeOnlyExportStarName=v),!0}const k=Ki(x);return q0(k,a,d)||q0(k,c,d)}function q0(n,a,c){var d;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){const _=((d=a.exports)==null?void 0:d.get("export="))??a,v=_.declarations&&In(_.declarations,s0);n.typeOnlyDeclaration=v??Ki(_).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function Of(n,a){if(!(n.flags&2097152))return;const c=Ki(n);if(a===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){const d=c.typeOnlyDeclaration.kind===278?Vl(Mh(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):Oc(c.typeOnlyDeclaration.symbol);return Au(d)&a?c.typeOnlyDeclaration:void 0}}function hb(n){if(!It)return;const a=Ir(n),c=Oc(a);c&&(c===ft||Au(a,!0)&111551&&!i6(c))&&gb(a)}function gb(n){N.assert(It);const a=Ki(n);if(!a.referenced){a.referenced=!0;const c=wm(n);if(!c)return N.fail();uR(c)&&Au(Vl(n))&111551&&nc(c.moduleReference)}}function ru(n){const a=Ki(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function ZI(n,a){return n.kind===80&&zC(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?Hs(n,1920,!1,a):(N.assert(n.parent.kind===271),Hs(n,901119,!1,a))}function Hp(n,a){return n.parent?Hp(n.parent,a)+"."+Si(n):Si(n,a,void 0,36)}function RT(n){for(;Id(n.parent);)n=n.parent;return n}function DT(n){let a=Gp(n),c=yl(a,a.escapedText,111551,void 0,a,!0);if(c){for(;Id(a.parent);){const d=dr(c);if(c=va(d,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function Hs(n,a,c,d,_){if(Fl(n))return;const v=1920|(lr(n)?a&111551:0);let x;if(n.kind===80){const k=a===v||Ys(n)?f.Cannot_find_namespace_0:z6e(Gp(n)),F=lr(n)&&!Ys(n)?iN(n,a):void 0;if(x=rs(yl(_||n,n.escapedText,a,c||F?void 0:k,n,!0,!1)),!x)return rs(F)}else if(n.kind===166||n.kind===211){const k=n.kind===166?n.left:n.expression,F=n.kind===166?n.right:n.name;let H=Hs(k,v,c,!1,_);if(!H||Fl(F))return;if(H===ft)return H;if(H.valueDeclaration&&lr(H.valueDeclaration)&&pd(V)!==100&&Oi(H.valueDeclaration)&&H.valueDeclaration.initializer&&T3e(H.valueDeclaration.initializer)){const re=H.valueDeclaration.initializer.arguments[0],be=hd(re,re);if(be){const ge=Rp(be);ge&&(H=ge)}}if(x=rs(Jd(Dp(H),F.escapedText,a)),!x&&H.flags&2097152&&(x=rs(Jd(Dp(Oc(H)),F.escapedText,a))),!x){if(!c){const re=Hp(H),be=xs(F),ge=Nee(F,H);if(ge){qe(F,f._0_has_no_exported_member_named_1_Did_you_mean_2,re,be,Si(ge));return}const Je=Id(n)&&RT(n);if(Pe&&a&788968&&Je&&!VR(Je.parent)&&DT(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&&Id(n.parent)){const Dt=rs(Jd(Dp(H),F.escapedText,788968));if(Dt){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,Si(Dt),Vi(n.parent.right.escapedText));return}}qe(F,f.Namespace_0_has_no_exported_member_1,re,be)}return}}else N.assertNever(n,"Unknown entity name kind.");return N.assert((xl(x)&1)===0,"Should never get an instantiated symbol here."),!Ys(n)&&Qd(n)&&(x.flags&2097152||n.parent.kind===277)&&ap(Dj(n),x,void 0,!0),x.flags&a||d?x:Oc(x)}function iN(n,a){if(CZ(n.parent)){const c=J0(n.parent);if(c)return yl(c,n.escapedText,a,void 0,n,!0)}}function J0(n){if(Vn(n,_=>$x(_)||_.flags&16777216?$f(_):"quit"))return;const c=AS(n);if(c&&Zc(c)&&VL(c.expression)){const _=Ir(c.expression.left);if(_)return P1(_)}if(c&&Os(c)&&VL(c.parent)&&Zc(c.parent.parent)){const _=Ir(c.parent.left);if(_)return P1(_)}if(c&&(Tm(c)||hc(c))&&mr(c.parent.parent)&&zl(c.parent.parent)===6){const _=Ir(c.parent.parent.left);if(_)return P1(_)}const d=p0(n);if(d&&ea(d)){const _=Ir(d);return _&&_.valueDeclaration}}function P1(n){const a=n.parent.valueDeclaration;return a?(AC(a)?DA(a):_S(a)?WL(a):void 0)||a:void 0}function MM(n){const a=n.valueDeclaration;if(!a||!lr(a)||n.flags&524288||u0(a,!1))return;const c=Oi(a)?WL(a):DA(a);if(c){const d=_f(c);if(d)return _ye(d,n)}}function hd(n,a,c){const _=pd(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 nv(n,a,c?void 0:_)}function nv(n,a,c,d=!1){return ls(a)?q_(n,a.text,c,a,d):void 0}function q_(n,a,c,d,_=!1){var v,x,k,F,H,re,be,ge,Je,gt,Dt;if(uo(a,"@types/")){const nr=f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Ro=XN(a,"@types/");qe(d,nr,Ro,a)}const an=SZ(a,!0);if(an)return an;const cn=Un(n),ar=ls(n)?n:((v=Xl(n)?n:n.parent&&Xl(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:v.name)||((x=Oy(n)?n:void 0)==null?void 0:x.argument.literal)||(Oi(n)&&n.initializer&&Td(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((k=Vn(n,zp))==null?void 0:k.arguments[0])||((F=Vn(n,Mc))==null?void 0:F.moduleSpecifier)||((H=Vn(n,c0))==null?void 0:H.moduleReference.expression)||((re=Vn(n,Yl))==null?void 0:re.moduleSpecifier),Wn=ar&&ls(ar)?e.getModeForUsageLocation(cn,ar):cn.impliedNodeFormat,ln=pd(V),Bn=(be=e.getResolvedModule(cn,a,Wn))==null?void 0:be.resolvedModule,zn=Bn&&AJ(V,Bn,cn),tr=Bn&&(!zn||zn===f.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(Bn.resolvedFileName);if(tr){if(zn&&qe(d,zn,a,Bn.resolvedFileName),Bn.resolvedUsingTsExtension&&Su(a)){const nr=((ge=Vn(n,Mc))==null?void 0:ge.importClause)||Vn(n,Jm(eu,Yl));(nr&&!nr.isTypeOnly||Vn(n,zp))&&qe(d,f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Kn(N.checkDefined(S3(a))))}else if(Bn.resolvedUsingTsExtension&&!sD(V,cn.fileName)){const nr=((Je=Vn(n,Mc))==null?void 0:Je.importClause)||Vn(n,Jm(eu,Yl));if(!(nr!=null&&nr.isTypeOnly||Vn(n,ag))){const Ro=N.checkDefined(S3(a));qe(d,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Ro)}}if(tr.symbol){if(Bn.isExternalLibraryImport&&!KC(Bn.extension)&&ex(!1,d,cn,Wn,Bn,a),ln===3||ln===99){const nr=cn.impliedNodeFormat===1&&!Vn(n,zp)||!!Vn(n,eu),Ro=Vn(n,Eo=>ag(Eo)||Yl(Eo)||Mc(Eo));if(nr&&tr.impliedNodeFormat===99&&!Moe(Ro))if(Vn(n,eu))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 Eo;const Bo=Fg(cn.fileName);if(Bo===".ts"||Bo===".js"||Bo===".tsx"||Bo===".jsx"){const _o=cn.packageJsonScope,Nc=Bo===".ts"?".mts":Bo===".js"?".mjs":void 0;_o&&!_o.contents.packageJsonContent.type?Nc?Eo=Vo(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,Nc,$r(_o.packageDirectory,"package.json")):Eo=Vo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,$r(_o.packageDirectory,"package.json")):Nc?Eo=Vo(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,Nc):Eo=Vo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}ts.add(Lg(Un(d),d,Vo(Eo,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 rs(tr.symbol)}c&&qe(d,f.File_0_is_not_a_module,tr.fileName);return}if(sm){const nr=QB(sm,Ro=>Ro.pattern,a);if(nr){const Ro=_d&&_d.get(a);return rs(Ro||nr.symbol)}}if(Bn&&!KC(Bn.extension)&&zn===void 0||zn===f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(_){const nr=f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;qe(d,nr,a,Bn.resolvedFileName)}else ex(de&&!!c,d,cn,Wn,Bn,a);return}if(c){if(Bn){const nr=e.getProjectReferenceRedirect(Bn.resolvedFileName);if(nr){qe(d,f.Output_file_0_has_not_been_built_from_source_file_1,nr,Bn.resolvedFileName);return}}if(zn)qe(d,zn,a,Bn.resolvedFileName);else{const nr=Op(a)&&!vA(a),Ro=ln===3||ln===99;if(!g0(V)&&Il(a,".json")&&ln!==1&&M3(V))qe(d,f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(Wn===99&&Ro&&nr){const Eo=go(a,ai(cn.path)),Bo=(gt=$D.find(([_o,Nc])=>e.fileExists(Eo+_o)))==null?void 0:gt[1];Bo?qe(d,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+Bo):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((Dt=e.getResolvedModule(cn,a,Wn))!=null&&Dt.alternateResult){const Eo=R4(cn,e,a,Wn,a);mu(!0,d,Vo(Eo,c,a))}else qe(d,c,a)}}return;function Kn(nr){const Ro=hk(a,nr);if(P3(G)||Wn===99){const Eo=Su(a)&&sD(V);return Ro+(nr===".mts"||nr===".d.mts"?Eo?".mts":".mjs":nr===".cts"||nr===".d.mts"?Eo?".cts":".cjs":Eo?".ts":".js")}return Ro}}function ex(n,a,c,d,{packageId:_,resolvedFileName:v},x){let k;!Xc(x)&&_&&(k=R4(c,e,x,d,_.name)),mu(n,a,Vo(k,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,x,v))}function Rp(n,a){if(n!=null&&n.exports){const c=Vl(n.exports.get("export="),a),d=tx(rs(c),rs(n));return rs(d)||n}}function tx(n,a){if(!n||n===ft||n===a||a.exports.size===1||n.flags&2097152)return n;const c=Ki(n);if(c.cjsExportMerged)return c.cjsExportMerged;const d=n.flags&33554432?n:gT(n);return d.flags=d.flags|512,d.exports===void 0&&(d.exports=ca()),a.exports.forEach((_,v)=>{v!=="export="&&d.exports.set(v,d.exports.has(v)?lm(d.exports.get(v),_):_)}),d===n&&(Ki(d).resolvedExports=void 0,Ki(d).resolvedMembers=void 0),Ki(d).cjsExportMerged=d,c.cjsExportMerged=d}function sp(n,a,c,d){var _;const v=Rp(n,c);if(!c&&v){if(!d&&!(v.flags&1539)&&!pl(v,312)){const k=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,k),v}const x=a.parent;if(Mc(x)&&mR(x)||zp(x)){const k=zp(x)?x.arguments[0]:x.moduleSpecifier,F=dr(v),H=E3e(F,v,n,k);if(H)return nx(v,H,x);const re=(_=n==null?void 0:n.declarations)==null?void 0:_.find($i),be=re&&mf(to(k),re.impliedNodeFormat);if(vh(V)||be){let ge=c9(F,0);if((!ge||!ge.length)&&(ge=c9(F,1)),ge&&ge.length||va(F,"default",!0)||be){const Je=F.flags&3670016?S3e(F,v,n,k):hye(v,v.parent);return nx(v,Je,x)}}}}return v}function nx(n,a,c){const d=Ka(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));const _=p_(a);return d.links.type=Ls(d,_.members,et,et,_.indexInfos),d}function sy(n){return n.exports.get("export=")!==void 0}function NT(n){return age(Mh(n))}function oN(n){const a=NT(n),c=Rp(n);if(c!==n){const d=dr(c);vb(d)&&qr(a,gs(d))}return a}function aN(n,a){Mh(n).forEach((_,v)=>{k1(v)||a(_,v)});const d=Rp(n);if(d!==n){const _=dr(d);vb(_)&&elt(_,(v,x)=>{a(v,x)})}}function CT(n,a){const c=Mh(a);if(c)return c.get(n)}function sN(n,a){const c=CT(n,a);if(c)return c;const d=Rp(a);if(d===a)return;const _=dr(d);return vb(_)?va(_,n):void 0}function vb(n){return!(n.flags&402784252||Wr(n)&1||Uf(n)||Wa(n))}function Dp(n){return n.flags&6256?Uhe(n,"resolvedExports"):n.flags&1536?Mh(n):n.exports||K}function Mh(n){const a=Ki(n);if(!a.resolvedExports){const{exports:c,typeOnlyExportStarMap:d}=PT(n);a.resolvedExports=c,a.typeOnlyExportStarMap=d}return a.resolvedExports}function lN(n,a,c,d){a&&a.forEach((_,v)=>{if(v==="default")return;const x=n.get(v);if(!x)n.set(v,_),c&&d&&c.set(v,{specifierText:fc(d.moduleSpecifier)});else if(c&&d&&x&&Vl(x)!==Vl(_)){const k=c.get(v);k.exportsWithDuplicate?k.exportsWithDuplicate.push(d):k.exportsWithDuplicate=[d]}})}function PT(n){const a=[];let c;const d=new Set;n=Rp(n);const _=v(n)||K;return c&&d.forEach(x=>c.delete(x)),{exports:_,typeOnlyExportStarMap:c};function v(x,k,F){if(!F&&(x!=null&&x.exports)&&x.exports.forEach((be,ge)=>d.add(ge)),!(x&&x.exports&&Ef(a,x)))return;const H=new Map(x.exports),re=x.exports.get("__export");if(re){const be=ca(),ge=new Map;if(re.declarations)for(const Je of re.declarations){const gt=hd(Je,Je.moduleSpecifier),Dt=v(gt,Je,F||Je.isTypeOnly);lN(be,Dt,ge,Je)}ge.forEach(({exportsWithDuplicate:Je},gt)=>{if(!(gt==="export="||!(Je&&Je.length)||H.has(gt)))for(const Dt of Je)ts.add(kr(Dt,f.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,ge.get(gt).specifierText,Vi(gt)))}),lN(H,be)}return k!=null&&k.isTypeOnly&&(c??(c=new Map),H.forEach((be,ge)=>c.set(ge,k))),H}}function rs(n){let a;return n&&n.mergeId&&(a=KD[n.mergeId])?a:n}function Ir(n){return rs(n.symbol&&yZ(n.symbol))}function _f(n){return T_(n)?Ir(n):void 0}function Cd(n){return rs(n.parent&&yZ(n.parent))}function M1(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===219||((c=n.valueDeclaration)==null?void 0:c.kind)===218)&&_f(n.valueDeclaration.parent)||n}function cN(n,a){const c=Un(a),d=as(c),_=Ki(n);let v;if(_.extendedContainersByFile&&(v=_.extendedContainersByFile.get(d)))return v;if(c&&c.imports){for(const k of c.imports){if(Ys(k))continue;const F=hd(a,k,!0);!F||!gg(F,n)||(v=Rn(v,F))}if(Ne(v))return(_.extendedContainersByFile||(_.extendedContainersByFile=new Map)).set(d,v),v}if(_.extendedContainers)return _.extendedContainers;const x=e.getSourceFiles();for(const k of x){if(!sc(k))continue;const F=Ir(k);gg(F,n)&&(v=Rn(v,F))}return _.extendedContainers=v||et}function K0(n,a,c){const d=Cd(n);if(d&&!(n.flags&262144))return F(d);const _=eo(n.declarations,re=>{if(!ku(re)&&re.parent){if(ed(re.parent))return Ir(re.parent);if(L_(re.parent)&&re.parent.parent&&Rp(Ir(re.parent.parent))===n)return Ir(re.parent.parent)}if(Qc(re)&&mr(re.parent)&&re.parent.operatorToken.kind===64&&ws(re.parent.left)&&Bl(re.parent.left.expression))return Zh(re.parent.left)||ES(re.parent.left.expression)?Ir(Un(re)):(nc(re.parent.left.expression),Zr(re.parent.left.expression).resolvedSymbol)});if(!Ne(_))return;const v=eo(_,re=>gg(re,n)?re:void 0);let x=[],k=[];for(const re of v){const[be,...ge]=F(re);x=Rn(x,be),k=qr(k,ge)}return So(x,k);function F(re){const be=eo(re.declarations,H),ge=a&&cN(n,a),Je=L1(re,c);if(a&&re.flags&iv(c)&&yb(re,a,1920,!1))return Rn(So(So([re],be),ge),Je);const gt=!(re.flags&iv(c))&&re.flags&788968&&Zs(re).flags&524288&&c===111551?O1(a,an=>zc(an,cn=>{if(cn.flags&iv(c)&&dr(cn)===Zs(re))return cn})):void 0;let Dt=gt?[gt,...be,re]:[...be,re];return Dt=Rn(Dt,Je),Dt=qr(Dt,ge),Dt}function H(re){return d&&MT(re,d)}}function L1(n,a){const c=!!Ne(n.declarations)&&Ua(n.declarations);if(a&111551&&c&&c.parent&&Oi(c.parent)&&(La(c)&&c===c.parent.initializer||yp(c)&&c===c.parent.type))return Ir(c.parent)}function MT(n,a){const c=no(n),d=c&&c.exports&&c.exports.get("export=");return d&&s_(d,a)?c:void 0}function gg(n,a){if(n===Cd(a))return a;const c=n.exports&&n.exports.get("export=");if(c&&s_(c,a))return n;const d=Dp(n),_=d.get(a.escapedName);return _&&s_(_,a)?_:zc(d,v=>{if(s_(v,a))return v})}function s_(n,a){if(rs(Vl(rs(n)))===rs(Vl(rs(a))))return n}function hf(n){return rs(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function Fm(n,a){return!!(n.flags&111551||n.flags&2097152&&Au(n,!a)&111551)}function rv(n){const a=n.members;for(const c of a)if(c.kind===176&&Kf(c.body))return c}function vg(n){var a;const c=new p(Qt,n);return m++,c.id=m,(a=sr)==null||a.recordType(c),c}function yg(n,a){const c=vg(n);return c.symbol=a,c}function rx(n){return new p(Qt,n)}function cc(n,a,c=0,d){uN(a,d);const _=vg(n);return _.intrinsicName=a,_.debugIntrinsicName=d,_.objectFlags=c|524288|2097152|33554432|16777216,_}function uN(n,a){const c=`${n},${a??""}`;pt.has(c)&&N.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:""}; you may need to pass a name to createIntrinsicType.`),pt.add(c)}function Wf(n,a){const c=yg(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 ei(zo(Rq.keys(),Xd))}function gf(n){return yg(262144,n)}function k1(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function X0(n){let a;return n.forEach((c,d)=>{ix(c,d)&&(a||(a=[])).push(c)}),a||et}function ix(n,a){return!k1(a)&&Fm(n)}function LT(n){const a=X0(n),c=IZ(n);return c?So(a,[c]):a}function vf(n,a,c,d,_){const v=n;return v.members=a,v.properties=et,v.callSignatures=c,v.constructSignatures=d,v.indexInfos=_,a!==K&&(v.properties=X0(a)),v}function Ls(n,a,c,d,_){return vf(Wf(16,n),a,c,d,_)}function w1(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;const a=mn(n.constructSignatures,d=>!(d.flags&4));if(n.constructSignatures===a)return n;const c=Ls(n.symbol,n.members,n.callSignatures,bt(a)?a:et,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function O1(n,a){let c;for(let d=n;d;d=d.parent){if(ph(d)&&d.locals&&!Ch(d)&&(c=a(d.locals,void 0,!0,d)))return c;switch(d.kind){case 312:if(!Fp(d))break;case 267:const _=Ir(d);if(c=a((_==null?void 0:_.exports)||K,void 0,!0,d))return c;break;case 263:case 231:case 264:let v;if((Ir(d).members||K).forEach((x,k)=>{x.flags&788968&&(v||(v=ca())).set(k,x)}),v&&(c=a(v,void 0,!1,d)))return c;break}}return a(Se,void 0,!0)}function iv(n){return n===111551?111551:1920}function yb(n,a,c,d,_=new Map){if(!(n&&!D(n)))return;const v=Ki(n),x=v.accessibleChainCache||(v.accessibleChainCache=new Map),k=O1(a,(cn,ar,Wn,ln)=>ln),F=`${d?0:1}|${k&&as(k)}|${c}`;if(x.has(F))return x.get(F);const H=Sa(n);let re=_.get(H);re||_.set(H,re=[]);const be=O1(a,ge);return x.set(F,be),be;function ge(cn,ar,Wn){if(!Ef(re,cn))return;const ln=Dt(cn,ar,Wn);return re.pop(),ln}function Je(cn,ar){return!Y0(cn,a,ar)||!!yb(cn.parent,a,iv(ar),d,_)}function gt(cn,ar,Wn){return(n===(ar||cn)||rs(n)===rs(ar||cn))&&!bt(cn.declarations,ed)&&(Wn||Je(rs(cn),c))}function Dt(cn,ar,Wn){return gt(cn.get(n.escapedName),void 0,ar)?[n]:zc(cn,Bn=>{if(Bn.flags&2097152&&Bn.escapedName!=="export="&&Bn.escapedName!=="default"&&!(R3(Bn)&&a&&sc(Un(a)))&&(!d||bt(Bn.declarations,c0))&&(!Wn||!bt(Bn.declarations,cie))&&(ar||!pl(Bn,281))){const zn=Oc(Bn),tr=an(Bn,zn,ar);if(tr)return tr}if(Bn.escapedName===n.escapedName&&Bn.exportSymbol&>(rs(Bn.exportSymbol),void 0,ar))return[n]})||(cn===Se?an(ot,ot,ar):void 0)}function an(cn,ar,Wn){if(gt(cn,ar,Wn))return[cn];const ln=Dp(ar),Bn=ln&&ge(ln,!0);if(Bn&&Je(cn,iv(c)))return[cn].concat(Bn)}}function Y0(n,a,c){let d=!1;return O1(a,_=>{let v=rs(_.get(n.escapedName));if(!v)return!1;if(v===n)return!0;const x=v.flags&2097152&&!pl(v,281);return v=x?Oc(v):v,(x?Au(v):v.flags)&c?(d=!0,!0):!1}),d}function D(n){if(n.declarations&&n.declarations.length){for(const a of n.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function ae(n,a){return bi(n,a,788968,!1,!0).accessibility===0}function ht(n,a){return bi(n,a,111551,!1,!0).accessibility===0}function on(n,a,c){return bi(n,a,c,!1,!1).accessibility===0}function wr(n,a,c,d,_,v){if(!Ne(n))return;let x,k=!1;for(const F of n){const H=yb(F,a,d,!1);if(H){x=F;const ge=Pd(H[0],_);if(ge)return ge}if(v&&bt(F.declarations,ed)){if(_){k=!0;continue}return{accessibility:0}}const re=K0(F,a,d),be=wr(re,a,c,c===F?iv(d):d,_,v);if(be)return be}if(k)return{accessibility:0};if(x)return{accessibility:1,errorSymbolName:Si(c,a,d),errorModuleName:x!==c?Si(x,a,1920):void 0}}function wi(n,a,c,d){return bi(n,a,c,d,!0)}function bi(n,a,c,d,_){if(n&&a){const v=wr([n],a,n,c,d,_);if(v)return v;const x=Xe(n.declarations,no);if(x){const k=no(a);if(x!==k)return{accessibility:2,errorSymbolName:Si(n,a,c),errorModuleName:Si(x),errorNode:lr(a)?a:void 0}}return{accessibility:1,errorSymbolName:Si(n,a,c)}}return{accessibility:0}}function no(n){const a=Vn(n,ga);return a&&Ir(a)}function ga(n){return ku(n)||n.kind===312&&Fp(n)}function ed(n){return L4(n)||n.kind===312&&Fp(n)}function Pd(n,a){let c;if(!Jn(mn(n.declarations,v=>v.kind!==80),d))return;return{accessibility:0,aliasesToMakeVisible:c};function d(v){var x,k;if(!l_(v)){const F=bT(v);if(F&&!Qr(F,32)&&l_(F.parent))return _(v,F);if(Oi(v)&&Ll(v.parent.parent)&&!Qr(v.parent.parent,32)&&l_(v.parent.parent.parent))return _(v,v.parent.parent);if(k4(v)&&!Qr(v,32)&&l_(v.parent))return _(v,v);if($a(v)){if(n.flags&2097152&&lr(v)&&((x=v.parent)!=null&&x.parent)&&Oi(v.parent.parent)&&((k=v.parent.parent.parent)!=null&&k.parent)&&Ll(v.parent.parent.parent.parent)&&!Qr(v.parent.parent.parent.parent,32)&&v.parent.parent.parent.parent.parent&&l_(v.parent.parent.parent.parent.parent))return _(v,v.parent.parent.parent.parent);if(n.flags&2){const H=Vn(v,Ll);return Qr(H,32)?!0:l_(H.parent)?_(v,H):!1}}return!1}return!0}function _(v,x){return a&&(Zr(v).isVisible=!0,c=Rg(c,x)),!0}}function Ff(n){let a;return n.parent.kind===186||n.parent.kind===233&&!$h(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 bb(n,a){const c=Ff(n),d=Gp(n),_=yl(a,d.escapedText,c,void 0,void 0,!1);return _&&_.flags&262144&&c&788968?{accessibility:0}:!_&&VE(d)&&wi(Ir(Fd(d,!1,!1)),d,c,!1).accessibility===0?{accessibility:0}:_&&Pd(_,!0)||{accessibility:1,errorSymbolName:fc(d),errorNode:d}}function Si(n,a,c,d=4,_){let v=70221824;d&2&&(v|=128),d&1&&(v|=512),d&8&&(v|=16384),d&32&&(v|=134217728),d&16&&(v|=1073741824);const x=d&4?At.symbolToNode:At.symbolToEntityName;return _?k(_).getText():hC(k);function k(F){const H=x(n,c,a,v),re=(a==null?void 0:a.kind)===312?nJ():d1(),be=a&&Un(a);return re.writeNode(4,H,be,F),F}}function kh(n,a,c=0,d,_){return _?v(_).getText():hC(v);function v(x){let k;c&262144?k=d===1?185:184:k=d===1?180:179;const F=At.signatureToSignatureDeclaration(n,k,a,kT(c)|70221824|512),H=kw(),re=a&&Un(a);return H.writeNode(4,F,re,Vj(x)),x}}function Hn(n,a,c=1064960,d=ok("")){const _=V.noErrorTruncation||c&1,v=At.typeToTypeNode(n,a,kT(c)|70221824|(_?1:0));if(v===void 0)return N.fail("should always get typenode");const x=n!==Gt?d1():tJ(),k=a&&Un(a);x.writeNode(4,v,k,d);const F=d.getText(),H=_?Z3*2:Sk*2;return H&&F&&F.length>=H?F.substr(0,H-3)+"...":F}function ox(n,a){let c=Sb(n.symbol)?Hn(n,n.symbol.valueDeclaration):Hn(n),d=Sb(a.symbol)?Hn(a,a.symbol.valueDeclaration):Hn(a);return c===d&&(c=Eb(n),d=Eb(a)),[c,d]}function Eb(n){return Hn(n,void 0,64)}function Sb(n){return n&&!!n.valueDeclaration&&yt(n.valueDeclaration)&&!Vf(n.valueDeclaration)}function kT(n=0){return n&848330095}function W1(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===Bf(n.symbol)||!!(n.flags&524288)&&!!(Wr(n)&16777216))}function J_(){return{typeToTypeNode:(ut,Ae,kn,Cr)=>a(Ae,kn,Cr,pi=>d(ut,pi)),indexInfoToIndexSignatureDeclaration:(ut,Ae,kn,Cr)=>a(Ae,kn,Cr,pi=>re(ut,pi,void 0)),signatureToSignatureDeclaration:(ut,Ae,kn,Cr,pi)=>a(kn,Cr,pi,Ai=>be(ut,Ae,Ai)),symbolToEntityName:(ut,Ae,kn,Cr,pi)=>a(kn,Cr,pi,Ai=>_o(ut,Ai,Ae,!1)),symbolToExpression:(ut,Ae,kn,Cr,pi)=>a(kn,Cr,pi,Ai=>Nc(ut,Ai,Ae)),symbolToTypeParameterDeclarations:(ut,Ae,kn,Cr)=>a(Ae,kn,Cr,pi=>Bn(ut,pi)),symbolToParameterDeclaration:(ut,Ae,kn,Cr)=>a(Ae,kn,Cr,pi=>an(ut,pi)),typeParameterToDeclaration:(ut,Ae,kn,Cr)=>a(Ae,kn,Cr,pi=>gt(ut,pi)),symbolTableToDeclarationStatements:(ut,Ae,kn,Cr,pi)=>a(Ae,kn,Cr,Ai=>bl(ut,Ai,pi)),symbolToNode:(ut,Ae,kn,Cr,pi)=>a(kn,Cr,pi,Ai=>n(ut,Ai,Ae))};function n(ut,Ae,kn){if(Ae.flags&1073741824){if(ut.valueDeclaration){const pi=Lo(ut.valueDeclaration);if(pi&&Za(pi))return pi}const Cr=Ki(ut).nameType;if(Cr&&Cr.flags&9216)return Ae.enclosingDeclaration=Cr.symbol.valueDeclaration,w.createComputedPropertyName(Nc(Cr.symbol,Ae,kn))}return Nc(ut,Ae,kn)}function a(ut,Ae,kn,Cr){N.assert(ut===void 0||(ut.flags&16)===0);const pi=kn!=null&&kn.trackSymbol?kn.moduleResolverHost:Ae&134217728?kVe(e):void 0,Ai={enclosingDeclaration:ut,flags:Ae||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};Ai.tracker=new Dq(Ai,kn,pi);const Ii=Cr(Ai);return Ai.truncating&&Ai.flags&1&&Ai.tracker.reportTruncationError(),Ai.encounteredError?void 0:Ii}function c(ut){return ut.truncating?ut.truncating:ut.truncating=ut.approximateLength>(ut.flags&1?Z3:Sk)}function d(ut,Ae){const kn=Ae.flags,Cr=_(ut,Ae);return Ae.flags=kn,Cr}function _(ut,Ae){var kn,Cr;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();const pi=Ae.flags&8388608;if(Ae.flags&=-8388609,!ut){if(!(Ae.flags&262144)){Ae.encounteredError=!0;return}return Ae.approximateLength+=3,w.createKeywordTypeNode(133)}if(Ae.flags&536870912||(ut=f_(ut)),ut.flags&1)return ut.aliasSymbol?w.createTypeReferenceNode(nr(ut.aliasSymbol),F(ut.aliasTypeArguments,Ae)):ut===Gt?uP(w.createKeywordTypeNode(133),3,"unresolved"):(Ae.approximateLength+=3,w.createKeywordTypeNode(ut===fn?141:133));if(ut.flags&2)return w.createKeywordTypeNode(159);if(ut.flags&4)return Ae.approximateLength+=6,w.createKeywordTypeNode(154);if(ut.flags&8)return Ae.approximateLength+=6,w.createKeywordTypeNode(150);if(ut.flags&64)return Ae.approximateLength+=6,w.createKeywordTypeNode(163);if(ut.flags&16&&!ut.aliasSymbol)return Ae.approximateLength+=7,w.createKeywordTypeNode(136);if(ut.flags&1056){if(ut.symbol.flags&8){const Cn=Cd(ut.symbol),ti=Ro(Cn,Ae,788968);if(Zs(Cn)===ut)return ti;const Zi=El(ut.symbol);return Zp(Zi,0)?ki(ti,w.createTypeReferenceNode(Zi,void 0)):ag(ti)?(ti.isTypeOf=!0,w.createIndexedAccessTypeNode(ti,w.createLiteralTypeNode(w.createStringLiteral(Zi)))):Df(ti)?w.createIndexedAccessTypeNode(w.createTypeQueryNode(ti.typeName),w.createLiteralTypeNode(w.createStringLiteral(Zi))):N.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return Ro(ut.symbol,Ae,788968)}if(ut.flags&128)return Ae.approximateLength+=ut.value.length+2,w.createLiteralTypeNode(pr(w.createStringLiteral(ut.value,!!(Ae.flags&268435456)),16777216));if(ut.flags&256){const Cn=ut.value;return Ae.approximateLength+=(""+Cn).length,w.createLiteralTypeNode(Cn<0?w.createPrefixUnaryExpression(41,w.createNumericLiteral(-Cn)):w.createNumericLiteral(Cn))}if(ut.flags&2048)return Ae.approximateLength+=HE(ut.value).length+1,w.createLiteralTypeNode(w.createBigIntLiteral(ut.value));if(ut.flags&512)return Ae.approximateLength+=ut.intrinsicName.length,w.createLiteralTypeNode(ut.intrinsicName==="true"?w.createTrue():w.createFalse());if(ut.flags&8192){if(!(Ae.flags&1048576)){if(ht(ut.symbol,Ae.enclosingDeclaration))return Ae.approximateLength+=6,Ro(ut.symbol,Ae,111551);Ae.tracker.reportInaccessibleUniqueSymbolError&&Ae.tracker.reportInaccessibleUniqueSymbolError()}return Ae.approximateLength+=13,w.createTypeOperatorNode(158,w.createKeywordTypeNode(155))}if(ut.flags&16384)return Ae.approximateLength+=4,w.createKeywordTypeNode(116);if(ut.flags&32768)return Ae.approximateLength+=9,w.createKeywordTypeNode(157);if(ut.flags&65536)return Ae.approximateLength+=4,w.createLiteralTypeNode(w.createNull());if(ut.flags&131072)return Ae.approximateLength+=5,w.createKeywordTypeNode(146);if(ut.flags&4096)return Ae.approximateLength+=6,w.createKeywordTypeNode(155);if(ut.flags&67108864)return Ae.approximateLength+=6,w.createKeywordTypeNode(151);if(nP(ut))return Ae.flags&4194304&&(!Ae.encounteredError&&!(Ae.flags&32768)&&(Ae.encounteredError=!0),(Cr=(kn=Ae.tracker).reportInaccessibleThisError)==null||Cr.call(kn)),Ae.approximateLength+=4,w.createThisTypeNode();if(!pi&&ut.aliasSymbol&&(Ae.flags&16384||ae(ut.aliasSymbol,Ae.enclosingDeclaration))){const Cn=F(ut.aliasTypeArguments,Ae);return k1(ut.aliasSymbol.escapedName)&&!(ut.aliasSymbol.flags&32)?w.createTypeReferenceNode(w.createIdentifier(""),Cn):Ne(Cn)===1&&ut.aliasSymbol===$o.symbol?w.createArrayTypeNode(Cn[0]):Ro(ut.aliasSymbol,Ae,788968,Cn)}const Ai=Wr(ut);if(Ai&4)return N.assert(!!(ut.flags&524288)),ut.node?Ut(ut,Fn):Fn(ut);if(ut.flags&262144||Ai&3){if(ut.flags&262144&&Or(Ae.inferTypeParameters,ut)){Ae.approximateLength+=El(ut.symbol).length+6;let ti;const Zi=Md(ut);if(Zi){const fo=YOe(ut,!0);fo&&fv(Zi,fo)||(Ae.approximateLength+=9,ti=Zi&&d(Zi,Ae))}return w.createInferTypeNode(Je(ut,Ae,ti))}if(Ae.flags&4&&ut.flags&262144){const ti=Bo(ut,Ae);return Ae.approximateLength+=Er(ti).length,w.createTypeReferenceNode(w.createIdentifier(Er(ti)),void 0)}if(ut.symbol)return Ro(ut.symbol,Ae,788968);const Cn=(ut===ue||ut===Z)&&O&&O.symbol?(ut===Z?"sub-":"super-")+El(O.symbol):"?";return w.createTypeReferenceNode(w.createIdentifier(Cn),void 0)}if(ut.flags&1048576&&ut.origin&&(ut=ut.origin),ut.flags&3145728){const Cn=ut.flags&1048576?dN(ut.types):ut.types;if(Ne(Cn)===1)return d(Cn[0],Ae);const ti=F(Cn,Ae,!0);if(ti&&ti.length>0)return ut.flags&1048576?w.createUnionTypeNode(ti):w.createIntersectionTypeNode(ti);!Ae.encounteredError&&!(Ae.flags&262144)&&(Ae.encounteredError=!0);return}if(Ai&48)return N.assert(!!(ut.flags&524288)),dn(ut);if(ut.flags&4194304){const Cn=ut.type;Ae.approximateLength+=6;const ti=d(Cn,Ae);return w.createTypeOperatorNode(143,ti)}if(ut.flags&134217728){const Cn=ut.texts,ti=ut.types,Zi=w.createTemplateHead(Cn[0]),fo=w.createNodeArray(Wt(ti,(Ea,Ec)=>w.createTemplateLiteralTypeSpan(d(Ea,Ae),(Ec<ti.length-1?w.createTemplateMiddle:w.createTemplateTail)(Cn[Ec+1]))));return Ae.approximateLength+=2,w.createTemplateLiteralType(Zi,fo)}if(ut.flags&268435456){const Cn=d(ut.type,Ae);return Ro(ut.symbol,Ae,788968,[Cn])}if(ut.flags&8388608){const Cn=d(ut.objectType,Ae),ti=d(ut.indexType,Ae);return Ae.approximateLength+=2,w.createIndexedAccessTypeNode(Cn,ti)}if(ut.flags&16777216)return Ut(ut,Cn=>Ii(Cn));if(ut.flags&33554432){const Cn=d(ut.baseType,Ae),ti=VM(ut)&&yge("NoInfer",!1);return ti?Ro(ti,Ae,788968,[Cn]):Cn}return N.fail("Should be unreachable.");function Ii(Cn){const ti=d(Cn.checkType,Ae);if(Ae.approximateLength+=15,Ae.flags&4&&Cn.root.isDistributive&&!(Cn.checkType.flags&262144)){const ks=gf(Ka(262144,"T")),Ds=Bo(ks,Ae),Du=w.createTypeReferenceNode(Ds);Ae.approximateLength+=37;const Ks=JT(Cn.root.checkType,ks,Cn.mapper),v_=Ae.inferTypeParameters;Ae.inferTypeParameters=Cn.root.inferTypeParameters;const rt=d(lo(Cn.root.extendsType,Ks),Ae);Ae.inferTypeParameters=v_;const St=Ur(lo(Ti(Cn.root.node.trueType),Ks)),Zt=Ur(lo(Ti(Cn.root.node.falseType),Ks));return w.createConditionalTypeNode(ti,w.createInferTypeNode(w.createTypeParameterDeclaration(void 0,w.cloneNode(Du.typeName))),w.createConditionalTypeNode(w.createTypeReferenceNode(w.cloneNode(Ds)),d(Cn.checkType,Ae),w.createConditionalTypeNode(Du,rt,St,Zt),w.createKeywordTypeNode(146)),w.createKeywordTypeNode(146))}const Zi=Ae.inferTypeParameters;Ae.inferTypeParameters=Cn.root.inferTypeParameters;const fo=d(Cn.extendsType,Ae);Ae.inferTypeParameters=Zi;const Ea=Ur(aE(Cn)),Ec=Ur(sE(Cn));return w.createConditionalTypeNode(ti,fo,Ea,Ec)}function Ur(Cn){var ti,Zi,fo;return Cn.flags&1048576?(ti=Ae.visitedTypes)!=null&&ti.has(vd(Cn))?(Ae.flags&131072||(Ae.encounteredError=!0,(fo=(Zi=Ae.tracker)==null?void 0:Zi.reportCyclicStructureError)==null||fo.call(Zi)),v(Ae)):Ut(Cn,Ea=>d(Ea,Ae)):d(Cn,Ae)}function xr(Cn){return!!P8(Cn)}function ct(Cn){return!!Cn.target&&xr(Cn.target)&&!xr(Cn)}function wt(Cn){var ti;N.assert(!!(Cn.flags&524288));const Zi=Cn.declaration.readonlyToken?w.createToken(Cn.declaration.readonlyToken.kind):void 0,fo=Cn.declaration.questionToken?w.createToken(Cn.declaration.questionToken.kind):void 0;let Ea,Ec;const ks=!vN(Cn)&&!(FT(Cn).flags&2)&&Ae.flags&4&&!(yf(Cn).flags&262144&&((ti=Md(yf(Cn)))==null?void 0:ti.flags)&4194304);if(vN(Cn)){if(ct(Cn)&&Ae.flags&4){const St=gf(Ka(262144,"T")),Zt=Bo(St,Ae);Ec=w.createTypeReferenceNode(Zt)}Ea=w.createTypeOperatorNode(143,Ec||d(FT(Cn),Ae))}else if(ks){const St=gf(Ka(262144,"T")),Zt=Bo(St,Ae);Ec=w.createTypeReferenceNode(Zt),Ea=Ec}else Ea=d(yf(Cn),Ae);const Ds=Je(d_(Cn),Ae,Ea),Du=Cn.declaration.nameType?d(cy(Cn),Ae):void 0,Ks=d(Gb(cv(Cn),!!(Fh(Cn)&4)),Ae),v_=w.createMappedTypeNode(Zi,Ds,Du,fo,Ks,void 0);Ae.approximateLength+=10;const rt=pr(v_,1);if(ct(Cn)&&Ae.flags&4){const St=lo(Md(Ti(Cn.declaration.typeParameter.constraint.type))||hn,Cn.mapper);return w.createConditionalTypeNode(d(FT(Cn),Ae),w.createInferTypeNode(w.createTypeParameterDeclaration(void 0,w.cloneNode(Ec.typeName),St.flags&2?void 0:d(St,Ae))),rt,w.createKeywordTypeNode(146))}else if(ks)return w.createConditionalTypeNode(d(yf(Cn),Ae),w.createInferTypeNode(w.createTypeParameterDeclaration(void 0,w.cloneNode(Ec.typeName),w.createTypeOperatorNode(143,d(FT(Cn),Ae)))),rt,w.createKeywordTypeNode(146));return rt}function dn(Cn){var ti,Zi;const fo=Cn.id,Ea=Cn.symbol;if(Ea){if(!!(Wr(Cn)&8388608)){const Ks=Cn.node;if(eI(Ks)&&Ti(Ks)===Cn){const v_=Wl(Ae,Ks);if(v_)return v_}return(ti=Ae.visitedTypes)!=null&&ti.has(fo)?v(Ae):Ut(Cn,_n)}const Ds=W1(Cn)?788968:111551;if(eh(Ea.valueDeclaration))return Ro(Ea,Ae,Ds);if(Ea.flags&32&&!mZ(Ea)&&!(Ea.valueDeclaration&&di(Ea.valueDeclaration)&&Ae.flags&2048&&(!Ac(Ea.valueDeclaration)||wi(Ea,Ae.enclosingDeclaration,Ds,!1).accessibility!==0))||Ea.flags&896||Ec())return Ro(Ea,Ae,Ds);if((Zi=Ae.visitedTypes)!=null&&Zi.has(fo)){const Du=$z(Cn);return Du?Ro(Du,Ae,788968):v(Ae)}else return Ut(Cn,_n)}else return _n(Cn);function Ec(){var ks;const Ds=!!(Ea.flags&8192)&&bt(Ea.declarations,Ks=>aa(Ks)),Du=!!(Ea.flags&16)&&(Ea.parent||Xe(Ea.declarations,Ks=>Ks.parent.kind===312||Ks.parent.kind===268));if(Ds||Du)return(!!(Ae.flags&4096)||((ks=Ae.visitedTypes)==null?void 0:ks.has(fo)))&&(!(Ae.flags&8)||ht(Ea,Ae.enclosingDeclaration))}}function Ut(Cn,ti){var Zi,fo,Ea;const Ec=Cn.id,ks=Wr(Cn)&16&&Cn.symbol&&Cn.symbol.flags&32,Ds=Wr(Cn)&4&&Cn.node?"N"+as(Cn.node):Cn.flags&16777216?"N"+as(Cn.root.node):Cn.symbol?(ks?"+":"")+Sa(Cn.symbol):void 0;Ae.visitedTypes||(Ae.visitedTypes=new Set),Ds&&!Ae.symbolDepth&&(Ae.symbolDepth=new Map);const Du=Ae.enclosingDeclaration&&Zr(Ae.enclosingDeclaration),Ks=`${vd(Cn)}|${Ae.flags}`;Du&&(Du.serializedTypes||(Du.serializedTypes=new Map));const v_=(Zi=Du==null?void 0:Du.serializedTypes)==null?void 0:Zi.get(Ks);if(v_)return(fo=v_.trackedSymbols)==null||fo.forEach(([Hr,Bi,Fo])=>Ae.tracker.trackSymbol(Hr,Bi,Fo)),v_.truncating&&(Ae.truncating=!0),Ae.approximateLength+=v_.addedLength,An(v_.node);let rt;if(Ds){if(rt=Ae.symbolDepth.get(Ds)||0,rt>10)return v(Ae);Ae.symbolDepth.set(Ds,rt+1)}Ae.visitedTypes.add(Ec);const St=Ae.trackedSymbols;Ae.trackedSymbols=void 0;const Zt=Ae.approximateLength,Yn=ti(Cn),Rr=Ae.approximateLength-Zt;return!Ae.reportedDiagnostic&&!Ae.encounteredError&&((Ea=Du==null?void 0:Du.serializedTypes)==null||Ea.set(Ks,{node:Yn,truncating:Ae.truncating,addedLength:Rr,trackedSymbols:Ae.trackedSymbols})),Ae.visitedTypes.delete(Ec),Ds&&Ae.symbolDepth.set(Ds,rt),Ae.trackedSymbols=St,Yn;function An(Hr){return!Ys(Hr)&&No(Hr)===Hr?Hr:dt(w.cloneNode(xn(Hr,An,void 0,gr)),Hr)}function gr(Hr,Bi,Fo,ma,_a){return Hr&&Hr.length===0?dt(w.createNodeArray(void 0,Hr.hasTrailingComma),Hr):jn(Hr,Bi,Fo,ma,_a)}}function _n(Cn){if(Kd(Cn)||Cn.containsError)return wt(Cn);const ti=p_(Cn);if(!ti.properties.length&&!ti.indexInfos.length){if(!ti.callSignatures.length&&!ti.constructSignatures.length)return Ae.approximateLength+=2,pr(w.createTypeLiteralNode(void 0),1);if(ti.callSignatures.length===1&&!ti.constructSignatures.length){const ks=ti.callSignatures[0];return be(ks,184,Ae)}if(ti.constructSignatures.length===1&&!ti.callSignatures.length){const ks=ti.constructSignatures[0];return be(ks,185,Ae)}}const Zi=mn(ti.constructSignatures,ks=>!!(ks.flags&4));if(bt(Zi)){const ks=Wt(Zi,VT);return ti.callSignatures.length+(ti.constructSignatures.length-Zi.length)+ti.indexInfos.length+(Ae.flags&2048?ou(ti.properties,Du=>!(Du.flags&4194304)):Ne(ti.properties))&&ks.push(w1(ti)),d(ya(ks),Ae)}const fo=Ae.flags;Ae.flags|=4194304;const Ea=Go(ti);Ae.flags=fo;const Ec=w.createTypeLiteralNode(Ea);return Ae.approximateLength+=2,pr(Ec,Ae.flags&1024?0:1),Ec}function Fn(Cn){let ti=Js(Cn);if(Cn.target===$o||Cn.target===na){if(Ae.flags&2){const Ea=d(ti[0],Ae);return w.createTypeReferenceNode(Cn.target===$o?"Array":"ReadonlyArray",[Ea])}const Zi=d(ti[0],Ae),fo=w.createArrayTypeNode(Zi);return Cn.target===$o?fo:w.createTypeOperatorNode(148,fo)}else if(Cn.target.objectFlags&8){if(ti=Zo(ti,(Zi,fo)=>Gb(Zi,!!(Cn.target.elementFlags[fo]&2))),ti.length>0){const Zi=dy(Cn),fo=F(ti.slice(0,Zi),Ae);if(fo){const{labeledElementDeclarations:Ea}=Cn.target;for(let ks=0;ks<fo.length;ks++){const Ds=Cn.target.elementFlags[ks],Du=Ea==null?void 0:Ea[ks];Du?fo[ks]=w.createNamedTupleMember(Ds&12?w.createToken(26):void 0,w.createIdentifier(Vi(bye(Du))),Ds&2?w.createToken(58):void 0,Ds&4?w.createArrayTypeNode(fo[ks]):fo[ks]):fo[ks]=Ds&12?w.createRestTypeNode(Ds&4?w.createArrayTypeNode(fo[ks]):fo[ks]):Ds&2?w.createOptionalTypeNode(fo[ks]):fo[ks]}const Ec=pr(w.createTupleTypeNode(fo),1);return Cn.target.readonly?w.createTypeOperatorNode(148,Ec):Ec}}if(Ae.encounteredError||Ae.flags&524288){const Zi=pr(w.createTupleTypeNode([]),1);return Cn.target.readonly?w.createTypeOperatorNode(148,Zi):Zi}Ae.encounteredError=!0;return}else{if(Ae.flags&2048&&Cn.symbol.valueDeclaration&&di(Cn.symbol.valueDeclaration)&&!ht(Cn.symbol,Ae.enclosingDeclaration))return dn(Cn);{const Zi=Cn.target.outerTypeParameters;let fo=0,Ea;if(Zi){const Du=Zi.length;for(;fo<Du;){const Ks=fo,v_=$Oe(Zi[fo]);do fo++;while(fo<Du&&$Oe(Zi[fo])===v_);if(!VB(Zi,ti,Ks,fo)){const rt=F(ti.slice(Ks,fo),Ae),St=Ae.flags;Ae.flags|=16;const Zt=Ro(v_,Ae,788968,rt);Ae.flags=St,Ea=Ea?ki(Ea,Zt):Zt}}}let Ec;if(ti.length>0){const Du=(Cn.target.typeParameters||et).length;Ec=F(ti.slice(fo,Du),Ae)}const ks=Ae.flags;Ae.flags|=16;const Ds=Ro(Cn.symbol,Ae,788968,Ec);return Ae.flags=ks,Ea?ki(Ea,Ds):Ds}}}function ki(Cn,ti){if(ag(Cn)){let Zi=Cn.typeArguments,fo=Cn.qualifier;fo&&(Ve(fo)?Zi!==LS(fo)&&(fo=Gv(w.cloneNode(fo),Zi)):Zi!==LS(fo.right)&&(fo=w.updateQualifiedName(fo,fo.left,Gv(w.cloneNode(fo.right),Zi)))),Zi=ti.typeArguments;const Ea=Br(ti);for(const Ec of Ea)fo=fo?w.createQualifiedName(fo,Ec):Ec;return w.updateImportTypeNode(Cn,Cn.argument,Cn.attributes,fo,Zi,Cn.isTypeOf)}else{let Zi=Cn.typeArguments,fo=Cn.typeName;Ve(fo)?Zi!==LS(fo)&&(fo=Gv(w.cloneNode(fo),Zi)):Zi!==LS(fo.right)&&(fo=w.updateQualifiedName(fo,fo.left,Gv(w.cloneNode(fo.right),Zi))),Zi=ti.typeArguments;const Ea=Br(ti);for(const Ec of Ea)fo=w.createQualifiedName(fo,Ec);return w.updateTypeReferenceNode(Cn,fo,Zi)}}function Br(Cn){let ti=Cn.typeName;const Zi=[];for(;!Ve(ti);)Zi.unshift(ti.right),ti=ti.left;return Zi.unshift(ti),Zi}function Go(Cn){if(c(Ae))return[w.createPropertySignature(void 0,"...",void 0,void 0)];const ti=[];for(const Ea of Cn.callSignatures)ti.push(be(Ea,179,Ae));for(const Ea of Cn.constructSignatures)Ea.flags&4||ti.push(be(Ea,180,Ae));for(const Ea of Cn.indexInfos)ti.push(re(Ea,Ae,Cn.objectFlags&1024?v(Ae):void 0));const Zi=Cn.properties;if(!Zi)return ti;let fo=0;for(const Ea of Zi){if(fo++,Ae.flags&2048){if(Ea.flags&4194304)continue;xf(Ea)&6&&Ae.tracker.reportPrivateInBaseOfClassExpression&&Ae.tracker.reportPrivateInBaseOfClassExpression(Vi(Ea.escapedName))}if(c(Ae)&&fo+2<Zi.length-1){ti.push(w.createPropertySignature(void 0,`... ${Zi.length-fo} more ...`,void 0,void 0)),k(Zi[Zi.length-1],Ae,ti);break}k(Ea,Ae,ti)}return ti.length?ti:void 0}}function v(ut){return ut.approximateLength+=3,ut.flags&1?w.createKeywordTypeNode(133):w.createTypeReferenceNode(w.createIdentifier("..."),void 0)}function x(ut,Ae){var kn;return!!(xl(ut)&8192)&&(Or(Ae.reverseMappedStack,ut)||((kn=Ae.reverseMappedStack)==null?void 0:kn[0])&&!(Wr(Xa(Ae.reverseMappedStack).links.propertyType)&16))}function k(ut,Ae,kn){var Cr;const pi=!!(xl(ut)&8192),Ai=x(ut,Ae)?j:Db(ut),Ii=Ae.enclosingDeclaration;if(Ae.enclosingDeclaration=void 0,Ae.tracker.canTrackSymbol&&b8(ut.escapedName))if(ut.declarations){const _n=Ua(ut.declarations);if(r9(_n))if(mr(_n)){const Fn=Lo(_n);Fn&&$s(Fn)&&lk(Fn.argumentExpression)&&ar(Fn.argumentExpression,Ii,Ae)}else ar(_n.name.expression,Ii,Ae)}else Ae.tracker.reportNonSerializableProperty(Si(ut));Ae.enclosingDeclaration=ut.valueDeclaration||((Cr=ut.declarations)==null?void 0:Cr[0])||Ii;const Ur=On(ut,Ae);if(Ae.enclosingDeclaration=Ii,Ae.approximateLength+=El(ut).length+1,ut.flags&98304){const _n=F1(ut);if(Ai!==_n&&!Jt(Ai)&&!Jt(_n)){const Fn=pl(ut,177),ki=dm(Fn);kn.push(ac(be(ki,177,Ae,{name:Ur}),Fn));const Br=pl(ut,178),Go=dm(Br);kn.push(ac(be(Go,178,Ae,{name:Ur}),Br));return}}const xr=ut.flags&16777216?w.createToken(58):void 0;if(ut.flags&8208&&!Pb(Ai).length&&!g_(ut)){const _n=Xo(dc(Ai,Fn=>!(Fn.flags&32768)),0);for(const Fn of _n){const ki=be(Fn,173,Ae,{name:Ur,questionToken:xr});kn.push(Ut(ki))}if(_n.length||!xr)return}let ct;x(ut,Ae)?ct=v(Ae):(pi&&(Ae.reverseMappedStack||(Ae.reverseMappedStack=[]),Ae.reverseMappedStack.push(ut)),ct=Ai?Ss(Ae,Ai,ut,Ii):w.createKeywordTypeNode(133),pi&&Ae.reverseMappedStack.pop());const wt=g_(ut)?[w.createToken(148)]:void 0;wt&&(Ae.approximateLength+=9);const dn=w.createPropertySignature(wt,Ur,xr,ct);kn.push(Ut(dn));function Ut(_n){var Fn;const ki=(Fn=ut.declarations)==null?void 0:Fn.find(Br=>Br.kind===355);if(ki){const Br=aL(ki.comment);Br&&v0(_n,[{kind:3,text:`* + * `+Br.replace(/\n/g,` + * `)+` + `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else ut.valueDeclaration&&ac(_n,ut.valueDeclaration);return _n}}function F(ut,Ae,kn){if(bt(ut)){if(c(Ae))if(kn){if(ut.length>2)return[d(ut[0],Ae),w.createTypeReferenceNode(`... ${ut.length-2} more ...`,void 0),d(ut[ut.length-1],Ae)]}else return[w.createTypeReferenceNode("...",void 0)];const pi=!(Ae.flags&64)?$p():void 0,Ai=[];let Ii=0;for(const Ur of ut){if(Ii++,c(Ae)&&Ii+2<ut.length-1){Ai.push(w.createTypeReferenceNode(`... ${ut.length-Ii} more ...`,void 0));const ct=d(ut[ut.length-1],Ae);ct&&Ai.push(ct);break}Ae.approximateLength+=2;const xr=d(Ur,Ae);xr&&(Ai.push(xr),pi&&Toe(xr)&&pi.add(xr.typeName.escapedText,[Ur,Ai.length-1]))}if(pi){const Ur=Ae.flags;Ae.flags|=64,pi.forEach(xr=>{if(!Aoe(xr,([ct],[wt])=>H(ct,wt)))for(const[ct,wt]of xr)Ai[wt]=d(ct,Ae)}),Ae.flags=Ur}return Ai}}function H(ut,Ae){return ut===Ae||!!ut.symbol&&ut.symbol===Ae.symbol||!!ut.aliasSymbol&&ut.aliasSymbol===Ae.aliasSymbol}function re(ut,Ae,kn){const Cr=Hre(ut)||"x",pi=d(ut.keyType,Ae),Ai=w.createParameterDeclaration(void 0,void 0,Cr,void 0,pi,void 0);return kn||(kn=d(ut.type||j,Ae)),!ut.type&&!(Ae.flags&2097152)&&(Ae.encounteredError=!0),Ae.approximateLength+=Cr.length+4,w.createIndexSignature(ut.isReadonly?[w.createToken(148)]:void 0,[Ai],kn)}function be(ut,Ae,kn,Cr){var pi;const Ai=kn.flags&256;Ai&&(kn.flags&=-257),kn.approximateLength+=3;let Ii,Ur;kn.flags&32&&ut.target&&ut.mapper&&ut.target.typeParameters?Ur=ut.target.typeParameters.map(Br=>d(lo(Br,ut.mapper),kn)):Ii=ut.typeParameters&&ut.typeParameters.map(Br=>gt(Br,kn));const xr=xOe(ut,!0)[0];let ct;if(kn.enclosingDeclaration&&ut.declaration&&ut.declaration!==kn.enclosingDeclaration&&!lr(ut.declaration)&&(bt(xr)||bt(ut.typeParameters))){let Br=function(Go,Cn){N.assert(kn.enclosingDeclaration);let ti;Zr(kn.enclosingDeclaration).fakeScopeForSignatureDeclaration===Go?ti=kn.enclosingDeclaration:kn.enclosingDeclaration.parent&&Zr(kn.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===Go&&(ti=kn.enclosingDeclaration.parent),N.assertOptionalNode(ti,Ko);const Zi=(ti==null?void 0:ti.locals)??ca();let fo;if(Cn((ks,Ds)=>{Zi.has(ks)||(fo=Rn(fo,ks),Zi.set(ks,Ds))}),!fo)return;const Ea=ct;function Ec(){Xe(fo,ks=>Zi.delete(ks)),Ea==null||Ea()}if(ti)ct=Ec;else{const ks=Ah.createBlock(et);Zr(ks).fakeScopeForSignatureDeclaration=Go,ks.locals=Zi;const Ds=kn.enclosingDeclaration;Ha(ks,Ds),kn.enclosingDeclaration=ks,ct=()=>{kn.enclosingDeclaration=Ds,Ec()}}};Br("params",Go=>{for(const Cn of xr)Go(Cn.escapedName,Cn)}),kn.flags&4&&Br("typeParams",Go=>{for(const Cn of ut.typeParameters??et){const ti=Bo(Cn,kn).escapedText;Go(ti,Cn.symbol)}})}const wt=(bt(xr,Br=>Br!==xr[xr.length-1]&&!!(xl(Br)&32768))?ut.parameters:xr).map(Br=>an(Br,kn,Ae===176,Cr==null?void 0:Cr.privateSymbolVisitor,Cr==null?void 0:Cr.bundledImports)),dn=kn.flags&33554432?void 0:ge(ut,kn);dn&&wt.unshift(dn);let Ut;const _n=Gf(ut);if(_n){const Br=_n.kind===2||_n.kind===3?w.createToken(131):void 0,Go=_n.kind===1||_n.kind===3?pr(w.createIdentifier(_n.parameterName),16777216):w.createThisTypeNode(),Cn=_n.type&&d(_n.type,kn);Ut=w.createTypePredicateNode(Br,Go,Cn)}else{const Br=ps(ut);Br&&!(Ai&&Nt(Br))?Ut=Fa(kn,Br,ut,Cr==null?void 0:Cr.privateSymbolVisitor,Cr==null?void 0:Cr.bundledImports):Ai||(Ut=w.createKeywordTypeNode(133))}let Fn=Cr==null?void 0:Cr.modifiers;if(Ae===185&&ut.flags&4){const Br=N_(Fn);Fn=w.createModifiersFromModifierFlags(Br|64)}const ki=Ae===179?w.createCallSignature(Ii,wt,Ut):Ae===180?w.createConstructSignature(Ii,wt,Ut):Ae===173?w.createMethodSignature(Fn,(Cr==null?void 0:Cr.name)??w.createIdentifier(""),Cr==null?void 0:Cr.questionToken,Ii,wt,Ut):Ae===174?w.createMethodDeclaration(Fn,void 0,(Cr==null?void 0:Cr.name)??w.createIdentifier(""),void 0,Ii,wt,Ut,void 0):Ae===176?w.createConstructorDeclaration(Fn,wt,void 0):Ae===177?w.createGetAccessorDeclaration(Fn,(Cr==null?void 0:Cr.name)??w.createIdentifier(""),wt,Ut,void 0):Ae===178?w.createSetAccessorDeclaration(Fn,(Cr==null?void 0:Cr.name)??w.createIdentifier(""),wt,void 0):Ae===181?w.createIndexSignature(Fn,wt,Ut):Ae===324?w.createJSDocFunctionType(wt,Ut):Ae===184?w.createFunctionTypeNode(Ii,wt,Ut??w.createTypeReferenceNode(w.createIdentifier(""))):Ae===185?w.createConstructorTypeNode(Fn,Ii,wt,Ut??w.createTypeReferenceNode(w.createIdentifier(""))):Ae===262?w.createFunctionDeclaration(Fn,void 0,Cr!=null&&Cr.name?oa(Cr.name,Ve):w.createIdentifier(""),Ii,wt,Ut,void 0):Ae===218?w.createFunctionExpression(Fn,void 0,Cr!=null&&Cr.name?oa(Cr.name,Ve):w.createIdentifier(""),Ii,wt,Ut,w.createBlock([])):Ae===219?w.createArrowFunction(Fn,Ii,wt,Ut,void 0,w.createBlock([])):N.assertNever(Ae);if(Ur&&(ki.typeArguments=w.createNodeArray(Ur)),((pi=ut.declaration)==null?void 0:pi.kind)===330&&ut.declaration.parent.kind===346){const Br=fc(ut.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(Go=>Go.replace(/^\s+/," ")).join(` +`);uP(ki,3,Br,!0)}return ct==null||ct(),ki}function ge(ut,Ae){if(ut.thisParameter)return an(ut.thisParameter,Ae);if(ut.declaration&&lr(ut.declaration)){const kn=c4(ut.declaration);if(kn&&kn.typeExpression)return w.createParameterDeclaration(void 0,void 0,"this",void 0,d(Ti(kn.typeExpression),Ae))}}function Je(ut,Ae,kn){const Cr=Ae.flags;Ae.flags&=-513;const pi=w.createModifiersFromModifierFlags(tve(ut)),Ai=Bo(ut,Ae),Ii=GT(ut),Ur=Ii&&d(Ii,Ae);return Ae.flags=Cr,w.createTypeParameterDeclaration(pi,Ai,kn,Ur)}function gt(ut,Ae,kn=Md(ut)){const Cr=kn&&d(kn,Ae);return Je(ut,Ae,Cr)}function Dt(ut){const Ae=pl(ut,169);if(Ae)return Ae;if(!fh(ut))return pl(ut,348)}function an(ut,Ae,kn,Cr,pi){const Ai=Dt(ut);let Ii=dr(ut);Ai&&_Fe(Ai)&&(Ii=Bb(Ii));const Ur=Ss(Ae,Ii,ut,Ae.enclosingDeclaration,Cr,pi),xr=!(Ae.flags&8192)&&kn&&Ai&&Rm(Ai)?Wt(xE(Ai),w.cloneNode):void 0,wt=Ai&&Xh(Ai)||xl(ut)&32768?w.createToken(26):void 0,dn=cn(ut,Ai,Ae),_n=Ai&&T8(Ai)||xl(ut)&16384?w.createToken(58):void 0,Fn=w.createParameterDeclaration(xr,wt,dn,_n,Ur,void 0);return Ae.approximateLength+=El(ut).length+3,Fn}function cn(ut,Ae,kn){return Ae&&Ae.name?Ae.name.kind===80?pr(w.cloneNode(Ae.name),16777216):Ae.name.kind===166?pr(w.cloneNode(Ae.name.right),16777216):Cr(Ae.name):El(ut);function Cr(pi){return Ai(pi);function Ai(Ii){kn.tracker.canTrackSymbol&&Za(Ii)&&jhe(Ii)&&ar(Ii.expression,kn.enclosingDeclaration,kn);let Ur=xn(Ii,Ai,void 0,void 0,Ai);return $a(Ur)&&(Ur=w.updateBindingElement(Ur,Ur.dotDotDotToken,Ur.propertyName,Ur.name,void 0)),Ys(Ur)||(Ur=w.cloneNode(Ur)),pr(Ur,16777217)}}}function ar(ut,Ae,kn){if(!kn.tracker.canTrackSymbol)return;const Cr=Gp(ut),pi=yl(Cr,Cr.escapedText,1160127,void 0,void 0,!0);pi&&kn.tracker.trackSymbol(pi,Ae,111551)}function Wn(ut,Ae,kn,Cr){return Ae.tracker.trackSymbol(ut,Ae.enclosingDeclaration,kn),ln(ut,Ae,kn,Cr)}function ln(ut,Ae,kn,Cr){let pi;return!(ut.flags&262144)&&(Ae.enclosingDeclaration||Ae.flags&64)&&!(Ae.flags&134217728)?(pi=N.checkDefined(Ii(ut,kn,!0)),N.assert(pi&&pi.length>0)):pi=[ut],pi;function Ii(Ur,xr,ct){let wt=yb(Ur,Ae.enclosingDeclaration,xr,!!(Ae.flags&128)),dn;if(!wt||Y0(wt[0],Ae.enclosingDeclaration,wt.length===1?xr:iv(xr))){const _n=K0(wt?wt[0]:Ur,Ae.enclosingDeclaration,xr);if(Ne(_n)){dn=_n.map(Br=>bt(Br.declarations,ed)?Kn(Br,Ae):void 0);const Fn=_n.map((Br,Go)=>Go);Fn.sort(Ut);const ki=Fn.map(Br=>_n[Br]);for(const Br of ki){const Go=Ii(Br,iv(xr),!1);if(Go){if(Br.exports&&Br.exports.get("export=")&&s_(Br.exports.get("export="),Ur)){wt=Go;break}wt=Go.concat(wt||[gg(Br,Ur)||Ur]);break}}}}if(wt)return wt;if(ct||!(Ur.flags&6144))return!ct&&!Cr&&Xe(Ur.declarations,ed)?void 0:[Ur];function Ut(_n,Fn){const ki=dn[_n],Br=dn[Fn];if(ki&&Br){const Go=Op(Br);return Op(ki)===Go?kF(ki)-kF(Br):Go?-1:1}return 0}}}function Bn(ut,Ae){let kn;return wN(ut).flags&524384&&(kn=w.createNodeArray(Wt(Lr(ut),pi=>gt(pi,Ae)))),kn}function zn(ut,Ae,kn){var Cr;N.assert(ut&&0<=Ae&&Ae<ut.length);const pi=ut[Ae],Ai=Sa(pi);if((Cr=kn.typeParameterSymbolList)!=null&&Cr.has(Ai))return;(kn.typeParameterSymbolList||(kn.typeParameterSymbolList=new Set)).add(Ai);let Ii;if(kn.flags&512&&Ae<ut.length-1){const Ur=pi,xr=ut[Ae+1];if(xl(xr)&1){const ct=zi(Ur.flags&2097152?Oc(Ur):Ur);Ii=F(Wt(ct,wt=>Ob(wt,xr.links.mapper)),kn)}else Ii=Bn(pi,kn)}return Ii}function tr(ut){return WS(ut.objectType)?tr(ut.objectType):ut}function Kn(ut,Ae,kn){let Cr=pl(ut,312);if(!Cr){const ct=Ht(ut.declarations,wt=>MT(wt,ut));ct&&(Cr=pl(ct,312))}if(Cr&&Cr.moduleName!==void 0)return Cr.moduleName;if(!Cr){if(Ae.tracker.trackReferencedAmbientModule){const ct=mn(ut.declarations,ku);if(Ne(ct))for(const wt of ct)Ae.tracker.trackReferencedAmbientModule(wt,ut)}if(xq.test(ut.escapedName))return ut.escapedName.substring(1,ut.escapedName.length-1)}if(!Ae.enclosingDeclaration||!Ae.tracker.moduleResolverHost)return xq.test(ut.escapedName)?ut.escapedName.substring(1,ut.escapedName.length-1):Un(nj(ut)).fileName;const pi=Un(Pl(Ae.enclosingDeclaration)),Ai=kn||(pi==null?void 0:pi.impliedNodeFormat),Ii=kP(pi.path,Ai),Ur=Ki(ut);let xr=Ur.specifierCache&&Ur.specifierCache.get(Ii);if(!xr){const ct=!!Ps(V),{moduleResolverHost:wt}=Ae.tracker,dn=ct?{...V,baseUrl:wt.getCommonSourceDirectory()}:V;xr=Ua(AIe(ut,Qt,dn,pi,wt,{importModuleSpecifierPreference:ct?"non-relative":"project-relative",importModuleSpecifierEnding:ct?"minimal":Ai===99?"js":void 0},{overrideImportMode:kn})),Ur.specifierCache??(Ur.specifierCache=new Map),Ur.specifierCache.set(Ii,xr)}return xr}function nr(ut){const Ae=w.createIdentifier(Vi(ut.escapedName));return ut.parent?w.createQualifiedName(nr(ut.parent),Ae):Ae}function Ro(ut,Ae,kn,Cr){const pi=Wn(ut,Ae,kn,!(Ae.flags&16384)),Ai=kn===111551;if(bt(pi[0].declarations,ed)){const xr=pi.length>1?Ur(pi,pi.length-1,1):void 0,ct=Cr||zn(pi,0,Ae),wt=Un(Pl(Ae.enclosingDeclaration)),dn=N4(pi[0]);let Ut,_n;if((pd(V)===3||pd(V)===99)&&(dn==null?void 0:dn.impliedNodeFormat)===99&&dn.impliedNodeFormat!==(wt==null?void 0:wt.impliedNodeFormat)&&(Ut=Kn(pi[0],Ae,99),_n=w.createImportAttributes(w.createNodeArray([w.createImportAttribute(w.createStringLiteral("resolution-mode"),w.createStringLiteral("import"))]))),Ut||(Ut=Kn(pi[0],Ae)),!(Ae.flags&67108864)&&pd(V)!==1&&Ut.includes("/node_modules/")){const ki=Ut;if(pd(V)===3||pd(V)===99){const Br=(wt==null?void 0:wt.impliedNodeFormat)===99?1:99;Ut=Kn(pi[0],Ae,Br),Ut.includes("/node_modules/")?Ut=ki:_n=w.createImportAttributes(w.createNodeArray([w.createImportAttribute(w.createStringLiteral("resolution-mode"),w.createStringLiteral(Br===99?"import":"require"))]))}_n||(Ae.encounteredError=!0,Ae.tracker.reportLikelyUnsafeImportRequiredError&&Ae.tracker.reportLikelyUnsafeImportRequiredError(ki))}const Fn=w.createLiteralTypeNode(w.createStringLiteral(Ut));if(Ae.tracker.trackExternalModuleSymbolOfImportTypeNode&&Ae.tracker.trackExternalModuleSymbolOfImportTypeNode(pi[0]),Ae.approximateLength+=Ut.length+10,!xr||Qd(xr)){if(xr){const ki=Ve(xr)?xr:xr.right;Gv(ki,void 0)}return w.createImportTypeNode(Fn,_n,xr,ct,Ai)}else{const ki=tr(xr),Br=ki.objectType.typeName;return w.createIndexedAccessTypeNode(w.createImportTypeNode(Fn,_n,Br,ct,Ai),ki.indexType)}}const Ii=Ur(pi,pi.length-1,0);if(WS(Ii))return Ii;if(Ai)return w.createTypeQueryNode(Ii);{const xr=Ve(Ii)?Ii:Ii.right,ct=LS(xr);return Gv(xr,void 0),w.createTypeReferenceNode(Ii,ct)}function Ur(xr,ct,wt){const dn=ct===xr.length-1?Cr:zn(xr,ct,Ae),Ut=xr[ct],_n=xr[ct-1];let Fn;if(ct===0)Ae.flags|=16777216,Fn=$0(Ut,Ae),Ae.approximateLength+=(Fn?Fn.length:0)+1,Ae.flags^=16777216;else if(_n&&Dp(_n)){const Br=Dp(_n);zc(Br,(Go,Cn)=>{if(s_(Go,Ut)&&!b8(Cn)&&Cn!=="export=")return Fn=Vi(Cn),!0})}if(Fn===void 0){const Br=Ht(Ut.declarations,Lo);if(Br&&Za(Br)&&Qd(Br.expression)){const Go=Ur(xr,ct-1,wt);return Qd(Go)?w.createIndexedAccessTypeNode(w.createParenthesizedType(w.createTypeQueryNode(Go)),w.createTypeQueryNode(Br.expression)):Go}Fn=$0(Ut,Ae)}if(Ae.approximateLength+=Fn.length+1,!(Ae.flags&16)&&_n&&Cb(_n)&&Cb(_n).get(Ut.escapedName)&&s_(Cb(_n).get(Ut.escapedName),Ut)){const Br=Ur(xr,ct-1,wt);return WS(Br)?w.createIndexedAccessTypeNode(Br,w.createLiteralTypeNode(w.createStringLiteral(Fn))):w.createIndexedAccessTypeNode(w.createTypeReferenceNode(Br,dn),w.createLiteralTypeNode(w.createStringLiteral(Fn)))}const ki=pr(w.createIdentifier(Fn),16777216);if(dn&&Gv(ki,w.createNodeArray(dn)),ki.symbol=Ut,ct>wt){const Br=Ur(xr,ct-1,wt);return Qd(Br)?w.createQualifiedName(Br,ki):N.fail("Impossible construct - an export of an indexed access cannot be reachable")}return ki}}function Eo(ut,Ae,kn){const Cr=yl(Ae.enclosingDeclaration,ut,788968,void 0,ut,!1);return Cr&&Cr.flags&262144?Cr!==kn.symbol:!1}function Bo(ut,Ae){var kn,Cr;if(Ae.flags&4&&Ae.typeParameterNames){const Ai=Ae.typeParameterNames.get(vd(ut));if(Ai)return Ai}let pi=_o(ut.symbol,Ae,788968,!0);if(!(pi.kind&80))return w.createIdentifier("(Missing type parameter)");if(Ae.flags&4){const Ai=pi.escapedText;let Ii=((kn=Ae.typeParameterNamesByTextNextNameCount)==null?void 0:kn.get(Ai))||0,Ur=Ai;for(;(Cr=Ae.typeParameterNamesByText)!=null&&Cr.has(Ur)||Eo(Ur,Ae,ut);)Ii++,Ur=`${Ai}_${Ii}`;if(Ur!==Ai){const xr=LS(pi);pi=w.createIdentifier(Ur),Gv(pi,xr)}(Ae.typeParameterNamesByTextNextNameCount||(Ae.typeParameterNamesByTextNextNameCount=new Map)).set(Ai,Ii),(Ae.typeParameterNames||(Ae.typeParameterNames=new Map)).set(vd(ut),pi),(Ae.typeParameterNamesByText||(Ae.typeParameterNamesByText=new Set)).add(Ur)}return pi}function _o(ut,Ae,kn,Cr){const pi=Wn(ut,Ae,kn);return Cr&&pi.length!==1&&!Ae.encounteredError&&!(Ae.flags&65536)&&(Ae.encounteredError=!0),Ai(pi,pi.length-1);function Ai(Ii,Ur){const xr=zn(Ii,Ur,Ae),ct=Ii[Ur];Ur===0&&(Ae.flags|=16777216);const wt=$0(ct,Ae);Ur===0&&(Ae.flags^=16777216);const dn=pr(w.createIdentifier(wt),16777216);return xr&&Gv(dn,w.createNodeArray(xr)),dn.symbol=ct,Ur>0?w.createQualifiedName(Ai(Ii,Ur-1),dn):dn}}function Nc(ut,Ae,kn){const Cr=Wn(ut,Ae,kn);return pi(Cr,Cr.length-1);function pi(Ai,Ii){const Ur=zn(Ai,Ii,Ae),xr=Ai[Ii];Ii===0&&(Ae.flags|=16777216);let ct=$0(xr,Ae);Ii===0&&(Ae.flags^=16777216);let wt=ct.charCodeAt(0);if(wL(wt)&&bt(xr.declarations,ed))return w.createStringLiteral(Kn(xr,Ae));if(Ii===0||EU(ct,se)){const dn=pr(w.createIdentifier(ct),16777216);return Ur&&Gv(dn,w.createNodeArray(Ur)),dn.symbol=xr,Ii>0?w.createPropertyAccessExpression(pi(Ai,Ii-1),dn):dn}else{wt===91&&(ct=ct.substring(1,ct.length-1),wt=ct.charCodeAt(0));let dn;if(wL(wt)&&!(xr.flags&8)?dn=w.createStringLiteral(Zf(ct).replace(/\\./g,Ut=>Ut.substring(1)),wt===39):""+ +ct===ct&&(dn=w.createNumericLiteral(+ct)),!dn){const Ut=pr(w.createIdentifier(ct),16777216);Ur&&Gv(Ut,w.createNodeArray(Ur)),Ut.symbol=xr,dn=Ut}return w.createElementAccessExpression(pi(Ai,Ii-1),dn)}}}function Hf(ut){const Ae=Lo(ut);return Ae?Za(Ae)?!!(mo(Ae.expression).flags&402653316):$s(Ae)?!!(mo(Ae.argumentExpression).flags&402653316):Na(Ae):!1}function up(ut){const Ae=Lo(ut);return!!(Ae&&Na(Ae)&&(Ae.singleQuote||!Ys(Ae)&&uo(fc(Ae,!1),"'")))}function On(ut,Ae){const kn=!!Ne(ut.declarations)&&Jn(ut.declarations,Hf),Cr=!!Ne(ut.declarations)&&Jn(ut.declarations,up),pi=!!(ut.flags&8192),Ai=er(ut,Ae,Cr,kn,pi);if(Ai)return Ai;const Ii=Vi(ut.escapedName);return J3(Ii,os(V),Cr,kn,pi)}function er(ut,Ae,kn,Cr,pi){const Ai=Ki(ut).nameType;if(Ai){if(Ai.flags&384){const Ii=""+Ai.value;return!Zp(Ii,os(V))&&(Cr||!og(Ii))?w.createStringLiteral(Ii,!!kn):og(Ii)&&uo(Ii,"-")?w.createComputedPropertyName(w.createPrefixUnaryExpression(41,w.createNumericLiteral(-Ii))):J3(Ii,os(V),kn,Cr,pi)}if(Ai.flags&8192)return w.createComputedPropertyName(Nc(Ai.symbol,Ae,111551))}}function ao(ut){const Ae={...ut};return Ae.typeParameterNames&&(Ae.typeParameterNames=new Map(Ae.typeParameterNames)),Ae.typeParameterNamesByText&&(Ae.typeParameterNamesByText=new Set(Ae.typeParameterNamesByText)),Ae.typeParameterSymbolList&&(Ae.typeParameterSymbolList=new Set(Ae.typeParameterSymbolList)),Ae.tracker=new Dq(Ae,Ae.tracker.inner,Ae.tracker.moduleResolverHost),Ae}function br(ut,Ae){return ut.declarations&&In(ut.declarations,kn=>!!yu(kn)&&(!Ae||!!Vn(kn,Cr=>Cr===Ae)))}function Po(ut,Ae){return!(Wr(Ae)&4)||!Df(ut)||Ne(ut.typeArguments)>=zh(Ae.target.typeParameters)}function ss(ut){for(;Zr(ut).fakeScopeForSignatureDeclaration;)ut=ut.parent;return ut}function Ss(ut,Ae,kn,Cr,pi,Ai){if(!Jt(Ae)&&Cr){const xr=br(kn,ss(Cr));if(xr&&!Bs(xr)&&!tf(xr)){const ct=yu(xr);if(ju(ct,xr,Ae)&&Po(ct,Ae)){const wt=Wl(ut,ct,pi,Ai);if(wt)return wt}}}const Ii=ut.flags;Ae.flags&8192&&Ae.symbol===kn&&(!ut.enclosingDeclaration||bt(kn.declarations,xr=>Un(xr)===Un(ut.enclosingDeclaration)))&&(ut.flags|=1048576);const Ur=d(Ae,ut);return ut.flags=Ii,Ur}function ju(ut,Ae,kn){const Cr=Ti(ut);return Cr===kn?!0:Ao(Ae)&&Ae.questionToken?mm(kn,524288)===Cr:!1}function Fa(ut,Ae,kn,Cr,pi){if(!Jt(Ae)&&ut.enclosingDeclaration){const Ai=kn.declaration&&em(kn.declaration),Ii=ss(ut.enclosingDeclaration);if(Vn(Ai,Ur=>Ur===Ii)&&Ai){const Ur=Ti(Ai);if((Ur.flags&262144&&Ur.isThisType?lo(Ur,kn.mapper):Ur)===Ae&&Po(Ai,Ae)){const ct=Wl(ut,Ai,Cr,pi);if(ct)return ct}}}return d(Ae,ut)}function kd(ut,Ae,kn){let Cr=!1;const pi=Gp(ut);if(lr(ut)&&(ES(pi)||Zh(pi.parent)||Id(pi.parent)&&bj(pi.parent.left)&&ES(pi.parent.right)))return Cr=!0,{introducesError:Cr,node:ut};const Ai=Ff(ut),Ii=Hs(pi,Ai,!0,!0);if(Ii&&(wi(Ii,Ae.enclosingDeclaration,Ai,!1).accessibility!==0?Cr=!0:(Ae.tracker.trackSymbol(Ii,Ae.enclosingDeclaration,Ai),kn==null||kn(Ii)),Ve(ut))){const Ur=Zs(Ii),xr=Ii.flags&262144?Bo(Ur,Ae):w.cloneNode(ut);return xr.symbol=Ii,{introducesError:Cr,node:pr(Nr(xr,ut),16777216)}}return{introducesError:Cr,node:ut}}function Wl(ut,Ae,kn,Cr){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let pi=!1;const Ai=Un(Ae),Ii=nt(Ae,Ur,ji);if(pi)return;return Ii===Ae?dt(w.cloneNode(Ae),Ae):Ii;function Ur(xr){if(Eae(xr)||xr.kind===326)return w.createKeywordTypeNode(133);if(Sae(xr))return w.createKeywordTypeNode(159);if(HR(xr))return w.createUnionTypeNode([nt(xr.type,Ur,ji),w.createLiteralTypeNode(w.createNull())]);if(fH(xr))return w.createUnionTypeNode([nt(xr.type,Ur,ji),w.createKeywordTypeNode(157)]);if(XW(xr))return nt(xr.type,Ur);if(YW(xr))return w.createArrayTypeNode(nt(xr.type,Ur,ji));if(jS(xr))return w.createTypeLiteralNode(Wt(xr.jsDocPropertyTags,Ut=>{const _n=Ve(Ut.name)?Ut.name:Ut.name.right,Fn=Ke(Ti(xr),_n.escapedText),ki=Fn&&Ut.typeExpression&&Ti(Ut.typeExpression.type)!==Fn?d(Fn,ut):void 0;return w.createPropertySignature(void 0,_n,Ut.isBracketed||Ut.typeExpression&&fH(Ut.typeExpression.type)?w.createToken(58):void 0,ki||Ut.typeExpression&&nt(Ut.typeExpression.type,Ur,ji)||w.createKeywordTypeNode(133))}));if(Df(xr)&&Ve(xr.typeName)&&xr.typeName.escapedText==="")return Nr(w.createKeywordTypeNode(133),xr);if((Vv(xr)||Df(xr))&&Q4(xr))return w.createTypeLiteralNode([w.createIndexSignature(void 0,[w.createParameterDeclaration(void 0,void 0,"x",void 0,nt(xr.typeArguments[0],Ur,ji))],nt(xr.typeArguments[1],Ur,ji))]);if(qR(xr))if(_R(xr)){let Ut;return w.createConstructorTypeNode(void 0,jn(xr.typeParameters,Ur,hl),eo(xr.parameters,(_n,Fn)=>_n.name&&Ve(_n.name)&&_n.name.escapedText==="new"?(Ut=_n.type,void 0):w.createParameterDeclaration(void 0,ct(_n),wt(_n,Fn),_n.questionToken,nt(_n.type,Ur,ji),void 0)),nt(Ut||xr.type,Ur,ji)||w.createKeywordTypeNode(133))}else return w.createFunctionTypeNode(jn(xr.typeParameters,Ur,hl),Wt(xr.parameters,(Ut,_n)=>w.createParameterDeclaration(void 0,ct(Ut),wt(Ut,_n),Ut.questionToken,nt(Ut.type,Ur,ji),void 0)),nt(xr.type,Ur,ji)||w.createKeywordTypeNode(133));if(Df(xr)&&kL(xr)&&(!Po(xr,Ti(xr))||o8e(xr)||ft===SN(xr,788968,!0)))return Nr(d(Ti(xr),ut),xr);if(Oy(xr)){const Ut=Zr(xr).resolvedSymbol;return kL(xr)&&Ut&&(!xr.isTypeOf&&!(Ut.flags&788968)||!(Ne(xr.typeArguments)>=zh(Lr(Ut))))?Nr(d(Ti(xr),ut),xr):w.updateImportTypeNode(xr,w.updateLiteralTypeNode(xr.argument,dn(xr,xr.argument.literal)),xr.attributes,xr.qualifier,jn(xr.typeArguments,Ur,ji),xr.isTypeOf)}if(Qd(xr)||Bl(xr)){const{introducesError:Ut,node:_n}=kd(xr,ut,kn);if(pi=pi||Ut,_n!==xr)return _n}return Ai&&tI(xr)&&ys(Ai,xr.pos).line===ys(Ai,xr.end).line&&pr(xr,1),xn(xr,Ur,void 0);function ct(Ut){return Ut.dotDotDotToken||(Ut.type&&YW(Ut.type)?w.createToken(26):void 0)}function wt(Ut,_n){return Ut.name&&Ve(Ut.name)&&Ut.name.escapedText==="this"?"this":ct(Ut)?"args":`arg${_n}`}function dn(Ut,_n){if(Cr){if(ut.tracker&&ut.tracker.moduleResolverHost){const Fn=abe(Ut);if(Fn){const Br={getCanonicalFileName:Mu(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>ut.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>ut.tracker.moduleResolverHost.getCommonSourceDirectory()},Go=d3(Br,Fn);return w.createStringLiteral(Go)}}}else if(ut.tracker&&ut.tracker.trackExternalModuleSymbolOfImportTypeNode){const Fn=nv(_n,_n,void 0);Fn&&ut.tracker.trackExternalModuleSymbolOfImportTypeNode(Fn)}return _n}}}function bl(ut,Ae,kn){var Cr;const pi=fs(w.createPropertyDeclaration,174,!0),Ai=fs((Pt,Dr,fi,Kr)=>w.createPropertySignature(Pt,Dr,fi,Kr),173,!1),Ii=Ae.enclosingDeclaration;let Ur=[];const xr=new Set,ct=[],wt=Ae;Ae={...wt,usedSymbolNames:new Set(wt.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Cr=wt.remappedSymbolReferences)==null?void 0:Cr.entries()),tracker:void 0};const dn={...wt.tracker.inner,trackSymbol:(Pt,Dr,fi)=>{var Kr,ui;if((Kr=Ae.remappedSymbolNames)!=null&&Kr.has(Sa(Pt)))return!1;if(wi(Pt,Dr,fi,!1).accessibility===0){const ua=ln(Pt,Ae,fi);if(!(Pt.flags&4)){const Ho=ua[0],zs=Un(wt.enclosingDeclaration);bt(Ho.declarations,ms=>Un(ms)===zs)&&Ds(Ho)}}else if((ui=wt.tracker.inner)!=null&&ui.trackSymbol)return wt.tracker.inner.trackSymbol(Pt,Dr,fi);return!1}};Ae.tracker=new Dq(Ae,dn,wt.tracker.moduleResolverHost),zc(ut,(Pt,Dr)=>{const fi=Vi(Dr);jm(Pt,fi)});let Ut=!kn;const _n=ut.get("export=");return _n&&ut.size>1&&_n.flags&2098688&&(ut=ca(),ut.set("export=",_n)),Ea(ut),ti(Ur);function Fn(Pt){return!!Pt&&Pt.kind===80}function ki(Pt){return Ll(Pt)?mn(Wt(Pt.declarationList.declarations,Lo),Fn):mn([Lo(Pt)],Fn)}function Br(Pt){const Dr=In(Pt,kl),fi=mi(Pt,Xl);let Kr=fi!==-1?Pt[fi]:void 0;if(Kr&&Dr&&Dr.isExportEquals&&Ve(Dr.expression)&&Ve(Kr.name)&&Er(Kr.name)===Er(Dr.expression)&&Kr.body&&L_(Kr.body)){const ui=mn(Pt,Ho=>!!(ud(Ho)&32)),ns=Kr.name;let ua=Kr.body;if(Ne(ui)&&(Kr=w.updateModuleDeclaration(Kr,Kr.modifiers,Kr.name,ua=w.updateModuleBlock(ua,w.createNodeArray([...Kr.body.statements,w.createExportDeclaration(void 0,!1,w.createNamedExports(Wt(Do(ui,Ho=>ki(Ho)),Ho=>w.createExportSpecifier(!1,void 0,Ho))),void 0)]))),Pt=[...Pt.slice(0,fi),Kr,...Pt.slice(fi+1)]),!In(Pt,Ho=>Ho!==Kr&&rL(Ho,ns))){Ur=[];const Ho=!bt(ua.statements,zs=>Qr(zs,32)||kl(zs)||Yl(zs));Xe(ua.statements,zs=>{Ks(zs,Ho?32:0)}),Pt=[...mn(Pt,zs=>zs!==Kr&&zs!==Dr),...Ur]}}return Pt}function Go(Pt){const Dr=mn(Pt,Kr=>Yl(Kr)&&!Kr.moduleSpecifier&&!!Kr.exportClause&&Nf(Kr.exportClause));Ne(Dr)>1&&(Pt=[...mn(Pt,ui=>!Yl(ui)||!!ui.moduleSpecifier||!ui.exportClause),w.createExportDeclaration(void 0,!1,w.createNamedExports(Do(Dr,ui=>oa(ui.exportClause,Nf).elements)),void 0)]);const fi=mn(Pt,Kr=>Yl(Kr)&&!!Kr.moduleSpecifier&&!!Kr.exportClause&&Nf(Kr.exportClause));if(Ne(fi)>1){const Kr=JN(fi,ui=>Na(ui.moduleSpecifier)?">"+ui.moduleSpecifier.text:">");if(Kr.length!==fi.length)for(const ui of Kr)ui.length>1&&(Pt=[...mn(Pt,ns=>!ui.includes(ns)),w.createExportDeclaration(void 0,!1,w.createNamedExports(Do(ui,ns=>oa(ns.exportClause,Nf).elements)),ui[0].moduleSpecifier)])}return Pt}function Cn(Pt){const Dr=mi(Pt,fi=>Yl(fi)&&!fi.moduleSpecifier&&!fi.attributes&&!!fi.exportClause&&Nf(fi.exportClause));if(Dr>=0){const fi=Pt[Dr],Kr=eo(fi.exportClause.elements,ui=>{if(!ui.propertyName){const ns=N2(Pt),ua=mn(ns,Ho=>rL(Pt[Ho],ui.name));if(Ne(ua)&&Jn(ua,Ho=>vk(Pt[Ho]))){for(const Ho of ua)Pt[Ho]=Zi(Pt[Ho]);return}}return ui});Ne(Kr)?Pt[Dr]=w.updateExportDeclaration(fi,fi.modifiers,fi.isTypeOnly,w.updateNamedExports(fi.exportClause,Kr),fi.moduleSpecifier,fi.attributes):Sy(Pt,Dr)}return Pt}function ti(Pt){return Pt=Br(Pt),Pt=Go(Pt),Pt=Cn(Pt),Ii&&($i(Ii)&&Fp(Ii)||Xl(Ii))&&(!bt(Pt,mL)||!vre(Pt)&&bt(Pt,v4))&&Pt.push(Kk(w)),Pt}function Zi(Pt){const Dr=(ud(Pt)|32)&-129;return w.replaceModifiers(Pt,Dr)}function fo(Pt){const Dr=ud(Pt)&-33;return w.replaceModifiers(Pt,Dr)}function Ea(Pt,Dr,fi){Dr||ct.push(new Map),Pt.forEach(Kr=>{Ec(Kr,!1,!!fi)}),Dr||(ct[ct.length-1].forEach(Kr=>{Ec(Kr,!0,!!fi)}),ct.pop())}function Ec(Pt,Dr,fi){const Kr=rs(Pt);if(xr.has(Sa(Kr)))return;if(xr.add(Sa(Kr)),!Dr||Ne(Pt.declarations)&&bt(Pt.declarations,ns=>!!Vn(ns,ua=>ua===Ii))){const ns=Ae;Ae=ao(Ae),ks(Pt,Dr,fi),Ae.reportedDiagnostic&&(wt.reportedDiagnostic=Ae.reportedDiagnostic),Ae.trackedSymbols&&(ns.trackedSymbols?N.assert(Ae.trackedSymbols===ns.trackedSymbols):ns.trackedSymbols=Ae.trackedSymbols),Ae=ns}}function ks(Pt,Dr,fi,Kr=Pt.escapedName){var ui,ns,ua,Ho,zs,ms;const za=Vi(Kr),Nu=Kr==="default";if(Dr&&!(Ae.flags&131072)&&LA(za)&&!Nu){Ae.encounteredError=!0;return}let Cu=Nu&&!!(Pt.flags&-113||Pt.flags&16&&Ne(gs(dr(Pt))))&&!(Pt.flags&2097152),bd=!Cu&&!Dr&&LA(za)&&!Nu;(Cu||bd)&&(Dr=!0);const ql=(Dr?0:32)|(Nu&&!Cu?2048:0),Pu=Pt.flags&1536&&Pt.flags&7&&Kr!=="export=",$d=Pu&&Ns(dr(Pt),Pt);if((Pt.flags&8208||$d)&&An(dr(Pt),Pt,jm(Pt,za),ql),Pt.flags&524288&&v_(Pt,za,ql),Pt.flags&98311&&Kr!=="export="&&!(Pt.flags&4194304)&&!(Pt.flags&32)&&!(Pt.flags&8192)&&!$d)if(fi)xa(Pt)&&(bd=!1,Cu=!1);else{const iu=dr(Pt),Lp=jm(Pt,za);if(iu.symbol&&iu.symbol!==Pt&&iu.symbol.flags&16&&bt(iu.symbol.declarations,qE)&&((ui=iu.symbol.members)!=null&&ui.size||(ns=iu.symbol.exports)!=null&&ns.size))Ae.remappedSymbolReferences||(Ae.remappedSymbolReferences=new Map),Ae.remappedSymbolReferences.set(Sa(iu.symbol),Pt),ks(iu.symbol,Dr,fi,Kr),Ae.remappedSymbolReferences.delete(Sa(iu.symbol));else if(!(Pt.flags&16)&&Ns(iu,Pt))An(iu,Pt,Lp,ql);else{const bx=Pt.flags&2?e2(Pt)?2:1:(ua=Pt.parent)!=null&&ua.valueDeclaration&&$i((Ho=Pt.parent)==null?void 0:Ho.valueDeclaration)?2:void 0,nh=Cu||!(Pt.flags&4)?Lp:y_(Lp,Pt);let Ub=Pt.declarations&&In(Pt.declarations,a6=>Oi(a6));Ub&&Vc(Ub.parent)&&Ub.parent.declarations.length===1&&(Ub=Ub.parent.parent);const Hb=(zs=Pt.declarations)==null?void 0:zs.find(Fr);if(Hb&&mr(Hb.parent)&&Ve(Hb.parent.right)&&((ms=iu.symbol)!=null&&ms.valueDeclaration)&&$i(iu.symbol.valueDeclaration)){const a6=Lp===Hb.parent.right.escapedText?void 0:Hb.parent.right;Ks(w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,a6,Lp)])),0),Ae.tracker.trackSymbol(iu.symbol,Ae.enclosingDeclaration,111551)}else{const a6=dt(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(nh,void 0,Ss(Ae,iu,Pt,Ii,Ds,kn))],bx)),Ub);Ks(a6,nh!==Lp?ql&-33:ql),nh!==Lp&&!Dr&&(Ks(w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,nh,Lp)])),0),bd=!1,Cu=!1)}}}if(Pt.flags&384&&Rr(Pt,za,ql),Pt.flags&32&&(Pt.flags&4&&Pt.valueDeclaration&&mr(Pt.valueDeclaration.parent)&&Qc(Pt.valueDeclaration.parent.right)?Ei(Pt,jm(Pt,za),ql):ma(Pt,jm(Pt,za),ql)),(Pt.flags&1536&&(!Pu||Zt(Pt))||$d)&&Yn(Pt,za,ql),Pt.flags&64&&!(Pt.flags&32)&&rt(Pt,za,ql),Pt.flags&2097152&&Ei(Pt,jm(Pt,za),ql),Pt.flags&4&&Pt.escapedName==="export="&&xa(Pt),Pt.flags&8388608&&Pt.declarations)for(const iu of Pt.declarations){const Lp=hd(iu,iu.moduleSpecifier);Lp&&Ks(w.createExportDeclaration(void 0,iu.isTypeOnly,void 0,w.createStringLiteral(Kn(Lp,Ae))),0)}Cu?Ks(w.createExportAssignment(void 0,!1,w.createIdentifier(jm(Pt,za))),0):bd&&Ks(w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,jm(Pt,za),za)])),0)}function Ds(Pt){if(bt(Pt.declarations,zE))return;N.assertIsDefined(ct[ct.length-1]),y_(Vi(Pt.escapedName),Pt);const Dr=!!(Pt.flags&2097152)&&!bt(Pt.declarations,fi=>!!Vn(fi,Yl)||Sh(fi)||eu(fi)&&!Th(fi.moduleReference));ct[Dr?0:ct.length-1].set(Sa(Pt),Pt)}function Du(Pt){return $i(Pt)&&(Fp(Pt)||Yf(Pt))||ku(Pt)&&!A_(Pt)}function Ks(Pt,Dr){if(Rm(Pt)){let fi=0;const Kr=Ae.enclosingDeclaration&&($f(Ae.enclosingDeclaration)?Un(Ae.enclosingDeclaration):Ae.enclosingDeclaration);Dr&32&&Kr&&(Du(Kr)||Xl(Kr))&&vk(Pt)&&(fi|=32),Ut&&!(fi&32)&&(!Kr||!(Kr.flags&33554432))&&(y0(Pt)||Ll(Pt)||Tc(Pt)||Ac(Pt)||Xl(Pt))&&(fi|=128),Dr&2048&&(Ac(Pt)||md(Pt)||Tc(Pt))&&(fi|=2048),fi&&(Pt=w.replaceModifiers(Pt,fi|ud(Pt)))}Ur.push(Pt)}function v_(Pt,Dr,fi){var Kr;const ui=mOe(Pt),ns=Ki(Pt).typeParameters,ua=Wt(ns,Cu=>gt(Cu,Ae)),Ho=(Kr=Pt.declarations)==null?void 0:Kr.find($f),zs=aL(Ho?Ho.comment||Ho.parent.comment:void 0),ms=Ae.flags;Ae.flags|=8388608;const za=Ae.enclosingDeclaration;Ae.enclosingDeclaration=Ho;const Nu=Ho&&Ho.typeExpression&&o1(Ho.typeExpression)&&Wl(Ae,Ho.typeExpression.type,Ds,kn)||d(ui,Ae);Ks(v0(w.createTypeAliasDeclaration(void 0,jm(Pt,Dr),ua,Nu),zs?[{kind:3,text:`* + * `+zs.replace(/\n/g,` + * `)+` + `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),fi),Ae.flags=ms,Ae.enclosingDeclaration=za}function rt(Pt,Dr,fi){const Kr=Bf(Pt),ui=Lr(Pt),ns=Wt(ui,bd=>gt(bd,Ae)),ua=Cp(Kr),Ho=Ne(ua)?ya(ua):void 0,zs=Do(gs(Kr),bd=>Cc(bd,Ho)),ms=Uh(0,Kr,Ho,179),za=Uh(1,Kr,Ho,180),Nu=yv(Kr,Ho),Cu=Ne(ua)?[w.createHeritageClause(96,eo(ua,bd=>sA(bd,111551)))]:void 0;Ks(w.createInterfaceDeclaration(void 0,jm(Pt,Dr),ns,Cu,[...Nu,...za,...ms,...zs]),fi)}function St(Pt){let Dr=zo(Dp(Pt).values());const fi=rs(Pt);if(fi!==Pt){const Kr=new Set(Dr);for(const ui of Dp(fi).values())Au(Vl(ui))&111551||Kr.add(ui);Dr=zo(Kr)}return mn(Dr,Kr=>Bi(Kr)&&Zp(Kr.escapedName,99))}function Zt(Pt){return Jn(St(Pt),Dr=>!(Au(Vl(Dr))&111551))}function Yn(Pt,Dr,fi){const Kr=St(Pt),ui=P2(Kr,Ho=>Ho.parent&&Ho.parent===Pt?"real":"merged"),ns=ui.get("real")||et,ua=ui.get("merged")||et;if(Ne(ns)){const Ho=jm(Pt,Dr);Hr(ns,Ho,fi,!!(Pt.flags&67108880))}if(Ne(ua)){const Ho=Un(Ae.enclosingDeclaration),zs=jm(Pt,Dr),ms=w.createModuleBlock([w.createExportDeclaration(void 0,!1,w.createNamedExports(eo(mn(ua,za=>za.escapedName!=="export="),za=>{var Nu,Cu;const bd=Vi(za.escapedName),ql=jm(za,bd),Pu=za.declarations&&wm(za);if(Ho&&(Pu?Ho!==Un(Pu):!bt(za.declarations,Lp=>Un(Lp)===Ho))){(Cu=(Nu=Ae.tracker)==null?void 0:Nu.reportNonlocalAugmentation)==null||Cu.call(Nu,Ho,Pt,za);return}const $d=Pu&&Up(Pu,!0);Ds($d||za);const iu=$d?jm($d,Vi($d.escapedName)):ql;return w.createExportSpecifier(!1,bd===iu?void 0:iu,bd)})))]);Ks(w.createModuleDeclaration(void 0,w.createIdentifier(zs),ms,32),0)}}function Rr(Pt,Dr,fi){Ks(w.createEnumDeclaration(w.createModifiersFromModifierFlags(Rye(Pt)?4096:0),jm(Pt,Dr),Wt(mn(gs(dr(Pt)),Kr=>!!(Kr.flags&8)),Kr=>{const ui=Kr.declarations&&Kr.declarations[0]&&i1(Kr.declarations[0])?rbe(Kr.declarations[0]):void 0;return w.createEnumMember(Vi(Kr.escapedName),ui===void 0?void 0:typeof ui=="string"?w.createStringLiteral(ui):w.createNumericLiteral(ui))})),fi)}function An(Pt,Dr,fi,Kr){const ui=Xo(Pt,0);for(const ns of ui){const ua=be(ns,262,Ae,{name:w.createIdentifier(fi),privateSymbolVisitor:Ds,bundledImports:kn});Ks(dt(ua,gr(ns)),Kr)}if(!(Dr.flags&1536&&Dr.exports&&Dr.exports.size)){const ns=mn(gs(Pt),Bi);Hr(ns,fi,Kr,!0)}}function gr(Pt){if(Pt.declaration&&Pt.declaration.parent){if(mr(Pt.declaration.parent)&&zl(Pt.declaration.parent)===5)return Pt.declaration.parent;if(Oi(Pt.declaration.parent)&&Pt.declaration.parent.parent)return Pt.declaration.parent.parent}return Pt.declaration}function Hr(Pt,Dr,fi,Kr){if(Ne(Pt)){const ns=P2(Pt,ql=>!Ne(ql.declarations)||bt(ql.declarations,Pu=>Un(Pu)===Un(Ae.enclosingDeclaration))?"local":"remote").get("local")||et;let ua=Ah.createModuleDeclaration(void 0,w.createIdentifier(Dr),w.createModuleBlock([]),32);Ha(ua,Ii),ua.locals=ca(Pt),ua.symbol=Pt[0].parent;const Ho=Ur;Ur=[];const zs=Ut;Ut=!1;const ms={...Ae,enclosingDeclaration:ua},za=Ae;Ae=ms,Ea(ca(ns),Kr,!0),Ae=za,Ut=zs;const Nu=Ur;Ur=Ho;const Cu=Wt(Nu,ql=>kl(ql)&&!ql.isExportEquals&&Ve(ql.expression)?w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,ql.expression,w.createIdentifier("default"))])):ql),bd=Jn(Cu,ql=>Qr(ql,32))?Wt(Cu,fo):Cu;ua=w.updateModuleDeclaration(ua,ua.modifiers,ua.name,w.createModuleBlock(bd)),Ks(ua,fi)}}function Bi(Pt){return!!(Pt.flags&2887656)||!(Pt.flags&4194304||Pt.escapedName==="prototype"||Pt.valueDeclaration&&aa(Pt.valueDeclaration)&&di(Pt.valueDeclaration.parent))}function Fo(Pt){const Dr=eo(Pt,fi=>{const Kr=Ae.enclosingDeclaration;Ae.enclosingDeclaration=fi;let ui=fi.expression;if(Bl(ui)){if(Ve(ui)&&Er(ui)==="")return ns(void 0);let ua;if({introducesError:ua,node:ui}=kd(ui,Ae,Ds),ua)return ns(void 0)}return ns(w.createExpressionWithTypeArguments(ui,Wt(fi.typeArguments,ua=>Wl(Ae,ua,Ds,kn)||d(Ti(ua),Ae))));function ns(ua){return Ae.enclosingDeclaration=Kr,ua}});if(Dr.length===Pt.length)return Dr}function ma(Pt,Dr,fi){var Kr,ui;const ns=(Kr=Pt.declarations)==null?void 0:Kr.find(di),ua=Ae.enclosingDeclaration;Ae.enclosingDeclaration=ns||ua;const Ho=Lr(Pt),zs=Wt(Ho,rh=>gt(rh,Ae)),ms=Jp(Bf(Pt)),za=Cp(ms),Nu=ns&&vR(ns),Cu=Nu&&Fo(Nu)||eo(u_(ms),f2),bd=dr(Pt),ql=!!((ui=bd.symbol)!=null&&ui.valueDeclaration)&&di(bd.symbol.valueDeclaration),Pu=ql?Np(bd):j,$d=[...Ne(za)?[w.createHeritageClause(96,Wt(za,rh=>aA(rh,Pu,Dr)))]:[],...Ne(Cu)?[w.createHeritageClause(119,Cu)]:[]],iu=Tgt(ms,za,gs(ms)),Lp=mn(iu,rh=>{const m2=rh.valueDeclaration;return!!m2&&!(ad(m2)&&qi(m2.name))}),nh=bt(iu,rh=>{const m2=rh.valueDeclaration;return!!m2&&ad(m2)&&qi(m2.name)})?[w.createPropertyDeclaration(void 0,w.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:et,Ub=Do(Lp,rh=>pi(rh,!1,za[0])),Hb=Do(mn(gs(bd),rh=>!(rh.flags&4194304)&&rh.escapedName!=="prototype"&&!Bi(rh)),rh=>pi(rh,!0,Pu)),Byt=!ql&&!!Pt.valueDeclaration&&lr(Pt.valueDeclaration)&&!bt(Xo(bd,1))?[w.createConstructorDeclaration(w.createModifiersFromModifierFlags(2),[],void 0)]:Uh(1,bd,Pu,176),Gyt=yv(ms,za[0]);Ae.enclosingDeclaration=ua,Ks(dt(w.createClassDeclaration(void 0,Dr,zs,$d,[...Gyt,...Hb,...Byt,...Ub,...nh]),Pt.declarations&&mn(Pt.declarations,rh=>Ac(rh)||Qc(rh))[0]),fi)}function _a(Pt){return Ht(Pt,Dr=>{if(tp(Dr)||Ku(Dr))return Er(Dr.propertyName||Dr.name);if(mr(Dr)||kl(Dr)){const fi=kl(Dr)?Dr.expression:Dr.right;if(Fr(fi))return Er(fi.name)}if(fb(Dr)){const fi=Lo(Dr);if(fi&&Ve(fi))return Er(fi)}})}function Ei(Pt,Dr,fi){var Kr,ui,ns,ua,Ho,zs;const ms=wm(Pt);if(!ms)return N.fail();const za=rs(Up(ms,!0));if(!za)return;let Nu=vC(za)&&_a(Pt.declarations)||Vi(za.escapedName);Nu==="export="&&Y&&(Nu="default");const Cu=jm(za,Nu);switch(Ds(za),ms.kind){case 208:if(((ui=(Kr=ms.parent)==null?void 0:Kr.parent)==null?void 0:ui.kind)===260){const Pu=Kn(za.parent||za,Ae),{propertyName:$d}=ms;Ks(w.createImportDeclaration(void 0,w.createImportClause(!1,void 0,w.createNamedImports([w.createImportSpecifier(!1,$d&&Ve($d)?w.createIdentifier(Er($d)):void 0,w.createIdentifier(Dr))])),w.createStringLiteral(Pu),void 0),0);break}N.failBadSyntaxKind(((ns=ms.parent)==null?void 0:ns.parent)||ms,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((Ho=(ua=ms.parent)==null?void 0:ua.parent)==null?void 0:Ho.kind)===226&&Oo(Vi(Pt.escapedName),Cu);break;case 260:if(Fr(ms.initializer)){const Pu=ms.initializer,$d=w.createUniqueName(Dr),iu=Kn(za.parent||za,Ae);Ks(w.createImportEqualsDeclaration(void 0,!1,$d,w.createExternalModuleReference(w.createStringLiteral(iu))),0),Ks(w.createImportEqualsDeclaration(void 0,!1,w.createIdentifier(Dr),w.createQualifiedName($d,Pu.name)),fi);break}case 271:if(za.escapedName==="export="&&bt(za.declarations,Pu=>$i(Pu)&&Yf(Pu))){xa(Pt);break}const bd=!(za.flags&512)&&!Oi(ms);Ks(w.createImportEqualsDeclaration(void 0,!1,w.createIdentifier(Dr),bd?_o(za,Ae,-1,!1):w.createExternalModuleReference(w.createStringLiteral(Kn(za,Ae)))),bd?fi:0);break;case 270:Ks(w.createNamespaceExportDeclaration(Er(ms.name)),0);break;case 273:{const Pu=Kn(za.parent||za,Ae),$d=kn?w.createStringLiteral(Pu):ms.parent.moduleSpecifier;Ks(w.createImportDeclaration(void 0,w.createImportClause(!1,w.createIdentifier(Dr),void 0),$d,ms.parent.attributes),0);break}case 274:{const Pu=Kn(za.parent||za,Ae),$d=kn?w.createStringLiteral(Pu):ms.parent.parent.moduleSpecifier;Ks(w.createImportDeclaration(void 0,w.createImportClause(!1,void 0,w.createNamespaceImport(w.createIdentifier(Dr))),$d,ms.parent.attributes),0);break}case 280:Ks(w.createExportDeclaration(void 0,!1,w.createNamespaceExport(w.createIdentifier(Dr)),w.createStringLiteral(Kn(za,Ae))),0);break;case 276:{const Pu=Kn(za.parent||za,Ae),$d=kn?w.createStringLiteral(Pu):ms.parent.parent.parent.moduleSpecifier;Ks(w.createImportDeclaration(void 0,w.createImportClause(!1,void 0,w.createNamedImports([w.createImportSpecifier(!1,Dr!==Nu?w.createIdentifier(Nu):void 0,w.createIdentifier(Dr))])),$d,ms.parent.parent.parent.attributes),0);break}case 281:const ql=ms.parent.parent.moduleSpecifier;ql&&((zs=ms.propertyName)==null?void 0:zs.escapedText)==="default"&&(Nu="default"),Oo(Vi(Pt.escapedName),ql?Nu:Cu,ql&&ls(ql)?w.createStringLiteral(ql.text):void 0);break;case 277:xa(Pt);break;case 226:case 211:case 212:Pt.escapedName==="default"||Pt.escapedName==="export="?xa(Pt):Oo(Dr,Cu);break;default:return N.failBadSyntaxKind(ms,"Unhandled alias declaration kind in symbol serializer!")}}function Oo(Pt,Dr,fi){Ks(w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,Pt!==Dr?Dr:void 0,Pt)]),fi),0)}function xa(Pt){var Dr;if(Pt.flags&4194304)return!1;const fi=Vi(Pt.escapedName),Kr=fi==="export=",ns=Kr||fi==="default",ua=Pt.declarations&&wm(Pt),Ho=ua&&Up(ua,!0);if(Ho&&Ne(Ho.declarations)&&bt(Ho.declarations,zs=>Un(zs)===Un(Ii))){const zs=ua&&(kl(ua)||mr(ua)?Nj(ua):bie(ua)),ms=zs&&Bl(zs)?Wgt(zs):void 0,za=ms&&Hs(ms,-1,!0,!0,Ii);(za||Ho)&&Ds(za||Ho);const Nu=Ae.tracker.disableTrackSymbol;if(Ae.tracker.disableTrackSymbol=!0,ns)Ur.push(w.createExportAssignment(void 0,Kr,Nc(Ho,Ae,-1)));else if(ms===zs&&ms)Oo(fi,Er(ms));else if(zs&&Qc(zs))Oo(fi,jm(Ho,El(Ho)));else{const Cu=y_(fi,Pt);Ks(w.createImportEqualsDeclaration(void 0,!1,w.createIdentifier(Cu),_o(Ho,Ae,-1,!1)),0),Oo(fi,Cu)}return Ae.tracker.disableTrackSymbol=Nu,!0}else{const zs=y_(fi,Pt),ms=Kp(dr(rs(Pt)));if(Ns(ms,Pt))An(ms,Pt,zs,ns?0:32);else{const za=((Dr=Ae.enclosingDeclaration)==null?void 0:Dr.kind)===267&&(!(Pt.flags&98304)||Pt.flags&65536)?1:2,Nu=w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(zs,void 0,Ss(Ae,ms,Pt,Ii,Ds,kn))],za));Ks(Nu,Ho&&Ho.flags&4&&Ho.escapedName==="export="?128:fi===zs?32:0)}return ns?(Ur.push(w.createExportAssignment(void 0,Kr,w.createIdentifier(zs))),!0):fi!==zs?(Oo(fi,zs),!0):!1}}function Ns(Pt,Dr){const fi=Un(Ae.enclosingDeclaration);return Wr(Pt)&48&&!Ne(gd(Pt))&&!W1(Pt)&&!!(Ne(mn(gs(Pt),Bi))||Ne(Xo(Pt,0)))&&!Ne(Xo(Pt,1))&&!br(Dr,Ii)&&!(Pt.symbol&&bt(Pt.symbol.declarations,Kr=>Un(Kr)!==fi))&&!bt(gs(Pt),Kr=>b8(Kr.escapedName))&&!bt(gs(Pt),Kr=>bt(Kr.declarations,ui=>Un(ui)!==fi))&&Jn(gs(Pt),Kr=>Zp(El(Kr),se)?Kr.flags&98304?Db(Kr)===F1(Kr):!0:!1)}function fs(Pt,Dr,fi){return function(ui,ns,ua){var Ho,zs,ms,za,Nu;const Cu=xf(ui),bd=!!(Cu&2);if(ns&&ui.flags&2887656)return[];if(ui.flags&4194304||ui.escapedName==="constructor"||ua&&va(ua,ui.escapedName)&&g_(va(ua,ui.escapedName))===g_(ui)&&(ui.flags&16777216)===(va(ua,ui.escapedName).flags&16777216)&&fv(dr(ui),Ke(ua,ui.escapedName)))return[];const ql=Cu&-1025|(ns?256:0),Pu=On(ui,Ae),$d=(Ho=ui.declarations)==null?void 0:Ho.find(Jm(qo,Cy,Oi,gp,mr,Fr));if(ui.flags&98304&&fi){const iu=[];if(ui.flags&65536){const Lp=ui.declarations&&Xe(ui.declarations,nh=>{if(nh.kind===178)return nh;if(sa(nh)&&SS(nh))return Xe(nh.arguments[2].properties,Ub=>{const Hb=Lo(Ub);if(Hb&&Ve(Hb)&&Er(Hb)==="set")return Ub})});N.assert(!!Lp);const bx=Bs(Lp)?dm(Lp).parameters[0]:void 0;iu.push(dt(w.createSetAccessorDeclaration(w.createModifiersFromModifierFlags(ql),Pu,[w.createParameterDeclaration(void 0,void 0,bx?cn(bx,Dt(bx),Ae):"value",void 0,bd?void 0:Ss(Ae,dr(ui),ui,Ii,Ds,kn))],void 0),((zs=ui.declarations)==null?void 0:zs.find(Mv))||$d))}if(ui.flags&32768){const Lp=Cu&2;iu.push(dt(w.createGetAccessorDeclaration(w.createModifiersFromModifierFlags(ql),Pu,[],Lp?void 0:Ss(Ae,dr(ui),ui,Ii,Ds,kn),void 0),((ms=ui.declarations)==null?void 0:ms.find(My))||$d))}return iu}else if(ui.flags&98311)return dt(Pt(w.createModifiersFromModifierFlags((g_(ui)?8:0)|ql),Pu,ui.flags&16777216?w.createToken(58):void 0,bd?void 0:Ss(Ae,F1(ui),ui,Ii,Ds,kn),void 0),((za=ui.declarations)==null?void 0:za.find(Jm(qo,Oi)))||$d);if(ui.flags&8208){const iu=dr(ui),Lp=Xo(iu,0);if(ql&2)return dt(Pt(w.createModifiersFromModifierFlags((g_(ui)?8:0)|ql),Pu,ui.flags&16777216?w.createToken(58):void 0,void 0,void 0),((Nu=ui.declarations)==null?void 0:Nu.find(Bs))||Lp[0]&&Lp[0].declaration||ui.declarations&&ui.declarations[0]);const bx=[];for(const nh of Lp){const Ub=be(nh,Dr,Ae,{name:Pu,questionToken:ui.flags&16777216?w.createToken(58):void 0,modifiers:ql?w.createModifiersFromModifierFlags(ql):void 0}),Hb=nh.declaration&&VL(nh.declaration.parent)?nh.declaration.parent:nh.declaration;bx.push(dt(Ub,Hb))}return bx}return N.fail(`Unhandled class member kind! ${ui.__debugFlags||ui.flags}`)}}function Cc(Pt,Dr){return Ai(Pt,!1,Dr)}function Uh(Pt,Dr,fi,Kr){const ui=Xo(Dr,Pt);if(Pt===1){if(!fi&&Jn(ui,Ho=>Ne(Ho.parameters)===0))return[];if(fi){const Ho=Xo(fi,1);if(!Ne(Ho)&&Jn(ui,zs=>Ne(zs.parameters)===0))return[];if(Ho.length===ui.length){let zs=!1;for(let ms=0;ms<Ho.length;ms++)if(!x9(ui[ms],Ho[ms],!1,!1,!0,L8)){zs=!0;break}if(!zs)return[]}}let ua=0;for(const Ho of ui)Ho.declaration&&(ua|=wA(Ho.declaration,6));if(ua)return[dt(w.createConstructorDeclaration(w.createModifiersFromModifierFlags(ua),[],void 0),ui[0].declaration)]}const ns=[];for(const ua of ui){const Ho=be(ua,Kr,Ae);ns.push(dt(Ho,ua.declaration))}return ns}function yv(Pt,Dr){const fi=[];for(const Kr of gd(Pt)){if(Dr){const ui=Sg(Dr,Kr.keyType);if(ui&&fv(Kr.type,ui.type))continue}fi.push(re(Kr,Ae,void 0))}return fi}function aA(Pt,Dr,fi){const Kr=sA(Pt,111551);if(Kr)return Kr;const ui=y_(`${fi}_base`),ns=w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(ui,void 0,d(Dr,Ae))],2));return Ks(ns,0),w.createExpressionWithTypeArguments(w.createIdentifier(ui),void 0)}function sA(Pt,Dr){let fi,Kr;if(Pt.target&&on(Pt.target.symbol,Ii,Dr)?(fi=Wt(Js(Pt),ui=>d(ui,Ae)),Kr=Nc(Pt.target.symbol,Ae,788968)):Pt.symbol&&on(Pt.symbol,Ii,Dr)&&(Kr=Nc(Pt.symbol,Ae,788968)),Kr)return w.createExpressionWithTypeArguments(Kr,fi)}function f2(Pt){const Dr=sA(Pt,788968);if(Dr)return Dr;if(Pt.symbol)return w.createExpressionWithTypeArguments(Nc(Pt.symbol,Ae,788968),void 0)}function y_(Pt,Dr){var fi,Kr;const ui=Dr?Sa(Dr):void 0;if(ui&&Ae.remappedSymbolNames.has(ui))return Ae.remappedSymbolNames.get(ui);Dr&&(Pt=yx(Dr,Pt));let ns=0;const ua=Pt;for(;(fi=Ae.usedSymbolNames)!=null&&fi.has(Pt);)ns++,Pt=`${ua}_${ns}`;return(Kr=Ae.usedSymbolNames)==null||Kr.add(Pt),ui&&Ae.remappedSymbolNames.set(ui,Pt),Pt}function yx(Pt,Dr){if(Dr==="default"||Dr==="__class"||Dr==="__function"){const fi=Ae.flags;Ae.flags|=16777216;const Kr=$0(Pt,Ae);Ae.flags=fi,Dr=Kr.length>0&&wL(Kr.charCodeAt(0))?Zf(Kr):Kr}return Dr==="default"?Dr="_default":Dr==="export="&&(Dr="_exports"),Dr=Zp(Dr,se)&&!LA(Dr)?Dr:"_"+Dr.replace(/[^a-zA-Z0-9]/g,"_"),Dr}function jm(Pt,Dr){const fi=Sa(Pt);return Ae.remappedSymbolNames.has(fi)?Ae.remappedSymbolNames.get(fi):(Dr=yx(Pt,Dr),Ae.remappedSymbolNames.set(fi,Dr),Dr)}}}function wh(n,a,c=16384,d){return d?_(d).getText():hC(_);function _(v){const x=w.createTypePredicateNode(n.kind===2||n.kind===3?w.createToken(131):void 0,n.kind===1||n.kind===3?w.createIdentifier(n.parameterName):w.createThisTypeNode(),n.type&&At.typeToTypeNode(n.type,a,kT(c)|70221824|512)),k=d1(),F=a&&Un(a);return k.writeNode(4,x,F,v),v}}function dN(n){const a=[];let c=0;for(let d=0;d<n.length;d++){const _=n[d];if(c|=_.flags,!(_.flags&98304)){if(_.flags&1568){const v=_.flags&512?Pi:vZ(_);if(v.flags&1048576){const x=v.types.length;if(d+x<=n.length&&yd(n[d+x-1])===yd(v.types[x-1])){a.push(v),d+=x-1;continue}}}a.push(_)}}return c&65536&&a.push(fe),c&32768&&a.push(Oe),a||n}function wT(n){return n===2?"private":n===4?"protected":"public"}function $z(n){if(n.symbol&&n.symbol.flags&2048&&n.symbol.declarations){const a=XL(n.symbol.declarations[0].parent);if(xm(a))return Ir(a)}}function Tb(n){return n&&n.parent&&n.parent.kind===268&&PE(n.parent.parent)}function h8(n){return n.kind===312||ku(n)}function g8(n,a){const c=Ki(n).nameType;if(c){if(c.flags&384){const d=""+c.value;return!Zp(d,os(V))&&!og(d)?`"${tg(d,34)}"`:og(d)&&uo(d,"-")?`[${d}]`:d}if(c.flags&8192)return`[${$0(c.symbol,a)}]`}}function $0(n,a){var c;if((c=a==null?void 0:a.remappedSymbolReferences)!=null&&c.has(Sa(n))&&(n=a.remappedSymbolReferences.get(Sa(n))),a&&n.escapedName==="default"&&!(a.flags&16384)&&(!(a.flags&16777216)||!n.declarations||a.enclosingDeclaration&&Vn(n.declarations[0],h8)!==Vn(a.enclosingDeclaration,h8)))return"default";if(n.declarations&&n.declarations.length){let _=Ht(n.declarations,x=>Lo(x)?x:void 0);const v=_&&Lo(_);if(_&&v){if(sa(_)&&SS(_))return El(n);if(Za(v)&&!(xl(n)&4096)){const x=Ki(n).nameType;if(x&&x.flags&384){const k=g8(n,a);if(k!==void 0)return k}}return xs(v)}if(_||(_=n.declarations[0]),_.parent&&_.parent.kind===260)return xs(_.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)"}}const d=g8(n,a);return d!==void 0?d:El(n)}function l_(n){if(n){const c=Zr(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&&$i(n.parent.parent.parent));case 208:return l_(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(PE(n))return!0;const c=$(n);return!(ute(n)&32)&&!(n.kind!==271&&c.kind!==312&&c.flags&33554432)?Ch(c):l_(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 l_(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 LM(n,a){let c;n.parent&&n.parent.kind===277?c=yl(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===281&&(c=H0(n.parent,2998271));let d,_;return c&&(_=new Set,_.add(Sa(c)),v(c.declarations)),d;function v(x){Xe(x,k=>{const F=bT(k)||k;if(a?Zr(k).isVisible=!0:(d=d||[],Ef(d,F)),uR(k)){const H=k.moduleReference,re=Gp(H),be=yl(k,re.escapedText,901119,void 0,void 0,!1);be&&_&&Xb(_,Sa(be))&&v(be.declarations)}})}}function Oh(n,a){const c=ax(n,a);if(c>=0){const{length:d}=fu;for(let _=c;_<d;_++)Yg[_]=!1;return!1}return fu.push(n),Yg.push(!0),O0.push(a),!0}function ax(n,a){for(let c=fu.length-1;c>=zI;c--){if(v8(fu[c],O0[c]))return-1;if(fu[c]===n&&O0[c]===a)return c}return-1}function v8(n,a){switch(a){case 0:return!!Ki(n).type;case 5:return!!Zr(n).resolvedEnumType;case 2:return!!Ki(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!!Ki(n).writeType;case 9:return Zr(n).parameterInitializerContainsUndefined!==void 0}return N.assertNever(a)}function K_(){return fu.pop(),O0.pop(),Yg.pop()}function $(n){return Vn(R_(n),a=>{switch(a.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function xe(n){const a=Zs(Cd(n));return a.typeParameters?uy(a,Wt(a.typeParameters,c=>j)):a}function Ke(n,a){const c=va(n,a);return c?dr(c):void 0}function xt(n,a){var c;let d;return Ke(n,a)||(d=(c=cx(n,a))==null?void 0:c.type)&&lp(d,!0,!0)}function Nt(n){return n&&(n.flags&1)!==0}function Jt(n){return n===_t||!!(n.flags&1&&n.aliasSymbol)}function zr(n,a){if(a!==0)return OT(n,!1,a);const c=Ir(n);return c&&Ki(c).type||OT(n,!1,a)}function Fi(n,a,c){if(n=dc(n,F=>!(F.flags&98304)),n.flags&131072)return Ca;if(n.flags&1048576)return dl(n,F=>Fi(F,a,c));let d=ei(Wt(a,py));const _=[],v=[];for(const F of gs(n)){const H=TN(F,8576);!ba(H,d)&&!(xf(F)&6)&&OZ(F)?_.push(F):v.push(H)}if(HT(n)||qT(d)){if(v.length&&(d=ei([d,...v])),d.flags&131072)return n;const F=Hlt();return F?EN(F,[n,d]):_t}const x=ca();for(const F of _)x.set(F.escapedName,Bge(F,!1));const k=Ls(c,x,et,et,gd(n));return k.objectFlags|=4194304,k}function Ni(n){return!!(n.flags&465829888)&&Cl(Gu(n)||hn,32768)}function hi(n){const a=Gm(n,Ni)?dl(n,c=>c.flags&465829888?uv(c):c):n;return mm(a,524288)}function Xi(n,a){const c=ds(n);return c?Vb(c,a):a}function ds(n){const a=Rs(n);if(a&&qL(a)&&a.flowNode){const c=es(n);if(c){const d=dt(Ah.createStringLiteral(c),n),_=Zd(a)?a:Ah.createParenthesizedExpression(a),v=dt(Ah.createElementAccessExpression(_,d),n);return Ha(d,v),Ha(v,n),_!==a&&Ha(_,v),v.flowNode=a.flowNode,v}}}function Rs(n){const a=n.parent.parent;switch(a.kind){case 208:case 303:return ds(a);case 209:return ds(n.parent);case 260:return a.initializer;case 226:return a.right}}function es(n){const a=n.parent;return n.kind===208&&a.kind===206?zf(n.propertyName||n.name):n.kind===303||n.kind===304?zf(n.name):""+a.elements.indexOf(n)}function zf(n){const a=py(n);return a.flags&384?""+a.value:void 0}function X_(n){const a=n.dotDotDotToken?32:0,c=zr(n.parent.parent,a);return c&&bg(n,c,!1)}function bg(n,a,c){if(Nt(a))return a;const d=n.parent;X&&n.flags&33554432&&zE(n)?a=hv(a):X&&d.parent.initializer&&!fm(Y6e(d.parent.initializer),65536)&&(a=mm(a,524288));let _;if(d.kind===206)if(n.dotDotDotToken){if(a=f_(a),a.flags&2||!G9(a))return qe(n,f.Rest_types_may_only_be_created_from_object_types),_t;const v=[];for(const x of d.elements)x.dotDotDotToken||v.push(x.propertyName||x.name);_=Fi(a,v,n.symbol)}else{const v=n.propertyName||n.name,x=py(v),k=Pp(a,x,32,v);_=Xi(n,k)}else{const v=hy(65|(n.dotDotDotToken?0:128),a,Oe,d),x=d.elements.indexOf(n);if(n.dotDotDotToken){const k=dl(a,F=>F.flags&58982400?uv(F):F);_=cp(k,Wa)?dl(k,F=>UM(F,x)):Vu(v)}else if(my(a)){const k=m_(x),F=32|(c||t2(n)?16:0),H=kb(a,k,F,n.name)||_t;_=Xi(n,H)}else _=v}return n.initializer?yu(Hx(n))?X&&!fm(r2(n,0),16777216)?hi(_):_:Gee(n,ei([hi(_),r2(n,0)],2)):_}function ov(n){const a=o0(n);if(a)return Ti(a)}function av(n){const a=hs(n,!0);return a.kind===106||a.kind===80&&Bm(a)===je}function Ab(n){const a=hs(n,!0);return a.kind===209&&a.elements.length===0}function lp(n,a=!1,c=!0){return X&&c?Bb(n,a):n}function OT(n,a,c){if(Oi(n)&&n.parent.parent.kind===249){const x=Y_(eye(mo(n.parent.parent.expression,c)));return x.flags&4456448?L8e(x):ke}if(Oi(n)&&n.parent.parent.kind===250){const x=n.parent.parent;return fB(x)||j}if(ta(n.parent))return X_(n);const d=qo(n)&&!D_(n)||gp(n)||Aae(n),_=a&&rP(n),v=ro(n);if(ZV(n))return v?Nt(v)||v===hn?v:_t:ve?hn:j;if(v)return lp(v,d,_);if((de||lr(n))&&Oi(n)&&!ta(n.name)&&!(ute(n)&32)&&!(n.flags&33554432)){if(!(eS(n)&6)&&(!n.initializer||av(n.initializer)))return it;if(n.initializer&&Ab(n.initializer))return Hc}if(Ao(n)){const x=n.parent;if(x.kind===178&&gN(x)){const H=pl(Ir(n.parent),177);if(H){const re=dm(H),be=cbe(x);return be&&n===be?(N.assert(!be.type),dr(re.thisParameter)):ps(re)}}const k=glt(x,n);if(k)return k;const F=n.symbol.escapedName==="this"?y4e(x):b4e(n);if(F)return lp(F,!1,_)}if(_S(n)&&n.initializer){if(lr(n)&&!Ao(n)){const k=Va(n,Ir(n),WL(n));if(k)return k}const x=Gee(n,r2(n,c));return lp(x,d,_)}if(qo(n)&&(de||lr(n)))if(mc(n)){const x=mn(n.parent.members,Rl),k=x.length?sv(n.symbol,x):ud(n)&128?XZ(n.symbol):void 0;return k&&lp(k,!0,_)}else{const x=rv(n.parent),k=x?Ib(n.symbol,x):ud(n)&128?XZ(n.symbol):void 0;return k&&lp(k,!0,_)}if(w_(n))return Gn;if(ta(n.name))return P(n.name,!1,!0)}function pN(n){if(n.valueDeclaration&&mr(n.valueDeclaration)){const a=Ki(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!wM(n)&&Jn(n.declarations,c=>mr(c)&&bee(c)&&(c.left.kind!==212||ef(c.left.argumentExpression))&&!uc(void 0,c,n,c))),a.isConstructorDeclaredProperty}return!1}function kM(n){const a=n.valueDeclaration;return a&&qo(a)&&!yu(a)&&!a.initializer&&(de||lr(a))}function wM(n){if(n.declarations)for(const a of n.declarations){const c=Fd(a,!1,!1);if(c&&(c.kind===176||eh(c)))return c}}function Q0(n){const a=Un(n.declarations[0]),c=Vi(n.escapedName),d=n.declarations.every(v=>lr(v)&&ws(v)&&Zh(v.expression)),_=d?w.createPropertyAccessExpression(w.createPropertyAccessExpression(w.createIdentifier("module"),w.createIdentifier("exports")),c):w.createPropertyAccessExpression(w.createIdentifier("exports"),c);return d&&Ha(_.expression.expression,_.expression),Ha(_.expression,_),Ha(_,a),_.flowNode=a.endFlowNode,Vb(_,it,Oe)}function sv(n,a){const c=uo(n.escapedName,"__#")?w.createPrivateIdentifier(n.escapedName.split("@")[1]):Vi(n.escapedName);for(const d of a){const _=w.createPropertyAccessExpression(w.createThis(),c);Ha(_.expression,_),Ha(_,d),_.flowNode=d.returnFlowNode;const v=fN(_,n);if(de&&(v===it||v===Hc)&&qe(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,Si(n),Hn(v)),!cp(v,H9))return r6(v)}}function Ib(n,a){const c=uo(n.escapedName,"__#")?w.createPrivateIdentifier(n.escapedName.split("@")[1]):Vi(n.escapedName),d=w.createPropertyAccessExpression(w.createThis(),c);Ha(d.expression,d),Ha(d,a),d.flowNode=a.returnFlowNode;const _=fN(d,n);return de&&(_===it||_===Hc)&&qe(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,Si(n),Hn(_)),cp(_,H9)?void 0:r6(_)}function fN(n,a){const c=(a==null?void 0:a.valueDeclaration)&&(!kM(a)||ud(a.valueDeclaration)&128)&&XZ(a)||Oe;return Vb(n,it,c)}function qp(n,a){const c=DA(n.valueDeclaration);if(c){const k=lr(c)?i0(c):void 0;return k&&k.typeExpression?Ti(k.typeExpression):n.valueDeclaration&&Va(n.valueDeclaration,n,c)||q1(nc(c))}let d,_=!1,v=!1;if(pN(n)&&(d=Ib(n,wM(n))),!d){let k;if(n.declarations){let F;for(const H of n.declarations){const re=mr(H)||sa(H)?H:ws(H)?mr(H.parent)?H.parent:H:void 0;if(!re)continue;const be=ws(re)?GL(re):zl(re);(be===4||mr(re)&&bee(re,be))&&(OM(re)?_=!0:v=!0),sa(re)||(F=uc(F,re,n,H)),F||(k||(k=[])).push(mr(re)||sa(re)?Z0(n,a,re,be):Vr)}d=F}if(!d){if(!Ne(k))return _t;let F=_&&n.declarations?xb(k,n.declarations):void 0;if(v){const re=XZ(n);re&&((F||(F=[])).push(re),_=!0)}const H=bt(F,re=>!!(re.flags&-98305))?F:k;d=ei(H)}}const x=Kp(lp(d,!1,v&&!_));return n.valueDeclaration&&lr(n.valueDeclaration)&&dc(x,k=>!!(k.flags&-98305))===Vr?(uE(n.valueDeclaration,j),j):x}function Va(n,a,c){var d,_;if(!lr(n)||!c||!La(c)||c.properties.length)return;const v=ca();for(;mr(n)||Fr(n);){const F=_f(n);(d=F==null?void 0:F.exports)!=null&&d.size&&a_(v,F.exports),n=mr(n)?n.parent:n.parent.parent}const x=_f(n);(_=x==null?void 0:x.exports)!=null&&_.size&&a_(v,x.exports);const k=Ls(a,v,et,et,et);return k.objectFlags|=4096,k}function uc(n,a,c,d){var _;const v=yu(a.parent);if(v){const x=Kp(Ti(v));if(n)!Jt(n)&&!Jt(x)&&!fv(n,x)&&AWe(void 0,n,d,x);else return x}if((_=c.parent)!=null&&_.valueDeclaration){const x=M1(c.parent);if(x.valueDeclaration){const k=yu(x.valueDeclaration);if(k){const F=va(Ti(k),c.escapedName);if(F)return Db(F)}}}return n}function Z0(n,a,c,d){if(sa(c)){if(a)return dr(a);const x=nc(c.arguments[2]),k=Ke(x,"value");if(k)return k;const F=Ke(x,"get");if(F){const re=rA(F);if(re)return ps(re)}const H=Ke(x,"set");if(H){const re=rA(H);if(re)return Eye(re)}return j}if(sx(c.left,c.right))return j;const _=d===1&&(Fr(c.left)||$s(c.left))&&(Zh(c.left.expression)||Ve(c.left.expression)&&ES(c.left.expression)),v=a?dr(a):_?yd(nc(c.right)):q1(nc(c.right));if(v.flags&524288&&d===2&&n.escapedName==="export="){const x=p_(v),k=ca();x4(x.members,k);const F=k.size;a&&!a.exports&&(a.exports=ca()),(a||n).exports.forEach((re,be)=>{var ge;const Je=k.get(be);if(Je&&Je!==re&&!(re.flags&2097152))if(re.flags&111551&&Je.flags&111551){if(re.valueDeclaration&&Je.valueDeclaration&&Un(re.valueDeclaration)!==Un(Je.valueDeclaration)){const Dt=Vi(re.escapedName),an=((ge=ri(Je.valueDeclaration,ad))==null?void 0:ge.name)||Je.valueDeclaration;Ma(qe(re.valueDeclaration,f.Duplicate_identifier_0,Dt),kr(an,f._0_was_also_declared_here,Dt)),Ma(qe(an,f.Duplicate_identifier_0,Dt),kr(re.valueDeclaration,f._0_was_also_declared_here,Dt))}const gt=Ka(re.flags|Je.flags,be);gt.links.type=ei([dr(re),dr(Je)]),gt.valueDeclaration=Je.valueDeclaration,gt.declarations=So(Je.declarations,re.declarations),k.set(be,gt)}else k.set(be,lm(re,Je));else k.set(be,re)});const H=Ls(F!==k.size?void 0:x.symbol,k,x.callSignatures,x.constructSignatures,x.indexInfos);if(F===k.size&&(v.aliasSymbol&&(H.aliasSymbol=v.aliasSymbol,H.aliasTypeArguments=v.aliasTypeArguments),Wr(v)&4)){H.aliasSymbol=v.symbol;const re=Js(v);H.aliasTypeArguments=Ne(re)?re:void 0}return H.objectFlags|=Wr(v)&4096,H.symbol&&H.symbol.flags&32&&v===Bf(H.symbol)&&(H.objectFlags|=16777216),H}return $Z(v)?(uE(c,ec),ec):v}function sx(n,a){return Fr(n)&&n.expression.kind===110&&RP(a,c=>Iu(n,c))}function OM(n){const a=Fd(n,!1,!1);return a.kind===176||a.kind===262||a.kind===218&&!VL(a.parent)}function xb(n,a){return N.assert(n.length===a.length),n.filter((c,d)=>{const _=a[d],v=mr(_)?_:mr(_.parent)?_.parent:void 0;return v&&OM(v)})}function WM(n,a,c){if(n.initializer){const d=ta(n.name)?P(n.name,!0,!1):hn;return lp(Gee(n,r2(n,c?0:1,d)))}return ta(n.name)?P(n.name,a,c):(c&&!yr(n)&&uE(n,j),a?yn:j)}function or(n,a,c){const d=ca();let _,v=131200;Xe(n.elements,k=>{const F=k.propertyName||k.name;if(k.dotDotDotToken){_=Bh(ke,j,!1);return}const H=py(F);if(!tm(H)){v|=512;return}const re=nm(H),be=4|(k.initializer?16777216:0),ge=Ka(be,re);ge.links.type=WM(k,a,c),ge.links.bindingElement=k,d.set(ge.escapedName,ge)});const x=Ls(void 0,d,et,et,_?[_]:et);return x.objectFlags|=v,a&&(x.pattern=n,x.objectFlags|=131072),x}function E(n,a,c){const d=n.elements,_=el(d),v=_&&_.kind===208&&_.dotDotDotToken?_:void 0;if(d.length===0||d.length===1&&v)return se>=2?g8e(j):ec;const x=Wt(d,re=>Gc(re)?j:WM(re,a,c)),k=Yi(d,re=>!(re===v||Gc(re)||t2(re)),d.length-1)+1,F=Wt(d,(re,be)=>re===v?4:be>=k?2:1);let H=Gh(x,F);return a&&(H=QOe(H),H.pattern=n,H.objectFlags|=131072),H}function P(n,a=!1,c=!1){return n.kind===206?or(n,a,c):E(n,a,c)}function B(n,a){return Kt(OT(n,!0,0),n,a)}function ce(n){const a=Zr(n);if(!a.resolvedType){const c=Ka(4096,"__importAttributes"),d=ca();Xe(n.elements,v=>{const x=Ka(4,$3(v));x.parent=c,x.links.type=Fgt(v),x.links.target=x,d.set(x.escapedName,x)});const _=Ls(c,d,et,et,et);_.objectFlags|=262272,a.resolvedType=_}return a.resolvedType}function Qe(n){const a=_f(n),c=Llt(!1);return c&&a&&a===c}function Kt(n,a,c){return n?(n.flags&4096&&Qe(a.parent)&&(n=Gge(a)),c&&oee(a,n),n.flags&8192&&($a(a)||!a.type)&&n.symbol!==Ir(a)&&(n=xi),Kp(n)):(n=Ao(a)&&a.dotDotDotToken?ec:j,c&&(yr(a)||uE(a,n)),n)}function yr(n){const a=R_(n),c=a.kind===169?a.parent:a;return lB(c)}function ro(n){const a=yu(n);if(a)return Ti(a)}function qs(n){let a=n.valueDeclaration;return a?($a(a)&&(a=Hx(a)),Ao(a)?VZ(a.parent):!1):!1}function c_(n,a){const c=Ki(n);if(!c.type){const d=Rb(n,a);return!c.type&&!qs(n)&&!a&&(c.type=d),d}return c.type}function Rb(n,a){if(n.flags&4194304)return xe(n);if(n===vt)return j;if(n.flags&134217728&&n.valueDeclaration){const _=Ir(Un(n.valueDeclaration)),v=Ka(_.flags,"exports");v.declarations=_.declarations?_.declarations.slice():[],v.parent=n,v.links.target=_,_.valueDeclaration&&(v.valueDeclaration=_.valueDeclaration),_.members&&(v.members=new Map(_.members)),_.exports&&(v.exports=new Map(_.exports));const x=ca();return x.set("exports",v),Ls(n,x,et,et,et)}N.assertIsDefined(n.valueDeclaration);const c=n.valueDeclaration;if($i(c)&&Yf(c))return c.statements.length?Kp(q1(mo(c.statements[0].expression))):Ca;if(Cy(c))return tE(n);if(!Oh(n,0))return n.flags&512&&!(n.flags&67108864)?FM(n):$a(c)&&a===1?_t:mN(n);let d;if(c.kind===277)d=Kt(ro(c)||nc(c.expression),c);else if(mr(c)||lr(c)&&(sa(c)||(Fr(c)||n3(c))&&mr(c.parent)))d=qp(n);else if(Fr(c)||$s(c)||Ve(c)||ls(c)||hp(c)||Ac(c)||Tc(c)||Hl(c)&&!Tm(c)||yh(c)||$i(c)){if(n.flags&9136)return FM(n);d=mr(c.parent)?qp(n):ro(c)||j}else if(hc(c))d=ro(c)||Y3e(c);else if(w_(c))d=ro(c)||M4e(c);else if(np(c))d=ro(c)||o2(c.name,0);else if(Tm(c))d=ro(c)||$3e(c,0);else if(Ao(c)||qo(c)||gp(c)||Oi(c)||$a(c)||uC(c))d=B(c,!0);else if(y0(c))d=FM(n);else if(i1(c))d=_Z(n);else return N.fail("Unhandled declaration kind! "+N.formatSyntaxKind(c.kind)+" for "+N.formatSymbol(n));return K_()?d:n.flags&512&&!(n.flags&67108864)?FM(n):$a(c)&&a===1?d:mN(n)}function zm(n){if(n)switch(n.kind){case 177:return em(n);case 178:return Cie(n);case 172:return N.assert(D_(n)),yu(n)}}function eE(n){const a=zm(n);return a&&Ti(a)}function fZ(n){const a=cbe(n);return a&&a.symbol}function zhe(n){return oE(dm(n))}function tE(n){const a=Ki(n);if(!a.type){if(!Oh(n,0))return _t;const c=pl(n,177),d=pl(n,178),_=ri(pl(n,172),Wd);let v=c&&lr(c)&&ov(c)||eE(c)||eE(d)||eE(_)||c&&c.body&&Fee(c)||_&&_.initializer&&B(_,!0);v||(d&&!lB(d)?mu(de,d,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Si(n)):c&&!lB(c)?mu(de,c,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Si(n)):_&&!lB(_)&&mu(de,_,f.Member_0_implicitly_has_an_1_type,Si(n),"any"),v=j),K_()||(zm(c)?qe(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)):zm(d)||zm(_)?qe(d,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)):c&&de&&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,Si(n)),v=j),a.type=v}return a.type}function Qz(n){const a=Ki(n);if(!a.writeType){if(!Oh(n,8))return _t;const c=pl(n,178)??ri(pl(n,172),Wd);let d=eE(c);K_()||(zm(c)&&qe(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)),d=j),a.writeType=d||tE(n)}return a.writeType}function mZ(n){const a=Np(Bf(n));return a.flags&8650752?a:a.flags&2097152?In(a.types,c=>!!(c.flags&8650752)):void 0}function FM(n){let a=Ki(n);const c=a;if(!a.type){const d=n.valueDeclaration&&Oee(n.valueDeclaration,!1);if(d){const _=_ye(n,d);_&&(n=_,a=_.links)}c.type=a.type=Zz(n)}return a.type}function Zz(n){const a=n.valueDeclaration;if(n.flags&1536&&vC(n))return j;if(a&&(a.kind===226||ws(a)&&a.parent.kind===226))return qp(n);if(n.flags&512&&a&&$i(a)&&a.commonJsModuleIndicator){const d=Rp(n);if(d!==n){if(!Oh(n,0))return _t;const _=rs(n.exports.get("export=")),v=qp(_,_===d?void 0:d);return K_()?v:mN(n)}}const c=Wf(16,n);if(n.flags&32){const d=mZ(n);return d?ya([c,d]):c}else return X&&n.flags&16777216?Bb(c,!0):c}function _Z(n){const a=Ki(n);return a.type||(a.type=gOe(n))}function hZ(n){const a=Ki(n);if(!a.type){if(!Oh(n,0))return _t;const c=Oc(n),d=n.declarations&&Up(wm(n),!0),_=Ht(d==null?void 0:d.declarations,v=>kl(v)?ro(v):void 0);if(a.type=d!=null&&d.declarations&&tte(d.declarations)&&n.declarations.length?Q0(d):tte(n.declarations)?it:_||(Au(c)&111551?dr(c):_t),!K_())return mN(d??n),a.type=_t}return a.type}function Bhe(n){const a=Ki(n);return a.type||(a.type=lo(dr(a.target),a.mapper))}function Ghe(n){const a=Ki(n);return a.writeType||(a.writeType=lo(F1(a.target),a.mapper))}function mN(n){const a=n.valueDeclaration;if(a){if(yu(a))return qe(n.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)),_t;de&&(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,Si(n))}else if(n.flags&2097152){const c=wm(n);c&&qe(c,f.Circular_definition_of_import_alias_0,Si(n))}return j}function gZ(n){const a=Ki(n);return a.type||(N.assertIsDefined(a.deferralParent),N.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?ei(a.deferralConstituents):ya(a.deferralConstituents)),a.type}function e9(n){const a=Ki(n);return!a.writeType&&a.deferralWriteConstituents&&(N.assertIsDefined(a.deferralParent),N.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?ei(a.deferralWriteConstituents):ya(a.deferralWriteConstituents)),a.writeType}function F1(n){const a=xl(n);return n.flags&4?a&2?a&65536?e9(n)||gZ(n):n.links.writeType||n.links.type:Gb(dr(n),!!(n.flags&16777216)):n.flags&98304?a&1?Ghe(n):Qz(n):dr(n)}function dr(n,a){const c=xl(n);return c&65536?gZ(n):c&1?Bhe(n):c&262144?Qst(n):c&8192?pdt(n):n.flags&7?c_(n,a):n.flags&9136?FM(n):n.flags&8?_Z(n):n.flags&98304?tE(n):n.flags&2097152?hZ(n):_t}function Db(n){return Gb(dr(n),!!(n.flags&16777216))}function Nb(n,a){return n!==void 0&&a!==void 0&&(Wr(n)&4)!==0&&n.target===a}function ly(n){return Wr(n)&4?n.target:n}function _N(n,a){return c(n);function c(d){if(Wr(d)&7){const _=ly(d);return _===a||bt(Cp(_),c)}else if(d.flags&2097152)return bt(d.types,c);return!1}}function nE(n,a){for(const c of a)n=Rg(n,WT(Ir(c)));return n}function Pn(n,a){for(;;){if(n=n.parent,n&&mr(n)){const c=zl(n);if(c===6||c===3){const d=Ir(n.left);d&&d.parent&&!Vn(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:{const d=Pn(n,a);if(n.kind===200)return Rn(d,WT(Ir(n.typeParameter)));if(n.kind===194)return So(d,U8e(n));const _=nE(d,Dy(n)),v=a&&(n.kind===263||n.kind===231||n.kind===264||eh(n))&&Bf(Ir(n)).thisType;return v?Rn(_,v):_}case 348:const c=KL(n);c&&(n=c.valueDeclaration);break;case 327:{const d=Pn(n,a);return n.tags?nE(d,Do(n.tags,_=>om(_)?_.typeParameters:void 0)):d}}}}function Gr(n){var a;const 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;const _=d.initializer;return!!_&&(_.kind===218||_.kind===219)});return N.assert(!!c,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Pn(c)}function Lr(n){if(!n.declarations)return;let a;for(const c of n.declarations)(c.kind===264||c.kind===263||c.kind===231||eh(c)||HL(c))&&(a=nE(a,Dy(c)));return a}function zi(n){return So(Gr(n),Lr(n))}function Li(n){const a=Xo(n,1);if(a.length===1){const c=a[0];if(!c.typeParameters&&c.parameters.length===1&&Yu(c)){const d=Z9(c.parameters[0]);return Nt(d)||D9(d)===j}}return!1}function is(n){if(Xo(n,1).length>0)return!0;if(n.flags&8650752){const a=Gu(n);return!!a&&Li(a)}return!1}function As(n){const a=Wg(n.symbol);return a&&I_(a)}function td(n,a,c){const d=Ne(a),_=lr(c);return mn(Xo(n,1),v=>(_||d>=zh(v.typeParameters))&&d<=Ne(v.typeParameters))}function Wh(n,a,c){const d=td(n,a,c),_=Wt(a,Ti);return Zo(d,v=>bt(v.typeParameters)?A8(v,_,lr(c)):v)}function Np(n){if(!n.resolvedBaseConstructorType){const a=Wg(n.symbol),c=a&&I_(a),d=As(n);if(!d)return n.resolvedBaseConstructorType=Oe;if(!Oh(n,1))return _t;const _=mo(d.expression);if(c&&d!==c&&(N.assert(!c.typeArguments),mo(c.expression)),_.flags&2621440&&p_(_),!K_())return qe(n.symbol.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Si(n.symbol)),n.resolvedBaseConstructorType=_t;if(!(_.flags&1)&&_!==Be&&!is(_)){const v=qe(d.expression,f.Type_0_is_not_a_constructor_function_type,Hn(_));if(_.flags&262144){const x=GM(_);let k=hn;if(x){const F=Xo(x,1);F[0]&&(k=ps(F[0]))}_.symbol.declarations&&Ma(v,kr(_.symbol.declarations[0],f.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Si(_.symbol),Hn(k)))}return n.resolvedBaseConstructorType=_t}n.resolvedBaseConstructorType=_}return n.resolvedBaseConstructorType}function u_(n){let a=et;if(n.symbol.declarations)for(const c of n.symbol.declarations){const d=vR(c);if(d)for(const _ of d){const v=Ti(_);Jt(v)||(a===et?a=[v]:a.push(v))}}return a}function lv(n,a){qe(n,f.Type_0_recursively_references_itself_as_a_base_type,Hn(a,void 0,2))}function Cp(n){if(!n.baseTypesResolved){if(Oh(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[hN(n)]:n.symbol.flags&96?(n.symbol.flags&32&&y8(n),n.symbol.flags&64&&Rst(n)):N.fail("type must be class or interface"),!K_()&&n.symbol.declarations))for(const a of n.symbol.declarations)(a.kind===263||a.kind===264)&&lv(a,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function hN(n){const a=Zo(n.typeParameters,(c,d)=>n.elementFlags[d]&8?Pp(c,Tt):c);return Vu(ei(a||et),n.readonly)}function y8(n){n.resolvedBaseTypes=Q3;const a=Ld(Np(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=et;const c=As(n);let d;const _=a.symbol?Zs(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&xst(_))d=ZOe(c,a.symbol);else if(a.flags&1)d=a;else{const x=Wh(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=ps(x[0])}if(Jt(d))return n.resolvedBaseTypes=et;const v=f_(d);if(!t9(v)){const x=tge(void 0,d),k=Vo(x,f.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Hn(v));return ts.add(Lg(Un(c.expression),c.expression,k)),n.resolvedBaseTypes=et}return n===v||_N(v,n)?(qe(n.symbol.valueDeclaration,f.Type_0_recursively_references_itself_as_a_base_type,Hn(n,void 0,2)),n.resolvedBaseTypes=et):(n.resolvedBaseTypes===Q3&&(n.members=void 0),n.resolvedBaseTypes=[v])}function xst(n){const a=n.outerTypeParameters;if(a){const c=a.length-1,d=Js(n);return a[c].symbol!==d[c].symbol}return!0}function t9(n){if(n.flags&262144){const a=Gu(n);if(a)return t9(a)}return!!(n.flags&67633153&&!Kd(n)||n.flags&2097152&&Jn(n.types,t9))}function Rst(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||et,n.symbol.declarations){for(const a of n.symbol.declarations)if(a.kind===264&&DC(a))for(const c of DC(a)){const d=f_(Ti(c));Jt(d)||(t9(d)?n!==d&&!_N(d,n)?n.resolvedBaseTypes===et?n.resolvedBaseTypes=[d]:n.resolvedBaseTypes.push(d):lv(a,n):qe(c,f.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function Dst(n){if(!n.declarations)return!0;for(const a of n.declarations)if(a.kind===264){if(a.flags&256)return!1;const c=DC(a);if(c){for(const d of c)if(Bl(d.expression)){const _=Hs(d.expression,788968,!0);if(!_||!(_.flags&64)||Bf(_).thisType)return!1}}}return!0}function Bf(n){let a=Ki(n);const c=a;if(!a.declaredType){const d=n.flags&32?1:2,_=_ye(n,n.valueDeclaration&&hmt(n.valueDeclaration));_&&(n=_,a=_.links);const v=c.declaredType=a.declaredType=Wf(d,n),x=Gr(n),k=Lr(n);(x||k||d===1||!Dst(n))&&(v.objectFlags|=4,v.typeParameters=So(x,k),v.outerTypeParameters=x,v.localTypeParameters=k,v.instantiations=new Map,v.instantiations.set(pm(v.typeParameters),v),v.target=v,v.resolvedTypeArguments=v.typeParameters,v.thisType=gf(n),v.thisType.isThisType=!0,v.thisType.constraint=v)}return a.declaredType}function mOe(n){var a;const c=Ki(n);if(!c.declaredType){if(!Oh(n,2))return _t;const d=N.checkDefined((a=n.declarations)==null?void 0:a.find(HL),"Type alias symbol with no valid declaration found"),_=$f(d)?d.typeExpression:d.type;let v=_?Ti(_):_t;if(K_()){const x=Lr(n);x&&(c.typeParameters=x,c.instantiations=new Map,c.instantiations.set(pm(x),v))}else v=_t,d.kind===347?qe(d.typeExpression.type,f.Type_alias_0_circularly_references_itself,Si(n)):qe(ad(d)&&d.name||d,f.Type_alias_0_circularly_references_itself,Si(n));c.declaredType=v}return c.declaredType}function vZ(n){return n.flags&1056&&n.symbol.flags&8?Zs(Cd(n.symbol)):n}function _Oe(n){const a=Ki(n);if(!a.declaredType){const c=[];if(n.declarations){for(const _ of n.declarations)if(_.kind===266){for(const v of _.members)if(gN(v)){const x=Ir(v),k=WN(v),F=fx(k!==void 0?Jct(k,Sa(n),x):hOe(x));Ki(x).declaredType=F,c.push(yd(F))}}}const d=c.length?ei(c,1,n,void 0):hOe(n);d.flags&1048576&&(d.flags|=1024,d.symbol=n),a.declaredType=d}return a.declaredType}function hOe(n){const a=yg(32,n),c=yg(32,n);return a.regularType=a,a.freshType=c,c.regularType=a,c.freshType=c,a}function gOe(n){const a=Ki(n);if(!a.declaredType){const c=_Oe(Cd(n));a.declaredType||(a.declaredType=c)}return a.declaredType}function WT(n){const a=Ki(n);return a.declaredType||(a.declaredType=gf(n))}function Nst(n){const a=Ki(n);return a.declaredType||(a.declaredType=Zs(Oc(n)))}function Zs(n){return vOe(n)||_t}function vOe(n){if(n.flags&96)return Bf(n);if(n.flags&524288)return mOe(n);if(n.flags&262144)return WT(n);if(n.flags&384)return _Oe(n);if(n.flags&8)return gOe(n);if(n.flags&2097152)return Nst(n)}function n9(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 n9(n.elementType);case 183:return!n.typeArguments||n.typeArguments.every(n9)}return!1}function Cst(n){const a=Jx(n);return!a||n9(a)}function yOe(n){const a=yu(n);return a?n9(a):!Ly(n)}function Pst(n){const a=em(n),c=Dy(n);return(n.kind===176||!!a&&n9(a))&&n.parameters.every(yOe)&&c.every(Cst)}function Mst(n){if(n.declarations&&n.declarations.length===1){const a=n.declarations[0];if(a)switch(a.kind){case 172:case 171:return yOe(a);case 174:case 173:case 176:case 177:case 178:return Pst(a)}}return!1}function bOe(n,a,c){const d=ca();for(const _ of n)d.set(_.escapedName,c&&Mst(_)?_:Uge(_,a));return d}function EOe(n,a){for(const c of a){if(SOe(c))continue;const d=n.get(c.escapedName);(!d||d.valueDeclaration&&mr(d.valueDeclaration)&&!pN(d)&&!oie(d.valueDeclaration))&&(n.set(c.escapedName,c),n.set(c.escapedName,c))}}function SOe(n){return!!n.valueDeclaration&&sd(n.valueDeclaration)&&aa(n.valueDeclaration)}function Vhe(n){if(!n.declaredProperties){const a=n.symbol,c=Cb(a);n.declaredProperties=X0(c),n.declaredCallSignatures=et,n.declaredConstructSignatures=et,n.declaredIndexInfos=et,n.declaredCallSignatures=z1(c.get("__call")),n.declaredConstructSignatures=z1(c.get("__new")),n.declaredIndexInfos=XOe(a)}return n}function jhe(n){if(!Za(n)&&!$s(n))return!1;const a=Za(n)?n.expression:n.argumentExpression;return Bl(a)&&tm(Za(n)?Tg(n):nc(a))}function b8(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function r9(n){const a=Lo(n);return!!a&&jhe(a)}function gN(n){return!Wy(n)||r9(n)}function Lst(n){return c3(n)&&!jhe(n)}function kst(n,a,c){N.assert(!!(xl(n)&4096),"Expected a late-bound symbol."),n.flags|=c,Ki(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 TOe(n,a,c,d){N.assert(!!d.symbol,"The member is expected to have a symbol.");const _=Zr(d);if(!_.resolvedSymbol){_.resolvedSymbol=d.symbol;const v=mr(d)?d.left:d.name,x=$s(v)?nc(v.argumentExpression):Tg(v);if(tm(x)){const k=nm(x),F=d.symbol.flags;let H=c.get(k);H||c.set(k,H=Ka(0,k,4096));const re=a&&a.get(k);if(!(n.flags&32)&&(H.flags&hT(F)||re)){const be=re?So(re.declarations,H.declarations):H.declarations,ge=!(x.flags&8192)&&Vi(k)||xs(v);Xe(be,Je=>qe(Lo(Je)||Je,f.Property_0_was_also_declared_here,ge)),qe(v||d,f.Duplicate_property_0,ge),H=Ka(0,k,4096)}return H.links.nameType=x,kst(H,d,F),H.parent?N.assert(H.parent===n,"Existing symbol parent should match new one"):H.parent=n,_.resolvedSymbol=H}}return _.resolvedSymbol}function Uhe(n,a){const c=Ki(n);if(!c[a]){const d=a==="resolvedExports",_=d?n.flags&1536?PT(n).exports:n.exports:n.members;c[a]=_||K;const v=ca();for(const F of n.declarations||et){const H=$re(F);if(H)for(const re of H)d===mc(re)&&r9(re)&&TOe(n,_,v,re)}const x=M1(n).assignmentDeclarationMembers;if(x){const F=zo(x.values());for(const H of F){const re=zl(H),be=re===3||mr(H)&&bee(H,re)||re===9||re===6;d===!be&&r9(H)&&TOe(n,_,v,H)}}let k=YI(_,v);if(n.flags&33554432&&c.cjsExportMerged&&n.declarations)for(const F of n.declarations){const H=Ki(F.symbol)[a];if(!k){k=H;continue}H&&H.forEach((re,be)=>{const ge=k.get(be);if(!ge)k.set(be,re);else{if(ge===re)return;k.set(be,lm(ge,re))}})}c[a]=k||K}return c[a]}function Cb(n){return n.flags&6256?Uhe(n,"resolvedMembers"):n.members||K}function yZ(n){if(n.flags&106500&&n.escapedName==="__computed"){const a=Ki(n);if(!a.lateSymbol&&bt(n.declarations,r9)){const c=rs(n.parent);bt(n.declarations,mc)?Dp(c):Cb(c)}return a.lateSymbol||(a.lateSymbol=n)}return n}function Jp(n,a,c){if(Wr(n)&4){const d=n.target,_=Js(n);return Ne(d.typeParameters)===Ne(_)?uy(d,So(_,[a||d.thisType])):n}else if(n.flags&2097152){const d=Zo(n.types,_=>Jp(_,a,c));return d!==n.types?ya(d):n}return c?Ld(n):n}function AOe(n,a,c,d){let _,v,x,k,F;VB(c,d,0,c.length)?(v=a.symbol?Cb(a.symbol):ca(a.declaredProperties),x=a.declaredCallSignatures,k=a.declaredConstructSignatures,F=a.declaredIndexInfos):(_=Mp(c,d),v=bOe(a.declaredProperties,_,c.length===1),x=BZ(a.declaredCallSignatures,_),k=BZ(a.declaredConstructSignatures,_),F=Y8e(a.declaredIndexInfos,_));const H=Cp(a);if(H.length){if(a.symbol&&v===Cb(a.symbol)){const be=ca(a.declaredProperties),ge=cge(a.symbol);ge&&be.set("__index",ge),v=be}vf(n,v,x,k,F);const re=el(d);for(const be of H){const ge=re?Jp(lo(be,_),re):be;EOe(v,gs(ge)),x=So(x,Xo(ge,0)),k=So(k,Xo(ge,1));const Je=ge!==j?gd(ge):[Bh(ke,j,!1)];F=So(F,mn(Je,gt=>!nge(F,gt.keyType)))}}vf(n,v,x,k,F)}function wst(n){AOe(n,Vhe(n),et,et)}function Ost(n){const a=Vhe(n.target),c=So(a.typeParameters,[a.thisType]),d=Js(n),_=d.length===c.length?d:So(d,[n]);AOe(n,a,c,_)}function Eg(n,a,c,d,_,v,x,k){const F=new h(Qt,k);return F.declaration=n,F.typeParameters=a,F.parameters=d,F.thisParameter=c,F.resolvedReturnType=_,F.resolvedTypePredicate=v,F.minArgumentCount=x,F.resolvedMinArgumentCount=void 0,F.target=void 0,F.mapper=void 0,F.compositeSignatures=void 0,F.compositeKind=void 0,F}function E8(n){const a=Eg(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 IOe(n,a){const c=E8(n);return c.compositeSignatures=a,c.compositeKind=1048576,c.target=void 0,c.mapper=void 0,c}function Wst(n,a){if((n.flags&24)===a)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});const c=a===8?"inner":"outer";return n.optionalCallSignatureCache[c]||(n.optionalCallSignatureCache[c]=Fst(n,a))}function Fst(n,a){N.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.");const c=E8(n);return c.flags|=a,c}function xOe(n,a){if(Yu(n)){const _=n.parameters.length-1,v=n.parameters[_].escapedName,x=dr(n.parameters[_]);if(Wa(x))return[c(x,_,v)];if(!a&&x.flags&1048576&&Jn(x.types,Wa))return Wt(x.types,k=>c(k,_,v))}return[n.parameters];function c(_,v,x){const k=Js(_),F=d(_,x),H=Wt(k,(re,be)=>{const ge=F&&F[be]?F[be]:n2(n,v+be,_),Je=_.target.elementFlags[be],gt=Je&12?32768:Je&2?16384:0,Dt=Ka(1,ge,gt);return Dt.links.type=Je&4?Vu(re):re,Dt});return So(n.parameters.slice(0,v),H)}function d(_,v){const x=new Map;return Wt(_.target.labeledElementDeclarations,(k,F)=>{const H=bye(k,F,v),re=x.get(H);return re===void 0?(x.set(H,1),H):(x.set(H,re+1),`${H}_${re}`)})}}function zst(n){const a=Np(n),c=Xo(a,1),d=Wg(n.symbol),_=!!d&&Qr(d,64);if(c.length===0)return[Eg(void 0,n.localTypeParameters,void 0,et,n,void 0,0,_?4:0)];const v=As(n),x=lr(v),k=d9(v),F=Ne(k),H=[];for(const re of c){const be=zh(re.typeParameters),ge=Ne(re.typeParameters);if(x||F>=be&&F<=ge){const Je=ge?AZ(re,Mb(k,re.typeParameters,be,x)):E8(re);Je.typeParameters=n.localTypeParameters,Je.resolvedReturnType=n,Je.flags=_?Je.flags|4:Je.flags&-5,H.push(Je)}}return H}function bZ(n,a,c,d,_){for(const v of n)if(x9(v,a,c,d,_,c?put:L8))return v}function Bst(n,a,c){if(a.typeParameters){if(c>0)return;for(let _=1;_<n.length;_++)if(!bZ(n[_],a,!1,!1,!1))return;return[a]}let d;for(let _=0;_<n.length;_++){const v=_===c?a:bZ(n[_],a,!1,!1,!0)||bZ(n[_],a,!0,!1,!0);if(!v)return;d=Rg(d,v)}return d}function Hhe(n){let a,c;for(let d=0;d<n.length;d++){if(n[d].length===0)return et;n[d].length>1&&(c=c===void 0?d:-1);for(const _ of n[d])if(!a||!bZ(a,_,!1,!1,!0)){const v=Bst(n,_,d);if(v){let x=_;if(v.length>1){let k=_.thisParameter;const F=Xe(v,H=>H.thisParameter);if(F){const H=ya(eo(v,re=>re.thisParameter&&dr(re.thisParameter)));k=XT(F,H)}x=IOe(_,v),x.thisParameter=k}(a||(a=[])).push(x)}}}if(!Ne(a)&&c!==-1){const d=n[c!==void 0?c:0];let _=d.slice();for(const v of n)if(v!==d){const x=v[0];if(N.assert(!!x,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),_=x.typeParameters&&bt(_,k=>!!k.typeParameters&&!ROe(x.typeParameters,k.typeParameters))?void 0:Wt(_,k=>jst(k,x)),!_)break}a=_}return a||et}function ROe(n,a){if(Ne(n)!==Ne(a))return!1;if(!n||!a)return!0;const c=Mp(a,n);for(let d=0;d<n.length;d++){const _=n[d],v=a[d];if(_!==v&&!fv(GM(_)||hn,lo(GM(v)||hn,c)))return!1}return!0}function Gst(n,a,c){if(!n||!a)return n||a;const d=ya([dr(n),lo(dr(a),c)]);return XT(n,d)}function Vst(n,a,c){const d=Xp(n),_=Xp(a),v=d>=_?n:a,x=v===n?a:n,k=v===n?d:_,F=jh(n)||jh(a),H=F&&!jh(v),re=new Array(k+(H?1:0));for(let be=0;be<k;be++){let ge=Y1(v,be);v===a&&(ge=lo(ge,c));let Je=Y1(x,be)||hn;x===a&&(Je=lo(Je,c));const gt=ya([ge,Je]),Dt=F&&!H&&be===k-1,an=be>=th(v)&&be>=th(x),cn=be>=d?void 0:n2(n,be),ar=be>=_?void 0:n2(a,be),Wn=cn===ar?cn:cn?ar?void 0:cn:ar,ln=Ka(1|(an&&!Dt?16777216:0),Wn||`arg${be}`,Dt?32768:an?16384:0);ln.links.type=Dt?Vu(gt):gt,re[be]=ln}if(H){const be=Ka(1,"args",32768);be.links.type=Vu(h_(x,k)),x===a&&(be.links.type=lo(be.links.type,c)),re[k]=be}return re}function jst(n,a){const c=n.typeParameters||a.typeParameters;let d;n.typeParameters&&a.typeParameters&&(d=Mp(a.typeParameters,n.typeParameters));const _=n.declaration,v=Vst(n,a,d),x=Gst(n.thisParameter,a.thisParameter,d),k=Math.max(n.minArgumentCount,a.minArgumentCount),F=Eg(_,c,x,v,void 0,void 0,k,(n.flags|a.flags)&167);return F.compositeKind=1048576,F.compositeSignatures=So(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),d?F.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?H1(n.mapper,d):d:n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures&&(F.mapper=n.mapper),F}function DOe(n){const a=gd(n[0]);if(a){const c=[];for(const d of a){const _=d.keyType;Jn(n,v=>!!Sg(v,_))&&c.push(Bh(_,ei(Wt(n,v=>iE(v,_))),bt(n,v=>Sg(v,_).isReadonly)))}return c}return et}function Ust(n){const a=Hhe(Wt(n.types,_=>_===Ot?[un]:Xo(_,0))),c=Hhe(Wt(n.types,_=>Xo(_,1))),d=DOe(n.types);vf(n,K,a,c,d)}function i9(n,a){return n?a?ya([n,a]):n:a}function NOe(n){const a=ou(n,d=>Xo(d,1).length>0),c=Wt(n,Li);if(a>0&&a===ou(c,d=>d)){const d=c.indexOf(!0);c[d]=!1}return c}function Hst(n,a,c,d){const _=[];for(let v=0;v<a.length;v++)v===d?_.push(n):c[v]&&_.push(ps(Xo(a[v],1)[0]));return ya(_)}function qst(n){let a,c,d;const _=n.types,v=NOe(_),x=ou(v,k=>k);for(let k=0;k<_.length;k++){const F=n.types[k];if(!v[k]){let H=Xo(F,1);H.length&&x>0&&(H=Wt(H,re=>{const be=E8(re);return be.resolvedReturnType=Hst(ps(re),_,v,k),be})),c=COe(c,H)}a=COe(a,Xo(F,0)),d=rd(gd(F),(H,re)=>POe(H,re,!1),d)}vf(n,K,a||et,c||et,d||et)}function COe(n,a){for(const c of a)(!n||Jn(n,d=>!x9(d,c,!1,!1,!1,L8)))&&(n=Rn(n,c));return n}function POe(n,a,c){if(n)for(let d=0;d<n.length;d++){const _=n[d];if(_.keyType===a.keyType)return n[d]=Bh(_.keyType,c?ei([_.type,a.type]):ya([_.type,a.type]),c?_.isReadonly||a.isReadonly:_.isReadonly&&a.isReadonly),n}return Rn(n,a)}function Jst(n){if(n.target){vf(n,K,et,et,et);const x=bOe(Pb(n.target),n.mapper,!1),k=BZ(Xo(n.target,0),n.mapper),F=BZ(Xo(n.target,1),n.mapper),H=Y8e(gd(n.target),n.mapper);vf(n,x,k,F,H);return}const a=rs(n.symbol);if(a.flags&2048){vf(n,K,et,et,et);const x=Cb(a),k=z1(x.get("__call")),F=z1(x.get("__new")),H=XOe(a);vf(n,x,k,F,H);return}let c=Dp(a),d;if(a===ot){const x=new Map;c.forEach(k=>{var F;!(k.flags&418)&&!(k.flags&512&&((F=k.declarations)!=null&&F.length)&&Jn(k.declarations,ku))&&x.set(k.escapedName,k)}),c=x}let _;if(vf(n,c,et,et,et),a.flags&32){const x=Bf(a),k=Np(x);k.flags&11272192?(c=ca(LT(c)),EOe(c,gs(k))):k===j&&(_=Bh(ke,j,!1))}const v=IZ(c);if(v?d=uge(v):(_&&(d=Rn(d,_)),a.flags&384&&(Zs(a).flags&32||bt(n.properties,x=>!!(dr(x).flags&296)))&&(d=Rn(d,jr))),vf(n,c,et,et,d||et),a.flags&8208&&(n.callSignatures=z1(a)),a.flags&32){const x=Bf(a);let k=a.members?z1(a.members.get("__constructor")):et;a.flags&16&&(k=qr(k.slice(),eo(n.callSignatures,F=>eh(F.declaration)?Eg(F.declaration,F.typeParameters,F.thisParameter,F.parameters,x,void 0,F.minArgumentCount,F.flags&167):void 0))),k.length||(k=zst(x)),n.constructSignatures=k}}function Kst(n,a,c){return lo(n,Mp([a.indexType,a.objectType],[m_(0),Gh([c])]))}function Xst(n){const a=yf(n.mappedType);if(!(a.flags&1048576||a.flags&2097152))return;const c=a.flags&1048576?a.origin:a;if(!c||!(c.flags&2097152))return;const d=ya(c.types.filter(_=>_!==n.constraintType));return d!==Vr?d:void 0}function Yst(n){const a=Sg(n.source,ke),c=Fh(n.mappedType),d=!(c&1),_=c&4?0:16777216,v=a?[Bh(ke,see(a.type,n.mappedType,n.constraintType),d&&a.isReadonly)]:et,x=ca(),k=Xst(n);for(const F of gs(n.source)){if(k){const be=TN(F,8576);if(!ba(be,k))continue}const H=8192|(d&&g_(F)?8:0),re=Ka(4|F.flags&_,F.escapedName,H);if(re.declarations=F.declarations,re.links.nameType=Ki(F).nameType,re.links.propertyType=dr(F),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){const be=n.constraintType.type.objectType,ge=Kst(n.mappedType,n.constraintType.type,be);re.links.mappedType=ge,re.links.constraintType=Y_(be)}else re.links.mappedType=n.mappedType,re.links.constraintType=n.constraintType;x.set(F.escapedName,re)}vf(n,x,et,et,v)}function o9(n){if(n.flags&4194304){const a=Ld(n.type);return zb(a)?E8e(a):Y_(a)}if(n.flags&16777216){if(n.root.isDistributive){const a=n.checkType,c=o9(a);if(c!==a)return qge(n,JT(n.root.checkType,c,n.mapper),!1)}return n}if(n.flags&1048576)return dl(n,o9,!0);if(n.flags&2097152){const a=n.types;return a.length===2&&a[0].flags&76&&a[1]===lc?n:ya(Zo(n.types,o9))}return n}function qhe(n){return xl(n)&4096}function Jhe(n,a,c,d){for(const _ of gs(n))d(TN(_,a));if(n.flags&1)d(ke);else for(const _ of gd(n))(!c||_.keyType.flags&134217732)&&d(_.keyType)}function $st(n){const a=ca();let c;vf(n,K,et,et,et);const d=d_(n),_=yf(n),v=n.target||n,x=cy(v),k=EZ(v)!==2,F=cv(v),H=Ld(FT(n)),re=Fh(n),be=Le?128:8576;vN(n)?Jhe(H,be,Le,ge):ZT(o9(_),ge),vf(n,a,et,et,c||et);function ge(gt){const Dt=x?lo(x,C8(n.mapper,d,gt)):gt;ZT(Dt,an=>Je(gt,an))}function Je(gt,Dt){if(tm(Dt)){const an=nm(Dt),cn=a.get(an);if(cn)cn.links.nameType=ei([cn.links.nameType,Dt]),cn.links.keyType=ei([cn.links.keyType,gt]);else{const ar=tm(gt)?va(H,nm(gt)):void 0,Wn=!!(re&4||!(re&8)&&ar&&ar.flags&16777216),ln=!!(re&1||!(re&2)&&ar&&g_(ar)),Bn=X&&!Wn&&ar&&ar.flags&16777216,zn=ar?qhe(ar):0,tr=Ka(4|(Wn?16777216:0),an,zn|262144|(ln?8:0)|(Bn?524288:0));tr.links.mappedType=n,tr.links.nameType=Dt,tr.links.keyType=gt,ar&&(tr.links.syntheticOrigin=ar,tr.declarations=k?ar.declarations:void 0),a.set(an,tr)}}else if(xZ(Dt)||Dt.flags&33){const an=Dt.flags&5?ke:Dt.flags&40?Tt:Dt,cn=lo(F,C8(n.mapper,d,gt)),ar=S8(H,Dt),Wn=!!(re&1||!(re&2)&&(ar!=null&&ar.isReadonly)),ln=Bh(an,cn,Wn);c=POe(c,ln,!0)}}}function Qst(n){if(!n.links.type){const a=n.links.mappedType;if(!Oh(n,0))return a.containsError=!0,_t;const c=cv(a.target||a),d=C8(a.mapper,d_(a),n.links.keyType),_=lo(c,d);let v=X&&n.flags&16777216&&!Cl(_,49152)?Bb(_,!0):n.links.checkFlags&524288?nee(_):_;K_()||(qe(C,f.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Si(n),Hn(a)),v=_t),n.links.type=v}return n.links.type}function d_(n){return n.typeParameter||(n.typeParameter=WT(Ir(n.declaration.typeParameter)))}function yf(n){return n.constraintType||(n.constraintType=Md(d_(n))||_t)}function cy(n){return n.declaration.nameType?n.nameType||(n.nameType=lo(Ti(n.declaration.nameType),n.mapper)):void 0}function cv(n){return n.templateType||(n.templateType=n.declaration.type?lo(lp(Ti(n.declaration.type),!0,!!(Fh(n)&4)),n.mapper):_t)}function MOe(n){return Jx(n.declaration.typeParameter)}function vN(n){const a=MOe(n);return a.kind===198&&a.operator===143}function FT(n){if(!n.modifiersType)if(vN(n))n.modifiersType=lo(Ti(MOe(n).type),n.mapper);else{const a=Oge(n.declaration),c=yf(a),d=c&&c.flags&262144?Md(c):c;n.modifiersType=d&&d.flags&4194304?lo(d.type,n.mapper):hn}return n.modifiersType}function Fh(n){const a=n.declaration;return(a.readonlyToken?a.readonlyToken.kind===41?2:1:0)|(a.questionToken?a.questionToken.kind===41?8:4:0)}function LOe(n){const a=Fh(n);return a&8?-1:a&4?1:0}function Khe(n){const a=LOe(n),c=FT(n);return a||(Kd(c)?LOe(c):0)}function Zst(n){return!!(Wr(n)&32&&Fh(n)&4)}function Kd(n){if(Wr(n)&32){const a=yf(n);if(qT(a))return!0;const c=cy(n);if(c&&qT(lo(c,U1(d_(n),a))))return!0}return!1}function EZ(n){const a=cy(n);return a?ba(a,d_(n))?1:2:0}function p_(n){return n.members||(n.flags&524288?n.objectFlags&4?Ost(n):n.objectFlags&3?wst(n):n.objectFlags&1024?Yst(n):n.objectFlags&16?Jst(n):n.objectFlags&32?$st(n):N.fail("Unhandled object type "+N.formatObjectFlags(n.objectFlags)):n.flags&1048576?Ust(n):n.flags&2097152?qst(n):N.fail("Unhandled type "+N.formatTypeFlags(n.flags))),n}function Pb(n){return n.flags&524288?p_(n).properties:et}function rE(n,a){if(n.flags&524288){const d=p_(n).members.get(a);if(d&&Fm(d))return d}}function a9(n){if(!n.resolvedProperties){const a=ca();for(const c of n.types){for(const d of gs(c))if(!a.has(d.escapedName)){const _=l9(n,d.escapedName,!!(n.flags&2097152));_&&a.set(d.escapedName,_)}if(n.flags&1048576&&gd(c).length===0)break}n.resolvedProperties=X0(a)}return n.resolvedProperties}function gs(n){return n=zM(n),n.flags&3145728?a9(n):Pb(n)}function elt(n,a){n=zM(n),n.flags&3670016&&p_(n).members.forEach((c,d)=>{ix(c,d)&&a(c,d)})}function tlt(n,a){return a.properties.some(d=>{const _=d.name&&(Qm(d.name)?Xd(Ek(d.name)):py(d.name)),v=_&&tm(_)?nm(_):void 0,x=v===void 0?void 0:Ke(n,v);return!!x&&O8(x)&&!ba(gx(d),x)})}function nlt(n){const a=ei(n);if(!(a.flags&1048576))return nbe(a);const c=ca();for(const d of n)for(const{escapedName:_}of nbe(d))if(!c.has(_)){const v=BOe(a,_);v&&c.set(_,v)}return zo(c.values())}function zT(n){return n.flags&262144?Md(n):n.flags&8388608?ilt(n):n.flags&16777216?OOe(n):Gu(n)}function Md(n){return s9(n)?GM(n):void 0}function rlt(n,a){const c=P8(n);return!!c&&BT(c,a)}function BT(n,a=0){var c;return a<5&&!!(n&&(n.flags&262144&&bt((c=n.symbol)==null?void 0:c.declarations,d=>Qr(d,4096))||n.flags&3145728&&bt(n.types,d=>BT(d,a))||n.flags&8388608&&BT(n.objectType,a+1)||n.flags&16777216&&BT(OOe(n),a+1)||n.flags&33554432&&BT(n.baseType,a)||Wr(n)&32&&rlt(n,a)||zb(n)&&mi(G1(n),(d,_)=>!!(n.target.elementFlags[_]&8)&&BT(d,a))>=0))}function ilt(n){return s9(n)?olt(n):void 0}function Xhe(n){const a=pv(n,!1);return a!==n?a:zT(n)}function olt(n){if(Zhe(n))return kZ(n.objectType,n.indexType);const a=Xhe(n.indexType);if(a&&a!==n.indexType){const d=kb(n.objectType,a,n.accessFlags);if(d)return d}const c=Xhe(n.objectType);if(c&&c!==n.objectType)return kb(c,n.indexType,n.accessFlags)}function Yhe(n){if(!n.resolvedDefaultConstraint){const a=Gct(n),c=sE(n);n.resolvedDefaultConstraint=Nt(a)?c:Nt(c)?a:ei([a,c])}return n.resolvedDefaultConstraint}function kOe(n){if(n.resolvedConstraintOfDistributive!==void 0)return n.resolvedConstraintOfDistributive||void 0;if(n.root.isDistributive&&n.restrictiveInstantiation!==n){const a=pv(n.checkType,!1),c=a===n.checkType?zT(a):a;if(c&&c!==n.checkType){const d=qge(n,JT(n.root.checkType,c,n.mapper),!0);if(!(d.flags&131072))return n.resolvedConstraintOfDistributive=d,d}}n.resolvedConstraintOfDistributive=!1}function wOe(n){return kOe(n)||Yhe(n)}function OOe(n){return s9(n)?wOe(n):void 0}function alt(n,a){let c,d=!1;for(const _ of n)if(_.flags&465829888){let v=zT(_);for(;v&&v.flags&21233664;)v=zT(v);v&&(c=Rn(c,v),a&&(c=Rn(c,_)))}else(_.flags&469892092||Vh(_))&&(d=!0);if(c&&(a||d)){if(d)for(const _ of n)(_.flags&469892092||Vh(_))&&(c=Rn(c,_));return T9(ya(c),!1)}}function Gu(n){if(n.flags&464781312||zb(n)){const a=$he(n);return a!==js&&a!==tu?a:void 0}return n.flags&4194304?Fs:void 0}function uv(n){return Gu(n)||n}function s9(n){return $he(n)!==tu}function $he(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;const a=[];return n.resolvedBaseConstraint=c(n);function c(v){if(!v.immediateBaseConstraint){if(!Oh(v,4))return tu;let x;const k=YZ(v);if((a.length<10||a.length<50&&!Or(a,k))&&(a.push(k),x=_(pv(v,!1)),a.pop()),!K_()){if(v.flags&262144){const F=dge(v);if(F){const H=qe(F,f.Type_parameter_0_has_a_circular_constraint,Hn(v));C&&!WE(F,C)&&!WE(C,F)&&Ma(H,kr(C,f.Circularity_originates_in_type_at_this_location))}}x=tu}v.immediateBaseConstraint=x||js}return v.immediateBaseConstraint}function d(v){const x=c(v);return x!==js&&x!==tu?x:void 0}function _(v){if(v.flags&262144){const x=GM(v);return v.isThisType||!x?x:d(x)}if(v.flags&3145728){const x=v.types,k=[];let F=!1;for(const H of x){const re=d(H);re?(re!==H&&(F=!0),k.push(re)):F=!0}return F?v.flags&1048576&&k.length===x.length?ei(k):v.flags&2097152&&k.length?ya(k):void 0:v}if(v.flags&4194304)return Fs;if(v.flags&134217728){const x=v.types,k=eo(x,d);return k.length===x.length?jT(v.texts,k):ke}if(v.flags&268435456){const x=d(v.type);return x&&x!==v.type?dx(v.symbol,x):ke}if(v.flags&8388608){if(Zhe(v))return d(kZ(v.objectType,v.indexType));const x=d(v.objectType),k=d(v.indexType),F=x&&k&&kb(x,k,v.accessFlags);return F&&d(F)}if(v.flags&16777216){const x=wOe(v);return x&&d(x)}if(v.flags&33554432)return d(hge(v));if(zb(v)){const x=Wt(G1(v),(k,F)=>{const H=k.flags&262144&&v.target.elementFlags[F]&8&&d(k)||k;return H!==k&&cp(H,re=>cE(re)&&!zb(re))?H:k});return Gh(x,v.target.elementFlags,v.target.readonly,v.target.labeledElementDeclarations)}return v}}function slt(n,a){return n.resolvedApparentType||(n.resolvedApparentType=Jp(n,a,!0))}function Qhe(n){if(n.default)n.default===du&&(n.default=tu);else if(n.target){const a=Qhe(n.target);n.default=a?lo(a,n.mapper):js}else{n.default=du;const a=n.symbol&&Xe(n.symbol.declarations,d=>hl(d)&&d.default),c=a?Ti(a):js;n.default===du&&(n.default=c)}return n.default}function GT(n){const a=Qhe(n);return a!==js&&a!==tu?a:void 0}function llt(n){return Qhe(n)!==tu}function WOe(n){return!!(n.symbol&&Xe(n.symbol.declarations,a=>hl(a)&&a.default))}function FOe(n){return n.resolvedApparentType||(n.resolvedApparentType=clt(n))}function clt(n){const a=n.target??n,c=P8(a);if(c&&!a.declaration.nameType){const d=FT(n),_=Kd(d)?FOe(d):Gu(d);if(_&&cp(_,v=>cE(v)||zOe(v)))return lo(a,JT(c,_,n.mapper))}return n}function zOe(n){return!!(n.flags&2097152)&&Jn(n.types,cE)}function Zhe(n){let a;return!!(n.flags&8388608&&Wr(a=n.objectType)&32&&!Kd(a)&&qT(n.indexType)&&!(Fh(a)&8)&&!a.declaration.nameType)}function Ld(n){const a=n.flags&465829888?Gu(n)||hn:n,c=Wr(a);return c&32?FOe(a):c&4&&a!==n?Jp(a,n):a.flags&2097152?slt(a,n):a.flags&402653316?Zl:a.flags&296?yc:a.flags&2112?qlt():a.flags&528?ul:a.flags&12288?p8e():a.flags&67108864?Ca:a.flags&4194304?Fs:a.flags&2&&!X?Ca:a}function zM(n){return f_(Ld(f_(n)))}function BOe(n,a,c){var d,_,v;let x,k,F;const H=n.flags&1048576;let re,be=4,ge=H?0:8,Je=!1;for(const tr of n.types){const Kn=Ld(tr);if(!(Jt(Kn)||Kn.flags&131072)){const nr=va(Kn,a,c),Ro=nr?xf(nr):0;if(nr){if(nr.flags&106500&&(re??(re=H?0:16777216),H?re|=nr.flags&16777216:re&=nr.flags),!x)x=nr;else if(nr!==x)if((wN(nr)||nr)===(wN(x)||x)&&nve(x,nr,(Bo,_o)=>Bo===_o?-1:0)===-1)Je=!!x.parent&&!!Ne(Lr(x.parent));else{k||(k=new Map,k.set(Sa(x),x));const Bo=Sa(nr);k.has(Bo)||k.set(Bo,nr)}H&&g_(nr)?ge|=8:!H&&!g_(nr)&&(ge&=-9),ge|=(Ro&6?0:256)|(Ro&4?512:0)|(Ro&2?1024:0)|(Ro&256?2048:0),Qve(nr)||(be=2)}else if(H){const Eo=!b8(a)&&cx(Kn,a);Eo?(ge|=32|(Eo.isReadonly?8:0),F=Rn(F,Wa(Kn)?ZZ(Kn)||Oe:Eo.type)):pE(Kn)&&!(Wr(Kn)&2097152)?(ge|=32,F=Rn(F,Oe)):ge|=16}}}if(!x||H&&(k||ge&48)&&ge&1536&&!(k&&ult(k.values())))return;if(!k&&!(ge&16)&&!F)if(Je){const tr=(d=ri(x,fh))==null?void 0:d.links,Kn=XT(x,tr==null?void 0:tr.type);return Kn.parent=(v=(_=x.valueDeclaration)==null?void 0:_.symbol)==null?void 0:v.parent,Kn.links.containingType=n,Kn.links.mapper=tr==null?void 0:tr.mapper,Kn.links.writeType=F1(x),Kn}else return x;const gt=k?zo(k.values()):[x];let Dt,an,cn;const ar=[];let Wn,ln,Bn=!1;for(const tr of gt){ln?tr.valueDeclaration&&tr.valueDeclaration!==ln&&(Bn=!0):ln=tr.valueDeclaration,Dt=qr(Dt,tr.declarations);const Kn=dr(tr);an||(an=Kn,cn=Ki(tr).nameType);const nr=F1(tr);(Wn||nr!==Kn)&&(Wn=Rn(Wn||ar.slice(),nr)),Kn!==an&&(ge|=64),(O8(Kn)||UT(Kn))&&(ge|=128),Kn.flags&131072&&Kn!==cu&&(ge|=131072),ar.push(Kn)}qr(ar,F);const zn=Ka(4|(re??0),a,be|ge);return zn.links.containingType=n,!Bn&&ln&&(zn.valueDeclaration=ln,ln.symbol.parent&&(zn.parent=ln.symbol.parent)),zn.declarations=Dt,zn.links.nameType=cn,ar.length>2?(zn.links.checkFlags|=65536,zn.links.deferralParent=n,zn.links.deferralConstituents=ar,zn.links.deferralWriteConstituents=Wn):(zn.links.type=H?ei(ar):ya(ar),Wn&&(zn.links.writeType=H?ei(Wn):ya(Wn))),zn}function GOe(n,a,c){var d,_,v;let x=c?(d=n.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:d.get(a):(_=n.propertyCache)==null?void 0:_.get(a);return x||(x=BOe(n,a,c),x&&((c?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=ca()):n.propertyCache||(n.propertyCache=ca())).set(a,x),c&&!(xl(x)&48)&&!((v=n.propertyCache)!=null&&v.get(a))&&(n.propertyCache||(n.propertyCache=ca())).set(a,x))),x}function ult(n){let a;for(const c of n){if(!c.declarations)return;if(!a){a=new Set(c.declarations);continue}if(a.forEach(d=>{Or(c.declarations,d)||a.delete(d)}),a.size===0)return}return a}function l9(n,a,c){const d=GOe(n,a,c);return d&&!(xl(d)&16)?d:void 0}function f_(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=dlt(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(bt(a9(n),plt)?33554432:0)),n.objectFlags&33554432?Vr:n):n}function dlt(n){const a=Zo(n.types,f_);if(a===n.types)return n;const c=ei(a);return c.flags&1048576&&(c.resolvedReducedType=c),c}function plt(n){return VOe(n)||jOe(n)}function VOe(n){return!(n.flags&16777216)&&(xl(n)&131264)===192&&!!(dr(n).flags&131072)}function jOe(n){return!n.valueDeclaration&&!!(xl(n)&1024)}function ege(n){return!!(n.flags&1048576&&n.objectFlags&16777216&&bt(n.types,ege)||n.flags&2097152&&flt(n))}function flt(n){const a=n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=lo(n,ho));return f_(a)!==a}function tge(n,a){if(a.flags&2097152&&Wr(a)&33554432){const c=In(a9(a),VOe);if(c)return Vo(n,f.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Hn(a,void 0,536870912),Si(c));const d=In(a9(a),jOe);if(d)return Vo(n,f.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Hn(a,void 0,536870912),Si(d))}return n}function va(n,a,c,d){var _,v;if(n=zM(n),n.flags&524288){const x=p_(n),k=x.members.get(a);if(k&&!d&&((_=n.symbol)==null?void 0:_.flags)&512&&((v=Ki(n.symbol).typeOnlyExportStarMap)!=null&&v.has(a)))return;if(k&&Fm(k,d))return k;if(c)return;const F=x===nn?Ot:x.callSignatures.length?Xn:x.constructSignatures.length?yo:void 0;if(F){const H=rE(F,a);if(H)return H}return rE(Pe,a)}if(n.flags&2097152){const x=l9(n,a,!0);return x||(c?void 0:l9(n,a,c))}if(n.flags&1048576)return l9(n,a,c)}function c9(n,a){if(n.flags&3670016){const c=p_(n);return a===0?c.callSignatures:c.constructSignatures}return et}function Xo(n,a){const c=c9(zM(n),a);if(a===0&&!Ne(c)&&n.flags&1048576){if(n.arrayFallbackSignatures)return n.arrayFallbackSignatures;let d;if(cp(n,_=>{var v;return!!((v=_.symbol)!=null&&v.parent)&&mlt(_.symbol.parent)&&(d?d===_.symbol.escapedName:(d=_.symbol.escapedName,!0))})){const _=dl(n,x=>Ob((UOe(x.symbol.parent)?na:$o).typeParameters[0],x.mapper)),v=Vu(_,Gm(n,x=>UOe(x.symbol.parent)));return n.arrayFallbackSignatures=Xo(Ke(v,d),a)}n.arrayFallbackSignatures=c}return c}function mlt(n){return!n||!$o.symbol||!na.symbol?!1:!!s_(n,$o.symbol)||!!s_(n,na.symbol)}function UOe(n){return!n||!na.symbol?!1:!!s_(n,na.symbol)}function nge(n,a){return In(n,c=>c.keyType===a)}function rge(n,a){let c,d,_;for(const v of n)v.keyType===ke?c=v:lx(a,v.keyType)&&(d?(_||(_=[d])).push(v):d=v);return _?Bh(hn,ya(Wt(_,v=>v.type)),rd(_,(v,x)=>v&&x.isReadonly,!0)):d||(c&&lx(a,ke)?c:void 0)}function lx(n,a){return ba(n,a)||a===ke&&ba(n,Tt)||a===Tt&&(n===cs||!!(n.flags&128)&&og(n.value))}function ige(n){return n.flags&3670016?p_(n).indexInfos:et}function gd(n){return ige(zM(n))}function Sg(n,a){return nge(gd(n),a)}function iE(n,a){var c;return(c=Sg(n,a))==null?void 0:c.type}function oge(n,a){return gd(n).filter(c=>lx(a,c.keyType))}function S8(n,a){return rge(gd(n),a)}function cx(n,a){return S8(n,b8(a)?xi:Xd(Vi(a)))}function HOe(n){var a;let c;for(const d of Dy(n))c=Rg(c,WT(d.symbol));return c!=null&&c.length?c:Tc(n)?(a=BM(n))==null?void 0:a.typeParameters:void 0}function age(n){const a=[];return n.forEach((c,d)=>{k1(d)||a.push(c)}),a}function SZ(n,a){if(Xc(n))return;const c=Jd(Se,'"'+n+'"',512);return c&&a?rs(c):c}function T8(n){if(CA(n)||yk(n)||bk(n))return!0;if(n.initializer){const c=dm(n.parent),d=n.parent.parameters.indexOf(n);return N.assert(d>=0),d>=th(c,3)}const a=bS(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=kee(a).length:!1}function _lt(n){return qo(n)&&!D_(n)&&n.questionToken}function u9(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<n.length;c++)WOe(n[c])||(a=c+1);return a}function Mb(n,a,c,d){const _=Ne(a);if(!_)return[];const v=Ne(n);if(d||v>=c&&v<=_){const x=n?n.slice():[];for(let F=v;F<_;F++)x[F]=_t;const k=Eve(d);for(let F=v;F<_;F++){let H=GT(a[F]);d&&H&&(fv(H,hn)||fv(H,Ca))&&(H=j),x[F]=H?lo(H,Mp(a,x)):k}return x.length=a.length,x}return n&&n.slice()}function dm(n){const a=Zr(n);if(!a.resolvedSignature){const c=[];let d=0,_=0,v,x=lr(n)?c4(n):void 0,k=!1;const F=bS(n),H=_R(n);!F&&lr(n)&&gie(n)&&!Yne(n)&&!o0(n)&&(d|=32);for(let gt=H?1:0;gt<n.parameters.length;gt++){const Dt=n.parameters[gt];if(lr(Dt)&&bH(Dt)){x=Dt;continue}let an=Dt.symbol;const cn=e_(Dt)?Dt.typeExpression&&Dt.typeExpression.type:Dt.type;an&&an.flags&4&&!ta(Dt.name)&&(an=yl(Dt,an.escapedName,111551,void 0,void 0,!1)),gt===0&&an.escapedName==="this"?(k=!0,v=Dt.symbol):c.push(an),cn&&cn.kind===201&&(d|=2),yk(Dt)||Dt.initializer||Dt.questionToken||Xh(Dt)||F&&c.length>F.arguments.length&&!cn||bk(Dt)||(_=c.length)}if((n.kind===177||n.kind===178)&&gN(n)&&(!k||!v)){const gt=n.kind===177?178:177,Dt=pl(Ir(n),gt);Dt&&(v=fZ(Dt))}x&&x.typeExpression&&(v=XT(Ka(1,"this"),Ti(x.typeExpression)));const be=E0(n)?p0(n):n,ge=be&&Ml(be)?Bf(rs(be.parent.symbol)):void 0,Je=ge?ge.localTypeParameters:HOe(n);(UV(n)||lr(n)&&hlt(n,c))&&(d|=1),(zR(n)&&Qr(n,64)||Ml(n)&&Qr(n.parent,64))&&(d|=4),a.resolvedSignature=Eg(n,Je,v,c,void 0,void 0,_,d)}return a.resolvedSignature}function hlt(n,a){if(E0(n)||!sge(n))return!1;const c=el(n.parameters),d=c?qx(c):a0(n).filter(e_),_=Ht(d,x=>x.typeExpression&&YW(x.typeExpression.type)?x.typeExpression.type:void 0),v=Ka(3,"args",32768);return _?v.links.type=Vu(Ti(_.type)):(v.links.checkFlags|=65536,v.links.deferralParent=Vr,v.links.deferralConstituents=[ec],v.links.deferralWriteConstituents=[ec]),_&&a.pop(),a.push(v),!0}function BM(n){if(!(lr(n)&&Bs(n)))return;const a=i0(n);return(a==null?void 0:a.typeExpression)&&rA(Ti(a.typeExpression))}function glt(n,a){const c=BM(n);if(!c)return;const d=n.parameters.indexOf(a);return a.dotDotDotToken?eB(c,d):h_(c,d)}function vlt(n){const a=BM(n);return a&&ps(a)}function sge(n){const a=Zr(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&&o6(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!wj(d)&&!$h(d)&&!!Uo(d,c)}}}function z1(n){if(!n||!n.declarations)return et;const a=[];for(let c=0;c<n.declarations.length;c++){const d=n.declarations[c];if(ea(d)){if(c>0&&d.body){const _=n.declarations[c-1];if(d.parent===_.parent&&d.kind===_.kind&&d.pos===_.end)continue}if(lr(d)&&d.jsDoc){const _=Ij(d);if(Ne(_)){for(const v of _){const x=v.typeExpression;x.type===void 0&&!Ml(d)&&uE(x,j),a.push(dm(x))}continue}}a.push(!qE(d)&&!Tm(d)&&BM(d)||dm(d))}}return a}function qOe(n){const a=hd(n,n);if(a){const c=Rp(a);if(c)return dr(c)}return j}function oE(n){if(n.thisParameter)return dr(n.thisParameter)}function Gf(n){if(!n.resolvedTypePredicate){if(n.target){const a=Gf(n.target);n.resolvedTypePredicate=a?nut(a,n.mapper):we}else if(n.compositeSignatures)n.resolvedTypePredicate=gct(n.compositeSignatures,n.compositeKind)||we;else{const a=n.declaration&&em(n.declaration);let c;if(!a){const d=BM(n.declaration);d&&n!==d&&(c=Gf(d))}n.resolvedTypePredicate=a&&Gk(a)?ylt(a,n):c||we}N.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===we?void 0:n.resolvedTypePredicate}function ylt(n,a){const c=n.parameterName,d=n.type&&Ti(n.type);return c.kind===197?u9(n.assertsModifier?2:0,void 0,void 0,d):u9(n.assertsModifier?3:1,c.escapedText,mi(a.parameters,_=>_.escapedName===c.escapedText),d)}function JOe(n,a,c){return a!==2097152?ei(n,c):ya(n)}function ps(n){if(!n.resolvedReturnType){if(!Oh(n,3))return _t;let a=n.target?lo(ps(n.target),n.mapper):n.compositeSignatures?lo(JOe(Wt(n.compositeSignatures,ps),n.compositeKind,2),n.mapper):yN(n.declaration)||(Fl(n.declaration.body)?j:Fee(n.declaration));if(n.flags&8?a=R6e(a):n.flags&16&&(a=Bb(a)),!K_()){if(n.declaration){const c=em(n.declaration);if(c)qe(c,f.Return_type_annotation_circularly_references_itself);else if(de){const d=n.declaration,_=Lo(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,xs(_)):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 yN(n){if(n.kind===176)return Bf(rs(n.parent.symbol));const a=em(n);if(E0(n)){const c=hR(n);if(c&&Ml(c.parent)&&!a)return Bf(rs(c.parent.parent.symbol))}if(_R(n))return Ti(n.parameters[0].type);if(a)return Ti(a);if(n.kind===177&&gN(n)){const c=lr(n)&&ov(n);if(c)return c;const d=pl(Ir(n),178),_=eE(d);if(_)return _}return vlt(n)}function TZ(n){return n.compositeSignatures&&bt(n.compositeSignatures,TZ)||!n.resolvedReturnType&&ax(n,3)>=0}function blt(n){return KOe(n)||j}function KOe(n){if(Yu(n)){const a=dr(n.parameters[n.parameters.length-1]),c=Wa(a)?ZZ(a):a;return c&&iE(c,Tt)}}function A8(n,a,c,d){const _=lge(n,Mb(a,n.typeParameters,zh(n.typeParameters),c));if(d){const v=a3e(ps(_));if(v){const x=E8(v);x.typeParameters=d;const k=E8(_);return k.resolvedReturnType=VT(x),k}}return _}function lge(n,a){const c=n.instantiations||(n.instantiations=new Map),d=pm(a);let _=c.get(d);return _||c.set(d,_=AZ(n,a)),_}function AZ(n,a){return xN(n,Elt(n,a),!0)}function Elt(n,a){return Mp(n.typeParameters,a)}function I8(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=Slt(n)):n}function Slt(n){return xN(n,$8e(n.typeParameters),!0)}function Tlt(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=Alt(n)):n}function Alt(n){return A8(n,Wt(n.typeParameters,a=>a.target&&!Md(a.target)?a.target:a),lr(n.declaration))}function Ilt(n){const a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;const c=$8e(a),d=Mp(a,Wt(a,v=>Md(v)||hn));let _=Wt(a,v=>lo(v,d)||hn);for(let v=0;v<a.length-1;v++)_=fy(_,d);return _=fy(_,c),n.baseSignatureCache=xN(n,Mp(a,_),!0)}return n}function VT(n){var a;if(!n.isolatedSignatureType){const c=(a=n.declaration)==null?void 0:a.kind,d=c===void 0||c===176||c===180||c===185,_=Wf(16);_.members=K,_.properties=et,_.callSignatures=d?et:[n],_.constructSignatures=d?[n]:et,_.indexInfos=et,n.isolatedSignatureType=_}return n.isolatedSignatureType}function cge(n){return n.members?IZ(n.members):void 0}function IZ(n){return n.get("__index")}function Bh(n,a,c,d){return{keyType:n,type:a,isReadonly:c,declaration:d}}function XOe(n){const a=cge(n);return a?uge(a):et}function uge(n){if(n.declarations){const a=[];for(const c of n.declarations)if(c.parameters.length===1){const d=c.parameters[0];d.type&&ZT(Ti(d.type),_=>{xZ(_)&&!nge(a,_)&&a.push(Bh(_,c.type?Ti(c.type):j,_p(c,8),c))})}return a}return et}function xZ(n){return!!(n.flags&4108)||UT(n)||!!(n.flags&2097152)&&!AN(n)&&bt(n.types,xZ)}function dge(n){return eo(mn(n.symbol&&n.symbol.declarations,hl),Jx)[0]}function YOe(n,a){var c;let d;if((c=n.symbol)!=null&&c.declarations){for(const _ of n.symbol.declarations)if(_.parent.kind===195){const[v=_.parent,x]=vie(_.parent.parent);if(x.kind===183&&!a){const k=x,F=wye(k);if(F){const H=k.typeArguments.indexOf(v);if(H<F.length){const re=Md(F[H]);if(re){const be=Vge(F,F.map((Je,gt)=>()=>B_t(k,F,gt))),ge=lo(re,be);ge!==n&&(d=Rn(d,ge))}}}}else if(x.kind===169&&x.dotDotDotToken||x.kind===191||x.kind===202&&x.dotDotDotToken)d=Rn(d,Vu(hn));else if(x.kind===204)d=Rn(d,ke);else if(x.kind===168&&x.parent.kind===200)d=Rn(d,Fs);else if(x.kind===200&&x.type&&hs(x.type)===_.parent&&x.parent.kind===194&&x.parent.extendsType===x&&x.parent.checkType.kind===200&&x.parent.checkType.type){const k=x.parent.checkType,F=Ti(k.type);d=Rn(d,lo(F,U1(WT(Ir(k.typeParameter)),k.typeParameter.constraint?Ti(k.typeParameter.constraint):Fs)))}}}return d&&ya(d)}function GM(n){if(!n.constraint)if(n.target){const a=Md(n.target);n.constraint=a?lo(a,n.mapper):js}else{const a=dge(n);if(!a)n.constraint=YOe(n)||js;else{let c=Ti(a);c.flags&1&&!Jt(c)&&(c=a.parent.parent.kind===200?Fs:hn),n.constraint=c}}return n.constraint===js?void 0:n.constraint}function $Oe(n){const a=pl(n.symbol,168),c=om(a.parent)?o3(a.parent):a.parent;return c&&_f(c)}function pm(n){let a="";if(n){const c=n.length;let d=0;for(;d<c;){const _=n[d].id;let v=1;for(;d+v<c&&n[d+v].id===_+v;)v++;a.length&&(a+=","),a+=_,v>1&&(a+=":"+v),d+=v}}return a}function ux(n,a){return n?`@${Sa(n)}`+(a?`:${pm(a)}`:""):""}function RZ(n,a){let c=0;for(const d of n)(a===void 0||!(d.flags&a))&&(c|=Wr(d));return c&458752}function bN(n,a){return bt(a)&&n===wo?hn:uy(n,a)}function uy(n,a){const c=pm(a);let d=n.instantiations.get(c);return d||(d=Wf(4,n.symbol),n.instantiations.set(c,d),d.objectFlags|=a?RZ(a):0,d.target=n,d.resolvedTypeArguments=a),d}function QOe(n){const a=yg(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=px(a);const x=IN(d);_=c?fy(x,c):x}const v=Wf(4,n.symbol);return v.target=n,v.node=a,v.mapper=c,v.aliasSymbol=d,v.aliasTypeArguments=_,v}function Js(n){var a,c;if(!n.resolvedTypeArguments){if(!Oh(n,6))return((a=n.target.localTypeParameters)==null?void 0:a.map(()=>_t))||et;const d=n.node,_=d?d.kind===183?So(n.target.outerTypeParameters,jee(d,n.target.localTypeParameters)):d.kind===188?[Ti(d.elementType)]:Wt(d.elements,Ti):et;K_()?n.resolvedTypeArguments=n.mapper?fy(_,n.mapper):_:(n.resolvedTypeArguments=((c=n.target.localTypeParameters)==null?void 0:c.map(()=>_t))||et,qe(n.node||C,n.target.symbol?f.Type_arguments_for_0_circularly_reference_themselves:f.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&Si(n.target.symbol)))}return n.resolvedTypeArguments}function dy(n){return Ne(n.target.typeParameters)}function ZOe(n,a){const c=Zs(rs(a)),d=c.localTypeParameters;if(d){const _=Ne(n.typeArguments),v=zh(d),x=lr(n);if(!(!de&&x)&&(_<v||_>d.length)){const H=x&&Vv(n)&&!uI(n.parent),re=v===d.length?H?f.Expected_0_type_arguments_provide_these_with_an_extends_tag:f.Generic_type_0_requires_1_type_argument_s:H?f.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:f.Generic_type_0_requires_between_1_and_2_type_arguments,be=Hn(c,void 0,2);if(qe(n,re,be,v,d.length),!x)return _t}if(n.kind===183&&y8e(n,Ne(n.typeArguments)!==d.length))return pge(c,n,void 0);const F=So(c.outerTypeParameters,Mb(d9(n),d,v,x));return uy(c,F)}return B1(n,a)?c:_t}function EN(n,a,c,d){const _=Zs(n);if(_===fn){const H=BF.get(n.escapedName);if(H!==void 0&&a&&a.length===1)return H===4?fge(a[0]):dx(n,a[0])}const v=Ki(n),x=v.typeParameters,k=pm(a)+ux(c,d);let F=v.instantiations.get(k);return F||v.instantiations.set(k,F=e6e(_,Mp(x,Mb(a,x,zh(x),lr(n.valueDeclaration))),c,d)),F}function xlt(n,a){if(xl(a)&1048576){const _=d9(n),v=ux(a,_);let x=Fe.get(v);return x||(x=cc(1,"error",void 0,`alias ${v}`),x.aliasSymbol=a,x.aliasTypeArguments=_,Fe.set(v,x)),x}const c=Zs(a),d=Ki(a).typeParameters;if(d){const _=Ne(n.typeArguments),v=zh(d);if(_<v||_>d.length)return qe(n,v===d.length?f.Generic_type_0_requires_1_type_argument_s:f.Generic_type_0_requires_between_1_and_2_type_arguments,Si(a),v,d.length),_t;const x=px(n);let k=x&&(e8e(a)||!e8e(x))?x:void 0,F;if(k)F=IN(k);else if(A4(n)){const H=SN(n,2097152,!0);if(H&&H!==ft){const re=Oc(H);re&&re.flags&524288&&(k=re,F=d9(n)||(d?[]:void 0))}}return EN(a,d9(n),k,F)}return B1(n,a)?c:_t}function e8e(n){var a;const c=(a=n.declarations)==null?void 0:a.find(HL);return!!(c&&Bp(c))}function Rlt(n){switch(n.kind){case 183:return n.typeName;case 233:const a=n.expression;if(Bl(a))return a}}function t8e(n){return n.parent?`${t8e(n.parent)}.${n.escapedName}`:n.escapedName}function DZ(n){const c=(n.kind===166?n.right:n.kind===211?n.name:n).escapedText;if(c){const d=n.kind===166?DZ(n.left):n.kind===211?DZ(n.expression):void 0,_=d?`${t8e(d)}.${c}`:c;let v=le.get(_);return v||(le.set(_,v=Ka(524288,c,1048576)),v.parent=d,v.links.declaredType=Gt),v}return ft}function SN(n,a,c){const d=Rlt(n);if(!d)return ft;const _=Hs(d,a,c);return _&&_!==ft?_:c?ft:DZ(d)}function NZ(n,a){if(a===ft)return _t;if(a=MM(a)||a,a.flags&96)return ZOe(n,a);if(a.flags&524288)return xlt(n,a);const c=vOe(a);if(c)return B1(n,a)?yd(c):_t;if(a.flags&111551&&CZ(n)){const d=Dlt(n,a);return d||(SN(n,788968),dr(a))}return _t}function Dlt(n,a){const c=Zr(n);if(!c.resolvedJSDocType){const d=dr(a);let _=d;if(a.valueDeclaration){const v=n.kind===205&&n.qualifier;d.symbol&&d.symbol!==a&&v&&(_=NZ(n,d.symbol))}c.resolvedJSDocType=_}return c.resolvedJSDocType}function fge(n){return mge(n)?n8e(n,hn):n}function mge(n){return!!(n.flags&3145728&&bt(n.types,mge)||n.flags&33554432&&!VM(n)&&mge(n.baseType)||n.flags&524288&&!Vh(n)||n.flags&432275456&&!UT(n))}function VM(n){return!!(n.flags&33554432&&n.constraint.flags&2)}function _ge(n,a){return a.flags&3||a===n||n.flags&1?n:n8e(n,a)}function n8e(n,a){const c=`${vd(n)}>${vd(a)}`,d=Io.get(c);if(d)return d;const _=vg(33554432);return _.baseType=n,_.constraint=a,Io.set(c,_),_}function hge(n){return VM(n)?n.baseType:ya([n.constraint,n.baseType])}function r8e(n){return n.kind===189&&n.elements.length===1}function i8e(n,a,c){return r8e(a)&&r8e(c)?i8e(n,a.elements[0],c.elements[0]):wb(Ti(a))===wb(n)?Ti(c):void 0}function Nlt(n,a){let c,d=!0;for(;a&&!Hi(a)&&a.kind!==327;){const _=a.parent;if(_.kind===169&&(d=!d),(d||n.flags&8650752)&&_.kind===194&&a===_.trueType){const v=i8e(n,_.checkType,_.extendsType);v&&(c=Rn(c,v))}else if(n.flags&262144&&_.kind===200&&!_.nameType&&a===_.type){const v=Ti(_);if(d_(v)===wb(n)){const x=P8(v);if(x){const k=Md(x);k&&cp(k,cE)&&(c=Rn(c,ei([Tt,cs])))}}}a=_}return c?_ge(n,ya(c)):n}function CZ(n){return!!(n.flags&16777216)&&(n.kind===183||n.kind===205)}function B1(n,a){return n.typeArguments?(qe(n,f.Type_0_is_not_generic,a?Si(a):n.typeName?xs(n.typeName):OF),!1):!0}function o8e(n){if(Ve(n.typeName)){const a=n.typeArguments;switch(n.typeName.escapedText){case"String":return B1(n),ke;case"Number":return B1(n),Tt;case"Boolean":return B1(n),Pi;case"Void":return B1(n),ir;case"Undefined":return B1(n),Oe;case"Null":return B1(n),fe;case"Function":case"function":return B1(n),Ot;case"array":return(!a||!a.length)&&!de?ec:void 0;case"promise":return(!a||!a.length)&&!de?nB(j):void 0;case"Object":if(a&&a.length===2){if(Q4(n)){const c=Ti(a[0]),d=Ti(a[1]),_=c===ke||c===Tt?[Bh(c,d,!1)]:et;return Ls(void 0,K,et,et,_)}return j}return B1(n),de?void 0:j}}}function Clt(n){const a=Ti(n.type);return X?N9(a,65536):a}function gge(n){const a=Zr(n);if(!a.resolvedType){if(Pg(n)&&mS(n.parent))return a.resolvedSymbol=ft,a.resolvedType=nc(n.parent.expression);let c,d;const _=788968;CZ(n)&&(d=o8e(n),d||(c=SN(n,_,!0),c===ft?c=SN(n,_|111551):SN(n,_),d=NZ(n,c))),d||(c=SN(n,_),d=NZ(n,c)),a.resolvedSymbol=c,a.resolvedType=d}return a.resolvedType}function d9(n){return Wt(n.typeArguments,Ti)}function a8e(n){const a=Zr(n);if(!a.resolvedType){const c=x3e(n);a.resolvedType=yd(Kp(c))}return a.resolvedType}function s8e(n,a){function c(_){const v=_.declarations;if(v)for(const x of v)switch(x.kind){case 263:case 264:case 266:return x}}if(!n)return a?wo:Ca;const d=Zs(n);return d.flags&524288?Ne(d.typeParameters)!==a?(qe(c(n),f.Global_type_0_must_have_1_type_parameter_s,El(n),a),a?wo:Ca):d:(qe(c(n),f.Global_type_0_must_be_a_class_or_interface_type,El(n)),a?wo:Ca)}function vge(n,a){return jM(n,111551,a?f.Cannot_find_global_value_0:void 0)}function yge(n,a){return jM(n,788968,a?f.Cannot_find_global_type_0:void 0)}function PZ(n,a,c){const d=jM(n,788968,c?f.Cannot_find_global_type_0:void 0);if(d&&(Zs(d),Ne(Ki(d).typeParameters)!==a)){const _=d.declarations&&In(d.declarations,xm);qe(_,f.Global_type_0_must_have_1_type_parameter_s,El(d),a);return}return d}function jM(n,a,c){return yl(void 0,n,a,c,n,!1,!1,!1)}function tc(n,a,c){const d=yge(n,c);return d||c?s8e(d,a):void 0}function Plt(){return Dh||(Dh=tc("TypedPropertyDescriptor",1,!0)||wo)}function Mlt(){return rr||(rr=tc("TemplateStringsArray",0,!0)||Ca)}function l8e(){return ii||(ii=tc("ImportMeta",0,!0)||Ca)}function c8e(){if(!Yr){const n=Ka(0,"ImportMetaExpression"),a=l8e(),c=Ka(4,"meta",8);c.parent=n,c.links.type=a;const d=ca([c]);n.members=d,Yr=Ls(n,d,et,et,et)}return Yr}function u8e(n){return oo||(oo=tc("ImportCallOptions",0,n))||Ca}function bge(n){return wa||(wa=tc("ImportAttributes",0,n))||Ca}function d8e(n){return Nd||(Nd=vge("Symbol",n))}function Llt(n){return kf||(kf=yge("SymbolConstructor",n))}function p8e(){return V_||(V_=tc("Symbol",0,!1))||Ca}function p9(n){return qg||(qg=tc("Promise",1,n))||wo}function f8e(n){return Bu||(Bu=tc("PromiseLike",1,n))||wo}function Ege(n){return Jg||(Jg=vge("Promise",n))}function klt(n){return Ap||(Ap=tc("PromiseConstructorLike",0,n))||Ca}function MZ(n){return W||(W=tc("AsyncIterable",1,n))||wo}function wlt(n){return Te||(Te=tc("AsyncIterator",3,n))||wo}function Olt(n){return st||(st=tc("AsyncIterableIterator",1,n))||wo}function Wlt(n){return qt||(qt=tc("AsyncGenerator",3,n))||wo}function Sge(n){return dg||(dg=tc("Iterable",1,n))||wo}function Flt(n){return Ud||(Ud=tc("Iterator",3,n))||wo}function zlt(n){return te||(te=tc("IterableIterator",1,n))||wo}function Blt(n){return lt||(lt=tc("Generator",3,n))||wo}function Glt(n){return Ft||(Ft=tc("IteratorYieldResult",1,n))||wo}function Vlt(n){return Vt||(Vt=tc("IteratorReturnResult",1,n))||wo}function m8e(n){return Oa||(Oa=tc("Disposable",0,n))||Ca}function jlt(n){return Ol||(Ol=tc("AsyncDisposable",0,n))||Ca}function _8e(n,a=0){const c=jM(n,788968,void 0);return c&&s8e(c,a)}function Ult(){return pu||(pu=PZ("Extract",2,!0)||ft),pu===ft?void 0:pu}function Hlt(){return Rc||(Rc=PZ("Omit",2,!0)||ft),Rc===ft?void 0:Rc}function Tge(n){return Ip||(Ip=PZ("Awaited",1,n)||(n?ft:void 0)),Ip===ft?void 0:Ip}function qlt(){return Hd||(Hd=tc("BigInt",0,!1))||Ca}function Jlt(n){return Pm??(Pm=tc("ClassDecoratorContext",1,n))??wo}function Klt(n){return Mm??(Mm=tc("ClassMethodDecoratorContext",2,n))??wo}function Xlt(n){return Ui??(Ui=tc("ClassGetterDecoratorContext",2,n))??wo}function Ylt(n){return Kg??(Kg=tc("ClassSetterDecoratorContext",2,n))??wo}function $lt(n){return ey??(ey=tc("ClassAccessorDecoratorContext",2,n))??wo}function Qlt(n){return Lm??(Lm=tc("ClassAccessorDecoratorTarget",2,n))??wo}function Zlt(n){return b1??(b1=tc("ClassAccessorDecoratorResult",2,n))??wo}function ect(n){return E1??(E1=tc("ClassFieldDecoratorContext",2,n))??wo}function tct(){return ab||(ab=vge("NaN",!1))}function nct(){return us||(us=PZ("Record",2,!0)||ft),us===ft?void 0:us}function x8(n,a){return n!==wo?uy(n,a):Ca}function h8e(n){return x8(Plt(),[n])}function g8e(n){return x8(Sge(!0),[n])}function Vu(n,a){return x8(a?na:$o,[n])}function Age(n){switch(n.kind){case 190:return 2;case 191:return v8e(n);case 202:return n.questionToken?2:n.dotDotDotToken?v8e(n):1;default:return 1}}function v8e(n){return g9(n.type)?4:8}function rct(n){const a=act(n.parent);if(g9(n))return a?na:$o;const d=Wt(n.elements,Age);return Ige(d,a,Wt(n.elements,ict))}function ict(n){return BR(n)||Ao(n)?n:void 0}function y8e(n,a){return!!px(n)||b8e(n)&&(n.kind===188?Lb(n.elementType):n.kind===189?bt(n.elements,Lb):a||bt(n.typeArguments,Lb))}function b8e(n){const 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 b8e(a);case 265:return!0}return!1}function Lb(n){switch(n.kind){case 183:return CZ(n)||!!(SN(n,788968).flags&524288);case 186:return!0;case 198:return n.operator!==158&&Lb(n.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return Lb(n.type);case 191:return n.type.kind!==188||Lb(n.type.elementType);case 192:case 193:return bt(n.types,Lb);case 199:return Lb(n.objectType)||Lb(n.indexType);case 194:return Lb(n.checkType)||Lb(n.extendsType)||Lb(n.trueType)||Lb(n.falseType)}return!1}function oct(n){const a=Zr(n);if(!a.resolvedType){const c=rct(n);if(c===wo)a.resolvedType=Ca;else if(!(n.kind===189&&bt(n.elements,d=>!!(Age(d)&8)))&&y8e(n))a.resolvedType=n.kind===189&&n.elements.length===0?c:pge(c,n,void 0);else{const d=n.kind===188?[Ti(n.elementType)]:Wt(n.elements,Ti);a.resolvedType=xge(c,d)}}return a.resolvedType}function act(n){return OS(n)&&n.operator===148}function Gh(n,a,c=!1,d=[]){const _=Ige(a||Wt(n,v=>1),c,d);return _===wo?Ca:n.length?xge(_,n):_}function Ige(n,a,c){if(n.length===1&&n[0]&4)return a?na:$o;const d=Wt(n,v=>v&1?"#":v&2?"?":v&4?".":"*").join()+(a?"R":"")+(bt(c,v=>!!v)?","+Wt(c,v=>v?as(v):"_").join(","):"");let _=Co.get(d);return _||Co.set(d,_=sct(n,a,c)),_}function sct(n,a,c){const d=n.length,_=ou(n,be=>!!(be&9));let v;const x=[];let k=0;if(d){v=new Array(d);for(let be=0;be<d;be++){const ge=v[be]=gf(),Je=n[be];if(k|=Je,!(k&12)){const gt=Ka(4|(Je&2?16777216:0),""+be,a?8:0);gt.links.tupleLabelDeclaration=c==null?void 0:c[be],gt.links.type=ge,x.push(gt)}}}const F=x.length,H=Ka(4,"length",a?8:0);if(k&12)H.links.type=Tt;else{const be=[];for(let ge=_;ge<=d;ge++)be.push(m_(ge));H.links.type=ei(be)}x.push(H);const re=Wf(12);return re.typeParameters=v,re.outerTypeParameters=void 0,re.localTypeParameters=v,re.instantiations=new Map,re.instantiations.set(pm(re.typeParameters),re),re.target=re,re.resolvedTypeArguments=re.typeParameters,re.thisType=gf(),re.thisType.isThisType=!0,re.thisType.constraint=re,re.declaredProperties=x,re.declaredCallSignatures=et,re.declaredConstructSignatures=et,re.declaredIndexInfos=et,re.elementFlags=n,re.minLength=_,re.fixedLength=F,re.hasRestElement=!!(k&12),re.combinedFlags=k,re.readonly=a,re.labeledElementDeclarations=c,re}function xge(n,a){return n.objectFlags&8?Rge(n,a):uy(n,a)}function Rge(n,a){var c,d,_,v;if(!(n.combinedFlags&14))return uy(n,a);if(n.combinedFlags&8){const gt=mi(a,(Dt,an)=>!!(n.elementFlags[an]&8&&Dt.flags&1179648));if(gt>=0)return m9(Wt(a,(Dt,an)=>n.elementFlags[an]&8?Dt:hn))?dl(a[gt],Dt=>Rge(n,HB(a,gt,Dt))):_t}const x=[],k=[],F=[];let H=-1,re=-1,be=-1;for(let gt=0;gt<a.length;gt++){const Dt=a[gt],an=n.elementFlags[gt];if(an&8)if(Dt.flags&1)Je(Dt,4,(c=n.labeledElementDeclarations)==null?void 0:c[gt]);else if(Dt.flags&58982400||Kd(Dt))Je(Dt,8,(d=n.labeledElementDeclarations)==null?void 0:d[gt]);else if(Wa(Dt)){const cn=G1(Dt);if(cn.length+x.length>=1e4)return qe(C,$h(C)?f.Type_produces_a_tuple_type_that_is_too_large_to_represent:f.Expression_produces_a_tuple_type_that_is_too_large_to_represent),_t;Xe(cn,(ar,Wn)=>{var ln;return Je(ar,Dt.target.elementFlags[Wn],(ln=Dt.target.labeledElementDeclarations)==null?void 0:ln[Wn])})}else Je(my(Dt)&&iE(Dt,Tt)||_t,4,(_=n.labeledElementDeclarations)==null?void 0:_[gt]);else Je(Dt,an,(v=n.labeledElementDeclarations)==null?void 0:v[gt])}for(let gt=0;gt<H;gt++)k[gt]&2&&(k[gt]=1);re>=0&&re<be&&(x[re]=ei(Zo(x.slice(re,be+1),(gt,Dt)=>k[re+Dt]&8?Pp(gt,Tt):gt)),x.splice(re+1,be-re),k.splice(re+1,be-re),F.splice(re+1,be-re));const ge=Ige(k,n.readonly,F);return ge===wo?Ca:k.length?uy(ge,x):ge;function Je(gt,Dt,an){Dt&1&&(H=k.length),Dt&4&&re<0&&(re=k.length),Dt&6&&(be=k.length),x.push(Dt&2?lp(gt,!0):gt),k.push(Dt),F.push(an)}}function UM(n,a,c=0){const d=n.target,_=dy(n)-c;return a>d.fixedLength?Jut(n)||Gh(et):Gh(Js(n).slice(a,_),d.elementFlags.slice(a,_),!1,d.labeledElementDeclarations&&d.labeledElementDeclarations.slice(a,_))}function E8e(n){return ei(Rn($te(n.target.fixedLength,a=>Xd(""+a)),Y_(n.target.readonly?na:$o)))}function lct(n,a){const c=mi(n.elementFlags,d=>!(d&a));return c>=0?c:n.elementFlags.length}function R8(n,a){return n.elementFlags.length-Yi(n.elementFlags,c=>!(c&a))-1}function Dge(n){return n.fixedLength+R8(n,3)}function G1(n){const a=Js(n),c=dy(n);return a.length===c?a:a.slice(0,c)}function cct(n){return lp(Ti(n.type),!0)}function vd(n){return n.id}function dv(n,a){return Tv(n,a,vd,nl)>=0}function f9(n,a){const c=Tv(n,a,vd,nl);return c<0?(n.splice(~c,0,a),!0):!1}function uct(n,a,c){const d=c.flags;if(!(d&131072))if(a|=d&473694207,d&465829888&&(a|=33554432),d&2097152&&Wr(c)&67108864&&(a|=536870912),c===Rt&&(a|=8388608),!X&&d&98304)Wr(c)&65536||(a|=4194304);else{const _=n.length,v=_&&c.id>n[_-1].id?~_:Tv(n,c,vd,nl);v<0&&n.splice(~v,0,c)}return a}function S8e(n,a,c){let d;for(const _ of c)_!==d&&(a=_.flags&1048576?S8e(n,a|(hct(_)?1048576:0),_.types):uct(n,a,_),d=_);return a}function dct(n,a){var c;if(n.length<2)return n;const d=pm(n),_=fa.get(d);if(_)return _;const v=a&&bt(n,H=>!!(H.flags&524288)&&!Kd(H)&&Yge(p_(H))),x=n.length;let k=x,F=0;for(;k>0;){k--;const H=n[k];if(v||H.flags&469499904){if(H.flags&262144&&uv(H).flags&1048576){$_(H,ei(Wt(n,ge=>ge===H?Vr:ge)),wf)&&Sy(n,k);continue}const re=H.flags&61603840?In(gs(H),ge=>__(dr(ge))):void 0,be=re&&yd(dr(re));for(const ge of n)if(H!==ge){if(F===1e5&&F/(x-k)*x>1e6){(c=sr)==null||c.instant(sr.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(gt=>gt.id)}),qe(C,f.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(F++,re&&ge.flags&61603840){const Je=Ke(ge,re.escapedName);if(Je&&__(Je)&&yd(Je)!==be)continue}if($_(H,ge,wf)&&(!(Wr(ly(H))&1)||!(Wr(ly(ge))&1)||lE(H,ge))){Sy(n,k);break}}}}return fa.set(d,n),n}function pct(n,a,c){let d=n.length;for(;d>0;){d--;const _=n[d],v=_.flags;(v&402653312&&a&4||v&256&&a&8||v&2048&&a&64||v&8192&&a&4096||c&&v&32768&&a&16384||j1(_)&&dv(n,_.regularType))&&Sy(n,d)}}function fct(n){const a=mn(n,UT);if(a.length){let c=n.length;for(;c>0;){c--;const d=n[c];d.flags&128&&bt(a,_=>mct(d,_))&&Sy(n,c)}}}function mct(n,a){return a.flags&134217728?cee(n,a):lee(n,a)}function _ct(n){const a=[];for(const c of n)if(c.flags&2097152&&Wr(c)&67108864){const d=c.types[0].flags&8650752?0:1;Ef(a,c.types[d])}for(const c of a){const d=[];for(const v of n)if(v.flags&2097152&&Wr(v)&67108864){const x=v.types[0].flags&8650752?0:1;v.types[x]===c&&f9(d,v.types[1-x])}const _=Gu(c);if(cp(_,v=>dv(d,v))){let v=n.length;for(;v>0;){v--;const x=n[v];if(x.flags&2097152&&Wr(x)&67108864){const k=x.types[0].flags&8650752?0:1;x.types[k]===c&&dv(d,x.types[1-k])&&Sy(n,v)}}f9(n,c)}}}function hct(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function T8e(n,a){for(const c of a)if(c.flags&1048576){const d=c.origin;c.aliasSymbol||d&&!(d.flags&1048576)?Ef(n,c):d&&d.flags&1048576&&T8e(n,d.types)}}function Nge(n,a){const c=rx(n);return c.types=a,c}function ei(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)){const v=a===0?"N":a===2?"S":"L",x=n[0].id<n[1].id?0:1,k=n[x].id+v+n[1-x].id+ux(c,d);let F=Ci.get(k);return F||(F=A8e(n,a,c,d,void 0),Ci.set(k,F)),F}return A8e(n,a,c,d,_)}function A8e(n,a,c,d,_){let v=[];const x=S8e(v,0,n);if(a!==0){if(x&3)return x&1?x&8388608?Rt:j:x&65536||dv(v,hn)?hn:q;if(x&32768&&v.length>=2&&v[0]===Oe&&v[1]===L&&Sy(v,1),(x&402664352||x&16384&&x&32768)&&pct(v,x,!!(a&2)),x&128&&x&402653184&&fct(v),x&536870912&&_ct(v),a===2&&(v=dct(v,!!(x&524288)),!v))return _t;if(v.length===0)return x&65536?x&4194304?fe:Be:x&32768?x&4194304?Oe:Lt:Vr}if(!_&&x&1048576){const F=[];T8e(F,n);const H=[];for(const be of v)bt(F,ge=>dv(ge.types,be))||H.push(be);if(!c&&F.length===1&&H.length===0)return F[0];if(rd(F,(be,ge)=>be+ge.types.length,0)+H.length===v.length){for(const be of F)f9(H,be);_=Nge(1048576,H)}}const k=(x&36323331?0:32768)|(x&2097152?16777216:0);return Pge(v,k,c,d,_)}function gct(n,a){let c;const d=[];for(const v of n){const x=Gf(v);if(x){if(x.kind!==0&&x.kind!==1||c&&!Cge(c,x))return;c=x,d.push(x.type)}else{const k=a!==2097152?ps(v):void 0;if(k!==en&&k!==En)return}}if(!c)return;const _=JOe(d,a);return u9(c.kind,c.parameterName,c.parameterIndex,_)}function Cge(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function Pge(n,a,c,d,_){if(n.length===0)return Vr;if(n.length===1)return n[0];const x=(_?_.flags&1048576?`|${pm(_.types)}`:_.flags&2097152?`&${pm(_.types)}`:`#${_.type.id}|${pm(n)}`:pm(n))+ux(c,d);let k=Ln.get(x);return k||(k=vg(1048576),k.objectFlags=a|RZ(n,98304),k.types=n,k.origin=_,k.aliasSymbol=c,k.aliasTypeArguments=d,n.length===2&&n[0].flags&512&&n[1].flags&512&&(k.flags|=16,k.intrinsicName="boolean"),Ln.set(x,k)),k}function vct(n){const a=Zr(n);if(!a.resolvedType){const c=px(n);a.resolvedType=ei(Wt(n.types,Ti),1,c,IN(c))}return a.resolvedType}function yct(n,a,c){const d=c.flags;return d&2097152?I8e(n,a,c.types):(Vh(c)?a&16777216||(a|=16777216,n.set(c.id.toString(),c)):(d&3?c===Rt&&(a|=8388608):(X||!(d&98304))&&(c===L&&(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 I8e(n,a,c){for(const d of c)a=yct(n,a,yd(d));return a}function bct(n,a){let c=n.length;for(;c>0;){c--;const 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)&&Sy(n,c)}}function Ect(n,a){for(const c of n)if(!dv(c.types,a)){const d=a.flags&128?ke:a.flags&288?Tt:a.flags&2048?kt:a.flags&8192?xi:void 0;if(!d||!dv(c.types,d))return!1}return!0}function Sct(n){let a=n.length;const c=mn(n,d=>!!(d.flags&128));for(;a>0;){a--;const d=n[a];if(d.flags&402653184){for(const _ of c)if(Wb(_,d)){Sy(n,a);break}else if(UT(d))return!0}}return!1}function x8e(n,a){for(let c=0;c<n.length;c++)n[c]=dc(n[c],d=>!(d.flags&a))}function Tct(n){let a;const c=mi(n,x=>!!(Wr(x)&32768));if(c<0)return!1;let d=c+1;for(;d<n.length;){const x=n[d];Wr(x)&32768?((a||(a=[n[c]])).push(x),Sy(n,d)):d++}if(!a)return!1;const _=[],v=[];for(const x of a)for(const k of x.types)f9(_,k)&&Ect(a,k)&&f9(v,k);return n[c]=Pge(v,32768),!0}function Act(n,a,c,d){const _=vg(2097152);return _.objectFlags=a|RZ(n,98304),_.types=n,_.aliasSymbol=c,_.aliasTypeArguments=d,_}function ya(n,a,c,d){const _=new Map,v=I8e(_,0,n),x=zo(_.values());let k=0;if(v&131072)return Or(x,vo)?vo:Vr;if(X&&v&98304&&v&84410368||v&67108864&&v&402783228||v&402653316&&v&67238776||v&296&&v&469891796||v&2112&&v&469889980||v&12288&&v&469879804||v&49152&&v&469842940||v&402653184&&v&128&&Sct(x))return Vr;if(v&1)return v&8388608?Rt:j;if(!X&&v&98304)return v&16777216?Vr:v&32768?Oe:fe;if((v&4&&v&402653312||v&8&&v&256||v&64&&v&2048||v&4096&&v&8192||v&16384&&v&32768||v&16777216&&v&470302716)&&(d||bct(x,v)),v&262144&&(x[x.indexOf(Oe)]=L),x.length===0)return hn;if(x.length===1)return x[0];if(x.length===2){const re=x[0].flags&8650752?0:1,be=x[re],ge=x[1-re];if(be.flags&8650752&&(ge.flags&469893116&&!W8e(ge)||v&16777216)){const Je=Gu(be);if(Je&&cp(Je,gt=>!!(gt.flags&469893116)||Vh(gt))){if(b9(Je,ge))return be;if(!(Je.flags&1048576&&Gm(Je,gt=>b9(gt,ge)))&&!b9(ge,Je))return Vr;k=67108864}}}const F=pm(x)+ux(a,c);let H=Ar.get(F);if(!H){if(v&1048576)if(Tct(x))H=ya(x,a,c);else if(Jn(x,re=>!!(re.flags&1048576&&re.types[0].flags&32768))){const re=bt(x,F8)?L:Oe;x8e(x,32768),H=ei([ya(x),re],1,a,c)}else if(Jn(x,re=>!!(re.flags&1048576&&(re.types[0].flags&65536||re.types[1].flags&65536))))x8e(x,65536),H=ei([ya(x),fe],1,a,c);else if(x.length>=4){const re=Math.floor(x.length/2);H=ya([ya(x.slice(0,re)),ya(x.slice(re))],a,c)}else{if(!m9(x))return _t;const re=Ict(x),be=bt(re,ge=>!!(ge.flags&2097152))&&Mge(re)>Mge(x)?Nge(2097152,x):void 0;H=ei(re,1,a,c,be)}else H=Act(x,k,a,c);Ar.set(F,H)}return H}function R8e(n){return rd(n,(a,c)=>c.flags&1048576?a*c.types.length:c.flags&131072?0:a,1)}function m9(n){var a;const c=R8e(n);return c>=1e5?((a=sr)==null||a.instant(sr.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(d=>d.id),size:c}),qe(C,f.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function Ict(n){const a=R8e(n),c=[];for(let d=0;d<a;d++){const _=n.slice();let v=d;for(let k=n.length-1;k>=0;k--)if(n[k].flags&1048576){const F=n[k].types,H=F.length;_[k]=F[v%H],v=Math.floor(v/H)}const x=ya(_);x.flags&131072||c.push(x)}return c}function D8e(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?D8e(n.origin):Mge(n.types)}function Mge(n){return rd(n,(a,c)=>a+D8e(c),0)}function xct(n){const a=Zr(n);if(!a.resolvedType){const c=px(n),d=Wt(n.types,Ti),_=d.length===2?d.indexOf(lc):-1,v=_>=0?d[1-_]:hn,x=!!(v.flags&76||v.flags&134217728&&UT(v));a.resolvedType=ya(d,c,IN(c),x)}return a.resolvedType}function N8e(n,a){const c=vg(4194304);return c.type=n,c.indexFlags=a,c}function Rct(n){const a=rx(4194304);return a.type=n,a}function C8e(n,a){return a&1?n.resolvedStringIndexType||(n.resolvedStringIndexType=N8e(n,1)):n.resolvedIndexType||(n.resolvedIndexType=N8e(n,0))}function P8e(n,a){const c=d_(n),d=yf(n),_=cy(n.target||n);if(!_&&!(a&2))return d;const v=[];if(qT(d)){if(vN(n))return C8e(n,a);ZT(d,k)}else if(vN(n)){const F=Ld(FT(n));Jhe(F,8576,!!(a&1),k)}else ZT(o9(d),k);const x=a&2?dc(ei(v),F=>!(F.flags&5)):ei(v);if(x.flags&1048576&&d.flags&1048576&&pm(x.types)===pm(d.types))return d;return x;function k(F){const H=_?lo(_,C8(n.mapper,c,F)):F;v.push(H===ke?xo:H)}}function Dct(n){const a=d_(n);return c(cy(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 py(n){if(qi(n))return Vr;if(hp(n))return yd(mo(n));if(Za(n))return yd(Tg(n));const a=IS(n);return a!==void 0?Xd(Vi(a)):yt(n)?yd(mo(n)):Vr}function TN(n,a,c){if(c||!(xf(n)&6)){let d=Ki(yZ(n)).nameType;if(!d){const _=Lo(n.valueDeclaration);d=n.escapedName==="default"?Xd("default"):_&&py(_)||(tk(n)?void 0:Xd(El(n)))}if(d&&d.flags&a)return d}return Vr}function M8e(n,a){return!!(n.flags&a||n.flags&2097152&&bt(n.types,c=>M8e(c,a)))}function Nct(n,a,c){const d=c&&(Wr(n)&7||n.aliasSymbol)?Rct(n):void 0,_=Wt(gs(n),x=>TN(x,a)),v=Wt(gd(n),x=>x!==jr&&M8e(x.keyType,a)?x.keyType===ke&&a&8?xo:x.keyType:Vr);return ei(So(_,v),1,void 0,void 0,d)}function Lge(n,a=0){return!!(n.flags&58982400||zb(n)||Kd(n)&&(!Dct(n)||EZ(n)===2)||n.flags&1048576&&!(a&4)&&ege(n)||n.flags&2097152&&Cl(n,465829888)&&bt(n.types,Vh))}function Y_(n,a=Ue){return n=f_(n),VM(n)?fge(Y_(n.baseType,a)):Lge(n,a)?C8e(n,a):n.flags&1048576?ya(Wt(n.types,c=>Y_(c,a))):n.flags&2097152?ei(Wt(n.types,c=>Y_(c,a))):Wr(n)&32?P8e(n,a):n===Rt?Rt:n.flags&2?Vr:n.flags&131073?Fs:Nct(n,(a&2?128:402653316)|(a&1?0:12584),a===Ue)}function L8e(n){if(Le)return n;const a=Ult();return a?EN(a,[n,ke]):ke}function Cct(n){const a=L8e(Y_(n));return a.flags&131072?ke:a}function Pct(n){const a=Zr(n);if(!a.resolvedType)switch(n.operator){case 143:a.resolvedType=Y_(Ti(n.type));break;case 158:a.resolvedType=n.type.kind===155?Gge(XL(n.parent)):_t;break;case 148:a.resolvedType=Ti(n.type);break;default:N.assertNever(n.operator)}return a.resolvedType}function Mct(n){const a=Zr(n);return a.resolvedType||(a.resolvedType=jT([n.head.text,...Wt(n.templateSpans,c=>c.literal.text)],Wt(n.templateSpans,c=>Ti(c.type)))),a.resolvedType}function jT(n,a){const c=mi(a,H=>!!(H.flags&1179648));if(c>=0)return m9(a)?dl(a[c],H=>jT(n,HB(a,c,H))):_t;if(Or(a,Rt))return Rt;const d=[],_=[];let v=n[0];if(!F(n,a))return ke;if(d.length===0)return Xd(v);if(_.push(v),Jn(_,H=>H==="")){if(Jn(d,H=>!!(H.flags&4)))return ke;if(d.length===1&&UT(d[0]))return d[0]}const x=`${pm(d)}|${Wt(_,H=>H.length).join(",")}|${_.join("")}`;let k=yi.get(x);return k||yi.set(x,k=kct(_,d)),k;function F(H,re){for(let be=0;be<re.length;be++){const ge=re[be];if(ge.flags&101248)v+=Lct(ge)||"",v+=H[be+1];else if(ge.flags&134217728){if(v+=ge.texts[0],!F(ge.texts,ge.types))return!1;v+=H[be+1]}else if(qT(ge)||_9(ge))d.push(ge),_.push(v),v=H[be+1];else return!1}return!0}}function Lct(n){return n.flags&128?n.value:n.flags&256?""+n.value:n.flags&2048?HE(n.value):n.flags&98816?n.intrinsicName:void 0}function kct(n,a){const c=vg(134217728);return c.texts=n,c.types=a,c}function dx(n,a){return a.flags&1179648?dl(a,c=>dx(n,c)):a.flags&128?Xd(k8e(n,a.value)):a.flags&134217728?jT(...wct(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||qT(a)?w8e(n,a):_9(a)?w8e(n,jT(["",""],[a])):a}function k8e(n,a){switch(BF.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 wct(n,a,c){switch(BF.get(n.escapedName)){case 0:return[a.map(d=>d.toUpperCase()),c.map(d=>dx(n,d))];case 1:return[a.map(d=>d.toLowerCase()),c.map(d=>dx(n,d))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[dx(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]===""?[dx(n,c[0]),...c.slice(1)]:c]}return[a,c]}function w8e(n,a){const c=`${Sa(n)},${vd(a)}`;let d=Qi.get(c);return d||Qi.set(c,d=Oct(n,a)),d}function Oct(n,a){const c=yg(268435456,n);return c.type=a,c}function Wct(n,a,c,d,_){const v=vg(8388608);return v.objectType=n,v.indexType=a,v.accessFlags=c,v.aliasSymbol=d,v.aliasTypeArguments=_,v}function D8(n){if(de)return!1;if(Wr(n)&4096)return!0;if(n.flags&1048576)return Jn(n.types,D8);if(n.flags&2097152)return bt(n.types,D8);if(n.flags&465829888){const a=$he(n);return a!==n&&D8(a)}return!1}function LZ(n,a){return tm(n)?nm(n):a&&oc(a)?IS(a):void 0}function kge(n,a){if(a.flags&8208){const c=Vn(n.parent,d=>!ws(d))||n.parent;return NE(c)?S_(c)&&Ve(n)&&U6e(c,n):Jn(a.declarations,d=>!ea(d)||ry(d))}return!0}function O8e(n,a,c,d,_,v){const x=_&&_.kind===212?_:void 0,k=_&&qi(_)?void 0:LZ(c,_);if(k!==void 0){if(v&256)return fE(a,k)||j;const H=va(a,k);if(H){if(v&64&&_&&H.declarations&&ub(H)&&kge(_,H)){const be=(x==null?void 0:x.argumentExpression)??(WS(_)?_.indexType:_);iy(be,H.declarations,k)}if(x){if(J9(H,x,e3e(x.expression,a.symbol)),j3e(x,H,MA(x))){qe(x.argumentExpression,f.Cannot_assign_to_0_because_it_is_a_read_only_property,Si(H));return}if(v&8&&(Zr(_).resolvedSymbol=H),J4e(x,H))return it}const re=v&4?F1(H):dr(H);return x&&MA(x)!==1?Vb(x,re):_&&WS(_)&&F8(re)?ei([re,Oe]):re}if(cp(a,Wa)&&og(k)){const re=+k;if(_&&cp(a,be=>!be.target.hasRestElement)&&!(v&16)){const be=wge(_);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,Hn(a),dy(a),Vi(k))}else qe(be,f.Property_0_does_not_exist_on_type_1,Vi(k),Hn(a))}if(re>=0)return F(Sg(a,Tt)),A6e(a,re,v&1?L:void 0)}}if(!(c.flags&98304)&&xu(c,402665900)){if(a.flags&131073)return a;const H=S8(a,c)||Sg(a,ke);if(H){if(v&2&&H.keyType!==Tt){x&&(v&4?qe(x,f.Type_0_is_generic_and_can_only_be_indexed_for_reading,Hn(n)):qe(x,f.Type_0_cannot_be_used_to_index_type_1,Hn(c),Hn(n)));return}if(_&&H.keyType===ke&&!xu(c,12)){const re=wge(_);return qe(re,f.Type_0_cannot_be_used_as_an_index_type,Hn(c)),v&1?ei([H.type,L]):H.type}return F(H),v&1&&!(a.symbol&&a.symbol.flags&384&&c.symbol&&c.flags&1024&&Cd(c.symbol)===a.symbol)?ei([H.type,L]):H.type}if(c.flags&131072)return Vr;if(D8(a))return j;if(x&&!Bee(a)){if(pE(a)){if(de&&c.flags&384)return ts.add(kr(x,f.Property_0_does_not_exist_on_type_1,c.value,Hn(a))),Oe;if(c.flags&12){const re=Wt(a.properties,be=>dr(be));return ei(Rn(re,Oe))}}if(a.symbol===ot&&k!==void 0&&ot.exports.has(k)&&ot.exports.get(k).flags&418)qe(x,f.Property_0_does_not_exist_on_type_1,Vi(k),Hn(a));else if(de&&!V.suppressImplicitAnyIndexErrors&&!(v&128))if(k!==void 0&&$4e(k,a)){const re=Hn(a);qe(x,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,k,re,re+"["+fc(x.argumentExpression)+"]")}else if(iE(a,Tt))qe(x.argumentExpression,f.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let re;if(k!==void 0&&(re=oye(k,a)))re!==void 0&&qe(x.argumentExpression,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,k,Hn(a),re);else{const be=wft(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,Hn(a),be);else{let ge;if(c.flags&1024)ge=Vo(void 0,f.Property_0_does_not_exist_on_type_1,"["+Hn(c)+"]",Hn(a));else if(c.flags&8192){const Je=Hp(c.symbol,x);ge=Vo(void 0,f.Property_0_does_not_exist_on_type_1,"["+Je+"]",Hn(a))}else c.flags&128||c.flags&256?ge=Vo(void 0,f.Property_0_does_not_exist_on_type_1,c.value,Hn(a)):c.flags&12&&(ge=Vo(void 0,f.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Hn(c),Hn(a)));ge=Vo(ge,f.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Hn(d),Hn(a)),ts.add(Lg(Un(x),x,ge))}}}return}}if(D8(a))return j;if(_){const H=wge(_);c.flags&384?qe(H,f.Property_0_does_not_exist_on_type_1,""+c.value,Hn(a)):c.flags&12?qe(H,f.Type_0_has_no_matching_index_signature_for_type_1,Hn(a),Hn(c)):qe(H,f.Type_0_cannot_be_used_as_an_index_type,Hn(c))}if(Nt(c))return c;return;function F(H){H&&H.isReadonly&&x&&(eg(x)||Rj(x))&&qe(x,f.Index_signature_in_type_0_only_permits_reading,Hn(a))}}function wge(n){return n.kind===212?n.argumentExpression:n.kind===199?n.indexType:n.kind===167?n.expression:n}function _9(n){if(n.flags&2097152){let a=!1;for(const c of n.types)if(c.flags&101248||_9(c))a=!0;else if(!(c.flags&524288))return!1;return a}return!!(n.flags&77)||UT(n)}function UT(n){return!!(n.flags&134217728)&&Jn(n.types,_9)||!!(n.flags&268435456)&&_9(n.type)}function W8e(n){return!!(n.flags&402653184)&&!UT(n)}function AN(n){return!!N8(n)}function HT(n){return!!(N8(n)&4194304)}function qT(n){return!!(N8(n)&8388608)}function N8(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|rd(n.types,(a,c)=>a|N8(c),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|N8(n.baseType)|N8(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||Kd(n)||zb(n)?4194304:0)|(n.flags&63176704||W8e(n)?8388608:0)}function pv(n,a){return n.flags&8388608?zct(n,a):n.flags&16777216?Bct(n,a):n}function F8e(n,a,c){if(n.flags&1048576||n.flags&2097152&&!Lge(n)){const d=Wt(n.types,_=>pv(Pp(_,a),c));return n.flags&2097152||c?ya(d):ei(d)}}function Fct(n,a,c){if(a.flags&1048576){const d=Wt(a.types,_=>pv(Pp(n,_),c));return c?ya(d):ei(d)}}function zct(n,a){const c=a?"simplifiedForWriting":"simplifiedForReading";if(n[c])return n[c]===tu?n:n[c];n[c]=tu;const d=pv(n.objectType,a),_=pv(n.indexType,a),v=Fct(d,_,a);if(v)return n[c]=v;if(!(_.flags&465829888)){const x=F8e(d,_,a);if(x)return n[c]=x}if(zb(d)&&_.flags&296){const x=XM(d,_.flags&8?0:d.target.fixedLength,0,a);if(x)return n[c]=x}return Kd(d)&&EZ(d)!==2?n[c]=dl(kZ(d,n.indexType),x=>pv(x,a)):n[c]=n}function Bct(n,a){const c=n.checkType,d=n.extendsType,_=aE(n),v=sE(n);if(v.flags&131072&&wb(_)===wb(c)){if(c.flags&1||ba(KT(c),KT(d)))return pv(_,a);if(z8e(c,d))return Vr}else if(_.flags&131072&&wb(v)===wb(c)){if(!(c.flags&1)&&ba(KT(c),KT(d)))return Vr;if(c.flags&1||z8e(c,d))return pv(v,a)}return n}function z8e(n,a){return!!(ei([i9(n,a),Vr]).flags&131072)}function kZ(n,a){const c=Mp([d_(n)],[a]),d=H1(n.mapper,c);return lo(cv(n.target||n),d)}function Pp(n,a,c=0,d,_,v){return kb(n,a,c,d,_,v)||(d?_t:hn)}function B8e(n,a){return cp(n,c=>{if(c.flags&384){const d=nm(c);if(og(d)){const _=+d;return _>=0&&_<a}}return!1})}function kb(n,a,c=0,d,_,v){if(n===Rt||a===Rt)return Rt;if(n=f_(n),c6e(n)&&!(a.flags&98304)&&xu(a,12)&&(a=ke),V.noUncheckedIndexedAccess&&c&32&&(c|=1),qT(a)||(d&&d.kind!==199?zb(n)&&!B8e(a,Dge(n.target)):HT(n)&&!(Wa(n)&&B8e(a,Dge(n.target)))||ege(n))){if(n.flags&3)return n;const k=c&1,F=n.id+","+a.id+","+k+ux(_,v);let H=ci.get(F);return H||ci.set(F,H=Wct(n,a,k,_,v)),H}const x=zM(n);if(a.flags&1048576&&!(a.flags&16)){const k=[];let F=!1;for(const H of a.types){const re=O8e(n,x,H,a,d,c|(F?128:0));if(re)k.push(re);else if(d)F=!0;else return}return F?void 0:c&4?ya(k,_,v):ei(k,1,_,v)}return O8e(n,x,a,a,d,c|8|64)}function G8e(n){const a=Zr(n);if(!a.resolvedType){const c=Ti(n.objectType),d=Ti(n.indexType),_=px(n);a.resolvedType=Pp(c,d,0,n,_,IN(_))}return a.resolvedType}function Oge(n){const a=Zr(n);if(!a.resolvedType){const c=Wf(32,n.symbol);c.declaration=n,c.aliasSymbol=px(n),c.aliasTypeArguments=IN(c.aliasSymbol),a.resolvedType=c,yf(c)}return a.resolvedType}function wb(n){return n.flags&33554432?wb(n.baseType):n.flags&8388608&&(n.objectType.flags&33554432||n.indexType.flags&33554432)?Pp(wb(n.objectType),wb(n.indexType)):n}function V8e(n){return tI(n)&&Ne(n.elements)>0&&!bt(n.elements,a=>jW(a)||UW(a)||BR(a)&&!!(a.questionToken||a.dotDotDotToken))}function j8e(n,a){return AN(n)||a&&Wa(n)&&bt(G1(n),AN)}function Wge(n,a,c,d,_){let v,x,k=0;for(;;){if(k===1e3)return qe(C,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),_t;const H=lo(wb(n.checkType),a),re=lo(n.extendsType,a);if(H===_t||re===_t)return _t;if(H===Rt||re===Rt)return Rt;const be=YL(n.node.checkType),ge=YL(n.node.extendsType),Je=V8e(be)&&V8e(ge)&&Ne(be.elements)===Ne(ge.elements),gt=j8e(H,Je);let Dt;if(n.inferTypeParameters){const cn=B8(n.inferTypeParameters,void 0,0);a&&(cn.nonFixingMapper=H1(cn.nonFixingMapper,a)),gt||gv(cn.inferences,H,re,1536),Dt=a?H1(cn.mapper,a):cn.mapper}const an=Dt?lo(n.extendsType,Dt):re;if(!gt&&!j8e(an,Je)){if(!(an.flags&3)&&(H.flags&1||!ba(M8(H),M8(an)))){(H.flags&1||c&&!(an.flags&131072)&&Gm(M8(an),ar=>ba(ar,M8(H))))&&(x||(x=[])).push(lo(Ti(n.node.trueType),Dt||a));const cn=Ti(n.node.falseType);if(cn.flags&16777216){const ar=cn.root;if(ar.node.parent===n.node&&(!ar.isDistributive||ar.checkType===n.checkType)){n=ar;continue}if(F(cn,a))continue}v=lo(cn,a);break}if(an.flags&3||ba(KT(H),KT(an))){const cn=Ti(n.node.trueType),ar=Dt||a;if(F(cn,ar))continue;v=lo(cn,ar);break}}v=vg(16777216),v.root=n,v.checkType=lo(n.checkType,a),v.extendsType=lo(n.extendsType,a),v.mapper=a,v.combinedMapper=Dt,v.aliasSymbol=d||n.aliasSymbol,v.aliasTypeArguments=d?_:fy(n.aliasTypeArguments,a);break}return x?ei(Rn(x,v)):v;function F(H,re){if(H.flags&16777216&&re){const be=H.root;if(be.outerTypeParameters){const ge=H1(H.mapper,re),Je=Wt(be.outerTypeParameters,an=>Ob(an,ge)),gt=Mp(be.outerTypeParameters,Je),Dt=be.isDistributive?Ob(be.checkType,gt):void 0;if(!Dt||Dt===be.checkType||!(Dt.flags&1179648))return n=be,a=gt,d=void 0,_=void 0,be.aliasSymbol&&k++,!0}}return!1}}function aE(n){return n.resolvedTrueType||(n.resolvedTrueType=lo(Ti(n.root.node.trueType),n.mapper))}function sE(n){return n.resolvedFalseType||(n.resolvedFalseType=lo(Ti(n.root.node.falseType),n.mapper))}function Gct(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?lo(Ti(n.root.node.trueType),n.combinedMapper):aE(n))}function U8e(n){let a;return n.locals&&n.locals.forEach(c=>{c.flags&262144&&(a=Rn(a,Zs(c)))}),a}function Vct(n){return n.isDistributive&&(y9(n.checkType,n.node.trueType)||y9(n.checkType,n.node.falseType))}function jct(n){const a=Zr(n);if(!a.resolvedType){const c=Ti(n.checkType),d=px(n),_=IN(d),v=Pn(n,!0),x=_?v:mn(v,F=>y9(F,n)),k={node:n,checkType:c,extendsType:Ti(n.extendsType),isDistributive:!!(c.flags&262144),inferTypeParameters:U8e(n),outerTypeParameters:x,instantiations:void 0,aliasSymbol:d,aliasTypeArguments:_};a.resolvedType=Wge(k,void 0,!1),x&&(k.instantiations=new Map,k.instantiations.set(pm(x),a.resolvedType))}return a.resolvedType}function Uct(n){const a=Zr(n);return a.resolvedType||(a.resolvedType=WT(Ir(n.typeParameter))),a.resolvedType}function H8e(n){return Ve(n)?[n]:Rn(H8e(n.left),n.right)}function Hct(n){var a;const c=Zr(n);if(!c.resolvedType){if(!Oy(n))return qe(n.argument,f.String_literal_expected),c.resolvedSymbol=ft,c.resolvedType=_t;const d=n.isTypeOf?111551:n.flags&16777216?900095:788968,_=hd(n,n.argument.literal);if(!_)return c.resolvedSymbol=ft,c.resolvedType=_t;const v=!!((a=_.exports)!=null&&a.get("export=")),x=Rp(_,!1);if(Fl(n.qualifier))if(x.flags&d)c.resolvedType=q8e(n,c,x,d);else{const k=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,k,n.argument.literal.text),c.resolvedSymbol=ft,c.resolvedType=_t}else{const k=H8e(n.qualifier);let F=x,H;for(;H=k.shift();){const re=k.length?1920:d,be=rs(Vl(F)),ge=n.isTypeOf||lr(n)&&v?va(dr(be),H.escapedText,!1,!0):void 0,gt=(n.isTypeOf?void 0:Jd(Dp(be),H.escapedText,re))??ge;if(!gt)return qe(H,f.Namespace_0_has_no_exported_member_1,Hp(F),xs(H)),c.resolvedType=_t;Zr(H).resolvedSymbol=gt,Zr(H.parent).resolvedSymbol=gt,F=gt}c.resolvedType=q8e(n,c,F,d)}}return c.resolvedType}function q8e(n,a,c,d){const _=Vl(c);return a.resolvedSymbol=_,d===111551?R3e(dr(c),n):NZ(n,_)}function J8e(n){const a=Zr(n);if(!a.resolvedType){const c=px(n);if(Cb(n.symbol).size===0&&!c)a.resolvedType=lc;else{let d=Wf(16,n.symbol);d.aliasSymbol=c,d.aliasTypeArguments=IN(c),jS(n)&&n.isArrayType&&(d=Vu(d)),a.resolvedType=d}}return a.resolvedType}function px(n){let a=n.parent;for(;wS(a)||o1(a)||OS(a)&&a.operator===148;)a=a.parent;return HL(a)?Ir(a):void 0}function IN(n){return n?Lr(n):void 0}function wZ(n){return!!(n.flags&524288)&&!Kd(n)}function Fge(n){return mv(n)||!!(n.flags&474058748)}function zge(n,a){if(!(n.flags&1048576))return n;if(Jn(n.types,Fge))return In(n.types,mv)||Ca;const c=In(n.types,v=>!Fge(v));if(!c||In(n.types,v=>v!==c&&!Fge(v)))return n;return _(c);function _(v){const x=ca();for(const F of gs(v))if(!(xf(F)&6)){if(OZ(F)){const H=F.flags&65536&&!(F.flags&32768),be=Ka(16777220,F.escapedName,qhe(F)|(a?8:0));be.links.type=H?Oe:lp(dr(F),!0),be.declarations=F.declarations,be.links.nameType=Ki(F).nameType,be.links.syntheticOrigin=F,x.set(F.escapedName,be)}}const k=Ls(v.symbol,x,et,et,gd(v));return k.objectFlags|=131200,k}}function V1(n,a,c,d,_){if(n.flags&1||a.flags&1)return j;if(n.flags&2||a.flags&2)return hn;if(n.flags&131072)return a;if(a.flags&131072)return n;if(n=zge(n,_),n.flags&1048576)return m9([n,a])?dl(n,H=>V1(H,a,c,d,_)):_t;if(a=zge(a,_),a.flags&1048576)return m9([n,a])?dl(a,H=>V1(n,H,c,d,_)):_t;if(a.flags&473960444)return n;if(HT(n)||HT(a)){if(mv(n))return a;if(n.flags&2097152){const H=n.types,re=H[H.length-1];if(wZ(re)&&wZ(a))return ya(So(H.slice(0,H.length-1),[V1(re,a,c,d,_)]))}return ya([n,a])}const v=ca(),x=new Set,k=n===Ca?gd(a):DOe([n,a]);for(const H of gs(a))xf(H)&6?x.add(H.escapedName):OZ(H)&&v.set(H.escapedName,Bge(H,_));for(const H of gs(n))if(!(x.has(H.escapedName)||!OZ(H)))if(v.has(H.escapedName)){const re=v.get(H.escapedName),be=dr(re);if(re.flags&16777216){const ge=So(H.declarations,re.declarations),Je=4|H.flags&16777216,gt=Ka(Je,H.escapedName),Dt=dr(H),an=nee(Dt),cn=nee(be);gt.links.type=an===cn?Dt:ei([Dt,cn],2),gt.links.leftSpread=H,gt.links.rightSpread=re,gt.declarations=ge,gt.links.nameType=Ki(H).nameType,v.set(H.escapedName,gt)}}else v.set(H.escapedName,Bge(H,_));const F=Ls(c,v,et,et,Zo(k,H=>qct(H,_)));return F.objectFlags|=2228352|d,F}function OZ(n){var a;return!bt(n.declarations,sd)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(c=>di(c.parent))))}function Bge(n,a){const c=n.flags&65536&&!(n.flags&32768);if(!c&&a===g_(n))return n;const d=4|n.flags&16777216,_=Ka(d,n.escapedName,qhe(n)|(a?8:0));return _.links.type=c?Oe:dr(n),_.declarations=n.declarations,_.links.nameType=Ki(n).nameType,_.links.syntheticOrigin=n,_}function qct(n,a){return n.isReadonly!==a?Bh(n.keyType,n.type,a,n.declaration):n}function h9(n,a,c,d){const _=yg(n,c);return _.value=a,_.regularType=d||_,_}function fx(n){if(n.flags&2976){if(!n.freshType){const a=h9(n.flags,n.value,n.symbol,n);a.freshType=a,n.freshType=a}return n.freshType}return n}function yd(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=dl(n,yd)):n}function j1(n){return!!(n.flags&2976)&&n.freshType===n}function Xd(n){let a;return sn.get(n)||(sn.set(n,a=h9(128,n)),a)}function m_(n){let a;return tt.get(n)||(tt.set(n,a=h9(256,n)),a)}function WZ(n){let a;const c=HE(n);return zt.get(c)||(zt.set(c,a=h9(2048,n)),a)}function Jct(n,a,c){let d;const _=`${a}${typeof n=="string"?"@":"#"}${n}`,v=1024|(typeof n=="string"?128:256);return Dn.get(_)||(Dn.set(_,d=h9(v,n,c)),d)}function Kct(n){if(n.literal.kind===106)return fe;const a=Zr(n);return a.resolvedType||(a.resolvedType=yd(mo(n.literal))),a.resolvedType}function Xct(n){const a=yg(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${Sa(a.symbol)}`,a}function Gge(n){if(lr(n)&&o1(n)){const a=AS(n);a&&(n=PA(a)||a)}if(eie(n)){const a=B4(n)?_f(n.left):_f(n);if(a){const c=Ki(a);return c.uniqueESSymbolType||(c.uniqueESSymbolType=Xct(a))}}return xi}function Yct(n){const a=Fd(n,!1,!1),c=a&&a.parent;if(c&&(di(c)||c.kind===264)&&!aa(a)&&(!Ml(a)||WE(n,a.body)))return Bf(Ir(c)).thisType;if(c&&La(c)&&mr(c.parent)&&zl(c.parent)===6)return Bf(_f(c.parent.left).parent).thisType;const d=n.flags&16777216?d0(n):void 0;return d&&Os(d)&&mr(d.parent)&&zl(d.parent)===3?Bf(_f(d.parent.left).parent).thisType:eh(a)&&WE(n,a.body)?Bf(Ir(a)).thisType:(qe(n,f.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),_t)}function FZ(n){const a=Zr(n);return a.resolvedType||(a.resolvedType=Yct(n)),a.resolvedType}function K8e(n){return Ti(g9(n.type)||n.type)}function g9(n){switch(n.kind){case 196:return g9(n.type);case 189:if(n.elements.length===1&&(n=n.elements[0],n.kind===191||n.kind===202&&n.dotDotDotToken))return g9(n.type);break;case 188:return n.elementType}}function $ct(n){const a=Zr(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?K8e(n):lp(Ti(n.type),!0,!!n.questionToken))}function Ti(n){return Nlt(X8e(n),n)}function X8e(n){switch(n.kind){case 133:case 319:case 320:return j;case 159:return hn;case 154:return ke;case 150:return Tt;case 163:return kt;case 136:return Pi;case 155:return xi;case 116:return ir;case 157:return Oe;case 106:return fe;case 146:return Vr;case 151:return n.flags&524288&&!de?j:Jr;case 141:return fn;case 197:case 110:return FZ(n);case 201:return Kct(n);case 183:return gge(n);case 182:return n.assertsModifier?ir:Pi;case 233:return gge(n);case 186:return a8e(n);case 188:case 189:return oct(n);case 190:return cct(n);case 192:return vct(n);case 193:return xct(n);case 321:return Clt(n);case 323:return lp(Ti(n.type));case 202:return $ct(n);case 196:case 322:case 316:return Ti(n.type);case 191:return K8e(n);case 325:return Zgt(n);case 184:case 185:case 187:case 329:case 324:case 330:return J8e(n);case 198:return Pct(n);case 199:return G8e(n);case 200:return Oge(n);case 194:return jct(n);case 195:return Uct(n);case 203:return Mct(n);case 205:return Hct(n);case 80:case 166:case 211:const a=Vm(n);return a?Zs(a):_t;default:return _t}}function zZ(n,a,c){if(n&&n.length)for(let d=0;d<n.length;d++){const _=n[d],v=c(_,a);if(_!==v){const x=d===0?[]:n.slice(0,d);for(x.push(v),d++;d<n.length;d++)x.push(c(n[d],a));return x}}return n}function fy(n,a){return zZ(n,a,lo)}function BZ(n,a){return zZ(n,a,xN)}function Y8e(n,a){return zZ(n,a,uut)}function Mp(n,a){return n.length===1?U1(n[0],a?a[0]:j):Qct(n,a)}function Ob(n,a){switch(a.kind){case 0:return n===a.source?a.target:n;case 1:{const d=a.sources,_=a.targets;for(let v=0;v<d.length;v++)if(n===d[v])return _?_[v]:j;return n}case 2:{const d=a.sources,_=a.targets;for(let v=0;v<d.length;v++)if(n===d[v])return _[v]();return n}case 3:return a.func(n);case 4:case 5:const c=Ob(n,a.mapper1);return c!==n&&a.kind===4?lo(c,a.mapper2):Ob(c,a.mapper2)}}function U1(n,a){return N.attachDebugPrototypeIfDebug({kind:0,source:n,target:a})}function Qct(n,a){return N.attachDebugPrototypeIfDebug({kind:1,sources:n,targets:a})}function v9(n,a){return N.attachDebugPrototypeIfDebug({kind:3,func:n,debugInfo:N.isDebugging?a:void 0})}function Vge(n,a){return N.attachDebugPrototypeIfDebug({kind:2,sources:n,targets:a})}function GZ(n,a,c){return N.attachDebugPrototypeIfDebug({kind:n,mapper1:a,mapper2:c})}function $8e(n){return Mp(n,void 0)}function Zct(n,a){const c=n.inferences.slice(a);return Mp(Wt(c,d=>d.typeParameter),Wt(c,()=>hn))}function H1(n,a){return n?GZ(4,n,a):a}function eut(n,a){return n?GZ(5,n,a):a}function JT(n,a,c){return c?GZ(5,U1(n,a),c):U1(n,a)}function C8(n,a,c){return n?GZ(5,n,U1(a,c)):U1(a,c)}function tut(n){return!n.constraint&&!dge(n)||n.constraint===js?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=gf(n.symbol),n.restrictiveInstantiation.constraint=js,n.restrictiveInstantiation)}function jge(n){const a=gf(n.symbol);return a.target=n,a}function nut(n,a){return u9(n.kind,n.parameterName,n.parameterIndex,lo(n.type,a))}function xN(n,a,c){let d;if(n.typeParameters&&!c){d=Wt(n.typeParameters,jge),a=H1(Mp(n.typeParameters,d),a);for(const v of d)v.mapper=a}const _=Eg(n.declaration,d,n.thisParameter&&Uge(n.thisParameter,a),zZ(n.parameters,a,Uge),void 0,void 0,n.minArgumentCount,n.flags&167);return _.target=n,_.mapper=a,_}function Uge(n,a){const c=Ki(n);if(c.type&&!dE(c.type)&&(!(n.flags&65536)||c.writeType&&!dE(c.writeType)))return n;xl(n)&1&&(n=c.target,a=H1(c.mapper,a));const d=Ka(n.flags,n.escapedName,1|xl(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 rut(n,a,c,d){const _=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],v=Zr(_),x=n.objectFlags&4?v.resolvedType:n.objectFlags&64?n.target:n;let k=v.outerTypeParameters;if(!k){let F=Pn(_,!0);if(eh(_)){const re=HOe(_);F=qr(F,re)}k=F||et;const H=n.objectFlags&8388612?[_]:n.symbol.declarations;k=(x.objectFlags&8388612||x.symbol.flags&8192||x.symbol.flags&2048)&&!x.aliasTypeArguments?mn(k,re=>bt(H,be=>y9(re,be))):k,v.outerTypeParameters=k}if(k.length){const F=H1(n.mapper,a),H=Wt(k,gt=>Ob(gt,F)),re=c||n.aliasSymbol,be=c?d:fy(n.aliasTypeArguments,a),ge=pm(H)+ux(re,be);x.instantiations||(x.instantiations=new Map,x.instantiations.set(pm(k)+ux(x.aliasSymbol,x.aliasTypeArguments),x));let Je=x.instantiations.get(ge);if(!Je){const gt=Mp(k,H);Je=x.objectFlags&4?pge(n.target,n.node,gt,re,be):x.objectFlags&32?out(x,gt,re,be):Hge(x,gt,re,be),x.instantiations.set(ge,Je);const Dt=Wr(Je);if(Je.flags&3899393&&!(Dt&524288)){const an=bt(H,dE);Wr(Je)&524288||(Dt&52?Je.objectFlags|=524288|(an?1048576:0):Je.objectFlags|=an?0:524288)}}return Je}return n}function iut(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 y9(n,a){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){const d=n.symbol.declarations[0].parent;for(let _=a;_!==d;_=_.parent)if(!_||_.kind===241||_.kind===194&&Uo(_.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&&$h(d)&&iut(d)&&X8e(d)===n;case 186:const _=d.exprName,v=Gp(_);if(!VE(v)){const x=Bm(v),k=n.symbol.declarations[0],F=k.kind===168?k.parent:n.isThisType?k:void 0;if(x.declarations&&F)return bt(x.declarations,H=>WE(H,F))||bt(d.typeArguments,c)}return!0;case 174:case 173:return!d.type&&!!d.body||bt(d.typeParameters,c)||bt(d.parameters,c)||!!d.type&&c(d.type)}return!!Uo(d,c)}}function P8(n){const a=yf(n);if(a.flags&4194304){const c=wb(a.type);if(c.flags&262144)return c}}function out(n,a,c,d){const _=P8(n);if(_){const x=lo(_,a);if(_!==x)return e4e(f_(x),v,c,d)}return lo(yf(n),a)===Rt?Rt:Hge(n,a,c,d);function v(x){if(x.flags&61603843&&x!==Rt&&!Jt(x)){if(!n.declaration.nameType){let k;if(Uf(x)||x.flags&1&&ax(_,4)<0&&(k=Md(_))&&cp(k,cE))return sut(x,n,JT(_,x,a));if(Wa(x))return aut(x,n,_,a);if(zOe(x))return ya(Wt(x.types,v))}return Hge(n,JT(_,x,a))}return x}}function Q8e(n,a){return a&1?!0:a&2?!1:n}function aut(n,a,c,d){const _=n.target.elementFlags,v=n.target.fixedLength,x=v?JT(c,n,d):d,k=Wt(G1(n),(be,ge)=>{const Je=_[ge];return ge<v?Z8e(a,Xd(""+ge),!!(Je&2),x):Je&8?lo(a,JT(c,be,d)):D9(lo(a,JT(c,Vu(be),d)))??hn}),F=Fh(a),H=F&4?Wt(_,be=>be&1?2:be):F&8?Wt(_,be=>be&2?1:be):_,re=Q8e(n.target.readonly,Fh(a));return Or(k,_t)?_t:Gh(k,H,re,n.target.labeledElementDeclarations)}function sut(n,a,c){const d=Z8e(a,Tt,!0,c);return Jt(d)?_t:Vu(d,Q8e(JM(n),Fh(a)))}function Z8e(n,a,c,d){const _=C8(d,d_(n),a),v=lo(cv(n.target||n),_),x=Fh(n);return X&&x&4&&!Cl(v,49152)?Bb(v,!0):X&&x&8&&c?mm(v,524288):v}function Hge(n,a,c,d){N.assert(n.symbol,"anonymous type must have symbol to be instantiated");const _=Wf(n.objectFlags&-1572865|64,n.symbol);if(n.objectFlags&32){_.declaration=n.declaration;const v=d_(n),x=jge(v);_.typeParameter=x,a=H1(U1(v,x),a),x.mapper=a}return n.objectFlags&8388608&&(_.node=n.node),_.target=n,_.mapper=a,_.aliasSymbol=c||n.aliasSymbol,_.aliasTypeArguments=c?d:fy(n.aliasTypeArguments,a),_.objectFlags|=_.aliasTypeArguments?RZ(_.aliasTypeArguments):0,_}function qge(n,a,c,d,_){const v=n.root;if(v.outerTypeParameters){const x=Wt(v.outerTypeParameters,H=>Ob(H,a)),k=(c?"C":"")+pm(x)+ux(d,_);let F=v.instantiations.get(k);if(!F){const H=Mp(v.outerTypeParameters,x),re=v.checkType,be=v.isDistributive?f_(Ob(re,H)):void 0;F=be&&re!==be&&be.flags&1179648?e4e(be,ge=>Wge(v,JT(re,ge,H),c),d,_):Wge(v,H,c,d,_),v.instantiations.set(k,F)}return F}return n}function lo(n,a){return n&&a?e6e(n,a,void 0,void 0):n}function e6e(n,a,c,d){var _;if(!dE(n))return n;if(R===100||A>=5e6)return(_=sr)==null||_.instant(sr.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:R,instantiationCount:A}),qe(C,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),_t;T++,A++,R++;const v=lut(n,a,c,d);return R--,v}function lut(n,a,c,d){const _=n.flags;if(_&262144)return Ob(n,a);if(_&524288){const v=n.objectFlags;if(v&52){if(v&4&&!n.node){const x=n.resolvedTypeArguments,k=fy(x,a);return k!==x?xge(n.target,k):n}return v&1024?cut(n,a):rut(n,a,c,d)}return n}if(_&3145728){const v=n.flags&1048576?n.origin:void 0,x=v&&v.flags&3145728?v.types:n.types,k=fy(x,a);if(k===x&&c===n.aliasSymbol)return n;const F=c||n.aliasSymbol,H=c?d:fy(n.aliasTypeArguments,a);return _&2097152||v&&v.flags&2097152?ya(k,F,H):ei(k,1,F,H)}if(_&4194304)return Y_(lo(n.type,a));if(_&134217728)return jT(n.texts,fy(n.types,a));if(_&268435456)return dx(n.symbol,lo(n.type,a));if(_&8388608){const v=c||n.aliasSymbol,x=c?d:fy(n.aliasTypeArguments,a);return Pp(lo(n.objectType,a),lo(n.indexType,a),n.accessFlags,void 0,v,x)}if(_&16777216)return qge(n,H1(n.mapper,a),!1,c,d);if(_&33554432){const v=lo(n.baseType,a);if(VM(n))return fge(v);const x=lo(n.constraint,a);return v.flags&8650752&&AN(x)?_ge(v,x):x.flags&3||ba(KT(v),KT(x))?v:v.flags&8650752?_ge(v,x):ya([x,v])}return n}function cut(n,a){const c=lo(n.mappedType,a);if(!(Wr(c)&32))return n;const d=lo(n.constraintType,a);if(!(d.flags&4194304))return n;const _=M6e(lo(n.source,a),c,d);return _||n}function M8(n){return n.flags&402915327?n:n.permissiveInstantiation||(n.permissiveInstantiation=lo(n,gl))}function KT(n){return n.flags&402915327?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=lo(n,Vs),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function uut(n,a){return Bh(n.keyType,lo(n.type,a),n.isReadonly,n.declaration)}function Vf(n){switch(N.assert(n.kind!==174||Tm(n)),n.kind){case 218:case 219:case 174:case 262:return t6e(n);case 210:return bt(n.properties,Vf);case 209:return bt(n.elements,Vf);case 227:return Vf(n.whenTrue)||Vf(n.whenFalse);case 226:return(n.operatorToken.kind===57||n.operatorToken.kind===61)&&(Vf(n.left)||Vf(n.right));case 303:return Vf(n.initializer);case 217:return Vf(n.expression);case 292:return bt(n.properties,Vf)||k_(n.parent)&&bt(n.parent.parent.children,Vf);case 291:{const{initializer:a}=n;return!!a&&Vf(a)}case 294:{const{expression:a}=n;return!!a&&Vf(a)}}return!1}function t6e(n){return q3(n)||dut(n)}function dut(n){return n.typeParameters||em(n)||!n.body?!1:n.body.kind!==241?Vf(n.body):!!LE(n.body,a=>!!a.expression&&Vf(a.expression))}function VZ(n){return(qE(n)||Tm(n))&&t6e(n)}function n6e(n){if(n.flags&524288){const a=p_(n);if(a.constructSignatures.length||a.callSignatures.length){const c=Wf(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 ya(Wt(n.types,n6e));return n}function fv(n,a){return $_(n,a,op)}function L8(n,a){return $_(n,a,op)?-1:0}function Jge(n,a){return $_(n,a,qd)?-1:0}function put(n,a){return $_(n,a,Nh)?-1:0}function Wb(n,a){return $_(n,a,Nh)}function b9(n,a){return $_(n,a,wf)}function ba(n,a){return $_(n,a,qd)}function lE(n,a){return n.flags&1048576?Jn(n.types,c=>lE(c,a)):a.flags&1048576?bt(a.types,c=>lE(n,c)):n.flags&2097152?bt(n.types,c=>lE(c,a)):n.flags&58982400?lE(Gu(n)||hn,a):Vh(a)?!!(n.flags&67633152):a===Pe?!!(n.flags&67633152)&&!Vh(n):a===Ot?!!(n.flags&524288)&&xve(n):_N(n,ly(a))||Uf(a)&&!JM(a)&&lE(n,na)}function jZ(n,a){return $_(n,a,xp)}function E9(n,a){return jZ(n,a)||jZ(a,n)}function nd(n,a,c,d,_,v){return jf(n,a,qd,c,d,_,v)}function Fb(n,a,c,d,_,v){return Kge(n,a,qd,c,d,_,v,void 0)}function Kge(n,a,c,d,_,v,x,k){return $_(n,a,c)?!0:!d||!k8(_,n,a,c,v,x,k)?jf(n,a,c,d,v,x,k):!1}function r6e(n){return!!(n.flags&16777216||n.flags&2097152&&bt(n.types,r6e))}function k8(n,a,c,d,_,v,x){if(!n||r6e(c))return!1;if(!jf(a,c,d,void 0)&&fut(n,a,c,d,_,v,x))return!0;switch(n.kind){case 234:if(!db(n))break;case 294:case 217:return k8(n.expression,a,c,d,_,v,x);case 226:switch(n.operatorToken.kind){case 64:case 28:return k8(n.right,a,c,d,_,v,x)}break;case 210:return Eut(n,a,c,d,v,x);case 209:return yut(n,a,c,d,v,x);case 292:return vut(n,a,c,d,v,x);case 219:return mut(n,a,c,d,v,x)}return!1}function fut(n,a,c,d,_,v,x){const k=Xo(a,0),F=Xo(a,1);for(const H of[F,k])if(bt(H,re=>{const be=ps(re);return!(be.flags&131073)&&jf(be,c,d,void 0)})){const re=x||{};nd(a,c,n,_,v,re);const be=re.errors[re.errors.length-1];return Ma(be,kr(n,H===F?f.Did_you_mean_to_use_new_with_this_expression:f.Did_you_mean_to_call_this_expression)),!0}return!1}function mut(n,a,c,d,_,v){if(Ko(n.body)||bt(n.parameters,T4))return!1;const x=rA(a);if(!x)return!1;const k=Xo(c,0);if(!Ne(k))return!1;const F=n.body,H=ps(x),re=ei(Wt(k,ps));if(!jf(H,re,d,void 0)){const be=F&&k8(F,H,re,d,void 0,_,v);if(be)return be;const ge=v||{};if(jf(H,re,d,F,void 0,_,ge),ge.errors)return c.symbol&&Ne(c.symbol.declarations)&&Ma(ge.errors[ge.errors.length-1],kr(c.symbol.declarations[0],f.The_expected_type_comes_from_the_return_type_of_this_signature)),!(Bc(n)&2)&&!Ke(H,"then")&&jf(nB(H),re,d,void 0)&&Ma(ge.errors[ge.errors.length-1],kr(n,f.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function i6e(n,a,c){const d=kb(a,c);if(d)return d;if(a.flags&1048576){const _=p6e(n,a);if(_)return kb(_,c)}}function o6e(n,a){B9(n,a,!1);const c=o2(n,1);return U8(),c}function S9(n,a,c,d,_,v){let x=!1;for(const k of n){const{errorNode:F,innerExpression:H,nameType:re,errorMessage:be}=k;let ge=i6e(a,c,re);if(!ge||ge.flags&8388608)continue;let Je=kb(a,re);if(!Je)continue;const gt=LZ(re,void 0);if(!jf(Je,ge,d,void 0)){const Dt=H&&k8(H,Je,ge,d,void 0,_,v);if(x=!0,!Dt){const an=v||{},cn=H?o6e(H,Je):Je;if(De&&HZ(cn,ge)){const ar=kr(F,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Hn(cn),Hn(ge));ts.add(ar),an.errors=[ar]}else{const ar=!!(gt&&(va(c,gt)||ft).flags&16777216),Wn=!!(gt&&(va(a,gt)||ft).flags&16777216);ge=Gb(ge,ar),Je=Gb(Je,ar&&Wn),jf(cn,ge,d,F,be,_,an)&&cn!==Je&&jf(Je,ge,d,F,be,_,an)}if(an.errors){const ar=an.errors[an.errors.length-1],Wn=tm(re)?nm(re):void 0,ln=Wn!==void 0?va(c,Wn):void 0;let Bn=!1;if(!ln){const zn=S8(c,re);zn&&zn.declaration&&!Un(zn.declaration).hasNoDefaultLib&&(Bn=!0,Ma(ar,kr(zn.declaration,f.The_expected_type_comes_from_this_index_signature)))}if(!Bn&&(ln&&Ne(ln.declarations)||c.symbol&&Ne(c.symbol.declarations))){const zn=ln&&Ne(ln.declarations)?ln.declarations[0]:c.symbol.declarations[0];Un(zn).hasNoDefaultLib||Ma(ar,kr(zn,f.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Wn&&!(re.flags&8192)?Vi(Wn):Hn(re),Hn(c)))}}}}}return x}function _ut(n,a,c,d,_,v){const x=dc(c,QZ),k=dc(c,re=>!QZ(re)),F=k!==Vr?Uye(13,0,k,void 0):void 0;let H=!1;for(let re=n.next();!re.done;re=n.next()){const{errorNode:be,innerExpression:ge,nameType:Je,errorMessage:gt}=re.value;let Dt=F;const an=x!==Vr?i6e(a,x,Je):void 0;if(an&&!(an.flags&8388608)&&(Dt=F?ei([F,an]):an),!Dt)continue;let cn=kb(a,Je);if(!cn)continue;const ar=LZ(Je,void 0);if(!jf(cn,Dt,d,void 0)){const Wn=ge&&k8(ge,cn,Dt,d,void 0,_,v);if(H=!0,!Wn){const ln=v||{},Bn=ge?o6e(ge,cn):cn;if(De&&HZ(Bn,Dt)){const zn=kr(be,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Hn(Bn),Hn(Dt));ts.add(zn),ln.errors=[zn]}else{const zn=!!(ar&&(va(x,ar)||ft).flags&16777216),tr=!!(ar&&(va(a,ar)||ft).flags&16777216);Dt=Gb(Dt,zn),cn=Gb(cn,zn&&tr),jf(Bn,Dt,d,be,gt,_,ln)&&Bn!==cn&&jf(cn,Dt,d,be,gt,_,ln)}}}}return H}function*hut(n){if(Ne(n.properties))for(const a of n.properties)cI(a)||Jve(Ek(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:Xd(Ek(a.name))})}function*gut(n,a){if(!Ne(n.children))return;let c=0;for(let d=0;d<n.children.length;d++){const _=n.children[d],v=m_(d-c),x=a6e(_,v,a);x?yield x:c++}}function a6e(n,a,c){switch(n.kind){case 294:return{errorNode:n,innerExpression:n.expression,nameType:a};case 12:if(n.containsOnlyTriviaWhiteSpaces)break;return{errorNode:n,innerExpression:void 0,nameType:a,errorMessage:c()};case 284:case 285:case 288:return{errorNode:n,innerExpression:n,nameType:a};default:return N.assertNever(n,"Found invalid jsx child")}}function vut(n,a,c,d,_,v){let x=S9(hut(n),a,c,d,_,v),k;if(k_(n.parent)&&sg(n.parent.parent)){const H=n.parent.parent,re=V9(tA(n)),be=re===void 0?"children":Vi(re),ge=Xd(be),Je=Pp(c,ge),gt=bR(H.children);if(!Ne(gt))return x;const Dt=Ne(gt)>1;let an,cn;if(Sge(!1)!==wo){const Wn=g8e(j);an=dc(Je,ln=>ba(ln,Wn)),cn=dc(Je,ln=>!ba(ln,Wn))}else an=dc(Je,QZ),cn=dc(Je,Wn=>!QZ(Wn));if(Dt){if(an!==Vr){const Wn=Gh(Aee(H,0)),ln=gut(H,F);x=_ut(ln,Wn,an,d,_,v)||x}else if(!$_(Pp(a,ge),Je,d)){x=!0;const Wn=qe(H.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,be,Hn(Je));v&&v.skipLogging&&(v.errors||(v.errors=[])).push(Wn)}}else if(cn!==Vr){const Wn=gt[0],ln=a6e(Wn,ge,F);ln&&(x=S9(function*(){yield ln}(),a,c,d,_,v)||x)}else if(!$_(Pp(a,ge),Je,d)){x=!0;const Wn=qe(H.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,be,Hn(Je));v&&v.skipLogging&&(v.errors||(v.errors=[])).push(Wn)}}return x;function F(){if(!k){const H=fc(n.parent.tagName),re=V9(tA(n)),be=re===void 0?"children":Vi(re),ge=Pp(c,Xd(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;k={...Je,key:"!!ALREADY FORMATTED!!",message:lU(Je,H,be,Hn(ge))}}return k}}function*s6e(n,a){const c=Ne(n.elements);if(c)for(let d=0;d<c;d++){if(KM(a)&&!va(a,""+d))continue;const _=n.elements[d];if(Gc(_))continue;const v=m_(d),x=Lee(_);yield{errorNode:x,innerExpression:x,nameType:v}}}function yut(n,a,c,d,_,v){if(c.flags&402915324)return!1;if(KM(a))return S9(s6e(n,c),a,c,d,_,v);B9(n,c,!1);const x=N4e(n,1,!0);return U8(),KM(x)?S9(s6e(n,c),x,c,d,_,v):!1}function*but(n){if(Ne(n.properties))for(const a of n.properties){if(jv(a))continue;const c=TN(Ir(a),8576);if(!(!c||c.flags&131072))switch(a.kind){case 178:case 177:case 174:case 304:yield{errorNode:a.name,innerExpression:void 0,nameType:c};break;case 303:yield{errorNode:a.name,innerExpression:a.initializer,nameType:c,errorMessage:AL(a.name)?f.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:N.assertNever(a)}}}function Eut(n,a,c,d,_,v){return c.flags&402915324?!1:S9(but(n),a,c,d,_,v)}function l6e(n,a,c,d,_){return jf(n,a,xp,c,d,_)}function Sut(n,a,c){return Xge(n,a,c?4:0,!1,void 0,void 0,Jge,void 0)!==0}function UZ(n){if(!n.typeParameters&&(!n.thisParameter||Nt(Z9(n.thisParameter)))&&n.parameters.length===1&&Yu(n)){const a=Z9(n.parameters[0]);return!!((Uf(a)?Js(a)[0]:a).flags&131073&&ps(n).flags&3)}return!1}function Xge(n,a,c,d,_,v,x,k){if(n===a||!(c&16&&UZ(n))&&UZ(a))return-1;if(c&16&&UZ(n)&&!UZ(a))return 0;const F=Xp(a);if(!jh(a)&&(c&8?jh(n)||Xp(n)>F:th(n)>F))return d&&!(c&8)&&_(f.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,th(n),F),0;n.typeParameters&&n.typeParameters!==a.typeParameters&&(a=Tlt(a),n=s3e(n,a,void 0,x));const re=Xp(n),be=K8(n),ge=K8(a);(be||ge)&&lo(be||ge,k);const Je=a.declaration?a.declaration.kind:0,gt=!(c&3)&&oe&&Je!==174&&Je!==173&&Je!==176;let Dt=-1;const an=oE(n);if(an&&an!==ir){const Wn=oE(a);if(Wn){const ln=!gt&&x(an,Wn,!1)||x(Wn,an,d);if(!ln)return d&&_(f.The_this_types_of_each_signature_are_incompatible),0;Dt&=ln}}const cn=be||ge?Math.min(re,F):Math.max(re,F),ar=be||ge?cn-1:-1;for(let Wn=0;Wn<cn;Wn++){const ln=Wn===ar?P3e(n,Wn):Y1(n,Wn),Bn=Wn===ar?P3e(a,Wn):Y1(a,Wn);if(ln&&Bn){const zn=c&3||o3e(n,Wn)?void 0:rA(hv(ln)),tr=c&3||o3e(a,Wn)?void 0:rA(hv(Bn));let nr=zn&&tr&&!Gf(zn)&&!Gf(tr)&&$M(ln,50331648)===$M(Bn,50331648)?Xge(tr,zn,c&8|(gt?2:1),d,_,v,x,k):!(c&3)&&!gt&&x(ln,Bn,!1)||x(Bn,ln,d);if(nr&&c&8&&Wn>=th(n)&&Wn<th(a)&&x(ln,Bn,!1)&&(nr=0),!nr)return d&&_(f.Types_of_parameters_0_and_1_are_incompatible,Vi(n2(n,Wn)),Vi(n2(a,Wn))),0;Dt&=nr}}if(!(c&4)){const Wn=TZ(a)?j:a.declaration&&eh(a.declaration)?Bf(rs(a.declaration.symbol)):ps(a);if(Wn===ir||Wn===j)return Dt;const ln=TZ(n)?j:n.declaration&&eh(n.declaration)?Bf(rs(n.declaration.symbol)):ps(n),Bn=Gf(a);if(Bn){const zn=Gf(n);if(zn)Dt&=Tut(zn,Bn,d,_,x);else if(nie(Bn))return d&&_(f.Signature_0_must_be_a_type_predicate,kh(n)),0}else Dt&=c&1&&x(Wn,ln,!1)||x(ln,Wn,d),!Dt&&d&&v&&v(ln,Wn)}return Dt}function Tut(n,a,c,d,_){if(n.kind!==a.kind)return c&&(d(f.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),d(f.Type_predicate_0_is_not_assignable_to_1,wh(n),wh(a))),0;if((n.kind===1||n.kind===3)&&n.parameterIndex!==a.parameterIndex)return c&&(d(f.Parameter_0_is_not_in_the_same_position_as_parameter_1,n.parameterName,a.parameterName),d(f.Type_predicate_0_is_not_assignable_to_1,wh(n),wh(a))),0;const v=n.type===a.type?-1:n.type&&a.type?_(n.type,a.type,c):0;return v===0&&c&&d(f.Type_predicate_0_is_not_assignable_to_1,wh(n),wh(a)),v}function Aut(n,a){const c=I8(n),d=I8(a),_=ps(c),v=ps(d);return v===ir||$_(v,_,qd)||$_(_,v,qd)?Sut(c,d,!0):!1}function Yge(n){return n!==nn&&n.properties.length===0&&n.callSignatures.length===0&&n.constructSignatures.length===0&&n.indexInfos.length===0}function mv(n){return n.flags&524288?!Kd(n)&&Yge(p_(n)):n.flags&67108864?!0:n.flags&1048576?bt(n.types,mv):n.flags&2097152?Jn(n.types,mv):!1}function Vh(n){return!!(Wr(n)&16&&(n.members&&Yge(n)||n.symbol&&n.symbol.flags&2048&&Cb(n.symbol).size===0))}function Iut(n){if(X&&n.flags&1048576){if(!(n.objectFlags&33554432)){const a=n.types;n.objectFlags|=33554432|(a.length>=3&&a[0].flags&32768&&a[1].flags&65536&&bt(a,Vh)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function HM(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function c6e(n){return n.flags&524288&&!Kd(n)&&gs(n).length===0&&gd(n).length===1&&!!Sg(n,ke)||n.flags&3145728&&Jn(n.types,c6e)||!1}function $ge(n,a,c){const 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;const v=Sa(d)+","+Sa(_),x=ty.get(v);if(x!==void 0&&!(!(x&4)&&x&2&&c))return!!(x&1);const k=dr(_);for(const F of gs(dr(d)))if(F.flags&8){const H=va(k,F.escapedName);if(!H||!(H.flags&8))return c?(c(f.Property_0_is_missing_in_type_1,El(F),Hn(Zs(_),void 0,64)),ty.set(v,6)):ty.set(v,2),!1;const re=WN(pl(F,306)),be=WN(pl(H,306));if(re!==be){const ge=typeof re=="string",Je=typeof be=="string";if(re!==void 0&&be!==void 0){if(!c)ty.set(v,2);else{const gt=ge?`"${tg(re)}"`:re,Dt=Je?`"${tg(be)}"`:be;c(f.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,El(_),El(H),Dt,gt),ty.set(v,6)}return!1}if(ge||Je){if(!c)ty.set(v,2);else{const gt=re??be;N.assert(typeof gt=="string");const Dt=`"${tg(gt)}"`;c(f.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,El(_),El(H),Dt),ty.set(v,6)}return!1}}}return ty.set(v,1),!0}function w8(n,a,c,d){const _=n.flags,v=a.flags;return v&1||_&131072||n===Rt||v&2&&!(c===wf&&_&1)?!0:v&131072?!1:!!(_&402653316&&v&4||_&128&&_&1024&&v&128&&!(v&1024)&&n.value===a.value||_&296&&v&8||_&256&&_&1024&&v&256&&!(v&1024)&&n.value===a.value||_&2112&&v&64||_&528&&v&16||_&12288&&v&4096||_&32&&v&32&&n.symbol.escapedName===a.symbol.escapedName&&$ge(n.symbol,a.symbol,d)||_&1024&&v&1024&&(_&1048576&&v&1048576&&$ge(n.symbol,a.symbol,d)||_&2944&&v&2944&&n.value===a.value&&$ge(n.symbol,a.symbol,d))||_&32768&&(!X&&!(v&3145728)||v&49152)||_&65536&&(!X&&!(v&3145728)||v&65536)||_&524288&&v&67108864&&!(c===wf&&Vh(n)&&!(Wr(n)&8192))||(c===qd||c===xp)&&(_&1||_&8&&(v&32||v&256&&v&1024)||_&256&&!(_&1024)&&(v&32||v&256&&v&1024&&n.value===a.value)||Iut(a)))}function $_(n,a,c){if(j1(n)&&(n=n.regularType),j1(a)&&(a=a.regularType),n===a)return!0;if(c!==op){if(c===xp&&!(a.flags&131072)&&w8(a,n,c)||w8(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){const d=c.get(KZ(n,a,0,c,!1));if(d!==void 0)return!!(d&1)}return n.flags&469499904||a.flags&469499904?jf(n,a,c,void 0):!1}function u6e(n,a){return Wr(n)&2048&&Jve(a.escapedName)}function T9(n,a){for(;;){const c=j1(n)?n.regularType:zb(n)?Rut(n,a):Wr(n)&4?n.node?uy(n.target,Js(n)):ive(n)||n:n.flags&3145728?xut(n,a):n.flags&33554432?a?n.baseType:hge(n):n.flags&25165824?pv(n,a):n;if(c===n)return c;n=c}}function xut(n,a){const c=f_(n);if(c!==n)return c;if(n.flags&2097152&&bt(n.types,Vh)){const d=Zo(n.types,_=>T9(_,a));if(d!==n.types)return ya(d)}return n}function Rut(n,a){const c=G1(n),d=Zo(c,_=>_.flags&25165824?pv(_,a):_);return c!==d?Rge(n.target,d):n}function jf(n,a,c,d,_,v,x){var k;let F,H,re,be,ge,Je,gt=0,Dt=0,an=0,cn=0,ar=!1,Wn=0,ln=0,Bn,zn,tr=16e6-c.size>>3;N.assert(c!==op||!d,"no error reporting in identity checking");const Kn=br(n,a,3,!!d,_);if(zn&&Bo(),ar){const rt=KZ(n,a,0,c,!1);c.set(rt,6),(k=sr)==null||k.instant(sr.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:a.id,depth:Dt,targetDepth:an});const St=tr<=0?f.Excessive_complexity_comparing_types_0_and_1:f.Excessive_stack_depth_comparing_types_0_and_1,Zt=qe(d||C,St,Hn(n),Hn(a));x&&(x.errors||(x.errors=[])).push(Zt)}else if(F){if(v){const Zt=v();Zt&&(loe(Zt,F),F=Zt)}let rt;if(_&&d&&!Kn&&n.symbol){const Zt=Ki(n.symbol);if(Zt.originatingImport&&!zp(Zt.originatingImport)&&jf(dr(Zt.target),a,c,void 0)){const Rr=kr(Zt.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);rt=Rn(rt,Rr)}}const St=Lg(Un(d),d,F,rt);H&&Ma(St,...H),x&&(x.errors||(x.errors=[])).push(St),(!x||!x.skipLogging)&&ts.add(St)}return d&&x&&x.skipLogging&&Kn===0&&N.assert(!!x.errors,"missed opportunity to interact with error."),Kn!==0;function nr(rt){F=rt.errorInfo,Bn=rt.lastSkippedInfo,zn=rt.incompatibleStack,Wn=rt.overrideNextErrorInfo,ln=rt.skipParentCounter,H=rt.relatedInfo}function Ro(){return{errorInfo:F,lastSkippedInfo:Bn,incompatibleStack:zn==null?void 0:zn.slice(),overrideNextErrorInfo:Wn,skipParentCounter:ln,relatedInfo:H==null?void 0:H.slice()}}function Eo(rt,...St){Wn++,Bn=void 0,(zn||(zn=[])).push([rt,...St])}function Bo(){const rt=zn||[];zn=void 0;const St=Bn;if(Bn=void 0,rt.length===1){_o(...rt[0]),St&&up(void 0,...St);return}let Zt="";const Yn=[];for(;rt.length;){const[Rr,...An]=rt.pop();switch(Rr.code){case f.Types_of_property_0_are_incompatible.code:{Zt.indexOf("new ")===0&&(Zt=`(${Zt})`);const gr=""+An[0];Zt.length===0?Zt=`${gr}`:Zp(gr,os(V))?Zt=`${Zt}.${gr}`:gr[0]==="["&&gr[gr.length-1]==="]"?Zt=`${Zt}${gr}`:Zt=`${Zt}[${gr}]`;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(Zt.length===0){let gr=Rr;Rr.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?gr=f.Call_signature_return_types_0_and_1_are_incompatible:Rr.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(gr=f.Construct_signature_return_types_0_and_1_are_incompatible),Yn.unshift([gr,An[0],An[1]])}else{const gr=Rr.code===f.Construct_signature_return_types_0_and_1_are_incompatible.code||Rr.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Hr=Rr.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Rr.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";Zt=`${gr}${Zt}(${Hr})`}break}case f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Yn.unshift([f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,An[0],An[1]]);break}case f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Yn.unshift([f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,An[0],An[1],An[2]]);break}default:return N.fail(`Unhandled Diagnostic: ${Rr.code}`)}}Zt?_o(Zt[Zt.length-1]===")"?f.The_types_returned_by_0_are_incompatible_between_these_types:f.The_types_of_0_are_incompatible_between_these_types,Zt):Yn.shift();for(const[Rr,...An]of Yn){const gr=Rr.elidedInCompatabilityPyramid;Rr.elidedInCompatabilityPyramid=!1,_o(Rr,...An),Rr.elidedInCompatabilityPyramid=gr}St&&up(void 0,...St)}function _o(rt,...St){N.assert(!!d),zn&&Bo(),!rt.elidedInCompatabilityPyramid&&(ln===0?F=Vo(F,rt,...St):ln--)}function Nc(rt,...St){_o(rt,...St),ln++}function Hf(rt){N.assert(!!F),H?H.push(rt):H=[rt]}function up(rt,St,Zt){zn&&Bo();const[Yn,Rr]=ox(St,Zt);let An=St,gr=Yn;if(O8(St)&&!Qge(Zt)&&(An=_v(St),N.assert(!ba(An,Zt),"generalized source shouldn't be assignable"),gr=Eb(An)),(Zt.flags&8388608&&!(St.flags&8388608)?Zt.objectType.flags:Zt.flags)&262144&&Zt!==ue&&Zt!==Z){const Bi=Gu(Zt);let Fo;Bi&&(ba(An,Bi)||(Fo=ba(St,Bi)))?_o(f._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Fo?Yn:gr,Rr,Hn(Bi)):(F=void 0,_o(f._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Rr,gr))}if(rt)rt===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&De&&d6e(St,Zt).length&&(rt=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)rt=f.Type_0_is_not_comparable_to_type_1;else if(Yn===Rr)rt=f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(De&&d6e(St,Zt).length)rt=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(St.flags&128&&Zt.flags&1048576){const Bi=Oft(St,Zt);if(Bi){_o(f.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,gr,Rr,Hn(Bi));return}}rt=f.Type_0_is_not_assignable_to_type_1}_o(rt,gr,Rr)}function On(rt,St){const Zt=Sb(rt.symbol)?Hn(rt,rt.symbol.valueDeclaration):Hn(rt),Yn=Sb(St.symbol)?Hn(St,St.symbol.valueDeclaration):Hn(St);(Zl===rt&&ke===St||yc===rt&&Tt===St||ul===rt&&Pi===St||p8e()===rt&&xi===St)&&_o(f._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Yn,Zt)}function er(rt,St,Zt){return Wa(rt)?rt.target.readonly&&R9(St)?(Zt&&_o(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Hn(rt),Hn(St)),!1):cE(St):JM(rt)&&R9(St)?(Zt&&_o(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Hn(rt),Hn(St)),!1):Wa(St)?Uf(rt):!0}function ao(rt,St,Zt){return br(rt,St,3,Zt)}function br(rt,St,Zt=3,Yn=!1,Rr,An=0){if(rt===St)return-1;if(rt.flags&524288&&St.flags&402784252)return c===xp&&!(St.flags&131072)&&w8(St,rt,c)||w8(rt,St,c,Yn?_o:void 0)?-1:(Yn&&Po(rt,St,rt,St,Rr),0);const gr=T9(rt,!1);let Hr=T9(St,!0);if(gr===Hr)return-1;if(c===op)return gr.flags!==Hr.flags?0:gr.flags&67358815?-1:(ss(gr,Hr),Ai(gr,Hr,!1,0,Zt));if(gr.flags&262144&&zT(gr)===Hr)return-1;if(gr.flags&470302716&&Hr.flags&1048576){const Bi=Hr.types,Fo=Bi.length===2&&Bi[0].flags&98304?Bi[1]:Bi.length===3&&Bi[0].flags&98304&&Bi[1].flags&98304?Bi[2]:void 0;if(Fo&&!(Fo.flags&98304)&&(Hr=T9(Fo,!0),gr===Hr))return-1}if(c===xp&&!(Hr.flags&131072)&&w8(Hr,gr,c)||w8(gr,Hr,c,Yn?_o:void 0))return-1;if(gr.flags&469499904||Hr.flags&469499904){if(!(An&2)&&pE(gr)&&Wr(gr)&8192&&ju(gr,Hr,Yn))return Yn&&up(Rr,gr,St.aliasSymbol?St:Hr),0;const Fo=(c!==xp||__(gr))&&!(An&2)&&gr.flags&405405692&&gr!==Pe&&Hr.flags&2621440&&f6e(Hr)&&(gs(gr).length>0||ite(gr)),ma=!!(Wr(gr)&2048);if(Fo&&!Nut(gr,Hr,ma)){if(Yn){const Oo=Hn(rt.aliasSymbol?rt:gr),xa=Hn(St.aliasSymbol?St:Hr),Ns=Xo(gr,0),fs=Xo(gr,1);Ns.length>0&&br(ps(Ns[0]),Hr,1,!1)||fs.length>0&&br(ps(fs[0]),Hr,1,!1)?_o(f.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Oo,xa):_o(f.Type_0_has_no_properties_in_common_with_type_1,Oo,xa)}return 0}ss(gr,Hr);const Ei=gr.flags&1048576&&gr.types.length<4&&!(Hr.flags&1048576)||Hr.flags&1048576&&Hr.types.length<4&&!(gr.flags&469499904)?kd(gr,Hr,Yn,An):Ai(gr,Hr,Yn,An,Zt);if(Ei)return Ei}return Yn&&Po(rt,St,gr,Hr,Rr),0}function Po(rt,St,Zt,Yn,Rr){var An,gr;const Hr=!!ive(rt),Bi=!!ive(St);Zt=rt.aliasSymbol||Hr?rt:Zt,Yn=St.aliasSymbol||Bi?St:Yn;let Fo=Wn>0;if(Fo&&Wn--,Zt.flags&524288&&Yn.flags&524288){const ma=F;er(Zt,Yn,!0),F!==ma&&(Fo=!!F)}if(Zt.flags&524288&&Yn.flags&402784252)On(Zt,Yn);else if(Zt.symbol&&Zt.flags&524288&&Pe===Zt)_o(f.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Wr(Zt)&2048&&Yn.flags&2097152){const ma=Yn.types,_a=X1(of.IntrinsicAttributes,d),Ei=X1(of.IntrinsicClassAttributes,d);if(!Jt(_a)&&!Jt(Ei)&&(Or(ma,_a)||Or(ma,Ei)))return}else F=tge(F,St);if(!Rr&&Fo){Bn=[Zt,Yn];return}if(up(Rr,Zt,Yn),Zt.flags&262144&&((gr=(An=Zt.symbol)==null?void 0:An.declarations)!=null&&gr[0])&&!zT(Zt)){const ma=jge(Zt);if(ma.constraint=lo(Yn,U1(Zt,ma)),s9(ma)){const _a=Hn(Yn,Zt.symbol.declarations[0]);Hf(kr(Zt.symbol.declarations[0],f.This_type_parameter_might_need_an_extends_0_constraint,_a))}}}function ss(rt,St){if(sr&&rt.flags&3145728&&St.flags&3145728){const Zt=rt,Yn=St;if(Zt.objectFlags&Yn.objectFlags&32768)return;const Rr=Zt.types.length,An=Yn.types.length;Rr*An>1e6&&sr.instant(sr.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:rt.id,sourceSize:Rr,targetId:St.id,targetSize:An,pos:d==null?void 0:d.pos,end:d==null?void 0:d.end})}}function Ss(rt,St){return ei(rd(rt,(Yn,Rr)=>{var An;Rr=Ld(Rr);const gr=Rr.flags&3145728?l9(Rr,St):rE(Rr,St),Hr=gr&&dr(gr)||((An=cx(Rr,St))==null?void 0:An.type)||Oe;return Rn(Yn,Hr)},void 0)||et)}function ju(rt,St,Zt){var Yn;if(!U9(St)||!de&&Wr(St)&4096)return!1;const Rr=!!(Wr(rt)&2048);if((c===qd||c===xp)&&(QM(Pe,St)||!Rr&&mv(St)))return!1;let An=St,gr;St.flags&1048576&&(An=CFe(rt,St,br)||zyt(St),gr=An.flags&1048576?An.types:[An]);for(const Hr of gs(rt))if(Fa(Hr,rt.symbol)&&!u6e(rt,Hr)){if(!Yve(An,Hr.escapedName,Rr)){if(Zt){const Bi=dc(An,U9);if(!d)return N.fail();if(n1(d)||ld(d)||ld(d.parent)){Hr.valueDeclaration&&w_(Hr.valueDeclaration)&&Un(d)===Un(Hr.valueDeclaration.name)&&(d=Hr.valueDeclaration.name);const Fo=Si(Hr),ma=Z4e(Fo,Bi),_a=ma?Si(ma):void 0;_a?_o(f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Fo,Hn(Bi),_a):_o(f.Property_0_does_not_exist_on_type_1,Fo,Hn(Bi))}else{const Fo=((Yn=rt.symbol)==null?void 0:Yn.declarations)&&Kc(rt.symbol.declarations);let ma;if(Hr.valueDeclaration&&Vn(Hr.valueDeclaration,_a=>_a===Fo)&&Un(Fo)===Un(d)){const _a=Hr.valueDeclaration;N.assertNode(_a,Mg);const Ei=_a.name;d=Ei,Ve(Ei)&&(ma=oye(Ei,Bi))}ma!==void 0?Nc(f.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Si(Hr),Hn(Bi),ma):Nc(f.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Si(Hr),Hn(Bi))}}return!0}if(gr&&!br(dr(Hr),Ss(gr,Hr.escapedName),3,Zt))return Zt&&Eo(f.Types_of_property_0_are_incompatible,Si(Hr)),!0}return!1}function Fa(rt,St){return rt.valueDeclaration&&St.valueDeclaration&&rt.valueDeclaration.parent===St.valueDeclaration}function kd(rt,St,Zt,Yn){if(rt.flags&1048576){if(St.flags&1048576){const Rr=rt.origin;if(Rr&&Rr.flags&2097152&&St.aliasSymbol&&Or(Rr.types,St))return-1;const An=St.origin;if(An&&An.flags&1048576&&rt.aliasSymbol&&Or(An.types,rt))return-1}return c===xp?Ae(rt,St,Zt&&!(rt.flags&402784252),Yn):Cr(rt,St,Zt&&!(rt.flags&402784252),Yn)}if(St.flags&1048576)return bl(z8(rt),St,Zt&&!(rt.flags&402784252)&&!(St.flags&402784252),Yn);if(St.flags&2097152)return ut(rt,St,Zt,2);if(c===xp&&St.flags&402784252){const Rr=Zo(rt.types,An=>An.flags&465829888?Gu(An)||hn:An);if(Rr!==rt.types){if(rt=ya(Rr),rt.flags&131072)return 0;if(!(rt.flags&2097152))return br(rt,St,1,!1)||br(St,rt,1,!1)}}return Ae(rt,St,!1,1)}function Wl(rt,St){let Zt=-1;const Yn=rt.types;for(const Rr of Yn){const An=bl(Rr,St,!1,0);if(!An)return 0;Zt&=An}return Zt}function bl(rt,St,Zt,Yn){const Rr=St.types;if(St.flags&1048576){if(dv(Rr,rt))return-1;if(c!==xp&&Wr(St)&32768&&!(rt.flags&1024)&&(rt.flags&2688||(c===Nh||c===wf)&&rt.flags&256)){const gr=rt===rt.regularType?rt.freshType:rt.regularType,Hr=rt.flags&128?ke:rt.flags&256?Tt:rt.flags&2048?kt:void 0;return Hr&&dv(Rr,Hr)||gr&&dv(Rr,gr)?-1:0}const An=V6e(St,rt);if(An){const gr=br(rt,An,2,!1,void 0,Yn);if(gr)return gr}}for(const An of Rr){const gr=br(rt,An,2,!1,void 0,Yn);if(gr)return gr}if(Zt){const An=p6e(rt,St,br);An&&br(rt,An,2,!0,void 0,Yn)}return 0}function ut(rt,St,Zt,Yn){let Rr=-1;const An=St.types;for(const gr of An){const Hr=br(rt,gr,2,Zt,void 0,Yn);if(!Hr)return 0;Rr&=Hr}return Rr}function Ae(rt,St,Zt,Yn){const Rr=rt.types;if(rt.flags&1048576&&dv(Rr,St))return-1;const An=Rr.length;for(let gr=0;gr<An;gr++){const Hr=br(Rr[gr],St,1,Zt&&gr===An-1,void 0,Yn);if(Hr)return Hr}return 0}function kn(rt,St){return rt.flags&1048576&&St.flags&1048576&&!(rt.types[0].flags&32768)&&St.types[0].flags&32768?ZM(St,-32769):St}function Cr(rt,St,Zt,Yn){let Rr=-1;const An=rt.types,gr=kn(rt,St);for(let Hr=0;Hr<An.length;Hr++){const Bi=An[Hr];if(gr.flags&1048576&&An.length>=gr.types.length&&An.length%gr.types.length===0){const ma=br(Bi,gr.types[Hr%gr.types.length],3,!1,void 0,Yn);if(ma){Rr&=ma;continue}}const Fo=br(Bi,St,1,Zt,void 0,Yn);if(!Fo)return 0;Rr&=Fo}return Rr}function pi(rt=et,St=et,Zt=et,Yn,Rr){if(rt.length!==St.length&&c===op)return 0;const An=rt.length<=St.length?rt.length:St.length;let gr=-1;for(let Hr=0;Hr<An;Hr++){const Bi=Hr<Zt.length?Zt[Hr]:1,Fo=Bi&7;if(Fo!==4){const ma=rt[Hr],_a=St[Hr];let Ei=-1;if(Bi&8?Ei=c===op?br(ma,_a,3,!1):L8(ma,_a):Fo===1?Ei=br(ma,_a,3,Yn,void 0,Rr):Fo===2?Ei=br(_a,ma,3,Yn,void 0,Rr):Fo===3?(Ei=br(_a,ma,3,!1),Ei||(Ei=br(ma,_a,3,Yn,void 0,Rr))):(Ei=br(ma,_a,3,Yn,void 0,Rr),Ei&&(Ei&=br(_a,ma,3,Yn,void 0,Rr))),!Ei)return 0;gr&=Ei}}return gr}function Ai(rt,St,Zt,Yn,Rr){var An,gr,Hr;if(ar)return 0;const Bi=KZ(rt,St,Yn,c,!1),Fo=c.get(Bi);if(Fo!==void 0&&!(Zt&&Fo&2&&!(Fo&4))){if(da){const fs=Fo&24;fs&8&&lo(rt,Ts),fs&16&&lo(rt,uu)}return Fo&1?-1:0}if(tr<=0)return ar=!0,0;if(!re)re=[],be=new Set,ge=[],Je=[];else{if(be.has(Bi))return 3;const fs=Bi.startsWith("*")?KZ(rt,St,Yn,c,!0):void 0;if(fs&&be.has(fs))return 3;if(Dt===100||an===100)return ar=!0,0}const ma=gt;re[gt]=Bi,be.add(Bi),gt++;const _a=cn;Rr&1&&(ge[Dt]=rt,Dt++,!(cn&1)&&qM(rt,ge,Dt)&&(cn|=1)),Rr&2&&(Je[an]=St,an++,!(cn&2)&&qM(St,Je,an)&&(cn|=2));let Ei,Oo=0;da&&(Ei=da,da=fs=>(Oo|=fs?16:8,Ei(fs)));let xa;return cn===3?((An=sr)==null||An.instant(sr.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:rt.id,sourceIdStack:ge.map(fs=>fs.id),targetId:St.id,targetIdStack:Je.map(fs=>fs.id),depth:Dt,targetDepth:an}),xa=3):((gr=sr)==null||gr.push(sr.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:rt.id,targetId:St.id}),xa=Ii(rt,St,Zt,Yn),(Hr=sr)==null||Hr.pop()),da&&(da=Ei),Rr&1&&Dt--,Rr&2&&an--,cn=_a,xa?(xa===-1||Dt===0&&an===0)&&Ns(xa===-1||xa===3):(c.set(Bi,(Zt?4:0)|2|Oo),tr--,Ns(!1)),xa;function Ns(fs){for(let Cc=ma;Cc<gt;Cc++)be.delete(re[Cc]),fs&&(c.set(re[Cc],1|Oo),tr--);gt=ma}}function Ii(rt,St,Zt,Yn){const Rr=Ro();let An=xr(rt,St,Zt,Yn,Rr);if(c!==op){if(!An&&(rt.flags&2097152||rt.flags&262144&&St.flags&1048576)){const gr=alt(rt.flags&2097152?rt.types:[rt],!!(St.flags&1048576));gr&&cp(gr,Hr=>Hr!==rt)&&(An=br(gr,St,1,!1,void 0,Yn))}An&&!(Yn&2)&&St.flags&2097152&&!HT(St)&&rt.flags&2621440?(An&=ki(rt,St,Zt,void 0,!1,0),An&&pE(rt)&&Wr(rt)&8192&&(An&=Ds(rt,St,!1,Zt,0))):An&&wZ(St)&&!cE(St)&&rt.flags&2097152&&Ld(rt).flags&3670016&&!bt(rt.types,gr=>gr===St||!!(Wr(gr)&262144))&&(An&=ki(rt,St,Zt,void 0,!0,Yn))}return An&&nr(Rr),An}function Ur(rt,St){const Zt=Ld(FT(St)),Yn=[];return Jhe(Zt,8576,!1,Rr=>void Yn.push(lo(rt,C8(St.mapper,d_(St),Rr)))),ei(Yn)}function xr(rt,St,Zt,Yn,Rr){let An,gr,Hr=!1,Bi=rt.flags;const Fo=St.flags;if(c===op){if(Bi&3145728){let Ei=Wl(rt,St);return Ei&&(Ei&=Wl(St,rt)),Ei}if(Bi&4194304)return br(rt.type,St.type,3,!1);if(Bi&8388608&&(An=br(rt.objectType,St.objectType,3,!1))&&(An&=br(rt.indexType,St.indexType,3,!1))||Bi&16777216&&rt.root.isDistributive===St.root.isDistributive&&(An=br(rt.checkType,St.checkType,3,!1))&&(An&=br(rt.extendsType,St.extendsType,3,!1))&&(An&=br(aE(rt),aE(St),3,!1))&&(An&=br(sE(rt),sE(St),3,!1))||Bi&33554432&&(An=br(rt.baseType,St.baseType,3,!1))&&(An&=br(rt.constraint,St.constraint,3,!1)))return An;if(!(Bi&524288))return 0}else if(Bi&3145728||Fo&3145728){if(An=kd(rt,St,Zt,Yn))return An;if(!(Bi&465829888||Bi&524288&&Fo&1048576||Bi&2097152&&Fo&467402752))return 0}if(Bi&17301504&&rt.aliasSymbol&&rt.aliasTypeArguments&&rt.aliasSymbol===St.aliasSymbol&&!(qZ(rt)||qZ(St))){const Ei=m6e(rt.aliasSymbol);if(Ei===et)return 1;const Oo=Ki(rt.aliasSymbol).typeParameters,xa=zh(Oo),Ns=Mb(rt.aliasTypeArguments,Oo,xa,lr(rt.aliasSymbol.valueDeclaration)),fs=Mb(St.aliasTypeArguments,Oo,xa,lr(rt.aliasSymbol.valueDeclaration)),Cc=_a(Ns,fs,Ei,Yn);if(Cc!==void 0)return Cc}if(T6e(rt)&&!rt.target.readonly&&(An=br(Js(rt)[0],St,1))||T6e(St)&&(St.target.readonly||R9(Gu(rt)||rt))&&(An=br(rt,Js(St)[0],2)))return An;if(Fo&262144){if(Wr(rt)&32&&!rt.declaration.nameType&&br(Y_(St),yf(rt),3)&&!(Fh(rt)&4)){const Ei=cv(rt),Oo=Pp(St,d_(rt));if(An=br(Ei,Oo,3,Zt))return An}if(c===xp&&Bi&262144){let Ei=Md(rt);if(Ei)for(;Ei&&Gm(Ei,Oo=>!!(Oo.flags&262144));){if(An=br(Ei,St,1,!1))return An;Ei=Md(Ei)}return 0}}else if(Fo&4194304){const Ei=St.type;if(Bi&4194304&&(An=br(Ei,rt.type,3,!1)))return An;if(Wa(Ei)){if(An=br(rt,E8e(Ei),2,Zt))return An}else{const Oo=Xhe(Ei);if(Oo){if(br(rt,Y_(Oo,St.indexFlags|4),2,Zt)===-1)return-1}else if(Kd(Ei)){const xa=cy(Ei),Ns=yf(Ei);let fs;if(xa&&vN(Ei)){const Cc=Ur(xa,Ei);fs=ei([Cc,xa])}else fs=xa||Ns;if(br(rt,fs,2,Zt)===-1)return-1}}}else if(Fo&8388608){if(Bi&8388608){if((An=br(rt.objectType,St.objectType,3,Zt))&&(An&=br(rt.indexType,St.indexType,3,Zt)),An)return An;Zt&&(gr=F)}if(c===qd||c===xp){const Ei=St.objectType,Oo=St.indexType,xa=Gu(Ei)||Ei,Ns=Gu(Oo)||Oo;if(!HT(xa)&&!qT(Ns)){const fs=4|(xa!==Ei?2:0),Cc=kb(xa,Ns,fs);if(Cc){if(Zt&&gr&&nr(Rr),An=br(rt,Cc,2,Zt,void 0,Yn))return An;Zt&&gr&&F&&(F=ma([gr])<=ma([F])?gr:F)}}}Zt&&(gr=void 0)}else if(Kd(St)&&c!==op){const Ei=!!St.declaration.nameType,Oo=cv(St),xa=Fh(St);if(!(xa&8)){if(!Ei&&Oo.flags&8388608&&Oo.objectType===rt&&Oo.indexType===d_(St))return-1;if(!Kd(rt)){const Ns=Ei?cy(St):yf(St),fs=Y_(rt,2),Cc=xa&4,Uh=Cc?i9(Ns,fs):void 0;if(Cc?!(Uh.flags&131072):br(Ns,fs,3)){const yv=cv(St),aA=d_(St),sA=ZM(yv,-98305);if(!Ei&&sA.flags&8388608&&sA.indexType===aA){if(An=br(rt,sA.objectType,2,Zt))return An}else{const f2=Ei?Uh||Ns:Uh?ya([Uh,aA]):aA,y_=Pp(rt,f2);if(An=br(y_,yv,3,Zt))return An}}gr=F,nr(Rr)}}}else if(Fo&16777216){if(qM(St,Je,an,10))return 3;const Ei=St;if(!Ei.root.inferTypeParameters&&!Vct(Ei.root)&&!(rt.flags&16777216&&rt.root===Ei.root)){const Oo=!ba(M8(Ei.checkType),M8(Ei.extendsType)),xa=!Oo&&ba(KT(Ei.checkType),KT(Ei.extendsType));if((An=Oo?-1:br(rt,aE(Ei),2,!1,void 0,Yn))&&(An&=xa?-1:br(rt,sE(Ei),2,!1,void 0,Yn),An))return An}}else if(Fo&134217728){if(Bi&134217728){if(c===xp)return _dt(rt,St)?0:-1;lo(rt,uu)}if(cee(rt,St))return-1}else if(St.flags&268435456&&!(rt.flags&268435456)&&lee(rt,St))return-1;if(Bi&8650752){if(!(Bi&8388608&&Fo&8388608)){const Ei=zT(rt)||hn;if(An=br(Ei,St,1,!1,void 0,Yn))return An;if(An=br(Jp(Ei,rt),St,1,Zt&&Ei!==hn&&!(Fo&Bi&262144),void 0,Yn))return An;if(Zhe(rt)){const Oo=zT(rt.indexType);if(Oo&&(An=br(Pp(rt.objectType,Oo),St,1,Zt)))return An}}}else if(Bi&4194304){const Ei=Lge(rt.type,rt.indexFlags)&&Wr(rt.type)&32;if(An=br(Fs,St,1,Zt&&!Ei))return An;if(Ei){const Oo=rt.type,xa=cy(Oo),Ns=xa&&vN(Oo)?Ur(xa,Oo):xa||yf(Oo);if(An=br(Ns,St,1,Zt))return An}}else if(Bi&134217728&&!(Fo&524288)){if(!(Fo&134217728)){const Ei=Gu(rt);if(Ei&&Ei!==rt&&(An=br(Ei,St,1,Zt)))return An}}else if(Bi&268435456)if(Fo&268435456){if(rt.symbol!==St.symbol)return 0;if(An=br(rt.type,St.type,3,Zt))return An}else{const Ei=Gu(rt);if(Ei&&(An=br(Ei,St,1,Zt)))return An}else if(Bi&16777216){if(qM(rt,ge,Dt,10))return 3;if(Fo&16777216){const xa=rt.root.inferTypeParameters;let Ns=rt.extendsType,fs;if(xa){const Cc=B8(xa,void 0,0,ao);gv(Cc.inferences,St.extendsType,Ns,1536),Ns=lo(Ns,Cc.mapper),fs=Cc.mapper}if(fv(Ns,St.extendsType)&&(br(rt.checkType,St.checkType,3)||br(St.checkType,rt.checkType,3))&&((An=br(lo(aE(rt),fs),aE(St),3,Zt))&&(An&=br(sE(rt),sE(St),3,Zt)),An))return An}const Ei=Yhe(rt);if(Ei&&(An=br(Ei,St,1,Zt)))return An;const Oo=!(Fo&16777216)&&s9(rt)?kOe(rt):void 0;if(Oo&&(nr(Rr),An=br(Oo,St,1,Zt)))return An}else{if(c!==Nh&&c!==wf&&Zst(St)&&mv(rt))return-1;if(Kd(St))return Kd(rt)&&(An=ct(rt,St,Zt))?An:0;const Ei=!!(Bi&402784252);if(c!==op)rt=Ld(rt),Bi=rt.flags;else if(Kd(rt))return 0;if(Wr(rt)&4&&Wr(St)&4&&rt.target===St.target&&!Wa(rt)&&!(qZ(rt)||qZ(St))){if($Z(rt))return-1;const Oo=eve(rt.target);if(Oo===et)return 1;const xa=_a(Js(rt),Js(St),Oo,Yn);if(xa!==void 0)return xa}else{if(JM(St)?cp(rt,cE):Uf(St)&&cp(rt,Oo=>Wa(Oo)&&!Oo.target.readonly))return c!==op?br(iE(rt,Tt)||j,iE(St,Tt)||j,3,Zt):0;if(zb(rt)&&Wa(St)&&!zb(St)){const Oo=uv(rt);if(Oo!==rt)return br(Oo,St,1,Zt)}else if((c===Nh||c===wf)&&mv(St)&&Wr(St)&8192&&!mv(rt))return 0}if(Bi&2621440&&Fo&524288){const Oo=Zt&&F===Rr.errorInfo&&!Ei;if(An=ki(rt,St,Oo,void 0,!1,Yn),An&&(An&=Go(rt,St,0,Oo,Yn),An&&(An&=Go(rt,St,1,Oo,Yn),An&&(An&=Ds(rt,St,Ei,Oo,Yn)))),Hr&&An)F=gr||F||Rr.errorInfo;else if(An)return An}if(Bi&2621440&&Fo&1048576){const Oo=ZM(St,36175872);if(Oo.flags&1048576){const xa=wt(rt,Oo);if(xa)return xa}}}return 0;function ma(Ei){return Ei?rd(Ei,(Oo,xa)=>Oo+1+ma(xa.next),0):0}function _a(Ei,Oo,xa,Ns){if(An=pi(Ei,Oo,xa,Zt,Ns))return An;if(bt(xa,Cc=>!!(Cc&24))){gr=void 0,nr(Rr);return}const fs=Oo&&Cut(Oo,xa);if(Hr=!fs,xa!==et&&!fs){if(Hr&&!(Zt&&bt(xa,Cc=>(Cc&7)===0)))return 0;gr=F,nr(Rr)}}}function ct(rt,St,Zt){if(c===xp||(c===op?Fh(rt)===Fh(St):Khe(rt)<=Khe(St))){let Rr;const An=yf(St),gr=lo(yf(rt),Khe(rt)<0?Ts:uu);if(Rr=br(An,gr,3,Zt)){const Hr=Mp([d_(rt)],[d_(St)]);if(lo(cy(rt),Hr)===lo(cy(St),Hr))return Rr&br(lo(cv(rt),Hr),cv(St),3,Zt)}}return 0}function wt(rt,St){var Zt;const Yn=gs(rt),Rr=G6e(Yn,St);if(!Rr)return 0;let An=1;for(const _a of Rr)if(An*=jdt(Db(_a)),An>25)return(Zt=sr)==null||Zt.instant(sr.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:rt.id,targetId:St.id,numCombinations:An}),0;const gr=new Array(Rr.length),Hr=new Set;for(let _a=0;_a<Rr.length;_a++){const Ei=Rr[_a],Oo=Db(Ei);gr[_a]=Oo.flags&1048576?Oo.types:[Oo],Hr.add(Ei.escapedName)}const Bi=cne(gr),Fo=[];for(const _a of Bi){let Ei=!1;e:for(const Oo of St.types){for(let xa=0;xa<Rr.length;xa++){const Ns=Rr[xa],fs=va(Oo,Ns.escapedName);if(!fs)continue e;if(Ns===fs)continue;if(!_n(rt,St,Ns,fs,Uh=>_a[xa],!1,0,X||c===xp))continue e}Ef(Fo,Oo,xv),Ei=!0}if(!Ei)return 0}let ma=-1;for(const _a of Fo)if(ma&=ki(rt,_a,!1,Hr,!1,0),ma&&(ma&=Go(rt,_a,0,!1,0),ma&&(ma&=Go(rt,_a,1,!1,0),ma&&!(Wa(rt)&&Wa(_a))&&(ma&=Ds(rt,_a,!1,!1,0)))),!ma)return ma;return ma}function dn(rt,St){if(!St||rt.length===0)return rt;let Zt;for(let Yn=0;Yn<rt.length;Yn++)St.has(rt[Yn].escapedName)?Zt||(Zt=rt.slice(0,Yn)):Zt&&Zt.push(rt[Yn]);return Zt||rt}function Ut(rt,St,Zt,Yn,Rr){const An=X&&!!(xl(St)&48),gr=lp(Db(St),!1,An),Hr=Zt(rt);return br(Hr,gr,3,Yn,void 0,Rr)}function _n(rt,St,Zt,Yn,Rr,An,gr,Hr){const Bi=xf(Zt),Fo=xf(Yn);if(Bi&2||Fo&2){if(Zt.valueDeclaration!==Yn.valueDeclaration)return An&&(Bi&2&&Fo&2?_o(f.Types_have_separate_declarations_of_a_private_property_0,Si(Yn)):_o(f.Property_0_is_private_in_type_1_but_not_in_type_2,Si(Yn),Hn(Bi&2?rt:St),Hn(Bi&2?St:rt))),0}else if(Fo&4){if(!wut(Zt,Yn))return An&&_o(f.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Si(Yn),Hn(mx(Zt)||rt),Hn(mx(Yn)||St)),0}else if(Bi&4)return An&&_o(f.Property_0_is_protected_in_type_1_but_public_in_type_2,Si(Yn),Hn(rt),Hn(St)),0;if(c===wf&&g_(Zt)&&!g_(Yn))return 0;const ma=Ut(Zt,Yn,Rr,An,gr);return ma?!Hr&&Zt.flags&16777216&&Yn.flags&106500&&!(Yn.flags&16777216)?(An&&_o(f.Property_0_is_optional_in_type_1_but_required_in_type_2,Si(Yn),Hn(rt),Hn(St)),0):ma:(An&&Eo(f.Types_of_property_0_are_incompatible,Si(Yn)),0)}function Fn(rt,St,Zt,Yn){let Rr=!1;if(Zt.valueDeclaration&&ad(Zt.valueDeclaration)&&qi(Zt.valueDeclaration.name)&&rt.symbol&&rt.symbol.flags&32){const gr=Zt.valueDeclaration.name.escapedText,Hr=ek(rt.symbol,gr);if(Hr&&va(rt,Hr)){const Bi=w.getDeclarationName(rt.symbol.valueDeclaration),Fo=w.getDeclarationName(St.symbol.valueDeclaration);_o(f.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,km(gr),km(Bi.escapedText===""?OF:Bi),km(Fo.escapedText===""?OF:Fo));return}}const An=zo(hve(rt,St,Yn,!1));if((!_||_.code!==f.Class_0_incorrectly_implements_interface_1.code&&_.code!==f.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(Rr=!0),An.length===1){const gr=Si(Zt,void 0,0,20);_o(f.Property_0_is_missing_in_type_1_but_required_in_type_2,gr,...ox(rt,St)),Ne(Zt.declarations)&&Hf(kr(Zt.declarations[0],f._0_is_declared_here,gr)),Rr&&F&&Wn++}else er(rt,St,!1)&&(An.length>5?_o(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Hn(rt),Hn(St),Wt(An.slice(0,4),gr=>Si(gr)).join(", "),An.length-4):_o(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Hn(rt),Hn(St),Wt(An,gr=>Si(gr)).join(", ")),Rr&&F&&Wn++)}function ki(rt,St,Zt,Yn,Rr,An){if(c===op)return Br(rt,St,Yn);let gr=-1;if(Wa(St)){if(cE(rt)){if(!St.target.readonly&&(JM(rt)||Wa(rt)&&rt.target.readonly))return 0;const _a=dy(rt),Ei=dy(St),Oo=Wa(rt)?rt.target.combinedFlags&4:4,xa=St.target.combinedFlags&4,Ns=Wa(rt)?rt.target.minLength:0,fs=St.target.minLength;if(!Oo&&_a<fs)return Zt&&_o(f.Source_has_0_element_s_but_target_requires_1,_a,fs),0;if(!xa&&Ei<Ns)return Zt&&_o(f.Source_has_0_element_s_but_target_allows_only_1,Ns,Ei),0;if(!xa&&(Oo||Ei<_a))return Zt&&(Ns<fs?_o(f.Target_requires_0_element_s_but_source_may_have_fewer,fs):_o(f.Target_allows_only_0_element_s_but_source_may_have_more,Ei)),0;const Cc=Js(rt),Uh=Js(St),yv=lct(St.target,11),aA=R8(St.target,11),sA=St.target.hasRestElement;let f2=!!Yn;for(let y_=0;y_<_a;y_++){const yx=Wa(rt)?rt.target.elementFlags[y_]:4,jm=_a-1-y_,Pt=sA&&y_>=yv?Ei-1-Math.min(jm,aA):y_,Dr=St.target.elementFlags[Pt];if(Dr&8&&!(yx&8))return Zt&&_o(f.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Pt),0;if(yx&8&&!(Dr&12))return Zt&&_o(f.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,y_,Pt),0;if(Dr&1&&!(yx&1))return Zt&&_o(f.Source_provides_no_match_for_required_element_at_position_0_in_target,Pt),0;if(f2&&((yx&12||Dr&12)&&(f2=!1),f2&&(Yn!=null&&Yn.has(""+y_))))continue;const fi=Gb(Cc[y_],!!(yx&Dr&2)),Kr=Uh[Pt],ui=yx&8&&Dr&4?Vu(Kr):Gb(Kr,!!(Dr&2)),ns=br(fi,ui,3,Zt,void 0,An);if(!ns)return Zt&&(Ei>1||_a>1)&&(sA&&y_>=yv&&jm>=aA&&yv!==_a-aA-1?Eo(f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,yv,_a-aA-1,Pt):Eo(f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,y_,Pt)),0;gr&=ns}return gr}if(St.target.combinedFlags&12)return 0}const Hr=(c===Nh||c===wf)&&!pE(rt)&&!$Z(rt)&&!Wa(rt),Bi=gve(rt,St,Hr,!1);if(Bi)return Zt&&Cn(rt,St)&&Fn(rt,St,Bi,Hr),0;if(pE(St)){for(const _a of dn(gs(rt),Yn))if(!rE(St,_a.escapedName)&&!(dr(_a).flags&32768))return Zt&&_o(f.Property_0_does_not_exist_on_type_1,Si(_a),Hn(St)),0}const Fo=gs(St),ma=Wa(rt)&&Wa(St);for(const _a of dn(Fo,Yn)){const Ei=_a.escapedName;if(!(_a.flags&4194304)&&(!ma||og(Ei)||Ei==="length")&&(!Rr||_a.flags&16777216)){const Oo=va(rt,Ei);if(Oo&&Oo!==_a){const xa=_n(rt,St,Oo,_a,Db,Zt,An,c===xp);if(!xa)return 0;gr&=xa}}}return gr}function Br(rt,St,Zt){if(!(rt.flags&524288&&St.flags&524288))return 0;const Yn=dn(Pb(rt),Zt),Rr=dn(Pb(St),Zt);if(Yn.length!==Rr.length)return 0;let An=-1;for(const gr of Yn){const Hr=rE(St,gr.escapedName);if(!Hr)return 0;const Bi=nve(gr,Hr,br);if(!Bi)return 0;An&=Bi}return An}function Go(rt,St,Zt,Yn,Rr){var An,gr;if(c===op)return Ea(rt,St,Zt);if(St===nn||rt===nn)return-1;const Hr=rt.symbol&&eh(rt.symbol.valueDeclaration),Bi=St.symbol&&eh(St.symbol.valueDeclaration),Fo=Xo(rt,Hr&&Zt===1?0:Zt),ma=Xo(St,Bi&&Zt===1?0:Zt);if(Zt===1&&Fo.length&&ma.length){const Ns=!!(Fo[0].flags&4),fs=!!(ma[0].flags&4);if(Ns&&!fs)return Yn&&_o(f.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!v_(Fo[0],ma[0],Yn))return 0}let _a=-1;const Ei=Zt===1?Zi:ti,Oo=Wr(rt),xa=Wr(St);if(Oo&64&&xa&64&&rt.symbol===St.symbol||Oo&4&&xa&4&&rt.target===St.target){N.assertEqual(Fo.length,ma.length);for(let Ns=0;Ns<ma.length;Ns++){const fs=fo(Fo[Ns],ma[Ns],!0,Yn,Rr,Ei(Fo[Ns],ma[Ns]));if(!fs)return 0;_a&=fs}}else if(Fo.length===1&&ma.length===1){const Ns=c===xp||!!V.noStrictGenericChecks,fs=Ua(Fo),Cc=Ua(ma);if(_a=fo(fs,Cc,Ns,Yn,Rr,Ei(fs,Cc)),!_a&&Yn&&Zt===1&&Oo&xa&&(((An=Cc.declaration)==null?void 0:An.kind)===176||((gr=fs.declaration)==null?void 0:gr.kind)===176)){const Uh=yv=>kh(yv,void 0,262144,Zt);return _o(f.Type_0_is_not_assignable_to_type_1,Uh(fs),Uh(Cc)),_o(f.Types_of_construct_signatures_are_incompatible),_a}}else e:for(const Ns of ma){const fs=Ro();let Cc=Yn;for(const Uh of Fo){const yv=fo(Uh,Ns,!0,Cc,Rr,Ei(Uh,Ns));if(yv){_a&=yv,nr(fs);continue e}Cc=!1}return Cc&&_o(f.Type_0_provides_no_match_for_the_signature_1,Hn(rt),kh(Ns,void 0,void 0,Zt)),0}return _a}function Cn(rt,St){const Zt=c9(rt,0),Yn=c9(rt,1),Rr=Pb(rt);return(Zt.length||Yn.length)&&!Rr.length?!!(Xo(St,0).length&&Zt.length||Xo(St,1).length&&Yn.length):!0}function ti(rt,St){return rt.parameters.length===0&&St.parameters.length===0?(Zt,Yn)=>Eo(f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Hn(Zt),Hn(Yn)):(Zt,Yn)=>Eo(f.Call_signature_return_types_0_and_1_are_incompatible,Hn(Zt),Hn(Yn))}function Zi(rt,St){return rt.parameters.length===0&&St.parameters.length===0?(Zt,Yn)=>Eo(f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Hn(Zt),Hn(Yn)):(Zt,Yn)=>Eo(f.Construct_signature_return_types_0_and_1_are_incompatible,Hn(Zt),Hn(Yn))}function fo(rt,St,Zt,Yn,Rr,An){const gr=c===Nh?16:c===wf?24:0;return Xge(Zt?I8(rt):rt,Zt?I8(St):St,gr,Yn,_o,An,Hr,uu);function Hr(Bi,Fo,ma){return br(Bi,Fo,3,ma,void 0,Rr)}}function Ea(rt,St,Zt){const Yn=Xo(rt,Zt),Rr=Xo(St,Zt);if(Yn.length!==Rr.length)return 0;let An=-1;for(let gr=0;gr<Yn.length;gr++){const Hr=x9(Yn[gr],Rr[gr],!1,!1,!1,br);if(!Hr)return 0;An&=Hr}return An}function Ec(rt,St,Zt,Yn){let Rr=-1;const An=St.keyType,gr=rt.flags&2097152?a9(rt):Pb(rt);for(const Hr of gr)if(!u6e(rt,Hr)&&lx(TN(Hr,8576),An)){const Bi=Db(Hr),Fo=De||Bi.flags&32768||An===Tt||!(Hr.flags&16777216)?Bi:mm(Bi,524288),ma=br(Fo,St.type,3,Zt,void 0,Yn);if(!ma)return Zt&&_o(f.Property_0_is_incompatible_with_index_signature,Si(Hr)),0;Rr&=ma}for(const Hr of gd(rt))if(lx(Hr.keyType,An)){const Bi=ks(Hr,St,Zt,Yn);if(!Bi)return 0;Rr&=Bi}return Rr}function ks(rt,St,Zt,Yn){const Rr=br(rt.type,St.type,3,Zt,void 0,Yn);return!Rr&&Zt&&(rt.keyType===St.keyType?_o(f._0_index_signatures_are_incompatible,Hn(rt.keyType)):_o(f._0_and_1_index_signatures_are_incompatible,Hn(rt.keyType),Hn(St.keyType))),Rr}function Ds(rt,St,Zt,Yn,Rr){if(c===op)return Ks(rt,St);const An=gd(St),gr=bt(An,Bi=>Bi.keyType===ke);let Hr=-1;for(const Bi of An){const Fo=c!==wf&&!Zt&&gr&&Bi.type.flags&1?-1:Kd(rt)&&gr?br(cv(rt),Bi.type,3,Yn):Du(rt,Bi,Yn,Rr);if(!Fo)return 0;Hr&=Fo}return Hr}function Du(rt,St,Zt,Yn){const Rr=S8(rt,St.keyType);return Rr?ks(Rr,St,Zt,Yn):!(Yn&1)&&(c!==wf||Wr(rt)&8192)&&ree(rt)?Ec(rt,St,Zt,Yn):(Zt&&_o(f.Index_signature_for_type_0_is_missing_in_type_1,Hn(St.keyType),Hn(rt)),0)}function Ks(rt,St){const Zt=gd(rt),Yn=gd(St);if(Zt.length!==Yn.length)return 0;for(const Rr of Yn){const An=Sg(rt,Rr.keyType);if(!(An&&br(An.type,Rr.type,3)&&An.isReadonly===Rr.isReadonly))return 0}return-1}function v_(rt,St,Zt){if(!rt.declaration||!St.declaration)return!0;const Yn=wA(rt.declaration,6),Rr=wA(St.declaration,6);return Rr===2||Rr===4&&Yn!==2||Rr!==4&&!Yn?!0:(Zt&&_o(f.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,wT(Yn),wT(Rr)),!1)}}function Qge(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!Xe(n.types,Qge);if(n.flags&465829888){const a=zT(n);if(a&&a!==n)return Qge(a)}return __(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function d6e(n,a){return Wa(n)&&Wa(a)?et:gs(a).filter(c=>HZ(Ke(n,c.escapedName),dr(c)))}function HZ(n,a){return!!n&&!!a&&Cl(n,32768)&&!!F8(a)}function Dut(n){return gs(n).filter(a=>F8(dr(a)))}function p6e(n,a,c=Jge){return CFe(n,a,c)||wyt(n,a)||Oyt(n,a)||Wyt(n,a)||Fyt(n,a)}function Zge(n,a,c){const d=n.types,_=d.map(x=>x.flags&402784252?0:-1);for(const[x,k]of a){let F=!1;for(let H=0;H<d.length;H++)if(_[H]){const re=xt(d[H],k);re&&c(x(),re)?F=!0:_[H]=3}for(let H=0;H<d.length;H++)_[H]===3&&(_[H]=F?0:-1)}const v=Or(_,0)?ei(d.filter((x,k)=>_[k]),0):n;return v.flags&131072?n:v}function f6e(n){if(n.flags&524288){const a=p_(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,f6e):!1}function Nut(n,a,c){for(const d of gs(n))if(Yve(a,d.escapedName,c))return!0;return!1}function eve(n){return n===$o||n===na||n.objectFlags&8?Q:_6e(n.symbol,n.typeParameters)}function m6e(n){return _6e(n,Ki(n).typeParameters)}function _6e(n,a=et){var c,d;const _=Ki(n);if(!_.variances){(c=sr)==null||c.push(sr.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:vd(Zs(n))});const v=W0;W0||(W0=!0,zI=fu.length),_.variances=et;const x=[];for(const k of a){const F=tve(k);let H=F&16384?F&8192?0:1:F&8192?2:void 0;if(H===void 0){let re=!1,be=!1;const ge=da;da=Dt=>Dt?be=!0:re=!0;const Je=A9(n,k,Tp),gt=A9(n,k,Ms);H=(ba(gt,Je)?1:0)|(ba(Je,gt)?2:0),H===3&&ba(A9(n,k,xc),Je)&&(H=4),da=ge,(re||be)&&(re&&(H|=8),be&&(H|=16))}x.push(H)}v||(W0=!1,zI=0),_.variances=x,(d=sr)==null||d.pop({variances:x.map(N.formatVariance)})}return _.variances}function A9(n,a,c){const d=U1(a,c),_=Zs(n);if(Jt(_))return _;const v=n.flags&524288?EN(n,fy(Ki(n).typeParameters,d)):uy(_,fy(_.typeParameters,d));return mt.add(vd(v)),v}function qZ(n){return mt.has(vd(n))}function tve(n){var a;return rd((a=n.symbol)==null?void 0:a.declarations,(c,d)=>c|ud(d),0)&28672}function Cut(n,a){for(let c=0;c<a.length;c++)if((a[c]&7)===1&&n[c].flags&16384)return!0;return!1}function Put(n){return n.flags&262144&&!Md(n)}function Mut(n){return!!(Wr(n)&4)&&!n.node}function JZ(n){return Mut(n)&&bt(Js(n),a=>!!(a.flags&262144)||JZ(a))}function Lut(n,a,c,d){const _=[];let v="";const x=F(n,0),k=F(a,0);return`${v}${x},${k}${c}`;function F(H,re=0){let be=""+H.target.id;for(const ge of Js(H)){if(ge.flags&262144){if(d||Put(ge)){let Je=_.indexOf(ge);Je<0&&(Je=_.length,_.push(ge)),be+="="+Je;continue}v="*"}else if(re<4&&JZ(ge)){be+="<"+F(ge,re+1)+">";continue}be+="-"+ge.id}return be}}function KZ(n,a,c,d,_){if(d===op&&n.id>a.id){const x=n;n=a,a=x}const v=c?":"+c:"";return JZ(n)&&JZ(a)?Lut(n,a,v,_):`${n.id},${a.id}${v}`}function I9(n,a){if(xl(n)&6){for(const c of n.links.containingType.types){const d=va(c,n.escapedName),_=d&&I9(d,a);if(_)return _}return}return a(n)}function mx(n){return n.parent&&n.parent.flags&32?Zs(Cd(n)):void 0}function XZ(n){const a=mx(n),c=a&&Cp(a)[0];return c&&Ke(c,n.escapedName)}function kut(n,a){return I9(n,c=>{const d=mx(c);return d?_N(d,a):!1})}function wut(n,a){return!I9(a,c=>xf(c)&4?!kut(n,mx(c)):!1)}function h6e(n,a,c){return I9(a,d=>xf(d,c)&4?!_N(n,mx(d)):!1)?void 0:n}function qM(n,a,c,d=3){if(c>=d){if((Wr(n)&96)===96&&(n=g6e(n)),n.flags&2097152)return bt(n.types,k=>qM(k,a,c,d));const _=YZ(n);let v=0,x=0;for(let k=0;k<c;k++){const F=a[k];if(v6e(F,_)){if(F.id>=x&&(v++,v>=d))return!0;x=F.id}}}return!1}function g6e(n){let a;for(;(Wr(n)&96)===96&&(a=FT(n))&&(a.symbol||a.flags&2097152&&bt(a.types,c=>!!c.symbol));)n=a;return n}function v6e(n,a){return(Wr(n)&96)===96&&(n=g6e(n)),n.flags&2097152?bt(n.types,c=>v6e(c,a)):YZ(n)===a}function YZ(n){if(n.flags&524288&&!yve(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 Out(n,a){return nve(n,a,L8)!==0}function nve(n,a,c){if(n===a)return-1;const d=xf(n)&6,_=xf(a)&6;if(d!==_)return 0;if(d){if(wN(n)!==wN(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return g_(n)!==g_(a)?0:c(dr(n),dr(a))}function Wut(n,a,c){const d=Xp(n),_=Xp(a),v=th(n),x=th(a),k=jh(n),F=jh(a);return!!(d===_&&v===x&&k===F||c&&v<=x)}function x9(n,a,c,d,_,v){if(n===a)return-1;if(!Wut(n,a,c)||Ne(n.typeParameters)!==Ne(a.typeParameters))return 0;if(a.typeParameters){const F=Mp(n.typeParameters,a.typeParameters);for(let H=0;H<a.typeParameters.length;H++){const re=n.typeParameters[H],be=a.typeParameters[H];if(!(re===be||v(lo(GM(re),F)||hn,GM(be)||hn)&&v(lo(GT(re),F)||hn,GT(be)||hn)))return 0}n=xN(n,F,!0)}let x=-1;if(!d){const F=oE(n);if(F){const H=oE(a);if(H){const re=v(F,H);if(!re)return 0;x&=re}}}const k=Xp(a);for(let F=0;F<k;F++){const H=h_(n,F),re=h_(a,F),be=v(re,H);if(!be)return 0;x&=be}if(!_){const F=Gf(n),H=Gf(a);x&=F||H?Fut(F,H,v):v(ps(n),ps(a))}return x}function Fut(n,a,c){return n&&a&&Cge(n,a)?n.type===a.type?-1:n.type&&a.type?c(n.type,a.type):0:0}function zut(n){let a;for(const c of n)if(!(c.flags&131072)){const d=_v(c);if(a??(a=d),d===c||d!==a)return!1}return!0}function y6e(n){return rd(n,(a,c)=>a|(c.flags&1048576?y6e(c.types):c.flags),0)}function But(n){if(n.length===1)return n[0];const a=X?Zo(n,d=>dc(d,_=>!(_.flags&98304))):n,c=zut(a)?ei(a):rd(a,(d,_)=>Wb(d,_)?_:d);return a===n?c:N9(c,y6e(n)&98304)}function Gut(n){return rd(n,(a,c)=>Wb(c,a)?c:a)}function Uf(n){return!!(Wr(n)&4)&&(n.target===$o||n.target===na)}function JM(n){return!!(Wr(n)&4)&&n.target===na}function cE(n){return Uf(n)||Wa(n)}function R9(n){return Uf(n)&&!JM(n)||Wa(n)&&!n.target.readonly}function D9(n){return Uf(n)?Js(n)[0]:void 0}function my(n){return Uf(n)||!(n.flags&98304)&&ba(n,df)}function rve(n){return R9(n)||!(n.flags&98305)&&ba(n,ec)}function ive(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;const a=n.target;if(Wr(a)&1){const _=As(a);if(_&&_.expression.kind!==80&&_.expression.kind!==211)return}const c=Cp(a);if(c.length!==1||Cb(n.symbol).size)return;let d=Ne(a.typeParameters)?lo(c[0],Mp(a.typeParameters,Js(n).slice(0,a.typeParameters.length))):c[0];return Ne(Js(n))>Ne(a.typeParameters)&&(d=Jp(d,Xa(Js(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=d}function b6e(n){return X?n===Mi:n===Lt}function $Z(n){const a=D9(n);return!!a&&b6e(a)}function KM(n){let a;return Wa(n)||!!va(n,"0")||my(n)&&!!(a=Ke(n,"length"))&&cp(a,c=>!!(c.flags&256))}function QZ(n){return my(n)||KM(n)}function Vut(n,a){const c=Ke(n,""+a);if(c)return c;if(cp(n,Wa))return A6e(n,a,V.noUncheckedIndexedAccess?Oe:void 0)}function jut(n){return!(n.flags&240544)}function __(n){return!!(n.flags&109472)}function E6e(n){const a=uv(n);return a.flags&2097152?bt(a.types,__):__(a)}function Uut(n){return n.flags&2097152&&In(n.types,__)||n}function O8(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:Jn(n.types,__):__(n)}function _v(n){return n.flags&1056?vZ(n):n.flags&402653312?ke:n.flags&256?Tt:n.flags&2048?kt:n.flags&512?Pi:n.flags&1048576?Hut(n):n}function Hut(n){const a=`B${vd(n)}`;return qI(a)??cb(a,dl(n,_v))}function ove(n){return n.flags&402653312?ke:n.flags&288?Tt:n.flags&2048?kt:n.flags&512?Pi:n.flags&1048576?dl(n,ove):n}function q1(n){return n.flags&1056&&j1(n)?vZ(n):n.flags&128&&j1(n)?ke:n.flags&256&&j1(n)?Tt:n.flags&2048&&j1(n)?kt:n.flags&512&&j1(n)?Pi:n.flags&1048576?dl(n,q1):n}function S6e(n){return n.flags&8192?xi:n.flags&1048576?dl(n,S6e):n}function ave(n,a){return Vee(n,a)||(n=S6e(q1(n))),yd(n)}function qut(n,a,c){if(n&&__(n)){const d=a?c?Q8(a):a:void 0;n=ave(n,d)}return n}function sve(n,a,c,d){if(n&&__(n)){const _=a?$1(c,a,d):void 0;n=ave(n,_)}return n}function Wa(n){return!!(Wr(n)&4&&n.target.objectFlags&8)}function zb(n){return Wa(n)&&!!(n.target.combinedFlags&8)}function T6e(n){return zb(n)&&n.target.elementFlags.length===1}function ZZ(n){return XM(n,n.target.fixedLength)}function A6e(n,a,c){return dl(n,d=>{const _=d,v=ZZ(_);return v?c&&a>=Dge(_.target)?ei([v,c]):v:Oe})}function Jut(n){const a=ZZ(n);return a&&Vu(a)}function XM(n,a,c=0,d=!1,_=!1){const v=dy(n)-c;if(a<v){const x=Js(n),k=[];for(let F=a;F<v;F++){const H=x[F];k.push(n.target.elementFlags[F]&8?Pp(H,Tt):H)}return d?ya(k):ei(k,_?0:1)}}function Kut(n,a){return dy(n)===dy(a)&&Jn(n.target.elementFlags,(c,d)=>(c&12)===(a.target.elementFlags[d]&12))}function I6e({value:n}){return n.base10Value==="0"}function x6e(n){return dc(n,a=>fm(a,4194304))}function Xut(n){return dl(n,Yut)}function Yut(n){return n.flags&4?Qo:n.flags&8?Ja:n.flags&64?Zu:n===En||n===en||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&I6e(n)?n:Vr}function N9(n,a){const c=a&~n.flags&98304;return c===0?n:ei(c===32768?[n,Oe]:c===65536?[n,fe]:[n,Oe,fe])}function Bb(n,a=!1){N.assert(X);const c=a?me:Oe;return n===c||n.flags&1048576&&n.types[0]===c?n:ei([n,c])}function $ut(n){return jd||(jd=jM("NonNullable",524288,void 0)||ft),jd!==ft?EN(jd,[n]):ya([n,Ca])}function hv(n){return X?QT(n,2097152):n}function R6e(n){return X?ei([n,J]):n}function eee(n){return X?pee(n,J):n}function tee(n,a,c){return c?lC(a)?Bb(n):R6e(n):n}function W8(n,a){return f4(a)?hv(n):qu(a)?eee(n):n}function Gb(n,a){return De&&a?pee(n,L):n}function F8(n){return n===L||!!(n.flags&1048576)&&n.types[0]===L}function nee(n){return De?pee(n,L):mm(n,524288)}function Qut(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function ree(n){const a=Wr(n);return n.flags&2097152?Jn(n.types,ree):!!(n.symbol&&n.symbol.flags&7040&&!(n.symbol.flags&32)&&!ite(n))||!!(a&4194304)||!!(a&1024&&ree(n.source))}function XT(n,a){const c=Ka(n.flags,n.escapedName,xl(n)&8);c.declarations=n.declarations,c.parent=n.parent,c.links.type=a,c.links.target=n,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration);const d=Ki(n).nameType;return d&&(c.links.nameType=d),c}function Zut(n,a){const c=ca();for(const d of Pb(n)){const _=dr(d),v=a(_);c.set(d.escapedName,v===_?d:XT(d,v))}return c}function z8(n){if(!(pE(n)&&Wr(n)&8192))return n;const a=n.regularType;if(a)return a;const c=n,d=Zut(n,z8),_=Ls(c.symbol,d,c.callSignatures,c.constructSignatures,c.indexInfos);return _.flags=c.flags,_.objectFlags|=c.objectFlags&-8193,n.regularType=_,_}function D6e(n,a,c){return{parent:n,propertyName:a,siblings:c,resolvedProperties:void 0}}function N6e(n){if(!n.siblings){const a=[];for(const c of N6e(n.parent))if(pE(c)){const d=rE(c,n.propertyName);d&&ZT(dr(d),_=>{a.push(_)})}n.siblings=a}return n.siblings}function edt(n){if(!n.resolvedProperties){const a=new Map;for(const c of N6e(n))if(pE(c)&&!(Wr(c)&2097152))for(const d of gs(c))a.set(d.escapedName,d);n.resolvedProperties=zo(a.values())}return n.resolvedProperties}function tdt(n,a){if(!(n.flags&4))return n;const c=dr(n),d=a&&D6e(a,n.escapedName,void 0),_=lve(c,d);return _===c?n:XT(n,_)}function ndt(n){const a=He.get(n.escapedName);if(a)return a;const c=XT(n,me);return c.flags|=16777216,He.set(n.escapedName,c),c}function rdt(n,a){const c=ca();for(const _ of Pb(n))c.set(_.escapedName,tdt(_,a));if(a)for(const _ of edt(a))c.has(_.escapedName)||c.set(_.escapedName,ndt(_));const d=Ls(n.symbol,c,et,et,Zo(gd(n),_=>Bh(_.keyType,Kp(_.type),_.isReadonly)));return d.objectFlags|=Wr(n)&266240,d}function Kp(n){return lve(n,void 0)}function lve(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(pE(n))c=rdt(n,a);else if(n.flags&1048576){const d=a||D6e(void 0,void 0,n.types),_=Zo(n.types,v=>v.flags&98304?v:lve(v,d));c=ei(_,bt(_,mv)?2:1)}else n.flags&2097152?c=ya(Zo(n.types,Kp)):cE(n)&&(c=uy(n.target,Zo(Js(n),Kp)));return c&&a===void 0&&(n.widened=c),c||n}return n}function iee(n){let a=!1;if(Wr(n)&65536){if(n.flags&1048576)if(bt(n.types,mv))a=!0;else for(const c of n.types)iee(c)&&(a=!0);if(cE(n))for(const c of Js(n))iee(c)&&(a=!0);if(pE(n))for(const c of Pb(n)){const d=dr(c);Wr(d)&65536&&(iee(d)||qe(c.valueDeclaration,f.Object_literal_s_property_0_implicitly_has_an_1_type,Si(c),Hn(Kp(d))),a=!0)}}return a}function uE(n,a,c){const d=Hn(Kp(a));if(lr(n)&&!gk(Un(n),V))return;let _;switch(n.kind){case 226:case 172:case 171:_=de?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:const v=n;if(Ve(v.name)){const x=r0(v.name);if((ZA(v.parent)||yh(v.parent)||bh(v.parent))&&v.parent.parameters.includes(v)&&(yl(v,v.name.escapedText,788968,void 0,v.name.escapedText,!0)||x&&aU(x))){const k="arg"+v.parent.parameters.indexOf(v),F=xs(v.name)+(v.dotDotDotToken?"[]":"");mu(de,n,f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,k,F);return}}_=n.dotDotDotToken?de?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:de?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,!de)return;break;case 324:qe(n,f.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,d);return;case 330:de&&JR(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(de&&!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}_=de?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:de&&qe(n,f.Mapped_object_type_implicitly_has_an_any_template_type);return;default:_=de?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}mu(de,n,_,xs(Lo(n)),d)}function oee(n,a,c){r(()=>{de&&Wr(a)&65536&&(!c||!Uve(n))&&(iee(a)||uE(n,a,c))})}function cve(n,a,c){const d=Xp(n),_=Xp(a),v=J8(n),x=J8(a),k=x?_-1:_,F=v?k:Math.min(d,k),H=oE(n);if(H){const re=oE(a);re&&c(H,re)}for(let re=0;re<F;re++)c(h_(n,re),h_(a,re));x&&c(eB(n,F,BT(x)&&!Gm(x,rve)),x)}function uve(n,a,c){const d=Gf(n),_=Gf(a);d&&_&&Cge(d,_)&&d.type&&_.type?c(d.type,_.type):c(ps(n),ps(a))}function B8(n,a,c,d){return dve(n.map(fve),a,c,d||Jge)}function idt(n,a=0){return n&&dve(Wt(n.inferences,C6e),n.signature,n.flags|a,n.compareTypes)}function dve(n,a,c,d){const _={inferences:n,signature:a,flags:c,compareTypes:d,mapper:Ts,nonFixingMapper:Ts};return _.mapper=odt(_),_.nonFixingMapper=adt(_),_}function odt(n){return Vge(Wt(n.inferences,a=>a.typeParameter),Wt(n.inferences,(a,c)=>()=>(a.isFixed||(sdt(n),aee(n.inferences),a.isFixed=!0),bve(n,c))))}function adt(n){return Vge(Wt(n.inferences,a=>a.typeParameter),Wt(n.inferences,(a,c)=>()=>bve(n,c)))}function aee(n){for(const a of n)a.isFixed||(a.inferredType=void 0)}function pve(n,a,c){(n.intraExpressionInferenceSites??(n.intraExpressionInferenceSites=[])).push({node:a,type:c})}function sdt(n){if(n.intraExpressionInferenceSites){for(const{node:a,type:c}of n.intraExpressionInferenceSites){const d=a.kind===174?A4e(a,2):Yd(a,2);d&&gv(n.inferences,c,d)}n.intraExpressionInferenceSites=void 0}}function fve(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function C6e(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 ldt(n){const a=mn(n.inferences,LN);return a.length?dve(Wt(a,C6e),n.signature,n.flags,n.compareTypes):void 0}function mve(n){return n&&n.mapper}function dE(n){const a=Wr(n);if(a&524288)return!!(a&1048576);const c=!!(n.flags&465829888||n.flags&524288&&!P6e(n)&&(a&4&&(n.node||bt(Js(n),dE))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!P6e(n)&&bt(n.types,dE));return n.flags&3899393&&(n.objectFlags|=524288|(c?1048576:0)),c}function P6e(n){if(n.aliasSymbol&&!n.aliasTypeArguments){const a=pl(n.aliasSymbol,265);return!!(a&&Vn(a.parent,c=>c.kind===312?!0:c.kind===267?!1:"quit"))}return!1}function G8(n,a,c=0){return!!(n===a||n.flags&3145728&&bt(n.types,d=>G8(d,a,c))||c<3&&n.flags&16777216&&(G8(aE(n),a,c+1)||G8(sE(n),a,c+1)))}function cdt(n,a){const c=Gf(n);return c?!!c.type&&G8(c.type,a):G8(ps(n),a)}function udt(n){const a=ca();ZT(n,d=>{if(!(d.flags&128))return;const _=_l(d.value),v=Ka(4,_);v.links.type=j,d.symbol&&(v.declarations=d.symbol.declarations,v.valueDeclaration=d.symbol.valueDeclaration),a.set(_,v)});const c=n.flags&4?[Bh(ke,Ca,!1)]:et;return Ls(void 0,a,et,et,c)}function M6e(n,a,c){const d=n.id+","+a.id+","+c.id;if(Uc.has(d))return Uc.get(d);const _=n.id+","+(a.target||a).id;if(Or(ip,_))return;ip.push(_);const v=ddt(n,a,c);return ip.pop(),Uc.set(d,v),v}function _ve(n){return!(Wr(n)&262144)||pE(n)&&bt(gs(n),a=>_ve(dr(a)))||Wa(n)&&bt(G1(n),_ve)}function ddt(n,a,c){if(!(Sg(n,ke)||gs(n).length!==0&&_ve(n)))return;if(Uf(n))return Vu(see(Js(n)[0],a,c),JM(n));if(Wa(n)){const _=Wt(G1(n),x=>see(x,a,c)),v=Fh(a)&4?Zo(n.target.elementFlags,x=>x&2?1:x):n.target.elementFlags;return Gh(_,v,n.target.readonly,n.target.labeledElementDeclarations)}const d=Wf(1040,void 0);return d.source=n,d.mappedType=a,d.constraintType=c,d}function pdt(n){const a=Ki(n);return a.type||(a.type=see(n.links.propertyType,n.links.mappedType,n.links.constraintType)),a.type}function see(n,a,c){const d=Pp(c.type,d_(a)),_=cv(a),v=fve(d);return gv([v],n,_),L6e(v)||hn}function*hve(n,a,c,d){const _=gs(a);for(const v of _)if(!SOe(v)&&(c||!(v.flags&16777216||xl(v)&48))){const x=va(n,v.escapedName);if(!x)yield v;else if(d){const k=dr(v);if(k.flags&109472){const F=dr(x);F.flags&1||yd(F)===yd(k)||(yield v)}}}}function gve(n,a,c,d){return E6(hve(n,a,c,d))}function fdt(n,a){return!(a.target.combinedFlags&8)&&a.target.minLength>n.target.minLength||!a.target.hasRestElement&&(n.target.hasRestElement||a.target.fixedLength<n.target.fixedLength)}function mdt(n,a){return Wa(n)&&Wa(a)?fdt(n,a):!!gve(n,a,!1,!0)&&!!gve(a,n,!1,!1)}function L6e(n){return n.candidates?ei(n.candidates,2):n.contraCandidates?ya(n.contraCandidates):void 0}function vve(n){return!!Zr(n).skipDirectInference}function k6e(n){return!!(n.symbol&&bt(n.symbol.declarations,vve))}function _dt(n,a){const c=n.texts[0],d=a.texts[0],_=n.texts[n.texts.length-1],v=a.texts[a.texts.length-1],x=Math.min(c.length,d.length),k=Math.min(_.length,v.length);return c.slice(0,x)!==d.slice(0,x)||_.slice(_.length-k)!==v.slice(v.length-k)}function w6e(n,a){if(n==="")return!1;const c=+n;return isFinite(c)&&(!a||""+c===n)}function hdt(n){return WZ(yU(n))}function lee(n,a){if(a.flags&1)return!0;if(a.flags&134217732)return ba(n,a);if(a.flags&268435456){const c=[];for(;a.flags&268435456;)c.unshift(a.symbol),a=a.type;return rd(c,(_,v)=>dx(v,_),n)===n&&lee(n,a)}return!1}function O6e(n,a){if(a.flags&2097152)return Jn(a.types,c=>c===lc||O6e(n,c));if(a.flags&4||ba(n,a))return!0;if(n.flags&128){const c=n.value;return!!(a.flags&8&&w6e(c,!1)||a.flags&64&&H3(c,!1)||a.flags&98816&&c===a.intrinsicName||a.flags&268435456&&lee(Xd(c),a)||a.flags&134217728&&cee(n,a))}if(n.flags&134217728){const c=n.texts;return c.length===2&&c[0]===""&&c[1]===""&&ba(n.types[0],a)}return!1}function W6e(n,a){return n.flags&128?F6e([n.value],et,a):n.flags&134217728?Ba(n.texts,a.texts)?Wt(n.types,gdt):F6e(n.texts,n.types,a):void 0}function cee(n,a){const c=W6e(n,a);return!!c&&Jn(c,(d,_)=>O6e(d,a.types[_]))}function gdt(n){return n.flags&402653317?n:jT(["",""],[n])}function F6e(n,a,c){const d=n.length-1,_=n[0],v=n[d],x=c.texts,k=x.length-1,F=x[0],H=x[k];if(d===0&&_.length<F.length+H.length||!_.startsWith(F)||!v.endsWith(H))return;const re=v.slice(0,v.length-H.length),be=[];let ge=0,Je=F.length;for(let an=1;an<k;an++){const cn=x[an];if(cn.length>0){let ar=ge,Wn=Je;for(;Wn=gt(ar).indexOf(cn,Wn),!(Wn>=0);){if(ar++,ar===n.length)return;Wn=0}Dt(ar,Wn),Je+=cn.length}else if(Je<gt(ge).length)Dt(ge,Je+1);else if(ge<d)Dt(ge+1,0);else return}return Dt(d,gt(d).length),be;function gt(an){return an<d?n[an]:re}function Dt(an,cn){const ar=an===ge?Xd(gt(an).slice(Je,cn)):jT([n[ge].slice(Je),...n.slice(ge+1,an),gt(an).slice(0,cn)],a.slice(ge,an));be.push(ar),ge=an,Je=cn}}function gv(n,a,c,d=0,_=!1){let v=!1,x,k=2048,F,H,re,be=0;ge(a,c);function ge(On,er){if(!(!dE(er)||VM(er))){if(On===Rt||On===Ye){const ao=x;x=On,ge(er,er),x=ao;return}if(On.aliasSymbol&&On.aliasSymbol===er.aliasSymbol){if(On.aliasTypeArguments){const ao=Ki(On.aliasSymbol).typeParameters,br=zh(ao),Po=Mb(On.aliasTypeArguments,ao,br,lr(On.aliasSymbol.valueDeclaration)),ss=Mb(er.aliasTypeArguments,ao,br,lr(On.aliasSymbol.valueDeclaration));ar(Po,ss,m6e(On.aliasSymbol))}return}if(On===er&&On.flags&3145728){for(const ao of On.types)ge(ao,ao);return}if(er.flags&1048576){const[ao,br]=cn(On.flags&1048576?On.types:[On],er.types,vdt),[Po,ss]=cn(ao,br,ydt);if(ss.length===0)return;if(er=ei(ss),Po.length===0){Je(On,er,1);return}On=ei(Po)}else if(er.flags&2097152&&!Jn(er.types,wZ)&&!(On.flags&1048576)){const[ao,br]=cn(On.flags&2097152?On.types:[On],er.types,fv);if(ao.length===0||br.length===0)return;On=ya(ao),er=ya(br)}if(er.flags&41943040){if(VM(er))return;er=wb(er)}if(er.flags&8650752){if(k6e(On))return;const ao=Bn(er);if(ao){if(Wr(On)&262144||On===yn)return;if(!ao.isFixed){const Po=x||On;if(Po===Ye)return;(ao.priority===void 0||d<ao.priority)&&(ao.candidates=void 0,ao.contraCandidates=void 0,ao.topLevel=!0,ao.priority=d),d===ao.priority&&(_&&!v?Or(ao.contraCandidates,Po)||(ao.contraCandidates=Rn(ao.contraCandidates,Po),aee(n)):Or(ao.candidates,Po)||(ao.candidates=Rn(ao.candidates,Po),aee(n))),!(d&128)&&er.flags&262144&&ao.topLevel&&!G8(c,er)&&(ao.topLevel=!1,aee(n))}k=Math.min(k,d);return}const br=pv(er,!1);if(br!==er)ge(On,br);else if(er.flags&8388608){const Po=pv(er.indexType,!1);if(Po.flags&465829888){const ss=F8e(pv(er.objectType,!1),Po,!1);ss&&ss!==er&&ge(On,ss)}}}if(Wr(On)&4&&Wr(er)&4&&(On.target===er.target||Uf(On)&&Uf(er))&&!(On.node&&er.node))ar(Js(On),Js(er),eve(On.target));else if(On.flags&4194304&&er.flags&4194304)Wn(On.type,er.type);else if((O8(On)||On.flags&4)&&er.flags&4194304){const ao=udt(On);gt(ao,er.type,256)}else if(On.flags&8388608&&er.flags&8388608)ge(On.objectType,er.objectType),ge(On.indexType,er.indexType);else if(On.flags&268435456&&er.flags&268435456)On.symbol===er.symbol&&ge(On.type,er.type);else if(On.flags&33554432)ge(On.baseType,er),Je(hge(On),er,4);else if(er.flags&16777216)an(On,er,nr);else if(er.flags&3145728)tr(On,er.types,er.flags);else if(On.flags&1048576){const ao=On.types;for(const br of ao)ge(br,er)}else if(er.flags&134217728)Ro(On,er);else{if(On=f_(On),Kd(On)&&Kd(er)&&an(On,er,Eo),!(d&512&&On.flags&467927040)){const ao=Ld(On);if(ao!==On&&!(ao.flags&2621440))return ge(ao,er);On=ao}On.flags&2621440&&an(On,er,Bo)}}}function Je(On,er,ao){const br=d;d|=ao,ge(On,er),d=br}function gt(On,er,ao){const br=d;d|=ao,Wn(On,er),d=br}function Dt(On,er,ao,br){const Po=d;d|=br,tr(On,er,ao),d=Po}function an(On,er,ao){const br=On.id+","+er.id,Po=F&&F.get(br);if(Po!==void 0){k=Math.min(k,Po);return}(F||(F=new Map)).set(br,-1);const ss=k;k=2048;const Ss=be;(H??(H=[])).push(On),(re??(re=[])).push(er),qM(On,H,H.length,2)&&(be|=1),qM(er,re,re.length,2)&&(be|=2),be!==3?ao(On,er):k=-1,re.pop(),H.pop(),be=Ss,F.set(br,k),k=Math.min(k,ss)}function cn(On,er,ao){let br,Po;for(const ss of er)for(const Ss of On)ao(Ss,ss)&&(ge(Ss,ss),br=Rg(br,Ss),Po=Rg(Po,ss));return[br?mn(On,ss=>!Or(br,ss)):On,Po?mn(er,ss=>!Or(Po,ss)):er]}function ar(On,er,ao){const br=On.length<er.length?On.length:er.length;for(let Po=0;Po<br;Po++)Po<ao.length&&(ao[Po]&7)===2?Wn(On[Po],er[Po]):ge(On[Po],er[Po])}function Wn(On,er){_=!_,ge(On,er),_=!_}function ln(On,er){oe||d&1024?Wn(On,er):ge(On,er)}function Bn(On){if(On.flags&8650752){for(const er of n)if(On===er.typeParameter)return er}}function zn(On){let er;for(const ao of On){const br=ao.flags&2097152&&In(ao.types,Po=>!!Bn(Po));if(!br||er&&br!==er)return;er=br}return er}function tr(On,er,ao){let br=0;if(ao&1048576){let Po;const ss=On.flags&1048576?On.types:[On],Ss=new Array(ss.length);let ju=!1;for(const Fa of er)if(Bn(Fa))Po=Fa,br++;else for(let kd=0;kd<ss.length;kd++){const Wl=k;k=2048,ge(ss[kd],Fa),k===d&&(Ss[kd]=!0),ju=ju||k===-1,k=Math.min(k,Wl)}if(br===0){const Fa=zn(er);Fa&&Je(On,Fa,1);return}if(br===1&&!ju){const Fa=Do(ss,(kd,Wl)=>Ss[Wl]?void 0:kd);if(Fa.length){ge(ei(Fa),Po);return}}}else for(const Po of er)Bn(Po)?br++:ge(On,Po);if(ao&2097152?br===1:br>0)for(const Po of er)Bn(Po)&&Je(On,Po,1)}function Kn(On,er,ao){if(ao.flags&1048576||ao.flags&2097152){let br=!1;for(const Po of ao.types)br=Kn(On,er,Po)||br;return br}if(ao.flags&4194304){const br=Bn(ao.type);if(br&&!br.isFixed&&!k6e(On)){const Po=M6e(On,er,ao);Po&&Je(Po,br.typeParameter,Wr(On)&262144?16:8)}return!0}if(ao.flags&262144){Je(Y_(On,On.pattern?2:0),ao,32);const br=zT(ao);if(br&&Kn(On,er,br))return!0;const Po=Wt(gs(On),dr),ss=Wt(gd(On),Ss=>Ss!==jr?Ss.type:Vr);return ge(ei(So(Po,ss)),cv(er)),!0}return!1}function nr(On,er){if(On.flags&16777216)ge(On.checkType,er.checkType),ge(On.extendsType,er.extendsType),ge(aE(On),aE(er)),ge(sE(On),sE(er));else{const ao=[aE(er),sE(er)];Dt(On,ao,er.flags,_?64:0)}}function Ro(On,er){const ao=W6e(On,er),br=er.types;if(ao||Jn(er.texts,Po=>Po.length===0))for(let Po=0;Po<br.length;Po++){const ss=ao?ao[Po]:Vr,Ss=br[Po];if(ss.flags&128&&Ss.flags&8650752){const ju=Bn(Ss),Fa=ju?Gu(ju.typeParameter):void 0;if(Fa&&!Nt(Fa)){const kd=Fa.flags&1048576?Fa.types:[Fa];let Wl=rd(kd,(bl,ut)=>bl|ut.flags,0);if(!(Wl&4)){const bl=ss.value;Wl&296&&!w6e(bl,!0)&&(Wl&=-297),Wl&2112&&!H3(bl,!0)&&(Wl&=-2113);const ut=rd(kd,(Ae,kn)=>kn.flags&Wl?Ae.flags&4?Ae:kn.flags&4?ss:Ae.flags&134217728?Ae:kn.flags&134217728&&cee(ss,kn)?ss:Ae.flags&268435456?Ae:kn.flags&268435456&&bl===k8e(kn.symbol,bl)?ss:Ae.flags&128?Ae:kn.flags&128&&kn.value===bl?kn:Ae.flags&8?Ae:kn.flags&8?m_(+bl):Ae.flags&32?Ae:kn.flags&32?m_(+bl):Ae.flags&256?Ae:kn.flags&256&&kn.value===+bl?kn:Ae.flags&64?Ae:kn.flags&64?hdt(bl):Ae.flags&2048?Ae:kn.flags&2048&&HE(kn.value)===bl?kn:Ae.flags&16?Ae:kn.flags&16?bl==="true"?Gn:bl==="false"?en:Pi:Ae.flags&512?Ae:kn.flags&512&&kn.intrinsicName===bl?kn:Ae.flags&32768?Ae:kn.flags&32768&&kn.intrinsicName===bl?kn:Ae.flags&65536?Ae:kn.flags&65536&&kn.intrinsicName===bl?kn:Ae:Ae,Vr);if(!(ut.flags&131072)){ge(ut,Ss);continue}}}}ge(ss,Ss)}}function Eo(On,er){ge(yf(On),yf(er)),ge(cv(On),cv(er));const ao=cy(On),br=cy(er);ao&&br&&ge(ao,br)}function Bo(On,er){var ao,br;if(Wr(On)&4&&Wr(er)&4&&(On.target===er.target||Uf(On)&&Uf(er))){ar(Js(On),Js(er),eve(On.target));return}if(Kd(On)&&Kd(er)&&Eo(On,er),Wr(er)&32&&!er.declaration.nameType){const Po=yf(er);if(Kn(On,er,Po))return}if(!mdt(On,er)){if(cE(On)){if(Wa(er)){const Po=dy(On),ss=dy(er),Ss=Js(er),ju=er.target.elementFlags;if(Wa(On)&&Kut(On,er)){for(let Wl=0;Wl<ss;Wl++)ge(Js(On)[Wl],Ss[Wl]);return}const Fa=Wa(On)?Math.min(On.target.fixedLength,er.target.fixedLength):0,kd=Math.min(Wa(On)?R8(On.target,3):0,er.target.hasRestElement?R8(er.target,3):0);for(let Wl=0;Wl<Fa;Wl++)ge(Js(On)[Wl],Ss[Wl]);if(!Wa(On)||Po-Fa-kd===1&&On.target.elementFlags[Fa]&4){const Wl=Js(On)[Fa];for(let bl=Fa;bl<ss-kd;bl++)ge(ju[bl]&8?Vu(Wl):Wl,Ss[bl])}else{const Wl=ss-Fa-kd;if(Wl===2){if(ju[Fa]&ju[Fa+1]&8){const bl=Bn(Ss[Fa]);bl&&bl.impliedArity!==void 0&&(ge(UM(On,Fa,kd+Po-bl.impliedArity),Ss[Fa]),ge(UM(On,Fa+bl.impliedArity,kd),Ss[Fa+1]))}else if(ju[Fa]&8&&ju[Fa+1]&4){const bl=(ao=Bn(Ss[Fa]))==null?void 0:ao.typeParameter,ut=bl&&Gu(bl);if(ut&&Wa(ut)&&!ut.target.hasRestElement){const Ae=ut.target.fixedLength;ge(UM(On,Fa,Po-(Fa+Ae)),Ss[Fa]),ge(XM(On,Fa+Ae,kd),Ss[Fa+1])}}else if(ju[Fa]&4&&ju[Fa+1]&8){const bl=(br=Bn(Ss[Fa+1]))==null?void 0:br.typeParameter,ut=bl&&Gu(bl);if(ut&&Wa(ut)&&!ut.target.hasRestElement){const Ae=ut.target.fixedLength,kn=Po-R8(er.target,3),Cr=kn-Ae,pi=Gh(Js(On).slice(Cr,kn),On.target.elementFlags.slice(Cr,kn),!1,On.target.labeledElementDeclarations&&On.target.labeledElementDeclarations.slice(Cr,kn));ge(XM(On,Fa,kd+Ae),Ss[Fa]),ge(pi,Ss[Fa+1])}}}else if(Wl===1&&ju[Fa]&8){const bl=er.target.elementFlags[ss-1]&2,ut=UM(On,Fa,kd);Je(ut,Ss[Fa],bl?2:0)}else if(Wl===1&&ju[Fa]&4){const bl=XM(On,Fa,kd);bl&&ge(bl,Ss[Fa])}}for(let Wl=0;Wl<kd;Wl++)ge(Js(On)[Po-Wl-1],Ss[ss-Wl-1]);return}if(Uf(er)){up(On,er);return}}_o(On,er),Nc(On,er,0),Nc(On,er,1),up(On,er)}}function _o(On,er){const ao=Pb(er);for(const br of ao){const Po=va(On,br.escapedName);Po&&!bt(Po.declarations,vve)&&ge(dr(Po),dr(br))}}function Nc(On,er,ao){const br=Xo(On,ao),Po=br.length;if(Po>0){const ss=Xo(er,ao),Ss=ss.length;for(let ju=0;ju<Ss;ju++){const Fa=Math.max(Po-Ss+ju,0);Hf(Ilt(br[Fa]),I8(ss[ju]))}}}function Hf(On,er){if(!(On.flags&64)){const ao=v,br=er.declaration?er.declaration.kind:0;v=v||br===174||br===173||br===176,cve(On,er,ln),v=ao}uve(On,er,ge)}function up(On,er){const ao=Wr(On)&Wr(er)&32?8:0,br=gd(er);if(ree(On))for(const Po of br){const ss=[];for(const Ss of gs(On))if(lx(TN(Ss,8576),Po.keyType)){const ju=dr(Ss);ss.push(Ss.flags&16777216?nee(ju):ju)}for(const Ss of gd(On))lx(Ss.keyType,Po.keyType)&&ss.push(Ss.type);ss.length&&Je(ei(ss),Po.type,ao)}for(const Po of br){const ss=S8(On,Po.keyType);ss&&Je(ss.type,Po.type,ao)}}}function vdt(n,a){return a===L?n===a:fv(n,a)||!!(a.flags&4&&n.flags&128||a.flags&8&&n.flags&256)}function ydt(n,a){return!!(n.flags&524288&&a.flags&524288&&n.symbol&&n.symbol===a.symbol||n.aliasSymbol&&n.aliasTypeArguments&&n.aliasSymbol===a.aliasSymbol)}function bdt(n){const a=Md(n);return!!a&&Cl(a.flags&16777216?Yhe(a):a,406978556)}function pE(n){return!!(Wr(n)&128)}function yve(n){return!!(Wr(n)&16512)}function Edt(n){if(n.length>1){const a=mn(n,yve);if(a.length){const c=ei(a,2);return So(mn(n,d=>!yve(d)),[c])}}return n}function Sdt(n){return n.priority&416?ya(n.contraCandidates):Gut(n.contraCandidates)}function Tdt(n,a){const c=Edt(n.candidates),d=bdt(n.typeParameter)||BT(n.typeParameter),_=!d&&n.topLevel&&(n.isFixed||!cdt(a,n.typeParameter)),v=d?Zo(c,yd):_?Zo(c,q1):c,x=n.priority&416?ei(v,2):But(v);return Kp(x)}function bve(n,a){const c=n.inferences[a];if(!c.inferredType){let d,_;if(n.signature){const x=c.candidates?Tdt(c,n.signature):void 0,k=c.contraCandidates?Sdt(c):void 0;if(x||k){const F=x&&(!k||!(x.flags&131072)&&bt(c.contraCandidates,H=>Wb(x,H))&&Jn(n.inferences,H=>H!==c&&Md(H.typeParameter)!==c.typeParameter||Jn(H.candidates,re=>Wb(re,x))));d=F?x:k,_=F?k:x}else if(n.flags&1)d=vo;else{const F=GT(c.typeParameter);F&&(d=lo(F,eut(Zct(n,a),n.nonFixingMapper)))}}else d=L6e(c);c.inferredType=d||Eve(!!(n.flags&2));const v=Md(c.typeParameter);if(v){const x=lo(v,n.nonFixingMapper);(!d||!n.compareTypes(d,Jp(x,d)))&&(c.inferredType=_&&n.compareTypes(_,Jp(x,_))?_:x)}}return c.inferredType}function Eve(n){return n?j:hn}function Sve(n){const a=[];for(let c=0;c<n.inferences.length;c++)a.push(bve(n,c));return a}function z6e(n){switch(n.escapedText){case"document":case"console":return f.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return V.types?f.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:f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return V.types?f.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:f.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;case"process":case"require":case"Buffer":case"module":return V.types?f.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:f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Bun":return V.types?f.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:f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return f.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;case"await":if(sa(n.parent))return f.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return n.parent.kind===304?f.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:f.Cannot_find_name_0}}function Bm(n){const a=Zr(n);return a.resolvedSymbol||(a.resolvedSymbol=!Fl(n)&&yl(n,n.escapedText,1160127,z6e(n),n,!x3(n),!1)||ft),a.resolvedSymbol}function Tve(n){return!!(n.flags&33554432||Vn(n,a=>md(a)||xm(a)||yp(a)))}function uee(n,a,c,d){switch(n.kind){case 80:if(!kA(n)){const x=Bm(n);return x!==ft?`${d?as(d):"-1"}|${vd(a)}|${vd(c)}|${Sa(x)}`:void 0}case 110:return`0|${d?as(d):"-1"}|${vd(a)}|${vd(c)}`;case 235:case 217:return uee(n.expression,a,c,d);case 166:const _=uee(n.left,a,c,d);return _&&_+"."+n.right.escapedText;case 211:case 212:const v=YT(n);if(v!==void 0){const x=uee(n.expression,a,c,d);return x&&x+"."+v}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${as(n)}#${vd(a)}`}}function Iu(n,a){switch(a.kind){case 217:case 235:return Iu(n,a.expression);case 226:return Pc(a)&&Iu(n,a.left)||mr(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 kA(n)?a.kind===110:a.kind===80&&Bm(n)===Bm(a)||(Oi(a)||$a(a))&&hf(Bm(n))===Ir(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:const c=YT(n),d=ws(a)?YT(a):void 0;return c!==void 0&&d!==void 0&&d===c&&Iu(n.expression,a.expression);case 166:return ws(a)&&n.right.escapedText===YT(a)&&Iu(n.left,a.expression);case 226:return mr(n)&&n.operatorToken.kind===28&&Iu(n.right,a)}return!1}function YT(n){if(Fr(n))return n.name.escapedText;if($s(n))return Adt(n);if($a(n)){const a=es(n);return a?_l(a):void 0}if(Ao(n))return""+n.parent.parameters.indexOf(n)}function Ave(n){return n.flags&8192?n.escapedName:n.flags&384?_l(""+n.value):void 0}function Adt(n){return ef(n.argumentExpression)?_l(n.argumentExpression.text):Bl(n.argumentExpression)?Idt(n.argumentExpression):void 0}function Idt(n){const a=Hs(n,111551,!0);if(!a||!(e2(a)||a.flags&8))return;const c=a.valueDeclaration;if(c===void 0)return;const d=ro(c);if(d){const _=Ave(d);if(_!==void 0)return _}if(_S(c)&&Zg(c,n)){const _=OL(c);if(_){const v=ta(c.parent)?X_(c):Ru(_);return v&&Ave(v)}if(i1(c))return nR(c.name)}}function B6e(n,a){for(;ws(n);)if(n=n.expression,Iu(n,a))return!0;return!1}function $T(n,a){for(;qu(n);)if(n=n.expression,Iu(n,a))return!0;return!1}function YM(n,a){if(n&&n.flags&1048576){const c=GOe(n,a);if(c&&xl(c)&2)return c.links.isDiscriminantProperty===void 0&&(c.links.isDiscriminantProperty=(c.links.checkFlags&192)===192&&!AN(dr(c))),!!c.links.isDiscriminantProperty}return!1}function G6e(n,a){let c;for(const d of n)if(YM(a,d.escapedName)){if(c){c.push(d);continue}c=[d]}return c}function xdt(n,a){const c=new Map;let d=0;for(const _ of n)if(_.flags&61603840){const v=Ke(_,a);if(v){if(!O8(v))return;let x=!1;ZT(v,k=>{const F=vd(yd(k)),H=c.get(F);H?H!==hn&&(c.set(F,hn),x=!0):c.set(F,_)}),x||d++}}return d>=10&&d*2>=n.length?c:void 0}function C9(n){const a=n.types;if(!(a.length<10||Wr(n)&32768||ou(a,c=>!!(c.flags&59506688))<10)){if(n.keyPropertyName===void 0){const c=Xe(a,_=>_.flags&59506688?Xe(gs(_),v=>__(dr(v))?v.escapedName:void 0):void 0),d=c&&xdt(a,c);n.keyPropertyName=d?c:"",n.constituentMap=d}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function P9(n,a){var c;const d=(c=n.constituentMap)==null?void 0:c.get(vd(yd(a)));return d!==hn?d:void 0}function V6e(n,a){const c=C9(n),d=c&&Ke(a,c);return d&&P9(n,d)}function Rdt(n,a){const c=C9(n),d=c&&In(a.properties,v=>v.symbol&&v.kind===303&&v.symbol.escapedName===c&&z9(v.initializer)),_=d&&sB(d.initializer);return _&&P9(n,_)}function j6e(n,a){return Iu(n,a)||B6e(n,a)}function U6e(n,a){if(n.arguments){for(const c of n.arguments)if(j6e(a,c)||$T(c,a))return!0}return!!(n.expression.kind===211&&j6e(a,n.expression.expression))}function Ive(n){return(!n.id||n.id<0)&&(n.id=Use,Use++),n.id}function Ddt(n,a){if(!(n.flags&1048576))return ba(n,a);for(const c of n.types)if(ba(c,a))return!0;return!1}function Ndt(n,a){if(n===a)return n;if(a.flags&131072)return a;const c=`A${vd(n)},${vd(a)}`;return qI(c)??cb(c,Cdt(n,a))}function Cdt(n,a){const c=dc(n,_=>Ddt(a,_)),d=a.flags&512&&j1(a)?dl(c,fx):c;return ba(a,d)?d:n}function xve(n){const a=p_(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&Wb(n,Ot))}function $M(n,a){return Rve(n,a)&a}function fm(n,a){return $M(n,a)!==0}function Rve(n,a){n.flags&467927040&&(n=Gu(n)||hn);const c=n.flags;if(c&268435460)return X?16317953:16776705;if(c&134217856){const d=c&128&&n.value==="";return X?d?12123649:7929345:d?12582401:16776705}if(c&40)return X?16317698:16776450;if(c&256){const d=n.value===0;return X?d?12123394:7929090:d?12582146:16776450}if(c&64)return X?16317188:16775940;if(c&2048){const d=I6e(n);return X?d?12122884:7928580:d?12581636:16775940}return c&16?X?16316168:16774920:c&528?X?n===en||n===En?12121864:7927560:n===en||n===En?12580616:16774920:c&524288?a&(X?83427327:83886079)?Wr(n)&16&&mv(n)?X?83427327:83886079:xve(n)?X?7880640:16728e3:X?7888800:16736160:0:c&16384?9830144:c&32768?26607360:c&65536?42917664:c&12288?X?7925520:16772880:c&67108864?X?7888800:16736160:c&131072?0:c&1048576?rd(n.types,(d,_)=>d|Rve(_,a),0):c&2097152?Pdt(n,a):83886079}function Pdt(n,a){const c=Cl(n,402784252);let d=0,_=134217727;for(const v of n.types)if(!(c&&v.flags&524288)){const x=Rve(v,a);d|=x,_&=x}return d&8256|_&134209471}function mm(n,a){return dc(n,c=>fm(c,a))}function QT(n,a){const c=H6e(mm(X&&n.flags&2?cl:n,a));if(X)switch(a){case 524288:return dl(c,d=>fm(d,65536)?ya([d,fm(d,131072)&&!Cl(c,65536)?ei([Ca,fe]):Ca]):d);case 1048576:return dl(c,d=>fm(d,131072)?ya([d,fm(d,65536)&&!Cl(c,32768)?ei([Ca,Oe]):Ca]):d);case 2097152:case 4194304:return dl(c,d=>fm(d,262144)?$ut(d):d)}return c}function H6e(n){return n===cl?hn:n}function Dve(n,a){return a?ei([hi(n),Ru(a)]):n}function q6e(n,a){var c;const d=py(a);if(!tm(d))return _t;const _=nm(d);return Ke(n,_)||V8((c=cx(n,_))==null?void 0:c.type)||_t}function J6e(n,a){return cp(n,KM)&&Vut(n,a)||V8(hy(65,n,Oe,void 0))||_t}function V8(n){return n&&(V.noUncheckedIndexedAccess?ei([n,L]):n)}function K6e(n){return Vu(hy(65,n,Oe,void 0)||_t)}function Mdt(n){return n.parent.kind===209&&Nve(n.parent)||n.parent.kind===303&&Nve(n.parent.parent)?Dve(M9(n),n.right):Ru(n.right)}function Nve(n){return n.parent.kind===226&&n.parent.left===n||n.parent.kind===250&&n.parent.initializer===n}function Ldt(n,a){return J6e(M9(n),n.elements.indexOf(a))}function kdt(n){return K6e(M9(n.parent))}function X6e(n){return q6e(M9(n.parent),n.name)}function wdt(n){return Dve(X6e(n),n.objectAssignmentInitializer)}function M9(n){const{parent:a}=n;switch(a.kind){case 249:return ke;case 250:return fB(a)||_t;case 226:return Mdt(a);case 220:return Oe;case 209:return Ldt(a,n);case 230:return kdt(a);case 303:return X6e(a);case 304:return wdt(a)}return _t}function Odt(n){const a=n.parent,c=$6e(a.parent),d=a.kind===206?q6e(c,n.propertyName||n.name):n.dotDotDotToken?K6e(c):J6e(c,a.elements.indexOf(n));return Dve(d,n.initializer)}function Y6e(n){return Zr(n).resolvedType||Ru(n)}function Wdt(n){return n.initializer?Y6e(n.initializer):n.parent.parent.kind===249?ke:n.parent.parent.kind===250&&fB(n.parent.parent)||_t}function $6e(n){return n.kind===260?Wdt(n):Odt(n)}function Fdt(n){return n.kind===260&&n.initializer&&Ab(n.initializer)||n.kind!==208&&n.parent.kind===226&&Ab(n.parent.right)}function J1(n){switch(n.kind){case 217:return J1(n.expression);case 226:switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return J1(n.left);case 28:return J1(n.right)}}return n}function Q6e(n){const{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?Q6e(a):n}function zdt(n){return n.kind===296?yd(Ru(n.expression)):Vr}function dee(n){const a=Zr(n);if(!a.switchTypes){a.switchTypes=[];for(const c of n.caseBlock.clauses)a.switchTypes.push(zdt(c))}return a.switchTypes}function Z6e(n){if(bt(n.caseBlock.clauses,c=>c.kind===296&&!ls(c.expression)))return;const a=[];for(const c of n.caseBlock.clauses){const d=c.kind===296?c.expression.text:void 0;a.push(d&&!Or(a,d)?d:void 0)}return a}function Bdt(n,a){return n.flags&1048576?!Xe(n.types,c=>!Or(a,c)):Or(a,n)}function QM(n,a){return!!(n===a||n.flags&131072||a.flags&1048576&&Gdt(n,a))}function Gdt(n,a){if(n.flags&1048576){for(const c of n.types)if(!dv(a.types,c))return!1;return!0}return n.flags&1056&&vZ(n)===a?!0:dv(a.types,n)}function ZT(n,a){return n.flags&1048576?Xe(n.types,a):a(n)}function Gm(n,a){return n.flags&1048576?bt(n.types,a):a(n)}function cp(n,a){return n.flags&1048576?Jn(n.types,a):a(n)}function Vdt(n,a){return n.flags&3145728?Jn(n.types,a):a(n)}function dc(n,a){if(n.flags&1048576){const c=n.types,d=mn(c,a);if(d===c)return n;const _=n.origin;let v;if(_&&_.flags&1048576){const x=_.types,k=mn(x,F=>!!(F.flags&1048576)||a(F));if(x.length-k.length===c.length-d.length){if(k.length===1)return k[0];v=Nge(1048576,k)}}return Pge(d,n.objectFlags&16809984,void 0,void 0,v)}return n.flags&131072||a(n)?n:Vr}function pee(n,a){return dc(n,c=>c!==a)}function jdt(n){return n.flags&1048576?n.types.length:1}function dl(n,a,c){if(n.flags&131072)return n;if(!(n.flags&1048576))return a(n);const d=n.origin,_=d&&d.flags&1048576?d.types:n.types;let v,x=!1;for(const k of _){const F=k.flags&1048576?dl(k,a,c):a(k);x||(x=k!==F),F&&(v?v.push(F):v=[F])}return x?v&&ei(v,c?0:1):n}function e4e(n,a,c,d){return n.flags&1048576&&c?ei(Wt(n.types,a),1,c,d):dl(n,a)}function ZM(n,a){return dc(n,c=>(c.flags&a)!==0)}function t4e(n,a){return Cl(n,134217804)&&Cl(a,402655616)?dl(n,c=>c.flags&4?ZM(a,402653316):UT(c)&&!Cl(a,402653188)?ZM(a,128):c.flags&8?ZM(a,264):c.flags&64?ZM(a,2112):c):n}function RN(n){return n.flags===0}function eA(n){return n.flags===0?n.type:n}function DN(n,a){return a?{flags:0,type:n.flags&131072?vo:n}:n}function Udt(n){const a=Wf(256);return a.elementType=n,a}function Cve(n){return wn[n.id]||(wn[n.id]=Udt(n))}function n4e(n,a){const c=z8(_v(sB(a)));return QM(c,n.elementType)?n:Cve(ei([n.elementType,c]))}function Hdt(n){return n.flags&131072?Hc:Vu(n.flags&1048576?ei(n.types,2):n)}function qdt(n){return n.finalArrayType||(n.finalArrayType=Hdt(n.elementType))}function L9(n){return Wr(n)&256?qdt(n):n}function Jdt(n){return Wr(n)&256?n.elementType:Vr}function Kdt(n){let a=!1;for(const c of n)if(!(c.flags&131072)){if(!(Wr(c)&256))return!1;a=!0}return a}function r4e(n){const a=Q6e(n),c=a.parent,d=Fr(c)&&(c.name.escapedText==="length"||c.parent.kind===213&&Ve(c.name)&&kj(c.name)),_=c.kind===212&&c.expression===a&&c.parent.kind===226&&c.parent.operatorToken.kind===64&&c.parent.left===c&&!eg(c.parent)&&xu(Ru(c.argumentExpression),296);return d||_}function Xdt(n){return(Oi(n)||qo(n)||gp(n)||Ao(n))&&!!(yu(n)||lr(n)&&Ly(n)&&n.initializer&&qE(n.initializer)&&em(n.initializer))}function fee(n,a){if(n=Vl(n),n.flags&8752)return dr(n);if(n.flags&7){if(xl(n)&262144){const d=n.links.syntheticOrigin;if(d&&fee(d))return dr(n)}const c=n.valueDeclaration;if(c){if(Xdt(c))return dr(n);if(Oi(c)&&c.parent.parent.kind===250){const d=c.parent.parent,_=k9(d.expression,void 0);if(_){const v=d.awaitModifier?15:13;return hy(v,_,Oe,void 0)}}a&&Ma(a,kr(c,f._0_needs_an_explicit_type_annotation,Si(n)))}}}function k9(n,a){if(!(n.flags&67108864))switch(n.kind){case 80:const c=hf(Bm(n));return fee(c,a);case 110:return hpt(n);case 108:return Wve(n);case 211:{const d=k9(n.expression,a);if(d){const _=n.name;let v;if(qi(_)){if(!d.symbol)return;v=va(d,ek(d.symbol,_.escapedText))}else v=va(d,_.escapedText);return v&&fee(v,a)}return}case 217:return k9(n.expression,a)}}function w9(n){const a=Zr(n);let c=a.effectsSignature;if(c===void 0){let d;if(mr(n)){const x=NN(n.right);d=Dye(x)}else n.parent.kind===244?d=k9(n.expression,void 0):n.expression.kind!==108&&(qu(n)?d=Q_(W8(mo(n.expression),n.expression),n.expression):d=NN(n.expression));const _=Xo(d&&Ld(d)||hn,0),v=_.length===1&&!_[0].typeParameters?_[0]:bt(_,i4e)?PN(n):void 0;c=a.effectsSignature=v&&i4e(v)?v:un}return c===un?void 0:c}function i4e(n){return!!(Gf(n)||n.declaration&&(yN(n.declaration)||hn).flags&131072)}function Ydt(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];const c=hs(a.expression);return ws(c)?hs(c.expression):void 0}function $dt(n){const a=Vn(n,OV),c=Un(n),d=hh(c,a.statements.pos);ts.add($c(c,d.start,d.length,f.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function O9(n){const a=mee(n,!1);return Mt=n,jt=a,a}function W9(n){const a=hs(n,!0);return a.kind===97||a.kind===226&&(a.operatorToken.kind===56&&(W9(a.left)||W9(a.right))||a.operatorToken.kind===57&&W9(a.left)&&W9(a.right))}function mee(n,a){for(;;){if(n===Mt)return jt;const c=n.flags;if(c&4096){if(!a){const d=Ive(n),_=dT[d];return _!==void 0?_:dT[d]=mee(n,!0)}a=!1}if(c&368)n=n.antecedent;else if(c&512){const d=w9(n.node);if(d){const _=Gf(d);if(_&&_.kind===3&&!_.type){const v=n.node.arguments[_.parameterIndex];if(v&&W9(v))return!1}if(ps(d).flags&131072)return!1}n=n.antecedent}else{if(c&4)return bt(n.antecedents,d=>mee(d,!1));if(c&8){const d=n.antecedents;if(d===void 0||d.length===0)return!1;n=d[0]}else if(c&128){if(n.clauseStart===n.clauseEnd&&z3e(n.switchStatement))return!1;n=n.antecedent}else if(c&1024){Mt=void 0;const d=n.target,_=d.antecedents;d.antecedents=n.antecedents;const v=mee(n.antecedent,!1);return d.antecedents=_,v}else return!(c&1)}}}function _ee(n,a){for(;;){const c=n.flags;if(c&4096){if(!a){const d=Ive(n),_=HI[d];return _!==void 0?_:HI[d]=_ee(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=>_ee(d,!1));if(c&8)n=n.antecedents[0];else if(c&1024){const d=n.target,_=d.antecedents;d.antecedents=n.antecedents;const v=_ee(n.antecedent,!1);return d.antecedents=_,v}else return!!(c&1)}}}function o4e(n){switch(n.kind){case 110:return!0;case 80:if(!kA(n)){const c=Bm(n);return e2(c)||gee(c)&&!a4e(c)}break;case 211:case 212:return o4e(n.expression)&&g_(Zr(n).resolvedSymbol||ft);case 206:case 207:const a=R_(n.parent);return Ao(a)||Doe(a)?!Pve(a):Oi(a)&&yB(a)}return!1}function Vb(n,a,c=a,d,_=(v=>(v=ri(n,qL))==null?void 0:v.flowNode)()){let v,x=!1,k=0;if(ze)return _t;if(!_)return a;Ze++;const F=Xg,H=eA(ge(_));Xg=F;const re=Wr(H)&256&&r4e(n)?Hc:L9(H);if(re===Ri||n.parent&&n.parent.kind===235&&!(re.flags&131072)&&mm(re,2097152).flags&131072)return a;return re===q?hn:re;function be(){return x?v:(x=!0,v=uee(n,a,c,d))}function ge(ct){var wt;if(k===2e3)return(wt=sr)==null||wt.instant(sr.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:ct.id}),ze=!0,$dt(n),_t;k++;let dn;for(;;){const Ut=ct.flags;if(Ut&4096){for(let Fn=F;Fn<Xg;Fn++)if(jI[Fn]===ct)return k--,UI[Fn];dn=ct}let _n;if(Ut&16){if(_n=gt(ct),!_n){ct=ct.antecedent;continue}}else if(Ut&512){if(_n=an(ct),!_n){ct=ct.antecedent;continue}}else if(Ut&96)_n=ar(ct);else if(Ut&128)_n=Wn(ct);else if(Ut&12){if(ct.antecedents.length===1){ct=ct.antecedents[0];continue}_n=Ut&4?ln(ct):Bn(ct)}else if(Ut&256){if(_n=cn(ct),!_n){ct=ct.antecedent;continue}}else if(Ut&1024){const Fn=ct.target,ki=Fn.antecedents;Fn.antecedents=ct.antecedents,_n=ge(ct.antecedent),Fn.antecedents=ki}else if(Ut&2){const Fn=ct.node;if(Fn&&Fn!==d&&n.kind!==211&&n.kind!==212&&!(n.kind===110&&Fn.kind!==219)){ct=Fn.flowNode;continue}_n=c}else _n=r6(a);return dn&&(jI[Xg]=dn,UI[Xg]=_n,Xg++),k--,_n}}function Je(ct){const wt=ct.node;return Mve(wt.kind===260||wt.kind===208?$6e(wt):M9(wt),n)}function gt(ct){const wt=ct.node;if(Iu(n,wt)){if(!O9(ct))return Ri;if(MA(wt)===2){const Ut=ge(ct.antecedent);return DN(_v(eA(Ut)),RN(Ut))}if(a===it||a===Hc){if(Fdt(wt))return Cve(Vr);const Ut=q1(Je(ct));return ba(Ut,a)?Ut:ec}const dn=xj(wt)?_v(a):a;return dn.flags&1048576?Ndt(dn,Je(ct)):dn}if(B6e(n,wt)){if(!O9(ct))return Ri;if(Oi(wt)&&(lr(wt)||yB(wt))){const dn=WL(wt);if(dn&&(dn.kind===218||dn.kind===219))return ge(ct.antecedent)}return a}if(Oi(wt)&&wt.parent.parent.kind===249&&(Iu(n,wt.parent.parent.expression)||$T(wt.parent.parent.expression,n)))return eye(L9(eA(ge(ct.antecedent))))}function Dt(ct,wt){const dn=hs(wt,!0);if(dn.kind===97)return Ri;if(dn.kind===226){if(dn.operatorToken.kind===56)return Dt(Dt(ct,dn.left),dn.right);if(dn.operatorToken.kind===57)return ei([Dt(ct,dn.left),Dt(ct,dn.right)])}return Ur(ct,dn,!0)}function an(ct){const wt=w9(ct.node);if(wt){const dn=Gf(wt);if(dn&&(dn.kind===2||dn.kind===3)){const Ut=ge(ct.antecedent),_n=L9(eA(Ut)),Fn=dn.type?Ii(_n,dn,ct.node,!0):dn.kind===3&&dn.parameterIndex>=0&&dn.parameterIndex<ct.node.arguments.length?Dt(_n,ct.node.arguments[dn.parameterIndex]):_n;return Fn===_n?Ut:DN(Fn,RN(Ut))}if(ps(wt).flags&131072)return Ri}}function cn(ct){if(a===it||a===Hc){const wt=ct.node,dn=wt.kind===213?wt.expression.expression:wt.left.expression;if(Iu(n,J1(dn))){const Ut=ge(ct.antecedent),_n=eA(Ut);if(Wr(_n)&256){let Fn=_n;if(wt.kind===213)for(const ki of wt.arguments)Fn=n4e(Fn,ki);else{const ki=sB(wt.left.argumentExpression);xu(ki,296)&&(Fn=n4e(Fn,wt.right))}return Fn===_n?Ut:DN(Fn,RN(Ut))}return Ut}}}function ar(ct){const wt=ge(ct.antecedent),dn=eA(wt);if(dn.flags&131072)return wt;const Ut=(ct.flags&32)!==0,_n=L9(dn),Fn=Ur(_n,ct.node,Ut);return Fn===_n?wt:DN(Fn,RN(wt))}function Wn(ct){const wt=hs(ct.switchStatement.expression),dn=ge(ct.antecedent);let Ut=eA(dn);if(Iu(n,wt))Ut=Ss(Ut,ct.switchStatement,ct.clauseStart,ct.clauseEnd);else if(wt.kind===221&&Iu(n,wt.expression))Ut=kd(Ut,ct.switchStatement,ct.clauseStart,ct.clauseEnd);else if(wt.kind===112)Ut=Wl(Ut,ct.switchStatement,ct.clauseStart,ct.clauseEnd);else{X&&($T(wt,n)?Ut=ss(Ut,ct.switchStatement,ct.clauseStart,ct.clauseEnd,Fn=>!(Fn.flags&163840)):wt.kind===221&&$T(wt.expression,n)&&(Ut=ss(Ut,ct.switchStatement,ct.clauseStart,ct.clauseEnd,Fn=>!(Fn.flags&131072||Fn.flags&128&&Fn.value==="undefined"))));const _n=Kn(wt,Ut);_n&&(Ut=Eo(Ut,_n,ct.switchStatement,ct.clauseStart,ct.clauseEnd))}return DN(Ut,RN(dn))}function ln(ct){const wt=[];let dn=!1,Ut=!1,_n;for(const Fn of ct.antecedents){if(!_n&&Fn.flags&128&&Fn.clauseStart===Fn.clauseEnd){_n=Fn;continue}const ki=ge(Fn),Br=eA(ki);if(Br===a&&a===c)return Br;Ef(wt,Br),QM(Br,c)||(dn=!0),RN(ki)&&(Ut=!0)}if(_n){const Fn=ge(_n),ki=eA(Fn);if(!(ki.flags&131072)&&!Or(wt,ki)&&!z3e(_n.switchStatement)){if(ki===a&&a===c)return ki;wt.push(ki),QM(ki,c)||(dn=!0),RN(Fn)&&(Ut=!0)}}return DN(zn(wt,dn?2:1),Ut)}function Bn(ct){const wt=Ive(ct),dn=BI[wt]||(BI[wt]=new Map),Ut=be();if(!Ut)return a;const _n=dn.get(Ut);if(_n)return _n;for(let Cn=j_;Cn<ff;Cn++)if(XD[Cn]===ct&&GI[Cn]===Ut&&VI[Cn].length)return DN(zn(VI[Cn],1),!0);const Fn=[];let ki=!1,Br;for(const Cn of ct.antecedents){let ti;if(!Br)ti=Br=ge(Cn);else{XD[ff]=ct,GI[ff]=Ut,VI[ff]=Fn,ff++;const fo=bn;bn=void 0,ti=ge(Cn),bn=fo,ff--;const Ea=dn.get(Ut);if(Ea)return Ea}const Zi=eA(ti);if(Ef(Fn,Zi),QM(Zi,c)||(ki=!0),Zi===a)break}const Go=zn(Fn,ki?2:1);return RN(Br)?DN(Go,!0):(dn.set(Ut,Go),Go)}function zn(ct,wt){if(Kdt(ct))return Cve(ei(Wt(ct,Jdt)));const dn=H6e(ei(Zo(ct,L9),wt));return dn!==a&&dn.flags&a.flags&1048576&&Ba(dn.types,a.types)?a:dn}function tr(ct){if(ta(n)||qE(n)||Tm(n)){if(Ve(ct)){const dn=Bm(ct).valueDeclaration;if(dn&&($a(dn)||Ao(dn))&&n===dn.parent&&!dn.initializer&&!dn.dotDotDotToken)return dn}}else if(ws(ct)){if(Iu(n,ct.expression))return ct}else if(Ve(ct)){const wt=Bm(ct);if(e2(wt)){const dn=wt.valueDeclaration;if(Oi(dn)&&!dn.type&&dn.initializer&&ws(dn.initializer)&&Iu(n,dn.initializer.expression))return dn.initializer;if($a(dn)&&!dn.initializer){const Ut=dn.parent.parent;if(Oi(Ut)&&!Ut.type&&Ut.initializer&&(Ve(Ut.initializer)||ws(Ut.initializer))&&Iu(n,Ut.initializer))return dn}}}}function Kn(ct,wt){if(a.flags&1048576||wt.flags&1048576){const dn=tr(ct);if(dn){const Ut=YT(dn);if(Ut){const _n=a.flags&1048576&&QM(wt,a)?a:wt;if(YM(_n,Ut))return dn}}}}function nr(ct,wt,dn){const Ut=YT(wt);if(Ut===void 0)return ct;const _n=qu(wt),Fn=X&&(_n||Coe(wt))&&Cl(ct,98304);let ki=Ke(Fn?mm(ct,2097152):ct,Ut);if(!ki)return ct;ki=Fn&&_n?Bb(ki):ki;const Br=dn(ki);return dc(ct,Go=>{const Cn=xt(Go,Ut)||hn;return!(Cn.flags&131072)&&!(Br.flags&131072)&&E9(Br,Cn)})}function Ro(ct,wt,dn,Ut,_n){if((dn===37||dn===38)&&ct.flags&1048576){const Fn=C9(ct);if(Fn&&Fn===YT(wt)){const ki=P9(ct,Ru(Ut));if(ki)return dn===(_n?37:38)?ki:__(Ke(ki,Fn)||hn)?pee(ct,ki):ct}}return nr(ct,wt,Fn=>ao(Fn,dn,Ut,_n))}function Eo(ct,wt,dn,Ut,_n){if(Ut<_n&&ct.flags&1048576&&C9(ct)===YT(wt)){const Fn=dee(dn).slice(Ut,_n),ki=ei(Wt(Fn,Br=>P9(ct,Br)||hn));if(ki!==hn)return ki}return nr(ct,wt,Fn=>Ss(Fn,dn,Ut,_n))}function Bo(ct,wt,dn){if(Iu(n,wt))return QT(ct,dn?4194304:8388608);X&&dn&&$T(wt,n)&&(ct=QT(ct,2097152));const Ut=Kn(wt,ct);return Ut?nr(ct,Ut,_n=>mm(_n,dn?4194304:8388608)):ct}function _o(ct,wt,dn){const Ut=va(ct,wt);return Ut?!!(Ut.flags&16777216||xl(Ut)&48)||dn:!!cx(ct,wt)||!dn}function Nc(ct,wt,dn){const Ut=nm(wt);if(Gm(ct,Fn=>_o(Fn,Ut,!0)))return dc(ct,Fn=>_o(Fn,Ut,dn));if(dn){const Fn=nct();if(Fn)return ya([ct,EN(Fn,[wt,hn])])}return ct}function Hf(ct,wt,dn,Ut,_n){return _n=_n!==(dn.kind===112)!=(Ut!==38&&Ut!==36),Ur(ct,wt,_n)}function up(ct,wt,dn){switch(wt.operatorToken.kind){case 64:case 76:case 77:case 78:return Bo(Ur(ct,wt.right,dn),wt.left,dn);case 35:case 36:case 37:case 38:const Ut=wt.operatorToken.kind,_n=J1(wt.left),Fn=J1(wt.right);if(_n.kind===221&&ls(Fn))return br(ct,_n,Ut,Fn,dn);if(Fn.kind===221&&ls(_n))return br(ct,Fn,Ut,_n,dn);if(Iu(n,_n))return ao(ct,Ut,Fn,dn);if(Iu(n,Fn))return ao(ct,Ut,_n,dn);X&&($T(_n,n)?ct=er(ct,Ut,Fn,dn):$T(Fn,n)&&(ct=er(ct,Ut,_n,dn)));const ki=Kn(_n,ct);if(ki)return Ro(ct,ki,Ut,Fn,dn);const Br=Kn(Fn,ct);if(Br)return Ro(ct,Br,Ut,_n,dn);if(bl(_n))return ut(ct,Ut,Fn,dn);if(bl(Fn))return ut(ct,Ut,_n,dn);if(fC(Fn)&&!ws(_n))return Hf(ct,_n,Fn,Ut,dn);if(fC(_n)&&!ws(Fn))return Hf(ct,Fn,_n,Ut,dn);break;case 104:return Ae(ct,wt,dn);case 103:if(qi(wt.left))return On(ct,wt,dn);const Go=J1(wt.right);if(F8(ct)&&ws(n)&&Iu(n.expression,Go)){const Cn=Ru(wt.left);if(tm(Cn)&&YT(n)===nm(Cn))return mm(ct,dn?524288:65536)}if(Iu(n,Go)){const Cn=Ru(wt.left);if(tm(Cn))return Nc(ct,Cn,dn)}break;case 28:return Ur(ct,wt.right,dn);case 56:return dn?Ur(Ur(ct,wt.left,!0),wt.right,!0):ei([Ur(ct,wt.left,!1),Ur(ct,wt.right,!1)]);case 57:return dn?ei([Ur(ct,wt.left,!0),Ur(ct,wt.right,!0)]):Ur(Ur(ct,wt.left,!1),wt.right,!1)}return ct}function On(ct,wt,dn){const Ut=J1(wt.right);if(!Iu(n,Ut))return ct;N.assertNode(wt.left,qi);const _n=Dee(wt.left);if(_n===void 0)return ct;const Fn=_n.parent,ki=mc(N.checkDefined(_n.valueDeclaration,"should always have a declaration"))?dr(Fn):Zs(Fn);return Cr(ct,ki,dn,!0)}function er(ct,wt,dn,Ut){const _n=wt===35||wt===37,Fn=wt===35||wt===36?98304:32768,ki=Ru(dn);return _n!==Ut&&cp(ki,Go=>!!(Go.flags&Fn))||_n===Ut&&cp(ki,Go=>!(Go.flags&(3|Fn)))?QT(ct,2097152):ct}function ao(ct,wt,dn,Ut){if(ct.flags&1)return ct;(wt===36||wt===38)&&(Ut=!Ut);const _n=Ru(dn),Fn=wt===35||wt===36;if(_n.flags&98304){if(!X)return ct;const ki=Fn?Ut?262144:2097152:_n.flags&65536?Ut?131072:1048576:Ut?65536:524288;return QT(ct,ki)}if(Ut){if(!Fn&&(ct.flags&2||Gm(ct,Vh))){if(_n.flags&469893116||Vh(_n))return _n;if(_n.flags&524288)return Jr}const ki=dc(ct,Br=>E9(Br,_n)||Fn&&Qut(Br,_n));return t4e(ki,_n)}return __(_n)?dc(ct,ki=>!(E6e(ki)&&E9(ki,_n))):ct}function br(ct,wt,dn,Ut,_n){(dn===36||dn===38)&&(_n=!_n);const Fn=J1(wt.expression);if(!Iu(n,Fn)){X&&$T(Fn,n)&&_n===(Ut.text!=="undefined")&&(ct=QT(ct,2097152));const ki=Kn(Fn,ct);return ki?nr(ct,ki,Br=>Po(Br,Ut,_n)):ct}return Po(ct,Ut,_n)}function Po(ct,wt,dn){return dn?ju(ct,wt.text):QT(ct,Rq.get(wt.text)||32768)}function ss(ct,wt,dn,Ut,_n){return dn!==Ut&&Jn(dee(wt).slice(dn,Ut),_n)?mm(ct,2097152):ct}function Ss(ct,wt,dn,Ut){const _n=dee(wt);if(!_n.length)return ct;const Fn=_n.slice(dn,Ut),ki=dn===Ut||Or(Fn,Vr);if(ct.flags&2&&!ki){let ti;for(let Zi=0;Zi<Fn.length;Zi+=1){const fo=Fn[Zi];if(fo.flags&469893116)ti!==void 0&&ti.push(fo);else if(fo.flags&524288)ti===void 0&&(ti=Fn.slice(0,Zi)),ti.push(Jr);else return ct}return ei(ti===void 0?Fn:ti)}const Br=ei(Fn),Go=Br.flags&131072?Vr:t4e(dc(ct,ti=>E9(Br,ti)),Br);if(!ki)return Go;const Cn=dc(ct,ti=>!(E6e(ti)&&Or(_n,yd(Uut(ti)))));return Go.flags&131072?Cn:ei([Go,Cn])}function ju(ct,wt){switch(wt){case"string":return Fa(ct,ke,1);case"number":return Fa(ct,Tt,2);case"bigint":return Fa(ct,kt,4);case"boolean":return Fa(ct,Pi,8);case"symbol":return Fa(ct,xi,16);case"object":return ct.flags&1?ct:ei([Fa(ct,Jr,32),Fa(ct,fe,131072)]);case"function":return ct.flags&1?ct:Fa(ct,Ot,64);case"undefined":return Fa(ct,Oe,65536)}return Fa(ct,Jr,128)}function Fa(ct,wt,dn){return dl(ct,Ut=>$_(Ut,wt,wf)?fm(Ut,dn)?Ut:Vr:Wb(wt,Ut)?wt:fm(Ut,dn)?ya([Ut,wt]):Vr)}function kd(ct,wt,dn,Ut){const _n=Z6e(wt);if(!_n)return ct;const Fn=mi(wt.caseBlock.clauses,Go=>Go.kind===297);if(dn===Ut||Fn>=dn&&Fn<Ut){const Go=F3e(dn,Ut,_n);return dc(ct,Cn=>$M(Cn,Go)===Go)}const Br=_n.slice(dn,Ut);return ei(Wt(Br,Go=>Go?ju(ct,Go):Vr))}function Wl(ct,wt,dn,Ut){const _n=mi(wt.caseBlock.clauses,Br=>Br.kind===297),Fn=dn===Ut||_n>=dn&&_n<Ut;for(let Br=0;Br<dn;Br++){const Go=wt.caseBlock.clauses[Br];Go.kind===296&&(ct=Ur(ct,Go.expression,!1))}if(Fn){for(let Br=Ut;Br<wt.caseBlock.clauses.length;Br++){const Go=wt.caseBlock.clauses[Br];Go.kind===296&&(ct=Ur(ct,Go.expression,!1))}return ct}const ki=wt.caseBlock.clauses.slice(dn,Ut);return ei(Wt(ki,Br=>Br.kind===296?Ur(ct,Br.expression,!0):Vr))}function bl(ct){return(Fr(ct)&&Er(ct.name)==="constructor"||$s(ct)&&ls(ct.argumentExpression)&&ct.argumentExpression.text==="constructor")&&Iu(n,ct.expression)}function ut(ct,wt,dn,Ut){if(Ut?wt!==35&&wt!==37:wt!==36&&wt!==38)return ct;const _n=Ru(dn);if(!ibe(_n)&&!is(_n))return ct;const Fn=va(_n,"prototype");if(!Fn)return ct;const ki=dr(Fn),Br=Nt(ki)?void 0:ki;if(!Br||Br===Pe||Br===Ot)return ct;if(Nt(ct))return Br;return dc(ct,Cn=>Go(Cn,Br));function Go(Cn,ti){return Cn.flags&524288&&Wr(Cn)&1||ti.flags&524288&&Wr(ti)&1?Cn.symbol===ti.symbol:Wb(Cn,ti)}}function Ae(ct,wt,dn){const Ut=J1(wt.left);if(!Iu(n,Ut))return dn&&X&&$T(Ut,n)?QT(ct,2097152):ct;const _n=wt.right,Fn=Ru(_n);if(!lE(Fn,Pe))return ct;const ki=w9(wt),Br=ki&&Gf(ki);if(Br&&Br.kind===1&&Br.parameterIndex===0)return Cr(ct,Br.type,dn,!0);if(!lE(Fn,Ot))return ct;const Go=dl(Fn,kn);return Nt(ct)&&(Go===Pe||Go===Ot)||!dn&&!(Go.flags&524288&&!Vh(Go))?ct:Cr(ct,Go,dn,!0)}function kn(ct){const wt=Ke(ct,"prototype");if(wt&&!Nt(wt))return wt;const dn=Xo(ct,1);return dn.length?ei(Wt(dn,Ut=>ps(I8(Ut)))):Ca}function Cr(ct,wt,dn,Ut){const _n=ct.flags&1048576?`N${vd(ct)},${vd(wt)},${(dn?1:0)|(Ut?2:0)}`:void 0;return qI(_n)??cb(_n,pi(ct,wt,dn,Ut))}function pi(ct,wt,dn,Ut){if(!dn){if(ct===wt)return Vr;if(Ut)return dc(ct,Go=>!lE(Go,wt));const Br=Cr(ct,wt,!0,!1);return dc(ct,Go=>!QM(Go,Br))}if(ct.flags&3||ct===wt)return wt;const _n=Ut?lE:Wb,Fn=ct.flags&1048576?C9(ct):void 0,ki=dl(wt,Br=>{const Go=Fn&&Ke(Br,Fn),Cn=Go&&P9(ct,Go),ti=dl(Cn||ct,Ut?Zi=>lE(Zi,Br)?Zi:lE(Br,Zi)?Br:Vr:Zi=>b9(Zi,Br)?Zi:b9(Br,Zi)?Br:Wb(Zi,Br)?Zi:Wb(Br,Zi)?Br:Vr);return ti.flags&131072?dl(ct,Zi=>Cl(Zi,465829888)&&_n(Br,Gu(Zi)||hn)?ya([Zi,Br]):Vr):ti});return ki.flags&131072?Wb(wt,ct)?wt:ba(ct,wt)?ct:ba(wt,ct)?wt:ya([ct,wt]):ki}function Ai(ct,wt,dn){if(U6e(wt,n)){const Ut=dn||!uS(wt)?w9(wt):void 0,_n=Ut&&Gf(Ut);if(_n&&(_n.kind===0||_n.kind===1))return Ii(ct,_n,wt,dn)}if(F8(ct)&&ws(n)&&Fr(wt.expression)){const Ut=wt.expression;if(Iu(n.expression,J1(Ut.expression))&&Ve(Ut.name)&&Ut.name.escapedText==="hasOwnProperty"&&wt.arguments.length===1){const _n=wt.arguments[0];if(ls(_n)&&YT(n)===_l(_n.text))return mm(ct,dn?524288:65536)}}return ct}function Ii(ct,wt,dn,Ut){if(wt.type&&!(Nt(ct)&&(wt.type===Pe||wt.type===Ot))){const _n=Ydt(wt,dn);if(_n){if(Iu(n,_n))return Cr(ct,wt.type,Ut,!1);X&&$T(_n,n)&&(Ut&&!fm(wt.type,65536)||!Ut&&cp(wt.type,H9))&&(ct=QT(ct,2097152));const Fn=Kn(_n,ct);if(Fn)return nr(ct,Fn,ki=>Cr(ki,wt.type,Ut,!1))}}return ct}function Ur(ct,wt,dn){if(f4(wt)||mr(wt.parent)&&(wt.parent.operatorToken.kind===61||wt.parent.operatorToken.kind===78)&&wt.parent.left===wt)return xr(ct,wt,dn);switch(wt.kind){case 80:if(!Iu(n,wt)&&M<5){const Ut=Bm(wt);if(e2(Ut)){const _n=Ut.valueDeclaration;if(_n&&Oi(_n)&&!_n.type&&_n.initializer&&o4e(n)){M++;const Fn=Ur(ct,_n.initializer,dn);return M--,Fn}}}case 110:case 108:case 211:case 212:return Bo(ct,wt,dn);case 213:return Ai(ct,wt,dn);case 217:case 235:return Ur(ct,wt.expression,dn);case 226:return up(ct,wt,dn);case 224:if(wt.operator===54)return Ur(ct,wt.operand,!dn);break}return ct}function xr(ct,wt,dn){if(Iu(n,wt))return QT(ct,dn?2097152:262144);const Ut=Kn(wt,ct);return Ut?nr(ct,Ut,_n=>mm(_n,dn?2097152:262144)):ct}}function Qdt(n,a){if(n=hf(n),(a.kind===80||a.kind===81)&&(zC(a)&&(a=a.parent),Qh(a)&&(!eg(a)||WA(a)))){const c=eee(WA(a)&&a.kind===211?xee(a,void 0,!0):Ru(a));if(hf(Zr(a).resolvedSymbol)===n)return c}return wg(a)&&Mv(a.parent)&&zm(a.parent)?Qz(a.parent.symbol):Qj(a)&&WA(a.parent)?F1(n):Db(n)}function j8(n){return Vn(n.parent,a=>ea(a)&&!bS(a)||a.kind===268||a.kind===312||a.kind===172)}function a4e(n){return!s4e(n,void 0)}function s4e(n,a){const c=Vn(n.valueDeclaration,hee);if(!c)return!1;const d=Zr(c);return d.flags&131072||(d.flags|=131072,Zdt(c)||c4e(c)),!n.lastAssignmentPos||a&&n.lastAssignmentPos<a.pos}function Pve(n){return N.assert(Oi(n)||Ao(n)),l4e(n.name)}function l4e(n){return n.kind===80?a4e(Ir(n.parent)):bt(n.elements,a=>a.kind!==232&&l4e(a.name))}function Zdt(n){return!!Vn(n.parent,a=>hee(a)&&!!(Zr(a).flags&131072))}function hee(n){return Bs(n)||$i(n)}function c4e(n){switch(n.kind){case 80:if(eg(n)){const c=Bm(n);if(gee(c)&&c.lastAssignmentPos!==Number.MAX_VALUE){const d=Vn(n,hee),_=Vn(c.valueDeclaration,hee);c.lastAssignmentPos=d===_?ept(n,c.valueDeclaration):Number.MAX_VALUE}}return;case 281:const a=n.parent.parent;if(!n.isTypeOnly&&!a.isTypeOnly&&!a.moduleSpecifier){const c=Hs(n.propertyName||n.name,111551,!0,!0);c&&gee(c)&&(c.lastAssignmentPos=Number.MAX_VALUE)}return;case 264:case 265:case 266:return}ji(n)||Uo(n,c4e)}function ept(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 e2(n){return n.flags&3&&($ve(n)&6)!==0}function gee(n){const a=n.valueDeclaration&&R_(n.valueDeclaration);return!!a&&(Ao(a)||Oi(a)&&(r1(a.parent)||tpt(a)))}function tpt(n){return!!(n.parent.flags&1)&&!(n0(n)&32||n.parent.parent.kind===243&&Ch(n.parent.parent.parent))}function npt(n){const a=Zr(n);if(a.parameterInitializerContainsUndefined===void 0){if(!Oh(n,9))return mN(n.symbol),!0;const c=!!fm(r2(n,0),16777216);if(!K_())return mN(n.symbol),!0;a.parameterInitializerContainsUndefined=c}return a.parameterInitializerContainsUndefined}function rpt(n,a){return X&&a.kind===169&&a.initializer&&fm(n,16777216)&&!npt(a)?mm(n,524288):n}function ipt(n,a){const c=a.parent;return c.kind===211||c.kind===166||c.kind===213&&c.expression===a||c.kind===212&&c.expression===a&&!(Gm(n,d4e)&&qT(Ru(c.argumentExpression)))}function u4e(n){return n.flags&2097152?bt(n.types,u4e):!!(n.flags&465829888&&uv(n).flags&1146880)}function d4e(n){return n.flags&2097152?bt(n.types,d4e):!!(n.flags&465829888&&!Cl(uv(n),98304))}function opt(n,a){const c=(Ve(n)||Fr(n)||$s(n))&&!((k_(n.parent)||GS(n.parent))&&n.parent.tagName===n)&&(a&&a&32?Yd(n,8):Yd(n,void 0));return c&&!AN(c)}function Mve(n,a,c){return!(c&&c&2)&&Gm(n,u4e)&&(ipt(n,a)||opt(a,c))?dl(n,uv):n}function p4e(n){return!!Vn(n,a=>{const c=a.parent;return c===void 0?"quit":kl(c)?c.expression===a&&Bl(a):Ku(c)?c.name===a||c.propertyName===a:!1})}function vee(n,a){if(It&&IT(n,111551)&&!DS(a)){const c=Oc(n);Au(n,!0)&1160127&&(rm(V)||KE(V)&&p4e(a)||!i6(hf(c))?gb(n):ru(n))}}function apt(n,a,c){var d;const _=dr(n,c),v=n.valueDeclaration;if(v){if($a(v)&&!v.initializer&&!v.dotDotDotToken&&v.parent.elements.length>=2){const x=v.parent.parent,k=R_(x);if(k.kind===260&&eS(k)&6||k.kind===169){const F=Zr(x);if(!(F.flags&4194304)){F.flags|=4194304;const H=zr(x,0),re=H&&dl(H,uv);if(F.flags&=-4194305,re&&re.flags&1048576&&!(k.kind===169&&Pve(k))){const be=v.parent,ge=Vb(be,re,re,void 0,a.flowNode);return ge.flags&131072?Vr:bg(v,ge,!0)}}}}if(Ao(v)&&!v.type&&!v.initializer&&!v.dotDotDotToken){const x=v.parent;if(x.parameters.length>=2&&VZ(x)){const k=H8(x);if(k&&k.parameters.length===1&&Yu(k)){const F=zM(lo(dr(k.parameters[0]),(d=K1(x))==null?void 0:d.nonFixingMapper));if(F.flags&1048576&&cp(F,Wa)&&!bt(x.parameters,Pve)){const H=Vb(x,F,F,void 0,a.flowNode),re=x.parameters.indexOf(v)-(BE(x)?1:0);return Pp(H,m_(re))}}}}}return _}function spt(n,a){if(kA(n))return F9(n);const c=Bm(n);if(c===ft)return _t;if(c===Bt){if(X4e(n))return qe(n,f.arguments_cannot_be_referenced_in_property_initializers),_t;let ln=Bp(n);if(ln)for(se<2&&(ln.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):Qr(ln,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)),Zr(ln).flags|=512;ln&&Gs(ln);)ln=Bp(ln),ln&&(Zr(ln).flags|=512);return dr(c)}cpt(n)&&vee(c,n);const d=hf(c),_=Qye(d,n);ub(_)&&kge(n,_)&&_.declarations&&iy(n,_.declarations,n.escapedText);let v=d.valueDeclaration;if(v&&d.flags&32&&di(v)&&v.name!==n){let ln=Fd(n,!1,!1);for(;ln.kind!==312&&ln.parent!==v;)ln=Fd(ln,!1,!1);ln.kind!==312&&(Zr(v).flags|=262144,Zr(ln).flags|=262144,Zr(n).flags|=536870912)}ppt(n,c);let x=apt(d,n,a);const k=MA(n);if(k){if(!(d.flags&3)&&!(lr(n)&&d.flags&512)){const ln=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,ln,Si(c)),_t}if(g_(d))return d.flags&3?qe(n,f.Cannot_assign_to_0_because_it_is_a_constant,Si(c)):qe(n,f.Cannot_assign_to_0_because_it_is_a_read_only_property,Si(c)),_t}const F=d.flags&2097152;if(d.flags&3){if(k===1)return xj(n)?_v(x):x}else if(F)v=wm(c);else return x;if(!v)return x;x=Mve(x,n,a);const H=R_(v).kind===169,re=j8(v);let be=j8(n);const ge=be!==re,Je=n.parent&&n.parent.parent&&jv(n.parent)&&Nve(n.parent.parent),gt=c.flags&134217728,Dt=x===it||x===Hc,an=Dt&&n.parent.kind===235;for(;be!==re&&(be.kind===218||be.kind===219||G4(be))&&(e2(d)&&x!==Hc||gee(d)&&s4e(d,n));)be=j8(be);const cn=H||F||ge||Je||gt||lpt(n,v)||x!==it&&x!==Hc&&(!X||(x.flags&16387)!==0||DS(n)||Tve(n)||n.parent.kind===281)||n.parent.kind===235||v.kind===260&&v.exclamationToken||v.flags&33554432,ar=an?Oe:cn?H?rpt(x,v):x:Dt?Oe:Bb(x),Wn=an?hv(Vb(n,x,ar,be)):Vb(n,x,ar,be);if(!r4e(n)&&(x===it||x===Hc)){if(Wn===it||Wn===Hc)return de&&(qe(Lo(v),f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Si(c),Hn(Wn)),qe(n,f.Variable_0_implicitly_has_an_1_type,Si(c),Hn(Wn))),r6(Wn)}else if(!cn&&!HM(x)&&HM(Wn))return qe(n,f.Variable_0_is_used_before_being_assigned,Si(c)),x;return k?_v(Wn):Wn}function lpt(n,a){if($a(a)){const c=Vn(n,$a);return c&&R_(c)===R_(a)}}function cpt(n){var a;const c=n.parent;if(c){if(Fr(c)&&c.expression===n||Ku(c)&&c.isTypeOnly)return!1;const d=(a=c.parent)==null?void 0:a.parent;if(d&&Yl(d)&&d.isTypeOnly)return!1}return!0}function upt(n,a){return!!Vn(n,c=>c===a?"quit":ea(c)||c.parent&&qo(c.parent)&&!mc(c.parent)&&c.parent.initializer===c)}function dpt(n,a){return Vn(n,c=>c===a?"quit":c===a.initializer||c===a.condition||c===a.incrementor||c===a.statement)}function Lve(n){return Vn(n,a=>!a||wj(a)?"quit":Py(a,!1))}function ppt(n,a){if(se>=2||!(a.flags&34)||!a.valueDeclaration||$i(a.valueDeclaration)||a.valueDeclaration.parent.kind===299)return;const c=_h(a.valueDeclaration),d=upt(n,c),_=Lve(c);if(_){if(d){let v=!0;if(zS(c)){const x=f0(a.valueDeclaration,261);if(x&&x.parent===c){const k=dpt(n.parent,c);if(k){const F=Zr(k);F.flags|=8192;const H=F.capturedBlockScopeBindings||(F.capturedBlockScopeBindings=[]);Ef(H,a),k===c.initializer&&(v=!1)}}}v&&(Zr(_).flags|=4096)}if(zS(c)){const v=f0(a.valueDeclaration,261);v&&v.parent===c&&mpt(n,c)&&(Zr(a.valueDeclaration).flags|=65536)}Zr(a.valueDeclaration).flags|=32768}d&&(Zr(a.valueDeclaration).flags|=16384)}function fpt(n,a){const c=Zr(n);return!!c&&Or(c.capturedBlockScopeBindings,Ir(a))}function mpt(n,a){let c=n;for(;c.parent.kind===217;)c=c.parent;let d=!1;if(eg(c))d=!0;else if(c.parent.kind===224||c.parent.kind===225){const _=c.parent;d=_.operator===46||_.operator===47}return d?!!Vn(c,_=>_===a?"quit":_===a.statement):!1}function kve(n,a){if(Zr(n).flags|=2,a.kind===172||a.kind===176){const c=a.parent;Zr(c).flags|=4}else Zr(a).flags|=4}function f4e(n){return yS(n)?n:ea(n)?void 0:Uo(n,f4e)}function wve(n){const a=Ir(n),c=Zs(a);return Np(c)===Be}function m4e(n,a,c){const d=a.parent;FE(d)&&!wve(d)&&qL(n)&&n.flowNode&&!_ee(n.flowNode,!1)&&qe(n,c)}function _pt(n,a){qo(a)&&mc(a)&&ne&&a.initializer&&eL(a.initializer,n.pos)&&Tf(a.parent)&&qe(n,f.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function F9(n){const a=DS(n);let c=Fd(n,!0,!0),d=!1,_=!1;for(c.kind===176&&m4e(n,c,f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(c.kind===219&&(c=Fd(c,!1,!_),d=!0),c.kind===167){c=Fd(c,!d,!1),_=!0;continue}break}if(_pt(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:_4e(n,c)&&qe(n,f.this_cannot_be_referenced_in_constructor_arguments);break}!a&&d&&se<2&&kve(n,c);const v=Ove(n,!0,c);if(ie){const x=dr(ot);if(v===x&&d)qe(n,f.The_containing_arrow_function_captures_the_global_value_of_this);else if(!v){const k=qe(n,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!$i(c)){const F=Ove(c);F&&F!==x&&Ma(k,kr(c,f.An_outer_value_of_this_is_shadowed_by_this_container))}}}return v||j}function Ove(n,a=!0,c=Fd(n,!1,!1)){const d=lr(n);if(ea(c)&&(!zve(n)||BE(c))){let _=zhe(c)||d&&vpt(c);if(!_){const v=gpt(c);if(d&&v){const x=mo(v).symbol;x&&x.members&&x.flags&16&&(_=Zs(x).thisType)}else eh(c)&&(_=Zs(rs(c.symbol)).thisType);_||(_=y4e(c))}if(_)return Vb(n,_)}if(di(c.parent)){const _=Ir(c.parent),v=aa(c)?dr(_):Zs(_).thisType;return Vb(n,v)}if($i(c))if(c.commonJsModuleIndicator){const _=Ir(c);return _&&dr(_)}else{if(c.externalModuleIndicator)return Oe;if(a)return dr(ot)}}function hpt(n){const a=Fd(n,!1,!1);if(ea(a)){const c=dm(a);if(c.thisParameter)return fee(c.thisParameter)}if(di(a.parent)){const c=Ir(a.parent);return aa(a)?dr(c):Zs(c).thisType}}function gpt(n){if(n.kind===218&&mr(n.parent)&&zl(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===174&&n.parent.kind===210&&mr(n.parent.parent)&&zl(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===218&&n.parent.kind===303&&n.parent.parent.kind===210&&mr(n.parent.parent.parent)&&zl(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===218&&hc(n.parent)&&Ve(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&La(n.parent.parent)&&sa(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&zl(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(Hl(n)&&Ve(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&La(n.parent)&&sa(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&zl(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function vpt(n){const a=c4(n);if(a&&a.typeExpression)return Ti(a.typeExpression);const c=BM(n);if(c)return oE(c)}function _4e(n,a){return!!Vn(n,c=>Bs(c)?"quit":c.kind===169&&c.parent===a)}function Wve(n){const a=n.parent.kind===213&&n.parent.expression===n,c=CL(n,!0);let d=c,_=!1,v=!1;if(!a){for(;d&&d.kind===219;)Qr(d,1024)&&(v=!0),d=CL(d,!0),_=se<2;d&&Qr(d,1024)&&(v=!0)}let x=0;if(!d||!re(d)){const be=Vn(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||!(di(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),_t}if(!a&&c.kind===176&&m4e(n,d,f.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),aa(d)||a?(x=32,!a&&se>=2&&se<=8&&(qo(d)||Rl(d))&&Ure(n.parent,be=>{(!$i(be)||Fp(be))&&(Zr(be).flags|=2097152)})):x=16,Zr(n).flags|=x,d.kind===174&&v&&(zd(n.parent)&&eg(n.parent)?Zr(d).flags|=256:Zr(d).flags|=128),_&&kve(n.parent,d),d.parent.kind===210)return se<2?(qe(n,f.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),_t):j;const k=d.parent;if(!FE(k))return qe(n,f.super_can_only_be_referenced_in_a_derived_class),_t;if(wve(k))return a?_t:Be;const F=Zs(Ir(k)),H=F&&Cp(F)[0];if(!H)return _t;if(d.kind===176&&_4e(n,d))return qe(n,f.super_cannot_be_referenced_in_constructor_arguments),_t;return x===32?Np(F):Jp(H,F.thisType);function re(be){return a?be.kind===176:di(be.parent)||be.parent.kind===210?aa(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 h4e(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 g4e(n){return Wr(n)&4&&n.target===Gl?Js(n)[0]:void 0}function ypt(n){return dl(n,a=>a.flags&2097152?Xe(a.types,g4e):g4e(a))}function v4e(n,a){let c=n,d=a;for(;d;){const _=ypt(d);if(_)return _;if(c.parent.kind!==303)break;c=c.parent.parent,d=mE(c,void 0)}}function y4e(n){if(n.kind===219)return;if(VZ(n)){const c=H8(n);if(c){const d=c.thisParameter;if(d)return dr(d)}}const a=lr(n);if(ie||a){const c=h4e(n);if(c){const _=mE(c,void 0),v=v4e(c,_);return v?lo(v,mve(K1(c))):Kp(_?hv(_):nc(c))}const d=kv(n.parent);if(Pc(d)){const _=d.left;if(ws(_)){const{expression:v}=_;if(a&&Ve(v)){const x=Un(d);if(x.commonJsModuleIndicator&&Bm(v)===x.symbol)return}return Kp(nc(v))}}}}function b4e(n){const a=n.parent;if(!VZ(a))return;const c=bS(a);if(c&&c.arguments){const _=kee(c),v=a.parameters.indexOf(n);if(n.dotDotDotToken)return dye(_,v,_.length,j,void 0,0);const x=Zr(c),k=x.resolvedSignature;x.resolvedSignature=Et;const F=v<_.length?q1(mo(_[v])):n.initializer?void 0:Lt;return x.resolvedSignature=k,F}const d=H8(a);if(d){const _=a.parameters.indexOf(n)-(BE(a)?1:0);return n.dotDotDotToken&&el(a.parameters)===n?eB(d,_):Y1(d,_)}}function Fve(n,a){const c=yu(n)||(lr(n)?X3(n):void 0);if(c)return Ti(c);switch(n.kind){case 169:return b4e(n);case 208:return bpt(n,a);case 172:if(aa(n))return Ept(n,a)}}function bpt(n,a){const c=n.parent.parent,d=n.propertyName||n.name,_=Fve(c,a)||c.kind!==208&&c.initializer&&r2(c,n.dotDotDotToken?32:0);if(!_||ta(d)||AL(d))return;if(c.name.kind===207){const x=tR(n.parent.elements,n);return x<0?void 0:Vve(_,x)}const v=py(d);if(tm(v)){const x=nm(v);return Ke(_,x)}}function Ept(n,a){const c=yt(n.parent)&&Yd(n.parent,a);if(c)return fE(c,Ir(n).escapedName)}function Spt(n,a){const c=n.parent;if(Ly(c)&&n===c.initializer){const d=Fve(c,a);if(d)return d;if(!(a&8)&&ta(c.name)&&c.name.elements.length>0)return P(c.name,!0,!1)}}function Tpt(n,a){const c=Bp(n);if(c){let d=yee(c,a);if(d){const _=Bc(c);if(_&1){const v=(_&2)!==0;d.flags&1048576&&(d=dc(d,k=>!!$1(1,k,v)));const x=$1(1,d,(_&2)!==0);if(!x)return;d=x}if(_&2){const v=dl(d,_y);return v&&ei([v,w3e(v)])}return d}}}function Apt(n,a){const c=Yd(n,a);if(c){const d=_y(c);return d&&ei([d,w3e(d)])}}function Ipt(n,a){const c=Bp(n);if(c){const d=Bc(c);let _=yee(c,a);if(_){const v=(d&2)!==0;return!n.asteriskToken&&_.flags&1048576&&(_=dc(_,x=>!!$1(1,x,v))),n.asteriskToken?_:$1(0,_,v)}}}function zve(n){let a=!1;for(;n.parent&&!ea(n.parent);){if(Ao(n.parent)&&(a||n.parent.initializer===n))return!0;$a(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function E4e(n,a){const c=!!(Bc(a)&2),d=yee(a,void 0);if(d)return $1(n,d,c)||void 0}function yee(n,a){const c=yN(n);if(c)return c;const d=Uve(n);if(d&&!TZ(d)){const v=ps(d),x=Bc(n);return x&1?dc(v,k=>!!(k.flags&58998787)||Mye(k,x,void 0)):x&2?dc(v,k=>!!(k.flags&58998787)||!!a2(k)):v}const _=bS(n);if(_)return Yd(_,a)}function S4e(n,a){const d=kee(n).indexOf(a);return d===-1?void 0:Bve(n,d)}function Bve(n,a){if(zp(n))return a===0?ke:a===1?u8e(!1):j;const c=Zr(n).resolvedSignature===Sr?Sr:PN(n);if(ld(n)&&a===0)return Tee(c,n);const d=c.parameters.length-1;return Yu(c)&&a>=d?Pp(dr(c.parameters[d]),m_(a-d),256):h_(c,a)}function xpt(n){const a=Aye(n);return a?VT(a):void 0}function Rpt(n,a){if(n.parent.kind===215)return S4e(n.parent,a)}function Dpt(n,a){const c=n.parent,{left:d,operatorToken:_,right:v}=c;switch(_.kind){case 64:case 77:case 76:case 78:return n===v?Cpt(c):void 0;case 57:case 61:const x=Yd(c,a);return n===v&&(x&&x.pattern||!x&&!die(c))?Ru(d):x;case 56:case 28:return n===v?Yd(c,a):void 0;default:return}}function Npt(n){if(T_(n)&&n.symbol)return n.symbol;if(Ve(n))return Bm(n);if(Fr(n)){const c=Ru(n.expression);return qi(n.name)?a(c,n.name):va(c,n.name.escapedText)}if($s(n)){const c=nc(n.argumentExpression);if(!tm(c))return;const d=Ru(n.expression);return va(d,nm(c))}return;function a(c,d){const _=Ree(d.escapedText,d);return _&&tye(c,_)}}function Cpt(n){var a,c;const d=zl(n);switch(d){case 0:case 4:const _=Npt(n.left),v=_&&_.valueDeclaration;if(v&&(qo(v)||gp(v))){const F=yu(v);return F&&lo(Ti(F),Ki(_).mapper)||(qo(v)?v.initializer&&Ru(n.left):void 0)}return d===0?Ru(n.left):T4e(n);case 5:if(bee(n,d))return T4e(n);if(!T_(n.left)||!n.left.symbol)return Ru(n.left);{const F=n.left.symbol.valueDeclaration;if(!F)return;const H=oa(n.left,ws),re=yu(F);if(re)return Ti(re);if(Ve(H.expression)){const be=H.expression,ge=yl(be,be.escapedText,111551,void 0,be.escapedText,!0);if(ge){const Je=ge.valueDeclaration&&yu(ge.valueDeclaration);if(Je){const gt=kg(H);if(gt!==void 0)return fE(Ti(Je),gt)}return}}return lr(F)||F===n.left?void 0:Ru(n.left)}case 1:case 6:case 3:case 2:let x;d!==2&&(x=T_(n.left)?(a=n.left.symbol)==null?void 0:a.valueDeclaration:void 0),x||(x=(c=n.symbol)==null?void 0:c.valueDeclaration);const k=x&&yu(x);return k?Ti(k):void 0;case 7:case 8:case 9:return N.fail("Does not apply");default:return N.assertNever(d)}}function bee(n,a=zl(n)){if(a===4)return!0;if(!lr(n)||a!==5||!Ve(n.left.expression))return!1;const c=n.left.expression.escapedText,d=yl(n.left,c,111551,void 0,void 0,!0,!0);return q4(d==null?void 0:d.valueDeclaration)}function T4e(n){if(!n.symbol)return Ru(n.left);if(n.symbol.valueDeclaration){const _=yu(n.symbol.valueDeclaration);if(_){const v=Ti(_);if(v)return v}}const a=oa(n.left,ws);if(!Tm(Fd(a.expression,!1,!1)))return;const c=F9(a.expression),d=kg(a);return d!==void 0&&fE(c,d)||void 0}function Ppt(n){return!!(xl(n)&262144&&!n.links.type&&ax(n,0)>=0)}function fE(n,a,c){return dl(n,d=>{var _;if(Kd(d)&&!d.declaration.nameType){const v=yf(d),x=Gu(v)||v,k=c||Xd(Vi(a));if(ba(k,x))return kZ(d,k)}else if(d.flags&3670016){const v=va(d,a);if(v)return Ppt(v)?void 0:Gb(dr(v),!!(v&&v.flags&16777216));if(Wa(d)&&og(a)&&+a>=0){const x=XM(d,d.target.fixedLength,0,!1,!0);if(x)return x}return(_=rge(ige(d),c||Xd(Vi(a))))==null?void 0:_.type}},!0)}function A4e(n,a){if(N.assert(Tm(n)),!(n.flags&67108864))return Gve(n,a)}function Gve(n,a){const c=n.parent,d=hc(n)&&Fve(n,a);if(d)return d;const _=mE(c,a);if(_){if(gN(n)){const v=Ir(n);return fE(_,v.escapedName,Ki(v).nameType)}if(Wy(n)){const v=Lo(n);if(v&&Za(v)){const x=mo(v.expression),k=tm(x)&&fE(_,nm(x));if(k)return k}}if(n.name){const v=py(n.name);return dl(_,x=>{var k;return(k=rge(ige(x),v))==null?void 0:k.type},!0)}}}function Mpt(n){let a,c;for(let d=0;d<n.length;d++)$m(n[d])&&(a??(a=d),c=d);return{first:a,last:c}}function Vve(n,a,c,d,_){return n&&dl(n,v=>{if(Wa(v)){if((d===void 0||a<d)&&a<v.target.fixedLength)return Gb(Js(v)[a],!!v.target.elementFlags[a]);const x=c!==void 0&&(_===void 0||a>_)?c-a:0,k=x>0&&v.target.hasRestElement?R8(v.target,3):0;return x>0&&x<=k?Js(v)[dy(v)-x]:XM(v,d===void 0?v.target.fixedLength:Math.min(v.target.fixedLength,d),c===void 0||_===void 0?k:Math.min(k,c-_),!1,!0)}return(!d||a<d)&&fE(v,""+a)||jye(1,v,Oe,void 0,!1)},!0)}function Lpt(n,a){const c=n.parent;return n===c.whenTrue||n===c.whenFalse?Yd(c,a):void 0}function kpt(n,a,c){const d=mE(n.openingElement.attributes,c),_=V9(tA(n));if(!(d&&!Nt(d)&&_&&_!==""))return;const v=bR(n.children),x=v.indexOf(a),k=fE(d,_);return k&&(v.length===1?k:dl(k,F=>my(F)?Pp(F,m_(x)):F,!0))}function wpt(n,a){const c=n.parent;return b4(c)?Yd(n,a):sg(c)?kpt(c,n,a):void 0}function I4e(n,a){if(w_(n)){const c=mE(n.parent,a);return!c||Nt(c)?void 0:fE(c,iP(n.name))}else return Yd(n.parent,a)}function z9(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 z9(n.expression);case 294:return!n.expression||z9(n.expression)}return!1}function Opt(n,a){return Rdt(a,n)||Zge(a,So(Wt(mn(n.properties,c=>c.symbol?c.kind===303?z9(c.initializer)&&YM(a,c.symbol.escapedName):c.kind===304?YM(a,c.symbol.escapedName):!1:!1),c=>[()=>sB(c.kind===303?c.initializer:c.name),c.symbol.escapedName]),Wt(mn(gs(a),c=>{var d;return!!(c.flags&16777216)&&!!((d=n==null?void 0:n.symbol)!=null&&d.members)&&!n.symbol.members.has(c.escapedName)&&YM(a,c.escapedName)}),c=>[()=>Oe,c.escapedName])),ba)}function Wpt(n,a){const c=V9(tA(n));return Zge(a,So(Wt(mn(n.properties,d=>!!d.symbol&&d.kind===291&&YM(a,d.symbol.escapedName)&&(!d.initializer||z9(d.initializer))),d=>[d.initializer?()=>sB(d.initializer):()=>Gn,d.symbol.escapedName]),Wt(mn(gs(a),d=>{var _;if(!(d.flags&16777216)||!((_=n==null?void 0:n.symbol)!=null&&_.members))return!1;const v=n.parent.parent;return d.escapedName===c&&sg(v)&&bR(v.children).length?!1:!n.symbol.members.has(d.escapedName)&&YM(a,d.escapedName)}),d=>[()=>Oe,d.escapedName])),ba)}function mE(n,a){const c=Tm(n)?A4e(n,a):Yd(n,a),d=Eee(c,n,a);if(d&&!(a&&a&2&&d.flags&8650752)){const _=dl(d,v=>Wr(v)&32?v:Ld(v),!0);return _.flags&1048576&&La(n)?Opt(n,_):_.flags&1048576&&n1(n)?Wpt(n,_):_}}function Eee(n,a,c){if(n&&Cl(n,465829888)){const d=K1(a);if(d&&c&1&&bt(d.inferences,b_t))return See(n,d.nonFixingMapper);if(d!=null&&d.returnMapper){const _=See(n,d.returnMapper);return _.flags&1048576&&dv(_.types,En)&&dv(_.types,qn)?dc(_,v=>v!==En&&v!==qn):_}}return n}function See(n,a){return n.flags&465829888?lo(n,a):n.flags&1048576?ei(Wt(n.types,c=>See(c,a)),0):n.flags&2097152?ya(Wt(n.types,c=>See(c,a))):n}function Yd(n,a){var c;if(n.flags&67108864)return;const d=R4e(n,!a);if(d>=0)return vn[d];const{parent:_}=n;switch(_.kind){case 260:case 169:case 172:case 171:case 208:return Spt(n,a);case 219:case 253:return Tpt(n,a);case 229:return Ipt(_,a);case 223:return Apt(_,a);case 213:case 214:return S4e(_,n);case 170:return xpt(_);case 216:case 234:return Pg(_.type)?Yd(_,a):Ti(_.type);case 226:return Dpt(n,a);case 303:case 304:return Gve(_,a);case 305:return Yd(_.parent,a);case 209:{const v=_,x=mE(v,a),k=tR(v.elements,n),F=(c=Zr(v)).spreadIndices??(c.spreadIndices=Mpt(v.elements));return Vve(x,k,v.elements.length,F.first,F.last)}case 227:return Lpt(n,a);case 239:return N.assert(_.parent.kind===228),Rpt(_.parent,n);case 217:{if(lr(_)){if(SU(_))return Ti(TU(_));const v=i0(_);if(v&&!Pg(v.typeExpression.type))return Ti(v.typeExpression.type)}return Yd(_,a)}case 235:return Yd(_,a);case 238:return Ti(_.type);case 277:return ro(_);case 294:return wpt(_,a);case 291:case 293:return I4e(_,a);case 286:case 285:return Gpt(_,a);case 301:return Bpt(_)}}function x4e(n){B9(n,Yd(n,void 0),!0)}function B9(n,a,c){Qn[_i]=n,vn[_i]=a,Zn[_i]=c,_i++}function U8(){_i--}function R4e(n,a){for(let c=_i-1;c>=0;c--)if(n===Qn[c]&&(a||!Zn[c]))return c;return-1}function Fpt(n,a){cr[fr]=n,ni[fr]=a,fr++}function zpt(){fr--}function K1(n){for(let a=fr-1;a>=0;a--)if(WE(n,cr[a]))return ni[a]}function Bpt(n){return fE(bge(!1),$3(n))}function Gpt(n,a){if(k_(n)&&a!==4){const c=R4e(n.parent,!a);if(c>=0)return vn[c]}return Bve(n,0)}function Tee(n,a){return u3e(a)!==0?Vpt(n,a):Hpt(n,a)}function Vpt(n,a){let c=Sye(n,hn);c=D4e(a,tA(a),c);const d=X1(of.IntrinsicAttributes,a);return Jt(d)||(c=i9(d,c)),c}function jpt(n,a){if(n.compositeSignatures){const d=[];for(const _ of n.compositeSignatures){const v=ps(_);if(Nt(v))return v;const x=Ke(v,a);if(!x)return;d.push(x)}return ya(d)}const c=ps(n);return Nt(c)?c:Ke(c,a)}function Upt(n){if(_x(n.tagName)){const c=W4e(n),d=wee(n,c);return VT(d)}const a=nc(n.tagName);if(a.flags&128){const c=O4e(a,n);if(!c)return _t;const d=wee(n,c);return VT(d)}return a}function D4e(n,a,c){const d=dft(a);if(d){const _=Upt(n),v=B4e(d,lr(n),_,c);if(v)return v}return c}function Hpt(n,a){const c=tA(a),d=fft(c);let _=d===void 0?Sye(n,hn):d===""?ps(n):jpt(n,d);if(!_)return d&&Ne(a.attributes.properties)&&qe(a,f.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Vi(d)),hn;if(_=D4e(a,c,_),Nt(_))return _;{let v=_;const x=X1(of.IntrinsicClassAttributes,a);if(!Jt(x)){const F=Lr(x.symbol),H=ps(n);let re;if(F){const be=Mb([H],F,zh(F),lr(a));re=lo(x,Mp(F,be))}else re=x;v=i9(re,v)}const k=X1(of.IntrinsicAttributes,a);return Jt(k)||(v=i9(k,v)),v}}function qpt(n){return dd(V,"noImplicitAny")?rd(n,(a,c)=>a===c||!a?a:ROe(a.typeParameters,c.typeParameters)?Xpt(a,c):void 0):void 0}function Jpt(n,a,c){if(!n||!a)return n||a;const d=ei([dr(n),lo(dr(a),c)]);return XT(n,d)}function Kpt(n,a,c){const d=Xp(n),_=Xp(a),v=d>=_?n:a,x=v===n?a:n,k=v===n?d:_,F=jh(n)||jh(a),H=F&&!jh(v),re=new Array(k+(H?1:0));for(let be=0;be<k;be++){let ge=Y1(v,be);v===a&&(ge=lo(ge,c));let Je=Y1(x,be)||hn;x===a&&(Je=lo(Je,c));const gt=ei([ge,Je]),Dt=F&&!H&&be===k-1,an=be>=th(v)&&be>=th(x),cn=be>=d?void 0:n2(n,be),ar=be>=_?void 0:n2(a,be),Wn=cn===ar?cn:cn?ar?void 0:cn:ar,ln=Ka(1|(an&&!Dt?16777216:0),Wn||`arg${be}`);ln.links.type=Dt?Vu(gt):gt,re[be]=ln}if(H){const be=Ka(1,"args");be.links.type=Vu(h_(x,k)),x===a&&(be.links.type=lo(be.links.type,c)),re[k]=be}return re}function Xpt(n,a){const c=n.typeParameters||a.typeParameters;let d;n.typeParameters&&a.typeParameters&&(d=Mp(a.typeParameters,n.typeParameters));const _=n.declaration,v=Kpt(n,a,d),x=Jpt(n.thisParameter,a.thisParameter,d),k=Math.max(n.minArgumentCount,a.minArgumentCount),F=Eg(_,c,x,v,void 0,void 0,k,(n.flags|a.flags)&167);return F.compositeKind=2097152,F.compositeSignatures=So(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),d&&(F.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?H1(n.mapper,d):d),F}function jve(n,a){const c=Xo(n,0),d=mn(c,_=>!Ypt(_,a));return d.length===1?d[0]:qpt(d)}function Ypt(n,a){let c=0;for(;c<a.parameters.length;c++){const d=a.parameters[c];if(d.initializer||d.questionToken||d.dotDotDotToken||bk(d))break}return a.parameters.length&&GE(a.parameters[0])&&c--,!jh(n)&&Xp(n)<c}function Uve(n){return qE(n)||Tm(n)?H8(n):void 0}function H8(n){N.assert(n.kind!==174||Tm(n));const a=BM(n);if(a)return a;const c=mE(n,1);if(!c)return;if(!(c.flags&1048576))return jve(c,n);let d;const _=c.types;for(const v of _){const x=jve(v,n);if(x)if(!d)d=[x];else if(x9(d[0],x,!1,!0,!0,L8))d.push(x);else return}if(d)return d.length===1?d[0]:IOe(d[0],d)}function $pt(n,a){se<2&&Dc(n,V.downlevelIteration?1536:1024);const c=mo(n.expression,a);return hy(33,c,Oe,n.expression)}function Qpt(n){return n.isSpread?Pp(n.type,Tt):n.type}function t2(n){return n.kind===208&&!!n.initializer||n.kind===226&&n.operatorToken.kind===64}function Zpt(n){const a=kv(n.parent);return $m(a)&&S_(a.parent)}function N4e(n,a,c){const d=n.elements,_=d.length,v=[],x=[];x4e(n);const k=eg(n),F=i2(n),H=mE(n,void 0),re=Zpt(n)||!!H&&Gm(H,ge=>KM(ge)||Kd(ge)&&!ge.nameType&&!!P8(ge.target||ge));let be=!1;for(let ge=0;ge<_;ge++){const Je=d[ge];if(Je.kind===230){se<2&&Dc(Je,V.downlevelIteration?1536:1024);const gt=mo(Je.expression,a,c);if(my(gt))v.push(gt),x.push(8);else if(k){const Dt=iE(gt,Tt)||jye(65,gt,Oe,void 0,!1)||hn;v.push(Dt),x.push(4)}else v.push(hy(33,gt,Oe,Je.expression)),x.push(4)}else if(De&&Je.kind===232)be=!0,v.push(me),x.push(2);else{const gt=o2(Je,a,c);if(v.push(lp(gt,!0,be)),x.push(be?2:1),re&&a&&a&2&&!(a&4)&&Vf(Je)){const Dt=K1(n);N.assert(Dt),pve(Dt,Je,gt)}}}return U8(),k?Gh(v,x):C4e(c||F||re?Gh(v,x,F&&!(H&&Gm(H,rve))):Vu(v.length?ei(Zo(v,(ge,Je)=>x[Je]&8?kb(ge,Tt)||j:ge),2):X?Mi:Lt,F))}function C4e(n){if(!(Wr(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=QOe(n),a.objectFlags|=147456),a}function eft(n){switch(n.kind){case 167:return tft(n);case 80:return og(n.escapedText);case 9:case 11:return og(n.text);default:return!1}}function tft(n){return xu(Tg(n),296)}function Tg(n){const a=Zr(n.expression);if(!a.resolvedType){if((yp(n.parent.parent)||di(n.parent.parent)||md(n.parent.parent))&&mr(n.expression)&&n.expression.operatorToken.kind===103&&n.parent.kind!==177&&n.parent.kind!==178)return a.resolvedType=_t;if(a.resolvedType=mo(n.expression),qo(n.parent)&&!mc(n.parent)&&Qc(n.parent.parent)){const c=_h(n.parent.parent),d=Lve(c);d&&(Zr(d).flags|=4096,Zr(n).flags|=32768,Zr(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!xu(a.resolvedType,402665900)&&!ba(a.resolvedType,Nn))&&qe(n,f.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function nft(n){var a;const c=(a=n.declarations)==null?void 0:a[0];return og(n.escapedName)||c&&ad(c)&&eft(c.name)}function P4e(n){var a;const c=(a=n.declarations)==null?void 0:a[0];return tk(n)||c&&ad(c)&&Za(c.name)&&xu(Tg(c.name),4096)}function Hve(n,a,c,d){const _=[];for(let x=a;x<c.length;x++){const k=c[x];(d===ke&&!P4e(k)||d===Tt&&nft(k)||d===xi&&P4e(k))&&_.push(dr(c[x]))}const v=_.length?ei(_,2):Oe;return Bh(d,v,i2(n))}function qve(n){N.assert((n.flags&2097152)!==0,"Should only get Alias here.");const a=Ki(n);if(!a.immediateTarget){const c=wm(n);if(!c)return N.fail();a.immediateTarget=Up(c,!0)}return a.immediateTarget}function rft(n,a=0){var c;const d=eg(n);cyt(n,d);const _=X?ca():void 0;let v=ca(),x=[],k=Ca;x4e(n);const F=mE(n,void 0),H=F&&F.pattern&&(F.pattern.kind===206||F.pattern.kind===210),re=i2(n),be=re?8:0,ge=lr(n)&&!$4(n),Je=ge?xV(n):void 0,gt=!F&&ge&&!Je;let Dt=Ee,an=!1,cn=!1,ar=!1,Wn=!1;for(const zn of n.properties)zn.name&&Za(zn.name)&&Tg(zn.name);let ln=0;for(const zn of n.properties){let tr=Ir(zn);const Kn=zn.name&&zn.name.kind===167?Tg(zn.name):void 0;if(zn.kind===303||zn.kind===304||Tm(zn)){let nr=zn.kind===303?Y3e(zn,a):zn.kind===304?o2(!d&&zn.objectAssignmentInitializer?zn.objectAssignmentInitializer:zn.name,a):$3e(zn,a);if(ge){const Bo=ov(zn);Bo?(nd(nr,Bo,zn),nr=Bo):Je&&Je.typeExpression&&nd(nr,Ti(Je.typeExpression),zn)}Dt|=Wr(nr)&458752;const Ro=Kn&&tm(Kn)?Kn:void 0,Eo=Ro?Ka(4|tr.flags,nm(Ro),be|4096):Ka(4|tr.flags,tr.escapedName,be);if(Ro&&(Eo.links.nameType=Ro),d)(zn.kind===303&&t2(zn.initializer)||zn.kind===304&&zn.objectAssignmentInitializer)&&(Eo.flags|=16777216);else if(H&&!(Wr(F)&512)){const Bo=va(F,tr.escapedName);Bo?Eo.flags|=Bo.flags&16777216:!V.suppressExcessPropertyErrors&&!Sg(F,ke)&&qe(zn.name,f.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Si(tr),Hn(F))}if(Eo.declarations=tr.declarations,Eo.parent=tr.parent,tr.valueDeclaration&&(Eo.valueDeclaration=tr.valueDeclaration),Eo.links.type=nr,Eo.links.target=tr,tr=Eo,_==null||_.set(Eo.escapedName,Eo),F&&a&2&&!(a&4)&&(zn.kind===303||zn.kind===174)&&Vf(zn)){const Bo=K1(n);N.assert(Bo);const _o=zn.kind===303?zn.initializer:zn;pve(Bo,_o,nr)}}else if(zn.kind===305){se<2&&Dc(zn,2),x.length>0&&(k=V1(k,Bn(),n.symbol,Dt,re),x=[],v=ca(),cn=!1,ar=!1,Wn=!1);const nr=f_(mo(zn.expression,a&2));if(G9(nr)){const Ro=zge(nr,re);if(_&&L4e(Ro,_,zn),ln=x.length,Jt(k))continue;k=V1(k,Ro,n.symbol,Dt,re)}else qe(zn,f.Spread_types_may_only_be_created_from_object_types),k=_t;continue}else N.assert(zn.kind===177||zn.kind===178),hx(zn);Kn&&!(Kn.flags&8576)?ba(Kn,Nn)&&(ba(Kn,Tt)?ar=!0:ba(Kn,xi)?Wn=!0:cn=!0,d&&(an=!0)):v.set(tr.escapedName,tr),x.push(tr)}if(U8(),H){const zn=Vn(F.pattern.parent,Kn=>Kn.kind===260||Kn.kind===226||Kn.kind===169);if(Vn(n,Kn=>Kn===zn||Kn.kind===305).kind!==305)for(const Kn of gs(F))!v.get(Kn.escapedName)&&!va(k,Kn.escapedName)&&(Kn.flags&16777216||qe(Kn.valueDeclaration||((c=ri(Kn,fh))==null?void 0:c.links.bindingElement),f.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),v.set(Kn.escapedName,Kn),x.push(Kn))}if(Jt(k))return _t;if(k!==Ca)return x.length>0&&(k=V1(k,Bn(),n.symbol,Dt,re),x=[],v=ca(),cn=!1,ar=!1),dl(k,zn=>zn===Ca?Bn():zn);return Bn();function Bn(){const zn=[];cn&&zn.push(Hve(n,ln,x,ke)),ar&&zn.push(Hve(n,ln,x,Tt)),Wn&&zn.push(Hve(n,ln,x,xi));const tr=Ls(n.symbol,v,et,et,zn);return tr.objectFlags|=Dt|128|131072,gt&&(tr.objectFlags|=4096),an&&(tr.objectFlags|=512),d&&(tr.pattern=n),tr}}function G9(n){const a=x6e(dl(n,uv));return!!(a.flags&126615553||a.flags&3145728&&Jn(a.types,G9))}function ift(n){Xve(n)}function oft(n,a){return hx(n),j9(n)||j}function aft(n){Xve(n.openingElement),_x(n.closingElement.tagName)?Iee(n.closingElement):mo(n.closingElement.tagName),Aee(n)}function sft(n,a){return hx(n),j9(n)||j}function lft(n){Xve(n.openingFragment);const a=Un(n);return k3(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),Aee(n),j9(n)||j}function Jve(n){return n.includes("-")}function _x(n){return Ve(n)&&SR(n.escapedText)||Qm(n)}function M4e(n,a){return n.initializer?o2(n.initializer,a):Gn}function cft(n,a=0){const c=n.attributes,d=Yd(c,0),_=X?ca():void 0;let v=ca(),x=ml,k=!1,F,H=!1,re=2048;const be=V9(tA(n));for(const gt of c.properties){const Dt=gt.symbol;if(w_(gt)){const an=M4e(gt,a);re|=Wr(an)&458752;const cn=Ka(4|Dt.flags,Dt.escapedName);if(cn.declarations=Dt.declarations,cn.parent=Dt.parent,Dt.valueDeclaration&&(cn.valueDeclaration=Dt.valueDeclaration),cn.links.type=an,cn.links.target=Dt,v.set(cn.escapedName,cn),_==null||_.set(cn.escapedName,cn),iP(gt.name)===be&&(H=!0),d){const ar=va(d,Dt.escapedName);ar&&ar.declarations&&ub(ar)&&Ve(gt.name)&&iy(gt.name,ar.declarations,gt.name.escapedText)}if(d&&a&2&&!(a&4)&&Vf(gt)){const ar=K1(c);N.assert(ar);const Wn=gt.initializer.expression;pve(ar,Wn,an)}}else{N.assert(gt.kind===293),v.size>0&&(x=V1(x,Je(),c.symbol,re,!1),v=ca());const an=f_(mo(gt.expression,a&2));Nt(an)&&(k=!0),G9(an)?(x=V1(x,an,c.symbol,re,!1),_&&L4e(an,_,gt)):(qe(gt.expression,f.Spread_types_may_only_be_created_from_object_types),F=F?ya([F,an]):an)}}k||v.size>0&&(x=V1(x,Je(),c.symbol,re,!1));const ge=n.parent.kind===284?n.parent:void 0;if(ge&&ge.openingElement===n&&bR(ge.children).length>0){const gt=Aee(ge,a);if(!k&&be&&be!==""){H&&qe(c,f._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Vi(be));const Dt=mE(n.attributes,void 0),an=Dt&&fE(Dt,be),cn=Ka(4,be);cn.links.type=gt.length===1?gt[0]:an&&Gm(an,KM)?Gh(gt):Vu(ei(gt)),cn.valueDeclaration=w.createPropertySignature(void 0,Vi(be),void 0,void 0),Ha(cn.valueDeclaration,c),cn.valueDeclaration.symbol=cn;const ar=ca();ar.set(be,cn),x=V1(x,Ls(c.symbol,ar,et,et,et),c.symbol,re,!1)}}if(k)return j;if(F&&x!==ml)return ya([F,x]);return F||(x===ml?Je():x);function Je(){re|=Ee;const gt=Ls(c.symbol,v,et,et,et);return gt.objectFlags|=re|128|131072,gt}}function Aee(n,a){const c=[];for(const d of n.children)if(d.kind===12)d.containsOnlyTriviaWhiteSpaces||c.push(ke);else{if(d.kind===294&&!d.expression)continue;c.push(o2(d,a))}return c}function L4e(n,a,c){for(const d of gs(n))if(!(d.flags&16777216)){const _=a.get(d.escapedName);if(_){const v=qe(_.valueDeclaration,f._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Vi(_.escapedName));Ma(v,kr(c,f.This_spread_always_overwrites_this_property))}}}function uft(n,a){return cft(n.parent,a)}function X1(n,a){const c=tA(a),d=c&&Dp(c),_=d&&Jd(d,n,788968);return _?Zs(_):_t}function Iee(n){const a=Zr(n);if(!a.resolvedSymbol){const c=X1(of.IntrinsicElements,n);if(Jt(c))return de&&qe(n,f.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Vi(of.IntrinsicElements)),a.resolvedSymbol=ft;{if(!Ve(n.tagName)&&!Qm(n.tagName))return N.fail();const d=Qm(n.tagName)?VA(n.tagName):n.tagName.escapedText,_=va(c,d);if(_)return a.jsxFlags|=1,a.resolvedSymbol=_;const v=sFe(c,Xd(Vi(d)));return v?(a.jsxFlags|=2,a.resolvedSymbol=v):xt(c,d)?(a.jsxFlags|=2,a.resolvedSymbol=c.symbol):(qe(n,f.Property_0_does_not_exist_on_type_1,AU(n.tagName),"JSX."+of.IntrinsicElements),a.resolvedSymbol=ft)}}return a.resolvedSymbol}function Kve(n){const a=n&&Un(n),c=a&&Zr(a);if(c&&c.jsxImplicitImportContainer===!1)return;if(c&&c.jsxImplicitImportContainer)return c.jsxImplicitImportContainer;const d=O3(w3(V,a),V);if(!d)return;const v=pd(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,k=a==null?void 0:a.imports[x];k&&N.assert(Ys(k)&&k.text===d,`Expected sourceFile.imports[${x}] to be the synthesized JSX runtime import`);const F=q_(k||n,d,v,n),H=F&&F!==ft?rs(Vl(F)):void 0;return c&&(c.jsxImplicitImportContainer=H||!1),H}function tA(n){const a=n&&Zr(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let d=Kve(n);if(!d||d===ft){const _=B0(n);d=yl(n,_,1920,void 0,_,!1)}if(d){const _=Vl(Jd(Dp(Vl(d)),of.JSX,1920));if(_&&_!==ft)return a&&(a.jsxNamespace=_),_}a&&(a.jsxNamespace=!1)}const c=Vl(jM(of.JSX,1920,void 0));if(c!==ft)return c}function k4e(n,a){const c=a&&Jd(a.exports,n,788968),d=c&&Zs(c),_=d&&gs(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,Vi(n))}}function dft(n){return n&&Jd(n.exports,of.LibraryManagedAttributes,788968)}function pft(n){return n&&Jd(n.exports,of.ElementType,788968)}function fft(n){return k4e(of.ElementAttributesPropertyNameContainer,n)}function V9(n){return k4e(of.ElementChildrenAttributeNameContainer,n)}function w4e(n,a){if(n.flags&4)return[Et];if(n.flags&128){const _=O4e(n,a);return _?[wee(a,_)]:(qe(a,f.Property_0_does_not_exist_on_type_1,n.value,"JSX."+of.IntrinsicElements),et)}const c=Ld(n);let d=Xo(c,1);return d.length===0&&(d=Xo(c,0)),d.length===0&&c.flags&1048576&&(d=Hhe(Wt(c.types,_=>w4e(_,a)))),d}function O4e(n,a){const c=X1(of.IntrinsicElements,a);if(!Jt(c)){const d=n.value,_=va(c,_l(d));if(_)return dr(_);const v=iE(c,ke);return v||void 0}return j}function mft(n,a,c){if(n===1){const _=z4e(c);_&&jf(a,_,qd,c.tagName,f.Its_return_type_0_is_not_a_valid_JSX_element,d)}else if(n===0){const _=F4e(c);_&&jf(a,_,qd,c.tagName,f.Its_instance_type_0_is_not_a_valid_JSX_element,d)}else{const _=z4e(c),v=F4e(c);if(!_||!v)return;const x=ei([_,v]);jf(a,x,qd,c.tagName,f.Its_element_type_0_is_not_a_valid_JSX_element,d)}function d(){const _=fc(c.tagName);return Vo(void 0,f._0_cannot_be_used_as_a_JSX_component,_)}}function W4e(n){var a;N.assert(_x(n.tagName));const c=Zr(n);if(!c.resolvedJsxElementAttributesType){const d=Iee(n);if(c.jsxFlags&1)return c.resolvedJsxElementAttributesType=dr(d)||_t;if(c.jsxFlags&2){const _=Qm(n.tagName)?VA(n.tagName):n.tagName.escapedText;return c.resolvedJsxElementAttributesType=((a=cx(X1(of.IntrinsicElements,n),_))==null?void 0:a.type)||_t}else return c.resolvedJsxElementAttributesType=_t}return c.resolvedJsxElementAttributesType}function F4e(n){const a=X1(of.ElementClass,n);if(!Jt(a))return a}function j9(n){return X1(of.Element,n)}function z4e(n){const a=j9(n);if(a)return ei([a,fe])}function _ft(n){const a=tA(n);if(!a)return;const c=pft(a);if(!c)return;const d=B4e(c,lr(n));if(!(!d||Jt(d)))return d}function B4e(n,a,...c){const d=Zs(n);if(n.flags&524288){const _=Ki(n).typeParameters;if(Ne(_)>=c.length){const v=Mb(c,_,c.length,a);return Ne(v)===0?d:EN(n,v)}}if(Ne(d.typeParameters)>=c.length){const _=Mb(c,d.typeParameters,c.length,a);return uy(d,_)}}function hft(n){const a=X1(of.IntrinsicElements,n);return a?gs(a):et}function gft(n){(V.jsx||0)===0&&qe(n,f.Cannot_use_JSX_unless_the_jsx_flag_is_provided),j9(n)===void 0&&de&&qe(n,f.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function Xve(n){const a=ld(n);if(a&&uyt(n),gft(n),!Kve(n)){const c=ts&&V.jsx===2?f.Cannot_find_name_0:void 0,d=B0(n),_=a?n.tagName:n;let v;if(lI(n)&&d==="null"||(v=yl(_,d,111551,c,d,!0)),v&&(v.isReferenced=-1,It&&v.flags&2097152&&!Of(v)&&gb(v)),lI(n)){const x=Un(n),k=JI(x);k&&yl(_,k,111551,c,k,!0)}}if(a){const c=n,d=PN(c);Wee(d,n);const _=_ft(c);if(_!==void 0){const v=c.tagName,x=_x(v)?Xd(AU(v)):mo(v);jf(x,_,qd,v,f.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const k=fc(v);return Vo(void 0,f._0_cannot_be_used_as_a_JSX_component,k)})}else mft(u3e(c),ps(d),c)}}function Yve(n,a,c){if(n.flags&524288){if(rE(n,a)||cx(n,a)||b8(a)&&Sg(n,ke)||c&&Jve(a))return!0}else if(n.flags&3145728&&U9(n)){for(const d of n.types)if(Yve(d,a,c))return!0}return!1}function U9(n){return!!(n.flags&524288&&!(Wr(n)&512)||n.flags&67108864||n.flags&1048576&&bt(n.types,U9)||n.flags&2097152&&Jn(n.types,U9))}function vft(n,a){if(pyt(n),n.expression){const c=mo(n.expression,a);return n.dotDotDotToken&&c!==j&&!Uf(c)&&qe(n,f.JSX_spread_child_must_be_an_array_type),c}else return _t}function $ve(n){return n.valueDeclaration?eS(n.valueDeclaration):0}function Qve(n){if(n.flags&8192||xl(n)&4)return!0;if(lr(n.valueDeclaration)){const a=n.valueDeclaration.parent;return a&&mr(a)&&zl(a)===3}}function Zve(n,a,c,d,_,v=!0){const x=v?n.kind===166?n.right:n.kind===205?n:n.kind===208&&n.propertyName?n.propertyName:n.name:void 0;return G4e(n,a,c,d,_,x)}function G4e(n,a,c,d,_,v){var x;const k=xf(_,c);if(a){if(se<2&&V4e(_))return v&&qe(v,f.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(k&64)return v&&qe(v,f.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Si(_),Hn(mx(_))),!1;if(!(k&256)&&((x=_.declarations)!=null&&x.some(ure)))return v&&qe(v,f.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,Si(_)),!1}if(k&64&&V4e(_)&&(PL(n)||lie(n)||im(n.parent)&&q4(n.parent.parent))){const H=Wg(Cd(_));if(H&&cvt(n))return v&&qe(v,f.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Si(_),Qf(H.name)),!1}if(!(k&6))return!0;if(k&2){const H=Wg(Cd(_));return tbe(n,H)?!0:(v&&qe(v,f.Property_0_is_private_and_only_accessible_within_class_1,Si(_),Hn(mx(_))),!1)}if(a)return!0;let F=oFe(n,H=>{const re=Zs(Ir(H));return h6e(re,_,c)});return!F&&(F=yft(n),F=F&&h6e(F,_,c),k&256||!F)?(v&&qe(v,f.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Si(_),Hn(mx(_)||d)),!1):k&256?!0:(d.flags&262144&&(d=d.isThisType?Md(d):Gu(d)),!d||!_N(d,F)?(v&&qe(v,f.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Si(_),Hn(F),Hn(d)),!1):!0)}function yft(n){const a=bft(n);let c=(a==null?void 0:a.type)&&Ti(a.type);if(c&&c.flags&262144&&(c=Md(c)),c&&Wr(c)&7)return ly(c)}function bft(n){const a=Fd(n,!1,!1);return a&&ea(a)?BE(a):void 0}function V4e(n){return!!I9(n,a=>!(a.flags&8192))}function NN(n){return Q_(mo(n),n)}function H9(n){return fm(n,50331648)}function eye(n){return H9(n)?hv(n):n}function Eft(n,a){const c=Bl(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 Sft(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 j4e(n,a,c){if(X&&n.flags&2){if(Bl(a)){const _=fp(a);if(_.length<100)return qe(a,f._0_is_of_type_unknown,_),_t}return qe(a,f.Object_is_of_type_unknown),_t}const d=$M(n,50331648);if(d&50331648){c(a,d);const _=hv(n);return _.flags&229376?_t:_}return n}function Q_(n,a){return j4e(n,a,Eft)}function U4e(n,a){const c=Q_(n,a);if(c.flags&16384){if(Bl(a)){const 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 xee(n,a,c){return n.flags&64?Tft(n,a):nye(n,n.expression,NN(n.expression),n.name,a,c)}function Tft(n,a){const c=mo(n.expression),d=W8(c,n.expression);return tee(nye(n,n.expression,Q_(d,n.expression),n.name,a),n,d!==c)}function H4e(n,a){const c=Y4(n)&&VE(n.left)?Q_(F9(n.left),n.left):NN(n.left);return nye(n,n.left,c,n.right,a)}function q4e(n){for(;n.parent.kind===217;)n=n.parent;return S_(n.parent)&&n.parent.expression===n}function Ree(n,a){for(let c=U4(a);c;c=au(c)){const{symbol:d}=c,_=ek(d,n),v=d.members&&d.members.get(_)||d.exports&&d.exports.get(_);if(v)return v}}function Aft(n){if(!au(n))return Sn(n,f.Private_identifiers_are_not_allowed_outside_class_bodies);if(!KW(n.parent)){if(!Qh(n))return Sn(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);const a=mr(n.parent)&&n.parent.operatorToken.kind===103;if(!Dee(n)&&!a)return Sn(n,f.Cannot_find_name_0,Er(n))}return!1}function Ift(n){Aft(n);const a=Dee(n);return a&&J9(a,void 0,!1),j}function Dee(n){if(!Qh(n))return;const a=Zr(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=Ree(n.escapedText,n)),a.resolvedSymbol}function tye(n,a){return va(n,a.escapedName)}function xft(n,a,c){let d;const _=gs(n);_&&Xe(_,x=>{const k=x.valueDeclaration;if(k&&ad(k)&&qi(k.name)&&k.name.escapedText===a.escapedText)return d=x,!0});const v=km(a);if(d){const x=N.checkDefined(d.valueDeclaration),k=N.checkDefined(au(x));if(c!=null&&c.valueDeclaration){const F=c.valueDeclaration,H=au(F);if(N.assert(!!H),Vn(H,re=>k===re)){const 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,v,Hn(n));return Ma(re,kr(F,f.The_shadowing_declaration_of_0_is_defined_here,v),kr(x,f.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,v)),!0}}return qe(a,f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,v,km(k.name||OF)),!0}return!1}function J4e(n,a){return(pN(a)||PL(n)&&kM(a))&&Fd(n,!0,!1)===wM(a)}function nye(n,a,c,d,_,v){const x=Zr(a).resolvedSymbol,k=MA(n),F=Ld(k!==0||q4e(n)?Kp(c):c),H=Nt(F)||F===vo;let re;if(qi(d)){se<99&&(k!==0&&Dc(n,1048576),k!==1&&Dc(n,524288));const ge=Ree(d.escapedText,d);if(k&&ge&&ge.valueDeclaration&&Hl(ge.valueDeclaration)&&Sn(d,f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,Er(d)),H){if(ge)return Jt(F)?_t:F;if(U4(d)===void 0)return Sn(d,f.Private_identifiers_are_not_allowed_outside_class_bodies),j}if(re=ge&&tye(c,ge),re===void 0){if(xft(c,d,ge))return _t;const Je=U4(d);Je&&bL(Un(Je),V.checkJs)&&Sn(d,f.Private_field_0_must_be_declared_in_an_enclosing_class,Er(d))}else re.flags&65536&&!(re.flags&32768)&&k!==1&&qe(n,f.Private_accessor_was_defined_without_a_getter)}else{if(H)return Ve(a)&&x&&vee(x,n),Jt(F)?_t:F;re=va(F,d.escapedText,Bee(F),n.kind===166)}Ve(a)&&x&&(rm(V)||!(re&&(i6(re)||re.flags&8&&n.parent.kind===306))||KE(V)&&p4e(n))&&vee(x,n);let be;if(re){const ge=Qye(re,d);if(ub(ge)&&kge(n,ge)&&ge.declarations&&iy(d,ge.declarations,d.escapedText),Rft(re,n,d),J9(re,n,e3e(a,x)),Zr(n).resolvedSymbol=re,Zve(n,a.kind===108,WA(n),F,re),j3e(n,re,k))return qe(d,f.Cannot_assign_to_0_because_it_is_a_read_only_property,Er(d)),_t;be=J4e(n,re)?it:v||x3(n)?F1(re):dr(re)}else{const ge=!qi(d)&&(k===0||!HT(c)||nP(c))?cx(F,d.escapedText):void 0;if(!(ge&&ge.type)){const Je=rye(n,c.symbol,!0);return!Je&&D8(c)?j:c.symbol===ot?(ot.exports.has(d.escapedText)&&ot.exports.get(d.escapedText).flags&418?qe(d,f.Property_0_does_not_exist_on_type_1,Vi(d.escapedText),Hn(c)):de&&qe(d,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Hn(c)),j):(d.escapedText&&!vT(n)&&Y4e(d,nP(c)?F:c,Je),_t)}ge.isReadonly&&(eg(n)||Rj(n))&&qe(n,f.Index_signature_in_type_0_only_permits_reading,Hn(F)),be=V.noUncheckedIndexedAccess&&!eg(n)?ei([ge.type,L]):ge.type,V.noPropertyAccessFromIndexSignature&&Fr(n)&&qe(d,f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Vi(d.escapedText)),ge.declaration&&ry(ge.declaration)&&iy(d,[ge.declaration],d.escapedText)}return K4e(n,re,be,d,_)}function rye(n,a,c){var d;const _=Un(n);if(_&&V.checkJs===void 0&&_.checkJsDirective===void 0&&(_.scriptKind===1||_.scriptKind===2)){const v=Xe(a==null?void 0:a.declarations,Un),x=!(a!=null&&a.valueDeclaration)||!di(a.valueDeclaration)||((d=a.valueDeclaration.heritageClauses)==null?void 0:d.length)||Lv(!1,a.valueDeclaration);return!(_!==v&&v&&Ch(v))&&!(c&&a&&a.flags&32&&x)&&!(n&&c&&Fr(n)&&n.expression.kind===110&&x)}return!1}function K4e(n,a,c,d,_){const v=MA(n);if(v===1)return Gb(c,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&c.flags&1048576)&&!tte(a.declarations))return c;if(c===it)return fN(n,a);c=Mve(c,n,_);let x=!1;if(X&&Ce&&ws(n)&&n.expression.kind===110){const F=a&&a.valueDeclaration;if(F&&qWe(F)&&!aa(F)){const H=j8(n);H.kind===176&&H.parent===F.parent&&!(F.flags&33554432)&&(x=!0)}}else X&&a&&a.valueDeclaration&&Fr(a.valueDeclaration)&&GL(a.valueDeclaration)&&j8(n)===j8(a.valueDeclaration)&&(x=!0);const k=Vb(n,c,x?Bb(c):c);return x&&!HM(c)&&HM(k)?(qe(d,f.Property_0_is_used_before_being_assigned,Si(a)),c):v?_v(k):k}function Rft(n,a,c){const{valueDeclaration:d}=n;if(!d||Un(a).isDeclarationFile)return;let _;const v=Er(c);X4e(a)&&!_lt(d)&&!(ws(a)&&ws(a.expression))&&!Zg(d,c)&&!(Hl(d)&&ute(d)&256)&&(he||!Dft(n))?_=qe(c,f.Property_0_is_used_before_its_initialization,v):d.kind===263&&a.parent.kind!==183&&!(d.flags&33554432)&&!Zg(d,c)&&(_=qe(c,f.Class_0_used_before_its_declaration,v)),_&&Ma(_,kr(d,f._0_is_declared_here,v))}function X4e(n){return!!Vn(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 Ko(a.parent)&&Rl(a.parent.parent)?!0:"quit";default:return Qh(a)?!1:"quit"}})}function Dft(n){if(!(n.parent.flags&32))return!1;let a=dr(n.parent);for(;;){if(a=a.symbol&&Nft(a),!a)return!1;const c=va(a,n.escapedName);if(c&&c.valueDeclaration)return!0}}function Nft(n){const a=Cp(n);if(a.length!==0)return ya(a)}function Y4e(n,a,c){let d,_;if(!qi(n)&&a.flags&1048576&&!(a.flags&402784252)){for(const x of a.types)if(!va(x,n.escapedText)&&!cx(x,n.escapedText)){d=Vo(d,f.Property_0_does_not_exist_on_type_1,xs(n),Hn(x));break}}if($4e(n.escapedText,a)){const x=xs(n),k=Hn(a);d=Vo(d,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,x,k,k+"."+x)}else{const x=Q8(a);if(x&&va(x,n.escapedText))d=Vo(d,f.Property_0_does_not_exist_on_type_1,xs(n),Hn(a)),_=kr(n,f.Did_you_forget_to_use_await);else{const k=xs(n),F=Hn(a),H=Mft(k,a);if(H!==void 0)d=Vo(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,k,F,H);else{const re=iye(n,a);if(re!==void 0){const be=El(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=Vo(d,ge,k,F,be),_=re.valueDeclaration&&kr(re.valueDeclaration,f._0_is_declared_here,be)}else{const be=Cft(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=Vo(tge(d,a),be,k,F)}}}}const v=Lg(Un(n),n,d);_&&Ma(v,_),i_(!c||d.code!==f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,v)}function Cft(n){return V.lib&&!V.lib.includes("dom")&&Vdt(n,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Vi(a.symbol.escapedName)))&&mv(n)}function $4e(n,a){const c=a.symbol&&va(dr(a.symbol),n);return c!==void 0&&!!c.valueDeclaration&&aa(c.valueDeclaration)}function Pft(n){const a=km(n),d=eW().get(a);return d&&jB(d.keys())}function Mft(n,a){const c=Ld(a).symbol;if(!c)return;const d=El(c),v=eW().get(d);if(v){for(const[x,k]of v)if(Or(k,n))return x}}function Q4e(n,a){return q9(n,gs(a),106500)}function iye(n,a){let c=gs(a);if(typeof n!="string"){const d=n.parent;Fr(d)&&(c=mn(c,_=>t3e(d,a,_))),n=Er(n)}return q9(n,c,111551)}function Z4e(n,a){const c=Mo(n)?n:Er(n),d=gs(a);return(c==="for"?In(d,v=>El(v)==="htmlFor"):c==="class"?In(d,v=>El(v)==="className"):void 0)??q9(c,d,111551)}function oye(n,a){const c=iye(n,a);return c&&El(c)}function aye(n,a,c){return N.assert(a!==void 0,"outername should always be defined"),jp(n,a,c,void 0,a,!1,!1,!0,(_,v,x)=>{N.assertEqual(a,v,"name should equal outerName");const k=Jd(_,v,x);if(k)return k;let F;return _===Se?F=eo(["string","number","boolean","object","bigint","symbol"],re=>_.has(re.charAt(0).toUpperCase()+re.slice(1))?Ka(524288,re):void 0).concat(zo(_.values())):F=zo(_.values()),q9(Vi(v),F,x)})}function Lft(n,a,c){const d=aye(n,a,c);return d&&El(d)}function Nee(n,a){return a.exports&&q9(Er(n),NT(a),2623475)}function kft(n,a){const c=Nee(n,a);return c&&El(c)}function wft(n,a,c){function d(x){const k=rE(n,x);if(k){const F=rA(dr(k));return!!F&&th(F)>=1&&ba(c,h_(F,0))}return!1}const _=eg(a)?"set":"get";if(!d(_))return;let v=ck(a.expression);return v===void 0?v=_:v+="."+_,v}function Oft(n,a){const c=a.types.filter(d=>!!(d.flags&128));return KN(n.value,c,d=>d.value)}function q9(n,a,c){return KN(n,a,d);function d(_){const v=El(_);if(!uo(v,'"')){if(_.flags&c)return v;if(_.flags&2097152){const x=xT(_);if(x&&x.flags&c)return v}}}}function J9(n,a,c){const d=n&&n.flags&106500&&n.valueDeclaration;if(!d)return;const _=_p(d,2),v=n.valueDeclaration&&ad(n.valueDeclaration)&&qi(n.valueDeclaration.name);if(!(!_&&!v)&&!(a&&x3(a)&&!(n.flags&65536))){if(c){const x=Vn(a,Bs);if(x&&x.symbol===n)return}(xl(n)&1?Ki(n).target:n).isReferenced=-1}}function e3e(n,a){return n.kind===110||!!a&&Bl(n)&&a===Bm(Gp(n))}function Wft(n,a){switch(n.kind){case 211:return sye(n,n.expression.kind===108,a,Kp(mo(n.expression)));case 166:return sye(n,!1,a,Kp(mo(n.left)));case 205:return sye(n,!1,a,Ti(n))}}function t3e(n,a,c){return lye(n,n.kind===211&&n.expression.kind===108,!1,a,c)}function sye(n,a,c,d){if(Nt(d))return!0;const _=va(d,c);return!!_&&lye(n,a,!1,d,_)}function lye(n,a,c,d,_){if(Nt(d))return!0;if(_.valueDeclaration&&sd(_.valueDeclaration)){const v=au(_.valueDeclaration);return!qu(n)&&!!Vn(n,x=>x===v)}return G4e(n,a,c,d,_)}function Fft(n){const a=n.initializer;if(a.kind===261){const c=a.declarations[0];if(c&&!ta(c.name))return Ir(c)}else if(a.kind===80)return Bm(a)}function zft(n){return gd(n).length===1&&!!Sg(n,Tt)}function Bft(n){const a=hs(n);if(a.kind===80){const c=Bm(a);if(c.flags&3){let d=n,_=n.parent;for(;_;){if(_.kind===249&&d===_.statement&&Fft(_)===c&&zft(Ru(_.expression)))return!0;d=_,_=_.parent}}}return!1}function Gft(n,a){return n.flags&64?Vft(n,a):n3e(n,NN(n.expression),a)}function Vft(n,a){const c=mo(n.expression),d=W8(c,n.expression);return tee(n3e(n,Q_(d,n.expression),a),n,d!==c)}function n3e(n,a,c){const d=MA(n)!==0||q4e(n)?Kp(a):a,_=n.argumentExpression,v=mo(_);if(Jt(d)||d===vo)return d;if(Bee(d)&&!ls(_))return qe(_,f.A_const_enum_member_can_only_be_accessed_using_a_string_literal),_t;const x=Bft(_)?Tt:v,k=eg(n)?4|(HT(d)&&!nP(d)?2:0):32,F=kb(d,x,k,n)||_t;return uWe(K4e(n,Zr(n).resolvedSymbol,F,_,c),n)}function r3e(n){return S_(n)||QE(n)||ld(n)}function nA(n){return r3e(n)&&Xe(n.typeArguments,Ra),n.kind===215?mo(n.template):ld(n)?mo(n.attributes):mr(n)?mo(n.left):S_(n)&&Xe(n.arguments,a=>{mo(a)}),Et}function Z_(n){return nA(n),un}function jft(n,a,c){let d,_,v=0,x,k=-1,F;N.assert(!a.length);for(const H of n){const re=H.declaration&&Ir(H.declaration),be=H.declaration&&H.declaration.parent;!_||re===_?d&&be===d?x=x+1:(d=be,x=v):(x=v=a.length,d=be),_=re,Iq(H)?(k++,F=k,v++):F=x,a.splice(F,0,c?Wst(H,c):H)}}function Cee(n){return!!n&&(n.kind===230||n.kind===237&&n.isSpread)}function Pee(n){return mi(n,Cee)}function i3e(n){return!!(n.flags&16384)}function Uft(n){return!!(n.flags&49155)}function Mee(n,a,c,d=!1){let _,v=!1,x=Xp(c),k=th(c);if(n.kind===215)if(_=a.length,n.template.kind===228){const F=Xa(n.template.templateSpans);v=Fl(F.literal)||!!F.literal.isUnterminated}else{const F=n.template;N.assert(F.kind===15),v=!!F.isUnterminated}else if(n.kind===170)_=p3e(n,c);else if(n.kind===226)_=1;else if(ld(n)){if(v=n.attributes.end===n.end,v)return!0;_=k===0?a.length:1,x=a.length===0?x:1,k=Math.min(k,1)}else if(n.arguments){_=d?a.length+1:a.length,v=n.arguments.end===n.end;const F=Pee(a);if(F>=0)return F>=th(c)&&(jh(c)||F<Xp(c))}else return N.assert(n.kind===214),th(c)===0;if(!jh(c)&&_>x)return!1;if(v||_>=k)return!0;for(let F=_;F<k;F++){const H=h_(c,F);if(dc(H,lr(n)&&!X?Uft:i3e).flags&131072)return!1}return!0}function cye(n,a){const c=Ne(n.typeParameters),d=zh(n.typeParameters);return!bt(a)||a.length>=d&&a.length<=c}function o3e(n,a){let c;return!!(n.target&&(c=Y1(n.target,a))&&AN(c))}function rA(n){return q8(n,0,!1)}function a3e(n){return q8(n,0,!1)||q8(n,1,!1)}function q8(n,a,c){if(n.flags&524288){const d=p_(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 s3e(n,a,c,d){const _=B8(n.typeParameters,n,0,d),v=J8(a),x=c&&(v&&v.flags&262144?c.nonFixingMapper:c.mapper),k=x?xN(a,x):a;return cve(k,n,(F,H)=>{gv(_.inferences,F,H)}),c||uve(a,n,(F,H)=>{gv(_.inferences,F,H,128)}),A8(n,Sve(_),lr(a.declaration))}function Hft(n,a,c,d){const _=Tee(a,n),v=MN(n.attributes,_,d,c);return gv(d.inferences,v,_),Sve(d)}function l3e(n){if(!n)return ir;const a=mo(n);return jie(n)?a:sC(n.parent)?hv(a):qu(n.parent)?eee(a):a}function uye(n,a,c,d,_){if(ld(n))return Hft(n,a,d,_);if(n.kind!==170&&n.kind!==226){const F=Jn(a.typeParameters,re=>!!GT(re)),H=Yd(n,F?8:0);if(H){const re=ps(a);if(dE(re)){const be=K1(n);if(!(!F&&Yd(n,8)!==H)){const Dt=mve(idt(be,1)),an=lo(H,Dt),cn=rA(an),ar=cn&&cn.typeParameters?VT(lge(cn,cn.typeParameters)):an;gv(_.inferences,ar,re,128)}const Je=B8(a.typeParameters,a,_.flags),gt=lo(H,be&&be.returnMapper);gv(Je.inferences,gt,re),_.returnMapper=bt(Je.inferences,LN)?mve(ldt(Je)):void 0}}}const v=K8(a),x=v?Math.min(Xp(a)-1,c.length):c.length;if(v&&v.flags&262144){const F=In(_.inferences,H=>H.typeParameter===v);F&&(F.impliedArity=mi(c,Cee,x)<0?c.length-x:void 0)}const k=oE(a);if(k&&dE(k)){const F=d3e(n);gv(_.inferences,l3e(F),k)}for(let F=0;F<x;F++){const H=c[F];if(H.kind!==232){const re=h_(a,F);if(dE(re)){const be=MN(H,re,_,d);gv(_.inferences,be,re)}}}if(v&&dE(v)){const F=dye(c,x,c.length,v,_,d);gv(_.inferences,F,v)}return Sve(_)}function c3e(n){return n.flags&1048576?dl(n,c3e):n.flags&1||R9(Gu(n)||n)?n:Wa(n)?Gh(G1(n),n.target.elementFlags,!1,n.target.labeledElementDeclarations):Gh([n],[8])}function dye(n,a,c,d,_,v){const x=BT(d);if(a>=c-1){const re=n[c-1];if(Cee(re)){const be=re.kind===237?re.type:MN(re.expression,d,_,v);return my(be)?c3e(be):Vu(hy(33,be,Oe,re.kind===230?re.expression:re),x)}}const k=[],F=[],H=[];for(let re=a;re<c;re++){const be=n[re];if(Cee(be)){const ge=be.kind===237?be.type:mo(be.expression);my(ge)?(k.push(ge),F.push(8)):(k.push(hy(33,ge,Oe,be.kind===230?be.expression:be)),F.push(4))}else{const ge=Wa(d)?Vve(d,re-a,c-a)||hn:Pp(d,m_(re-a),256),Je=MN(be,ge,_,v),gt=x||Cl(ge,406978556);k.push(gt?yd(Je):q1(Je)),F.push(1)}be.kind===237&&be.tupleNameSource?H.push(be.tupleNameSource):H.push(void 0)}return Gh(k,F,x&&!Gm(d,rve),H)}function pye(n,a,c,d){const _=lr(n.declaration),v=n.typeParameters,x=Mb(Wt(a,Ti),v,zh(v),_);let k;for(let F=0;F<a.length;F++){N.assert(v[F]!==void 0,"Should not call checkTypeArguments with too many type arguments");const H=Md(v[F]);if(H){const re=c&&d?()=>Vo(void 0,f.Type_0_does_not_satisfy_the_constraint_1):void 0,be=d||f.Type_0_does_not_satisfy_the_constraint_1;k||(k=Mp(v,x));const ge=x[F];if(!nd(ge,Jp(lo(H,k),ge),c?a[F]:void 0,be,re))return}}return x}function u3e(n){if(_x(n.tagName))return 2;const a=Ld(mo(n.tagName));return Ne(Xo(a,1))?0:Ne(Xo(a,0))?1:2}function qft(n,a,c,d,_,v,x){const k=Tee(a,n),F=MN(n.attributes,k,void 0,d),H=d&4?z8(F):F;return re()&&Kge(H,k,c,_?n.tagName:void 0,n.attributes,void 0,v,x);function re(){var be;if(Kve(n))return!0;const ge=(k_(n)||GS(n))&&!(_x(n.tagName)||Qm(n.tagName))?mo(n.tagName):void 0;if(!ge)return!0;const Je=Xo(ge,0);if(!Ne(Je))return!0;const gt=gFe(n);if(!gt)return!0;const Dt=Hs(gt,111551,!0,!1,n);if(!Dt)return!0;const an=dr(Dt),cn=Xo(an,0);if(!Ne(cn))return!0;let ar=!1,Wn=0;for(const Bn of cn){const zn=h_(Bn,0),tr=Xo(zn,0);if(Ne(tr))for(const Kn of tr){if(ar=!0,jh(Kn))return!0;const nr=Xp(Kn);nr>Wn&&(Wn=nr)}}if(!ar)return!0;let ln=1/0;for(const Bn of Je){const zn=th(Bn);zn<ln&&(ln=zn)}if(ln<=Wn)return!0;if(_){const Bn=kr(n.tagName,f.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,fp(n.tagName),ln,fp(gt),Wn),zn=(be=Vm(n.tagName))==null?void 0:be.valueDeclaration;zn&&Ma(Bn,kr(zn,f._0_is_declared_here,fp(n.tagName))),x&&x.skipLogging&&(x.errors||(x.errors=[])).push(Bn),x.skipLogging||ts.add(Bn)}return!1}}function Lee(n){return n=hs(n),lH(n)?hs(n.expression):n}function K9(n,a,c,d,_,v,x){const k={errors:void 0,skipLogging:!0};if(ld(n))return qft(n,c,d,_,v,x,k)?void 0:(N.assert(!v||!!k.errors,"jsx should have errors when reporting errors"),k.errors||et);const F=oE(c);if(F&&F!==ir&&!($E(n)||sa(n)&&zd(n.expression))){const Je=d3e(n),gt=l3e(Je),Dt=v?Je||n:void 0,an=f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!jf(gt,F,d,Dt,an,x,k))return N.assert(!v||!!k.errors,"this parameter should have errors when reporting errors"),k.errors||et}const H=f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,re=K8(c),be=re?Math.min(Xp(c)-1,a.length):a.length;for(let Je=0;Je<be;Je++){const gt=a[Je];if(gt.kind!==232){const Dt=h_(c,Je),an=MN(gt,Dt,void 0,_),cn=_&4?z8(an):an,ar=Lee(gt);if(!Kge(cn,Dt,d,v?ar:void 0,ar,H,x,k))return N.assert(!v||!!k.errors,"parameter should have errors when reporting errors"),ge(gt,cn,Dt),k.errors||et}}if(re){const Je=dye(a,be,a.length,re,void 0,_),gt=a.length-be,Dt=v?gt===0?n:gt===1?Lee(a[be]):gh(X9(n,Je),a[be].pos,a[a.length-1].end):void 0;if(!jf(Je,re,d,Dt,H,void 0,k))return N.assert(!v||!!k.errors,"rest parameter should have errors when reporting errors"),ge(Dt,Je,re),k.errors||et}return;function ge(Je,gt,Dt){if(Je&&v&&k.errors&&k.errors.length){if(a2(Dt))return;const an=a2(gt);an&&$_(an,Dt,d)&&Ma(k.errors[0],kr(Je,f.Did_you_forget_to_use_await))}}}function d3e(n){if(n.kind===226)return n.right;const a=n.kind===213?n.expression:n.kind===215?n.tag:n.kind===170&&!ne?n.expression:void 0;if(a){const c=$l(a);if(ws(c))return c.expression}}function X9(n,a,c,d){const _=Ah.createSyntheticExpression(a,c,d);return dt(_,n),Ha(_,n),_}function kee(n){if(n.kind===215){const d=n.template,_=[X9(d,Mlt())];return d.kind===228&&Xe(d.templateSpans,v=>{_.push(v.expression)}),_}if(n.kind===170)return Jft(n);if(n.kind===226)return[n.left];if(ld(n))return n.attributes.properties.length>0||k_(n)&&n.parent.children.length>0?[n.attributes]:et;const a=n.arguments||et,c=Pee(a);if(c>=0){const d=a.slice(0,c);for(let _=c;_<a.length;_++){const v=a[_],x=v.kind===230&&(ff?mo(v.expression):nc(v.expression));x&&Wa(x)?Xe(G1(x),(k,F)=>{var H;const re=x.target.elementFlags[F],be=X9(v,re&4?Vu(k):k,!!(re&12),(H=x.target.labeledElementDeclarations)==null?void 0:H[F]);d.push(be)}):d.push(v)}return d}return a}function Jft(n){const a=n.expression,c=Aye(n);if(c){const d=[];for(const _ of c.parameters){const v=dr(_);d.push(X9(a,v))}return d}return N.fail()}function p3e(n,a){return V.experimentalDecorators?Kft(n,a):2}function Kft(n,a){switch(n.parent.kind){case 263:case 231:return 1;case 172:return D_(n.parent)?3:2;case 174:case 177:case 178:return se===0||a.parameters.length<=2?2:3;case 169:return 3;default:return N.fail()}}function f3e(n){const a=Un(n),{start:c,length:d}=vS(a,Fr(n.expression)?n.expression.name:n.expression);return{start:c,length:d,sourceFile:a}}function Y9(n,a,...c){if(sa(n)){const{sourceFile:d,start:_,length:v}=f3e(n);return"message"in a?$c(d,_,v,a,...c):cj(d,a)}else return"message"in a?kr(n,a,...c):Lg(Un(n),n,a)}function Xft(n){return S_(n)?Fr(n.expression)?n.expression.name:n.expression:QE(n)?Fr(n.tag)?n.tag.name:n.tag:ld(n)?n.tagName:n}function Yft(n){if(!sa(n)||!Ve(n.expression))return!1;const a=yl(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),c=a==null?void 0:a.valueDeclaration;if(!c||!Ao(c)||!qE(c.parent)||!$E(c.parent.parent)||!Ve(c.parent.parent.expression))return!1;const d=Ege(!1);return d?Vm(c.parent.parent.expression,!0)===d:!1}function m3e(n,a,c,d){var _;const v=Pee(c);if(v>-1)return kr(c[v],f.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let x=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,F=Number.NEGATIVE_INFINITY,H=Number.POSITIVE_INFINITY,re;for(const Dt of a){const an=th(Dt),cn=Xp(Dt);an<x&&(x=an,re=Dt),k=Math.max(k,cn),an<c.length&&an>F&&(F=an),c.length<cn&&cn<H&&(H=cn)}const be=bt(a,jh),ge=be?x:x<k?x+"-"+k:x,Je=!be&&ge===1&&c.length===0&&Yft(n);if(Je&&lr(n))return Y9(n,f.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);const gt=Eu(n)?be?f.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:f.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:be?f.Expected_at_least_0_arguments_but_got_1:Je?f.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:f.Expected_0_arguments_but_got_1;if(x<c.length&&c.length<k){if(d){let Dt=Vo(void 0,f.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,c.length,F,H);return Dt=Vo(Dt,d),Y9(n,Dt)}return Y9(n,f.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,c.length,F,H)}else if(c.length<x){let Dt;if(d){let cn=Vo(void 0,gt,ge,c.length);cn=Vo(cn,d),Dt=Y9(n,cn)}else Dt=Y9(n,gt,ge,c.length);const an=(_=re==null?void 0:re.declaration)==null?void 0:_.parameters[re.thisParameter?c.length+1:c.length];if(an){const cn=ta(an.name)?[f.An_argument_matching_this_binding_pattern_was_not_provided]:Xh(an)?[f.Arguments_for_the_rest_parameter_0_were_not_provided,Er(Gp(an.name))]:[f.An_argument_for_0_was_not_provided,an.name?Er(Gp(an.name)):c.length],ar=kr(an,...cn);return Ma(Dt,ar)}return Dt}else{const Dt=w.createNodeArray(c.slice(k)),an=Ua(Dt).pos;let cn=Xa(Dt).end;if(cn===an&&cn++,gh(Dt,an,cn),d){let ar=Vo(void 0,gt,ge,c.length);return ar=Vo(ar,d),IL(Un(n),Dt,ar)}return rR(Un(n),Dt,gt,ge,c.length)}}function $ft(n,a,c,d){const _=c.length;if(a.length===1){const k=a[0],F=zh(k.typeParameters),H=Ne(k.typeParameters);if(d){let re=Vo(void 0,f.Expected_0_type_arguments_but_got_1,F<H?F+"-"+H:F,_);return re=Vo(re,d),IL(Un(n),c,re)}return rR(Un(n),c,f.Expected_0_type_arguments_but_got_1,F<H?F+"-"+H:F,_)}let v=-1/0,x=1/0;for(const k of a){const F=zh(k.typeParameters),H=Ne(k.typeParameters);F>_?x=Math.min(x,F):H<_&&(v=Math.max(v,H))}if(v!==-1/0&&x!==1/0){if(d){let k=Vo(void 0,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,v,x);return k=Vo(k,d),IL(Un(n),c,k)}return rR(Un(n),c,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,v,x)}if(d){let k=Vo(void 0,f.Expected_0_type_arguments_but_got_1,v===-1/0?x:v,_);return k=Vo(k,d),IL(Un(n),c,k)}return rR(Un(n),c,f.Expected_0_type_arguments_but_got_1,v===-1/0?x:v,_)}function CN(n,a,c,d,_,v){const x=n.kind===215,k=n.kind===170,F=ld(n),H=n.kind===226,re=!U&&!c;let be;!k&&!H&&!yS(n)&&(be=n.typeArguments,(x||F||n.expression.kind!==108)&&Xe(be,Ra));const ge=c||[];jft(a,ge,_),N.assert(ge.length,"Revert #54442 and add a testcase with whatever triggered this");const Je=kee(n),gt=ge.length===1&&!ge[0].typeParameters;let Dt=!k&&!gt&&bt(Je,Vf)?4:0,an,cn,ar,Wn;const ln=!!(d&16)&&n.kind===213&&n.arguments.hasTrailingComma;if(ge.length>1&&(Wn=zn(ge,Nh,gt,ln)),Wn||(Wn=zn(ge,qd,gt,ln)),Wn)return Wn;if(Wn=Qft(n,ge,Je,!!c,d),Zr(n).resolvedSignature=Wn,re)if(!v&&H&&(v=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),an)if(an.length===1||an.length>3){const tr=an[an.length-1];let Kn;an.length>3&&(Kn=Vo(Kn,f.The_last_overload_gave_the_following_error),Kn=Vo(Kn,f.No_overload_matches_this_call)),v&&(Kn=Vo(Kn,v));const nr=K9(n,Je,tr,qd,0,!0,()=>Kn);if(nr)for(const Ro of nr)tr.declaration&&an.length>3&&Ma(Ro,kr(tr.declaration,f.The_last_overload_is_declared_here)),Bn(tr,Ro),ts.add(Ro);else N.fail("No error for last overload signature")}else{const tr=[];let Kn=0,nr=Number.MAX_VALUE,Ro=0,Eo=0;for(const up of an){const er=K9(n,Je,up,qd,0,!0,()=>Vo(void 0,f.Overload_0_of_1_2_gave_the_following_error,Eo+1,ge.length,kh(up)));er?(er.length<=nr&&(nr=er.length,Ro=Eo),Kn=Math.max(Kn,er.length),tr.push(er)):N.fail("No error for 3 or fewer overload signatures"),Eo++}const Bo=Kn>1?tr[Ro]:Cs(tr);N.assert(Bo.length>0,"No errors reported for 3 or fewer overload signatures");let _o=Vo(Wt(Bo,Jre),f.No_overload_matches_this_call);v&&(_o=Vo(_o,v));const Nc=[...Do(Bo,up=>up.relatedInformation)];let Hf;if(Jn(Bo,up=>up.start===Bo[0].start&&up.length===Bo[0].length&&up.file===Bo[0].file)){const{file:up,start:On,length:er}=Bo[0];Hf={file:up,start:On,length:er,code:_o.code,category:_o.category,messageText:_o,relatedInformation:Nc}}else Hf=Lg(Un(n),Xft(n),_o,Nc);Bn(an[0],Hf),ts.add(Hf)}else if(cn)ts.add(m3e(n,[cn],Je,v));else if(ar)pye(ar,n.typeArguments,!0,v);else{const tr=mn(a,Kn=>cye(Kn,be));tr.length===0?ts.add($ft(n,a,be,v)):ts.add(m3e(n,tr,Je,v))}return Wn;function Bn(tr,Kn){var nr,Ro;const Eo=an,Bo=cn,_o=ar,Nc=((Ro=(nr=tr.declaration)==null?void 0:nr.symbol)==null?void 0:Ro.declarations)||et,up=Nc.length>1?In(Nc,On=>Bs(On)&&Kf(On.body)):void 0;if(up){const On=dm(up),er=!On.typeParameters;zn([On],qd,er)&&Ma(Kn,kr(up,f.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}an=Eo,cn=Bo,ar=_o}function zn(tr,Kn,nr,Ro=!1){if(an=void 0,cn=void 0,ar=void 0,nr){const Eo=tr[0];if(bt(be)||!Mee(n,Je,Eo,Ro))return;if(K9(n,Je,Eo,Kn,0,!1,void 0)){an=[Eo];return}return Eo}for(let Eo=0;Eo<tr.length;Eo++){const Bo=tr[Eo];if(!cye(Bo,be)||!Mee(n,Je,Bo,Ro))continue;let _o,Nc;if(Bo.typeParameters){let Hf;if(bt(be)){if(Hf=pye(Bo,be,!1),!Hf){ar=Bo;continue}}else Nc=B8(Bo.typeParameters,Bo,lr(n)?2:0),Hf=uye(n,Bo,Je,Dt|8,Nc),Dt|=Nc.flags&4?8:0;if(_o=A8(Bo,Hf,lr(Bo.declaration),Nc&&Nc.inferredTypeParameters),K8(Bo)&&!Mee(n,Je,_o,Ro)){cn=_o;continue}}else _o=Bo;if(K9(n,Je,_o,Kn,Dt,!1,void 0)){(an||(an=[])).push(_o);continue}if(Dt){if(Dt=0,Nc){const Hf=uye(n,Bo,Je,Dt,Nc);if(_o=A8(Bo,Hf,lr(Bo.declaration),Nc.inferredTypeParameters),K8(Bo)&&!Mee(n,Je,_o,Ro)){cn=_o;continue}}if(K9(n,Je,_o,Kn,Dt,!1,void 0)){(an||(an=[])).push(_o);continue}}return tr[Eo]=_o,_o}}}function Qft(n,a,c,d,_){return N.assert(a.length>0),hx(n),d||a.length===1||a.some(v=>!!v.typeParameters)?tmt(n,a,c,_):Zft(a)}function Zft(n){const a=eo(n,F=>F.thisParameter);let c;a.length&&(c=_3e(a,a.map(Z9)));const{min:d,max:_}=Eoe(n,emt),v=[];for(let F=0;F<_;F++){const H=eo(n,re=>Yu(re)?F<re.parameters.length-1?re.parameters[F]:Xa(re.parameters):F<re.parameters.length?re.parameters[F]:void 0);N.assert(H.length!==0),v.push(_3e(H,eo(n,re=>Y1(re,F))))}const x=eo(n,F=>Yu(F)?Xa(F.parameters):void 0);let k=128;if(x.length!==0){const F=Vu(ei(eo(n,KOe),2));v.push(h3e(x,F)),k|=1}return n.some(Iq)&&(k|=2),Eg(n[0].declaration,void 0,c,v,ya(n.map(ps)),void 0,d,k)}function emt(n){const a=n.parameters.length;return Yu(n)?a-1:a}function _3e(n,a){return h3e(n,ei(a,2))}function h3e(n,a){return XT(Ua(n),a)}function tmt(n,a,c,d){const _=imt(a,tn===void 0?c.length:tn),v=a[_],{typeParameters:x}=v;if(!x)return v;const k=r3e(n)?n.typeArguments:void 0,F=k?AZ(v,nmt(k,x,lr(n))):rmt(n,x,v,c,d);return a[_]=F,F}function nmt(n,a,c){const d=n.map(gx);for(;d.length>a.length;)d.pop();for(;d.length<a.length;)d.push(GT(a[d.length])||Md(a[d.length])||Eve(c));return d}function rmt(n,a,c,d,_){const v=B8(a,c,lr(n)?2:0),x=uye(n,c,d,_|4|8,v);return AZ(c,x)}function imt(n,a){let c=-1,d=-1;for(let _=0;_<n.length;_++){const v=n[_],x=Xp(v);if(jh(v)||x>=a)return _;x>d&&(d=x,c=_)}return c}function omt(n,a,c){if(n.expression.kind===108){const F=Wve(n.expression);if(Nt(F)){for(const H of n.arguments)mo(H);return Et}if(!Jt(F)){const H=I_(au(n));if(H){const re=Wh(F,H.typeArguments,H);return CN(n,re,a,c,0)}}return nA(n)}let d,_=mo(n.expression);if(uS(n)){const F=W8(_,n.expression);d=F===_?0:lC(n)?16:8,_=F}else d=0;if(_=j4e(_,n.expression,Sft),_===vo)return vr;const v=Ld(_);if(Jt(v))return Z_(n);const x=Xo(v,0),k=Xo(v,1).length;if($9(_,v,x.length,k))return!Jt(_)&&n.typeArguments&&qe(n,f.Untyped_function_calls_may_not_accept_type_arguments),nA(n);if(!x.length){if(k)qe(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Hn(_));else{let F;if(n.arguments.length===1){const H=Un(n).text;Hu(H.charCodeAt(Pa(H,n.expression.end,!0)-1))&&(F=kr(n.expression,f.Are_you_missing_a_semicolon))}mye(n.expression,v,0,F)}return Z_(n)}return c&8&&!n.typeArguments&&x.some(amt)?(Z3e(n,c),Sr):x.some(F=>lr(F.declaration)&&!!AV(F.declaration))?(qe(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Hn(_)),Z_(n)):CN(n,x,a,c,d)}function amt(n){return!!(n.typeParameters&&ibe(ps(n)))}function $9(n,a,c,d){return Nt(n)||Nt(a)&&!!(n.flags&262144)||!c&&!d&&!(a.flags&1048576)&&!(f_(a).flags&131072)&&ba(n,Ot)}function smt(n,a,c){if(n.arguments&&se<1){const x=Pee(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=NN(n.expression);if(d===vo)return vr;if(d=Ld(d),Jt(d))return Z_(n);if(Nt(d))return n.typeArguments&&qe(n,f.Untyped_function_calls_may_not_accept_type_arguments),nA(n);const _=Xo(d,1);if(_.length){if(!lmt(n,_[0]))return Z_(n);if(g3e(_,k=>!!(k.flags&4)))return qe(n,f.Cannot_create_an_instance_of_an_abstract_class),Z_(n);const x=d.symbol&&Wg(d.symbol);return x&&Qr(x,64)?(qe(n,f.Cannot_create_an_instance_of_an_abstract_class),Z_(n)):CN(n,_,a,c,0)}const v=Xo(d,0);if(v.length){const x=CN(n,v,a,c,0);return de||(x.declaration&&!eh(x.declaration)&&ps(x)!==ir&&qe(n,f.Only_a_void_function_can_be_called_with_the_new_keyword),oE(x)===ir&&qe(n,f.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),x}return mye(n.expression,d,1),Z_(n)}function g3e(n,a){return To(n)?bt(n,c=>g3e(c,a)):n.compositeKind===1048576?bt(n.compositeSignatures,a):a(n)}function fye(n,a){const c=Cp(a);if(!Ne(c))return!1;const d=c[0];if(d.flags&2097152){const _=d.types,v=NOe(_);let x=0;for(const k of d.types){if(!v[x]&&Wr(k)&3&&(k.symbol===n||fye(n,k)))return!0;x++}return!1}return d.symbol===n?!0:fye(n,d)}function lmt(n,a){if(!a||!a.declaration)return!0;const c=a.declaration,d=wA(c,6);if(!d||c.kind!==176)return!0;const _=Wg(c.parent.symbol),v=Zs(c.parent.symbol);if(!tbe(n,_)){const x=au(n);if(x&&d&4){const k=gx(x);if(fye(c.parent.symbol,k))return!0}return d&2&&qe(n,f.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Hn(v)),d&4&&qe(n,f.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Hn(v)),!1}return!0}function v3e(n,a,c){let d;const _=c===0,v=oA(a),x=v&&Xo(v,c).length>0;if(a.flags&1048576){const F=a.types;let H=!1;for(const re of F)if(Xo(re,c).length!==0){if(H=!0,d)break}else if(d||(d=Vo(d,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,Hn(re)),d=Vo(d,_?f.Not_all_constituents_of_type_0_are_callable:f.Not_all_constituents_of_type_0_are_constructable,Hn(a))),H)break;H||(d=Vo(void 0,_?f.No_constituent_of_type_0_is_callable:f.No_constituent_of_type_0_is_constructable,Hn(a))),d||(d=Vo(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,Hn(a)))}else d=Vo(d,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,Hn(a));let k=_?f.This_expression_is_not_callable:f.This_expression_is_not_constructable;if(sa(n.parent)&&n.parent.arguments.length===0){const{resolvedSymbol:F}=Zr(n);F&&F.flags&32768&&(k=f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Vo(d,k),relatedMessage:x?f.Did_you_forget_to_use_await:void 0}}function mye(n,a,c,d){const{messageChain:_,relatedMessage:v}=v3e(n,a,c),x=Lg(Un(n),n,_);if(v&&Ma(x,kr(n,v)),sa(n.parent)){const{start:k,length:F}=f3e(n.parent);x.start=k,x.length=F}ts.add(x),y3e(a,c,d?Ma(x,d):x)}function y3e(n,a,c){if(!n.symbol)return;const d=Ki(n.symbol).originatingImport;if(d&&!zp(d)){const _=Xo(dr(Ki(n.symbol).target),a);if(!_||!_.length)return;Ma(c,kr(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 cmt(n,a,c){const d=mo(n.tag),_=Ld(d);if(Jt(_))return Z_(n);const v=Xo(_,0),x=Xo(_,1).length;if($9(d,_,v.length,x))return nA(n);if(!v.length){if(fd(n.parent)){const k=kr(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 ts.add(k),Z_(n)}return mye(n.tag,_,0),Z_(n)}return CN(n,v,a,c,0)}function umt(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 N.fail()}}function dmt(n,a,c){const d=mo(n.expression),_=Ld(d);if(Jt(_))return Z_(n);const v=Xo(_,0),x=Xo(_,1).length;if($9(d,_,v.length,x))return nA(n);if(mmt(n,v)&&!Gd(n.expression)){const F=fc(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,F),Z_(n)}const k=umt(n);if(!v.length){const F=v3e(n.expression,_,0),H=Vo(F.messageChain,k),re=Lg(Un(n.expression),n.expression,H);return F.relatedMessage&&Ma(re,kr(n.expression,F.relatedMessage)),ts.add(re),y3e(_,0,re),Z_(n)}return CN(n,v,a,c,0,k)}function wee(n,a){const c=tA(n),d=c&&Dp(c),_=d&&Jd(d,of.Element,788968),v=_&&At.symbolToEntityName(_,788968,n),x=w.createFunctionTypeNode(void 0,[w.createParameterDeclaration(void 0,void 0,"props",void 0,At.typeToTypeNode(a,n))],v?w.createTypeReferenceNode(v,void 0):w.createKeywordTypeNode(133)),k=Ka(1,"props");return k.links.type=a,Eg(x,void 0,void 0,[k],_?Zs(_):_t,void 0,1,0)}function pmt(n,a,c){if(_x(n.tagName)){const x=W4e(n),k=wee(n,x);return Fb(MN(n.attributes,Tee(k,n),void 0,0),x,n.tagName,n.attributes),Ne(n.typeArguments)&&(Xe(n.typeArguments,Ra),ts.add(rR(Un(n),n.typeArguments,f.Expected_0_type_arguments_but_got_1,0,Ne(n.typeArguments)))),k}const d=mo(n.tagName),_=Ld(d);if(Jt(_))return Z_(n);const v=w4e(d,n);return $9(d,_,v.length,0)?nA(n):v.length===0?(qe(n.tagName,f.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,fc(n.tagName)),Z_(n)):CN(n,v,a,c,0)}function fmt(n,a,c){const d=mo(n.right);if(!Nt(d)){const _=Dye(d);if(_){const v=Ld(_);if(Jt(v))return Z_(n);const x=Xo(v,0),k=Xo(v,1);if($9(_,v,x.length,k.length))return nA(n);if(x.length)return CN(n,x,a,c,0)}else if(!(ite(d)||Wb(d,Ot)))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),Z_(n)}return Et}function mmt(n,a){return a.length&&Jn(a,c=>c.minArgumentCount===0&&!Yu(c)&&c.parameters.length<p3e(n,c))}function _mt(n,a,c){switch(n.kind){case 213:return omt(n,a,c);case 214:return smt(n,a,c);case 215:return cmt(n,a,c);case 170:return dmt(n,a,c);case 286:case 285:return pmt(n,a,c);case 226:return fmt(n,a,c)}N.assertNever(n,"Branch in 'resolveSignature' should be unreachable.")}function PN(n,a,c){const d=Zr(n),_=d.resolvedSignature;if(_&&_!==Sr&&!a)return _;d.resolvedSignature=Sr;let v=_mt(n,a,c||0);return v!==Sr&&(d.resolvedSignature!==Sr&&(v=d.resolvedSignature),d.resolvedSignature=j_===ff?v:_),v}function eh(n){var a;if(!n||!lr(n))return!1;const c=Tc(n)||Os(n)?n:(Oi(n)||hc(n))&&n.initializer&&Os(n.initializer)?n.initializer:void 0;if(c){if(AV(n))return!0;if(hc(kv(c.parent)))return!1;const d=Ir(c);return!!((a=d==null?void 0:d.members)!=null&&a.size)}return!1}function _ye(n,a){var c,d;if(a){const _=Ki(a);if(!_.inferredClassSymbol||!_.inferredClassSymbol.has(Sa(n))){const v=fh(n)?n:gT(n);return v.exports=v.exports||ca(),v.members=v.members||ca(),v.flags|=a.flags&32,(c=a.exports)!=null&&c.size&&a_(v.exports,a.exports),(d=a.members)!=null&&d.size&&a_(v.members,a.members),(_.inferredClassSymbol||(_.inferredClassSymbol=new Map)).set(Sa(v),v),v}return _.inferredClassSymbol.get(Sa(n))}}function hmt(n){var a;const c=n&&Oee(n,!0),d=(a=c==null?void 0:c.exports)==null?void 0:a.get("prototype"),_=(d==null?void 0:d.valueDeclaration)&&gmt(d.valueDeclaration);return _?Ir(_):void 0}function Oee(n,a){if(!n.parent)return;let c,d;if(Oi(n.parent)&&n.parent.initializer===n){if(!lr(n)&&!(yB(n.parent)&&Bs(n)))return;c=n.parent.name,d=n.parent}else if(mr(n.parent)){const _=n.parent,v=n.parent.operatorToken.kind;if(v===64&&(a||_.right===n))c=_.left,d=c;else if((v===57||v===61)&&(Oi(_.parent)&&_.parent.initializer===_?(c=_.parent.name,d=_.parent):mr(_.parent)&&_.parent.operatorToken.kind===64&&(a||_.parent.right===_)&&(c=_.parent.left,d=c),!c||!TS(c)||!dR(c,_.left)))return}else a&&Tc(n)&&(c=n.name,d=n);if(!(!d||!c||!a&&!u0(n,zy(c))))return _f(d)}function gmt(n){if(!n.parent)return!1;let a=n.parent;for(;a&&a.kind===211;)a=a.parent;if(a&&mr(a)&&zy(a.left)&&a.operatorToken.kind===64){const c=Ej(a);return La(c)&&c}}function vmt(n,a){var c,d,_;vB(n,n.typeArguments);const v=PN(n,void 0,a);if(v===Sr)return vo;if(Wee(v,n),n.expression.kind===108)return ir;if(n.kind===214){const k=v.declaration;if(k&&k.kind!==176&&k.kind!==180&&k.kind!==185&&!(E0(k)&&((d=(c=hR(k))==null?void 0:c.parent)==null?void 0:d.kind)===176)&&!_R(k)&&!eh(k))return de&&qe(n,f.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),j}if(lr(n)&&T3e(n))return qOe(n.arguments[0]);const x=ps(v);if(x.flags&12288&&b3e(n))return Gge(kv(n.parent));if(n.kind===213&&!n.questionDotToken&&n.parent.kind===244&&x.flags&16384&&Gf(v)){if(!FC(n.expression))qe(n.expression,f.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!w9(n)){const k=qe(n.expression,f.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);k9(n.expression,k)}}if(lr(n)){const k=Oee(n,!1);if((_=k==null?void 0:k.exports)!=null&&_.size){const F=Ls(k,k.exports,et,et,et);return F.objectFlags|=4096,ya([x,F])}}return x}function Wee(n,a){if(!(n.flags&128)&&n.declaration&&n.declaration.flags&536870912){const c=Q9(a),d=ck(J4(a));DM(c,n.declaration,d,kh(n))}}function Q9(n){switch(n=hs(n),n.kind){case 213:case 170:case 214:return Q9(n.expression);case 215:return Q9(n.tag);case 286:case 285:return Q9(n.tagName);case 212:return n.argumentExpression;case 211:return n.name;case 183:const a=n;return Id(a.typeName)?a.typeName.right:a;default:return n}}function b3e(n){if(!sa(n))return!1;let a=n.expression;if(Fr(a)&&a.name.escapedText==="for"&&(a=a.expression),!Ve(a)||a.escapedText!=="Symbol")return!1;const c=d8e(!1);return c?c===yl(a,"Symbol",111551,void 0,void 0,!1):!1}function ymt(n){if(kyt(n),n.arguments.length===0)return rB(n,j);const a=n.arguments[0],c=nc(a),d=n.arguments.length>1?nc(n.arguments[1]):void 0;for(let v=2;v<n.arguments.length;++v)nc(n.arguments[v]);if((c.flags&32768||c.flags&65536||!ba(c,ke))&&qe(a,f.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Hn(c)),d){const v=u8e(!0);v!==Ca&&nd(d,N9(v,32768),n.arguments[1])}const _=hd(n,a);if(_){const v=sp(_,a,!0,!1);if(v)return rB(n,E3e(dr(v),v,_,a)||S3e(dr(v),v,_,a))}return rB(n,j)}function hye(n,a,c){const d=ca(),_=Ka(2097152,"default");return _.parent=a,_.links.nameType=Xd("default"),_.links.aliasTarget=Vl(n),d.set("default",_),Ls(c,d,et,et,et)}function E3e(n,a,c,d){if(ay(d)&&n&&!Jt(n)){const v=n;if(!v.defaultOnlyType){const x=hye(a,c);v.defaultOnlyType=x}return v.defaultOnlyType}}function S3e(n,a,c,d){var _;if(Y&&n&&!Jt(n)){const v=n;if(!v.syntheticType){const x=(_=c.declarations)==null?void 0:_.find($i);if(H_(x,c,!1,d)){const F=Ka(2048,"__type"),H=hye(a,c,F);F.links.type=H,v.syntheticType=G9(n)?V1(n,H,F,0,!1):H}else v.syntheticType=n}return v.syntheticType}return n}function T3e(n){if(!Td(n,!0))return!1;if(!Ve(n.expression))return N.fail();const a=yl(n.expression,n.expression.escapedText,111551,void 0,void 0,!0);if(a===vt)return!0;if(a.flags&2097152)return!1;const c=a.flags&16?262:a.flags&3?260:0;if(c!==0){const d=pl(a,c);return!!d&&!!(d.flags&33554432)}return!1}function bmt(n){ayt(n)||vB(n,n.typeArguments),se<2&&Dc(n,262144);const a=PN(n);return Wee(a,n),ps(a)}function Emt(n,a){if(n.kind===216){const c=Un(n);c&&Sc(c.fileName,[".cts",".mts"])&&Sn(n,f.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return A3e(n,a)}function gye(n){switch(n.kind){case 11:case 15:case 9:case 10:case 112:case 97:case 209:case 210:case 228:return!0;case 217:return gye(n.expression);case 224:const a=n.operator,c=n.operand;return a===41&&(c.kind===9||c.kind===10)||a===40&&c.kind===9;case 211:case 212:const d=hs(n.expression),_=Bl(d)?Hs(d,111551,!0):void 0;return!!(_&&_.flags&384)}return!1}function A3e(n,a){const{type:c,expression:d}=I3e(n),_=mo(d,a);if(Pg(c))return gye(d)||qe(d,f.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),yd(_);const v=Zr(n);return v.assertionExpressionType=_,Ra(c),hx(n),Ti(c)}function I3e(n){let a,c;switch(n.kind){case 234:case 216:a=n.type,c=n.expression;break;case 217:a=rF(n),c=n.expression;break}return{type:a,expression:c}}function Smt(n){const{type:a}=I3e(n),c=Gd(n)?a:n,d=Zr(n);N.assertIsDefined(d.assertionExpressionType);const _=z8(_v(d.assertionExpressionType)),v=Ti(a);Jt(v)||r(()=>{const x=Kp(_);jZ(v,x)||l6e(_,v,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 Tmt(n){const a=mo(n.expression),c=W8(a,n.expression);return tee(hv(c),n,c!==a)}function Amt(n){return n.flags&64?Tmt(n):hv(mo(n.expression))}function x3e(n){if(bFe(n),Xe(n.typeArguments,Ra),n.kind===233){const c=kv(n.parent);c.kind===226&&c.operatorToken.kind===104&&WE(n,c.right)&&qe(n,f.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}const a=n.kind===233?mo(n.expression):VE(n.exprName)?F9(n.exprName):mo(n.exprName);return R3e(a,n)}function R3e(n,a){const c=a.typeArguments;if(n===vo||Jt(n)||!bt(c))return n;let d=!1,_;const v=k(n),x=d?_:n;return x&&ts.add(rR(Un(a),c,f.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Hn(x))),v;function k(H){let re=!1,be=!1;const ge=Je(H);return d||(d=be),re&&!be&&(_??(_=H)),ge;function Je(gt){if(gt.flags&524288){const Dt=p_(gt),an=F(Dt.callSignatures),cn=F(Dt.constructSignatures);if(re||(re=Dt.callSignatures.length!==0||Dt.constructSignatures.length!==0),be||(be=an.length!==0||cn.length!==0),an!==Dt.callSignatures||cn!==Dt.constructSignatures){const ar=Ls(Ka(0,"__instantiationExpression"),Dt.members,an,cn,Dt.indexInfos);return ar.objectFlags|=8388608,ar.node=a,ar}}else if(gt.flags&58982400){const Dt=Gu(gt);if(Dt){const an=Je(Dt);if(an!==Dt)return an}}else{if(gt.flags&1048576)return dl(gt,k);if(gt.flags&2097152)return ya(Zo(gt.types,Je))}return gt}}function F(H){const re=mn(H,be=>!!be.typeParameters&&cye(be,c));return Zo(re,be=>{const ge=pye(be,c,!0);return ge?A8(be,ge,lr(be.declaration)):be})}}function Imt(n){return Ra(n.type),vye(n.expression,n.type)}function vye(n,a,c){const d=mo(n,c),_=Ti(a);if(Jt(_))return _;const v=Vn(a.parent,x=>x.kind===238||x.kind===357);return Fb(d,_,v,n,f.Type_0_does_not_satisfy_the_expected_type_1),d}function xmt(n){return Syt(n),n.keywordToken===105?yye(n):n.keywordToken===102?Rmt(n):N.assertNever(n.keywordToken)}function D3e(n){switch(n.keywordToken){case 102:return c8e();case 105:const a=yye(n);return Jt(a)?_t:Umt(a);default:N.assertNever(n.keywordToken)}}function yye(n){const a=sie(n);if(a)if(a.kind===176){const c=Ir(a.parent);return dr(c)}else{const c=Ir(a);return dr(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"),_t}function Rmt(n){G===100||G===199?Un(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);const a=Un(n);return N.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?l8e():_t}function Z9(n){const a=n.valueDeclaration;return lp(dr(n),!1,!!a&&(Ly(a)||rP(a)))}function bye(n,a,c="arg"){return n?(N.assert(Ve(n.name)),n.name.escapedText):`${c}_${a}`}function n2(n,a,c){const d=n.parameters.length-(Yu(n)?1:0);if(a<d)return n.parameters[a].escapedName;const _=n.parameters[d]||ft,v=c||dr(_);if(Wa(v)){const x=v.target.labeledElementDeclarations,k=a-d;return bye(x==null?void 0:x[k],k,_.escapedName)}return _.escapedName}function Dmt(n,a){var c;if(((c=n.declaration)==null?void 0:c.kind)===324)return;const d=n.parameters.length-(Yu(n)?1:0);if(a<d){const k=n.parameters[a],F=N3e(k);return F?{parameter:F,parameterName:k.escapedName,isRestParameter:!1}:void 0}const _=n.parameters[d]||ft,v=N3e(_);if(!v)return;const x=dr(_);if(Wa(x)){const k=x.target.labeledElementDeclarations,F=a-d,H=k==null?void 0:k[F],re=!!(H!=null&&H.dotDotDotToken);return H?(N.assert(Ve(H.name)),{parameter:H.name,parameterName:H.name.escapedText,isRestParameter:re}):void 0}if(a===d)return{parameter:v,parameterName:_.escapedName,isRestParameter:!0}}function N3e(n){return n.valueDeclaration&&Ao(n.valueDeclaration)&&Ve(n.valueDeclaration.name)&&n.valueDeclaration.name}function C3e(n){return n.kind===202||Ao(n)&&n.name&&Ve(n.name)}function Nmt(n,a){const c=n.parameters.length-(Yu(n)?1:0);if(a<c){const v=n.parameters[a].valueDeclaration;return v&&C3e(v)?v:void 0}const d=n.parameters[c]||ft,_=dr(d);if(Wa(_)){const v=_.target.labeledElementDeclarations,x=a-c;return v&&v[x]}return d.valueDeclaration&&C3e(d.valueDeclaration)?d.valueDeclaration:void 0}function h_(n,a){return Y1(n,a)||j}function Y1(n,a){const c=n.parameters.length-(Yu(n)?1:0);if(a<c)return Z9(n.parameters[a]);if(Yu(n)){const d=dr(n.parameters[c]),_=a-c;if(!Wa(d)||d.target.hasRestElement||_<d.target.fixedLength)return Pp(d,m_(_))}}function eB(n,a,c){const d=Xp(n),_=th(n),v=J8(n);if(v&&a>=d-1)return a===d-1?v:Vu(Pp(v,Tt));const x=[],k=[],F=[];for(let H=a;H<d;H++)!v||H<d-1?(x.push(h_(n,H)),k.push(H<_?1:2)):(x.push(v),k.push(8)),F.push(Nmt(n,H));return Gh(x,k,c,F)}function P3e(n,a){const c=eB(n,a),d=c&&D9(c);return d&&Nt(d)?j:c}function Xp(n){const a=n.parameters.length;if(Yu(n)){const c=dr(n.parameters[a-1]);if(Wa(c))return a+c.target.fixedLength-(c.target.hasRestElement?0:1)}return a}function th(n,a){const c=a&1,d=a&2;if(d||n.resolvedMinArgumentCount===void 0){let _;if(Yu(n)){const v=dr(n.parameters[n.parameters.length-1]);if(Wa(v)){const x=mi(v.target.elementFlags,F=>!(F&1)),k=x<0?v.target.fixedLength:x;k>0&&(_=n.parameters.length-1+k)}}if(_===void 0){if(!c&&n.flags&32)return 0;_=n.minArgumentCount}if(d)return _;for(let v=_-1;v>=0;v--){const x=h_(n,v);if(dc(x,i3e).flags&131072)break;_=v}n.resolvedMinArgumentCount=_}return n.resolvedMinArgumentCount}function jh(n){if(Yu(n)){const a=dr(n.parameters[n.parameters.length-1]);return!Wa(a)||a.target.hasRestElement}return!1}function J8(n){if(Yu(n)){const a=dr(n.parameters[n.parameters.length-1]);if(!Wa(a))return Nt(a)?ec:a;if(a.target.hasRestElement)return UM(a,a.target.fixedLength)}}function K8(n){const a=J8(n);return a&&!Uf(a)&&!Nt(a)?a:void 0}function Eye(n){return Sye(n,Vr)}function Sye(n,a){return n.parameters.length>0?h_(n,0):a}function M3e(n,a,c){const d=n.parameters.length-(Yu(n)?1:0);for(let _=0;_<d;_++){const v=n.parameters[_].valueDeclaration,x=yu(v);if(x){const k=lp(Ti(x),!1,rP(v)),F=h_(a,_);gv(c.inferences,k,F)}}}function Cmt(n,a){if(a.typeParameters)if(!n.typeParameters)n.typeParameters=a.typeParameters;else return;if(a.thisParameter){const d=n.thisParameter;(!d||d.valueDeclaration&&!d.valueDeclaration.type)&&(d||(n.thisParameter=XT(a.thisParameter,void 0)),tB(n.thisParameter,dr(a.thisParameter)))}const c=n.parameters.length-(Yu(n)?1:0);for(let d=0;d<c;d++){const _=n.parameters[d],v=_.valueDeclaration;if(!yu(v)){let x=Y1(a,d);if(x&&v.initializer){let k=r2(v,0);!ba(k,x)&&ba(x,k=Gee(v,k))&&(x=k)}tB(_,x)}}if(Yu(n)){const d=Xa(n.parameters);if(d.valueDeclaration?!yu(d.valueDeclaration):xl(d)&65536){const _=eB(a,c);tB(d,_)}}}function Pmt(n){n.thisParameter&&tB(n.thisParameter);for(const a of n.parameters)tB(a)}function tB(n,a){const c=Ki(n);if(c.type)a&&N.assertEqual(c.type,a,"Parameter symbol already has a cached type which differs from newly assigned type");else{const d=n.valueDeclaration;c.type=lp(a||(d?B(d,!0):dr(n)),!1,!!d&&!d.initializer&&rP(d)),d&&d.name.kind!==80&&(c.type===hn&&(c.type=P(d.name)),L3e(d.name,c.type))}}function L3e(n,a){for(const c of n.elements)if(!Gc(c)){const d=bg(c,a,!1);c.name.kind===80?Ki(Ir(c)).type=d:L3e(c.name,d)}}function Mmt(n){return bN(Jlt(!0),[n])}function Lmt(n,a){return bN(Klt(!0),[n,a])}function kmt(n,a){return bN(Xlt(!0),[n,a])}function wmt(n,a){return bN(Ylt(!0),[n,a])}function Omt(n,a){return bN($lt(!0),[n,a])}function Wmt(n,a){return bN(ect(!0),[n,a])}function Fmt(n,a,c){const d=`${a?"p":"P"}${c?"s":"S"}${n.id}`;let _=ka.get(d);if(!_){const v=ca();v.set("name",_T("name",n)),v.set("private",_T("private",a?Gn:en)),v.set("static",_T("static",c?Gn:en)),_=Ls(void 0,v,et,et,et),ka.set(d,_)}return _}function k3e(n,a,c){const d=mc(n),_=qi(n.name),v=_?Xd(Er(n.name)):py(n.name),x=Hl(n)?Lmt(a,c):tf(n)?kmt(a,c):vp(n)?wmt(a,c):Wd(n)?Omt(a,c):qo(n)?Wmt(a,c):N.failBadSyntaxKind(n),k=Fmt(v,_,d);return ya([x,k])}function zmt(n,a){return bN(Qlt(!0),[n,a])}function Bmt(n,a){return bN(Zlt(!0),[n,a])}function Gmt(n,a){const c=o_("this",n),d=o_("value",a);return Wye(void 0,c,[d],a,void 0,1)}function Tye(n,a,c){const d=o_("target",n),_=o_("context",a),v=ei([c,ir]);return e6(void 0,void 0,[d,_],v)}function Vmt(n){const{parent:a}=n,c=Zr(a);if(!c.decoratorSignature)switch(c.decoratorSignature=Et,a.kind){case 263:case 231:{const _=dr(Ir(a)),v=Mmt(_);c.decoratorSignature=Tye(_,v,_);break}case 174:case 177:case 178:{const d=a;if(!di(d.parent))break;const _=Hl(d)?VT(dm(d)):gx(d),v=mc(d)?dr(Ir(d.parent)):Bf(Ir(d.parent)),x=tf(d)?fWe(_):vp(d)?mWe(_):_,k=k3e(d,v,_),F=tf(d)?fWe(_):vp(d)?mWe(_):_;c.decoratorSignature=Tye(x,k,F);break}case 172:{const d=a;if(!di(d.parent))break;const _=gx(d),v=mc(d)?dr(Ir(d.parent)):Bf(Ir(d.parent)),x=D_(d)?zmt(v,_):Oe,k=k3e(d,v,_),F=D_(d)?Bmt(v,_):Gmt(v,_);c.decoratorSignature=Tye(x,k,F);break}}return c.decoratorSignature===Et?void 0:c.decoratorSignature}function jmt(n){const{parent:a}=n,c=Zr(a);if(!c.decoratorSignature)switch(c.decoratorSignature=Et,a.kind){case 263:case 231:{const _=dr(Ir(a)),v=o_("target",_);c.decoratorSignature=e6(void 0,void 0,[v],ei([_,ir]));break}case 169:{const d=a;if(!Ml(d.parent)&&!(Hl(d.parent)||vp(d.parent)&&di(d.parent.parent))||BE(d.parent)===d)break;const _=BE(d.parent)?d.parent.parameters.indexOf(d)-1:d.parent.parameters.indexOf(d);N.assert(_>=0);const v=Ml(d.parent)?dr(Ir(d.parent.parent)):cFe(d.parent),x=Ml(d.parent)?Oe:uFe(d.parent),k=m_(_),F=o_("target",v),H=o_("propertyKey",x),re=o_("parameterIndex",k);c.decoratorSignature=e6(void 0,void 0,[F,H,re],ir);break}case 174:case 177:case 178:case 172:{const d=a;if(!di(d.parent))break;const _=cFe(d),v=o_("target",_),x=uFe(d),k=o_("propertyKey",x),F=qo(d)?ir:h8e(gx(d));if(se!==0&&(!qo(a)||D_(a))){const re=h8e(gx(d)),be=o_("descriptor",re);c.decoratorSignature=e6(void 0,void 0,[v,k,be],ei([F,ir]))}else c.decoratorSignature=e6(void 0,void 0,[v,k],ei([F,ir]));break}}return c.decoratorSignature===Et?void 0:c.decoratorSignature}function Aye(n){return ne?jmt(n):Vmt(n)}function nB(n){const a=p9(!0);return a!==wo?(n=_y(s2(n))||hn,uy(a,[n])):hn}function w3e(n){const a=f8e(!0);return a!==wo?(n=_y(s2(n))||hn,uy(a,[n])):hn}function rB(n,a){const c=nB(a);return c===hn?(qe(n,zp(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),_t):(Ege(!0)||qe(n,zp(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 Umt(n){const a=Ka(0,"NewTargetExpression"),c=Ka(4,"target",8);c.parent=a,c.links.type=n;const d=ca([c]);return a.members=d,Ls(a,d,et,et,et)}function Fee(n,a){if(!n.body)return _t;const c=Bc(n),d=(c&2)!==0,_=(c&1)!==0;let v,x,k,F=ir;if(n.body.kind!==241)v=nc(n.body,a&&a&-9),d&&(v=s2(Z8(v,!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(_){const H=G3e(n,a);H?H.length>0&&(v=ei(H,2)):F=Vr;const{yieldTypes:re,nextTypes:be}=Hmt(n,a);x=bt(re)?ei(re,2):void 0,k=bt(be)?ya(be):void 0}else{const H=G3e(n,a);if(!H)return c&2?rB(n,Vr):Vr;if(H.length===0){const re=yee(n,void 0),be=re&&(mB(re,c)||ir).flags&32768?Oe:ir;return c&2?rB(n,be):be}v=ei(H,2)}if(v||x||k){if(x&&oee(n,x,3),v&&oee(n,v,1),k&&oee(n,k,2),v&&__(v)||x&&__(x)||k&&__(k)){const H=Uve(n),re=H?H===dm(n)?_?void 0:v:Eee(ps(H),n,void 0):void 0;_?(x=sve(x,re,0,d),v=sve(v,re,1,d),k=sve(k,re,2,d)):v=qut(v,re,d)}x&&(x=Kp(x)),v&&(v=Kp(v)),k&&(k=Kp(k))}return _?O3e(x||Vr,v||F,k||E4e(2,n)||hn,d):d?nB(v||F):v||F}function O3e(n,a,c,d){const _=d?Us:vc,v=_.getGlobalGeneratorType(!1);if(n=_.resolveIterationType(n,void 0)||hn,a=_.resolveIterationType(a,void 0)||hn,c=_.resolveIterationType(c,void 0)||hn,v===wo){const x=_.getGlobalIterableIteratorType(!1),k=x!==wo?DWe(x,_):void 0,F=k?k.returnType:j,H=k?k.nextType:Oe;return ba(a,F)&&ba(H,c)?x!==wo?x8(x,[n]):(_.getGlobalIterableIteratorType(!0),Ca):(_.getGlobalGeneratorType(!0),Ca)}return x8(v,[n,a,c])}function Hmt(n,a){const c=[],d=[],_=(Bc(n)&2)!==0;return Yre(n.body,v=>{const x=v.expression?mo(v.expression,a):Lt;Ef(c,W3e(v,x,j,_));let k;if(v.asteriskToken){const F=$ee(x,_?19:17,v.expression);k=F&&F.nextType}else k=Yd(v,void 0);k&&Ef(d,k)}),{yieldTypes:c,nextTypes:d}}function W3e(n,a,c,d){const _=n.expression||n,v=n.asteriskToken?hy(d?19:17,a,c,_):a;return d?oA(v,_,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):v}function F3e(n,a,c){let d=0;for(let _=0;_<c.length;_++){const v=_<n||_>=a?c[_]:void 0;d|=v!==void 0?Rq.get(v)||32768:0}return d}function z3e(n){const a=Zr(n);if(a.isExhaustive===void 0){a.isExhaustive=0;const c=qmt(n);a.isExhaustive===0&&(a.isExhaustive=c)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function qmt(n){if(n.expression.kind===221){const d=Z6e(n);if(!d)return!1;const _=uv(nc(n.expression.expression)),v=F3e(0,0,d);return _.flags&3?(556800&v)===556800:!Gm(_,x=>$M(x,v)===v)}const a=nc(n.expression);if(!O8(a))return!1;const c=dee(n);return!c.length||bt(c,jut)?!1:Bdt(dl(a,yd),c)}function B3e(n){return n.endFlowNode&&O9(n.endFlowNode)}function G3e(n,a){const c=Bc(n),d=[];let _=B3e(n),v=!1;if(LE(n.body,x=>{let k=x.expression;if(k){if(k=hs(k,!0),c&2&&k.kind===223&&(k=hs(k.expression,!0)),k.kind===213&&k.expression.kind===80&&nc(k.expression).symbol===n.symbol){v=!0;return}let F=nc(k,a&&a&-9);c&2&&(F=s2(Z8(F,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),F.flags&131072&&(v=!0),Ef(d,F)}else _=!0}),!(d.length===0&&!_&&(v||Jmt(n))))return X&&d.length&&_&&!(eh(n)&&d.some(x=>x.symbol===n.symbol))&&Ef(d,Oe),d}function Jmt(n){switch(n.kind){case 218:case 219:return!0;case 174:return n.parent.kind===210;default:return!1}}function Iye(n,a){r(c);return;function c(){const d=Bc(n),_=a&&mB(a,d);if(_&&(Cl(_,16384)||_.flags&32769)||n.kind===173||Fl(n.body)||n.body.kind!==241||!B3e(n))return;const v=n.flags&1024,x=em(n)||n;if(_&&_.flags&131072)qe(x,f.A_function_returning_never_cannot_have_a_reachable_end_point);else if(_&&!v)qe(x,f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(_&&X&&!ba(Oe,_))qe(x,f.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(V.noImplicitReturns){if(!_){if(!v)return;const k=ps(dm(n));if(OWe(n,k))return}qe(x,f.Not_all_code_paths_return_a_value)}}}function V3e(n,a){if(N.assert(n.kind!==174||Tm(n)),hx(n),Os(n)&&l2(n,n.name),a&&a&4&&Vf(n)){if(!em(n)&&!q3(n)){const d=H8(n);if(d&&dE(ps(d))){const _=Zr(n);if(_.contextFreeType)return _.contextFreeType;const v=Fee(n,a),x=Eg(void 0,void 0,void 0,et,v,void 0,0,64),k=Ls(n.symbol,K,[x],et,et);return k.objectFlags|=262144,_.contextFreeType=k}}return nn}return!lte(n)&&n.kind===218&&sbe(n),Kmt(n,a),dr(Ir(n))}function Kmt(n,a){const c=Zr(n);if(!(c.flags&64)){const d=H8(n);if(!(c.flags&64)){c.flags|=64;const _=Kc(Xo(dr(Ir(n)),0));if(!_)return;if(Vf(n))if(d){const v=K1(n);let x;if(a&&a&2){M3e(_,d,v);const k=J8(d);k&&k.flags&262144&&(x=xN(d,v.nonFixingMapper))}x||(x=v?xN(d,v.mapper):d),Cmt(_,x)}else Pmt(_);else if(d&&!n.typeParameters&&d.parameters.length>n.parameters.length){const v=K1(n);a&&a&2&&M3e(_,d,v)}if(d&&!yN(n)&&!_.resolvedReturnType){const v=Fee(n,a);_.resolvedReturnType||(_.resolvedReturnType=v)}Y8(n)}}}function Xmt(n){N.assert(n.kind!==174||Tm(n));const a=Bc(n),c=yN(n);if(Iye(n,c),n.body)if(em(n)||ps(dm(n)),n.body.kind===241)Ra(n.body);else{const d=mo(n.body),_=c&&mB(c,a);if(_){const v=Lee(n.body);if((a&3)===2){const x=Z8(d,!1,v,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);Fb(x,_,v,v)}else Fb(d,_,v,v)}}}function zee(n,a,c,d=!1){if(!ba(a,Ql)){const _=d&&a2(a);return G0(n,!!_&&ba(_,Ql),c),!1}return!0}function Ymt(n){if(!sa(n)||!SS(n))return!1;const a=nc(n.arguments[2]);if(Ke(a,"value")){const _=va(a,"writable"),v=_&&dr(_);if(!v||v===en||v===En)return!0;if(_&&_.valueDeclaration&&hc(_.valueDeclaration)){const x=_.valueDeclaration.initializer,k=mo(x);if(k===en||k===En)return!0}return!1}return!va(a,"set")}function g_(n){return!!(xl(n)&8||n.flags&4&&xf(n)&8||n.flags&3&&$ve(n)&6||n.flags&98304&&!(n.flags&65536)||n.flags&8||bt(n.declarations,Ymt))}function j3e(n,a,c){var d,_;if(c===0)return!1;if(g_(a)){if(a.flags&4&&ws(n)&&n.expression.kind===110){const v=Bp(n);if(!(v&&(v.kind===176||eh(v))))return!0;if(a.valueDeclaration){const x=mr(a.valueDeclaration),k=v.parent===a.valueDeclaration.parent,F=v===a.valueDeclaration.parent,H=x&&((d=a.parent)==null?void 0:d.valueDeclaration)===v.parent,re=x&&((_=a.parent)==null?void 0:_.valueDeclaration)===v;return!(k||F||H||re)}}return!0}if(ws(n)){const v=hs(n.expression);if(v.kind===80){const x=Zr(v).resolvedSymbol;if(x.flags&2097152){const k=wm(x);return!!k&&k.kind===274}}}return!1}function X8(n,a,c){const d=$l(n,7);return d.kind!==80&&!ws(d)?(qe(n,a),!1):d.flags&64?(qe(n,c),!1):!0}function $mt(n){mo(n.expression);const a=hs(n.expression);if(!ws(a))return qe(a,f.The_operand_of_a_delete_operator_must_be_a_property_reference),Pi;Fr(a)&&qi(a.name)&&qe(a,f.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const c=Zr(a),d=hf(c.resolvedSymbol);return d&&(g_(d)?qe(a,f.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):Qmt(a,d)),Pi}function Qmt(n,a){const c=dr(a);X&&!(c.flags&131075)&&!(De?a.flags&16777216:fm(c,16777216))&&qe(n,f.The_operand_of_a_delete_operator_must_be_optional)}function Zmt(n){return mo(n.expression),YD}function e_t(n){return hx(n),Lt}function U3e(n){let a=!1;const c=j4(n);if(c&&Rl(c)){const d=Ky(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(H4(n)){const d=Un(n);if(!Q1(d)){let _;if(!RA(d,V)){_??(_=hh(d,n.pos));const v=Ky(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=$c(d,_.start,_.length,v);ts.add(x),a=!0}switch(G){case 100:case 199:if(d.impliedNodeFormat===1){_??(_=hh(d,n.pos)),ts.add($c(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(se>=4)break;default:_??(_=hh(d,n.pos));const v=Ky(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;ts.add($c(d,_.start,_.length,v)),a=!0;break}}}else{const d=Un(n);if(!Q1(d)){const _=hh(d,n.pos),v=Ky(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=$c(d,_.start,_.length,v);if(c&&c.kind!==176&&!(Bc(c)&2)){const k=kr(c,f.Did_you_mean_to_mark_this_function_as_async);Ma(x,k)}ts.add(x),a=!0}}return Ky(n)&&zve(n)&&(qe(n,f.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function t_t(n){r(()=>U3e(n));const a=mo(n.expression),c=Z8(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&&!Jt(c)&&!(a.flags&3)&&i_(!1,kr(n,f.await_has_no_effect_on_the_type_of_this_expression)),c}function n_t(n){const a=mo(n.operand);if(a===vo)return vo;switch(n.operand.kind){case 9:switch(n.operator){case 41:return fx(m_(-n.operand.text));case 40:return fx(m_(+n.operand.text))}break;case 10:if(n.operator===41)return fx(WZ({negative:!0,base10Value:$C(n.operand.text)}))}switch(n.operator){case 40:case 41:case 55:return Q_(a,n.operand),iB(a,12288)&&qe(n.operand,f.The_0_operator_cannot_be_applied_to_type_symbol,pa(n.operator)),n.operator===40?(iB(a,2112)&&qe(n.operand,f.Operator_0_cannot_be_applied_to_type_1,pa(n.operator),Hn(_v(a))),Tt):xye(a);case 54:Vye(a,n.operand);const c=$M(a,12582912);return c===4194304?en:c===8388608?Gn:Pi;case 46:case 47:return zee(n.operand,Q_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&X8(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),xye(a)}return _t}function r_t(n){const a=mo(n.operand);return a===vo?vo:(zee(n.operand,Q_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&X8(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),xye(a))}function xye(n){return Cl(n,2112)?xu(n,3)||Cl(n,296)?Ql:kt:Tt}function iB(n,a){if(Cl(n,a))return!0;const c=uv(n);return!!c&&Cl(c,a)}function Cl(n,a){if(n.flags&a)return!0;if(n.flags&3145728){const c=n.types;for(const d of c)if(Cl(d,a))return!0}return!1}function xu(n,a,c){return n.flags&a?!0:c&&n.flags&114691?!1:!!(a&296)&&ba(n,Tt)||!!(a&2112)&&ba(n,kt)||!!(a&402653316)&&ba(n,ke)||!!(a&528)&&ba(n,Pi)||!!(a&16384)&&ba(n,ir)||!!(a&131072)&&ba(n,Vr)||!!(a&65536)&&ba(n,fe)||!!(a&32768)&&ba(n,Oe)||!!(a&4096)&&ba(n,xi)||!!(a&67108864)&&ba(n,Jr)}function oB(n,a,c){return n.flags&1048576?Jn(n.types,d=>oB(d,a,c)):xu(n,a,c)}function Bee(n){return!!(Wr(n)&16)&&!!n.symbol&&Rye(n.symbol)}function Rye(n){return(n.flags&128)!==0}function Dye(n){const a=CWe("hasInstance"),c=rE(n,a);if(c){const d=dr(c);if(d&&Xo(d,0).length!==0)return d}}function i_t(n,a,c,d,_){if(c===vo||d===vo)return vo;!Nt(c)&&oB(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),N.assert(E3(n.parent));const v=PN(n.parent,void 0,_);if(v===Sr)return vo;const x=ps(v);return nd(x,Pi,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),Pi}function o_t(n){return Gm(n,a=>a===Nl||!!(a.flags&2097152)&&Vh(uv(a)))}function a_t(n,a,c,d){if(c===vo||d===vo)return vo;if(qi(n)){if(se<99&&Dc(n,2097152),!Zr(n).resolvedSymbol&&au(n)){const _=rye(n,d.symbol,!0);Y4e(n,d,_)}}else nd(Q_(c,n),Nn,n);return nd(Q_(d,a),Jr,a)&&o_t(d)&&qe(a,f.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Hn(d)),Pi}function s_t(n,a,c){const d=n.properties;if(X&&d.length===0)return Q_(a,n);for(let _=0;_<d.length;_++)H3e(n,a,_,d,c);return a}function H3e(n,a,c,d,_=!1){const v=n.properties,x=v[c];if(x.kind===303||x.kind===304){const k=x.name,F=py(k);if(tm(F)){const be=nm(F),ge=va(a,be);ge&&(J9(ge,x,_),Zve(x,!1,!0,a,ge))}const H=Pp(a,F,32,k),re=Xi(x,H);return iA(x.kind===304?x:x.initializer,re)}else if(x.kind===305)if(c<v.length-1)qe(x,f.A_rest_element_must_be_last_in_a_destructuring_pattern);else{se<99&&Dc(x,4);const k=[];if(d)for(const H of d)jv(H)||k.push(H.name);const F=Fi(a,k,a.symbol);return vx(d,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),iA(x.expression,F)}else qe(x,f.Property_assignment_expected)}function l_t(n,a,c){const d=n.elements;se<2&&V.downlevelIteration&&Dc(n,512);const _=hy(193,a,Oe,n)||_t;let v=V.noUncheckedIndexedAccess?void 0:_;for(let x=0;x<d.length;x++){let k=_;n.elements[x].kind===230&&(k=v=v??(hy(65,a,Oe,n)||_t)),q3e(n,a,x,k,c)}return a}function q3e(n,a,c,d,_){const v=n.elements,x=v[c];if(x.kind!==232){if(x.kind!==230){const k=m_(c);if(my(a)){const F=32|(t2(x)?16:0),H=kb(a,k,F,X9(x,k))||_t,re=t2(x)?mm(H,524288):H,be=Xi(x,re);return iA(x,be,_)}return iA(x,d,_)}if(c<v.length-1)qe(x,f.A_rest_element_must_be_last_in_a_destructuring_pattern);else{const k=x.expression;if(k.kind===226&&k.operatorToken.kind===64)qe(k.operatorToken,f.A_rest_element_cannot_have_an_initializer);else{vx(n.elements,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);const F=cp(a,Wa)?dl(a,H=>UM(H,c)):Vu(d);return iA(k,F,_)}}}}function iA(n,a,c,d){let _;if(n.kind===304){const v=n;v.objectAssignmentInitializer&&(X&&!fm(mo(v.objectAssignmentInitializer),16777216)&&(a=mm(a,524288)),p_t(v.name,v.equalsToken,v.objectAssignmentInitializer,c)),_=n.name}else _=n;return _.kind===226&&_.operatorToken.kind===64&&(Me(_,c),_=_.left,X&&(a=mm(a,524288))),_.kind===210?s_t(_,a,d):_.kind===209?l_t(_,a,c):c_t(_,a,c)}function c_t(n,a,c){const d=mo(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,v=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 X8(n,_,v)&&Fb(a,d,n,n),Kx(n)&&Dc(n.parent,1048576),a}function aB(n){switch(n=hs(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 aB(n.whenTrue)&&aB(n.whenFalse);case 226:return Ov(n.operatorToken.kind)?!1:aB(n.left)&&aB(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 Nye(n,a){return(a.flags&98304)!==0||jZ(n,a)}function u_t(){const n=sF(a,c,d,_,v,x);return(ge,Je)=>{const gt=n(ge,Je);return N.assertIsDefined(gt),gt};function a(ge,Je,gt){return Je?(Je.stackIndex++,Je.skip=!1,H(Je,void 0),be(Je,void 0)):Je={checkMode:gt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},lr(ge)&&DA(ge)?(Je.skip=!0,be(Je,mo(ge.right,gt)),Je):(d_t(ge),ge.operatorToken.kind===64&&(ge.left.kind===210||ge.left.kind===209)&&(Je.skip=!0,be(Je,iA(ge.left,mo(ge.right,gt),gt,ge.right.kind===110))),Je)}function c(ge,Je,gt){if(!Je.skip)return k(Je,ge)}function d(ge,Je,gt){if(!Je.skip){const Dt=re(Je);N.assertIsDefined(Dt),H(Je,Dt),be(Je,void 0);const an=ge.kind;if(ak(an)){let cn=gt.parent;for(;cn.kind===217||sk(cn);)cn=cn.parent;(an===56||FS(cn))&&Gye(gt.left,Dt,FS(cn)?cn.thenStatement:void 0),Vye(Dt,gt.left)}}}function _(ge,Je,gt){if(!Je.skip)return k(Je,ge)}function v(ge,Je){let gt;if(Je.skip)gt=re(Je);else{const Dt=F(Je);N.assertIsDefined(Dt);const an=re(Je);N.assertIsDefined(an),gt=J3e(ge.left,ge.operatorToken,ge.right,Dt,an,Je.checkMode,ge)}return Je.skip=!1,H(Je,void 0),be(Je,void 0),Je.stackIndex--,gt}function x(ge,Je,gt){return be(ge,Je),ge}function k(ge,Je){if(mr(Je))return Je;be(ge,mo(Je,ge.checkMode))}function F(ge){return ge.typeStack[ge.stackIndex]}function H(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 d_t(n){const{left:a,operatorToken:c,right:d}=n;c.kind===61&&(mr(a)&&(a.operatorToken.kind===57||a.operatorToken.kind===56)&&Sn(a,f._0_and_1_operations_cannot_be_mixed_without_parentheses,pa(a.operatorToken.kind),pa(c.kind)),mr(d)&&(d.operatorToken.kind===57||d.operatorToken.kind===56)&&Sn(d,f._0_and_1_operations_cannot_be_mixed_without_parentheses,pa(d.operatorToken.kind),pa(c.kind)))}function p_t(n,a,c,d,_){const v=a.kind;if(v===64&&(n.kind===210||n.kind===209))return iA(n,mo(c,d),d,c.kind===110);let x;ak(v)?x=c2(n,d):x=mo(n,d);const k=mo(c,d);return J3e(n,a,c,x,k,d,_)}function J3e(n,a,c,d,_,v,x){const k=a.kind;switch(k){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===vo||_===vo)return vo;d=Q_(d,n),_=Q_(_,c);let ln;if(d.flags&528&&_.flags&528&&(ln=ge(a.kind))!==void 0)return qe(x||a,f.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,pa(a.kind),pa(ln)),Tt;{const tr=zee(n,d,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Kn=zee(c,_,f.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let nr;if(xu(d,3)&&xu(_,3)||!(Cl(d,2112)||Cl(_,2112)))nr=Tt;else if(F(d,_)){switch(k){case 50:case 73:an();break;case 43:case 68:se<3&&qe(x,f.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}nr=kt}else an(F),nr=_t;return tr&&Kn&&Je(nr),nr}case 40:case 65:if(d===vo||_===vo)return vo;!xu(d,402653316)&&!xu(_,402653316)&&(d=Q_(d,n),_=Q_(_,c));let Bn;return xu(d,296,!0)&&xu(_,296,!0)?Bn=Tt:xu(d,2112,!0)&&xu(_,2112,!0)?Bn=kt:xu(d,402653316,!0)||xu(_,402653316,!0)?Bn=ke:(Nt(d)||Nt(_))&&(Bn=Jt(d)||Jt(_)?_t:j),Bn&&!be(k)?Bn:Bn?(k===65&&Je(Bn),Bn):(an((Kn,nr)=>xu(Kn,402655727)&&xu(nr,402655727)),j);case 30:case 32:case 33:case 34:return be(k)&&(d=ove(Q_(d,n)),_=ove(Q_(_,c)),Dt((tr,Kn)=>{if(Nt(tr)||Nt(Kn))return!0;const nr=ba(tr,Ql),Ro=ba(Kn,Ql);return nr&&Ro||!nr&&!Ro&&E9(tr,Kn)})),Pi;case 35:case 36:case 37:case 38:if(!(v&&v&64)){if((LV(n)||LV(c))&&(!lr(n)||k===37||k===38)){const tr=k===35||k===37;qe(x,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,tr?"false":"true")}ar(x,k,n,c),Dt((tr,Kn)=>Nye(tr,Kn)||Nye(Kn,tr))}return Pi;case 104:return i_t(n,c,d,_,v);case 103:return a_t(n,c,d,_);case 56:case 77:{const tr=fm(d,4194304)?ei([Xut(X?d:_v(_)),_]):d;return k===77&&Je(_),tr}case 57:case 76:{const tr=fm(d,8388608)?ei([hv(x6e(d)),_],2):d;return k===76&&Je(_),tr}case 61:case 78:{const tr=fm(d,262144)?ei([hv(d),_],2):d;return k===78&&Je(_),tr}case 64:const zn=mr(n.parent)?zl(n.parent):0;return H(zn,_),gt(zn)?((!(_.flags&524288)||zn!==2&&zn!==6&&!mv(_)&&!xve(_)&&!(Wr(_)&1))&&Je(_),d):(Je(_),_);case 28:if(!V.allowUnreachableCode&&aB(n)&&!re(n.parent)){const tr=Un(n),Kn=tr.text,nr=Pa(Kn,n.pos);tr.parseDiagnostics.some(Eo=>Eo.code!==f.JSX_expressions_must_have_one_parent_element.code?!1:EV(Eo,nr))||qe(n,f.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return _;default:return N.fail()}function F(ln,Bn){return xu(ln,2112)&&xu(Bn,2112)}function H(ln,Bn){if(ln===2)for(const zn of Pb(Bn)){const tr=dr(zn);if(tr.symbol&&tr.symbol.flags&32){const Kn=zn.escapedName,nr=yl(zn.valueDeclaration,Kn,788968,void 0,Kn,!1);nr!=null&&nr.declarations&&nr.declarations.some(US)&&(cm(nr,f.Duplicate_identifier_0,Vi(Kn),zn),cm(zn,f.Duplicate_identifier_0,Vi(Kn),nr))}}}function re(ln){return ln.parent.kind===217&&hp(ln.left)&&ln.left.text==="0"&&(sa(ln.parent.parent)&&ln.parent.parent.expression===ln.parent||ln.parent.parent.kind===215)&&(ws(ln.right)||Ve(ln.right)&&ln.right.escapedText==="eval")}function be(ln){const Bn=iB(d,12288)?n:iB(_,12288)?c:void 0;return Bn?(qe(Bn,f.The_0_operator_cannot_be_applied_to_type_symbol,pa(ln)),!1):!0}function ge(ln){switch(ln){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function Je(ln){Ov(k)&&r(Bn);function Bn(){let zn=d;if(WP(a.kind)&&n.kind===211&&(zn=xee(n,void 0,!0)),X8(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 tr;if(De&&Fr(n)&&Cl(ln,32768)){const Kn=Ke(Ru(n.expression),n.name.escapedText);HZ(ln,Kn)&&(tr=f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}Fb(ln,zn,n,c,tr)}}}function gt(ln){var Bn;switch(ln){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const zn=_f(n),tr=DA(c);return!!tr&&La(tr)&&!!((Bn=zn==null?void 0:zn.exports)!=null&&Bn.size);default:return!1}}function Dt(ln){return ln(d,_)?!1:(an(ln),!0)}function an(ln){let Bn=!1;const zn=x||a;if(ln){const Eo=_y(d),Bo=_y(_);Bn=!(Eo===d&&Bo===_)&&!!(Eo&&Bo)&&ln(Eo,Bo)}let tr=d,Kn=_;!Bn&&ln&&([tr,Kn]=f_t(d,_,ln));const[nr,Ro]=ox(tr,Kn);cn(zn,Bn,nr,Ro)||G0(zn,Bn,f.Operator_0_cannot_be_applied_to_types_1_and_2,pa(a.kind),nr,Ro)}function cn(ln,Bn,zn,tr){switch(a.kind){case 37:case 35:case 38:case 36:return G0(ln,Bn,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,zn,tr);default:return}}function ar(ln,Bn,zn,tr){const Kn=Wn(hs(zn)),nr=Wn(hs(tr));if(Kn||nr){const Ro=qe(ln,f.This_condition_will_always_return_0,pa(Bn===37||Bn===35?97:112));if(Kn&&nr)return;const Eo=Bn===38||Bn===36?pa(54):"",Bo=Kn?tr:zn,_o=hs(Bo);Ma(Ro,kr(Bo,f.Did_you_mean_0,`${Eo}Number.isNaN(${Bl(_o)?fp(_o):"..."})`))}}function Wn(ln){if(Ve(ln)&&ln.escapedText==="NaN"){const Bn=tct();return!!Bn&&Bn===Bm(ln)}return!1}}function f_t(n,a,c){let d=n,_=a;const v=_v(n),x=_v(a);return c(v,x)||(d=v,_=x),[d,_]}function m_t(n){r(ge);const a=Bp(n);if(!a)return j;const c=Bc(a);if(!(c&1))return j;const d=(c&2)!==0;n.asteriskToken&&(d&&se<99&&Dc(n,26624),!d&&se<2&&V.downlevelIteration&&Dc(n,256));let _=yN(a);_&&_.flags&1048576&&(_=dc(_,Je=>Mye(Je,c,void 0)));const v=_&&wWe(_,d),x=v&&v.yieldType||j,k=v&&v.nextType||j,F=d?oA(k)||j:k,H=n.expression?mo(n.expression):Lt,re=W3e(n,H,F,d);if(_&&re&&Fb(re,x,n.expression||n,n.expression),n.asteriskToken)return Uye(d?19:17,1,H,n.expression)||j;if(_)return $1(2,_,d)||j;let be=E4e(2,a);return be||(be=j,r(()=>{if(de&&!xoe(n)){const Je=Yd(n,void 0);(!Je||Nt(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||_u(n,f.A_yield_expression_is_only_allowed_in_a_generator_body),zve(n)&&qe(n,f.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function __t(n,a){const c=c2(n.condition,a);Gye(n.condition,c,n.whenTrue);const d=mo(n.whenTrue,a),_=mo(n.whenFalse,a);return ei([d,_],2)}function K3e(n){const a=n.parent;return Gd(a)&&K3e(a)||$s(a)&&a.argumentExpression===n}function h_t(n){const a=[n.head.text],c=[];for(const _ of n.templateSpans){const v=mo(_.expression);iB(v,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(ba(v,ko)?v:ke)}if(i2(n)||K3e(n)||Gm(Yd(n,void 0)||hn,g_t))return jT(a,c);const d=n.parent.kind!==215&&YWe(n);return d?fx(Xd(d)):ke}function g_t(n){return!!(n.flags&134217856||n.flags&58982400&&Cl(Gu(n)||hn,402653316))}function v_t(n){return n1(n)&&!GS(n.parent)?n.parent.parent:n}function MN(n,a,c,d){const _=v_t(n);B9(_,a,!1),Fpt(_,c);const v=mo(n,d|1|(c?2:0));c&&c.intraExpressionInferenceSites&&(c.intraExpressionInferenceSites=void 0);const x=Cl(v,2944)&&Vee(v,Eee(a,n,void 0))?yd(v):v;return zpt(),U8(),x}function nc(n,a){if(a)return mo(n,a);const c=Zr(n);if(!c.resolvedType){const d=j_,_=bn;j_=ff,bn=void 0,c.resolvedType=mo(n,a),bn=_,j_=d}return c.resolvedType}function X3e(n){return n=hs(n,!0),n.kind===216||n.kind===234||XR(n)}function r2(n,a,c){const d=OL(n);if(lr(n)){const v=X3(n);if(v)return vye(d,v,a)}const _=Pye(d)||(c?MN(d,c,void 0,a||0):nc(d,a));return Ao(n)&&n.name.kind===207&&Wa(_)&&!_.target.hasRestElement&&dy(_)<n.name.elements.length?y_t(_,n.name):_}function y_t(n,a){const c=a.elements,d=G1(n).slice(),_=n.target.elementFlags.slice();for(let v=dy(n);v<c.length;v++){const x=c[v];(v<c.length-1||!(x.kind===208&&x.dotDotDotToken))&&(d.push(!Gc(x)&&t2(x)?WM(x,!1,!1):j),_.push(2),!Gc(x)&&!t2(x)&&uE(x,j))}return Gh(d,_,n.target.readonly)}function Gee(n,a){const c=eS(n)&6||O4(n)?a:q1(a);if(lr(n)){if(b6e(c))return uE(n,j),j;if($Z(c))return uE(n,ec),ec}return c}function Vee(n,a){if(a){if(a.flags&3145728){const c=a.types;return bt(c,d=>Vee(n,d))}if(a.flags&58982400){const c=Gu(a)||hn;return Cl(c,4)&&Cl(n,128)||Cl(c,8)&&Cl(n,256)||Cl(c,64)&&Cl(n,2048)||Cl(c,4096)&&Cl(n,8192)||Vee(n,c)}return!!(a.flags&406847616&&Cl(n,128)||a.flags&256&&Cl(n,256)||a.flags&2048&&Cl(n,2048)||a.flags&512&&Cl(n,512)||a.flags&8192&&Cl(n,8192))}return!1}function i2(n){const a=n.parent;return mS(a)&&Pg(a.type)||XR(a)&&Pg(rF(a))||gye(n)&&BT(Yd(n,0))||(Gd(a)||fd(a)||$m(a))&&i2(a)||(hc(a)||np(a)||gP(a))&&i2(a.parent)}function o2(n,a,c){const d=mo(n,a,c);return i2(n)||Zre(n)?yd(d):X3e(n)?d:ave(d,Eee(Yd(n,void 0),n,void 0))}function Y3e(n,a){return n.name.kind===167&&Tg(n.name),o2(n.initializer,a)}function $3e(n,a){TFe(n),n.name.kind===167&&Tg(n.name);const c=V3e(n,a);return Q3e(n,c,a)}function Q3e(n,a,c){if(c&&c&10){const d=q8(a,0,!0),_=q8(a,1,!0),v=d||_;if(v&&v.typeParameters){const x=mE(n,2);if(x){const k=q8(hv(x),d?0:1,!1);if(k&&!k.typeParameters){if(c&8)return Z3e(n,c),nn;const F=K1(n),H=F.signature&&ps(F.signature),re=H&&a3e(H);if(re&&!re.typeParameters&&!Jn(F.inferences,LN)){const be=T_t(F,v.typeParameters),ge=lge(v,be),Je=Wt(F.inferences,gt=>fve(gt.typeParameter));if(cve(ge,k,(gt,Dt)=>{gv(Je,gt,Dt,0,!0)}),bt(Je,LN)&&(uve(ge,k,(gt,Dt)=>{gv(Je,gt,Dt)}),!E_t(F.inferences,Je)))return S_t(F.inferences,Je),F.inferredTypeParameters=So(F.inferredTypeParameters,be),VT(ge)}return VT(s3e(v,k,F))}}}}return a}function Z3e(n,a){if(a&2){const c=K1(n);c.flags|=4}}function LN(n){return!!(n.candidates||n.contraCandidates)}function b_t(n){return!!(n.candidates||n.contraCandidates||WOe(n.typeParameter))}function E_t(n,a){for(let c=0;c<n.length;c++)if(LN(n[c])&&LN(a[c]))return!0;return!1}function S_t(n,a){for(let c=0;c<n.length;c++)!LN(n[c])&&LN(a[c])&&(n[c]=a[c])}function T_t(n,a){const c=[];let d,_;for(const v of a){const x=v.symbol.escapedName;if(Cye(n.inferredTypeParameters,x)||Cye(c,x)){const k=A_t(So(n.inferredTypeParameters,c),x),F=Ka(262144,k),H=gf(F);H.target=v,d=Rn(d,v),_=Rn(_,H),c.push(H)}else c.push(v)}if(_){const v=Mp(d,_);for(const x of _)x.mapper=v}return c}function Cye(n,a){return bt(n,c=>c.symbol.escapedName===a)}function A_t(n,a){let c=a.length;for(;c>1&&a.charCodeAt(c-1)>=48&&a.charCodeAt(c-1)<=57;)c--;const d=a.slice(0,c);for(let _=1;;_++){const v=d+_;if(!Cye(n,v))return v}}function eWe(n){const a=rA(n);if(a&&!a.typeParameters)return ps(a)}function I_t(n){const a=mo(n.expression),c=W8(a,n.expression),d=eWe(a);return d&&tee(d,n,c!==a)}function Ru(n){const a=Pye(n);if(a)return a;if(n.flags&268435456&&bn){const _=bn[as(n)];if(_)return _}const c=Ze,d=mo(n,64);if(Ze!==c){const _=bn||(bn=[]);_[as(n)]=d,Ioe(n,n.flags|268435456)}return d}function Pye(n){let a=hs(n,!0);if(XR(a)){const c=rF(a);if(!Pg(c))return Ti(c)}if(a=hs(n),Ky(a)){const c=Pye(a.expression);return c?oA(c):void 0}if(sa(a)&&a.expression.kind!==108&&!Td(a,!0)&&!b3e(a))return uS(a)?I_t(a):eWe(NN(a.expression));if(mS(a)&&!Pg(a.type))return Ti(a.type);if(DE(n)||fC(n))return mo(n)}function sB(n){const a=Zr(n);if(a.contextFreeType)return a.contextFreeType;B9(n,j,!1);const c=a.contextFreeType=mo(n,4);return U8(),c}function mo(n,a,c){var d,_;(d=sr)==null||d.push(sr.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const v=C;C=n,A=0;const x=D_t(n,a,c),k=Q3e(n,x,a);return Bee(k)&&x_t(n,k),C=v,(_=sr)==null||_.pop(),k}function x_t(n,a){n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n||(n.kind===80||n.kind===166)&&nte(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),rm(V)&&(N.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&33554432&&!h0(n)&&qe(n,f.Cannot_access_ambient_const_enums_when_0_is_enabled,$e))}function R_t(n,a){if(Wp(n)){if(SU(n))return vye(n.expression,TU(n),a);if(XR(n))return A3e(n,a)}return mo(n.expression,a)}function D_t(n,a,c){const d=n.kind;if(i)switch(d){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(d){case 80:return spt(n,a);case 81:return Ift(n);case 110:return F9(n);case 108:return Wve(n);case 106:return Be;case 15:case 11:return vve(n)?Ye:fx(Xd(n.text));case 9:return dbe(n),fx(m_(+n.text));case 10:return Cyt(n),fx(WZ({negative:!1,base10Value:$C(n.text)}));case 112:return Gn;case 97:return en;case 228:return h_t(n);case 14:return vl;case 209:return N4e(n,a,c);case 210:return rft(n,a);case 211:return xee(n,a);case 166:return H4e(n,a);case 212:return Gft(n,a);case 213:if(n.expression.kind===102)return ymt(n);case 214:return vmt(n,a);case 215:return bmt(n);case 217:return R_t(n,a);case 231:return _gt(n);case 218:case 219:return V3e(n,a);case 221:return Zmt(n);case 216:case 234:return Emt(n,a);case 235:return Amt(n);case 233:return x3e(n);case 238:return Imt(n);case 236:return xmt(n);case 220:return $mt(n);case 222:return e_t(n);case 223:return t_t(n);case 224:return n_t(n);case 225:return r_t(n);case 226:return Me(n,a);case 227:return __t(n,a);case 230:return $pt(n,a);case 232:return Lt;case 229:return m_t(n);case 237:return Qpt(n);case 294:return vft(n,a);case 284:return sft(n);case 285:return oft(n);case 288:return lft(n);case 292:return uft(n,a);case 286:N.fail("Shouldn't ever directly check a JsxOpeningElement")}return _t}function tWe(n){Ig(n),n.expression&&_u(n.expression,f.Type_expected),Ra(n.constraint),Ra(n.default);const a=WT(Ir(n));Gu(a),llt(a)||qe(n.default,f.Type_parameter_0_has_a_circular_default,Hn(a));const c=Md(a),d=GT(a);c&&d&&nd(d,Jp(lo(c,U1(a,d)),d),n.default,f.Type_0_does_not_satisfy_the_constraint_1),hx(n),r(()=>u2(n.name,f.Type_parameter_name_cannot_be_0))}function N_t(n){var a,c;if(md(n.parent)||di(n.parent)||xm(n.parent)){const d=WT(Ir(n)),_=tve(d)&24576;if(_){const v=Ir(n.parent);if(xm(n.parent)&&!(Wr(Zs(v))&52))qe(n,f.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(_===8192||_===16384){(a=sr)==null||a.push(sr.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:vd(Zs(v)),id:vd(d)});const x=A9(v,d,_===16384?Z:ue),k=A9(v,d,_===16384?ue:Z),F=d;O=d,nd(x,k,n,f.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),O=F,(c=sr)==null||c.pop()}}}}function nWe(n){Ig(n),pB(n);const a=Bp(n);Qr(n,31)&&(a.kind===176&&Kf(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&&rP(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)&&!ba(f_(dr(n.symbol)),df)&&qe(n,f.A_rest_parameter_must_be_of_an_array_type)}function C_t(n){const a=P_t(n);if(!a){qe(n,f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const c=dm(a),d=Gf(c);if(!d)return;Ra(n.type);const{parameterName:_}=n;if(d.kind===0||d.kind===2)FZ(_);else if(d.parameterIndex>=0){if(Yu(c)&&d.parameterIndex===c.parameters.length-1)qe(_,f.A_type_predicate_cannot_reference_a_rest_parameter);else if(d.type){const v=()=>Vo(void 0,f.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);nd(d.type,dr(c.parameters[d.parameterIndex]),n.type,void 0,v)}}else if(_){let v=!1;for(const{name:x}of a.parameters)if(ta(x)&&rWe(x,_,d.parameterName)){v=!0;break}v||qe(n.parameterName,f.Cannot_find_parameter_0,d.parameterName)}}function P_t(n){switch(n.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const a=n.parent;if(n===a.type)return a}}function rWe(n,a,c){for(const d of n.elements){if(Gc(d))continue;const _=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)&&rWe(_,a,c))return!0}}function Y8(n){n.kind===181?iyt(n):(n.kind===184||n.kind===262||n.kind===185||n.kind===179||n.kind===176||n.kind===180)&<e(n);const a=Bc(n);a&4||((a&3)===3&&se<99&&Dc(n,6144),(a&3)===2&&se<4&&Dc(n,64),a&3&&se<2&&Dc(n,128)),_B(Dy(n)),pgt(n),Xe(n.parameters,nWe),n.type&&Ra(n.type),r(c);function c(){Nht(n);let d=em(n),_=d;if(lr(n)){const v=i0(n);if(v&&v.typeExpression&&Df(v.typeExpression.type)){const x=rA(Ti(v.typeExpression));x&&x.declaration&&(d=em(x.declaration),_=v.typeExpression.type)}}if(de&&!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&&_){const v=Bc(n);if((v&5)===1){const x=Ti(d);x===ir?qe(_,f.A_generator_cannot_have_a_void_type_annotation):Mye(x,v,_)}else(v&3)===2&&lht(n,d,_)}n.kind!==181&&n.kind!==324&&jb(n)}}function Mye(n,a,c){const d=$1(0,n,(a&2)!==0)||j,_=$1(1,n,(a&2)!==0)||d,v=$1(2,n,(a&2)!==0)||hn,x=O3e(d,_,v,!!(a&2));return nd(x,n,c)}function M_t(n){const a=new Map,c=new Map,d=new Map;for(const v of n.members)if(v.kind===176)for(const x of v.parameters)pp(x,v)&&!ta(x.name)&&_(a,x.name,x.name.escapedText,3);else{const x=aa(v),k=v.name;if(!k)continue;const F=qi(k),H=F&&x?16:0,re=F?d:x?c:a,be=k&&pbe(k);if(be)switch(v.kind){case 177:_(re,k,be,1|H);break;case 178:_(re,k,be,2|H);break;case 172:_(re,k,be,3|H);break;case 174:_(re,k,be,8|H);break}}function _(v,x,k,F){const H=v.get(k);if(H)if((H&16)!==(F&16))qe(x,f.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,fc(x));else{const re=!!(H&8),be=!!(F&8);re||be?re!==be&&qe(x,f.Duplicate_identifier_0,fc(x)):H&F&-17?qe(x,f.Duplicate_identifier_0,fc(x)):v.set(k,H|F)}else v.set(k,F)}}function L_t(n){for(const a of n.members){const c=a.name;if(aa(a)&&c){const _=pbe(c);switch(_){case"name":case"length":case"caller":case"arguments":if(he)break;case"prototype":const v=f.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,x=$0(Ir(n));qe(c,v,_,x);break}}}}function iWe(n){const a=new Map;for(const c of n.members)if(c.kind===171){let d;const _=c.name;switch(_.kind){case 11:case 9:d=_.text;break;case 80:d=Er(_);break;default:continue}a.get(d)?(qe(Lo(c.symbol.valueDeclaration),f.Duplicate_identifier_0,d),qe(c.name,f.Duplicate_identifier_0,d)):a.set(d,!0)}}function Lye(n){if(n.kind===264){const c=Ir(n);if(c.declarations&&c.declarations.length>0&&c.declarations[0]!==n)return}const a=cge(Ir(n));if(a!=null&&a.declarations){const c=new Map;for(const d of a.declarations)d.parameters.length===1&&d.parameters[0].type&&ZT(Ti(d.parameters[0].type),_=>{const v=c.get(vd(_));v?v.declarations.push(d):c.set(vd(_),{type:_,declarations:[d]})});c.forEach(d=>{if(d.declarations.length>1)for(const _ of d.declarations)qe(_,f.Duplicate_index_signature_for_type_0,Hn(d.type))})}}function oWe(n){!Ig(n)&&!xyt(n)&&cte(n.name),pB(n),kye(n),Qr(n,64)&&n.kind===172&&n.initializer&&qe(n,f.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,xs(n.name))}function k_t(n){return qi(n.name)&&qe(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),oWe(n)}function w_t(n){TFe(n)||cte(n.name),Hl(n)&&n.asteriskToken&&Ve(n.name)&&Er(n.name)==="constructor"&&qe(n.name,f.Class_constructor_may_not_be_a_generator),vWe(n),Qr(n,64)&&n.kind===174&&n.body&&qe(n,f.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,xs(n.name)),qi(n.name)&&!au(n)&&qe(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),kye(n)}function kye(n){if(qi(n.name)&&se<99){for(let a=_h(n);a;a=_h(a))Zr(a).flags|=1048576;if(Qc(n.parent)){const a=Lve(n.parent);a&&(Zr(n.name).flags|=32768,Zr(a).flags|=4096)}}}function O_t(n){Ig(n),Uo(n,Ra)}function W_t(n){Y8(n),Ayt(n)||Iyt(n),Ra(n.body);const a=Ir(n),c=pl(a,n.kind);if(n===c&&Hee(a),Fl(n.body))return;r(_);return;function d(v){return sd(v)?!0:v.kind===172&&!aa(v)&&!!v.initializer}function _(){const v=n.parent;if(FE(v)){kve(n.parent,v);const x=wve(v),k=f4e(n.body);if(k){if(x&&qe(k,f.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!ye&&(bt(n.parent.members,d)||bt(n.parameters,H=>Qr(H,31))))if(!F_t(k,n.body))qe(k,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 H;for(const re of n.body.statements){if(Zc(re)&&yS($l(re.expression))){H=re;break}if(aWe(re))break}H===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 F_t(n,a){const c=kv(n.parent);return Zc(c)&&c.parent===a}function aWe(n){return n.kind===108||n.kind===110?!0:aie(n)?!1:!!Uo(n,aWe)}function sWe(n){Ve(n.name)&&Er(n.name)==="constructor"&&di(n.parent)&&qe(n.name,f.Class_constructor_may_not_be_an_accessor),r(a),Ra(n.body),kye(n);function a(){if(!lte(n)&&!fyt(n)&&cte(n.name),cB(n),Y8(n),n.kind===177&&!(n.flags&33554432)&&Kf(n.body)&&n.flags&512&&(n.flags&1024||qe(n.name,f.A_get_accessor_must_return_a_value)),n.name.kind===167&&Tg(n.name),gN(n)){const d=Ir(n),_=pl(d,177),v=pl(d,178);if(_&&v&&!(ON(_)&1)){Zr(_).flags|=1;const x=ud(_),k=ud(v);(x&64)!==(k&64)&&(qe(_.name,f.Accessors_must_both_be_abstract_or_non_abstract),qe(v.name,f.Accessors_must_both_be_abstract_or_non_abstract)),(x&4&&!(k&6)||x&2&&!(k&2))&&(qe(_.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),qe(v.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const c=tE(Ir(n));n.kind===177&&Iye(n,c)}}function z_t(n){cB(n)}function B_t(n,a,c){return n.typeArguments&&c<n.typeArguments.length?Ti(n.typeArguments[c]):jee(n,a)[c]}function jee(n,a){return Mb(Wt(n.typeArguments,Ti),a,zh(a),lr(n))}function lWe(n,a){let c,d,_=!0;for(let v=0;v<a.length;v++){const x=Md(a[v]);x&&(c||(c=jee(n,a),d=Mp(a,c)),_=_&&nd(c[v],lo(x,d),n.typeArguments[v],f.Type_0_does_not_satisfy_the_constraint_1))}return _}function G_t(n,a){if(!Jt(n))return a.flags&524288&&Ki(a).typeParameters||(Wr(n)&4?n.target.localTypeParameters:void 0)}function wye(n){const a=Ti(n);if(!Jt(a)){const c=Zr(n).resolvedSymbol;if(c)return G_t(a,c)}}function Oye(n){if(vB(n,n.typeArguments),n.kind===183&&!lr(n)&&!kL(n)&&n.typeArguments&&n.typeName.end!==n.typeArguments.pos){const a=Un(n);Xre(a,n.typeName.end)===25&&Z1(n,Pa(a.text,n.typeName.end),1,f.JSDoc_types_can_only_be_used_inside_documentation_comments)}Xe(n.typeArguments,Ra),cWe(n)}function cWe(n){const a=Ti(n);if(!Jt(a)){n.typeArguments&&r(()=>{const d=wye(n);d&&lWe(n,d)});const c=Zr(n).resolvedSymbol;c&&bt(c.declarations,d=>kR(d)&&!!(d.flags&536870912))&&iy(Q9(n),c.declarations,c.escapedName)}}function V_t(n){const a=ri(n.parent,A4);if(!a)return;const c=wye(a);if(!c)return;const d=Md(c[a.typeArguments.indexOf(n)]);return d&&lo(d,Mp(c,jee(a,c)))}function j_t(n){a8e(n)}function U_t(n){Xe(n.members,Ra),r(a);function a(){const c=J8e(n);Qee(c,c.symbol),Lye(n),iWe(n)}}function H_t(n){Ra(n.elementType)}function q_t(n){let a=!1,c=!1;for(const d of n.elements){let _=Age(d);if(_&8){const v=Ti(d.type);if(!my(v)){qe(d,f.A_rest_element_type_must_be_an_array_type);break}(Uf(v)||Wa(v)&&v.target.combinedFlags&4)&&(_|=4)}if(_&4){if(c){Sn(d,f.A_rest_element_cannot_follow_another_rest_element);break}c=!0}else if(_&2){if(c){Sn(d,f.An_optional_element_cannot_follow_a_rest_element);break}a=!0}else if(_&1&&a){Sn(d,f.A_required_element_cannot_follow_an_optional_element);break}}Xe(n.elements,Ra),Ti(n)}function J_t(n){Xe(n.types,Ra),Ti(n)}function uWe(n,a){if(!(n.flags&8388608))return n;const c=n.objectType,d=n.indexType,_=Kd(c)&&EZ(c)===2?P8e(c,0):Y_(c,0),v=!!Sg(c,Tt);if(cp(d,x=>ba(x,_)||v&&lx(x,Tt)))return a.kind===212&&eg(a)&&Wr(c)&32&&Fh(c)&1&&qe(a,f.Index_signature_in_type_0_only_permits_reading,Hn(c)),n;if(HT(c)){const x=LZ(d,a);if(x){const k=ZT(Ld(c),F=>va(F,x));if(k&&xf(k)&6)return qe(a,f.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Vi(x)),_t}}return qe(a,f.Type_0_cannot_be_used_to_index_type_1,Hn(d),Hn(c)),_t}function K_t(n){Ra(n.objectType),Ra(n.indexType),uWe(G8e(n),n)}function X_t(n){Y_t(n),Ra(n.typeParameter),Ra(n.nameType),Ra(n.type),n.type||uE(n,j);const a=Oge(n),c=cy(a);if(c)nd(c,Fs,n.nameType);else{const d=yf(a);nd(d,Fs,Jx(n.typeParameter))}}function Y_t(n){var a;if((a=n.members)!=null&&a.length)return Sn(n.members[0],f.A_mapped_type_may_not_declare_properties_or_methods)}function $_t(n){FZ(n)}function Q_t(n){_yt(n),Ra(n.type)}function Z_t(n){Uo(n,Ra)}function eht(n){Vn(n,c=>c.parent&&c.parent.kind===194&&c.parent.extendsType===c)||Sn(n,f.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Ra(n.typeParameter);const a=Ir(n.typeParameter);if(a.declarations&&a.declarations.length>1){const c=Ki(a);if(!c.typeParametersChecked){c.typeParametersChecked=!0;const d=WT(a),_=Dre(a,168);if(!zWe(_,[d],v=>[v])){const v=Si(a);for(const x of _)qe(x.name,f.All_declarations_of_0_must_have_identical_constraints,v)}}}jb(n)}function tht(n){for(const a of n.templateSpans){Ra(a.type);const c=Ti(a.type);nd(c,ko,a.type)}Ti(n)}function nht(n){Ra(n.argument),n.attributes&&uD(n.attributes,Sn),cWe(n)}function rht(n){n.dotDotDotToken&&n.questionToken&&Sn(n,f.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===190&&Sn(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&&Sn(n.type,f.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),Ra(n.type),Ti(n)}function lB(n){return(_p(n,2)||sd(n))&&!!(n.flags&33554432)}function Uee(n,a){let c=ute(n);if(n.parent.kind!==264&&n.parent.kind!==263&&n.parent.kind!==231&&n.flags&33554432){const d=lj(n);d&&d.flags&128&&!(c&128)&&!(L_(n.parent)&&Xl(n.parent.parent)&&A_(n.parent.parent))&&(c|=32),c|=128}return c&a}function Hee(n){r(()=>iht(n))}function iht(n){function a(ln,Bn){return Bn!==void 0&&Bn.parent===ln[0].parent?Bn:ln[0]}function c(ln,Bn,zn,tr,Kn){if((tr^Kn)!==0){const Ro=Uee(a(ln,Bn),zn);Xe(ln,Eo=>{const Bo=Uee(Eo,zn)^Ro;Bo&32?qe(Lo(Eo),f.Overload_signatures_must_all_be_exported_or_non_exported):Bo&128?qe(Lo(Eo),f.Overload_signatures_must_all_be_ambient_or_non_ambient):Bo&6?qe(Lo(Eo)||Eo,f.Overload_signatures_must_all_be_public_private_or_protected):Bo&64&&qe(Lo(Eo),f.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function d(ln,Bn,zn,tr){if(zn!==tr){const Kn=CA(a(ln,Bn));Xe(ln,nr=>{CA(nr)!==Kn&&qe(Lo(nr),f.Overload_signatures_must_all_be_optional_or_required)})}}const _=230;let v=0,x=_,k=!1,F=!0,H=!1,re,be,ge;const Je=n.declarations,gt=(n.flags&16384)!==0;function Dt(ln){if(ln.name&&Fl(ln.name))return;let Bn=!1;const zn=Uo(ln.parent,Kn=>{if(Bn)return Kn;Bn=Kn===ln});if(zn&&zn.pos===ln.end&&zn.kind===ln.kind){const Kn=zn.name||zn,nr=zn.name;if(ln.name&&nr&&(qi(ln.name)&&qi(nr)&&ln.name.escapedText===nr.escapedText||Za(ln.name)&&Za(nr)&&fv(Tg(ln.name),Tg(nr))||x_(ln.name)&&x_(nr)&&CC(ln.name)===CC(nr))){if((ln.kind===174||ln.kind===173)&&aa(ln)!==aa(zn)){const Eo=aa(ln)?f.Function_overload_must_be_static:f.Function_overload_must_not_be_static;qe(Kn,Eo)}return}if(Kf(zn.body)){qe(Kn,f.Function_implementation_name_must_be_0,xs(ln.name));return}}const tr=ln.name||ln;gt?qe(tr,f.Constructor_implementation_is_missing):Qr(ln,64)?qe(tr,f.All_declarations_of_an_abstract_method_must_be_consecutive):qe(tr,f.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let an=!1,cn=!1,ar=!1;const Wn=[];if(Je)for(const ln of Je){const Bn=ln,zn=Bn.flags&33554432,tr=Bn.parent&&(Bn.parent.kind===264||Bn.parent.kind===187)||zn;if(tr&&(ge=void 0),(Bn.kind===263||Bn.kind===231)&&!zn&&(ar=!0),Bn.kind===262||Bn.kind===174||Bn.kind===173||Bn.kind===176){Wn.push(Bn);const Kn=Uee(Bn,_);v|=Kn,x&=Kn,k=k||CA(Bn),F=F&&CA(Bn);const nr=Kf(Bn.body);nr&&re?gt?cn=!0:an=!0:(ge==null?void 0:ge.parent)===Bn.parent&&ge.end!==Bn.pos&&Dt(ge),nr?re||(re=Bn):H=!0,ge=Bn,tr||(be=Bn)}lr(ln)&&ea(ln)&&ln.jsDoc&&(H=Ne(Ij(ln))>0)}if(cn&&Xe(Wn,ln=>{qe(ln,f.Multiple_constructor_implementations_are_not_allowed)}),an&&Xe(Wn,ln=>{qe(Lo(ln)||ln,f.Duplicate_function_implementation)}),ar&&!gt&&n.flags&16&&Je){const ln=mn(Je,Bn=>Bn.kind===263).map(Bn=>kr(Bn,f.Consider_adding_a_declare_modifier_to_this_class));Xe(Je,Bn=>{const zn=Bn.kind===263?f.Class_declaration_cannot_implement_overload_list_for_0:Bn.kind===262?f.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;zn&&Ma(qe(Lo(Bn)||Bn,zn,El(n)),...ln)})}if(be&&!be.body&&!Qr(be,64)&&!be.questionToken&&Dt(be),H&&(Je&&(c(Je,re,_,v,x),d(Je,re,k,F)),re)){const ln=z1(n),Bn=dm(re);for(const zn of ln)if(!Aut(Bn,zn)){const tr=zn.declaration&&E0(zn.declaration)?zn.declaration.parent.tagName:zn.declaration;Ma(qe(tr,f.This_overload_signature_is_not_compatible_with_its_implementation_signature),kr(re,f.The_implementation_signature_is_declared_here));break}}}function $8(n){r(()=>oht(n))}function oht(n){let a=n.localSymbol;if(!a&&(a=Ir(n),!a.exportSymbol)||pl(a,n.kind)!==n)return;let c=0,d=0,_=0;for(const H of a.declarations){const re=F(H),be=Uee(H,2080);be&32?be&2048?_|=re:c|=re:d|=re}const v=c|d,x=c&d,k=_&v;if(x||k)for(const H of a.declarations){const re=F(H),be=Lo(H);re&k?qe(be,f.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,xs(be)):re&x&&qe(be,f.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,xs(be))}function F(H){let re=H;switch(re.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return ku(re)||jg(re)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:const be=re,ge=kl(be)?be.expression:be.right;if(!Bl(ge))return 1;re=ge;case 271:case 274:case 273:let Je=0;const gt=Oc(Ir(re));return Xe(gt.declarations,Dt=>{Je|=F(Dt)}),Je;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return N.failBadSyntaxKind(re)}}}function a2(n,a,c,...d){const _=Q8(n,a);return _&&oA(_,a,c,...d)}function Q8(n,a,c){if(Nt(n))return;const d=n;if(d.promisedTypeOfPromise)return d.promisedTypeOfPromise;if(Nb(n,p9(!1)))return d.promisedTypeOfPromise=Js(n)[0];if(oB(uv(n),402915324))return;const _=Ke(n,"then");if(Nt(_))return;const v=_?Xo(_,0):et;if(v.length===0){a&&qe(a,f.A_promise_must_have_a_then_method);return}let x,k;for(const re of v){const be=oE(re);be&&be!==ir&&!$_(n,be,Nh)?x=be:k=Rn(k,re)}if(!k){N.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,Hn(n),Hn(x));return}const F=mm(ei(Wt(k,Eye)),2097152);if(Nt(F))return;const H=Xo(F,0);if(H.length===0){a&&qe(a,f.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return d.promisedTypeOfPromise=ei(Wt(H,Eye),2)}function Z8(n,a,c,d,..._){return(a?oA(n,c,d,..._):_y(n,c,d,..._))||_t}function dWe(n){if(oB(uv(n),402915324))return!1;const a=Ke(n,"then");return!!a&&Xo(mm(a,2097152),0).length>0}function qee(n){var a;if(n.flags&16777216){const c=Tge(!1);return!!c&&n.aliasSymbol===c&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function s2(n){return n.flags&1048576?dl(n,s2):qee(n)?n.aliasTypeArguments[0]:n}function pWe(n){if(Nt(n)||qee(n))return!1;if(HT(n)){const a=Gu(n);if(a?a.flags&3||mv(a)||Gm(a,dWe):Cl(n,8650752))return!0}return!1}function aht(n){const a=Tge(!0);if(a)return EN(a,[s2(n)])}function sht(n){if(pWe(n)){const a=aht(n);if(a)return a}return N.assert(qee(n)||Q8(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n}function oA(n,a,c,...d){const _=_y(n,a,c,...d);return _&&sht(_)}function _y(n,a,c,...d){if(Nt(n)||qee(n))return n;const _=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}const k=a?H=>_y(H,a,c,...d):_y;F0.push(n.id);const F=dl(n,k);return F0.pop(),_.awaitedTypeOfType=F}if(pWe(n))return _.awaitedTypeOfType=n;const v={value:void 0},x=Q8(n,void 0,v);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);const k=_y(x,a,c,...d);return F0.pop(),k?_.awaitedTypeOfType=k:void 0}if(dWe(n)){if(a){N.assertIsDefined(c);let k;v.value&&(k=Vo(k,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Hn(n),Hn(v.value))),k=Vo(k,c,...d),ts.add(Lg(Un(a),a,k))}return}return _.awaitedTypeOfType=n}function lht(n,a,c){const d=Ti(a);if(se>=2){if(Jt(d))return;const v=p9(!0);if(v!==wo&&!Nb(d,v)){_(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,Hn(_y(d)||ir));return}}else{if(uht(a),Jt(d))return;const v=ML(a);if(v===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,Hn(d));return}const x=Hs(v,111551,!0),k=x?dr(x):_t;if(Jt(k)){v.kind===80&&v.escapedText==="Promise"&&ly(d)===p9(!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(v));return}const F=klt(!0);if(F===Ca){_(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(v));return}const H=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(!nd(k,F,c,H,()=>a===c?void 0:Vo(void 0,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const be=v&&Gp(v),ge=Jd(n.locals,be.escapedText,111551);if(ge){qe(ge.valueDeclaration,f.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Er(be),fp(v));return}}Z8(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 _(v,x,k,F){if(x===k)qe(k,v,F);else{const H=qe(k,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);Ma(H,kr(x,v,F))}}}function cht(n){const a=PN(n);Wee(a,n);const c=ps(a);if(c.flags&1)return;const d=Aye(n);if(!(d!=null&&d.resolvedReturnType))return;let _;const v=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 N.failBadSyntaxKind(n.parent)}nd(c,v,n.expression,_)}function e6(n,a,c,d,_,v=c.length,x=0){const k=w.createFunctionTypeNode(void 0,et,w.createKeywordTypeNode(133));return Eg(k,n,a,c,d,_,v,x)}function Wye(n,a,c,d,_,v,x){const k=e6(n,a,c,d,_,v,x);return VT(k)}function fWe(n){return Wye(void 0,void 0,et,n)}function mWe(n){const a=o_("value",n);return Wye(void 0,void 0,[a],ir)}function uht(n){_We(n&&ML(n),!1)}function _We(n,a){if(!n)return;const c=Gp(n),d=(n.kind===80?788968:1920)|2097152,_=yl(c,c.escapedText,d,void 0,void 0,!0);if(_&&_.flags&2097152){if(It&&Fm(_)&&!i6(Oc(_))&&!Of(_))gb(_);else if(a&&rm(V)&&wu(V)>=5&&!Fm(_)&&!bt(_.declarations,s0)){const v=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=In(_.declarations||et,fb);x&&Ma(v,kr(x,f._0_was_imported_here,Er(c)))}}}function kN(n){const a=Fye(n);a&&Qd(a)&&_We(a,!0)}function Fye(n){if(n)switch(n.kind){case 193:case 192:return hWe(n.types);case 194:return hWe([n.trueType,n.falseType]);case 196:case 202:return Fye(n.type);case 183:return n.typeName}}function hWe(n){let a;for(let c of n){for(;c.kind===196||c.kind===202;)c=c.type;if(c.kind===146||!X&&(c.kind===201&&c.literal.kind===106||c.kind===157))continue;const d=Fye(c);if(!d)return;if(a){if(!Ve(a)||!Ve(d)||a.escapedText!==d.escapedText)return}else a=d}return a}function Jee(n){const a=yu(n);return Xh(n)?pj(a):a}function cB(n){if(!qS(n)||!Tf(n)||!n.modifiers||!K4(ne,n,n.parent,n.parent.parent))return;const a=In(n.modifiers,Eu);if(a){if(ne?(Dc(a,8),n.kind===169&&Dc(a,32)):se<99&&(Dc(a,8),Ac(n)?n.name?BWe(n)&&Dc(a,8388608):Dc(a,8388608):Qc(n)||(qi(n.name)&&(Hl(n)||Cy(n)||Wd(n))&&Dc(a,8388608),Za(n.name)&&Dc(a,16777216))),V.emitDecoratorMetadata)switch(Dc(a,16),n.kind){case 263:const c=ng(n);if(c)for(const x of c.parameters)kN(Jee(x));break;case 177:case 178:const d=n.kind===177?178:177,_=pl(Ir(n),d);kN(zm(n)||_&&zm(_));break;case 174:for(const x of n.parameters)kN(Jee(x));kN(em(n));break;case 172:kN(yu(n));break;case 169:kN(Jee(n));const v=n.parent;for(const x of v.parameters)kN(Jee(x));kN(em(v));break}for(const c of n.modifiers)Eu(c)&&cht(c)}}function dht(n){r(a);function a(){vWe(n),sbe(n),l2(n,n.name)}}function pht(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&&u2(n.name,f.Type_alias_name_cannot_be_0),Ra(n.typeExpression),_B(Dy(n))}function fht(n){Ra(n.constraint);for(const a of n.typeParameters)Ra(a)}function mht(n){Ra(n.typeExpression)}function _ht(n){Ra(n.typeExpression);const a=p0(n);if(a){const c=u4(a,eF);if(Ne(c)>1)for(let d=1;d<Ne(c);d++){const _=c[d].tagName;qe(_,f._0_tag_already_specified,Er(_))}}}function hht(n){n.name&&gB(n.name,!0)}function ght(n){Ra(n.typeExpression)}function vht(n){Ra(n.typeExpression)}function yht(n){r(a),Y8(n);function a(){!n.type&&!_R(n)&&uE(n,j)}}function bht(n){const a=p0(n);a&&Gs(a)&&qe(n.tagName,f.An_arrow_function_cannot_have_a_this_parameter)}function Eht(n){const a=p0(n);(!a||!Ac(a)&&!Qc(a))&&qe(a,f.JSDoc_0_is_not_attached_to_a_class,Er(n.tagName))}function Sht(n){const a=p0(n);if(!a||!Ac(a)&&!Qc(a)){qe(a,f.JSDoc_0_is_not_attached_to_a_class,Er(n.tagName));return}const c=a0(a).filter(uI);N.assert(c.length>0),c.length>1&&qe(c[1],f.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const d=gWe(n.class.expression),_=FE(a);if(_){const v=gWe(_.expression);v&&d.escapedText!==v.escapedText&&qe(d,f.JSDoc_0_1_does_not_match_the_extends_2_clause,Er(n.tagName),Er(d),Er(v))}}function Tht(n){const a=AS(n);a&&sd(a)&&qe(n,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function gWe(n){switch(n.kind){case 80:return n;case 211:return n.name;default:return}}function vWe(n){var a;cB(n),Y8(n);const c=Bc(n);if(n.name&&n.name.kind===167&&Tg(n.name),gN(n)){const v=Ir(n),x=n.localSymbol||v,k=(a=x.declarations)==null?void 0:a.find(F=>F.kind===n.kind&&!(F.flags&524288));n===k&&Hee(x),v.parent&&Hee(v)}const d=n.kind===173?void 0:n.body;if(Ra(d),Iye(n,yN(n)),r(_),lr(n)){const v=i0(n);v&&v.typeExpression&&!jve(Ti(v.typeExpression),n)&&qe(v.typeExpression.type,f.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function _(){em(n)||(Fl(d)&&!lB(n)&&uE(n,j),c&1&&Kf(d)&&ps(dm(n)))}}function jb(n){r(a);function a(){const c=Un(n);let d=pf.get(c.path);d||(d=[],pf.set(c.path,d)),d.push(n)}}function yWe(n,a){for(const c of n)switch(c.kind){case 263:case 231:Aht(c,a),zye(c,a);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:SWe(c,a);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:c.body&&SWe(c,a),zye(c,a);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:zye(c,a);break;case 195:Iht(c,a);break;default:N.assertNever(c,"Node should not have been registered for unused identifiers check")}}function bWe(n,a,c){const d=Lo(n)||n,_=kR(n)?f._0_is_declared_but_never_used:f._0_is_declared_but_its_value_is_never_read;c(n,0,kr(d,_,a))}function t6(n){return Ve(n)&&Er(n).charCodeAt(0)===95}function Aht(n,a){for(const c of n.members)switch(c.kind){case 174:case 172:case 177:case 178:if(c.kind===178&&c.symbol.flags&32768)break;const d=Ir(c);!d.isReferenced&&(_p(c,2)||ad(c)&&qi(c.name))&&!(c.flags&33554432)&&a(c,0,kr(c.name,f._0_is_declared_but_its_value_is_never_read,Si(d)));break;case 176:for(const _ of c.parameters)!_.symbol.isReferenced&&Qr(_,2)&&a(_,0,kr(_.name,f.Property_0_is_declared_but_its_value_is_never_read,El(_.symbol)));break;case 181:case 240:case 175:break;default:N.fail("Unexpected class member")}}function Iht(n,a){const{typeParameter:c}=n;Bye(c)&&a(n,1,kr(n,f._0_is_declared_but_its_value_is_never_read,Er(c.name)))}function zye(n,a){const c=Ir(n).declarations;if(!c||Xa(c)!==n)return;const d=Dy(n),_=new Set;for(const v of d){if(!Bye(v))continue;const x=Er(v.name),{parent:k}=v;if(k.kind!==195&&k.typeParameters.every(Bye)){if(Xb(_,k)){const F=Un(k),H=om(k)?gU(k):vU(F,k.typeParameters),be=k.typeParameters.length===1?[f._0_is_declared_but_its_value_is_never_read,x]:[f.All_type_parameters_are_unused];a(v,1,$c(F,H.pos,H.end-H.pos,...be))}}else a(v,1,kr(v,f._0_is_declared_but_its_value_is_never_read,x))}}function Bye(n){return!(rs(n.symbol).isReferenced&262144)&&!t6(n.name)}function uB(n,a,c,d){const _=String(d(a)),v=n.get(_);v?v[1].push(c):n.set(_,[a,[c]])}function EWe(n){return ri(R_(n),Ao)}function xht(n){return $a(n)?im(n.parent)?!!(n.propertyName&&t6(n.name)):t6(n.name):ku(n)||(Oi(n)&&Yx(n.parent.parent)||TWe(n))&&t6(n.name)}function SWe(n,a){const c=new Map,d=new Map,_=new Map;n.locals.forEach(v=>{if(!(v.flags&262144?!(v.flags&3&&!(v.isReferenced&3)):v.isReferenced||v.exportSymbol)&&v.declarations){for(const x of v.declarations)if(!xht(x))if(TWe(x))uB(c,Dht(x),x,as);else if($a(x)&&im(x.parent)){const k=Xa(x.parent.elements);(x===k||!Xa(x.parent.elements).dotDotDotToken)&&uB(d,x.parent,x,as)}else if(Oi(x)){const k=eS(x)&7,F=Lo(x);(k!==4&&k!==6||!F||!t6(F))&&uB(_,x.parent,x,as)}else{const k=v.valueDeclaration&&EWe(v.valueDeclaration),F=v.valueDeclaration&&Lo(v.valueDeclaration);k&&F?!pp(k,k.parent)&&!GE(k)&&!t6(F)&&($a(x)&&YE(x.parent)?uB(d,x.parent,x,as):a(k,1,kr(F,f._0_is_declared_but_its_value_is_never_read,El(v)))):bWe(x,El(v),a)}}}),c.forEach(([v,x])=>{const k=v.parent;if((v.name?1:0)+(v.namedBindings?v.namedBindings.kind===274?1:v.namedBindings.elements.length:0)===x.length)a(k,0,x.length===1?kr(k,f._0_is_declared_but_its_value_is_never_read,Er(Ua(x).name)):kr(k,f.All_imports_in_import_declaration_are_unused));else for(const H of x)bWe(H,Er(H.name),a)}),d.forEach(([v,x])=>{const k=EWe(v.parent)?1:0;if(v.elements.length===x.length)x.length===1&&v.parent.kind===260&&v.parent.parent.kind===261?uB(_,v.parent.parent,v.parent,as):a(v,k,x.length===1?kr(v,f._0_is_declared_but_its_value_is_never_read,dB(Ua(x).name)):kr(v,f.All_destructured_elements_are_unused));else for(const F of x)a(F,k,kr(F,f._0_is_declared_but_its_value_is_never_read,dB(F.name)))}),_.forEach(([v,x])=>{if(v.declarations.length===x.length)a(v,0,x.length===1?kr(Ua(x).name,f._0_is_declared_but_its_value_is_never_read,dB(Ua(x).name)):kr(v.parent.kind===243?v.parent:v,f.All_variables_are_unused));else for(const k of x)a(k,0,kr(k,f._0_is_declared_but_its_value_is_never_read,dB(k.name)))})}function Rht(){var n;for(const a of pg)if(!((n=Ir(a))!=null&&n.isReferenced)){const c=Hx(a);N.assert(zE(c),"Only parameter declaration should be checked here");const d=kr(a.name,f._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,xs(a.name),xs(a.propertyName));c.type||Ma(d,$c(Un(c),c.end,1,f.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,xs(a.propertyName))),ts.add(d)}}function dB(n){switch(n.kind){case 80:return Er(n);case 207:case 206:return dB(oa(Ua(n.elements),$a).name);default:return N.assertNever(n)}}function TWe(n){return n.kind===273||n.kind===276||n.kind===274}function Dht(n){return n.kind===273?n:n.kind===274?n.parent:n.parent.parent}function Kee(n){if(n.kind===241&&vv(n),OV(n)){const a=ze;Xe(n.statements,Ra),ze=a}else Xe(n.statements,Ra);n.locals&&jb(n)}function Nht(n){se>=2||!UV(n)||n.flags&33554432||Fl(n.body)||Xe(n.parameters,a=>{a.name&&!ta(a.name)&&a.name.escapedText===Bt.escapedName&&r_("noEmit",a,f.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function n6(n,a,c){if((a==null?void 0: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)||eu(n)||tp(n))&&s0(n))return!1;const d=R_(n);return!(Ao(d)&&Fl(d.parent.body))}function Cht(n){Vn(n,a=>ON(a)&4?(n.kind!==80?qe(Lo(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 Pht(n){Vn(n,a=>ON(a)&8?(n.kind!==80?qe(Lo(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 Mht(n,a){if(G>=5&&!(G>=100&&Un(n).impliedNodeFormat===1)||!a||!n6(n,a,"require")&&!n6(n,a,"exports")||Xl(n)&&jg(n)!==1)return;const c=$(n);c.kind===312&&Fp(c)&&r_("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,xs(a),xs(a))}function Lht(n,a){if(!a||se>=4||!n6(n,a,"Promise")||Xl(n)&&jg(n)!==1)return;const c=$(n);c.kind===312&&Fp(c)&&c.flags&4096&&r_("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,xs(a),xs(a))}function kht(n,a){se<=8&&(n6(n,a,"WeakMap")||n6(n,a,"WeakSet"))&&sb.push(n)}function wht(n){const a=_h(n);ON(a)&1048576&&(N.assert(ad(n)&&Ve(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),r_("noEmit",n,f.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function Oht(n,a){a&&se>=2&&se<=8&&n6(n,a,"Reflect")&&lb.push(n)}function Wht(n){let a=!1;if(Qc(n)){for(const c of n.members)if(ON(c)&2097152){a=!0;break}}else if(Os(n))ON(n)&2097152&&(a=!0);else{const c=_h(n);c&&ON(c)&2097152&&(a=!0)}a&&(N.assert(ad(n)&&Ve(n.name),"The target of a Reflect collision check should be an identifier"),r_("noEmit",n,f.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,xs(n.name),"Reflect"))}function l2(n,a){a&&(Mht(n,a),Lht(n,a),kht(n,a),Oht(n,a),di(n)?(u2(a,f.Class_name_cannot_be_0),n.flags&33554432||dgt(a)):y0(n)&&u2(a,f.Enum_name_cannot_be_0))}function Fht(n){if(eS(n)&7||zE(n))return;const a=Ir(n);if(a.flags&1){if(!Ve(n.name))return N.fail();const c=yl(n,n.name.escapedText,3,void 0,void 0,!1);if(c&&c!==a&&c.flags&2&&$ve(c)&7){const d=f0(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))){const x=Si(c);qe(n,f.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,x,x)}}}}function r6(n){return n===it?j:n===Hc?ec:n}function pB(n){var a;if(cB(n),$a(n)||Ra(n.type),!n.name)return;if(n.name.kind===167&&(Tg(n.name),_S(n)&&n.initializer&&nc(n.initializer)),$a(n)){if(n.propertyName&&Ve(n.name)&&zE(n)&&Fl(Bp(n).body)){pg.push(n);return}im(n.parent)&&n.dotDotDotToken&&se<5&&Dc(n,4),n.propertyName&&n.propertyName.kind===167&&Tg(n.propertyName);const _=n.parent.parent,v=n.dotDotDotToken?32:0,x=zr(_,v),k=n.propertyName||n.name;if(x&&!ta(k)){const F=py(k);if(tm(F)){const H=nm(F),re=va(x,H);re&&(J9(re,void 0,!1),Zve(n,!!_.initializer&&_.initializer.kind===108,!1,x,re))}}}if(ta(n.name)&&(n.name.kind===207&&se<2&&V.downlevelIteration&&Dc(n,512),Xe(n.name.elements,Ra)),n.initializer&&zE(n)&&Fl(Bp(n).body)){qe(n,f.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(ta(n.name)){if(Tve(n))return;const _=_S(n)&&n.initializer&&n.parent.parent.kind!==249,v=!bt(n.name.elements,N6(Gc));if(_||v){const x=B(n);if(_){const k=nc(n.initializer);X&&v?U4e(k,n):Fb(k,B(n),n,n.initializer)}v&&(YE(n.name)?hy(65,x,Oe,n):X&&U4e(x,n))}return}const c=Ir(n);if(c.flags&2097152&&(wE(n)||uie(n))){Zee(n);return}const d=r6(dr(c));if(n===c.valueDeclaration){const _=_S(n)&&OL(n);if(_&&!(lr(n)&&La(_)&&(_.properties.length===0||zy(n.name))&&!!((a=c.exports)!=null&&a.size))&&n.parent.parent.kind!==249){const x=nc(_);Fb(x,d,n,_,void 0);const k=eS(n)&7;if(k===6){const F=jlt(!0),H=m8e(!0);if(F!==Ca&&H!==Ca){const re=ei([F,H,fe,Oe]);nd(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(k===4){const F=m8e(!0);if(F!==Ca){const H=ei([F,fe,Oe]);nd(x,H,_,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&&bt(c.declarations,v=>v!==n&&aR(v)&&!IWe(v,n))&&qe(n.name,f.All_declarations_of_0_must_have_identical_modifiers,xs(n.name))}else{const _=r6(B(n));!Jt(d)&&!Jt(_)&&!fv(d,_)&&!(c.flags&67108864)&&AWe(c.valueDeclaration,d,n,_),_S(n)&&n.initializer&&Fb(nc(n.initializer),_,n,n.initializer,void 0),c.valueDeclaration&&!IWe(n,c.valueDeclaration)&&qe(n.name,f.All_declarations_of_0_must_have_identical_modifiers,xs(n.name))}n.kind!==172&&n.kind!==171&&($8(n),(n.kind===260||n.kind===208)&&Fht(n),l2(n,n.name))}function AWe(n,a,c,d){const _=Lo(c),v=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=xs(_),k=qe(_,v,x,Hn(a),Hn(d));n&&Ma(k,kr(n,f._0_was_also_declared_here,x))}function IWe(n,a){if(n.kind===169&&a.kind===260||n.kind===260&&a.kind===169)return!0;if(CA(n)!==CA(a))return!1;const c=1358;return wA(n,c)===wA(a,c)}function zht(n){var a,c;(a=sr)==null||a.push(sr.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),byt(n),pB(n),(c=sr)==null||c.pop()}function Bht(n){return gyt(n),pB(n)}function Xee(n){const a=Cv(n)&7;(a===4||a===6)&&Dc(n,33554432),Xe(n.declarations,Ra)}function Ght(n){!Ig(n)&&!ube(n.declarationList)&&Eyt(n),Xee(n.declarationList)}function Vht(n){vv(n),mo(n.expression)}function jht(n){vv(n);const a=c2(n.expression);Gye(n.expression,a,n.thenStatement),Ra(n.thenStatement),n.thenStatement.kind===242&&qe(n.thenStatement,f.The_body_of_an_if_statement_cannot_be_the_empty_statement),Ra(n.elseStatement)}function Gye(n,a,c){if(!X)return;d(n,c);function d(v,x){for(v=hs(v),_(v,x);mr(v)&&(v.operatorToken.kind===57||v.operatorToken.kind===61);)v=hs(v.left),_(v,x)}function _(v,x){const k=sk(v)?hs(v.right):v;if(Zh(k))return;if(sk(k)){d(k,x);return}const F=k===v?a:c2(k),H=Fr(k)&&X3e(k.expression);if(!fm(F,4194304)||H)return;const re=Xo(F,0),be=!!a2(F);if(re.length===0&&!be)return;const ge=Ve(k)?k:Fr(k)?k.name:void 0,Je=ge&&Vm(ge);if(!Je&&!be)return;Je&&mr(v.parent)&&Hht(v.parent,Je)||Je&&x&&Uht(v,x,ge,Je)||(be?G0(k,!0,f.This_condition_will_always_return_true_since_this_0_is_always_defined,Eb(F)):qe(k,f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function Uht(n,a,c,d){return!!Uo(a,function _(v){if(Ve(v)){const x=Vm(v);if(x&&x===d){if(Ve(n)||Ve(c)&&mr(c.parent))return!0;let k=c.parent,F=v.parent;for(;k&&F;){if(Ve(k)&&Ve(F)||k.kind===110&&F.kind===110)return Vm(k)===Vm(F);if(Fr(k)&&Fr(F)){if(Vm(k.name)!==Vm(F.name))return!1;F=F.expression,k=k.expression}else if(sa(k)&&sa(F))F=F.expression,k=k.expression;else return!1}}}return Uo(v,_)})}function Hht(n,a){for(;mr(n)&&n.operatorToken.kind===56;){if(Uo(n.right,function d(_){if(Ve(_)){const v=Vm(_);if(v&&v===a)return!0}return Uo(_,d)}))return!0;n=n.parent}return!1}function qht(n){vv(n),Ra(n.statement),c2(n.expression)}function Jht(n){vv(n),c2(n.expression),Ra(n.statement)}function Vye(n,a){return n.flags&16384&&qe(a,f.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function c2(n,a){return Vye(mo(n,a),n)}function Kht(n){vv(n)||n.initializer&&n.initializer.kind===261&&ube(n.initializer),n.initializer&&(n.initializer.kind===261?Xee(n.initializer):mo(n.initializer)),n.condition&&c2(n.condition),n.incrementor&&mo(n.incrementor),Ra(n.statement),n.locals&&jb(n)}function Xht(n){SFe(n);const a=j4(n);if(n.awaitModifier?a&&Rl(a)?Sn(n.awaitModifier,f.for_await_loops_cannot_be_used_inside_a_class_static_block):(Bc(a)&6)===2&&se<99&&Dc(n,16384):V.downlevelIteration&&se<2&&Dc(n,256),n.initializer.kind===261)Xee(n.initializer);else{const c=n.initializer,d=fB(n);if(c.kind===209||c.kind===210)iA(c,d||_t);else{const _=mo(c);X8(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&&Fb(d,_,c,n.expression)}}Ra(n.statement),n.locals&&jb(n)}function Yht(n){SFe(n);const a=eye(mo(n.expression));if(n.initializer.kind===261){const 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),Xee(n.initializer)}else{const c=n.initializer,d=mo(c);c.kind===209||c.kind===210?qe(c,f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):ba(Cct(a),d)?X8(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,Hn(a)),Ra(n.statement),n.locals&&jb(n)}function fB(n){const a=n.awaitModifier?15:13;return hy(a,NN(n.expression),Oe,n.expression)}function hy(n,a,c,d){return Nt(a)?a:jye(n,a,c,d,!0)||j}function jye(n,a,c,d,_){const v=(n&2)!==0;if(a===Vr){Kye(d,a,v);return}const x=se>=2,k=!x&&V.downlevelIteration,F=V.noUncheckedIndexedAccess&&!!(n&128);if(x||k||v){const gt=$ee(a,n,x?d:void 0);if(_&>){const Dt=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;Dt&&nd(c,gt.nextType,d,Dt)}if(gt||x)return F?V8(gt&>.yieldType):gt&>.yieldType}let H=a,re=!1,be=!1;if(n&4){if(H.flags&1048576){const gt=a.types,Dt=mn(gt,an=>!(an.flags&402653316));Dt!==gt&&(H=ei(Dt,2))}else H.flags&402653316&&(H=Vr);if(be=H!==a,be&&(se<1&&d&&(qe(d,f.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),re=!0),H.flags&131072))return F?V8(ke):ke}if(!my(H)){if(d&&!re){const gt=!!(n&4)&&!be,[Dt,an]=Je(gt,k);G0(d,an&&!!a2(H),Dt,Hn(H))}return be?F?V8(ke):ke:void 0}const ge=iE(H,Tt);if(be&&ge)return ge.flags&402653316&&!V.noUncheckedIndexedAccess?ke:ei(F?[ge,ke,Oe]:[ge,ke],2);return n&128?V8(ge):ge;function Je(gt,Dt){var an;return Dt?gt?[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]:Uye(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]:$ht((an=a.symbol)==null?void 0:an.escapedName)?[f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:gt?[f.Type_0_is_not_an_array_type_or_a_string_type,!0]:[f.Type_0_is_not_an_array_type,!0]}}function $ht(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 Uye(n,a,c,d){if(Nt(c))return;const _=$ee(c,n,d);return _&&_[FIe(a)]}function gy(n=Vr,a=Vr,c=hn){if(n.flags&67359327&&a.flags&180227&&c.flags&180227){const d=pm([n,a,c]);let _=Di.get(d);return _||(_={yieldType:n,returnType:a,nextType:c},Di.set(d,_)),_}return{yieldType:n,returnType:a,nextType:c}}function xWe(n){let a,c,d;for(const _ of n)if(!(_===void 0||_===Mr)){if(_===Yo)return Yo;a=Rn(a,_.yieldType),c=Rn(c,_.returnType),d=Rn(d,_.nextType)}return a||c||d?gy(a&&ei(a),c&&ei(c),d&&ya(d)):Mr}function Yee(n,a){return n[a]}function Ag(n,a,c){return n[a]=c}function $ee(n,a,c){var d,_;if(Nt(n))return Yo;if(!(n.flags&1048576)){const H=c?{errors:void 0}:void 0,re=RWe(n,a,c,H);if(re===Mr){if(c){const be=Kye(c,n,!!(a&2));H!=null&&H.errors&&Ma(be,...H.errors)}return}else if((d=H==null?void 0:H.errors)!=null&&d.length)for(const be of H.errors)ts.add(be);return re}const v=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",x=Yee(n,v);if(x)return x===Mr?void 0:x;let k;for(const H of n.types){const re=c?{errors:void 0}:void 0,be=RWe(H,a,c,re);if(be===Mr){if(c){const ge=Kye(c,n,!!(a&2));re!=null&&re.errors&&Ma(ge,...re.errors)}Ag(n,v,Mr);return}else if((_=re==null?void 0:re.errors)!=null&&_.length)for(const ge of re.errors)ts.add(ge);k=Rn(k,be)}const F=k?xWe(k):Mr;return Ag(n,v,F),F===Mr?void 0:F}function Hye(n,a){if(n===Mr)return Mr;if(n===Yo)return Yo;const{yieldType:c,returnType:d,nextType:_}=n;return a&&Tge(!0),gy(oA(c,a)||j,oA(d,a)||j,_)}function RWe(n,a,c,d){if(Nt(n))return Yo;let _=!1;if(a&2){const v=qye(n,Us)||NWe(n,Us);if(v)if(v===Mr&&c)_=!0;else return a&8?Hye(v,c):v}if(a&1){let v=qye(n,vc)||NWe(n,vc);if(v)if(v===Mr&&c)_=!0;else if(a&2){if(v!==Mr)return v=Hye(v,c),_?v:Ag(n,"iterationTypesOfAsyncIterable",v)}else return v}if(a&2){const v=Jye(n,Us,c,d,_);if(v!==Mr)return v}if(a&1){let v=Jye(n,vc,c,d,_);if(v!==Mr)return a&2?(v=Hye(v,c),_?v:Ag(n,"iterationTypesOfAsyncIterable",v)):v}return Mr}function qye(n,a){return Yee(n,a.iterableCacheKey)}function DWe(n,a){const c=qye(n,a)||Jye(n,a,void 0,void 0,!1);return c===Mr?jc:c}function NWe(n,a){let c;if(Nb(n,c=a.getGlobalIterableType(!1))||Nb(n,c=a.getGlobalIterableIteratorType(!1))){const[d]=Js(n),{returnType:_,nextType:v}=DWe(c,a);return Ag(n,a.iterableCacheKey,gy(a.resolveIterationType(d,void 0)||d,a.resolveIterationType(_,void 0)||_,v))}if(Nb(n,a.getGlobalGeneratorType(!1))){const[d,_,v]=Js(n);return Ag(n,a.iterableCacheKey,gy(a.resolveIterationType(d,void 0)||d,a.resolveIterationType(_,void 0)||_,v))}}function CWe(n){const a=d8e(!1),c=a&&Ke(dr(a),_l(n));return c&&tm(c)?nm(c):`__@${n}`}function Jye(n,a,c,d,_){const v=va(n,CWe(a.iteratorSymbolName)),x=v&&!(v.flags&16777216)?dr(v):void 0;if(Nt(x))return _?Yo:Ag(n,a.iterableCacheKey,Yo);const k=x?Xo(x,0):void 0;if(!bt(k))return _?Mr:Ag(n,a.iterableCacheKey,Mr);const F=ya(Wt(k,ps)),H=PWe(F,a,c,d,_)??Mr;return _?H:Ag(n,a.iterableCacheKey,H)}function Kye(n,a,c){const 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,_=!!a2(a)||!c&&Hk(n.parent)&&n.parent.expression===n&&MZ(!1)!==wo&&ba(a,MZ(!1));return G0(n,_,d,Hn(a))}function Qht(n,a,c,d){return PWe(n,a,c,d,!1)}function PWe(n,a,c,d,_){if(Nt(n))return Yo;let v=MWe(n,a)||Zht(n,a);return v===Mr&&c&&(v=void 0,_=!0),v??(v=kWe(n,a,c,d,_)),v===Mr?void 0:v}function MWe(n,a){return Yee(n,a.iteratorCacheKey)}function Zht(n,a){const c=a.getGlobalIterableIteratorType(!1);if(Nb(n,c)){const[d]=Js(n),_=MWe(c,a)||kWe(c,a,void 0,void 0,!1),{returnType:v,nextType:x}=_===Mr?jc:_;return Ag(n,a.iteratorCacheKey,gy(d,v,x))}if(Nb(n,a.getGlobalIteratorType(!1))||Nb(n,a.getGlobalGeneratorType(!1))){const[d,_,v]=Js(n);return Ag(n,a.iteratorCacheKey,gy(d,_,v))}}function LWe(n,a){const c=Ke(n,"done")||en;return ba(a===0?en:Gn,c)}function egt(n){return LWe(n,0)}function tgt(n){return LWe(n,1)}function ngt(n){if(Nt(n))return Yo;const a=Yee(n,"iterationTypesOfIteratorResult");if(a)return a;if(Nb(n,Glt(!1))){const x=Js(n)[0];return Ag(n,"iterationTypesOfIteratorResult",gy(x,void 0,void 0))}if(Nb(n,Vlt(!1))){const x=Js(n)[0];return Ag(n,"iterationTypesOfIteratorResult",gy(void 0,x,void 0))}const c=dc(n,egt),d=c!==Vr?Ke(c,"value"):void 0,_=dc(n,tgt),v=_!==Vr?Ke(_,"value"):void 0;return!d&&!v?Ag(n,"iterationTypesOfIteratorResult",Mr):Ag(n,"iterationTypesOfIteratorResult",gy(d,v||ir,void 0))}function Xye(n,a,c,d,_){var v,x,k,F;const H=va(n,c);if(!H&&c!=="next")return;const re=H&&!(c==="next"&&H.flags&16777216)?c==="next"?dr(H):mm(dr(H),2097152):void 0;if(Nt(re))return c==="next"?Yo:Sl;const be=re?Xo(re,0):et;if(be.length===0){if(d){const ln=c==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;_?(_.errors??(_.errors=[]),_.errors.push(kr(d,ln,c))):qe(d,ln,c)}return c==="next"?Mr:void 0}if(re!=null&&re.symbol&&be.length===1){const ln=a.getGlobalGeneratorType(!1),Bn=a.getGlobalIteratorType(!1),zn=((x=(v=ln.symbol)==null?void 0:v.members)==null?void 0:x.get(c))===re.symbol,tr=!zn&&((F=(k=Bn.symbol)==null?void 0:k.members)==null?void 0:F.get(c))===re.symbol;if(zn||tr){const Kn=zn?ln:Bn,{mapper:nr}=re;return gy(Ob(Kn.typeParameters[0],nr),Ob(Kn.typeParameters[1],nr),c==="next"?Ob(Kn.typeParameters[2],nr):void 0)}}let ge,Je;for(const ln of be)c!=="throw"&&bt(ln.parameters)&&(ge=Rn(ge,h_(ln,0))),Je=Rn(Je,ps(ln));let gt,Dt;if(c!=="throw"){const ln=ge?ei(ge):hn;if(c==="next")Dt=ln;else if(c==="return"){const Bn=a.resolveIterationType(ln,d)||j;gt=Rn(gt,Bn)}}let an;const cn=Je?ya(Je):Vr,ar=a.resolveIterationType(cn,d)||j,Wn=ngt(ar);return Wn===Mr?(d&&(_?(_.errors??(_.errors=[]),_.errors.push(kr(d,a.mustHaveAValueDiagnostic,c))):qe(d,a.mustHaveAValueDiagnostic,c)),an=j,gt=Rn(gt,j)):(an=Wn.yieldType,gt=Rn(gt,Wn.returnType)),gy(an,ei(gt),Dt)}function kWe(n,a,c,d,_){const v=xWe([Xye(n,a,"next",c,d),Xye(n,a,"return",c,d),Xye(n,a,"throw",c,d)]);return _?v:Ag(n,a.iteratorCacheKey,v)}function $1(n,a,c){if(Nt(a))return;const d=wWe(a,c);return d&&d[FIe(n)]}function wWe(n,a){if(Nt(n))return Yo;const c=a?2:1,d=a?Us:vc;return $ee(n,c,void 0)||Qht(n,d,void 0,void 0)}function rgt(n){vv(n)||hyt(n)}function mB(n,a){const c=!!(a&1),d=!!(a&2);if(c){const _=$1(1,n,d);return _?d?_y(s2(_)):_:_t}return d?_y(n)||_t:n}function OWe(n,a){const c=mB(a,Bc(n));return!!(c&&(Cl(c,16384)||c.flags&32769))}function igt(n){if(vv(n))return;const a=j4(n);if(a&&Rl(a)){_u(n,f.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){_u(n,f.A_return_statement_can_only_be_used_within_a_function_body);return}const c=dm(a),d=ps(c),_=Bc(a);if(X||n.expression||d.flags&131072){const v=n.expression?nc(n.expression):Oe;if(a.kind===178)n.expression&&qe(n,f.Setters_cannot_return_a_value);else if(a.kind===176)n.expression&&!Fb(v,d,n,n.expression)&&qe(n,f.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(yN(a)){const x=mB(d,_)??d,k=_&2?Z8(v,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):v;x&&Fb(k,x,n,n.expression)}}else a.kind!==176&&V.noImplicitReturns&&!OWe(a,d)&&qe(n,f.Not_all_code_paths_return_a_value)}function ogt(n){vv(n)||n.flags&65536&&_u(n,f.with_statements_are_not_allowed_in_an_async_function_block),mo(n.expression);const a=Un(n);if(!Q1(a)){const c=hh(a,n.pos).start,d=n.statement.pos;Z1(a,c,d-c,f.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function agt(n){vv(n);let a,c=!1;const d=mo(n.expression);Xe(n.caseBlock.clauses,_=>{_.kind===297&&!c&&(a===void 0?a=_:(Sn(_,f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),c=!0)),_.kind===296&&r(v(_)),Xe(_.statements,Ra),V.noFallthroughCasesInSwitch&&_.fallthroughFlowNode&&O9(_.fallthroughFlowNode)&&qe(_,f.Fallthrough_case_in_switch);function v(x){return()=>{const k=mo(x.expression);Nye(d,k)||l6e(k,d,x.expression,void 0)}}}),n.caseBlock.locals&&jb(n.caseBlock)}function sgt(n){vv(n)||Vn(n.parent,a=>ea(a)?"quit":a.kind===256&&a.label.escapedText===n.label.escapedText?(Sn(n.label,f.Duplicate_label_0,fc(n.label)),!0):!1),Ra(n.statement)}function lgt(n){vv(n)||Ve(n.expression)&&!n.expression.escapedText&&Pyt(n,f.Line_break_not_permitted_here),n.expression&&mo(n.expression)}function cgt(n){vv(n),Kee(n.tryBlock);const a=n.catchClause;if(a){if(a.variableDeclaration){const c=a.variableDeclaration;pB(c);const d=yu(c);if(d){const _=Ti(d);_&&!(_.flags&3)&&_u(d,f.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(c.initializer)_u(c.initializer,f.Catch_clause_variable_cannot_have_an_initializer);else{const _=a.block.locals;_&&mh(a.locals,v=>{const x=_.get(v);x!=null&&x.valueDeclaration&&x.flags&2&&Sn(x.valueDeclaration,f.Cannot_redeclare_identifier_0_in_catch_clause,Vi(v))})}}Kee(a.block)}n.finallyBlock&&Kee(n.finallyBlock)}function Qee(n,a,c){const d=gd(n);if(d.length===0)return;for(const v of Pb(n))c&&v.flags&4194304||WWe(n,v,TN(v,8576,!0),Db(v));const _=a.valueDeclaration;if(_&&di(_)){for(const v of _.members)if(!aa(v)&&!gN(v)){const x=Ir(v);WWe(n,x,Ru(v.name.expression),Db(x))}}if(d.length>1)for(const v of d)ugt(n,v)}function WWe(n,a,c,d){const _=a.valueDeclaration,v=Lo(_);if(v&&qi(v))return;const x=oge(n,c),k=Wr(n)&2?pl(n.symbol,264):void 0,F=_&&_.kind===226||v&&v.kind===167?_:void 0,H=Cd(a)===n.symbol?_:void 0;for(const re of x){const be=re.declaration&&Cd(Ir(re.declaration))===n.symbol?re.declaration:void 0,ge=H||be||(k&&!bt(Cp(n),Je=>!!rE(Je,a.escapedName)&&!!iE(Je,re.keyType))?k:void 0);if(ge&&!ba(d,re.type)){const Je=mT(ge,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Si(a),Hn(d),Hn(re.keyType),Hn(re.type));F&&ge!==F&&Ma(Je,kr(F,f._0_is_declared_here,Si(a))),ts.add(Je)}}}function ugt(n,a){const c=a.declaration,d=oge(n,a.keyType),_=Wr(n)&2?pl(n.symbol,264):void 0,v=c&&Cd(Ir(c))===n.symbol?c:void 0;for(const x of d){if(x===a)continue;const k=x.declaration&&Cd(Ir(x.declaration))===n.symbol?x.declaration:void 0,F=v||k||(_&&!bt(Cp(n),H=>!!Sg(H,a.keyType)&&!!iE(H,x.keyType))?_:void 0);F&&!ba(a.type,x.type)&&qe(F,f._0_index_type_1_is_not_assignable_to_2_index_type_3,Hn(a.keyType),Hn(a.type),Hn(x.keyType),Hn(x.type))}}function u2(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 dgt(n){se>=1&&n.escapedText==="Object"&&(G<5||Un(n).impliedNodeFormat===1)&&qe(n,f.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,$N[G])}function pgt(n){const a=mn(a0(n),e_);if(!Ne(a))return;const c=lr(n),d=new Set,_=new Set;if(Xe(n.parameters,({name:x},k)=>{Ve(x)&&d.add(x.escapedText),ta(x)&&_.add(k)}),sge(n)){const x=a.length-1,k=a[x];c&&k&&Ve(k.name)&&k.typeExpression&&k.typeExpression.type&&!d.has(k.name.escapedText)&&!_.has(x)&&!Uf(Ti(k.typeExpression.type))&&qe(k.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,Er(k.name))}else Xe(a,({name:x,isNameFirst:k},F)=>{_.has(F)||Ve(x)&&d.has(x.escapedText)||(Id(x)?c&&qe(x,f.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,fp(x),fp(x.left)):k||mu(c,x,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Er(x)))})}function _B(n){let a=!1;if(n)for(let d=0;d<n.length;d++){const _=n[d];tWe(_),r(c(_,d))}function c(d,_){return()=>{d.default?(a=!0,fgt(d.default,n,_)):a&&qe(d,f.Required_type_parameters_may_not_follow_optional_type_parameters);for(let v=0;v<_;v++)n[v].symbol===d.symbol&&qe(d.name,f.Duplicate_identifier_0,xs(d.name))}}}function fgt(n,a,c){d(n);function d(_){if(_.kind===183){const v=gge(_);if(v.flags&262144)for(let x=c;x<a.length;x++)v.symbol===Ir(a[x])&&qe(_,f.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}Uo(_,d)}}function FWe(n){if(n.declarations&&n.declarations.length===1)return;const a=Ki(n);if(!a.typeParametersChecked){a.typeParametersChecked=!0;const c=Egt(n);if(!c||c.length<=1)return;const d=Zs(n);if(!zWe(c,d.localTypeParameters,Dy)){const _=Si(n);for(const v of c)qe(v.name,f.All_declarations_of_0_must_have_identical_type_parameters,_)}}}function zWe(n,a,c){const d=Ne(a),_=zh(a);for(const v of n){const x=c(v),k=x.length;if(k<_||k>d)return!1;for(let F=0;F<k;F++){const H=x[F],re=a[F];if(H.name.escapedText!==re.symbol.escapedName)return!1;const be=Jx(H),ge=be&&Ti(be),Je=Md(re);if(ge&&Je&&!fv(ge,Je))return!1;const gt=H.default&&Ti(H.default),Dt=GT(re);if(gt&&Dt&&!fv(gt,Dt))return!1}}return!0}function BWe(n){const a=!ne&&se<99&&Lv(!1,n),c=se<=9,d=!ye;if(a||c)for(const _ of n.members){if(a&&mj(!1,_,n))return Kc(Ry(n))??n;if(c){if(Rl(_))return _;if(aa(_)&&(sd(_)||d&&Nw(_)))return _}}}function mgt(n){if(n.name)return;const a=Pae(n);if(!Lj(a))return;const c=!ne&&se<99;let d;c&&Lv(!1,n)?d=Kc(Ry(n))??n:d=BWe(n),d&&(Dc(d,8388608),(hc(a)||qo(a)||$a(a))&&Za(a.name)&&Dc(d,16777216))}function _gt(n){return GWe(n),hx(n),mgt(n),dr(Ir(n))}function hgt(n){Xe(n.members,Ra),jb(n)}function ggt(n){const a=In(n.modifiers,Eu);ne&&a&&bt(n.members,c=>mc(c)&&sd(c))&&Sn(a,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!Qr(n,2048)&&_u(n,f.A_class_declaration_without_the_default_modifier_must_have_a_name),GWe(n),Xe(n.members,Ra),jb(n)}function GWe(n){tyt(n),cB(n),l2(n,n.name),_B(Dy(n)),$8(n);const a=Ir(n),c=Zs(a),d=Jp(c),_=dr(a);FWe(a),Hee(a),M_t(n),!!(n.flags&33554432)||L_t(n);const x=I_(n);if(x){Xe(x.typeArguments,Ra),se<2&&Dc(x.parent,1);const H=FE(n);H&&H!==x&&mo(H.expression);const re=Cp(c);re.length&&r(()=>{const be=re[0],ge=Np(c),Je=Ld(ge);if(ygt(Je,x),Ra(x.expression),bt(x.typeArguments)){Xe(x.typeArguments,Ra);for(const Dt of td(Je,x.typeArguments,x))if(!lWe(x,Dt.typeParameters))break}const gt=Jp(be,c.thisType);if(nd(d,gt,void 0)?nd(_,n6e(Je),n.name||n,f.Class_static_side_0_incorrectly_extends_base_class_static_side_1):UWe(n,d,gt,f.Class_0_incorrectly_extends_base_class_1),ge.flags&8650752&&(Li(_)?Xo(ge,1).some(an=>an.flags&4)&&!Qr(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)){const Dt=Wh(Je,x.typeArguments,x);Xe(Dt,an=>!eh(an.declaration)&&!fv(ps(an),be))&&qe(x.expression,f.Base_constructors_must_all_have_the_same_return_type)}Sgt(c,be)})}vgt(n,c,d,_);const k=vR(n);if(k)for(const H of k)(!Bl(H.expression)||qu(H.expression))&&qe(H.expression,f.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Oye(H),r(F(H));r(()=>{Qee(c,a),Qee(_,a,!0),Lye(n),Igt(n)});function F(H){return()=>{const re=f_(Ti(H));if(!Jt(re))if(t9(re)){const 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=Jp(re,c.thisType);nd(d,ge,void 0)||UWe(n,d,ge,be)}else qe(H,f.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function vgt(n,a,c,d){const v=I_(n)&&Cp(a),x=v!=null&&v.length?Jp(Ua(v),a.thisType):void 0,k=Np(a);for(const F of n.members)Jj(F)||(Ml(F)&&Xe(F.parameters,H=>{pp(H,F)&&VWe(n,d,k,x,a,c,H,!0)}),VWe(n,d,k,x,a,c,F,!1))}function VWe(n,a,c,d,_,v,x,k,F=!0){const H=x.name&&Vm(x.name)||Vm(x);return H?jWe(n,a,c,d,_,v,y3(x),jE(x),aa(x),k,El(H),F?x:void 0):0}function jWe(n,a,c,d,_,v,x,k,F,H,re,be){const ge=lr(n),Je=!!(n.flags&33554432);if(d&&(x||V.noImplicitOverride)){const gt=_l(re),Dt=F?a:v,an=F?c:d,cn=va(Dt,gt),ar=va(an,gt),Wn=Hn(d);if(cn&&!ar&&x){if(be){const ln=Q4e(re,an);ln?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,Wn,Si(ln)):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,Wn)}return 2}else if(cn&&(ar!=null&&ar.declarations)&&V.noImplicitOverride&&!Je){const ln=bt(ar.declarations,jE);if(x)return 0;if(ln){if(k&&ln)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,Wn),1}else{if(be){const Bn=H?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,Bn,Wn)}return 1}}}else if(x){if(be){const gt=Hn(_);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,gt)}return 2}return 0}function UWe(n,a,c,d){let _=!1;for(const v of n.members){if(aa(v))continue;const x=v.name&&Vm(v.name)||Vm(v);if(x){const k=va(a,x.escapedName),F=va(c,x.escapedName);if(k&&F){const H=()=>Vo(void 0,f.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Si(x),Hn(a),Hn(c));nd(dr(k),dr(F),v.name||v,void 0,H)||(_=!0)}}}_||nd(a,c,n.name||n,d)}function ygt(n,a){const c=Xo(n,1);if(c.length){const d=c[0].declaration;if(d&&_p(d,2)){const _=Wg(n.symbol);tbe(a,_)||qe(a,f.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Hp(n.symbol))}}}function bgt(n,a,c){if(!a.name)return 0;const d=Ir(n),_=Zs(d),v=Jp(_),x=dr(d),F=I_(n)&&Cp(_),H=F!=null&&F.length?Jp(Ua(F),_.thisType):void 0,re=Np(_),be=a.parent?y3(a):Qr(a,16);return jWe(n,x,re,H,_,v,be,jE(a),aa(a),!1,El(c))}function wN(n){return xl(n)&1?n.links.target:n}function Egt(n){return mn(n.declarations,a=>a.kind===263||a.kind===264)}function Sgt(n,a){var c,d,_,v;const x=gs(a);let k;e:for(const F of x){const H=wN(F);if(H.flags&4194304)continue;const re=rE(n,H.escapedName);if(!re)continue;const be=wN(re),ge=xf(H);if(N.assert(!!be,"derived should point to something, even if it is the base class' declaration."),be===H){const Je=Wg(n.symbol);if(ge&64&&(!Je||!Qr(Je,64))){for(const gt of Cp(n)){if(gt===a)continue;const Dt=rE(gt,H.escapedName),an=Dt&&wN(Dt);if(an&&an!==H)continue e}k||(k=qe(Je,f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,Hn(n),Hn(a))),Je.kind===231?Ma(k,kr(F.valueDeclaration??(F.declarations&&Ua(F.declarations))??Je,f.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Si(F),Hn(a))):Ma(k,kr(F.valueDeclaration??(F.declarations&&Ua(F.declarations))??Je,f.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Hn(n),Si(F),Hn(a)))}}else{const Je=xf(be);if(ge&2||Je&2)continue;let gt;const Dt=H.flags&98308,an=be.flags&98308;if(Dt&&an){if((xl(H)&6?(c=H.declarations)!=null&&c.some(Wn=>HWe(Wn,ge)):(d=H.declarations)!=null&&d.every(Wn=>HWe(Wn,ge)))||xl(H)&262144||be.valueDeclaration&&mr(be.valueDeclaration))continue;const cn=Dt!==4&&an===4;if(cn||Dt===4&&an!==4){const Wn=cn?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(Lo(be.valueDeclaration)||be.valueDeclaration,Wn,Si(H),Hn(a),Hn(n))}else if(he){const Wn=(_=be.declarations)==null?void 0:_.find(ln=>ln.kind===172&&!ln.initializer);if(Wn&&!(be.flags&33554432)&&!(ge&64)&&!(Je&64)&&!((v=be.declarations)!=null&&v.some(ln=>!!(ln.flags&33554432)))){const ln=rv(Wg(n.symbol)),Bn=Wn.name;if(Wn.exclamationToken||!ln||!Ve(Bn)||!X||!JWe(Bn,n,ln)){const zn=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(Lo(be.valueDeclaration)||be.valueDeclaration,zn,Si(H),Hn(a))}}}continue}else if(Qve(H)){if(Qve(be)||be.flags&4)continue;N.assert(!!(be.flags&98304)),gt=f.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else H.flags&98304?gt=f.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:gt=f.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;qe(Lo(be.valueDeclaration)||be.valueDeclaration,gt,Hn(a),Si(H),Hn(n))}}}function HWe(n,a){return a&64&&(!qo(n)||!n.initializer)||md(n.parent)}function Tgt(n,a,c){if(!Ne(a))return c;const d=new Map;Xe(c,_=>{d.set(_.escapedName,_)});for(const _ of a){const v=gs(Jp(_,n.thisType));for(const x of v){const k=d.get(x.escapedName);k&&x.parent===k.parent&&d.delete(x.escapedName)}}return zo(d.values())}function Agt(n,a){const c=Cp(n);if(c.length<2)return!0;const d=new Map;Xe(Vhe(n).declaredProperties,v=>{d.set(v.escapedName,{prop:v,containingType:n})});let _=!0;for(const v of c){const x=gs(Jp(v,n.thisType));for(const k of x){const F=d.get(k.escapedName);if(!F)d.set(k.escapedName,{prop:k,containingType:v});else if(F.containingType!==n&&!Out(F.prop,k)){_=!1;const re=Hn(F.containingType),be=Hn(v);let ge=Vo(void 0,f.Named_property_0_of_types_1_and_2_are_not_identical,Si(k),re,be);ge=Vo(ge,f.Interface_0_cannot_simultaneously_extend_types_1_and_2,Hn(n),re,be),ts.add(Lg(Un(a),a,ge))}}}return _}function Igt(n){if(!X||!Ce||n.flags&33554432)return;const a=rv(n);for(const c of n.members)if(!(ud(c)&128)&&!aa(c)&&qWe(c)){const d=c.name;if(Ve(d)||qi(d)||Za(d)){const _=dr(Ir(c));_.flags&3||HM(_)||(!a||!JWe(d,_,a))&&qe(c.name,f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,xs(d))}}}function qWe(n){return n.kind===172&&!jE(n)&&!n.exclamationToken&&!n.initializer}function xgt(n,a,c,d,_){for(const v of c)if(v.pos>=d&&v.pos<=_){const x=w.createPropertyAccessExpression(w.createThis(),n);Ha(x.expression,x),Ha(x,v),x.flowNode=v.returnFlowNode;const k=Vb(x,a,Bb(a));if(!HM(k))return!0}return!1}function JWe(n,a,c){const d=Za(n)?w.createElementAccessExpression(w.createThis(),n.expression):w.createPropertyAccessExpression(w.createThis(),n);Ha(d.expression,d),Ha(d,c),d.flowNode=c.returnFlowNode;const _=Vb(d,a,Bb(a));return!HM(_)}function Rgt(n){Ig(n)||lyt(n),_B(n.typeParameters),r(()=>{u2(n.name,f.Interface_name_cannot_be_0),$8(n);const a=Ir(n);FWe(a);const c=pl(a,264);if(n===c){const d=Zs(a),_=Jp(d);if(Agt(d,n.name)){for(const v of Cp(d))nd(_,Jp(v,d.thisType),n.name,f.Interface_0_incorrectly_extends_interface_1);Qee(d,a)}}iWe(n)}),Xe(DC(n),a=>{(!Bl(a.expression)||qu(a.expression))&&qe(a.expression,f.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Oye(a)}),Xe(n.members,Ra),r(()=>{Lye(n),jb(n)})}function Dgt(n){Ig(n),u2(n.name,f.Type_alias_name_cannot_be_0),$8(n),_B(n.typeParameters),n.type.kind===141?(!BF.has(n.name.escapedText)||Ne(n.typeParameters)!==1)&&qe(n.type,f.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(Ra(n.type),jb(n))}function KWe(n){const a=Zr(n);if(!(a.flags&1024)){a.flags|=1024;let c=0;for(const d of n.members){const _=Ngt(d,c);Zr(d).enumMemberValue=_,c=typeof _=="number"?_+1:void 0}}}function Ngt(n,a){if(AL(n.name))qe(n.name,f.Computed_property_names_are_not_allowed_in_enums);else{const c=nR(n.name);og(c)&&!tP(c)&&qe(n.name,f.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return Cgt(n);if(!(n.parent.flags&33554432&&!ME(n.parent))){if(a!==void 0)return a;qe(n.name,f.Enum_member_must_have_initializer)}}function Cgt(n){const a=ME(n.parent),c=n.initializer,d=d2(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):nd(mo(c),Tt,c,f.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),d}function d2(n,a){switch(n.kind){case 224:const c=d2(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:const d=d2(n.left,a),_=d2(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 YWe(n,a);case 9:return dbe(n),+n.text;case 217:return d2(n.expression,a);case 80:{const x=n;if(tP(x.escapedText)&&Hs(x,111551,!0)===jM(x.escapedText,111551,void 0))return+x.escapedText}case 211:if(Bl(n)){const x=Hs(n,111551,!0);if(x){if(x.flags&8)return a?XWe(n,x,a):WN(x.valueDeclaration);if(e2(x)){const k=x.valueDeclaration;if(k&&Oi(k)&&!k.type&&k.initializer&&(!a||k!==a&&Zg(k,a)))return d2(k.initializer,k)}}}break;case 212:const v=n.expression;if(Bl(v)&&ls(n.argumentExpression)){const x=Hs(v,111551,!0);if(x&&x.flags&384){const k=_l(n.argumentExpression.text),F=x.exports.get(k);if(F)return a?XWe(n,F,a):WN(F.valueDeclaration)}}break}}function XWe(n,a,c){const d=a.valueDeclaration;if(!d||d===c){qe(n,f.Property_0_is_used_before_being_assigned,Si(a));return}return Zg(d,c)?WN(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 YWe(n,a){let c=n.head.text;for(const d of n.templateSpans){const _=d2(d.expression,a);if(_===void 0)return;c+=_,c+=d.literal.text}return c}function Pgt(n){r(()=>Mgt(n))}function Mgt(n){Ig(n),l2(n,n.name),$8(n),n.members.forEach(Lgt),KWe(n);const a=Ir(n),c=pl(a,n.kind);if(n===c){if(a.declarations&&a.declarations.length>1){const _=ME(n);Xe(a.declarations,v=>{y0(v)&&ME(v)!==_&&qe(Lo(v),f.Enum_declarations_must_all_be_const_or_non_const)})}let d=!1;Xe(a.declarations,_=>{if(_.kind!==266)return!1;const v=_;if(!v.members.length)return!1;const x=v.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 Lgt(n){qi(n.name)&&qe(n,f.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&mo(n.initializer)}function kgt(n){const a=n.declarations;if(a){for(const c of a)if((c.kind===263||c.kind===262&&Kf(c.body))&&!(c.flags&33554432))return c}}function wgt(n,a){const c=_h(n),d=_h(a);return Ch(c)?Ch(d):Ch(d)?!1:c===d}function Ogt(n){n.body&&(Ra(n.body),A_(n)||jb(n)),r(a);function a(){var c,d;const _=A_(n),v=n.flags&33554432;_&&!v&&qe(n.name,f.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const x=ku(n),k=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(hB(n,k))return;Ig(n)||!v&&n.name.kind===11&&Sn(n.name,f.Only_ambient_modules_can_use_quoted_names),Ve(n.name)&&l2(n,n.name),$8(n);const F=Ir(n);if(F.flags&512&&!v&&Aq(n,KE(V))){if(rm(V)&&!Un(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,$e),((c=F.declarations)==null?void 0:c.length)>1){const H=kgt(F);H&&(Un(n)!==Un(H)?qe(n.name,f.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.pos<H.pos&&qe(n.name,f.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));const re=pl(F,263);re&&wgt(n,re)&&(Zr(n).flags|=2048)}if(V.verbatimModuleSyntax&&n.parent.kind===312&&(G===1||n.parent.impliedNodeFormat===1)){const H=(d=n.modifiers)==null?void 0:d.find(re=>re.kind===95);H&&qe(H,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(x)if(PE(n)){if((_||Ir(n).flags&33554432)&&n.body)for(const re of n.body.statements)Yye(re,_)}else Ch(n.parent)?_?qe(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Xc(Qf(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 Yye(n,a){switch(n.kind){case 243:for(const d of n.declarationList.declarations)Yye(d,a);break;case 277:case 278:_u(n,f.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:_u(n,f.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const c=n.name;if(ta(c)){for(const d of c.elements)Yye(d,a);break}case 263:case 266:case 262:case 264:case 267:case 265:if(a)return;break}}function Wgt(n){switch(n.kind){case 80:return n;case 166:do n=n.left;while(n.kind!==80);return n;case 211:do{if(Zh(n.expression)&&!qi(n.name))return n.name;n=n.expression}while(n.kind!==80);return n}}function $ye(n){const a=fR(n);if(!a||Fl(a))return!1;if(!Na(a))return qe(a,f.String_literal_expected),!1;const c=n.parent.kind===268&&ku(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&&Xc(a.text)&&!Tb(n))return qe(n,f.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!eu(n)&&n.attributes){const d=n.attributes.token===118?f.Import_attribute_values_must_be_string_literal_expressions:f.Import_assertion_values_must_be_string_literal_expressions;let _=!1;for(const v of n.attributes.elements)Na(v.value)||(_=!0,qe(v.value,d));return!_}return!0}function Zee(n){var a,c,d,_;let v=Ir(n);const x=Oc(v);if(x!==ft){if(v=rs(v.exportSymbol||v),lr(n)&&!(x.flags&111551)&&!s0(n)){const H=SA(n)?n.propertyName||n.name:ad(n)?n.name:n;if(N.assert(n.kind!==280),n.kind===281){const re=qe(H,f.Types_cannot_appear_in_export_declarations_in_JavaScript_files),be=(c=(a=Un(n).symbol)==null?void 0:a.exports)==null?void 0:c.get((n.propertyName||n.name).escapedText);if(be===x){const ge=(d=be.declarations)==null?void 0:d.find($x);ge&&Ma(re,kr(ge,f._0_is_automatically_exported_here,Vi(be.escapedName)))}}else{N.assert(n.kind!==260);const re=Vn(n,Jm(Mc,eu)),be=(re&&((_=pR(re))==null?void 0:_.text))??"...",ge=Vi(Ve(H)?H.escapedText:v.escapedName);qe(H,f._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,ge,`import("${be}").${ge}`)}return}const k=Au(x),F=(v.flags&1160127?111551:0)|(v.flags&788968?788968:0)|(v.flags&1920?1920:0);if(k&F){const H=n.kind===281?f.Export_declaration_conflicts_with_exported_declaration_of_0:f.Import_declaration_conflicts_with_local_declaration_of_0;qe(n,H,Si(v))}else n.kind!==281&&V.isolatedModules&&!Vn(n,s0)&&v.flags&1160127&&qe(n,f.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Si(v),$e);if(rm(V)&&!s0(n)&&!(n.flags&33554432)){const H=Of(v),re=!(k&111551);if(re||H)switch(n.kind){case 273:case 276:case 271:{if(V.preserveValueImports||V.verbatimModuleSyntax){N.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");const be=V.verbatimModuleSyntax&&uR(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=Er(n.kind===276&&n.propertyName||n.name);fg(qe(n,be,ge),re?void 0:H,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,$e);break}case 281:if(V.verbatimModuleSyntax||Un(H)!==Un(n)){const be=Er(n.propertyName||n.name),ge=re?qe(n,f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,$e):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,$e);fg(ge,re?void 0:H,be);break}}V.verbatimModuleSyntax&&n.kind!==271&&!lr(n)&&(G===1||Un(n).impliedNodeFormat===1)&&qe(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(tp(n)){const H=Qye(v,n);ub(H)&&H.declarations&&iy(n,H.declarations,H.escapedName)}}}function Qye(n,a){if(!(n.flags&2097152)||ub(n)||!wm(n))return n;const c=Oc(n);if(c===ft)return c;for(;n.flags&2097152;){const d=qve(n);if(d){if(d===c)break;if(d.declarations&&Ne(d.declarations))if(ub(d)){iy(a,d.declarations,d.escapedName);break}else{if(n===c)break;n=d}}else break}return c}function ete(n){l2(n,n.name),Zee(n),n.kind===276&&Er(n.propertyName||n.name)==="default"&&vh(V)&&G!==4&&(G<5||Un(n).impliedNodeFormat===1)&&Dc(n,131072)}function $We(n){var a;const c=n.attributes;if(c){const d=bge(!0);d!==Ca&&nd(ce(c),N9(d,32768),c);const _=fJ(n),v=uD(c,_?Sn:void 0),x=n.attributes.token===118;if(_&&v)return;if((G===199&&n.moduleSpecifier&&to(n.moduleSpecifier))!==99&&G!==99&&G!==200){const F=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 Sn(c,F)}if(Mc(n)?(a=n.importClause)!=null&&a.isTypeOnly:n.isTypeOnly)return Sn(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(v)return Sn(c,f.resolution_mode_can_only_be_set_for_type_only_imports)}}function Fgt(n){return yd(nc(n.value))}function zgt(n){if(!hB(n,lr(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(!Ig(n)&&v3(n)&&_u(n,f.An_import_declaration_cannot_have_modifiers),$ye(n)){const a=n.importClause;a&&!Lyt(a)&&(a.name&&ete(a),a.namedBindings&&(a.namedBindings.kind===274?(ete(a.namedBindings),G!==4&&(G<5||Un(n).impliedNodeFormat===1)&&vh(V)&&Dc(n,65536)):hd(n,n.moduleSpecifier)&&Xe(a.namedBindings.elements,ete)))}$We(n)}}function Bgt(n){if(!hB(n,lr(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)&&(Ig(n),uR(n)||$ye(n)))if(ete(n),Qr(n,32)&&hb(n),n.moduleReference.kind!==283){const a=Oc(Ir(n));if(a!==ft){const c=Au(a);if(c&111551){const d=Gp(n.moduleReference);Hs(d,112575).flags&1920||qe(d,f.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,xs(d))}c&788968&&u2(n.name,f.Import_name_cannot_be_0)}n.isTypeOnly&&Sn(n,f.An_import_alias_cannot_use_import_type)}else G>=5&&G!==200&&Un(n).impliedNodeFormat===void 0&&!n.isTypeOnly&&!(n.flags&33554432)&&Sn(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 Ggt(n){if(!hB(n,lr(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(!Ig(n)&&Oie(n)&&_u(n,f.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&Nf(n.exportClause)&&Ne(n.exportClause.elements)&&se===0&&Dc(n,4194304),Vgt(n),!n.moduleSpecifier||$ye(n))if(n.exportClause&&!Sh(n.exportClause)){Xe(n.exportClause.elements,Kgt);const a=n.parent.kind===268&&ku(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{const a=hd(n,n.moduleSpecifier);a&&sy(a)?qe(n.moduleSpecifier,f.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Si(a)):n.exportClause&&Zee(n.exportClause),G!==4&&(G<5||Un(n).impliedNodeFormat===1)&&(n.exportClause?vh(V)&&Dc(n,65536):Dc(n,32768))}$We(n)}}function Vgt(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===279?NFe(n.exportClause):!1}function hB(n,a){const c=n.parent.kind===312||n.parent.kind===268||n.parent.kind===267;return c||_u(n,a),!c}function jgt(n){return i3(n,a=>!!Ir(a).isReferenced)}function Ugt(n){return i3(n,a=>!!Ki(Ir(a)).constEnumReferenced)}function Hgt(n){return Mc(n)&&n.importClause&&!n.importClause.isTypeOnly&&jgt(n.importClause)&&!ate(n.importClause,!0)&&!Ugt(n.importClause)}function qgt(n){return eu(n)&&Th(n.moduleReference)&&!n.isTypeOnly&&Ir(n).isReferenced&&!ate(n,!1)&&!Ki(Ir(n)).constEnumReferenced}function Jgt(n){if(It)for(const a of n.statements)(Hgt(a)||qgt(a))&&qe(a,f.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function Kgt(n){if(Zee(n),Rf(V)&&LM(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)vh(V)&&G!==4&&(G<5||Un(n).impliedNodeFormat===1)&&Er(n.propertyName||n.name)==="default"&&Dc(n,131072);else{const a=n.propertyName||n.name,c=yl(a,a.escapedText,2998271,void 0,void 0,!0);if(c&&(c===je||c===ot||c.declarations&&Ch($(c.declarations[0]))))qe(a,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Er(a));else{!n.isTypeOnly&&!n.parent.parent.isTypeOnly&&hb(n);const d=c&&(c.flags&2097152?Oc(c):c);(!d||Au(d)&111551)&&nc(n.propertyName||n.name)}}}function Xgt(n){const 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(hB(n,a))return;const c=n.parent.kind===312?n.parent:n.parent.parent;if(c.kind===267&&!ku(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}!Ig(n)&&v3(n)&&_u(n,f.An_export_assignment_cannot_have_modifiers);const d=yu(n);d&&nd(nc(n.expression),Ti(d),n.expression);const _=!n.isExportEquals&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&(G===1||Un(n).impliedNodeFormat===1);if(n.expression.kind===80){const v=n.expression,x=hf(Hs(v,-1,!0,!0,n));if(x){const k=Of(x,111551);if(vee(x,v),Au(x)&111551?(nc(v),!_&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&k&&qe(v,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,Er(v))):!_&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&qe(v,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,Er(v)),!_&&!(n.flags&33554432)&&rm(V)&&!(x.flags&111551)){const F=Au(x,!1,!0);x.flags&2097152&&F&788968&&!(F&111551)&&(!k||Un(k)!==Un(n))?qe(v,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,Er(v),$e):k&&Un(k)!==Un(n)&&fg(qe(v,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,Er(v),$e),k,Er(v))}}else nc(v);Rf(V)&&LM(v,!0)}else nc(n.expression);_&&qe(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),QWe(c),n.flags&33554432&&!Bl(n.expression)&&Sn(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&&Un(n).impliedNodeFormat===99||!(n.flags&33554432)&&Un(n).impliedNodeFormat!==1)?Sn(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)&&Sn(n,f.Export_assignment_is_not_supported_when_module_flag_is_system))}function Ygt(n){return zc(n.exports,(a,c)=>c!=="export=")}function QWe(n){const a=Ir(n),c=Ki(a);if(!c.exportsChecked){const d=a.exports.get("export=");if(d&&Ygt(a)){const v=wm(d)||d.valueDeclaration;v&&!Tb(v)&&!lr(v)&&qe(v,f.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const _=Mh(a);_&&_.forEach(({declarations:v,flags:x},k)=>{if(k==="__export"||x&1920)return;const F=ou(v,D6(zIe,N6(md)));if(!(x&524288&&F<=2)&&F>1&&!tte(v))for(const H of v)OIe(H)&&ts.add(kr(H,f.Cannot_redeclare_exported_variable_0,Vi(k)))}),c.exportsChecked=!0}}function tte(n){return n&&n.length>1&&n.every(a=>lr(a)&&ws(a)&&(ES(a.expression)||Zh(a.expression)))}function Ra(n){if(n){const a=C;C=n,A=0,$gt(n),C=a}}function $gt(n){JL(n)&&Xe(n.jsDoc,({comment:c,tags:d})=>{ZWe(c),Xe(d,_=>{ZWe(_.comment),lr(n)&&Ra(_)})});const a=n.kind;if(i)switch(a){case 267:case 263:case 264:case 262:i.throwIfCancellationRequested()}switch(a>=243&&a<=259&&qL(n)&&n.flowNode&&!O9(n.flowNode)&&mu(V.allowUnreachableCode===!1,n,f.Unreachable_code_detected),a){case 168:return tWe(n);case 169:return nWe(n);case 172:return oWe(n);case 171:return k_t(n);case 185:case 184:case 179:case 180:case 181:return Y8(n);case 174:case 173:return w_t(n);case 175:return O_t(n);case 176:return W_t(n);case 177:case 178:return sWe(n);case 183:return Oye(n);case 182:return C_t(n);case 186:return j_t(n);case 187:return U_t(n);case 188:return H_t(n);case 189:return q_t(n);case 192:case 193:return J_t(n);case 196:case 190:case 191:return Ra(n.type);case 197:return $_t(n);case 198:return Q_t(n);case 194:return Z_t(n);case 195:return eht(n);case 203:return tht(n);case 205:return nht(n);case 202:return rht(n);case 335:return Sht(n);case 336:return Eht(n);case 353:case 345:case 347:return pht(n);case 352:return fht(n);case 351:return mht(n);case 331:case 332:case 333:return hht(n);case 348:return ght(n);case 355:return vht(n);case 324:yht(n);case 322:case 321:case 319:case 320:case 329:eFe(n),Uo(n,Ra);return;case 325:Qgt(n);return;case 316:return Ra(n.type);case 340:case 342:case 341:return Tht(n);case 357:return _ht(n);case 350:return bht(n);case 199:return K_t(n);case 200:return X_t(n);case 262:return dht(n);case 241:case 268:return Kee(n);case 243:return Ght(n);case 244:return Vht(n);case 245:return jht(n);case 246:return qht(n);case 247:return Jht(n);case 248:return Kht(n);case 249:return Yht(n);case 250:return Xht(n);case 251:case 252:return rgt(n);case 253:return igt(n);case 254:return ogt(n);case 255:return agt(n);case 256:return sgt(n);case 257:return lgt(n);case 258:return cgt(n);case 260:return zht(n);case 208:return Bht(n);case 263:return ggt(n);case 264:return Rgt(n);case 265:return Dgt(n);case 266:return Pgt(n);case 267:return Ogt(n);case 272:return zgt(n);case 271:return Bgt(n);case 278:return Ggt(n);case 277:return Xgt(n);case 242:case 259:vv(n);return;case 282:return z_t(n)}}function ZWe(n){To(n)&&Xe(n,a=>{xA(a)&&Ra(a)})}function eFe(n){if(!lr(n))if(XW(n)||HR(n)){const a=pa(XW(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,_=Ti(d);Sn(n,c,a,Hn(HR(n)&&!(_===Vr||_===ir)?ei(Rn([_,Oe],n.postfix?void 0:fe)):_))}else Sn(n,f.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Qgt(n){eFe(n),Ra(n.type);const{parent:a}=n;if(Ao(a)&&qR(a.parent)){Xa(a.parent.parameters)!==a&&qe(n,f.A_rest_parameter_must_be_last_in_a_parameter_list);return}o1(a)||qe(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const c=n.parent.parent;if(!e_(c)){qe(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const d=KL(c);if(!d)return;const _=d0(c);(!_||Xa(_.parameters).symbol!==d)&&qe(n,f.A_rest_parameter_must_be_last_in_a_parameter_list)}function Zgt(n){const a=Ti(n.type),{parent:c}=n,d=n.parent.parent;if(o1(n.parent)&&e_(d)){const _=d0(d),v=mH(d.parent.parent);if(_||v){const x=el(v?d.parent.parent.typeExpression.parameters:_.parameters),k=KL(d);if(!x||k&&x.symbol===k&&Xh(x))return Vu(a)}}return Ao(c)&&qR(c.parent)?Vu(a):lp(a)}function hx(n){const a=Un(n),c=Zr(a);c.flags&1?N.assert(!c.deferredNodes,"A type-checked file should have no deferred nodes."):(c.deferredNodes||(c.deferredNodes=new Set),c.deferredNodes.add(n))}function evt(n){const a=Zr(n);a.deferredNodes&&a.deferredNodes.forEach(tvt),a.deferredNodes=void 0}function tvt(n){var a,c;(a=sr)==null||a.push(sr.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const d=C;switch(C=n,A=0,n.kind){case 213:case 214:case 215:case 170:case 286:nA(n);break;case 218:case 219:case 174:case 173:Xmt(n);break;case 177:case 178:sWe(n);break;case 231:hgt(n);break;case 168:N_t(n);break;case 285:ift(n);break;case 284:aft(n);break;case 216:case 234:case 217:Smt(n);break;case 222:mo(n.expression);break;case 226:E3(n)&&nA(n);break}C=d,(c=sr)==null||c.pop()}function nvt(n){var a,c;(a=sr)==null||a.push(sr.Phase.Check,"checkSourceFile",{path:n.path},!0),rl("beforeCheck"),rvt(n),rl("afterCheck"),Qp("Check","beforeCheck","afterCheck"),(c=sr)==null||c.pop()}function tFe(n,a){if(a)return!1;switch(n){case 0:return!!V.noUnusedLocals;case 1:return!!V.noUnusedParameters;default:return N.assertNever(n)}}function nFe(n){return pf.get(n.path)||et}function rvt(n){const a=Zr(n);if(!(a.flags&1)){if(YC(n,V,e))return;Nyt(n),jo(T1),jo(A1),jo(sb),jo(lb),jo(pg),Xe(n.statements,Ra),Ra(n.endOfFileToken),evt(n),Fp(n)&&jb(n),r(()=>{!n.isDeclarationFile&&(V.noUnusedLocals||V.noUnusedParameters)&&yWe(nFe(n),(c,d,_)=>{!eR(c)&&tFe(d,!!(c.flags&33554432))&&ts.add(_)}),n.isDeclarationFile||Rht()}),V.importsNotUsedAsValues===2&&!n.isDeclarationFile&&sc(n)&&Jgt(n),Fp(n)&&QWe(n),T1.length&&(Xe(T1,Cht),jo(T1)),A1.length&&(Xe(A1,Pht),jo(A1)),sb.length&&(Xe(sb,wht),jo(sb)),lb.length&&(Xe(lb,Wht),jo(lb)),a.flags|=1}}function rFe(n,a){try{return i=a,ivt(n)}finally{i=void 0}}function Zye(){for(const n of t)n();t=[]}function ebe(n){Zye();const a=r;r=c=>c(),nvt(n),r=a}function ivt(n){if(n){Zye();const a=ts.getGlobalDiagnostics(),c=a.length;ebe(n);const d=ts.getDiagnostics(n.fileName),_=ts.getGlobalDiagnostics();if(_!==a){const v=Xte(a,_,HC);return So(v,d)}else if(c===0&&_.length>0)return So(_,d);return d}return Xe(e.getSourceFiles(),ebe),ts.getDiagnostics()}function ovt(){return Zye(),ts.getGlobalDiagnostics()}function avt(n,a){if(n.flags&67108864)return[];const c=ca();let d=!1;return _(),c.delete("this"),age(c);function _(){for(;n;){switch(ph(n)&&n.locals&&!Ch(n)&&x(n.locals,a),n.kind){case 312:if(!sc(n))break;case 267:k(Ir(n).exports,a&2623475);break;case 266:x(Ir(n).exports,a&8);break;case 231:n.name&&v(n.symbol,a);case 263:case 264:d||x(Cb(Ir(n)),a&788968);break;case 218:n.name&&v(n.symbol,a);break}tie(n)&&v(Bt,a),d=aa(n),n=n.parent}x(Se,a)}function v(F,H){if(RR(F)&H){const re=F.escapedName;c.has(re)||c.set(re,F)}}function x(F,H){H&&F.forEach(re=>{v(re,H)})}function k(F,H){H&&F.forEach(re=>{!pl(re,281)&&!pl(re,280)&&re.escapedName!=="default"&&v(re,H)})}}function svt(n){return n.kind===80&&kR(n.parent)&&Lo(n.parent)===n}function iFe(n){for(;n.parent.kind===166;)n=n.parent;return n.parent.kind===183}function lvt(n){for(;n.parent.kind===211;)n=n.parent;return n.parent.kind===233}function oFe(n,a){let c,d=au(n);for(;d&&!(c=a(d));)d=au(d);return c}function cvt(n){return!!Vn(n,a=>Ml(a)&&Kf(a.body)||qo(a)?!0:di(a)||Bs(a)?"quit":!1)}function tbe(n,a){return!!oFe(n,c=>c===a)}function uvt(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 nte(n){return uvt(n)!==void 0}function dvt(n){switch(zl(n.parent.parent)){case 1:case 3:return _f(n.parent);case 5:if(Fr(n.parent)&&DR(n.parent)===n)return;case 4:case 2:return Ir(n.parent.parent)}}function pvt(n){let a=n.parent;for(;Id(a);)n=a,a=a.parent;if(a&&a.kind===205&&a.qualifier===n)return a}function fvt(n){if(n.expression.kind===110){const a=Fd(n,!1,!1);if(ea(a)){const c=h4e(a);if(c){const d=mE(c,void 0),_=v4e(c,d);return _&&!Nt(_)}}}}function aFe(n){if(wg(n))return _f(n.parent);if(lr(n)&&n.parent.kind===211&&n.parent===n.parent.parent.left&&!qi(n)&&!b0(n)&&!fvt(n.parent)){const a=dvt(n);if(a)return a}if(n.parent.kind===277&&Bl(n)){const a=Hs(n,2998271,!0);if(a&&a!==ft)return a}else if(Qd(n)&&nte(n)){const a=f0(n,271);return N.assert(a!==void 0),ZI(n,!0)}if(Qd(n)){const a=pvt(n);if(a){Ti(a);const c=Zr(n).resolvedSymbol;return c===ft?void 0:c}}for(;Vie(n);)n=n.parent;if(lvt(n)){let a=0;n.parent.kind===233?(a=$h(n)?788968:111551,b3(n.parent)&&(a|=111551)):a=1920,a|=2097152;const c=Bl(n)?Hs(n,a,!0):void 0;if(c)return c}if(n.parent.kind===348)return KL(n.parent);if(n.parent.kind===168&&n.parent.parent.kind===352){N.assert(!lr(n));const a=mie(n.parent);return a&&a.symbol}if(Qh(n)){if(Fl(n))return;const a=Vn(n,Jm(xA,SP,b0)),c=a?901119:111551;if(n.kind===80){if(cR(n)&&_x(n)){const _=Iee(n.parent);return _===ft?void 0:_}const d=Hs(n,c,!0,!0,d0(n));if(!d&&a){const _=Vn(n,Jm(di,md));if(_)return gB(n,!0,Ir(_))}if(d&&a){const _=AS(n);if(_&&i1(_)&&_===d.valueDeclaration)return Hs(n,c,!0,!0,Un(_))||d}return d}else{if(qi(n))return Dee(n);if(n.kind===211||n.kind===166){const d=Zr(n);return d.resolvedSymbol?d.resolvedSymbol:(n.kind===211?(xee(n,0),d.resolvedSymbol||(d.resolvedSymbol=sFe(nc(n.expression),py(n.name)))):H4e(n,0),!d.resolvedSymbol&&a&&Id(n)?gB(n):d.resolvedSymbol)}else if(b0(n))return gB(n)}}else if(iFe(n)){const a=n.parent.kind===183?788968:1920,c=Hs(n,a,!1,!0);return c&&c!==ft?c:DZ(n)}if(n.parent.kind===182)return Hs(n,1)}function sFe(n,a){const c=oge(n,a);if(c.length&&n.members){const d=IZ(p_(n).members);if(c===gd(n))return d;if(d){const _=Ki(d),v=eo(c,k=>k.declaration),x=Wt(v,as).join(",");if(_.filteredIndexSymbolCache||(_.filteredIndexSymbolCache=new Map),_.filteredIndexSymbolCache.has(x))return _.filteredIndexSymbolCache.get(x);{const k=Ka(131072,"__index");return k.declarations=eo(c,F=>F.declaration),k.parent=n.aliasSymbol?n.aliasSymbol:n.symbol?n.symbol:Vm(k.declarations[0].parent),_.filteredIndexSymbolCache.set(x,k),k}}}}function gB(n,a,c){if(Qd(n)){let x=Hs(n,901119,a,!0,d0(n));if(!x&&Ve(n)&&c&&(x=rs(Jd(Dp(c),n.escapedText,901119))),x)return x}const d=Ve(n)?c:gB(n.left,a,c),_=Ve(n)?n.escapedText:n.right.escapedText;if(d){const v=d.flags&111551&&va(dr(d),"prototype"),x=v?dr(v):Zs(d);return va(x,_)}}function Vm(n,a){if($i(n))return sc(n)?rs(n.symbol):void 0;const{parent:c}=n,d=c.parent;if(!(n.flags&67108864)){if(WIe(n)){const _=Ir(c);return SA(n.parent)&&n.parent.propertyName===n?qve(_):_}else if($L(n))return Ir(c.parent);if(n.kind===80){if(nte(n))return aFe(n);if(c.kind===208&&d.kind===206&&n===c.propertyName){const _=gx(d),v=va(_,n.escapedText);if(v)return v}else if(_P(c)&&c.name===n)return c.keywordToken===105&&Er(n)==="target"?yye(c).symbol:c.keywordToken===102&&Er(n)==="meta"?c8e().members.get("meta"):void 0}switch(n.kind){case 80:case 81:case 211:case 166:if(!kA(n))return aFe(n);case 110:const _=Fd(n,!1,!1);if(ea(_)){const k=dm(_);if(k.thisParameter)return k.thisParameter}if(X4(n))return mo(n).symbol;case 197:return FZ(n).symbol;case 108:return mo(n).symbol;case 137:const v=n.parent;return v&&v.kind===176?v.parent.symbol:void 0;case 11:case 15:if(c0(n.parent.parent)&&TC(n.parent.parent)===n||(n.parent.kind===272||n.parent.kind===278)&&n.parent.moduleSpecifier===n||lr(n)&&Td(n.parent,!1)||zp(n.parent)||Jy(n.parent)&&Oy(n.parent.parent)&&n.parent.parent.argument===n.parent)return hd(n,n,a);if(sa(c)&&SS(c)&&c.arguments[1]===n)return Ir(c);case 9:const x=$s(c)?c.argumentExpression===n?Ru(c.expression):void 0:Jy(c)&&WS(d)?Ti(d.objectType):void 0;return x&&va(x,_l(n.text));case 90:case 100:case 39:case 86:return _f(n.parent);case 205:return Oy(n)?Vm(n.argument.literal,a):void 0;case 95:return kl(n.parent)?N.checkDefined(n.parent.symbol):void 0;case 102:case 105:return _P(n.parent)?D3e(n.parent).symbol:void 0;case 104:if(mr(n.parent)){const k=Ru(n.parent.right),F=Dye(k);return(F==null?void 0:F.symbol)??k.symbol}return;case 236:return mo(n).symbol;case 295:if(cR(n)&&_x(n)){const k=Iee(n.parent);return k===ft?void 0:k}default:return}}}function mvt(n){if(Ve(n)&&Fr(n.parent)&&n.parent.name===n){const a=py(n),c=Ru(n.parent.expression),d=c.flags&1048576?c.types:[c];return Do(d,_=>mn(gd(_),v=>lx(a,v.keyType)))}}function _vt(n){if(n&&n.kind===304)return Hs(n.name,2208703)}function hvt(n){return Ku(n)?n.parent.parent.moduleSpecifier?tv(n.parent.parent,n):Hs(n.propertyName||n.name,2998271):Hs(n,2998271)}function gx(n){if($i(n)&&!sc(n)||n.flags&67108864)return _t;const a=$j(n),c=a&&Bf(Ir(a.class));if($h(n)){const d=Ti(n);return c?Jp(d,c.thisType):d}if(Qh(n))return lFe(n);if(c&&!a.isImplements){const d=Kc(Cp(c));return d?Jp(d,c.thisType):_t}if(kR(n)){const d=Ir(n);return Zs(d)}if(svt(n)){const d=Vm(n);return d?Zs(d):_t}if($a(n))return OT(n,!0,0)||_t;if(Ju(n)){const d=Ir(n);return d?dr(d):_t}if(WIe(n)){const d=Vm(n);return d?dr(d):_t}if(ta(n))return OT(n.parent,!0,0)||_t;if(nte(n)){const d=Vm(n);if(d){const _=Zs(d);return Jt(_)?dr(d):_}}return _P(n.parent)&&n.parent.keywordToken===n.kind?D3e(n.parent):aI(n)?bge(!1):_t}function rte(n){if(N.assert(n.kind===210||n.kind===209),n.parent.kind===250){const _=fB(n.parent);return iA(n,_||_t)}if(n.parent.kind===226){const _=Ru(n.parent.right);return iA(n,_||_t)}if(n.parent.kind===303){const _=oa(n.parent.parent,La),v=rte(_)||_t,x=tR(_.properties,n.parent);return H3e(_,v,x)}const a=oa(n.parent,fd),c=rte(a)||_t,d=hy(65,c,Oe,n.parent)||_t;return q3e(a,c,a.elements.indexOf(n),d)}function gvt(n){const a=rte(oa(n.parent.parent,mC));return a&&va(a,n.escapedText)}function lFe(n){return zC(n)&&(n=n.parent),yd(Ru(n))}function cFe(n){const a=_f(n.parent);return aa(n)?dr(a):Zs(a)}function uFe(n){const a=n.name;switch(a.kind){case 80:return Xd(Er(a));case 9:case 11:return Xd(a.text);case 167:const c=Tg(a);return xu(c,12288)?c:ke;default:return N.fail("Unsupported property name.")}}function nbe(n){n=Ld(n);const a=ca(gs(n)),c=Xo(n,0).length?Xn:Xo(n,1).length?yo:void 0;return c&&Xe(gs(c),d=>{a.has(d.escapedName)||a.set(d.escapedName,d)}),X0(a)}function ite(n){return Xo(n,0).length!==0||Xo(n,1).length!==0}function dFe(n){const a=vvt(n);return a?Do(a,dFe):[n]}function vvt(n){if(xl(n)&6)return eo(Ki(n).containingType.types,a=>va(a,n.escapedName));if(n.flags&33554432){const{links:{leftSpread:a,rightSpread:c,syntheticOrigin:d}}=n;return a?[a,c]:d?[d]:hA(yvt(n))}}function yvt(n){let a,c=n;for(;c=Ki(c).target;)a=c;return a}function bvt(n){if(al(n))return!1;const a=No(n,Ve);if(!a)return!1;const c=a.parent;return c?!((Fr(c)||hc(c))&&c.name===a)&&o6(a)===Bt:!1}function Evt(n){let a=hd(n.parent,n);if(!a||vC(a))return!0;const c=sy(a);a=Rp(a);const d=Ki(a);return d.exportsSomeValue===void 0&&(d.exportsSomeValue=c?!!(a.flags&111551):zc(Mh(a),_)),d.exportsSomeValue;function _(v){return v=Vl(v),v&&!!(Au(v)&111551)}}function Svt(n){return _L(n.parent)&&n===n.parent.name}function Tvt(n,a){var c;const d=No(n,Ve);if(d){let _=o6(d,Svt(d));if(_){if(_.flags&1048576){const x=rs(_.exportSymbol);if(!a&&x.flags&944&&!(x.flags&3))return;_=x}const v=Cd(_);if(v){if(v.flags&512&&((c=v.valueDeclaration)==null?void 0:c.kind)===312){const x=v.valueDeclaration,k=Un(d);return x!==k?void 0:x}return Vn(d.parent,x=>_L(x)&&Ir(x)===v)}}}}function Avt(n){const a=Qoe(n);if(a)return a;const c=No(n,Ve);if(c){const d=Wvt(c);if(IT(d,111551)&&!Of(d,111551))return wm(d)}}function Ivt(n){return n.valueDeclaration&&$a(n.valueDeclaration)&&Hx(n.valueDeclaration).parent.kind===299}function pFe(n){if(n.flags&418&&n.valueDeclaration&&!$i(n.valueDeclaration)){const a=Ki(n);if(a.isDeclarationWithCollidingName===void 0){const c=_h(n.valueDeclaration);if(kre(c)||Ivt(n)){const d=Zr(n.valueDeclaration);if(yl(c.parent,n.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(d.flags&16384){const _=d.flags&32768,v=Py(c,!1),x=c.kind===241&&Py(c.parent,!1);a.isDeclarationWithCollidingName=!Gre(c)&&(!_||!v&&!x)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function xvt(n){if(!al(n)){const a=No(n,Ve);if(a){const c=o6(a);if(c&&pFe(c))return c.valueDeclaration}}}function Rvt(n){const a=No(n,Ju);if(a){const c=Ir(a);if(c)return pFe(c)}return!1}function fFe(n){switch(N.assert(It),n.kind){case 271:return ote(Ir(n));case 273:case 274:case 276:case 281:const a=Ir(n);return!!a&&ote(a,!0);case 278:const c=n.exportClause;return!!c&&(Sh(c)||bt(c.elements,fFe));case 277:return n.expression&&n.expression.kind===80?ote(Ir(n),!0):!0}return!1}function Dvt(n){const a=No(n,eu);return a===void 0||a.parent.kind!==312||!uR(a)?!1:ote(Ir(a))&&a.moduleReference&&!Fl(a.moduleReference)}function ote(n,a){if(!n)return!1;const c=hf(Oc(n));return c===ft?!a||!Of(n):!!(Au(n,a,!0)&111551)&&(KE(V)||!i6(c))}function i6(n){return Rye(n)||!!n.constEnumOnlyModule}function ate(n,a){if(N.assert(It),fb(n)){const c=Ir(n),d=c&&Ki(c);if(d!=null&&d.referenced)return!0;const _=Ki(c).aliasTarget;if(_&&ud(n)&32&&Au(_)&111551&&(KE(V)||!i6(_)))return!0}return a?!!Uo(n,c=>ate(c,a)):!1}function mFe(n){if(Kf(n.body)){if(My(n)||Mv(n))return!1;const a=Ir(n),c=z1(a);return c.length>1||c.length===1&&c[0].declaration!==n}return!1}function _Fe(n){return!!X&&!T8(n)&&!e_(n)&&!!n.initializer&&!Qr(n,31)}function Nvt(n){return X&&T8(n)&&!n.initializer&&Qr(n,31)}function Cvt(n){const a=No(n,Tc);if(!a)return!1;const c=Ir(a);return!c||!(c.flags&16)?!1:!!zc(Dp(c),d=>d.flags&111551&&Y3(d.valueDeclaration))}function Pvt(n){const a=No(n,Tc);if(!a)return et;const c=Ir(a);return c&&gs(dr(c))||et}function ON(n){var a;const c=n.id||0;return c<0||c>=S1.length?0:((a=S1[c])==null?void 0:a.flags)||0}function WN(n){return KWe(n.parent),Zr(n).enumMemberValue}function hFe(n){switch(n.kind){case 306:case 211:case 212:return!0}return!1}function rbe(n){if(n.kind===306)return WN(n);const a=Zr(n).resolvedSymbol;if(a&&a.flags&8){const c=a.valueDeclaration;if(ME(c.parent))return WN(c)}}function ibe(n){return!!(n.flags&524288)&&Xo(n,0).length>0}function Mvt(n,a){var c;const d=No(n,Qd);if(!d||a&&(a=No(a),!a))return 0;let _=!1;if(Id(d)){const re=Hs(Gp(d),111551,!0,!0,a);_=!!((c=re==null?void 0:re.declarations)!=null&&c.every(s0))}const v=Hs(d,111551,!0,!0,a),x=v&&v.flags&2097152?Oc(v):v;_||(_=!!(v&&Of(v,111551)));const k=Hs(d,788968,!0,!0,a),F=k&&k.flags&2097152?Oc(k):k;if(v||_||(_=!!(k&&Of(k,788968))),x&&x===F){const re=Ege(!1);if(re&&x===re)return 9;const be=dr(x);if(be&&is(be))return _?10:1}if(!F)return _?11:0;const H=Zs(F);return Jt(H)?_?11:0:H.flags&3?11:xu(H,245760)?2:xu(H,528)?6:xu(H,296)?3:xu(H,2112)?4:xu(H,402653316)?5:Wa(H)?7:xu(H,12288)?8:ibe(H)?10:Uf(H)?7:11}function Lvt(n,a,c,d,_){const v=No(n,Qre);if(!v)return w.createToken(133);const x=Ir(v);let k=x&&!(x.flags&133120)?q1(dr(x)):_t;return k.flags&8192&&k.symbol===x&&(c|=1048576),_&&(k=Bb(k)),At.typeToTypeNode(k,a,c|1024,d)}function kvt(n,a,c,d){const _=No(n,ea);if(!_)return w.createToken(133);const v=dm(_);return At.typeToTypeNode(ps(v),a,c|1024,d)}function wvt(n,a,c,d){const _=No(n,yt);if(!_)return w.createToken(133);const v=Kp(lFe(_));return At.typeToTypeNode(v,a,c|1024,d)}function Ovt(n){return Se.has(_l(n))}function o6(n,a){const c=Zr(n).resolvedSymbol;if(c)return c;let d=n;if(a){const _=n.parent;Ju(_)&&n===_.name&&(d=$(_))}return yl(d,n.escapedText,3257279,void 0,void 0,!0)}function Wvt(n){const a=Zr(n).resolvedSymbol;return a&&a!==ft?a:yl(n,n.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function Fvt(n){if(!al(n)){const a=No(n,Ve);if(a){const c=o6(a);if(c)return hf(c).valueDeclaration}}}function zvt(n){if(!al(n)){const a=No(n,Ve);if(a){const c=o6(a);if(c)return mn(hf(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 Bvt(n){return O4(n)||Oi(n)&&yB(n)?j1(dr(Ir(n))):!1}function Gvt(n,a,c){const d=n.flags&1056?At.symbolToExpression(n.symbol,111551,a,void 0,c):n===Gn?w.createTrue():n===en&&w.createFalse();if(d)return d;const _=n.value;return typeof _=="object"?w.createBigIntLiteral(_):typeof _=="string"?w.createStringLiteral(_):_<0?w.createPrefixUnaryExpression(41,w.createNumericLiteral(-_)):w.createNumericLiteral(_)}function Vvt(n,a){const c=dr(Ir(n));return Gvt(c,n,a)}function gFe(n){return n?(B0(n),Un(n).localJsxFactory||$g):$g}function obe(n){if(n){const a=Un(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;const c=a.pragmas.get("jsxfrag"),d=To(c)?c[0]:c;if(d)return a.localJsxFragmentFactory=pI(d.arguments.factory,se),a.localJsxFragmentFactory}}if(V.jsxFragmentFactory)return pI(V.jsxFragmentFactory,se)}function jvt(){const n=e.getResolvedTypeReferenceDirectives();let a;return n&&(a=new Map,n.forEach(({resolvedTypeReferenceDirective:F},H,re)=>{if(!(F!=null&&F.resolvedFileName))return;const be=e.getSourceFile(F.resolvedFileName);be&&k(be,H,re)})),{getReferencedExportContainer:Tvt,getReferencedImportDeclaration:Avt,getReferencedDeclarationWithCollidingName:xvt,isDeclarationWithCollidingName:Rvt,isValueAliasDeclaration:F=>{const H=No(F);return H&&It?fFe(H):!0},hasGlobalName:Ovt,isReferencedAliasDeclaration:(F,H)=>{const re=No(F);return re&&It?ate(re,H):!0},getNodeCheckFlags:F=>{const H=No(F);return H?ON(H):0},isTopLevelValueImportEqualsWithEntityName:Dvt,isDeclarationVisible:l_,isImplementationOfOverload:mFe,isRequiredInitializedParameter:_Fe,isOptionalUninitializedParameterProperty:Nvt,isExpandoFunctionDeclaration:Cvt,getPropertiesOfContainerFunction:Pvt,createTypeOfDeclaration:Lvt,createReturnTypeOfSignatureDeclaration:kvt,createTypeOfExpression:wvt,createLiteralConstValue:Vvt,isSymbolAccessible:wi,isEntityNameVisible:bb,getConstantValue:F=>{const H=No(F,hFe);return H?rbe(H):void 0},collectLinkedAliases:LM,getReferencedValueDeclaration:Fvt,getReferencedValueDeclarations:zvt,getTypeReferenceSerializationKind:Mvt,isOptionalParameter:T8,moduleExportsSomeValue:Evt,isArgumentsLocalBinding:bvt,getExternalModuleFileFromDeclaration:F=>{const H=No(F,jre);return H&&abe(H)},getTypeReferenceDirectivesForEntityName:_,getTypeReferenceDirectivesForSymbol:v,isLiteralConstDeclaration:Bvt,isLateBound:F=>{const H=No(F,Ju),re=H&&Ir(H);return!!(re&&xl(re)&4096)},getJsxFactoryEntity:gFe,getJsxFragmentFactoryEntity:obe,getAllAccessorDeclarations(F){F=No(F,d4);const H=F.kind===178?177:178,re=pl(Ir(F),H),be=re&&re.pos<F.pos?re:F,ge=re&&re.pos<F.pos?F:re,Je=F.kind===178?F:re,gt=F.kind===177?F:re;return{firstAccessor:be,secondAccessor:ge,setAccessor:Je,getAccessor:gt}},getSymbolOfExternalModuleSpecifier:F=>nv(F,F,void 0),isBindingCapturedByNode:(F,H)=>{const re=No(F),be=No(H);return!!re&&!!be&&(Oi(be)||$a(be))&&fpt(re,be)},getDeclarationStatementsForSourceFile:(F,H,re,be)=>{const ge=No(F);N.assert(ge&&ge.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");const Je=Ir(F);return Je?Je.exports?At.symbolTableToDeclarationStatements(Je.exports,F,H,re,be):[]:F.locals?At.symbolTableToDeclarationStatements(F.locals,F,H,re,be):[]},isImportRequiredByAugmentation:c,tryFindAmbientModule:F=>{const H=No(F),re=H&&ls(H)?H.text:void 0;return re!==void 0?SZ(re,!0):void 0}};function c(F){const H=Un(F);if(!H.symbol)return!1;const re=abe(F);if(!re||re===H)return!1;const be=Mh(H.symbol);for(const ge of zo(be.values()))if(ge.mergeId){const Je=rs(ge);if(Je.declarations){for(const gt of Je.declarations)if(Un(gt)===re)return!0}}return!1}function d(F){return F.parent&&F.parent.kind===233&&F.parent.parent&&F.parent.parent.kind===298}function _(F){if(!a)return;let H;F.parent.kind===167?H=1160127:(H=790504,(F.kind===80&&DS(F)||F.kind===211&&!d(F))&&(H=1160127));const re=Hs(F,H,!0);return re&&re!==ft?v(re,H):void 0}function v(F,H){if(!a||!x(F))return;let re;for(const be of F.declarations)if(be.symbol&&be.symbol.flags&H){const ge=Un(be),Je=a.get(ge.path);if(Je)(re||(re=[])).push(Je);else return}return re}function x(F){if(!F.declarations)return!1;let H=F;for(;;){const re=Cd(H);if(re)H=re;else break}if(H.valueDeclaration&&H.valueDeclaration.kind===312&&H.flags&512)return!1;for(const re of F.declarations){const be=Un(re);if(a.has(be.path))return!0}return!1}function k(F,H,re){if(!a.has(F.path)){a.set(F.path,[H,re]);for(const{fileName:be}of F.referencedFiles){const ge=s7(be,F.fileName),Je=e.getSourceFile(ge);Je&&k(Je,H,re||F.impliedNodeFormat)}}}}function abe(n){const a=n.kind===267?ri(n.name,Na):fR(n),c=nv(a,a,void 0);if(c)return pl(c,312)}function Uvt(){for(const a of e.getSourceFiles())Pse(a,V);Es=new Map;let n;for(const a of e.getSourceFiles())if(!a.redirectInfo){if(!Fp(a)){const c=a.locals.get("globalThis");if(c!=null&&c.declarations)for(const d of c.declarations)ts.add(kr(d,f.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));a_(Se,a.locals)}a.jsGlobalAugmentations&&a_(Se,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(sm=So(sm,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(const a of n)for(const c of a)A_(c.parent)&&QD(c);if(I1(Se,fT,f.Declaration_name_conflicts_with_built_in_global_identifier_0),Ki(je).type=Lt,Ki(Bt).type=tc("IArguments",0,!0),Ki(ft).type=_t,Ki(ot).type=Wf(16,ot),$o=tc("Array",1,!0),Pe=tc("Object",0,!0),Ot=tc("Function",0,!0),Xn=pe&&tc("CallableFunction",0,!0)||Ot,yo=pe&&tc("NewableFunction",0,!0)||Ot,Zl=tc("String",0,!0),yc=tc("Number",0,!0),ul=tc("Boolean",0,!0),vl=tc("RegExp",0,!0),ec=Vu(j),Hc=Vu(it),Hc===Ca&&(Hc=Ls(void 0,K,et,et,et)),na=_8e("ReadonlyArray",1)||$o,df=na?x8(na,[j]):ec,Gl=_8e("ThisType",1),n)for(const a of n)for(const c of a)A_(c.parent)||QD(c);Es.forEach(({firstFile:a,secondFile:c,conflictingSymbols:d})=>{if(d.size<8)d.forEach(({isBlockScoped:_,firstFileLocations:v,secondFileLocations:x},k)=>{const F=_?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0;for(const H of v)Qg(H,F,k,x);for(const H of x)Qg(H,F,k,v)});else{const _=zo(d.keys()).join(", ");ts.add(Ma(kr(a,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,_),kr(c,f.Conflicts_are_in_this_file))),ts.add(Ma(kr(c,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,_),kr(a,f.Conflicts_are_in_this_file)))}}),Es=void 0}function Dc(n,a){if((s&a)!==a&&V.importHelpers){const c=Un(n);if(RA(c,V)&&!(n.flags&33554432)){const d=qvt(c,n);if(d!==ft){const _=a&~s;for(let v=1;v<=33554432;v<<=1)if(_&v)for(const x of Hvt(v)){if(o.has(x))continue;o.add(x);const k=Vl(Jd(Mh(d),_l(x),111551));k?v&524288?bt(z1(k),F=>Xp(F)>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,Vy,x,4):v&1048576?bt(z1(k),F=>Xp(F)>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,Vy,x,5):v&1024&&(bt(z1(k),F=>Xp(F)>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,Vy,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,Vy,x)}}s|=a}}}function Hvt(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 N.fail("Unrecognized helper")}}function qvt(n,a){return l||(l=q_(n,Vy,f.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||ft),l}function Ig(n){var a;const c=Xvt(n)||Jvt(n);if(c!==void 0)return c;if(Ao(n)&&GE(n))return _u(n,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const d=Ll(n)?n.declarationList.flags&7:0;let _,v,x,k,F,H=0,re=!1,be=!1;for(const ge of n.modifiers)if(Eu(ge)){if(K4(ne,n,n.parent,n.parent.parent)){if(ne&&(n.kind===177||n.kind===178)){const Je=NS(n.parent.members,n);if(Tf(Je.firstAccessor)&&n===Je.secondAccessor)return _u(n,f.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===174&&!Kf(n.body)?_u(n,f.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):_u(n,f.Decorators_are_not_valid_here);if(H&-34849)return Sn(ge,f.Decorators_are_not_valid_here);if(be&&H&98303){N.assertIsDefined(F);const Je=Un(ge);return Q1(Je)?!1:(Ma(qe(ge,f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),kr(F,f.Decorator_used_before_export_here)),!0)}H|=32768,H&98303?H&32&&(re=!0):be=!0,F??(F=ge)}else{if(ge.kind!==148){if(n.kind===171||n.kind===173)return Sn(ge,f._0_modifier_cannot_appear_on_a_type_member,pa(ge.kind));if(n.kind===181&&(ge.kind!==126||!di(n.parent)))return Sn(ge,f._0_modifier_cannot_appear_on_an_index_signature,pa(ge.kind))}if(ge.kind!==103&&ge.kind!==147&&ge.kind!==87&&n.kind===168)return Sn(ge,f._0_modifier_cannot_appear_on_a_type_parameter,pa(ge.kind));switch(ge.kind){case 87:{if(n.kind!==266&&n.kind!==168)return Sn(n,f.A_class_member_cannot_have_the_0_keyword,pa(87));const Dt=om(n.parent)&&p0(n.parent)||n.parent;if(n.kind===168&&!(Bs(Dt)||di(Dt)||bh(Dt)||zR(Dt)||ZA(Dt)||Bk(Dt)||yh(Dt)))return Sn(ge,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,pa(ge.kind));break}case 164:if(H&16)return Sn(ge,f._0_modifier_already_seen,"override");if(H&128)return Sn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(H&8)return Sn(ge,f._0_modifier_must_precede_1_modifier,"override","readonly");if(H&512)return Sn(ge,f._0_modifier_must_precede_1_modifier,"override","accessor");if(H&1024)return Sn(ge,f._0_modifier_must_precede_1_modifier,"override","async");H|=16,k=ge;break;case 125:case 124:case 123:const Je=wT(OA(ge.kind));if(H&7)return Sn(ge,f.Accessibility_modifier_already_seen);if(H&16)return Sn(ge,f._0_modifier_must_precede_1_modifier,Je,"override");if(H&256)return Sn(ge,f._0_modifier_must_precede_1_modifier,Je,"static");if(H&512)return Sn(ge,f._0_modifier_must_precede_1_modifier,Je,"accessor");if(H&8)return Sn(ge,f._0_modifier_must_precede_1_modifier,Je,"readonly");if(H&1024)return Sn(ge,f._0_modifier_must_precede_1_modifier,Je,"async");if(n.parent.kind===268||n.parent.kind===312)return Sn(ge,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,Je);if(H&64)return ge.kind===123?Sn(ge,f._0_modifier_cannot_be_used_with_1_modifier,Je,"abstract"):Sn(ge,f._0_modifier_must_precede_1_modifier,Je,"abstract");if(sd(n))return Sn(ge,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);H|=OA(ge.kind);break;case 126:if(H&256)return Sn(ge,f._0_modifier_already_seen,"static");if(H&8)return Sn(ge,f._0_modifier_must_precede_1_modifier,"static","readonly");if(H&1024)return Sn(ge,f._0_modifier_must_precede_1_modifier,"static","async");if(H&512)return Sn(ge,f._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===268||n.parent.kind===312)return Sn(ge,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===169)return Sn(ge,f._0_modifier_cannot_appear_on_a_parameter,"static");if(H&64)return Sn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(H&16)return Sn(ge,f._0_modifier_must_precede_1_modifier,"static","override");H|=256,_=ge;break;case 129:if(H&512)return Sn(ge,f._0_modifier_already_seen,"accessor");if(H&8)return Sn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(H&128)return Sn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==172)return Sn(ge,f.accessor_modifier_can_only_appear_on_a_property_declaration);H|=512;break;case 148:if(H&8)return Sn(ge,f._0_modifier_already_seen,"readonly");if(n.kind!==172&&n.kind!==171&&n.kind!==181&&n.kind!==169)return Sn(ge,f.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(H&512)return Sn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");H|=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||Un(n).impliedNodeFormat===1))return Sn(ge,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(H&32)return Sn(ge,f._0_modifier_already_seen,"export");if(H&128)return Sn(ge,f._0_modifier_must_precede_1_modifier,"export","declare");if(H&64)return Sn(ge,f._0_modifier_must_precede_1_modifier,"export","abstract");if(H&1024)return Sn(ge,f._0_modifier_must_precede_1_modifier,"export","async");if(di(n.parent))return Sn(ge,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===169)return Sn(ge,f._0_modifier_cannot_appear_on_a_parameter,"export");if(d===4)return Sn(ge,f._0_modifier_cannot_appear_on_a_using_declaration,"export");if(d===6)return Sn(ge,f._0_modifier_cannot_appear_on_an_await_using_declaration,"export");H|=32;break;case 90:const gt=n.parent.kind===312?n.parent:n.parent.parent;if(gt.kind===267&&!ku(gt))return Sn(ge,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(d===4)return Sn(ge,f._0_modifier_cannot_appear_on_a_using_declaration,"default");if(d===6)return Sn(ge,f._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(H&32){if(re)return Sn(F,f.Decorators_are_not_valid_here)}else return Sn(ge,f._0_modifier_must_precede_1_modifier,"export","default");H|=2048;break;case 138:if(H&128)return Sn(ge,f._0_modifier_already_seen,"declare");if(H&1024)return Sn(ge,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(H&16)return Sn(ge,f._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(di(n.parent)&&!qo(n))return Sn(ge,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===169)return Sn(ge,f._0_modifier_cannot_appear_on_a_parameter,"declare");if(d===4)return Sn(ge,f._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(d===6)return Sn(ge,f._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(n.parent.flags&33554432&&n.parent.kind===268)return Sn(ge,f.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(sd(n))return Sn(ge,f._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(H&512)return Sn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");H|=128,v=ge;break;case 128:if(H&64)return Sn(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 Sn(ge,f.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===263&&Qr(n.parent,64))){const Dt=n.kind===172?f.Abstract_properties_can_only_appear_within_an_abstract_class:f.Abstract_methods_can_only_appear_within_an_abstract_class;return Sn(ge,Dt)}if(H&256)return Sn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(H&2)return Sn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(H&1024&&x)return Sn(x,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(H&16)return Sn(ge,f._0_modifier_must_precede_1_modifier,"abstract","override");if(H&512)return Sn(ge,f._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(ad(n)&&n.name.kind===81)return Sn(ge,f._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");H|=64;break;case 134:if(H&1024)return Sn(ge,f._0_modifier_already_seen,"async");if(H&128||n.parent.flags&33554432)return Sn(ge,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===169)return Sn(ge,f._0_modifier_cannot_appear_on_a_parameter,"async");if(H&64)return Sn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");H|=1024,x=ge;break;case 103:case 147:{const Dt=ge.kind===103?8192:16384,an=ge.kind===103?"in":"out",cn=om(n.parent)&&(p0(n.parent)||In((a=hR(n.parent))==null?void 0:a.tags,US))||n.parent;if(n.kind!==168||cn&&!(md(cn)||di(cn)||xm(cn)||US(cn)))return Sn(ge,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,an);if(H&Dt)return Sn(ge,f._0_modifier_already_seen,an);if(Dt&8192&&H&16384)return Sn(ge,f._0_modifier_must_precede_1_modifier,"in","out");H|=Dt;break}}}return n.kind===176?H&256?Sn(_,f._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):H&16?Sn(k,f._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):H&1024?Sn(x,f._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===272||n.kind===271)&&H&128?Sn(v,f.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===169&&H&31&&ta(n.name)?Sn(n,f.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===169&&H&31&&n.dotDotDotToken?Sn(n,f.A_parameter_property_cannot_be_declared_using_a_rest_parameter):H&1024?$vt(n,x):!1}function Jvt(n){if(!n.modifiers)return!1;const a=Kvt(n);return a&&_u(a,f.Modifiers_cannot_appear_here)}function ste(n,a){const c=In(n.modifiers,Aa);return c&&c.kind!==a?c:void 0}function Kvt(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 In(n.modifiers,Aa);default:if(n.parent.kind===268||n.parent.kind===312)return;switch(n.kind){case 262:return ste(n,134);case 263:case 185:return ste(n,128);case 231:case 264:case 265:return In(n.modifiers,Aa);case 243:return n.declarationList.flags&4?ste(n,135):In(n.modifiers,Aa);case 266:return ste(n,87);default:N.assertNever(n)}}}function Xvt(n){const a=Yvt(n);return a&&_u(a,f.Decorators_are_not_valid_here)}function Yvt(n){return NH(n)?In(n.modifiers,Eu):void 0}function $vt(n,a){switch(n.kind){case 174:case 262:case 218:case 219:return!1}return Sn(a,f._0_modifier_cannot_be_used_here,"async")}function vx(n,a=f.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?Z1(n[0],n.end-1,1,a):!1}function vFe(n,a){if(n&&n.length===0){const c=n.pos-1,d=Pa(a.text,n.end)+1;return Z1(a,c,d-c,f.Type_parameter_list_cannot_be_empty)}return!1}function Qvt(n){let a=!1;const c=n.length;for(let d=0;d<c;d++){const _=n[d];if(_.dotDotDotToken){if(d!==c-1)return Sn(_.dotDotDotToken,f.A_rest_parameter_must_be_last_in_a_parameter_list);if(_.flags&33554432||vx(n,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),_.questionToken)return Sn(_.questionToken,f.A_rest_parameter_cannot_be_optional);if(_.initializer)return Sn(_.name,f.A_rest_parameter_cannot_have_an_initializer)}else if(T8(_)){if(a=!0,_.questionToken&&_.initializer)return Sn(_.name,f.Parameter_cannot_have_question_mark_and_initializer)}else if(a&&!_.initializer)return Sn(_.name,f.A_required_parameter_cannot_follow_an_optional_parameter)}}function Zvt(n){return mn(n,a=>!!a.initializer||ta(a.name)||Xh(a))}function eyt(n){if(se>=3){const a=n.body&&Ko(n.body)&&IH(n.body.statements);if(a){const c=Zvt(n.parameters);if(Ne(c)){Xe(c,_=>{Ma(qe(_,f.This_parameter_is_not_allowed_with_use_strict_directive),kr(a,f.use_strict_directive_used_here))});const d=c.map((_,v)=>v===0?kr(_,f.Non_simple_parameter_declared_here):kr(_,f.and_here));return Ma(qe(a,f.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...d),!0}}}return!1}function lte(n){const a=Un(n);return Ig(n)||vFe(n.typeParameters,a)||Qvt(n.parameters)||nyt(n,a)||Bs(n)&&eyt(n)}function tyt(n){const a=Un(n);return syt(n)||vFe(n.typeParameters,a)}function nyt(n,a){if(!Gs(n))return!1;n.typeParameters&&!(Ne(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&Sc(a.fileName,[".mts",".cts"])&&Sn(n.typeParameters[0],f.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:c}=n,d=ys(a,c.pos).line,_=ys(a,c.end).line;return d!==_&&Sn(c,f.Line_terminator_not_permitted_before_arrow)}function ryt(n){const a=n.parameters[0];if(n.parameters.length!==1)return Sn(a?a.name:n,f.An_index_signature_must_have_exactly_one_parameter);if(vx(n.parameters,f.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return Sn(a.dotDotDotToken,f.An_index_signature_cannot_have_a_rest_parameter);if(v3(a))return Sn(a.name,f.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return Sn(a.questionToken,f.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return Sn(a.name,f.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return Sn(a.name,f.An_index_signature_parameter_must_have_a_type_annotation);const c=Ti(a.type);return Gm(c,d=>!!(d.flags&8576))||AN(c)?Sn(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,xZ)?n.type?!1:Sn(n,f.An_index_signature_must_have_a_type_annotation):Sn(a.name,f.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function iyt(n){return Ig(n)||ryt(n)}function oyt(n,a){if(a&&a.length===0){const c=Un(n),d=a.pos-1,_=Pa(c.text,a.end)+1;return Z1(c,d,_-d,f.Type_argument_list_cannot_be_empty)}return!1}function vB(n,a){return vx(a)||oyt(n,a)}function ayt(n){return n.questionDotToken||n.flags&64?Sn(n.template,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function yFe(n){const a=n.types;if(vx(a))return!0;if(a&&a.length===0){const c=pa(n.token);return Z1(n,a.pos,0,f._0_list_cannot_be_empty,c)}return bt(a,bFe)}function bFe(n){return Vv(n)&&mP(n.expression)&&n.typeArguments?Sn(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):vB(n,n.typeArguments)}function syt(n){let a=!1,c=!1;if(!Ig(n)&&n.heritageClauses)for(const d of n.heritageClauses){if(d.token===96){if(a)return _u(d,f.extends_clause_already_seen);if(c)return _u(d,f.extends_clause_must_precede_implements_clause);if(d.types.length>1)return _u(d.types[1],f.Classes_can_only_extend_a_single_class);a=!0}else{if(N.assert(d.token===119),c)return _u(d,f.implements_clause_already_seen);c=!0}yFe(d)}}function lyt(n){let a=!1;if(n.heritageClauses)for(const c of n.heritageClauses){if(c.token===96){if(a)return _u(c,f.extends_clause_already_seen);a=!0}else return N.assert(c.token===119),_u(c,f.Interface_declaration_cannot_have_implements_clause);yFe(c)}return!1}function cte(n){if(n.kind!==167)return!1;const a=n;return a.expression.kind===226&&a.expression.operatorToken.kind===28?Sn(a.expression,f.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function sbe(n){if(n.asteriskToken){if(N.assert(n.kind===262||n.kind===218||n.kind===174),n.flags&33554432)return Sn(n.asteriskToken,f.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return Sn(n.asteriskToken,f.An_overload_signature_cannot_be_declared_as_a_generator)}}function lbe(n,a){return!!n&&Sn(n,a)}function EFe(n,a){return!!n&&Sn(n,a)}function cyt(n,a){const c=new Map;for(const d of n.properties){if(d.kind===305){if(a){const x=hs(d.expression);if(fd(x)||La(x))return Sn(d.expression,f.A_rest_element_cannot_contain_a_binding_pattern)}continue}const _=d.name;if(_.kind===167&&cte(_),d.kind===304&&!a&&d.objectAssignmentInitializer&&Sn(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&&Sn(_,f.Private_identifiers_are_not_allowed_outside_class_bodies),Rm(d)&&d.modifiers)for(const x of d.modifiers)Aa(x)&&(x.kind!==134||d.kind!==174)&&Sn(x,f._0_modifier_cannot_be_used_here,fc(x));else if(wae(d)&&d.modifiers)for(const x of d.modifiers)Aa(x)&&Sn(x,f._0_modifier_cannot_be_used_here,fc(x));let v;switch(d.kind){case 304:case 303:EFe(d.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context),lbe(d.questionToken,f.An_object_member_cannot_be_declared_optional),_.kind===9&&dbe(_),v=4;break;case 174:v=8;break;case 177:v=1;break;case 178:v=2;break;default:N.assertNever(d,"Unexpected syntax kind:"+d.kind)}if(!a){const x=pbe(_);if(x===void 0)continue;const k=c.get(x);if(!k)c.set(x,v);else if(v&8&&k&8)Sn(_,f.Duplicate_identifier_0,fc(_));else if(v&4&&k&4)Sn(_,f.An_object_literal_cannot_have_multiple_properties_with_the_same_name,fc(_));else if(v&3&&k&3)if(k!==3&&v!==k)c.set(x,v|k);else return Sn(_,f.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return Sn(_,f.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function uyt(n){dyt(n.tagName),vB(n,n.typeArguments);const a=new Map;for(const c of n.attributes.properties){if(c.kind===293)continue;const{name:d,initializer:_}=c,v=iP(d);if(!a.get(v))a.set(v,!0);else return Sn(d,f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(_&&_.kind===294&&!_.expression)return Sn(_,f.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function dyt(n){if(Fr(n)&&Qm(n.expression))return Sn(n.expression,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(Qm(n)&&k3(V)&&!SR(n.namespace.escapedText))return Sn(n,f.React_components_cannot_include_JSX_namespace_names)}function pyt(n){if(n.expression&&AP(n.expression))return Sn(n.expression,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function SFe(n){if(vv(n))return!0;if(n.kind===250&&n.awaitModifier&&!(n.flags&65536)){const a=Un(n);if(H4(n)){if(!Q1(a))switch(RA(a,V)||ts.add(kr(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){ts.add(kr(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(se>=4)break;default:ts.add(kr(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(!Q1(a)){const c=kr(n.awaitModifier,f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),d=Bp(n);if(d&&d.kind!==176){N.assert((Bc(d)&2)===0,"Enclosing function should never be an async function.");const _=kr(d,f.Did_you_mean_to_mark_this_function_as_async);Ma(c,_)}return ts.add(c),!0}return!1}if(Hk(n)&&!(n.flags&65536)&&Ve(n.initializer)&&n.initializer.escapedText==="async")return Sn(n.initializer,f.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===261){const a=n.initializer;if(!ube(a)){const c=a.declarations;if(!c.length)return!1;if(c.length>1){const _=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 _u(a.declarations[1],_)}const d=c[0];if(d.initializer){const _=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 Sn(d.name,_)}if(d.type){const _=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 Sn(d,_)}}}return!1}function fyt(n){if(!(n.flags&33554432)&&n.parent.kind!==187&&n.parent.kind!==264){if(se<1)return Sn(n.name,f.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(se<2&&qi(n.name))return Sn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!Qr(n,64))return Z1(n,n.end-1,1,f._0_expected,"{")}if(n.body){if(Qr(n,64))return Sn(n,f.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===187||n.parent.kind===264)return Sn(n.body,f.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return Sn(n.name,f.An_accessor_cannot_have_type_parameters);if(!myt(n))return Sn(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 Sn(n.name,f.A_set_accessor_cannot_have_a_return_type_annotation);const a=N.checkDefined(wC(n),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return Sn(a.dotDotDotToken,f.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return Sn(a.questionToken,f.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return Sn(n.name,f.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function myt(n){return cbe(n)||n.parameters.length===(n.kind===177?0:1)}function cbe(n){if(n.parameters.length===(n.kind===177?1:2))return BE(n)}function _yt(n){if(n.operator===158){if(n.type.kind!==155)return Sn(n.type,f._0_expected,pa(155));let a=XL(n.parent);if(lr(a)&&o1(a)){const c=AS(a);c&&(a=PA(c)||c)}switch(a.kind){case 260:const c=a;if(c.name.kind!==80)return Sn(n,f.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!bC(c))return Sn(n,f.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(c.parent.flags&2))return Sn(a.name,f.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!aa(a)||!OC(a))return Sn(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(!Qr(a,8))return Sn(a.name,f.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Sn(n,f.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===148&&n.type.kind!==188&&n.type.kind!==189)return _u(n,f.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,pa(155))}function p2(n,a){if(Lst(n))return Sn(n,a)}function TFe(n){if(lte(n))return!0;if(n.kind===174){if(n.parent.kind===210){if(n.modifiers&&!(n.modifiers.length===1&&Ua(n.modifiers).kind===134))return _u(n,f.Modifiers_cannot_appear_here);if(lbe(n.questionToken,f.An_object_member_cannot_be_declared_optional))return!0;if(EFe(n.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return Z1(n,n.end-1,1,f._0_expected,"{")}if(sbe(n))return!0}if(di(n.parent)){if(se<2&&qi(n.name))return Sn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&33554432)return p2(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 p2(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 p2(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 p2(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 hyt(n){let a=n;for(;a;){if(Xx(a))return Sn(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&&!Py(a.statement,!0)?Sn(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(Py(a,!1)&&!n.label)return!1;break}a=a.parent}if(n.label){const 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 Sn(n,c)}else{const 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 Sn(n,c)}}function gyt(n){if(n.dotDotDotToken){const a=n.parent.elements;if(n!==Xa(a))return Sn(n,f.A_rest_element_must_be_last_in_a_destructuring_pattern);if(vx(a,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return Sn(n.name,f.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return Z1(n,n.initializer.pos-1,1,f.A_rest_element_cannot_have_an_initializer)}function AFe(n){return ef(n)||n.kind===224&&n.operator===41&&n.operand.kind===9}function vyt(n){return n.kind===10||n.kind===224&&n.operator===41&&n.operand.kind===10}function yyt(n){if((Fr(n)||$s(n)&&AFe(n.argumentExpression))&&Bl(n.expression))return!!(nc(n).flags&1056)}function IFe(n){const a=n.initializer;if(a){const c=!(AFe(a)||yyt(a)||a.kind===112||a.kind===97||vyt(a));if((O4(n)||Oi(n)&&yB(n))&&!n.type){if(c)return Sn(a,f.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return Sn(a,f.Initializers_are_not_allowed_in_ambient_contexts)}}function byt(n){const a=eS(n),c=a&7;if(ta(n.name))switch(c){case 6:return Sn(n,f._0_declarations_may_not_have_binding_patterns,"await using");case 4:return Sn(n,f._0_declarations_may_not_have_binding_patterns,"using")}if(n.parent.parent.kind!==249&&n.parent.parent.kind!==250){if(a&33554432)IFe(n);else if(!n.initializer){if(ta(n.name)&&!ta(n.parent))return Sn(n,f.A_destructuring_declaration_must_have_an_initializer);switch(c){case 6:return Sn(n,f._0_declarations_must_be_initialized,"await using");case 4:return Sn(n,f._0_declarations_must_be_initialized,"using");case 2:return Sn(n,f._0_declarations_must_be_initialized,"const")}}}if(n.exclamationToken&&(n.parent.parent.kind!==243||!n.type||n.initializer||a&33554432)){const 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 Sn(n.exclamationToken,d)}return(G<5||Un(n).impliedNodeFormat===1)&&G!==4&&!(n.parent.parent.flags&33554432)&&Qr(n.parent.parent,32)&&xFe(n.name),!!c&&RFe(n.name)}function xFe(n){if(n.kind===80){if(Er(n)==="__esModule")return Tyt("noEmit",n,f.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const a=n.elements;for(const c of a)if(!Gc(c))return xFe(c.name)}return!1}function RFe(n){if(n.kind===80){if(n.escapedText==="let")return Sn(n,f.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const a=n.elements;for(const c of a)Gc(c)||RFe(c.name)}return!1}function ube(n){const a=n.declarations;if(vx(n.declarations))return!0;if(!n.declarations.length)return Z1(n,a.pos,a.end-a.pos,f.Variable_declaration_list_cannot_be_empty);const c=n.flags&7;return(c===4||c===6)&&KW(n.parent)?Sn(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 DFe(n){switch(n.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return DFe(n.parent)}return!0}function Eyt(n){if(!DFe(n.parent)){const a=eS(n.declarationList)&7;if(a){const c=a===1?"let":a===2?"const":a===4?"using":a===6?"await using":N.fail("Unknown BlockScope flag");return Sn(n,f._0_declarations_can_only_be_declared_inside_a_block,c)}}}function Syt(n){const a=n.name.escapedText;switch(n.keywordToken){case 105:if(a!=="target")return Sn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Vi(n.name.escapedText),pa(n.keywordToken),"target");break;case 102:if(a!=="meta")return Sn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Vi(n.name.escapedText),pa(n.keywordToken),"meta");break}}function Q1(n){return n.parseDiagnostics.length>0}function _u(n,a,...c){const d=Un(n);if(!Q1(d)){const _=hh(d,n.pos);return ts.add($c(d,_.start,_.length,a,...c)),!0}return!1}function Z1(n,a,c,d,..._){const v=Un(n);return Q1(v)?!1:(ts.add($c(v,a,c,d,..._)),!0)}function Tyt(n,a,c,...d){const _=Un(a);return Q1(_)?!1:(r_(n,a,c,...d),!0)}function Sn(n,a,...c){const d=Un(n);return Q1(d)?!1:(ts.add(kr(n,a,...c)),!0)}function Ayt(n){const a=lr(n)?g3(n):void 0,c=n.typeParameters||a&&Kc(a);if(c){const d=c.pos===c.end?c.pos:Pa(Un(n).text,c.pos);return Z1(n,d,c.end-d,f.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function Iyt(n){const a=n.type||em(n);if(a)return Sn(a,f.Type_annotation_cannot_appear_on_a_constructor_declaration)}function xyt(n){if(Za(n.name)&&mr(n.name.expression)&&n.name.expression.operatorToken.kind===103)return Sn(n.parent.members[0],f.A_mapped_type_may_not_declare_properties_or_methods);if(di(n.parent)){if(Na(n.name)&&n.name.text==="constructor")return Sn(n.name,f.Classes_may_not_have_a_field_named_constructor);if(p2(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(se<2&&qi(n.name))return Sn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(se<2&&Wd(n))return Sn(n.name,f.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Wd(n)&&lbe(n.questionToken,f.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===264){if(p2(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(N.assertNode(n,gp),n.initializer)return Sn(n.initializer,f.An_interface_property_cannot_have_an_initializer)}else if(yp(n.parent)){if(p2(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(N.assertNode(n,gp),n.initializer)return Sn(n.initializer,f.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&33554432&&IFe(n),qo(n)&&n.exclamationToken&&(!di(n.parent)||!n.type||n.initializer||n.flags&33554432||aa(n)||jE(n))){const 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 Sn(n.exclamationToken,a)}}function Ryt(n){return n.kind===264||n.kind===265||n.kind===272||n.kind===271||n.kind===278||n.kind===277||n.kind===270||Qr(n,2208)?!1:_u(n,f.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function Dyt(n){for(const a of n.statements)if((Ju(a)||a.kind===243)&&Ryt(a))return!0;return!1}function Nyt(n){return!!(n.flags&33554432)&&Dyt(n)}function vv(n){if(n.flags&33554432){if(!Zr(n).hasReportedStatementInAmbientContext&&(ea(n.parent)||Cy(n.parent)))return Zr(n).hasReportedStatementInAmbientContext=_u(n,f.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===241||n.parent.kind===268||n.parent.kind===312){const c=Zr(n.parent);if(!c.hasReportedStatementInAmbientContext)return c.hasReportedStatementInAmbientContext=_u(n,f.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function dbe(n){const a=fc(n).includes("."),c=n.numericLiteralFlags&16;a||c||+n.text<=2**53-1||i_(!1,kr(n,f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function Cyt(n){return!!(!(Jy(n.parent)||Xy(n.parent)&&Jy(n.parent.parent))&&se<7&&Sn(n,f.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function Pyt(n,a,...c){const d=Un(n);if(!Q1(d)){const _=hh(d,n.pos);return ts.add($c(d,Kl(_),0,a,...c)),!0}return!1}function Myt(){return wc||(wc=[],Se.forEach((n,a)=>{xq.test(a)&&wc.push(n)})),wc}function Lyt(n){var a;return n.isTypeOnly&&n.name&&n.namedBindings?Sn(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?NFe(n.namedBindings):!1}function NFe(n){return!!Xe(n.elements,a=>{if(a.isTypeOnly)return _u(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 kyt(n){if(V.verbatimModuleSyntax&&G===1)return Sn(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(G===5)return Sn(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 Sn(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const a=n.arguments;if(G!==99&&G!==199&&G!==100&&(vx(a),a.length>1)){const d=a[1];return Sn(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 Sn(n,f.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const c=In(a,$m);return c?Sn(c,f.Argument_of_dynamic_import_cannot_be_spread_element):!1}function wyt(n,a){const c=Wr(n);if(c&20&&a.flags&1048576)return In(a.types,d=>{if(d.flags&524288){const _=c&Wr(d);if(_&4)return n.target===d.target;if(_&16)return!!n.aliasSymbol&&n.aliasSymbol===d.aliasSymbol}return!1})}function Oyt(n,a){if(Wr(n)&128&&Gm(a,my))return In(a.types,c=>!my(c))}function Wyt(n,a){let c=0;if(Xo(n,c).length>0||(c=1,Xo(n,c).length>0))return In(a.types,_=>Xo(_,c).length>0)}function Fyt(n,a){let c;if(!(n.flags&406978556)){let d=0;for(const _ of a.types)if(!(_.flags&406978556)){const v=ya([Y_(n),Y_(_)]);if(v.flags&4194304)return _;if(__(v)||v.flags&1048576){const x=v.flags&1048576?ou(v.types,__):1;x>=d&&(c=_,d=x)}}}return c}function zyt(n){if(Cl(n,67108864)){const a=dc(n,c=>!(c.flags&402784252));if(!(a.flags&131072))return a}return n}function CFe(n,a,c){if(a.flags&1048576&&n.flags&2621440){const d=V6e(a,n);if(d)return d;const _=gs(n);if(_){const v=G6e(_,a);if(v){const x=Zge(a,Wt(v,k=>[()=>dr(k),k.escapedName]),c);if(x!==a)return x}}}}function pbe(n){const a=IS(n);return a||(Za(n)?Ave(Ru(n.expression)):void 0)}function ute(n){return $n===n||($n=n,gn=n0(n)),gn}function eS(n){return rn===n||(rn=n,Mn=Cv(n)),Mn}function yB(n){const a=eS(n)&7;return a===2||a===4||a===6}}function LVe(e){return!Cy(e)}function OIe(e){return e.kind!==262&&e.kind!==174||!!e.body}function WIe(e){switch(e.parent.kind){case 276:case 281:return Ve(e);default:return wg(e)}}function FIe(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Yu(e){return!!(e.flags&1)}function Iq(e){return!!(e.flags&2)}function kVe(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:ia(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:ia(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 xq,OF,Gse,Vse,jse,Use,WF,Rq,FF,zF,zIe,BF,Hse,of,Dq,wVe=I({"src/compiler/checker.ts"(){ra(),zse(),sS(),xq=/^".+"$/,OF="(anonymous)",Gse=1,Vse=1,jse=1,Use=1,WF=(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))(WF||{}),Rq=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),FF=(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))(FF||{}),zF=(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))(zF||{}),zIe=D6(OIe,LVe),BF=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),Hse=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"})(of||(of={})),Dq=class MFe{constructor(t,r,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var o;r instanceof MFe;)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 nt(e,t,r,i){if(e===void 0)return e;const o=t(e);let s;if(o!==void 0)return To(o)?s=(i||BVe)(o):s=o,N.assertNode(s,r),s}function jn(e,t,r,i,o){if(e===void 0)return e;const 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||o<s?l=e.hasTrailingComma&&i+o===s:(u=e.pos,p=e.end,l=e.hasTrailingComma);const h=BIe(e,t,r,i,o);if(h!==e){const m=w.createNodeArray(h,l);return gh(m,u,p),m}return e}function Rw(e,t,r,i,o){if(e===void 0)return e;const s=e.length;return(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i),BIe(e,t,r,i,o)}function BIe(e,t,r,i,o){let s;const l=e.length;(i>0||o<l)&&(s=[]);for(let u=0;u<o;u++){const p=e[u+i],h=p!==void 0?t?t(p):p:void 0;if((s!==void 0||h===void 0||h!==p)&&(s===void 0&&(s=e.slice(0,u),N.assertEachNode(s,r)),h))if(To(h))for(const m of h)N.assertNode(m,r),s.push(m);else N.assertNode(h,r),s.push(h)}return s||(N.assertEachNode(e,r),e)}function Nq(e,t,r,i,o,s=jn){return r.startLexicalEnvironment(),e=s(e,t,Hi,i),o&&(e=r.factory.ensureUseStrict(e)),w.mergeLexicalEnvironment(e,r.endLexicalEnvironment())}function Dl(e,t,r,i=jn){let o;return r.startLexicalEnvironment(),e&&(r.setLexicalEnvironmentFlags(1,!0),o=i(e,t,Ao),r.getLexicalEnvironmentFlags()&2&&os(r.getCompilerOptions())>=2&&(o=OVe(o,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),o}function OVe(e,t){let r;for(let i=0;i<e.length;i++){const o=e[i],s=WVe(o,t);(r||s!==o)&&(r||(r=e.slice(0,i)),r[i]=s)}return r?dt(t.factory.createNodeArray(r,e.hasTrailingComma),e):e}function WVe(e,t){return e.dotDotDotToken?e:ta(e.name)?FVe(e,t):e.initializer?zVe(e,e.name,e.initializer,t):e}function FVe(e,t){const{factory:r}=t;return t.addInitializationStatement(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(e.name,void 0,e.type,e.initializer?r.createConditionalExpression(r.createStrictEquality(r.getGeneratedNameForNode(e),r.createVoidZero()),void 0,e.initializer,void 0,r.getGeneratedNameForNode(e)):r.getGeneratedNameForNode(e))]))),r.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,r.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)}function zVe(e,t,r,i){const o=i.factory;return i.addInitializationStatement(o.createIfStatement(o.createTypeCheck(o.cloneNode(t),"undefined"),pr(dt(o.createBlock([o.createExpressionStatement(pr(dt(o.createAssignment(pr(o.cloneNode(t),96),pr(r,96|Ga(r)|3072)),e),3072))]),e),3905))),o.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,void 0)}function af(e,t,r,i=nt){r.resumeLexicalEnvironment();const o=i(e,t,y4),s=r.endLexicalEnvironment();if(bt(s)){if(!o)return r.factory.createBlock(s);const l=r.factory.converters.convertToFunctionBlock(o),u=w.mergeLexicalEnvironment(l.statements,s);return r.factory.updateBlock(l,u)}return o}function xd(e,t,r,i=nt){r.startBlockScope();const o=i(e,t,Hi,r.factory.liftToBlock);N.assert(o);const s=r.endBlockScope();return bt(s)?Ko(o)?(s.push(...o.statements),r.factory.updateBlock(o,s)):(s.push(o),r.factory.createBlock(s)):o}function Dw(e,t,r=t){if(r===t||e.length<=1)return jn(e,t,yt);let i=0;const o=e.length;return jn(e,s=>{const l=i<o-1;return i++,l?r(s):t(s)},yt)}function xn(e,t,r=UP,i=jn,o,s=nt){if(e===void 0)return;const l=GIe[e.kind];return l===void 0?e:l(e,t,r,i,s,o)}function BVe(e){return N.assert(e.length<=1,"Too many nodes written to output."),ah(e)}var GIe,GVe=I({"src/compiler/visitorPublic.ts"(){ra(),GIe={166:function(t,r,i,o,s,l){return i.factory.updateQualifiedName(t,N.checkDefined(s(t.left,r,Qd)),N.checkDefined(s(t.right,r,Ve)))},167:function(t,r,i,o,s,l){return i.factory.updateComputedPropertyName(t,N.checkDefined(s(t.expression,r,yt)))},168:function(t,r,i,o,s,l){return i.factory.updateTypeParameterDeclaration(t,o(t.modifiers,r,Aa),N.checkDefined(s(t.name,r,Ve)),s(t.constraint,r,ji),s(t.default,r,ji))},169:function(t,r,i,o,s,l){return i.factory.updateParameterDeclaration(t,o(t.modifiers,r,sl),l?s(t.dotDotDotToken,l,BW):t.dotDotDotToken,N.checkDefined(s(t.name,r,pS)),l?s(t.questionToken,l,Hy):t.questionToken,s(t.type,r,ji),s(t.initializer,r,yt))},170:function(t,r,i,o,s,l){return i.factory.updateDecorator(t,N.checkDefined(s(t.expression,r,yt)))},171:function(t,r,i,o,s,l){return i.factory.updatePropertySignature(t,o(t.modifiers,r,Aa),N.checkDefined(s(t.name,r,oc)),l?s(t.questionToken,l,Hy):t.questionToken,s(t.type,r,ji))},172:function(t,r,i,o,s,l){return i.factory.updatePropertyDeclaration(t,o(t.modifiers,r,sl),N.checkDefined(s(t.name,r,oc)),l?s(t.questionToken??t.exclamationToken,l,Oae):t.questionToken??t.exclamationToken,s(t.type,r,ji),s(t.initializer,r,yt))},173:function(t,r,i,o,s,l){return i.factory.updateMethodSignature(t,o(t.modifiers,r,Aa),N.checkDefined(s(t.name,r,oc)),l?s(t.questionToken,l,Hy):t.questionToken,o(t.typeParameters,r,hl),o(t.parameters,r,Ao),s(t.type,r,ji))},174:function(t,r,i,o,s,l){return i.factory.updateMethodDeclaration(t,o(t.modifiers,r,sl),l?s(t.asteriskToken,l,Fk):t.asteriskToken,N.checkDefined(s(t.name,r,oc)),l?s(t.questionToken,l,Hy):t.questionToken,o(t.typeParameters,r,hl),Dl(t.parameters,r,i,o),s(t.type,r,ji),af(t.body,r,i,s))},176:function(t,r,i,o,s,l){return i.factory.updateConstructorDeclaration(t,o(t.modifiers,r,sl),Dl(t.parameters,r,i,o),af(t.body,r,i,s))},177:function(t,r,i,o,s,l){return i.factory.updateGetAccessorDeclaration(t,o(t.modifiers,r,sl),N.checkDefined(s(t.name,r,oc)),Dl(t.parameters,r,i,o),s(t.type,r,ji),af(t.body,r,i,s))},178:function(t,r,i,o,s,l){return i.factory.updateSetAccessorDeclaration(t,o(t.modifiers,r,sl),N.checkDefined(s(t.name,r,oc)),Dl(t.parameters,r,i,o),af(t.body,r,i,s))},175:function(t,r,i,o,s,l){return i.startLexicalEnvironment(),i.suspendLexicalEnvironment(),i.factory.updateClassStaticBlockDeclaration(t,af(t.body,r,i,s))},179:function(t,r,i,o,s,l){return i.factory.updateCallSignature(t,o(t.typeParameters,r,hl),o(t.parameters,r,Ao),s(t.type,r,ji))},180:function(t,r,i,o,s,l){return i.factory.updateConstructSignature(t,o(t.typeParameters,r,hl),o(t.parameters,r,Ao),s(t.type,r,ji))},181:function(t,r,i,o,s,l){return i.factory.updateIndexSignature(t,o(t.modifiers,r,sl),o(t.parameters,r,Ao),N.checkDefined(s(t.type,r,ji)))},182:function(t,r,i,o,s,l){return i.factory.updateTypePredicateNode(t,s(t.assertsModifier,r,iae),N.checkDefined(s(t.parameterName,r,Wae)),s(t.type,r,ji))},183:function(t,r,i,o,s,l){return i.factory.updateTypeReferenceNode(t,N.checkDefined(s(t.typeName,r,Qd)),o(t.typeArguments,r,ji))},184:function(t,r,i,o,s,l){return i.factory.updateFunctionTypeNode(t,o(t.typeParameters,r,hl),o(t.parameters,r,Ao),N.checkDefined(s(t.type,r,ji)))},185:function(t,r,i,o,s,l){return i.factory.updateConstructorTypeNode(t,o(t.modifiers,r,Aa),o(t.typeParameters,r,hl),o(t.parameters,r,Ao),N.checkDefined(s(t.type,r,ji)))},186:function(t,r,i,o,s,l){return i.factory.updateTypeQueryNode(t,N.checkDefined(s(t.exprName,r,Qd)),o(t.typeArguments,r,ji))},187:function(t,r,i,o,s,l){return i.factory.updateTypeLiteralNode(t,o(t.members,r,fS))},188:function(t,r,i,o,s,l){return i.factory.updateArrayTypeNode(t,N.checkDefined(s(t.elementType,r,ji)))},189:function(t,r,i,o,s,l){return i.factory.updateTupleTypeNode(t,o(t.elements,r,ji))},190:function(t,r,i,o,s,l){return i.factory.updateOptionalTypeNode(t,N.checkDefined(s(t.type,r,ji)))},191:function(t,r,i,o,s,l){return i.factory.updateRestTypeNode(t,N.checkDefined(s(t.type,r,ji)))},192:function(t,r,i,o,s,l){return i.factory.updateUnionTypeNode(t,o(t.types,r,ji))},193:function(t,r,i,o,s,l){return i.factory.updateIntersectionTypeNode(t,o(t.types,r,ji))},194:function(t,r,i,o,s,l){return i.factory.updateConditionalTypeNode(t,N.checkDefined(s(t.checkType,r,ji)),N.checkDefined(s(t.extendsType,r,ji)),N.checkDefined(s(t.trueType,r,ji)),N.checkDefined(s(t.falseType,r,ji)))},195:function(t,r,i,o,s,l){return i.factory.updateInferTypeNode(t,N.checkDefined(s(t.typeParameter,r,hl)))},205:function(t,r,i,o,s,l){return i.factory.updateImportTypeNode(t,N.checkDefined(s(t.argument,r,ji)),s(t.attributes,r,aI),s(t.qualifier,r,Qd),o(t.typeArguments,r,ji),t.isTypeOf)},302:function(t,r,i,o,s,l){return i.factory.updateImportTypeAssertionContainer(t,N.checkDefined(s(t.assertClause,r,_ae)),t.multiLine)},202:function(t,r,i,o,s,l){return i.factory.updateNamedTupleMember(t,l?s(t.dotDotDotToken,l,BW):t.dotDotDotToken,N.checkDefined(s(t.name,r,Ve)),l?s(t.questionToken,l,Hy):t.questionToken,N.checkDefined(s(t.type,r,ji)))},196:function(t,r,i,o,s,l){return i.factory.updateParenthesizedType(t,N.checkDefined(s(t.type,r,ji)))},198:function(t,r,i,o,s,l){return i.factory.updateTypeOperatorNode(t,N.checkDefined(s(t.type,r,ji)))},199:function(t,r,i,o,s,l){return i.factory.updateIndexedAccessTypeNode(t,N.checkDefined(s(t.objectType,r,ji)),N.checkDefined(s(t.indexType,r,ji)))},200:function(t,r,i,o,s,l){return i.factory.updateMappedTypeNode(t,l?s(t.readonlyToken,l,Fae):t.readonlyToken,N.checkDefined(s(t.typeParameter,r,hl)),s(t.nameType,r,ji),l?s(t.questionToken,l,zae):t.questionToken,s(t.type,r,ji),o(t.members,r,fS))},201:function(t,r,i,o,s,l){return i.factory.updateLiteralTypeNode(t,N.checkDefined(s(t.literal,r,hre)))},203:function(t,r,i,o,s,l){return i.factory.updateTemplateLiteralType(t,N.checkDefined(s(t.head,r,YA)),o(t.templateSpans,r,aH))},204:function(t,r,i,o,s,l){return i.factory.updateTemplateLiteralTypeSpan(t,N.checkDefined(s(t.type,r,ji)),N.checkDefined(s(t.literal,r,_4)))},206:function(t,r,i,o,s,l){return i.factory.updateObjectBindingPattern(t,o(t.elements,r,$a))},207:function(t,r,i,o,s,l){return i.factory.updateArrayBindingPattern(t,o(t.elements,r,g4))},208:function(t,r,i,o,s,l){return i.factory.updateBindingElement(t,l?s(t.dotDotDotToken,l,BW):t.dotDotDotToken,s(t.propertyName,r,oc),N.checkDefined(s(t.name,r,pS)),s(t.initializer,r,yt))},209:function(t,r,i,o,s,l){return i.factory.updateArrayLiteralExpression(t,o(t.elements,r,yt))},210:function(t,r,i,o,s,l){return i.factory.updateObjectLiteralExpression(t,o(t.properties,r,Mg))},211:function(t,r,i,o,s,l){return p4(t)?i.factory.updatePropertyAccessChain(t,N.checkDefined(s(t.expression,r,yt)),l?s(t.questionDotToken,l,GW):t.questionDotToken,N.checkDefined(s(t.name,r,Kh))):i.factory.updatePropertyAccessExpression(t,N.checkDefined(s(t.expression,r,yt)),N.checkDefined(s(t.name,r,Kh)))},212:function(t,r,i,o,s,l){return DV(t)?i.factory.updateElementAccessChain(t,N.checkDefined(s(t.expression,r,yt)),l?s(t.questionDotToken,l,GW):t.questionDotToken,N.checkDefined(s(t.argumentExpression,r,yt))):i.factory.updateElementAccessExpression(t,N.checkDefined(s(t.expression,r,yt)),N.checkDefined(s(t.argumentExpression,r,yt)))},213:function(t,r,i,o,s,l){return uS(t)?i.factory.updateCallChain(t,N.checkDefined(s(t.expression,r,yt)),l?s(t.questionDotToken,l,GW):t.questionDotToken,o(t.typeArguments,r,ji),o(t.arguments,r,yt)):i.factory.updateCallExpression(t,N.checkDefined(s(t.expression,r,yt)),o(t.typeArguments,r,ji),o(t.arguments,r,yt))},214:function(t,r,i,o,s,l){return i.factory.updateNewExpression(t,N.checkDefined(s(t.expression,r,yt)),o(t.typeArguments,r,ji),o(t.arguments,r,yt))},215:function(t,r,i,o,s,l){return i.factory.updateTaggedTemplateExpression(t,N.checkDefined(s(t.tag,r,yt)),o(t.typeArguments,r,ji),N.checkDefined(s(t.template,r,IA)))},216:function(t,r,i,o,s,l){return i.factory.updateTypeAssertion(t,N.checkDefined(s(t.type,r,ji)),N.checkDefined(s(t.expression,r,yt)))},217:function(t,r,i,o,s,l){return i.factory.updateParenthesizedExpression(t,N.checkDefined(s(t.expression,r,yt)))},218:function(t,r,i,o,s,l){return i.factory.updateFunctionExpression(t,o(t.modifiers,r,Aa),l?s(t.asteriskToken,l,Fk):t.asteriskToken,s(t.name,r,Ve),o(t.typeParameters,r,hl),Dl(t.parameters,r,i,o),s(t.type,r,ji),af(t.body,r,i,s))},219:function(t,r,i,o,s,l){return i.factory.updateArrowFunction(t,o(t.modifiers,r,Aa),o(t.typeParameters,r,hl),Dl(t.parameters,r,i,o),s(t.type,r,ji),l?N.checkDefined(s(t.equalsGreaterThanToken,l,rae)):t.equalsGreaterThanToken,af(t.body,r,i,s))},220:function(t,r,i,o,s,l){return i.factory.updateDeleteExpression(t,N.checkDefined(s(t.expression,r,yt)))},221:function(t,r,i,o,s,l){return i.factory.updateTypeOfExpression(t,N.checkDefined(s(t.expression,r,yt)))},222:function(t,r,i,o,s,l){return i.factory.updateVoidExpression(t,N.checkDefined(s(t.expression,r,yt)))},223:function(t,r,i,o,s,l){return i.factory.updateAwaitExpression(t,N.checkDefined(s(t.expression,r,yt)))},224:function(t,r,i,o,s,l){return i.factory.updatePrefixUnaryExpression(t,N.checkDefined(s(t.operand,r,yt)))},225:function(t,r,i,o,s,l){return i.factory.updatePostfixUnaryExpression(t,N.checkDefined(s(t.operand,r,yt)))},226:function(t,r,i,o,s,l){return i.factory.updateBinaryExpression(t,N.checkDefined(s(t.left,r,yt)),l?N.checkDefined(s(t.operatorToken,l,Gae)):t.operatorToken,N.checkDefined(s(t.right,r,yt)))},227:function(t,r,i,o,s,l){return i.factory.updateConditionalExpression(t,N.checkDefined(s(t.condition,r,yt)),l?N.checkDefined(s(t.questionToken,l,Hy)):t.questionToken,N.checkDefined(s(t.whenTrue,r,yt)),l?N.checkDefined(s(t.colonToken,l,nae)):t.colonToken,N.checkDefined(s(t.whenFalse,r,yt)))},228:function(t,r,i,o,s,l){return i.factory.updateTemplateExpression(t,N.checkDefined(s(t.head,r,YA)),o(t.templateSpans,r,gP))},229:function(t,r,i,o,s,l){return i.factory.updateYieldExpression(t,l?s(t.asteriskToken,l,Fk):t.asteriskToken,s(t.expression,r,yt))},230:function(t,r,i,o,s,l){return i.factory.updateSpreadElement(t,N.checkDefined(s(t.expression,r,yt)))},231:function(t,r,i,o,s,l){return i.factory.updateClassExpression(t,o(t.modifiers,r,sl),s(t.name,r,Ve),o(t.typeParameters,r,hl),o(t.heritageClauses,r,nf),o(t.members,r,Yc))},233:function(t,r,i,o,s,l){return i.factory.updateExpressionWithTypeArguments(t,N.checkDefined(s(t.expression,r,yt)),o(t.typeArguments,r,ji))},234:function(t,r,i,o,s,l){return i.factory.updateAsExpression(t,N.checkDefined(s(t.expression,r,yt)),N.checkDefined(s(t.type,r,ji)))},238:function(t,r,i,o,s,l){return i.factory.updateSatisfiesExpression(t,N.checkDefined(s(t.expression,r,yt)),N.checkDefined(s(t.type,r,ji)))},235:function(t,r,i,o,s,l){return qu(t)?i.factory.updateNonNullChain(t,N.checkDefined(s(t.expression,r,yt))):i.factory.updateNonNullExpression(t,N.checkDefined(s(t.expression,r,yt)))},236:function(t,r,i,o,s,l){return i.factory.updateMetaProperty(t,N.checkDefined(s(t.name,r,Ve)))},239:function(t,r,i,o,s,l){return i.factory.updateTemplateSpan(t,N.checkDefined(s(t.expression,r,yt)),N.checkDefined(s(t.literal,r,_4)))},241:function(t,r,i,o,s,l){return i.factory.updateBlock(t,o(t.statements,r,Hi))},243:function(t,r,i,o,s,l){return i.factory.updateVariableStatement(t,o(t.modifiers,r,sl),N.checkDefined(s(t.declarationList,r,Vc)))},244:function(t,r,i,o,s,l){return i.factory.updateExpressionStatement(t,N.checkDefined(s(t.expression,r,yt)))},245:function(t,r,i,o,s,l){return i.factory.updateIfStatement(t,N.checkDefined(s(t.expression,r,yt)),N.checkDefined(s(t.thenStatement,r,Hi,i.factory.liftToBlock)),s(t.elseStatement,r,Hi,i.factory.liftToBlock))},246:function(t,r,i,o,s,l){return i.factory.updateDoStatement(t,xd(t.statement,r,i,s),N.checkDefined(s(t.expression,r,yt)))},247:function(t,r,i,o,s,l){return i.factory.updateWhileStatement(t,N.checkDefined(s(t.expression,r,yt)),xd(t.statement,r,i,s))},248:function(t,r,i,o,s,l){return i.factory.updateForStatement(t,s(t.initializer,r,Sf),s(t.condition,r,yt),s(t.incrementor,r,yt),xd(t.statement,r,i,s))},249:function(t,r,i,o,s,l){return i.factory.updateForInStatement(t,N.checkDefined(s(t.initializer,r,Sf)),N.checkDefined(s(t.expression,r,yt)),xd(t.statement,r,i,s))},250:function(t,r,i,o,s,l){return i.factory.updateForOfStatement(t,l?s(t.awaitModifier,l,oH):t.awaitModifier,N.checkDefined(s(t.initializer,r,Sf)),N.checkDefined(s(t.expression,r,yt)),xd(t.statement,r,i,s))},251:function(t,r,i,o,s,l){return i.factory.updateContinueStatement(t,s(t.label,r,Ve))},252:function(t,r,i,o,s,l){return i.factory.updateBreakStatement(t,s(t.label,r,Ve))},253:function(t,r,i,o,s,l){return i.factory.updateReturnStatement(t,s(t.expression,r,yt))},254:function(t,r,i,o,s,l){return i.factory.updateWithStatement(t,N.checkDefined(s(t.expression,r,yt)),N.checkDefined(s(t.statement,r,Hi,i.factory.liftToBlock)))},255:function(t,r,i,o,s,l){return i.factory.updateSwitchStatement(t,N.checkDefined(s(t.expression,r,yt)),N.checkDefined(s(t.caseBlock,r,yP)))},256:function(t,r,i,o,s,l){return i.factory.updateLabeledStatement(t,N.checkDefined(s(t.label,r,Ve)),N.checkDefined(s(t.statement,r,Hi,i.factory.liftToBlock)))},257:function(t,r,i,o,s,l){return i.factory.updateThrowStatement(t,N.checkDefined(s(t.expression,r,yt)))},258:function(t,r,i,o,s,l){return i.factory.updateTryStatement(t,N.checkDefined(s(t.tryBlock,r,Ko)),s(t.catchClause,r,r1),s(t.finallyBlock,r,Ko))},260:function(t,r,i,o,s,l){return i.factory.updateVariableDeclaration(t,N.checkDefined(s(t.name,r,pS)),l?s(t.exclamationToken,l,zk):t.exclamationToken,s(t.type,r,ji),s(t.initializer,r,yt))},261:function(t,r,i,o,s,l){return i.factory.updateVariableDeclarationList(t,o(t.declarations,r,Oi))},262:function(t,r,i,o,s,l){return i.factory.updateFunctionDeclaration(t,o(t.modifiers,r,Aa),l?s(t.asteriskToken,l,Fk):t.asteriskToken,s(t.name,r,Ve),o(t.typeParameters,r,hl),Dl(t.parameters,r,i,o),s(t.type,r,ji),af(t.body,r,i,s))},263:function(t,r,i,o,s,l){return i.factory.updateClassDeclaration(t,o(t.modifiers,r,sl),s(t.name,r,Ve),o(t.typeParameters,r,hl),o(t.heritageClauses,r,nf),o(t.members,r,Yc))},264:function(t,r,i,o,s,l){return i.factory.updateInterfaceDeclaration(t,o(t.modifiers,r,sl),N.checkDefined(s(t.name,r,Ve)),o(t.typeParameters,r,hl),o(t.heritageClauses,r,nf),o(t.members,r,fS))},265:function(t,r,i,o,s,l){return i.factory.updateTypeAliasDeclaration(t,o(t.modifiers,r,sl),N.checkDefined(s(t.name,r,Ve)),o(t.typeParameters,r,hl),N.checkDefined(s(t.type,r,ji)))},266:function(t,r,i,o,s,l){return i.factory.updateEnumDeclaration(t,o(t.modifiers,r,sl),N.checkDefined(s(t.name,r,Ve)),o(t.members,r,i1))},267:function(t,r,i,o,s,l){return i.factory.updateModuleDeclaration(t,o(t.modifiers,r,sl),N.checkDefined(s(t.name,r,Bae)),s(t.body,r,yre))},268:function(t,r,i,o,s,l){return i.factory.updateModuleBlock(t,o(t.statements,r,Hi))},269:function(t,r,i,o,s,l){return i.factory.updateCaseBlock(t,o(t.clauses,r,E4))},270:function(t,r,i,o,s,l){return i.factory.updateNamespaceExportDeclaration(t,N.checkDefined(s(t.name,r,Ve)))},271:function(t,r,i,o,s,l){return i.factory.updateImportEqualsDeclaration(t,o(t.modifiers,r,sl),t.isTypeOnly,N.checkDefined(s(t.name,r,Ve)),N.checkDefined(s(t.moduleReference,r,Are)))},272:function(t,r,i,o,s,l){return i.factory.updateImportDeclaration(t,o(t.modifiers,r,sl),s(t.importClause,r,Eh),N.checkDefined(s(t.moduleSpecifier,r,yt)),s(t.attributes,r,aI))},300:function(t,r,i,o,s,l){return i.factory.updateImportAttributes(t,o(t.elements,r,hae),t.multiLine)},301:function(t,r,i,o,s,l){return i.factory.updateImportAttribute(t,N.checkDefined(s(t.name,r,cre)),N.checkDefined(s(t.value,r,yt)))},273:function(t,r,i,o,s,l){return i.factory.updateImportClause(t,t.isTypeOnly,s(t.name,r,Ve),s(t.namedBindings,r,VV))},274:function(t,r,i,o,s,l){return i.factory.updateNamespaceImport(t,N.checkDefined(s(t.name,r,Ve)))},280:function(t,r,i,o,s,l){return i.factory.updateNamespaceExport(t,N.checkDefined(s(t.name,r,Ve)))},275:function(t,r,i,o,s,l){return i.factory.updateNamedImports(t,o(t.elements,r,tp))},276:function(t,r,i,o,s,l){return i.factory.updateImportSpecifier(t,t.isTypeOnly,s(t.propertyName,r,Ve),N.checkDefined(s(t.name,r,Ve)))},277:function(t,r,i,o,s,l){return i.factory.updateExportAssignment(t,o(t.modifiers,r,sl),N.checkDefined(s(t.expression,r,yt)))},278:function(t,r,i,o,s,l){return i.factory.updateExportDeclaration(t,o(t.modifiers,r,sl),t.isTypeOnly,s(t.exportClause,r,CV),s(t.moduleSpecifier,r,yt),s(t.attributes,r,aI))},279:function(t,r,i,o,s,l){return i.factory.updateNamedExports(t,o(t.elements,r,Ku))},281:function(t,r,i,o,s,l){return i.factory.updateExportSpecifier(t,t.isTypeOnly,s(t.propertyName,r,Ve),N.checkDefined(s(t.name,r,Ve)))},283:function(t,r,i,o,s,l){return i.factory.updateExternalModuleReference(t,N.checkDefined(s(t.expression,r,yt)))},284:function(t,r,i,o,s,l){return i.factory.updateJsxElement(t,N.checkDefined(s(t.openingElement,r,k_)),o(t.children,r,gL),N.checkDefined(s(t.closingElement,r,e1)))},285:function(t,r,i,o,s,l){return i.factory.updateJsxSelfClosingElement(t,N.checkDefined(s(t.tagName,r,_C)),o(t.typeArguments,r,ji),N.checkDefined(s(t.attributes,r,n1)))},286:function(t,r,i,o,s,l){return i.factory.updateJsxOpeningElement(t,N.checkDefined(s(t.tagName,r,_C)),o(t.typeArguments,r,ji),N.checkDefined(s(t.attributes,r,n1)))},287:function(t,r,i,o,s,l){return i.factory.updateJsxClosingElement(t,N.checkDefined(s(t.tagName,r,_C)))},295:function(t,r,i,o,s,l){return i.factory.updateJsxNamespacedName(t,N.checkDefined(s(t.namespace,r,Ve)),N.checkDefined(s(t.name,r,Ve)))},288:function(t,r,i,o,s,l){return i.factory.updateJsxFragment(t,N.checkDefined(s(t.openingFragment,r,lI)),o(t.children,r,gL),N.checkDefined(s(t.closingFragment,r,gae)))},291:function(t,r,i,o,s,l){return i.factory.updateJsxAttribute(t,N.checkDefined(s(t.name,r,Poe)),s(t.initializer,r,Ire))},292:function(t,r,i,o,s,l){return i.factory.updateJsxAttributes(t,o(t.properties,r,b4))},293:function(t,r,i,o,s,l){return i.factory.updateJsxSpreadAttribute(t,N.checkDefined(s(t.expression,r,yt)))},294:function(t,r,i,o,s,l){return i.factory.updateJsxExpression(t,s(t.expression,r,yt))},296:function(t,r,i,o,s,l){return i.factory.updateCaseClause(t,N.checkDefined(s(t.expression,r,yt)),o(t.statements,r,Hi))},297:function(t,r,i,o,s,l){return i.factory.updateDefaultClause(t,o(t.statements,r,Hi))},298:function(t,r,i,o,s,l){return i.factory.updateHeritageClause(t,o(t.types,r,Vv))},299:function(t,r,i,o,s,l){return i.factory.updateCatchClause(t,s(t.variableDeclaration,r,Oi),N.checkDefined(s(t.block,r,Ko)))},303:function(t,r,i,o,s,l){return i.factory.updatePropertyAssignment(t,N.checkDefined(s(t.name,r,oc)),N.checkDefined(s(t.initializer,r,yt)))},304:function(t,r,i,o,s,l){return i.factory.updateShorthandPropertyAssignment(t,N.checkDefined(s(t.name,r,Ve)),s(t.objectAssignmentInitializer,r,yt))},305:function(t,r,i,o,s,l){return i.factory.updateSpreadAssignment(t,N.checkDefined(s(t.expression,r,yt)))},306:function(t,r,i,o,s,l){return i.factory.updateEnumMember(t,N.checkDefined(s(t.name,r,oc)),s(t.initializer,r,yt))},312:function(t,r,i,o,s,l){return i.factory.updateSourceFile(t,Nq(t.statements,r,i))},360:function(t,r,i,o,s,l){return i.factory.updatePartiallyEmittedExpression(t,N.checkDefined(s(t.expression,r,yt)))},361:function(t,r,i,o,s,l){return i.factory.updateCommaListExpression(t,o(t.elements,r,yt))}}}});function qse(e,t,r,i,o){var{enter:s,exit:l}=o.extendedDiagnostics?sG("Source Map","beforeSourcemap","afterSourcemap"):lG,u=[],p=[],h=new Map,m,y=[],T,A=[],R="",M=0,C=0,O=0,U=0,K=0,Q=0,V=!1,se=0,G=0,ne=0,he=0,ye=0,Y=0,X=!1,oe=!1,pe=!1;return{getSources:()=>u,addSource:Ce,setSourceContent:de,addName:ie,addMapping:Ue,appendSourceMap:Ee,toJSON:Se,toString:()=>JSON.stringify(Se())};function Ce(ot){s();const Bt=yA(i,ot,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let vt=h.get(Bt);return vt===void 0&&(vt=p.length,p.push(Bt),u.push(ot),h.set(Bt,vt)),l(),vt}function de(ot,Bt){if(s(),Bt!==null){for(m||(m=[]);m.length<ot;)m.push(null);m[ot]=Bt}l()}function ie(ot){s(),T||(T=new Map);let Bt=T.get(ot);return Bt===void 0&&(Bt=y.length,y.push(ot),T.set(ot,Bt)),l(),Bt}function ve(ot,Bt){return!X||se!==ot||G!==Bt}function Le(ot,Bt,vt){return ot!==void 0&&Bt!==void 0&&vt!==void 0&&ne===ot&&(he>Bt||he===Bt&&ye>vt)}function Ue(ot,Bt,vt,$e,It,tn){N.assert(ot>=se,"generatedLine cannot backtrack"),N.assert(Bt>=0,"generatedCharacter cannot be negative"),N.assert(vt===void 0||vt>=0,"sourceIndex cannot be negative"),N.assert($e===void 0||$e>=0,"sourceLine cannot be negative"),N.assert(It===void 0||It>=0,"sourceCharacter cannot be negative"),s(),(ve(ot,Bt)||Le(vt,$e,It))&&(We(),se=ot,G=Bt,oe=!1,pe=!1,X=!0),vt!==void 0&&$e!==void 0&&It!==void 0&&(ne=vt,he=$e,ye=It,oe=!0,tn!==void 0&&(Y=tn,pe=!0)),l()}function Ee(ot,Bt,vt,$e,It,tn){N.assert(ot>=se,"generatedLine cannot backtrack"),N.assert(Bt>=0,"generatedCharacter cannot be negative"),s();const rn=[];let Mn;const $n=Mq(vt.mappings);for(const gn of $n){if(tn&&(gn.generatedLine>tn.line||gn.generatedLine===tn.line&&gn.generatedCharacter>tn.character))break;if(It&&(gn.generatedLine<It.line||It.line===gn.generatedLine&&gn.generatedCharacter<It.character))continue;let Qt,Yt,vi,so;if(gn.sourceIndex!==void 0){if(Qt=rn[gn.sourceIndex],Qt===void 0){const Ar=vt.sources[gn.sourceIndex],sn=vt.sourceRoot?$r(vt.sourceRoot,Ar):Ar,tt=$r(ai($e),sn);rn[gn.sourceIndex]=Qt=Ce(tt),vt.sourcesContent&&typeof vt.sourcesContent[gn.sourceIndex]=="string"&&de(Qt,vt.sourcesContent[gn.sourceIndex])}Yt=gn.sourceLine,vi=gn.sourceCharacter,vt.names&&gn.nameIndex!==void 0&&(Mn||(Mn=[]),so=Mn[gn.nameIndex],so===void 0&&(Mn[gn.nameIndex]=so=ie(vt.names[gn.nameIndex])))}const Wi=gn.generatedLine-(It?It.line:0),Co=Wi+ot,Ln=It&&It.line===gn.generatedLine?gn.generatedCharacter-It.character:gn.generatedCharacter,Ci=Wi===0?Ln+Bt:Ln;Ue(Co,Ci,Qt,Yt,vi,so)}l()}function De(){return!V||M!==se||C!==G||O!==ne||U!==he||K!==ye||Q!==Y}function Me(ot){A.push(ot),A.length>=1024&&At()}function We(){if(!(!X||!De())){if(s(),M<se){do Me(59),M++;while(M<se);C=0}else N.assertEqual(M,se,"generatedLine cannot backtrack"),V&&Me(44);je(G-C),C=G,oe&&(je(ne-O),O=ne,je(he-U),U=he,je(ye-K),K=ye,pe&&(je(Y-Q),Q=Y)),V=!0,l()}}function At(){A.length>0&&(R+=String.fromCharCode.apply(void 0,A),A.length=0)}function Se(){return We(),At(),{version:3,file:t,sourceRoot:r,sources:p,names:y,mappings:R,sourcesContent:m}}function je(ot){ot<0?ot=(-ot<<1)+1:ot=ot<<1;do{let Bt=ot&31;ot=ot>>5,ot>0&&(Bt=Bt|32),Me(jVe(Bt))}while(ot>0)}}function Cq(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function Jse(e){for(let t=e.getLineCount()-1;t>=0;t--){const r=e.getLineText(t),i=GF.exec(r);if(i)return i[1].trimEnd();if(!r.match(VF))break}}function VVe(e){return typeof e=="string"||e===null}function Kse(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&To(e.sources)&&Jn(e.sources,Mo)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||To(e.sourcesContent)&&Jn(e.sourcesContent,VVe))&&(e.names===void 0||e.names===null||To(e.names)&&Jn(e.names,Mo))}function Pq(e){try{const t=JSON.parse(e);if(Kse(t))return t}catch{}}function Mq(e){let t=!1,r=0,i=0,o=0,s=0,l=0,u=0,p=0,h;return{get pos(){return r},get error(){return h},get state(){return m(!0,!0)},next(){for(;!t&&r<e.length;){const O=e.charCodeAt(r);if(O===59){i++,o=0,r++;continue}if(O===44){r++;continue}let U=!1,K=!1;if(o+=C(),R())return y();if(o<0)return A("Invalid generatedCharacter found");if(!M()){if(U=!0,s+=C(),R())return y();if(s<0)return A("Invalid sourceIndex found");if(M())return A("Unsupported Format: No entries after sourceIndex");if(l+=C(),R())return y();if(l<0)return A("Invalid sourceLine found");if(M())return A("Unsupported Format: No entries after sourceLine");if(u+=C(),R())return y();if(u<0)return A("Invalid sourceCharacter found");if(!M()){if(K=!0,p+=C(),R())return y();if(p<0)return A("Invalid nameIndex found");if(!M())return A("Unsupported Error Format: Entries after nameIndex")}}return{value:m(U,K),done:t}}return y()},[Symbol.iterator](){return this}};function m(O,U){return{generatedLine:i,generatedCharacter:o,sourceIndex:O?s:void 0,sourceLine:O?l:void 0,sourceCharacter:O?u:void 0,nameIndex:U?p:void 0}}function y(){return t=!0,{value:void 0,done:!0}}function T(O){h===void 0&&(h=O)}function A(O){return T(O),y()}function R(){return h!==void 0}function M(){return r===e.length||e.charCodeAt(r)===44||e.charCodeAt(r)===59}function C(){let O=!0,U=0,K=0;for(;O;r++){if(r>=e.length)return T("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const Q=UVe(e.charCodeAt(r));if(Q===-1)return T("Invalid character in VLQ"),-1;O=(Q&32)!==0,K=K|(Q&31)<<U,U+=5}return K&1?(K=K>>1,K=-K):K=K>>1,K}}function VIe(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 Xse(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function jVe(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:N.fail(`${e}: not a base64 value`)}function UVe(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 jIe(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 HVe(e,t){return N.assert(e.sourceIndex===t.sourceIndex),nl(e.sourcePosition,t.sourcePosition)}function qVe(e,t){return nl(e.generatedPosition,t.generatedPosition)}function JVe(e){return e.sourcePosition}function KVe(e){return e.generatedPosition}function Yse(e,t,r){const i=ai(r),o=t.sourceRoot?go(t.sourceRoot,i):i,s=go(t.file,i),l=e.getSourceFileLike(s),u=t.sources.map(U=>go(U,o)),p=new Map(u.map((U,K)=>[e.getCanonicalFileName(U),K]));let h,m,y;return{getSourcePosition:O,getGeneratedPosition:C};function T(U){const K=l!==void 0?K2(l,U.generatedLine,U.generatedCharacter,!0):-1;let Q,V;if(Xse(U)){const se=e.getSourceFileLike(u[U.sourceIndex]);Q=t.sources[U.sourceIndex],V=se!==void 0?K2(se,U.sourceLine,U.sourceCharacter,!0):-1}return{generatedPosition:K,source:Q,sourceIndex:U.sourceIndex,sourcePosition:V,nameIndex:U.nameIndex}}function A(){if(h===void 0){const U=Mq(t.mappings),K=zo(U,T);U.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${U.error}`),h=et):h=K}return h}function R(U){if(y===void 0){const K=[];for(const Q of A()){if(!jIe(Q))continue;let V=K[Q.sourceIndex];V||(K[Q.sourceIndex]=V=[]),V.push(Q)}y=K.map(Q=>HN(Q,HVe,UIe))}return y[U]}function M(){if(m===void 0){const U=[];for(const K of A())U.push(K);m=HN(U,qVe,UIe)}return m}function C(U){const K=p.get(e.getCanonicalFileName(U.fileName));if(K===void 0)return U;const Q=R(K);if(!bt(Q))return U;let V=pA(Q,U.pos,JVe,nl);V<0&&(V=~V);const se=Q[V];return se===void 0||se.sourceIndex!==K?U:{fileName:s,pos:se.generatedPosition}}function O(U){const K=M();if(!bt(K))return U;let Q=pA(K,U.pos,KVe,nl);Q<0&&(Q=~Q);const V=K[Q];return V===void 0||!jIe(V)?U:{fileName:u[V.sourceIndex],pos:V.sourcePosition}}}var Lq,GF,VF,jF,XVe=I({"src/compiler/sourcemap.ts"(){ra(),sS(),Lq=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,GF=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,VF=/^\s*(\/\/[@#] .*)?$/,jF={getSourcePosition:tl,getGeneratedPosition:tl}}});function Wu(e){return e=Pl(e),e?as(e):0}function YVe(e){return!e||!Bg(e)?!1:bt(e.elements,HIe)}function HIe(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function Dm(e,t){return r;function r(o){return o.kind===312?t(o):i(o)}function i(o){return e.factory.createBundle(Wt(o.sourceFiles,t),o.prepends)}}function $se(e){return!!mR(e)}function UF(e){if(mR(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t||!Bg(t))return!1;let r=0;for(const i of t.elements)HIe(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&NA(e)}function kq(e){return!UF(e)&&(NA(e)||!!e.importClause&&Bg(e.importClause.namedBindings)&&YVe(e.importClause.namedBindings))}function wq(e,t){const r=e.getEmitResolver(),i=e.getCompilerOptions(),o=[],s=new zq,l=[],u=new Map;let p,h=!1,m,y=!1,T=!1,A=!1;for(const C of t.statements)switch(C.kind){case 272:o.push(C),!T&&UF(C)&&(T=!0),!A&&kq(C)&&(A=!0);break;case 271:C.moduleReference.kind===283&&o.push(C);break;case 278:if(C.moduleSpecifier)if(!C.exportClause)o.push(C),y=!0;else if(o.push(C),Nf(C.exportClause))M(C);else{const O=C.exportClause.name;u.get(Er(O))||(OP(l,Wu(C),O),u.set(Er(O),!0),p=Rn(p,O)),T=!0}else M(C);break;case 277:C.isExportEquals&&!m&&(m=C);break;case 243:if(Qr(C,32))for(const O of C.declarationList.declarations)p=qIe(O,u,p,l);break;case 262:if(Qr(C,32))if(Qr(C,2048))h||(OP(l,Wu(C),e.factory.getDeclarationName(C)),h=!0);else{const O=C.name;u.get(Er(O))||(OP(l,Wu(C),O),u.set(Er(O),!0),p=Rn(p,O))}break;case 263:if(Qr(C,32))if(Qr(C,2048))h||(OP(l,Wu(C),e.factory.getDeclarationName(C)),h=!0);else{const O=C.name;O&&!u.get(Er(O))&&(OP(l,Wu(C),O),u.set(Er(O),!0),p=Rn(p,O))}break}const R=xH(e.factory,e.getEmitHelperFactory(),t,i,y,T,A);return R&&o.unshift(R),{externalImports:o,exportSpecifiers:s,exportEquals:m,hasExportStarsToExportValues:y,exportedBindings:l,exportedNames:p,externalHelpersImportDeclaration:R};function M(C){for(const O of oa(C.exportClause,Nf).elements)if(!u.get(Er(O.name))){const U=O.propertyName||O.name;C.moduleSpecifier||s.add(U,O);const K=r.getReferencedImportDeclaration(U)||r.getReferencedValueDeclaration(U);K&&OP(l,Wu(K),O.name),u.set(Er(O.name),!0),p=Rn(p,O.name)}}}function qIe(e,t,r,i){if(ta(e.name))for(const o of e.name.elements)Gc(o)||(r=qIe(o,t,r,i));else if(!al(e.name)){const o=Er(e.name);t.get(o)||(t.set(o,!0),r=Rn(r,e.name),Gg(e.name)&&OP(i,Wu(e),e.name))}return r}function OP(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}function c1(e){return ls(e)||e.kind===9||Bd(e.kind)||Ve(e)}function O_(e){return!Ve(e)&&c1(e)}function WP(e){return e>=65&&e<=79}function FP(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 HF(e){if(!Zc(e))return;const t=hs(e.expression);return yS(t)?t:void 0}function JIe(e,t,r){for(let i=t;i<e.length;i+=1){const o=e[i];if(HF(o))return r.unshift(i),!0;if(BS(o)&&JIe(o.tryBlock.statements,0,r))return r.unshift(i),!0}return!1}function qF(e,t){const r=[];return JIe(e,t,r),r}function Oq(e,t,r){return mn(e.members,i=>QVe(i,t,r))}function $Ve(e){return ZVe(e)||Rl(e)}function JF(e){return mn(e.members,$Ve)}function QVe(e,t,r){return qo(e)&&(!!e.initializer||!t)&&mc(e)===r}function ZVe(e){return qo(e)&&mc(e)}function Nw(e){return e.kind===172&&e.initializer!==void 0}function Qse(e){return!aa(e)&&(AA(e)||Wd(e))&&qi(e.name)}function Zse(e){let t;if(e){const r=e.parameters,i=r.length>0&&GE(r[0]),o=i?1:0,s=i?r.length-1:r.length;for(let l=0;l<s;l++){const u=r[l+o];(t||Tf(u))&&(t||(t=new Array(s)),t[l]=Ry(u))}}return t}function Wq(e){const t=Ry(e),r=Zse(ng(e));if(!(!bt(t)&&!bt(r)))return{decorators:t,parameters:r}}function KF(e,t,r){switch(e.kind){case 177:case 178:return r?eje(e,t):KIe(e);case 174:return KIe(e);case 172:return tje(e);default:return}}function eje(e,t){if(!e.body)return;const{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}=NS(t.members,e),l=Tf(r)?r:i&&Tf(i)?i:void 0;if(!l||e!==l)return;const u=Ry(l),p=Zse(s);if(!(!bt(u)&&!bt(p)))return{decorators:u,parameters:p,getDecorators:o&&Ry(o),setDecorators:s&&Ry(s)}}function KIe(e){if(!e.body)return;const t=Ry(e),r=Zse(e);if(!(!bt(t)&&!bt(r)))return{decorators:t,parameters:r}}function tje(e){const t=Ry(e);if(bt(t))return{decorators:t}}function ele(e,t){for(;e;){const r=t(e);if(r!==void 0)return r;e=e.previous}}function tle(e){return{data:e}}function Fq(e,t){var r,i;return dS(t)?(r=e==null?void 0:e.generatedIdentifiers)==null?void 0:r.get(tw(t)):(i=e==null?void 0:e.identifiers)==null?void 0:i.get(t.escapedText)}function KS(e,t,r){dS(t)?(e.generatedIdentifiers??(e.generatedIdentifiers=new Map),e.generatedIdentifiers.set(tw(t),r)):(e.identifiers??(e.identifiers=new Map),e.identifiers.set(t.escapedText,r))}function nle(e,t){return ele(e,r=>Fq(r.privateEnv,t))}function rle(e){return!e.initializer&&Ve(e.name)}function Cw(e){return Jn(e,rle)}var gI,zq,nje=I({"src/compiler/transformers/utilities.ts"(){ra(),gI=class FN{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(FN.toKey(t))}get(t){return this._map.get(FN.toKey(t))}set(t,r){return this._map.set(FN.toKey(t),r),this}delete(t){var r;return((r=this._map)==null?void 0:r.delete(FN.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(dS(t)||al(t)){const r=t.emitNode.autoGenerate;if((r.flags&7)===4){const i=tw(t),o=Kh(i)&&i!==t?FN.toKey(i):`(generated@${as(i)})`;return S0(!1,r.prefix,o,r.suffix,FN.toKey)}else{const i=`(auto@${r.id})`;return S0(!1,r.prefix,i,r.suffix,FN.toKey)}}return qi(t)?Er(t).slice(1):Er(t)}},zq=class extends gI{add(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}remove(e,t){const r=this.get(e);r&&(_A(r,t),r.length||this.delete(e))}}}});function XS(e,t,r,i,o,s){let l=e,u;if(Wv(e))for(u=e.right;Uie(e.left)||Zj(e.left);)if(Wv(u))l=e=u,u=e.right;else return N.checkDefined(nt(u,t,yt));let p;const h={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:m,emitBindingOrAssignment:y,createArrayBindingOrAssignmentPattern:T=>uje(r.factory,T),createObjectBindingOrAssignmentPattern:T=>pje(r.factory,T),createArrayBindingOrAssignmentElement:mje,visitor:t};if(u&&(u=nt(u,t,yt),N.assert(u),Ve(u)&&ile(e,u.escapedText)||ole(e)?u=vI(h,u,!1,l):o?u=vI(h,u,!0,l):Ys(e)&&(l=u)),zP(h,e,u,l,Wv(e)),u&&o){if(!bt(p))return u;p.push(u)}return r.factory.inlineExpressions(p)||r.factory.createOmittedExpression();function m(T){p=Rn(p,T)}function y(T,A,R,M){N.assertNode(T,s?Ve:yt);const C=s?s(T,A,R):dt(r.factory.createAssignment(N.checkDefined(nt(T,t,yt)),A),R);C.original=M,m(C)}}function ile(e,t){const r=$y(e);return dL(r)?rje(r,t):Ve(r)?r.escapedText===t:!1}function rje(e,t){const r=$R(e);for(const i of r)if(ile(i,t))return!0;return!1}function ole(e){const t=aF(e);if(t&&Za(t)&&!DE(t.expression))return!0;const r=$y(e);return!!r&&dL(r)&&ije(r)}function ije(e){return!!Xe($R(e),ole)}function u1(e,t,r,i,o,s=!1,l){let u;const p=[],h=[],m={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:s,emitExpression:y,emitBindingOrAssignment:T,createArrayBindingOrAssignmentPattern:A=>cje(r.factory,A),createObjectBindingOrAssignmentPattern:A=>dje(r.factory,A),createArrayBindingOrAssignmentElement:A=>fje(r.factory,A),visitor:t};if(Oi(e)){let A=Zk(e);A&&(Ve(A)&&ile(e,A.escapedText)||ole(e))&&(A=vI(m,N.checkDefined(nt(A,m.visitor,yt)),!1,A),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,A))}if(zP(m,e,o,e,l),u){const A=r.factory.createTempVariable(void 0);if(s){const R=r.factory.inlineExpressions(u);u=void 0,T(A,R,void 0,void 0)}else{r.hoistVariableDeclaration(A);const R=Xa(p);R.pendingExpressions=Rn(R.pendingExpressions,r.factory.createAssignment(A,R.value)),qr(R.pendingExpressions,u),R.value=A}}for(const{pendingExpressions:A,name:R,value:M,location:C,original:O}of p){const U=r.factory.createVariableDeclaration(R,void 0,void 0,A?r.factory.inlineExpressions(Rn(A,M)):M);U.original=O,dt(U,C),h.push(U)}return h;function y(A){u=Rn(u,A)}function T(A,R,M,C){N.assertNode(A,pS),u&&(R=r.factory.inlineExpressions(Rn(u,R)),u=void 0),p.push({pendingExpressions:u,name:A,value:R,location:M,original:C})}}function zP(e,t,r,i,o){const s=$y(t);if(!o){const l=nt(Zk(t),e.visitor,yt);l?r?(r=sje(e,r,l,i),!O_(l)&&dL(s)&&(r=vI(e,r,!0,i))):r=l:r||(r=e.context.factory.createVoidZero())}WV(s)?oje(e,t,s,r,i):FV(s)?aje(e,t,s,r,i):e.emitBindingOrAssignment(s,r,i,t)}function oje(e,t,r,i,o){const s=$R(r),l=s.length;if(l!==1){const h=!uL(t)||l!==0;i=vI(e,i,h,o)}let u,p;for(let h=0;h<l;h++){const m=s[h];if(oF(m)){if(h===l-1){u&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r),u=void 0);const y=e.context.getEmitHelperFactory().createRestHelper(i,s,p,r);zP(e,m,y,m)}}else{const y=RH(m);if(e.level>=1&&!(m.transformFlags&98304)&&!($y(m).transformFlags&98304)&&!Za(y))u=Rn(u,nt(m,e.visitor,pre));else{u&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r),u=void 0);const T=lje(e,i,y);Za(y)&&(p=Rn(p,T.argumentExpression)),zP(e,m,T,m)}}}u&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r)}function aje(e,t,r,i,o){const s=$R(r),l=s.length;if(e.level<1&&e.downlevelIteration)i=vI(e,dt(e.context.getEmitHelperFactory().createReadHelper(i,l>0&&oF(s[l-1])?void 0:l),o),!1,o);else if(l!==1&&(e.level<1||l===0)||Jn(s,Gc)){const h=!uL(t)||l!==0;i=vI(e,i,h,o)}let u,p;for(let h=0;h<l;h++){const m=s[h];if(e.level>=1)if(m.transformFlags&65536||e.hasTransformedPriorElement&&!XIe(m)){e.hasTransformedPriorElement=!0;const y=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(y),p=Rn(p,[y,m]),u=Rn(u,e.createArrayBindingOrAssignmentElement(y))}else u=Rn(u,m);else{if(Gc(m))continue;if(oF(m)){if(h===l-1){const y=e.context.factory.createArraySliceCall(i,h);zP(e,m,y,m)}}else{const y=e.context.factory.createElementAccessExpression(i,h);zP(e,m,y,m)}}}if(u&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(u),i,o,r),p)for(const[h,m]of p)zP(e,m,h,m)}function XIe(e){const t=$y(e);if(!t||Gc(t))return!0;const r=aF(e);if(r&&!x_(r))return!1;const i=Zk(e);return i&&!O_(i)?!1:dL(t)?Jn($R(t),XIe):Ve(t)}function sje(e,t,r,i){return t=vI(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function lje(e,t,r){const{factory:i}=e.context;if(Za(r)){const o=vI(e,N.checkDefined(nt(r.expression,e.visitor,yt)),!1,r);return e.context.factory.createElementAccessExpression(t,o)}else if(ef(r)){const o=i.cloneNode(r);return e.context.factory.createElementAccessExpression(t,o)}else{const o=e.context.factory.createIdentifier(Er(r));return e.context.factory.createPropertyAccessExpression(t,o)}}function vI(e,t,r,i){if(Ve(t)&&r)return t;{const 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 cje(e,t){return N.assertEachNode(t,g4),e.createArrayBindingPattern(t)}function uje(e,t){return N.assertEachNode(t,fL),e.createArrayLiteralExpression(Wt(t,e.converters.convertToArrayAssignmentElement))}function dje(e,t){return N.assertEachNode(t,$a),e.createObjectBindingPattern(t)}function pje(e,t){return N.assertEachNode(t,pL),e.createObjectLiteralExpression(Wt(t,e.converters.convertToObjectAssignmentElement))}function fje(e,t){return e.createBindingElement(void 0,void 0,t)}function mje(e){return e}var Bq,_je=I({"src/compiler/transformers/destructuring.ts"(){ra(),Bq=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(Bq||{})}});function ale(e,t,r=e.createThis()){const i=e.createAssignment(t,r),o=e.createExpressionStatement(i),s=e.createBlock([o],!1),l=e.createClassStaticBlockDeclaration(s);return Ou(l).classThis=t,l}function BP(e){var t;if(!Rl(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return Zc(r)&&Pc(r.expression,!0)&&Ve(r.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===r.expression.left&&r.expression.right.kind===110}function Gq(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&bt(e.members,BP)}function sle(e,t,r,i){if(Gq(t))return t;const o=ale(e,r,i);t.name&&Da(o.body.statements[0],t.name);const s=e.createNodeArray([o,...t.members]);dt(s,t.members);const l=Ac(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 Ou(l).classThis=r,l}var hje=I({"src/compiler/transformers/classThis.ts"(){ra()}});function GP(e,t,r){const i=Pl($l(r));return(Ac(i)||Tc(i))&&!i.name&&Qr(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function YIe(e,t,r){const{factory:i}=e;if(r!==void 0)return{assignedName:i.createStringLiteral(r),name:t};if(x_(t)||qi(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(x_(t.expression)&&!Ve(t.expression))return{assignedName:i.createStringLiteralFromNode(t.expression),name:t};const o=i.getGeneratedNameForNode(t);e.hoistVariableDeclaration(o);const s=e.getEmitHelperFactory().createPropKeyHelper(t.expression),l=i.createAssignment(o,s),u=i.updateComputedPropertyName(t,l);return{assignedName:o,name:u}}function lle(e,t,r=e.factory.createThis()){const{factory:i}=e,o=e.getEmitHelperFactory().createSetFunctionNameHelper(r,t),s=i.createExpressionStatement(o),l=i.createBlock([s],!1),u=i.createClassStaticBlockDeclaration(l);return Ou(u).assignedName=t,u}function yI(e){var t;if(!Rl(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return Zc(r)&&dP(r.expression,"___setFunctionName")&&r.expression.arguments.length>=2&&r.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function XF(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&bt(e.members,yI)}function Vq(e){return!!e.name||XF(e)}function YF(e,t,r,i){if(XF(t))return t;const{factory:o}=e,s=lle(e,r,i);t.name&&Da(s.body.statements[0],t.name);const l=mi(t.members,BP)+1,u=t.members.slice(0,l),p=t.members.slice(l),h=o.createNodeArray([...u,s,...p]);return dt(h,t.members),t=Ac(t)?o.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,h):o.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,h),Ou(t).assignedName=r,t}function lD(e,t,r,i){if(i&&Na(r)&&_j(r))return t;const{factory:o}=e,s=$l(t),l=Qc(s)?oa(YF(e,s,r),Qc):e.getEmitHelperFactory().createSetFunctionNameHelper(s,r);return o.restoreOuterExpressions(t,l)}function gje(e,t,r,i){const{factory:o}=e,{assignedName:s,name:l}=YIe(e,t.name,i),u=lD(e,t.initializer,s,r);return o.updatePropertyAssignment(t,l,u)}function vje(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):GP(o,t.name,t.objectAssignmentInitializer),l=lD(e,t.objectAssignmentInitializer,s,r);return o.updateShorthandPropertyAssignment(t,t.name,l)}function yje(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):GP(o,t.name,t.initializer),l=lD(e,t.initializer,s,r);return o.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,l)}function bje(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):GP(o,t.name,t.initializer),l=lD(e,t.initializer,s,r);return o.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,l)}function Eje(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):GP(o,t.name,t.initializer),l=lD(e,t.initializer,s,r);return o.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,l)}function Sje(e,t,r,i){const{factory:o}=e,{assignedName:s,name:l}=YIe(e,t.name,i),u=lD(e,t.initializer,s,r);return o.updatePropertyDeclaration(t,t.modifiers,l,t.questionToken??t.exclamationToken,t.type,u)}function Tje(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):GP(o,t.left,t.right),l=lD(e,t.right,s,r);return o.updateBinaryExpression(t,t.left,t.operatorToken,l)}function Aje(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):o.createStringLiteral(t.isExportEquals?"":"default"),l=lD(e,t.expression,s,r);return o.updateExportAssignment(t,t.modifiers,l)}function bp(e,t,r,i){switch(t.kind){case 303:return gje(e,t,r,i);case 304:return vje(e,t,r,i);case 260:return yje(e,t,r,i);case 169:return bje(e,t,r,i);case 208:return Eje(e,t,r,i);case 172:return Sje(e,t,r,i);case 226:return Tje(e,t,r,i);case 277:return Aje(e,t,r,i)}}var Ije=I({"src/compiler/transformers/namedEvaluation.ts"(){ra()}});function jq(e,t,r,i,o,s){const l=nt(t.tag,r,yt);N.assert(l);const u=[void 0],p=[],h=[],m=t.template;if(s===0&&!Bj(m))return xn(t,r,e);const{factory:y}=e;if(XA(m))p.push(cle(y,m)),h.push(ule(y,m,i));else{p.push(cle(y,m.head)),h.push(ule(y,m.head,i));for(const A of m.templateSpans)p.push(cle(y,A.literal)),h.push(ule(y,A.literal,i)),u.push(N.checkDefined(nt(A.expression,r,yt)))}const T=e.getEmitHelperFactory().createTemplateObjectHelper(y.createArrayLiteralExpression(p),y.createArrayLiteralExpression(h));if(sc(i)){const A=y.createUniqueName("templateObject");o(A),u[0]=y.createLogicalOr(A,y.createAssignment(A,T))}else u[0]=T;return y.createCallExpression(l,void 0,u)}function cle(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function ule(e,t,r){let i=t.rawText;if(i===void 0){N.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=CE(r,t);const 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 Uq,xje=I({"src/compiler/transformers/taggedTemplate.ts"(){ra(),Uq=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(Uq||{})}});function dle(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getEmitResolver(),p=e.getCompilerOptions(),h=os(p),m=wu(p),y=!!p.experimentalDecorators,T=p.emitDecoratorMetadata?fle(e):void 0,A=e.onEmitNode,R=e.onSubstituteNode;e.onEmitNode=lc,e.onSubstituteNode=Nl,e.enableSubstitution(211),e.enableSubstitution(212);let M,C,O,U,K,Q,V,se;return G;function G(Z){return Z.kind===313?ne(Z):he(Z)}function ne(Z){return t.createBundle(Z.sourceFiles.map(he),eo(Z.prepends,we=>we.kind===315?UU(we,"js"):we))}function he(Z){if(Z.isDeclarationFile)return Z;M=Z;const we=ye(Z,ot);return zg(we,e.readEmitHelpers()),M=void 0,we}function ye(Z,we){const Et=U,un=K,Sr=Q;Y(Z);const vr=we(Z);return U!==Et&&(K=un),U=Et,Q=Sr,vr}function Y(Z){switch(Z.kind){case 312:case 269:case 268:case 241:U=Z,K=void 0;break;case 263:case 262:if(Qr(Z,128))break;Z.name?J(Z):N.assert(Z.kind===263||Qr(Z,2048));break}}function X(Z){return ye(Z,oe)}function oe(Z){return Z.transformFlags&1?je(Z):Z}function pe(Z){return ye(Z,Ce)}function Ce(Z){switch(Z.kind){case 272:case 271:case 277:case 278:return ie(Z);default:return oe(Z)}}function de(Z){const we=No(Z);if(we===Z||kl(Z))return!1;if(!we||we.kind!==Z.kind)return!0;switch(Z.kind){case 272:if(N.assertNode(we,Mc),Z.importClause!==we.importClause||Z.attributes!==we.attributes)return!0;break;case 271:if(N.assertNode(we,eu),Z.name!==we.name||Z.isTypeOnly!==we.isTypeOnly||Z.moduleReference!==we.moduleReference&&(Qd(Z.moduleReference)||Qd(we.moduleReference)))return!0;break;case 278:if(N.assertNode(we,Yl),Z.exportClause!==we.exportClause||Z.attributes!==we.attributes)return!0;break}return!1}function ie(Z){if(de(Z))return Z.transformFlags&1?xn(Z,X,e):Z;switch(Z.kind){case 272:return En(Z);case 271:return xo(Z);case 277:return xi(Z);case 278:return ir(Z);default:N.fail("Unhandled ellided statement")}}function ve(Z){return ye(Z,Le)}function Le(Z){if(!(Z.kind===278||Z.kind===272||Z.kind===273||Z.kind===271&&Z.moduleReference.kind===283))return Z.transformFlags&1||Qr(Z,32)?je(Z):Z}function Ue(Z){return we=>ye(we,Et=>Ee(Et,Z))}function Ee(Z,we){switch(Z.kind){case 176:return Dn(Z);case 172:return zt(Z,we);case 177:return ka(Z,we);case 178:return Tn(Z,we);case 174:return Io(Z,we);case 175:return xn(Z,X,e);case 240:return Z;case 181:return;default:return N.failBadSyntaxKind(Z)}}function De(Z){return we=>ye(we,Et=>Me(Et,Z))}function Me(Z,we){switch(Z.kind){case 303:case 304:case 305:return X(Z);case 177:return ka(Z,we);case 178:return Tn(Z,we);case 174:return Io(Z,we);default:return N.failBadSyntaxKind(Z)}}function We(Z){return Eu(Z)?void 0:X(Z)}function At(Z){return Aa(Z)?void 0:X(Z)}function Se(Z){if(!Eu(Z)&&!(OA(Z.kind)&28895)&&!(C&&Z.kind===95))return Z}function je(Z){if(Hi(Z)&&Qr(Z,128))return t.createNotEmittedStatement(Z);switch(Z.kind){case 95:case 90:return C?void 0:Z;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(Z);case 270:return;case 264:return t.createNotEmittedStatement(Z);case 263:return tn(Z);case 231:return rn(Z);case 298:return Ar(Z);case 233:return sn(Z);case 210:return Bt(Z);case 176:case 172:case 174:case 177:case 178:case 175:return N.fail("Class and object literal elements must be visited with their respective visitors");case 262:return wn(Z);case 218:return He(Z);case 219:return mt(Z);case 169:return ft(Z);case 217:return pt(Z);case 216:case 234:return j(Z);case 238:return Rt(Z);case 213:return Ye(Z);case 214:return _t(Z);case 215:return Gt(Z);case 235:return it(Z);case 266:return q(Z);case 243:return Ct(Z);case 260:return Fe(Z);case 267:return Tt(Z);case 271:return xo(Z);case 285:return yn(Z);case 286:return fn(Z);default:return xn(Z,X,e)}}function ot(Z){const we=dd(p,"alwaysStrict")&&!(sc(Z)&&m>=5)&&!Yf(Z);return t.updateSourceFile(Z,Nq(Z.statements,pe,e,0,we))}function Bt(Z){return t.updateObjectLiteralExpression(Z,jn(Z.properties,De(Z),Mg))}function vt(Z){let we=0;bt(Oq(Z,!0,!0))&&(we|=1);const Et=I_(Z);return Et&&$l(Et.expression).kind!==106&&(we|=64),Lv(y,Z)&&(we|=2),SC(y,Z)&&(we|=4),Nn(Z)?we|=8:ko(Z)?we|=32:Ql(Z)&&(we|=16),we}function $e(Z){return!!(Z.transformFlags&8192)}function It(Z){return Tf(Z)||bt(Z.typeParameters)||bt(Z.heritageClauses,$e)||bt(Z.members,$e)}function tn(Z){const we=vt(Z),Et=h<=1&&!!(we&7);if(!It(Z)&&!Lv(y,Z)&&!Nn(Z))return t.updateClassDeclaration(Z,jn(Z.modifiers,Se,Aa),Z.name,void 0,jn(Z.heritageClauses,X,nf),jn(Z.members,Ue(Z),Yc));Et&&e.startLexicalEnvironment();const un=Et||we&8;let Sr=un?jn(Z.modifiers,At,sl):jn(Z.modifiers,X,sl);we&2&&(Sr=$n(Sr,Z));const jr=un&&!Z.name||we&4||we&1?Z.name??t.getGeneratedNameForNode(Z):Z.name,Di=t.updateClassDeclaration(Z,Sr,jr,void 0,jn(Z.heritageClauses,X,nf),Mn(Z));let Mr=Ga(Z);we&1&&(Mr|=64),pr(Di,Mr);let Yo;if(Et){const Sl=[Di],jc=tU(Pa(M.text,Z.members.end),20),Us=t.getInternalName(Z),vc=t.createPartiallyEmittedExpression(Us);MR(vc,jc.end),pr(vc,3072);const Es=t.createReturnStatement(vc);QC(Es,jc.pos),pr(Es,3840),Sl.push(Es),Yh(Sl,e.endLexicalEnvironment());const Uc=t.createImmediatelyInvokedArrowFunction(Sl);Mk(Uc,1);const ip=t.createVariableDeclaration(t.getLocalName(Z,!1,!1),void 0,void 0,Uc);Nr(ip,Z);const wc=t.createVariableStatement(void 0,t.createVariableDeclarationList([ip],1));Nr(wc,Z),ac(wc,Z),Da(wc,Og(Z)),Xu(wc),Yo=wc}else Yo=Di;if(un){if(we&8)return[Yo,cs(Z)];if(we&32)return[Yo,t.createExportDefault(t.getLocalName(Z,!1,!0))];if(we&16)return[Yo,t.createExternalModuleExport(t.getDeclarationName(Z,!1,!0))]}return Yo}function rn(Z){let we=jn(Z.modifiers,At,sl);return Lv(y,Z)&&(we=$n(we,Z)),t.updateClassExpression(Z,we,Z.name,void 0,jn(Z.heritageClauses,X,nf),Mn(Z))}function Mn(Z){const we=jn(Z.members,Ue(Z),Yc);let Et;const un=ng(Z),Sr=un&&mn(un.parameters,vr=>pp(vr,un));if(Sr)for(const vr of Sr){const jr=t.createPropertyDeclaration(void 0,vr.name,void 0,void 0,void 0);Nr(jr,vr),Et=Rn(Et,jr)}return Et?(Et=qr(Et,we),dt(t.createNodeArray(Et),Z.members)):we}function $n(Z,we){const Et=Qt(we,we);if(bt(Et)){const un=[];qr(un,P6(Z,ew)),qr(un,mn(Z,Eu)),qr(un,Et),qr(un,mn(une(Z,ew),Aa)),Z=dt(t.createNodeArray(un),Z)}return Z}function gn(Z,we,Et){if(di(Et)&&mj(y,we,Et)){const un=Qt(we,Et);if(bt(un)){const Sr=[];qr(Sr,mn(Z,Eu)),qr(Sr,un),qr(Sr,mn(Z,Aa)),Z=dt(t.createNodeArray(Sr),Z)}}return Z}function Qt(Z,we){if(y)return $Ie?vi(Z,we):Yt(Z,we)}function Yt(Z,we){if(T){let Et;if(so(Z)){const un=r().createMetadataHelper("design:type",T.serializeTypeOfNode({currentLexicalScope:U,currentNameScope:we},Z));Et=Rn(Et,t.createDecorator(un))}if(Co(Z)){const un=r().createMetadataHelper("design:paramtypes",T.serializeParameterTypesOfNode({currentLexicalScope:U,currentNameScope:we},Z,we));Et=Rn(Et,t.createDecorator(un))}if(Wi(Z)){const un=r().createMetadataHelper("design:returntype",T.serializeReturnTypeOfNode({currentLexicalScope:U,currentNameScope:we},Z));Et=Rn(Et,t.createDecorator(un))}return Et}}function vi(Z,we){if(T){let Et;if(so(Z)){const un=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),T.serializeTypeOfNode({currentLexicalScope:U,currentNameScope:we},Z)));Et=Rn(Et,un)}if(Co(Z)){const un=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),T.serializeParameterTypesOfNode({currentLexicalScope:U,currentNameScope:we},Z,we)));Et=Rn(Et,un)}if(Wi(Z)){const un=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),T.serializeReturnTypeOfNode({currentLexicalScope:U,currentNameScope:we},Z)));Et=Rn(Et,un)}if(Et){const un=r().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(Et,!0));return[t.createDecorator(un)]}}}function so(Z){const we=Z.kind;return we===174||we===177||we===178||we===172}function Wi(Z){return Z.kind===174}function Co(Z){switch(Z.kind){case 263:case 231:return ng(Z)!==void 0;case 174:case 177:case 178:return!0}return!1}function Ln(Z,we){const Et=Z.name;return qi(Et)?t.createIdentifier(""):Za(Et)?we&&!O_(Et.expression)?t.getGeneratedNameForNode(Et):Et.expression:Ve(Et)?t.createStringLiteral(Er(Et)):t.cloneNode(Et)}function Ci(Z){const we=Z.name;if(Za(we)&&(!mc(Z)&&Q||Tf(Z)&&y)){const Et=nt(we.expression,X,yt);N.assert(Et);const un=bm(Et);if(!O_(un)){const Sr=t.getGeneratedNameForNode(we);return l(Sr),t.updateComputedPropertyName(we,t.createAssignment(Sr,Et))}}return N.checkDefined(nt(we,X,oc))}function Ar(Z){if(Z.token!==119)return xn(Z,X,e)}function sn(Z){return t.updateExpressionWithTypeArguments(Z,N.checkDefined(nt(Z.expression,X,Zd)),void 0)}function tt(Z){return!Fl(Z.body)}function zt(Z,we){const Et=Z.flags&33554432||Qr(Z,64);if(Et&&!(y&&Tf(Z)))return;let un=di(we)?Et?jn(Z.modifiers,At,sl):jn(Z.modifiers,X,sl):jn(Z.modifiers,We,sl);return un=gn(un,Z,we),Et?t.updatePropertyDeclaration(Z,So(un,t.createModifiersFromModifierFlags(128)),N.checkDefined(nt(Z.name,X,oc)),void 0,void 0,void 0):t.updatePropertyDeclaration(Z,un,Ci(Z),void 0,void 0,nt(Z.initializer,X,yt))}function Dn(Z){if(tt(Z))return t.updateConstructorDeclaration(Z,void 0,Dl(Z.parameters,X,e),yi(Z.body,Z))}function ci(Z,we,Et,un,Sr,vr){const jr=un[Sr],Di=we[jr];if(qr(Z,jn(we,X,Hi,Et,jr-Et)),BS(Di)){const Mr=[];ci(Mr,Di.tryBlock.statements,0,un,Sr+1,vr);const Yo=t.createNodeArray(Mr);dt(Yo,Di.tryBlock.statements),Z.push(t.updateTryStatement(Di,t.updateBlock(Di.tryBlock,Mr),nt(Di.catchClause,X,r1),nt(Di.finallyBlock,X,Ko)))}else qr(Z,jn(we,X,Hi,jr,1)),qr(Z,vr);qr(Z,jn(we,X,Hi,jr+1))}function yi(Z,we){const Et=we&&mn(we.parameters,Mr=>pp(Mr,we));if(!bt(Et))return af(Z,X,e);let un=[];o();const Sr=t.copyPrologue(Z.statements,un,!1,X),vr=qF(Z.statements,Sr),jr=eo(Et,Qi);vr.length?ci(un,Z.statements,Sr,vr,0,jr):(qr(un,jr),qr(un,jn(Z.statements,X,Hi,Sr))),un=t.mergeLexicalEnvironment(un,s());const Di=t.createBlock(dt(t.createNodeArray(un),Z.statements),!0);return dt(Di,Z),Nr(Di,Z),Di}function Qi(Z){const we=Z.name;if(!Ve(we))return;const Et=Ha(dt(t.cloneNode(we),we),we.parent);pr(Et,3168);const un=Ha(dt(t.cloneNode(we),we),we.parent);return pr(un,3072),Xu(Pk(dt(Nr(t.createExpressionStatement(t.createAssignment(dt(t.createPropertyAccessExpression(t.createThis(),Et),Z.name),un)),Z),m0(Z,-1))))}function Io(Z,we){if(!(Z.transformFlags&1))return Z;if(!tt(Z))return;let Et=di(we)?jn(Z.modifiers,X,sl):jn(Z.modifiers,We,sl);return Et=gn(Et,Z,we),t.updateMethodDeclaration(Z,Et,Z.asteriskToken,Ci(Z),void 0,void 0,Dl(Z.parameters,X,e),void 0,af(Z.body,X,e))}function fa(Z){return!(Fl(Z.body)&&Qr(Z,64))}function ka(Z,we){if(!(Z.transformFlags&1))return Z;if(!fa(Z))return;let Et=di(we)?jn(Z.modifiers,X,sl):jn(Z.modifiers,We,sl);return Et=gn(Et,Z,we),t.updateGetAccessorDeclaration(Z,Et,Ci(Z),Dl(Z.parameters,X,e),void 0,af(Z.body,X,e)||t.createBlock([]))}function Tn(Z,we){if(!(Z.transformFlags&1))return Z;if(!fa(Z))return;let Et=di(we)?jn(Z.modifiers,X,sl):jn(Z.modifiers,We,sl);return Et=gn(Et,Z,we),t.updateSetAccessorDeclaration(Z,Et,Ci(Z),Dl(Z.parameters,X,e),af(Z.body,X,e)||t.createBlock([]))}function wn(Z){if(!tt(Z))return t.createNotEmittedStatement(Z);const we=t.updateFunctionDeclaration(Z,jn(Z.modifiers,Se,Aa),Z.asteriskToken,Z.name,void 0,Dl(Z.parameters,X,e),void 0,af(Z.body,X,e)||t.createBlock([]));if(Nn(Z)){const Et=[we];return Vs(Et,Z),Et}return we}function He(Z){return tt(Z)?t.updateFunctionExpression(Z,jn(Z.modifiers,Se,Aa),Z.asteriskToken,Z.name,void 0,Dl(Z.parameters,X,e),void 0,af(Z.body,X,e)||t.createBlock([])):t.createOmittedExpression()}function mt(Z){return t.updateArrowFunction(Z,jn(Z.modifiers,Se,Aa),void 0,Dl(Z.parameters,X,e),void 0,Z.equalsGreaterThanToken,af(Z.body,X,e))}function ft(Z){if(GE(Z))return;const we=t.updateParameterDeclaration(Z,jn(Z.modifiers,Et=>Eu(Et)?X(Et):void 0,sl),Z.dotDotDotToken,N.checkDefined(nt(Z.name,X,pS)),void 0,void 0,nt(Z.initializer,X,yt));return we!==Z&&(ac(we,Z),dt(we,C_(Z)),Da(we,C_(Z)),pr(we.name,64)),we}function Ct(Z){if(Nn(Z)){const we=VC(Z.declarationList);return we.length===0?void 0:dt(t.createExpressionStatement(t.inlineExpressions(Wt(we,le))),Z)}else return xn(Z,X,e)}function le(Z){const we=Z.name;return ta(we)?XS(Z,X,e,0,!1,cu):dt(t.createAssignment(ho(we),N.checkDefined(nt(Z.initializer,X,yt))),Z)}function Fe(Z){const we=t.updateVariableDeclaration(Z,N.checkDefined(nt(Z.name,X,pS)),void 0,void 0,nt(Z.initializer,X,yt));return Z.type&&Xoe(we.name,Z.type),we}function pt(Z){const we=$l(Z.expression,-7);if(mS(we)){const Et=nt(Z.expression,X,yt);return N.assert(Et),t.createPartiallyEmittedExpression(Et,Z)}return xn(Z,X,e)}function j(Z){const we=nt(Z.expression,X,yt);return N.assert(we),t.createPartiallyEmittedExpression(we,Z)}function it(Z){const we=nt(Z.expression,X,Zd);return N.assert(we),t.createPartiallyEmittedExpression(we,Z)}function Rt(Z){const we=nt(Z.expression,X,yt);return N.assert(we),t.createPartiallyEmittedExpression(we,Z)}function Ye(Z){return t.updateCallExpression(Z,N.checkDefined(nt(Z.expression,X,yt)),void 0,jn(Z.arguments,X,yt))}function _t(Z){return t.updateNewExpression(Z,N.checkDefined(nt(Z.expression,X,yt)),void 0,jn(Z.arguments,X,yt))}function Gt(Z){return t.updateTaggedTemplateExpression(Z,N.checkDefined(nt(Z.tag,X,yt)),void 0,N.checkDefined(nt(Z.template,X,IA)))}function yn(Z){return t.updateJsxSelfClosingElement(Z,N.checkDefined(nt(Z.tagName,X,_C)),void 0,N.checkDefined(nt(Z.attributes,X,n1)))}function fn(Z){return t.updateJsxOpeningElement(Z,N.checkDefined(nt(Z.tagName,X,_C)),void 0,N.checkDefined(nt(Z.attributes,X,n1)))}function hn(Z){return!ME(Z)||KE(p)}function q(Z){if(!hn(Z))return t.createNotEmittedStatement(Z);const we=[];let Et=4;const un=ke(we,Z);un&&(m!==4||U!==M)&&(Et|=1024);const Sr=da(Z),vr=uu(Z),jr=Nn(Z)?t.getExternalModuleOrNamespaceExportName(O,Z,!1,!0):t.getDeclarationName(Z,!1,!0);let Di=t.createLogicalOr(jr,t.createAssignment(jr,t.createObjectLiteralExpression()));if(Nn(Z)){const Yo=t.getLocalName(Z,!1,!0);Di=t.createAssignment(Yo,Di)}const Mr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Sr)],void 0,Oe(Z,vr)),void 0,[Di]));return Nr(Mr,Z),un&&(v0(Mr,void 0),HA(Mr,void 0)),dt(Mr,Z),P_(Mr,Et),we.push(Mr),we}function Oe(Z,we){const Et=O;O=we;const un=[];i();const Sr=Wt(Z.members,Lt);return Yh(un,s()),qr(un,Sr),O=Et,t.createBlock(dt(t.createNodeArray(un),Z.members),!0)}function Lt(Z){const we=Ln(Z,!1),Et=L(Z),un=t.createAssignment(t.createElementAccessExpression(O,we),Et),Sr=Et.kind===11?un:t.createAssignment(t.createElementAccessExpression(O,un),we);return dt(t.createExpressionStatement(dt(Sr,Z)),Z)}function L(Z){const we=u.getConstantValue(Z);return we!==void 0?typeof we=="string"?t.createStringLiteral(we):we<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-we)):t.createNumericLiteral(we):(Ts(),Z.initializer?N.checkDefined(nt(Z.initializer,X,yt)):t.createVoidZero())}function me(Z){const we=No(Z,Xl);return we?Aq(we,KE(p)):!0}function J(Z){K||(K=new Map);const we=Be(Z);K.has(we)||K.set(we,Z)}function fe(Z){if(K){const we=Be(Z);return K.get(we)===Z}return!0}function Be(Z){return N.assertNode(Z.name,Ve),Z.name.escapedText}function ke(Z,we){const Et=t.createVariableDeclaration(t.getLocalName(we,!1,!0)),un=U.kind===312?0:1,Sr=t.createVariableStatement(jn(we.modifiers,Se,Aa),t.createVariableDeclarationList([Et],un));return Nr(Et,we),v0(Et,void 0),HA(Et,void 0),Nr(Sr,we),J(we),fe(we)?(we.kind===266?Da(Sr.declarationList,we):Da(Sr,we),ac(Sr,we),P_(Sr,2048),Z.push(Sr),!0):!1}function Tt(Z){if(!me(Z))return t.createNotEmittedStatement(Z);N.assertNode(Z.name,Ve,"A TypeScript namespace should have an Identifier name."),Ca();const we=[];let Et=4;const un=ke(we,Z);un&&(m!==4||U!==M)&&(Et|=1024);const Sr=da(Z),vr=uu(Z),jr=Nn(Z)?t.getExternalModuleOrNamespaceExportName(O,Z,!1,!0):t.getDeclarationName(Z,!1,!0);let Di=t.createLogicalOr(jr,t.createAssignment(jr,t.createObjectLiteralExpression()));if(Nn(Z)){const Yo=t.getLocalName(Z,!1,!0);Di=t.createAssignment(Yo,Di)}const Mr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Sr)],void 0,kt(Z,vr)),void 0,[Di]));return Nr(Mr,Z),un&&(v0(Mr,void 0),HA(Mr,void 0)),dt(Mr,Z),P_(Mr,Et),we.push(Mr),we}function kt(Z,we){const Et=O,un=C,Sr=K;O=we,C=Z,K=void 0;const vr=[];i();let jr,Di;if(Z.body)if(Z.body.kind===268)ye(Z.body,Yo=>qr(vr,jn(Yo.statements,ve,Hi))),jr=Z.body.statements,Di=Z.body;else{const Yo=Tt(Z.body);Yo&&(To(Yo)?qr(vr,Yo):vr.push(Yo));const Sl=en(Z).body;jr=m0(Sl.statements,-1)}Yh(vr,s()),O=Et,C=un,K=Sr;const Mr=t.createBlock(dt(t.createNodeArray(vr),jr),!0);return dt(Mr,Di),(!Z.body||Z.body.kind!==268)&&pr(Mr,Ga(Mr)|3072),Mr}function en(Z){if(Z.body.kind===267)return en(Z.body)||Z.body}function En(Z){if(!Z.importClause)return Z;if(Z.importClause.isTypeOnly)return;const we=nt(Z.importClause,Gn,Eh);return we||p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2?t.updateImportDeclaration(Z,void 0,we,Z.moduleSpecifier,Z.attributes):void 0}function Gn(Z){N.assert(!Z.isTypeOnly);const we=ue(Z)?Z.name:void 0,Et=nt(Z.namedBindings,qn,VV);return we||Et?t.updateImportClause(Z,!1,we,Et):void 0}function qn(Z){if(Z.kind===274)return ue(Z)?Z:void 0;{const we=p.verbatimModuleSyntax||p.preserveValueImports&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),Et=jn(Z.elements,Pi,tp);return we||bt(Et)?t.updateNamedImports(Z,Et):void 0}}function Pi(Z){return!Z.isTypeOnly&&ue(Z)?Z:void 0}function xi(Z){return p.verbatimModuleSyntax||u.isValueAliasDeclaration(Z)?xn(Z,X,e):void 0}function ir(Z){if(Z.isTypeOnly)return;if(!Z.exportClause||Sh(Z.exportClause))return Z;const we=p.verbatimModuleSyntax||!!Z.moduleSpecifier&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),Et=nt(Z.exportClause,un=>Mi(un,we),CV);return Et?t.updateExportDeclaration(Z,void 0,Z.isTypeOnly,Et,Z.moduleSpecifier,Z.attributes):void 0}function Vr(Z,we){const Et=jn(Z.elements,Ri,Ku);return we||bt(Et)?t.updateNamedExports(Z,Et):void 0}function vo(Z){return t.updateNamespaceExport(Z,N.checkDefined(nt(Z.name,X,Ve)))}function Mi(Z,we){return Sh(Z)?vo(Z):Vr(Z,we)}function Ri(Z){return!Z.isTypeOnly&&(p.verbatimModuleSyntax||u.isValueAliasDeclaration(Z))?Z:void 0}function Jr(Z){return ue(Z)||!sc(M)&&u.isTopLevelValueImportEqualsWithEntityName(Z)}function xo(Z){if(Z.isTypeOnly)return;if(c0(Z)){const Et=ue(Z);return!Et&&p.importsNotUsedAsValues===1?Nr(dt(t.createImportDeclaration(void 0,void 0,Z.moduleReference.expression,void 0),Z),Z):Et?xn(Z,X,e):void 0}if(!Jr(Z))return;const we=Xk(t,Z.moduleReference);return pr(we,7168),Ql(Z)||!Nn(Z)?Nr(dt(t.createVariableStatement(jn(Z.modifiers,Se,Aa),t.createVariableDeclarationList([Nr(t.createVariableDeclaration(Z.name,void 0,void 0,we),Z)])),Z),Z):Nr(gl(Z.name,we,Z),Z)}function Nn(Z){return C!==void 0&&Qr(Z,32)}function Fs(Z){return C===void 0&&Qr(Z,32)}function Ql(Z){return Fs(Z)&&!Qr(Z,2048)}function ko(Z){return Fs(Z)&&Qr(Z,2048)}function cs(Z){const we=t.createAssignment(t.getExternalModuleOrNamespaceExportName(O,Z,!1,!0),t.getLocalName(Z));Da(we,Af(Z.name?Z.name.pos:Z.pos,Z.end));const Et=t.createExpressionStatement(we);return Da(Et,Af(-1,Z.end)),Et}function Vs(Z,we){Z.push(cs(we))}function gl(Z,we,Et){return dt(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(O,Z,!1,!0),we)),Et)}function cu(Z,we,Et){return dt(t.createAssignment(ho(Z),we),Et)}function ho(Z){return t.getNamespaceMemberName(O,Z,!1,!0)}function da(Z){const we=t.getGeneratedNameForNode(Z);return Da(we,Z.name),we}function uu(Z){return t.getGeneratedNameForNode(Z)}function Ts(){V&8||(V|=8,e.enableSubstitution(80))}function Ca(){V&2||(V|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function ml(Z){return Pl(Z).kind===267}function Lf(Z){return Pl(Z).kind===266}function lc(Z,we,Et){const un=se,Sr=M;$i(we)&&(M=we),V&2&&ml(we)&&(se|=2),V&8&&Lf(we)&&(se|=8),A(Z,we,Et),se=un,M=Sr}function Nl(Z,we){return we=R(Z,we),Z===1?wo(we):np(we)?cl(we):we}function cl(Z){if(V&2){const we=Z.name,Et=js(we);if(Et){if(Z.objectAssignmentInitializer){const un=t.createAssignment(Et,Z.objectAssignmentInitializer);return dt(t.createPropertyAssignment(we,un),Z)}return dt(t.createPropertyAssignment(we,Et),Z)}}return Z}function wo(Z){switch(Z.kind){case 80:return nn(Z);case 211:return tu(Z);case 212:return du(Z)}return Z}function nn(Z){return js(Z)||Z}function js(Z){if(V&se&&!al(Z)&&!Gg(Z)){const we=u.getReferencedExportContainer(Z,!1);if(we&&we.kind!==312&&(se&2&&we.kind===267||se&8&&we.kind===266))return dt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(we),Z),Z)}}function tu(Z){return Ms(Z)}function du(Z){return Ms(Z)}function Tp(Z){return Z.replace(/\*\//g,"*_/")}function Ms(Z){const we=xc(Z);if(we!==void 0){Joe(Z,we);const Et=typeof we=="string"?t.createStringLiteral(we):we<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-we)):t.createNumericLiteral(we);if(!p.removeComments){const un=Pl(Z,ws);cW(Et,3,` ${Tp(fc(un))} `)}return Et}return Z}function xc(Z){if(!rm(p))return Fr(Z)||$s(Z)?u.getConstantValue(Z):void 0}function ue(Z){return p.verbatimModuleSyntax||lr(Z)||(p.preserveValueImports?u.isValueAliasDeclaration(Z):u.isReferencedAliasDeclaration(Z))}}var $Ie,Rje=I({"src/compiler/transformers/ts.ts"(){ra(),$Ie=!1}});function ple(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:o,startLexicalEnvironment:s,resumeLexicalEnvironment:l,addBlockScopedVariable:u}=e,p=e.getEmitResolver(),h=e.getCompilerOptions(),m=os(h),y=lP(h),T=!!h.experimentalDecorators,A=!y,R=y&&m<9,M=A||R,C=m<9,O=m<99?-1:y?0:3,U=m<9,K=U&&m>=2,Q=M||C||O===-1,V=e.onSubstituteNode;e.onSubstituteNode=tu;const se=e.onEmitNode;e.onEmitNode=js;let G=!1,ne,he,ye,Y,X;const oe=new Map,pe=new Set;let Ce,de,ie=!1,ve=!1;return Dm(e,Le);function Le(ue){if(ue.isDeclarationFile||(X=void 0,G=!!(Em(ue)&32),!Q&&!G))return ue;const Z=xn(ue,Ee,e);return zg(Z,e.readEmitHelpers()),Z}function Ue(ue){switch(ue.kind){case 129:return zt()?void 0:ue;default:return ri(ue,Aa)}}function Ee(ue){if(!(ue.transformFlags&16777216)&&!(ue.transformFlags&134234112))return ue;switch(ue.kind){case 129:return N.fail("Use `modifierVisitor` instead.");case 263:return fn(ue);case 231:return q(ue);case 175:case 172:return N.fail("Use `classElementVisitor` instead.");case 303:return $e(ue);case 243:return It(ue);case 260:return tn(ue);case 169:return rn(ue);case 208:return Mn(ue);case 277:return $n(ue);case 81:return Bt(ue);case 211:return fa(ue);case 212:return ka(ue);case 224:case 225:return Tn(ue,!1);case 226:return pt(ue,!1);case 217:return it(ue,!1);case 213:return ft(ue);case 244:return He(ue);case 215:return Ct(ue);case 248:return wn(ue);case 110:return L(ue);case 262:case 218:return Wi(void 0,De,ue);case 176:case 174:case 177:case 178:return Wi(ue,De,ue);default:return De(ue)}}function De(ue){return xn(ue,Ee,e)}function Me(ue){switch(ue.kind){case 224:case 225:return Tn(ue,!0);case 226:return pt(ue,!0);case 361:return j(ue,!0);case 217:return it(ue,!0);default:return Ee(ue)}}function We(ue){switch(ue.kind){case 298:return xn(ue,We,e);case 233:return Gt(ue);default:return Ee(ue)}}function At(ue){switch(ue.kind){case 210:case 209:return nn(ue);default:return Ee(ue)}}function Se(ue){switch(ue.kind){case 176:return Wi(ue,Yt,ue);case 177:case 178:case 174:return Wi(ue,so,ue);case 172:return Wi(ue,Dn,ue);case 175:return Wi(ue,Lt,ue);case 167:return Qt(ue);case 240:return ue;default:return sl(ue)?Ue(ue):Ee(ue)}}function je(ue){switch(ue.kind){case 167:return Qt(ue);default:return Ee(ue)}}function ot(ue){switch(ue.kind){case 172:return tt(ue);case 177:case 178:return Se(ue);default:N.assertMissingNode(ue,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Bt(ue){return!C||Hi(ue.parent)?ue:Nr(t.createIdentifier(""),ue)}function vt(ue){const Z=da(ue.left);if(Z){const we=nt(ue.right,Ee,yt);return Nr(r().createClassPrivateFieldInHelper(Z.brandCheckIdentifier,we),ue)}return xn(ue,Ee,e)}function $e(ue){return mp(ue,Fe)&&(ue=bp(e,ue)),xn(ue,Ee,e)}function It(ue){const Z=Y;Y=[];const we=xn(ue,Ee,e),Et=bt(Y)?[we,...Y]:we;return Y=Z,Et}function tn(ue){return mp(ue,Fe)&&(ue=bp(e,ue)),xn(ue,Ee,e)}function rn(ue){return mp(ue,Fe)&&(ue=bp(e,ue)),xn(ue,Ee,e)}function Mn(ue){return mp(ue,Fe)&&(ue=bp(e,ue)),xn(ue,Ee,e)}function $n(ue){return mp(ue,Fe)&&(ue=bp(e,ue,!0,ue.isExportEquals?"":"default")),xn(ue,Ee,e)}function gn(ue){return bt(ye)&&(Gd(ue)?(ye.push(ue.expression),ue=t.updateParenthesizedExpression(ue,t.inlineExpressions(ye))):(ye.push(ue),ue=t.inlineExpressions(ye)),ye=void 0),ue}function Qt(ue){const Z=nt(ue.expression,Ee,yt);return t.updateComputedPropertyName(ue,gn(Z))}function Yt(ue){return Ce?fe(ue,Ce):De(ue)}function vi(ue){return!!(C||mc(ue)&&Em(ue)&32)}function so(ue){if(N.assert(!Tf(ue)),!sd(ue)||!vi(ue))return xn(ue,Se,e);const Z=da(ue.name);if(N.assert(Z,"Undeclared private name for property declaration."),!Z.isValid)return ue;const we=Co(ue);we&&xo().push(t.createAssignment(we,t.createFunctionExpression(mn(ue.modifiers,Et=>Aa(Et)&&!QA(Et)&&!lae(Et)),ue.asteriskToken,we,void 0,Dl(ue.parameters,Ee,e),void 0,af(ue.body,Ee,e))))}function Wi(ue,Z,we){if(ue!==de){const Et=de;de=ue;const un=Z(we);return de=Et,un}return Z(we)}function Co(ue){N.assert(qi(ue.name));const Z=da(ue.name);if(N.assert(Z,"Undeclared private name for property declaration."),Z.kind==="m")return Z.methodName;if(Z.kind==="a"){if(My(ue))return Z.getterName;if(Mv(ue))return Z.setterName}}function Ln(){const ue=Ri(),Z=ue.classThis??ue.classConstructor??(Ce==null?void 0:Ce.name);return N.checkDefined(Z)}function Ci(ue){const Z=M_(ue),we=Bv(ue),Et=ue.name;let un=Et,Sr=Et;if(Za(Et)&&!O_(Et.expression)){const jc=lF(Et);if(jc)un=t.updateComputedPropertyName(Et,nt(Et.expression,Ee,yt)),Sr=t.updateComputedPropertyName(Et,jc.left);else{const Us=t.createTempVariable(i);Da(Us,Et.expression);const vc=nt(Et.expression,Ee,yt),Es=t.createAssignment(Us,vc);Da(Es,Et.expression),un=t.updateComputedPropertyName(Et,Es),Sr=t.updateComputedPropertyName(Et,Us)}}const vr=jn(ue.modifiers,Ue,Aa),jr=PH(t,ue,vr,ue.initializer);Nr(jr,ue),pr(jr,3072),Da(jr,we);const Di=aa(ue)?Ln():t.createThis(),Mr=jae(t,ue,vr,un,Di);Nr(Mr,ue),ac(Mr,Z),Da(Mr,we);const Yo=t.createModifiersFromModifierFlags(N_(vr)),Sl=Uae(t,ue,Yo,Sr,Di);return Nr(Sl,ue),pr(Sl,3072),Da(Sl,we),Rw([jr,Mr,Sl],ot,Yc)}function Ar(ue){if(vi(ue)){const Z=da(ue.name);if(N.assert(Z,"Undeclared private name for property declaration."),!Z.isValid)return ue;if(Z.isStatic&&!C){const we=kt(ue,t.createThis());if(we)return t.createClassStaticBlockDeclaration(t.createBlock([we],!0))}return}return A&&!aa(ue)&&(X!=null&&X.data)&&X.data.facts&16?t.updatePropertyDeclaration(ue,jn(ue.modifiers,Ee,sl),ue.name,void 0,void 0,void 0):(mp(ue,Fe)&&(ue=bp(e,ue)),t.updatePropertyDeclaration(ue,jn(ue.modifiers,Ue,Aa),nt(ue.name,je,oc),void 0,void 0,nt(ue.initializer,Ee,yt)))}function sn(ue){if(M&&!Wd(ue)){const Z=Vr(ue.name,!!ue.initializer||y);if(Z&&xo().push(...Hae(Z)),aa(ue)&&!C){const we=kt(ue,t.createThis());if(we){const Et=t.createClassStaticBlockDeclaration(t.createBlock([we]));return Nr(Et,ue),ac(Et,ue),ac(we,{pos:-1,end:-1}),v0(we,void 0),HA(we,void 0),Et}}return}return t.updatePropertyDeclaration(ue,jn(ue.modifiers,Ue,Aa),nt(ue.name,je,oc),void 0,void 0,nt(ue.initializer,Ee,yt))}function tt(ue){return N.assert(!Tf(ue),"Decorators should already have been transformed and elided."),sd(ue)?Ar(ue):sn(ue)}function zt(){return O===-1||O===3&&!!(X!=null&&X.data)&&!!(X.data.facts&16)}function Dn(ue){return Wd(ue)&&(zt()||mc(ue)&&Em(ue)&32)?Ci(ue):tt(ue)}function ci(){return!!de&&mc(de)&&Cy(de)&&Wd(Pl(de))}function yi(ue){if(ci()){const Z=$l(ue);Z.kind===110&&pe.add(Z)}}function Qi(ue,Z){return Z=nt(Z,Ee,yt),yi(Z),Io(ue,Z)}function Io(ue,Z){switch(ac(Z,m0(Z,-1)),ue.kind){case"a":return r().createClassPrivateFieldGetHelper(Z,ue.brandCheckIdentifier,ue.kind,ue.getterName);case"m":return r().createClassPrivateFieldGetHelper(Z,ue.brandCheckIdentifier,ue.kind,ue.methodName);case"f":return r().createClassPrivateFieldGetHelper(Z,ue.brandCheckIdentifier,ue.kind,ue.isStatic?ue.variableName:void 0);case"untransformed":return N.fail("Access helpers should not be created for untransformed private elements");default:N.assertNever(ue,"Unknown private element type")}}function fa(ue){if(qi(ue.name)){const Z=da(ue.name);if(Z)return dt(Nr(Qi(Z,ue.expression),ue),ue)}if(K&&de&&zd(ue)&&Ve(ue.name)&&VP(de)&&(X!=null&&X.data)){const{classConstructor:Z,superClassReference:we,facts:Et}=X.data;if(Et&1)return ir(ue);if(Z&&we){const un=t.createReflectGetCall(we,t.createStringLiteralFromNode(ue.name),Z);return Nr(un,ue.expression),dt(un,ue.expression),un}}return xn(ue,Ee,e)}function ka(ue){if(K&&de&&zd(ue)&&VP(de)&&(X!=null&&X.data)){const{classConstructor:Z,superClassReference:we,facts:Et}=X.data;if(Et&1)return ir(ue);if(Z&&we){const un=t.createReflectGetCall(we,nt(ue.argumentExpression,Ee,yt),Z);return Nr(un,ue.expression),dt(un,ue.expression),un}}return xn(ue,Ee,e)}function Tn(ue,Z){if(ue.operator===46||ue.operator===47){const we=hs(ue.operand);if(Kx(we)){let Et;if(Et=da(we.name)){const un=nt(we.expression,Ee,yt);yi(un);const{readExpression:Sr,initializeExpression:vr}=mt(un);let jr=Qi(Et,Sr);const Di=Xy(ue)||Z?void 0:t.createTempVariable(i);return jr=tF(t,ue,jr,i,Di),jr=Rt(Et,vr||Sr,jr,64),Nr(jr,ue),dt(jr,ue),Di&&(jr=t.createComma(jr,Di),dt(jr,ue)),jr}}else if(K&&de&&zd(we)&&VP(de)&&(X!=null&&X.data)){const{classConstructor:Et,superClassReference:un,facts:Sr}=X.data;if(Sr&1){const vr=ir(we);return Xy(ue)?t.updatePrefixUnaryExpression(ue,vr):t.updatePostfixUnaryExpression(ue,vr)}if(Et&&un){let vr,jr;if(Fr(we)?Ve(we.name)&&(jr=vr=t.createStringLiteralFromNode(we.name)):O_(we.argumentExpression)?jr=vr=we.argumentExpression:(jr=t.createTempVariable(i),vr=t.createAssignment(jr,nt(we.argumentExpression,Ee,yt))),vr&&jr){let Di=t.createReflectGetCall(un,jr,Et);dt(Di,we);const Mr=Z?void 0:t.createTempVariable(i);return Di=tF(t,ue,Di,i,Mr),Di=t.createReflectSetCall(un,vr,Di,Et),Nr(Di,ue),dt(Di,ue),Mr&&(Di=t.createComma(Di,Mr),dt(Di,ue)),Di}}}}return xn(ue,Ee,e)}function wn(ue){return t.updateForStatement(ue,nt(ue.initializer,Me,Sf),nt(ue.condition,Ee,yt),nt(ue.incrementor,Me,yt),xd(ue.statement,Ee,e))}function He(ue){return t.updateExpressionStatement(ue,nt(ue.expression,Me,yt))}function mt(ue){const Z=Ys(ue)?ue:t.cloneNode(ue);if(ue.kind===110&&pe.has(ue)&&pe.add(Z),O_(ue))return{readExpression:Z,initializeExpression:void 0};const we=t.createTempVariable(i),Et=t.createAssignment(we,Z);return{readExpression:we,initializeExpression:Et}}function ft(ue){var Z;if(Kx(ue.expression)&&da(ue.expression.name)){const{thisArg:we,target:Et}=t.createCallBinding(ue.expression,i,m);return uS(ue)?t.updateCallChain(ue,t.createPropertyAccessChain(nt(Et,Ee,yt),ue.questionDotToken,"call"),void 0,void 0,[nt(we,Ee,yt),...jn(ue.arguments,Ee,yt)]):t.updateCallExpression(ue,t.createPropertyAccessExpression(nt(Et,Ee,yt),"call"),void 0,[nt(we,Ee,yt),...jn(ue.arguments,Ee,yt)])}if(K&&de&&zd(ue.expression)&&VP(de)&&((Z=X==null?void 0:X.data)!=null&&Z.classConstructor)){const we=t.createFunctionCallCall(nt(ue.expression,Ee,yt),X.data.classConstructor,jn(ue.arguments,Ee,yt));return Nr(we,ue),dt(we,ue),we}return xn(ue,Ee,e)}function Ct(ue){var Z;if(Kx(ue.tag)&&da(ue.tag.name)){const{thisArg:we,target:Et}=t.createCallBinding(ue.tag,i,m);return t.updateTaggedTemplateExpression(ue,t.createCallExpression(t.createPropertyAccessExpression(nt(Et,Ee,yt),"bind"),void 0,[nt(we,Ee,yt)]),void 0,nt(ue.template,Ee,IA))}if(K&&de&&zd(ue.tag)&&VP(de)&&((Z=X==null?void 0:X.data)!=null&&Z.classConstructor)){const we=t.createFunctionBindCall(nt(ue.tag,Ee,yt),X.data.classConstructor,[]);return Nr(we,ue),dt(we,ue),t.updateTaggedTemplateExpression(ue,we,void 0,nt(ue.template,Ee,IA))}return xn(ue,Ee,e)}function le(ue){if(X&&oe.set(Pl(ue),X),C){if(BP(ue)){const Et=nt(ue.body.statements[0].expression,Ee,yt);return Pc(Et,!0)&&Et.left===Et.right?void 0:Et}if(yI(ue))return nt(ue.body.statements[0].expression,Ee,yt);s();let Z=Wi(ue,Et=>jn(Et,Ee,Hi),ue.body.statements);Z=t.mergeLexicalEnvironment(Z,o());const we=t.createImmediatelyInvokedArrowFunction(Z);return Nr(hs(we.expression),ue),P_(hs(we.expression),4),Nr(we,ue),dt(we,ue),we}}function Fe(ue){if(Qc(ue)&&!ue.name){const Z=JF(ue);return bt(Z,yI)?!1:(C||!!Em(ue))&&bt(Z,Et=>Rl(Et)||sd(Et)||M&&Nw(Et))}return!1}function pt(ue,Z){if(Wv(ue)){const we=ye;ye=void 0,ue=t.updateBinaryExpression(ue,nt(ue.left,At,yt),ue.operatorToken,nt(ue.right,Ee,yt));const Et=bt(ye)?t.inlineExpressions(C2([...ye,ue])):ue;return ye=we,Et}if(Pc(ue)){mp(ue,Fe)&&(ue=bp(e,ue),N.assertNode(ue,Pc));const we=$l(ue.left,9);if(Kx(we)){const Et=da(we.name);if(Et)return dt(Nr(Rt(Et,we.expression,ue.right,ue.operatorToken.kind),ue),ue)}else if(K&&de&&zd(ue.left)&&VP(de)&&(X!=null&&X.data)){const{classConstructor:Et,superClassReference:un,facts:Sr}=X.data;if(Sr&1)return t.updateBinaryExpression(ue,ir(ue.left),ue.operatorToken,nt(ue.right,Ee,yt));if(Et&&un){let vr=$s(ue.left)?nt(ue.left.argumentExpression,Ee,yt):Ve(ue.left.name)?t.createStringLiteralFromNode(ue.left.name):void 0;if(vr){let jr=nt(ue.right,Ee,yt);if(WP(ue.operatorToken.kind)){let Mr=vr;O_(vr)||(Mr=t.createTempVariable(i),vr=t.createAssignment(Mr,vr));const Yo=t.createReflectGetCall(un,Mr,Et);Nr(Yo,ue.left),dt(Yo,ue.left),jr=t.createBinaryExpression(Yo,FP(ue.operatorToken.kind),jr),dt(jr,ue)}const Di=Z?void 0:t.createTempVariable(i);return Di&&(jr=t.createAssignment(Di,jr),dt(Di,ue)),jr=t.createReflectSetCall(un,vr,jr,Et),Nr(jr,ue),dt(jr,ue),Di&&(jr=t.createComma(jr,Di),dt(jr,ue)),jr}}}}return Mje(ue)?vt(ue):xn(ue,Ee,e)}function j(ue,Z){const we=Z?Dw(ue.elements,Me):Dw(ue.elements,Ee,Me);return t.updateCommaListExpression(ue,we)}function it(ue,Z){const we=Z?Me:Ee,Et=nt(ue.expression,we,yt);return t.updateParenthesizedExpression(ue,Et)}function Rt(ue,Z,we,Et){if(Z=nt(Z,Ee,yt),we=nt(we,Ee,yt),yi(Z),WP(Et)){const{readExpression:un,initializeExpression:Sr}=mt(Z);Z=Sr||un,we=t.createBinaryExpression(Io(ue,un),FP(Et),we)}switch(ac(Z,m0(Z,-1)),ue.kind){case"a":return r().createClassPrivateFieldSetHelper(Z,ue.brandCheckIdentifier,we,ue.kind,ue.setterName);case"m":return r().createClassPrivateFieldSetHelper(Z,ue.brandCheckIdentifier,we,ue.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper(Z,ue.brandCheckIdentifier,we,ue.kind,ue.isStatic?ue.variableName:void 0);case"untransformed":return N.fail("Access helpers should not be created for untransformed private elements");default:N.assertNever(ue,"Unknown private element type")}}function Ye(ue){return mn(ue.members,Qse)}function _t(ue){var Z;let we=0;const Et=Pl(ue);Ac(Et)&&Lv(T,Et)&&(we|=1),C&&(Gq(ue)||XF(ue))&&(we|=2);let un=!1,Sr=!1,vr=!1,jr=!1;for(const Mr of ue.members)aa(Mr)?((Mr.name&&(qi(Mr.name)||Wd(Mr))&&C||Wd(Mr)&&O===-1&&!ue.name&&!((Z=ue.emitNode)!=null&&Z.classThis))&&(we|=2),(qo(Mr)||Rl(Mr))&&(U&&Mr.transformFlags&16384&&(we|=8,we&1||(we|=2)),K&&Mr.transformFlags&134217728&&(we&1||(we|=6)))):jE(Pl(Mr))||(Wd(Mr)?(jr=!0,vr||(vr=sd(Mr))):sd(Mr)?(vr=!0,p.getNodeCheckFlags(Mr)&262144&&(we|=2)):qo(Mr)&&(un=!0,Sr||(Sr=!!Mr.initializer)));return(R&&un||A&&Sr||C&&vr||C&&jr&&O===-1)&&(we|=16),we}function Gt(ue){var Z;if((((Z=X==null?void 0:X.data)==null?void 0:Z.facts)||0)&4){const Et=t.createTempVariable(i,!0);return Ri().superClassReference=Et,t.updateExpressionWithTypeArguments(ue,t.createAssignment(Et,nt(ue.expression,Ee,yt)),void 0)}return xn(ue,Ee,e)}function yn(ue,Z){var we;const Et=Ce,un=ye,Sr=X;Ce=ue,ye=void 0,vo();const vr=Em(ue)&32;if(C||vr){const Mr=Lo(ue);if(Mr&&Ve(Mr))Jr().data.className=Mr;else if((we=ue.emitNode)!=null&&we.assignedName&&Na(ue.emitNode.assignedName)){if(ue.emitNode.assignedName.textSourceNode&&Ve(ue.emitNode.assignedName.textSourceNode))Jr().data.className=ue.emitNode.assignedName.textSourceNode;else if(Zp(ue.emitNode.assignedName.text,m)){const Yo=t.createIdentifier(ue.emitNode.assignedName.text);Jr().data.className=Yo}}}if(C){const Mr=Ye(ue);bt(Mr)&&(Jr().data.weakSetName=cu("instances",Mr[0].name))}const jr=_t(ue);jr&&(Ri().facts=jr),jr&8&&Pi();const Di=Z(ue,jr);return Mi(),N.assert(X===Sr),Ce=Et,ye=un,Di}function fn(ue){return yn(ue,hn)}function hn(ue,Z){var we,Et;let un;if(Z&2)if(C&&((we=ue.emitNode)!=null&&we.classThis))Ri().classConstructor=ue.emitNode.classThis,un=t.createAssignment(ue.emitNode.classThis,t.getInternalName(ue));else{const Es=t.createTempVariable(i,!0);Ri().classConstructor=t.cloneNode(Es),un=t.createAssignment(Es,t.getInternalName(ue))}(Et=ue.emitNode)!=null&&Et.classThis&&(Ri().classThis=ue.emitNode.classThis);const Sr=p.getNodeCheckFlags(ue)&262144,vr=Qr(ue,32),jr=Qr(ue,2048);let Di=jn(ue.modifiers,Ue,Aa);const Mr=jn(ue.heritageClauses,We,nf),{members:Yo,prologue:Sl}=me(ue),jc=[];if(un&&xo().unshift(un),bt(ye)&&jc.push(t.createExpressionStatement(t.inlineExpressions(ye))),A||C||Em(ue)&32){const Es=JF(ue);bt(Es)&&Tt(jc,Es,t.getInternalName(ue))}jc.length>0&&vr&&jr&&(Di=jn(Di,Es=>ew(Es)?void 0:Es,Aa),jc.push(t.createExportAssignment(void 0,!1,t.getLocalName(ue,!1,!0))));const Us=Ri().classConstructor;Sr&&Us&&(qn(),he[Wu(ue)]=Us);const vc=t.updateClassDeclaration(ue,Di,ue.name,void 0,Mr,Yo);return jc.unshift(vc),Sl&&jc.unshift(t.createExpressionStatement(Sl)),jc}function q(ue){return yn(ue,Oe)}function Oe(ue,Z){var we,Et,un;const Sr=!!(Z&1),vr=JF(ue),jr=p.getNodeCheckFlags(ue),Di=jr&262144;let Mr;function Yo(){var wc;if(C&&((wc=ue.emitNode)!=null&&wc.classThis))return Ri().classConstructor=ue.emitNode.classThis;const sm=jr&32768,_d=t.createTempVariable(sm?u:i,!0);return Ri().classConstructor=t.cloneNode(_d),_d}(we=ue.emitNode)!=null&&we.classThis&&(Ri().classThis=ue.emitNode.classThis),Z&2&&(Mr??(Mr=Yo()));const Sl=jn(ue.modifiers,Ue,Aa),jc=jn(ue.heritageClauses,We,nf),{members:Us,prologue:vc}=me(ue),Es=t.updateClassExpression(ue,Sl,ue.name,void 0,jc,Us),Uc=[];if(vc&&Uc.push(vc),(C||Em(ue)&32)&&bt(vr,wc=>Rl(wc)||sd(wc)||M&&Nw(wc))||bt(ye))if(Sr)N.assertIsDefined(Y,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),bt(ye)&&qr(Y,Wt(ye,t.createExpressionStatement)),bt(vr)&&Tt(Y,vr,((Et=ue.emitNode)==null?void 0:Et.classThis)??t.getInternalName(ue)),Mr?Uc.push(t.createAssignment(Mr,Es)):C&&((un=ue.emitNode)!=null&&un.classThis)?Uc.push(t.createAssignment(ue.emitNode.classThis,Es)):Uc.push(Es);else{if(Mr??(Mr=Yo()),Di){qn();const wc=t.cloneNode(Mr);wc.emitNode.autoGenerate.flags&=-9,he[Wu(ue)]=wc}Uc.push(t.createAssignment(Mr,Es)),qr(Uc,ye),qr(Uc,en(vr,Mr)),Uc.push(t.cloneNode(Mr))}else Uc.push(Es);return Uc.length>1&&(P_(Es,131072),Uc.forEach(Xu)),t.inlineExpressions(Uc)}function Lt(ue){if(!C)return xn(ue,Ee,e)}function L(ue){if(U&&de&&Rl(de)&&(X!=null&&X.data)){const{classThis:Z,classConstructor:we}=X.data;return Z??we??ue}return ue}function me(ue){const Z=!!(Em(ue)&32);if(C||G){for(const vr of ue.members)if(sd(vr))if(vi(vr))gl(vr,vr.name,Nn);else{const jr=Jr();KS(jr,vr.name,{kind:"untransformed"})}if(C&&bt(Ye(ue))&&J(),zt()){for(const vr of ue.members)if(Wd(vr)){const jr=t.getGeneratedPrivateNameForNode(vr.name,void 0,"_accessor_storage");if(C||Z&&mc(vr))gl(vr,jr,Fs);else{const Di=Jr();KS(Di,jr,{kind:"untransformed"})}}}}let we=jn(ue.members,Se,Yc),Et;bt(we,Ml)||(Et=fe(void 0,ue));let un,Sr;if(!C&&bt(ye)){let vr=t.createExpressionStatement(t.inlineExpressions(ye));if(vr.transformFlags&134234112){const Di=t.createTempVariable(i),Mr=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([vr]));un=t.createAssignment(Di,Mr),vr=t.createExpressionStatement(t.createCallExpression(Di,void 0,[]))}const jr=t.createBlock([vr]);Sr=t.createClassStaticBlockDeclaration(jr),ye=void 0}if(Et||Sr){let vr;const jr=In(we,BP),Di=In(we,yI);vr=Rn(vr,jr),vr=Rn(vr,Di),vr=Rn(vr,Et),vr=Rn(vr,Sr);const Mr=jr||Di?mn(we,Yo=>Yo!==jr&&Yo!==Di):we;vr=qr(vr,Mr),we=dt(t.createNodeArray(vr),ue.members)}return{members:we,prologue:un}}function J(){const{weakSetName:ue}=Jr().data;N.assert(ue,"weakSetName should be set in private identifier environment"),xo().push(t.createAssignment(ue,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function fe(ue,Z){if(ue=nt(ue,Ee,Ml),!(X!=null&&X.data)||!(X.data.facts&16))return ue;const we=I_(Z),Et=!!(we&&$l(we.expression).kind!==106),un=Dl(ue?ue.parameters:void 0,Ee,e),Sr=ke(Z,ue,Et);return Sr?ue?(N.assert(un),t.updateConstructorDeclaration(ue,void 0,un,Sr)):Xu(Nr(dt(t.createConstructorDeclaration(void 0,un??[],Sr),ue||Z),ue)):ue}function Be(ue,Z,we,Et,un,Sr,vr){const jr=Et[un],Di=Z[jr];if(qr(ue,jn(Z,Ee,Hi,we,jr-we)),we=jr+1,BS(Di)){const Mr=[];Be(Mr,Di.tryBlock.statements,0,Et,un+1,Sr,vr);const Yo=t.createNodeArray(Mr);dt(Yo,Di.tryBlock.statements),ue.push(t.updateTryStatement(Di,t.updateBlock(Di.tryBlock,Mr),nt(Di.catchClause,Ee,r1),nt(Di.finallyBlock,Ee,Ko)))}else{for(qr(ue,jn(Z,Ee,Hi,jr,1));we<Z.length;){const Mr=Z[we];if(pp(Pl(Mr),vr))we++;else break}qr(ue,Sr)}qr(ue,jn(Z,Ee,Hi,we))}function ke(ue,Z,we){const Et=Oq(ue,!1,!1);let un=Et;y||(un=mn(un,Us=>!!Us.initializer||qi(Us.name)||D_(Us)));const Sr=Ye(ue),vr=bt(un)||bt(Sr);if(!Z&&!vr)return af(void 0,Ee,e);l();const jr=!Z&&we;let Di=0,Mr=[];const Yo=[],Sl=t.createThis();if(xi(Yo,Sr,Sl),Z){const Us=mn(Et,Es=>pp(Pl(Es),Z)),vc=mn(un,Es=>!pp(Pl(Es),Z));Tt(Yo,Us,Sl),Tt(Yo,vc,Sl)}else Tt(Yo,un,Sl);if(Z!=null&&Z.body){Di=t.copyPrologue(Z.body.statements,Mr,!1,Ee);const Us=qF(Z.body.statements,Di);if(Us.length)Be(Mr,Z.body.statements,Di,Us,0,Yo,Z);else{for(;Di<Z.body.statements.length;){const vc=Z.body.statements[Di];if(pp(Pl(vc),Z))Di++;else break}qr(Mr,Yo),qr(Mr,jn(Z.body.statements,Ee,Hi,Di))}}else jr&&Mr.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))]))),qr(Mr,Yo);if(Mr=t.mergeLexicalEnvironment(Mr,o()),Mr.length===0&&!Z)return;const jc=Z!=null&&Z.body&&Z.body.statements.length>=Mr.length?Z.body.multiLine??Mr.length>0:Mr.length>0;return dt(t.createBlock(dt(t.createNodeArray(Mr),Z?Z.body.statements:ue.members),jc),Z?Z.body:void 0)}function Tt(ue,Z,we){for(const Et of Z){if(aa(Et)&&!C)continue;const un=kt(Et,we);un&&ue.push(un)}}function kt(ue,Z){const we=Rl(ue)?Wi(ue,le,ue):En(ue,Z);if(!we)return;const Et=t.createExpressionStatement(we);Nr(Et,ue),P_(Et,Ga(ue)&3072),ac(Et,ue);const un=Pl(ue);return Ao(un)?(Da(Et,un),Pk(Et)):Da(Et,C_(ue)),v0(we,void 0),HA(we,void 0),D_(un)&&P_(Et,3072),Et}function en(ue,Z){const we=[];for(const Et of ue){const un=Rl(Et)?Wi(Et,le,Et):Wi(Et,()=>En(Et,Z),void 0);un&&(Xu(un),Nr(un,Et),P_(un,Ga(Et)&3072),Da(un,C_(Et)),ac(un,Et),we.push(un))}return we}function En(ue,Z){var we;const Et=de,un=Gn(ue,Z);return un&&mc(ue)&&((we=X==null?void 0:X.data)!=null&&we.facts)&&(Nr(un,ue),P_(un,4),Da(un,Bv(ue.name)),oe.set(Pl(ue),X)),de=Et,un}function Gn(ue,Z){const we=!y;mp(ue,Fe)&&(ue=bp(e,ue));const Et=D_(ue)?t.getGeneratedPrivateNameForNode(ue.name):Za(ue.name)&&!O_(ue.name.expression)?t.updateComputedPropertyName(ue.name,t.getGeneratedNameForNode(ue.name)):ue.name;if(mc(ue)&&(de=ue),qi(Et)&&vi(ue)){const vr=da(Et);if(vr)return vr.kind==="f"?vr.isStatic?Dje(t,vr.variableName,nt(ue.initializer,Ee,yt)):Nje(t,Z,nt(ue.initializer,Ee,yt),vr.brandCheckIdentifier):void 0;N.fail("Undeclared private name for property declaration.")}if((qi(Et)||mc(ue))&&!ue.initializer)return;const un=Pl(ue);if(Qr(un,64))return;let Sr=nt(ue.initializer,Ee,yt);if(pp(un,un.parent)&&Ve(Et)){const vr=t.cloneNode(Et);Sr?(Gd(Sr)&&Yk(Sr.expression)&&dP(Sr.expression.left,"___runInitializers")&&iI(Sr.expression.right)&&hp(Sr.expression.right.expression)&&(Sr=Sr.expression.left),Sr=t.inlineExpressions([Sr,vr])):Sr=vr,pr(Et,3168),Da(vr,un.name),pr(vr,3072)}else Sr??(Sr=t.createVoidZero());if(we||qi(Et)){const vr=HS(t,Z,Et,Et);return P_(vr,1024),t.createAssignment(vr,Sr)}else{const vr=Za(Et)?Et.expression:Ve(Et)?t.createStringLiteral(Vi(Et.escapedText)):Et,jr=t.createPropertyDescriptor({value:Sr,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(Z,vr,jr)}}function qn(){ne&1||(ne|=1,e.enableSubstitution(80),he=[])}function Pi(){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 xi(ue,Z,we){if(!C||!bt(Z))return;const{weakSetName:Et}=Jr().data;N.assert(Et,"weakSetName should be set in private identifier environment"),ue.push(t.createExpressionStatement(Cje(t,we,Et)))}function ir(ue){return Fr(ue)?t.updatePropertyAccessExpression(ue,t.createVoidZero(),ue.name):t.updateElementAccessExpression(ue,t.createVoidZero(),nt(ue.argumentExpression,Ee,yt))}function Vr(ue,Z){if(Za(ue)){const we=lF(ue),Et=nt(ue.expression,Ee,yt),un=bm(Et),Sr=O_(un);if(!(!!we||Pc(un)&&al(un.left))&&!Sr&&Z){const jr=t.getGeneratedNameForNode(ue);return p.getNodeCheckFlags(ue)&32768?u(jr):i(jr),t.createAssignment(jr,Et)}return Sr||Ve(un)?void 0:Et}}function vo(){X={previous:X,data:void 0}}function Mi(){X=X==null?void 0:X.previous}function Ri(){return N.assert(X),X.data??(X.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function Jr(){return N.assert(X),X.privateEnv??(X.privateEnv=tle({className:void 0,weakSetName:void 0}))}function xo(){return ye??(ye=[])}function Nn(ue,Z,we,Et,un,Sr,vr){Wd(ue)?Vs(ue,Z,we,Et,un,Sr):qo(ue)?Fs(ue,Z,we,Et,un,Sr):Hl(ue)?Ql(ue,Z,we,Et,un,Sr):tf(ue)?ko(ue,Z,we,Et,un,Sr,vr):vp(ue)&&cs(ue,Z,we,Et,un,Sr,vr)}function Fs(ue,Z,we,Et,un,Sr,vr){if(un){const jr=N.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"),Di=ho(Z);KS(Et,Z,{kind:"f",isStatic:!0,brandCheckIdentifier:jr,variableName:Di,isValid:Sr})}else{const jr=ho(Z);KS(Et,Z,{kind:"f",isStatic:!1,brandCheckIdentifier:jr,isValid:Sr}),xo().push(t.createAssignment(jr,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function Ql(ue,Z,we,Et,un,Sr,vr){const jr=ho(Z),Di=un?N.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):N.checkDefined(Et.data.weakSetName,"weakSetName should be set in private identifier environment");KS(Et,Z,{kind:"m",methodName:jr,brandCheckIdentifier:Di,isStatic:un,isValid:Sr})}function ko(ue,Z,we,Et,un,Sr,vr){const jr=ho(Z,"_get"),Di=un?N.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):N.checkDefined(Et.data.weakSetName,"weakSetName should be set in private identifier environment");(vr==null?void 0:vr.kind)==="a"&&vr.isStatic===un&&!vr.getterName?vr.getterName=jr:KS(Et,Z,{kind:"a",getterName:jr,setterName:void 0,brandCheckIdentifier:Di,isStatic:un,isValid:Sr})}function cs(ue,Z,we,Et,un,Sr,vr){const jr=ho(Z,"_set"),Di=un?N.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):N.checkDefined(Et.data.weakSetName,"weakSetName should be set in private identifier environment");(vr==null?void 0:vr.kind)==="a"&&vr.isStatic===un&&!vr.setterName?vr.setterName=jr:KS(Et,Z,{kind:"a",getterName:void 0,setterName:jr,brandCheckIdentifier:Di,isStatic:un,isValid:Sr})}function Vs(ue,Z,we,Et,un,Sr,vr){const jr=ho(Z,"_get"),Di=ho(Z,"_set"),Mr=un?N.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):N.checkDefined(Et.data.weakSetName,"weakSetName should be set in private identifier environment");KS(Et,Z,{kind:"a",getterName:jr,setterName:Di,brandCheckIdentifier:Mr,isStatic:un,isValid:Sr})}function gl(ue,Z,we){const Et=Ri(),un=Jr(),Sr=Fq(un,Z),vr=mc(ue),jr=!Pje(Z)&&Sr===void 0;we(ue,Z,Et,un,vr,jr,Sr)}function cu(ue,Z,we){const{className:Et}=Jr().data,un=Et?{prefix:"_",node:Et,suffix:"_"}:"_",Sr=typeof ue=="object"?t.getGeneratedNameForNode(ue,24,un,we):typeof ue=="string"?t.createUniqueName(ue,16,un,we):t.createTempVariable(void 0,!0,un,we);return p.getNodeCheckFlags(Z)&32768?u(Sr):i(Sr),Sr}function ho(ue,Z){const we=yC(ue);return cu((we==null?void 0:we.substring(1))??ue,ue,Z)}function da(ue){const Z=nle(X,ue);return(Z==null?void 0:Z.kind)==="untransformed"?void 0:Z}function uu(ue){const Z=t.getGeneratedNameForNode(ue),we=da(ue.name);if(!we)return xn(ue,Ee,e);let Et=ue.expression;return(PL(ue)||zd(ue)||!c1(ue.expression))&&(Et=t.createTempVariable(i,!0),xo().push(t.createBinaryExpression(Et,64,nt(ue.expression,Ee,yt)))),t.createAssignmentTargetWrapper(Z,Rt(we,Et,Z,64))}function Ts(ue){if(La(ue)||fd(ue))return nn(ue);if(Kx(ue))return uu(ue);if(K&&de&&zd(ue)&&VP(de)&&(X!=null&&X.data)){const{classConstructor:Z,superClassReference:we,facts:Et}=X.data;if(Et&1)return ir(ue);if(Z&&we){const un=$s(ue)?nt(ue.argumentExpression,Ee,yt):Ve(ue.name)?t.createStringLiteralFromNode(ue.name):void 0;if(un){const Sr=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(Sr,t.createReflectSetCall(we,un,Sr,Z))}}}return xn(ue,Ee,e)}function Ca(ue){if(mp(ue,Fe)&&(ue=bp(e,ue)),Pc(ue,!0)){const Z=Ts(ue.left),we=nt(ue.right,Ee,yt);return t.updateBinaryExpression(ue,Z,ue.operatorToken,we)}return Ts(ue)}function ml(ue){if(Zd(ue.expression)){const Z=Ts(ue.expression);return t.updateSpreadElement(ue,Z)}return xn(ue,Ee,e)}function Lf(ue){if(fL(ue)){if($m(ue))return ml(ue);if(!Gc(ue))return Ca(ue)}return xn(ue,Ee,e)}function lc(ue){const Z=nt(ue.name,Ee,oc);if(Pc(ue.initializer,!0)){const we=Ca(ue.initializer);return t.updatePropertyAssignment(ue,Z,we)}if(Zd(ue.initializer)){const we=Ts(ue.initializer);return t.updatePropertyAssignment(ue,Z,we)}return xn(ue,Ee,e)}function Nl(ue){return mp(ue,Fe)&&(ue=bp(e,ue)),xn(ue,Ee,e)}function cl(ue){if(Zd(ue.expression)){const Z=Ts(ue.expression);return t.updateSpreadAssignment(ue,Z)}return xn(ue,Ee,e)}function wo(ue){return N.assertNode(ue,pL),jv(ue)?cl(ue):np(ue)?Nl(ue):hc(ue)?lc(ue):xn(ue,Ee,e)}function nn(ue){return fd(ue)?t.updateArrayLiteralExpression(ue,jn(ue.elements,Lf,yt)):t.updateObjectLiteralExpression(ue,jn(ue.properties,wo,Mg))}function js(ue,Z,we){const Et=Pl(Z),un=oe.get(Et);if(un){const Sr=X,vr=ve;X=un,ve=ie,ie=!Rl(Et)||!(Em(Et)&32),se(ue,Z,we),ie=ve,ve=vr,X=Sr;return}switch(Z.kind){case 218:if(Gs(Et)||Ga(Z)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{const Sr=X,vr=ve;X=void 0,ve=ie,ie=!1,se(ue,Z,we),ie=ve,ve=vr,X=Sr;return}case 167:{const Sr=X,vr=ie;X=X==null?void 0:X.previous,ie=ve,se(ue,Z,we),ie=vr,X=Sr;return}}se(ue,Z,we)}function tu(ue,Z){return Z=V(ue,Z),ue===1?du(Z):Z}function du(ue){switch(ue.kind){case 80:return Ms(ue);case 110:return Tp(ue)}return ue}function Tp(ue){if(ne&2&&(X!=null&&X.data)&&!pe.has(ue)){const{facts:Z,classConstructor:we,classThis:Et}=X.data,un=ie?Et??we:we;if(un)return dt(Nr(t.cloneNode(un),ue),ue);if(Z&1&&T)return t.createParenthesizedExpression(t.createVoidZero())}return ue}function Ms(ue){return xc(ue)||ue}function xc(ue){if(ne&1&&p.getNodeCheckFlags(ue)&536870912){const Z=p.getReferencedValueDeclaration(ue);if(Z){const we=he[Z.id];if(we){const Et=t.cloneNode(we);return Da(Et,ue),ac(Et,ue),Et}}}}}function Dje(e,t,r){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",r||e.createVoidZero())]))}function Nje(e,t,r,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,r||e.createVoidZero()])}function Cje(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}function Pje(e){return!dS(e)&&e.escapedText==="#constructor"}function Mje(e){return qi(e.left)&&e.operatorToken.kind===103}function Lje(e){return qo(e)&&mc(e)}function VP(e){return Rl(e)||Lje(e)}var kje=I({"src/compiler/transformers/classFields.ts"(){ra()}});function fle(e){const{factory:t,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),o=e.getCompilerOptions(),s=os(o),l=dd(o,"strictNullChecks");let u,p;return{serializeTypeNode:(ye,Y)=>h(ye,M,Y),serializeTypeOfNode:(ye,Y)=>h(ye,y,Y),serializeParameterTypesOfNode:(ye,Y,X)=>h(ye,T,Y,X),serializeReturnTypeOfNode:(ye,Y)=>h(ye,R,Y)};function h(ye,Y,X,oe){const pe=u,Ce=p;u=ye.currentLexicalScope,p=ye.currentNameScope;const de=oe===void 0?Y(X):Y(X,oe);return u=pe,p=Ce,de}function m(ye){const Y=i.getAllAccessorDeclarations(ye);return Y.setAccessor&&Die(Y.setAccessor)||Y.getAccessor&&em(Y.getAccessor)}function y(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,Y){const X=di(ye)?ng(ye):ea(ye)&&Kf(ye.body)?ye:void 0,oe=[];if(X){const pe=A(X,Y),Ce=pe.length;for(let de=0;de<Ce;de++){const ie=pe[de];de===0&&Ve(ie.name)&&ie.name.escapedText==="this"||(ie.dotDotDotToken?oe.push(M(pj(ie.type))):oe.push(y(ie)))}}return t.createArrayLiteralExpression(oe)}function A(ye,Y){if(Y&&ye.kind===177){const{setAccessor:X}=NS(Y.members,ye);if(X)return X.parameters}return ye.parameters}function R(ye){return ea(ye)&&ye.type?M(ye.type):NC(ye)?t.createIdentifier("Promise"):t.createVoidZero()}function M(ye){if(ye===void 0)return t.createIdentifier("Object");switch(ye=YL(ye),ye.kind){case 116:case 157:case 146:return t.createVoidZero();case 184:case 185:return t.createIdentifier("Function");case 188:case 189:return t.createIdentifier("Array");case 182:return ye.assertsModifier?t.createVoidZero():t.createIdentifier("Boolean");case 136:return t.createIdentifier("Boolean");case 203:case 154:return t.createIdentifier("String");case 151:return t.createIdentifier("Object");case 201:return C(ye.literal);case 150:return t.createIdentifier("Number");case 163:return he("BigInt",7);case 155:return he("Symbol",2);case 183:return K(ye);case 193:return O(ye.types,!0);case 192:return O(ye.types,!1);case 194:return O([ye.trueType,ye.falseType],!1);case 198:if(ye.operator===148)return M(ye.type);break;case 186:case 199:case 200:case 187:case 133:case 159:case 197:case 205:break;case 319:case 320:case 324:case 325:case 326:break;case 321:case 322:case 323:return M(ye.type);default:return N.failBadSyntaxKind(ye)}return t.createIdentifier("Object")}function C(ye){switch(ye.kind){case 11:case 15:return t.createIdentifier("String");case 224:{const Y=ye.operand;switch(Y.kind){case 9:case 10:return C(Y);default:return N.failBadSyntaxKind(Y)}}case 9:return t.createIdentifier("Number");case 10:return he("BigInt",7);case 112:case 97:return t.createIdentifier("Boolean");case 106:return t.createVoidZero();default:return N.failBadSyntaxKind(ye)}}function O(ye,Y){let X;for(let oe of ye){if(oe=YL(oe),oe.kind===146){if(Y)return t.createVoidZero();continue}if(oe.kind===159){if(!Y)return t.createIdentifier("Object");continue}if(oe.kind===133)return t.createIdentifier("Object");if(!l&&(Jy(oe)&&oe.literal.kind===106||oe.kind===157))continue;const pe=M(oe);if(Ve(pe)&&pe.escapedText==="Object")return pe;if(X){if(!U(X,pe))return t.createIdentifier("Object")}else X=pe}return X??t.createVoidZero()}function U(ye,Y){return al(ye)?al(Y):Ve(ye)?Ve(Y)&&ye.escapedText===Y.escapedText:Fr(ye)?Fr(Y)&&U(ye.expression,Y.expression)&&U(ye.name,Y.name):iI(ye)?iI(Y)&&hp(ye.expression)&&ye.expression.text==="0"&&hp(Y.expression)&&Y.expression.text==="0":Na(ye)?Na(Y)&&ye.text===Y.text:VR(ye)?VR(Y)&&U(ye.expression,Y.expression):Gd(ye)?Gd(Y)&&U(ye.expression,Y.expression):jR(ye)?jR(Y)&&U(ye.condition,Y.condition)&&U(ye.whenTrue,Y.whenTrue)&&U(ye.whenFalse,Y.whenFalse):mr(ye)?mr(Y)&&ye.operatorToken.kind===Y.operatorToken.kind&&U(ye.left,Y.left)&&U(ye.right,Y.right):!1}function K(ye){const Y=i.getTypeReferenceSerializationKind(ye.typeName,p??u);switch(Y){case 0:if(Vn(ye,pe=>pe.parent&&rI(pe.parent)&&(pe.parent.trueType===pe||pe.parent.falseType===pe)))return t.createIdentifier("Object");const X=V(ye.typeName),oe=t.createTempVariable(r);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(oe,X),"function"),void 0,oe,void 0,t.createIdentifier("Object"));case 1:return se(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 N.assertNever(Y)}}function Q(ye,Y){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(ye),t.createStringLiteral("undefined")),Y)}function V(ye){if(ye.kind===80){const oe=se(ye);return Q(oe,oe)}if(ye.left.kind===80)return Q(se(ye.left),se(ye));const Y=V(ye.left),X=t.createTempVariable(r);return t.createLogicalAnd(t.createLogicalAnd(Y.left,t.createStrictInequality(t.createAssignment(X,Y.right),t.createVoidZero())),t.createPropertyAccessExpression(X,ye.right))}function se(ye){switch(ye.kind){case 80:const Y=Ha(dt(Ah.cloneNode(ye),ye),ye.parent);return Y.original=void 0,Ha(Y,No(u)),Y;case 166:return G(ye)}}function G(ye){return t.createPropertyAccessExpression(se(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,Y){return s<Y?ne(ye):t.createIdentifier(ye)}}var wje=I({"src/compiler/transformers/typeSerializer.ts"(){ra()}});function mle(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i}=e,o=e.getEmitResolver(),s=e.getCompilerOptions(),l=os(s),u=e.onSubstituteNode;e.onSubstituteNode=je;let p;return Dm(e,h);function h($e){const It=xn($e,y,e);return zg(It,e.readEmitHelpers()),It}function m($e){return Eu($e)?void 0:$e}function y($e){if(!($e.transformFlags&33554432))return $e;switch($e.kind){case 170:return;case 263:return T($e);case 231:return K($e);case 176:return Q($e);case 174:return se($e);case 178:return ne($e);case 177:return G($e);case 172:return he($e);case 169:return ye($e);default:return xn($e,y,e)}}function T($e){if(!(Lv(!0,$e)||SC(!0,$e)))return xn($e,y,e);const It=Lv(!0,$e)?U($e,$e.name):O($e,$e.name);return sh(It)}function A($e){return!!($e.transformFlags&536870912)}function R($e){return bt($e,A)}function M($e){for(const It of $e.members){if(!qS(It))continue;const tn=KF(It,$e,!0);if(bt(tn==null?void 0:tn.decorators,A)||bt(tn==null?void 0:tn.parameters,R))return!0}return!1}function C($e,It){let tn=[];return oe(tn,$e,!1),oe(tn,$e,!0),M($e)&&(It=dt(t.createNodeArray([...It,t.createClassStaticBlockDeclaration(t.createBlock(tn,!0))]),It),tn=void 0),{decorationStatements:tn,members:It}}function O($e,It){const tn=jn($e.modifiers,m,Aa),rn=jn($e.heritageClauses,y,nf);let Mn=jn($e.members,y,Yc),$n=[];({members:Mn,decorationStatements:$n}=C($e,Mn));const gn=t.updateClassDeclaration($e,tn,It,void 0,rn,Mn);return qr([gn],$n)}function U($e,It){const tn=Qr($e,32),rn=Qr($e,2048),Mn=jn($e.modifiers,zt=>ew(zt)||Eu(zt)?void 0:zt,sl),$n=C_($e),gn=We($e),Qt=l<2?t.getInternalName($e,!1,!0):t.getLocalName($e,!1,!0),Yt=jn($e.heritageClauses,y,nf);let vi=jn($e.members,y,Yc),so=[];({members:vi,decorationStatements:so}=C($e,vi));const Wi=l>=9&&!!gn&&bt(vi,zt=>qo(zt)&&Qr(zt,256)||Rl(zt));Wi&&(vi=dt(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(gn,t.createThis()))])),...vi]),vi));const Co=t.createClassExpression(Mn,It&&al(It)?void 0:It,void 0,Yt,vi);Nr(Co,$e),dt(Co,$n);const Ln=gn&&!Wi?t.createAssignment(gn,Co):Co,Ci=t.createVariableDeclaration(Qt,void 0,void 0,Ln);Nr(Ci,$e);const Ar=t.createVariableDeclarationList([Ci],1),sn=t.createVariableStatement(void 0,Ar);Nr(sn,$e),dt(sn,$n),ac(sn,$e);const tt=[sn];if(qr(tt,so),ve(tt,$e),tn)if(rn){const zt=t.createExportDefault(Qt);tt.push(zt)}else{const zt=t.createExternalModuleExport(t.getDeclarationName($e));tt.push(zt)}return tt}function K($e){return t.updateClassExpression($e,jn($e.modifiers,m,Aa),$e.name,void 0,jn($e.heritageClauses,y,nf),jn($e.members,y,Yc))}function Q($e){return t.updateConstructorDeclaration($e,jn($e.modifiers,m,Aa),jn($e.parameters,y,Ao),nt($e.body,y,Ko))}function V($e,It){return $e!==It&&(ac($e,It),Da($e,C_(It))),$e}function se($e){return V(t.updateMethodDeclaration($e,jn($e.modifiers,m,Aa),$e.asteriskToken,N.checkDefined(nt($e.name,y,oc)),void 0,void 0,jn($e.parameters,y,Ao),void 0,nt($e.body,y,Ko)),$e)}function G($e){return V(t.updateGetAccessorDeclaration($e,jn($e.modifiers,m,Aa),N.checkDefined(nt($e.name,y,oc)),jn($e.parameters,y,Ao),void 0,nt($e.body,y,Ko)),$e)}function ne($e){return V(t.updateSetAccessorDeclaration($e,jn($e.modifiers,m,Aa),N.checkDefined(nt($e.name,y,oc)),jn($e.parameters,y,Ao),nt($e.body,y,Ko)),$e)}function he($e){if(!($e.flags&33554432||Qr($e,128)))return V(t.updatePropertyDeclaration($e,jn($e.modifiers,m,Aa),N.checkDefined(nt($e.name,y,oc)),void 0,void 0,nt($e.initializer,y,yt)),$e)}function ye($e){const It=t.updateParameterDeclaration($e,Vae(t,$e.modifiers),$e.dotDotDotToken,N.checkDefined(nt($e.name,y,pS)),void 0,void 0,nt($e.initializer,y,yt));return It!==$e&&(ac(It,$e),dt(It,C_($e)),Da(It,C_($e)),pr(It.name,64)),It}function Y($e){return dP($e.expression,"___metadata")}function X($e){if(!$e)return;const{false:It,true:tn}=T6($e.decorators,Y),rn=[];return qr(rn,Wt(It,Ue)),qr(rn,Do($e.parameters,Ee)),qr(rn,Wt(tn,Ue)),rn}function oe($e,It,tn){qr($e,Wt(de(It,tn),rn=>t.createExpressionStatement(rn)))}function pe($e,It,tn){return LL(!0,$e,tn)&&It===aa($e)}function Ce($e,It){return mn($e.members,tn=>pe(tn,It,$e))}function de($e,It){const tn=Ce($e,It);let rn;for(const Mn of tn)rn=Rn(rn,ie($e,Mn));return rn}function ie($e,It){const tn=KF(It,$e,!0),rn=X(tn);if(!rn)return;const Mn=Se($e,It),$n=De(It,!Qr(It,128)),gn=l>0?qo(It)&&!D_(It)?t.createVoidZero():t.createNull():void 0,Qt=r().createDecorateHelper(rn,Mn,$n,gn);return pr(Qt,3072),Da(Qt,C_(It)),Qt}function ve($e,It){const tn=Le(It);tn&&$e.push(Nr(t.createExpressionStatement(tn),It))}function Le($e){const It=Wq($e),tn=X(It);if(!tn)return;const rn=p&&p[Wu($e)],Mn=l<2?t.getInternalName($e,!1,!0):t.getDeclarationName($e,!1,!0),$n=r().createDecorateHelper(tn,Mn),gn=t.createAssignment(Mn,rn?t.createAssignment(rn,$n):$n);return pr(gn,3072),Da(gn,C_($e)),gn}function Ue($e){return N.checkDefined(nt($e.expression,y,yt))}function Ee($e,It){let tn;if($e){tn=[];for(const rn of $e){const Mn=r().createParamHelper(Ue(rn),It);dt(Mn,rn.expression),pr(Mn,3072),tn.push(Mn)}}return tn}function De($e,It){const tn=$e.name;return qi(tn)?t.createIdentifier(""):Za(tn)?It&&!O_(tn.expression)?t.getGeneratedNameForNode(tn):tn.expression:Ve(tn)?t.createStringLiteral(Er(tn)):t.cloneNode(tn)}function Me(){p||(e.enableSubstitution(80),p=[])}function We($e){if(o.getNodeCheckFlags($e)&262144){Me();const It=t.createUniqueName($e.name&&!al($e.name)?Er($e.name):"default");return p[Wu($e)]=It,i(It),It}}function At($e){return t.createPropertyAccessExpression(t.getDeclarationName($e),"prototype")}function Se($e,It){return aa(It)?t.getDeclarationName($e):At($e)}function je($e,It){return It=u($e,It),$e===1?ot(It):It}function ot($e){switch($e.kind){case 80:return Bt($e)}return $e}function Bt($e){return vt($e)??$e}function vt($e){if(p&&o.getNodeCheckFlags($e)&536870912){const It=o.getReferencedValueDeclaration($e);if(It){const tn=p[It.id];if(tn){const rn=t.cloneNode(tn);return Da(rn,$e),ac(rn,$e),rn}}}}}var Oje=I({"src/compiler/transformers/legacyDecorators.ts"(){ra()}});function _le(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=os(e.getCompilerOptions());let u,p,h,m,y,T;return Dm(e,A);function A(L){u=void 0,T=!1;const me=xn(L,ne,e);return zg(me,e.readEmitHelpers()),T&&(UA(me,32),T=!1),me}function R(){switch(p=void 0,h=void 0,m=void 0,u==null?void 0:u.kind){case"class":p=u.classInfo;break;case"class-element":p=u.next.classInfo,h=u.classThis,m=u.classSuper;break;case"name":const L=u.next.next.next;(L==null?void 0:L.kind)==="class-element"&&(p=L.next.classInfo,h=L.classThis,m=L.classSuper);break}}function M(L){u={kind:"class",next:u,classInfo:L,savedPendingExpressions:y},y=void 0,R()}function C(){N.assert((u==null?void 0:u.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u==null?void 0:u.kind}' instead.`),y=u.savedPendingExpressions,u=u.next,R()}function O(L){var me,J;N.assert((u==null?void 0:u.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u==null?void 0:u.kind}' instead.`),u={kind:"class-element",next:u},(Rl(L)||qo(L)&&mc(L))&&(u.classThis=(me=u.next.classInfo)==null?void 0:me.classThis,u.classSuper=(J=u.next.classInfo)==null?void 0:J.classSuper),R()}function U(){var L;N.assert((u==null?void 0:u.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u==null?void 0:u.kind}' instead.`),N.assert(((L=u.next)==null?void 0:L.kind)==="class","Incorrect value for top.next.kind.",()=>{var me;return`Expected top.next.kind to be 'class' but got '${(me=u.next)==null?void 0:me.kind}' instead.`}),u=u.next,R()}function K(){N.assert((u==null?void 0:u.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u==null?void 0:u.kind}' instead.`),u={kind:"name",next:u},R()}function Q(){N.assert((u==null?void 0:u.kind)==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${u==null?void 0:u.kind}' instead.`),u=u.next,R()}function V(){(u==null?void 0:u.kind)==="other"?(N.assert(!y),u.depth++):(u={kind:"other",next:u,depth:0,savedPendingExpressions:y},y=void 0,R())}function se(){N.assert((u==null?void 0:u.kind)==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${u==null?void 0:u.kind}' instead.`),u.depth>0?(N.assert(!y),u.depth--):(y=u.savedPendingExpressions,u=u.next,R())}function G(L){return!!(L.transformFlags&33554432)||!!h&&!!(L.transformFlags&16384)||!!h&&!!m&&!!(L.transformFlags&134217728)}function ne(L){if(!G(L))return L;switch(L.kind){case 170:return N.fail("Use `modifierVisitor` instead.");case 263:return Le(L);case 231:return Ue(L);case 176:case 172:case 175:return N.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return $n(L);case 226:return so(L,!1);case 303:return sn(L);case 260:return tt(L);case 208:return zt(L);case 277:return He(L);case 110:return $e(L);case 248:return Yt(L);case 244:return vi(L);case 361:return Co(L,!1);case 217:return mt(L,!1);case 360:return ft(L,!1);case 213:return It(L);case 215:return tn(L);case 224:case 225:return Wi(L,!1);case 211:return rn(L);case 212:return Mn(L);case 167:return Ar(L);case 174:case 178:case 177:case 218:case 262:{V();const me=xn(L,he,e);return se(),me}default:return xn(L,he,e)}}function he(L){switch(L.kind){case 170:return;default:return ne(L)}}function ye(L){switch(L.kind){case 170:return;default:return L}}function Y(L){switch(L.kind){case 176:return Me(L);case 174:return Se(L);case 177:return je(L);case 178:return ot(L);case 172:return vt(L);case 175:return Bt(L);default:return ne(L)}}function X(L){switch(L.kind){case 224:case 225:return Wi(L,!0);case 226:return so(L,!0);case 361:return Co(L,!0);case 217:return mt(L,!0);default:return ne(L)}}function oe(L){let me=L.name&&Ve(L.name)&&!al(L.name)?Er(L.name):L.name&&qi(L.name)&&!al(L.name)?Er(L.name).slice(1):L.name&&Na(L.name)&&Zp(L.name.text,99)?L.name.text:di(L)?"class":"member";return My(L)&&(me=`get_${me}`),Mv(L)&&(me=`set_${me}`),L.name&&qi(L.name)&&(me=`private_${me}`),aa(L)&&(me=`static_${me}`),"_"+me}function pe(L,me){return t.createUniqueName(`${oe(L)}_${me}`,24)}function Ce(L,me){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(L,void 0,void 0,me)],1))}function de(L){const me=t.createUniqueName("_metadata",48);let J,fe,Be=!1,ke=!1,Tt=!1,kt,en,En;if(lR(!1,L)){const Gn=bt(L.members,qn=>(sd(qn)||Wd(qn))&&mc(qn));kt=t.createUniqueName("_classThis",Gn?24:48)}for(const Gn of L.members){if(AA(Gn)&&LL(!1,Gn,L))if(mc(Gn)){if(!fe){fe=t.createUniqueName("_staticExtraInitializers",48);const qn=r().createRunInitializersHelper(kt??t.createThis(),fe);Da(qn,L.name??Og(L)),en??(en=[]),en.push(qn)}}else{if(!J){J=t.createUniqueName("_instanceExtraInitializers",48);const qn=r().createRunInitializersHelper(t.createThis(),J);Da(qn,L.name??Og(L)),En??(En=[]),En.push(qn)}J??(J=t.createUniqueName("_instanceExtraInitializers",48))}if(Rl(Gn)?yI(Gn)||(Be=!0):qo(Gn)&&(mc(Gn)?Be||(Be=!!Gn.initializer||Tf(Gn)):ke||(ke=!ij(Gn))),(sd(Gn)||Wd(Gn))&&mc(Gn)&&(Tt=!0),fe&&J&&Be&&ke&&Tt)break}return{class:L,classThis:kt,metadataReference:me,instanceMethodExtraInitializersName:J,staticMethodExtraInitializersName:fe,hasStaticInitializers:Be,hasNonAmbientInstanceFields:ke,hasStaticPrivateClassElements:Tt,pendingStaticInitializers:en,pendingInstanceInitializers:En}}function ie(L){i(),!Vq(L)&&Lv(!1,L)&&(L=YF(e,L,t.createStringLiteral("")));const me=t.getLocalName(L,!1,!1,!0),J=de(L),fe=[];let Be,ke,Tt,kt,en=!1;const En=pt(Wq(L));En&&(J.classDecoratorsName=t.createUniqueName("_classDecorators",48),J.classDescriptorName=t.createUniqueName("_classDescriptor",48),J.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),N.assertIsDefined(J.classThis),fe.push(Ce(J.classDecoratorsName,t.createArrayLiteralExpression(En)),Ce(J.classDescriptorName),Ce(J.classExtraInitializersName,t.createArrayLiteralExpression()),Ce(J.classThis)),J.hasStaticPrivateClassElements&&(en=!0,T=!0));const Gn=ZL(L.heritageClauses,96),qn=Gn&&Kc(Gn.types),Pi=qn&&nt(qn.expression,ne,yt);if(Pi){J.classSuper=t.createUniqueName("_classSuper",48);const Jr=$l(Pi),xo=Qc(Jr)&&!Jr.name||Os(Jr)&&!Jr.name||Gs(Jr)?t.createComma(t.createNumericLiteral(0),Pi):Pi;fe.push(Ce(J.classSuper,xo));const Nn=t.updateExpressionWithTypeArguments(qn,J.classSuper,void 0),Fs=t.updateHeritageClause(Gn,[Nn]);kt=t.createNodeArray([Fs])}const xi=J.classThis??t.createThis();M(J),Be=Rn(Be,q(J.metadataReference,J.classSuper));let ir=L.members;if(ir=jn(ir,Jr=>Ml(Jr)?Jr:Y(Jr),Yc),ir=jn(ir,Jr=>Ml(Jr)?Y(Jr):Jr,Yc),y){let Jr;for(let xo of y){xo=nt(xo,function Fs(Ql){if(!(Ql.transformFlags&16384))return Ql;switch(Ql.kind){case 110:return Jr||(Jr=t.createUniqueName("_outerThis",16),fe.unshift(Ce(Jr,t.createThis()))),Jr;default:return xn(Ql,Fs,e)}},yt);const Nn=t.createExpressionStatement(xo);Be=Rn(Be,Nn)}y=void 0}if(C(),bt(J.pendingInstanceInitializers)&&!ng(L)){const Jr=Ee(L,J);if(Jr){const xo=I_(L),Nn=!!(xo&&$l(xo.expression).kind!==106),Fs=[];if(Nn){const ko=t.createSpreadElement(t.createIdentifier("arguments")),cs=t.createCallExpression(t.createSuper(),void 0,[ko]);Fs.push(t.createExpressionStatement(cs))}qr(Fs,Jr);const Ql=t.createBlock(Fs,!0);Tt=t.createConstructorDeclaration(void 0,[],Ql)}}if(J.staticMethodExtraInitializersName&&fe.push(Ce(J.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),J.instanceMethodExtraInitializersName&&fe.push(Ce(J.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),J.memberInfos&&zc(J.memberInfos,(Jr,xo)=>{aa(xo)&&(fe.push(Ce(Jr.memberDecoratorsName)),Jr.memberInitializersName&&fe.push(Ce(Jr.memberInitializersName,t.createArrayLiteralExpression())),Jr.memberExtraInitializersName&&fe.push(Ce(Jr.memberExtraInitializersName,t.createArrayLiteralExpression())),Jr.memberDescriptorName&&fe.push(Ce(Jr.memberDescriptorName)))}),J.memberInfos&&zc(J.memberInfos,(Jr,xo)=>{aa(xo)||(fe.push(Ce(Jr.memberDecoratorsName)),Jr.memberInitializersName&&fe.push(Ce(Jr.memberInitializersName,t.createArrayLiteralExpression())),Jr.memberExtraInitializersName&&fe.push(Ce(Jr.memberExtraInitializersName,t.createArrayLiteralExpression())),Jr.memberDescriptorName&&fe.push(Ce(Jr.memberDescriptorName)))}),Be=qr(Be,J.staticNonFieldDecorationStatements),Be=qr(Be,J.nonStaticNonFieldDecorationStatements),Be=qr(Be,J.staticFieldDecorationStatements),Be=qr(Be,J.nonStaticFieldDecorationStatements),J.classDescriptorName&&J.classDecoratorsName&&J.classExtraInitializersName&&J.classThis){Be??(Be=[]);const Jr=t.createPropertyAssignment("value",xi),xo=t.createObjectLiteralExpression([Jr]),Nn=t.createAssignment(J.classDescriptorName,xo),Fs=t.createPropertyAccessExpression(xi,"name"),Ql=r().createESDecorateHelper(t.createNull(),Nn,J.classDecoratorsName,{kind:"class",name:Fs,metadata:J.metadataReference},t.createNull(),J.classExtraInitializersName),ko=t.createExpressionStatement(Ql);Da(ko,Og(L)),Be.push(ko);const cs=t.createPropertyAccessExpression(J.classDescriptorName,"value"),Vs=t.createAssignment(J.classThis,cs),gl=t.createAssignment(me,Vs);Be.push(t.createExpressionStatement(gl))}if(Be.push(Oe(xi,J.metadataReference)),bt(J.pendingStaticInitializers)){for(const Jr of J.pendingStaticInitializers){const xo=t.createExpressionStatement(Jr);Da(xo,Bv(Jr)),ke=Rn(ke,xo)}J.pendingStaticInitializers=void 0}if(J.classExtraInitializersName){const Jr=r().createRunInitializersHelper(xi,J.classExtraInitializersName),xo=t.createExpressionStatement(Jr);Da(xo,L.name??Og(L)),ke=Rn(ke,xo)}Be&&ke&&!J.hasStaticInitializers&&(qr(Be,ke),ke=void 0);const Vr=Be&&t.createClassStaticBlockDeclaration(t.createBlock(Be,!0));Vr&&en&&Mk(Vr,32);const vo=ke&&t.createClassStaticBlockDeclaration(t.createBlock(ke,!0));if(Vr||Tt||vo){const Jr=[],xo=ir.findIndex(yI);Vr?(qr(Jr,ir,0,xo+1),Jr.push(Vr),qr(Jr,ir,xo+1)):qr(Jr,ir),Tt&&Jr.push(Tt),vo&&Jr.push(vo),ir=dt(t.createNodeArray(Jr),ir)}const Mi=o();let Ri;if(En){Ri=t.createClassExpression(void 0,void 0,void 0,kt,ir),J.classThis&&(Ri=sle(t,Ri,J.classThis));const Jr=t.createVariableDeclaration(me,void 0,void 0,Ri),xo=t.createVariableDeclarationList([Jr]),Nn=J.classThis?t.createAssignment(me,J.classThis):me;fe.push(t.createVariableStatement(void 0,xo),t.createReturnStatement(Nn))}else Ri=t.createClassExpression(void 0,L.name,void 0,kt,ir),fe.push(t.createReturnStatement(Ri));if(en){UA(Ri,32);for(const Jr of Ri.members)(sd(Jr)||Wd(Jr))&&mc(Jr)&&UA(Jr,32)}return Nr(Ri,L),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(fe,Mi))}function ve(L){return Lv(!1,L)||SC(!1,L)}function Le(L){if(ve(L)){const me=[],J=Pl(L,di)??L,fe=J.name?t.createStringLiteralFromNode(J.name):t.createStringLiteral("default"),Be=Qr(L,32),ke=Qr(L,2048);if(L.name||(L=YF(e,L,fe)),Be&&ke){const Tt=ie(L);if(L.name){const kt=t.createVariableDeclaration(t.getLocalName(L),void 0,void 0,Tt);Nr(kt,L);const en=t.createVariableDeclarationList([kt],1),En=t.createVariableStatement(void 0,en);me.push(En);const Gn=t.createExportDefault(t.getDeclarationName(L));Nr(Gn,L),ac(Gn,M_(L)),Da(Gn,Og(L)),me.push(Gn)}else{const kt=t.createExportDefault(Tt);Nr(kt,L),ac(kt,M_(L)),Da(kt,Og(L)),me.push(kt)}}else{N.assertIsDefined(L.name,"A class declaration that is not a default export must have a name.");const Tt=ie(L),kt=Be?xi=>$A(xi)?void 0:ye(xi):ye,en=jn(L.modifiers,kt,Aa),En=t.getLocalName(L,!1,!0),Gn=t.createVariableDeclaration(En,void 0,void 0,Tt);Nr(Gn,L);const qn=t.createVariableDeclarationList([Gn],1),Pi=t.createVariableStatement(en,qn);if(Nr(Pi,L),ac(Pi,M_(L)),me.push(Pi),Be){const xi=t.createExternalModuleExport(En);Nr(xi,L),me.push(xi)}}return sh(me)}else{const me=jn(L.modifiers,ye,Aa),J=jn(L.heritageClauses,ne,nf);M(void 0);const fe=jn(L.members,Y,Yc);return C(),t.updateClassDeclaration(L,me,L.name,void 0,J,fe)}}function Ue(L){if(ve(L)){const me=ie(L);return Nr(me,L),me}else{const me=jn(L.modifiers,ye,Aa),J=jn(L.heritageClauses,ne,nf);M(void 0);const fe=jn(L.members,Y,Yc);return C(),t.updateClassExpression(L,me,L.name,void 0,J,fe)}}function Ee(L,me){if(bt(me.pendingInstanceInitializers)){const J=[];return J.push(t.createExpressionStatement(t.inlineExpressions(me.pendingInstanceInitializers))),me.pendingInstanceInitializers=void 0,J}}function De(L,me,J,fe,Be,ke){const Tt=fe[Be],kt=me[Tt];if(qr(L,jn(me,ne,Hi,J,Tt-J)),BS(kt)){const en=[];De(en,kt.tryBlock.statements,0,fe,Be+1,ke);const En=t.createNodeArray(en);dt(En,kt.tryBlock.statements),L.push(t.updateTryStatement(kt,t.updateBlock(kt.tryBlock,en),nt(kt.catchClause,ne,r1),nt(kt.finallyBlock,ne,Ko)))}else qr(L,jn(me,ne,Hi,Tt,1)),qr(L,ke);qr(L,jn(me,ne,Hi,Tt+1))}function Me(L){O(L);const me=jn(L.modifiers,ye,Aa),J=jn(L.parameters,ne,Ao);let fe;if(L.body&&p){const Be=Ee(p.class,p);if(Be){const ke=[],Tt=t.copyPrologue(L.body.statements,ke,!1,ne),kt=qF(L.body.statements,Tt);kt.length>0?De(ke,L.body.statements,Tt,kt,0,Be):(qr(ke,Be),qr(ke,jn(L.body.statements,ne,Hi))),fe=t.createBlock(ke,!0),Nr(fe,L.body),dt(fe,L.body)}}return fe??(fe=nt(L.body,ne,Ko)),U(),t.updateConstructorDeclaration(L,me,J,fe)}function We(L,me){return L!==me&&(ac(L,me),Da(L,Og(me))),L}function At(L,me,J){let fe,Be,ke,Tt,kt,en;if(!me){const qn=jn(L.modifiers,ye,Aa);return K(),Be=Ci(L.name),Q(),{modifiers:qn,referencedName:fe,name:Be,initializersName:ke,descriptorName:en,thisArg:kt}}const En=pt(KF(L,me.class,!1)),Gn=jn(L.modifiers,ye,Aa);if(En){const qn=pe(L,"decorators"),Pi=t.createArrayLiteralExpression(En),xi=t.createAssignment(qn,Pi),ir={memberDecoratorsName:qn};me.memberInfos??(me.memberInfos=new Map),me.memberInfos.set(L,ir),y??(y=[]),y.push(xi);const Vr=AA(L)||Wd(L)?aa(L)?me.staticNonFieldDecorationStatements??(me.staticNonFieldDecorationStatements=[]):me.nonStaticNonFieldDecorationStatements??(me.nonStaticNonFieldDecorationStatements=[]):qo(L)&&!Wd(L)?aa(L)?me.staticFieldDecorationStatements??(me.staticFieldDecorationStatements=[]):me.nonStaticFieldDecorationStatements??(me.nonStaticFieldDecorationStatements=[]):N.fail(),vo=tf(L)?"getter":vp(L)?"setter":Hl(L)?"method":Wd(L)?"accessor":qo(L)?"field":N.fail();let Mi;if(Ve(L.name)||qi(L.name))Mi={computed:!1,name:L.name};else if(x_(L.name))Mi={computed:!0,name:t.createStringLiteralFromNode(L.name)};else{const Jr=L.name.expression;x_(Jr)&&!Ve(Jr)?Mi={computed:!0,name:t.createStringLiteralFromNode(Jr)}:(K(),{referencedName:fe,name:Be}=Ln(L.name),Mi={computed:!0,name:fe},Q())}const Ri={kind:vo,name:Mi,static:aa(L),private:qi(L.name),access:{get:qo(L)||tf(L)||Hl(L),set:qo(L)||vp(L)},metadata:me.metadataReference};if(AA(L)){const Jr=aa(L)?me.staticMethodExtraInitializersName:me.instanceMethodExtraInitializersName;N.assertIsDefined(Jr);let xo;sd(L)&&J&&(xo=J(L,jn(Gn,Ql=>ri(Ql,pP),Aa)),ir.memberDescriptorName=en=pe(L,"descriptor"),xo=t.createAssignment(en,xo));const Nn=r().createESDecorateHelper(t.createThis(),xo??t.createNull(),qn,Ri,t.createNull(),Jr),Fs=t.createExpressionStatement(Nn);Da(Fs,Og(L)),Vr.push(Fs)}else if(qo(L)){ke=ir.memberInitializersName??(ir.memberInitializersName=pe(L,"initializers")),Tt=ir.memberExtraInitializersName??(ir.memberExtraInitializersName=pe(L,"extraInitializers")),aa(L)&&(kt=me.classThis);let Jr;sd(L)&&D_(L)&&J&&(Jr=J(L,void 0),ir.memberDescriptorName=en=pe(L,"descriptor"),Jr=t.createAssignment(en,Jr));const xo=r().createESDecorateHelper(Wd(L)?t.createThis():t.createNull(),Jr??t.createNull(),qn,Ri,ke,Tt),Nn=t.createExpressionStatement(xo);Da(Nn,Og(L)),Vr.push(Nn)}}return Be===void 0&&(K(),Be=Ci(L.name),Q()),!bt(Gn)&&(Hl(L)||qo(L))&&pr(Be,1024),{modifiers:Gn,referencedName:fe,name:Be,initializersName:ke,extraInitializersName:Tt,descriptorName:en,thisArg:kt}}function Se(L){O(L);const{modifiers:me,name:J,descriptorName:fe}=At(L,p,Rt);if(fe)return U(),We(yn(me,J,fe),L);{const Be=jn(L.parameters,ne,Ao),ke=nt(L.body,ne,Ko);return U(),We(t.updateMethodDeclaration(L,me,L.asteriskToken,J,void 0,void 0,Be,void 0,ke),L)}}function je(L){O(L);const{modifiers:me,name:J,descriptorName:fe}=At(L,p,Ye);if(fe)return U(),We(fn(me,J,fe),L);{const Be=jn(L.parameters,ne,Ao),ke=nt(L.body,ne,Ko);return U(),We(t.updateGetAccessorDeclaration(L,me,J,Be,void 0,ke),L)}}function ot(L){O(L);const{modifiers:me,name:J,descriptorName:fe}=At(L,p,_t);if(fe)return U(),We(hn(me,J,fe),L);{const Be=jn(L.parameters,ne,Ao),ke=nt(L.body,ne,Ko);return U(),We(t.updateSetAccessorDeclaration(L,me,J,Be,ke),L)}}function Bt(L){O(L);let me;if(yI(L))me=xn(L,ne,e);else if(BP(L)){const J=h;h=void 0,me=xn(L,ne,e),h=J}else if(L=xn(L,ne,e),me=L,p&&(p.hasStaticInitializers=!0,bt(p.pendingStaticInitializers))){const J=[];for(const ke of p.pendingStaticInitializers){const Tt=t.createExpressionStatement(ke);Da(Tt,Bv(ke)),J.push(Tt)}const fe=t.createBlock(J,!0);me=[t.createClassStaticBlockDeclaration(fe),me],p.pendingStaticInitializers=void 0}return U(),me}function vt(L){mp(L,gn)&&(L=bp(e,L,Qt(L.initializer))),O(L),N.assert(!ij(L),"Not yet implemented.");const{modifiers:me,name:J,initializersName:fe,extraInitializersName:Be,descriptorName:ke,thisArg:Tt}=At(L,p,D_(L)?Gt:void 0);i();let kt=nt(L.initializer,ne,yt);fe&&(kt=r().createRunInitializersHelper(Tt??t.createThis(),fe,kt??t.createVoidZero())),aa(L)&&p&&kt&&(p.hasStaticInitializers=!0);const en=o();if(bt(en)&&(kt=t.createImmediatelyInvokedArrowFunction([...en,t.createReturnStatement(kt)])),p&&(aa(L)?(kt=Fe(p,!0,kt),Be&&(p.pendingStaticInitializers??(p.pendingStaticInitializers=[]),p.pendingStaticInitializers.push(r().createRunInitializersHelper(p.classThis??t.createThis(),Be)))):(kt=Fe(p,!1,kt),Be&&(p.pendingInstanceInitializers??(p.pendingInstanceInitializers=[]),p.pendingInstanceInitializers.push(r().createRunInitializersHelper(t.createThis(),Be))))),U(),D_(L)&&ke){const En=M_(L),Gn=Bv(L),qn=L.name;let Pi=qn,xi=qn;if(Za(qn)&&!O_(qn.expression)){const Ri=lF(qn);if(Ri)Pi=t.updateComputedPropertyName(qn,nt(qn.expression,ne,yt)),xi=t.updateComputedPropertyName(qn,Ri.left);else{const Jr=t.createTempVariable(s);Da(Jr,qn.expression);const xo=nt(qn.expression,ne,yt),Nn=t.createAssignment(Jr,xo);Da(Nn,qn.expression),Pi=t.updateComputedPropertyName(qn,Nn),xi=t.updateComputedPropertyName(qn,Jr)}}const ir=jn(me,Ri=>Ri.kind!==129?Ri:void 0,Aa),Vr=PH(t,L,ir,kt);Nr(Vr,L),pr(Vr,3072),Da(Vr,Gn),Da(Vr.name,L.name);const vo=fn(ir,Pi,ke);Nr(vo,L),ac(vo,En),Da(vo,Gn);const Mi=hn(ir,xi,ke);return Nr(Mi,L),pr(Mi,3072),Da(Mi,Gn),[Vr,vo,Mi]}return We(t.updatePropertyDeclaration(L,me,J,void 0,void 0,kt),L)}function $e(L){return h??L}function It(L){if(zd(L.expression)&&h){const me=nt(L.expression,ne,yt),J=jn(L.arguments,ne,yt),fe=t.createFunctionCallCall(me,h,J);return Nr(fe,L),dt(fe,L),fe}return xn(L,ne,e)}function tn(L){if(zd(L.tag)&&h){const me=nt(L.tag,ne,yt),J=t.createFunctionBindCall(me,h,[]);Nr(J,L),dt(J,L);const fe=nt(L.template,ne,IA);return t.updateTaggedTemplateExpression(L,J,void 0,fe)}return xn(L,ne,e)}function rn(L){if(zd(L)&&Ve(L.name)&&h&&m){const me=t.createStringLiteralFromNode(L.name),J=t.createReflectGetCall(m,me,h);return Nr(J,L.expression),dt(J,L.expression),J}return xn(L,ne,e)}function Mn(L){if(zd(L)&&h&&m){const me=nt(L.argumentExpression,ne,yt),J=t.createReflectGetCall(m,me,h);return Nr(J,L.expression),dt(J,L.expression),J}return xn(L,ne,e)}function $n(L){mp(L,gn)&&(L=bp(e,L,Qt(L.initializer)));const me=t.updateParameterDeclaration(L,void 0,L.dotDotDotToken,nt(L.name,ne,pS),void 0,void 0,nt(L.initializer,ne,yt));return me!==L&&(ac(me,L),dt(me,C_(L)),Da(me,C_(L)),pr(me.name,64)),me}function gn(L){return Qc(L)&&!L.name&&ve(L)}function Qt(L){const me=$l(L);return Qc(me)&&!me.name&&!Lv(!1,me)}function Yt(L){return t.updateForStatement(L,nt(L.initializer,X,Sf),nt(L.condition,ne,yt),nt(L.incrementor,X,yt),xd(L.statement,ne,e))}function vi(L){return xn(L,X,e)}function so(L,me){if(Wv(L)){const J=wn(L.left),fe=nt(L.right,ne,yt);return t.updateBinaryExpression(L,J,L.operatorToken,fe)}if(Pc(L)){if(mp(L,gn))return L=bp(e,L,Qt(L.right)),xn(L,ne,e);if(zd(L.left)&&h&&m){let J=$s(L.left)?nt(L.left.argumentExpression,ne,yt):Ve(L.left.name)?t.createStringLiteralFromNode(L.left.name):void 0;if(J){let fe=nt(L.right,ne,yt);if(WP(L.operatorToken.kind)){let ke=J;O_(J)||(ke=t.createTempVariable(s),J=t.createAssignment(ke,J));const Tt=t.createReflectGetCall(m,ke,h);Nr(Tt,L.left),dt(Tt,L.left),fe=t.createBinaryExpression(Tt,FP(L.operatorToken.kind),fe),dt(fe,L)}const Be=me?void 0:t.createTempVariable(s);return Be&&(fe=t.createAssignment(Be,fe),dt(Be,L)),fe=t.createReflectSetCall(m,J,fe,h),Nr(fe,L),dt(fe,L),Be&&(fe=t.createComma(fe,Be),dt(fe,L)),fe}}}if(L.operatorToken.kind===28){const J=nt(L.left,X,yt),fe=nt(L.right,me?X:ne,yt);return t.updateBinaryExpression(L,J,L.operatorToken,fe)}return xn(L,ne,e)}function Wi(L,me){if(L.operator===46||L.operator===47){const J=hs(L.operand);if(zd(J)&&h&&m){let fe=$s(J)?nt(J.argumentExpression,ne,yt):Ve(J.name)?t.createStringLiteralFromNode(J.name):void 0;if(fe){let Be=fe;O_(fe)||(Be=t.createTempVariable(s),fe=t.createAssignment(Be,fe));let ke=t.createReflectGetCall(m,Be,h);Nr(ke,L),dt(ke,L);const Tt=me?void 0:t.createTempVariable(s);return ke=tF(t,L,ke,s,Tt),ke=t.createReflectSetCall(m,fe,ke,h),Nr(ke,L),dt(ke,L),Tt&&(ke=t.createComma(ke,Tt),dt(ke,L)),ke}}}return xn(L,ne,e)}function Co(L,me){const J=me?Dw(L.elements,X):Dw(L.elements,ne,X);return t.updateCommaListExpression(L,J)}function Ln(L){if(x_(L)||qi(L)){const ke=t.createStringLiteralFromNode(L),Tt=nt(L,ne,oc);return{referencedName:ke,name:Tt}}if(x_(L.expression)&&!Ve(L.expression)){const ke=t.createStringLiteralFromNode(L.expression),Tt=nt(L,ne,oc);return{referencedName:ke,name:Tt}}const me=t.getGeneratedNameForNode(L);s(me);const J=r().createPropKeyHelper(nt(L.expression,ne,yt)),fe=t.createAssignment(me,J),Be=t.updateComputedPropertyName(L,le(fe));return{referencedName:me,name:Be}}function Ci(L){return Za(L)?Ar(L):nt(L,ne,oc)}function Ar(L){let me=nt(L.expression,ne,yt);return O_(me)||(me=le(me)),t.updateComputedPropertyName(L,me)}function sn(L){return mp(L,gn)&&(L=bp(e,L,Qt(L.initializer))),xn(L,ne,e)}function tt(L){return mp(L,gn)&&(L=bp(e,L,Qt(L.initializer))),xn(L,ne,e)}function zt(L){return mp(L,gn)&&(L=bp(e,L,Qt(L.initializer))),xn(L,ne,e)}function Dn(L){if(La(L)||fd(L))return wn(L);if(zd(L)&&h&&m){const me=$s(L)?nt(L.argumentExpression,ne,yt):Ve(L.name)?t.createStringLiteralFromNode(L.name):void 0;if(me){const J=t.createTempVariable(void 0),fe=t.createAssignmentTargetWrapper(J,t.createReflectSetCall(m,me,J,h));return Nr(fe,L),dt(fe,L),fe}}return xn(L,ne,e)}function ci(L){if(Pc(L,!0)){mp(L,gn)&&(L=bp(e,L,Qt(L.right)));const me=Dn(L.left),J=nt(L.right,ne,yt);return t.updateBinaryExpression(L,me,L.operatorToken,J)}else return Dn(L)}function yi(L){if(Zd(L.expression)){const me=Dn(L.expression);return t.updateSpreadElement(L,me)}return xn(L,ne,e)}function Qi(L){return N.assertNode(L,fL),$m(L)?yi(L):Gc(L)?xn(L,ne,e):ci(L)}function Io(L){const me=nt(L.name,ne,oc);if(Pc(L.initializer,!0)){const J=ci(L.initializer);return t.updatePropertyAssignment(L,me,J)}if(Zd(L.initializer)){const J=Dn(L.initializer);return t.updatePropertyAssignment(L,me,J)}return xn(L,ne,e)}function fa(L){return mp(L,gn)&&(L=bp(e,L,Qt(L.objectAssignmentInitializer))),xn(L,ne,e)}function ka(L){if(Zd(L.expression)){const me=Dn(L.expression);return t.updateSpreadAssignment(L,me)}return xn(L,ne,e)}function Tn(L){return N.assertNode(L,pL),jv(L)?ka(L):np(L)?fa(L):hc(L)?Io(L):xn(L,ne,e)}function wn(L){if(fd(L)){const me=jn(L.elements,Qi,yt);return t.updateArrayLiteralExpression(L,me)}else{const me=jn(L.properties,Tn,Mg);return t.updateObjectLiteralExpression(L,me)}}function He(L){return mp(L,gn)&&(L=bp(e,L,Qt(L.expression))),xn(L,ne,e)}function mt(L,me){const J=me?X:ne,fe=nt(L.expression,J,yt);return t.updateParenthesizedExpression(L,fe)}function ft(L,me){const J=me?X:ne,fe=nt(L.expression,J,yt);return t.updatePartiallyEmittedExpression(L,fe)}function Ct(L,me){return bt(L)&&(me?Gd(me)?(L.push(me.expression),me=t.updateParenthesizedExpression(me,t.inlineExpressions(L))):(L.push(me),me=t.inlineExpressions(L)):me=t.inlineExpressions(L)),me}function le(L){const me=Ct(y,L);return N.assertIsDefined(me),me!==L&&(y=void 0),me}function Fe(L,me,J){const fe=Ct(me?L.pendingStaticInitializers:L.pendingInstanceInitializers,J);return fe!==J&&(me?L.pendingStaticInitializers=void 0:L.pendingInstanceInitializers=void 0),fe}function pt(L){if(!L)return;const me=[];return qr(me,Wt(L.decorators,j)),me}function j(L){const me=nt(L.expression,ne,yt);pr(me,3072);const J=$l(me);if(ws(J)){const{target:fe,thisArg:Be}=t.createCallBinding(me,s,l,!0);return t.restoreOuterExpressions(me,t.createFunctionBindCall(fe,Be,[]))}return me}function it(L,me,J,fe,Be,ke,Tt){const kt=t.createFunctionExpression(J,fe,void 0,void 0,ke,void 0,Tt??t.createBlock([]));Nr(kt,L),Da(kt,Og(L)),pr(kt,3072);const en=Be==="get"||Be==="set"?Be:void 0,En=t.createStringLiteralFromNode(me,void 0),Gn=r().createSetFunctionNameHelper(kt,En,en),qn=t.createPropertyAssignment(t.createIdentifier(Be),Gn);return Nr(qn,L),Da(qn,Og(L)),pr(qn,3072),qn}function Rt(L,me){return t.createObjectLiteralExpression([it(L,L.name,me,L.asteriskToken,"value",jn(L.parameters,ne,Ao),nt(L.body,ne,Ko))])}function Ye(L,me){return t.createObjectLiteralExpression([it(L,L.name,me,void 0,"get",[],nt(L.body,ne,Ko))])}function _t(L,me){return t.createObjectLiteralExpression([it(L,L.name,me,void 0,"set",jn(L.parameters,ne,Ao),nt(L.body,ne,Ko))])}function Gt(L,me){return t.createObjectLiteralExpression([it(L,L.name,me,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(L.name)))])),it(L,L.name,me,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(L.name)),t.createIdentifier("value")))]))])}function yn(L,me,J){return L=jn(L,fe=>QA(fe)?fe:void 0,Aa),t.createGetAccessorDeclaration(L,me,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(J,t.createIdentifier("value")))]))}function fn(L,me,J){return L=jn(L,fe=>QA(fe)?fe:void 0,Aa),t.createGetAccessorDeclaration(L,me,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(J,t.createIdentifier("get")),t.createThis(),[]))]))}function hn(L,me,J){return L=jn(L,fe=>QA(fe)?fe:void 0,Aa),t.createSetAccessorDeclaration(L,me,[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(L,me){const J=t.createVariableDeclaration(L,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,[me?Lt(me):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([J],2))}function Oe(L,me){const J=t.createObjectDefinePropertyCall(L,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:me},!0));return pr(t.createIfStatement(me,t.createExpressionStatement(J)),1)}function Lt(L){return t.createBinaryExpression(t.createElementAccessExpression(L,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}var Wje=I({"src/compiler/transformers/esDecorators.ts"(){ra()}});function hle(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),p=os(u);let h,m=0,y,T,A,R;const M=[];let C=0;const O=e.onEmitNode,U=e.onSubstituteNode;return e.onEmitNode=vi,e.onSubstituteNode=so,Dm(e,K);function K(tt){if(tt.isDeclarationFile)return tt;Q(1,!1),Q(2,!rj(tt,u));const zt=xn(tt,Y,e);return zg(zt,e.readEmitHelpers()),zt}function Q(tt,zt){C=zt?C|tt:C&~tt}function V(tt){return(C&tt)!==0}function se(){return!V(1)}function G(){return V(2)}function ne(tt,zt,Dn){const ci=tt&~C;if(ci){Q(ci,!0);const yi=zt(Dn);return Q(ci,!1),yi}return zt(Dn)}function he(tt){return xn(tt,Y,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 xn(tt,ye,e)}function Y(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,Ue,tt);case 262:return ne(3,Me,tt);case 218:return ne(3,We,tt);case 219:return ne(1,At,tt);case 211:return T&&Fr(tt)&&tt.expression.kind===108&&T.add(tt.name.escapedText),xn(tt,Y,e);case 212:return T&&tt.expression.kind===108&&(A=!0),xn(tt,Y,e);case 177:return ne(3,Ee,tt);case 178:return ne(3,De,tt);case 176:return ne(3,Le,tt);case 263:case 231:return ne(3,he,tt);default:return xn(tt,Y,e)}}function X(tt){if(hie(tt))switch(tt.kind){case 243:return pe(tt);case 248:return ie(tt);case 249:return Ce(tt);case 250:return de(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 xn(tt,X,e);default:return N.assertNever(tt,"Unhandled node.")}return Y(tt)}function oe(tt){const zt=new Set;Se(tt.variableDeclaration,zt);let Dn;if(zt.forEach((ci,yi)=>{y.has(yi)&&(Dn||(Dn=new Set(y)),Dn.delete(yi))}),Dn){const ci=y;y=Dn;const yi=xn(tt,X,e);return y=ci,yi}else return xn(tt,X,e)}function pe(tt){if(je(tt.declarationList)){const zt=ot(tt.declarationList,!1);return zt?t.createExpressionStatement(zt):void 0}return xn(tt,Y,e)}function Ce(tt){return t.updateForInStatement(tt,je(tt.initializer)?ot(tt.initializer,!0):N.checkDefined(nt(tt.initializer,Y,Sf)),N.checkDefined(nt(tt.expression,Y,yt)),xd(tt.statement,X,e))}function de(tt){return t.updateForOfStatement(tt,nt(tt.awaitModifier,Y,oH),je(tt.initializer)?ot(tt.initializer,!0):N.checkDefined(nt(tt.initializer,Y,Sf)),N.checkDefined(nt(tt.expression,Y,yt)),xd(tt.statement,X,e))}function ie(tt){const zt=tt.initializer;return t.updateForStatement(tt,je(zt)?ot(zt,!1):nt(tt.initializer,Y,Sf),nt(tt.condition,Y,yt),nt(tt.incrementor,Y,yt),xd(tt.statement,X,e))}function ve(tt){return se()?xn(tt,Y,e):Nr(dt(t.createYieldExpression(void 0,nt(tt.expression,Y,yt)),tt),tt)}function Le(tt){const zt=R;R=void 0;const Dn=t.updateConstructorDeclaration(tt,jn(tt.modifiers,Y,Aa),Dl(tt.parameters,Y,e),tn(tt));return R=zt,Dn}function Ue(tt){let zt;const Dn=Bc(tt),ci=R;R=void 0;const yi=t.updateMethodDeclaration(tt,jn(tt.modifiers,Y,sl),tt.asteriskToken,tt.name,void 0,void 0,zt=Dn&2?Mn(tt):Dl(tt.parameters,Y,e),void 0,Dn&2?$n(tt,zt):tn(tt));return R=ci,yi}function Ee(tt){const zt=R;R=void 0;const Dn=t.updateGetAccessorDeclaration(tt,jn(tt.modifiers,Y,sl),tt.name,Dl(tt.parameters,Y,e),void 0,tn(tt));return R=zt,Dn}function De(tt){const zt=R;R=void 0;const Dn=t.updateSetAccessorDeclaration(tt,jn(tt.modifiers,Y,sl),tt.name,Dl(tt.parameters,Y,e),tn(tt));return R=zt,Dn}function Me(tt){let zt;const Dn=R;R=void 0;const ci=Bc(tt),yi=t.updateFunctionDeclaration(tt,jn(tt.modifiers,Y,sl),tt.asteriskToken,tt.name,void 0,zt=ci&2?Mn(tt):Dl(tt.parameters,Y,e),void 0,ci&2?$n(tt,zt):af(tt.body,Y,e));return R=Dn,yi}function We(tt){let zt;const Dn=R;R=void 0;const ci=Bc(tt),yi=t.updateFunctionExpression(tt,jn(tt.modifiers,Y,Aa),tt.asteriskToken,tt.name,void 0,zt=ci&2?Mn(tt):Dl(tt.parameters,Y,e),void 0,ci&2?$n(tt,zt):af(tt.body,Y,e));return R=Dn,yi}function At(tt){let zt;const Dn=Bc(tt);return t.updateArrowFunction(tt,jn(tt.modifiers,Y,Aa),void 0,zt=Dn&2?Mn(tt):Dl(tt.parameters,Y,e),void 0,tt.equalsGreaterThanToken,Dn&2?$n(tt,zt):af(tt.body,Y,e))}function Se({name:tt},zt){if(Ve(tt))zt.add(tt.escapedText);else for(const Dn of tt.elements)Gc(Dn)||Se(Dn,zt)}function je(tt){return!!tt&&Vc(tt)&&!(tt.flags&7)&&tt.declarations.some(It)}function ot(tt,zt){Bt(tt);const Dn=VC(tt);return Dn.length===0?zt?nt(t.converters.convertToAssignmentElementTarget(tt.declarations[0].name),Y,yt):void 0:t.inlineExpressions(Wt(Dn,$e))}function Bt(tt){Xe(tt.declarations,vt)}function vt({name:tt}){if(Ve(tt))s(tt);else for(const zt of tt.elements)Gc(zt)||vt(zt)}function $e(tt){const zt=Da(t.createAssignment(t.converters.convertToAssignmentElementTarget(tt.name),tt.initializer),tt);return N.checkDefined(nt(zt,Y,yt))}function It({name:tt}){if(Ve(tt))return y.has(tt.escapedText);for(const zt of tt.elements)if(!Gc(zt)&&It(zt))return!0;return!1}function tn(tt){N.assertIsDefined(tt.body);const zt=T,Dn=A;T=new Set,A=!1;let ci=af(tt.body,Y,e);const yi=Pl(tt,Bs);if(p>=2&&l.getNodeCheckFlags(tt)&384&&(Bc(yi)&3)!==3){if(Yt(),T.size){const Io=$F(t,l,tt,T);M[as(Io)]=!0;const fa=ci.statements.slice();Yh(fa,[Io]),ci=t.updateBlock(ci,fa)}A&&(l.getNodeCheckFlags(tt)&256?qA(ci,Wk):l.getNodeCheckFlags(tt)&128&&qA(ci,Ok))}return T=zt,A=Dn,ci}function rn(){N.assert(R);const tt=t.createVariableDeclaration(R,void 0,void 0,t.createIdentifier("arguments")),zt=t.createVariableStatement(void 0,[tt]);return Xu(zt),P_(zt,2097152),zt}function Mn(tt){if(Cw(tt.parameters))return Dl(tt.parameters,Y,e);const zt=[];for(const ci of tt.parameters){if(ci.initializer||ci.dotDotDotToken){if(tt.kind===219){const Qi=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));zt.push(Qi)}break}const yi=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(ci.name,8));zt.push(yi)}const Dn=t.createNodeArray(zt);return dt(Dn,tt.parameters),Dn}function $n(tt,zt){const Dn=Cw(tt.parameters)?void 0:Dl(tt.parameters,Y,e);i();const yi=Pl(tt,ea).type,Qi=p<2?Qt(yi):void 0,Io=tt.kind===219,fa=R,Tn=(l.getNodeCheckFlags(tt)&512)!==0&&!R;Tn&&(R=t.createUniqueName("arguments"));let wn;if(Dn)if(Io){const pt=[];N.assert(zt.length<=tt.parameters.length);for(let j=0;j<tt.parameters.length;j++){N.assert(j<zt.length);const it=tt.parameters[j],Rt=zt[j];if(N.assertNode(Rt.name,Ve),it.initializer||it.dotDotDotToken){N.assert(j===zt.length-1),pt.push(t.createSpreadElement(Rt.name));break}pt.push(Rt.name)}wn=t.createArrayLiteralExpression(pt)}else wn=t.createIdentifier("arguments");const He=y;y=new Set;for(const pt of tt.parameters)Se(pt,y);const mt=T,ft=A;Io||(T=new Set,A=!1);const Ct=G();let le=gn(tt.body);le=t.updateBlock(le,t.mergeLexicalEnvironment(le.statements,o()));let Fe;if(Io){if(Fe=r().createAwaiterHelper(Ct,wn,Qi,Dn,le),Tn){const pt=t.converters.convertToFunctionBlock(Fe);Fe=t.updateBlock(pt,t.mergeLexicalEnvironment(pt.statements,[rn()]))}}else{const pt=[];pt.push(t.createReturnStatement(r().createAwaiterHelper(Ct,wn,Qi,Dn,le)));const j=p>=2&&l.getNodeCheckFlags(tt)&384;if(j&&(Yt(),T.size)){const Rt=$F(t,l,tt,T);M[as(Rt)]=!0,Yh(pt,[Rt])}Tn&&Yh(pt,[rn()]);const it=t.createBlock(pt,!0);dt(it,tt.body),j&&A&&(l.getNodeCheckFlags(tt)&256?qA(it,Wk):l.getNodeCheckFlags(tt)&128&&qA(it,Ok)),Fe=it}return y=He,Io||(T=mt,A=ft,R=fa),Fe}function gn(tt,zt){return Ko(tt)?t.updateBlock(tt,jn(tt.statements,X,Hi,zt)):t.converters.convertToFunctionBlock(N.checkDefined(nt(tt,X,y4)))}function Qt(tt){const zt=tt&&ML(tt);if(zt&&Qd(zt)){const Dn=l.getTypeReferenceSerializationKind(zt);if(Dn===1||Dn===0)return zt}}function Yt(){h&1||(h|=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,Dn){if(h&1&&Ar(zt)){const ci=l.getNodeCheckFlags(zt)&384;if(ci!==m){const yi=m;m=ci,O(tt,zt,Dn),m=yi;return}}else if(h&&M[as(zt)]){const ci=m;m=0,O(tt,zt,Dn),m=ci;return}O(tt,zt,Dn)}function so(tt,zt){return zt=U(tt,zt),tt===1&&m?Wi(zt):zt}function Wi(tt){switch(tt.kind){case 211:return Co(tt);case 212:return Ln(tt);case 213:return Ci(tt)}return tt}function Co(tt){return tt.expression.kind===108?dt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),tt.name),tt):tt}function Ln(tt){return tt.expression.kind===108?sn(tt.argumentExpression,tt):tt}function Ci(tt){const zt=tt.expression;if(zd(zt)){const Dn=Fr(zt)?Co(zt):Ln(zt);return t.createCallExpression(t.createPropertyAccessExpression(Dn,"call"),void 0,[t.createThis(),...tt.arguments])}return tt}function Ar(tt){const zt=tt.kind;return zt===263||zt===176||zt===174||zt===177||zt===178}function sn(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 $F(e,t,r,i){const o=(t.getNodeCheckFlags(r)&256)!==0,s=[];return i.forEach((l,u)=>{const p=Vi(u),h=[];h.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,pr(e.createPropertyAccessExpression(pr(e.createSuper(),8),p),8)))),o&&h.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(pr(e.createPropertyAccessExpression(pr(e.createSuper(),8),p),8),e.createIdentifier("v"))))),s.push(e.createPropertyAssignment(p,e.createObjectLiteralExpression(h)))}),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 Fje=I({"src/compiler/transformers/es2017.ts"(){ra()}});function gle(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),p=os(u),h=e.onEmitNode;e.onEmitNode=fa;const m=e.onSubstituteNode;e.onSubstituteNode=ka;let y=!1,T,A,R,M=0,C=0,O,U,K,Q;const V=[];return Dm(e,ye);function se(le,Fe){return C!==(C&~le|Fe)}function G(le,Fe){const pt=C;return C=(C&~le|Fe)&3,pt}function ne(le){C=le}function he(le){U=Rn(U,t.createVariableDeclaration(le))}function ye(le){if(le.isDeclarationFile)return le;O=le;const Fe=At(le);return zg(Fe,e.readEmitHelpers()),O=void 0,U=void 0,Fe}function Y(le){return de(le,!1)}function X(le){return de(le,!0)}function oe(le){if(le.kind!==134)return le}function pe(le,Fe,pt,j){if(se(pt,j)){const it=G(pt,j),Rt=le(Fe);return ne(it),Rt}return le(Fe)}function Ce(le){return xn(le,Y,e)}function de(le,Fe){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 Ue(le);case 210:return De(le);case 226:return je(le,Fe);case 361:return ot(le,Fe);case 299:return Bt(le);case 243:return vt(le);case 260:return $e(le);case 246:case 247:case 249:return pe(Ce,le,0,2);case 250:return Mn(le,void 0);case 248:return pe(tn,le,0,2);case 222:return rn(le);case 176:return pe(Co,le,2,1);case 174:return pe(Ar,le,2,1);case 177:return pe(Ln,le,2,1);case 178:return pe(Ci,le,2,1);case 262:return pe(sn,le,2,1);case 218:return pe(zt,le,2,1);case 219:return pe(tt,le,2,0);case 169:return so(le);case 244:return Me(le);case 217:return We(le,Fe);case 215:return Se(le);case 211:return K&&Fr(le)&&le.expression.kind===108&&K.add(le.name.escapedText),xn(le,Y,e);case 212:return K&&le.expression.kind===108&&(Q=!0),xn(le,Y,e);case 263:case 231:return pe(Ce,le,2,1);default:return xn(le,Y,e)}}function ie(le){return A&2&&A&1?Nr(dt(t.createYieldExpression(void 0,r().createAwaitHelper(nt(le.expression,Y,yt))),le),le):xn(le,Y,e)}function ve(le){if(A&2&&A&1){if(le.asteriskToken){const Fe=nt(N.checkDefined(le.expression),Y,yt);return Nr(dt(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(le,le.asteriskToken,dt(r().createAsyncDelegatorHelper(dt(r().createAsyncValuesHelper(Fe),Fe)),Fe)))),le),le)}return Nr(dt(t.createYieldExpression(void 0,Qt(le.expression?nt(le.expression,Y,yt):t.createVoidZero())),le),le)}return xn(le,Y,e)}function Le(le){return A&2&&A&1?t.updateReturnStatement(le,Qt(le.expression?nt(le.expression,Y,yt):t.createVoidZero())):xn(le,Y,e)}function Ue(le){if(A&2){const Fe=fj(le);return Fe.kind===250&&Fe.awaitModifier?Mn(Fe,le):t.restoreEnclosingLabel(nt(Fe,Y,Hi,t.liftToBlock),le)}return xn(le,Y,e)}function Ee(le){let Fe;const pt=[];for(const j of le)if(j.kind===305){Fe&&(pt.push(t.createObjectLiteralExpression(Fe)),Fe=void 0);const it=j.expression;pt.push(nt(it,Y,yt))}else Fe=Rn(Fe,j.kind===303?t.createPropertyAssignment(j.name,nt(j.initializer,Y,yt)):nt(j,Y,Mg));return Fe&&pt.push(t.createObjectLiteralExpression(Fe)),pt}function De(le){if(le.transformFlags&65536){const Fe=Ee(le.properties);Fe.length&&Fe[0].kind!==210&&Fe.unshift(t.createObjectLiteralExpression());let pt=Fe[0];if(Fe.length>1){for(let j=1;j<Fe.length;j++)pt=r().createAssignHelper([pt,Fe[j]]);return pt}else return r().createAssignHelper(Fe)}return xn(le,Y,e)}function Me(le){return xn(le,X,e)}function We(le,Fe){return xn(le,Fe?X:Y,e)}function At(le){const Fe=G(2,rj(le,u)?0:1);y=!1;const pt=xn(le,Y,e),j=So(pt.statements,U&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(U))]),it=t.updateSourceFile(pt,dt(t.createNodeArray(j),le.statements));return ne(Fe),it}function Se(le){return jq(e,le,Y,O,he,0)}function je(le,Fe){return Wv(le)&&nw(le.left)?XS(le,Y,e,1,!Fe):le.operatorToken.kind===28?t.updateBinaryExpression(le,nt(le.left,X,yt),le.operatorToken,nt(le.right,Fe?X:Y,yt)):xn(le,Y,e)}function ot(le,Fe){if(Fe)return xn(le,X,e);let pt;for(let it=0;it<le.elements.length;it++){const Rt=le.elements[it],Ye=nt(Rt,it<le.elements.length-1?X:Y,yt);(pt||Ye!==Rt)&&(pt||(pt=le.elements.slice(0,it)),pt.push(Ye))}const j=pt?dt(t.createNodeArray(pt),le.elements):le.elements;return t.updateCommaListExpression(le,j)}function Bt(le){if(le.variableDeclaration&&ta(le.variableDeclaration.name)&&le.variableDeclaration.name.transformFlags&65536){const Fe=t.getGeneratedNameForNode(le.variableDeclaration.name),pt=t.updateVariableDeclaration(le.variableDeclaration,le.variableDeclaration.name,void 0,void 0,Fe),j=u1(pt,Y,e,1);let it=nt(le.block,Y,Ko);return bt(j)&&(it=t.updateBlock(it,[t.createVariableStatement(void 0,j),...it.statements])),t.updateCatchClause(le,t.updateVariableDeclaration(le.variableDeclaration,Fe,void 0,void 0,void 0),it)}return xn(le,Y,e)}function vt(le){if(Qr(le,32)){const Fe=y;y=!0;const pt=xn(le,Y,e);return y=Fe,pt}return xn(le,Y,e)}function $e(le){if(y){const Fe=y;y=!1;const pt=It(le,!0);return y=Fe,pt}return It(le,!1)}function It(le,Fe){return ta(le.name)&&le.name.transformFlags&65536?u1(le,Y,e,1,void 0,Fe):xn(le,Y,e)}function tn(le){return t.updateForStatement(le,nt(le.initializer,X,Sf),nt(le.condition,Y,yt),nt(le.incrementor,X,yt),xd(le.statement,Y,e))}function rn(le){return xn(le,X,e)}function Mn(le,Fe){const pt=G(0,2);(le.initializer.transformFlags&65536||mC(le.initializer)&&nw(le.initializer))&&(le=$n(le));const j=le.awaitModifier?Yt(le,Fe,pt):t.restoreEnclosingLabel(xn(le,Y,e),Fe);return ne(pt),j}function $n(le){const Fe=hs(le.initializer);if(Vc(Fe)||mC(Fe)){let pt,j;const it=t.createTempVariable(void 0),Rt=[SH(t,Fe,it)];return Ko(le.statement)?(qr(Rt,le.statement.statements),pt=le.statement,j=le.statement.statements):le.statement&&(Rn(Rt,le.statement),pt=le.statement,j=le.statement),t.updateForOfStatement(le,le.awaitModifier,dt(t.createVariableDeclarationList([dt(t.createVariableDeclaration(it),le.initializer)],1),le.initializer),le.expression,dt(t.createBlock(dt(t.createNodeArray(Rt),j),!0),pt))}return le}function gn(le,Fe,pt){const j=t.createTempVariable(s),it=t.createAssignment(j,Fe),Rt=t.createExpressionStatement(it);Da(Rt,le.expression);const Ye=t.createAssignment(pt,t.createFalse()),_t=t.createExpressionStatement(Ye);Da(_t,le.expression);const Gt=[Rt,_t],yn=SH(t,le.initializer,j);Gt.push(nt(yn,Y,Hi));let fn,hn;const q=xd(le.statement,Y,e);return Ko(q)?(qr(Gt,q.statements),fn=q,hn=q.statements):Gt.push(q),dt(t.createBlock(dt(t.createNodeArray(Gt),hn),!0),fn)}function Qt(le){return A&1?t.createYieldExpression(void 0,r().createAwaitHelper(le)):t.createAwaitExpression(le)}function Yt(le,Fe,pt){const j=nt(le.expression,Y,yt),it=Ve(j)?t.getGeneratedNameForNode(j):t.createTempVariable(void 0),Rt=Ve(j)?t.getGeneratedNameForNode(it):t.createTempVariable(void 0),Ye=t.createTempVariable(void 0),_t=t.createTempVariable(s),Gt=t.createUniqueName("e"),yn=t.getGeneratedNameForNode(Gt),fn=t.createTempVariable(void 0),hn=dt(r().createAsyncValuesHelper(j),le.expression),q=t.createCallExpression(t.createPropertyAccessExpression(it,"next"),void 0,[]),Oe=t.createPropertyAccessExpression(Rt,"done"),Lt=t.createPropertyAccessExpression(Rt,"value"),L=t.createFunctionCallCall(fn,it,[]);s(Gt),s(fn);const me=pt&2?t.inlineExpressions([t.createAssignment(Gt,t.createVoidZero()),hn]):hn,J=pr(dt(t.createForStatement(pr(dt(t.createVariableDeclarationList([t.createVariableDeclaration(Ye,void 0,void 0,t.createTrue()),dt(t.createVariableDeclaration(it,void 0,void 0,me),le.expression),t.createVariableDeclaration(Rt)]),le.expression),4194304),t.inlineExpressions([t.createAssignment(Rt,Qt(q)),t.createAssignment(_t,Oe),t.createLogicalNot(_t)]),t.createAssignment(Ye,t.createTrue()),gn(le,Lt,Ye)),le),512);return Nr(J,le),t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(J,Fe)]),t.createCatchClause(t.createVariableDeclaration(yn),pr(t.createBlock([t.createExpressionStatement(t.createAssignment(Gt,t.createObjectLiteralExpression([t.createPropertyAssignment("error",yn)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([pr(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(t.createLogicalNot(Ye),t.createLogicalNot(_t)),t.createAssignment(fn,t.createPropertyAccessExpression(it,"return"))),t.createExpressionStatement(Qt(L))),1)]),void 0,pr(t.createBlock([pr(t.createIfStatement(Gt,t.createThrowStatement(t.createPropertyAccessExpression(Gt,"error"))),1)]),1))]))}function vi(le){return N.assertNode(le,Ao),so(le)}function so(le){return R!=null&&R.has(le)?t.updateParameterDeclaration(le,void 0,le.dotDotDotToken,ta(le.name)?t.getGeneratedNameForNode(le):le.name,void 0,void 0,void 0):le.transformFlags&65536?t.updateParameterDeclaration(le,void 0,le.dotDotDotToken,t.getGeneratedNameForNode(le),void 0,void 0,nt(le.initializer,Y,yt)):xn(le,Y,e)}function Wi(le){let Fe;for(const pt of le.parameters)Fe?Fe.add(pt):pt.transformFlags&65536&&(Fe=new Set);return Fe}function Co(le){const Fe=A,pt=R;A=Bc(le),R=Wi(le);const j=t.updateConstructorDeclaration(le,le.modifiers,Dl(le.parameters,vi,e),yi(le));return A=Fe,R=pt,j}function Ln(le){const Fe=A,pt=R;A=Bc(le),R=Wi(le);const j=t.updateGetAccessorDeclaration(le,le.modifiers,nt(le.name,Y,oc),Dl(le.parameters,vi,e),void 0,yi(le));return A=Fe,R=pt,j}function Ci(le){const Fe=A,pt=R;A=Bc(le),R=Wi(le);const j=t.updateSetAccessorDeclaration(le,le.modifiers,nt(le.name,Y,oc),Dl(le.parameters,vi,e),yi(le));return A=Fe,R=pt,j}function Ar(le){const Fe=A,pt=R;A=Bc(le),R=Wi(le);const j=t.updateMethodDeclaration(le,A&1?jn(le.modifiers,oe,sl):le.modifiers,A&2?void 0:le.asteriskToken,nt(le.name,Y,oc),nt(void 0,Y,Hy),void 0,A&2&&A&1?Dn(le):Dl(le.parameters,vi,e),void 0,A&2&&A&1?ci(le):yi(le));return A=Fe,R=pt,j}function sn(le){const Fe=A,pt=R;A=Bc(le),R=Wi(le);const j=t.updateFunctionDeclaration(le,A&1?jn(le.modifiers,oe,Aa):le.modifiers,A&2?void 0:le.asteriskToken,le.name,void 0,A&2&&A&1?Dn(le):Dl(le.parameters,vi,e),void 0,A&2&&A&1?ci(le):yi(le));return A=Fe,R=pt,j}function tt(le){const Fe=A,pt=R;A=Bc(le),R=Wi(le);const j=t.updateArrowFunction(le,le.modifiers,void 0,Dl(le.parameters,vi,e),void 0,le.equalsGreaterThanToken,yi(le));return A=Fe,R=pt,j}function zt(le){const Fe=A,pt=R;A=Bc(le),R=Wi(le);const j=t.updateFunctionExpression(le,A&1?jn(le.modifiers,oe,Aa):le.modifiers,A&2?void 0:le.asteriskToken,le.name,void 0,A&2&&A&1?Dn(le):Dl(le.parameters,vi,e),void 0,A&2&&A&1?ci(le):yi(le));return A=Fe,R=pt,j}function Dn(le){if(Cw(le.parameters))return Dl(le.parameters,Y,e);const Fe=[];for(const j of le.parameters){if(j.initializer||j.dotDotDotToken)break;const it=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(j.name,8));Fe.push(it)}const pt=t.createNodeArray(Fe);return dt(pt,le.parameters),pt}function ci(le){const Fe=Cw(le.parameters)?void 0:Dl(le.parameters,Y,e);i();const pt=K,j=Q;K=new Set,Q=!1;const it=[];let Rt=t.updateBlock(le.body,jn(le.body.statements,Y,Hi));Rt=t.updateBlock(Rt,t.mergeLexicalEnvironment(Rt.statements,Qi(o(),le)));const Ye=t.createReturnStatement(r().createAsyncGeneratorHelper(t.createFunctionExpression(void 0,t.createToken(42),le.name&&t.getGeneratedNameForNode(le.name),void 0,Fe??[],void 0,Rt),!!(C&1))),_t=p>=2&&l.getNodeCheckFlags(le)&384;if(_t){Io();const yn=$F(t,l,le,K);V[as(yn)]=!0,Yh(it,[yn])}it.push(Ye);const Gt=t.updateBlock(le.body,it);return _t&&Q&&(l.getNodeCheckFlags(le)&256?qA(Gt,Wk):l.getNodeCheckFlags(le)&128&&qA(Gt,Ok)),K=pt,Q=j,Gt}function yi(le){i();let Fe=0;const pt=[],j=nt(le.body,Y,y4)??t.createBlock([]);Ko(j)&&(Fe=t.copyPrologue(j.statements,pt,!1,Y)),qr(pt,Qi(void 0,le));const it=o();if(Fe>0||bt(pt)||bt(it)){const Rt=t.converters.convertToFunctionBlock(j,!0);return Yh(pt,it),qr(pt,Rt.statements.slice(Fe)),t.updateBlock(Rt,dt(t.createNodeArray(pt),Rt.statements))}return j}function Qi(le,Fe){let pt=!1;for(const j of Fe.parameters)if(pt){if(ta(j.name)){if(j.name.elements.length>0){const it=u1(j,Y,e,0,t.getGeneratedNameForNode(j));if(bt(it)){const Rt=t.createVariableDeclarationList(it),Ye=t.createVariableStatement(void 0,Rt);pr(Ye,2097152),le=Rn(le,Ye)}}else if(j.initializer){const it=t.getGeneratedNameForNode(j),Rt=nt(j.initializer,Y,yt),Ye=t.createAssignment(it,Rt),_t=t.createExpressionStatement(Ye);pr(_t,2097152),le=Rn(le,_t)}}else if(j.initializer){const it=t.cloneNode(j.name);dt(it,j.name),pr(it,96);const Rt=nt(j.initializer,Y,yt);P_(Rt,3168);const Ye=t.createAssignment(it,Rt);dt(Ye,j),pr(Ye,3072);const _t=t.createBlock([t.createExpressionStatement(Ye)]);dt(_t,j),pr(_t,3905);const Gt=t.createTypeCheck(t.cloneNode(j.name),"undefined"),yn=t.createIfStatement(Gt,_t);Xu(yn),dt(yn,j),pr(yn,2101056),le=Rn(le,yn)}}else if(j.transformFlags&65536){pt=!0;const it=u1(j,Y,e,1,t.getGeneratedNameForNode(j),!1,!0);if(bt(it)){const Rt=t.createVariableDeclarationList(it),Ye=t.createVariableStatement(void 0,Rt);pr(Ye,2097152),le=Rn(le,Ye)}}return le}function Io(){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 fa(le,Fe,pt){if(T&1&&ft(Fe)){const j=l.getNodeCheckFlags(Fe)&384;if(j!==M){const it=M;M=j,h(le,Fe,pt),M=it;return}}else if(T&&V[as(Fe)]){const j=M;M=0,h(le,Fe,pt),M=j;return}h(le,Fe,pt)}function ka(le,Fe){return Fe=m(le,Fe),le===1&&M?Tn(Fe):Fe}function Tn(le){switch(le.kind){case 211:return wn(le);case 212:return He(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 He(le){return le.expression.kind===108?Ct(le.argumentExpression,le):le}function mt(le){const Fe=le.expression;if(zd(Fe)){const pt=Fr(Fe)?wn(Fe):He(Fe);return t.createCallExpression(t.createPropertyAccessExpression(pt,"call"),void 0,[t.createThis(),...le.arguments])}return le}function ft(le){const Fe=le.kind;return Fe===263||Fe===176||Fe===174||Fe===177||Fe===178}function Ct(le,Fe){return M&256?dt(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[le]),"value"),Fe):dt(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[le]),Fe)}}var zje=I({"src/compiler/transformers/es2018.ts"(){ra()}});function vle(e){const t=e.factory;return Dm(e,r);function r(s){return s.isDeclarationFile?s:xn(s,i,e)}function i(s){if(!(s.transformFlags&64))return s;switch(s.kind){case 299:return o(s);default:return xn(s,i,e)}}function o(s){return s.variableDeclaration?xn(s,i,e):t.updateCatchClause(s,t.createVariableDeclaration(t.createTempVariable(void 0)),nt(s.block,i,Ko))}}var Bje=I({"src/compiler/transformers/es2019.ts"(){ra()}});function yle(e){const{factory:t,hoistVariableDeclaration:r}=e;return Dm(e,i);function i(R){return R.isDeclarationFile?R:xn(R,o,e)}function o(R){if(!(R.transformFlags&32))return R;switch(R.kind){case 213:{const M=p(R,!1);return N.assertNotNode(M,sI),M}case 211:case 212:if(qu(R)){const M=m(R,!1,!1);return N.assertNotNode(M,sI),M}return xn(R,o,e);case 226:return R.operatorToken.kind===61?T(R):xn(R,o,e);case 220:return A(R);default:return xn(R,o,e)}}function s(R){N.assertNotNode(R,m4);const M=[R];for(;!R.questionDotToken&&!QE(R);)R=oa(bm(R.expression),qu),N.assertNotNode(R,m4),M.unshift(R);return{expression:R.expression,chain:M}}function l(R,M,C){const O=h(R.expression,M,C);return sI(O)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(R,O.expression),O.thisArg):t.updateParenthesizedExpression(R,O)}function u(R,M,C){if(qu(R))return m(R,M,C);let O=nt(R.expression,o,yt);N.assertNotNode(O,sI);let U;return M&&(c1(O)?U=O:(U=t.createTempVariable(r),O=t.createAssignment(U,O))),O=R.kind===211?t.updatePropertyAccessExpression(R,O,nt(R.name,o,Ve)):t.updateElementAccessExpression(R,O,nt(R.argumentExpression,o,yt)),U?t.createSyntheticReferenceExpression(O,U):O}function p(R,M){if(qu(R))return m(R,M,!1);if(Gd(R.expression)&&qu(hs(R.expression))){const C=l(R.expression,!0,!1),O=jn(R.arguments,o,yt);return sI(C)?dt(t.createFunctionCallCall(C.expression,C.thisArg,O),R):t.updateCallExpression(R,C,void 0,O)}return xn(R,o,e)}function h(R,M,C){switch(R.kind){case 217:return l(R,M,C);case 211:case 212:return u(R,M,C);case 213:return p(R,M);default:return nt(R,o,yt)}}function m(R,M,C){const{expression:O,chain:U}=s(R),K=h(bm(O),uS(U[0]),!1);let Q=sI(K)?K.thisArg:void 0,V=sI(K)?K.expression:K,se=t.restoreOuterExpressions(O,V,8);c1(V)||(V=t.createTempVariable(r),se=t.createAssignment(V,se));let G=V,ne;for(let ye=0;ye<U.length;ye++){const Y=U[ye];switch(Y.kind){case 211:case 212:ye===U.length-1&&M&&(c1(G)?ne=G:(ne=t.createTempVariable(r),G=t.createAssignment(ne,G))),G=Y.kind===211?t.createPropertyAccessExpression(G,nt(Y.name,o,Ve)):t.createElementAccessExpression(G,nt(Y.argumentExpression,o,yt));break;case 213:ye===0&&Q?(al(Q)||(Q=t.cloneNode(Q),P_(Q,3072)),G=t.createFunctionCallCall(G,Q.kind===108?t.createThis():Q,jn(Y.arguments,o,yt))):G=t.createCallExpression(G,void 0,jn(Y.arguments,o,yt));break}Nr(G,Y)}const he=C?t.createConditionalExpression(y(se,V,!0),void 0,t.createTrue(),void 0,t.createDeleteExpression(G)):t.createConditionalExpression(y(se,V,!0),void 0,t.createVoidZero(),void 0,G);return dt(he,R),ne?t.createSyntheticReferenceExpression(he,ne):he}function y(R,M,C){return t.createBinaryExpression(t.createBinaryExpression(R,t.createToken(C?37:38),t.createNull()),t.createToken(C?57:56),t.createBinaryExpression(M,t.createToken(C?37:38),t.createVoidZero()))}function T(R){let M=nt(R.left,o,yt),C=M;return c1(M)||(C=t.createTempVariable(r),M=t.createAssignment(C,M)),dt(t.createConditionalExpression(y(M,C),void 0,C,void 0,nt(R.right,o,yt)),R)}function A(R){return qu(hs(R.expression))?Nr(h(R.expression,!1,!0),R):t.updateDeleteExpression(R,nt(R.expression,o,yt))}}var Gje=I({"src/compiler/transformers/es2020.ts"(){ra()}});function ble(e){const{hoistVariableDeclaration:t,factory:r}=e;return Dm(e,i);function i(l){return l.isDeclarationFile?l:xn(l,o,e)}function o(l){return l.transformFlags&16?Xj(l)?s(l):xn(l,o,e):l}function s(l){const u=l.operatorToken,p=FP(u.kind);let h=hs(nt(l.left,o,Zd)),m=h;const y=hs(nt(l.right,o,yt));if(ws(h)){const T=c1(h.expression),A=T?h.expression:r.createTempVariable(t),R=T?h.expression:r.createAssignment(A,h.expression);if(Fr(h))m=r.createPropertyAccessExpression(A,h.name),h=r.createPropertyAccessExpression(R,h.name);else{const M=c1(h.argumentExpression),C=M?h.argumentExpression:r.createTempVariable(t);m=r.createElementAccessExpression(A,C),h=r.createElementAccessExpression(R,M?h.argumentExpression:r.createAssignment(C,h.argumentExpression))}}return r.createBinaryExpression(h,p,r.createParenthesizedExpression(r.createAssignment(m,y)))}}var Vje=I({"src/compiler/transformers/es2021.ts"(){ra()}});function Ele(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,startLexicalEnvironment:o,endLexicalEnvironment:s}=e;let l,u,p,h;return Dm(e,m);function m(pe){if(pe.isDeclarationFile)return pe;const Ce=nt(pe,y,$i);return zg(Ce,e.readEmitHelpers()),u=void 0,l=void 0,p=void 0,Ce}function y(pe){if(!(pe.transformFlags&4))return pe;switch(pe.kind){case 312:return T(pe);case 241:return A(pe);case 248:return R(pe);case 250:return M(pe);case 255:return O(pe);default:return xn(pe,y,e)}}function T(pe){const Ce=Hq(pe.statements);if(Ce){o(),l=new gI,u=[];const de=QIe(pe.statements),ie=[];qr(ie,Rw(pe.statements,y,Hi,0,de));let ve=de;for(;ve<pe.statements.length;){const Ee=pe.statements[ve];if(Ale(Ee)!==0){ve>de&&qr(ie,jn(pe.statements,y,Hi,de,ve-de));break}ve++}N.assert(ve<pe.statements.length,"Should have encountered at least one 'using' statement.");const Le=X(),Ue=U(pe.statements,ve,pe.statements.length,Le,ie);return l.size&&Rn(ie,t.createExportDeclaration(void 0,!1,t.createNamedExports(zo(l.values())))),qr(ie,s()),u.length&&ie.push(t.createVariableStatement(t.createModifiersFromModifierFlags(32),t.createVariableDeclarationList(u,1))),qr(ie,oe(Ue,Le,Ce===2)),h&&ie.push(t.createExportAssignment(void 0,!0,h)),t.updateSourceFile(pe,ie)}return xn(pe,y,e)}function A(pe){const Ce=Hq(pe.statements);if(Ce){const de=QIe(pe.statements),ie=X();return t.updateBlock(pe,[...Rw(pe.statements,y,Hi,0,de),...oe(U(pe.statements,de,pe.statements.length,ie,void 0),ie,Ce===2)])}return xn(pe,y,e)}function R(pe){return pe.initializer&&Sle(pe.initializer)?nt(t.createBlock([t.createVariableStatement(void 0,pe.initializer),t.updateForStatement(pe,void 0,pe.condition,pe.incrementor,pe.statement)]),y,Hi):xn(pe,y,e)}function M(pe){if(Sle(pe.initializer)){const Ce=pe.initializer;N.assertNode(Ce,Sle),N.assert(Ce.declarations.length===1,"ForInitializer may only have one declaration");const de=Ce.declarations[0];N.assert(!de.initializer,"ForInitializer may not have an initializer");const ie=Tle(Ce)===2,ve=t.getGeneratedNameForNode(de.name),Le=t.updateVariableDeclaration(de,de.name,void 0,void 0,ve),Ue=t.createVariableDeclarationList([Le],ie?6:4),Ee=t.createVariableStatement(void 0,Ue);return nt(t.updateForOfStatement(pe,pe.awaitModifier,t.createVariableDeclarationList([t.createVariableDeclaration(ve)],2),pe.expression,Ko(pe.statement)?t.updateBlock(pe.statement,[Ee,...pe.statement.statements]):t.createBlock([Ee,pe.statement],!0)),y,Hi)}return xn(pe,y,e)}function C(pe,Ce){return Hq(pe.statements)!==0?UR(pe)?t.updateCaseClause(pe,nt(pe.expression,y,yt),U(pe.statements,0,pe.statements.length,Ce,void 0)):t.updateDefaultClause(pe,U(pe.statements,0,pe.statements.length,Ce,void 0)):xn(pe,y,e)}function O(pe){const Ce=Uje(pe.caseBlock.clauses);if(Ce){const de=X();return oe([t.updateSwitchStatement(pe,nt(pe.expression,y,yt),t.updateCaseBlock(pe.caseBlock,pe.caseBlock.clauses.map(ie=>C(ie,de))))],de,Ce===2)}return xn(pe,y,e)}function U(pe,Ce,de,ie,ve){const Le=[];for(let De=Ce;De<de;De++){const Me=pe[De],We=Ale(Me);if(We){N.assertNode(Me,Ll);const Se=[];for(let je of Me.declarationList.declarations){if(!Ve(je.name)){Se.length=0;break}mp(je)&&(je=bp(e,je));const ot=nt(je.initializer,y,yt)??t.createVoidZero();Se.push(t.updateVariableDeclaration(je,je.name,void 0,void 0,r().createAddDisposableResourceHelper(ie,ot,We===2)))}if(Se.length){const je=t.createVariableDeclarationList(Se,2);Nr(je,Me.declarationList),dt(je,Me.declarationList),Ue(t.updateVariableStatement(Me,void 0,je));continue}}const At=y(Me);To(At)?At.forEach(Ue):At&&Ue(At)}return Le;function Ue(De){N.assertNode(De,Hi),Rn(Le,Ee(De))}function Ee(De){if(!ve)return De;switch(De.kind){case 272:case 271:case 278:case 262:return K(De,ve);case 277:return Q(De);case 263:return G(De);case 243:return ne(De)}return De}}function K(pe,Ce){Ce.push(pe)}function Q(pe){return pe.isExportEquals?se(pe):V(pe)}function V(pe){if(p)return pe;p=t.createUniqueName("_default",56),Y(p,!0,"default",pe);let Ce=pe.expression,de=$l(Ce);mp(de)&&(de=bp(e,de,!1,"default"),Ce=t.restoreOuterExpressions(Ce,de));const ie=t.createAssignment(p,Ce);return t.createExpressionStatement(ie)}function se(pe){if(h)return pe;h=t.createUniqueName("_default",56),i(h);const Ce=t.createAssignment(h,pe.expression);return t.createExpressionStatement(Ce)}function G(pe){if(!pe.name&&p)return pe;const Ce=Qr(pe,32),de=Qr(pe,2048);let ie=t.converters.convertToClassExpression(pe);return pe.name&&(Y(t.getLocalName(pe),Ce&&!de,void 0,pe),ie=t.createAssignment(t.getDeclarationName(pe),ie),mp(ie)&&(ie=bp(e,ie,!1)),Nr(ie,pe),Da(ie,pe),ac(ie,pe)),de&&!p&&(p=t.createUniqueName("_default",56),Y(p,!0,"default",pe),ie=t.createAssignment(p,ie),mp(ie)&&(ie=bp(e,ie,!1,"default")),Nr(ie,pe)),t.createExpressionStatement(ie)}function ne(pe){let Ce;const de=Qr(pe,32);for(const ie of pe.declarationList.declarations)ye(ie,de,ie),ie.initializer&&(Ce=Rn(Ce,he(ie)));if(Ce){const ie=t.createExpressionStatement(t.inlineExpressions(Ce));return Nr(ie,pe),ac(ie,pe),Da(ie,pe),ie}}function he(pe){N.assertIsDefined(pe.initializer);let Ce;Ve(pe.name)?(Ce=t.cloneNode(pe.name),pr(Ce,Ga(Ce)&-114689)):Ce=t.converters.convertToAssignmentPattern(pe.name);const de=t.createAssignment(Ce,pe.initializer);return Nr(de,pe),ac(de,pe),Da(de,pe),de}function ye(pe,Ce,de){if(ta(pe.name))for(const ie of pe.name.elements)Gc(ie)||ye(ie,Ce,de);else Y(pe.name,Ce,void 0,de)}function Y(pe,Ce,de,ie){const ve=al(pe)?pe:t.cloneNode(pe);if(Ce){if(de===void 0&&!Gg(ve)){const De=t.createVariableDeclaration(ve);ie&&Nr(De,ie),u.push(De);return}const Le=de!==void 0?ve:void 0,Ue=de!==void 0?de:ve,Ee=t.createExportSpecifier(!1,Le,Ue);ie&&Nr(Ee,ie),l.set(ve,Ee)}i(ve)}function X(){return t.createUniqueName("env")}function oe(pe,Ce,de){const ie=[],ve=t.createObjectLiteralExpression([t.createPropertyAssignment("stack",t.createArrayLiteralExpression()),t.createPropertyAssignment("error",t.createVoidZero()),t.createPropertyAssignment("hasError",t.createFalse())]),Le=t.createVariableDeclaration(Ce,void 0,void 0,ve),Ue=t.createVariableDeclarationList([Le],2),Ee=t.createVariableStatement(void 0,Ue);ie.push(Ee);const De=t.createBlock(pe,!0),Me=t.createUniqueName("e"),We=t.createCatchClause(Me,t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(Ce,"error"),Me)),t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(Ce,"hasError"),t.createTrue()))],!0));let At;if(de){const je=t.createUniqueName("result");At=t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(je,void 0,void 0,r().createDisposeResourcesHelper(Ce))],2)),t.createIfStatement(je,t.createExpressionStatement(t.createAwaitExpression(je)))],!0)}else At=t.createBlock([t.createExpressionStatement(r().createDisposeResourcesHelper(Ce))],!0);const Se=t.createTryStatement(De,We,At);return ie.push(Se),ie}}function QIe(e){for(let t=0;t<e.length;t++)if(!Sm(e[t])&&!DL(e[t]))return t;return 0}function Sle(e){return Vc(e)&&Tle(e)!==0}function Tle(e){return(e.flags&7)===6?2:(e.flags&7)===4?1:0}function jje(e){return Tle(e.declarationList)}function Ale(e){return Ll(e)?jje(e):0}function Hq(e){let t=0;for(const r of e){const i=Ale(r);if(i===2)return 2;i>t&&(t=i)}return t}function Uje(e){let t=0;for(const r of e){const i=Hq(r.statements);if(i===2)return 2;i>t&&(t=i)}return t}var Hje=I({"src/compiler/transformers/esnext.ts"(){ra()}});function Ile(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions();let o,s;return Dm(e,y);function l(){if(s.filenameDeclaration)return s.filenameDeclaration.name;const 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){const je=u(Se);return m(je)}function h(){return m("Fragment")}function m(Se){var je,ot;const Bt=Se==="createElement"?s.importSpecifier:O3(s.importSpecifier,i),vt=(ot=(je=s.utilizedImplicitRuntimeImports)==null?void 0:je.get(Bt))==null?void 0:ot.get(Se);if(vt)return vt.name;s.utilizedImplicitRuntimeImports||(s.utilizedImplicitRuntimeImports=new Map);let $e=s.utilizedImplicitRuntimeImports.get(Bt);$e||($e=new Map,s.utilizedImplicitRuntimeImports.set(Bt,$e));const It=t.createUniqueName(`_${Se}`,112),tn=t.createImportSpecifier(!1,t.createIdentifier(Se),It);return $oe(It,tn),$e.set(Se,tn),It}function y(Se){if(Se.isDeclarationFile)return Se;o=Se,s={},s.importSpecifier=w3(i,Se);let je=xn(Se,T,e);zg(je,e.readEmitHelpers());let ot=je.statements;if(s.filenameDeclaration&&(ot=hS(ot.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([s.filenameDeclaration],2)))),s.utilizedImplicitRuntimeImports){for(const[Bt,vt]of zo(s.utilizedImplicitRuntimeImports.entries()))if(sc(Se)){const $e=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(zo(vt.values()))),t.createStringLiteral(Bt),void 0);Gy($e,!1),ot=hS(ot.slice(),$e)}else if(Fp(Se)){const $e=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(zo(vt.values(),It=>t.createBindingElement(void 0,It.propertyName,It.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(Bt)]))],2));Gy($e,!1),ot=hS(ot.slice(),$e)}}return ot!==je.statements&&(je=t.updateSourceFile(je,ot)),s=void 0,je}function T(Se){return Se.transformFlags&2?A(Se):Se}function A(Se){switch(Se.kind){case 284:return U(Se,!1);case 285:return K(Se,!1);case 288:return Q(Se,!1);case 294:return At(Se);default:return xn(Se,T,e)}}function R(Se){switch(Se.kind){case 12:return ve(Se);case 294:return At(Se);case 284:return U(Se,!0);case 285:return K(Se,!0);case 288:return Q(Se,!0);default:return N.failBadSyntaxKind(Se)}}function M(Se){return Se.properties.some(je=>hc(je)&&(Ve(je.name)&&Er(je.name)==="__proto__"||Na(je.name)&&je.name.text==="__proto__"))}function C(Se){let je=!1;for(const ot of Se.attributes.properties)if(cI(ot)&&(!La(ot.expression)||ot.expression.properties.some(jv)))je=!0;else if(je&&w_(ot)&&Ve(ot.name)&&ot.name.escapedText==="key")return!0;return!1}function O(Se){return s.importSpecifier===void 0||C(Se)}function U(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 Q(Se,je){return(s.importSpecifier===void 0?Y:ye)(Se.openingFragment,Se.children,je,Se)}function V(Se){const je=se(Se);return je&&t.createObjectLiteralExpression([je])}function se(Se){const je=bR(Se);if(Ne(je)===1&&!je[0].dotDotDotToken){const Bt=R(je[0]);return Bt&&t.createPropertyAssignment("children",Bt)}const ot=eo(Se,R);return Ne(ot)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(ot)):void 0}function G(Se,je,ot,Bt){const vt=Me(Se),$e=je&&je.length?se(je):void 0,It=In(Se.attributes.properties,Mn=>!!Mn.name&&Ve(Mn.name)&&Mn.name.escapedText==="key"),tn=It?mn(Se.attributes.properties,Mn=>Mn!==It):Se.attributes.properties,rn=Ne(tn)?oe(tn,$e):t.createObjectLiteralExpression($e?[$e]:et);return ne(vt,rn,It,je||et,ot,Bt)}function ne(Se,je,ot,Bt,vt,$e){var It;const tn=bR(Bt),rn=Ne(tn)>1||!!((It=tn[0])!=null&&It.dotDotDotToken),Mn=[Se,je];if(ot&&Mn.push(ie(ot.initializer)),i.jsx===5){const gn=Pl(o);if(gn&&$i(gn)){ot===void 0&&Mn.push(t.createVoidZero()),Mn.push(rn?t.createTrue():t.createFalse());const Qt=ys(gn,$e.pos);Mn.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",l()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(Qt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(Qt.character+1))])),Mn.push(t.createThis())}}const $n=dt(t.createCallExpression(p(rn),void 0,Mn),$e);return vt&&Xu($n),$n}function he(Se,je,ot,Bt){const vt=Me(Se),$e=Se.attributes.properties,It=Ne($e)?oe($e):t.createNull(),tn=s.importSpecifier===void 0?EH(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,Se):m("createElement"),rn=Rae(t,tn,vt,It,eo(je,R),Bt);return ot&&Xu(rn),rn}function ye(Se,je,ot,Bt){let vt;if(je&&je.length){const $e=V(je);$e&&(vt=$e)}return ne(h(),vt||t.createObjectLiteralExpression([]),void 0,je,ot,Bt)}function Y(Se,je,ot,Bt){const vt=Dae(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,eo(je,R),Se,Bt);return ot&&Xu(vt),vt}function X(Se){return La(Se.expression)&&!M(Se.expression)?Zo(Se.expression.properties,je=>N.checkDefined(nt(je,T,Mg))):t.createSpreadAssignment(N.checkDefined(nt(Se.expression,T,yt)))}function oe(Se,je){const ot=os(i);return ot&&ot>=5?t.createObjectLiteralExpression(pe(Se,je)):Ce(Se,je)}function pe(Se,je){const ot=Cs(FB(Se,cI,(Bt,vt)=>Cs(Wt(Bt,$e=>vt?X($e):de($e)))));return je&&ot.push(je),ot}function Ce(Se,je){const ot=[];let Bt=[];for(const $e of Se){if(cI($e)){if(La($e.expression)&&!M($e.expression)){for(const It of $e.expression.properties){if(jv(It)){vt(),ot.push(N.checkDefined(nt(It.expression,T,yt)));continue}Bt.push(N.checkDefined(nt(It,T)))}continue}vt(),ot.push(N.checkDefined(nt($e.expression,T,yt)));continue}Bt.push(de($e))}return je&&Bt.push(je),vt(),ot.length&&!La(ot[0])&&ot.unshift(t.createObjectLiteralExpression()),ah(ot)||r().createAssignHelper(ot);function vt(){Bt.length&&(ot.push(t.createObjectLiteralExpression(Bt)),Bt=[])}}function de(Se){const je=We(Se),ot=ie(Se.initializer);return t.createPropertyAssignment(je,ot)}function ie(Se){if(Se===void 0)return t.createTrue();if(Se.kind===11){const je=Se.singleQuote!==void 0?Se.singleQuote:!e3(Se,o),ot=t.createStringLiteral(De(Se.text)||Se.text,je);return dt(ot,Se)}return Se.kind===294?Se.expression===void 0?t.createTrue():N.checkDefined(nt(Se.expression,T,yt)):sg(Se)?U(Se,!1):GS(Se)?K(Se,!1):t1(Se)?Q(Se,!1):N.failBadSyntaxKind(Se)}function ve(Se){const je=Le(Se.text);return je===void 0?void 0:t.createStringLiteral(je)}function Le(Se){let je,ot=0,Bt=-1;for(let vt=0;vt<Se.length;vt++){const $e=Se.charCodeAt(vt);Hu($e)?(ot!==-1&&Bt!==-1&&(je=Ue(je,Se.substr(ot,Bt-ot+1))),ot=-1):E_($e)||(Bt=vt,ot===-1&&(ot=vt))}return ot!==-1?Ue(je,Se.substr(ot)):je}function Ue(Se,je){const ot=Ee(je);return Se===void 0?ot:Se+" "+ot}function Ee(Se){return Se.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(je,ot,Bt,vt,$e,It,tn)=>{if($e)return jx(parseInt($e,10));if(It)return jx(parseInt(It,16));{const rn=ZIe.get(tn);return rn?jx(rn):je}})}function De(Se){const je=Ee(Se);return je===Se?void 0:je}function Me(Se){if(Se.kind===284)return Me(Se.openingElement);{const je=Se.tagName;return Ve(je)&&SR(je.escapedText)?t.createStringLiteral(Er(je)):Qm(je)?t.createStringLiteral(Er(je.namespace)+":"+Er(je.name)):Xk(t,je)}}function We(Se){const je=Se.name;if(Ve(je)){const ot=Er(je);return/^[A-Za-z_]\w*$/.test(ot)?je:t.createStringLiteral(ot)}return t.createStringLiteral(Er(je.namespace)+":"+Er(je.name))}function At(Se){const je=nt(Se.expression,T,yt);return Se.dotDotDotToken?t.createSpreadElement(je):je}}var ZIe,qje=I({"src/compiler/transformers/jsx.ts"(){ra(),ZIe=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 xle(e){const{factory:t,hoistVariableDeclaration:r}=e;return Dm(e,i);function i(p){return p.isDeclarationFile?p:xn(p,o,e)}function o(p){if(!(p.transformFlags&512))return p;switch(p.kind){case 226:return s(p);default:return xn(p,o,e)}}function s(p){switch(p.operatorToken.kind){case 68:return l(p);case 43:return u(p);default:return xn(p,o,e)}}function l(p){let h,m;const y=nt(p.left,o,yt),T=nt(p.right,o,yt);if($s(y)){const A=t.createTempVariable(r),R=t.createTempVariable(r);h=dt(t.createElementAccessExpression(dt(t.createAssignment(A,y.expression),y.expression),dt(t.createAssignment(R,y.argumentExpression),y.argumentExpression)),y),m=dt(t.createElementAccessExpression(A,R),y)}else if(Fr(y)){const A=t.createTempVariable(r);h=dt(t.createPropertyAccessExpression(dt(t.createAssignment(A,y.expression),y.expression),y.name),y),m=dt(t.createPropertyAccessExpression(A,y.name),y)}else h=y,m=y;return dt(t.createAssignment(h,dt(t.createGlobalMethodCall("Math","pow",[m,T]),p)),p)}function u(p){const h=nt(p.left,o,yt),m=nt(p.right,o,yt);return dt(t.createGlobalMethodCall("Math","pow",[h,m]),p)}}var Jje=I({"src/compiler/transformers/es2016.ts"(){ra()}});function exe(e,t){return{kind:e,expression:t}}function Rle(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),p=e.getEmitResolver(),h=e.onSubstituteNode,m=e.onEmitNode;e.onEmitNode=df,e.onSubstituteNode=kf;let y,T,A,R;function M(te){R=Rn(R,t.createVariableDeclaration(te))}let C,O;return Dm(e,U);function U(te){if(te.isDeclarationFile)return te;y=te,T=te.text;const lt=oe(te);return zg(lt,e.readEmitHelpers()),y=void 0,T=void 0,R=void 0,A=0,lt}function K(te,lt){const Ft=A;return A=(A&~te|lt)&32767,Ft}function Q(te,lt,Ft){A=(A&~lt|Ft)&-32768|te}function V(te){return(A&8192)!==0&&te.kind===253&&!te.expression}function se(te){return te.transformFlags&4194304&&(Im(te)||FS(te)||mae(te)||vP(te)||yP(te)||UR(te)||EP(te)||BS(te)||r1(te)||ZE(te)||Py(te,!1)||Ko(te))}function G(te){return(te.transformFlags&1024)!==0||C!==void 0||A&8192&&se(te)||Py(te,!1)&&ho(te)||(Em(te)&1)!==0}function ne(te){return G(te)?X(te,!1):te}function he(te){return G(te)?X(te,!0):te}function ye(te){if(G(te)){const lt=Pl(te);if(qo(lt)&&mc(lt)){const Ft=K(32670,16449),Vt=X(te,!1);return Q(Ft,229376,0),Vt}return X(te,!1)}return te}function Y(te){return te.kind===108?ec(te,!0):ne(te)}function X(te,lt){switch(te.kind){case 126:return;case 263:return Me(te);case 231:return We(te);case 169:return ka(te);case 262:return fn(te);case 219:return Gt(te);case 218:return yn(te);case 260:return En(te);case 80:return Ee(te);case 261:return ke(te);case 255:return pe(te);case 269:return Ce(te);case 241:return Oe(te,!1);case 252:case 251:return De(te);case 256:return Pi(te);case 246:case 247:return Vr(te,void 0);case 248:return vo(te,void 0);case 249:return Ri(te,void 0);case 250:return Jr(te,void 0);case 244:return Lt(te);case 210:return ko(te);case 299:return Di(te);case 304:return jc(te);case 167:return Us(te);case 209:return Es(te);case 213:return Uc(te);case 214:return sm(te);case 217:return L(te,lt);case 226:return me(te,lt);case 361:return J(te,lt);case 15:case 16:case 17:case 18:return na(te);case 11:return Zl(te);case 9:return yc(te);case 215:return ul(te);case 228:return vl(te);case 229:return vc(te);case 230:return $o(te);case 108:return ec(te,!1);case 110:return Le(te);case 236:return Hc(te);case 174:return Yo(te);case 177:case 178:return Sl(te);case 243:return Be(te);case 253:return ve(te);case 222:return Ue(te);default:return xn(te,ne,e)}}function oe(te){const lt=K(8064,64),Ft=[],Vt=[];i();const W=t.copyPrologue(te.statements,Ft,!1,ne);return qr(Vt,jn(te.statements,ne,Hi,W)),R&&Vt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(R))),t.mergeLexicalEnvironment(Ft,s()),le(Ft,te),Q(lt,0,0),t.updateSourceFile(te,dt(t.createNodeArray(So(Ft,Vt)),te.statements))}function pe(te){if(C!==void 0){const lt=C.allowedNonLabeledJumps;C.allowedNonLabeledJumps|=2;const Ft=xn(te,ne,e);return C.allowedNonLabeledJumps=lt,Ft}return xn(te,ne,e)}function Ce(te){const lt=K(7104,0),Ft=xn(te,ne,e);return Q(lt,0,0),Ft}function de(te){return Nr(t.createReturnStatement(ie()),te)}function ie(){return t.createUniqueName("_this",48)}function ve(te){return C?(C.nonLocalJumps|=8,V(te)&&(te=de(te)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),te.expression?N.checkDefined(nt(te.expression,ne,yt)):t.createVoidZero())]))):V(te)?de(te):xn(te,ne,e)}function Le(te){return A|=65536,A&2&&!(A&16384)&&(A|=131072),C?A&2?(C.containsLexicalThis=!0,te):C.thisName||(C.thisName=t.createUniqueName("this")):te}function Ue(te){return xn(te,he,e)}function Ee(te){return C&&p.isArgumentsLocalBinding(te)?C.argumentsName||(C.argumentsName=t.createUniqueName("arguments")):te.flags&256?Nr(dt(t.createIdentifier(Vi(te.escapedText)),te),te):te}function De(te){if(C){const lt=te.kind===252?2:4;if(!(te.label&&C.labels&&C.labels.get(Er(te.label))||!te.label&&C.allowedNonLabeledJumps<)){let Vt;const W=te.label;W?te.kind===252?(Vt=`break-${W.escapedText}`,Z(C,!0,Er(W),Vt)):(Vt=`continue-${W.escapedText}`,Z(C,!1,Er(W),Vt)):te.kind===252?(C.nonLocalJumps|=2,Vt="break"):(C.nonLocalJumps|=4,Vt="continue");let Te=t.createStringLiteral(Vt);if(C.loopOutParameters.length){const st=C.loopOutParameters;let qt;for(let rr=0;rr<st.length;rr++){const ii=Tp(st[rr],1);rr===0?qt=ii:qt=t.createBinaryExpression(qt,28,ii)}Te=t.createBinaryExpression(qt,28,Te)}return t.createReturnStatement(Te)}}return xn(te,ne,e)}function Me(te){const lt=t.createVariableDeclaration(t.getLocalName(te,!0),void 0,void 0,At(te));Nr(lt,te);const Ft=[],Vt=t.createVariableStatement(void 0,t.createVariableDeclarationList([lt]));if(Nr(Vt,te),dt(Vt,te),Xu(Vt),Ft.push(Vt),Qr(te,32)){const W=Qr(te,2048)?t.createExportDefault(t.getLocalName(te)):t.createExternalModuleExport(t.getLocalName(te));Nr(W,Vt),Ft.push(W)}return sh(Ft)}function We(te){return At(te)}function At(te){te.name&&jd();const lt=FE(te),Ft=t.createFunctionExpression(void 0,void 0,void 0,void 0,lt?[t.createParameterDeclaration(void 0,void 0,Gl())]:[],void 0,Se(te,lt));pr(Ft,Ga(te)&131072|1048576);const Vt=t.createPartiallyEmittedExpression(Ft);MR(Vt,te.end),pr(Vt,3072);const W=t.createPartiallyEmittedExpression(Vt);MR(W,Pa(T,te.pos)),pr(W,3072);const Te=t.createParenthesizedExpression(t.createCallExpression(W,void 0,lt?[N.checkDefined(nt(lt.expression,ne,yt))]:[]));return uP(Te,3,"* @class "),Te}function Se(te,lt){const Ft=[],Vt=t.getInternalName(te),W=Mj(Vt)?t.getGeneratedNameForNode(Vt):Vt;i(),je(Ft,te,lt),ot(Ft,te,W,lt),j(Ft,te);const Te=tU(Pa(T,te.members.end),20),st=t.createPartiallyEmittedExpression(W);MR(st,Te.end),pr(st,3072);const qt=t.createReturnStatement(st);QC(qt,Te.pos),pr(qt,3840),Ft.push(qt),Yh(Ft,s());const rr=t.createBlock(dt(t.createNodeArray(Ft),te.members),!0);return pr(rr,3072),rr}function je(te,lt,Ft){Ft&&te.push(dt(t.createExpressionStatement(r().createExtendsHelper(t.getInternalName(lt))),Ft))}function ot(te,lt,Ft,Vt){const W=C;C=void 0;const Te=K(32662,73),st=ng(lt),qt=Ud(st,Vt!==void 0),rr=t.createFunctionDeclaration(void 0,void 0,Ft,void 0,Bt(st,qt),void 0,tn(st,lt,Vt,qt));dt(rr,st||lt),Vt&&pr(rr,16),te.push(rr),Q(Te,229376,0),C=W}function Bt(te,lt){return Dl(te&&!lt?te.parameters:void 0,ne,e)||[]}function vt(te,lt){const Ft=[];o(),t.mergeLexicalEnvironment(Ft,s()),lt&&Ft.push(t.createReturnStatement(fa()));const Vt=t.createNodeArray(Ft);dt(Vt,te.members);const W=t.createBlock(Vt,!0);return dt(W,te),pr(W,3072),W}function $e(te){return Ll(te)&&Jn(te.declarationList.declarations,lt=>Ve(lt.name)&&!lt.initializer)}function It(te){if(yS(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:{const lt=te;return Za(lt.name)?!!Uo(lt.name,It):!1}}return!!Uo(te,It)}function tn(te,lt,Ft,Vt){const W=!!Ft&&$l(Ft.expression).kind!==106;if(!te)return vt(lt,W);const Te=[],st=[];o();const qt=t.copyStandardPrologue(te.body.statements,Te,0);(Vt||It(te.body))&&(A|=8192),qr(st,jn(te.body.statements,ne,Hi,qt));const rr=W||A&8192;wn(Te,te),Ct(Te,te,Vt),pt(Te,te),rr?Fe(Te,te,Io()):le(Te,te),t.mergeLexicalEnvironment(Te,s()),rr&&!Qi(te.body)&&st.push(t.createReturnStatement(ie()));const ii=t.createBlock(dt(t.createNodeArray([...Te,...st]),te.body.statements),!0);return dt(ii,te.body),yi(ii,te.body,Vt)}function rn(te){return al(te)&&Er(te)==="_this"}function Mn(te){return al(te)&&Er(te)==="_super"}function $n(te){return Ll(te)&&te.declarationList.declarations.length===1&&gn(te.declarationList.declarations[0])}function gn(te){return Oi(te)&&rn(te.name)&&!!te.initializer}function Qt(te){return Pc(te,!0)&&rn(te.left)}function Yt(te){return sa(te)&&Fr(te.expression)&&Mn(te.expression.expression)&&Ve(te.expression.name)&&(Er(te.expression.name)==="call"||Er(te.expression.name)==="apply")&&te.arguments.length>=1&&te.arguments[0].kind===110}function vi(te){return mr(te)&&te.operatorToken.kind===57&&te.right.kind===110&&Yt(te.left)}function so(te){return mr(te)&&te.operatorToken.kind===56&&mr(te.left)&&te.left.operatorToken.kind===38&&Mn(te.left.left)&&te.left.right.kind===106&&Yt(te.right)&&Er(te.right.expression.name)==="apply"}function Wi(te){return mr(te)&&te.operatorToken.kind===57&&te.right.kind===110&&so(te.left)}function Co(te){return Qt(te)&&vi(te.right)}function Ln(te){return Qt(te)&&Wi(te.right)}function Ci(te){return Yt(te)||vi(te)||Co(te)||so(te)||Wi(te)||Ln(te)}function Ar(te){for(let lt=0;lt<te.statements.length-1;lt++){const Ft=te.statements[lt];if(!$n(Ft))continue;const Vt=Ft.declarationList.declarations[0];if(Vt.initializer.kind!==110)continue;const W=lt;let Te=lt+1;for(;Te<te.statements.length;){const wa=te.statements[Te];if(Zc(wa)&&Ci($l(wa.expression)))break;if($e(wa)){Te++;continue}return te}const st=te.statements[Te];let qt=st.expression;Qt(qt)&&(qt=qt.right);const rr=t.updateVariableDeclaration(Vt,Vt.name,void 0,void 0,qt),ii=t.updateVariableDeclarationList(Ft.declarationList,[rr]),Yr=t.createVariableStatement(Ft.modifiers,ii);Nr(Yr,st),dt(Yr,st);const oo=t.createNodeArray([...te.statements.slice(0,W),...te.statements.slice(W+1,Te),Yr,...te.statements.slice(Te+1)]);return dt(oo,te.statements),t.updateBlock(te,oo)}return te}function sn(te,lt){for(const Vt of lt.statements)if(Vt.transformFlags&134217728&&!HF(Vt))return te;const Ft=!(lt.transformFlags&16384)&&!(A&65536)&&!(A&131072);for(let Vt=te.statements.length-1;Vt>0;Vt--){const W=te.statements[Vt];if(Im(W)&&W.expression&&rn(W.expression)){const Te=te.statements[Vt-1];let st;if(Zc(Te)&&Co($l(Te.expression)))st=Te.expression;else if(Ft&&$n(Te)){const ii=Te.declarationList.declarations[0];Ci($l(ii.initializer))&&(st=t.createAssignment(ie(),ii.initializer))}if(!st)break;const qt=t.createReturnStatement(st);Nr(qt,Te),dt(qt,Te);const rr=t.createNodeArray([...te.statements.slice(0,Vt-1),qt,...te.statements.slice(Vt+1)]);return dt(rr,te.statements),t.updateBlock(te,rr)}}return te}function tt(te){if($n(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:{const lt=te;return Za(lt.name)?t.replacePropertyName(lt,xn(lt.name,tt,void 0)):te}}return xn(te,tt,void 0)}function zt(te,lt){if(lt.transformFlags&16384||A&65536||A&131072)return te;for(const Ft of lt.statements)if(Ft.transformFlags&134217728&&!HF(Ft))return te;return t.updateBlock(te,jn(te.statements,tt,Hi))}function Dn(te){if(Yt(te)&&te.arguments.length===2&&Ve(te.arguments[1])&&Er(te.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(Gl(),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:{const lt=te;return Za(lt.name)?t.replacePropertyName(lt,xn(lt.name,Dn,void 0)):te}}return xn(te,Dn,void 0)}function ci(te){return t.updateBlock(te,jn(te.statements,Dn,Hi))}function yi(te,lt,Ft){const Vt=te;return te=Ar(te),te=sn(te,lt),te!==Vt&&(te=zt(te,lt)),Ft&&(te=ci(te)),te}function Qi(te){if(te.kind===253)return!0;if(te.kind===245){const lt=te;if(lt.elseStatement)return Qi(lt.thenStatement)&&Qi(lt.elseStatement)}else if(te.kind===241){const lt=el(te.statements);if(lt&&Qi(lt))return!0}return!1}function Io(){return pr(t.createThis(),8)}function fa(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(Gl(),t.createNull()),t.createFunctionApplyCall(Gl(),Io(),t.createIdentifier("arguments"))),Io())}function ka(te){if(!te.dotDotDotToken)return ta(te.name)?Nr(dt(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(te),void 0,void 0,void 0),te),te):te.initializer?Nr(dt(t.createParameterDeclaration(void 0,void 0,te.name,void 0,void 0,void 0),te),te):te}function Tn(te){return te.initializer!==void 0||ta(te.name)}function wn(te,lt){if(!bt(lt.parameters,Tn))return!1;let Ft=!1;for(const Vt of lt.parameters){const{name:W,initializer:Te,dotDotDotToken:st}=Vt;st||(ta(W)?Ft=He(te,Vt,W,Te)||Ft:Te&&(mt(te,Vt,W,Te),Ft=!0))}return Ft}function He(te,lt,Ft,Vt){return Ft.elements.length>0?(hS(te,pr(t.createVariableStatement(void 0,t.createVariableDeclarationList(u1(lt,ne,e,0,t.getGeneratedNameForNode(lt)))),2097152)),!0):Vt?(hS(te,pr(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(lt),N.checkDefined(nt(Vt,ne,yt)))),2097152)),!0):!1}function mt(te,lt,Ft,Vt){Vt=N.checkDefined(nt(Vt,ne,yt));const W=t.createIfStatement(t.createTypeCheck(t.cloneNode(Ft),"undefined"),pr(dt(t.createBlock([t.createExpressionStatement(pr(dt(t.createAssignment(pr(Ha(dt(t.cloneNode(Ft),Ft),Ft.parent),96),pr(Vt,96|Ga(Vt)|3072)),lt),3072))]),lt),3905));Xu(W),dt(W,lt),pr(W,2101056),hS(te,W)}function ft(te,lt){return!!(te&&te.dotDotDotToken&&!lt)}function Ct(te,lt,Ft){const Vt=[],W=el(lt.parameters);if(!ft(W,Ft))return!1;const Te=W.name.kind===80?Ha(dt(t.cloneNode(W.name),W.name),W.name.parent):t.createTempVariable(void 0);pr(Te,96);const st=W.name.kind===80?t.cloneNode(W.name):Te,qt=lt.parameters.length-1,rr=t.createLoopVariable();Vt.push(pr(dt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Te,void 0,void 0,t.createArrayLiteralExpression([]))])),W),2097152));const ii=t.createForStatement(dt(t.createVariableDeclarationList([t.createVariableDeclaration(rr,void 0,void 0,t.createNumericLiteral(qt))]),W),dt(t.createLessThan(rr,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),W),dt(t.createPostfixIncrement(rr),W),t.createBlock([Xu(dt(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(st,qt===0?rr:t.createSubtract(rr,t.createNumericLiteral(qt))),t.createElementAccessExpression(t.createIdentifier("arguments"),rr))),W))]));return pr(ii,2097152),Xu(ii),Vt.push(ii),W.name.kind!==80&&Vt.push(pr(dt(t.createVariableStatement(void 0,t.createVariableDeclarationList(u1(W,ne,e,0,st))),W),2097152)),XV(te,Vt),!0}function le(te,lt){return A&131072&<.kind!==219?(Fe(te,lt,t.createThis()),!0):!1}function Fe(te,lt,Ft){Nd();const Vt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ie(),void 0,void 0,Ft)]));pr(Vt,2100224),Da(Vt,lt),hS(te,Vt)}function pt(te,lt){if(A&32768){let Ft;switch(lt.kind){case 219:return te;case 174:case 177:case 178:Ft=t.createVoidZero();break;case 176:Ft=t.createPropertyAccessExpression(pr(t.createThis(),8),"constructor");break;case 262:case 218:Ft=t.createConditionalExpression(t.createLogicalAnd(pr(t.createThis(),8),t.createBinaryExpression(pr(t.createThis(),8),104,t.getLocalName(lt))),void 0,t.createPropertyAccessExpression(pr(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return N.failBadSyntaxKind(lt)}const Vt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,Ft)]));pr(Vt,2100224),hS(te,Vt)}return te}function j(te,lt){for(const Ft of lt.members)switch(Ft.kind){case 240:te.push(it(Ft));break;case 174:te.push(Rt(dg(lt,Ft),Ft,lt));break;case 177:case 178:const Vt=NS(lt.members,Ft);Ft===Vt.firstAccessor&&te.push(Ye(dg(lt,Ft),Vt,lt));break;case 176:case 175:break;default:N.failBadSyntaxKind(Ft,y&&y.fileName);break}}function it(te){return dt(t.createEmptyStatement(),te)}function Rt(te,lt,Ft){const Vt=M_(lt),W=Bv(lt),Te=hn(lt,lt,void 0,Ft),st=nt(lt.name,ne,oc);N.assert(st);let qt;if(!qi(st)&&lP(e.getCompilerOptions())){const ii=Za(st)?st.expression:Ve(st)?t.createStringLiteral(Vi(st.escapedText)):st;qt=t.createObjectDefinePropertyCall(te,ii,t.createPropertyDescriptor({value:Te,enumerable:!1,writable:!0,configurable:!0}))}else{const ii=HS(t,te,st,lt.name);qt=t.createAssignment(ii,Te)}pr(Te,3072),Da(Te,W);const rr=dt(t.createExpressionStatement(qt),lt);return Nr(rr,lt),ac(rr,Vt),pr(rr,96),rr}function Ye(te,lt,Ft){const Vt=t.createExpressionStatement(_t(te,lt,Ft,!1));return pr(Vt,3072),Da(Vt,Bv(lt.firstAccessor)),Vt}function _t(te,{firstAccessor:lt,getAccessor:Ft,setAccessor:Vt},W,Te){const st=Ha(dt(t.cloneNode(te),te),te.parent);pr(st,3136),Da(st,lt.name);const qt=nt(lt.name,ne,oc);if(N.assert(qt),qi(qt))return N.failBadSyntaxKind(qt,"Encountered unhandled private identifier while transforming ES2015.");const rr=TH(t,qt);pr(rr,3104),Da(rr,lt.name);const ii=[];if(Ft){const oo=hn(Ft,void 0,void 0,W);Da(oo,Bv(Ft)),pr(oo,1024);const wa=t.createPropertyAssignment("get",oo);ac(wa,M_(Ft)),ii.push(wa)}if(Vt){const oo=hn(Vt,void 0,void 0,W);Da(oo,Bv(Vt)),pr(oo,1024);const wa=t.createPropertyAssignment("set",oo);ac(wa,M_(Vt)),ii.push(wa)}ii.push(t.createPropertyAssignment("enumerable",Ft||Vt?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const Yr=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[st,rr,t.createObjectLiteralExpression(ii,!0)]);return Te&&Xu(Yr),Yr}function Gt(te){te.transformFlags&16384&&!(A&16384)&&(A|=131072);const lt=C;C=void 0;const Ft=K(15232,66),Vt=t.createFunctionExpression(void 0,void 0,void 0,void 0,Dl(te.parameters,ne,e),void 0,q(te));return dt(Vt,te),Nr(Vt,te),pr(Vt,16),Q(Ft,0,0),C=lt,Vt}function yn(te){const lt=Ga(te)&524288?K(32662,69):K(32670,65),Ft=C;C=void 0;const Vt=Dl(te.parameters,ne,e),W=q(te),Te=A&32768?t.getLocalName(te):te.name;return Q(lt,229376,0),C=Ft,t.updateFunctionExpression(te,void 0,te.asteriskToken,Te,void 0,Vt,void 0,W)}function fn(te){const lt=C;C=void 0;const Ft=K(32670,65),Vt=Dl(te.parameters,ne,e),W=q(te),Te=A&32768?t.getLocalName(te):te.name;return Q(Ft,229376,0),C=lt,t.updateFunctionDeclaration(te,jn(te.modifiers,ne,Aa),te.asteriskToken,Te,void 0,Vt,void 0,W)}function hn(te,lt,Ft,Vt){const W=C;C=void 0;const Te=Vt&&di(Vt)&&!aa(te)?K(32670,73):K(32670,65),st=Dl(te.parameters,ne,e),qt=q(te);return A&32768&&!Ft&&(te.kind===262||te.kind===218)&&(Ft=t.getGeneratedNameForNode(te)),Q(Te,229376,0),C=W,Nr(dt(t.createFunctionExpression(void 0,te.asteriskToken,Ft,void 0,st,void 0,qt),lt),te)}function q(te){let lt=!1,Ft=!1,Vt,W;const Te=[],st=[],qt=te.body;let rr;if(o(),Ko(qt)&&(rr=t.copyStandardPrologue(qt.statements,Te,0,!1),rr=t.copyCustomPrologue(qt.statements,st,rr,ne,F4),rr=t.copyCustomPrologue(qt.statements,st,rr,ne,z4)),lt=wn(st,te)||lt,lt=Ct(st,te,!1)||lt,Ko(qt))rr=t.copyCustomPrologue(qt.statements,st,rr,ne),Vt=qt.statements,qr(st,jn(qt.statements,ne,Hi,rr)),!lt&&qt.multiLine&&(lt=!0);else{N.assert(te.kind===219),Vt=A3(qt,-1);const Yr=te.equalsGreaterThanToken;!Ys(Yr)&&!Ys(qt)&&(uk(Yr,qt,y)?Ft=!0:lt=!0);const oo=nt(qt,ne,yt),wa=t.createReturnStatement(oo);dt(wa,qt),Hoe(wa,qt),pr(wa,2880),st.push(wa),W=qt}if(t.mergeLexicalEnvironment(Te,s()),pt(Te,te),le(Te,te),bt(Te)&&(lt=!0),st.unshift(...Te),Ko(qt)&&Hm(st,qt.statements))return qt;const ii=t.createBlock(dt(t.createNodeArray(st),Vt),lt);return dt(ii,te.body),!lt&&Ft&&pr(ii,1),W&&Uoe(ii,20,W),Nr(ii,te.body),ii}function Oe(te,lt){if(lt)return xn(te,ne,e);const Ft=A&256?K(7104,512):K(6976,128),Vt=xn(te,ne,e);return Q(Ft,0,0),Vt}function Lt(te){return xn(te,he,e)}function L(te,lt){return xn(te,lt?he:ne,e)}function me(te,lt){return Wv(te)?XS(te,ne,e,0,!lt):te.operatorToken.kind===28?t.updateBinaryExpression(te,N.checkDefined(nt(te.left,he,yt)),te.operatorToken,N.checkDefined(nt(te.right,lt?he:ne,yt))):xn(te,ne,e)}function J(te,lt){if(lt)return xn(te,he,e);let Ft;for(let W=0;W<te.elements.length;W++){const Te=te.elements[W],st=nt(Te,W<te.elements.length-1?he:ne,yt);(Ft||st!==Te)&&(Ft||(Ft=te.elements.slice(0,W)),N.assert(st),Ft.push(st))}const Vt=Ft?dt(t.createNodeArray(Ft),te.elements):te.elements;return t.updateCommaListExpression(te,Vt)}function fe(te){return te.declarationList.declarations.length===1&&!!te.declarationList.declarations[0].initializer&&!!(Em(te.declarationList.declarations[0].initializer)&1)}function Be(te){const lt=K(0,Qr(te,32)?32:0);let Ft;if(C&&!(te.declarationList.flags&7)&&!fe(te)){let Vt;for(const W of te.declarationList.declarations)if(uu(C,W),W.initializer){let Te;ta(W.name)?Te=XS(W,ne,e,0):(Te=t.createBinaryExpression(W.name,64,N.checkDefined(nt(W.initializer,ne,yt))),dt(Te,W)),Vt=Rn(Vt,Te)}Vt?Ft=dt(t.createExpressionStatement(t.inlineExpressions(Vt)),te):Ft=void 0}else Ft=xn(te,ne,e);return Q(lt,0,0),Ft}function ke(te){if(te.flags&7||te.transformFlags&524288){te.flags&7&&jd();const lt=jn(te.declarations,te.flags&1?en:En,Oi),Ft=t.createVariableDeclarationList(lt);return Nr(Ft,te),dt(Ft,te),ac(Ft,te),te.transformFlags&524288&&(ta(te.declarations[0].name)||ta(Xa(te.declarations).name))&&Da(Ft,Tt(lt)),Ft}return xn(te,ne,e)}function Tt(te){let lt=-1,Ft=-1;for(const Vt of te)lt=lt===-1?Vt.pos:Vt.pos===-1?lt:Math.min(lt,Vt.pos),Ft=Math.max(Ft,Vt.end);return Af(lt,Ft)}function kt(te){const lt=p.getNodeCheckFlags(te),Ft=lt&16384,Vt=lt&32768;return!((A&64)!==0||Ft&&Vt&&(A&512)!==0)&&(A&4096)===0&&(!p.isDeclarationWithCollidingName(te)||Vt&&!Ft&&(A&6144)===0)}function en(te){const lt=te.name;return ta(lt)?En(te):!te.initializer&&kt(te)?t.updateVariableDeclaration(te,te.name,void 0,void 0,t.createVoidZero()):xn(te,ne,e)}function En(te){const lt=K(32,0);let Ft;return ta(te.name)?Ft=u1(te,ne,e,0,void 0,(lt&32)!==0):Ft=xn(te,ne,e),Q(lt,0,0),Ft}function Gn(te){C.labels.set(Er(te.label),!0)}function qn(te){C.labels.set(Er(te.label),!1)}function Pi(te){C&&!C.labels&&(C.labels=new Map);const lt=fj(te,C&&Gn);return Py(lt,!1)?xi(lt,te):t.restoreEnclosingLabel(N.checkDefined(nt(lt,ne,Hi,t.liftToBlock)),te,C&&qn)}function xi(te,lt){switch(te.kind){case 246:case 247:return Vr(te,lt);case 248:return vo(te,lt);case 249:return Ri(te,lt);case 250:return Jr(te,lt)}}function ir(te,lt,Ft,Vt,W){const Te=K(te,lt),st=Ts(Ft,Vt,Te,W);return Q(Te,0,0),st}function Vr(te,lt){return ir(0,1280,te,lt)}function vo(te,lt){return ir(5056,3328,te,lt)}function Mi(te){return t.updateForStatement(te,nt(te.initializer,he,Sf),nt(te.condition,ne,yt),nt(te.incrementor,he,yt),N.checkDefined(nt(te.statement,ne,Hi,t.liftToBlock)))}function Ri(te,lt){return ir(3008,5376,te,lt)}function Jr(te,lt){return ir(3008,5376,te,lt,u.downlevelIteration?Ql:Fs)}function xo(te,lt,Ft){const Vt=[],W=te.initializer;if(Vc(W)){te.initializer.flags&7&&jd();const Te=Kc(W.declarations);if(Te&&ta(Te.name)){const st=u1(Te,ne,e,0,lt),qt=dt(t.createVariableDeclarationList(st),te.initializer);Nr(qt,te.initializer),Da(qt,Af(st[0].pos,Xa(st).end)),Vt.push(t.createVariableStatement(void 0,qt))}else Vt.push(dt(t.createVariableStatement(void 0,Nr(dt(t.createVariableDeclarationList([t.createVariableDeclaration(Te?Te.name:t.createTempVariable(void 0),void 0,void 0,lt)]),m0(W,-1)),W)),A3(W,-1)))}else{const Te=t.createAssignment(W,lt);Wv(Te)?Vt.push(t.createExpressionStatement(me(Te,!0))):(MR(Te,W.end),Vt.push(dt(t.createExpressionStatement(N.checkDefined(nt(Te,ne,yt))),A3(W,-1))))}if(Ft)return Nn(qr(Vt,Ft));{const Te=nt(te.statement,ne,Hi,t.liftToBlock);return N.assert(Te),Ko(Te)?t.updateBlock(Te,dt(t.createNodeArray(So(Vt,Te.statements)),Te.statements)):(Vt.push(Te),Nn(Vt))}}function Nn(te){return pr(t.createBlock(t.createNodeArray(te),!0),864)}function Fs(te,lt,Ft){const Vt=nt(te.expression,ne,yt);N.assert(Vt);const W=t.createLoopVariable(),Te=Ve(Vt)?t.getGeneratedNameForNode(Vt):t.createTempVariable(void 0);pr(Vt,96|Ga(Vt));const st=dt(t.createForStatement(pr(dt(t.createVariableDeclarationList([dt(t.createVariableDeclaration(W,void 0,void 0,t.createNumericLiteral(0)),m0(te.expression,-1)),dt(t.createVariableDeclaration(Te,void 0,void 0,Vt),te.expression)]),te.expression),4194304),dt(t.createLessThan(W,t.createPropertyAccessExpression(Te,"length")),te.expression),dt(t.createPostfixIncrement(W),te.expression),xo(te,t.createElementAccessExpression(Te,W),Ft)),te);return pr(st,512),dt(st,te),t.restoreEnclosingLabel(st,lt,C&&qn)}function Ql(te,lt,Ft,Vt){const W=nt(te.expression,ne,yt);N.assert(W);const Te=Ve(W)?t.getGeneratedNameForNode(W):t.createTempVariable(void 0),st=Ve(W)?t.getGeneratedNameForNode(Te):t.createTempVariable(void 0),qt=t.createUniqueName("e"),rr=t.getGeneratedNameForNode(qt),ii=t.createTempVariable(void 0),Yr=dt(r().createValuesHelper(W),te.expression),oo=t.createCallExpression(t.createPropertyAccessExpression(Te,"next"),void 0,[]);l(qt),l(ii);const wa=Vt&1024?t.inlineExpressions([t.createAssignment(qt,t.createVoidZero()),Yr]):Yr,Oa=pr(dt(t.createForStatement(pr(dt(t.createVariableDeclarationList([dt(t.createVariableDeclaration(Te,void 0,void 0,wa),te.expression),t.createVariableDeclaration(st,void 0,void 0,oo)]),te.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(st,"done")),t.createAssignment(st,oo),xo(te,t.createPropertyAccessExpression(st,"value"),Ft)),te),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(Oa,lt,C&&qn)]),t.createCatchClause(t.createVariableDeclaration(rr),pr(t.createBlock([t.createExpressionStatement(t.createAssignment(qt,t.createObjectLiteralExpression([t.createPropertyAssignment("error",rr)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([pr(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(st,t.createLogicalNot(t.createPropertyAccessExpression(st,"done"))),t.createAssignment(ii,t.createPropertyAccessExpression(Te,"return"))),t.createExpressionStatement(t.createFunctionCallCall(ii,Te,[]))),1)]),void 0,pr(t.createBlock([pr(t.createIfStatement(qt,t.createThrowStatement(t.createPropertyAccessExpression(qt,"error"))),1)]),1))]))}function ko(te){const lt=te.properties;let Ft=-1,Vt=!1;for(let qt=0;qt<lt.length;qt++){const rr=lt[qt];if(rr.transformFlags&1048576&&A&4||(Vt=N.checkDefined(rr.name).kind===167)){Ft=qt;break}}if(Ft<0)return xn(te,ne,e);const W=t.createTempVariable(l),Te=[],st=t.createAssignment(W,pr(t.createObjectLiteralExpression(jn(lt,ne,Mg,0,Ft),te.multiLine),Vt?131072:0));return te.multiLine&&Xu(st),Te.push(st),un(Te,te,W,Ft),Te.push(te.multiLine?Xu(Ha(dt(t.cloneNode(W),W),W.parent)):W),t.inlineExpressions(Te)}function cs(te){return(p.getNodeCheckFlags(te)&8192)!==0}function Vs(te){return zS(te)&&!!te.initializer&&cs(te.initializer)}function gl(te){return zS(te)&&!!te.condition&&cs(te.condition)}function cu(te){return zS(te)&&!!te.incrementor&&cs(te.incrementor)}function ho(te){return da(te)||Vs(te)}function da(te){return(p.getNodeCheckFlags(te)&4096)!==0}function uu(te,lt){te.hoistedLocalVariables||(te.hoistedLocalVariables=[]),Ft(lt.name);function Ft(Vt){if(Vt.kind===80)te.hoistedLocalVariables.push(Vt);else for(const W of Vt.elements)Gc(W)||Ft(W.name)}}function Ts(te,lt,Ft,Vt){if(!ho(te)){let Yr;C&&(Yr=C.allowedNonLabeledJumps,C.allowedNonLabeledJumps=6);const oo=Vt?Vt(te,lt,void 0,Ft):t.restoreEnclosingLabel(zS(te)?Mi(te):xn(te,ne,e),lt,C&&qn);return C&&(C.allowedNonLabeledJumps=Yr),oo}const W=wo(te),Te=[],st=C;C=W;const qt=Vs(te)?tu(te,W):void 0,rr=da(te)?du(te,W,st):void 0;C=st,qt&&Te.push(qt.functionDeclaration),rr&&Te.push(rr.functionDeclaration),nn(Te,W,st),qt&&Te.push(xc(qt.functionName,qt.containsYield));let ii;if(rr)if(Vt)ii=Vt(te,lt,rr.part,Ft);else{const Yr=Ca(te,qt,t.createBlock(rr.part,!0));ii=t.restoreEnclosingLabel(Yr,lt,C&&qn)}else{const Yr=Ca(te,qt,N.checkDefined(nt(te.statement,ne,Hi,t.liftToBlock)));ii=t.restoreEnclosingLabel(Yr,lt,C&&qn)}return Te.push(ii),Te}function Ca(te,lt,Ft){switch(te.kind){case 248:return ml(te,lt,Ft);case 249:return lc(te,Ft);case 250:return Lf(te,Ft);case 246:return Nl(te,Ft);case 247:return cl(te,Ft);default:return N.failBadSyntaxKind(te,"IterationStatement expected")}}function ml(te,lt,Ft){const Vt=te.condition&&cs(te.condition),W=Vt||te.incrementor&&cs(te.incrementor);return t.updateForStatement(te,nt(lt?lt.part:te.initializer,he,Sf),nt(Vt?void 0:te.condition,ne,yt),nt(W?void 0:te.incrementor,he,yt),Ft)}function Lf(te,lt){return t.updateForOfStatement(te,void 0,N.checkDefined(nt(te.initializer,ne,Sf)),N.checkDefined(nt(te.expression,ne,yt)),lt)}function lc(te,lt){return t.updateForInStatement(te,N.checkDefined(nt(te.initializer,ne,Sf)),N.checkDefined(nt(te.expression,ne,yt)),lt)}function Nl(te,lt){return t.updateDoStatement(te,lt,N.checkDefined(nt(te.expression,ne,yt)))}function cl(te,lt){return t.updateWhileStatement(te,N.checkDefined(nt(te.expression,ne,yt)),lt)}function wo(te){let lt;switch(te.kind){case 248:case 249:case 250:const Te=te.initializer;Te&&Te.kind===261&&(lt=Te);break}const Ft=[],Vt=[];if(lt&&Cv(lt)&7){const Te=Vs(te)||gl(te)||cu(te);for(const st of lt.declarations)Et(te,st,Ft,Vt,Te)}const W={loopParameters:Ft,loopOutParameters:Vt};return C&&(C.argumentsName&&(W.argumentsName=C.argumentsName),C.thisName&&(W.thisName=C.thisName),C.hoistedLocalVariables&&(W.hoistedLocalVariables=C.hoistedLocalVariables)),W}function nn(te,lt,Ft){let Vt;if(lt.argumentsName&&(Ft?Ft.argumentsName=lt.argumentsName:(Vt||(Vt=[])).push(t.createVariableDeclaration(lt.argumentsName,void 0,void 0,t.createIdentifier("arguments")))),lt.thisName&&(Ft?Ft.thisName=lt.thisName:(Vt||(Vt=[])).push(t.createVariableDeclaration(lt.thisName,void 0,void 0,t.createIdentifier("this")))),lt.hoistedLocalVariables)if(Ft)Ft.hoistedLocalVariables=lt.hoistedLocalVariables;else{Vt||(Vt=[]);for(const W of lt.hoistedLocalVariables)Vt.push(t.createVariableDeclaration(W))}if(lt.loopOutParameters.length){Vt||(Vt=[]);for(const W of lt.loopOutParameters)Vt.push(t.createVariableDeclaration(W.outParamName))}lt.conditionVariable&&(Vt||(Vt=[]),Vt.push(t.createVariableDeclaration(lt.conditionVariable,void 0,void 0,t.createFalse()))),Vt&&te.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(Vt)))}function js(te){return t.createVariableDeclaration(te.originalName,void 0,void 0,te.outParamName)}function tu(te,lt){const Ft=t.createUniqueName("_loop_init"),Vt=(te.initializer.transformFlags&1048576)!==0;let W=0;lt.containsLexicalThis&&(W|=16),Vt&&A&4&&(W|=524288);const Te=[];Te.push(t.createVariableStatement(void 0,te.initializer)),Ms(lt.loopOutParameters,2,1,Te);const st=t.createVariableStatement(void 0,pr(t.createVariableDeclarationList([t.createVariableDeclaration(Ft,void 0,void 0,pr(t.createFunctionExpression(void 0,Vt?t.createToken(42):void 0,void 0,void 0,void 0,void 0,N.checkDefined(nt(t.createBlock(Te,!0),ne,Ko))),W))]),4194304)),qt=t.createVariableDeclarationList(Wt(lt.loopOutParameters,js));return{functionName:Ft,containsYield:Vt,functionDeclaration:st,part:qt}}function du(te,lt,Ft){const Vt=t.createUniqueName("_loop");i();const W=nt(te.statement,ne,Hi,t.liftToBlock),Te=s(),st=[];(gl(te)||cu(te))&&(lt.conditionVariable=t.createUniqueName("inc"),te.incrementor?st.push(t.createIfStatement(lt.conditionVariable,t.createExpressionStatement(N.checkDefined(nt(te.incrementor,ne,yt))),t.createExpressionStatement(t.createAssignment(lt.conditionVariable,t.createTrue())))):st.push(t.createIfStatement(t.createLogicalNot(lt.conditionVariable),t.createExpressionStatement(t.createAssignment(lt.conditionVariable,t.createTrue())))),gl(te)&&st.push(t.createIfStatement(t.createPrefixUnaryExpression(54,N.checkDefined(nt(te.condition,ne,yt))),N.checkDefined(nt(t.createBreakStatement(),ne,Hi))))),N.assert(W),Ko(W)?qr(st,W.statements):st.push(W),Ms(lt.loopOutParameters,1,1,st),Yh(st,Te);const qt=t.createBlock(st,!0);Ko(W)&&Nr(qt,W);const rr=(te.statement.transformFlags&1048576)!==0;let ii=1048576;lt.containsLexicalThis&&(ii|=16),rr&&A&4&&(ii|=524288);const Yr=t.createVariableStatement(void 0,pr(t.createVariableDeclarationList([t.createVariableDeclaration(Vt,void 0,void 0,pr(t.createFunctionExpression(void 0,rr?t.createToken(42):void 0,void 0,void 0,lt.loopParameters,void 0,qt),ii))]),4194304)),oo=ue(Vt,lt,Ft,rr);return{functionName:Vt,containsYield:rr,functionDeclaration:Yr,part:oo}}function Tp(te,lt){const Ft=lt===0?te.outParamName:te.originalName,Vt=lt===0?te.originalName:te.outParamName;return t.createBinaryExpression(Vt,64,Ft)}function Ms(te,lt,Ft,Vt){for(const W of te)W.flags<&&Vt.push(t.createExpressionStatement(Tp(W,Ft)))}function xc(te,lt){const Ft=t.createCallExpression(te,void 0,[]),Vt=lt?t.createYieldExpression(t.createToken(42),pr(Ft,8388608)):Ft;return t.createExpressionStatement(Vt)}function ue(te,lt,Ft,Vt){const W=[],Te=!(lt.nonLocalJumps&-5)&&!lt.labeledNonLocalBreaks&&!lt.labeledNonLocalContinues,st=t.createCallExpression(te,void 0,Wt(lt.loopParameters,rr=>rr.name)),qt=Vt?t.createYieldExpression(t.createToken(42),pr(st,8388608)):st;if(Te)W.push(t.createExpressionStatement(qt)),Ms(lt.loopOutParameters,1,0,W);else{const rr=t.createUniqueName("state"),ii=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(rr,void 0,void 0,qt)]));if(W.push(ii),Ms(lt.loopOutParameters,1,0,W),lt.nonLocalJumps&8){let Yr;Ft?(Ft.nonLocalJumps|=8,Yr=t.createReturnStatement(rr)):Yr=t.createReturnStatement(t.createPropertyAccessExpression(rr,"value")),W.push(t.createIfStatement(t.createTypeCheck(rr,"object"),Yr))}if(lt.nonLocalJumps&2&&W.push(t.createIfStatement(t.createStrictEquality(rr,t.createStringLiteral("break")),t.createBreakStatement())),lt.labeledNonLocalBreaks||lt.labeledNonLocalContinues){const Yr=[];we(lt.labeledNonLocalBreaks,!0,rr,Ft,Yr),we(lt.labeledNonLocalContinues,!1,rr,Ft,Yr),W.push(t.createSwitchStatement(rr,t.createCaseBlock(Yr)))}}return W}function Z(te,lt,Ft,Vt){lt?(te.labeledNonLocalBreaks||(te.labeledNonLocalBreaks=new Map),te.labeledNonLocalBreaks.set(Ft,Vt)):(te.labeledNonLocalContinues||(te.labeledNonLocalContinues=new Map),te.labeledNonLocalContinues.set(Ft,Vt))}function we(te,lt,Ft,Vt,W){te&&te.forEach((Te,st)=>{const qt=[];if(!Vt||Vt.labels&&Vt.labels.get(st)){const rr=t.createIdentifier(st);qt.push(lt?t.createBreakStatement(rr):t.createContinueStatement(rr))}else Z(Vt,lt,st,Te),qt.push(t.createReturnStatement(Ft));W.push(t.createCaseClause(t.createStringLiteral(Te),qt))})}function Et(te,lt,Ft,Vt,W){const Te=lt.name;if(ta(Te))for(const st of Te.elements)Gc(st)||Et(te,st,Ft,Vt,W);else{Ft.push(t.createParameterDeclaration(void 0,void 0,Te));const st=p.getNodeCheckFlags(lt);if(st&65536||W){const qt=t.createUniqueName("out_"+Er(Te));let rr=0;st&65536&&(rr|=1),zS(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)),Vt.push({flags:rr,originalName:Te,outParamName:qt})}}}function un(te,lt,Ft,Vt){const W=lt.properties,Te=W.length;for(let st=Vt;st<Te;st++){const qt=W[st];switch(qt.kind){case 177:case 178:const rr=NS(lt.properties,qt);qt===rr.firstAccessor&&te.push(_t(Ft,rr,lt,!!lt.multiLine));break;case 174:te.push(jr(qt,Ft,lt,lt.multiLine));break;case 303:te.push(Sr(qt,Ft,lt.multiLine));break;case 304:te.push(vr(qt,Ft,lt.multiLine));break;default:N.failBadSyntaxKind(lt);break}}}function Sr(te,lt,Ft){const Vt=t.createAssignment(HS(t,lt,N.checkDefined(nt(te.name,ne,oc))),N.checkDefined(nt(te.initializer,ne,yt)));return dt(Vt,te),Ft&&Xu(Vt),Vt}function vr(te,lt,Ft){const Vt=t.createAssignment(HS(t,lt,N.checkDefined(nt(te.name,ne,oc))),t.cloneNode(te.name));return dt(Vt,te),Ft&&Xu(Vt),Vt}function jr(te,lt,Ft,Vt){const W=t.createAssignment(HS(t,lt,N.checkDefined(nt(te.name,ne,oc))),hn(te,te,void 0,Ft));return dt(W,te),Vt&&Xu(W),W}function Di(te){const lt=K(7104,0);let Ft;if(N.assert(!!te.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),ta(te.variableDeclaration.name)){const Vt=t.createTempVariable(void 0),W=t.createVariableDeclaration(Vt);dt(W,te.variableDeclaration);const Te=u1(te.variableDeclaration,ne,e,0,Vt),st=t.createVariableDeclarationList(Te);dt(st,te.variableDeclaration);const qt=t.createVariableStatement(void 0,st);Ft=t.updateCatchClause(te,W,Mr(te.block,qt))}else Ft=xn(te,ne,e);return Q(lt,0,0),Ft}function Mr(te,lt){const Ft=jn(te.statements,ne,Hi);return t.updateBlock(te,[lt,...Ft])}function Yo(te){N.assert(!Za(te.name));const lt=hn(te,m0(te,-1),void 0,void 0);return pr(lt,1024|Ga(lt)),dt(t.createPropertyAssignment(te.name,lt),te)}function Sl(te){N.assert(!Za(te.name));const lt=C;C=void 0;const Ft=K(32670,65);let Vt;const W=Dl(te.parameters,ne,e),Te=q(te);return te.kind===177?Vt=t.updateGetAccessorDeclaration(te,te.modifiers,te.name,W,te.type,Te):Vt=t.updateSetAccessorDeclaration(te,te.modifiers,te.name,W,Te),Q(Ft,229376,0),C=lt,Vt}function jc(te){return dt(t.createPropertyAssignment(te.name,Ee(t.cloneNode(te.name))),te)}function Us(te){return xn(te,ne,e)}function vc(te){return xn(te,ne,e)}function Es(te){return bt(te.elements,$m)?_d(te.elements,!1,!!te.multiLine,!!te.elements.hasTrailingComma):xn(te,ne,e)}function Uc(te){if(Em(te)&1)return ip(te);const lt=$l(te.expression);return lt.kind===108||zd(lt)||bt(te.arguments,$m)?wc(te,!0):t.updateCallExpression(te,N.checkDefined(nt(te.expression,Y,yt)),void 0,jn(te.arguments,ne,yt))}function ip(te){const lt=oa(oa($l(te.expression),Gs).body,Ko),Ft=Hd=>Ll(Hd)&&!!Ua(Hd.declarationList.declarations).initializer,Vt=C;C=void 0;const W=jn(lt.statements,ye,Hi);C=Vt;const Te=mn(W,Ft),st=mn(W,Hd=>!Ft(Hd)),rr=oa(Ua(Te),Ll).declarationList.declarations[0],ii=$l(rr.initializer);let Yr=ri(ii,Pc);!Yr&&mr(ii)&&ii.operatorToken.kind===28&&(Yr=ri(ii.left,Pc));const oo=oa(Yr?$l(Yr.right):ii,sa),wa=oa($l(oo.expression),Os),Oa=wa.body.statements;let Ol=0,pu=-1;const Rc=[];if(Yr){const Hd=ri(Oa[Ol],Zc);Hd&&(Rc.push(Hd),Ol++),Rc.push(Oa[Ol]),Ol++,Rc.push(t.createExpressionStatement(t.createAssignment(Yr.left,oa(rr.name,Ve))))}for(;!Im(Rv(Oa,pu));)pu--;qr(Rc,Oa,Ol,pu),pu<-1&&qr(Rc,Oa,pu+1);const Ip=ri(Rv(Oa,pu),Im);for(const Hd of st)Im(Hd)&&(Ip!=null&&Ip.expression)&&!Ve(Ip.expression)?Rc.push(Ip):Rc.push(Hd);return qr(Rc,Te,1),t.restoreOuterExpressions(te.expression,t.restoreOuterExpressions(rr.initializer,t.restoreOuterExpressions(Yr&&Yr.right,t.updateCallExpression(oo,t.restoreOuterExpressions(oo.expression,t.updateFunctionExpression(wa,void 0,void 0,void 0,void 0,wa.parameters,void 0,t.updateBlock(wa.body,Rc))),void 0,oo.arguments))))}function wc(te,lt){if(te.transformFlags&32768||te.expression.kind===108||zd($l(te.expression))){const{target:Ft,thisArg:Vt}=t.createCallBinding(te.expression,l);te.expression.kind===108&&pr(Vt,8);let W;if(te.transformFlags&32768?W=t.createFunctionApplyCall(N.checkDefined(nt(Ft,Y,yt)),te.expression.kind===108?Vt:N.checkDefined(nt(Vt,ne,yt)),_d(te.arguments,!0,!1,!1)):W=dt(t.createFunctionCallCall(N.checkDefined(nt(Ft,Y,yt)),te.expression.kind===108?Vt:N.checkDefined(nt(Vt,ne,yt)),jn(te.arguments,ne,yt)),te),te.expression.kind===108){const Te=t.createLogicalOr(W,Io());W=lt?t.createAssignment(ie(),Te):Te}return Nr(W,te)}return yS(te)&&(A|=131072),xn(te,ne,e)}function sm(te){if(bt(te.arguments,$m)){const{target:lt,thisArg:Ft}=t.createCallBinding(t.createPropertyAccessExpression(te.expression,"bind"),l);return t.createNewExpression(t.createFunctionApplyCall(N.checkDefined(nt(lt,ne,yt)),Ft,_d(t.createNodeArray([t.createVoidZero(),...te.arguments]),!0,!1,!1)),void 0,[])}return xn(te,ne,e)}function _d(te,lt,Ft,Vt){const W=te.length,Te=Cs(FB(te,Pe,(ii,Yr,oo,wa)=>Yr(ii,Ft,Vt&&wa===W)));if(Te.length===1){const ii=Te[0];if(lt&&!u.downlevelIteration||bU(ii.expression)||dP(ii.expression,"___spreadArray"))return ii.expression}const st=r(),qt=Te[0].kind!==0;let rr=qt?t.createArrayLiteralExpression():Te[0].expression;for(let ii=qt?0:1;ii<Te.length;ii++){const Yr=Te[ii];rr=st.createSpreadArrayHelper(rr,Yr.expression,Yr.kind===1&&!lt)}return rr}function Pe(te){return $m(te)?Ot:yo}function Ot(te){return Wt(te,Xn)}function Xn(te){N.assertNode(te,$m);let lt=nt(te.expression,ne,yt);N.assert(lt);const Ft=dP(lt,"___read");let Vt=Ft||bU(lt)?2:1;return u.downlevelIteration&&Vt===1&&!fd(lt)&&!Ft&&(lt=r().createReadHelper(lt,void 0),Vt=2),exe(Vt,lt)}function yo(te,lt,Ft){const Vt=t.createArrayLiteralExpression(jn(t.createNodeArray(te,Ft),ne,yt),lt);return exe(0,Vt)}function $o(te){return nt(te.expression,ne,yt)}function na(te){return dt(t.createStringLiteral(te.text),te)}function Zl(te){return te.hasExtendedUnicodeEscape?dt(t.createStringLiteral(te.text),te):te}function yc(te){return te.numericLiteralFlags&384?dt(t.createNumericLiteral(te.text),te):te}function ul(te){return jq(e,te,ne,y,M,1)}function vl(te){let lt=t.createStringLiteral(te.head.text);for(const Ft of te.templateSpans){const Vt=[N.checkDefined(nt(Ft.expression,ne,yt))];Ft.literal.text.length>0&&Vt.push(t.createStringLiteral(Ft.literal.text)),lt=t.createCallExpression(t.createPropertyAccessExpression(lt,"concat"),void 0,Vt)}return dt(lt,te)}function Gl(){return t.createUniqueName("_super",48)}function ec(te,lt){const Ft=A&8&&!lt?t.createPropertyAccessExpression(Nr(Gl(),te),"prototype"):Gl();return Nr(Ft,te),ac(Ft,te),Da(Ft,te),Ft}function Hc(te){return te.keywordToken===105&&te.name.escapedText==="target"?(A|=32768,t.createUniqueName("_newTarget",48)):te}function df(te,lt,Ft){if(O&1&&ea(lt)){const Vt=K(32670,Ga(lt)&16?81:65);m(te,lt,Ft),Q(Vt,0,0);return}m(te,lt,Ft)}function jd(){O&2||(O|=2,e.enableSubstitution(80))}function Nd(){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 kf(te,lt){return lt=h(te,lt),te===1?qg(lt):Ve(lt)?V_(lt):lt}function V_(te){if(O&2&&!AH(te)){const lt=No(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 qg(te){switch(te.kind){case 80:return Bu(te);case 110:return Ap(te)}return te}function Bu(te){if(O&2&&!AH(te)){const lt=p.getReferencedDeclarationWithCollidingName(te);if(lt&&!(di(lt)&&Jg(lt,te)))return dt(t.getGeneratedNameForNode(Lo(lt)),te)}return te}function Jg(te,lt){let Ft=No(lt);if(!Ft||Ft===te||Ft.end<=te.pos||Ft.pos>=te.end)return!1;const Vt=_h(te);for(;Ft;){if(Ft===Vt||Ft===te)return!1;if(Yc(Ft)&&Ft.parent===te)return!0;Ft=Ft.parent}return!1}function Ap(te){return O&1&&A&16?dt(ie(),te):te}function dg(te,lt){return aa(lt)?t.getInternalName(te):t.createPropertyAccessExpression(t.getInternalName(te),"prototype")}function Ud(te,lt){if(!te||!lt||bt(te.parameters))return!1;const Ft=Kc(te.body.statements);if(!Ft||!Ys(Ft)||Ft.kind!==244)return!1;const Vt=Ft.expression;if(!Ys(Vt)||Vt.kind!==213)return!1;const W=Vt.expression;if(!Ys(W)||W.kind!==108)return!1;const Te=ah(Vt.arguments);if(!Te||!Ys(Te)||Te.kind!==230)return!1;const st=Te.expression;return Ve(st)&&st.escapedText==="arguments"}}var Kje=I({"src/compiler/transformers/es2015.ts"(){ra()}});function Dle(e){const{factory:t}=e,r=e.getCompilerOptions();let i,o;(r.jsx===1||r.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=u,e.enableEmitNotification(286),e.enableEmitNotification(287),e.enableEmitNotification(285),o=[]);const s=e.onSubstituteNode;return e.onSubstituteNode=p,e.enableSubstitution(211),e.enableSubstitution(303),Dm(e,l);function l(T){return T}function u(T,A,R){switch(A.kind){case 286:case 287:case 285:const M=A.tagName;o[Wu(M)]=!0;break}i(T,A,R)}function p(T,A){return A.id&&o&&o[A.id]?s(T,A):(A=s(T,A),Fr(A)?h(A):hc(A)?m(A):A)}function h(T){if(qi(T.name))return T;const A=y(T.name);return A?dt(t.createElementAccessExpression(T.expression,A),T):T}function m(T){const A=Ve(T.name)&&y(T.name);return A?t.updatePropertyAssignment(T,A,T.initializer):T}function y(T){const A=r0(T);if(A!==void 0&&A>=83&&A<=118)return dt(t.createStringLiteralFromNode(T),T)}}var Xje=I({"src/compiler/transformers/es5.ts"(){ra()}});function Yje(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 Nle(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistFunctionDeclaration:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),p=os(u),h=e.getEmitResolver(),m=e.onSubstituteNode;e.onSubstituteNode=Lt;let y,T,A,R,M,C,O,U,K,Q,V=1,se,G,ne,he,ye=0,Y=0,X,oe,pe,Ce,de,ie,ve,Le;return Dm(e,Ue);function Ue(Pe){if(Pe.isDeclarationFile||!(Pe.transformFlags&2048))return Pe;const Ot=xn(Pe,Ee,e);return zg(Ot,e.readEmitHelpers()),Ot}function Ee(Pe){const Ot=Pe.transformFlags;return R?De(Pe):A?Me(Pe):Bs(Pe)&&Pe.asteriskToken?At(Pe):Ot&2048?xn(Pe,Ee,e):Pe}function De(Pe){switch(Pe.kind){case 246:return fa(Pe);case 247:return Tn(Pe);case 255:return _t(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 ot(Pe);case 243:return vt(Pe);case 248:return He(Pe);case 249:return ft(Pe);case 252:return pt(Pe);case 251:return le(Pe);case 253:return it(Pe);default:return Pe.transformFlags&1048576?We(Pe):Pe.transformFlags&4196352?xn(Pe,Ee,e):Pe}}function We(Pe){switch(Pe.kind){case 226:return $e(Pe);case 361:return Mn(Pe);case 227:return gn(Pe);case 229:return Qt(Pe);case 209:return Yt(Pe);case 210:return so(Pe);case 212:return Wi(Pe);case 213:return Co(Pe);case 214:return Ln(Pe);default:return xn(Pe,Ee,e)}}function At(Pe){switch(Pe.kind){case 262:return Se(Pe);case 218:return je(Pe);default:return N.failBadSyntaxKind(Pe)}}function Se(Pe){if(Pe.asteriskToken)Pe=Nr(dt(t.createFunctionDeclaration(Pe.modifiers,void 0,Pe.name,void 0,Dl(Pe.parameters,Ee,e),void 0,Bt(Pe.body)),Pe),Pe);else{const Ot=A,Xn=R;A=!1,R=!1,Pe=xn(Pe,Ee,e),A=Ot,R=Xn}if(A){s(Pe);return}else return Pe}function je(Pe){if(Pe.asteriskToken)Pe=Nr(dt(t.createFunctionExpression(void 0,void 0,Pe.name,void 0,Dl(Pe.parameters,Ee,e),void 0,Bt(Pe.body)),Pe),Pe);else{const Ot=A,Xn=R;A=!1,R=!1,Pe=xn(Pe,Ee,e),A=Ot,R=Xn}return Pe}function ot(Pe){const Ot=A,Xn=R;return A=!1,R=!1,Pe=xn(Pe,Ee,e),A=Ot,R=Xn,Pe}function Bt(Pe){const Ot=[],Xn=A,yo=R,$o=M,na=C,Zl=O,yc=U,ul=K,vl=Q,Gl=V,ec=se,Hc=G,df=ne,jd=he;A=!0,R=!1,M=void 0,C=void 0,O=void 0,U=void 0,K=void 0,Q=void 0,V=1,se=void 0,G=void 0,ne=void 0,he=t.createTempVariable(void 0),i();const Nd=t.copyPrologue(Pe.statements,Ot,!1,Ee);Ci(Pe.statements,Nd);const kf=Z();return Yh(Ot,o()),Ot.push(t.createReturnStatement(kf)),A=Xn,R=yo,M=$o,C=na,O=Zl,U=yc,K=ul,Q=vl,V=Gl,se=ec,G=Hc,ne=df,he=jd,dt(t.createBlock(Ot,Pe.multiLine),Pe)}function vt(Pe){if(Pe.transformFlags&1048576){ci(Pe.declarationList);return}else{if(Ga(Pe)&2097152)return Pe;for(const Xn of Pe.declarationList.declarations)l(Xn.name);const Ot=VC(Pe.declarationList);return Ot.length===0?void 0:Da(t.createExpressionStatement(t.inlineExpressions(Wt(Ot,yi))),Pe)}}function $e(Pe){const Ot=Oj(Pe);switch(Ot){case 0:return tn(Pe);case 1:return It(Pe);default:return N.assertNever(Ot)}}function It(Pe){const{left:Ot,right:Xn}=Pe;if(q(Xn)){let yo;switch(Ot.kind){case 211:yo=t.updatePropertyAccessExpression(Ot,J(N.checkDefined(nt(Ot.expression,Ee,Zd))),Ot.name);break;case 212:yo=t.updateElementAccessExpression(Ot,J(N.checkDefined(nt(Ot.expression,Ee,Zd))),J(N.checkDefined(nt(Ot.argumentExpression,Ee,yt))));break;default:yo=N.checkDefined(nt(Ot,Ee,yt));break}const $o=Pe.operatorToken.kind;return WP($o)?dt(t.createAssignment(yo,dt(t.createBinaryExpression(J(yo),FP($o),N.checkDefined(nt(Xn,Ee,yt))),Pe)),Pe):t.updateBinaryExpression(Pe,yo,Pe.operatorToken,N.checkDefined(nt(Xn,Ee,yt)))}return xn(Pe,Ee,e)}function tn(Pe){return q(Pe.right)?Gie(Pe.operatorToken.kind)?$n(Pe):Pe.operatorToken.kind===28?rn(Pe):t.updateBinaryExpression(Pe,J(N.checkDefined(nt(Pe.left,Ee,yt))),Pe.operatorToken,N.checkDefined(nt(Pe.right,Ee,yt))):xn(Pe,Ee,e)}function rn(Pe){let Ot=[];return Xn(Pe.left),Xn(Pe.right),t.inlineExpressions(Ot);function Xn(yo){mr(yo)&&yo.operatorToken.kind===28?(Xn(yo.left),Xn(yo.right)):(q(yo)&&Ot.length>0&&(ue(1,[t.createExpressionStatement(t.inlineExpressions(Ot))]),Ot=[]),Ot.push(N.checkDefined(nt(yo,Ee,yt))))}}function Mn(Pe){let Ot=[];for(const Xn of Pe.elements)mr(Xn)&&Xn.operatorToken.kind===28?Ot.push(rn(Xn)):(q(Xn)&&Ot.length>0&&(ue(1,[t.createExpressionStatement(t.inlineExpressions(Ot))]),Ot=[]),Ot.push(N.checkDefined(nt(Xn,Ee,yt))));return t.inlineExpressions(Ot)}function $n(Pe){const Ot=Be(),Xn=fe();return cl(Xn,N.checkDefined(nt(Pe.left,Ee,yt)),Pe.left),Pe.operatorToken.kind===56?js(Ot,Xn,Pe.left):nn(Ot,Xn,Pe.left),cl(Xn,N.checkDefined(nt(Pe.right,Ee,yt)),Pe.right),ke(Ot),Xn}function gn(Pe){if(q(Pe.whenTrue)||q(Pe.whenFalse)){const Ot=Be(),Xn=Be(),yo=fe();return js(Ot,N.checkDefined(nt(Pe.condition,Ee,yt)),Pe.condition),cl(yo,N.checkDefined(nt(Pe.whenTrue,Ee,yt)),Pe.whenTrue),wo(Xn),ke(Ot),cl(yo,N.checkDefined(nt(Pe.whenFalse,Ee,yt)),Pe.whenFalse),ke(Xn),yo}return xn(Pe,Ee,e)}function Qt(Pe){const Ot=Be(),Xn=nt(Pe.expression,Ee,yt);if(Pe.asteriskToken){const yo=Ga(Pe.expression)&8388608?Xn:dt(r().createValuesHelper(Xn),Pe);tu(yo,Pe)}else du(Xn,Pe);return ke(Ot),Lf(Pe)}function Yt(Pe){return vi(Pe.elements,void 0,void 0,Pe.multiLine)}function vi(Pe,Ot,Xn,yo){const $o=Oe(Pe);let na;if($o>0){na=fe();const ul=jn(Pe,Ee,yt,0,$o);cl(na,t.createArrayLiteralExpression(Ot?[Ot,...ul]:ul)),Ot=void 0}const Zl=rd(Pe,yc,[],$o);return na?t.createArrayConcatCall(na,[t.createArrayLiteralExpression(Zl,yo)]):dt(t.createArrayLiteralExpression(Ot?[Ot,...Zl]:Zl,yo),Xn);function yc(ul,vl){if(q(vl)&&ul.length>0){const Gl=na!==void 0;na||(na=fe()),cl(na,Gl?t.createArrayConcatCall(na,[t.createArrayLiteralExpression(ul,yo)]):t.createArrayLiteralExpression(Ot?[Ot,...ul]:ul,yo)),Ot=void 0,ul=[]}return ul.push(N.checkDefined(nt(vl,Ee,yt))),ul}}function so(Pe){const Ot=Pe.properties,Xn=Pe.multiLine,yo=Oe(Ot),$o=fe();cl($o,t.createObjectLiteralExpression(jn(Ot,Ee,Mg,0,yo),Xn));const na=rd(Ot,Zl,[],yo);return na.push(Xn?Xu(Ha(dt(t.cloneNode($o),$o),$o.parent)):$o),t.inlineExpressions(na);function Zl(yc,ul){q(ul)&&yc.length>0&&(Nl(t.createExpressionStatement(t.inlineExpressions(yc))),yc=[]);const vl=Nae(t,Pe,ul,$o),Gl=nt(vl,Ee,yt);return Gl&&(Xn&&Xu(Gl),yc.push(Gl)),yc}}function Wi(Pe){return q(Pe.argumentExpression)?t.updateElementAccessExpression(Pe,J(N.checkDefined(nt(Pe.expression,Ee,Zd))),N.checkDefined(nt(Pe.argumentExpression,Ee,yt))):xn(Pe,Ee,e)}function Co(Pe){if(!zp(Pe)&&Xe(Pe.arguments,q)){const{target:Ot,thisArg:Xn}=t.createCallBinding(Pe.expression,l,p,!0);return Nr(dt(t.createFunctionApplyCall(J(N.checkDefined(nt(Ot,Ee,Zd))),Xn,vi(Pe.arguments)),Pe),Pe)}return xn(Pe,Ee,e)}function Ln(Pe){if(Xe(Pe.arguments,q)){const{target:Ot,thisArg:Xn}=t.createCallBinding(t.createPropertyAccessExpression(Pe.expression,"bind"),l);return Nr(dt(t.createNewExpression(t.createFunctionApplyCall(J(N.checkDefined(nt(Ot,Ee,yt))),Xn,vi(Pe.arguments,t.createVoidZero())),void 0,[]),Pe),Pe)}return xn(Pe,Ee,e)}function Ci(Pe,Ot=0){const Xn=Pe.length;for(let yo=Ot;yo<Xn;yo++)sn(Pe[yo])}function Ar(Pe){Ko(Pe)?Ci(Pe.statements):sn(Pe)}function sn(Pe){const Ot=R;R||(R=q(Pe)),tt(Pe),R=Ot}function tt(Pe){switch(Pe.kind){case 241:return zt(Pe);case 244:return Dn(Pe);case 245:return Qi(Pe);case 246:return Io(Pe);case 247:return ka(Pe);case 248:return wn(Pe);case 249:return mt(Pe);case 251:return Ct(Pe);case 252:return Fe(Pe);case 253:return j(Pe);case 254:return Rt(Pe);case 255:return Ye(Pe);case 256:return Gt(Pe);case 257:return fn(Pe);case 258:return hn(Pe);default:return Nl(nt(Pe,Ee,Hi))}}function zt(Pe){q(Pe)?Ci(Pe.statements):Nl(nt(Pe,Ee,Hi))}function Dn(Pe){Nl(nt(Pe,Ee,Hi))}function ci(Pe){for(const na of Pe.declarations){const Zl=t.cloneNode(na.name);ac(Zl,na.name),l(Zl)}const Ot=VC(Pe),Xn=Ot.length;let yo=0,$o=[];for(;yo<Xn;){for(let na=yo;na<Xn;na++){const Zl=Ot[na];if(q(Zl.initializer)&&$o.length>0)break;$o.push(yi(Zl))}$o.length&&(Nl(t.createExpressionStatement(t.inlineExpressions($o))),yo+=$o.length,$o=[])}}function yi(Pe){return Da(t.createAssignment(Da(t.cloneNode(Pe.name),Pe.name),N.checkDefined(nt(Pe.initializer,Ee,yt))),Pe)}function Qi(Pe){if(q(Pe))if(q(Pe.thenStatement)||q(Pe.elseStatement)){const Ot=Be(),Xn=Pe.elseStatement?Be():void 0;js(Pe.elseStatement?Xn:Ot,N.checkDefined(nt(Pe.expression,Ee,yt)),Pe.expression),Ar(Pe.thenStatement),Pe.elseStatement&&(wo(Ot),ke(Xn),Ar(Pe.elseStatement)),ke(Ot)}else Nl(nt(Pe,Ee,Hi));else Nl(nt(Pe,Ee,Hi))}function Io(Pe){if(q(Pe)){const Ot=Be(),Xn=Be();Mi(Ot),ke(Xn),Ar(Pe.statement),ke(Ot),nn(Xn,N.checkDefined(nt(Pe.expression,Ee,yt))),Ri()}else Nl(nt(Pe,Ee,Hi))}function fa(Pe){return R?(vo(),Pe=xn(Pe,Ee,e),Ri(),Pe):xn(Pe,Ee,e)}function ka(Pe){if(q(Pe)){const Ot=Be(),Xn=Mi(Ot);ke(Ot),js(Xn,N.checkDefined(nt(Pe.expression,Ee,yt))),Ar(Pe.statement),wo(Ot),Ri()}else Nl(nt(Pe,Ee,Hi))}function Tn(Pe){return R?(vo(),Pe=xn(Pe,Ee,e),Ri(),Pe):xn(Pe,Ee,e)}function wn(Pe){if(q(Pe)){const Ot=Be(),Xn=Be(),yo=Mi(Xn);if(Pe.initializer){const $o=Pe.initializer;Vc($o)?ci($o):Nl(dt(t.createExpressionStatement(N.checkDefined(nt($o,Ee,yt))),$o))}ke(Ot),Pe.condition&&js(yo,N.checkDefined(nt(Pe.condition,Ee,yt))),Ar(Pe.statement),ke(Xn),Pe.incrementor&&Nl(dt(t.createExpressionStatement(N.checkDefined(nt(Pe.incrementor,Ee,yt))),Pe.incrementor)),wo(Ot),Ri()}else Nl(nt(Pe,Ee,Hi))}function He(Pe){R&&vo();const Ot=Pe.initializer;if(Ot&&Vc(Ot)){for(const yo of Ot.declarations)l(yo.name);const Xn=VC(Ot);Pe=t.updateForStatement(Pe,Xn.length>0?t.inlineExpressions(Wt(Xn,yi)):void 0,nt(Pe.condition,Ee,yt),nt(Pe.incrementor,Ee,yt),xd(Pe.statement,Ee,e))}else Pe=xn(Pe,Ee,e);return R&&Ri(),Pe}function mt(Pe){if(q(Pe)){const Ot=fe(),Xn=fe(),yo=fe(),$o=t.createLoopVariable(),na=Pe.initializer;l($o),cl(Ot,N.checkDefined(nt(Pe.expression,Ee,yt))),cl(Xn,t.createArrayLiteralExpression()),Nl(t.createForInStatement(yo,Ot,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(Xn,"push"),void 0,[yo])))),cl($o,t.createNumericLiteral(0));const Zl=Be(),yc=Be(),ul=Mi(yc);ke(Zl),js(ul,t.createLessThan($o,t.createPropertyAccessExpression(Xn,"length"))),cl(yo,t.createElementAccessExpression(Xn,$o)),js(yc,t.createBinaryExpression(yo,103,Ot));let vl;if(Vc(na)){for(const Gl of na.declarations)l(Gl.name);vl=t.cloneNode(na.declarations[0].name)}else vl=N.checkDefined(nt(na,Ee,yt)),N.assert(Zd(vl));cl(vl,yo),Ar(Pe.statement),ke(yc),Nl(t.createExpressionStatement(t.createPostfixIncrement($o))),wo(Zl),Ri()}else Nl(nt(Pe,Ee,Hi))}function ft(Pe){R&&vo();const Ot=Pe.initializer;if(Vc(Ot)){for(const Xn of Ot.declarations)l(Xn.name);Pe=t.updateForInStatement(Pe,Ot.declarations[0].name,N.checkDefined(nt(Pe.expression,Ee,yt)),N.checkDefined(nt(Pe.statement,Ee,Hi,t.liftToBlock)))}else Pe=xn(Pe,Ee,e);return R&&Ri(),Pe}function Ct(Pe){const Ot=da(Pe.label?Er(Pe.label):void 0);Ot>0?wo(Ot,Pe):Nl(Pe)}function le(Pe){if(R){const Ot=da(Pe.label&&Er(Pe.label));if(Ot>0)return Ca(Ot,Pe)}return xn(Pe,Ee,e)}function Fe(Pe){const Ot=ho(Pe.label?Er(Pe.label):void 0);Ot>0?wo(Ot,Pe):Nl(Pe)}function pt(Pe){if(R){const Ot=ho(Pe.label&&Er(Pe.label));if(Ot>0)return Ca(Ot,Pe)}return xn(Pe,Ee,e)}function j(Pe){Tp(nt(Pe.expression,Ee,yt),Pe)}function it(Pe){return ml(nt(Pe.expression,Ee,yt),Pe)}function Rt(Pe){q(Pe)?(Gn(J(N.checkDefined(nt(Pe.expression,Ee,yt)))),Ar(Pe.statement),qn()):Nl(nt(Pe,Ee,Hi))}function Ye(Pe){if(q(Pe.caseBlock)){const Ot=Pe.caseBlock,Xn=Ot.clauses.length,yo=xo(),$o=J(N.checkDefined(nt(Pe.expression,Ee,yt))),na=[];let Zl=-1;for(let vl=0;vl<Xn;vl++){const Gl=Ot.clauses[vl];na.push(Be()),Gl.kind===297&&Zl===-1&&(Zl=vl)}let yc=0,ul=[];for(;yc<Xn;){let vl=0;for(let Gl=yc;Gl<Xn;Gl++){const ec=Ot.clauses[Gl];if(ec.kind===296){if(q(ec.expression)&&ul.length>0)break;ul.push(t.createCaseClause(N.checkDefined(nt(ec.expression,Ee,yt)),[Ca(na[Gl],ec.expression)]))}else vl++}ul.length&&(Nl(t.createSwitchStatement($o,t.createCaseBlock(ul))),yc+=ul.length,ul=[]),vl>0&&(yc+=vl,vl=0)}Zl>=0?wo(na[Zl]):wo(yo);for(let vl=0;vl<Xn;vl++)ke(na[vl]),Ci(Ot.clauses[vl].statements);Nn()}else Nl(nt(Pe,Ee,Hi))}function _t(Pe){return R&&Jr(),Pe=xn(Pe,Ee,e),R&&Nn(),Pe}function Gt(Pe){q(Pe)?(Ql(Er(Pe.label)),Ar(Pe.statement),ko()):Nl(nt(Pe,Ee,Hi))}function yn(Pe){return R&&Fs(Er(Pe.label)),Pe=xn(Pe,Ee,e),R&&ko(),Pe}function fn(Pe){Ms(N.checkDefined(nt(Pe.expression??t.createVoidZero(),Ee,yt)),Pe)}function hn(Pe){q(Pe)?(Pi(),Ar(Pe.tryBlock),Pe.catchClause&&(xi(Pe.catchClause.variableDeclaration),Ar(Pe.catchClause.block)),Pe.finallyBlock&&(ir(),Ar(Pe.finallyBlock)),Vr()):Nl(xn(Pe,Ee,e))}function q(Pe){return!!Pe&&(Pe.transformFlags&1048576)!==0}function Oe(Pe){const Ot=Pe.length;for(let Xn=0;Xn<Ot;Xn++)if(q(Pe[Xn]))return Xn;return-1}function Lt(Pe,Ot){return Ot=m(Pe,Ot),Pe===1?L(Ot):Ot}function L(Pe){return Ve(Pe)?me(Pe):Pe}function me(Pe){if(!al(Pe)&&y&&y.has(Er(Pe))){const Ot=Pl(Pe);if(Ve(Ot)&&Ot.parent){const Xn=h.getReferencedValueDeclaration(Ot);if(Xn){const yo=T[Wu(Xn)];if(yo){const $o=Ha(dt(t.cloneNode(yo),yo),yo.parent);return Da($o,Pe),ac($o,Pe),$o}}}}return Pe}function J(Pe){if(al(Pe)||Ga(Pe)&8192)return Pe;const Ot=t.createTempVariable(l);return cl(Ot,Pe,Pe),Ot}function fe(Pe){const Ot=Pe?t.createUniqueName(Pe):t.createTempVariable(void 0);return l(Ot),Ot}function Be(){K||(K=[]);const Pe=V;return V++,K[Pe]=-1,Pe}function ke(Pe){N.assert(K!==void 0,"No labels were defined."),K[Pe]=se?se.length:0}function Tt(Pe){M||(M=[],O=[],C=[],U=[]);const Ot=O.length;return O[Ot]=0,C[Ot]=se?se.length:0,M[Ot]=Pe,U.push(Pe),Ot}function kt(){const Pe=en();if(Pe===void 0)return N.fail("beginBlock was never called.");const Ot=O.length;return O[Ot]=1,C[Ot]=se?se.length:0,M[Ot]=Pe,U.pop(),Pe}function en(){return el(U)}function En(){const Pe=en();return Pe&&Pe.kind}function Gn(Pe){const Ot=Be(),Xn=Be();ke(Ot),Tt({kind:1,expression:Pe,startLabel:Ot,endLabel:Xn})}function qn(){N.assert(En()===1);const Pe=kt();ke(Pe.endLabel)}function Pi(){const Pe=Be(),Ot=Be();return ke(Pe),Tt({kind:0,state:0,startLabel:Pe,endLabel:Ot}),lc(),Ot}function xi(Pe){N.assert(En()===0);let Ot;if(al(Pe.name))Ot=Pe.name,l(Pe.name);else{const na=Er(Pe.name);Ot=fe(na),y||(y=new Map,T=[],e.enableSubstitution(80)),y.set(na,!0),T[Wu(Pe)]=Ot}const Xn=en();N.assert(Xn.state<1);const yo=Xn.endLabel;wo(yo);const $o=Be();ke($o),Xn.state=1,Xn.catchVariable=Ot,Xn.catchLabel=$o,cl(Ot,t.createCallExpression(t.createPropertyAccessExpression(he,"sent"),void 0,[])),lc()}function ir(){N.assert(En()===0);const Pe=en();N.assert(Pe.state<2);const Ot=Pe.endLabel;wo(Ot);const Xn=Be();ke(Xn),Pe.state=2,Pe.finallyLabel=Xn}function Vr(){N.assert(En()===0);const Pe=kt();Pe.state<2?wo(Pe.endLabel):xc(),ke(Pe.endLabel),lc(),Pe.state=3}function vo(){Tt({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function Mi(Pe){const Ot=Be();return Tt({kind:3,isScript:!1,breakLabel:Ot,continueLabel:Pe}),Ot}function Ri(){N.assert(En()===3);const Pe=kt(),Ot=Pe.breakLabel;Pe.isScript||ke(Ot)}function Jr(){Tt({kind:2,isScript:!0,breakLabel:-1})}function xo(){const Pe=Be();return Tt({kind:2,isScript:!1,breakLabel:Pe}),Pe}function Nn(){N.assert(En()===2);const Pe=kt(),Ot=Pe.breakLabel;Pe.isScript||ke(Ot)}function Fs(Pe){Tt({kind:4,isScript:!0,labelText:Pe,breakLabel:-1})}function Ql(Pe){const Ot=Be();Tt({kind:4,isScript:!1,labelText:Pe,breakLabel:Ot})}function ko(){N.assert(En()===4);const Pe=kt();Pe.isScript||ke(Pe.breakLabel)}function cs(Pe){return Pe.kind===2||Pe.kind===3}function Vs(Pe){return Pe.kind===4}function gl(Pe){return Pe.kind===3}function cu(Pe,Ot){for(let Xn=Ot;Xn>=0;Xn--){const yo=U[Xn];if(Vs(yo)){if(yo.labelText===Pe)return!0}else break}return!1}function ho(Pe){if(U)if(Pe)for(let Ot=U.length-1;Ot>=0;Ot--){const Xn=U[Ot];if(Vs(Xn)&&Xn.labelText===Pe)return Xn.breakLabel;if(cs(Xn)&&cu(Pe,Ot-1))return Xn.breakLabel}else for(let Ot=U.length-1;Ot>=0;Ot--){const Xn=U[Ot];if(cs(Xn))return Xn.breakLabel}return 0}function da(Pe){if(U)if(Pe)for(let Ot=U.length-1;Ot>=0;Ot--){const Xn=U[Ot];if(gl(Xn)&&cu(Pe,Ot-1))return Xn.continueLabel}else for(let Ot=U.length-1;Ot>=0;Ot--){const Xn=U[Ot];if(gl(Xn))return Xn.continueLabel}return 0}function uu(Pe){if(Pe!==void 0&&Pe>0){Q===void 0&&(Q=[]);const Ot=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return Q[Pe]===void 0?Q[Pe]=[Ot]:Q[Pe].push(Ot),Ot}return t.createOmittedExpression()}function Ts(Pe){const Ot=t.createNumericLiteral(Pe);return cW(Ot,3,Yje(Pe)),Ot}function Ca(Pe,Ot){return N.assertLessThan(0,Pe,"Invalid label"),dt(t.createReturnStatement(t.createArrayLiteralExpression([Ts(3),uu(Pe)])),Ot)}function ml(Pe,Ot){return dt(t.createReturnStatement(t.createArrayLiteralExpression(Pe?[Ts(2),Pe]:[Ts(2)])),Ot)}function Lf(Pe){return dt(t.createCallExpression(t.createPropertyAccessExpression(he,"sent"),void 0,[]),Pe)}function lc(){ue(0)}function Nl(Pe){Pe?ue(1,[Pe]):lc()}function cl(Pe,Ot,Xn){ue(2,[Pe,Ot],Xn)}function wo(Pe,Ot){ue(3,[Pe],Ot)}function nn(Pe,Ot,Xn){ue(4,[Pe,Ot],Xn)}function js(Pe,Ot,Xn){ue(5,[Pe,Ot],Xn)}function tu(Pe,Ot){ue(7,[Pe],Ot)}function du(Pe,Ot){ue(6,[Pe],Ot)}function Tp(Pe,Ot){ue(8,[Pe],Ot)}function Ms(Pe,Ot){ue(9,[Pe],Ot)}function xc(){ue(10)}function ue(Pe,Ot,Xn){se===void 0&&(se=[],G=[],ne=[]),K===void 0&&ke(Be());const yo=se.length;se[yo]=Pe,G[yo]=Ot,ne[yo]=Xn}function Z(){ye=0,Y=0,X=void 0,oe=!1,pe=!1,Ce=void 0,de=void 0,ie=void 0,ve=void 0,Le=void 0;const Pe=we();return r().createGeneratorHelper(pr(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(se){for(let Pe=0;Pe<se.length;Pe++)Yo(Pe);un(se.length)}else un(0);if(Ce){const Pe=t.createPropertyAccessExpression(he,"label"),Ot=t.createSwitchStatement(Pe,t.createCaseBlock(Ce));return[Xu(Ot)]}return de||[]}function Et(){de&&(vr(!oe),oe=!1,pe=!1,Y++)}function un(Pe){Sr(Pe)&&(jr(Pe),Le=void 0,vc(void 0,void 0)),de&&Ce&&vr(!1),Di()}function Sr(Pe){if(!pe)return!0;if(!K||!Q)return!1;for(let Ot=0;Ot<K.length;Ot++)if(K[Ot]===Pe&&Q[Ot])return!0;return!1}function vr(Pe){if(Ce||(Ce=[]),de){if(Le)for(let Ot=Le.length-1;Ot>=0;Ot--){const Xn=Le[Ot];de=[t.createWithStatement(Xn.expression,t.createBlock(de))]}if(ve){const{startLabel:Ot,catchLabel:Xn,finallyLabel:yo,endLabel:$o}=ve;de.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(he,"trys"),"push"),void 0,[t.createArrayLiteralExpression([uu(Ot),uu(Xn),uu(yo),uu($o)])]))),ve=void 0}Pe&&de.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(he,"label"),t.createNumericLiteral(Y+1))))}Ce.push(t.createCaseClause(t.createNumericLiteral(Y),de||[])),de=void 0}function jr(Pe){if(K)for(let Ot=0;Ot<K.length;Ot++)K[Ot]===Pe&&(Et(),X===void 0&&(X=[]),X[Y]===void 0?X[Y]=[Ot]:X[Y].push(Ot))}function Di(){if(Q!==void 0&&X!==void 0)for(let Pe=0;Pe<X.length;Pe++){const Ot=X[Pe];if(Ot!==void 0)for(const Xn of Ot){const yo=Q[Xn];if(yo!==void 0)for(const $o of yo)$o.text=String(Pe)}}}function Mr(Pe){if(M)for(;ye<O.length&&C[ye]<=Pe;ye++){const Ot=M[ye],Xn=O[ye];switch(Ot.kind){case 0:Xn===0?(ie||(ie=[]),de||(de=[]),ie.push(ve),ve=Ot):Xn===1&&(ve=ie.pop());break;case 1:Xn===0?(Le||(Le=[]),Le.push(Ot)):Xn===1&&Le.pop();break}}}function Yo(Pe){if(jr(Pe),Mr(Pe),oe)return;oe=!1,pe=!1;const Ot=se[Pe];if(Ot===0)return;if(Ot===10)return _d();const Xn=G[Pe];if(Ot===1)return Sl(Xn[0]);const yo=ne[Pe];switch(Ot){case 2:return jc(Xn[0],Xn[1],yo);case 3:return Es(Xn[0],yo);case 4:return Uc(Xn[0],Xn[1],yo);case 5:return ip(Xn[0],Xn[1],yo);case 6:return wc(Xn[0],yo);case 7:return sm(Xn[0],yo);case 8:return vc(Xn[0],yo);case 9:return Us(Xn[0],yo)}}function Sl(Pe){Pe&&(de?de.push(Pe):de=[Pe])}function jc(Pe,Ot,Xn){Sl(dt(t.createExpressionStatement(t.createAssignment(Pe,Ot)),Xn))}function Us(Pe,Ot){oe=!0,pe=!0,Sl(dt(t.createThrowStatement(Pe),Ot))}function vc(Pe,Ot){oe=!0,pe=!0,Sl(pr(dt(t.createReturnStatement(t.createArrayLiteralExpression(Pe?[Ts(2),Pe]:[Ts(2)])),Ot),768))}function Es(Pe,Ot){oe=!0,Sl(pr(dt(t.createReturnStatement(t.createArrayLiteralExpression([Ts(3),uu(Pe)])),Ot),768))}function Uc(Pe,Ot,Xn){Sl(pr(t.createIfStatement(Ot,pr(dt(t.createReturnStatement(t.createArrayLiteralExpression([Ts(3),uu(Pe)])),Xn),768)),1))}function ip(Pe,Ot,Xn){Sl(pr(t.createIfStatement(t.createLogicalNot(Ot),pr(dt(t.createReturnStatement(t.createArrayLiteralExpression([Ts(3),uu(Pe)])),Xn),768)),1))}function wc(Pe,Ot){oe=!0,Sl(pr(dt(t.createReturnStatement(t.createArrayLiteralExpression(Pe?[Ts(4),Pe]:[Ts(4)])),Ot),768))}function sm(Pe,Ot){oe=!0,Sl(pr(dt(t.createReturnStatement(t.createArrayLiteralExpression([Ts(5),Pe])),Ot),768))}function _d(){oe=!0,Sl(t.createReturnStatement(t.createArrayLiteralExpression([Ts(7)])))}}var $je=I({"src/compiler/transformers/generators.ts"(){ra()}});function qq(e){function t(q){switch(q){case 2:return se;case 3:return G;default:return V}}const{factory:r,getEmitHelperFactory:i,startLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),p=e.getEmitResolver(),h=e.getEmitHost(),m=os(u),y=wu(u),T=e.onSubstituteNode,A=e.onEmitNode;e.onSubstituteNode=it,e.onEmitNode=j,e.enableSubstitution(213),e.enableSubstitution(215),e.enableSubstitution(80),e.enableSubstitution(226),e.enableSubstitution(304),e.enableEmitNotification(312);const R=[];let M,C;const O=[];let U;return Dm(e,K);function K(q){if(q.isDeclarationFile||!(RA(q,u)||q.transformFlags&8388608||Yf(q)&&M3(u)&&Ps(u)))return q;M=q,C=wq(e,q),R[Wu(q)]=C;const Lt=t(y)(q);return M=void 0,C=void 0,U=!1,Lt}function Q(){return!!(!C.exportEquals&&sc(M))}function V(q){o();const Oe=[],Lt=dd(u,"alwaysStrict")||!u.noImplicitUseStrict&&sc(M),L=r.copyPrologue(q.statements,Oe,Lt&&!Yf(q),X);if(Q()&&Rn(Oe,Ct()),Ne(C.exportedNames))for(let fe=0;fe<C.exportedNames.length;fe+=50)Rn(Oe,r.createExpressionStatement(rd(C.exportedNames.slice(fe,fe+50),(Be,ke)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Er(ke))),Be),r.createVoidZero())));Rn(Oe,nt(C.externalHelpersImportDeclaration,X,Hi)),qr(Oe,jn(q.statements,X,Hi,L)),Y(Oe,!1),Yh(Oe,s());const me=r.updateSourceFile(q,dt(r.createNodeArray(Oe),q.statements));return zg(me,e.readEmitHelpers()),me}function se(q){const Oe=r.createIdentifier("define"),Lt=Qk(r,q,h,u),L=Yf(q)&&q,{aliasedModuleNames:me,unaliasedModuleNames:J,importAliasNames:fe}=ne(q,!0),Be=r.updateSourceFile(q,dt(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(Oe,void 0,[...Lt?[Lt]:[],r.createArrayLiteralExpression(L?et:[r.createStringLiteral("require"),r.createStringLiteral("exports"),...me,...J]),L?L.statements.length?L.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"),...fe],void 0,ye(q))]))]),q.statements));return zg(Be,e.readEmitHelpers()),Be}function G(q){const{aliasedModuleNames:Oe,unaliasedModuleNames:Lt,importAliasNames:L}=ne(q,!1),me=Qk(r,q,h,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")]))]),pr(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,[...me?[me]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...Oe,...Lt]),r.createIdentifier("factory")]))])))],!0),void 0)),fe=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"),...L],void 0,ye(q))]))]),q.statements));return zg(fe,e.readEmitHelpers()),fe}function ne(q,Oe){const Lt=[],L=[],me=[];for(const J of q.amdDependencies)J.name?(Lt.push(r.createStringLiteral(J.path)),me.push(r.createParameterDeclaration(void 0,void 0,J.name))):L.push(r.createStringLiteral(J.path));for(const J of C.externalImports){const fe=dI(r,J,M,h,p,u),Be=YR(r,J,M);fe&&(Oe&&Be?(pr(Be,8),Lt.push(fe),me.push(r.createParameterDeclaration(void 0,void 0,Be))):L.push(fe))}return{aliasedModuleNames:Lt,unaliasedModuleNames:L,importAliasNames:me}}function he(q){if(eu(q)||Yl(q)||!dI(r,q,M,h,p,u))return;const Oe=YR(r,q,M),Lt=Co(q,Oe);if(Lt!==Oe)return r.createExpressionStatement(r.createAssignment(Oe,Lt))}function ye(q){o();const Oe=[],Lt=r.copyPrologue(q.statements,Oe,!u.noImplicitUseStrict,X);Q()&&Rn(Oe,Ct()),Ne(C.exportedNames)&&Rn(Oe,r.createExpressionStatement(rd(C.exportedNames,(me,J)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Er(J))),me),r.createVoidZero()))),Rn(Oe,nt(C.externalHelpersImportDeclaration,X,Hi)),y===2&&qr(Oe,eo(C.externalImports,he)),qr(Oe,jn(q.statements,X,Hi,Lt)),Y(Oe,!0),Yh(Oe,s());const L=r.createBlock(Oe,!0);return U&&qA(L,txe),L}function Y(q,Oe){if(C.exportEquals){const Lt=nt(C.exportEquals.expression,Ce,yt);if(Lt)if(Oe){const L=r.createReturnStatement(Lt);dt(L,C.exportEquals),pr(L,3840),q.push(L)}else{const L=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),Lt));dt(L,C.exportEquals),pr(L,3072),q.push(L)}}}function X(q){switch(q.kind){case 272:return Ln(q);case 271:return Ar(q);case 278:return sn(q);case 277:return tt(q);default:return oe(q)}}function oe(q){switch(q.kind){case 243:return ci(q);case 262:return zt(q);case 263:return Dn(q);case 248:return Le(q,!0);case 249:return Ue(q);case 250:return Ee(q);case 246:return De(q);case 247:return Me(q);case 256:return We(q);case 254:return At(q);case 245:return Se(q);case 255:return je(q);case 269:return ot(q);case 296:return Bt(q);case 297:return vt(q);case 258:return $e(q);case 299:return It(q);case 241:return tn(q);default:return Ce(q)}}function pe(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 Mn(q,Oe);case 360:return $n(q,Oe);case 213:if(zp(q)&&M.impliedNodeFormat===void 0)return Qt(q);break;case 226:if(Wv(q))return ve(q,Oe);break;case 224:case 225:return gn(q,Oe)}return xn(q,Ce,e)}function Ce(q){return pe(q,!1)}function de(q){return pe(q,!0)}function ie(q){if(La(q))for(const 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:N.assertNever(Oe,"Unhandled object member kind")}else if(fd(q)){for(const Oe of q.elements)if($m(Oe)){if(ie(Oe.expression))return!0}else if(ie(Oe))return!0}else if(Ve(q))return Ne(hn(q))>(nF(q)?1:0);return!1}function ve(q,Oe){return ie(q.left)?XS(q,Ce,e,0,!Oe,yi):xn(q,Ce,e)}function Le(q,Oe){if(Oe&&q.initializer&&Vc(q.initializer)&&!(q.initializer.flags&7)){const Lt=Tn(void 0,q.initializer,!1);if(Lt){const L=[],me=nt(q.initializer,de,Vc),J=r.createVariableStatement(void 0,me);L.push(J),qr(L,Lt);const fe=nt(q.condition,Ce,yt),Be=nt(q.incrementor,de,yt),ke=xd(q.statement,Oe?oe:Ce,e);return L.push(r.updateForStatement(q,void 0,fe,Be,ke)),L}}return r.updateForStatement(q,nt(q.initializer,de,Sf),nt(q.condition,Ce,yt),nt(q.incrementor,de,yt),xd(q.statement,Oe?oe:Ce,e))}function Ue(q){if(Vc(q.initializer)&&!(q.initializer.flags&7)){const Oe=Tn(void 0,q.initializer,!0);if(bt(Oe)){const Lt=nt(q.initializer,de,Sf),L=nt(q.expression,Ce,yt),me=xd(q.statement,oe,e),J=Ko(me)?r.updateBlock(me,[...Oe,...me.statements]):r.createBlock([...Oe,me],!0);return r.updateForInStatement(q,Lt,L,J)}}return r.updateForInStatement(q,nt(q.initializer,de,Sf),nt(q.expression,Ce,yt),xd(q.statement,oe,e))}function Ee(q){if(Vc(q.initializer)&&!(q.initializer.flags&7)){const Oe=Tn(void 0,q.initializer,!0),Lt=nt(q.initializer,de,Sf),L=nt(q.expression,Ce,yt);let me=xd(q.statement,oe,e);return bt(Oe)&&(me=Ko(me)?r.updateBlock(me,[...Oe,...me.statements]):r.createBlock([...Oe,me],!0)),r.updateForOfStatement(q,q.awaitModifier,Lt,L,me)}return r.updateForOfStatement(q,q.awaitModifier,nt(q.initializer,de,Sf),nt(q.expression,Ce,yt),xd(q.statement,oe,e))}function De(q){return r.updateDoStatement(q,xd(q.statement,oe,e),nt(q.expression,Ce,yt))}function Me(q){return r.updateWhileStatement(q,nt(q.expression,Ce,yt),xd(q.statement,oe,e))}function We(q){return r.updateLabeledStatement(q,q.label,N.checkDefined(nt(q.statement,oe,Hi,r.liftToBlock)))}function At(q){return r.updateWithStatement(q,nt(q.expression,Ce,yt),N.checkDefined(nt(q.statement,oe,Hi,r.liftToBlock)))}function Se(q){return r.updateIfStatement(q,nt(q.expression,Ce,yt),N.checkDefined(nt(q.thenStatement,oe,Hi,r.liftToBlock)),nt(q.elseStatement,oe,Hi,r.liftToBlock))}function je(q){return r.updateSwitchStatement(q,nt(q.expression,Ce,yt),N.checkDefined(nt(q.caseBlock,oe,yP)))}function ot(q){return r.updateCaseBlock(q,jn(q.clauses,oe,E4))}function Bt(q){return r.updateCaseClause(q,nt(q.expression,Ce,yt),jn(q.statements,oe,Hi))}function vt(q){return xn(q,oe,e)}function $e(q){return xn(q,oe,e)}function It(q){return r.updateCatchClause(q,q.variableDeclaration,N.checkDefined(nt(q.block,oe,Ko)))}function tn(q){return q=xn(q,oe,e),q}function rn(q){return r.updateExpressionStatement(q,nt(q.expression,de,yt))}function Mn(q,Oe){return r.updateParenthesizedExpression(q,nt(q.expression,Oe?de:Ce,yt))}function $n(q,Oe){return r.updatePartiallyEmittedExpression(q,nt(q.expression,Oe?de:Ce,yt))}function gn(q,Oe){if((q.operator===46||q.operator===47)&&Ve(q.operand)&&!al(q.operand)&&!Gg(q.operand)&&!rU(q.operand)){const Lt=hn(q.operand);if(Lt){let L,me=nt(q.operand,Ce,yt);Xy(q)?me=r.updatePrefixUnaryExpression(q,me):(me=r.updatePostfixUnaryExpression(q,me),Oe||(L=r.createTempVariable(l),me=r.createAssignment(L,me),dt(me,q)),me=r.createComma(me,r.cloneNode(q.operand)),dt(me,q));for(const J of Lt)O[as(me)]=!0,me=Fe(J,me),dt(me,q);return L&&(O[as(me)]=!0,me=r.createComma(me,L),dt(me,q)),me}}return xn(q,Ce,e)}function Qt(q){if(y===0&&m>=7)return xn(q,Ce,e);const Oe=dI(r,q,M,h,p,u),Lt=nt(Kc(q.arguments),Ce,yt),L=Oe&&(!Lt||!Na(Lt)||Lt.text!==Oe.text)?Oe:Lt,me=!!(q.transformFlags&16384);switch(u.module){case 2:return vi(L,me);case 3:return Yt(L??r.createVoidZero(),me);case 1:default:return so(L)}}function Yt(q,Oe){if(U=!0,c1(q)){const Lt=al(q)?q:Na(q)?r.createStringLiteralFromNode(q):pr(dt(r.cloneNode(q),q),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,so(q),void 0,vi(Lt,Oe))}else{const Lt=r.createTempVariable(l);return r.createComma(r.createAssignment(Lt,q),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,so(Lt,!0),void 0,vi(Lt,Oe)))}}function vi(q,Oe){const Lt=r.createUniqueName("resolve"),L=r.createUniqueName("reject"),me=[r.createParameterDeclaration(void 0,void 0,Lt),r.createParameterDeclaration(void 0,void 0,L)],J=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([q||r.createOmittedExpression()]),Lt,L]))]);let fe;m>=2?fe=r.createArrowFunction(void 0,void 0,me,void 0,void 0,J):(fe=r.createFunctionExpression(void 0,void 0,void 0,void 0,me,void 0,J),Oe&&pr(fe,16));const Be=r.createNewExpression(r.createIdentifier("Promise"),void 0,[fe]);return vh(u)?r.createCallExpression(r.createPropertyAccessExpression(Be,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):Be}function so(q,Oe){const Lt=q&&!O_(q)&&!Oe,L=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])]:[]);let me=r.createCallExpression(r.createIdentifier("require"),void 0,Lt?[r.createIdentifier("s")]:q?[q]:[]);vh(u)&&(me=i().createImportStarHelper(me));const J=Lt?[r.createParameterDeclaration(void 0,void 0,"s")]:[];let fe;return m>=2?fe=r.createArrowFunction(void 0,void 0,J,void 0,void 0,me):fe=r.createFunctionExpression(void 0,void 0,void 0,void 0,J,void 0,r.createBlock([r.createReturnStatement(me)])),r.createCallExpression(r.createPropertyAccessExpression(L,"then"),void 0,[fe])}function Wi(q,Oe){return!vh(u)||Em(q)&2?Oe:$se(q)?i().createImportStarHelper(Oe):Oe}function Co(q,Oe){return!vh(u)||Em(q)&2?Oe:UF(q)?i().createImportStarHelper(Oe):kq(q)?i().createImportDefaultHelper(Oe):Oe}function Ln(q){let Oe;const Lt=mR(q);if(y!==2)if(q.importClause){const L=[];Lt&&!NA(q)?L.push(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,Co(q,Ci(q)))):(L.push(r.createVariableDeclaration(r.getGeneratedNameForNode(q),void 0,void 0,Co(q,Ci(q)))),Lt&&NA(q)&&L.push(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,r.getGeneratedNameForNode(q)))),Oe=Rn(Oe,Nr(dt(r.createVariableStatement(void 0,r.createVariableDeclarationList(L,m>=2?2:0)),q),q))}else return Nr(dt(r.createExpressionStatement(Ci(q)),q),q);else Lt&&NA(q)&&(Oe=Rn(Oe,r.createVariableStatement(void 0,r.createVariableDeclarationList([Nr(dt(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,r.getGeneratedNameForNode(q)),q),q)],m>=2?2:0))));return Oe=Io(Oe,q),sh(Oe)}function Ci(q){const Oe=dI(r,q,M,h,p,u),Lt=[];return Oe&&Lt.push(Oe),r.createCallExpression(r.createIdentifier("require"),void 0,Lt)}function Ar(q){N.assert(c0(q),"import= for internal module references should be handled in an earlier transformer.");let Oe;return y!==2?Qr(q,32)?Oe=Rn(Oe,Nr(dt(r.createExpressionStatement(Fe(q.name,Ci(q))),q),q)):Oe=Rn(Oe,Nr(dt(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(q.name),void 0,void 0,Ci(q))],m>=2?2:0)),q),q)):Qr(q,32)&&(Oe=Rn(Oe,Nr(dt(r.createExpressionStatement(Fe(r.getExportName(q),r.getLocalName(q))),q),q))),Oe=fa(Oe,q),sh(Oe)}function sn(q){if(!q.moduleSpecifier)return;const Oe=r.getGeneratedNameForNode(q);if(q.exportClause&&Nf(q.exportClause)){const Lt=[];y!==2&&Lt.push(Nr(dt(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(Oe,void 0,void 0,Ci(q))])),q),q));for(const L of q.exportClause.elements)if(m===0)Lt.push(Nr(dt(r.createExpressionStatement(i().createCreateBindingHelper(Oe,r.createStringLiteralFromNode(L.propertyName||L.name),L.propertyName?r.createStringLiteralFromNode(L.name):void 0)),L),L));else{const me=!!vh(u)&&!(Em(q)&2)&&Er(L.propertyName||L.name)==="default",J=r.createPropertyAccessExpression(me?i().createImportDefaultHelper(Oe):Oe,L.propertyName||L.name);Lt.push(Nr(dt(r.createExpressionStatement(Fe(r.getExportName(L),J,void 0,!0)),L),L))}return sh(Lt)}else if(q.exportClause){const Lt=[];return Lt.push(Nr(dt(r.createExpressionStatement(Fe(r.cloneNode(q.exportClause.name),Wi(q,y!==2?Ci(q):M4(q)?Oe:r.createIdentifier(Er(q.exportClause.name))))),q),q)),sh(Lt)}else return Nr(dt(r.createExpressionStatement(i().createExportStarHelper(y!==2?Ci(q):Oe)),q),q)}function tt(q){if(!q.isExportEquals)return le(r.createIdentifier("default"),nt(q.expression,Ce,yt),q,!0)}function zt(q){let Oe;return Qr(q,32)?Oe=Rn(Oe,Nr(dt(r.createFunctionDeclaration(jn(q.modifiers,pt,Aa),q.asteriskToken,r.getDeclarationName(q,!0,!0),void 0,jn(q.parameters,Ce,Ao),void 0,xn(q.body,Ce,e)),q),q)):Oe=Rn(Oe,xn(q,Ce,e)),Oe=He(Oe,q),sh(Oe)}function Dn(q){let Oe;return Qr(q,32)?Oe=Rn(Oe,Nr(dt(r.createClassDeclaration(jn(q.modifiers,pt,sl),r.getDeclarationName(q,!0,!0),void 0,jn(q.heritageClauses,Ce,nf),jn(q.members,Ce,Yc)),q),q)):Oe=Rn(Oe,xn(q,Ce,e)),Oe=He(Oe,q),sh(Oe)}function ci(q){let Oe,Lt,L;if(Qr(q,32)){let me,J=!1;for(const fe of q.declarationList.declarations)if(Ve(fe.name)&&Gg(fe.name))if(me||(me=jn(q.modifiers,pt,Aa)),fe.initializer){const Be=r.updateVariableDeclaration(fe,fe.name,void 0,void 0,Fe(fe.name,nt(fe.initializer,Ce,yt)));Lt=Rn(Lt,Be)}else Lt=Rn(Lt,fe);else if(fe.initializer)if(!ta(fe.name)&&(Gs(fe.initializer)||Os(fe.initializer)||Qc(fe.initializer))){const Be=r.createAssignment(dt(r.createPropertyAccessExpression(r.createIdentifier("exports"),fe.name),fe.name),r.createIdentifier(Qf(fe.name))),ke=r.createVariableDeclaration(fe.name,fe.exclamationToken,fe.type,nt(fe.initializer,Ce,yt));Lt=Rn(Lt,ke),L=Rn(L,Be),J=!0}else L=Rn(L,Qi(fe));if(Lt&&(Oe=Rn(Oe,r.updateVariableStatement(q,me,r.updateVariableDeclarationList(q.declarationList,Lt)))),L){const fe=Nr(dt(r.createExpressionStatement(r.inlineExpressions(L)),q),q);J&&Pk(fe),Oe=Rn(Oe,fe)}}else Oe=Rn(Oe,xn(q,Ce,e));return Oe=ka(Oe,q),sh(Oe)}function yi(q,Oe,Lt){const L=hn(q);if(L){let me=nF(q)?Oe:r.createAssignment(q,Oe);for(const J of L)pr(me,8),me=Fe(J,me,Lt);return me}return r.createAssignment(q,Oe)}function Qi(q){return ta(q.name)?XS(nt(q,Ce,dk),Ce,e,0,!1,yi):r.createAssignment(dt(r.createPropertyAccessExpression(r.createIdentifier("exports"),q.name),q.name),q.initializer?nt(q.initializer,Ce,yt):r.createVoidZero())}function Io(q,Oe){if(C.exportEquals)return q;const Lt=Oe.importClause;if(!Lt)return q;const L=new gI;Lt.name&&(q=mt(q,L,Lt));const me=Lt.namedBindings;if(me)switch(me.kind){case 274:q=mt(q,L,me);break;case 275:for(const J of me.elements)q=mt(q,L,J,!0);break}return q}function fa(q,Oe){return C.exportEquals?q:mt(q,new gI,Oe)}function ka(q,Oe){return Tn(q,Oe.declarationList,!1)}function Tn(q,Oe,Lt){if(C.exportEquals)return q;for(const L of Oe.declarations)q=wn(q,L,Lt);return q}function wn(q,Oe,Lt){if(C.exportEquals)return q;if(ta(Oe.name))for(const L of Oe.name.elements)Gc(L)||(q=wn(q,L,Lt));else!al(Oe.name)&&(!Oi(Oe)||Oe.initializer||Lt)&&(q=mt(q,new gI,Oe));return q}function He(q,Oe){if(C.exportEquals)return q;const Lt=new gI;if(Qr(Oe,32)){const L=Qr(Oe,2048)?r.createIdentifier("default"):r.getDeclarationName(Oe);q=ft(q,Lt,L,r.getLocalName(Oe),Oe)}return Oe.name&&(q=mt(q,Lt,Oe)),q}function mt(q,Oe,Lt,L){const me=r.getDeclarationName(Lt),J=C.exportSpecifiers.get(me);if(J)for(const fe of J)q=ft(q,Oe,fe.name,me,fe.name,void 0,L);return q}function ft(q,Oe,Lt,L,me,J,fe){return Oe.has(Lt)||(Oe.set(Lt,!0),q=Rn(q,le(Lt,L,me,J,fe))),q}function Ct(){let q;return m===0?q=r.createExpressionStatement(Fe(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())])])),pr(q,2097152),q}function le(q,Oe,Lt,L,me){const J=dt(r.createExpressionStatement(Fe(q,Oe,void 0,me)),Lt);return Xu(J),L||pr(J,3072),J}function Fe(q,Oe,Lt,L){return dt(L&&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,C=R[Wu(M)],A(q,Oe,Lt),M=void 0,C=void 0):A(q,Oe,Lt)}function it(q,Oe){return Oe=T(q,Oe),Oe.id&&O[Oe.id]?Oe:q===1?Ye(Oe):np(Oe)?Rt(Oe):Oe}function Rt(q){const Oe=q.name,Lt=yn(Oe);if(Lt!==Oe){if(q.objectAssignmentInitializer){const L=r.createAssignment(Lt,q.objectAssignmentInitializer);return dt(r.createPropertyAssignment(Oe,L),q)}return dt(r.createPropertyAssignment(Oe,Lt),q)}return q}function Ye(q){switch(q.kind){case 80:return yn(q);case 213:return _t(q);case 215:return Gt(q);case 226:return fn(q)}return q}function _t(q){if(Ve(q.expression)){const Oe=yn(q.expression);if(O[as(Oe)]=!0,!Ve(Oe)&&!(Ga(q.expression)&8192))return UA(r.updateCallExpression(q,Oe,void 0,q.arguments),16)}return q}function Gt(q){if(Ve(q.tag)){const Oe=yn(q.tag);if(O[as(Oe)]=!0,!Ve(Oe)&&!(Ga(q.tag)&8192))return UA(r.updateTaggedTemplateExpression(q,Oe,void 0,q.template),16)}return q}function yn(q){var Oe,Lt;if(Ga(q)&8192){const L=$k(M);return L?r.createPropertyAccessExpression(L,q):q}else if(!(al(q)&&!(q.emitNode.autoGenerate.flags&64))&&!Gg(q)){const L=p.getReferencedExportContainer(q,nF(q));if(L&&L.kind===312)return dt(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(q)),q);const me=p.getReferencedImportDeclaration(q);if(me){if(Eh(me))return dt(r.createPropertyAccessExpression(r.getGeneratedNameForNode(me.parent),r.createIdentifier("default")),q);if(tp(me)){const J=me.propertyName||me.name;return dt(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((Lt=(Oe=me.parent)==null?void 0:Oe.parent)==null?void 0:Lt.parent)||me),r.cloneNode(J)),q)}}}return q}function fn(q){if(Ov(q.operatorToken.kind)&&Ve(q.left)&&(!al(q.left)||cL(q.left))&&!Gg(q.left)){const Oe=hn(q.left);if(Oe){let Lt=q;for(const L of Oe)O[as(Lt)]=!0,Lt=Fe(L,Lt,q);return Lt}}return q}function hn(q){if(al(q)){if(cL(q)){const Oe=C==null?void 0:C.exportSpecifiers.get(q);if(Oe){const Lt=[];for(const L of Oe)Lt.push(L.name);return Lt}}}else{const Oe=p.getReferencedImportDeclaration(q);if(Oe)return C==null?void 0:C.exportedBindings[Wu(Oe)];const Lt=new Set,L=p.getReferencedValueDeclarations(q);if(L){for(const me of L){const J=C==null?void 0:C.exportedBindings[Wu(me)];if(J)for(const fe of J)Lt.add(fe)}if(Lt.size)return zo(Lt)}}}}var txe,Qje=I({"src/compiler/transformers/module/module.ts"(){ra(),txe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` + var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function Cle(e){const{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,s=e.getCompilerOptions(),l=e.getEmitResolver(),u=e.getEmitHost(),p=e.onSubstituteNode,h=e.onEmitNode;e.onSubstituteNode=Fe,e.onEmitNode=le,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(312);const m=[],y=[],T=[],A=[];let R,M,C,O,U,K,Q;return Dm(e,V);function V(q){if(q.isDeclarationFile||!(RA(q,s)||q.transformFlags&8388608))return q;const Oe=Wu(q);R=q,K=q,M=m[Oe]=wq(e,q),C=t.createUniqueName("exports"),y[Oe]=C,O=A[Oe]=t.createUniqueName("context");const Lt=se(M.externalImports),L=G(q,Lt),me=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,C),t.createParameterDeclaration(void 0,void 0,O)],void 0,L),J=Qk(t,q,u,s),fe=t.createArrayLiteralExpression(Wt(Lt,ke=>ke.name)),Be=pr(t.updateSourceFile(q,dt(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,J?[J,fe,me]:[fe,me]))]),q.statements)),2048);return Ps(s)||Koe(Be,L,ke=>!ke.scoped),Q&&(T[Oe]=Q,Q=void 0),R=void 0,M=void 0,C=void 0,O=void 0,U=void 0,K=void 0,Be}function se(q){const Oe=new Map,Lt=[];for(const L of q){const me=dI(t,L,R,u,l,s);if(me){const J=me.text,fe=Oe.get(J);fe!==void 0?Lt[fe].externalImports.push(L):(Oe.set(J,Lt.length),Lt.push({name:me,externalImports:[L]}))}}return Lt}function G(q,Oe){const Lt=[];r();const L=dd(s,"alwaysStrict")||!s.noImplicitUseStrict&&sc(R),me=t.copyPrologue(q.statements,Lt,L,Y);Lt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(O,t.createPropertyAccessExpression(O,"id")))]))),nt(M.externalHelpersImportDeclaration,Y,Hi);const J=jn(q.statements,Y,Hi,me);qr(Lt,U),Yh(Lt,i());const fe=ne(Lt),Be=q.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,ke=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",ye(fe,Oe)),t.createPropertyAssignment("execute",t.createFunctionExpression(Be,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 me=!1;for(const J of M.externalImports)if(J.kind===278&&J.exportClause){me=!0;break}if(!me){const J=he(void 0);return q.push(J),J.name}}const Oe=[];if(M.exportedNames)for(const me of M.exportedNames)me.escapedText!=="default"&&Oe.push(t.createPropertyAssignment(t.createStringLiteralFromNode(me),t.createTrue()));const Lt=t.createUniqueName("exportedNames");q.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Lt,void 0,void 0,t.createObjectLiteralExpression(Oe,!0))])));const L=he(Lt);return q.push(L),L.name}function he(q){const Oe=t.createUniqueName("exportStar"),Lt=t.createIdentifier("m"),L=t.createIdentifier("n"),me=t.createIdentifier("exports");let J=t.createStrictInequality(L,t.createStringLiteral("default"));return q&&(J=t.createLogicalAnd(J,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(q,"hasOwnProperty"),void 0,[L])))),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(me,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(L)]),Lt,t.createBlock([pr(t.createIfStatement(J,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(me,L),t.createElementAccessExpression(Lt,L)))),1)])),t.createExpressionStatement(t.createCallExpression(C,void 0,[me]))],!0))}function ye(q,Oe){const Lt=[];for(const L of Oe){const me=Xe(L.externalImports,Be=>YR(t,Be,R)),J=me?t.getGeneratedNameForNode(me):t.createUniqueName(""),fe=[];for(const Be of L.externalImports){const ke=YR(t,Be,R);switch(Be.kind){case 272:if(!Be.importClause)break;case 271:N.assert(ke!==void 0),fe.push(t.createExpressionStatement(t.createAssignment(ke,J))),Qr(Be,32)&&fe.push(t.createExpressionStatement(t.createCallExpression(C,void 0,[t.createStringLiteral(Er(ke)),J])));break;case 278:if(N.assert(ke!==void 0),Be.exportClause)if(Nf(Be.exportClause)){const Tt=[];for(const kt of Be.exportClause.elements)Tt.push(t.createPropertyAssignment(t.createStringLiteral(Er(kt.name)),t.createElementAccessExpression(J,t.createStringLiteral(Er(kt.propertyName||kt.name)))));fe.push(t.createExpressionStatement(t.createCallExpression(C,void 0,[t.createObjectLiteralExpression(Tt,!0)])))}else fe.push(t.createExpressionStatement(t.createCallExpression(C,void 0,[t.createStringLiteral(Er(Be.exportClause.name)),J])));else fe.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(fe,!0)))}return t.createArrayLiteralExpression(Lt,!0)}function Y(q){switch(q.kind){case 272:return X(q);case 271:return pe(q);case 278:return oe(q);case 277:return Ce(q);default:return rn(q)}}function X(q){let Oe;return q.importClause&&o(YR(t,q,R)),sh(At(Oe,q))}function oe(q){N.assertIsDefined(q)}function pe(q){N.assert(c0(q),"import= for internal module references should be handled in an earlier transformer.");let Oe;return o(YR(t,q,R)),sh(Se(Oe,q))}function Ce(q){if(q.isExportEquals)return;const Oe=nt(q.expression,Qi,yt);return It(t.createIdentifier("default"),Oe,!0)}function de(q){Qr(q,32)?U=Rn(U,t.updateFunctionDeclaration(q,jn(q.modifiers,Ct,sl),q.asteriskToken,t.getDeclarationName(q,!0,!0),void 0,jn(q.parameters,Qi,Ao),void 0,nt(q.body,Qi,Ko))):U=Rn(U,xn(q,Qi,e)),U=Bt(U,q)}function ie(q){let Oe;const Lt=t.getLocalName(q);return o(Lt),Oe=Rn(Oe,dt(t.createExpressionStatement(t.createAssignment(Lt,dt(t.createClassExpression(jn(q.modifiers,Ct,sl),q.name,void 0,jn(q.heritageClauses,Qi,nf),jn(q.members,Qi,Yc)),q))),q)),Oe=Bt(Oe,q),sh(Oe)}function ve(q){if(!Ue(q.declarationList))return nt(q,Qi,Hi);let Oe;if(RL(q.declarationList)||xL(q.declarationList)){const Lt=jn(q.modifiers,Ct,sl),L=[];for(const J of q.declarationList.declarations)L.push(t.updateVariableDeclaration(J,t.getGeneratedNameForNode(J.name),void 0,void 0,Ee(J,!1)));const me=t.updateVariableDeclarationList(q.declarationList,L);Oe=Rn(Oe,t.updateVariableStatement(q,Lt,me))}else{let Lt;const L=Qr(q,32);for(const me of q.declarationList.declarations)me.initializer?Lt=Rn(Lt,Ee(me,L)):Le(me);Lt&&(Oe=Rn(Oe,dt(t.createExpressionStatement(t.inlineExpressions(Lt)),q)))}return Oe=je(Oe,q,!1),sh(Oe)}function Le(q){if(ta(q.name))for(const Oe of q.name.elements)Gc(Oe)||Le(Oe);else o(t.cloneNode(q.name))}function Ue(q){return(Ga(q)&4194304)===0&&(K.kind===312||(Pl(q).flags&7)===0)}function Ee(q,Oe){const Lt=Oe?De:Me;return ta(q.name)?XS(q,Qi,e,0,!1,Lt):q.initializer?Lt(q.name,nt(q.initializer,Qi,yt)):q.name}function De(q,Oe,Lt){return We(q,Oe,Lt,!0)}function Me(q,Oe,Lt){return We(q,Oe,Lt,!1)}function We(q,Oe,Lt,L){return o(t.cloneNode(q)),L?tn(q,fn(dt(t.createAssignment(q,Oe),Lt))):fn(dt(t.createAssignment(q,Oe),Lt))}function At(q,Oe){if(M.exportEquals)return q;const Lt=Oe.importClause;if(!Lt)return q;Lt.name&&(q=vt(q,Lt));const L=Lt.namedBindings;if(L)switch(L.kind){case 274:q=vt(q,L);break;case 275:for(const me of L.elements)q=vt(q,me);break}return q}function Se(q,Oe){return M.exportEquals?q:vt(q,Oe)}function je(q,Oe,Lt){if(M.exportEquals)return q;for(const L of Oe.declarationList.declarations)(L.initializer||Lt)&&(q=ot(q,L,Lt));return q}function ot(q,Oe,Lt){if(M.exportEquals)return q;if(ta(Oe.name))for(const L of Oe.name.elements)Gc(L)||(q=ot(q,L,Lt));else if(!al(Oe.name)){let L;Lt&&(q=$e(q,Oe.name,t.getLocalName(Oe)),L=Er(Oe.name)),q=vt(q,Oe,L)}return q}function Bt(q,Oe){if(M.exportEquals)return q;let Lt;if(Qr(Oe,32)){const L=Qr(Oe,2048)?t.createStringLiteral("default"):Oe.name;q=$e(q,L,t.getLocalName(Oe)),Lt=Qf(L)}return Oe.name&&(q=vt(q,Oe,Lt)),q}function vt(q,Oe,Lt){if(M.exportEquals)return q;const L=t.getDeclarationName(Oe),me=M.exportSpecifiers.get(L);if(me)for(const J of me)J.name.escapedText!==Lt&&(q=$e(q,J.name,L));return q}function $e(q,Oe,Lt,L){return q=Rn(q,It(Oe,Lt,L)),q}function It(q,Oe,Lt){const L=t.createExpressionStatement(tn(q,Oe));return Xu(L),Lt||pr(L,3072),L}function tn(q,Oe){const Lt=Ve(q)?t.createStringLiteralFromNode(q):q;return pr(Oe,Ga(Oe)|3072),ac(t.createCallExpression(C,void 0,[Lt,Oe]),Oe)}function rn(q){switch(q.kind){case 243:return ve(q);case 262:return de(q);case 263:return ie(q);case 248:return Mn(q,!0);case 249:return $n(q);case 250:return gn(q);case 246:return vi(q);case 247:return so(q);case 256:return Wi(q);case 254:return Co(q);case 245:return Ln(q);case 255:return Ci(q);case 269:return Ar(q);case 296:return sn(q);case 297:return tt(q);case 258:return zt(q);case 299:return Dn(q);case 241:return ci(q);default:return Qi(q)}}function Mn(q,Oe){const Lt=K;return K=q,q=t.updateForStatement(q,nt(q.initializer,Oe?Yt:Io,Sf),nt(q.condition,Qi,yt),nt(q.incrementor,Io,yt),xd(q.statement,Oe?rn:Qi,e)),K=Lt,q}function $n(q){const Oe=K;return K=q,q=t.updateForInStatement(q,Yt(q.initializer),nt(q.expression,Qi,yt),xd(q.statement,rn,e)),K=Oe,q}function gn(q){const Oe=K;return K=q,q=t.updateForOfStatement(q,q.awaitModifier,Yt(q.initializer),nt(q.expression,Qi,yt),xd(q.statement,rn,e)),K=Oe,q}function Qt(q){return Vc(q)&&Ue(q)}function Yt(q){if(Qt(q)){let Oe;for(const Lt of q.declarations)Oe=Rn(Oe,Ee(Lt,!1)),Lt.initializer||Le(Lt);return Oe?t.inlineExpressions(Oe):t.createOmittedExpression()}else return nt(q,Io,Sf)}function vi(q){return t.updateDoStatement(q,xd(q.statement,rn,e),nt(q.expression,Qi,yt))}function so(q){return t.updateWhileStatement(q,nt(q.expression,Qi,yt),xd(q.statement,rn,e))}function Wi(q){return t.updateLabeledStatement(q,q.label,N.checkDefined(nt(q.statement,rn,Hi,t.liftToBlock)))}function Co(q){return t.updateWithStatement(q,nt(q.expression,Qi,yt),N.checkDefined(nt(q.statement,rn,Hi,t.liftToBlock)))}function Ln(q){return t.updateIfStatement(q,nt(q.expression,Qi,yt),N.checkDefined(nt(q.thenStatement,rn,Hi,t.liftToBlock)),nt(q.elseStatement,rn,Hi,t.liftToBlock))}function Ci(q){return t.updateSwitchStatement(q,nt(q.expression,Qi,yt),N.checkDefined(nt(q.caseBlock,rn,yP)))}function Ar(q){const Oe=K;return K=q,q=t.updateCaseBlock(q,jn(q.clauses,rn,E4)),K=Oe,q}function sn(q){return t.updateCaseClause(q,nt(q.expression,Qi,yt),jn(q.statements,rn,Hi))}function tt(q){return xn(q,rn,e)}function zt(q){return xn(q,rn,e)}function Dn(q){const Oe=K;return K=q,q=t.updateCatchClause(q,q.variableDeclaration,N.checkDefined(nt(q.block,rn,Ko))),K=Oe,q}function ci(q){const Oe=K;return K=q,q=xn(q,rn,e),K=Oe,q}function yi(q,Oe){if(!(q.transformFlags&276828160))return q;switch(q.kind){case 248:return Mn(q,!1);case 244:return fa(q);case 217:return ka(q,Oe);case 360:return Tn(q,Oe);case 226:if(Wv(q))return He(q,Oe);break;case 213:if(zp(q))return wn(q);break;case 224:case 225:return ft(q,Oe)}return xn(q,Qi,e)}function Qi(q){return yi(q,!1)}function Io(q){return yi(q,!0)}function fa(q){return t.updateExpressionStatement(q,nt(q.expression,Io,yt))}function ka(q,Oe){return t.updateParenthesizedExpression(q,nt(q.expression,Oe?Io:Qi,yt))}function Tn(q,Oe){return t.updatePartiallyEmittedExpression(q,nt(q.expression,Oe?Io:Qi,yt))}function wn(q){const Oe=dI(t,q,R,u,l,s),Lt=nt(Kc(q.arguments),Qi,yt),L=Oe&&(!Lt||!Na(Lt)||Lt.text!==Oe.text)?Oe:Lt;return t.createCallExpression(t.createPropertyAccessExpression(O,t.createIdentifier("import")),void 0,L?[L]:[])}function He(q,Oe){return mt(q.left)?XS(q,Qi,e,0,!Oe):xn(q,Qi,e)}function mt(q){if(Pc(q,!0))return mt(q.left);if($m(q))return mt(q.expression);if(La(q))return bt(q.properties,mt);if(fd(q))return bt(q.elements,mt);if(np(q))return mt(q.name);if(hc(q))return mt(q.initializer);if(Ve(q)){const 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)&&!al(q.operand)&&!Gg(q.operand)&&!rU(q.operand)){const Lt=Gt(q.operand);if(Lt){let L,me=nt(q.operand,Qi,yt);Xy(q)?me=t.updatePrefixUnaryExpression(q,me):(me=t.updatePostfixUnaryExpression(q,me),Oe||(L=t.createTempVariable(o),me=t.createAssignment(L,me),dt(me,q)),me=t.createComma(me,t.cloneNode(q.operand)),dt(me,q));for(const J of Lt)me=tn(J,fn(me));return L&&(me=t.createComma(me,L),dt(me,q)),me}}return xn(q,Qi,e)}function Ct(q){switch(q.kind){case 95:case 90:return}return q}function le(q,Oe,Lt){if(Oe.kind===312){const L=Wu(Oe);R=Oe,M=m[L],C=y[L],Q=T[L],O=A[L],Q&&delete T[L],h(q,Oe,Lt),R=void 0,M=void 0,C=void 0,O=void 0,Q=void 0}else h(q,Oe,Lt)}function Fe(q,Oe){return Oe=p(q,Oe),hn(Oe)?Oe:q===1?it(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;const L=q.name;if(!al(L)&&!Gg(L)){const me=l.getReferencedImportDeclaration(L);if(me){if(Eh(me))return dt(t.createPropertyAssignment(t.cloneNode(L),t.createPropertyAccessExpression(t.getGeneratedNameForNode(me.parent),t.createIdentifier("default"))),q);if(tp(me))return dt(t.createPropertyAssignment(t.cloneNode(L),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Lt=(Oe=me.parent)==null?void 0:Oe.parent)==null?void 0:Lt.parent)||me),t.cloneNode(me.propertyName||me.name))),q)}}return q}function it(q){switch(q.kind){case 80:return Rt(q);case 226:return Ye(q);case 236:return _t(q)}return q}function Rt(q){var Oe,Lt;if(Ga(q)&8192){const L=$k(R);return L?t.createPropertyAccessExpression(L,q):q}if(!al(q)&&!Gg(q)){const L=l.getReferencedImportDeclaration(q);if(L){if(Eh(L))return dt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(L.parent),t.createIdentifier("default")),q);if(tp(L))return dt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Lt=(Oe=L.parent)==null?void 0:Oe.parent)==null?void 0:Lt.parent)||L),t.cloneNode(L.propertyName||L.name)),q)}}return q}function Ye(q){if(Ov(q.operatorToken.kind)&&Ve(q.left)&&(!al(q.left)||cL(q.left))&&!Gg(q.left)){const Oe=Gt(q.left);if(Oe){let Lt=q;for(const L of Oe)Lt=tn(L,fn(Lt));return Lt}}return q}function _t(q){return oR(q)?t.createPropertyAccessExpression(O,t.createIdentifier("meta")):q}function Gt(q){let Oe;const Lt=yn(q);if(Lt){const L=l.getReferencedExportContainer(q,!1);L&&L.kind===312&&(Oe=Rn(Oe,t.getDeclarationName(Lt))),Oe=qr(Oe,M==null?void 0:M.exportedBindings[Wu(Lt)])}else if(al(q)&&cL(q)){const L=M==null?void 0:M.exportSpecifiers.get(q);if(L){const me=[];for(const J of L)me.push(J.name);return me}}return Oe}function yn(q){if(!al(q)){const Oe=l.getReferencedImportDeclaration(q);if(Oe)return Oe;const Lt=l.getReferencedValueDeclaration(q);if(Lt&&(M!=null&&M.exportedBindings[Wu(Lt)]))return Lt;const L=l.getReferencedValueDeclarations(q);if(L){for(const me of L)if(me!==Lt&&(M!=null&&M.exportedBindings[Wu(me)]))return me}return Lt}}function fn(q){return Q===void 0&&(Q=[]),Q[as(q)]=!0,q}function hn(q){return Q&&q.id&&Q[q.id]}}var Zje=I({"src/compiler/transformers/module/system.ts"(){ra()}});function Jq(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),o=e.getEmitResolver(),s=e.getCompilerOptions(),l=os(s),u=e.onEmitNode,p=e.onSubstituteNode;e.onEmitNode=Q,e.onSubstituteNode=V,e.enableEmitNotification(312),e.enableSubstitution(80);let h,m,y;return Dm(e,T);function T(G){if(G.isDeclarationFile)return G;if(sc(G)||rm(s)){m=G,y=void 0;let ne=A(G);return m=void 0,y&&(ne=t.updateSourceFile(ne,dt(t.createNodeArray(XV(ne.statements.slice(),y)),ne.statements))),!sc(G)||wu(s)===200||bt(ne.statements,mL)?ne:t.updateSourceFile(ne,dt(t.createNodeArray([...ne.statements,Kk(t)]),ne.statements))}return G}function A(G){const ne=xH(t,r(),G,s);if(ne){const he=[],ye=t.copyPrologue(G.statements,he);return Rn(he,ne),qr(he,jn(G.statements,R,Hi,ye)),t.updateSourceFile(G,dt(t.createNodeArray(he),G.statements))}else return xn(G,R,e)}function R(G){switch(G.kind){case 271:return wu(s)>=100?C(G):void 0;case 277:return U(G);case 278:return K(G)}return G}function M(G){const ne=dI(t,G,N.checkDefined(m),i,o,s),he=[];if(ne&&he.push(ne),wu(s)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,he);if(!y){const Y=t.createUniqueName("_createRequire",48),X=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),Y)])),t.createStringLiteral("module"),void 0),oe=t.createUniqueName("__require",48),pe=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(oe,void 0,void 0,t.createCallExpression(t.cloneNode(Y),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],l>=2?2:0));y=[X,pe]}const ye=y[1].declarationList.declarations[0].name;return N.assertNode(ye,Ve),t.createCallExpression(t.cloneNode(ye),void 0,he)}function C(G){N.assert(c0(G),"import= for internal module references should be handled in an earlier transformer.");let ne;return ne=Rn(ne,Nr(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 Qr(ne,32)&&(G=Rn(G,t.createExportDeclaration(void 0,ne.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,Er(ne.name))])))),G}function U(G){return G.isExportEquals?wu(s)===200?Nr(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;const 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);Nr(ye,G.exportClause);const Y=M4(G)?t.createExportDefault(he):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,he,ne)]));return Nr(Y,G),[ye,Y]}function Q(G,ne,he){$i(ne)?((sc(ne)||rm(s))&&s.importHelpers&&(h=new Map),u(G,ne,he),h=void 0):u(G,ne,he)}function V(G,ne){return ne=p(G,ne),h&&Ve(ne)&&Ga(ne)&8192?se(ne):ne}function se(G){const ne=Er(G);let he=h.get(ne);return he||h.set(ne,he=t.createUniqueName(ne,48)),he}}var eUe=I({"src/compiler/transformers/module/esnextAnd2015.ts"(){ra()}});function Ple(e){const t=e.onSubstituteNode,r=e.onEmitNode,i=Jq(e),o=e.onSubstituteNode,s=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;const l=qq(e),u=e.onSubstituteNode,p=e.onEmitNode;e.onSubstituteNode=m,e.onEmitNode=y,e.enableSubstitution(312),e.enableEmitNotification(312);let h;return R;function m(C,O){return $i(O)?(h=O,t(C,O)):h?h.impliedNodeFormat===99?o(C,O):u(C,O):t(C,O)}function y(C,O,U){return $i(O)&&(h=O),h?h.impliedNodeFormat===99?s(C,O,U):p(C,O,U):r(C,O,U)}function T(C){return C.impliedNodeFormat===99?i:l}function A(C){if(C.isDeclarationFile)return C;h=C;const O=T(C)(C);return h=void 0,N.assert($i(O)),O}function R(C){return C.kind===312?A(C):M(C)}function M(C){return e.factory.createBundle(Wt(C.sourceFiles,A),C.prepends)}}var tUe=I({"src/compiler/transformers/module/node.ts"(){ra()}});function QF(e){return Oi(e)||qo(e)||gp(e)||$a(e)||Mv(e)||My(e)||Bk(e)||ZA(e)||Hl(e)||yh(e)||Tc(e)||Ao(e)||hl(e)||Vv(e)||eu(e)||xm(e)||Ml(e)||XE(e)||Fr(e)||$s(e)||mr(e)||$f(e)}function Mle(e){if(Mv(e)||My(e))return t;return yh(e)||Hl(e)?i:Uv(e);function t(s){const l=r(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function r(s){return aa(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){const l=o(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function o(s){return aa(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 Uv(e){if(Oi(e)||qo(e)||gp(e)||Fr(e)||$s(e)||mr(e)||$a(e)||Ml(e))return r;return Mv(e)||My(e)?i:Bk(e)||ZA(e)||Hl(e)||yh(e)||Tc(e)||XE(e)?o:Ao(e)?pp(e,e.parent)&&Qr(e.parent,2)?r:s:hl(e)?u:Vv(e)?p:eu(e)?h:xm(e)||$f(e)?m:N.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${N.formatSyntaxKind(e.kind)}`);function t(y){if(e.kind===260||e.kind===208)return y.errorModuleName?y.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&&Qr(e.parent,2))return aa(e)?y.errorModuleName?y.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?y.errorModuleName?y.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:y.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(y){const T=t(y);return T!==void 0?{diagnosticMessage:T,errorNode:e,typeName:e.name}:void 0}function i(y){let T;return e.kind===178?aa(e)?T=y.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=y.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:aa(e)?T=y.errorModuleName?y.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=y.errorModuleName?y.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(y){let T;switch(e.kind){case 180:T=y.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=y.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=y.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:aa(e)?T=y.errorModuleName?y.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=y.errorModuleName?y.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=y.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=y.errorModuleName?y.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 N.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:T,errorNode:e.name||e}}function s(y){const T=l(y);return T!==void 0?{diagnosticMessage:T,errorNode:e,typeName:e.name}:void 0}function l(y){switch(e.parent.kind){case 176:return y.errorModuleName?y.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 y.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 y.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 y.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 aa(e.parent)?y.errorModuleName?y.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?y.errorModuleName?y.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:y.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 y.errorModuleName?y.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 y.errorModuleName?y.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 N.fail(`Unknown parent for parameter: ${N.formatSyntaxKind(e.parent.kind)}`)}}function u(){let y;switch(e.parent.kind){case 263:y=f.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:y=f.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:y=f.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:y=f.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:y=f.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:aa(e.parent)?y=f.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?y=f.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y=f.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:y=f.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:y=f.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:y=f.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return N.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:y,errorNode:e,typeName:e.name}}function p(){let y;return Ac(e.parent.parent)?y=nf(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:y=f.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:y,errorNode:e,typeName:Lo(e.parent.parent)}}function h(){return{diagnosticMessage:f.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function m(y){return{diagnosticMessage:y.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:$f(e)?N.checkDefined(e.typeExpression):e.type,typeName:$f(e)?Lo(e):e.name}}}var nUe=I({"src/compiler/transformers/declarations/diagnostics.ts"(){ra()}});function Lle(e,t,r){const i=e.getCompilerOptions();return Mw(t,e,w,i,r?[r]:mn(e.getSourceFiles(),gj),[Kq],!1).diagnostics}function Kq(e){const t=()=>N.fail("Diagnostic emitted without context");let r=t,i=!0,o=!1,s=!1,l=!1,u=!1,p,h,m,y,T,A;const{factory:R}=e,M=e.getEmitHost(),C={trackSymbol:de,reportInaccessibleThisError:Ee,reportInaccessibleUniqueSymbolError:Le,reportCyclicStructureError:Ue,reportPrivateInBaseOfClassExpression:ie,reportLikelyUnsafeImportRequiredError:De,reportTruncationError:Me,moduleResolverHost:M,trackReferencedAmbientModule:X,trackExternalModuleSymbolOfImportTypeNode:Ce,reportNonlocalAugmentation:We,reportNonSerializableProperty:At};let O,U,K,Q,V,se;const G=e.getEmitResolver(),ne=e.getCompilerOptions(),{noResolve:he,stripInternal:ye}=ne;return je;function Y(j){if(j){h=h||new Set;for(const it of j)h.add(it)}}function X(j,it){const Rt=G.getTypeReferenceDirectivesForSymbol(it,-1);if(Ne(Rt))return Y(Rt);const Ye=Un(j);Q.set(Wu(Ye),Ye)}function oe(j){const it=pR(j),Rt=it&&G.tryFindAmbientModule(it);if(Rt!=null&&Rt.declarations)for(const Ye of Rt.declarations)ku(Ye)&&Un(Ye)!==K&&X(Ye,Rt)}function pe(j){if(j.accessibility===0){if(j.aliasesToMakeVisible)if(!m)m=j.aliasesToMakeVisible;else for(const it of j.aliasesToMakeVisible)Ef(m,it)}else{const it=r(j);if(it)return it.typeName?e.addDiagnostic(kr(j.errorNode||it.errorNode,it.diagnosticMessage,fc(it.typeName),j.errorSymbolName,j.errorModuleName)):e.addDiagnostic(kr(j.errorNode||it.errorNode,it.diagnosticMessage,j.errorSymbolName,j.errorModuleName)),!0}return!1}function Ce(j){o||(A||(A=[])).push(j)}function de(j,it,Rt){if(j.flags&262144)return!1;const Ye=pe(G.isSymbolAccessible(j,it,Rt,!0));return Y(G.getTypeReferenceDirectivesForSymbol(j,Rt)),Ye}function ie(j){(O||U)&&e.addDiagnostic(kr(O||U,f.Property_0_of_exported_class_expression_may_not_be_private_or_protected,j))}function ve(){return O?xs(O):U&&Lo(U)?xs(Lo(U)):U&&kl(U)?U.isExportEquals?"export=":"default":"(Missing)"}function Le(){(O||U)&&e.addDiagnostic(kr(O||U,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ve(),"unique symbol"))}function Ue(){(O||U)&&e.addDiagnostic(kr(O||U,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||U)&&e.addDiagnostic(kr(O||U,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ve(),"this"))}function De(j){(O||U)&&e.addDiagnostic(kr(O||U,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||U)&&e.addDiagnostic(kr(O||U,f.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function We(j,it,Rt){var Ye;const _t=(Ye=it.declarations)==null?void 0:Ye.find(yn=>Un(yn)===j),Gt=mn(Rt.declarations,yn=>Un(yn)!==j);if(_t&&Gt)for(const yn of Gt)e.addDiagnostic(Ma(kr(yn,f.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),kr(_t,f.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function At(j){(O||U)&&e.addDiagnostic(kr(O||U,f.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,j))}function Se(j,it){const Rt=r;r=_t=>_t.errorNode&&QF(_t.errorNode)?Uv(_t.errorNode)(_t):{diagnosticMessage:_t.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:_t.errorNode||j};const Ye=G.getDeclarationStatementsForSourceFile(j,YS,C,it);return r=Rt,Ye}function je(j){if(j.kind===312&&j.isDeclarationFile)return j;if(j.kind===313){o=!0,Q=new Map,V=new Map;let Oe=!1;const Lt=R.createBundle(Wt(j.sourceFiles,J=>{if(J.isDeclarationFile)return;if(Oe=Oe||J.hasNoDefaultLib,K=J,p=J,m=void 0,T=!1,y=new Map,r=t,l=!1,u=!1,ot(J,Q),Bt(J,V),Fp(J)||Yf(J)){s=!1,i=!1;const Be=cd(J)?R.createNodeArray(Se(J,!0)):jn(J.statements,ci,Hi);return R.updateSourceFile(J,[R.createModuleDeclaration([R.createModifier(138)],R.createStringLiteral(d3(e.getEmitHost(),J)),R.createModuleBlock(dt(R.createNodeArray(tt(Be)),J.statements)))],!0,[],[],!1,[])}i=!0;const fe=cd(J)?R.createNodeArray(Se(J)):jn(J.statements,ci,Hi);return R.updateSourceFile(J,tt(fe),!0,[],[],!1,[])}),eo(j.prepends,J=>{if(J.kind===315){const fe=UU(J,"dts",ye);return Oe=Oe||!!fe.hasNoDefaultLib,ot(fe,Q),Y(Wt(fe.typeReferenceDirectives,Be=>[Be.fileName,Be.resolutionMode])),Bt(fe,V),fe}return J}));Lt.syntheticFileReferences=[],Lt.syntheticTypeReferences=fn(),Lt.syntheticLibReferences=yn(),Lt.hasNoDefaultLib=Oe;const L=ai(Lu(qP(j,M,!0).declarationFilePath)),me=q(Lt.syntheticFileReferences,L);return Q.forEach(me),Lt}i=!0,l=!1,u=!1,p=j,K=j,r=t,o=!1,s=!1,T=!1,m=void 0,y=new Map,h=void 0,Q=ot(K,new Map),V=Bt(K,new Map);const it=[],Rt=ai(Lu(qP(j,M,!0).declarationFilePath)),Ye=q(it,Rt);let _t;if(cd(K))_t=R.createNodeArray(Se(j)),Q.forEach(Ye),se=mn(_t,gS);else{const Oe=jn(j.statements,ci,Hi);_t=dt(R.createNodeArray(tt(Oe)),j.statements),Q.forEach(Ye),se=mn(_t,gS),sc(j)&&(!s||l&&!u)&&(_t=dt(R.createNodeArray([..._t,Kk(R)]),_t))}const Gt=R.updateSourceFile(j,_t,!0,it,fn(),j.hasNoDefaultLib,yn());return Gt.exportedModulesFromDeclarationEmit=A,Gt;function yn(){return zo(V.keys(),Oe=>({fileName:Oe,pos:-1,end:-1}))}function fn(){return h?eo(zo(h.keys()),hn):[]}function hn([Oe,Lt]){if(se){for(const L of se)if(eu(L)&&Th(L.moduleReference)){const me=L.moduleReference.expression;if(ls(me)&&me.text===Oe)return}else if(Mc(L)&&Na(L.moduleSpecifier)&&L.moduleSpecifier.text===Oe)return}return{fileName:Oe,pos:-1,end:-1,...Lt?{resolutionMode:Lt}:void 0}}function q(Oe,Lt){return L=>{if(A!=null&&A.includes(L.symbol))return;let me;if(L.isDeclarationFile)me=L.fileName;else{if(o&&Or(j.sourceFiles,L))return;const J=qP(L,M,!0);me=J.declarationFilePath||J.jsFilePath||L.fileName}if(me){const J=LF(ne,K,go(Lt,M.getCurrentDirectory()),go(me,M.getCurrentDirectory()),M);if(!Op(J)){Y([[J,void 0]]);return}let fe=yA(Lt,me,M.getCurrentDirectory(),M.getCanonicalFileName,!1);if(uo(fe,"./")&&vA(fe)&&(fe=fe.substring(2)),uo(fe,"node_modules/")||x0(fe))return;Oe.push({pos:-1,end:-1,fileName:fe})}}}}function ot(j,it){return he||!VS(j)&&cd(j)||Xe(j.referencedFiles,Rt=>{const Ye=M.getSourceFileFromReference(j,Rt);Ye&&it.set(Wu(Ye),Ye)}),it}function Bt(j,it){return Xe(j.libReferenceDirectives,Rt=>{M.getLibFileFromReference(Rt)&&it.set(lh(Rt.fileName),!0)}),it}function vt(j){if(j.kind===80)return j;return j.kind===207?R.updateArrayBindingPattern(j,jn(j.elements,it,g4)):R.updateObjectBindingPattern(j,jn(j.elements,it,$a));function it(Rt){return Rt.kind===232?Rt:(Rt.propertyName&&Za(Rt.propertyName)&&Bl(Rt.propertyName.expression)&&Wi(Rt.propertyName.expression,p),R.updateBindingElement(Rt,Rt.dotDotDotToken,Rt.propertyName,vt(Rt.name),It(Rt)?Rt.initializer:void 0))}}function $e(j,it,Rt){let Ye;T||(Ye=r,r=Uv(j));const _t=R.updateParameterDeclaration(j,iUe(R,j,it),j.dotDotDotToken,vt(j.name),G.isOptionalParameter(j)?j.questionToken||R.createToken(58):void 0,rn(j,Rt||j.type,!0),tn(j));return T||(r=Ye),_t}function It(j){return oUe(j)&&G.isLiteralConstDeclaration(No(j))}function tn(j){if(It(j))return G.createLiteralConstValue(No(j),C)}function rn(j,it,Rt){if(!Rt&&_p(j,2)||It(j))return;const Ye=j.kind===169&&(G.isRequiredInitializedParameter(j)||G.isOptionalUninitializedParameterProperty(j));if(it&&!Ye)return nt(it,zt,ji);if(!No(j))return it?nt(it,zt,ji):R.createKeywordTypeNode(133);if(j.kind===178)return R.createKeywordTypeNode(133);O=j.name;let _t;if(T||(_t=r,r=Uv(j)),j.kind===260||j.kind===208)return Gt(G.createTypeOfDeclaration(j,p,YS,C));if(j.kind===169||j.kind===172||j.kind===171)return gp(j)||!j.initializer?Gt(G.createTypeOfDeclaration(j,p,YS,C,Ye)):Gt(G.createTypeOfDeclaration(j,p,YS,C,Ye)||G.createTypeOfExpression(j.initializer,p,YS,C));return Gt(G.createReturnTypeOfSignatureDeclaration(j,p,YS,C));function Gt(yn){return O=void 0,T||(r=_t),yn||R.createKeywordTypeNode(133)}}function Mn(j){switch(j=No(j),j.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!G.isDeclarationVisible(j);case 260:return!gn(j);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function $n(j){var it;if(j.body)return!0;const Rt=(it=j.symbol.declarations)==null?void 0:it.filter(Ye=>Tc(Ye)&&!Ye.body);return!Rt||Rt.indexOf(j)===Rt.length-1}function gn(j){return Gc(j)?!1:ta(j.name)?bt(j.name.elements,gn):G.isDeclarationVisible(j)}function Qt(j,it,Rt){if(_p(j,2))return R.createNodeArray();const Ye=Wt(it,_t=>$e(_t,Rt));return Ye?R.createNodeArray(Ye,it.hasTrailingComma):R.createNodeArray()}function Yt(j,it){let Rt;if(!it){const Ye=BE(j);Ye&&(Rt=[$e(Ye)])}if(vp(j)){let Ye;if(!it){const _t=wC(j);if(_t){const Gt=Fe(j,G.getAllAccessorDeclarations(j));Ye=$e(_t,void 0,Gt)}}Ye||(Ye=R.createParameterDeclaration(void 0,void 0,"value")),Rt=Rn(Rt,Ye)}return R.createNodeArray(Rt||et)}function vi(j,it){return _p(j,2)?void 0:jn(it,zt,hl)}function so(j){return $i(j)||xm(j)||Xl(j)||Ac(j)||md(j)||ea(j)||XE(j)||GR(j)}function Wi(j,it){const Rt=G.isEntityNameVisible(j,it);pe(Rt),Y(G.getTypeReferenceDirectivesForEntityName(j))}function Co(j,it){return Wp(j)&&Wp(it)&&(j.jsDoc=it.jsDoc),ac(j,M_(it))}function Ln(j,it){if(it){if(s=s||j.kind!==267&&j.kind!==205,ls(it))if(o){const Rt=Aie(e.getEmitHost(),G,j);if(Rt)return R.createStringLiteral(Rt)}else{const Rt=G.getSymbolOfExternalModuleSpecifier(it);Rt&&(A||(A=[])).push(Rt)}return it}}function Ci(j){if(G.isDeclarationVisible(j))if(j.moduleReference.kind===283){const it=TC(j);return R.updateImportEqualsDeclaration(j,j.modifiers,j.isTypeOnly,j.name,R.updateExternalModuleReference(j.moduleReference,Ln(j,it)))}else{const it=r;return r=Uv(j),Wi(j.moduleReference,p),r=it,j}}function Ar(j){if(!j.importClause)return R.updateImportDeclaration(j,j.modifiers,j.importClause,Ln(j,j.moduleSpecifier),sn(j.attributes));const it=j.importClause&&j.importClause.name&&G.isDeclarationVisible(j.importClause)?j.importClause.name:void 0;if(!j.importClause.namedBindings)return it&&R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,it,void 0),Ln(j,j.moduleSpecifier),sn(j.attributes));if(j.importClause.namedBindings.kind===274){const Ye=G.isDeclarationVisible(j.importClause.namedBindings)?j.importClause.namedBindings:void 0;return it||Ye?R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,it,Ye),Ln(j,j.moduleSpecifier),sn(j.attributes)):void 0}const Rt=eo(j.importClause.namedBindings.elements,Ye=>G.isDeclarationVisible(Ye)?Ye:void 0);if(Rt&&Rt.length||it)return R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,it,Rt&&Rt.length?R.updateNamedImports(j.importClause.namedBindings,Rt):void 0),Ln(j,j.moduleSpecifier),sn(j.attributes));if(G.isImportRequiredByAugmentation(j))return R.updateImportDeclaration(j,j.modifiers,void 0,Ln(j,j.moduleSpecifier),sn(j.attributes))}function sn(j){const it=uD(j);return j&&it!==void 0?j:void 0}function tt(j){for(;Ne(m);){const Rt=m.shift();if(!k4(Rt))return N.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${N.formatSyntaxKind(Rt.kind)}`);const Ye=i;i=Rt.parent&&$i(Rt.parent)&&!(sc(Rt.parent)&&o);const _t=Io(Rt);i=Ye,y.set(Wu(Rt),_t)}return jn(j,it,Hi);function it(Rt){if(k4(Rt)){const Ye=Wu(Rt);if(y.has(Ye)){const _t=y.get(Ye);return y.delete(Ye),_t&&((To(_t)?bt(_t,v4):v4(_t))&&(l=!0),$i(Rt.parent)&&(To(_t)?bt(_t,mL):mL(_t))&&(s=!0)),_t}}return Rt}}function zt(j){if(He(j)||Ju(j)&&(Mn(j)||Wy(j)&&!G.isLateBound(No(j)))||ea(j)&&G.isImplementationOfOverload(j)||fae(j))return;let it;so(j)&&(it=p,p=j);const Rt=r,Ye=QF(j),_t=T;let Gt=(j.kind===187||j.kind===200)&&j.parent.kind!==265;if((Hl(j)||yh(j))&&_p(j,2))return j.symbol&&j.symbol.declarations&&j.symbol.declarations[0]!==j?void 0:yn(R.createPropertyDeclaration(Ct(j),j.name,void 0,void 0,void 0));if(Ye&&!T&&(r=Uv(j)),eI(j)&&Wi(j.exprName,p),Gt&&(T=!0),sUe(j))switch(j.kind){case 233:{(Qd(j.expression)||Bl(j.expression))&&Wi(j.expression,p);const fn=xn(j,zt,e);return yn(R.updateExpressionWithTypeArguments(fn,fn.expression,fn.typeArguments))}case 183:{Wi(j.typeName,p);const fn=xn(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:{const fn=R.createConstructorDeclaration(Ct(j),Qt(j,j.parameters,0),void 0);return yn(fn)}case 174:{if(qi(j.name))return yn(void 0);const fn=R.createMethodDeclaration(Ct(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(qi(j.name))return yn(void 0);const fn=Fe(j,G.getAllAccessorDeclarations(j));return yn(R.updateGetAccessorDeclaration(j,Ct(j),j.name,Yt(j,_p(j,2)),rn(j,fn),void 0))}case 178:return qi(j.name)?yn(void 0):yn(R.updateSetAccessorDeclaration(j,Ct(j),j.name,Yt(j,_p(j,2)),void 0));case 172:return qi(j.name)?yn(void 0):yn(R.updatePropertyDeclaration(j,Ct(j),j.name,j.questionToken,rn(j,j.type),tn(j)));case 171:return qi(j.name)?yn(void 0):yn(R.updatePropertySignature(j,Ct(j),j.name,j.questionToken,rn(j,j.type)));case 173:return qi(j.name)?yn(void 0):yn(R.updateMethodSignature(j,Ct(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,Ct(j),Qt(j,j.parameters),nt(j.type,zt,ji)||R.createKeywordTypeNode(133)));case 260:return ta(j.name)?ka(j.name):(Gt=!0,T=!0,yn(R.updateVariableDeclaration(j,j.name,void 0,rn(j,j.type),tn(j))));case 168:return Dn(j)&&(j.default||j.constraint)?yn(R.updateTypeParameterDeclaration(j,j.modifiers,j.name,void 0,void 0)):yn(xn(j,zt,e));case 194:{const fn=nt(j.checkType,zt,ji),hn=nt(j.extendsType,zt,ji),q=p;p=j.trueType;const Oe=nt(j.trueType,zt,ji);p=q;const Lt=nt(j.falseType,zt,ji);return N.assert(fn),N.assert(hn),N.assert(Oe),N.assert(Lt),yn(R.updateConditionalTypeNode(j,fn,hn,Oe,Lt))}case 184:return yn(R.updateFunctionTypeNode(j,jn(j.typeParameters,zt,hl),Qt(j,j.parameters),N.checkDefined(nt(j.type,zt,ji))));case 185:return yn(R.updateConstructorTypeNode(j,Ct(j),jn(j.typeParameters,zt,hl),Qt(j,j.parameters),N.checkDefined(nt(j.type,zt,ji))));case 205:return Oy(j)?(oe(j),yn(R.updateImportTypeNode(j,R.updateLiteralTypeNode(j.argument,Ln(j,j.argument.literal)),j.attributes,j.qualifier,jn(j.typeArguments,zt,ji),j.isTypeOf))):yn(j);default:N.assertNever(j,`Attempted to process unhandled node kind: ${N.formatSyntaxKind(j.kind)}`)}return tI(j)&&ys(K,j.pos).line===ys(K,j.end).line&&pr(j,1),yn(xn(j,zt,e));function yn(fn){return fn&&Ye&&Wy(j)&&wn(j),so(j)&&(p=it),Ye&&!T&&(r=Rt),Gt&&(T=_t),fn===j?fn:fn&&Nr(Co(fn,j),j)}}function Dn(j){return j.parent.kind===174&&_p(j.parent,2)}function ci(j){if(!aUe(j)||He(j))return;switch(j.kind){case 278:return $i(j.parent)&&(s=!0),u=!0,oe(j),R.updateExportDeclaration(j,j.modifiers,j.isTypeOnly,j.exportClause,Ln(j,j.moduleSpecifier),sn(j.attributes));case 277:{if($i(j.parent)&&(s=!0),u=!0,j.expression.kind===80)return j;{const Rt=R.createUniqueName("_default",16);r=()=>({diagnosticMessage:f.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:j}),U=j;const Ye=R.createVariableDeclaration(Rt,void 0,G.createTypeOfExpression(j.expression,j,YS,C),void 0);U=void 0;const _t=R.createVariableStatement(i?[R.createModifier(138)]:[],R.createVariableDeclarationList([Ye],2));return Co(_t,j),Pk(j),[_t,R.updateExportAssignment(j,j.modifiers,Rt)]}}}const it=Io(j);return y.set(Wu(j),it),j}function yi(j){if(eu(j)||_p(j,2048)||!Rm(j))return j;const it=R.createModifiersFromModifierFlags(ud(j)&131039);return R.replaceModifiers(j,it)}function Qi(j,it,Rt,Ye){const _t=R.updateModuleDeclaration(j,it,Rt,Ye);if(ku(_t)||_t.flags&32)return _t;const Gt=R.createModuleDeclaration(_t.modifiers,_t.name,_t.body,_t.flags|32);return Nr(Gt,_t),dt(Gt,_t),Gt}function Io(j){if(m)for(;wx(m,j););if(He(j))return;switch(j.kind){case 271:{const yn=Ci(j);return yn&&oe(j),yn}case 272:{const yn=Ar(j);return yn&&oe(j),yn}}if(Ju(j)&&Mn(j)||ea(j)&&G.isImplementationOfOverload(j))return;let it;so(j)&&(it=p,p=j);const Rt=QF(j),Ye=r;Rt&&(r=Uv(j));const _t=i;switch(j.kind){case 265:{i=!1;const yn=Gt(R.updateTypeAliasDeclaration(j,Ct(j),j.name,jn(j.typeParameters,zt,hl),N.checkDefined(nt(j.type,zt,ji))));return i=_t,yn}case 264:return Gt(R.updateInterfaceDeclaration(j,Ct(j),j.name,vi(j,j.typeParameters),pt(j.heritageClauses),jn(j.members,zt,fS)));case 262:{const yn=Gt(R.updateFunctionDeclaration(j,Ct(j),void 0,j.name,vi(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type),void 0));if(yn&&G.isExpandoFunctionDeclaration(j)&&$n(j)){const fn=G.getPropertiesOfContainerFunction(j),hn=Ah.createModuleDeclaration(void 0,yn.name||R.createIdentifier("_default"),R.createModuleBlock([]),32);Ha(hn,p),hn.locals=ca(fn),hn.symbol=fn[0].parent;const q=[];let Oe=eo(fn,Be=>{if(!Y3(Be.valueDeclaration))return;const ke=Vi(Be.escapedName);if(!Zp(ke,99))return;r=Uv(Be.valueDeclaration);const Tt=G.createTypeOfDeclaration(Be.valueDeclaration,hn,YS,C);r=Ye;const kt=LA(ke),en=kt?R.getGeneratedNameForNode(Be.valueDeclaration):R.createIdentifier(ke);kt&&q.push([en,ke]);const En=R.createVariableDeclaration(en,void 0,Tt,void 0);return R.createVariableStatement(kt?void 0:[R.createToken(95)],R.createVariableDeclarationList([En]))});q.length?Oe.push(R.createExportDeclaration(void 0,!1,R.createNamedExports(Wt(q,([Be,ke])=>R.createExportSpecifier(!1,Be,ke))))):Oe=eo(Oe,Be=>R.replaceModifiers(Be,0));const Lt=R.createModuleDeclaration(Ct(j),j.name,R.createModuleBlock(Oe),32);if(!_p(yn,2048))return[yn,Lt];const L=R.createModifiersFromModifierFlags(ud(yn)&-2081|128),me=R.updateFunctionDeclaration(yn,L,void 0,yn.name,yn.typeParameters,yn.parameters,yn.type,void 0),J=R.updateModuleDeclaration(Lt,L,Lt.name,Lt.body),fe=R.createExportAssignment(void 0,!1,Lt.name);return $i(j.parent)&&(s=!0),u=!0,[me,J,fe]}else return yn}case 267:{i=!1;const yn=j.body;if(yn&&yn.kind===268){const fn=l,hn=u;u=!1,l=!1;const q=jn(yn.statements,ci,Hi);let Oe=tt(q);j.flags&33554432&&(l=!1),!A_(j)&&!ft(Oe)&&!u&&(l?Oe=R.createNodeArray([...Oe,Kk(R)]):Oe=jn(Oe,yi,Hi));const Lt=R.updateModuleBlock(yn,Oe);i=_t,l=fn,u=hn;const L=Ct(j);return Gt(Qi(j,L,PE(j)?Ln(j,j.name):j.name,Lt))}else{i=_t;const fn=Ct(j);i=!1,nt(yn,ci);const hn=Wu(yn),q=y.get(hn);return y.delete(hn),Gt(Qi(j,fn,j.name,q))}}case 263:{O=j.name,U=j;const yn=R.createNodeArray(Ct(j)),fn=vi(j,j.typeParameters),hn=ng(j);let q;if(hn){const fe=r;q=C2(Do(hn.parameters,Be=>{if(!Qr(Be,31)||He(Be))return;if(r=Uv(Be),Be.name.kind===80)return Co(R.createPropertyDeclaration(Ct(Be),Be.name,Be.questionToken,rn(Be,Be.type),tn(Be)),Be);return ke(Be.name);function ke(Tt){let kt;for(const en of Tt.elements)Gc(en)||(ta(en.name)&&(kt=So(kt,ke(en.name))),kt=kt||[],kt.push(R.createPropertyDeclaration(Ct(Be),en.name,void 0,rn(en,void 0),void 0)));return kt}})),r=fe}const Lt=bt(j.members,fe=>!!fe.name&&qi(fe.name))?[R.createPropertyDeclaration(void 0,R.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,L=So(So(Lt,q),jn(j.members,zt,Yc)),me=R.createNodeArray(L),J=I_(j);if(J&&!Bl(J.expression)&&J.expression.kind!==106){const fe=j.name?Vi(j.name.escapedText):"default",Be=R.createUniqueName(`${fe}_base`,16);r=()=>({diagnosticMessage:f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:J,typeName:j.name});const ke=R.createVariableDeclaration(Be,void 0,G.createTypeOfExpression(J.expression,j,YS,C),void 0),Tt=R.createVariableStatement(i?[R.createModifier(138)]:[],R.createVariableDeclarationList([ke],2)),kt=R.createNodeArray(Wt(j.heritageClauses,en=>{if(en.token===96){const En=r;r=Uv(en.types[0]);const Gn=R.updateHeritageClause(en,Wt(en.types,qn=>R.updateExpressionWithTypeArguments(qn,Be,jn(qn.typeArguments,zt,ji))));return r=En,Gn}return R.updateHeritageClause(en,jn(R.createNodeArray(mn(en.types,En=>Bl(En.expression)||En.expression.kind===106)),zt,Vv))}));return[Tt,Gt(R.updateClassDeclaration(j,yn,j.name,fn,kt,me))]}else{const fe=pt(j.heritageClauses);return Gt(R.updateClassDeclaration(j,yn,j.name,fn,fe,me))}}case 243:return Gt(fa(j));case 266:return Gt(R.updateEnumDeclaration(j,R.createNodeArray(Ct(j)),j.name,R.createNodeArray(eo(j.members,yn=>{if(He(yn))return;const fn=G.getConstantValue(yn),hn=fn===void 0?void 0:typeof fn=="string"?R.createStringLiteral(fn):fn<0?R.createPrefixUnaryExpression(41,R.createNumericLiteral(-fn)):R.createNumericLiteral(fn);return Co(R.updateEnumMember(yn,yn.name,hn),yn)}))))}return N.assertNever(j,`Unhandled top-level node in declaration emit: ${N.formatSyntaxKind(j.kind)}`);function Gt(yn){return so(j)&&(p=it),Rt&&(r=Ye),j.kind===267&&(i=_t),yn===j?yn:(U=void 0,O=void 0,yn&&Nr(Co(yn,j),j))}}function fa(j){if(!Xe(j.declarationList.declarations,gn))return;const it=jn(j.declarationList.declarations,zt,Oi);if(!Ne(it))return;const Rt=R.createNodeArray(Ct(j));let Ye;return RL(j.declarationList)||xL(j.declarationList)?(Ye=R.createVariableDeclarationList(it,2),Nr(Ye,j.declarationList),dt(Ye,j.declarationList),ac(Ye,j.declarationList)):Ye=R.updateVariableDeclarationList(j.declarationList,it),R.updateVariableStatement(j,Rt,Ye)}function ka(j){return Cs(eo(j.elements,it=>Tn(it)))}function Tn(j){if(j.kind!==232&&j.name)return gn(j)?ta(j.name)?ka(j.name):R.createVariableDeclaration(j.name,void 0,rn(j,void 0),void 0):void 0}function wn(j){let it;T||(it=r,r=Mle(j)),O=j.name,N.assert(G.isLateBound(No(j)));const Ye=j.name.expression;Wi(Ye,p),T||(r=it),O=void 0}function He(j){return!!ye&&!!j&&HV(j,K)}function mt(j){return kl(j)||Yl(j)}function ft(j){return bt(j,mt)}function Ct(j){const it=ud(j),Rt=le(j);return it===Rt?Rw(j.modifiers,Ye=>ri(Ye,Aa),Aa):R.createModifiersFromModifierFlags(Rt)}function le(j){let it=130030,Rt=i&&!rUe(j)?128:0;const Ye=j.parent.kind===312;return(!Ye||o&&Ye&&sc(j.parent))&&(it^=128,Rt=0),nxe(j,it,Rt)}function Fe(j,it){let Rt=kle(j);return!Rt&&j!==it.firstAccessor&&(Rt=kle(it.firstAccessor),r=Uv(it.firstAccessor)),!Rt&&it.secondAccessor&&j!==it.secondAccessor&&(Rt=kle(it.secondAccessor),r=Uv(it.secondAccessor)),Rt}function pt(j){return R.createNodeArray(mn(Wt(j,it=>R.updateHeritageClause(it,jn(R.createNodeArray(mn(it.types,Rt=>Bl(Rt.expression)||it.token===96&&Rt.expression.kind===106)),zt,Vv))),it=>it.types&&!!it.types.length))}}function rUe(e){return e.kind===264}function iUe(e,t,r,i){return e.createModifiersFromModifierFlags(nxe(t,r,i))}function nxe(e,t=131070,r=0){let i=ud(e)&t|r;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function kle(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function oUe(e){switch(e.kind){case 172:case 171:return!_p(e,2);case 169:case 260:return!0}return!1}function aUe(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 sUe(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 YS,lUe=I({"src/compiler/transformers/declarations.ts"(){ra(),zse(),YS=531469}});function cUe(e){switch(e){case 99:case 7:case 6:case 5:case 200:return Jq;case 4:return Cle;case 100:case 199:return Ple;default:return qq}}function Xq(e,t,r){return{scriptTransformers:uUe(e,t,r),declarationTransformers:dUe(t)}}function uUe(e,t,r){if(r)return et;const i=os(e),o=wu(e),s=lP(e),l=[];return qr(l,t&&Wt(t.before,ixe)),l.push(dle),e.experimentalDecorators&&l.push(mle),k3(e)&&l.push(Ile),i<99&&l.push(Ele),!e.experimentalDecorators&&(i<99||!s)&&l.push(_le),l.push(ple),i<8&&l.push(ble),i<7&&l.push(yle),i<6&&l.push(vle),i<5&&l.push(gle),i<4&&l.push(hle),i<3&&l.push(xle),i<2&&(l.push(Rle),l.push(Nle)),l.push(cUe(o)),i<1&&l.push(Dle),qr(l,t&&Wt(t.after,ixe)),l}function dUe(e){const t=[];return t.push(Kq),qr(t,e&&Wt(e.afterDeclarations,fUe)),t}function pUe(e){return t=>pH(t)?e.transformBundle(t):e.transformSourceFile(t)}function rxe(e,t){return r=>{const i=e(r);return typeof i=="function"?t(r,i):pUe(i)}}function ixe(e){return rxe(e,Dm)}function fUe(e){return rxe(e,(t,r)=>r)}function jP(e,t){return t}function Pw(e,t,r){r(e,t)}function Mw(e,t,r,i,o,s,l){var u,p;const h=new Array(363);let m,y,T,A=0,R=[],M=[],C=[],O=[],U=0,K=!1,Q=[],V=0,se,G,ne=jP,he=Pw,ye=0;const Y=[],X={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Sd(()=>Zoe(X)),startLexicalEnvironment:Se,suspendLexicalEnvironment:je,resumeLexicalEnvironment:ot,endLexicalEnvironment:Bt,setLexicalEnvironmentFlags:vt,getLexicalEnvironmentFlags:$e,hoistVariableDeclaration:Me,hoistFunctionDeclaration:We,addInitializationStatement:At,startBlockScope:It,endBlockScope:tn,addBlockScopedVariable:rn,requestEmitHelper:Mn,readEmitHelpers:$n,enableSubstitution:ie,enableEmitNotification:Ue,isSubstitutionEnabled:ve,isEmitNotificationEnabled:Ee,get onSubstituteNode(){return ne},set onSubstituteNode(Qt){N.assert(ye<1,"Cannot modify transformation hooks after initialization has completed."),N.assert(Qt!==void 0,"Value must not be 'undefined'"),ne=Qt},get onEmitNode(){return he},set onEmitNode(Qt){N.assert(ye<1,"Cannot modify transformation hooks after initialization has completed."),N.assert(Qt!==void 0,"Value must not be 'undefined'"),he=Qt},addDiagnostic(Qt){Y.push(Qt)}};for(const Qt of o)KU(Un(No(Qt)));rl("beforeTransform");const oe=s.map(Qt=>Qt(X)),pe=Qt=>{for(const Yt of oe)Qt=Yt(Qt);return Qt};ye=1;const Ce=[];for(const Qt of o)(u=sr)==null||u.push(sr.Phase.Emit,"transformNodes",Qt.kind===312?{path:Qt.path}:{kind:Qt.kind,pos:Qt.pos,end:Qt.end}),Ce.push((l?pe:de)(Qt)),(p=sr)==null||p.pop();return ye=2,rl("afterTransform"),Qp("transformTime","beforeTransform","afterTransform"),{transformed:Ce,substituteNode:Le,emitNodeWithNotification:De,isEmitNotificationEnabled:Ee,dispose:gn,diagnostics:Y};function de(Qt){return Qt&&(!$i(Qt)||!Qt.isDeclarationFile)?pe(Qt):Qt}function ie(Qt){N.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),h[Qt]|=1}function ve(Qt){return(h[Qt.kind]&1)!==0&&(Ga(Qt)&8)===0}function Le(Qt,Yt){return N.assert(ye<3,"Cannot substitute a node after the result is disposed."),Yt&&ve(Yt)&&ne(Qt,Yt)||Yt}function Ue(Qt){N.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),h[Qt]|=2}function Ee(Qt){return(h[Qt.kind]&2)!==0||(Ga(Qt)&4)!==0}function De(Qt,Yt,vi){N.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){N.assert(ye>0,"Cannot modify the lexical environment during initialization."),N.assert(ye<2,"Cannot modify the lexical environment after transformation has completed.");const Yt=pr(r.createVariableDeclaration(Qt),128);m?m.push(Yt):m=[Yt],A&1&&(A|=2)}function We(Qt){N.assert(ye>0,"Cannot modify the lexical environment during initialization."),N.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),pr(Qt,2097152),y?y.push(Qt):y=[Qt]}function At(Qt){N.assert(ye>0,"Cannot modify the lexical environment during initialization."),N.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),pr(Qt,2097152),T?T.push(Qt):T=[Qt]}function Se(){N.assert(ye>0,"Cannot modify the lexical environment during initialization."),N.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),N.assert(!K,"Lexical environment is suspended."),R[U]=m,M[U]=y,C[U]=T,O[U]=A,U++,m=void 0,y=void 0,T=void 0,A=0}function je(){N.assert(ye>0,"Cannot modify the lexical environment during initialization."),N.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),N.assert(!K,"Lexical environment is already suspended."),K=!0}function ot(){N.assert(ye>0,"Cannot modify the lexical environment during initialization."),N.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),N.assert(K,"Lexical environment is not suspended."),K=!1}function Bt(){N.assert(ye>0,"Cannot modify the lexical environment during initialization."),N.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),N.assert(!K,"Lexical environment is suspended.");let Qt;if(m||y||T){if(y&&(Qt=[...y]),m){const Yt=r.createVariableStatement(void 0,r.createVariableDeclarationList(m));pr(Yt,2097152),Qt?Qt.push(Yt):Qt=[Yt]}T&&(Qt?Qt=[...Qt,...T]:Qt=[...T])}return U--,m=R[U],y=M[U],T=C[U],A=O[U],U===0&&(R=[],M=[],C=[],O=[]),Qt}function vt(Qt,Yt){A=Yt?A|Qt:A&~Qt}function $e(){return A}function It(){N.assert(ye>0,"Cannot start a block scope during initialization."),N.assert(ye<2,"Cannot start a block scope after transformation has completed."),Q[V]=se,V++,se=void 0}function tn(){N.assert(ye>0,"Cannot end a block scope during initialization."),N.assert(ye<2,"Cannot end a block scope after transformation has completed.");const Qt=bt(se)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(se.map(Yt=>r.createVariableDeclaration(Yt)),1))]:void 0;return V--,se=Q[V],V===0&&(Q=[]),Qt}function rn(Qt){N.assert(V>0,"Cannot add a block scoped variable outside of an iteration body."),(se||(se=[])).push(Qt)}function Mn(Qt){if(N.assert(ye>0,"Cannot modify the transformation context during initialization."),N.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),N.assert(!Qt.scoped,"Cannot request a scoped emit helper."),Qt.dependencies)for(const Yt of Qt.dependencies)Mn(Yt);G=Rn(G,Qt)}function $n(){N.assert(ye>0,"Cannot modify the transformation context during initialization."),N.assert(ye<2,"Cannot modify the transformation context after transformation has completed.");const Qt=G;return G=void 0,Qt}function gn(){if(ye<3){for(const Qt of o)KU(Un(No(Qt)));m=void 0,R=void 0,y=void 0,M=void 0,ne=void 0,he=void 0,G=void 0,ye=3}}}var Yq,UP,mUe=I({"src/compiler/transformer.ts"(){ra(),sS(),Yq={scriptTransformers:et,declarationTransformers:et},UP={factory:w,getCompilerOptions:()=>({}),getEmitResolver:Jo,getEmitHost:Jo,getEmitHelperFactory:Jo,startLexicalEnvironment:Ya,resumeLexicalEnvironment:Ya,suspendLexicalEnvironment:Ya,endLexicalEnvironment:Yb,setLexicalEnvironmentFlags:Ya,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:Ya,hoistFunctionDeclaration:Ya,addInitializationStatement:Ya,startBlockScope:Ya,endBlockScope:Yb,addBlockScopedVariable:Ya,requestEmitHelper:Ya,readEmitHelpers:Jo,enableSubstitution:Ya,enableEmitNotification:Ya,isSubstitutionEnabled:Jo,isEmitNotificationEnabled:Jo,onSubstituteNode:jP,onEmitNode:Pw,addDiagnostic:Ya}}});function wle(e){return Il(e,".tsbuildinfo")}function $q(e,t,r,i=!1,o,s){const l=To(r)?r:Uj(e,r,i),u=e.getCompilerOptions();if(Ps(u)){const p=e.getPrependNodes();if(l.length||p.length){const h=w.createBundle(l,p),m=t(qP(h,e,i),h);if(m)return m}}else{if(!o)for(const p of l){const h=t(qP(p,e,i),p);if(h)return h}if(s){const p=Hv(u);if(p)return t({buildInfoPath:p},void 0)}}}function Hv(e){const t=e.configFilePath;if(!sP(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const r=Ps(e);let i;if(r)i=Ad(r);else{if(!t)return;const o=Ad(t);i=e.outDir?e.rootDir?Iy(e.outDir,vm(e.rootDir,o,!0)):$r(e.outDir,ic(o)):o}return i+".tsbuildinfo"}function HP(e,t){const r=Ps(e),i=e.emitDeclarationOnly?void 0:r,o=i&&oxe(i,e),s=t||Rf(e)?Ad(r)+".d.ts":void 0,l=s&&Ak(e)?s+".map":void 0,u=Hv(e);return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:l,buildInfoPath:u}}function qP(e,t,r){const i=t.getCompilerOptions();if(e.kind===313)return HP(i,r);{const o=Iie(e.fileName,t,ZF(e.fileName,i)),s=Yf(e),l=s&&Dg(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,u=i.emitDeclarationOnly||l?void 0:o,p=!u||Yf(e)?void 0:oxe(u,i),h=r||Rf(i)&&!s?xie(e.fileName,t):void 0,m=h&&Ak(i)?h+".map":void 0;return{jsFilePath:u,sourceMapFilePath:p,declarationFilePath:h,declarationMapPath:m,buildInfoPath:void 0}}}function oxe(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function ZF(e,t){return Il(e,".json")?".json":t.jsx===1&&Sc(e,[".jsx",".tsx"])?".jsx":Sc(e,[".mts",".mjs"])?".mjs":Sc(e,[".cts",".cjs"])?".cjs":".js"}function axe(e,t,r,i){return r?Iy(r,vm(i(),e,t)):e}function JP(e,t,r,i=()=>cD(t,r)){return Qq(e,t.options,r,i)}function Qq(e,t,r,i){return _0(axe(e,r,t.declarationDir||t.outDir,i),f3(e))}function sxe(e,t,r,i=()=>cD(t,r)){if(t.options.emitDeclarationOnly)return;const o=Il(e,".json"),s=Zq(e,t.options,r,i);return!o||Dg(e,s,N.checkDefined(t.options.configFilePath),r)!==0?s:void 0}function Zq(e,t,r,i){return _0(axe(e,r,t.outDir,i),ZF(e,t))}function lxe(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||et}}function cxe(e,t){const{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:s,buildInfoPath:l}=HP(e.options,!1);t(r),t(i),t(o),t(s),t(l)}function uxe(e,t,r,i,o){if(Su(t))return;const s=sxe(t,e,r,o);if(i(s),!Il(t,".json")&&(s&&e.options.sourceMap&&i(`${s}.map`),Rf(e.options))){const l=JP(t,e,r,o);i(l),e.options.declarationMap&&i(`${l}.map`)}}function KP(e,t,r,i,o){let s;return e.rootDir?(s=go(e.rootDir,r),o==null||o(e.rootDir)):e.composite&&e.configFilePath?(s=ai(Lu(e.configFilePath)),o==null||o(s)):s=Gle(t(),r,i),s&&s[s.length-1]!==ol&&(s+=ol),s}function cD({options:e,fileNames:t},r){return KP(e,()=>mn(t,i=>!(e.noEmitForJsFiles&&Sc(i,OR))&&!Su(i)),ai(Lu(N.checkDefined(e.configFilePath))),Mu(!r))}function e7(e,t){const{addOutput:r,getOutputs:i}=lxe();if(Ps(e.options))cxe(e,r);else{const o=Sd(()=>cD(e,t));for(const s of e.fileNames)uxe(e,s,t,r,o);r(Hv(e.options))}return i()}function dxe(e,t,r){t=ha(t),N.assert(Or(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:i,getOutputs:o}=lxe();return Ps(e.options)?cxe(e,i):uxe(e,t,r,i),o()}function eJ(e,t){if(Ps(e.options)){const{jsFilePath:o,declarationFilePath:s}=HP(e.options,!1);return N.checkDefined(o||s,`project ${e.options.configFilePath} expected to have at least one output`)}const r=Sd(()=>cD(e,t));for(const o of e.fileNames){if(Su(o))continue;const s=sxe(o,e,t,r);if(s)return s;if(!Il(o,".json")&&Rf(e.options))return JP(o,e,t,r)}const i=Hv(e.options);return i||N.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function t7(e,t,r,{scriptTransformers:i,declarationTransformers:o},s,l,u){var p=t.getCompilerOptions(),h=p.sourceMap||p.inlineSourceMap||Ak(p)?[]:void 0,m=p.listEmittedFiles?[]:void 0,y=ER(),T=Fv(p),A=ok(T),{enter:R,exit:M}=sG("printTime","beforePrint","afterPrint"),C,O=!1;return R(),$q(t,U,Uj(t,r,u),u,l,!r),M(),{emitSkipped:O,diagnostics:y.getDiagnostics(),emittedFiles:m,sourceMaps:h};function U({jsFilePath:X,sourceMapFilePath:oe,declarationFilePath:pe,declarationMapPath:Ce,buildInfoPath:de},ie){var ve,Le,Ue,Ee,De,Me;let We;de&&ie&&pH(ie)&&(We=ai(go(de,t.getCurrentDirectory())),C={commonSourceDirectory:At(t.getCommonSourceDirectory()),sourceFiles:ie.sourceFiles.map(Se=>At(go(Se.fileName,t.getCurrentDirectory())))}),(ve=sr)==null||ve.push(sr.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:X}),Q(ie,X,oe,At),(Le=sr)==null||Le.pop(),(Ue=sr)==null||Ue.push(sr.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:pe}),V(ie,pe,Ce,At),(Ee=sr)==null||Ee.pop(),(De=sr)==null||De.push(sr.Phase.Emit,"emitBuildInfo",{buildInfoPath:de}),K(C,de),(Me=sr)==null||Me.pop();function At(Se){return AE(vm(We,Se,t.getCanonicalFileName))}}function K(X,oe){if(!oe||r||O)return;if(t.isEmitBlocked(oe)){O=!0;return}const pe=t.getBuildInfo(X)||Lw(void 0,X);LC(t,y,oe,Ole(pe),!1,void 0,{buildInfo:pe}),m==null||m.push(oe)}function Q(X,oe,pe,Ce){if(!X||s||!oe)return;if(t.isEmitBlocked(oe)||p.noEmit){O=!0;return}const de=Mw(e,t,w,p,[X],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:!!C,relativeToBuildInfo:Ce},ve=R0(ie,{hasGlobalName:e.hasGlobalName,onEmitNode:de.emitNodeWithNotification,isEmitNotificationEnabled:de.isEmitNotificationEnabled,substituteNode:de.substituteNode});N.assert(de.transformed.length===1,"Should only see one output from the transform"),G(oe,pe,de,ve,p),de.dispose(),C&&(C.js=ve.bundleFileInfo),m&&(m.push(oe),pe&&m.push(pe))}function V(X,oe,pe,Ce){if(!X||s===0)return;if(!oe){(s||p.emitDeclarationOnly)&&(O=!0);return}const de=$i(X)?[X]:X.sourceFiles,ie=u?de:mn(de,gj),ve=Ps(p)?[w.createBundle(ie,$i(X)?void 0:X.prepends)]:ie;s&&!Rf(p)&&ie.forEach(se);const Le=Mw(e,t,w,p,ve,o,!1);if(Ne(Le.diagnostics))for(const Ee of Le.diagnostics)y.add(Ee);const Ue=!!Le.diagnostics&&!!Le.diagnostics.length||!!t.isEmitBlocked(oe)||!!p.noEmit;if(O=O||Ue,!Ue||u){N.assert(Le.transformed.length===1,"Should only see one output from the decl transform");const 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:!!C,recordInternalSection:!!C,relativeToBuildInfo:Ce},De=R0(Ee,{hasGlobalName:e.hasGlobalName,onEmitNode:Le.emitNodeWithNotification,isEmitNotificationEnabled:Le.isEmitNotificationEnabled,substituteNode:Le.substituteNode});G(oe,pe,Le,De,{sourceMap:Ee.sourceMap,sourceRoot:p.sourceRoot,mapRoot:p.mapRoot,extendedDiagnostics:p.extendedDiagnostics}),m&&(m.push(oe),pe&&m.push(pe)),C&&(C.dts=De.bundleFileInfo)}Le.dispose()}function se(X){if(kl(X)){X.expression.kind===80&&e.collectLinkedAliases(X.expression,!0);return}else if(Ku(X)){e.collectLinkedAliases(X.propertyName||X.name,!0);return}Uo(X,se)}function G(X,oe,pe,Ce,de){const ie=pe.transformed[0],ve=ie.kind===313?ie:void 0,Le=ie.kind===312?ie:void 0,Ue=ve?ve.sourceFiles:[Le];let Ee;ne(de,ie)&&(Ee=qse(t,ic(Lu(X)),he(de),ye(de,X,Le),de)),ve?Ce.writeBundle(ve,A,Ee):Ce.writeFile(Le,A,Ee);let De;if(Ee){h&&h.push({inputSourceFileNames:Ee.getSources(),sourceMap:Ee.toJSON()});const We=Y(de,Ee,X,oe,Le);if(We&&(A.isAtStartOfLine()||A.rawWrite(T),De=A.getTextPos(),A.writeComment(`//# sourceMappingURL=${We}`)),oe){const At=Ee.toString();LC(t,y,oe,At,!1,Ue),Ce.bundleFileInfo&&(Ce.bundleFileInfo.mapHash=QS(At,t))}}else A.writeLine();const Me=A.getText();LC(t,y,X,Me,!!p.emitBOM,Ue,{sourceMapUrlPos:De,diagnostics:pe.diagnostics}),Ce.bundleFileInfo&&(Ce.bundleFileInfo.hash=QS(Me,t)),A.clear()}function ne(X,oe){return(X.sourceMap||X.inlineSourceMap)&&(oe.kind!==312||!Il(oe.fileName,".json"))}function he(X){const oe=Lu(X.sourceRoot||"");return oe&&Fc(oe)}function ye(X,oe,pe){if(X.sourceRoot)return t.getCommonSourceDirectory();if(X.mapRoot){let Ce=Lu(X.mapRoot);return pe&&(Ce=ai(_3(pe.fileName,t,Ce))),dh(Ce)===0&&(Ce=$r(t.getCommonSourceDirectory(),Ce)),Ce}return ai(ha(oe))}function Y(X,oe,pe,Ce,de){if(X.inlineSourceMap){const ve=oe.toString();return`data:application/json;base64,${qie(gu,ve)}`}const ie=ic(Lu(N.checkDefined(Ce)));if(X.mapRoot){let ve=Lu(X.mapRoot);return de&&(ve=ai(_3(de.fileName,t,ve))),dh(ve)===0?(ve=$r(t.getCommonSourceDirectory(),ve),encodeURI(yA(ai(ha(pe)),$r(ve,ie),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI($r(ve,ie))}return encodeURI(ie)}}function Lw(e,t){return{bundle:t,program:e,version:Re}}function Ole(e){return JSON.stringify(e)}function n7(e,t){return eU(e,t)}function _Ue(e,t,r){var i;const o=N.checkDefined(e.js),s=((i=o.sources)==null?void 0:i.prologues)&&TE(o.sources.prologues,l=>l.file);return e.sourceFiles.map((l,u)=>{const p=s==null?void 0:s.get(u),h=p==null?void 0:p.directives.map(T=>{const A=dt(w.createStringLiteral(T.expression.text),T.expression),R=dt(w.createExpressionStatement(A),T);return Ha(A,R),R}),m=w.createToken(1),y=w.createSourceFile(h??[],m,0);return y.fileName=vm(r.getCurrentDirectory(),go(l,t),!r.useCaseSensitiveFileNames()),y.text=(p==null?void 0:p.text)??"",ZC(y,0,(p==null?void 0:p.text.length)??0),LR(y.statements,y),ZC(m,y.end,0),Ha(m,y),y})}function Wle(e,t,r,i){var o,s;(o=sr)==null||o.push(sr.Phase.Emit,"emitUsingBuildInfo",{},!0),rl("beforeEmit");const l=hUe(e,t,r,i);return rl("afterEmit"),Qp("Emit","beforeEmit","afterEmit"),(s=sr)==null||s.pop(),l}function hUe(e,t,r,i){const{buildInfoPath:o,jsFilePath:s,sourceMapFilePath:l,declarationFilePath:u,declarationMapPath:p}=HP(e.options,!1),h=t.getBuildInfo(o,e.options.configFilePath);if(!h||!h.bundle||!h.bundle.js||u&&!h.bundle.dts)return o;const m=t.readFile(N.checkDefined(s));if(!m||QS(m,t)!==h.bundle.js.hash)return s;const y=l&&t.readFile(l);if(l&&!y||e.options.inlineSourceMap)return l||"inline sourcemap decoding";if(l&&QS(y,t)!==h.bundle.js.mapHash)return l;const T=u&&t.readFile(u);if(u&&!T||u&&QS(T,t)!==h.bundle.dts.hash)return u;const A=p&&t.readFile(p);if(p&&!A||e.options.inlineSourceMap)return p||"inline sourcemap decoding";if(p&&QS(A,t)!==h.bundle.dts.mapHash)return p;const R=ai(go(o,t.getCurrentDirectory())),M=qU(s,m,l,y,u,T,p,A,o,h,!0),C=[],O=TJ(e.projectReferences,r,se=>t.readFile(se),t),U=_Ue(h.bundle,R,t);let K,Q;const V={getPrependNodes:Sd(()=>[...O,M]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>go(h.bundle.commonSourceDirectory,R),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:Yb,getSourceFileByPath:Yb,getSourceFiles:()=>U,getLibFileFromReference:Jo,isSourceFileFromExternalLibrary:qm,getResolvedProjectReferenceToRedirect:Yb,getProjectReferenceRedirect:Yb,isSourceOfProjectReferenceRedirect:qm,writeFile:(se,G,ne,he,ye,Y)=>{switch(se){case s:if(m===G)return;break;case l:if(y===G)return;break;case o:break;case u:if(T===G)return;K=G,Q=Y;break;case p:if(A===G)return;break;default:N.fail(`Unexpected path: ${se}`)}C.push({name:se,text:G,writeByteOrderMark:ne,data:Y})},isEmitBlocked:qm,readFile:se=>t.readFile(se),fileExists:se=>t.fileExists(se),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:se=>{const G=h.program;G&&K!==void 0&&e.options.composite&&(G.outSignature=QS(K,t,Q));const{js:ne,dts:he,sourceFiles:ye}=h.bundle;return se.js.sources=ne.sources,he&&(se.dts.sources=he.sources),se.sourceFiles=ye,Lw(G,se)},getSourceFileFromReference:Yb,redirectTargetsMap:$p(),getFileIncludeReasons:Jo,createHash:ia(t,t.createHash)};return t7(r7,V,void 0,Xq(e.options,i)),C}function R0(e={},t={}){var{hasGlobalName:r,onEmitNode:i=Pw,isEmitNotificationEnabled:o,substituteNode:s=jP,onBeforeEmitNode:l,onAfterEmitNode:u,onBeforeEmitNodeArray:p,onAfterEmitNodeArray:h,onBeforeEmitToken:m,onAfterEmitToken:y}=t,T=!!e.extendedDiagnostics,A=!!e.omitBraceSourceMapPositions,R=Fv(e),M=wu(e),C=new Map,O,U,K,Q,V,se,G,ne,he,ye,Y,X,oe,pe,Ce,de=e.preserveSourceNewlines,ie,ve,Le,Ue=ET,Ee,De=e.writeBundleFileInfo?{sections:[]}:void 0,Me=De?N.checkDefined(e.relativeToBuildInfo):void 0,We=e.recordInternalSection,At=0,Se="text",je=!0,ot,Bt,vt=-1,$e,It=-1,tn=-1,rn=-1,Mn=-1,$n,gn,Qt=!1,Yt=!!e.removeComments,vi,so,{enter:Wi,exit:Co}=UEe(T,"commentTime","beforeComment","afterComment"),Ln=w.parenthesizer,Ci={select:D=>D===0?Ln.parenthesizeLeadingTypeArgument:void 0},Ar=Jg();return it(),{printNode:sn,printList:tt,printFile:Dn,printBundle:zt,writeNode:yi,writeList:Qi,writeFile:ft,writeBundle:He,bundleFileInfo:De};function sn(D,ae,ht){switch(D){case 0:N.assert($i(ae),"Expected a SourceFile node.");break;case 2:N.assert(Ve(ae),"Expected an Identifier node.");break;case 1:N.assert(yt(ae),"Expected an Expression node.");break}switch(ae.kind){case 312:return Dn(ae);case 313:return zt(ae);case 314:return ci(ae)}return yi(D,ae,ht,Ct()),le()}function tt(D,ae,ht){return Qi(D,ae,ht,Ct()),le()}function zt(D){return He(D,Ct(),void 0),le()}function Dn(D){return ft(D,Ct(),void 0),le()}function ci(D){return mt(D,Ct()),le()}function yi(D,ae,ht,on){const wr=ve;j(on,void 0),Fe(D,ae,ht),it(),ve=wr}function Qi(D,ae,ht,on){const wr=ve;j(on,void 0),ht&&pt(ht),Qs(void 0,ae,D),it(),ve=wr}function Io(){return ve.getTextPosWithWriteLine?ve.getTextPosWithWriteLine():ve.getTextPos()}function fa(D,ae,ht){const on=el(De.sections);on&&on.kind===ht?on.end=ae:De.sections.push({pos:D,end:ae,kind:ht})}function ka(D){if(We&&De&&O&&(Ju(D)||Ll(D))&&HV(D,O)&&Se!=="internal"){const ae=Se;return wn(ve.getTextPos()),At=Io(),Se="internal",ae}}function Tn(D){D&&(wn(ve.getTextPos()),At=Io(),Se=D)}function wn(D){return At<D?(fa(At,D,Se),!0):!1}function He(D,ae,ht){Ee=!1;const on=ve;j(ae,ht),db(D),Zg(D),en(D),a_(D);for(const wr of D.prepends){qc();const wi=ve.getTextPos(),bi=De&&De.sections;if(bi&&(De.sections=[]),Fe(4,wr,void 0),De){const no=De.sections;De.sections=bi,wr.oldFileOfCurrentEmit?De.sections.push(...no):(no.forEach(ga=>N.assert(toe(ga))),De.sections.push({pos:wi,end:ve.getTextPos(),kind:"prepend",data:Me(wr.fileName),texts:no}))}}At=Io();for(const wr of D.sourceFiles)Fe(0,wr,wr);if(De&&D.sourceFiles.length){const wr=ve.getTextPos();if(wn(wr)){const wi=CM(D);wi&&(De.sources||(De.sources={}),De.sources.prologues=wi);const bi=kt(D);bi&&(De.sources||(De.sources={}),De.sources.helpers=bi)}}it(),ve=on}function mt(D,ae){const ht=ve;j(ae,void 0),Fe(4,D,void 0),it(),ve=ht}function ft(D,ae,ht){Ee=!0;const on=ve;j(ae,ht),db(D),Zg(D),Fe(0,D,D),it(),ve=on}function Ct(){return Le||(Le=ok(R))}function le(){const D=Le.getText();return Le.clear(),D}function Fe(D,ae,ht){ht&&pt(ht),q(D,ae,void 0)}function pt(D){O=D,$n=void 0,gn=void 0,D&&iv(D)}function j(D,ae){D&&e.omitTrailingSemicolon&&(D=Vj(D)),ve=D,ot=ae,je=!ve||!ot}function it(){U=[],K=[],Q=[],V=new Set,se=[],G=new Map,ne=[],he=0,ye=[],Y=0,X=[],oe=void 0,pe=[],Ce=void 0,O=void 0,$n=void 0,gn=void 0,j(void 0,void 0)}function Rt(){return $n||($n=Ng(N.checkDefined(O)))}function Ye(D,ae){if(D===void 0)return;const ht=ka(D);q(4,D,ae),Tn(ht)}function _t(D){D!==void 0&&q(2,D,void 0)}function Gt(D,ae){D!==void 0&&q(1,D,ae)}function yn(D){q(Na(D)?6:4,D)}function fn(D){de&&Em(D)&4&&(de=!1)}function hn(D){de=D}function q(D,ae,ht){so=ht,L(0,D,ae)(D,ae),so=void 0}function Oe(D){return!Yt&&!$i(D)}function Lt(D){return!je&&!$i(D)&&!$4(D)&&!VS(D)&&!vae(D)}function L(D,ae,ht){switch(D){case 0:if(i!==Pw&&(!o||o(ht)))return J;case 1:if(s!==jP&&(vi=s(ae,ht)||ht)!==ht)return so&&(vi=so(vi)),Tt;case 2:if(Oe(ht))return aN;case 3:if(Lt(ht))return X0;case 4:return fe;default:return N.assertNever(D)}}function me(D,ae,ht){return L(D+1,ae,ht)}function J(D,ae){const ht=me(0,D,ae);i(D,ae,ht)}function fe(D,ae){if(l==null||l(ae),de){const ht=de;fn(ae),Be(D,ae),hn(ht)}else Be(D,ae);u==null||u(ae),so=void 0}function Be(D,ae,ht=!0){if(ht){const on=XU(ae);if(on)return vo(D,ae,on)}if(D===0)return YI(oa(ae,$i));if(D===2)return Jr(oa(ae,Ve));if(D===6)return qn(oa(ae,Na),!0);if(D===3)return ke(oa(ae,hl));if(D===7)return jI(oa(ae,aI));if(D===5)return N.assertNode(ae,cH),oo(!0);if(D===4){switch(ae.kind){case 16:case 17:case 18:return qn(ae,!1);case 80:return Jr(ae);case 81:return xo(ae);case 166:return Nn(ae);case 167:return Ql(ae);case 168:return ko(ae);case 169:return cs(ae);case 170:return Vs(ae);case 171:return gl(ae);case 172:return cu(ae);case 173:return ho(ae);case 174:return da(ae);case 175:return uu(ae);case 176:return Ts(ae);case 177:case 178:return Ca(ae);case 179:return ml(ae);case 180:return Lf(ae);case 181:return lc(ae);case 182:return wo(ae);case 183:return nn(ae);case 184:return js(ae);case 185:return xc(ae);case 186:return ue(ae);case 187:return Z(ae);case 188:return we(ae);case 189:return un(ae);case 190:return vr(ae);case 192:return jr(ae);case 193:return Di(ae);case 194:return Mr(ae);case 195:return Yo(ae);case 196:return Sl(ae);case 233:return Ft(ae);case 197:return jc();case 198:return Us(ae);case 199:return vc(ae);case 200:return Es(ae);case 201:return Uc(ae);case 202:return Sr(ae);case 203:return ip(ae);case 204:return Nl(ae);case 205:return wc(ae);case 206:return sm(ae);case 207:return _d(ae);case 208:return Pe(ae);case 239:return qt(ae);case 240:return cl();case 241:return rr(ae);case 243:return Yr(ae);case 242:return oo(!1);case 244:return wa(ae);case 245:return Oa(ae);case 246:return pu(ae);case 247:return Rc(ae);case 248:return Ip(ae);case 249:return Hd(ae);case 250:return ab(ae);case 251:return Pm(ae);case 252:return Mm(ae);case 253:return E1(ae);case 254:return pf(ae);case 255:return j_(ae);case 256:return ff(ae);case 257:return Xg(ae);case 258:return ze(ae);case 259:return Ze(ae);case 260:return Mt(ae);case 261:return jt(ae);case 262:return bn(ae);case 263:return Qo(ae);case 264:return Zu(ae);case 265:return fu(ae);case 266:return Yg(ae);case 267:return O0(ae);case 268:return zI(ae);case 269:return W0(ae);case 270:return HI(ae);case 271:return qD(ae);case 272:return KD(ae);case 273:return uT(ae);case 274:return S1(ae);case 280:return T1(ae);case 275:return BI(ae);case 276:return XD(ae);case 277:return GI(ae);case 278:return VI(ae);case 279:return A1(ae);case 281:return sb(ae);case 300:return UI(ae);case 301:return dT(ae);case 282:return;case 283:return F0(ae);case 12:return $g(ae);case 286:case 289:return z0(ae);case 287:case 290:return Nh(ae);case 291:return qd(ae);case 292:return wf(ae);case 293:return xp(ae);case 294:return $D(ae);case 295:return qI(ae);case 296:return B0(ae);case 297:return JI(ae);case 298:return ny(ae);case 299:return KI(ae);case 303:return r_(ae);case 304:return mT(ae);case 305:return qe(ae);case 306:return i_(ae);case 307:return xi(ae);case 314:case 308:return Pi(ae);case 309:case 310:return ir(ae);case 311:return Vr(ae);case 312:return YI(ae);case 313:return N.fail("Bundles should be printed using printBundle");case 315:return N.fail("InputFiles should not be printed");case 316:return Qg(ae);case 317:return ub(ae);case 319:return hr("*");case 320:return hr("?");case 321:return du(ae);case 322:return Tp(ae);case 323:return Ms(ae);case 324:return tu(ae);case 191:case 325:return Et(ae);case 326:return;case 327:return mu(ae);case 329:return hT(ae);case 330:return V0(ae);case 334:case 339:case 344:return _T(ae);case 335:case 336:return ry(ae);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return Ka(ae);case 346:return o_(ae);case 348:case 355:return gT(ae);case 347:case 349:case 350:case 351:case 356:case 357:return G0(ae);case 352:return iy(ae);case 353:return DM(ae);case 354:return XI(ae);case 359:return}if(yt(ae)&&(D=1,s!==jP)){const on=s(D,ae)||ae;on!==ae&&(ae=on,so&&(ae=so(ae)))}}if(D===1)switch(ae.kind){case 9:case 10:return Gn(ae);case 11:case 14:case 15:return qn(ae,!1);case 80:return Jr(ae);case 81:return xo(ae);case 209:return Ot(ae);case 210:return Xn(ae);case 211:return yo(ae);case 212:return na(ae);case 213:return Zl(ae);case 214:return yc(ae);case 215:return ul(ae);case 216:return vl(ae);case 217:return Gl(ae);case 218:return ec(ae);case 219:return Hc(ae);case 220:return jd(ae);case 221:return Nd(ae);case 222:return kf(ae);case 223:return V_(ae);case 224:return Dh(ae);case 225:return Bu(ae);case 226:return Ar(ae);case 227:return Ap(ae);case 228:return dg(ae);case 229:return Ud(ae);case 230:return te(ae);case 231:return lt(ae);case 232:return;case 234:return Vt(ae);case 235:return W(ae);case 233:return Ft(ae);case 238:return Te(ae);case 236:return st(ae);case 237:return N.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return ts(ae);case 285:return pT(ae);case 288:return YD(ae);case 358:return N.fail("SyntaxList should not be printed");case 359:return;case 360:return Zr(ae);case 361:return Ch(ae);case 362:return N.fail("SyntheticReferenceExpression should not be printed")}if(Bd(ae.kind))return N1(ae,to);if(MV(ae.kind))return N1(ae,hr);N.fail(`Unhandled SyntaxKind: ${N.formatSyntaxKind(ae.kind)}.`)}function ke(D){Ye(D.name),ur(),to("in"),ur(),Ye(D.constraint)}function Tt(D,ae){const ht=me(1,D,ae);N.assertIsDefined(vi),ae=vi,vi=void 0,ht(D,ae)}function kt(D){let ae;if(M===0||e.noEmitHelpers)return;const ht=new Map;for(const on of D.sourceFiles){const wr=$k(on)!==void 0,wi=En(on);if(wi)for(const bi of wi)!bi.scoped&&!wr&&!ht.get(bi.name)&&(ht.set(bi.name,!0),(ae||(ae=[])).push(bi.name))}return ae}function en(D){let ae=!1;const ht=D.kind===313?D:void 0;if(ht&&M===0)return;const on=ht?ht.prepends.length:0,wr=ht?ht.sourceFiles.length+on:1;for(let wi=0;wi<wr;wi++){const bi=ht?wi<on?ht.prepends[wi]:ht.sourceFiles[wi-on]:D,no=$i(bi)?bi:VS(bi)?void 0:O,ga=e.noEmitHelpers||!!no&&Mae(no),ed=($i(bi)||VS(bi))&&!Ee,Pd=VS(bi)?bi.helpers:En(bi);if(Pd)for(const Ff of Pd){if(Ff.scoped){if(ht)continue}else{if(ga)continue;if(ed){if(C.get(Ff.name))continue;C.set(Ff.name,!0)}}const bb=Io();typeof Ff.text=="string"?TT(Ff.text):TT(Ff.text(ex)),De&&De.sections.push({pos:bb,end:ve.getTextPos(),kind:"emitHelpers",data:Ff.name}),ae=!0}}return ae}function En(D){const ae=uW(D);return ae&&Sv(ae,eae)}function Gn(D){qn(D,!1)}function qn(D,ae){const ht=xT(D,e.neverAsciiEscape,ae);(e.sourceMap||e.inlineSourceMap)&&(D.kind===11||Ny(D.kind))?fb(ht):nN(ht)}function Pi(D){for(const ae of D.texts)qc(),Ye(ae)}function xi(D){ve.rawWrite(D.parent.text.substring(D.pos,D.end))}function ir(D){const ae=Io();xi(D),De&&fa(ae,ve.getTextPos(),D.kind===309?"text":"internal")}function Vr(D){const ae=Io();if(xi(D),De){const ht=qB(D.section);ht.pos=ae,ht.end=ve.getTextPos(),De.sections.push(ht)}}function vo(D,ae,ht){switch(ht.kind){case 1:Mi(D,ae,ht);break;case 0:Ri(D,ae,ht);break}}function Mi(D,ae,ht){j0(`\${${ht.order}:`),Be(D,ae,!1),j0("}")}function Ri(D,ae,ht){N.assert(ae.kind===242,`A tab stop cannot be attached to a node of kind ${N.formatSyntaxKind(ae.kind)}.`),N.assert(D!==5,"A tab stop cannot be attached to an embedded statement."),j0(`$${ht.order}`)}function Jr(D){(D.symbol?PM:Ue)(Oc(D,!1),D.symbol),Qs(D,LS(D),53776)}function xo(D){Ue(Oc(D,!1))}function Nn(D){Fs(D.left),hr("."),Ye(D.right)}function Fs(D){D.kind===80?Gt(D):Ye(D)}function Ql(D){const ae=he,ht=Ce;hb(),hr("["),Gt(D.expression,Ln.parenthesizeExpressionOfComputedPropertyName),hr("]"),Of(ae,ht)}function ko(D){fg(D,D.modifiers),Ye(D.name),D.constraint&&(ur(),to("extends"),ur(),Ye(D.constraint)),D.default&&(ur(),mf("="),ur(),Ye(D.default))}function cs(D){jp(D,D.modifiers,!0),Ye(D.dotDotDotToken),yl(D.name,ay),Ye(D.questionToken),D.parent&&D.parent.kind===324&&!D.name?Ye(D.type):um(D.type),pb(D.initializer,D.type?D.type.end:D.questionToken?D.questionToken.end:D.name?D.name.end:D.modifiers?D.modifiers.end:D.pos,D,Ln.parenthesizeExpressionForDisallowedComma)}function Vs(D){hr("@"),Gt(D.expression,Ln.parenthesizeLeftSideOfAccess)}function gl(D){fg(D,D.modifiers),yl(D.name,ST),Ye(D.questionToken),um(D.type),nu()}function cu(D){jp(D,D.modifiers,!0),Ye(D.name),Ye(D.questionToken),Ye(D.exclamationToken),um(D.type),pb(D.initializer,D.type?D.type.end:D.questionToken?D.questionToken.end:D.name.end,D),nu()}function ho(D){Au(D),fg(D,D.modifiers),Ye(D.name),Ye(D.questionToken),U_(D,D.typeParameters),oy(D,D.parameters),um(D.type),nu(),ap(D)}function da(D){jp(D,D.modifiers,!0),Ye(D.asteriskToken),Ye(D.name),Ye(D.questionToken),vn(D,Zn)}function uu(D){to("static"),cr(D.body)}function Ts(D){jp(D,D.modifiers,!1),to("constructor"),vn(D,Zn)}function Ca(D){const ae=jp(D,D.modifiers,!0),ht=D.kind===177?139:153;Ui(ht,ae,to,D),ur(),Ye(D.name),vn(D,Zn)}function ml(D){Au(D),U_(D,D.typeParameters),oy(D,D.parameters),um(D.type),nu(),ap(D)}function Lf(D){Au(D),to("new"),ur(),U_(D,D.typeParameters),oy(D,D.parameters),um(D.type),nu(),ap(D)}function lc(D){jp(D,D.modifiers,!1),tN(D,D.parameters),um(D.type),nu()}function Nl(D){Ye(D.type),Ye(D.literal)}function cl(){nu()}function wo(D){D.assertsModifier&&(Ye(D.assertsModifier),ur()),Ye(D.parameterName),D.type&&(ur(),to("is"),ur(),Ye(D.type))}function nn(D){Ye(D.typeName),_g(D,D.typeArguments)}function js(D){Au(D),U_(D,D.typeParameters),eN(D,D.parameters),ur(),hr("=>"),ur(),Ye(D.type),ap(D)}function tu(D){to("function"),oy(D,D.parameters),hr(":"),Ye(D.type)}function du(D){hr("?"),Ye(D.type)}function Tp(D){hr("!"),Ye(D.type)}function Ms(D){Ye(D.type),hr("=")}function xc(D){Au(D),fg(D,D.modifiers),to("new"),ur(),U_(D,D.typeParameters),oy(D,D.parameters),ur(),hr("=>"),ur(),Ye(D.type),ap(D)}function ue(D){to("typeof"),ur(),Ye(D.exprName),_g(D,D.typeArguments)}function Z(D){Of(0,void 0),hr("{");const ae=Ga(D)&1?768:32897;Qs(D,D.members,ae|524288),hr("}"),hb()}function we(D){Ye(D.elementType,Ln.parenthesizeNonArrayTypeOfPostfixType),hr("["),hr("]")}function Et(D){hr("..."),Ye(D.type)}function un(D){Ui(23,D.pos,hr,D);const ae=Ga(D)&1?528:657;Qs(D,D.elements,ae|524288,Ln.parenthesizeElementTypeOfTupleType),Ui(24,D.elements.end,hr,D)}function Sr(D){Ye(D.dotDotDotToken),Ye(D.name),Ye(D.questionToken),Ui(59,D.name.end,hr,D),ur(),Ye(D.type)}function vr(D){Ye(D.type,Ln.parenthesizeTypeOfOptionalType),hr("?")}function jr(D){Qs(D,D.types,516,Ln.parenthesizeConstituentTypeOfUnionType)}function Di(D){Qs(D,D.types,520,Ln.parenthesizeConstituentTypeOfIntersectionType)}function Mr(D){Ye(D.checkType,Ln.parenthesizeCheckTypeOfConditionalType),ur(),to("extends"),ur(),Ye(D.extendsType,Ln.parenthesizeExtendsTypeOfConditionalType),ur(),hr("?"),ur(),Ye(D.trueType),ur(),hr(":"),ur(),Ye(D.falseType)}function Yo(D){to("infer"),ur(),Ye(D.typeParameter)}function Sl(D){hr("("),Ye(D.type),hr(")")}function jc(){to("this")}function Us(D){mb(D.operator,to),ur();const ae=D.operator===148?Ln.parenthesizeOperandOfReadonlyTypeOperator:Ln.parenthesizeOperandOfTypeOperator;Ye(D.type,ae)}function vc(D){Ye(D.objectType,Ln.parenthesizeNonArrayTypeOfPostfixType),hr("["),Ye(D.indexType),hr("]")}function Es(D){const ae=Ga(D);hr("{"),ae&1?ur():(qc(),Ph()),D.readonlyToken&&(Ye(D.readonlyToken),D.readonlyToken.kind!==148&&to("readonly"),ur()),hr("["),q(3,D.typeParameter),D.nameType&&(ur(),to("as"),ur(),Ye(D.nameType)),hr("]"),D.questionToken&&(Ye(D.questionToken),D.questionToken.kind!==58&&hr("?")),hr(":"),ur(),Ye(D.type),nu(),ae&1?ur():(qc(),Om()),Qs(D,D.members,2),hr("}")}function Uc(D){Gt(D.literal)}function ip(D){Ye(D.head),Qs(D,D.templateSpans,262144)}function wc(D){D.isTypeOf&&(to("typeof"),ur()),to("import"),hr("("),Ye(D.argument),D.attributes&&(hr(","),ur(),q(7,D.attributes)),hr(")"),D.qualifier&&(hr("."),Ye(D.qualifier)),_g(D,D.typeArguments)}function sm(D){hr("{"),Qs(D,D.elements,525136),hr("}")}function _d(D){hr("["),Qs(D,D.elements,524880),hr("]")}function Pe(D){Ye(D.dotDotDotToken),D.propertyName&&(Ye(D.propertyName),hr(":"),ur()),Ye(D.name),pb(D.initializer,D.name.end,D,Ln.parenthesizeExpressionForDisallowedComma)}function Ot(D){const ae=D.elements,ht=D.multiLine?65536:0;R1(D,ae,8914|ht,Ln.parenthesizeExpressionForDisallowedComma)}function Xn(D){Of(0,void 0),Xe(D.properties,ZI);const ae=Ga(D)&131072;ae&&Ph();const ht=D.multiLine?65536:0,on=O&&O.languageVersion>=1&&!Yf(O)?64:0;Qs(D,D.properties,526226|on|ht),ae&&Om(),hb()}function yo(D){Gt(D.expression,Ln.parenthesizeLeftSideOfAccess);const ae=D.questionDotToken||gh(w.createToken(25),D.expression.end,D.name.pos),ht=Up(D,D.expression,ae),on=Up(D,ae,D.name);Wm(ht,!1),ae.kind!==29&&$o(D.expression)&&!ve.hasTrailingComment()&&!ve.hasTrailingWhitespace()&&hr("."),D.questionDotToken?Ye(ae):Ui(ae.kind,D.expression.end,hr,D),Wm(on,!1),Ye(D.name),U0(ht,on)}function $o(D){if(D=bm(D),hp(D)){const ae=xT(D,!0,!1);return!(D.numericLiteralFlags&448)&&!ae.includes(pa(25))&&!ae.includes("E")&&!ae.includes("e")}else if(ws(D)){const ae=qoe(D);return typeof ae=="number"&&isFinite(ae)&&ae>=0&&Math.floor(ae)===ae}}function na(D){Gt(D.expression,Ln.parenthesizeLeftSideOfAccess),Ye(D.questionDotToken),Ui(23,D.expression.end,hr,D),Gt(D.argumentExpression),Ui(24,D.argumentExpression.end,hr,D)}function Zl(D){const ae=Em(D)&16;ae&&(hr("("),fb("0"),hr(","),ur()),Gt(D.expression,Ln.parenthesizeLeftSideOfAccess),ae&&hr(")"),Ye(D.questionDotToken),_g(D,D.typeArguments),R1(D,D.arguments,2576,Ln.parenthesizeExpressionForDisallowedComma)}function yc(D){Ui(105,D.pos,to,D),ur(),Gt(D.expression,Ln.parenthesizeExpressionOfNew),_g(D,D.typeArguments),R1(D,D.arguments,18960,Ln.parenthesizeExpressionForDisallowedComma)}function ul(D){const ae=Em(D)&16;ae&&(hr("("),fb("0"),hr(","),ur()),Gt(D.tag,Ln.parenthesizeLeftSideOfAccess),ae&&hr(")"),_g(D,D.typeArguments),ur(),Gt(D.template)}function vl(D){hr("<"),Ye(D.type),hr(">"),Gt(D.expression,Ln.parenthesizeOperandOfPrefixUnary)}function Gl(D){const ae=Ui(21,D.pos,hr,D),ht=rN(D.expression,D);Gt(D.expression,void 0),C1(D.expression,D),U0(ht),Ui(22,D.expression?D.expression.end:ae,hr,D)}function ec(D){Hp(D.name),Qn(D)}function Hc(D){fg(D,D.modifiers),vn(D,df)}function df(D){U_(D,D.typeParameters),eN(D,D.parameters),um(D.type),ur(),Ye(D.equalsGreaterThanToken)}function jd(D){Ui(91,D.pos,to,D),ur(),Gt(D.expression,Ln.parenthesizeOperandOfPrefixUnary)}function Nd(D){Ui(114,D.pos,to,D),ur(),Gt(D.expression,Ln.parenthesizeOperandOfPrefixUnary)}function kf(D){Ui(116,D.pos,to,D),ur(),Gt(D.expression,Ln.parenthesizeOperandOfPrefixUnary)}function V_(D){Ui(135,D.pos,to,D),ur(),Gt(D.expression,Ln.parenthesizeOperandOfPrefixUnary)}function Dh(D){mb(D.operator,mf),qg(D)&&ur(),Gt(D.operand,Ln.parenthesizeOperandOfPrefixUnary)}function qg(D){const ae=D.operand;return ae.kind===224&&(D.operator===40&&(ae.operator===40||ae.operator===46)||D.operator===41&&(ae.operator===41||ae.operator===47))}function Bu(D){Gt(D.operand,Ln.parenthesizeOperandOfPostfixUnary),mb(D.operator,mf)}function Jg(){return sF(D,ae,ht,on,wr,void 0);function D(bi,no){if(no){no.stackIndex++,no.preserveSourceNewlinesStack[no.stackIndex]=de,no.containerPosStack[no.stackIndex]=tn,no.containerEndStack[no.stackIndex]=rn,no.declarationListContainerEndStack[no.stackIndex]=Mn;const ga=no.shouldEmitCommentsStack[no.stackIndex]=Oe(bi),ed=no.shouldEmitSourceMapsStack[no.stackIndex]=Lt(bi);l==null||l(bi),ga&&CT(bi),ed&&ix(bi),fn(bi)}else no={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return no}function ae(bi,no,ga){return wi(bi,ga,"left")}function ht(bi,no,ga){const ed=bi.kind!==28,Pd=Up(ga,ga.left,bi),Ff=Up(ga,bi,ga.right);Wm(Pd,ed),gg(bi.pos),N1(bi,bi.kind===103?to:mf),Fm(bi.end,!0),Wm(Ff,!0)}function on(bi,no,ga){return wi(bi,ga,"right")}function wr(bi,no){const ga=Up(bi,bi.left,bi.operatorToken),ed=Up(bi,bi.operatorToken,bi.right);if(U0(ga,ed),no.stackIndex>0){const Pd=no.preserveSourceNewlinesStack[no.stackIndex],Ff=no.containerPosStack[no.stackIndex],bb=no.containerEndStack[no.stackIndex],Si=no.declarationListContainerEndStack[no.stackIndex],kh=no.shouldEmitCommentsStack[no.stackIndex],Hn=no.shouldEmitSourceMapsStack[no.stackIndex];hn(Pd),Hn&<(bi),kh&&sN(bi,Ff,bb,Si),u==null||u(bi),no.stackIndex--}}function wi(bi,no,ga){const ed=ga==="left"?Ln.getParenthesizeLeftSideOfBinaryForOperator(no.operatorToken.kind):Ln.getParenthesizeRightSideOfBinaryForOperator(no.operatorToken.kind);let Pd=L(0,1,bi);if(Pd===Tt&&(N.assertIsDefined(vi),bi=ed(oa(vi,yt)),Pd=me(1,1,bi),vi=void 0),(Pd===aN||Pd===X0||Pd===fe)&&mr(bi))return bi;so=ed,Pd(1,bi)}}function Ap(D){const ae=Up(D,D.condition,D.questionToken),ht=Up(D,D.questionToken,D.whenTrue),on=Up(D,D.whenTrue,D.colonToken),wr=Up(D,D.colonToken,D.whenFalse);Gt(D.condition,Ln.parenthesizeConditionOfConditionalExpression),Wm(ae,!0),Ye(D.questionToken),Wm(ht,!0),Gt(D.whenTrue,Ln.parenthesizeBranchOfConditionalExpression),U0(ae,ht),Wm(on,!0),Ye(D.colonToken),Wm(wr,!0),Gt(D.whenFalse,Ln.parenthesizeBranchOfConditionalExpression),U0(on,wr)}function dg(D){Ye(D.head),Qs(D,D.templateSpans,262144)}function Ud(D){Ui(127,D.pos,to,D),Ye(D.asteriskToken),x1(D.expression&&Lm(D.expression),b1)}function te(D){Ui(26,D.pos,hr,D),Gt(D.expression,Ln.parenthesizeExpressionForDisallowedComma)}function lt(D){Hp(D.name),Ja(D)}function Ft(D){Gt(D.expression,Ln.parenthesizeLeftSideOfAccess),_g(D,D.typeArguments)}function Vt(D){Gt(D.expression,void 0),D.type&&(ur(),to("as"),ur(),Ye(D.type))}function W(D){Gt(D.expression,Ln.parenthesizeLeftSideOfAccess),mf("!")}function Te(D){Gt(D.expression,void 0),D.type&&(ur(),to("satisfies"),ur(),Ye(D.type))}function st(D){D1(D.keywordToken,D.pos,hr),hr("."),Ye(D.name)}function qt(D){Gt(D.expression),Ye(D.literal)}function rr(D){ii(D,!D.multiLine&&IT(D))}function ii(D,ae){Ui(19,D.pos,hr,D);const ht=ae||Ga(D)&1?768:129;Qs(D,D.statements,ht),Ui(20,D.statements.end,hr,D,!!(ht&1))}function Yr(D){jp(D,D.modifiers,!1),Ye(D.declarationList),nu()}function oo(D){D?hr(";"):nu()}function wa(D){Gt(D.expression,Ln.parenthesizeExpressionOfExpressionStatement),(!O||!Yf(O)||Ys(D.expression))&&nu()}function Oa(D){const ae=Ui(101,D.pos,to,D);ur(),Ui(21,ae,hr,D),Gt(D.expression),Ui(22,D.expression.end,hr,D),mg(D,D.thenStatement),D.elseStatement&&(tv(D,D.thenStatement,D.elseStatement),Ui(93,D.thenStatement.end,to,D),D.elseStatement.kind===245?(ur(),Ye(D.elseStatement)):mg(D,D.elseStatement))}function Ol(D,ae){const ht=Ui(117,ae,to,D);ur(),Ui(21,ht,hr,D),Gt(D.expression),Ui(22,D.expression.end,hr,D)}function pu(D){Ui(92,D.pos,to,D),mg(D,D.statement),Ko(D.statement)&&!de?ur():tv(D,D.statement,D.expression),Ol(D,D.statement.end),nu()}function Rc(D){Ol(D,D.pos),mg(D,D.statement)}function Ip(D){const ae=Ui(99,D.pos,to,D);ur();let ht=Ui(21,ae,hr,D);us(D.initializer),ht=Ui(27,D.initializer?D.initializer.end:ht,hr,D),x1(D.condition),ht=Ui(27,D.condition?D.condition.end:ht,hr,D),x1(D.incrementor),Ui(22,D.incrementor?D.incrementor.end:ht,hr,D),mg(D,D.statement)}function Hd(D){const ae=Ui(99,D.pos,to,D);ur(),Ui(21,ae,hr,D),us(D.initializer),ur(),Ui(103,D.initializer.end,to,D),ur(),Gt(D.expression),Ui(22,D.expression.end,hr,D),mg(D,D.statement)}function ab(D){const ae=Ui(99,D.pos,to,D);ur(),vT(D.awaitModifier),Ui(21,ae,hr,D),us(D.initializer),ur(),Ui(165,D.initializer.end,to,D),ur(),Gt(D.expression),Ui(22,D.expression.end,hr,D),mg(D,D.statement)}function us(D){D!==void 0&&(D.kind===261?Ye(D):Gt(D))}function Pm(D){Ui(88,D.pos,to,D),ev(D.label),nu()}function Mm(D){Ui(83,D.pos,to,D),ev(D.label),nu()}function Ui(D,ae,ht,on,wr){const wi=No(on),bi=wi&&wi.kind===on.kind,no=ae;if(bi&&O&&(ae=Pa(O.text,ae)),bi&&on.pos!==no){const ga=wr&&O&&!If(no,ae,O);ga&&Ph(),gg(no),ga&&Om()}if(!A&&(D===19||D===20)?ae=D1(D,ae,ht,on):ae=mb(D,ht,ae),bi&&on.end!==ae){const ga=on.kind===294;Fm(ae,!ga,ga)}return ae}function Kg(D){return D.kind===2||!!D.hasTrailingNewLine}function ey(D){if(!O)return!1;const ae=qh(O.text,D.pos);if(ae){const ht=No(D);if(ht&&Gd(ht.parent))return!0}return bt(ae,Kg)||bt(WR(D),Kg)?!0:JW(D)?D.pos!==D.expression.pos&&bt(Zb(O.text,D.expression.pos),Kg)?!0:ey(D.expression):!1}function Lm(D){if(!Yt&&JW(D)&&ey(D)){const ae=No(D);if(ae&&Gd(ae)){const ht=w.createParenthesizedExpression(D.expression);return Nr(ht,D),dt(ht,ae),ht}return w.createParenthesizedExpression(D)}return D}function b1(D){return Lm(Ln.parenthesizeExpressionForDisallowedComma(D))}function E1(D){Ui(107,D.pos,to,D),x1(D.expression&&Lm(D.expression),Lm),nu()}function pf(D){const ae=Ui(118,D.pos,to,D);ur(),Ui(21,ae,hr,D),Gt(D.expression),Ui(22,D.expression.end,hr,D),mg(D,D.statement)}function j_(D){const ae=Ui(109,D.pos,to,D);ur(),Ui(21,ae,hr,D),Gt(D.expression),Ui(22,D.expression.end,hr,D),ur(),Ye(D.caseBlock)}function ff(D){Ye(D.label),Ui(59,D.label.end,hr,D),ur(),Ye(D.statement)}function Xg(D){Ui(111,D.pos,to,D),x1(Lm(D.expression),Lm),nu()}function ze(D){Ui(113,D.pos,to,D),ur(),Ye(D.tryBlock),D.catchClause&&(tv(D,D.tryBlock,D.catchClause),Ye(D.catchClause)),D.finallyBlock&&(tv(D,D.catchClause||D.tryBlock,D.finallyBlock),Ui(98,(D.catchClause||D.tryBlock).end,to,D),ur(),Ye(D.finallyBlock))}function Ze(D){D1(89,D.pos,to),nu()}function Mt(D){var ae,ht,on;Ye(D.name),Ye(D.exclamationToken),um(D.type),pb(D.initializer,((ae=D.type)==null?void 0:ae.end)??((on=(ht=D.name.emitNode)==null?void 0:ht.typeNode)==null?void 0:on.end)??D.name.end,D,Ln.parenthesizeExpressionForDisallowedComma)}function jt(D){if(xL(D))to("await"),ur(),to("using");else{const ae=W4(D)?"let":iR(D)?"const":RL(D)?"using":"var";to(ae)}ur(),Qs(D,D.declarations,528)}function bn(D){Qn(D)}function Qn(D){jp(D,D.modifiers,!1),to("function"),Ye(D.asteriskToken),ur(),_t(D.name),vn(D,Zn)}function vn(D,ae){const ht=D.body;if(ht)if(Ko(ht)){const on=Ga(D)&131072;on&&Ph(),Au(D),Xe(D.parameters,ru),ru(D.body),ae(D),cr(ht),ap(D),on&&Om()}else ae(D),ur(),Gt(ht,Ln.parenthesizeConciseBodyOfArrowFunction);else ae(D),nu()}function Zn(D){U_(D,D.typeParameters),oy(D,D.parameters),um(D.type)}function _i(D){if(Ga(D)&1)return!0;if(D.multiLine||!Ys(D)&&O&&!CS(D,O)||hg(D,Kc(D.statements),2)||QI(D,el(D.statements),2,D.statements))return!1;let ae;for(const ht of D.statements){if(_b(ae,ht,2)>0)return!1;ae=ht}return!0}function cr(D){l==null||l(D),ur(),hr("{"),Ph();const ae=_i(D)?ni:fr;Ir(D,D.statements,ae),Om(),D1(20,D.statements.end,hr,D),u==null||u(D)}function ni(D){fr(D,!0)}function fr(D,ae){const ht=Jd(D.statements),on=ve.getTextPos();en(D),ht===0&&on===ve.getTextPos()&&ae?(Om(),Qs(D,D.statements,768),Ph()):Qs(D,D.statements,1,void 0,ht)}function Qo(D){Ja(D)}function Ja(D){Of(0,void 0),Xe(D.members,ZI),jp(D,D.modifiers,!0),Ui(86,C_(D).pos,to,D),D.name&&(ur(),_t(D.name));const ae=Ga(D)&131072;ae&&Ph(),U_(D,D.typeParameters),Qs(D,D.heritageClauses,0),ur(),hr("{"),Qs(D,D.members,129),hr("}"),ae&&Om(),hb()}function Zu(D){Of(0,void 0),jp(D,D.modifiers,!1),to("interface"),ur(),Ye(D.name),U_(D,D.typeParameters),Qs(D,D.heritageClauses,512),ur(),hr("{"),Qs(D,D.members,129),hr("}"),hb()}function fu(D){jp(D,D.modifiers,!1),to("type"),ur(),Ye(D.name),U_(D,D.typeParameters),ur(),hr("="),ur(),Ye(D.type),nu()}function Yg(D){jp(D,D.modifiers,!1),to("enum"),ur(),Ye(D.name),ur(),hr("{"),Qs(D,D.members,145),hr("}")}function O0(D){jp(D,D.modifiers,!1),~D.flags&2048&&(to(D.flags&32?"namespace":"module"),ur()),Ye(D.name);let ae=D.body;if(!ae)return nu();for(;ae&&Xl(ae);)hr("."),Ye(ae.name),ae=ae.body;ur(),Ye(ae)}function zI(D){Au(D),Xe(D.statements,ru),ii(D,IT(D)),ap(D)}function W0(D){Ui(19,D.pos,hr,D),Qs(D,D.clauses,129),Ui(20,D.clauses.end,hr,D,!0)}function qD(D){jp(D,D.modifiers,!1),Ui(102,D.modifiers?D.modifiers.end:D.pos,to,D),ur(),D.isTypeOnly&&(Ui(156,D.pos,to,D),ur()),Ye(D.name),ur(),Ui(64,D.name.end,hr,D),ur(),JD(D.moduleReference),nu()}function JD(D){D.kind===80?Gt(D):Ye(D)}function KD(D){jp(D,D.modifiers,!1),Ui(102,D.modifiers?D.modifiers.end:D.pos,to,D),ur(),D.importClause&&(Ye(D.importClause),ur(),Ui(161,D.importClause.end,to,D),ur()),Gt(D.moduleSpecifier),D.attributes&&ev(D.attributes),nu()}function uT(D){D.isTypeOnly&&(Ui(156,D.pos,to,D),ur()),Ye(D.name),D.name&&D.namedBindings&&(Ui(28,D.name.end,hr,D),ur()),Ye(D.namedBindings)}function S1(D){const ae=Ui(42,D.pos,hr,D);ur(),Ui(130,ae,to,D),ur(),Ye(D.name)}function BI(D){lb(D)}function XD(D){pg(D)}function GI(D){const ae=Ui(95,D.pos,to,D);ur(),D.isExportEquals?Ui(64,ae,mf,D):Ui(90,ae,to,D),ur(),Gt(D.expression,D.isExportEquals?Ln.getParenthesizeRightSideOfBinaryForOperator(64):Ln.parenthesizeExpressionOfExportDefault),nu()}function VI(D){jp(D,D.modifiers,!1);let ae=Ui(95,D.pos,to,D);if(ur(),D.isTypeOnly&&(ae=Ui(156,ae,to,D),ur()),D.exportClause?Ye(D.exportClause):ae=Ui(42,ae,hr,D),D.moduleSpecifier){ur();const ht=D.exportClause?D.exportClause.end:ae;Ui(161,ht,to,D),ur(),Gt(D.moduleSpecifier)}D.attributes&&ev(D.attributes),nu()}function jI(D){hr("{"),ur(),to(D.token===132?"assert":"with"),hr(":"),ur();const ae=D.elements;Qs(D,ae,526226),ur(),hr("}")}function UI(D){Ui(D.token,D.pos,to,D),ur();const ae=D.elements;Qs(D,ae,526226)}function dT(D){Ye(D.name),hr(":"),ur();const ae=D.value;if(!(Ga(ae)&1024)){const ht=M_(ae);Fm(ht.pos)}Ye(ae)}function HI(D){let ae=Ui(95,D.pos,to,D);ur(),ae=Ui(130,ae,to,D),ur(),ae=Ui(145,ae,to,D),ur(),Ye(D.name),nu()}function T1(D){const ae=Ui(42,D.pos,hr,D);ur(),Ui(130,ae,to,D),ur(),Ye(D.name)}function A1(D){lb(D)}function sb(D){pg(D)}function lb(D){hr("{"),Qs(D,D.elements,525136),hr("}")}function pg(D){D.isTypeOnly&&(to("type"),ur()),D.propertyName&&(Ye(D.propertyName),ur(),Ui(130,D.propertyName.end,to,D),ur()),Ye(D.name)}function F0(D){to("require"),hr("("),Gt(D.expression),hr(")")}function ts(D){Ye(D.openingElement),Qs(D,D.children,262144),Ye(D.closingElement)}function pT(D){hr("<"),cb(D.tagName),_g(D,D.typeArguments),ur(),Ye(D.attributes),hr("/>")}function YD(D){Ye(D.openingFragment),Qs(D,D.children,262144),Ye(D.closingFragment)}function z0(D){if(hr("<"),k_(D)){const ae=rN(D.tagName,D);cb(D.tagName),_g(D,D.typeArguments),D.attributes.properties&&D.attributes.properties.length>0&&ur(),Ye(D.attributes),C1(D.attributes,D),U0(ae)}hr(">")}function $g(D){ve.writeLiteral(D.text)}function Nh(D){hr("</"),e1(D)&&cb(D.tagName),hr(">")}function wf(D){Qs(D,D.properties,262656)}function qd(D){Ye(D.name),km("=",hr,D.initializer,yn)}function xp(D){hr("{..."),Gt(D.expression),hr("}")}function op(D){let ae=!1;return $2((O==null?void 0:O.text)||"",D+1,()=>ae=!0),ae}function ty(D){let ae=!1;return Y2((O==null?void 0:O.text)||"",D+1,()=>ae=!0),ae}function fT(D){return op(D)||ty(D)}function $D(D){var ae;if(D.expression||!Yt&&!Ys(D)&&fT(D.pos)){const ht=O&&!Ys(D)&&ys(O,D.pos).line!==ys(O,D.end).line;ht&&ve.increaseIndent();const on=Ui(19,D.pos,hr,D);Ye(D.dotDotDotToken),Gt(D.expression),Ui(20,((ae=D.expression)==null?void 0:ae.end)||on,hr,D),ht&&ve.decreaseIndent()}}function qI(D){_t(D.namespace),hr(":"),_t(D.name)}function cb(D){D.kind===80?Gt(D):Ye(D)}function B0(D){Ui(84,D.pos,to,D),ur(),Gt(D.expression,Ln.parenthesizeExpressionForDisallowedComma),bc(D,D.statements,D.expression.end)}function JI(D){const ae=Ui(90,D.pos,to,D);bc(D,D.statements,ae)}function bc(D,ae,ht){const on=ae.length===1&&(!O||Ys(D)||Ys(ae[0])||I3(D,ae[0],O));let wr=163969;on?(D1(59,ht,hr,D),ur(),wr&=-130):Ui(59,ht,hr,D),Qs(D,ae,wr)}function ny(D){ur(),mb(D.token,to),ur(),Qs(D,D.types,528)}function KI(D){const ae=Ui(85,D.pos,to,D);ur(),D.variableDeclaration&&(Ui(21,ae,hr,D),Ye(D.variableDeclaration),Ui(22,D.variableDeclaration.end,hr,D),ur()),Ye(D.block)}function r_(D){Ye(D.name),hr(":"),ur();const ae=D.initializer;if(!(Ga(ae)&1024)){const ht=M_(ae);Fm(ht.pos)}Gt(ae,Ln.parenthesizeExpressionForDisallowedComma)}function mT(D){Ye(D.name),D.objectAssignmentInitializer&&(ur(),hr("="),ur(),Gt(D.objectAssignmentInitializer,Ln.parenthesizeExpressionForDisallowedComma))}function qe(D){D.expression&&(Ui(26,D.pos,hr,D),Gt(D.expression,Ln.parenthesizeExpressionForDisallowedComma))}function i_(D){Ye(D.name),pb(D.initializer,D.name.end,D,Ln.parenthesizeExpressionForDisallowedComma)}function mu(D){if(Ue("/**"),D.comment){const ae=aL(D.comment);if(ae){const ht=ae.split(/\r\n?|\n/g);for(const on of ht)qc(),ur(),hr("*"),ur(),Ue(on)}}D.tags&&(D.tags.length===1&&D.tags[0].kind===351&&!D.comment?(ur(),Ye(D.tags[0])):Qs(D,D.tags,33)),ur(),Ue("*/")}function G0(D){lm(D.tagName),Qg(D.typeExpression),cm(D.comment)}function XI(D){lm(D.tagName),Ye(D.name),cm(D.comment)}function ub(D){ur(),hr("{"),Ye(D.name),hr("}")}function ry(D){lm(D.tagName),ur(),hr("{"),Ye(D.class),hr("}"),cm(D.comment)}function iy(D){lm(D.tagName),Qg(D.constraint),ur(),Qs(D,D.typeParameters,528),cm(D.comment)}function DM(D){lm(D.tagName),D.typeExpression&&(D.typeExpression.kind===316?Qg(D.typeExpression):(ur(),hr("{"),Ue("Object"),D.typeExpression.isArrayType&&(hr("["),hr("]")),hr("}"))),D.fullName&&(ur(),Ye(D.fullName)),cm(D.comment),D.typeExpression&&D.typeExpression.kind===329&&hT(D.typeExpression)}function Ka(D){lm(D.tagName),D.name&&(ur(),Ye(D.name)),cm(D.comment),V0(D.typeExpression)}function o_(D){cm(D.comment),V0(D.typeExpression)}function _T(D){lm(D.tagName),cm(D.comment)}function hT(D){Qs(D,w.createNodeArray(D.jsDocPropertyTags),33)}function V0(D){D.typeParameters&&Qs(D,w.createNodeArray(D.typeParameters),33),D.parameters&&Qs(D,w.createNodeArray(D.parameters),33),D.type&&(qc(),ur(),hr("*"),ur(),Ye(D.type))}function gT(D){lm(D.tagName),Qg(D.typeExpression),ur(),D.isBracketed&&hr("["),Ye(D.name),D.isBracketed&&hr("]"),cm(D.comment)}function lm(D){hr("@"),Ye(D)}function cm(D){const ae=aL(D);ae&&(ur(),Ue(ae))}function Qg(D){D&&(ur(),hr("{"),Ye(D.type),hr("}"))}function YI(D){qc();const ae=D.statements;if(ae.length===0||!Sm(ae[0])||Ys(ae[0])){Ir(D,ae,Ki);return}Ki(D)}function a_(D){I1(!!D.hasNoDefaultLib,D.syntheticFileReferences||[],D.syntheticTypeReferences||[],D.syntheticLibReferences||[]);for(const ae of D.prepends)if(VS(ae)&&ae.syntheticReferences)for(const ht of ae.syntheticReferences)Ye(ht),qc()}function QD(D){D.isDeclarationFile&&I1(D.hasNoDefaultLib,D.referencedFiles,D.typeReferenceDirectives,D.libReferenceDirectives)}function I1(D,ae,ht,on){if(D){const wr=ve.getTextPos();H_('/// <reference no-default-lib="true"/>'),De&&De.sections.push({pos:wr,end:ve.getTextPos(),kind:"no-default-lib"}),qc()}if(O&&O.moduleName&&(H_(`/// <amd-module name="${O.moduleName}" />`),qc()),O&&O.amdDependencies)for(const wr of O.amdDependencies)wr.name?H_(`/// <amd-dependency name="${wr.name}" path="${wr.path}" />`):H_(`/// <amd-dependency path="${wr.path}" />`),qc();for(const wr of ae){const wi=ve.getTextPos();H_(`/// <reference path="${wr.fileName}" />`),De&&De.sections.push({pos:wi,end:ve.getTextPos(),kind:"reference",data:wr.fileName}),qc()}for(const wr of ht){const wi=ve.getTextPos(),bi=wr.resolutionMode&&wr.resolutionMode!==(O==null?void 0:O.impliedNodeFormat)?`resolution-mode="${wr.resolutionMode===99?"import":"require"}"`:"";H_(`/// <reference types="${wr.fileName}" ${bi}/>`),De&&De.sections.push({pos:wi,end:ve.getTextPos(),kind:wr.resolutionMode?wr.resolutionMode===99?"type-import":"type-require":"type",data:wr.fileName}),qc()}for(const wr of on){const wi=ve.getTextPos();H_(`/// <reference lib="${wr.fileName}" />`),De&&De.sections.push({pos:wi,end:ve.getTextPos(),kind:"lib",data:wr.fileName}),qc()}}function Ki(D){const ae=D.statements;Au(D),Xe(D.statements,ru),en(D);const ht=mi(ae,on=>!Sm(on));QD(D),Qs(D,ae,1,void 0,ht===-1?ae.length:ht),ap(D)}function Zr(D){const ae=Ga(D);!(ae&1024)&&D.pos!==D.expression.pos&&Fm(D.expression.pos),Gt(D.expression),!(ae&2048)&&D.end!==D.expression.end&&gg(D.expression.end)}function Ch(D){R1(D,D.elements,528,void 0)}function Jd(D,ae,ht,on){let wr=!!ae;for(let wi=0;wi<D.length;wi++){const bi=D[wi];if(Sm(bi)){if(ht?!ht.has(bi.expression.text):!0){wr&&(wr=!1,pt(ae)),qc();const ga=ve.getTextPos();Ye(bi),on&&De&&De.sections.push({pos:ga,end:ve.getTextPos(),kind:"prologue",data:bi.expression.text}),ht&&ht.add(bi.expression.text)}}else return wi}return D.length}function NM(D,ae){for(const ht of D)if(!ae.has(ht.data)){qc();const on=ve.getTextPos();Ye(ht),De&&De.sections.push({pos:on,end:ve.getTextPos(),kind:"prologue",data:ht.data}),ae&&ae.add(ht.data)}}function Zg(D){if($i(D))Jd(D.statements,D);else{const ae=new Set;for(const ht of D.prepends)NM(ht.prologues,ae);for(const ht of D.sourceFiles)Jd(ht.statements,ht,ae,!0);pt(void 0)}}function CM(D){const ae=new Set;let ht;for(let on=0;on<D.sourceFiles.length;on++){const wr=D.sourceFiles[on];let wi,bi=0;for(const no of wr.statements){if(!Sm(no))break;ae.has(no.expression.text)||(ae.add(no.expression.text),(wi||(wi=[])).push({pos:no.pos,end:no.end,expression:{pos:no.expression.pos,end:no.expression.end,text:no.expression.text}}),bi=bi<no.end?no.end:bi)}wi&&(ht||(ht=[])).push({file:on,text:wr.text.substring(0,bi),directives:wi})}return ht}function db(D){if($i(D)||VS(D)){const ae=i4(D.text);if(ae)return H_(ae),qc(),!0}else{for(const ae of D.prepends)if(N.assertNode(ae,VS),db(ae))return!0;for(const ae of D.sourceFiles)if(db(ae))return!0}}function yl(D,ae){if(!D)return;const ht=Ue;Ue=ae,Ye(D),Ue=ht}function jp(D,ae,ht){if(ae!=null&&ae.length){if(Jn(ae,Aa))return fg(D,ae);if(Jn(ae,Eu))return ht?$I(D,ae):D.pos;p==null||p(ae);let on,wr,wi=0,bi=0,no;for(;wi<ae.length;){for(;bi<ae.length;){if(no=ae[bi],wr=Eu(no)?"decorators":"modifiers",on===void 0)on=wr;else if(wr!==on)break;bi++}const ga={pos:-1,end:-1};wi===0&&(ga.pos=ae.pos),bi===ae.length-1&&(ga.end=ae.end),(on==="modifiers"||ht)&&wm(Ye,D,ae,on==="modifiers"?2359808:2146305,void 0,wi,bi-wi,!1,ga),wi=bi,on=wr,bi++}if(h==null||h(ae),no&&!Ym(no.end))return no.end}return D.pos}function fg(D,ae){Qs(D,ae,2359808);const ht=el(ae);return ht&&!Ym(ht.end)?ht.end:D.pos}function um(D){D&&(hr(":"),ur(),Ye(D))}function pb(D,ae,ht,on){D&&(ur(),Ui(64,ae,mf,ht),ur(),Gt(D,on))}function km(D,ae,ht,on){ht&&(ae(D),on(ht))}function ev(D){D&&(ur(),Ye(D))}function x1(D,ae){D&&(ur(),Gt(D,ae))}function vT(D){D&&(Ye(D),ur())}function mg(D,ae){Ko(ae)||Ga(D)&1||de&&!hg(D,ae,0)?(ur(),Ye(ae)):(qc(),Ph(),cH(ae)?q(5,ae):Ye(ae),Om())}function $I(D,ae){Qs(D,ae,2146305);const ht=el(ae);return ht&&!Ym(ht.end)?ht.end:D.pos}function _g(D,ae){Qs(D,ae,53776,Ci)}function U_(D,ae){if(ea(D)&&D.typeArguments)return _g(D,D.typeArguments);Qs(D,ae,53776)}function oy(D,ae){Qs(D,ae,2576)}function ZD(D,ae){const ht=ah(ae);return ht&&ht.pos===D.pos&&Gs(D)&&!D.type&&!bt(D.modifiers)&&!bt(D.typeParameters)&&!bt(ht.modifiers)&&!ht.dotDotDotToken&&!ht.questionToken&&!ht.type&&!ht.initializer&&Ve(ht.name)}function eN(D,ae){ZD(D,ae)?Qs(D,ae,528):oy(D,ae)}function tN(D,ae){Qs(D,ae,8848)}function yT(D){switch(D&60){case 0:break;case 16:hr(",");break;case 4:ur(),hr("|");break;case 32:ur(),hr("*"),ur();break;case 8:ur(),hr("&");break}}function Qs(D,ae,ht,on,wr,wi){bT(Ye,D,ae,ht|(D&&Ga(D)&2?65536:0),on,wr,wi)}function R1(D,ae,ht,on,wr,wi){bT(Gt,D,ae,ht,on,wr,wi)}function bT(D,ae,ht,on,wr,wi=0,bi=ht?ht.length-wi:0){if(ht===void 0&&on&16384)return;const ga=ht===void 0||wi>=ht.length||bi===0;if(ga&&on&32768){p==null||p(ht),h==null||h(ht);return}on&15360&&(hr(vUe(on)),ga&&ht&&Fm(ht.pos,!0)),p==null||p(ht),ga?on&1&&!(de&&(!ae||O&&CS(ae,O)))?qc():on&256&&!(on&524288)&&ur():wm(D,ae,ht,on,wr,wi,bi,ht.hasTrailingComma,ht),h==null||h(ht),on&15360&&(ga&&ht&&gg(ht.end),hr(yUe(on)))}function wm(D,ae,ht,on,wr,wi,bi,no,ga){const ed=(on&262144)===0;let Pd=ed;const Ff=hg(ae,ht[wi],on);Ff?(qc(Ff),Pd=!1):on&256&&ur(),on&128&&Ph();const bb=TUe(D,wr);let Si,kh,Hn=!1;for(let W1=0;W1<bi;W1++){const J_=ht[wi+W1];if(on&32)qc(),yT(on);else if(Si){on&60&&Si.end!==(ae?ae.end:-1)&&(Ga(Si)&2048||gg(Si.end)),yT(on),Tn(kh);const wh=_b(Si,J_,on);if(wh>0){if(on&131||(Ph(),Hn=!0),Pd&&on&60&&!Ym(J_.pos)){const dN=M_(J_);Fm(dN.pos,!!(on&512),!0)}qc(wh),Pd=!1}else Si&&on&512&&ur()}if(kh=ka(J_),Pd){const wh=M_(J_);Fm(wh.pos)}else Pd=ed;ie=J_.pos,bb(J_,D,wr,W1),Hn&&(Om(),Hn=!1),Si=J_}const ox=Si?Ga(Si):0,Eb=Yt||!!(ox&2048),Sb=no&&on&64&&on&16;Sb&&(Si&&!Eb?Ui(28,Si.end,hr,Si):hr(",")),Si&&(ae?ae.end:-1)!==Si.end&&on&60&&!Eb&&gg(Sb&&(ga!=null&&ga.end)?ga.end:Si.end),on&128&&Om(),Tn(kh);const kT=QI(ae,ht[wi+bi-1],on,ga);kT?qc(kT):on&2097408&&ur()}function fb(D){ve.writeLiteral(D)}function nN(D){ve.writeStringLiteral(D)}function ET(D){ve.write(D)}function PM(D,ae){ve.writeSymbol(D,ae)}function hr(D){ve.writePunctuation(D)}function nu(){ve.writeTrailingSemicolon(";")}function to(D){ve.writeKeyword(D)}function mf(D){ve.writeOperator(D)}function ay(D){ve.writeParameter(D)}function H_(D){ve.writeComment(D)}function ur(){ve.writeSpace(" ")}function ST(D){ve.writeProperty(D)}function j0(D){ve.nonEscapingWrite?ve.nonEscapingWrite(D):ve.write(D)}function qc(D=1){for(let ae=0;ae<D;ae++)ve.writeLine(ae>0)}function Ph(){ve.increaseIndent()}function Om(){ve.decreaseIndent()}function D1(D,ae,ht,on){return je?mb(D,ht,ae):O1(on,D,ht,ae,mb)}function N1(D,ae){m&&m(D),ae(pa(D.kind)),y&&y(D)}function mb(D,ae,ht){const on=pa(D);return ae(on),ht<0?ht:ht+on.length}function tv(D,ae,ht){if(Ga(D)&1)ur();else if(de){const on=Up(D,ae,ht);on?qc(on):ur()}else qc()}function TT(D){const ae=D.split(/\r\n?|\n/g),ht=xre(ae);for(const on of ae){const wr=ht?on.slice(ht):on;wr.length&&(qc(),Ue(wr))}}function Wm(D,ae){D?(Ph(),qc(D)):ae&&ur()}function U0(D,ae){D&&Om(),ae&&Om()}function hg(D,ae,ht){if(ht&2||de){if(ht&65536)return 1;if(ae===void 0)return!D||O&&CS(D,O)?0:1;if(ae.pos===ie||ae.kind===12)return 0;if(O&&D&&!Ym(D.pos)&&!Ys(ae)&&(!ae.parent||Pl(ae.parent)===Pl(D)))return de?H0(on=>$ie(ae.pos,D.pos,O,on)):I3(D,ae,O)?0:1;if(AT(ae,ht))return 1}return ht&1?1:0}function _b(D,ae,ht){if(ht&2||de){if(D===void 0||ae===void 0||ae.kind===12)return 0;if(O&&!Ys(D)&&!Ys(ae))return de&&Cd(D,ae)?H0(on=>nU(D,ae,O,on)):!de&&_f(D,ae)?uk(D,ae,O)?0:1:ht&65536?1:0;if(AT(D,ht)||AT(ae,ht))return 1}else if(cP(ae))return 1;return ht&1?1:0}function QI(D,ae,ht,on){if(ht&2||de){if(ht&65536)return 1;if(ae===void 0)return!D||O&&CS(D,O)?0:1;if(O&&D&&!Ym(D.pos)&&!Ys(ae)&&(!ae.parent||ae.parent===D)){if(de){const wr=on&&!Ym(on.end)?on.end:ae.end;return H0(wi=>Qie(wr,D.end,O,wi))}return Kie(D,ae,O)?0:1}if(AT(ae,ht))return 1}return ht&1&&!(ht&131072)?1:0}function H0(D){N.assert(!!de);const ae=D(!0);return ae===0?D(!1):ae}function rN(D,ae){const ht=de&&hg(ae,D,0);return ht&&Wm(ht,!1),!!ht}function C1(D,ae){const ht=de&&QI(ae,D,0,void 0);ht&&qc(ht)}function AT(D,ae){if(Ys(D)){const ht=cP(D);return ht===void 0?(ae&65536)!==0:ht}return(ae&65536)!==0}function Up(D,ae,ht){return Ga(D)&262144?0:(D=Vl(D),ae=Vl(ae),ht=Vl(ht),cP(ht)?1:O&&!Ys(D)&&!Ys(ae)&&!Ys(ht)?de?H0(on=>nU(ae,ht,O,on)):uk(ae,ht,O)?0:1:0)}function IT(D){return D.statements.length===0&&(!O||uk(D,D,O))}function Vl(D){for(;D.kind===217&&Ys(D);)D=D.expression;return D}function Oc(D,ae){if(al(D)||dS(D))return RT(D);if(Na(D)&&D.textSourceNode)return Oc(D.textSourceNode,ae);const ht=O,on=!!ht&&!!D.parent&&!Ys(D);if(Kh(D)){if(!on||Un(D)!==Pl(ht))return Er(D)}else if(Qm(D)){if(!on||Un(D)!==Pl(ht))return oP(D)}else if(N.assertNode(D,DE),!on)return D.text;return CE(ht,D,ae)}function xT(D,ae,ht){if(D.kind===11&&D.textSourceNode){const wr=D.textSourceNode;if(Ve(wr)||qi(wr)||hp(wr)||Qm(wr)){const wi=hp(wr)?wr.text:Oc(wr);return ht?`"${Gj(wi)}"`:ae||Ga(D)&16777216?`"${tg(wi)}"`:`"${ik(wi)}"`}else return xT(wr,ae,ht)}const on=(ae?1:0)|(ht?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return Wre(D,O,on)}function Au(D){D&&Ga(D)&1048576||(ye.push(Y),Y=0,se.push(G),G=void 0,X.push(oe))}function ap(D){D&&Ga(D)&1048576||(Y=ye.pop(),G=se.pop(),oe=X.pop())}function q0(D){(!oe||oe===el(X))&&(oe=new Set),oe.add(D)}function Of(D,ae){ne.push(he),he=D,pe.push(oe),Ce=ae}function hb(){he=ne.pop(),Ce=pe.pop()}function gb(D){(!Ce||Ce===el(pe))&&(Ce=new Set),Ce.add(D)}function ru(D){if(D)switch(D.kind){case 241:Xe(D.statements,ru);break;case 256:case 254:case 246:case 247:ru(D.statement);break;case 245:ru(D.thenStatement),ru(D.elseStatement);break;case 248:case 250:case 249:ru(D.initializer),ru(D.statement);break;case 255:ru(D.caseBlock);break;case 269:Xe(D.clauses,ru);break;case 296:case 297:Xe(D.statements,ru);break;case 258:ru(D.tryBlock),ru(D.catchClause),ru(D.finallyBlock);break;case 299:ru(D.variableDeclaration),ru(D.block);break;case 243:ru(D.declarationList);break;case 261:Xe(D.declarations,ru);break;case 260:case 169:case 208:case 263:Hp(D.name);break;case 262:Hp(D.name),Ga(D)&1048576&&(Xe(D.parameters,ru),ru(D.body));break;case 206:case 207:Xe(D.elements,ru);break;case 272:ru(D.importClause);break;case 273:Hp(D.name),ru(D.namedBindings);break;case 274:Hp(D.name);break;case 280:Hp(D.name);break;case 275:Xe(D.elements,ru);break;case 276:Hp(D.propertyName||D.name);break}}function ZI(D){if(D)switch(D.kind){case 303:case 304:case 172:case 174:case 177:case 178:Hp(D.name);break}}function Hp(D){D&&(al(D)||dS(D)?RT(D):ta(D)&&ru(D))}function RT(D){const ae=D.emitNode.autoGenerate;if((ae.flags&7)===4)return DT(tw(D),qi(D),ae.flags,ae.prefix,ae.suffix);{const ht=ae.id;return Q[ht]||(Q[ht]=oN(D))}}function DT(D,ae,ht,on,wr){const wi=as(D),bi=ae?K:U;return bi[wi]||(bi[wi]=NT(D,ae,ht??0,QR(on,RT),QR(wr)))}function Hs(D,ae){return J0(D)&&!iN(D,ae)&&!V.has(D)}function iN(D,ae){return ae?!!(Ce!=null&&Ce.has(D)):!!(oe!=null&&oe.has(D))}function J0(D,ae){return O?C4(O,D,r):!0}function P1(D,ae){for(let ht=ae;ht&&WE(ht,ae);ht=ht.nextContainer)if(ph(ht)&&ht.locals){const on=ht.locals.get(_l(D));if(on&&on.flags&3257279)return!1}return!0}function MM(D){switch(D){case"":return Y;case"#":return he;default:return(G==null?void 0:G.get(D))??0}}function hd(D,ae){switch(D){case"":Y=ae;break;case"#":he=ae;break;default:G??(G=new Map),G.set(D,ae);break}}function nv(D,ae,ht,on,wr){on.length>0&&on.charCodeAt(0)===35&&(on=on.slice(1));const wi=S0(ht,on,"",wr);let bi=MM(wi);if(D&&!(bi&D)){const ga=S0(ht,on,D===268435456?"_i":"_n",wr);if(Hs(ga,ht))return bi|=D,ht?gb(ga):ae&&q0(ga),hd(wi,bi),ga}for(;;){const no=bi&268435455;if(bi++,no!==8&&no!==13){const ga=no<26?"_"+String.fromCharCode(97+no):"_"+(no-26),ed=S0(ht,on,ga,wr);if(Hs(ed,ht))return ht?gb(ed):ae&&q0(ed),hd(wi,bi),ed}}}function q_(D,ae=Hs,ht,on,wr,wi,bi){if(D.length>0&&D.charCodeAt(0)===35&&(D=D.slice(1)),wi.length>0&&wi.charCodeAt(0)===35&&(wi=wi.slice(1)),ht){const ga=S0(wr,wi,D,bi);if(ae(ga,wr))return wr?gb(ga):on?q0(ga):V.add(ga),ga}D.charCodeAt(D.length-1)!==95&&(D+="_");let no=1;for(;;){const ga=S0(wr,wi,D+no,bi);if(ae(ga,wr))return wr?gb(ga):on?q0(ga):V.add(ga),ga;no++}}function ex(D){return q_(D,J0,!0,!1,!1,"","")}function Rp(D){const ae=Oc(D.name);return P1(ae,ri(D,ph))?ae:q_(ae,Hs,!1,!1,!1,"","")}function tx(D){const ae=fR(D),ht=Na(ae)?zre(ae.text):"module";return q_(ht,Hs,!1,!1,!1,"","")}function sp(){return q_("default",Hs,!1,!1,!1,"","")}function nx(){return q_("class",Hs,!1,!1,!1,"","")}function sy(D,ae,ht,on){return Ve(D.name)?DT(D.name,ae):nv(0,!1,ae,ht,on)}function NT(D,ae,ht,on,wr){switch(D.kind){case 80:case 81:return q_(Oc(D),Hs,!!(ht&16),!!(ht&8),ae,on,wr);case 267:case 266:return N.assert(!on&&!wr&&!ae),Rp(D);case 272:case 278:return N.assert(!on&&!wr&&!ae),tx(D);case 262:case 263:{N.assert(!on&&!wr&&!ae);const wi=D.name;return wi&&!al(wi)?NT(wi,!1,ht,on,wr):sp()}case 277:return N.assert(!on&&!wr&&!ae),sp();case 231:return N.assert(!on&&!wr&&!ae),nx();case 174:case 177:case 178:return sy(D,ae,on,wr);case 167:return nv(0,!0,ae,on,wr);default:return nv(0,!1,ae,on,wr)}}function oN(D){const ae=D.emitNode.autoGenerate,ht=QR(ae.prefix,RT),on=QR(ae.suffix);switch(ae.flags&7){case 1:return nv(0,!!(ae.flags&8),qi(D),ht,on);case 2:return N.assertNode(D,Ve),nv(268435456,!!(ae.flags&8),!1,ht,on);case 3:return q_(Er(D),ae.flags&32?J0:Hs,!!(ae.flags&16),!!(ae.flags&8),qi(D),ht,on)}return N.fail(`Unsupported GeneratedIdentifierKind: ${N.formatEnum(ae.flags&7,F6,!0)}.`)}function aN(D,ae){const ht=me(2,D,ae),on=tn,wr=rn,wi=Mn;CT(ae),ht(D,ae),sN(ae,on,wr,wi)}function CT(D){const ae=Ga(D),ht=M_(D);vb(D,ae,ht.pos,ht.end),ae&4096&&(Yt=!0)}function sN(D,ae,ht,on){const wr=Ga(D),wi=M_(D);wr&4096&&(Yt=!1),Dp(D,wr,wi.pos,wi.end,ae,ht,on);const bi=Yoe(D);bi&&Dp(D,wr,bi.pos,bi.end,ae,ht,on)}function vb(D,ae,ht,on){Wi(),Qt=!1;const wr=ht<0||(ae&1024)!==0||D.kind===12,wi=on<0||(ae&2048)!==0||D.kind===12;(ht>0||on>0)&&ht!==on&&(wr||M1(ht,D.kind!==359),(!wr||ht>=0&&ae&1024)&&(tn=ht),(!wi||on>=0&&ae&2048)&&(rn=on,D.kind===261&&(Mn=on))),Xe(WR(D),Mh),Co()}function Dp(D,ae,ht,on,wr,wi,bi){Wi();const no=on<0||(ae&2048)!==0||D.kind===12;Xe(Lk(D),lN),(ht>0||on>0)&&ht!==on&&(tn=wr,rn=wi,Mn=bi,!no&&D.kind!==359&&s_(on)),Co()}function Mh(D){(D.hasLeadingNewline||D.kind===2)&&ve.writeLine(),PT(D),D.hasTrailingNewLine||D.kind===2?ve.writeLine():ve.writeSpace(" ")}function lN(D){ve.isAtStartOfLine()||ve.writeSpace(" "),PT(D),D.hasTrailingNewLine&&ve.writeLine()}function PT(D){const ae=rs(D),ht=D.kind===3?bA(ae):void 0;IR(ae,ht,ve,0,ae.length,R)}function rs(D){return D.kind===3?`/*${D.text}*/`:`//${D.text}`}function Ir(D,ae,ht){Wi();const{pos:on,end:wr}=ae,wi=Ga(D),bi=on<0||(wi&1024)!==0,no=Yt||wr<0||(wi&2048)!==0;bi||Wf(ae),Co(),wi&4096&&!Yt?(Yt=!0,ht(D),Yt=!1):ht(D),Wi(),no||(M1(ae.end,!0),Qt&&!ve.isAtStartOfLine()&&ve.writeLine()),Co()}function _f(D,ae){return D=Pl(D),D.parent&&D.parent===Pl(ae).parent}function Cd(D,ae){if(ae.pos<D.end)return!1;D=Pl(D),ae=Pl(ae);const ht=D.parent;if(!ht||ht!==ae.parent)return!1;const on=Roe(D),wr=on==null?void 0:on.indexOf(D);return wr!==void 0&&wr>-1&&on.indexOf(ae)===wr+1}function M1(D,ae){Qt=!1,ae?D===0&&(O!=null&&O.isDeclarationFile)?yg(D,K0):yg(D,MT):D===0&&yg(D,cN)}function cN(D,ae,ht,on,wr){gf(D,ae)&&MT(D,ae,ht,on,wr)}function K0(D,ae,ht,on,wr){gf(D,ae)||MT(D,ae,ht,on,wr)}function L1(D,ae){return e.onlyPrintJsDocStyle?LH(D,ae)||P4(D,ae):!0}function MT(D,ae,ht,on,wr){!O||!L1(O.text,D)||(Qt||(Lie(Rt(),ve,wr,D),Qt=!0),Ls(D),IR(O.text,Rt(),ve,D,ae,R),Ls(ae),on?ve.writeLine():ht===3&&ve.writeSpace(" "))}function gg(D){Yt||D===-1||M1(D,!0)}function s_(D){rx(D,hf)}function hf(D,ae,ht,on){!O||!L1(O.text,D)||(ve.isAtStartOfLine()||ve.writeSpace(" "),Ls(D),IR(O.text,Rt(),ve,D,ae,R),Ls(ae),on&&ve.writeLine())}function Fm(D,ae,ht){Yt||(Wi(),rx(D,ae?hf:ht?rv:vg),Co())}function rv(D,ae,ht){O&&(Ls(D),IR(O.text,Rt(),ve,D,ae,R),Ls(ae),ht===2&&ve.writeLine())}function vg(D,ae,ht,on){O&&(Ls(D),IR(O.text,Rt(),ve,D,ae,R),Ls(ae),on?ve.writeLine():ve.writeSpace(" "))}function yg(D,ae){O&&(tn===-1||D!==tn)&&(cc(D)?uN(ae):Y2(O.text,D,ae,D))}function rx(D,ae){O&&(rn===-1||D!==rn&&D!==Mn)&&$2(O.text,D,ae)}function cc(D){return gn!==void 0&&Xa(gn).nodePos===D}function uN(D){if(!O)return;const ae=Xa(gn).detachedCommentEndPos;gn.length-1?gn.pop():gn=void 0,Y2(O.text,ae,D,ae)}function Wf(D){const ae=O&&wie(O.text,Rt(),ve,Lh,D,R,Yt);ae&&(gn?gn.push(ae):gn=[ae])}function Lh(D,ae,ht,on,wr,wi){!O||!L1(O.text,on)||(Ls(on),IR(D,ae,ht,on,wr,wi),Ls(wr))}function gf(D,ae){return!!O&&YV(O.text,D,ae)}function k1(D){return D.parsedSourceMap===void 0&&D.sourceMapText!==void 0&&(D.parsedSourceMap=Pq(D.sourceMapText)||!1),D.parsedSourceMap||void 0}function X0(D,ae){const ht=me(3,D,ae);ix(ae),ht(D,ae),LT(ae)}function ix(D){const ae=Ga(D),ht=Bv(D);if(PV(D)){N.assertIsDefined(D.parent,"UnparsedNodes must have parent pointers");const on=k1(D.parent);on&&ot&&ot.appendSourceMap(ve.getLine(),ve.getColumn(),on,D.parent.sourceMapPath,D.parent.getLineAndCharacterOfPosition(D.pos),D.parent.getLineAndCharacterOfPosition(D.end))}else{const on=ht.source||Bt;D.kind!==359&&!(ae&32)&&ht.pos>=0&&w1(ht.source||Bt,vf(on,ht.pos)),ae&128&&(je=!0)}}function LT(D){const ae=Ga(D),ht=Bv(D);PV(D)||(ae&128&&(je=!1),D.kind!==359&&!(ae&64)&&ht.end>=0&&w1(ht.source||Bt,ht.end))}function vf(D,ae){return D.skipTrivia?D.skipTrivia(ae):Pa(D.text,ae)}function Ls(D){if(je||Ym(D)||Y0(Bt))return;const{line:ae,character:ht}=ys(Bt,D);ot.addMapping(ve.getLine(),ve.getColumn(),vt,ae,ht,void 0)}function w1(D,ae){if(D!==Bt){const ht=Bt,on=vt;iv(D),Ls(ae),yb(ht,on)}else Ls(ae)}function O1(D,ae,ht,on,wr){if(je||D&&$4(D))return wr(ae,ht,on);const wi=D&&D.emitNode,bi=wi&&wi.flags||0,no=wi&&wi.tokenSourceMapRanges&&wi.tokenSourceMapRanges[ae],ga=no&&no.source||Bt;return on=vf(ga,no?no.pos:on),!(bi&256)&&on>=0&&w1(ga,on),on=wr(ae,ht,on),no&&(on=no.end),!(bi&512)&&on>=0&&w1(ga,on),on}function iv(D){if(!je){if(Bt=D,D===$e){vt=It;return}Y0(D)||(vt=ot.addSource(D.fileName),e.inlineSources&&ot.setSourceContent(vt,D.text),$e=D,It=vt)}}function yb(D,ae){Bt=D,vt=ae}function Y0(D){return Il(D.fileName,".json")}}function gUe(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function vUe(e){return Fle[e&15360][0]}function yUe(e){return Fle[e&15360][1]}function bUe(e,t,r,i){t(e)}function EUe(e,t,r,i){t(e,r.select(i))}function SUe(e,t,r,i){t(e,r)}function TUe(e,t){return e.length===1?bUe:typeof t=="object"?EUe:SUe}var Fle,r7,tJ,d1,nJ,kw,AUe=I({"src/compiler/emitter.ts"(){ra(),ra(),sS(),Fle=gUe(),r7={hasGlobalName:Jo,getReferencedExportContainer:Jo,getReferencedImportDeclaration:Jo,getReferencedDeclarationWithCollidingName:Jo,isDeclarationWithCollidingName:Jo,isValueAliasDeclaration:Jo,isReferencedAliasDeclaration:Jo,isTopLevelValueImportEqualsWithEntityName:Jo,getNodeCheckFlags:Jo,isDeclarationVisible:Jo,isLateBound:e=>!1,collectLinkedAliases:Jo,isImplementationOfOverload:Jo,isRequiredInitializedParameter:Jo,isOptionalUninitializedParameterProperty:Jo,isExpandoFunctionDeclaration:Jo,getPropertiesOfContainerFunction:Jo,createTypeOfDeclaration:Jo,createReturnTypeOfSignatureDeclaration:Jo,createTypeOfExpression:Jo,createLiteralConstValue:Jo,isSymbolAccessible:Jo,isEntityNameVisible:Jo,getConstantValue:Jo,getReferencedValueDeclaration:Jo,getReferencedValueDeclarations:Jo,getTypeReferenceSerializationKind:Jo,isOptionalParameter:Jo,moduleExportsSomeValue:Jo,isArgumentsLocalBinding:Jo,getExternalModuleFileFromDeclaration:Jo,getTypeReferenceDirectivesForEntityName:Jo,getTypeReferenceDirectivesForSymbol:Jo,isLiteralConstDeclaration:Jo,getJsxFactoryEntity:Jo,getJsxFragmentFactoryEntity:Jo,getAllAccessorDeclarations:Jo,getSymbolOfExternalModuleSpecifier:Jo,isBindingCapturedByNode:Jo,getDeclarationStatementsForSourceFile:Jo,isImportRequiredByAugmentation:Jo,tryFindAmbientModule:Jo},tJ=Sd(()=>R0({})),d1=Sd(()=>R0({removeComments:!0})),nJ=Sd(()=>R0({removeComments:!0,neverAsciiEscape:!0})),kw=Sd(()=>R0({removeComments:!0,omitTrailingSemicolon:!0}))}});function i7(e,t,r){if(!e.getDirectories||!e.readDirectory)return;const i=new Map,o=Mu(r);return{useCaseSensitiveFileNames:r,fileExists:A,readFile:(G,ne)=>e.readFile(G,ne),directoryExists:e.directoryExists&&R,getDirectories:C,readDirectory:O,createDirectory:e.createDirectory&&M,writeFile:e.writeFile&&T,addOrDeleteFileOrDirectory:K,addOrDeleteFile:Q,clearCache:se,realpath:e.realpath&&U};function s(G){return il(G,t,o)}function l(G){return i.get(Fc(G))}function u(G){const ne=l(ai(G));return ne&&(ne.sortedAndCanonicalizedFiles||(ne.sortedAndCanonicalizedFiles=ne.files.map(o).sort(),ne.sortedAndCanonicalizedDirectories=ne.directories.map(o).sort()),ne)}function p(G){return ic(ha(G))}function h(G,ne){var he;if(!e.realpath||Fc(s(e.realpath(G)))===ne){const ye={files:Wt(e.readDirectory(G,void 0,void 0,["*.*"]),p)||[],directories:e.getDirectories(G)||[]};return i.set(Fc(ne),ye),ye}if((he=e.directoryExists)!=null&&he.call(e,G))return i.set(ne,!1),!1}function m(G,ne){ne=Fc(ne);const he=l(ne);if(he)return he;try{return h(G,ne)}catch{N.assert(!i.has(Fc(ne)));return}}function y(G,ne){return Tv(G,ne,tl,Uu)>=0}function T(G,ne,he){const ye=s(G),Y=u(ye);return Y&&V(Y,p(G),!0),e.writeFile(G,ne,he)}function A(G){const ne=s(G),he=u(ne);return he&&y(he.sortedAndCanonicalizedFiles,o(p(G)))||e.fileExists(G)}function R(G){const ne=s(G);return i.has(Fc(ne))||e.directoryExists(G)}function M(G){const ne=s(G),he=u(ne);if(he){const ye=p(G),Y=o(ye),X=he.sortedAndCanonicalizedDirectories;by(X,Y,Uu)&&he.directories.push(ye)}e.createDirectory(G)}function C(G){const ne=s(G),he=m(G,ne);return he?he.directories.slice():e.getDirectories(G)}function O(G,ne,he,ye,Y){const X=s(G),oe=m(G,X);let pe;if(oe!==void 0)return mU(G,ne,he,ye,r,t,Y,Ce,U);return e.readDirectory(G,ne,he,ye,Y);function Ce(ie){const ve=s(ie);if(ve===X)return oe||de(ie,ve);const Le=m(ie,ve);return Le!==void 0?Le||de(ie,ve):oW}function de(ie,ve){if(pe&&ve===X)return pe;const Le={files:Wt(e.readDirectory(ie,void 0,void 0,["*.*"]),p)||et,directories:e.getDirectories(ie)||et};return ve===X&&(pe=Le),Le}}function U(G){return e.realpath?e.realpath(G):G}function K(G,ne){if(l(ne)!==void 0){se();return}const ye=u(ne);if(!ye)return;if(!e.directoryExists){se();return}const Y=p(G),X={fileExists:e.fileExists(G),directoryExists:e.directoryExists(G)};return X.directoryExists||y(ye.sortedAndCanonicalizedDirectories,o(Y))?se():V(ye,Y,X.fileExists),X}function Q(G,ne,he){if(he===1)return;const ye=u(ne);ye&&V(ye,p(G),he===0)}function V(G,ne,he){const ye=G.sortedAndCanonicalizedFiles,Y=o(ne);if(he)by(ye,Y,Uu)&&G.files.push(ne);else{const X=Tv(ye,Y,tl,Uu);if(X>=0){ye.splice(X,1);const oe=G.files.findIndex(pe=>o(pe)===Y);G.files.splice(oe,1)}}}function se(){i.clear()}}function o7(e,t,r,i,o){var s;const l=TE(((s=t==null?void 0: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)=>{const h=r.get(p);h?h.projects.add(e):r.set(p,{projects:new Set([e]),watcher:i(u,p),close:()=>{const m=r.get(p);!m||m.projects.size!==0||(m.watcher.close(),r.delete(p))}})})}function rJ(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function a7(e,t,r){e.delete(t)&&e.forEach(({extendedResult:i},o)=>{var s;(s=i.extendedSourceFiles)!=null&&s.some(l=>r(l)===t)&&a7(e,o,r)})}function iJ(e,t,r){UC(t,e.getMissingFilePaths(),{createNewValue:r,onDeleteValue:Xm})}function ww(e,t,r){t?UC(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 Ow({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:o,program:s,extraFileExtensions:l,currentDirectory:u,useCaseSensitiveFileNames:p,writeLog:h,toPath:m,getScriptKind:y}){const T=v7(r);if(!T)return h(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=T,r===e)return!1;if(vA(r)&&!(yoe(t,o,l)||O()))return h(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(tse(t,o.configFile.configFileSpecs,go(ai(i),u),p,u))return h(`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(!Sc(r,OR))return!1;const A=Ad(r),R=To(s)?void 0:IUe(s)?s.getProgramOrUndefined():s,M=!R&&!To(s)?s:void 0;if(C(A+".ts")||C(A+".tsx"))return h(`Project: ${i} Detected output file: ${t}`),!0;return!1;function C(U){return R?!!R.getSourceFileByPath(U):M?M.getState().fileInfos.has(U):!!In(s,K=>m(K)===U)}function O(){if(!y)return!1;switch(y(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return jy(o);case 6:return g0(o);case 0:return!1}}}function IUe(e){return!!e.getState}function zle(e,t){return e?e.isEmittedFile(t):!1}function oJ(e,t,r,i){Tne(t===2?r:Ya);const o={watchFile:(M,C,O,U)=>e.watchFile(M,C,O,U),watchDirectory:(M,C,O,U)=>e.watchDirectory(M,C,(O&1)!==0,U)},s=t!==0?{watchFile:A("watchFile"),watchDirectory:A("watchDirectory")}:void 0,l=t===2?{watchFile:y,watchDirectory:T}:s||o,u=t===2?m:gD;return{watchFile:p("watchFile"),watchDirectory:p("watchDirectory")};function p(M){return(C,O,U,K,Q,V)=>{var se;return _F(C,M==="watchFile"?K==null?void 0:K.excludeFiles:K==null?void 0:K.excludeDirectories,h(),((se=e.getCurrentDirectory)==null?void 0:se.call(e))||"")?u(C,U,K,Q,V):l[M].call(void 0,C,O,U,K,Q,V)}}function h(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function m(M,C,O,U,K){return r(`ExcludeWatcher:: Added:: ${R(M,C,O,U,K,i)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${R(M,C,O,U,K,i)}`)}}function y(M,C,O,U,K,Q){r(`FileWatcher:: Added:: ${R(M,O,U,K,Q,i)}`);const V=s.watchFile(M,C,O,U,K,Q);return{close:()=>{r(`FileWatcher:: Close:: ${R(M,O,U,K,Q,i)}`),V.close()}}}function T(M,C,O,U,K,Q){const V=`DirectoryWatcher:: Added:: ${R(M,O,U,K,Q,i)}`;r(V);const se=Xs(),G=s.watchDirectory(M,C,O,U,K,Q),ne=Xs()-se;return r(`Elapsed:: ${ne}ms ${V}`),{close:()=>{const he=`DirectoryWatcher:: Close:: ${R(M,O,U,K,Q,i)}`;r(he);const ye=Xs();G.close();const Y=Xs()-ye;r(`Elapsed:: ${Y}ms ${he}`)}}}function A(M){return(C,O,U,K,Q,V)=>o[M].call(void 0,C,(...se)=>{const G=`${M==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${se[0]} ${se[1]!==void 0?se[1]:""}:: ${R(C,U,K,Q,V,i)}`;r(G);const ne=Xs();O.call(void 0,...se);const he=Xs()-ne;r(`Elapsed:: ${he}ms ${G}`)},U,K,Q,V)}function R(M,C,O,U,K,Q){return`WatchInfo: ${M} ${C} ${JSON.stringify(O)} ${Q?Q(U,K):K===void 0?U:`${U} ${K}`}`}}function Ww(e){const t=e==null?void 0:e.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Cf(e){e.watcher.close()}var aJ,sJ,xUe=I({"src/compiler/watchUtilities.ts"(){ra(),aJ=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(aJ||{}),sJ=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(sJ||{})}});function Ble(e,t,r="tsconfig.json"){return ym(e,i=>{const o=$r(i,r);return t(o)?o:void 0})}function s7(e,t){const r=ai(t),i=dp(e)?e:$r(r,e);return ha(i)}function Gle(e,t,r){let i;return Xe(e,s=>{const l=j2(s,t);if(l.pop(),!i){i=l;return}const u=Math.min(i.length,l.length);for(let p=0;p<u;p++)if(r(i[p])!==r(l[p])){if(p===0)return!0;i.length=p;break}l.length<i.length&&(i.length=l.length)})?"":i?Ay(i):t}function Vle(e,t){return uJ(e,t)}function lJ(e,t,r){return(i,o,s)=>{let l;try{rl("beforeIORead"),l=e(i,t().charset),rl("afterIORead"),Qp("I/O Read","beforeIORead","afterIORead")}catch(u){s&&s(u.message),l=""}return l!==void 0?iw(i,l,o,r):void 0}}function cJ(e,t,r){return(i,o,s,l)=>{try{rl("beforeIOWrite"),Hj(i,o,s,e,t,r),rl("afterIOWrite"),Qp("I/O Write","beforeIOWrite","afterIOWrite")}catch(u){l&&l(u.message)}}}function uJ(e,t,r=gu){const i=new Map,o=Mu(r.useCaseSensitiveFileNames);function s(m){return i.has(m)?!0:(h.directoryExists||r.directoryExists)(m)?(i.set(m,!0),!0):!1}function l(){return ai(ha(r.getExecutingFilePath()))}const u=Fv(e),p=r.realpath&&(m=>r.realpath(m)),h={getSourceFile:lJ(m=>h.readFile(m),()=>e,t),getDefaultLibLocation:l,getDefaultLibFileName:m=>$r(l(),Z2(m)),writeFile:cJ((m,y,T)=>r.writeFile(m,y,T),m=>(h.createDirectory||r.createDirectory)(m),m=>s(m)),getCurrentDirectory:Sd(()=>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,y,T,A,R)=>r.readDirectory(m,y,T,A,R),createDirectory:m=>r.createDirectory(m),createHash:ia(r,r.createHash)};return h}function Fw(e,t,r){const i=e.readFile,o=e.fileExists,s=e.directoryExists,l=e.createDirectory,u=e.writeFile,p=new Map,h=new Map,m=new Map,y=new Map,T=M=>{const C=t(M),O=p.get(C);return O!==void 0?O!==!1?O:void 0:A(C,M)},A=(M,C)=>{const O=i.call(e,C);return p.set(M,O!==void 0?O:!1),O};e.readFile=M=>{const C=t(M),O=p.get(C);return O!==void 0?O!==!1?O:void 0:!Il(M,".json")&&!wle(M)?i.call(e,M):A(C,M)};const R=r?(M,C,O,U)=>{const K=t(M),Q=typeof C=="object"?C.impliedNodeFormat:void 0,V=y.get(Q),se=V==null?void 0:V.get(K);if(se)return se;const G=r(M,C,O,U);return G&&(Su(M)||Il(M,".json"))&&y.set(Q,(V||new Map).set(K,G)),G}:void 0;return e.fileExists=M=>{const C=t(M),O=h.get(C);if(O!==void 0)return O;const U=o.call(e,M);return h.set(C,!!U),U},u&&(e.writeFile=(M,C,...O)=>{const U=t(M);h.delete(U);const K=p.get(U);K!==void 0&&K!==C?(p.delete(U),y.forEach(Q=>Q.delete(U))):R&&y.forEach(Q=>{const V=Q.get(U);V&&V.text!==C&&Q.delete(U)}),u.call(e,M,C,...O)}),s&&(e.directoryExists=M=>{const C=t(M),O=m.get(C);if(O!==void 0)return O;const U=s.call(e,M);return m.set(C,!!U),U},l&&(e.createDirectory=M=>{const C=t(M);m.delete(C),l.call(e,M)})),{originalReadFile:i,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:l,originalWriteFile:u,getSourceFileWithCache:R,readFileWithCache:T}}function pxe(e,t,r){let i;return i=qr(i,e.getConfigFileParsingDiagnostics()),i=qr(i,e.getOptionsDiagnostics(r)),i=qr(i,e.getSyntacticDiagnostics(t,r)),i=qr(i,e.getGlobalDiagnostics(r)),i=qr(i,e.getSemanticDiagnostics(t,r)),Rf(e.getCompilerOptions())&&(i=qr(i,e.getDeclarationDiagnostics(t,r))),Ux(i||et)}function fxe(e,t){let r="";for(const i of e)r+=dJ(i,t);return r}function dJ(e,t){const r=`${lS(e)} TS${e.code}: ${W_(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:i,character:o}=ys(e.file,e.start),s=e.file.fileName;return`${eC(s,t.getCurrentDirectory(),u=>t.getCanonicalFileName(u))}(${i+1},${o+1}): `+r}return r}function mxe(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return N.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function p1(e,t){return t+e+qle}function _xe(e,t,r,i,o,s){const{line:l,character:u}=ys(e,t),{line:p,character:h}=ys(e,t+r),m=ys(e,e.text.length).line,y=p-l>=4;let T=(p+1+"").length;y&&(T=Math.max(Jle.length,T));let A="";for(let R=l;R<=p;R++){A+=s.getNewLine(),y&&l+1<R&&R<p-1&&(A+=i+p1(Jle.padStart(T),xJ)+RJ+s.getNewLine(),R=p-1);const M=K2(e,R,0),C=R<m?K2(e,R+1,0):e.text.length;let O=e.text.slice(M,C);if(O=O.trimEnd(),O=O.replace(/\t/g," "),A+=i+p1((R+1+"").padStart(T),xJ)+RJ,A+=O+s.getNewLine(),A+=i+p1("".padStart(T),xJ)+RJ,A+=o,R===l){const U=R===p?h:void 0;A+=O.slice(0,u).replace(/\S/g," "),A+=O.slice(u,U).replace(/./g,"~")}else R===p?A+=O.slice(0,h).replace(/./g,"~"):A+=O.replace(/./g,"~");A+=qle}return A}function pJ(e,t,r,i=p1){const{line:o,character:s}=ys(e,t),l=r?eC(e.fileName,r.getCurrentDirectory(),p=>r.getCanonicalFileName(p)):e.fileName;let u="";return u+=i(l,"\x1B[96m"),u+=":",u+=i(`${o+1}`,"\x1B[93m"),u+=":",u+=i(`${s+1}`,"\x1B[93m"),u}function jle(e,t){let r="";for(const i of e){if(i.file){const{file:o,start:s}=i;r+=pJ(o,s,t),r+=" - "}if(r+=p1(lS(i),mxe(i.category)),r+=p1(` 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+=_xe(i.file,i.start,i.length,"",mxe(i.category),t)),i.relatedInformation){r+=t.getNewLine();for(const{file:o,start:s,length:l,messageText:u}of i.relatedInformation)o&&(r+=t.getNewLine(),r+=vxe+pJ(o,s,t),r+=_xe(o,s,l,Kle,"\x1B[96m",t)),r+=t.getNewLine(),r+=Kle+W_(u,t.getNewLine())}r+=t.getNewLine()}return r}function W_(e,t,r=0){if(Mo(e))return e;if(e===void 0)return"";let i="";if(r){i+=t;for(let o=0;o<r;o++)i+=" "}if(i+=e.messageText,r++,e.next)for(const o of e.next)i+=W_(o,t,r);return i}function zw(e,t){return(Mo(e)?t:e.resolutionMode)||t}function Ule(e,t,r){return _J(e,Vw(e,t),r)}function fJ(e){var t;return Yl(e)?e.isTypeOnly:!!((t=e.importClause)!=null&&t.isTypeOnly)}function mJ(e,t,r){return _J(e,t,r)}function _J(e,t,r){var i;if((Mc(t.parent)||Yl(t.parent))&&fJ(t.parent)){const l=uD(t.parent.attributes);if(l)return l}if(t.parent.parent&&ag(t.parent.parent)){const s=uD(t.parent.parent.attributes);if(s)return s}if(r&&wu(r)===200)return t.parent.parent&&eu(t.parent.parent)||Td(t.parent,!1)?1:99;if(e.impliedNodeFormat===void 0)return;if(e.impliedNodeFormat!==99)return zp(kv(t.parent))?99:1;const o=(i=kv(t.parent))==null?void 0:i.parent;return o&&eu(o)?1:99}function uD(e,t){if(!e)return;if(Ne(e.elements)!==1){t==null||t(e,e.token===118?f.Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:f.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require);return}const r=e.elements[0];if(ls(r.name)){if(r.name.text!=="resolution-mode"){t==null||t(r.name,e.token===118?f.resolution_mode_is_the_only_valid_key_for_type_import_attributes:f.resolution_mode_is_the_only_valid_key_for_type_import_assertions);return}if(ls(r.value)){if(r.value.text!=="import"&&r.value.text!=="require"){t==null||t(r.value,f.resolution_mode_should_be_either_require_or_import);return}return r.value.text==="import"?99:1}}}function Hle(e){return e.text}function hJ(e,t,r,i,o){return{nameAndMode:m7,resolve:(s,l)=>iD(s,e,r,i,o,t,l)}}function gJ(e){return Mo(e)?e:lh(e.fileName)}function l7(e,t,r,i,o){return{nameAndMode:yxe,resolve:(s,l)=>hse(s,e,r,i,t,o,l)}}function Bw(e,t,r,i,o,s,l,u){if(e.length===0)return et;const p=[],h=new Map,m=u(t,r,i,s,l);for(const y of e){const T=m.nameAndMode.getName(y),A=m.nameAndMode.getMode(y,o,(r==null?void 0:r.commandLine.options)||i),R=kP(T,A);let M=h.get(R);M||h.set(R,M=m.resolve(T,A)),p.push(M)}return p}function vJ(e,t){return c7(void 0,e,(r,i)=>r&&t(r,i))}function c7(e,t,r,i){let o;return s(e,t,void 0);function s(l,u,p){if(i){const h=i(l,p);if(h)return h}return Xe(u,(h,m)=>{if(h&&(o!=null&&o.has(h.sourceFile.path)))return;const y=r(h,p,m);return y||!h?y:((o||(o=new Set)).add(h.sourceFile.path),s(h.commandLine.projectReferences,h.references,h))})}}function u7(e,t,r){const i=e.configFilePath?ai(e.configFilePath):t;return $r(i,`__lib_node_modules_lookup_${r}__.ts`)}function yJ(e){const t=e.split(".");let r=t[1],i=2;for(;t[i]&&t[i]!=="d";)r+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+r}function hxe(e){const t=lh(e.fileName),r=hF.get(t);return{libName:t,libFileName:r}}function D0(e){switch(e==null?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function dD(e){return e.pos!==void 0}function XP(e,t){var r,i,o,s;const l=N.checkDefined(e.getSourceFileByPath(t.file)),{kind:u,index:p}=t;let h,m,y,T;switch(u){case 3:const A=Vw(l,p);if(y=(i=(r=e.getResolvedModule(l,A.text,e.getModeForUsageLocation(l,A)))==null?void 0:r.resolvedModule)==null?void 0:i.packageId,A.pos===-1)return{file:l,packageId:y,text:A.text};h=Pa(l.text,A.pos),m=A.end;break;case 4:({pos:h,end:m}=l.referencedFiles[p]);break;case 5:({pos:h,end:m,resolutionMode:T}=l.typeReferenceDirectives[p]),y=(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:h,end:m}=l.libReferenceDirectives[p]);break;default:return N.assertNever(u)}return{file:l,pos:h,end:m,packageId:y}}function bJ(e,t,r,i,o,s,l,u,p,h){if(!e||u!=null&&u()||!Hm(e.getRootFileNames(),t))return!1;let m;if(!Hm(e.getProjectReferences(),h,M)||e.getSourceFiles().some(A))return!1;const y=e.getMissingFilePaths();if(y&&zc(y,o))return!1;const T=e.getCompilerOptions();if(!iU(T,r)||e.resolvedLibReferences&&zc(e.resolvedLibReferences,(O,U)=>l(U)))return!1;if(T.configFile&&r.configFile)return T.configFile.text===r.configFile.text;return!0;function A(O){return!R(O)||s(O.path)}function R(O){return O.version===i(O.resolvedPath,O.fileName)}function M(O,U,K){return JV(O,U)&&C(e.getResolvedProjectReferences()[K],O)}function C(O,U){if(O){if(Or(m,O))return!0;const Q=pD(U),V=p(Q);return!V||O.commandLine.options.configFile!==V.options.configFile||!Hm(O.commandLine.fileNames,V.fileNames)?!1:((m||(m=[])).push(O),!Xe(O.references,(se,G)=>!C(se,O.commandLine.projectReferences[G])))}const K=pD(U);return!p(K)}}function $S(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function Gw(e,t,r,i){const o=EJ(e,t,r,i);return typeof o=="object"?o.impliedNodeFormat:o}function EJ(e,t,r,i){switch(pd(i)){case 3:case 99:return Sc(e,[".d.mts",".mts",".mjs"])?99:Sc(e,[".d.cts",".cts",".cjs"])?1:Sc(e,[".d.ts",".ts",".tsx",".js",".jsx"])?o():void 0;default:return}function o(){const s=bw(t,r,i),l=[];s.failedLookupLocations=l,s.affectingLocations=l;const u=Ew(e,s);return{impliedNodeFormat:(u==null?void 0:u.contents.packageJsonContent.type)==="module"?99:1,packageJsonLocations:l,packageJsonScope:u}}}function RUe(e,t){return e?Zx(e.getCompilerOptions(),t,vF):!1}function DUe(e,t,r,i,o,s){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:o,typeScriptVersion:s}}function d7(e,t,r,i,o){var s,l,u,p,h,m,y,T,A,R,M,C,O,U,K,Q;const V=To(e)?DUe(e,t,r,i,o):e,{rootNames:se,options:G,configFileParsingDiagnostics:ne,projectReferences:he,typeScriptVersion:ye}=V;let{oldProgram:Y}=V;const X=Sd(()=>Pm("ignoreDeprecations",f.Invalid_value_for_ignoreDeprecations));let oe,pe,Ce,de,ie,ve,Le;const Ue=new Map;let Ee=$p();const De={},Me={};let We=_I(),At,Se,je,ot,Bt,vt,$e,It,tn,rn;const Mn=typeof G.maxNodeModuleJsDepth=="number"?G.maxNodeModuleJsDepth:0;let $n=0;const gn=new Map,Qt=new Map;(s=sr)==null||s.push(sr.Phase.Program,"createProgram",{configFilePath:G.configFilePath,rootDir:G.rootDir},!0),rl("beforeProgram");const Yt=V.host||Vle(G),vi=f7(Yt);let so=G.noLib;const Wi=Sd(()=>Yt.getDefaultLibFileName(G)),Co=Yt.getDefaultLibLocation?Yt.getDefaultLibLocation():ai(Wi()),Ln=ER(),Ci=Yt.getCurrentDirectory(),Ar=JC(G),sn=mk(G,Ar),tt=new Map;let zt,Dn,ci;const yi=Yt.hasInvalidatedResolutions||qm;Yt.resolveModuleNameLiterals?(ci=Yt.resolveModuleNameLiterals.bind(Yt),Dn=(l=Yt.getModuleResolutionCache)==null?void 0:l.call(Yt)):Yt.resolveModuleNames?(ci=(ze,Ze,Mt,jt,bn,Qn)=>Yt.resolveModuleNames(ze.map(Hle),Ze,Qn==null?void 0:Qn.map(Hle),Mt,jt,bn).map(vn=>vn?vn.extension!==void 0?{resolvedModule:vn}:{resolvedModule:{...vn,extension:XC(vn.resolvedFileName)}}:Xle),Dn=(u=Yt.getModuleResolutionCache)==null?void 0:u.call(Yt)):(Dn=rD(Ci,te,G),ci=(ze,Ze,Mt,jt,bn)=>Bw(ze,Ze,Mt,jt,bn,Yt,Dn,hJ));let Qi;if(Yt.resolveTypeReferenceDirectiveReferences)Qi=Yt.resolveTypeReferenceDirectiveReferences.bind(Yt);else if(Yt.resolveTypeReferenceDirectives)Qi=(ze,Ze,Mt,jt,bn)=>Yt.resolveTypeReferenceDirectives(ze.map(gJ),Ze,Mt,jt,bn==null?void 0:bn.impliedNodeFormat).map(Qn=>({resolvedTypeReferenceDirective:Qn}));else{const ze=RF(Ci,te,void 0,Dn==null?void 0:Dn.getPackageJsonInfoCache(),Dn==null?void 0:Dn.optionsToRedirectsKey);Qi=(Ze,Mt,jt,bn,Qn)=>Bw(Ze,Mt,jt,bn,Qn,Yt,ze,l7)}const Io=Yt.hasInvalidatedLibResolutions||qm;let fa;if(Yt.resolveLibrary)fa=Yt.resolveLibrary.bind(Yt);else{const ze=rD(Ci,te,G,Dn==null?void 0:Dn.getPackageJsonInfoCache());fa=(Ze,Mt,jt)=>DF(Ze,Mt,jt,Yt,ze)}const ka=new Map;let Tn=new Map,wn=$p(),He=!1;const mt=new Map;let ft=new Map;const Ct=Yt.useCaseSensitiveFileNames()?new Map:void 0;let le,Fe,pt,j;const it=!!((p=Yt.useSourceOfProjectReferenceRedirect)!=null&&p.call(Yt))&&!G.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Rt,fileExists:Ye,directoryExists:_t}=NUe({compilerHost:Yt,getSymlinkCache:j_,useSourceOfProjectReferenceRedirect:it,toPath:ir,getResolvedProjectReferences:ko,getSourceOfProjectReferenceRedirect:Nd,forEachResolvedProjectReference:jd}),Gt=Yt.readFile.bind(Yt);(h=sr)==null||h.push(sr.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!Y});const yn=RUe(Y,G);(m=sr)==null||m.pop();let fn;if((y=sr)==null||y.push(sr.Phase.Program,"tryReuseStructureFromOldProgram",{}),fn=xo(),(T=sr)==null||T.pop(),fn!==2){if(oe=[],pe=[],he&&(le||(le=he.map(Vt)),se.length&&(le==null||le.forEach((ze,Ze)=>{if(!ze)return;const Mt=Ps(ze.commandLine.options);if(it){if(Mt||wu(ze.commandLine.options)===0)for(const jt of ze.commandLine.fileNames)Ot(jt,{kind:1,index:Ze})}else if(Mt)Ot(_0(Mt,".d.ts"),{kind:2,index:Ze});else if(wu(ze.commandLine.options)===0){const jt=Sd(()=>cD(ze.commandLine,!Yt.useCaseSensitiveFileNames()));for(const bn of ze.commandLine.fileNames)!Su(bn)&&!Il(bn,".json")&&Ot(JP(bn,ze.commandLine,!Yt.useCaseSensitiveFileNames(),jt),{kind:2,index:Ze})}}))),(A=sr)==null||A.push(sr.Phase.Program,"processRootFiles",{count:se.length}),Xe(se,(ze,Ze)=>Us(ze,!1,!1,{kind:0,index:Ze})),(R=sr)==null||R.pop(),Se??(Se=se.length?IF(G,Yt):et),je=_I(),Se.length){(M=sr)==null||M.push(sr.Phase.Program,"processTypeReferences",{count:Se.length});const ze=G.configFilePath?ai(G.configFilePath):Ci,Ze=$r(ze,fD),Mt=Ri(Se,Ze);for(let jt=0;jt<Se.length;jt++)je.set(Se[jt],void 0,Mt[jt]),Bu(Se[jt],void 0,Mt[jt],{kind:8,typeReference:Se[jt],packageId:(O=(C=Mt[jt])==null?void 0:C.resolvedTypeReferenceDirective)==null?void 0:O.packageId});(U=sr)==null||U.pop()}if(se.length&&!so){const ze=Wi();!G.lib&&ze?Us(ze,!0,!1,{kind:6}):Xe(G.lib,(Ze,Mt)=>{Us(Ap(Ze),!0,!1,{kind:6,index:Mt})})}Ce=Sv(oe,Pi).concat(pe),oe=void 0,pe=void 0}if(Y&&Yt.onReleaseOldSourceFile){const ze=Y.getSourceFiles();for(const Ze of ze){const Mt=ml(Ze.resolvedPath);(yn||!Mt||Mt.impliedNodeFormat!==Ze.impliedNodeFormat||Ze.resolvedPath===Ze.path&&Mt.resolvedPath!==Ze.path)&&Yt.onReleaseOldSourceFile(Ze,Y.getCompilerOptions(),!!ml(Ze.path))}Yt.getParsedCommandLine||Y.forEachResolvedProjectReference(Ze=>{V_(Ze.sourceFile.path)||Yt.onReleaseOldSourceFile(Ze.sourceFile,Y.getCompilerOptions(),!1)})}Y&&Yt.onReleaseParsedCommandLine&&c7(Y.getProjectReferences(),Y.getResolvedProjectReferences(),(ze,Ze,Mt)=>{const jt=(Ze==null?void 0:Ze.commandLine.projectReferences[Mt])||Y.getProjectReferences()[Mt],bn=pD(jt);Fe!=null&&Fe.has(ir(bn))||Yt.onReleaseParsedCommandLine(bn,ze,Y.getCompilerOptions())}),Y=void 0,Bt=void 0,$e=void 0,tn=void 0;const hn={getRootFileNames:()=>se,getSourceFile:Ca,getSourceFileByPath:ml,getSourceFiles:()=>Ce,getMissingFilePaths:()=>ft,getModuleResolutionCache:()=>Dn,getFilesByNameMap:()=>mt,getCompilerOptions:()=>G,getSyntacticDiagnostics:lc,getOptionsDiagnostics:Mr,getGlobalDiagnostics:Sl,getSemanticDiagnostics:Nl,getCachedSemanticDiagnostics:cl,getSuggestionDiagnostics:we,getDeclarationDiagnostics:js,getBindAndCheckDiagnostics:wo,getProgramDiagnostics:nn,getTypeChecker:ho,getClassifiableNames:vo,getCommonSourceDirectory:Vr,emit:da,getCurrentDirectory:()=>Ci,getNodeCount:()=>ho().getNodeCount(),getIdentifierCount:()=>ho().getIdentifierCount(),getSymbolCount:()=>ho().getSymbolCount(),getTypeCount:()=>ho().getTypeCount(),getInstantiationCount:()=>ho().getInstantiationCount(),getRelationCacheSizes:()=>ho().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>At,getResolvedTypeReferenceDirectives:()=>We,getAutomaticTypeDirectiveNames:()=>Se,getAutomaticTypeDirectiveResolutions:()=>je,isSourceFileFromExternalLibrary:gl,isSourceFileDefaultLibrary:cu,getModeForUsageLocation:ff,getModeForResolutionAtIndex:Xg,getSourceFileFromReference:sm,getLibFileFromReference:wc,sourceFileToPackageName:Tn,redirectTargetsMap:wn,usesUriStyleNodeCoreModules:He,resolvedModules:vt,resolvedTypeReferenceDirectiveNames:It,resolvedLibReferences:ot,getResolvedModule:q,getResolvedModuleFromModuleSpecifier:Oe,getResolvedTypeReferenceDirective:Lt,forEachResolvedModule:L,forEachResolvedTypeReferenceDirective:me,getCurrentPackagesMap:()=>rn,typesPackageExists:Be,packageBundlesTypes:ke,isEmittedFile:E1,getConfigFileParsingDiagnostics:jc,getProjectReferences:cs,getResolvedProjectReferences:ko,getProjectReferenceRedirect:Gl,getResolvedProjectReferenceToRedirect:df,getResolvedProjectReferenceByPath:V_,forEachResolvedProjectReference:jd,isSourceOfProjectReferenceRedirect:kf,emitBuildInfo:Ql,fileExists:Ye,readFile:Gt,directoryExists:_t,getSymlinkCache:j_,realpath:(K=Yt.realpath)==null?void 0:K.bind(Yt),useCaseSensitiveFileNames:()=>Yt.useCaseSensitiveFileNames(),getCanonicalFileName:te,getFileIncludeReasons:()=>Ee,structureIsReused:fn,writeFile:Fs};return Rt(),At==null||At.forEach(ze=>{switch(ze.kind){case 1:return Ln.add(ii(ze.file&&ml(ze.file),ze.fileProcessingReason,ze.diagnostic,ze.args||et));case 0:const{file:Ze,pos:Mt,end:jt}=XP(hn,ze.reason);return Ln.add($c(Ze,N.checkDefined(Mt),N.checkDefined(jt)-Mt,ze.diagnostic,...ze.args||et));case 2:return ze.diagnostics.forEach(bn=>Ln.add(bn));default:N.assertNever(ze)}}),W(),rl("afterProgram"),Qp("Program","beforeProgram","afterProgram"),(Q=sr)==null||Q.pop(),hn;function q(ze,Ze,Mt){var jt;return(jt=vt==null?void 0:vt.get(ze.path))==null?void 0:jt.get(Ze,Mt)}function Oe(ze){const Ze=Un(ze);return N.assertIsDefined(Ze,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),q(Ze,ze.text,ff(Ze,ze))}function Lt(ze,Ze,Mt){var jt;return(jt=It==null?void 0:It.get(ze.path))==null?void 0:jt.get(Ze,Mt)}function L(ze,Ze){J(vt,ze,Ze)}function me(ze,Ze){J(It,ze,Ze)}function J(ze,Ze,Mt){var jt;Mt?(jt=ze==null?void 0:ze.get(Mt.path))==null||jt.forEach((bn,Qn,vn)=>Ze(bn,Qn,vn,Mt.path)):ze==null||ze.forEach((bn,Qn)=>bn.forEach((vn,Zn,_i)=>Ze(vn,Zn,_i,Qn)))}function fe(){return rn||(rn=new Map,L(({resolvedModule:ze})=>{ze!=null&&ze.packageId&&rn.set(ze.packageId.name,ze.extension===".d.ts"||!!rn.get(ze.packageId.name))}),rn)}function Be(ze){return fe().has(PF(ze))}function ke(ze){return!!fe().get(ze)}function Tt(ze){var Ze;(Ze=ze.resolutionDiagnostics)!=null&&Ze.length&&(At??(At=[])).push({kind:2,diagnostics:ze.resolutionDiagnostics})}function kt(ze,Ze,Mt,jt){if(Yt.resolveModuleNameLiterals||!Yt.resolveModuleNames)return Tt(Mt);if(!Dn||Xc(Ze))return;const bn=go(ze.originalFileName,Ci),Qn=ai(bn),vn=Gn(ze),Zn=Dn.getFromNonRelativeNameCache(Ze,jt,Qn,vn);Zn&&Tt(Zn)}function en(ze,Ze,Mt){var jt,bn;if(!ze.length)return et;const Qn=go(Ze.originalFileName,Ci),vn=Gn(Ze);(jt=sr)==null||jt.push(sr.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Qn}),rl("beforeResolveModule");const Zn=ci(ze,Qn,vn,G,Ze,Mt);return rl("afterResolveModule"),Qp("ResolveModule","beforeResolveModule","afterResolveModule"),(bn=sr)==null||bn.pop(),Zn}function En(ze,Ze,Mt){var jt,bn;if(!ze.length)return[];const Qn=Mo(Ze)?void 0:Ze,vn=Mo(Ze)?Ze:go(Ze.originalFileName,Ci),Zn=Qn&&Gn(Qn);(jt=sr)==null||jt.push(sr.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:vn}),rl("beforeResolveTypeReference");const _i=Qi(ze,vn,Zn,G,Qn,Mt);return rl("afterResolveTypeReference"),Qp("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(bn=sr)==null||bn.pop(),_i}function Gn(ze){const Ze=df(ze.originalFileName);if(Ze||!Su(ze.originalFileName))return Ze;const Mt=qn(ze.path);if(Mt)return Mt;if(!Yt.realpath||!G.preserveSymlinks||!ze.originalFileName.includes(Ih))return;const jt=ir(Yt.realpath(ze.originalFileName));return jt===ze.path?void 0:qn(jt)}function qn(ze){const Ze=Nd(ze);if(Mo(Ze))return df(Ze);if(Ze)return jd(Mt=>{const jt=Ps(Mt.commandLine.options);if(jt)return ir(jt)===ze?Mt:void 0})}function Pi(ze,Ze){return nl(xi(ze),xi(Ze))}function xi(ze){if(gm(Co,ze.fileName,!1)){const Ze=ic(ze.fileName);if(Ze==="lib.d.ts"||Ze==="lib.es6.d.ts")return 0;const Mt=kx(XN(Ze,"lib."),".d.ts"),jt=pw.indexOf(Mt);if(jt!==-1)return jt+1}return pw.length+2}function ir(ze){return il(ze,Ci,te)}function Vr(){if(ie===void 0){const ze=mn(Ce,Ze=>xS(Ze,hn));ie=KP(G,()=>eo(ze,Ze=>Ze.isDeclarationFile?void 0:Ze.fileName),Ci,te,Ze=>Ft(ze,Ze))}return ie}function vo(){var ze;if(!Le){ho(),Le=new Set;for(const Ze of Ce)(ze=Ze.classifiableNames)==null||ze.forEach(Mt=>Le.add(Mt))}return Le}function Mi(ze,Ze){if(fn===0&&!Ze.ambientModuleNames.length)return en(ze,Ze,void 0);let Mt,jt,bn;const Qn=Xle,vn=Y&&Y.getSourceFile(Ze.fileName);for(let ni=0;ni<ze.length;ni++){const fr=ze[ni];if(Ze===vn&&!yi(Ze.path)){const Ja=Y==null?void 0:Y.getResolvedModule(Ze,fr.text,ff(Ze,fr));if(Ja!=null&&Ja.resolvedModule){Vg(G,Yt)&&bo(Yt,Ja.resolvedModule.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,fr.text,go(Ze.originalFileName,Ci),Ja.resolvedModule.resolvedFileName,Ja.resolvedModule.packageId&&ky(Ja.resolvedModule.packageId)),(jt??(jt=new Array(ze.length)))[ni]=Ja,(bn??(bn=[])).push(fr);continue}}let Qo=!1;Or(Ze.ambientModuleNames,fr.text)?(Qo=!0,Vg(G,Yt)&&bo(Yt,f.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,fr.text,go(Ze.originalFileName,Ci))):Qo=cr(fr),Qo?(jt||(jt=new Array(ze.length)))[ni]=Qn:(Mt??(Mt=[])).push(fr)}const Zn=Mt&&Mt.length?en(Mt,Ze,bn):et;if(!jt)return N.assert(Zn.length===ze.length),Zn;let _i=0;for(let ni=0;ni<jt.length;ni++)jt[ni]||(jt[ni]=Zn[_i],_i++);return N.assert(_i===Zn.length),jt;function cr(ni){var fr;const Qo=(fr=Y==null?void 0:Y.getResolvedModule(Ze,ni.text,ff(Ze,ni)))==null?void 0:fr.resolvedModule,Ja=Qo&&Y.getSourceFile(Qo.resolvedFileName);if(Qo&&Ja)return!1;const Zu=Ue.get(ni.text);return Zu?(Vg(G,Yt)&&bo(Yt,f.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,ni.text,Zu),!0):!1}}function Ri(ze,Ze){var Mt;if(fn===0)return En(ze,Ze,void 0);let jt,bn,Qn;const vn=Mo(Ze)?void 0:Ze,Zn=Mo(Ze)?void 0:Y&&Y.getSourceFile(Ze.fileName),_i=Mo(Ze)?!yi(ir(Ze)):Ze===Zn&&!yi(Ze.path);for(let fr=0;fr<ze.length;fr++){const Qo=ze[fr];if(_i){const Ja=gJ(Qo),Zu=zw(Qo,vn==null?void 0:vn.impliedNodeFormat),fu=Mo(Ze)?(Mt=Y==null?void 0:Y.getAutomaticTypeDirectiveResolutions())==null?void 0:Mt.get(Ja,Zu):Y==null?void 0:Y.getResolvedTypeReferenceDirective(Ze,Ja,Zu);if(fu!=null&&fu.resolvedTypeReferenceDirective){Vg(G,Yt)&&bo(Yt,fu.resolvedTypeReferenceDirective.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,Ja,Mo(Ze)?Ze:go(Ze.originalFileName,Ci),fu.resolvedTypeReferenceDirective.resolvedFileName,fu.resolvedTypeReferenceDirective.packageId&&ky(fu.resolvedTypeReferenceDirective.packageId)),(bn??(bn=new Array(ze.length)))[fr]=fu,(Qn??(Qn=[])).push(Qo);continue}}(jt??(jt=[])).push(Qo)}if(!jt)return bn||et;const cr=En(jt,Ze,Qn);if(!bn)return N.assert(cr.length===ze.length),cr;let ni=0;for(let fr=0;fr<bn.length;fr++)bn[fr]||(bn[fr]=cr[ni],ni++);return N.assert(ni===cr.length),bn}function Jr(){return!c7(Y.getProjectReferences(),Y.getResolvedProjectReferences(),(ze,Ze,Mt)=>{const jt=(Ze?Ze.commandLine.projectReferences:he)[Mt],bn=Vt(jt);return ze?!bn||bn.sourceFile!==ze.sourceFile||!Hm(ze.commandLine.fileNames,bn.commandLine.fileNames):bn!==void 0},(ze,Ze)=>{const Mt=Ze?V_(Ze.sourceFile.path).commandLine.projectReferences:he;return!Hm(ze,Mt,JV)})}function xo(){var ze;if(!Y)return 0;const Ze=Y.getCompilerOptions();if(I4(Ze,G))return 0;const Mt=Y.getRootFileNames();if(!Hm(Mt,se)||!Jr())return 0;he&&(le=he.map(Vt));const jt=[],bn=[];if(fn=2,zc(Y.getMissingFilePaths(),cr=>Yt.fileExists(cr)))return 0;const Qn=Y.getSourceFiles();let vn;(cr=>{cr[cr.Exists=0]="Exists",cr[cr.Modified=1]="Modified"})(vn||(vn={}));const Zn=new Map;for(const cr of Qn){const ni=na(cr.fileName,Dn,Yt,G);let fr=Yt.getSourceFileByPath?Yt.getSourceFileByPath(cr.fileName,cr.resolvedPath,ni,void 0,yn):Yt.getSourceFile(cr.fileName,ni,void 0,yn);if(!fr)return 0;fr.packageJsonLocations=(ze=ni.packageJsonLocations)!=null&&ze.length?ni.packageJsonLocations:void 0,fr.packageJsonScope=ni.packageJsonScope,N.assert(!fr.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let Qo;if(cr.redirectInfo){if(fr!==cr.redirectInfo.unredirected)return 0;Qo=!1,fr=cr}else if(Y.redirectTargetsMap.has(cr.path)){if(fr!==cr)return 0;Qo=!1}else Qo=fr!==cr;fr.path=cr.path,fr.originalFileName=cr.originalFileName,fr.resolvedPath=cr.resolvedPath,fr.fileName=cr.fileName;const Ja=Y.sourceFileToPackageName.get(cr.path);if(Ja!==void 0){const Zu=Zn.get(Ja),fu=Qo?1:0;if(Zu!==void 0&&fu===1||Zu===1)return 0;Zn.set(Ja,fu)}if(Qo)cr.impliedNodeFormat!==fr.impliedNodeFormat?fn=1:Hm(cr.libReferenceDirectives,fr.libReferenceDirectives,vc)?cr.hasNoDefaultLib!==fr.hasNoDefaultLib?fn=1:Hm(cr.referencedFiles,fr.referencedFiles,vc)?(ip(fr),Hm(cr.imports,fr.imports,Es)&&Hm(cr.moduleAugmentations,fr.moduleAugmentations,Es)?(cr.flags&12582912)!==(fr.flags&12582912)?fn=1:Hm(cr.typeReferenceDirectives,fr.typeReferenceDirectives,vc)||(fn=1):fn=1):fn=1:fn=1,bn.push(fr);else if(yi(cr.path))fn=1,bn.push(fr);else for(const Zu of cr.ambientModuleNames)Ue.set(Zu,cr.fileName);jt.push(fr)}if(fn!==2)return fn;for(const cr of bn){const ni=gxe(cr),fr=Mi(ni,cr);($e??($e=new Map)).set(cr.path,fr),KV(ni,fr,Yg=>Y.getResolvedModule(cr,Yg.text,ff(cr,Yg)),Mre)&&(fn=1);const Ja=cr.typeReferenceDirectives,Zu=Ri(Ja,cr);(tn??(tn=new Map)).set(cr.path,Zu),KV(Ja,Zu,Yg=>Y.getResolvedTypeReferenceDirective(cr,gJ(Yg),zw(Yg,cr.impliedNodeFormat)),Lre)&&(fn=1)}if(fn!==2)return fn;if(Cre(Ze,G)||Y.resolvedLibReferences&&zc(Y.resolvedLibReferences,(cr,ni)=>dg(ni).actual!==cr.actual))return 1;if(Yt.hasChangedAutomaticTypeDirectiveNames){if(Yt.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Se=IF(G,Yt),!Hm(Y.getAutomaticTypeDirectiveNames(),Se))return 1;ft=Y.getMissingFilePaths(),N.assert(jt.length===Y.getSourceFiles().length);for(const cr of jt)mt.set(cr.path,cr);return Y.getFilesByNameMap().forEach((cr,ni)=>{if(!cr){mt.set(ni,cr);return}if(cr.path===ni){Y.isSourceFileFromExternalLibrary(cr)&&Qt.set(cr.path,!0);return}mt.set(ni,mt.get(cr.path))}),Ce=jt,Ee=Y.getFileIncludeReasons(),At=Y.getFileProcessingDiagnostics(),We=Y.getResolvedTypeReferenceDirectives(),Se=Y.getAutomaticTypeDirectiveNames(),je=Y.getAutomaticTypeDirectiveResolutions(),Tn=Y.sourceFileToPackageName,wn=Y.redirectTargetsMap,He=Y.usesUriStyleNodeCoreModules,vt=Y.resolvedModules,It=Y.resolvedTypeReferenceDirectiveNames,ot=Y.resolvedLibReferences,rn=Y.getCurrentPackagesMap(),2}function Nn(ze){return{getPrependNodes:Vs,getCanonicalFileName:te,getCommonSourceDirectory:hn.getCommonSourceDirectory,getCompilerOptions:hn.getCompilerOptions,getCurrentDirectory:()=>Ci,getSourceFile:hn.getSourceFile,getSourceFileByPath:hn.getSourceFileByPath,getSourceFiles:hn.getSourceFiles,getLibFileFromReference:hn.getLibFileFromReference,isSourceFileFromExternalLibrary:gl,getResolvedProjectReferenceToRedirect:df,getProjectReferenceRedirect:Gl,isSourceOfProjectReferenceRedirect:kf,getSymlinkCache:j_,writeFile:ze||Fs,isEmitBlocked:uu,readFile:Ze=>Yt.readFile(Ze),fileExists:Ze=>{const Mt=ir(Ze);return ml(Mt)?!0:ft.has(Mt)?!1:Yt.fileExists(Ze)},useCaseSensitiveFileNames:()=>Yt.useCaseSensitiveFileNames(),getBuildInfo:Ze=>{var Mt;return(Mt=hn.getBuildInfo)==null?void 0:Mt.call(hn,Ze)},getSourceFileFromReference:(Ze,Mt)=>hn.getSourceFileFromReference(Ze,Mt),redirectTargetsMap:wn,getFileIncludeReasons:hn.getFileIncludeReasons,createHash:ia(Yt,Yt.createHash)}}function Fs(ze,Ze,Mt,jt,bn,Qn){Yt.writeFile(ze,Ze,Mt,jt,bn,Qn)}function Ql(ze){var Ze,Mt;N.assert(!Ps(G)),(Ze=sr)==null||Ze.push(sr.Phase.Emit,"emitBuildInfo",{},!0),rl("beforeEmit");const jt=t7(r7,Nn(ze),void 0,Yq,!1,!0);return rl("afterEmit"),Qp("Emit","beforeEmit","afterEmit"),(Mt=sr)==null||Mt.pop(),jt}function ko(){return le}function cs(){return he}function Vs(){return TJ(he,(ze,Ze)=>{var Mt;return(Mt=le[Ze])==null?void 0:Mt.commandLine},ze=>{const Ze=ir(ze),Mt=ml(Ze);return Mt?Mt.text:mt.has(Ze)?void 0:Yt.readFile(Ze)},Yt)}function gl(ze){return!!Qt.get(ze.path)}function cu(ze){if(!ze.isDeclarationFile)return!1;if(ze.hasNoDefaultLib)return!0;if(!G.noLib)return!1;const Ze=Yt.useCaseSensitiveFileNames()?oS:$b;return G.lib?bt(G.lib,Mt=>Ze(ze.fileName,ot.get(Mt).actual)):Ze(ze.fileName,Wi())}function ho(){return ve||(ve=Bse(hn))}function da(ze,Ze,Mt,jt,bn,Qn){var vn,Zn;(vn=sr)==null||vn.push(sr.Phase.Emit,"emit",{path:ze==null?void 0:ze.path},!0);const _i=du(()=>Ts(hn,ze,Ze,Mt,jt,bn,Qn));return(Zn=sr)==null||Zn.pop(),_i}function uu(ze){return tt.has(ir(ze))}function Ts(ze,Ze,Mt,jt,bn,Qn,vn){if(!vn){const cr=SJ(ze,Ze,Mt,jt);if(cr)return cr}const Zn=ho().getEmitResolver(Ps(G)?void 0:Ze,jt);rl("beforeEmit");const _i=t7(Zn,Nn(Mt),Ze,Xq(G,Qn,bn),bn,!1,vn);return rl("afterEmit"),Qp("Emit","beforeEmit","afterEmit"),_i}function Ca(ze){return ml(ir(ze))}function ml(ze){return mt.get(ze)||void 0}function Lf(ze,Ze,Mt){return Ux(ze?Ze(ze,Mt):Do(hn.getSourceFiles(),jt=>(Mt&&Mt.throwIfCancellationRequested(),Ze(jt,Mt))))}function lc(ze,Ze){return Lf(ze,tu,Ze)}function Nl(ze,Ze){return Lf(ze,Tp,Ze)}function cl(ze){var Ze;return ze?(Ze=De.perFile)==null?void 0:Ze.get(ze.path):De.allDiagnostics}function wo(ze,Ze){return Ms(ze,Ze)}function nn(ze){var Ze;if(YC(ze,G,hn))return et;const Mt=Ln.getDiagnostics(ze.fileName);return(Ze=ze.commentDirectives)!=null&&Ze.length?Z(ze,ze.commentDirectives,Mt).diagnostics:Mt}function js(ze,Ze){const Mt=hn.getCompilerOptions();return!ze||Ps(Mt)?Sr(ze,Ze):Lf(ze,Di,Ze)}function tu(ze){return cd(ze)?(ze.additionalSyntacticDiagnostics||(ze.additionalSyntacticDiagnostics=un(ze)),So(ze.additionalSyntacticDiagnostics,ze.parseDiagnostics)):ze.parseDiagnostics}function du(ze){try{return ze()}catch(Ze){throw Ze instanceof zx&&(ve=void 0),Ze}}function Tp(ze,Ze){return So(p7(Ms(ze,Ze),G),nn(ze))}function Ms(ze,Ze){return jr(ze,Ze,De,xc)}function xc(ze,Ze){return du(()=>{if(YC(ze,G,hn))return et;const Mt=ho();N.assert(!!ze.bindDiagnostics);const bn=(ze.scriptKind===1||ze.scriptKind===2)&&gk(ze,G),Qn=bL(ze,G.checkJs),Zn=!(!!ze.checkJsDirective&&ze.checkJsDirective.enabled===!1)&&(ze.scriptKind===3||ze.scriptKind===4||ze.scriptKind===5||Qn||bn||ze.scriptKind===7);let _i=Zn?ze.bindDiagnostics:et,cr=Zn?Mt.getDiagnostics(ze,Ze):et;return Qn&&(_i=mn(_i,ni=>_7.has(ni.code)),cr=mn(cr,ni=>_7.has(ni.code))),ue(ze,Zn&&!Qn,_i,cr,bn?ze.jsDocDiagnostics:void 0)})}function ue(ze,Ze,...Mt){var jt;const bn=Cs(Mt);if(!Ze||!((jt=ze.commentDirectives)!=null&&jt.length))return bn;const{diagnostics:Qn,directives:vn}=Z(ze,ze.commentDirectives,bn);for(const Zn of vn.getUnusedExpectations())Qn.push(Kre(ze,Zn.range,f.Unused_ts_expect_error_directive));return Qn}function Z(ze,Ze,Mt){const jt=Ore(ze,Ze);return{diagnostics:Mt.filter(Qn=>Et(Qn,jt)===-1),directives:jt}}function we(ze,Ze){return du(()=>ho().getSuggestionDiagnostics(ze,Ze))}function Et(ze,Ze){const{file:Mt,start:jt}=ze;if(!Mt)return-1;const bn=Ng(Mt);let Qn=Vx(bn,jt).line-1;for(;Qn>=0;){if(Ze.markUsed(Qn))return Qn;const vn=Mt.text.slice(bn[Qn],bn[Qn+1]).trim();if(vn!==""&&!/^(\s*)\/\/(.*)$/.test(vn))return-1;Qn--}return-1}function un(ze){return du(()=>{const Ze=[];return Mt(ze,ze),RP(ze,Mt,jt),Ze;function Mt(Zn,_i){switch(_i.kind){case 169:case 172:case 174:if(_i.questionToken===Zn)return Ze.push(vn(Zn,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(_i.type===Zn)return Ze.push(vn(Zn,f.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(Zn.kind){case 273:if(Zn.isTypeOnly)return Ze.push(vn(_i,f._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(Zn.isTypeOnly)return Ze.push(vn(Zn,f._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(Zn.isTypeOnly)return Ze.push(vn(Zn,f._0_declarations_can_only_be_used_in_TypeScript_files,tp(Zn)?"import...type":"export...type")),"skip";break;case 271:return Ze.push(vn(Zn,f.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(Zn.isExportEquals)return Ze.push(vn(Zn,f.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(Zn.token===119)return Ze.push(vn(Zn,f.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const ni=pa(120);return N.assertIsDefined(ni),Ze.push(vn(Zn,f._0_declarations_can_only_be_used_in_TypeScript_files,ni)),"skip";case 267:const fr=Zn.flags&32?pa(145):pa(144);return N.assertIsDefined(fr),Ze.push(vn(Zn,f._0_declarations_can_only_be_used_in_TypeScript_files,fr)),"skip";case 265:return Ze.push(vn(Zn,f.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return Zn.body?void 0:(Ze.push(vn(Zn,f.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const Qo=N.checkDefined(pa(94));return Ze.push(vn(Zn,f._0_declarations_can_only_be_used_in_TypeScript_files,Qo)),"skip";case 235:return Ze.push(vn(Zn,f.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return Ze.push(vn(Zn.type,f.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return Ze.push(vn(Zn.type,f.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:N.fail()}}function jt(Zn,_i){if(NH(_i)){const cr=In(_i.modifiers,Eu);cr&&Ze.push(vn(cr,f.Decorators_are_not_valid_here))}else if(qS(_i)&&_i.modifiers){const cr=mi(_i.modifiers,Eu);if(cr>=0){if(Ao(_i)&&!G.experimentalDecorators)Ze.push(vn(_i.modifiers[cr],f.Decorators_are_not_valid_here));else if(Ac(_i)){const ni=mi(_i.modifiers,$A);if(ni>=0){const fr=mi(_i.modifiers,VW);if(cr>ni&&fr>=0&&cr<fr)Ze.push(vn(_i.modifiers[cr],f.Decorators_are_not_valid_here));else if(ni>=0&&cr<ni){const Qo=mi(_i.modifiers,Eu,ni);Qo>=0&&Ze.push(Ma(vn(_i.modifiers[Qo],f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),vn(_i.modifiers[cr],f.Decorator_used_before_export_here)))}}}}}switch(_i.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(Zn===_i.typeParameters)return Ze.push(Qn(Zn,f.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(Zn===_i.modifiers)return bn(_i.modifiers,_i.kind===243),"skip";break;case 172:if(Zn===_i.modifiers){for(const cr of Zn)Aa(cr)&&cr.kind!==126&&cr.kind!==129&&Ze.push(vn(cr,f.The_0_modifier_can_only_be_used_in_TypeScript_files,pa(cr.kind)));return"skip"}break;case 169:if(Zn===_i.modifiers&&bt(Zn,Aa))return Ze.push(Qn(Zn,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(Zn===_i.typeArguments)return Ze.push(Qn(Zn,f.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function bn(Zn,_i){for(const cr of Zn)switch(cr.kind){case 87:if(_i)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:Ze.push(vn(cr,f.The_0_modifier_can_only_be_used_in_TypeScript_files,pa(cr.kind)));break;case 126:case 95:case 90:case 129:}}function Qn(Zn,_i,...cr){const ni=Zn.pos;return $c(ze,ni,Zn.end-ni,_i,...cr)}function vn(Zn,_i,...cr){return Xf(ze,Zn,_i,...cr)}})}function Sr(ze,Ze){return jr(ze,Ze,Me,vr)}function vr(ze,Ze){return du(()=>{const Mt=ho().getEmitResolver(ze,Ze);return Lle(Nn(Ya),Mt,ze)||et})}function jr(ze,Ze,Mt,jt){var bn;const Qn=ze?(bn=Mt.perFile)==null?void 0:bn.get(ze.path):Mt.allDiagnostics;if(Qn)return Qn;const vn=jt(ze,Ze);return ze?(Mt.perFile||(Mt.perFile=new Map)).set(ze.path,vn):Mt.allDiagnostics=vn,vn}function Di(ze,Ze){return ze.isDeclarationFile?[]:Sr(ze,Ze)}function Mr(){return Ux(So(Ln.getGlobalDiagnostics(),Yo()))}function Yo(){if(!G.configFile)return et;let ze=Ln.getDiagnostics(G.configFile.fileName);return jd(Ze=>{ze=So(ze,Ln.getDiagnostics(Ze.sourceFile.fileName))}),ze}function Sl(){return se.length?Ux(ho().getGlobalDiagnostics().slice()):et}function jc(){return ne||et}function Us(ze,Ze,Mt,jt){Pe(ha(ze),Ze,Mt,void 0,jt)}function vc(ze,Ze){return ze.fileName===Ze.fileName}function Es(ze,Ze){return ze.kind===80?Ze.kind===80&&ze.escapedText===Ze.escapedText:Ze.kind===11&&ze.text===Ze.text}function Uc(ze,Ze){const Mt=w.createStringLiteral(ze),jt=w.createImportDeclaration(void 0,void 0,Mt,void 0);return UA(jt,2),Ha(Mt,jt),Ha(jt,Ze),Mt.flags&=-17,jt.flags&=-17,Mt}function ip(ze){if(ze.imports)return;const Ze=cd(ze),Mt=sc(ze);let jt,bn,Qn;if((rm(G)||Mt)&&!ze.isDeclarationFile){G.importHelpers&&(jt=[Uc(Vy,ze)]);const cr=O3(w3(G,ze),G);cr&&(jt||(jt=[])).push(Uc(cr,ze))}for(const cr of ze.statements)vn(cr,!1);(ze.flags&4194304||Ze)&&Zn(ze),ze.imports=jt||et,ze.moduleAugmentations=bn||et,ze.ambientModuleNames=Qn||et;return;function vn(cr,ni){if(TL(cr)){const fr=fR(cr);fr&&Na(fr)&&fr.text&&(!ni||!Xc(fr.text))&&(Gy(cr,!1),jt=Rn(jt,fr),!He&&$n===0&&!ze.isDeclarationFile&&(He=uo(fr.text,"node:")))}else if(Xl(cr)&&ku(cr)&&(ni||Qr(cr,128)||ze.isDeclarationFile)){cr.name.parent=cr;const fr=Qf(cr.name);if(Mt||ni&&!Xc(fr))(bn||(bn=[])).push(cr.name);else if(!ni){ze.isDeclarationFile&&(Qn||(Qn=[])).push(fr);const Qo=cr.body;if(Qo)for(const Ja of Qo.statements)vn(Ja,!0)}}}function Zn(cr){const ni=/import|require/g;for(;ni.exec(cr.text)!==null;){const fr=_i(cr,ni.lastIndex);Ze&&Td(fr,!0)||zp(fr)&&fr.arguments.length>=1&&ls(fr.arguments[0])?(Gy(fr,!1),jt=Rn(jt,fr.arguments[0])):Oy(fr)&&(Gy(fr,!1),jt=Rn(jt,fr.argument.literal))}}function _i(cr,ni){let fr=cr;const Qo=Ja=>{if(Ja.pos<=ni&&(ni<Ja.end||ni===Ja.end&&Ja.kind===1))return Ja};for(;;){const Ja=Ze&&Wp(fr)&&Xe(fr.jsDoc,Qo)||Uo(fr,Qo);if(!Ja)return fr;fr=Ja}}}function wc(ze){var Ze;const{libFileName:Mt}=hxe(ze),jt=Mt&&((Ze=ot==null?void 0:ot.get(Mt))==null?void 0:Ze.actual);return jt!==void 0?Ca(jt):void 0}function sm(ze,Ze){return _d(s7(Ze.fileName,ze.fileName),Ca)}function _d(ze,Ze,Mt,jt){if(vA(ze)){const bn=Yt.getCanonicalFileName(ze);if(!G.allowNonTsExtensions&&!Xe(Cs(sn),vn=>Il(bn,vn))){Mt&&(UE(bn)?Mt(f.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,ze):Mt(f.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,ze,"'"+Cs(Ar).join("', '")+"'"));return}const Qn=Ze(ze);if(Mt)if(Qn)D0(jt)&&bn===Yt.getCanonicalFileName(ml(jt.file).fileName)&&Mt(f.A_file_cannot_have_a_reference_to_itself);else{const vn=Gl(ze);vn?Mt(f.Output_file_0_has_not_been_built_from_source_file_1,vn,ze):Mt(f.File_0_not_found,ze)}return Qn}else{const bn=G.allowNonTsExtensions&&Ze(ze);if(bn)return bn;if(Mt&&G.allowNonTsExtensions){Mt(f.File_0_not_found,ze);return}const Qn=Xe(Ar[0],vn=>Ze(ze+vn));return Mt&&!Qn&&Mt(f.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,ze,"'"+Cs(Ar).join("', '")+"'"),Qn}}function Pe(ze,Ze,Mt,jt,bn){_d(ze,Qn=>$o(Qn,Ze,Mt,bn,jt),(Qn,...vn)=>Yr(void 0,bn,Qn,vn),bn)}function Ot(ze,Ze){return Pe(ze,!1,!1,void 0,Ze)}function Xn(ze,Ze,Mt){!D0(Mt)&&bt(Ee.get(Ze.path),D0)?Yr(Ze,Mt,f.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[Ze.fileName,ze]):Yr(Ze,Mt,f.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[ze,Ze.fileName])}function yo(ze,Ze,Mt,jt,bn,Qn,vn){var Zn;const _i=Ah.createRedirectedSourceFile({redirectTarget:ze,unredirected:Ze});return _i.fileName=Mt,_i.path=jt,_i.resolvedPath=bn,_i.originalFileName=Qn,_i.packageJsonLocations=(Zn=vn.packageJsonLocations)!=null&&Zn.length?vn.packageJsonLocations:void 0,_i.packageJsonScope=vn.packageJsonScope,Qt.set(jt,$n>0),_i}function $o(ze,Ze,Mt,jt,bn){var Qn,vn;(Qn=sr)==null||Qn.push(sr.Phase.Program,"findSourceFile",{fileName:ze,isDefaultLib:Ze||void 0,fileIncludeKind:z6[jt.kind]});const Zn=Zl(ze,Ze,Mt,jt,bn);return(vn=sr)==null||vn.pop(),Zn}function na(ze,Ze,Mt,jt){const bn=EJ(go(ze,Ci),Ze==null?void 0:Ze.getPackageJsonInfoCache(),Mt,jt),Qn=os(jt),vn=fk(jt);return typeof bn=="object"?{...bn,languageVersion:Qn,setExternalModuleIndicator:vn,jsDocParsingMode:Mt.jsDocParsingMode}:{languageVersion:Qn,impliedNodeFormat:bn,setExternalModuleIndicator:vn,jsDocParsingMode:Mt.jsDocParsingMode}}function Zl(ze,Ze,Mt,jt,bn){var Qn;const vn=ir(ze);if(it){let fr=Nd(vn);if(!fr&&Yt.realpath&&G.preserveSymlinks&&Su(ze)&&ze.includes(Ih)){const Qo=ir(Yt.realpath(ze));Qo!==vn&&(fr=Nd(Qo))}if(fr){const Qo=Mo(fr)?$o(fr,Ze,Mt,jt,bn):void 0;return Qo&&ul(Qo,vn,ze,void 0),Qo}}const Zn=ze;if(mt.has(vn)){const fr=mt.get(vn);if(yc(fr||void 0,jt),fr&&G.forceConsistentCasingInFileNames!==!1){const Qo=fr.fileName;ir(Qo)!==ir(ze)&&(ze=Gl(ze)||ze);const Zu=mV(Qo,Ci),fu=mV(ze,Ci);Zu!==fu&&Xn(ze,fr,jt)}return fr&&Qt.get(fr.path)&&$n===0?(Qt.set(fr.path,!1),G.noResolve||(Dh(fr,Ze),qg(fr)),G.noLib||Ud(fr),gn.set(fr.path,!1),lt(fr)):fr&&gn.get(fr.path)&&$n<Mn&&(gn.set(fr.path,!1),lt(fr)),fr||void 0}let _i;if(D0(jt)&&!it){const fr=ec(ze);if(fr){if(Ps(fr.commandLine.options))return;const Qo=Hc(fr,ze);ze=Qo,_i=ir(Qo)}}const cr=na(ze,Dn,Yt,G),ni=Yt.getSourceFile(ze,cr,fr=>Yr(void 0,jt,f.Cannot_read_file_0_Colon_1,[ze,fr]),yn);if(bn){const fr=ky(bn),Qo=ka.get(fr);if(Qo){const Ja=yo(Qo,ni,ze,vn,ir(ze),Zn,cr);return wn.add(Qo.path,ze),ul(Ja,vn,ze,_i),yc(Ja,jt),Tn.set(vn,D4(bn)),pe.push(Ja),Ja}else ni&&(ka.set(fr,ni),Tn.set(vn,D4(bn)))}if(ul(ni,vn,ze,_i),ni){if(Qt.set(vn,$n>0),ni.fileName=ze,ni.path=vn,ni.resolvedPath=ir(ze),ni.originalFileName=Zn,ni.packageJsonLocations=(Qn=cr.packageJsonLocations)!=null&&Qn.length?cr.packageJsonLocations:void 0,ni.packageJsonScope=cr.packageJsonScope,yc(ni,jt),Yt.useCaseSensitiveFileNames()){const fr=lh(vn),Qo=Ct.get(fr);Qo?Xn(ze,Qo,jt):Ct.set(fr,ni)}so=so||ni.hasNoDefaultLib&&!Mt,G.noResolve||(Dh(ni,Ze),qg(ni)),G.noLib||Ud(ni),lt(ni),Ze?oe.push(ni):pe.push(ni)}return ni}function yc(ze,Ze){ze&&Ee.add(ze.path,Ze)}function ul(ze,Ze,Mt,jt){jt?(vl(Mt,jt,ze),vl(Mt,Ze,ze||!1)):vl(Mt,Ze,ze)}function vl(ze,Ze,Mt){mt.set(Ze,Mt),Mt!==void 0?ft.delete(Ze):ft.set(Ze,ze)}function Gl(ze){const Ze=ec(ze);return Ze&&Hc(Ze,ze)}function ec(ze){if(!(!le||!le.length||Su(ze)||Il(ze,".json")))return df(ze)}function Hc(ze,Ze){const Mt=Ps(ze.commandLine.options);return Mt?_0(Mt,".d.ts"):JP(Ze,ze.commandLine,!Yt.useCaseSensitiveFileNames())}function df(ze){pt===void 0&&(pt=new Map,jd(Mt=>{ir(G.configFilePath)!==Mt.sourceFile.path&&Mt.commandLine.fileNames.forEach(jt=>pt.set(ir(jt),Mt.sourceFile.path))}));const Ze=pt.get(ir(ze));return Ze&&V_(Ze)}function jd(ze){return vJ(le,ze)}function Nd(ze){if(Su(ze))return j===void 0&&(j=new Map,jd(Ze=>{const Mt=Ps(Ze.commandLine.options);if(Mt){const jt=_0(Mt,".d.ts");j.set(ir(jt),!0)}else{const jt=Sd(()=>cD(Ze.commandLine,!Yt.useCaseSensitiveFileNames()));Xe(Ze.commandLine.fileNames,bn=>{if(!Su(bn)&&!Il(bn,".json")){const Qn=JP(bn,Ze.commandLine,!Yt.useCaseSensitiveFileNames(),jt);j.set(ir(Qn),bn)}})}})),j.get(ze)}function kf(ze){return it&&!!df(ze)}function V_(ze){if(Fe)return Fe.get(ze)||void 0}function Dh(ze,Ze){Xe(ze.referencedFiles,(Mt,jt)=>{Pe(s7(Mt.fileName,ze.fileName),Ze,!1,void 0,{kind:4,file:ze.path,index:jt})})}function qg(ze){const Ze=ze.typeReferenceDirectives;if(!Ze.length)return;const Mt=(tn==null?void 0:tn.get(ze.path))||Ri(Ze,ze),jt=_I();(It??(It=new Map)).set(ze.path,jt);for(let bn=0;bn<Ze.length;bn++){const Qn=ze.typeReferenceDirectives[bn],vn=Mt[bn],Zn=lh(Qn.fileName);jt.set(Zn,zw(Qn,ze.impliedNodeFormat),vn);const _i=Qn.resolutionMode||ze.impliedNodeFormat;Bu(Zn,_i,vn,{kind:5,file:ze.path,index:bn})}}function Bu(ze,Ze,Mt,jt){var bn,Qn;(bn=sr)==null||bn.push(sr.Phase.Program,"processTypeReferenceDirective",{directive:ze,hasResolved:!!Mt.resolvedTypeReferenceDirective,refKind:jt.kind,refPath:D0(jt)?jt.file:void 0}),Jg(ze,Ze,Mt,jt),(Qn=sr)==null||Qn.pop()}function Jg(ze,Ze,Mt,jt){var bn;Tt(Mt);const Qn=(bn=We.get(ze,Ze))==null?void 0:bn.resolvedTypeReferenceDirective;if(Qn&&Qn.primary)return;let vn=!0;const{resolvedTypeReferenceDirective:Zn}=Mt;if(Zn){if(Zn.isExternalLibraryImport&&$n++,Zn.primary)Pe(Zn.resolvedFileName,!1,!1,Zn.packageId,jt);else if(Qn){if(Zn.resolvedFileName!==Qn.resolvedFileName){const _i=Yt.readFile(Zn.resolvedFileName),cr=Ca(Qn.resolvedFileName);_i!==cr.text&&Yr(cr,jt,f.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[ze,Zn.resolvedFileName,Qn.resolvedFileName])}vn=!1}else Pe(Zn.resolvedFileName,!1,!1,Zn.packageId,jt);Zn.isExternalLibraryImport&&$n--}else Yr(void 0,jt,f.Cannot_find_type_definition_file_for_0,[ze]);vn&&We.set(ze,Ze,Mt)}function Ap(ze){const Ze=ot==null?void 0:ot.get(ze);if(Ze)return Ze.actual;const Mt=dg(ze);return(ot??(ot=new Map)).set(ze,Mt),Mt.actual}function dg(ze){var Ze,Mt,jt,bn,Qn;const vn=Bt==null?void 0:Bt.get(ze);if(vn)return vn;if(fn!==0&&Y&&!Io(ze)){const fr=(Ze=Y.resolvedLibReferences)==null?void 0:Ze.get(ze);if(fr){if(fr.resolution&&Vg(G,Yt)){const Qo=yJ(ze),Ja=u7(G,Ci,ze);bo(Yt,fr.resolution.resolvedModule?fr.resolution.resolvedModule.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,Qo,go(Ja,Ci),(Mt=fr.resolution.resolvedModule)==null?void 0:Mt.resolvedFileName,((jt=fr.resolution.resolvedModule)==null?void 0:jt.packageId)&&ky(fr.resolution.resolvedModule.packageId))}return(Bt??(Bt=new Map)).set(ze,fr),fr}}const Zn=yJ(ze),_i=u7(G,Ci,ze);(bn=sr)==null||bn.push(sr.Phase.Program,"resolveLibrary",{resolveFrom:_i}),rl("beforeResolveLibrary");const cr=fa(Zn,_i,G,ze);rl("afterResolveLibrary"),Qp("ResolveLibrary","beforeResolveLibrary","afterResolveLibrary"),(Qn=sr)==null||Qn.pop();const ni={resolution:cr,actual:cr.resolvedModule?cr.resolvedModule.resolvedFileName:$r(Co,ze)};return(Bt??(Bt=new Map)).set(ze,ni),ni}function Ud(ze){Xe(ze.libReferenceDirectives,(Ze,Mt)=>{const{libName:jt,libFileName:bn}=hxe(Ze);if(bn)Us(Ap(bn),!0,!0,{kind:7,file:ze.path,index:Mt});else{const Qn=kx(XN(jt,"lib."),".d.ts"),vn=KN(Qn,pw,tl),Zn=vn?f.Cannot_find_lib_definition_for_0_Did_you_mean_1:f.Cannot_find_lib_definition_for_0,_i=vn?[jt,vn]:[jt];(At||(At=[])).push({kind:0,reason:{kind:7,file:ze.path,index:Mt},diagnostic:Zn,args:_i})}})}function te(ze){return Yt.getCanonicalFileName(ze)}function lt(ze){var Ze;if(ip(ze),ze.imports.length||ze.moduleAugmentations.length){const Mt=gxe(ze),jt=($e==null?void 0:$e.get(ze.path))||Mi(Mt,ze);N.assert(jt.length===Mt.length);const bn=((Ze=Gn(ze))==null?void 0:Ze.commandLine.options)||G,Qn=_I();(vt??(vt=new Map)).set(ze.path,Qn);for(let vn=0;vn<Mt.length;vn++){const Zn=jt[vn].resolvedModule,_i=Mt[vn].text,cr=_J(ze,Mt[vn],bn);if(Qn.set(_i,cr,jt[vn]),kt(ze,_i,jt[vn],cr),!Zn)continue;const ni=Zn.isExternalLibraryImport,fr=!KC(Zn.extension),Qo=ni&&fr&&(!Zn.originalPath||x0(Zn.resolvedFileName)),Ja=Zn.resolvedFileName;ni&&$n++;const Zu=Qo&&$n>Mn,fu=Ja&&!AJ(bn,Zn,ze)&&!bn.noResolve&&vn<ze.imports.length&&!Zu&&!(fr&&!jy(bn))&&(lr(ze.imports[vn])||!(ze.imports[vn].flags&16777216));Zu?gn.set(ze.path,!0):fu&&$o(Ja,!1,!1,{kind:3,file:ze.path,index:vn},Zn.packageId),ni&&$n--}}}function Ft(ze,Ze){let Mt=!0;const jt=Yt.getCanonicalFileName(go(Ze,Ci));for(const bn of ze)bn.isDeclarationFile||Yt.getCanonicalFileName(go(bn.fileName,Ci)).indexOf(jt)!==0&&(oo(bn,f.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[bn.fileName,Ze]),Mt=!1);return Mt}function Vt(ze){Fe||(Fe=new Map);const Ze=pD(ze),Mt=ir(Ze),jt=Fe.get(Mt);if(jt!==void 0)return jt||void 0;let bn,Qn;if(Yt.getParsedCommandLine){if(bn=Yt.getParsedCommandLine(Ze),!bn){ul(void 0,Mt,Ze,void 0),Fe.set(Mt,!1);return}Qn=N.checkDefined(bn.options.configFile),N.assert(!Qn.path||Qn.path===Mt),ul(Qn,Mt,Ze,void 0)}else{const Zn=go(ai(Ze),Ci);if(Qn=Yt.getSourceFile(Ze,100),ul(Qn,Mt,Ze,void 0),Qn===void 0){Fe.set(Mt,!1);return}bn=cw(Qn,vi,Zn,void 0,Ze)}Qn.fileName=Ze,Qn.path=Mt,Qn.resolvedPath=Mt,Qn.originalFileName=Ze;const vn={commandLine:bn,sourceFile:Qn};return Fe.set(Mt,vn),bn.projectReferences&&(vn.references=bn.projectReferences.map(Vt)),vn}function W(){G.strictPropertyInitialization&&!dd(G,"strictNullChecks")&&us(f.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),G.exactOptionalPropertyTypes&&!dd(G,"strictNullChecks")&&us(f.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(G.isolatedModules||G.verbatimModuleSyntax)&&(G.out&&us(f.Option_0_cannot_be_specified_with_option_1,"out",G.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),G.outFile&&us(f.Option_0_cannot_be_specified_with_option_1,"outFile",G.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules")),G.inlineSourceMap&&(G.sourceMap&&us(f.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),G.mapRoot&&us(f.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),G.composite&&(G.declaration===!1&&us(f.Composite_projects_may_not_disable_declaration_emit,"declaration"),G.incremental===!1&&us(f.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const ze=Ps(G);if(G.tsBuildInfoFile?sP(G)||us(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):G.incremental&&!ze&&!G.configFilePath&&Ln.add(Ul(f.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),qt(),Oa(),G.composite){const vn=new Set(se.map(ir));for(const Zn of Ce)xS(Zn,hn)&&!vn.has(Zn.path)&&oo(Zn,f.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[Zn.fileName,G.configFilePath||""])}if(G.paths){for(const vn in G.paths)if(Is(G.paths,vn))if(uU(vn)||pu(!0,vn,f.Pattern_0_can_have_at_most_one_Asterisk_character,vn),To(G.paths[vn])){const Zn=G.paths[vn].length;Zn===0&&pu(!1,vn,f.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,vn);for(let _i=0;_i<Zn;_i++){const cr=G.paths[vn][_i],ni=typeof cr;ni==="string"?(uU(cr)||Ol(vn,_i,f.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,cr,vn),!G.baseUrl&&!Op(cr)&&!ZN(cr)&&Ol(vn,_i,f.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):Ol(vn,_i,f.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,cr,vn,ni)}}else pu(!1,vn,f.Substitutions_for_pattern_0_should_be_an_array,vn)}!G.sourceMap&&!G.inlineSourceMap&&(G.inlineSources&&us(f.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),G.sourceRoot&&us(f.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),G.out&&G.outFile&&us(f.Option_0_cannot_be_specified_with_option_1,"out","outFile"),G.mapRoot&&!(G.sourceMap||G.declarationMap)&&us(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),G.declarationDir&&(Rf(G)||us(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),ze&&us(f.Option_0_cannot_be_specified_with_option_1,"declarationDir",G.out?"out":"outFile")),G.declarationMap&&!Rf(G)&&us(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),G.lib&&G.noLib&&us(f.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),G.noImplicitUseStrict&&dd(G,"alwaysStrict")&&us(f.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");const Ze=os(G),Mt=In(Ce,vn=>sc(vn)&&!vn.isDeclarationFile);if(G.isolatedModules||G.verbatimModuleSyntax)G.module===0&&Ze<2&&G.isolatedModules&&us(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&&us(f.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,G.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Mt&&Ze<2&&G.module===0){const vn=vS(Mt,typeof Mt.externalModuleIndicator=="boolean"?Mt:Mt.externalModuleIndicator);Ln.add($c(Mt,vn.start,vn.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))us(f.Only_amd_and_system_modules_are_supported_alongside_0,G.out?"out":"outFile","module");else if(G.module===void 0&&Mt){const vn=vS(Mt,typeof Mt.externalModuleIndicator=="boolean"?Mt:Mt.externalModuleIndicator);Ln.add($c(Mt,vn.start,vn.length,f.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,G.out?"out":"outFile"))}}if(g0(G)&&(pd(G)===1?us(f.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):M3(G)||us(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){const vn=Vr();G.outDir&&vn===""&&Ce.some(Zn=>dh(Zn.fileName)>1)&&us(f.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}G.useDefineForClassFields&&Ze===0&&us(f.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),G.checkJs&&!jy(G)&&Ln.add(Ul(f.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),G.emitDeclarationOnly&&(Rf(G)||us(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),G.noEmit&&us(f.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),G.emitDecoratorMetadata&&!G.experimentalDecorators&&us(f.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),G.jsxFactory?(G.reactNamespace&&us(f.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(G.jsx===4||G.jsx===5)&&us(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",PP.get(""+G.jsx)),pI(G.jsxFactory,Ze)||Pm("jsxFactory",f.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,G.jsxFactory)):G.reactNamespace&&!Zp(G.reactNamespace,Ze)&&Pm("reactNamespace",f.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,G.reactNamespace),G.jsxFragmentFactory&&(G.jsxFactory||us(f.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(G.jsx===4||G.jsx===5)&&us(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",PP.get(""+G.jsx)),pI(G.jsxFragmentFactory,Ze)||Pm("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)&&us(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",PP.get(""+G.jsx)),G.jsxImportSource&&G.jsx===2&&us(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",PP.get(""+G.jsx)),G.preserveValueImports&&wu(G)<5&&us(f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"preserveValueImports");const jt=wu(G);G.verbatimModuleSyntax&&((jt===2||jt===3||jt===4)&&us(f.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),G.preserveValueImports&&Lm("preserveValueImports","verbatimModuleSyntax"),G.importsNotUsedAsValues&&Lm("importsNotUsedAsValues","verbatimModuleSyntax")),G.allowImportingTsExtensions&&!(G.noEmit||G.emitDeclarationOnly)&&Pm("allowImportingTsExtensions",f.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const bn=pd(G);if(G.resolvePackageJsonExports&&!BA(bn)&&us(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),G.resolvePackageJsonImports&&!BA(bn)&&us(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),G.customConditions&&!BA(bn)&&us(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),bn===100&&!P3(jt)&&jt!==200&&Pm("moduleResolution",f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),$N[jt]&&100<=jt&&jt<=199&&!(3<=bn&&bn<=99)){const vn=$N[jt];Pm("moduleResolution",f.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,vn,vn)}else if(Bx[bn]&&3<=bn&&bn<=99&&!(100<=jt&&jt<=199)){const vn=Bx[bn];Pm("module",f.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,vn,vn)}if(!G.noEmit&&!G.suppressOutputPathCheck){const vn=Nn(),Zn=new Set;$q(vn,_i=>{G.emitDeclarationOnly||Qn(_i.jsFilePath,Zn),Qn(_i.declarationFilePath,Zn)})}function Qn(vn,Zn){if(vn){const _i=ir(vn);if(mt.has(_i)){let ni;G.configFilePath||(ni=Vo(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)),ni=Vo(ni,f.Cannot_write_file_0_because_it_would_overwrite_input_file,vn),b1(vn,N3(ni))}const cr=Yt.useCaseSensitiveFileNames()?_i:lh(_i);Zn.has(cr)?b1(vn,Ul(f.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,vn)):Zn.add(cr)}}}function Te(){const ze=G.ignoreDeprecations;if(ze){if(ze==="5.0")return new hm(ze);X()}return hm.zero}function st(ze,Ze,Mt,jt){const bn=new hm(ze),Qn=new hm(Ze),vn=new hm(ye||_e),Zn=Te(),_i=Qn.compareTo(vn)!==1,cr=!_i&&Zn.compareTo(bn)===-1;(_i||cr)&&jt((ni,fr,Qo)=>{_i?fr===void 0?Mt(ni,fr,Qo,f.Option_0_has_been_removed_Please_remove_it_from_your_configuration,ni):Mt(ni,fr,Qo,f.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,ni,fr):fr===void 0?Mt(ni,fr,Qo,f.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,ni,Ze,ze):Mt(ni,fr,Qo,f.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,ni,fr,Ze,ze)})}function qt(){function ze(Ze,Mt,jt,bn,...Qn){if(jt){const vn=Vo(void 0,f.Use_0_instead,jt),Zn=Vo(vn,bn,...Qn);Ui(!Mt,Ze,void 0,Zn)}else Ui(!Mt,Ze,void 0,bn,...Qn)}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,Mt){function jt(bn,Qn,vn,Zn,..._i){Mm(Ze,Mt,Zn,..._i)}st("5.0","5.5",jt,bn=>{ze.prepend&&bn("prepend")})}function ii(ze,Ze,Mt,jt){var bn;let Qn,vn,Zn=D0(Ze)?Ze:void 0;ze&&((bn=Ee.get(ze.path))==null||bn.forEach(Qo)),Ze&&Qo(Ze),Zn&&(Qn==null?void 0:Qn.length)===1&&(Qn=void 0);const _i=Zn&&XP(hn,Zn),cr=Qn&&Vo(Qn,f.The_file_is_in_the_program_because_Colon),ni=ze&&GJ(ze),fr=Vo(ni?cr?[cr,...ni]:ni:cr,Mt,...jt||et);return _i&&dD(_i)?w4(_i.file,_i.pos,_i.end-_i.pos,fr,vn):N3(fr,vn);function Qo(Ja){(Qn||(Qn=[])).push(UJ(hn,Ja)),!Zn&&D0(Ja)?Zn=Ja:Zn!==Ja&&(vn=Rn(vn,wa(Ja))),Ja===Ze&&(Ze=void 0)}}function Yr(ze,Ze,Mt,jt){(At||(At=[])).push({kind:1,file:ze&&ze.path,fileProcessingReason:Ze,diagnostic:Mt,args:jt})}function oo(ze,Ze,Mt){Ln.add(ii(ze,void 0,Ze,Mt))}function wa(ze){if(D0(ze)){const jt=XP(hn,ze);let bn;switch(ze.kind){case 3:bn=f.File_is_included_via_import_here;break;case 4:bn=f.File_is_included_via_reference_here;break;case 5:bn=f.File_is_included_via_type_library_reference_here;break;case 7:bn=f.File_is_included_via_library_reference_here;break;default:N.assertNever(ze)}return dD(jt)?$c(jt.file,jt.pos,jt.end-jt.pos,bn):void 0}if(!G.configFile)return;let Ze,Mt;switch(ze.kind){case 0:if(!G.configFile.configFileSpecs)return;const jt=go(se[ze.index],Ci),bn=VJ(hn,jt);if(bn){Ze=V4(G.configFile,"files",bn),Mt=f.File_is_matched_by_files_list_specified_here;break}const Qn=jJ(hn,jt);if(!Qn||!Mo(Qn))return;Ze=V4(G.configFile,"include",Qn),Mt=f.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const vn=N.checkDefined(le==null?void 0:le[ze.index]),Zn=c7(he,le,(Qo,Ja,Zu)=>Qo===vn?{sourceFile:(Ja==null?void 0:Ja.sourceFile)||G.configFile,index:Zu}:void 0);if(!Zn)return;const{sourceFile:_i,index:cr}=Zn,ni=NL(_i,"references",Qo=>fd(Qo.initializer)?Qo.initializer:void 0);return ni&&ni.elements.length>cr?Xf(_i,ni.elements[cr],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=ab("types",ze.typeReference),Mt=f.File_is_entry_point_of_type_library_specified_here;break;case 6:if(ze.index!==void 0){Ze=ab("lib",G.lib[ze.index]),Mt=f.File_is_library_specified_here;break}const fr=zc(mw.type,(Qo,Ja)=>Qo===os(G)?Ja:void 0);Ze=fr?Hd("target",fr):void 0,Mt=f.File_is_default_library_for_target_specified_here;break;default:N.assertNever(ze)}return Ze&&Xf(G.configFile,Ze,Mt)}function Oa(){const ze=G.suppressOutputPathCheck?void 0:Hv(G);c7(he,le,(Ze,Mt,jt)=>{const bn=(Mt?Mt.commandLine.projectReferences:he)[jt],Qn=Mt&&Mt.sourceFile;if(rr(bn,Qn,jt),!Ze){Mm(Qn,jt,f.File_0_not_found,bn.path);return}const vn=Ze.commandLine.options;if((!vn.composite||vn.noEmit)&&(Mt?Mt.commandLine.fileNames:se).length&&(vn.composite||Mm(Qn,jt,f.Referenced_project_0_must_have_setting_composite_Colon_true,bn.path),vn.noEmit&&Mm(Qn,jt,f.Referenced_project_0_may_not_disable_emit,bn.path)),bn.prepend){const Zn=Ps(vn);Zn?Yt.fileExists(Zn)||Mm(Qn,jt,f.Output_file_0_from_project_1_does_not_exist,Zn,bn.path):Mm(Qn,jt,f.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,bn.path)}!Mt&&ze&&ze===Hv(vn)&&(Mm(Qn,jt,f.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,ze,bn.path),tt.set(ir(ze),!0))})}function Ol(ze,Ze,Mt,...jt){let bn=!0;Ip(Qn=>{La(Qn.initializer)&&sR(Qn.initializer,ze,vn=>{const Zn=vn.initializer;fd(Zn)&&Zn.elements.length>Ze&&(Ln.add(Xf(G.configFile,Zn.elements[Ze],Mt,...jt)),bn=!1)})}),bn&&Ln.add(Ul(Mt,...jt))}function pu(ze,Ze,Mt,...jt){let bn=!0;Ip(Qn=>{La(Qn.initializer)&&ey(Qn.initializer,ze,Ze,void 0,Mt,...jt)&&(bn=!1)}),bn&&Ln.add(Ul(Mt,...jt))}function Rc(ze,Ze){return sR(Kg(),ze,Ze)}function Ip(ze){return Rc("paths",ze)}function Hd(ze,Ze){return Rc(ze,Mt=>Na(Mt.initializer)&&Mt.initializer.text===Ze?Mt.initializer:void 0)}function ab(ze,Ze){const Mt=Kg();return Mt&&rie(Mt,ze,Ze)}function us(ze,Ze,Mt,jt){Ui(!0,Ze,Mt,ze,Ze,Mt,jt)}function Pm(ze,Ze,...Mt){Ui(!1,ze,void 0,Ze,...Mt)}function Mm(ze,Ze,Mt,...jt){const bn=NL(ze||G.configFile,"references",Qn=>fd(Qn.initializer)?Qn.initializer:void 0);bn&&bn.elements.length>Ze?Ln.add(Xf(ze||G.configFile,bn.elements[Ze],Mt,...jt)):Ln.add(Ul(Mt,...jt))}function Ui(ze,Ze,Mt,jt,...bn){const Qn=Kg();(!Qn||!ey(Qn,ze,Ze,Mt,jt,...bn))&&("messageText"in jt?Ln.add(N3(jt)):Ln.add(Ul(jt,...bn)))}function Kg(){return zt===void 0&&(zt=sR(EC(G.configFile),"compilerOptions",ze=>La(ze.initializer)?ze.initializer:void 0)||!1),zt||void 0}function ey(ze,Ze,Mt,jt,bn,...Qn){let vn=!1;return sR(ze,Mt,Zn=>{"messageText"in bn?Ln.add(Lg(G.configFile,Ze?Zn.name:Zn.initializer,bn)):Ln.add(Xf(G.configFile,Ze?Zn.name:Zn.initializer,bn,...Qn)),vn=!0},jt),vn}function Lm(ze,Ze){const Mt=Kg();Mt?ey(Mt,!0,ze,void 0,f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,ze,Ze):us(f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,ze,Ze)}function b1(ze,Ze){tt.set(ir(ze),!0),Ln.add(Ze)}function E1(ze){if(G.noEmit)return!1;const Ze=ir(ze);if(ml(Ze))return!1;const Mt=Ps(G);if(Mt)return pf(Ze,Mt)||pf(Ze,Ad(Mt)+".d.ts");if(G.declarationDir&&gm(G.declarationDir,Ze,Ci,!Yt.useCaseSensitiveFileNames()))return!0;if(G.outDir)return gm(G.outDir,Ze,Ci,!Yt.useCaseSensitiveFileNames());if(Sc(Ze,OR)||Su(Ze)){const jt=Ad(Ze);return!!ml(jt+".ts")||!!ml(jt+".tsx")}return!1}function pf(ze,Ze){return Dg(ze,Ze,Ci,!Yt.useCaseSensitiveFileNames())===0}function j_(){return Yt.getSymlinkCache?Yt.getSymlinkCache():(de||(de=dU(Ci,te)),Ce&&!de.hasProcessedResolutions()&&de.setSymlinksFromResolutions(L,me,je),de)}function ff(ze,Ze){var Mt;const jt=((Mt=Gn(ze))==null?void 0:Mt.commandLine.options)||G;return _J(ze,Ze,jt)}function Xg(ze,Ze){return ff(ze,Vw(ze,Ze))}}function NUe(e){let t;const r=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,o=e.compilerHost.getDirectories,s=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:Ya,fileExists:p};e.compilerHost.fileExists=p;let l;return i&&(l=e.compilerHost.directoryExists=A=>i.call(e.compilerHost,A)?(y(A),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(R=>{const M=Ps(R.commandLine.options);if(M)t.add(ai(e.toPath(M)));else{const C=R.commandLine.options.declarationDir||R.commandLine.options.outDir;C&&t.add(e.toPath(C))}})),T(A,!1)):!1),o&&(e.compilerHost.getDirectories=A=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,A)?o.call(e.compilerHost,A):[]),s&&(e.compilerHost.realpath=A=>{var R;return((R=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:R.get(e.toPath(A)))||s.call(e.compilerHost,A)}),{onProgramCreateComplete:u,fileExists:p,directoryExists:l};function u(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=o}function p(A){return r.call(e.compilerHost,A)?!0:!e.getResolvedProjectReferences()||!Su(A)?!1:T(A,!0)}function h(A){const R=e.getSourceOfProjectReferenceRedirect(e.toPath(A));return R!==void 0?Mo(R)?r.call(e.compilerHost,R):!0:void 0}function m(A){const R=e.toPath(A),M=`${R}${ol}`;return mh(t,C=>R===C||uo(C,M)||uo(R,`${C}/`))}function y(A){var R;if(!e.getResolvedProjectReferences()||eP(A)||!s||!A.includes(Ih))return;const M=e.getSymlinkCache(),C=Fc(e.toPath(A));if((R=M.getSymlinkedDirectories())!=null&&R.has(C))return;const O=ha(s.call(e.compilerHost,A));let U;if(O===A||(U=Fc(e.toPath(O)))===C){M.setSymlinkedDirectory(C,!1);return}M.setSymlinkedDirectory(A,{real:Fc(O),realPath:U})}function T(A,R){var M;const C=R?V=>h(V):V=>m(V),O=C(A);if(O!==void 0)return O;const U=e.getSymlinkCache(),K=U.getSymlinkedDirectories();if(!K)return!1;const Q=e.toPath(A);return Q.includes(Ih)?R&&((M=U.getSymlinkedFiles())!=null&&M.has(Q))?!0:pn(K.entries(),([V,se])=>{if(!se||!uo(Q,V))return;const G=C(Q.replace(V,se.realPath));if(R&&G){const ne=go(A,e.compilerHost.getCurrentDirectory());U.setSymlinkedFile(Q,`${se.real}${ne.replace(new RegExp(V,"i"),"")}`)}return G})||!1:!1}}function SJ(e,t,r,i){const o=e.getCompilerOptions();if(o.noEmit)return e.getSemanticDiagnostics(t,i),t||Ps(o)?h7: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&&Rf(e.getCompilerOptions())&&(s=e.getDeclarationDiagnostics(void 0,i)),!s.length)return;let l;if(!t&&!Ps(o)){const 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 p7(e,t){return mn(e,r=>!r.skippedOn||!t[r.skippedOn])}function f7(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,o,s,l){return N.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:ia(t,t.directoryExists),getDirectories:ia(t,t.getDirectories),realpath:ia(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||Yb,trace:e.trace?r=>e.trace(r):void 0}}function TJ(e,t,r,i){if(!e)return et;let o;for(let s=0;s<e.length;s++){const l=e[s],u=t(l,s);if(l.prepend&&u&&u.options){if(!Ps(u.options))continue;const{jsFilePath:h,sourceMapFilePath:m,declarationFilePath:y,declarationMapPath:T,buildInfoPath:A}=HP(u.options,!0),R=HU(r,h,m,y,T,A,i,u.options);(o||(o=[])).push(R)}}return o||et}function pD(e){return YJ(e.path)}function AJ(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 i();case".jsx":return i()||o();case".js":case".mjs":case".cjs":return o();case".json":return s();default:return l()}function i(){return e.jsx?void 0:f.Module_0_was_resolved_to_1_but_jsx_is_not_set}function o(){return jy(e)||!dd(e,"noImplicitAny")?void 0:f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function s(){return g0(e)?void 0:f.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function l(){return r||e.allowArbitraryExtensions?void 0:f.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}}function gxe({imports:e,moduleAugmentations:t}){const r=e.map(i=>i);for(const i of t)i.kind===11&&r.push(i);return r}function Vw({imports:e,moduleAugmentations:t},r){if(r<e.length)return e[r];let i=e.length;for(const o of t)if(o.kind===11){if(r===i)return o;i++}N.fail("should never ask for module name at index higher than possible module name")}var IJ,xJ,RJ,qle,Jle,vxe,Kle,Xle,m7,yxe,fD,_7,h7,CUe=I({"src/compiler/program.ts"(){ra(),sS(),IJ=(e=>(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(IJ||{}),xJ="\x1B[7m",RJ=" ",qle="\x1B[0m",Jle="...",vxe=" ",Kle=" ",Xle={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},m7={getName:Hle,getMode:(e,t,r)=>mJ(t,e,r)},yxe={getName:gJ,getMode:(e,t)=>zw(e,t==null?void 0:t.impliedNodeFormat)},fD="__inferred type names__.ts",_7=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]),h7={diagnostics:et,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),PUe=I({"src/compiler/builderStatePublic.ts"(){}});function Yle(e,t,r,i,o,s){const l=[],{emitSkipped:u,diagnostics:p}=e.emit(t,h,i,r,o,s);return{outputFiles:l,emitSkipped:u,diagnostics:p};function h(m,y,T){l.push({name:m,writeByteOrderMark:T,text:y})}}var Nm,MUe=I({"src/compiler/builderState.ts"(){ra(),(e=>{function t(){function Y(X,oe,pe){const Ce={getKeys:de=>oe.get(de),getValues:de=>X.get(de),keys:()=>X.keys(),deleteKey:de=>{(pe||(pe=new Set)).add(de);const ie=X.get(de);return ie?(ie.forEach(ve=>i(oe,ve,de)),X.delete(de),!0):!1},set:(de,ie)=>{pe==null||pe.delete(de);const ve=X.get(de);return X.set(de,ie),ve==null||ve.forEach(Le=>{ie.has(Le)||i(oe,Le,de)}),ie.forEach(Le=>{ve!=null&&ve.has(Le)||r(oe,Le,de)}),Ce}};return Ce}return Y(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r(Y,X,oe){let pe=Y.get(X);pe||(pe=new Set,Y.set(X,pe)),pe.add(oe)}function i(Y,X,oe){const pe=Y.get(X);return pe!=null&&pe.delete(oe)?(pe.size||Y.delete(X),!0):!1}function o(Y){return eo(Y.declarations,X=>{var oe;return(oe=Un(X))==null?void 0:oe.resolvedPath})}function s(Y,X){const oe=Y.getSymbolAtLocation(X);return oe&&o(oe)}function l(Y,X,oe,pe){return il(Y.getProjectReferenceRedirect(X)||X,oe,pe)}function u(Y,X,oe){let pe;if(X.imports&&X.imports.length>0){const ve=Y.getTypeChecker();for(const Le of X.imports){const Ue=s(ve,Le);Ue==null||Ue.forEach(ie)}}const Ce=ai(X.resolvedPath);if(X.referencedFiles&&X.referencedFiles.length>0)for(const ve of X.referencedFiles){const Le=l(Y,ve.fileName,Ce,oe);ie(Le)}if(Y.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:ve})=>{if(!ve)return;const Le=ve.resolvedFileName,Ue=l(Y,Le,Ce,oe);ie(Ue)},X),X.moduleAugmentations.length){const ve=Y.getTypeChecker();for(const Le of X.moduleAugmentations){if(!Na(Le))continue;const Ue=ve.getSymbolAtLocation(Le);Ue&&de(Ue)}}for(const ve of Y.getTypeChecker().getAmbientModules())ve.declarations&&ve.declarations.length>1&&de(ve);return pe;function de(ve){if(ve.declarations)for(const Le of ve.declarations){const Ue=Un(Le);Ue&&Ue!==X&&ie(Ue.resolvedPath)}}function ie(ve){(pe||(pe=new Set)).add(ve)}}function p(Y,X){return X&&!X.referencedMap==!Y}e.canReuseOldState=p;function h(Y,X,oe){var pe,Ce,de;const ie=new Map,ve=Y.getCompilerOptions(),Le=Ps(ve),Ue=ve.module!==0&&!Le?t():void 0,Ee=Ue?t():void 0,De=p(Ue,X);Y.getTypeChecker();for(const Me of Y.getSourceFiles()){const We=N.checkDefined(Me.version,"Program intended to be used with Builder should have source files with versions set"),At=De?(pe=X.oldSignatures)==null?void 0:pe.get(Me.resolvedPath):void 0,Se=At===void 0?De?(Ce=X.fileInfos.get(Me.resolvedPath))==null?void 0:Ce.signature:void 0:At||void 0;if(Ue){const je=u(Y,Me,Y.getCanonicalFileName);if(je&&Ue.set(Me.resolvedPath,je),De){const ot=(de=X.oldExportedModulesMap)==null?void 0:de.get(Me.resolvedPath),Bt=ot===void 0?X.exportedModulesMap.getValues(Me.resolvedPath):ot||void 0;Bt&&Ee.set(Me.resolvedPath,Bt)}}ie.set(Me.resolvedPath,{version:We,signature:Se,affectsGlobalScope:Le?void 0:G(Me)||void 0,impliedFormat:Me.impliedNodeFormat})}return{fileInfos:ie,referencedMap:Ue,exportedModulesMap:Ee,useFileVersionAsSignature:!oe&&!De}}e.create=h;function m(Y){Y.allFilesExcludingDefaultLibraryFile=void 0,Y.allFileNames=void 0}e.releaseCache=m;function y(Y,X,oe,pe,Ce){var de,ie;const ve=T(Y,X,oe,pe,Ce);return(de=Y.oldSignatures)==null||de.clear(),(ie=Y.oldExportedModulesMap)==null||ie.clear(),ve}e.getFilesAffectedBy=y;function T(Y,X,oe,pe,Ce){const de=X.getSourceFileByPath(oe);return de?M(Y,X,de,pe,Ce)?(Y.referencedMap?ye:he)(Y,X,de,pe,Ce):[de]:et}e.getFilesAffectedByWithOldState=T;function A(Y,X,oe){Y.fileInfos.get(oe).signature=X,(Y.hasCalledUpdateShapeSignature||(Y.hasCalledUpdateShapeSignature=new Set)).add(oe)}e.updateSignatureOfFile=A;function R(Y,X,oe,pe,Ce){Y.emit(X,(de,ie,ve,Le,Ue,Ee)=>{N.assert(Su(de),`File extension for signature expected to be dts: Got:: ${de}`),Ce(NJ(Y,X,ie,pe,Ee),Ue)},oe,!0,void 0,!0)}e.computeDtsSignature=R;function M(Y,X,oe,pe,Ce,de=Y.useFileVersionAsSignature){var ie;if((ie=Y.hasCalledUpdateShapeSignature)!=null&&ie.has(oe.resolvedPath))return!1;const ve=Y.fileInfos.get(oe.resolvedPath),Le=ve.signature;let Ue;if(!oe.isDeclarationFile&&!de&&R(X,oe,pe,Ce,(Ee,De)=>{Ue=Ee,Ue!==Le&&C(Y,oe,De[0].exportedModulesFromDeclarationEmit)}),Ue===void 0&&(Ue=oe.version,Y.exportedModulesMap&&Ue!==Le)){(Y.oldExportedModulesMap||(Y.oldExportedModulesMap=new Map)).set(oe.resolvedPath,Y.exportedModulesMap.getValues(oe.resolvedPath)||!1);const Ee=Y.referencedMap?Y.referencedMap.getValues(oe.resolvedPath):void 0;Ee?Y.exportedModulesMap.set(oe.resolvedPath,Ee):Y.exportedModulesMap.deleteKey(oe.resolvedPath)}return(Y.oldSignatures||(Y.oldSignatures=new Map)).set(oe.resolvedPath,Le||!1),(Y.hasCalledUpdateShapeSignature||(Y.hasCalledUpdateShapeSignature=new Set)).add(oe.resolvedPath),ve.signature=Ue,Ue!==Le}e.updateShapeSignature=M;function C(Y,X,oe){if(!Y.exportedModulesMap)return;(Y.oldExportedModulesMap||(Y.oldExportedModulesMap=new Map)).set(X.resolvedPath,Y.exportedModulesMap.getValues(X.resolvedPath)||!1);const pe=O(oe);pe?Y.exportedModulesMap.set(X.resolvedPath,pe):Y.exportedModulesMap.deleteKey(X.resolvedPath)}e.updateExportedModules=C;function O(Y){let X;return Y==null||Y.forEach(oe=>o(oe).forEach(pe=>(X??(X=new Set)).add(pe))),X}e.getExportedModules=O;function U(Y,X,oe){const pe=X.getCompilerOptions();if(Ps(pe)||!Y.referencedMap||G(oe))return K(Y,X);const Ce=new Set,de=[oe.resolvedPath];for(;de.length;){const ie=de.pop();if(!Ce.has(ie)){Ce.add(ie);const ve=Y.referencedMap.getValues(ie);if(ve)for(const Le of ve.keys())de.push(Le)}}return zo(Kb(Ce.keys(),ie=>{var ve;return((ve=X.getSourceFileByPath(ie))==null?void 0:ve.fileName)??ie}))}e.getAllDependencies=U;function K(Y,X){if(!Y.allFileNames){const oe=X.getSourceFiles();Y.allFileNames=oe===et?et:oe.map(pe=>pe.fileName)}return Y.allFileNames}function Q(Y,X){const oe=Y.referencedMap.getKeys(X);return oe?zo(oe.keys()):[]}e.getReferencedByPaths=Q;function V(Y){for(const X of Y.statements)if(!L4(X))return!1;return!0}function se(Y){return bt(Y.moduleAugmentations,X=>A_(X.parent))}function G(Y){return se(Y)||!Fp(Y)&&!Yf(Y)&&!V(Y)}function ne(Y,X,oe){if(Y.allFilesExcludingDefaultLibraryFile)return Y.allFilesExcludingDefaultLibraryFile;let pe;oe&&Ce(oe);for(const de of X.getSourceFiles())de!==oe&&Ce(de);return Y.allFilesExcludingDefaultLibraryFile=pe||et,Y.allFilesExcludingDefaultLibraryFile;function Ce(de){X.isSourceFileDefaultLibrary(de)||(pe||(pe=[])).push(de)}}e.getAllFilesExcludingDefaultLibraryFile=ne;function he(Y,X,oe){const pe=X.getCompilerOptions();return pe&&Ps(pe)?[oe]:ne(Y,X,oe)}function ye(Y,X,oe,pe,Ce){if(G(oe))return ne(Y,X,oe);const de=X.getCompilerOptions();if(de&&(rm(de)||Ps(de)))return[oe];const ie=new Map;ie.set(oe.resolvedPath,oe);const ve=Q(Y,oe.resolvedPath);for(;ve.length>0;){const Le=ve.pop();if(!ie.has(Le)){const Ue=X.getSourceFileByPath(Le);ie.set(Le,Ue),Ue&&M(Y,X,Ue,pe,Ce)&&ve.push(...Q(Y,Ue.resolvedPath))}}return zo(Kb(ie.values(),Le=>Le))}})(Nm||(Nm={}))}});function eb(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),Rf(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function mD(e,t){const r=t&&(Av(t)?t:eb(t)),i=Av(e)?e:eb(e);if(r===i)return 0;if(!r||!i)return i;const o=r^i;let s=0;return o&7&&(s=i&7),o&24&&(s=s|i&24),s}function LUe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!mh(e,r=>!t.has(r))}function kUe(e,t){var r,i;const o=Nm.create(e,t,!1);o.program=e;const s=e.getCompilerOptions();o.compilerOptions=s;const l=Ps(s);l?s.composite&&(t!=null&&t.outSignature)&&l===Ps(t==null?void 0:t.compilerOptions)&&(o.outSignature=t.outSignature&&Exe(s,t.compilerOptions,t.outSignature)):o.semanticDiagnosticsPerFile=new Map,o.changedFilesSet=new Set,o.latestChangedDtsFile=s.composite?t==null?void 0:t.latestChangedDtsFile:void 0;const u=Nm.canReuseOldState(o.referencedMap,t),p=u?t.compilerOptions:void 0,h=u&&t.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!poe(s,p),m=s.composite&&(t==null?void 0:t.emitSignatures)&&!l&&!moe(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;const y=o.referencedMap,T=u?t.referencedMap:void 0,A=h&&!s.skipLibCheck==!p.skipLibCheck,R=A&&!s.skipDefaultLibCheck==!p.skipDefaultLibCheck;if(o.fileInfos.forEach((M,C)=>{var O;let U,K;if(!u||!(U=t.fileInfos.get(C))||U.version!==M.version||U.impliedFormat!==M.impliedFormat||!LUe(K=y&&y.getValues(C),T&&T.getValues(C))||K&&mh(K,Q=>!o.fileInfos.has(Q)&&t.fileInfos.has(Q)))bxe(o,C);else{const Q=e.getSourceFileByPath(C),V=(O=t.emitDiagnosticsPerFile)==null?void 0:O.get(C);if(V&&(o.emitDiagnosticsPerFile??(o.emitDiagnosticsPerFile=new Map)).set(C,t.hasReusableDiagnostic?Axe(V,e):Sxe(V,e)),h){if(Q.isDeclarationFile&&!A||Q.hasNoDefaultLib&&!R)return;const se=t.semanticDiagnosticsPerFile.get(C);se&&(o.semanticDiagnosticsPerFile.set(C,t.hasReusableDiagnostic?Axe(se,e):Sxe(se,e)),(o.semanticDiagnosticsFromOldState??(o.semanticDiagnosticsFromOldState=new Set)).add(C))}}if(m){const Q=t.emitSignatures.get(C);Q&&(o.emitSignatures??(o.emitSignatures=new Map)).set(C,Exe(s,t.compilerOptions,Q))}}),u&&zc(t.fileInfos,(M,C)=>o.fileInfos.has(C)?!1:l||M.affectsGlobalScope?!0:(o.buildInfoEmitPending=!0,!1)))Nm.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach(M=>bxe(o,M.resolvedPath));else if(p){const M=foe(s,p)?eb(s):mD(s,p);M!==0&&(l?o.programEmitPending=o.programEmitPending?o.programEmitPending|M:M:(e.getSourceFiles().forEach(C=>{o.changedFilesSet.has(C.resolvedPath)||nce(o,C.resolvedPath,M)}),N.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),bt(e.getProjectReferences(),M=>!!M.prepend)&&(o.programEmitPending=eb(s))),o}function bxe(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function Exe(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:Mo(r)?[r]:r[0]}function Sxe(e,t){return e.length?Zo(e,r=>{if(Mo(r.messageText))return r;const i=$le(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 $le(e,t,r,i){const o=i(e);if(o)return{...R4(t,r,o.moduleReference,o.mode,o.packageName||o.moduleReference),next:Txe(e.next,t,r,i)};const s=Txe(e.next,t,r,i);return s===e.next?e:{...e,next:s}}function Txe(e,t,r,i){return Zo(e,o=>$le(o,t,r,i))}function Axe(e,t){if(!e.length)return et;let r;return e.map(o=>{const s=Ixe(o,t,i);s.reportsUnnecessary=o.reportsUnnecessary,s.reportsDeprecated=o.reportDeprecated,s.source=o.source,s.skippedOn=o.skippedOn;const{relatedInformation:l}=o;return s.relatedInformation=l?l.length?l.map(u=>Ixe(u,t,i)):[]:void 0,s});function i(o){return r??(r=ai(go(Hv(t.getCompilerOptions()),t.getCurrentDirectory()))),il(o,r,t.getCanonicalFileName)}}function Ixe(e,t,r){const{file:i}=e,o=i?t.getSourceFileByPath(r(i)):void 0;return{...e,file:o,messageText:Mo(e.messageText)?e.messageText:$le(e.messageText,o,t,s=>s.info)}}function wUe(e){Nm.releaseCache(e),e.program=void 0}function OUe(e){const t=Ps(e.compilerOptions);return N.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 WUe(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 xxe(e,t){N.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function Rxe(e,t,r){for(var i,o;;){const{affectedFiles:s}=e;if(s){const h=e.seenAffectedFiles;let m=e.affectedFilesIndex;for(;m<s.length;){const y=s[m];if(!h.has(y.resolvedPath))return e.affectedFilesIndex=m,nce(e,y.resolvedPath,eb(e.compilerOptions)),GUe(e,y,t,r),y;m++}e.changedFilesSet.delete(e.currentChangedFilePath),e.currentChangedFilePath=void 0,(i=e.oldSignatures)==null||i.clear(),(o=e.oldExportedModulesMap)==null||o.clear(),e.affectedFiles=void 0}const l=e.changedFilesSet.keys().next();if(l.done)return;const u=N.checkDefined(e.program),p=u.getCompilerOptions();if(Ps(p))return N.assert(!e.semanticDiagnosticsPerFile),u;e.affectedFiles=Nm.getFilesAffectedByWithOldState(e,u,l.value,t,r),e.currentChangedFilePath=l.value,e.affectedFilesIndex=0,e.seenAffectedFiles||(e.seenAffectedFiles=new Set)}}function FUe(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size){if(!t)return e.affectedFilesPendingEmit=void 0;e.affectedFilesPendingEmit.forEach((i,o)=>{const s=i&7;s?e.affectedFilesPendingEmit.set(o,s):e.affectedFilesPendingEmit.delete(o)})}}function zUe(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size)return zc(e.affectedFilesPendingEmit,(i,o)=>{var s;const l=e.program.getSourceFileByPath(o);if(!l||!xS(l,e.program)){e.affectedFilesPendingEmit.delete(o);return}const u=(s=e.seenEmittedFiles)==null?void 0:s.get(l.resolvedPath);let p=mD(i,u);if(t&&(p=p&24),p)return{affectedFile:l,emitKind:p}})}function BUe(e){var t;if((t=e.emitDiagnosticsPerFile)!=null&&t.size)return zc(e.emitDiagnosticsPerFile,(r,i)=>{var o;const s=e.program.getSourceFileByPath(i);if(!s||!xS(s,e.program)){e.emitDiagnosticsPerFile.delete(i);return}const l=((o=e.seenEmittedFiles)==null?void 0:o.get(s.resolvedPath))||0;if(!(l&24))return{affectedFile:s,diagnostics:r,seenKind:l}})}function Dxe(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=N.checkDefined(e.program),r=t.getCompilerOptions();Xe(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!YC(i,r,t)&&Qle(e,i.resolvedPath))}}function GUe(e,t,r,i){if(Qle(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){Dxe(e),Nm.updateShapeSignature(e,N.checkDefined(e.program),t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||VUe(e,t,r,i)}function DJ(e,t,r,i){if(Qle(e,t),!e.changedFilesSet.has(t)){const o=N.checkDefined(e.program),s=o.getSourceFileByPath(t);s&&(Nm.updateShapeSignature(e,o,s,r,i,!0),Rf(e.compilerOptions)&&nce(e,t,e.compilerOptions.declarationMap?24:8))}}function Qle(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function Nxe(e,t){const r=N.checkDefined(e.oldSignatures).get(t)||void 0;return N.checkDefined(e.fileInfos.get(t)).signature!==r}function Zle(e,t,r,i){var o;return(o=e.fileInfos.get(t))!=null&&o.affectsGlobalScope?(Nm.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(s=>DJ(e,s.resolvedPath,r,i)),Dxe(e),!0):!1}function VUe(e,t,r,i){var o;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!Nxe(e,t.resolvedPath))return;if(rm(e.compilerOptions)){const l=new Map;l.set(t.resolvedPath,!0);const u=Nm.getReferencedByPaths(e,t.resolvedPath);for(;u.length>0;){const p=u.pop();if(!l.has(p)){if(l.set(p,!0),Zle(e,p,r,i))return;if(DJ(e,p,r,i),Nxe(e,p)){const h=N.checkDefined(e.program).getSourceFileByPath(p);u.push(...Nm.getReferencedByPaths(e,h.resolvedPath))}}}}const s=new Set;(o=e.exportedModulesMap.getKeys(t.resolvedPath))==null||o.forEach(l=>{if(Zle(e,l,r,i))return!0;const u=e.referencedMap.getKeys(l);return u&&mh(u,p=>Cxe(e,p,s,r,i))})}function Cxe(e,t,r,i,o){var s,l;if(Xb(r,t)){if(Zle(e,t,i,o))return!0;DJ(e,t,i,o),(s=e.exportedModulesMap.getKeys(t))==null||s.forEach(u=>Cxe(e,u,r,i,o)),(l=e.referencedMap.getKeys(t))==null||l.forEach(u=>!r.has(u)&&DJ(e,u,i,o))}}function ece(e,t,r){return So(jUe(e,t,r),N.checkDefined(e.program).getProgramDiagnostics(t))}function jUe(e,t,r){const i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){const s=e.semanticDiagnosticsPerFile.get(i);if(s)return p7(s,e.compilerOptions)}const o=N.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,o),p7(o,e.compilerOptions)}function tce(e){return!!Ps(e.options||{})}function UUe(e,t){var r,i,o;const s=N.checkDefined(e.program).getCurrentDirectory(),l=ai(go(Hv(e.compilerOptions),s)),u=e.latestChangedDtsFile?se(e.latestChangedDtsFile):void 0,p=[],h=new Map,m=[];if(Ps(e.compilerOptions)){const ve=zo(e.fileInfos.entries(),([We,At])=>{const Se=ne(We);return ye(We,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:Y(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:u,pendingEmit:e.programEmitPending?e.programEmitPending===eb(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:Ue,dts:Ee,commonSourceDirectory:De,sourceFiles:Me}=t;return e.bundle=t={commonSourceDirectory:De,sourceFiles:Me,js:Ue||(e.compilerOptions.emitDeclarationOnly||(r=e.bundle)==null?void 0:r.js),dts:Ee||(Rf(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},Lw(Le,t)}let y,T,A;const R=zo(e.fileInfos.entries(),([ve,Le])=>{var Ue,Ee;const De=ne(ve);ye(ve,De),N.assert(p[De-1]===G(ve));const Me=(Ue=e.oldSignatures)==null?void 0:Ue.get(ve),We=Me!==void 0?Me||void 0:Le.signature;if(e.compilerOptions.composite){const At=e.program.getSourceFileByPath(ve);if(!Yf(At)&&xS(At,e.program)){const Se=(Ee=e.emitSignatures)==null?void 0:Ee.get(ve);Se!==We&&(A||(A=[])).push(Se===void 0?De:[De,!Mo(Se)&&Se[0]===We?et:Se])}}return Le.version===We?Le.affectsGlobalScope||Le.impliedFormat?{version:Le.version,signature:void 0,affectsGlobalScope:Le.affectsGlobalScope,impliedFormat:Le.impliedFormat}:Le.version:We!==void 0?Me===void 0?Le:{version:Le.version,signature:We,affectsGlobalScope:Le.affectsGlobalScope,impliedFormat:Le.impliedFormat}:{version:Le.version,signature:!1,affectsGlobalScope:Le.affectsGlobalScope,impliedFormat:Le.impliedFormat}});let M;e.referencedMap&&(M=zo(e.referencedMap.keys()).sort(Uu).map(ve=>[ne(ve),he(e.referencedMap.getValues(ve))]));let C;e.exportedModulesMap&&(C=eo(zo(e.exportedModulesMap.keys()).sort(Uu),ve=>{var Le;const Ue=(Le=e.oldExportedModulesMap)==null?void 0:Le.get(ve);if(Ue===void 0)return[ne(ve),he(e.exportedModulesMap.getValues(ve))];if(Ue)return[ne(ve),he(Ue)]}));const O=oe(e.semanticDiagnosticsPerFile);let U;if((o=e.affectedFilesPendingEmit)!=null&&o.size){const ve=eb(e.compilerOptions),Le=new Set;for(const Ue of zo(e.affectedFilesPendingEmit.keys()).sort(Uu))if(Xb(Le,Ue)){const Ee=e.program.getSourceFileByPath(Ue);if(!Ee||!xS(Ee,e.program))continue;const De=ne(Ue),Me=e.affectedFilesPendingEmit.get(Ue);(U||(U=[])).push(Me===ve?De:Me===8?[De]:[De,Me])}}let K;if(e.changedFilesSet.size)for(const ve of zo(e.changedFilesSet.keys()).sort(Uu))(K||(K=[])).push(ne(ve));const Q=oe(e.emitDiagnosticsPerFile),V={fileNames:p,fileInfos:R,root:m,options:Y(e.compilerOptions),fileIdsList:y,referencedMap:M,exportedModulesMap:C,semanticDiagnosticsPerFile:O,emitDiagnosticsPerFile:Q,affectedFilesPendingEmit:U,changeFileSet:K,emitSignatures:A,latestChangedDtsFile:u};return Lw(V,t);function se(ve){return G(go(ve,s))}function G(ve){return AE(vm(l,ve,e.program.getCanonicalFileName))}function ne(ve){let Le=h.get(ve);return Le===void 0&&(p.push(G(ve)),h.set(ve,Le=p.length)),Le}function he(ve){const Le=zo(ve.keys(),ne).sort(nl),Ue=Le.join();let Ee=T==null?void 0:T.get(Ue);return Ee===void 0&&((y||(y=[])).push(Le),(T||(T=new Map)).set(Ue,Ee=y.length)),Ee}function ye(ve,Le){const Ue=e.program.getSourceFile(ve);if(!e.program.getFileIncludeReasons().get(Ue.path).some(We=>We.kind===0))return;if(!m.length)return m.push(Le);const Ee=m[m.length-1],De=To(Ee);if(De&&Ee[1]===Le-1)return Ee[1]=Le;if(De||m.length===1||Ee!==Le-1)return m.push(Le);const Me=m[m.length-2];return!Av(Me)||Me!==Ee-1?m.push(Le):(m[m.length-2]=[Me,Le],m.length=m.length-1)}function Y(ve){let Le;const{optionsNameMap:Ue}=eD();for(const Ee of Hh(ve).sort(Uu)){const De=Ue.get(Ee.toLowerCase());De!=null&&De.affectsBuildInfo&&((Le||(Le={}))[Ee]=X(De,ve[Ee]))}return Le}function X(ve,Le){if(ve){if(N.assert(ve.type!=="listOrElement"),ve.type==="list"){const Ue=Le;if(ve.element.isFilePath&&Ue.length)return Ue.map(se)}else if(ve.isFilePath)return se(Le)}return Le}function oe(ve){let Le;if(ve)for(const Ue of zo(ve.keys()).sort(Uu)){const Ee=ve.get(Ue);(Le||(Le=[])).push(Ee.length?[ne(Ue),pe(Ee)]:ne(Ue))}return Le}function pe(ve){return N.assert(!!ve.length),ve.map(Le=>{const Ue=Ce(Le);Ue.reportsUnnecessary=Le.reportsUnnecessary,Ue.reportDeprecated=Le.reportsDeprecated,Ue.source=Le.source,Ue.skippedOn=Le.skippedOn;const{relatedInformation:Ee}=Le;return Ue.relatedInformation=Ee?Ee.length?Ee.map(De=>Ce(De)):[]:void 0,Ue})}function Ce(ve){const{file:Le}=ve;return{...ve,file:Le?G(Le.resolvedPath):void 0,messageText:Mo(ve.messageText)?ve.messageText:de(ve.messageText)}}function de(ve){if(ve.repopulateInfo)return{info:ve.repopulateInfo(),next:ie(ve.next)};const Le=ie(ve.next);return Le===ve.next?ve:{...ve,next:Le}}function ie(ve){return ve&&(Xe(ve,(Le,Ue)=>{const Ee=de(Le);if(Le===Ee)return;const De=Ue>0?ve.slice(0,Ue-1):[];De.push(Ee);for(let Me=Ue+1;Me<ve.length;Me++)De.push(de(ve[Me]));return De})||ve)}}function g7(e,t,r,i,o,s){let l,u,p;return e===void 0?(N.assert(t===void 0),l=r,p=i,N.assert(!!p),u=p.getProgram()):To(e)?(p=i,u=d7({rootNames:e,options:t,host:r,oldProgram:p&&p.getProgramOrUndefined(),configFileParsingDiagnostics:o,projectReferences:s}),l=r):(u=e,l=t,p=r,o=i),{host:l,newProgram:u,oldProgram:p,configFileParsingDiagnostics:o||et}}function Pxe(e,t){return(t==null?void 0:t.sourceMapUrlPos)!==void 0?e.substring(0,t.sourceMapUrlPos):e}function NJ(e,t,r,i,o){var s;r=Pxe(r,o);let l;return(s=o==null?void 0:o.diagnostics)!=null&&s.length&&(r+=o.diagnostics.map(h=>`${p(h)}${F2[h.category]}${h.code}: ${u(h.messageText)}`).join(` +`)),(i.createHash??QN)(r);function u(h){return Mo(h)?h:h===void 0?"":h.next?h.messageText+h.next.map(u).join(` +`):h.messageText}function p(h){return h.file.resolvedPath===t.resolvedPath?`(${h.start},${h.length})`:(l===void 0&&(l=ai(t.resolvedPath)),`${AE(vm(l,h.file.resolvedPath,e.getCanonicalFileName))}(${h.start},${h.length})`)}}function QS(e,t,r){return(t.createHash??QN)(Pxe(e,r))}function CJ(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;const l=kUe(t,s);t.getBuildInfo=M=>UUe(l,M),t=void 0,i=void 0,s=void 0;const u=()=>l,p=MJ(u,o);return p.getState=u,p.saveEmitState=()=>OUe(l),p.restoreEmitState=M=>WUe(l,M),p.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,p.getAllDependencies=M=>Nm.getAllDependencies(l,N.checkDefined(l.program),M),p.getSemanticDiagnostics=R,p.emit=T,p.releaseProgram=()=>wUe(l),e===0?p.getSemanticDiagnosticsOfNextAffectedFile=A:e===1?(p.getSemanticDiagnosticsOfNextAffectedFile=A,p.emitNextAffectedFile=m,p.emitBuildInfo=h):Jo(),p;function h(M,C){if(l.buildInfoEmitPending){const O=N.checkDefined(l.program).emitBuildInfo(M||ia(r,r.writeFile),C);return l.buildInfoEmitPending=!1,O}return h7}function m(M,C,O,U){var K,Q,V;let se=Rxe(l,C,r);const G=eb(l.compilerOptions);let ne=O?G&24:G;if(!se)if(Ps(l.compilerOptions)){if(!l.programEmitPending||(ne=l.programEmitPending,O&&(ne=ne&24),!ne))return;se=l.program}else{const Y=zUe(l,O);if(!Y){const X=BUe(l);if(X)return(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(X.affectedFile.resolvedPath,X.seenKind|24),{result:{emitSkipped:!0,diagnostics:X.diagnostics},affected:X.affectedFile};if(!l.buildInfoEmitPending)return;const oe=l.program,pe=oe.emitBuildInfo(M||ia(r,r.writeFile),C);return l.buildInfoEmitPending=!1,{result:pe,affected:oe}}({affectedFile:se,emitKind:ne}=Y)}let he;ne&7&&(he=0),ne&24&&(he=he===void 0?1:void 0),se===l.program&&(l.programEmitPending=l.changedFilesSet.size?mD(G,ne):l.programEmitPending?mD(l.programEmitPending,ne):void 0);const ye=l.program.emit(se===l.program?void 0:se,y(M,U),C,he,U);if(se!==l.program){const Y=se;l.seenAffectedFiles.add(Y.resolvedPath),l.affectedFilesIndex!==void 0&&l.affectedFilesIndex++,l.buildInfoEmitPending=!0;const X=((K=l.seenEmittedFiles)==null?void 0:K.get(Y.resolvedPath))||0;(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(Y.resolvedPath,ne|X);const oe=((Q=l.affectedFilesPendingEmit)==null?void 0:Q.get(Y.resolvedPath))||G,pe=mD(oe,ne|X);pe?(l.affectedFilesPendingEmit??(l.affectedFilesPendingEmit=new Map)).set(Y.resolvedPath,pe):(V=l.affectedFilesPendingEmit)==null||V.delete(Y.resolvedPath),ye.diagnostics.length&&(l.emitDiagnosticsPerFile??(l.emitDiagnosticsPerFile=new Map)).set(Y.resolvedPath,ye.diagnostics)}else l.changedFilesSet.clear();return{result:ye,affected:se}}function y(M,C){return Rf(l.compilerOptions)?(O,U,K,Q,V,se)=>{var G,ne,he,ye;if(Su(O))if(Ps(l.compilerOptions)){if(l.compilerOptions.composite){const X=Y(l.outSignature,void 0);if(!X)return;l.outSignature=X}}else{N.assert((V==null?void 0:V.length)===1);let X;if(!C){const oe=V[0],pe=l.fileInfos.get(oe.resolvedPath);if(pe.signature===oe.version){const Ce=NJ(l.program,oe,U,r,se);(G=se==null?void 0:se.diagnostics)!=null&&G.length||(X=Ce),Ce!==oe.version&&(r.storeFilesChangingSignatureDuringEmit&&(l.filesChangingSignature??(l.filesChangingSignature=new Set)).add(oe.resolvedPath),l.exportedModulesMap&&Nm.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,pe.signature||!1),pe.signature=Ce):(pe.signature=Ce,(he=l.oldExportedModulesMap)==null||he.clear()))}}if(l.compilerOptions.composite){const oe=V[0].resolvedPath;if(X=Y((ye=l.emitSignatures)==null?void 0:ye.get(oe),X),!X)return;(l.emitSignatures??(l.emitSignatures=new Map)).set(oe,X)}}M?M(O,U,K,Q,V,se):r.writeFile?r.writeFile(O,U,K,Q,V,se):l.program.writeFile(O,U,K,Q,V,se);function Y(X,oe){const pe=!X||Mo(X)?X:X[0];if(oe??(oe=QS(U,r,se)),oe===pe){if(X===pe)return;se?se.differsOnlyInMap=!0:se={differsOnlyInMap:!0}}else l.hasChangedEmitSignature=!0,l.latestChangedDtsFile=O;return oe}}:M||ia(r,r.writeFile)}function T(M,C,O,U,K){e===1&&xxe(l,M);const Q=SJ(p,M,C,O);if(Q)return Q;if(!M)if(e===1){let V=[],se=!1,G,ne=[],he;for(;he=m(C,O,U,K);)se=se||he.result.emitSkipped,G=qr(G,he.result.diagnostics),ne=qr(ne,he.result.emittedFiles),V=qr(V,he.result.sourceMaps);return{emitSkipped:se,diagnostics:G||et,emittedFiles:ne,sourceMaps:V}}else FUe(l,U);return N.checkDefined(l.program).emit(M,y(C,K),O,U,K)}function A(M,C){for(;;){const O=Rxe(l,M,r);let U;if(O)if(O!==l.program){const K=O;if((!C||!C(K))&&(U=ece(l,K,M)),l.seenAffectedFiles.add(K.resolvedPath),l.affectedFilesIndex++,l.buildInfoEmitPending=!0,!U)continue}else U=l.program.getSemanticDiagnostics(void 0,M),l.changedFilesSet.clear(),l.programEmitPending=eb(l.compilerOptions);else return;return{result:U,affected:O}}}function R(M,C){xxe(l,M);const O=N.checkDefined(l.program).getCompilerOptions();if(Ps(O))return N.assert(!l.semanticDiagnosticsPerFile),N.checkDefined(l.program).getSemanticDiagnostics(M,C);if(M)return ece(l,M,C);for(;A(C););let U;for(const K of N.checkDefined(l.program).getSourceFiles())U=qr(U,ece(l,K,C));return U||et}}function nce(e,t,r){var i,o;const 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 rce(e){return Mo(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:Mo(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function ice(e,t){return Av(e)?t:e[1]||8}function oce(e,t){return e||eb(t||{})}function ace(e,t,r){var i,o,s,l;const u=e.program,p=ai(go(t,r.getCurrentDirectory())),h=Mu(r.useCaseSensitiveFileNames());let m;const y=(i=u.fileNames)==null?void 0:i.map(R);let T;const A=u.latestChangedDtsFile?M(u.latestChangedDtsFile):void 0;if(tce(u)){const Q=new Map;u.fileInfos.forEach((V,se)=>{const G=C(se+1);Q.set(G,Mo(V)?{version:V,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:V)}),m={fileInfos:Q,compilerOptions:u.options?JH(u.options,M):{},latestChangedDtsFile:A,outSignature:u.outSignature,programEmitPending:u.pendingEmit===void 0?void 0:oce(u.pendingEmit,u.options),bundle:e.bundle}}else{T=(o=u.fileIdsList)==null?void 0:o.map(G=>new Set(G.map(C)));const Q=new Map,V=(s=u.options)!=null&&s.composite&&!Ps(u.options)?new Map:void 0;u.fileInfos.forEach((G,ne)=>{const he=C(ne+1),ye=rce(G);Q.set(he,ye),V&&ye.signature&&V.set(he,ye.signature)}),(l=u.emitSignatures)==null||l.forEach(G=>{if(Av(G))V.delete(C(G));else{const ne=C(G[0]);V.set(ne,!Mo(G[1])&&!G[1].length?[V.get(ne)]:G[1])}});const se=u.affectedFilesPendingEmit?eb(u.options||{}):void 0;m={fileInfos:Q,compilerOptions:u.options?JH(u.options,M):{},referencedMap:U(u.referencedMap),exportedModulesMap:U(u.exportedModulesMap),semanticDiagnosticsPerFile:K(u.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:K(u.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,affectedFilesPendingEmit:u.affectedFilesPendingEmit&&TE(u.affectedFilesPendingEmit,G=>C(Av(G)?G:G[0]),G=>ice(G,se)),changedFilesSet:new Set(Wt(u.changeFileSet,C)),latestChangedDtsFile:A,emitSignatures:V!=null&&V.size?V:void 0}}return{getState:()=>m,saveEmitState:Ya,restoreEmitState:Ya,getProgram:Jo,getProgramOrUndefined:Yb,releaseProgram:Ya,getCompilerOptions:()=>m.compilerOptions,getSourceFile:Jo,getSourceFiles:Jo,getOptionsDiagnostics:Jo,getGlobalDiagnostics:Jo,getConfigFileParsingDiagnostics:Jo,getSyntacticDiagnostics:Jo,getDeclarationDiagnostics:Jo,getSemanticDiagnostics:Jo,emit:Jo,getAllDependencies:Jo,getCurrentDirectory:Jo,emitNextAffectedFile:Jo,getSemanticDiagnosticsOfNextAffectedFile:Jo,emitBuildInfo:Jo,close:Ya,hasChangedEmitSignature:qm};function R(Q){return il(Q,p,h)}function M(Q){return go(Q,p)}function C(Q){return y[Q-1]}function O(Q){return T[Q-1]}function U(Q){if(!Q)return;const V=Nm.createManyToManyPathMap();return Q.forEach(([se,G])=>V.set(C(se),O(G))),V}function K(Q){return Q&&TE(Q,V=>C(Av(V)?V:V[0]),V=>Av(V)?et:V[1])}}function PJ(e,t,r){const i=ai(go(t,r.getCurrentDirectory())),o=Mu(r.useCaseSensitiveFileNames()),s=new Map;let l=0;const u=[];return e.fileInfos.forEach((p,h)=>{const m=il(e.fileNames[h],i,o),y=Mo(p)?p:p.version;if(s.set(m,y),l<e.root.length){const T=e.root[l],A=h+1;To(T)?T[0]<=A&&A<=T[1]&&(u.push(m),T[1]===A&&l++):T===A&&(u.push(m),l++)}}),{fileInfos:s,roots:u}}function MJ(e,t){return{getState:Jo,saveEmitState:Ya,restoreEmitState:Ya,getProgram:r,getProgramOrUndefined:()=>e().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:Jo,getCurrentDirectory:()=>r().getCurrentDirectory(),close:Ya};function r(){return N.checkDefined(e().program)}}var LJ,kJ,HUe=I({"src/compiler/builder.ts"(){ra(),LJ=(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))(LJ||{}),kJ=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(kJ||{})}});function Mxe(e,t,r,i,o,s){return CJ(0,g7(e,t,r,i,o,s))}function wJ(e,t,r,i,o,s){return CJ(1,g7(e,t,r,i,o,s))}function Lxe(e,t,r,i,o,s){const{newProgram:l,configFileParsingDiagnostics:u}=g7(e,t,r,i,o,s);return MJ(()=>({program:l,compilerOptions:l.getCompilerOptions()}),u)}var qUe=I({"src/compiler/builderPublic.ts"(){ra()}});function v7(e){return Al(e,"/node_modules/.staging")?kx(e,"/.staging"):bt(V2,t=>e.includes(t))?void 0:e}function sce(e,t){if(t<=1)return 1;let r=1,i=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==ol&&!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 y7(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;const r=sce(e,t);return t>r+1}function lce(e){return wxe(ai(e))}function kxe(e,t){if(t.length<t.length)return!1;for(let r=0;r<e.length;r++)if(t[r]!==e[r])return!1;return!0}function wxe(e){return y7(Wc(e))}function cce(e){return wxe(e)}function OJ(e,t,r,i,o,s){const l=Wc(t);e=dp(e)?ha(e):go(e,s());const u=Wc(e),p=sce(l,l.length);if(l.length<=p+1)return;const h=l.indexOf("node_modules");if(!(h!==-1&&h+1<=p+1))return kxe(o,l)?l.length>o.length+1?uce(u,l,Math.max(o.length+1,p+1)):{dir:r,dirPath:i,nonRecursive:!0}:Oxe(u,l,l.length-1,p,h,o)}function Oxe(e,t,r,i,o,s){if(o!==-1)return uce(e,t,o+1);let l=!0,u=r;for(let p=0;p<r;p++)if(t[p]!==s[p]){l=!1,u=Math.max(p+1,i+1);break}return uce(e,t,u,l)}function uce(e,t,r,i){return{dir:Ay(e,r),dirPath:Ay(t,r),nonRecursive:i}}function dce(e,t,r,i,o,s){const l=Wc(t);if(kxe(i,l))return r;e=dp(e)?ha(e):go(e,o());const u=Oxe(Wc(e),l,l.length,sce(l,l.length),l.indexOf("node_modules"),i);return u&&s(u.dirPath)?u.dirPath:void 0}function pce(e,t){const r=go(e,t());return pV(r)?r:Qb(r)}function Wxe(e){return e.split(ol).length-(Dv(e)?1:0)}function b7(e){var t;return((t=e.getCompilerHost)==null?void 0:t.call(e))||e}function fce(e,t,r,i,o){return{nameAndMode:m7,resolve:(s,l)=>JUe(i,o,s,e,r,t,l)}}function JUe(e,t,r,i,o,s,l){const u=b7(e),p=iD(r,i,o,u,t,s,l);if(!e.getGlobalCache)return p;const h=e.getGlobalCache();if(h!==void 0&&!Xc(r)&&!(p.resolvedModule&&j3(p.resolvedModule.extension))){const{resolvedModule:m,failedLookupLocations:y,affectingLocations:T,resolutionDiagnostics:A}=Dse(N.checkDefined(e.globalCacheResolutionModuleName)(r),e.projectName,o,u,h,t);if(m)return p.resolvedModule=m,p.failedLookupLocations=nD(p.failedLookupLocations,y),p.affectingLocations=nD(p.affectingLocations,T),p.resolutionDiagnostics=nD(p.resolutionDiagnostics,A),p}return p}function WJ(e,t,r){let i,o,s;const l=$p(),u=new Set,p=new Set,h=new Map,m=new Map;let y=!1,T,A,R,M,C,O=!1;const U=Sd(()=>e.getCurrentDirectory()),K=e.getCachedDirectoryStructureHost(),Q=new Map,V=rD(U(),e.getCanonicalFileName,e.getCompilationSettings()),se=new Map,G=RF(U(),e.getCanonicalFileName,e.getCompilationSettings(),V.getPackageJsonInfoCache(),V.optionsToRedirectsKey),ne=new Map,he=rD(U(),e.getCanonicalFileName,cq(e.getCompilationSettings()),V.getPackageJsonInfoCache()),ye=new Map,Y=new Map,X=pce(t,U),oe=e.toPath(X),pe=Wc(oe),Ce=new Map;return{rootDirForResolution:t,resolvedModuleNames:Q,resolvedTypeReferenceDirectives:se,resolvedLibraries:ne,resolvedFileToResolution:h,resolutionsWithFailedLookups:u,resolutionsWithOnlyAffectingLocations:p,directoryWatchesOfFailedLookups:ye,fileWatchesOfAffectingLocations:Y,watchFailedLookupLocationsOfExternalModuleResolutions:Mn,getModuleResolutionCache:()=>V,startRecordingFilesWithChangedResolutions:Ue,finishRecordingFilesWithChangedResolutions:Ee,startCachingPerDirectoryResolution:We,finishCachingPerDirectoryResolution:Se,resolveModuleNameLiterals:$e,resolveTypeReferenceDirectiveReferences:vt,resolveLibrary:It,resolveSingleModuleNameWithoutWatching:tn,removeResolutionsFromProjectReferenceRedirects:tt,removeResolutionsOfFile:zt,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:ci,invalidateResolutionsOfFailedLookupLocations:fa,setFilesWithInvalidatedNonRelativeUnresolvedImports:yi,createHasInvalidatedResolutions:Me,isFileWithInvalidatedNonRelativeUnresolvedImports:De,updateTypeRootsWatch:ft,closeTypeRootsWatch:He,clear:ve,onChangesAffectModuleResolution:Le};function de(le){return le.resolvedModule}function ie(le){return le.resolvedTypeReferenceDirective}function ve(){ep(ye,Cf),ep(Y,Cf),l.clear(),He(),Q.clear(),se.clear(),h.clear(),u.clear(),p.clear(),R=void 0,M=void 0,C=void 0,A=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(),y=!1}function Le(){O=!0,V.clearAllExceptPackageJsonInfoCache(),G.clearAllExceptPackageJsonInfoCache(),V.update(e.getCompilationSettings()),G.update(e.getCompilationSettings())}function Ue(){i=[]}function Ee(){const le=i;return i=void 0,le}function De(le){if(!s)return!1;const Fe=s.get(le);return!!Fe&&!!Fe.length}function Me(le,Fe){fa();const pt=o;return o=void 0,{hasInvalidatedResolutions:j=>le(j)||O||!!(pt!=null&&pt.has(j))||De(j),hasInvalidatedLibResolutions:j=>{var it;return Fe(j)||!!((it=ne==null?void 0:ne.get(j))!=null&&it.isInvalidated)}}}function We(){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(so),l.clear()}function At(le){ne.forEach((Fe,pt)=>{var j;(j=le==null?void 0:le.resolvedLibReferences)!=null&&j.has(pt)||(Ln(Fe,e.toPath(u7(e.getCompilationSettings(),U(),pt)),de),ne.delete(pt))})}function Se(le,Fe){s=void 0,O=!1,l.forEach(so),l.clear(),le!==Fe&&(At(le),le==null||le.getSourceFiles().forEach(pt=>{var j;const it=Fp(pt)?((j=pt.packageJsonLocations)==null?void 0:j.length)??0:0,Rt=m.get(pt.path)??et;for(let Ye=Rt.length;Ye<it;Ye++)Yt(pt.packageJsonLocations[Ye],!1);if(Rt.length>it)for(let Ye=it;Ye<Rt.length;Ye++)Y.get(Rt[Ye]).files--;it?m.set(pt.path,pt.packageJsonLocations):m.delete(pt.path)}),m.forEach((pt,j)=>{le!=null&&le.getSourceFileByPath(j)||(pt.forEach(it=>Y.get(it).files--),m.delete(j))})),ye.forEach(je),Y.forEach(ot),y=!1,V.isReadonly=!0,G.isReadonly=!0,he.isReadonly=!0,V.getPackageJsonInfoCache().isReadonly=!0}function je(le,Fe){le.refCount===0&&(ye.delete(Fe),le.watcher.close())}function ot(le,Fe){var pt;le.files===0&&le.resolutions===0&&!((pt=le.symlinks)!=null&&pt.size)&&(Y.delete(Fe),le.watcher.close())}function Bt({entries:le,containingFile:Fe,containingSourceFile:pt,redirectedReference:j,options:it,perFileCache:Rt,reusedNames:Ye,loader:_t,getResolutionWithResolvedFileName:Gt,deferWatchingNonRelativeResolution:yn,shouldRetryResolution:fn,logChanges:hn}){const q=e.toPath(Fe),Oe=Rt.get(q)||Rt.set(q,_I()).get(q),Lt=[],L=hn&&De(q),me=e.getCurrentProgram(),J=me&&me.getResolvedProjectReferenceToRedirect(Fe),fe=J?!j||j.sourceFile.path!==J.sourceFile.path:!!j,Be=_I();for(const Tt of le){const kt=_t.nameAndMode.getName(Tt),en=_t.nameAndMode.getMode(Tt,pt,(j==null?void 0:j.commandLine.options)||it);let En=Oe.get(kt,en);if(!Be.has(kt,en)&&(O||fe||!En||En.isInvalidated||L&&!Xc(kt)&&fn(En))){const Gn=En;En=_t.resolve(kt,en),e.onDiscoveredSymlink&&KUe(En)&&e.onDiscoveredSymlink(),Oe.set(kt,en,En),En!==Gn&&(Mn(kt,En,q,Gt,yn),Gn&&Ln(Gn,q,Gt)),hn&&i&&!ke(Gn,En)&&(i.push(q),hn=!1)}else{const Gn=b7(e);if(Vg(it,Gn)&&!Be.has(kt,en)){const qn=Gt(En);bo(Gn,Rt===Q?qn!=null&&qn.resolvedFileName?qn.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:qn!=null&&qn.resolvedFileName?qn.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,kt,Fe,qn==null?void 0:qn.resolvedFileName,(qn==null?void 0:qn.packageId)&&ky(qn.packageId))}}N.assert(En!==void 0&&!En.isInvalidated),Be.set(kt,en,!0),Lt.push(En)}return Ye==null||Ye.forEach(Tt=>Be.set(_t.nameAndMode.getName(Tt),_t.nameAndMode.getMode(Tt,pt,(j==null?void 0:j.commandLine.options)||it),!0)),Oe.size()!==Be.size()&&Oe.forEach((Tt,kt,en)=>{Be.has(kt,en)||(Ln(Tt,q,Gt),Oe.delete(kt,en))}),Lt;function ke(Tt,kt){if(Tt===kt)return!0;if(!Tt||!kt)return!1;const en=Gt(Tt),En=Gt(kt);return en===En?!0:!en||!En?!1:en.resolvedFileName===En.resolvedFileName}}function vt(le,Fe,pt,j,it,Rt){return Bt({entries:le,containingFile:Fe,containingSourceFile:it,redirectedReference:pt,options:j,reusedNames:Rt,perFileCache:se,loader:l7(Fe,pt,j,b7(e),G),getResolutionWithResolvedFileName:ie,shouldRetryResolution:Ye=>Ye.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function $e(le,Fe,pt,j,it,Rt){return Bt({entries:le,containingFile:Fe,containingSourceFile:it,redirectedReference:pt,options:j,reusedNames:Rt,perFileCache:Q,loader:fce(Fe,pt,j,e,V),getResolutionWithResolvedFileName:de,shouldRetryResolution:Ye=>!Ye.resolvedModule||!KC(Ye.resolvedModule.extension),logChanges:r,deferWatchingNonRelativeResolution:!0})}function It(le,Fe,pt,j){const it=b7(e);let Rt=ne==null?void 0:ne.get(j);if(!Rt||Rt.isInvalidated){const Ye=Rt;Rt=DF(le,Fe,pt,it,he);const _t=e.toPath(Fe);Mn(le,Rt,_t,de,!1),ne.set(j,Rt),Ye&&Ln(Ye,_t,de)}else if(Vg(pt,it)){const Ye=de(Rt);bo(it,Ye!=null&&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,Fe,Ye==null?void 0:Ye.resolvedFileName,(Ye==null?void 0:Ye.packageId)&&ky(Ye.packageId))}return Rt}function tn(le,Fe){var pt,j;const it=e.toPath(Fe),Rt=Q.get(it),Ye=Rt==null?void 0:Rt.get(le,void 0);if(Ye&&!Ye.isInvalidated)return Ye;const _t=(pt=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:pt.call(e,V),Gt=b7(e),yn=iD(le,Fe,e.getCompilationSettings(),Gt,V);return(j=e.afterResolveSingleModuleNameWithoutWatching)==null||j.call(e,V,le,Fe,yn,_t),yn}function rn(le){return Al(le,"/node_modules/@types")}function Mn(le,Fe,pt,j,it){var Rt;if(Fe.refCount)Fe.refCount++,N.assertIsDefined(Fe.files);else{Fe.refCount=1,N.assert(!((Rt=Fe.files)!=null&&Rt.size)),!it||Xc(le)?gn(Fe):l.add(le,Fe);const Ye=j(Fe);if(Ye&&Ye.resolvedFileName){const _t=e.toPath(Ye.resolvedFileName);let Gt=h.get(_t);Gt||h.set(_t,Gt=new Set),Gt.add(Fe)}}(Fe.files??(Fe.files=new Set)).add(pt)}function $n(le,Fe){const pt=e.toPath(le),j=OJ(le,pt,X,oe,pe,U);if(j){const{dir:it,dirPath:Rt,nonRecursive:Ye}=j;Rt===oe?(N.assert(Ye),Fe=!0):Wi(it,Rt,Ye)}return Fe}function gn(le){N.assert(!!le.refCount);const{failedLookupLocations:Fe,affectingLocations:pt,alternateResult:j}=le;if(!(Fe!=null&&Fe.length)&&!(pt!=null&&pt.length)&&!j)return;(Fe!=null&&Fe.length||j)&&u.add(le);let it=!1;if(Fe)for(const Rt of Fe)it=$n(Rt,it);j&&(it=$n(j,it)),it&&Wi(X,oe,!0),Qt(le,!(Fe!=null&&Fe.length)&&!j)}function Qt(le,Fe){N.assert(!!le.refCount);const{affectingLocations:pt}=le;if(pt!=null&&pt.length){Fe&&p.add(le);for(const j of pt)Yt(j,!0)}}function Yt(le,Fe){const pt=Y.get(le);if(pt){Fe?pt.resolutions++:pt.files++;return}let j=le,it=!1,Rt;e.realpath&&(j=e.realpath(le),le!==j&&(it=!0,Rt=Y.get(j)));const Ye=Fe?1:0,_t=Fe?0:1;if(!it||!Rt){const Gt={watcher:cce(e.toPath(j))?e.watchAffectingFileLocation(j,(yn,fn)=>{K==null||K.addOrDeleteFile(yn,e.toPath(j),fn),vi(j,V.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):hD,resolutions:it?0:Ye,files:it?0:_t,symlinks:void 0};Y.set(j,Gt),it&&(Rt=Gt)}if(it){N.assert(!!Rt);const Gt={watcher:{close:()=>{var yn;const fn=Y.get(j);(yn=fn==null?void 0:fn.symlinks)!=null&&yn.delete(le)&&!fn.symlinks.size&&!fn.resolutions&&!fn.files&&(Y.delete(j),fn.watcher.close())}},resolutions:Ye,files:_t,symlinks:void 0};Y.set(le,Gt),(Rt.symlinks??(Rt.symlinks=new Set)).add(le)}}function vi(le,Fe){var pt;const j=Y.get(le);j!=null&&j.resolutions&&(A??(A=new Set)).add(le),j!=null&&j.files&&(T??(T=new Set)).add(le),(pt=j==null?void 0:j.symlinks)==null||pt.forEach(it=>vi(it,Fe)),Fe==null||Fe.delete(e.toPath(le))}function so(le,Fe){const pt=e.getCurrentProgram();!pt||!pt.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(Fe)?le.forEach(gn):le.forEach(j=>Qt(j,!0))}function Wi(le,Fe,pt){const j=ye.get(Fe);j?(N.assert(!!pt==!!j.nonRecursive),j.refCount++):ye.set(Fe,{watcher:Ar(le,Fe,pt),refCount:1,nonRecursive:pt})}function Co(le,Fe,pt){const j=e.toPath(le),it=OJ(le,j,X,oe,pe,U);if(it){const{dirPath:Rt}=it;Rt===oe?Fe=!0:Ci(Rt,pt)}return Fe}function Ln(le,Fe,pt,j){if(N.checkDefined(le.files).delete(Fe),le.refCount--,le.refCount)return;const it=pt(le);if(it&&it.resolvedFileName){const Gt=e.toPath(it.resolvedFileName),yn=h.get(Gt);yn!=null&&yn.delete(le)&&!yn.size&&h.delete(Gt)}const{failedLookupLocations:Rt,affectingLocations:Ye,alternateResult:_t}=le;if(u.delete(le)){let Gt=!1;if(Rt)for(const yn of Rt)Gt=Co(yn,Gt,j);_t&&(Gt=Co(_t,Gt,j)),Gt&&Ci(oe,j)}else Ye!=null&&Ye.length&&p.delete(le);if(Ye)for(const Gt of Ye){const yn=Y.get(Gt);yn.resolutions--,j&&ot(yn,Gt)}}function Ci(le,Fe){const pt=ye.get(le);pt.refCount--,Fe&&je(pt,le)}function Ar(le,Fe,pt){return e.watchDirectoryOfFailedLookupLocation(le,j=>{const it=e.toPath(j);K&&K.addOrDeleteFileOrDirectory(j,it),Qi(it,Fe===it)},pt?0:1)}function sn(le,Fe,pt,j){const it=le.get(Fe);it&&(it.forEach(Rt=>Ln(Rt,Fe,pt,j)),le.delete(Fe))}function tt(le){if(!Il(le,".json"))return;const Fe=e.getCurrentProgram();if(!Fe)return;const pt=Fe.getResolvedProjectReferenceByPath(le);pt&&pt.commandLine.fileNames.forEach(j=>zt(e.toPath(j)))}function zt(le,Fe){sn(Q,le,de,Fe),sn(se,le,ie,Fe)}function Dn(le,Fe){if(!le)return!1;let pt=!1;return le.forEach(j=>{if(!(j.isInvalidated||!Fe(j))){j.isInvalidated=pt=!0;for(const it of N.checkDefined(j.files))(o??(o=new Set)).add(it),y=y||Al(it,fD)}}),pt}function ci(le){zt(le);const Fe=y;Dn(h.get(le),Iv)&&y&&!Fe&&e.onChangedAutomaticTypeDirectiveNames()}function yi(le){N.assert(s===le||s===void 0),s=le}function Qi(le,Fe){if(Fe)(C||(C=new Set)).add(le);else{const pt=v7(le);if(!pt||(le=pt,e.fileIsOpen(le)))return!1;const j=ai(le);if(rn(le)||Z6(le)||rn(j)||Z6(j))(R||(R=new Set)).add(le),(M||(M=new Set)).add(le);else{if(zle(e.getCurrentProgram(),le)||Il(le,".map"))return!1;(R||(R=new Set)).add(le);const it=yw(le,!0);it&&(M||(M=new Set)).add(it)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Io(){const le=V.getPackageJsonInfoCache().getInternalMap();le&&(R||M||C)&&le.forEach((Fe,pt)=>Tn(pt)?le.delete(pt):void 0)}function fa(){var le;if(O)return T=void 0,Io(),(R||M||C||A)&&Dn(ne,ka),R=void 0,M=void 0,C=void 0,A=void 0,!0;let Fe=!1;return T&&((le=e.getCurrentProgram())==null||le.getSourceFiles().forEach(pt=>{bt(pt.packageJsonLocations,j=>T.has(j))&&((o??(o=new Set)).add(pt.path),Fe=!0)}),T=void 0),!R&&!M&&!C&&!A||(Fe=Dn(u,ka)||Fe,Io(),R=void 0,M=void 0,C=void 0,Fe=Dn(p,wn)||Fe,A=void 0),Fe}function ka(le){var Fe;return wn(le)?!0:!R&&!M&&!C?!1:((Fe=le.failedLookupLocations)==null?void 0:Fe.some(pt=>Tn(e.toPath(pt))))||!!le.alternateResult&&Tn(e.toPath(le.alternateResult))}function Tn(le){return(R==null?void 0:R.has(le))||pn((M==null?void 0:M.keys())||[],Fe=>uo(le,Fe)?!0:void 0)||pn((C==null?void 0:C.keys())||[],Fe=>le.length>Fe.length&&uo(le,Fe)&&(pV(Fe)||le[Fe.length]===ol)?!0:void 0)}function wn(le){var Fe;return!!A&&((Fe=le.affectingLocations)==null?void 0:Fe.some(pt=>A.has(pt)))}function He(){ep(Ce,Xm)}function mt(le){return Ct(le)?e.watchTypeRootsDirectory(le,Fe=>{const pt=e.toPath(Fe);K&&K.addOrDeleteFileOrDirectory(Fe,pt),y=!0,e.onChangedAutomaticTypeDirectiveNames();const j=dce(le,e.toPath(le),oe,pe,U,it=>ye.has(it));j&&Qi(pt,j===pt)},1):hD}function ft(){const le=e.getCompilationSettings();if(le.types){He();return}const Fe=LP(le,{getCurrentDirectory:U});Fe?UC(Ce,new Set(Fe),{createNewValue:mt,onDeleteValue:Xm}):He()}function Ct(le){return e.getCompilationSettings().typeRoots?!0:lce(e.toPath(le))}}function KUe(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var XUe=I({"src/compiler/resolutionCache.ts"(){ra()}});function jw(e,t){const r=e===gu&&bce?bce:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Mu(e.useCaseSensitiveFileNames)};if(!t)return o=>e.write(dJ(o,r));const i=new Array(1);return o=>{i[0]=o,e.write(jle(i,r)+r.getNewLine()),i[0]=void 0}}function Fxe(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&Or(x7,t.code)?(e.clearScreen(),!0):!1}function YUe(e,t){return Or(x7,e.code)?t+t:t}function Uw(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):new Date().toLocaleTimeString()}function mce(e,t){return t?(r,i,o)=>{Fxe(e,r,o);let s=`[${p1(Uw(e),"\x1B[90m")}] `;s+=`${W_(r.messageText,e.newLine)}${i+i}`,e.write(s)}:(r,i,o)=>{let s="";Fxe(e,r,o)||(s+=i),s+=`${Uw(e)} - `,s+=`${W_(r.messageText,e.newLine)}${YUe(r,i)}`,e.write(s)}}function zxe(e,t,r,i,o,s){const l=o;l.onUnRecoverableConfigFileDiagnostic=p=>Vxe(o,s,p);const u=aw(e,t,l,r,i);return l.onUnRecoverableConfigFileDiagnostic=void 0,u}function E7(e){return ou(e,t=>t.category===1)}function S7(e){return mn(e,r=>r.category===1).map(r=>{if(r.file!==void 0)return`${r.file.fileName}`}).map(r=>{if(r===void 0)return;const i=In(e,o=>o.file!==void 0&&o.file.fileName===r);if(i!==void 0){const{line:o}=ys(i.file,i.start);return{fileName:r,line:o+1}}})}function FJ(e){return e===1?f.Found_1_error_Watching_for_file_changes:f.Found_0_errors_Watching_for_file_changes}function Bxe(e,t){const r=p1(":"+e.line,"\x1B[90m");return ZN(e.fileName)&&ZN(t)?vm(t,e.fileName,!1)+r:e.fileName+r}function _ce(e,t,r,i){if(e===0)return"";const o=t.filter(m=>m!==void 0),s=o.map(m=>`${m.fileName}:${m.line}`).filter((m,y,T)=>T.indexOf(m)===y),l=o[0]&&Bxe(o[0],i.getCurrentDirectory());let 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];const p=Ul(...u),h=s.length>1?$Ue(o,i):"";return`${r}${W_(p.messageText,r)}${r}${r}${h}`}function $Ue(e,t){const r=e.filter((y,T,A)=>T===A.findIndex(R=>(R==null?void 0:R.fileName)===(y==null?void 0:y.fileName)));if(r.length===0)return"";const i=y=>Math.log(y)*Math.LOG10E+1,o=r.map(y=>[y,ou(e,T=>T.fileName===y.fileName)]),s=o.reduce((y,T)=>Math.max(y,T[1]||0),0),l=f.Errors_Files.message,u=l.split(" ")[0].length,p=Math.max(u,i(s)),h=Math.max(i(s)-u,0);let m="";return m+=" ".repeat(h)+l+` +`,o.forEach(y=>{const[T,A]=y,R=Math.log(A)*Math.LOG10E+1|0,M=R<p?" ".repeat(p-R):"",C=Bxe(T,t.getCurrentDirectory());m+=`${M}${A} ${C} +`}),m}function hce(e){return!!e.getState}function zJ(e,t){const r=e.getCompilerOptions();r.explainFiles?BJ(hce(e)?e.getProgram():e,t):(r.listFiles||r.listFilesOnly)&&Xe(e.getSourceFiles(),i=>{t(i.fileName)})}function BJ(e,t){var r,i;const o=e.getFileIncludeReasons(),s=l=>eC(l,e.getCurrentDirectory(),e.getCanonicalFileName);for(const l of e.getSourceFiles())t(`${_D(l,s)}`),(r=o.get(l.path))==null||r.forEach(u=>t(` ${UJ(e,u,s).messageText}`)),(i=GJ(l,s))==null||i.forEach(u=>t(` ${u.messageText}`))}function GJ(e,t){var r;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(Vo(void 0,f.File_is_output_of_project_reference_source_0,_D(e.originalFileName,t))),e.redirectInfo&&(i??(i=[])).push(Vo(void 0,f.File_redirects_to_file_0,_D(e.redirectInfo.redirectTarget,t))),Fp(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i??(i=[])).push(Vo(void 0,f.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,_D(Xa(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i??(i=[])).push(Vo(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,_D(Xa(e.packageJsonLocations),t))):(r=e.packageJsonLocations)!=null&&r.length&&(i??(i=[])).push(Vo(void 0,f.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function VJ(e,t){var r;const i=e.getCompilerOptions().configFile;if(!((r=i==null?void 0:i.configFileSpecs)!=null&&r.validatedFilesSpec))return;const o=e.getCanonicalFileName(t),s=ai(go(i.fileName,e.getCurrentDirectory()));return In(i.configFileSpecs.validatedFilesSpec,l=>e.getCanonicalFileName(go(l,s))===o)}function jJ(e,t){var r,i;const o=e.getCompilerOptions().configFile;if(!((r=o==null?void 0:o.configFileSpecs)!=null&&r.validatedIncludeSpecs))return;if(o.configFileSpecs.isDefaultIncludeSpec)return!0;const s=Il(t,".json"),l=ai(go(o.fileName,e.getCurrentDirectory())),u=e.useCaseSensitiveFileNames();return In((i=o==null?void 0:o.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,p=>{if(s&&!Al(p,".json"))return!1;const h=_oe(p,l,"files");return!!h&&By(`(${h})$`,u).test(t)})}function UJ(e,t,r){var i,o;const s=e.getCompilerOptions();if(D0(t)){const l=XP(e,t),u=dD(l)?l.file.text.substring(l.pos,l.end):`"${l.text}"`;let p;switch(N.assert(dD(l)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:dD(l)?p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2:f.Imported_via_0_from_file_1:l.text===Vy?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:N.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:N.assert(!l.packageId),p=f.Library_referenced_via_0_from_file_1;break;default:N.assertNever(t)}return Vo(void 0,p,u,_D(l.file,r),l.packageId&&ky(l.packageId))}switch(t.kind){case 0:if(!((i=s.configFile)!=null&&i.configFileSpecs))return Vo(void 0,f.Root_file_specified_for_compilation);const l=go(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(VJ(e,l))return Vo(void 0,f.Part_of_files_list_in_tsconfig_json);const p=jJ(e,l);return Mo(p)?Vo(void 0,f.Matched_by_include_pattern_0_in_1,p,_D(s.configFile,r)):Vo(void 0,p?f.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:f.Root_file_specified_for_compilation);case 1:case 2:const h=t.kind===2,m=N.checkDefined((o=e.getResolvedProjectReferences())==null?void 0:o[t.index]);return Vo(void 0,Ps(s)?h?f.Output_from_referenced_project_0_included_because_1_specified:f.Source_from_referenced_project_0_included_because_1_specified:h?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,_D(m.sourceFile.fileName,r),s.outFile?"--outFile":"--out");case 8:{const y=s.types?t.packageId?[f.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,ky(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,ky(t.packageId)]:[f.Entry_point_for_implicit_type_library_0,t.typeReference];return Vo(void 0,...y)}case 6:{if(t.index!==void 0)return Vo(void 0,f.Library_0_specified_in_compilerOptions,s.lib[t.index]);const y=zc(mw.type,(A,R)=>A===os(s)?R:void 0),T=y?[f.Default_library_for_target_0,y]:[f.Default_library];return Vo(void 0,...T)}default:N.assertNever(t)}}function _D(e,t){const r=Mo(e)?e:e.fileName;return t?t(r):r}function T7(e,t,r,i,o,s,l,u){const p=!!e.getCompilerOptions().listFilesOnly,h=e.getConfigFileParsingDiagnostics().slice(),m=h.length;qr(h,e.getSyntacticDiagnostics(void 0,s)),h.length===m&&(qr(h,e.getOptionsDiagnostics(s)),p||(qr(h,e.getGlobalDiagnostics(s)),h.length===m&&qr(h,e.getSemanticDiagnostics(void 0,s))));const y=p?{emitSkipped:!0,diagnostics:et}:e.emit(void 0,o,s,l,u),{emittedFiles:T,diagnostics:A}=y;qr(h,A);const R=Ux(h);if(R.forEach(t),r){const M=e.getCurrentDirectory();Xe(T,C=>{const O=go(C,M);r(`TSFILE: ${O}`)}),zJ(e,r)}return i&&i(E7(R),S7(R)),{emitResult:y,diagnostics:R}}function gce(e,t,r,i,o,s,l,u){const{emitResult:p,diagnostics:h}=T7(e,t,r,i,o,s,l,u);return p.emitSkipped&&h.length>0?1:h.length>0?2:0}function HJ(e=gu,t){return{onWatchStatusChange:t||mce(e),watchFile:ia(e,e.watchFile)||gD,watchDirectory:ia(e,e.watchDirectory)||gD,setTimeout:ia(e,e.setTimeout)||Ya,clearTimeout:ia(e,e.clearTimeout)||Ya}}function qJ(e,t){const r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?s=>e.trace(s):Ya,o=oJ(e,r,i);return o.writeLog=i,o}function JJ(e,t,r=e){const i=e.useCaseSensitiveFileNames(),o={getSourceFile:lJ((s,l)=>l?e.readFile(s,l):o.readFile(s),t,void 0),getDefaultLibLocation:ia(e,e.getDefaultLibLocation),getDefaultLibFileName:s=>e.getDefaultLibFileName(s),writeFile:cJ((s,l,u)=>e.writeFile(s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s)),getCurrentDirectory:Sd(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:Mu(i),getNewLine:()=>Fv(t()),fileExists:s=>e.fileExists(s),readFile:s=>e.readFile(s),trace:ia(e,e.trace),directoryExists:ia(r,r.directoryExists),getDirectories:ia(r,r.getDirectories),realpath:ia(e,e.realpath),getEnvironmentVariable:ia(e,e.getEnvironmentVariable)||(()=>""),createHash:ia(e,e.createHash),readDirectory:ia(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:e.jsDocParsingMode};return o}function A7(e,t){if(t.match(Lq)){let r=t.length,i=r;for(let o=r-1;o>=0;o--){const s=t.charCodeAt(o);switch(s){case 10:o&&t.charCodeAt(o-1)===13&&o--;case 13:break;default:if(s<127||!Hu(s)){i=o;continue}break}const l=t.substring(i,r);if(l.match(GF)){t=t.substring(0,i);break}else if(!l.match(VF))break;r=i}}return(e.createHash||QN)(t)}function I7(e){const t=e.getSourceFile;e.getSourceFile=(...r)=>{const i=t.call(e,...r);return i&&(i.version=A7(e,i.text)),i}}function KJ(e,t){const r=Sd(()=>ai(ha(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Sd(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>$r(r(),Z2(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:ia(e,e.realpath),getEnvironmentVariable:ia(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:ia(e,e.createHash),createProgram:t||wJ,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:ia(e,e.now)}}function Gxe(e=gu,t,r,i){const o=l=>e.write(l+e.newLine),s=KJ(e,t);return JB(s,HJ(e,i)),s.afterProgramCreate=l=>{const u=l.getCompilerOptions(),p=Fv(u);T7(l,r,o,h=>s.onWatchStatusChange(Ul(FJ(h),h),p,u,h))},s}function Vxe(e,t,r){t(r),e.exit(1)}function vce({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){const p=l||jw(o),h=Gxe(o,s,p,u);return h.onUnRecoverableConfigFileDiagnostic=m=>Vxe(o,p,m),h.configFileName=e,h.optionsToExtend=t,h.watchOptionsToExtend=r,h.extraFileExtensions=i,h}function yce({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){const p=Gxe(o,s,l||jw(o),u);return p.rootFiles=e,p.options=t,p.watchOptions=r,p.projectReferences=i,p}function jxe(e){const t=e.system||gu,r=e.host||(e.host=XJ(e.options,t)),i=Ece(e),o=gce(i,e.reportDiagnostic||jw(t),s=>r.trace&&r.trace(s),e.reportErrorSummary||e.options.pretty?(s,l)=>t.write(_ce(s,l,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),o}var bce,x7,hD,gD,Lc,QUe=I({"src/compiler/watch.ts"(){ra(),bce=gu?{getCurrentDirectory:()=>gu.getCurrentDirectory(),getNewLine:()=>gu.newLine,getCanonicalFileName:Mu(gu.useCaseSensitiveFileNames)}:void 0,x7=[f.Starting_compilation_in_watch_mode.code,f.File_change_detected_Starting_incremental_compilation.code],hD={close:Ya},gD=()=>hD,Lc={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 R7(e,t){const r=Hv(e);if(!r)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(r,e.configFilePath);else{const o=t.readFile(r);if(!o)return;i=n7(r,o)}if(!(!i||i.version!==Re||!i.program))return ace(i,r,t)}function XJ(e,t=gu){const r=uJ(e,void 0,t);return r.createHash=ia(t,t.createHash),r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,I7(r),Fw(r,i=>il(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function Ece({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:o,createProgram:s}){o=o||XJ(t),s=s||wJ;const l=R7(t,o);return s(e,t,o,l,r,i)}function Uxe(e,t,r,i,o,s,l,u){return To(e)?yce({rootFiles:e,options:t,watchOptions:u,projectReferences:l,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s}):vce({configFileName:e,optionsToExtend:t,watchOptionsToExtend:l,extraFileExtensions:u,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s})}function Hxe(e){let t,r,i,o,s,l,u,p,h=e.extendedConfigCache,m=!1;const y=new Map;let T,A=!1;const R=e.useCaseSensitiveFileNames(),M=e.getCurrentDirectory(),{configFileName:C,optionsToExtend:O={},watchOptionsToExtend:U,extraFileExtensions:K,createProgram:Q}=e;let{rootFiles:V,options:se,watchOptions:G,projectReferences:ne}=e,he,ye,Y=!1,X=!1;const oe=C===void 0?void 0:i7(e,M,R),pe=oe||e,Ce=f7(e,pe);let de=Mn();C&&e.configFileParsingResult&&(ka(e.configFileParsingResult),de=Mn()),Ln(f.Starting_compilation_in_watch_mode),C&&!e.configFileParsingResult&&(de=Fv(O),N.assert(!V),fa(),de=Mn()),N.assert(se),N.assert(V);const{watchFile:ie,watchDirectory:ve,writeLog:Le}=qJ(e,se),Ue=Mu(R);Le(`Current directory: ${M} CaseSensitiveFileNames: ${R}`);let Ee;C&&(Ee=ie(C,Dn,2e3,G,Lc.ConfigFile));const De=JJ(e,()=>se,pe);I7(De);const Me=De.getSourceFile;De.getSourceFile=(Ye,..._t)=>vi(Ye,$n(Ye),..._t),De.getSourceFileByPath=vi,De.getNewLine=()=>de,De.fileExists=Yt,De.onReleaseOldSourceFile=Co,De.onReleaseParsedCommandLine=He,De.toPath=$n,De.getCompilationSettings=()=>se,De.useSourceOfProjectReferenceRedirect=ia(e,e.useSourceOfProjectReferenceRedirect),De.watchDirectoryOfFailedLookupLocation=(Ye,_t,Gt)=>ve(Ye,_t,Gt,G,Lc.FailedLookupLocations),De.watchAffectingFileLocation=(Ye,_t)=>ie(Ye,_t,2e3,G,Lc.AffectingFileLocation),De.watchTypeRootsDirectory=(Ye,_t,Gt)=>ve(Ye,_t,Gt,G,Lc.TypeRoots),De.getCachedDirectoryStructureHost=()=>oe,De.scheduleInvalidateResolutionsOfFailedLookupLocations=sn,De.onInvalidatedResolution=zt,De.onChangedAutomaticTypeDirectiveNames=zt,De.fileIsOpen=qm,De.getCurrentProgram=$e,De.writeLog=Le,De.getParsedCommandLine=Tn;const We=WJ(De,C?ai(go(C,M)):M,!1);De.resolveModuleNameLiterals=ia(e,e.resolveModuleNameLiterals),De.resolveModuleNames=ia(e,e.resolveModuleNames),!De.resolveModuleNameLiterals&&!De.resolveModuleNames&&(De.resolveModuleNameLiterals=We.resolveModuleNameLiterals.bind(We)),De.resolveTypeReferenceDirectiveReferences=ia(e,e.resolveTypeReferenceDirectiveReferences),De.resolveTypeReferenceDirectives=ia(e,e.resolveTypeReferenceDirectives),!De.resolveTypeReferenceDirectiveReferences&&!De.resolveTypeReferenceDirectives&&(De.resolveTypeReferenceDirectiveReferences=We.resolveTypeReferenceDirectiveReferences.bind(We)),De.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):We.resolveLibrary.bind(We),De.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?ia(e,e.getModuleResolutionCache):()=>We.getModuleResolutionCache();const Se=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?ia(e,e.hasInvalidatedResolutions)||Iv:qm,je=e.resolveLibrary?ia(e,e.hasInvalidatedLibResolutions)||Iv:qm;return t=R7(se,De),It(),pt(),C&&it($n(C),se,G,Lc.ExtendedConfigFile),C?{getCurrentProgram:vt,getProgram:yi,close:ot,getResolutionCache:Bt}:{getCurrentProgram:vt,getProgram:yi,updateRootFileNames:rn,close:ot,getResolutionCache:Bt};function ot(){Ar(),We.clear(),ep(y,Ye=>{Ye&&Ye.fileWatcher&&(Ye.fileWatcher.close(),Ye.fileWatcher=void 0)}),Ee&&(Ee.close(),Ee=void 0),h==null||h.clear(),h=void 0,p&&(ep(p,Cf),p=void 0),o&&(ep(o,Cf),o=void 0),i&&(ep(i,Xm),i=void 0),u&&(ep(u,Ye=>{var _t;(_t=Ye.watcher)==null||_t.close(),Ye.watcher=void 0,Ye.watchedDirectories&&ep(Ye.watchedDirectories,Cf),Ye.watchedDirectories=void 0}),u=void 0)}function Bt(){return We}function vt(){return t}function $e(){return t&&t.getProgramOrUndefined()}function It(){Le("Synchronizing program"),N.assert(se),N.assert(V),Ar();const Ye=vt();A&&(de=Mn(),Ye&&I4(Ye.getCompilerOptions(),se)&&We.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:_t,hasInvalidatedLibResolutions:Gt}=We.createHasInvalidatedResolutions(Se,je),{originalReadFile:yn,originalFileExists:fn,originalDirectoryExists:hn,originalCreateDirectory:q,originalWriteFile:Oe,readFileWithCache:Lt}=Fw(De,$n);return bJ($e(),V,se,L=>Wi(L,Lt),L=>De.fileExists(L),_t,Gt,Ci,Tn,ne)?X&&(m&&Ln(f.File_change_detected_Starting_incremental_compilation),t=Q(void 0,void 0,De,t,ye,ne),X=!1):(m&&Ln(f.File_change_detected_Starting_incremental_compilation),tn(_t,Gt)),m=!1,e.afterProgramCreate&&Ye!==t&&e.afterProgramCreate(t),De.readFile=yn,De.fileExists=fn,De.directoryExists=hn,De.createDirectory=q,De.writeFile=Oe,t}function tn(Ye,_t){Le("CreatingProgramWith::"),Le(` roots: ${JSON.stringify(V)}`),Le(` options: ${JSON.stringify(se)}`),ne&&Le(` projectReferences: ${JSON.stringify(ne)}`);const Gt=A||!$e();A=!1,X=!1,We.startCachingPerDirectoryResolution(),De.hasInvalidatedResolutions=Ye,De.hasInvalidatedLibResolutions=_t,De.hasChangedAutomaticTypeDirectiveNames=Ci;const yn=$e();if(t=Q(V,se,De,t,ye,ne),We.finishCachingPerDirectoryResolution(t.getProgram(),yn),iJ(t.getProgram(),i||(i=new Map),le),Gt&&We.updateTypeRootsWatch(),T){for(const fn of T)i.has(fn)||y.delete(fn);T=void 0}}function rn(Ye){N.assert(!C,"Cannot update root file names with config file watch mode"),V=Ye,zt()}function Mn(){return Fv(se||O)}function $n(Ye){return il(Ye,M,Ue)}function gn(Ye){return typeof Ye=="boolean"}function Qt(Ye){return typeof Ye.version=="boolean"}function Yt(Ye){const _t=$n(Ye);return gn(y.get(_t))?!1:pe.fileExists(Ye)}function vi(Ye,_t,Gt,yn,fn){const hn=y.get(_t);if(gn(hn))return;const q=typeof Gt=="object"?Gt.impliedNodeFormat:void 0;if(hn===void 0||fn||Qt(hn)||hn.sourceFile.impliedNodeFormat!==q){const Oe=Me(Ye,Gt,yn);if(hn)Oe?(hn.sourceFile=Oe,hn.version=Oe.version,hn.fileWatcher||(hn.fileWatcher=mt(_t,Ye,ft,250,G,Lc.SourceFile))):(hn.fileWatcher&&hn.fileWatcher.close(),y.set(_t,!1));else if(Oe){const Lt=mt(_t,Ye,ft,250,G,Lc.SourceFile);y.set(_t,{sourceFile:Oe,version:Oe.version,fileWatcher:Lt})}else y.set(_t,!1);return Oe}return hn.sourceFile}function so(Ye){const _t=y.get(Ye);_t!==void 0&&(gn(_t)?y.set(Ye,{version:!1}):_t.version=!1)}function Wi(Ye,_t){const Gt=y.get(Ye);if(!Gt)return;if(Gt.version)return Gt.version;const yn=_t(Ye);return yn!==void 0?A7(De,yn):void 0}function Co(Ye,_t,Gt){const yn=y.get(Ye.resolvedPath);yn!==void 0&&(gn(yn)?(T||(T=[])).push(Ye.path):yn.sourceFile===Ye&&(yn.fileWatcher&&yn.fileWatcher.close(),y.delete(Ye.resolvedPath),Gt||We.removeResolutionsOfFile(Ye.path)))}function Ln(Ye){e.onWatchStatusChange&&e.onWatchStatusChange(Ul(Ye),de,se||O)}function Ci(){return We.hasChangedAutomaticTypeDirectiveNames()}function Ar(){return l?(e.clearTimeout(l),l=void 0,!0):!1}function sn(){if(!e.setTimeout||!e.clearTimeout)return We.invalidateResolutionsOfFailedLookupLocations();const Ye=Ar();Le(`Scheduling invalidateFailedLookup${Ye?", Cancelled earlier one":""}`),l=e.setTimeout(tt,250,"timerToInvalidateFailedLookupResolutions")}function tt(){l=void 0,We.invalidateResolutionsOfFailedLookupLocations()&&zt()}function zt(){!e.setTimeout||!e.clearTimeout||(s&&e.clearTimeout(s),Le("Scheduling update"),s=e.setTimeout(ci,250,"timerToUpdateProgram"))}function Dn(){N.assert(!!C),r=2,zt()}function ci(){s=void 0,m=!0,yi()}function yi(){var Ye,_t,Gt,yn;switch(r){case 1:(Ye=id)==null||Ye.logStartUpdateProgram("PartialConfigReload"),Qi();break;case 2:(_t=id)==null||_t.logStartUpdateProgram("FullConfigReload"),Io();break;default:(Gt=id)==null||Gt.logStartUpdateProgram("SynchronizeProgram"),It();break}return(yn=id)==null||yn.logStopUpdateProgram("Done"),vt()}function Qi(){Le("Reloading new file names and options"),N.assert(se),N.assert(C),r=0,V=CP(se.configFile.configFileSpecs,go(ai(C),M),se,Ce,K),mF(V,go(C,M),se.configFile.configFileSpecs,ye,Y)&&(X=!0),It()}function Io(){N.assert(C),Le(`Reloading config file: ${C}`),r=0,oe&&oe.clearCache(),fa(),A=!0,It(),pt(),it($n(C),se,G,Lc.ExtendedConfigFile)}function fa(){N.assert(C),ka(aw(C,O,Ce,h||(h=new Map),U,K))}function ka(Ye){V=Ye.fileNames,se=Ye.options,G=Ye.watchOptions,ne=Ye.projectReferences,he=Ye.wildcardDirectories,ye=$S(Ye).slice(),Y=NP(Ye.raw),X=!0}function Tn(Ye){const _t=$n(Ye);let Gt=u==null?void 0:u.get(_t);if(Gt){if(!Gt.updateLevel)return Gt.parsedCommandLine;if(Gt.parsedCommandLine&&Gt.updateLevel===1&&!e.getParsedCommandLine){Le("Reloading new file names and options"),N.assert(se);const fn=CP(Gt.parsedCommandLine.options.configFile.configFileSpecs,go(ai(Ye),M),se,Ce);return Gt.parsedCommandLine={...Gt.parsedCommandLine,fileNames:fn},Gt.updateLevel=void 0,Gt.parsedCommandLine}}Le(`Loading config file: ${Ye}`);const yn=e.getParsedCommandLine?e.getParsedCommandLine(Ye):wn(Ye);return Gt?(Gt.parsedCommandLine=yn,Gt.updateLevel=void 0):(u||(u=new Map)).set(_t,Gt={parsedCommandLine:yn}),Rt(Ye,_t,Gt),yn}function wn(Ye){const _t=Ce.onUnRecoverableConfigFileDiagnostic;Ce.onUnRecoverableConfigFileDiagnostic=Ya;const Gt=aw(Ye,void 0,Ce,h||(h=new Map),U);return Ce.onUnRecoverableConfigFileDiagnostic=_t,Gt}function He(Ye){var _t;const Gt=$n(Ye),yn=u==null?void 0:u.get(Gt);yn&&(u.delete(Gt),yn.watchedDirectories&&ep(yn.watchedDirectories,Cf),(_t=yn.watcher)==null||_t.close(),rJ(Gt,p))}function mt(Ye,_t,Gt,yn,fn,hn){return ie(_t,(q,Oe)=>Gt(q,Oe,Ye),yn,fn,hn)}function ft(Ye,_t,Gt){Ct(Ye,Gt,_t),_t===2&&y.has(Gt)&&We.invalidateResolutionOfFile(Gt),so(Gt),zt()}function Ct(Ye,_t,Gt){oe&&oe.addOrDeleteFile(Ye,_t,Gt)}function le(Ye,_t){return u!=null&&u.has(Ye)?hD:mt(Ye,_t,Fe,500,G,Lc.MissingFile)}function Fe(Ye,_t,Gt){Ct(Ye,Gt,_t),_t===0&&i.has(Gt)&&(i.get(Gt).close(),i.delete(Gt),so(Gt),zt())}function pt(){ww(o||(o=new Map),he,j)}function j(Ye,_t){return ve(Ye,Gt=>{N.assert(C),N.assert(se);const yn=$n(Gt);oe&&oe.addOrDeleteFileOrDirectory(Gt,yn),so(yn),!Ow({watchedDirPath:$n(Ye),fileOrDirectory:Gt,fileOrDirectoryPath:yn,configFileName:C,extraFileExtensions:K,options:se,program:vt()||V,currentDirectory:M,useCaseSensitiveFileNames:R,writeLog:Le,toPath:$n})&&r!==2&&(r=1,zt())},_t,G,Lc.WildcardDirectory)}function it(Ye,_t,Gt,yn){o7(Ye,_t,p||(p=new Map),(fn,hn)=>ie(fn,(q,Oe)=>{var Lt;Ct(fn,hn,Oe),h&&a7(h,hn,$n);const L=(Lt=p.get(hn))==null?void 0:Lt.projects;L!=null&&L.size&&L.forEach(me=>{if(C&&$n(C)===me)r=2;else{const J=u==null?void 0:u.get(me);J&&(J.updateLevel=2),We.removeResolutionsFromProjectReferenceRedirects(me)}zt()})},2e3,Gt,yn),$n)}function Rt(Ye,_t,Gt){var yn,fn,hn,q;Gt.watcher||(Gt.watcher=ie(Ye,(Oe,Lt)=>{Ct(Ye,_t,Lt);const L=u==null?void 0:u.get(_t);L&&(L.updateLevel=2),We.removeResolutionsFromProjectReferenceRedirects(_t),zt()},2e3,((yn=Gt.parsedCommandLine)==null?void 0:yn.watchOptions)||G,Lc.ConfigFileOfReferencedProject)),ww(Gt.watchedDirectories||(Gt.watchedDirectories=new Map),(fn=Gt.parsedCommandLine)==null?void 0:fn.wildcardDirectories,(Oe,Lt)=>{var L;return ve(Oe,me=>{const J=$n(me);oe&&oe.addOrDeleteFileOrDirectory(me,J),so(J);const fe=u==null?void 0:u.get(_t);fe!=null&&fe.parsedCommandLine&&(Ow({watchedDirPath:$n(Oe),fileOrDirectory:me,fileOrDirectoryPath:J,configFileName:Ye,options:fe.parsedCommandLine.options,program:fe.parsedCommandLine.fileNames,currentDirectory:M,useCaseSensitiveFileNames:R,writeLog:Le,toPath:$n})||fe.updateLevel!==2&&(fe.updateLevel=1,zt()))},Lt,((L=Gt.parsedCommandLine)==null?void 0:L.watchOptions)||G,Lc.WildcardDirectoryOfReferencedProject)}),it(_t,(hn=Gt.parsedCommandLine)==null?void 0:hn.options,((q=Gt.parsedCommandLine)==null?void 0:q.watchOptions)||G,Lc.ExtendedConfigOfReferencedProject)}}var ZUe=I({"src/compiler/watchPublic.ts"(){ra()}});function YJ(e){return Il(e,".json")?e:$r(e,"tsconfig.json")}var $J,eHe=I({"src/compiler/tsbuild.ts"(){ra(),$J=(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))($J||{})}});function tHe(e,t,r){const i=e.get(t);let o;return i||(o=r(),e.set(t,o)),i||o}function Sce(e,t){return tHe(e,t,()=>new Map)}function Hw(e){return e.now?e.now():new Date}function bI(e){return!!e&&!!e.buildOrder}function D7(e){return bI(e)?e.buildOrder:e}function Tce(e,t){return r=>{let i=t?`[${p1(Uw(e),"\x1B[90m")}] `:`${Uw(e)} - `;i+=`${W_(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function qxe(e,t,r,i){const o=KJ(e,t);return o.getModifiedTime=e.getModifiedTime?s=>e.getModifiedTime(s):Yb,o.setModifiedTime=e.setModifiedTime?(s,l)=>e.setModifiedTime(s,l):Ya,o.deleteFile=e.deleteFile?s=>e.deleteFile(s):Ya,o.reportDiagnostic=r||jw(e),o.reportSolutionBuilderStatus=i||Tce(e),o.now=ia(e,e.now),o}function Jxe(e=gu,t,r,i,o){const s=qxe(e,t,r,i);return s.reportErrorSummary=o,s}function Kxe(e=gu,t,r,i,o){const s=qxe(e,t,r,i),l=HJ(e,o);return JB(s,l),s}function nHe(e){const t={};return fw.forEach(r=>{Is(e,r.name)&&(t[r.name]=e[r.name])}),t}function Xxe(e,t,r){return yRe(!1,e,t,r)}function Yxe(e,t,r,i){return yRe(!0,e,t,r,i)}function rHe(e,t,r,i,o){const s=t,l=t,u=nHe(i),p=JJ(s,()=>M.projectCompilerOptions);I7(p),p.getParsedCommandLine=C=>EI(M,C,F_(M,C)),p.resolveModuleNameLiterals=ia(s,s.resolveModuleNameLiterals),p.resolveTypeReferenceDirectiveReferences=ia(s,s.resolveTypeReferenceDirectiveReferences),p.resolveLibrary=ia(s,s.resolveLibrary),p.resolveModuleNames=ia(s,s.resolveModuleNames),p.resolveTypeReferenceDirectives=ia(s,s.resolveTypeReferenceDirectives),p.getModuleResolutionCache=ia(s,s.getModuleResolutionCache);let h,m;!p.resolveModuleNameLiterals&&!p.resolveModuleNames&&(h=rD(p.getCurrentDirectory(),p.getCanonicalFileName),p.resolveModuleNameLiterals=(C,O,U,K,Q)=>Bw(C,O,U,K,Q,s,h,hJ),p.getModuleResolutionCache=()=>h),!p.resolveTypeReferenceDirectiveReferences&&!p.resolveTypeReferenceDirectives&&(m=RF(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,h==null?void 0:h.getPackageJsonInfoCache(),h==null?void 0:h.optionsToRedirectsKey),p.resolveTypeReferenceDirectiveReferences=(C,O,U,K,Q)=>Bw(C,O,U,K,Q,s,m,l7));let y;p.resolveLibrary||(y=rD(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,h==null?void 0:h.getPackageJsonInfoCache()),p.resolveLibrary=(C,O,U)=>DF(C,O,U,s,y)),p.getBuildInfo=(C,O)=>uRe(M,C,F_(M,O),void 0);const{watchFile:T,watchDirectory:A,writeLog:R}=qJ(l,i),M={host:s,hostWithWatch:l,parseConfigFileHost:f7(s),write:ia(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:h,typeReferenceDirectiveResolutionCache:m,libraryResolutionCache:y,buildOrder:void 0,readFileWithCache:C=>s.readFile(C),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:A,writeLog:R};return M}function Pf(e,t){return il(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function F_(e,t){const{resolvedConfigFilePaths:r}=e,i=r.get(t);if(i!==void 0)return i;const o=Pf(e,t);return r.set(t,o),o}function $xe(e){return!!e.options}function iHe(e,t){const r=e.configFileCache.get(t);return r&&$xe(r)?r:void 0}function EI(e,t,r){const{configFileCache:i}=e,o=i.get(r);if(o)return $xe(o)?o:void 0;rl("SolutionBuilder::beforeConfigFileParsing");let s;const{parseConfigFileHost:l,baseCompilerOptions:u,baseWatchOptions:p,extendedConfigCache:h,host:m}=e;let y;return m.getParsedCommandLine?(y=m.getParsedCommandLine(t),y||(s=Ul(f.File_0_not_found,t))):(l.onUnRecoverableConfigFileDiagnostic=T=>s=T,y=aw(t,u,l,h,p),l.onUnRecoverableConfigFileDiagnostic=Ya),i.set(r,y||s),rl("SolutionBuilder::afterConfigFileParsing"),Qp("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),y}function YP(e,t){return YJ(Iy(e.compilerHost.getCurrentDirectory(),t))}function Qxe(e,t){const r=new Map,i=new Map,o=[];let s,l;for(const p of t)u(p);return l?{buildOrder:s||et,circularDiagnostics:l}:s||et;function u(p,h){const m=F_(e,p);if(i.has(m))return;if(r.has(m)){h||(l||(l=[])).push(Ul(f.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,o.join(`\r +`)));return}r.set(m,!0),o.push(p);const y=EI(e,p,m);if(y&&y.projectReferences)for(const T of y.projectReferences){const A=YP(e,T.path);u(A,h||T.circular)}o.pop(),i.set(m,!0),(s||(s=[])).push(p)}}function N7(e){return e.buildOrder||oHe(e)}function oHe(e){const t=Qxe(e,e.rootNames.map(o=>YP(e,o)));e.resolvedConfigFilePaths.clear();const r=new Set(D7(t).map(o=>F_(e,o))),i={onDeleteValue:Ya};return rg(e.configFileCache,r,i),rg(e.projectStatus,r,i),rg(e.builderPrograms,r,i),rg(e.diagnostics,r,i),rg(e.projectPendingBuild,r,i),rg(e.projectErrorsReported,r,i),rg(e.buildInfoCache,r,i),rg(e.outputTimeStamps,r,i),rg(e.lastCachedPackageJsonLookups,r,i),e.watch&&(rg(e.allWatchedConfigFiles,r,{onDeleteValue:Xm}),e.allWatchedExtendedConfigFiles.forEach(o=>{o.projects.forEach(s=>{r.has(s)||o.projects.delete(s)}),o.close()}),rg(e.allWatchedWildcardDirectories,r,{onDeleteValue:o=>o.forEach(Cf)}),rg(e.allWatchedInputFiles,r,{onDeleteValue:o=>o.forEach(Xm)}),rg(e.allWatchedPackageJsonFiles,r,{onDeleteValue:o=>o.forEach(Xm)})),e.buildOrder=t}function Zxe(e,t,r){const i=t&&YP(e,t),o=N7(e);if(bI(o))return o;if(i){const l=F_(e,i);if(mi(o,p=>F_(e,p)===l)===-1)return}const s=i?Qxe(e,[i]):o;return N.assert(!bI(s)),N.assert(!r||i!==void 0),N.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function eRe(e){e.cache&&Ace(e);const{compilerHost:t,host:r}=e,i=e.readFileWithCache,o=t.getSourceFile,{originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:p,originalWriteFile:h,getSourceFileWithCache:m,readFileWithCache:y}=Fw(r,T=>Pf(e,T),(...T)=>o.call(t,...T));e.readFileWithCache=y,t.getSourceFile=m,e.cache={originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:p,originalWriteFile:h,originalReadFileWithCache:i,originalGetSourceFile:o}}function Ace(e){if(!e.cache)return;const{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==null||s.clear(),l==null||l.clear(),u==null||u.clear(),e.cache=void 0}function tRe(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function nRe({projectPendingBuild:e},t,r){const i=e.get(t);(i===void 0||i<r)&&e.set(t,r)}function rRe(e,t){if(!e.allProjectBuildPending)return;e.allProjectBuildPending=!1,e.options.watch&&Oce(e,f.Starting_compilation_in_watch_mode),eRe(e),D7(N7(e)).forEach(i=>e.projectPendingBuild.set(F_(e,i),0)),t&&t.throwIfCancellationRequested()}function iRe(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function aHe(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:()=>{pRe(e,i,r),s=!1},done:()=>(s&&pRe(e,i,r),rl("SolutionBuilder::Timestamps only updates"),iRe(e,r))}}function oRe(e,t,r,i,o,s,l){let u=e===0?0:4,p,h,m;return e===0?{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>T(tl),getProgram:()=>T(G=>G.getProgramOrUndefined()),getSourceFile:G=>T(ne=>ne.getSourceFile(G)),getSourceFiles:()=>A(G=>G.getSourceFiles()),getOptionsDiagnostics:G=>A(ne=>ne.getOptionsDiagnostics(G)),getGlobalDiagnostics:G=>A(ne=>ne.getGlobalDiagnostics(G)),getConfigFileParsingDiagnostics:()=>A(G=>G.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(G,ne)=>A(he=>he.getSyntacticDiagnostics(G,ne)),getAllDependencies:G=>A(ne=>ne.getAllDependencies(G)),getSemanticDiagnostics:(G,ne)=>A(he=>he.getSemanticDiagnostics(G,ne)),getSemanticDiagnosticsOfNextAffectedFile:(G,ne)=>T(he=>he.getSemanticDiagnosticsOfNextAffectedFile&&he.getSemanticDiagnosticsOfNextAffectedFile(G,ne)),emit:(G,ne,he,ye,Y)=>{if(G||ye)return T(X=>{var oe,pe;return X.emit(G,ne,he,ye,Y||((pe=(oe=t.host).getCustomTransformers)==null?void 0:pe.call(oe,r)))});if(se(2,he),u===5)return K(ne,he);if(u===3)return U(ne,he,Y)},done:y}:{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:y};function y(G,ne,he){return se(8,G,ne,he),rl(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),iRe(t,i)}function T(G){return se(0),p&&G(p)}function A(G){return T(G)||et}function R(){var G,ne,he;if(N.assert(p===void 0),t.options.dry){Rd(t,f.A_non_dry_build_would_build_project_0,r),h=1,u=7;return}if(t.options.verbose&&Rd(t,f.Building_project_0,r),s.fileNames.length===0){$P(t,i,$S(s)),h=0,u=7;return}const{host:ye,compilerHost:Y}=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,Y,lHe(t,i,s),$S(s),s.projectReferences),t.watch){const X=(he=t.moduleResolutionCache)==null?void 0:he.getPackageJsonInfoCache().getInternalMap();t.lastCachedPackageJsonLookups.set(i,X&&new Set(zo(X.values(),oe=>t.host.realpath&&(xF(oe)||oe.directoryExists)?t.host.realpath($r(oe.packageDirectory,"package.json")):$r(oe.packageDirectory,"package.json")))),t.builderPrograms.set(i,p)}u++}function M(G,ne,he){G.length?{buildResult:h,step:u}=Rce(t,i,p,s,G,ne,he):u++}function C(G){N.assertIsDefined(p),M([...p.getConfigFileParsingDiagnostics(),...p.getOptionsDiagnostics(G),...p.getGlobalDiagnostics(G),...p.getSyntacticDiagnostics(void 0,G)],8,"Syntactic")}function O(G){M(N.checkDefined(p).getSemanticDiagnostics(void 0,G),16,"Semantic")}function U(G,ne,he){var ye,Y,X;N.assertIsDefined(p),N.assert(u===3);const oe=p.saveEmitState();let pe;const Ce=je=>(pe||(pe=[])).push(je),de=[],{emitResult:ie}=T7(p,Ce,void 0,void 0,(je,ot,Bt,vt,$e,It)=>de.push({name:je,text:ot,writeByteOrderMark:Bt,data:It}),ne,!1,he||((Y=(ye=t.host).getCustomTransformers)==null?void 0:Y.call(ye,r)));if(pe)return p.restoreEmitState(oe),{buildResult:h,step:u}=Rce(t,i,p,s,pe,32,"Declaration file"),{emitSkipped:!0,diagnostics:ie.diagnostics};const{host:ve,compilerHost:Le}=t,Ue=(X=p.hasChangedEmitSignature)!=null&&X.call(p)?0:2,Ee=ER(),De=new Map,Me=p.getCompilerOptions(),We=sP(Me);let At,Se;return de.forEach(({name:je,text:ot,writeByteOrderMark:Bt,data:vt})=>{const $e=Pf(t,je);De.set(Pf(t,je),je),vt!=null&&vt.buildInfo&&Nce(t,vt.buildInfo,i,Me,Ue);const It=vt!=null&&vt.differsOnlyInMap?gA(t.host,je):void 0;LC(G?{writeFile:G}:Le,Ee,je,ot,Bt),vt!=null&&vt.differsOnlyInMap?t.host.setModifiedTime(je,It):!We&&t.watch&&(At||(At=Dce(t,i))).set($e,Se||(Se=Hw(t.host)))}),Q(Ee,De,de.length?de[0].name:eJ(s,!ve.useCaseSensitiveFileNames()),Ue),ie}function K(G,ne){N.assertIsDefined(p),N.assert(u===5);const he=p.emitBuildInfo((ye,Y,X,oe,pe,Ce)=>{Ce!=null&&Ce.buildInfo&&Nce(t,Ce.buildInfo,i,p.getCompilerOptions(),2),G?G(ye,Y,X,oe,pe,Ce):t.compilerHost.writeFile(ye,Y,X,oe,pe,Ce)},ne);return he.diagnostics.length&&(P7(t,he.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...he.diagnostics]),h=64&h),he.emittedFiles&&t.write&&he.emittedFiles.forEach(ye=>lRe(t,s,ye)),xce(t,p,s),u=7,he}function Q(G,ne,he,ye){const Y=G.getDiagnostics();return Y.length?({buildResult:h,step:u}=Rce(t,i,p,s,Y,64,"Emit"),Y):(t.write&&ne.forEach(X=>lRe(t,s,X)),dRe(t,s,i,f.Updating_unchanged_output_timestamps_of_project_0,ne),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:he}),xce(t,p,s),u=7,h=ye,Y)}function V(G,ne){var he,ye,Y,X;if(N.assert(e===1),t.options.dry){Rd(t,f.A_non_dry_build_would_update_output_of_project_0,r),h=1,u=7;return}t.options.verbose&&Rd(t,f.Updating_output_of_project_0,r);const{compilerHost:oe}=t;t.projectCompilerOptions=s.options,(ye=(he=t.host).beforeEmitBundle)==null||ye.call(he,s);const pe=Wle(s,oe,Ue=>{const Ee=YP(t,Ue.path);return EI(t,Ee,F_(t,Ee))},ne||((X=(Y=t.host).getCustomTransformers)==null?void 0:X.call(Y,r)));if(Mo(pe))return Rd(t,f.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,r,lu(t,pe)),u=6,m=oRe(0,t,r,i,o,s,l);N.assert(!!pe.length);const Ce=ER(),de=new Map;let ie=2;const ve=t.buildInfoCache.get(i).buildInfo||void 0;return pe.forEach(({name:Ue,text:Ee,writeByteOrderMark:De,data:Me})=>{var We,At;de.set(Pf(t,Ue),Ue),Me!=null&&Me.buildInfo&&(((We=Me.buildInfo.program)==null?void 0:We.outSignature)!==((At=ve==null?void 0:ve.program)==null?void 0:At.outSignature)&&(ie&=-3),Nce(t,Me.buildInfo,i,s.options,ie)),LC(G?{writeFile:G}:oe,Ce,Ue,Ee,De)}),{emitSkipped:!1,diagnostics:Q(Ce,de,pe[0].name,ie)}}function se(G,ne,he,ye){for(;u<=G&&u<8;){const Y=u;switch(u){case 0:R();break;case 1:C(ne);break;case 2:O(ne);break;case 3:U(he,ne,ye);break;case 5:K(he,ne);break;case 4:V(he,ye);break;case 6:N.checkDefined(m).done(ne,he,ye),u=8;break;case 7:pHe(t,r,i,o,s,l,N.checkDefined(h)),u++;break}N.assert(u>Y)}}}function sHe({options:e},t,r){return t.type!==3||e.force?!0:r.fileNames.length===0||!!$S(r).length||!sP(r.options)}function aRe(e,t,r){if(!e.projectPendingBuild.size||bI(t))return;const{options:i,projectPendingBuild:o}=e;for(let s=0;s<t.length;s++){const l=t[s],u=F_(e,l),p=e.projectPendingBuild.get(u);if(p===void 0)continue;r&&(r=!1,SRe(e,t));const h=EI(e,l,u);if(!h){bRe(e,u),o.delete(u);continue}p===2?(hRe(e,l,u,h),gRe(e,u,h),vRe(e,l,u,h),kce(e,l,u,h),wce(e,l,u,h)):p===1&&(h.fileNames=CP(h.options.configFile.configFileSpecs,ai(l),h.options,e.parseConfigFileHost),mF(h.fileNames,l,h.options.configFile.configFileSpecs,h.errors,NP(h.raw)),kce(e,l,u,h),wce(e,l,u,h));const m=Mce(e,h,u);if(!i.force){if(m.type===1){eK(e,l,m),$P(e,u,$S(h)),o.delete(u),i.dry&&Rd(e,f.Project_0_is_up_to_date,l);continue}if(m.type===2||m.type===15)return $P(e,u,$S(h)),{kind:2,status:m,project:l,projectPath:u,projectIndex:s,config:h}}if(m.type===12){eK(e,l,m),$P(e,u,$S(h)),o.delete(u),i.verbose&&Rd(e,m.upstreamProjectBlocked?f.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:f.Skipping_build_of_project_0_because_its_dependency_1_has_errors,l,m.upstreamProjectName);continue}if(m.type===16){eK(e,l,m),$P(e,u,$S(h)),o.delete(u);continue}return{kind:sHe(e,m,h)?0:1,status:m,project:l,projectPath:u,projectIndex:s,config:h}}}function sRe(e,t,r){return eK(e,t.project,t.status),t.kind!==2?oRe(t.kind,e,t.project,t.projectPath,t.projectIndex,t.config,r):aHe(e,t.project,t.projectPath,t.config,r)}function Ice(e,t,r){const i=aRe(e,t,r);return i&&sRe(e,i,t)}function lRe({write:e},t,r){e&&t.options.listEmittedFiles&&e(`TSFILE: ${r}`)}function lHe({options:e,builderPrograms:t,compilerHost:r},i,o){if(e.force)return;const s=t.get(i);return s||R7(o.options,r)}function xce(e,t,r){t?(e.write&&zJ(t,e.write),e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()):e.host.afterEmitBundle&&e.host.afterEmitBundle(r),e.projectCompilerOptions=e.baseCompilerOptions}function Rce(e,t,r,i,o,s,l){const u=r&&!Ps(r.getCompilerOptions());return $P(e,t,o),e.projectStatus.set(t,{type:0,reason:`${l} errors`}),u?{buildResult:s,step:5}:(xce(e,r,i),{buildResult:s,step:7})}function QJ(e){return!!e.watcher}function cRe(e,t){const r=Pf(e,t),i=e.filesWatched.get(r);if(e.watch&&i){if(!QJ(i))return i;if(i.modifiedTime)return i.modifiedTime}const o=gA(e.host,t);return e.watch&&(i?i.modifiedTime=o:e.filesWatched.set(r,o)),o}function ZJ(e,t,r,i,o,s,l){const u=Pf(e,t),p=e.filesWatched.get(u);if(p&&QJ(p))p.callbacks.push(r);else{const h=e.watchFile(t,(m,y,T)=>{const A=N.checkDefined(e.filesWatched.get(u));N.assert(QJ(A)),A.modifiedTime=T,A.callbacks.forEach(R=>R(m,y,T))},i,o,s,l);e.filesWatched.set(u,{callbacks:[r],watcher:h,modifiedTime:p})}return{close:()=>{const h=N.checkDefined(e.filesWatched.get(u));N.assert(QJ(h)),h.callbacks.length===1?(e.filesWatched.delete(u),Cf(h)):_A(h.callbacks,r)}}}function Dce(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function Nce(e,t,r,i,o){const s=Hv(i),l=Cce(e,s,r),u=Hw(e.host);l?(l.buildInfo=t,l.modifiedTime=u,o&2||(l.latestChangedDtsTime=u)):e.buildInfoCache.set(r,{path:Pf(e,s),buildInfo:t,modifiedTime:u,latestChangedDtsTime:o&2?void 0:u})}function Cce(e,t,r){const i=Pf(e,t),o=e.buildInfoCache.get(r);return(o==null?void 0:o.path)===i?o:void 0}function uRe(e,t,r,i){const o=Pf(e,t),s=e.buildInfoCache.get(r);if(s!==void 0&&s.path===o)return s.buildInfo||void 0;const l=e.readFileWithCache(t),u=l?n7(t,l):void 0;return e.buildInfoCache.set(r,{path:o,buildInfo:u||!1,modifiedTime:i||wp}),u}function Pce(e,t,r,i){const o=cRe(e,t);if(r<o)return{type:6,outOfDateOutputFileName:i,newerInputFileName:t}}function cHe(e,t,r){var i,o,s;if(!t.fileNames.length&&!NP(t.raw))return{type:16};let l;const u=!!e.options.force;if(t.projectReferences){e.projectStatus.set(r,{type:13});for(const Y of t.projectReferences){const X=pD(Y),oe=F_(e,X),pe=EI(e,X,oe),Ce=Mce(e,pe,oe);if(!(Ce.type===13||Ce.type===16)){if(Ce.type===0||Ce.type===12)return{type:12,upstreamProjectName:Y.path,upstreamProjectBlocked:Ce.type===12};if(Ce.type!==1)return{type:11,upstreamProjectName:Y.path};u||(l||(l=[])).push({ref:Y,refStatus:Ce,resolvedRefPath:oe,resolvedConfig:pe})}}}if(u)return{type:17};const{host:p}=e,h=Hv(t.options);let m,y=ARe,T,A,R;if(h){const Y=Cce(e,h,r);if(T=(Y==null?void 0:Y.modifiedTime)||gA(p,h),T===wp)return Y||e.buildInfoCache.set(r,{path:Pf(e,h),buildInfo:!1,modifiedTime:T}),{type:4,missingOutputFileName:h};const X=uRe(e,h,r,T);if(!X)return{type:5,fileName:h};if((X.bundle||X.program)&&X.version!==Re)return{type:14,version:X.version};if(X.program){if((i=X.program.changeFileSet)!=null&&i.length||(t.options.noEmit?bt(X.program.semanticDiagnosticsPerFile,To):(o=X.program.affectedFilesPendingEmit)!=null&&o.length||(s=X.program.emitDiagnosticsPerFile)!=null&&s.length))return{type:8,buildInfoFile:h};if(!t.options.noEmit&&mD(t.options,X.program.options||{}))return{type:9,buildInfoFile:h};A=X.program}y=T,m=h}let M,C=TRe,O=!1;const U=new Set;for(const Y of t.fileNames){const X=cRe(e,Y);if(X===wp)return{type:0,reason:`${Y} does not exist`};if(T&&T<X){let oe,pe;if(A){R||(R=PJ(A,h,p)),oe=R.fileInfos.get(Pf(e,Y));const Ce=oe?e.readFileWithCache(Y):void 0;pe=Ce!==void 0?A7(p,Ce):void 0,oe&&oe===pe&&(O=!0)}if(!oe||oe!==pe)return{type:6,outOfDateOutputFileName:h,newerInputFileName:Y}}X>C&&(M=Y,C=X),A&&U.add(Pf(e,Y))}if(A){R||(R=PJ(A,h,p));for(const Y of R.roots)if(!U.has(Y))return{type:10,buildInfoFile:h,inputFile:Y}}if(!h){const Y=e7(t,!p.useCaseSensitiveFileNames()),X=Dce(e,r);for(const oe of Y){const pe=Pf(e,oe);let Ce=X==null?void 0:X.get(pe);if(Ce||(Ce=gA(e.host,oe),X==null||X.set(pe,Ce)),Ce===wp)return{type:4,missingOutputFileName:oe};if(Ce<C)return{type:6,outOfDateOutputFileName:oe,newerInputFileName:M};Ce<y&&(y=Ce,m=oe)}}const K=e.buildInfoCache.get(r);let Q=!1,V=!1,se;if(l)for(const{ref:Y,refStatus:X,resolvedConfig:oe,resolvedRefPath:pe}of l){if(V=V||!!Y.prepend,X.newestInputFileTime&&X.newestInputFileTime<=y)continue;if(K&&uHe(e,K,pe))return{type:7,outOfDateOutputFileName:h,newerProjectName:Y.path};const Ce=dHe(e,oe.options,pe);if(Ce&&Ce<=y){Q=!0,se=Y.path;continue}return N.assert(m!==void 0,"Should have an oldest output filename here"),{type:7,outOfDateOutputFileName:m,newerProjectName:Y.path}}const G=Pce(e,t.options.configFilePath,y,m);if(G)return G;const ne=Xe(t.options.configFile.extendedSourceFiles||et,Y=>Pce(e,Y,y,m));if(ne)return ne;const he=e.lastCachedPackageJsonLookups.get(r),ye=he&&mh(he,Y=>Pce(e,Y,y,m));return ye||(V&&Q?{type:3,outOfDateOutputFileName:m,newerProjectName:se}:{type:Q?2:O?15:1,newestInputFileTime:C,newestInputFileName:M,oldestOutputFileName:m})}function uHe(e,t,r){return e.buildInfoCache.get(r).path===t.path}function Mce(e,t,r){if(t===void 0)return{type:0,reason:"File deleted mid-build"};const i=e.projectStatus.get(r);if(i!==void 0)return i;rl("SolutionBuilder::beforeUpToDateCheck");const o=cHe(e,t,r);return rl("SolutionBuilder::afterUpToDateCheck"),Qp("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function dRe(e,t,r,i,o){if(t.options.noEmit)return;let s;const l=Hv(t.options);if(l){o!=null&&o.has(Pf(e,l))||(e.options.verbose&&Rd(e,i,t.options.configFilePath),e.host.setModifiedTime(l,s=Hw(e.host)),Cce(e,l,r).modifiedTime=s),e.outputTimeStamps.delete(r);return}const{host:u}=e,p=e7(t,!u.useCaseSensitiveFileNames()),h=Dce(e,r),m=h?new Set:void 0;if(!o||p.length!==o.size){let y=!!e.options.verbose;for(const T of p){const A=Pf(e,T);o!=null&&o.has(A)||(y&&(y=!1,Rd(e,i,t.options.configFilePath)),u.setModifiedTime(T,s||(s=Hw(e.host))),h&&(h.set(A,s),m.add(A)))}}h==null||h.forEach((y,T)=>{!(o!=null&&o.has(T))&&!m.has(T)&&h.delete(T)})}function dHe(e,t,r){if(!t.composite)return;const i=N.checkDefined(e.buildInfoCache.get(r));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;const o=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(go(i.buildInfo.program.latestChangedDtsFile,ai(i.path))):void 0;return i.latestChangedDtsTime=o||!1,o}function pRe(e,t,r){if(e.options.dry)return Rd(e,f.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);dRe(e,t,r,f.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:eJ(t,!e.host.useCaseSensitiveFileNames())})}function pHe(e,t,r,i,o,s,l){if(!(l&124)&&o.options.composite)for(let u=i+1;u<s.length;u++){const p=s[u],h=F_(e,p);if(e.projectPendingBuild.has(h))continue;const m=EI(e,p,h);if(!(!m||!m.projectReferences))for(const y of m.projectReferences){const T=YP(e,y.path);if(F_(e,T)!==r)continue;const A=e.projectStatus.get(h);if(A)switch(A.type){case 1:if(l&2){y.prepend?e.projectStatus.set(h,{type:3,outOfDateOutputFileName:A.oldestOutputFileName,newerProjectName:t}):A.type=2;break}case 15:case 2:case 3:l&2||e.projectStatus.set(h,{type:7,outOfDateOutputFileName:A.type===3?A.outOfDateOutputFileName:A.oldestOutputFileName,newerProjectName:t});break;case 12:F_(e,YP(e,A.upstreamProjectName))===r&&tRe(e,h);break}nRe(e,h,0);break}}}function fRe(e,t,r,i,o,s){rl("SolutionBuilder::beforeBuild");const l=fHe(e,t,r,i,o,s);return rl("SolutionBuilder::afterBuild"),Qp("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),l}function fHe(e,t,r,i,o,s){const l=Zxe(e,t,s);if(!l)return 3;rRe(e,r);let u=!0,p=0;for(;;){const h=Ice(e,l,u);if(!h)break;u=!1,h.done(r,i,o==null?void 0:o(h.project)),e.diagnostics.has(h.projectPath)||p++}return Ace(e),ERe(e,l),gHe(e,l),bI(l)?4:l.some(h=>e.diagnostics.has(F_(e,h)))?p?2:1:0}function mRe(e,t,r){rl("SolutionBuilder::beforeClean");const i=mHe(e,t,r);return rl("SolutionBuilder::afterClean"),Qp("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function mHe(e,t,r){const i=Zxe(e,t,r);if(!i)return 3;if(bI(i))return P7(e,i.circularDiagnostics),4;const{options:o,host:s}=e,l=o.dry?[]:void 0;for(const u of i){const p=F_(e,u),h=EI(e,u,p);if(h===void 0){bRe(e,p);continue}const m=e7(h,!s.useCaseSensitiveFileNames());if(!m.length)continue;const y=new Set(h.fileNames.map(T=>Pf(e,T)));for(const T of m)y.has(Pf(e,T))||s.fileExists(T)&&(l?l.push(T):(s.deleteFile(T),Lce(e,p,0)))}return l&&Rd(e,f.A_non_dry_build_would_delete_the_following_files_Colon_0,l.map(u=>`\r + * ${u}`).join("")),0}function Lce(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,tRe(e,t),nRe(e,t,r),eRe(e)}function C7(e,t,r){e.reportFileChangeDetected=!0,Lce(e,t,r),_Re(e,250,!0)}function _Re(e,t,r){const{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(_He,t,"timerToBuildInvalidatedProject",e,r))}function _He(e,t,r){rl("SolutionBuilder::beforeBuild");const i=hHe(t,r);rl("SolutionBuilder::afterBuild"),Qp("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&ERe(t,i)}function hHe(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),Oce(e,f.File_change_detected_Starting_incremental_compilation));let r=0;const i=N7(e),o=Ice(e,i,!1);if(o)for(o.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const s=aRe(e,i,!1);if(!s)break;if(s.kind!==2&&(t||r===5)){_Re(e,100,!1);return}sRe(e,s,i).done(),s.kind!==2&&r++}return Ace(e),i}function hRe(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,ZJ(e,t,()=>C7(e,r,2),2e3,i==null?void 0:i.watchOptions,Lc.ConfigFile,t))}function gRe(e,t,r){o7(t,r==null?void 0:r.options,e.allWatchedExtendedConfigFiles,(i,o)=>ZJ(e,i,()=>{var s;return(s=e.allWatchedExtendedConfigFiles.get(o))==null?void 0:s.projects.forEach(l=>C7(e,l,2))},2e3,r==null?void 0:r.watchOptions,Lc.ExtendedConfigFile),i=>Pf(e,i))}function vRe(e,t,r,i){e.watch&&ww(Sce(e.allWatchedWildcardDirectories,r),i.wildcardDirectories,(o,s)=>e.watchDirectory(o,l=>{var u;Ow({watchedDirPath:Pf(e,o),fileOrDirectory:l,fileOrDirectoryPath:Pf(e,l),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((u=iHe(e,r))==null?void 0:u.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:p=>e.writeLog(p),toPath:p=>Pf(e,p)})||C7(e,r,1)},s,i==null?void 0:i.watchOptions,Lc.WildcardDirectory,t))}function kce(e,t,r,i){e.watch&&UC(Sce(e.allWatchedInputFiles,r),new Set(i.fileNames),{createNewValue:o=>ZJ(e,o,()=>C7(e,r,0),250,i==null?void 0:i.watchOptions,Lc.SourceFile,t),onDeleteValue:Xm})}function wce(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||UC(Sce(e.allWatchedPackageJsonFiles,r),e.lastCachedPackageJsonLookups.get(r),{createNewValue:o=>ZJ(e,o,()=>C7(e,r,0),2e3,i==null?void 0:i.watchOptions,Lc.PackageJson,t),onDeleteValue:Xm})}function gHe(e,t){if(e.watchAllProjectsPending){rl("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const r of D7(t)){const i=F_(e,r),o=EI(e,r,i);hRe(e,r,i,o),gRe(e,i,o),o&&(vRe(e,r,i,o),kce(e,r,i,o),wce(e,r,i,o))}rl("SolutionBuilder::afterWatcherCreation"),Qp("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function vHe(e){ep(e.allWatchedConfigFiles,Xm),ep(e.allWatchedExtendedConfigFiles,Cf),ep(e.allWatchedWildcardDirectories,t=>ep(t,Cf)),ep(e.allWatchedInputFiles,t=>ep(t,Xm)),ep(e.allWatchedPackageJsonFiles,t=>ep(t,Xm))}function yRe(e,t,r,i,o){const s=rHe(e,t,r,i,o);return{build:(l,u,p,h)=>fRe(s,l,u,p,h),clean:l=>mRe(s,l),buildReferences:(l,u,p,h)=>fRe(s,l,u,p,h,!0),cleanReferences:l=>mRe(s,l,!0),getNextInvalidatedProject:l=>(rRe(s,l),Ice(s,N7(s),!1)),getBuildOrder:()=>N7(s),getUpToDateStatusOfProject:l=>{const u=YP(s,l),p=F_(s,u);return Mce(s,EI(s,u,p),p)},invalidateProject:(l,u)=>Lce(s,l,u||0),close:()=>vHe(s)}}function lu(e,t){return eC(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Rd(e,t,...r){e.host.reportSolutionBuilderStatus(Ul(t,...r))}function Oce(e,t,...r){var i,o;(o=(i=e.hostWithWatch).onWatchStatusChange)==null||o.call(i,Ul(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function P7({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function $P(e,t,r){P7(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function bRe(e,t){$P(e,t,[e.configFileCache.get(t)])}function ERe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e;let o=0,s=[];bI(t)?(SRe(e,t.buildOrder),P7(e,t.circularDiagnostics),r&&(o+=E7(t.circularDiagnostics)),r&&(s=[...s,...S7(t.circularDiagnostics)])):(t.forEach(l=>{const u=F_(e,l);e.projectErrorsReported.has(u)||P7(e,i.get(u)||et)}),r&&i.forEach(l=>o+=E7(l)),r&&i.forEach(l=>[...s,...S7(l)])),e.watch?Oce(e,FJ(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,s)}function SRe(e,t){e.options.verbose&&Rd(e,f.Projects_in_this_build_Colon_0,t.map(r=>`\r + * `+lu(e,r)).join(""))}function yHe(e,t,r){switch(r.type){case 6:return Rd(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,lu(e,t),lu(e,r.outOfDateOutputFileName),lu(e,r.newerInputFileName));case 7:return Rd(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,lu(e,t),lu(e,r.outOfDateOutputFileName),lu(e,r.newerProjectName));case 4:return Rd(e,f.Project_0_is_out_of_date_because_output_file_1_does_not_exist,lu(e,t),lu(e,r.missingOutputFileName));case 5:return Rd(e,f.Project_0_is_out_of_date_because_there_was_error_reading_file_1,lu(e,t),lu(e,r.fileName));case 8:return Rd(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,lu(e,t),lu(e,r.buildInfoFile));case 9:return Rd(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,lu(e,t),lu(e,r.buildInfoFile));case 10:return Rd(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,lu(e,t),lu(e,r.buildInfoFile),lu(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return Rd(e,f.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,lu(e,t),lu(e,r.newestInputFileName||""),lu(e,r.oldestOutputFileName||""));break;case 3:return Rd(e,f.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,lu(e,t),lu(e,r.newerProjectName));case 2:return Rd(e,f.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,lu(e,t));case 15:return Rd(e,f.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,lu(e,t));case 11:return Rd(e,f.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,lu(e,t),lu(e,r.upstreamProjectName));case 12:return Rd(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,lu(e,t),lu(e,r.upstreamProjectName));case 0:return Rd(e,f.Failed_to_parse_file_0_Colon_1,lu(e,t),r.reason);case 14:return Rd(e,f.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,lu(e,t),r.version,Re);case 17:return Rd(e,f.Project_0_is_being_forcibly_rebuilt,lu(e,t))}}function eK(e,t,r){e.options.verbose&&yHe(e,t,r)}var TRe,ARe,tK,bHe=I({"src/compiler/tsbuildPublic.ts"(){ra(),sS(),TRe=new Date(-864e13),ARe=new Date(864e13),tK=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(tK||{})}}),ra=I({"src/compiler/_namespaces/ts.ts"(){at(),Pze(),Mze(),Vze(),Hze(),qze(),r9e(),HEe(),p9e(),g9e(),v9e(),T9e(),N9e(),RBe(),DBe(),NBe(),CBe(),WBe(),FBe(),zBe(),BBe(),fGe(),mGe(),AGe(),VGe(),mVe(),bVe(),EVe(),wVe(),GVe(),XVe(),nje(),_je(),hje(),Ije(),xje(),Rje(),kje(),wje(),Oje(),Wje(),Fje(),zje(),Bje(),Gje(),Vje(),Hje(),qje(),Jje(),Kje(),Xje(),$je(),Qje(),Zje(),eUe(),tUe(),nUe(),lUe(),mUe(),AUe(),xUe(),CUe(),PUe(),MUe(),HUe(),qUe(),XUe(),QUe(),ZUe(),eHe(),bHe(),zse(),sS()}});function IRe(e){return gu.args.includes(e)}function xRe(e){const t=gu.args.indexOf(e);return t>=0&&t<gu.args.length-1?gu.args[t+1]:void 0}function RRe(){const e=new Date;return`${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}.${e.getMilliseconds().toString().padStart(3,"0")}`}function QP(e){return Wce+e.replace(/\n/g,Wce)}function N0(e){return QP(JSON.stringify(e,void 0,2))}var qw,Jw,Kw,M7,L7,k7,nK,ZP,rK,Wce,EHe=I({"src/jsTyping/shared.ts"(){Xw(),qw="action::set",Jw="action::invalidate",Kw="action::packageInstalled",M7="event::typesRegistry",L7="event::beginInstallTypes",k7="event::endInstallTypes",nK="event::initializationFailed",ZP="action::watchTypingLocations",(e=>{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(rK||(rK={})),Wce=` + `}}),SHe=I({"src/jsTyping/types.ts"(){}}),w7=I({"src/jsTyping/_namespaces/ts.server.ts"(){EHe(),SHe()}});function DRe(e,t){return new hm(S6(t,`ts${_e}`)||S6(t,"latest")).compareTo(e.version)<=0}function NRe(e){return Vce.has(e)?"node":e}function THe(e,t){const r=sw(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function AHe(e,t){var r;const i=sw(t,o=>e.readFile(o));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function IHe(e,t,r,i,o,s,l,u,p,h){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const m=new Map;r=eo(r,Q=>{const V=ha(Q);if(UE(V))return V});const y=[];l.include&&O(l.include,"Explicitly included types");const T=l.exclude||[];if(!h.types){const Q=new Set(r.map(ai));Q.add(i),Q.forEach(V=>{U(V,"bower.json","bower_components",y),U(V,"package.json","node_modules",y)})}if(l.disableFilenameBasedTypeAcquisition||K(r),u){const Q=SE(u.map(NRe),oS,Uu);O(Q,"Inferred typings from unresolved imports")}for(const Q of T)m.delete(Q)&&t&&t(`Typing for ${Q} is in exclude list, will be ignored.`);s.forEach((Q,V)=>{const se=p.get(V);m.get(V)===!1&&se!==void 0&&DRe(Q,se)&&m.set(V,Q.typingLocation)});const A=[],R=[];m.forEach((Q,V)=>{Q?R.push(Q):A.push(V)});const M={cachedTypingPaths:R,newTypingNames:A,filesToWatch:y};return t&&t(`Finished typings discovery:${N0(M)}`),M;function C(Q){m.has(Q)||m.set(Q,!1)}function O(Q,V){t&&t(`${V}: ${JSON.stringify(Q)}`),Xe(Q,C)}function U(Q,V,se,G){const ne=$r(Q,V);let he,ye;e.fileExists(ne)&&(G.push(ne),he=sw(ne,pe=>e.readFile(pe)).config,ye=Do([he.dependencies,he.devDependencies,he.optionalDependencies,he.peerDependencies],Hh),O(ye,`Typing names in '${ne}' dependencies`));const Y=$r(Q,se);if(G.push(Y),!e.directoryExists(Y))return;const X=[],oe=ye?ye.map(pe=>$r(Y,pe,V)):e.readDirectory(Y,[".json"],void 0,void 0,3).filter(pe=>{if(ic(pe)!==V)return!1;const Ce=Wc(ha(pe)),de=Ce[Ce.length-3][0]==="@";return de&&lh(Ce[Ce.length-4])===se||!de&&lh(Ce[Ce.length-3])===se});t&&t(`Searching for typing names in ${Y}; all files: ${JSON.stringify(oe)}`);for(const pe of oe){const Ce=ha(pe),ie=sw(Ce,Le=>e.readFile(Le)).config;if(!ie.name)continue;const ve=ie.types||ie.typings;if(ve){const Le=go(ve,ai(Ce));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 X.push(ie.name)}O(X," Found package names")}function K(Q){const V=eo(Q,G=>{if(!UE(G))return;const ne=Ad(lh(ic(G))),he=YB(ne);return o.get(he)});V.length&&O(V,"Inferred typings from file names"),bt(Q,G=>Il(G,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),C("react"))}}function xHe(e){return Fce(e,!0)}function Fce(e,t){if(!e)return 1;if(e.length>Uce)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){const r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){const i=Fce(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};const o=Fce(r[2],!1);return o!==0?{name:r[2],isScopeName:!1,result:o}:0}}return encodeURIComponent(e)!==e?5:0}function RHe(e,t){return typeof e=="object"?CRe(t,e.result,e.name,e.isScopeName):CRe(t,e,t,!1)}function CRe(e,t,r,i){const 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 ${Uce} 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 N.fail();default:N.assertNever(t)}}var zce,Bce,Gce,Vce,jce,Uce,DHe=I({"src/jsTyping/jsTyping.ts"(){Xw(),w7(),zce=["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"],Bce=zce.map(e=>`node:${e}`),Gce=[...zce,...Bce],Vce=new Set(Gce),jce=(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))(jce||{}),Uce=214}}),z_={};ee(z_,{NameValidationResult:()=>jce,discoverTypings:()=>IHe,isTypingUpToDate:()=>DRe,loadSafeList:()=>THe,loadTypesMap:()=>AHe,nodeCoreModuleList:()=>Gce,nodeCoreModules:()=>Vce,nonRelativeModuleNameForTypingCache:()=>NRe,prefixedNodeCoreModuleList:()=>Bce,renderPackageNameValidationFailure:()=>RHe,validatePackageName:()=>xHe});var NHe=I({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){DHe()}}),Xw=I({"src/jsTyping/_namespaces/ts.ts"(){ra(),NHe(),w7()}});function O7(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 W7,iK,oK,aK,Mf,sK,lK,cK,uK,dK,pK,fK,Hce,Yw,mK,_K,hK,gK,vK,yK,bK,EK,SK,CHe=I({"src/services/types.ts"(){(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})(W7||(W7={})),iK=(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))(iK||{}),oK=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(oK||{}),aK=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(aK||{}),Mf={},sK=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(sK||{}),lK=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(lK||{}),cK=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(cK||{}),uK=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(uK||{}),dK=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(dK||{}),pK=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(pK||{}),fK=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(fK||{}),Hce=O7(` +`),Yw=(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))(Yw||{}),mK=(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))(mK||{}),_K=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(_K||{}),hK=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(hK||{}),gK=(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))(gK||{}),vK=(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))(vK||{}),yK=(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))(yK||{}),bK=(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))(bK||{}),EK=(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))(EK||{}),SK=(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))(SK||{})}});function $w(e){switch(e.kind){case 260:return lr(e)&&xV(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 ku(e)||jg(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 ZS(e){e=wK(e);const t=e.parent;return e.kind===312?1:kl(t)||Ku(t)||Th(t)||tp(t)||Eh(t)||eu(t)&&e===t.name?7:F7(e)?PHe(e):wg(e)?$w(t):Qd(e)&&Vn(e,Jm(SP,xA,b0))?7:wHe(e)?2:MHe(e)?4:hl(t)?(N.assert(om(t.parent)),2):Jy(t)?3:1}function PHe(e){const t=e.kind===166?e:Id(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===271?7:4}function F7(e){for(;e.parent.kind===166;)e=e.parent;return uR(e.parent)&&e.parent.moduleReference===e}function MHe(e){return LHe(e)||kHe(e)}function LHe(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 kHe(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){const 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 wHe(e){switch(zC(e)&&(e=e.parent),e.kind){case 110:return!Qh(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return $h(e.parent)}return!1}function TK(e,t=!1,r=!1){return Qw(e,sa,IK,t,r)}function eM(e,t=!1,r=!1){return Qw(e,$E,IK,t,r)}function AK(e,t=!1,r=!1){return Qw(e,S_,IK,t,r)}function qce(e,t=!1,r=!1){return Qw(e,QE,OHe,t,r)}function Jce(e,t=!1,r=!1){return Qw(e,Eu,IK,t,r)}function Kce(e,t=!1,r=!1){return Qw(e,ld,WHe,t,r)}function IK(e){return e.expression}function OHe(e){return e.tag}function WHe(e){return e.tagName}function Qw(e,t,r,i,o){let s=i?Xce(e):z7(e);return o&&(s=$l(s)),!!s&&!!s.parent&&t(s.parent)&&r(s.parent)===s}function z7(e){return vD(e)?e.parent:e}function Xce(e){return vD(e)||NK(e)?e.parent:e}function B7(e,t){for(;e;){if(e.kind===256&&e.label.escapedText===t)return e.label;e=e.parent}}function Zw(e,t){return Fr(e.expression)?e.expression.name.text===t:!1}function eO(e){var t;return Ve(e)&&((t=ri(e.parent,cC))==null?void 0:t.label)===e}function xK(e){var t;return Ve(e)&&((t=ri(e.parent,ZE))==null?void 0:t.label)===e}function RK(e){return xK(e)||eO(e)}function DK(e){var t;return((t=ri(e.parent,Qx))==null?void 0:t.tagName)===e}function Yce(e){var t;return((t=ri(e.parent,Id))==null?void 0:t.right)===e}function vD(e){var t;return((t=ri(e.parent,Fr))==null?void 0:t.name)===e}function NK(e){var t;return((t=ri(e.parent,$s))==null?void 0:t.argumentExpression)===e}function CK(e){var t;return((t=ri(e.parent,Xl))==null?void 0:t.name)===e}function PK(e){var t;return Ve(e)&&((t=ri(e.parent,ea))==null?void 0:t.name)===e}function G7(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return Lo(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 $ce(e){return c0(e.parent.parent)&&TC(e.parent.parent)===e}function eT(e){for($f(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 f1(e){switch(e.kind){case 312:return sc(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(R_(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:const{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 Qr(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const i=zl(e),{right:o}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:const l=f1(o);return l===""?"const":l;case 3:return Os(o)?"method":"property";case 4:return"property";case 5:return Os(o)?"method":"property";case 6:return"local class";default:return""}case 80:return Eh(e.parent)?"alias":"";case 277:const s=f1(e.expression);return s===""?"const":s;default:return""}function t(r){return iR(r)?"const":W4(r)?"let":"var"}}function yD(e){switch(e.kind){case 110:return!0;case 80:return qj(e)&&e.parent.kind===169;default:return!1}}function am(e,t){const r=Ng(t),i=t.getLineAndCharacterOfPosition(e).line;return r[i]}function sf(e,t){return MK(e.pos,e.end,t)}function Qce(e,t){return nO(e,t.pos)&&nO(e,t.end)}function tO(e,t){return e.pos<=t&&t<=e.end}function nO(e,t){return e.pos<t&&t<e.end}function MK(e,t,r){return e<=r.pos&&t>=r.end}function rO(e,t,r){return e.pos<=t&&e.end>=r}function tM(e,t,r){return j7(e.pos,e.end,t,r)}function V7(e,t,r,i){return j7(e.getStart(t),e.end,r,i)}function j7(e,t,r,i){const o=Math.max(e,r),s=Math.min(t,i);return o<s}function LK(e,t,r){return N.assert(e.pos<=t),t<e.end||!t_(e,r)}function t_(e,t){if(e===void 0||Fl(e))return!1;switch(e.kind){case 263:case 264:case 266:case 210:case 206:case 187:case 241:case 268:case 269:case 275:case 279:return kK(e,20,t);case 299:return t_(e.block,t);case 214:if(!e.arguments)return!0;case 213:case 217:case 196:return kK(e,22,t);case 184:case 185:return t_(e.type,t);case 176:case 177:case 178:case 262:case 218:case 174:case 173:case 180:case 179:case 219:return e.body?t_(e.body,t):e.type?t_(e.type,t):iO(e,22,t);case 267:return!!e.body&&t_(e.body,t);case 245:return e.elseStatement?t_(e.elseStatement,t):t_(e.thenStatement,t);case 244:return t_(e.expression,t)||iO(e,27,t);case 209:case 207:case 212:case 167:case 189:return kK(e,24,t);case 181:return e.type?t_(e.type,t):iO(e,24,t);case 296:case 297:return!1;case 248:case 249:case 250:case 247:return t_(e.statement,t);case 246:return iO(e,117,t)?kK(e,22,t):t_(e.statement,t);case 186:return t_(e.exprName,t);case 221:case 220:case 222:case 229:case 230:return t_(e.expression,t);case 215:return t_(e.template,t);case 228:const i=el(e.templateSpans);return t_(i,t);case 239:return Kf(e.literal);case 278:case 272:return Kf(e.moduleSpecifier);case 224:return t_(e.operand,t);case 226:return t_(e.right,t);case 227:return t_(e.whenFalse,t);default:return!0}}function kK(e,t,r){const i=e.getChildren(r);if(i.length){const o=Xa(i);if(o.kind===t)return!0;if(o.kind===27&&i.length!==1)return i[i.length-2].kind===t}return!1}function Zce(e){const t=U7(e);if(!t)return;const r=t.getChildren();return{listItemIndex:tR(r,e),list:t}}function iO(e,t,r){return!!vs(e,t,r)}function vs(e,t,r){return In(e.getChildren(r),i=>i.kind===t)}function U7(e){const t=In(e.parent.getChildren(),r=>KR(r)&&sf(r,e));return N.assert(!t||Or(t.getChildren(),e)),t}function PRe(e){return e.kind===90}function FHe(e){return e.kind===86}function zHe(e){return e.kind===100}function BHe(e){if(ad(e))return e.name;if(Ac(e)){const t=e.modifiers&&In(e.modifiers,PRe);if(t)return t}if(Qc(e)){const t=In(e.getChildren(),FHe);if(t)return t}}function GHe(e){if(ad(e))return e.name;if(Tc(e)){const t=In(e.modifiers,PRe);if(t)return t}if(Os(e)){const t=In(e.getChildren(),zHe);if(t)return t}}function VHe(e){let t;return Vn(e,r=>(ji(r)&&(t=r),!Id(r.parent)&&!ji(r.parent)&&!fS(r.parent))),t}function H7(e,t){if(e.flags&16777216)return;const r=u5(e,t);if(r)return r;const i=VHe(e);return i&&t.getTypeAtLocation(i)}function jHe(e,t){if(!t)switch(e.kind){case 263:case 231:return BHe(e);case 262:case 218:return GHe(e);case 176:return e}if(ad(e))return e.name}function MRe(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(Bg(e.importClause.namedBindings)){const r=ah(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(Yy(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function LRe(e,t){if(e.exportClause){if(Nf(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 UHe(e){if(e.types.length===1)return e.types[0].expression}function kRe(e,t){const{parent:r}=e;if(Aa(e)&&(t||e.kind!==90)?Rm(r)&&Or(r.modifiers,e):e.kind===86?Ac(r)||Qc(e):e.kind===100?Tc(r)||Os(e):e.kind===120?md(r):e.kind===94?y0(r):e.kind===156?xm(r):e.kind===145||e.kind===144?Xl(r):e.kind===102?eu(r):e.kind===139?tf(r):e.kind===153&&vp(r)){const i=jHe(r,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&Vc(r)&&r.declarations.length===1){const i=r.declarations[0];if(Ve(i.name))return i.name}if(e.kind===156){if(Eh(r)&&r.isTypeOnly){const i=MRe(r.parent,t);if(i)return i}if(Yl(r)&&r.isTypeOnly){const i=LRe(r,t);if(i)return i}}if(e.kind===130){if(tp(r)&&r.propertyName||Ku(r)&&r.propertyName||Yy(r)||Sh(r))return r.name;if(Yl(r)&&r.exportClause&&Sh(r.exportClause))return r.exportClause.name}if(e.kind===102&&Mc(r)){const i=MRe(r,t);if(i)return i}if(e.kind===95){if(Yl(r)){const i=LRe(r,t);if(i)return i}if(kl(r))return $l(r.expression)}if(e.kind===149&&Th(r))return r.expression;if(e.kind===161&&(Mc(r)||Yl(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===96||e.kind===119)&&nf(r)&&r.token===e.kind){const i=UHe(r);if(i)return i}if(e.kind===96){if(hl(r)&&r.constraint&&Df(r.constraint))return r.constraint.typeName;if(rI(r)&&Df(r.extendsType))return r.extendsType.typeName}if(e.kind===140&&kS(r))return r.typeParameter.name;if(e.kind===103&&hl(r)&&GR(r.parent))return r.name;if(e.kind===143&&OS(r)&&r.operator===143&&Df(r.type))return r.type.typeName;if(e.kind===148&&OS(r)&&r.operator===148&&Vk(r.type)&&Df(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===105&&$E(r)||e.kind===116&&iI(r)||e.kind===114&&VR(r)||e.kind===135&&Ky(r)||e.kind===127&&qW(r)||e.kind===91&&pae(r))&&r.expression)return $l(r.expression);if((e.kind===103||e.kind===104)&&mr(r)&&r.operatorToken===e)return $l(r.right);if(e.kind===130&&Uk(r)&&Df(r.type))return r.type.typeName;if(e.kind===103&&KW(r)||e.kind===165&&Hk(r))return $l(r.expression)}return e}function wK(e){return kRe(e,!1)}function q7(e){return kRe(e,!0)}function Vd(e,t){return bD(e,t,r=>x_(r)||Bd(r.kind)||qi(r))}function bD(e,t,r){return wRe(e,t,!1,r,!1)}function po(e,t){return wRe(e,t,!0,void 0,!1)}function wRe(e,t,r,i,o){let s=e,l;e:for(;;){const p=s.getChildren(e),h=pA(p,t,(m,y)=>y,(m,y)=>{const T=p[m].getEnd();if(T<t)return-1;const A=r?p[m].getFullStart():p[m].getStart(e,!0);return A>t?1:u(p[m],A,T)?p[m-1]&&u(p[m-1])?1:0:i&&A===t&&p[m-1]&&p[m-1].getEnd()===t&&u(p[m-1])?1:-1});if(l)return l;if(h>=0&&p[h]){s=p[h];continue e}return s}function u(p,h,m){if(m??(m=p.getEnd()),m<t||(h??(h=r?p.getFullStart():p.getStart(e,!0)),h>t))return!1;if(t<m||t===m&&(p.kind===1||o))return!0;if(i&&m===t){const y=Ic(t,e,p);if(y&&i(y))return l=y,!0}return!1}}function eue(e,t){let r=po(e,t);for(;K7(r);){const i=m1(r,r.parent,e);if(!i)return;r=i}return r}function J7(e,t){const r=po(e,t);return EA(r)&&t>r.getStart(e)&&t<r.getEnd()?r:Ic(t,e)}function m1(e,t,r){return i(t);function i(o){return EA(o)&&o.pos===e.end?o:Ht(o.getChildren(r),s=>(s.pos<=e.pos&&s.end>e.end||s.pos===e.end)&&sue(s,r)?i(s):void 0)}}function Ic(e,t,r,i){const o=s(r||t);return N.assert(!(o&&K7(o))),o;function s(l){if(ORe(l)&&l.kind!==1)return l;const u=l.getChildren(t),p=pA(u,e,(m,y)=>y,(m,y)=>e<u[m].end?!u[m-1]||e>=u[m-1].end?0:1:-1);if(p>=0&&u[p]){const m=u[p];if(e<m.end)if(m.getStart(t,!i)>=e||!sue(m,t)||K7(m)){const A=nue(u,p,t,l.kind);return A?!i&&S4(A)&&A.getChildren(t).length?s(A):tue(A,t):void 0}else return s(m)}N.assert(r!==void 0||l.kind===312||l.kind===1||S4(l));const h=nue(u,u.length,t,l.kind);return h&&tue(h,t)}}function ORe(e){return EA(e)&&!K7(e)}function tue(e,t){if(ORe(e))return e;const r=e.getChildren(t);if(r.length===0)return e;const i=nue(r,r.length,t,e.kind);return i&&tue(i,t)}function nue(e,t,r,i){for(let o=t-1;o>=0;o--){const s=e[o];if(K7(s))o===0&&(i===12||i===285)&&N.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(sue(e[o],r))return e[o]}}function SI(e,t,r=Ic(t,e)){if(r&&kV(r)){const i=r.getStart(e),o=r.getEnd();if(i<t&&t<o)return!0;if(t===o)return!!r.isUnterminated}return!1}function rue(e,t){const r=po(e,t);return r?!!(r.kind===12||r.kind===30&&r.parent.kind===12||r.kind===30&&r.parent.kind===294||r&&r.kind===20&&r.parent.kind===294||r.kind===30&&r.parent.kind===287):!1}function K7(e){return KA(e)&&e.containsOnlyTriviaWhiteSpaces}function OK(e,t){const r=po(e,t);return Ny(r.kind)&&t>r.getStart(e)}function iue(e,t){const r=po(e,t);return!!(KA(r)||r.kind===19&&bP(r.parent)&&sg(r.parent.parent)||r.kind===30&&ld(r.parent)&&sg(r.parent.parent))}function X7(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 Y7(e,t,r){const i=pa(e.kind),o=pa(t),s=e.getFullStart(),l=r.text.lastIndexOf(o,s);if(l===-1)return;if(r.text.lastIndexOf(i,s-1)<l){const h=Ic(l+1,r);if(h&&h.kind===t)return h}const u=e.kind;let p=0;for(;;){const h=Ic(e.getFullStart(),r);if(!h)return;if(e=h,e.kind===t){if(p===0)return e;p--}else e.kind===u&&p++}}function oue(e,t,r){return t?e.getNonNullableType():r?e.getNonOptionalType():e}function oO(e,t,r){const i=FK(e,t);return i!==void 0&&($h(i.called)||WK(i.called,i.nTypeArguments,r).length!==0||oO(i.called,t,r))}function WK(e,t,r){let i=r.getTypeAtLocation(e);return qu(e.parent)&&(i=oue(i,sC(e.parent),!0)),($E(e.parent)?i.getConstructSignatures():i.getCallSignatures()).filter(s=>!!s.typeParameters&&s.typeParameters.length>=t)}function FK(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=Ic(r.getFullStart(),t),r&&r.kind===29&&(r=Ic(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=Y7(r,19,t),!r)return;break;case 22:if(r=Y7(r,21,t),!r)return;break;case 24:if(r=Y7(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(ji(r))break;return}r=Ic(r.getFullStart(),t)}}function qv(e,t,r){return kc.getRangeOfEnclosingComment(e,t,void 0,r)}function aue(e,t){const r=po(e,t);return!!Vn(r,Zm)}function sue(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function nM(e,t=0){const r=[],i=Ju(e)?SV(e)&~t:0;return i&2&&r.push("private"),i&4&&r.push("protected"),i&1&&r.push("public"),(i&256||Rl(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 lue(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(ea(e)||e.kind===263||e.kind===264)return e.typeParameters}function $7(e){return e===2||e===3}function zK(e){return!!(e===11||e===14||Ny(e))}function WRe(e,t,r){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(r)}function cue(e){if(!e.isIntersection())return!1;const{types:t,checker:r}=e;return t.length===2&&(WRe(r,t[0],t[1])||WRe(r,t[1],t[0]))}function aO(e,t,r){return Ny(e.kind)&&e.getStart(r)<t&&t<e.end||!!e.isUnterminated&&t===e.end}function BK(e){switch(e){case 125:case 123:case 124:return!0}return!1}function GK(e){const t=qB(e);return KH(t,e&&e.configFile),t}function Jv(e){return!!((e.kind===209||e.kind===210)&&(e.parent.kind===226&&e.parent.left===e&&e.parent.operatorToken.kind===64||e.parent.kind===250&&e.parent.initializer===e||Jv(e.parent.kind===303?e.parent.parent:e.parent)))}function uue(e,t){return FRe(e,t,!0)}function due(e,t){return FRe(e,t,!1)}function FRe(e,t,r){const i=qv(e,t,void 0);return!!i&&r===qRe.test(e.text.substring(i.pos,i.end))}function VK(e){if(e)switch(e.kind){case 11:case 15:return jK(e);default:return Dd(e)}}function Dd(e,t,r){return pc(e.getStart(t),(r||e).getEnd())}function jK(e){if(!e.isUnterminated)return pc(e.getStart()+1,e.getEnd()-1)}function UK(e,t){return Af(e.getStart(t),e.end)}function tb(e){return pc(e.pos,e.end)}function Q7(e){return Af(e.start,e.start+e.length)}function Z7(e,t,r){return sO(vu(e,t),r)}function sO(e,t){return{span:e,newText:t}}function rM(e){return Or(A5,e)}function HK(e){return e.kind===156}function e5(e){return HK(e)||Ve(e)&&e.text==="type"}function lO(e){return!!(e.flags&1536)&&e.name.charCodeAt(0)===34}function TI(){const e=[];return t=>{const r=as(t);return!e[r]&&(e[r]=!0)}}function ED(e){return e.getText(0,e.getLength())}function cO(e,t){let r="";for(let i=0;i<t;i++)r+=e;return r}function qK(e){return e.isTypeParameter()&&e.getConstraint()||e}function uO(e){return e.kind===167?ef(e.expression)?e.expression.text:void 0:qi(e)?Er(e):Qf(e)}function pue(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function fue(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function JK(e){return!!e.module||os(e)>=2||!!e.noEmit}function tT(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:ia(t,t.readFile),useCaseSensitiveFileNames:ia(t,t.useCaseSensitiveFileNames),getSymlinkCache:ia(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:ia(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:ia(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:r=>e.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:ia(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function KK(e,t){return{...tT(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function t5(e){return e===2||e>=3&&e<=99||e===100}function mue(e,t,r,i){return e||t&&t.length?Kv(e,t,r,i):void 0}function Kv(e,t,r,i,o){return w.createImportDeclaration(void 0,e||t?w.createImportClause(!!o,e,t&&t.length?w.createNamedImports(t):void 0):void 0,typeof r=="string"?AI(r,i):r,void 0)}function AI(e,t){return w.createStringLiteral(e,t===0)}function XK(e,t){return e3(e,t)?1:0}function lf(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{const r=e.imports&&In(e.imports,i=>Na(i)&&!Ys(i.parent));return r?XK(r,e):1}}function YK(e){switch(e){case 0:return"'";case 1:return'"';default:return N.assertNever(e)}}function n5(e){const t=r5(e);return t===void 0?void 0:Vi(t)}function r5(e){return e.escapedName!=="default"?e.escapedName:Ht(e.declarations,t=>{const r=Lo(t);return r&&r.kind===80?r.escapedText:void 0})}function i5(e){return ls(e)&&(Th(e.parent)||Mc(e.parent)||Td(e.parent,!1)&&e.parent.arguments[0]===e||zp(e.parent)&&e.parent.arguments[0]===e)}function dO(e){return $a(e)&&im(e.parent)&&Ve(e.name)&&!e.propertyName}function o5(e,t){const r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function pO(e,t,r){if(e)for(;e.parent;){if($i(e.parent)||!HHe(r,e.parent,t))return e;e=e.parent}}function HHe(e,t,r){return EV(e,t.getStart(r))&&t.getEnd()<=Kl(e)}function SD(e,t){return Rm(e)?In(e.modifiers,r=>r.kind===t):void 0}function iM(e,t,r,i,o){const l=(To(r)?r[0]:r).kind===243?vj:gS,u=mn(t.statements,l);let p=To(r)?Cm.detectImportDeclarationSorting(r,o):3;const h=Cm.getOrganizeImportsComparer(o,p===2),m=To(r)?Sv(r,(y,T)=>Cm.compareImportsOrRequireStatements(y,T,h)):[r];if(!u.length)e.insertNodesAtTopOfFile(t,m,i);else if(u&&(p=Cm.detectImportDeclarationSorting(u,o))){const y=Cm.getOrganizeImportsComparer(o,p===2);for(const T of m){const A=Cm.getImportDeclarationInsertionIndex(u,T,y);if(A===0){const R=u[0]===t.statements[0]?{leadingTriviaOption:_r.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,u[0],T,!1,R)}else{const R=u[A-1];e.insertNodeAfter(t,R,T)}}}else{const y=el(u);y?e.insertNodesAfter(t,y,m):e.insertNodesAtTopOfFile(t,m,i)}}function $K(e,t){return N.assert(e.isTypeOnly),oa(e.getChildAt(0,t),HK)}function TD(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function QK(e,t,r){return(r?oS:$b)(e.fileName,t.fileName)&&TD(e.textSpan,t.textSpan)}function ZK(e){return(t,r)=>QK(t,r,e)}function eX(e,t){if(e){for(let r=0;r<e.length;r++)if(e.indexOf(e[r])===r){const i=t(e[r],r);if(i)return i}}}function _ue(e,t,r){for(let i=t;i<r;i++)if(!Cg(e.charCodeAt(i)))return!1;return!0}function oM(e,t,r){const i=t.tryGetSourcePosition(e);return i&&(!r||r(ha(i.fileName))?i:void 0)}function a5(e,t,r){const{fileName:i,textSpan:o}=e,s=oM({fileName:i,pos:o.start},t,r);if(!s)return;const l=oM({fileName:i,pos:o.start+o.length},t,r),u=l?l.pos-s.pos:o.length;return{fileName:s.fileName,textSpan:{start:s.pos,length:u},originalFileName:e.fileName,originalTextSpan:e.textSpan,contextSpan:tX(e,t,r),originalContextSpan:e.contextSpan}}function tX(e,t,r){const i=e.contextSpan&&oM({fileName:e.fileName,pos:e.contextSpan.start},t,r),o=e.contextSpan&&oM({fileName:e.fileName,pos:e.contextSpan.start+e.contextSpan.length},t,r);return i&&o?{start:i.pos,length:o.pos-i.pos}:void 0}function nX(e){const t=e.declarations?Kc(e.declarations):void 0;return!!Vn(t,r=>Ao(r)?!0:$a(r)||im(r)||YE(r)?!1:"quit")}function qHe(){const e=Sk*10;let t,r,i,o;m();const s=y=>u(y,17);return{displayParts:()=>{const y=t.length&&t[t.length-1].text;return o>e&&y&&y!=="..."&&(Cg(y.charCodeAt(y.length-1))||t.push(rp(" ",16)),t.push(rp("...",15))),t},writeKeyword:y=>u(y,5),writeOperator:y=>u(y,12),writePunctuation:y=>u(y,15),writeTrailingSemicolon:y=>u(y,15),writeSpace:y=>u(y,16),writeStringLiteral:y=>u(y,8),writeParameter:y=>u(y,13),writeProperty:y=>u(y,14),writeLiteral:y=>u(y,8),writeSymbol:p,writeLine:h,write:s,writeComment:s,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Jo,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:m};function l(){if(!(o>e)&&r){const y=u3(i);y&&(o+=y.length,t.push(rp(y,16))),r=!1}}function u(y,T){o>e||(l(),o+=y.length,t.push(rp(y,T)))}function p(y,T){o>e||(l(),o+=y.length,t.push(hue(y,T)))}function h(){o>e||(o+=1,t.push(AD()),r=!0)}function m(){t=[],r=!0,i=0,o=0}}function hue(e,t){return rp(e,r(t));function r(i){const o=i.flags;return o&3?nX(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:Yw[t]}}function wl(){return rp(" ",16)}function Ep(e){return rp(pa(e),5)}function $u(e){return rp(pa(e),15)}function aM(e){return rp(pa(e),12)}function gue(e){return rp(e,13)}function vue(e){return rp(e,14)}function rX(e){const t=IE(e);return t===void 0?cf(e):Ep(t)}function cf(e){return rp(e,17)}function yue(e){return rp(e,0)}function bue(e){return rp(e,18)}function s5(e){return rp(e,24)}function Eue(e,t){return{text:e,kind:Yw[23],target:{fileName:Un(t).fileName,textSpan:Dd(t)}}}function iX(e){return rp(e,22)}function Sue(e,t){var r;const i=yae(e)?"link":bae(e)?"linkcode":"linkplain",o=[iX(`{@${i} `)];if(!e.name)e.text&&o.push(s5(e.text));else{const s=t==null?void 0:t.getSymbolAtLocation(e.name),l=s&&t?sX(s,t):void 0,u=KHe(e.text),p=fc(e.name)+e.text.slice(0,u),h=JHe(e.text.slice(u)),m=(l==null?void 0:l.valueDeclaration)||((r=l==null?void 0:l.declarations)==null?void 0:r[0]);if(m)o.push(Eue(p,m)),h&&o.push(s5(h));else{const y=u===0||e.text.charCodeAt(u)===124&&p.charCodeAt(p.length-1)!==32?" ":"";o.push(s5(p+y+h))}}return o.push(iX("}")),o}function JHe(e){let t=0;if(e.charCodeAt(t++)===124){for(;t<e.length&&e.charCodeAt(t)===32;)t++;return e.slice(t)}return e}function KHe(e){let t=e.indexOf("://");if(t===0){for(;t<e.length&&e.charCodeAt(t)!==124;)t++;return t}if(e.indexOf("()")===0)return 2;if(e.charAt(0)==="<"){let r=0,i=0;for(;i<e.length;)if(e[i]==="<"&&r++,e[i]===">"&&r--,i++,!r)return i}return 0}function Xv(e,t){var r;return(t==null?void 0:t.newLineCharacter)||((r=e.getNewLine)==null?void 0:r.call(e))||JRe}function AD(){return rp(` +`,6)}function nb(e){try{return e(AX),AX.displayParts()}finally{AX.clear()}}function fO(e,t,r,i=0){return nb(o=>{e.writeType(t,r,i|1024|16384,o)})}function sM(e,t,r,i,o=0){return nb(s=>{e.writeSymbol(t,r,i,o|8,s)})}function oX(e,t,r,i=0){return i|=25632,nb(o=>{e.writeSignature(t,r,i,void 0,o)})}function zRe(e,t){const r=t.getSourceFile();return nb(i=>{kw().writeNode(4,e,r,i)})}function Tue(e){return!!e.parent&&SA(e.parent)&&e.parent.propertyName===e}function aX(e,t){return B3(e,t.getScriptKind&&t.getScriptKind(e))}function sX(e,t){let r=e;for(;XHe(r)||fh(r)&&r.links.target;)fh(r)&&r.links.target?r=r.links.target:r=bu(r,t);return r}function XHe(e){return(e.flags&2097152)!==0}function Aue(e,t){return Sa(bu(e,t))}function Iue(e,t){for(;Cg(e.charCodeAt(t));)t+=1;return t}function l5(e,t){for(;t>-1&&E_(e.charCodeAt(t));)t-=1;return t+1}function ll(e,t=!0){const r=e&&BRe(e);return r&&!t&&Sp(r),r}function mO(e,t,r){let i=r(e);return i?Nr(i,e):i=BRe(e,r),i&&!t&&Sp(i),i}function BRe(e,t){const r=t?s=>mO(s,!0,t):ll,o=xn(e,r,void 0,t?s=>s&&lX(s,!0,t):s=>s&&_1(s),r);if(o===e){const s=Na(e)?Nr(w.createStringLiteralFromNode(e),e):hp(e)?Nr(w.createNumericLiteral(e.text,e.numericLiteralFlags),e):w.cloneNode(e);return dt(s,e)}return o.parent=void 0,o}function _1(e,t=!0){if(e){const r=w.createNodeArray(e.map(i=>ll(i,t)),e.hasTrailingComma);return dt(r,e),r}return e}function lX(e,t,r){return w.createNodeArray(e.map(i=>mO(i,t,r)),e.hasTrailingComma)}function Sp(e){cX(e),xue(e)}function cX(e){Rue(e,1024,$He)}function xue(e){Rue(e,2048,oU)}function nT(e,t){const r=e.getSourceFile(),i=r.text;YHe(e,i)?ID(e,t,r):hO(e,t,r),lM(e,t,r)}function YHe(e,t){const r=e.getFullStart(),i=e.getStart();for(let o=r;o<i;o++)if(t.charCodeAt(o)===10)return!0;return!1}function Rue(e,t,r){P_(e,t);const i=r(e);i&&Rue(i,t,r)}function $He(e){return e.forEachChild(t=>t)}function rT(e,t){let r=e;for(let i=1;!C4(t,r);i++)r=`${e}_${i}`;return r}function _O(e,t,r,i){let o=0,s=-1;for(const{fileName:l,textChanges:u}of e){N.assert(l===t);for(const p of u){const{span:h,newText:m}=p,y=QHe(m,tg(r));if(y!==-1&&(s=h.start+o+y,!i))return s;o+=m.length-h.length}}return N.assert(i),N.assert(s>=0),s}function ID(e,t,r,i,o){Y2(r.text,e.pos,Due(t,r,i,o,uP))}function lM(e,t,r,i,o){$2(r.text,e.end,Due(t,r,i,o,cW))}function hO(e,t,r,i,o){$2(r.text,e.pos,Due(t,r,i,o,uP))}function Due(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 QHe(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 c5(e){return mr(e)&&e.operatorToken.kind===28||La(e)||(Uk(e)||lH(e))&&La(e.expression)}function u5(e,t,r){const i=kv(e.parent);switch(i.kind){case 214:return t.getContextualType(i,r);case 226:{const{left:o,operatorToken:s,right:l}=i;return d5(s.kind)?t.getTypeAtLocation(e===l?o:l):t.getContextualType(e,r)}case 296:return dX(i,t);default:return t.getContextualType(e,r)}}function cM(e,t,r){const i=lf(e,t),o=JSON.stringify(r);return i===0?`'${Zf(o).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:o}function d5(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function Nue(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function uX(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function dX(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function uM(e,t,r,i){const o=r.getTypeChecker();let s=!0;const l=()=>s=!1,u=o.typeToTypeNode(e,t,1,{trackSymbol:(p,h,m)=>(s=s&&o.isSymbolAccessible(p,h,m,!1).accessibility===0,!s),reportInaccessibleThisError:l,reportPrivateInBaseOfClassExpression:l,reportInaccessibleUniqueSymbolError:l,moduleResolverHost:KK(r,i)});return s?u:void 0}function Cue(e){return e===179||e===180||e===181||e===171||e===173}function GRe(e){return e===262||e===176||e===174||e===177||e===178}function VRe(e){return e===267}function p5(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 ZHe(e,t){const r=e.getLastToken(t);if(r&&r.kind===27)return!1;if(Cue(e.kind)){if(r&&r.kind===28)return!1}else if(VRe(e.kind)){const u=Xa(e.getChildren(t));if(u&&L_(u))return!1}else if(GRe(e.kind)){const u=Xa(e.getChildren(t));if(u&&kE(u))return!1}else if(!p5(e.kind))return!1;if(e.kind===246)return!0;const i=Vn(e,u=>!u.parent),o=m1(e,i,t);if(!o||o.kind===20)return!0;const s=t.getLineAndCharacterOfPosition(e.getEnd()).line,l=t.getLineAndCharacterOfPosition(o.getStart(t)).line;return s!==l}function f5(e,t,r){const i=Vn(t,o=>o.end!==e?"quit":IX(o.kind));return!!i&&ZHe(i,r)}function gO(e){let t=0,r=0;const i=5;return Uo(e,function o(s){if(p5(s.kind)){const l=s.getLastToken(e);(l==null?void 0:l.kind)===27?t++:r++}else if(Cue(s.kind)){const l=s.getLastToken(e);if((l==null?void 0:l.kind)===27)t++;else if(l&&l.kind!==28){const u=ys(e,l.getStart(e)).line,p=ys(e,hh(e,l.end).start).line;u!==p&&r++}}return t+r>=i?!0:Uo(s,o)}),t===0&&r<=1?!0:t/r>1/i}function m5(e,t){return g5(e,e.getDirectories,t)||[]}function pX(e,t,r,i,o){return g5(e,e.readDirectory,t,r,i,o)||et}function vO(e,t){return g5(e,e.fileExists,t)}function _5(e,t){return h5(()=>Km(t,e))||!1}function h5(e){try{return e()}catch{return}}function g5(e,t,...r){return h5(()=>t&&t.apply(e,r))}function fX(e,t,r){const i=[];return ym(e,o=>{if(o===r)return!0;const s=$r(o,"package.json");vO(t,s)&&i.push(s)}),i}function Pue(e,t){let r;return ym(e,i=>{if(i==="node_modules"||(r=Ble(i,o=>vO(t,o),"package.json"),r))return!0}),r}function Mue(e,t){if(!t.fileExists)return[];const r=[];return ym(ai(e),i=>{const o=$r(i,"package.json");if(t.fileExists(o)){const s=mX(o,t);s&&r.push(s)}}),r}function mX(e,t){if(!t.readFile)return;const r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",o=T3(i),s={};if(o)for(const p of r){const h=o[p];if(!h)continue;const m=new Map;for(const y in h)m.set(y,h[y]);s[p]=m}const l=[[1,s.dependencies],[2,s.devDependencies],[8,s.optionalDependencies],[4,s.peerDependencies]];return{...s,parseable:!!o,fileName:e,get:u,has(p,h){return!!u(p,h)}};function u(p,h=15){for(const[m,y]of l)if(y&&h&m){const T=y.get(p);if(T!==void 0)return T}}}function dM(e,t,r){const i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||Mue(e.fileName,r)).filter(R=>R.parseable);let o,s,l;return{allowsImportingAmbientModule:p,allowsImportingSourceFile:h,allowsImportingSpecifier:m};function u(R){const M=A(R);for(const C of i)if(C.has(M)||C.has(PF(M)))return!0;return!1}function p(R,M){if(!i.length||!R.valueDeclaration)return!0;if(!s)s=new Map;else{const Q=s.get(R);if(Q!==void 0)return Q}const C=Zf(R.getName());if(y(C))return s.set(R,!0),!0;const O=R.valueDeclaration.getSourceFile(),U=T(O.fileName,M);if(typeof U>"u")return s.set(R,!0),!0;const K=u(U)||u(C);return s.set(R,K),K}function h(R,M){if(!i.length)return!0;if(!l)l=new Map;else{const U=l.get(R);if(U!==void 0)return U}const C=T(R.fileName,M);if(!C)return l.set(R,!0),!0;const O=u(C);return l.set(R,O),O}function m(R){return!i.length||y(R)||Op(R)||dp(R)?!0:u(R)}function y(R){return!!(cd(e)&&z_.nodeCoreModules.has(R)&&(o===void 0&&(o=v5(e)),o))}function T(R,M){if(!R.includes("node_modules"))return;const C=l1.getNodeModulesPackageName(r.getCompilationSettings(),e,R,M,t);if(C&&!Op(C)&&!dp(C))return A(C)}function A(R){const M=Wc(wP(R)).slice(1);return uo(M[0],"@")?`${M[0]}/${M[1]}`:M[0]}}function v5(e){return bt(e.imports,({text:t})=>z_.nodeCoreModules.has(t))}function yO(e){return Or(Wc(e),"node_modules")}function _X(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function Lue(e,t){const r=Dd(e),i=pA(t,r,tl,I6);if(i>=0){const o=t[i];return N.assertEqual(o.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),oa(o,_X)}}function kue(e,t){var r;let i=pA(t,e.start,l=>l.start,nl);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;const o=[],s=Kl(e);for(;;){const l=ri(t[i],_X);if(!l||l.start>s)break;Wne(e,l)&&o.push(l),i++}return o}function II({startPosition:e,endPosition:t}){return pc(e,t===void 0?e:t)}function hX(e,t){const r=po(e,t.start);return Vn(r,o=>o.getStart(e)<t.start||o.getEnd()>Kl(t)?"quit":yt(o)&&TD(t,Dd(o,e)))}function gX(e,t,r=tl){return e?To(e)?r(Wt(e,t)):t(e,0):void 0}function vX(e){return To(e)?Ua(e):e}function wue(e,t){if(jRe(e)){const r=URe(e);if(r)return r;const i=Fu.moduleSymbolToValidIdentifier(Oue(e),t,!1),o=Fu.moduleSymbolToValidIdentifier(Oue(e),t,!0);return i===o?i:[i,o]}return e.name}function y5(e,t,r){return jRe(e)?URe(e)||Fu.moduleSymbolToValidIdentifier(Oue(e),t,!!r):e.name}function jRe(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function URe(e){return Ht(e.declarations,t=>{var r,i,o;return kl(t)?(r=ri($l(t.expression),Ve))==null?void 0:r.text:Ku(t)&&t.symbol.flags===2097152?(i=ri(t.propertyName,Ve))==null?void 0:i.text:(o=ri(Lo(t),Ve))==null?void 0:o.text})}function Oue(e){var t;return N.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${N.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{const i=N.formatSyntaxKind(r.kind),o=lr(r),{expression:s}=r;return(o?"[JS]":"")+i+(s?` (expression: ${N.formatSyntaxKind(s.kind)})`:"")}).join(", ")}.`)}function Wue(e,t,r){const i=t.length;if(i+r>e.length)return!1;for(let o=0;o<i;o++)if(t.charCodeAt(o)!==e.charCodeAt(o+r))return!1;return!0}function yX(e){return e.charCodeAt(0)===95}function HRe(e){return!Fue(e)}function Fue(e){const t=e.getSourceFile();return!t.externalModuleIndicator&&!t.commonJsModuleIndicator?!1:lr(e)||!Vn(e,r=>Xl(r)&&A_(r))}function b5(e){return!!(SV(e)&65536)}function E5(e,t){return Ht(e.imports,i=>{if(z_.nodeCoreModules.has(i.text))return uo(i.text,"node:")})??t.usesUriStyleNodeCoreModules}function bO(e){return e===` +`?1:0}function iT(e){return To(e)?ig(Wo(e[0]),e.slice(1)):Wo(e)}function S5({options:e},t){const r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!gO(t);return{...e,semicolons:i?"remove":"ignore"}}function bX(e){return e===2||e===3}function xD(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function T5(e,t){const r=new Set,i=new Set,o=new Set;for(const u of t)if(!EP(u)){const p=hs(u.expression);if(DE(p))switch(p.kind){case 15:case 11:r.add(p.text);break;case 9:i.add(parseInt(p.text));break;case 10:const h=Soe(Al(p.text,"n")?p.text.slice(0,-1):p.text);h&&o.add(HE(h));break}else{const h=e.getSymbolAtLocation(u.expression);if(h&&h.valueDeclaration&&i1(h.valueDeclaration)){const m=e.getConstantValue(h.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(HE(u))}}}function EX(e,t,r,i){var o;const s=typeof e=="string"?e:e.fileName;if(!UE(s))return!1;const l=t.getCompilerOptions(),u=wu(l),p=typeof e=="string"?Gw(il(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&&P3(u))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}var Qu,SX,qRe,A5,TX,AX,JRe,I5,IX,eqe=I({"src/services/utilities.ts"(){si(),Qu=Nv(99,!0),SX=(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))(SX||{}),qRe=/^\/\/\/\s*</,A5=[133,131,163,136,97,140,143,146,106,150,151,148,154,155,114,112,116,157,158,159],TX=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(TX||{}),AX=qHe(),JRe=` +`,I5="anonymous function",IX=Jm(Cue,GRe,VRe,p5)}});function xX(e){let t=1;const r=$p(),i=new Map,o=new Map;let s;const l={isUsableByFile:A=>A===s,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),s=void 0},add:(A,R,M,C,O,U,K,Q)=>{A!==s&&(l.clear(),s=A);let V;if(O){const de=K3(O.fileName);if(de){const{topLevelNodeModulesIndex:ie,topLevelPackageNameIndex:ve,packageRootIndex:Le}=de;if(V=Aw(wP(O.fileName.substring(ve+1,Le))),uo(A,O.path.substring(0,ie))){const Ue=o.get(V),Ee=O.fileName.substring(0,ve+1);if(Ue){const De=Ue.indexOf(Ih);ie>De&&o.set(V,Ee)}else o.set(V,Ee)}}}const G=U===1&&xR(R)||R,ne=U===0||lO(G)?Vi(M):wue(G,void 0),he=typeof ne=="string"?ne:ne[0],ye=typeof ne=="string"?void 0:ne[1],Y=Zf(C.name),X=t++,oe=bu(R,Q),pe=R.flags&33554432?void 0:R,Ce=C.flags&33554432?void 0:C;(!pe||!Ce)&&i.set(X,[R,C]),r.add(p(he,R,Xc(Y)?void 0:Y,Q),{id:X,symbolTableKey:M,symbolName:he,capitalizedSymbolName:ye,moduleName:Y,moduleFile:O,moduleFileName:O==null?void 0:O.fileName,packageName:V,exportKind:U,targetFlags:oe.flags,isFromPackageJson:K,symbol:pe,moduleSymbol:Ce})},get:(A,R)=>{if(A!==s)return;const M=r.get(R);return M==null?void 0:M.map(u)},search:(A,R,M,C)=>{if(A===s)return zc(r,(O,U)=>{const{symbolName:K,ambientModuleName:Q}=h(U),V=R&&O[0].capitalizedSymbolName||K;if(M(V,O[0].targetFlags)){const G=O.map(u).filter((ne,he)=>T(ne,O[he].packageName));if(G.length){const ne=C(G,V,!!Q,U);if(ne!==void 0)return ne}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(A,R,M)=>m(A)&&m(R)?!1:s&&s!==R.path||M&&v5(A)!==v5(R)||!Hm(A.moduleAugmentations,R.moduleAugmentations)||!y(A,R)?(l.clear(),!0):(s=R.path,!1)};return N.isDebugging&&Object.defineProperty(l,"__cache",{value:r}),l;function u(A){if(A.symbol&&A.moduleSymbol)return A;const{id:R,exportKind:M,targetFlags:C,isFromPackageJson:O,moduleFileName:U}=A,[K,Q]=i.get(R)||et;if(K&&Q)return{symbol:K,moduleSymbol:Q,moduleFileName:U,exportKind:M,targetFlags:C,isFromPackageJson:O};const V=(O?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),se=A.moduleSymbol||Q||N.checkDefined(A.moduleFile?V.getMergedSymbol(A.moduleFile.symbol):V.tryFindAmbientModule(A.moduleName)),G=A.symbol||K||N.checkDefined(M===2?V.resolveExternalModuleSymbol(se):V.tryGetMemberInModuleExportsAndProperties(Vi(A.symbolTableKey),se),`Could not find symbol '${A.symbolName}' by key '${A.symbolTableKey}' in module ${se.name}`);return i.set(R,[G,se]),{symbol:G,moduleSymbol:se,moduleFileName:U,exportKind:M,targetFlags:C,isFromPackageJson:O}}function p(A,R,M,C){const O=M||"";return`${A.length} ${Sa(bu(R,C))} ${A} ${O}`}function h(A){const R=A.indexOf(" "),M=A.indexOf(" ",R+1),C=parseInt(A.substring(0,R),10),O=A.substring(M+1),U=O.substring(0,C),K=O.substring(C+1);return{symbolName:U,ambientModuleName:K===""?void 0:K}}function m(A){return!A.commonJsModuleIndicator&&!A.externalModuleIndicator&&!A.moduleAugmentations&&!A.ambientModuleNames}function y(A,R){if(!Hm(A.ambientModuleNames,R.ambientModuleNames))return!1;let M=-1,C=-1;for(const O of R.ambientModuleNames){const U=K=>ej(K)&&K.name.text===O;if(M=mi(A.statements,U,M+1),C=mi(R.statements,U,C+1),A.statements[M]!==R.statements[C])return!1}return!0}function T(A,R){if(!R||!A.moduleFileName)return!0;const M=e.getGlobalTypingsCacheLocation();if(M&&uo(A.moduleFileName,M))return!0;const C=o.get(R);return!C||uo(A.moduleFileName,C)}}function RX(e,t,r,i,o,s,l){var u;if(t===r)return!1;const p=l==null?void 0:l.get(t.path,r.path,i,{});if((p==null?void 0:p.isBlockedByPackageJsonDependencies)!==void 0)return!p.isBlockedByPackageJsonDependencies;const h=wv(s),m=(u=s.getGlobalTypingsCacheLocation)==null?void 0:u.call(s),y=!!l1.forEachFileNameOfModule(t.fileName,r.fileName,s,!1,T=>{const A=e.getSourceFile(T);return(A===r||!A)&&tqe(t.fileName,T,h,m)});if(o){const T=y&&o.allowsImportingSourceFile(r,s);return l==null||l.setBlockedByPackageJsonDependencies(t.path,r.path,i,{},!T),T}return y}function tqe(e,t,r,i){const o=ym(t,l=>ic(l)==="node_modules"?l:void 0),s=o&&ai(r(o));return s===void 0||uo(r(e),s)||!!i&&uo(r(i),s)}function DX(e,t,r,i,o){var s,l;const u=AR(t),p=r.autoImportFileExcludePatterns&&eo(r.autoImportFileExcludePatterns,m=>{const y=F3(m,"","exclude");return y?By(y,u):void 0});KRe(e.getTypeChecker(),e.getSourceFiles(),p,t,(m,y)=>o(m,y,e,!1));const h=i&&((s=t.getPackageJsonAutoImportProvider)==null?void 0:s.call(t));if(h){const m=Xs(),y=e.getTypeChecker();KRe(h.getTypeChecker(),h.getSourceFiles(),p,t,(T,A)=>{(A&&!e.getSourceFile(A.fileName)||!A&&!y.resolveName(T.name,void 0,1536,!1))&&o(T,A,h,!0)}),(l=t.log)==null||l.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${Xs()-m}`)}}function KRe(e,t,r,i,o){var s,l;const u=(s=i.getSymlinkCache)==null?void 0:s.call(i).getSymlinkedDirectoriesByRealpath(),p=r&&(({fileName:h,path:m})=>{if(r.some(y=>y.test(h)))return!0;if(u!=null&&u.size&&x0(h)){let y=ai(h);return ym(ai(m),T=>{const A=u.get(Fc(T));if(A)return A.some(R=>r.some(M=>M.test(h.replace(y,R))));y=ai(y)})??!1}return!1});for(const h of e.getAmbientModules())!h.name.includes("*")&&!(r&&((l=h.declarations)!=null&&l.every(m=>p(m.getSourceFile()))))&&o(h,void 0);for(const h of t)Fp(h)&&!(p!=null&&p(h))&&o(e.getMergedSymbol(h.symbol),h)}function EO(e,t,r,i,o){var s,l,u,p,h;const m=Xs();(s=t.getPackageJsonAutoImportProvider)==null||s.call(t);const y=((l=t.getCachedExportInfoMap)==null?void 0:l.call(t))||xX({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(y.isUsableByFile(e.path))return(u=t.log)==null||u.call(t,"getExportInfoMap: cache hit"),y;(p=t.log)==null||p.call(t,"getExportInfoMap: cache miss or empty; calculating new results");const T=r.getCompilerOptions();let A=0;try{DX(r,t,i,!0,(R,M,C,O)=>{++A%100===0&&(o==null||o.throwIfCancellationRequested());const U=new Map,K=C.getTypeChecker(),Q=x5(R,K,T);Q&&XRe(Q.symbol,K)&&y.add(e.path,Q.symbol,Q.exportKind===1?"default":"export=",R,M,Q.exportKind,O,K),K.forEachExportAndPropertyOfModule(R,(V,se)=>{V!==(Q==null?void 0:Q.symbol)&&XRe(V,K)&&Am(U,se)&&y.add(e.path,V,se,R,M,0,O,K)})})}catch(R){throw y.clear(),R}return(h=t.log)==null||h.call(t,`getExportInfoMap: done in ${Xs()-m} ms`),y}function x5(e,t,r){const i=nqe(e,t);if(!i)return;const{symbol:o,exportKind:s}=i,l=R5(o,t,r);return l&&{symbol:o,exportKind:s,...l}}function XRe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!tk(e)&&!Eie(e)}function nqe(e,t){const r=t.resolveExternalModuleSymbol(e);if(r!==e)return{symbol:r,exportKind:2};const i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function R5(e,t,r){const i=xR(e);if(i)return{resolvedSymbol:i,name:i.name};const o=rqe(e);if(o!==void 0)return{resolvedSymbol:e,name:o};if(e.flags&2097152){const s=t.getImmediateAliasedSymbol(e);if(s&&s.parent)return R5(s,t,r)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:y5(e,r.target)}}function rqe(e){return e.declarations&&Ht(e.declarations,t=>{var r;if(kl(t))return(r=ri($l(t.expression),Ve))==null?void 0:r.text;if(Ku(t))return N.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var NX,CX,iqe=I({"src/services/exportInfoMap.ts"(){si(),NX=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(NX||{}),CX=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(CX||{})}});function YRe(){const e=Nv(99,!1);function t(i,o,s){return sqe(r(i,o,s),i)}function r(i,o,s){let l=0,u=0;const p=[],{prefix:h,pushTemplate:m}=uqe(o);i=h+i;const y=h.length;m&&p.push(16),e.setText(i);let T=0;const A=[];let R=0;do{l=e.scan(),yR(l)||(M(),u=l);const C=e.getTokenEnd();if(aqe(e.getTokenStart(),C,y,fqe(l),A),C>=i.length){const O=oqe(e,l,el(p));O!==void 0&&(T=O)}}while(l!==1);function M(){switch(l){case 44:case 69:!eDe[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){const C=el(p);C===16?(l=e.reScanTemplateToken(!1),l===18?p.pop():N.assertEqual(l,17,"Should have been a template middle.")):(N.assertEqual(C,19,"Should have been an open brace"),p.pop())}break;default:if(!Bd(l))break;(u===25||Bd(u)&&Bd(l)&&!cqe(u,l))&&(l=80)}}return{endOfLineState:T,spans:A}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}function oqe(e,t,r){switch(t){case 11:{if(!e.isUnterminated())return;const i=e.getTokenText(),o=i.length-1;let 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(Ny(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return N.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===16?6:void 0}}function aqe(e,t,r,i,o){if(i===8)return;e===0&&r>0&&(e+=r);const s=t-e;s>0&&o.push(e-r,s,i)}function sqe(e,t){const r=[],i=e.spans;let o=0;for(let l=0;l<i.length;l+=3){const u=i[l],p=i[l+1],h=i[l+2];if(o>=0){const m=u-o;m>0&&r.push({length:m,classification:4})}r.push({length:p,classification:lqe(h)}),o=u+p}const s=t.length-o;return s>0&&r.push({length:s,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function lqe(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 cqe(e,t){if(!BK(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function uqe(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 N.assertNever(e)}}function dqe(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 pqe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function fqe(e){if(Bd(e))return 3;if(dqe(e)||pqe(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 Ny(e)?6:2}}function zue(e,t,r,i,o){return ZRe(PX(e,t,r,i,o))}function $Re(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function PX(e,t,r,i,o){const s=[];return r.forEachChild(function u(p){if(!(!p||!a4(o,p.pos,p.getFullWidth()))){if($Re(t,p.kind),Ve(p)&&!Fl(p)&&i.has(p.escapedText)){const h=e.getSymbolAtLocation(p),m=h&&QRe(h,ZS(p),e);m&&l(p.getStart(r),p.getEnd(),m)}p.forEachChild(u)}}),{spans:s,endOfLineState:0};function l(u,p,h){const m=p-u;N.assert(m>0,`Classification had non-positive length of ${m}`),s.push(u),s.push(m),s.push(h)}}function QRe(e,t,r){const i=e.getFlags();if(i&2885600)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&mqe(e)?14:void 0:i&2097152?QRe(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function mqe(e){return bt(e.declarations,t=>Xl(t)&&jg(t)===1)}function _qe(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 ZRe(e){N.assert(e.spans.length%3===0);const t=e.spans,r=[];for(let i=0;i<t.length;i+=3)r.push({textSpan:vu(t[i],t[i+1]),classificationType:_qe(t[i+2])});return r}function Bue(e,t,r){return ZRe(MX(e,t,r))}function MX(e,t,r){const i=r.start,o=r.length,s=Nv(99,!1,t.languageVariant,t.text),l=Nv(99,!1,t.languageVariant,t.text),u=[];return Q(t),{spans:u,endOfLineState:0};function p(V,se,G){u.push(V),u.push(se),u.push(G)}function h(V){for(s.resetTokenState(V.pos);;){const se=s.getTokenEnd();if(!Mne(t.text,se))return se;const G=s.scan(),ne=s.getTokenEnd(),he=ne-se;if(!yR(G))return se;switch(G){case 4:case 5:continue;case 2:case 3:m(V,G,se,he),s.resetTokenState(ne);continue;case 7:const ye=t.text,Y=ye.charCodeAt(se);if(Y===60||Y===62){p(se,he,1);continue}N.assert(Y===124||Y===61),M(ye,se,ne);break;case 6:break;default:N.assertNever(G)}}}function m(V,se,G,ne){if(se===3){const he=Jae(t.text,G,ne);if(he&&he.jsDoc){Ha(he.jsDoc,V),T(he.jsDoc);return}}else if(se===2&&A(G,ne))return;y(G,ne)}function y(V,se){p(V,se,1)}function T(V){var se,G,ne,he,ye,Y,X,oe;let pe=V.pos;if(V.tags)for(const de of V.tags){de.pos!==pe&&y(pe,de.pos-pe),p(de.pos,1,10),p(de.tagName.pos,de.tagName.end-de.tagName.pos,18),pe=de.tagName.end;let ie=de.tagName.end;switch(de.kind){case 348:const ve=de;Ce(ve),ie=ve.isNameFirst&&((se=ve.typeExpression)==null?void 0:se.end)||ve.name.end;break;case 355:const Le=de;ie=Le.isNameFirst&&((G=Le.typeExpression)==null?void 0:G.end)||Le.name.end;break;case 352:R(de),pe=de.end,ie=de.typeParameters.end;break;case 353:const Ue=de;ie=((ne=Ue.typeExpression)==null?void 0:ne.kind)===316&&((he=Ue.fullName)==null?void 0:he.end)||((ye=Ue.typeExpression)==null?void 0:ye.end)||ie;break;case 345:ie=de.typeExpression.end;break;case 351:Q(de.typeExpression),pe=de.end,ie=de.typeExpression.end;break;case 350:case 347:ie=de.typeExpression.end;break;case 349:Q(de.typeExpression),pe=de.end,ie=((Y=de.typeExpression)==null?void 0:Y.end)||ie;break;case 354:ie=((X=de.name)==null?void 0:X.end)||ie;break;case 335:case 336:ie=de.class.end;break;case 356:Q(de.typeExpression),pe=de.end,ie=((oe=de.typeExpression)==null?void 0:oe.end)||ie;break}typeof de.comment=="object"?y(de.comment.pos,de.comment.end-de.comment.pos):typeof de.comment=="string"&&y(ie,de.end-ie)}pe!==V.end&&y(pe,V.end-pe);return;function Ce(de){de.isNameFirst&&(y(pe,de.name.pos-pe),p(de.name.pos,de.name.end-de.name.pos,17),pe=de.name.end),de.typeExpression&&(y(pe,de.typeExpression.pos-pe),Q(de.typeExpression),pe=de.typeExpression.end),de.isNameFirst||(y(pe,de.name.pos-pe),p(de.name.pos,de.name.end-de.name.pos,17),pe=de.name.end)}}function A(V,se){const G=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,ne=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,he=t.text.substr(V,se),ye=G.exec(he);if(!ye||!ye[3]||!(ye[3]in z2))return!1;let Y=V;y(Y,ye[1].length),Y+=ye[1].length,p(Y,ye[2].length,10),Y+=ye[2].length,p(Y,ye[3].length,21),Y+=ye[3].length;const X=ye[4];let oe=Y;for(;;){const Ce=ne.exec(X);if(!Ce)break;const de=Y+Ce.index+Ce[1].length;de>oe&&(y(oe,de-oe),oe=de),p(oe,Ce[2].length,22),oe+=Ce[2].length,Ce[3].length&&(y(oe,Ce[3].length),oe+=Ce[3].length),p(oe,Ce[4].length,5),oe+=Ce[4].length,Ce[5].length&&(y(oe,Ce[5].length),oe+=Ce[5].length),p(oe,Ce[6].length,24),oe+=Ce[6].length}Y+=ye[4].length,Y>oe&&y(oe,Y-oe),ye[5]&&(p(Y,ye[5].length,10),Y+=ye[5].length);const pe=V+se;return Y<pe&&y(Y,pe-Y),!0}function R(V){for(const se of V.getChildren())Q(se)}function M(V,se,G){let ne;for(ne=se;ne<G&&!Hu(V.charCodeAt(ne));ne++);for(p(se,ne-se,1),l.resetTokenState(ne);l.getTokenEnd()<G;)C()}function C(){const V=l.getTokenEnd(),se=l.scan(),G=l.getTokenEnd(),ne=K(se);ne&&p(V,G-V,ne)}function O(V){if(Zm(V)||Fl(V))return!0;const se=U(V);if(!EA(V)&&V.kind!==12&&se===void 0)return!1;const G=V.kind===12?V.pos:h(V),ne=V.end-G;if(N.assert(ne>=0),ne>0){const he=se||K(V.kind,V);he&&p(G,ne,he)}return!0}function U(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,se){if(Bd(V))return 3;if((V===30||V===32)&&se&&lue(se.parent))return 10;if(Cj(V)){if(se){const G=se.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 se&&se.parent.kind===291?24:6;if(V===14)return 6;if(Ny(V))return 6;if(V===12)return 23;if(V===80){if(se){switch(se.parent.kind){case 263:return se.parent.name===se?11:void 0;case 168:return se.parent.name===se?15:void 0;case 264:return se.parent.name===se?13:void 0;case 266:return se.parent.name===se?12:void 0;case 267:return se.parent.name===se?14:void 0;case 169:return se.parent.name===se?VE(se)?3:17:void 0}if(Pg(se.parent))return 3}return 2}}}function Q(V){if(V&&tL(i,o,V.pos,V.getFullWidth())){$Re(e,V.kind);for(const se of V.getChildren(t))O(se)||Q(se)}}}var eDe,tDe=I({"src/services/classifier.ts"(){si(),eDe=Zte([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),D5,hqe=I({"src/services/documentHighlights.ts"(){si(),(e=>{function t(Y,X,oe,pe,Ce){const de=Vd(oe,pe);if(de.parent&&(k_(de.parent)&&de.parent.tagName===de||e1(de.parent))){const{openingElement:ie,closingElement:ve}=de.parent.parent,Le=[ie,ve].map(({tagName:Ue})=>r(Ue,oe));return[{fileName:oe.fileName,highlightSpans:Le}]}return i(pe,de,Y,X,Ce)||o(de,oe)}e.getDocumentHighlights=t;function r(Y,X){return{fileName:X.fileName,textSpan:Dd(Y,X),kind:"none"}}function i(Y,X,oe,pe,Ce){const de=new Set(Ce.map(Ue=>Ue.fileName)),ie=Ws.getReferenceEntriesForNode(Y,X,oe,Ce,pe,void 0,de);if(!ie)return;const ve=P2(ie.map(Ws.toHighlightSpan),Ue=>Ue.fileName,Ue=>Ue.span),Le=Mu(oe.useCaseSensitiveFileNames());return zo(Kb(ve.entries(),([Ue,Ee])=>{if(!de.has(Ue)){if(!oe.redirectTargetsMap.has(il(Ue,oe.getCurrentDirectory(),Le)))return;const De=oe.getSourceFile(Ue);Ue=In(Ce,We=>!!We.redirectInfo&&We.redirectInfo.redirectTarget===De).fileName,N.assert(de.has(Ue))}return{fileName:Ue,highlightSpans:Ee}}))}function o(Y,X){const oe=s(Y,X);return oe&&[{fileName:X.fileName,highlightSpans:oe}]}function s(Y,X){switch(Y.kind){case 101:case 93:return FS(Y.parent)?ne(Y.parent,X):void 0;case 107:return pe(Y.parent,Im,Q);case 111:return pe(Y.parent,uH,K);case 113:case 85:case 98:const de=Y.kind===85?Y.parent.parent:Y.parent;return pe(de,BS,U);case 109:return pe(Y.parent,vP,O);case 84:case 90:return EP(Y.parent)||UR(Y.parent)?pe(Y.parent.parent.parent,vP,O):void 0;case 83:case 88:return pe(Y.parent,cC,C);case 99:case 117:case 92:return pe(Y.parent,ie=>Py(ie,!0),M);case 137:return oe(Ml,[137]);case 139:case 153:return oe(Cy,[139,153]);case 135:return pe(Y.parent,Ky,V);case 134:return Ce(V(Y));case 127:return Ce(se(Y));case 103:case 147:return;default:return Pv(Y.kind)&&(Ju(Y.parent)||Ll(Y.parent))?Ce(T(Y.kind,Y.parent)):void 0}function oe(de,ie){return pe(Y.parent,de,ve=>{var Le;return eo((Le=ri(ve,T_))==null?void 0:Le.symbol.declarations,Ue=>de(Ue)?In(Ue.getChildren(X),Ee=>Or(ie,Ee.kind)):void 0)})}function pe(de,ie,ve){return ie(de)?Ce(ve(de,X)):void 0}function Ce(de){return de&&de.map(ie=>r(ie,X))}}function l(Y){return uH(Y)?[Y]:BS(Y)?So(Y.catchClause?l(Y.catchClause):Y.tryBlock&&l(Y.tryBlock),Y.finallyBlock&&l(Y.finallyBlock)):ea(Y)?void 0:h(Y,l)}function u(Y){let X=Y;for(;X.parent;){const oe=X.parent;if(kE(oe)||oe.kind===312)return oe;if(BS(oe)&&oe.tryBlock===X&&oe.catchClause)return X;X=oe}}function p(Y){return cC(Y)?[Y]:ea(Y)?void 0:h(Y,p)}function h(Y,X){const oe=[];return Y.forEachChild(pe=>{const Ce=X(pe);Ce!==void 0&&oe.push(...mA(Ce))}),oe}function m(Y,X){const oe=y(X);return!!oe&&oe===Y}function y(Y){return Vn(Y,X=>{switch(X.kind){case 255:if(Y.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!Y.label||ye(X,Y.label.escapedText);default:return ea(X)&&"quit"}})}function T(Y,X){return eo(A(X,OA(Y)),oe=>SD(oe,Y))}function A(Y,X){const oe=Y.parent;switch(oe.kind){case 268:case 312:case 241:case 296:case 297:return X&64&&Ac(Y)?[...Y.members,Y]:oe.statements;case 176:case 174:case 262:return[...oe.parameters,...di(oe.parent)?oe.parent.members:[]];case 263:case 231:case 264:case 187:const pe=oe.members;if(X&15){const Ce=In(oe.members,Ml);if(Ce)return[...pe,...Ce.parameters]}else if(X&64)return[...pe,oe];return pe;case 210:return;default:N.assertNever(oe,"Invalid container kind.")}}function R(Y,X,...oe){return X&&Or(oe,X.kind)?(Y.push(X),!0):!1}function M(Y){const X=[];if(R(X,Y.getFirstToken(),99,117,92)&&Y.kind===246){const oe=Y.getChildren();for(let pe=oe.length-1;pe>=0&&!R(X,oe[pe],117);pe--);}return Xe(p(Y.statement),oe=>{m(Y,oe)&&R(X,oe.getFirstToken(),83,88)}),X}function C(Y){const X=y(Y);if(X)switch(X.kind){case 248:case 249:case 250:case 246:case 247:return M(X);case 255:return O(X)}}function O(Y){const X=[];return R(X,Y.getFirstToken(),109),Xe(Y.caseBlock.clauses,oe=>{R(X,oe.getFirstToken(),84,90),Xe(p(oe),pe=>{m(Y,pe)&&R(X,pe.getFirstToken(),83)})}),X}function U(Y,X){const oe=[];if(R(oe,Y.getFirstToken(),113),Y.catchClause&&R(oe,Y.catchClause.getFirstToken(),85),Y.finallyBlock){const pe=vs(Y,98,X);R(oe,pe,98)}return oe}function K(Y,X){const oe=u(Y);if(!oe)return;const pe=[];return Xe(l(oe),Ce=>{pe.push(vs(Ce,111,X))}),kE(oe)&&LE(oe,Ce=>{pe.push(vs(Ce,107,X))}),pe}function Q(Y,X){const oe=Bp(Y);if(!oe)return;const pe=[];return LE(oa(oe.body,Ko),Ce=>{pe.push(vs(Ce,107,X))}),Xe(l(oe.body),Ce=>{pe.push(vs(Ce,111,X))}),pe}function V(Y){const X=Bp(Y);if(!X)return;const oe=[];return X.modifiers&&X.modifiers.forEach(pe=>{R(oe,pe,134)}),Uo(X,pe=>{G(pe,Ce=>{Ky(Ce)&&R(oe,Ce.getFirstToken(),135)})}),oe}function se(Y){const X=Bp(Y);if(!X)return;const oe=[];return Uo(X,pe=>{G(pe,Ce=>{qW(Ce)&&R(oe,Ce.getFirstToken(),127)})}),oe}function G(Y,X){X(Y),!ea(Y)&&!di(Y)&&!md(Y)&&!Xl(Y)&&!xm(Y)&&!ji(Y)&&Uo(Y,oe=>G(oe,X))}function ne(Y,X){const oe=he(Y,X),pe=[];for(let Ce=0;Ce<oe.length;Ce++){if(oe[Ce].kind===93&&Ce<oe.length-1){const de=oe[Ce],ie=oe[Ce+1];let ve=!0;for(let Le=ie.getStart(X)-1;Le>=de.end;Le--)if(!E_(X.text.charCodeAt(Le))){ve=!1;break}if(ve){pe.push({fileName:X.fileName,textSpan:pc(de.getStart(),ie.end),kind:"reference"}),Ce++;continue}}pe.push(r(oe[Ce],X))}return pe}function he(Y,X){const oe=[];for(;FS(Y.parent)&&Y.parent.elseStatement===Y;)Y=Y.parent;for(;;){const pe=Y.getChildren(X);R(oe,pe[0],101);for(let Ce=pe.length-1;Ce>=0&&!R(oe,pe[Ce],93);Ce--);if(!Y.elseStatement||!FS(Y.elseStatement))break;Y=Y.elseStatement}return oe}function ye(Y,X){return!!Vn(Y.parent,oe=>ZE(oe)?oe.label.escapedText===X:"quit")}})(D5||(D5={}))}});function SO(e){return!!e.sourceFile}function Gue(e,t,r){return LX(e,t,r)}function LX(e,t="",r,i){const o=new Map,s=Mu(!!e);function l(){const C=zo(o.keys()).filter(O=>O&&O.charAt(0)==="_").map(O=>{const U=o.get(O),K=[];return U.forEach((Q,V)=>{SO(Q)?K.push({name:V,scriptKind:Q.sourceFile.scriptKind,refCount:Q.languageServiceRefCount}):Q.forEach((se,G)=>K.push({name:V,scriptKind:G,refCount:se.languageServiceRefCount}))}),K.sort((Q,V)=>V.refCount-Q.refCount),{bucket:O,sourceFiles:K}});return JSON.stringify(C,void 0,2)}function u(C){return typeof C.getCompilationSettings=="function"?C.getCompilationSettings():C}function p(C,O,U,K,Q,V){const se=il(C,t,s),G=kX(u(O));return h(C,se,O,G,U,K,Q,V)}function h(C,O,U,K,Q,V,se,G){return A(C,O,U,K,Q,V,!0,se,G)}function m(C,O,U,K,Q,V){const se=il(C,t,s),G=kX(u(O));return y(C,se,O,G,U,K,Q,V)}function y(C,O,U,K,Q,V,se,G){return A(C,O,u(U),K,Q,V,!1,se,G)}function T(C,O){const U=SO(C)?C:C.get(N.checkDefined(O,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return N.assert(O===void 0||!U||U.sourceFile.scriptKind===O,`Script kind should match provided ScriptKind:${O} and sourceFile.scriptKind: ${U==null?void 0:U.sourceFile.scriptKind}, !entry: ${!U}`),U}function A(C,O,U,K,Q,V,se,G,ne){var he,ye,Y,X;G=B3(C,G);const oe=u(U),pe=U===oe?void 0:U,Ce=G===6?100:os(oe),de=typeof ne=="object"?ne:{languageVersion:Ce,impliedNodeFormat:pe&&Gw(O,(X=(Y=(ye=(he=pe.getCompilerHost)==null?void 0:he.call(pe))==null?void 0:ye.getModuleResolutionCache)==null?void 0:Y.call(ye))==null?void 0:X.getPackageJsonInfoCache(),pe,oe),setExternalModuleIndicator:fk(oe),jsDocParsingMode:r};de.languageVersion=Ce,N.assertEqual(r,de.jsDocParsingMode);const ie=o.size,ve=Vue(K,de.impliedNodeFormat),Le=dA(o,ve,()=>new Map);if(sr){o.size>ie&&sr.instant(sr.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:oe.configFilePath,key:ve});const Me=!Su(O)&&zc(o,(We,At)=>At!==ve&&We.has(O)&&At);Me&&sr.instant(sr.Phase.Session,"documentRegistryBucketOverlap",{path:O,key1:Me,key2:ve})}const Ue=Le.get(O);let Ee=Ue&&T(Ue,G);if(!Ee&&i){const Me=i.getDocument(ve,O);Me&&(N.assert(se),Ee={sourceFile:Me,languageServiceRefCount:0},De())}if(Ee)Ee.sourceFile.version!==V&&(Ee.sourceFile=SY(Ee.sourceFile,Q,V,Q.getChangeRange(Ee.sourceFile.scriptSnapshot)),i&&i.setDocument(ve,O,Ee.sourceFile)),se&&Ee.languageServiceRefCount++;else{const Me=Z5(C,Q,de,V,!1,G);i&&i.setDocument(ve,O,Me),Ee={sourceFile:Me,languageServiceRefCount:1},De()}return N.assert(Ee.languageServiceRefCount!==0),Ee.sourceFile;function De(){if(!Ue)Le.set(O,Ee);else if(SO(Ue)){const Me=new Map;Me.set(Ue.sourceFile.scriptKind,Ue),Me.set(G,Ee),Le.set(O,Me)}else Ue.set(G,Ee)}}function R(C,O,U,K){const Q=il(C,t,s),V=kX(O);return M(Q,V,U,K)}function M(C,O,U,K){const Q=N.checkDefined(o.get(Vue(O,K))),V=Q.get(C),se=T(V,U);se.languageServiceRefCount--,N.assert(se.languageServiceRefCount>=0),se.languageServiceRefCount===0&&(SO(V)?Q.delete(C):(V.delete(U),V.size===1&&Q.set(C,pn(V.values(),tl))))}return{acquireDocument:p,acquireDocumentWithKey:h,updateDocument:m,updateDocumentWithKey:y,releaseDocument:R,releaseDocumentWithKey:M,getKeyForCompilationSettings:kX,getDocumentRegistryBucketKeyWithMode:Vue,reportStats:l,getBuckets:()=>o}}function kX(e){return sq(e,vF)}function Vue(e,t){return t?`${e}|${t}`:e}var gqe=I({"src/services/documentRegistry.ts"(){si()}});function jue(e,t,r,i,o,s,l){const u=AR(i),p=Mu(u),h=wX(t,r,p,l),m=wX(r,t,p,l);return _r.ChangeTracker.with({host:i,formatContext:o,preferences:s},y=>{yqe(e,y,h,t,r,i.getCurrentDirectory(),u),bqe(e,y,h,m,i,p)})}function wX(e,t,r,i){const o=r(e);return l=>{const u=i&&i.tryGetSourcePosition({fileName:l,pos:0}),p=s(u?u.fileName:l);return u?p===void 0?void 0:vqe(u.fileName,p,l,r):p};function s(l){if(r(l)===o)return t;const u=pU(l,o,r);return u===void 0?void 0:t+"/"+u}}function vqe(e,t,r,i){const o=H2(e,t,i);return Uue(ai(r),o)}function yqe(e,t,r,i,o,s,l){const{configFile:u}=e.getCompilerOptions();if(!u)return;const p=ai(u.fileName),h=EC(u);if(!h)return;Hue(h,(A,R)=>{switch(R){case"files":case"include":case"exclude":{if(m(A)||R!=="include"||!fd(A.initializer))return;const C=eo(A.initializer.elements,U=>Na(U)?U.text:void 0);if(C.length===0)return;const O=z3(p,[],C,l,s);By(N.checkDefined(O.includeFilePattern),l).test(i)&&!By(N.checkDefined(O.includeFilePattern),l).test(o)&&t.insertNodeAfter(u,Xa(A.initializer.elements),w.createStringLiteral(T(o)));return}case"compilerOptions":Hue(A.initializer,(M,C)=>{const O=VH(C);N.assert((O==null?void 0:O.type)!=="listOrElement"),O&&(O.isFilePath||O.type==="list"&&O.element.isFilePath)?m(M):C==="paths"&&Hue(M.initializer,U=>{if(fd(U.initializer))for(const K of U.initializer.elements)y(K)})});return}});function m(A){const R=fd(A.initializer)?A.initializer.elements:[A.initializer];let M=!1;for(const C of R)M=y(C)||M;return M}function y(A){if(!Na(A))return!1;const R=Uue(p,A.text),M=r(R);return M!==void 0?(t.replaceRangeWithText(u,rDe(A,u),T(M)),!0):!1}function T(A){return vm(p,A,!l)}}function bqe(e,t,r,i,o,s){const l=e.getSourceFiles();for(const u of l){const p=r(u.fileName),h=p??u.fileName,m=ai(h),y=i(u.fileName),T=y||u.fileName,A=ai(T),R=p!==void 0||y!==void 0;Tqe(u,t,M=>{if(!Op(M))return;const C=Uue(A,M),O=r(C);return O===void 0?void 0:AE(vm(m,O,s))},M=>{const C=e.getTypeChecker().getSymbolAtLocation(M);if(C!=null&&C.declarations&&C.declarations.some(U=>ku(U)))return;const O=y!==void 0?nDe(M,iD(M.text,T,e.getCompilerOptions(),o),r,l):Sqe(C,M,u,e,o,r);return O!==void 0&&(O.updated||R&&Op(M.text))?l1.updateModuleSpecifier(e.getCompilerOptions(),u,h,O.newFileName,tT(e,o),M.text):void 0})}}function Eqe(e,t){return ha($r(e,t))}function Uue(e,t){return AE(Eqe(e,t))}function Sqe(e,t,r,i,o,s){if(e){const l=In(e.declarations,$i).fileName,u=s(l);return u===void 0?{newFileName:l,updated:!1}:{newFileName:u,updated:!0}}else{const l=i.getModeForUsageLocation(r,t),u=o.resolveModuleNameLiterals||!o.resolveModuleNames?i.getResolvedModuleFromModuleSpecifier(t):o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,l);return nDe(t,u,s,i.getSourceFiles())}}function nDe(e,t,r,i){if(!t)return;if(t.resolvedModule){const p=u(t.resolvedModule.resolvedFileName);if(p)return p}const o=Xe(t.failedLookupLocations,s)||Op(e.text)&&Xe(t.failedLookupLocations,l);if(o)return o;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function s(p){const h=r(p);return h&&In(i,m=>m.fileName===h)?l(p):void 0}function l(p){return Al(p,"/package.json")?void 0:u(p)}function u(p){const h=r(p);return h&&{newFileName:h,updated:!0}}}function Tqe(e,t,r,i){for(const o of e.referencedFiles||et){const s=r(o.fileName);s!==void 0&&s!==e.text.slice(o.pos,o.end)&&t.replaceRangeWithText(e,o,s)}for(const o of e.imports){const s=i(o);s!==void 0&&s!==o.text&&t.replaceRangeWithText(e,rDe(o,e),s)}}function rDe(e,t){return Af(e.getStart(t)+1,e.end-1)}function Hue(e,t){if(La(e))for(const r of e.properties)hc(r)&&Na(r.name)&&t(r,r.name.text)}var Aqe=I({"src/services/getEditsForFileRename.ts"(){si()}});function pM(e,t){return{kind:e,isCaseSensitive:t}}function que(e){const t=new Map,r=e.trim().split(".").map(i=>Dqe(i.trim()));if(r.length===1&&r[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>pM(2,!0),getFullMatch:()=>pM(2,!0),patternContainsDots:!1};if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,o)=>Iqe(i,o,r,t),getMatchForLastSegmentOfPattern:i=>Jue(i,Xa(r),t),patternContainsDots:r.length>1}}function Iqe(e,t,r,i){if(!Jue(t,Xa(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=aDe(s,Jue(e[u],r[l],i));return s}function iDe(e,t){let r=t.get(e);return r||t.set(e,r=Zue(e)),r}function oDe(e,t,r){const i=Nqe(e,t.textLowerCase);if(i===0)return pM(t.text.length===e.length?0:1,uo(e,t.text));if(t.isLowerCase){if(i===-1)return;const o=iDe(e,r);for(const s of o)if(Kue(e,s,t.text,!0))return pM(2,Kue(e,s,t.text,!1));if(t.text.length<e.length&&RD(e.charCodeAt(i)))return pM(2,!1)}else{if(e.indexOf(t.text)>0)return pM(2,!0);if(t.characterSpans.length>0){const o=iDe(e,r),s=sDe(e,o,t,!1)?!0:sDe(e,o,t,!0)?!1:void 0;if(s!==void 0)return pM(3,s)}}}function Jue(e,t,r){if(OX(t.totalTextChunk.text,s=>s!==32&&s!==42)){const s=oDe(e,t.totalTextChunk,r);if(s)return s}const i=t.subWordTextChunks;let o;for(const s of i)o=aDe(o,oDe(e,s,r));return o}function aDe(e,t){return XB([e,t],xqe)}function xqe(e,t){return e===void 0?1:t===void 0?-1:nl(e.kind,t.kind)||Ey(!e.isCaseSensitive,!t.isCaseSensitive)}function Kue(e,t,r,i,o={start:0,length:r.length}){return o.length<=t.length&&dDe(0,o.length,s=>Rqe(r.charCodeAt(o.start+s),e.charCodeAt(t.start+s),i))}function Rqe(e,t,r){return r?Xue(e)===Xue(t):e===t}function sDe(e,t,r,i){const o=r.characterSpans;let s=0,l=0;for(;;){if(l===o.length)return!0;if(s===t.length)return!1;let u=t[s],p=!1;for(;l<o.length;l++){const h=o[l];if(p&&(!RD(r.text.charCodeAt(o[l-1].start))||!RD(r.text.charCodeAt(o[l].start)))||!Kue(e,u,r.text,i,h))break;p=!0,u=vu(u.start+h.length,u.length-h.length)}s++}}function Dqe(e){return{totalTextChunk:$ue(e),subWordTextChunks:Pqe(e)}}function RD(e){if(e>=65&&e<=90)return!0;if(e<127||!t4(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function lDe(e){if(e>=97&&e<=122)return!0;if(e<127||!t4(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function Nqe(e,t){const r=e.length-t.length;for(let i=0;i<=r;i++)if(OX(t,(o,s)=>Xue(e.charCodeAt(s+i))===o))return i;return-1}function Xue(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function Yue(e){return e>=48&&e<=57}function Cqe(e){return RD(e)||lDe(e)||Yue(e)||e===95||e===36}function Pqe(e){const t=[];let r=0,i=0;for(let o=0;o<e.length;o++){const s=e.charCodeAt(o);Cqe(s)?(i===0&&(r=o),i++):i>0&&(t.push($ue(e.substr(r,i))),i=0)}return i>0&&t.push($ue(e.substr(r,i))),t}function $ue(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:Que(e)}}function Que(e){return cDe(e,!1)}function Zue(e){return cDe(e,!0)}function cDe(e,t){const r=[];let i=0;for(let o=1;o<e.length;o++){const s=Yue(e.charCodeAt(o-1)),l=Yue(e.charCodeAt(o)),u=Lqe(e,t,o),p=t&&Mqe(e,o,i);(ede(e.charCodeAt(o-1))||ede(e.charCodeAt(o))||s!==l||u||p)&&(uDe(e,i,o)||r.push(vu(i,o-i)),i=o)}return uDe(e,i,e.length)||r.push(vu(i,e.length-i)),r}function ede(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function uDe(e,t,r){return OX(e,i=>ede(i)&&i!==95,t,r)}function Mqe(e,t,r){return t!==r&&t+1<e.length&&RD(e.charCodeAt(t))&&lDe(e.charCodeAt(t+1))&&OX(e,RD,r,t)}function Lqe(e,t,r){const i=RD(e.charCodeAt(r-1));return RD(e.charCodeAt(r))&&(!t||!i)}function dDe(e,t,r){for(let i=e;i<t;i++)if(!r(i))return!1;return!0}function OX(e,t,r=0,i=e.length){return dDe(r,i,o=>t(e.charCodeAt(o),o))}var N5,kqe=I({"src/services/patternMatcher.ts"(){si(),N5=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(N5||{})}});function pDe(e,t=!0,r=!1){const i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},o=[];let s,l,u,p=0,h=!1;function m(){return l=u,u=Qu.scan(),u===19?p++:u===20&&p--,u}function y(){const V=Qu.getTokenValue(),se=Qu.getTokenStart();return{fileName:V,pos:se,end:se+V.length}}function T(){s||(s=[]),s.push({ref:y(),depth:p})}function A(){o.push(y()),R()}function R(){p===0&&(h=!0)}function M(){let V=Qu.getToken();return V===138?(V=m(),V===144&&(V=m(),V===11&&T()),!0):!1}function C(){if(l===25)return!1;let V=Qu.getToken();if(V===102){if(V=m(),V===21){if(V=m(),V===11||V===15)return A(),!0}else{if(V===11)return A(),!0;if(V===156&&Qu.lookAhead(()=>{const G=Qu.scan();return G!==161&&(G===42||G===19||G===80||Bd(G))})&&(V=m()),V===80||Bd(V))if(V=m(),V===161){if(V=m(),V===11)return A(),!0}else if(V===64){if(U(!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&&A()))}else V===42&&(V=m(),V===130&&(V=m(),(V===80||Bd(V))&&(V=m(),V===161&&(V=m(),V===11&&A()))))}return!0}return!1}function O(){let V=Qu.getToken();if(V===95){if(R(),V=m(),V===156&&Qu.lookAhead(()=>{const G=Qu.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&&A()))}else if(V===42)V=m(),V===161&&(V=m(),V===11&&A());else if(V===102&&(V=m(),V===156&&Qu.lookAhead(()=>{const G=Qu.scan();return G===80||Bd(G)})&&(V=m()),(V===80||Bd(V))&&(V=m(),V===64&&U(!0))))return!0;return!0}return!1}function U(V,se=!1){let G=V?m():Qu.getToken();return G===149?(G=m(),G===21&&(G=m(),(G===11||se&&G===15)&&A()),!0):!1}function K(){let V=Qu.getToken();if(V===80&&Qu.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)&&A(),V=m();return!0}return!1}function Q(){for(Qu.setText(e),m();Qu.getToken()!==1;){if(Qu.getToken()===16){const V=[Qu.getToken()];e:for(;Ne(V);){const se=Qu.scan();switch(se){case 1:break e;case 102:C();break;case 16:V.push(se);break;case 19:Ne(V)&&V.push(se);break;case 20:Ne(V)&&(el(V)===16?Qu.reScanTemplateToken(!1)===18&&V.pop():V.pop());break}}m()}M()||C()||O()||r&&(U(!1,!0)||K())||m()}Qu.setText(void 0)}if(t&&Q(),OH(i,e),WH(i,Ya),h){if(s)for(const 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(const se of s)se.depth===0?(V||(V=[]),V.push(se.ref.fileName)):o.push(se.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:V}}}var wqe=I({"src/services/preProcess.ts"(){si()}});function tde(e){const t=Mu(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,o=new Map;return{tryGetSourcePosition:u,tryGetGeneratedPosition:p,toLineColumnOffset:T,clearCache:A};function s(R){return il(R,r,t)}function l(R,M){const C=s(R),O=o.get(C);if(O)return O;let U;if(e.getDocumentPositionMapper)U=e.getDocumentPositionMapper(R,M);else if(e.readFile){const K=y(R);U=K&&WX({getSourceFileLike:y,getCanonicalFileName:t,log:Q=>e.log(Q)},R,Cq(K.text,Ng(K)),Q=>!e.fileExists||e.fileExists(Q)?e.readFile(Q):void 0)}return o.set(C,U||jF),U||jF}function u(R){if(!Su(R.fileName)||!h(R.fileName))return;const C=l(R.fileName).getSourcePosition(R);return!C||C===R?void 0:u(C)||C}function p(R){if(Su(R.fileName))return;const M=h(R.fileName);if(!M)return;const C=e.getProgram();if(C.isSourceOfProjectReferenceRedirect(M.fileName))return;const O=C.getCompilerOptions(),U=Ps(O),K=U?Ad(U)+".d.ts":p3(R.fileName,C.getCompilerOptions(),r,C.getCommonSourceDirectory(),t);if(K===void 0)return;const Q=l(K,R.fileName).getGeneratedPosition(R);return Q===R?void 0:Q}function h(R){const M=e.getProgram();if(!M)return;const C=s(R),O=M.getSourceFileByPath(C);return O&&O.resolvedPath===C?O:void 0}function m(R){const M=s(R),C=i.get(M);if(C!==void 0)return C||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(R)){i.set(M,!1);return}const O=e.readFile(R),U=O?Oqe(O):!1;return i.set(M,U),U||void 0}function y(R){return e.getSourceFileLike?e.getSourceFileLike(R):h(R)||m(R)}function T(R,M){return y(R).getLineAndCharacterOfPosition(M)}function A(){i.clear(),o.clear()}}function WX(e,t,r,i){let o=Jse(r);if(o){const u=mDe.exec(o);if(u){if(u[1]){const p=u[1];return fDe(e,Jie(gu,p),t)}o=void 0}}const s=[];o&&s.push(o),s.push(t+".map");const l=o&&go(o,ai(t));for(const u of s){const p=go(u,ai(t)),h=i(p,l);if(Mo(h))return fDe(e,h,p);if(h!==void 0)return h||void 0}}function fDe(e,t,r){const i=Pq(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(Mo)))return Yse(e,i,r)}function Oqe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return Vx(Ng(this),r)}}}var mDe,Wqe=I({"src/services/sourcemaps.ts"(){si(),mDe=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function FX(e,t,r){var i;t.getSemanticDiagnostics(e,r);const o=[],s=t.getTypeChecker();!(e.impliedNodeFormat===1||Sc(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(fue(t)||JK(t.getCompilerOptions()))&&Fqe(e)&&o.push(kr(Vqe(e.commonJsModuleIndicator),f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const u=cd(e);if(VX.clear(),p(e),MS(t.getCompilerOptions()))for(const h of e.imports){const m=IC(h),y=zqe(m);if(!y)continue;const T=(i=t.getResolvedModuleFromModuleSpecifier(h))==null?void 0:i.resolvedModule,A=T&&t.getSourceFile(T.resolvedFileName);A&&A.externalModuleIndicator&&A.externalModuleIndicator!==!0&&kl(A.externalModuleIndicator)&&A.externalModuleIndicator.isExportEquals&&o.push(kr(y,f.Import_may_be_converted_to_a_default_import))}return qr(o,e.bindSuggestionDiagnostics),qr(o,t.getSuggestionDiagnostics(e,r)),o.sort((h,m)=>h.start-m.start);function p(h){if(u)Uqe(h,s)&&o.push(kr(Oi(h.parent)?h.parent.name:h,f.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Ll(h)&&h.parent===e&&h.declarationList.flags&2&&h.declarationList.declarations.length===1){const y=h.declarationList.declarations[0].initializer;y&&Td(y,!0)&&o.push(kr(y,f.require_call_may_be_converted_to_an_import))}const m=Fu.getJSDocTypedefNodes(h);for(const y of m)o.push(kr(y,f.JSDoc_typedef_may_be_converted_to_TypeScript_type));Fu.parameterShouldGetTypeFromJSDoc(h)&&o.push(kr(h.name||h,f.JSDoc_types_may_be_moved_to_TypeScript_types))}GX(h)&&Bqe(h,s,o),h.forEachChild(p)}}function Fqe(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(r=>!!r.initializer&&Td(_De(r.initializer),!0));case 244:{const{expression:r}=t;if(!mr(r))return Td(r,!0);const i=zl(r);return i===1||i===2}default:return!1}})}function _De(e){return Fr(e)?_De(e.expression):e}function zqe(e){switch(e.kind){case 272:const{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 Bqe(e,t,r){Gqe(e,t)&&!VX.has(yDe(e))&&r.push(kr(!e.name&&Oi(e.parent)&&Ve(e.parent.name)?e.parent.name:e,f.This_may_be_converted_to_an_async_function))}function Gqe(e,t){return!NC(e)&&e.body&&Ko(e.body)&&jqe(e.body,t)&&zX(e,t)}function zX(e,t){const r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function Vqe(e){return mr(e)?e.left:e}function jqe(e,t){return!!LE(e,r=>C5(r,t))}function C5(e,t){return Im(e)&&!!e.expression&&BX(e.expression,t)}function BX(e,t){if(!hDe(e)||!gDe(e)||!e.arguments.every(i=>vDe(i,t)))return!1;let r=e.expression.expression;for(;hDe(r)||Fr(r);)if(sa(r)){if(!gDe(r)||!r.arguments.every(i=>vDe(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function hDe(e){return sa(e)&&(Zw(e,"then")||Zw(e,"catch")||Zw(e,"finally"))}function gDe(e){const t=e.expression.name.text,r=t==="then"?2:t==="catch"||t==="finally"?1:0;return e.arguments.length>r?!1:e.arguments.length<r?!0:r===1||bt(e.arguments,i=>i.kind===106||Ve(i)&&i.text==="undefined")}function vDe(e,t){switch(e.kind){case 262:case 218:if(Bc(e)&1)return!1;case 219:VX.set(yDe(e),!0);case 106:return!0;case 80:case 211:{const i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||bt(bu(i,t).declarations,o=>ea(o)||Ly(o)&&!!o.initializer&&ea(o.initializer)):!1}default:return!1}}function yDe(e){return`${e.pos.toString()}:${e.end.toString()}`}function Uqe(e,t){var r,i,o,s;if(Os(e)){if(Oi(e.parent)&&((r=e.symbol.members)!=null&&r.size))return!0;const l=t.getSymbolOfExpando(e,!1);return!!(l&&((i=l.exports)!=null&&i.size||(o=l.members)!=null&&o.size))}return Tc(e)?!!((s=e.symbol.members)!=null&&s.size):!1}function GX(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var VX,Hqe=I({"src/services/suggestionDiagnostics.ts"(){si(),VX=new Map}});function nde(e,t){const r=[],i=t.compilerOptions?jX(t.compilerOptions,r):{},o=Q5();for(const T in o)Is(o,T)&&i[T]===void 0&&(i[T]=o[T]);for(const T of nq)i.verbatimModuleSyntax&&EDe.has(T.name)||(i[T.name]=T.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;const s=Fv(i),l={getSourceFile:T=>T===ha(u)?p:void 0,writeFile:(T,A)=>{Il(T,".map")?(N.assertEqual(m,void 0,"Unexpected multiple source map outputs, file:",T),m=A):(N.assertEqual(h,void 0,"Unexpected multiple outputs, file:",T),h=A)},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=iw(u,e,{languageVersion:os(i),impliedNodeFormat:Gw(il(u,"",l.getCanonicalFileName),void 0,l,i),setExternalModuleIndicator:fk(i),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(p.moduleName=t.moduleName),t.renamedDependencies&&(p.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let h,m;const y=d7([u],i,l);return t.reportDiagnostics&&(qr(r,y.getSyntacticDiagnostics(p)),qr(r,y.getOptionsDiagnostics())),y.emit(void 0,void 0,void 0,void 0,t.transformers),h===void 0?N.fail("Output generation failed"):{outputText:h,diagnostics:r,sourceMapText:m}}function bDe(e,t,r,i,o){const s=nde(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:o});return qr(i,s.diagnostics),s.outputText}function jX(e,t){rde=rde||mn(lg,r=>typeof r.type=="object"&&!zc(r.type,i=>typeof i!="number")),e=GK(e);for(const r of rde){if(!Is(e,r.name))continue;const i=e[r.name];Mo(i)?e[r.name]=dF(r,i,t):zc(r.type,o=>o===i)||t.push(Kae(r))}return e}var EDe,rde,qqe=I({"src/services/transpile.ts"(){si(),EDe=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function SDe(e,t,r,i,o,s,l){const u=que(i);if(!u)return et;const p=[],h=e.length===1?e[0]:void 0;for(const m of e)r.throwIfCancellationRequested(),!(s&&m.isDeclarationFile)&&(TDe(m,!!l,h)||m.getNamedDeclarations().forEach((y,T)=>{Jqe(u,T,y,t,m.fileName,!!l,h,p)}));return p.sort($qe),(o===void 0?p:p.slice(0,o)).map(Qqe)}function TDe(e,t,r){return e!==r&&t&&(yO(e.path)||e.hasNoDefaultLib)}function Jqe(e,t,r,i,o,s,l,u){const p=e.getMatchForLastSegmentOfPattern(t);if(p){for(const h of r)if(Kqe(h,i,s,l))if(e.patternContainsDots){const m=e.getFullMatch(Yqe(h),t);m&&u.push({name:t,fileName:o,matchKind:m.kind,isCaseSensitive:m.isCaseSensitive,declaration:h})}else u.push({name:t,fileName:o,matchKind:p.kind,isCaseSensitive:p.isCaseSensitive,declaration:h})}}function Kqe(e,t,r,i){var o;switch(e.kind){case 273:case 276:case 271:const s=t.getSymbolAtLocation(e.name),l=t.getAliasedSymbol(s);return s.escapedName!==l.escapedName&&!((o=l.declarations)!=null&&o.every(u=>TDe(u.getSourceFile(),r,i)));default:return!0}}function Xqe(e,t){const r=Lo(e);return!!r&&(ADe(r,t)||r.kind===167&&ide(r.expression,t))}function ide(e,t){return ADe(e,t)||Fr(e)&&(t.push(e.name.text),!0)&&ide(e.expression,t)}function ADe(e,t){return x_(e)&&(t.push(Qf(e)),!0)}function Yqe(e){const t=[],r=Lo(e);if(r&&r.kind===167&&!ide(r.expression,t))return et;t.shift();let i=eT(e);for(;i;){if(!Xqe(i,t))return et;i=eT(i)}return t.reverse()}function $qe(e,t){return nl(e.matchKind,t.matchKind)||L2(e.name,t.name)}function Qqe(e){const t=e.declaration,r=eT(t),i=r&&Lo(r);return{name:e.name,kind:f1(t),kindModifiers:nM(t),matchKind:N5[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:Dd(t),containerName:i?i.text:"",containerKind:i?f1(r):""}}var Zqe=I({"src/services/navigateTo.ts"(){si()}}),ode={};ee(ode,{getNavigateToItems:()=>SDe});var IDe=I({"src/services/_namespaces/ts.NavigateTo.ts"(){Zqe()}});function xDe(e,t){JX=t,TO=e;try{return Wt(iJe(CDe(e)),oJe)}finally{DDe()}}function RDe(e,t){JX=t,TO=e;try{return zDe(CDe(e))}finally{DDe()}}function DDe(){TO=void 0,JX=void 0,AO=[],Yv=void 0,KX=[]}function P5(e){return fM(e.getText(TO))}function UX(e){return e.node.kind}function NDe(e,t){e.children?e.children.push(t):e.children=[t]}function CDe(e){N.assert(!AO.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};Yv=t;for(const r of e.statements)xI(r);return C0(),N.assert(!Yv&&!AO.length),t}function h1(e,t){NDe(Yv,ade(e,t))}function ade(e,t){return{node:e,name:t||(Ju(e)||yt(e)?Lo(e):void 0),additionalNodes:void 0,parent:Yv,children:void 0,indent:Yv.indent+1}}function PDe(e){DD||(DD=new Map),DD.set(e,!0)}function MDe(e){for(let t=0;t<e;t++)C0()}function LDe(e,t){const r=[];for(;!x_(t);){const i=BL(t),o=kg(t);t=t.expression,!(o==="prototype"||qi(i))&&r.push(i)}r.push(t);for(let i=r.length-1;i>0;i--){const o=r[i];g1(e,o)}return[r.length-1,r[0]]}function g1(e,t){const r=ade(e,t);NDe(Yv,r),AO.push(Yv),mde.push(DD),DD=void 0,Yv=r}function C0(){Yv.children&&(HX(Yv.children,Yv),cde(Yv.children)),Yv=AO.pop(),DD=mde.pop()}function P0(e,t,r){g1(e,r),xI(t),C0()}function kDe(e){e.initializer&&sJe(e.initializer)?(g1(e),Uo(e.initializer,xI),C0()):P0(e,e.initializer)}function sde(e){const t=Lo(e);if(t===void 0)return!1;if(Za(t)){const r=t.expression;return Bl(r)||hp(r)||ef(r)}return!!t}function xI(e){if(JX.throwIfCancellationRequested(),!(!e||EA(e)))switch(e.kind){case 176:const t=e;P0(t,t.body);for(const l of t.parameters)pp(l,t)&&h1(l);break;case 174:case 177:case 178:case 173:sde(e)&&P0(e,e.body);break;case 172:sde(e)&&kDe(e);break;case 171:sde(e)&&h1(e);break;case 273:const r=e;r.name&&h1(r.name);const{namedBindings:i}=r;if(i)if(i.kind===274)h1(i);else for(const l of i.elements)h1(l);break;case 304:P0(e,e.name);break;case 305:const{expression:o}=e;Ve(o)?h1(e,o):h1(e);break;case 208:case 303:case 260:{const l=e;ta(l.name)?xI(l.name):kDe(l);break}case 262:const s=e.name;s&&Ve(s)&&PDe(s.text),P0(e,e.body);break;case 219:case 218:P0(e,e.body);break;case 266:g1(e);for(const l of e.members)aJe(l)||h1(l);C0();break;case 263:case 231:case 264:g1(e);for(const l of e.members)xI(l);C0();break;case 267:P0(e,GDe(e).body);break;case 277:{const l=e.expression,u=La(l)||sa(l)?l:Gs(l)||Os(l)?l.body:void 0;u?(g1(e),xI(u),C0()):h1(e);break}case 281:case 271:case 181:case 179:case 180:case 265:h1(e);break;case 213:case 226:{const l=zl(e);switch(l){case 1:case 2:P0(e,e.right);return;case 6:case 3:{const u=e,p=u.left,h=l===3?p.expression:p;let m=0,y;Ve(h.expression)?(PDe(h.expression.text),y=h.expression):[m,y]=LDe(u,h.expression),l===6?La(u.right)&&u.right.properties.length>0&&(g1(u,y),Uo(u.right,xI),C0()):Os(u.right)||Gs(u.right)?P0(e,u.right,y):(g1(u,y),P0(e,u.right,p.name),C0()),MDe(m);return}case 7:case 9:{const u=e,p=l===7?u.arguments[0]:u.arguments[0].expression,h=u.arguments[1],[m,y]=LDe(e,p);g1(e,y),g1(e,dt(w.createIdentifier(h.text),h)),xI(e.arguments[2]),C0(),C0(),MDe(m);return}case 5:{const u=e,p=u.left,h=p.expression;if(Ve(h)&&kg(p)!=="prototype"&&DD&&DD.has(h.text)){Os(u.right)||Gs(u.right)?P0(e,u.right,h):OE(p)&&(g1(u,h),P0(u.left,u.right,BL(p)),C0());return}break}case 4:case 0:case 8:break;default:N.assertNever(l)}}default:Wp(e)&&Xe(e.jsDoc,l=>{Xe(l.tags,u=>{$f(u)&&h1(u)})}),Uo(e,xI)}}function HX(e,t){const r=new Map;li(e,(i,o)=>{const s=i.name||Lo(i.node),l=s&&P5(s);if(!l)return!0;const u=r.get(l);if(!u)return r.set(l,i),!0;if(u instanceof Array){for(const p of u)if(wDe(p,i,o,t))return!1;return u.push(i),!0}else{const p=u;return wDe(p,i,o,t)?!1:(r.set(l,[p,i]),!0)}})}function eJe(e,t,r,i){function o(u){return Os(u)||Tc(u)||Oi(u)}const s=mr(t.node)||sa(t.node)?zl(t.node):0,l=mr(e.node)||sa(e.node)?zl(e.node):0;if(mM[s]&&mM[l]||o(e.node)&&mM[s]||o(t.node)&&mM[l]||Ac(e.node)&&lde(e.node)&&mM[s]||Ac(t.node)&&mM[l]||Ac(e.node)&&lde(e.node)&&o(t.node)||Ac(t.node)&&o(e.node)&&lde(e.node)){let u=e.additionalNodes&&el(e.additionalNodes)||e.node;if(!Ac(e.node)&&!Ac(t.node)||o(e.node)||o(t.node)){const h=o(e.node)?e.node:o(t.node)?t.node:void 0;if(h!==void 0){const m=dt(w.createConstructorDeclaration(void 0,[],void 0),h),y=ade(m);y.indent=e.indent+1,y.children=e.node===h?e.children:t.children,e.children=e.node===h?So([y],t.children||[t]):So(e.children||[{...e}],[y])}else(e.children||t.children)&&(e.children=So(e.children||[{...e}],t.children||[t]),e.children&&(HX(e.children,e),cde(e.children)));u=e.node=dt(w.createClassDeclaration(void 0,e.name||w.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=So(e.children,t.children),e.children&&HX(e.children,e);const 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(w.createClassDeclaration(void 0,e.name||w.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return s!==0}function wDe(e,t,r,i){return eJe(e,t,r,i)?!0:tJe(e.node,t.node,i)?(nJe(e,t),!0):!1}function tJe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(ODe(e,r)&&ODe(t,r)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return aa(e)===aa(t);case 267:return WDe(e,t)&&pde(e)===pde(t);default:return!0}}function lde(e){return!!(e.flags&16)}function ODe(e,t){const r=L_(e.parent)?e.parent.parent:e.parent;return r===t.node||Or(t.additionalNodes,r)}function WDe(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||WDe(e.body,t.body))}function nJe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=So(e.children,t.children),e.children&&(HX(e.children,e),cde(e.children))}function cde(e){e.sort(rJe)}function rJe(e,t){return L2(FDe(e.node),FDe(t.node))||nl(UX(e),UX(t))}function FDe(e){if(e.kind===267)return BDe(e);const t=Lo(e);if(t&&oc(t)){const r=IS(t);return r&&Vi(r)}switch(e.kind){case 218:case 219:case 231:return jDe(e);default:return}}function ude(e,t){if(e.kind===267)return fM(BDe(e));if(t){const r=Ve(t)?t.text:$s(t)?`[${P5(t.argumentExpression)}]`:P5(t);if(r.length>0)return fM(r)}switch(e.kind){case 312:const r=e;return sc(r)?`"${tg(ic(Ad(ha(r.fileName))))}"`:"<global>";case 277:return kl(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return Fy(e)&2048?"default":jDe(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return"<unknown>"}}function iJe(e){const t=[];function r(o){if(i(o)&&(t.push(o),o.children))for(const s of o.children)r(s)}return r(e),t;function i(o){if(o.children)return!0;switch(UX(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(UX(l.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function zDe(e){return{text:ude(e.node,e.name),kind:f1(e.node),kindModifiers:VDe(e.node),spans:dde(e),nameSpan:e.name&&fde(e.name),childItems:Wt(e.children,zDe)}}function oJe(e){return{text:ude(e.node,e.name),kind:f1(e.node),kindModifiers:VDe(e.node),spans:dde(e),childItems:Wt(e.children,t)||KX,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:ude(r.node,r.name),kind:f1(r.node),kindModifiers:nM(r.node),spans:dde(r),childItems:KX,indent:0,bolded:!1,grayed:!1}}}function dde(e){const t=[fde(e.node)];if(e.additionalNodes)for(const r of e.additionalNodes)t.push(fde(r));return t}function BDe(e){return ku(e)?fc(e.name):pde(e)}function pde(e){const t=[Qf(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,t.push(Qf(e.name));return t.join(".")}function GDe(e){return e.body&&Xl(e.body)?GDe(e.body):e}function aJe(e){return!e.name||e.name.kind===167}function fde(e){return e.kind===312?tb(e):Dd(e,TO)}function VDe(e){return e.parent&&e.parent.kind===260&&(e=e.parent),nM(e)}function jDe(e){const{parent:t}=e;if(e.name&&yL(e.name)>0)return fM(xs(e.name));if(Oi(t))return fM(xs(t.name));if(mr(t)&&t.operatorToken.kind===64)return P5(t.left).replace(HDe,"");if(hc(t))return P5(t.name);if(Fy(e)&2048)return"default";if(di(e))return"<class>";if(sa(t)){let r=UDe(t.expression);if(r!==void 0){if(r=fM(r),r.length>qX)return`${r} callback`;const i=fM(eo(t.arguments,o=>ls(o)||IA(o)?o.getText(TO):void 0).join(", "));return`${r}(${i}) callback`}}return"<function>"}function UDe(e){if(Ve(e))return e.text;if(Fr(e)){const t=UDe(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function sJe(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function fM(e){return e=e.length>qX?e.substring(0,qX)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var HDe,qX,JX,TO,AO,Yv,mde,DD,KX,mM,lJe=I({"src/services/navigationBar.ts"(){si(),HDe=/\s+/g,qX=150,AO=[],mde=[],KX=[],mM={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),_de={};ee(_de,{getNavigationBarItems:()=>xDe,getNavigationTree:()=>RDe});var qDe=I({"src/services/_namespaces/ts.NavigationBar.ts"(){lJe()}});function cg(e,t){XX.set(e,t)}function cJe(e,t){return zo(EE(XX.values(),r=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=r.kinds)!=null&&i.some(o=>M0(o,e.kind)))?void 0:r.getAvailableActions(e,t)}))}function uJe(e,t,r,i){const o=XX.get(t);return o&&o.getEditsForAction(e,r,i)}var XX,JDe=I({"src/services/refactorProvider.ts"(){si(),xh(),XX=new Map}});function KDe(e,t=!0){const{file:r,program:i}=e,o=II(e),s=po(r,o.start),l=s.parent&&Fy(s.parent)&32&&t?s.parent:pO(s,r,o);if(!l||!$i(l.parent)&&!(L_(l.parent)&&ku(l.parent.parent)))return{error:Wo(f.Could_not_find_export_statement)};const u=i.getTypeChecker(),p=hJe(l.parent,u),h=Fy(l)||(kl(l)&&!l.isExportEquals?2080:0),m=!!(h&2048);if(!(h&32)||!m&&p.exports.has("default"))return{error:Wo(f.This_file_already_has_a_default_export)};const y=T=>Ve(T)&&u.getSymbolAtLocation(T)?void 0:{error:Wo(f.Can_only_convert_named_export)};switch(l.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const T=l;return T.name?y(T.name)||{exportNode:T,exportName:T.name,wasDefault:m,exportingModuleSymbol:p}:void 0}case 243:{const T=l;if(!(T.declarationList.flags&2)||T.declarationList.declarations.length!==1)return;const A=Ua(T.declarationList.declarations);return A.initializer?(N.assert(!m,"Can't have a default flag here"),y(A.name)||{exportNode:T,exportName:A.name,wasDefault:m,exportingModuleSymbol:p}):void 0}case 277:{const T=l;return T.isExportEquals?void 0:y(T.expression)||{exportNode:T,exportName:T.expression,wasDefault:m,exportingModuleSymbol:p}}default:return}}function dJe(e,t,r,i,o){pJe(e,r,i,t.getTypeChecker()),fJe(t,r,i,o)}function pJe(e,{wasDefault:t,exportNode:r,exportName:i},o,s){if(t)if(kl(r)&&!r.isExportEquals){const l=r.expression,u=XDe(l.text,l.text);o.replaceNode(e,r,w.createExportDeclaration(void 0,!1,w.createNamedExports([u])))}else o.delete(e,N.checkDefined(SD(r,90),"Should find a default keyword in modifier list"));else{const l=N.checkDefined(SD(r,95),"Should find an export keyword in modifier list");switch(r.kind){case 262:case 263:case 264:o.insertNodeAfter(e,l,w.createToken(90));break;case 243:const u=Ua(r.declarationList.declarations);if(!Ws.Core.isSymbolReferencedInFile(i,s,e)&&!u.type){o.replaceNode(e,r,w.createExportDefault(N.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,w.createExportDefault(w.createIdentifier(i.text)));break;default:N.fail(`Unexpected exportNode kind ${r.kind}`)}}}function fJe(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},o,s){const l=e.getTypeChecker(),u=N.checkDefined(l.getSymbolAtLocation(r),"Export name should resolve to a symbol");Ws.Core.eachExportReference(e.getSourceFiles(),l,s,u,i,r.text,t,p=>{if(r===p)return;const h=p.getSourceFile();t?mJe(h,p,o,r.text):_Je(h,p,o)})}function mJe(e,t,r,i){const{parent:o}=t;switch(o.kind){case 211:r.replaceNode(e,t,w.createIdentifier(i));break;case 276:case 281:{const l=o;r.replaceNode(e,l,hde(i,l.name.text));break}case 273:{const l=o;N.assert(l.name===t,"Import clause name should match provided ref");const u=hde(i,t.text),{namedBindings:p}=l;if(!p)r.replaceNode(e,t,w.createNamedImports([u]));else if(p.kind===274){r.deleteRange(e,{pos:t.getStart(e),end:p.getStart(e)});const h=Na(l.parent.moduleSpecifier)?XK(l.parent.moduleSpecifier,e):1,m=Kv(void 0,[hde(i,t.text)],l.parent.moduleSpecifier,h);r.insertNodeAfter(e,l.parent,m)}else r.delete(e,t),r.insertNodeAtEndOfList(e,p.elements,u);break}case 205:const s=o;r.replaceNode(e,o,w.createImportTypeNode(s.argument,s.attributes,w.createIdentifier(i),s.typeArguments,s.isTypeOf));break;default:N.failBadSyntaxKind(o)}}function _Je(e,t,r){const i=t.parent;switch(i.kind){case 211:r.replaceNode(e,t,w.createIdentifier("default"));break;case 276:{const o=w.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,XDe("default",i.name.text));break}default:N.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function hde(e,t){return w.createImportSpecifier(!1,e===t?void 0:w.createIdentifier(e),w.createIdentifier(t))}function XDe(e,t){return w.createExportSpecifier(!1,e===t?void 0:w.createIdentifier(e),w.createIdentifier(t))}function hJe(e,t){if($i(e))return e.symbol;const r=e.parent.symbol;return r.valueDeclaration&&PE(r.valueDeclaration)?t.getMergedSymbol(r):r}var YX,M5,L5,gJe=I({"src/services/refactors/convertExport.ts"(){si(),xh(),YX="Convert export",M5={name:"Convert default export to named export",description:Wo(f.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},L5={name:"Convert named export to default export",description:Wo(f.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},cg(YX,{kinds:[M5.kind,L5.kind],getAvailableActions:function(t){const r=KDe(t,t.triggerReason==="invoked");if(!r)return et;if(!Ug(r)){const i=r.wasDefault?M5:L5;return[{name:YX,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:YX,description:Wo(f.Convert_default_export_to_named_export),actions:[{...M5,notApplicableReason:r.error},{...L5,notApplicableReason:r.error}]}]:et},getEditsForAction:function(t,r){N.assert(r===M5.name||r===L5.name,"Unexpected action name");const i=KDe(t);return N.assert(i&&!Ug(i),"Expected applicable refactor info"),{edits:_r.ChangeTracker.with(t,s=>dJe(t.file,t.program,i,s,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function YDe(e,t=!0){const{file:r}=e,i=II(e),o=po(r,i.start),s=t?Vn(o,Mc):pO(o,r,i);if(!s||!Mc(s))return{error:"Selection is not an import declaration."};const l=i.start+i.length,u=m1(s,s.parent,r);if(u&&l>u.getStart())return;const{importClause:p}=s;return p?p.namedBindings?p.namedBindings.kind===274?{convertTo:0,import:p.namedBindings}:$De(e.program,p)?{convertTo:1,import:p.namedBindings}:{convertTo:2,import:p.namedBindings}:{error:Wo(f.Could_not_find_namespace_import_or_named_imports)}:{error:Wo(f.Could_not_find_import_clause)}}function $De(e,t){return MS(e.getCompilerOptions())&&EJe(t.parent.moduleSpecifier,e.getTypeChecker())}function vJe(e,t,r,i){const o=t.getTypeChecker();i.convertTo===0?yJe(e,o,r,i.import,MS(t.getCompilerOptions())):ZDe(e,t,r,i.import,i.convertTo===1)}function yJe(e,t,r,i,o){let s=!1;const l=[],u=new Map;Ws.Core.eachSymbolReferenceInFile(i.name,t,e,y=>{if(!mre(y.parent))s=!0;else{const T=QDe(y.parent).text;t.resolveName(T,y,-1,!0)&&u.set(T,!0),N.assert(bJe(y.parent)===y,"Parent expression should match id"),l.push(y.parent)}});const p=new Map;for(const y of l){const T=QDe(y).text;let A=p.get(T);A===void 0&&p.set(T,A=u.has(T)?rT(T,e):T),r.replaceNode(e,y,w.createIdentifier(A))}const h=[];p.forEach((y,T)=>{h.push(w.createImportSpecifier(!1,y===T?void 0:w.createIdentifier(T),w.createIdentifier(y)))});const m=i.parent.parent;s&&!o?r.insertNodeAfter(e,m,gde(m,void 0,h)):r.replaceNode(e,m,gde(m,s?w.createIdentifier(i.name.text):void 0,h))}function QDe(e){return Fr(e)?e.name:e.right}function bJe(e){return Fr(e)?e.expression:e.left}function ZDe(e,t,r,i,o=$De(t,i.parent)){const s=t.getTypeChecker(),l=i.parent.parent,{moduleSpecifier:u}=l,p=new Set;i.elements.forEach(R=>{const M=s.getSymbolAtLocation(R.name);M&&p.add(M)});const h=u&&Na(u)?Fu.moduleSpecifierToValidIdentifier(u.text,99):"module";function m(R){return!!Ws.Core.eachSymbolReferenceInFile(R.name,s,e,M=>{const C=s.resolveName(h,M,-1,!0);return C?p.has(C)?Ku(M.parent):!0:!1})}const T=i.elements.some(m)?rT(h,e):h,A=new Set;for(const R of i.elements){const M=(R.propertyName||R.name).text;Ws.Core.eachSymbolReferenceInFile(R.name,s,e,C=>{const O=w.createPropertyAccessExpression(w.createIdentifier(T),M);np(C.parent)?r.replaceNode(e,C.parent,w.createPropertyAssignment(C.text,O)):Ku(C.parent)?A.add(R):r.replaceNode(e,C,O)})}if(r.replaceNode(e,i,o?w.createIdentifier(T):w.createNamespaceImport(w.createIdentifier(T))),A.size){const R=zo(A.values(),M=>w.createImportSpecifier(M.isTypeOnly,M.propertyName&&w.createIdentifier(M.propertyName.text),w.createIdentifier(M.name.text)));r.insertNodeAfter(e,i.parent.parent,gde(l,void 0,R))}}function EJe(e,t){const r=t.resolveExternalModuleName(e);if(!r)return!1;const i=t.resolveExternalModuleSymbol(r);return r!==i}function gde(e,t,r){return w.createImportDeclaration(void 0,w.createImportClause(!1,t,r&&r.length?w.createNamedImports(r):void 0),e.moduleSpecifier,void 0)}var $X,k5,SJe=I({"src/services/refactors/convertImport.ts"(){si(),xh(),$X="Convert import",k5={0:{name:"Convert namespace import to named imports",description:Wo(f.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:Wo(f.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:Wo(f.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},cg($X,{kinds:fA(k5).map(e=>e.kind),getAvailableActions:function(t){const r=YDe(t,t.triggerReason==="invoked");if(!r)return et;if(!Ug(r)){const i=k5[r.convertTo];return[{name:$X,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?fA(k5).map(i=>({name:$X,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):et},getEditsForAction:function(t,r){N.assert(bt(fA(k5),s=>s.name===r),"Unexpected action name");const i=YDe(t);return N.assert(i&&!Ug(i),"Expected applicable refactor info"),{edits:_r.ChangeTracker.with(t,s=>vJe(t.file,t.program,s,i)),renameFilename:void 0,renameLocation:void 0}}})}});function eNe(e,t=!0){const{file:r,startPosition:i}=e,o=cd(r),s=Q7(II(e)),l=s.pos===s.end&&t,u=TJe(r,i,s,l);if(!u||!ji(u))return{error:Wo(f.Selection_is_not_a_valid_type_node)};const p=e.program.getTypeChecker(),h=DJe(u,o);if(h===void 0)return{error:Wo(f.No_type_could_be_extracted_from_this_type_node)};const m=NJe(u,h);if(!ji(m))return{error:Wo(f.Selection_is_not_a_valid_type_node)};const y=[];(qy(m.parent)||nI(m.parent))&&s.end>u.end&&qr(y,m.parent.types.filter(M=>V7(M,r,s.pos,s.end)));const T=y.length>1?y:m,A=AJe(p,T,h,r);if(!A)return{error:Wo(f.No_type_could_be_extracted_from_this_type_node)};const R=QX(p,T);return{isJS:o,selection:T,enclosingNode:h,typeParameters:A,typeElements:R}}function TJe(e,t,r,i){const o=[()=>po(e,t),()=>bD(e,t,()=>!0)];for(const s of o){const l=s(),u=V7(l,e,r.pos,r.end),p=Vn(l,h=>h.parent&&ji(h)&&!v1(r,h.parent,e)&&(i||u));if(p)return p}}function QX(e,t){if(t){if(To(t)){const r=[];for(const i of t){const o=QX(e,i);if(!o)return;qr(r,o)}return r}if(nI(t)){const r=[],i=new Map;for(const o of t.types){const s=QX(e,o);if(!s||!s.every(l=>l.name&&Am(i,uO(l.name))))return;qr(r,s)}return r}else{if(wS(t))return QX(e,t.type);if(yp(t))return t.members}}}function v1(e,t,r){return rO(e,Pa(r.text,t.pos),t.end)}function AJe(e,t,r,i){const o=[],s=mA(t),l={pos:s[0].pos,end:s[s.length-1].end};for(const p of s)if(u(p))return;return o;function u(p){if(Df(p)){if(Ve(p.typeName)){const h=p.typeName,m=e.resolveName(h.text,h,262144,!0);for(const y of(m==null?void 0:m.declarations)||et)if(hl(y)&&y.getSourceFile()===i){if(y.name.escapedText===h.escapedText&&v1(y,l,i))return!0;if(v1(r,y,i)&&!v1(l,y,i)){Ef(o,y);break}}}}else if(kS(p)){const h=Vn(p,m=>rI(m)&&v1(m.extendsType,p,i));if(!h||!v1(l,h,i))return!0}else if(Gk(p)||jk(p)){const h=Vn(p.parent,ea);if(h&&h.type&&v1(h.type,p,i)&&!v1(l,h,i))return!0}else if(eI(p)){if(Ve(p.exprName)){const h=e.resolveName(p.exprName.text,p.exprName,111551,!1);if(h!=null&&h.valueDeclaration&&v1(r,h.valueDeclaration,i)&&!v1(l,h.valueDeclaration,i))return!0}else if(VE(p.exprName.left)&&!v1(l,p.parent,i))return!0}return i&&tI(p)&&ys(i,p.pos).line===ys(i,p.end).line&&pr(p,1),Uo(p,u)}}function IJe(e,t,r,i){const{enclosingNode:o,typeParameters:s}=i,{firstTypeNode:l,lastTypeNode:u,newTypeNode:p}=vde(i),h=w.createTypeAliasDeclaration(void 0,r,s.map(m=>w.updateTypeParameterDeclaration(m,m.modifiers,m.name,m.constraint,void 0)),p);e.insertNodeBefore(t,o,$U(h),!0),e.replaceNodeRange(t,l,u,w.createTypeReferenceNode(r,s.map(m=>w.createTypeReferenceNode(m.name,void 0))),{leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.ExcludeWhitespace})}function xJe(e,t,r,i){var o;const{enclosingNode:s,typeParameters:l,typeElements:u}=i,p=w.createInterfaceDeclaration(void 0,r,l,void 0,u);dt(p,(o=u[0])==null?void 0:o.parent),e.insertNodeBefore(t,s,$U(p),!0);const{firstTypeNode:h,lastTypeNode:m}=vde(i);e.replaceNodeRange(t,h,m,w.createTypeReferenceNode(r,l.map(y=>w.createTypeReferenceNode(y.name,void 0))),{leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.ExcludeWhitespace})}function RJe(e,t,r,i,o){var s;mA(o.selection).forEach(R=>{pr(R,7168)});const{enclosingNode:l,typeParameters:u}=o,{firstTypeNode:p,lastTypeNode:h,newTypeNode:m}=vde(o),y=w.createJSDocTypedefTag(w.createIdentifier("typedef"),w.createJSDocTypeExpression(m),w.createIdentifier(i)),T=[];Xe(u,R=>{const M=Jx(R),C=w.createTypeParameterDeclaration(void 0,R.name),O=w.createJSDocTemplateTag(w.createIdentifier("template"),M&&oa(M,o1),[C]);T.push(O)});const A=w.createJSDocComment(void 0,w.createNodeArray(So(T,[y])));if(Zm(l)){const R=l.getStart(r),M=Xv(t.host,(s=t.formatContext)==null?void 0:s.options);e.insertNodeAt(r,l.getStart(r),A,{suffix:M+M+r.text.slice(l5(r.text,R-1),R)})}else e.insertNodeBefore(r,l,A,!0);e.replaceNodeRange(r,p,h,w.createTypeReferenceNode(i,u.map(R=>w.createTypeReferenceNode(R.name,void 0))))}function vde(e){return To(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:qy(e.selection[0].parent)?w.createUnionTypeNode(e.selection):w.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function DJe(e,t){return Vn(e,Hi)||(t?Vn(e,Zm):void 0)}function NJe(e,t){return Vn(e,r=>r===t?"quit":!!(qy(r.parent)||nI(r.parent)))??e}var ZX,w5,O5,W5,CJe=I({"src/services/refactors/extractType.ts"(){si(),xh(),ZX="Extract type",w5={name:"Extract to type alias",description:Wo(f.Extract_to_type_alias),kind:"refactor.extract.type"},O5={name:"Extract to interface",description:Wo(f.Extract_to_interface),kind:"refactor.extract.interface"},W5={name:"Extract to typedef",description:Wo(f.Extract_to_typedef),kind:"refactor.extract.typedef"},cg(ZX,{kinds:[w5.kind,O5.kind,W5.kind],getAvailableActions:function(t){const r=eNe(t,t.triggerReason==="invoked");return r?Ug(r)?t.preferences.provideRefactorNotApplicableReason?[{name:ZX,description:Wo(f.Extract_type),actions:[{...W5,notApplicableReason:r.error},{...w5,notApplicableReason:r.error},{...O5,notApplicableReason:r.error}]}]:et:[{name:ZX,description:Wo(f.Extract_type),actions:r.isJS?[W5]:Rn([w5],r.typeElements&&O5)}]:et},getEditsForAction:function(t,r){const{file:i}=t,o=eNe(t);N.assert(o&&!Ug(o),"Expected to find a range to extract");const s=rT("NewType",i),l=_r.ChangeTracker.with(t,h=>{switch(r){case w5.name:return N.assert(!o.isJS,"Invalid actionName/JS combo"),IJe(h,i,s,o);case W5.name:return N.assert(o.isJS,"Invalid actionName/JS combo"),RJe(h,t,i,s,o);case O5.name:return N.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),xJe(h,i,s,o);default:N.fail("Unexpected action name")}}),u=i.fileName,p=_O(l,u,s,!1);return{edits:l,renameFilename:u,renameLocation:p}}})}});function Ug(e){return e.error!==void 0}function M0(e,t){return t?e.substr(0,t.length)===t:!0}var PJe=I({"src/services/refactors/helpers.ts"(){}});function tNe(e,t,r,i){var o,s;const l=i.getTypeChecker(),u=Vd(e,t),p=u.parent;if(Ve(u)){if(dk(p)&&bC(p)&&Ve(p.name)){if(((o=l.getMergedSymbol(p.symbol).declarations)==null?void 0:o.length)!==1)return{error:Wo(f.Variables_with_multiple_declarations_cannot_be_inlined)};if(nNe(p))return;const h=rNe(p,l,e);return h&&{references:h,declaration:p,replacement:p.initializer}}if(r){let h=l.resolveName(u.text,u,111551,!1);if(h=h&&l.getMergedSymbol(h),((s=h==null?void 0:h.declarations)==null?void 0:s.length)!==1)return{error:Wo(f.Variables_with_multiple_declarations_cannot_be_inlined)};const m=h.declarations[0];if(!dk(m)||!bC(m)||!Ve(m.name)||nNe(m))return;const y=rNe(m,l,e);return y&&{references:y,declaration:m,replacement:m.initializer}}return{error:Wo(f.Could_not_find_variable_to_inline)}}}function nNe(e){const t=oa(e.parent.parent,Ll);return bt(t.modifiers,$A)}function rNe(e,t,r){const i=[],o=Ws.Core.eachSymbolReferenceInFile(e.name,t,r,s=>{if(Ws.isWriteAccessForReference(s)&&!np(s.parent)||Ku(s.parent)||kl(s.parent)||eI(s.parent)||eL(e,s.pos))return!0;i.push(s)});return i.length===0||o?void 0:i}function MJe(e,t){t=ll(t);const{parent:r}=e;return yt(r)&&(MC(t)<MC(r)||c5(r))||ea(t)&&(NE(r)||Fr(r))||Fr(r)&&(hp(t)||La(t))?w.createParenthesizedExpression(t):Ve(e)&&np(r)?w.createPropertyAssignment(e,t):t}var IO,eY,tY,LJe=I({"src/services/refactors/inlineVariable.ts"(){si(),xh(),IO="Inline variable",eY=Wo(f.Inline_variable),tY={name:IO,description:eY,kind:"refactor.inline.variable"},cg(IO,{kinds:[tY.kind],getAvailableActions(e){const{file:t,program:r,preferences:i,startPosition:o,triggerReason:s}=e,l=tNe(t,o,s==="invoked",r);return l?RI.isRefactorErrorInfo(l)?i.provideRefactorNotApplicableReason?[{name:IO,description:eY,actions:[{...tY,notApplicableReason:l.error}]}]:et:[{name:IO,description:eY,actions:[tY]}]:et},getEditsForAction(e,t){N.assert(t===IO,"Unexpected refactor invoked");const{file:r,program:i,startPosition:o}=e,s=tNe(r,o,!0,i);if(!s||RI.isRefactorErrorInfo(s))return;const{references:l,declaration:u,replacement:p}=s;return{edits:_r.ChangeTracker.with(e,m=>{for(const y of l)m.replaceNode(r,y,MJe(y,p));m.delete(r,u)})}}})}});function kJe(e,t,r,i,o,s){const l=t.getTypeChecker(),u=B5(e,r.all,l),p=Nde(e,t,o,r);i.createNewFile(e,p,wJe(e,u,i,r,t,o,p,s)),yde(t,i,e.fileName,p,wv(o))}function wJe(e,t,r,i,o,s,l,u){const p=o.getTypeChecker(),h=P6(e.statements,Sm);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByTargetFile.size===0)return F5(e,i.ranges,r),[...h,...i.all];const m=!EX(l,o,s,!!e.commonJsModuleIndicator),y=lf(e,u),T=Tde(e,t.oldFileImportsFromTargetFile,l,o,s,m,y);T&&iM(r,e,T,!0,u),bde(e,i.all,r,t.unusedImportsFromOldFile,p),F5(e,i.ranges,r),Ede(r,o,s,e,t.movedSymbols,l,y);const A=OJe(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,r,p,o,s,m,y),R=Ade(e,i.all,t.oldFileImportsFromTargetFile,m);return A.length&&R.length?[...h,...A,4,...R]:[...h,...A,...R]}function OJe(e,t,r,i,o,s,l,u,p){const h=[];for(const A of e.statements)DO(A,R=>{Rn(h,NO(R,RO(R),M=>t.has(o.getSymbolAtLocation(M))))});let m;const y=[],T=TI();return r.forEach(A=>{if(A.declarations)for(const R of A.declarations){if(!G5(R))continue;const M=Rde(R);if(!M)continue;const C=iY(R);T(C)&&Dde(e,C,M,i,u),Qr(R,2048)?m=M:y.push(M.text)}}),Rn(h,z5(e,m,y,ic(e.fileName),s,l,u,p)),h}var xO,nY,rY,WJe=I({"src/services/refactors/moveToNewFile.ts"(){si(),xh(),xO="Move to a new file",nY=Wo(f.Move_to_a_new_file),rY={name:xO,description:nY,kind:"refactor.move.newFile"},cg(xO,{kinds:[rY.kind],getAvailableActions:function(t){const r=CO(t);return t.preferences.allowTextChangesInNewFiles&&r?[{name:xO,description:nY,actions:[rY]}]:t.preferences.provideRefactorNotApplicableReason?[{name:xO,description:nY,actions:[{...rY,notApplicableReason:Wo(f.Selection_is_not_a_valid_statement_or_statements)}]}]:et},getEditsForAction:function(t,r){N.assert(r===xO,"Wrong refactor invoked");const i=N.checkDefined(CO(t));return{edits:_r.ChangeTracker.with(t,s=>kJe(t.file,t.program,i,s,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}}})}});function iNe(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function FJe(e,t,r,i,o,s,l,u){const p=i.getTypeChecker();if(!l.fileExists(r))s.createNewFile(t,r,oNe(t,r,B5(t,o.all,p),s,o,i,l,u)),yde(i,s,t.fileName,r,wv(l));else{const h=N.checkDefined(i.getSourceFile(r)),m=Fu.createImportAdder(h,e.program,e.preferences,e.host);oNe(t,h,B5(t,o.all,p,rKe(h,o.all,p)),s,o,i,l,u,m)}}function oNe(e,t,r,i,o,s,l,u,p){const h=s.getTypeChecker(),m=P6(e.statements,Sm);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&r.oldImportsNeededByTargetFile.size===0&&r.targetFileImportsFromOldFile.size===0&&typeof t=="string")return F5(e,o.ranges,i),[...m,...o.all];const y=typeof t=="string"?t:t.fileName,T=!EX(y,s,l,!!e.commonJsModuleIndicator),A=lf(e,u),R=Tde(e,r.oldFileImportsFromTargetFile,y,s,l,T,A);R&&iM(i,e,R,!0,u),bde(e,o.all,i,r.unusedImportsFromOldFile,h),F5(e,o.ranges,i),Ede(i,s,l,e,r.movedSymbols,y,A);const M=zJe(e,y,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,i,h,s,l,T,A,p),C=Ade(e,o.all,r.oldFileImportsFromTargetFile,T);return typeof t!="string"&&(t.statements.length>0?nKe(i,s,C,t,o):i.insertNodesAtEndOfFile(t,C,!1),M.length>0&&iM(i,t,M,!0,u)),p&&p.writeFixes(i,A),M.length&&C.length?[...m,...M,4,...C]:[...m,...M,...C]}function zJe(e,t,r,i,o,s,l,u,p,h,m){const y=[];if(m)r.forEach((C,O)=>{try{m.addImportFromExportedSymbol(bu(O,s),C)}catch{for(const U of e.statements)DO(U,K=>{Rn(y,NO(K,w.createStringLiteral(RO(K).text),Q=>r.has(s.getSymbolAtLocation(Q))))})}});else{const C=l.getSourceFile(t);for(const O of e.statements)DO(O,U=>{var K;const Q=RO(U),V=l.getCompilerOptions(),se=l.getResolvedModuleFromModuleSpecifier(Q),G=(K=se==null?void 0:se.resolvedModule)==null?void 0:K.resolvedFileName;if(G&&C){const ne=LF(V,C,C.fileName,G,tT(l,u));Rn(y,NO(U,AI(ne,h),he=>r.has(s.getSymbolAtLocation(he))))}else Rn(y,NO(U,w.createStringLiteral(RO(U).text),ne=>r.has(s.getSymbolAtLocation(ne))))})}const T=l.getSourceFile(t);let A;const R=[],M=TI();return i.forEach(C=>{if(C.declarations)for(const O of C.declarations){if(!G5(O))continue;const U=Rde(O);if(!U)continue;const K=iY(O);M(K)&&Dde(e,K,U,o,p),m&&s.isUnknownSymbol(C)?m.addImportFromExportedSymbol(bu(C,s)):Qr(O,2048)?A=U:R.push(U.text)}}),T?Rn(y,z5(T,A,R,e.fileName,l,u,p,h)):Rn(y,z5(e,A,R,e.fileName,l,u,p,h))}function yde(e,t,r,i,o){const s=e.getCompilerOptions().configFile;if(!s)return;const l=ha($r(r,"..",i)),u=H2(s.fileName,l,o),p=s.statements[0]&&ri(s.statements[0].expression,La),h=p&&In(p.properties,m=>hc(m)&&Na(m.name)&&m.name.text==="files");h&&fd(h.initializer)&&t.insertNodeInListAfter(s,Xa(h.initializer.elements),w.createStringLiteral(u),h.initializer.elements)}function F5(e,t,r){for(const{first:i,afterLast:o}of t)r.deleteNodeRangeExcludingEnd(e,i,o)}function bde(e,t,r,i,o){for(const s of e.statements)Or(t,s)||DO(s,l=>Ide(e,l,r,u=>i.has(o.getSymbolAtLocation(u))))}function Ede(e,t,r,i,o,s,l){const u=t.getTypeChecker();for(const p of t.getSourceFiles())if(p!==i)for(const h of p.statements)DO(h,m=>{if(u.getSymbolAtLocation(RO(m))!==i.symbol)return;const y=C=>{const O=$a(C.parent)?o5(u,C.parent):bu(u.getSymbolAtLocation(C),u);return!!O&&o.has(O)};Ide(p,m,e,y);const T=Iy(ai(i.path),s),A=LF(t.getCompilerOptions(),p,p.fileName,T,tT(t,r)),R=NO(m,AI(A,l),y);R&&e.insertNodeAfter(p,h,R);const M=BJe(m);M&&GJe(e,p,u,o,A,M,m,l)})}function BJe(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 ri(e.name,Ve);default:return N.assertNever(e,`Unexpected node kind ${e.kind}`)}}function GJe(e,t,r,i,o,s,l,u){const p=Fu.moduleSpecifierToValidIdentifier(o,99);let h=!1;const m=[];if(Ws.Core.eachSymbolReferenceInFile(s,r,t,y=>{Fr(y.parent)&&(h=h||!!r.resolveName(p,y,-1,!0),i.has(r.getSymbolAtLocation(y.parent.name))&&m.push(y))}),m.length){const y=h?rT(p,t):p;for(const T of m)e.replaceNode(t,T,w.createIdentifier(y));e.insertNodeAfter(t,l,VJe(l,p,o,u))}}function VJe(e,t,r,i){const o=w.createIdentifier(t),s=AI(r,i);switch(e.kind){case 272:return w.createImportDeclaration(void 0,w.createImportClause(!1,void 0,w.createNamespaceImport(o)),s,void 0);case 271:return w.createImportEqualsDeclaration(void 0,!1,o,w.createExternalModuleReference(s));case 260:return w.createVariableDeclaration(o,void 0,void 0,Sde(s));default:return N.assertNever(e,`Unexpected node kind ${e.kind}`)}}function Sde(e){return w.createCallExpression(w.createIdentifier("require"),void 0,[e])}function RO(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function DO(e,t){if(Mc(e))Na(e.moduleSpecifier)&&t(e);else if(eu(e))Th(e.moduleReference)&&ls(e.moduleReference.expression)&&t(e);else if(Ll(e))for(const r of e.declarationList.declarations)r.initializer&&Td(r.initializer,!0)&&t(r)}function Tde(e,t,r,i,o,s,l){let u;const p=[];return t.forEach(h=>{h.escapedName==="default"?u=w.createIdentifier(n5(h)):p.push(h.name)}),z5(e,u,p,r,i,o,s,l)}function z5(e,t,r,i,o,s,l,u){const p=Iy(ai(e.path),i),h=LF(o.getCompilerOptions(),e,e.fileName,p,tT(o,s));if(l){const m=r.map(y=>w.createImportSpecifier(!1,void 0,w.createIdentifier(y)));return mue(t,m,h,u)}else{N.assert(!t,"No default import should exist");const m=r.map(y=>w.createBindingElement(void 0,void 0,y));return m.length?aNe(w.createObjectBindingPattern(m),void 0,Sde(AI(h,u))):void 0}}function aNe(e,t,r,i=2){return w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(e,void 0,t,r)],i))}function Ade(e,t,r,i){return Do(t,o=>{if(lNe(o)&&!sNe(e,o,i)&&Mde(o,s=>{var l;return r.has(N.checkDefined((l=ri(s,T_))==null?void 0:l.symbol))})){const s=HJe(ll(o),i);if(s)return s}return ll(o)})}function sNe(e,t,r,i){var o;return r?!Zc(t)&&Qr(t,32)||!!(i&&e.symbol&&((o=e.symbol.exports)!=null&&o.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&xde(t).some(s=>e.symbol.exports.has(_l(s)))}function Ide(e,t,r,i){switch(t.kind){case 272:jJe(e,t,r,i);break;case 271:i(t.name)&&r.delete(e,t);break;case 260:UJe(e,t,r,i);break;default:N.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function jJe(e,t,r,i){if(!t.importClause)return;const{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,w.updateImportClause(t.importClause,t.importClause.isTypeOnly,o,void 0));else if(s.kind===275)for(const p of s.elements)i(p.name)&&r.delete(e,p)}}function UJe(e,t,r,i){const{name:o}=t;switch(o.kind){case 80:i(o)&&(t.initializer&&Td(t.initializer,!0)?r.delete(e,Vc(t.parent)&&Ne(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,Vc(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(const s of o.elements)Ve(s.name)&&i(s.name)&&r.delete(e,s.name);break}}function lNe(e){return N.assert($i(e.parent),"Node parent should be a SourceFile"),fNe(e)||Ll(e)}function HJe(e,t){return t?[qJe(e)]:JJe(e)}function qJe(e){const t=Rm(e)?So([w.createModifier(95)],xE(e)):void 0;switch(e.kind){case 262:return w.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:const r=qS(e)?Ry(e):void 0;return w.updateClassDeclaration(e,So(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return w.updateVariableStatement(e,t,e.declarationList);case 267:return w.updateModuleDeclaration(e,t,e.name,e.body);case 266:return w.updateEnumDeclaration(e,t,e.name,e.members);case 265:return w.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return w.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return w.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return N.fail();default:return N.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function JJe(e){return[e,...xde(e).map(cNe)]}function cNe(e){return w.createExpressionStatement(w.createBinaryExpression(w.createPropertyAccessExpression(w.createIdentifier("exports"),w.createIdentifier(e)),64,w.createIdentifier(e)))}function xde(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return eo(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 N.fail("Can't export an ExpressionStatement");default:return N.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function NO(e,t,r){switch(e.kind){case 272:{const i=e.importClause;if(!i)return;const o=i.name&&r(i.name)?i.name:void 0,s=i.namedBindings&&KJe(i.namedBindings,r);return o||s?w.createImportDeclaration(void 0,w.createImportClause(i.isTypeOnly,o,s),ll(t),void 0):void 0}case 271:return r(e.name)?e:void 0;case 260:{const i=XJe(e.name,r);return i?aNe(i,e.type,Sde(t),e.parent.flags):void 0}default:return N.assertNever(e,`Unexpected import kind ${e.kind}`)}}function KJe(e,t){if(e.kind===274)return t(e.name)?e:void 0;{const r=e.elements.filter(i=>t(i.name));return r.length?w.createNamedImports(r):void 0}}function XJe(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{const r=e.elements.filter(i=>i.propertyName||!Ve(i.name)||t(i.name));return r.length?w.createObjectBindingPattern(r):void 0}}}function Rde(e){return Zc(e)?ri(e.expression.left.name,Ve):ri(e.name,Ve)}function iY(e){switch(e.kind){case 260:return e.parent.parent;case 208:return iY(oa(e.parent.parent,t=>Oi(t)||$a(t)));default:return e}}function Dde(e,t,r,i,o){if(!sNe(e,t,o,r))if(o)Zc(t)||i.insertExportModifier(e,t);else{const s=xde(t);s.length!==0&&i.insertNodesAfter(e,t,s.map(cNe))}}function Nde(e,t,r,i){const o=t.getTypeChecker();if(i){const s=B5(e,i.all,o),l=ai(e.fileName),u=XC(e.fileName);return $r(l,ZJe(eKe(s.oldFileImportsFromTargetFile,s.movedSymbols),u,l,r))+u}return""}function YJe(e){const{file:t}=e,r=Q7(II(e)),{statements:i}=t;let o=mi(i,h=>h.end>r.pos);if(o===-1)return;const s=i[o],l=mNe(t,s);l&&(o=l.start);let u=mi(i,h=>h.end>=r.end,o);u!==-1&&r.end<=i[u].getStart()&&u--;const p=mNe(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){const t=YJe(e);if(t===void 0)return;const r=[],i=[],{toMove:o,afterLast:s}=t;return zB(o,$Je,(l,u)=>{for(let p=l;p<u;p++)r.push(o[p]);i.push({first:o[l],afterLast:s})}),r.length===0?void 0:{all:r,ranges:i}}function Cde(e){return In(e,t=>!!(t.transformFlags&2))}function $Je(e){return!QJe(e)&&!Sm(e)}function QJe(e){switch(e.kind){case 272:return!0;case 271:return!Qr(e,32);case 243:return e.declarationList.declarations.every(t=>!!t.initializer&&Td(t.initializer,!0));default:return!1}}function B5(e,t,r,i=new Set){const o=new Set,s=new Map,l=new Set,u=m(Cde(t));u&&s.set(u,!1);for(const y of t)Mde(y,T=>{o.add(N.checkDefined(Zc(T)?r.getSymbolAtLocation(T.expression.left):T.symbol,"Need a symbol here"))});const p=new Set;for(const y of t)Pde(y,r,(T,A)=>{if(T.declarations){if(i.has(bu(T,r))){p.add(T);return}for(const R of T.declarations)if(uNe(R)){const M=s.get(T);s.set(T,(M===void 0||M)&&A)}else G5(R)&&tKe(R)===e&&!o.has(T)&&l.add(T)}});for(const y of s.keys())p.add(y);const h=new Set;for(const y of e.statements)Or(t,y)||(u&&y.transformFlags&2&&p.delete(u),Pde(y,r,T=>{o.has(T)&&h.add(T),p.delete(T)}));return{movedSymbols:o,targetFileImportsFromOldFile:l,oldFileImportsFromTargetFile:h,oldImportsNeededByTargetFile:s,unusedImportsFromOldFile:p};function m(y){if(y===void 0)return;const T=r.getJsxNamespace(y),A=r.resolveName(T,y,1920,!0);return A&&bt(A.declarations,uNe)?A:void 0}}function ZJe(e,t,r,i){let o=e;for(let s=1;;s++){const l=$r(r,o+t);if(!i.fileExists(l))return o;o=`${e}.${s}`}}function eKe(e,t){return mh(e,n5)||mh(t,n5)||"newFile"}function Pde(e,t,r){e.forEachChild(function i(o){if(Ve(o)&&!wg(o)){const s=t.getSymbolAtLocation(o);s&&r(s,h0(o))}else o.forEachChild(i)})}function Mde(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 Ht(e.declarationList.declarations,r=>pNe(r.name,t));case 244:{const{expression:r}=e;return mr(r)&&zl(r)===1?t(e):void 0}}}function uNe(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return dNe(e);case 208:return Oi(e.parent.parent)&&dNe(e.parent.parent);default:return!1}}function dNe(e){return $i(e.parent.parent.parent)&&!!e.initializer&&Td(e.initializer,!0)}function G5(e){return fNe(e)&&$i(e.parent)||Oi(e)&&$i(e.parent.parent.parent)}function tKe(e){return Oi(e)?e.parent.parent.parent:e.parent}function pNe(e,t){switch(e.kind){case 80:return t(oa(e.parent,r=>Oi(r)||$a(r)));case 207:case 206:return Ht(e.elements,r=>Gc(r)?void 0:pNe(r.name,t));default:return N.assertNever(e,`Unexpected name kind ${e.kind}`)}}function fNe(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function nKe(e,t,r,i,o){var s;const l=new Set,u=(s=i.symbol)==null?void 0:s.exports;if(u){const h=t.getTypeChecker(),m=new Map;for(const y of o.all)lNe(y)&&Qr(y,32)&&Mde(y,T=>{var A;const R=T_(T)?(A=u.get(T.symbol.escapedName))==null?void 0:A.declarations:void 0,M=Ht(R,C=>Yl(C)?C:Ku(C)?ri(C.parent.parent,Yl):void 0);M&&M.moduleSpecifier&&m.set(M,(m.get(M)||new Set).add(T))});for(const[y,T]of zo(m))if(y.exportClause&&Nf(y.exportClause)&&Ne(y.exportClause.elements)){const A=y.exportClause.elements,R=mn(A,M=>In(bu(M.symbol,h).declarations,C=>G5(C)&&T.has(C))===void 0);if(Ne(R)===0){e.deleteNode(i,y),l.add(y);continue}Ne(R)<Ne(A)&&e.replaceNode(i,y,w.updateExportDeclaration(y,y.modifiers,y.isTypeOnly,w.updateNamedExports(y.exportClause,w.createNodeArray(R,A.hasTrailingComma)),y.moduleSpecifier,y.attributes))}}const p=oi(i.statements,h=>Yl(h)&&!!h.moduleSpecifier&&!l.has(h));p?e.insertNodesBefore(i,p,r,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],r)}function mNe(e,t){if(Bs(t)){const r=t.symbol.declarations;if(r===void 0||Ne(r)<=1||!Or(r,t))return;const i=r[0],o=r[Ne(r)-1],s=eo(r,p=>Un(p)===e&&Hi(p)?p:void 0),l=mi(e.statements,p=>p.end>=o.end),u=mi(e.statements,p=>p.end>=i.end);return{toMove:s,start:u,end:l}}}function rKe(e,t,r){const i=new Set;for(const o of e.imports){const s=IC(o);if(Mc(s)&&s.importClause&&s.importClause.namedBindings&&Bg(s.importClause.namedBindings))for(const l of s.importClause.namedBindings.elements){const u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(bu(u,r))}if(Z4(s.parent)&&im(s.parent.name))for(const l of s.parent.name.elements){const u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(bu(u,r))}}for(const o of t)Pde(o,r,s=>{const l=bu(s,r);l.valueDeclaration&&Un(l.valueDeclaration)===e&&i.add(l)});return i}var V5,oY,aY,iKe=I({"src/services/refactors/moveToFile.ts"(){Fse(),si(),JDe(),V5="Move to file",oY=Wo(f.Move_to_file),aY={name:"Move to file",description:oY,kind:"refactor.move.file"},cg(V5,{kinds:[aY.kind],getAvailableActions:function(t,r){const i=CO(t);return r?t.preferences.allowTextChangesInNewFiles&&i?[{name:V5,description:oY,actions:[aY]}]:t.preferences.provideRefactorNotApplicableReason?[{name:V5,description:oY,actions:[{...aY,notApplicableReason:Wo(f.Selection_is_not_a_valid_statement_or_statements)}]}]:et:et},getEditsForAction:function(t,r,i){N.assert(r===V5,"Wrong refactor invoked");const o=N.checkDefined(CO(t)),{host:s,program:l}=t;N.assert(i,"No interactive refactor arguments available");const u=i.targetFile;return UE(u)||GA(u)?s.fileExists(u)&&l.getSourceFile(u)===void 0?iNe(Wo(f.Cannot_move_statements_to_the_selected_file)):{edits:_r.ChangeTracker.with(t,h=>FJe(t,t.file,i.targetFile,t.program,o,h,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:iNe(Wo(f.Cannot_move_to_file_selected_file_is_invalid))}})}});function oKe(e){const{file:t,startPosition:r,program:i}=e;return hNe(t,r,i)?[{name:sY,description:Lde,actions:[kde]}]:et}function aKe(e){const{file:t,startPosition:r,program:i}=e,o=hNe(t,r,i);if(!o)return;const s=i.getTypeChecker(),l=o[o.length-1];let u=l;switch(l.kind){case 173:{u=w.updateMethodSignature(l,l.modifiers,l.name,l.questionToken,l.typeParameters,h(o),l.type);break}case 174:{u=w.updateMethodDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.questionToken,l.typeParameters,h(o),l.type,l.body);break}case 179:{u=w.updateCallSignature(l,l.typeParameters,h(o),l.type);break}case 176:{u=w.updateConstructorDeclaration(l,l.modifiers,h(o),l.body);break}case 180:{u=w.updateConstructSignature(l,l.typeParameters,h(o),l.type);break}case 262:{u=w.updateFunctionDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.typeParameters,h(o),l.type,l.body);break}default:return N.failBadSyntaxKind(l,"Unhandled signature kind in overload list conversion refactoring")}if(u===l)return;return{renameFilename:void 0,renameLocation:void 0,edits:_r.ChangeTracker.with(e,T=>{T.replaceNodeRange(t,o[0],o[o.length-1],u)})};function h(T){const A=T[T.length-1];return Bs(A)&&A.body&&(T=T.slice(0,T.length-1)),w.createNodeArray([w.createParameterDeclaration(void 0,w.createToken(26),"args",void 0,w.createUnionTypeNode(Wt(T,m)))])}function m(T){const A=Wt(T.parameters,y);return pr(w.createTupleTypeNode(A),bt(A,R=>!!Ne(WR(R)))?0:1)}function y(T){N.assert(Ve(T.name));const A=dt(w.createNamedTupleMember(T.dotDotDotToken,T.name,T.questionToken,T.type||w.createKeywordTypeNode(133)),T),R=T.symbol&&T.symbol.getDocumentationComment(s);if(R){const M=WO(R);M.length&&v0(A,[{text:`* +${M.split(` +`).map(C=>` * ${C}`).join(` +`)} + `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return A}}function _Ne(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function hNe(e,t,r){const i=po(e,t),o=Vn(i,_Ne);if(!o||Bs(o)&&o.body&&tO(o.body,t))return;const s=r.getTypeChecker(),l=o.symbol;if(!l)return;const u=l.declarations;if(Ne(u)<=1||!Jn(u,T=>Un(T)===e)||!_Ne(u[0]))return;const p=u[0].kind;if(!Jn(u,T=>T.kind===p))return;const h=u;if(bt(h,T=>!!T.typeParameters||bt(T.parameters,A=>!!A.modifiers||!Ve(A.name))))return;const m=eo(h,T=>s.getSignatureFromDeclaration(T));if(Ne(m)!==Ne(u))return;const y=s.getReturnTypeOfSignature(m[0]);if(Jn(m,T=>s.getReturnTypeOfSignature(T)===y))return h}var sY,Lde,kde,sKe=I({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){si(),xh(),sY="Convert overload list to single signature",Lde=Wo(f.Convert_overload_list_to_single_signature),kde={name:sY,description:Lde,kind:"refactor.rewrite.function.overloadList"},cg(sY,{kinds:[kde.kind],getEditsForAction:aKe,getAvailableActions:oKe})}});function lKe(e){const{file:t,startPosition:r,triggerReason:i}=e,o=gNe(t,r,i==="invoked");return o?Ug(o)?e.preferences.provideRefactorNotApplicableReason?[{name:lY,description:wde,actions:[{...j5,notApplicableReason:o.error},{...PO,notApplicableReason:o.error}]}]:et:[{name:lY,description:wde,actions:[o.addBraces?j5:PO]}]:et}function cKe(e,t){const{file:r,startPosition:i}=e,o=gNe(r,i);N.assert(o&&!Ug(o),"Expected applicable refactor info");const{expression:s,returnStatement:l,func:u}=o;let p;if(t===j5.name){const m=w.createReturnStatement(s);p=w.createBlock([m],!0),ID(s,m,r,3,!0)}else if(t===PO.name&&l){const m=s||w.createVoidZero();p=c5(m)?w.createParenthesizedExpression(m):m,hO(l,p,r,3,!1),ID(l,p,r,3,!1),lM(l,p,r,3,!1)}else N.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:_r.ChangeTracker.with(e,m=>{m.replaceNode(r,u.body,p)})}}function gNe(e,t,r=!0,i){const o=po(e,t),s=Bp(o);if(!s)return{error:Wo(f.Could_not_find_a_containing_arrow_function)};if(!Gs(s))return{error:Wo(f.Containing_function_is_not_an_arrow_function)};if(!(!sf(s,o)||sf(s.body,o)&&!r)){if(M0(j5.kind,i)&&yt(s.body))return{func:s,addBraces:!0,expression:s.body};if(M0(PO.kind,i)&&Ko(s.body)&&s.body.statements.length===1){const l=Ua(s.body.statements);if(Im(l)){const u=l.expression&&La(NR(l.expression,!1))?w.createParenthesizedExpression(l.expression):l.expression;return{func:s,addBraces:!1,expression:u,returnStatement:l}}}}}var lY,wde,j5,PO,uKe=I({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){si(),xh(),lY="Add or remove braces in an arrow function",wde=Wo(f.Add_or_remove_braces_in_an_arrow_function),j5={name:"Add braces to arrow function",description:Wo(f.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},PO={name:"Remove braces from arrow function",description:Wo(f.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},cg(lY,{kinds:[PO.kind],getEditsForAction:cKe,getAvailableActions:lKe})}}),dKe={},pKe=I({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){sKe(),uKe()}});function fKe(e){const{file:t,startPosition:r,program:i,kind:o}=e,s=yNe(t,r,i);if(!s)return et;const{selectedVariableDeclaration:l,func:u}=s,p=[],h=[];if(M0(LO.kind,o)){const m=l||Gs(u)&&Oi(u.parent)?void 0:Wo(f.Could_not_convert_to_named_function);m?h.push({...LO,notApplicableReason:m}):p.push(LO)}if(M0(MO.kind,o)){const m=!l&&Gs(u)?void 0:Wo(f.Could_not_convert_to_anonymous_function);m?h.push({...MO,notApplicableReason:m}):p.push(MO)}if(M0(kO.kind,o)){const m=Os(u)?void 0:Wo(f.Could_not_convert_to_arrow_function);m?h.push({...kO,notApplicableReason:m}):p.push(kO)}return[{name:Ode,description:SNe,actions:p.length===0&&e.preferences.provideRefactorNotApplicableReason?h:p}]}function mKe(e,t){const{file:r,startPosition:i,program:o}=e,s=yNe(r,i,o);if(!s)return;const{func:l}=s,u=[];switch(t){case MO.name:u.push(...vKe(e,l));break;case LO.name:const p=gKe(l);if(!p)return;u.push(...yKe(e,l,p));break;case kO.name:if(!Os(l))return;u.push(...bKe(e,l));break;default:return N.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:u}}function vNe(e){let t=!1;return e.forEachChild(function r(i){if(yD(i)){t=!0;return}!di(i)&&!Tc(i)&&!Os(i)&&Uo(i,r)}),t}function yNe(e,t,r){const i=po(e,t),o=r.getTypeChecker(),s=hKe(e,o,i.parent);if(s&&!vNe(s.body)&&!o.containsArgumentsReference(s))return{selectedVariableDeclaration:!0,func:s};const l=Bp(i);if(l&&(Os(l)||Gs(l))&&!sf(l.body,i)&&!vNe(l.body)&&!o.containsArgumentsReference(l))return Os(l)&&ENe(e,o,l)?void 0:{selectedVariableDeclaration:!1,func:l}}function _Ke(e){return Oi(e)||Vc(e)&&e.declarations.length===1}function hKe(e,t,r){if(!_Ke(r))return;const o=(Oi(r)?r:Ua(r.declarations)).initializer;if(o&&(Gs(o)||Os(o)&&!ENe(e,t,o)))return o}function bNe(e){if(yt(e)){const t=w.createReturnStatement(e),r=e.getSourceFile();return dt(t,e),Sp(t),hO(e,t,r,void 0,!0),w.createBlock([t],!0)}else return e}function gKe(e){const t=e.parent;if(!Oi(t)||!bC(t))return;const r=t.parent,i=r.parent;if(!(!Vc(r)||!Ll(i)||!Ve(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function vKe(e,t){const{file:r}=e,i=bNe(t.body),o=w.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return _r.ChangeTracker.with(e,s=>s.replaceNode(r,t,o))}function yKe(e,t,r){const{file:i}=e,o=bNe(t.body),{variableDeclaration:s,variableDeclarationList:l,statement:u,name:p}=r;cX(u);const h=n0(s)&32|ud(t),m=w.createModifiersFromModifierFlags(h),y=w.createFunctionDeclaration(Ne(m)?m:void 0,t.asteriskToken,p,t.typeParameters,t.parameters,t.type,o);return l.declarations.length===1?_r.ChangeTracker.with(e,T=>T.replaceNode(i,u,y)):_r.ChangeTracker.with(e,T=>{T.delete(i,s),T.insertNodeAfter(i,u,y)})}function bKe(e,t){const{file:r}=e,o=t.body.statements[0];let s;EKe(t.body,o)?(s=o.expression,Sp(s),nT(o,s)):s=t.body;const l=w.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,w.createToken(39),s);return _r.ChangeTracker.with(e,u=>u.replaceNode(r,t,l))}function EKe(e,t){return e.statements.length===1&&Im(t)&&!!t.expression}function ENe(e,t,r){return!!r.name&&Ws.Core.isSymbolReferencedInFile(r.name,t,e)}var Ode,SNe,MO,LO,kO,SKe=I({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){si(),xh(),Ode="Convert arrow function or function expression",SNe=Wo(f.Convert_arrow_function_or_function_expression),MO={name:"Convert to anonymous function",description:Wo(f.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},LO={name:"Convert to named function",description:Wo(f.Convert_to_named_function),kind:"refactor.rewrite.function.named"},kO={name:"Convert to arrow function",description:Wo(f.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},cg(Ode,{kinds:[MO.kind,LO.kind,kO.kind],getEditsForAction:mKe,getAvailableActions:fKe})}}),TKe={},AKe=I({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){SKe()}});function IKe(e){const{file:t,startPosition:r}=e;return cd(t)||!INe(t,r,e.program.getTypeChecker())?et:[{name:H5,description:Bde,actions:[Gde]}]}function xKe(e,t){N.assert(t===H5,"Unexpected action name");const{file:r,startPosition:i,program:o,cancellationToken:s,host:l}=e,u=INe(r,i,o.getTypeChecker());if(!u||!s)return;const p=DKe(u,o,s);return p.valid?{renameFilename:void 0,renameLocation:void 0,edits:_r.ChangeTracker.with(e,m=>RKe(r,o,l,m,u,p))}:{edits:[]}}function RKe(e,t,r,i,o,s){const l=s.signature,u=Wt(NNe(o,t,r),m=>ll(m));if(l){const m=Wt(NNe(l,t,r),y=>ll(y));h(l,m)}h(o,u);const p=HN(s.functionCalls,(m,y)=>nl(m.pos,y.pos));for(const m of p)if(m.arguments&&m.arguments.length){const y=ll(FKe(o,m.arguments),!0);i.replaceNodeRange(Un(m),Ua(m.arguments),Xa(m.arguments),y,{leadingTriviaOption:_r.LeadingTriviaOption.IncludeAll,trailingTriviaOption:_r.TrailingTriviaOption.Include})}function h(m,y){i.replaceNodeRangeWithNodes(e,Ua(m.parameters),Xa(m.parameters),y,{joiner:", ",indentation:0,leadingTriviaOption:_r.LeadingTriviaOption.IncludeAll,trailingTriviaOption:_r.TrailingTriviaOption.Include})}}function DKe(e,t,r){const i=BKe(e),o=Ml(e)?zKe(e):[],s=SE([...i,...o],xv),l=t.getTypeChecker(),u=Do(s,y=>Ws.getReferenceEntriesForNode(-1,y,t,t.getSourceFiles(),r)),p=h(u);return Jn(p.declarations,y=>Or(s,y))||(p.valid=!1),p;function h(y){const T={accessExpressions:[],typeUsages:[]},A={functionCalls:[],declarations:[],classReferences:T,valid:!0},R=Wt(i,m),M=Wt(o,m),C=Ml(e),O=Wt(i,U=>Wde(U,l));for(const U of y){if(U.kind===Ws.EntryKind.Span){A.valid=!1;continue}if(Or(O,m(U.node))){if(MKe(U.node.parent)){A.signature=U.node.parent;continue}const Q=ANe(U);if(Q){A.functionCalls.push(Q);continue}}const K=Wde(U.node,l);if(K&&Or(O,K)){const Q=Fde(U);if(Q){A.declarations.push(Q);continue}}if(Or(R,m(U.node))||eM(U.node)){if(TNe(U))continue;const V=Fde(U);if(V){A.declarations.push(V);continue}const se=ANe(U);if(se){A.functionCalls.push(se);continue}}if(C&&Or(M,m(U.node))){if(TNe(U))continue;const V=Fde(U);if(V){A.declarations.push(V);continue}const se=NKe(U);if(se){T.accessExpressions.push(se);continue}if(Ac(e.parent)){const G=CKe(U);if(G){T.typeUsages.push(G);continue}}}A.valid=!1}return A}function m(y){const T=l.getSymbolAtLocation(y);return T&&sX(T,l)}}function Wde(e,t){const r=FO(e);if(r){const i=t.getContextualTypeForObjectLiteralElement(r),o=i==null?void 0:i.getSymbol();if(o&&!(xl(o)&6))return o}}function TNe(e){const t=e.node;if(tp(t.parent)||Eh(t.parent)||eu(t.parent)||Yy(t.parent)||Ku(t.parent)||kl(t.parent))return t}function Fde(e){if(Ju(e.node.parent))return e.node}function ANe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 213:case 214:const i=ri(r,S_);if(i&&i.expression===t)return i;break;case 211:const o=ri(r,Fr);if(o&&o.parent&&o.name===t){const l=ri(o.parent,S_);if(l&&l.expression===o)return l}break;case 212:const s=ri(r,$s);if(s&&s.parent&&s.argumentExpression===t){const l=ri(s.parent,S_);if(l&&l.expression===s)return l}break}}}function NKe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 211:const i=ri(r,Fr);if(i&&i.expression===t)return i;break;case 212:const o=ri(r,$s);if(o&&o.expression===t)return o;break}}}function CKe(e){const t=e.node;if(ZS(t)===2||b3(t.parent))return t}function INe(e,t,r){const i=bD(e,t),o=iie(i);if(!PKe(i)&&o&&LKe(o,r)&&sf(o,i)&&!(o.body&&sf(o.body,i)))return o}function PKe(e){const t=Vn(e,$x);if(t){const r=Vn(t,i=>!$x(i));return!!r&&Bs(r)}return!1}function MKe(e){return yh(e)&&(md(e.parent)||yp(e.parent))}function LKe(e,t){var r;if(!kKe(e.parameters,t))return!1;switch(e.kind){case 262:return xNe(e)&&U5(e,t);case 174:if(La(e.parent)){const i=Wde(e.name,t);return((r=i==null?void 0:i.declarations)==null?void 0:r.length)===1&&U5(e,t)}return U5(e,t);case 176:return Ac(e.parent)?xNe(e.parent)&&U5(e,t):RNe(e.parent.parent)&&U5(e,t);case 218:case 219:return RNe(e.parent)}return!1}function U5(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function xNe(e){return e.name?!0:!!SD(e,90)}function kKe(e,t){return OKe(e)>=CNe&&Jn(e,r=>wKe(r,t))}function wKe(e,t){if(Xh(e)){const r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&Ve(e.name)}function RNe(e){return Oi(e)&&iR(e)&&Ve(e.name)&&!e.type}function zde(e){return e.length>0&&yD(e[0].name)}function OKe(e){return zde(e)?e.length-1:e.length}function DNe(e){return zde(e)&&(e=w.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function WKe(e,t){return Ve(t)&&Qf(t)===e?w.createShorthandPropertyAssignment(e):w.createPropertyAssignment(e,t)}function FKe(e,t){const r=DNe(e.parameters),i=Xh(Xa(r)),o=i?t.slice(0,r.length-1):t,s=Wt(o,(u,p)=>{const h=cY(r[p]),m=WKe(h,u);return Sp(m.name),hc(m)&&Sp(m.initializer),nT(u,m),m});if(i&&t.length>=r.length){const u=t.slice(r.length-1),p=w.createPropertyAssignment(cY(Xa(r)),w.createArrayLiteralExpression(u));s.push(p)}return w.createObjectLiteralExpression(s,!1)}function NNe(e,t,r){const i=t.getTypeChecker(),o=DNe(e.parameters),s=Wt(o,m),l=w.createObjectBindingPattern(s),u=y(o);let p;Jn(o,R)&&(p=w.createObjectLiteralExpression());const h=w.createParameterDeclaration(void 0,void 0,l,void 0,u,p);if(zde(e.parameters)){const M=e.parameters[0],C=w.createParameterDeclaration(void 0,void 0,M.name,void 0,M.type);return Sp(C.name),nT(M.name,C.name),M.type&&(Sp(C.type),nT(M.type,C.type)),w.createNodeArray([C,h])}return w.createNodeArray([h]);function m(M){const C=w.createBindingElement(void 0,void 0,cY(M),Xh(M)&&R(M)?w.createArrayLiteralExpression():M.initializer);return Sp(C),M.initializer&&C.initializer&&nT(M.initializer,C.initializer),C}function y(M){const C=Wt(M,T);return P_(w.createTypeLiteralNode(C),1)}function T(M){let C=M.type;!C&&(M.initializer||Xh(M))&&(C=A(M));const O=w.createPropertySignature(void 0,cY(M),R(M)?w.createToken(58):M.questionToken,C);return Sp(O),nT(M.name,O.name),M.type&&O.type&&nT(M.type,O.type),O}function A(M){const C=i.getTypeAtLocation(M);return uM(C,M,t,r)}function R(M){if(Xh(M)){const C=i.getTypeAtLocation(M);return!i.isTupleType(C)}return i.isOptionalParameter(M)}}function cY(e){return Qf(e.name)}function zKe(e){switch(e.parent.kind){case 263:const t=e.parent;return t.name?[t.name]:[N.checkDefined(SD(t,90),"Nameless class declaration should be a default export")];case 231:const i=e.parent,o=e.parent.parent,s=i.name;return s?[s,o.name]:[o.name]}}function BKe(e){switch(e.kind){case 262:return e.name?[e.name]:[N.checkDefined(SD(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:const r=N.checkDefined(vs(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 N.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var H5,CNe,Bde,Gde,GKe=I({"src/services/refactors/convertParamsToDestructuredObject.ts"(){si(),xh(),H5="Convert parameters to destructured object",CNe=1,Bde=Wo(f.Convert_parameters_to_destructured_object),Gde={name:H5,description:Bde,kind:"refactor.rewrite.parameters.toDestructured"},cg(H5,{kinds:[Gde.kind],getEditsForAction:xKe,getAvailableActions:IKe})}}),VKe={},jKe=I({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){GKe()}});function UKe(e){const{file:t,startPosition:r}=e,i=PNe(t,r),o=Vde(i),s=Na(o),l={name:uY,description:dY,actions:[]};return s&&e.triggerReason!=="invoked"?et:Qh(o)&&(s||mr(o)&&jde(o).isValidConcatenation)?(l.actions.push(pY),[l]):e.preferences.provideRefactorNotApplicableReason?(l.actions.push({...pY,notApplicableReason:Wo(f.Can_only_convert_string_concatenations_and_string_literals)}),[l]):et}function PNe(e,t){const r=po(e,t),i=Vde(r);return!jde(i).isValidConcatenation&&Gd(i.parent)&&mr(i.parent.parent)?i.parent.parent:r}function HKe(e,t){const{file:r,startPosition:i}=e,o=PNe(r,i);switch(t){case dY:return{edits:qKe(e,o)};default:return N.fail("invalid action")}}function qKe(e,t){const r=Vde(t),i=e.file,o=XKe(jde(r),i),s=Zb(i.text,r.end);if(s){const l=s[s.length-1],u={pos:s[0].pos,end:l.end};return _r.ChangeTracker.with(e,p=>{p.deleteRange(i,u),p.replaceNode(i,r,o)})}else return _r.ChangeTracker.with(e,l=>l.replaceNode(i,r,o))}function JKe(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function Vde(e){return Vn(e.parent,r=>{switch(r.kind){case 211:case 212:return!1;case 228:case 226:return!(mr(r.parent)&&JKe(r.parent));default:return"quit"}})||e}function jde(e){const t=l=>{if(!mr(l))return{nodes:[l],operators:[],validOperators:!0,hasString:Na(l)||XA(l)};const{nodes:u,operators:p,hasString:h,validOperators:m}=t(l.left);if(!(h||Na(l.right)||HW(l.right)))return{nodes:[l],operators:[],hasString:!1,validOperators:!0};const y=l.operatorToken.kind===40,T=m&&y;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 KKe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function MNe(e){const t=YA(e)||nH(e)?-2:-1;return fc(e).slice(1,t)}function LNe(e,t){const r=[];let i="",o="";for(;e<t.length;){const s=t[e];if(ls(s))i+=s.text,o+=KKe(fc(s).slice(1,-1)),r.push(e),e++;else if(HW(s)){i+=s.head.text,o+=MNe(s.head);break}else break}return[e,i,o,r]}function XKe({nodes:e,operators:t},r){const i=wNe(t,r),o=ONe(e,r,i),[s,l,u,p]=LNe(0,e);if(s===e.length){const y=w.createNoSubstitutionTemplateLiteral(l,u);return o(p,y),y}const h=[],m=w.createTemplateHead(l,u);o(p,m);for(let y=s;y<e.length;y++){const T=YKe(e[y]);i(y,T);const[A,R,M,C]=LNe(y+1,e);y=A-1;const O=y===e.length-1;if(HW(T)){const U=Wt(T.templateSpans,(K,Q)=>{kNe(K);const V=Q===T.templateSpans.length-1,se=K.literal.text+(V?R:""),G=MNe(K.literal)+(V?M:"");return w.createTemplateSpan(K.expression,O&&V?w.createTemplateTail(se,G):w.createTemplateMiddle(se,G))});h.push(...U)}else{const U=O?w.createTemplateTail(R,M):w.createTemplateMiddle(R,M);o(C,U),h.push(w.createTemplateSpan(T,U))}}return w.createTemplateExpression(m,h)}function kNe(e){const t=e.getSourceFile();lM(e,e.expression,t,3,!1),hO(e.expression,e.expression,t,3,!1)}function YKe(e){return Gd(e)&&(kNe(e),e=e.expression),e}var uY,dY,pY,wNe,ONe,$Ke=I({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){si(),xh(),uY="Convert to template string",dY=Wo(f.Convert_to_template_string),pY={name:uY,description:dY,kind:"refactor.rewrite.string"},cg(uY,{kinds:[pY.kind],getEditsForAction:HKe,getAvailableActions:UKe}),wNe=(e,t)=>(r,i)=>{r<e.length&&lM(e[r],i,t,3,!1)},ONe=(e,t,r)=>(i,o)=>{for(;i.length>0;){const s=i.shift();lM(e[s],o,t,3,!1),r(s,o)}}}}),QKe={},ZKe=I({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){$Ke()}});function eXe(e){const t=WNe(e,e.triggerReason==="invoked");return t?Ug(t)?e.preferences.provideRefactorNotApplicableReason?[{name:q5,description:_Y,actions:[{...hY,notApplicableReason:t.error}]}]:et:[{name:q5,description:_Y,actions:[hY]}]:et}function tXe(e,t){const r=WNe(e);return N.assert(r&&!Ug(r),"Expected applicable refactor info"),{edits:_r.ChangeTracker.with(e,o=>cXe(e.file,e.program.getTypeChecker(),o,r)),renameFilename:void 0,renameLocation:void 0}}function fY(e){return mr(e)||jR(e)}function nXe(e){return Zc(e)||Im(e)||Ll(e)}function mY(e){return fY(e)||nXe(e)}function WNe(e,t=!0){const{file:r,program:i}=e,o=II(e),s=o.length===0;if(s&&!t)return;const l=po(r,o.start),u=J7(r,o.start+o.length),p=pc(l.pos,u&&u.end>=l.pos?u.getEnd():l.getEnd()),h=s?sXe(l):aXe(l,p),m=h&&mY(h)?lXe(h):void 0;if(!m)return{error:Wo(f.Could_not_find_convertible_access_expression)};const y=i.getTypeChecker();return jR(m)?rXe(m,y):iXe(m)}function rXe(e,t){const r=e.condition,i=Hde(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:Wo(f.Could_not_find_convertible_access_expression)};if((Fr(r)||Ve(r))&&Ude(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(mr(r)){const o=FNe(i.expression,r);return o?{finalExpression:i,occurrences:o,expression:e}:{error:Wo(f.Could_not_find_matching_access_expressions)}}}function iXe(e){if(e.operatorToken.kind!==56)return{error:Wo(f.Can_only_convert_logical_AND_access_chains)};const t=Hde(e.right);if(!t)return{error:Wo(f.Could_not_find_convertible_access_expression)};const r=FNe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:Wo(f.Could_not_find_matching_access_expressions)}}function FNe(e,t){const r=[];for(;mr(t)&&t.operatorToken.kind===56;){const o=Ude(hs(e),hs(t.right));if(!o)break;r.push(o),e=o,t=t.left}const i=Ude(e,t);return i&&r.push(i),r.length>0?r:void 0}function Ude(e,t){if(!(!Ve(t)&&!Fr(t)&&!$s(t)))return oXe(e,t)?t:void 0}function oXe(e,t){for(;(sa(e)||Fr(e)||$s(e))&&wO(e)!==wO(t);)e=e.expression;for(;Fr(e)&&Fr(t)||$s(e)&&$s(t);){if(wO(e)!==wO(t))return!1;e=e.expression,t=t.expression}return Ve(e)&&Ve(t)&&e.getText()===t.getText()}function wO(e){if(Ve(e)||ef(e))return e.getText();if(Fr(e))return wO(e.name);if($s(e))return wO(e.argumentExpression)}function aXe(e,t){for(;e.parent;){if(mY(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function sXe(e){for(;e.parent;){if(mY(e)&&!mY(e.parent))return e;e=e.parent}}function lXe(e){if(fY(e))return e;if(Ll(e)){const t=PA(e),r=t==null?void 0:t.initializer;return r&&fY(r)?r:void 0}return e.expression&&fY(e.expression)?e.expression:void 0}function Hde(e){if(e=hs(e),mr(e))return Hde(e.left);if((Fr(e)||$s(e)||sa(e))&&!qu(e))return e}function zNe(e,t,r){if(Fr(t)||$s(t)||sa(t)){const i=zNe(e,t.expression,r),o=r.length>0?r[r.length-1]:void 0,s=(o==null?void 0:o.getText())===t.expression.getText();if(s&&r.pop(),sa(t))return s?w.createCallChain(i,w.createToken(29),t.typeArguments,t.arguments):w.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(Fr(t))return s?w.createPropertyAccessChain(i,w.createToken(29),t.name):w.createPropertyAccessChain(i,t.questionDotToken,t.name);if($s(t))return s?w.createElementAccessChain(i,w.createToken(29),t.argumentExpression):w.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function cXe(e,t,r,i,o){const{finalExpression:s,occurrences:l,expression:u}=i,p=l[l.length-1],h=zNe(t,s,l);h&&(Fr(h)||$s(h)||sa(h))&&(mr(u)?r.replaceNodeRange(e,p,s,h):jR(u)&&r.replaceNode(e,u,w.createBinaryExpression(h,w.createToken(61),u.whenFalse)))}var q5,_Y,hY,uXe=I({"src/services/refactors/convertToOptionalChainExpression.ts"(){si(),xh(),q5="Convert to optional chain expression",_Y=Wo(f.Convert_to_optional_chain_expression),hY={name:q5,description:_Y,kind:"refactor.rewrite.expression.optionalChain"},cg(q5,{kinds:[hY.kind],getEditsForAction:tXe,getAvailableActions:eXe})}}),dXe={},pXe=I({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){uXe()}});function BNe(e){const t=e.kind,r=qde(e.file,II(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return et;const R=[];return M0(PD.kind,t)&&R.push({name:ND,description:PD.description,actions:[{...PD,notApplicableReason:A(r.errors)}]}),M0(CD.kind,t)&&R.push({name:ND,description:CD.description,actions:[{...CD,notApplicableReason:A(r.errors)}]}),R}const o=vXe(i,e);if(o===void 0)return et;const s=[],l=new Map;let u;const p=[],h=new Map;let m,y=0;for(const{functionExtraction:R,constantExtraction:M}of o){if(M0(PD.kind,t)){const C=R.description;R.errors.length===0?l.has(C)||(l.set(C,!0),s.push({description:C,name:`function_scope_${y}`,kind:PD.kind})):u||(u={description:C,name:`function_scope_${y}`,notApplicableReason:A(R.errors),kind:PD.kind})}if(M0(CD.kind,t)){const C=M.description;M.errors.length===0?h.has(C)||(h.set(C,!0),p.push({description:C,name:`constant_scope_${y}`,kind:CD.kind})):m||(m={description:C,name:`constant_scope_${y}`,notApplicableReason:A(M.errors),kind:CD.kind})}y++}const T=[];return s.length?T.push({name:ND,description:Wo(f.Extract_function),actions:s}):e.preferences.provideRefactorNotApplicableReason&&u&&T.push({name:ND,description:Wo(f.Extract_function),actions:[u]}),p.length?T.push({name:ND,description:Wo(f.Extract_constant),actions:p}):e.preferences.provideRefactorNotApplicableReason&&m&&T.push({name:ND,description:Wo(f.Extract_constant),actions:[m]}),T.length?T:et;function A(R){let M=R[0].messageText;return typeof M!="string"&&(M=M.messageText),M}}function GNe(e,t){const i=qde(e.file,II(e)).targetRange,o=/^function_scope_(\d+)$/.exec(t);if(o){const l=+o[1];return N.assert(isFinite(l),"Expected to parse a finite number from the function scope index"),hXe(i,e,l)}const s=/^constant_scope_(\d+)$/.exec(t);if(s){const l=+s[1];return N.assert(isFinite(l),"Expected to parse a finite number from the constant scope index"),gXe(i,e,l)}N.fail("Unrecognized action name")}function qde(e,t,r=!0){const{length:i}=t;if(i===0&&!r)return{errors:[$c(e,t.start,i,Tu.cannotExtractEmpty)]};const o=i===0&&r,s=eue(e,t.start),l=J7(e,Kl(t)),u=s&&l&&r?fXe(s,l,e):t,p=o?FXe(s):pO(s,e,u),h=o?p:pO(l,e,u);let m=0,y;if(!p||!h)return{errors:[$c(e,t.start,i,Tu.cannotExtractRange)]};if(p.flags&16777216)return{errors:[$c(e,t.start,i,Tu.cannotExtractJSDoc)]};if(p.parent!==h.parent)return{errors:[$c(e,t.start,i,Tu.cannotExtractRange)]};if(p!==h){if(!jNe(p.parent))return{errors:[$c(e,t.start,i,Tu.cannotExtractRange)]};const U=[];for(const K of p.parent.statements){if(K===p||U.length){const Q=O(K);if(Q)return{errors:Q};U.push(K)}if(K===h)break}return U.length?{targetRange:{range:U,facts:m,thisNode:y}}:{errors:[$c(e,t.start,i,Tu.cannotExtractRange)]}}if(Im(p)&&!p.expression)return{errors:[$c(e,t.start,i,Tu.cannotExtractRange)]};const T=R(p),A=M(T)||O(T);if(A)return{errors:A};return{targetRange:{range:mXe(T),facts:m,thisNode:y}};function R(U){if(Im(U)){if(U.expression)return U.expression}else if(Ll(U)||Vc(U)){const K=Ll(U)?U.declarationList.declarations:U.declarations;let Q=0,V;for(const se of K)se.initializer&&(Q++,V=se.initializer);if(Q===1)return V}else if(Oi(U)&&U.initializer)return U.initializer;return U}function M(U){if(Ve(Zc(U)?U.expression:U))return[kr(U,Tu.cannotExtractIdentifier)]}function C(U,K){let Q=U;for(;Q!==K;){if(Q.kind===172){aa(Q)&&(m|=32);break}else if(Q.kind===169){Bp(Q).kind===176&&(m|=32);break}else Q.kind===174&&aa(Q)&&(m|=32);Q=Q.parent}}function O(U){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={})),N.assert(U.pos<=U.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),N.assert(!Ym(U.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Hi(U)&&!(Qh(U)&&VNe(U))&&!$de(U))return[kr(U,Tu.statementOrExpressionExpected)];if(U.flags&33554432)return[kr(U,Tu.cannotExtractAmbientBlock)];const Q=au(U);Q&&C(U,Q);let V,se=4,G;if(ne(U),m&8){const he=Fd(U,!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(Ju(he)){const Y=he.kind===260?he.parent.parent:he;if(Qr(Y,32))return(V||(V=[])).push(kr(he,Tu.cannotExtractExportedEntity)),!0}switch(he.kind){case 272:return(V||(V=[])).push(kr(he,Tu.cannotExtractImport)),!0;case 277:return(V||(V=[])).push(kr(he,Tu.cannotExtractExportedEntity)),!0;case 108:if(he.parent.kind===213){const Y=au(he);if(Y===void 0||Y.pos<t.start||Y.end>=t.start+t.length)return(V||(V=[])).push(kr(he,Tu.cannotExtractSuper)),!0}else m|=8,y=he;break;case 219:Uo(he,function Y(X){if(yD(X))m|=8,y=he;else{if(di(X)||ea(X)&&!Gs(X))return!1;Uo(X,Y)}});case 263:case 262:$i(he.parent)&&he.parent.externalModuleIndicator===void 0&&(V||(V=[])).push(kr(he,Tu.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const ye=se;switch(he.kind){case 245:se&=-5;break;case 258:se=0;break;case 241:he.parent&&he.parent.kind===258&&he.parent.finallyBlock===he&&(se=4);break;case 297:case 296:se|=1;break;default:Py(he,!1)&&(se|=3);break}switch(he.kind){case 197:case 110:m|=8,y=he;break;case 256:{const Y=he.label;(G||(G=[])).push(Y.escapedText),Uo(he,ne),G.pop();break}case 252:case 251:{const Y=he.label;Y?Or(G,Y.escapedText)||(V||(V=[])).push(kr(he,Tu.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):se&(he.kind===252?1:2)||(V||(V=[])).push(kr(he,Tu.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:m|=4;break;case 229:m|=2;break;case 253:se&4?m|=1:(V||(V=[])).push(kr(he,Tu.cannotExtractRangeContainingConditionalReturnStatement));break;default:Uo(he,ne);break}se=ye}}}function fXe(e,t,r){const i=e.getStart(r);let o=t.getEnd();return r.text.charCodeAt(o)===59&&o++,{start:i,length:o-i}}function mXe(e){if(Hi(e))return[e];if(Qh(e))return Zc(e.parent)?[e.parent]:e;if($de(e))return e}function Jde(e){return Gs(e)?GV(e.body):Bs(e)||$i(e)||L_(e)||di(e)}function _Xe(e){let t=$v(e.range)?Ua(e.range):e.range;if(e.facts&8&&!(e.facts&16)){const i=au(t);if(i){const o=Vn(t,Bs);return o?[o,i]:[i]}}const r=[];for(;;)if(t=t.parent,t.kind===169&&(t=Vn(t,i=>Bs(i)).parent),Jde(t)&&(r.push(t),t.kind===312))return r}function hXe(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,functionErrorsPerScope:l,exposedVariableDeclarations:u}}=Kde(e,t);return N.assert(!l[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),AXe(o,i[r],s[r],u,e,t)}function gXe(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,constantErrorsPerScope:l,exposedVariableDeclarations:u}}=Kde(e,t);N.assert(!l[r].length,"The extraction went missing? How?"),N.assert(u.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();const p=yt(o)?o:o.statements[0].expression;return IXe(p,i[r],s[r],e.facts,t)}function vXe(e,t){const{scopes:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=Kde(e,t);return r.map((l,u)=>{const p=yXe(l),h=bXe(l),m=Bs(l)?EXe(l):di(l)?SXe(l):TXe(l);let y,T;return m===1?(y=ig(Wo(f.Extract_to_0_in_1_scope),[p,"global"]),T=ig(Wo(f.Extract_to_0_in_1_scope),[h,"global"])):m===0?(y=ig(Wo(f.Extract_to_0_in_1_scope),[p,"module"]),T=ig(Wo(f.Extract_to_0_in_1_scope),[h,"module"])):(y=ig(Wo(f.Extract_to_0_in_1),[p,m]),T=ig(Wo(f.Extract_to_0_in_1),[h,m])),u===0&&!di(l)&&(T=ig(Wo(f.Extract_to_0_in_enclosing_scope),[h])),{functionExtraction:{description:y,errors:i[u]},constantExtraction:{description:T,errors:o[u]}}})}function Kde(e,t){const{file:r}=t,i=_Xe(e),o=OXe(e,r),s=WXe(e,i,o,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:s}}function yXe(e){return Bs(e)?"inner function":di(e)?"method":"function"}function bXe(e){return di(e)?"readonly field":"constant"}function EXe(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:I5;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:N.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function SXe(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 TXe(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function AXe(e,t,{usages:r,typeParameterUsages:i,substitutions:o},s,l,u){const p=u.program.getTypeChecker(),h=os(u.program.getCompilerOptions()),m=Fu.createImportAdder(u.file,u.program,u.preferences,u.host),y=t.getSourceFile(),T=rT(di(t)?"newMethod":"newFunction",y),A=lr(t),R=w.createIdentifier(T);let M;const C=[],O=[];let U;r.forEach((De,Me)=>{let We;if(!A){let Se=p.getTypeOfSymbolAtLocation(De.symbol,De.node);Se=p.getBaseTypeOfLiteralType(Se),We=Fu.typeToAutoImportableTypeNode(p,m,Se,t,h,1)}const At=w.createParameterDeclaration(void 0,void 0,Me,void 0,We);C.push(At),De.usage===2&&(U||(U=[])).push(De),O.push(w.createIdentifier(Me))});const Q=zo(i.values(),De=>({type:De,declaration:RXe(De,u.startPosition)})).sort(DXe),V=Q.length===0?void 0:eo(Q,({declaration:De})=>De),se=V!==void 0?V.map(De=>w.createTypeReferenceNode(De.name,void 0)):void 0;if(yt(e)&&!A){const De=p.getContextualType(e);M=p.typeToTypeNode(De,t,1)}const{body:G,returnValueProperty:ne}=CXe(e,s,U,o,!!(l.facts&1));Sp(G);let he;const ye=!!(l.facts&16);if(di(t)){const De=A?[]:[w.createModifier(123)];l.facts&32&&De.push(w.createModifier(126)),l.facts&4&&De.push(w.createModifier(134)),he=w.createMethodDeclaration(De.length?De:void 0,l.facts&2?w.createToken(42):void 0,R,void 0,V,C,M,G)}else ye&&C.unshift(w.createParameterDeclaration(void 0,void 0,"this",void 0,p.typeToTypeNode(p.getTypeAtLocation(l.thisNode),t,1),void 0)),he=w.createFunctionDeclaration(l.facts&4?[w.createToken(134)]:void 0,l.facts&2?w.createToken(42):void 0,R,V,C,M,G);const Y=_r.ChangeTracker.fromContext(u),X=($v(l.range)?Xa(l.range):l.range).end,oe=LXe(X,t);oe?Y.insertNodeBefore(u.file,oe,he,!0):Y.insertNodeAtEndOfScope(u.file,t,he),m.writeFixes(Y);const pe=[],Ce=NXe(t,l,T);ye&&O.unshift(w.createIdentifier("this"));let de=w.createCallExpression(ye?w.createPropertyAccessExpression(Ce,"call"):Ce,se,O);if(l.facts&2&&(de=w.createYieldExpression(w.createToken(42),de)),l.facts&4&&(de=w.createAwaitExpression(de)),Yde(e)&&(de=w.createJsxExpression(void 0,de)),s.length&&!U)if(N.assert(!ne,"Expected no returnValueProperty"),N.assert(!(l.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),s.length===1){const De=s[0];pe.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(ll(De.name),void 0,ll(De.type),de)],De.parent.flags)))}else{const De=[],Me=[];let We=s[0].parent.flags,At=!1;for(const je of s){De.push(w.createBindingElement(void 0,void 0,ll(je.name)));const ot=p.typeToTypeNode(p.getBaseTypeOfLiteralType(p.getTypeAtLocation(je)),t,1);Me.push(w.createPropertySignature(void 0,je.symbol.name,void 0,ot)),At=At||je.type!==void 0,We=We&je.parent.flags}const Se=At?w.createTypeLiteralNode(Me):void 0;Se&&pr(Se,1),pe.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(w.createObjectBindingPattern(De),void 0,Se,de)],We)))}else if(s.length||U){if(s.length)for(const Me of s){let We=Me.parent.flags;We&2&&(We=We&-3|1),pe.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(Me.symbol.name,void 0,Ee(Me.type))],We)))}ne&&pe.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(ne,void 0,Ee(M))],1)));const De=Xde(s,U);ne&&De.unshift(w.createShorthandPropertyAssignment(ne)),De.length===1?(N.assert(!ne,"Shouldn't have returnValueProperty here"),pe.push(w.createExpressionStatement(w.createAssignment(De[0].name,de))),l.facts&1&&pe.push(w.createReturnStatement())):(pe.push(w.createExpressionStatement(w.createAssignment(w.createObjectLiteralExpression(De),de))),ne&&pe.push(w.createReturnStatement(w.createIdentifier(ne))))}else l.facts&1?pe.push(w.createReturnStatement(de)):$v(l.range)?pe.push(w.createExpressionStatement(de)):pe.push(de);$v(l.range)?Y.replaceNodeRangeWithNodes(u.file,Ua(l.range),Xa(l.range),pe):Y.replaceNodeWithNodes(u.file,l.range,pe);const ie=Y.getChanges(),Le=($v(l.range)?Ua(l.range):l.range).getSourceFile().fileName,Ue=_O(ie,Le,T,!1);return{renameFilename:Le,renameLocation:Ue,edits:ie};function Ee(De){if(De===void 0)return;const Me=ll(De);let We=Me;for(;wS(We);)We=We.type;return qy(We)&&In(We.types,At=>At.kind===157)?Me:w.createUnionTypeNode([Me,w.createKeywordTypeNode(157)])}}function IXe(e,t,{substitutions:r},i,o){const s=o.program.getTypeChecker(),l=t.getSourceFile(),u=Fr(e)&&!di(t)&&!s.resolveName(e.name.text,e,111551,!1)&&!qi(e.name)&&!r0(e.name)?e.name.text:rT(di(t)?"newProperty":"newLocal",l),p=lr(t);let h=p||!s.isContextSensitive(e)?void 0:s.typeToTypeNode(s.getContextualType(e),t,1),m=PXe(hs(e),r);({variableType:h,initializer:m}=M(h,m)),Sp(m);const y=_r.ChangeTracker.fromContext(o);if(di(t)){N.assert(!p,"Cannot extract to a JS class");const C=[];C.push(w.createModifier(123)),i&32&&C.push(w.createModifier(126)),C.push(w.createModifier(148));const O=w.createPropertyDeclaration(C,u,void 0,h,m);let U=w.createPropertyAccessExpression(i&32?w.createIdentifier(t.name.getText()):w.createThis(),w.createIdentifier(u));Yde(e)&&(U=w.createJsxExpression(void 0,U));const K=e.pos,Q=kXe(K,t);y.insertNodeBefore(o.file,Q,O,!0),y.replaceNode(o.file,e,U)}else{const C=w.createVariableDeclaration(u,void 0,h,m),O=xXe(e,t);if(O){y.insertNodeBefore(o.file,O,C);const U=w.createIdentifier(u);y.replaceNode(o.file,e,U)}else if(e.parent.kind===244&&t===Vn(e,Jde)){const U=w.createVariableStatement(void 0,w.createVariableDeclarationList([C],2));y.replaceNode(o.file,e.parent,U)}else{const U=w.createVariableStatement(void 0,w.createVariableDeclarationList([C],2)),K=wXe(e,t);if(K.pos===0?y.insertNodeAtTopOfFile(o.file,U,!1):y.insertNodeBefore(o.file,K,U,!1),e.parent.kind===244)y.delete(o.file,e.parent);else{let Q=w.createIdentifier(u);Yde(e)&&(Q=w.createJsxExpression(void 0,Q)),y.replaceNode(o.file,e,Q)}}}const T=y.getChanges(),A=e.getSourceFile().fileName,R=_O(T,A,u,!0);return{renameFilename:A,renameLocation:R,edits:T};function M(C,O){if(C===void 0)return{variableType:C,initializer:O};if(!Os(O)&&!Gs(O)||O.typeParameters)return{variableType:C,initializer:O};const U=s.getTypeAtLocation(e),K=ah(s.getSignaturesOfType(U,0));if(!K)return{variableType:C,initializer:O};if(K.getTypeParameters())return{variableType:C,initializer:O};const Q=[];let V=!1;for(const se of O.parameters)if(se.type)Q.push(se);else{const G=s.getTypeAtLocation(se);G===s.getAnyType()&&(V=!0),Q.push(w.updateParameterDeclaration(se,se.modifiers,se.dotDotDotToken,se.name,se.questionToken,se.type||s.typeToTypeNode(G,t,1),se.initializer))}if(V)return{variableType:C,initializer:O};if(C=void 0,Gs(O))O=w.updateArrowFunction(O,Rm(e)?xE(e):void 0,O.typeParameters,Q,O.type||s.typeToTypeNode(K.getReturnType(),t,1),O.equalsGreaterThanToken,O.body);else{if(K&&K.thisParameter){const se=Kc(Q);if(!se||Ve(se.name)&&se.name.escapedText!=="this"){const G=s.getTypeOfSymbolAtLocation(K.thisParameter,e);Q.splice(0,0,w.createParameterDeclaration(void 0,void 0,"this",void 0,s.typeToTypeNode(G,t,1)))}}O=w.updateFunctionExpression(O,Rm(e)?xE(e):void 0,O.asteriskToken,O.name,O.typeParameters,Q,O.type||s.typeToTypeNode(K.getReturnType(),t,1),O.body)}return{variableType:C,initializer:O}}}function xXe(e,t){let r;for(;e!==void 0&&e!==t;){if(Oi(e)&&e.initializer===r&&Vc(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function RXe(e,t){let r;const i=e.symbol;if(i&&i.declarations)for(const o of i.declarations)(r===void 0||o.pos<r.pos)&&o.pos<t&&(r=o);return r}function DXe({type:e,declaration:t},{type:r,declaration:i}){return one(t,i,"pos",nl)||Uu(e.symbol?e.symbol.getName():"",r.symbol?r.symbol.getName():"")||nl(e.id,r.id)}function NXe(e,t,r){const i=w.createIdentifier(r);if(di(e)){const o=t.facts&32?w.createIdentifier(e.name.text):w.createThis();return w.createPropertyAccessExpression(o,i)}else return i}function CXe(e,t,r,i,o){const s=r!==void 0||t.length>0;if(Ko(e)&&!s&&i.size===0)return{body:w.createBlock(e.statements,!0),returnValueProperty:void 0};let l,u=!1;const p=w.createNodeArray(Ko(e)?e.statements.slice(0):[Hi(e)?e:w.createReturnStatement(hs(e))]);if(s||i.size){const m=jn(p,h,Hi).slice();if(s&&!o&&Hi(e)){const y=Xde(t,r);y.length===1?m.push(w.createReturnStatement(y[0].name)):m.push(w.createReturnStatement(w.createObjectLiteralExpression(y)))}return{body:w.createBlock(m,!0),returnValueProperty:l}}else return{body:w.createBlock(p,!0),returnValueProperty:void 0};function h(m){if(!u&&Im(m)&&s){const y=Xde(t,r);return m.expression&&(l||(l="__return"),y.unshift(w.createPropertyAssignment(l,nt(m.expression,h,yt)))),y.length===1?w.createReturnStatement(y[0].name):w.createReturnStatement(w.createObjectLiteralExpression(y))}else{const y=u;u=u||Bs(m)||di(m);const T=i.get(as(m).toString()),A=T?ll(T):xn(m,h,void 0);return u=y,A}}}function PXe(e,t){return t.size?r(e):e;function r(i){const o=t.get(as(i).toString());return o?ll(o):xn(i,r,void 0)}}function MXe(e){if(Bs(e)){const t=e.body;if(Ko(t))return t.statements}else{if(L_(e)||$i(e))return e.statements;if(di(e))return e.members}return et}function LXe(e,t){return In(MXe(t),r=>r.pos>=e&&Bs(r)&&!Ml(r))}function kXe(e,t){const r=t.members;N.assert(r.length>0,"Found no members");let i,o=!0;for(const s of r){if(s.pos>e)return i||r[0];if(o&&!qo(s)){if(i!==void 0)return s;o=!1}i=s}return i===void 0?N.fail():i}function wXe(e,t){N.assert(!di(t));let r;for(let i=e;i!==t;i=i.parent)Jde(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(jNe(i)){let o;for(const s of i.statements){if(s.pos>e.pos)break;o=s}return!o&&UR(i)?(N.assert(vP(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):N.checkDefined(o,"prevStatement failed to get set")}N.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function Xde(e,t){const r=Wt(e,o=>w.createShorthandPropertyAssignment(o.symbol.name)),i=Wt(t,o=>w.createShorthandPropertyAssignment(o.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function $v(e){return To(e)}function OXe(e,t){return $v(e.range)?{pos:Ua(e.range).getStart(t),end:Xa(e.range).getEnd()}:e.range}function WXe(e,t,r,i,o,s){const l=new Map,u=[],p=[],h=[],m=[],y=[],T=new Map,A=[];let R;const M=$v(e.range)?e.range.length===1&&Zc(e.range[0])?e.range[0].expression:void 0:e.range;let C;if(M===void 0){const oe=e.range,pe=Ua(oe).getStart(),Ce=Xa(oe).end;C=$c(i,pe,Ce-pe,Tu.expressionExpected)}else o.getTypeAtLocation(M).flags&147456&&(C=kr(M,Tu.uselessConstantType));for(const oe of t){u.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),p.push(new Map),h.push([]);const pe=[];C&&pe.push(C),di(oe)&&lr(oe)&&pe.push(kr(oe,Tu.cannotExtractToJSClass)),Gs(oe)&&!Ko(oe.body)&&pe.push(kr(oe,Tu.cannotExtractToExpressionArrowFunction)),m.push(pe)}const O=new Map,U=$v(e.range)?w.createBlock(e.range):e.range,K=$v(e.range)?Ua(e.range):e.range,Q=V(K);if(G(U),Q&&!$v(e.range)&&!w_(e.range)){const oe=o.getContextualType(e.range);se(oe)}if(l.size>0){const oe=new Map;let pe=0;for(let Ce=K;Ce!==void 0&&pe<t.length;Ce=Ce.parent)if(Ce===t[pe]&&(oe.forEach((de,ie)=>{u[pe].typeParameterUsages.set(ie,de)}),pe++),aj(Ce))for(const de of Dy(Ce)){const ie=o.getTypeAtLocation(de);l.has(ie.id.toString())&&oe.set(ie.id.toString(),ie)}N.assert(pe===t.length,"Should have iterated all scopes")}if(y.length){const oe=oj(t[0],t[0].parent)?t[0]:_h(t[0]);Uo(oe,ye)}for(let oe=0;oe<t.length;oe++){const pe=u[oe];if(oe>0&&(pe.usages.size>0||pe.typeParameterUsages.size>0)){const ie=$v(e.range)?e.range[0]:e.range;m[oe].push(kr(ie,Tu.cannotAccessVariablesFromNestedScopes))}e.facts&16&&di(t[oe])&&h[oe].push(kr(e.thisNode,Tu.cannotExtractFunctionsContainingThisToMethod));let Ce=!1,de;if(u[oe].usages.forEach(ie=>{ie.usage===2&&(Ce=!0,ie.symbol.flags&106500&&ie.symbol.valueDeclaration&&_p(ie.symbol.valueDeclaration,8)&&(de=ie.symbol.valueDeclaration))}),N.assert($v(e.range)||A.length===0,"No variable declarations expected if something was extracted"),Ce&&!$v(e.range)){const ie=kr(e.range,Tu.cannotWriteInExpression);h[oe].push(ie),m[oe].push(ie)}else if(de&&oe>0){const ie=kr(de,Tu.cannotExtractReadonlyPropertyInitializerOutsideConstructor);h[oe].push(ie),m[oe].push(ie)}else if(R){const ie=kr(R,Tu.cannotExtractExportedEntity);h[oe].push(ie),m[oe].push(ie)}}return{target:U,usagesPerScope:u,functionErrorsPerScope:h,constantErrorsPerScope:m,exposedVariableDeclarations:A};function V(oe){return!!Vn(oe,pe=>aj(pe)&&Dy(pe).length!==0)}function se(oe){const pe=o.getSymbolWalker(()=>(s.throwIfCancellationRequested(),!0)),{visitedTypes:Ce}=pe.walkType(oe);for(const de of Ce)de.isTypeParameter()&&l.set(de.id.toString(),de)}function G(oe,pe=1){if(Q){const Ce=o.getTypeAtLocation(oe);se(Ce)}if(Ju(oe)&&oe.symbol&&y.push(oe),Pc(oe))G(oe.left,2),G(oe.right);else if(_re(oe))G(oe.operand,2);else if(Fr(oe)||$s(oe))Uo(oe,G);else if(Ve(oe)){if(!oe.parent||Id(oe.parent)&&oe!==oe.parent.left||Fr(oe.parent)&&oe!==oe.parent.expression)return;ne(oe,pe,$h(oe))}else Uo(oe,G)}function ne(oe,pe,Ce){const de=he(oe,pe,Ce);if(de)for(let ie=0;ie<t.length;ie++){const ve=p[ie].get(de);ve&&u[ie].substitutions.set(as(oe).toString(),ve)}}function he(oe,pe,Ce){const de=Y(oe);if(!de)return;const ie=Sa(de).toString(),ve=O.get(ie);if(ve&&ve>=pe)return ie;if(O.set(ie,pe),ve){for(const Ee of u)Ee.usages.get(oe.text)&&Ee.usages.set(oe.text,{usage:pe,symbol:de,node:oe});return ie}const Le=de.getDeclarations(),Ue=Le&&In(Le,Ee=>Ee.getSourceFile()===i);if(Ue&&!rO(r,Ue.getStart(),Ue.end)){if(e.facts&2&&pe===2){const Ee=kr(oe,Tu.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const De of h)De.push(Ee);for(const De of m)De.push(Ee)}for(let Ee=0;Ee<t.length;Ee++){const De=t[Ee];if(o.resolveName(de.name,De,de.flags,!1)!==de&&!p[Ee].has(ie)){const We=X(de.exportSymbol||de,De,Ce);if(We)p[Ee].set(ie,We);else if(Ce){if(!(de.flags&262144)){const At=kr(oe,Tu.typeWillNotBeVisibleInTheNewScope);h[Ee].push(At),m[Ee].push(At)}}else u[Ee].usages.set(oe.text,{usage:pe,symbol:de,node:oe})}}return ie}}function ye(oe){if(oe===e.range||$v(e.range)&&e.range.includes(oe))return;const pe=Ve(oe)?Y(oe):o.getSymbolAtLocation(oe);if(pe){const Ce=In(y,de=>de.symbol===pe);if(Ce)if(Oi(Ce)){const de=Ce.symbol.id.toString();T.has(de)||(A.push(Ce),T.set(de,!0))}else R=R||Ce}Uo(oe,ye)}function Y(oe){return oe.parent&&np(oe.parent)&&oe.parent.name===oe?o.getShorthandAssignmentValueSymbol(oe.parent):o.getSymbolAtLocation(oe)}function X(oe,pe,Ce){if(!oe)return;const de=oe.getDeclarations();if(de&&de.some(ve=>ve.parent===pe))return w.createIdentifier(oe.name);const ie=X(oe.parent,pe,Ce);if(ie!==void 0)return Ce?w.createQualifiedName(ie,w.createIdentifier(oe.name)):w.createPropertyAccessExpression(ie,oe.name)}}function FXe(e){return Vn(e,t=>t.parent&&VNe(t)&&!mr(t.parent))}function VNe(e){const{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 jNe(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function Yde(e){return $de(e)||(sg(e)||GS(e)||t1(e))&&(sg(e.parent)||t1(e.parent))}function $de(e){return Na(e)&&e.parent&&w_(e.parent)}var ND,CD,PD,Tu,Qde,zXe=I({"src/services/refactors/extractSymbol.ts"(){si(),xh(),ND="Extract Symbol",CD={name:"Extract Constant",description:Wo(f.Extract_constant),kind:"refactor.extract.constant"},PD={name:"Extract Function",description:Wo(f.Extract_function),kind:"refactor.extract.function"},cg(ND,{kinds:[CD.kind,PD.kind],getEditsForAction:GNe,getAvailableActions:BNe}),(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={})),Qde=(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))(Qde||{})}}),UNe={};ee(UNe,{Messages:()=>Tu,RangeFacts:()=>Qde,getRangeToExtract:()=>qde,getRefactorActionsToExtractSymbol:()=>BNe,getRefactorEditsToExtractSymbol:()=>GNe});var BXe=I({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){zXe()}}),J5,gY,vY,GXe=I({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){si(),xh(),J5="Generate 'get' and 'set' accessors",gY=Wo(f.Generate_get_and_set_accessors),vY={name:J5,description:gY,kind:"refactor.rewrite.property.generateAccessors"},cg(J5,{kinds:[vY.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;const i=Fu.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);N.assert(i&&!Ug(i),"Expected applicable refactor info");const o=Fu.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(!o)return;const s=t.file.fileName,l=i.renameAccessor?i.accessorName:i.fieldName,p=(Ve(l)?0:-1)+_O(o,s,l.text,Ao(i.declaration));return{renameFilename:s,renameLocation:p,edits:o}},getAvailableActions(e){if(!e.endPosition)return et;const t=Fu.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?Ug(t)?e.preferences.provideRefactorNotApplicableReason?[{name:J5,description:gY,actions:[{...vY,notApplicableReason:t.error}]}]:et:[{name:J5,description:gY,actions:[vY]}]:et}})}}),VXe={},jXe=I({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){GXe()}});function UXe(e){const t=HNe(e);if(t&&!Ug(t))return{renameFilename:void 0,renameLocation:void 0,edits:_r.ChangeTracker.with(e,i=>qXe(e.file,i,t.declaration,t.returnTypeNode))}}function HXe(e){const t=HNe(e);return t?Ug(t)?e.preferences.provideRefactorNotApplicableReason?[{name:K5,description:yY,actions:[{...X5,notApplicableReason:t.error}]}]:et:[{name:K5,description:yY,actions:[X5]}]:et}function qXe(e,t,r,i){const o=vs(r,22,e),s=Gs(r)&&o===void 0,l=s?Ua(r.parameters):o;l&&(s&&(t.insertNodeBefore(e,l,w.createToken(21)),t.insertNodeAfter(e,l,w.createToken(22))),t.insertNodeAt(e,l.end,i,{prefix:": "}))}function HNe(e){if(lr(e.file)||!M0(X5.kind,e.kind))return;const t=Vd(e.file,e.startPosition),r=Vn(t,l=>Ko(l)||l.parent&&Gs(l.parent)&&(l.kind===39||l.parent.body===l)?"quit":JXe(l));if(!r||!r.body||r.type)return{error:Wo(f.Return_type_must_be_inferred_from_a_function)};const i=e.program.getTypeChecker(),o=KXe(i,r);if(!o)return{error:Wo(f.Could_not_determine_function_return_type)};const s=i.typeToTypeNode(o,r,1);if(s)return{declaration:r,returnTypeNode:s}}function JXe(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function KXe(e,t){if(e.isImplementationOfOverload(t)){const i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(eo(i,o=>o.getReturnType()))}const r=e.getSignatureFromDeclaration(t);if(r)return e.getReturnTypeOfSignature(r)}var K5,yY,X5,XXe=I({"src/services/refactors/inferFunctionReturnType.ts"(){si(),xh(),K5="Infer function return type",yY=Wo(f.Infer_function_return_type),X5={name:K5,description:yY,kind:"refactor.rewrite.function.returnType"},cg(K5,{kinds:[X5.kind],getEditsForAction:UXe,getAvailableActions:HXe})}}),YXe={},$Xe=I({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){XXe()}}),RI={};ee(RI,{addExportToChanges:()=>Dde,addExports:()=>Ade,addNewFileToTsconfig:()=>yde,addOrRemoveBracesToArrowFunction:()=>dKe,containsJsx:()=>Cde,convertArrowFunctionOrFunctionExpression:()=>TKe,convertParamsToDestructuredObject:()=>VKe,convertStringOrTemplateLiteral:()=>QKe,convertToOptionalChainExpression:()=>dXe,createNewFileName:()=>Nde,createOldFileImportsFromTargetFile:()=>Tde,deleteMovedStatements:()=>F5,deleteUnusedImports:()=>Ide,deleteUnusedOldImports:()=>bde,doChangeNamedToNamespaceOrDefault:()=>ZDe,extractSymbol:()=>UNe,filterImport:()=>NO,forEachImportInStatement:()=>DO,generateGetAccessorAndSetAccessor:()=>VXe,getApplicableRefactors:()=>cJe,getEditsForRefactor:()=>uJe,getStatementsToMove:()=>CO,getTopLevelDeclarationStatement:()=>iY,getUsageInfo:()=>B5,inferFunctionReturnType:()=>YXe,isRefactorErrorInfo:()=>Ug,isTopLevelDeclaration:()=>G5,makeImportOrRequire:()=>z5,moduleSpecifierFromImport:()=>RO,nameOfTopLevelDeclaration:()=>Rde,refactorKindBeginsWith:()=>M0,registerRefactor:()=>cg,updateImportsInOtherFiles:()=>Ede});var xh=I({"src/services/_namespaces/ts.refactor.ts"(){JDe(),gJe(),SJe(),CJe(),PJe(),LJe(),WJe(),iKe(),pKe(),AKe(),jKe(),ZKe(),pXe(),BXe(),jXe(),$Xe()}});function qNe(e,t,r,i){const o=Zde(e,t,r,i);N.assert(o.spans.length%3===0);const s=o.spans,l=[];for(let u=0;u<s.length;u+=3)l.push({textSpan:vu(s[u],s[u+1]),classificationType:s[u+2]});return l}function Zde(e,t,r,i){return{spans:QXe(e,r,i,t),endOfLineState:0}}function QXe(e,t,r,i){const o=[];return e&&t&&ZXe(e,t,r,(l,u,p)=>{o.push(l.getStart(t),l.getWidth(t),(u+1<<8)+p)},i),o}function ZXe(e,t,r,i,o){const s=e.getTypeChecker();let 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||!a4(r,p.pos,p.getFullWidth())||p.getFullWidth()===0)return;const h=l;if((sg(p)||GS(p))&&(l=!0),bP(p)&&(l=!1),Ve(p)&&!l&&!rYe(p)&&!tP(p.escapedText)){let m=s.getSymbolAtLocation(p);if(m){m.flags&2097152&&(m=s.getAliasedSymbol(m));let y=eYe(m,ZS(p));if(y!==void 0){let T=0;p.parent&&($a(p.parent)||rpe.get(p.parent.kind)===y)&&p.parent.name===p&&(T=1),y===6&&KNe(p)&&(y=9),y=tYe(s,p,y);const A=m.valueDeclaration;if(A){const R=n0(A),M=Cv(A);R&256&&(T|=2),R&1024&&(T|=4),y!==0&&y!==2&&(R&8||M&2||m.getFlags()&8)&&(T|=8),(y===7||y===10)&&nYe(A,t)&&(T|=32),e.isSourceFileDefaultLibrary(A.getSourceFile())&&(T|=16)}else m.declarations&&m.declarations.some(R=>e.isSourceFileDefaultLibrary(R.getSourceFile()))&&(T|=16);i(p,y,T)}}}Uo(p,u),l=h}u(t)}function eYe(e,t){const 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&&$a(i)&&(i=JNe(i)),i&&rpe.get(i.kind)}function tYe(e,t,r){if(r===7||r===9||r===6){const i=e.getTypeAtLocation(t);if(i){const 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)||iYe(t))return r===9?11:10}}return r}function nYe(e,t){return $a(e)&&(e=JNe(e)),Oi(e)?(!$i(e.parent.parent.parent)||r1(e.parent))&&e.getSourceFile()===t:Tc(e)?!$i(e.parent)&&e.getSourceFile()===t:!1}function JNe(e){for(;;)if($a(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function rYe(e){const t=e.parent;return t&&(Eh(t)||tp(t)||Yy(t))}function iYe(e){for(;KNe(e);)e=e.parent;return sa(e.parent)&&e.parent.expression===e}function KNe(e){return Id(e.parent)&&e.parent.right===e||Fr(e.parent)&&e.parent.name===e}var epe,tpe,npe,rpe,XNe=I({"src/services/classifier2020.ts"(){si(),epe=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(epe||{}),tpe=(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))(tpe||{}),npe=(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))(npe||{}),rpe=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 YNe(e,t,r,i){const o=sL(e)?new AY(e,t,r):e===80?new xY(80,t,r):e===81?new RY(81,t,r):new spe(e,t,r);return o.parent=i,o.flags=i.flags&101441536,o}function oYe(e,t){if(!sL(e.kind))return et;const r=[];if(S4(e))return e.forEachChild(l=>{r.push(l)}),r;Qu.setText((t||e.getSourceFile()).text);let i=e.pos;const o=l=>{Y5(r,i,l.pos,e),r.push(l),i=l.end},s=l=>{Y5(r,i,l.pos,e),r.push(aYe(l,e)),i=l.end};return Xe(e.jsDoc,o),i=e.pos,e.forEachChild(o,s),Y5(r,i,e.end,e),Qu.setText(void 0),r}function Y5(e,t,r,i){for(Qu.resetTokenState(t);t<r;){const o=Qu.scan(),s=Qu.getTokenEnd();if(s<=r){if(o===80){if(Noe(i))continue;N.fail(`Did not expect ${N.formatSyntaxKind(i.kind)} to have an Identifier in its trivia`)}e.push(YNe(o,t,s,i))}if(t=s,o===1)break}}function aYe(e,t){const r=YNe(358,e.pos,e.end,t);r._children=[];let i=e.pos;for(const o of e)Y5(r._children,i,o.pos,t),r._children.push(o),i=o.end;return Y5(r._children,i,e.end,t),r}function $Ne(e){return a0(e).some(t=>t.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function bY(e,t){if(!e)return et;let r=k0.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some($Ne))){const i=new Set;for(const o of e){const s=QNe(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 $5(e,t){if(!e)return et;let r=k0.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some($Ne))){const i=new Set;for(const o of e){const s=QNe(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(AD(),r))}}return r}function QNe(e,t,r){var i;const o=((i=t.parent)==null?void 0:i.kind)===176?t.parent.parent:t.parent;if(!o)return;const s=mc(t);return Ht(RC(o),l=>{const u=e.getTypeAtLocation(l),p=s&&u.symbol?e.getTypeOfSymbol(u.symbol):u,h=e.getPropertyOfType(p,t.symbol.name);return h?r(h):void 0})}function sYe(){return{getNodeConstructor:()=>AY,getTokenConstructor:()=>spe,getIdentifierConstructor:()=>xY,getPrivateIdentifierConstructor:()=>RY,getSourceFileConstructor:()=>iCe,getSymbolConstructor:()=>tCe,getTypeConstructor:()=>nCe,getSignatureConstructor:()=>rCe,getSourceMapSourceConstructor:()=>oCe}}function OO(e){let t=!0;for(const i in e)if(Is(e,i)&&!ZNe(i)){t=!1;break}if(t)return e;const r={};for(const i in e)if(Is(e,i)){const o=ZNe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[o]=e[i]}return r}function ZNe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function WO(e){return e?Wt(e,t=>t.text).join(""):""}function Q5(){return{target:1,jsx:1}}function EY(){return Fu.getSupportedErrorCodes()}function eCe(e,t,r){e.version=r,e.scriptSnapshot=t}function Z5(e,t,r,i,o,s){const l=iw(e,ED(t),r,o,s);return eCe(l,t,i),l}function SY(e,t,r,i,o){if(i&&r!==e.version){let l;const u=i.span.start!==0?e.text.substr(0,i.span.start):"",p=Kl(i.span)!==e.text.length?e.text.substr(Kl(i.span)):"";if(i.newLength===0)l=u&&p?u+p:u||p;else{const m=t.getText(i.span.start,i.span.start+i.newLength);l=u&&p?u+m+p:u?u+m:m+p}const h=kH(e,l,i,o);return eCe(h,t,r),h.nameTable=void 0,e!==h&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),h}const s={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return Z5(e.fileName,t,s,r,!0,e.scriptKind)}function ipe(e,t=Gue(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;const s=new aCe(e);let l,u,p=0;const h=e.getCancellationToken?new lCe(e.getCancellationToken()):sCe,m=e.getCurrentDirectory();soe((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function y(L){e.log&&e.log(L)}const T=AR(e),A=Mu(T),R=tde({useCaseSensitiveFileNames:()=>T,getCurrentDirectory:()=>m,getProgram:U,fileExists:ia(e,e.fileExists),readFile:ia(e,e.readFile),getDocumentPositionMapper:ia(e,e.getDocumentPositionMapper),getSourceFileLike:ia(e,e.getSourceFileLike),log:y});function M(L){const me=l.getSourceFile(L);if(!me){const J=new Error(`Could not find source file: '${L}'.`);throw J.ProgramFiles=l.getSourceFiles().map(fe=>fe.fileName),J}return me}function C(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():O()}function O(){var L,me,J;if(N.assert(o!==2),e.getProjectVersion){const ko=e.getProjectVersion();if(ko){if(u===ko&&!((L=e.hasChangedAutomaticTypeDirectiveNames)!=null&&L.call(e)))return;u=ko}}const fe=e.getTypeRootsVersion?e.getTypeRootsVersion():0;p!==fe&&(y("TypeRoots version has changed; provide new program"),l=void 0,p=fe);const Be=e.getScriptFileNames().slice(),ke=e.getCompilationSettings()||Q5(),Tt=e.hasInvalidatedResolutions||qm,kt=ia(e,e.hasInvalidatedLibResolutions)||qm,en=ia(e,e.hasChangedAutomaticTypeDirectiveNames),En=(me=e.getProjectReferences)==null?void 0:me.call(e);let Gn,qn={getSourceFile:Fs,getSourceFileByPath:Ql,getCancellationToken:()=>h,getCanonicalFileName:A,useCaseSensitiveFileNames:()=>T,getNewLine:()=>Fv(ke),getDefaultLibFileName:ko=>e.getDefaultLibFileName(ko),writeFile:Ya,getCurrentDirectory:()=>m,fileExists:ko=>e.fileExists(ko),readFile:ko=>e.readFile&&e.readFile(ko),getSymlinkCache:ia(e,e.getSymlinkCache),realpath:ia(e,e.realpath),directoryExists:ko=>Km(ko,e),getDirectories:ko=>e.getDirectories?e.getDirectories(ko):[],readDirectory:(ko,cs,Vs,gl,cu)=>(N.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(ko,cs,Vs,gl,cu)),onReleaseOldSourceFile:Nn,onReleaseParsedCommandLine:xo,hasInvalidatedResolutions:Tt,hasInvalidatedLibResolutions:kt,hasChangedAutomaticTypeDirectiveNames:en,trace:ia(e,e.trace),resolveModuleNames:ia(e,e.resolveModuleNames),getModuleResolutionCache:ia(e,e.getModuleResolutionCache),createHash:ia(e,e.createHash),resolveTypeReferenceDirectives:ia(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:ia(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:ia(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:ia(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:ia(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Ri,jsDocParsingMode:e.jsDocParsingMode};const Pi=qn.getSourceFile,{getSourceFileWithCache:xi}=Fw(qn,ko=>il(ko,m,A),(...ko)=>Pi.call(qn,...ko));qn.getSourceFile=xi,(J=e.setCompilerHost)==null||J.call(e,qn);const ir={useCaseSensitiveFileNames:T,fileExists:ko=>qn.fileExists(ko),readFile:ko=>qn.readFile(ko),directoryExists:ko=>qn.directoryExists(ko),getDirectories:ko=>qn.getDirectories(ko),realpath:qn.realpath,readDirectory:(...ko)=>qn.readDirectory(...ko),trace:qn.trace,getCurrentDirectory:qn.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:Ya},Vr=t.getKeyForCompilationSettings(ke);let vo=new Set;if(bJ(l,Be,ke,(ko,cs)=>e.getScriptVersion(cs),ko=>qn.fileExists(ko),Tt,kt,en,Ri,En)){qn=void 0,Gn=void 0,vo=void 0;return}l=d7({rootNames:Be,options:ke,host:qn,oldProgram:l,projectReferences:En}),qn=void 0,Gn=void 0,vo=void 0,R.clearCache(),l.getTypeChecker();return;function Ri(ko){const cs=il(ko,m,A),Vs=Gn==null?void 0:Gn.get(cs);if(Vs!==void 0)return Vs||void 0;const gl=e.getParsedCommandLine?e.getParsedCommandLine(ko):Jr(ko);return(Gn||(Gn=new Map)).set(cs,gl||!1),gl}function Jr(ko){const cs=Fs(ko,100);if(cs)return cs.path=il(ko,m,A),cs.resolvedPath=cs.path,cs.originalFileName=cs.fileName,cw(cs,ir,go(ai(ko),m),void 0,go(ko,m))}function xo(ko,cs,Vs){var gl;e.getParsedCommandLine?(gl=e.onReleaseParsedCommandLine)==null||gl.call(e,ko,cs,Vs):cs&&Nn(cs.sourceFile,Vs)}function Nn(ko,cs){const Vs=t.getKeyForCompilationSettings(cs);t.releaseDocumentWithKey(ko.resolvedPath,Vs,ko.scriptKind,ko.impliedNodeFormat)}function Fs(ko,cs,Vs,gl){return Ql(ko,il(ko,m,A),cs,Vs,gl)}function Ql(ko,cs,Vs,gl,cu){N.assert(qn,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const ho=e.getScriptSnapshot(ko);if(!ho)return;const da=aX(ko,e),uu=e.getScriptVersion(ko);if(!cu){const Ts=l&&l.getSourceFileByPath(cs);if(Ts){if(da===Ts.scriptKind||vo.has(Ts.resolvedPath))return t.updateDocumentWithKey(ko,cs,e,Vr,ho,uu,da,Vs);t.releaseDocumentWithKey(Ts.resolvedPath,t.getKeyForCompilationSettings(l.getCompilerOptions()),Ts.scriptKind,Ts.impliedNodeFormat),vo.add(Ts.resolvedPath)}}return t.acquireDocumentWithKey(ko,cs,e,Vr,ho,uu,da,Vs)}}function U(){if(o===2){N.assert(l===void 0);return}return C(),l}function K(){var L;return(L=e.getPackageJsonAutoImportProvider)==null?void 0:L.call(e)}function Q(L,me){const J=l.getTypeChecker(),fe=Be();if(!fe)return!1;for(const Tt of L)for(const kt of Tt.references){const en=ke(kt);if(N.assertIsDefined(en),me.has(kt)||Ws.isDeclarationOfSymbol(en,fe)){me.add(kt),kt.isDefinition=!0;const En=a5(kt,R,ia(e,e.fileExists));En&&me.add(En)}else kt.isDefinition=!1}return!0;function Be(){for(const Tt of L)for(const kt of Tt.references){if(me.has(kt)){const En=ke(kt);return N.assertIsDefined(En),J.getSymbolAtLocation(En)}const en=a5(kt,R,ia(e,e.fileExists));if(en&&me.has(en)){const En=ke(en);if(En)return J.getSymbolAtLocation(En)}}}function ke(Tt){const kt=l.getSourceFile(Tt.fileName);if(!kt)return;const en=Vd(kt,Tt.textSpan.start);return Ws.Core.getAdjustedNode(en,{use:Ws.FindReferencesUse.References})}}function V(){if(l){const L=t.getKeyForCompilationSettings(l.getCompilerOptions());Xe(l.getSourceFiles(),me=>t.releaseDocumentWithKey(me.resolvedPath,L,me.scriptKind,me.impliedNodeFormat)),l=void 0}}function se(){V(),e=void 0}function G(L){return C(),l.getSyntacticDiagnostics(M(L),h).slice()}function ne(L){C();const me=M(L),J=l.getSemanticDiagnostics(me,h);if(!Rf(l.getCompilerOptions()))return J.slice();const fe=l.getDeclarationDiagnostics(me,h);return[...J,...fe]}function he(L){return C(),FX(M(L),l,h)}function ye(){return C(),[...l.getOptionsDiagnostics(h),...l.getGlobalDiagnostics(h)]}function Y(L,me,J=Mf,fe){const Be={...J,includeCompletionsForModuleExports:J.includeCompletionsForModuleExports||J.includeExternalModuleExports,includeCompletionsWithInsertText:J.includeCompletionsWithInsertText||J.includeInsertTextCompletions};return C(),LI.getCompletionsAtPosition(e,l,y,M(L),me,Be,J.triggerCharacter,J.triggerKind,h,fe&&kc.getFormatContext(fe,e),J.includeSymbol)}function X(L,me,J,fe,Be,ke=Mf,Tt){return C(),LI.getCompletionEntryDetails(l,y,M(L),me,{name:J,source:Be,data:Tt},e,fe&&kc.getFormatContext(fe,e),ke,h)}function oe(L,me,J,fe,Be=Mf){return C(),LI.getCompletionEntrySymbol(l,y,M(L),me,{name:J,source:fe},e,Be)}function pe(L,me){C();const J=M(L),fe=Vd(J,me);if(fe===J)return;const Be=l.getTypeChecker(),ke=Ce(fe),Tt=dYe(ke,Be);if(!Tt||Be.isUnknownSymbol(Tt)){const qn=de(J,ke,me)?Be.getTypeAtLocation(ke):void 0;return qn&&{kind:"",kindModifiers:"",textSpan:Dd(ke,J),displayParts:Be.runWithCancellationToken(h,Pi=>fO(Pi,qn,eT(ke))),documentation:qn.symbol?qn.symbol.getDocumentationComment(Be):void 0,tags:qn.symbol?qn.symbol.getJsDocTags(Be):void 0}}const{symbolKind:kt,displayParts:en,documentation:En,tags:Gn}=Be.runWithCancellationToken(h,qn=>Qv.getSymbolDisplayPartsDocumentationAndSymbolKind(qn,Tt,J,eT(ke),ke));return{kind:kt,kindModifiers:Qv.getSymbolModifiers(Be,Tt),textSpan:Dd(ke,J),displayParts:en,documentation:En,tags:Gn}}function Ce(L){return $E(L.parent)&&L.pos===L.parent.pos?L.parent.expression:BR(L.parent)&&L.pos===L.parent.pos||oR(L.parent)&&L.parent.name===L||Qm(L.parent)?L.parent:L}function de(L,me,J){switch(me.kind){case 80:return!RK(me)&&!DK(me)&&!Pg(me.parent);case 211:case 166:return!qv(L,J);case 110:case 197:case 108:case 202:return!0;case 236:return oR(me);default:return!1}}function ie(L,me,J,fe){return C(),FD.getDefinitionAtPosition(l,M(L),me,J,fe)}function ve(L,me){return C(),FD.getDefinitionAndBoundSpan(l,M(L),me)}function Le(L,me){return C(),FD.getTypeDefinitionAtPosition(l.getTypeChecker(),M(L),me)}function Ue(L,me){return C(),Ws.getImplementationsAtPosition(l,h,l.getSourceFiles(),M(L),me)}function Ee(L,me,J){const fe=ha(L);N.assert(J.some(Tt=>ha(Tt)===fe)),C();const Be=eo(J,Tt=>l.getSourceFile(Tt)),ke=M(L);return D5.getDocumentHighlights(l,h,ke,me,Be)}function De(L,me,J,fe,Be){C();const ke=M(L),Tt=q7(Vd(ke,me));if(xz.nodeIsEligibleForRename(Tt))if(Ve(Tt)&&(k_(Tt.parent)||e1(Tt.parent))&&SR(Tt.escapedText)){const{openingElement:kt,closingElement:en}=Tt.parent.parent;return[kt,en].map(En=>{const Gn=Dd(En.tagName,ke);return{fileName:ke.fileName,textSpan:Gn,...Ws.toContextSpan(Gn,ke,En.parent)}})}else{const kt=lf(ke,Be??Mf),en=typeof Be=="boolean"?Be:Be==null?void 0:Be.providePrefixAndSuffixTextForRename;return We(Tt,me,{findInStrings:J,findInComments:fe,providePrefixAndSuffixTextForRename:en,use:Ws.FindReferencesUse.Rename},(En,Gn,qn)=>Ws.toRenameLocation(En,Gn,qn,en||!1,kt))}}function Me(L,me){return C(),We(Vd(M(L),me),me,{use:Ws.FindReferencesUse.References},Ws.toReferenceEntry)}function We(L,me,J,fe){C();const Be=J&&J.use===Ws.FindReferencesUse.Rename?l.getSourceFiles().filter(ke=>!l.isSourceFileDefaultLibrary(ke)):l.getSourceFiles();return Ws.findReferenceOrRenameEntries(l,h,Be,L,me,J,fe)}function At(L,me){return C(),Ws.findReferencedSymbols(l,h,l.getSourceFiles(),M(L),me)}function Se(L){return C(),Ws.Core.getReferencesForFileName(L,l,l.getSourceFiles()).map(Ws.toReferenceEntry)}function je(L,me,J,fe=!1,Be=!1){C();const ke=J?[M(J)]:l.getSourceFiles();return SDe(ke,l.getTypeChecker(),h,L,me,fe,Be)}function ot(L,me,J){C();const fe=M(L),Be=e.getCustomTransformers&&e.getCustomTransformers();return Yle(l,fe,!!me,h,Be,J)}function Bt(L,me,{triggerReason:J}=Mf){C();const fe=M(L);return ZO.getSignatureHelpItems(l,fe,me,J,h)}function vt(L){return s.getCurrentSourceFile(L)}function $e(L,me,J){const fe=s.getCurrentSourceFile(L),Be=Vd(fe,me);if(Be===fe)return;switch(Be.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=Be;for(;;)if(vD(ke)||Yce(ke))ke=ke.parent;else if(CK(ke))if(ke.parent.parent.kind===267&&ke.parent.parent.body===ke.parent)ke=ke.parent.parent.name;else break;else break;return pc(ke.getStart(),Be.getEnd())}function It(L,me){const J=s.getCurrentSourceFile(L);return NY.spanInSourceFileAtLocation(J,me)}function tn(L){return xDe(s.getCurrentSourceFile(L),h)}function rn(L){return RDe(s.getCurrentSourceFile(L),h)}function Mn(L,me,J){return C(),(J||"original")==="2020"?qNe(l,h,M(L),me):zue(l.getTypeChecker(),h,M(L),l.getClassifiableNames(),me)}function $n(L,me,J){return C(),(J||"original")==="original"?PX(l.getTypeChecker(),h,M(L),l.getClassifiableNames(),me):Zde(l,h,M(L),me)}function gn(L,me){return Bue(h,s.getCurrentSourceFile(L),me)}function Qt(L,me){return MX(h,s.getCurrentSourceFile(L),me)}function Yt(L){const me=s.getCurrentSourceFile(L);return IQ.collectElements(me,h)}const vi=new Map(Object.entries({19:20,21:22,23:24,32:30}));vi.forEach((L,me)=>vi.set(L.toString(),Number(me)));function so(L,me){const J=s.getCurrentSourceFile(L),fe=bD(J,me),Be=fe.getStart(J)===me?vi.get(fe.kind.toString()):void 0,ke=Be&&vs(fe.parent,Be,J);return ke?[Dd(fe,J),Dd(ke,J)].sort((Tt,kt)=>Tt.start-kt.start):et}function Wi(L,me,J){let fe=Xs();const Be=OO(J),ke=s.getCurrentSourceFile(L);y("getIndentationAtPosition: getCurrentSourceFile: "+(Xs()-fe)),fe=Xs();const Tt=kc.SmartIndenter.getIndentation(me,ke,Be);return y("getIndentationAtPosition: computeIndentation : "+(Xs()-fe)),Tt}function Co(L,me,J,fe){const Be=s.getCurrentSourceFile(L);return kc.formatSelection(me,J,Be,kc.getFormatContext(OO(fe),e))}function Ln(L,me){return kc.formatDocument(s.getCurrentSourceFile(L),kc.getFormatContext(OO(me),e))}function Ci(L,me,J,fe){const Be=s.getCurrentSourceFile(L),ke=kc.getFormatContext(OO(fe),e);if(!qv(Be,me))switch(J){case"{":return kc.formatOnOpeningCurly(me,Be,ke);case"}":return kc.formatOnClosingCurly(me,Be,ke);case";":return kc.formatOnSemicolon(me,Be,ke);case` +`:return kc.formatOnEnter(me,Be,ke)}return[]}function Ar(L,me,J,fe,Be,ke=Mf){C();const Tt=M(L),kt=pc(me,J),en=kc.getFormatContext(Be,e);return Do(SE(fe,xv,nl),En=>(h.throwIfCancellationRequested(),Fu.getFixes({errorCode:En,sourceFile:Tt,span:kt,program:l,host:e,cancellationToken:h,formatContext:en,preferences:ke})))}function sn(L,me,J,fe=Mf){C(),N.assert(L.type==="file");const Be=M(L.fileName),ke=kc.getFormatContext(J,e);return Fu.getAllFixes({fixId:me,sourceFile:Be,program:l,host:e,cancellationToken:h,formatContext:ke,preferences:fe})}function tt(L,me,J=Mf){C(),N.assert(L.type==="file");const fe=M(L.fileName),Be=kc.getFormatContext(me,e),ke=L.mode??(L.skipDestructiveCodeActions?"SortAndCombine":"All");return Cm.organizeImports(fe,Be,e,l,J,ke)}function zt(L,me,J,fe=Mf){return jue(U(),L,me,e,kc.getFormatContext(J,e),fe,R)}function Dn(L,me){const J=typeof L=="string"?me:L;return To(J)?Promise.all(J.map(fe=>ci(fe))):ci(J)}function ci(L){const me=J=>il(J,m,A);return N.assertEqual(L.type,"install package"),e.installPackage?e.installPackage({fileName:me(L.file),packageName:L.packageName}):Promise.reject("Host does not implement `installPackage`")}function yi(L,me,J,fe){const Be=fe?kc.getFormatContext(fe,e).options:void 0;return k0.getDocCommentTemplateAtPosition(Xv(e,Be),s.getCurrentSourceFile(L),me,J)}function Qi(L,me,J){if(J===60)return!1;const fe=s.getCurrentSourceFile(L);if(SI(fe,me))return!1;if(rue(fe,me))return J===123;if(OK(fe,me))return!1;switch(J){case 39:case 34:case 96:return!qv(fe,me)}return!0}function Io(L,me){const J=s.getCurrentSourceFile(L),fe=Ic(me,J);if(!fe)return;const Be=fe.kind===32&&k_(fe.parent)?fe.parent.parent:KA(fe)&&sg(fe.parent)?fe.parent:void 0;if(Be&&ft(Be))return{newText:`</${Be.openingElement.tagName.getText(J)}>`};const ke=fe.kind===32&&lI(fe.parent)?fe.parent.parent:KA(fe)&&t1(fe.parent)?fe.parent:void 0;if(ke&&Ct(ke))return{newText:"</>"}}function fa(L,me){const J=s.getCurrentSourceFile(L),fe=Ic(me,J);if(!fe||fe.parent.kind===312)return;const Be="[a-zA-Z0-9:\\-\\._$]*";if(t1(fe.parent.parent)){const ke=fe.parent.parent.openingFragment,Tt=fe.parent.parent.closingFragment;if(eR(ke)||eR(Tt))return;const kt=ke.getStart(J)+1,en=Tt.getStart(J)+2;return me!==kt&&me!==en?void 0:{ranges:[{start:kt,length:0},{start:en,length:0}],wordPattern:Be}}else{const ke=Vn(fe.parent,xi=>!!(k_(xi)||e1(xi)));if(!ke)return;N.assert(k_(ke)||e1(ke),"tag should be opening or closing element");const Tt=ke.parent.openingElement,kt=ke.parent.closingElement,en=Tt.tagName.getStart(J),En=Tt.tagName.end,Gn=kt.tagName.getStart(J),qn=kt.tagName.end;return en===Tt.getStart(J)||Gn===kt.getStart(J)||En===Tt.getEnd()||qn===kt.getEnd()||!(en<=me&&me<=En||Gn<=me&&me<=qn)||Tt.tagName.getText(J)!==kt.tagName.getText(J)?void 0:{ranges:[{start:en,length:En-en},{start:Gn,length:qn-Gn}],wordPattern:Be}}}function ka(L,me){return{lineStarts:L.getLineStarts(),firstLine:L.getLineAndCharacterOfPosition(me.pos).line,lastLine:L.getLineAndCharacterOfPosition(me.end).line}}function Tn(L,me,J){const fe=s.getCurrentSourceFile(L),Be=[],{lineStarts:ke,firstLine:Tt,lastLine:kt}=ka(fe,me);let en=J||!1,En=Number.MAX_VALUE;const Gn=new Map,qn=new RegExp(/\S/),Pi=X7(fe,ke[Tt]),xi=Pi?"{/*":"//";for(let ir=Tt;ir<=kt;ir++){const Vr=fe.text.substring(ke[ir],fe.getLineEndOfPosition(ke[ir])),vo=qn.exec(Vr);vo&&(En=Math.min(En,vo.index),Gn.set(ir.toString(),vo.index),Vr.substr(vo.index,xi.length)!==xi&&(en=J===void 0||J))}for(let ir=Tt;ir<=kt;ir++){if(Tt!==kt&&ke[ir]===me.end)continue;const Vr=Gn.get(ir.toString());Vr!==void 0&&(Pi?Be.push(...wn(L,{pos:ke[ir]+En,end:fe.getLineEndOfPosition(ke[ir])},en,Pi)):en?Be.push({newText:xi,span:{length:0,start:ke[ir]+En}}):fe.text.substr(ke[ir]+Vr,xi.length)===xi&&Be.push({newText:"",span:{length:xi.length,start:ke[ir]+Vr}}))}return Be}function wn(L,me,J,fe){var Be;const ke=s.getCurrentSourceFile(L),Tt=[],{text:kt}=ke;let en=!1,En=J||!1;const Gn=[];let{pos:qn}=me;const Pi=fe!==void 0?fe:X7(ke,qn),xi=Pi?"{/*":"/*",ir=Pi?"*/}":"*/",Vr=Pi?"\\{\\/\\*":"\\/\\*",vo=Pi?"\\*\\/\\}":"\\*\\/";for(;qn<=me.end;){const Mi=kt.substr(qn,xi.length)===xi?xi.length:0,Ri=qv(ke,qn+Mi);if(Ri)Pi&&(Ri.pos--,Ri.end++),Gn.push(Ri.pos),Ri.kind===3&&Gn.push(Ri.end),en=!0,qn=Ri.end+1;else{const Jr=kt.substring(qn,me.end).search(`(${Vr})|(${vo})`);En=J!==void 0?J:En||!_ue(kt,qn,Jr===-1?me.end:qn+Jr),qn=Jr===-1?me.end+1:qn+Jr+ir.length}}if(En||!en){((Be=qv(ke,me.pos))==null?void 0:Be.kind)!==2&&by(Gn,me.pos,nl),by(Gn,me.end,nl);const Mi=Gn[0];kt.substr(Mi,xi.length)!==xi&&Tt.push({newText:xi,span:{length:0,start:Mi}});for(let Ri=1;Ri<Gn.length-1;Ri++)kt.substr(Gn[Ri]-ir.length,ir.length)!==ir&&Tt.push({newText:ir,span:{length:0,start:Gn[Ri]}}),kt.substr(Gn[Ri],xi.length)!==xi&&Tt.push({newText:xi,span:{length:0,start:Gn[Ri]}});Tt.length%2!==0&&Tt.push({newText:ir,span:{length:0,start:Gn[Gn.length-1]}})}else for(const Mi of Gn){const Ri=Mi-ir.length>0?Mi-ir.length:0,Jr=kt.substr(Ri,ir.length)===ir?ir.length:0;Tt.push({newText:"",span:{length:xi.length,start:Mi-Jr}})}return Tt}function He(L,me){const J=s.getCurrentSourceFile(L),{firstLine:fe,lastLine:Be}=ka(J,me);return fe===Be&&me.pos!==me.end?wn(L,me,!0):Tn(L,me,!0)}function mt(L,me){const J=s.getCurrentSourceFile(L),fe=[],{pos:Be}=me;let{end:ke}=me;Be===ke&&(ke+=X7(J,Be)?2:1);for(let Tt=Be;Tt<=ke;Tt++){const kt=qv(J,Tt);if(kt){switch(kt.kind){case 2:fe.push(...Tn(L,{end:kt.end,pos:kt.pos+1},!1));break;case 3:fe.push(...wn(L,{end:kt.end,pos:kt.pos+1},!1))}Tt=kt.end+1}}return fe}function ft({openingElement:L,closingElement:me,parent:J}){return!T0(L.tagName,me.tagName)||sg(J)&&T0(L.tagName,J.openingElement.tagName)&&ft(J)}function Ct({closingFragment:L,parent:me}){return!!(L.flags&262144)||t1(me)&&Ct(me)}function le(L,me,J){const fe=s.getCurrentSourceFile(L),Be=kc.getRangeOfEnclosingComment(fe,me);return Be&&(!J||Be.kind===3)?tb(Be):void 0}function Fe(L,me){C();const J=M(L);h.throwIfCancellationRequested();const fe=J.text,Be=[];if(me.length>0&&!en(J.fileName)){const En=Tt();let Gn;for(;Gn=En.exec(fe);){h.throwIfCancellationRequested();const qn=3;N.assert(Gn.length===me.length+qn);const Pi=Gn[1],xi=Gn.index+Pi.length;if(!qv(J,xi))continue;let ir;for(let vo=0;vo<me.length;vo++)Gn[vo+qn]&&(ir=me[vo]);if(ir===void 0)return N.fail();if(kt(fe.charCodeAt(xi+ir.text.length)))continue;const Vr=Gn[2];Be.push({descriptor:ir,message:Vr,position:xi})}}return Be;function ke(En){return En.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Tt(){const En=/(?:\/\/+\s*)/.source,Gn=/(?:\/\*+\s*)/.source,Pi="("+/(?:^(?:\s|\*)*)/.source+"|"+En+"|"+Gn+")",xi="(?:"+Wt(me,Ri=>"("+ke(Ri.text)+")").join("|")+")",ir=/(?:$|\*\/)/.source,Vr=/(?:.*?)/.source,vo="("+xi+Vr+")",Mi=Pi+vo+ir;return new RegExp(Mi,"gim")}function kt(En){return En>=97&&En<=122||En>=65&&En<=90||En>=48&&En<=57}function en(En){return En.includes("/node_modules/")}}function pt(L,me,J){return C(),xz.getRenameInfo(l,M(L),me,J||{})}function j(L,me,J,fe,Be,ke){const[Tt,kt]=typeof me=="number"?[me,void 0]:[me.pos,me.end];return{file:L,startPosition:Tt,endPosition:kt,program:U(),host:e,formatContext:kc.getFormatContext(fe,e),cancellationToken:h,preferences:J,triggerReason:Be,kind:ke}}function it(L,me,J){return{file:L,program:U(),host:e,span:me,preferences:J,cancellationToken:h}}function Rt(L,me){return DQ.getSmartSelectionRange(me,s.getCurrentSourceFile(L))}function Ye(L,me,J=Mf,fe,Be,ke){C();const Tt=M(L);return RI.getApplicableRefactors(j(Tt,me,J,Mf,fe,Be),ke)}function _t(L,me,J=Mf){C();const fe=M(L),Be=N.checkDefined(l.getSourceFiles()),ke=XC(L),Tt=CO(j(fe,me,J,Mf)),kt=Cde(Tt==null?void 0:Tt.all),en=eo(Be,En=>{const Gn=XC(En.fileName);return!(l!=null&&l.isSourceFileFromExternalLibrary(fe))&&!(fe===M(En.fileName)||ke===".ts"&&Gn===".d.ts"||ke===".d.ts"&&uo(ic(En.fileName),"lib.")&&Gn===".d.ts")&&(ke===Gn||(ke===".tsx"&&Gn===".ts"||ke===".jsx"&&Gn===".js")&&!kt)?En.fileName:void 0});return{newFileName:Nde(fe,l,e,Tt),files:en}}function Gt(L,me,J,fe,Be,ke=Mf,Tt){C();const kt=M(L);return RI.getEditsForRefactor(j(kt,J,ke,me),fe,Be,Tt)}function yn(L,me){return me===0?{line:0,character:0}:R.toLineColumnOffset(L,me)}function fn(L,me){C();const J=DI.resolveCallHierarchyDeclaration(l,Vd(M(L),me));return J&&gX(J,fe=>DI.createCallHierarchyItem(l,fe))}function hn(L,me){C();const J=M(L),fe=vX(DI.resolveCallHierarchyDeclaration(l,me===0?J:Vd(J,me)));return fe?DI.getIncomingCalls(l,fe,h):[]}function q(L,me){C();const J=M(L),fe=vX(DI.resolveCallHierarchyDeclaration(l,me===0?J:Vd(J,me)));return fe?DI.getOutgoingCalls(l,fe):[]}function Oe(L,me,J=Mf){C();const fe=M(L);return EQ.provideInlayHints(it(fe,me,J))}const Lt={dispose:se,cleanupSemanticCache:V,getSyntacticDiagnostics:G,getSemanticDiagnostics:ne,getSuggestionDiagnostics:he,getCompilerOptionsDiagnostics:ye,getSyntacticClassifications:gn,getSemanticClassifications:Mn,getEncodedSyntacticClassifications:Qt,getEncodedSemanticClassifications:$n,getCompletionsAtPosition:Y,getCompletionEntryDetails:X,getCompletionEntrySymbol:oe,getSignatureHelpItems:Bt,getQuickInfoAtPosition:pe,getDefinitionAtPosition:ie,getDefinitionAndBoundSpan:ve,getImplementationAtPosition:Ue,getTypeDefinitionAtPosition:Le,getReferencesAtPosition:Me,findReferences:At,getFileReferences:Se,getDocumentHighlights:Ee,getNameOrDottedNameSpan:$e,getBreakpointStatementAtPosition:It,getNavigateToItems:je,getRenameInfo:pt,getSmartSelectionRange:Rt,findRenameLocations:De,getNavigationBarItems:tn,getNavigationTree:rn,getOutliningSpans:Yt,getTodoComments:Fe,getBraceMatchingAtPosition:so,getIndentationAtPosition:Wi,getFormattingEditsForRange:Co,getFormattingEditsForDocument:Ln,getFormattingEditsAfterKeystroke:Ci,getDocCommentTemplateAtPosition:yi,isValidBraceCompletionAtPosition:Qi,getJsxClosingTagAtPosition:Io,getLinkedEditingRangeAtPosition:fa,getSpanOfEnclosingComment:le,getCodeFixesAtPosition:Ar,getCombinedCodeFix:sn,applyCodeActionCommand:Dn,organizeImports:tt,getEditsForFileRename:zt,getEmitOutput:ot,getNonBoundSourceFile:vt,getProgram:U,getCurrentProgram:()=>l,getAutoImportProvider:K,updateIsDefinitionOfReferencedSymbols:Q,getApplicableRefactors:Ye,getEditsForRefactor:Gt,getMoveToRefactoringFileSuggestions:_t,toLineColumnOffset:yn,getSourceMapper:()=>R,clearSourceMapperCache:()=>R.clearCache(),prepareCallHierarchy:fn,provideCallHierarchyIncomingCalls:hn,provideCallHierarchyOutgoingCalls:q,toggleLineComment:Tn,toggleMultilineComment:wn,commentSelection:He,uncommentSelection:mt,provideInlayHints:Oe,getSupportedCodeFixes:EY};switch(o){case 0:break;case 1:lpe.forEach(L=>Lt[L]=()=>{throw new Error(`LanguageService Operation: ${L} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:cCe.forEach(L=>Lt[L]=()=>{throw new Error(`LanguageService Operation: ${L} not allowed in LanguageServiceMode.Syntactic`)});break;default:N.assertNever(o)}return Lt}function TY(e){return e.nameTable||lYe(e),e.nameTable}function lYe(e){const t=e.nameTable=new Map;e.forEachChild(function r(i){if(Ve(i)&&!DK(i)&&i.escapedText||ef(i)&&cYe(i)){const o=CC(i);t.set(o,t.get(o)===void 0?i.pos:-1)}else if(qi(i)){const o=i.escapedText;t.set(o,t.get(o)===void 0?i.pos:-1)}if(Uo(i,r),Wp(i))for(const o of i.jsDoc)Uo(o,r)})}function cYe(e){return wg(e)||e.parent.kind===283||pYe(e)||$L(e)}function FO(e){const t=uYe(e);return t&&(La(t.parent)||n1(t.parent))?t:void 0}function uYe(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return jV(e.parent.parent)?e.parent.parent:void 0;case 80:return jV(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function dYe(e,t){const r=FO(e);if(r){const i=t.getContextualType(r.parent),o=i&&ez(r,t,i,!1);if(o&&o.length===1)return Ua(o)}return t.getSymbolAtLocation(e)}function ez(e,t,r,i){const o=uO(e.name);if(!o)return et;if(!r.isUnion()){const u=r.getProperty(o);return u?[u]:et}const s=La(e.parent)||n1(e.parent)?mn(r.types,u=>!t.isTypeInvalidDueToUnionDiscriminant(u,e.parent)):r.types,l=eo(s,u=>u.getProperty(o));if(i&&(l.length===0||l.length===r.types.length)){const u=r.getProperty(o);if(u)return[u]}return!s.length&&!l.length?eo(r.types,u=>u.getProperty(o)):SE(l,xv)}function pYe(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function ope(e){if(gu)return $r(ai(ha(gu.getExecutingFilePath())),Z2(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var ape,AY,IY,tCe,spe,xY,RY,nCe,rCe,iCe,oCe,aCe,sCe,lCe,DY,lpe,cCe,fYe=I({"src/services/services.ts"(){si(),IDe(),qDe(),xh(),tDe(),XNe(),ape="0.8",AY=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){N.assert(!Ym(this.pos)&&!Ym(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Un(this)}getStart(e,t){return this.assertHasRealPosition(),l0(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=oYe(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const r=In(t,i=>i.kind<316||i.kind>357);return r.kind<166?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=this.getChildren(e),r=el(t);if(r)return r.kind<166?r:r.getLastToken(e)}forEachChild(e,t){return Uo(this,e,t)}},IY=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 Un(this)}getStart(e,t){return l0(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(){}},tCe=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return El(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){const t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=$5([t],e)}else this.documentationComment=$5(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(My(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=$5(mn(this.declarations,My),t)),Ne(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(Mv(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=$5(mn(this.declarations,Mv),t)),Ne(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=bY(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(My(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=bY(mn(this.declarations,My),t)),Ne(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(Mv(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=bY(mn(this.declarations,Mv),t)),Ne(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},spe=class extends IY{constructor(e,t,r){super(t,r),this.kind=e}},xY=class extends IY{constructor(e,t,r){super(t,r),this.kind=80}get text(){return Er(this)}},xY.prototype.kind=80,RY=class extends IY{constructor(e,t,r){super(t,r),this.kind=81}get text(){return Er(this)}},RY.prototype.kind=81,nCe=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)}},rCe=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){const t=this.checker.getParameterType(this,e);if(t.isIndexType()&&nP(t.type)){const r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=$5(hA(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=bY(hA(this.declaration),this.checker))}},iCe=class extends AY{constructor(e,t,r){super(e,t,r),this.kind=312}update(e,t){return kH(this,e,t)}getLineAndCharacterOfPosition(e){return ys(this,e)}getLineStarts(){return Ng(this)}getPositionOfLineAndCharacter(e,t,r){return n4(Ng(this),e,t,this.text,r)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts();let i;t+1>=r.length&&(i=this.getEnd()),i||(i=r[t+1]-1);const o=this.getFullText();return o[i]===` +`&&o[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=$p();return this.forEachChild(o),e;function t(s){const 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){const l=s4(s);return l&&(Za(l)&&Fr(l.expression)?l.expression.name.text:oc(l)?uO(l):void 0)}function o(s){switch(s.kind){case 262:case 218:case 174:case 173:const l=s,u=i(l);if(u){const m=r(u),y=el(m);y&&l.parent===y.parent&&l.symbol===y.symbol?l.body&&!y.body&&(m[m.length-1]=l):m.push(l)}Uo(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),Uo(s,o);break;case 169:if(!Qr(s,31))break;case 260:case 208:{const m=s;if(ta(m.name)){Uo(m.name,o);break}m.initializer&&o(m.initializer)}case 306:case 172:case 171:t(s);break;case 278:const p=s;p.exportClause&&(Nf(p.exportClause)?Xe(p.exportClause.elements,o):o(p.exportClause.name));break;case 272:const h=s.importClause;h&&(h.name&&t(h.name),h.namedBindings&&(h.namedBindings.kind===274?t(h.namedBindings):Xe(h.namedBindings.elements,o)));break;case 226:zl(s)!==0&&t(s);default:Uo(s,o)}}}},oCe=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return ys(this,e)}},aCe=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,o,s,l,u,p;const h=this.host.getScriptSnapshot(e);if(!h)throw new Error("Could not find file: '"+e+"'.");const m=aX(e,this.host),y=this.host.getScriptVersion(e);let T;if(this.currentFileName!==e){const A={languageVersion:99,impliedNodeFormat:Gw(il(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:fk(this.host.getCompilationSettings()),jsDocParsingMode:0};T=Z5(e,h,A,y,!0,m)}else if(this.currentFileVersion!==y){const A=h.getChangeRange(this.currentFileScriptSnapshot);T=SY(this.currentSourceFile,h,y,A)}return T&&(this.currentFileVersion=y,this.currentFileName=e,this.currentFileScriptSnapshot=h,this.currentSourceFile=T),this.currentSourceFile}},sCe={isCancellationRequested:qm,throwIfCancellationRequested:Ya},lCe=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=sr)==null||e.instant(sr.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new zx}},DY=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=Xs();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=sr)==null||e.instant(sr.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new zx}},lpe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],cCe=[...lpe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],ooe(sYe())}});function uCe(e,t,r){const i=[];r=jX(r,i);const o=To(e)?e:[e],s=Mw(void 0,void 0,w,r,o,t,!0);return s.diagnostics=So(s.diagnostics,i),s}var mYe=I({"src/services/transform.ts"(){si()}});function _Ye(e,t){if(e.isDeclarationFile)return;let r=po(e,t);const i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(r.getStart(e)).line>i){const y=Ic(r.pos,e);if(!y||e.getLineAndCharacterOfPosition(y.getEnd()).line!==i)return;r=y}if(r.flags&33554432)return;return m(r);function o(y,T){const A=qS(y)?oi(y.modifiers,Eu):void 0,R=A?Pa(e.text,A.end):y.getStart(e);return pc(R,(T||y).getEnd())}function s(y,T){return o(y,m1(T,T.parent,e))}function l(y,T){return y&&i===e.getLineAndCharacterOfPosition(y.getStart(e)).line?m(y):m(T)}function u(y,T,A){if(y){const R=y.indexOf(T);if(R>=0){let M=R,C=R+1;for(;M>0&&A(y[M-1]);)M--;for(;C<y.length&&A(y[C]);)C++;return pc(Pa(e.text,y[M].pos),y[C-1].end)}}return o(T)}function p(y){return m(Ic(y.pos,e))}function h(y){return m(m1(y,y.parent,e))}function m(y){if(y){const{parent:ie}=y;switch(y.kind){case 243:return A(y.declarationList.declarations[0]);case 260:case 172:case 171:return A(y);case 169:return M(y);case 262:case 174:case 173:case 177:case 178:case 176:case 218:case 219:return O(y);case 241:if(kE(y))return U(y);case 268:return K(y);case 299:return K(y.block);case 244:return o(y.expression);case 253:return o(y.getChildAt(0),y.expression);case 247:return s(y,y.expression);case 246:return m(y.statement);case 259:return o(y.getChildAt(0));case 245:return s(y,y.expression);case 256:return m(y.statement);case 252:case 251:return o(y.getChildAt(0),y.label);case 248:return V(y);case 249:return s(y,y.expression);case 250:return Q(y);case 255:return s(y,y.expression);case 296:case 297:return m(y.statements[0]);case 258:return K(y.tryBlock);case 257:return o(y,y.expression);case 277:return o(y,y.expression);case 271:return o(y,y.moduleReference);case 272:return o(y,y.moduleSpecifier);case 278:return o(y,y.moduleSpecifier);case 267:if(jg(y)!==1)return;case 263:case 266:case 306:case 208:return o(y);case 254:return m(y.statement);case 170:return u(ie.modifiers,y,Eu);case 206:case 207:return se(y);case 264:case 265:return;case 27:case 1:return l(Ic(y.pos,e));case 28:return p(y);case 19:return ne(y);case 20:return he(y);case 24:return ye(y);case 21:return Y(y);case 22:return X(y);case 59:return oe(y);case 32:case 30:return pe(y);case 117:return Ce(y);case 93:case 85:case 98:return h(y);case 165:return de(y);default:if(Jv(y))return G(y);if((y.kind===80||y.kind===230||y.kind===303||y.kind===304)&&Jv(ie))return o(y);if(y.kind===226){const{left:ve,operatorToken:Le}=y;if(Jv(ve))return G(ve);if(Le.kind===64&&Jv(y.parent))return o(y);if(Le.kind===28)return m(ve)}if(Qh(y))switch(ie.kind){case 246:return p(y);case 170:return m(y.parent);case 248:case 250:return o(y);case 226:if(y.parent.operatorToken.kind===28)return o(y);break;case 219:if(y.parent.body===y)return o(y);break}switch(y.parent.kind){case 303:if(y.parent.name===y&&!Jv(y.parent.parent))return m(y.parent.initializer);break;case 216:if(y.parent.type===y)return h(y.parent.type);break;case 260:case 169:{const{initializer:ve,type:Le}=y.parent;if(ve===y||Le===y||Ov(y.kind))return p(y);break}case 226:{const{left:ve}=y.parent;if(Jv(ve)&&y!==ve)return p(y);break}default:if(ea(y.parent)&&y.parent.type===y)return p(y)}return m(y.parent)}}function T(ie){return Vc(ie.parent)&&ie.parent.declarations[0]===ie?o(Ic(ie.pos,e,ie.parent),ie):o(ie)}function A(ie){if(ie.parent.parent.kind===249)return m(ie.parent.parent);const ve=ie.parent;if(ta(ie.name))return se(ie.name);if(_S(ie)&&ie.initializer||Qr(ie,32)||ve.parent.kind===250)return T(ie);if(Vc(ie.parent)&&ie.parent.declarations[0]!==ie)return m(Ic(ie.pos,e,ie.parent))}function R(ie){return!!ie.initializer||ie.dotDotDotToken!==void 0||Qr(ie,3)}function M(ie){if(ta(ie.name))return se(ie.name);if(R(ie))return o(ie);{const ve=ie.parent,Le=ve.parameters.indexOf(ie);return N.assert(Le!==-1),Le!==0?M(ve.parameters[Le-1]):m(ve.body)}}function C(ie){return Qr(ie,32)||ie.parent.kind===263&&ie.kind!==176}function O(ie){if(ie.body)return C(ie)?o(ie):m(ie.body)}function U(ie){const ve=ie.statements.length?ie.statements[0]:ie.getLastToken();return C(ie.parent)?l(ie.parent,ve):m(ve)}function K(ie){switch(ie.parent.kind){case 267:if(jg(ie.parent)!==1)return;case 247:case 245:case 249:return l(ie.parent,ie.statements[0]);case 248:case 250:return l(Ic(ie.pos,e,ie.parent),ie.statements[0])}return m(ie.statements[0])}function Q(ie){if(ie.initializer.kind===261){const ve=ie.initializer;if(ve.declarations.length>0)return m(ve.declarations[0])}else return m(ie.initializer)}function V(ie){if(ie.initializer)return Q(ie);if(ie.condition)return o(ie.condition);if(ie.incrementor)return o(ie.incrementor)}function se(ie){const ve=Xe(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){N.assert(ie.kind!==207&&ie.kind!==206);const ve=ie.kind===209?ie.elements:ie.properties,Le=Xe(ve,Ue=>Ue.kind!==232?Ue:void 0);return Le?m(Le):o(ie.parent.kind===226?ie.parent:ie)}function ne(ie){switch(ie.parent.kind){case 266:const ve=ie.parent;return l(Ic(ie.pos,e,ie.parent),ve.members.length?ve.members[0]:ve.getLastToken(e));case 263:const Le=ie.parent;return l(Ic(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(jg(ie.parent.parent)!==1)return;case 266:case 263:return o(ie);case 241:if(kE(ie.parent))return o(ie);case 299:return m(el(ie.parent.statements));case 269:const ve=ie.parent,Le=el(ve.clauses);return Le?m(el(Le.statements)):void 0;case 206:const Ue=ie.parent;return m(el(Ue.elements)||Ue);default:if(Jv(ie.parent)){const Ee=ie.parent;return o(el(Ee.properties)||Ee)}return m(ie.parent)}}function ye(ie){switch(ie.parent.kind){case 207:const ve=ie.parent;return o(el(ve.elements)||ve);default:if(Jv(ie.parent)){const Le=ie.parent;return o(el(Le.elements)||Le)}return m(ie.parent)}}function Y(ie){return ie.parent.kind===246||ie.parent.kind===213||ie.parent.kind===214?p(ie):ie.parent.kind===217?h(ie):m(ie.parent)}function X(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 pe(ie){return ie.parent.kind===216?h(ie):m(ie.parent)}function Ce(ie){return ie.parent.kind===246?s(ie,ie.parent.expression):m(ie.parent)}function de(ie){return ie.parent.kind===250?h(ie):m(ie.parent)}}}var hYe=I({"src/services/breakpoints.ts"(){si()}}),NY={};ee(NY,{spanInSourceFileAtLocation:()=>_Ye});var gYe=I({"src/services/_namespaces/ts.BreakpointResolver.ts"(){hYe()}});function vYe(e){return(Os(e)||Qc(e))&&ad(e)}function dCe(e){return qo(e)||Oi(e)}function zO(e){return(Os(e)||Gs(e)||Qc(e))&&dCe(e.parent)&&e===e.parent.initializer&&Ve(e.parent.name)&&(!!(Cv(e.parent)&2)||qo(e.parent))}function pCe(e){return $i(e)||Xl(e)||Tc(e)||Os(e)||Ac(e)||Qc(e)||Rl(e)||Hl(e)||yh(e)||tf(e)||vp(e)}function MD(e){return $i(e)||Xl(e)&&Ve(e.name)||Tc(e)||Ac(e)||Rl(e)||Hl(e)||yh(e)||tf(e)||vp(e)||vYe(e)||zO(e)}function fCe(e){return $i(e)?e:ad(e)?e.name:zO(e)?e.parent.name:N.checkDefined(e.modifiers&&In(e.modifiers,mCe))}function mCe(e){return e.kind===90}function _Ce(e,t){const r=fCe(t);return r&&e.getSymbolAtLocation(r)}function yYe(e,t){if($i(t))return{text:t.fileName,pos:0,end:0};if((Tc(t)||Ac(t))&&!ad(t)){const o=t.modifiers&&In(t.modifiers,mCe);if(o)return{text:"default",pos:o.getStart(),end:o.getEnd()}}if(Rl(t)){const o=t.getSourceFile(),s=Pa(o.text,C_(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}}const r=zO(t)?t.parent.name:N.checkDefined(Lo(t),"Expected call hierarchy item to have a name");let i=Ve(r)?Er(r):ef(r)?r.text:Za(r)&&ef(r.expression)?r.expression.text:void 0;if(i===void 0){const o=e.getTypeChecker(),s=o.getSymbolAtLocation(r);s&&(i=o.symbolToString(s,t))}if(i===void 0){const o=kw();i=hC(s=>o.writeNode(4,t,t.getSourceFile(),s))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function bYe(e){var t,r,i,o;if(zO(e))return qo(e.parent)&&di(e.parent.parent)?Qc(e.parent.parent)?(t=l4(e.parent.parent))==null?void 0:t.getText():(r=e.parent.parent.name)==null?void 0:r.getText():L_(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=l4(e.parent))==null?void 0:i.getText():(o=Lo(e.parent))==null?void 0:o.getText();case 262:case 263:case 267:if(L_(e.parent)&&Ve(e.parent.parent.name))return e.parent.parent.name.getText()}}function hCe(e,t){if(t.body)return t;if(Ml(t))return ng(t.parent);if(Tc(t)||Hl(t)){const r=_Ce(e,t);return r&&r.valueDeclaration&&Bs(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function gCe(e,t){const r=_Ce(e,t);let i;if(r&&r.declarations){const o=N2(r.declarations),s=Wt(r.declarations,p=>({file:p.getSourceFile().fileName,pos:p.pos}));o.sort((p,h)=>Uu(s[p].file,s[h].file)||s[p].pos-s[h].pos);const l=Wt(o,p=>r.declarations[p]);let u;for(const p of l)MD(p)&&((!u||u.parent!==p.parent||u.end!==p.pos)&&(i=Rn(i,p)),u=p)}return i}function CY(e,t){return Rl(t)?t:Bs(t)?hCe(e,t)??gCe(e,t)??t:gCe(e,t)??t}function vCe(e,t){const r=e.getTypeChecker();let i=!1;for(;;){if(MD(t))return CY(r,t);if(pCe(t)){const o=Vn(t,MD);return o&&CY(r,o)}if(wg(t)){if(MD(t.parent))return CY(r,t.parent);if(pCe(t.parent)){const o=Vn(t.parent,MD);return o&&CY(r,o)}return dCe(t.parent)&&t.parent.initializer&&zO(t.parent.initializer)?t.parent.initializer:void 0}if(Ml(t))return MD(t.parent)?t.parent:void 0;if(t.kind===126&&Rl(t.parent)){t=t.parent;continue}if(Oi(t)&&t.initializer&&zO(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 cpe(e,t){const r=t.getSourceFile(),i=yYe(e,t),o=bYe(t),s=f1(t),l=nM(t),u=pc(Pa(r.text,t.getFullStart(),!1,!0),t.getEnd()),p=pc(i.pos,i.end);return{file:r.fileName,kind:s,kindModifiers:l,name:i.text,containerName:o,span:u,selectionSpan:p}}function EYe(e){return e!==void 0}function SYe(e){if(e.kind===Ws.EntryKind.Node){const{node:t}=e;if(AK(t,!0,!0)||qce(t,!0,!0)||Jce(t,!0,!0)||Kce(t,!0,!0)||vD(t)||NK(t)){const r=t.getSourceFile();return{declaration:Vn(t,MD)||r,range:UK(t,r)}}}}function yCe(e){return as(e.declaration)}function TYe(e,t){return{from:e,fromSpans:t}}function AYe(e,t){return TYe(cpe(e,t[0].declaration),Wt(t,r=>tb(r.range)))}function IYe(e,t,r){if($i(t)||Xl(t)||Rl(t))return[];const i=fCe(t),o=mn(Ws.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:Ws.FindReferencesUse.References},SYe),EYe);return o?JN(o,yCe,s=>AYe(e,s)):[]}function xYe(e,t){function r(o){const s=QE(o)?o.tag:ld(o)?o.tagName:ws(o)||Rl(o)?o:o.expression,l=vCe(e,s);if(l){const u=UK(s,o.getSourceFile());if(To(l))for(const 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(MD(o)){if(di(o))for(const 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),Xe(o.arguments,i);return;case 214:r(o),i(o.expression),Xe(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),Uo(o,i);break;case 238:i(o.expression);return}$h(o)||Uo(o,i)}}return i}function RYe(e,t){Xe(e.statements,t)}function DYe(e,t){!Qr(e,128)&&e.body&&L_(e.body)&&Xe(e.body.statements,t)}function NYe(e,t,r){const i=hCe(e,t);i&&(Xe(i.parameters,r),r(i.body))}function CYe(e,t){t(e.body)}function PYe(e,t){Xe(e.modifiers,t);const r=FE(e);r&&t(r.expression);for(const i of e.members)Rm(i)&&Xe(i.modifiers,t),qo(i)?t(i.initializer):Ml(i)&&i.body?(Xe(i.parameters,t),t(i.body)):Rl(i)&&t(i)}function MYe(e,t){const r=[],i=xYe(e,r);switch(t.kind){case 312:RYe(t,i);break;case 267:DYe(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:NYe(e.getTypeChecker(),t,i);break;case 263:case 231:PYe(t,i);break;case 175:CYe(t,i);break;default:N.assertNever(t)}return r}function LYe(e,t){return{to:e,fromSpans:t}}function kYe(e,t){return LYe(cpe(e,t[0].declaration),Wt(t,r=>tb(r.range)))}function wYe(e,t){return t.flags&33554432||yh(t)?[]:JN(MYe(e,t),yCe,r=>kYe(e,r))}var OYe=I({"src/services/callHierarchy.ts"(){si()}}),DI={};ee(DI,{createCallHierarchyItem:()=>cpe,getIncomingCalls:()=>IYe,getOutgoingCalls:()=>wYe,resolveCallHierarchyDeclaration:()=>vCe});var WYe=I({"src/services/_namespaces/ts.CallHierarchy.ts"(){OYe()}}),bCe={};ee(bCe,{TokenEncodingConsts:()=>epe,TokenModifier:()=>npe,TokenType:()=>tpe,getEncodedSemanticClassifications:()=>Zde,getSemanticClassifications:()=>qNe});var FYe=I({"src/services/_namespaces/ts.classifier.v2020.ts"(){XNe()}}),upe={};ee(upe,{v2020:()=>bCe});var zYe=I({"src/services/_namespaces/ts.classifier.ts"(){FYe()}});function n_(e,t,r){return ppe(e,iT(r),t,void 0,void 0)}function la(e,t,r,i,o,s){return ppe(e,iT(r),t,i,iT(o),s)}function dpe(e,t,r,i,o,s){return ppe(e,iT(r),t,i,o&&iT(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 Ta(e){for(const t of e.errorCodes)fpe=void 0,PY.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)N.assert(!MY.has(t)),MY.set(t,e)}function BYe(){return fpe??(fpe=zo(PY.keys()))}function GYe(e,t){const{errorCodes:r}=e;let i=0;for(const s of t)if(Or(r,s.code)&&i++,i>1)break;const o=i<2;return({fixId:s,fixAllDescription:l,...u})=>o?u:{...u,fixId:s,fixAllDescription:l}}function VYe(e){const t=SCe(e),r=PY.get(String(e.errorCode));return Do(r,i=>Wt(i.getCodeActions(e),GYe(i,t)))}function jYe(e){return MY.get(oa(e.fixId,Mo)).getAllCodeActions(e)}function LD(e,t){return{changes:e,commands:t}}function ECe(e,t){return{fileName:e,textChanges:t}}function bs(e,t,r){const i=[],o=_r.ChangeTracker.with(e,s=>kD(e,t,l=>r(s,l,i)));return LD(o,i.length===0?void 0:i)}function kD(e,t,r){for(const i of SCe(e))Or(t,i.code)&&r(i)}function SCe({program:e,sourceFile:t,cancellationToken:r}){return[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...FX(t,e,r)]}var PY,MY,fpe,UYe=I({"src/services/codeFixProvider.ts"(){si(),PY=$p(),MY=new Map}});function TCe(e,t,r){const i=Uk(r)?w.createAsExpression(r.expression,w.createKeywordTypeNode(159)):w.createTypeAssertion(w.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,i)}function ACe(e,t){if(!lr(e))return Vn(po(e,t),r=>Uk(r)||dae(r))}var LY,mpe,HYe=I({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){si(),Ia(),LY="addConvertToUnknownForNonOverlappingTypes",mpe=[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],Ta({errorCodes:mpe,getCodeActions:function(t){const r=ACe(t.sourceFile,t.span.start);if(r===void 0)return;const i=_r.ChangeTracker.with(t,o=>TCe(o,t.sourceFile,r));return[la(LY,i,f.Add_unknown_conversion_for_non_overlapping_types,LY,f.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[LY],getAllCodeActions:e=>bs(e,mpe,(t,r)=>{const i=ACe(r.file,r.start);i&&TCe(t,r.file,i)})})}}),qYe=I({"src/services/codefixes/addEmptyExportDeclaration.ts"(){si(),Ia(),Ta({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){const{sourceFile:r}=t,i=_r.ChangeTracker.with(t,o=>{const s=w.createExportDeclaration(void 0,!1,w.createNamedExports([]),void 0);o.insertNodeAtEndOfScope(r,r,s)});return[n_("addEmptyExportDeclaration",i,f.Add_export_to_make_this_file_into_a_module)]}})}});function ICe(e,t,r,i){const o=r(s=>JYe(s,e.sourceFile,t,i));return la(kY,o,f.Add_async_modifier_to_containing_function,kY,f.Add_all_missing_async_modifiers)}function JYe(e,t,r,i){if(i&&i.has(as(r)))return;i==null||i.add(as(r));const o=w.replaceModifiers(ll(r,!0),w.createNodeArray(w.createModifiersFromModifierFlags(Fy(r)|1024)));e.replaceNode(t,r,o)}function xCe(e,t){if(!t)return;const r=po(e,t.start);return Vn(r,o=>o.getStart(e)<t.start||o.getEnd()>Kl(t)?"quit":(Gs(o)||Hl(o)||Os(o)||Tc(o))&&TD(t,Dd(o,e)))}function KYe(e,t){return({start:r,length:i,relatedInformation:o,code:s})=>Av(r)&&Av(i)&&TD({start:r,length:i},e)&&s===t&&!!o&&bt(o,l=>l.code===f.Did_you_mean_to_mark_this_function_as_async.code)}var kY,_pe,XYe=I({"src/services/codefixes/addMissingAsync.ts"(){si(),Ia(),kY="addMissingAsync",_pe=[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],Ta({fixIds:[kY],errorCodes:_pe,getCodeActions:function(t){const{sourceFile:r,errorCode:i,cancellationToken:o,program:s,span:l}=t,u=In(s.getTypeChecker().getDiagnostics(r,o),KYe(l,i)),p=u&&u.relatedInformation&&In(u.relatedInformation,y=>y.code===f.Did_you_mean_to_mark_this_function_as_async.code),h=xCe(r,p);return h?[ICe(t,h,y=>_r.ChangeTracker.with(t,y))]:void 0},getAllCodeActions:e=>{const{sourceFile:t}=e,r=new Set;return bs(e,_pe,(i,o)=>{const s=o.relatedInformation&&In(o.relatedInformation,p=>p.code===f.Did_you_mean_to_mark_this_function_as_async.code),l=xCe(t,s);return l?ICe(e,l,p=>(p(i),[]),r):void 0})}})}});function RCe(e,t,r,i,o){const s=hX(e,r);return s&&YYe(e,t,r,i,o)&&CCe(s)?s:void 0}function DCe(e,t,r,i,o,s){const{sourceFile:l,program:u,cancellationToken:p}=e,h=$Ye(t,l,p,u,i);if(h){const m=o(y=>{Xe(h.initializers,({expression:T})=>hpe(y,r,l,i,T,s)),s&&h.needsSecondPassForFixAll&&hpe(y,r,l,i,t,s)});return n_("addMissingAwaitToInitializer",m,h.initializers.length===1?[f.Add_await_to_initializer_for_0,h.initializers[0].declarationSymbol.name]:f.Add_await_to_initializers)}}function NCe(e,t,r,i,o,s){const l=o(u=>hpe(u,r,e.sourceFile,i,t,s));return la(wY,l,f.Add_await,wY,f.Fix_all_expressions_possibly_missing_await)}function YYe(e,t,r,i,o){const l=o.getTypeChecker().getDiagnostics(e,i);return bt(l,({start:u,length:p,relatedInformation:h,code:m})=>Av(u)&&Av(p)&&TD({start:u,length:p},r)&&m===t&&!!h&&bt(h,y=>y.code===f.Did_you_forget_to_use_await.code))}function $Ye(e,t,r,i,o){const s=QYe(e,o);if(!s)return;let l=s.isCompleteFix,u;for(const p of s.identifiers){const h=o.getSymbolAtLocation(p);if(!h)continue;const m=ri(h.valueDeclaration,Oi),y=m&&ri(m.name,Ve),T=f0(m,243);if(!m||!T||m.type||!m.initializer||T.getSourceFile()!==t||Qr(T,32)||!y||!CCe(m.initializer)){l=!1;continue}const A=i.getSemanticDiagnostics(t,r);if(Ws.Core.eachSymbolReferenceInFile(y,o,t,M=>p!==M&&!ZYe(M,A,t,o))){l=!1;continue}(u||(u=[])).push({expression:m.initializer,declarationSymbol:h})}return u&&{initializers:u,needsSecondPassForFixAll:!l}}function QYe(e,t){if(Fr(e.parent)&&Ve(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Ve(e))return{identifiers:[e],isCompleteFix:!0};if(mr(e)){let r,i=!0;for(const o of[e.left,e.right]){const 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 ZYe(e,t,r,i){const o=Fr(e.parent)?e.parent.name:mr(e.parent)?e.parent:e,s=In(t,l=>l.start===o.getStart(r)&&l.start+l.length===o.getEnd());return s&&Or(OY,s.code)||i.getTypeAtLocation(o).flags&1}function CCe(e){return e.flags&65536||!!Vn(e,t=>t.parent&&Gs(t.parent)&&t.parent.body===t||Ko(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function hpe(e,t,r,i,o,s){if(Hk(o.parent)&&!o.parent.awaitModifier){const l=i.getTypeAtLocation(o),u=i.getAsyncIterableType();if(u&&i.isTypeAssignableTo(l,u)){const p=o.parent;e.replaceNode(r,p,w.updateForOfStatement(p,w.createToken(135),p.initializer,p.expression,p.statement));return}}if(mr(o))for(const l of[o.left,o.right]){if(s&&Ve(l)){const h=i.getSymbolAtLocation(l);if(h&&s.has(Sa(h)))continue}const u=i.getTypeAtLocation(l),p=i.getPromisedTypeOfPromise(u)?w.createAwaitExpression(l):l;e.replaceNode(r,l,p)}else if(t===gpe&&Fr(o.parent)){if(s&&Ve(o.parent.expression)){const l=i.getSymbolAtLocation(o.parent.expression);if(l&&s.has(Sa(l)))return}e.replaceNode(r,o.parent.expression,w.createParenthesizedExpression(w.createAwaitExpression(o.parent.expression))),PCe(e,o.parent.expression,r)}else if(Or(vpe,t)&&S_(o.parent)){if(s&&Ve(o)){const l=i.getSymbolAtLocation(o);if(l&&s.has(Sa(l)))return}e.replaceNode(r,o,w.createParenthesizedExpression(w.createAwaitExpression(o))),PCe(e,o,r)}else{if(s&&Oi(o.parent)&&Ve(o.parent.name)){const l=i.getSymbolAtLocation(o.parent.name);if(l&&!Xb(s,Sa(l)))return}e.replaceNode(r,o,w.createAwaitExpression(o))}}function PCe(e,t,r){const i=Ic(t.pos,r);i&&f5(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var wY,gpe,vpe,OY,e$e=I({"src/services/codefixes/addMissingAwait.ts"(){si(),Ia(),wY="addMissingAwait",gpe=f.Property_0_does_not_exist_on_type_1.code,vpe=[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],OY=[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,gpe,...vpe],Ta({fixIds:[wY],errorCodes:OY,getCodeActions:function(t){const{sourceFile:r,errorCode:i,span:o,cancellationToken:s,program:l}=t,u=RCe(r,i,o,s,l);if(!u)return;const p=t.program.getTypeChecker(),h=m=>_r.ChangeTracker.with(t,m);return C2([DCe(t,u,i,p,h),NCe(t,u,i,p,h)])},getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=e.program.getTypeChecker(),s=new Set;return bs(e,OY,(l,u)=>{const p=RCe(t,u.code,u,i,r);if(!p)return;const h=m=>(m(l),[]);return DCe(e,p,u.code,o,h,s)||NCe(e,p,u.code,o,h,s)})}})}});function MCe(e,t,r,i,o){const s=po(t,r),l=Vn(s,h=>Yx(h.parent)?h.parent.initializer===h:t$e(h)?!1:"quit");if(l)return WY(e,l,t,o);const u=s.parent;if(mr(u)&&u.operatorToken.kind===64&&Zc(u.parent))return WY(e,s,t,o);if(fd(u)){const h=i.getTypeChecker();return Jn(u.elements,m=>n$e(m,h))?WY(e,u,t,o):void 0}const p=Vn(s,h=>Zc(h.parent)?!0:r$e(h)?!1:"quit");if(p){const h=i.getTypeChecker();return LCe(p,h)?WY(e,p,t,o):void 0}}function WY(e,t,r,i){(!i||Xb(i,t))&&e.insertModifierBefore(r,87,t)}function t$e(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function n$e(e,t){const r=Ve(e)?e:Pc(e,!0)&&Ve(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function r$e(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function LCe(e,t){return mr(e)?e.operatorToken.kind===28?Jn([e.left,e.right],r=>LCe(r,t)):e.operatorToken.kind===64&&Ve(e.left)&&!t.getSymbolAtLocation(e.left):!1}var FY,ype,i$e=I({"src/services/codefixes/addMissingConst.ts"(){si(),Ia(),FY="addMissingConst",ype=[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],Ta({errorCodes:ype,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>MCe(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[la(FY,r,f.Add_const_to_unresolved_variable,FY,f.Add_const_to_all_unresolved_variables)]},fixIds:[FY],getAllCodeActions:e=>{const t=new Set;return bs(e,ype,(r,i)=>MCe(r,i.file,i.start,e.program,t))}})}});function kCe(e,t,r,i){const o=po(t,r);if(!Ve(o))return;const s=o.parent;s.kind===172&&(!i||Xb(i,s))&&e.insertModifierBefore(t,138,s)}var zY,bpe,o$e=I({"src/services/codefixes/addMissingDeclareProperty.ts"(){si(),Ia(),zY="addMissingDeclareProperty",bpe=[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],Ta({errorCodes:bpe,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>kCe(i,t.sourceFile,t.span.start));if(r.length>0)return[la(zY,r,f.Prefix_with_declare,zY,f.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[zY],getAllCodeActions:e=>{const t=new Set;return bs(e,bpe,(r,i)=>kCe(r,i.file,i.start,t))}})}});function wCe(e,t,r){const i=po(t,r),o=Vn(i,Eu);N.assert(!!o,"Expected position to be owned by a decorator.");const s=w.createCallExpression(o.expression,void 0,void 0);e.replaceNode(t,o.expression,s)}var BY,Epe,a$e=I({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){si(),Ia(),BY="addMissingInvocationForDecorator",Epe=[f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],Ta({errorCodes:Epe,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>wCe(i,t.sourceFile,t.span.start));return[la(BY,r,f.Call_decorator_expression,BY,f.Add_to_all_uncalled_decorators)]},fixIds:[BY],getAllCodeActions:e=>bs(e,Epe,(t,r)=>wCe(t,r.file,r.start))})}});function OCe(e,t,r){const i=po(t,r),o=i.parent;if(!Ao(o))return N.fail("Tried to add a parameter name to a non-parameter: "+N.formatSyntaxKind(i.kind));const s=o.parent.parameters.indexOf(o);N.assert(!o.type,"Tried to add a parameter name to a parameter that already had one."),N.assert(s>-1,"Parameter not found in parent parameter list.");let l=o.name.getEnd(),u=w.createTypeReferenceNode(o.name,void 0),p=WCe(t,o);for(;p;)u=w.createArrayTypeNode(u),l=p.getEnd(),p=WCe(t,p);const h=w.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+s,o.questionToken,o.dotDotDotToken&&!Vk(u)?w.createArrayTypeNode(u):u,o.initializer);e.replaceRange(t,Af(o.getStart(t),l),h)}function WCe(e,t){const r=m1(t.name,t.parent,e);if(r&&r.kind===23&&YE(r.parent)&&Ao(r.parent.parent))return r.parent.parent}var GY,Spe,s$e=I({"src/services/codefixes/addNameToNamelessParameter.ts"(){si(),Ia(),GY="addNameToNamelessParameter",Spe=[f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],Ta({errorCodes:Spe,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>OCe(i,t.sourceFile,t.span.start));return[la(GY,r,f.Add_parameter_name,GY,f.Add_names_to_all_parameters_without_names)]},fixIds:[GY],getAllCodeActions:e=>bs(e,Spe,(t,r)=>OCe(t,r.file,r.start))})}});function l$e(e,t,r){var i,o;const s=FCe(hX(e,t),r);if(!s)return et;const{source:l,target:u}=s,p=c$e(l,u,r)?r.getTypeAtLocation(u.expression):r.getTypeAtLocation(u);return(o=(i=p.symbol)==null?void 0:i.declarations)!=null&&o.some(h=>Un(h).fileName.match(/\.d\.ts$/))?et:r.getExactOptionalProperties(p)}function c$e(e,t,r){return Fr(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function FCe(e,t){var r;if(e){if(mr(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(sa(e.parent)){const i=t.getSymbolAtLocation(e.parent.expression);if(!(i!=null&&i.valueDeclaration)||!TA(i.valueDeclaration.kind)||!yt(e))return;const o=e.parent.arguments.indexOf(e);if(o===-1)return;const s=i.valueDeclaration.parameters[o].name;if(Ve(s))return{source:e,target:s}}else if(hc(e.parent)&&Ve(e.parent.name)||np(e.parent)){const i=FCe(e.parent.parent,t);if(!i)return;const o=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),s=(r=o==null?void 0:o.declarations)==null?void 0:r[0];return s?{source:hc(e.parent)?e.parent.initializer:e.parent.name,target:s}:void 0}}else return}function u$e(e,t){for(const r of t){const i=r.valueDeclaration;if(i&&(gp(i)||qo(i))&&i.type){const o=w.createUnionTypeNode([...i.type.kind===192?i.type.types:[i.type],w.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,o)}}}var Tpe,zCe,d$e=I({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){si(),Ia(),Tpe="addOptionalPropertyUndefined",zCe=[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],Ta({errorCodes:zCe,getCodeActions(e){const t=e.program.getTypeChecker(),r=l$e(e.sourceFile,e.span,t);if(!r.length)return;const i=_r.ChangeTracker.with(e,o=>u$e(o,r));return[n_(Tpe,i,f.Add_undefined_to_optional_property_type)]},fixIds:[Tpe]})}});function BCe(e,t){const r=po(e,t);return ri(Ao(r.parent)?r.parent.parent:r.parent,GCe)}function GCe(e){return p$e(e)&&VCe(e)}function VCe(e){return Bs(e)?e.parameters.some(VCe)||!e.type&&!!iL(e):!e.type&&!!o0(e)}function jCe(e,t,r){if(Bs(r)&&(iL(r)||r.parameters.some(i=>!!o0(i)))){if(!r.typeParameters){const o=g3(r);o.length&&e.insertTypeParameters(t,r,o)}const i=Gs(r)&&!vs(r,21,t);i&&e.insertNodeBefore(t,Ua(r.parameters),w.createToken(21));for(const o of r.parameters)if(!o.type){const s=o0(o);s&&e.tryInsertTypeAnnotation(t,o,nt(s,y1,ji))}if(i&&e.insertNodeAfter(t,Xa(r.parameters),w.createToken(22)),!r.type){const o=iL(r);o&&e.tryInsertTypeAnnotation(t,r,nt(o,y1,ji))}}else{const i=N.checkDefined(o0(r),"A JSDocType for this declaration should exist");N.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,nt(i,y1,ji))}}function p$e(e){return Bs(e)||e.kind===260||e.kind===171||e.kind===172}function y1(e){switch(e.kind){case 319:case 320:return w.createTypeReferenceNode("any",et);case 323:return m$e(e);case 322:return y1(e.type);case 321:return _$e(e);case 325:return h$e(e);case 324:return g$e(e);case 183:return y$e(e);case 329:return f$e(e);default:const t=xn(e,y1,void 0);return pr(t,1),t}}function f$e(e){const t=w.createTypeLiteralNode(Wt(e.jsDocPropertyTags,r=>w.createPropertySignature(void 0,Ve(r.name)?r.name:r.name.right,yk(r)?w.createToken(58):void 0,r.typeExpression&&nt(r.typeExpression.type,y1,ji)||w.createKeywordTypeNode(133))));return pr(t,1),t}function m$e(e){return w.createUnionTypeNode([nt(e.type,y1,ji),w.createTypeReferenceNode("undefined",et)])}function _$e(e){return w.createUnionTypeNode([nt(e.type,y1,ji),w.createTypeReferenceNode("null",et)])}function h$e(e){return w.createArrayTypeNode(nt(e.type,y1,ji))}function g$e(e){return w.createFunctionTypeNode(et,e.parameters.map(v$e),e.type??w.createKeywordTypeNode(133))}function v$e(e){const 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?w.createToken(26):e.dotDotDotToken;return w.createParameterDeclaration(e.modifiers,o,i,e.questionToken,nt(e.type,y1,ji),e.initializer)}function y$e(e){let t=e.typeName,r=e.typeArguments;if(Ve(e.typeName)){if(Q4(e))return b$e(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=w.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?r=w.createNodeArray([w.createTypeReferenceNode("any",et)]):r=jn(e.typeArguments,y1,ji)}return w.createTypeReferenceNode(t,r)}function b$e(e){const t=w.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,w.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),r=w.createTypeLiteralNode([w.createIndexSignature(void 0,[t],e.typeArguments[1])]);return pr(r,1),r}var VY,Ape,E$e=I({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){si(),Ia(),VY="annotateWithTypeFromJSDoc",Ape=[f.JSDoc_types_may_be_moved_to_TypeScript_types.code],Ta({errorCodes:Ape,getCodeActions(e){const t=BCe(e.sourceFile,e.span.start);if(!t)return;const r=_r.ChangeTracker.with(e,i=>jCe(i,e.sourceFile,t));return[la(VY,r,f.Annotate_with_type_from_JSDoc,VY,f.Annotate_everything_with_types_from_JSDoc)]},fixIds:[VY],getAllCodeActions:e=>bs(e,Ape,(t,r)=>{const i=BCe(r.file,r.start);i&&jCe(t,r.file,i)})})}});function UCe(e,t,r,i,o,s){const l=i.getSymbolAtLocation(po(t,r));if(!l||!l.valueDeclaration||!(l.flags&19))return;const u=l.valueDeclaration;if(Tc(u)||Os(u))e.replaceNode(t,u,m(u));else if(Oi(u)){const y=h(u);if(!y)return;const T=u.parent.parent;Vc(u.parent)&&u.parent.declarations.length>1?(e.delete(t,u),e.insertNodeAfter(t,T,y)):e.replaceNode(t,T,y)}function p(y){const T=[];return y.exports&&y.exports.forEach(M=>{if(M.name==="prototype"&&M.declarations){const C=M.declarations[0];if(M.declarations.length===1&&Fr(C)&&mr(C.parent)&&C.parent.operatorToken.kind===64&&La(C.parent.right)){const O=C.parent.right;R(O.symbol,void 0,T)}}else R(M,[w.createToken(126)],T)}),y.members&&y.members.forEach((M,C)=>{var O,U,K,Q;if(C==="constructor"&&M.valueDeclaration){const V=(Q=(K=(U=(O=y.exports)==null?void 0:O.get("prototype"))==null?void 0:U.declarations)==null?void 0:K[0])==null?void 0:Q.parent;V&&mr(V)&&La(V.right)&&bt(V.right.properties,UY)||e.delete(t,M.valueDeclaration.parent);return}R(M,void 0,T)}),T;function A(M,C){return ws(M)?Fr(M)&&UY(M)?!0:ea(C):Jn(M.properties,O=>!!(Hl(O)||d4(O)||hc(O)&&Os(O.initializer)&&O.name||UY(O)))}function R(M,C,O){if(!(M.flags&8192)&&!(M.flags&4096))return;const U=M.valueDeclaration,K=U.parent,Q=K.right;if(!A(U,Q)||bt(O,he=>{const ye=Lo(he);return!!(ye&&Ve(ye)&&Er(ye)===El(M))}))return;const V=K.parent&&K.parent.kind===244?K.parent:K;if(e.delete(t,V),!Q){O.push(w.createPropertyDeclaration(C,M.name,void 0,void 0,void 0));return}if(ws(U)&&(Os(Q)||Gs(Q))){const he=lf(t,o),ye=S$e(U,s,he);ye&&se(O,Q,ye);return}else if(La(Q)){Xe(Q.properties,he=>{(Hl(he)||d4(he))&&O.push(he),hc(he)&&Os(he.initializer)&&se(O,he.initializer,he.name),UY(he)});return}else{if(cd(t)||!Fr(U))return;const he=w.createPropertyDeclaration(C,U.name,void 0,void 0,Q);ID(K.parent,he,t),O.push(he);return}function se(he,ye,Y){return Os(ye)?G(he,ye,Y):ne(he,ye,Y)}function G(he,ye,Y){const X=So(C,jY(ye,134)),oe=w.createMethodDeclaration(X,void 0,Y,void 0,void 0,ye.parameters,void 0,ye.body);ID(K,oe,t),he.push(oe)}function ne(he,ye,Y){const X=ye.body;let oe;X.kind===241?oe=X:oe=w.createBlock([w.createReturnStatement(X)]);const pe=So(C,jY(ye,134)),Ce=w.createMethodDeclaration(pe,void 0,Y,void 0,void 0,ye.parameters,void 0,oe);ID(K,Ce,t),he.push(Ce)}}}function h(y){const T=y.initializer;if(!T||!Os(T)||!Ve(y.name))return;const A=p(y.symbol);T.body&&A.unshift(w.createConstructorDeclaration(void 0,T.parameters,T.body));const R=jY(y.parent.parent,95);return w.createClassDeclaration(R,y.name,void 0,void 0,A)}function m(y){const T=p(l);y.body&&T.unshift(w.createConstructorDeclaration(void 0,y.parameters,y.body));const A=jY(y,95);return w.createClassDeclaration(A,y.name,void 0,void 0,T)}}function jY(e,t){return Rm(e)?mn(e.modifiers,r=>r.kind===t):void 0}function UY(e){return e.name?!!(Ve(e.name)&&e.name.text==="constructor"):!1}function S$e(e,t,r){if(Fr(e))return e.name;const i=e.argumentExpression;if(hp(i))return i;if(ls(i))return Zp(i.text,os(t))?w.createIdentifier(i.text):XA(i)?w.createStringLiteral(i.text,r===0):i}var HY,Ipe,T$e=I({"src/services/codefixes/convertFunctionToEs6Class.ts"(){si(),Ia(),HY="convertFunctionToEs6Class",Ipe=[f.This_constructor_function_may_be_converted_to_a_class_declaration.code],Ta({errorCodes:Ipe,getCodeActions(e){const t=_r.ChangeTracker.with(e,r=>UCe(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[la(HY,t,f.Convert_function_to_an_ES2015_class,HY,f.Convert_all_constructor_functions_to_classes)]},fixIds:[HY],getAllCodeActions:e=>bs(e,Ipe,(t,r)=>UCe(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function HCe(e,t,r,i){const o=po(t,r);let s;if(Ve(o)&&Oi(o.parent)&&o.parent.initializer&&Bs(o.parent.initializer)?s=o.parent.initializer:s=ri(Bp(po(t,r)),GX),!s)return;const l=new Map,u=lr(s),p=I$e(s,i),h=x$e(s,i,l);if(!zX(h,i))return;const m=h.body&&Ko(h.body)?A$e(h.body,i):et,y={checker:i,synthNamesMap:l,setOfExpressionsToReturn:p,isInJSFile:u};if(!m.length)return;const T=Pa(t.text,C_(s).pos);e.insertModifierAt(t,T,134,{suffix:" "});for(const A of m)if(Uo(A,function R(M){if(sa(M)){const C=wD(M,M,y,!1);if(NI())return!0;e.replaceNodeWithNodes(t,A,C)}else if(!ea(M)&&(Uo(M,R),NI()))return!0}),NI())return}function A$e(e,t){const r=[];return LE(e,i=>{C5(i,t)&&r.push(i)}),r}function I$e(e,t){if(!e.body)return new Set;const r=new Set;return Uo(e.body,function i(o){BO(o,t,"then")?(r.add(as(o)),Xe(o.arguments,i)):BO(o,t,"catch")||BO(o,t,"finally")?(r.add(as(o)),Uo(o,i)):JCe(o,t)?r.add(as(o)):Uo(o,i)}),r}function BO(e,t,r){if(!sa(e))return!1;const o=Zw(e,r)&&t.getTypeAtLocation(e);return!!(o&&t.getPromisedTypeOfPromise(o))}function qCe(e,t){return(Wr(e)&4)!==0&&e.target===t}function qY(e,t,r){if(e.expression.name.escapedText==="finally")return;const i=r.getTypeAtLocation(e.expression.expression);if(qCe(i,r.getPromiseType())||qCe(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===Rv(e.arguments,0))return Rv(e.typeArguments,0);if(t===Rv(e.arguments,1))return Rv(e.typeArguments,1)}else return Rv(e.typeArguments,0)}function JCe(e,t){return yt(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function x$e(e,t,r){const i=new Map,o=$p();return Uo(e,function s(l){if(!Ve(l)){Uo(l,s);return}const u=t.getSymbolAtLocation(l);if(u){const p=t.getTypeAtLocation(l),h=ZCe(p,t),m=Sa(u).toString();if(h&&!Ao(l.parent)&&!Bs(l.parent)&&!r.has(m)){const y=Kc(h.parameters),T=(y==null?void 0:y.valueDeclaration)&&Ao(y.valueDeclaration)&&ri(y.valueDeclaration.name,Ve)||w.createUniqueName("result",16),A=KCe(T,o);r.set(m,A),o.add(T.text,u)}else if(l.parent&&(Ao(l.parent)||Oi(l.parent)||$a(l.parent))){const y=l.text,T=o.get(y);if(T&&T.some(A=>A!==u)){const A=KCe(l,o);i.set(m,A.identifier),r.set(m,A),o.add(y,u)}else{const A=ll(l);r.set(m,_M(A)),o.add(y,u)}}}}),mO(e,!0,s=>{if($a(s)&&Ve(s.name)&&im(s.parent)){const l=t.getSymbolAtLocation(s.name),u=l&&i.get(String(Sa(l)));if(u&&u.text!==(s.name||s.propertyName).getText())return w.createBindingElement(s.dotDotDotToken,s.propertyName||s.name,u,s.initializer)}else if(Ve(s)){const l=t.getSymbolAtLocation(s),u=l&&i.get(String(Sa(l)));if(u)return w.createIdentifier(u.text)}})}function KCe(e,t){const r=(t.get(e.text)||et).length,i=r===0?e:w.createIdentifier(e.text+"_"+r);return _M(i)}function NI(){return!nz}function L0(){return nz=!1,et}function wD(e,t,r,i,o){if(BO(t,r.checker,"then"))return N$e(t,Rv(t.arguments,0),Rv(t.arguments,1),r,i,o);if(BO(t,r.checker,"catch"))return $Ce(t,Rv(t.arguments,0),r,i,o);if(BO(t,r.checker,"finally"))return D$e(t,Rv(t.arguments,0),r,i,o);if(Fr(t))return wD(e,t.expression,r,i,o);const s=r.checker.getTypeAtLocation(t);return s&&r.checker.getPromisedTypeOfPromise(s)?(N.assertNode(Pl(t).parent,Fr),C$e(e,t,r,i,o)):L0()}function JY({checker:e},t){if(t.kind===106)return!0;if(Ve(t)&&!al(t)&&Er(t)==="undefined"){const r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function R$e(e){const t=w.createUniqueName(e.identifier.text,16);return _M(t)}function XCe(e,t,r){let i;return r&&!VO(e,t)&&(GO(r)?(i=r,t.synthNamesMap.forEach((o,s)=>{if(o.identifier.text===r.identifier.text){const l=R$e(r);t.synthNamesMap.set(s,l)}})):i=_M(w.createUniqueName("result",16),r.types),Npe(i)),i}function YCe(e,t,r,i,o){const s=[];let l;if(i&&!VO(e,t)){l=ll(Npe(i));const u=i.types,p=t.checker.getUnionType(u,2),h=t.isInJSFile?void 0:t.checker.typeToTypeNode(p,void 0,void 0),m=[w.createVariableDeclaration(l,void 0,h)],y=w.createVariableStatement(void 0,w.createVariableDeclarationList(m,1));s.push(y)}return s.push(r),o&&l&&L$e(o)&&s.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(ll(rPe(o)),void 0,void 0,l)],2))),s}function D$e(e,t,r,i,o){if(!t||JY(r,t))return wD(e,e.expression.expression,r,i,o);const s=XCe(e,r,o),l=wD(e,e.expression.expression,r,!0,s);if(NI())return L0();const u=Rpe(t,i,void 0,void 0,e,r);if(NI())return L0();const p=w.createBlock(l),h=w.createBlock(u),m=w.createTryStatement(p,void 0,h);return YCe(e,r,m,s,o)}function $Ce(e,t,r,i,o){if(!t||JY(r,t))return wD(e,e.expression.expression,r,i,o);const s=tPe(t,r),l=XCe(e,r,o),u=wD(e,e.expression.expression,r,!0,l);if(NI())return L0();const p=Rpe(t,i,l,s,e,r);if(NI())return L0();const h=w.createBlock(u),m=w.createCatchClause(s&&ll(tz(s)),w.createBlock(p)),y=w.createTryStatement(h,m,void 0);return YCe(e,r,y,l,o)}function N$e(e,t,r,i,o,s){if(!t||JY(i,t))return $Ce(e,r,i,o,s);if(r&&!JY(i,r))return L0();const l=tPe(t,i),u=wD(e.expression.expression,e.expression.expression,i,!0,l);if(NI())return L0();const p=Rpe(t,o,s,l,e,i);return NI()?L0():So(u,p)}function C$e(e,t,r,i,o){if(VO(e,r)){let s=ll(t);return i&&(s=w.createAwaitExpression(s)),[w.createReturnStatement(s)]}return KY(o,w.createAwaitExpression(t),void 0)}function KY(e,t,r){return!e||nPe(e)?[w.createExpressionStatement(t)]:GO(e)&&e.hasBeenDeclared?[w.createExpressionStatement(w.createAssignment(ll(Dpe(e)),t))]:[w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(ll(tz(e)),void 0,r,t)],2))]}function xpe(e,t){if(t&&e){const r=w.createUniqueName("result",16);return[...KY(_M(r),e,t),w.createReturnStatement(r)]}return[w.createReturnStatement(e)]}function Rpe(e,t,r,i,o,s){var l;switch(e.kind){case 106:break;case 211:case 80:if(!i)break;const u=w.createCallExpression(ll(e),void 0,GO(i)?[Dpe(i)]:[]);if(VO(o,s))return xpe(u,qY(o,e,s.checker));const p=s.checker.getTypeAtLocation(e),h=s.checker.getSignaturesOfType(p,0);if(!h.length)return L0();const m=h[0].getReturnType(),y=KY(r,w.createAwaitExpression(u),qY(o,e,s.checker));return r&&r.types.push(s.checker.getAwaitedType(m)||m),y;case 218:case 219:{const T=e.body,A=(l=ZCe(s.checker.getTypeAtLocation(e),s.checker))==null?void 0:l.getReturnType();if(Ko(T)){let R=[],M=!1;for(const C of T.statements)if(Im(C))if(M=!0,C5(C,s.checker))R=R.concat(ePe(s,C,t,r));else{const O=A&&C.expression?QCe(s.checker,A,C.expression):C.expression;R.push(...xpe(O,qY(o,e,s.checker)))}else{if(t&&LE(C,Iv))return L0();R.push(C)}return VO(o,s)?R.map(C=>ll(C)):P$e(R,r,s,M)}else{const R=BX(T,s.checker)?ePe(s,w.createReturnStatement(T),t,r):et;if(R.length>0)return R;if(A){const M=QCe(s.checker,A,T);if(VO(o,s))return xpe(M,qY(o,e,s.checker));{const C=KY(r,M,void 0);return r&&r.types.push(s.checker.getAwaitedType(A)||A),C}}else return L0()}}default:return L0()}return et}function QCe(e,t,r){const i=ll(r);return e.getPromisedTypeOfPromise(t)?w.createAwaitExpression(i):i}function ZCe(e,t){const r=t.getSignaturesOfType(e,0);return el(r)}function P$e(e,t,r,i){const o=[];for(const s of e)if(Im(s)){if(s.expression){const l=JCe(s.expression,r.checker)?w.createAwaitExpression(s.expression):s.expression;t===void 0?o.push(w.createExpressionStatement(l)):GO(t)&&t.hasBeenDeclared?o.push(w.createExpressionStatement(w.createAssignment(Dpe(t),l))):o.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(tz(t),void 0,void 0,l)],2)))}}else o.push(ll(s));return!i&&t!==void 0&&o.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(tz(t),void 0,void 0,w.createIdentifier("undefined"))],2))),o}function ePe(e,t,r,i){let o=[];return Uo(t,function s(l){if(sa(l)){const u=wD(l,l,e,r,i);if(o=o.concat(u),o.length>0)return}else ea(l)||Uo(l,s)}),o}function tPe(e,t){const r=[];let i;if(Bs(e)){if(e.parameters.length>0){const p=e.parameters[0].name;i=o(p)}}else Ve(e)?i=s(e):Fr(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);const h=Do(p.elements,m=>Gc(m)?[]:[o(m.name)]);return M$e(p,h)}function s(p){const h=u(p),m=l(h);return m&&t.synthNamesMap.get(Sa(m).toString())||_M(p,r)}function l(p){var h;return((h=ri(p,T_))==null?void 0:h.symbol)??t.checker.getSymbolAtLocation(p)}function u(p){return p.original?p.original:p}}function nPe(e){return e?GO(e)?!e.identifier.text:Jn(e.elements,nPe):!0}function _M(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function M$e(e,t=et,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function Dpe(e){return e.hasBeenReferenced=!0,e.identifier}function tz(e){return GO(e)?Npe(e):rPe(e)}function rPe(e){for(const t of e.elements)tz(t);return e.bindingPattern}function Npe(e){return e.hasBeenDeclared=!0,e.identifier}function GO(e){return e.kind===0}function L$e(e){return e.kind===1}function VO(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(as(e.original))}var XY,Cpe,nz,k$e=I({"src/services/codefixes/convertToAsyncFunction.ts"(){si(),Ia(),XY="convertToAsyncFunction",Cpe=[f.This_may_be_converted_to_an_async_function.code],nz=!0,Ta({errorCodes:Cpe,getCodeActions(e){nz=!0;const t=_r.ChangeTracker.with(e,r=>HCe(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return nz?[la(XY,t,f.Convert_to_async_function,XY,f.Convert_all_to_async_functions)]:[]},fixIds:[XY],getAllCodeActions:e=>bs(e,Cpe,(t,r)=>HCe(t,r.file,r.start,e.program.getTypeChecker()))})}});function w$e(e,t,r,i,o){var s;for(const l of e.imports){const u=(s=r.getResolvedModuleFromModuleSpecifier(l))==null?void 0:s.resolvedModule;if(!u||u.resolvedFileName!==t.fileName)continue;const p=IC(l);switch(p.kind){case 271:i.replaceNode(e,p,Kv(p.name,void 0,l,o));break;case 213:Td(p,!1)&&i.replaceNode(e,p,w.createPropertyAccessExpression(ll(p),"default"));break}}}function O$e(e,t,r,i,o){const s={original:X$e(e),additional:new Set},l=W$e(e,t,s);F$e(e,l,r);let u=!1,p;for(const h of mn(e.statements,Ll)){const m=oPe(e,h,r,t,s,i,o);m&&x4(m,p??(p=new Map))}for(const h of mn(e.statements,m=>!Ll(m))){const m=z$e(e,h,t,r,s,i,l,p,o);u=u||m}return p==null||p.forEach((h,m)=>{r.replaceNode(e,m,h)}),u}function W$e(e,t,r){const i=new Map;return iPe(e,o=>{const{text:s}=o.name;!i.has(s)&&(Mj(o.name)||t.resolveName(s,o,111551,!0))&&i.set(s,YY(`_${s}`,r))}),i}function F$e(e,t,r){iPe(e,(i,o)=>{if(o)return;const{text:s}=i.name;r.replaceNode(e,i,w.createIdentifier(t.get(s)||s))})}function iPe(e,t){e.forEachChild(function r(i){if(Fr(i)&&s1(e,i.expression)&&Ve(i.name)){const{parent:o}=i;t(i,mr(o)&&o.left===i&&o.operatorToken.kind===64)}i.forEachChild(r)})}function z$e(e,t,r,i,o,s,l,u,p){switch(t.kind){case 243:return oPe(e,t,i,r,o,s,p),!1;case 244:{const{expression:h}=t;switch(h.kind){case 213:return Td(h,!0)&&i.replaceNode(e,t,Kv(void 0,void 0,h.arguments[0],p)),!1;case 226:{const{operatorToken:m}=h;return m.kind===64&&G$e(e,r,h,i,l,u)}}}default:return!1}}function oPe(e,t,r,i,o,s,l){const{declarationList:u}=t;let p=!1;const h=Wt(u.declarations,m=>{const{name:y,initializer:T}=m;if(T){if(s1(e,T))return p=!0,hM([]);if(Td(T,!0))return p=!0,J$e(y,T.arguments[0],i,o,s,l);if(Fr(T)&&Td(T.expression,!0))return p=!0,B$e(y,T.name.text,T.expression.arguments[0],o,l)}return hM([w.createVariableStatement(void 0,w.createVariableDeclarationList([m],u.flags))])});if(p){r.replaceNodeWithNodes(e,t,Do(h,y=>y.newImports));let m;return Xe(h,y=>{y.useSitesToUnqualify&&x4(y.useSitesToUnqualify,m??(m=new Map))}),m}}function B$e(e,t,r,i,o){switch(e.kind){case 206:case 207:{const s=YY(t,i);return hM([cPe(s,t,r,o),$Y(void 0,e,w.createIdentifier(s))])}case 80:return hM([cPe(e.text,t,r,o)]);default:return N.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function G$e(e,t,r,i,o,s){const{left:l,right:u}=r;if(!Fr(l))return!1;if(s1(e,l))if(s1(e,u))i.delete(e,r.parent);else{const p=La(u)?V$e(u,s):Td(u,!0)?U$e(u.arguments[0],t):void 0;return p?(i.replaceNodeWithNodes(e,r.parent,p[0]),p[1]):(i.replaceRangeWithText(e,Af(l.getStart(e),u.pos),"export default"),!0)}else s1(e,l.expression)&&j$e(e,r,i,o);return!1}function V$e(e,t){const r=Jb(e.properties,i=>{switch(i.kind){case 177:case 178:case 304:case 305:return;case 303:return Ve(i.name)?q$e(i.name.text,i.initializer,t):void 0;case 174:return Ve(i.name)?lPe(i.name.text,[w.createToken(95)],i,t):void 0;default:N.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function j$e(e,t,r,i){const{text:o}=t.left.name,s=i.get(o);if(s!==void 0){const l=[$Y(void 0,s,t.right),Lpe([w.createExportSpecifier(!1,s,o)])];r.replaceNodeWithNodes(e,t.parent,l)}else H$e(t,e,r)}function U$e(e,t){const r=e.text,i=t.getSymbolAtLocation(e),o=i?i.exports:M6;return o.has("export=")?[[Ppe(r)],!0]:o.has("default")?o.size>1?[[aPe(r),Ppe(r)],!0]:[[Ppe(r)],!0]:[[aPe(r)],!1]}function aPe(e){return Lpe(void 0,e)}function Ppe(e){return Lpe([w.createExportSpecifier(!1,void 0,"default")],e)}function H$e({left:e,right:t,parent:r},i,o){const s=e.name.text;if((Os(t)||Gs(t)||Qc(t))&&(!t.name||t.name.text===s)){o.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},w.createToken(95),{suffix:" "}),t.name||o.insertName(i,t,s);const l=vs(r,27,i);l&&o.delete(i,l)}else o.replaceNodeRangeWithNodes(i,e.expression,vs(e,25,i),[w.createToken(95),w.createToken(87)],{joiner:" ",suffix:" "})}function q$e(e,t,r){const i=[w.createToken(95)];switch(t.kind){case 218:{const{name:s}=t;if(s&&s.text!==e)return o()}case 219:return lPe(e,i,t,r);case 231:return $$e(e,i,t,r);default:return o()}function o(){return $Y(i,w.createIdentifier(e),Mpe(t,r))}}function Mpe(e,t){if(!t||!bt(zo(t.keys()),i=>sf(e,i)))return e;return To(e)?lX(e,!0,r):mO(e,!0,r);function r(i){if(i.kind===211){const o=t.get(i);return t.delete(i),o}}}function J$e(e,t,r,i,o,s){switch(e.kind){case 206:{const l=Jb(e.elements,u=>u.dotDotDotToken||u.initializer||u.propertyName&&!Ve(u.propertyName)||!Ve(u.name)?void 0:uPe(u.propertyName&&u.propertyName.text,u.name.text));if(l)return hM([Kv(void 0,l,t,s)])}case 207:{const l=YY(qpe(t.text,o),i);return hM([Kv(w.createIdentifier(l),void 0,t,s),$Y(void 0,ll(e),w.createIdentifier(l))])}case 80:return K$e(e,t,r,i,s);default:return N.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function K$e(e,t,r,i,o){const s=r.getSymbolAtLocation(e),l=new Map;let u=!1,p;for(const m of i.original.get(e.text)){if(r.getSymbolAtLocation(m)!==s||m===e)continue;const{parent:y}=m;if(Fr(y)){const{name:{text:T}}=y;if(T==="default"){u=!0;const A=m.getText();(p??(p=new Map)).set(y,w.createIdentifier(A))}else{N.assert(y.expression===m,"Didn't expect expression === use");let A=l.get(T);A===void 0&&(A=YY(T,i),l.set(T,A)),(p??(p=new Map)).set(y,w.createIdentifier(A))}}else u=!0}const h=l.size===0?void 0:zo(Qa(l.entries(),([m,y])=>w.createImportSpecifier(!1,m===y?void 0:w.createIdentifier(m),w.createIdentifier(y))));return h||(u=!0),hM([Kv(u?ll(e):void 0,h,t,o)],p)}function YY(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function X$e(e){const t=$p();return sPe(e,r=>t.add(r.text,r)),t}function sPe(e,t){Ve(e)&&Y$e(e)&&t(e),e.forEachChild(r=>sPe(r,t))}function Y$e(e){const{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 lPe(e,t,r,i){return w.createFunctionDeclaration(So(t,_1(r.modifiers)),ll(r.asteriskToken),e,_1(r.typeParameters),_1(r.parameters),ll(r.type),w.converters.convertToFunctionBlock(Mpe(r.body,i)))}function $$e(e,t,r,i){return w.createClassDeclaration(So(t,_1(r.modifiers)),e,_1(r.typeParameters),_1(r.heritageClauses),Mpe(r.members,i))}function cPe(e,t,r,i){return t==="default"?Kv(w.createIdentifier(e),void 0,r,i):Kv(void 0,[uPe(t,e)],r,i)}function uPe(e,t){return w.createImportSpecifier(!1,e!==void 0&&e!==t?w.createIdentifier(e):void 0,w.createIdentifier(t))}function $Y(e,t,r){return w.createVariableStatement(e,w.createVariableDeclarationList([w.createVariableDeclaration(t,void 0,void 0,r)],2))}function Lpe(e,t){return w.createExportDeclaration(void 0,!1,e&&w.createNamedExports(e),t===void 0?void 0:w.createStringLiteral(t))}function hM(e,t){return{newImports:e,useSitesToUnqualify:t}}var Q$e=I({"src/services/codefixes/convertToEsModule.ts"(){si(),Ia(),Ta({errorCodes:[f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:r,preferences:i}=e,o=_r.ChangeTracker.with(e,s=>{if(O$e(t,r.getTypeChecker(),s,os(r.getCompilerOptions()),lf(t,i)))for(const u of r.getSourceFiles())w$e(u,t,r,s,lf(u,i))});return[n_("convertToEsModule",o,f.Convert_to_ES_module)]}})}});function dPe(e,t){const r=Vn(po(e,t),Id);return N.assert(!!r,"Expected position to be owned by a qualified name."),Ve(r.left)?r:void 0}function pPe(e,t,r){const i=r.right.text,o=w.createIndexedAccessTypeNode(w.createTypeReferenceNode(r.left,void 0),w.createLiteralTypeNode(w.createStringLiteral(i)));e.replaceNode(t,r,o)}var QY,kpe,Z$e=I({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){si(),Ia(),QY="correctQualifiedNameToIndexedAccessType",kpe=[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],Ta({errorCodes:kpe,getCodeActions(e){const t=dPe(e.sourceFile,e.span.start);if(!t)return;const r=_r.ChangeTracker.with(e,o=>pPe(o,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[la(QY,r,[f.Rewrite_as_the_indexed_access_type_0,i],QY,f.Rewrite_all_as_indexed_access_types)]},fixIds:[QY],getAllCodeActions:e=>bs(e,kpe,(t,r)=>{const i=dPe(r.file,r.start);i&&pPe(t,r.file,i)})})}});function fPe(e,t){return ri(po(t,e.start).parent,Ku)}function mPe(e,t,r){if(!t)return;const i=t.parent,o=i.parent,s=eQe(t,r);if(s.length===i.elements.length)e.insertModifierBefore(r.sourceFile,156,i);else{const l=w.updateExportDeclaration(o,o.modifiers,!1,w.updateNamedExports(i,mn(i.elements,p=>!Or(s,p))),o.moduleSpecifier,void 0),u=w.createExportDeclaration(void 0,!0,w.createNamedExports(s),o.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,o,l,{leadingTriviaOption:_r.LeadingTriviaOption.IncludeAll,trailingTriviaOption:_r.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,o,u)}}function eQe(e,t){const r=e.parent;if(r.elements.length===1)return r.elements;const i=kue(Dd(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return mn(r.elements,o=>{var s;return o===e||((s=Lue(o,i))==null?void 0:s.code)===ZY[0]})}var ZY,e$,tQe=I({"src/services/codefixes/convertToTypeOnlyExport.ts"(){si(),Ia(),ZY=[f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],e$="convertToTypeOnlyExport",Ta({errorCodes:ZY,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>mPe(i,fPe(t.span,t.sourceFile),t));if(r.length)return[la(e$,r,f.Convert_to_type_only_export,e$,f.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[e$],getAllCodeActions:function(t){const r=new Map;return bs(t,ZY,(i,o)=>{const s=fPe(o,t.sourceFile);s&&Am(r,as(s.parent.parent))&&mPe(i,s,t)})}})}});function _Pe(e,t){const{parent:r}=po(e,t);return tp(r)||Mc(r)&&r.importClause?r:void 0}function hPe(e,t,r){if(e.parent.parent.name)return!1;const i=e.parent.elements.filter(s=>!s.isTypeOnly);if(i.length===1)return!0;const o=r.getTypeChecker();for(const s of i)if(Ws.Core.eachSymbolReferenceInFile(s.name,o,t,u=>!h0(u)))return!1;return!0}function rz(e,t,r){var i;if(tp(r))e.replaceNode(t,r,w.updateImportSpecifier(r,!0,r.propertyName,r.name));else{const o=r.importClause;if(o.name&&o.namedBindings)e.replaceNodeWithNodes(t,r,[w.createImportDeclaration(_1(r.modifiers,!0),w.createImportClause(!0,ll(o.name,!0),void 0),ll(r.moduleSpecifier,!0),ll(r.attributes,!0)),w.createImportDeclaration(_1(r.modifiers,!0),w.createImportClause(!0,void 0,ll(o.namedBindings,!0)),ll(r.moduleSpecifier,!0),ll(r.attributes,!0))]);else{const s=((i=o.namedBindings)==null?void 0:i.kind)===275?w.updateNamedImports(o.namedBindings,Zo(o.namedBindings.elements,u=>w.updateImportSpecifier(u,!1,u.propertyName,u.name))):o.namedBindings,l=w.updateImportDeclaration(r,r.modifiers,w.updateImportClause(o,!0,o.name,s),r.moduleSpecifier,r.attributes);e.replaceNode(t,r,l)}}}var wpe,iz,nQe=I({"src/services/codefixes/convertToTypeOnlyImport.ts"(){si(),Ia(),wpe=[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],iz="convertToTypeOnlyImport",Ta({errorCodes:wpe,getCodeActions:function(t){var r;const i=_Pe(t.sourceFile,t.span.start);if(i){const o=_r.ChangeTracker.with(t,u=>rz(u,t.sourceFile,i)),s=i.kind===276&&hPe(i,t.sourceFile,t.program)?_r.ChangeTracker.with(t,u=>rz(u,t.sourceFile,i.parent.parent.parent)):void 0,l=la(iz,o,i.kind===276?[f.Use_type_0,((r=i.propertyName)==null?void 0:r.text)??i.name.text]:f.Use_import_type,iz,f.Fix_all_with_type_only_imports);return bt(s)?[n_(iz,s,f.Use_import_type),l]:[l]}},fixIds:[iz],getAllCodeActions:function(t){const r=new Set;return bs(t,wpe,(i,o)=>{const s=_Pe(o.file,o.start);(s==null?void 0:s.kind)===272&&!r.has(s)?(rz(i,o.file,s),r.add(s)):(s==null?void 0:s.kind)===276&&!r.has(s.parent.parent.parent)&&hPe(s,o.file,t.program)?(rz(i,o.file,s.parent.parent.parent),r.add(s.parent.parent.parent)):(s==null?void 0:s.kind)===276&&rz(i,o.file,s)})}})}});function gPe(e,t,r,i,o=!1){if(!US(t))return;const s=iQe(t);if(!s)return;const l=t.parent,{leftSibling:u,rightSibling:p}=rQe(t);let h=l.getStart(),m="";!u&&l.comment&&(h=vPe(l,l.getStart(),t.getStart()),m=`${i} */${i}`),u&&(o&&US(u)?(h=t.getStart(),m=""):(h=vPe(l,u.getStart(),t.getStart()),m=`${i} */${i}`));let y=l.getEnd(),T="";p&&(o&&US(p)?(y=p.getStart(),T=`${i}${i}`):(y=p.getStart(),T=`${i}/**${i} * `)),e.replaceRange(r,{pos:h,end:y},s,{prefix:m,suffix:T})}function rQe(e){const 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=i<r?t.getChildAt(i+1):void 0;return{leftSibling:o,rightSibling:s}}function vPe(e,t,r){const i=e.getText().substring(t-e.getStart(),r-e.getStart());for(let o=i.length;o>0;o--)if(!/[*/\s]/g.test(i.substring(o-1,o)))return t+o;return r}function iQe(e){var t;const{typeExpression:r}=e;if(!r)return;const i=(t=e.name)==null?void 0:t.getText();if(i){if(r.kind===329)return oQe(i,r);if(r.kind===316)return aQe(i,r)}}function oQe(e,t){const r=yPe(t);if(bt(r))return w.createInterfaceDeclaration(void 0,e,void 0,void 0,r)}function aQe(e,t){const r=ll(t.type);if(r)return w.createTypeAliasDeclaration(void 0,w.createIdentifier(e),void 0,r)}function yPe(e){const t=e.jsDocPropertyTags;return bt(t)?eo(t,i=>{var o;const s=sQe(i),l=(o=i.typeExpression)==null?void 0:o.type,u=i.isBracketed;let p;if(l&&jS(l)){const h=yPe(l);p=w.createTypeLiteralNode(h)}else l&&(p=ll(l));if(p&&s){const h=u?w.createToken(58):void 0;return w.createPropertySignature(void 0,s,h,p)}}):void 0}function sQe(e){return e.name.kind===80?e.name.text:e.name.right.text}function lQe(e){return Wp(e)?Do(e.jsDoc,t=>{var r;return(r=t.tags)==null?void 0:r.filter(i=>US(i))}):[]}var t$,Ope,cQe=I({"src/services/codefixes/convertTypedefToType.ts"(){si(),Ia(),t$="convertTypedefToType",Ope=[f.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],Ta({fixIds:[t$],errorCodes:Ope,getCodeActions(e){const t=Xv(e.host,e.formatContext.options),r=po(e.sourceFile,e.span.start);if(!r)return;const i=_r.ChangeTracker.with(e,o=>gPe(o,r,e.sourceFile,t));if(i.length>0)return[la(t$,i,f.Convert_typedef_to_TypeScript_type,t$,f.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>bs(e,Ope,(t,r)=>{const i=Xv(e.host,e.formatContext.options),o=po(r.file,r.start);o&&gPe(t,o,r.file,i,!0)})})}});function bPe(e,t){const r=po(e,t);if(Ve(r)){const i=oa(r.parent.parent,gp),o=r.getText(e);return{container:oa(i.parent,yp),typeNode:i.type,constraint:o,name:o==="K"?"P":"K"}}}function EPe(e,t,{container:r,typeNode:i,constraint:o,name:s}){e.replaceNode(t,r,w.createMappedTypeNode(void 0,w.createTypeParameterDeclaration(void 0,s,w.createTypeReferenceNode(o)),void 0,void 0,i,void 0))}var n$,Wpe,uQe=I({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){si(),Ia(),n$="convertLiteralTypeToMappedType",Wpe=[f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],Ta({errorCodes:Wpe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=bPe(r,i.start);if(!o)return;const{name:s,constraint:l}=o,u=_r.ChangeTracker.with(t,p=>EPe(p,r,o));return[la(n$,u,[f.Convert_0_to_1_in_0,l,s],n$,f.Convert_all_type_literals_to_mapped_type)]},fixIds:[n$],getAllCodeActions:e=>bs(e,Wpe,(t,r)=>{const i=bPe(r.file,r.start);i&&EPe(t,r.file,i)})})}});function SPe(e,t){return N.checkDefined(au(po(e,t)),"There should be a containing class")}function TPe(e){return!e.valueDeclaration||!(ud(e.valueDeclaration)&2)}function APe(e,t,r,i,o,s){const l=e.program.getTypeChecker(),u=dQe(i,l),p=l.getTypeAtLocation(t),m=l.getPropertiesOfType(p).filter(D6(TPe,C=>!u.has(C.escapedName))),y=l.getTypeAtLocation(i),T=In(i.members,C=>Ml(C));y.getNumberIndexType()||R(p,1),y.getStringIndexType()||R(p,0);const A=CI(r,e.program,s,e.host);Hfe(i,m,r,e,s,A,C=>M(r,i,C)),A.writeFixes(o);function R(C,O){const U=l.getIndexInfoOfType(C,O);U&&M(r,i,l.indexInfoToIndexSignatureDeclaration(U,i,void 0,OD(e)))}function M(C,O,U){T?o.insertNodeAfter(C,T,U):o.insertMemberAtStart(C,O,U)}}function dQe(e,t){const r=I_(e);if(!r)return ca();const i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return ca(o.filter(TPe))}var Fpe,r$,pQe=I({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){si(),Ia(),Fpe=[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],r$="fixClassIncorrectlyImplementsInterface",Ta({errorCodes:Fpe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=SPe(t,r.start);return eo(vR(i),o=>{const s=_r.ChangeTracker.with(e,l=>APe(e,o,t,i,l,e.preferences));return s.length===0?void 0:la(r$,s,[f.Implement_interface_0,o.getText(t)],r$,f.Implement_all_unimplemented_interfaces)})},fixIds:[r$],getAllCodeActions(e){const t=new Map;return bs(e,Fpe,(r,i)=>{const o=SPe(i.file,i.start);if(Am(t,as(o)))for(const s of vR(o))APe(e,s,i.file,o,r,e.preferences)})}})}});function CI(e,t,r,i,o){return IPe(e,t,!1,r,i,o)}function IPe(e,t,r,i,o,s){const l=t.getCompilerOptions(),u=[],p=[],h=new Map,m=new Map;return{addImportFromDiagnostic:y,addImportFromExportedSymbol:T,writeFixes:R,hasFixes:M};function y(C,O){const U=PPe(O,C.code,C.start,r);!U||!U.length||A(Ua(U))}function T(C,O){const U=N.checkDefined(C.parent),K=y5(C,os(l)),Q=t.getTypeChecker(),V=Q.getMergedSymbol(bu(C,Q)),se=DPe(e,V,K,U,!1,t,o,i,s),G=o$(e,t),ne=xPe(e,N.checkDefined(se),t,void 0,!!O,G,o,i);ne&&A({fix:ne,symbolName:K,errorIdentifierText:void 0})}function A(C){var O,U;const{fix:K,symbolName:Q}=C;switch(K.kind){case 0:u.push(K);break;case 1:p.push(K);break;case 2:{const{importClauseOrBindingPattern:ne,importKind:he,addAsTypeOnly:ye}=K,Y=String(as(ne));let X=h.get(Y);if(X||h.set(Y,X={importClauseOrBindingPattern:ne,defaultImport:void 0,namedImports:new Map}),he===0){const oe=X==null?void 0:X.namedImports.get(Q);X.namedImports.set(Q,V(oe,ye))}else N.assert(X.defaultImport===void 0||X.defaultImport.name===Q,"(Add to Existing) Default import should be missing or match symbolName"),X.defaultImport={name:Q,addAsTypeOnly:V((O=X.defaultImport)==null?void 0:O.addAsTypeOnly,ye)};break}case 3:{const{moduleSpecifier:ne,importKind:he,useRequire:ye,addAsTypeOnly:Y}=K,X=se(ne,he,ye,Y);switch(N.assert(X.useRequire===ye,"(Add new) Tried to add an `import` and a `require` for the same module"),he){case 1:N.assert(X.defaultImport===void 0||X.defaultImport.name===Q,"(Add new) Default import should be missing or match symbolName"),X.defaultImport={name:Q,addAsTypeOnly:V((U=X.defaultImport)==null?void 0:U.addAsTypeOnly,Y)};break;case 0:const oe=(X.namedImports||(X.namedImports=new Map)).get(Q);X.namedImports.set(Q,V(oe,Y));break;case 3:case 2:N.assert(X.namespaceLikeImport===void 0||X.namespaceLikeImport.name===Q,"Namespacelike import shoudl be missing or match symbolName"),X.namespaceLikeImport={importKind:he,name:Q,addAsTypeOnly:Y};break}break}case 4:break;default:N.assertNever(K,`fix wasn't never - got kind ${K.kind}`)}function V(ne,he){return Math.max(ne??0,he)}function se(ne,he,ye,Y){const X=G(ne,!0),oe=G(ne,!1),pe=m.get(X),Ce=m.get(oe),de={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:ye};return he===1&&Y===2?pe||(m.set(X,de),de):Y===1&&(pe||Ce)?pe||Ce:Ce||(m.set(oe,de),de)}function G(ne,he){return`${he?1:0}|${ne}`}}function R(C,O){let U;e.imports.length===0&&O!==void 0?U=O:U=lf(e,i);for(const Q of u)jpe(C,e,Q);for(const Q of p)FPe(C,e,Q,U);h.forEach(({importClauseOrBindingPattern:Q,defaultImport:V,namedImports:se})=>{WPe(C,e,Q,V,zo(se.entries(),([G,ne])=>({addAsTypeOnly:ne,name:G})),i)});let K;m.forEach(({useRequire:Q,defaultImport:V,namedImports:se,namespaceLikeImport:G},ne)=>{const he=ne.slice(2),Y=(Q?GPe:BPe)(he,U,V,se&&zo(se.entries(),([X,oe])=>({addAsTypeOnly:oe,name:X})),G,l,i);K=Px(K,Y)}),K&&iM(C,e,K,!0,i)}function M(){return u.length>0||p.length>0||h.size>0||m.size>0}}function fQe(e,t,r,i){const o=dM(e,i,r),s=NPe(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:l};function l(u,p,h,m){const{fixes:y,computedWithoutCacheCount:T}=i$(u,p,h,!1,t,e,r,i,s,m),A=MPe(y,e,t,o,r);return A&&{...A,computedWithoutCacheCount:T}}}function mQe(e,t,r,i,o,s,l,u,p,h,m,y){let T;r?(T=EO(i,l,u,m,y).get(i.path,r),N.assertIsDefined(T,"Some exportInfo should match the specified exportMapKey")):(T=fV(Zf(t.name))?[hQe(e,o,t,u,l)]:DPe(i,e,o,t,s,u,l,m,y),N.assertIsDefined(T,"Some exportInfo should match the specified symbol / moduleSymbol"));const A=o$(i,u),R=h0(po(i,h)),M=N.checkDefined(xPe(i,T,u,h,R,A,l,m));return{moduleSpecifier:M.moduleSpecifier,codeAction:RPe(Vpe({host:l,formatContext:p,preferences:m},i,o,M,!1,u,m))}}function _Qe(e,t,r,i,o,s){const l=r.getCompilerOptions(),u=UB(Gpe(e,r.getTypeChecker(),t,l)),p=wPe(e,t,u,r),h=u!==t.text;return p&&RPe(Vpe({host:i,formatContext:o,preferences:s},e,u,p,h,r,s))}function xPe(e,t,r,i,o,s,l,u){const p=dM(e,u,l);return MPe(i$(t,i,o,s,r,e,l,u).fixes,e,r,p,l)}function RPe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function DPe(e,t,r,i,o,s,l,u,p){const h=CPe(s,l);return EO(e,l,s,u,p).search(e.path,o,m=>m===r,m=>{if(bu(m[0].symbol,h(m[0].isFromPackageJson))===t&&m.some(y=>y.moduleSymbol===i||y.symbol.parent===i))return m})}function hQe(e,t,r,i,o){var s,l;const u=i.getCompilerOptions(),p=m(i.getTypeChecker(),!1);if(p)return p;const h=(l=(s=o.getPackageJsonAutoImportProvider)==null?void 0:s.call(o))==null?void 0:l.getTypeChecker();return N.checkDefined(h&&m(h,!0),"Could not find symbol in specified module for code actions");function m(y,T){const A=x5(r,y,u);if(A&&bu(A.symbol,y)===e)return{symbol:A.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:A.exportKind,targetFlags:bu(e,y).flags,isFromPackageJson:T};const R=y.tryGetMemberInModuleExportsAndProperties(t,r);if(R&&bu(R,y)===e)return{symbol:R,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:bu(e,y).flags,isFromPackageJson:T}}}function i$(e,t,r,i,o,s,l,u,p=NPe(o.getTypeChecker(),s,o.getCompilerOptions()),h){const m=o.getTypeChecker(),y=Do(e,p.getImportsForExportInfo),T=t!==void 0&&gQe(y,t),A=yQe(y,r,m,o.getCompilerOptions());if(A)return{computedWithoutCacheCount:0,fixes:[...T?[T]:et,A]};const{fixes:R,computedWithoutCacheCount:M=0}=EQe(e,y,o,s,t,r,i,l,u,h);return{computedWithoutCacheCount:M,fixes:[...T?[T]:et,...R]}}function gQe(e,t){return Ht(e,({declaration:r,importKind:i})=>{var o;if(i!==0)return;const s=vQe(r),l=s&&((o=pR(r))==null?void 0:o.text);if(l)return{kind:0,namespacePrefix:s,usagePosition:t,moduleSpecifier:l}})}function vQe(e){var t,r,i;switch(e.kind){case 260:return(t=ri(e.name,Ve))==null?void 0:t.text;case 271:return e.name.text;case 272:return(i=ri((r=e.importClause)==null?void 0:r.namedBindings,Yy))==null?void 0:i.name.text;default:return N.assertNever(e)}}function zpe(e,t,r,i,o,s){return e?t&&s.importsNotUsedAsValues===2||cU(s)&&(!(i&111551)||o.getTypeOnlyAliasDeclaration(r))?2:1:4}function yQe(e,t,r,i){let o;for(const l of e){const u=s(l);if(!u)continue;const p=lL(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:h}){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;const{importClause:m}=l;if(!m||!ls(l.moduleSpecifier))return;const{name:y,namedBindings:T}=m;if(m.isTypeOnly&&!(u===0&&T))return;const A=zpe(t,!1,p,h,r,i);if(!(u===1&&(y||A===2&&T))&&!(u===0&&(T==null?void 0:T.kind)===274))return{kind:2,importClauseOrBindingPattern:m,importKind:u,moduleSpecifier:l.moduleSpecifier.text,addAsTypeOnly:A}}}function NPe(e,t,r){let i;for(const o of t.imports){const s=IC(o);if(Z4(s.parent)){const l=e.resolveExternalModuleName(o);l&&(i||(i=$p())).add(Sa(l),s.parent)}else if(s.kind===272||s.kind===271){const l=e.getSymbolAtLocation(o);l&&(i||(i=$p())).add(Sa(l),s)}}return{getImportsForExportInfo:({moduleSymbol:o,exportKind:s,targetFlags:l,symbol:u})=>{if(!(l&111551)&&cd(t))return et;const p=i==null?void 0:i.get(Sa(o));if(!p)return et;const h=Bpe(t,s,r);return p.map(m=>({declaration:m,importKind:h,symbol:u,targetFlags:l}))}}}function o$(e,t){if(!cd(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const r=t.getCompilerOptions();if(r.configFile)return wu(r)<5;if(e.impliedNodeFormat===1)return!0;if(e.impliedNodeFormat===99)return!1;for(const i of t.getSourceFiles())if(!(i===e||!cd(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function CPe(e,t){return ch(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function bQe(e,t,r,i,o,s,l,u,p){const h=cd(t),m=e.getCompilerOptions(),y=tT(e,l),T=CPe(e,l),A=pd(m),R=t5(A),M=p?U=>({moduleSpecifiers:l1.tryGetModuleSpecifiersFromCache(U,t,y,u),computedWithoutCache:!1}):(U,K)=>l1.getModuleSpecifiersWithCacheInfo(U,K,m,t,y,u,void 0,!0);let C=0;const O=Do(s,(U,K)=>{const Q=T(U.isFromPackageJson),{computedWithoutCache:V,moduleSpecifiers:se}=M(U.moduleSymbol,Q),G=!!(U.targetFlags&111551),ne=zpe(i,!0,U.symbol,U.targetFlags,Q,m);return C+=V?1:0,eo(se,he=>{var ye;if(R&&x0(he))return;if(!G&&h&&r!==void 0)return{kind:1,moduleSpecifier:he,usagePosition:r,exportInfo:U,isReExport:K>0};const Y=Bpe(t,U.exportKind,m);let X;if(r!==void 0&&Y===3&&U.exportKind===0){const oe=Q.resolveExternalModuleSymbol(U.moduleSymbol);let pe;oe!==U.moduleSymbol&&(pe=(ye=R5(oe,Q,m))==null?void 0:ye.name),pe||(pe=Hpe(U.moduleSymbol,os(m),!1)),X={namespacePrefix:pe,usagePosition:r}}return{kind:3,moduleSpecifier:he,importKind:Y,useRequire:o,addAsTypeOnly:ne,exportInfo:U,isReExport:K>0,qualification:X}})});return{computedWithoutCacheCount:C,fixes:O}}function EQe(e,t,r,i,o,s,l,u,p,h){const m=Ht(t,y=>SQe(y,s,l,r.getTypeChecker(),r.getCompilerOptions()));return m?{fixes:[m]}:bQe(r,i,o,s,l,e,u,p,h)}function SQe({declaration:e,importKind:t,symbol:r,targetFlags:i},o,s,l,u){var p;const h=(p=pR(e))==null?void 0:p.text;if(h){const m=s?4:zpe(o,!0,r,i,l,u);return{kind:3,moduleSpecifier:h,importKind:t,addAsTypeOnly:m,useRequire:s}}}function PPe(e,t,r,i){const o=po(e.sourceFile,r);let s;if(t===f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)s=xQe(e,o);else if(Ve(o))if(t===f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const u=UB(Gpe(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),p=wPe(e.sourceFile,o,u,e.program);return p&&[{fix:p,symbolName:u,errorIdentifierText:o.text}]}else s=NQe(e,o,i);else return;const l=dM(e.sourceFile,e.preferences,e.host);return s&&TQe(s,e.sourceFile,e.program,l,e.host)}function TQe(e,t,r,i,o){const s=l=>il(l,o.getCurrentDirectory(),wv(o));return iS(e,(l,u)=>Ey(!!l.isJsxNamespaceFix,!!u.isJsxNamespaceFix)||nl(l.fix.kind,u.fix.kind)||LPe(l.fix,u.fix,t,r,i.allowsImportingSpecifier,s))}function MPe(e,t,r,i,o){if(bt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((s,l)=>LPe(l,s,t,r,i.allowsImportingSpecifier,u=>il(u,o.getCurrentDirectory(),wv(o)))===-1?l:s)}function LPe(e,t,r,i,o,s){return e.kind!==0&&t.kind!==0?Ey(o(t.moduleSpecifier),o(e.moduleSpecifier))||IQe(e.moduleSpecifier,t.moduleSpecifier,r,i)||Ey(kPe(e,r,i.getCompilerOptions(),s),kPe(t,r,i.getCompilerOptions(),s))||_k(e.moduleSpecifier,t.moduleSpecifier):0}function kPe(e,t,r,i){var o;if(e.isReExport&&((o=e.exportInfo)!=null&&o.moduleFileName)&&AQe(e.exportInfo.moduleFileName)){const s=i(ai(e.exportInfo.moduleFileName));return uo(t.path,s)}return!1}function AQe(e){return ic(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function IQe(e,t,r,i){return uo(e,"node:")&&!uo(t,"node:")?E5(r,i)?-1:1:uo(t,"node:")&&!uo(e,"node:")?E5(r,i)?1:-1:0}function xQe({sourceFile:e,program:t,host:r,preferences:i},o){const s=t.getTypeChecker(),l=RQe(o,s);if(!l)return;const u=s.getAliasedSymbol(l),p=l.name,h=[{symbol:l,moduleSymbol:u,moduleFileName:void 0,exportKind:3,targetFlags:u.flags,isFromPackageJson:!1}],m=o$(e,t);return i$(h,void 0,!1,m,t,e,r,i).fixes.map(T=>{var A;return{fix:T,symbolName:p,errorIdentifierText:(A=ri(o,Ve))==null?void 0:A.text}})}function RQe(e,t){const r=Ve(e)?t.getSymbolAtLocation(e):void 0;if(R3(r))return r;const{parent:i}=e;if(ld(i)&&i.tagName===e||lI(i)){const o=t.resolveName(t.getJsxNamespace(i),ld(i)?e:i,111551,!1);if(R3(o))return o}}function Bpe(e,t,r,i){if(r.verbatimModuleSyntax&&(wu(r)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return MQe(e,r,!!i);case 3:return DQe(e,r,!!i);default:return N.assertNever(t)}}function DQe(e,t,r){if(MS(t))return 1;const i=wu(t);switch(i){case 2:case 1:case 3:return lr(e)&&(sc(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 N.assertNever(i,`Unexpected moduleKind ${i}`)}}function NQe({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:o},s,l){const u=t.getTypeChecker(),p=t.getCompilerOptions();return Do(Gpe(e,u,s,p),h=>{if(h==="default")return;const m=h0(s),y=o$(e,t),T=PQe(h,cR(s),ZS(s),r,e,t,l,i,o);return zo(EE(T.values(),A=>i$(A,s.getStart(e),m,y,t,e,i,o).fixes),A=>({fix:A,symbolName:h,errorIdentifierText:s.text,isJsxNamespaceFix:h!==s.text}))})}function wPe(e,t,r,i){const o=i.getTypeChecker(),s=o.resolveName(r,t,111551,!0);if(!s)return;const l=o.getTypeOnlyAliasDeclaration(s);if(!(!l||Un(l)!==e))return{kind:4,typeOnlyAliasDeclaration:l}}function Gpe(e,t,r,i){const o=r.parent;if((ld(o)||e1(o))&&o.tagName===r&&bX(i.jsx)){const s=t.getJsxNamespace(e);if(CQe(s,r,t))return!SR(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,s]:[s]}return[r.text]}function CQe(e,t,r){if(SR(t.text))return!0;const i=r.resolveName(e,t,111551,!0);return!i||bt(i.declarations,s0)&&!(i.flags&111551)}function PQe(e,t,r,i,o,s,l,u,p){var h;const m=$p(),y=dM(o,p,u),T=(h=u.getModuleSpecifierCache)==null?void 0:h.call(u),A=ch(M=>tT(M?u.getPackageJsonAutoImportProvider():s,u));function R(M,C,O,U,K,Q){const V=A(Q);if(C&&RX(K,o,C,p,y,V,T)||!C&&y.allowsImportingAmbientModule(M,V)){const se=K.getTypeChecker();m.add(Aue(O,se).toString(),{symbol:O,moduleSymbol:M,moduleFileName:C==null?void 0:C.fileName,exportKind:U,targetFlags:bu(O,se).flags,isFromPackageJson:Q})}}return DX(s,u,p,l,(M,C,O,U)=>{const K=O.getTypeChecker();i.throwIfCancellationRequested();const Q=O.getCompilerOptions(),V=x5(M,K,Q);V&&(V.name===e||Hpe(M,os(Q),t)===e)&&jPe(V.resolvedSymbol,r)&&R(M,C,V.symbol,V.exportKind,O,U);const se=K.tryGetMemberInModuleExportsAndProperties(e,M);se&&jPe(se,r)&&R(M,C,se,0,O,U)}),m}function MQe(e,t,r){const i=MS(t),o=lr(e);if(!o&&wu(t)>=5)return i?1:2;if(o)return sc(e)||r?i?1:2:3;for(const s of e.statements)if(eu(s)&&!Fl(s.moduleReference))return 3;return i?1:3}function Vpe(e,t,r,i,o,s,l){let u;const p=_r.ChangeTracker.with(e,h=>{u=LQe(h,t,r,i,o,s,l)});return la(Jpe,p,u,Kpe,f.Add_all_missing_imports)}function LQe(e,t,r,i,o,s,l){const u=lf(t,l);switch(i.kind){case 0:return jpe(e,t,i),[f.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return FPe(e,t,i,u),[f.Change_0_to_1,r,zPe(i.moduleSpecifier,u)+r];case 2:{const{importClauseOrBindingPattern:p,importKind:h,addAsTypeOnly:m,moduleSpecifier:y}=i;WPe(e,t,p,h===1?{name:r,addAsTypeOnly:m}:void 0,h===0?[{name:r,addAsTypeOnly:m}]:et,l);const T=Zf(y);return o?[f.Import_0_from_1,r,T]:[f.Update_import_from_0,T]}case 3:{const{importKind:p,moduleSpecifier:h,addAsTypeOnly:m,useRequire:y,qualification:T}=i,A=y?GPe:BPe,R=p===1?{name:r,addAsTypeOnly:m}:void 0,M=p===0?[{name:r,addAsTypeOnly:m}]:void 0,C=p===2||p===3?{importKind:p,name:(T==null?void 0:T.namespacePrefix)||r,addAsTypeOnly:m}:void 0;return iM(e,t,A(h,u,R,M,C,s.getCompilerOptions(),l),!0,l),T&&jpe(e,t,T),o?[f.Import_0_from_1,r,h]:[f.Add_import_from_0,h]}case 4:{const{typeOnlyAliasDeclaration:p}=i,h=kQe(e,p,s,t,l);return h.kind===276?[f.Remove_type_from_import_of_0_from_1,r,OPe(h.parent.parent)]:[f.Remove_type_from_import_declaration_from_0,OPe(h)]}default:return N.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function OPe(e){var t,r;return e.kind===271?((r=ri((t=ri(e.moduleReference,Th))==null?void 0:t.expression,ls))==null?void 0:r.text)||e.moduleReference.getText():oa(e.parent.moduleSpecifier,Na).text}function kQe(e,t,r,i,o){const s=r.getCompilerOptions(),l=cU(s);switch(t.kind){case 276:if(t.isTypeOnly){const p=Cm.detectImportSpecifierSorting(t.parent.elements,o);if(t.parent.elements.length>1&&p){const h=w.updateImportSpecifier(t,!1,t.propertyName,t.name),m=Cm.getOrganizeImportsComparer(o,p===2),y=Cm.getImportSpecifierInsertionIndex(t.parent.elements,h,m,o);if(y!==t.parent.elements.indexOf(t))return e.delete(i,t),e.insertImportSpecifierAtIndex(i,h,t.parent,y),t}return e.deleteRange(i,{pos:l0(t.getFirstToken()),end:l0(t.propertyName??t.name)}),t}else return N.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:N.failBadSyntaxKind(t)}function u(p){var h;if(e.delete(i,$K(p,i)),!s.allowImportingTsExtensions){const m=pR(p.parent),y=m&&((h=r.getResolvedModuleFromModuleSpecifier(m))==null?void 0:h.resolvedModule);if(y!=null&&y.resolvedUsingTsExtension){const T=U2(m.text,ZF(m.text,s));e.replaceNode(i,m,w.createStringLiteral(T))}}if(l){const m=ri(p.namedBindings,Bg);if(m&&m.elements.length>1){Cm.detectImportSpecifierSorting(m.elements,o)&&t.kind===276&&m.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,m,0));for(const y of m.elements)y!==t&&!y.isTypeOnly&&e.insertModifierBefore(i,156,y)}}}}function WPe(e,t,r,i,o,s){var l;if(r.kind===206){i&&h(r,i.name,"default");for(const m of o)h(r,m.name,void 0);return}const u=r.isTypeOnly&&bt([i,...o],m=>(m==null?void 0:m.addAsTypeOnly)===4),p=r.namedBindings&&((l=ri(r.namedBindings,Bg))==null?void 0:l.elements);if(i&&(N.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),w.createIdentifier(i.name),{suffix:", "})),o.length){let m;if(typeof s.organizeImportsIgnoreCase=="boolean")m=s.organizeImportsIgnoreCase;else if(p){const R=Cm.detectImportSpecifierSorting(p,s);R!==3&&(m=R===2)}m===void 0&&(m=Cm.detectSorting(t,s)===2);const y=Cm.getOrganizeImportsComparer(s,m),T=Sv(o.map(R=>w.createImportSpecifier((!r.isTypeOnly||u)&&a$(R,s),void 0,w.createIdentifier(R.name))),(R,M)=>Cm.compareImportOrExportSpecifiers(R,M,y)),A=(p==null?void 0:p.length)&&Cm.detectImportSpecifierSorting(p,s);if(A&&!(m&&A===1))for(const R of T){const M=u&&!R.isTypeOnly?0:Cm.getImportSpecifierInsertionIndex(p,R,y,s);e.insertImportSpecifierAtIndex(t,R,r.namedBindings,M)}else if(p!=null&&p.length)for(const R of T)e.insertNodeInListAfter(t,Xa(p),R,p);else if(T.length){const R=w.createNamedImports(T);r.namedBindings?e.replaceNode(t,r.namedBindings,R):e.insertNodeAfter(t,N.checkDefined(r.name,"Import clause must have either named imports or a default import"),R)}}if(u&&(e.delete(t,$K(r,t)),p))for(const m of p)e.insertModifierBefore(t,156,m);function h(m,y,T){const A=w.createBindingElement(void 0,T,y);m.elements.length?e.insertNodeInListAfter(t,Xa(m.elements),A):e.replaceNode(t,m,w.createObjectBindingPattern([A]))}}function jpe(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function FPe(e,t,{moduleSpecifier:r,usagePosition:i},o){e.insertText(t,i,zPe(r,o))}function zPe(e,t){const r=YK(t);return`import(${r}${e}${r}).`}function Upe({addAsTypeOnly:e}){return e===2}function a$(e,t){return Upe(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function BPe(e,t,r,i,o,s,l){const u=AI(e,t);let p;if(r!==void 0||i!=null&&i.length){const h=(!r||Upe(r))&&Jn(i,Upe)||(s.verbatimModuleSyntax||l.preferTypeOnlyAutoImports)&&(r==null?void 0:r.addAsTypeOnly)!==4&&!bt(i,m=>m.addAsTypeOnly===4);p=Px(p,Kv(r&&w.createIdentifier(r.name),i==null?void 0:i.map(m=>w.createImportSpecifier(!h&&a$(m,l),void 0,w.createIdentifier(m.name))),e,t,h))}if(o){const h=o.importKind===3?w.createImportEqualsDeclaration(void 0,a$(o,l),w.createIdentifier(o.name),w.createExternalModuleReference(u)):w.createImportDeclaration(void 0,w.createImportClause(a$(o,l),void 0,w.createNamespaceImport(w.createIdentifier(o.name))),u,void 0);p=Px(p,h)}return N.checkDefined(p)}function GPe(e,t,r,i,o){const s=AI(e,t);let l;if(r||i!=null&&i.length){const u=(i==null?void 0:i.map(({name:h})=>w.createBindingElement(void 0,void 0,h)))||[];r&&u.unshift(w.createBindingElement(void 0,"default",r.name));const p=VPe(w.createObjectBindingPattern(u),s);l=Px(l,p)}if(o){const u=VPe(o.name,s);l=Px(l,u)}return N.checkDefined(l)}function VPe(e,t){return w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(typeof e=="string"?w.createIdentifier(e):e,void 0,void 0,w.createCallExpression(w.createIdentifier("require"),void 0,[t]))],2))}function jPe({declarations:e},t){return bt(e,r=>!!($w(r)&t))}function Hpe(e,t,r){return qpe(Ad(Zf(e.name)),t,r)}function qpe(e,t,r){const i=ic(kx(e,"/index"));let o="",s=!0;const l=i.charCodeAt(0);Jh(l,t)?(o+=String.fromCharCode(l),r&&(o=o.toUpperCase())):s=!1;for(let u=1;u<i.length;u++){const p=i.charCodeAt(u),h=e0(p,t);if(h){let m=String.fromCharCode(p);s||(m=m.toUpperCase()),o+=m}s=h}return LA(o)?`_${o}`:o||"_"}var Jpe,Kpe,Xpe,wQe=I({"src/services/codefixes/importFixes.ts"(){si(),Ia(),Jpe="import",Kpe="fixMissingImport",Xpe=[f.Cannot_find_name_0.code,f.Cannot_find_name_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.Cannot_find_namespace_0.code,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,f.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,f.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,f.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,f.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,f.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,f.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,f.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,f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,f.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,f.Cannot_find_namespace_0_Did_you_mean_1.code],Ta({errorCodes:Xpe,getCodeActions(e){const{errorCode:t,preferences:r,sourceFile:i,span:o,program:s}=e,l=PPe(e,t,o.start,!0);if(l)return l.map(({fix:u,symbolName:p,errorIdentifierText:h})=>Vpe(e,i,p,u,p!==h,s,r))},fixIds:[Kpe],getAllCodeActions:e=>{const{sourceFile:t,program:r,preferences:i,host:o,cancellationToken:s}=e,l=IPe(t,r,!0,i,o,s);return kD(e,Xpe,u=>l.addImportFromDiagnostic(u,e)),LD(_r.ChangeTracker.with(e,l.writeFixes))}})}});function UPe(e,t,r){const i=In(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=In(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=Qfe(o.file,vu(o.start,o.length));if(s!==void 0&&(Ve(s)&&hl(s.parent)&&(s=s.parent),hl(s))){if(GR(s.parent))return;const l=po(t,r.start),u=e.getTypeChecker();return{constraint:WQe(u,l)||OQe(o.messageText),declaration:s,token:l}}}function HPe(e,t,r,i,o,s){const{declaration:l,constraint:u}=s,p=t.getTypeChecker();if(Mo(u))e.insertText(o,l.name.end,` extends ${u}`);else{const h=os(t.getCompilerOptions()),m=OD({program:t,host:i}),y=CI(o,t,r,i),T=U$(p,y,u,void 0,h,void 0,m);T&&(e.replaceNode(o,l,w.updateTypeParameterDeclaration(l,void 0,l.name,T,l.default)),y.writeFixes(e))}}function OQe(e){const[,t]=W_(e,` +`,0).match(/`extends (.*)`/)||[];return t}function WQe(e,t){return ji(t.parent)?e.getTypeArgumentConstraint(t.parent):(yt(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var s$,Ype,FQe=I({"src/services/codefixes/fixAddMissingConstraint.ts"(){si(),Ia(),s$="addMissingConstraint",Ype=[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],Ta({errorCodes:Ype,getCodeActions(e){const{sourceFile:t,span:r,program:i,preferences:o,host:s}=e,l=UPe(i,t,r);if(l===void 0)return;const u=_r.ChangeTracker.with(e,p=>HPe(p,i,o,s,t,l));return[la(s$,u,f.Add_extends_constraint,s$,f.Add_extends_constraint_to_all_type_parameters)]},fixIds:[s$],getAllCodeActions:e=>{const{program:t,preferences:r,host:i}=e,o=new Map;return LD(_r.ChangeTracker.with(e,s=>{kD(e,Ype,l=>{const u=UPe(t,l.file,vu(l.start,l.length));if(u&&Am(o,as(u.declaration)))return HPe(s,t,r,i,l.file,u)})}))}})}});function qPe(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 zQe(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 BQe(e,t.sourceFile,i);default:N.fail("Unexpected error code: "+r)}}function zQe(e,t,r){const i=KPe(t,r);if(cd(t)){e.addJSDocTags(t,i,[w.createJSDocOverrideTag(w.createIdentifier("override"))]);return}const o=i.modifiers||et,s=In(o,QA),l=In(o,aae),u=In(o,y=>BK(y.kind)),p=oi(o,Eu),h=l?l.end:s?s.end:u?u.end:p?Pa(t.text,p.end):i.getStart(t),m=u||s||l?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,h,164,m)}function BQe(e,t,r){const i=KPe(t,r);if(cd(t)){e.filterJSDocTags(t,i,N6($W));return}const o=In(i.modifiers,sae);N.assertIsDefined(o),e.deleteModifier(t,o)}function JPe(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 KPe(e,t){const r=po(e,t),i=Vn(r,o=>di(o)?"quit":JPe(o));return N.assert(i&&JPe(i)),i}var $pe,gM,jO,Qpe,Zpe,GQe=I({"src/services/codefixes/fixOverrideModifier.ts"(){si(),Ia(),$pe="fixOverrideModifier",gM="fixAddOverrideModifier",jO="fixRemoveOverrideModifier",Qpe=[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],Zpe={[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:gM,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:gM,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:jO,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:jO,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:gM,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:gM,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:gM,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:jO,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:jO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers}},Ta({errorCodes:Qpe,getCodeActions:function(t){const{errorCode:r,span:i}=t,o=Zpe[r];if(!o)return et;const{descriptions:s,fixId:l,fixAllDescriptions:u}=o,p=_r.ChangeTracker.with(t,h=>qPe(h,t,r,i.start));return[dpe($pe,p,s,l,u)]},fixIds:[$pe,gM,jO],getAllCodeActions:e=>bs(e,Qpe,(t,r)=>{const{code:i,start:o}=r,s=Zpe[i];!s||s.fixId!==e.fixId||qPe(t,e,i,o)})})}});function XPe(e,t,r,i){const o=lf(t,i),s=w.createStringLiteral(r.name.text,o===0);e.replaceNode(t,r,p4(r)?w.createElementAccessChain(r.expression,r.questionDotToken,s):w.createElementAccessExpression(r.expression,s))}function YPe(e,t){return oa(po(e,t).parent,Fr)}var l$,efe,VQe=I({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){si(),Ia(),l$="fixNoPropertyAccessFromIndexSignature",efe=[f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],Ta({errorCodes:efe,fixIds:[l$],getCodeActions(e){const{sourceFile:t,span:r,preferences:i}=e,o=YPe(t,r.start),s=_r.ChangeTracker.with(e,l=>XPe(l,e.sourceFile,o,i));return[la(l$,s,[f.Use_element_access_for_0,o.name.text],l$,f.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>bs(e,efe,(t,r)=>XPe(t,r.file,YPe(r.file,r.start),e.preferences))})}});function $Pe(e,t,r,i){const o=po(t,r);if(!yD(o))return;const s=Fd(o,!1,!1);if(!(!Tc(s)&&!Os(s))&&!$i(Fd(s,!1,!1))){const l=N.checkDefined(vs(s,100,t)),{name:u}=s,p=N.checkDefined(s.body);return Os(s)?u&&Ws.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:I5]):(e.replaceNode(t,l,w.createToken(87)),e.insertText(t,u.end," = "),e.insertText(t,p.pos," =>"),[f.Convert_function_declaration_0_to_arrow_function,u.text])}}var c$,tfe,jQe=I({"src/services/codefixes/fixImplicitThis.ts"(){si(),Ia(),c$="fixImplicitThis",tfe=[f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Ta({errorCodes:tfe,getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t;let s;const l=_r.ChangeTracker.with(t,u=>{s=$Pe(u,r,o.start,i.getTypeChecker())});return s?[la(c$,l,s,c$,f.Fix_all_implicit_this_errors)]:et},fixIds:[c$],getAllCodeActions:e=>bs(e,tfe,(t,r)=>{$Pe(t,r.file,r.start,e.program.getTypeChecker())})})}});function QPe(e,t,r){var i,o;const s=po(e,t);if(Ve(s)){const l=Vn(s,Mc);if(l===void 0)return;const u=Na(l.moduleSpecifier)?l.moduleSpecifier:void 0;if(u===void 0)return;const p=(i=r.getResolvedModuleFromModuleSpecifier(u))==null?void 0:i.resolvedModule;if(p===void 0)return;const h=r.getSourceFile(p.resolvedFileName);if(h===void 0||xD(r,h))return;const m=h.symbol,y=(o=ri(m.valueDeclaration,ph))==null?void 0:o.locals;if(y===void 0)return;const T=y.get(s.escapedText);if(T===void 0)return;const A=HQe(T);return A===void 0?void 0:{exportName:{node:s,isTypeOnly:kR(A)},node:A,moduleSourceFile:h,moduleSpecifier:u.text}}}function UQe(e,t,{exportName:r,node:i,moduleSourceFile:o}){const s=u$(o,r.isTypeOnly);s?ZPe(e,t,o,s,[r]):vk(i)?e.insertExportModifier(o,i):eMe(e,t,o,[r])}function nfe(e,t,r,i,o){Ne(i)&&(o?ZPe(e,t,r,o,i):eMe(e,t,r,i))}function u$(e,t){const r=i=>Yl(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return oi(e.statements,r)}function ZPe(e,t,r,i,o){const s=i.exportClause&&Nf(i.exportClause)?i.exportClause.elements:w.createNodeArray([]),l=!i.isTypeOnly&&!!(rm(t.getCompilerOptions())||In(s,u=>u.isTypeOnly));e.replaceNode(r,i,w.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,w.createNamedExports(w.createNodeArray([...s,...tMe(o,l)],s.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function eMe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,w.createExportDeclaration(void 0,!1,w.createNamedExports(tMe(i,rm(t.getCompilerOptions()))),void 0,void 0))}function tMe(e,t){return w.createNodeArray(Wt(e,r=>w.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function HQe(e){if(e.valueDeclaration===void 0)return Kc(e.declarations);const t=e.valueDeclaration,r=Oi(t)?ri(t.parent.parent,Ll):void 0;return r&&Ne(r.declarationList.declarations)===1?r:t}var d$,rfe,qQe=I({"src/services/codefixes/fixImportNonExportedMember.ts"(){si(),Ia(),d$="fixImportNonExportedMember",rfe=[f.Module_0_declares_1_locally_but_it_is_not_exported.code],Ta({errorCodes:rfe,fixIds:[d$],getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=QPe(t,r.start,i);if(o===void 0)return;const s=_r.ChangeTracker.with(e,l=>UQe(l,i,o));return[la(d$,s,[f.Export_0_from_module_1,o.exportName.node.text,o.moduleSpecifier],d$,f.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return LD(_r.ChangeTracker.with(e,r=>{const i=new Map;kD(e,rfe,o=>{const s=QPe(o.file,o.start,t);if(s===void 0)return;const{exportName:l,node:u,moduleSourceFile:p}=s;if(u$(p,l.isTypeOnly)===void 0&&vk(u))r.insertExportModifier(p,u);else{const h=i.get(p)||{typeOnlyExports:[],exports:[]};l.isTypeOnly?h.typeOnlyExports.push(l):h.exports.push(l),i.set(p,h)}}),i.forEach((o,s)=>{const l=u$(s,!0);l&&l.isTypeOnly?(nfe(r,t,s,o.typeOnlyExports,l),nfe(r,t,s,o.exports,u$(s,!1))):nfe(r,t,s,[...o.exports,...o.typeOnlyExports],l)})}))}})}});function JQe(e,t){const r=po(e,t);return Vn(r,i=>i.kind===202)}function KQe(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;const l=w.updateNamedTupleMember(r,r.dotDotDotToken||(s?w.createToken(26):void 0),r.name,r.questionToken||(o?w.createToken(58):void 0),i);l!==r&&e.replaceNode(t,r,l)}var p$,nMe,XQe=I({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){si(),Ia(),p$="fixIncorrectNamedTupleSyntax",nMe=[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],Ta({errorCodes:nMe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=JQe(r,i.start),s=_r.ChangeTracker.with(t,l=>KQe(l,r,o));return[la(p$,s,f.Move_labeled_tuple_element_modifiers_to_labels,p$,f.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[p$]})}});function rMe(e,t,r,i){const 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)&&!w_(s))return;const l=r.program.getTypeChecker();let u;if(Fr(s)&&s.name===o){N.assert(Kh(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(mr(s)&&s.operatorToken.kind===103&&s.left===o&&qi(o)){const p=l.getTypeAtLocation(s.right);u=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(Id(s)&&s.right===o){const p=l.getSymbolAtLocation(s.left);p&&p.flags&1536&&(u=l.getSuggestedSymbolForNonexistentModule(s.right,p))}else if(tp(s)&&s.name===o){N.assertNode(o,Ve,"Expected an identifier for spelling (import)");const p=Vn(o,Mc),h=$Qe(r,p);h&&h.symbol&&(u=l.getSuggestedSymbolForNonexistentModule(o,h.symbol))}else if(w_(s)&&s.name===o){N.assertNode(o,Ve,"Expected an identifier for JSX attribute");const p=Vn(o,ld),h=l.getContextualTypeForArgumentAtIndex(p,0);u=l.getSuggestedSymbolForNonexistentJSXAttribute(o,h)}else if(y3(s)&&Yc(s)&&s.name===o){const p=Vn(o,di),h=p?I_(p):void 0,m=h?l.getTypeAtLocation(h):void 0;m&&(u=l.getSuggestedSymbolForNonexistentClassMember(fc(o),m))}else{const p=ZS(o),h=fc(o);N.assert(h!==void 0,"name should be defined"),u=l.getSuggestedSymbolForNonexistentSymbol(o,h,YQe(p))}return u===void 0?void 0:{node:o,suggestedSymbol:u}}function iMe(e,t,r,i,o){const s=El(i);if(!Zp(s,o)&&Fr(r.parent)){const l=i.valueDeclaration;l&&ad(l)&&qi(l.name)?e.replaceNode(t,r,w.createIdentifier(s)):e.replaceNode(t,r.parent,w.createElementAccessExpression(r.parent.expression,w.createStringLiteral(s)))}else e.replaceNode(t,r,w.createIdentifier(s))}function YQe(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function $Qe(e,t){var r;if(!t||!ls(t.moduleSpecifier))return;const i=(r=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier))==null?void 0:r.resolvedModule;if(i)return e.program.getSourceFile(i.resolvedFileName)}var ife,ofe,QQe=I({"src/services/codefixes/fixSpelling.ts"(){si(),Ia(),ife="fixSpelling",ofe=[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],Ta({errorCodes:ofe,getCodeActions(e){const{sourceFile:t,errorCode:r}=e,i=rMe(t,e.span.start,e,r);if(!i)return;const{node:o,suggestedSymbol:s}=i,l=os(e.host.getCompilationSettings()),u=_r.ChangeTracker.with(e,p=>iMe(p,t,o,s,l));return[la("spelling",u,[f.Change_spelling_to_0,El(s)],ife,f.Fix_all_detected_spelling_errors)]},fixIds:[ife],getAllCodeActions:e=>bs(e,ofe,(t,r)=>{const i=rMe(r.file,r.start,e,r.code),o=os(e.host.getCompilationSettings());i&&iMe(t,e.sourceFile,i.node,i.suggestedSymbol,o)})})}});function oMe(e,t,r){const i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);const o=ca([i]);return e.createAnonymousType(void 0,o,[],[],[])}function afe(e,t,r,i){if(!t.body||!Ko(t.body)||Ne(t.body.statements)!==1)return;const o=Ua(t.body.statements);if(Zc(o)&&sfe(e,t,e.getTypeAtLocation(o.expression),r,i))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(ZE(o)&&Zc(o.statement)){const s=w.createObjectLiteralExpression([w.createPropertyAssignment(o.label,o.statement.expression)]),l=oMe(e,o.label,o.statement.expression);if(sfe(e,t,l,r,i))return Gs(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(Ko(o)&&Ne(o.statements)===1){const s=Ua(o.statements);if(ZE(s)&&Zc(s.statement)){const l=w.createObjectLiteralExpression([w.createPropertyAssignment(s.label,s.statement.expression)]),u=oMe(e,s.label,s.statement.expression);if(sfe(e,t,u,r,i))return{declaration:t,kind:0,expression:l,statement:o,commentSource:s}}}}function sfe(e,t,r,i,o){if(o){const s=e.getSignatureFromDeclaration(t);if(s){Qr(t,1024)&&(r=e.createPromiseType(r));const l=e.createSignature(t,s.typeParameters,s.thisParameter,s.parameters,r,void 0,s.minArgumentCount,s.flags);r=e.createAnonymousType(void 0,ca(),[l],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function aMe(e,t,r,i){const o=po(t,r);if(!o.parent)return;const s=Vn(o.parent,Bs);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||!sf(s.type,o)?void 0:afe(e,s,e.getTypeFromTypeNode(s.type),!1);case f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!sa(s.parent)||!s.body)return;const l=s.parent.arguments.indexOf(s);if(l===-1)return;const u=e.getContextualTypeForArgumentAtIndex(s.parent,l);return u?afe(e,s,u,!0):void 0;case f.Type_0_is_not_assignable_to_type_1.code:if(!wg(o)||!aR(o.parent)&&!w_(o.parent))return;const p=ZQe(o.parent);return!p||!Bs(p)||!p.body?void 0:afe(e,p,e.getTypeAtLocation(o.parent),!0)}}function ZQe(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(bP(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function sMe(e,t,r,i){Sp(r);const o=gO(t);e.replaceNode(t,i,w.createReturnStatement(r),{leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function lMe(e,t,r,i,o,s){const l=s||c5(i)?w.createParenthesizedExpression(i):i;Sp(o),nT(o,l),e.replaceNode(t,r.body,l)}function cMe(e,t,r,i){e.replaceNode(t,r.body,w.createParenthesizedExpression(i))}function eZe(e,t,r){const i=_r.ChangeTracker.with(e,o=>sMe(o,e.sourceFile,t,r));return la(f$,i,f.Add_a_return_statement,m$,f.Add_all_missing_return_statement)}function tZe(e,t,r,i){const o=_r.ChangeTracker.with(e,s=>lMe(s,e.sourceFile,t,r,i,!1));return la(f$,o,f.Remove_braces_from_arrow_function_body,_$,f.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function nZe(e,t,r){const i=_r.ChangeTracker.with(e,o=>cMe(o,e.sourceFile,t,r));return la(f$,i,f.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,h$,f.Wrap_all_object_literal_with_parentheses)}var f$,m$,_$,h$,lfe,rZe=I({"src/services/codefixes/returnValueCorrect.ts"(){si(),Ia(),f$="returnValueCorrect",m$="fixAddReturnStatement",_$="fixRemoveBracesFromArrowFunctionBody",h$="fixWrapTheBlockWithParen",lfe=[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],Ta({errorCodes:lfe,fixIds:[m$,_$,h$],getCodeActions:function(t){const{program:r,sourceFile:i,span:{start:o},errorCode:s}=t,l=aMe(r.getTypeChecker(),i,o,s);if(l)return l.kind===0?Rn([eZe(t,l.expression,l.statement)],Gs(l.declaration)?tZe(t,l.declaration,l.expression,l.commentSource):void 0):[nZe(t,l.declaration,l.expression)]},getAllCodeActions:e=>bs(e,lfe,(t,r)=>{const i=aMe(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case m$:sMe(t,r.file,i.expression,i.statement);break;case _$:if(!Gs(i.declaration))return;lMe(t,r.file,i.declaration,i.expression,i.commentSource,!1);break;case h$:if(!Gs(i.declaration))return;cMe(t,r.file,i.declaration,i.expression);break;default:N.fail(JSON.stringify(e.fixId))}})})}});function uMe(e,t,r,i,o){var s;const 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&&La(u)&&sa(u.parent)))return;const A=mi(u.parent.arguments,O=>O===u);if(A<0)return;const R=i.getResolvedSignature(u.parent);if(!(R&&R.declaration&&R.parameters[A]))return;const M=R.parameters[A].valueDeclaration;if(!(M&&Ao(M)&&Ve(M.name)))return;const C=zo(i.getUnmatchedProperties(i.getTypeAtLocation(u),i.getParameterType(R,A),!1,!1));return Ne(C)?{kind:3,token:M.name,identifier:M.name.text,properties:C,parentDeclaration:u}:void 0}if(l.kind===19&&La(u)){const A=i.getContextualType(u)||i.getTypeAtLocation(u),R=zo(i.getUnmatchedProperties(i.getTypeAtLocation(u),A,!1,!1));return Ne(R)?{kind:3,token:u,identifier:"",properties:R,parentDeclaration:u}:void 0}if(!Kh(l))return;if(Ve(l)&&Ly(u)&&u.initializer&&La(u.initializer)){const A=i.getContextualType(l)||i.getTypeAtLocation(l),R=zo(i.getUnmatchedProperties(i.getTypeAtLocation(u.initializer),A,!1,!1));return Ne(R)?{kind:3,token:l,identifier:l.text,properties:R,parentDeclaration:u.initializer}:void 0}if(Ve(l)&&ld(l.parent)){const A=os(o.getCompilerOptions()),R=uZe(i,A,l.parent);return Ne(R)?{kind:4,token:l,attributes:R,parentDeclaration:l.parent}:void 0}if(Ve(l)){const A=(s=i.getContextualType(l))==null?void 0:s.getNonNullableType();if(A&&Wr(A)&16){const R=Kc(i.getSignaturesOfType(A,0));return R===void 0?void 0:{kind:5,token:l,signature:R,sourceFile:e,parentDeclaration:EMe(l)}}if(sa(u)&&u.expression===l)return{kind:2,token:l,call:u,sourceFile:e,modifierFlags:0,parentDeclaration:EMe(l)}}if(!Fr(u))return;const p=qK(i.getTypeAtLocation(u.expression)),h=p.symbol;if(!h||!h.declarations)return;if(Ve(l)&&sa(u.parent)){const A=In(h.declarations,Xl),R=A==null?void 0:A.getSourceFile();if(A&&R&&!xD(o,R))return{kind:2,token:l,call:u.parent,sourceFile:e,modifierFlags:32,parentDeclaration:A};const M=In(h.declarations,$i);if(e.commonJsModuleIndicator)return;if(M&&!xD(o,M))return{kind:2,token:l,call:u.parent,sourceFile:M,modifierFlags:32,parentDeclaration:M}}const m=In(h.declarations,di);if(!m&&qi(l))return;const y=m||In(h.declarations,A=>md(A)||yp(A));if(y&&!xD(o,y.getSourceFile())){const A=!yp(y)&&(p.target||p)!==i.getDeclaredTypeOfSymbol(h);if(A&&(qi(l)||md(y)))return;const R=y.getSourceFile(),M=yp(y)?0:(A?256:0)|(yX(l.text)?2:0),C=cd(R),O=ri(u.parent,sa);return{kind:0,token:l,call:O,modifierFlags:M,parentDeclaration:y,declSourceFile:R,isJSFile:C}}const T=In(h.declarations,y0);if(T&&!(p.flags&1056)&&!qi(l)&&!xD(o,T.getSourceFile()))return{kind:1,token:l,parentDeclaration:T}}function iZe(e,t){return t.isJSFile?hA(oZe(e,t)):aZe(e,t)}function oZe(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){if(md(t)||yp(t))return;const s=_r.ChangeTracker.with(e,u=>dMe(u,r,t,o,!!(i&256)));if(s.length===0)return;const l=i&256?f.Initialize_static_property_0:qi(o)?f.Declare_a_private_field_named_0:f.Initialize_property_0_in_the_constructor;return la(rb,s,[l,o.text],rb,f.Add_all_missing_members)}function dMe(e,t,r,i,o){const s=i.text;if(o){if(r.kind===231)return;const l=r.name.getText(),u=pMe(w.createIdentifier(l),s);e.insertNodeAfter(t,r,u)}else if(qi(i)){const l=w.createPropertyDeclaration(void 0,s,void 0,void 0,void 0),u=_Me(r);u?e.insertNodeAfter(t,u,l):e.insertMemberAtStart(t,r,l)}else{const l=ng(r);if(!l)return;const u=pMe(w.createThis(),s);e.insertNodeAtConstructorEnd(t,l,u)}}function pMe(e,t){return w.createExpressionStatement(w.createAssignment(w.createPropertyAccessExpression(e,t),PI()))}function aZe(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){const s=o.text,l=i&256,u=fMe(e.program.getTypeChecker(),t,o),p=m=>_r.ChangeTracker.with(e,y=>mMe(y,r,t,s,u,m)),h=[la(rb,p(i&256),[l?f.Declare_static_property_0:f.Declare_property_0,s],rb,f.Add_all_missing_members)];return l||qi(o)||(i&2&&h.unshift(n_(rb,p(2),[f.Declare_private_property_0,s])),h.push(sZe(e,r,t,o.text,u))),h}function fMe(e,t,r){let i;if(r.parent.parent.kind===226){const 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{const o=e.getContextualType(r.parent);i=o?e.typeToTypeNode(o,void 0,1):void 0}return i||w.createKeywordTypeNode(133)}function mMe(e,t,r,i,o,s){const l=s?w.createNodeArray(w.createModifiersFromModifierFlags(s)):void 0,u=di(r)?w.createPropertyDeclaration(l,i,void 0,o,void 0):w.createPropertySignature(void 0,i,void 0,o),p=_Me(r);p?e.insertNodeAfter(t,p,u):e.insertMemberAtStart(t,r,u)}function _Me(e){let t;for(const r of e.members){if(!qo(r))break;t=r}return t}function sZe(e,t,r,i,o){const s=w.createKeywordTypeNode(154),l=w.createParameterDeclaration(void 0,void 0,"x",void 0,s,void 0),u=w.createIndexSignature(void 0,[l],o),p=_r.ChangeTracker.with(e,h=>h.insertMemberAtStart(t,r,u));return n_(rb,p,[f.Add_index_signature_for_property_0,i])}function lZe(e,t){const{parentDeclaration:r,declSourceFile:i,modifierFlags:o,token:s,call:l}=t;if(l===void 0)return;const u=s.text,p=m=>_r.ChangeTracker.with(e,y=>hMe(e,y,l,s,m,r,i)),h=[la(rb,p(o&256),[o&256?f.Declare_static_method_0:f.Declare_method_0,u],rb,f.Add_all_missing_members)];return o&2&&h.unshift(n_(rb,p(2),[f.Declare_private_method_0,u])),h}function hMe(e,t,r,i,o,s,l){const u=CI(l,e.program,e.preferences,e.host),p=di(s)?174:173,h=qfe(p,e,u,r,i,o,s),m=dZe(s,r);m?t.insertNodeAfter(l,m,h):t.insertMemberAtStart(l,s,h),u.writeFixes(t)}function gMe(e,t,{token:r,parentDeclaration:i}){const o=bt(i.members,p=>{const h=t.getTypeAtLocation(p);return!!(h&&h.flags&402653316)}),s=i.getSourceFile(),l=w.createEnumMember(r,o?w.createStringLiteral(r.text):void 0),u=el(i.members);u?e.insertNodeInListAfter(s,u,l,i.members):e.insertMemberAtStart(s,i,l)}function vMe(e,t,r){const i=lf(t.sourceFile,t.preferences),o=CI(t.sourceFile,t.program,t.preferences,t.host),s=r.kind===2?qfe(262,t,o,r.call,Er(r.token),r.modifierFlags,r.parentDeclaration):j$(262,t,i,r.signature,fz(f.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,o);s===void 0&&N.fail("fixMissingFunctionDeclaration codefix got unexpected error."),Im(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,s,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,s),o.writeFixes(e)}function yMe(e,t,r){const i=CI(t.sourceFile,t.program,t.preferences,t.host),o=lf(t.sourceFile,t.preferences),s=t.program.getTypeChecker(),l=r.parentDeclaration.attributes,u=bt(l.properties,cI),p=Wt(r.attributes,y=>{const T=g$(t,s,i,o,s.getTypeOfSymbol(y),r.parentDeclaration),A=w.createIdentifier(y.name),R=w.createJsxAttribute(A,w.createJsxExpression(void 0,T));return Ha(A,R),R}),h=w.createJsxAttributes(u?[...p,...l.properties]:[...l.properties,...p]),m={prefix:l.pos===l.end?" ":void 0};e.replaceNode(t.sourceFile,l,h,m),i.writeFixes(e)}function bMe(e,t,r){const i=CI(t.sourceFile,t.program,t.preferences,t.host),o=lf(t.sourceFile,t.preferences),s=os(t.program.getCompilerOptions()),l=t.program.getTypeChecker(),u=Wt(r.properties,h=>{const m=g$(t,l,i,o,l.getTypeOfSymbol(h),r.parentDeclaration);return w.createPropertyAssignment(pZe(h,s,o,l),m)}),p={leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,w.createObjectLiteralExpression([...r.parentDeclaration.properties,...u],!0),p),i.writeFixes(e)}function g$(e,t,r,i,o,s){if(o.flags&3)return PI();if(o.flags&134217732)return w.createStringLiteral("",i===0);if(o.flags&8)return w.createNumericLiteral(0);if(o.flags&64)return w.createBigIntLiteral("0n");if(o.flags&16)return w.createFalse();if(o.flags&1056){const l=o.symbol.exports?E6(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?w.createNumericLiteral(0):w.createPropertyAccessExpression(u,t.symbolToString(l))}if(o.flags&256)return w.createNumericLiteral(o.value);if(o.flags&2048)return w.createBigIntLiteral(o.value);if(o.flags&128)return w.createStringLiteral(o.value,i===0);if(o.flags&512)return o===t.getFalseType()||o===t.getFalseType(!0)?w.createFalse():w.createTrue();if(o.flags&65536)return w.createNull();if(o.flags&1048576)return Ht(o.types,u=>g$(e,t,r,i,u,s))??PI();if(t.isArrayLikeType(o))return w.createArrayLiteralExpression();if(cZe(o)){const l=Wt(t.getPropertiesOfType(o),u=>{const p=g$(e,t,r,i,t.getTypeOfSymbol(u),s);return w.createPropertyAssignment(u.name,p)});return w.createObjectLiteralExpression(l,!0)}if(Wr(o)&16){if(In(o.symbol.declarations||et,Jm(bh,yh,Hl))===void 0)return PI();const u=t.getSignaturesOfType(o,0);return u===void 0?PI():j$(218,e,i,u[0],fz(f.Function_not_implemented.message,i),void 0,void 0,void 0,s,r)??PI()}if(Wr(o)&1){const l=Wg(o.symbol);if(l===void 0||jE(l))return PI();const u=ng(l);return u&&Ne(u.parameters)?PI():w.createNewExpression(w.createIdentifier(o.symbol.name),void 0,void 0)}return PI()}function PI(){return w.createIdentifier("undefined")}function cZe(e){return e.flags&524288&&(Wr(e)&128||e.symbol&&ri(ah(e.symbol.declarations),yp))}function uZe(e,t,r){const i=e.getContextualType(r.attributes);if(i===void 0)return et;const o=i.getProperties();if(!Ne(o))return et;const s=new Set;for(const l of r.attributes.properties)if(w_(l)&&s.add(iP(l.name)),cI(l)){const u=e.getTypeAtLocation(l.expression);for(const p of u.getProperties())s.add(p.escapedName)}return mn(o,l=>Zp(l.name,t,1)&&!(l.flags&16777216||xl(l)&48||s.has(l.escapedName)))}function dZe(e,t){if(yp(e))return;const r=Vn(t,i=>Hl(i)||Ml(i));return r&&r.parent===e?r:void 0}function pZe(e,t,r,i){if(fh(e)){const o=i.symbolToNode(e,111551,void 0,1073741824);if(o&&Za(o))return o}return J3(e.name,t,r===0,!1,!1)}function EMe(e){if(Vn(e,bP)){const t=Vn(e.parent,Im);if(t)return t}return Un(e)}var rb,oz,az,sz,cfe,fZe=I({"src/services/codefixes/fixAddMissingMember.ts"(){si(),Ia(),rb="fixMissingMember",oz="fixMissingProperties",az="fixMissingAttributes",sz="fixMissingFunctionDeclaration",cfe=[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],Ta({errorCodes:cfe,getCodeActions(e){const t=e.program.getTypeChecker(),r=uMe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){const i=_r.ChangeTracker.with(e,o=>bMe(o,e,r));return[la(oz,i,f.Add_missing_properties,oz,f.Add_all_missing_properties)]}if(r.kind===4){const i=_r.ChangeTracker.with(e,o=>yMe(o,e,r));return[la(az,i,f.Add_missing_attributes,az,f.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){const i=_r.ChangeTracker.with(e,o=>vMe(o,e,r));return[la(sz,i,[f.Add_missing_function_declaration_0,r.token.text],sz,f.Add_all_missing_function_declarations)]}if(r.kind===1){const i=_r.ChangeTracker.with(e,o=>gMe(o,e.program.getTypeChecker(),r));return[la(rb,i,[f.Add_missing_enum_member_0,r.token.text],rb,f.Add_all_missing_members)]}return So(lZe(e,r),iZe(e,r))}},fixIds:[rb,sz,oz,az],getAllCodeActions:e=>{const{program:t,fixId:r}=e,i=t.getTypeChecker(),o=new Map,s=new Map;return LD(_r.ChangeTracker.with(e,l=>{kD(e,cfe,u=>{const p=uMe(u.file,u.start,u.code,i,e.program);if(!(!p||!Am(o,as(p.parentDeclaration)+"#"+(p.kind===3?p.identifier:p.token.text)))){if(r===sz&&(p.kind===2||p.kind===5))vMe(l,e,p);else if(r===oz&&p.kind===3)bMe(l,e,p);else if(r===az&&p.kind===4)yMe(l,e,p);else if(p.kind===1&&gMe(l,i,p),p.kind===0){const{parentDeclaration:h,token:m}=p,y=dA(s,h,()=>[]);y.some(T=>T.token.text===m.text)||y.push(p)}}}),s.forEach((u,p)=>{const h=yp(p)?void 0:eme(p,i);for(const m of u){if(h!=null&&h.some(O=>{const U=s.get(O);return!!U&&U.some(({token:K})=>K.text===m.token.text)}))continue;const{parentDeclaration:y,declSourceFile:T,modifierFlags:A,token:R,call:M,isJSFile:C}=m;if(M&&!qi(R))hMe(e,l,M,R,A&256,y,T);else if(C&&!md(y)&&!yp(y))dMe(l,T,y,R,!!(A&256));else{const O=fMe(i,y,R);mMe(l,T,y,R.text,O,A&256)}}})}))}})}});function SMe(e,t,r){const i=oa(mZe(t,r),sa),o=w.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,o)}function mZe(e,t){let r=po(e,t.start);const i=Kl(t);for(;r.end<i;)r=r.parent;return r}var v$,ufe,_Ze=I({"src/services/codefixes/fixAddMissingNewOperator.ts"(){si(),Ia(),v$="addMissingNewOperator",ufe=[f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code],Ta({errorCodes:ufe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=_r.ChangeTracker.with(e,o=>SMe(o,t,r));return[la(v$,i,f.Add_missing_new_operator_to_call,v$,f.Add_missing_new_operator_to_all_calls)]},fixIds:[v$],getAllCodeActions:e=>bs(e,ufe,(t,r)=>SMe(t,e.sourceFile,r))})}});function TMe(e,t,r){const i=po(e,r),o=Vn(i,sa);if(o===void 0||Ne(o.arguments)===0)return;const s=t.getTypeChecker(),l=s.getTypeAtLocation(o.expression),u=mn(l.symbol.declarations,AMe);if(u===void 0)return;const p=el(u);if(p===void 0||p.body===void 0||xD(t,p.getSourceFile()))return;const h=hZe(p);if(h===void 0)return;const m=[],y=[],T=Ne(p.parameters),A=Ne(o.arguments);if(T>A)return;const R=[p,...vZe(p,u)];for(let M=0,C=0,O=0;M<A;M++){const U=o.arguments[M],K=ws(U)?sU(U):U,Q=s.getWidenedType(s.getBaseTypeOfLiteralType(s.getTypeAtLocation(U))),V=C<T?p.parameters[C]:void 0;if(V&&s.isTypeAssignableTo(Q,s.getTypeAtLocation(V))){C++;continue}const se=K&&Ve(K)?K.text:`p${O++}`,G=gZe(s,Q,p);Rn(m,{pos:M,declaration:xMe(se,G,void 0)}),!bZe(R,C)&&Rn(y,{pos:M,declaration:xMe(se,G,w.createToken(58))})}return{newParameters:m,newOptionalParameters:y,name:xs(h),declarations:R}}function hZe(e){const t=Lo(e);if(t)return t;if(Oi(e.parent)&&Ve(e.parent.name)||qo(e.parent)||Ao(e.parent))return e.parent.name}function gZe(e,t,r){return e.typeToTypeNode(e.getWidenedType(t),r,1)??w.createKeywordTypeNode(159)}function y$(e,t,r,i){Xe(r,o=>{Ne(o.parameters)?e.replaceNodeRangeWithNodes(t,Ua(o.parameters),Xa(o.parameters),IMe(o,i),{joiner:", ",indentation:0,leadingTriviaOption:_r.LeadingTriviaOption.IncludeAll,trailingTriviaOption:_r.TrailingTriviaOption.Include}):Xe(IMe(o,i),(s,l)=>{Ne(o.parameters)===0&&l===0?e.insertNodeAt(t,o.parameters.end,s):e.insertNodeAtEndOfList(t,o.parameters,s)})})}function AMe(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function IMe(e,t){const r=Wt(e.parameters,i=>w.createParameterDeclaration(i.modifiers,i.dotDotDotToken,i.name,i.questionToken,i.type,i.initializer));for(const{pos:i,declaration:o}of t){const s=i>0?r[i-1]:void 0;r.splice(i,0,w.updateParameterDeclaration(o,o.modifiers,o.dotDotDotToken,o.name,s&&s.questionToken?w.createToken(58):o.questionToken,o.type,o.initializer))}return r}function vZe(e,t){const r=[];for(const i of t)if(yZe(i)){if(Ne(i.parameters)===Ne(e.parameters)){r.push(i);continue}if(Ne(i.parameters)>Ne(e.parameters))return[]}return r}function yZe(e){return AMe(e)&&e.body===void 0}function xMe(e,t,r){return w.createParameterDeclaration(void 0,void 0,e,r,t,void 0)}function bZe(e,t){return Ne(e)&&bt(e,r=>t<Ne(r.parameters)&&!!r.parameters[t]&&r.parameters[t].questionToken===void 0)}var lz,cz,dfe,EZe=I({"src/services/codefixes/fixAddMissingParam.ts"(){si(),Ia(),lz="addMissingParam",cz="addOptionalParam",dfe=[f.Expected_0_arguments_but_got_1.code],Ta({errorCodes:dfe,fixIds:[lz,cz],getCodeActions(e){const t=TMe(e.sourceFile,e.program,e.span.start);if(t===void 0)return;const{name:r,declarations:i,newParameters:o,newOptionalParameters:s}=t,l=[];return Ne(o)&&Rn(l,la(lz,_r.ChangeTracker.with(e,u=>y$(u,e.sourceFile,i,o)),[Ne(o)>1?f.Add_missing_parameters_to_0:f.Add_missing_parameter_to_0,r],lz,f.Add_all_missing_parameters)),Ne(s)&&Rn(l,la(cz,_r.ChangeTracker.with(e,u=>y$(u,e.sourceFile,i,s)),[Ne(s)>1?f.Add_optional_parameters_to_0:f.Add_optional_parameter_to_0,r],cz,f.Add_all_optional_parameters)),l},getAllCodeActions:e=>bs(e,dfe,(t,r)=>{const i=TMe(e.sourceFile,e.program,r.start);if(i){const{declarations:o,newParameters:s,newOptionalParameters:l}=i;e.fixId===lz&&y$(t,e.sourceFile,o,s),e.fixId===cz&&y$(t,e.sourceFile,o,l)}})})}});function RMe(e,t){return{type:"install package",file:e,packageName:t}}function DMe(e,t){const r=ri(po(e,t),Na);if(!r)return;const i=r.text,{packageName:o}=Sw(i);return Xc(o)?void 0:o}function NMe(e,t,r){var i;return r===pfe?z_.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?PF(e):void 0}var CMe,b$,pfe,ffe,SZe=I({"src/services/codefixes/fixCannotFindModule.ts"(){si(),Ia(),CMe="fixCannotFindModule",b$="installTypesPackage",pfe=f.Cannot_find_module_0_or_its_corresponding_type_declarations.code,ffe=[pfe,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],Ta({errorCodes:ffe,getCodeActions:function(t){const{host:r,sourceFile:i,span:{start:o}}=t,s=DMe(i,o);if(s===void 0)return;const l=NMe(s,r,t.errorCode);return l===void 0?[]:[la(CMe,[],[f.Install_0,l],b$,f.Install_all_missing_types_packages,RMe(i.fileName,l))]},fixIds:[b$],getAllCodeActions:e=>bs(e,ffe,(t,r,i)=>{const o=DMe(r.file,r.start);if(o!==void 0)switch(e.fixId){case b$:{const s=NMe(o,e.host,r.code);s&&i.push(RMe(r.file.fileName,s));break}default:N.fail(`Bad fixId: ${e.fixId}`)}})})}});function PMe(e,t){const r=po(e,t);return oa(r.parent,di)}function MMe(e,t,r,i,o){const s=I_(e),l=r.program.getTypeChecker(),u=l.getTypeAtLocation(s),p=l.getPropertiesOfType(u).filter(TZe),h=CI(t,r.program,o,r.host);Hfe(e,p,t,r,o,h,m=>i.insertMemberAtStart(t,e,m)),h.writeFixes(i)}function TZe(e){const t=Fy(Ua(e.getDeclarations()));return!(t&2)&&!!(t&64)}var mfe,E$,AZe=I({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){si(),Ia(),mfe=[f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],E$="fixClassDoesntImplementInheritedAbstractMember",Ta({errorCodes:mfe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=_r.ChangeTracker.with(t,s=>MMe(PMe(r,i.start),r,t,s,t.preferences));return o.length===0?void 0:[la(E$,o,f.Implement_inherited_abstract_class,E$,f.Implement_all_inherited_abstract_classes)]},fixIds:[E$],getAllCodeActions:function(t){const r=new Map;return bs(t,mfe,(i,o)=>{const s=PMe(o.file,o.start);Am(r,as(s))&&MMe(s,t.sourceFile,t,i,t.preferences)})}})}});function LMe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function kMe(e,t){const r=po(e,t);if(r.kind!==110)return;const i=Bp(r),o=wMe(i.body);return o&&!o.expression.arguments.some(s=>Fr(s)&&s.expression===r)?{constructor:i,superCall:o}:void 0}function wMe(e){return Zc(e)&&yS(e.expression)?e:ea(e)?void 0:Uo(e,wMe)}var S$,_fe,IZe=I({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){si(),Ia(),S$="classSuperMustPrecedeThisAccess",_fe=[f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],Ta({errorCodes:_fe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=kMe(t,r.start);if(!i)return;const{constructor:o,superCall:s}=i,l=_r.ChangeTracker.with(e,u=>LMe(u,t,o,s));return[la(S$,l,f.Make_super_call_the_first_statement_in_the_constructor,S$,f.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[S$],getAllCodeActions(e){const{sourceFile:t}=e,r=new Map;return bs(e,_fe,(i,o)=>{const s=kMe(o.file,o.start);if(!s)return;const{constructor:l,superCall:u}=s;Am(r,as(l.parent))&&LMe(i,t,l,u)})}})}});function OMe(e,t){const r=po(e,t);return N.assert(Ml(r.parent),"token should be at the constructor declaration"),r.parent}function WMe(e,t,r){const i=w.createExpressionStatement(w.createCallExpression(w.createSuper(),void 0,et));e.insertNodeAtConstructorStart(t,r,i)}var T$,hfe,xZe=I({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){si(),Ia(),T$="constructorForDerivedNeedSuperCall",hfe=[f.Constructors_for_derived_classes_must_contain_a_super_call.code],Ta({errorCodes:hfe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=OMe(t,r.start),o=_r.ChangeTracker.with(e,s=>WMe(s,t,i));return[la(T$,o,f.Add_missing_super_call,T$,f.Add_all_missing_super_calls)]},fixIds:[T$],getAllCodeActions:e=>bs(e,hfe,(t,r)=>WMe(t,e.sourceFile,OMe(r.file,r.start)))})}});function FMe(e,t){Yfe(e,t,"jsx",w.createStringLiteral("react"))}var gfe,vfe,RZe=I({"src/services/codefixes/fixEnableJsxFlag.ts"(){si(),Ia(),gfe="fixEnableJsxFlag",vfe=[f.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],Ta({errorCodes:vfe,getCodeActions:function(t){const{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;const i=_r.ChangeTracker.with(t,o=>FMe(o,r));return[n_(gfe,i,f.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[gfe],getAllCodeActions:e=>bs(e,vfe,t=>{const{configFile:r}=e.program.getCompilerOptions();r!==void 0&&FMe(t,r)})})}});function zMe(e,t,r){const i=In(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=In(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;const s=Qfe(o.file,vu(o.start,o.length));if(s!==void 0&&yt(s)&&mr(s.parent))return{suggestion:DZe(o.messageText),expression:s.parent,arg:s}}function BMe(e,t,r,i){const o=w.createCallExpression(w.createPropertyAccessExpression(w.createIdentifier("Number"),w.createIdentifier("isNaN")),void 0,[r]),s=i.operatorToken.kind;e.replaceNode(t,i,s===38||s===36?w.createPrefixUnaryExpression(54,o):o)}function DZe(e){const[,t]=W_(e,` +`,0).match(/'(.*)'/)||[];return t}var A$,yfe,NZe=I({"src/services/codefixes/fixNaNEquality.ts"(){si(),Ia(),A$="fixNaNEquality",yfe=[f.This_condition_will_always_return_0.code],Ta({errorCodes:yfe,getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=zMe(i,t,r);if(o===void 0)return;const{suggestion:s,expression:l,arg:u}=o,p=_r.ChangeTracker.with(e,h=>BMe(h,t,u,l));return[la(A$,p,[f.Use_0,s],A$,f.Use_Number_isNaN_in_all_conditions)]},fixIds:[A$],getAllCodeActions:e=>bs(e,yfe,(t,r)=>{const i=zMe(e.program,r.file,vu(r.start,r.length));i&&BMe(t,r.file,i.arg,i.expression)})})}}),CZe=I({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){si(),Ia(),Ta({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){const r=t.program.getCompilerOptions(),{configFile:i}=r;if(i===void 0)return;const o=[],s=wu(r);if(s>=5&&s<99){const h=_r.ChangeTracker.with(t,m=>{Yfe(m,i,"module",w.createStringLiteral("esnext"))});o.push(n_("fixModuleOption",h,[f.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const u=os(r);if(u<4||u>99){const h=_r.ChangeTracker.with(t,m=>{if(!EC(i))return;const T=[["target",w.createStringLiteral("es2017")]];s===1&&T.push(["module",w.createStringLiteral("commonjs")]),Xfe(m,i,T)});o.push(n_("fixTargetOption",h,[f.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return o.length?o:void 0}})}});function GMe(e,t,r){e.replaceNode(t,r,w.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function VMe(e,t){return oa(po(e,t).parent,np)}var I$,bfe,PZe=I({"src/services/codefixes/fixPropertyAssignment.ts"(){si(),Ia(),I$="fixPropertyAssignment",bfe=[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],Ta({errorCodes:bfe,fixIds:[I$],getCodeActions(e){const{sourceFile:t,span:r}=e,i=VMe(t,r.start),o=_r.ChangeTracker.with(e,s=>GMe(s,e.sourceFile,i));return[la(I$,o,[f.Change_0_to_1,"=",":"],I$,[f.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>bs(e,bfe,(t,r)=>GMe(t,r.file,VMe(r.file,r.start)))})}});function jMe(e,t){const r=po(e,t),i=au(r).heritageClauses,o=i[0].getFirstToken();return o.kind===96?{extendsToken:o,heritageClauses:i}:void 0}function UMe(e,t,r,i){if(e.replaceNode(t,r,w.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){const o=i[1].getFirstToken(),s=o.getFullStart();e.replaceRange(t,{pos:s,end:s},w.createToken(28));const l=t.text;let u=o.end;for(;u<l.length&&E_(l.charCodeAt(u));)u++;e.deleteRange(t,{pos:o.getStart(),end:u})}}var x$,Efe,MZe=I({"src/services/codefixes/fixExtendsInterfaceBecomesImplements.ts"(){si(),Ia(),x$="extendsInterfaceBecomesImplements",Efe=[f.Cannot_extend_an_interface_0_Did_you_mean_implements.code],Ta({errorCodes:Efe,getCodeActions(e){const{sourceFile:t}=e,r=jMe(t,e.span.start);if(!r)return;const{extendsToken:i,heritageClauses:o}=r,s=_r.ChangeTracker.with(e,l=>UMe(l,t,i,o));return[la(x$,s,f.Change_extends_to_implements,x$,f.Change_all_extended_interfaces_to_implements)]},fixIds:[x$],getAllCodeActions:e=>bs(e,Efe,(t,r)=>{const i=jMe(r.file,r.start);i&&UMe(t,r.file,i.extendsToken,i.heritageClauses)})})}});function HMe(e,t,r){const i=po(e,t);if(Ve(i)||qi(i))return{node:i,className:r===Sfe?au(i).name.text:void 0}}function qMe(e,t,{node:r,className:i}){Sp(r),e.replaceNode(t,r,w.createPropertyAccessExpression(i?w.createIdentifier(i):w.createThis(),r))}var R$,Sfe,Tfe,LZe=I({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){si(),Ia(),R$="forgottenThisPropertyAccess",Sfe=f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Tfe=[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,Sfe],Ta({errorCodes:Tfe,getCodeActions(e){const{sourceFile:t}=e,r=HMe(t,e.span.start,e.errorCode);if(!r)return;const i=_r.ChangeTracker.with(e,o=>qMe(o,t,r));return[la(R$,i,[f.Add_0_to_unresolved_variable,r.className||"this"],R$,f.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[R$],getAllCodeActions:e=>bs(e,Tfe,(t,r)=>{const i=HMe(r.file,r.start,r.code);i&&qMe(t,e.sourceFile,i)})})}});function kZe(e){return Is(xfe,e)}function Afe(e,t,r,i,o){const s=r.getText()[i];if(!kZe(s))return;const l=o?xfe[s]:`{${cM(r,t,s)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},l)}var D$,uz,Ife,xfe,wZe=I({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){si(),Ia(),D$="fixInvalidJsxCharacters_expression",uz="fixInvalidJsxCharacters_htmlEntity",Ife=[f.Unexpected_token_Did_you_mean_or_gt.code,f.Unexpected_token_Did_you_mean_or_rbrace.code],Ta({errorCodes:Ife,fixIds:[D$,uz],getCodeActions(e){const{sourceFile:t,preferences:r,span:i}=e,o=_r.ChangeTracker.with(e,l=>Afe(l,r,t,i.start,!1)),s=_r.ChangeTracker.with(e,l=>Afe(l,r,t,i.start,!0));return[la(D$,o,f.Wrap_invalid_character_in_an_expression_container,D$,f.Wrap_all_invalid_characters_in_an_expression_container),la(uz,s,f.Convert_invalid_character_to_its_html_entity_code,uz,f.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return bs(e,Ife,(t,r)=>Afe(t,e.preferences,r.file,r.start,e.fixId===uz))}}),xfe={">":">","}":"}"}}});function OZe(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){const o=_r.ChangeTracker.with(e,s=>s.filterJSDocTags(e.sourceFile,r,l=>l!==i));return la(dz,o,[f.Delete_unused_param_tag_0,t.getText(e.sourceFile)],dz,f.Delete_all_unused_param_tags)}function WZe(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:o}){if(!Ne(i.parameters))return;const s=e.sourceFile,l=a0(i),u=new Set;for(const y of l)e_(y)&&Ve(y.name)&&u.add(y.name.escapedText);const p=Ht(i.parameters,y=>Ve(y.name)&&!u.has(y.name.escapedText)?y.name.getText(s):void 0);if(p===void 0)return;const h=w.updateJSDocParameterTag(o,o.tagName,w.createIdentifier(p),o.isBracketed,o.typeExpression,o.isNameFirst,o.comment),m=_r.ChangeTracker.with(e,y=>y.replaceJSDocComment(s,r,Wt(l,T=>T===o?h:T)));return n_(Rfe,m,[f.Rename_param_tag_name_0_to_1,t.getText(s),p])}function JMe(e,t){const r=po(e,t);if(r.parent&&e_(r.parent)&&Ve(r.parent.name)){const i=r.parent,o=AS(i),s=d0(i);if(o&&s)return{jsDocHost:o,signature:s,name:r.parent.name,jsDocParameterTag:i}}}var dz,Rfe,Dfe,FZe=I({"src/services/codefixes/fixUnmatchedParameter.ts"(){si(),Ia(),dz="deleteUnmatchedParameter",Rfe="renameUnmatchedParameter",Dfe=[f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],Ta({fixIds:[dz,Rfe],errorCodes:Dfe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=[],s=JMe(r,i.start);if(s)return Rn(o,OZe(t,s)),Rn(o,WZe(t,s)),o},getAllCodeActions:function(t){const r=new Map;return LD(_r.ChangeTracker.with(t,i=>{kD(t,Dfe,({file:o,start:s})=>{const l=JMe(o,s);l&&r.set(l.signature,Rn(r.get(l.signature),l.jsDocParameterTag))}),r.forEach((o,s)=>{if(t.fixId===dz){const l=new Set(o);i.filterJSDocTags(s.getSourceFile(),s,u=>!l.has(u))}})}))}})}});function zZe(e,t,r){const i=ri(po(e,r),Ve);if(!i||i.parent.kind!==183)return;const s=t.getTypeChecker().getSymbolAtLocation(i);return In((s==null?void 0:s.declarations)||et,Jm(Eh,tp,eu))}function BZe(e,t,r,i){if(r.kind===271){e.insertModifierBefore(t,156,r.name);return}const o=r.kind===273?r:r.parent.parent;if(o.name&&o.namedBindings)return;const s=i.getTypeChecker();i3(o,u=>{if(bu(u.symbol,s).flags&111551)return!0})||e.insertModifierBefore(t,156,o)}function GZe(e,t,r,i){RI.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var N$,KMe,VZe=I({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){si(),Ia(),N$="fixUnreferenceableDecoratorMetadata",KMe=[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],Ta({errorCodes:KMe,getCodeActions:e=>{const t=zZe(e.sourceFile,e.program,e.span.start);if(!t)return;const r=_r.ChangeTracker.with(e,s=>t.kind===276&&GZe(s,e.sourceFile,t,e.program)),i=_r.ChangeTracker.with(e,s=>BZe(s,e.sourceFile,t,e.program));let o;return r.length&&(o=Rn(o,n_(N$,r,f.Convert_named_imports_to_namespace_import))),i.length&&(o=Rn(o,n_(N$,i,f.Use_import_type))),o},fixIds:[N$]})}});function XMe(e,t,r){e.replaceNode(t,r.parent,w.createKeywordTypeNode(159))}function UO(e,t){return la(HO,e,t,M$,f.Delete_all_unused_declarations)}function YMe(e,t,r){e.delete(t,N.checkDefined(oa(r.parent,sj).typeParameters,"The type parameter to delete should exist"))}function Nfe(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function $Me(e){return e.kind===102?ri(e.parent,Mc):void 0}function QMe(e,t){return Vc(t.parent)&&Ua(t.parent.getChildren(e))===t}function ZMe(e,t,r){e.delete(t,r.parent.kind===243?r.parent:r)}function jZe(e,t,r){Xe(r.elements,i=>e.delete(t,i))}function UZe(e,t,r,{parent:i}){if(Oi(i)&&i.initializer&&NE(i.initializer))if(Vc(i.parent)&&Ne(i.parent.declarations)>1){const o=i.parent.parent,s=o.getStart(r),l=o.end;t.delete(r,i),t.insertNodeAt(r,l,i.initializer,{prefix:Xv(e.host,e.formatContext.options)+r.text.slice(l5(r.text,s-1),s),suffix:gO(r)?";":""})}else t.replaceNode(r,i.parent,i.initializer);else t.delete(r,i)}function e2e(e,t,r,i){t!==f.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=oa(i.parent,kS).typeParameter.name),Ve(i)&&HZe(i)&&(e.replaceNode(r,i,w.createIdentifier(`_${i.text}`)),Ao(i.parent)&&qx(i.parent).forEach(o=>{Ve(o.name)&&e.replaceNode(r,o.name,w.createIdentifier(`_${o.name.text}`))})))}function HZe(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 C$(e,t,r,i,o,s,l,u){qZe(t,r,e,i,o,s,l,u),Ve(t)&&Ws.Core.eachSymbolReferenceInFile(t,i,e,p=>{Fr(p.parent)&&p.parent.name===p&&(p=p.parent),!u&&YZe(p)&&r.delete(e,p.parent.parent)})}function qZe(e,t,r,i,o,s,l,u){const{parent:p}=e;if(Ao(p))JZe(t,r,p,i,o,s,l,u);else if(!(u&&Ve(e)&&Ws.Core.isSymbolReferencedInFile(e,i,r))){const h=Eh(p)?e:Za(p)?p.parent:p;N.assert(h!==r,"should not delete whole source file"),t.delete(r,h)}}function JZe(e,t,r,i,o,s,l,u=!1){if(KZe(i,t,r,o,s,l,u))if(r.modifiers&&r.modifiers.length>0&&(!Ve(r.name)||Ws.Core.isSymbolReferencedInFile(r.name,i,t)))for(const p of r.modifiers)Aa(p)&&e.deleteModifier(t,p);else!r.initializer&&t2e(r,i,o)&&e.delete(t,r)}function t2e(e,t,r){const i=e.parent.parameters.indexOf(e);return!Ws.Core.someSignatureUsage(e.parent,r,t,(o,s)=>!s||s.arguments.length>i)}function KZe(e,t,r,i,o,s,l){const{parent:u}=r;switch(u.kind){case 174:case 176:const p=u.parameters.indexOf(r),h=Hl(u)?u.name:u,m=Ws.Core.getReferencedSymbolsForNode(u.pos,h,o,i,s);if(m){for(const y of m)for(const T of y.references)if(T.kind===Ws.EntryKind.Node){const A=fP(T.node)&&sa(T.node.parent)&&T.node.parent.arguments.length>p,R=Fr(T.node.parent)&&fP(T.node.parent.expression)&&sa(T.node.parent.parent)&&T.node.parent.parent.arguments.length>p,M=(Hl(T.node.parent)||yh(T.node.parent))&&T.node.parent!==r.parent&&T.node.parent.parameters.length>p;if(A||R||M)return!1}}return!0;case 262:return u.name&&XZe(e,t,u.name)?n2e(u,r,l):!0;case 218:case 219:return n2e(u,r,l);case 178:return!1;case 177:return!0;default:return N.failBadSyntaxKind(u)}}function XZe(e,t,r){return!!Ws.Core.eachSymbolReferenceInFile(r,e,t,i=>Ve(i)&&sa(i.parent)&&i.parent.arguments.includes(i))}function n2e(e,t,r){const i=e.parameters,o=i.indexOf(t);return N.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 YZe(e){return(mr(e.parent)&&e.parent.left===e||(sH(e.parent)||Xy(e.parent))&&e.parent.operand===e)&&Zc(e.parent.parent)}var HO,P$,M$,pz,L$,Cfe,$Ze=I({"src/services/codefixes/fixUnusedIdentifier.ts"(){si(),Ia(),HO="unusedIdentifier",P$="unusedIdentifier_prefix",M$="unusedIdentifier_delete",pz="unusedIdentifier_deleteImports",L$="unusedIdentifier_infer",Cfe=[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],Ta({errorCodes:Cfe,getCodeActions(e){const{errorCode:t,sourceFile:r,program:i,cancellationToken:o}=e,s=i.getTypeChecker(),l=i.getSourceFiles(),u=po(r,e.span.start);if(om(u))return[UO(_r.ChangeTracker.with(e,y=>y.delete(r,u)),f.Remove_template_tag)];if(u.kind===30){const y=_r.ChangeTracker.with(e,T=>YMe(T,r,u));return[UO(y,f.Remove_type_parameters)]}const p=$Me(u);if(p){const y=_r.ChangeTracker.with(e,T=>T.delete(r,p));return[la(HO,y,[f.Remove_import_from_0,eoe(p)],pz,f.Delete_all_unused_imports)]}else if(Nfe(u)){const y=_r.ChangeTracker.with(e,T=>C$(r,u,T,s,l,i,o,!1));if(y.length)return[la(HO,y,[f.Remove_unused_declaration_for_Colon_0,u.getText(r)],pz,f.Delete_all_unused_imports)]}if(im(u.parent)||YE(u.parent)){if(Ao(u.parent.parent)){const y=u.parent.elements,T=[y.length>1?f.Remove_unused_declarations_for_Colon_0:f.Remove_unused_declaration_for_Colon_0,Wt(y,A=>A.getText(r)).join(", ")];return[UO(_r.ChangeTracker.with(e,A=>jZe(A,r,u.parent)),T)]}return[UO(_r.ChangeTracker.with(e,y=>UZe(e,y,r,u.parent)),f.Remove_unused_destructuring_declaration)]}if(QMe(r,u))return[UO(_r.ChangeTracker.with(e,y=>ZMe(y,r,u.parent)),f.Remove_variable_statement)];const h=[];if(u.kind===140){const y=_r.ChangeTracker.with(e,A=>XMe(A,r,u)),T=oa(u.parent,kS).typeParameter.name.text;h.push(la(HO,y,[f.Replace_infer_0_with_unknown,T],L$,f.Replace_all_unused_infer_with_unknown))}else{const y=_r.ChangeTracker.with(e,T=>C$(r,u,T,s,l,i,o,!1));if(y.length){const T=Za(u.parent)?u.parent:u;h.push(UO(y,[f.Remove_unused_declaration_for_Colon_0,T.getText(r)]))}}const m=_r.ChangeTracker.with(e,y=>e2e(y,t,r,u));return m.length&&h.push(la(HO,m,[f.Prefix_0_with_an_underscore,u.getText(r)],P$,f.Prefix_all_unused_declarations_with_where_possible)),h},fixIds:[P$,M$,pz,L$],getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),s=r.getSourceFiles();return bs(e,Cfe,(l,u)=>{const p=po(t,u.start);switch(e.fixId){case P$:e2e(l,u.code,t,p);break;case pz:{const h=$Me(p);h?l.delete(t,h):Nfe(p)&&C$(t,p,l,o,s,r,i,!0);break}case M$:{if(p.kind===140||Nfe(p))break;if(om(p))l.delete(t,p);else if(p.kind===30)YMe(l,t,p);else if(im(p.parent)){if(p.parent.parent.initializer)break;(!Ao(p.parent.parent)||t2e(p.parent.parent,o,s))&&l.delete(t,p.parent.parent)}else{if(YE(p.parent.parent)&&p.parent.parent.parent.initializer)break;QMe(t,p)?ZMe(l,t,p.parent):C$(t,p,l,o,s,r,i,!0)}break}case L$:p.kind===140&&XMe(l,t,p);break;default:N.fail(JSON.stringify(e.fixId))}})}})}});function r2e(e,t,r,i,o){const s=po(t,r),l=Vn(s,Hi);if(l.getStart(t)!==s.getStart(t)){const p=JSON.stringify({statementKind:N.formatSyntaxKind(l.kind),tokenKind:N.formatSyntaxKind(s.kind),errorCode:o,start:r,length:i});N.fail("Token and statement should start at the same point. "+p)}const u=(Ko(l.parent)?l.parent:l).parent;if(!Ko(l.parent)||l===Ua(l.parent.statements))switch(u.kind){case 245:if(u.elseStatement){if(Ko(l.parent))break;e.replaceNode(t,l,w.createBlock(et));return}case 247:case 248:e.delete(t,u);return}if(Ko(l.parent)){const p=r+i,h=N.checkDefined(QZe(hU(l.parent.statements,l),m=>m.pos<p),"Some statement should be last");e.deleteNodeRange(t,l,h)}else e.delete(t,l)}function QZe(e,t){let r;for(const i of e){if(!t(i))break;r=i}return r}var k$,Pfe,ZZe=I({"src/services/codefixes/fixUnreachableCode.ts"(){si(),Ia(),k$="fixUnreachableCode",Pfe=[f.Unreachable_code_detected.code],Ta({errorCodes:Pfe,getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;const r=_r.ChangeTracker.with(e,i=>r2e(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[la(k$,r,f.Remove_unreachable_code,k$,f.Remove_all_unreachable_code)]},fixIds:[k$],getAllCodeActions:e=>bs(e,Pfe,(t,r)=>r2e(t,r.file,r.start,r.length,r.code))})}});function i2e(e,t,r){const i=po(t,r),o=oa(i.parent,ZE),s=i.getStart(t),l=o.statement.getStart(t),u=If(s,l,t)?l:Pa(t.text,vs(o,59,t).end,!0);e.deleteRange(t,{pos:s,end:u})}var w$,Mfe,eet=I({"src/services/codefixes/fixUnusedLabel.ts"(){si(),Ia(),w$="fixUnusedLabel",Mfe=[f.Unused_label.code],Ta({errorCodes:Mfe,getCodeActions(e){const t=_r.ChangeTracker.with(e,r=>i2e(r,e.sourceFile,e.span.start));return[la(w$,t,f.Remove_unused_label,w$,f.Remove_all_unused_labels)]},fixIds:[w$],getAllCodeActions:e=>bs(e,Mfe,(t,r)=>i2e(t,r.file,r.start))})}});function o2e(e,t,r,i,o){e.replaceNode(t,r,o.typeToTypeNode(i,r,void 0))}function a2e(e,t,r){const i=Vn(po(e,t),tet),o=i&&i.type;return o&&{typeNode:o,type:net(r,o)}}function tet(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 net(e,t){if(HR(t)){const r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(Rn([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var Lfe,O$,kfe,ret=I({"src/services/codefixes/fixJSDocTypes.ts"(){si(),Ia(),Lfe="fixJSDocTypes_plain",O$="fixJSDocTypes_nullable",kfe=[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],Ta({errorCodes:kfe,getCodeActions(e){const{sourceFile:t}=e,r=e.program.getTypeChecker(),i=a2e(t,e.span.start,r);if(!i)return;const{typeNode:o,type:s}=i,l=o.getText(t),u=[p(s,Lfe,f.Change_all_jsdoc_style_types_to_TypeScript)];return o.kind===321&&u.push(p(s,O$,f.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),u;function p(h,m,y){const T=_r.ChangeTracker.with(e,A=>o2e(A,t,o,h,r));return la("jdocTypes",T,[f.Change_0_to_1,l,r.typeToString(h)],m,y)}},fixIds:[Lfe,O$],getAllCodeActions(e){const{fixId:t,program:r,sourceFile:i}=e,o=r.getTypeChecker();return bs(e,kfe,(s,l)=>{const u=a2e(l.file,l.start,o);if(!u)return;const{typeNode:p,type:h}=u,m=p.kind===321&&t===O$?o.getNullableType(h,32768):h;o2e(s,i,p,m,o)})}})}});function s2e(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function l2e(e,t){const r=po(e,t);if(Fr(r.parent)){let i=r.parent;for(;Fr(i.parent);)i=i.parent;return i.name}if(Ve(r))return r}var W$,wfe,iet=I({"src/services/codefixes/fixMissingCallParentheses.ts"(){si(),Ia(),W$="fixMissingCallParentheses",wfe=[f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],Ta({errorCodes:wfe,fixIds:[W$],getCodeActions(e){const{sourceFile:t,span:r}=e,i=l2e(t,r.start);if(!i)return;const o=_r.ChangeTracker.with(e,s=>s2e(s,e.sourceFile,i));return[la(W$,o,f.Add_missing_call_parentheses,W$,f.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>bs(e,wfe,(t,r)=>{const i=l2e(r.file,r.start);i&&s2e(t,r.file,i)})})}});function oet(e){if(e.type)return e.type;if(Oi(e.parent)&&e.parent.type&&bh(e.parent.type))return e.parent.type.type}function c2e(e,t){const r=po(e,t),i=Bp(r);if(!i)return;let o;switch(i.kind){case 174:o=i.name;break;case 262:case 218:o=vs(i,100,e);break;case 219:const s=i.typeParameters?30:21;o=vs(i,s,e)||Ua(i.parameters);break;default:return}return o&&{insertBefore:o,returnType:oet(i)}}function u2e(e,t,{insertBefore:r,returnType:i}){if(i){const o=ML(i);(!o||o.kind!==80||o.text!=="Promise")&&e.replaceNode(t,i,w.createTypeReferenceNode("Promise",w.createNodeArray([i])))}e.insertModifierBefore(t,134,r)}var F$,Ofe,aet=I({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){si(),Ia(),F$="fixAwaitInSyncFunction",Ofe=[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],Ta({errorCodes:Ofe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=c2e(t,r.start);if(!i)return;const o=_r.ChangeTracker.with(e,s=>u2e(s,t,i));return[la(F$,o,f.Add_async_modifier_to_containing_function,F$,f.Add_all_missing_async_modifiers)]},fixIds:[F$],getAllCodeActions:function(t){const r=new Map;return bs(t,Ofe,(i,o)=>{const s=c2e(o.file,o.start);!s||!Am(r,as(s.insertBefore))||u2e(i,t.sourceFile,s)})}})}});function d2e(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){const u=o.program.getTypeChecker(),p=po(e,t).parent;N.assert(Cy(p),"error span of fixPropertyOverrideAccessor should only be on an accessor");const h=p.parent;N.assert(di(h),"erroneous accessors should only be inside classes");const m=ah(eme(h,u));if(!m)return[];const y=Vi(nR(p.name)),T=u.getPropertyOfType(u.getTypeAtLocation(m),y);if(!T||!T.valueDeclaration)return[];s=T.valueDeclaration.pos,l=T.valueDeclaration.end,e=Un(T.valueDeclaration)}else N.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return x2e(e,o.program,s,l,o,f.Generate_get_and_set_accessors.message)}var Wfe,z$,set=I({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){si(),Ia(),Wfe=[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],z$="fixPropertyOverrideAccessor",Ta({errorCodes:Wfe,getCodeActions(e){const t=d2e(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[la(z$,t,f.Generate_get_and_set_accessors,z$,f.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[z$],getAllCodeActions:e=>bs(e,Wfe,(t,r)=>{const i=d2e(r.file,r.start,r.length,r.code,e);if(i)for(const o of i)t.pushRaw(e.sourceFile,o)})})}});function cet(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(Bp(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 uet(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 p2e(e,t,r,i,o,s,l,u,p){if(!pC(r.kind)&&r.kind!==80&&r.kind!==26&&r.kind!==110)return;const{parent:h}=r,m=CI(t,o,p,u);switch(i=uet(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(h)&&l(h)||qo(h)||gp(h))return f2e(e,m,t,h,o,u,s),m.writeFixes(e),h;if(Fr(h)){const A=qO(h.name,o,s),R=uM(A,h,o,u);if(R){const M=w.createJSDocTypeTag(void 0,w.createJSDocTypeExpression(R),void 0);e.addJSDocTags(t,oa(h.parent.parent,Zc),[M])}return m.writeFixes(e),h}return;case f.Variable_0_implicitly_has_an_1_type.code:{const A=o.getTypeChecker().getSymbolAtLocation(r);return A&&A.valueDeclaration&&Oi(A.valueDeclaration)&&l(A.valueDeclaration)?(f2e(e,m,Un(A.valueDeclaration),A.valueDeclaration,o,u,s),m.writeFixes(e),A.valueDeclaration):void 0}}const y=Bp(r);if(y===void 0)return;let T;switch(i){case f.Parameter_0_implicitly_has_an_1_type.code:if(vp(y)){m2e(e,m,t,y,o,u,s),T=y;break}case f.Rest_parameter_0_implicitly_has_an_any_type.code:if(l(y)){const A=oa(h,Ao);det(e,m,t,A,y,o,u,s),T=A}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:tf(y)&&Ve(y.name)&&(B$(e,m,t,y,qO(y.name,o,s),o,u),T=y);break;case f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:vp(y)&&(m2e(e,m,t,y,o,u,s),T=y);break;case f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:_r.isThisTypeAnnotatable(y)&&l(y)&&(pet(e,t,y,o,u,s),T=y);break;default:return N.fail(String(i))}return m.writeFixes(e),T}function f2e(e,t,r,i,o,s,l){Ve(i.name)&&B$(e,t,r,i,qO(i.name,o,l),o,s)}function det(e,t,r,i,o,s,l,u){if(!Ve(i.name))return;const p=_et(o,r,s,u);if(N.assert(o.parameters.length===p.length,"Parameter count and inference count should match"),lr(o))_2e(e,r,p,s,l);else{const h=Gs(o)&&!vs(o,21,r);h&&e.insertNodeBefore(r,Ua(o.parameters),w.createToken(21));for(const{declaration:m,type:y}of p)m&&!m.type&&!m.initializer&&B$(e,t,r,m,y,s,l);h&&e.insertNodeAfter(r,Xa(o.parameters),w.createToken(22))}}function pet(e,t,r,i,o,s){const l=h2e(r,t,i,s);if(!l||!l.length)return;const u=zfe(i,l,s).thisParameter(),p=uM(u,r,i,o);p&&(lr(r)?fet(e,t,r,p):e.tryInsertThisTypeAnnotation(t,r,p))}function fet(e,t,r,i){e.addJSDocTags(t,r,[w.createJSDocThisTag(void 0,w.createJSDocTypeExpression(i))])}function m2e(e,t,r,i,o,s,l){const u=Kc(i.parameters);if(u&&Ve(i.name)&&Ve(u.name)){let p=qO(i.name,o,l);p===o.getTypeChecker().getAnyType()&&(p=qO(u.name,o,l)),lr(i)?_2e(e,r,[{declaration:u,type:p}],o,s):B$(e,t,r,u,p,o,s)}}function B$(e,t,r,i,o,s,l){const u=uM(o,i,s,l);if(u)if(lr(r)&&i.kind!==171){const p=Oi(i)?ri(i.parent.parent,Ll):i;if(!p)return;const h=w.createJSDocTypeExpression(u),m=tf(i)?w.createJSDocReturnTag(void 0,h,void 0):w.createJSDocTypeTag(void 0,h,void 0);e.addJSDocTags(r,p,[m])}else met(u,i,r,e,t,os(s.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,u)}function met(e,t,r,i,o,s){const l=MI(e,s);return l&&i.tryInsertTypeAnnotation(r,t,l.typeNode)?(Xe(l.symbols,u=>o.addImportFromExportedSymbol(u,!0)),!0):!1}function _2e(e,t,r,i,o){const s=r.length&&r[0].declaration.parent;if(!s)return;const l=eo(r,u=>{const p=u.declaration;if(p.initializer||o0(p)||!Ve(p.name))return;const h=u.type&&uM(u.type,p,i,o);if(h){const m=w.cloneNode(p.name);return pr(m,7168),{name:w.cloneNode(p.name),param:p,isOptional:!!u.isOptional,typeNode:h}}});if(l.length)if(Gs(s)||Os(s)){const u=Gs(s)&&!vs(s,21,t);u&&e.insertNodeBefore(t,Ua(s.parameters),w.createToken(21)),Xe(l,({typeNode:p,param:h})=>{const m=w.createJSDocTypeTag(void 0,w.createJSDocTypeExpression(p)),y=w.createJSDocComment(void 0,[m]);e.insertNodeAt(t,h.getStart(t),y,{suffix:" "})}),u&&e.insertNodeAfter(t,Xa(s.parameters),w.createToken(22))}else{const u=Wt(l,({name:p,typeNode:h,isOptional:m})=>w.createJSDocParameterTag(void 0,p,!!m,w.createJSDocTypeExpression(h),!1,void 0));e.addJSDocTags(t,s,u)}}function Ffe(e,t,r){return eo(Ws.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==Ws.EntryKind.Span?ri(i.node,Ve):void 0)}function qO(e,t,r){const i=Ffe(e,t,r);return zfe(t,i,r).single()}function _et(e,t,r,i){const o=h2e(e,t,r,i);return o&&zfe(r,o,i).parameters(e)||e.parameters.map(s=>({declaration:s,type:Ve(s.name)?qO(s.name,r,i):r.getTypeChecker().getAnyType()}))}function h2e(e,t,r,i){let o;switch(e.kind){case 176:o=vs(e,137,t);break;case 219:case 218:const s=e.parent;o=(Oi(s)||qo(s))&&Ve(s.name)?s.name:e.name;break;case 262:case 174:case 173:o=e.name;break}if(o)return Ffe(o,r,i)}function zfe(e,t,r){const i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:De=>i.createArrayType(De),Promise:De=>i.createPromiseType(De)},s=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:p,parameters:h,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(De){const Me=new Map;for(const At of De)At.properties&&At.properties.forEach((Se,je)=>{Me.has(je)||Me.set(je,[]),Me.get(je).push(Se)});const We=new Map;return Me.forEach((At,Se)=>{We.set(Se,u(At))}),{isNumber:De.some(At=>At.isNumber),isString:De.some(At=>At.isString),isNumberOrString:De.some(At=>At.isNumberOrString),candidateTypes:Do(De,At=>At.candidateTypes),properties:We,calls:Do(De,At=>At.calls),constructs:Do(De,At=>At.constructs),numberIndex:Xe(De,At=>At.numberIndex),stringIndex:Xe(De,At=>At.stringIndex),candidateThisTypes:Do(De,At=>At.candidateThisTypes),inferredTypes:void 0}}function p(){return he(y(t))}function h(De){if(t.length===0||!De.parameters)return;const Me=l();for(const At of t)r.throwIfCancellationRequested(),T(At,Me);const We=[...Me.constructs||[],...Me.calls||[]];return De.parameters.map((At,Se)=>{const je=[],ot=Xh(At);let Bt=!1;for(const $e of We)if($e.argumentTypes.length<=Se)Bt=lr(De),je.push(i.getUndefinedType());else if(ot)for(let It=Se;It<$e.argumentTypes.length;It++)je.push(i.getBaseTypeOfLiteralType($e.argumentTypes[It]));else je.push(i.getBaseTypeOfLiteralType($e.argumentTypes[Se]));if(Ve(At.name)){const $e=y(Ffe(At.name,e,r));je.push(...ot?eo($e,i.getElementTypeOfArrayType):$e)}const vt=he(je);return{type:ot?i.createArrayType(vt):vt,isOptional:Bt&&!ot,declaration:At}})}function m(){const De=l();for(const Me of t)r.throwIfCancellationRequested(),T(Me,De);return he(De.candidateThisTypes||et)}function y(De){const Me=l();for(const We of De)r.throwIfCancellationRequested(),T(We,Me);return Y(Me)}function T(De,Me){for(;zC(De);)De=De.parent;switch(De.parent.kind){case 244:R(De,Me);break;case 225:Me.isNumber=!0;break;case 224:M(De.parent,Me);break;case 226:C(De,De.parent,Me);break;case 296:case 297:O(De.parent,Me);break;case 213:case 214:De.parent.expression===De?U(De.parent,Me):A(De,Me);break;case 211:K(De.parent,Me);break;case 212:Q(De.parent,De,Me);break;case 303:case 304:V(De.parent,Me);break;case 172:se(De.parent,Me);break;case 260:{const{name:We,initializer:At}=De.parent;if(De===We){At&&Ue(Me,i.getTypeAtLocation(At));break}}default:return A(De,Me)}}function A(De,Me){Qh(De)&&Ue(Me,i.getContextualType(De))}function R(De,Me){Ue(Me,sa(De)?i.getVoidType():i.getAnyType())}function M(De,Me){switch(De.operator){case 46:case 47:case 41:case 55:Me.isNumber=!0;break;case 40:Me.isNumberOrString=!0;break}}function C(De,Me,We){switch(Me.operatorToken.kind){case 43:case 42:case 44:case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 66:case 68:case 67:case 69:case 70:case 74:case 75:case 79:case 71:case 73:case 72:case 41:case 30:case 33:case 32:case 34:const At=i.getTypeAtLocation(Me.left===De?Me.right:Me.left);At.flags&1056?Ue(We,At):We.isNumber=!0;break;case 65:case 40:const Se=i.getTypeAtLocation(Me.left===De?Me.right:Me.left);Se.flags&1056?Ue(We,Se):Se.flags&296?We.isNumber=!0:Se.flags&402653316?We.isString=!0:Se.flags&1||(We.isNumberOrString=!0);break;case 64:case 35:case 37:case 38:case 36:case 77:case 78:case 76:Ue(We,i.getTypeAtLocation(Me.left===De?Me.right:Me.left));break;case 103:De===Me.left&&(We.isString=!0);break;case 57:case 61:De===Me.left&&(De.parent.parent.kind===260||Pc(De.parent.parent,!0))&&Ue(We,i.getTypeAtLocation(Me.right));break}}function O(De,Me){Ue(Me,i.getTypeAtLocation(De.parent.parent.expression))}function U(De,Me){const We={argumentTypes:[],return_:l()};if(De.arguments)for(const At of De.arguments)We.argumentTypes.push(i.getTypeAtLocation(At));T(De,We.return_),De.kind===213?(Me.calls||(Me.calls=[])).push(We):(Me.constructs||(Me.constructs=[])).push(We)}function K(De,Me){const We=_l(De.name.text);Me.properties||(Me.properties=new Map);const At=Me.properties.get(We)||l();T(De,At),Me.properties.set(We,At)}function Q(De,Me,We){if(Me===De.argumentExpression){We.isNumberOrString=!0;return}else{const At=i.getTypeAtLocation(De.argumentExpression),Se=l();T(De,Se),At.flags&296?We.numberIndex=Se:We.stringIndex=Se}}function V(De,Me){const We=Oi(De.parent.parent)?De.parent.parent:De.parent;Ee(Me,i.getTypeAtLocation(We))}function se(De,Me){Ee(Me,i.getTypeAtLocation(De.parent))}function G(De,Me){const We=[];for(const At of De)for(const{high:Se,low:je}of Me)Se(At)&&(N.assert(!je(At),"Priority can't have both low and high"),We.push(je));return De.filter(At=>We.every(Se=>!Se(At)))}function ne(De){return he(Y(De))}function he(De){if(!De.length)return i.getAnyType();const Me=i.getUnionType([i.getStringType(),i.getNumberType()]);let At=G(De,[{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)}]);const 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(De){if(De.length===1)return De[0];const Me=[],We=[],At=[],Se=[];let je=!1,ot=!1;const Bt=$p();for(const It of De){for(const Mn of i.getPropertiesOfType(It))Bt.add(Mn.escapedName,Mn.valueDeclaration?i.getTypeOfSymbolAtLocation(Mn,Mn.valueDeclaration):i.getAnyType());Me.push(...i.getSignaturesOfType(It,0)),We.push(...i.getSignaturesOfType(It,1));const tn=i.getIndexInfoOfType(It,0);tn&&(At.push(tn.type),je=je||tn.isReadonly);const rn=i.getIndexInfoOfType(It,1);rn&&(Se.push(rn.type),ot=ot||rn.isReadonly)}const vt=Kte(Bt,(It,tn)=>{const rn=tn.length<De.length?16777216:0,Mn=i.createSymbol(4|rn,It);return Mn.links.type=i.getUnionType(tn),[It,Mn]}),$e=[];return At.length&&$e.push(i.createIndexInfo(i.getStringType(),i.getUnionType(At),je)),Se.length&&$e.push(i.createIndexInfo(i.getNumberType(),i.getUnionType(Se),ot)),i.createAnonymousType(De[0].symbol,vt,Me,We,$e)}function Y(De){var Me,We,At;const Se=[];De.isNumber&&Se.push(i.getNumberType()),De.isString&&Se.push(i.getStringType()),De.isNumberOrString&&Se.push(i.getUnionType([i.getStringType(),i.getNumberType()])),De.numberIndex&&Se.push(i.createArrayType(ne(De.numberIndex))),((Me=De.properties)!=null&&Me.size||(We=De.constructs)!=null&&We.length||De.stringIndex)&&Se.push(X(De));const je=(De.candidateTypes||[]).map(Bt=>i.getBaseTypeOfLiteralType(Bt)),ot=(At=De.calls)!=null&&At.length?X(De):void 0;return ot&&je?Se.push(i.getUnionType([ot,...je],2)):(ot&&Se.push(ot),Ne(je)&&Se.push(...je)),Se.push(...oe(De)),Se}function X(De){const Me=new Map;De.properties&&De.properties.forEach((je,ot)=>{const Bt=i.createSymbol(4,ot);Bt.links.type=ne(je),Me.set(ot,Bt)});const We=De.calls?[Le(De.calls)]:[],At=De.constructs?[Le(De.constructs)]:[],Se=De.stringIndex?[i.createIndexInfo(i.getStringType(),ne(De.stringIndex),!1)]:[];return i.createAnonymousType(void 0,Me,We,At,Se)}function oe(De){if(!De.properties||!De.properties.size)return[];const Me=s.filter(We=>pe(We,De));return 0<Me.length&&Me.length<3?Me.map(We=>Ce(We,De)):[]}function pe(De,Me){return Me.properties?!zc(Me.properties,(We,At)=>{const Se=i.getTypeOfPropertyOfType(De,At);return Se?We.calls?!i.getSignaturesOfType(Se,0).length||!i.isTypeAssignableTo(Se,ve(We.calls)):!i.isTypeAssignableTo(Se,ne(We)):!0}):!1}function Ce(De,Me){if(!(Wr(De)&4)||!Me.properties)return De;const We=De.target,At=ah(We.typeParameters);if(!At)return De;const Se=[];return Me.properties.forEach((je,ot)=>{const Bt=i.getTypeOfPropertyOfType(We,ot);N.assert(!!Bt,"generic should have all the properties of its reference."),Se.push(...de(Bt,ne(je),At))}),o[De.symbol.escapedName](he(Se))}function de(De,Me,We){if(De===We)return[Me];if(De.flags&3145728)return Do(De.types,je=>de(je,Me,We));if(Wr(De)&4&&Wr(Me)&4){const je=i.getTypeArguments(De),ot=i.getTypeArguments(Me),Bt=[];if(je&&ot)for(let vt=0;vt<je.length;vt++)ot[vt]&&Bt.push(...de(je[vt],ot[vt],We));return Bt}const At=i.getSignaturesOfType(De,0),Se=i.getSignaturesOfType(Me,0);return At.length===1&&Se.length===1?ie(At[0],Se[0],We):[]}function ie(De,Me,We){var At;const Se=[];for(let Bt=0;Bt<De.parameters.length;Bt++){const vt=De.parameters[Bt],$e=Me.parameters[Bt],It=De.declaration&&Xh(De.declaration.parameters[Bt]);if(!$e)break;let tn=vt.valueDeclaration?i.getTypeOfSymbolAtLocation(vt,vt.valueDeclaration):i.getAnyType();const rn=It&&i.getElementTypeOfArrayType(tn);rn&&(tn=rn);const Mn=((At=ri($e,fh))==null?void 0:At.links.type)||($e.valueDeclaration?i.getTypeOfSymbolAtLocation($e,$e.valueDeclaration):i.getAnyType());Se.push(...de(tn,Mn,We))}const je=i.getReturnTypeOfSignature(De),ot=i.getReturnTypeOfSignature(Me);return Se.push(...de(je,ot,We)),Se}function ve(De){return i.createAnonymousType(void 0,ca(),[Le(De)],et,et)}function Le(De){const Me=[],We=Math.max(...De.map(Se=>Se.argumentTypes.length));for(let Se=0;Se<We;Se++){const je=i.createSymbol(1,_l(`arg${Se}`));je.links.type=he(De.map(ot=>ot.argumentTypes[Se]||i.getUndefinedType())),De.some(ot=>ot.argumentTypes[Se]===void 0)&&(je.flags|=16777216),Me.push(je)}const At=ne(u(De.map(Se=>Se.return_)));return i.createSignature(void 0,void 0,void 0,Me,At,void 0,We,0)}function Ue(De,Me){Me&&!(Me.flags&1)&&!(Me.flags&131072)&&(De.candidateTypes||(De.candidateTypes=[])).push(Me)}function Ee(De,Me){Me&&!(Me.flags&1)&&!(Me.flags&131072)&&(De.candidateThisTypes||(De.candidateThisTypes=[])).push(Me)}}var G$,Bfe,het=I({"src/services/codefixes/inferFromUsage.ts"(){si(),Ia(),G$="inferFromUsage",Bfe=[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],Ta({errorCodes:Bfe,getCodeActions(e){const{sourceFile:t,program:r,span:{start:i},errorCode:o,cancellationToken:s,host:l,preferences:u}=e,p=po(t,i);let h;const m=_r.ChangeTracker.with(e,T=>{h=p2e(T,t,p,o,r,s,Iv,l,u)}),y=h&&Lo(h);return!y||m.length===0?void 0:[la(G$,m,[cet(o,p),fc(y)],G$,f.Infer_all_types_from_usage)]},fixIds:[G$],getAllCodeActions(e){const{sourceFile:t,program:r,cancellationToken:i,host:o,preferences:s}=e,l=TI();return bs(e,Bfe,(u,p)=>{p2e(u,t,po(p.file,p.start),p.code,r,i,l,o,s)})}})}});function g2e(e,t,r){if(lr(e))return;const i=po(e,r),o=Vn(i,Bs),s=o==null?void 0:o.type;if(!s)return;const 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 v2e(e,t,r,i){e.replaceNode(t,r,w.createTypeReferenceNode("Promise",[i]))}var V$,Gfe,get=I({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){si(),Ia(),V$="fixReturnTypeInAsyncFunction",Gfe=[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],Ta({errorCodes:Gfe,fixIds:[V$],getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t,s=i.getTypeChecker(),l=g2e(r,i.getTypeChecker(),o.start);if(!l)return;const{returnTypeNode:u,returnType:p,promisedTypeNode:h,promisedType:m}=l,y=_r.ChangeTracker.with(t,T=>v2e(T,r,u,h));return[la(V$,y,[f.Replace_0_with_Promise_1,s.typeToString(p),s.typeToString(m)],V$,f.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>bs(e,Gfe,(t,r)=>{const i=g2e(r.file,e.program.getTypeChecker(),r.start);i&&v2e(t,r.file,i.returnTypeNode,i.promisedTypeNode)})})}});function y2e(e,t,r,i){const{line:o}=ys(t,r);(!i||Xb(i,o))&&e.insertCommentBeforeLine(t,o,r," @ts-ignore")}var Vfe,jfe,Ufe,vet=I({"src/services/codefixes/disableJsDiagnostics.ts"(){si(),Ia(),Vfe="disableJsDiagnostics",jfe="disableJsDiagnostics",Ufe=eo(Object.keys(f),e=>{const t=f[e];return t.category===1?t.code:void 0}),Ta({errorCodes:Ufe,getCodeActions:function(t){const{sourceFile:r,program:i,span:o,host:s,formatContext:l}=t;if(!lr(r)||!gk(r,i.getCompilerOptions()))return;const u=r.checkJsDirective?"":Xv(s,l.options),p=[n_(Vfe,[ECe(r.fileName,[sO(r.checkJsDirective?pc(r.checkJsDirective.pos,r.checkJsDirective.end):vu(0,0),`// @ts-nocheck${u}`)])],f.Disable_checking_for_this_file)];return _r.isValidLocationToAddComment(r,o.start)&&p.unshift(la(Vfe,_r.ChangeTracker.with(t,h=>y2e(h,r,o.start)),f.Ignore_this_error_message,jfe,f.Add_ts_ignore_to_all_error_messages)),p},fixIds:[jfe],getAllCodeActions:e=>{const t=new Set;return bs(e,Ufe,(r,i)=>{_r.isValidLocationToAddComment(i.file,i.start)&&y2e(r,i.file,i.start,t)})}})}});function Hfe(e,t,r,i,o,s,l){const u=e.symbol.members;for(const p of t)u.has(p.escapedName)||b2e(p,e,r,i,o,s,l,void 0)}function OD(e){return{trackSymbol:()=>!1,moduleResolverHost:KK(e.program,e.host)}}function b2e(e,t,r,i,o,s,l,u,p=3,h=!1){const m=e.getDeclarations(),y=Kc(m),T=i.program.getTypeChecker(),A=os(i.program.getCompilerOptions()),R=(y==null?void 0:y.kind)??171,M=oe(e,y),C=y?ud(y):0;let O=C&256;O|=C&1?1:C&4?4:0,y&&Wd(y)&&(O|=512);const U=ne(),K=T.getWidenedType(T.getTypeOfSymbolAtLocation(e,t)),Q=!!(e.flags&16777216),V=!!(t.flags&33554432)||h,se=lf(r,o);switch(R){case 171:case 172:const pe=se===0?268435456:void 0;let Ce=T.typeToTypeNode(K,t,pe,OD(i));if(s){const ie=MI(Ce,A);ie&&(Ce=ie.typeNode,WD(s,ie.symbols))}l(w.createPropertyDeclaration(U,y?ye(M):e.getName(),Q&&p&2?w.createToken(58):void 0,Ce,void 0));break;case 177:case 178:{N.assertIsDefined(m);let ie=T.typeToTypeNode(K,t,void 0,OD(i));const ve=NS(m,y),Le=ve.secondAccessor?[ve.firstAccessor,ve.secondAccessor]:[ve.firstAccessor];if(s){const Ue=MI(ie,A);Ue&&(ie=Ue.typeNode,WD(s,Ue.symbols))}for(const Ue of Le)if(tf(Ue))l(w.createGetAccessorDeclaration(U,ye(M),et,X(ie),Y(u,se,V)));else{N.assertNode(Ue,vp,"The counterpart to a getter should be a setter");const Ee=wC(Ue),De=Ee&&Ve(Ee.name)?Er(Ee.name):void 0;l(w.createSetAccessorDeclaration(U,ye(M),Jfe(1,[De],[X(ie)],1,!1),Y(u,se,V)))}break}case 173:case 174:N.assertIsDefined(m);const de=K.isUnion()?Do(K.types,ie=>ie.getCallSignatures()):K.getCallSignatures();if(!bt(de))break;if(m.length===1){N.assert(de.length===1,"One declaration implies one signature");const ie=de[0];G(se,ie,U,ye(M),Y(u,se,V));break}for(const ie of de)G(se,ie,U,ye(M));if(!V)if(m.length>de.length){const ie=T.getSignatureFromDeclaration(m[m.length-1]);G(se,ie,U,ye(M),Y(u,se))}else N.assert(m.length===de.length,"Declarations and signatures should match count"),l(Eet(T,i,t,de,ye(M),Q&&!!(p&1),U,se,u));break}function G(pe,Ce,de,ie,ve){const Le=j$(174,i,pe,Ce,ve,ie,de,Q&&!!(p&1),t,s);Le&&l(Le)}function ne(){let pe;return O&&(pe=Px(pe,w.createModifiersFromModifierFlags(O))),he()&&(pe=Rn(pe,w.createToken(164))),pe&&w.createNodeArray(pe)}function he(){return!!(i.program.getCompilerOptions().noImplicitOverride&&y&&jE(y))}function ye(pe){return Ve(pe)&&pe.escapedText==="constructor"?w.createComputedPropertyName(w.createStringLiteral(Er(pe),se===0)):ll(pe,!1)}function Y(pe,Ce,de){return de?void 0:ll(pe,!1)||Kfe(Ce)}function X(pe){return ll(pe,!1)}function oe(pe,Ce){if(xl(pe)&262144){const de=pe.links.nameType;if(de&&tm(de))return w.createIdentifier(Vi(nm(de)))}return ll(Lo(Ce),!1)}}function j$(e,t,r,i,o,s,l,u,p,h){const m=t.program,y=m.getTypeChecker(),T=os(m.getCompilerOptions()),A=lr(p),R=524545|(r===0?268435456:0),M=y.signatureToSignatureDeclaration(i,e,p,R,OD(t));if(!M)return;let C=A?void 0:M.typeParameters,O=M.parameters,U=A?void 0:M.type;if(h){if(C){const se=Zo(C,G=>{let ne=G.constraint,he=G.default;if(ne){const ye=MI(ne,T);ye&&(ne=ye.typeNode,WD(h,ye.symbols))}if(he){const ye=MI(he,T);ye&&(he=ye.typeNode,WD(h,ye.symbols))}return w.updateTypeParameterDeclaration(G,G.modifiers,G.name,ne,he)});C!==se&&(C=dt(w.createNodeArray(se,C.hasTrailingComma),C))}const V=Zo(O,se=>{let G=A?void 0:se.type;if(G){const ne=MI(G,T);ne&&(G=ne.typeNode,WD(h,ne.symbols))}return w.updateParameterDeclaration(se,se.modifiers,se.dotDotDotToken,se.name,A?void 0:se.questionToken,G,se.initializer)});if(O!==V&&(O=dt(w.createNodeArray(V,O.hasTrailingComma),O)),U){const se=MI(U,T);se&&(U=se.typeNode,WD(h,se.symbols))}}const K=u?w.createToken(58):void 0,Q=M.asteriskToken;if(Os(M))return w.updateFunctionExpression(M,l,M.asteriskToken,ri(s,Ve),C,O,U,o??M.body);if(Gs(M))return w.updateArrowFunction(M,l,C,O,U,M.equalsGreaterThanToken,o??M.body);if(Hl(M))return w.updateMethodDeclaration(M,l,Q,s??w.createIdentifier(""),K,C,O,U,o);if(Tc(M))return w.updateFunctionDeclaration(M,l,M.asteriskToken,ri(s,Ve),C,O,U,o??M.body)}function qfe(e,t,r,i,o,s,l){const u=lf(t.sourceFile,t.preferences),p=os(t.program.getCompilerOptions()),h=OD(t),m=t.program.getTypeChecker(),y=lr(l),{typeArguments:T,arguments:A,parent:R}=i,M=y?void 0:m.getContextualType(i),C=Wt(A,he=>Ve(he)?he.text:Fr(he)&&Ve(he.name)?he.name.text:void 0),O=y?[]:Wt(A,he=>m.getTypeAtLocation(he)),{argumentTypeNodes:U,argumentTypeParameters:K}=T2e(m,r,O,l,p,1,h),Q=s?w.createNodeArray(w.createModifiersFromModifierFlags(s)):void 0,V=qW(R)?w.createToken(42):void 0,se=y?void 0:yet(m,K,T),G=Jfe(A.length,C,U,void 0,y),ne=y||M===void 0?void 0:m.typeToTypeNode(M,l,void 0,h);switch(e){case 174:return w.createMethodDeclaration(Q,V,o,void 0,se,G,ne,Kfe(u));case 173:return w.createMethodSignature(Q,o,void 0,se,G,ne===void 0?w.createKeywordTypeNode(159):ne);case 262:return N.assert(typeof o=="string"||Ve(o),"Unexpected name"),w.createFunctionDeclaration(Q,V,o,se,G,ne,fz(f.Function_not_implemented.message,u));default:N.fail("Unexpected kind")}}function yet(e,t,r){const i=new Set(t.map(s=>s[0])),o=new Map(t);if(r){const s=r.filter(u=>!t.some(p=>{var h;return e.getTypeAtLocation(u)===((h=p[1])==null?void 0:h.argumentType)})),l=i.size+s.length;for(let u=0;i.size<l;u+=1)i.add(E2e(u))}return zo(i.values(),s=>{var l;return w.createTypeParameterDeclaration(void 0,s,(l=o.get(s))==null?void 0:l.constraint)})}function E2e(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function U$(e,t,r,i,o,s,l){let u=e.typeToTypeNode(r,i,s,l);if(u&&ag(u)){const p=MI(u,o);p&&(WD(t,p.symbols),u=p.typeNode)}return ll(u)}function S2e(e){return e.isUnionOrIntersection()?e.types.some(S2e):e.flags&262144}function T2e(e,t,r,i,o,s,l){const u=[],p=new Map;for(let h=0;h<r.length;h+=1){const m=r[h];if(m.isUnionOrIntersection()&&m.types.some(S2e)){const M=E2e(h);u.push(w.createTypeReferenceNode(M)),p.set(M,void 0);continue}const y=e.getBaseTypeOfLiteralType(m),T=U$(e,t,y,i,o,s,l);if(!T)continue;u.push(T);const A=A2e(m),R=m.isTypeParameter()&&m.constraint&&!bet(m.constraint)?U$(e,t,m.constraint,i,o,s,l):void 0;A&&p.set(A,{argumentType:m,constraint:R})}return{argumentTypeNodes:u,argumentTypeParameters:zo(p.entries())}}function bet(e){return e.flags&524288&&e.objectFlags===16}function A2e(e){var t;if(e.flags&3145728)for(const r of e.types){const i=A2e(r);if(i)return i}return e.flags&262144?(t=e.getSymbol())==null?void 0:t.getName():void 0}function Jfe(e,t,r,i,o){const s=[],l=new Map;for(let u=0;u<e;u++){const p=(t==null?void 0:t[u])||`arg${u}`,h=l.get(p);l.set(p,(h||0)+1);const m=w.createParameterDeclaration(void 0,void 0,p+(h||""),i!==void 0&&u>=i?w.createToken(58):void 0,o?void 0:(r==null?void 0:r[u])||w.createKeywordTypeNode(159),void 0);s.push(m)}return s}function Eet(e,t,r,i,o,s,l,u,p){let h=i[0],m=i[0].minArgumentCount,y=!1;for(const M of i)m=Math.min(M.minArgumentCount,m),Yu(M)&&(y=!0),M.parameters.length>=h.parameters.length&&(!Yu(M)||Yu(h))&&(h=M);const T=h.parameters.length-(Yu(h)?1:0),A=h.parameters.map(M=>M.name),R=Jfe(T,A,void 0,m,!1);if(y){const M=w.createParameterDeclaration(void 0,w.createToken(26),A[T]||"rest",T>=m?w.createToken(58):void 0,w.createArrayTypeNode(w.createKeywordTypeNode(159)),void 0);R.push(M)}return Aet(l,o,s,void 0,R,Tet(i,e,t,r),u,p)}function Tet(e,t,r,i){if(Ne(e)){const o=t.getUnionType(Wt(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,i,1,OD(r))}}function Aet(e,t,r,i,o,s,l,u){return w.createMethodDeclaration(e,void 0,t,r?w.createToken(58):void 0,i,o,s,u||Kfe(l))}function Kfe(e){return fz(f.Method_not_implemented.message,e)}function fz(e,t){return w.createBlock([w.createThrowStatement(w.createNewExpression(w.createIdentifier("Error"),void 0,[w.createStringLiteral(e,t===0)]))],!0)}function Xfe(e,t,r){const i=EC(t);if(!i)return;const o=$fe(i,"compilerOptions");if(o===void 0){e.insertNodeAtObjectStart(t,i,H$("compilerOptions",w.createObjectLiteralExpression(r.map(([l,u])=>H$(l,u)),!0)));return}const s=o.initializer;if(La(s))for(const[l,u]of r){const p=$fe(s,l);p===void 0?e.insertNodeAtObjectStart(t,s,H$(l,u)):e.replaceNode(t,p.initializer,u)}}function Yfe(e,t,r,i){Xfe(e,t,[[r,i]])}function H$(e,t){return w.createPropertyAssignment(w.createStringLiteral(e),t)}function $fe(e,t){return In(e.properties,r=>hc(r)&&!!r.name&&Na(r.name)&&r.name.text===t)}function MI(e,t){let r;const i=nt(e,o,ji);if(r&&i)return{typeNode:i,symbols:r};function o(s){if(Oy(s)&&s.qualifier){const l=Gp(s.qualifier),u=y5(l.symbol,t),p=u!==l.text?I2e(s.qualifier,w.createIdentifier(u)):s.qualifier;r=Rn(r,l.symbol);const h=jn(s.typeArguments,o,ji);return w.createTypeReferenceNode(p,h)}return xn(s,o,void 0)}}function I2e(e,t){return e.kind===80?t:w.createQualifiedName(I2e(e.left,t),e.right)}function WD(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function Qfe(e,t){const r=Kl(t);let i=po(e,t.start);for(;i.end<r;)i=i.parent;return i}var Zfe,Iet=I({"src/services/codefixes/helpers.ts"(){si(),Zfe=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(Zfe||{})}});function x2e(e,t,r,i,o,s){const l=N2e(e,t,r,i);if(!l||RI.isRefactorErrorInfo(l))return;const u=_r.ChangeTracker.fromContext(o),{isStatic:p,isReadonly:h,fieldName:m,accessorName:y,originalName:T,type:A,container:R,declaration:M}=l;Sp(m),Sp(y),Sp(M),Sp(R);let C,O;if(di(R)){const K=ud(M);if(cd(e)){const Q=w.createModifiersFromModifierFlags(K);C=Q,O=Q}else C=w.createModifiersFromModifierFlags(Det(K)),O=w.createModifiersFromModifierFlags(Net(K));qS(M)&&(O=So(Ry(M),O))}ket(u,e,M,A,m,O);const U=Cet(m,y,A,C,p,R);if(Sp(U),C2e(u,e,U,M,R),h){const K=ng(R);K&&wet(u,e,K,m.text,T)}else{const K=Pet(m,y,A,C,p,R);Sp(K),C2e(u,e,K,M,R)}return u.getChanges()}function xet(e){return Ve(e)||Na(e)}function Ret(e){return pp(e,e.parent)||qo(e)||hc(e)}function R2e(e,t){return Ve(t)?w.createIdentifier(e):w.createStringLiteral(e)}function D2e(e,t,r){const i=t?r.name:w.createThis();return Ve(e)?w.createPropertyAccessExpression(i,e):w.createElementAccessExpression(i,w.createStringLiteralFromNode(e))}function Det(e){return e&=-9,e&=-3,e&4||(e|=1),e}function Net(e){return e&=-2,e&=-5,e|=2,e}function N2e(e,t,r,i,o=!0){const s=po(e,r),l=r===i&&o,u=Vn(s.parent,Ret),p=271;if(!u||!(V7(u.name,e,r,i)||l))return{error:Wo(f.Could_not_find_property_for_which_to_generate_accessor)};if(!xet(u.name))return{error:Wo(f.Name_is_not_valid)};if((ud(u)&98303|p)!==p)return{error:Wo(f.Can_only_convert_property_with_modifier)};const h=u.name.text,m=yX(h),y=R2e(m?h:rT(`_${h}`,e),u.name),T=R2e(m?rT(h.substring(1),e):h,u.name);return{isStatic:mc(u),isReadonly:OC(u),type:Oet(u,t),container:u.kind===169?u.parent.parent:u.parent,originalName:u.name.text,declaration:u,fieldName:y,accessorName:T,renameAccessor:m}}function Cet(e,t,r,i,o,s){return w.createGetAccessorDeclaration(i,t,[],r,w.createBlock([w.createReturnStatement(D2e(e,o,s))],!0))}function Pet(e,t,r,i,o,s){return w.createSetAccessorDeclaration(i,t,[w.createParameterDeclaration(void 0,void 0,w.createIdentifier("value"),void 0,r)],w.createBlock([w.createExpressionStatement(w.createAssignment(D2e(e,o,s),w.createIdentifier("value")))],!0))}function Met(e,t,r,i,o,s){const l=w.updatePropertyDeclaration(r,s,o,r.questionToken||r.exclamationToken,i,r.initializer);e.replaceNode(t,r,l)}function Let(e,t,r,i){let o=w.updatePropertyAssignment(r,i,r.initializer);(o.modifiers||o.questionToken||o.exclamationToken)&&(o===r&&(o=w.cloneNode(o)),o.modifiers=void 0,o.questionToken=void 0,o.exclamationToken=void 0),e.replacePropertyAssignment(t,r,o)}function ket(e,t,r,i,o,s){qo(r)?Met(e,t,r,i,o,s):hc(r)?Let(e,t,r,o):e.replaceNode(t,r,w.updateParameterDeclaration(r,s,r.dotDotDotToken,oa(o,Ve),r.questionToken,r.type,r.initializer))}function C2e(e,t,r,i,o){pp(i,i.parent)?e.insertMemberAtStart(t,o,r):hc(i)?e.insertNodeAfterComma(t,i,r):e.insertNodeAfter(t,i,r)}function wet(e,t,r,i,o){r.body&&r.body.forEachChild(function s(l){$s(l)&&l.expression.kind===110&&Na(l.argumentExpression)&&l.argumentExpression.text===o&&WA(l)&&e.replaceNode(t,l.argumentExpression,w.createStringLiteral(i)),Fr(l)&&l.expression.kind===110&&l.name.text===o&&WA(l)&&e.replaceNode(t,l.name,w.createIdentifier(i)),!ea(l)&&!di(l)&&l.forEachChild(s)})}function Oet(e,t){const r=Nie(e);if(qo(e)&&r&&e.questionToken){const i=t.getTypeChecker(),o=i.getTypeFromTypeNode(r);if(!i.isTypeAssignableTo(i.getUndefinedType(),o)){const s=qy(r)?r.types:[r];return w.createUnionTypeNode([...s,w.createKeywordTypeNode(157)])}}return r}function eme(e,t){const r=[];for(;e;){const i=FE(e),o=i&&t.getSymbolAtLocation(i.expression);if(!o)break;const s=o.flags&2097152?t.getAliasedSymbol(o):o,l=s.declarations&&In(s.declarations,di);if(!l)break;r.push(l),e=l}return r}var Wet=I({"src/services/codefixes/generateAccessors.ts"(){si()}});function Fet(e,t){const r=Un(t),i=mR(t),o=e.program.getCompilerOptions(),s=[];return s.push(P2e(e,r,t,Kv(i.name,void 0,t.moduleSpecifier,lf(r,e.preferences)))),wu(o)===1&&s.push(P2e(e,r,t,w.createImportEqualsDeclaration(void 0,!1,i.name,w.createExternalModuleReference(t.moduleSpecifier)))),s}function P2e(e,t,r,i){const o=_r.ChangeTracker.with(e,s=>s.replaceNode(t,r,i));return n_(tme,o,[f.Replace_import_with_0,o[0].textChanges[0].newText])}function zet(e){const t=e.sourceFile,r=f.This_expression_is_not_callable.code===e.errorCode?213:214,i=Vn(po(t,e.span.start),s=>s.kind===r);if(!i)return[];const o=i.expression;return M2e(e,o)}function Bet(e){const t=e.sourceFile,r=Vn(po(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?M2e(e,r):[]}function M2e(e,t){const r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&fh(r.symbol)&&r.symbol.links.originatingImport))return[];const i=[],o=r.symbol.links.originatingImport;if(zp(o)||qr(i,Fet(e,o)),yt(t)&&!(ad(t.parent)&&t.parent.name===t)){const s=e.sourceFile,l=_r.ChangeTracker.with(e,u=>u.replaceNode(s,t,w.createPropertyAccessExpression(t,"default"),{}));i.push(n_(tme,l,f.Use_synthetic_default_member))}return i}var tme,Get=I({"src/services/codefixes/fixInvalidImportSyntax.ts"(){si(),Ia(),tme="invalidImportSyntax",Ta({errorCodes:[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],getCodeActions:zet}),Ta({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:Bet})}});function L2e(e,t){const r=po(e,t);if(Ve(r)&&qo(r.parent)){const i=yu(r.parent);if(i)return{type:i,prop:r.parent,isJs:lr(r.parent)}}}function Vet(e,t){if(t.isJs)return;const r=_r.ChangeTracker.with(e,i=>k2e(i,e.sourceFile,t.prop));return la(q$,r,[f.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],J$,f.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function k2e(e,t,r){Sp(r);const i=w.updatePropertyDeclaration(r,r.modifiers,r.name,w.createToken(54),r.type,r.initializer);e.replaceNode(t,r,i)}function jet(e,t){const r=_r.ChangeTracker.with(e,i=>w2e(i,e.sourceFile,t));return la(q$,r,[f.Add_undefined_type_to_property_0,t.prop.name.getText()],K$,f.Add_undefined_type_to_all_uninitialized_properties)}function w2e(e,t,r){const i=w.createKeywordTypeNode(157),o=qy(r.type)?r.type.types.concat(i):[r.type,i],s=w.createUnionTypeNode(o);r.isJs?e.addJSDocTags(t,r.prop,[w.createJSDocTypeTag(void 0,w.createJSDocTypeExpression(s))]):e.replaceNode(t,r.type,s)}function Uet(e,t){if(t.isJs)return;const r=e.program.getTypeChecker(),i=W2e(r,t.prop);if(!i)return;const o=_r.ChangeTracker.with(e,s=>O2e(s,e.sourceFile,t.prop,i));return la(q$,o,[f.Add_initializer_to_property_0,t.prop.name.getText()],X$,f.Add_initializers_to_all_uninitialized_properties)}function O2e(e,t,r,i){Sp(r);const o=w.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,o)}function W2e(e,t){return F2e(e,e.getTypeFromTypeNode(t.type))}function F2e(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?w.createFalse():w.createTrue();if(t.isStringLiteral())return w.createStringLiteral(t.value);if(t.isNumberLiteral())return w.createNumericLiteral(t.value);if(t.flags&2048)return w.createBigIntLiteral(t.value);if(t.isUnion())return Ht(t.types,r=>F2e(e,r));if(t.isClass()){const r=Wg(t.symbol);if(!r||Qr(r,64))return;const i=ng(r);return i&&i.parameters.length?void 0:w.createNewExpression(w.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return w.createArrayLiteralExpression()}var q$,J$,K$,X$,nme,Het=I({"src/services/codefixes/fixStrictClassInitialization.ts"(){si(),Ia(),q$="strictClassInitialization",J$="addMissingPropertyDefiniteAssignmentAssertions",K$="addMissingPropertyUndefinedType",X$="addMissingPropertyInitializer",nme=[f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],Ta({errorCodes:nme,getCodeActions:function(t){const r=L2e(t.sourceFile,t.span.start);if(!r)return;const i=[];return Rn(i,jet(t,r)),Rn(i,Vet(t,r)),Rn(i,Uet(t,r)),i},fixIds:[J$,K$,X$],getAllCodeActions:e=>bs(e,nme,(t,r)=>{const i=L2e(r.file,r.start);if(i)switch(e.fixId){case J$:k2e(t,r.file,i.prop);break;case K$:w2e(t,r.file,i);break;case X$:const o=e.program.getTypeChecker(),s=W2e(o,i.prop);if(!s)return;O2e(t,r.file,i.prop,s);break;default:N.fail(JSON.stringify(e.fixId))}})})}});function z2e(e,t,r){const{allowSyntheticDefaults:i,defaultImportName:o,namedImports:s,statement:l,required:u}=r;e.replaceNode(t,l,o&&!i?w.createImportEqualsDeclaration(void 0,!1,o,w.createExternalModuleReference(u)):w.createImportDeclaration(void 0,w.createImportClause(!1,o,s),u,void 0))}function B2e(e,t,r){const{parent:i}=po(e,r);Td(i,!0)||N.failBadSyntaxKind(i);const o=oa(i.parent,Oi),s=ri(o.name,Ve),l=im(o.name)?qet(o.name):void 0;if(s||l)return{allowSyntheticDefaults:MS(t.getCompilerOptions()),defaultImportName:s,namedImports:l,statement:oa(o.parent.parent,Ll),required:Ua(i.arguments)}}function qet(e){const t=[];for(const r of e.elements){if(!Ve(r.name)||r.initializer)return;t.push(w.createImportSpecifier(!1,ri(r.propertyName,Ve),r.name))}if(t.length)return w.createNamedImports(t)}var Y$,rme,Jet=I({"src/services/codefixes/requireInTs.ts"(){si(),Ia(),Y$="requireInTs",rme=[f.require_call_may_be_converted_to_an_import.code],Ta({errorCodes:rme,getCodeActions(e){const t=B2e(e.sourceFile,e.program,e.span.start);if(!t)return;const r=_r.ChangeTracker.with(e,i=>z2e(i,e.sourceFile,t));return[la(Y$,r,f.Convert_require_to_import,Y$,f.Convert_all_require_to_import)]},fixIds:[Y$],getAllCodeActions:e=>bs(e,rme,(t,r)=>{const i=B2e(r.file,e.program,r.start);i&&z2e(t,e.sourceFile,i)})})}});function G2e(e,t){const r=po(e,t);if(!Ve(r))return;const{parent:i}=r;if(eu(i)&&Th(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(Yy(i)){const o=i.parent.parent;return{importNode:o,name:r,moduleSpecifier:o.moduleSpecifier}}}function V2e(e,t,r,i){e.replaceNode(t,r.importNode,Kv(r.name,void 0,r.moduleSpecifier,lf(t,i)))}var $$,ime,Ket=I({"src/services/codefixes/useDefaultImport.ts"(){si(),Ia(),$$="useDefaultImport",ime=[f.Import_may_be_converted_to_a_default_import.code],Ta({errorCodes:ime,getCodeActions(e){const{sourceFile:t,span:{start:r}}=e,i=G2e(t,r);if(!i)return;const o=_r.ChangeTracker.with(e,s=>V2e(s,t,i,e.preferences));return[la($$,o,f.Convert_to_default_import,$$,f.Convert_all_to_default_imports)]},fixIds:[$$],getAllCodeActions:e=>bs(e,ime,(t,r)=>{const i=G2e(r.file,r.start);i&&V2e(t,r.file,i,e.preferences)})})}});function j2e(e,t,r){const i=ri(po(t,r.start),hp);if(!i)return;const o=i.getText(t)+"n";e.replaceNode(t,i,w.createBigIntLiteral(o))}var Q$,ome,Xet=I({"src/services/codefixes/useBigintLiteral.ts"(){si(),Ia(),Q$="useBigintLiteral",ome=[f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],Ta({errorCodes:ome,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>j2e(i,t.sourceFile,t.span));if(r.length>0)return[la(Q$,r,f.Convert_to_a_bigint_numeric_literal,Q$,f.Convert_all_to_bigint_numeric_literals)]},fixIds:[Q$],getAllCodeActions:e=>bs(e,ome,(t,r)=>j2e(t,r.file,r))})}});function U2e(e,t){const r=po(e,t);return N.assert(r.kind===102,"This token should be an ImportKeyword"),N.assert(r.parent.kind===205,"Token parent should be an ImportType"),r.parent}function H2e(e,t,r){const i=w.updateImportTypeNode(r,r.argument,r.attributes,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var q2e,Z$,ame,Yet=I({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){si(),Ia(),q2e="fixAddModuleReferTypeMissingTypeof",Z$=q2e,ame=[f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],Ta({errorCodes:ame,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=U2e(r,i.start),s=_r.ChangeTracker.with(t,l=>H2e(l,r,o));return[la(Z$,s,f.Add_missing_typeof,Z$,f.Add_missing_typeof)]},fixIds:[Z$],getAllCodeActions:e=>bs(e,ame,(t,r)=>H2e(t,e.sourceFile,U2e(r.file,r.start)))})}});function J2e(e,t){let o=po(e,t).parent.parent;if(!(!mr(o)&&(o=o.parent,!mr(o)))&&Fl(o.operatorToken))return o}function K2e(e,t,r){const i=$et(r);i&&e.replaceNode(t,r,w.createJsxFragment(w.createJsxOpeningFragment(),i,w.createJsxJsxClosingFragment()))}function $et(e){const t=[];let r=e;for(;;)if(mr(r)&&Fl(r.operatorToken)&&r.operatorToken.kind===28){if(t.push(r.left),gL(r.right))return t.push(r.right),t;if(mr(r.right)){r=r.right;continue}else return}else return}var eQ,sme,Qet=I({"src/services/codefixes/wrapJsxInFragment.ts"(){si(),Ia(),eQ="wrapJsxInFragment",sme=[f.JSX_expressions_must_have_one_parent_element.code],Ta({errorCodes:sme,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=J2e(r,i.start);if(!o)return;const s=_r.ChangeTracker.with(t,l=>K2e(l,r,o));return[la(eQ,s,f.Wrap_in_JSX_fragment,eQ,f.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[eQ],getAllCodeActions:e=>bs(e,sme,(t,r)=>{const i=J2e(e.sourceFile,r.start);i&&K2e(t,e.sourceFile,i)})})}});function X2e(e,t){const r=po(e,t),i=ri(r.parent.parent,XE);if(!i)return;const o=md(i.parent)?i.parent:ri(i.parent.parent,xm);if(o)return{indexSignature:i,container:o}}function Zet(e,t){return w.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function Y2e(e,t,{indexSignature:r,container:i}){const s=(md(i)?i.members:i.type.members).filter(m=>!XE(m)),l=Ua(r.parameters),u=w.createTypeParameterDeclaration(void 0,oa(l.name,Ve),l.type),p=w.createMappedTypeNode(OC(r)?w.createModifier(148):void 0,u,void 0,r.questionToken,r.type,void 0),h=w.createIntersectionTypeNode([...RC(i),p,...s.length?[w.createTypeLiteralNode(s)]:et]);e.replaceNode(t,i,Zet(i,h))}var tQ,lme,ett=I({"src/services/codefixes/convertToMappedObjectType.ts"(){si(),Ia(),tQ="fixConvertToMappedObjectType",lme=[f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],Ta({errorCodes:lme,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=X2e(r,i.start);if(!o)return;const s=_r.ChangeTracker.with(t,u=>Y2e(u,r,o)),l=Er(o.container.name);return[la(tQ,s,[f.Convert_0_to_mapped_object_type,l],tQ,[f.Convert_0_to_mapped_object_type,l])]},fixIds:[tQ],getAllCodeActions:e=>bs(e,lme,(t,r)=>{const i=X2e(r.file,r.start);i&&Y2e(t,r.file,i)})})}}),cme,$2e,ttt=I({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){si(),Ia(),cme="removeAccidentalCallParentheses",$2e=[f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],Ta({errorCodes:$2e,getCodeActions(e){const t=Vn(po(e.sourceFile,e.span.start),sa);if(!t)return;const r=_r.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[n_(cme,r,f.Remove_parentheses)]},fixIds:[cme]})}});function Q2e(e,t,r){const i=ri(po(t,r.start),u=>u.kind===135),o=i&&ri(i.parent,Ky);if(!o)return;let s=o;if(Gd(o.parent)){const u=NR(o.expression,!1);if(Ve(u)){const p=Ic(o.parent.pos,t);p&&p.kind!==105&&(s=o.parent)}}e.replaceNode(t,s,o.expression)}var nQ,ume,ntt=I({"src/services/codefixes/removeUnnecessaryAwait.ts"(){si(),Ia(),nQ="removeUnnecessaryAwait",ume=[f.await_has_no_effect_on_the_type_of_this_expression.code],Ta({errorCodes:ume,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>Q2e(i,t.sourceFile,t.span));if(r.length>0)return[la(nQ,r,f.Remove_unnecessary_await,nQ,f.Remove_all_unnecessary_uses_of_await)]},fixIds:[nQ],getAllCodeActions:e=>bs(e,ume,(t,r)=>Q2e(t,r.file,r))})}});function Z2e(e,t){return Vn(po(e,t.start),Mc)}function eLe(e,t,r){if(!t)return;const i=N.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,w.updateImportDeclaration(t,t.modifiers,w.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(r.sourceFile,t,w.createImportDeclaration(void 0,w.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.attributes))}var dme,rQ,rtt=I({"src/services/codefixes/splitTypeOnlyImport.ts"(){si(),Ia(),dme=[f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],rQ="splitTypeOnlyImport",Ta({errorCodes:dme,fixIds:[rQ],getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>eLe(i,Z2e(t.sourceFile,t.span),t));if(r.length)return[la(rQ,r,f.Split_into_two_separate_import_declarations,rQ,f.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>bs(e,dme,(t,r)=>{eLe(t,Z2e(e.sourceFile,r),e)})})}});function tLe(e,t,r){var i;const s=r.getTypeChecker().getSymbolAtLocation(po(e,t));if(s===void 0)return;const l=ri((i=s==null?void 0:s.valueDeclaration)==null?void 0:i.parent,Vc);if(l===void 0)return;const u=vs(l,87,e);if(u!==void 0)return{symbol:s,token:u}}function nLe(e,t,r){e.replaceNode(t,r,w.createToken(121))}var iQ,pme,itt=I({"src/services/codefixes/convertConstToLet.ts"(){si(),Ia(),iQ="fixConvertConstToLet",pme=[f.Cannot_assign_to_0_because_it_is_a_constant.code],Ta({errorCodes:pme,getCodeActions:function(t){const{sourceFile:r,span:i,program:o}=t,s=tLe(r,i.start,o);if(s===void 0)return;const l=_r.ChangeTracker.with(t,u=>nLe(u,r,s.token));return[dpe(iQ,l,f.Convert_const_to_let,iQ,f.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,r=new Map;return LD(_r.ChangeTracker.with(e,i=>{kD(e,pme,o=>{const s=tLe(o.file,o.start,t);if(s&&Am(r,Sa(s.symbol)))return nLe(i,o.file,s.token)})}))},fixIds:[iQ]})}});function rLe(e,t,r){const i=po(e,t);return i.kind===27&&i.parent&&(La(i.parent)||fd(i.parent))?{node:i}:void 0}function iLe(e,t,{node:r}){const i=w.createToken(28);e.replaceNode(t,r,i)}var oQ,oLe,fme,ott=I({"src/services/codefixes/fixExpectedComma.ts"(){si(),Ia(),oQ="fixExpectedComma",oLe=f._0_expected.code,fme=[oLe],Ta({errorCodes:fme,getCodeActions(e){const{sourceFile:t}=e,r=rLe(t,e.span.start,e.errorCode);if(!r)return;const i=_r.ChangeTracker.with(e,o=>iLe(o,t,r));return[la(oQ,i,[f.Change_0_to_1,";",","],oQ,[f.Change_0_to_1,";",","])]},fixIds:[oQ],getAllCodeActions:e=>bs(e,fme,(t,r)=>{const i=rLe(r.file,r.start,r.code);i&&iLe(t,e.sourceFile,i)})})}});function aLe(e,t,r,i,o){const s=po(t,r.start);if(!Ve(s)||!sa(s.parent)||s.parent.expression!==s||s.parent.arguments.length!==0)return;const l=i.getTypeChecker(),u=l.getSymbolAtLocation(s),p=u==null?void 0:u.valueDeclaration;if(!p||!Ao(p)||!$E(p.parent.parent)||o!=null&&o.has(p))return;o==null||o.add(p);const h=att(p.parent.parent);if(bt(h)){const m=h[0],y=!qy(m)&&!wS(m)&&wS(w.createUnionTypeNode([m,w.createKeywordTypeNode(116)]).types[0]);y&&e.insertText(t,m.pos,"("),e.insertText(t,m.end,y?") | void":" | void")}else{const m=l.getResolvedSignature(s.parent),y=m==null?void 0:m.parameters[0],T=y&&l.getTypeOfSymbolAtLocation(y,p.parent.parent);lr(p)?(!T||T.flags&3)&&(e.insertText(t,p.parent.parent.end,")"),e.insertText(t,Pa(t.text,p.parent.parent.pos),"/** @type {Promise<void>} */(")):(!T||T.flags&2)&&e.insertText(t,p.parent.parent.expression.end,"<void>")}}function att(e){var t;if(lr(e)){if(Gd(e.parent)){const r=(t=i0(e.parent))==null?void 0:t.typeExpression.type;if(r&&Df(r)&&Ve(r.typeName)&&Er(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var sLe,mme,_me,stt=I({"src/services/codefixes/fixAddVoidToPromise.ts"(){si(),Ia(),sLe="addVoidToPromise",mme="addVoidToPromise",_me=[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],Ta({errorCodes:_me,fixIds:[mme],getCodeActions(e){const t=_r.ChangeTracker.with(e,r=>aLe(r,e.sourceFile,e.span,e.program));if(t.length>0)return[la(sLe,t,f.Add_void_to_Promise_resolved_without_a_value,mme,f.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return bs(e,_me,(t,r)=>aLe(t,r.file,r,e.program,new Set))}})}}),Fu={};ee(Fu,{PreserveOptionalFlags:()=>Zfe,addNewNodeForMemberSymbol:()=>b2e,codeFixAll:()=>bs,createCodeFixAction:()=>la,createCodeFixActionMaybeFixAll:()=>dpe,createCodeFixActionWithoutFixAll:()=>n_,createCombinedCodeActions:()=>LD,createFileTextChanges:()=>ECe,createImportAdder:()=>CI,createImportSpecifierResolver:()=>fQe,createJsonPropertyAssignment:()=>H$,createMissingMemberNodes:()=>Hfe,createSignatureDeclarationFromCallExpression:()=>qfe,createSignatureDeclarationFromSignature:()=>j$,createStubbedBody:()=>fz,eachDiagnostic:()=>kD,findAncestorMatchingSpan:()=>Qfe,findJsonProperty:()=>$fe,generateAccessorFromProperty:()=>x2e,getAccessorConvertiblePropertyAtPosition:()=>N2e,getAllFixes:()=>jYe,getAllSupers:()=>eme,getArgumentTypesAndTypeParameters:()=>T2e,getFixes:()=>VYe,getImportCompletionAction:()=>mQe,getImportKind:()=>Bpe,getJSDocTypedefNodes:()=>lQe,getNoopSymbolTrackerWithResolver:()=>OD,getPromoteTypeOnlyCompletionAction:()=>_Qe,getSupportedErrorCodes:()=>BYe,importFixName:()=>Jpe,importSymbols:()=>WD,moduleSpecifierToValidIdentifier:()=>qpe,moduleSymbolToValidIdentifier:()=>Hpe,parameterShouldGetTypeFromJSDoc:()=>GCe,registerCodeFix:()=>Ta,setJsonCompilerOptionValue:()=>Yfe,setJsonCompilerOptionValues:()=>Xfe,tryGetAutoImportableReferenceFromTypeNode:()=>MI,typeToAutoImportableTypeNode:()=>U$});var Ia=I({"src/services/_namespaces/ts.codefix.ts"(){UYe(),HYe(),qYe(),XYe(),e$e(),i$e(),o$e(),a$e(),s$e(),d$e(),E$e(),T$e(),k$e(),Q$e(),Z$e(),tQe(),nQe(),cQe(),uQe(),pQe(),wQe(),FQe(),GQe(),VQe(),jQe(),qQe(),XQe(),QQe(),rZe(),fZe(),_Ze(),EZe(),SZe(),AZe(),IZe(),xZe(),RZe(),NZe(),CZe(),PZe(),MZe(),LZe(),wZe(),FZe(),VZe(),$Ze(),ZZe(),eet(),ret(),iet(),aet(),set(),het(),get(),vet(),Iet(),Wet(),Get(),Het(),Jet(),Ket(),Xet(),Yet(),Qet(),ett(),ttt(),ntt(),rtt(),itt(),ott(),stt()}});function ltt(e){return!!(e.kind&1)}function ctt(e){return!!(e.kind&2)}function mz(e){return!!(e&&e.kind&4)}function vM(e){return!!(e&&e.kind===32)}function utt(e){return mz(e)||vM(e)||hme(e)}function dtt(e){return(mz(e)||vM(e))&&!!e.isFromPackageJson}function ptt(e){return!!(e.kind&8)}function ftt(e){return!!(e.kind&16)}function lLe(e){return!!(e&&e.kind&64)}function cLe(e){return!!(e&&e.kind&128)}function mtt(e){return!!(e&&e.kind&256)}function hme(e){return!!(e&&e.kind&512)}function uLe(e,t,r,i,o,s,l,u,p){var h,m,y;const T=Xs(),A=l||BA(pd(i.getCompilerOptions()));let R=!1,M=0,C=0,O=0,U=0;const K=p({tryResolve:V,skippedAny:()=>R,resolvedAny:()=>C>0,resolvedBeyondLimit:()=>C>_Q}),Q=U?` (${(O/U*100).toFixed(1)}% hit rate)`:"";return(h=t.log)==null||h.call(t,`${e}: resolved ${C} module specifiers, plus ${M} ambient and ${O} from cache${Q}`),(m=t.log)==null||m.call(t,`${e}: response is ${R?"incomplete":"complete"}`),(y=t.log)==null||y.call(t,`${e}: ${Xs()-T}`),K;function V(se,G){if(G){const Y=r.getModuleSpecifierForBestExportInfo(se,o,u);return Y&&M++,Y||"failed"}const ne=A||s.allowIncompleteCompletions&&C<_Q,he=!ne&&s.allowIncompleteCompletions&&U<xme,ye=ne||he?r.getModuleSpecifierForBestExportInfo(se,o,u,he):void 0;return(!ne&&!he||he&&!ye)&&(R=!0),C+=(ye==null?void 0:ye.computedWithoutCacheCount)||0,O+=se.length-((ye==null?void 0:ye.computedWithoutCacheCount)||0),he&&U++,ye||(A?"failed":"skipped")}}function _tt(e,t,r,i,o,s,l,u,p,h,m=!1){var y;const{previousToken:T}=cQ(o,i);if(l&&!SI(i,o,T)&&!Ytt(i,l,T,o))return;if(l===" ")return s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;const A=t.getCompilerOptions(),R=t.getTypeChecker(),M=s.allowIncompleteCompletions?(y=e.getIncompleteCompletionsCache)==null?void 0:y.call(e):void 0;if(M&&u===3&&T&&Ve(T)){const U=htt(M,i,T,t,e,s,p,o);if(U)return U}else M==null||M.clear();const C=gQ.getStringLiteralCompletions(i,o,T,A,e,t,r,s,m);if(C)return C;if(T&&cC(T.parent)&&(T.kind===83||T.kind===88||T.kind===80))return wtt(T.parent);const O=SLe(t,r,i,A,o,s,void 0,e,h,p);if(O)switch(O.kind){case 0:const U=Ett(i,e,t,A,r,O,s,h,o,m);return U!=null&&U.isIncomplete&&(M==null||M.set(U)),U;case 1:return gme([...k0.getJSDocTagNameCompletions(),...pLe(i,o,R,A,s,!0)]);case 2:return gme([...k0.getJSDocTagCompletions(),...pLe(i,o,R,A,s,!1)]);case 3:return gme(k0.getJSDocParameterNameCompletions(O.tag));case 4:return ytt(O.keywordCompletions,O.isNewIdentifierLocation);default:return N.assertNever(O)}}function _z(e,t){var r,i;let o=L2(e.sortText,t.sortText);return o===0&&(o=L2(e.name,t.name)),o===0&&((r=e.data)!=null&&r.moduleSpecifier)&&((i=t.data)!=null&&i.moduleSpecifier)&&(o=_k(e.data.moduleSpecifier,t.data.moduleSpecifier)),o===0?-1:o}function dLe(e){return!!(e!=null&&e.moduleSpecifier)}function htt(e,t,r,i,o,s,l,u){const p=e.get();if(!p)return;const h=Vd(t,u),m=r.text.toLowerCase(),y=EO(t,o,i,s,l),T=uLe("continuePreviousIncompleteResponse",o,Fu.createImportSpecifierResolver(t,i,o,s),i,r.getStart(),s,!1,h0(r),A=>{const R=eo(p.entries,M=>{var C;if(!M.hasAction||!M.source||!M.data||dLe(M.data))return M;if(!OLe(M.name,m))return;const{origin:O}=N.checkDefined(TLe(M.name,M.data,i,o)),U=y.get(t.path,M.data.exportMapKey),K=U&&A.tryResolve(U,!Xc(Zf(O.moduleSymbol.name)));if(K==="skipped")return M;if(!K||K==="failed"){(C=o.log)==null||C.call(o,`Unexpected failure resolving auto import for '${M.name}' from '${M.source}'`);return}const Q={...O,kind:32,moduleSpecifier:K.moduleSpecifier};return M.data=yLe(Q),M.source=yme(Q),M.sourceDisplay=[cf(Q.moduleSpecifier)],M});return A.skippedAny()||(p.isIncomplete=void 0),R});return p.entries=T,p.flags=(p.flags||0)|4,p.optionalReplacementSpan=_Le(h),p}function gme(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function pLe(e,t,r,i,o,s){const l=po(e,t);if(!Qx(l)&&!Zm(l))return[];const u=Zm(l)?l:l.parent;if(!Zm(u))return[];const p=u.parent;if(!ea(p))return[];const h=cd(e),m=o.includeCompletionsWithSnippetText||void 0,y=ou(u.tags,T=>e_(T)&&T.getEnd()<=t);return eo(p.parameters,T=>{if(!qx(T).length){if(Ve(T.name)){const A={tabstop:1},R=T.name.text;let M=JO(R,T.initializer,T.dotDotDotToken,h,!1,!1,r,i,o),C=m?JO(R,T.initializer,T.dotDotDotToken,h,!1,!0,r,i,o,A):void 0;return s&&(M=M.slice(1),C&&(C=C.slice(1))),{name:M,kind:"parameter",sortText:zu.LocationPriority,insertText:m?C:void 0,isSnippet:m}}else if(T.parent.parameters.indexOf(T)===y){const A=`param${y}`,R=fLe(A,T.name,T.initializer,T.dotDotDotToken,h,!1,r,i,o),M=m?fLe(A,T.name,T.initializer,T.dotDotDotToken,h,!0,r,i,o):void 0;let C=R.join(Fv(i)+"* "),O=M==null?void 0:M.join(Fv(i)+"* ");return s&&(C=C.slice(1),O&&(O=O.slice(1))),{name:C,kind:"parameter",sortText:zu.LocationPriority,insertText:m?O:void 0,isSnippet:m}}}})}function fLe(e,t,r,i,o,s,l,u,p){if(!o)return[JO(e,r,i,o,!1,s,l,u,p,{tabstop:1})];return h(e,t,r,i,{tabstop:1});function h(y,T,A,R,M){if(im(T)&&!R){const O={tabstop:M.tabstop},U=JO(y,A,R,o,!0,s,l,u,p,O);let K=[];for(const Q of T.elements){const V=m(y,Q,O);if(V)K.push(...V);else{K=void 0;break}}if(K)return M.tabstop=O.tabstop,[U,...K]}return[JO(y,A,R,o,!1,s,l,u,p,M)]}function m(y,T,A){if(!T.propertyName&&Ve(T.name)||Ve(T.name)){const R=T.propertyName?yC(T.propertyName):T.name.text;if(!R)return;const M=`${y}.${R}`;return[JO(M,T.initializer,T.dotDotDotToken,o,!1,s,l,u,p,A)]}else if(T.propertyName){const R=yC(T.propertyName);return R&&h(`${y}.${R}`,T.name,T.initializer,T.dotDotDotToken,A)}}}function JO(e,t,r,i,o,s,l,u,p,h){if(s&&N.assertIsDefined(h),t&&(e=gtt(e,t)),s&&(e=JE(e)),i){let m="*";if(o)N.assert(!r,"Cannot annotate a rest parameter with type 'Object'."),m="Object";else{if(t){const A=l.getTypeAtLocation(t.parent);if(!(A.flags&16385)){const R=t.getSourceFile(),C=lf(R,p)===0?268435456:0,O=l.typeToTypeNode(A,Vn(t,ea),C);if(O){const U=s?lQ({removeComments:!0,module:u.module,target:u.target}):R0({removeComments:!0,module:u.module,target:u.target});pr(O,1),m=U.printNode(4,O,R)}}}s&&m==="*"&&(m=`\${${h.tabstop++}:${m}}`)}const y=!o&&r?"...":"",T=s?`\${${h.tabstop++}}`:"";return`@param {${y}${m}} ${e} ${T}`}else{const m=s?`\${${h.tabstop++}}`:"";return`@param ${e} ${m}`}}function gtt(e,t){const r=t.getText().trim();return r.includes(` +`)||r.length>80?`[${e}]`:`[${e}=${r}]`}function vtt(e){return{name:pa(e),kind:"keyword",kindModifiers:"",sortText:zu.GlobalsOrKeywords}}function ytt(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function mLe(e,t,r){return{kind:4,keywordCompletions:ALe(e,t),isNewIdentifierLocation:r}}function btt(e){switch(e){case 156:return 8;default:N.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function _Le(e){return(e==null?void 0:e.kind)===80?Dd(e):void 0}function Ett(e,t,r,i,o,s,l,u,p,h){const{symbols:m,contextToken:y,completionKind:T,isInSnippetScope:A,isNewIdentifierLocation:R,location:M,propertyAccessToConvert:C,keywordFilters:O,symbolToOriginInfoMap:U,recommendedCompletion:K,isJsxInitializer:Q,isTypeOnlyLocation:V,isJsxIdentifierExpected:se,isRightOfOpenTag:G,isRightOfDotOrQuestionDot:ne,importStatementCompletion:he,insideJsDocTagTypeExpression:ye,symbolToSortTextMap:Y,hasUnresolvedAutoImports:X}=s;let oe=s.literals;const pe=r.getTypeChecker();if(pk(e.scriptKind)===1){const Ue=Ttt(M,e);if(Ue)return Ue}const Ce=Vn(y,UR);if(Ce&&(cae(y)||WE(y,Ce.expression))){const Ue=T5(pe,Ce.parent.clauses);oe=oe.filter(Ee=>!Ue.hasValue(Ee)),m.forEach((Ee,De)=>{if(Ee.valueDeclaration&&i1(Ee.valueDeclaration)){const Me=pe.getConstantValue(Ee.valueDeclaration);Me!==void 0&&Ue.hasValue(Me)&&(U[De]={kind:256})}})}const de=BB(),ie=hLe(e,i);if(ie&&!R&&(!m||m.length===0)&&O===0)return;const ve=bme(m,de,void 0,y,M,p,e,t,r,os(i),o,T,l,i,u,V,C,se,Q,he,K,U,Y,se,G,h);if(O!==0)for(const Ue of ALe(O,!ye&&cd(e)))(V&&rM(IE(Ue.name))||!V&&int(Ue.name)||!ve.has(Ue.name))&&(ve.add(Ue.name),by(de,Ue,_z,!0));for(const Ue of Htt(y,p))ve.has(Ue.name)||(ve.add(Ue.name),by(de,Ue,_z,!0));for(const Ue of oe){const Ee=Itt(e,l,Ue);ve.add(Ee.name),by(de,Ee,_z,!0)}ie||Att(e,M.pos,ve,os(i),de);let Le;if(l.includeCompletionsWithInsertText&&y&&!G&&!ne&&(Le=Vn(y,yP))){const Ue=gLe(Le,e,l,i,t,r,u);Ue&&de.push(Ue.entry)}return{flags:s.flags,isGlobalCompletion:A,isIncomplete:l.allowIncompleteCompletions&&X?!0:void 0,isMemberCompletion:Stt(T),isNewIdentifierLocation:R,optionalReplacementSpan:_Le(M),entries:de}}function hLe(e,t){return!cd(e)||!!gk(e,t)}function gLe(e,t,r,i,o,s,l){const u=e.clauses,p=s.getTypeChecker(),h=p.getTypeAtLocation(e.parent.expression);if(h&&h.isUnion()&&Jn(h.types,m=>m.isLiteral())){const m=T5(p,u),y=os(i),T=lf(t,r),A=Fu.createImportAdder(t,s,r,o),R=[];for(const V of h.types)if(V.flags&1024){N.assert(V.symbol,"An enum member type should have a symbol"),N.assert(V.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const se=V.symbol.valueDeclaration&&p.getConstantValue(V.symbol.valueDeclaration);if(se!==void 0){if(m.hasValue(se))continue;m.addValue(se)}const G=Fu.typeToAutoImportableTypeNode(p,A,V,e,y);if(!G)return;const ne=aQ(G,y,T);if(!ne)return;R.push(ne)}else if(!m.hasValue(V.value))switch(typeof V.value){case"object":R.push(V.value.negative?w.createPrefixUnaryExpression(41,w.createBigIntLiteral({negative:!1,base10Value:V.value.base10Value})):w.createBigIntLiteral(V.value));break;case"number":R.push(V.value<0?w.createPrefixUnaryExpression(41,w.createNumericLiteral(-V.value)):w.createNumericLiteral(V.value));break;case"string":R.push(w.createStringLiteral(V.value,T===0));break}if(R.length===0)return;const M=Wt(R,V=>w.createCaseClause(V,[])),C=Xv(o,l==null?void 0:l.options),O=lQ({removeComments:!0,module:i.module,target:i.target,newLine:bO(C)}),U=l?V=>O.printAndFormatNode(4,V,t,l):V=>O.printNode(4,V,t),K=Wt(M,(V,se)=>r.includeCompletionsWithSnippetText?`${U(V)}$${se+1}`:`${U(V)}`).join(C);return{entry:{name:`${O.printNode(4,M[0],t)} ...`,kind:"",sortText:zu.GlobalsOrKeywords,insertText:K,hasAction:A.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:A}}}function aQ(e,t,r){switch(e.kind){case 183:const i=e.typeName;return sQ(i,t,r);case 199:const o=aQ(e.objectType,t,r),s=aQ(e.indexType,t,r);return o&&s&&w.createElementAccessExpression(o,s);case 201:const l=e.literal;switch(l.kind){case 11:return w.createStringLiteral(l.text,r===0);case 9:return w.createNumericLiteral(l.text,l.numericLiteralFlags)}return;case 196:const u=aQ(e.type,t,r);return u&&(Ve(u)?u:w.createParenthesizedExpression(u));case 186:return sQ(e.exprName,t,r);case 205:N.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function sQ(e,t,r){if(Ve(e))return e;const i=Vi(e.right.escapedText);return EU(i,t)?w.createPropertyAccessExpression(sQ(e.left,t,r),i):w.createElementAccessExpression(sQ(e.left,t,r),w.createStringLiteral(i,r===0))}function Stt(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function Ttt(e,t){const r=Vn(e,i=>{switch(i.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(r){const i=!!vs(r,32,t),l=r.parent.openingElement.tagName.getText(t)+(i?"":">"),u=Dd(r.tagName),p={name:l,kind:"class",kindModifiers:void 0,sortText:zu.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:u,entries:[p]}}}function Att(e,t,r,i,o){TY(e).forEach((s,l)=>{if(s===t)return;const u=Vi(l);!r.has(u)&&Zp(u,i)&&(r.add(u),by(o,{name:u,kind:"warning",kindModifiers:"",sortText:zu.JavascriptIdentifiers,isFromUncheckedFile:!0},_z))})}function vme(e,t,r){return typeof r=="object"?HE(r)+"n":Mo(r)?cM(e,t,r):JSON.stringify(r)}function Itt(e,t,r){return{name:vme(e,t,r),kind:"string",kindModifiers:"",sortText:zu.LocationPriority}}function xtt(e,t,r,i,o,s,l,u,p,h,m,y,T,A,R,M,C,O,U,K,Q,V,se,G){var ne,he;let ye,Y,X=VK(r),oe,pe,Ce=yme(y),de,ie,ve;const Le=p.getTypeChecker(),Ue=y&&ftt(y),Ee=y&&ctt(y)||m;if(y&<t(y))ye=m?`this${Ue?"?.":""}[${bLe(l,U,h)}]`:`this${Ue?"?.":"."}${h}`;else if((Ee||Ue)&&A){ye=Ee?m?`[${bLe(l,U,h)}]`:`[${h}]`:h,(Ue||A.questionDotToken)&&(ye=`?.${ye}`);const Me=vs(A,25,l)||vs(A,29,l);if(!Me)return;const We=uo(h,A.name.text)?A.name.end:Me.end;X=pc(Me.getStart(l),We)}if(R&&(ye===void 0&&(ye=h),ye=`{${ye}}`,typeof R!="boolean"&&(X=Dd(R,l))),y&&ptt(y)&&A){ye===void 0&&(ye=h);const Me=Ic(A.pos,l);let We="";Me&&f5(Me.end,Me.parent,l)&&(We=";"),We+=`(await ${A.expression.getText()})`,ye=m?`${We}${ye}`:`${We}${Ue?"?.":"."}${ye}`;const Se=ri(A.parent,Ky)?A.parent:A.expression;X=pc(Se.getStart(l),A.end)}if(vM(y)&&(de=[cf(y.moduleSpecifier)],M&&({insertText:ye,replacementSpan:X}=Ltt(h,M,y,C,l,O,U),pe=U.includeCompletionsWithSnippetText?!0:void 0)),(y==null?void 0:y.kind)===64&&(ie=!0),K===0&&i&&((ne=Ic(i.pos,l,i))==null?void 0:ne.kind)!==28&&(Hl(i.parent.parent)||tf(i.parent.parent)||vp(i.parent.parent)||jv(i.parent)||((he=Vn(i.parent,hc))==null?void 0:he.getLastToken(l))===i||np(i.parent)&&ys(l,i.getEnd()).line!==ys(l,s).line)&&(Ce="ObjectLiteralMemberWithComma/",ie=!0),U.includeCompletionsWithClassMemberSnippets&&U.includeCompletionsWithInsertText&&K===3&&Rtt(e,o,l)){let Me;const We=vLe(u,p,O,U,h,e,o,s,i,Q);if(We)({insertText:ye,filterText:Y,isSnippet:pe,importAdder:Me}=We),Me!=null&&Me.hasFixes()&&(ie=!0,Ce="ClassMemberSnippet/");else return}if(y&&cLe(y)&&({insertText:ye,isSnippet:pe,labelDetails:ve}=y,U.useLabelDetailsInCompletionEntries||(h=h+ve.detail,ve=void 0),Ce="ObjectLiteralMethodSnippet/",t=zu.SortBelow(t)),V&&!se&&U.includeCompletionsWithSnippetText&&U.jsxAttributeCompletionStyle&&U.jsxAttributeCompletionStyle!=="none"&&!(w_(o.parent)&&o.parent.initializer)){let Me=U.jsxAttributeCompletionStyle==="braces";const We=Le.getTypeOfSymbolAtLocation(e,o);U.jsxAttributeCompletionStyle==="auto"&&!(We.flags&528)&&!(We.flags&1048576&&In(We.types,At=>!!(At.flags&528)))&&(We.flags&402653316||We.flags&1048576&&Jn(We.types,At=>!!(At.flags&402686084||cue(At)))?(ye=`${JE(h)}=${cM(l,U,"$1")}`,pe=!0):Me=!0),Me&&(ye=`${JE(h)}={$1}`,pe=!0)}if(ye!==void 0&&!U.includeCompletionsWithInsertText)return;(mz(y)||vM(y))&&(oe=yLe(y),ie=!M);const De=Vn(o,D3);if((De==null?void 0:De.kind)===275){const Me=IE(h);De&&Me&&(Me===135||Pj(Me))&&(ye=`${h} as ${h}_`)}return{name:h,kind:Qv.getSymbolKind(Le,e,o),kindModifiers:Qv.getSymbolModifiers(Le,e),sortText:t,source:Ce,hasAction:ie?!0:void 0,isRecommended:ktt(e,T,Le)||void 0,insertText:ye,filterText:Y,replacementSpan:X,sourceDisplay:de,labelDetails:ve,isSnippet:pe,isPackageJsonImport:dtt(y)||void 0,isImportStatementCompletion:!!M||void 0,data:oe,...G?{symbol:e}:void 0}}function Rtt(e,t,r){return lr(t)?!1:!!(e.flags&106500)&&(di(t)||t.parent&&t.parent.parent&&Yc(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&di(t.parent.parent)||t.parent&&KR(t)&&di(t.parent))}function vLe(e,t,r,i,o,s,l,u,p,h){const m=Vn(l,di);if(!m)return;let y,T=o;const A=o,R=t.getTypeChecker(),M=l.getSourceFile(),C=lQ({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:bO(Xv(e,h==null?void 0:h.options))}),O=Fu.createImportAdder(M,t,i,e);let U;if(i.includeCompletionsWithSnippetText){y=!0;const he=w.createEmptyStatement();U=w.createBlock([he],!0),YU(he,{kind:0,order:0})}else U=w.createBlock([],!0);let K=0;const{modifiers:Q,range:V,decorators:se}=Dtt(p,M,u),G=Q&64&&m.modifierFlagsCache&64;let ne=[];if(Fu.addNewNodeForMemberSymbol(s,m,M,{program:t,host:e},i,O,he=>{let ye=0;G&&(ye|=64),Yc(he)&&R.getMemberOverrideModifierStatus(m,he,s)===1&&(ye|=16),ne.length||(K=he.modifierFlagsCache|ye),he=w.replaceModifiers(he,K),ne.push(he)},U,Fu.PreserveOptionalFlags.Property,!!G),ne.length){const he=s.flags&8192;let ye=K|16|1;he?ye|=1024:ye|=136;const Y=Q&ye;if(Q&~ye)return;if(K&4&&Y&1&&(K&=-5),Y!==0&&!(Y&1)&&(K&=-2),K|=Y,ne=ne.map(oe=>w.replaceModifiers(oe,K)),se!=null&&se.length){const oe=ne[ne.length-1];qS(oe)&&(ne[ne.length-1]=w.replaceDecoratorsAndModifiers(oe,se.concat(xE(oe)||[])))}const X=131073;h?T=C.printAndFormatSnippetList(X,w.createNodeArray(ne),M,h):T=C.printSnippetList(X,w.createNodeArray(ne),M)}return{insertText:T,filterText:A,isSnippet:y,importAdder:O,eraseRange:V}}function Dtt(e,t,r){if(!e||ys(t,r).line>ys(t,e.getEnd()).line)return{modifiers:0};let i=0,o,s;const l={pos:r,end:r};if(qo(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=Ntt(e)){const u=OA(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 Ntt(e){if(Aa(e))return e.kind;if(Ve(e)){const t=r0(e);if(t&&Pv(t))return t}}function Ctt(e,t,r,i,o,s,l,u){const p=l.includeCompletionsWithSnippetText||void 0;let h=t;const m=r.getSourceFile(),y=Ptt(e,r,m,i,o,l);if(!y)return;const T=lQ({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:bO(Xv(o,u==null?void 0:u.options))});u?h=T.printAndFormatSnippetList(80,w.createNodeArray([y],!0),m,u):h=T.printSnippetList(80,w.createNodeArray([y],!0),m);const A=R0({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!0}),R=w.createMethodSignature(void 0,"",y.questionToken,y.typeParameters,y.parameters,y.type),M={detail:A.printNode(4,R,m)};return{isSnippet:p,insertText:h,labelDetails:M}}function Ptt(e,t,r,i,o,s){const l=e.getDeclarations();if(!(l&&l.length))return;const u=i.getTypeChecker(),p=l[0],h=ll(Lo(p),!1),m=u.getWidenedType(u.getTypeOfSymbolAtLocation(e,t)),T=33554432|(lf(r,s)===0?268435456:0);switch(p.kind){case 171:case 172:case 173:case 174:{let A=m.flags&1048576&&m.types.length<10?u.getUnionType(m.types,2):m;if(A.flags&1048576){const U=mn(A.types,K=>u.getSignaturesOfType(K,0).length>0);if(U.length===1)A=U[0];else return}if(u.getSignaturesOfType(A,0).length!==1)return;const M=u.typeToTypeNode(A,t,T,Fu.getNoopSymbolTrackerWithResolver({program:i,host:o}));if(!M||!bh(M))return;let C;if(s.includeCompletionsWithSnippetText){const U=w.createEmptyStatement();C=w.createBlock([U],!0),YU(U,{kind:0,order:0})}else C=w.createBlock([],!0);const O=M.parameters.map(U=>w.createParameterDeclaration(void 0,U.dotDotDotToken,U.name,void 0,void 0,U.initializer));return w.createMethodDeclaration(void 0,void 0,h,void 0,void 0,O,void 0,C)}default:return}}function lQ(e){let t;const r=_r.createWriter(Fv(e)),i=R0(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,A)=>s(T,()=>r.writeSymbol(T,A)),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:h,printAndFormatNode:y};function s(T,A){const R=JE(T);if(R!==T){const M=r.getTextPos();A();const C=r.getTextPos();t=Rn(t||(t=[]),{newText:R,span:{start:M,length:C-M}})}else A()}function l(T,A,R){const M=u(T,A,R);return t?_r.applyChanges(M,t):M}function u(T,A,R){return t=void 0,o.clear(),i.writeList(T,A,R,o),o.getText()}function p(T,A,R,M){const C={text:u(T,A,R),getLineAndCharacterOfPosition(Q){return ys(this,Q)}},O=S5(M,R),U=Do(A,Q=>{const V=_r.assignPositionsToNode(Q);return kc.formatNodeGivenIndentation(V,C,R.languageVariant,0,0,{...M,options:O})}),K=t?Sv(So(U,t),(Q,V)=>I6(Q.span,V.span)):U;return _r.applyChanges(C.text,K)}function h(T,A,R){const M=m(T,A,R);return t?_r.applyChanges(M,t):M}function m(T,A,R){return t=void 0,o.clear(),i.writeNode(T,A,R,o),o.getText()}function y(T,A,R,M){const C={text:m(T,A,R),getLineAndCharacterOfPosition(V){return ys(this,V)}},O=S5(M,R),U=_r.assignPositionsToNode(A),K=kc.formatNodeGivenIndentation(U,C,R.languageVariant,0,0,{...M,options:O}),Q=t?Sv(So(K,t),(V,se)=>I6(V.span,se.span)):K;return _r.applyChanges(C.text,Q)}}function yLe(e){const t=e.fileName?void 0:Zf(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return vM(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:Zf(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function Mtt(e,t,r){const i=e.exportName==="default",o=!!e.isPackageJsonImport;return dLe(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 Ltt(e,t,r,i,o,s,l){const u=t.replacementSpan,p=JE(cM(o,l,r.moduleSpecifier)),h=r.isDefaultExport?1:r.exportName==="export="?2:0,m=l.includeCompletionsWithSnippetText?"$1":"",y=Fu.getImportKind(o,h,s,!0),T=t.couldBeTypeOnlyImportSpecifier,A=t.isTopLevelTypeOnly?` ${pa(156)} `:" ",R=T?`${pa(156)} `:"",M=i?";":"";switch(y){case 3:return{replacementSpan:u,insertText:`import${A}${JE(e)}${m} = require(${p})${M}`};case 1:return{replacementSpan:u,insertText:`import${A}${JE(e)}${m} from ${p}${M}`};case 2:return{replacementSpan:u,insertText:`import${A}* as ${JE(e)} from ${p}${M}`};case 0:return{replacementSpan:u,insertText:`import${A}{ ${R}${JE(e)}${m} } from ${p}${M}`}}}function bLe(e,t,r){return/^\d+$/.test(r)?r:cM(e,t,r)}function ktt(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function yme(e){if(mz(e))return Zf(e.moduleSymbol.name);if(vM(e))return e.moduleSpecifier;if((e==null?void 0:e.kind)===1)return"ThisProperty/";if((e==null?void 0:e.kind)===64)return"TypeOnlyAlias/"}function bme(e,t,r,i,o,s,l,u,p,h,m,y,T,A,R,M,C,O,U,K,Q,V,se,G,ne,he=!1){const ye=Xs(),Y=tnt(i,o),X=gO(l),oe=p.getTypeChecker(),pe=new Map;for(let ie=0;ie<e.length;ie++){const ve=e[ie],Le=V==null?void 0:V[ie],Ue=uQ(ve,h,Le,y,!!O);if(!Ue||pe.get(Ue.name)&&(!Le||!cLe(Le))||y===1&&se&&!Ce(ve,se)||!M&&lr(l)&&de(ve))continue;const{name:Ee,needsConvertPropertyAccess:De}=Ue,Me=(se==null?void 0:se[Sa(ve)])??zu.LocationPriority,We=nnt(ve,oe)?zu.Deprecated(Me):Me,At=xtt(ve,We,r,i,o,s,l,u,p,Ee,De,Le,Q,C,U,K,X,A,T,y,R,G,ne,he);if(!At)continue;const Se=(!Le||lLe(Le))&&!(ve.parent===void 0&&!bt(ve.declarations,je=>je.getSourceFile()===o.getSourceFile()));pe.set(Ee,Se),by(t,At,_z,!0)}return m("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Xs()-ye)),{has:ie=>pe.has(ie),add:ie=>pe.set(ie,!0)};function Ce(ie,ve){var Le;let Ue=ie.flags;if(!$i(o)){if(kl(o.parent))return!0;if(ri(Y,Oi)&&ie.valueDeclaration===Y)return!1;const Ee=ie.valueDeclaration??((Le=ie.declarations)==null?void 0:Le[0]);if(Y&&Ee&&(hl(Y)&&hl(Ee)||Ao(Y)&&Ao(Ee))){const Me=Ee.pos,We=Ao(Y)?Y.parent.parameters:kS(Y.parent)?void 0:Y.parent.typeParameters;if(Me>=Y.pos&&We&&Me<We.end)return!1}const De=bu(ie,oe);if(l.externalModuleIndicator&&!A.allowUmdGlobalAccess&&ve[Sa(ie)]===zu.GlobalsOrKeywords&&(ve[Sa(De)]===zu.AutoImportSuggestions||ve[Sa(De)]===zu.LocationPriority))return!1;if(Ue|=RR(De),F7(o))return!!(Ue&1920);if(M)return Ime(ie,oe)}return!!(Ue&111551)}function de(ie){var ve;const Le=RR(bu(ie,oe));return!(Le&111551)&&(!lr((ve=ie.declarations)==null?void 0:ve[0])||!!(Le&788968))}}function wtt(e){const t=Ott(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}function Ott(e){const t=[],r=new Map;let i=e;for(;i&&!ea(i);){if(ZE(i)){const o=i.label.text;r.has(o)||(r.set(o,!0),t.push({name:o,kindModifiers:"",kind:"label",sortText:zu.LocationPriority}))}i=i.parent}return t}function ELe(e,t,r,i,o,s,l){if(o.source==="SwitchCases/")return{type:"cases"};if(o.data){const K=TLe(o.name,o.data,e,s);if(K){const{contextToken:Q,previousToken:V}=cQ(i,r);return{type:"symbol",symbol:K.symbol,location:Vd(r,i),previousToken:V,contextToken:Q,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:K.origin}}}const u=e.getCompilerOptions(),p=SLe(e,t,r,u,i,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},o,s,void 0);if(!p)return{type:"none"};if(p.kind!==0)return{type:"request",request:p};const{symbols:h,literals:m,location:y,completionKind:T,symbolToOriginInfoMap:A,contextToken:R,previousToken:M,isJsxInitializer:C,isTypeOnlyLocation:O}=p,U=In(m,K=>vme(r,l,K)===o.name);return U!==void 0?{type:"literal",literal:U}:Ht(h,(K,Q)=>{const V=A[Q],se=uQ(K,os(u),V,T,p.isJsxIdentifierExpected);return se&&se.name===o.name&&(o.source==="ClassMemberSnippet/"&&K.flags&106500||o.source==="ObjectLiteralMethodSnippet/"&&K.flags&8196||yme(V)===o.source||o.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:K,location:y,origin:V,contextToken:R,previousToken:M,isJsxInitializer:C,isTypeOnlyLocation:O}:void 0})||{type:"none"}}function Wtt(e,t,r,i,o,s,l,u,p){const h=e.getTypeChecker(),m=e.getCompilerOptions(),{name:y,source:T,data:A}=o,{previousToken:R,contextToken:M}=cQ(i,r);if(SI(r,i,R))return gQ.getStringLiteralCompletionDetails(y,r,i,R,e,s,p,u);const C=ELe(e,t,r,i,o,s,u);switch(C.type){case"request":{const{request:O}=C;switch(O.kind){case 1:return k0.getJSDocTagNameCompletionDetails(y);case 2:return k0.getJSDocTagCompletionDetails(y);case 3:return k0.getJSDocParameterNameCompletionDetails(y);case 4:return bt(O.keywordCompletions,U=>U.name===y)?Eme(y,"keyword",5):void 0;default:return N.assertNever(O)}}case"symbol":{const{symbol:O,location:U,contextToken:K,origin:Q,previousToken:V}=C,{codeActions:se,sourceDisplay:G}=Ftt(y,U,K,Q,O,e,s,m,r,i,V,l,u,A,T,p),ne=hme(Q)?Q.symbolName:O.name;return Sme(O,ne,h,r,U,p,se,G)}case"literal":{const{literal:O}=C;return Eme(vme(r,u,O),"string",typeof O=="string"?8:7)}case"cases":{const O=gLe(M.parent,r,u,e.getCompilerOptions(),s,e,void 0);if(O!=null&&O.importAdder.hasFixes()){const{entry:U,importAdder:K}=O,Q=_r.ChangeTracker.with({host:s,formatContext:l,preferences:u},K.writeFixes);return{name:U.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:Q,description:iT([f.Includes_imports_of_types_referenced_by_0,y])}]}}return{name:y,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Cme().some(O=>O.name===y)?Eme(y,"keyword",5):void 0;default:N.assertNever(C)}}function Eme(e,t,r){return hz(e,"",t,[rp(e,r)])}function Sme(e,t,r,i,o,s,l,u){const{displayParts:p,documentation:h,symbolKind:m,tags:y}=r.runWithCancellationToken(s,T=>Qv.getSymbolDisplayPartsDocumentationAndSymbolKind(T,e,i,o,o,7));return hz(t,Qv.getSymbolModifiers(r,e),m,p,h,y,l,u)}function hz(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 Ftt(e,t,r,i,o,s,l,u,p,h,m,y,T,A,R,M){if(A!=null&&A.moduleSpecifier&&m&&PLe(r||m,p).replacementSpan)return{codeActions:void 0,sourceDisplay:[cf(A.moduleSpecifier)]};if(R==="ClassMemberSnippet/"){const{importAdder:se,eraseRange:G}=vLe(l,s,u,T,e,o,t,h,r,y);if(se||G)return{sourceDisplay:void 0,codeActions:[{changes:_r.ChangeTracker.with({host:l,formatContext:y,preferences:T},he=>{se&&se.writeFixes(he),G&&he.deleteRange(p,G)}),description:iT([f.Includes_imports_of_types_referenced_by_0,e])}]}}if(lLe(i)){const se=Fu.getPromoteTypeOnlyCompletionAction(p,i.declaration.name,s,l,y,T);return N.assertIsDefined(se,"Expected to have a code action for promoting type-only alias"),{codeActions:[se],sourceDisplay:void 0}}if(R==="ObjectLiteralMemberWithComma/"&&r){const se=_r.ChangeTracker.with({host:l,formatContext:y,preferences:T},G=>G.insertText(p,r.end,","));if(se)return{sourceDisplay:void 0,codeActions:[{changes:se,description:iT([f.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(mz(i)||vM(i)))return{codeActions:void 0,sourceDisplay:void 0};const C=i.isFromPackageJson?l.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),{moduleSymbol:O}=i,U=C.getMergedSymbol(bu(o.exportSymbol||o,C)),K=(r==null?void 0:r.kind)===30&&ld(r.parent),{moduleSpecifier:Q,codeAction:V}=Fu.getImportCompletionAction(U,O,A==null?void 0:A.exportMapKey,p,e,K,l,s,y,m&&Ve(m)?m.getStart(p):h,T,M);return N.assert(!(A!=null&&A.moduleSpecifier)||Q===A.moduleSpecifier),{sourceDisplay:[cf(Q)],codeActions:[V]}}function ztt(e,t,r,i,o,s,l){const u=ELe(e,t,r,i,o,s,l);return u.type==="symbol"?u.symbol:void 0}function Btt(e,t,r){return Ht(t&&(t.isUnion()?t.types:[t]),i=>{const o=i&&i.symbol;return o&&o.flags&424&&!Zie(o)?Tme(o,e,r):void 0})}function Gtt(e,t,r,i){const{parent:o}=e;switch(e.kind){case 80:return u5(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:const s=ri(o,UR);return s?dX(s,i):void 0;case 19:return bP(o)&&!sg(o.parent)&&!t1(o.parent)?i.getContextualTypeForJsxAttribute(o.parent):void 0;default:const l=ZO.getArgumentInfoForCompletions(e,t,r,i);return l?i.getContextualTypeForArgumentAtIndex(l.invocation,l.argumentIndex):d5(e.kind)&&mr(o)&&d5(o.operatorToken.kind)?i.getTypeAtLocation(o.left):i.getContextualType(e,4)||i.getContextualType(e)}}function Tme(e,t,r){const i=r.getAccessibleSymbolChain(e,t,-1,!1);return i?Ua(i):e.parent&&(Vtt(e.parent)?e:Tme(e.parent,t,r))}function Vtt(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===312))}function SLe(e,t,r,i,o,s,l,u,p,h){const m=e.getTypeChecker(),y=hLe(r,i);let T=Xs(),A=po(r,o);t("getCompletionData: Get current token: "+(Xs()-T)),T=Xs();const R=qv(r,o,A);t("getCompletionData: Is inside comment: "+(Xs()-T));let M=!1,C=!1;if(R){if(aue(r,o)){if(r.text.charCodeAt(o-1)===64)return{kind:1};{const Be=am(o,r);if(!/[^*|\s(/)]/.test(r.text.substring(Be,o)))return{kind:2}}}const fe=qtt(A,o);if(fe){if(fe.tagName.pos<=o&&o<=fe.tagName.end)return{kind:1};const Be=tn(fe);if(Be&&(A=po(r,o),(!A||!wg(A)&&(A.parent.kind!==355||A.parent.name!==A))&&(M=J(Be))),!M&&e_(fe)&&(Fl(fe.name)||fe.name.pos<=o&&o<=fe.name.end))return{kind:3,tag:fe}}if(!M){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}T=Xs();const O=!M&&cd(r),U=cQ(o,r),K=U.previousToken;let Q=U.contextToken;t("getCompletionData: Get previous token: "+(Xs()-T));let V=A,se,G=!1,ne=!1,he=!1,ye=!1,Y=!1,X=!1,oe,pe=Vd(r,o),Ce=0,de=!1,ie=0;if(Q){const fe=PLe(Q,r);if(fe.keywordCompletion){if(fe.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[vtt(fe.keywordCompletion)],isNewIdentifierLocation:fe.isNewIdentifierLocation};Ce=btt(fe.keywordCompletion)}if(fe.replacementSpan&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(ie|=2,oe=fe,de=fe.isNewIdentifierLocation),!fe.replacementSpan&&Qi(Q))return t("Returning an empty list because completion was requested in an invalid position."),Ce?mLe(Ce,O,fa()):void 0;let Be=Q.parent;if(Q.kind===25||Q.kind===29)switch(G=Q.kind===25,ne=Q.kind===29,Be.kind){case 211:se=Be,V=se.expression;const ke=DR(se);if(Fl(ke)||(sa(V)||ea(V))&&V.end===Q.pos&&V.getChildCount(r)&&Xa(V.getChildren(r)).kind!==22)return;break;case 166:V=Be.left;break;case 267:V=Be.name;break;case 205:V=Be;break;case 236:V=Be.getFirstToken(r),N.assert(V.kind===102||V.kind===105);break;default:return}else if(!oe){if(Be&&Be.kind===211&&(Q=Be,Be=Be.parent),A.parent===pe)switch(A.kind){case 32:(A.parent.kind===284||A.parent.kind===286)&&(pe=A);break;case 44:A.parent.kind===285&&(pe=A);break}switch(Be.kind){case 287:Q.kind===44&&(ye=!0,pe=Q);break;case 226:if(!CLe(Be))break;case 285:case 284:case 286:X=!0,Q.kind===30&&(he=!0,pe=Q);break;case 294:case 293:(K.kind===20||K.kind===80&&K.parent.kind===291)&&(X=!0);break;case 291:if(Be.initializer===K&&K.end<o){X=!0;break}switch(K.kind){case 64:Y=!0;break;case 80:X=!0,Be!==K.parent&&!Be.initializer&&vs(Be,64,r)&&(Y=K)}break}}}const ve=Xs();let Le=5,Ue=!1,Ee=[],De;const Me=[],We=[],At=new Map,Se=Ci(),je=ch(fe=>tT(fe?u.getPackageJsonAutoImportProvider():e,u));if(G||ne)rn();else if(he)Ee=m.getJsxIntrinsicTagNamesAt(pe),N.assertEachIsDefined(Ee,"getJsxIntrinsicTagNames() should all be defined"),Qt(),Le=1,Ce=0;else if(ye){const fe=Q.parent.parent.openingElement.tagName,Be=m.getSymbolAtLocation(fe);Be&&(Ee=[Be]),Le=1,Ce=0}else if(!Qt())return Ce?mLe(Ce,O,de):void 0;t("getCompletionData: Semantic work: "+(Xs()-ve));const ot=K&&Gtt(K,o,r,m),vt=!ri(K,ls)&&!X?eo(ot&&(ot.isUnion()?ot.types:[ot]),fe=>fe.isLiteral()&&!(fe.flags&1024)?fe.value:void 0):[],$e=K&&ot&&Btt(K,ot,m);return{kind:0,symbols:Ee,completionKind:Le,isInSnippetScope:C,propertyAccessToConvert:se,isNewIdentifierLocation:de,location:pe,keywordFilters:Ce,literals:vt,symbolToOriginInfoMap:Me,recommendedCompletion:$e,previousToken:K,contextToken:Q,isJsxInitializer:Y,insideJsDocTagTypeExpression:M,symbolToSortTextMap:We,isTypeOnlyLocation:Se,isJsxIdentifierExpected:X,isRightOfOpenTag:he,isRightOfDotOrQuestionDot:G||ne,importStatementCompletion:oe,hasUnresolvedAutoImports:Ue,flags:ie};function It(fe){switch(fe.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!fe.constraint;default:return!1}}function tn(fe){if(It(fe)){const Be=om(fe)?fe.constraint:fe.typeExpression;return Be&&Be.kind===316?Be:void 0}if(uI(fe)||ZW(fe))return fe.class}function rn(){Le=2;const fe=Oy(V),Be=fe&&!V.isTypeOf||$h(V.parent)||oO(Q,r,m),ke=F7(V);if(Qd(V)||fe||Fr(V)){const Tt=Xl(V.parent);Tt&&(de=!0);let kt=m.getSymbolAtLocation(V);if(kt&&(kt=bu(kt,m),kt.flags&1920)){const en=m.getExportsOfModule(kt);N.assertEachIsDefined(en,"getExportsOfModule() should all be defined");const En=Pi=>m.isValidPropertyAccess(fe?V:V.parent,Pi.name),Gn=Pi=>Ime(Pi,m),qn=Tt?Pi=>{var xi;return!!(Pi.flags&1920)&&!((xi=Pi.declarations)!=null&&xi.every(ir=>ir.parent===V.parent))}:ke?Pi=>Gn(Pi)||En(Pi):Be||M?Gn:En;for(const Pi of en)qn(Pi)&&Ee.push(Pi);if(!Be&&!M&&kt.declarations&&kt.declarations.some(Pi=>Pi.kind!==312&&Pi.kind!==267&&Pi.kind!==266)){let Pi=m.getTypeOfSymbolAtLocation(kt,V).getNonOptionalType(),xi=!1;if(Pi.isNullableType()){const ir=G&&!ne&&s.includeAutomaticOptionalChainCompletions!==!1;(ir||ne)&&(Pi=Pi.getNonNullableType(),ir&&(xi=!0))}Mn(Pi,!!(V.flags&65536),xi)}return}}if(!Be||DS(V)){m.tryGetThisTypeAt(V,!1);let Tt=m.getTypeAtLocation(V).getNonOptionalType();if(Be)Mn(Tt.getNonNullableType(),!1,!1);else{let kt=!1;if(Tt.isNullableType()){const en=G&&!ne&&s.includeAutomaticOptionalChainCompletions!==!1;(en||ne)&&(Tt=Tt.getNonNullableType(),en&&(kt=!0))}Mn(Tt,!!(V.flags&65536),kt)}}}function Mn(fe,Be,ke){de=!!fe.getStringIndexType(),ne&&bt(fe.getCallSignatures())&&(de=!0);const Tt=V.kind===205?V:V.parent;if(y)for(const kt of fe.getApparentProperties())m.isValidPropertyAccessForCompletions(Tt,fe,kt)&&$n(kt,!1,ke);else Ee.push(...mn(fQ(fe,m),kt=>m.isValidPropertyAccessForCompletions(Tt,fe,kt)));if(Be&&s.includeCompletionsWithInsertText){const kt=m.getPromisedTypeOfPromise(fe);if(kt)for(const en of kt.getApparentProperties())m.isValidPropertyAccessForCompletions(Tt,kt,en)&&$n(en,!0,ke)}}function $n(fe,Be,ke){var Tt;const kt=Ht(fe.declarations,qn=>ri(Lo(qn),Za));if(kt){const qn=gn(kt.expression),Pi=qn&&m.getSymbolAtLocation(qn),xi=Pi&&Tme(Pi,Q,m),ir=xi&&Sa(xi);if(ir&&Am(At,ir)){const Vr=Ee.length;Ee.push(xi);const vo=xi.parent;if(!vo||!lO(vo)||m.tryGetMemberInModuleExportsAndProperties(xi.name,vo)!==xi)Me[Vr]={kind:Gn(2)};else{const Mi=Xc(Zf(vo.name))?(Tt=N4(vo))==null?void 0:Tt.fileName:void 0,{moduleSpecifier:Ri}=(De||(De=Fu.createImportSpecifierResolver(r,e,u,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Mi,isFromPackageJson:!1,moduleSymbol:vo,symbol:xi,targetFlags:bu(xi,m).flags}],o,h0(pe))||{};if(Ri){const Jr={kind:Gn(6),moduleSymbol:vo,isDefaultExport:!1,symbolName:xi.name,exportName:xi.name,fileName:Mi,moduleSpecifier:Ri};Me[Vr]=Jr}}}else if(s.includeCompletionsWithInsertText){if(ir&&At.has(ir))return;En(fe),en(fe),Ee.push(fe)}}else En(fe),en(fe),Ee.push(fe);function en(qn){Qtt(qn)&&(We[Sa(qn)]=zu.LocalDeclarationPriority)}function En(qn){s.includeCompletionsWithInsertText&&(Be&&Am(At,Sa(qn))?Me[Ee.length]={kind:Gn(8)}:ke&&(Me[Ee.length]={kind:16}))}function Gn(qn){return ke?qn|16:qn}}function gn(fe){return Ve(fe)?fe:Fr(fe)?gn(fe.expression):void 0}function Qt(){return(Tn()||wn()||so()||He()||mt()||ft()||Yt()||Ct()||vi()||(Wi(),1))===1}function Yt(){return Fe(Q)?(Le=5,de=!0,Ce=4,1):0}function vi(){const fe=j(Q),Be=fe&&m.getContextualType(fe.attributes);if(!Be)return 0;const ke=fe&&m.getContextualType(fe.attributes,4);return Ee=So(Ee,me(pQ(Be,ke,fe.attributes,m),fe.attributes.properties)),q(),Le=3,de=!1,1}function so(){return oe?(de=!0,tt(),1):0}function Wi(){Ce=pt(Q)?5:1,Le=1,de=fa(),K!==Q&&N.assert(!!K,"Expected 'contextToken' to be defined when different from 'previousToken'.");const fe=K!==Q?K.getStart():o,Be=yi(Q,fe,r)||r;C=Ln(Be);const ke=(Se?0:111551)|788968|1920|2097152,Tt=K&&!h0(K);Ee=So(Ee,m.getSymbolsInScope(Be,ke)),N.assertEachIsDefined(Ee,"getSymbolsInScope() should all be defined");for(let kt=0;kt<Ee.length;kt++){const en=Ee[kt];if(!m.isArgumentsSymbol(en)&&!bt(en.declarations,En=>En.getSourceFile()===r)&&(We[Sa(en)]=zu.GlobalsOrKeywords),Tt&&!(en.flags&111551)){const En=en.declarations&&In(en.declarations,lL);if(En){const Gn={kind:64,declaration:En};Me[kt]=Gn}}}if(s.includeCompletionsWithInsertText&&Be.kind!==312){const kt=m.tryGetThisTypeAt(Be,!1,di(Be.parent)?Be:void 0);if(kt&&!$tt(kt,r,m))for(const en of fQ(kt,m))Me[Ee.length]={kind:1},Ee.push(en),We[Sa(en)]=zu.SuggestedClassMembers}tt(),Se&&(Ce=Q&&mS(Q.parent)?6:7)}function Co(){return oe?!0:s.includeCompletionsForModuleExports?r.externalModuleIndicator||r.commonJsModuleIndicator||JK(e.getCompilerOptions())?!0:pue(e):!1}function Ln(fe){switch(fe.kind){case 312:case 228:case 294:case 241:return!0;default:return Hi(fe)}}function Ci(){return M||!!oe&&s0(pe.parent)||!Ar(Q)&&(oO(Q,r,m)||$h(pe)||sn(Q))}function Ar(fe){return fe&&(fe.kind===114&&(fe.parent.kind===186||VR(fe.parent))||fe.kind===131&&fe.parent.kind===182)}function sn(fe){if(fe){const Be=fe.parent.kind;switch(fe.kind){case 59:return Be===172||Be===171||Be===169||Be===260||TA(Be);case 64:return Be===265||Be===168;case 130:return Be===234;case 30:return Be===183||Be===216;case 96:return Be===168;case 152:return Be===238}}return!1}function tt(){var fe,Be;if(!Co()||(N.assert(!(l!=null&&l.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),l&&!l.source))return;ie|=1;const Tt=K===Q&&oe?"":K&&Ve(K)?K.text.toLowerCase():"",kt=(fe=u.getModuleSpecifierCache)==null?void 0:fe.call(u),en=EO(r,u,e,s,h),En=(Be=u.getPackageJsonAutoImportProvider)==null?void 0:Be.call(u),Gn=l?void 0:dM(r,s,u);uLe("collectAutoImports",u,De||(De=Fu.createImportSpecifierResolver(r,e,u,s)),e,o,s,!!oe,h0(pe),Pi=>{en.search(r.path,he,(xi,ir)=>{if(!Zp(xi,os(u.getCompilationSettings()))||!l&&LA(xi)||!Se&&!oe&&!(ir&111551)||Se&&!(ir&790504))return!1;const Vr=xi.charCodeAt(0);return he&&(Vr<65||Vr>90)?!1:l?!0:OLe(xi,Tt)},(xi,ir,Vr,vo)=>{if(l&&!bt(xi,Fs=>l.source===Zf(Fs.moduleSymbol.name))||(xi=mn(xi,qn),!xi.length))return;const Mi=Pi.tryResolve(xi,Vr)||{};if(Mi==="failed")return;let Ri=xi[0],Jr;Mi!=="skipped"&&({exportInfo:Ri=xi[0],moduleSpecifier:Jr}=Mi);const xo=Ri.exportKind===1,Nn=xo&&xR(Ri.symbol)||Ri.symbol;zt(Nn,{kind:Jr?32:4,moduleSpecifier:Jr,symbolName:ir,exportMapKey:vo,exportName:Ri.exportKind===2?"export=":Ri.symbol.name,fileName:Ri.moduleFileName,isDefaultExport:xo,moduleSymbol:Ri.moduleSymbol,isFromPackageJson:Ri.isFromPackageJson})}),Ue=Pi.skippedAny(),ie|=Pi.resolvedAny()?8:0,ie|=Pi.resolvedBeyondLimit()?16:0});function qn(Pi){const xi=ri(Pi.moduleSymbol.valueDeclaration,$i);if(!xi){const ir=Zf(Pi.moduleSymbol.name);return z_.nodeCoreModules.has(ir)&&uo(ir,"node:")!==E5(r,e)?!1:Gn?Gn.allowsImportingAmbientModule(Pi.moduleSymbol,je(Pi.isFromPackageJson)):!0}return RX(Pi.isFromPackageJson?En:e,r,xi,s,Gn,je(Pi.isFromPackageJson),kt)}}function zt(fe,Be){const ke=Sa(fe);We[ke]!==zu.GlobalsOrKeywords&&(Me[Ee.length]=Be,We[ke]=oe?zu.LocationPriority:zu.AutoImportSuggestions,Ee.push(fe))}function Dn(fe,Be){lr(pe)||fe.forEach(ke=>{if(!ci(ke))return;const Tt=uQ(ke,os(i),void 0,0,!1);if(!Tt)return;const{name:kt}=Tt,en=Ctt(ke,kt,Be,e,u,i,s,p);if(!en)return;const En={kind:128,...en};ie|=32,Me[Ee.length]=En,Ee.push(ke)})}function ci(fe){return!!(fe.flags&8196)}function yi(fe,Be,ke){let Tt=fe;for(;Tt&&!LK(Tt,Be,ke);)Tt=Tt.parent;return Tt}function Qi(fe){const Be=Xs(),ke=ka(fe)||Rt(fe)||Gt(fe)||Io(fe)||FW(fe);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Xs()-Be)),ke}function Io(fe){if(fe.kind===12)return!0;if(fe.kind===32&&fe.parent){if(pe===fe.parent&&(pe.kind===286||pe.kind===285))return!1;if(fe.parent.kind===286)return pe.parent.kind!==286;if(fe.parent.kind===287||fe.parent.kind===285)return!!fe.parent.parent&&fe.parent.parent.kind===284}return!1}function fa(){if(Q){const fe=Q.parent.kind,Be=dQ(Q);switch(Be){case 28:return fe===213||fe===176||fe===214||fe===209||fe===226||fe===184||fe===210;case 21:return fe===213||fe===176||fe===214||fe===217||fe===196;case 23:return fe===209||fe===181||fe===167;case 144:case 145:case 102:return!0;case 25:return fe===267;case 19:return fe===263||fe===210;case 64:return fe===260||fe===226;case 16:return fe===228;case 17:return fe===239;case 134:return fe===174||fe===304;case 42:return fe===174}if(gz(Be))return!0}return!1}function ka(fe){return(tH(fe)||kV(fe))&&(nO(fe,o)||o===fe.end&&(!!fe.isUnterminated||tH(fe)))}function Tn(){const fe=Xtt(Q);if(!fe)return 0;const ke=(nI(fe.parent)?fe.parent:void 0)||fe,Tt=NLe(ke,m);if(!Tt)return 0;const kt=m.getTypeFromTypeNode(ke),en=fQ(Tt,m),En=fQ(kt,m),Gn=new Set;return En.forEach(qn=>Gn.add(qn.escapedName)),Ee=So(Ee,mn(en,qn=>!Gn.has(qn.escapedName))),Le=0,de=!0,1}function wn(){const fe=Ee.length,Be=jtt(Q,o,r);if(!Be)return 0;Le=0;let ke,Tt;if(Be.kind===210){const kt=Ztt(Be,m);if(kt===void 0)return Be.flags&67108864?2:0;const en=m.getContextualType(Be,4),En=(en||kt).getStringIndexType(),Gn=(en||kt).getNumberIndexType();if(de=!!En||!!Gn,ke=pQ(kt,en,Be,m),Tt=Be.properties,ke.length===0&&!Gn)return 0}else{N.assert(Be.kind===206),de=!1;const kt=R_(Be.parent);if(!aR(kt))return N.fail("Root declaration is not variable-like.");let en=Ly(kt)||!!yu(kt)||kt.parent.parent.kind===250;if(!en&&kt.kind===169&&(yt(kt.parent)?en=!!m.getContextualType(kt.parent):(kt.parent.kind===174||kt.parent.kind===178)&&(en=yt(kt.parent.parent)&&!!m.getContextualType(kt.parent.parent))),en){const En=m.getTypeAtLocation(Be);if(!En)return 2;ke=m.getPropertiesOfType(En).filter(Gn=>m.isPropertyAccessible(Be,!1,!1,En,Gn)),Tt=Be.elements}}if(ke&&ke.length>0){const kt=fn(ke,N.checkDefined(Tt));Ee=So(Ee,kt),q(),Be.kind===210&&s.includeCompletionsWithObjectLiteralMethodSnippets&&s.includeCompletionsWithInsertText&&(Lt(fe),Dn(kt,Be))}return 1}function He(){if(!Q)return 0;const fe=Q.kind===19||Q.kind===28?ri(Q.parent,D3):e5(Q)?ri(Q.parent.parent,D3):void 0;if(!fe)return 0;e5(Q)||(Ce=8);const{moduleSpecifier:Be}=fe.kind===275?fe.parent.parent:fe.parent;if(!Be)return de=!0,fe.kind===275?2:0;const ke=m.getSymbolAtLocation(Be);if(!ke)return de=!0,2;Le=3,de=!1;const Tt=m.getExportsAndPropertiesOfModule(ke),kt=new Set(fe.elements.filter(En=>!J(En)).map(En=>(En.propertyName||En.name).escapedText)),en=Tt.filter(En=>En.escapedName!=="default"&&!kt.has(En.escapedName));return Ee=So(Ee,en),en.length||(Ce=0),1}function mt(){if(Q===void 0)return 0;const fe=Q.kind===19||Q.kind===28?ri(Q.parent,aI):Q.kind===59?ri(Q.parent.parent,aI):void 0;if(fe===void 0)return 0;const Be=new Set(fe.elements.map($3));return Ee=mn(m.getTypeAtLocation(fe).getApparentProperties(),ke=>!Be.has(ke.escapedName)),1}function ft(){var fe;const Be=Q&&(Q.kind===19||Q.kind===28)?ri(Q.parent,Nf):void 0;if(!Be)return 0;const ke=Vn(Be,Jm($i,Xl));return Le=5,de=!1,(fe=ke.locals)==null||fe.forEach((Tt,kt)=>{var en,En;Ee.push(Tt),(En=(en=ke.symbol)==null?void 0:en.exports)!=null&&En.has(kt)&&(We[Sa(Tt)]=zu.OptionalMember)}),1}function Ct(){const fe=Ktt(r,Q,pe,o);if(!fe)return 0;if(Le=3,de=!0,Ce=Q.kind===42?0:di(fe)?2:3,!di(fe))return 1;const Be=Q.kind===27?Q.parent.parent:Q.parent;let ke=Yc(Be)?ud(Be):0;if(Q.kind===80&&!J(Q))switch(Q.getText()){case"private":ke=ke|2;break;case"static":ke=ke|256;break;case"override":ke=ke|16;break}if(Rl(Be)&&(ke|=256),!(ke&2)){const Tt=di(fe)&&ke&16?hA(I_(fe)):RC(fe),kt=Do(Tt,en=>{const En=m.getTypeAtLocation(en);return ke&256?(En==null?void 0:En.symbol)&&m.getPropertiesOfType(m.getTypeOfSymbolAtLocation(En.symbol,fe)):En&&m.getPropertiesOfType(En)});Ee=So(Ee,L(kt,fe.members,ke)),Xe(Ee,(en,En)=>{const Gn=en==null?void 0:en.valueDeclaration;if(Gn&&Yc(Gn)&&Gn.name&&Za(Gn.name)){const qn={kind:512,symbolName:m.symbolToString(en)};Me[En]=qn}})}return 1}function le(fe){return!!fe.parent&&Ao(fe.parent)&&Ml(fe.parent.parent)&&(pC(fe.kind)||wg(fe))}function Fe(fe){if(fe){const Be=fe.parent;switch(fe.kind){case 21:case 28:return Ml(fe.parent)?fe.parent:void 0;default:if(le(fe))return Be.parent}}}function pt(fe){if(fe){let Be;const ke=Vn(fe.parent,Tt=>di(Tt)?"quit":Bs(Tt)&&Be===Tt.body?!0:(Be=Tt,!1));return ke&&ke}}function j(fe){if(fe){const Be=fe.parent;switch(fe.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(Be&&(Be.kind===285||Be.kind===286)){if(fe.kind===32){const ke=Ic(fe.pos,r,void 0);if(!Be.typeArguments||ke&&ke.kind===44)break}return Be}else if(Be.kind===291)return Be.parent.parent;break;case 11:if(Be&&(Be.kind===291||Be.kind===293))return Be.parent.parent;break;case 20:if(Be&&Be.kind===294&&Be.parent&&Be.parent.kind===291)return Be.parent.parent.parent;if(Be&&Be.kind===293)return Be.parent.parent;break}}}function it(fe,Be){return r.getLineEndOfPosition(fe.getEnd())<Be}function Rt(fe){const Be=fe.parent,ke=Be.kind;switch(fe.kind){case 28:return ke===260||yn(fe)||ke===243||ke===266||_t(ke)||ke===264||ke===207||ke===265||di(Be)&&!!Be.typeParameters&&Be.typeParameters.end>=fe.pos;case 25:return ke===207;case 59:return ke===208;case 23:return ke===207;case 21:return ke===299||_t(ke);case 19:return ke===266;case 30:return ke===263||ke===231||ke===264||ke===265||TA(ke);case 126:return ke===172&&!di(Be.parent);case 26:return ke===169||!!Be.parent&&Be.parent.kind===207;case 125:case 123:case 124:return ke===169&&!Ml(Be.parent);case 130:return ke===276||ke===281||ke===274;case 139:case 153:return!mQ(fe);case 80:{if(ke===276&&fe===Be.name&&fe.text==="type"||Vn(fe.parent,Oi)&&it(fe,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(fe.parent)&&!Hl(fe.parent)}if(gz(dQ(fe))&&mQ(fe)||le(fe)&&(!Ve(fe)||pC(dQ(fe))||J(fe)))return!1;switch(dQ(fe)){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 qo(fe.parent)}if(Vn(fe.parent,di)&&fe===K&&Ye(fe,o))return!1;const kt=f0(fe.parent,172);if(kt&&fe!==K&&di(K.parent.parent)&&o<=K.end){if(Ye(fe,K.end))return!1;if(fe.kind!==64&&(Nw(kt)||T4(kt)))return!0}return wg(fe)&&!np(fe.parent)&&!w_(fe.parent)&&!((di(fe.parent)||md(fe.parent)||hl(fe.parent))&&(fe!==K||o>K.end))}function Ye(fe,Be){return fe.kind!==64&&(fe.kind===27||!If(fe.end,Be,r))}function _t(fe){return TA(fe)&&fe!==176}function Gt(fe){if(fe.kind===9){const Be=fe.getFullText();return Be.charAt(Be.length-1)==="."}return!1}function yn(fe){return fe.parent.kind===261&&!oO(fe,r,m)}function fn(fe,Be){if(Be.length===0)return fe;const ke=new Set,Tt=new Set;for(const en of Be){if(en.kind!==303&&en.kind!==304&&en.kind!==208&&en.kind!==174&&en.kind!==177&&en.kind!==178&&en.kind!==305||J(en))continue;let En;if(jv(en))hn(en,ke);else if($a(en)&&en.propertyName)en.propertyName.kind===80&&(En=en.propertyName.escapedText);else{const Gn=Lo(en);En=Gn&&x_(Gn)?CC(Gn):void 0}En!==void 0&&Tt.add(En)}const kt=fe.filter(en=>!Tt.has(en.escapedName));return Oe(ke,kt),kt}function hn(fe,Be){const ke=fe.expression,Tt=m.getSymbolAtLocation(ke),kt=Tt&&m.getTypeOfSymbolAtLocation(Tt,ke),en=kt&&kt.properties;en&&en.forEach(En=>{Be.add(En.name)})}function q(){Ee.forEach(fe=>{if(fe.flags&16777216){const Be=Sa(fe);We[Be]=We[Be]??zu.OptionalMember}})}function Oe(fe,Be){if(fe.size!==0)for(const ke of Be)fe.has(ke.name)&&(We[Sa(ke)]=zu.MemberDeclaredBySpreadAssignment)}function Lt(fe){for(let Be=fe;Be<Ee.length;Be++){const ke=Ee[Be],Tt=Sa(ke),kt=Me==null?void 0:Me[Be],en=os(i),En=uQ(ke,en,kt,0,!1);if(En){const Gn=We[Tt]??zu.LocationPriority,{name:qn}=En;We[Tt]=zu.ObjectLiteralProperty(Gn,qn)}}}function L(fe,Be,ke){const Tt=new Set;for(const kt of Be){if(kt.kind!==172&&kt.kind!==174&&kt.kind!==177&&kt.kind!==178||J(kt)||_p(kt,2)||aa(kt)!==!!(ke&256))continue;const en=IS(kt.name);en&&Tt.add(en)}return fe.filter(kt=>!Tt.has(kt.escapedName)&&!!kt.declarations&&!(xf(kt)&2)&&!(kt.valueDeclaration&&sd(kt.valueDeclaration)))}function me(fe,Be){const ke=new Set,Tt=new Set;for(const en of Be)J(en)||(en.kind===291?ke.add(iP(en.name)):cI(en)&&hn(en,Tt));const kt=fe.filter(en=>!ke.has(en.escapedName));return Oe(Tt,kt),kt}function J(fe){return fe.getStart(r)<=o&&o<=fe.getEnd()}}function jtt(e,t,r){var i;if(e){const{parent:o}=e;switch(e.kind){case 19:case 28:if(La(o)||im(o))return o;break;case 42:return Hl(o)?ri(o.parent,La):void 0;case 134:return ri(o.parent,La);case 80:if(e.text==="async"&&np(e.parent))return e.parent.parent;{if(La(e.parent.parent)&&(jv(e.parent)||np(e.parent)&&ys(r,e.getEnd()).line!==ys(r,t).line))return e.parent.parent;const l=Vn(o,hc);if((l==null?void 0:l.getLastToken(r))===e&&La(l.parent))return l.parent}break;default:if((i=o.parent)!=null&&i.parent&&(Hl(o.parent)||tf(o.parent)||vp(o.parent))&&La(o.parent.parent))return o.parent.parent;if(jv(o)&&La(o.parent))return o.parent;const s=Vn(o,hc);if(e.kind!==59&&(s==null?void 0:s.getLastToken(r))===e&&La(s.parent))return s.parent}}}function cQ(e,t){const r=Ic(e,t);return r&&e<=r.end&&(Kh(r)||Bd(r.kind))?{contextToken:Ic(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function TLe(e,t,r,i){const o=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():r,s=o.getTypeChecker(),l=t.ambientModuleName?s.tryFindAmbientModule(t.ambientModuleName):t.fileName?s.getMergedSymbol(N.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"&&xR(u)||u,{symbol:u,origin:Mtt(t,e,l)}):void 0}function uQ(e,t,r,i,o){if(mtt(r))return;const s=utt(r)?r.symbolName:e.name;if(s===void 0||e.flags&1536&&wL(s.charCodeAt(0))||tk(e))return;const l={name:s,needsConvertPropertyAccess:!1};if(Zp(s,t,o?1:0)||e.valueDeclaration&&sd(e.valueDeclaration))return l;switch(i){case 3:return hme(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:N.assertNever(i)}}function ALe(e,t){if(!t)return ILe(e);const r=e+8+1;return vz[r]||(vz[r]=ILe(e).filter(i=>!Utt(IE(i.name))))}function ILe(e){return vz[e]||(vz[e]=Cme().filter(t=>{const r=IE(t.name);switch(e){case 0:return!1;case 1:return RLe(r)||r===138||r===144||r===156||r===145||r===128||rM(r)&&r!==157;case 5:return RLe(r);case 2:return gz(r);case 3:return xLe(r);case 4:return pC(r);case 6:return rM(r)||r===87;case 7:return rM(r);case 8:return r===156;default:return N.assertNever(e)}}))}function Utt(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 xLe(e){return e===148}function gz(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return wV(e)}}function RLe(e){return e===134||e===135||e===160||e===130||e===152||e===156||!s3(e)&&!gz(e)}function dQ(e){return Ve(e)?r0(e)??0:e.kind}function Htt(e,t){const r=[];if(e){const i=e.getSourceFile(),o=e.parent,s=i.getLineAndCharacterOfPosition(e.end).line,l=i.getLineAndCharacterOfPosition(t).line;(Mc(o)||Yl(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&s===l&&r.push({name:pa(132),kind:"keyword",kindModifiers:"",sortText:zu.GlobalsOrKeywords})}return r}function qtt(e,t){return Vn(e,r=>Qx(r)&&tO(r,t)?!0:Zm(r)?"quit":!1)}function pQ(e,t,r,i){const o=t&&t!==e,s=o&&!(t.flags&3)?i.getUnionType([e,t]):e,l=Jtt(s,r,i);return s.isClass()&&DLe(l)?[]:o?mn(l,u):l;function u(p){return Ne(p.declarations)?bt(p.declarations,h=>h.parent!==r):!0}}function Jtt(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(mn(e.types,i=>!(i.flags&402784252||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&DLe(i.getApparentProperties())))):e.getApparentProperties()}function DLe(e){return bt(e,t=>!!(xf(t)&6))}function fQ(e,t){return e.isUnion()?N.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):N.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function Ktt(e,t,r,i){switch(r.kind){case 358:return ri(r.parent,FA);case 1:const o=ri(el(oa(r.parent,$i).statements),FA);if(o&&!vs(o,20,e))return o;break;case 81:if(ri(r.parent,qo))return Vn(r,di);break;case 80:{if(r0(r)||qo(r.parent)&&r.parent.initializer===r)return;if(mQ(r))return Vn(r,FA)}}if(t){if(r.kind===137||Ve(t)&&qo(t.parent)&&di(r))return Vn(t,di);switch(t.kind){case 64:return;case 27:case 20:return mQ(r)&&r.parent.name===r?r.parent.parent:ri(r,FA);case 19:case 28:return ri(t.parent,FA);default:if(FA(r)){if(ys(e,t.getEnd()).line!==ys(e,i).line)return r;const o=di(t.parent.parent)?gz:xLe;return o(t.kind)||t.kind===42||Ve(t)&&o(r0(t)??0)?t.parent.parent:void 0}return}}}function Xtt(e){if(!e)return;const 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 NLe(e,t){if(!e)return;if(ji(e)&&A4(e.parent))return t.getTypeArgumentConstraint(e);const r=NLe(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 mQ(e){return e.parent&&h4(e.parent)&&FA(e.parent.parent)}function Ytt(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&Nue(r)&&i===r.getStart(e)+1;case"#":return!!r&&qi(r)&&!!au(r);case"<":return!!r&&r.kind===30&&(!mr(r.parent)||CLe(r.parent));case"/":return!!r&&(ls(r)?!!UL(r):r.kind===44&&e1(r.parent));case" ":return!!r&&mP(r)&&r.parent.kind===312;default:return N.assertNever(t)}}function CLe({left:e}){return Fl(e)}function $tt(e,t,r){const i=r.resolveName("self",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;const o=r.resolveName("global",void 0,111551,!1);if(o&&r.getTypeOfSymbolAtLocation(o,t)===e)return!0;const s=r.resolveName("globalThis",void 0,111551,!1);return!!(s&&r.getTypeOfSymbolAtLocation(s,t)===e)}function Qtt(e){return!!(e.valueDeclaration&&ud(e.valueDeclaration)&256&&di(e.valueDeclaration.parent))}function Ztt(e,t){const r=t.getContextualType(e);if(r)return r;const i=kv(e.parent);if(mr(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(yt(i))return t.getContextualType(i)}function PLe(e,t){var r,i,o;let s,l=!1;const u=p();return{isKeywordOnlyCompletion:l,keywordCompletion:s,isNewIdentifierLocation:!!(u||s===156),isTopLevelTypeOnly:!!((i=(r=ri(u,Mc))==null?void 0:r.importClause)!=null&&i.isTypeOnly)||!!((o=ri(u,eu))!=null&&o.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!u&&LLe(u,e),replacementSpan:ent(u)};function p(){const h=e.parent;if(eu(h)){const m=h.getLastToken(t);if(Ve(e)&&m!==e){s=161,l=!0;return}return s=e.kind===156?void 0:156,Ame(h.moduleReference)?h:void 0}if(LLe(h,e)&&kLe(h.parent))return h;if(Bg(h)||Yy(h)){if(!h.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(s=156),kLe(h))if(e.kind===20||e.kind===80)l=!0,s=161;else return h.parent.parent;return}if(Yl(h)&&e.kind===42||Nf(h)&&e.kind===20){l=!0,s=161;return}if(mP(e)&&$i(h))return s=156,e;if(mP(e)&&Mc(h))return s=156,Ame(h.moduleSpecifier)?h:void 0}}function ent(e){var t;if(!e)return;const r=Vn(e,Jm(Mc,eu))??e,i=r.getSourceFile();if(CS(r,i))return Dd(r,i);N.assert(r.kind!==102&&r.kind!==276);const o=r.kind===272?MLe((t=r.importClause)==null?void 0:t.namedBindings)??r.moduleSpecifier:r.moduleReference,s={pos:r.getFirstToken().getStart(),end:o.pos};if(CS(s,i))return tb(s)}function MLe(e){var t;return In((t=ri(e,Bg))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&LA(r.name.text)&&((i=Ic(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function LLe(e,t){return tp(e)&&(e.isTypeOnly||t===e.name&&e5(t))}function kLe(e){if(!Ame(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(Bg(e)){const t=MLe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Ame(e){var t;return Fl(e)?!0:!((t=ri(Th(e)?e.expression:e,ls))!=null&&t.text)}function tnt(e,t){if(!e)return;const r=Vn(e,o=>kE(o)||wLe(o)||ta(o)?"quit":(Ao(o)||hl(o))&&!XE(o.parent)),i=Vn(t,o=>kE(o)||wLe(o)||ta(o)?"quit":Oi(o));return r||i}function wLe(e){return e.parent&&Gs(e.parent)&&(e.parent.body===e||e.kind===39)}function Ime(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)&&Am(r,Sa(o))&&t.getExportsOfModule(o).some(s=>Ime(s,t,r))}}function nnt(e,t){const r=bu(e,t).declarations;return!!Ne(r)&&Jn(r,b5)}function OLe(e,t){if(t.length===0)return!0;let r=!1,i,o=0;const s=e.length;for(let l=0;l<s;l++){const u=e.charCodeAt(l),p=t.charCodeAt(o);if((u===p||u===rnt(p))&&(r||(r=i===void 0||97<=i&&i<=122&&65<=u&&u<=90||i===95&&u!==95),r&&o++,o===t.length))return!0;i=u}return!1}function rnt(e){return 97<=e&&e<=122?e-32:e}function int(e){return e==="abstract"||e==="async"||e==="await"||e==="declare"||e==="module"||e==="namespace"||e==="type"}var _Q,xme,zu,Rme,Dme,Nme,vz,Cme,ont=I({"src/services/completions.ts"(){si(),Wme(),_Q=100,xme=1e3,zu={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"}},Rme=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(Rme||{}),Dme=(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))(Dme||{}),Nme=(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))(Nme||{}),vz=[],Cme=Sd(()=>{const e=[];for(let t=83;t<=165;t++)e.push({name:pa(t),kind:"keyword",kindModifiers:"",sortText:zu.GlobalsOrKeywords});return e})}});function Pme(){const e=new Map;function t(r){const i=e.get(r.name);(!i||Ome[i.kind]<Ome[r.kind])&&e.set(r.name,r)}return{add:t,has:e.has.bind(e),values:e.values.bind(e)}}function ant(e,t,r,i,o,s,l,u,p){if(uue(e,t)){const h=Snt(e,t,i,o);return h&&WLe(h)}if(SI(e,t,r)){if(!r||!ls(r))return;const h=zLe(e,r,t,s,o,u);return snt(h,r,e,o,s,l,i,u,t,p)}}function snt(e,t,r,i,o,s,l,u,p,h){if(e===void 0)return;const m=jK(t);switch(e.kind){case 0:return WLe(e.paths);case 1:{const y=BB();return bme(e.symbols,y,t,t,r,p,r,i,o,99,s,4,u,l,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,h),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:m,entries:y}}case 2:{const y=t.kind===15?96:uo(fc(t),"'")?39:34,T=e.types.map(A=>({name:tg(A.value,y),kindModifiers:"",kind:"string",sortText:zu.LocationPriority,replacementSpan:VK(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:m,entries:T}}default:return N.assertNever(e)}}function lnt(e,t,r,i,o,s,l,u){if(!i||!ls(i))return;const p=zLe(t,i,r,o,s,u);return p&&cnt(e,i,p,t,o.getTypeChecker(),l)}function cnt(e,t,r,i,o,s){switch(r.kind){case 0:{const l=In(r.paths,u=>u.name===e);return l&&hz(e,FLe(l.extension),l.kind,[cf(e)])}case 1:{const l=In(r.symbols,u=>u.name===e);return l&&Sme(l,l.name,o,i,t,s)}case 2:return In(r.types,l=>l.value===e)?hz(e,"","string",[cf(e)]):void 0;default:return N.assertNever(r)}}function WLe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:o,kind:s,span:l,extension:u})=>({name:o,kind:s,kindModifiers:FLe(u),sortText:zu.LocationPriority,replacementSpan:l}))}}function FLe(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 N.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return N.assertNever(e)}}function zLe(e,t,r,i,o,s){const l=i.getTypeChecker(),u=Mme(t.parent);switch(u.kind){case 201:{const A=Mme(u.parent);return A.kind===205?{kind:0,paths:VLe(e,t,i,o,s)}:p(A)}case 303:return La(u.parent)&&u.name===t?pnt(l,u.parent):h()||h(0);case 212:{const{expression:A,argumentExpression:R}=u;return t===hs(R)?BLe(l.getTypeAtLocation(A)):void 0}case 213:case 214:case 291:if(!xnt(t)&&!zp(u)){const A=ZO.getArgumentInfoForCompletions(u.kind===291?u.parent:t,r,e,l);return A&&dnt(A.invocation,t,A,l)||h(0)}case 272:case 278:case 283:return{kind:0,paths:VLe(e,t,i,o,s)};case 296:const m=T5(l,u.parent.clauses),y=h();return y?{kind:2,types:y.types.filter(A=>!m.hasValue(A.value)),isNewIdentifier:!1}:void 0;default:return h()||h(0)}function p(m){switch(m.kind){case 233:case 183:{const A=Vn(u,R=>R.parent===m);return A?{kind:2,types:hQ(l.getTypeArgumentConstraint(A)),isNewIdentifier:!1}:void 0}case 199:const{indexType:y,objectType:T}=m;return tO(y,r)?BLe(l.getTypeFromTypeNode(T)):void 0;case 192:{const A=p(Mme(m.parent));if(!A)return;const R=unt(m,u);return A.kind===1?{kind:1,symbols:A.symbols.filter(M=>!Or(R,M.name)),hasIndexSignature:A.hasIndexSignature}:{kind:2,types:A.types.filter(M=>!Or(R,M.value)),isNewIdentifier:!1}}default:return}}function h(m=4){const y=hQ(u5(t,l,m));if(y.length)return{kind:2,types:y,isNewIdentifier:!1}}}function Mme(e){switch(e.kind){case 196:return XL(e);case 217:return kv(e);default:return e}}function unt(e,t){return eo(e.types,r=>r!==t&&Jy(r)&&Na(r.literal)?r.literal.text:void 0)}function dnt(e,t,r,i){let o=!1;const s=new Map,l=ld(e)?N.checkDefined(Vn(t.parent,w_)):t,u=i.getCandidateSignaturesForStringLiteralCompletions(e,l),p=Do(u,h=>{if(!Yu(h)&&r.argumentCount>h.parameters.length)return;let m=h.getTypeParameterAtPosition(r.argumentIndex);if(ld(e)){const y=i.getTypeOfPropertyOfType(m,Ek(l.name));y&&(m=y)}return o=o||!!(m.flags&4),hQ(m,s)});return Ne(p)?{kind:2,types:p,isNewIdentifier:o}:void 0}function BLe(e){return e&&{kind:1,symbols:mn(e.getApparentProperties(),t=>!(t.valueDeclaration&&sd(t.valueDeclaration))),hasIndexSignature:uX(e)}}function pnt(e,t){const r=e.getContextualType(t);if(!r)return;const i=e.getContextualType(t,4);return{kind:1,symbols:pQ(r,i,t,e),hasIndexSignature:uX(r)}}function hQ(e,t=new Map){return e?(e=qK(e),e.isUnion()?Do(e.types,r=>hQ(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&Am(t,e.value)?[e]:et):et}function yM(e,t,r){return{name:e,kind:t,extension:r}}function Lme(e){return yM(e,"directory",void 0)}function GLe(e,t,r){const i=Ant(e,t),o=e.length===0?void 0:vu(t,e.length);return r.map(({name:s,kind:l,extension:u})=>s.includes(ol)||s.includes(q2)?{name:s,kind:l,extension:u,span:o}:{name:s,kind:l,extension:u,span:i})}function VLe(e,t,r,i,o){return GLe(t.text,t.getStart(e)+1,fnt(e,t,r,i,o))}function fnt(e,t,r,i,o){const s=Lu(t.text),l=ls(t)?r.getModeForUsageLocation(e,t):void 0,u=e.path,p=ai(u),h=r.getCompilerOptions(),m=r.getTypeChecker(),y=kme(h,1,e,m,o,l);return Int(s)||!h.baseUrl&&!h.paths&&(dp(s)||Rne(s))?mnt(s,p,h,i,u,y):vnt(s,p,l,h,i,y,m)}function kme(e,t,r,i,o,s){return{extensionsToSearch:Cs(_nt(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:o==null?void 0:o.importModuleSpecifierEnding,resolutionMode:s}}function mnt(e,t,r,i,o,s){return r.rootDirs?gnt(r.rootDirs,e,t,s,r,i,o):zo(KO(e,t,s,i,!0,o).values())}function _nt(e,t){const r=t?eo(t.getAmbientModules(),s=>{const l=s.name.slice(1,-1);if(!(!l.startsWith("*.")||l.includes("/")))return l.slice(1)}):[],i=[...JC(e),r],o=pd(e);return t5(o)?mk(e,i):i}function hnt(e,t,r,i){e=e.map(s=>Fc(ha(dp(s)?s:$r(t,s))));const o=Ht(e,s=>gm(s,r,t,i)?r.substr(s.length):void 0);return SE([...e.map(s=>$r(s,o)),r].map(s=>Qb(s)),oS,Uu)}function gnt(e,t,r,i,o,s,l){const u=o.project||s.getCurrentDirectory(),p=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),h=hnt(e,u,r,p);return SE(Do(h,m=>zo(KO(t,m,i,s,!0,l).values())),(m,y)=>m.name===y.name&&m.kind===y.kind&&m.extension===y.extension)}function KO(e,t,r,i,o,s,l=Pme()){var u;e===void 0&&(e=""),e=Lu(e),Dv(e)||(e=ai(e)),e===""&&(e="."+ol),e=Fc(e);const p=Iy(t,e),h=Dv(p)?p:ai(p);if(!o){const A=Pue(h,i);if(A){const M=BC(A,i).typesVersions;if(typeof M=="object"){const C=(u=AF(M))==null?void 0:u.paths;if(C){const O=ai(A),U=p.slice(Fc(O).length);if(ULe(l,U,O,r,i,C))return l}}}}const m=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!_5(i,h))return l;const y=pX(i,h,r.extensionsToSearch,void 0,["./*"]);if(y)for(let A of y){if(A=ha(A),s&&Dg(A,s,t,m)===0)continue;const{name:R,extension:M}=jLe(ic(A),i.getCompilationSettings(),r,!1);l.add(yM(R,"script",M))}const T=m5(i,h);if(T)for(const A of T){const R=ic(ha(A));R!=="@types"&&l.add(Lme(R))}return l}function jLe(e,t,r,i){const o=l1.tryGetRealFileNameForNonJsDeclarationFileName(e);if(o)return{name:o,extension:Fg(o)};if(r.referenceKind===0)return{name:e,extension:Fg(e)};let s=Iw({importModuleSpecifierEnding:r.endingPreference},t,r.importingSourceFile).getAllowedEndingsInPreferredOrder(r.resolutionMode);if(i&&(s=s.filter(u=>u!==0&&u!==1)),s[0]===3){if(Sc(e,xk))return{name:e,extension:Fg(e)};const u=l1.tryGetJSExtensionForFile(e,t);return u?{name:_0(e,u),extension:u}:{name:e,extension:Fg(e)}}if(!i&&(s[0]===0||s[0]===1)&&Sc(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Ad(e),extension:Fg(e)};const l=l1.tryGetJSExtensionForFile(e,t);return l?{name:_0(e,l),extension:l}:{name:e,extension:Fg(e)}}function ULe(e,t,r,i,o,s){const l=p=>s[p],u=(p,h)=>{const m=PR(p),y=PR(h),T=typeof m=="object"?m.prefix.length:p.length,A=typeof y=="object"?y.prefix.length:h.length;return nl(A,T)};return HLe(e,!1,t,r,i,o,Hh(s),l,u)}function HLe(e,t,r,i,o,s,l,u,p){let h=[],m;for(const y of l){if(y===".")continue;const T=y.replace(/^\.\//,""),A=u(y);if(A){const R=PR(T);if(!R)continue;const M=typeof R=="object"&&R6(R,r);M&&(m===void 0||p(y,m)===-1)&&(m=y,h=h.filter(O=>!O.matchedPattern)),(typeof R=="string"||m===void 0||p(y,m)!==1)&&h.push({matchedPattern:M,results:ynt(T,A,r,i,o,t&&M,s).map(({name:O,kind:U,extension:K})=>yM(O,U,K))})}}return h.forEach(y=>y.results.forEach(T=>e.add(T))),m!==void 0}function vnt(e,t,r,i,o,s,l){const{baseUrl:u,paths:p}=i,h=Pme(),m=pd(i);if(u){const T=ha($r(o.getCurrentDirectory(),u));KO(e,T,s,o,!1,void 0,h)}if(p){const T=m3(i,o);ULe(h,e,T,s,o,p)}const y=JLe(e);for(const T of Ent(e,y,l))h.add(yM(T,"external module name",void 0));if(YLe(o,i,t,y,s,h),t5(m)){let T=!1;if(y===void 0)for(const A of Tnt(o,t)){const R=yM(A,"external module name",void 0);h.has(R.name)||(T=!0,h.add(R))}if(!T){let A=R=>{const M=$r(R,"node_modules");_5(o,M)&&KO(e,M,s,o,!1,void 0,h)};if(y&&nW(i)){const R=A;A=M=>{const C=Wc(e);C.shift();let O=C.shift();if(!O)return R(M);if(uo(O,"@")){const Q=C.shift();if(!Q)return R(M);O=$r(O,Q)}const U=$r(M,"node_modules",O),K=$r(U,"package.json");if(vO(o,K)){const V=BC(K,o).exports;if(V){if(typeof V!="object"||V===null)return;const se=Hh(V),G=C.join("/")+(C.length&&Dv(e)?"/":""),ne=Qy(i,r);HLe(h,!0,G,U,s,o,se,he=>hA(qLe(V[he],ne)),hq);return}}return R(M)}}ym(t,A)}}return zo(h.values())}function qLe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!To(e)){for(const r in e)if(r==="default"||t.includes(r)||Tw(t,r)){const i=e[r];return qLe(i,t)}}}function JLe(e){return wme(e)?Dv(e)?e:ai(e):void 0}function ynt(e,t,r,i,o,s,l){if(!Al(e,"*"))return e.includes("*")?et:h(e,"script");const u=e.slice(0,e.length-1),p=ZB(r,u);if(p===void 0)return e[e.length-2]==="/"?h(u,"directory"):Do(t,y=>{var T;return(T=KLe("",i,y,o,s,l))==null?void 0:T.map(({name:A,...R})=>({name:u+A,...R}))});return Do(t,m=>KLe(p,i,m,o,s,l));function h(m,y){return uo(m,r)?[{name:Qb(m),kind:y,extension:void 0}]:et}}function KLe(e,t,r,i,o,s){if(!s.readDirectory)return;const l=PR(r);if(l===void 0||Mo(l))return;const u=Iy(l.prefix),p=Dv(l.prefix)?u:ai(u),h=Dv(l.prefix)?"":ic(u),m=wme(e),y=m?Dv(e)?e:ai(e):void 0,T=m?$r(p,h+y):p,A=ha(l.suffix),R=A&&f3("_"+A),M=R?[_0(A,R),A]:[A],C=ha($r(t,T)),O=m?C:Fc(C)+h,U=A?M.map(se=>"**/*"+se):["./*"],K=eo(pX(s,C,i.extensionsToSearch,void 0,U),se=>{const G=V(se);if(G){if(wme(G))return Lme(Wc(XLe(G))[1]);const{name:ne,extension:he}=jLe(G,s.getCompilationSettings(),i,o);return yM(ne,"script",he)}}),Q=A?et:eo(m5(s,C),se=>se==="node_modules"?void 0:Lme(se));return[...K,...Q];function V(se){return Ht(M,G=>{const ne=bnt(ha(se),O,G);return ne===void 0?void 0:XLe(ne)})}}function bnt(e,t,r){return uo(e,t)&&Al(e,r)?e.slice(t.length,e.length-r.length):void 0}function XLe(e){return e[0]===ol?e.slice(1):e}function Ent(e,t,r){const o=r.getAmbientModules().map(s=>Zf(s.name)).filter(s=>uo(s,e)&&!s.includes("*"));if(t!==void 0){const s=Fc(t);return o.map(l=>XN(l,s))}return o}function Snt(e,t,r,i){const o=po(e,t),s=qh(e.text,o.pos),l=s&&In(s,R=>t>=R.pos&&t<=R.end);if(!l)return;const u=e.text.slice(l.pos,t),p=$Le.exec(u);if(!p)return;const[,h,m,y]=p,T=ai(e.path),A=m==="path"?KO(y,T,kme(r,0,e),i,!0,e.path):m==="types"?YLe(i,r,T,JLe(y),kme(r,1,e)):N.fail();return GLe(y,l.pos+h.length,zo(A.values()))}function YLe(e,t,r,i,o,s=Pme()){const l=new Map,u=h5(()=>LP(t,e))||et;for(const h of u)p(h);for(const h of fX(r,e)){const m=$r(ai(h),"node_modules/@types");p(m)}return s;function p(h){if(_5(e,h))for(const m of m5(e,h)){const y=Aw(m);if(!(t.types&&!Or(t.types,y)))if(i===void 0)l.has(y)||(s.add(yM(y,"external module name",void 0)),l.set(y,!0));else{const T=$r(h,m),A=pU(i,y,wv(e));A!==void 0&&KO(A,T,o,e,!1,void 0,s)}}}}function Tnt(e,t){if(!e.readFile||!e.fileExists)return et;const r=[];for(const i of fX(t,e)){const o=BC(i,e);for(const s of QLe){const l=o[s];if(l)for(const u in l)Is(l,u)&&!uo(u,"@types/")&&r.push(u)}}return r}function Ant(e,t){const r=Math.max(e.lastIndexOf(ol),e.lastIndexOf(q2)),i=r!==-1?r+1:0,o=e.length-i;return o===0||Zp(e.substr(i,o),99)?void 0:vu(t+i,o)}function Int(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){const t=e.length>=3&&e.charCodeAt(1)===46?2:1,r=e.charCodeAt(t);return r===47||r===92}return!1}function wme(e){return e.includes(ol)}function xnt(e){return sa(e.parent)&&Kc(e.parent.arguments)===e&&Ve(e.parent.expression)&&e.parent.expression.escapedText==="require"}var Ome,$Le,QLe,Rnt=I({"src/services/stringCompletions.ts"(){Fse(),si(),Wme(),Ome={directory:0,script:1,"external module name":2},$Le=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,QLe=["dependencies","devDependencies","peerDependencies","optionalDependencies"]}}),gQ={};ee(gQ,{getStringLiteralCompletionDetails:()=>lnt,getStringLiteralCompletions:()=>ant});var Dnt=I({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){Rnt()}}),LI={};ee(LI,{CompletionKind:()=>Nme,CompletionSource:()=>Rme,SortText:()=>zu,StringCompletions:()=>gQ,SymbolOriginInfoKind:()=>Dme,createCompletionDetails:()=>hz,createCompletionDetailsForSymbol:()=>Sme,getCompletionEntriesFromSymbols:()=>bme,getCompletionEntryDetails:()=>Wtt,getCompletionEntrySymbol:()=>ztt,getCompletionsAtPosition:()=>_tt,getPropertiesForObjectExpression:()=>pQ,moduleSpecifierResolutionCacheAttemptLimit:()=>xme,moduleSpecifierResolutionLimit:()=>_Q});var Wme=I({"src/services/_namespaces/ts.Completions.ts"(){ont(),Dnt()}});function Fme(e,t,r,i){const o=Mnt(e,r,i);return(s,l,u)=>{const{directImports:p,indirectUsers:h}=Nnt(e,t,o,l,r,i);return{indirectUsers:h,...Cnt(p,s,l.exportKind,r,u)}}}function Nnt(e,t,r,{exportingModuleSymbol:i,exportKind:o},s,l){const u=TI(),p=TI(),h=[],m=!!i.globalExports,y=m?void 0:[];return A(i),{directImports:h,indirectUsers:T()};function T(){if(m)return e;if(i.declarations)for(const K of i.declarations)PE(K)&&t.has(K.getSourceFile().fileName)&&O(K);return y.map(Un)}function A(K){const Q=U(K);if(Q){for(const V of Q)if(u(V))switch(l&&l.throwIfCancellationRequested(),V.kind){case 213:if(zp(V)){R(V);break}if(!m){const G=V.parent;if(o===2&&G.kind===260){const{name:ne}=G;if(ne.kind===80){h.push(ne);break}}}break;case 80:break;case 271:C(V,V.name,Qr(V,32),!1);break;case 272:h.push(V);const se=V.importClause&&V.importClause.namedBindings;se&&se.kind===274?C(V,se.name,!1,!0):!m&&NA(V)&&O(yz(V));break;case 278:V.exportClause?V.exportClause.kind===280?O(yz(V),!0):h.push(V):A(Wnt(V,s));break;case 205:!m&&V.isTypeOf&&!V.qualifier&&M(V)&&O(V.getSourceFile(),!0),h.push(V);break;default:N.failBadSyntaxKind(V,"Unexpected import kind.")}}}function R(K){const Q=Vn(K,vQ)||K.getSourceFile();O(Q,!!M(K,!0))}function M(K,Q=!1){return Vn(K,V=>Q&&vQ(V)?"quit":Rm(V)&&bt(V.modifiers,$A))}function C(K,Q,V,se){if(o===2)se||h.push(K);else if(!m){const G=yz(K);N.assert(G.kind===312||G.kind===267),V||Pnt(G,Q,s)?O(G,!0):O(G)}}function O(K,Q=!1){if(N.assert(!m),!p(K)||(y.push(K),!Q))return;const se=s.getMergedSymbol(K.symbol);if(!se)return;N.assert(!!(se.flags&1536));const G=U(se);if(G)for(const ne of G)ag(ne)||O(yz(ne),!0)}function U(K){return r.get(Sa(K).toString())}}function Cnt(e,t,r,i,o){const s=[],l=[];function u(T,A){s.push([T,A])}if(e)for(const T of e)p(T);return{importSearches:s,singleReferences:l};function p(T){if(T.kind===271){Bme(T)&&h(T.name);return}if(T.kind===80){h(T);return}if(T.kind===205){if(T.qualifier){const M=Gp(T.qualifier);M.escapedText===El(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&&Nf(T.exportClause)&&m(T.exportClause);return}const{name:A,namedBindings:R}=T.importClause||{name:void 0,namedBindings:void 0};if(R)switch(R.kind){case 274:h(R.name);break;case 275:(r===0||r===1)&&m(R);break;default:N.assertNever(R)}if(A&&(r===1||r===2)&&(!o||A.escapedText===r5(t))){const M=i.getSymbolAtLocation(A);u(A,M)}}function h(T){r===2&&(!o||y(T.escapedText))&&u(T,i.getSymbolAtLocation(T))}function m(T){if(T)for(const A of T.elements){const{name:R,propertyName:M}=A;if(y((M||R).escapedText))if(M)l.push(M),(!o||R.escapedText===t.escapedName)&&u(R,i.getSymbolAtLocation(R));else{const C=A.kind===281&&A.propertyName?i.getExportSpecifierLocalTargetSymbol(A):i.getSymbolAtLocation(R);u(R,C)}}}function y(T){return T===t.escapedName||r!==0&&T==="default"}}function Pnt(e,t,r){const i=r.getSymbolAtLocation(t);return!!eke(e,o=>{if(!Yl(o))return;const{exportClause:s,moduleSpecifier:l}=o;return!l&&s&&Nf(s)&&s.elements.some(u=>r.getExportSpecifierLocalTargetSymbol(u)===i)})}function ZLe(e,t,r){var i;const o=[],s=e.getTypeChecker();for(const l of t){const u=r.valueDeclaration;if((u==null?void 0:u.kind)===312){for(const p of l.referencedFiles)e.getSourceFileFromReference(l,p)===u&&o.push({kind:"reference",referencingFile:l,ref:p});for(const p of l.typeReferenceDirectives){const h=(i=e.getResolvedTypeReferenceDirectives().get(p.fileName,p.resolutionMode||l.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;h!==void 0&&h.resolvedFileName===u.fileName&&o.push({kind:"reference",referencingFile:l,ref:p})}}tke(l,(p,h)=>{s.getSymbolAtLocation(h)===r&&o.push(Ys(p)?{kind:"implicit",literal:h,referencingFile:l}:{kind:"import",literal:h})})}return o}function Mnt(e,t,r){const i=new Map;for(const o of e)r&&r.throwIfCancellationRequested(),tke(o,(s,l)=>{const u=t.getSymbolAtLocation(l);if(u){const p=Sa(u).toString();let h=i.get(p);h||i.set(p,h=[]),h.push(s)}});return i}function eke(e,t){return Xe(e.kind===312?e.statements:e.body.statements,r=>t(r)||vQ(r)&&Xe(r.body&&r.body.statements,t))}function tke(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(const r of e.imports)t(IC(r),r);else eke(e,r=>{switch(r.kind){case 278:case 272:{const i=r;i.moduleSpecifier&&Na(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 271:{const i=r;Bme(i)&&t(i,i.moduleReference.expression);break}}})}function nke(e,t,r,i){return i?o():o()||s();function o(){var p;const{parent:h}=e,m=h.parent;if(t.exportSymbol)return h.kind===211?(p=t.declarations)!=null&&p.some(A=>A===h)&&mr(m)?T(m,!1):void 0:l(t.exportSymbol,u(h));{const A=knt(h,e);if(A&&Qr(A,32))return eu(A)&&A.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(A.name)}:l(t,u(A));if(Sh(h))return l(t,0);if(kl(h))return y(h);if(kl(m))return y(m);if(mr(h))return T(h,!0);if(mr(m))return T(m,!0);if(US(h)||mH(h))return l(t,0)}function y(A){if(!A.symbol.parent)return;const R=A.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:A.symbol.parent,exportKind:R}}}function T(A,R){let M;switch(zl(A)){case 1:M=0;break;case 2:M=2;break;default:return}const C=R?r.getSymbolAtLocation(sU(oa(A.left,ws))):t;return C&&l(C,M)}}function s(){if(!wnt(e))return;let h=r.getImmediateAliasedSymbol(t);if(!h||(h=Ont(h,r),h.escapedName==="export="&&(h=Lnt(h,r),h===void 0)))return;const m=r5(h);if(m===void 0||m==="default"||m===t.escapedName)return{kind:0,symbol:h}}function l(p,h){const m=zme(p,h,r);return m&&{kind:1,symbol:p,exportInfo:m}}function u(p){return Qr(p,2048)?1:0}}function Lnt(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);const o=N.checkDefined(e.valueDeclaration);if(kl(o))return(r=ri(o.expression,T_))==null?void 0:r.symbol;if(mr(o))return(i=ri(o.right,T_))==null?void 0:i.symbol;if($i(o))return o.symbol}function knt(e,t){const r=Oi(e)?e:$a(e)?Hx(e):void 0;return r?e.name!==t||r1(r.parent)?void 0:Ll(r.parent.parent)?r.parent.parent:void 0:e}function wnt(e){const{parent:t}=e;switch(t.kind){case 271:return t.name===e&&Bme(t);case 276:return!t.propertyName;case 273:case 274:return N.assert(t.name===e),!0;case 208:return lr(e)&&wE(t.parent.parent);default:return!1}}function zme(e,t,r){const i=e.parent;if(!i)return;const o=r.getMergedSymbol(i);return lO(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function Ont(e,t){if(e.declarations)for(const r of e.declarations){if(Ku(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(Fr(r)&&Zh(r.expression)&&!qi(r.name))return t.getSymbolAtLocation(r);if(np(r)&&mr(r.parent.parent)&&zl(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function Wnt(e,t){return t.getMergedSymbol(yz(e).symbol)}function yz(e){if(e.kind===213)return e.getSourceFile();const{parent:t}=e;return t.kind===312?t:(N.assert(t.kind===268),oa(t.parent,vQ))}function vQ(e){return e.kind===267&&e.name.kind===11}function Bme(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var Gme,Vme,Fnt=I({"src/services/importTracker.ts"(){si(),Gme=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(Gme||{}),Vme=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(Vme||{})}});function ug(e,t=1){return{kind:t,node:e.name||e,context:znt(e)}}function jme(e){return e&&e.kind===void 0}function znt(e){if(Ju(e))return oT(e);if(e.parent){if(!Ju(e.parent)&&!kl(e.parent)){if(lr(e)){const r=mr(e.parent)?e.parent:ws(e.parent)&&mr(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&zl(r)!==0)return oT(r)}if(k_(e.parent)||e1(e.parent))return e.parent.parent;if(GS(e.parent)||ZE(e.parent)||cC(e.parent))return e.parent;if(ls(e)){const r=UL(e);if(r){const i=Vn(r,o=>Ju(o)||Hi(o)||Qx(o));return Ju(i)?oT(i):i}}const t=Vn(e,Za);return t?oT(t.parent):void 0}if(e.parent.name===e||Ml(e.parent)||kl(e.parent)||(SA(e.parent)||$a(e.parent))&&e.parent.propertyName===e||e.kind===90&&Qr(e.parent,2080))return oT(e.parent)}}function oT(e){if(e)switch(e.kind){case 260:return!Vc(e.parent)||e.parent.declarations.length!==1?e:Ll(e.parent.parent)?e.parent.parent:Yx(e.parent.parent)?oT(e.parent.parent):e.parent;case 208:return oT(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 Zc(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return Jv(e.parent)?oT(Vn(e.parent,t=>mr(t)||Yx(t))):e;case 255:return{start:In(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function Ume(e,t,r){if(!r)return;const i=jme(r)?Ez(r.start,t,r.end):Ez(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function Bnt(e,t,r,i,o){const s=Vd(i,o),l={use:1},u=kI.getReferencedSymbolsForNode(o,s,e,r,t,l),p=e.getTypeChecker(),h=kI.getAdjustedNode(s,l),m=Gnt(h)?p.getSymbolAtLocation(h):void 0;return!u||!u.length?void 0:eo(u,({definition:y,references:T})=>y&&{definition:p.runWithCancellationToken(t,A=>Unt(y,A,s)),references:T.map(A=>qnt(A,m))})}function Gnt(e){return e.kind===90||!!xC(e)||$L(e)||e.kind===137&&Ml(e.parent)}function Vnt(e,t,r,i,o){const s=Vd(i,o);let l;const u=rke(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){const h=M2(u),m=new Map;for(;!h.isEmpty();){const y=h.dequeue();if(!Am(m,as(y.node)))continue;l=Rn(l,y);const T=rke(e,t,r,y.node,y.node.pos);T&&h.enqueue(...T)}}const p=e.getTypeChecker();return Wt(l,h=>Knt(h,p))}function rke(e,t,r,i,o){if(i.kind===312)return;const s=e.getTypeChecker();if(i.parent.kind===304){const l=[];return kI.getReferenceEntriesForShorthandPropertyAssignment(i,s,u=>l.push(ug(u))),l}else if(i.kind===108||zd(i.parent)){const l=s.getSymbolAtLocation(i);return l.valueDeclaration&&[ug(l.valueDeclaration)]}else return ike(o,i,e,r,t,{implementations:!0,use:1})}function jnt(e,t,r,i,o,s,l){return Wt(oke(kI.getReferencedSymbolsForNode(o,i,e,r,t,s)),u=>l(u,i,e.getTypeChecker()))}function ike(e,t,r,i,o,s={},l=new Set(i.map(u=>u.fileName))){return oke(kI.getReferencedSymbolsForNode(e,t,r,i,o,s,l))}function oke(e){return e&&Do(e,t=>t.references)}function Unt(e,t,r){const i=(()=>{switch(e.type){case 0:{const{symbol:m}=e,{displayParts:y,kind:T}=ake(m,t,r),A=y.map(C=>C.text).join(""),R=m.declarations&&Kc(m.declarations),M=R?Lo(R)||R:r;return{...bz(M),name:A,kind:T,displayParts:y,context:oT(R)}}case 1:{const{node:m}=e;return{...bz(m),name:m.text,kind:"label",displayParts:[rp(m.text,17)]}}case 2:{const{node:m}=e,y=pa(m.kind);return{...bz(m),name:y,kind:"keyword",displayParts:[{text:y,kind:"keyword"}]}}case 3:{const{node:m}=e,y=t.getSymbolAtLocation(m),T=y&&Qv.getSymbolDisplayPartsDocumentationAndSymbolKind(t,y,m.getSourceFile(),eT(m),m).displayParts||[cf("this")];return{...bz(m),name:"this",kind:"var",displayParts:T}}case 4:{const{node:m}=e;return{...bz(m),name:m.text,kind:"var",displayParts:[rp(fc(m),8)]}}case 5:return{textSpan:tb(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[rp(`"${e.reference.fileName}"`,8)]};default:return N.assertNever(e)}})(),{sourceFile:o,textSpan:s,name:l,kind:u,displayParts:p,context:h}=i;return{containerKind:"",containerName:"",fileName:o.fileName,kind:u,name:l,textSpan:s,displayParts:p,...Ume(s,o,h)}}function bz(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:Ez(Za(e)?e.expression:e,t)}}function ake(e,t,r){const i=kI.getIntersectingMeaningFromDeclarations(r,e),o=e.declarations&&Kc(e.declarations)||r,{displayParts:s,symbolKind:l}=Qv.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,o.getSourceFile(),o,o,i);return{displayParts:s,kind:l}}function Hnt(e,t,r,i,o){return{...yQ(e),...i&&Jnt(e,t,r,o)}}function qnt(e,t){const r=ske(e);return t?{...r,isDefinition:e.kind!==0&&lke(e.node,t)}:r}function ske(e){const t=yQ(e);if(e.kind===0)return{...t,isWriteAccess:!1};const{kind:r,node:i}=e;return{...t,isWriteAccess:qme(i),isInString:r===2?!0:void 0}}function yQ(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),r=Ez(e.node,t);return{textSpan:r,fileName:t.fileName,...Ume(r,t,e.context)}}}function Jnt(e,t,r,i){if(e.kind!==0&&Ve(t)){const{node:o,kind:s}=e,l=o.parent,u=t.text,p=np(l);if(p||dO(l)&&l.name===o&&l.dotDotDotToken===void 0){const h={prefixText:u+": "},m={suffixText:": "+u};if(s===3)return h;if(s===4)return m;if(p){const y=l.parent;return La(y)&&mr(y.parent)&&Zh(y.parent.left)?h:m}else return h}else if(tp(l)&&!l.propertyName){const h=Ku(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return Or(h.declarations,l)?{prefixText:u+" as "}:Mf}else if(Ku(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)&&ws(e.node.parent)){const o=YK(i);return{prefixText:o,suffixText:o}}return Mf}function Knt(e,t){const r=yQ(e);if(e.kind!==0){const{node:i}=e;return{...r,...Xnt(i,t)}}else return{...r,kind:"",displayParts:[]}}function Xnt(e,t){const r=t.getSymbolAtLocation(Ju(e)&&e.name?e.name:e);return r?ake(r,t,e):e.kind===210?{kind:"interface",displayParts:[$u(21),cf("object literal"),$u(22)]}:e.kind===231?{kind:"local class",displayParts:[$u(21),cf("anonymous local class"),$u(22)]}:{kind:f1(e),displayParts:[]}}function Ynt(e){const t=yQ(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const r=qme(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 Ez(e,t,r){let i=e.getStart(t),o=(r||e).getEnd();return ls(e)&&o-i>2&&(N.assert(r===void 0),i+=1,o-=1),(r==null?void 0:r.kind)===269&&(o=r.getFullStart()),pc(i,o)}function Hme(e){return e.kind===0?e.textSpan:Ez(e.node,e.node.getSourceFile())}function qme(e){const t=xC(e);return!!t&&$nt(t)||e.kind===90||WA(e)}function lke(e,t){var r;if(!t)return!1;const i=xC(e)||(e.kind===90?e.parent:$L(e)||e.kind===137&&Ml(e.parent)?e.parent.parent:void 0),o=i&&mr(i)?i.left:void 0;return!!(i&&((r=t.declarations)!=null&&r.some(s=>s===i||s===o)))}function $nt(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!Jv(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||r1(e.parent);case 173:case 171:case 355:case 348:return!1;default:return N.failBadSyntaxKind(e)}}var Jme,Kme,Xme,kI,Qnt=I({"src/services/findAllReferences.ts"(){si(),Yme(),Jme=(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))(Jme||{}),Kme=(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))(Kme||{}),Xme=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(Xme||{}),(e=>{function t(He,mt,ft,Ct,le,Fe={},pt=new Set(Ct.map(j=>j.fileName))){var j,it;if(mt=r(mt,Fe),$i(mt)){const hn=FD.getReferenceAtPosition(mt,He,ft);if(!(hn!=null&&hn.file))return;const q=ft.getTypeChecker().getMergedSymbol(hn.file.symbol);if(q)return h(ft,q,!1,Ct,pt);const Oe=ft.getFileIncludeReasons();return Oe?[{definition:{type:5,reference:hn.reference,file:mt},references:o(hn.file,Oe,ft)||et}]:void 0}if(!Fe.implementations){const hn=y(mt,Ct,le);if(hn)return hn}const Rt=ft.getTypeChecker(),Ye=Rt.getSymbolAtLocation(Ml(mt)&&mt.parent.name||mt);if(!Ye){if(!Fe.implementations&&ls(mt)){if(i5(mt)){const hn=ft.getFileIncludeReasons(),q=(it=(j=ft.getResolvedModuleFromModuleSpecifier(mt))==null?void 0:j.resolvedModule)==null?void 0:it.resolvedFileName,Oe=q?ft.getSourceFile(q):void 0;if(Oe)return[{definition:{type:4,node:mt},references:o(Oe,hn,ft)||et}]}return Ci(mt,Ct,Rt,le)}return}if(Ye.escapedName==="export=")return h(ft,Ye.parent,!1,Ct,pt);const _t=l(Ye,ft,Ct,le,Fe,pt);if(_t&&!(Ye.flags&33554432))return _t;const Gt=s(mt,Ye,Rt),yn=Gt&&l(Gt,ft,Ct,le,Fe,pt),fn=T(Ye,mt,Ct,pt,Rt,le,Fe);return u(ft,_t,fn,yn)}e.getReferencedSymbolsForNode=t;function r(He,mt){return mt.use===1?He=wK(He):mt.use===2&&(He=q7(He)),He}e.getAdjustedNode=r;function i(He,mt,ft,Ct=new Set(ft.map(le=>le.fileName))){var le,Fe;const pt=(le=mt.getSourceFile(He))==null?void 0:le.symbol;if(pt)return((Fe=h(mt,pt,!1,ft,Ct)[0])==null?void 0:Fe.references)||et;const j=mt.getFileIncludeReasons(),it=mt.getSourceFile(He);return it&&j&&o(it,j,mt)||et}e.getReferencesForFileName=i;function o(He,mt,ft){let Ct;const le=mt.get(He.path)||et;for(const Fe of le)if(D0(Fe)){const pt=ft.getSourceFileByPath(Fe.file),j=XP(ft,Fe);dD(j)&&(Ct=Rn(Ct,{kind:0,fileName:pt.fileName,textSpan:tb(j)}))}return Ct}function s(He,mt,ft){if(He.parent&&qk(He.parent)){const Ct=ft.getAliasedSymbol(mt),le=ft.getMergedSymbol(Ct);if(Ct!==le)return le}}function l(He,mt,ft,Ct,le,Fe){const pt=He.flags&1536&&He.declarations&&In(He.declarations,$i);if(!pt)return;const j=He.exports.get("export="),it=h(mt,He,!!j,ft,Fe);if(!j||!Fe.has(pt.fileName))return it;const Rt=mt.getTypeChecker();return He=bu(j,Rt),u(mt,it,T(He,void 0,ft,Fe,Rt,Ct,le))}function u(He,...mt){let ft;for(const Ct of mt)if(!(!Ct||!Ct.length)){if(!ft){ft=Ct;continue}for(const le of Ct){if(!le.definition||le.definition.type!==0){ft.push(le);continue}const Fe=le.definition.symbol,pt=mi(ft,it=>!!it.definition&&it.definition.type===0&&it.definition.symbol===Fe);if(pt===-1){ft.push(le);continue}const j=ft[pt];ft[pt]={definition:j.definition,references:j.references.concat(le.references).sort((it,Rt)=>{const Ye=p(He,it),_t=p(He,Rt);if(Ye!==_t)return nl(Ye,_t);const Gt=Hme(it),yn=Hme(Rt);return Gt.start!==yn.start?nl(Gt.start,yn.start):nl(Gt.length,yn.length)})}}}return ft}function p(He,mt){const ft=mt.kind===0?He.getSourceFile(mt.fileName):mt.node.getSourceFile();return He.getSourceFiles().indexOf(ft)}function h(He,mt,ft,Ct,le){N.assert(!!mt.valueDeclaration);const Fe=eo(ZLe(He,Ct,mt),j=>{if(j.kind==="import"){const it=j.literal.parent;if(Jy(it)){const Rt=oa(it.parent,ag);if(ft&&!Rt.qualifier)return}return ug(j.literal)}else if(j.kind==="implicit"){const it=j.literal.text!==Vy&&RP(j.referencingFile,Rt=>Rt.transformFlags&2?sg(Rt)||GS(Rt)||t1(Rt)?Rt:void 0:"skip")||j.referencingFile.statements[0]||j.referencingFile;return ug(it)}else return{kind:0,fileName:j.referencingFile.fileName,textSpan:tb(j.ref)}});if(mt.declarations)for(const j of mt.declarations)switch(j.kind){case 312:break;case 267:le.has(j.getSourceFile().fileName)&&Fe.push(ug(j.name));break;default:N.assert(!!(mt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const pt=mt.exports.get("export=");if(pt!=null&&pt.declarations)for(const j of pt.declarations){const it=j.getSourceFile();if(le.has(it.fileName)){const Rt=mr(j)&&Fr(j.left)?j.left.expression:kl(j)?N.checkDefined(vs(j,95,it)):Lo(j)||j;Fe.push(ug(Rt))}}return Fe.length?[{definition:{type:0,symbol:mt},references:Fe}]:et}function m(He){return He.kind===148&&OS(He.parent)&&He.parent.operator===148}function y(He,mt,ft){if(rM(He.kind))return He.kind===116&&iI(He.parent)||He.kind===148&&!m(He)?void 0:Le(mt,He.kind,ft,He.kind===148?m:void 0);if(oR(He.parent)&&He.parent.name===He)return ve(mt,ft);if(QA(He)&&Rl(He.parent))return[{definition:{type:2,node:He},references:[ug(He)]}];if(eO(He)){const Ct=B7(He.parent,He.text);return Ct&&de(Ct.parent,Ct)}else if(xK(He))return de(He.parent,He);if(yD(He))return Ln(He,mt,ft);if(He.kind===108)return Wi(He)}function T(He,mt,ft,Ct,le,Fe,pt){const j=mt&&M(He,mt,le,!wn(pt))||He,it=mt?yi(mt,j):7,Rt=[],Ye=new U(ft,Ct,mt?R(mt):0,le,Fe,it,pt,Rt),_t=!wn(pt)||!j.declarations?void 0:In(j.declarations,Ku);if(_t)At(_t.name,j,_t,Ye.createSearch(mt,He,void 0),Ye,!0,!0);else if(mt&&mt.kind===90&&j.escapedName==="default"&&j.parent)vt(mt,j,Ye),K(mt,j,{exportingModuleSymbol:j.parent,exportKind:1},Ye);else{const Gt=Ye.createSearch(mt,j,void 0,{allSearchSymbols:mt?sn(j,mt,le,pt.use===2,!!pt.providePrefixAndSuffixTextForRename,!!pt.implementations):[j]});A(j,Ye,Gt)}return Rt}function A(He,mt,ft){const Ct=he(He);if(Ct)Ee(Ct,Ct.getSourceFile(),ft,mt,!($i(Ct)&&!Or(mt.sourceFiles,Ct)));else for(const le of mt.sourceFiles)mt.cancellationToken.throwIfCancellationRequested(),G(le,ft,mt)}function R(He){switch(He.kind){case 176:case 137:return 1;case 80:if(di(He.parent))return N.assert(He.parent.name===He),2;default:return 0}}function M(He,mt,ft,Ct){const{parent:le}=mt;return Ku(le)&&Ct?Se(mt,He,le,ft):Ht(He.declarations,Fe=>{if(!Fe.parent){if(He.flags&33554432)return;N.fail(`Unexpected symbol at ${N.formatSyntaxKind(mt.kind)}: ${N.formatSymbol(He)}`)}return yp(Fe.parent)&&qy(Fe.parent.parent)?ft.getPropertyOfType(ft.getTypeFromTypeNode(Fe.parent.parent),He.name):void 0})}let C;(He=>{He[He.None=0]="None",He[He.Constructor=1]="Constructor",He[He.Class=2]="Class"})(C||(C={}));function O(He){if(!(He.flags&33555968))return;const mt=He.declarations&&In(He.declarations,ft=>!$i(ft)&&!Xl(ft));return mt&&mt.symbol}class U{constructor(mt,ft,Ct,le,Fe,pt,j,it){this.sourceFiles=mt,this.sourceFilesSet=ft,this.specialSearchKind=Ct,this.checker=le,this.cancellationToken=Fe,this.searchMeaning=pt,this.options=j,this.result=it,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=TI(),this.markSeenReExportRHS=TI(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(mt){return this.sourceFilesSet.has(mt.fileName)}getImportSearches(mt,ft){return this.importTracker||(this.importTracker=Fme(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(mt,ft,this.options.use===2)}createSearch(mt,ft,Ct,le={}){const{text:Fe=Zf(El(xR(ft)||O(ft)||ft)),allSearchSymbols:pt=[ft]}=le,j=_l(Fe),it=this.options.implementations&&mt?Tn(mt,ft,this.checker):void 0;return{symbol:ft,comingFrom:Ct,text:Fe,escapedText:j,parents:it,allSearchSymbols:pt,includes:Rt=>Or(pt,Rt)}}referenceAdder(mt){const ft=Sa(mt);let Ct=this.symbolIdToReferences[ft];return Ct||(Ct=this.symbolIdToReferences[ft]=[],this.result.push({definition:{type:0,symbol:mt},references:Ct})),(le,Fe)=>Ct.push(ug(le,Fe))}addStringOrCommentReference(mt,ft){this.result.push({definition:void 0,references:[{kind:0,fileName:mt,textSpan:ft}]})}markSearchedSymbols(mt,ft){const Ct=as(mt),le=this.sourceFileToSeenSymbols[Ct]||(this.sourceFileToSeenSymbols[Ct]=new Set);let Fe=!1;for(const pt of ft)Fe=Xb(le,Sa(pt))||Fe;return Fe}}function K(He,mt,ft,Ct){const{importSearches:le,singleReferences:Fe,indirectUsers:pt}=Ct.getImportSearches(mt,ft);if(Fe.length){const j=Ct.referenceAdder(mt);for(const it of Fe)V(it,Ct)&&j(it)}for(const[j,it]of le)Ue(j.getSourceFile(),Ct.createSearch(j,it,1),Ct);if(pt.length){let j;switch(ft.exportKind){case 0:j=Ct.createSearch(He,mt,1);break;case 1:j=Ct.options.use===2?void 0:Ct.createSearch(He,mt,1,{text:"default"});break}if(j)for(const it of pt)G(it,j,Ct)}}function Q(He,mt,ft,Ct,le,Fe,pt,j){const it=Fme(He,new Set(He.map(Gt=>Gt.fileName)),mt,ft),{importSearches:Rt,indirectUsers:Ye,singleReferences:_t}=it(Ct,{exportKind:pt?1:0,exportingModuleSymbol:le},!1);for(const[Gt]of Rt)j(Gt);for(const Gt of _t)Ve(Gt)&&ag(Gt.parent)&&j(Gt);for(const Gt of Ye)for(const yn of pe(Gt,pt?"default":Fe)){const fn=mt.getSymbolAtLocation(yn),hn=bt(fn==null?void 0:fn.declarations,q=>!!ri(q,kl));Ve(yn)&&!SA(yn.parent)&&(fn===Ct||hn)&&j(yn)}}e.eachExportReference=Q;function V(He,mt){return De(He,mt)?mt.options.use!==2?!0:Ve(He)?!(SA(He.parent)&&He.escapedText==="default"):!1:!1}function se(He,mt){if(He.declarations)for(const ft of He.declarations){const Ct=ft.getSourceFile();Ue(Ct,mt.createSearch(ft,He,0),mt,mt.includesSourceFile(Ct))}}function G(He,mt,ft){TY(He).get(mt.escapedText)!==void 0&&Ue(He,mt,ft)}function ne(He,mt){return Jv(He.parent.parent)?mt.getPropertySymbolOfDestructuringAssignment(He):void 0}function he(He){const{declarations:mt,flags:ft,parent:Ct,valueDeclaration:le}=He;if(le&&(le.kind===218||le.kind===231))return le;if(!mt)return;if(ft&8196){const j=In(mt,it=>_p(it,2)||sd(it));return j?f0(j,263):void 0}if(mt.some(dO))return;const Fe=Ct&&!(He.flags&262144);if(Fe&&!(lO(Ct)&&!Ct.globalExports))return;let pt;for(const j of mt){const it=eT(j);if(pt&&pt!==it||!it||it.kind===312&&!Fp(it))return;if(pt=it,Os(pt)){let Rt;for(;Rt=Aj(pt);)pt=Rt}}return Fe?pt.getSourceFile():pt}function ye(He,mt,ft,Ct=ft){return Y(He,mt,ft,()=>!0,Ct)||!1}e.isSymbolReferencedInFile=ye;function Y(He,mt,ft,Ct,le=ft){const Fe=pp(He.parent,He.parent.parent)?Ua(mt.getSymbolsOfParameterPropertyDeclaration(He.parent,He.text)):mt.getSymbolAtLocation(He);if(Fe)for(const pt of pe(ft,Fe.name,le)){if(!Ve(pt)||pt===He||pt.escapedText!==He.escapedText)continue;const j=mt.getSymbolAtLocation(pt);if(j===Fe||mt.getShorthandAssignmentValueSymbol(pt.parent)===Fe||Ku(pt.parent)&&Se(pt,j,pt.parent,mt)===Fe){const it=Ct(pt);if(it)return it}}}e.eachSymbolReferenceInFile=Y;function X(He,mt){return mn(pe(mt,He),le=>!!xC(le)).reduce((le,Fe)=>{const pt=Ct(Fe);return!bt(le.declarationNames)||pt===le.depth?(le.declarationNames.push(Fe),le.depth=pt):pt<le.depth&&(le.declarationNames=[Fe],le.depth=pt),le},{depth:1/0,declarationNames:[]}).declarationNames;function Ct(le){let Fe=0;for(;le;)le=eT(le),Fe++;return Fe}}e.getTopMostDeclarationNamesInFile=X;function oe(He,mt,ft,Ct){if(!He.name||!Ve(He.name))return!1;const le=N.checkDefined(ft.getSymbolAtLocation(He.name));for(const Fe of mt)for(const pt of pe(Fe,le.name)){if(!Ve(pt)||pt===He.name||pt.escapedText!==He.name.escapedText)continue;const j=z7(pt),it=sa(j.parent)&&j.parent.expression===j?j.parent:void 0,Rt=ft.getSymbolAtLocation(pt);if(Rt&&ft.getRootSymbols(Rt).some(Ye=>Ye===le)&&Ct(pt,it))return!0}return!1}e.someSignatureUsage=oe;function pe(He,mt,ft=He){return eo(Ce(He,mt,ft),Ct=>{const le=Vd(He,Ct);return le===He?void 0:le})}function Ce(He,mt,ft=He){const Ct=[];if(!mt||!mt.length)return Ct;const le=He.text,Fe=le.length,pt=mt.length;let j=le.indexOf(mt,ft.pos);for(;j>=0&&!(j>ft.end);){const it=j+pt;(j===0||!e0(le.charCodeAt(j-1),99))&&(it===Fe||!e0(le.charCodeAt(it),99))&&Ct.push(j),j=le.indexOf(mt,j+pt+1)}return Ct}function de(He,mt){const ft=He.getSourceFile(),Ct=mt.text,le=eo(pe(ft,Ct,He),Fe=>Fe===mt||eO(Fe)&&B7(Fe,Ct)===mt?ug(Fe):void 0);return[{definition:{type:1,node:mt},references:le}]}function ie(He,mt){switch(He.kind){case 81:if(b0(He.parent))return!0;case 80:return He.text.length===mt.length;case 15:case 11:{const ft=He;return(G7(ft)||CK(He)||$ce(He)||sa(He.parent)&&SS(He.parent)&&He.parent.arguments[1]===He)&&ft.text.length===mt.length}case 9:return G7(He)&&He.text.length===mt.length;case 90:return mt.length===7;default:return!1}}function ve(He,mt){const ft=Do(He,Ct=>(mt.throwIfCancellationRequested(),eo(pe(Ct,"meta",Ct),le=>{const Fe=le.parent;if(oR(Fe))return ug(Fe)})));return ft.length?[{definition:{type:2,node:ft[0].node},references:ft}]:void 0}function Le(He,mt,ft,Ct){const le=Do(He,Fe=>(ft.throwIfCancellationRequested(),eo(pe(Fe,pa(mt),Fe),pt=>{if(pt.kind===mt&&(!Ct||Ct(pt)))return ug(pt)})));return le.length?[{definition:{type:2,node:le[0].node},references:le}]:void 0}function Ue(He,mt,ft,Ct=!0){return ft.cancellationToken.throwIfCancellationRequested(),Ee(He,He,mt,ft,Ct)}function Ee(He,mt,ft,Ct,le){if(Ct.markSearchedSymbols(mt,ft.allSearchSymbols))for(const Fe of Ce(mt,ft.text,He))Me(mt,Fe,ft,Ct,le)}function De(He,mt){return!!(ZS(He)&mt.searchMeaning)}function Me(He,mt,ft,Ct,le){const Fe=Vd(He,mt);if(!ie(Fe,ft.text)){!Ct.options.implementations&&(Ct.options.findInStrings&&SI(He,mt)||Ct.options.findInComments&&due(He,mt))&&Ct.addStringOrCommentReference(He.fileName,vu(mt,ft.text.length));return}if(!De(Fe,Ct))return;let pt=Ct.checker.getSymbolAtLocation(Fe);if(!pt)return;const j=Fe.parent;if(tp(j)&&j.propertyName===Fe)return;if(Ku(j)){N.assert(Fe.kind===80),At(Fe,pt,j,ft,Ct,le);return}if(uC(j)&&j.isNameFirst&&j.typeExpression&&jS(j.typeExpression.type)&&j.typeExpression.type.jsDocPropertyTags&&Ne(j.typeExpression.type.jsDocPropertyTags)){We(j.typeExpression.type.jsDocPropertyTags,Fe,ft,Ct);return}const it=ci(ft,pt,Fe,Ct);if(!it){Bt(pt,ft,Ct);return}switch(Ct.specialSearchKind){case 0:le&&vt(Fe,it,Ct);break;case 1:$e(Fe,He,ft,Ct);break;case 2:It(Fe,ft,Ct);break;default:N.assertNever(Ct.specialSearchKind)}lr(Fe)&&$a(Fe.parent)&&wE(Fe.parent.parent.parent)&&(pt=Fe.parent.symbol,!pt)||ot(Fe,pt,ft,Ct)}function We(He,mt,ft,Ct){const le=Ct.referenceAdder(ft.symbol);vt(mt,ft.symbol,Ct),Xe(He,Fe=>{Id(Fe.name)&&le(Fe.name.left)})}function At(He,mt,ft,Ct,le,Fe,pt){N.assert(!pt||!!le.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:j,propertyName:it,name:Rt}=ft,Ye=j.parent,_t=Se(He,mt,ft,le.checker);if(!pt&&!Ct.includes(_t))return;if(it?He===it?(Ye.moduleSpecifier||Gt(),Fe&&le.options.use!==2&&le.markSeenReExportRHS(Rt)&&vt(Rt,N.checkDefined(ft.symbol),le)):le.markSeenReExportRHS(He)&&Gt():le.options.use===2&&Rt.escapedText==="default"||Gt(),!wn(le.options)||pt){const fn=He.escapedText==="default"||ft.name.escapedText==="default"?1:0,hn=N.checkDefined(ft.symbol),q=zme(hn,fn,le.checker);q&&K(He,hn,q,le)}if(Ct.comingFrom!==1&&Ye.moduleSpecifier&&!it&&!wn(le.options)){const yn=le.checker.getExportSpecifierLocalTargetSymbol(ft);yn&&se(yn,le)}function Gt(){Fe&&vt(He,_t,le)}}function Se(He,mt,ft,Ct){return je(He,ft)&&Ct.getExportSpecifierLocalTargetSymbol(ft)||mt}function je(He,mt){const{parent:ft,propertyName:Ct,name:le}=mt;return N.assert(Ct===He||le===He),Ct?Ct===He:!ft.parent.moduleSpecifier}function ot(He,mt,ft,Ct){const le=nke(He,mt,Ct.checker,ft.comingFrom===1);if(!le)return;const{symbol:Fe}=le;le.kind===0?wn(Ct.options)||se(Fe,Ct):K(He,Fe,le.exportInfo,Ct)}function Bt({flags:He,valueDeclaration:mt},ft,Ct){const le=Ct.checker.getShorthandAssignmentValueSymbol(mt),Fe=mt&&Lo(mt);!(He&33554432)&&Fe&&ft.includes(le)&&vt(Fe,le,Ct)}function vt(He,mt,ft){const{kind:Ct,symbol:le}="kind"in mt?mt:{kind:void 0,symbol:mt};if(ft.options.use===2&&He.kind===90)return;const Fe=ft.referenceAdder(le);ft.options.implementations?Qt(He,Fe,ft):Fe(He,Ct)}function $e(He,mt,ft,Ct){eM(He)&&vt(He,ft.symbol,Ct);const le=()=>Ct.referenceAdder(ft.symbol);if(di(He.parent))N.assert(He.kind===90||He.parent.name===He),tn(ft.symbol,mt,le());else{const Fe=ka(He);Fe&&(Mn(Fe,le()),gn(Fe,Ct))}}function It(He,mt,ft){vt(He,mt.symbol,ft);const Ct=He.parent;if(ft.options.use===2||!di(Ct))return;N.assert(Ct.name===He);const le=ft.referenceAdder(mt.symbol);for(const Fe of Ct.members)AA(Fe)&&aa(Fe)&&Fe.body&&Fe.body.forEachChild(function pt(j){j.kind===110?le(j):!ea(j)&&!di(j)&&j.forEachChild(pt)})}function tn(He,mt,ft){const Ct=rn(He);if(Ct&&Ct.declarations)for(const le of Ct.declarations){const Fe=vs(le,137,mt);N.assert(le.kind===176&&!!Fe),ft(Fe)}He.exports&&He.exports.forEach(le=>{const Fe=le.valueDeclaration;if(Fe&&Fe.kind===174){const pt=Fe.body;pt&&fa(pt,110,j=>{eM(j)&&ft(j)})}})}function rn(He){return He.members&&He.members.get("__constructor")}function Mn(He,mt){const ft=rn(He.symbol);if(ft&&ft.declarations)for(const Ct of ft.declarations){N.assert(Ct.kind===176);const le=Ct.body;le&&fa(le,108,Fe=>{TK(Fe)&&mt(Fe)})}}function $n(He){return!!rn(He.symbol)}function gn(He,mt){if($n(He))return;const ft=He.symbol,Ct=mt.createSearch(void 0,ft,void 0);A(ft,mt,Ct)}function Qt(He,mt,ft){if(wg(He)&&Qi(He.parent)){mt(He);return}if(He.kind!==80)return;He.parent.kind===304&&Io(He,ft.checker,mt);const Ct=Yt(He);if(Ct){mt(Ct);return}const le=Vn(He,j=>!Id(j.parent)&&!ji(j.parent)&&!fS(j.parent)),Fe=le.parent;if(T4(Fe)&&Fe.type===le&&ft.markSeenContainingTypeReference(Fe))if(Ly(Fe))pt(Fe.initializer);else if(ea(Fe)&&Fe.body){const j=Fe.body;j.kind===241?LE(j,it=>{it.expression&&pt(it.expression)}):pt(j)}else mS(Fe)&&pt(Fe.expression);function pt(j){vi(j)&&mt(j)}}function Yt(He){return Ve(He)||Fr(He)?Yt(He.parent):Vv(He)?ri(He.parent.parent,Jm(di,md)):void 0}function vi(He){switch(He.kind){case 217:return vi(He.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function so(He,mt,ft,Ct){if(He===mt)return!0;const le=Sa(He)+","+Sa(mt),Fe=ft.get(le);if(Fe!==void 0)return Fe;ft.set(le,!1);const pt=!!He.declarations&&He.declarations.some(j=>RC(j).some(it=>{const Rt=Ct.getTypeAtLocation(it);return!!Rt&&!!Rt.symbol&&so(Rt.symbol,mt,ft,Ct)}));return ft.set(le,pt),pt}function Wi(He){let mt=CL(He,!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&=Fy(mt),mt=mt.parent;break;default:return}const Ct=mt.getSourceFile(),le=eo(pe(Ct,"super",mt),Fe=>{if(Fe.kind!==108)return;const pt=CL(Fe,!1);return pt&&aa(pt)===!!ft&&pt.parent.symbol===mt.symbol?ug(Fe):void 0});return[{definition:{type:0,symbol:mt.symbol},references:le}]}function Co(He){return He.kind===80&&He.parent.kind===169&&He.parent.name===He}function Ln(He,mt,ft){let Ct=Fd(He,!1,!1),le=256;switch(Ct.kind){case 174:case 173:if(Tm(Ct)){le&=Fy(Ct),Ct=Ct.parent;break}case 172:case 171:case 176:case 177:case 178:le&=Fy(Ct),Ct=Ct.parent;break;case 312:if(sc(Ct)||Co(He))return;case 262:case 218:break;default:return}const Fe=Do(Ct.kind===312?mt:[Ct.getSourceFile()],j=>(ft.throwIfCancellationRequested(),pe(j,"this",$i(Ct)?j:Ct).filter(it=>{if(!yD(it))return!1;const Rt=Fd(it,!1,!1);if(!T_(Rt))return!1;switch(Ct.kind){case 218:case 262:return Ct.symbol===Rt.symbol;case 174:case 173:return Tm(Ct)&&Ct.symbol===Rt.symbol;case 231:case 263:case 210:return Rt.parent&&T_(Rt.parent)&&Ct.symbol===Rt.parent.symbol&&aa(Rt)===!!le;case 312:return Rt.kind===312&&!sc(Rt)&&!Co(it)}}))).map(j=>ug(j));return[{definition:{type:3,node:Ht(Fe,j=>Ao(j.node.parent)?j.node:void 0)||He},references:Fe}]}function Ci(He,mt,ft,Ct){const le=H7(He,ft),Fe=Do(mt,pt=>(Ct.throwIfCancellationRequested(),eo(pe(pt,He.text),j=>{if(ls(j)&&j.text===He.text)if(le){const it=H7(j,ft);if(le!==ft.getStringType()&&(le===it||Ar(j,ft)))return ug(j,2)}else return XA(j)&&!CS(j,pt)?void 0:ug(j,2)})));return[{definition:{type:4,node:He},references:Fe}]}function Ar(He,mt){if(gp(He.parent))return mt.getPropertyOfType(mt.getTypeAtLocation(He.parent.parent),He.text)}function sn(He,mt,ft,Ct,le,Fe){const pt=[];return tt(He,mt,ft,Ct,!(Ct&&le),(j,it,Rt)=>{Rt&&Dn(He)!==Dn(Rt)&&(Rt=void 0),pt.push(Rt||it||j)},()=>!Fe),pt}function tt(He,mt,ft,Ct,le,Fe,pt){const j=FO(mt);if(j){const fn=ft.getShorthandAssignmentValueSymbol(mt.parent);if(fn&&Ct)return Fe(fn,void 0,void 0,3);const hn=ft.getContextualType(j.parent),q=hn&&Ht(ez(j,ft,hn,!0),me=>Gt(me,4));if(q)return q;const Oe=ne(mt,ft),Lt=Oe&&Fe(Oe,void 0,void 0,4);if(Lt)return Lt;const L=fn&&Fe(fn,void 0,void 0,3);if(L)return L}const it=s(mt,He,ft);if(it){const fn=Fe(it,void 0,void 0,1);if(fn)return fn}const Rt=Gt(He);if(Rt)return Rt;if(He.valueDeclaration&&pp(He.valueDeclaration,He.valueDeclaration.parent)){const fn=ft.getSymbolsOfParameterPropertyDeclaration(oa(He.valueDeclaration,Ao),He.name);return N.assert(fn.length===2&&!!(fn[0].flags&1)&&!!(fn[1].flags&4)),Gt(He.flags&1?fn[1]:fn[0])}const Ye=pl(He,281);if(!Ct||Ye&&!Ye.propertyName){const fn=Ye&&ft.getExportSpecifierLocalTargetSymbol(Ye);if(fn){const hn=Fe(fn,void 0,void 0,1);if(hn)return hn}}if(!Ct){let fn;return le?fn=dO(mt.parent)?o5(ft,mt.parent):void 0:fn=yn(He,ft),fn&&Gt(fn,4)}if(N.assert(Ct),le){const fn=yn(He,ft);return fn&&Gt(fn,4)}function Gt(fn,hn){return Ht(ft.getRootSymbols(fn),q=>Fe(fn,q,void 0,hn)||(q.parent&&q.parent.flags&96&&pt(q)?zt(q.parent,q.name,ft,Oe=>Fe(fn,q,Oe,hn)):void 0))}function yn(fn,hn){const q=pl(fn,208);if(q&&dO(q))return o5(hn,q)}}function zt(He,mt,ft,Ct){const le=new Map;return Fe(He);function Fe(pt){if(!(!(pt.flags&96)||!Am(le,Sa(pt))))return Ht(pt.declarations,j=>Ht(RC(j),it=>{const Rt=ft.getTypeAtLocation(it),Ye=Rt&&Rt.symbol&&ft.getPropertyOfType(Rt,mt);return Rt&&Ye&&(Ht(ft.getRootSymbols(Ye),Ct)||Fe(Rt.symbol))}))}}function Dn(He){return He.valueDeclaration?!!(ud(He.valueDeclaration)&256):!1}function ci(He,mt,ft,Ct){const{checker:le}=Ct;return tt(mt,ft,le,!1,Ct.options.use!==2||!!Ct.options.providePrefixAndSuffixTextForRename,(Fe,pt,j,it)=>(j&&Dn(mt)!==Dn(j)&&(j=void 0),He.includes(j||pt||Fe)?{symbol:pt&&!(xl(Fe)&6)?pt:Fe,kind:it}:void 0),Fe=>!(He.parents&&!He.parents.some(pt=>so(Fe.parent,pt,Ct.inheritsFromCache,le))))}function yi(He,mt){let ft=ZS(He);const{declarations:Ct}=mt;if(Ct){let le;do{le=ft;for(const Fe of Ct){const pt=$w(Fe);pt&ft&&(ft|=pt)}}while(ft!==le)}return ft}e.getIntersectingMeaningFromDeclarations=yi;function Qi(He){return He.flags&33554432?!(md(He)||xm(He)):aR(He)?Ly(He):Bs(He)?!!He.body:di(He)||_L(He)}function Io(He,mt,ft){const Ct=mt.getSymbolAtLocation(He),le=mt.getShorthandAssignmentValueSymbol(Ct.valueDeclaration);if(le)for(const Fe of le.getDeclarations())$w(Fe)&1&&ft(Fe)}e.getReferenceEntriesForShorthandPropertyAssignment=Io;function fa(He,mt,ft){Uo(He,Ct=>{Ct.kind===mt&&ft(Ct),fa(Ct,mt,ft)})}function ka(He){return Yj(z7(He).parent)}function Tn(He,mt,ft){const Ct=vD(He)?He.parent:void 0,le=Ct&&ft.getTypeAtLocation(Ct.expression),Fe=eo(le&&(le.isUnionOrIntersection()?le.types:le.symbol===mt.parent?void 0:[le]),pt=>pt.symbol&&pt.symbol.flags&96?pt.symbol:void 0);return Fe.length===0?void 0:Fe}function wn(He){return He.use===2&&He.providePrefixAndSuffixTextForRename}})(kI||(kI={}))}}),Ws={};ee(Ws,{Core:()=>kI,DefinitionKind:()=>Jme,EntryKind:()=>Kme,ExportKind:()=>Gme,FindReferencesUse:()=>Xme,ImportExport:()=>Vme,createImportTracker:()=>Fme,findModuleReferences:()=>ZLe,findReferenceOrRenameEntries:()=>jnt,findReferencedSymbols:()=>Bnt,getContextNode:()=>oT,getExportInfo:()=>zme,getImplementationsAtPosition:()=>Vnt,getImportOrExportSymbol:()=>nke,getReferenceEntriesForNode:()=>ike,getTextSpanOfEntry:()=>Hme,isContextWithStartAndEndNode:()=>jme,isDeclarationOfSymbol:()=>lke,isWriteAccessForReference:()=>qme,nodeEntry:()=>ug,toContextSpan:()=>Ume,toHighlightSpan:()=>Ynt,toReferenceEntry:()=>ske,toRenameLocation:()=>Hnt});var Yme=I({"src/services/_namespaces/ts.FindAllReferences.ts"(){Fnt(),Qnt()}});function cke(e,t,r,i,o){var s;const l=dke(t,r,e),u=l&&[urt(l.reference.fileName,l.fileName,l.unverified)]||et;if(l!=null&&l.file)return u;const p=Vd(t,r);if(p===t)return;const{parent:h}=p,m=e.getTypeChecker();if(p.kind===164||Ve(p)&&$W(h)&&h.tagName===p)return ert(m,p)||et;if(eO(p)){const C=B7(p.parent,p.text);return C?[$me(m,C,"label",p.text,void 0)]:void 0}switch(p.kind){case 107:const C=Vn(p.parent,U=>Rl(U)?"quit":Bs(U));return C?[Sz(m,C)]:void 0;case 90:if(!EP(p.parent))break;case 84:const O=Vn(p.parent,vP);if(O)return[crt(O,t)];break}if(p.kind===135){const C=Vn(p,U=>Bs(U));return C&&bt(C.modifiers,U=>U.kind===134)?[Sz(m,C)]:void 0}if(p.kind===127){const C=Vn(p,U=>Bs(U));return C&&C.asteriskToken?[Sz(m,C)]:void 0}if(QA(p)&&Rl(p.parent)){const C=p.parent.parent,{symbol:O,failedAliasResolution:U}=bQ(C,m,o),K=mn(C.members,Rl),Q=O?m.symbolToString(O,C):"",V=p.getSourceFile();return Wt(K,se=>{let{pos:G}=C_(se);return G=Pa(V.text,G),$me(m,se,"constructor","static {}",Q,!1,U,{start:G,length:6})})}let{symbol:y,failedAliasResolution:T}=bQ(p,m,o),A=p;if(i&&T){const C=Xe([p,...(y==null?void 0:y.declarations)||et],U=>Vn(U,Vre)),O=C&&pR(C);O&&({symbol:y,failedAliasResolution:T}=bQ(O,m,o),A=O)}if(!y&&i5(A)){const C=(s=e.getResolvedModuleFromModuleSpecifier(A))==null?void 0:s.resolvedModule;if(C)return[{name:A.text,fileName:C.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:vu(0,0),failedAliasResolution:T,isAmbient:Su(C.resolvedFileName),unverified:A!==p}]}if(!y)return So(u,art(p,m));if(i&&Jn(y.declarations,C=>C.getSourceFile().fileName===t.fileName))return;const R=prt(m,p);if(R&&!(ld(p.parent)&&frt(R))){const C=Sz(m,R,T);if(m.getRootSymbols(y).some(O=>Znt(O,R)))return[C];{const O=bM(m,y,p,T,R)||et;return p.kind===108?[C,...O]:[...O,C]}}if(p.parent.kind===304){const C=m.getShorthandAssignmentValueSymbol(y.valueDeclaration),O=C!=null&&C.declarations?C.declarations.map(U=>YO(U,m,C,p,!1,T)):et;return So(O,uke(m,p))}if(oc(p)&&$a(h)&&im(h.parent)&&p===(h.propertyName||h.name)){const C=uO(p),O=m.getTypeAtLocation(h.parent);return C===void 0?et:Do(O.isUnion()?O.types:[O],U=>{const K=U.getProperty(C);return K&&bM(m,K,p)})}const M=uke(m,p);return So(u,M.length?M:bM(m,y,p,T))}function Znt(e,t){var r;return e===t.symbol||e===t.symbol.parent||Pc(t.parent)||!NE(t.parent)&&e===((r=ri(t.parent,T_))==null?void 0:r.symbol)}function uke(e,t){const r=FO(t);if(r){const i=r&&e.getContextualType(r.parent);if(i)return Do(ez(r,e,i,!1),o=>bM(e,o,t))}return et}function ert(e,t){const r=Vn(t,Yc);if(!(r&&r.name))return;const i=Vn(r,di);if(!i)return;const o=I_(i);if(!o)return;const s=hs(o.expression),l=Qc(s)?s.symbol:e.getSymbolAtLocation(s);if(!l)return;const u=Vi(nR(r.name)),p=mc(r)?e.getPropertyOfType(e.getTypeOfSymbol(l),u):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(l),u);if(p)return bM(e,p,t)}function dke(e,t,r){var i,o;const s=EM(e.referencedFiles,t);if(s){const p=r.getSourceFileFromReference(e,s);return p&&{reference:s,fileName:p.fileName,file:p,unverified:!1}}const l=EM(e.typeReferenceDirectives,t);if(l){const p=(i=r.getResolvedTypeReferenceDirectives().get(l.fileName,l.resolutionMode||e.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective,h=p&&r.getSourceFile(p.resolvedFileName);return h&&{reference:l,fileName:h.fileName,file:h,unverified:!1}}const u=EM(e.libReferenceDirectives,t);if(u){const p=r.getLibFileFromReference(u);return p&&{reference:u,fileName:p.fileName,file:p,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){const p=bD(e,t);let h;if(i5(p)&&Xc(p.text)&&(h=r.getResolvedModuleFromModuleSpecifier(p))){const m=(o=h.resolvedModule)==null?void 0:o.resolvedFileName,y=m||Iy(ai(e.fileName),p.text);return{file:r.getSourceFile(y),fileName:y,reference:{pos:p.getStart(),end:p.getEnd(),fileName:p.text},unverified:!m}}}}function trt(e,t){const r=t.symbol.name;if(!Zme.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.target.symbol}function pke(e,t){if(!t.aliasSymbol)return!1;const r=t.aliasSymbol.name;if(!Zme.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function nrt(e,t,r,i){var o,s;if(Wr(t)&4&&trt(e,t))return XO(e.getTypeArguments(t)[0],e,r,i);if(pke(e,t)&&t.aliasTypeArguments)return XO(t.aliasTypeArguments[0],e,r,i);if(Wr(t)&32&&t.target&&pke(e,t.target)){const l=(s=(o=t.aliasSymbol)==null?void 0:o.declarations)==null?void 0:s[0];if(l&&xm(l)&&Df(l.type)&&l.type.typeArguments)return XO(e.getTypeAtLocation(l.type.typeArguments[0]),e,r,i)}return[]}function rrt(e,t,r){const i=Vd(t,r);if(i===t)return;if(oR(i.parent)&&i.parent.name===i)return XO(e.getTypeAtLocation(i.parent),e,i.parent,!1);const{symbol:o,failedAliasResolution:s}=bQ(i,e,!1);if(!o)return;const l=e.getTypeOfSymbolAtLocation(o,i),u=irt(o,l,e),p=u&&XO(u,e,i,s),[h,m]=p&&p.length!==0?[u,p]:[l,XO(l,e,i,s)];return m.length?[...nrt(e,h,i,s),...m]:!(o.flags&111551)&&o.flags&788968?bM(e,bu(o,e),i,s):void 0}function XO(e,t,r,i){return Do(e.isUnion()&&!(e.flags&32)?e.types:[e],o=>o.symbol&&bM(t,o.symbol,r,i))}function irt(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&Oi(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature(Ua(i))}}function ort(e,t,r){const i=cke(e,t,r);if(!i||i.length===0)return;const o=EM(t.referencedFiles,r)||EM(t.typeReferenceDirectives,r)||EM(t.libReferenceDirectives,r);if(o)return{definitions:i,textSpan:tb(o)};const s=Vd(t,r),l=vu(s.getStart(),s.getWidth());return{definitions:i,textSpan:l}}function art(e,t){return eo(t.getIndexInfosAtLocation(e),r=>r.declaration&&Sz(t,r.declaration))}function bQ(e,t,r){const i=t.getSymbolAtLocation(e);let o=!1;if(i!=null&&i.declarations&&i.flags&2097152&&!r&&srt(e,i.declarations[0])){const s=t.getAliasedSymbol(i);if(s.declarations)return{symbol:s};o=!0}return{symbol:i,failedAliasResolution:o}}function srt(e,t){return e.kind!==80?!1:e.parent===t?!0:t.kind!==274}function lrt(e){if(!AC(e))return!1;const t=Vn(e,r=>Pc(r)?!0:AC(r)?!1:"quit");return!!t&&zl(t)===5}function bM(e,t,r,i,o){const s=mn(t.declarations,y=>y!==o),l=mn(s,y=>!lrt(y)),u=bt(l)?l:s;return p()||h()||Wt(u,y=>YO(y,e,t,r,!1,i));function p(){if(t.flags&32&&!(t.flags&19)&&(eM(r)||r.kind===137)){const y=In(s,di)||N.fail("Expected declaration to have at least one class-like declaration");return m(y.members,!0)}}function h(){return AK(r)||PK(r)?m(s,!1):void 0}function m(y,T){if(!y)return;const A=y.filter(T?Ml:ea),R=A.filter(M=>!!M.body);return A.length?R.length!==0?R.map(M=>YO(M,e,t,r)):[YO(Xa(A),e,t,r,!1,i)]:void 0}}function YO(e,t,r,i,o,s){const l=t.symbolToString(r),u=Qv.getSymbolKind(t,r,i),p=r.parent?t.symbolToString(r.parent,i):"";return $me(t,e,u,l,p,o,s)}function $me(e,t,r,i,o,s,l,u){const p=t.getSourceFile();if(!u){const h=Lo(t)||t;u=Dd(h,p)}return{fileName:p.fileName,textSpan:u,kind:r,name:i,containerKind:void 0,containerName:o,...Ws.toContextSpan(u,p,Ws.getContextNode(t)),isLocal:!Qme(e,t),isAmbient:!!(t.flags&33554432),unverified:s,failedAliasResolution:l}}function crt(e,t){const r=Ws.getContextNode(e),i=Dd(jme(r)?r.start:r,t);return{fileName:t.fileName,textSpan:i,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...Ws.toContextSpan(i,t,r),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function Qme(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Ly(t.parent)&&t.parent.initializer===t)return Qme(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 Qme(e,t.parent);default:return!1}}function Sz(e,t,r){return YO(t,e,t.symbol,t,!1,r)}function EM(e,t){return In(e,r=>eL(r,t))}function urt(e,t,r){return{fileName:t,textSpan:pc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function drt(e){const t=Vn(e,i=>!vD(i)),r=t==null?void 0:t.parent;return r&&NE(r)&&J4(r)===t?r:void 0}function prt(e,t){const r=drt(t),i=r&&e.getResolvedSignature(r);return ri(i&&i.declaration,o=>ea(o)&&!bh(o))}function frt(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}var Zme,mrt=I({"src/services/goToDefinition.ts"(){si(),Yme(),Zme=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),FD={};ee(FD,{createDefinitionInfo:()=>YO,findReferenceInPosition:()=>EM,getDefinitionAndBoundSpan:()=>ort,getDefinitionAtPosition:()=>cke,getReferenceAtPosition:()=>dke,getTypeDefinitionAtPosition:()=>rrt});var _rt=I({"src/services/_namespaces/ts.GoToDefinition.ts"(){mrt()}});function hrt(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function grt(e){return e.includeInlayParameterNameHints==="literals"}function fke(e){return e.interactiveInlayHints===!0}function vrt(e){const{file:t,program:r,span:i,cancellationToken:o,preferences:s}=e,l=t.text,u=r.getCompilerOptions(),p=lf(t,s),h=r.getTypeChecker(),m=[];return y(t),m;function y(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:o.throwIfCancellationRequested()}if(a4(i,de.pos,de.getFullWidth())&&!(ji(de)&&!Vv(de)))return s.includeInlayVariableTypeHints&&Oi(de)||s.includeInlayPropertyDeclarationTypeHints&&qo(de)?U(de):s.includeInlayEnumMemberValueHints&&i1(de)?C(de):hrt(s)&&(sa(de)||$E(de))?K(de):(s.includeInlayFunctionParameterTypeHints&&Bs(de)&&q3(de)&&he(de),s.includeInlayFunctionLikeReturnTypeHints&&T(de)&&G(de)),Uo(de,y)}}function T(de){return Gs(de)||Os(de)||Tc(de)||Hl(de)||tf(de)}function A(de,ie,ve,Le){let Ue=`${Le?"...":""}${de}`,Ee;fke(s)?(Ee=[Ce(Ue,ie),{text:":"}],Ue=""):Ue+=":",m.push({text:Ue,position:ve,kind:"Parameter",whitespaceAfter:!0,displayParts:Ee})}function R(de,ie){m.push({text:typeof de=="string"?`: ${de}`:"",displayParts:typeof de=="string"?void 0:[{text:": "},...de],position:ie,kind:"Type",whitespaceBefore:!0})}function M(de,ie){m.push({text:`= ${de}`,position:ie,kind:"Enum",whitespaceBefore:!0})}function C(de){if(de.initializer)return;const ie=h.getConstantValue(de);ie!==void 0&&M(ie.toString(),de.end)}function O(de){return de.symbol&&de.symbol.flags&1536}function U(de){if(!de.initializer||ta(de.name)||Oi(de)&&!pe(de)||yu(de))return;const ve=h.getTypeAtLocation(de);if(O(ve))return;const Le=X(ve);if(Le){const Ue=typeof Le=="string"?Le:Le.map(De=>De.text).join("");if(s.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&$b(de.name.getText(),Ue))return;R(Le,de.name.end)}}function K(de){const ie=de.arguments;if(!ie||!ie.length)return;const ve=[],Le=h.getResolvedSignatureForSignatureHelp(de,ve);if(!Le||!ve.length)return;let Ue=0;for(const Ee of ie){const De=hs(Ee);if(grt(s)&&!se(De)){Ue++;continue}let Me=0;if($m(De)){const At=h.getTypeAtLocation(De.expression);if(h.isTupleType(At)){const{elementFlags:Se,fixedLength:je}=At.target;if(je===0)continue;const ot=mi(Se,vt=>!(vt&1));(ot<0?je:ot)>0&&(Me=ot<0?je:ot)}}const We=h.getParameterIdentifierInfoAtPosition(Le,Ue);if(Ue=Ue+(Me||1),We){const{parameter:At,parameterName:Se,isRestParameter:je}=We;if(!(s.includeInlayParameterNameHintsWhenArgumentMatchesName||!Q(De,Se))&&!je)continue;const Bt=Vi(Se);if(V(De,Bt))continue;A(Bt,At,Ee.getStart(),je)}}}function Q(de,ie){return Ve(de)?de.text===ie:Fr(de)?de.name.text===ie:!1}function V(de,ie){if(!Zp(ie,u.target,pk(t.scriptKind)))return!1;const ve=qh(l,de.pos);if(!(ve!=null&&ve.length))return!1;const Le=mke(ie);return bt(ve,Ue=>Le.test(l.substring(Ue.pos,Ue.end)))}function se(de){switch(de.kind){case 224:{const ie=de.operand;return DE(ie)||Ve(ie)&&tP(ie.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const ie=de.escapedText;return oe(ie)||tP(ie)}}return DE(de)}function G(de){if(Gs(de)&&!vs(de,21,t)||em(de)||!de.body)return;const ve=h.getSignatureFromDeclaration(de);if(!ve)return;const Le=h.getReturnTypeOfSignature(ve);if(O(Le))return;const Ue=X(Le);Ue&&R(Ue,ne(de))}function ne(de){const ie=vs(de,22,t);return ie?ie.end:de.parameters.end}function he(de){const ie=h.getSignatureFromDeclaration(de);if(ie)for(let ve=0;ve<de.parameters.length&&ve<ie.parameters.length;++ve){const Le=de.parameters[ve];if(!pe(Le)||yu(Le))continue;const Ee=ye(ie.parameters[ve]);Ee&&R(Ee,Le.questionToken?Le.questionToken.end:Le.name.end)}}function ye(de){const ie=de.valueDeclaration;if(!ie||!Ao(ie))return;const ve=h.getTypeOfSymbolAtLocation(de,ie);if(!O(ve))return X(ve)}function Y(de){const ve=d1();return hC(Le=>{const Ue=h.typeToTypeNode(de,void 0,71286784);N.assertIsDefined(Ue,"should always get typenode"),ve.writeNode(4,Ue,t,Le)})}function X(de){if(!fke(s))return Y(de);const ve=h.typeToTypeNode(de,void 0,71286784);N.assertIsDefined(ve,"should always get typenode");const Le=[];return Ue(ve),Le;function Ue(We){var At,Se;if(!We)return;const je=pa(We.kind);if(je){Le.push({text:je});return}if(DE(We)){Le.push({text:Me(We)});return}switch(We.kind){case 80:N.assertNode(We,Ve);const ot=Er(We),Bt=We.symbol&&We.symbol.declarations&&We.symbol.declarations.length&&Lo(We.symbol.declarations[0]);Bt?Le.push(Ce(ot,Bt)):Le.push({text:ot});break;case 166:N.assertNode(We,Id),Ue(We.left),Le.push({text:"."}),Ue(We.right);break;case 182:N.assertNode(We,Gk),We.assertsModifier&&Le.push({text:"asserts "}),Ue(We.parameterName),We.type&&(Le.push({text:" is "}),Ue(We.type));break;case 183:N.assertNode(We,Df),Ue(We.typeName),We.typeArguments&&(Le.push({text:"<"}),De(We.typeArguments,", "),Le.push({text:">"}));break;case 168:N.assertNode(We,hl),We.modifiers&&De(We.modifiers," "),Ue(We.name),We.constraint&&(Le.push({text:" extends "}),Ue(We.constraint)),We.default&&(Le.push({text:" = "}),Ue(We.default));break;case 169:N.assertNode(We,Ao),We.modifiers&&De(We.modifiers," "),We.dotDotDotToken&&Le.push({text:"..."}),Ue(We.name),We.questionToken&&Le.push({text:"?"}),We.type&&(Le.push({text:": "}),Ue(We.type));break;case 185:N.assertNode(We,zR),Le.push({text:"new "}),Ee(We),Le.push({text:" => "}),Ue(We.type);break;case 186:N.assertNode(We,eI),Le.push({text:"typeof "}),Ue(We.exprName),We.typeArguments&&(Le.push({text:"<"}),De(We.typeArguments,", "),Le.push({text:">"}));break;case 187:N.assertNode(We,yp),Le.push({text:"{"}),We.members.length&&(Le.push({text:" "}),De(We.members,"; "),Le.push({text:" "})),Le.push({text:"}"});break;case 188:N.assertNode(We,Vk),Ue(We.elementType),Le.push({text:"[]"});break;case 189:N.assertNode(We,tI),Le.push({text:"["}),De(We.elements,", "),Le.push({text:"]"});break;case 202:N.assertNode(We,BR),We.dotDotDotToken&&Le.push({text:"..."}),Ue(We.name),We.questionToken&&Le.push({text:"?"}),Le.push({text:": "}),Ue(We.type);break;case 190:N.assertNode(We,jW),Ue(We.type),Le.push({text:"?"});break;case 191:N.assertNode(We,UW),Le.push({text:"..."}),Ue(We.type);break;case 192:N.assertNode(We,qy),De(We.types," | ");break;case 193:N.assertNode(We,nI),De(We.types," & ");break;case 194:N.assertNode(We,rI),Ue(We.checkType),Le.push({text:" extends "}),Ue(We.extendsType),Le.push({text:" ? "}),Ue(We.trueType),Le.push({text:" : "}),Ue(We.falseType);break;case 195:N.assertNode(We,kS),Le.push({text:"infer "}),Ue(We.typeParameter);break;case 196:N.assertNode(We,wS),Le.push({text:"("}),Ue(We.type),Le.push({text:")"});break;case 198:N.assertNode(We,OS),Le.push({text:`${pa(We.operator)} `}),Ue(We.type);break;case 199:N.assertNode(We,WS),Ue(We.objectType),Le.push({text:"["}),Ue(We.indexType),Le.push({text:"]"});break;case 200:N.assertNode(We,GR),Le.push({text:"{ "}),We.readonlyToken&&(We.readonlyToken.kind===40?Le.push({text:"+"}):We.readonlyToken.kind===41&&Le.push({text:"-"}),Le.push({text:"readonly "})),Le.push({text:"["}),Ue(We.typeParameter),We.nameType&&(Le.push({text:" as "}),Ue(We.nameType)),Le.push({text:"]"}),We.questionToken&&(We.questionToken.kind===40?Le.push({text:"+"}):We.questionToken.kind===41&&Le.push({text:"-"}),Le.push({text:"?"})),Le.push({text:": "}),We.type&&Ue(We.type),Le.push({text:"; }"});break;case 201:N.assertNode(We,Jy),Ue(We.literal);break;case 184:N.assertNode(We,bh),Ee(We),Le.push({text:" => "}),Ue(We.type);break;case 205:N.assertNode(We,ag),We.isTypeOf&&Le.push({text:"typeof "}),Le.push({text:"import("}),Ue(We.argument),We.assertions&&(Le.push({text:", { assert: "}),De(We.assertions.assertClause.elements,", "),Le.push({text:" }"})),Le.push({text:")"}),We.qualifier&&(Le.push({text:"."}),Ue(We.qualifier)),We.typeArguments&&(Le.push({text:"<"}),De(We.typeArguments,", "),Le.push({text:">"}));break;case 171:N.assertNode(We,gp),(At=We.modifiers)!=null&&At.length&&(De(We.modifiers," "),Le.push({text:" "})),Ue(We.name),We.questionToken&&Le.push({text:"?"}),We.type&&(Le.push({text:": "}),Ue(We.type));break;case 181:N.assertNode(We,XE),Le.push({text:"["}),De(We.parameters,", "),Le.push({text:"]"}),We.type&&(Le.push({text:": "}),Ue(We.type));break;case 173:N.assertNode(We,yh),(Se=We.modifiers)!=null&&Se.length&&(De(We.modifiers," "),Le.push({text:" "})),Ue(We.name),We.questionToken&&Le.push({text:"?"}),Ee(We),We.type&&(Le.push({text:": "}),Ue(We.type));break;case 179:N.assertNode(We,ZA),Ee(We),We.type&&(Le.push({text:": "}),Ue(We.type));break;case 207:N.assertNode(We,YE),Le.push({text:"["}),De(We.elements,", "),Le.push({text:"]"});break;case 206:N.assertNode(We,im),Le.push({text:"{"}),We.elements.length&&(Le.push({text:" "}),De(We.elements,", "),Le.push({text:" "})),Le.push({text:"}"});break;case 208:N.assertNode(We,$a),Ue(We.name);break;case 224:N.assertNode(We,Xy),Le.push({text:pa(We.operator)}),Ue(We.operand);break;case 203:N.assertNode(We,uae),Ue(We.head),We.templateSpans.forEach(Ue);break;case 16:N.assertNode(We,YA),Le.push({text:Me(We)});break;case 204:N.assertNode(We,aH),Ue(We.type),Ue(We.literal);break;case 17:N.assertNode(We,nH),Le.push({text:Me(We)});break;case 18:N.assertNode(We,zW),Le.push({text:Me(We)});break;case 197:N.assertNode(We,jk),Le.push({text:"this"});break;default:N.failBadSyntaxKind(We)}}function Ee(We){We.typeParameters&&(Le.push({text:"<"}),De(We.typeParameters,", "),Le.push({text:">"})),Le.push({text:"("}),De(We.parameters,", "),Le.push({text:")"})}function De(We,At){We.forEach((Se,je)=>{je>0&&Le.push({text:At}),Ue(Se)})}function Me(We){switch(We.kind){case 11:return p===0?`'${tg(We.text,39)}'`:`"${tg(We.text,34)}"`;case 16:case 17:case 18:{const At=We.rawText??zj(tg(We.text,96));switch(We.kind){case 16:return"`"+At+"${";case 17:return"}"+At+"${";case 18:return"}"+At+"`"}}}return We.text}}function oe(de){return de==="undefined"}function pe(de){if((zE(de)||Oi(de)&&iR(de))&&de.initializer){const ie=hs(de.initializer);return!(se(ie)||$E(ie)||La(ie)||mS(ie))}return!0}function Ce(de,ie){const ve=ie.getSourceFile();return{text:de,span:Dd(ie,ve),file:ve.fileName}}}var mke,yrt=I({"src/services/inlayHints.ts"(){si(),mke=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),EQ={};ee(EQ,{provideInlayHints:()=>vrt});var brt=I({"src/services/_namespaces/ts.InlayHints.ts"(){yrt()}});function Ert(e,t){const r=[];return eX(e,i=>{for(const o of Trt(i)){const s=Zm(o)&&o.tags&&In(o.tags,u=>u.kind===334&&(u.tagName.escapedText==="inheritDoc"||u.tagName.escapedText==="inheritdoc"));if(o.comment===void 0&&!s||Zm(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?zD(o.comment,t):[];s&&s.comment&&(l=l.concat(zD(s.comment,t))),Or(r,l,Srt)||r.push(l)}}),Cs(io(r,[AD()]))}function Srt(e,t){return Ba(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function Trt(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];case 330:if(JR(e.parent))return[e.parent.parent];default:return Tj(e)}}function Art(e,t){const r=[];return eX(e,i=>{const o=a0(i);if(!(o.some(s=>s.kind===353||s.kind===345)&&!o.some(s=>s.kind===348||s.kind===349)))for(const s of o)r.push({name:s.tagName.text,text:gke(s,t)}),r.push(..._ke(hke(s),t))}),r}function _ke(e,t){return Do(e,r=>So([{name:r.tagName.text,text:gke(r,t)}],_ke(hke(r),t)))}function hke(e){return uC(e)&&e.isNameFirst&&e.typeExpression&&jS(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function zD(e,t){return typeof e=="string"?[cf(e)]:Do(e,r=>r.kind===328?[cf(r.text)]:Sue(r,t))}function gke(e,t){const{comment:r,kind:i}=e,o=Irt(i);switch(i){case 356:const u=e.typeExpression;return u?s(u):r===void 0?void 0:zD(r,t);case 336:return s(e.class);case 335:return s(e.class);case 352:const p=e,h=[];if(p.constraint&&h.push(cf(p.constraint.getText())),Ne(p.typeParameters)){Ne(h)&&h.push(wl());const y=p.typeParameters[p.typeParameters.length-1];Xe(p.typeParameters,T=>{h.push(o(T.getText())),y!==T&&h.push($u(28),wl())})}return r&&h.push(wl(),...zD(r,t)),h;case 351:case 357:return s(e.typeExpression);case 353:case 345:case 355:case 348:case 354:const{name:m}=e;return m?s(m):r===void 0?void 0:zD(r,t);default:return r===void 0?void 0:zD(r,t)}function s(u){return l(u.getText())}function l(u){return r?u.match(/^https?$/)?[cf(u),...zD(r,t)]:[o(u),wl(),...zD(r,t)]:[cf(u)]}}function Irt(e){switch(e){case 348:return gue;case 355:return vue;case 352:return bue;case 353:case 345:return yue;default:return cf}}function xrt(){return yke||(yke=Wt(t_e,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:LI.SortText.LocationPriority})))}function Rrt(){return bke||(bke=Wt(t_e,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:LI.SortText.LocationPriority})))}function vke(e){return{name:e,kind:"",kindModifiers:"",displayParts:[cf(e)],documentation:et,tags:void 0,codeActions:void 0}}function Drt(e){if(!Ve(e.name))return et;const t=e.name.text,r=e.parent,i=r.parent;return ea(i)?eo(i.parameters,o=>{if(!Ve(o.name))return;const s=o.name.text;if(!(r.tags.some(l=>l!==e&&e_(l)&&Ve(l.name)&&l.name.escapedText===s)||t!==void 0&&!uo(s,t)))return{name:s,kind:"parameter",kindModifiers:"",sortText:LI.SortText.LocationPriority}}):[]}function Nrt(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[cf(e)],documentation:et,tags:void 0,codeActions:void 0}}function Crt(e,t,r,i){const o=po(t,r),s=Vn(o,Zm);if(s&&(s.comment!==void 0||Ne(s.tags)))return;const l=o.getStart(t);if(!s&&l<r)return;const u=krt(o,i);if(!u)return;const{commentOwner:p,parameters:h,hasReturn:m}=u,y=Wp(p)&&p.jsDoc?p.jsDoc:void 0,T=el(y);if(p.getStart(t)<r||T&&s&&T!==s)return;const A=Prt(t,r),R=UE(t.fileName),M=(h?Mrt(h||[],R,A,e):"")+(m?Lrt(A,e):""),C="/**",O=" */",U=Ne(a0(p))>0;if(M&&!U){const K=C+e+A+" * ",Q=l===r?e+A:"";return{newText:K+e+M+A+O+Q,caretOffset:K.length}}return{newText:C+O,caretOffset:3}}function Prt(e,t){const{text:r}=e,i=am(t,e);let o=i;for(;o<=t&&E_(r.charCodeAt(o));o++);return r.slice(i,o)}function Mrt(e,t,r,i){return e.map(({name:o,dotDotDotToken:s},l)=>{const u=o.kind===80?o.text:"param"+l;return`${r} * @param ${t?s?"{...any} ":"{any} ":""}${u}${i}`}).join("")}function Lrt(e,t){return`${e} * @returns${t}`}function krt(e,t){return Pre(e,r=>e_e(r,t))}function e_e(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:const r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:Tz(r,t)};case 303:return e_e(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{const o=e;return o.type&&bh(o.type)?{commentOwner:e,parameters:o.type.parameters,hasReturn:Tz(o.type,t)}:{commentOwner:e}}case 243:{const s=e.declarationList.declarations,l=s.length===1&&s[0].initializer?wrt(s[0].initializer):void 0;return l?{commentOwner:e,parameters:l.parameters,hasReturn:Tz(l,t)}:{commentOwner:e}}case 312:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return e_e(e.expression,t);case 226:{const o=e;return zl(o)===0?"quit":ea(o.right)?{commentOwner:e,parameters:o.right.parameters,hasReturn:Tz(o.right,t)}:{commentOwner:e}}case 172:const i=e.initializer;if(i&&(Os(i)||Gs(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:Tz(i,t)}}}function Tz(e,t){return!!(t!=null&&t.generateReturnInDocTemplate)&&(bh(e)||Gs(e)&&yt(e.body)||Bs(e)&&e.body&&Ko(e.body)&&!!LE(e.body,r=>r))}function wrt(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return In(e.members,Ml)}}var t_e,yke,bke,Eke,Ort=I({"src/services/jsDoc.ts"(){si(),t_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"],Eke=vke}}),k0={};ee(k0,{getDocCommentTemplateAtPosition:()=>Crt,getJSDocParameterNameCompletionDetails:()=>Nrt,getJSDocParameterNameCompletions:()=>Drt,getJSDocTagCompletionDetails:()=>vke,getJSDocTagCompletions:()=>Rrt,getJSDocTagNameCompletionDetails:()=>Eke,getJSDocTagNameCompletions:()=>xrt,getJsDocCommentsFromDeclarations:()=>Ert,getJsDocTagsFromDeclarations:()=>Art});var Wrt=I({"src/services/_namespaces/ts.JsDoc.ts"(){Ort()}});function Frt(e,t,r,i,o,s){const l=_r.ChangeTracker.fromContext({host:r,formatContext:t,preferences:o}),u=s==="SortAndCombine"||s==="All",p=u,h=s==="RemoveUnused"||s==="All",m=SQ(e,e.statements.filter(Mc)),y=tit(o,u?()=>Ake(m,o)===2:void 0),T=R=>(h&&(R=Brt(R,e,i)),p&&(R=Ske(R,y,e,o)),u&&(R=Sv(R,(M,C)=>a_e(M,C,y))),R);m.forEach(R=>A(R,T)),s!=="RemoveUnused"&&nit(e).forEach(R=>A(R,M=>n_e(M,y,o)));for(const R of e.statements.filter(ku)){if(!R.body)continue;if(SQ(e,R.body.statements.filter(Mc)).forEach(C=>A(C,T)),s!=="RemoveUnused"){const C=R.body.statements.filter(Yl);A(C,O=>n_e(O,y,o))}}return l.getChanges();function A(R,M){if(Ne(R)===0)return;pr(R[0],1024);const C=p?JN(R,K=>Az(K.moduleSpecifier)):[R],O=u?Sv(C,(K,Q)=>i_e(K[0].moduleSpecifier,Q[0].moduleSpecifier,y)):C,U=Do(O,K=>Az(K[0].moduleSpecifier)||K[0].moduleSpecifier===void 0?M(K):K);if(U.length===0)l.deleteNodes(e,R,{leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.Include},!0);else{const K={leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.Include,suffix:Xv(r,t.options)};l.replaceNodeWithNodes(e,R[0],U,K);const Q=l.nodeHasTrailingComment(e,R[0],K);l.deleteNodes(e,R.slice(1),{trailingTriviaOption:_r.TrailingTriviaOption.Include},Q)}}}function SQ(e,t){const r=Nv(e.languageVersion,!1,e.languageVariant),i=[];let o=0;for(const s of t)i[o]&&zrt(e,s,r)&&o++,i[o]||(i[o]=[]),i[o].push(s);return i}function zrt(e,t,r){const i=t.getFullStart(),o=t.getStart();r.setText(e.text,i,o-i);let s=0;for(;r.getTokenStart()<o;)if(r.scan()===4&&(s++,s>=2))return!0;return!1}function Brt(e,t,r){const i=r.getTypeChecker(),o=r.getCompilerOptions(),s=i.getJsxNamespace(t),l=i.getJsxFragmentFactory(t),u=!!(t.transformFlags&2),p=[];for(const m of e){const{importClause:y,moduleSpecifier:T}=m;if(!y){p.push(m);continue}let{name:A,namedBindings:R}=y;if(A&&!h(A)&&(A=void 0),R)if(Yy(R))h(R.name)||(R=void 0);else{const M=R.elements.filter(C=>h(C.name));M.length<R.elements.length&&(R=M.length?w.updateNamedImports(R,M):void 0)}A||R?p.push($O(m,A,R)):Grt(t,T)&&(t.isDeclarationFile?p.push(w.createImportDeclaration(m.modifiers,void 0,T,void 0)):p.push(m))}return p;function h(m){return u&&(m.text===s||l&&m.text===l)&&bX(o.jsx)||Ws.Core.isSymbolReferencedInFile(m,i,t)}}function Grt(e,t){const r=Na(t)&&t.text;return Mo(r)&&bt(e.moduleAugmentations,i=>Na(i)&&i.text===r)}function Az(e){return e!==void 0&&ls(e)?e.text:void 0}function Vrt(e,t,r,i){const o=TQ(t);return Ske(e,o,r,i)}function Ske(e,t,r,i){if(e.length===0)return e;const o=T6(e,l=>{if(l.attributes){let u=l.attributes.token+" ";for(const p of iS(l.attributes.elements,(h,m)=>Uu(h.name.text,m.name.text)))u+=p.name.text+":",u+=ls(p.value)?`"${p.value.text}"`:p.value.getText()+" ";return u}return""}),s=[];for(const l in o){const u=o[l],{importWithoutClause:p,typeOnlyImports:h,regularImports:m}=jrt(u);p&&s.push(p);for(const y of[m,h]){const T=y===h,{defaultImports:A,namespaceImports:R,namedImports:M}=y;if(!T&&A.length===1&&R.length===1&&M.length===0){const ne=A[0];s.push($O(ne,ne.importClause.name,R[0].importClause.namedBindings));continue}const C=Sv(R,(ne,he)=>t(ne.importClause.namedBindings.name.text,he.importClause.namedBindings.name.text));for(const ne of C)s.push($O(ne,void 0,ne.importClause.namedBindings));const O=Kc(A),U=Kc(M),K=O??U;if(!K)continue;let Q;const V=[];if(A.length===1)Q=A[0].importClause.name;else for(const ne of A)V.push(w.createImportSpecifier(!1,w.createIdentifier("default"),ne.importClause.name));V.push(...$rt(M));const se=w.createNodeArray(Tke(V,t,i),U==null?void 0:U.importClause.namedBindings.elements.hasTrailingComma),G=se.length===0?Q?void 0:w.createNamedImports(et):U?w.updateNamedImports(U.importClause.namedBindings,se):w.createNamedImports(se);r&&G&&(U!=null&&U.importClause.namedBindings)&&!CS(U.importClause.namedBindings,r)&&pr(G,2),T&&Q&&G?(s.push($O(K,Q,void 0)),s.push($O(U??K,void 0,G))):s.push($O(K,Q,G))}}return s}function jrt(e){let t;const r={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(const o of e){if(o.importClause===void 0){t=t||o;continue}const s=o.importClause.isTypeOnly?r:i,{name:l,namedBindings:u}=o.importClause;l&&s.defaultImports.push(o),u&&(Yy(u)?s.namespaceImports.push(o):s.namedImports.push(o))}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}function Urt(e,t,r){const i=TQ(t);return n_e(e,i,r)}function n_e(e,t,r){if(e.length===0)return e;const{exportWithoutClause:i,namedExports:o,typeOnlyExports:s}=u(e),l=[];i&&l.push(i);for(const p of[o,s]){if(p.length===0)continue;const h=[];h.push(...Do(p,T=>T.exportClause&&Nf(T.exportClause)?T.exportClause.elements:et));const m=Tke(h,t,r),y=p[0];l.push(w.updateExportDeclaration(y,y.modifiers,y.isTypeOnly,y.exportClause&&(Nf(y.exportClause)?w.updateNamedExports(y.exportClause,m):w.updateNamespaceExport(y.exportClause,y.exportClause.name)),y.moduleSpecifier,y.attributes))}return l;function u(p){let h;const m=[],y=[];for(const T of p)T.exportClause===void 0?h=h||T:T.isTypeOnly?y.push(T):m.push(T);return{exportWithoutClause:h,namedExports:m,typeOnlyExports:y}}}function $O(e,t,r){return w.updateImportDeclaration(e,e.modifiers,w.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.attributes)}function Tke(e,t,r){return Sv(e,(i,o)=>r_e(i,o,t,r))}function r_e(e,t,r,i){switch(i==null?void 0:i.organizeImportsTypeOrder){case"first":return Ey(t.isTypeOnly,e.isTypeOnly)||r(e.name.text,t.name.text);case"inline":return r(e.name.text,t.name.text);default:return Ey(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}}function Hrt(e,t,r){const i=TQ(!!r);return i_e(e,t,i)}function i_e(e,t,r){const i=e===void 0?void 0:Az(e),o=t===void 0?void 0:Az(t);return Ey(i===void 0,o===void 0)||Ey(Xc(i),Xc(o))||r(i,o)}function o_e(e){var t;switch(e.kind){case 271:return(t=ri(e.moduleReference,Th))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function qrt(e,t){return Ake(SQ(e,e.statements.filter(Mc)),t)}function Ake(e,t){const r=BD(t,!1),i=BD(t,!0);let o=3,s=!1;for(const l of e){if(l.length>1){const p=qN(l,h=>{var m;return((m=ri(h.moduleSpecifier,Na))==null?void 0:m.text)??""},r,i);if(p&&(o&=p,s=!0),!o)return o}const u=In(l,p=>{var h,m;return((m=ri((h=p.importClause)==null?void 0:h.namedBindings,Bg))==null?void 0:m.elements.length)>1});if(u){const p=s_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 Jrt(e,t){const r=BD(t,!1),i=BD(t,!0);return qN(e,o=>Az(o_e(o))||"",r,i)}function Krt(e,t,r){const i=Tv(e,t,tl,(o,s)=>a_e(o,s,r));return i<0?~i:i}function Xrt(e,t,r,i){const o=Tv(e,t,tl,(s,l)=>r_e(s,l,r,i));return o<0?~o:o}function a_e(e,t,r){return i_e(o_e(e),o_e(t),r)||Yrt(e,t)}function Yrt(e,t){return nl(Ike(e),Ike(t))}function Ike(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 $rt(e){return Do(e,t=>Wt(Qrt(t),r=>r.name&&r.propertyName&&r.name.escapedText===r.propertyName.escapedText?w.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function Qrt(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&Bg(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function TQ(e){return e?nne:Uu}function Zrt(e,t){const r=eit(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 eit(e){let t=e.organizeImportsLocale;t==="auto"&&(t=rne()),t===void 0&&(t="en");const r=Intl.Collator.supportedLocalesOf(t);return r.length?r[0]:"en"}function BD(e,t){return(e.organizeImportsCollation??"ordinal")==="unicode"?Zrt(t,e):TQ(t)}function tit(e,t){const r=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:(t==null?void 0:t())??!1;return BD(e,r)}function nit(e){const t=[],r=e.statements,i=Ne(r);let o=0,s=0;for(;o<i;)if(Yl(r[o])){t[s]===void 0&&(t[s]=[]);const l=r[o];if(l.moduleSpecifier)t[s].push(l),o++;else{for(;o<i&&Yl(r[o]);)t[s].push(r[o++]);s++}}else o++;return Do(t,l=>SQ(e,l))}var xke,s_e,rit=I({"src/services/organizeImports.ts"(){si(),xke=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)}},s_e=tne((e,t)=>{switch(t.organizeImportsTypeOrder){case"first":if(!b6(e,(o,s)=>Ey(s.isTypeOnly,o.isTypeOnly)))return 0;break;case"inline":if(!b6(e,(o,s)=>Lx(!0)(o.name.text,s.name.text)))return 0;break;default:if(!b6(e,(o,s)=>Ey(o.isTypeOnly,s.isTypeOnly)))return 0;break}const r=BD(t,!1),i=BD(t,!0);if(t.organizeImportsTypeOrder!=="inline"){const{type:o,regular:s}=T6(e,p=>p.isTypeOnly?"type":"regular"),l=o!=null&&o.length?qN(o,p=>p.name.text,r,i):void 0,u=s!=null&&s.length?qN(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 qN(e,o=>o.name.text,r,i)},new xke)}}),Cm={};ee(Cm,{coalesceExports:()=>Urt,coalesceImports:()=>Vrt,compareImportOrExportSpecifiers:()=>r_e,compareImportsOrRequireStatements:()=>a_e,compareModuleSpecifiers:()=>Hrt,detectImportDeclarationSorting:()=>Jrt,detectImportSpecifierSorting:()=>s_e,detectSorting:()=>qrt,getImportDeclarationInsertionIndex:()=>Krt,getImportSpecifierInsertionIndex:()=>Xrt,getOrganizeImportsComparer:()=>BD,organizeImports:()=>Frt});var iit=I({"src/services/_namespaces/ts.OrganizeImports.ts"(){rit()}});function oit(e,t){const r=[];return ait(e,t,r),sit(e,r),r.sort((i,o)=>i.textSpan.start-o.textSpan.start)}function ait(e,t,r){let i=40,o=0;const s=[...e.statements,e.endOfFileToken],l=s.length;for(;o<l;){for(;o<l&&!gS(s[o]);)u(s[o]),o++;if(o===l)break;const p=o;for(;o<l&&gS(s[o]);)u(s[o]),o++;const h=o-1;h!==p&&r.push(Iz(vs(s[p],102,e).getStart(e),s[h].getEnd(),"imports"))}function u(p){var h;if(i===0)return;t.throwIfCancellationRequested(),(Ju(p)||Ll(p)||Im(p)||S_(p)||p.kind===1)&&Dke(p,e,t,r),ea(p)&&mr(p.parent)&&Fr(p.parent.left)&&Dke(p.parent.left,e,t,r),(Ko(p)||L_(p))&&l_e(p.statements.end,e,t,r),(di(p)||md(p))&&l_e(p.members.end,e,t,r);const m=lit(p,e);m&&r.push(m),i--,sa(p)?(i++,u(p.expression),i--,p.arguments.forEach(u),(h=p.typeArguments)==null||h.forEach(u)):FS(p)&&p.elseStatement&&FS(p.elseStatement)?(u(p.expression),u(p.thenStatement),i++,u(p.elseStatement),i--):p.forEachChild(u),i++}}function sit(e,t){const r=[],i=e.getLineStarts();for(const o of i){const s=e.getLineEndOfPosition(o),l=e.text.substring(o,s),u=Rke(l);if(!(!u||qv(e,o)))if(u[1]){const p=r.pop();p&&(p.textSpan.length=s-p.textSpan.start,p.hintSpan.length=s-p.textSpan.start,t.push(p))}else{const p=pc(e.text.indexOf("//",o),s);r.push(wI(p,"region",p,!1,u[2]||"#region"))}}}function Rke(e){return e=e.trimStart(),uo(e,"//")?(e=e.slice(2).trim(),Nke.exec(e)):null}function l_e(e,t,r,i){const o=qh(t.text,e);if(!o)return;let s=-1,l=-1,u=0;const p=t.getFullText();for(const{kind:m,pos:y,end:T}of o)switch(r.throwIfCancellationRequested(),m){case 2:const A=p.slice(y,T);if(Rke(A)){h(),u=0;break}u===0&&(s=y),l=T,u++;break;case 3:h(),i.push(Iz(y,T,"comment")),u=0;break;default:N.assertNever(m)}h();function h(){u>1&&i.push(Iz(s,l,"comment"))}}function Dke(e,t,r,i){KA(e)||l_e(e.pos,t,r,i)}function Iz(e,t,r){return wI(pc(e,t),r)}function lit(e,t){switch(e.kind){case 241:if(ea(e.parent))return cit(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:const A=e.parent;if(A.tryBlock===e)return m(e.parent);if(A.finallyBlock===e){const R=vs(A,98,t);if(R)return m(R)}default:return wI(Dd(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,!tI(e.parent),23);case 296:case 297:return y(e.statements);case 210:return h(e);case 209:return h(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,!$a(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(A){if(!A.elements.length)return;const R=vs(A,19,t),M=vs(A,20,t);if(!(!R||!M||If(R.pos,M.pos,t)))return AQ(R,M,A,t,!1,!1)}function i(A){if(!A.arguments.length)return;const R=vs(A,21,t),M=vs(A,22,t);if(!(!R||!M||If(R.pos,M.pos,t)))return AQ(R,M,A,t,!1,!0)}function o(A){if(Ko(A.body)||Gd(A.body)||If(A.body.getFullStart(),A.body.getEnd(),t))return;const R=pc(A.body.getFullStart(),A.body.getEnd());return wI(R,"code",Dd(A))}function s(A){const R=pc(A.openingElement.getStart(t),A.closingElement.getEnd()),M=A.openingElement.tagName.getText(t),C="<"+M+">...</"+M+">";return wI(R,"code",R,!1,C)}function l(A){const R=pc(A.openingFragment.getStart(t),A.closingFragment.getEnd());return wI(R,"code",R,!1,"<>...</>")}function u(A){if(A.properties.length!==0)return Iz(A.getStart(t),A.getEnd(),"code")}function p(A){if(!(A.kind===15&&A.text.length===0))return Iz(A.getStart(t),A.getEnd(),"code")}function h(A,R=19){return m(A,!1,!fd(A.parent)&&!sa(A.parent),R)}function m(A,R=!1,M=!0,C=19,O=C===19?20:24){const U=vs(e,C,t),K=vs(e,O,t);return U&&K&&AQ(U,K,A,t,R,M)}function y(A){return A.length?wI(tb(A),"code"):void 0}function T(A){if(If(A.getStart(),A.getEnd(),t))return;const R=pc(A.getStart(),A.getEnd());return wI(R,"code",Dd(A))}}function cit(e,t,r){const i=uit(e,t,r),o=vs(t,20,r);return i&&o&&AQ(i,o,e,r,e.kind!==219)}function AQ(e,t,r,i,o=!1,s=!0){const l=pc(s?e.getFullStart():e.getStart(i),t.getEnd());return wI(l,"code",Dd(r,i),o)}function wI(e,t,r=e,i=!1,o="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:o,autoCollapse:i}}function uit(e,t,r){if(Yie(e.parameters,r)){const i=vs(e,21,r);if(i)return i}return vs(t,19,r)}var Nke,dit=I({"src/services/outliningElementsCollector.ts"(){si(),Nke=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),IQ={};ee(IQ,{collectElements:()=>oit});var pit=I({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){dit()}});function fit(e,t,r,i){const o=q7(Vd(t,r));if(Pke(o)){const s=mit(o,e.getTypeChecker(),t,e,i);if(s)return s}return xQ(f.You_cannot_rename_this_element)}function mit(e,t,r,i,o){const s=t.getSymbolAtLocation(e);if(!s){if(ls(e)){const T=H7(e,t);if(T&&(T.flags&128||T.flags&1048576&&Jn(T.types,A=>!!(A.flags&128))))return c_e(e.text,e.text,"string","",e,r)}else if(RK(e)){const T=fc(e);return c_e(T,T,"label","",e,r)}return}const{declarations:l}=s;if(!l||l.length===0)return;if(l.some(T=>_it(i,T)))return xQ(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(ls(e)&&UL(e))return o.allowRenameOfImportPath?git(e,r,s):void 0;const u=hit(r,s,t,o);if(u)return xQ(u);const p=Qv.getSymbolKind(t,s,e),h=Tue(e)||ef(e)&&e.parent.kind===167?Zf(Qf(e)):void 0,m=h||t.symbolToString(s),y=h||t.getFullyQualifiedName(s);return c_e(m,y,p,Qv.getSymbolModifiers(t,s),e,r)}function _it(e,t){const r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&Il(r.fileName,".d.ts")}function hit(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){const l=t.declarations&&In(t.declarations,u=>tp(u));l&&!l.propertyName&&(t=r.getAliasedSymbol(t))}const{declarations:o}=t;if(!o)return;const s=Cke(e.path);if(s===void 0)return bt(o,l=>yO(l.getSourceFile().path))?f.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const l of o){const u=Cke(l.getSourceFile().path);if(u){const p=Math.min(s.length,u.length);for(let h=0;h<=p;h++)if(Uu(s[h],u[h])!==0)return f.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function Cke(e){const t=Wc(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function git(e,t,r){if(!Xc(e.text))return xQ(f.You_cannot_rename_a_module_via_a_global_import);const i=r.declarations&&In(r.declarations,$i);if(!i)return;const o=Al(e.text,"/index")||Al(e.text,"/index.js")?void 0:ane(Ad(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 c_e(e,t,r,i,o,s){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:vit(o,s)}}function xQ(e){return{canRename:!1,localizedErrorMessage:Wo(e)}}function vit(e,t){let r=e.getStart(t),i=e.getWidth(t);return ls(e)&&(r+=1,i-=2),vu(r,i)}function Pke(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return G7(e);default:return!1}}var yit=I({"src/services/rename.ts"(){si()}}),xz={};ee(xz,{getRenameInfo:()=>fit,nodeIsEligibleForRename:()=>Pke});var bit=I({"src/services/_namespaces/ts.Rename.ts"(){yit()}});function Eit(e,t,r,i,o){const s=e.getTypeChecker(),l=J7(t,r);if(!l)return;const u=!!i&&i.kind==="characterTyped";if(u&&(SI(t,r,l)||qv(t,r)))return;const p=!!i&&i.kind==="invoked",h=Fit(l,r,t,s,p);if(!h)return;o.throwIfCancellationRequested();const m=Sit(h,s,t,l,u);return o.throwIfCancellationRequested(),m?s.runWithCancellationToken(o,y=>m.kind===0?zke(m.candidates,m.resolvedSignature,h,t,y):Bit(m.symbol,h,t,y)):cd(t)?Ait(h,e,o):void 0}function Sit({invocation:e,argumentCount:t},r,i,o,s){switch(e.kind){case 0:{if(s&&!Tit(o,e.node,i))return;const l=[],u=r.getResolvedSignatureForSignatureHelp(e.node,l,t);return l.length===0?void 0:{kind:0,candidates:l,resolvedSignature:u}}case 1:{const{called:l}=e;if(s&&!Mke(o,i,Ve(l)?l.parent:l))return;const u=WK(l,t,r);if(u.length!==0)return{kind:0,candidates:u,resolvedSignature:Ua(u)};const p=r.getSymbolAtLocation(l);return p&&{kind:1,symbol:p}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return N.assertNever(e)}}function Tit(e,t,r){if(!S_(t))return!1;const i=t.getChildren(r);switch(e.kind){case 21:return Or(i,e);case 28:{const o=U7(e);return!!o&&Or(i,o)}case 30:return Mke(e,r,t.expression);default:return!1}}function Ait(e,t,r){if(e.invocation.kind===2)return;const i=Wke(e.invocation),o=Fr(i)?i.name.text:void 0,s=t.getTypeChecker();return o===void 0?void 0:Ht(t.getSourceFiles(),l=>Ht(l.getNamedDeclarations().get(o),u=>{const p=u.symbol&&s.getTypeOfSymbolAtLocation(u.symbol,u),h=p&&p.getCallSignatures();if(h&&h.length)return s.runWithCancellationToken(r,m=>zke(h,h[0],e,l,m,!0))}))}function Mke(e,t,r){const i=e.getFullStart();let o=e.parent;for(;o;){const s=Ic(i,t,o,!0);if(s)return sf(r,s);o=o.parent}return N.fail("Could not find preceding token")}function Iit(e,t,r,i){const o=kke(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 Lke(e,t,r,i){const o=xit(e,r,i);if(!o)return;const{list:s,argumentIndex:l}=o,u=kit(i,s);l!==0&&N.assertLessThan(l,u);const p=Oit(s,r);return{list:s,argumentIndex:l,argumentCount:u,argumentsSpan:p}}function xit(e,t,r){if(e.kind===30||e.kind===21)return{list:zit(e.parent,e,t),argumentIndex:0};{const i=U7(e);return i&&{list:i,argumentIndex:Lit(r,i,e)}}}function kke(e,t,r,i){const{parent:o}=e;if(S_(o)){const s=o,l=Lke(e,t,r,i);if(!l)return;const{list:u,argumentIndex:p,argumentCount:h,argumentsSpan:m}=l;return{isTypeParameterList:!!o.typeArguments&&o.typeArguments.pos===u.pos,invocation:{kind:0,node:s},argumentsSpan:m,argumentIndex:p,argumentCount:h}}else{if(XA(e)&&QE(o))return aO(e,t,r)?d_e(o,0,r):void 0;if(YA(e)&&o.parent.kind===215){const s=o,l=s.parent;N.assert(s.kind===228);const u=aO(e,t,r)?0:1;return d_e(l,u,r)}else if(gP(o)&&QE(o.parent.parent)){const s=o,l=o.parent.parent;if(zW(e)&&!aO(e,t,r))return;const u=s.parent.templateSpans.indexOf(s),p=wit(u,e,t,r);return d_e(l,p,r)}else if(ld(o)){const s=o.attributes.pos,l=Pa(r.text,o.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:o},argumentsSpan:vu(s,l-s),argumentIndex:0,argumentCount:1}}else{const s=FK(e,r);if(s){const{called:l,nTypeArguments:u}=s,p={kind:1,called:l},h=pc(l.getStart(r),e.end);return{isTypeParameterList:!0,invocation:p,argumentsSpan:h,argumentIndex:u,argumentCount:u+1}}return}}}function Rit(e,t,r,i){return Dit(e,t,r,i)||kke(e,t,r,i)}function wke(e){return mr(e.parent)?wke(e.parent):e}function u_e(e){return mr(e.left)?u_e(e.left)+1:2}function Dit(e,t,r,i){const o=Nit(e);if(o===void 0)return;const s=Cit(o,r,t,i);if(s===void 0)return;const{contextualType:l,argumentIndex:u,argumentCount:p,argumentsSpan:h}=s,m=l.getNonNullableType(),y=m.symbol;if(y===void 0)return;const T=el(m.getCallSignatures());return T===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:T,node:e,symbol:Pit(y)},argumentsSpan:h,argumentIndex:u,argumentCount:p}}function Nit(e){switch(e.kind){case 21:case 28:return e;default:return Vn(e.parent,t=>Ao(t)?!0:$a(t)||im(t)||YE(t)?!1:"quit")}}function Cit(e,t,r,i){const{parent:o}=e;switch(o.kind){case 217:case 174:case 218:case 219:const s=Lke(e,r,t,i);if(!s)return;const{argumentIndex:l,argumentCount:u,argumentsSpan:p}=s,h=Hl(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return h&&{contextualType:h,argumentIndex:l,argumentCount:u,argumentsSpan:p};case 226:{const m=wke(o),y=i.getContextualType(m),T=e.kind===21?0:u_e(o)-1,A=u_e(m);return y&&{contextualType:y,argumentIndex:T,argumentCount:A,argumentsSpan:Dd(o)}}default:return}}function Pit(e){return e.name==="__type"&&Ht(e.declarations,t=>{var r;return bh(t)?(r=ri(t.parent,T_))==null?void 0:r.symbol:void 0})||e}function Mit(e,t){const r=t.getTypeAtLocation(e.expression);if(t.isTupleType(r)){const{elementFlags:i,fixedLength:o}=r.target;if(o===0)return 0;const s=mi(i,l=>!(l&1));return s<0?o:s}return 0}function Lit(e,t,r){return Oke(e,t,r)}function kit(e,t){return Oke(e,t,void 0)}function Oke(e,t,r){const i=t.getChildren();let o=0,s=!1;for(const l of i){if(r&&l===r)return!s&&l.kind===28&&o++,o;if($m(l)){o+=Mit(l,e),s=!0;continue}if(l.kind!==28){o++,s=!0;continue}if(s){s=!1;continue}o++}return r?o:i.length&&Xa(i).kind===28?o+1:o}function wit(e,t,r,i){return N.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),sre(t)?aO(t,r,i)?0:e+2:e+1}function d_e(e,t,r){const i=XA(e.template)?1:e.template.templateSpans.length+1;return t!==0&&N.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:Wit(e,r),argumentIndex:t,argumentCount:i}}function Oit(e,t){const r=e.getFullStart(),i=Pa(t.text,e.getEnd(),!1);return vu(r,i-r)}function Wit(e,t){const r=e.template,i=r.getStart();let o=r.getEnd();return r.kind===228&&Xa(r.templateSpans).literal.getFullWidth()===0&&(o=Pa(t.text,o,!1)),vu(i,o-i)}function Fit(e,t,r,i,o){for(let s=e;!$i(s)&&(o||!Ko(s));s=s.parent){N.assert(sf(s.parent,s),"Not a subspan",()=>`Child: ${N.formatSyntaxKind(s.kind)}, parent: ${N.formatSyntaxKind(s.parent.kind)}`);const l=Rit(s,t,r,i);if(l)return l}}function zit(e,t,r){const i=e.getChildren(r),o=i.indexOf(t);return N.assert(o>=0&&i.length>o+1),i[o+1]}function Wke(e){return e.kind===0?J4(e.node):e.called}function Fke(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function zke(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:o,invocation:s,argumentIndex:l},u,p,h){var m;const y=Fke(s),T=s.kind===2?s.symbol:p.getSymbolAtLocation(Wke(s))||h&&((m=t.declaration)==null?void 0:m.symbol),A=T?sM(p,T,h?u:void 0,void 0):et,R=Wt(e,K=>Vit(K,A,r,p,y,u));l!==0&&N.assertLessThan(l,i);let M=0,C=0;for(let K=0;K<R.length;K++){const Q=R[K];if(e[K]===t&&(M=C,Q.length>1)){let V=0;for(const se of Q){if(se.isVariadic||se.parameters.length>=i){M=C+V;break}V++}}C+=Q.length}N.assert(M!==-1);const O={items:kp(R,tl),applicableSpan:o,selectedItemIndex:M,argumentIndex:l,argumentCount:i},U=O.items[M];if(U.isVariadic){const K=mi(U.parameters,Q=>!!Q.isRest);-1<K&&K<U.parameters.length-1?O.argumentIndex=U.parameters.length:O.argumentIndex=Math.min(O.argumentIndex,U.parameters.length-1)}return O}function Bit(e,{argumentCount:t,argumentsSpan:r,invocation:i,argumentIndex:o},s,l){const u=l.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return u?{items:[Git(e,u,l,Fke(i),s)],applicableSpan:r,selectedItemIndex:0,argumentIndex:o,argumentCount:t}:void 0}function Git(e,t,r,i,o){const s=sM(r,e),l=d1(),u=t.map(y=>Bke(y,r,i,o,l)),p=e.getDocumentationComment(r),h=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...s,$u(30)],suffixDisplayParts:[$u(32)],separatorDisplayParts:p_e,parameters:u,documentation:p,tags:h}}function Vit(e,t,r,i,o,s){const l=(r?Uit:Hit)(e,i,o,s);return Wt(l,({isVariadic:u,parameters:p,prefix:h,suffix:m})=>{const y=[...t,...h],T=[...m,...jit(e,o,i)],A=e.getDocumentationComment(i),R=e.getJsDocTags();return{isVariadic:u,prefixDisplayParts:y,suffixDisplayParts:T,separatorDisplayParts:p_e,parameters:p,documentation:A,tags:R}})}function jit(e,t,r){return nb(i=>{i.writePunctuation(":"),i.writeSpace(" ");const o=r.getTypePredicateOfSignature(e);o?r.writeTypePredicate(o,t,void 0,i):r.writeType(r.getReturnTypeOfSignature(e),t,void 0,i)})}function Uit(e,t,r,i){const o=(e.target||e).typeParameters,s=d1(),l=(o||et).map(p=>Bke(p,t,r,i,s)),u=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,QO)]:[];return t.getExpandedParameters(e).map(p=>{const h=w.createNodeArray([...u,...Wt(p,y=>t.symbolToParameterDeclaration(y,r,QO))]),m=nb(y=>{s.writeList(2576,h,i,y)});return{isVariadic:!1,parameters:l,prefix:[$u(30)],suffix:[$u(32),...m]}})}function Hit(e,t,r,i){const o=d1(),s=nb(p=>{if(e.typeParameters&&e.typeParameters.length){const h=w.createNodeArray(e.typeParameters.map(m=>t.typeParameterToDeclaration(m,r,QO)));o.writeList(53776,h,i,p)}}),l=t.getExpandedParameters(e),u=t.hasEffectiveRestParameter(e)?l.length===1?p=>!0:p=>{var h;return!!(p.length&&((h=ri(p[p.length-1],fh))==null?void 0:h.links.checkFlags)&32768)}:p=>!1;return l.map(p=>({isVariadic:u(p),parameters:p.map(h=>qit(h,t,r,i,o)),prefix:[...s,$u(21)],suffix:[$u(22)]}))}function qit(e,t,r,i,o){const s=nb(p=>{const h=t.symbolToParameterDeclaration(e,r,QO);o.writeNode(4,h,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 Bke(e,t,r,i,o){const s=nb(l=>{const u=t.typeParameterToDeclaration(e,r,QO);o.writeNode(4,u,i,l)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:s,isOptional:!1,isRest:!1}}var QO,p_e,Jit=I({"src/services/signatureHelp.ts"(){si(),QO=70246400,p_e=[$u(28),wl()]}}),ZO={};ee(ZO,{getArgumentInfoForCompletions:()=>Iit,getSignatureHelpItems:()=>Eit});var Kit=I({"src/services/_namespaces/ts.SignatureHelp.ts"(){Jit()}});function Xit(e,t){var r,i;let o={textSpan:pc(t.getFullStart(),t.getEnd())},s=t;e:for(;;){const p=$it(s);if(!p.length)break;for(let h=0;h<p.length;h++){const m=p[h-1],y=p[h],T=p[h+1];if(l0(y,t,!0)>e)break e;const A=ah(Zb(t.text,y.end));if(A&&A.kind===2&&u(A.pos,A.end),Yit(t,e,y)){if(GV(y)&&Bs(s)&&!If(y.getStart(t),y.getEnd(),t)&&l(y.getStart(t),y.getEnd()),Ko(y)||gP(y)||YA(y)||zW(y)||m&&YA(m)||Vc(y)&&Ll(s)||KR(y)&&Vc(s)||Oi(y)&&KR(s)&&p.length===1||o1(y)||E0(y)||jS(y)){s=y;break}if(gP(s)&&T&&_4(T)){const O=y.getFullStart()-2,U=T.getStart()+1;l(O,U)}const R=KR(y)&&Qit(m)&&Zit(T)&&!If(m.getStart(),T.getStart(),t);let M=R?m.getEnd():y.getStart();const C=R?T.getStart():eot(t,y);if(Wp(y)&&((r=y.jsDoc)!=null&&r.length)&&l(Ua(y.jsDoc).getStart(),C),KR(y)){const O=y.getChildren()[0];O&&Wp(O)&&((i=O.jsDoc)!=null&&i.length)&&O.getStart()!==y.pos&&(M=Math.min(M,Ua(O.jsDoc).getStart()))}l(M,C),(Na(y)||IA(y))&&l(M+1,C-1),s=y;break}if(h===p.length-1)break e}}return o;function l(p,h){if(p!==h){const m=pc(p,h);(!o||!TD(m,o.textSpan)&&zne(m,e))&&(o={textSpan:m,...o&&{parent:o}})}}function u(p,h){l(p,h);let m=p;for(;t.text.charCodeAt(m)===47;)m++;l(m,h)}}function Yit(e,t,r){return N.assert(r.pos<=t),t<r.end?!0:r.getEnd()===t?Vd(e,t).pos<r.end:!1}function $it(e){var t;if($i(e))return e8(e.getChildAt(0).getChildren(),Gke);if(GR(e)){const[r,...i]=e.getChildren(),o=N.checkDefined(i.pop());N.assertEqual(r.kind,19),N.assertEqual(o.kind,20);const s=e8(i,u=>u===e.readonlyToken||u.kind===148||u===e.questionToken||u.kind===58),l=e8(s,({kind:u})=>u===23||u===168||u===24);return[r,t8(RQ(l,({kind:u})=>u===59)),o]}if(gp(e)){const r=e8(e.getChildren(),l=>l===e.name||Or(e.modifiers,l)),i=((t=r[0])==null?void 0:t.kind)===327?r[0]:void 0,o=i?r.slice(1):r,s=RQ(o,({kind:l})=>l===59);return i?[i,t8(s)]:s}if(Ao(e)){const r=e8(e.getChildren(),o=>o===e.dotDotDotToken||o===e.name),i=e8(r,o=>o===r[0]||o===e.questionToken);return RQ(i,({kind:o})=>o===64)}return $a(e)?RQ(e.getChildren(),({kind:r})=>r===64):e.getChildren()}function e8(e,t){const r=[];let i;for(const o of e)t(o)?(i=i||[],i.push(o)):(i&&(r.push(t8(i)),i=void 0),r.push(o));return i&&r.push(t8(i)),r}function RQ(e,t,r=!0){if(e.length<2)return e;const i=mi(e,t);if(i===-1)return e;const o=e.slice(0,i),s=e[i],l=Xa(e),u=r&&l.kind===27,p=e.slice(i+1,u?e.length-1:void 0),h=C2([o.length?t8(o):void 0,s,p.length?t8(p):void 0]);return u?h.concat(l):h}function t8(e){return N.assertGreaterThanOrEqual(e.length,1),gh(Ah.createSyntaxList(e),e[0].pos,Xa(e).end)}function Qit(e){const t=e&&e.kind;return t===19||t===23||t===21||t===286}function Zit(e){const t=e&&e.kind;return t===20||t===24||t===22||t===287}function eot(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 Gke,tot=I({"src/services/smartSelection.ts"(){si(),Gke=Jm(Mc,eu)}}),DQ={};ee(DQ,{getSmartSelectionRange:()=>Xit});var not=I({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){tot()}});function Vke(e,t,r){const i=jke(e,t,r);if(i!=="")return i;const o=RR(t);return o&32?pl(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 jke(e,t,r){const i=e.getRootSymbols(t);if(i.length===1&&Ua(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&&yt(r)||kA(r))return"parameter";const o=RR(t);if(o&3)return nX(t)?"parameter":t.valueDeclaration&&iR(t.valueDeclaration)?"const":t.valueDeclaration&&RL(t.valueDeclaration)?"using":t.valueDeclaration&&xL(t.valueDeclaration)?"await using":Xe(t.declarations,W4)?"let":qke(t)?"local var":"var";if(o&16)return qke(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){const s=Xe(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){const[t,...r]=e.declarations,i=Ne(r)&&b5(t)&&bt(r,s=>!b5(s))?65536:0,o=nM(t,i);if(o)return o.split(",")}return[]}function rot(e,t){if(!t)return"";const r=new Set(Uke(t));if(t.flags&2097152){const i=e.getAliasedSymbol(t);i!==t&&Xe(Uke(i),o=>{r.add(o)})}return t.flags&16777216&&r.add("optional"),r.size>0?zo(r.values()).join(","):""}function Hke(e,t,r,i,o,s,l,u){var p;const h=[];let m=[],y=[];const T=RR(t);let A=l&1?jke(e,t,o):"",R=!1;const M=o.kind===110&&X4(o)||kA(o);let C,O,U=!1;if(o.kind===110&&!M)return{displayParts:[Ep(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(A!==""||T&32||T&2097152){if(A==="getter"||A==="setter"){const pe=In(t.declarations,Ce=>Ce.name===o);if(pe)switch(pe.kind){case 177:A="getter";break;case 178:A="setter";break;case 172:A="accessor";break;default:N.assertNever(pe)}else A="property"}let X;if(s??(s=M?e.getTypeAtLocation(o):e.getTypeOfSymbolAtLocation(t,o)),o.parent&&o.parent.kind===211){const pe=o.parent.name;(pe===o||pe&&pe.getFullWidth()===0)&&(o=o.parent)}let oe;if(S_(o)?oe=o:(TK(o)||eM(o)||o.parent&&(ld(o.parent)||QE(o.parent))&&ea(t.valueDeclaration))&&(oe=o.parent),oe){X=e.getResolvedSignature(oe);const pe=oe.kind===214||sa(oe)&&oe.expression.kind===108,Ce=pe?s.getConstructSignatures():s.getCallSignatures();if(X&&!Or(Ce,X.target)&&!Or(Ce,X)&&(X=Ce.length?Ce[0]:void 0),X){switch(pe&&T&32?(A="constructor",ne(s.symbol,A)):T&2097152?(A="alias",he(A),h.push(wl()),pe&&(X.flags&4&&(h.push(Ep(128)),h.push(wl())),h.push(Ep(105)),h.push(wl())),G(t)):ne(t,A),A){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":h.push($u(59)),h.push(wl()),!(Wr(s)&16)&&s.symbol&&(qr(h,sM(e,s.symbol,i,void 0,5)),h.push(AD())),pe&&(X.flags&4&&(h.push(Ep(128)),h.push(wl())),h.push(Ep(105)),h.push(wl())),ye(X,Ce,262144);break;default:ye(X,Ce)}R=!0,U=Ce.length>1}}else if(PK(o)&&!(T&98304)||o.kind===137&&o.parent.kind===176){const pe=o.parent;if(t.declarations&&In(t.declarations,de=>de===(o.kind===137?pe.parent:pe))){const de=pe.kind===176?s.getNonNullableType().getConstructSignatures():s.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(pe)?X=de[0]:X=e.getSignatureFromDeclaration(pe),pe.kind===176?(A="constructor",ne(s.symbol,A)):ne(pe.kind===179&&!(s.symbol.flags&2048||s.symbol.flags&4096)?s.symbol:t,A),X&&ye(X,de),R=!0,U=de.length>1}}}if(T&32&&!R&&!M&&(V(),pl(t,231)?he("local class"):h.push(Ep(86)),h.push(wl()),G(t),Y(t,r)),T&64&&l&2&&(Q(),h.push(Ep(120)),h.push(wl()),G(t),Y(t,r)),T&524288&&l&2&&(Q(),h.push(Ep(156)),h.push(wl()),G(t),Y(t,r),h.push(wl()),h.push(aM(64)),h.push(wl()),qr(h,fO(e,o.parent&&Pg(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),T&384&&(Q(),bt(t.declarations,X=>y0(X)&&ME(X))&&(h.push(Ep(87)),h.push(wl())),h.push(Ep(94)),h.push(wl()),G(t)),T&1536&&!M){Q();const X=pl(t,267),oe=X&&X.name&&X.name.kind===80;h.push(Ep(oe?145:144)),h.push(wl()),G(t)}if(T&262144&&l&2)if(Q(),h.push($u(21)),h.push(cf("type parameter")),h.push($u(22)),h.push(wl()),G(t),t.parent)se(),G(t.parent,i),Y(t.parent,i);else{const X=pl(t,168);if(X===void 0)return N.fail();const oe=X.parent;if(oe)if(ea(oe)){se();const pe=e.getSignatureFromDeclaration(oe);oe.kind===180?(h.push(Ep(105)),h.push(wl())):oe.kind!==179&&oe.name&&G(oe.symbol),qr(h,oX(e,pe,r,32))}else xm(oe)&&(se(),h.push(Ep(156)),h.push(wl()),G(oe.symbol),Y(oe.symbol,r))}if(T&8){A="enum member",ne(t,"enum member");const X=(p=t.declarations)==null?void 0:p[0];if((X==null?void 0:X.kind)===306){const oe=e.getConstantValue(X);oe!==void 0&&(h.push(wl()),h.push(aM(64)),h.push(wl()),h.push(rp(Fre(oe),typeof oe=="number"?7:8)))}}if(t.flags&2097152){if(Q(),!R||m.length===0&&y.length===0){const X=e.getAliasedSymbol(t);if(X!==t&&X.declarations&&X.declarations.length>0){const oe=X.declarations[0],pe=Lo(oe);if(pe&&!R){const Ce=L4(oe)&&Qr(oe,128),de=t.name!=="default"&&!Ce,ie=Hke(e,X,Un(oe),oe,pe,s,l,de?t:X);h.push(...ie.displayParts),h.push(AD()),C=ie.documentation,O=ie.tags}else C=X.getContextualDocumentationComment(oe,e),O=X.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:h.push(Ep(95)),h.push(wl()),h.push(Ep(145));break;case 277:h.push(Ep(95)),h.push(wl()),h.push(Ep(t.declarations[0].isExportEquals?64:90));break;case 281:h.push(Ep(95));break;default:h.push(Ep(102))}h.push(wl()),G(t),Xe(t.declarations,X=>{if(X.kind===271){const oe=X;if(c0(oe))h.push(wl()),h.push(aM(64)),h.push(wl()),h.push(Ep(149)),h.push($u(21)),h.push(rp(fc(TC(oe)),8)),h.push($u(22));else{const pe=e.getSymbolAtLocation(oe.moduleReference);pe&&(h.push(wl()),h.push(aM(64)),h.push(wl()),G(pe,i))}return!0}})}if(!R)if(A!==""){if(s){if(M?(Q(),h.push(Ep(110))):ne(t,A),A==="property"||A==="accessor"||A==="getter"||A==="setter"||A==="JSX attribute"||T&3||A==="local var"||A==="index"||A==="using"||A==="await using"||M){if(h.push($u(59)),h.push(wl()),s.symbol&&s.symbol.flags&262144&&A!=="index"){const X=nb(oe=>{const pe=e.typeParameterToDeclaration(s,i,f_e);K().writeNode(4,pe,Un(No(i)),oe)});qr(h,X)}else qr(h,fO(e,s,i));if(fh(t)&&t.links.target&&fh(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const X=t.links.target.links.tupleLabelDeclaration;N.assertNode(X.name,Ve),h.push(wl()),h.push($u(21)),h.push(cf(Er(X.name))),h.push($u(22))}}else if(T&16||T&8192||T&16384||T&131072||T&98304||A==="method"){const X=s.getNonNullableType().getCallSignatures();X.length&&(ye(X[0],X),U=X.length>1)}}}else A=Vke(e,t,o);if(m.length===0&&!U&&(m=t.getContextualDocumentationComment(i,e)),m.length===0&&T&4&&t.parent&&t.declarations&&Xe(t.parent.declarations,X=>X.kind===312))for(const X of t.declarations){if(!X.parent||X.parent.kind!==226)continue;const oe=e.getSymbolAtLocation(X.parent.right);if(oe&&(m=oe.getDocumentationComment(e),y=oe.getJsDocTags(e),m.length>0))break}if(m.length===0&&Ve(o)&&t.valueDeclaration&&$a(t.valueDeclaration)){const X=t.valueDeclaration,oe=X.parent,pe=X.propertyName||X.name;if(Ve(pe)&&im(oe)){const Ce=Qf(pe),de=e.getTypeAtLocation(oe);m=Ht(de.isUnion()?de.types:[de],ie=>{const ve=ie.getProperty(Ce);return ve?ve.getDocumentationComment(e):void 0})||et}}return y.length===0&&!U&&(y=t.getContextualJsDocTags(i,e)),m.length===0&&C&&(m=C),y.length===0&&O&&(y=O),{displayParts:h,documentation:m,symbolKind:A,tags:y.length===0?void 0:y};function K(){return d1()}function Q(){h.length&&h.push(AD()),V()}function V(){u&&(he("alias"),h.push(wl()))}function se(){h.push(wl()),h.push(Ep(103)),h.push(wl())}function G(X,oe){let pe;u&&X===t&&(X=u),A==="index"&&(pe=e.getIndexInfosOfIndexSymbol(X));let Ce=[];X.flags&131072&&pe?(X.parent&&(Ce=sM(e,X.parent)),Ce.push($u(23)),pe.forEach((de,ie)=>{Ce.push(...fO(e,de.keyType)),ie!==pe.length-1&&(Ce.push(wl()),Ce.push($u(52)),Ce.push(wl()))}),Ce.push($u(24))):Ce=sM(e,X,oe||r,void 0,7),qr(h,Ce),t.flags&16777216&&h.push($u(58))}function ne(X,oe){Q(),oe&&(he(oe),X&&!bt(X.declarations,pe=>Gs(pe)||(Os(pe)||Qc(pe))&&!pe.name)&&(h.push(wl()),G(X)))}function he(X){switch(X){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":h.push(rX(X));return;default:h.push($u(21)),h.push(rX(X)),h.push($u(22));return}}function ye(X,oe,pe=0){qr(h,oX(e,X,i,pe|32)),oe.length>1&&(h.push(wl()),h.push($u(21)),h.push(aM(40)),h.push(rp((oe.length-1).toString(),7)),h.push(wl()),h.push(cf(oe.length===2?"overload":"overloads")),h.push($u(22))),m=X.getDocumentationComment(e),y=X.getJsDocTags(),oe.length>1&&m.length===0&&y.length===0&&(m=oe[0].getDocumentationComment(e),y=oe[0].getJsDocTags().filter(Ce=>Ce.name!=="deprecated"))}function Y(X,oe){const pe=nb(Ce=>{const de=e.symbolToTypeParameterDeclarations(X,oe,f_e);K().writeList(53776,de,Un(No(oe)),Ce)});qr(h,pe)}}function iot(e,t,r,i,o,s=ZS(o),l){return Hke(e,t,r,i,o,void 0,s,l)}function qke(e){return e.parent?!1:Xe(e.declarations,t=>{if(t.kind===218)return!0;if(t.kind!==260&&t.kind!==262)return!1;for(let r=t.parent;!kE(r);r=r.parent)if(r.kind===312||r.kind===268)return!1;return!0})}var f_e,oot=I({"src/services/symbolDisplay.ts"(){si(),f_e=70246400}}),Qv={};ee(Qv,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>iot,getSymbolKind:()=>Vke,getSymbolModifiers:()=>rot});var aot=I({"src/services/_namespaces/ts.SymbolDisplay.ts"(){oot()}});function Jke(e){const t=e.__pos;return N.assert(typeof t=="number"),t}function m_e(e,t){N.assert(typeof t=="number"),e.__pos=t}function Kke(e){const t=e.__end;return N.assert(typeof t=="number"),t}function __e(e,t){N.assert(typeof t=="number"),e.__end=t}function Xke(e,t){return Pa(e,t,!1,!0)}function sot(e,t){let r=t;for(;r<e.length;){const i=e.charCodeAt(r);if(E_(i)){r++;continue}return i===47}return!1}function n8(e,t,r,i){return{pos:aT(e,t,i),end:GD(e,r,i)}}function aT(e,t,r,i=!1){var o,s;const{leadingTriviaOption:l}=r;if(l===0)return t.getStart(e);if(l===3){const A=t.getStart(e),R=am(A,e);return tO(t,R)?R:A}if(l===2){const A=dj(t,e.text);if(A!=null&&A.length)return am(A[0].pos,e)}const u=t.getFullStart(),p=t.getStart(e);if(u===p)return p;const h=am(u,e);if(am(p,e)===h)return l===1?u:p;if(i){const A=((o=qh(e.text,u))==null?void 0:o[0])||((s=Zb(e.text,u))==null?void 0:s[0]);if(A)return Pa(e.text,A.end,!0,!0)}const y=u>0?1:0;let T=wy(kC(e,h)+y,e);return T=Xke(e.text,T),wy(kC(e,T),e)}function h_e(e,t,r){const{end:i}=t,{trailingTriviaOption:o}=r;if(o===2){const s=Zb(e.text,i);if(s){const l=kC(e,t.end);for(const u of s){if(u.kind===2||kC(e,u.pos)>l)break;if(kC(e,u.end)>l)return Pa(e.text,u.end,!0,!0)}}}}function GD(e,t,r){var i;const{end:o}=t,{trailingTriviaOption:s}=r;if(s===0)return o;if(s===1){const p=So(Zb(e.text,o),qh(e.text,o)),h=(i=p==null?void 0:p[p.length-1])==null?void 0:i.end;return h||o}const l=h_e(e,t,r);if(l)return l;const u=Pa(e.text,o,!0);return u!==o&&(s===2||Hu(e.text.charCodeAt(u-1)))?u:o}function NQ(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===210)}function lot(e){return Os(e)||Tc(e)}function cot(e){if(e.kind!==219)return e;const t=e.parent.kind===172?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function uot(e,t){if(e.kind===t.kind)switch(e.kind){case 348:{const r=e,i=t;return Ve(r.name)&&Ve(i.name)&&r.name.escapedText===i.name.escapedText?w.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 349:return w.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 351:return w.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function g_e(e,t){return Pa(e.text,aT(e,t,{leadingTriviaOption:1}),!1,!0)}function dot(e,t,r,i){const o=g_e(e,i);if(r===void 0||If(GD(e,t,{}),o,e))return o;const s=Ic(i.getStart(e),e);if(NQ(t,s)){const l=Ic(t.getStart(e),e);if(NQ(r,l)){const u=Pa(e.text,s.getEnd(),!0,!0);if(If(l.getStart(e),s.getStart(e),e))return Hu(e.text.charCodeAt(u-1))?u-1:u;if(Hu(e.text.charCodeAt(u)))return u}}return o}function pot(e,t){const r=vs(e,19,t),i=vs(e,20,t);return[r==null?void 0:r.end,i==null?void 0:i.end]}function CQ(e){return La(e)?e.properties:e.members}function v_e(e,t){for(let r=t.length-1;r>=0;r--){const{span:i,newText:o}=t[r];e=`${e.substring(0,i.start)}${o}${e.substring(Kl(i))}`}return e}function fot(e){return Pa(e,0)===e.length}function PQ(e){const t=xn(e,PQ,Zke,mot,PQ),r=Ys(t)?t:Object.create(t);return gh(r,Jke(e),Kke(e)),r}function mot(e,t,r,i,o){const s=jn(e,t,r,i,o);if(!s)return s;N.assert(e);const l=s===e?w.createNodeArray(s.slice(0)):s;return gh(l,Jke(e),Kke(e)),l}function Yke(e){let t=0;const r=ok(e),i=ie=>{ie&&m_e(ie,t)},o=ie=>{ie&&__e(ie,t)},s=ie=>{ie&&m_e(ie,t)},l=ie=>{ie&&__e(ie,t)},u=ie=>{ie&&m_e(ie,t)},p=ie=>{ie&&__e(ie,t)};function h(ie,ve){if(ve||!fot(ie)){t=r.getTextPos();let Le=0;for(;Cg(ie.charCodeAt(ie.length-Le-1));)Le++;t-=Le}}function m(ie){r.write(ie),h(ie,!1)}function y(ie){r.writeComment(ie)}function T(ie){r.writeKeyword(ie),h(ie,!1)}function A(ie){r.writeOperator(ie),h(ie,!1)}function R(ie){r.writePunctuation(ie),h(ie,!1)}function M(ie){r.writeTrailingSemicolon(ie),h(ie,!1)}function C(ie){r.writeParameter(ie),h(ie,!1)}function O(ie){r.writeProperty(ie),h(ie,!1)}function U(ie){r.writeSpace(ie),h(ie,!1)}function K(ie){r.writeStringLiteral(ie),h(ie,!1)}function Q(ie,ve){r.writeSymbol(ie,ve),h(ie,!1)}function V(ie){r.writeLine(ie)}function se(){r.increaseIndent()}function G(){r.decreaseIndent()}function ne(){return r.getText()}function he(ie){r.rawWrite(ie),h(ie,!1)}function ye(ie){r.writeLiteral(ie),h(ie,!0)}function Y(){return r.getTextPos()}function X(){return r.getLine()}function oe(){return r.getColumn()}function pe(){return r.getIndent()}function Ce(){return r.isAtStartOfLine()}function de(){r.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:o,onBeforeEmitNodeArray:s,onAfterEmitNodeArray:l,onBeforeEmitToken:u,onAfterEmitToken:p,write:m,writeComment:y,writeKeyword:T,writeOperator:A,writePunctuation:R,writeTrailingSemicolon:M,writeParameter:C,writeProperty:O,writeSpace:U,writeStringLiteral:K,writeSymbol:Q,writeLine:V,increaseIndent:se,decreaseIndent:G,getText:ne,rawWrite:he,writeLiteral:ye,getTextPos:Y,getLine:X,getColumn:oe,getIndent:pe,isAtStartOfLine:Ce,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:de}}function _ot(e){let t;for(const h of e.statements)if(Sm(h))t=h;else break;let r=0;const i=e.text;if(t)return r=t.end,p(),r;const o=i4(i);o!==void 0&&(r=o.length,p());const s=qh(i,r);if(!s)return r;let l,u;for(const h of s){if(h.kind===3){if(P4(i,h.pos)){l={range:h,pinnedOrTripleSlash:!0};continue}}else if(YV(i,h.pos,h.end)){l={range:h,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;const m=e.getLineAndCharacterOfPosition(h.pos).line,y=e.getLineAndCharacterOfPosition(l.range.end).line;if(m>=y+2)break}if(e.statements.length){u===void 0&&(u=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);const m=e.getLineAndCharacterOfPosition(h.end).line;if(u<m+2)break}l={range:h,pinnedOrTripleSlash:!1}}return l&&(r=l.range.end,p()),r;function p(){if(r<i.length){const h=i.charCodeAt(r);Hu(h)&&(r++,r<i.length&&h===13&&i.charCodeAt(r)===10&&r++)}}}function $ke(e,t){return!qv(e,t)&&!SI(e,t)&&!OK(e,t)&&!iue(e,t)}function hot(e,t){return(gp(e)||qo(e))&&h4(t)&&t.name.kind===167||hL(e)&&hL(t)}function Hg(e,t,r,i={leadingTriviaOption:1}){const o=aT(t,r,i),s=GD(t,r,i);e.deleteRange(t,{pos:o,end:s})}function r8(e,t,r,i){const o=N.checkDefined(kc.SmartIndenter.getContainingList(i,r)),s=tR(o,i);if(N.assert(s!==-1),o.length===1){Hg(e,r,i);return}N.assert(!t.has(i),"Deleting a node twice"),t.add(i),e.deleteRange(r,{pos:g_e(r,i),end:s===o.length-1?GD(r,i,{}):dot(r,i,o[s-1],o[s+1])})}var y_e,b_e,SM,Qke,MQ,Zke,E_e,got=I({"src/services/textChanges.ts"(){si(),y_e=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(y_e||{}),b_e=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(b_e||{}),SM={leadingTriviaOption:0,trailingTriviaOption:0},Qke=class fbe{constructor(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new fbe(Xv(t.host,t.formatContext.options),t.formatContext)}static with(t,r){const i=fbe.fromContext(t);return r(i),i.getChanges()}pushRaw(t,r){N.assertEqual(t.fileName,r.fileName);for(const i of r.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:Q7(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,n8(t,r,r,i))}deleteNodes(t,r,i={leadingTriviaOption:1},o){for(const s of r){const l=aT(t,s,i,o),u=GD(t,s,i);this.deleteRange(t,{pos:l,end:u}),o=!!h_e(t,s,i)}}deleteModifier(t,r){this.deleteRange(t,{pos:r.getStart(t),end:Pa(t.text,r.end,!0)})}deleteNodeRange(t,r,i,o={leadingTriviaOption:1}){const s=aT(t,r,o),l=GD(t,i,o);this.deleteRange(t,{pos:s,end:l})}deleteNodeRangeExcludingEnd(t,r,i,o={leadingTriviaOption:1}){const s=aT(t,r,o),l=i===void 0?t.text.length:aT(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=SM){this.replaceRange(t,n8(t,r,r,o),i,o)}replaceNodeRange(t,r,i,o,s=SM){this.replaceRange(t,n8(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=SM){this.replaceRangeWithNodes(t,n8(t,r,r,o),i,o)}replaceNodeWithText(t,r,i){this.replaceRangeWithText(t,n8(t,r,r,SM),i)}replaceNodeRangeWithNodes(t,r,i,o,s=SM){this.replaceRangeWithNodes(t,n8(t,r,i,s),o,s)}nodeHasTrailingComment(t,r,i=SM){return!!h_e(t,r,i)}nextCommaToken(t,r){const i=m1(r,r.parent,t);return i&&i.kind===28?i:void 0}replacePropertyAssignment(t,r,i){const o=this.nextCommaToken(t,r)?"":","+this.newLineCharacter;this.replaceNode(t,r,i,{suffix:o})}insertNodeAt(t,r,i,o={}){this.replaceRange(t,Af(r),i,o)}insertNodesAt(t,r,i,o={}){this.replaceRangeWithNodes(t,Af(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){const o=_ot(t),s={prefix:o===0?void 0:this.newLineCharacter,suffix:(Hu(t.text.charCodeAt(o))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};To(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){const 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=$p()),this.newFileChanges.add(t,{oldFile:i,statements:r})}insertFirstParameter(t,r,i){const o=Kc(r);o?this.insertNodeBefore(t,o,i):this.insertNodeAt(t,r.pos,i)}insertNodeBefore(t,r,i,o=!1,s={}){this.insertNodeAt(t,aT(t,r,s),i,this.getOptionsForInsertNodeBefore(r,i,o))}insertNodesBefore(t,r,i,o=!1,s={}){this.insertNodesAt(t,aT(t,r,s),i,this.getOptionsForInsertNodeBefore(r,Ua(i),o))}insertModifierAt(t,r,i,o={}){this.insertNodeAt(t,r,w.createToken(i),o)}insertModifierBefore(t,r,i){return this.insertModifierAt(t,i.getStart(t),r,{suffix:" "})}insertCommentBeforeLine(t,r,i,o){const s=wy(r,t),l=Iue(t.text,s),u=$ke(t,l),p=bD(t,u?l:i),h=t.text.slice(s,l),m=`${u?"":this.newLineCharacter}//${o}${this.newLineCharacter}${h}`;this.insertText(t,p.getStart(t),m)}insertJsdocCommentBefore(t,r,i){const o=r.getStart(t);if(r.jsDoc)for(const u of r.jsDoc)this.deleteRange(t,{pos:am(u.getStart(t),t),end:GD(t,u,{})});const s=l5(t.text,o-1),l=t.text.slice(s,o);this.insertNodeAt(t,o,i,{suffix:this.newLineCharacter+l})}createJSDocText(t,r){const i=Do(r.jsDoc,s=>Mo(s.comment)?w.createJSDocText(s.comment):s.comment),o=ah(r.jsDoc);return o&&If(o.pos,o.end,t)&&Ne(i)===0?void 0:w.createNodeArray(io(i,w.createJSDocText(` +`)))}replaceJSDocComment(t,r,i){this.insertJsdocCommentBefore(t,cot(r),w.createJSDocComment(this.createJSDocText(t,r),w.createNodeArray(i)))}addJSDocTags(t,r,i){const o=kp(r.jsDoc,l=>l.tags),s=i.filter(l=>!o.some((u,p)=>{const h=uot(u,l);return h&&(o[p]=h),!!h}));this.replaceJSDocComment(t,r,[...o,...s])}filterJSDocTags(t,r,i){this.replaceJSDocComment(t,r,mn(kp(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,Af(r),i)}tryInsertTypeAnnotation(t,r,i){let o;if(ea(r)){if(o=vs(r,22,t),!o){if(!Gs(r))return!1;o=Ua(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){const o=vs(r,21,t).getStart(t)+1,s=r.parameters.length?", ":"";this.insertNodeAt(t,o,i,{prefix:"this: ",suffix:s})}insertTypeParameters(t,r,i){const o=(vs(r,21,t)||Ua(r.parameters)).getStart(t);this.insertNodesAt(t,o,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,r,i){return Hi(t)||Yc(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Oi(t)?{suffix:", "}:Ao(t)?Ao(r)?{suffix:", "}:{}:Na(t)&&Mc(t.parent)||Bg(t)?{suffix:", "}:tp(t)?{suffix:","+(i?this.newLineCharacter:" ")}:N.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,r,i){const o=Kc(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[i,...r.body.statements]):this.insertNodeBefore(t,o,i)}insertNodeAtConstructorStartAfterSuperCall(t,r,i){const o=In(r.body.statements,s=>Zc(s)&&yS(s.expression));!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}insertNodeAtConstructorEnd(t,r,i){const o=el(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,w.createBlock(i,!0))}insertNodeAtEndOfScope(t,r,i){const o=aT(t,r.getLastToken(),{});this.insertNodeAt(t,o,i,{prefix:Hu(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){const o=this.guessIndentationFromExistingMembers(t,r)??this.computeIndentationForNewMember(t,r);this.insertNodeAt(t,CQ(r).pos,i,this.getInsertNodeAtStartInsertOptions(t,r,o))}guessIndentationFromExistingMembers(t,r){let i,o=r;for(const s of CQ(r)){if(I3(o,s,t))return;const l=s.getStart(t),u=kc.SmartIndenter.findFirstNonWhitespaceColumn(am(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){const i=r.getStart(t);return kc.SmartIndenter.findFirstNonWhitespaceColumn(am(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,r,i){const s=CQ(r).length===0,l=Am(this.classesWithNodesInsertedAtStart,as(r),{node:r,sourceFile:t}),u=La(r)&&(!Yf(t)||!s),p=La(r)&&Yf(t)&&s&&!l;return{indentation:i,prefix:(p?",":"")+this.newLineCharacter,suffix:u?",":md(r)&&s?";":""}}insertNodeAfterComma(t,r,i){const o=this.insertNodeAfterWorker(t,this.nextCommaToken(t,r)||r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfter(t,r,i){const 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){const o=this.insertNodeAfterWorker(t,r,Ua(i));this.insertNodesAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfterWorker(t,r,i){return hot(r,i)&&t.text.charCodeAt(r.end-1)!==59&&this.replaceRange(t,Af(r.end),w.createToken(27)),GD(t,r,{})}getInsertNodeAfterOptions(t,r){const i=this.getInsertNodeAfterOptionsWorker(r);return{...i,prefix:r.end===t.end&&Hi(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 N.assert(Hi(t)||h4(t)),{suffix:this.newLineCharacter}}}insertName(t,r,i){if(N.assert(!r.name),r.kind===219){const o=vs(r,39,t),s=vs(r,21,t);s?(this.insertNodesAt(t,s.getStart(t),[w.createToken(100),w.createIdentifier(i)],{joiner:" "}),Hg(this,t,o)):(this.insertText(t,Ua(r.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,o,w.createToken(22))),r.body.kind!==241&&(this.insertNodesAt(t,r.body.getStart(t),[w.createToken(19),w.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[w.createToken(27),w.createToken(20)],{joiner:" "}))}else{const o=vs(r,r.kind===218?100:86,t).end;this.insertNodeAt(t,o,w.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,r){this.insertText(t,r.getStart(t),"export ")}insertImportSpecifierAtIndex(t,r,i,o){const s=i.elements[o-1];s?this.insertNodeInListAfter(t,s,r):this.insertNodeBefore(t,i.elements[0],r,!If(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,r,i,o=kc.SmartIndenter.getContainingList(r,t)){if(!o){N.fail("node is not a list element");return}const s=tR(o,r);if(s<0)return;const l=r.getEnd();if(s!==o.length-1){const u=po(t,r.end);if(u&&NQ(r,u)){const p=o[s+1],h=Xke(t.text,p.getFullStart()),m=`${pa(u.kind)}${t.text.substring(u.end,h)}`;this.insertNodesAt(t,h,[i],{suffix:m})}}else{const u=r.getStart(t),p=am(u,t);let h,m=!1;if(o.length===1)h=28;else{const y=Ic(r.pos,t);h=NQ(r,y)?y.kind:28,m=am(o[s-1].getStart(t),t)!==p}if((sot(t.text,r.end)||!If(o.pos,o.end,t))&&(m=!0),m){this.replaceRange(t,Af(l),w.createToken(h));const y=kc.SmartIndenter.findFirstNonWhitespaceColumn(p,u,t,this.formatContext.options);let T=Pa(t.text,l,!0,!1);for(;T!==l&&Hu(t.text.charCodeAt(T-1));)T--;this.replaceRange(t,Af(T),i,{indentation:y,prefix:this.newLineCharacter})}else this.replaceRange(t,Af(l),i,{prefix:`${pa(h)} `})}}parenthesizeExpression(t,r){this.replaceRange(t,gU(r),w.createParenthesizedExpression(r))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:r})=>{const[i,o]=pot(t,r);if(i!==void 0&&o!==void 0){const s=CQ(t).length===0,l=If(i,o,r);s&&l&&i!==o-1&&this.deleteRange(r,Af(i,o-1)),l&&this.insertText(r,o-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const t=new Set;for(const{sourceFile:r,node:i}of this.deletedNodes)this.deletedNodes.some(o=>o.sourceFile===r&&Qce(o.node,i))||(To(i)?this.deleteRange(r,vU(r,i)):E_e.deleteDeclaration(this,t,r,i));t.forEach(r=>{const i=r.getSourceFile(),o=kc.SmartIndenter.getContainingList(r,i);if(r!==Xa(o))return;const s=Yi(o,l=>!t.has(l),o.length-2);s!==-1&&this.deleteRange(i,{pos:o[s].end,end:g_e(i,o[s+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const r=MQ.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,o)=>{r.push(MQ.newFileChanges(o,i,this.newLineCharacter,this.formatContext))}),r}createNewFile(t,r,i){this.insertStatementsInNewFile(r,i,t)}},(e=>{function t(u,p,h,m){return eo(JN(u,y=>y.sourceFile.path),y=>{const T=y[0].sourceFile,A=Sv(y,(M,C)=>M.range.pos-C.range.pos||M.range.end-C.range.end);for(let M=0;M<A.length-1;M++)N.assert(A[M].range.end<=A[M+1].range.pos,"Changes overlap",()=>`${JSON.stringify(A[M].range)} and ${JSON.stringify(A[M+1].range)}`);const R=eo(A,M=>{const C=tb(M.range),O=M.kind===1?Un(Pl(M.node))??M.sourceFile:M.kind===2?Un(Pl(M.nodes[0]))??M.sourceFile:M.sourceFile,U=o(M,O,T,p,h,m);if(!(C.length===U.length&&Wue(O.text,U,C.start)))return sO(C,U)});return R.length>0?{fileName:T.fileName,textChanges:R}:void 0})}e.getTextChangesFromChanges=t;function r(u,p,h,m){const y=i(G3(u),p,h,m);return{fileName:u,textChanges:[sO(vu(0,0),y)],isNewFile:!0}}e.newFileChanges=r;function i(u,p,h,m){const y=Do(p,R=>R.statements.map(M=>M===4?"":l(M,R.oldFile,h).text)).join(h),T=iw("any file name",y,{languageVersion:99,jsDocParsingMode:1},!0,u),A=kc.formatDocument(T,m);return v_e(y,A)+h}e.newFileChangesWorker=i;function o(u,p,h,m,y,T){var A;if(u.kind===0)return"";if(u.kind===3)return u.text;const{options:R={},range:{pos:M}}=u,C=K=>s(K,p,h,M,R,m,y,T),O=u.kind===2?u.nodes.map(K=>kx(C(K),m)).join(((A=u.options)==null?void 0:A.joiner)||m):C(u.node),U=R.indentation!==void 0||am(M,p)===M?O:O.replace(/^\s+/,"");return(R.prefix||"")+U+(!R.suffix||Al(U,R.suffix)?"":R.suffix)}function s(u,p,h,m,{indentation:y,prefix:T,delta:A},R,M,C){const{node:O,text:U}=l(u,p,R);C&&C(O,U);const K=S5(M,p),Q=y!==void 0?y:kc.SmartIndenter.getIndentation(m,h,K,T===R||am(m,p)===m);A===void 0&&(A=kc.SmartIndenter.shouldIndentChildNode(K,u)&&K.indentSize||0);const V={text:U,getLineAndCharacterOfPosition(G){return ys(this,G)}},se=kc.formatNodeGivenIndentation(O,V,p.languageVariant,Q,A,{...M,options:K});return v_e(U,se)}function l(u,p,h){const m=Yke(h),y=bO(h);return R0({newLine:y,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},m).writeNode(4,u,p,m),{text:m.getText(),node:PQ(u)}}e.getNonformattedText=l})(MQ||(MQ={})),Zke={...UP,factory:Dk(UP.factory.flags|1,UP.factory.baseFactory)},(e=>{function t(s,l,u,p){switch(p.kind){case 169:{const A=p.parent;Gs(A)&&A.parameters.length===1&&!vs(A,21,u)?s.replaceNodeWithText(u,p,"()"):r8(s,l,u,p);break}case 272:case 271:const h=u.imports.length&&p===Ua(u.imports).parent||p===In(u.statements,gS);Hg(s,u,p,{leadingTriviaOption:h?0:Wp(p)?2:3});break;case 208:const m=p.parent;m.kind===207&&p!==Xa(m.elements)?Hg(s,u,p):r8(s,l,u,p);break;case 260:o(s,l,u,p);break;case 168:r8(s,l,u,p);break;case 276:const T=p.parent;T.elements.length===1?i(s,u,T):r8(s,l,u,p);break;case 274:i(s,u,p);break;case 27:Hg(s,u,p,{trailingTriviaOption:0});break;case 100:Hg(s,u,p,{leadingTriviaOption:0});break;case 263:case 262:Hg(s,u,p,{leadingTriviaOption:Wp(p)?2:3});break;default:p.parent?Eh(p.parent)&&p.parent.name===p?r(s,u,p.parent):sa(p.parent)&&Or(p.parent.arguments,p)?r8(s,l,u,p):Hg(s,u,p):Hg(s,u,p)}}e.deleteDeclaration=t;function r(s,l,u){if(!u.namedBindings)Hg(s,l,u.parent);else{const p=u.name.getStart(l),h=po(l,u.name.end);if(h&&h.kind===28){const m=Pa(l.text,h.end,!1,!0);s.deleteRange(l,{pos:p,end:m})}else Hg(s,l,u.name)}}function i(s,l,u){if(u.parent.name){const p=N.checkDefined(po(l,u.pos-1));s.deleteRange(l,{pos:p.getStart(l),end:u.end})}else{const p=f0(u,272);Hg(s,l,p)}}function o(s,l,u,p){const{parent:h}=p;if(h.kind===299){s.deleteNodeRange(u,vs(h,21,u),vs(h,22,u));return}if(h.declarations.length!==1){r8(s,l,u,p);return}const m=h.parent;switch(m.kind){case 250:case 249:s.replaceNode(u,p,w.createObjectLiteralExpression());break;case 248:Hg(s,u,h);break;case 243:Hg(s,u,m,{leadingTriviaOption:Wp(m)?2:3});break;default:N.assertNever(m)}}})(E_e||(E_e={}))}}),_r={};ee(_r,{ChangeTracker:()=>Qke,LeadingTriviaOption:()=>y_e,TrailingTriviaOption:()=>b_e,applyChanges:()=>v_e,assignPositionsToNode:()=>PQ,createWriter:()=>Yke,deleteNode:()=>Hg,isThisTypeAnnotatable:()=>lot,isValidLocationToAddComment:()=>$ke});var vot=I({"src/services/_namespaces/ts.textChanges.ts"(){got()}}),S_e,T_e,yot=I({"src/services/formatting/formattingContext.ts"(){si(),S_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))(S_e||{}),T_e=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,o){this.currentTokenSpan=N.checkDefined(e),this.currentTokenParent=N.checkDefined(t),this.nextTokenSpan=N.checkDefined(r),this.nextTokenParent=N.checkDefined(i),this.contextNode=N.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){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return 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){const t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r}BlockIsOnOneLine(e){const t=vs(e,19,this.sourceFile),r=vs(e,20,this.sourceFile);if(t&&r){const i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,o=this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line;return i===o}return!1}}}});function A_e(e,t,r,i,o){const s=t===1?twe:ewe;s.setText(e),s.resetTokenState(r);let l=!0,u,p,h,m,y;const T=o({advance:A,readTokenInfo:V,readEOFTokenRange:G,isOnToken:ne,isOnEOF:he,getCurrentLeadingTrivia:()=>u,lastTrailingTriviaWasNewLine:()=>l,skipToEndOf:Y,skipToStartOf:X,getTokenFullStart:()=>(y==null?void 0:y.token.pos)??s.getTokenStart(),getStartPos:()=>(y==null?void 0:y.token.pos)??s.getTokenStart()});return y=void 0,s.setText(void 0),T;function A(){y=void 0,s.getTokenFullStart()!==r?l=!!p&&Xa(p).kind===4:s.scan(),u=void 0,p=void 0;let pe=s.getTokenFullStart();for(;pe<i;){const Ce=s.getToken();if(!yR(Ce))break;s.scan();const de={pos:pe,end:s.getTokenFullStart(),kind:Ce};pe=s.getTokenFullStart(),u=Rn(u,de)}h=s.getTokenFullStart()}function R(oe){switch(oe.kind){case 34:case 72:case 73:case 50:case 49:return!0}return!1}function M(oe){if(oe.parent)switch(oe.parent.kind){case 291:case 286:case 287:case 285:return Bd(oe.kind)||oe.kind===80}return!1}function C(oe){return KA(oe)||sg(oe)&&(y==null?void 0:y.token.kind)===12}function O(oe){return oe.kind===14}function U(oe){return oe.kind===17||oe.kind===18}function K(oe){return oe.parent&&w_(oe.parent)&&oe.parent.initializer===oe}function Q(oe){return oe===44||oe===69}function V(oe){N.assert(ne());const pe=R(oe)?1:O(oe)?2:U(oe)?3:M(oe)?4:C(oe)?5:K(oe)?6:0;if(y&&pe===m)return ye(y,oe);s.getTokenFullStart()!==h&&(N.assert(y!==void 0),s.resetTokenState(h),s.scan());let Ce=se(oe,pe);const de=OQ(s.getTokenFullStart(),s.getTokenEnd(),Ce);for(p&&(p=void 0);s.getTokenFullStart()<i&&(Ce=s.scan(),!!yR(Ce));){const ie=OQ(s.getTokenFullStart(),s.getTokenEnd(),Ce);if(p||(p=[]),p.push(ie),Ce===4){s.scan();break}}return y={leadingTrivia:u,trailingTrivia:p,token:de},ye(y,oe)}function se(oe,pe){const Ce=s.getToken();switch(m=0,pe){case 1:if(Ce===32){m=1;const de=s.reScanGreaterToken();return N.assert(oe.kind===de),de}break;case 2:if(Q(Ce)){m=2;const de=s.reScanSlashToken();return N.assert(oe.kind===de),de}break;case 3:if(Ce===20)return m=3,s.reScanTemplateToken(!1);break;case 4:return m=4,s.scanJsxIdentifier();case 5:return m=5,s.reScanJsxToken(!1);case 6:return m=6,s.reScanJsxAttributeValue();case 0:break;default:N.assertNever(pe)}return Ce}function G(){return N.assert(he()),OQ(s.getTokenFullStart(),s.getTokenEnd(),1)}function ne(){const oe=y?y.token.kind:s.getToken();return oe!==1&&!yR(oe)}function he(){return(y?y.token.kind:s.getToken())===1}function ye(oe,pe){return EA(pe)&&oe.token.kind!==pe.kind&&(oe.token.kind=pe.kind),oe}function Y(oe){s.resetTokenState(oe.end),h=s.getTokenFullStart(),m=void 0,y=void 0,l=!1,u=void 0,p=void 0}function X(oe){s.resetTokenState(oe.pos),h=s.getTokenFullStart(),m=void 0,y=void 0,l=!1,u=void 0,p=void 0}}var ewe,twe,bot=I({"src/services/formatting/formattingScanner.ts"(){si(),a8(),ewe=Nv(99,!1,0),twe=Nv(99,!1,1)}}),Rz,I_e,x_e,Eot=I({"src/services/formatting/rule.ts"(){si(),Rz=et,I_e=(e=>(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(I_e||{}),x_e=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(x_e||{})}});function nwe(){const e=[];for(let se=0;se<=165;se++)se!==1&&e.push(se);function t(...se){return{tokens:e.filter(G=>!se.some(ne=>ne===G)),isSpecific:!1}}const r={tokens:e,isSpecific:!1},i=TM([...e,3]),o=TM([...e,1]),s=iwe(83,165),l=iwe(30,79),u=[103,104,165,130,142,152],p=[46,47,55,54],h=[9,10,80,21,23,19,110,105],m=[80,21,110,105],y=[80,22,24,105],T=[80,21,110,105],A=[80,22,24,105],R=[2,3],M=[80,...A5],C=i,O=TM([80,32,3,86,95,102]),U=TM([22,3,92,113,98,93,85]),K=[Xr("IgnoreBeforeComment",r,R,Rz,1),Xr("IgnoreAfterLineComment",2,r,Rz,1),Xr("NotSpaceBeforeColon",r,59,[Ji,Dz,swe],16),Xr("SpaceAfterColon",59,r,[Ji,Dz,Fot],4),Xr("NoSpaceBeforeQuestionMark",r,58,[Ji,Dz,swe],16),Xr("SpaceAfterQuestionMarkInConditionalOperator",58,r,[Ji,Iot],4),Xr("NoSpaceAfterQuestionMark",58,r,[Ji,Aot],16),Xr("NoSpaceBeforeDot",r,[25,29],[Ji,$ot],16),Xr("NoSpaceAfterDot",[25,29],r,[Ji],16),Xr("NoSpaceBetweenImportParenInImportType",102,21,[Ji,Oot],16),Xr("NoSpaceAfterUnaryPrefixOperator",p,h,[Ji,Dz],16),Xr("NoSpaceAfterUnaryPreincrementOperator",46,m,[Ji],16),Xr("NoSpaceAfterUnaryPredecrementOperator",47,T,[Ji],16),Xr("NoSpaceBeforeUnaryPostincrementOperator",y,46,[Ji,Twe],16),Xr("NoSpaceBeforeUnaryPostdecrementOperator",A,47,[Ji,Twe],16),Xr("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Ji,ib],4),Xr("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Ji,ib],4),Xr("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Ji,ib],4),Xr("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Ji,ib],4),Xr("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Ji,ib],4),Xr("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Ji,ib],4),Xr("NoSpaceAfterCloseBrace",20,[28,27],[Ji],16),Xr("NewLineBeforeCloseBraceInBlockContext",i,20,[cwe],8),Xr("SpaceAfterCloseBrace",20,t(22),[Ji,Dot],4),Xr("SpaceBetweenCloseBraceAndElse",20,93,[Ji],4),Xr("SpaceBetweenCloseBraceAndWhile",20,117,[Ji],4),Xr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ji,_we],16),Xr("SpaceAfterConditionalClosingParen",22,23,[Nz],4),Xr("NoSpaceBetweenFunctionKeywordAndStar",100,42,[pwe],16),Xr("SpaceAfterStarInGeneratorDeclaration",42,80,[pwe],4),Xr("SpaceAfterFunctionInFuncDecl",100,r,[sT],4),Xr("NewLineAfterOpenBraceInBlockContext",19,r,[cwe],8),Xr("SpaceAfterGetSetInMember",[139,153],80,[sT],4),Xr("NoSpaceBetweenYieldKeywordAndStar",127,42,[Ji,Swe],16),Xr("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[Ji,Swe],4),Xr("NoSpaceBetweenReturnAndSemicolon",107,27,[Ji],16),Xr("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],r,[Ji],4),Xr("SpaceAfterLetConstInVariableDeclaration",[121,87],r,[Ji,Got],4),Xr("NoSpaceBeforeOpenParenInFuncCall",r,21,[Ji,Pot,Mot],16),Xr("SpaceBeforeBinaryKeywordOperator",r,u,[Ji,ib],4),Xr("SpaceAfterBinaryKeywordOperator",u,r,[Ji,ib],4),Xr("SpaceAfterVoidOperator",116,r,[Ji,qot],4),Xr("SpaceBetweenAsyncAndOpenParen",134,21,[wot,Ji],4),Xr("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Ji],4),Xr("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Ji],16),Xr("SpaceBeforeJsxAttribute",r,80,[Wot,Ji],4),Xr("SpaceBeforeSlashInJsxOpeningElement",r,44,[ywe,Ji],4),Xr("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[ywe,Ji],16),Xr("NoSpaceBeforeEqualInJsxAttribute",r,64,[gwe,Ji],16),Xr("NoSpaceAfterEqualInJsxAttribute",64,r,[gwe,Ji],16),Xr("NoSpaceBeforeJsxNamespaceColon",80,59,[vwe],16),Xr("NoSpaceAfterJsxNamespaceColon",59,80,[vwe],16),Xr("NoSpaceAfterModuleImport",[144,149],21,[Ji],16),Xr("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,[Ji],4),Xr("SpaceBeforeCertainTypeScriptKeywords",r,[96,119,161],[Ji],4),Xr("SpaceAfterModuleName",11,19,[Vot],4),Xr("SpaceBeforeArrow",r,39,[Ji],4),Xr("SpaceAfterArrow",39,r,[Ji],4),Xr("NoSpaceAfterEllipsis",26,80,[Ji],16),Xr("NoSpaceAfterOptionalParameters",58,[22,28],[Ji,Dz],16),Xr("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Ji,jot],16),Xr("NoSpaceBeforeOpenAngularBracket",M,30,[Ji,Cz],16),Xr("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Ji,Cz],16),Xr("NoSpaceAfterOpenAngularBracket",30,r,[Ji,Cz],16),Xr("NoSpaceBeforeCloseAngularBracket",r,32,[Ji,Cz],16),Xr("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Ji,Cz,Rot,Hot],16),Xr("SpaceBeforeAt",[22,80],60,[Ji],4),Xr("NoSpaceAfterAt",60,r,[Ji],16),Xr("SpaceAfterDecorator",r,[128,80,95,90,86,126,125,123,124,139,153,23,42],[Bot],4),Xr("NoSpaceBeforeNonNullAssertionOperator",r,54,[Ji,Jot],16),Xr("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Ji,Uot],16),Xr("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Ji],4)],Q=[Xr("SpaceAfterConstructor",137,21,[uf("insertSpaceAfterConstructor"),Ji],4),Xr("NoSpaceAfterConstructor",137,21,[B_("insertSpaceAfterConstructor"),Ji],16),Xr("SpaceAfterComma",28,r,[uf("insertSpaceAfterCommaDelimiter"),Ji,L_e,Lot,kot],4),Xr("NoSpaceAfterComma",28,r,[B_("insertSpaceAfterCommaDelimiter"),Ji,L_e],16),Xr("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[uf("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),sT],4),Xr("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[B_("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),sT],16),Xr("SpaceAfterKeywordInControl",s,21,[uf("insertSpaceAfterKeywordsInControlFlowStatements"),Nz],4),Xr("NoSpaceAfterKeywordInControl",s,21,[B_("insertSpaceAfterKeywordsInControlFlowStatements"),Nz],16),Xr("SpaceAfterOpenParen",21,r,[uf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],4),Xr("SpaceBeforeCloseParen",r,22,[uf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],4),Xr("SpaceBetweenOpenParens",21,21,[uf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],4),Xr("NoSpaceBetweenParens",21,22,[Ji],16),Xr("NoSpaceAfterOpenParen",21,r,[B_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],16),Xr("NoSpaceBeforeCloseParen",r,22,[B_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],16),Xr("SpaceAfterOpenBracket",23,r,[uf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ji],4),Xr("SpaceBeforeCloseBracket",r,24,[uf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ji],4),Xr("NoSpaceBetweenBrackets",23,24,[Ji],16),Xr("NoSpaceAfterOpenBracket",23,r,[B_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ji],16),Xr("NoSpaceBeforeCloseBracket",r,24,[B_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ji],16),Xr("SpaceAfterOpenBrace",19,r,[awe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),lwe],4),Xr("SpaceBeforeCloseBrace",r,20,[awe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),lwe],4),Xr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ji,_we],16),Xr("NoSpaceAfterOpenBrace",19,r,[R_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ji],16),Xr("NoSpaceBeforeCloseBrace",r,20,[R_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ji],16),Xr("SpaceBetweenEmptyBraceBrackets",19,20,[uf("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Xr("NoSpaceBetweenEmptyBraceBrackets",19,20,[R_e("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Ji],16),Xr("SpaceAfterTemplateHeadAndMiddle",[16,17],r,[uf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),hwe],4,1),Xr("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[uf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ji],4),Xr("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[B_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),hwe],16,1),Xr("NoSpaceBeforeTemplateMiddleAndTail",r,[17,18],[B_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ji],16),Xr("SpaceAfterOpenBraceInJsxExpression",19,r,[uf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,kQ],4),Xr("SpaceBeforeCloseBraceInJsxExpression",r,20,[uf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,kQ],4),Xr("NoSpaceAfterOpenBraceInJsxExpression",19,r,[B_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,kQ],16),Xr("NoSpaceBeforeCloseBraceInJsxExpression",r,20,[B_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,kQ],16),Xr("SpaceAfterSemicolonInFor",27,r,[uf("insertSpaceAfterSemicolonInForStatements"),Ji,N_e],4),Xr("NoSpaceAfterSemicolonInFor",27,r,[B_("insertSpaceAfterSemicolonInForStatements"),Ji,N_e],16),Xr("SpaceBeforeBinaryOperator",r,l,[uf("insertSpaceBeforeAndAfterBinaryOperators"),Ji,ib],4),Xr("SpaceAfterBinaryOperator",l,r,[uf("insertSpaceBeforeAndAfterBinaryOperators"),Ji,ib],4),Xr("NoSpaceBeforeBinaryOperator",r,l,[B_("insertSpaceBeforeAndAfterBinaryOperators"),Ji,ib],16),Xr("NoSpaceAfterBinaryOperator",l,r,[B_("insertSpaceBeforeAndAfterBinaryOperators"),Ji,ib],16),Xr("SpaceBeforeOpenParenInFuncDecl",r,21,[uf("insertSpaceBeforeFunctionParenthesis"),Ji,sT],4),Xr("NoSpaceBeforeOpenParenInFuncDecl",r,21,[B_("insertSpaceBeforeFunctionParenthesis"),Ji,sT],16),Xr("NewLineBeforeOpenBraceInControl",U,19,[uf("placeOpenBraceOnNewLineForControlBlocks"),Nz,M_e],8,1),Xr("NewLineBeforeOpenBraceInFunction",C,19,[uf("placeOpenBraceOnNewLineForFunctions"),sT,M_e],8,1),Xr("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",O,19,[uf("placeOpenBraceOnNewLineForFunctions"),fwe,M_e],8,1),Xr("SpaceAfterTypeAssertion",32,r,[uf("insertSpaceAfterTypeAssertion"),Ji,w_e],4),Xr("NoSpaceAfterTypeAssertion",32,r,[B_("insertSpaceAfterTypeAssertion"),Ji,w_e],16),Xr("SpaceBeforeTypeAnnotation",r,[58,59],[uf("insertSpaceBeforeTypeAnnotation"),Ji,C_e],4),Xr("NoSpaceBeforeTypeAnnotation",r,[58,59],[B_("insertSpaceBeforeTypeAnnotation"),Ji,C_e],16),Xr("NoOptionalSemicolon",27,o,[owe("semicolons","remove"),Xot],32),Xr("OptionalSemicolon",r,o,[owe("semicolons","insert"),Yot],64)],V=[Xr("NoSpaceBeforeSemicolon",r,27,[Ji],16),Xr("SpaceBeforeOpenBraceInControl",U,19,[D_e("placeOpenBraceOnNewLineForControlBlocks"),Nz,k_e,P_e],4,1),Xr("SpaceBeforeOpenBraceInFunction",C,19,[D_e("placeOpenBraceOnNewLineForFunctions"),sT,LQ,k_e,P_e],4,1),Xr("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",O,19,[D_e("placeOpenBraceOnNewLineForFunctions"),fwe,k_e,P_e],4,1),Xr("NoSpaceBeforeComma",r,28,[Ji],16),Xr("NoSpaceBeforeOpenBracket",t(134,84),23,[Ji],16),Xr("NoSpaceAfterCloseBracket",24,r,[Ji,zot],16),Xr("SpaceAfterSemicolon",27,r,[Ji],4),Xr("SpaceBetweenForAndAwaitKeyword",99,135,[Ji],4),Xr("SpaceBetweenStatements",[22,92,93,84],r,[Ji,L_e,Sot],4),Xr("SpaceAfterTryCatchFinally",[113,85,98],19,[Ji],4)];return[...K,...Q,...V]}function Xr(e,t,r,i,o,s=0){return{leftTokenRange:rwe(t),rightTokenRange:rwe(r),rule:{debugName:e,context:i,action:o,flags:s}}}function TM(e){return{tokens:e,isSpecific:!0}}function rwe(e){return typeof e=="number"?TM([e]):To(e)?TM(e):e}function iwe(e,t,r=[]){const i=[];for(let o=e;o<=t;o++)Or(r,o)||i.push(o);return TM(i)}function owe(e,t){return r=>r.options&&r.options[e]===t}function uf(e){return t=>t.options&&Is(t.options,e)&&!!t.options[e]}function R_e(e){return t=>t.options&&Is(t.options,e)&&!t.options[e]}function B_(e){return t=>!t.options||!Is(t.options,e)||!t.options[e]}function D_e(e){return t=>!t.options||!Is(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function awe(e){return t=>!t.options||!Is(t.options,e)||!!t.options[e]}function N_e(e){return e.contextNode.kind===248}function Sot(e){return!N_e(e)}function ib(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 Dz(e){return!ib(e)}function swe(e){return!C_e(e)}function C_e(e){const t=e.contextNode.kind;return t===172||t===171||t===169||t===260||TA(t)}function Tot(e){return qo(e.contextNode)&&e.contextNode.questionToken}function Aot(e){return!Tot(e)}function Iot(e){return e.contextNode.kind===227||e.contextNode.kind===194}function P_e(e){return e.TokensAreOnSameLine()||LQ(e)}function lwe(e){return e.contextNode.kind===206||e.contextNode.kind===200||xot(e)}function M_e(e){return LQ(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function cwe(e){return uwe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function xot(e){return uwe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function uwe(e){return dwe(e.contextNode)}function LQ(e){return dwe(e.nextTokenParent)}function dwe(e){if(mwe(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function sT(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 Rot(e){return!sT(e)}function pwe(e){return e.contextNode.kind===262||e.contextNode.kind===218}function fwe(e){return mwe(e.contextNode)}function mwe(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 Dot(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const t=e.currentTokenParent.parent;if(!t||t.kind!==219&&t.kind!==218)return!0}}return!1}function Nz(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 _we(e){return e.contextNode.kind===210}function Not(e){return e.contextNode.kind===213}function Cot(e){return e.contextNode.kind===214}function Pot(e){return Not(e)||Cot(e)}function Mot(e){return e.currentTokenSpan.kind!==28}function Lot(e){return e.nextTokenSpan.kind!==24}function kot(e){return e.nextTokenSpan.kind!==22}function wot(e){return e.contextNode.kind===219}function Oot(e){return e.contextNode.kind===205}function Ji(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function hwe(e){return e.contextNode.kind!==12}function L_e(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function kQ(e){return e.contextNode.kind===294||e.contextNode.kind===293}function Wot(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function gwe(e){return e.contextNode.kind===291}function Fot(e){return e.nextTokenParent.kind!==295}function vwe(e){return e.nextTokenParent.kind===295}function ywe(e){return e.contextNode.kind===285}function zot(e){return!sT(e)&&!LQ(e)}function Bot(e){return e.TokensAreOnSameLine()&&Tf(e.contextNode)&&bwe(e.currentTokenParent)&&!bwe(e.nextTokenParent)}function bwe(e){for(;e&&yt(e);)e=e.parent;return e&&e.kind===170}function Got(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function k_e(e){return e.formattingRequestKind!==2}function Vot(e){return e.contextNode.kind===267}function jot(e){return e.contextNode.kind===187}function Uot(e){return e.contextNode.kind===180}function Ewe(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 Cz(e){return Ewe(e.currentTokenSpan,e.currentTokenParent)||Ewe(e.nextTokenSpan,e.nextTokenParent)}function w_e(e){return e.contextNode.kind===216}function Hot(e){return!w_e(e)}function qot(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function Swe(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function Jot(e){return e.contextNode.kind===235}function Twe(e){return!Kot(e)}function Kot(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function Xot(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(yR(t)){const s=e.nextTokenParent===e.currentTokenParent?m1(e.currentTokenParent,Vn(e.currentTokenParent,l=>!l.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!s)return!0;t=s.kind,r=s.getStart(e.sourceFile)}const 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:qo(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 Yot(e){return f5(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function $ot(e){return!Fr(e.contextNode)||!hp(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}var Qot=I({"src/services/formatting/rules.ts"(){si(),a8()}});function Zot(e,t){return{options:e,getRules:eat(),host:t}}function eat(){return O_e===void 0&&(O_e=nat(nwe())),O_e}function tat(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function nat(e){const t=rat(e);return r=>{const i=t[Awe(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){const o=[];let s=0;for(const l of i){const u=~tat(s);l.action&u&&Jn(l.context,p=>p(r))&&(o.push(l),s|=l.action)}if(o.length)return o}}}function rat(e){const t=new Array(wQ*wQ),r=new Array(t.length);for(const i of e){const o=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(const s of i.leftTokenRange.tokens)for(const l of i.rightTokenRange.tokens){const u=Awe(s,l);let p=t[u];p===void 0&&(p=t[u]=[]),iat(p,i.rule,o,r,u)}}return t}function Awe(e,t){return N.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*wQ+t}function iat(e,t,r,i,o){const s=t.action&3?r?0:AM.StopRulesAny:t.context!==Rz?r?AM.ContextRulesSpecific:AM.ContextRulesAny:r?AM.NoContextRulesSpecific:AM.NoContextRulesAny,l=i[o]||0;e.splice(oat(l,s),0,t),i[o]=aat(l,s)}function oat(e,t){let r=0;for(let i=0;i<=t;i+=VD)r+=e&Pz,e>>=VD;return r}function aat(e,t){const r=(e>>t&Pz)+1;return N.assert((r&Pz)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(Pz<<t)|r<<t}var O_e,VD,Pz,wQ,AM,sat=I({"src/services/formatting/rulesMap.ts"(){si(),a8(),VD=5,Pz=31,wQ=166,AM=(e=>(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=VD*1]="StopRulesAny",e[e.ContextRulesSpecific=VD*2]="ContextRulesSpecific",e[e.ContextRulesAny=VD*3]="ContextRulesAny",e[e.NoContextRulesSpecific=VD*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=VD*5]="NoContextRulesAny",e))(AM||{})}});function OQ(e,t,r){const i={pos:e,end:t,kind:r};return N.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>N.formatSyntaxKind(r)}),i}function lat(e,t,r){const i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let o=EL(i,t);for(;E_(t.text.charCodeAt(o));)o--;Hu(t.text.charCodeAt(o))&&o--;const s={pos:wy(i-1,t),end:o+1};return Mz(s,t,r,2)}function cat(e,t,r){const i=W_e(e,27,t);return Iwe(F_e(i),t,r,3)}function uat(e,t,r){const i=W_e(e,19,t);if(!i)return[];const o=i.parent,s=F_e(o),l={pos:am(s.getStart(t),t),end:e};return Mz(l,t,r,4)}function dat(e,t,r){const i=W_e(e,20,t);return Iwe(F_e(i),t,r,5)}function pat(e,t){const r={pos:0,end:e.text.length};return Mz(r,e,t,0)}function fat(e,t,r,i){const o={pos:am(e,r),end:t};return Mz(o,r,i,1)}function W_e(e,t,r){const i=Ic(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function F_e(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!mat(t.parent,t);)t=t.parent;return t}function mat(e,t){switch(e.kind){case 263:case 264:return sf(e.members,t);case 267:const r=e.body;return!!r&&r.kind===268&&sf(r.statements,t);case 312:case 241:case 268:return sf(e.statements,t);case 299:return sf(e.block.statements,t)}return!1}function _at(e,t){return r(t);function r(i){const o=Uo(i,s=>MK(s.getStart(t),s.end,e)&&s);if(o){const s=r(o);if(s)return s}return i}}function hat(e,t){if(!e.length)return o;const r=e.filter(s=>tM(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;const l=r[i];if(s.end<=l.start)return!1;if(j7(s.pos,s.end,l.start,l.start+l.length))return!0;i++}};function o(){return!1}}function gat(e,t,r){const i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;const o=Ic(t.pos,r);return!o||o.end>=t.pos?e.pos:o.end}function vat(e,t,r){let i=-1,o;for(;e;){const s=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&s!==i)break;if(G_.shouldIndentChildNode(t,e,o,r))return t.indentSize;i=s,o=e,e=e.parent}return 0}function yat(e,t,r,i,o,s){const l={pos:e.pos,end:e.end};return A_e(t.text,r,l.pos,l.end,u=>xwe(l,e,i,o,u,s,1,p=>!1,t))}function Iwe(e,t,r,i){if(!e)return[];const o={pos:am(e.getStart(t),t),end:e.end};return Mz(o,t,r,i)}function Mz(e,t,r,i){const o=_at(e,t);return A_e(t.text,t.languageVariant,gat(o,e,t),e.end,s=>xwe(e,o,G_.getIndentationForNode(o,e,t,r.options),vat(o,r.options,t),s,r,i,hat(t.parseDiagnostics,e),t))}function xwe(e,t,r,i,o,{options:s,getRules:l,host:u},p,h,m){var y;const T=new T_e(m,p,s);let A,R,M,C,O,U=-1;const K=[];if(o.advance(),o.isOnToken()){const Se=m.getLineAndCharacterOfPosition(t.getStart(m)).line;let je=Se;Tf(t)&&(je=m.getLineAndCharacterOfPosition($V(t,m)).line),he(t,t,Se,je,r,i)}const Q=o.getCurrentLeadingTrivia();if(Q){const Se=G_.nodeWillIndentChild(s,t,void 0,m,!1)?r+s.indentSize:r;ye(Q,Se,!0,je=>{X(je,m.getLineAndCharacterOfPosition(je.pos),t,t,void 0),pe(je.pos,Se,!1)}),s.trimTrailingWhitespace!==!1&&Ue(Q)}if(R&&o.getTokenFullStart()>=e.end){const Se=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(t).token:void 0;if(Se&&Se.pos===A){const je=((y=Ic(Se.end,m,t))==null?void 0:y.parent)||M;oe(Se,m.getLineAndCharacterOfPosition(Se.pos).line,je,R,C,M,je,void 0)}}return K;function V(Se,je,ot,Bt,vt){if(tM(Bt,Se,je)||rO(Bt,Se,je)){if(vt!==-1)return vt}else{const $e=m.getLineAndCharacterOfPosition(Se).line,It=am(Se,m),tn=G_.findFirstNonWhitespaceColumn(It,Se,m,s);if($e!==ot||Se===tn){const rn=G_.getBaseIndentation(s);return rn>tn?rn:tn}}return-1}function se(Se,je,ot,Bt,vt,$e){const It=G_.shouldIndentChildNode(s,Se)?s.indentSize:0;return $e===je?{indentation:je===O?U:vt.getIndentation(),delta:Math.min(s.indentSize,vt.getDelta(Se)+It)}:ot===-1?Se.kind===21&&je===O?{indentation:U,delta:vt.getDelta(Se)}:G_.childStartsOnTheSameLineWithElseInIfStatement(Bt,Se,je,m)||G_.childIsUnindentedBranchOfConditionalExpression(Bt,Se,je,m)||G_.argumentStartsOnSameLineAsPreviousArgument(Bt,Se,je,m)?{indentation:vt.getIndentation(),delta:It}:{indentation:vt.getIndentation()+vt.getDelta(Se),delta:It}:{indentation:ot,delta:It}}function G(Se){if(Rm(Se)){const je=In(Se.modifiers,Aa,mi(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:const je=Lo(Se);if(je)return je.kind}}function ne(Se,je,ot,Bt){return{getIndentationForComment:(It,tn,rn)=>{switch(It){case 20:case 24:case 22:return ot+$e(rn)}return tn!==-1?tn:ot},getIndentationForToken:(It,tn,rn,Mn)=>!Mn&&vt(It,tn,rn)?ot+$e(rn):ot,getIndentation:()=>ot,getDelta:$e,recomputeIndentation:(It,tn)=>{G_.shouldIndentChildNode(s,tn,Se,m)&&(ot+=It?s.indentSize:-s.indentSize,Bt=G_.shouldIndentChildNode(s,Se)?s.indentSize:0)}};function vt(It,tn,rn){switch(tn){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!==It&&!(Tf(Se)&&tn===G(Se))}function $e(It){return G_.nodeWillIndentChild(s,Se,It,m,!0)?Bt:0}}function he(Se,je,ot,Bt,vt,$e){if(!tM(e,Se.getStart(m),Se.getEnd()))return;const It=ne(Se,ot,vt,$e);let tn=je;for(Uo(Se,gn=>{rn(gn,-1,Se,It,ot,Bt,!1)},gn=>{Mn(gn,Se,ot,It)});o.isOnToken()&&o.getTokenFullStart()<e.end;){const gn=o.readTokenInfo(Se);if(gn.token.end>Math.min(Se.end,e.end))break;$n(gn,Se,It,Se)}function rn(gn,Qt,Yt,vi,so,Wi,Co,Ln){if(N.assert(!Ys(gn)),Fl(gn)||wre(Yt,gn))return Qt;const Ci=gn.getStart(m),Ar=m.getLineAndCharacterOfPosition(Ci).line;let sn=Ar;Tf(gn)&&(sn=m.getLineAndCharacterOfPosition($V(gn,m)).line);let tt=-1;if(Co&&sf(e,Yt)&&(tt=V(Ci,gn.end,so,e,Qt),tt!==-1&&(Qt=tt)),!tM(e,gn.pos,gn.end))return gn.end<e.pos&&o.skipToEndOf(gn),Qt;if(gn.getFullWidth()===0)return Qt;for(;o.isOnToken()&&o.getTokenFullStart()<e.end;){const ci=o.readTokenInfo(Se);if(ci.token.end>e.end)return Qt;if(ci.token.end>Ci){ci.token.pos>Ci&&o.skipToStartOf(gn);break}$n(ci,Se,vi,Se)}if(!o.isOnToken()||o.getTokenFullStart()>=e.end)return Qt;if(EA(gn)){const ci=o.readTokenInfo(gn);if(gn.kind!==12)return N.assert(ci.token.end===gn.end,"Token end is child end"),$n(ci,Se,vi,gn),Qt}const zt=gn.kind===170?Ar:Wi,Dn=se(gn,Ar,tt,Se,vi,zt);return he(gn,tn,Ar,sn,Dn.indentation,Dn.delta),tn=Se,Ln&&Yt.kind===209&&Qt===-1&&(Qt=Dn.indentation),Qt}function Mn(gn,Qt,Yt,vi){N.assert(RE(gn)),N.assert(!Ys(gn));const so=bat(Qt,gn);let Wi=vi,Co=Yt;if(!tM(e,gn.pos,gn.end)){gn.end<e.pos&&o.skipToEndOf(gn);return}if(so!==0)for(;o.isOnToken()&&o.getTokenFullStart()<e.end;){const Ar=o.readTokenInfo(Qt);if(Ar.token.end>gn.pos)break;if(Ar.token.kind===so){Co=m.getLineAndCharacterOfPosition(Ar.token.pos).line,$n(Ar,Qt,vi,Qt);let sn;if(U!==-1)sn=U;else{const tt=am(Ar.token.pos,m);sn=G_.findFirstNonWhitespaceColumn(tt,Ar.token.pos,m,s)}Wi=ne(Qt,Yt,sn,s.indentSize)}else $n(Ar,Qt,vi,Qt)}let Ln=-1;for(let Ar=0;Ar<gn.length;Ar++){const sn=gn[Ar];Ln=rn(sn,Ln,Se,Wi,Co,Co,!0,Ar===0)}const Ci=Eat(so);if(Ci!==0&&o.isOnToken()&&o.getTokenFullStart()<e.end){let Ar=o.readTokenInfo(Qt);Ar.token.kind===28&&($n(Ar,Qt,Wi,Qt),Ar=o.isOnToken()?o.readTokenInfo(Qt):void 0),Ar&&Ar.token.kind===Ci&&sf(Qt,Ar.token)&&$n(Ar,Qt,Wi,Qt,!0)}}function $n(gn,Qt,Yt,vi,so){N.assert(sf(Qt,gn.token));const Wi=o.lastTrailingTriviaWasNewLine();let Co=!1;gn.leadingTrivia&&Y(gn.leadingTrivia,Qt,tn,Yt);let Ln=0;const Ci=sf(e,gn.token),Ar=m.getLineAndCharacterOfPosition(gn.token.pos);if(Ci){const sn=h(gn.token),tt=R;if(Ln=X(gn.token,Ar,Qt,tn,Yt),!sn)if(Ln===0){const zt=tt&&m.getLineAndCharacterOfPosition(tt.end).line;Co=Wi&&Ar.line!==zt}else Co=Ln===1}if(gn.trailingTrivia&&(A=Xa(gn.trailingTrivia).end,Y(gn.trailingTrivia,Qt,tn,Yt)),Co){const sn=Ci&&!h(gn.token)?Yt.getIndentationForToken(Ar.line,gn.token.kind,vi,!!so):-1;let tt=!0;if(gn.leadingTrivia){const zt=Yt.getIndentationForComment(gn.token.kind,sn,vi);tt=ye(gn.leadingTrivia,zt,tt,Dn=>pe(Dn.pos,zt,!1))}sn!==-1&&tt&&(pe(gn.token.pos,sn,Ln===1),O=Ar.line,U=sn)}o.advance(),tn=Qt}}function ye(Se,je,ot,Bt){for(const vt of Se){const $e=sf(e,vt);switch(vt.kind){case 3:$e&&ie(vt,je,!ot),ot=!1;break;case 2:ot&&$e&&Bt(vt),ot=!1;break;case 4:ot=!0;break}}return ot}function Y(Se,je,ot,Bt){for(const vt of Se)if($7(vt.kind)&&sf(e,vt)){const $e=m.getLineAndCharacterOfPosition(vt.pos);X(vt,$e,je,ot,Bt)}}function X(Se,je,ot,Bt,vt){const $e=h(Se);let It=0;if(!$e)if(R)It=oe(Se,je.line,ot,R,C,M,Bt,vt);else{const tn=m.getLineAndCharacterOfPosition(e.pos);ve(tn.line,je.line)}return R=Se,A=Se.end,M=ot,C=je.line,It}function oe(Se,je,ot,Bt,vt,$e,It,tn){T.updateContext(Bt,$e,Se,ot,It);const rn=l(T);let Mn=T.options.trimTrailingWhitespace!==!1,$n=0;return rn?$t(rn,gn=>{if($n=At(gn,Bt,vt,Se,je),tn)switch($n){case 2:ot.getStart(m)===Se.pos&&tn.recomputeIndentation(!1,It);break;case 1:ot.getStart(m)===Se.pos&&tn.recomputeIndentation(!0,It);break;default:N.assert($n===0)}Mn=Mn&&!(gn.action&16)&&gn.flags!==1}):Mn=Mn&&Se.kind!==1,je!==vt&&Mn&&ve(vt,je,Bt),$n}function pe(Se,je,ot){const Bt=z_e(je,s);if(ot)Me(Se,0,Bt);else{const vt=m.getLineAndCharacterOfPosition(Se),$e=wy(vt.line,m);(je!==Ce($e,vt.character)||de(Bt,$e))&&Me($e,vt.character,Bt)}}function Ce(Se,je){let ot=0;for(let Bt=0;Bt<je;Bt++)m.text.charCodeAt(Se+Bt)===9?ot+=s.tabSize-ot%s.tabSize:ot++;return ot}function de(Se,je){return Se!==m.text.substr(je,Se.length)}function ie(Se,je,ot,Bt=!0){let vt=m.getLineAndCharacterOfPosition(Se.pos).line;const $e=m.getLineAndCharacterOfPosition(Se.end).line;if(vt===$e){ot||pe(Se.pos,je,!1);return}const It=[];let tn=Se.pos;for(let Qt=vt;Qt<$e;Qt++){const Yt=EL(Qt,m);It.push({pos:tn,end:Yt}),tn=wy(Qt+1,m)}if(Bt&&It.push({pos:tn,end:Se.end}),It.length===0)return;const rn=wy(vt,m),Mn=G_.findFirstNonWhitespaceCharacterAndColumn(rn,It[0].pos,m,s);let $n=0;ot&&($n=1,vt++);const gn=je-Mn.column;for(let Qt=$n;Qt<It.length;Qt++,vt++){const Yt=wy(vt,m),vi=Qt===0?Mn:G_.findFirstNonWhitespaceCharacterAndColumn(It[Qt].pos,It[Qt].end,m,s),so=vi.column+gn;if(so>0){const Wi=z_e(so,s);Me(Yt,vi.character,Wi)}else De(Yt,vi.character)}}function ve(Se,je,ot){for(let Bt=Se;Bt<je;Bt++){const vt=wy(Bt,m),$e=EL(Bt,m);if(ot&&($7(ot.kind)||zK(ot.kind))&&ot.pos<=$e&&ot.end>$e)continue;const It=Le(vt,$e);It!==-1&&(N.assert(It===vt||!E_(m.text.charCodeAt(It-1))),De(It,$e+1-It))}}function Le(Se,je){let ot=je;for(;ot>=Se&&E_(m.text.charCodeAt(ot));)ot--;return ot!==je?ot+1:-1}function Ue(Se){let je=R?R.end:e.pos;for(const ot of Se)$7(ot.kind)&&(je<ot.pos&&Ee(je,ot.pos-1,R),je=ot.end+1);je<e.end&&Ee(je,e.end,R)}function Ee(Se,je,ot){const Bt=m.getLineAndCharacterOfPosition(Se).line,vt=m.getLineAndCharacterOfPosition(je).line;ve(Bt,vt+1,ot)}function De(Se,je){je&&K.push(Z7(Se,je,""))}function Me(Se,je,ot){(je||ot)&&K.push(Z7(Se,je,ot))}function We(Se,je){je&&K.push(Z7(Se,0,je))}function At(Se,je,ot,Bt,vt){const $e=vt!==ot;switch(Se.action){case 1:return 0;case 16:if(je.end!==Bt.pos)return De(je.end,Bt.pos-je.end),$e?2:0;break;case 32:De(je.pos,je.end-je.pos);break;case 8:if(Se.flags!==1&&ot!==vt)return 0;if(vt-ot!==1)return Me(je.end,Bt.pos-je.end,Xv(u,s)),$e?0:1;break;case 4:if(Se.flags!==1&&ot!==vt)return 0;if(Bt.pos-je.end!==1||m.text.charCodeAt(je.end)!==32)return Me(je.end,Bt.pos-je.end," "),$e?2:0;break;case 64:We(je.end,";")}return 0}}function Rwe(e,t,r,i=po(e,t)){const o=Vn(i,Zm);if(o&&(i=o.parent),i.getStart(e)<=t&&t<i.getEnd())return;r=r===null?void 0:r===void 0?Ic(t,e):r;const l=r&&Zb(e.text,r.end),u=uj(i,e),p=So(l,u);return p&&In(p,h=>nO(h,t)||t===h.end&&(h.kind===2||t===e.getFullWidth()))}function bat(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 Eat(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function z_e(e,t){if((!WQ||WQ.tabSize!==t.tabSize||WQ.indentSize!==t.indentSize)&&(WQ={tabSize:t.tabSize,indentSize:t.indentSize},i8=o8=void 0),t.convertTabsToSpaces){let i;const o=Math.floor(e/t.indentSize),s=e%t.indentSize;return o8||(o8=[]),o8[o]===void 0?(i=cO(" ",t.indentSize*o),o8[o]=i):i=o8[o],s?i+cO(" ",s):i}else{const i=Math.floor(e/t.tabSize),o=e-i*t.tabSize;let s;return i8||(i8=[]),i8[i]===void 0?i8[i]=s=cO(" ",i):s=i8[i],o?s+cO(" ",o):s}}var WQ,i8,o8,Sat=I({"src/services/formatting/formatting.ts"(){si(),a8()}}),G_,Tat=I({"src/services/formatting/smartIndenter.ts"(){si(),a8(),(e=>{let t;(ie=>{ie[ie.Unknown=-1]="Unknown"})(t||(t={}));function r(ie,ve,Le,Ue=!1){if(ie>ve.text.length)return u(Le);if(Le.indentStyle===0)return 0;const Ee=Ic(ie,ve,void 0,!0),De=Rwe(ve,ie,Ee||null);if(De&&De.kind===3)return i(ve,ie,Le,De);if(!Ee)return u(Le);if(zK(Ee.kind)&&Ee.getStart(ve)<=ie&&ie<Ee.end)return 0;const We=ve.getLineAndCharacterOfPosition(ie).line,At=po(ve,ie),Se=At.kind===19&&At.parent.kind===210;if(Le.indentStyle===1||Se)return o(ve,ie,Le);if(Ee.kind===28&&Ee.parent.kind!==226){const ot=m(Ee,ve,Le);if(ot!==-1)return ot}const je=Q(ie,Ee.parent,ve);if(je&&!sf(je,Ee)){const Bt=[218,219].includes(At.parent.kind)?0:Le.indentSize;return G(je,ve,Le)+Bt}return s(ve,ie,Ee,We,Ue,Le)}e.getIndentation=r;function i(ie,ve,Le,Ue){const Ee=ys(ie,ve).line-1,De=ys(ie,Ue.pos).line;if(N.assert(De>=0),Ee<=De)return X(wy(De,ie),ve,ie,Le);const Me=wy(Ee,ie),{column:We,character:At}=Y(Me,ve,ie,Le);return We===0?We:ie.text.charCodeAt(Me+At)===42?We-1:We}function o(ie,ve,Le){let Ue=ve;for(;Ue>0;){const De=ie.text.charCodeAt(Ue);if(!Cg(De))break;Ue--}const Ee=am(Ue,ie);return X(Ee,Ue,ie,Le)}function s(ie,ve,Le,Ue,Ee,De){let Me,We=Le;for(;We;){if(LK(We,ve,ie)&&Ce(De,We,Me,ie,!0)){const Se=R(We,ie),je=A(Le,We,Ue,ie),ot=je!==0?Ee&&je===2?De.indentSize:0:Ue!==Se.line?De.indentSize:0;return p(We,Se,void 0,ot,ie,!0,De)}const At=ne(We,ie,De,!0);if(At!==-1)return At;Me=We,We=We.parent}return u(De)}function l(ie,ve,Le,Ue){const Ee=Le.getLineAndCharacterOfPosition(ie.getStart(Le));return p(ie,Ee,ve,0,Le,!1,Ue)}e.getIndentationForNode=l;function u(ie){return ie.baseIndentSize||0}e.getBaseIndentation=u;function p(ie,ve,Le,Ue,Ee,De,Me){var We;let At=ie.parent;for(;At;){let Se=!0;if(Le){const vt=ie.getStart(Ee);Se=vt<Le.pos||vt>Le.end}const je=h(At,ie,Ee),ot=je.line===ve.line||C(At,ie,ve.line,Ee);if(Se){const vt=(We=K(ie,Ee))==null?void 0:We[0],$e=!!vt&&R(vt,Ee).line>je.line;let It=ne(ie,Ee,Me,$e);if(It!==-1||(It=y(ie,At,ve,ot,Ee,Me),It!==-1))return It+Ue}Ce(Me,At,ie,Ee,De)&&!ot&&(Ue+=Me.indentSize);const Bt=M(At,ie,ve.line,Ee);ie=At,At=ie.parent,ve=Bt?Ee.getLineAndCharacterOfPosition(ie.getStart(Ee)):je}return Ue+u(Me)}function h(ie,ve,Le){const Ue=K(ve,Le),Ee=Ue?Ue.pos:ie.getStart(Le);return Le.getLineAndCharacterOfPosition(Ee)}function m(ie,ve,Le){const Ue=Zce(ie);return Ue&&Ue.listItemIndex>0?he(Ue.list.getChildren(),Ue.listItemIndex-1,ve,Le):-1}function y(ie,ve,Le,Ue,Ee,De){return(Ju(ie)||hL(ie))&&(ve.kind===312||!Ue)?ye(Le,Ee,De):-1}let T;(ie=>{ie[ie.Unknown=0]="Unknown",ie[ie.OpenBrace=1]="OpenBrace",ie[ie.CloseBrace=2]="CloseBrace"})(T||(T={}));function A(ie,ve,Le,Ue){const Ee=m1(ie,ve,Ue);if(!Ee)return 0;if(Ee.kind===19)return 1;if(Ee.kind===20){const De=R(Ee,Ue).line;return Le===De?2:0}return 0}function R(ie,ve){return ve.getLineAndCharacterOfPosition(ie.getStart(ve))}function M(ie,ve,Le,Ue){if(!(sa(ie)&&Or(ie.arguments,ve)))return!1;const Ee=ie.expression.getEnd();return ys(Ue,Ee).line===Le}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=M;function C(ie,ve,Le,Ue){if(ie.kind===245&&ie.elseStatement===ve){const Ee=vs(ie,93,Ue);return N.assert(Ee!==void 0),R(Ee,Ue).line===Le}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=C;function O(ie,ve,Le,Ue){if(jR(ie)&&(ve===ie.whenTrue||ve===ie.whenFalse)){const Ee=ys(Ue,ie.condition.end).line;if(ve===ie.whenTrue)return Le===Ee;{const De=R(ie.whenTrue,Ue).line,Me=ys(Ue,ie.whenTrue.end).line;return Ee===De&&Me===Le}}return!1}e.childIsUnindentedBranchOfConditionalExpression=O;function U(ie,ve,Le,Ue){if(S_(ie)){if(!ie.arguments)return!1;const Ee=In(ie.arguments,At=>At.pos===ve.pos);if(!Ee)return!1;const De=ie.arguments.indexOf(Ee);if(De===0)return!1;const Me=ie.arguments[De-1],We=ys(Ue,Me.getEnd()).line;if(Le===We)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=U;function K(ie,ve){return ie.parent&&V(ie.getStart(ve),ie.getEnd(),ie.parent,ve)}e.getContainingList=K;function Q(ie,ve,Le){return ve&&V(ie,ie,ve,Le)}function V(ie,ve,Le,Ue){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(De){return De&&rO(se(Le,De,Ue),ie,ve)?De:void 0}}function se(ie,ve,Le){const Ue=ie.getChildren(Le);for(let Ee=1;Ee<Ue.length-1;Ee++)if(Ue[Ee].pos===ve.pos&&Ue[Ee].end===ve.end)return{pos:Ue[Ee-1].end,end:Ue[Ee+1].getStart(Le)};return ve}function G(ie,ve,Le){return ie?ye(ve.getLineAndCharacterOfPosition(ie.pos),ve,Le):-1}function ne(ie,ve,Le,Ue){if(ie.parent&&ie.parent.kind===261)return-1;const Ee=K(ie,ve);if(Ee){const De=Ee.indexOf(ie);if(De!==-1){const Me=he(Ee,De,ve,Le);if(Me!==-1)return Me}return G(Ee,ve,Le)+(Ue?Le.indentSize:0)}return-1}function he(ie,ve,Le,Ue){N.assert(ve>=0&&ve<ie.length);const Ee=ie[ve];let De=R(Ee,Le);for(let Me=ve-1;Me>=0;Me--){if(ie[Me].kind===28)continue;if(Le.getLineAndCharacterOfPosition(ie[Me].end).line!==De.line)return ye(De,Le,Ue);De=R(ie[Me],Le)}return-1}function ye(ie,ve,Le){const Ue=ve.getPositionOfLineAndCharacter(ie.line,0);return X(Ue,Ue+ie.character,ve,Le)}function Y(ie,ve,Le,Ue){let Ee=0,De=0;for(let Me=ie;Me<ve;Me++){const We=Le.text.charCodeAt(Me);if(!E_(We))break;We===9?De+=Ue.tabSize+De%Ue.tabSize:De++,Ee++}return{column:De,character:Ee}}e.findFirstNonWhitespaceCharacterAndColumn=Y;function X(ie,ve,Le,Ue){return Y(ie,ve,Le,Ue).column}e.findFirstNonWhitespaceColumn=X;function oe(ie,ve,Le,Ue,Ee){const De=Le?Le.kind:0;switch(ve.kind){case 244:case 263:case 231:case 264:case 266:case 265:case 209:case 241:case 268:case 210:case 187:case 200:case 189:case 217:case 211:case 213:case 214:case 243:case 277:case 253:case 227:case 207:case 206:case 286:case 289:case 285:case 294:case 173:case 179:case 180:case 169:case 184:case 185:case 196:case 215:case 223:case 279:case 275:case 281:case 276:case 172:case 296:case 297:return!0;case 269:return ie.indentSwitchCase??!0;case 260:case 303:case 226:if(!ie.indentMultiLineObjectLiteralBeginningOnBlankLine&&Ue&&De===210)return de(Ue,Le);if(ve.kind===226&&Ue&&Le&&De===284){const Me=Ue.getLineAndCharacterOfPosition(Pa(Ue.text,ve.pos)).line,We=Ue.getLineAndCharacterOfPosition(Pa(Ue.text,Le.pos)).line;return Me!==We}if(ve.kind!==226)return!0;break;case 246:case 247:case 249:case 250:case 248:case 245:case 262:case 218:case 174:case 176:case 177:case 178:return De!==241;case 219:return Ue&&De===217?de(Ue,Le):De!==241;case 278:return De!==279;case 272:return De!==273||!!Le.namedBindings&&Le.namedBindings.kind!==275;case 284:return De!==287;case 288:return De!==290;case 193:case 192:if(De===187||De===189)return!1;break}return Ee}e.nodeWillIndentChild=oe;function pe(ie,ve){switch(ie){case 253:case 257:case 251:case 252:return ve.kind!==241;default:return!1}}function Ce(ie,ve,Le,Ue,Ee=!1){return oe(ie,ve,Le,Ue,!1)&&!(Ee&&Le&&pe(Le.kind,ve))}e.shouldIndentChildNode=Ce;function de(ie,ve){const Le=Pa(ie.text,ve.pos),Ue=ie.getLineAndCharacterOfPosition(Le).line,Ee=ie.getLineAndCharacterOfPosition(ve.end).line;return Ue===Ee}})(G_||(G_={}))}}),kc={};ee(kc,{FormattingContext:()=>T_e,FormattingRequestKind:()=>S_e,RuleAction:()=>I_e,RuleFlags:()=>x_e,SmartIndenter:()=>G_,anyContext:()=>Rz,createTextRangeWithKind:()=>OQ,formatDocument:()=>pat,formatNodeGivenIndentation:()=>yat,formatOnClosingCurly:()=>dat,formatOnEnter:()=>lat,formatOnOpeningCurly:()=>uat,formatOnSemicolon:()=>cat,formatSelection:()=>fat,getAllRules:()=>nwe,getFormatContext:()=>Zot,getFormattingScanner:()=>A_e,getIndentationString:()=>z_e,getRangeOfEnclosingComment:()=>Rwe});var a8=I({"src/services/_namespaces/ts.formatting.ts"(){yot(),bot(),Eot(),Qot(),sat(),Sat(),Tat()}}),si=I({"src/services/_namespaces/ts.ts"(){ra(),Xw(),CHe(),eqe(),iqe(),tDe(),hqe(),gqe(),Aqe(),kqe(),wqe(),Wqe(),Hqe(),qqe(),fYe(),mYe(),gYe(),WYe(),zYe(),Ia(),Wme(),Yme(),_rt(),brt(),Wrt(),IDe(),qDe(),iit(),pit(),xh(),bit(),Kit(),not(),aot(),vot(),a8()}});function Aat(){return Cwe??(Cwe=new hm(Re))}function Dwe(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?` ${ig(o,[e])}`:"",s}function Iat(e,t,r,i){const o=Dwe(e,!0,t,r,i);return()=>{throw new TypeError(o)}}function xat(e,t,r,i){let o=!1;return()=>{Nwe&&!o&&(N.log.warn(Dwe(e,!1,t,r,i)),o=!0)}}function Rat(e,t={}){const r=typeof t.typeScriptVersion=="string"?new hm(t.typeScriptVersion):t.typeScriptVersion??Aat(),i=typeof t.errorAfter=="string"?new hm(t.errorAfter):t.errorAfter,o=typeof t.warnAfter=="string"?new hm(t.warnAfter):t.warnAfter,s=typeof t.since=="string"?new hm(t.since):t.since??o,l=t.error||i&&r.compareTo(i)>=0,u=!o||r.compareTo(o)>=0;return l?Iat(e,i,s,t.message):u?xat(e,i,s,t.message):Ya}function Dat(e,t){return function(){return e(),t.apply(this,arguments)}}function B_e(e,t){const r=Rat((t==null?void 0:t.name)??N.getFunctionName(e),t);return Dat(r,e)}var Nwe,Cwe,Pwe=I({"src/deprecatedCompat/deprecate.ts"(){zQ(),Nwe=!0}});function FQ(e,t,r,i){if(Object.defineProperty(s,"name",{...Object.getOwnPropertyDescriptor(s,"name"),value:e}),i)for(const l of Object.keys(i)){const u=+l;!isNaN(u)&&Is(t,`${u}`)&&(t[u]=B_e(t[u],{...i[u],name:e}))}const o=Nat(t,r);return s;function s(...l){const u=o(l),p=u!==void 0?t[u]:void 0;if(typeof p=="function")return p(...l);throw new TypeError("Invalid arguments")}}function Nat(e,t){return r=>{for(let i=0;Is(e,`${i}`)&&Is(t,`${i}`);i++){const o=t[i];if(o(r))return i}}}function Mwe(e){return{overload:t=>({bind:r=>({finish:()=>FQ(e,t,r),deprecate:i=>({finish:()=>FQ(e,t,r,i)})})})}}var Cat=I({"src/deprecatedCompat/deprecations.ts"(){zQ(),Pwe()}}),Pat=I({"src/deprecatedCompat/5.0/identifierProperties.ts"(){zQ(),Pwe(),ioe(e=>{const t=e.getIdentifierConstructor();Is(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:B_e(function(){return r0(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),Is(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:B_e(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."})})})}}),zQ=I({"src/deprecatedCompat/_namespaces/ts.ts"(){ra(),Cat(),Pat()}}),Mat=I({"src/typingsInstallerCore/_namespaces/ts.ts"(){ra(),Xw(),V_e()}});function Lwe(e,t,r,i){try{const o=iD(t,$r(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 Lat(e,t,r,i){let o=!1;for(let s=r.length;s>0;){const l=kwe(e,t,r,s);s=l.remaining,o=i(l.command)||o}return o}function kwe(e,t,r,i){const o=r.length-i;let 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 wwe(e){return`@types/${e}@ts${_e}`}var Owe,Wwe,kat=I({"src/typingsInstallerCore/typingsInstaller.ts"(){Mat(),V_e(),Owe={isEnabled:()=>!1,writeLine:Ya},Wwe=class{constructor(e,t,r,i,o,s=Owe){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":{const t={};this.typesRegistry.forEach((i,o)=>{t[o]=i});const r={kind:M7,typesRegistry:t};this.sendResponse(r);break}case"installPackage":{this.installPackage(e);break}default:N.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:ZP,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${N0(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();const t=z_.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){const{fileName:t,packageName:r,projectName:i,projectRootPath:o,id:s}=e,l=ym(ai(t),u=>{if(this.installTypingHost.fileExists($r(u,"package.json")))return u})||o;if(l)this.installWorker(-1,[r],l,u=>{const p=u?`Package ${r} installed.`:`There was an error installing ${r}.`,h={kind:Kw,projectName:i,id:s,success:u,message:p};this.sendResponse(h)});else{const u={kind:Kw,projectName:i,id:s,success:!1,message:"Could not determine a project root path."};this.sendResponse(u)}}initializeSafeList(){if(this.typesMapLocation){const e=z_.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=z_.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}const t=$r(e,"package.json"),r=$r(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(r)){const 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}':${N0(i)}`),this.log.writeLine(`Loaded content of '${r}':${N0(o)}`)),i.devDependencies&&o.dependencies)for(const s in i.devDependencies){if(!Is(o.dependencies,s))continue;const l=ic(s);if(!l)continue;const u=Lwe(e,l,this.installTypingHost,this.log);if(!u){this.missingTypingsSet.add(l);continue}const 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}'`);const h=S6(o.dependencies,s),m=h&&h.version;if(!m)continue;const y={typingLocation:u,version:new hm(m)};this.packageNameToTypingLocation.set(l,y)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return eo(e,t=>{const r=aD(t);if(this.missingTypingsSet.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' is in missingTypingsSet - skipping...`);return}const i=z_.validatePackageName(t);if(i!==z_.NameValidationResult.Ok){this.missingTypingsSet.add(r),this.log.isEnabled()&&this.log.writeLine(z_.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)&&z_.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){const t=$r(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)}`);const 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);const s=this.installRunCount;this.installRunCount++,this.sendResponse({kind:L7,eventId:s,typingsInstallerVersion:Re,projectName:e.projectName});const l=o.map(wwe);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(const h of o)this.missingTypingsSet.add(h);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(l)}`);const p=[];for(const h of o){const m=Lwe(t,h,this.installTypingHost,this.log);if(!m){this.missingTypingsSet.add(h);continue}const y=this.typesRegistry.get(h),T=new hm(y[`ts${_e}`]||y[this.latestDistTag]),A={typingLocation:m,version:T};this.packageNameToTypingLocation.set(h,A),p.push(m)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(p)}`),this.sendResponse(this.createSetTypings(e,r.concat(p)))}finally{const p={kind:k7,eventId:s,projectName:e.projectName,packagesToInstall:l,installSuccess:u,typingsInstallerVersion:Re};this.sendResponse(p)}})}ensureDirectoryExists(e,t){const r=ai(e);t.directoryExists(r)||this.ensureDirectoryExists(r,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length){this.closeWatchers(e);return}const 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:ZP,projectName:e,files:t})):this.sendResponse({kind:ZP,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:qw}}installTypingsAsync(e,t,r,i){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:r,onRequestCompleted:i}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount<this.throttleLimit&&this.pendingRunRequests.length;){this.inFlightRequestCount++;const e=this.pendingRunRequests.pop();this.installWorker(e.requestId,e.packageNames,e.cwd,t=>{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}}}}),G_e={};ee(G_e,{TypingsInstaller:()=>Wwe,getNpmCommandForInstallation:()=>kwe,installNpmPackages:()=>Lat,typingsName:()=>wwe});var wat=I({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){kat()}}),V_e=I({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){w7(),wat()}}),Oat=I({"src/server/types.ts"(){}});function j_e(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 fl(e){return ha(e)}function s8(e,t,r){const i=dp(e)?e:go(e,t);return r(i)}function Fwe(e){return e}function zwe(){const 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 U_e(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function H_e(e){return`/dev/null/inferredProject${e}*`}function q_e(e){return`/dev/null/autoImportProviderProject${e}*`}function J_e(e){return`/dev/null/auxiliaryProject${e}*`}function K_e(){return[]}var BQ,gc,GQ,Zv,Wat=I({"src/server/utilitiesPublic.ts"(){ob(),BQ=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(BQ||{}),gc=K_e(),GQ=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(GQ||{}),(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})(Zv||(Zv={}))}});function VQ(e){const t=ic(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}function Bwe(e,t,r){if(!e||e.length===0)return;if(e[0]===t){e.splice(0,1);return}const i=Tv(e,t,tl,r);i>=0&&e.splice(i,1)}var jQ,UQ,Fat=I({"src/server/utilities.ts"(){ob(),cT(),jQ=class LFe{constructor(t,r){this.host=t,this.pendingTimeouts=new Map,this.logger=r.hasLevel(3)?r:void 0}schedule(t,r,i){const o=this.pendingTimeouts.get(t);o&&this.host.clearTimeout(o),this.pendingTimeouts.set(t,this.host.setTimeout(LFe.run,r,t,this,i)),this.logger&&this.logger.info(`Scheduled: ${t}${o?", Cancelled earlier one":""}`)}cancel(t){const 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=id)==null||o.logStartScheduledOperation(t),r.pendingTimeouts.delete(t),r.logger&&r.logger.info(`Running: ${t}`),i(),(s=id)==null||s.logStopScheduledOperation()}},UQ=class kFe{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(kFe.run,this.delay,this))}static run(t){var r,i;t.timerId=void 0,(r=id)==null||r.logStartScheduledOperation("GC collect");const o=t.logger.hasLevel(2),s=o&&t.host.getMemoryUsage();if(t.host.gc(),o){const l=t.host.getMemoryUsage();t.logger.perftrc(`GC::before ${s}, after ${l}`)}(i=id)==null||i.logStopScheduledOperation()}}}}),HQ,X_e,Y_e,$_e,Q_e,Z_e,ehe,the,nhe,rhe,ihe,ohe,ahe,she,lhe=I({"src/server/protocol.ts"(){HQ=(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))(HQ||{}),X_e=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(X_e||{}),Y_e=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(Y_e||{}),$_e=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))($_e||{}),Q_e=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(Q_e||{}),Z_e=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(Z_e||{}),ehe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(ehe||{}),the=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(the||{}),nhe=(e=>(e.None="None",e.Preserve="Preserve",e.ReactNative="ReactNative",e.React="React",e))(nhe||{}),rhe=(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))(rhe||{}),ihe=(e=>(e.Classic="Classic",e.Node="Node",e.Node10="Node10",e.Node16="Node16",e.NodeNext="NodeNext",e.Bundler="Bundler",e))(ihe||{}),ohe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(ohe||{}),ahe=(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))(ahe||{}),she=(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))(she||{})}}),che={};ee(che,{ClassificationType:()=>she,CommandTypes:()=>HQ,CompletionTriggerKind:()=>Z_e,IndentStyle:()=>ehe,JsxEmit:()=>nhe,ModuleKind:()=>rhe,ModuleResolutionKind:()=>ihe,NewLineKind:()=>ohe,OrganizeImportsMode:()=>X_e,PollingWatchKind:()=>Q_e,ScriptTarget:()=>ahe,SemicolonPreference:()=>the,WatchDirectoryKind:()=>$_e,WatchFileKind:()=>Y_e});var zat=I({"src/server/_namespaces/ts.server.protocol.ts"(){lhe()}});function l8(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&ic(e)[0]==="^"||e.includes(":^")&&!e.includes(ol)}function Gwe(e){return!e||u8(e)?Zv.ThrowNoProject():e}function Bat(e){N.assert(typeof e=="number",`Expected position ${e} to be a number.`),N.assert(e>=0,"Expected position to be non-negative.")}function Gat(e){N.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),N.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),N.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),N.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}var qQ,JQ,Vat=I({"src/server/scriptInfo.ts"(){ob(),cT(),qQ=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 N.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=ED(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){const{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=W7.fromString(N.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){const t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);const 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){const t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);const r=this.getLineMap(),i=r[e],o=e+1<r.length?r[e+1]:this.text.length;return pc(i,o)}lineOffsetToPosition(e,t,r){const i=this.tryUseScriptVersionCache();return i?i.lineOffsetToPosition(e,t):n4(this.getLineMap(),e-1,t-1,this.text,r)}positionToLineOffset(e){const t=this.tryUseScriptVersionCache();if(t)return t.positionToLineOffset(e);const{line:r,character:i}=Vx(this.getLineMap(),e);return{line:r+1,offset:i+1}}getFileTextAndSize(e){let t;const r=e||this.info.fileName,i=()=>t===void 0?t=this.host.readFile(r)||"":t;if(!GA(this.info.fileName)){const o=this.host.getFileSize?this.host.getFileSize(r):i().length;if(o>Wz)return N.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=Yz.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=Yz.fromString(N.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(N.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return N.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=bA(N.checkDefined(this.text)))}getLineInfo(){const e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:r=>e.getAbsolutePositionAndLineText(r+1).lineText};const t=this.getLineMap();return Cq(this.text,t)}},JQ=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=l8(t),this.textStorage=new qQ(e,this,s),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=r||G3(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)){N.assert(!!this.containingProjects.length);const 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){const 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 Or(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:wx(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(const e of this.containingProjects){w0(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!jD(e)&&e.addMissingFileRoot(t.fileName)}jo(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return Zv.ThrowNoProject();case 1:return Gwe(this.containingProjects[0]);default:let e,t,r,i,o;for(let s=0;s<this.containingProjects.length;s++){const l=this.containingProjects[s];if(w0(l)){if(!l.isSourceOfProjectReferenceRedirect(this.fileName)){if(o===void 0&&s!==this.containingProjects.length-1&&(o=l.projectService.findDefaultConfiguredProject(this)||!1),o===l)return l;i||(i=l)}t||(t=l)}else!e&&XQ(l)?e=l:!r&&jD(l)&&(r=l)}return Gwe(o||i||t||e||r)}}registerFileUpdate(){for(const e of this.containingProjects)e.registerFileUpdate(this.path)}setOptions(e,t){e&&(this.formatSettings?this.formatSettings={...this.formatSettings,...e}:(this.formatSettings=O7(this.host.newLine),Mx(this.formatSettings,e))),t&&(this.preferences||(this.preferences=Mf),this.preferences={...this.preferences,...t})}getLatestVersion(){return this.textStorage.getSnapshot(),this.textStorage.getVersion()}saveTo(e){this.host.writeFile(e,ED(this.textStorage.getSnapshot()))}delayReloadNonMixedContentFile(){N.assert(!this.isDynamicOrHasMixedContent()),this.textStorage.delayReloadFromFileIntoText(),this.markContainingProjectsAsDirty()}reloadFromFile(e){return this.textStorage.reloadWithFileText(e)?(this.markContainingProjectsAsDirty(),!0):!1}editContent(e,t,r){this.textStorage.edit(e,t,r),this.markContainingProjectsAsDirty()}markContainingProjectsAsDirty(){for(const e of this.containingProjects)e.markFileAsDirty(this.path)}isOrphan(){return!Xe(this.containingProjects,e=>!e.isOrphan())}isContainedByBackgroundProject(){return bt(this.containingProjects,u8)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,r){return this.textStorage.lineOffsetToPosition(e,t,r)}positionToLineOffset(e){Bat(e);const t=this.textStorage.positionToLineOffset(e);return Gat(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Mo(this.sourceMapFilePath)&&(Cf(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function Vwe(e,t){if(e===t||(e||gc).length===0&&(t||gc).length===0)return!0;const r=new Map;let i=0;for(const o of e)r.get(o)!==!0&&(r.set(o,!0),i++);for(const o of t){const s=r.get(o);if(s===void 0)return!1;s===!0&&(r.set(o,!1),i--)}return i===0}function jat(e,t){return e.enable!==t.enable||!Vwe(e.include,t.include)||!Vwe(e.exclude,t.exclude)}function Uat(e,t){return jy(e)!==jy(t)}function Hat(e,t){return e===t?!1:!Hm(e,t)}var Lz,KQ,qat=I({"src/server/typingsCache.ts"(){ob(),cT(),Lz={isKnownTypesPackageName:qm,installPackage:Jo,enqueueInstallTypingsRequest:Ya,attach:Ya,onProjectClosed:Ya,globalTypingsCacheLocation:void 0},KQ=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){const i=e.getTypeAcquisition();if(!i||!i.enable)return;const o=this.perProjectCache.get(e.getProjectName());(r||!o||jat(i,o.typeAcquisition)||Uat(e.getCompilationSettings(),o.compilerOptions)||Hat(t,o.unresolvedImports))&&(this.perProjectCache.set(e.getProjectName(),{compilerOptions:e.getCompilationSettings(),typeAcquisition:i,typings:o?o.typings:gc,unresolvedImports:t,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(e,i,t))}updateTypingsForProject(e,t,r,i,o){const s=iS(o);return this.perProjectCache.set(e,{compilerOptions:t,typeAcquisition:r,typings:s,unresolvedImports:i,poisoned:!1}),!r||!r.enable?gc:s}onProjectClosed(e){this.perProjectCache.delete(e.getProjectName())&&this.installer.onProjectClosed(e)}}}});function c8(e,t=!1){const 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(const i of e){const 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 Jat(e){const t=c8(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function uhe(e){const t=c8(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function dhe(e){const t=c8(e.getScriptInfos());return t.ts===0&&t.tsx===0}function phe(e){return!e.some(t=>Il(t,".ts")&&!Su(t)||Il(t,".tsx"))}function fhe(e){return e.generatedFilePath!==void 0}function Kat(e,t){var r,i;const o=e.getSourceFiles();(r=sr)==null||r.push(sr.Phase.Session,"getUnresolvedImports",{count:o.length});const s=e.getTypeChecker().getAmbientModules().map(u=>Zf(u.getName())),l=HN(Do(o,u=>Xat(e,u,s,t)));return(i=sr)==null||i.pop(),l}function Xat(e,t,r,i){return dA(i,t.path,()=>{let o;return e.forEachResolvedModule(({resolvedModule:s},l)=>{(!s||!KC(s.extension))&&!Xc(l)&&!r.some(u=>u===l)&&(o=Rn(o,Sw(l).packageName))},t),o||gc})}function jD(e){return e.projectKind===0}function w0(e){return e.projectKind===1}function XQ(e){return e.projectKind===2}function u8(e){return e.projectKind===3||e.projectKind===4}var IM,lT,YQ,$Q,QQ,ZQ,eZ,kz,Yat=I({"src/server/project.ts"(){ob(),ob(),cT(),IM=(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))(IM||{}),lT=class wFe{constructor(t,r,i,o,s,l,u,p,h,m,y){switch(this.projectKind=r,this.projectService=i,this.documentRegistry=o,this.compilerOptions=u,this.compileOnSaveEnabled=p,this.watchOptions=h,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=qm,this.dirty=!1,this.typingFiles=gc,this.moduleSpecifierCache=Ihe(this),this.createHash=ia(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=z_.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,this.projectName=t,this.directoryStructureHost=m,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(y),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new DY(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(s||jy(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=Q5(),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:N.assertNever(i.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const T=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=A=>this.writeLog(A):T.trace&&(this.trace=A=>T.trace(A)),this.realpath=ia(T,T.realpath),this.resolutionCache=WJ(this,this.currentDirectory,!0),this.languageService=ipe(this,this.documentRegistry,this.projectService.serverMode),l&&this.disableLanguageService(l),this.markAsDirty(),u8(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(t){}isNonTsProject(){return Vp(this),dhe(this)}isJsOnlyProject(){return Vp(this),Jat(this)}static resolveModule(t,r,i,o){return wFe.importServicePluginSync({name:t},[r],i,o).resolvedModule}static importServicePluginSync(t,r,i,o){N.assertIsDefined(i.require);let s,l;for(const u of r){const p=Lu(i.resolvePath($r(u,"node_modules")));o(`Loading ${t.name} from ${u} (resolved to ${p})`);const h=i.require(p,t.name);if(!h.error){l=h.module;break}const m=h.error.stack||h.error.message||JSON.stringify(h.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){N.assertIsDefined(i.importPlugin);let s,l;for(const u of r){const p=$r(u,"node_modules");o(`Dynamically importing ${t.name} from ${u} (resolved to ${p})`);let h;try{h=await i.importPlugin(p,t.name)}catch(y){h={module:void 0,error:y}}if(!h.error){l=h.module;break}const m=h.error.stack||h.error.message||JSON.stringify(h.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=dU(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)}),qr(t,this.typingFiles)||et}getOrCreateScriptInfoAndAttachToProject(t){const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);if(r){const i=this.rootFilesMap.get(r.path);i&&i.info!==r&&(this.rootFiles.push(r),i.info=r),r.attachToProject(this)}return r}getScriptKind(t){const r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&r.scriptKind}getScriptVersion(t){const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);return r&&r.getLatestVersion()}getScriptSnapshot(t){const r=this.getOrCreateScriptInfoAndAttachToProject(t);if(r)return r.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){const t=ai(ha(this.projectService.getExecutingFilePath()));return $r(t,Z2(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){const 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 il(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),Lc.FailedLookupLocations,this)}watchAffectingFileLocation(t,r){return this.projectService.watchFactory.watchFile(t,r,2e3,this.projectService.getWatchOptions(this),Lc.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),Lc.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 mn(this.projectErrors,t=>!t.file)||gc}getAllProjectErrors(){return this.projectErrors||gc}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&Vp(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?(Vp(this),this.builderState=Nm.create(this.program,this.builderState,!0),eo(Nm.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:gc};const{emitSkipped:i,diagnostics:o,outputFiles:s}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(const l of s){const u=go(l.name,this.currentDirectory);r(u,l.text,l.writeByteOrderMark)}if(this.builderState&&Rf(this.compilerOptions)){const l=s.filter(u=>Su(u.name));if(l.length===1){const u=this.program.getSourceFile(t.fileName),p=this.projectService.host.createHash?this.projectService.host.createHash(l[0].text):QN(l[0].text);Nm.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(const 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&&(N.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 iS(Do(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){const 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(),Xe(this.externalFiles,r=>this.detachScriptInfoIfNotRoot(r));for(const 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,Xm),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){const 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?Wt(this.program.getSourceFiles(),t=>{const r=this.projectService.getScriptInfoForPath(t.resolvedPath);return N.assert(!!r,"getScriptInfo",()=>`scriptInfo for a file '${t.fileName}' Path: '${t.path}' / '${t.resolvedPath}' is missing.`),r}):this.rootFiles}getExcludedFiles(){return gc}getFileNames(t,r){if(!this.program)return[];if(!this.languageServiceEnabled){let o=this.getRootFiles();if(this.compilerOptions){const s=ope(this.compilerOptions);s&&(o||(o=[])).push(s)}return o}const i=[];for(const o of this.program.getSourceFiles())t&&this.program.isSourceFileFromExternalLibrary(o)||i.push(o.fileName);if(!r){const o=this.program.getCompilerOptions().configFile;if(o&&(i.push(o.fileName),o.extendedSourceFiles))for(const 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){const r=this.program.getCompilerOptions().configFile;if(r){if(t===r.fileName)return!0;if(r.extendedSourceFiles){for(const i of r.extendedSourceFiles)if(t===i)return!0}}}return!1}containsScriptInfo(t){if(this.isRoot(t))return!0;if(!this.program)return!1;const r=this.program.getSourceFileByPath(t.path);return!!r&&r.resolvedPath===t.path}containsFile(t,r){const 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){N.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){const 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(){Vp(this)}updateGraph(){var t,r,i,o,s;(t=sr)==null||t.push(sr.Phase.Session,"updateGraph",{name:this.projectName,kind:IM[this.projectKind]}),(r=id)==null||r.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();const l=this.updateGraphWorker(),u=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const p=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||gc;for(const m of p)this.cachedUnresolvedImportsPerFile.delete(m);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((l||p.length)&&(this.lastCachedUnresolvedImportsList=Kat(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,u)):this.lastCachedUnresolvedImportsList=void 0;const h=this.projectProgramVersion===0&&l;return l&&this.projectProgramVersion++,u&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(i=this.autoImportProviderHost)==null||i.markAsDirty()),h&&this.getPackageJsonAutoImportProvider(),(o=id)==null||o.logStopUpdateGraph(),(s=sr)==null||s.pop(),!l}updateTypingFiles(t){C6(t,this.typingFiles,Lx(!this.useCaseSensitiveFileNames()),Ya,r=>this.detachScriptInfoFromProject(r))&&(this.typingFiles=t,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&ep(this.typingWatchers,Xm),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:Jw})}watchTypingLocations(t){if(!t){this.typingWatchers.isInvoked=!1;return}if(!t.length){this.closeWatchingTypingLocations();return}const r=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const i=(o,s)=>{const 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),Lc.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(o,u=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!Il(u,".json"))return this.writeLog("Ignoring files that are not *.json");if(Dg(u,$r(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),Lc.TypingInstallerLocationDirectory,this))};for(const o of t){const s=ic(o);if(s==="package.json"||s==="bower.json"){i(o,"FileWatcher");continue}if(gm(this.currentDirectory,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){const l=o.indexOf(ol,this.currentDirectory.length+1);i(l!==-1?o.substr(0,l):o,"DirectoryWatcher");continue}if(gm(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){const r=IF(this.getCompilerOptions(),this.directoryStructureHost);return t.filter(i=>!r.includes(i))}updateGraphWorker(){var t,r;const i=this.languageService.getCurrentProgram();N.assert(i===this.program),N.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const o=Xs(),{hasInvalidatedResolutions:s,hasInvalidatedLibResolutions:l}=this.resolutionCache.createHasInvalidatedResolutions(qm,qm);this.hasInvalidatedResolutions=s,this.hasInvalidatedLibResolutions=l,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=sr)==null||t.push(sr.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(r=sr)==null||r.pop(),N.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(const m of i.getSourceFiles()){const y=this.program.getSourceFileByPath(m.resolvedPath);(!y||m.resolvedPath===m.path&&y.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(iJ(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(m,y)=>this.addMissingFileWatcher(m,y)),this.generatedFilesMap){const m=Ps(this.compilerOptions);fhe(this.generatedFilesMap)?(!m||!this.isValidGeneratedFileWatcher(Ad(m)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():m?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((y,T)=>{const A=this.program.getSourceFileByPath(T);(!A||A.resolvedPath!==T||!this.isValidGeneratedFileWatcher(p3(A.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),y))&&(Cf(y),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=>{const y=i.getSourceFileByPath(m),T=this.program.getSourceFileByPath(m);return!y||!T?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(y,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());const p=this.externalFiles||gc;this.externalFiles=this.getExternalFiles(),C6(this.externalFiles,p,Lx(!this.useCaseSensitiveFileNames()),m=>{const y=this.projectService.getOrCreateScriptInfoNotOpenedByClient(m,this.currentDirectory,this.directoryStructureHost);y==null||y.attachToProject(this)},m=>this.detachScriptInfoFromProject(m));const h=Xs()-o;return this.sendPerformanceEvent("UpdateGraph",h),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${u}${this.program?` structureIsReused:: ${B6[this.program.structureIsReused]}`:""} Elapsed: ${h}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){const o=this.projectService.getScriptInfo(t);o&&(o.detachFromProject(this),r||this.resolutionCache.removeResolutionsOfFile(o.path,i))}addMissingFileWatcher(t,r){var i;if(w0(this)){const s=this.projectService.configFileExistenceInfoCache.get(t);if((i=s==null?void 0:s.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return hD}const o=this.projectService.watchFactory.watchFile(go(r,this.currentDirectory),(s,l)=>{w0(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),Lc.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{const i=this.toPath(r);if(this.generatedFilesMap){if(fhe(this.generatedFilesMap)){N.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),Lc.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,r){return this.toPath(t)===r.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(fhe(this.generatedFilesMap)?Cf(this.generatedFilesMap):ep(this.generatedFilesMap,Cf),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){const r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&!r.isAttached(this)?Zv.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 +`;const o=this.program.getSourceFiles();let s=` Files (${o.length}) +`;if(t){for(const l of o)s+=` ${l.fileName}${i?` ${l.version} ${JSON.stringify(l.text)}`:""} +`;r&&(s+=` + +`,BJ(this.program,l=>s+=` ${l} +`))}return s}print(t,r,i){var o;this.writeLog(`Project '${this.projectName}' (${IM[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;const i=this.compilerOptions;this.compilerOptions=t,this.setInternalCompilerOptionsForEmittingJsFiles(),(r=this.noDtsResolutionProject)==null||r.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),I4(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;const s=r?p=>zo(p.entries(),([h,m])=>({fileName:h,isSourceOfProjectReferenceRedirect:m})):p=>zo(p.keys());this.isInitialLoadPending()||Vp(this);const l={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:jD(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()};const p=this.lastReportedFileNames,h=((i=this.externalFiles)==null?void 0:i.map(M=>({fileName:fl(M),isSourceOfProjectReferenceRedirect:!1})))||gc,m=TE(this.getFileNamesWithRedirectInfo(!!r).concat(h),M=>M.fileName,M=>M.isSourceOfProjectReferenceRedirect),y=new Map,T=new Map,A=u?zo(u.keys()):[],R=[];return zc(m,(M,C)=>{p.has(C)?r&&M!==p.get(C)&&R.push({fileName:C,isSourceOfProjectReferenceRedirect:M}):y.set(C,M)}),zc(p,(M,C)=>{m.has(C)||T.set(C,M)}),this.lastReportedFileNames=m,this.lastReportedVersion=this.projectProgramVersion,{info:l,changes:{added:s(y),removed:s(T),updated:r?A.map(M=>({fileName:M,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(M)})):A,updatedRedirects:r?R:void 0},projectErrors:this.getGlobalProjectErrors()}}else{const p=this.getFileNamesWithRedirectInfo(!!r),h=((o=this.externalFiles)==null?void 0:o.map(y=>({fileName:fl(y),isSourceOfProjectReferenceRedirect:!1})))||gc,m=p.concat(h);return this.lastReportedFileNames=TE(m,y=>y.fileName,y=>y.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:l,files:r?m:m.map(y=>y.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(t){wx(this.rootFiles,t),this.rootFilesMap.delete(t.path)}isSourceOfProjectReferenceRedirect(t){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(t)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,$r(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(t){if(!this.projectService.globalPlugins.length)return;const 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}const i=this.getGlobalPluginSearchPaths();for(const 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}const i={config:r,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},o=t({typescript:uOe}),s=o.create(i);for(const 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?gc:this.projectService.getPackageJsonsVisibleToFile(t,this,r)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile($r(this.currentDirectory,fD),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=xX(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||yO(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(Vp(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}const o=this.includePackageJsonAutoImports();if(o){(t=sr)==null||t.push(sr.Phase.Session,"getPackageJsonAutoImportProvider");const s=Xs();if(this.autoImportProviderHost=ZQ.create(o,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return Vp(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Xs()-s),(r=sr)==null||r.pop(),this.autoImportProviderHost.getCurrentProgram();(i=sr)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!zc(this.projectService.openFiles,(t,r)=>this.projectService.tryGetDefaultProjectForFile(fl(r))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return N.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new $Q(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}}},YQ=class extends lT{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;const t=GK(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){N.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(){Xe(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:uhe(this),include:et,exclude:et}}},$Q=class extends lT{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(){}},QQ=class mbe extends lT{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=ia(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=ia(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(t,r,i,o){var s,l;if(!t)return et;const u=r.getCurrentProgram();if(!u)return et;const p=Xs();let h,m;const y=$r(r.currentDirectory,fD),T=r.getPackageJsonsForAutoImport($r(r.currentDirectory,y));for(const C of T)(s=C.dependencies)==null||s.forEach((O,U)=>R(U)),(l=C.peerDependencies)==null||l.forEach((O,U)=>R(U));let A=0;if(h){const C=r.getSymlinkCache();for(const O of zo(h.keys())){if(t===2&&A>this.maxDependencies)return r.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),et;const U=aq(O,r.currentDirectory,o,i,u.getModuleResolutionCache());if(U){const Q=M(U,u,C);if(Q){m=So(m,Q),A+=Q.length?1:0;continue}}if(!Xe([r.currentDirectory,r.getGlobalTypingsCacheLocation()],Q=>{if(Q){const V=aq(`@types/${O}`,Q,o,i,u.getModuleResolutionCache());if(V){const se=M(V,u,C);return m=So(m,se),A+=se!=null&&se.length?1:0,!0}}})&&U&&o.allowJs&&o.maxNodeModuleJsDepth){const Q=M(U,u,C,!0);m=So(m,Q),A+=Q!=null&&Q.length?1:0}}}return m!=null&&m.length&&r.log(`AutoImportProviderProject: found ${m.length} root files in ${A} dependencies in ${Xs()-p} ms`),m||et;function R(C){uo(C,"@types/")||(h||(h=new Set)).add(C)}function M(C,O,U,K){var Q;const V=fq(C,o,i,O.getModuleResolutionCache(),K);if(V){const se=(Q=i.realpath)==null?void 0:Q.call(i,C.packageDirectory),G=se?r.toPath(se):void 0,ne=G&&G!==r.toPath(C.packageDirectory);return ne&&U.setSymlinkedDirectory(C.packageDirectory,{real:Fc(se),realPath:Fc(G)}),eo(V,he=>{const ye=ne?he.replace(C.packageDirectory,se):he;if(!O.getSourceFile(ye)&&!(ne&&O.getSourceFile(he)))return ye})}}}static create(t,r,i,o){if(t===0)return;const s={...r.getCompilerOptions(),...this.compilerOptionsOverrides},l=this.getRootFileNames(t,r,i,s);if(l.length)return new mbe(r,l,o,s)}isEmpty(){return!bt(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=mbe.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;const 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()}},QQ.maxDependencies=10,QQ.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:et,lib:et,noLib:!0},ZQ=QQ,eZ=class extends lT{constructor(e,t,r,i,o){super(e,1,r,i,!1,void 0,{},!1,void 0,o,ai(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=Iv,this.sendLoadingProjectFinish=!1}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){const t=ha(e),r=this.projectService.toCanonicalFileName(t);let 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(ha(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){const e=this.isInitialLoadPending();this.isInitialLoadPending=qm;const 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();const i=N.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){N.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){const 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;const 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}const i=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const o=ai(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${o} to search paths`),i.unshift(o)}if(e.plugins)for(const o of e.plugins)this.enablePlugin(o,i);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return mn(this.projectErrors,e=>!e.file)||gc}getAllProjectErrors(){return this.projectErrors||gc}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 HD(this,e.path,t=>OI(t,e)?t:void 0,0)}hasOpenRef(){var e;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;const t=this.projectService.configFileExistenceInfoCache.get(this.canonicalConfigFilePath);return this.projectService.hasPendingProjectUpdate(this)?!!((e=t.openFilesImpactedByConfigFile)!=null&&e.size):!!t.openFilesImpactedByConfigFile&&zc(t.openFilesImpactedByConfigFile,(r,i)=>{const o=this.projectService.getScriptInfoForPath(i);return this.containsScriptInfo(o)||!!HD(this,o.path,s=>s.containsScriptInfo(o),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return LP(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){mF(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},kz=class extends lT{constructor(e,t,r,i,o,s,l,u){super(e,2,t,r,!0,o,i,s,u,t.host,ai(l||Lu(e))),this.externalProjectName=e,this.compileOnSaveEnabled=s,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}}}});function jwe(e){const t=new Map;for(const r of e)if(typeof r.type=="object"){const i=r.type;i.forEach(o=>{N.assert(typeof o=="number")}),t.set(r.name,i)}return t}function UD(e){return Mo(e.indentStyle)&&(e.indentStyle=$we.get(e.indentStyle.toLowerCase()),N.assert(e.indentStyle!==void 0)),e}function wz(e){return Xwe.forEach((t,r)=>{const i=e[r];Mo(i)&&(e[r]=t.get(i.toLowerCase()))}),e}function d8(e,t){let r,i;return tD.forEach(o=>{const s=e[o.name];if(s===void 0)return;const l=Ywe.get(o.name);(r||(r={}))[o.name]=l?Mo(s)?l.get(s.toLowerCase()):s:JS(o,s,t||"",i||(i=[]))}),r&&{watchOptions:r,errors:i}}function mhe(e){let t;return _w.forEach(r=>{const i=e[r.name];i!==void 0&&((t||(t={}))[r.name]=i)}),t}function tZ(e){return Mo(e)?nZ(e):e}function nZ(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function _he(e){const{lazyConfiguredProjectsFromExternalProject:t,...r}=e;return r}function Uwe(e,t){for(const r of t)if(r.getProjectName()===e)return r}function rZ(e){return!!e.containingProjects}function Hwe(e){return!!e.configFileInfo}function HD(e,t,r,i,o){var s;const l=(s=e.getCurrentProgram())==null?void 0:s.getResolvedProjectReferences();if(!l)return;let u;const p=t?e.getResolvedProjectReferenceToRedirect(t):void 0;if(p){const m=fl(p.sourceFile.fileName),y=e.projectService.findConfiguredProjectByProjectName(m);if(y){const T=r(y);if(T)return T}else if(i!==0){u=new Map;const T=hhe(l,e.getCompilerOptions(),(A,R)=>p===A?h(A,R):void 0,i,e.projectService,u);if(T)return T;u.clear()}}return hhe(l,e.getCompilerOptions(),(m,y)=>p!==m?h(m,y):void 0,i,e.projectService,u);function h(m,y){const T=fl(m.sourceFile.fileName),A=e.projectService.findConfiguredProjectByProjectName(T)||(y===0?void 0:y===1?e.projectService.createConfiguredProject(T):y===2?e.projectService.createAndLoadConfiguredProject(T,o):N.assertNever(y));return A&&r(A)}}function hhe(e,t,r,i,o,s){const l=t.disableReferencedProjectLoad?0:i;return Xe(e,u=>{if(!u)return;const p=fl(u.sourceFile.fileName),h=o.toCanonicalFileName(p),m=s==null?void 0:s.get(h);if(m!==void 0&&m>=l)return;const y=r(u,l);return y||((s||(s=new Map)).set(h,l),u.references&&hhe(u.references,u.commandLine.options,r,l,o,s))})}function qwe(e,t){return e.potentialProjectReferences&&mh(e.potentialProjectReferences,t)}function $at(e,t,r,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?qwe(e,i):Xe(e.getProjectReferences(),r)}function ghe(e,t,r){const i=r&&e.projectService.configuredProjects.get(r);return i&&t(i)}function Jwe(e,t){return $at(e,r=>ghe(e,t,r.sourceFile.path),r=>ghe(e,t,e.toPath(pD(r))),r=>ghe(e,t,r))}function Qat(e,t){return`${Mo(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function Kwe(e){return!e.isScriptOpen()&&e.mTime!==void 0}function OI(e,t){return e.containsScriptInfo(t)&&!e.isSourceOfProjectReferenceRedirect(t.path)}function Vp(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&e.updateGraph()}function vhe(e){w0(e)&&(e.projectOptions=!0)}function yhe(e){let t=1;return()=>e(t++)}function bhe(){return{idToCallbacks:new Map,pathToId:new Map}}function Zat(e,t){if(!t||!e.eventHandler||!e.session)return;const r=bhe(),i=bhe(),o=bhe();let s=1;return e.session.addProtocolHandler("watchChange",A=>(h(A.arguments),{responseRequired:!1})),{watchFile:l,watchDirectory:u,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function l(A,R){return p(r,A,R,M=>({eventName:Uz,data:{id:M,path:A}}))}function u(A,R,M){return p(M?o:i,A,R,C=>({eventName:Hz,data:{id:C,path:A,recursive:!!M,ignoreUpdate:A.endsWith("/node_modules")?void 0:!0}}))}function p({pathToId:A,idToCallbacks:R},M,C,O){const U=e.toPath(M);let K=A.get(U);K||A.set(U,K=s++);let Q=R.get(K);return Q||(R.set(K,Q=new Set),e.eventHandler(O(K))),Q.add(C),{close(){const V=R.get(K);V!=null&&V.delete(C)&&(V.size||(R.delete(K),A.delete(U),e.eventHandler({eventName:qz,data:{id:K}})))}}}function h(A){To(A)?A.forEach(m):m(A)}function m({id:A,created:R,deleted:M,updated:C}){y(A,R,0),y(A,M,2),y(A,C,1)}function y(A,R,M){R!=null&&R.length&&(T(r,A,R,(C,O)=>C(O,M)),T(i,A,R,(C,O)=>C(O)),T(o,A,R,(C,O)=>C(O)))}function T(A,R,M,C){var O;(O=A.idToCallbacks.get(R))==null||O.forEach(U=>{M.forEach(K=>C(U,Lu(K)))})}}function est(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function Ehe(e){return e.kind!==void 0}function She(e){e.print(!1,!1,!1)}var Oz,Wz,p8,Fz,zz,Bz,Gz,Vz,jz,iZ,Uz,Hz,qz,The,Xwe,Ywe,$we,oZ,Jz,Kz,aZ,sZ,Ahe,lZ,tst=I({"src/server/editorServices.ts"(){ob(),cT(),lhe(),Oz=20*1024*1024,Wz=4*1024*1024,p8="projectsUpdatedInBackground",Fz="projectLoadingStart",zz="projectLoadingFinish",Bz="largeFileReferenced",Gz="configFileDiag",Vz="projectLanguageServiceState",jz="projectInfo",iZ="openFileInfo",Uz="createFileWatcher",Hz="createDirectoryWatcher",qz="closeFileWatcher",The="*ensureProjectForOpenFiles*",Xwe=jwe(lg),Ywe=jwe(tD),$we=new Map(Object.entries({none:0,block:1,smart:2})),oZ={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,"$"]]}},Jz={getFileName:e=>e,getScriptKind:(e,t)=>{let r;if(t){const i=Gx(e);i&&bt(t,o=>o.extension===i?(r=o.scriptKind,!0):!1)}return r},hasMixedContent:(e,t)=>bt(t,r=>r.isMixedContent&&Il(e,r.extension))},Kz={getFileName:e=>e.fileName,getScriptKind:e=>tZ(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent},aZ={close:Ya},sZ=(e=>(e[e.Find=0]="Find",e[e.FindCreate=1]="FindCreate",e[e.FindCreateLoad=2]="FindCreateLoad",e))(sZ||{}),Ahe=class _be{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=yhe(H_e),this.newAutoImportProviderProjectName=yhe(q_e),this.newAuxiliaryProjectName=yhe(J_e),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=oZ,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=Ya,this.verifyDocumentRegistry=Ya,this.verifyProgram=Ya,this.onProjectCreation=Ya;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||Lz,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||gc,this.pluginProbeLocations=t.pluginProbeLocations||gc,this.allowLocalPluginLoads=!!t.allowLocalPluginLoads,this.typesMapLocation=t.typesMapLocation===void 0?$r(ai(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=$p()),this.currentDirectory=fl(this.host.getCurrentDirectory()),this.toCanonicalFileName=Mu(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Fc(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new jQ(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 KQ(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:O7(this.host.newLine),preferences:Mf,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=LX(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const i=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,o=i!==0?s=>this.logger.info(s):Ya;this.packageJsonCache=xhe(this),this.watchFactory=this.serverMode!==0?{watchFile:gD,watchDirectory:gD}:oJ(Zat(this,t.canUseWatchEvents)||this.host,i,o,Qat),(r=t.incrementalVerifier)==null||r.call(t,this)}toPath(t){return il(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return go(t,this.host.getCurrentDirectory())}setDocument(t,r,i){const o=N.checkDefined(this.getScriptInfoForPath(r));o.cacheSourceFile={key:t,sourceFile:i}}getDocument(t,r){const 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;const i={eventName:Vz,data:{project:t,languageServiceEnabled:r}};this.eventHandler(i)}loadTypesMap(){try{const t=this.host.readFile(this.typesMapLocation);if(t===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}const r=JSON.parse(t);for(const i of Object.keys(r.typesMap))r.typesMap[i].match=new RegExp(r.typesMap[i].match,"i");this.safelist=r.typesMap;for(const i in r.simpleMap)Is(r.simpleMap,i)&&this.legacySafelist.set(i,r.simpleMap[i].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=oZ,this.legacySafelist.clear()}}updateTypingsForProject(t){const r=this.findProject(t.projectName);if(r)switch(t.kind){case qw:r.updateTypingFiles(this.typingsCache.updateTypingsForProject(t.projectName,t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings));return;case Jw: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(The,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(t.markAsDirty(),u8(t))return;const r=t.getProjectName();this.pendingProjectUpdates.set(r,t),this.throttledOperations.schedule(r,250,()=>{this.pendingProjectUpdates.delete(r)&&Vp(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const t={eventName:p8,data:{openFiles:zo(this.openFiles.keys(),r=>this.getScriptInfoForPath(r).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,r){if(!this.eventHandler)return;const i={eventName:Bz,data:{file:t,fileSize:r,maxFileSize:Wz}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,r){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;const i={eventName:Fz,data:{project:t,reason:r}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;const r={eventName:zz,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(const i of t)r&&i.clearSourceMapperCache(),this.delayUpdateProjectGraph(i);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(t,r){N.assert(r===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const i=wz(t),o=d8(t,r),s=mhe(t);i.allowNonTsExtensions=!0;const 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(const u of this.inferredProjects)(l?u.projectRootPath===l:!u.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(u.projectRootPath))&&(u.setCompilerOptions(i),u.setTypeAcquisition(s),u.setWatchOptions(o==null?void 0:o.watchOptions),u.setProjectErrors(o==null?void 0:o.errors),u.compileOnSaveEnabled=i.compileOnSave,u.markAsDirty(),this.delayUpdateProjectGraph(u));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return U_e(t)?Uwe(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(fl(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){const r=Mo(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();const r=Mo(t)?this.getScriptInfoForNormalizedPath(t):t;return r?r.getDefaultProject():(this.logErrorForScriptInfoNotFound(Mo(t)?t:t.fileName),Zv.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const r=i=>{t=Vp(i)||t};this.externalProjects.forEach(r),this.configuredProjects.forEach(r),this.inferredProjects.forEach(r),t&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(t){const r=this.getScriptInfoForNormalizedPath(t);return r&&r.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(t){const 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(Mo(t.sourceMapFilePath)){const 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){const r=this.getScriptInfoForPath(t);r&&this.delayUpdateProjectGraphs(r.containingProjects,!0)}handleDeletedFile(t){if(this.stopWatchingScriptInfo(t),!t.isScriptOpen()){this.deleteScriptInfo(t);const r=t.containingProjects.slice();if(t.detachAllProjects(),this.delayUpdateProjectGraphs(r,!1),this.handleSourceMapProjects(t),t.closeSourceMapFileWatcher(),t.declarationInfoPath){const i=this.getScriptInfoForPath(t.declarationInfoPath);i&&(i.sourceMapFilePath=void 0)}}}watchWildcardDirectory(t,r,i,o){let s=this.watchFactory.watchDirectory(t,u=>{const p=this.toPath(u),h=o.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(u,p);if(ic(p)==="package.json"&&!yO(p)&&(h&&h.fileExists||!h&&this.host.fileExists(u))){const y=this.getNormalizedAbsolutePath(u);this.logger.info(`Config: ${i} Detected new package.json: ${y}`),this.packageJsonCache.addOrUpdate(y,p),this.watchPackageJsonFile(y,p,l)}const m=this.findConfiguredProjectByProjectName(i);Ow({watchedDirPath:this.toPath(t),fileOrDirectory:u,fileOrDirectoryPath:p,configFileName:i,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:o.parsedCommandLine.options,program:(m==null?void 0:m.getCurrentProgram())||o.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:y=>this.logger.info(y),toPath:y=>this.toPath(y),getScriptKind:m?y=>m.getScriptKind(y):void 0})||(o.updateLevel!==2&&(o.updateLevel=1),o.projects.forEach((y,T)=>{if(!y)return;const A=this.getConfiguredProjectByCanonicalConfigFilePath(T);if(!A)return;const R=m===A?1:0;if(!(A.pendingUpdateLevel!==void 0&&A.pendingUpdateLevel>R))if(this.openFiles.has(p))if(N.checkDefined(this.getScriptInfoForPath(p)).isAttached(A)){const C=Math.max(R,A.openFileWatchTriggered.get(p)||0);A.openFileWatchTriggered.set(p,C)}else A.pendingUpdateLevel=R,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(A);else A.pendingUpdateLevel=R,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(A)}))},r,this.getWatchOptionsFromProjectWatchOptions(o.parsedCommandLine.watchOptions),Lc.WildcardDirectory,i);const 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){const i=this.configFileExistenceInfoCache.get(t);if(!(i!=null&&i.config))return!1;let o=!1;return i.config.updateLevel=2,i.config.projects.forEach((s,l)=>{const 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;const o=this.configFileExistenceInfoCache.get(t);if(r===2){o.exists=!1;const 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?tl:Iv,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),N.shouldAssert(1)&&this.filenameToScriptInfo.forEach(r=>N.assert(!r.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(zo(Kb(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:_A(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:_A(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,r){N.assert(t.isOrphan());const i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?r||this.currentDirectory:ai(dp(t.fileName)?t.fileName:go(t.fileName,r?this.getNormalizedAbsolutePath(r):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(wx(t.containingProjects,i),t.containingProjects.unshift(i)),i.updateGraph(),!this.useSingleInferredProject&&!i.projectRootPath)for(const o of this.inferredProjects){if(o===i||o.isOrphan())continue;const s=o.getRootScriptInfos();N.assert(s.length===1||!!o.projectRootPath),s.length===1&&Xe(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)=>{const i=this.getScriptInfoForPath(r);i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,t)})}closeOpenFile(t,r){const i=t.isDynamic?!1:this.host.fileExists(t.fileName);t.close(i),this.stopWatchingConfigFilesForClosedScriptInfo(t);const o=this.toCanonicalFileName(t.fileName);this.openFilesWithNonRootedDiskPath.get(o)===t&&this.openFilesWithNonRootedDiskPath.delete(o);let s=!1;for(const l of t.containingProjects){if(w0(l)){t.hasMixedContent&&t.registerFileUpdate();const u=l.openFileWatchTriggered.get(t.path);u!==void 0&&(l.openFileWatchTriggered.delete(t.path),l.pendingUpdateLevel!==void 0&&l.pendingUpdateLevel<u&&(l.pendingUpdateLevel=u,l.markFileAsDirty(t.path)))}else jD(l)&&l.isRoot(t)&&(l.isProjectWithSingleRoot()&&(s=!0),l.removeFile(t,i,!0));l.languageServiceEnabled||l.markAsDirty()}return this.openFiles.delete(t.path),this.configFileForOpenFiles.delete(t.path),!r&&s&&this.assignOrphanScriptInfosToInferredProject(),i?this.watchClosedScriptInfo(t):this.handleDeletedFile(t),s}deleteScriptInfo(t){this.filenameToScriptInfo.delete(t.path),this.filenameToScriptInfoVersion.set(t.path,t.textStorage.version);const r=t.getRealpathIfDifferent();r&&this.realpathToScriptInfos.remove(r,t)}configFileExists(t,r,i){var o;let s=this.configFileExistenceInfoCache.get(r);if(s)return rZ(i)&&!((o=s.openFilesImpactedByConfigFile)!=null&&o.has(i.path))&&(s.openFilesImpactedByConfigFile||(s.openFilesImpactedByConfigFile=new Map)).set(i.path,!1),s.exists;const l=this.host.fileExists(t);let u;return rZ(i)&&(u||(u=new Map)).set(i.path,!1),s={exists:l,openFilesImpactedByConfigFile:u},this.configFileExistenceInfoCache.set(r,s),l}createConfigFileWatcherForParsedConfig(t,r,i){var o,s;const l=this.configFileExistenceInfoCache.get(r);(!l.watcher||l.watcher===aZ)&&(l.watcher=this.watchFactory.watchFile(t,(p,h)=>this.onConfigFileChanged(r,h),2e3,this.getWatchOptionsFromProjectWatchOptions((s=(o=l==null?void 0:l.config)==null?void 0:o.parsedCommandLine)==null?void 0:s.watchOptions),Lc.ConfigFile,i));const u=l.config.projects;u.set(i.canonicalConfigFilePath,u.get(i.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(t){return t.openFilesImpactedByConfigFile&&zc(t.openFilesImpactedByConfigFile,tl)}releaseParsedConfig(t,r){var i,o,s;const 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,rJ(t,this.sharedExtendedConfigFileWatchers),N.checkDefined(l.watcher),(s=l.openFilesImpactedByConfigFile)!=null&&s.size?this.configFileExistenceImpactsRootOfInferredProject(l)?y7(Wc(ai(t)))||(l.watcher.close(),l.watcher=aZ):(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){N.assert(!t.isScriptOpen()),this.forEachConfigFileLocation(t,r=>{var i,o,s;const l=this.configFileExistenceInfoCache.get(r);if(l){const 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&&(N.assert(!l.watcher),this.configFileExistenceInfoCache.delete(r))}})}startWatchingConfigFilesForInferredProjectRoot(t){N.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=y7(Wc(ai(r)))?this.watchFactory.watchFile(i,(s,l)=>this.onConfigFileChanged(r,l),2e3,this.hostConfiguration.watchOptions,Lc.ConfigFileForInferredRoot):aZ)})}stopWatchingConfigFilesForInferredProjectRoot(t){this.forEachConfigFileLocation(t,r=>{var i;const o=this.configFileExistenceInfoCache.get(r);(i=o==null?void 0:o.openFilesImpactedByConfigFile)!=null&&i.has(t.path)&&(N.assert(t.isScriptOpen()),o.openFilesImpactedByConfigFile.set(t.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(o))})}forEachConfigFileLocation(t,r){if(this.serverMode!==0)return;N.assert(!rZ(t)||this.openFiles.has(t.path));const i=this.openFiles.get(t.path);if(N.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let s=ai(t.fileName);const l=()=>gm(i,s,this.currentDirectory,!this.host.useCaseSensitiveFileNames),u=!i||!l();let p=!Hwe(t);do{if(p){const m=s8(s,this.currentDirectory,this.toCanonicalFileName),y=$r(s,"tsconfig.json");let T=r($r(m,"tsconfig.json"),y);if(T)return y;const A=$r(s,"jsconfig.json");if(T=r($r(m,"jsconfig.json"),A),T)return A;if(Z6(m))break}const h=ai(s);if(h===s)break;s=h,p=!0}while(u||l())}findDefaultConfiguredProject(t){if(!t.isScriptOpen())return;const r=this.getConfigFileNameForFile(t),i=r&&this.findConfiguredProjectByProjectName(r);return i&&OI(i,t)?i:i==null?void 0:i.getDefaultChildProjectFromProjectWithReferences(t)}getConfigFileNameForFile(t){if(!Hwe(t)){const i=this.configFileForOpenFiles.get(t.path);if(i!==void 0)return i||void 0}this.logger.info(`Search path: ${ai(t.fileName)}`);const 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.`),rZ(t)&&this.configFileForOpenFiles.set(t.path,r||!1),r}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(She),this.configuredProjects.forEach(She),this.inferredProjects.forEach(She),this.logger.info("Open files: "),this.openFiles.forEach((t,r)=>{const 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){const 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=Oz;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(u=>s-=u||0);let l=0;for(const u of i){const p=o.getFileName(u);if(!GA(p)&&(l+=this.host.getFileSize(p),l>Oz||l>s)){const h=i.map(m=>o.getFileName(m)).filter(m=>!GA(m)).map(m=>({name:m,size:this.host.getFileSize(m)})).sort((m,y)=>y.size-m.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${l}). Largest files: ${h.map(m=>`${m.name}:${m.size}`).join(", ")}`),p}}this.projectToSizeMap.set(t,l)}createExternalProject(t,r,i,o,s){const l=wz(i),u=d8(i,ai(Lu(t))),p=new kz(t,this,this.documentRegistry,l,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,l,r,Kz),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,u==null?void 0:u.watchOptions);return p.setProjectErrors(u==null?void 0:u.errors),p.excludedFiles=s,this.addFilesToNonInferredProject(p,r,Kz,o),this.externalProjects.push(p),p}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){vhe(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){vhe(t);return}const r=w0(t)?t.projectOptions:void 0;vhe(t);const i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:c8(t.getScriptInfos(),!0),compilerOptions:ise(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 kz?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:Re};this.eventHandler({eventName:jz,data:i});function o(){return w0(t)&&VQ(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=sr)==null||r.instant(sr.Phase.Session,"createConfiguredProject",{configFilePath:t}),this.logger.info(`Creating configuration project ${t}`);const i=this.toCanonicalFileName(t);let o=this.configFileExistenceInfoCache.get(i);o?o.exists=!0:this.configFileExistenceInfoCache.set(i,o={exists:!0}),o.config||(o.config={cachedDirectoryStructureHost:i7(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const s=new eZ(t,i,this,this.documentRegistry,o.config.cachedDirectoryStructureHost);return this.configuredProjects.set(i,s),this.createConfigFileWatcherForParsedConfig(t,i,s),s}createConfiguredProjectWithDelayLoad(t,r){const i=this.createConfiguredProject(t);return i.pendingUpdateLevel=2,i.pendingUpdateReason=r,i}createAndLoadConfiguredProject(t,r){const i=this.createConfiguredProject(t);return this.loadConfiguredProject(i,r),i}createLoadAndUpdateConfiguredProject(t,r){const i=this.createAndLoadConfiguredProject(t,r);return i.updateGraph(),i}loadConfiguredProject(t,r){var i,o;(i=sr)==null||i.push(sr.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,r);const s=ha(t.getConfigFilePath()),l=this.ensureParsedConfigUptoDate(s,t.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),u=l.config.parsedCommandLine;N.assert(!!u.fileNames);const 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=NP(u.raw),t.setProjectErrors(u.options.configFile.parseDiagnostics),t.updateReferences(u.projectReferences);const h=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,p,u.fileNames,Jz);h?(t.disableLanguageService(h),this.configFileExistenceInfoCache.forEach((y,T)=>this.stopWatchingWildCards(T,t))):(t.setCompilerOptions(p),t.setWatchOptions(u.watchOptions),t.enableLanguageService(),this.watchWildcards(s,l,t)),t.enablePluginsWithOptions(p);const m=u.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,m,Jz,p,u.typeAcquisition,u.compileOnSave,u.watchOptions),(o=sr)==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}const p=((s=i.config)==null?void 0:s.cachedDirectoryStructureHost)||i7(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),h=DP(t,R=>this.host.readFile(R)),m=ow(t,Mo(h)?h:""),y=m.parseDiagnostics;Mo(h)||y.push(h);const T=cw(m,p,ai(t),{},t,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);T.errors.length&&y.push(...T.errors),this.logger.info(`Config: ${t} : ${JSON.stringify({rootNames:T.fileNames,options:T.options,watchOptions:T.watchOptions,projectReferences:T.projectReferences},void 0," ")}`);const A=(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},!A&&!U3(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions(T.watchOptions))&&((u=i.watcher)==null||u.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,r,o),o7(r,T.options,this.sharedExtendedConfigFileWatchers,(R,M)=>this.watchFactory.watchFile(R,()=>{var C;a7(this.extendedConfigCache,M,U=>this.toPath(U));let O=!1;(C=this.sharedExtendedConfigFileWatchers.get(M))==null||C.projects.forEach(U=>{O=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(U,`Change in extended config file ${R} detected`)||O}),O&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,Lc.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,ww(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){const i=this.configFileExistenceInfoCache.get(t);!i.config||!i.config.projects.get(r.canonicalConfigFilePath)||(i.config.projects.set(r.canonicalConfigFilePath,!1),!zc(i.config.projects,tl)&&(i.config.watchedDirectories&&(ep(i.config.watchedDirectories,Cf),i.config.watchedDirectories=void 0),i.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(t,r,i){const o=t.getRootFilesMap(),s=new Map;for(const l of r){const u=i.getFileName(l),p=fl(u),h=l8(p);let m;if(!h&&!t.fileExists(u)){m=s8(p,this.currentDirectory,this.toCanonicalFileName);const y=o.get(m);y?(y.info&&(t.removeFile(y.info,!1,!0),y.info=void 0),y.fileName=p):o.set(m,{fileName:p})}else{const y=i.getScriptKind(l,this.hostConfiguration.extraFileExtensions),T=i.hasMixedContent(l,this.hostConfiguration.extraFileExtensions),A=N.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(p,t.currentDirectory,y,T,t.directoryStructureHost));m=A.path;const R=o.get(m);!R||R.info!==A?(t.addRoot(A,p),A.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(A)):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){const r=this.reloadFileNamesOfParsedConfig(t.getConfigFilePath(),this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath).config);return t.updateErrorOnNoInputFiles(r),this.updateNonInferredProjectFiles(t,r.concat(t.getExternalFiles(1)),Jz),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,r){if(r.updateLevel===void 0)return r.parsedCommandLine.fileNames;N.assert(r.updateLevel===1);const i=r.parsedCommandLine.options.configFile.configFileSpecs,o=CP(i,ai(t),r.parsedCommandLine.options,r.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:o},o}setFileNamesOfAutpImportProviderOrAuxillaryProject(t,r){this.updateNonInferredProjectFiles(t,r,Jz)}reloadConfiguredProject(t,r,i,o){const s=t.getCachedDirectoryStructureHost();o&&this.clearSemanticCache(t),s.clearCache();const 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;const i=t.getLanguageService().getCompilerOptionsDiagnostics();i.push(...t.getAllProjectErrors()),this.eventHandler({eventName:Gz,data:{configFileName:t.getConfigFilePath(),diagnostics:i,triggerFile:r}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r){if(!this.useInferredProjectPerProjectRoot||t.isDynamic&&r===void 0)return;if(r){const o=this.toCanonicalFileName(r);for(const s of this.inferredProjects)if(s.projectRootPath===o)return s;return this.createInferredProject(r,!1,r)}let i;for(const o of this.inferredProjects)o.projectRootPath&&gm(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){N.assert(!this.useSingleInferredProject);const r=this.toCanonicalFileName(this.getNormalizedAbsolutePath(t));for(const i of this.inferredProjects)if(!i.projectRootPath&&i.isOrphan()&&i.canonicalCurrentDirectory===r)return i;return this.createInferredProject(t)}createInferredProject(t,r,i){const o=i&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(i)||this.compilerOptionsForInferredProjects;let 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;const u=new YQ(this,this.documentRegistry,o,s==null?void 0:s.watchOptions,i,t,l);return u.setProjectErrors(s==null?void 0:s.errors),r?this.inferredProjects.unshift(u):this.inferredProjects.push(u),u}getOrCreateScriptInfoNotOpenedByClient(t,r,i){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(fl(t),r,void 0,void 0,i)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(fl(t))}getScriptInfoOrConfig(t){const r=fl(t),i=this.getScriptInfoForNormalizedPath(r);if(i)return i;const o=this.configuredProjects.get(this.toPath(t));return o&&o.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(t){const r=zo(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){const o=t.getRealpathIfDifferent();o&&Xe(this.realpathToScriptInfos.get(o),i),Xe(this.realpathToScriptInfos.get(t.path),i)}return r;function i(o){if(o!==t)for(const s of o.containingProjects)s.languageServiceEnabled&&!s.isOrphan()&&!s.getCompilerOptions().preserveSymlinks&&!t.isAttached(s)&&(r?zc(r,(l,u)=>u===o.path?!1:Or(l,s))||r.add(o.path,s):(r=$p(),r.add(o.path,s)))}}watchClosedScriptInfo(t){if(N.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!uo(t.path,this.globalCacheLocationDirectoryPath))){const 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,Lc.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;const u=v7(this.toPath(s));if(!u)return;const p=ic(u);if((l=o.affectedModuleSpecifierCacheProjects)!=null&&l.size&&(p==="package.json"||p==="node_modules")&&o.affectedModuleSpecifierCacheProjects.forEach(h=>{var m;(m=h.getModuleSpecifierCache())==null||m.clear()}),o.refreshScriptInfoRefCount)if(r===u)this.refreshScriptInfosInDirectory(r);else{const h=this.getScriptInfoForPath(u);h?Kwe(h)&&this.refreshScriptInfo(h):vA(u)||this.refreshScriptInfosInDirectory(u)}},1,this.hostConfiguration.watchOptions,Lc.NodeModules);const 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;const o=this.toPath(t),s=this.nodeModulesWatchers.get(o)||this.createNodeModulesWatcher(t,o);return N.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){const 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)||wp).getTime()}refreshScriptInfo(t){const r=this.getModifiedTime(t);if(r!==t.mTime){const i=lV(t.mTime,r);t.mTime=r,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+ol,this.filenameToScriptInfo.forEach(r=>{Kwe(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)||l8(t))return this.getOrCreateScriptInfoWorker(t,r,!1,void 0,i,o,s);const 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){N.assert(o===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");const p=s8(t,r,this.toCanonicalFileName);let h=this.getScriptInfoForPath(p);if(!h){const m=l8(t);if(N.assert(dp(t)||m||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:zo(this.openFilesWithNonRootedDiskPath.keys())})} +Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),N.assert(!dp(t)||this.currentDirectory===r||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:zo(this.openFilesWithNonRootedDiskPath.keys())})} +Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),N.assert(!m||this.currentDirectory===r||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:zo(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;h=new JQ(this.host,t,s,!!l,p,this.filenameToScriptInfoVersion.get(p)),this.filenameToScriptInfo.set(h.path,h),this.filenameToScriptInfoVersion.delete(h.path),i?!dp(t)&&(!m||this.currentDirectory!==r)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(t),h):this.watchClosedScriptInfo(h)}return i&&(this.stopWatchingScriptInfo(h),h.open(o),l&&h.registerFileUpdate()),h}getScriptInfoForNormalizedPath(t){return!dp(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(s8(t,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(t){return this.filenameToScriptInfo.get(t)}getDocumentPositionMapper(t,r,i){const o=this.getOrCreateScriptInfoNotOpenedByClient(r,t.currentDirectory,this.host);if(!o){i&&t.addGeneratedFileWatch(r,i);return}if(o.getSnapshot(),Mo(o.sourceMapFilePath)){const 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,y)=>{const T=this.getOrCreateScriptInfoNotOpenedByClient(m,t.currentDirectory,this.host);if(!T){l=y;return}s=T;const A=T.getSnapshot();return T.documentPositionMapper!==void 0?T.documentPositionMapper:ED(A)};const p=t.projectName,h=WX({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=h||!1,s.sourceInfos=this.addSourceInfoToSourceMap(i,t,s.sourceInfos)):l?o.sourceMapFilePath={watcher:this.addMissingSourceMapFile(t.currentDirectory===this.currentDirectory?l:go(l,t.currentDirectory),o.path),sourceInfos:this.addSourceInfoToSourceMap(i,t)}:o.sourceMapFilePath=!1,h}addSourceInfoToSourceMap(t,r,i){if(t){const 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,()=>{const o=this.getScriptInfoForPath(r);o&&o.sourceMapFilePath&&!Mo(o.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(o.containingProjects,!0),this.delayUpdateSourceInfoProjects(o.sourceMapFilePath.sourceInfos),o.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,Lc.MissingSourceMapFile)}getSourceFileLike(t,r,i){const o=r.projectName?r:this.findProject(r);if(o){const l=o.toPath(t),u=o.getSourceFile(l);if(u&&u.resolvedPath===l)return u}const s=this.getOrCreateScriptInfoNotOpenedByClient(t,(o||this).currentDirectory,o?o.directoryStructureHost:this.host);if(s){if(i&&Mo(i.sourceMapFilePath)&&s!==i){const 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 N.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:l=>{const 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){const i=this.getScriptInfoForNormalizedPath(fl(t.file));i&&(i.setOptions(UD(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,...UD(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){const{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=d8(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(The),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(t=>{t.config&&(t.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,Iv,"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){const l=new Map,u=p=>{l.has(p.canonicalConfigFilePath)||(l.set(p.canonicalConfigFilePath,!0),this.reloadConfiguredProject(p,s,!1,r))};t==null||t.forEach((p,h)=>{if(this.configFileForOpenFiles.delete(h),!o(p))return;const m=this.getScriptInfoForPath(h);N.assert(m.isScriptOpen());const y=this.getConfigFileNameForFile(m);if(y){const T=this.findConfiguredProjectByProjectName(y)||this.createConfiguredProject(y);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),OI(T,m)||HD(T,m.path,R=>(u(R),OI(R,m)),1)&&HD(T,void 0,u,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(t){N.assert(t.containingProjects.length>0);const r=t.containingProjects[0];!r.isOrphan()&&jD(r)&&r.isRoot(t)&&Xe(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)=>{const i=this.getScriptInfoForPath(r);i.isOrphan()?this.assignOrphanScriptInfoToInferredProject(i,t):this.removeRootOfInferredProjectIfNowPartOfOtherProject(i)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(Vp),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,r,i,o){return this.openClientFileWithNormalizedPath(fl(t),r,i,!1,o?fl(o):void 0)}getOriginalLocationEnsuringConfiguredProject(t,r){const i=t.isSourceOfProjectReferenceRedirect(r.fileName),o=i?r:t.getSourceMapper().tryGetSourcePosition(r);if(!o)return;const{fileName:s}=o,l=this.getScriptInfo(s);if(!l&&!this.host.fileExists(s))return;const u={fileName:fl(s),path:this.toPath(s)},p=this.getConfigFileNameForFile(u);if(!p)return;let h=this.findConfiguredProjectByProjectName(p);if(!h){if(t.getCompilerOptions().disableReferencedProjectLoad)return i?r:l!=null&&l.containingProjects.length?o:r;h=this.createAndLoadConfiguredProject(p,`Creating project for original file: ${u.fileName}${r!==o?" for location: "+r.fileName:""}`)}Vp(h);const m=A=>{const R=this.getScriptInfo(s);return R&&OI(A,R)};if(h.isSolution()||!m(h)){if(h=HD(h,s,A=>(Vp(A),m(A)?A:void 0),2,`Creating project referenced in solution ${h.projectName} to find possible configured project for original file: ${u.fileName}${r!==o?" for location: "+r.fileName:""}`),!h)return;if(h===t)return o}T(h);const y=this.getScriptInfo(s);if(!y||!y.containingProjects.length)return;return y.containingProjects.forEach(A=>{w0(A)&&T(A)}),o;function T(A){t.originalConfiguredProjects||(t.originalConfiguredProjects=new Set),t.originalConfiguredProjects.add(A.canonicalConfigFilePath)}}fileExists(t){return!!this.getScriptInfoForNormalizedPath(t)||this.host.fileExists(t)}findExternalProjectContainingOpenScriptInfo(t){return In(this.externalProjects,r=>(Vp(r),r.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(t,r,i,o,s){const 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?Vp(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,OI(o,t)||HD(o,t.path,p=>{if(Vp(p),To(s)?s.push(p):s=[o,p],OI(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(Vp),t.isOrphan()&&(To(s)?s.forEach(p=>this.sendConfigFileDiagEvent(p,t.fileName)):s&&this.sendConfigFileDiagEvent(s,t.fileName),N.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),N.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;const i=this.getConfigFileNameForFile({fileName:r.getConfigFilePath(),path:t.path,configFileInfo:!0});if(!i)return;const 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||y6(this.configuredProjects,(i,o)=>o.isInitialLoadPending()?void 0:[i,!0]);const r=new Set;for(const i of zo(this.configuredProjects.values()))qwe(i,o=>t.has(o))&&Vp(i),this.ensureProjectChildren(i,t,r)}ensureProjectChildren(t,r,i){var o;if(!Xb(i,t.canonicalConfigFilePath)||t.getCompilerOptions().disableReferencedProjectLoad)return;const s=(o=t.getCurrentProgram())==null?void 0:o.getResolvedProjectReferences();if(s)for(const l of s){if(!l)continue;const u=vJ(l.references,m=>r.has(m.sourceFile.path)?m:void 0);if(!u)continue;const p=fl(l.sourceFile.fileName),h=t.projectService.findConfiguredProjectByProjectName(p)||t.projectService.createAndLoadConfiguredProject(p,`Creating project referenced by : ${t.projectName} as it references project ${u.sourceFile.fileName}`);Vp(h),this.ensureProjectChildren(h,r,i)}}cleanupAfterOpeningFile(t){this.removeOrphanConfiguredProjects(t);for(const r of this.inferredProjects.slice())r.isOrphan()&&this.removeProject(r);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(t,r,i,o,s){const 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){const r=new Map(this.configuredProjects),i=l=>{!l.isOrphan()&&l.originalConfiguredProjects&&l.originalConfiguredProjects.forEach((u,p)=>{const h=this.getConfiguredProjectByCanonicalConfigFilePath(p);return h&&s(h)})};t&&(To(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)&&Jwe(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),Jwe(l,s))}}removeOrphanScriptInfos(){const t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(r=>{if(!r.isScriptOpen()&&r.isOrphan()&&!r.isContainedByBackgroundProject()){if(!r.sourceMapFilePath)return;let i;if(Mo(r.sourceMapFilePath)){const o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;if(!i||!mh(i,o=>{const s=this.getScriptInfoForPath(o);return!!s&&(s.isScriptOpen()||!s.isOrphan())}))return}if(t.delete(r.path),r.sourceMapFilePath){let i;if(Mo(r.sourceMapFilePath)){t.delete(r.sourceMapFilePath);const 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()||!Am(this.allJsFilesForOpenFileTelemetry,t.path))return;const r=this.ensureDefaultProjectForFile(t);if(!r.languageServiceEnabled)return;const i=r.getSourceFile(t.path),o=!!i&&!!i.checkJsDirective;this.eventHandler({eventName:iZ,data:{info:{checkJs:o}}})}closeClientFile(t,r){const i=this.getScriptInfoForNormalizedPath(fl(t)),o=i?this.closeOpenFile(i,r):!1;return r||this.printProjects(),o}collectChanges(t,r,i,o){for(const s of r){const l=In(t,u=>u.projectName===s.getProjectName());o.push(s.getChangesSinceVersion(l&&l.version,i))}}synchronizeProjectList(t,r){const 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(const u of t){const p=this.getOrCreateOpenScriptInfo(fl(u.fileName),u.content,tZ(u.scriptKind),u.hasMixedContent,u.projectRootPath?fl(u.projectRootPath):void 0);(o||(o=[])).push(p)}if(r)for(const u of r){const p=this.getScriptInfo(u.fileName);N.assert(!!p),this.applyChangesToFile(p,u.changes)}if(i)for(const u of i)s=this.closeClientFile(u,!0)||s;let l;o&&(l=Do(o,u=>this.assignProjectToOpenedScriptInfo(u).retainProjects)),s&&this.assignOrphanScriptInfosToInferredProject(),o?(this.cleanupAfterOpeningFile(l),o.forEach(u=>this.telemetryOnOpenFile(u)),this.printProjects()):Ne(i)&&this.printProjects()}applyChangesToFile(t,r){for(const i of r)t.editContent(i.span.start,i.span.start+i.span.length,i.newText)}closeConfiguredProjectReferencedFromExternalProject(t){t==null||t.forEach(r=>{r.isClosed()||(r.deleteExternalProjectReference(),r.hasOpenRef()||this.removeProject(r))})}closeExternalProject(t,r){const i=fl(t),o=this.externalProjectToConfiguredProjectMap.get(i);if(o)this.closeConfiguredProjectReferencedFromExternalProject(o),this.externalProjectToConfiguredProjectMap.delete(i);else{const s=this.findExternalProjectByProjectName(t);s&&this.removeProject(s)}r&&this.printProjects()}openExternalProjects(t){const r=TE(this.externalProjects,i=>i.getProjectName(),i=>!0);mh(this.externalProjectToConfiguredProjectMap,i=>{r.set(i,!0)});for(const 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=oZ}applySafeList(t){const r=t.typeAcquisition;N.assert(!!r,"proj.typeAcquisition should be set by now");const i=this.applySafeListWorker(t,t.rootFiles,r);return(i==null?void 0:i.excludedFiles)??[]}applySafeListWorker(t,r,i){if(i.enable===!1||i.disableFilenameBasedTypeAcquisition)return;const o=i.include||(i.include=[]),s=[],l=r.map(y=>Lu(y.fileName));for(const y of Object.keys(this.safelist)){const T=this.safelist[y];for(const A of l)if(T.match.test(A)){if(this.logger.info(`Excluding files based on rule ${y} matching file '${A}'`),T.types)for(const R of T.types)o.includes(R)||o.push(R);if(T.exclude)for(const R of T.exclude){const M=A.replace(T.match,(...C)=>R.map(O=>typeof O=="number"?Mo(C[O])?_be.escapeFilenameForRegex(C[O]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${y} - not enough groups`),"\\*"):O).join(""));s.includes(M)||s.push(M)}else{const R=_be.escapeFilenameForRegex(A);s.includes(R)||s.push(R)}}}const u=s.map(y=>new RegExp(y,"i"));let p,h;for(let y=0;y<r.length;y++)if(u.some(T=>T.test(l[y])))m(y);else{if(i.enable){const T=ic(lh(l[y]));if(Il(T,"js")){const A=Ad(T),R=YB(A),M=this.legacySafelist.get(R);if(M!==void 0){this.logger.info(`Excluded '${l[y]}' because it matched ${R} from the legacy safelist`),m(y),o.includes(M)||o.push(M);continue}}}/^.+[.-]min\.js$/.test(l[y])?m(y):p==null||p.push(r[y])}return h?{rootFiles:p,excludedFiles:h}:void 0;function m(y){h||(N.assert(!p),p=r.slice(0,y),h=[]),h.push(l[y])}}openExternalProject(t,r){const i=this.findExternalProjectByProjectName(t.projectFileName),o=this.externalProjectToConfiguredProjectMap.get(t.projectFileName);let s,l=[];for(const u of t.rootFiles){const p=fl(u.fileName);if(VQ(p)){if(this.serverMode===0&&this.host.fileExists(p)){let h=this.findConfiguredProjectByProjectName(p);h||(h=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!=null&&o.has(h)||h.addExternalProjectReference(),(s??(s=new Set)).add(h),o==null||o.delete(h)}}else l.push(u)}if(s)this.externalProjectToConfiguredProjectMap.set(t.projectFileName,s),i&&this.removeProject(i);else{this.externalProjectToConfiguredProjectMap.delete(t.projectFileName);const u=t.typeAcquisition||{};u.include=u.include||[],u.exclude=u.exclude||[],u.enable===void 0&&(u.enable=phe(l.map(m=>m.fileName)));const p=this.applySafeListWorker(t,l,u),h=(p==null?void 0:p.excludedFiles)??[];if(l=(p==null?void 0:p.rootFiles)??l,i){i.excludedFiles=h;const m=wz(t.options),y=d8(t.options,i.getCurrentDirectory()),T=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,m,l,Kz);T?i.disableLanguageService(T):i.enableLanguageService(),i.setProjectErrors(y==null?void 0:y.errors),this.updateRootAndOptionsOfNonInferredProject(i,l,Kz,m,u,t.options.compileOnSave,y==null?void 0:y.watchOptions),i.updateGraph()}else this.createExternalProject(t.projectFileName,l,t.options,u,h).updateGraph()}this.closeConfiguredProjectReferencedFromExternalProject(o),r&&this.printProjects()}hasDeferredExtension(){for(const 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||Sw(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){const o=lT.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,lT.importServicePluginSync(r,i,this.host,o=>this.logger.info(o)))}endEnablePlugin(t,{pluginConfigEntry:r,resolvedModule:i,errorLogs:o}){var s;if(i){const l=(s=this.currentPluginConfigOverrides)==null?void 0:s.get(r.name);if(l){const u=r.name;r=l,r.name=u}t.enableProxy(i,r)}else Xe(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;const t=zo(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){N.assert(this.currentPluginEnablementPromise===void 0),await Promise.all(Wt(t,([r,i])=>this.enableRequestedPluginsForProjectAsync(r,i))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(t,r){const i=await Promise.all(r);if(!t.isClosed()){for(const 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){const 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:const h=$r(p,"package.json");this.watchPackageJsonFile(h,this.toPath(h),r);const m=o.getInDirectory(p);m&&l.push(m)}if(s&&s===p)return!0};return ym(ai(t),u),l}getNearestAncestorDirectoryWithPackageJson(t){return ym(t,r=>{switch(this.packageJsonCache.directoryHasPackageJson(r)){case-1:return r;case 0:return;case 3:return this.host.fileExists($r(r,"package.json"))?r:void 0}})}watchPackageJsonFile(t,r,i){N.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 N.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,Lc.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=est())}},Ahe.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,lZ=Ahe}});function Ihe(e){let t,r,i;const o={get(p,h,m,y){if(!(!r||i!==l(p,m,y)))return r.get(h)},set(p,h,m,y,T,A){if(s(p,m,y).set(h,u(T,A,!1)),A){for(const R of T)if(R.isInNodeModules){const M=R.path.substring(0,R.path.indexOf(Ih)+Ih.length-1),C=e.toPath(M);t!=null&&t.has(C)||(t||(t=new Map)).set(C,e.watchNodeModulesForPackageJsonChanges(M))}}},setModulePaths(p,h,m,y,T){const A=s(p,m,y),R=A.get(h);R?R.modulePaths=T:A.set(h,u(T,void 0,void 0))},setBlockedByPackageJsonDependencies(p,h,m,y,T){const A=s(p,m,y),R=A.get(h);R?R.isBlockedByPackageJsonDependencies=T:A.set(h,u(void 0,void 0,T))},clear(){t==null||t.forEach(Xm),r==null||r.clear(),t==null||t.clear(),i=void 0},count(){return r?r.size:0}};return N.isDebugging&&Object.defineProperty(o,"__cache",{get:()=>r}),o;function s(p,h,m){const y=l(p,h,m);return r&&i!==y&&o.clear(),i=y,r||(r=new Map)}function l(p,h,m){return`${p},${h.importModuleSpecifierEnding},${h.importModuleSpecifierPreference},${m.overrideImportMode}`}function u(p,h,m){return{modulePaths:p,moduleSpecifiers:h,isBlockedByPackageJsonDependencies:m}}}var nst=I({"src/server/moduleSpecifierCache.ts"(){ob()}});function xhe(e){const t=new Map,r=new Map;return{addOrUpdate:i,invalidate:o,delete:l=>{t.delete(l),r.set(ai(l),!0)},getInDirectory:l=>t.get(e.toPath($r(l,"package.json")))||void 0,directoryHasPackageJson:l=>s(e.toPath(l)),searchDirectoryAndAncestors:l=>{ym(l,u=>{const p=e.toPath(u);if(s(p)!==3)return!0;const h=$r(u,"package.json");vO(e,h)?i(h,$r(p,"package.json")):r.set(p,!0)})}};function i(l,u){const p=N.checkDefined(mX(l,e.host));t.set(u,p),r.delete(ai(u))}function o(l){t.delete(l),r.delete(ai(l))}function s(l){return t.has($r(l,"package.json"))?-1:r.has(l)?0:3}}var rst=I({"src/server/packageJsonCache.ts"(){ob()}});function ist(e){const t=e[0],r=e[1];return(1e9*t+r)/1e6}function Qwe(e,t){if((jD(e)||XQ(e))&&e.isJsOnlyProject()){const r=e.getScriptInfoForNormalizedPath(t);return r&&!r.isJavaScript()}return!1}function ost(e){return Rf(e)||!!e.emitDecoratorMetadata}function Zwe(e,t,r){const 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:lS(r),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,source:r.source,relatedInformation:Wt(r.relatedInformation,cZ)}}function cZ(e){return e.file?{span:{start:f8(ys(e.file,e.start)),end:f8(ys(e.file,e.start+e.length)),file:e.file.fileName},message:W_(e.messageText,` +`),category:lS(e),code:e.code}:{message:W_(e.messageText,` +`),category:lS(e),code:e.code}}function f8(e){return{line:e.line+1,offset:e.character+1}}function m8(e,t){const r=e.file&&f8(ys(e.file,e.start)),i=e.file&&f8(ys(e.file,e.start+e.length)),o=W_(e.messageText,` +`),{code:s,source:l}=e,u=lS(e),p={start:r,end:i,text:o,code:s,category:u,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:l,relatedInformation:Wt(e.relatedInformation,cZ)};return t?{...p,fileName:e.file&&e.file.fileName}:p}function ast(e,t){return e.every(r=>Kl(r.span)<t)}function Rhe(e,t,r,i){const o=t.hasLevel(3),s=JSON.stringify(e);return o&&t.info(`${e.type}:${N0(e)}`),`Content-Length: ${1+r(s,"utf8")}\r +\r +${s}${i}`}function Dhe(e,t){return{seq:0,type:"event",event:e,body:t}}function sst(e,t,r,i){const o=kp(To(r)?r:r.projects,s=>i(s,e));return!To(r)&&r.symLinkedProjects&&r.symLinkedProjects.forEach((s,l)=>{const u=t(l);o.push(...Do(s,p=>i(p,u)))}),SE(o,xv)}function uZ(e){return KB(({textSpan:t})=>t.start+100003*t.length,ZK(e))}function lst(e,t,r,i,o,s,l){const u=eOe(e,t,r,!0,(m,y)=>m.getLanguageService().findRenameLocations(y.fileName,y.pos,i,o,s),(m,y)=>y(xM(m)));if(To(u))return u;const p=[],h=uZ(l);return u.forEach((m,y)=>{for(const T of m)!h.has(T)&&!dZ(xM(T),y)&&(p.push(T),h.add(T))}),p}function cst(e,t,r){const i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,r),o=i&&Kc(i);return o&&!o.isLocal?{fileName:o.fileName,pos:o.textSpan.start}:void 0}function ust(e,t,r,i,o){var s,l;const u=eOe(e,t,r,!1,(y,T)=>(o.info(`Finding references to ${T.fileName} position ${T.pos} in project ${y.getProjectName()}`),y.getLanguageService().findReferences(T.fileName,T.pos)),(y,T)=>{T(xM(y.definition));for(const A of y.references)T(xM(A))});if(To(u))return u;const p=u.get(t);if(((l=(s=p==null?void 0:p[0])==null?void 0:s.references[0])==null?void 0:l.isDefinition)===void 0)u.forEach(y=>{for(const T of y)for(const A of T.references)delete A.isDefinition});else{const y=uZ(i);for(const A of p)for(const R of A.references)if(R.isDefinition){y.add(R);break}const T=new Set;for(;;){let A=!1;if(u.forEach((R,M)=>{if(T.has(M))return;M.getLanguageService().updateIsDefinitionOfReferencedSymbols(R,y)&&(T.add(M),A=!0)}),!A)break}u.forEach((A,R)=>{if(!T.has(R))for(const M of A)for(const C of M.references)C.isDefinition=!1})}const h=[],m=uZ(i);return u.forEach((y,T)=>{for(const A of y){const R=dZ(xM(A.definition),T),M=R===void 0?A.definition:{...A.definition,textSpan:vu(R.pos,A.definition.textSpan.length),fileName:R.fileName,contextSpan:fst(A.definition,T)};let C=In(h,O=>QK(O.definition,M,i));C||(C={definition:M,references:[]},h.push(C));for(const O of A.references)!m.has(O)&&!dZ(xM(O),T)&&(m.add(O),C.references.push(O))}}),h.filter(y=>y.references.length!==0)}function Nhe(e,t,r){for(const i of To(e)?e:e.projects)r(i,t);!To(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,o)=>{for(const s of i)r(s,o)})}function eOe(e,t,r,i,o,s){const l=new Map,u=M2();u.enqueue({project:t,location:r}),Nhe(e,r.fileName,(M,C)=>{const O={fileName:C,pos:r.pos};u.enqueue({project:M,location:O})});const p=t.projectService,h=t.getCancellationToken(),m=cst(t,r,i),y=Sd(()=>t.isSourceOfProjectReferenceRedirect(m.fileName)?m:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(m)),T=Sd(()=>t.isSourceOfProjectReferenceRedirect(m.fileName)?m:t.getLanguageService().getSourceMapper().tryGetSourcePosition(m)),A=new Set;e:for(;!u.isEmpty();){for(;!u.isEmpty();){if(h.isCancellationRequested())break e;const{project:M,location:C}=u.dequeue();if(l.has(M)||tOe(M,C)||(Vp(M),!M.containsFile(fl(C.fileName))))continue;const O=R(M,C);l.set(M,O??gc),A.add(pst(M))}m&&(p.loadAncestorProjectTree(A),p.forEachEnabledProject(M=>{if(h.isCancellationRequested()||l.has(M))return;const C=dst(m,M,y,T);C&&u.enqueue({project:M,location:C})}))}if(l.size===1)return jB(l.values());return l;function R(M,C){const O=o(M,C);if(O){for(const U of O)s(U,K=>{const Q=p.getOriginalLocationEnsuringConfiguredProject(M,K);if(!Q)return;const V=p.getScriptInfo(Q.fileName);for(const G of V.containingProjects)!G.isOrphan()&&!l.has(G)&&u.enqueue({project:G,location:Q});const se=p.getSymlinkedProjects(V);se&&se.forEach((G,ne)=>{for(const he of G)!he.isOrphan()&&!l.has(he)&&u.enqueue({project:he,location:{fileName:ne,pos:Q.pos}})})});return O}}}function dst(e,t,r,i){if(t.containsFile(fl(e.fileName))&&!tOe(t,e))return e;const o=r();if(o&&t.containsFile(fl(o.fileName)))return o;const s=i();return s&&t.containsFile(fl(s.fileName))?s:void 0}function tOe(e,t){if(!t)return!1;const r=e.getLanguageService().getProgram();if(!r)return!1;const i=r.getSourceFile(t.fileName);return!!i&&i.resolvedPath!==i.path&&i.resolvedPath!==e.toPath(t.fileName)}function pst(e){return w0(e)?e.canonicalConfigFilePath:e.getProjectName()}function xM({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function dZ(e,t){return oM(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function nOe(e,t){return a5(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function fst(e,t){return tX(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Rh(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Kl(e))}}function Che(e,t,r){const i=Rh(e,r),o=t&&Rh(t,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}function mst(e,t){return{start:rOe(t,e.span.start),end:rOe(t,Kl(e.span)),newText:e.newText}}function rOe(e,t){return Ehe(e)?hst(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function _st(e,t){const 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 hst(e){return{line:e.line+1,offset:e.character+1}}function gst(e){N.assert(e.textChanges.length===1);const t=Ua(e.textChanges);return N.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 Phe(e,t,r,i){const o=vst(e,t,i),{line:s,character:l}=Vx(bA(o),r);return{line:s+1,offset:l+1}}function vst(e,t,r){for(const{fileName:i,textChanges:o}of r)if(i===t)for(let s=o.length-1;s>=0;s--){const{newText:l,span:{start:u,length:p}}=o[s];e=e.slice(0,u)+l+e.slice(u+p)}return e}function iOe(e,{fileName:t,textSpan:r,contextSpan:i,isWriteAccess:o,isDefinition:s},{disableLineTextInReferences:l}){const u=N.checkDefined(e.getScriptInfo(t)),p=Che(r,i,u),h=l?void 0:yst(u,p);return{file:t,...p,lineText:h,isWriteAccess:o,isDefinition:s}}function yst(e,t){const r=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(r.start,Kl(r)).replace(/\r|\n/g,"")}function bst(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 Mhe,Lhe,oOe,khe,aOe,whe,Est=I({"src/server/session.ts"(){ob(),cT(),lhe(),Mhe={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},Lhe=HQ,oOe=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){const r=this.requestId;N.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){const i=this.requestId;N.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=sr)==null||t.instant(sr.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((r=sr)==null||r.push(sr.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=sr)==null||i.pop())}catch(p){(o=sr)==null||o.popAll(),u=!0,p instanceof zx?(s=sr)==null||s.instant(sr.Phase.Session,"stepCanceled",{seq:this.requestId}):((l=sr)==null||l.instant(sr.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}},khe=["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"],aOe=[...khe,"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"],whe=class dte{constructor(t){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{const s={version:Re};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=>{const l=this.projectService.synchronizeProjectList(s.arguments.knownProjects,s.arguments.includeProjectReferenceRedirectInfo);if(!l.some(p=>p.projectErrors&&p.projectErrors.length!==0))return this.requiredResponse(l);const u=Wt(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&&Qa(s.arguments.openFiles,l=>({fileName:l.file,content:l.fileContent,scriptKind:l.scriptKindName,projectRootPath:l.projectRootPath})),s.arguments.changedFiles&&Qa(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:Kb(GB(l.textChanges),u=>{const p=N.checkDefined(this.projectService.getScriptInfo(l.fileName)),h=p.lineOffsetToPosition(u.start.line,u.start.offset),m=p.lineOffsetToPosition(u.end.line,u.end.offset);return h>=0?{span:{start:h,length:m-h},newText:u.newText}:void 0})})),s.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles,s.arguments.changedFiles&&Qa(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:GB(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(fl(s.arguments.file),s.arguments.fileContent,nZ(s.arguments.scriptKindName),s.arguments.projectRootPath?fl(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=>{const l=s.arguments;return this.saveToTmp(l.file,l.tmpfile),this.notRequired()},close:s=>{const 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||Lz,this.byteLength=t.byteLength,this.hrtime=t.hrtime,this.logger=t.logger,this.canUseEvents=t.canUseEvents,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=t.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:r}=t;this.eventHandler=this.canUseEvents?t.eventHandler||(s=>this.defaultEventHandler(s)):void 0;const 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 oOe(i);const 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 lZ(o),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new UQ(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:khe.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:aOe.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:N.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 p8:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case Fz:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case zz:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case Bz:case Uz:case Hz:case qz:this.event(t.data,t.eventName);break;case Gz:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:Wt(t.data.diagnostics,r=>m8(r,!0))},t.eventName);break;case Vz:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case jz:{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},p8))}logError(t,r){this.logErrorWorker(t,r)}logErrorWorker(t,r,i){let o="Exception on executing command "+r;if(t.message&&(o+=`: +`+QP(t.message),t.stack&&(o+=` +`+QP(t.stack))),this.logger.hasLevel(3)){if(i)try{const{file:s,project:l}=this.getFileAndProject(i),u=l.getScriptInfoForNormalizedPath(s);if(u){const p=ED(u.getSnapshot());o+=` + +File text of ${i.file}:${QP(p)} +`}}catch{}if(t.ProgramFiles){o+=` + +Program files: ${JSON.stringify(t.ProgramFiles)} +`,o+=` + +Projects:: +`;let s=0;const l=u=>{o+=` +Project '${u.projectName}' (${IM[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: ${N0(t)}`);return}this.writeMessage(t)}writeMessage(t){var r;const i=Rhe(t,this.logger,this.byteLength,this.host.newLine);(r=id)==null||r.logEvent(`Response message size: ${i.length}`),this.host.write(i)}event(t,r){this.send(Dhe(r,t))}doOutput(t,r,i,o,s){const l={seq:0,type:"response",command:r,request_seq:i,success:o,performanceData:this.performanceData};if(o){let u;if(To(t))l.body=t,u=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){const{metadata:p,...h}=t;l.body=h,u=p}else l.body=t;else l.body=t;u&&(l.metadata=u)}else N.assert(t===void 0);s&&(l.message=s),this.send(l)}semanticCheck(t,r){var i,o;(i=sr)==null||i.push(sr.Phase.Session,"semanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});const s=Qwe(r,t)?gc:r.getLanguageService().getSemanticDiagnostics(t).filter(l=>!!l.file);this.sendDiagnosticsEvent(t,r,s,"semanticDiag"),(o=sr)==null||o.pop()}syntacticCheck(t,r){var i,o;(i=sr)==null||i.push(sr.Phase.Session,"syntacticCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag"),(o=sr)==null||o.pop()}suggestionCheck(t,r){var i,o;(i=sr)==null||i.push(sr.Phase.Session,"suggestionCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag"),(o=sr)==null||o.pop()}sendDiagnosticsEvent(t,r,i,o){try{this.event({file:t,diagnostics:i.map(s=>Zwe(t,r,s))},o)}catch(s){this.logError(s,o)}}updateErrorCheck(t,r,i,o=!0){N.assert(!this.suppressDiagnosticEvents);const s=this.changeSeq,l=Math.min(i,200);let u=0;const p=()=>{u++,r.length>u&&t.delay("checkOne",l,h)},h=()=>{if(this.changeSeq!==s)return;let m=r[u];if(Mo(m)&&(m=this.toPendingErrorCheck(m),!m)){p();return}const{fileName:y,project:T}=m;if(Vp(T),!!T.containsFile(y,o)&&(this.syntacticCheck(y,T),this.changeSeq===s)){if(T.projectService.serverMode!==0){p();return}t.immediate("semanticCheck",()=>{if(this.semanticCheck(y,T),this.changeSeq===s){if(this.getPreferences(y).disableSuggestions){p();return}t.immediate("suggestionCheck",()=>{this.suggestionCheck(y,T),p()})}})}};r.length>u&&this.changeSeq===s&&t.delay("checkOne",i,h)}cleanProjects(t,r){if(r){this.logger.info(`cleaning ${t}`);for(const i of r)i.getLanguageService(!1).cleanupSemanticCache(),i.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",zo(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t);return i.getEncodedSyntacticClassifications(r,t)}getEncodedSemanticClassifications(t){const{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){const r=this.getProject(t.projectFileName),i=fl(t.file);return{configFile:r&&r.hasConfigFile(i)?i:void 0,project:r}}getConfigFileDiagnostics(t,r,i){const o=r.getAllProjectErrors(),s=r.getLanguageService().getCompilerOptionsDiagnostics(),l=mn(So(o,s),u=>!!u.file&&u.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):Wt(l,u=>m8(u,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(r=>({message:W_(r.messageText,this.host.newLine),start:r.start,length:r.length,category:lS(r),code:r.code,source:r.source,startLocation:r.file&&f8(ys(r.file,r.start)),endLocation:r.file&&f8(ys(r.file,r.start+r.length)),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,relatedInformation:Wt(r.relatedInformation,cZ)}))}getCompilerOptionsDiagnostics(t){const r=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(mn(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:lS(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:Wt(i.relatedInformation,cZ)}))}getDiagnosticsWorker(t,r,i,o){const{project:s,file:l}=this.getFileAndProject(t);if(r&&Qwe(s,l))return gc;const u=s.getScriptInfoForNormalizedPath(l),p=i(s,l);return o?this.convertToDiagnosticsWithLinePosition(p,u):p.map(h=>Zwe(l,s,h))}getDefinition(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapDefinitionInfoLocations(o.getLanguageService().getDefinitionAtPosition(i,s)||gc,o);return r?this.mapDefinitionInfo(l,o):l.map(dte.mapToOriginalLocation)}mapDefinitionInfoLocations(t,r){return t.map(i=>{const o=nOe(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){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=N.checkDefined(o.getScriptInfo(i)),u=o.getLanguageService().getDefinitionAndBoundSpan(i,s);if(!u||!u.definitions)return{definitions:gc,textSpan:void 0};const p=this.mapDefinitionInfoLocations(u.definitions,o),{textSpan:h}=u;return r?{definitions:this.mapDefinitionInfo(p,o),textSpan:Rh(h,l)}:{definitions:p.map(dte.mapToOriginalLocation),textSpan:h}}findSourceDefinition(t){var r;const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDefinitionAtPosition(i,s);let u=this.mapDefinitionInfoLocations(l||gc,o).slice();if(this.projectService.serverMode===0&&(!bt(u,A=>fl(A.fileName)!==i&&!A.isAmbient)||bt(u,A=>!!A.failedAliasResolution))){const A=KB(O=>O.textSpan.start,ZK(this.host.useCaseSensitiveFileNames));u==null||u.forEach(O=>A.add(O));const R=o.getNoDtsResolutionProject(i),M=R.getLanguageService(),C=(r=M.getDefinitionAtPosition(i,s,!0,!1))==null?void 0:r.filter(O=>fl(O.fileName)!==i);if(bt(C))for(const O of C){if(O.unverified){const U=y(O,o.getLanguageService().getProgram(),M.getProgram());if(bt(U)){for(const K of U)A.add(K);continue}}A.add(O)}else{const O=u.filter(U=>fl(U.fileName)!==i&&U.isAmbient);for(const U of bt(O)?O:m()){const K=h(U.fileName,i,R);if(!K)continue;const Q=this.projectService.getOrCreateScriptInfoNotOpenedByClient(K,R.currentDirectory,R.directoryStructureHost);if(!Q)continue;R.containsScriptInfo(Q)||(R.addRoot(Q),R.updateGraph());const V=M.getProgram(),se=N.checkDefined(V.getSourceFile(K));for(const G of T(U.name,se,V))A.add(G)}}u=zo(A.values())}return u=u.filter(A=>!A.isAmbient&&!A.failedAliasResolution),this.mapDefinitionInfo(u,o);function h(A,R,M){var C,O,U;const K=K3(A);if(K&&A.lastIndexOf(Ih)===K.topLevelNodeModulesIndex){const Q=A.substring(0,K.packageRootIndex),V=(C=o.getModuleResolutionCache())==null?void 0:C.getPackageJsonInfoCache(),se=o.getCompilationSettings(),G=Ew(go(Q+"/package.json",o.getCurrentDirectory()),bw(V,o,se));if(!G)return;const ne=fq(G,{moduleResolution:2},o,o.getModuleResolutionCache()),he=A.substring(K.topLevelPackageNameIndex+1,K.packageRootIndex),ye=wP(Aw(he)),Y=o.toPath(A);if(ne&&bt(ne,X=>o.toPath(X)===Y))return(O=M.resolutionCache.resolveSingleModuleNameWithoutWatching(ye,R).resolvedModule)==null?void 0:O.resolvedFileName;{const X=A.substring(K.packageRootIndex+1),oe=`${ye}/${Ad(X)}`;return(U=M.resolutionCache.resolveSingleModuleNameWithoutWatching(oe,R).resolvedModule)==null?void 0:U.resolvedFileName}}}function m(){const A=o.getLanguageService(),R=A.getProgram(),M=Vd(R.getSourceFile(i),s);return(ls(M)||Ve(M))&&ws(M.parent)&&noe(M,C=>{var O;if(C===M)return;const U=(O=A.getDefinitionAtPosition(i,C.getStart(),!0,!1))==null?void 0:O.filter(K=>fl(K.fileName)!==i&&K.isAmbient).map(K=>({fileName:K.fileName,name:Qf(M)}));if(bt(U))return U})||gc}function y(A,R,M){var C;const O=M.getSourceFile(A.fileName);if(!O)return;const U=Vd(R.getSourceFile(i),s),K=R.getTypeChecker().getSymbolAtLocation(U),Q=K&&pl(K,276);if(!Q)return;const V=((C=Q.propertyName)==null?void 0:C.text)||Q.name.text;return T(V,O,M)}function T(A,R,M){const C=Ws.Core.getTopMostDeclarationNamesInFile(A,R);return eo(C,O=>{const U=M.getTypeChecker().getSymbolAtLocation(O),K=xC(O);if(U&&K)return FD.createDefinitionInfo(K,M.getTypeChecker(),U,K,!0)})}}getEmitOutput(t){const{file:r,project:i}=this.getFileAndProject(t);if(!i.shouldEmitFile(i.getScriptInfo(r)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const o=i.getLanguageService().getEmitOutput(r);return t.richResponse?{...o,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(o.diagnostics):o.diagnostics.map(s=>m8(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?(N.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){const o=i.getLanguageService(),s=o.toLineColumnOffset(t,r.start),l=o.toLineColumnOffset(t,Kl(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){const 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){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.mapDefinitionInfoLocations(i.getLanguageService().getTypeDefinitionAtPosition(r,o)||gc,i);return this.mapDefinitionInfo(s,i)}mapImplementationLocations(t,r){return t.map(i=>{const o=nOe(i,r);return o?{...o,kind:i.kind,displayParts:i.displayParts}:i})}getImplementation(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapImplementationLocations(o.getLanguageService().getImplementationAtPosition(i,s)||gc,o);return r?l.map(({fileName:u,textSpan:p,contextSpan:h})=>this.toFileSpanWithContext(u,p,h,o)):l.map(dte.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){const{configFile:r}=this.getConfigFileAndProject(t);return r?gc:this.getDiagnosticsWorker(t,!1,(i,o)=>i.getLanguageService().getSyntacticDiagnostics(o),!!t.includeLinePosition)}getSemanticDiagnosticsSync(t){const{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){const{configFile:r}=this.getConfigFileAndProject(t);return r?gc:this.getDiagnosticsWorker(t,!0,(i,o)=>i.getLanguageService().getSuggestionDiagnostics(o),!!t.includeLinePosition)}getJsxClosingTag(t){const{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){const{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 _st(s,l)}getDocumentHighlights(t,r){const{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})=>{const h=o.getScriptInfo(u);return{file:u,highlightSpans:p.map(({textSpan:m,kind:y,contextSpan:T})=>({...Che(m,T,h),kind:y}))}}):l:gc}provideInlayHints(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);return i.getLanguageService().provideInlayHints(r,t,this.getPreferences(r)).map(l=>{const{position:u,displayParts:p}=l;return{...l,position:o.positionToLineOffset(u),displayParts:p==null?void 0:p.map(({text:h,span:m,file:y})=>{if(m){N.assertIsDefined(y,"Target file should be defined together with its span.");const T=this.projectService.getScriptInfo(y);return{text:h,span:{start:T.positionToLineOffset(m.start),end:T.positionToLineOffset(m.start+m.length),file:y}}}else return{text:h}})}})}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){const{project:s}=this.getFileAndProjectWorker(t,r);return Vp(s),{configFileName:s.getProjectName(),languageServiceDisabled:!s.languageServiceEnabled,fileNames:i?s.getFileNames(!1,o):void 0}}getRenameInfo(t){const{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){const l=this.getProject(t.projectFileName);l&&(o=[l])}else{const l=r?this.projectService.getScriptInfoEnsuringProjectsUptoDate(t.file):this.projectService.getScriptInfo(t.file);if(l)r||this.projectService.ensureDefaultProjectForFile(l);else return i?gc:(this.projectService.logErrorForScriptInfoNotFound(t.file),Zv.ThrowNoProject());o=l.containingProjects,s=this.projectService.getSymlinkedProjects(l)}return o=mn(o,l=>l.languageServiceEnabled&&!l.isOrphan()),!i&&(!o||!o.length)&&!s?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),Zv.ThrowNoProject()):s?{projects:o,symLinkedProjects:s}:o}getDefaultProject(t){if(t.projectFileName){const i=this.getProject(t.projectFileName);if(i)return i;if(!t.file)return Zv.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,r){const i=fl(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),N.checkDefined(this.projectService.getScriptInfo(i)));if(!p.canRename)return r?{info:p,locs:[]}:[];const h=lst(s,l,{fileName:t.file,pos:o},!!t.findInStrings,!!t.findInComments,u,this.host.useCaseSensitiveFileNames);return r?{info:p,locs:this.toSpanGroups(h)}:h}mapRenameInfo(t,r){if(t.canRename){const{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:p,triggerSpan:h}=t;return{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:p,triggerSpan:Rh(h,r)}}else return t}toSpanGroups(t){const r=new Map;for(const{fileName:i,textSpan:o,contextSpan:s,originalContextSpan:l,originalTextSpan:u,originalFileName:p,...h}of t){let m=r.get(i);m||r.set(i,m={file:i,locs:[]});const y=N.checkDefined(this.projectService.getScriptInfo(i));m.locs.push({...Che(o,s,y),...h})}return zo(r.values())}getReferences(t,r){const i=fl(t.file),o=this.getProjects(t),s=this.getPositionInFile(t,i),l=ust(o,this.getDefaultProject(t),{fileName:t.file,pos:s},this.host.useCaseSensitiveFileNames,this.logger);if(!r)return l;const u=this.getPreferences(i),p=this.getDefaultProject(t),h=p.getScriptInfoForNormalizedPath(i),m=p.getLanguageService().getQuickInfoAtPosition(i,s),y=m?WO(m.displayParts):"",T=m&&m.textSpan,A=T?h.positionToLineOffset(T.start).offset:0,R=T?h.getSnapshot().getText(T.start,Kl(T)):"";return{refs:Do(l,C=>C.references.map(O=>iOe(this.projectService,O,u))),symbolName:R,symbolStartOffset:A,symbolDisplayString:y}}getFileReferences(t,r){const i=this.getProjects(t),o=t.file,s=this.getPreferences(fl(o)),l=[],u=uZ(this.host.useCaseSensitiveFileNames);return Nhe(i,void 0,h=>{if(h.getCancellationToken().isCancellationRequested())return;const m=h.getLanguageService().getFileReferences(o);if(m)for(const y of m)u.has(y)||(l.push(y),u.add(y))}),r?{refs:l.map(h=>iOe(this.projectService,h,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){const i=this.projectService.getScriptInfoForNormalizedPath(r);return this.getPosition(t,i)}getFileAndProject(t){return this.getFileAndProjectWorker(t.file,t.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(t){const{file:r,project:i}=this.getFileAndProject(t);return{file:r,languageService:i.getLanguageService(!1)}}getFileAndProjectWorker(t,r){const i=fl(t),o=this.getProject(r)||this.projectService.ensureDefaultProjectForFile(i);return{file:i,project:o}}getOutliningSpans(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getOutliningSpans(i);if(r){const 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){const{file:r,project:i}=this.getFileAndProject(t);return i.getLanguageService().getTodoComments(r,t.descriptors)}getDocCommentTemplate(t){const{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){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.onlyMultiLine,s=this.getPositionInFile(t,r);return i.getSpanOfEnclosingComment(r,s,o)}getIndentation(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=t.options?UD(t.options):this.getFormatOptions(r),l=i.getIndentationAtPosition(r,o,s);return{position:o,indentation:l}}getBreakpointStatement(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getBreakpointStatementAtPosition(r,o)}getNameOrDottedNameSpan(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getNameOrDottedNameSpan(r,o,o)}isValidBraceCompletion(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.isValidBraceCompletionAtPosition(r,o,t.openingBrace.charCodeAt(0))}getQuickInfoWorker(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=o.getLanguageService().getQuickInfoAtPosition(i,this.getPosition(t,s));if(!l)return;const u=!!this.getPreferences(i).displayPartsForJSDoc;if(r){const p=WO(l.displayParts);return{kind:l.kind,kindModifiers:l.kindModifiers,start:s.positionToLineOffset(l.textSpan.start),end:s.positionToLineOffset(Kl(l.textSpan)),displayString:p,documentation:u?this.mapDisplayParts(l.documentation,o):WO(l.documentation),tags:this.mapJSDocTagInfo(l.tags,o,u)}}else return u?l:{...l,tags:this.mapJSDocTagInfo(l.tags,o,!1)}}getFormattingEditsForRange(t){const{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){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?UD(t.options):this.getFormatOptions(r);return i.getFormattingEditsForRange(r,t.position,t.endPosition,o)}getFormattingEditsForDocumentFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?UD(t.options):this.getFormatOptions(r);return i.getFormattingEditsForDocument(r,o)}getFormattingEditsAfterKeystrokeFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?UD(t.options):this.getFormatOptions(r);return i.getFormattingEditsAfterKeystroke(r,t.position,t.key,o)}getFormattingEditsAfterKeystroke(t){const{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||ast(u,s))){const{lineText:p,absolutePosition:h}=o.textStorage.getAbsolutePositionAndLineText(t.line);if(p&&p.search("\\S")<0){const m=i.getIndentationAtPosition(r,s,l);let y=0,T,A;for(T=0,A=p.length;T<A;T++)if(p.charAt(T)===" ")y++;else if(p.charAt(T)===" ")y+=l.tabSize;else break;if(m!==y){const R=h+T;u.push({span:pc(h,R),newText:kc.getIndentationString(m,l)})}}}if(u)return u.map(p=>({start:o.positionToLineOffset(p.span.start),end:o.positionToLineOffset(Kl(p.span)),newText:p.newText?p.newText:""}))}getCompletions(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getLanguageService().getCompletionsAtPosition(i,l,{..._he(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;const p=t.prefix||"",h=eo(u.entries,y=>{if(u.isMemberCompletion||uo(y.name.toLowerCase(),p.toLowerCase())){const{name:T,kind:A,kindModifiers:R,sortText:M,insertText:C,filterText:O,replacementSpan:U,hasAction:K,source:Q,sourceDisplay:V,labelDetails:se,isSnippet:G,isRecommended:ne,isPackageJsonImport:he,isImportStatementCompletion:ye,data:Y}=y,X=U?Rh(U,s):void 0;return{name:T,kind:A,kindModifiers:R,sortText:M,insertText:C,filterText:O,replacementSpan:X,isSnippet:G,hasAction:K||void 0,source:Q,sourceDisplay:V,labelDetails:se,isRecommended:ne,isPackageJsonImport:he,isImportStatementCompletion:ye,data:Y}}});return r==="completions"?(u.metadata&&(h.metadata=u.metadata),h):{...u,optionalReplacementSpan:u.optionalReplacementSpan&&Rh(u.optionalReplacementSpan,s),entries:h}}getCompletionEntryDetails(t,r){const{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,h=eo(t.entryNames,m=>{const{name:y,source:T,data:A}=typeof m=="string"?{name:m,source:void 0,data:void 0}:m;return o.getLanguageService().getCompletionEntryDetails(i,l,y,u,T,this.getPreferences(i),A?oa(A,bst):void 0)});return r?p?h:h.map(m=>({...m,tags:this.mapJSDocTagInfo(m.tags,o,!1)})):h.map(m=>({...m,codeActions:Wt(m.codeActions,y=>this.mapCodeAction(y)),documentation:this.mapDisplayParts(m.documentation,o),tags:this.mapJSDocTagInfo(m.tags,o,p)}))}getCompileOnSaveAffectedFileList(t){const r=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?sst(i,o=>this.projectService.getScriptInfoForPath(o),r,(o,s)=>{if(!o.compileOnSaveEnabled||!o.languageServiceEnabled||o.isOrphan())return;const l=o.getCompilationSettings();if(!(l.noEmit||Su(s.fileName)&&!ost(l)))return{projectFileName:o.getProjectName(),fileNames:o.getCompileOnSaveAffectedFileList(s),projectUsesOutFile:!!Ps(l)}}):gc}emitFile(t){const{file:r,project:i}=this.getFileAndProject(t);if(i||Zv.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;const o=i.getScriptInfo(r),{emitSkipped:s,diagnostics:l}=i.emitFile(o,(u,p,h)=>this.host.writeFile(u,p,h));return t.richResponse?{emitSkipped:s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):l.map(u=>m8(u,!0))}:!s}getSignatureHelpItems(t,r){const{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){const h=u.applicableSpan;return{...u,applicableSpan:{start:s.positionToLineOffset(h.start),end:s.positionToLineOffset(h.start+h.length)},items:this.mapSignatureHelpItems(u.items,o,p)}}else return p||!u?u:{...u,items:u.items.map(h=>({...h,tags:this.mapJSDocTagInfo(h.tags,o,!1)}))}}toPendingErrorCheck(t){const r=fl(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){const r=this.projectService.getScriptInfo(t.file);N.assert(!!r),r.textStorage.switchToScriptVersionCache();const i=r.lineOffsetToPosition(t.line,t.offset),o=r.lineOffsetToPosition(t.endLine,t.endOffset);i>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(r,Jte({span:{start:i,length:o-i},newText:t.insertString})))}reload(t,r){const i=fl(t.file),o=t.tmpfile===void 0?void 0:fl(t.tmpfile),s=this.projectService.getScriptInfoForNormalizedPath(i);s&&(this.changeSeq++,s.reloadFromFile(o)&&this.doOutput(void 0,"reload",r,!0))}saveToTmp(t,r){const i=this.projectService.getScriptInfo(t);i&&i.saveTo(r)}closeClientFile(t){if(!t)return;const r=ha(t);this.projectService.closeClientFile(r)}mapLocationNavigationBarItems(t,r){return Wt(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){const{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:Wt(t.childItems,i=>this.toLocationNavigationTree(i,r))}}getNavigationTree(t,r){const{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){const i=this.getFullNavigateToItems(t);return r?Do(i,({project:o,navigateToItems:s})=>s.map(l=>{const 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(Kl(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})):Do(i,({navigateToItems:o})=>o)}getFullNavigateToItems(t){const{currentFileOnly:r,searchValue:i,maxResultCount:o,projectFileName:s}=t;if(r){N.assertIsDefined(t.file);const{file:T,project:A}=this.getFileAndProject(t);return[{project:A,navigateToItems:A.getLanguageService().getNavigateToItems(i,o,T)}]}const l=this.getHostPreferences(),u=[],p=new Map;if(!t.file&&!s)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(T=>h(T));else{const T=this.getProjects(t);Nhe(T,void 0,A=>h(A))}return u;function h(T){const A=T.getLanguageService().getNavigateToItems(i,o,void 0,T.isNonTsProject(),l.excludeLibrarySymbolsInNavTo),R=mn(A,M=>m(M)&&!dZ(xM(M),T));R.length&&u.push({project:T,navigateToItems:R})}function m(T){const A=T.name;if(!p.has(A))return p.set(A,[T]),!0;const R=p.get(A);for(const M of R)if(y(M,T))return!1;return R.push(T),!0}function y(T,A){return T===A?!0:!T||!A?!1:T.containerKind===A.containerKind&&T.containerName===A.containerName&&T.fileName===A.fileName&&T.isCaseSensitive===A.isCaseSensitive&&T.kind===A.kind&&T.kindModifiers===A.kindModifiers&&T.matchKind===A.matchKind&&T.name===A.name&&T.textSpan.start===A.textSpan.start&&T.textSpan.length===A.textSpan.length}}getSupportedCodeFixes(t){if(!t)return EY();if(t.file){const{file:i,project:o}=this.getFileAndProject(t);return o.getLanguageService().getSupportedCodeFixes(i)}const r=this.getProject(t.projectFileName);return r||Zv.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),N.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){const{startPosition:i,endPosition:o}=this.getStartAndEndPosition(t,r);return{pos:i,end:o}}getApplicableRefactors(t){const{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){const{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){const{renameFilename:u,renameLocation:p,edits:h}=l;let m;if(u!==void 0&&p!==void 0){const y=o.getScriptInfoForNormalizedPath(fl(u));m=Phe(ED(y.getSnapshot()),u,p,h)}return{renameLocation:m,renameFilename:u,edits:this.mapTextChangesToCodeEdits(h),notApplicableReason:l.notApplicableReason}}return l}getMoveToRefactoringFileSuggestions(t){const{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){N.assert(t.scope.type==="file");const{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){const i=fl(t.oldFilePath),o=fl(t.newFilePath),s=this.getHostFormatOptions(),l=this.getHostPreferences(),u=new Set,p=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(h=>{const m=h.getLanguageService().getEditsForFileRename(i,o,s,l),y=[];for(const T of m)u.has(T.fileName)||(p.push(T),y.push(T.fileName));for(const T of y)u.add(T)}),r?p.map(h=>this.mapTextChangeToCodeEdit(h)):p}getCodeFixes(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),{startPosition:l,endPosition:u}=this.getStartAndEndPosition(t,s);let p;try{p=o.getLanguageService().getCodeFixesAtPosition(i,l,u,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(h){const m=o.getLanguageService(),y=[...m.getSyntacticDiagnostics(i),...m.getSemanticDiagnostics(i),...m.getSuggestionDiagnostics(i)].map(A=>tL(l,u-l,A.start,A.length)&&A.code),T=t.errorCodes.find(A=>!y.includes(A));throw T!==void 0&&(h.message=`BADCLIENT: Bad error code, ${T} not found in range ${l}..${u} (found: ${y.join(", ")}); could have caused this error: +${h.message}`),h}return r?p.map(h=>this.mapCodeFixAction(h)):p}getCombinedCodeFix({scope:t,fixId:r},i){N.assert(t.type==="file");const{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){const r=t.command;for(const i of mA(r)){const{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){const r=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!r&&(r||this.projectService.logErrorForScriptInfoNotFound(t.fileName),N.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!r}))),r?{fileName:t.fileName,textChanges:t.textChanges.map(i=>mst(i,r))}:gst(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){const{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;const{fileNames:o,languageServiceDisabled:s}=this.getProjectInfoWorker(i,void 0,!0,!0);if(s)return;const l=o.filter(M=>!M.includes("lib.d.ts"));if(l.length===0)return;const u=[],p=[],h=[],m=[],y=fl(i),T=this.projectService.ensureDefaultProjectForFile(y);for(const 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):h.push(M);const R=[...u,...p,...h,...m].map(M=>({fileName:M,project:T}));this.updateErrorCheck(t,R,r,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,r){const{locations:i}=t,{file:o,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),l=N.checkDefined(this.projectService.getScriptInfo(o));return Wt(i,u=>{const p=this.getPosition(u,l),h=s.getSmartSelectionRange(o,p);return r?this.mapSelectionRange(h,l):h})}toggleLineComment(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfo(i),l=this.getRange(t,s),u=o.toggleLineComment(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(h=>this.convertTextChangeToCodeEdit(h,p))}return u}toggleMultilineComment(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.toggleMultilineComment(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(h=>this.convertTextChangeToCodeEdit(h,p))}return u}commentSelection(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.commentSelection(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(h=>this.convertTextChangeToCodeEdit(h,p))}return u}uncommentSelection(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.uncommentSelection(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(h=>this.convertTextChangeToCodeEdit(h,p))}return u}mapSelectionRange(t,r){const i={textSpan:Rh(t.textSpan,r)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,r)),i}getScriptInfoFromProjectService(t){const r=fl(t),i=this.projectService.getScriptInfoForNormalizedPath(r);return i||(this.projectService.logErrorForScriptInfoNotFound(r),Zv.ThrowNoProject())}toProtocolCallHierarchyItem(t){const 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){const 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){const{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);if(o){const s=this.getPosition(t,o),l=i.getLanguageService().prepareCallHierarchy(r,s);return l&&gX(l,u=>this.toProtocolCallHierarchyItem(u))}}provideCallHierarchyIncomingCalls(t){const{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){const{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){const r=this.host.useCaseSensitiveFileNames?t:lh(t);return ha(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){N.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){N.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){const r=this.handlers.get(t.command);if(r){const i=this.executeWithRequestId(t.seq,()=>r(t));return this.projectService.enableRequestedPlugins(),i}else return this.logger.msg(`Unrecognized JSON command:${N0(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,h,m,y,T;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let A;this.logger.hasLevel(2)&&(A=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${QP(this.toStringMessage(t))}`));let R,M;try{R=this.parseMessage(t),M=R.arguments&&R.arguments.file?R.arguments:void 0,(r=sr)==null||r.instant(sr.Phase.Session,"request",{seq:R.seq,command:R.command}),(i=id)==null||i.logStartCommand(""+R.command,this.toStringMessage(t).substring(0,100)),(o=sr)==null||o.push(sr.Phase.Session,"executeCommand",{seq:R.seq,command:R.command},!0);const{response:C,responseRequired:O}=this.executeCommand(R);if((s=sr)==null||s.pop(),this.logger.hasLevel(2)){const U=ist(this.hrtime(A)).toFixed(4);O?this.logger.perftrc(`${R.seq}::${R.command}: elapsed time (in milliseconds) ${U}`):this.logger.perftrc(`${R.seq}::${R.command}: async elapsed time (in milliseconds) ${U}`)}(l=id)==null||l.logStopCommand(""+R.command,"Success"),(u=sr)==null||u.instant(sr.Phase.Session,"response",{seq:R.seq,command:R.command,success:!!C}),C?this.doOutput(C,R.command,R.seq,!0):O&&this.doOutput(void 0,R.command,R.seq,!1,"No content available.")}catch(C){if((p=sr)==null||p.popAll(),C instanceof zx){(h=id)==null||h.logStopCommand(""+(R&&R.command),"Canceled: "+C),(m=sr)==null||m.instant(sr.Phase.Session,"commandCanceled",{seq:R==null?void 0:R.seq,command:R==null?void 0:R.command}),this.doOutput({canceled:!0},R.command,R.seq,!0);return}this.logErrorWorker(C,this.toStringMessage(t),M),(y=id)==null||y.logStopCommand(""+(R&&R.command),"Error: "+C),(T=sr)==null||T.instant(sr.Phase.Session,"commandError",{seq:R==null?void 0:R.seq,command:R==null?void 0:R.command,message:C.message}),this.doOutput(void 0,R?R.command:"unknown",R?R.seq:0,!1,"Error processing request. "+C.message+` +`+C.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()}}}}),WI,pZ,sOe,lOe,Xz,Yz,Ohe,RM,FI,_8,Sst=I({"src/server/scriptVersionCache.ts"(){ob(),cT(),WI=4,pZ=(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))(pZ||{}),sOe=class{constructor(){this.goSubtree=!0,this.lineIndex=new RM,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new FI,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;const i=RM.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);const 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 y=1;y<i.length;y++)u[y-1]=new _8(i[y]);let h=this.startPath.length-2;for(;h>=0;){const y=this.startPath[h];u=y.insertAt(p,u),h--,p=y}let m=u.length;for(;m>0;){const y=new FI;y.add(this.lineIndex.root),u=y.insertAt(this.lineIndex.root,u),m=u.length,this.lineIndex.root=y}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){const 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 _8(""):new FI}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)}},lOe=class{constructor(e,t,r){this.pos=e,this.deleteLen=t,this.insertedText=r}getTextChangeRange(){return nL(vu(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},Xz=class lA{constructor(){this.changes=[],this.versions=new Array(lA.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(t<this.minVersion||t>this.currentVersion))return t%lA.maxVersions}currentVersionToIndex(){return this.currentVersion%lA.maxVersions}edit(t,r,i){this.changes.push(new lOe(t,r,i)),(this.changes.length>lA.changeNumberThreshold||r>lA.changeLengthThreshold||i&&i.length>lA.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let r=t.index;for(const i of this.changes)r=r.edit(i.pos,i.deleteLen,i.insertedText);t=new Ohe(this.currentVersion+1,this,r,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=lA.maxVersions&&(this.minVersion=this.currentVersion-lA.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){const 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<r)if(t>=this.minVersion){const i=[];for(let o=t+1;o<=r;o++){const s=this.versions[this.versionToIndex(o)];for(const l of s.changesSincePreviousVersion)i.push(l.getTextChangeRange())}return Vne(i)}else return;else return vL}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){const r=new lA,i=new Ohe(0,r,new RM);r.versions[r.currentVersion]=i;const o=RM.linesFromText(t);return i.index.load(o.lines),r}},Xz.changeNumberThreshold=8,Xz.changeLengthThreshold=256,Xz.maxVersions=8,Yz=Xz,Ohe=class OFe{constructor(t,r,i,o=gc){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 OFe&&this.cache===t.cache)return this.version<=t.version?vL:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},RM=class hbe{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(t){return this.lineNumberToInfo(t).absolutePosition}positionToLineOffset(t){const{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){const r=this.getLineCount();if(t<=r){const{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){const r=[];for(let i=0;i<t.length;i++)r[i]=new _8(t[i]);this.root=hbe.buildTreeFromBottom(r)}else this.root=new FI}walk(t,r,i){this.root.walk(t,r,i)}getText(t,r){let i="";return r>0&&t<this.root.charCount()&&this.walk(t,r,{goSubtree:!0,done:!1,leaf:(o,s,l)=>{i=i.concat(l.text.substring(o,o+s))}}),i}getLength(){return this.root.charCount()}every(t,r,i){i||(i=this.root.charCount());const 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 N.assert(r===0),i!==void 0?(this.load(hbe.linesFromText(i).lines),this):void 0;{let o;if(this.checkEdits){const u=this.getText(0,this.root.charCount());o=u.slice(0,t)+i+u.slice(t+r)}const s=new sOe;let l=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;const u=this.getText(t,1);i?i=u+i:i=u,r=0,l=!0}else if(r>0){const u=t+r,{zeroBasedColumn:p,lineText:h}=this.positionToColumnAndLineText(u);p===0&&(r+=h.length,i=i?i+h:h)}if(this.root.walk(t,r,s),s.insertLines(i,l),this.checkEdits){const u=s.lineIndex.getText(0,s.lineIndex.getLength());N.assert(o===u,"buffer edit mismatch")}return s.lineIndex}}static buildTreeFromBottom(t){if(t.length<WI)return new FI(t);const r=new Array(Math.ceil(t.length/WI));let i=0;for(let o=0;o<r.length;o++){const s=Math.min(i+WI,t.length);r[o]=new FI(t.slice(i,s)),i=s}return this.buildTreeFromBottom(r)}static linesFromText(t){const r=bA(t);if(r.length===0)return{lines:[],lineMap:r};const i=new Array(r.length),o=r.length-1;for(let l=0;l<o;l++)i[l]=t.substring(r[l],r[l+1]);const s=t.substring(r[o]);return s.length>0?i[o]=s:i.pop(),{lines:i,lineMap:r}}},FI=class gbe{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(const 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){const u=this.children.length;if(o<u-1)for(let p=o+1;p<u;p++)this.skipChild(0,0,p,i,5)}}charOffsetToLineInfo(t,r){if(this.children.length===0)return{oneBasedLine:t,zeroBasedColumn:r,lineText:void 0};for(const s of this.children){if(s.charCount()>r)return s.isLeaf()?{oneBasedLine:t,zeroBasedColumn:r,lineText:s.text}:s.charOffsetToLineInfo(t,r);r-=s.charCount(),t+=s.lineCount()}const i=this.lineCount();if(i===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};const o=N.checkDefined(this.lineNumberToInfo(i,0).leaf);return{oneBasedLine:i,zeroBasedColumn:o.charCount(),lineText:void 0}}lineNumberToInfo(t,r){for(const i of this.children){const 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;const i=this.children.length;t++;const o=t;if(t<i){for(r=new gbe;t<i;)r.add(this.children[t]),t++;r.updateCounts()}return this.children.length=o,r}remove(t){const r=this.findChildIndex(t),i=this.children.length;if(r<i-1)for(let o=r;o<i-1;o++)this.children[o]=this.children[o+1];this.children.pop()}findChildIndex(t){const r=this.children.indexOf(t);return N.assert(r!==-1),r}insertAt(t,r){let i=this.findChildIndex(t);const o=this.children.length,s=r.length;if(o<WI&&i===o-1&&s===1)return this.add(r[0]),this.updateCounts(),[];{const l=this.splitAfter(i);let u=0;for(i++;i<WI&&u<s;)this.children[i]=r[u],i++,u++;let p=[],h=0;if(u<s){h=Math.ceil((s-u)/WI),p=new Array(h);let m=0;for(let T=0;T<h;T++)p[T]=new gbe;let y=p[0];for(;u<s;)y.add(r[u]),u++,y.children.length===WI&&(m++,y=p[m]);for(let T=p.length-1;T>=0;T--)p[T].children.length===0&&p.pop()}l&&p.push(l),this.updateCounts();for(let m=0;m<h;m++)p[m].updateCounts();return p}}add(t){this.children.push(t),N.assert(this.children.length<=WI)}charCount(){return this.totalChars}lineCount(){return this.totalLines}},_8=class{constructor(e){this.text=e}isLeaf(){return!0}walk(e,t,r){r.leaf(e,t,this)}charCount(){return this.text.length}lineCount(){return 1}}}}),Whe,Fhe,Tst=I({"src/server/typingInstallerAdapter.ts"(){ob(),cT(),Whe=class WFe{constructor(t,r,i,o,s,l){this.telemetryEnabled=t,this.logger=r,this.host=i,this.globalTypingsCacheLocation=o,this.event=s,this.maxActiveRequestCount=l,this.activeRequestCount=0,this.requestQueue=M2(),this.requestMap=new Map,this.requestedRegistry=!1,this.packageInstallId=0}isKnownTypesPackageName(t){var r;return z_.validatePackageName(t)!==z_.NameValidationResult.Ok?!1:(this.requestedRegistry||(this.requestedRegistry=!0,this.installer.send({kind:"typesRegistry"})),!!((r=this.typesRegistryCache)!=null&&r.has(t)))}installPackage(t){this.packageInstallId++;const r={kind:"installPackage",...t,id:this.packageInstallId},i=new Promise((o,s)=>{(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){const o=j_e(t,r,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${N0(o)}`),this.activeRequestCount<this.maxActiveRequestCount?this.scheduleRequest(o):(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Deferring request for: ${o.projectName}`),this.requestQueue.enqueue(o),this.requestMap.set(o.projectName,o))}handleMessage(t){var r,i;switch(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Received response:${N0(t)}`),t.kind){case M7:this.typesRegistryCache=new Map(Object.entries(t.typesRegistry));break;case Kw:{const o=(r=this.packageInstalledPromise)==null?void 0:r.get(t.id);N.assertIsDefined(o,"Should find the promise for package install"),(i=this.packageInstalledPromise)==null||i.delete(t.id),t.success?o.resolve({successMessage:t.message}):o.reject(t.message),this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case nK:{const o={message:t.message};this.event(o,"typesInstallerInitializationFailed");break}case L7:{const o={eventId:t.eventId,packages:t.packagesToInstall};this.event(o,"beginInstallTypes");break}case k7:{if(this.telemetryEnabled){const l={telemetryEventName:"typingsInstalled",payload:{installedPackages:t.packagesToInstall.join(","),installSuccess:t.installSuccess,typingsInstallerVersion:t.typingsInstallerVersion}};this.event(l,"telemetry")}const o={eventId:t.eventId,packages:t.packagesToInstall,success:t.installSuccess};this.event(o,"endInstallTypes");break}case Jw:{this.projectService.updateTypingsForProject(t);break}case qw:{for(this.activeRequestCount>0?this.activeRequestCount--:N.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){const 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 ZP:this.projectService.watchTypingLocations(t);break}}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:${N0(t)}`),this.installer.send(t)},WFe.requestDelayMillis,`${t.projectName}::${t.kind}`)}},Whe.requestDelayMillis=100,Fhe=Whe}}),cOe={};ee(cOe,{ActionInvalidate:()=>Jw,ActionPackageInstalled:()=>Kw,ActionSet:()=>qw,ActionWatchTypingLocations:()=>ZP,Arguments:()=>rK,AutoImportProviderProject:()=>ZQ,AuxiliaryProject:()=>$Q,CharRangeSection:()=>pZ,CloseFileWatcherEvent:()=>qz,CommandNames:()=>Lhe,ConfigFileDiagEvent:()=>Gz,ConfiguredProject:()=>eZ,CreateDirectoryWatcherEvent:()=>Hz,CreateFileWatcherEvent:()=>Uz,Errors:()=>Zv,EventBeginInstallTypes:()=>L7,EventEndInstallTypes:()=>k7,EventInitializationFailed:()=>nK,EventTypesRegistry:()=>M7,ExternalProject:()=>kz,GcTimer:()=>UQ,InferredProject:()=>YQ,LargeFileReferencedEvent:()=>Bz,LineIndex:()=>RM,LineLeaf:()=>_8,LineNode:()=>FI,LogLevel:()=>BQ,Msg:()=>GQ,OpenFileInfoTelemetryEvent:()=>iZ,Project:()=>lT,ProjectInfoTelemetryEvent:()=>jz,ProjectKind:()=>IM,ProjectLanguageServiceStateEvent:()=>Vz,ProjectLoadingFinishEvent:()=>zz,ProjectLoadingStartEvent:()=>Fz,ProjectReferenceProjectLoadKind:()=>sZ,ProjectService:()=>lZ,ProjectsUpdatedInBackgroundEvent:()=>p8,ScriptInfo:()=>JQ,ScriptVersionCache:()=>Yz,Session:()=>whe,TextStorage:()=>qQ,ThrottledOperations:()=>jQ,TypingsCache:()=>KQ,TypingsInstallerAdapter:()=>Fhe,allFilesAreJsOrDts:()=>dhe,allRootFilesAreJsOrDts:()=>uhe,asNormalizedPath:()=>Fwe,convertCompilerOptions:()=>wz,convertFormatOptions:()=>UD,convertScriptKindName:()=>nZ,convertTypeAcquisition:()=>mhe,convertUserPreferences:()=>_he,convertWatchOptions:()=>d8,countEachFileTypes:()=>c8,createInstallTypingsRequest:()=>j_e,createModuleSpecifierCache:()=>Ihe,createNormalizedPathMap:()=>zwe,createPackageJsonCache:()=>xhe,createSortedArray:()=>K_e,emptyArray:()=>gc,findArgument:()=>xRe,forEachResolvedProjectReferenceProject:()=>HD,formatDiagnosticToProtocol:()=>m8,formatMessage:()=>Rhe,getBaseConfigFileName:()=>VQ,getLocationInNewDocument:()=>Phe,hasArgument:()=>IRe,hasNoTypeScriptSource:()=>phe,indent:()=>QP,isBackgroundProject:()=>u8,isConfigFile:()=>Ehe,isConfiguredProject:()=>w0,isDynamicFileName:()=>l8,isExternalProject:()=>XQ,isInferredProject:()=>jD,isInferredProjectName:()=>U_e,makeAutoImportProviderProjectName:()=>q_e,makeAuxiliaryProjectName:()=>J_e,makeInferredProjectName:()=>H_e,maxFileSize:()=>Wz,maxProgramSizeForNonTsFiles:()=>Oz,normalizedPathToPath:()=>s8,nowString:()=>RRe,nullCancellationToken:()=>Mhe,nullTypingsInstaller:()=>Lz,projectContainsInfoDirectly:()=>OI,protocol:()=>che,removeSorted:()=>Bwe,stringifyIndented:()=>N0,toEvent:()=>Dhe,toNormalizedPath:()=>fl,tryConvertScriptKindName:()=>tZ,typingsInstaller:()=>G_e,updateProjectIfDirty:()=>Vp});var cT=I({"src/server/_namespaces/ts.server.ts"(){w7(),V_e(),Oat(),Wat(),Fat(),zat(),Vat(),qat(),Yat(),tst(),nst(),rst(),Est(),Sst(),Tst()}}),uOe={};ee(uOe,{ANONYMOUS:()=>I5,AccessFlags:()=>PG,AssertionLevel:()=>nG,AssignmentDeclarationKind:()=>BG,AssignmentKind:()=>DU,Associativity:()=>CU,BreakpointResolver:()=>NY,BuilderFileEmit:()=>LJ,BuilderProgramKind:()=>kJ,BuilderState:()=>Nm,BundleFileSectionKind:()=>iV,CallHierarchy:()=>DI,CharacterCodes:()=>$G,CheckFlags:()=>xG,CheckMode:()=>FF,ClassificationType:()=>SK,ClassificationTypeNames:()=>EK,CommentDirectiveType:()=>dG,Comparison:()=>Ge,CompletionInfoFlags:()=>mK,CompletionTriggerKind:()=>cK,Completions:()=>LI,ContainerFlags:()=>Sq,ContextFlags:()=>gG,Debug:()=>N,DiagnosticCategory:()=>F2,Diagnostics:()=>f,DocumentHighlights:()=>D5,ElementFlags:()=>CG,EmitFlags:()=>K6,EmitHint:()=>tV,EmitOnly:()=>fG,EndOfLineState:()=>gK,EnumKind:()=>IG,ExitStatus:()=>mG,ExportKind:()=>CX,Extension:()=>QG,ExternalEmitHelpers:()=>eV,FileIncludeKind:()=>z6,FilePreprocessingDiagnosticsKind:()=>pG,FileSystemEntryKind:()=>uV,FileWatcherEventKind:()=>cV,FindAllReferences:()=>Ws,FlattenLevel:()=>Bq,FlowFlags:()=>W2,ForegroundColorEscapeSequences:()=>IJ,FunctionFlags:()=>NU,GeneratedIdentifierFlags:()=>F6,GetLiteralTextFlags:()=>IU,GoToDefinition:()=>FD,HighlightSpanKind:()=>dK,IdentifierNameMap:()=>gI,IdentifierNameMultiMap:()=>zq,ImportKind:()=>NX,ImportsNotUsedAsValues:()=>qG,IndentStyle:()=>pK,IndexFlags:()=>MG,IndexKind:()=>wG,InferenceFlags:()=>FG,InferencePriority:()=>WG,InlayHintKind:()=>uK,InlayHints:()=>EQ,InternalEmitFlags:()=>ZG,InternalSymbolName:()=>RG,InvalidatedProjectKind:()=>tK,JSDocParsingMode:()=>sV,JsDoc:()=>k0,JsTyping:()=>z_,JsxEmit:()=>HG,JsxFlags:()=>cG,JsxReferenceKind:()=>LG,LanguageServiceMode:()=>aK,LanguageVariant:()=>XG,LexicalEnvironmentFlags:()=>rV,ListFormat:()=>oV,LogLevel:()=>iG,MemberOverrideStatus:()=>_G,ModifierFlags:()=>O6,ModuleDetectionKind:()=>GG,ModuleInstanceState:()=>Eq,ModuleKind:()=>$N,ModuleResolutionKind:()=>Bx,ModuleSpecifierEnding:()=>zU,NavigateTo:()=>ode,NavigationBar:()=>_de,NewLineKind:()=>JG,NodeBuilderFlags:()=>vG,NodeCheckFlags:()=>DG,NodeFactoryFlags:()=>JU,NodeFlags:()=>w6,NodeResolutionFeatures:()=>vq,ObjectFlags:()=>j6,OperationCanceledException:()=>zx,OperatorPrecedence:()=>PU,OrganizeImports:()=>Cm,OrganizeImportsMode:()=>lK,OuterExpressionKinds:()=>nV,OutliningElementsCollector:()=>IQ,OutliningSpanKind:()=>_K,OutputFileType:()=>hK,PackageJsonAutoImportPreference:()=>oK,PackageJsonDependencyGroup:()=>iK,PatternMatchKind:()=>N5,PollingInterval:()=>X6,PollingWatchKind:()=>UG,PragmaKindFlags:()=>aV,PrivateIdentifierKind:()=>eH,ProcessLevel:()=>Uq,ProgramUpdateLevel:()=>aJ,QuotePreference:()=>TX,RelationComparisonResult:()=>W6,Rename:()=>xz,ScriptElementKind:()=>yK,ScriptElementKindModifier:()=>bK,ScriptKind:()=>H6,ScriptSnapshot:()=>W7,ScriptTarget:()=>KG,SemanticClassificationFormat:()=>sK,SemanticMeaning:()=>SX,SemicolonPreference:()=>fK,SignatureCheckMode:()=>zF,SignatureFlags:()=>U6,SignatureHelp:()=>ZO,SignatureKind:()=>kG,SmartSelectionRange:()=>DQ,SnippetKind:()=>J6,SortKind:()=>tG,StructureIsReused:()=>B6,SymbolAccessibility:()=>EG,SymbolDisplay:()=>Qv,SymbolDisplayPartKind:()=>Yw,SymbolFlags:()=>G6,SymbolFormatFlags:()=>bG,SyntaxKind:()=>k6,SyntheticSymbolKind:()=>SG,Ternary:()=>zG,ThrottledCancellationToken:()=>DY,TokenClass:()=>vK,TokenFlags:()=>uG,TransformFlags:()=>q6,TypeFacts:()=>WF,TypeFlags:()=>V6,TypeFormatFlags:()=>yG,TypeMapKind:()=>OG,TypePredicateKind:()=>TG,TypeReferenceSerializationKind:()=>AG,UnionReduction:()=>hG,UpToDateStatusType:()=>$J,VarianceFlags:()=>NG,Version:()=>hm,VersionRange:()=>k2,WatchDirectoryFlags:()=>YG,WatchDirectoryKind:()=>jG,WatchFileKind:()=>VG,WatchLogLevel:()=>sJ,WatchType:()=>Lc,accessPrivateIdentifier:()=>nle,addDisposableResourceHelper:()=>OW,addEmitFlags:()=>P_,addEmitHelper:()=>qA,addEmitHelpers:()=>zg,addInternalEmitFlags:()=>UA,addNodeFactoryPatcher:()=>KSe,addObjectAllocatorPatcher:()=>ioe,addRange:()=>qr,addRelatedInfo:()=>Ma,addSyntheticLeadingComment:()=>uP,addSyntheticTrailingComment:()=>cW,addToSeen:()=>Am,advancedAsyncSuperHelper:()=>Wk,affectsDeclarationPathOptionDeclarations:()=>eq,affectsEmitOptionDeclarations:()=>ZH,allKeysStartWithDot:()=>CF,altDirectorySeparator:()=>q2,and:()=>D6,append:()=>Rn,appendIfUnique:()=>Rg,arrayFrom:()=>zo,arrayIsEqualTo:()=>Hm,arrayIsHomogeneous:()=>Aoe,arrayIsSorted:()=>b6,arrayOf:()=>$te,arrayReverseIterator:()=>GB,arrayToMap:()=>TE,arrayToMultiMap:()=>P2,arrayToNumericMap:()=>Zte,arraysEqual:()=>Ba,assertType:()=>DEe,assign:()=>Mx,assignHelper:()=>hW,asyncDelegator:()=>vW,asyncGeneratorHelper:()=>gW,asyncSuperHelper:()=>Ok,asyncValues:()=>yW,attachFileToDiagnostics:()=>zA,awaitHelper:()=>JA,awaiterHelper:()=>EW,base64decode:()=>Jie,base64encode:()=>qie,binarySearch:()=>Tv,binarySearchKey:()=>pA,bindSourceFile:()=>Pse,breakIntoCharacterSpans:()=>Que,breakIntoWordSpans:()=>Zue,buildLinkParts:()=>Sue,buildOpts:()=>yF,buildOverload:()=>Mwe,bundlerModuleNameResolver:()=>Ese,canBeConvertedToAsync:()=>GX,canHaveDecorators:()=>qS,canHaveExportModifier:()=>vk,canHaveFlowNode:()=>qL,canHaveIllegalDecorators:()=>NH,canHaveIllegalModifiers:()=>wae,canHaveIllegalType:()=>TTe,canHaveIllegalTypeParameters:()=>kae,canHaveJSDoc:()=>JL,canHaveLocals:()=>ph,canHaveModifiers:()=>Rm,canHaveSymbol:()=>T_,canJsonReportNoInputFiles:()=>NP,canProduceDiagnostics:()=>QF,canUsePropertyAccess:()=>EU,canWatchAffectingLocation:()=>cce,canWatchAtTypes:()=>lce,canWatchDirectoryOrFile:()=>y7,cartesianProduct:()=>cne,cast:()=>oa,chainBundle:()=>Dm,chainDiagnosticMessages:()=>Vo,changeAnyExtension:()=>U2,changeCompilerHostLikeToUseCache:()=>Fw,changeExtension:()=>_0,changeFullExtension:()=>Dne,changesAffectModuleResolution:()=>I4,changesAffectingProgramStructure:()=>Cre,childIsDecorated:()=>SC,classElementOrClassElementParameterIsDecorated:()=>mj,classHasClassThisAssignment:()=>Gq,classHasDeclaredOrExplicitlyAssignedName:()=>Vq,classHasExplicitlyAssignedName:()=>XF,classOrConstructorParameterIsDecorated:()=>Lv,classPrivateFieldGetHelper:()=>LW,classPrivateFieldInHelper:()=>wW,classPrivateFieldSetHelper:()=>kW,classicNameResolver:()=>Rse,classifier:()=>upe,cleanExtendedConfigCache:()=>a7,clear:()=>jo,clearMap:()=>ep,clearSharedExtendedConfigFileWatcher:()=>rJ,climbPastPropertyAccess:()=>z7,climbPastPropertyOrElementAccess:()=>Xce,clone:()=>qB,cloneCompilerOptions:()=>GK,closeFileWatcher:()=>Xm,closeFileWatcherOf:()=>Cf,codefix:()=>Fu,collapseTextChangeRangesAcrossMultipleVersions:()=>Vne,collectExternalModuleInfo:()=>wq,combine:()=>Px,combinePaths:()=>$r,commentPragmas:()=>z2,commonOptionsWithBuild:()=>fw,commonPackageFolders:()=>kU,compact:()=>C2,compareBooleans:()=>Ey,compareDataObjects:()=>iU,compareDiagnostics:()=>HC,compareDiagnosticsSkipRelatedInformation:()=>C3,compareEmitHelpers:()=>eae,compareNumberOfDirectorySeparators:()=>_k,comparePaths:()=>Dg,comparePathsCaseInsensitive:()=>t1e,comparePathsCaseSensitive:()=>e1e,comparePatternKeys:()=>hq,compareProperties:()=>one,compareStringsCaseInsensitive:()=>x6,compareStringsCaseInsensitiveEslintCompatible:()=>nne,compareStringsCaseSensitive:()=>Uu,compareStringsCaseSensitiveUI:()=>L2,compareTextSpans:()=>I6,compareValues:()=>nl,compileOnSaveCommandLineOption:()=>dw,compilerOptionsAffectDeclarationPath:()=>moe,compilerOptionsAffectEmit:()=>foe,compilerOptionsAffectSemanticDiagnostics:()=>poe,compilerOptionsDidYouMeanDiagnostics:()=>hw,compilerOptionsIndicateEsModules:()=>JK,compose:()=>xEe,computeCommonSourceDirectoryOfFilenames:()=>Gle,computeLineAndCharacterOfPosition:()=>Vx,computeLineOfPosition:()=>tC,computeLineStarts:()=>bA,computePositionOfLineAndCharacter:()=>n4,computeSignature:()=>QS,computeSignatureWithDiagnostics:()=>NJ,computeSuggestionDiagnostics:()=>FX,computedOptions:()=>_c,concatenate:()=>So,concatenateDiagnosticMessageChains:()=>loe,consumesNodeCoreModules:()=>v5,contains:()=>Or,containsIgnoredPath:()=>eP,containsObjectRestOrSpread:()=>nw,containsParseError:()=>eR,containsPath:()=>gm,convertCompilerOptionsForTelemetry:()=>ise,convertCompilerOptionsFromJson:()=>xAe,convertJsonOption:()=>JS,convertToBase64:()=>Hie,convertToJson:()=>lw,convertToObject:()=>Zae,convertToOptionsWithAbsolutePaths:()=>JH,convertToRelativePath:()=>eC,convertToTSConfig:()=>pAe,convertTypeAcquisitionFromJson:()=>RAe,copyComments:()=>nT,copyEntries:()=>x4,copyLeadingComments:()=>ID,copyProperties:()=>JB,copyTrailingAsLeadingComments:()=>hO,copyTrailingComments:()=>lM,couldStartTrivia:()=>Mne,countWhere:()=>ou,createAbstractBuilder:()=>Lxe,createAccessorPropertyBackingField:()=>PH,createAccessorPropertyGetRedirector:()=>jae,createAccessorPropertySetRedirector:()=>Uae,createBaseNodeFactory:()=>Foe,createBinaryExpressionTrampoline:()=>sF,createBindingHelper:()=>FR,createBuildInfo:()=>Lw,createBuilderProgram:()=>CJ,createBuilderProgramUsingProgramBuildInfo:()=>ace,createBuilderStatusReporter:()=>Tce,createCacheWithRedirects:()=>lq,createCacheableExportInfoMap:()=>xX,createCachedDirectoryStructureHost:()=>i7,createClassNamedEvaluationHelperBlock:()=>lle,createClassThisAssignmentBlock:()=>ale,createClassifier:()=>YRe,createCommentDirectivesMap:()=>Ore,createCompilerDiagnostic:()=>Ul,createCompilerDiagnosticForInvalidCustomType:()=>Kae,createCompilerDiagnosticFromMessageChain:()=>N3,createCompilerHost:()=>Vle,createCompilerHostFromProgramHost:()=>JJ,createCompilerHostWorker:()=>uJ,createDetachedDiagnostic:()=>CR,createDiagnosticCollection:()=>ER,createDiagnosticForFileFromMessageChain:()=>cj,createDiagnosticForNode:()=>kr,createDiagnosticForNodeArray:()=>rR,createDiagnosticForNodeArrayFromMessageChain:()=>IL,createDiagnosticForNodeFromMessageChain:()=>Lg,createDiagnosticForNodeInSourceFile:()=>Xf,createDiagnosticForRange:()=>Kre,createDiagnosticMessageChainFromDiagnostic:()=>Jre,createDiagnosticReporter:()=>jw,createDocumentPositionMapper:()=>Yse,createDocumentRegistry:()=>Gue,createDocumentRegistryInternal:()=>LX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>wJ,createEmitHelperFactory:()=>Zoe,createEmptyExports:()=>Kk,createExpressionForJsxElement:()=>Rae,createExpressionForJsxFragment:()=>Dae,createExpressionForObjectLiteralElementLike:()=>Nae,createExpressionForPropertyName:()=>TH,createExpressionFromEntityName:()=>Xk,createExternalHelpersImportDeclarationIfNeeded:()=>xH,createFileDiagnostic:()=>$c,createFileDiagnosticFromMessageChain:()=>w4,createForOfBindingStatement:()=>SH,createGetCanonicalFileName:()=>Mu,createGetSourceFile:()=>lJ,createGetSymbolAccessibilityDiagnosticForNode:()=>Uv,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Mle,createGetSymbolWalker:()=>Mse,createIncrementalCompilerHost:()=>XJ,createIncrementalProgram:()=>Ece,createInputFiles:()=>YSe,createInputFilesWithFilePaths:()=>HU,createInputFilesWithFileTexts:()=>qU,createJsxFactoryExpression:()=>EH,createLanguageService:()=>ipe,createLanguageServiceSourceFile:()=>Z5,createMemberAccessForPropertyName:()=>HS,createModeAwareCache:()=>_I,createModeAwareCacheKey:()=>kP,createModuleNotFoundChain:()=>R4,createModuleResolutionCache:()=>rD,createModuleResolutionLoader:()=>hJ,createModuleResolutionLoaderUsingGlobalCache:()=>fce,createModuleSpecifierResolutionHost:()=>tT,createMultiMap:()=>$p,createNodeConverters:()=>Boe,createNodeFactory:()=>Dk,createOptionNameMap:()=>uF,createOverload:()=>FQ,createPackageJsonImportFilter:()=>dM,createPackageJsonInfo:()=>mX,createParenthesizerRules:()=>zoe,createPatternMatcher:()=>que,createPrependNodes:()=>TJ,createPrinter:()=>R0,createPrinterWithDefaults:()=>tJ,createPrinterWithRemoveComments:()=>d1,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>nJ,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>kw,createProgram:()=>d7,createProgramHost:()=>KJ,createPropertyNameNodeForIdentifierOrLiteral:()=>J3,createQueue:()=>M2,createRange:()=>Af,createRedirectedBuilderProgram:()=>MJ,createResolutionCache:()=>WJ,createRuntimeTypeSerializer:()=>fle,createScanner:()=>Nv,createSemanticDiagnosticsBuilderProgram:()=>Mxe,createSet:()=>KB,createSolutionBuilder:()=>Xxe,createSolutionBuilderHost:()=>Jxe,createSolutionBuilderWithWatch:()=>Yxe,createSolutionBuilderWithWatchHost:()=>Kxe,createSortedArray:()=>BB,createSourceFile:()=>iw,createSourceMapGenerator:()=>qse,createSourceMapSource:()=>$Se,createSuperAccessVariableStatement:()=>$F,createSymbolTable:()=>ca,createSymlinkCache:()=>dU,createSystemWatchFunctions:()=>Ane,createTextChange:()=>sO,createTextChangeFromStartLength:()=>Z7,createTextChangeRange:()=>nL,createTextRangeFromNode:()=>UK,createTextRangeFromSpan:()=>Q7,createTextSpan:()=>vu,createTextSpanFromBounds:()=>pc,createTextSpanFromNode:()=>Dd,createTextSpanFromRange:()=>tb,createTextSpanFromStringLiteralLikeContent:()=>jK,createTextWriter:()=>ok,createTokenRange:()=>tU,createTypeChecker:()=>Bse,createTypeReferenceDirectiveResolutionCache:()=>RF,createTypeReferenceResolutionLoader:()=>l7,createUnparsedSourceFile:()=>UU,createWatchCompilerHost:()=>Uxe,createWatchCompilerHostOfConfigFile:()=>vce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>yce,createWatchFactory:()=>qJ,createWatchHost:()=>HJ,createWatchProgram:()=>Hxe,createWatchStatusReporter:()=>mce,createWriteFileMeasuringIO:()=>cJ,declarationNameToString:()=>xs,decodeMappings:()=>Mq,decodedTextSpanIntersectsWith:()=>tL,decorateHelper:()=>dW,deduplicate:()=>SE,defaultIncludeSpec:()=>SF,defaultInitCompilerOptions:()=>bF,defaultMaximumTruncationLength:()=>Sk,detectSortCaseSensitivity:()=>qN,diagnosticCategoryName:()=>lS,diagnosticToString:()=>iT,directoryProbablyExists:()=>Km,directorySeparator:()=>ol,displayPart:()=>rp,displayPartsToString:()=>WO,disposeEmitNodes:()=>KU,disposeResourcesHelper:()=>WW,documentSpansEqual:()=>QK,dumpTracingLegend:()=>Ene,elementAt:()=>Rv,elideNodes:()=>Vae,emitComments:()=>kie,emitDetachedComments:()=>wie,emitFiles:()=>t7,emitFilesAndReportErrors:()=>T7,emitFilesAndReportErrorsAndGetExitStatus:()=>gce,emitModuleKindIsNonNodeESM:()=>P3,emitNewLineBeforeLeadingCommentOfPosition:()=>Lie,emitNewLineBeforeLeadingComments:()=>Pie,emitNewLineBeforeLeadingCommentsOfPosition:()=>Mie,emitSkippedWithNoDiagnostics:()=>h7,emitUsingBuildInfo:()=>Wle,emptyArray:()=>et,emptyFileSystemEntries:()=>oW,emptyMap:()=>M6,emptyOptions:()=>Mf,emptySet:()=>dne,endsWith:()=>Al,ensurePathIsNonModuleName:()=>AE,ensureScriptKind:()=>B3,ensureTrailingDirectorySeparator:()=>Fc,entityNameToString:()=>fp,enumerateInsertsAndDeletes:()=>C6,equalOwnProperties:()=>Qte,equateStringsCaseInsensitive:()=>$b,equateStringsCaseSensitive:()=>oS,equateValues:()=>xv,esDecorateHelper:()=>mW,escapeJsxAttributeString:()=>Gj,escapeLeadingUnderscores:()=>_l,escapeNonAsciiString:()=>ik,escapeSnippetText:()=>JE,escapeString:()=>tg,escapeTemplateSubstitution:()=>zj,every:()=>Jn,expandPreOrPostfixIncrementOrDecrementExpression:()=>tF,explainFiles:()=>BJ,explainIfFileIsRedirectAndImpliedFormat:()=>GJ,exportAssignmentIsAlias:()=>gR,exportStarHelper:()=>MW,expressionResultIsUnused:()=>xoe,extend:()=>A6,extendsHelper:()=>SW,extensionFromPath:()=>XC,extensionIsTS:()=>j3,extensionsNotSupportingExtensionlessResolution:()=>Rk,externalHelpersModuleNameText:()=>Vy,factory:()=>w,fileExtensionIs:()=>Il,fileExtensionIsOneOf:()=>Sc,fileIncludeReasonToDiagnostics:()=>UJ,fileShouldUseJavaScriptRequire:()=>EX,filter:()=>mn,filterMutate:()=>li,filterSemanticDiagnostics:()=>p7,find:()=>In,findAncestor:()=>Vn,findBestPatternMatch:()=>QB,findChildOfKind:()=>vs,findComputedPropertyNameCacheAssignment:()=>lF,findConfigFile:()=>Ble,findContainingList:()=>U7,findDiagnosticForNode:()=>Lue,findFirstNonJsxWhitespaceToken:()=>eue,findIndex:()=>mi,findLast:()=>oi,findLastIndex:()=>Yi,findListItemInfo:()=>Zce,findMap:()=>ja,findModifier:()=>SD,findNextToken:()=>m1,findPackageJson:()=>Pue,findPackageJsons:()=>fX,findPrecedingMatchingToken:()=>Y7,findPrecedingToken:()=>Ic,findSuperStatementIndexPath:()=>qF,findTokenOnLeftOfPosition:()=>J7,findUseStrictPrologue:()=>IH,first:()=>Ua,firstDefined:()=>Ht,firstDefinedIterator:()=>pn,firstIterator:()=>jB,firstOrOnly:()=>vX,firstOrUndefined:()=>Kc,firstOrUndefinedIterator:()=>E6,fixupCompilerOptions:()=>jX,flatMap:()=>Do,flatMapIterator:()=>EE,flatMapToMutable:()=>kp,flatten:()=>Cs,flattenCommaList:()=>Hae,flattenDestructuringAssignment:()=>XS,flattenDestructuringBinding:()=>u1,flattenDiagnosticMessageText:()=>W_,forEach:()=>Xe,forEachAncestor:()=>Pre,forEachAncestorDirectory:()=>ym,forEachChild:()=>Uo,forEachChildRecursively:()=>RP,forEachEmittedFile:()=>$q,forEachEnclosingBlockScopeContainer:()=>Ure,forEachEntry:()=>zc,forEachExternalModuleToImportFrom:()=>DX,forEachImportClauseDeclaration:()=>i3,forEachKey:()=>mh,forEachLeadingCommentRange:()=>Y2,forEachNameInAccessChainWalkingLeft:()=>noe,forEachPropertyAssignment:()=>sR,forEachResolvedProjectReference:()=>vJ,forEachReturnStatement:()=>LE,forEachRight:()=>$t,forEachTrailingCommentRange:()=>$2,forEachTsConfigPropArray:()=>NL,forEachUnique:()=>eX,forEachYieldExpression:()=>Yre,forSomeAncestorDirectory:()=>ySe,formatColorAndReset:()=>p1,formatDiagnostic:()=>dJ,formatDiagnostics:()=>fxe,formatDiagnosticsWithColorAndContext:()=>jle,formatGeneratedName:()=>S0,formatGeneratedNamePart:()=>QR,formatLocation:()=>pJ,formatMessage:()=>lU,formatStringFromArgs:()=>ig,formatting:()=>kc,fullTripleSlashAMDReferencePathRegEx:()=>RU,fullTripleSlashReferencePathRegEx:()=>xU,generateDjb2Hash:()=>QN,generateTSConfig:()=>gAe,generatorHelper:()=>NW,getAdjustedReferenceLocation:()=>wK,getAdjustedRenameLocation:()=>q7,getAliasDeclarationFromName:()=>Dj,getAllAccessorDeclarations:()=>NS,getAllDecoratorsOfClass:()=>Wq,getAllDecoratorsOfClassElement:()=>KF,getAllJSDocTags:()=>u4,getAllJSDocTagsOfKind:()=>C1e,getAllKeys:()=>AEe,getAllProjectOutputs:()=>e7,getAllSuperTypeNodes:()=>RC,getAllUnscopedEmitHelpers:()=>ZU,getAllowJSCompilerOption:()=>jy,getAllowSyntheticDefaultImports:()=>MS,getAncestor:()=>f0,getAnyExtensionFromPath:()=>Gx,getAreDeclarationMapsEnabled:()=>Ak,getAssignedExpandoInitializer:()=>DA,getAssignedName:()=>l4,getAssignedNameOfIdentifier:()=>GP,getAssignmentDeclarationKind:()=>zl,getAssignmentDeclarationPropertyAccessKind:()=>GL,getAssignmentTargetKind:()=>MA,getAutomaticTypeDirectiveNames:()=>IF,getBaseFileName:()=>ic,getBinaryOperatorPrecedence:()=>rk,getBuildInfo:()=>n7,getBuildInfoFileVersionMap:()=>PJ,getBuildInfoText:()=>Ole,getBuildOrderFromAnyBuildOrder:()=>D7,getBuilderCreationParameters:()=>g7,getBuilderFileEmit:()=>eb,getCheckFlags:()=>xl,getClassExtendsHeritageElement:()=>FE,getClassLikeDeclarationOfSymbol:()=>Wg,getCombinedLocalAndExportSymbolFlags:()=>RR,getCombinedModifierFlags:()=>n0,getCombinedNodeFlags:()=>Cv,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>SV,getCommentRange:()=>M_,getCommonSourceDirectory:()=>KP,getCommonSourceDirectoryOfConfig:()=>cD,getCompilerOptionValue:()=>L3,getCompilerOptionsDiffValue:()=>_Ae,getConditions:()=>Qy,getConfigFileParsingDiagnostics:()=>$S,getConstantValue:()=>qoe,getContainerFlags:()=>bq,getContainerNode:()=>eT,getContainingClass:()=>au,getContainingClassExcludingClassDecorators:()=>U4,getContainingClassStaticBlock:()=>oie,getContainingFunction:()=>Bp,getContainingFunctionDeclaration:()=>iie,getContainingFunctionOrClassStaticBlock:()=>j4,getContainingNodeArray:()=>Roe,getContainingObjectLiteralElement:()=>FO,getContextualTypeFromParent:()=>u5,getContextualTypeFromParentOrAncestorTypeNode:()=>H7,getCurrentTime:()=>Hw,getDeclarationDiagnostics:()=>Lle,getDeclarationEmitExtensionForPath:()=>f3,getDeclarationEmitOutputFilePath:()=>xie,getDeclarationEmitOutputFilePathWorker:()=>p3,getDeclarationFileExtension:()=>wH,getDeclarationFromName:()=>xC,getDeclarationModifierFlagsFromSymbol:()=>xf,getDeclarationOfKind:()=>pl,getDeclarationsOfKind:()=>Dre,getDeclaredExpandoInitializer:()=>WL,getDecorators:()=>Ry,getDefaultCompilerOptions:()=>Q5,getDefaultExportInfoWorker:()=>R5,getDefaultFormatCodeSettings:()=>O7,getDefaultLibFileName:()=>Z2,getDefaultLibFilePath:()=>ope,getDefaultLikeExportInfo:()=>x5,getDiagnosticText:()=>oAe,getDiagnosticsWithinSpan:()=>kue,getDirectoryPath:()=>ai,getDirectoryToWatchFailedLookupLocation:()=>OJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>dce,getDocumentPositionMapper:()=>WX,getDocumentSpansEqualityComparer:()=>ZK,getESModuleInterop:()=>vh,getEditsForFileRename:()=>jue,getEffectiveBaseTypeNode:()=>I_,getEffectiveConstraintOfTypeParameter:()=>Jx,getEffectiveContainerForJSDocTemplateTag:()=>o3,getEffectiveImplementsTypeNodes:()=>vR,getEffectiveInitializer:()=>OL,getEffectiveJSDocHost:()=>p0,getEffectiveModifierFlags:()=>ud,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>zie,getEffectiveModifierFlagsNoCache:()=>Bie,getEffectiveReturnTypeNode:()=>em,getEffectiveSetAccessorTypeAnnotationNode:()=>Cie,getEffectiveTypeAnnotationNode:()=>yu,getEffectiveTypeParameterDeclarations:()=>Dy,getEffectiveTypeRoots:()=>LP,getElementOrPropertyAccessArgumentExpressionOrName:()=>r3,getElementOrPropertyAccessName:()=>kg,getElementsOfBindingOrAssignmentPattern:()=>$R,getEmitDeclarations:()=>Rf,getEmitFlags:()=>Ga,getEmitHelpers:()=>uW,getEmitModuleDetectionKind:()=>MU,getEmitModuleKind:()=>wu,getEmitModuleResolutionKind:()=>pd,getEmitScriptTarget:()=>os,getEmitStandardClassFields:()=>doe,getEnclosingBlockScopeContainer:()=>_h,getEnclosingContainer:()=>lj,getEncodedSemanticClassifications:()=>PX,getEncodedSyntacticClassifications:()=>MX,getEndLinePosition:()=>EL,getEntityNameFromTypeNode:()=>ML,getEntrypointsFromPackageJsonInfo:()=>fq,getErrorCountForSummary:()=>E7,getErrorSpanForNode:()=>vS,getErrorSummaryText:()=>_ce,getEscapedTextOfIdentifierOrLiteral:()=>CC,getEscapedTextOfJsxAttributeName:()=>iP,getEscapedTextOfJsxNamespacedName:()=>VA,getExpandoInitializer:()=>u0,getExportAssignmentExpression:()=>Nj,getExportInfoMap:()=>EO,getExportNeedsImportStarHelper:()=>$se,getExpressionAssociativity:()=>Oj,getExpressionPrecedence:()=>MC,getExternalHelpersModuleName:()=>$k,getExternalModuleImportEqualsDeclarationExpression:()=>TC,getExternalModuleName:()=>fR,getExternalModuleNameFromDeclaration:()=>Aie,getExternalModuleNameFromPath:()=>jj,getExternalModuleNameLiteral:()=>dI,getExternalModuleRequireArgument:()=>hj,getFallbackOptions:()=>Ww,getFileEmitOutput:()=>Yle,getFileMatcherPatterns:()=>z3,getFileNamesFromConfigSpecs:()=>CP,getFileWatcherEventKind:()=>lV,getFilesInErrorForSummary:()=>S7,getFirstConstructorWithBody:()=>ng,getFirstIdentifier:()=>Gp,getFirstNonSpaceCharacterPosition:()=>Iue,getFirstProjectOutput:()=>eJ,getFixableErrorSpanExpression:()=>hX,getFormatCodeSettingsForWriting:()=>S5,getFullWidth:()=>yL,getFunctionFlags:()=>Bc,getHeritageClause:()=>ZL,getHostSignatureFromJSDoc:()=>d0,getIdentifierAutoGenerate:()=>nTe,getIdentifierGeneratedImportReference:()=>Qoe,getIdentifierTypeArguments:()=>LS,getImmediatelyInvokedFunctionExpression:()=>bS,getImpliedNodeFormatForFile:()=>Gw,getImpliedNodeFormatForFileWorker:()=>EJ,getImportNeedsImportDefaultHelper:()=>kq,getImportNeedsImportStarHelper:()=>UF,getIndentSize:()=>TR,getIndentString:()=>u3,getInferredLibraryNameResolveFrom:()=>u7,getInitializedVariables:()=>VC,getInitializerOfBinaryExpression:()=>Ej,getInitializerOfBindingOrAssignmentElement:()=>Zk,getInterfaceBaseTypeNodes:()=>DC,getInternalEmitFlags:()=>Em,getInvokedExpression:()=>J4,getIsolatedModules:()=>rm,getJSDocAugmentsTag:()=>$ne,getJSDocClassTag:()=>AV,getJSDocCommentRanges:()=>dj,getJSDocCommentsAndTags:()=>Tj,getJSDocDeprecatedTag:()=>IV,getJSDocDeprecatedTagNoCache:()=>ire,getJSDocEnumTag:()=>xV,getJSDocHost:()=>AS,getJSDocImplementsTags:()=>Qne,getJSDocOverloadTags:()=>Ij,getJSDocOverrideTagNoCache:()=>rre,getJSDocParameterTags:()=>qx,getJSDocParameterTagsNoCache:()=>Jne,getJSDocPrivateTag:()=>I1e,getJSDocPrivateTagNoCache:()=>ere,getJSDocProtectedTag:()=>x1e,getJSDocProtectedTagNoCache:()=>tre,getJSDocPublicTag:()=>A1e,getJSDocPublicTagNoCache:()=>Zne,getJSDocReadonlyTag:()=>R1e,getJSDocReadonlyTagNoCache:()=>nre,getJSDocReturnTag:()=>ore,getJSDocReturnType:()=>iL,getJSDocRoot:()=>hR,getJSDocSatisfiesExpressionType:()=>TU,getJSDocSatisfiesTag:()=>RV,getJSDocTags:()=>a0,getJSDocTagsNoCache:()=>N1e,getJSDocTemplateTag:()=>D1e,getJSDocThisTag:()=>c4,getJSDocType:()=>o0,getJSDocTypeAliasName:()=>DH,getJSDocTypeAssertionType:()=>rF,getJSDocTypeParameterDeclarations:()=>g3,getJSDocTypeParameterTags:()=>Kne,getJSDocTypeParameterTagsNoCache:()=>Xne,getJSDocTypeTag:()=>i0,getJSXImplicitImportBase:()=>w3,getJSXRuntimeImport:()=>O3,getJSXTransformEnabled:()=>k3,getKeyForCompilerOptions:()=>sq,getLanguageVariant:()=>pk,getLastChild:()=>oU,getLeadingCommentRanges:()=>qh,getLeadingCommentRangesOfNode:()=>uj,getLeftmostAccessExpression:()=>DR,getLeftmostExpression:()=>NR,getLibraryNameFromLibFileName:()=>yJ,getLineAndCharacterOfPosition:()=>ys,getLineInfo:()=>Cq,getLineOfLocalPosition:()=>kC,getLineOfLocalPositionFromLineMap:()=>RS,getLineStartPositionForPosition:()=>am,getLineStarts:()=>Ng,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Qie,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>$ie,getLinesBetweenPositions:()=>nC,getLinesBetweenRangeEndAndRangeStart:()=>nU,getLinesBetweenRangeEndPositions:()=>gSe,getLiteralText:()=>Wre,getLocalNameForExternalImport:()=>YR,getLocalSymbolForExportDefault:()=>xR,getLocaleSpecificMessage:()=>Wo,getLocaleTimeString:()=>Uw,getMappedContextSpan:()=>tX,getMappedDocumentSpan:()=>a5,getMappedLocation:()=>oM,getMatchedFileSpec:()=>VJ,getMatchedIncludeSpec:()=>jJ,getMeaningFromDeclaration:()=>$w,getMeaningFromLocation:()=>ZS,getMembersOfDeclaration:()=>$re,getModeForFileReference:()=>zw,getModeForResolutionAtIndex:()=>Ule,getModeForUsageLocation:()=>mJ,getModifiedTime:()=>gA,getModifiers:()=>xE,getModuleInstanceState:()=>jg,getModuleNameStringLiteralAt:()=>Vw,getModuleSpecifierEndingPreference:()=>voe,getModuleSpecifierResolverHost:()=>KK,getNameForExportedSymbol:()=>y5,getNameFromImportAttribute:()=>$3,getNameFromIndexInfo:()=>Hre,getNameFromPropertyName:()=>uO,getNameOfAccessExpression:()=>sU,getNameOfCompilerOptionValue:()=>qH,getNameOfDeclaration:()=>Lo,getNameOfExpando:()=>yj,getNameOfJSDocTypedef:()=>qne,getNameOrArgument:()=>BL,getNameTable:()=>TY,getNamesForExportedSymbol:()=>wue,getNamespaceDeclarationNode:()=>mR,getNewLineCharacter:()=>Fv,getNewLineKind:()=>bO,getNewLineOrDefaultFromHost:()=>Xv,getNewTargetContainer:()=>sie,getNextJSDocCommentLocation:()=>Aj,getNodeForGeneratedName:()=>tw,getNodeId:()=>as,getNodeKind:()=>f1,getNodeModifiers:()=>nM,getNodeModulePathParts:()=>K3,getNonAssignedNameOfDeclaration:()=>s4,getNonAssignmentOperatorForCompoundAssignment:()=>FP,getNonAugmentationDeclaration:()=>nj,getNonDecoratorTokenPosOfNode:()=>$V,getNormalizedAbsolutePath:()=>go,getNormalizedAbsolutePathWithoutRoot:()=>mV,getNormalizedPathComponents:()=>j2,getObjectFlags:()=>Wr,getOperator:()=>Fj,getOperatorAssociativity:()=>Wj,getOperatorPrecedence:()=>nk,getOptionFromName:()=>VH,getOptionsForLibraryResolution:()=>cq,getOptionsNameMap:()=>eD,getOrCreateEmitNode:()=>Ou,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Lae,getOrUpdate:()=>dA,getOriginalNode:()=>Pl,getOriginalNodeId:()=>Wu,getOriginalSourceFile:()=>sSe,getOutputDeclarationFileName:()=>JP,getOutputDeclarationFileNameWorker:()=>Qq,getOutputExtension:()=>ZF,getOutputFileNames:()=>dxe,getOutputJSFileNameWorker:()=>Zq,getOutputPathsFor:()=>qP,getOutputPathsForBundle:()=>HP,getOwnEmitOutputFilePath:()=>Iie,getOwnKeys:()=>Hh,getOwnValues:()=>fA,getPackageJsonInfo:()=>a1,getPackageJsonTypesVersionsPaths:()=>AF,getPackageJsonsVisibleToFile:()=>Mue,getPackageNameFromTypesPackageName:()=>wP,getPackageScopeForPath:()=>Ew,getParameterSymbolFromJSDoc:()=>KL,getParameterTypeNode:()=>DSe,getParentNodeInSpan:()=>pO,getParseTreeNode:()=>No,getParsedCommandLineOfConfigFile:()=>aw,getPathComponents:()=>Wc,getPathComponentsRelativeTo:()=>hV,getPathFromPathComponents:()=>Ay,getPathUpdater:()=>wX,getPathsBasePath:()=>m3,getPatternFromSpec:()=>_oe,getPendingEmitKind:()=>mD,getPositionOfLineAndCharacter:()=>K2,getPossibleGenericSignatures:()=>WK,getPossibleOriginalInputExtensionForExtension:()=>Rie,getPossibleTypeArgumentsInfo:()=>FK,getPreEmitDiagnostics:()=>pxe,getPrecedingNonSpaceCharacterPosition:()=>l5,getPrivateIdentifier:()=>Fq,getProperties:()=>Oq,getProperty:()=>S6,getPropertyArrayElementValue:()=>rie,getPropertyAssignmentAliasLikeExpression:()=>bie,getPropertyNameForPropertyNameNode:()=>IS,getPropertyNameForUniqueESSymbol:()=>oSe,getPropertyNameFromType:()=>nm,getPropertyNameOfBindingOrAssignmentElement:()=>RH,getPropertySymbolFromBindingElement:()=>o5,getPropertySymbolsFromContextualType:()=>ez,getQuoteFromPreference:()=>YK,getQuotePreference:()=>lf,getRangesWhere:()=>zB,getRefactorContextSpan:()=>II,getReferencedFileLocation:()=>XP,getRegexFromPattern:()=>By,getRegularExpressionForWildcard:()=>qC,getRegularExpressionsForWildcards:()=>W3,getRelativePathFromDirectory:()=>vm,getRelativePathFromFile:()=>H2,getRelativePathToDirectoryOrUrl:()=>yA,getRenameLocation:()=>_O,getReplacementSpanForContextToken:()=>VK,getResolutionDiagnostic:()=>AJ,getResolutionModeOverride:()=>uD,getResolveJsonModule:()=>g0,getResolvePackageJsonExports:()=>nW,getResolvePackageJsonImports:()=>rW,getResolvedExternalModuleName:()=>d3,getRestIndicatorOfBindingOrAssignmentElement:()=>oF,getRestParameterElementType:()=>pj,getRightMostAssignedExpression:()=>FL,getRootDeclaration:()=>R_,getRootDirectoryOfResolutionCache:()=>pce,getRootLength:()=>dh,getRootPathSplitLength:()=>Wxe,getScriptKind:()=>aX,getScriptKindFromFileName:()=>G3,getScriptTargetFeatures:()=>eW,getSelectedEffectiveModifierFlags:()=>wA,getSelectedSyntacticModifierFlags:()=>Wie,getSemanticClassifications:()=>zue,getSemanticJsxChildren:()=>bR,getSetAccessorTypeAnnotationNode:()=>Die,getSetAccessorValueParameter:()=>wC,getSetExternalModuleIndicator:()=>fk,getShebang:()=>i4,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>Sj,getSingleVariableOfVariableStatement:()=>PA,getSnapshotText:()=>ED,getSnippetElement:()=>XU,getSourceFileOfModule:()=>N4,getSourceFileOfNode:()=>Un,getSourceFilePathInNewDir:()=>_3,getSourceFilePathInNewDirWorker:()=>h3,getSourceFileVersionAsHashFromText:()=>A7,getSourceFilesToEmit:()=>Uj,getSourceMapRange:()=>Bv,getSourceMapper:()=>tde,getSourceTextOfNodeFromSourceFile:()=>CE,getSpanOfTokenAtPosition:()=>hh,getSpellingSuggestion:()=>KN,getStartPositionOfLine:()=>wy,getStartPositionOfRange:()=>GC,getStartsOnNewLine:()=>cP,getStaticPropertiesAndClassStaticBlock:()=>JF,getStrictOptionValue:()=>dd,getStringComparer:()=>Lx,getSubPatternFromSpec:()=>F3,getSuperCallFromStatement:()=>HF,getSuperContainer:()=>CL,getSupportedCodeFixes:()=>EY,getSupportedExtensions:()=>JC,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>mk,getSwitchedType:()=>dX,getSymbolId:()=>Sa,getSymbolNameForPrivateIdentifier:()=>ek,getSymbolTarget:()=>sX,getSyntacticClassifications:()=>Bue,getSyntacticModifierFlags:()=>Fy,getSyntacticModifierFlagsNoCache:()=>Kj,getSynthesizedDeepClone:()=>ll,getSynthesizedDeepCloneWithReplacements:()=>mO,getSynthesizedDeepClones:()=>_1,getSynthesizedDeepClonesWithReplacements:()=>lX,getSyntheticLeadingComments:()=>WR,getSyntheticTrailingComments:()=>Lk,getTargetLabel:()=>B7,getTargetOfBindingOrAssignmentElement:()=>$y,getTemporaryModuleResolutionState:()=>bw,getTextOfConstantValue:()=>Fre,getTextOfIdentifierOrLiteral:()=>Qf,getTextOfJSDocComment:()=>aL,getTextOfJsxAttributeName:()=>Ek,getTextOfJsxNamespacedName:()=>oP,getTextOfNode:()=>fc,getTextOfNodeFromSourceText:()=>gC,getTextOfPropertyName:()=>nR,getThisContainer:()=>Fd,getThisParameter:()=>BE,getTokenAtPosition:()=>po,getTokenPosOfNode:()=>l0,getTokenSourceMapRange:()=>eTe,getTouchingPropertyName:()=>Vd,getTouchingToken:()=>bD,getTrailingCommentRanges:()=>Zb,getTrailingSemicolonDeferringWriter:()=>Vj,getTransformFlagsSubtreeExclusions:()=>Goe,getTransformers:()=>Xq,getTsBuildInfoEmitOutputFilePath:()=>Hv,getTsConfigObjectLiteralExpression:()=>EC,getTsConfigPropArrayElementValue:()=>V4,getTypeAnnotationNode:()=>Nie,getTypeArgumentOrTypeParameterList:()=>lue,getTypeKeywordOfTypeOnlyImport:()=>$K,getTypeNode:()=>Yoe,getTypeNodeIfAccessible:()=>uM,getTypeParameterFromJsDoc:()=>mie,getTypeParameterOwner:()=>y1e,getTypesPackageName:()=>PF,getUILocale:()=>rne,getUniqueName:()=>rT,getUniqueSymbolId:()=>Aue,getUseDefineForClassFields:()=>lP,getWatchErrorSummaryDiagnosticMessage:()=>FJ,getWatchFactory:()=>oJ,group:()=>JN,groupBy:()=>T6,guessIndentation:()=>xre,handleNoEmitOptions:()=>SJ,hasAbstractModifier:()=>jE,hasAccessorModifier:()=>D_,hasAmbientModifier:()=>Jj,hasChangesInResolutions:()=>KV,hasChildOfKind:()=>iO,hasContextSensitiveParameters:()=>q3,hasDecorators:()=>Tf,hasDocComment:()=>aue,hasDynamicName:()=>Wy,hasEffectiveModifier:()=>_p,hasEffectiveModifiers:()=>v3,hasEffectiveReadonlyModifier:()=>OC,hasExtension:()=>vA,hasIndexSignature:()=>uX,hasInitializer:()=>Ly,hasInvalidEscape:()=>Bj,hasJSDocNodes:()=>Wp,hasJSDocParameterTags:()=>Yne,hasJSFileExtension:()=>UE,hasJsonModuleEmitEnabled:()=>M3,hasOnlyExpressionInitializer:()=>_S,hasOverrideModifier:()=>y3,hasPossibleExternalModuleReference:()=>jre,hasProperty:()=>Is,hasPropertyAccessExpressionWithName:()=>Zw,hasQuestionToken:()=>CA,hasRecordedExternalHelpers:()=>Mae,hasResolutionModeOverride:()=>Moe,hasRestParameter:()=>UV,hasScopeMarker:()=>vre,hasStaticModifier:()=>mc,hasSyntacticModifier:()=>Qr,hasSyntacticModifiers:()=>Oie,hasTSFileExtension:()=>GA,hasTabstop:()=>Noe,hasTrailingDirectorySeparator:()=>Dv,hasType:()=>T4,hasTypeArguments:()=>eSe,hasZeroOrOneAsteriskCharacter:()=>uU,helperString:()=>QU,hostGetCanonicalFileName:()=>wv,hostUsesCaseSensitiveFileNames:()=>AR,idText:()=>Er,identifierIsThisKeyword:()=>qj,identifierToKeywordKind:()=>r0,identity:()=>tl,identitySourceMapConsumer:()=>jF,ignoreSourceNewlines:()=>$U,ignoredPaths:()=>V2,importDefaultHelper:()=>PW,importFromModuleSpecifier:()=>IC,importNameElisionDisabled:()=>cU,importStarHelper:()=>wk,indexOfAnyCharCode:()=>Jc,indexOfNode:()=>tR,indicesOf:()=>N2,inferredTypesContainingFile:()=>fD,injectClassNamedEvaluationHelperBlockIfMissing:()=>YF,injectClassThisAssignmentIfMissing:()=>sle,insertImports:()=>iM,insertLeadingStatement:()=>yTe,insertSorted:()=>by,insertStatementAfterCustomPrologue:()=>hS,insertStatementAfterStandardPrologue:()=>U1e,insertStatementsAfterCustomPrologue:()=>XV,insertStatementsAfterStandardPrologue:()=>Yh,intersperse:()=>io,intrinsicTagNameToString:()=>AU,introducesArgumentsExoticObject:()=>tie,inverseJsxOptionMap:()=>PP,isAbstractConstructorSymbol:()=>Zie,isAbstractModifier:()=>aae,isAccessExpression:()=>ws,isAccessibilityModifier:()=>BK,isAccessor:()=>Cy,isAccessorModifier:()=>lae,isAliasSymbolDeclaration:()=>nSe,isAliasableExpression:()=>QL,isAmbientModule:()=>ku,isAmbientPropertyDeclaration:()=>ij,isAnonymousFunctionDefinition:()=>PC,isAnyDirectorySeparator:()=>dV,isAnyImportOrBareOrAccessedRequire:()=>Vre,isAnyImportOrReExport:()=>TL,isAnyImportSyntax:()=>gS,isAnySupportedFileExtension:()=>RSe,isApplicableVersionedTypesKey:()=>Tw,isArgumentExpressionOfElementAccess:()=>NK,isArray:()=>To,isArrayBindingElement:()=>g4,isArrayBindingOrAssignmentElement:()=>fL,isArrayBindingOrAssignmentPattern:()=>FV,isArrayBindingPattern:()=>YE,isArrayLiteralExpression:()=>fd,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Jv,isArrayTypeNode:()=>Vk,isArrowFunction:()=>Gs,isAsExpression:()=>Uk,isAssertClause:()=>_ae,isAssertEntry:()=>dTe,isAssertionExpression:()=>mS,isAssertsKeyword:()=>iae,isAssignmentDeclaration:()=>AC,isAssignmentExpression:()=>Pc,isAssignmentOperator:()=>Ov,isAssignmentPattern:()=>mC,isAssignmentTarget:()=>eg,isAsteriskToken:()=>Fk,isAsyncFunction:()=>NC,isAsyncModifier:()=>pP,isAutoAccessorPropertyDeclaration:()=>Wd,isAwaitExpression:()=>Ky,isAwaitKeyword:()=>oH,isBigIntLiteral:()=>FW,isBinaryExpression:()=>mr,isBinaryOperatorToken:()=>Gae,isBindableObjectDefinePropertyCall:()=>SS,isBindableStaticAccessExpression:()=>OE,isBindableStaticElementAccessExpression:()=>n3,isBindableStaticNameExpression:()=>TS,isBindingElement:()=>$a,isBindingElementOfBareOrAccessedRequire:()=>uie,isBindingName:()=>pS,isBindingOrAssignmentElement:()=>pre,isBindingOrAssignmentPattern:()=>dL,isBindingPattern:()=>ta,isBlock:()=>Ko,isBlockOrCatchScoped:()=>QV,isBlockScope:()=>oj,isBlockScopedContainerTopLevel:()=>Gre,isBooleanLiteral:()=>fC,isBreakOrContinueStatement:()=>cC,isBreakStatement:()=>lTe,isBuildInfoFile:()=>wle,isBuilderProgram:()=>hce,isBundle:()=>pH,isBundleFileTextLike:()=>toe,isCallChain:()=>uS,isCallExpression:()=>sa,isCallExpressionTarget:()=>TK,isCallLikeExpression:()=>NE,isCallLikeOrFunctionLikeExpression:()=>zV,isCallOrNewExpression:()=>S_,isCallOrNewExpressionTarget:()=>AK,isCallSignatureDeclaration:()=>ZA,isCallToHelper:()=>dP,isCaseBlock:()=>yP,isCaseClause:()=>UR,isCaseKeyword:()=>cae,isCaseOrDefaultClause:()=>E4,isCatchClause:()=>r1,isCatchClauseVariableDeclaration:()=>Doe,isCatchClauseVariableDeclarationOrBindingElement:()=>ZV,isCheckJsEnabledForFile:()=>gk,isChildOfNodeWithKind:()=>q1e,isCircularBuildOrder:()=>bI,isClassDeclaration:()=>Ac,isClassElement:()=>Yc,isClassExpression:()=>Qc,isClassInstanceProperty:()=>ure,isClassLike:()=>di,isClassMemberModifier:()=>wV,isClassNamedEvaluationHelperBlock:()=>yI,isClassOrTypeElement:()=>h4,isClassStaticBlockDeclaration:()=>Rl,isClassThisAssignmentBlock:()=>BP,isCollapsedRange:()=>hSe,isColonToken:()=>nae,isCommaExpression:()=>Yk,isCommaListExpression:()=>hP,isCommaSequence:()=>AP,isCommaToken:()=>tae,isComment:()=>$7,isCommonJsExportPropertyAssignment:()=>B4,isCommonJsExportedExpression:()=>Zre,isCompoundAssignment:()=>WP,isComputedNonLiteralName:()=>AL,isComputedPropertyName:()=>Za,isConciseBody:()=>y4,isConditionalExpression:()=>jR,isConditionalTypeNode:()=>rI,isConstTypeReference:()=>Pg,isConstructSignatureDeclaration:()=>Bk,isConstructorDeclaration:()=>Ml,isConstructorTypeNode:()=>zR,isContextualKeyword:()=>s3,isContinueStatement:()=>sTe,isCustomPrologue:()=>DL,isDebuggerStatement:()=>cTe,isDeclaration:()=>Ju,isDeclarationBindingElement:()=>uL,isDeclarationFileName:()=>Su,isDeclarationName:()=>wg,isDeclarationNameOfEnumOrNamespace:()=>rU,isDeclarationReadonly:()=>O4,isDeclarationStatement:()=>Sre,isDeclarationWithTypeParameterChildren:()=>sj,isDeclarationWithTypeParameters:()=>aj,isDecorator:()=>Eu,isDecoratorTarget:()=>Jce,isDefaultClause:()=>EP,isDefaultImport:()=>NA,isDefaultModifier:()=>VW,isDefaultedExpandoInitializer:()=>die,isDeleteExpression:()=>pae,isDeleteTarget:()=>Rj,isDeprecatedDeclaration:()=>b5,isDestructuringAssignment:()=>Wv,isDiagnosticWithLocation:()=>_X,isDiskPathRoot:()=>pV,isDoStatement:()=>oTe,isDocumentRegistryEntry:()=>SO,isDotDotDotToken:()=>BW,isDottedName:()=>FC,isDynamicName:()=>c3,isESSymbolIdentifier:()=>aSe,isEffectiveExternalModule:()=>RA,isEffectiveModuleDeclaration:()=>Bre,isEffectiveStrictModeSourceFile:()=>rj,isElementAccessChain:()=>DV,isElementAccessExpression:()=>$s,isEmittedFileOfProgram:()=>zle,isEmptyArrayLiteral:()=>Uie,isEmptyBindingElement:()=>Une,isEmptyBindingPattern:()=>jne,isEmptyObjectLiteral:()=>Zj,isEmptyStatement:()=>cH,isEmptyStringLiteral:()=>_j,isEntityName:()=>Qd,isEntityNameExpression:()=>Bl,isEnumConst:()=>ME,isEnumDeclaration:()=>y0,isEnumMember:()=>i1,isEqualityOperatorKind:()=>d5,isEqualsGreaterThanToken:()=>rae,isExclamationToken:()=>zk,isExcludedFile:()=>tse,isExclusivelyTypeOnlyImportOrExport:()=>fJ,isExpandoPropertyDeclaration:()=>Y3,isExportAssignment:()=>kl,isExportDeclaration:()=>Yl,isExportModifier:()=>$A,isExportName:()=>nF,isExportNamespaceAsDefaultDeclaration:()=>M4,isExportOrDefaultModifier:()=>ew,isExportSpecifier:()=>Ku,isExportsIdentifier:()=>ES,isExportsOrModuleExportsOrAlias:()=>s1,isExpression:()=>yt,isExpressionNode:()=>Qh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>$ce,isExpressionOfOptionalChainRoot:()=>f4,isExpressionStatement:()=>Zc,isExpressionWithTypeArguments:()=>Vv,isExpressionWithTypeArgumentsInClassExtendsClause:()=>b3,isExternalModule:()=>sc,isExternalModuleAugmentation:()=>PE,isExternalModuleImportEqualsDeclaration:()=>c0,isExternalModuleIndicator:()=>mL,isExternalModuleNameRelative:()=>Xc,isExternalModuleReference:()=>Th,isExternalModuleSymbol:()=>lO,isExternalOrCommonJsModule:()=>Fp,isFileLevelReservedGeneratedIdentifier:()=>cL,isFileLevelUniqueName:()=>C4,isFileProbablyExternalModule:()=>rw,isFirstDeclarationOfSymbolParameter:()=>nX,isFixablePromiseHandler:()=>BX,isForInOrOfStatement:()=>Yx,isForInStatement:()=>KW,isForInitializer:()=>Sf,isForOfStatement:()=>Hk,isForStatement:()=>zS,isFunctionBlock:()=>kE,isFunctionBody:()=>GV,isFunctionDeclaration:()=>Tc,isFunctionExpression:()=>Os,isFunctionExpressionOrArrowFunction:()=>qE,isFunctionLike:()=>ea,isFunctionLikeDeclaration:()=>Bs,isFunctionLikeKind:()=>TA,isFunctionLikeOrClassStaticBlockDeclaration:()=>Xx,isFunctionOrConstructorTypeNode:()=>dre,isFunctionOrModuleBlock:()=>OV,isFunctionSymbol:()=>fie,isFunctionTypeNode:()=>bh,isFutureReservedKeyword:()=>rSe,isGeneratedIdentifier:()=>al,isGeneratedPrivateIdentifier:()=>dS,isGetAccessor:()=>My,isGetAccessorDeclaration:()=>tf,isGetOrSetAccessorDeclaration:()=>d4,isGlobalDeclaration:()=>HRe,isGlobalScopeAugmentation:()=>A_,isGrammarError:()=>wre,isHeritageClause:()=>nf,isHoistedFunction:()=>F4,isHoistedVariableStatement:()=>z4,isIdentifier:()=>Ve,isIdentifierANonContextualKeyword:()=>Mj,isIdentifierName:()=>yie,isIdentifierOrThisTypeNode:()=>Wae,isIdentifierPart:()=>e0,isIdentifierStart:()=>Jh,isIdentifierText:()=>Zp,isIdentifierTypePredicate:()=>nie,isIdentifierTypeReference:()=>Toe,isIfStatement:()=>FS,isIgnoredFileFromWildCardWatching:()=>Ow,isImplicitGlob:()=>fU,isImportAttribute:()=>hae,isImportAttributeName:()=>cre,isImportAttributes:()=>aI,isImportCall:()=>zp,isImportClause:()=>Eh,isImportDeclaration:()=>Mc,isImportEqualsDeclaration:()=>eu,isImportKeyword:()=>mP,isImportMeta:()=>oR,isImportOrExportSpecifier:()=>SA,isImportOrExportSpecifierName:()=>Tue,isImportSpecifier:()=>tp,isImportTypeAssertionContainer:()=>uTe,isImportTypeNode:()=>ag,isImportableFile:()=>RX,isInComment:()=>qv,isInCompoundLikeAssignment:()=>xj,isInExpressionContext:()=>X4,isInJSDoc:()=>kL,isInJSFile:()=>lr,isInJSXText:()=>iue,isInJsonFile:()=>$4,isInNonReferenceComment:()=>due,isInReferenceComment:()=>uue,isInRightSideOfInternalImportEqualsDeclaration:()=>F7,isInString:()=>SI,isInTemplateString:()=>OK,isInTopLevelContext:()=>H4,isInTypeQuery:()=>DS,isIncrementalCompilation:()=>sP,isIndexSignatureDeclaration:()=>XE,isIndexedAccessTypeNode:()=>WS,isInferTypeNode:()=>kS,isInfinityOrNaNString:()=>tP,isInitializedProperty:()=>Nw,isInitializedVariable:()=>dk,isInsideJsxElement:()=>X7,isInsideJsxElementOrAttribute:()=>rue,isInsideNodeModules:()=>yO,isInsideTemplateLiteral:()=>aO,isInstanceOfExpression:()=>E3,isInstantiatedModule:()=>Aq,isInterfaceDeclaration:()=>md,isInternalDeclaration:()=>HV,isInternalModuleImportEqualsDeclaration:()=>uR,isInternalName:()=>AH,isIntersectionTypeNode:()=>nI,isIntrinsicJsxName:()=>SR,isIterationStatement:()=>Py,isJSDoc:()=>Zm,isJSDocAllType:()=>Eae,isJSDocAugmentsTag:()=>uI,isJSDocAuthorTag:()=>_Te,isJSDocCallbackTag:()=>mH,isJSDocClassTag:()=>Tae,isJSDocCommentContainingNode:()=>S4,isJSDocConstructSignature:()=>_R,isJSDocDeprecatedTag:()=>yH,isJSDocEnumTag:()=>Jk,isJSDocFunctionType:()=>qR,isJSDocImplementsTag:()=>ZW,isJSDocIndexSignature:()=>Q4,isJSDocLikeText:()=>LH,isJSDocLink:()=>yae,isJSDocLinkCode:()=>bae,isJSDocLinkLike:()=>xA,isJSDocLinkPlain:()=>fTe,isJSDocMemberName:()=>b0,isJSDocNameReference:()=>SP,isJSDocNamepathType:()=>mTe,isJSDocNamespaceBody:()=>F1e,isJSDocNode:()=>$x,isJSDocNonNullableType:()=>XW,isJSDocNullableType:()=>HR,isJSDocOptionalParameter:()=>bk,isJSDocOptionalType:()=>fH,isJSDocOverloadTag:()=>JR,isJSDocOverrideTag:()=>$W,isJSDocParameterTag:()=>e_,isJSDocPrivateTag:()=>hH,isJSDocPropertyLikeTag:()=>uC,isJSDocPropertyTag:()=>Aae,isJSDocProtectedTag:()=>gH,isJSDocPublicTag:()=>_H,isJSDocReadonlyTag:()=>vH,isJSDocReturnTag:()=>QW,isJSDocSatisfiesExpression:()=>SU,isJSDocSatisfiesTag:()=>eF,isJSDocSeeTag:()=>hTe,isJSDocSignature:()=>E0,isJSDocTag:()=>Qx,isJSDocTemplateTag:()=>om,isJSDocThisTag:()=>bH,isJSDocThrowsTag:()=>vTe,isJSDocTypeAlias:()=>$f,isJSDocTypeAssertion:()=>XR,isJSDocTypeExpression:()=>o1,isJSDocTypeLiteral:()=>jS,isJSDocTypeTag:()=>TP,isJSDocTypedefTag:()=>US,isJSDocUnknownTag:()=>gTe,isJSDocUnknownType:()=>Sae,isJSDocVariadicType:()=>YW,isJSXTagName:()=>cR,isJsonEqual:()=>U3,isJsonSourceFile:()=>Yf,isJsxAttribute:()=>w_,isJsxAttributeLike:()=>b4,isJsxAttributeName:()=>Poe,isJsxAttributes:()=>n1,isJsxChild:()=>gL,isJsxClosingElement:()=>e1,isJsxClosingFragment:()=>gae,isJsxElement:()=>sg,isJsxExpression:()=>bP,isJsxFragment:()=>t1,isJsxNamespacedName:()=>Qm,isJsxOpeningElement:()=>k_,isJsxOpeningFragment:()=>lI,isJsxOpeningLikeElement:()=>ld,isJsxOpeningLikeElementTagName:()=>Kce,isJsxSelfClosingElement:()=>GS,isJsxSpreadAttribute:()=>cI,isJsxTagNameExpression:()=>_C,isJsxText:()=>KA,isJumpStatementTarget:()=>eO,isKeyword:()=>Bd,isKeywordOrPunctuation:()=>a3,isKnownSymbol:()=>tk,isLabelName:()=>RK,isLabelOfLabeledStatement:()=>xK,isLabeledStatement:()=>ZE,isLateVisibilityPaintedStatement:()=>k4,isLeftHandSideExpression:()=>Zd,isLeftHandSideOfAssignment:()=>_Se,isLet:()=>W4,isLineBreak:()=>Hu,isLiteralComputedPropertyDeclarationName:()=>$L,isLiteralExpression:()=>DE,isLiteralExpressionOfObject:()=>LV,isLiteralImportTypeNode:()=>Oy,isLiteralKind:()=>dC,isLiteralLikeAccess:()=>t3,isLiteralLikeElementAccess:()=>zL,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>G7,isLiteralTypeLikeExpression:()=>ATe,isLiteralTypeLiteral:()=>hre,isLiteralTypeNode:()=>Jy,isLocalName:()=>Gg,isLogicalOperator:()=>Gie,isLogicalOrCoalescingAssignmentExpression:()=>Xj,isLogicalOrCoalescingAssignmentOperator:()=>WC,isLogicalOrCoalescingBinaryExpression:()=>sk,isLogicalOrCoalescingBinaryOperator:()=>ak,isMappedTypeNode:()=>GR,isMemberName:()=>Kh,isMetaProperty:()=>_P,isMethodDeclaration:()=>Hl,isMethodOrAccessor:()=>AA,isMethodSignature:()=>yh,isMinusToken:()=>iH,isMissingDeclaration:()=>pTe,isMissingPackageJsonInfo:()=>vse,isModifier:()=>Aa,isModifierKind:()=>Pv,isModifierLike:()=>sl,isModuleAugmentationExternal:()=>tj,isModuleBlock:()=>L_,isModuleBody:()=>yre,isModuleDeclaration:()=>Xl,isModuleExportsAccessExpression:()=>Zh,isModuleIdentifier:()=>bj,isModuleName:()=>Bae,isModuleOrEnumDeclaration:()=>_L,isModuleReference:()=>Are,isModuleSpecifierLike:()=>i5,isModuleWithStringLiteralName:()=>L4,isNameOfFunctionDeclaration:()=>PK,isNameOfModuleDeclaration:()=>CK,isNamedClassElement:()=>L1e,isNamedDeclaration:()=>ad,isNamedEvaluation:()=>mp,isNamedEvaluationSource:()=>Lj,isNamedExportBindings:()=>CV,isNamedExports:()=>Nf,isNamedImportBindings:()=>VV,isNamedImports:()=>Bg,isNamedImportsOrExports:()=>D3,isNamedTupleMember:()=>BR,isNamespaceBody:()=>W1e,isNamespaceExport:()=>Sh,isNamespaceExportDeclaration:()=>qk,isNamespaceImport:()=>Yy,isNamespaceReexportDeclaration:()=>cie,isNewExpression:()=>$E,isNewExpressionTarget:()=>eM,isNoSubstitutionTemplateLiteral:()=>XA,isNode:()=>P1e,isNodeArray:()=>RE,isNodeArrayMultiLine:()=>Yie,isNodeDescendantOf:()=>WE,isNodeKind:()=>sL,isNodeLikeSystem:()=>eG,isNodeModulesDirectory:()=>Z6,isNodeWithPossibleHoistedDeclaration:()=>hie,isNonContextualKeyword:()=>Pj,isNonExportDefaultModifier:()=>xTe,isNonGlobalAmbientModule:()=>ej,isNonGlobalDeclaration:()=>Fue,isNonNullAccess:()=>Coe,isNonNullChain:()=>m4,isNonNullExpression:()=>oI,isNonStaticMethodOrAccessorWithPrivateName:()=>Qse,isNotEmittedOrPartiallyEmittedNode:()=>O1e,isNotEmittedStatement:()=>dH,isNullishCoalesce:()=>NV,isNumber:()=>Av,isNumericLiteral:()=>hp,isNumericLiteralName:()=>og,isObjectBindingElementWithoutPropertyName:()=>dO,isObjectBindingOrAssignmentElement:()=>pL,isObjectBindingOrAssignmentPattern:()=>WV,isObjectBindingPattern:()=>im,isObjectLiteralElement:()=>jV,isObjectLiteralElementLike:()=>Mg,isObjectLiteralExpression:()=>La,isObjectLiteralMethod:()=>Tm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>G4,isObjectTypeDeclaration:()=>FA,isOctalDigit:()=>r4,isOmittedExpression:()=>Gc,isOptionalChain:()=>qu,isOptionalChainRoot:()=>sC,isOptionalDeclaration:()=>rP,isOptionalJSDocPropertyLikeTag:()=>yk,isOptionalTypeNode:()=>jW,isOuterExpression:()=>iF,isOutermostOptionalChain:()=>lC,isOverrideModifier:()=>sae,isPackageJsonInfo:()=>xF,isPackedArrayLiteral:()=>bU,isParameter:()=>Ao,isParameterDeclaration:()=>zE,isParameterPropertyDeclaration:()=>pp,isParameterPropertyModifier:()=>pC,isParenthesizedExpression:()=>Gd,isParenthesizedTypeNode:()=>wS,isParseTreeNode:()=>aC,isPartOfTypeNode:()=>$h,isPartOfTypeQuery:()=>Y4,isPartiallyEmittedExpression:()=>JW,isPatternMatch:()=>R6,isPinnedComment:()=>P4,isPlainJsFile:()=>bL,isPlusToken:()=>rH,isPossiblyTypeArgumentPosition:()=>oO,isPostfixUnaryExpression:()=>sH,isPrefixUnaryExpression:()=>Xy,isPrivateIdentifier:()=>qi,isPrivateIdentifierClassElementDeclaration:()=>sd,isPrivateIdentifierPropertyAccessExpression:()=>Kx,isPrivateIdentifierSymbol:()=>Eie,isProgramBundleEmitBuildInfo:()=>tce,isProgramUptoDate:()=>bJ,isPrologueDirective:()=>Sm,isPropertyAccessChain:()=>p4,isPropertyAccessEntityNameExpression:()=>lk,isPropertyAccessExpression:()=>Fr,isPropertyAccessOrQualifiedName:()=>mre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>fre,isPropertyAssignment:()=>hc,isPropertyDeclaration:()=>qo,isPropertyName:()=>oc,isPropertyNameLiteral:()=>x_,isPropertySignature:()=>gp,isProtoSetter:()=>Sie,isPrototypeAccess:()=>zy,isPrototypePropertyAssignment:()=>VL,isPunctuation:()=>Cj,isPushOrUnshiftIdentifier:()=>kj,isQualifiedName:()=>Id,isQuestionDotToken:()=>GW,isQuestionOrExclamationToken:()=>Oae,isQuestionOrPlusOrMinusToken:()=>zae,isQuestionToken:()=>Hy,isRawSourceMap:()=>Kse,isReadonlyKeyword:()=>oae,isReadonlyKeywordOrPlusOrMinusToken:()=>Fae,isRecognizedTripleSlashComment:()=>YV,isReferenceFileLocation:()=>dD,isReferencedFile:()=>D0,isRegularExpressionLiteral:()=>tH,isRequireCall:()=>Td,isRequireVariableStatement:()=>vj,isRestParameter:()=>Xh,isRestTypeNode:()=>UW,isReturnStatement:()=>Im,isReturnStatementWithFixablePromiseHandler:()=>C5,isRightSideOfAccessExpression:()=>Qj,isRightSideOfInstanceofExpression:()=>jie,isRightSideOfPropertyAccess:()=>vD,isRightSideOfQualifiedName:()=>Yce,isRightSideOfQualifiedNameOrPropertyAccess:()=>zC,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Vie,isRootedDiskPath:()=>dp,isSameEntityName:()=>dR,isSatisfiesExpression:()=>lH,isScopeMarker:()=>gre,isSemicolonClassElement:()=>fae,isSetAccessor:()=>Mv,isSetAccessorDeclaration:()=>vp,isShebangTrivia:()=>gV,isShiftOperatorOrHigher:()=>CH,isShorthandAmbientModuleSymbol:()=>vC,isShorthandPropertyAssignment:()=>np,isSignedNumericLiteral:()=>l3,isSimpleCopiableExpression:()=>c1,isSimpleInlineableExpression:()=>O_,isSimpleParameter:()=>rle,isSimpleParameterList:()=>Cw,isSingleOrDoubleQuote:()=>wL,isSourceFile:()=>$i,isSourceFileFromLibrary:()=>xD,isSourceFileJS:()=>cd,isSourceFileNotJS:()=>X1e,isSourceFileNotJson:()=>gj,isSourceMapping:()=>Xse,isSpecialPropertyDeclaration:()=>pie,isSpreadAssignment:()=>jv,isSpreadElement:()=>$m,isStatement:()=>Hi,isStatementButNotDeclaration:()=>hL,isStatementOrBlock:()=>Tre,isStatementWithLocals:()=>kre,isStatic:()=>aa,isStaticModifier:()=>QA,isString:()=>Mo,isStringAKeyword:()=>iSe,isStringANonContextualKeyword:()=>LA,isStringAndEmptyAnonymousObjectIntersection:()=>cue,isStringDoubleQuoted:()=>e3,isStringLiteral:()=>Na,isStringLiteralLike:()=>ls,isStringLiteralOrJsxExpression:()=>Ire,isStringLiteralOrTemplate:()=>Nue,isStringOrNumericLiteralLike:()=>ef,isStringOrRegularExpressionOrTemplateLiteral:()=>zK,isStringTextContainingNode:()=>kV,isSuperCall:()=>yS,isSuperKeyword:()=>fP,isSuperOrSuperProperty:()=>K1e,isSuperProperty:()=>zd,isSupportedSourceFileName:()=>yoe,isSwitchStatement:()=>vP,isSyntaxList:()=>KR,isSyntheticExpression:()=>iTe,isSyntheticReference:()=>sI,isTagName:()=>DK,isTaggedTemplateExpression:()=>QE,isTaggedTemplateTag:()=>qce,isTemplateExpression:()=>HW,isTemplateHead:()=>YA,isTemplateLiteral:()=>IA,isTemplateLiteralKind:()=>Ny,isTemplateLiteralToken:()=>sre,isTemplateLiteralTypeNode:()=>uae,isTemplateLiteralTypeSpan:()=>aH,isTemplateMiddle:()=>nH,isTemplateMiddleOrTemplateTail:()=>_4,isTemplateSpan:()=>gP,isTemplateTail:()=>zW,isTextWhiteSpaceLike:()=>_ue,isThis:()=>yD,isThisContainerOrFunctionBlock:()=>aie,isThisIdentifier:()=>VE,isThisInTypeQuery:()=>kA,isThisInitializedDeclaration:()=>q4,isThisInitializedObjectBindingExpression:()=>lie,isThisProperty:()=>PL,isThisTypeNode:()=>jk,isThisTypeParameter:()=>nP,isThisTypePredicate:()=>J1e,isThrowStatement:()=>uH,isToken:()=>EA,isTokenKind:()=>MV,isTraceEnabled:()=>Vg,isTransientSymbol:()=>fh,isTrivia:()=>yR,isTryStatement:()=>BS,isTupleTypeNode:()=>tI,isTypeAlias:()=>HL,isTypeAliasDeclaration:()=>xm,isTypeAssertionExpression:()=>dae,isTypeDeclaration:()=>kR,isTypeElement:()=>fS,isTypeKeyword:()=>rM,isTypeKeywordToken:()=>HK,isTypeKeywordTokenOrIdentifier:()=>e5,isTypeLiteralNode:()=>yp,isTypeNode:()=>ji,isTypeNodeKind:()=>aU,isTypeOfExpression:()=>VR,isTypeOnlyExportDeclaration:()=>lre,isTypeOnlyImportDeclaration:()=>lL,isTypeOnlyImportOrExportDeclaration:()=>s0,isTypeOperatorNode:()=>OS,isTypeParameterDeclaration:()=>hl,isTypePredicateNode:()=>Gk,isTypeQueryNode:()=>eI,isTypeReferenceNode:()=>Df,isTypeReferenceType:()=>A4,isTypeUsableAsPropertyName:()=>tm,isUMDExportSymbol:()=>R3,isUnaryExpression:()=>BV,isUnaryExpressionWithWrite:()=>_re,isUnicodeIdentifierStart:()=>t4,isUnionTypeNode:()=>qy,isUnparsedNode:()=>PV,isUnparsedPrepend:()=>vae,isUnparsedSource:()=>VS,isUnparsedTextLike:()=>are,isUrl:()=>Rne,isValidBigIntString:()=>H3,isValidESSymbolDeclaration:()=>eie,isValidTypeOnlyAliasUseSite:()=>h0,isValueSignatureDeclaration:()=>gie,isVarAwaitUsing:()=>xL,isVarConst:()=>iR,isVarUsing:()=>RL,isVariableDeclaration:()=>Oi,isVariableDeclarationInVariableStatement:()=>bC,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>wE,isVariableDeclarationInitializedToRequire:()=>Z4,isVariableDeclarationList:()=>Vc,isVariableLike:()=>aR,isVariableLikeOrAccessor:()=>Qre,isVariableStatement:()=>Ll,isVoidExpression:()=>iI,isWatchSet:()=>vSe,isWhileStatement:()=>aTe,isWhiteSpaceLike:()=>Cg,isWhiteSpaceSingleLine:()=>E_,isWithStatement:()=>mae,isWriteAccess:()=>WA,isWriteOnlyAccess:()=>x3,isYieldExpression:()=>qW,jsxModeNeedsExplicitImport:()=>bX,keywordPart:()=>Ep,last:()=>Xa,lastOrUndefined:()=>el,length:()=>Ne,libMap:()=>hF,libs:()=>pw,lineBreakPart:()=>AD,linkNamePart:()=>Eue,linkPart:()=>iX,linkTextPart:()=>s5,listFiles:()=>zJ,loadModuleFromGlobalCache:()=>Dse,loadWithModeAwareCache:()=>Bw,makeIdentifierFromModuleName:()=>zre,makeImport:()=>Kv,makeImportIfNecessary:()=>mue,makeStringLiteral:()=>AI,mangleScopedPackageName:()=>aD,map:()=>Wt,mapAllOrFail:()=>Jb,mapDefined:()=>eo,mapDefinedEntries:()=>y6,mapDefinedIterator:()=>Kb,mapEntries:()=>Kte,mapIterator:()=>Qa,mapOneOrMany:()=>gX,mapToDisplayParts:()=>nb,matchFiles:()=>mU,matchPatternOrExact:()=>_U,matchedText:()=>lne,matchesExclude:()=>_F,maybeBind:()=>ia,maybeSetLocalizedDiagnosticMessages:()=>soe,memoize:()=>Sd,memoizeCached:()=>tne,memoizeOne:()=>ch,memoizeWeak:()=>IEe,metadataHelper:()=>pW,min:()=>XB,minAndMax:()=>Eoe,missingFileModifiedTime:()=>wp,modifierToFlag:()=>OA,modifiersToFlags:()=>N_,moduleOptionDeclaration:()=>YH,moduleResolutionIsEqualTo:()=>Mre,moduleResolutionNameAndModeGetter:()=>m7,moduleResolutionOptionDeclarations:()=>gF,moduleResolutionSupportsPackageJsonExportsAndImports:()=>BA,moduleResolutionUsesNodeModules:()=>t5,moduleSpecifiers:()=>l1,moveEmitHelpers:()=>Koe,moveRangeEnd:()=>A3,moveRangePastDecorators:()=>Og,moveRangePastModifiers:()=>C_,moveRangePos:()=>m0,moveSyntheticComments:()=>Hoe,mutateMap:()=>UC,mutateMapSkippingNewValues:()=>rg,needsParentheses:()=>c5,needsScopeMarker:()=>v4,newCaseClauseTracker:()=>T5,newPrivateEnvironment:()=>tle,noEmitNotification:()=>Pw,noEmitSubstitution:()=>jP,noTransformers:()=>Yq,noTruncationMaximumTruncationLength:()=>Z3,nodeCanBeDecorated:()=>K4,nodeHasName:()=>rL,nodeIsDecorated:()=>lR,nodeIsMissing:()=>Fl,nodeIsPresent:()=>Kf,nodeIsSynthesized:()=>Ys,nodeModuleNameResolver:()=>Sse,nodeModulesPathPart:()=>Ih,nodeNextJsonConfigResolver:()=>Tse,nodeOrChildIsDecorated:()=>LL,nodeOverlapsWithStartEnd:()=>V7,nodePosToString:()=>B1e,nodeSeenTracker:()=>TI,nodeStartsNewLexicalEnvironment:()=>wj,nodeToDisplayParts:()=>zRe,noop:()=>Ya,noopFileWatcher:()=>hD,normalizePath:()=>ha,normalizeSlashes:()=>Lu,not:()=>N6,notImplemented:()=>Jo,notImplementedResolver:()=>r7,nullNodeConverters:()=>VU,nullParenthesizerRules:()=>GU,nullTransformationContext:()=>UP,objectAllocator:()=>su,operatorPart:()=>aM,optionDeclarations:()=>lg,optionMapToObject:()=>pF,optionsAffectingProgramStructure:()=>tq,optionsForBuild:()=>rq,optionsForWatch:()=>tD,optionsHaveChanges:()=>Zx,optionsHaveModuleResolutionChanges:()=>Nre,or:()=>Jm,orderedRemoveItem:()=>wx,orderedRemoveItemAt:()=>Sy,outFile:()=>Ps,packageIdToPackageName:()=>D4,packageIdToString:()=>ky,paramHelper:()=>fW,parameterIsThisKeyword:()=>GE,parameterNamePart:()=>gue,parseBaseNodeFactory:()=>FH,parseBigInt:()=>Soe,parseBuildCommand:()=>iAe,parseCommandLine:()=>nAe,parseCommandLineWorker:()=>GH,parseConfigFileTextToJson:()=>jH,parseConfigFileWithSystem:()=>zxe,parseConfigHostFromCompilerHostLike:()=>f7,parseCustomTypeOption:()=>dF,parseIsolatedEntityName:()=>pI,parseIsolatedJSDocComment:()=>Jae,parseJSDocTypeExpressionForTests:()=>jTe,parseJsonConfigFileContent:()=>vAe,parseJsonSourceFileConfigFileContent:()=>cw,parseJsonText:()=>ow,parseListTypeOption:()=>Xae,parseNodeFactory:()=>Ah,parseNodeModuleFromPath:()=>yw,parsePackageName:()=>Sw,parsePseudoBigInt:()=>$C,parseValidBigInt:()=>yU,patchWriteFileEnsuringDirectory:()=>Ine,pathContainsNodeModules:()=>x0,pathIsAbsolute:()=>ZN,pathIsBareSpecifier:()=>fV,pathIsRelative:()=>Op,patternText:()=>sne,perfLogger:()=>id,performIncrementalCompilation:()=>jxe,performance:()=>yne,plainJSErrors:()=>_7,positionBelongsToNode:()=>LK,positionIsASICandidate:()=>f5,positionIsSynthesized:()=>Ym,positionsAreOnSameLine:()=>If,preProcessFile:()=>pDe,probablyUsesSemicolons:()=>gO,processCommentPragmas:()=>OH,processPragmasIntoFields:()=>WH,processTaggedTemplateExpression:()=>jq,programContainsEsModules:()=>fue,programContainsModules:()=>pue,projectReferenceIsEqualTo:()=>JV,propKeyHelper:()=>xW,propertyNamePart:()=>vue,pseudoBigIntToString:()=>HE,punctuationPart:()=>$u,pushIfUnique:()=>Ef,quote:()=>cM,quotePreferenceFromString:()=>XK,rangeContainsPosition:()=>tO,rangeContainsPositionExclusive:()=>nO,rangeContainsRange:()=>sf,rangeContainsRangeExclusive:()=>Qce,rangeContainsStartEnd:()=>rO,rangeEndIsOnSameLineAsRangeStart:()=>uk,rangeEndPositionsAreOnSameLine:()=>Kie,rangeEquals:()=>VB,rangeIsOnSingleLine:()=>CS,rangeOfNode:()=>gU,rangeOfTypeParameters:()=>vU,rangeOverlapsWithStartEnd:()=>tM,rangeStartIsOnSameLineAsRangeEnd:()=>Xie,rangeStartPositionsAreOnSameLine:()=>I3,readBuilderProgram:()=>R7,readConfigFile:()=>sw,readHelper:()=>AW,readJson:()=>BC,readJsonConfigFile:()=>Qae,readJsonOrUndefined:()=>eU,reduceEachLeadingCommentRange:()=>Lne,reduceEachTrailingCommentRange:()=>kne,reduceLeft:()=>rd,reduceLeftIterator:()=>Pr,reducePathComponents:()=>cS,refactor:()=>RI,regExpEscape:()=>ISe,relativeComplement:()=>Xte,removeAllComments:()=>Pk,removeEmitHelper:()=>tTe,removeExtension:()=>hk,removeFileExtension:()=>Ad,removeIgnoredPath:()=>v7,removeMinAndVersionNumbers:()=>YB,removeOptionality:()=>oue,removePrefix:()=>XN,removeSuffix:()=>kx,removeTrailingDirectorySeparator:()=>Qb,repeatString:()=>cO,replaceElement:()=>HB,replaceFirstStar:()=>jA,resolutionExtensionIsTSOrJson:()=>KC,resolveConfigFileProjectName:()=>YJ,resolveJSModule:()=>bse,resolveLibrary:()=>DF,resolveModuleName:()=>iD,resolveModuleNameFromCache:()=>tIe,resolvePackageNameToPackageJson:()=>aq,resolvePath:()=>Iy,resolveProjectReferencePath:()=>pD,resolveTripleslashReference:()=>s7,resolveTypeReferenceDirective:()=>hse,resolvingEmptyArray:()=>Q3,restHelper:()=>bW,returnFalse:()=>qm,returnNoopFileWatcher:()=>gD,returnTrue:()=>Iv,returnUndefined:()=>Yb,returnsPromise:()=>zX,runInitializersHelper:()=>_W,sameFlatMap:()=>Cx,sameMap:()=>Zo,sameMapping:()=>VIe,scanShebangTrivia:()=>vV,scanTokenAtPosition:()=>Xre,scanner:()=>Qu,screenStartingMessageCodes:()=>x7,semanticDiagnosticsOptionDeclarations:()=>QH,serializeCompilerOptions:()=>fF,server:()=>cOe,servicesVersion:()=>ape,setCommentRange:()=>ac,setConfigFileInOptions:()=>KH,setConstantValue:()=>Joe,setEachParent:()=>LR,setEmitFlags:()=>pr,setFunctionNameHelper:()=>RW,setGetSourceFileAsHashVersioned:()=>I7,setIdentifierAutoGenerate:()=>kk,setIdentifierGeneratedImportReference:()=>$oe,setIdentifierTypeArguments:()=>Gv,setInternalEmitFlags:()=>Mk,setLocalizedDiagnosticMessages:()=>aoe,setModuleDefaultHelper:()=>CW,setNodeFlags:()=>Ioe,setObjectAllocator:()=>ooe,setOriginalNode:()=>Nr,setParent:()=>Ha,setParentRecursive:()=>Gy,setPrivateIdentifier:()=>KS,setSnippetElement:()=>YU,setSourceMapRange:()=>Da,setStackTraceLimit:()=>qEe,setStartsOnNewLine:()=>lW,setSyntheticLeadingComments:()=>v0,setSyntheticTrailingComments:()=>HA,setSys:()=>$Ee,setSysLog:()=>Tne,setTextRange:()=>dt,setTextRangeEnd:()=>MR,setTextRangePos:()=>QC,setTextRangePosEnd:()=>gh,setTextRangePosWidth:()=>ZC,setTokenSourceMapRange:()=>Uoe,setTypeNode:()=>Xoe,setUILocale:()=>ine,setValueDeclaration:()=>jL,shouldAllowImportingTsExtension:()=>sD,shouldPreserveConstEnums:()=>KE,shouldUseUriStyleNodeCoreModules:()=>E5,showModuleSpecifier:()=>eoe,signatureHasLiteralTypes:()=>Iq,signatureHasRestParameter:()=>Yu,signatureToDisplayParts:()=>oX,single:()=>UB,singleElementArray:()=>hA,singleIterator:()=>Jte,singleOrMany:()=>sh,singleOrUndefined:()=>ah,skipAlias:()=>bu,skipAssertions:()=>ETe,skipConstraint:()=>qK,skipOuterExpressions:()=>$l,skipParentheses:()=>hs,skipPartiallyEmittedExpressions:()=>bm,skipTrivia:()=>Pa,skipTypeChecking:()=>YC,skipTypeParentheses:()=>YL,skipWhile:()=>une,sliceAfter:()=>hU,some:()=>bt,sort:()=>iS,sortAndDeduplicate:()=>HN,sortAndDeduplicateDiagnostics:()=>Ux,sourceFileAffectingCompilerOptions:()=>vF,sourceFileMayBeEmitted:()=>xS,sourceMapCommentRegExp:()=>GF,sourceMapCommentRegExpDontCareLineStart:()=>Lq,spacePart:()=>wl,spanMap:()=>FB,spreadArrayHelper:()=>IW,stableSort:()=>Sv,startEndContainsRange:()=>MK,startEndOverlapsWithStartEnd:()=>j7,startOnNewLine:()=>Xu,startTracing:()=>bne,startsWith:()=>uo,startsWithDirectory:()=>_V,startsWithUnderscore:()=>yX,startsWithUseStrict:()=>Cae,stringContainsAt:()=>Wue,stringToToken:()=>IE,stripQuotes:()=>Zf,supportedDeclarationExtensions:()=>Ik,supportedJSExtensions:()=>FU,supportedJSExtensionsFlat:()=>OR,supportedLocaleDirectories:()=>qV,supportedTSExtensions:()=>wR,supportedTSExtensionsFlat:()=>WU,supportedTSImplementationExtensions:()=>xk,suppressLeadingAndTrailingTrivia:()=>Sp,suppressLeadingTrivia:()=>cX,suppressTrailingTrivia:()=>xue,symbolEscapedNameNoDefault:()=>r5,symbolName:()=>El,symbolNameNoDefault:()=>n5,symbolPart:()=>hue,symbolToDisplayParts:()=>sM,syntaxMayBeASICandidate:()=>IX,syntaxRequiresTrailingSemicolonOrASI:()=>p5,sys:()=>gu,sysLog:()=>B2,tagNamesAreEquivalent:()=>T0,takeWhile:()=>P6,targetOptionDeclaration:()=>mw,templateObjectHelper:()=>TW,testFormatSettings:()=>Hce,textChangeRangeIsUnchanged:()=>Gne,textChangeRangeNewSpan:()=>oC,textChanges:()=>_r,textOrKeywordPart:()=>rX,textPart:()=>cf,textRangeContainsPositionInclusive:()=>eL,textSpanContainsPosition:()=>EV,textSpanContainsTextSpan:()=>Wne,textSpanEnd:()=>Kl,textSpanIntersection:()=>Bne,textSpanIntersectsWith:()=>a4,textSpanIntersectsWithPosition:()=>zne,textSpanIntersectsWithTextSpan:()=>v1e,textSpanIsEmpty:()=>One,textSpanOverlap:()=>Fne,textSpanOverlapsWith:()=>g1e,textSpansEqual:()=>TD,textToKeywordObj:()=>Q2,timestamp:()=>Xs,toArray:()=>mA,toBuilderFileEmit:()=>ice,toBuilderStateFileInfoForMultiEmit:()=>rce,toEditorSettings:()=>OO,toFileNameLowerCase:()=>lh,toLowerCase:()=>ene,toPath:()=>il,toProgramEmitPending:()=>oce,tokenIsIdentifierOrKeyword:()=>od,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Pne,tokenToString:()=>pa,trace:()=>bo,tracing:()=>sr,tracingEnabled:()=>O2,transform:()=>uCe,transformClassFields:()=>ple,transformDeclarations:()=>Kq,transformECMAScriptModule:()=>Jq,transformES2015:()=>Rle,transformES2016:()=>xle,transformES2017:()=>hle,transformES2018:()=>gle,transformES2019:()=>vle,transformES2020:()=>yle,transformES2021:()=>ble,transformES5:()=>Dle,transformESDecorators:()=>_le,transformESNext:()=>Ele,transformGenerators:()=>Nle,transformJsx:()=>Ile,transformLegacyDecorators:()=>mle,transformModule:()=>qq,transformNamedEvaluation:()=>bp,transformNodeModule:()=>Ple,transformNodes:()=>Mw,transformSystemModule:()=>Cle,transformTypeScript:()=>dle,transpile:()=>bDe,transpileModule:()=>nde,transpileOptionValueCompilerOptions:()=>nq,tryAddToSet:()=>Xb,tryAndIgnoreErrors:()=>h5,tryCast:()=>ri,tryDirectoryExists:()=>_5,tryExtractTSExtension:()=>S3,tryFileExists:()=>vO,tryGetClassExtendingExpressionWithTypeArguments:()=>Yj,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>$j,tryGetDirectories:()=>m5,tryGetExtensionFromPath:()=>Fg,tryGetImportFromModuleSpecifier:()=>UL,tryGetJSDocSatisfiesTypeNode:()=>X3,tryGetModuleNameFromFile:()=>Qk,tryGetModuleSpecifierFromDeclaration:()=>pR,tryGetNativePerformanceHooks:()=>hne,tryGetPropertyAccessOrIdentifierToString:()=>ck,tryGetPropertyNameOfBindingOrAssignmentElement:()=>aF,tryGetSourceMappingURL:()=>Jse,tryGetTextOfPropertyName:()=>yC,tryIOAndConsumeErrors:()=>g5,tryParseJson:()=>T3,tryParsePattern:()=>PR,tryParsePatterns:()=>V3,tryParseRawSourceMap:()=>Pq,tryReadDirectory:()=>pX,tryReadFile:()=>DP,tryRemoveDirectoryPrefix:()=>pU,tryRemoveExtension:()=>boe,tryRemovePrefix:()=>ZB,tryRemoveSuffix:()=>ane,typeAcquisitionDeclarations:()=>_w,typeAliasNamePart:()=>yue,typeDirectiveIsEqualTo:()=>Lre,typeKeywords:()=>A5,typeParameterNamePart:()=>bue,typeToDisplayParts:()=>fO,unchangedPollThresholds:()=>G2,unchangedTextChangeRange:()=>vL,unescapeLeadingUnderscores:()=>Vi,unmangleScopedPackageName:()=>Aw,unorderedRemoveItem:()=>_A,unorderedRemoveItemAt:()=>$B,unreachableCodeIsError:()=>coe,unusedLabelIsError:()=>uoe,unwrapInnermostStatementOfLabel:()=>fj,updateErrorForNoInputFiles:()=>mF,updateLanguageServiceSourceFile:()=>SY,updateMissingFilePathsWatch:()=>iJ,updateResolutionField:()=>nD,updateSharedExtendedConfigFileWatcher:()=>o7,updateSourceFile:()=>kH,updateWatchingWildcardDirectories:()=>ww,usesExtensionsOnImports:()=>goe,usingSingleLineStringWriter:()=>hC,utf16EncodeAsString:()=>jx,validateLocaleAndSetLanguage:()=>b1e,valuesHelper:()=>DW,version:()=>Re,versionMajorMinor:()=>_e,visitArray:()=>Rw,visitCommaListElements:()=>Dw,visitEachChild:()=>xn,visitFunctionBody:()=>af,visitIterationBody:()=>xd,visitLexicalEnvironment:()=>Nq,visitNode:()=>nt,visitNodes:()=>jn,visitParameterList:()=>Dl,walkUpBindingElementsAndPatterns:()=>Hx,walkUpLexicalEnvironments:()=>ele,walkUpOuterExpressions:()=>Pae,walkUpParenthesizedExpressions:()=>kv,walkUpParenthesizedTypes:()=>XL,walkUpParenthesizedTypesAndGetParentAndChild:()=>vie,whitespaceOrMapCommentRegExp:()=>VF,writeCommentRange:()=>IR,writeFile:()=>LC,writeFileEnsuringDirectories:()=>Hj,zipWith:()=>gi});var ob=I({"src/server/_namespaces/ts.ts"(){ra(),Xw(),si(),zQ(),cT()}}),dOe={};ee(dOe,{ActionInvalidate:()=>Jw,ActionPackageInstalled:()=>Kw,ActionSet:()=>qw,ActionWatchTypingLocations:()=>ZP,Arguments:()=>rK,AutoImportProviderProject:()=>ZQ,AuxiliaryProject:()=>$Q,CharRangeSection:()=>pZ,CloseFileWatcherEvent:()=>qz,CommandNames:()=>Lhe,ConfigFileDiagEvent:()=>Gz,ConfiguredProject:()=>eZ,CreateDirectoryWatcherEvent:()=>Hz,CreateFileWatcherEvent:()=>Uz,Errors:()=>Zv,EventBeginInstallTypes:()=>L7,EventEndInstallTypes:()=>k7,EventInitializationFailed:()=>nK,EventTypesRegistry:()=>M7,ExternalProject:()=>kz,GcTimer:()=>UQ,InferredProject:()=>YQ,LargeFileReferencedEvent:()=>Bz,LineIndex:()=>RM,LineLeaf:()=>_8,LineNode:()=>FI,LogLevel:()=>BQ,Msg:()=>GQ,OpenFileInfoTelemetryEvent:()=>iZ,Project:()=>lT,ProjectInfoTelemetryEvent:()=>jz,ProjectKind:()=>IM,ProjectLanguageServiceStateEvent:()=>Vz,ProjectLoadingFinishEvent:()=>zz,ProjectLoadingStartEvent:()=>Fz,ProjectReferenceProjectLoadKind:()=>sZ,ProjectService:()=>lZ,ProjectsUpdatedInBackgroundEvent:()=>p8,ScriptInfo:()=>JQ,ScriptVersionCache:()=>Yz,Session:()=>whe,TextStorage:()=>qQ,ThrottledOperations:()=>jQ,TypingsCache:()=>KQ,TypingsInstallerAdapter:()=>Fhe,allFilesAreJsOrDts:()=>dhe,allRootFilesAreJsOrDts:()=>uhe,asNormalizedPath:()=>Fwe,convertCompilerOptions:()=>wz,convertFormatOptions:()=>UD,convertScriptKindName:()=>nZ,convertTypeAcquisition:()=>mhe,convertUserPreferences:()=>_he,convertWatchOptions:()=>d8,countEachFileTypes:()=>c8,createInstallTypingsRequest:()=>j_e,createModuleSpecifierCache:()=>Ihe,createNormalizedPathMap:()=>zwe,createPackageJsonCache:()=>xhe,createSortedArray:()=>K_e,emptyArray:()=>gc,findArgument:()=>xRe,forEachResolvedProjectReferenceProject:()=>HD,formatDiagnosticToProtocol:()=>m8,formatMessage:()=>Rhe,getBaseConfigFileName:()=>VQ,getLocationInNewDocument:()=>Phe,hasArgument:()=>IRe,hasNoTypeScriptSource:()=>phe,indent:()=>QP,isBackgroundProject:()=>u8,isConfigFile:()=>Ehe,isConfiguredProject:()=>w0,isDynamicFileName:()=>l8,isExternalProject:()=>XQ,isInferredProject:()=>jD,isInferredProjectName:()=>U_e,makeAutoImportProviderProjectName:()=>q_e,makeAuxiliaryProjectName:()=>J_e,makeInferredProjectName:()=>H_e,maxFileSize:()=>Wz,maxProgramSizeForNonTsFiles:()=>Oz,normalizedPathToPath:()=>s8,nowString:()=>RRe,nullCancellationToken:()=>Mhe,nullTypingsInstaller:()=>Lz,projectContainsInfoDirectly:()=>OI,protocol:()=>che,removeSorted:()=>Bwe,stringifyIndented:()=>N0,toEvent:()=>Dhe,toNormalizedPath:()=>fl,tryConvertScriptKindName:()=>tZ,typingsInstaller:()=>G_e,updateProjectIfDirty:()=>Vp});var Ast=I({"src/typescript/_namespaces/ts.server.ts"(){w7(),cT()}}),pOe={};ee(pOe,{ANONYMOUS:()=>I5,AccessFlags:()=>PG,AssertionLevel:()=>nG,AssignmentDeclarationKind:()=>BG,AssignmentKind:()=>DU,Associativity:()=>CU,BreakpointResolver:()=>NY,BuilderFileEmit:()=>LJ,BuilderProgramKind:()=>kJ,BuilderState:()=>Nm,BundleFileSectionKind:()=>iV,CallHierarchy:()=>DI,CharacterCodes:()=>$G,CheckFlags:()=>xG,CheckMode:()=>FF,ClassificationType:()=>SK,ClassificationTypeNames:()=>EK,CommentDirectiveType:()=>dG,Comparison:()=>Ge,CompletionInfoFlags:()=>mK,CompletionTriggerKind:()=>cK,Completions:()=>LI,ContainerFlags:()=>Sq,ContextFlags:()=>gG,Debug:()=>N,DiagnosticCategory:()=>F2,Diagnostics:()=>f,DocumentHighlights:()=>D5,ElementFlags:()=>CG,EmitFlags:()=>K6,EmitHint:()=>tV,EmitOnly:()=>fG,EndOfLineState:()=>gK,EnumKind:()=>IG,ExitStatus:()=>mG,ExportKind:()=>CX,Extension:()=>QG,ExternalEmitHelpers:()=>eV,FileIncludeKind:()=>z6,FilePreprocessingDiagnosticsKind:()=>pG,FileSystemEntryKind:()=>uV,FileWatcherEventKind:()=>cV,FindAllReferences:()=>Ws,FlattenLevel:()=>Bq,FlowFlags:()=>W2,ForegroundColorEscapeSequences:()=>IJ,FunctionFlags:()=>NU,GeneratedIdentifierFlags:()=>F6,GetLiteralTextFlags:()=>IU,GoToDefinition:()=>FD,HighlightSpanKind:()=>dK,IdentifierNameMap:()=>gI,IdentifierNameMultiMap:()=>zq,ImportKind:()=>NX,ImportsNotUsedAsValues:()=>qG,IndentStyle:()=>pK,IndexFlags:()=>MG,IndexKind:()=>wG,InferenceFlags:()=>FG,InferencePriority:()=>WG,InlayHintKind:()=>uK,InlayHints:()=>EQ,InternalEmitFlags:()=>ZG,InternalSymbolName:()=>RG,InvalidatedProjectKind:()=>tK,JSDocParsingMode:()=>sV,JsDoc:()=>k0,JsTyping:()=>z_,JsxEmit:()=>HG,JsxFlags:()=>cG,JsxReferenceKind:()=>LG,LanguageServiceMode:()=>aK,LanguageVariant:()=>XG,LexicalEnvironmentFlags:()=>rV,ListFormat:()=>oV,LogLevel:()=>iG,MemberOverrideStatus:()=>_G,ModifierFlags:()=>O6,ModuleDetectionKind:()=>GG,ModuleInstanceState:()=>Eq,ModuleKind:()=>$N,ModuleResolutionKind:()=>Bx,ModuleSpecifierEnding:()=>zU,NavigateTo:()=>ode,NavigationBar:()=>_de,NewLineKind:()=>JG,NodeBuilderFlags:()=>vG,NodeCheckFlags:()=>DG,NodeFactoryFlags:()=>JU,NodeFlags:()=>w6,NodeResolutionFeatures:()=>vq,ObjectFlags:()=>j6,OperationCanceledException:()=>zx,OperatorPrecedence:()=>PU,OrganizeImports:()=>Cm,OrganizeImportsMode:()=>lK,OuterExpressionKinds:()=>nV,OutliningElementsCollector:()=>IQ,OutliningSpanKind:()=>_K,OutputFileType:()=>hK,PackageJsonAutoImportPreference:()=>oK,PackageJsonDependencyGroup:()=>iK,PatternMatchKind:()=>N5,PollingInterval:()=>X6,PollingWatchKind:()=>UG,PragmaKindFlags:()=>aV,PrivateIdentifierKind:()=>eH,ProcessLevel:()=>Uq,ProgramUpdateLevel:()=>aJ,QuotePreference:()=>TX,RelationComparisonResult:()=>W6,Rename:()=>xz,ScriptElementKind:()=>yK,ScriptElementKindModifier:()=>bK,ScriptKind:()=>H6,ScriptSnapshot:()=>W7,ScriptTarget:()=>KG,SemanticClassificationFormat:()=>sK,SemanticMeaning:()=>SX,SemicolonPreference:()=>fK,SignatureCheckMode:()=>zF,SignatureFlags:()=>U6,SignatureHelp:()=>ZO,SignatureKind:()=>kG,SmartSelectionRange:()=>DQ,SnippetKind:()=>J6,SortKind:()=>tG,StructureIsReused:()=>B6,SymbolAccessibility:()=>EG,SymbolDisplay:()=>Qv,SymbolDisplayPartKind:()=>Yw,SymbolFlags:()=>G6,SymbolFormatFlags:()=>bG,SyntaxKind:()=>k6,SyntheticSymbolKind:()=>SG,Ternary:()=>zG,ThrottledCancellationToken:()=>DY,TokenClass:()=>vK,TokenFlags:()=>uG,TransformFlags:()=>q6,TypeFacts:()=>WF,TypeFlags:()=>V6,TypeFormatFlags:()=>yG,TypeMapKind:()=>OG,TypePredicateKind:()=>TG,TypeReferenceSerializationKind:()=>AG,UnionReduction:()=>hG,UpToDateStatusType:()=>$J,VarianceFlags:()=>NG,Version:()=>hm,VersionRange:()=>k2,WatchDirectoryFlags:()=>YG,WatchDirectoryKind:()=>jG,WatchFileKind:()=>VG,WatchLogLevel:()=>sJ,WatchType:()=>Lc,accessPrivateIdentifier:()=>nle,addDisposableResourceHelper:()=>OW,addEmitFlags:()=>P_,addEmitHelper:()=>qA,addEmitHelpers:()=>zg,addInternalEmitFlags:()=>UA,addNodeFactoryPatcher:()=>KSe,addObjectAllocatorPatcher:()=>ioe,addRange:()=>qr,addRelatedInfo:()=>Ma,addSyntheticLeadingComment:()=>uP,addSyntheticTrailingComment:()=>cW,addToSeen:()=>Am,advancedAsyncSuperHelper:()=>Wk,affectsDeclarationPathOptionDeclarations:()=>eq,affectsEmitOptionDeclarations:()=>ZH,allKeysStartWithDot:()=>CF,altDirectorySeparator:()=>q2,and:()=>D6,append:()=>Rn,appendIfUnique:()=>Rg,arrayFrom:()=>zo,arrayIsEqualTo:()=>Hm,arrayIsHomogeneous:()=>Aoe,arrayIsSorted:()=>b6,arrayOf:()=>$te,arrayReverseIterator:()=>GB,arrayToMap:()=>TE,arrayToMultiMap:()=>P2,arrayToNumericMap:()=>Zte,arraysEqual:()=>Ba,assertType:()=>DEe,assign:()=>Mx,assignHelper:()=>hW,asyncDelegator:()=>vW,asyncGeneratorHelper:()=>gW,asyncSuperHelper:()=>Ok,asyncValues:()=>yW,attachFileToDiagnostics:()=>zA,awaitHelper:()=>JA,awaiterHelper:()=>EW,base64decode:()=>Jie,base64encode:()=>qie,binarySearch:()=>Tv,binarySearchKey:()=>pA,bindSourceFile:()=>Pse,breakIntoCharacterSpans:()=>Que,breakIntoWordSpans:()=>Zue,buildLinkParts:()=>Sue,buildOpts:()=>yF,buildOverload:()=>Mwe,bundlerModuleNameResolver:()=>Ese,canBeConvertedToAsync:()=>GX,canHaveDecorators:()=>qS,canHaveExportModifier:()=>vk,canHaveFlowNode:()=>qL,canHaveIllegalDecorators:()=>NH,canHaveIllegalModifiers:()=>wae,canHaveIllegalType:()=>TTe,canHaveIllegalTypeParameters:()=>kae,canHaveJSDoc:()=>JL,canHaveLocals:()=>ph,canHaveModifiers:()=>Rm,canHaveSymbol:()=>T_,canJsonReportNoInputFiles:()=>NP,canProduceDiagnostics:()=>QF,canUsePropertyAccess:()=>EU,canWatchAffectingLocation:()=>cce,canWatchAtTypes:()=>lce,canWatchDirectoryOrFile:()=>y7,cartesianProduct:()=>cne,cast:()=>oa,chainBundle:()=>Dm,chainDiagnosticMessages:()=>Vo,changeAnyExtension:()=>U2,changeCompilerHostLikeToUseCache:()=>Fw,changeExtension:()=>_0,changeFullExtension:()=>Dne,changesAffectModuleResolution:()=>I4,changesAffectingProgramStructure:()=>Cre,childIsDecorated:()=>SC,classElementOrClassElementParameterIsDecorated:()=>mj,classHasClassThisAssignment:()=>Gq,classHasDeclaredOrExplicitlyAssignedName:()=>Vq,classHasExplicitlyAssignedName:()=>XF,classOrConstructorParameterIsDecorated:()=>Lv,classPrivateFieldGetHelper:()=>LW,classPrivateFieldInHelper:()=>wW,classPrivateFieldSetHelper:()=>kW,classicNameResolver:()=>Rse,classifier:()=>upe,cleanExtendedConfigCache:()=>a7,clear:()=>jo,clearMap:()=>ep,clearSharedExtendedConfigFileWatcher:()=>rJ,climbPastPropertyAccess:()=>z7,climbPastPropertyOrElementAccess:()=>Xce,clone:()=>qB,cloneCompilerOptions:()=>GK,closeFileWatcher:()=>Xm,closeFileWatcherOf:()=>Cf,codefix:()=>Fu,collapseTextChangeRangesAcrossMultipleVersions:()=>Vne,collectExternalModuleInfo:()=>wq,combine:()=>Px,combinePaths:()=>$r,commentPragmas:()=>z2,commonOptionsWithBuild:()=>fw,commonPackageFolders:()=>kU,compact:()=>C2,compareBooleans:()=>Ey,compareDataObjects:()=>iU,compareDiagnostics:()=>HC,compareDiagnosticsSkipRelatedInformation:()=>C3,compareEmitHelpers:()=>eae,compareNumberOfDirectorySeparators:()=>_k,comparePaths:()=>Dg,comparePathsCaseInsensitive:()=>t1e,comparePathsCaseSensitive:()=>e1e,comparePatternKeys:()=>hq,compareProperties:()=>one,compareStringsCaseInsensitive:()=>x6,compareStringsCaseInsensitiveEslintCompatible:()=>nne,compareStringsCaseSensitive:()=>Uu,compareStringsCaseSensitiveUI:()=>L2,compareTextSpans:()=>I6,compareValues:()=>nl,compileOnSaveCommandLineOption:()=>dw,compilerOptionsAffectDeclarationPath:()=>moe,compilerOptionsAffectEmit:()=>foe,compilerOptionsAffectSemanticDiagnostics:()=>poe,compilerOptionsDidYouMeanDiagnostics:()=>hw,compilerOptionsIndicateEsModules:()=>JK,compose:()=>xEe,computeCommonSourceDirectoryOfFilenames:()=>Gle,computeLineAndCharacterOfPosition:()=>Vx,computeLineOfPosition:()=>tC,computeLineStarts:()=>bA,computePositionOfLineAndCharacter:()=>n4,computeSignature:()=>QS,computeSignatureWithDiagnostics:()=>NJ,computeSuggestionDiagnostics:()=>FX,computedOptions:()=>_c,concatenate:()=>So,concatenateDiagnosticMessageChains:()=>loe,consumesNodeCoreModules:()=>v5,contains:()=>Or,containsIgnoredPath:()=>eP,containsObjectRestOrSpread:()=>nw,containsParseError:()=>eR,containsPath:()=>gm,convertCompilerOptionsForTelemetry:()=>ise,convertCompilerOptionsFromJson:()=>xAe,convertJsonOption:()=>JS,convertToBase64:()=>Hie,convertToJson:()=>lw,convertToObject:()=>Zae,convertToOptionsWithAbsolutePaths:()=>JH,convertToRelativePath:()=>eC,convertToTSConfig:()=>pAe,convertTypeAcquisitionFromJson:()=>RAe,copyComments:()=>nT,copyEntries:()=>x4,copyLeadingComments:()=>ID,copyProperties:()=>JB,copyTrailingAsLeadingComments:()=>hO,copyTrailingComments:()=>lM,couldStartTrivia:()=>Mne,countWhere:()=>ou,createAbstractBuilder:()=>Lxe,createAccessorPropertyBackingField:()=>PH,createAccessorPropertyGetRedirector:()=>jae,createAccessorPropertySetRedirector:()=>Uae,createBaseNodeFactory:()=>Foe,createBinaryExpressionTrampoline:()=>sF,createBindingHelper:()=>FR,createBuildInfo:()=>Lw,createBuilderProgram:()=>CJ,createBuilderProgramUsingProgramBuildInfo:()=>ace,createBuilderStatusReporter:()=>Tce,createCacheWithRedirects:()=>lq,createCacheableExportInfoMap:()=>xX,createCachedDirectoryStructureHost:()=>i7,createClassNamedEvaluationHelperBlock:()=>lle,createClassThisAssignmentBlock:()=>ale,createClassifier:()=>YRe,createCommentDirectivesMap:()=>Ore,createCompilerDiagnostic:()=>Ul,createCompilerDiagnosticForInvalidCustomType:()=>Kae,createCompilerDiagnosticFromMessageChain:()=>N3,createCompilerHost:()=>Vle,createCompilerHostFromProgramHost:()=>JJ,createCompilerHostWorker:()=>uJ,createDetachedDiagnostic:()=>CR,createDiagnosticCollection:()=>ER,createDiagnosticForFileFromMessageChain:()=>cj,createDiagnosticForNode:()=>kr,createDiagnosticForNodeArray:()=>rR,createDiagnosticForNodeArrayFromMessageChain:()=>IL,createDiagnosticForNodeFromMessageChain:()=>Lg,createDiagnosticForNodeInSourceFile:()=>Xf,createDiagnosticForRange:()=>Kre,createDiagnosticMessageChainFromDiagnostic:()=>Jre,createDiagnosticReporter:()=>jw,createDocumentPositionMapper:()=>Yse,createDocumentRegistry:()=>Gue,createDocumentRegistryInternal:()=>LX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>wJ,createEmitHelperFactory:()=>Zoe,createEmptyExports:()=>Kk,createExpressionForJsxElement:()=>Rae,createExpressionForJsxFragment:()=>Dae,createExpressionForObjectLiteralElementLike:()=>Nae,createExpressionForPropertyName:()=>TH,createExpressionFromEntityName:()=>Xk,createExternalHelpersImportDeclarationIfNeeded:()=>xH,createFileDiagnostic:()=>$c,createFileDiagnosticFromMessageChain:()=>w4,createForOfBindingStatement:()=>SH,createGetCanonicalFileName:()=>Mu,createGetSourceFile:()=>lJ,createGetSymbolAccessibilityDiagnosticForNode:()=>Uv,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Mle,createGetSymbolWalker:()=>Mse,createIncrementalCompilerHost:()=>XJ,createIncrementalProgram:()=>Ece,createInputFiles:()=>YSe,createInputFilesWithFilePaths:()=>HU,createInputFilesWithFileTexts:()=>qU,createJsxFactoryExpression:()=>EH,createLanguageService:()=>ipe,createLanguageServiceSourceFile:()=>Z5,createMemberAccessForPropertyName:()=>HS,createModeAwareCache:()=>_I,createModeAwareCacheKey:()=>kP,createModuleNotFoundChain:()=>R4,createModuleResolutionCache:()=>rD,createModuleResolutionLoader:()=>hJ,createModuleResolutionLoaderUsingGlobalCache:()=>fce,createModuleSpecifierResolutionHost:()=>tT,createMultiMap:()=>$p,createNodeConverters:()=>Boe,createNodeFactory:()=>Dk,createOptionNameMap:()=>uF,createOverload:()=>FQ,createPackageJsonImportFilter:()=>dM,createPackageJsonInfo:()=>mX,createParenthesizerRules:()=>zoe,createPatternMatcher:()=>que,createPrependNodes:()=>TJ,createPrinter:()=>R0,createPrinterWithDefaults:()=>tJ,createPrinterWithRemoveComments:()=>d1,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>nJ,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>kw,createProgram:()=>d7,createProgramHost:()=>KJ,createPropertyNameNodeForIdentifierOrLiteral:()=>J3,createQueue:()=>M2,createRange:()=>Af,createRedirectedBuilderProgram:()=>MJ,createResolutionCache:()=>WJ,createRuntimeTypeSerializer:()=>fle,createScanner:()=>Nv,createSemanticDiagnosticsBuilderProgram:()=>Mxe,createSet:()=>KB,createSolutionBuilder:()=>Xxe,createSolutionBuilderHost:()=>Jxe,createSolutionBuilderWithWatch:()=>Yxe,createSolutionBuilderWithWatchHost:()=>Kxe,createSortedArray:()=>BB,createSourceFile:()=>iw,createSourceMapGenerator:()=>qse,createSourceMapSource:()=>$Se,createSuperAccessVariableStatement:()=>$F,createSymbolTable:()=>ca,createSymlinkCache:()=>dU,createSystemWatchFunctions:()=>Ane,createTextChange:()=>sO,createTextChangeFromStartLength:()=>Z7,createTextChangeRange:()=>nL,createTextRangeFromNode:()=>UK,createTextRangeFromSpan:()=>Q7,createTextSpan:()=>vu,createTextSpanFromBounds:()=>pc,createTextSpanFromNode:()=>Dd,createTextSpanFromRange:()=>tb,createTextSpanFromStringLiteralLikeContent:()=>jK,createTextWriter:()=>ok,createTokenRange:()=>tU,createTypeChecker:()=>Bse,createTypeReferenceDirectiveResolutionCache:()=>RF,createTypeReferenceResolutionLoader:()=>l7,createUnparsedSourceFile:()=>UU,createWatchCompilerHost:()=>Uxe,createWatchCompilerHostOfConfigFile:()=>vce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>yce,createWatchFactory:()=>qJ,createWatchHost:()=>HJ,createWatchProgram:()=>Hxe,createWatchStatusReporter:()=>mce,createWriteFileMeasuringIO:()=>cJ,declarationNameToString:()=>xs,decodeMappings:()=>Mq,decodedTextSpanIntersectsWith:()=>tL,decorateHelper:()=>dW,deduplicate:()=>SE,defaultIncludeSpec:()=>SF,defaultInitCompilerOptions:()=>bF,defaultMaximumTruncationLength:()=>Sk,detectSortCaseSensitivity:()=>qN,diagnosticCategoryName:()=>lS,diagnosticToString:()=>iT,directoryProbablyExists:()=>Km,directorySeparator:()=>ol,displayPart:()=>rp,displayPartsToString:()=>WO,disposeEmitNodes:()=>KU,disposeResourcesHelper:()=>WW,documentSpansEqual:()=>QK,dumpTracingLegend:()=>Ene,elementAt:()=>Rv,elideNodes:()=>Vae,emitComments:()=>kie,emitDetachedComments:()=>wie,emitFiles:()=>t7,emitFilesAndReportErrors:()=>T7,emitFilesAndReportErrorsAndGetExitStatus:()=>gce,emitModuleKindIsNonNodeESM:()=>P3,emitNewLineBeforeLeadingCommentOfPosition:()=>Lie,emitNewLineBeforeLeadingComments:()=>Pie,emitNewLineBeforeLeadingCommentsOfPosition:()=>Mie,emitSkippedWithNoDiagnostics:()=>h7,emitUsingBuildInfo:()=>Wle,emptyArray:()=>et,emptyFileSystemEntries:()=>oW,emptyMap:()=>M6,emptyOptions:()=>Mf,emptySet:()=>dne,endsWith:()=>Al,ensurePathIsNonModuleName:()=>AE,ensureScriptKind:()=>B3,ensureTrailingDirectorySeparator:()=>Fc,entityNameToString:()=>fp,enumerateInsertsAndDeletes:()=>C6,equalOwnProperties:()=>Qte,equateStringsCaseInsensitive:()=>$b,equateStringsCaseSensitive:()=>oS,equateValues:()=>xv,esDecorateHelper:()=>mW,escapeJsxAttributeString:()=>Gj,escapeLeadingUnderscores:()=>_l,escapeNonAsciiString:()=>ik,escapeSnippetText:()=>JE,escapeString:()=>tg,escapeTemplateSubstitution:()=>zj,every:()=>Jn,expandPreOrPostfixIncrementOrDecrementExpression:()=>tF,explainFiles:()=>BJ,explainIfFileIsRedirectAndImpliedFormat:()=>GJ,exportAssignmentIsAlias:()=>gR,exportStarHelper:()=>MW,expressionResultIsUnused:()=>xoe,extend:()=>A6,extendsHelper:()=>SW,extensionFromPath:()=>XC,extensionIsTS:()=>j3,extensionsNotSupportingExtensionlessResolution:()=>Rk,externalHelpersModuleNameText:()=>Vy,factory:()=>w,fileExtensionIs:()=>Il,fileExtensionIsOneOf:()=>Sc,fileIncludeReasonToDiagnostics:()=>UJ,fileShouldUseJavaScriptRequire:()=>EX,filter:()=>mn,filterMutate:()=>li,filterSemanticDiagnostics:()=>p7,find:()=>In,findAncestor:()=>Vn,findBestPatternMatch:()=>QB,findChildOfKind:()=>vs,findComputedPropertyNameCacheAssignment:()=>lF,findConfigFile:()=>Ble,findContainingList:()=>U7,findDiagnosticForNode:()=>Lue,findFirstNonJsxWhitespaceToken:()=>eue,findIndex:()=>mi,findLast:()=>oi,findLastIndex:()=>Yi,findListItemInfo:()=>Zce,findMap:()=>ja,findModifier:()=>SD,findNextToken:()=>m1,findPackageJson:()=>Pue,findPackageJsons:()=>fX,findPrecedingMatchingToken:()=>Y7,findPrecedingToken:()=>Ic,findSuperStatementIndexPath:()=>qF,findTokenOnLeftOfPosition:()=>J7,findUseStrictPrologue:()=>IH,first:()=>Ua,firstDefined:()=>Ht,firstDefinedIterator:()=>pn,firstIterator:()=>jB,firstOrOnly:()=>vX,firstOrUndefined:()=>Kc,firstOrUndefinedIterator:()=>E6,fixupCompilerOptions:()=>jX,flatMap:()=>Do,flatMapIterator:()=>EE,flatMapToMutable:()=>kp,flatten:()=>Cs,flattenCommaList:()=>Hae,flattenDestructuringAssignment:()=>XS,flattenDestructuringBinding:()=>u1,flattenDiagnosticMessageText:()=>W_,forEach:()=>Xe,forEachAncestor:()=>Pre,forEachAncestorDirectory:()=>ym,forEachChild:()=>Uo,forEachChildRecursively:()=>RP,forEachEmittedFile:()=>$q,forEachEnclosingBlockScopeContainer:()=>Ure,forEachEntry:()=>zc,forEachExternalModuleToImportFrom:()=>DX,forEachImportClauseDeclaration:()=>i3,forEachKey:()=>mh,forEachLeadingCommentRange:()=>Y2,forEachNameInAccessChainWalkingLeft:()=>noe,forEachPropertyAssignment:()=>sR,forEachResolvedProjectReference:()=>vJ,forEachReturnStatement:()=>LE,forEachRight:()=>$t,forEachTrailingCommentRange:()=>$2,forEachTsConfigPropArray:()=>NL,forEachUnique:()=>eX,forEachYieldExpression:()=>Yre,forSomeAncestorDirectory:()=>ySe,formatColorAndReset:()=>p1,formatDiagnostic:()=>dJ,formatDiagnostics:()=>fxe,formatDiagnosticsWithColorAndContext:()=>jle,formatGeneratedName:()=>S0,formatGeneratedNamePart:()=>QR,formatLocation:()=>pJ,formatMessage:()=>lU,formatStringFromArgs:()=>ig,formatting:()=>kc,fullTripleSlashAMDReferencePathRegEx:()=>RU,fullTripleSlashReferencePathRegEx:()=>xU,generateDjb2Hash:()=>QN,generateTSConfig:()=>gAe,generatorHelper:()=>NW,getAdjustedReferenceLocation:()=>wK,getAdjustedRenameLocation:()=>q7,getAliasDeclarationFromName:()=>Dj,getAllAccessorDeclarations:()=>NS,getAllDecoratorsOfClass:()=>Wq,getAllDecoratorsOfClassElement:()=>KF,getAllJSDocTags:()=>u4,getAllJSDocTagsOfKind:()=>C1e,getAllKeys:()=>AEe,getAllProjectOutputs:()=>e7,getAllSuperTypeNodes:()=>RC,getAllUnscopedEmitHelpers:()=>ZU,getAllowJSCompilerOption:()=>jy,getAllowSyntheticDefaultImports:()=>MS,getAncestor:()=>f0,getAnyExtensionFromPath:()=>Gx,getAreDeclarationMapsEnabled:()=>Ak,getAssignedExpandoInitializer:()=>DA,getAssignedName:()=>l4,getAssignedNameOfIdentifier:()=>GP,getAssignmentDeclarationKind:()=>zl,getAssignmentDeclarationPropertyAccessKind:()=>GL,getAssignmentTargetKind:()=>MA,getAutomaticTypeDirectiveNames:()=>IF,getBaseFileName:()=>ic,getBinaryOperatorPrecedence:()=>rk,getBuildInfo:()=>n7,getBuildInfoFileVersionMap:()=>PJ,getBuildInfoText:()=>Ole,getBuildOrderFromAnyBuildOrder:()=>D7,getBuilderCreationParameters:()=>g7,getBuilderFileEmit:()=>eb,getCheckFlags:()=>xl,getClassExtendsHeritageElement:()=>FE,getClassLikeDeclarationOfSymbol:()=>Wg,getCombinedLocalAndExportSymbolFlags:()=>RR,getCombinedModifierFlags:()=>n0,getCombinedNodeFlags:()=>Cv,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>SV,getCommentRange:()=>M_,getCommonSourceDirectory:()=>KP,getCommonSourceDirectoryOfConfig:()=>cD,getCompilerOptionValue:()=>L3,getCompilerOptionsDiffValue:()=>_Ae,getConditions:()=>Qy,getConfigFileParsingDiagnostics:()=>$S,getConstantValue:()=>qoe,getContainerFlags:()=>bq,getContainerNode:()=>eT,getContainingClass:()=>au,getContainingClassExcludingClassDecorators:()=>U4,getContainingClassStaticBlock:()=>oie,getContainingFunction:()=>Bp,getContainingFunctionDeclaration:()=>iie,getContainingFunctionOrClassStaticBlock:()=>j4,getContainingNodeArray:()=>Roe,getContainingObjectLiteralElement:()=>FO,getContextualTypeFromParent:()=>u5,getContextualTypeFromParentOrAncestorTypeNode:()=>H7,getCurrentTime:()=>Hw,getDeclarationDiagnostics:()=>Lle,getDeclarationEmitExtensionForPath:()=>f3,getDeclarationEmitOutputFilePath:()=>xie,getDeclarationEmitOutputFilePathWorker:()=>p3,getDeclarationFileExtension:()=>wH,getDeclarationFromName:()=>xC,getDeclarationModifierFlagsFromSymbol:()=>xf,getDeclarationOfKind:()=>pl,getDeclarationsOfKind:()=>Dre,getDeclaredExpandoInitializer:()=>WL,getDecorators:()=>Ry,getDefaultCompilerOptions:()=>Q5,getDefaultExportInfoWorker:()=>R5,getDefaultFormatCodeSettings:()=>O7,getDefaultLibFileName:()=>Z2,getDefaultLibFilePath:()=>ope,getDefaultLikeExportInfo:()=>x5,getDiagnosticText:()=>oAe,getDiagnosticsWithinSpan:()=>kue,getDirectoryPath:()=>ai,getDirectoryToWatchFailedLookupLocation:()=>OJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>dce,getDocumentPositionMapper:()=>WX,getDocumentSpansEqualityComparer:()=>ZK,getESModuleInterop:()=>vh,getEditsForFileRename:()=>jue,getEffectiveBaseTypeNode:()=>I_,getEffectiveConstraintOfTypeParameter:()=>Jx,getEffectiveContainerForJSDocTemplateTag:()=>o3,getEffectiveImplementsTypeNodes:()=>vR,getEffectiveInitializer:()=>OL,getEffectiveJSDocHost:()=>p0,getEffectiveModifierFlags:()=>ud,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>zie,getEffectiveModifierFlagsNoCache:()=>Bie,getEffectiveReturnTypeNode:()=>em,getEffectiveSetAccessorTypeAnnotationNode:()=>Cie,getEffectiveTypeAnnotationNode:()=>yu,getEffectiveTypeParameterDeclarations:()=>Dy,getEffectiveTypeRoots:()=>LP,getElementOrPropertyAccessArgumentExpressionOrName:()=>r3,getElementOrPropertyAccessName:()=>kg,getElementsOfBindingOrAssignmentPattern:()=>$R,getEmitDeclarations:()=>Rf,getEmitFlags:()=>Ga,getEmitHelpers:()=>uW,getEmitModuleDetectionKind:()=>MU,getEmitModuleKind:()=>wu,getEmitModuleResolutionKind:()=>pd,getEmitScriptTarget:()=>os,getEmitStandardClassFields:()=>doe,getEnclosingBlockScopeContainer:()=>_h,getEnclosingContainer:()=>lj,getEncodedSemanticClassifications:()=>PX,getEncodedSyntacticClassifications:()=>MX,getEndLinePosition:()=>EL,getEntityNameFromTypeNode:()=>ML,getEntrypointsFromPackageJsonInfo:()=>fq,getErrorCountForSummary:()=>E7,getErrorSpanForNode:()=>vS,getErrorSummaryText:()=>_ce,getEscapedTextOfIdentifierOrLiteral:()=>CC,getEscapedTextOfJsxAttributeName:()=>iP,getEscapedTextOfJsxNamespacedName:()=>VA,getExpandoInitializer:()=>u0,getExportAssignmentExpression:()=>Nj,getExportInfoMap:()=>EO,getExportNeedsImportStarHelper:()=>$se,getExpressionAssociativity:()=>Oj,getExpressionPrecedence:()=>MC,getExternalHelpersModuleName:()=>$k,getExternalModuleImportEqualsDeclarationExpression:()=>TC,getExternalModuleName:()=>fR,getExternalModuleNameFromDeclaration:()=>Aie,getExternalModuleNameFromPath:()=>jj,getExternalModuleNameLiteral:()=>dI,getExternalModuleRequireArgument:()=>hj,getFallbackOptions:()=>Ww,getFileEmitOutput:()=>Yle,getFileMatcherPatterns:()=>z3,getFileNamesFromConfigSpecs:()=>CP,getFileWatcherEventKind:()=>lV,getFilesInErrorForSummary:()=>S7,getFirstConstructorWithBody:()=>ng,getFirstIdentifier:()=>Gp,getFirstNonSpaceCharacterPosition:()=>Iue,getFirstProjectOutput:()=>eJ,getFixableErrorSpanExpression:()=>hX,getFormatCodeSettingsForWriting:()=>S5,getFullWidth:()=>yL,getFunctionFlags:()=>Bc,getHeritageClause:()=>ZL,getHostSignatureFromJSDoc:()=>d0,getIdentifierAutoGenerate:()=>nTe,getIdentifierGeneratedImportReference:()=>Qoe,getIdentifierTypeArguments:()=>LS,getImmediatelyInvokedFunctionExpression:()=>bS,getImpliedNodeFormatForFile:()=>Gw,getImpliedNodeFormatForFileWorker:()=>EJ,getImportNeedsImportDefaultHelper:()=>kq,getImportNeedsImportStarHelper:()=>UF,getIndentSize:()=>TR,getIndentString:()=>u3,getInferredLibraryNameResolveFrom:()=>u7,getInitializedVariables:()=>VC,getInitializerOfBinaryExpression:()=>Ej,getInitializerOfBindingOrAssignmentElement:()=>Zk,getInterfaceBaseTypeNodes:()=>DC,getInternalEmitFlags:()=>Em,getInvokedExpression:()=>J4,getIsolatedModules:()=>rm,getJSDocAugmentsTag:()=>$ne,getJSDocClassTag:()=>AV,getJSDocCommentRanges:()=>dj,getJSDocCommentsAndTags:()=>Tj,getJSDocDeprecatedTag:()=>IV,getJSDocDeprecatedTagNoCache:()=>ire,getJSDocEnumTag:()=>xV,getJSDocHost:()=>AS,getJSDocImplementsTags:()=>Qne,getJSDocOverloadTags:()=>Ij,getJSDocOverrideTagNoCache:()=>rre,getJSDocParameterTags:()=>qx,getJSDocParameterTagsNoCache:()=>Jne,getJSDocPrivateTag:()=>I1e,getJSDocPrivateTagNoCache:()=>ere,getJSDocProtectedTag:()=>x1e,getJSDocProtectedTagNoCache:()=>tre,getJSDocPublicTag:()=>A1e,getJSDocPublicTagNoCache:()=>Zne,getJSDocReadonlyTag:()=>R1e,getJSDocReadonlyTagNoCache:()=>nre,getJSDocReturnTag:()=>ore,getJSDocReturnType:()=>iL,getJSDocRoot:()=>hR,getJSDocSatisfiesExpressionType:()=>TU,getJSDocSatisfiesTag:()=>RV,getJSDocTags:()=>a0,getJSDocTagsNoCache:()=>N1e,getJSDocTemplateTag:()=>D1e,getJSDocThisTag:()=>c4,getJSDocType:()=>o0,getJSDocTypeAliasName:()=>DH,getJSDocTypeAssertionType:()=>rF,getJSDocTypeParameterDeclarations:()=>g3,getJSDocTypeParameterTags:()=>Kne,getJSDocTypeParameterTagsNoCache:()=>Xne,getJSDocTypeTag:()=>i0,getJSXImplicitImportBase:()=>w3,getJSXRuntimeImport:()=>O3,getJSXTransformEnabled:()=>k3,getKeyForCompilerOptions:()=>sq,getLanguageVariant:()=>pk,getLastChild:()=>oU,getLeadingCommentRanges:()=>qh,getLeadingCommentRangesOfNode:()=>uj,getLeftmostAccessExpression:()=>DR,getLeftmostExpression:()=>NR,getLibraryNameFromLibFileName:()=>yJ,getLineAndCharacterOfPosition:()=>ys,getLineInfo:()=>Cq,getLineOfLocalPosition:()=>kC,getLineOfLocalPositionFromLineMap:()=>RS,getLineStartPositionForPosition:()=>am,getLineStarts:()=>Ng,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Qie,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>$ie,getLinesBetweenPositions:()=>nC,getLinesBetweenRangeEndAndRangeStart:()=>nU,getLinesBetweenRangeEndPositions:()=>gSe,getLiteralText:()=>Wre,getLocalNameForExternalImport:()=>YR,getLocalSymbolForExportDefault:()=>xR,getLocaleSpecificMessage:()=>Wo,getLocaleTimeString:()=>Uw,getMappedContextSpan:()=>tX,getMappedDocumentSpan:()=>a5,getMappedLocation:()=>oM,getMatchedFileSpec:()=>VJ,getMatchedIncludeSpec:()=>jJ,getMeaningFromDeclaration:()=>$w,getMeaningFromLocation:()=>ZS,getMembersOfDeclaration:()=>$re,getModeForFileReference:()=>zw,getModeForResolutionAtIndex:()=>Ule,getModeForUsageLocation:()=>mJ,getModifiedTime:()=>gA,getModifiers:()=>xE,getModuleInstanceState:()=>jg,getModuleNameStringLiteralAt:()=>Vw,getModuleSpecifierEndingPreference:()=>voe,getModuleSpecifierResolverHost:()=>KK,getNameForExportedSymbol:()=>y5,getNameFromImportAttribute:()=>$3,getNameFromIndexInfo:()=>Hre,getNameFromPropertyName:()=>uO,getNameOfAccessExpression:()=>sU,getNameOfCompilerOptionValue:()=>qH,getNameOfDeclaration:()=>Lo,getNameOfExpando:()=>yj,getNameOfJSDocTypedef:()=>qne,getNameOrArgument:()=>BL,getNameTable:()=>TY,getNamesForExportedSymbol:()=>wue,getNamespaceDeclarationNode:()=>mR,getNewLineCharacter:()=>Fv,getNewLineKind:()=>bO,getNewLineOrDefaultFromHost:()=>Xv,getNewTargetContainer:()=>sie,getNextJSDocCommentLocation:()=>Aj,getNodeForGeneratedName:()=>tw,getNodeId:()=>as,getNodeKind:()=>f1,getNodeModifiers:()=>nM,getNodeModulePathParts:()=>K3,getNonAssignedNameOfDeclaration:()=>s4,getNonAssignmentOperatorForCompoundAssignment:()=>FP,getNonAugmentationDeclaration:()=>nj,getNonDecoratorTokenPosOfNode:()=>$V,getNormalizedAbsolutePath:()=>go,getNormalizedAbsolutePathWithoutRoot:()=>mV,getNormalizedPathComponents:()=>j2,getObjectFlags:()=>Wr,getOperator:()=>Fj,getOperatorAssociativity:()=>Wj,getOperatorPrecedence:()=>nk,getOptionFromName:()=>VH,getOptionsForLibraryResolution:()=>cq,getOptionsNameMap:()=>eD,getOrCreateEmitNode:()=>Ou,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Lae,getOrUpdate:()=>dA,getOriginalNode:()=>Pl,getOriginalNodeId:()=>Wu,getOriginalSourceFile:()=>sSe,getOutputDeclarationFileName:()=>JP,getOutputDeclarationFileNameWorker:()=>Qq,getOutputExtension:()=>ZF,getOutputFileNames:()=>dxe,getOutputJSFileNameWorker:()=>Zq,getOutputPathsFor:()=>qP,getOutputPathsForBundle:()=>HP,getOwnEmitOutputFilePath:()=>Iie,getOwnKeys:()=>Hh,getOwnValues:()=>fA,getPackageJsonInfo:()=>a1,getPackageJsonTypesVersionsPaths:()=>AF,getPackageJsonsVisibleToFile:()=>Mue,getPackageNameFromTypesPackageName:()=>wP,getPackageScopeForPath:()=>Ew,getParameterSymbolFromJSDoc:()=>KL,getParameterTypeNode:()=>DSe,getParentNodeInSpan:()=>pO,getParseTreeNode:()=>No,getParsedCommandLineOfConfigFile:()=>aw,getPathComponents:()=>Wc,getPathComponentsRelativeTo:()=>hV,getPathFromPathComponents:()=>Ay,getPathUpdater:()=>wX,getPathsBasePath:()=>m3,getPatternFromSpec:()=>_oe,getPendingEmitKind:()=>mD,getPositionOfLineAndCharacter:()=>K2,getPossibleGenericSignatures:()=>WK,getPossibleOriginalInputExtensionForExtension:()=>Rie,getPossibleTypeArgumentsInfo:()=>FK,getPreEmitDiagnostics:()=>pxe,getPrecedingNonSpaceCharacterPosition:()=>l5,getPrivateIdentifier:()=>Fq,getProperties:()=>Oq,getProperty:()=>S6,getPropertyArrayElementValue:()=>rie,getPropertyAssignmentAliasLikeExpression:()=>bie,getPropertyNameForPropertyNameNode:()=>IS,getPropertyNameForUniqueESSymbol:()=>oSe,getPropertyNameFromType:()=>nm,getPropertyNameOfBindingOrAssignmentElement:()=>RH,getPropertySymbolFromBindingElement:()=>o5,getPropertySymbolsFromContextualType:()=>ez,getQuoteFromPreference:()=>YK,getQuotePreference:()=>lf,getRangesWhere:()=>zB,getRefactorContextSpan:()=>II,getReferencedFileLocation:()=>XP,getRegexFromPattern:()=>By,getRegularExpressionForWildcard:()=>qC,getRegularExpressionsForWildcards:()=>W3,getRelativePathFromDirectory:()=>vm,getRelativePathFromFile:()=>H2,getRelativePathToDirectoryOrUrl:()=>yA,getRenameLocation:()=>_O,getReplacementSpanForContextToken:()=>VK,getResolutionDiagnostic:()=>AJ,getResolutionModeOverride:()=>uD,getResolveJsonModule:()=>g0,getResolvePackageJsonExports:()=>nW,getResolvePackageJsonImports:()=>rW,getResolvedExternalModuleName:()=>d3,getRestIndicatorOfBindingOrAssignmentElement:()=>oF,getRestParameterElementType:()=>pj,getRightMostAssignedExpression:()=>FL,getRootDeclaration:()=>R_,getRootDirectoryOfResolutionCache:()=>pce,getRootLength:()=>dh,getRootPathSplitLength:()=>Wxe,getScriptKind:()=>aX,getScriptKindFromFileName:()=>G3,getScriptTargetFeatures:()=>eW,getSelectedEffectiveModifierFlags:()=>wA,getSelectedSyntacticModifierFlags:()=>Wie,getSemanticClassifications:()=>zue,getSemanticJsxChildren:()=>bR,getSetAccessorTypeAnnotationNode:()=>Die,getSetAccessorValueParameter:()=>wC,getSetExternalModuleIndicator:()=>fk,getShebang:()=>i4,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>Sj,getSingleVariableOfVariableStatement:()=>PA,getSnapshotText:()=>ED,getSnippetElement:()=>XU,getSourceFileOfModule:()=>N4,getSourceFileOfNode:()=>Un,getSourceFilePathInNewDir:()=>_3,getSourceFilePathInNewDirWorker:()=>h3,getSourceFileVersionAsHashFromText:()=>A7,getSourceFilesToEmit:()=>Uj,getSourceMapRange:()=>Bv,getSourceMapper:()=>tde,getSourceTextOfNodeFromSourceFile:()=>CE,getSpanOfTokenAtPosition:()=>hh,getSpellingSuggestion:()=>KN,getStartPositionOfLine:()=>wy,getStartPositionOfRange:()=>GC,getStartsOnNewLine:()=>cP,getStaticPropertiesAndClassStaticBlock:()=>JF,getStrictOptionValue:()=>dd,getStringComparer:()=>Lx,getSubPatternFromSpec:()=>F3,getSuperCallFromStatement:()=>HF,getSuperContainer:()=>CL,getSupportedCodeFixes:()=>EY,getSupportedExtensions:()=>JC,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>mk,getSwitchedType:()=>dX,getSymbolId:()=>Sa,getSymbolNameForPrivateIdentifier:()=>ek,getSymbolTarget:()=>sX,getSyntacticClassifications:()=>Bue,getSyntacticModifierFlags:()=>Fy,getSyntacticModifierFlagsNoCache:()=>Kj,getSynthesizedDeepClone:()=>ll,getSynthesizedDeepCloneWithReplacements:()=>mO,getSynthesizedDeepClones:()=>_1,getSynthesizedDeepClonesWithReplacements:()=>lX,getSyntheticLeadingComments:()=>WR,getSyntheticTrailingComments:()=>Lk,getTargetLabel:()=>B7,getTargetOfBindingOrAssignmentElement:()=>$y,getTemporaryModuleResolutionState:()=>bw,getTextOfConstantValue:()=>Fre,getTextOfIdentifierOrLiteral:()=>Qf,getTextOfJSDocComment:()=>aL,getTextOfJsxAttributeName:()=>Ek,getTextOfJsxNamespacedName:()=>oP,getTextOfNode:()=>fc,getTextOfNodeFromSourceText:()=>gC,getTextOfPropertyName:()=>nR,getThisContainer:()=>Fd,getThisParameter:()=>BE,getTokenAtPosition:()=>po,getTokenPosOfNode:()=>l0,getTokenSourceMapRange:()=>eTe,getTouchingPropertyName:()=>Vd,getTouchingToken:()=>bD,getTrailingCommentRanges:()=>Zb,getTrailingSemicolonDeferringWriter:()=>Vj,getTransformFlagsSubtreeExclusions:()=>Goe,getTransformers:()=>Xq,getTsBuildInfoEmitOutputFilePath:()=>Hv,getTsConfigObjectLiteralExpression:()=>EC,getTsConfigPropArrayElementValue:()=>V4,getTypeAnnotationNode:()=>Nie,getTypeArgumentOrTypeParameterList:()=>lue,getTypeKeywordOfTypeOnlyImport:()=>$K,getTypeNode:()=>Yoe,getTypeNodeIfAccessible:()=>uM,getTypeParameterFromJsDoc:()=>mie,getTypeParameterOwner:()=>y1e,getTypesPackageName:()=>PF,getUILocale:()=>rne,getUniqueName:()=>rT,getUniqueSymbolId:()=>Aue,getUseDefineForClassFields:()=>lP,getWatchErrorSummaryDiagnosticMessage:()=>FJ,getWatchFactory:()=>oJ,group:()=>JN,groupBy:()=>T6,guessIndentation:()=>xre,handleNoEmitOptions:()=>SJ,hasAbstractModifier:()=>jE,hasAccessorModifier:()=>D_,hasAmbientModifier:()=>Jj,hasChangesInResolutions:()=>KV,hasChildOfKind:()=>iO,hasContextSensitiveParameters:()=>q3,hasDecorators:()=>Tf,hasDocComment:()=>aue,hasDynamicName:()=>Wy,hasEffectiveModifier:()=>_p,hasEffectiveModifiers:()=>v3,hasEffectiveReadonlyModifier:()=>OC,hasExtension:()=>vA,hasIndexSignature:()=>uX,hasInitializer:()=>Ly,hasInvalidEscape:()=>Bj,hasJSDocNodes:()=>Wp,hasJSDocParameterTags:()=>Yne,hasJSFileExtension:()=>UE,hasJsonModuleEmitEnabled:()=>M3,hasOnlyExpressionInitializer:()=>_S,hasOverrideModifier:()=>y3,hasPossibleExternalModuleReference:()=>jre,hasProperty:()=>Is,hasPropertyAccessExpressionWithName:()=>Zw,hasQuestionToken:()=>CA,hasRecordedExternalHelpers:()=>Mae,hasResolutionModeOverride:()=>Moe,hasRestParameter:()=>UV,hasScopeMarker:()=>vre,hasStaticModifier:()=>mc,hasSyntacticModifier:()=>Qr,hasSyntacticModifiers:()=>Oie,hasTSFileExtension:()=>GA,hasTabstop:()=>Noe,hasTrailingDirectorySeparator:()=>Dv,hasType:()=>T4,hasTypeArguments:()=>eSe,hasZeroOrOneAsteriskCharacter:()=>uU,helperString:()=>QU,hostGetCanonicalFileName:()=>wv,hostUsesCaseSensitiveFileNames:()=>AR,idText:()=>Er,identifierIsThisKeyword:()=>qj,identifierToKeywordKind:()=>r0,identity:()=>tl,identitySourceMapConsumer:()=>jF,ignoreSourceNewlines:()=>$U,ignoredPaths:()=>V2,importDefaultHelper:()=>PW,importFromModuleSpecifier:()=>IC,importNameElisionDisabled:()=>cU,importStarHelper:()=>wk,indexOfAnyCharCode:()=>Jc,indexOfNode:()=>tR,indicesOf:()=>N2,inferredTypesContainingFile:()=>fD,injectClassNamedEvaluationHelperBlockIfMissing:()=>YF,injectClassThisAssignmentIfMissing:()=>sle,insertImports:()=>iM,insertLeadingStatement:()=>yTe,insertSorted:()=>by,insertStatementAfterCustomPrologue:()=>hS,insertStatementAfterStandardPrologue:()=>U1e,insertStatementsAfterCustomPrologue:()=>XV,insertStatementsAfterStandardPrologue:()=>Yh,intersperse:()=>io,intrinsicTagNameToString:()=>AU,introducesArgumentsExoticObject:()=>tie,inverseJsxOptionMap:()=>PP,isAbstractConstructorSymbol:()=>Zie,isAbstractModifier:()=>aae,isAccessExpression:()=>ws,isAccessibilityModifier:()=>BK,isAccessor:()=>Cy,isAccessorModifier:()=>lae,isAliasSymbolDeclaration:()=>nSe,isAliasableExpression:()=>QL,isAmbientModule:()=>ku,isAmbientPropertyDeclaration:()=>ij,isAnonymousFunctionDefinition:()=>PC,isAnyDirectorySeparator:()=>dV,isAnyImportOrBareOrAccessedRequire:()=>Vre,isAnyImportOrReExport:()=>TL,isAnyImportSyntax:()=>gS,isAnySupportedFileExtension:()=>RSe,isApplicableVersionedTypesKey:()=>Tw,isArgumentExpressionOfElementAccess:()=>NK,isArray:()=>To,isArrayBindingElement:()=>g4,isArrayBindingOrAssignmentElement:()=>fL,isArrayBindingOrAssignmentPattern:()=>FV,isArrayBindingPattern:()=>YE,isArrayLiteralExpression:()=>fd,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Jv,isArrayTypeNode:()=>Vk,isArrowFunction:()=>Gs,isAsExpression:()=>Uk,isAssertClause:()=>_ae,isAssertEntry:()=>dTe,isAssertionExpression:()=>mS,isAssertsKeyword:()=>iae,isAssignmentDeclaration:()=>AC,isAssignmentExpression:()=>Pc,isAssignmentOperator:()=>Ov,isAssignmentPattern:()=>mC,isAssignmentTarget:()=>eg,isAsteriskToken:()=>Fk,isAsyncFunction:()=>NC,isAsyncModifier:()=>pP,isAutoAccessorPropertyDeclaration:()=>Wd,isAwaitExpression:()=>Ky,isAwaitKeyword:()=>oH,isBigIntLiteral:()=>FW,isBinaryExpression:()=>mr,isBinaryOperatorToken:()=>Gae,isBindableObjectDefinePropertyCall:()=>SS,isBindableStaticAccessExpression:()=>OE,isBindableStaticElementAccessExpression:()=>n3,isBindableStaticNameExpression:()=>TS,isBindingElement:()=>$a,isBindingElementOfBareOrAccessedRequire:()=>uie,isBindingName:()=>pS,isBindingOrAssignmentElement:()=>pre,isBindingOrAssignmentPattern:()=>dL,isBindingPattern:()=>ta,isBlock:()=>Ko,isBlockOrCatchScoped:()=>QV,isBlockScope:()=>oj,isBlockScopedContainerTopLevel:()=>Gre,isBooleanLiteral:()=>fC,isBreakOrContinueStatement:()=>cC,isBreakStatement:()=>lTe,isBuildInfoFile:()=>wle,isBuilderProgram:()=>hce,isBundle:()=>pH,isBundleFileTextLike:()=>toe,isCallChain:()=>uS,isCallExpression:()=>sa,isCallExpressionTarget:()=>TK,isCallLikeExpression:()=>NE,isCallLikeOrFunctionLikeExpression:()=>zV,isCallOrNewExpression:()=>S_,isCallOrNewExpressionTarget:()=>AK,isCallSignatureDeclaration:()=>ZA,isCallToHelper:()=>dP,isCaseBlock:()=>yP,isCaseClause:()=>UR,isCaseKeyword:()=>cae,isCaseOrDefaultClause:()=>E4,isCatchClause:()=>r1,isCatchClauseVariableDeclaration:()=>Doe,isCatchClauseVariableDeclarationOrBindingElement:()=>ZV,isCheckJsEnabledForFile:()=>gk,isChildOfNodeWithKind:()=>q1e,isCircularBuildOrder:()=>bI,isClassDeclaration:()=>Ac,isClassElement:()=>Yc,isClassExpression:()=>Qc,isClassInstanceProperty:()=>ure,isClassLike:()=>di,isClassMemberModifier:()=>wV,isClassNamedEvaluationHelperBlock:()=>yI,isClassOrTypeElement:()=>h4,isClassStaticBlockDeclaration:()=>Rl,isClassThisAssignmentBlock:()=>BP,isCollapsedRange:()=>hSe,isColonToken:()=>nae,isCommaExpression:()=>Yk,isCommaListExpression:()=>hP,isCommaSequence:()=>AP,isCommaToken:()=>tae,isComment:()=>$7,isCommonJsExportPropertyAssignment:()=>B4,isCommonJsExportedExpression:()=>Zre,isCompoundAssignment:()=>WP,isComputedNonLiteralName:()=>AL,isComputedPropertyName:()=>Za,isConciseBody:()=>y4,isConditionalExpression:()=>jR,isConditionalTypeNode:()=>rI,isConstTypeReference:()=>Pg,isConstructSignatureDeclaration:()=>Bk,isConstructorDeclaration:()=>Ml,isConstructorTypeNode:()=>zR,isContextualKeyword:()=>s3,isContinueStatement:()=>sTe,isCustomPrologue:()=>DL,isDebuggerStatement:()=>cTe,isDeclaration:()=>Ju,isDeclarationBindingElement:()=>uL,isDeclarationFileName:()=>Su,isDeclarationName:()=>wg,isDeclarationNameOfEnumOrNamespace:()=>rU,isDeclarationReadonly:()=>O4,isDeclarationStatement:()=>Sre,isDeclarationWithTypeParameterChildren:()=>sj,isDeclarationWithTypeParameters:()=>aj,isDecorator:()=>Eu,isDecoratorTarget:()=>Jce,isDefaultClause:()=>EP,isDefaultImport:()=>NA,isDefaultModifier:()=>VW,isDefaultedExpandoInitializer:()=>die,isDeleteExpression:()=>pae,isDeleteTarget:()=>Rj,isDeprecatedDeclaration:()=>b5,isDestructuringAssignment:()=>Wv,isDiagnosticWithLocation:()=>_X,isDiskPathRoot:()=>pV,isDoStatement:()=>oTe,isDocumentRegistryEntry:()=>SO,isDotDotDotToken:()=>BW,isDottedName:()=>FC,isDynamicName:()=>c3,isESSymbolIdentifier:()=>aSe,isEffectiveExternalModule:()=>RA,isEffectiveModuleDeclaration:()=>Bre,isEffectiveStrictModeSourceFile:()=>rj,isElementAccessChain:()=>DV,isElementAccessExpression:()=>$s,isEmittedFileOfProgram:()=>zle,isEmptyArrayLiteral:()=>Uie,isEmptyBindingElement:()=>Une,isEmptyBindingPattern:()=>jne,isEmptyObjectLiteral:()=>Zj,isEmptyStatement:()=>cH,isEmptyStringLiteral:()=>_j,isEntityName:()=>Qd,isEntityNameExpression:()=>Bl,isEnumConst:()=>ME,isEnumDeclaration:()=>y0,isEnumMember:()=>i1,isEqualityOperatorKind:()=>d5,isEqualsGreaterThanToken:()=>rae,isExclamationToken:()=>zk,isExcludedFile:()=>tse,isExclusivelyTypeOnlyImportOrExport:()=>fJ,isExpandoPropertyDeclaration:()=>Y3,isExportAssignment:()=>kl,isExportDeclaration:()=>Yl,isExportModifier:()=>$A,isExportName:()=>nF,isExportNamespaceAsDefaultDeclaration:()=>M4,isExportOrDefaultModifier:()=>ew,isExportSpecifier:()=>Ku,isExportsIdentifier:()=>ES,isExportsOrModuleExportsOrAlias:()=>s1,isExpression:()=>yt,isExpressionNode:()=>Qh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>$ce,isExpressionOfOptionalChainRoot:()=>f4,isExpressionStatement:()=>Zc,isExpressionWithTypeArguments:()=>Vv,isExpressionWithTypeArgumentsInClassExtendsClause:()=>b3,isExternalModule:()=>sc,isExternalModuleAugmentation:()=>PE,isExternalModuleImportEqualsDeclaration:()=>c0,isExternalModuleIndicator:()=>mL,isExternalModuleNameRelative:()=>Xc,isExternalModuleReference:()=>Th,isExternalModuleSymbol:()=>lO,isExternalOrCommonJsModule:()=>Fp,isFileLevelReservedGeneratedIdentifier:()=>cL,isFileLevelUniqueName:()=>C4,isFileProbablyExternalModule:()=>rw,isFirstDeclarationOfSymbolParameter:()=>nX,isFixablePromiseHandler:()=>BX,isForInOrOfStatement:()=>Yx,isForInStatement:()=>KW,isForInitializer:()=>Sf,isForOfStatement:()=>Hk,isForStatement:()=>zS,isFunctionBlock:()=>kE,isFunctionBody:()=>GV,isFunctionDeclaration:()=>Tc,isFunctionExpression:()=>Os,isFunctionExpressionOrArrowFunction:()=>qE,isFunctionLike:()=>ea,isFunctionLikeDeclaration:()=>Bs,isFunctionLikeKind:()=>TA,isFunctionLikeOrClassStaticBlockDeclaration:()=>Xx,isFunctionOrConstructorTypeNode:()=>dre,isFunctionOrModuleBlock:()=>OV,isFunctionSymbol:()=>fie,isFunctionTypeNode:()=>bh,isFutureReservedKeyword:()=>rSe,isGeneratedIdentifier:()=>al,isGeneratedPrivateIdentifier:()=>dS,isGetAccessor:()=>My,isGetAccessorDeclaration:()=>tf,isGetOrSetAccessorDeclaration:()=>d4,isGlobalDeclaration:()=>HRe,isGlobalScopeAugmentation:()=>A_,isGrammarError:()=>wre,isHeritageClause:()=>nf,isHoistedFunction:()=>F4,isHoistedVariableStatement:()=>z4,isIdentifier:()=>Ve,isIdentifierANonContextualKeyword:()=>Mj,isIdentifierName:()=>yie,isIdentifierOrThisTypeNode:()=>Wae,isIdentifierPart:()=>e0,isIdentifierStart:()=>Jh,isIdentifierText:()=>Zp,isIdentifierTypePredicate:()=>nie,isIdentifierTypeReference:()=>Toe,isIfStatement:()=>FS,isIgnoredFileFromWildCardWatching:()=>Ow,isImplicitGlob:()=>fU,isImportAttribute:()=>hae,isImportAttributeName:()=>cre,isImportAttributes:()=>aI,isImportCall:()=>zp,isImportClause:()=>Eh,isImportDeclaration:()=>Mc,isImportEqualsDeclaration:()=>eu,isImportKeyword:()=>mP,isImportMeta:()=>oR,isImportOrExportSpecifier:()=>SA,isImportOrExportSpecifierName:()=>Tue,isImportSpecifier:()=>tp,isImportTypeAssertionContainer:()=>uTe,isImportTypeNode:()=>ag,isImportableFile:()=>RX,isInComment:()=>qv,isInCompoundLikeAssignment:()=>xj,isInExpressionContext:()=>X4,isInJSDoc:()=>kL,isInJSFile:()=>lr,isInJSXText:()=>iue,isInJsonFile:()=>$4,isInNonReferenceComment:()=>due,isInReferenceComment:()=>uue,isInRightSideOfInternalImportEqualsDeclaration:()=>F7,isInString:()=>SI,isInTemplateString:()=>OK,isInTopLevelContext:()=>H4,isInTypeQuery:()=>DS,isIncrementalCompilation:()=>sP,isIndexSignatureDeclaration:()=>XE,isIndexedAccessTypeNode:()=>WS,isInferTypeNode:()=>kS,isInfinityOrNaNString:()=>tP,isInitializedProperty:()=>Nw,isInitializedVariable:()=>dk,isInsideJsxElement:()=>X7,isInsideJsxElementOrAttribute:()=>rue,isInsideNodeModules:()=>yO,isInsideTemplateLiteral:()=>aO,isInstanceOfExpression:()=>E3,isInstantiatedModule:()=>Aq,isInterfaceDeclaration:()=>md,isInternalDeclaration:()=>HV,isInternalModuleImportEqualsDeclaration:()=>uR,isInternalName:()=>AH,isIntersectionTypeNode:()=>nI,isIntrinsicJsxName:()=>SR,isIterationStatement:()=>Py,isJSDoc:()=>Zm,isJSDocAllType:()=>Eae,isJSDocAugmentsTag:()=>uI,isJSDocAuthorTag:()=>_Te,isJSDocCallbackTag:()=>mH,isJSDocClassTag:()=>Tae,isJSDocCommentContainingNode:()=>S4,isJSDocConstructSignature:()=>_R,isJSDocDeprecatedTag:()=>yH,isJSDocEnumTag:()=>Jk,isJSDocFunctionType:()=>qR,isJSDocImplementsTag:()=>ZW,isJSDocIndexSignature:()=>Q4,isJSDocLikeText:()=>LH,isJSDocLink:()=>yae,isJSDocLinkCode:()=>bae,isJSDocLinkLike:()=>xA,isJSDocLinkPlain:()=>fTe,isJSDocMemberName:()=>b0,isJSDocNameReference:()=>SP,isJSDocNamepathType:()=>mTe,isJSDocNamespaceBody:()=>F1e,isJSDocNode:()=>$x,isJSDocNonNullableType:()=>XW,isJSDocNullableType:()=>HR,isJSDocOptionalParameter:()=>bk,isJSDocOptionalType:()=>fH,isJSDocOverloadTag:()=>JR,isJSDocOverrideTag:()=>$W,isJSDocParameterTag:()=>e_,isJSDocPrivateTag:()=>hH,isJSDocPropertyLikeTag:()=>uC,isJSDocPropertyTag:()=>Aae,isJSDocProtectedTag:()=>gH,isJSDocPublicTag:()=>_H,isJSDocReadonlyTag:()=>vH,isJSDocReturnTag:()=>QW,isJSDocSatisfiesExpression:()=>SU,isJSDocSatisfiesTag:()=>eF,isJSDocSeeTag:()=>hTe,isJSDocSignature:()=>E0,isJSDocTag:()=>Qx,isJSDocTemplateTag:()=>om,isJSDocThisTag:()=>bH,isJSDocThrowsTag:()=>vTe,isJSDocTypeAlias:()=>$f,isJSDocTypeAssertion:()=>XR,isJSDocTypeExpression:()=>o1,isJSDocTypeLiteral:()=>jS,isJSDocTypeTag:()=>TP,isJSDocTypedefTag:()=>US,isJSDocUnknownTag:()=>gTe,isJSDocUnknownType:()=>Sae,isJSDocVariadicType:()=>YW,isJSXTagName:()=>cR,isJsonEqual:()=>U3,isJsonSourceFile:()=>Yf,isJsxAttribute:()=>w_,isJsxAttributeLike:()=>b4,isJsxAttributeName:()=>Poe,isJsxAttributes:()=>n1,isJsxChild:()=>gL,isJsxClosingElement:()=>e1,isJsxClosingFragment:()=>gae,isJsxElement:()=>sg,isJsxExpression:()=>bP,isJsxFragment:()=>t1,isJsxNamespacedName:()=>Qm,isJsxOpeningElement:()=>k_,isJsxOpeningFragment:()=>lI,isJsxOpeningLikeElement:()=>ld,isJsxOpeningLikeElementTagName:()=>Kce,isJsxSelfClosingElement:()=>GS,isJsxSpreadAttribute:()=>cI,isJsxTagNameExpression:()=>_C,isJsxText:()=>KA,isJumpStatementTarget:()=>eO,isKeyword:()=>Bd,isKeywordOrPunctuation:()=>a3,isKnownSymbol:()=>tk,isLabelName:()=>RK,isLabelOfLabeledStatement:()=>xK,isLabeledStatement:()=>ZE,isLateVisibilityPaintedStatement:()=>k4,isLeftHandSideExpression:()=>Zd,isLeftHandSideOfAssignment:()=>_Se,isLet:()=>W4,isLineBreak:()=>Hu,isLiteralComputedPropertyDeclarationName:()=>$L,isLiteralExpression:()=>DE,isLiteralExpressionOfObject:()=>LV,isLiteralImportTypeNode:()=>Oy,isLiteralKind:()=>dC,isLiteralLikeAccess:()=>t3,isLiteralLikeElementAccess:()=>zL,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>G7,isLiteralTypeLikeExpression:()=>ATe,isLiteralTypeLiteral:()=>hre,isLiteralTypeNode:()=>Jy,isLocalName:()=>Gg,isLogicalOperator:()=>Gie,isLogicalOrCoalescingAssignmentExpression:()=>Xj,isLogicalOrCoalescingAssignmentOperator:()=>WC,isLogicalOrCoalescingBinaryExpression:()=>sk,isLogicalOrCoalescingBinaryOperator:()=>ak,isMappedTypeNode:()=>GR,isMemberName:()=>Kh,isMetaProperty:()=>_P,isMethodDeclaration:()=>Hl,isMethodOrAccessor:()=>AA,isMethodSignature:()=>yh,isMinusToken:()=>iH,isMissingDeclaration:()=>pTe,isMissingPackageJsonInfo:()=>vse,isModifier:()=>Aa,isModifierKind:()=>Pv,isModifierLike:()=>sl,isModuleAugmentationExternal:()=>tj,isModuleBlock:()=>L_,isModuleBody:()=>yre,isModuleDeclaration:()=>Xl,isModuleExportsAccessExpression:()=>Zh,isModuleIdentifier:()=>bj,isModuleName:()=>Bae,isModuleOrEnumDeclaration:()=>_L,isModuleReference:()=>Are,isModuleSpecifierLike:()=>i5,isModuleWithStringLiteralName:()=>L4,isNameOfFunctionDeclaration:()=>PK,isNameOfModuleDeclaration:()=>CK,isNamedClassElement:()=>L1e,isNamedDeclaration:()=>ad,isNamedEvaluation:()=>mp,isNamedEvaluationSource:()=>Lj,isNamedExportBindings:()=>CV,isNamedExports:()=>Nf,isNamedImportBindings:()=>VV,isNamedImports:()=>Bg,isNamedImportsOrExports:()=>D3,isNamedTupleMember:()=>BR,isNamespaceBody:()=>W1e,isNamespaceExport:()=>Sh,isNamespaceExportDeclaration:()=>qk,isNamespaceImport:()=>Yy,isNamespaceReexportDeclaration:()=>cie,isNewExpression:()=>$E,isNewExpressionTarget:()=>eM,isNoSubstitutionTemplateLiteral:()=>XA,isNode:()=>P1e,isNodeArray:()=>RE,isNodeArrayMultiLine:()=>Yie,isNodeDescendantOf:()=>WE,isNodeKind:()=>sL,isNodeLikeSystem:()=>eG,isNodeModulesDirectory:()=>Z6,isNodeWithPossibleHoistedDeclaration:()=>hie,isNonContextualKeyword:()=>Pj,isNonExportDefaultModifier:()=>xTe,isNonGlobalAmbientModule:()=>ej,isNonGlobalDeclaration:()=>Fue,isNonNullAccess:()=>Coe,isNonNullChain:()=>m4,isNonNullExpression:()=>oI,isNonStaticMethodOrAccessorWithPrivateName:()=>Qse,isNotEmittedOrPartiallyEmittedNode:()=>O1e,isNotEmittedStatement:()=>dH,isNullishCoalesce:()=>NV,isNumber:()=>Av,isNumericLiteral:()=>hp,isNumericLiteralName:()=>og,isObjectBindingElementWithoutPropertyName:()=>dO,isObjectBindingOrAssignmentElement:()=>pL,isObjectBindingOrAssignmentPattern:()=>WV,isObjectBindingPattern:()=>im,isObjectLiteralElement:()=>jV,isObjectLiteralElementLike:()=>Mg,isObjectLiteralExpression:()=>La,isObjectLiteralMethod:()=>Tm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>G4,isObjectTypeDeclaration:()=>FA,isOctalDigit:()=>r4,isOmittedExpression:()=>Gc,isOptionalChain:()=>qu,isOptionalChainRoot:()=>sC,isOptionalDeclaration:()=>rP,isOptionalJSDocPropertyLikeTag:()=>yk,isOptionalTypeNode:()=>jW,isOuterExpression:()=>iF,isOutermostOptionalChain:()=>lC,isOverrideModifier:()=>sae,isPackageJsonInfo:()=>xF,isPackedArrayLiteral:()=>bU,isParameter:()=>Ao,isParameterDeclaration:()=>zE,isParameterPropertyDeclaration:()=>pp,isParameterPropertyModifier:()=>pC,isParenthesizedExpression:()=>Gd,isParenthesizedTypeNode:()=>wS,isParseTreeNode:()=>aC,isPartOfTypeNode:()=>$h,isPartOfTypeQuery:()=>Y4,isPartiallyEmittedExpression:()=>JW,isPatternMatch:()=>R6,isPinnedComment:()=>P4,isPlainJsFile:()=>bL,isPlusToken:()=>rH,isPossiblyTypeArgumentPosition:()=>oO,isPostfixUnaryExpression:()=>sH,isPrefixUnaryExpression:()=>Xy,isPrivateIdentifier:()=>qi,isPrivateIdentifierClassElementDeclaration:()=>sd,isPrivateIdentifierPropertyAccessExpression:()=>Kx,isPrivateIdentifierSymbol:()=>Eie,isProgramBundleEmitBuildInfo:()=>tce,isProgramUptoDate:()=>bJ,isPrologueDirective:()=>Sm,isPropertyAccessChain:()=>p4,isPropertyAccessEntityNameExpression:()=>lk,isPropertyAccessExpression:()=>Fr,isPropertyAccessOrQualifiedName:()=>mre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>fre,isPropertyAssignment:()=>hc,isPropertyDeclaration:()=>qo,isPropertyName:()=>oc,isPropertyNameLiteral:()=>x_,isPropertySignature:()=>gp,isProtoSetter:()=>Sie,isPrototypeAccess:()=>zy,isPrototypePropertyAssignment:()=>VL,isPunctuation:()=>Cj,isPushOrUnshiftIdentifier:()=>kj,isQualifiedName:()=>Id,isQuestionDotToken:()=>GW,isQuestionOrExclamationToken:()=>Oae,isQuestionOrPlusOrMinusToken:()=>zae,isQuestionToken:()=>Hy,isRawSourceMap:()=>Kse,isReadonlyKeyword:()=>oae,isReadonlyKeywordOrPlusOrMinusToken:()=>Fae,isRecognizedTripleSlashComment:()=>YV,isReferenceFileLocation:()=>dD,isReferencedFile:()=>D0,isRegularExpressionLiteral:()=>tH,isRequireCall:()=>Td,isRequireVariableStatement:()=>vj,isRestParameter:()=>Xh,isRestTypeNode:()=>UW,isReturnStatement:()=>Im,isReturnStatementWithFixablePromiseHandler:()=>C5,isRightSideOfAccessExpression:()=>Qj,isRightSideOfInstanceofExpression:()=>jie,isRightSideOfPropertyAccess:()=>vD,isRightSideOfQualifiedName:()=>Yce,isRightSideOfQualifiedNameOrPropertyAccess:()=>zC,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Vie,isRootedDiskPath:()=>dp,isSameEntityName:()=>dR,isSatisfiesExpression:()=>lH,isScopeMarker:()=>gre,isSemicolonClassElement:()=>fae,isSetAccessor:()=>Mv,isSetAccessorDeclaration:()=>vp,isShebangTrivia:()=>gV,isShiftOperatorOrHigher:()=>CH,isShorthandAmbientModuleSymbol:()=>vC,isShorthandPropertyAssignment:()=>np,isSignedNumericLiteral:()=>l3,isSimpleCopiableExpression:()=>c1,isSimpleInlineableExpression:()=>O_,isSimpleParameter:()=>rle,isSimpleParameterList:()=>Cw,isSingleOrDoubleQuote:()=>wL,isSourceFile:()=>$i,isSourceFileFromLibrary:()=>xD,isSourceFileJS:()=>cd,isSourceFileNotJS:()=>X1e,isSourceFileNotJson:()=>gj,isSourceMapping:()=>Xse,isSpecialPropertyDeclaration:()=>pie,isSpreadAssignment:()=>jv,isSpreadElement:()=>$m,isStatement:()=>Hi,isStatementButNotDeclaration:()=>hL,isStatementOrBlock:()=>Tre,isStatementWithLocals:()=>kre,isStatic:()=>aa,isStaticModifier:()=>QA,isString:()=>Mo,isStringAKeyword:()=>iSe,isStringANonContextualKeyword:()=>LA,isStringAndEmptyAnonymousObjectIntersection:()=>cue,isStringDoubleQuoted:()=>e3,isStringLiteral:()=>Na,isStringLiteralLike:()=>ls,isStringLiteralOrJsxExpression:()=>Ire,isStringLiteralOrTemplate:()=>Nue,isStringOrNumericLiteralLike:()=>ef,isStringOrRegularExpressionOrTemplateLiteral:()=>zK,isStringTextContainingNode:()=>kV,isSuperCall:()=>yS,isSuperKeyword:()=>fP,isSuperOrSuperProperty:()=>K1e,isSuperProperty:()=>zd,isSupportedSourceFileName:()=>yoe,isSwitchStatement:()=>vP,isSyntaxList:()=>KR,isSyntheticExpression:()=>iTe,isSyntheticReference:()=>sI,isTagName:()=>DK,isTaggedTemplateExpression:()=>QE,isTaggedTemplateTag:()=>qce,isTemplateExpression:()=>HW,isTemplateHead:()=>YA,isTemplateLiteral:()=>IA,isTemplateLiteralKind:()=>Ny,isTemplateLiteralToken:()=>sre,isTemplateLiteralTypeNode:()=>uae,isTemplateLiteralTypeSpan:()=>aH,isTemplateMiddle:()=>nH,isTemplateMiddleOrTemplateTail:()=>_4,isTemplateSpan:()=>gP,isTemplateTail:()=>zW,isTextWhiteSpaceLike:()=>_ue,isThis:()=>yD,isThisContainerOrFunctionBlock:()=>aie,isThisIdentifier:()=>VE,isThisInTypeQuery:()=>kA,isThisInitializedDeclaration:()=>q4,isThisInitializedObjectBindingExpression:()=>lie,isThisProperty:()=>PL,isThisTypeNode:()=>jk,isThisTypeParameter:()=>nP,isThisTypePredicate:()=>J1e,isThrowStatement:()=>uH,isToken:()=>EA,isTokenKind:()=>MV,isTraceEnabled:()=>Vg,isTransientSymbol:()=>fh,isTrivia:()=>yR,isTryStatement:()=>BS,isTupleTypeNode:()=>tI,isTypeAlias:()=>HL,isTypeAliasDeclaration:()=>xm,isTypeAssertionExpression:()=>dae,isTypeDeclaration:()=>kR,isTypeElement:()=>fS,isTypeKeyword:()=>rM,isTypeKeywordToken:()=>HK,isTypeKeywordTokenOrIdentifier:()=>e5,isTypeLiteralNode:()=>yp,isTypeNode:()=>ji,isTypeNodeKind:()=>aU,isTypeOfExpression:()=>VR,isTypeOnlyExportDeclaration:()=>lre,isTypeOnlyImportDeclaration:()=>lL,isTypeOnlyImportOrExportDeclaration:()=>s0,isTypeOperatorNode:()=>OS,isTypeParameterDeclaration:()=>hl,isTypePredicateNode:()=>Gk,isTypeQueryNode:()=>eI,isTypeReferenceNode:()=>Df,isTypeReferenceType:()=>A4,isTypeUsableAsPropertyName:()=>tm,isUMDExportSymbol:()=>R3,isUnaryExpression:()=>BV,isUnaryExpressionWithWrite:()=>_re,isUnicodeIdentifierStart:()=>t4,isUnionTypeNode:()=>qy,isUnparsedNode:()=>PV,isUnparsedPrepend:()=>vae,isUnparsedSource:()=>VS,isUnparsedTextLike:()=>are,isUrl:()=>Rne,isValidBigIntString:()=>H3,isValidESSymbolDeclaration:()=>eie,isValidTypeOnlyAliasUseSite:()=>h0,isValueSignatureDeclaration:()=>gie,isVarAwaitUsing:()=>xL,isVarConst:()=>iR,isVarUsing:()=>RL,isVariableDeclaration:()=>Oi,isVariableDeclarationInVariableStatement:()=>bC,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>wE,isVariableDeclarationInitializedToRequire:()=>Z4,isVariableDeclarationList:()=>Vc,isVariableLike:()=>aR,isVariableLikeOrAccessor:()=>Qre,isVariableStatement:()=>Ll,isVoidExpression:()=>iI,isWatchSet:()=>vSe,isWhileStatement:()=>aTe,isWhiteSpaceLike:()=>Cg,isWhiteSpaceSingleLine:()=>E_,isWithStatement:()=>mae,isWriteAccess:()=>WA,isWriteOnlyAccess:()=>x3,isYieldExpression:()=>qW,jsxModeNeedsExplicitImport:()=>bX,keywordPart:()=>Ep,last:()=>Xa,lastOrUndefined:()=>el,length:()=>Ne,libMap:()=>hF,libs:()=>pw,lineBreakPart:()=>AD,linkNamePart:()=>Eue,linkPart:()=>iX,linkTextPart:()=>s5,listFiles:()=>zJ,loadModuleFromGlobalCache:()=>Dse,loadWithModeAwareCache:()=>Bw,makeIdentifierFromModuleName:()=>zre,makeImport:()=>Kv,makeImportIfNecessary:()=>mue,makeStringLiteral:()=>AI,mangleScopedPackageName:()=>aD,map:()=>Wt,mapAllOrFail:()=>Jb,mapDefined:()=>eo,mapDefinedEntries:()=>y6,mapDefinedIterator:()=>Kb,mapEntries:()=>Kte,mapIterator:()=>Qa,mapOneOrMany:()=>gX,mapToDisplayParts:()=>nb,matchFiles:()=>mU,matchPatternOrExact:()=>_U,matchedText:()=>lne,matchesExclude:()=>_F,maybeBind:()=>ia,maybeSetLocalizedDiagnosticMessages:()=>soe,memoize:()=>Sd,memoizeCached:()=>tne,memoizeOne:()=>ch,memoizeWeak:()=>IEe,metadataHelper:()=>pW,min:()=>XB,minAndMax:()=>Eoe,missingFileModifiedTime:()=>wp,modifierToFlag:()=>OA,modifiersToFlags:()=>N_,moduleOptionDeclaration:()=>YH,moduleResolutionIsEqualTo:()=>Mre,moduleResolutionNameAndModeGetter:()=>m7,moduleResolutionOptionDeclarations:()=>gF,moduleResolutionSupportsPackageJsonExportsAndImports:()=>BA,moduleResolutionUsesNodeModules:()=>t5,moduleSpecifiers:()=>l1,moveEmitHelpers:()=>Koe,moveRangeEnd:()=>A3,moveRangePastDecorators:()=>Og,moveRangePastModifiers:()=>C_,moveRangePos:()=>m0,moveSyntheticComments:()=>Hoe,mutateMap:()=>UC,mutateMapSkippingNewValues:()=>rg,needsParentheses:()=>c5,needsScopeMarker:()=>v4,newCaseClauseTracker:()=>T5,newPrivateEnvironment:()=>tle,noEmitNotification:()=>Pw,noEmitSubstitution:()=>jP,noTransformers:()=>Yq,noTruncationMaximumTruncationLength:()=>Z3,nodeCanBeDecorated:()=>K4,nodeHasName:()=>rL,nodeIsDecorated:()=>lR,nodeIsMissing:()=>Fl,nodeIsPresent:()=>Kf,nodeIsSynthesized:()=>Ys,nodeModuleNameResolver:()=>Sse,nodeModulesPathPart:()=>Ih,nodeNextJsonConfigResolver:()=>Tse,nodeOrChildIsDecorated:()=>LL,nodeOverlapsWithStartEnd:()=>V7,nodePosToString:()=>B1e,nodeSeenTracker:()=>TI,nodeStartsNewLexicalEnvironment:()=>wj,nodeToDisplayParts:()=>zRe,noop:()=>Ya,noopFileWatcher:()=>hD,normalizePath:()=>ha,normalizeSlashes:()=>Lu,not:()=>N6,notImplemented:()=>Jo,notImplementedResolver:()=>r7,nullNodeConverters:()=>VU,nullParenthesizerRules:()=>GU,nullTransformationContext:()=>UP,objectAllocator:()=>su,operatorPart:()=>aM,optionDeclarations:()=>lg,optionMapToObject:()=>pF,optionsAffectingProgramStructure:()=>tq,optionsForBuild:()=>rq,optionsForWatch:()=>tD,optionsHaveChanges:()=>Zx,optionsHaveModuleResolutionChanges:()=>Nre,or:()=>Jm,orderedRemoveItem:()=>wx,orderedRemoveItemAt:()=>Sy,outFile:()=>Ps,packageIdToPackageName:()=>D4,packageIdToString:()=>ky,paramHelper:()=>fW,parameterIsThisKeyword:()=>GE,parameterNamePart:()=>gue,parseBaseNodeFactory:()=>FH,parseBigInt:()=>Soe,parseBuildCommand:()=>iAe,parseCommandLine:()=>nAe,parseCommandLineWorker:()=>GH,parseConfigFileTextToJson:()=>jH,parseConfigFileWithSystem:()=>zxe,parseConfigHostFromCompilerHostLike:()=>f7,parseCustomTypeOption:()=>dF,parseIsolatedEntityName:()=>pI,parseIsolatedJSDocComment:()=>Jae,parseJSDocTypeExpressionForTests:()=>jTe,parseJsonConfigFileContent:()=>vAe,parseJsonSourceFileConfigFileContent:()=>cw,parseJsonText:()=>ow,parseListTypeOption:()=>Xae,parseNodeFactory:()=>Ah,parseNodeModuleFromPath:()=>yw,parsePackageName:()=>Sw,parsePseudoBigInt:()=>$C,parseValidBigInt:()=>yU,patchWriteFileEnsuringDirectory:()=>Ine,pathContainsNodeModules:()=>x0,pathIsAbsolute:()=>ZN,pathIsBareSpecifier:()=>fV,pathIsRelative:()=>Op,patternText:()=>sne,perfLogger:()=>id,performIncrementalCompilation:()=>jxe,performance:()=>yne,plainJSErrors:()=>_7,positionBelongsToNode:()=>LK,positionIsASICandidate:()=>f5,positionIsSynthesized:()=>Ym,positionsAreOnSameLine:()=>If,preProcessFile:()=>pDe,probablyUsesSemicolons:()=>gO,processCommentPragmas:()=>OH,processPragmasIntoFields:()=>WH,processTaggedTemplateExpression:()=>jq,programContainsEsModules:()=>fue,programContainsModules:()=>pue,projectReferenceIsEqualTo:()=>JV,propKeyHelper:()=>xW,propertyNamePart:()=>vue,pseudoBigIntToString:()=>HE,punctuationPart:()=>$u,pushIfUnique:()=>Ef,quote:()=>cM,quotePreferenceFromString:()=>XK,rangeContainsPosition:()=>tO,rangeContainsPositionExclusive:()=>nO,rangeContainsRange:()=>sf,rangeContainsRangeExclusive:()=>Qce,rangeContainsStartEnd:()=>rO,rangeEndIsOnSameLineAsRangeStart:()=>uk,rangeEndPositionsAreOnSameLine:()=>Kie,rangeEquals:()=>VB,rangeIsOnSingleLine:()=>CS,rangeOfNode:()=>gU,rangeOfTypeParameters:()=>vU,rangeOverlapsWithStartEnd:()=>tM,rangeStartIsOnSameLineAsRangeEnd:()=>Xie,rangeStartPositionsAreOnSameLine:()=>I3,readBuilderProgram:()=>R7,readConfigFile:()=>sw,readHelper:()=>AW,readJson:()=>BC,readJsonConfigFile:()=>Qae,readJsonOrUndefined:()=>eU,reduceEachLeadingCommentRange:()=>Lne,reduceEachTrailingCommentRange:()=>kne,reduceLeft:()=>rd,reduceLeftIterator:()=>Pr,reducePathComponents:()=>cS,refactor:()=>RI,regExpEscape:()=>ISe,relativeComplement:()=>Xte,removeAllComments:()=>Pk,removeEmitHelper:()=>tTe,removeExtension:()=>hk,removeFileExtension:()=>Ad,removeIgnoredPath:()=>v7,removeMinAndVersionNumbers:()=>YB,removeOptionality:()=>oue,removePrefix:()=>XN,removeSuffix:()=>kx,removeTrailingDirectorySeparator:()=>Qb,repeatString:()=>cO,replaceElement:()=>HB,replaceFirstStar:()=>jA,resolutionExtensionIsTSOrJson:()=>KC,resolveConfigFileProjectName:()=>YJ,resolveJSModule:()=>bse,resolveLibrary:()=>DF,resolveModuleName:()=>iD,resolveModuleNameFromCache:()=>tIe,resolvePackageNameToPackageJson:()=>aq,resolvePath:()=>Iy,resolveProjectReferencePath:()=>pD,resolveTripleslashReference:()=>s7,resolveTypeReferenceDirective:()=>hse,resolvingEmptyArray:()=>Q3,restHelper:()=>bW,returnFalse:()=>qm,returnNoopFileWatcher:()=>gD,returnTrue:()=>Iv,returnUndefined:()=>Yb,returnsPromise:()=>zX,runInitializersHelper:()=>_W,sameFlatMap:()=>Cx,sameMap:()=>Zo,sameMapping:()=>VIe,scanShebangTrivia:()=>vV,scanTokenAtPosition:()=>Xre,scanner:()=>Qu,screenStartingMessageCodes:()=>x7,semanticDiagnosticsOptionDeclarations:()=>QH,serializeCompilerOptions:()=>fF,server:()=>dOe,servicesVersion:()=>ape,setCommentRange:()=>ac,setConfigFileInOptions:()=>KH,setConstantValue:()=>Joe,setEachParent:()=>LR,setEmitFlags:()=>pr,setFunctionNameHelper:()=>RW,setGetSourceFileAsHashVersioned:()=>I7,setIdentifierAutoGenerate:()=>kk,setIdentifierGeneratedImportReference:()=>$oe,setIdentifierTypeArguments:()=>Gv,setInternalEmitFlags:()=>Mk,setLocalizedDiagnosticMessages:()=>aoe,setModuleDefaultHelper:()=>CW,setNodeFlags:()=>Ioe,setObjectAllocator:()=>ooe,setOriginalNode:()=>Nr,setParent:()=>Ha,setParentRecursive:()=>Gy,setPrivateIdentifier:()=>KS,setSnippetElement:()=>YU,setSourceMapRange:()=>Da,setStackTraceLimit:()=>qEe,setStartsOnNewLine:()=>lW,setSyntheticLeadingComments:()=>v0,setSyntheticTrailingComments:()=>HA,setSys:()=>$Ee,setSysLog:()=>Tne,setTextRange:()=>dt,setTextRangeEnd:()=>MR,setTextRangePos:()=>QC,setTextRangePosEnd:()=>gh,setTextRangePosWidth:()=>ZC,setTokenSourceMapRange:()=>Uoe,setTypeNode:()=>Xoe,setUILocale:()=>ine,setValueDeclaration:()=>jL,shouldAllowImportingTsExtension:()=>sD,shouldPreserveConstEnums:()=>KE,shouldUseUriStyleNodeCoreModules:()=>E5,showModuleSpecifier:()=>eoe,signatureHasLiteralTypes:()=>Iq,signatureHasRestParameter:()=>Yu,signatureToDisplayParts:()=>oX,single:()=>UB,singleElementArray:()=>hA,singleIterator:()=>Jte,singleOrMany:()=>sh,singleOrUndefined:()=>ah,skipAlias:()=>bu,skipAssertions:()=>ETe,skipConstraint:()=>qK,skipOuterExpressions:()=>$l,skipParentheses:()=>hs,skipPartiallyEmittedExpressions:()=>bm,skipTrivia:()=>Pa,skipTypeChecking:()=>YC,skipTypeParentheses:()=>YL,skipWhile:()=>une,sliceAfter:()=>hU,some:()=>bt,sort:()=>iS,sortAndDeduplicate:()=>HN,sortAndDeduplicateDiagnostics:()=>Ux,sourceFileAffectingCompilerOptions:()=>vF,sourceFileMayBeEmitted:()=>xS,sourceMapCommentRegExp:()=>GF,sourceMapCommentRegExpDontCareLineStart:()=>Lq,spacePart:()=>wl,spanMap:()=>FB,spreadArrayHelper:()=>IW,stableSort:()=>Sv,startEndContainsRange:()=>MK,startEndOverlapsWithStartEnd:()=>j7,startOnNewLine:()=>Xu,startTracing:()=>bne,startsWith:()=>uo,startsWithDirectory:()=>_V,startsWithUnderscore:()=>yX,startsWithUseStrict:()=>Cae,stringContainsAt:()=>Wue,stringToToken:()=>IE,stripQuotes:()=>Zf,supportedDeclarationExtensions:()=>Ik,supportedJSExtensions:()=>FU,supportedJSExtensionsFlat:()=>OR,supportedLocaleDirectories:()=>qV,supportedTSExtensions:()=>wR,supportedTSExtensionsFlat:()=>WU,supportedTSImplementationExtensions:()=>xk,suppressLeadingAndTrailingTrivia:()=>Sp,suppressLeadingTrivia:()=>cX,suppressTrailingTrivia:()=>xue,symbolEscapedNameNoDefault:()=>r5,symbolName:()=>El,symbolNameNoDefault:()=>n5,symbolPart:()=>hue,symbolToDisplayParts:()=>sM,syntaxMayBeASICandidate:()=>IX,syntaxRequiresTrailingSemicolonOrASI:()=>p5,sys:()=>gu,sysLog:()=>B2,tagNamesAreEquivalent:()=>T0,takeWhile:()=>P6,targetOptionDeclaration:()=>mw,templateObjectHelper:()=>TW,testFormatSettings:()=>Hce,textChangeRangeIsUnchanged:()=>Gne,textChangeRangeNewSpan:()=>oC,textChanges:()=>_r,textOrKeywordPart:()=>rX,textPart:()=>cf,textRangeContainsPositionInclusive:()=>eL,textSpanContainsPosition:()=>EV,textSpanContainsTextSpan:()=>Wne,textSpanEnd:()=>Kl,textSpanIntersection:()=>Bne,textSpanIntersectsWith:()=>a4,textSpanIntersectsWithPosition:()=>zne,textSpanIntersectsWithTextSpan:()=>v1e,textSpanIsEmpty:()=>One,textSpanOverlap:()=>Fne,textSpanOverlapsWith:()=>g1e,textSpansEqual:()=>TD,textToKeywordObj:()=>Q2,timestamp:()=>Xs,toArray:()=>mA,toBuilderFileEmit:()=>ice,toBuilderStateFileInfoForMultiEmit:()=>rce,toEditorSettings:()=>OO,toFileNameLowerCase:()=>lh,toLowerCase:()=>ene,toPath:()=>il,toProgramEmitPending:()=>oce,tokenIsIdentifierOrKeyword:()=>od,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Pne,tokenToString:()=>pa,trace:()=>bo,tracing:()=>sr,tracingEnabled:()=>O2,transform:()=>uCe,transformClassFields:()=>ple,transformDeclarations:()=>Kq,transformECMAScriptModule:()=>Jq,transformES2015:()=>Rle,transformES2016:()=>xle,transformES2017:()=>hle,transformES2018:()=>gle,transformES2019:()=>vle,transformES2020:()=>yle,transformES2021:()=>ble,transformES5:()=>Dle,transformESDecorators:()=>_le,transformESNext:()=>Ele,transformGenerators:()=>Nle,transformJsx:()=>Ile,transformLegacyDecorators:()=>mle,transformModule:()=>qq,transformNamedEvaluation:()=>bp,transformNodeModule:()=>Ple,transformNodes:()=>Mw,transformSystemModule:()=>Cle,transformTypeScript:()=>dle,transpile:()=>bDe,transpileModule:()=>nde,transpileOptionValueCompilerOptions:()=>nq,tryAddToSet:()=>Xb,tryAndIgnoreErrors:()=>h5,tryCast:()=>ri,tryDirectoryExists:()=>_5,tryExtractTSExtension:()=>S3,tryFileExists:()=>vO,tryGetClassExtendingExpressionWithTypeArguments:()=>Yj,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>$j,tryGetDirectories:()=>m5,tryGetExtensionFromPath:()=>Fg,tryGetImportFromModuleSpecifier:()=>UL,tryGetJSDocSatisfiesTypeNode:()=>X3,tryGetModuleNameFromFile:()=>Qk,tryGetModuleSpecifierFromDeclaration:()=>pR,tryGetNativePerformanceHooks:()=>hne,tryGetPropertyAccessOrIdentifierToString:()=>ck,tryGetPropertyNameOfBindingOrAssignmentElement:()=>aF,tryGetSourceMappingURL:()=>Jse,tryGetTextOfPropertyName:()=>yC,tryIOAndConsumeErrors:()=>g5,tryParseJson:()=>T3,tryParsePattern:()=>PR,tryParsePatterns:()=>V3,tryParseRawSourceMap:()=>Pq,tryReadDirectory:()=>pX,tryReadFile:()=>DP,tryRemoveDirectoryPrefix:()=>pU,tryRemoveExtension:()=>boe,tryRemovePrefix:()=>ZB,tryRemoveSuffix:()=>ane,typeAcquisitionDeclarations:()=>_w,typeAliasNamePart:()=>yue,typeDirectiveIsEqualTo:()=>Lre,typeKeywords:()=>A5,typeParameterNamePart:()=>bue,typeToDisplayParts:()=>fO,unchangedPollThresholds:()=>G2,unchangedTextChangeRange:()=>vL,unescapeLeadingUnderscores:()=>Vi,unmangleScopedPackageName:()=>Aw,unorderedRemoveItem:()=>_A,unorderedRemoveItemAt:()=>$B,unreachableCodeIsError:()=>coe,unusedLabelIsError:()=>uoe,unwrapInnermostStatementOfLabel:()=>fj,updateErrorForNoInputFiles:()=>mF,updateLanguageServiceSourceFile:()=>SY,updateMissingFilePathsWatch:()=>iJ,updateResolutionField:()=>nD,updateSharedExtendedConfigFileWatcher:()=>o7,updateSourceFile:()=>kH,updateWatchingWildcardDirectories:()=>ww,usesExtensionsOnImports:()=>goe,usingSingleLineStringWriter:()=>hC,utf16EncodeAsString:()=>jx,validateLocaleAndSetLanguage:()=>b1e,valuesHelper:()=>DW,version:()=>Re,versionMajorMinor:()=>_e,visitArray:()=>Rw,visitCommaListElements:()=>Dw,visitEachChild:()=>xn,visitFunctionBody:()=>af,visitIterationBody:()=>xd,visitLexicalEnvironment:()=>Nq,visitNode:()=>nt,visitNodes:()=>jn,visitParameterList:()=>Dl,walkUpBindingElementsAndPatterns:()=>Hx,walkUpLexicalEnvironments:()=>ele,walkUpOuterExpressions:()=>Pae,walkUpParenthesizedExpressions:()=>kv,walkUpParenthesizedTypes:()=>XL,walkUpParenthesizedTypesAndGetParentAndChild:()=>vie,whitespaceOrMapCommentRegExp:()=>VF,writeCommentRange:()=>IR,writeFile:()=>LC,writeFileEnsuringDirectories:()=>Hj,zipWith:()=>gi});var fOe=I({"src/typescript/_namespaces/ts.ts"(){ra(),Xw(),si(),ob(),Ast()}}),Ist=z({"src/typescript/typescript.ts"(e,t){fOe(),fOe(),typeof console<"u"&&(N.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=pOe}});return Ist()})();typeof WB<"u"&&WB.exports&&(WB.exports=bE);var _ze=bE.createClassifier,bEe=bE.createLanguageService,hze=bE.displayPartsToString,gze=bE.EndOfLineState,vze=bE.flattenDiagnosticMessageText,yze=bE.IndentStyle,UN=bE.ScriptKind,bze=bE.ScriptTarget,Eze=bE.TokenClass,EEe=bE,co={};co["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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es5" /> +/// <reference lib="dom" /> +/// <reference lib="webworker.importscripts" /> +/// <reference lib="scripthost" /> +`,co["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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/** + * 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<PropertyKey, unknown> & 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<This, Value> { + /** + * 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<This, Value> { + /** + * 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; +} +`,co["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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void; +declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void; +declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void; +declare type ParameterDecorator = (target: Object, propertyKey: string | symbol | undefined, parameterIndex: number) => void; +`,co["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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +///////////////////////////// +/// Window Async Iterable APIs +///////////////////////////// + +interface FileSystemDirectoryHandle { + [Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>; + entries(): AsyncIterableIterator<[string, FileSystemHandle]>; + keys(): AsyncIterableIterator<string>; + values(): AsyncIterableIterator<FileSystemHandle>; +} +`,co["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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +///////////////////////////// +/// 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<string, number>; + 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<T = any> 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<T = any> 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<any>; + 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<string, string>; +} + +interface PushSubscriptionOptionsInit { + applicationServerKey?: BufferSource | string | null; + userVisibleOnly?: boolean; +} + +interface QueuingStrategy<T = any> { + highWaterMark?: number; + size?: QueuingStrategySize<T>; +} + +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<T> { + done: true; + value?: T; +} + +interface ReadableStreamReadValueResult<T> { + done: false; + value: T; +} + +interface ReadableWritablePair<R = any, W = any> { + readable: ReadableStream<R>; + /** + * 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<W>; +} + +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<I = any, O = any> { + flush?: TransformerFlushCallback<O>; + readableType?: undefined; + start?: TransformerStartCallback<O>; + transform?: TransformerTransformCallback<I, O>; + 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<void>; + start?: (controller: ReadableByteStreamController) => any; + type: "bytes"; +} + +interface UnderlyingDefaultSource<R = any> { + cancel?: UnderlyingSourceCancelCallback; + pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>; + start?: (controller: ReadableStreamDefaultController<R>) => any; + type?: undefined; +} + +interface UnderlyingSink<W = any> { + abort?: UnderlyingSinkAbortCallback; + close?: UnderlyingSinkCloseCallback; + start?: UnderlyingSinkStartCallback; + type?: undefined; + write?: UnderlyingSinkWriteCallback<W>; +} + +interface UnderlyingSource<R = any> { + autoAllocateChunkSize?: number; + cancel?: UnderlyingSourceCancelCallback; + pull?: UnderlyingSourcePullCallback<R>; + start?: UnderlyingSourceStartCallback<R>; + 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<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AbortSignalEventMap>(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<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AbstractWorkerEventMap>(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<Animation>; + /** [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<Animation>; + /** [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<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AnimationEventMap>(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<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(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<void>; + /** [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<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/suspend) */ + suspend(): Promise<void>; + addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof BaseAudioContextEventMap>(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<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(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<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AudioWorkletNodeEventMap>(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<AudioBuffer>; + addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof BaseAudioContextEventMap>(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<ArrayBuffer>; + /** [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<Uint8Array>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */ + text(): Promise<string>; +} + +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<Uint8Array> | 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<ArrayBuffer>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */ + blob(): Promise<Blob>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */ + formData(): Promise<FormData>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */ + json(): Promise<any>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */ + text(): Promise<string>; +} + +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<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof BroadcastChannelEventMap>(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 a 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<ArrayBufferView> { + /** [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<ArrayBufferView>; +} + +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’t 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<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AnimationEventMap>(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<string>; +} + +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<CSSStyleSheet>; + /** [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<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AnimationEventMap>(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<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */ + addAll(requests: RequestInfo[]): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete) */ + delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys) */ + keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match) */ + match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll) */ + matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put) */ + put(request: RequestInfo | URL, response: Response): Promise<void>; +} + +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<boolean>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) */ + has(cacheName: string): Promise<boolean>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) */ + keys(): Promise<string[]>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) */ + match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */ + open(cacheName: string): Promise<Cache>; +} + +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<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof MediaStreamTrackEventMap>(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 <canvas> 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<ClipboardItems>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/readText) */ + readText(): Promise<string>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/write) */ + write(data: ClipboardItems): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/writeText) */ + writeText(data: string): Promise<void>; +} + +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<string>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType) */ + getType(type: string): Promise<Blob>; +} + +declare var ClipboardItem: { + prototype: ClipboardItem; + new(items: Record<string, string | Blob | PromiseLike<string | Blob>>, 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<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(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 a 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<Credential | null>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/get) */ + get(options?: CredentialRequestOptions): Promise<Credential | null>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/preventSilentAccess) */ + preventSilentAccess(): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/store) */ + store(credential: Credential): Promise<void>; +} + +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<T extends ArrayBufferView | null>(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<CustomElementConstructor>; +} + +declare var CustomElementRegistry: { + prototype: CustomElementRegistry; + new(): CustomElementRegistry; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ +interface CustomEvent<T = any> 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<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>; +}; + +/** + * 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 HTML attribute 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<string>; + /** + * 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<HTMLAnchorElement>; + /** + * 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<HTMLEmbedElement>; + /** + * 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<HTMLFormElement>; + /** + * @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<HTMLImageElement>; + /** + * 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<HTMLAnchorElement | HTMLAreaElement>; + /** + * 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<HTMLEmbedElement>; + /** + * 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<HTMLScriptElement>; + /** [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<T extends Node>(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<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]; + /** @deprecated */ + createElement<K extends keyof HTMLElementDeprecatedTagNameMap>(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<K extends keyof SVGElementTagNameMap>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K]; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement; + createElementNS<K extends keyof MathMLElementTagNameMap>(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<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPictureInPicture) */ + exitPictureInPicture(): Promise<void>; + /** [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<Element>; + /** + * 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<HTMLElement>; + /** + * 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<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>; + getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>; + getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>; + /** @deprecated */ + getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>; + getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>; + /** + * 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<HTMLElement>; + getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>; + getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>; + getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>; + /** + * 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<boolean>; + /** + * 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<T extends Node>(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<void>; + /** + * 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<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof DocumentEventMap>(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<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null; + closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null; + closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null; + closest<E extends Element = Element>(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<Element>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) */ + getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>; + getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>; + getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>; + /** @deprecated */ + getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>; + getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) */ + getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>; + getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>; + getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>; + getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>; + /** + * 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<void>; + /** [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<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof ElementEventMap>(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<K extends keyof EventSourceEventMap>(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<K extends keyof EventSourceEventMap>(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 § 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 <input> element; this lets you access the list of files selected with the <input type="file"> 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<FileReader>; + "error": ProgressEvent<FileReader>; + "load": ProgressEvent<FileReader>; + "loadend": ProgressEvent<FileReader>; + "loadstart": ProgressEvent<FileReader>; + "progress": ProgressEvent<FileReader>; +} + +/** + * 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<FileReader>) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */ + onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */ + onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */ + onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */ + onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */ + onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => 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<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof FileReaderEventMap>(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<FileSystemDirectoryHandle>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) */ + getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) */ + removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */ + resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>; +} + +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<FileSystemWritableFileStream>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) */ + getFile(): Promise<File>; +} + +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<boolean>; +} + +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<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) */ + truncate(size: number): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) */ + write(data: FileSystemWriteChunkType): Promise<void>; +} + +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<FontFace>; + /** [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<FontFace>; +} + +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<FontFaceSet>; + /** [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<FontFace[]>; + forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void; + addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof FontFaceSetEventMap>(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<FontFace>; +} + +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<number>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/buttons) */ + readonly buttons: ReadonlyArray<GamepadButton>; + /** [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<GamepadHapticsResult>; + reset(): Promise<GamepadHapticsResult>; +} + +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<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof GlobalEventHandlersEventMap>(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<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(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 <area> 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<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(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 <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAudioElement) + */ +interface HTMLAudioElement extends HTMLMediaElement { + addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLAudioElement: { + prototype: HTMLAudioElement; + new(): HTMLAudioElement; +}; + +/** + * A HTML line break element (<br>). It inherits from HTMLElement. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBRElement) + */ +interface HTMLBRElement extends HTMLElement { + /** + * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBRElement/clear) + */ + clear: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLBRElement: { + prototype: HTMLBRElement; + new(): HTMLBRElement; +}; + +/** + * Contains the base URI for a document. This object inherits all of the properties and methods as described in the HTMLElement interface. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement) + */ +interface HTMLBaseElement extends HTMLElement { + /** + * Gets or sets the baseline URL on which relative links are based. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/href) + */ + href: string; + /** + * Sets or retrieves the window or frame at which to target content. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/target) + */ + target: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLBaseElement: { + prototype: HTMLBaseElement; + new(): HTMLBaseElement; +}; + +interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { +} + +/** + * Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement) + */ +interface HTMLBodyElement extends HTMLElement, WindowEventHandlers { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/aLink) + */ + aLink: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/background) + */ + background: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/bgColor) + */ + bgColor: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/link) + */ + link: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/text) + */ + text: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/vLink) + */ + vLink: string; + addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLBodyElement: { + prototype: HTMLBodyElement; + new(): HTMLBodyElement; +}; + +/** + * Provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <button> elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement) + */ +interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/disabled) */ + disabled: boolean; + /** + * Retrieves a reference to the form that the object is embedded in. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/form) + */ + readonly form: HTMLFormElement | null; + /** + * Overrides the action attribute (where the data on a form is sent) on the parent form element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formAction) + */ + formAction: string; + /** + * Used to override the encoding (formEnctype attribute) specified on the form element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formEnctype) + */ + formEnctype: string; + /** + * Overrides the submit method attribute previously specified on a form element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formMethod) + */ + formMethod: string; + /** + * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formNoValidate) + */ + formNoValidate: boolean; + /** + * Overrides the target attribute on a form element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formTarget) + */ + formTarget: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/labels) */ + readonly labels: NodeListOf<HTMLLabelElement>; + /** + * Sets or retrieves the name of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/name) + */ + name: string; + /** + * Gets the classification and default behavior of the button. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/type) + */ + type: "submit" | "reset" | "button"; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validationMessage) + */ + readonly validationMessage: string; + /** + * Returns a ValidityState object that represents the validity states of an element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validity) + */ + readonly validity: ValidityState; + /** + * Sets or retrieves the default or selected value of the control. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/value) + */ + value: string; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/willValidate) + */ + readonly willValidate: boolean; + /** Returns whether a form will validate when it is submitted, without having to submit it. */ + checkValidity(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/reportValidity) */ + reportValidity(): boolean; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + */ + setCustomValidity(error: string): void; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLButtonElement: { + prototype: HTMLButtonElement; + new(): HTMLButtonElement; +}; + +/** + * Provides properties and methods for manipulating the layout and presentation of <canvas> elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement) + */ +interface HTMLCanvasElement extends HTMLElement { + /** + * Gets or sets the height of a canvas element on a document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/height) + */ + height: number; + /** + * Gets or sets the width of a canvas element on a document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/width) + */ + width: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/captureStream) */ + captureStream(frameRequestRate?: number): MediaStream; + /** + * Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas. + * @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl"); + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/getContext) + */ + getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null; + getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null; + getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null; + getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null; + getContext(contextId: string, options?: any): RenderingContext | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toBlob) */ + toBlob(callback: BlobCallback, type?: string, quality?: any): void; + /** + * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element. + * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toDataURL) + */ + toDataURL(type?: string, quality?: any): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen) */ + transferControlToOffscreen(): OffscreenCanvas; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLCanvasElement: { + prototype: HTMLCanvasElement; + new(): HTMLCanvasElement; +}; + +/** + * A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection) + */ +interface HTMLCollectionBase { + /** + * Sets or retrieves the number of objects in a collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/length) + */ + readonly length: number; + /** + * Retrieves an object from various collections. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/item) + */ + item(index: number): Element | null; + [index: number]: Element; +} + +interface HTMLCollection extends HTMLCollectionBase { + /** + * Retrieves a select object or an object from an options collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/namedItem) + */ + namedItem(name: string): Element | null; +} + +declare var HTMLCollection: { + prototype: HTMLCollection; + new(): HTMLCollection; +}; + +interface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase { + item(index: number): T | null; + namedItem(name: string): T | null; + [index: number]: T; +} + +/** + * Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement) + */ +interface HTMLDListElement extends HTMLElement { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement/compact) + */ + compact: boolean; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLDListElement: { + prototype: HTMLDListElement; + new(): HTMLDListElement; +}; + +/** + * Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataElement) + */ +interface HTMLDataElement extends HTMLElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataElement/value) */ + value: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLDataElement: { + prototype: HTMLDataElement; + new(): HTMLDataElement; +}; + +/** + * Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataListElement) + */ +interface HTMLDataListElement extends HTMLElement { + /** + * Returns an HTMLCollection of the option elements of the datalist element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataListElement/options) + */ + readonly options: HTMLCollectionOf<HTMLOptionElement>; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLDataListElement: { + prototype: HTMLDataListElement; + new(): HTMLDataListElement; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement) */ +interface HTMLDetailsElement extends HTMLElement { + name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/open) */ + open: boolean; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLDetailsElement: { + prototype: HTMLDetailsElement; + new(): HTMLDetailsElement; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement) */ +interface HTMLDialogElement extends HTMLElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/open) */ + open: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/returnValue) */ + returnValue: string; + /** + * Closes the dialog element. + * + * The argument, if provided, provides a return value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close) + */ + close(returnValue?: string): void; + /** + * Displays the dialog element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/show) + */ + show(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/showModal) */ + showModal(): void; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLDialogElement: { + prototype: HTMLDialogElement; + new(): HTMLDialogElement; +}; + +/** @deprecated */ +interface HTMLDirectoryElement extends HTMLElement { + /** @deprecated */ + compact: boolean; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +/** @deprecated */ +declare var HTMLDirectoryElement: { + prototype: HTMLDirectoryElement; + new(): HTMLDirectoryElement; +}; + +/** + * Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDivElement) + */ +interface HTMLDivElement extends HTMLElement { + /** + * Sets or retrieves how the object is aligned with adjacent text. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDivElement/align) + */ + align: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLDivElement: { + prototype: HTMLDivElement; + new(): HTMLDivElement; +}; + +/** @deprecated use Document */ +interface HTMLDocument extends Document { + addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +/** @deprecated */ +declare var HTMLDocument: { + prototype: HTMLDocument; + new(): HTMLDocument; +}; + +interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap { +} + +/** + * Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement) + */ +interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKey) */ + accessKey: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) */ + readonly accessKeyLabel: string; + autocapitalize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) */ + dir: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/draggable) */ + draggable: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden) */ + hidden: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert) */ + inert: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/innerText) */ + innerText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang) */ + lang: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight) */ + readonly offsetHeight: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft) */ + readonly offsetLeft: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent) */ + readonly offsetParent: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop) */ + readonly offsetTop: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth) */ + readonly offsetWidth: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText) */ + outerText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover) */ + popover: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck) */ + spellcheck: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) */ + title: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate) */ + translate: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals) */ + attachInternals(): ElementInternals; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/click) */ + click(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidePopover) */ + hidePopover(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover) */ + showPopover(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover) */ + togglePopover(force?: boolean): boolean; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLElement: { + prototype: HTMLElement; + new(): HTMLElement; +}; + +/** + * Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement) + */ +interface HTMLEmbedElement extends HTMLElement { + /** @deprecated */ + align: string; + /** Sets or retrieves the height of the object. */ + height: string; + /** + * Sets or retrieves the name of the object. + * @deprecated + */ + name: string; + /** Sets or retrieves a URL to be loaded by the object. */ + src: string; + type: string; + /** Sets or retrieves the width of the object. */ + width: string; + getSVGDocument(): Document | null; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLEmbedElement: { + prototype: HTMLEmbedElement; + new(): HTMLEmbedElement; +}; + +/** + * Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement) + */ +interface HTMLFieldSetElement extends HTMLElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/disabled) */ + disabled: boolean; + /** + * Returns an HTMLCollection of the form controls in the element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/elements) + */ + readonly elements: HTMLCollection; + /** + * Retrieves a reference to the form that the object is embedded in. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/form) + */ + readonly form: HTMLFormElement | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/name) */ + name: string; + /** + * Returns the string "fieldset". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/type) + */ + readonly type: string; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validationMessage) + */ + readonly validationMessage: string; + /** + * Returns a ValidityState object that represents the validity states of an element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validity) + */ + readonly validity: ValidityState; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/willValidate) + */ + readonly willValidate: boolean; + /** Returns whether a form will validate when it is submitted, without having to submit it. */ + checkValidity(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/reportValidity) */ + reportValidity(): boolean; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + */ + setCustomValidity(error: string): void; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLFieldSetElement: { + prototype: HTMLFieldSetElement; + new(): HTMLFieldSetElement; +}; + +/** + * Implements the document object model (DOM) representation of the font element. The HTML Font Element <font> defines the font size, font face and color of text. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement) + */ +interface HTMLFontElement extends HTMLElement { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/color) + */ + color: string; + /** + * Sets or retrieves the current typeface family. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/face) + */ + face: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/size) + */ + size: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +/** @deprecated */ +declare var HTMLFontElement: { + prototype: HTMLFontElement; + new(): HTMLFontElement; +}; + +/** + * A collection of HTML form control elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection) + */ +interface HTMLFormControlsCollection extends HTMLCollectionBase { + /** + * Returns the item with ID or name name from the collection. + * + * If there are multiple matching items, then a RadioNodeList object containing all those elements is returned. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection/namedItem) + */ + namedItem(name: string): RadioNodeList | Element | null; +} + +declare var HTMLFormControlsCollection: { + prototype: HTMLFormControlsCollection; + new(): HTMLFormControlsCollection; +}; + +/** + * A <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement) + */ +interface HTMLFormElement extends HTMLElement { + /** + * Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/acceptCharset) + */ + acceptCharset: string; + /** + * Sets or retrieves the URL to which the form content is sent for processing. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/action) + */ + action: string; + /** + * Specifies whether autocomplete is applied to an editable text field. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/autocomplete) + */ + autocomplete: AutoFillBase; + /** + * Retrieves a collection, in source order, of all controls in a given form. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/elements) + */ + readonly elements: HTMLFormControlsCollection; + /** + * Sets or retrieves the MIME encoding for the form. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/encoding) + */ + encoding: string; + /** + * Sets or retrieves the encoding type for the form. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/enctype) + */ + enctype: string; + /** + * Sets or retrieves the number of objects in a collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/length) + */ + readonly length: number; + /** + * Sets or retrieves how to send the form data to the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/method) + */ + method: string; + /** + * Sets or retrieves the name of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/name) + */ + name: string; + /** + * Designates a form that is not validated when submitted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/noValidate) + */ + noValidate: boolean; + rel: string; + readonly relList: DOMTokenList; + /** + * Sets or retrieves the window or frame at which to target content. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/target) + */ + target: string; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/checkValidity) + */ + checkValidity(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reportValidity) */ + reportValidity(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/requestSubmit) */ + requestSubmit(submitter?: HTMLElement | null): void; + /** + * Fires when the user resets a form. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset) + */ + reset(): void; + /** + * Fires when a FORM is about to be submitted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit) + */ + submit(): void; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + [index: number]: Element; + [name: string]: any; +} + +declare var HTMLFormElement: { + prototype: HTMLFormElement; + new(): HTMLFormElement; +}; + +/** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement) + */ +interface HTMLFrameElement extends HTMLElement { + /** + * Retrieves the document object of the page or frame. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/contentDocument) + */ + readonly contentDocument: Document | null; + /** + * Retrieves the object of the specified. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/contentWindow) + */ + readonly contentWindow: WindowProxy | null; + /** + * Sets or retrieves whether to display a border for the frame. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/frameBorder) + */ + frameBorder: string; + /** + * Sets or retrieves a URI to a long description of the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/longDesc) + */ + longDesc: string; + /** + * Sets or retrieves the top and bottom margin heights before displaying the text in a frame. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/marginHeight) + */ + marginHeight: string; + /** + * Sets or retrieves the left and right margin widths before displaying the text in a frame. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/marginWidth) + */ + marginWidth: string; + /** + * Sets or retrieves the frame name. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/name) + */ + name: string; + /** + * Sets or retrieves whether the user can resize the frame. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/noResize) + */ + noResize: boolean; + /** + * Sets or retrieves whether the frame can be scrolled. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/scrolling) + */ + scrolling: string; + /** + * Sets or retrieves a URL to be loaded by the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/src) + */ + src: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +/** @deprecated */ +declare var HTMLFrameElement: { + prototype: HTMLFrameElement; + new(): HTMLFrameElement; +}; + +interface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { +} + +/** + * Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameSetElement) + */ +interface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers { + /** + * Sets or retrieves the frame widths of the object. + * @deprecated + */ + cols: string; + /** + * Sets or retrieves the frame heights of the object. + * @deprecated + */ + rows: string; + addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +/** @deprecated */ +declare var HTMLFrameSetElement: { + prototype: HTMLFrameSetElement; + new(): HTMLFrameSetElement; +}; + +/** + * Provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHRElement) + */ +interface HTMLHRElement extends HTMLElement { + /** + * Sets or retrieves how the object is aligned with adjacent text. + * @deprecated + */ + align: string; + /** @deprecated */ + color: string; + /** + * Sets or retrieves whether the horizontal rule is drawn with 3-D shading. + * @deprecated + */ + noShade: boolean; + /** @deprecated */ + size: string; + /** + * Sets or retrieves the width of the object. + * @deprecated + */ + width: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLHRElement: { + prototype: HTMLHRElement; + new(): HTMLHRElement; +}; + +/** + * Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadElement) + */ +interface HTMLHeadElement extends HTMLElement { + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLHeadElement: { + prototype: HTMLHeadElement; + new(): HTMLHeadElement; +}; + +/** + * The different heading elements. It inherits methods and properties from the HTMLElement interface. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadingElement) + */ +interface HTMLHeadingElement extends HTMLElement { + /** + * Sets or retrieves a value that indicates the table alignment. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadingElement/align) + */ + align: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLHeadingElement: { + prototype: HTMLHeadingElement; + new(): HTMLHeadingElement; +}; + +/** + * Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHtmlElement) + */ +interface HTMLHtmlElement extends HTMLElement { + /** + * Sets or retrieves the DTD version that governs the current document. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHtmlElement/version) + */ + version: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLHtmlElement: { + prototype: HTMLHtmlElement; + new(): HTMLHtmlElement; +}; + +interface HTMLHyperlinkElementUtils { + /** + * Returns the hyperlink's URL's fragment (includes leading "#" if non-empty). + * + * Can be set, to change the URL's fragment (ignores leading "#"). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hash) + */ + hash: string; + /** + * Returns the hyperlink's URL's host and port (if different from the default port for the scheme). + * + * Can be set, to change the URL's host and port. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/host) + */ + host: string; + /** + * Returns the hyperlink's URL's host. + * + * Can be set, to change the URL's host. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hostname) + */ + hostname: string; + /** + * Returns the hyperlink's URL. + * + * Can be set, to change the URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/href) + */ + href: string; + toString(): string; + /** + * Returns the hyperlink's URL's origin. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/origin) + */ + readonly origin: string; + /** + * Returns the hyperlink's URL's password. + * + * Can be set, to change the URL's password. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/password) + */ + password: string; + /** + * Returns the hyperlink's URL's path. + * + * Can be set, to change the URL's path. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/pathname) + */ + pathname: string; + /** + * Returns the hyperlink's URL's port. + * + * Can be set, to change the URL's port. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/port) + */ + port: string; + /** + * Returns the hyperlink's URL's scheme. + * + * Can be set, to change the URL's scheme. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/protocol) + */ + protocol: string; + /** + * Returns the hyperlink's URL's query (includes leading "?" if non-empty). + * + * Can be set, to change the URL's query (ignores leading "?"). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/search) + */ + search: string; + /** + * Returns the hyperlink's URL's username. + * + * Can be set, to change the URL's username. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/username) + */ + username: string; +} + +/** + * Provides special properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement) + */ +interface HTMLIFrameElement extends HTMLElement { + /** + * Sets or retrieves how the object is aligned with adjacent text. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/align) + */ + align: string; + allow: string; + allowFullscreen: boolean; + /** + * Retrieves the document object of the page or frame. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/contentDocument) + */ + readonly contentDocument: Document | null; + /** + * Retrieves the object of the specified. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/contentWindow) + */ + readonly contentWindow: WindowProxy | null; + /** + * Sets or retrieves whether to display a border for the frame. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/frameBorder) + */ + frameBorder: string; + /** + * Sets or retrieves the height of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/height) + */ + height: string; + loading: string; + /** + * Sets or retrieves a URI to a long description of the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/longDesc) + */ + longDesc: string; + /** + * Sets or retrieves the top and bottom margin heights before displaying the text in a frame. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/marginHeight) + */ + marginHeight: string; + /** + * Sets or retrieves the left and right margin widths before displaying the text in a frame. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/marginWidth) + */ + marginWidth: string; + /** + * Sets or retrieves the frame name. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/name) + */ + name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/referrerPolicy) */ + referrerPolicy: ReferrerPolicy; + readonly sandbox: DOMTokenList; + /** + * Sets or retrieves whether the frame can be scrolled. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/scrolling) + */ + scrolling: string; + /** + * Sets or retrieves a URL to be loaded by the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/src) + */ + src: string; + /** + * Sets or retrives the content of the page that is to contain. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/srcdoc) + */ + srcdoc: string; + /** + * Sets or retrieves the width of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/width) + */ + width: string; + getSVGDocument(): Document | null; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLIFrameElement: { + prototype: HTMLIFrameElement; + new(): HTMLIFrameElement; +}; + +/** + * Provides special properties and methods for manipulating <img> elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement) + */ +interface HTMLImageElement extends HTMLElement { + /** + * Sets or retrieves how the object is aligned with adjacent text. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/align) + */ + align: string; + /** + * Sets or retrieves a text alternative to the graphic. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/alt) + */ + alt: string; + /** + * Specifies the properties of a border drawn around an object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/border) + */ + border: string; + /** + * Retrieves whether the object is fully loaded. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/complete) + */ + readonly complete: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/crossOrigin) */ + crossOrigin: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/currentSrc) */ + readonly currentSrc: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decoding) */ + decoding: "async" | "sync" | "auto"; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/fetchPriority) */ + fetchPriority: string; + /** + * Sets or retrieves the height of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/height) + */ + height: number; + /** + * Sets or retrieves the width of the border to draw around the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/hspace) + */ + hspace: number; + /** + * Sets or retrieves whether the image is a server-side image map. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/isMap) + */ + isMap: boolean; + /** + * Sets or retrieves the policy for loading image elements that are outside the viewport. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/loading) + */ + loading: "eager" | "lazy"; + /** + * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/longDesc) + */ + longDesc: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/lowsrc) + */ + lowsrc: string; + /** + * Sets or retrieves the name of the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/name) + */ + name: string; + /** + * The original height of the image resource before sizing. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalHeight) + */ + readonly naturalHeight: number; + /** + * The original width of the image resource before sizing. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalWidth) + */ + readonly naturalWidth: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/referrerPolicy) */ + referrerPolicy: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/sizes) */ + sizes: string; + /** + * The address or URL of the a media resource that is to be considered. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/src) + */ + src: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/srcset) */ + srcset: string; + /** + * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/useMap) + */ + useMap: string; + /** + * Sets or retrieves the vertical margin for the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/vspace) + */ + vspace: number; + /** + * Sets or retrieves the width of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/width) + */ + width: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/x) */ + readonly x: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/y) */ + readonly y: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decode) */ + decode(): Promise<void>; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLImageElement: { + prototype: HTMLImageElement; + new(): HTMLImageElement; +}; + +/** + * Provides special properties and methods for manipulating the options, layout, and presentation of <input> elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement) + */ +interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { + /** Sets or retrieves a comma-separated list of content types. */ + accept: string; + /** + * Sets or retrieves how the object is aligned with adjacent text. + * @deprecated + */ + align: string; + /** Sets or retrieves a text alternative to the graphic. */ + alt: string; + /** + * Specifies whether autocomplete is applied to an editable text field. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/autocomplete) + */ + autocomplete: AutoFill; + capture: string; + /** Sets or retrieves the state of the check box or radio button. */ + checked: boolean; + /** Sets or retrieves the state of the check box or radio button. */ + defaultChecked: boolean; + /** Sets or retrieves the initial contents of the object. */ + defaultValue: string; + dirName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/disabled) */ + disabled: boolean; + /** + * Returns a FileList object on a file type input object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/files) + */ + files: FileList | null; + /** Retrieves a reference to the form that the object is embedded in. */ + readonly form: HTMLFormElement | null; + /** + * Overrides the action attribute (where the data on a form is sent) on the parent form element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formAction) + */ + formAction: string; + /** + * Used to override the encoding (formEnctype attribute) specified on the form element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formEnctype) + */ + formEnctype: string; + /** + * Overrides the submit method attribute previously specified on a form element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formMethod) + */ + formMethod: string; + /** + * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formNoValidate) + */ + formNoValidate: boolean; + /** + * Overrides the target attribute on a form element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formTarget) + */ + formTarget: string; + /** + * Sets or retrieves the height of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/height) + */ + height: number; + /** When set, overrides the rendering of checkbox controls so that the current value is not visible. */ + indeterminate: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/labels) */ + readonly labels: NodeListOf<HTMLLabelElement> | null; + /** + * Specifies the ID of a pre-defined datalist of options for an input element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/list) + */ + readonly list: HTMLDataListElement | null; + /** Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. */ + max: string; + /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */ + maxLength: number; + /** Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. */ + min: string; + minLength: number; + /** + * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/multiple) + */ + multiple: boolean; + /** Sets or retrieves the name of the object. */ + name: string; + /** + * Gets or sets a string containing a regular expression that the user's input must match. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/pattern) + */ + pattern: string; + /** + * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/placeholder) + */ + placeholder: string; + readOnly: boolean; + /** + * When present, marks an element that can't be submitted without a value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/required) + */ + required: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection) */ + selectionDirection: "forward" | "backward" | "none" | null; + /** Gets or sets the end position or offset of a text selection. */ + selectionEnd: number | null; + /** Gets or sets the starting position or offset of a text selection. */ + selectionStart: number | null; + size: number; + /** The address or URL of the a media resource that is to be considered. */ + src: string; + /** Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. */ + step: string; + /** Returns the content type of the object. */ + type: string; + /** + * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. + * @deprecated + */ + useMap: string; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validationMessage) + */ + readonly validationMessage: string; + /** + * Returns a ValidityState object that represents the validity states of an element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validity) + */ + readonly validity: ValidityState; + /** Returns the value of the data at the cursor's current position. */ + value: string; + /** Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. */ + valueAsDate: Date | null; + /** Returns the input field value as a number. */ + valueAsNumber: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitEntries) */ + readonly webkitEntries: ReadonlyArray<FileSystemEntry>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitdirectory) */ + webkitdirectory: boolean; + /** + * Sets or retrieves the width of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/width) + */ + width: number; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/willValidate) + */ + readonly willValidate: boolean; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checkValidity) + */ + checkValidity(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/reportValidity) */ + reportValidity(): boolean; + /** + * Makes the selection equal to the current object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select) + */ + select(): void; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setCustomValidity) + */ + setCustomValidity(error: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setRangeText) */ + setRangeText(replacement: string): void; + setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void; + /** + * Sets the start and end positions of a selection in a text field. + * @param start The offset into the text field for the start of the selection. + * @param end The offset into the text field for the end of the selection. + * @param direction The direction in which the selection is performed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setSelectionRange) + */ + setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/showPicker) */ + showPicker(): void; + /** + * Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value. + * @param n Value to decrement the value by. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/stepDown) + */ + stepDown(n?: number): void; + /** + * Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value. + * @param n Value to increment the value by. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/stepUp) + */ + stepUp(n?: number): void; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLInputElement: { + prototype: HTMLInputElement; + new(): HTMLInputElement; +}; + +/** + * Exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLIElement) + */ +interface HTMLLIElement extends HTMLElement { + /** @deprecated */ + type: string; + /** Sets or retrieves the value of a list item. */ + value: number; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLLIElement: { + prototype: HTMLLIElement; + new(): HTMLLIElement; +}; + +/** + * Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement) + */ +interface HTMLLabelElement extends HTMLElement { + /** + * Returns the form control that is associated with this element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/control) + */ + readonly control: HTMLElement | null; + /** + * Retrieves a reference to the form that the object is embedded in. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/form) + */ + readonly form: HTMLFormElement | null; + /** + * Sets or retrieves the object to which the given label object is assigned. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/htmlFor) + */ + htmlFor: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLLabelElement: { + prototype: HTMLLabelElement; + new(): HTMLLabelElement; +}; + +/** + * The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLegendElement) + */ +interface HTMLLegendElement extends HTMLElement { + /** @deprecated */ + align: string; + /** Retrieves a reference to the form that the object is embedded in. */ + readonly form: HTMLFormElement | null; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLLegendElement: { + prototype: HTMLLegendElement; + new(): HTMLLegendElement; +}; + +/** + * Reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement interface. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement) + */ +interface HTMLLinkElement extends HTMLElement, LinkStyle { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/as) */ + as: string; + /** + * Sets or retrieves the character set used to encode the object. + * @deprecated + */ + charset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/crossOrigin) */ + crossOrigin: string | null; + disabled: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/fetchPriority) */ + fetchPriority: string; + /** + * Sets or retrieves a destination URL or an anchor point. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/href) + */ + href: string; + /** + * Sets or retrieves the language code of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/hreflang) + */ + hreflang: string; + imageSizes: string; + imageSrcset: string; + integrity: string; + /** Sets or retrieves the media type. */ + media: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/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/HTMLLinkElement/rel) + */ + rel: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/relList) */ + readonly relList: DOMTokenList; + /** + * Sets or retrieves the relationship between the object and the destination of the link. + * @deprecated + */ + rev: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sizes) */ + readonly sizes: DOMTokenList; + /** + * Sets or retrieves the window or frame at which to target content. + * @deprecated + */ + target: string; + /** Sets or retrieves the MIME type of the object. */ + type: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLLinkElement: { + prototype: HTMLLinkElement; + new(): HTMLLinkElement; +}; + +/** + * 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 map elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement) + */ +interface HTMLMapElement extends HTMLElement { + /** + * Retrieves a collection of the area objects defined for the given map object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement/areas) + */ + readonly areas: HTMLCollection; + /** + * Sets or retrieves the name of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement/name) + */ + name: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLMapElement: { + prototype: HTMLMapElement; + new(): HTMLMapElement; +}; + +/** + * Provides methods to manipulate <marquee> elements. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMarqueeElement) + */ +interface HTMLMarqueeElement extends HTMLElement { + /** @deprecated */ + behavior: string; + /** @deprecated */ + bgColor: string; + /** @deprecated */ + direction: string; + /** @deprecated */ + height: string; + /** @deprecated */ + hspace: number; + /** @deprecated */ + loop: number; + /** @deprecated */ + scrollAmount: number; + /** @deprecated */ + scrollDelay: number; + /** @deprecated */ + trueSpeed: boolean; + /** @deprecated */ + vspace: number; + /** @deprecated */ + width: string; + /** @deprecated */ + start(): void; + /** @deprecated */ + stop(): void; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +/** @deprecated */ +declare var HTMLMarqueeElement: { + prototype: HTMLMarqueeElement; + new(): HTMLMarqueeElement; +}; + +interface HTMLMediaElementEventMap extends HTMLElementEventMap { + "encrypted": MediaEncryptedEvent; + "waitingforkey": Event; +} + +/** + * Adds to HTMLElement the properties and methods needed to support basic media-related capabilities that are common to audio and video. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement) + */ +interface HTMLMediaElement extends HTMLElement { + /** + * Gets or sets a value that indicates whether to start playing the media automatically. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/autoplay) + */ + autoplay: boolean; + /** + * Gets a collection of buffered time ranges. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/buffered) + */ + readonly buffered: TimeRanges; + /** + * Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/controls) + */ + controls: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/crossOrigin) */ + crossOrigin: string | null; + /** + * Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/currentSrc) + */ + readonly currentSrc: string; + /** + * Gets or sets the current playback position, in seconds. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/currentTime) + */ + currentTime: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/defaultMuted) */ + defaultMuted: boolean; + /** + * Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/defaultPlaybackRate) + */ + defaultPlaybackRate: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/disableRemotePlayback) */ + disableRemotePlayback: boolean; + /** + * Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/duration) + */ + readonly duration: number; + /** + * Gets information about whether the playback has ended or not. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended) + */ + readonly ended: boolean; + /** + * Returns an object representing the current error state of the audio or video element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/error) + */ + readonly error: MediaError | null; + /** + * Gets or sets a flag to specify whether playback should restart after it completes. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loop) + */ + loop: boolean; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/mediaKeys) + */ + readonly mediaKeys: MediaKeys | null; + /** + * Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/muted) + */ + muted: boolean; + /** + * Gets the current network activity for the element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/networkState) + */ + readonly networkState: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/encrypted_event) */ + onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waitingforkey_event) */ + onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null; + /** + * Gets a flag that specifies whether playback is paused. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/paused) + */ + readonly paused: boolean; + /** + * Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playbackRate) + */ + playbackRate: number; + /** + * Gets TimeRanges for the current media resource that has been played. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/played) + */ + readonly played: TimeRanges; + /** + * Gets or sets a value indicating what data should be preloaded, if any. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/preload) + */ + preload: "none" | "metadata" | "auto" | ""; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/preservesPitch) */ + preservesPitch: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/readyState) */ + readonly readyState: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/remote) */ + readonly remote: RemotePlayback; + /** + * Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seekable) + */ + readonly seekable: TimeRanges; + /** + * Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking) + */ + readonly seeking: boolean; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/sinkId) + */ + readonly sinkId: string; + /** + * The address or URL of the a media resource that is to be considered. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/src) + */ + src: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/srcObject) */ + srcObject: MediaProvider | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/textTracks) */ + readonly textTracks: TextTrackList; + /** + * Gets or sets the volume level for audio portions of the media element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volume) + */ + volume: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/addTextTrack) */ + addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack; + /** + * Returns a string that specifies whether the client can play a given media resource type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canPlayType) + */ + canPlayType(type: string): CanPlayTypeResult; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/fastSeek) */ + fastSeek(time: number): void; + /** + * Resets the audio or video object and loads a new media resource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/load) + */ + load(): void; + /** + * Pauses the current playback and sets paused to TRUE. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause) + */ + pause(): void; + /** + * Loads and starts playback of a media resource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play) + */ + play(): Promise<void>; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/setMediaKeys) + */ + setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/setSinkId) + */ + setSinkId(sinkId: string): Promise<void>; + readonly NETWORK_EMPTY: 0; + readonly NETWORK_IDLE: 1; + readonly NETWORK_LOADING: 2; + readonly NETWORK_NO_SOURCE: 3; + readonly HAVE_NOTHING: 0; + readonly HAVE_METADATA: 1; + readonly HAVE_CURRENT_DATA: 2; + readonly HAVE_FUTURE_DATA: 3; + readonly HAVE_ENOUGH_DATA: 4; + addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLMediaElement: { + prototype: HTMLMediaElement; + new(): HTMLMediaElement; + readonly NETWORK_EMPTY: 0; + readonly NETWORK_IDLE: 1; + readonly NETWORK_LOADING: 2; + readonly NETWORK_NO_SOURCE: 3; + readonly HAVE_NOTHING: 0; + readonly HAVE_METADATA: 1; + readonly HAVE_CURRENT_DATA: 2; + readonly HAVE_FUTURE_DATA: 3; + readonly HAVE_ENOUGH_DATA: 4; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement) */ +interface HTMLMenuElement extends HTMLElement { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement/compact) + */ + compact: boolean; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLMenuElement: { + prototype: HTMLMenuElement; + new(): HTMLMenuElement; +}; + +/** + * Contains descriptive metadata about a document. It inherits all of the properties and methods described in the HTMLElement interface. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement) + */ +interface HTMLMetaElement extends HTMLElement { + /** Gets or sets meta-information to associate with httpEquiv or name. */ + content: string; + /** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */ + httpEquiv: string; + media: string; + /** Sets or retrieves the value specified in the content attribute of the meta object. */ + name: string; + /** + * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object. + * @deprecated + */ + scheme: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLMetaElement: { + prototype: HTMLMetaElement; + new(): HTMLMetaElement; +}; + +/** + * The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement) + */ +interface HTMLMeterElement extends HTMLElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/high) */ + high: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/labels) */ + readonly labels: NodeListOf<HTMLLabelElement>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/low) */ + low: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/max) */ + max: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/min) */ + min: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/optimum) */ + optimum: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/value) */ + value: number; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLMeterElement: { + prototype: HTMLMeterElement; + new(): HTMLMeterElement; +}; + +/** + * Provides special properties (beyond the regular methods and properties available through the HTMLElement interface they also have available to them by inheritance) for manipulating modification elements, that is <del> and <ins>. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement) + */ +interface HTMLModElement extends HTMLElement { + /** + * Sets or retrieves reference information about the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement/cite) + */ + cite: string; + /** + * Sets or retrieves the date and time of a modification to the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement/dateTime) + */ + dateTime: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLModElement: { + prototype: HTMLModElement; + new(): HTMLModElement; +}; + +/** + * Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement) + */ +interface HTMLOListElement extends HTMLElement { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/compact) + */ + compact: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/reversed) */ + reversed: boolean; + /** + * The starting number. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/start) + */ + start: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/type) */ + type: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLOListElement: { + prototype: HTMLOListElement; + new(): HTMLOListElement; +}; + +/** + * Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement) + */ +interface HTMLObjectElement extends HTMLElement { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/align) + */ + align: string; + /** + * Sets or retrieves a character string that can be used to implement your own archive functionality for the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/archive) + */ + archive: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/border) + */ + border: string; + /** + * Sets or retrieves the URL of the file containing the compiled Java class. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/code) + */ + code: string; + /** + * Sets or retrieves the URL of the component. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/codeBase) + */ + codeBase: string; + /** + * Sets or retrieves the Internet media type for the code associated with the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/codeType) + */ + codeType: string; + /** + * Retrieves the document object of the page or frame. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/contentDocument) + */ + readonly contentDocument: Document | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/contentWindow) */ + readonly contentWindow: WindowProxy | null; + /** + * Sets or retrieves the URL that references the data of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/data) + */ + data: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/declare) + */ + declare: boolean; + /** + * Retrieves a reference to the form that the object is embedded in. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/form) + */ + readonly form: HTMLFormElement | null; + /** + * Sets or retrieves the height of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/height) + */ + height: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/hspace) + */ + hspace: number; + /** + * Sets or retrieves the name of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/name) + */ + name: string; + /** + * Sets or retrieves a message to be displayed while an object is loading. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/standby) + */ + standby: string; + /** + * Sets or retrieves the MIME type of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/type) + */ + type: string; + /** + * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/useMap) + */ + useMap: string; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validationMessage) + */ + readonly validationMessage: string; + /** + * Returns a ValidityState object that represents the validity states of an element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validity) + */ + readonly validity: ValidityState; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/vspace) + */ + vspace: number; + /** + * Sets or retrieves the width of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/width) + */ + width: string; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/willValidate) + */ + readonly willValidate: boolean; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/checkValidity) + */ + checkValidity(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/getSVGDocument) */ + getSVGDocument(): Document | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/reportValidity) */ + reportValidity(): boolean; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/setCustomValidity) + */ + setCustomValidity(error: string): void; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLObjectElement: { + prototype: HTMLObjectElement; + new(): HTMLObjectElement; +}; + +/** + * Provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement) + */ +interface HTMLOptGroupElement extends HTMLElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement/disabled) */ + disabled: boolean; + /** + * Sets or retrieves a value that you can use to implement your own label functionality for the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement/label) + */ + label: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLOptGroupElement: { + prototype: HTMLOptGroupElement; + new(): HTMLOptGroupElement; +}; + +/** + * <option> elements and inherits all classes and methods of the HTMLElement interface. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement) + */ +interface HTMLOptionElement extends HTMLElement { + /** + * Sets or retrieves the status of an option. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/defaultSelected) + */ + defaultSelected: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/disabled) */ + disabled: boolean; + /** + * Retrieves a reference to the form that the object is embedded in. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/form) + */ + readonly form: HTMLFormElement | null; + /** + * Sets or retrieves the ordinal position of an option in a list box. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/index) + */ + readonly index: number; + /** + * Sets or retrieves a value that you can use to implement your own label functionality for the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/label) + */ + label: string; + /** + * Sets or retrieves whether the option in the list box is the default item. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/selected) + */ + selected: boolean; + /** + * Sets or retrieves the text string specified by the option tag. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/text) + */ + text: string; + /** + * Sets or retrieves the value which is returned to the server when the form control is submitted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/value) + */ + value: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLOptionElement: { + prototype: HTMLOptionElement; + new(): HTMLOptionElement; +}; + +/** + * HTMLOptionsCollection is an interface representing a collection of HTML option elements (in document order) and offers methods and properties for traversing the list as well as optionally altering its items. This type is returned solely by the "options" property of select. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection) + */ +interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> { + /** + * Returns the number of elements in the collection. + * + * When set to a smaller number, truncates the number of option elements in the corresponding container. + * + * When set to a greater number, adds new blank option elements to that container. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/length) + */ + length: number; + /** + * Returns the index of the first selected item, if any, or −1 if there is no selected item. + * + * Can be set, to change the selection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/selectedIndex) + */ + selectedIndex: number; + /** + * Inserts element before the node given by before. + * + * The before argument can be a number, in which case element is inserted before the item with that number, or an element from the collection, in which case element is inserted before that element. + * + * If before is omitted, null, or a number out of range, then element will be added at the end of the list. + * + * This method will throw a "HierarchyRequestError" DOMException if element is an ancestor of the element into which it is to be inserted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/add) + */ + add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void; + /** + * Removes the item with index index from the collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/remove) + */ + remove(index: number): void; +} + +declare var HTMLOptionsCollection: { + prototype: HTMLOptionsCollection; + new(): HTMLOptionsCollection; +}; + +interface HTMLOrSVGElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) */ + autofocus: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) */ + readonly dataset: DOMStringMap; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/nonce) */ + nonce?: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/tabIndex) */ + tabIndex: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/blur) */ + blur(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/focus) */ + focus(options?: FocusOptions): void; +} + +/** + * Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement) + */ +interface HTMLOutputElement extends HTMLElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/defaultValue) */ + defaultValue: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/form) */ + readonly form: HTMLFormElement | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/htmlFor) */ + readonly htmlFor: DOMTokenList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/labels) */ + readonly labels: NodeListOf<HTMLLabelElement>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/name) */ + name: string; + /** + * Returns the string "output". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/type) + */ + readonly type: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validationMessage) */ + readonly validationMessage: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validity) */ + readonly validity: ValidityState; + /** + * Returns the element's current value. + * + * Can be set, to change the value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/value) + */ + value: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/willValidate) */ + readonly willValidate: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/checkValidity) */ + checkValidity(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/reportValidity) */ + reportValidity(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/setCustomValidity) */ + setCustomValidity(error: string): void; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLOutputElement: { + prototype: HTMLOutputElement; + new(): HTMLOutputElement; +}; + +/** + * Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParagraphElement) + */ +interface HTMLParagraphElement extends HTMLElement { + /** + * Sets or retrieves how the object is aligned with adjacent text. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParagraphElement/align) + */ + align: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLParagraphElement: { + prototype: HTMLParagraphElement; + new(): HTMLParagraphElement; +}; + +/** + * Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a parameter for an <object> element. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement) + */ +interface HTMLParamElement extends HTMLElement { + /** + * Sets or retrieves the name of an input parameter for an element. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/name) + */ + name: string; + /** + * Sets or retrieves the content type of the resource designated by the value attribute. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/type) + */ + type: string; + /** + * Sets or retrieves the value of an input parameter for an element. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/value) + */ + value: string; + /** + * Sets or retrieves the data type of the value attribute. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/valueType) + */ + valueType: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +/** @deprecated */ +declare var HTMLParamElement: { + prototype: HTMLParamElement; + new(): HTMLParamElement; +}; + +/** + * A <picture> HTML element. It doesn't implement specific properties or methods. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPictureElement) + */ +interface HTMLPictureElement extends HTMLElement { + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLPictureElement: { + prototype: HTMLPictureElement; + new(): HTMLPictureElement; +}; + +/** + * Exposes specific properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating a block of preformatted text (<pre>). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPreElement) + */ +interface HTMLPreElement extends HTMLElement { + /** + * Sets or gets a value that you can use to implement your own width functionality for the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPreElement/width) + */ + width: number; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLPreElement: { + prototype: HTMLPreElement; + new(): HTMLPreElement; +}; + +/** + * Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <progress> elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement) + */ +interface HTMLProgressElement extends HTMLElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/labels) */ + readonly labels: NodeListOf<HTMLLabelElement>; + /** + * Defines the maximum, or "done" value for a progress element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/max) + */ + max: number; + /** + * Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/position) + */ + readonly position: number; + /** + * Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/value) + */ + value: number; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLProgressElement: { + prototype: HTMLProgressElement; + new(): HTMLProgressElement; +}; + +/** + * Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating quoting elements, like <blockquote> and <q>, but not the <cite> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLQuoteElement) + */ +interface HTMLQuoteElement extends HTMLElement { + /** + * Sets or retrieves reference information about the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLQuoteElement/cite) + */ + cite: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLQuoteElement: { + prototype: HTMLQuoteElement; + new(): HTMLQuoteElement; +}; + +/** + * HTML <script> elements expose the HTMLScriptElement interface, which provides special properties and methods for manipulating the behavior and execution of <script> elements (beyond the inherited HTMLElement interface). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement) + */ +interface HTMLScriptElement extends HTMLElement { + async: boolean; + /** + * Sets or retrieves the character set used to encode the object. + * @deprecated + */ + charset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/crossOrigin) */ + crossOrigin: string | null; + /** Sets or retrieves the status of the script. */ + defer: boolean; + /** + * Sets or retrieves the event for which the script is written. + * @deprecated + */ + event: string; + fetchPriority: string; + /** + * Sets or retrieves the object that is bound to the event script. + * @deprecated + */ + htmlFor: string; + integrity: string; + noModule: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/referrerPolicy) */ + referrerPolicy: string; + /** Retrieves the URL to an external file that contains the source code or data. */ + src: string; + /** Retrieves or sets the text of the object as a string. */ + text: string; + /** Sets or retrieves the MIME type for the associated scripting engine. */ + type: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLScriptElement: { + prototype: HTMLScriptElement; + new(): HTMLScriptElement; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/supports_static) */ + supports(type: string): boolean; +}; + +/** + * A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement) + */ +interface HTMLSelectElement extends HTMLElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/autocomplete) */ + autocomplete: AutoFill; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/disabled) */ + disabled: boolean; + /** + * Retrieves a reference to the form that the object is embedded in. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/form) + */ + readonly form: HTMLFormElement | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/labels) */ + readonly labels: NodeListOf<HTMLLabelElement>; + /** + * Sets or retrieves the number of objects in a collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/length) + */ + length: number; + /** + * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/multiple) + */ + multiple: boolean; + /** + * Sets or retrieves the name of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/name) + */ + name: string; + /** + * Returns an HTMLOptionsCollection of the list of options. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/options) + */ + readonly options: HTMLOptionsCollection; + /** + * When present, marks an element that can't be submitted without a value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/required) + */ + required: boolean; + /** + * Sets or retrieves the index of the selected option in a select object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedIndex) + */ + selectedIndex: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedOptions) */ + readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>; + /** + * Sets or retrieves the number of rows in the list box. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/size) + */ + size: number; + /** + * Retrieves the type of select control based on the value of the MULTIPLE attribute. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/type) + */ + readonly type: string; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validationMessage) + */ + readonly validationMessage: string; + /** + * Returns a ValidityState object that represents the validity states of an element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validity) + */ + readonly validity: ValidityState; + /** + * Sets or retrieves the value which is returned to the server when the form control is submitted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/value) + */ + value: string; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/willValidate) + */ + readonly willValidate: boolean; + /** + * Adds an element to the areas, controlRange, or options collection. + * @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection. + * @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/add) + */ + add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/checkValidity) + */ + checkValidity(): boolean; + /** + * Retrieves a select object or an object from an options collection. + * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made. + * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/item) + */ + item(index: number): HTMLOptionElement | null; + /** + * Retrieves a select object or an object from an options collection. + * @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/namedItem) + */ + namedItem(name: string): HTMLOptionElement | null; + /** + * Removes an element from the collection. + * @param index Number that specifies the zero-based index of the element to remove from the collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/remove) + */ + remove(): void; + remove(index: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/reportValidity) */ + reportValidity(): boolean; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/setCustomValidity) + */ + setCustomValidity(error: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/showPicker) */ + showPicker(): void; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + [name: number]: HTMLOptionElement | HTMLOptGroupElement; +} + +declare var HTMLSelectElement: { + prototype: HTMLSelectElement; + new(): HTMLSelectElement; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement) */ +interface HTMLSlotElement extends HTMLElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/name) */ + name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assign) */ + assign(...nodes: (Element | Text)[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assignedElements) */ + assignedElements(options?: AssignedNodesOptions): Element[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assignedNodes) */ + assignedNodes(options?: AssignedNodesOptions): Node[]; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLSlotElement: { + prototype: HTMLSlotElement; + new(): HTMLSlotElement; +}; + +/** + * Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement) + */ +interface HTMLSourceElement extends HTMLElement { + height: number; + /** + * Gets or sets the intended media type of the media source. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/media) + */ + media: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/sizes) */ + sizes: string; + /** + * The address or URL of the a media resource that is to be considered. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/src) + */ + src: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/srcset) */ + srcset: string; + /** + * Gets or sets the MIME type of a media resource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/type) + */ + type: string; + width: number; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLSourceElement: { + prototype: HTMLSourceElement; + new(): HTMLSourceElement; +}; + +/** + * A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSpanElement) + */ +interface HTMLSpanElement extends HTMLElement { + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLSpanElement: { + prototype: HTMLSpanElement; + new(): HTMLSpanElement; +}; + +/** + * A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement) + */ +interface HTMLStyleElement extends HTMLElement, LinkStyle { + /** + * Enables or disables the style sheet. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/disabled) + */ + disabled: boolean; + /** + * Sets or retrieves the media type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/media) + */ + media: string; + /** + * Retrieves the CSS language in which the style sheet is written. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/type) + */ + type: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLStyleElement: { + prototype: HTMLStyleElement; + new(): HTMLStyleElement; +}; + +/** + * Special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCaptionElement) + */ +interface HTMLTableCaptionElement extends HTMLElement { + /** + * Sets or retrieves the alignment of the caption or legend. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCaptionElement/align) + */ + align: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTableCaptionElement: { + prototype: HTMLTableCaptionElement; + new(): HTMLTableCaptionElement; +}; + +/** + * Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an HTML document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement) + */ +interface HTMLTableCellElement extends HTMLElement { + /** + * Sets or retrieves abbreviated text for the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/abbr) + */ + abbr: string; + /** + * Sets or retrieves how the object is aligned with adjacent text. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/align) + */ + align: string; + /** + * Sets or retrieves a comma-delimited list of conceptual categories associated with the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/axis) + */ + axis: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/bgColor) + */ + bgColor: string; + /** + * Retrieves the position of the object in the cells collection of a row. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/cellIndex) + */ + readonly cellIndex: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/ch) + */ + ch: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/chOff) + */ + chOff: string; + /** + * Sets or retrieves the number columns in the table that the object should span. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/colSpan) + */ + colSpan: number; + /** + * Sets or retrieves a list of header cells that provide information for the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/headers) + */ + headers: string; + /** + * Sets or retrieves the height of the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/height) + */ + height: string; + /** + * Sets or retrieves whether the browser automatically performs wordwrap. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/noWrap) + */ + noWrap: boolean; + /** + * Sets or retrieves how many rows in a table the cell should span. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/rowSpan) + */ + rowSpan: number; + /** + * Sets or retrieves the group of cells in a table to which the object's information applies. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/scope) + */ + scope: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/vAlign) + */ + vAlign: string; + /** + * Sets or retrieves the width of the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/width) + */ + width: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTableCellElement: { + prototype: HTMLTableCellElement; + new(): HTMLTableCellElement; +}; + +/** + * Provides special properties (beyond the HTMLElement interface it also has available to it inheritance) for manipulating single or grouped table column elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement) + */ +interface HTMLTableColElement extends HTMLElement { + /** + * Sets or retrieves the alignment of the object relative to the display or table. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/align) + */ + align: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/ch) + */ + ch: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/chOff) + */ + chOff: string; + /** + * Sets or retrieves the number of columns in the group. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/span) + */ + span: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/vAlign) + */ + vAlign: string; + /** + * Sets or retrieves the width of the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/width) + */ + width: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTableColElement: { + prototype: HTMLTableColElement; + new(): HTMLTableColElement; +}; + +/** @deprecated prefer HTMLTableCellElement */ +interface HTMLTableDataCellElement extends HTMLTableCellElement { + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +/** + * Provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement) + */ +interface HTMLTableElement extends HTMLElement { + /** + * Sets or retrieves a value that indicates the table alignment. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/align) + */ + align: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/bgColor) + */ + bgColor: string; + /** + * Sets or retrieves the width of the border to draw around the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/border) + */ + border: string; + /** + * Retrieves the caption object of a table. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/caption) + */ + caption: HTMLTableCaptionElement | null; + /** + * Sets or retrieves the amount of space between the border of the cell and the content of the cell. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/cellPadding) + */ + cellPadding: string; + /** + * Sets or retrieves the amount of space between cells in a table. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/cellSpacing) + */ + cellSpacing: string; + /** + * Sets or retrieves the way the border frame around the table is displayed. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/frame) + */ + frame: string; + /** + * Sets or retrieves the number of horizontal rows contained in the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/rows) + */ + readonly rows: HTMLCollectionOf<HTMLTableRowElement>; + /** + * Sets or retrieves which dividing lines (inner borders) are displayed. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/rules) + */ + rules: string; + /** + * Sets or retrieves a description and/or structure of the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/summary) + */ + summary: string; + /** + * Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tBodies) + */ + readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>; + /** + * Retrieves the tFoot object of the table. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tFoot) + */ + tFoot: HTMLTableSectionElement | null; + /** + * Retrieves the tHead object of the table. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tHead) + */ + tHead: HTMLTableSectionElement | null; + /** + * Sets or retrieves the width of the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/width) + */ + width: string; + /** + * Creates an empty caption element in the table. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createCaption) + */ + createCaption(): HTMLTableCaptionElement; + /** + * Creates an empty tBody element in the table. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTBody) + */ + createTBody(): HTMLTableSectionElement; + /** + * Creates an empty tFoot element in the table. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTFoot) + */ + createTFoot(): HTMLTableSectionElement; + /** + * Returns the tHead element object if successful, or null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTHead) + */ + createTHead(): HTMLTableSectionElement; + /** + * Deletes the caption element and its contents from the table. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteCaption) + */ + deleteCaption(): void; + /** + * Removes the specified row (tr) from the element and from the rows collection. + * @param index Number that specifies the zero-based position in the rows collection of the row to remove. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteRow) + */ + deleteRow(index: number): void; + /** + * Deletes the tFoot element and its contents from the table. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTFoot) + */ + deleteTFoot(): void; + /** + * Deletes the tHead element and its contents from the table. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTHead) + */ + deleteTHead(): void; + /** + * Creates a new row (tr) in the table, and adds the row to the rows collection. + * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/insertRow) + */ + insertRow(index?: number): HTMLTableRowElement; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTableElement: { + prototype: HTMLTableElement; + new(): HTMLTableElement; +}; + +/** @deprecated prefer HTMLTableCellElement */ +interface HTMLTableHeaderCellElement extends HTMLTableCellElement { + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +/** + * Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement) + */ +interface HTMLTableRowElement extends HTMLElement { + /** + * Sets or retrieves how the object is aligned with adjacent text. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/align) + */ + align: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/bgColor) + */ + bgColor: string; + /** + * Retrieves a collection of all cells in the table row. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/cells) + */ + readonly cells: HTMLCollectionOf<HTMLTableCellElement>; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/ch) + */ + ch: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/chOff) + */ + chOff: string; + /** + * Retrieves the position of the object in the rows collection for the table. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/rowIndex) + */ + readonly rowIndex: number; + /** + * Retrieves the position of the object in the collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/sectionRowIndex) + */ + readonly sectionRowIndex: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/vAlign) + */ + vAlign: string; + /** + * Removes the specified cell from the table row, as well as from the cells collection. + * @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/deleteCell) + */ + deleteCell(index: number): void; + /** + * Creates a new cell in the table row, and adds the cell to the cells collection. + * @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/insertCell) + */ + insertCell(index?: number): HTMLTableCellElement; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTableRowElement: { + prototype: HTMLTableRowElement; + new(): HTMLTableRowElement; +}; + +/** + * Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an HTML table. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement) + */ +interface HTMLTableSectionElement extends HTMLElement { + /** + * Sets or retrieves a value that indicates the table alignment. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/align) + */ + align: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/ch) + */ + ch: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/chOff) + */ + chOff: string; + /** + * Sets or retrieves the number of horizontal rows contained in the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/rows) + */ + readonly rows: HTMLCollectionOf<HTMLTableRowElement>; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/vAlign) + */ + vAlign: string; + /** + * Removes the specified row (tr) from the element and from the rows collection. + * @param index Number that specifies the zero-based position in the rows collection of the row to remove. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/deleteRow) + */ + deleteRow(index: number): void; + /** + * Creates a new row (tr) in the table, and adds the row to the rows collection. + * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/insertRow) + */ + insertRow(index?: number): HTMLTableRowElement; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTableSectionElement: { + prototype: HTMLTableSectionElement; + new(): HTMLTableSectionElement; +}; + +/** + * Enables access to the contents of an HTML <template> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement) + */ +interface HTMLTemplateElement extends HTMLElement { + /** + * Returns the template contents (a DocumentFragment). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/content) + */ + readonly content: DocumentFragment; + shadowRootMode: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTemplateElement: { + prototype: HTMLTemplateElement; + new(): HTMLTemplateElement; +}; + +/** + * Provides special properties and methods for manipulating the layout and presentation of <textarea> elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement) + */ +interface HTMLTextAreaElement extends HTMLElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/autocomplete) */ + autocomplete: AutoFill; + /** Sets or retrieves the width of the object. */ + cols: number; + /** Sets or retrieves the initial contents of the object. */ + defaultValue: string; + dirName: string; + disabled: boolean; + /** Retrieves a reference to the form that the object is embedded in. */ + readonly form: HTMLFormElement | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/labels) */ + readonly labels: NodeListOf<HTMLLabelElement>; + /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */ + maxLength: number; + minLength: number; + /** Sets or retrieves the name of the object. */ + name: string; + /** Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. */ + placeholder: string; + /** Sets or retrieves the value indicated whether the content of the object is read-only. */ + readOnly: boolean; + /** When present, marks an element that can't be submitted without a value. */ + required: boolean; + /** Sets or retrieves the number of horizontal rows contained in the object. */ + rows: number; + selectionDirection: "forward" | "backward" | "none"; + /** Gets or sets the end position or offset of a text selection. */ + selectionEnd: number; + /** Gets or sets the starting position or offset of a text selection. */ + selectionStart: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength) */ + readonly textLength: number; + /** Retrieves the type of control. */ + readonly type: string; + /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */ + readonly validationMessage: string; + /** Returns a ValidityState object that represents the validity states of an element. */ + readonly validity: ValidityState; + /** Retrieves or sets the text in the entry field of the textArea element. */ + value: string; + /** Returns whether an element will successfully validate based on forms validation rules and constraints. */ + readonly willValidate: boolean; + /** Sets or retrieves how to handle wordwrapping in the object. */ + wrap: string; + /** Returns whether a form will validate when it is submitted, without having to submit it. */ + checkValidity(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/reportValidity) */ + reportValidity(): boolean; + /** Highlights the input area of a form element. */ + select(): void; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + */ + setCustomValidity(error: string): void; + setRangeText(replacement: string): void; + setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void; + /** + * Sets the start and end positions of a selection in a text field. + * @param start The offset into the text field for the start of the selection. + * @param end The offset into the text field for the end of the selection. + * @param direction The direction in which the selection is performed. + */ + setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTextAreaElement: { + prototype: HTMLTextAreaElement; + new(): HTMLTextAreaElement; +}; + +/** + * Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTimeElement) + */ +interface HTMLTimeElement extends HTMLElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTimeElement/dateTime) */ + dateTime: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTimeElement: { + prototype: HTMLTimeElement; + new(): HTMLTimeElement; +}; + +/** + * Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTitleElement) + */ +interface HTMLTitleElement extends HTMLElement { + /** + * Retrieves or sets the text of the object as a string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTitleElement/text) + */ + text: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTitleElement: { + prototype: HTMLTitleElement; + new(): HTMLTitleElement; +}; + +/** + * The HTMLTrackElement + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement) + */ +interface HTMLTrackElement extends HTMLElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/default) */ + default: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/kind) */ + kind: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/label) */ + label: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/readyState) */ + readonly readyState: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/src) */ + src: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/srclang) */ + srclang: string; + /** + * Returns the TextTrack object corresponding to the text track of the track element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/track) + */ + readonly track: TextTrack; + readonly NONE: 0; + readonly LOADING: 1; + readonly LOADED: 2; + readonly ERROR: 3; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTrackElement: { + prototype: HTMLTrackElement; + new(): HTMLTrackElement; + readonly NONE: 0; + readonly LOADING: 1; + readonly LOADED: 2; + readonly ERROR: 3; +}; + +/** + * Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement) + */ +interface HTMLUListElement extends HTMLElement { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement/compact) + */ + compact: boolean; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement/type) + */ + type: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLUListElement: { + prototype: HTMLUListElement; + new(): HTMLUListElement; +}; + +/** + * An invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUnknownElement) + */ +interface HTMLUnknownElement extends HTMLElement { + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLUnknownElement: { + prototype: HTMLUnknownElement; + new(): HTMLUnknownElement; +}; + +interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap { + "enterpictureinpicture": Event; + "leavepictureinpicture": Event; +} + +/** + * Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement) + */ +interface HTMLVideoElement extends HTMLMediaElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/disablePictureInPicture) */ + disablePictureInPicture: boolean; + /** + * Gets or sets the height of the video element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/height) + */ + height: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/enterpictureinpicture_event) */ + onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/leavepictureinpicture_event) */ + onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null; + /** Gets or sets the playsinline of the video element. for example, On iPhone, video elements will now be allowed to play inline, and will not automatically enter fullscreen mode when playback begins. */ + playsInline: boolean; + /** + * Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/poster) + */ + poster: string; + /** + * Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/videoHeight) + */ + readonly videoHeight: number; + /** + * Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/videoWidth) + */ + readonly videoWidth: number; + /** + * Gets or sets the width of the video element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/width) + */ + width: number; + cancelVideoFrameCallback(handle: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality) */ + getVideoPlaybackQuality(): VideoPlaybackQuality; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestPictureInPicture) */ + requestPictureInPicture(): Promise<PictureInPictureWindow>; + requestVideoFrameCallback(callback: VideoFrameRequestCallback): number; + addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLVideoElement: { + prototype: HTMLVideoElement; + new(): HTMLVideoElement; +}; + +/** + * Events that fire when the fragment identifier of the URL has changed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent) + */ +interface HashChangeEvent extends Event { + /** + * Returns the URL of the session history entry that is now current. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent/newURL) + */ + readonly newURL: string; + /** + * Returns the URL of the session history entry that was previously current. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent/oldURL) + */ + readonly oldURL: string; +} + +declare var HashChangeEvent: { + prototype: HashChangeEvent; + new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent; +}; + +/** + * This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists of zero or more name and value pairs.  You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers) + */ +interface Headers { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append) */ + append(name: string, value: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete) */ + delete(name: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */ + get(name: string): string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) */ + getSetCookie(): string[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) */ + has(name: string): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) */ + set(name: string, value: string): void; + forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void; +} + +declare var Headers: { + prototype: Headers; + new(init?: HeadersInit): Headers; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight) */ +interface Highlight { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/priority) */ + priority: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/type) */ + type: HighlightType; + forEach(callbackfn: (value: AbstractRange, key: AbstractRange, parent: Highlight) => void, thisArg?: any): void; +} + +declare var Highlight: { + prototype: Highlight; + new(...initialRanges: AbstractRange[]): Highlight; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry) */ +interface HighlightRegistry { + forEach(callbackfn: (value: Highlight, key: string, parent: HighlightRegistry) => void, thisArg?: any): void; +} + +declare var HighlightRegistry: { + prototype: HighlightRegistry; + new(): HighlightRegistry; +}; + +/** + * Allows manipulation of the browser session history, that is the pages visited in the tab or frame that the current page is loaded in. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/History) + */ +interface History { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/scrollRestoration) */ + scrollRestoration: ScrollRestoration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/state) */ + readonly state: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/back) */ + back(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/forward) */ + forward(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/go) */ + go(delta?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/pushState) */ + pushState(data: any, unused: string, url?: string | URL | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/replaceState) */ + replaceState(data: any, unused: string, url?: string | URL | null): void; +} + +declare var History: { + prototype: History; + new(): History; +}; + +/** + * This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor) + */ +interface IDBCursor { + /** + * Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/direction) + */ + readonly direction: IDBCursorDirection; + /** + * Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/key) + */ + readonly key: IDBValidKey; + /** + * Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/primaryKey) + */ + readonly primaryKey: IDBValidKey; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/request) */ + readonly request: IDBRequest; + /** + * Returns the IDBObjectStore or IDBIndex the cursor was opened from. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/source) + */ + readonly source: IDBObjectStore | IDBIndex; + /** + * Advances the cursor through the next count records in range. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/advance) + */ + advance(count: number): void; + /** + * Advances the cursor to the next record in range. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continue) + */ + continue(key?: IDBValidKey): void; + /** + * Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continuePrimaryKey) + */ + continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void; + /** + * Delete the record pointed at by the cursor with a new value. + * + * If successful, request's result will be undefined. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/delete) + */ + delete(): IDBRequest<undefined>; + /** + * Updated the record pointed at by the cursor with a new value. + * + * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed. + * + * If successful, request's result will be the record's key. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/update) + */ + update(value: any): IDBRequest<IDBValidKey>; +} + +declare var IDBCursor: { + prototype: IDBCursor; + new(): IDBCursor; +}; + +/** + * This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue) + */ +interface IDBCursorWithValue extends IDBCursor { + /** + * Returns the cursor's current value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue/value) + */ + readonly value: any; +} + +declare var IDBCursorWithValue: { + prototype: IDBCursorWithValue; + new(): IDBCursorWithValue; +}; + +interface IDBDatabaseEventMap { + "abort": Event; + "close": Event; + "error": Event; + "versionchange": IDBVersionChangeEvent; +} + +/** + * This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase) + */ +interface IDBDatabase extends EventTarget { + /** + * Returns the name of the database. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name) + */ + readonly name: string; + /** + * Returns a list of the names of object stores in the database. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames) + */ + readonly objectStoreNames: DOMStringList; + onabort: ((this: IDBDatabase, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */ + onclose: ((this: IDBDatabase, ev: Event) => any) | null; + onerror: ((this: IDBDatabase, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/versionchange_event) */ + onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null; + /** + * Returns the version of the database. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/version) + */ + readonly version: number; + /** + * Closes the connection once all running transactions have finished. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close) + */ + close(): void; + /** + * Creates a new object store with the given name and options and returns a new IDBObjectStore. + * + * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/createObjectStore) + */ + createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore; + /** + * Deletes the object store with the given name. + * + * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/deleteObjectStore) + */ + deleteObjectStore(name: string): void; + /** + * Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction) + */ + transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction; + addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var IDBDatabase: { + prototype: IDBDatabase; + new(): IDBDatabase; +}; + +/** + * In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory) + */ +interface IDBFactory { + /** + * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal. + * + * Throws a "DataError" DOMException if either input is not a valid key. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/cmp) + */ + cmp(first: any, second: any): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/databases) */ + databases(): Promise<IDBDatabaseInfo[]>; + /** + * Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/deleteDatabase) + */ + deleteDatabase(name: string): IDBOpenDBRequest; + /** + * Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/open) + */ + open(name: string, version?: number): IDBOpenDBRequest; +} + +declare var IDBFactory: { + prototype: IDBFactory; + new(): IDBFactory; +}; + +/** + * IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex) + */ +interface IDBIndex { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/keyPath) */ + readonly keyPath: string | string[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/multiEntry) */ + readonly multiEntry: boolean; + /** + * Returns the name of the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/name) + */ + name: string; + /** + * Returns the IDBObjectStore the index belongs to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/objectStore) + */ + readonly objectStore: IDBObjectStore; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/unique) */ + readonly unique: boolean; + /** + * Retrieves the number of records matching the given key or key range in query. + * + * If successful, request's result will be the count. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/count) + */ + count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>; + /** + * Retrieves the value of the first record matching the given key or key range in query. + * + * If successful, request's result will be the value, or undefined if there was no matching record. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/get) + */ + get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>; + /** + * Retrieves the values of the records matching the given key or key range in query (up to count if given). + * + * If successful, request's result will be an Array of the values. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll) + */ + getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>; + /** + * Retrieves the keys of records matching the given key or key range in query (up to count if given). + * + * If successful, request's result will be an Array of the keys. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) + */ + getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>; + /** + * Retrieves the key of the first record matching the given key or key range in query. + * + * If successful, request's result will be the key, or undefined if there was no matching record. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getKey) + */ + getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>; + /** + * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched. + * + * If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openCursor) + */ + openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>; + /** + * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched. + * + * If successful, request's result will be an IDBCursor, or null if there were no matching records. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openKeyCursor) + */ + openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>; +} + +declare var IDBIndex: { + prototype: IDBIndex; + new(): IDBIndex; +}; + +/** + * A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange) + */ +interface IDBKeyRange { + /** + * Returns lower bound, or undefined if none. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lower) + */ + readonly lower: any; + /** + * Returns true if the lower open flag is set, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerOpen) + */ + readonly lowerOpen: boolean; + /** + * Returns upper bound, or undefined if none. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upper) + */ + readonly upper: any; + /** + * Returns true if the upper open flag is set, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperOpen) + */ + readonly upperOpen: boolean; + /** + * Returns true if key is included in the range, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/includes) + */ + includes(key: any): boolean; +} + +declare var IDBKeyRange: { + prototype: IDBKeyRange; + new(): IDBKeyRange; + /** + * Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static) + */ + bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange; + /** + * Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static) + */ + lowerBound(lower: any, open?: boolean): IDBKeyRange; + /** + * Returns a new IDBKeyRange spanning only key. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static) + */ + only(value: any): IDBKeyRange; + /** + * Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static) + */ + upperBound(upper: any, open?: boolean): IDBKeyRange; +}; + +/** + * This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our To-do Notifications app (view example live.) + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore) + */ +interface IDBObjectStore { + /** + * Returns true if the store has a key generator, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/autoIncrement) + */ + readonly autoIncrement: boolean; + /** + * Returns a list of the names of indexes in the store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/indexNames) + */ + readonly indexNames: DOMStringList; + /** + * Returns the key path of the store, or null if none. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath) + */ + readonly keyPath: string | string[]; + /** + * Returns the name of the store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/name) + */ + name: string; + /** + * Returns the associated transaction. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/transaction) + */ + readonly transaction: IDBTransaction; + /** + * Adds or updates a record in store with the given value and key. + * + * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown. + * + * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException. + * + * If successful, request's result will be the record's key. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/add) + */ + add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>; + /** + * Deletes all records in store. + * + * If successful, request's result will be undefined. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/clear) + */ + clear(): IDBRequest<undefined>; + /** + * Retrieves the number of records matching the given key or key range in query. + * + * If successful, request's result will be the count. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/count) + */ + count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>; + /** + * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException. + * + * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex) + */ + createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex; + /** + * Deletes records in store with the given key or in the given key range in query. + * + * If successful, request's result will be undefined. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/delete) + */ + delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>; + /** + * Deletes the index in store with the given name. + * + * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/deleteIndex) + */ + deleteIndex(name: string): void; + /** + * Retrieves the value of the first record matching the given key or key range in query. + * + * If successful, request's result will be the value, or undefined if there was no matching record. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/get) + */ + get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>; + /** + * Retrieves the values of the records matching the given key or key range in query (up to count if given). + * + * If successful, request's result will be an Array of the values. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll) + */ + getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>; + /** + * Retrieves the keys of records matching the given key or key range in query (up to count if given). + * + * If successful, request's result will be an Array of the keys. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) + */ + getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>; + /** + * Retrieves the key of the first record matching the given key or key range in query. + * + * If successful, request's result will be the key, or undefined if there was no matching record. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getKey) + */ + getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/index) */ + index(name: string): IDBIndex; + /** + * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched. + * + * If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openCursor) + */ + openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>; + /** + * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched. + * + * If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openKeyCursor) + */ + openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>; + /** + * Adds or updates a record in store with the given value and key. + * + * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown. + * + * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException. + * + * If successful, request's result will be the record's key. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/put) + */ + put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>; +} + +declare var IDBObjectStore: { + prototype: IDBObjectStore; + new(): IDBObjectStore; +}; + +interface IDBOpenDBRequestEventMap extends IDBRequestEventMap { + "blocked": IDBVersionChangeEvent; + "upgradeneeded": IDBVersionChangeEvent; +} + +/** + * Also inherits methods from its parents IDBRequest and EventTarget. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest) + */ +interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/blocked_event) */ + onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/upgradeneeded_event) */ + onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null; + addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var IDBOpenDBRequest: { + prototype: IDBOpenDBRequest; + new(): IDBOpenDBRequest; +}; + +interface IDBRequestEventMap { + "error": Event; + "success": Event; +} + +/** + * The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest) + */ +interface IDBRequest<T = any> extends EventTarget { + /** + * When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error) + */ + readonly error: DOMException | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error_event) */ + onerror: ((this: IDBRequest<T>, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/success_event) */ + onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null; + /** + * Returns "pending" until a request is complete, then returns "done". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/readyState) + */ + readonly readyState: IDBRequestReadyState; + /** + * When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/result) + */ + readonly result: T; + /** + * Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/source) + */ + readonly source: IDBObjectStore | IDBIndex | IDBCursor; + /** + * Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/transaction) + */ + readonly transaction: IDBTransaction | null; + addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var IDBRequest: { + prototype: IDBRequest; + new(): IDBRequest; +}; + +interface IDBTransactionEventMap { + "abort": Event; + "complete": Event; + "error": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction) */ +interface IDBTransaction extends EventTarget { + /** + * Returns the transaction's connection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/db) + */ + readonly db: IDBDatabase; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/durability) */ + readonly durability: IDBTransactionDurability; + /** + * If the transaction was aborted, returns the error (a DOMException) providing the reason. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error) + */ + readonly error: DOMException | null; + /** + * Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/mode) + */ + readonly mode: IDBTransactionMode; + /** + * Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStoreNames) + */ + readonly objectStoreNames: DOMStringList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */ + onabort: ((this: IDBTransaction, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/complete_event) */ + oncomplete: ((this: IDBTransaction, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error_event) */ + onerror: ((this: IDBTransaction, ev: Event) => any) | null; + /** + * Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort) + */ + abort(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/commit) */ + commit(): void; + /** + * Returns an IDBObjectStore in the transaction's scope. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStore) + */ + objectStore(name: string): IDBObjectStore; + addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var IDBTransaction: { + prototype: IDBTransaction; + new(): IDBTransaction; +}; + +/** + * This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent) + */ +interface IDBVersionChangeEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/newVersion) */ + readonly newVersion: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/oldVersion) */ + readonly oldVersion: number; +} + +declare var IDBVersionChangeEvent: { + prototype: IDBVersionChangeEvent; + new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent; +}; + +/** + * The IIRFilterNode interface of the Web Audio API is a AudioNode processor which implements a general infinite impulse response (IIR)  filter; this type of filter can be used to implement tone control devices and graphic equalizers as well. It lets the parameters of the filter response be specified, so that it can be tuned as needed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode) + */ +interface IIRFilterNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode/getFrequencyResponse) */ + getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void; +} + +declare var IIRFilterNode: { + prototype: IIRFilterNode; + new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline) */ +interface IdleDeadline { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline/didTimeout) */ + readonly didTimeout: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline/timeRemaining) */ + timeRemaining(): DOMHighResTimeStamp; +} + +declare var IdleDeadline: { + prototype: IdleDeadline; + new(): IdleDeadline; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap) */ +interface ImageBitmap { + /** + * Returns the intrinsic height of the image, in CSS pixels. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/height) + */ + readonly height: number; + /** + * Returns the intrinsic width of the image, in CSS pixels. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/width) + */ + readonly width: number; + /** + * Releases imageBitmap's underlying bitmap data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close) + */ + close(): void; +} + +declare var ImageBitmap: { + prototype: ImageBitmap; + new(): ImageBitmap; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext) */ +interface ImageBitmapRenderingContext { + /** Returns the canvas element that the context is bound to. */ + readonly canvas: HTMLCanvasElement | OffscreenCanvas; + /** + * Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap) + */ + transferFromImageBitmap(bitmap: ImageBitmap | null): void; +} + +declare var ImageBitmapRenderingContext: { + prototype: ImageBitmapRenderingContext; + new(): ImageBitmapRenderingContext; +}; + +/** + * The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData) + */ +interface ImageData { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace) */ + readonly colorSpace: PredefinedColorSpace; + /** + * Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data) + */ + readonly data: Uint8ClampedArray; + /** + * Returns the actual dimensions of the data in the ImageData object, in pixels. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/height) + */ + readonly height: number; + /** + * Returns the actual dimensions of the data in the ImageData object, in pixels. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/width) + */ + readonly width: number; +} + +declare var ImageData: { + prototype: ImageData; + new(sw: number, sh: number, settings?: ImageDataSettings): ImageData; + new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; +}; + +interface InnerHTML { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */ + innerHTML: string; +} + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo) + */ +interface InputDeviceInfo extends MediaDeviceInfo { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo/getCapabilities) */ + getCapabilities(): MediaTrackCapabilities; +} + +declare var InputDeviceInfo: { + prototype: InputDeviceInfo; + new(): InputDeviceInfo; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent) */ +interface InputEvent extends UIEvent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/data) */ + readonly data: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/dataTransfer) */ + readonly dataTransfer: DataTransfer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/inputType) */ + readonly inputType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/isComposing) */ + readonly isComposing: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/getTargetRanges) */ + getTargetRanges(): StaticRange[]; +} + +declare var InputEvent: { + prototype: InputEvent; + new(type: string, eventInitDict?: InputEventInit): InputEvent; +}; + +/** + * provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver) + */ +interface IntersectionObserver { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/root) */ + readonly root: Element | Document | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/rootMargin) */ + readonly rootMargin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/thresholds) */ + readonly thresholds: ReadonlyArray<number>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/disconnect) */ + disconnect(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/observe) */ + observe(target: Element): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/takeRecords) */ + takeRecords(): IntersectionObserverEntry[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/unobserve) */ + unobserve(target: Element): void; +} + +declare var IntersectionObserver: { + prototype: IntersectionObserver; + new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver; +}; + +/** + * This Intersection Observer API interface describes the intersection between the target element and its root container at a specific moment of transition. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry) + */ +interface IntersectionObserverEntry { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/boundingClientRect) */ + readonly boundingClientRect: DOMRectReadOnly; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRatio) */ + readonly intersectionRatio: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRect) */ + readonly intersectionRect: DOMRectReadOnly; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/isIntersecting) */ + readonly isIntersecting: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/rootBounds) */ + readonly rootBounds: DOMRectReadOnly | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/target) */ + readonly target: Element; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/time) */ + readonly time: DOMHighResTimeStamp; +} + +declare var IntersectionObserverEntry: { + prototype: IntersectionObserverEntry; + new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile) */ +interface KHR_parallel_shader_compile { + readonly COMPLETION_STATUS_KHR: 0x91B1; +} + +/** + * KeyboardEvent objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key (or combination of a key with modifier keys) on the keyboard. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent) + */ +interface KeyboardEvent extends UIEvent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/altKey) */ + readonly altKey: boolean; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/charCode) + */ + readonly charCode: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/code) */ + readonly code: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/ctrlKey) */ + readonly ctrlKey: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/isComposing) */ + readonly isComposing: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/key) */ + readonly key: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/keyCode) + */ + readonly keyCode: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/location) */ + readonly location: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/metaKey) */ + readonly metaKey: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/repeat) */ + readonly repeat: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/shiftKey) */ + readonly shiftKey: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/getModifierState) */ + getModifierState(keyArg: string): boolean; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/initKeyboardEvent) + */ + initKeyboardEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, keyArg?: string, locationArg?: number, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): void; + readonly DOM_KEY_LOCATION_STANDARD: 0x00; + readonly DOM_KEY_LOCATION_LEFT: 0x01; + readonly DOM_KEY_LOCATION_RIGHT: 0x02; + readonly DOM_KEY_LOCATION_NUMPAD: 0x03; +} + +declare var KeyboardEvent: { + prototype: KeyboardEvent; + new(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent; + readonly DOM_KEY_LOCATION_STANDARD: 0x00; + readonly DOM_KEY_LOCATION_LEFT: 0x01; + readonly DOM_KEY_LOCATION_RIGHT: 0x02; + readonly DOM_KEY_LOCATION_NUMPAD: 0x03; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect) */ +interface KeyframeEffect extends AnimationEffect { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/composite) */ + composite: CompositeOperation; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/iterationComposite) */ + iterationComposite: IterationCompositeOperation; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/pseudoElement) */ + pseudoElement: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/target) */ + target: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/getKeyframes) */ + getKeyframes(): ComputedKeyframe[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/setKeyframes) */ + setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void; +} + +declare var KeyframeEffect: { + prototype: KeyframeEffect; + new(target: Element | null, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions): KeyframeEffect; + new(source: KeyframeEffect): KeyframeEffect; +}; + +interface LinkStyle { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sheet) */ + readonly sheet: CSSStyleSheet | null; +} + +/** + * The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location) + */ +interface Location { + /** + * Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/ancestorOrigins) + */ + readonly ancestorOrigins: DOMStringList; + /** + * Returns the Location object's URL's fragment (includes leading "#" if non-empty). + * + * Can be set, to navigate to the same URL with a changed fragment (ignores leading "#"). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/hash) + */ + hash: string; + /** + * Returns the Location object's URL's host and port (if different from the default port for the scheme). + * + * Can be set, to navigate to the same URL with a changed host and port. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/host) + */ + host: string; + /** + * Returns the Location object's URL's host. + * + * Can be set, to navigate to the same URL with a changed host. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/hostname) + */ + hostname: string; + /** + * Returns the Location object's URL. + * + * Can be set, to navigate to the given URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/href) + */ + href: string; + toString(): string; + /** + * Returns the Location object's URL's origin. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/origin) + */ + readonly origin: string; + /** + * Returns the Location object's URL's path. + * + * Can be set, to navigate to the same URL with a changed path. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/pathname) + */ + pathname: string; + /** + * Returns the Location object's URL's port. + * + * Can be set, to navigate to the same URL with a changed port. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/port) + */ + port: string; + /** + * Returns the Location object's URL's scheme. + * + * Can be set, to navigate to the same URL with a changed scheme. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/protocol) + */ + protocol: string; + /** + * Returns the Location object's URL's query (includes leading "?" if non-empty). + * + * Can be set, to navigate to the same URL with a changed query (ignores leading "?"). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/search) + */ + search: string; + /** + * Navigates to the given URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/assign) + */ + assign(url: string | URL): void; + /** + * Reloads the current page. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/reload) + */ + reload(): void; + /** + * Removes the current page from the session history and navigates to the given URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/replace) + */ + replace(url: string | URL): void; +} + +declare var Location: { + prototype: Location; + new(): Location; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock) + */ +interface Lock { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/mode) */ + readonly mode: LockMode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/name) */ + readonly name: string; +} + +declare var Lock: { + prototype: Lock; + new(): Lock; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager) + */ +interface LockManager { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */ + query(): Promise<LockManagerSnapshot>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */ + request(name: string, callback: LockGrantedCallback): Promise<any>; + request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>; +} + +declare var LockManager: { + prototype: LockManager; + new(): LockManager; +}; + +interface MIDIAccessEventMap { + "statechange": Event; +} + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess) + */ +interface MIDIAccess extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/inputs) */ + readonly inputs: MIDIInputMap; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/statechange_event) */ + onstatechange: ((this: MIDIAccess, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/outputs) */ + readonly outputs: MIDIOutputMap; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/sysexEnabled) */ + readonly sysexEnabled: boolean; + addEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MIDIAccess: { + prototype: MIDIAccess; + new(): MIDIAccess; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent) + */ +interface MIDIConnectionEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent/port) */ + readonly port: MIDIPort | null; +} + +declare var MIDIConnectionEvent: { + prototype: MIDIConnectionEvent; + new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent; +}; + +interface MIDIInputEventMap extends MIDIPortEventMap { + "midimessage": MIDIMessageEvent; +} + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInput) + */ +interface MIDIInput extends MIDIPort { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInput/midimessage_event) */ + onmidimessage: ((this: MIDIInput, ev: MIDIMessageEvent) => any) | null; + addEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MIDIInput: { + prototype: MIDIInput; + new(): MIDIInput; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInputMap) + */ +interface MIDIInputMap { + forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void; +} + +declare var MIDIInputMap: { + prototype: MIDIInputMap; + new(): MIDIInputMap; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent) + */ +interface MIDIMessageEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent/data) */ + readonly data: Uint8Array | null; +} + +declare var MIDIMessageEvent: { + prototype: MIDIMessageEvent; + new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput) + */ +interface MIDIOutput extends MIDIPort { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) */ + send(data: number[], timestamp?: DOMHighResTimeStamp): void; + addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MIDIOutput: { + prototype: MIDIOutput; + new(): MIDIOutput; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutputMap) + */ +interface MIDIOutputMap { + forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void; +} + +declare var MIDIOutputMap: { + prototype: MIDIOutputMap; + new(): MIDIOutputMap; +}; + +interface MIDIPortEventMap { + "statechange": MIDIConnectionEvent; +} + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort) + */ +interface MIDIPort extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/connection) */ + readonly connection: MIDIPortConnectionState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/id) */ + readonly id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/manufacturer) */ + readonly manufacturer: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/name) */ + readonly name: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/statechange_event) */ + onstatechange: ((this: MIDIPort, ev: MIDIConnectionEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/state) */ + readonly state: MIDIPortDeviceState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/type) */ + readonly type: MIDIPortType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/version) */ + readonly version: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/close) */ + close(): Promise<MIDIPort>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/open) */ + open(): Promise<MIDIPort>; + addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MIDIPort: { + prototype: MIDIPort; + new(): MIDIPort; +}; + +interface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap { +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MathMLElement) */ +interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement { + addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MathMLElement: { + prototype: MathMLElement; + new(): MathMLElement; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities) */ +interface MediaCapabilities { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/decodingInfo) */ + decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/encodingInfo) */ + encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>; +} + +declare var MediaCapabilities: { + prototype: MediaCapabilities; + new(): MediaCapabilities; +}; + +/** + * The MediaDevicesInfo interface contains information that describes a single media input or output device. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo) + */ +interface MediaDeviceInfo { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/deviceId) */ + readonly deviceId: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/groupId) */ + readonly groupId: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/kind) */ + readonly kind: MediaDeviceKind; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/label) */ + readonly label: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/toJSON) */ + toJSON(): any; +} + +declare var MediaDeviceInfo: { + prototype: MediaDeviceInfo; + new(): MediaDeviceInfo; +}; + +interface MediaDevicesEventMap { + "devicechange": Event; +} + +/** + * Provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices) + */ +interface MediaDevices extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/devicechange_event) */ + ondevicechange: ((this: MediaDevices, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/enumerateDevices) */ + enumerateDevices(): Promise<MediaDeviceInfo[]>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getDisplayMedia) */ + getDisplayMedia(options?: DisplayMediaStreamOptions): Promise<MediaStream>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getSupportedConstraints) */ + getSupportedConstraints(): MediaTrackSupportedConstraints; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getUserMedia) */ + getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>; + addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MediaDevices: { + prototype: MediaDevices; + new(): MediaDevices; +}; + +/** + * A MediaElementSourceNode has no inputs and exactly one output, and is created using the AudioContext.createMediaElementSource method. The amount of channels in the output equals the number of channels of the audio referenced by the HTMLMediaElement used in the creation of the node, or is 1 if the HTMLMediaElement has no audio. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaElementAudioSourceNode) + */ +interface MediaElementAudioSourceNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaElementAudioSourceNode/mediaElement) */ + readonly mediaElement: HTMLMediaElement; +} + +declare var MediaElementAudioSourceNode: { + prototype: MediaElementAudioSourceNode; + new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent) */ +interface MediaEncryptedEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent/initData) */ + readonly initData: ArrayBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent/initDataType) */ + readonly initDataType: string; +} + +declare var MediaEncryptedEvent: { + prototype: MediaEncryptedEvent; + new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent; +}; + +/** + * An error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as <audio> or <video>. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError) + */ +interface MediaError { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError/code) */ + readonly code: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError/message) */ + readonly message: string; + readonly MEDIA_ERR_ABORTED: 1; + readonly MEDIA_ERR_NETWORK: 2; + readonly MEDIA_ERR_DECODE: 3; + readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4; +} + +declare var MediaError: { + prototype: MediaError; + new(): MediaError; + readonly MEDIA_ERR_ABORTED: 1; + readonly MEDIA_ERR_NETWORK: 2; + readonly MEDIA_ERR_DECODE: 3; + readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4; +}; + +/** + * This EncryptedMediaExtensions API interface contains the content and related data when the content decryption module generates a message for the session. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent) + */ +interface MediaKeyMessageEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent/message) */ + readonly message: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent/messageType) */ + readonly messageType: MediaKeyMessageType; +} + +declare var MediaKeyMessageEvent: { + prototype: MediaKeyMessageEvent; + new(type: string, eventInitDict: MediaKeyMessageEventInit): MediaKeyMessageEvent; +}; + +interface MediaKeySessionEventMap { + "keystatuseschange": Event; + "message": MediaKeyMessageEvent; +} + +/** + * This EncryptedMediaExtensions API interface represents a context for message exchange with a content decryption module (CDM). + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession) + */ +interface MediaKeySession extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/closed) */ + readonly closed: Promise<MediaKeySessionClosedReason>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/expiration) */ + readonly expiration: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/keyStatuses) */ + readonly keyStatuses: MediaKeyStatusMap; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/keystatuseschange_event) */ + onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/message_event) */ + onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/sessionId) */ + readonly sessionId: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/close) */ + close(): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/generateRequest) */ + generateRequest(initDataType: string, initData: BufferSource): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/load) */ + load(sessionId: string): Promise<boolean>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/remove) */ + remove(): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/update) */ + update(response: BufferSource): Promise<void>; + addEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MediaKeySession: { + prototype: MediaKeySession; + new(): MediaKeySession; +}; + +/** + * This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap) + */ +interface MediaKeyStatusMap { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/size) */ + readonly size: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/get) */ + get(keyId: BufferSource): MediaKeyStatus | undefined; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/has) */ + has(keyId: BufferSource): boolean; + forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void; +} + +declare var MediaKeyStatusMap: { + prototype: MediaKeyStatusMap; + new(): MediaKeyStatusMap; +}; + +/** + * This EncryptedMediaExtensions API interface provides access to a Key System for decryption and/or a content protection provider. You can request an instance of this object using the Navigator.requestMediaKeySystemAccess method. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess) + */ +interface MediaKeySystemAccess { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/keySystem) */ + readonly keySystem: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/createMediaKeys) */ + createMediaKeys(): Promise<MediaKeys>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/getConfiguration) */ + getConfiguration(): MediaKeySystemConfiguration; +} + +declare var MediaKeySystemAccess: { + prototype: MediaKeySystemAccess; + new(): MediaKeySystemAccess; +}; + +/** + * This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys) + */ +interface MediaKeys { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/createSession) */ + createSession(sessionType?: MediaKeySessionType): MediaKeySession; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/setServerCertificate) */ + setServerCertificate(serverCertificate: BufferSource): Promise<boolean>; +} + +declare var MediaKeys: { + prototype: MediaKeys; + new(): MediaKeys; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList) */ +interface MediaList { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/mediaText) */ + mediaText: string; + toString(): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/appendMedium) */ + appendMedium(medium: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/deleteMedium) */ + deleteMedium(medium: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/item) */ + item(index: number): string | null; + [index: number]: string; +} + +declare var MediaList: { + prototype: MediaList; + new(): MediaList; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata) */ +interface MediaMetadata { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/album) */ + album: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/artist) */ + artist: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/artwork) */ + artwork: ReadonlyArray<MediaImage>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/title) */ + title: string; +} + +declare var MediaMetadata: { + prototype: MediaMetadata; + new(init?: MediaMetadataInit): MediaMetadata; +}; + +interface MediaQueryListEventMap { + "change": MediaQueryListEvent; +} + +/** + * Stores information on a media query applied to a document, and handles sending notifications to listeners when the media query state change (i.e. when the media query test starts or stops evaluating to true). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList) + */ +interface MediaQueryList extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/matches) */ + readonly matches: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/media) */ + readonly media: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/change_event) */ + onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/addListener) + */ + addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/removeListener) + */ + removeListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void; + addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MediaQueryList: { + prototype: MediaQueryList; + new(): MediaQueryList; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent) */ +interface MediaQueryListEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent/matches) */ + readonly matches: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent/media) */ + readonly media: string; +} + +declare var MediaQueryListEvent: { + prototype: MediaQueryListEvent; + new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent; +}; + +interface MediaRecorderEventMap { + "dataavailable": BlobEvent; + "error": Event; + "pause": Event; + "resume": Event; + "start": Event; + "stop": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder) */ +interface MediaRecorder extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/audioBitsPerSecond) */ + readonly audioBitsPerSecond: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/mimeType) */ + readonly mimeType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/dataavailable_event) */ + ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/error_event) */ + onerror: ((this: MediaRecorder, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause_event) */ + onpause: ((this: MediaRecorder, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume_event) */ + onresume: ((this: MediaRecorder, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/start_event) */ + onstart: ((this: MediaRecorder, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stop_event) */ + onstop: ((this: MediaRecorder, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/state) */ + readonly state: RecordingState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stream) */ + readonly stream: MediaStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/videoBitsPerSecond) */ + readonly videoBitsPerSecond: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause) */ + pause(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/requestData) */ + requestData(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume) */ + resume(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/start) */ + start(timeslice?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stop) */ + stop(): void; + addEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MediaRecorder: { + prototype: MediaRecorder; + new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/isTypeSupported_static) */ + isTypeSupported(type: string): boolean; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession) */ +interface MediaSession { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/metadata) */ + metadata: MediaMetadata | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/playbackState) */ + playbackState: MediaSessionPlaybackState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setActionHandler) */ + setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setPositionState) */ + setPositionState(state?: MediaPositionState): void; +} + +declare var MediaSession: { + prototype: MediaSession; + new(): MediaSession; +}; + +interface MediaSourceEventMap { + "sourceclose": Event; + "sourceended": Event; + "sourceopen": Event; +} + +/** + * This Media Source Extensions API interface represents a source of media data for an HTMLMediaElement object. A MediaSource object can be attached to a HTMLMediaElement to be played in the user agent. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource) + */ +interface MediaSource extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/activeSourceBuffers) */ + readonly activeSourceBuffers: SourceBufferList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/duration) */ + duration: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceclose_event) */ + onsourceclose: ((this: MediaSource, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceended_event) */ + onsourceended: ((this: MediaSource, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceopen_event) */ + onsourceopen: ((this: MediaSource, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/readyState) */ + readonly readyState: ReadyState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceBuffers) */ + readonly sourceBuffers: SourceBufferList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/addSourceBuffer) */ + addSourceBuffer(type: string): SourceBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/clearLiveSeekableRange) */ + clearLiveSeekableRange(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/endOfStream) */ + endOfStream(error?: EndOfStreamError): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/removeSourceBuffer) */ + removeSourceBuffer(sourceBuffer: SourceBuffer): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/setLiveSeekableRange) */ + setLiveSeekableRange(start: number, end: number): void; + addEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MediaSource: { + prototype: MediaSource; + new(): MediaSource; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/isTypeSupported_static) */ + isTypeSupported(type: string): boolean; +}; + +interface MediaStreamEventMap { + "addtrack": MediaStreamTrackEvent; + "removetrack": MediaStreamTrackEvent; +} + +/** + * A stream of media content. A stream consists of several tracks such as video or audio tracks. Each track is specified as an instance of MediaStreamTrack. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream) + */ +interface MediaStream extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/active) */ + readonly active: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/id) */ + readonly id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/addtrack_event) */ + onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/removetrack_event) */ + onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/addTrack) */ + addTrack(track: MediaStreamTrack): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/clone) */ + clone(): MediaStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getAudioTracks) */ + getAudioTracks(): MediaStreamTrack[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getTrackById) */ + getTrackById(trackId: string): MediaStreamTrack | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getTracks) */ + getTracks(): MediaStreamTrack[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getVideoTracks) */ + getVideoTracks(): MediaStreamTrack[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/removeTrack) */ + removeTrack(track: MediaStreamTrack): void; + addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MediaStream: { + prototype: MediaStream; + new(): MediaStream; + new(stream: MediaStream): MediaStream; + new(tracks: MediaStreamTrack[]): MediaStream; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioDestinationNode) */ +interface MediaStreamAudioDestinationNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioDestinationNode/stream) */ + readonly stream: MediaStream; +} + +declare var MediaStreamAudioDestinationNode: { + prototype: MediaStreamAudioDestinationNode; + new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode; +}; + +/** + * A type of AudioNode which operates as an audio source whose media is received from a MediaStream obtained using the WebRTC or Media Capture and Streams APIs. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioSourceNode) + */ +interface MediaStreamAudioSourceNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioSourceNode/mediaStream) */ + readonly mediaStream: MediaStream; +} + +declare var MediaStreamAudioSourceNode: { + prototype: MediaStreamAudioSourceNode; + new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode; +}; + +interface MediaStreamTrackEventMap { + "ended": Event; + "mute": Event; + "unmute": Event; +} + +/** + * A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack) + */ +interface MediaStreamTrack extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/contentHint) */ + contentHint: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/enabled) */ + enabled: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/id) */ + readonly id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/kind) */ + readonly kind: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/label) */ + readonly label: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/muted) */ + readonly muted: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/ended_event) */ + onended: ((this: MediaStreamTrack, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/mute_event) */ + onmute: ((this: MediaStreamTrack, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/unmute_event) */ + onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/readyState) */ + readonly readyState: MediaStreamTrackState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/applyConstraints) */ + applyConstraints(constraints?: MediaTrackConstraints): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/clone) */ + clone(): MediaStreamTrack; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getCapabilities) */ + getCapabilities(): MediaTrackCapabilities; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getConstraints) */ + getConstraints(): MediaTrackConstraints; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getSettings) */ + getSettings(): MediaTrackSettings; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/stop) */ + stop(): void; + addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MediaStreamTrack: { + prototype: MediaStreamTrack; + new(): MediaStreamTrack; +}; + +/** + * Events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Stream API methods. These events are sent to the stream when these changes occur. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackEvent) + */ +interface MediaStreamTrackEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackEvent/track) */ + readonly track: MediaStreamTrack; +} + +declare var MediaStreamTrackEvent: { + prototype: MediaStreamTrackEvent; + new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent; +}; + +/** + * This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel) + */ +interface MessageChannel { + /** + * Returns the first MessagePort object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1) + */ + readonly port1: MessagePort; + /** + * Returns the second MessagePort object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2) + */ + readonly port2: MessagePort; +} + +declare var MessageChannel: { + prototype: MessageChannel; + new(): MessageChannel; +}; + +/** + * A message received by a target object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent) + */ +interface MessageEvent<T = any> extends Event { + /** + * Returns the data of the message. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data) + */ + readonly data: T; + /** + * Returns the last event ID string, for server-sent events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId) + */ + readonly lastEventId: string; + /** + * Returns the origin of the message, for server-sent events and cross-document messaging. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin) + */ + readonly origin: string; + /** + * Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports) + */ + readonly ports: ReadonlyArray<MessagePort>; + /** + * Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source) + */ + readonly source: MessageEventSource | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent) + */ + initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void; +} + +declare var MessageEvent: { + prototype: MessageEvent; + new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>; +}; + +interface MessagePortEventMap { + "message": MessageEvent; + "messageerror": MessageEvent; +} + +/** + * This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort) + */ +interface MessagePort extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/message_event) */ + onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/messageerror_event) */ + onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null; + /** + * Disconnects the port, so that it is no longer active. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close) + */ + close(): void; + /** + * Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side. + * + * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage) + */ + postMessage(message: any, transfer: Transferable[]): void; + postMessage(message: any, options?: StructuredSerializeOptions): void; + /** + * Begins dispatching messages received on the port. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start) + */ + start(): void; + addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MessagePort: { + prototype: MessagePort; + new(): MessagePort; +}; + +/** + * Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType) + */ +interface MimeType { + /** + * Returns the MIME type's description. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/description) + */ + readonly description: string; + /** + * Returns the Plugin object that implements this MIME type. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/enabledPlugin) + */ + readonly enabledPlugin: Plugin; + /** + * Returns the MIME type's typical file extensions, in a comma-separated list. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/suffixes) + */ + readonly suffixes: string; + /** + * Returns the MIME type. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/type) + */ + readonly type: string; +} + +/** @deprecated */ +declare var MimeType: { + prototype: MimeType; + new(): MimeType; +}; + +/** + * Returns an array of MimeType instances, each of which contains information about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray) + */ +interface MimeTypeArray { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/length) + */ + readonly length: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/item) + */ + item(index: number): MimeType | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/namedItem) + */ + namedItem(name: string): MimeType | null; + [index: number]: MimeType; +} + +/** @deprecated */ +declare var MimeTypeArray: { + prototype: MimeTypeArray; + new(): MimeTypeArray; +}; + +/** + * Events that occur due to the user interacting with a pointing device (such as a mouse). Common events using this interface include click, dblclick, mouseup, mousedown. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent) + */ +interface MouseEvent extends UIEvent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/altKey) */ + readonly altKey: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/button) */ + readonly button: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/buttons) */ + readonly buttons: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/clientX) */ + readonly clientX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/clientY) */ + readonly clientY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/ctrlKey) */ + readonly ctrlKey: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerX) */ + readonly layerX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerY) */ + readonly layerY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/metaKey) */ + readonly metaKey: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/movementX) */ + readonly movementX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/movementY) */ + readonly movementY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/offsetX) */ + readonly offsetX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/offsetY) */ + readonly offsetY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/pageX) */ + readonly pageX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/pageY) */ + readonly pageY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/relatedTarget) */ + readonly relatedTarget: EventTarget | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/screenX) */ + readonly screenX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/screenY) */ + readonly screenY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/shiftKey) */ + readonly shiftKey: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/x) */ + readonly x: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/y) */ + readonly y: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/getModifierState) */ + getModifierState(keyArg: string): boolean; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/initMouseEvent) + */ + initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget | null): void; +} + +declare var MouseEvent: { + prototype: MouseEvent; + new(type: string, eventInitDict?: MouseEventInit): MouseEvent; +}; + +/** + * Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes. + * @deprecated DOM4 [DOM] provides a new mechanism using a MutationObserver interface which addresses the use cases that mutation events solve, but in a more performant manner. Thus, this specification describes mutation events for reference and completeness of legacy behavior, but deprecates the use of the MutationEvent interface. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent) + */ +interface MutationEvent extends Event { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/attrChange) + */ + readonly attrChange: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/attrName) + */ + readonly attrName: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/newValue) + */ + readonly newValue: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/prevValue) + */ + readonly prevValue: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/relatedNode) + */ + readonly relatedNode: Node | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/initMutationEvent) + */ + initMutationEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, relatedNodeArg?: Node | null, prevValueArg?: string, newValueArg?: string, attrNameArg?: string, attrChangeArg?: number): void; + readonly MODIFICATION: 1; + readonly ADDITION: 2; + readonly REMOVAL: 3; +} + +/** @deprecated */ +declare var MutationEvent: { + prototype: MutationEvent; + new(): MutationEvent; + readonly MODIFICATION: 1; + readonly ADDITION: 2; + readonly REMOVAL: 3; +}; + +/** + * Provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature which was part of the DOM3 Events specification. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver) + */ +interface MutationObserver { + /** + * Stops observer from observing any mutations. Until the observe() method is used again, observer's callback will not be invoked. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/disconnect) + */ + disconnect(): void; + /** + * Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object). + * + * The options argument allows for setting mutation observation options via object members. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/observe) + */ + observe(target: Node, options?: MutationObserverInit): void; + /** + * Empties the record queue and returns what was in there. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/takeRecords) + */ + takeRecords(): MutationRecord[]; +} + +declare var MutationObserver: { + prototype: MutationObserver; + new(callback: MutationCallback): MutationObserver; +}; + +/** + * A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver's callback. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord) + */ +interface MutationRecord { + /** + * Return the nodes added and removed respectively. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/addedNodes) + */ + readonly addedNodes: NodeList; + /** + * Returns the local name of the changed attribute, and null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/attributeName) + */ + readonly attributeName: string | null; + /** + * Returns the namespace of the changed attribute, and null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/attributeNamespace) + */ + readonly attributeNamespace: string | null; + /** + * Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/nextSibling) + */ + readonly nextSibling: Node | null; + /** + * The return value depends on type. For "attributes", it is the value of the changed attribute before the change. For "characterData", it is the data of the changed node before the change. For "childList", it is null. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/oldValue) + */ + readonly oldValue: string | null; + /** + * Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/previousSibling) + */ + readonly previousSibling: Node | null; + /** + * Return the nodes added and removed respectively. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/removedNodes) + */ + readonly removedNodes: NodeList; + /** + * Returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/target) + */ + readonly target: Node; + /** + * Returns "attributes" if it was an attribute mutation. "characterData" if it was a mutation to a CharacterData node. And "childList" if it was a mutation to the tree of nodes. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/type) + */ + readonly type: MutationRecordType; +} + +declare var MutationRecord: { + prototype: MutationRecord; + new(): MutationRecord; +}; + +/** + * A collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap) + */ +interface NamedNodeMap { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItem) */ + getNamedItem(qualifiedName: string): Attr | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItemNS) */ + getNamedItemNS(namespace: string | null, localName: string): Attr | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/item) */ + item(index: number): Attr | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItem) */ + removeNamedItem(qualifiedName: string): Attr; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItemNS) */ + removeNamedItemNS(namespace: string | null, localName: string): Attr; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/setNamedItem) */ + setNamedItem(attr: Attr): Attr | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/setNamedItemNS) */ + setNamedItemNS(attr: Attr): Attr | null; + [index: number]: Attr; +} + +declare var NamedNodeMap: { + prototype: NamedNodeMap; + new(): NamedNodeMap; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager) + */ +interface NavigationPreloadManager { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable) */ + disable(): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable) */ + enable(): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/getState) */ + getState(): Promise<NavigationPreloadState>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/setHeaderValue) */ + setHeaderValue(value: string): Promise<void>; +} + +declare var NavigationPreloadManager: { + prototype: NavigationPreloadManager; + new(): NavigationPreloadManager; +}; + +/** + * The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator) + */ +interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage { + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clipboard) + */ + readonly clipboard: Clipboard; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/credentials) + */ + readonly credentials: CredentialsContainer; + readonly doNotTrack: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/geolocation) */ + readonly geolocation: Geolocation; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/maxTouchPoints) */ + readonly maxTouchPoints: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaCapabilities) */ + readonly mediaCapabilities: MediaCapabilities; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaDevices) + */ + readonly mediaDevices: MediaDevices; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaSession) */ + readonly mediaSession: MediaSession; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/permissions) */ + readonly permissions: Permissions; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/serviceWorker) + */ + readonly serviceWorker: ServiceWorkerContainer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userActivation) */ + readonly userActivation: UserActivation; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/wakeLock) */ + readonly wakeLock: WakeLock; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/canShare) + */ + canShare(data?: ShareData): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/getGamepads) */ + getGamepads(): (Gamepad | null)[]; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMIDIAccess) + */ + requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess) + */ + requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/sendBeacon) */ + sendBeacon(url: string | URL, data?: BodyInit | null): boolean; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/share) + */ + share(data?: ShareData): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate) */ + vibrate(pattern: VibratePattern): boolean; +} + +declare var Navigator: { + prototype: Navigator; + new(): Navigator; +}; + +interface NavigatorAutomationInformation { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/webdriver) */ + readonly webdriver: boolean; +} + +/** Available only in secure contexts. */ +interface NavigatorBadge { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clearAppBadge) */ + clearAppBadge(): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/setAppBadge) */ + setAppBadge(contents?: number): Promise<void>; +} + +interface NavigatorConcurrentHardware { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/hardwareConcurrency) */ + readonly hardwareConcurrency: number; +} + +interface NavigatorContentUtils { + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/registerProtocolHandler) + */ + registerProtocolHandler(scheme: string, url: string | URL): void; +} + +interface NavigatorCookies { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/cookieEnabled) */ + readonly cookieEnabled: boolean; +} + +interface NavigatorID { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) + */ + readonly appCodeName: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName) + */ + readonly appName: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion) + */ + readonly appVersion: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform) + */ + readonly platform: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product) + */ + readonly product: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/productSub) + */ + readonly productSub: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */ + readonly userAgent: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vendor) + */ + readonly vendor: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vendorSub) + */ + readonly vendorSub: string; +} + +interface NavigatorLanguage { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/language) */ + readonly language: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/languages) */ + readonly languages: ReadonlyArray<string>; +} + +/** Available only in secure contexts. */ +interface NavigatorLocks { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/locks) */ + readonly locks: LockManager; +} + +interface NavigatorOnLine { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/onLine) */ + readonly onLine: boolean; +} + +interface NavigatorPlugins { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigatorPlugins/mimeTypes) + */ + readonly mimeTypes: MimeTypeArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/pdfViewerEnabled) */ + readonly pdfViewerEnabled: boolean; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/plugins) + */ + readonly plugins: PluginArray; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/javaEnabled) + */ + javaEnabled(): boolean; +} + +/** Available only in secure contexts. */ +interface NavigatorStorage { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/storage) */ + readonly storage: StorageManager; +} + +/** + * Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node) + */ +interface Node extends EventTarget { + /** + * Returns node's node document's document base URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/baseURI) + */ + readonly baseURI: string; + /** + * Returns the children. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/childNodes) + */ + readonly childNodes: NodeListOf<ChildNode>; + /** + * Returns the first child. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/firstChild) + */ + readonly firstChild: ChildNode | null; + /** + * Returns true if node is connected and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isConnected) + */ + readonly isConnected: boolean; + /** + * Returns the last child. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lastChild) + */ + readonly lastChild: ChildNode | null; + /** + * Returns the next sibling. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) + */ + readonly nextSibling: ChildNode | null; + /** + * Returns a string appropriate for the type of node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeName) + */ + readonly nodeName: string; + /** + * Returns the type of node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeType) + */ + readonly nodeType: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) */ + nodeValue: string | null; + /** + * Returns the node document. Returns null for documents. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) + */ + readonly ownerDocument: Document | null; + /** + * Returns the parent element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentElement) + */ + readonly parentElement: HTMLElement | null; + /** + * Returns the parent. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentNode) + */ + readonly parentNode: ParentNode | null; + /** + * Returns the previous sibling. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) + */ + readonly previousSibling: ChildNode | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/textContent) */ + textContent: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/appendChild) */ + appendChild<T extends Node>(node: T): T; + /** + * Returns a copy of node. If deep is true, the copy also includes the node's descendants. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/cloneNode) + */ + cloneNode(deep?: boolean): Node; + /** + * Returns a bitmask indicating the position of other relative to node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition) + */ + compareDocumentPosition(other: Node): number; + /** + * Returns true if other is an inclusive descendant of node, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/contains) + */ + contains(other: Node | null): boolean; + /** + * Returns node's root. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/getRootNode) + */ + getRootNode(options?: GetRootNodeOptions): Node; + /** + * Returns whether node has children. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes) + */ + hasChildNodes(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/insertBefore) */ + insertBefore<T extends Node>(node: T, child: Node | null): T; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace) */ + isDefaultNamespace(namespace: string | null): boolean; + /** + * Returns whether node and otherNode have the same properties. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode) + */ + isEqualNode(otherNode: Node | null): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isSameNode) */ + isSameNode(otherNode: Node | null): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI) */ + lookupNamespaceURI(prefix: string | null): string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix) */ + lookupPrefix(namespace: string | null): string | null; + /** + * Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/normalize) + */ + normalize(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/removeChild) */ + removeChild<T extends Node>(child: T): T; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/replaceChild) */ + replaceChild<T extends Node>(node: Node, child: T): T; + /** node is an element. */ + readonly ELEMENT_NODE: 1; + readonly ATTRIBUTE_NODE: 2; + /** node is a Text node. */ + readonly TEXT_NODE: 3; + /** node is a CDATASection node. */ + readonly CDATA_SECTION_NODE: 4; + readonly ENTITY_REFERENCE_NODE: 5; + readonly ENTITY_NODE: 6; + /** node is a ProcessingInstruction node. */ + readonly PROCESSING_INSTRUCTION_NODE: 7; + /** node is a Comment node. */ + readonly COMMENT_NODE: 8; + /** node is a document. */ + readonly DOCUMENT_NODE: 9; + /** node is a doctype. */ + readonly DOCUMENT_TYPE_NODE: 10; + /** node is a DocumentFragment node. */ + readonly DOCUMENT_FRAGMENT_NODE: 11; + readonly NOTATION_NODE: 12; + /** Set when node and other are not in the same tree. */ + readonly DOCUMENT_POSITION_DISCONNECTED: 0x01; + /** Set when other is preceding node. */ + readonly DOCUMENT_POSITION_PRECEDING: 0x02; + /** Set when other is following node. */ + readonly DOCUMENT_POSITION_FOLLOWING: 0x04; + /** Set when other is an ancestor of node. */ + readonly DOCUMENT_POSITION_CONTAINS: 0x08; + /** Set when other is a descendant of node. */ + readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10; + readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20; +} + +declare var Node: { + prototype: Node; + new(): Node; + /** node is an element. */ + readonly ELEMENT_NODE: 1; + readonly ATTRIBUTE_NODE: 2; + /** node is a Text node. */ + readonly TEXT_NODE: 3; + /** node is a CDATASection node. */ + readonly CDATA_SECTION_NODE: 4; + readonly ENTITY_REFERENCE_NODE: 5; + readonly ENTITY_NODE: 6; + /** node is a ProcessingInstruction node. */ + readonly PROCESSING_INSTRUCTION_NODE: 7; + /** node is a Comment node. */ + readonly COMMENT_NODE: 8; + /** node is a document. */ + readonly DOCUMENT_NODE: 9; + /** node is a doctype. */ + readonly DOCUMENT_TYPE_NODE: 10; + /** node is a DocumentFragment node. */ + readonly DOCUMENT_FRAGMENT_NODE: 11; + readonly NOTATION_NODE: 12; + /** Set when node and other are not in the same tree. */ + readonly DOCUMENT_POSITION_DISCONNECTED: 0x01; + /** Set when other is preceding node. */ + readonly DOCUMENT_POSITION_PRECEDING: 0x02; + /** Set when other is following node. */ + readonly DOCUMENT_POSITION_FOLLOWING: 0x04; + /** Set when other is an ancestor of node. */ + readonly DOCUMENT_POSITION_CONTAINS: 0x08; + /** Set when other is a descendant of node. */ + readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10; + readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20; +}; + +/** + * An iterator over the members of a list of the nodes in a subtree of the DOM. The nodes will be returned in document order. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator) + */ +interface NodeIterator { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/filter) */ + readonly filter: NodeFilter | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/pointerBeforeReferenceNode) */ + readonly pointerBeforeReferenceNode: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/referenceNode) */ + readonly referenceNode: Node; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/root) */ + readonly root: Node; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/whatToShow) */ + readonly whatToShow: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/detach) + */ + detach(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/nextNode) */ + nextNode(): Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/previousNode) */ + previousNode(): Node | null; +} + +declare var NodeIterator: { + prototype: NodeIterator; + new(): NodeIterator; +}; + +/** + * NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll(). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList) + */ +interface NodeList { + /** + * Returns the number of nodes in the collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/length) + */ + readonly length: number; + /** + * Returns the node with index index from the collection. The nodes are sorted in tree order. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/item) + */ + item(index: number): Node | null; + /** + * Performs the specified action for each node in an list. + * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void; + [index: number]: Node; +} + +declare var NodeList: { + prototype: NodeList; + new(): NodeList; +}; + +interface NodeListOf<TNode extends Node> extends NodeList { + item(index: number): TNode; + /** + * Performs the specified action for each node in an list. + * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf<TNode>) => void, thisArg?: any): void; + [index: number]: TNode; +} + +interface NonDocumentTypeChildNode { + /** + * Returns the first following sibling that is an element, and null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/nextElementSibling) + */ + readonly nextElementSibling: Element | null; + /** + * Returns the first preceding sibling that is an element, and null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/previousElementSibling) + */ + readonly previousElementSibling: Element | null; +} + +interface NonElementParentNode { + /** + * Returns the first element within node's descendants whose ID is elementId. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementById) + */ + getElementById(elementId: string): Element | null; +} + +interface NotificationEventMap { + "click": Event; + "close": Event; + "error": Event; + "show": Event; +} + +/** + * This Notifications API interface is used to configure and display desktop notifications to the user. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification) + */ +interface Notification extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge) */ + readonly badge: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body) */ + readonly body: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data) */ + readonly data: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/dir) */ + readonly dir: NotificationDirection; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/icon) */ + readonly icon: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/lang) */ + readonly lang: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/click_event) */ + onclick: ((this: Notification, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close_event) */ + onclose: ((this: Notification, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/error_event) */ + onerror: ((this: Notification, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */ + onshow: ((this: Notification, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */ + readonly requireInteraction: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */ + readonly silent: boolean | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */ + readonly tag: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) */ + readonly title: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close) */ + close(): void; + addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var Notification: { + prototype: Notification; + new(title: string, options?: NotificationOptions): Notification; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static) */ + readonly permission: NotificationPermission; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requestPermission_static) */ + requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed) */ +interface OES_draw_buffers_indexed { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationSeparateiOES) */ + blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES) */ + blendEquationiOES(buf: GLuint, mode: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFuncSeparateiOES) */ + blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES) */ + blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/colorMaskiOES) */ + colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES) */ + disableiOES(target: GLenum, index: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/enableiOES) */ + enableiOES(target: GLenum, index: GLuint): void; +} + +/** + * The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_element_index_uint) + */ +interface OES_element_index_uint { +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_fbo_render_mipmap) */ +interface OES_fbo_render_mipmap { +} + +/** + * The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_standard_derivatives) + */ +interface OES_standard_derivatives { + readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B; +} + +/** + * The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float) + */ +interface OES_texture_float { +} + +/** + * The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float_linear) + */ +interface OES_texture_float_linear { +} + +/** + * The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float) + */ +interface OES_texture_half_float { + readonly HALF_FLOAT_OES: 0x8D61; +} + +/** + * The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float_linear) + */ +interface OES_texture_half_float_linear { +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object) */ +interface OES_vertex_array_object { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES) */ + bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES) */ + createVertexArrayOES(): WebGLVertexArrayObjectOES | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES) */ + deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES) */ + isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean; + readonly VERTEX_ARRAY_BINDING_OES: 0x85B5; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2) */ +interface OVR_multiview2 { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2/framebufferTextureMultiviewOVR) */ + framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632; + readonly MAX_VIEWS_OVR: 0x9631; + readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633; +} + +/** + * The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent) + */ +interface OfflineAudioCompletionEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent/renderedBuffer) */ + readonly renderedBuffer: AudioBuffer; +} + +declare var OfflineAudioCompletionEvent: { + prototype: OfflineAudioCompletionEvent; + new(type: string, eventInitDict: OfflineAudioCompletionEventInit): OfflineAudioCompletionEvent; +}; + +interface OfflineAudioContextEventMap extends BaseAudioContextEventMap { + "complete": OfflineAudioCompletionEvent; +} + +/** + * An AudioContext interface representing an audio-processing graph built from linked together AudioNodes. In contrast with a standard AudioContext, an OfflineAudioContext doesn't render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an AudioBuffer. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext) + */ +interface OfflineAudioContext extends BaseAudioContext { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/complete_event) */ + oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/resume) */ + resume(): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/startRendering) */ + startRendering(): Promise<AudioBuffer>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/suspend) */ + suspend(suspendTime: number): Promise<void>; + addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var OfflineAudioContext: { + prototype: OfflineAudioContext; + new(contextOptions: OfflineAudioContextOptions): OfflineAudioContext; + new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext; +}; + +interface OffscreenCanvasEventMap { + "contextlost": Event; + "contextrestored": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas) */ +interface OffscreenCanvas extends EventTarget { + /** + * These attributes return the dimensions of the OffscreenCanvas object's bitmap. + * + * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height) + */ + height: number; + oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null; + oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null; + /** + * These attributes return the dimensions of the OffscreenCanvas object's bitmap. + * + * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/width) + */ + width: number; + /** + * Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object. + * + * The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob) + */ + convertToBlob(options?: ImageEncodeOptions): Promise<Blob>; + /** + * Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API. + * + * This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL] + * + * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext) + */ + getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null; + getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null; + getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null; + getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; + getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; + /** + * Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) + */ + transferToImageBitmap(): ImageBitmap; + addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var OffscreenCanvas: { + prototype: OffscreenCanvas; + new(width: number, height: number): OffscreenCanvas; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */ +interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform { + readonly canvas: OffscreenCanvas; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */ + commit(): void; +} + +declare var OffscreenCanvasRenderingContext2D: { + prototype: OffscreenCanvasRenderingContext2D; + new(): OffscreenCanvasRenderingContext2D; +}; + +/** + * The OscillatorNode interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode) + */ +interface OscillatorNode extends AudioScheduledSourceNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/detune) */ + readonly detune: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/frequency) */ + readonly frequency: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/type) */ + type: OscillatorType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/setPeriodicWave) */ + setPeriodicWave(periodicWave: PeriodicWave): void; + addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var OscillatorNode: { + prototype: OscillatorNode; + new(context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError) */ +interface OverconstrainedError extends DOMException { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError/constraint) */ + readonly constraint: string; +} + +declare var OverconstrainedError: { + prototype: OverconstrainedError; + new(constraint: string, message?: string): OverconstrainedError; +}; + +/** + * The PageTransitionEvent is fired when a document is being loaded or unloaded. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageTransitionEvent) + */ +interface PageTransitionEvent extends Event { + /** + * For the pageshow event, returns false if the page is newly being loaded (and the load event will fire). Otherwise, returns true. + * + * For the pagehide event, returns false if the page is going away for the last time. Otherwise, returns true, meaning that (if nothing conspires to make the page unsalvageable) the page might be reused if the user navigates back to this page. + * + * Things that can cause the page to be unsalvageable include: + * + * The user agent decided to not keep the Document alive in a session history entry after unload + * Having iframes that are not salvageable + * Active WebSocket objects + * Aborting a Document + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageTransitionEvent/persisted) + */ + readonly persisted: boolean; +} + +declare var PageTransitionEvent: { + prototype: PageTransitionEvent; + new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent; +}; + +/** + * A PannerNode always has exactly one input and one output: the input can be mono or stereo but the output is always stereo (2 channels); you can't have panning effects without at least two audio channels! + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode) + */ +interface PannerNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneInnerAngle) */ + coneInnerAngle: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneOuterAngle) */ + coneOuterAngle: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneOuterGain) */ + coneOuterGain: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/distanceModel) */ + distanceModel: DistanceModelType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/maxDistance) */ + maxDistance: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationX) */ + readonly orientationX: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationY) */ + readonly orientationY: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationZ) */ + readonly orientationZ: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/panningModel) */ + panningModel: PanningModelType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionX) */ + readonly positionX: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionY) */ + readonly positionY: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionZ) */ + readonly positionZ: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/refDistance) */ + refDistance: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/rolloffFactor) */ + rolloffFactor: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/setOrientation) + */ + setOrientation(x: number, y: number, z: number): void; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/setPosition) + */ + setPosition(x: number, y: number, z: number): void; +} + +declare var PannerNode: { + prototype: PannerNode; + new(context: BaseAudioContext, options?: PannerOptions): PannerNode; +}; + +interface ParentNode extends Node { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/childElementCount) */ + readonly childElementCount: number; + /** + * Returns the child elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/children) + */ + readonly children: HTMLCollection; + /** + * Returns the first child that is an element, and null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/firstElementChild) + */ + readonly firstElementChild: Element | null; + /** + * Returns the last child that is an element, and null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastElementChild) + */ + readonly lastElementChild: Element | null; + /** + * Inserts nodes after the last child of 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/Document/append) + */ + append(...nodes: (Node | string)[]): void; + /** + * Inserts nodes before the first child of 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/Document/prepend) + */ + prepend(...nodes: (Node | string)[]): void; + /** + * Returns the first element that is a descendant of node that matches selectors. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/querySelector) + */ + querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null; + querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null; + querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null; + /** @deprecated */ + querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null; + querySelector<E extends Element = Element>(selectors: string): E | null; + /** + * Returns all element descendants of node that match selectors. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/querySelectorAll) + */ + querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>; + querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>; + querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>; + /** @deprecated */ + querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>; + querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>; + /** + * Replace all children of 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/Document/replaceChildren) + */ + replaceChildren(...nodes: (Node | string)[]): void; +} + +/** + * This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D) + */ +interface Path2D extends CanvasPath { + /** + * Adds to the path the path given by the argument. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D/addPath) + */ + addPath(path: Path2D, transform?: DOMMatrix2DInit): void; +} + +declare var Path2D: { + prototype: Path2D; + new(path?: Path2D | string): Path2D; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent) + */ +interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodDetails) */ + readonly methodDetails: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodName) */ + readonly methodName: string; +} + +declare var PaymentMethodChangeEvent: { + prototype: PaymentMethodChangeEvent; + new(type: string, eventInitDict?: PaymentMethodChangeEventInit): PaymentMethodChangeEvent; +}; + +interface PaymentRequestEventMap { + "paymentmethodchange": Event; +} + +/** + * This Payment Request API interface is the primary access point into the API, and lets web content and apps accept payments from the end user. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest) + */ +interface PaymentRequest extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/id) */ + readonly id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/paymentmethodchange_event) */ + onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/abort) */ + abort(): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/canMakePayment) */ + canMakePayment(): Promise<boolean>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/show) */ + show(detailsPromise?: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): Promise<PaymentResponse>; + addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var PaymentRequest: { + prototype: PaymentRequest; + new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest; +}; + +/** + * This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequestUpdateEvent) + */ +interface PaymentRequestUpdateEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequestUpdateEvent/updateWith) */ + updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): void; +} + +declare var PaymentRequestUpdateEvent: { + prototype: PaymentRequestUpdateEvent; + new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent; +}; + +/** + * This Payment Request API interface is returned after a user selects a payment method and approves a payment request. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse) + */ +interface PaymentResponse extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/details) */ + readonly details: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/methodName) */ + readonly methodName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/requestId) */ + readonly requestId: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/complete) */ + complete(result?: PaymentComplete): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/retry) */ + retry(errorFields?: PaymentValidationErrors): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/toJSON) */ + toJSON(): any; +} + +declare var PaymentResponse: { + prototype: PaymentResponse; + new(): PaymentResponse; +}; + +interface PerformanceEventMap { + "resourcetimingbufferfull": Event; +} + +/** + * Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance) + */ +interface Performance extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/eventCounts) */ + readonly eventCounts: EventCounts; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/navigation) + */ + readonly navigation: PerformanceNavigation; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/resourcetimingbufferfull_event) */ + onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timeOrigin) */ + readonly timeOrigin: DOMHighResTimeStamp; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timing) + */ + readonly timing: PerformanceTiming; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMarks) */ + clearMarks(markName?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMeasures) */ + clearMeasures(measureName?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings) */ + clearResourceTimings(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntries) */ + getEntries(): PerformanceEntryList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */ + getEntriesByName(name: string, type?: string): PerformanceEntryList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */ + getEntriesByType(type: string): PerformanceEntryList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/mark) */ + mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/measure) */ + measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/now) */ + now(): DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize) */ + setResourceTimingBufferSize(maxSize: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */ + toJSON(): any; + addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var Performance: { + prototype: Performance; + new(): Performance; +}; + +/** + * Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry) + */ +interface PerformanceEntry { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration) */ + readonly duration: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/entryType) */ + readonly entryType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime) */ + readonly startTime: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */ + toJSON(): any; +} + +declare var PerformanceEntry: { + prototype: PerformanceEntry; + new(): PerformanceEntry; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming) */ +interface PerformanceEventTiming extends PerformanceEntry { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/cancelable) */ + readonly cancelable: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/processingEnd) */ + readonly processingEnd: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/processingStart) */ + readonly processingStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/target) */ + readonly target: Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/toJSON) */ + toJSON(): any; +} + +declare var PerformanceEventTiming: { + prototype: PerformanceEventTiming; + new(): PerformanceEventTiming; +}; + +/** + * PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark) + */ +interface PerformanceMark extends PerformanceEntry { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark/detail) */ + readonly detail: any; +} + +declare var PerformanceMark: { + prototype: PerformanceMark; + new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark; +}; + +/** + * PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure) + */ +interface PerformanceMeasure extends PerformanceEntry { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure/detail) */ + readonly detail: any; +} + +declare var PerformanceMeasure: { + prototype: PerformanceMeasure; + new(): PerformanceMeasure; +}; + +/** + * The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done. + * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation) + */ +interface PerformanceNavigation { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/redirectCount) + */ + readonly redirectCount: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/type) + */ + readonly type: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/toJSON) + */ + toJSON(): any; + readonly TYPE_NAVIGATE: 0; + readonly TYPE_RELOAD: 1; + readonly TYPE_BACK_FORWARD: 2; + readonly TYPE_RESERVED: 255; +} + +/** @deprecated */ +declare var PerformanceNavigation: { + prototype: PerformanceNavigation; + new(): PerformanceNavigation; + readonly TYPE_NAVIGATE: 0; + readonly TYPE_RELOAD: 1; + readonly TYPE_BACK_FORWARD: 2; + readonly TYPE_RESERVED: 255; +}; + +/** + * Provides methods and properties to store and retrieve metrics regarding the browser's document navigation events. For example, this interface can be used to determine how much time it takes to load or unload a document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming) + */ +interface PerformanceNavigationTiming extends PerformanceResourceTiming { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domComplete) */ + readonly domComplete: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventEnd) */ + readonly domContentLoadedEventEnd: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventStart) */ + readonly domContentLoadedEventStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domInteractive) */ + readonly domInteractive: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventEnd) */ + readonly loadEventEnd: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventStart) */ + readonly loadEventStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/redirectCount) */ + readonly redirectCount: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/type) */ + readonly type: NavigationTimingType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventEnd) */ + readonly unloadEventEnd: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventStart) */ + readonly unloadEventStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/toJSON) */ + toJSON(): any; +} + +declare var PerformanceNavigationTiming: { + prototype: PerformanceNavigationTiming; + new(): PerformanceNavigationTiming; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver) */ +interface PerformanceObserver { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect) */ + disconnect(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe) */ + observe(options?: PerformanceObserverInit): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/takeRecords) */ + takeRecords(): PerformanceEntryList; +} + +declare var PerformanceObserver: { + prototype: PerformanceObserver; + new(callback: PerformanceObserverCallback): PerformanceObserver; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static) */ + readonly supportedEntryTypes: ReadonlyArray<string>; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList) */ +interface PerformanceObserverEntryList { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries) */ + getEntries(): PerformanceEntryList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */ + getEntriesByName(name: string, type?: string): PerformanceEntryList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */ + getEntriesByType(type: string): PerformanceEntryList; +} + +declare var PerformanceObserverEntryList: { + prototype: PerformanceObserverEntryList; + new(): PerformanceObserverEntryList; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming) */ +interface PerformancePaintTiming extends PerformanceEntry { +} + +declare var PerformancePaintTiming: { + prototype: PerformancePaintTiming; + new(): PerformancePaintTiming; +}; + +/** + * Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming) + */ +interface PerformanceResourceTiming extends PerformanceEntry { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd) */ + readonly connectEnd: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ + readonly connectStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */ + readonly decodedBodySize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd) */ + readonly domainLookupEnd: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart) */ + readonly domainLookupStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize) */ + readonly encodedBodySize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */ + readonly fetchStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/initiatorType) */ + readonly initiatorType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/nextHopProtocol) */ + readonly nextHopProtocol: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd) */ + readonly redirectEnd: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart) */ + readonly redirectStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart) */ + readonly requestStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd) */ + readonly responseEnd: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart) */ + readonly responseStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart) */ + readonly secureConnectionStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming) */ + readonly serverTiming: ReadonlyArray<PerformanceServerTiming>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ + readonly transferSize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart) */ + readonly workerStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */ + toJSON(): any; +} + +declare var PerformanceResourceTiming: { + prototype: PerformanceResourceTiming; + new(): PerformanceResourceTiming; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming) */ +interface PerformanceServerTiming { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/description) */ + readonly description: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration) */ + readonly duration: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */ + toJSON(): any; +} + +declare var PerformanceServerTiming: { + prototype: PerformanceServerTiming; + new(): PerformanceServerTiming; +}; + +/** + * A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property. + * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming) + */ +interface PerformanceTiming { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/connectEnd) + */ + readonly connectEnd: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/connectStart) + */ + readonly connectStart: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domComplete) + */ + readonly domComplete: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domContentLoadedEventEnd) + */ + readonly domContentLoadedEventEnd: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domContentLoadedEventStart) + */ + readonly domContentLoadedEventStart: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domInteractive) + */ + readonly domInteractive: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domLoading) + */ + readonly domLoading: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domainLookupEnd) + */ + readonly domainLookupEnd: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domainLookupStart) + */ + readonly domainLookupStart: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/fetchStart) + */ + readonly fetchStart: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/loadEventEnd) + */ + readonly loadEventEnd: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/loadEventStart) + */ + readonly loadEventStart: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/navigationStart) + */ + readonly navigationStart: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/redirectEnd) + */ + readonly redirectEnd: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/redirectStart) + */ + readonly redirectStart: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/requestStart) + */ + readonly requestStart: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/responseEnd) + */ + readonly responseEnd: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/responseStart) + */ + readonly responseStart: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/secureConnectionStart) + */ + readonly secureConnectionStart: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/unloadEventEnd) + */ + readonly unloadEventEnd: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/unloadEventStart) + */ + readonly unloadEventStart: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/toJSON) + */ + toJSON(): any; +} + +/** @deprecated */ +declare var PerformanceTiming: { + prototype: PerformanceTiming; + new(): PerformanceTiming; +}; + +/** + * PeriodicWave has no inputs or outputs; it is used to define custom oscillators when calling OscillatorNode.setPeriodicWave(). The PeriodicWave itself is created/returned by AudioContext.createPeriodicWave(). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PeriodicWave) + */ +interface PeriodicWave { +} + +declare var PeriodicWave: { + prototype: PeriodicWave; + new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave; +}; + +interface PermissionStatusEventMap { + "change": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus) */ +interface PermissionStatus extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/change_event) */ + onchange: ((this: PermissionStatus, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/state) */ + readonly state: PermissionState; + addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var PermissionStatus: { + prototype: PermissionStatus; + new(): PermissionStatus; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions) */ +interface Permissions { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions/query) */ + query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>; +} + +declare var Permissions: { + prototype: Permissions; + new(): Permissions; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureEvent) */ +interface PictureInPictureEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureEvent/pictureInPictureWindow) */ + readonly pictureInPictureWindow: PictureInPictureWindow; +} + +declare var PictureInPictureEvent: { + prototype: PictureInPictureEvent; + new(type: string, eventInitDict: PictureInPictureEventInit): PictureInPictureEvent; +}; + +interface PictureInPictureWindowEventMap { + "resize": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow) */ +interface PictureInPictureWindow extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/height) */ + readonly height: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/resize_event) */ + onresize: ((this: PictureInPictureWindow, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/width) */ + readonly width: number; + addEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var PictureInPictureWindow: { + prototype: PictureInPictureWindow; + new(): PictureInPictureWindow; +}; + +/** + * Provides information about a browser plugin. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin) + */ +interface Plugin { + /** + * Returns the plugin's description. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/description) + */ + readonly description: string; + /** + * Returns the plugin library's filename, if applicable on the current platform. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/filename) + */ + readonly filename: string; + /** + * Returns the number of MIME types, represented by MimeType objects, supported by the plugin. + * @deprecated + */ + readonly length: number; + /** + * Returns the plugin's name. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/name) + */ + readonly name: string; + /** + * Returns the specified MimeType object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/item) + */ + item(index: number): MimeType | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/namedItem) + */ + namedItem(name: string): MimeType | null; + [index: number]: MimeType; +} + +/** @deprecated */ +declare var Plugin: { + prototype: Plugin; + new(): Plugin; +}; + +/** + * Used to store a list of Plugin objects describing the available plugins; it's returned by the window.navigator.plugins property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray) + */ +interface PluginArray { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/length) + */ + readonly length: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/item) + */ + item(index: number): Plugin | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/namedItem) + */ + namedItem(name: string): Plugin | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/refresh) + */ + refresh(): void; + [index: number]: Plugin; +} + +/** @deprecated */ +declare var PluginArray: { + prototype: PluginArray; + new(): PluginArray; +}; + +/** + * The state of a DOM event produced by a pointer such as the geometry of the contact point, the device type that generated the event, the amount of pressure that was applied on the contact surface, etc. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent) + */ +interface PointerEvent extends MouseEvent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/height) */ + readonly height: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/isPrimary) */ + readonly isPrimary: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pointerId) */ + readonly pointerId: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pointerType) */ + readonly pointerType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pressure) */ + readonly pressure: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tangentialPressure) */ + readonly tangentialPressure: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tiltX) */ + readonly tiltX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tiltY) */ + readonly tiltY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/twist) */ + readonly twist: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/width) */ + readonly width: number; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getCoalescedEvents) + */ + getCoalescedEvents(): PointerEvent[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getPredictedEvents) */ + getPredictedEvents(): PointerEvent[]; +} + +declare var PointerEvent: { + prototype: PointerEvent; + new(type: string, eventInitDict?: PointerEventInit): PointerEvent; +}; + +/** + * PopStateEvent is an event handler for the popstate event on the window. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent) + */ +interface PopStateEvent extends Event { + /** + * Returns a copy of the information that was provided to pushState() or replaceState(). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent/state) + */ + readonly state: any; +} + +declare var PopStateEvent: { + prototype: PopStateEvent; + new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent; +}; + +interface PopoverInvokerElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetAction) */ + popoverTargetAction: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetElement) */ + popoverTargetElement: Element | null; +} + +/** + * A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction) + */ +interface ProcessingInstruction extends CharacterData, LinkStyle { + readonly ownerDocument: Document; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction/target) */ + readonly target: string; +} + +declare var ProcessingInstruction: { + prototype: ProcessingInstruction; + new(): ProcessingInstruction; +}; + +/** + * Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent) + */ +interface ProgressEvent<T extends EventTarget = EventTarget> extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/lengthComputable) */ + readonly lengthComputable: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */ + readonly loaded: number; + readonly target: T | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */ + readonly total: number; +} + +declare var ProgressEvent: { + prototype: ProgressEvent; + new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent) */ +interface PromiseRejectionEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise) */ + readonly promise: Promise<any>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) */ + readonly reason: any; +} + +declare var PromiseRejectionEvent: { + prototype: PromiseRejectionEvent; + new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential) + */ +interface PublicKeyCredential extends Credential { + readonly authenticatorAttachment: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/rawId) */ + readonly rawId: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/response) */ + readonly response: AuthenticatorResponse; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientExtensionResults) */ + getClientExtensionResults(): AuthenticationExtensionsClientOutputs; +} + +declare var PublicKeyCredential: { + prototype: PublicKeyCredential; + new(): PublicKeyCredential; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isConditionalMediationAvailable) */ + isConditionalMediationAvailable(): Promise<boolean>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable_static) */ + isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>; +}; + +/** + * This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager) + */ +interface PushManager { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/getSubscription) */ + getSubscription(): Promise<PushSubscription | null>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/permissionState) */ + permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/subscribe) */ + subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>; +} + +declare var PushManager: { + prototype: PushManager; + new(): PushManager; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static) */ + readonly supportedContentEncodings: ReadonlyArray<string>; +}; + +/** + * This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription) + */ +interface PushSubscription { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/endpoint) */ + readonly endpoint: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/expirationTime) */ + readonly expirationTime: EpochTimeStamp | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/options) */ + readonly options: PushSubscriptionOptions; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey) */ + getKey(name: PushEncryptionKeyName): ArrayBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/toJSON) */ + toJSON(): PushSubscriptionJSON; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/unsubscribe) */ + unsubscribe(): Promise<boolean>; +} + +declare var PushSubscription: { + prototype: PushSubscription; + new(): PushSubscription; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions) + */ +interface PushSubscriptionOptions { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/applicationServerKey) */ + readonly applicationServerKey: ArrayBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/userVisibleOnly) */ + readonly userVisibleOnly: boolean; +} + +declare var PushSubscriptionOptions: { + prototype: PushSubscriptionOptions; + new(): PushSubscriptionOptions; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate) */ +interface RTCCertificate { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate/expires) */ + readonly expires: EpochTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate/getFingerprints) */ + getFingerprints(): RTCDtlsFingerprint[]; +} + +declare var RTCCertificate: { + prototype: RTCCertificate; + new(): RTCCertificate; +}; + +interface RTCDTMFSenderEventMap { + "tonechange": RTCDTMFToneChangeEvent; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender) */ +interface RTCDTMFSender extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/canInsertDTMF) */ + readonly canInsertDTMF: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/tonechange_event) */ + ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/toneBuffer) */ + readonly toneBuffer: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/insertDTMF) */ + insertDTMF(tones: string, duration?: number, interToneGap?: number): void; + addEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var RTCDTMFSender: { + prototype: RTCDTMFSender; + new(): RTCDTMFSender; +}; + +/** + * Events sent to indicate that DTMF tones have started or finished playing. This interface is used by the tonechange event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFToneChangeEvent) + */ +interface RTCDTMFToneChangeEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFToneChangeEvent/tone) */ + readonly tone: string; +} + +declare var RTCDTMFToneChangeEvent: { + prototype: RTCDTMFToneChangeEvent; + new(type: string, eventInitDict?: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent; +}; + +interface RTCDataChannelEventMap { + "bufferedamountlow": Event; + "close": Event; + "closing": Event; + "error": Event; + "message": MessageEvent; + "open": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel) */ +interface RTCDataChannel extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/binaryType) */ + binaryType: BinaryType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmount) */ + readonly bufferedAmount: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold) */ + bufferedAmountLowThreshold: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/id) */ + readonly id: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/label) */ + readonly label: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxPacketLifeTime) */ + readonly maxPacketLifeTime: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxRetransmits) */ + readonly maxRetransmits: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/negotiated) */ + readonly negotiated: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedamountlow_event) */ + onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close_event) */ + onclose: ((this: RTCDataChannel, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/closing_event) */ + onclosing: ((this: RTCDataChannel, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/error_event) */ + onerror: ((this: RTCDataChannel, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/message_event) */ + onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/open_event) */ + onopen: ((this: RTCDataChannel, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/ordered) */ + readonly ordered: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/protocol) */ + readonly protocol: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/readyState) */ + readonly readyState: RTCDataChannelState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/send) */ + send(data: string): void; + send(data: Blob): void; + send(data: ArrayBuffer): void; + send(data: ArrayBufferView): void; + addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var RTCDataChannel: { + prototype: RTCDataChannel; + new(): RTCDataChannel; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannelEvent) */ +interface RTCDataChannelEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannelEvent/channel) */ + readonly channel: RTCDataChannel; +} + +declare var RTCDataChannelEvent: { + prototype: RTCDataChannelEvent; + new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent; +}; + +interface RTCDtlsTransportEventMap { + "error": Event; + "statechange": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport) */ +interface RTCDtlsTransport extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/iceTransport) */ + readonly iceTransport: RTCIceTransport; + onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/statechange_event) */ + onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */ + readonly state: RTCDtlsTransportState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/getRemoteCertificates) */ + getRemoteCertificates(): ArrayBuffer[]; + addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var RTCDtlsTransport: { + prototype: RTCDtlsTransport; + new(): RTCDtlsTransport; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame) */ +interface RTCEncodedAudioFrame { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data) */ + data: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) */ + readonly timestamp: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata) */ + getMetadata(): RTCEncodedAudioFrameMetadata; +} + +declare var RTCEncodedAudioFrame: { + prototype: RTCEncodedAudioFrame; + new(): RTCEncodedAudioFrame; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame) */ +interface RTCEncodedVideoFrame { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data) */ + data: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp) */ + readonly timestamp: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */ + readonly type: RTCEncodedVideoFrameType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata) */ + getMetadata(): RTCEncodedVideoFrameMetadata; +} + +declare var RTCEncodedVideoFrame: { + prototype: RTCEncodedVideoFrame; + new(): RTCEncodedVideoFrame; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError) */ +interface RTCError extends DOMException { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/errorDetail) */ + readonly errorDetail: RTCErrorDetailType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/receivedAlert) */ + readonly receivedAlert: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sctpCauseCode) */ + readonly sctpCauseCode: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sdpLineNumber) */ + readonly sdpLineNumber: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sentAlert) */ + readonly sentAlert: number | null; +} + +declare var RTCError: { + prototype: RTCError; + new(init: RTCErrorInit, message?: string): RTCError; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCErrorEvent) */ +interface RTCErrorEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCErrorEvent/error) */ + readonly error: RTCError; +} + +declare var RTCErrorEvent: { + prototype: RTCErrorEvent; + new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent; +}; + +/** + * The RTCIceCandidate interface—part of the WebRTC API—represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate) + */ +interface RTCIceCandidate { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/address) */ + readonly address: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/candidate) */ + readonly candidate: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/component) */ + readonly component: RTCIceComponent | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/foundation) */ + readonly foundation: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/port) */ + readonly port: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/priority) */ + readonly priority: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/protocol) */ + readonly protocol: RTCIceProtocol | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/relatedAddress) */ + readonly relatedAddress: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/relatedPort) */ + readonly relatedPort: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/sdpMLineIndex) */ + readonly sdpMLineIndex: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/sdpMid) */ + readonly sdpMid: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/tcpType) */ + readonly tcpType: RTCIceTcpCandidateType | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/type) */ + readonly type: RTCIceCandidateType | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/usernameFragment) */ + readonly usernameFragment: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/toJSON) */ + toJSON(): RTCIceCandidateInit; +} + +declare var RTCIceCandidate: { + prototype: RTCIceCandidate; + new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate; +}; + +interface RTCIceTransportEventMap { + "gatheringstatechange": Event; + "selectedcandidatepairchange": Event; + "statechange": Event; +} + +/** + * Provides access to information about the ICE transport layer over which the data is being sent and received. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport) + */ +interface RTCIceTransport extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/gatheringState) */ + readonly gatheringState: RTCIceGathererState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/gatheringstatechange_event) */ + ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/selectedcandidatepairchange_event) */ + onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/statechange_event) */ + onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/state) */ + readonly state: RTCIceTransportState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/getSelectedCandidatePair) */ + getSelectedCandidatePair(): RTCIceCandidatePair | null; + addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var RTCIceTransport: { + prototype: RTCIceTransport; + new(): RTCIceTransport; +}; + +interface RTCPeerConnectionEventMap { + "connectionstatechange": Event; + "datachannel": RTCDataChannelEvent; + "icecandidate": RTCPeerConnectionIceEvent; + "icecandidateerror": RTCPeerConnectionIceErrorEvent; + "iceconnectionstatechange": Event; + "icegatheringstatechange": Event; + "negotiationneeded": Event; + "signalingstatechange": Event; + "track": RTCTrackEvent; +} + +/** + * A WebRTC connection between the local computer and a remote peer. It provides methods to connect to a remote peer, maintain and monitor the connection, and close the connection once it's no longer needed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection) + */ +interface RTCPeerConnection extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/canTrickleIceCandidates) */ + readonly canTrickleIceCandidates: boolean | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/connectionState) */ + readonly connectionState: RTCPeerConnectionState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/currentLocalDescription) */ + readonly currentLocalDescription: RTCSessionDescription | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/currentRemoteDescription) */ + readonly currentRemoteDescription: RTCSessionDescription | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceConnectionState) */ + readonly iceConnectionState: RTCIceConnectionState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceGatheringState) */ + readonly iceGatheringState: RTCIceGatheringState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/localDescription) */ + readonly localDescription: RTCSessionDescription | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/connectionstatechange_event) */ + onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/datachannel_event) */ + ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icecandidate_event) */ + onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icecandidateerror_event) */ + onicecandidateerror: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceErrorEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceconnectionstatechange_event) */ + oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icegatheringstatechange_event) */ + onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/negotiationneeded_event) */ + onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/signalingstatechange_event) */ + onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/track_event) */ + ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/pendingLocalDescription) */ + readonly pendingLocalDescription: RTCSessionDescription | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/pendingRemoteDescription) */ + readonly pendingRemoteDescription: RTCSessionDescription | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/remoteDescription) */ + readonly remoteDescription: RTCSessionDescription | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/sctp) */ + readonly sctp: RTCSctpTransport | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/signalingState) */ + readonly signalingState: RTCSignalingState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addIceCandidate) */ + addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>; + /** @deprecated */ + addIceCandidate(candidate: RTCIceCandidateInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTrack) */ + addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTransceiver) */ + addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createAnswer) */ + createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>; + /** @deprecated */ + createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createDataChannel) */ + createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createOffer) */ + createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>; + /** @deprecated */ + createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getConfiguration) */ + getConfiguration(): RTCConfiguration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getReceivers) */ + getReceivers(): RTCRtpReceiver[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getSenders) */ + getSenders(): RTCRtpSender[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getStats) */ + getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getTransceivers) */ + getTransceivers(): RTCRtpTransceiver[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/removeTrack) */ + removeTrack(sender: RTCRtpSender): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/restartIce) */ + restartIce(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setConfiguration) */ + setConfiguration(configuration?: RTCConfiguration): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setLocalDescription) */ + setLocalDescription(description?: RTCLocalSessionDescriptionInit): Promise<void>; + /** @deprecated */ + setLocalDescription(description: RTCLocalSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setRemoteDescription) */ + setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>; + /** @deprecated */ + setRemoteDescription(description: RTCSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>; + addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var RTCPeerConnection: { + prototype: RTCPeerConnection; + new(configuration?: RTCConfiguration): RTCPeerConnection; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/generateCertificate_static) */ + generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent) */ +interface RTCPeerConnectionIceErrorEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/address) */ + readonly address: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorCode) */ + readonly errorCode: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorText) */ + readonly errorText: string; + readonly port: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/url) */ + readonly url: string; +} + +declare var RTCPeerConnectionIceErrorEvent: { + prototype: RTCPeerConnectionIceErrorEvent; + new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent; +}; + +/** + * Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceEvent) + */ +interface RTCPeerConnectionIceEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceEvent/candidate) */ + readonly candidate: RTCIceCandidate | null; +} + +declare var RTCPeerConnectionIceEvent: { + prototype: RTCPeerConnectionIceEvent; + new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent; +}; + +/** + * This WebRTC API interface manages the reception and decoding of data for a MediaStreamTrack on an RTCPeerConnection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver) + */ +interface RTCRtpReceiver { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/track) */ + readonly track: MediaStreamTrack; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transform) */ + transform: RTCRtpTransform | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transport) */ + readonly transport: RTCDtlsTransport | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getContributingSources) */ + getContributingSources(): RTCRtpContributingSource[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getParameters) */ + getParameters(): RTCRtpReceiveParameters; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getStats) */ + getStats(): Promise<RTCStatsReport>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getSynchronizationSources) */ + getSynchronizationSources(): RTCRtpSynchronizationSource[]; +} + +declare var RTCRtpReceiver: { + prototype: RTCRtpReceiver; + new(): RTCRtpReceiver; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getCapabilities_static) */ + getCapabilities(kind: string): RTCRtpCapabilities | null; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransform) */ +interface RTCRtpScriptTransform { +} + +declare var RTCRtpScriptTransform: { + prototype: RTCRtpScriptTransform; + new(worker: Worker, options?: any, transfer?: any[]): RTCRtpScriptTransform; +}; + +/** + * Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender) + */ +interface RTCRtpSender { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/dtmf) */ + readonly dtmf: RTCDTMFSender | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/track) */ + readonly track: MediaStreamTrack | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transform) */ + transform: RTCRtpTransform | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transport) */ + readonly transport: RTCDtlsTransport | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getParameters) */ + getParameters(): RTCRtpSendParameters; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getStats) */ + getStats(): Promise<RTCStatsReport>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/replaceTrack) */ + replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setParameters) */ + setParameters(parameters: RTCRtpSendParameters, setParameterOptions?: RTCSetParameterOptions): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setStreams) */ + setStreams(...streams: MediaStream[]): void; +} + +declare var RTCRtpSender: { + prototype: RTCRtpSender; + new(): RTCRtpSender; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getCapabilities_static) */ + getCapabilities(kind: string): RTCRtpCapabilities | null; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver) */ +interface RTCRtpTransceiver { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/currentDirection) */ + readonly currentDirection: RTCRtpTransceiverDirection | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/direction) */ + direction: RTCRtpTransceiverDirection; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/mid) */ + readonly mid: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/receiver) */ + readonly receiver: RTCRtpReceiver; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/sender) */ + readonly sender: RTCRtpSender; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */ + setCodecPreferences(codecs: RTCRtpCodecCapability[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/stop) */ + stop(): void; +} + +declare var RTCRtpTransceiver: { + prototype: RTCRtpTransceiver; + new(): RTCRtpTransceiver; +}; + +interface RTCSctpTransportEventMap { + "statechange": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport) */ +interface RTCSctpTransport extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxChannels) */ + readonly maxChannels: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxMessageSize) */ + readonly maxMessageSize: number; + onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/state) */ + readonly state: RTCSctpTransportState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/transport) */ + readonly transport: RTCDtlsTransport; + addEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var RTCSctpTransport: { + prototype: RTCSctpTransport; + new(): RTCSctpTransport; +}; + +/** + * One end of a connection—or potential connection—and how it's configured. Each RTCSessionDescription consists of a description type indicating which part of the offer/answer negotiation process it describes and of the SDP descriptor of the session. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription) + */ +interface RTCSessionDescription { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/sdp) */ + readonly sdp: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/type) */ + readonly type: RTCSdpType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/toJSON) */ + toJSON(): any; +} + +declare var RTCSessionDescription: { + prototype: RTCSessionDescription; + new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCStatsReport) */ +interface RTCStatsReport { + forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void; +} + +declare var RTCStatsReport: { + prototype: RTCStatsReport; + new(): RTCStatsReport; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent) */ +interface RTCTrackEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/receiver) */ + readonly receiver: RTCRtpReceiver; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/streams) */ + readonly streams: ReadonlyArray<MediaStream>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/track) */ + readonly track: MediaStreamTrack; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/transceiver) */ + readonly transceiver: RTCRtpTransceiver; +} + +declare var RTCTrackEvent: { + prototype: RTCTrackEvent; + new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RadioNodeList) */ +interface RadioNodeList extends NodeList { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RadioNodeList/value) */ + value: string; +} + +declare var RadioNodeList: { + prototype: RadioNodeList; + new(): RadioNodeList; +}; + +/** + * A fragment of a document that can contain nodes and parts of text nodes. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range) + */ +interface Range extends AbstractRange { + /** + * Returns the node, furthest away from the document, that is an ancestor of both range's start node and end node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/commonAncestorContainer) + */ + readonly commonAncestorContainer: Node; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/cloneContents) */ + cloneContents(): DocumentFragment; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/cloneRange) */ + cloneRange(): Range; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/collapse) */ + collapse(toStart?: boolean): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/compareBoundaryPoints) */ + compareBoundaryPoints(how: number, sourceRange: Range): number; + /** + * Returns −1 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/comparePoint) + */ + comparePoint(node: Node, offset: number): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/createContextualFragment) */ + createContextualFragment(fragment: string): DocumentFragment; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/deleteContents) */ + deleteContents(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/detach) */ + detach(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/extractContents) */ + extractContents(): DocumentFragment; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/getBoundingClientRect) */ + getBoundingClientRect(): DOMRect; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/getClientRects) */ + getClientRects(): DOMRectList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/insertNode) */ + insertNode(node: Node): void; + /** + * Returns whether range intersects node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/intersectsNode) + */ + intersectsNode(node: Node): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/isPointInRange) */ + isPointInRange(node: Node, offset: number): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/selectNode) */ + selectNode(node: Node): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/selectNodeContents) */ + selectNodeContents(node: Node): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEnd) */ + setEnd(node: Node, offset: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEndAfter) */ + setEndAfter(node: Node): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEndBefore) */ + setEndBefore(node: Node): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStart) */ + setStart(node: Node, offset: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStartAfter) */ + setStartAfter(node: Node): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStartBefore) */ + setStartBefore(node: Node): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/surroundContents) */ + surroundContents(newParent: Node): void; + toString(): string; + readonly START_TO_START: 0; + readonly START_TO_END: 1; + readonly END_TO_END: 2; + readonly END_TO_START: 3; +} + +declare var Range: { + prototype: Range; + new(): Range; + readonly START_TO_START: 0; + readonly START_TO_END: 1; + readonly END_TO_END: 2; + readonly END_TO_START: 3; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) */ +interface ReadableByteStreamController { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */ + readonly byobRequest: ReadableStreamBYOBRequest | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) */ + readonly desiredSize: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue) */ + enqueue(chunk: ArrayBufferView): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error) */ + error(e?: any): void; +} + +declare var ReadableByteStreamController: { + prototype: ReadableByteStreamController; + new(): ReadableByteStreamController; +}; + +/** + * This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream) + */ +interface ReadableStream<R = any> { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) */ + readonly locked: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) */ + cancel(reason?: any): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) */ + getReader(options: { mode: "byob" }): ReadableStreamBYOBReader; + getReader(): ReadableStreamDefaultReader<R>; + getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) */ + pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) */ + pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) */ + tee(): [ReadableStream<R>, ReadableStream<R>]; +} + +declare var ReadableStream: { + prototype: ReadableStream; + new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>; + new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>; + new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */ +interface ReadableStreamBYOBReader extends ReadableStreamGenericReader { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */ + read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */ + releaseLock(): void; +} + +declare var ReadableStreamBYOBReader: { + prototype: ReadableStreamBYOBReader; + new(stream: ReadableStream): ReadableStreamBYOBReader; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */ +interface ReadableStreamBYOBRequest { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */ + readonly view: ArrayBufferView | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */ + respond(bytesWritten: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */ + respondWithNewView(view: ArrayBufferView): void; +} + +declare var ReadableStreamBYOBRequest: { + prototype: ReadableStreamBYOBRequest; + new(): ReadableStreamBYOBRequest; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController) */ +interface ReadableStreamDefaultController<R = any> { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) */ + readonly desiredSize: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) */ + enqueue(chunk?: R): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error) */ + error(e?: any): void; +} + +declare var ReadableStreamDefaultController: { + prototype: ReadableStreamDefaultController; + new(): ReadableStreamDefaultController; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader) */ +interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) */ + read(): Promise<ReadableStreamReadResult<R>>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock) */ + releaseLock(): void; +} + +declare var ReadableStreamDefaultReader: { + prototype: ReadableStreamDefaultReader; + new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>; +}; + +interface ReadableStreamGenericReader { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) */ + readonly closed: Promise<undefined>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */ + cancel(reason?: any): Promise<void>; +} + +interface RemotePlaybackEventMap { + "connect": Event; + "connecting": Event; + "disconnect": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback) */ +interface RemotePlayback extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/connect_event) */ + onconnect: ((this: RemotePlayback, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/connecting_event) */ + onconnecting: ((this: RemotePlayback, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/disconnect_event) */ + ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/state) */ + readonly state: RemotePlaybackState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/cancelWatchAvailability) */ + cancelWatchAvailability(id?: number): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/prompt) */ + prompt(): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/watchAvailability) */ + watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>; + addEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var RemotePlayback: { + prototype: RemotePlayback; + new(): RemotePlayback; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) */ +interface Report { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) */ + readonly body: ReportBody | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) */ + readonly type: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) */ + readonly url: string; + toJSON(): any; +} + +declare var Report: { + prototype: Report; + new(): Report; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) */ +interface ReportBody { + toJSON(): any; +} + +declare var ReportBody: { + prototype: ReportBody; + new(): ReportBody; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver) */ +interface ReportingObserver { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/disconnect) */ + disconnect(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/observe) */ + observe(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/takeRecords) */ + takeRecords(): ReportList; +} + +declare var ReportingObserver: { + prototype: ReportingObserver; + new(callback: ReportingObserverCallback, options?: ReportingObserverOptions): ReportingObserver; +}; + +/** + * This Fetch API interface represents a resource request. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request) + */ +interface Request extends Body { + /** + * Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache) + */ + readonly cache: RequestCache; + /** + * Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/credentials) + */ + readonly credentials: RequestCredentials; + /** + * Returns the kind of resource requested by request, e.g., "document" or "script". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/destination) + */ + readonly destination: RequestDestination; + /** + * Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers) + */ + readonly headers: Headers; + /** + * Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity) + */ + readonly integrity: string; + /** + * Returns a boolean indicating whether or not request can outlive the global in which it was created. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive) + */ + readonly keepalive: boolean; + /** + * Returns request's HTTP method, which is "GET" by default. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method) + */ + readonly method: string; + /** + * Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/mode) + */ + readonly mode: RequestMode; + /** + * Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect) + */ + readonly redirect: RequestRedirect; + /** + * Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the \`Referer\` header of the request being made. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrer) + */ + readonly referrer: string; + /** + * Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy) + */ + readonly referrerPolicy: ReferrerPolicy; + /** + * Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal) + */ + readonly signal: AbortSignal; + /** + * Returns the URL of request as a string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url) + */ + readonly url: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone) */ + clone(): Request; +} + +declare var Request: { + prototype: Request; + new(input: RequestInfo | URL, init?: RequestInit): Request; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver) */ +interface ResizeObserver { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/disconnect) */ + disconnect(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/observe) */ + observe(target: Element, options?: ResizeObserverOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/unobserve) */ + unobserve(target: Element): void; +} + +declare var ResizeObserver: { + prototype: ResizeObserver; + new(callback: ResizeObserverCallback): ResizeObserver; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry) */ +interface ResizeObserverEntry { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/borderBoxSize) */ + readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentBoxSize) */ + readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentRect) */ + readonly contentRect: DOMRectReadOnly; + readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/target) */ + readonly target: Element; +} + +declare var ResizeObserverEntry: { + prototype: ResizeObserverEntry; + new(): ResizeObserverEntry; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize) */ +interface ResizeObserverSize { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize/blockSize) */ + readonly blockSize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize/inlineSize) */ + readonly inlineSize: number; +} + +declare var ResizeObserverSize: { + prototype: ResizeObserverSize; + new(): ResizeObserverSize; +}; + +/** + * This Fetch API interface represents the response to a request. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response) + */ +interface Response extends Body { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers) */ + readonly headers: Headers; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok) */ + readonly ok: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected) */ + readonly redirected: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status) */ + readonly status: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText) */ + readonly statusText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type) */ + readonly type: ResponseType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url) */ + readonly url: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone) */ + clone(): Response; +} + +declare var Response: { + prototype: Response; + new(body?: BodyInit | null, init?: ResponseInit): Response; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */ + error(): Response; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static) */ + json(data: any, init?: ResponseInit): Response; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */ + redirect(url: string | URL, status?: number): Response; +}; + +/** + * Provides access to the properties of <a> element, as well as methods to manipulate them. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement) + */ +interface SVGAElement extends SVGGraphicsElement, SVGURIReference { + rel: string; + readonly relList: DOMTokenList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/target) */ + readonly target: SVGAnimatedString; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGAElement: { + prototype: SVGAElement; + new(): SVGAElement; +}; + +/** + * Used to represent a value that can be an <angle> or <number> value. An SVGAngle reflected through the animVal attribute is always read only. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle) + */ +interface SVGAngle { + readonly unitType: number; + value: number; + valueAsString: string; + valueInSpecifiedUnits: number; + convertToSpecifiedUnits(unitType: number): void; + newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void; + readonly SVG_ANGLETYPE_UNKNOWN: 0; + readonly SVG_ANGLETYPE_UNSPECIFIED: 1; + readonly SVG_ANGLETYPE_DEG: 2; + readonly SVG_ANGLETYPE_RAD: 3; + readonly SVG_ANGLETYPE_GRAD: 4; +} + +declare var SVGAngle: { + prototype: SVGAngle; + new(): SVGAngle; + readonly SVG_ANGLETYPE_UNKNOWN: 0; + readonly SVG_ANGLETYPE_UNSPECIFIED: 1; + readonly SVG_ANGLETYPE_DEG: 2; + readonly SVG_ANGLETYPE_RAD: 3; + readonly SVG_ANGLETYPE_GRAD: 4; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateElement) */ +interface SVGAnimateElement extends SVGAnimationElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGAnimateElement: { + prototype: SVGAnimateElement; + new(): SVGAnimateElement; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateMotionElement) */ +interface SVGAnimateMotionElement extends SVGAnimationElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGAnimateMotionElement: { + prototype: SVGAnimateMotionElement; + new(): SVGAnimateMotionElement; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateTransformElement) */ +interface SVGAnimateTransformElement extends SVGAnimationElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGAnimateTransformElement: { + prototype: SVGAnimateTransformElement; + new(): SVGAnimateTransformElement; +}; + +/** + * Used for attributes of basic type <angle> which can be animated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedAngle) + */ +interface SVGAnimatedAngle { + readonly animVal: SVGAngle; + readonly baseVal: SVGAngle; +} + +declare var SVGAnimatedAngle: { + prototype: SVGAnimatedAngle; + new(): SVGAnimatedAngle; +}; + +/** + * Used for attributes of type boolean which can be animated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedBoolean) + */ +interface SVGAnimatedBoolean { + readonly animVal: boolean; + baseVal: boolean; +} + +declare var SVGAnimatedBoolean: { + prototype: SVGAnimatedBoolean; + new(): SVGAnimatedBoolean; +}; + +/** + * Used for attributes whose value must be a constant from a particular enumeration and which can be animated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration) + */ +interface SVGAnimatedEnumeration { + readonly animVal: number; + baseVal: number; +} + +declare var SVGAnimatedEnumeration: { + prototype: SVGAnimatedEnumeration; + new(): SVGAnimatedEnumeration; +}; + +/** + * Used for attributes of basic type <integer> which can be animated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedInteger) + */ +interface SVGAnimatedInteger { + readonly animVal: number; + baseVal: number; +} + +declare var SVGAnimatedInteger: { + prototype: SVGAnimatedInteger; + new(): SVGAnimatedInteger; +}; + +/** + * Used for attributes of basic type <length> which can be animated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength) + */ +interface SVGAnimatedLength { + readonly animVal: SVGLength; + readonly baseVal: SVGLength; +} + +declare var SVGAnimatedLength: { + prototype: SVGAnimatedLength; + new(): SVGAnimatedLength; +}; + +/** + * Used for attributes of type SVGLengthList which can be animated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLengthList) + */ +interface SVGAnimatedLengthList { + readonly animVal: SVGLengthList; + readonly baseVal: SVGLengthList; +} + +declare var SVGAnimatedLengthList: { + prototype: SVGAnimatedLengthList; + new(): SVGAnimatedLengthList; +}; + +/** + * Used for attributes of basic type <Number> which can be animated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber) + */ +interface SVGAnimatedNumber { + readonly animVal: number; + baseVal: number; +} + +declare var SVGAnimatedNumber: { + prototype: SVGAnimatedNumber; + new(): SVGAnimatedNumber; +}; + +/** + * The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList) + */ +interface SVGAnimatedNumberList { + readonly animVal: SVGNumberList; + readonly baseVal: SVGNumberList; +} + +declare var SVGAnimatedNumberList: { + prototype: SVGAnimatedNumberList; + new(): SVGAnimatedNumberList; +}; + +interface SVGAnimatedPoints { + readonly animatedPoints: SVGPointList; + readonly points: SVGPointList; +} + +/** + * Used for attributes of type SVGPreserveAspectRatio which can be animated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio) + */ +interface SVGAnimatedPreserveAspectRatio { + readonly animVal: SVGPreserveAspectRatio; + readonly baseVal: SVGPreserveAspectRatio; +} + +declare var SVGAnimatedPreserveAspectRatio: { + prototype: SVGAnimatedPreserveAspectRatio; + new(): SVGAnimatedPreserveAspectRatio; +}; + +/** + * Used for attributes of basic SVGRect which can be animated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect) + */ +interface SVGAnimatedRect { + readonly animVal: DOMRectReadOnly; + readonly baseVal: DOMRect; +} + +declare var SVGAnimatedRect: { + prototype: SVGAnimatedRect; + new(): SVGAnimatedRect; +}; + +/** + * The SVGAnimatedString interface represents string attributes which can be animated from each SVG declaration. You need to create SVG attribute before doing anything else, everything should be declared inside this. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString) + */ +interface SVGAnimatedString { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/animVal) */ + readonly animVal: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/baseVal) */ + baseVal: string; +} + +declare var SVGAnimatedString: { + prototype: SVGAnimatedString; + new(): SVGAnimatedString; +}; + +/** + * Used for attributes which take a list of numbers and which can be animated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedTransformList) + */ +interface SVGAnimatedTransformList { + readonly animVal: SVGTransformList; + readonly baseVal: SVGTransformList; +} + +declare var SVGAnimatedTransformList: { + prototype: SVGAnimatedTransformList; + new(): SVGAnimatedTransformList; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement) */ +interface SVGAnimationElement extends SVGElement, SVGTests { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/targetElement) */ + readonly targetElement: SVGElement | null; + beginElement(): void; + beginElementAt(offset: number): void; + endElement(): void; + endElementAt(offset: number): void; + getCurrentTime(): number; + getSimpleDuration(): number; + getStartTime(): number; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGAnimationElement: { + prototype: SVGAnimationElement; + new(): SVGAnimationElement; +}; + +/** + * An interface for the <circle> element. The circle element is defined by the cx and cy attributes that denote the coordinates of the centre of the circle. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement) + */ +interface SVGCircleElement extends SVGGeometryElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/cx) */ + readonly cx: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/cy) */ + readonly cy: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/r) */ + readonly r: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGCircleElement: { + prototype: SVGCircleElement; + new(): SVGCircleElement; +}; + +/** + * Provides access to the properties of <clipPath> elements, as well as methods to manipulate them. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement) + */ +interface SVGClipPathElement extends SVGElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement/clipPathUnits) */ + readonly clipPathUnits: SVGAnimatedEnumeration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement/transform) */ + readonly transform: SVGAnimatedTransformList; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGClipPathElement: { + prototype: SVGClipPathElement; + new(): SVGClipPathElement; +}; + +/** + * A base interface used by the component transfer function interfaces. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement) + */ +interface SVGComponentTransferFunctionElement extends SVGElement { + readonly amplitude: SVGAnimatedNumber; + readonly exponent: SVGAnimatedNumber; + readonly intercept: SVGAnimatedNumber; + readonly offset: SVGAnimatedNumber; + readonly slope: SVGAnimatedNumber; + readonly tableValues: SVGAnimatedNumberList; + readonly type: SVGAnimatedEnumeration; + readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0; + readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1; + readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2; + readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3; + readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4; + readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGComponentTransferFunctionElement: { + prototype: SVGComponentTransferFunctionElement; + new(): SVGComponentTransferFunctionElement; + readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0; + readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1; + readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2; + readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3; + readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4; + readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5; +}; + +/** + * Corresponds to the <defs> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGDefsElement) + */ +interface SVGDefsElement extends SVGGraphicsElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGDefsElement: { + prototype: SVGDefsElement; + new(): SVGDefsElement; +}; + +/** + * Corresponds to the <desc> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGDescElement) + */ +interface SVGDescElement extends SVGElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGDescElement: { + prototype: SVGDescElement; + new(): SVGDescElement; +}; + +interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap { +} + +/** + * All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement) + */ +interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement { + /** @deprecated */ + readonly className: any; + readonly ownerSVGElement: SVGSVGElement | null; + readonly viewportElement: SVGElement | null; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGElement: { + prototype: SVGElement; + new(): SVGElement; +}; + +/** + * Provides access to the properties of <ellipse> elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGEllipseElement) + */ +interface SVGEllipseElement extends SVGGeometryElement { + readonly cx: SVGAnimatedLength; + readonly cy: SVGAnimatedLength; + readonly rx: SVGAnimatedLength; + readonly ry: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGEllipseElement: { + prototype: SVGEllipseElement; + new(): SVGEllipseElement; +}; + +/** + * Corresponds to the <feBlend> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement) + */ +interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + readonly in2: SVGAnimatedString; + readonly mode: SVGAnimatedEnumeration; + readonly SVG_FEBLEND_MODE_UNKNOWN: 0; + readonly SVG_FEBLEND_MODE_NORMAL: 1; + readonly SVG_FEBLEND_MODE_MULTIPLY: 2; + readonly SVG_FEBLEND_MODE_SCREEN: 3; + readonly SVG_FEBLEND_MODE_DARKEN: 4; + readonly SVG_FEBLEND_MODE_LIGHTEN: 5; + readonly SVG_FEBLEND_MODE_OVERLAY: 6; + readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7; + readonly SVG_FEBLEND_MODE_COLOR_BURN: 8; + readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9; + readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10; + readonly SVG_FEBLEND_MODE_DIFFERENCE: 11; + readonly SVG_FEBLEND_MODE_EXCLUSION: 12; + readonly SVG_FEBLEND_MODE_HUE: 13; + readonly SVG_FEBLEND_MODE_SATURATION: 14; + readonly SVG_FEBLEND_MODE_COLOR: 15; + readonly SVG_FEBLEND_MODE_LUMINOSITY: 16; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEBlendElement: { + prototype: SVGFEBlendElement; + new(): SVGFEBlendElement; + readonly SVG_FEBLEND_MODE_UNKNOWN: 0; + readonly SVG_FEBLEND_MODE_NORMAL: 1; + readonly SVG_FEBLEND_MODE_MULTIPLY: 2; + readonly SVG_FEBLEND_MODE_SCREEN: 3; + readonly SVG_FEBLEND_MODE_DARKEN: 4; + readonly SVG_FEBLEND_MODE_LIGHTEN: 5; + readonly SVG_FEBLEND_MODE_OVERLAY: 6; + readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7; + readonly SVG_FEBLEND_MODE_COLOR_BURN: 8; + readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9; + readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10; + readonly SVG_FEBLEND_MODE_DIFFERENCE: 11; + readonly SVG_FEBLEND_MODE_EXCLUSION: 12; + readonly SVG_FEBLEND_MODE_HUE: 13; + readonly SVG_FEBLEND_MODE_SATURATION: 14; + readonly SVG_FEBLEND_MODE_COLOR: 15; + readonly SVG_FEBLEND_MODE_LUMINOSITY: 16; +}; + +/** + * Corresponds to the <feColorMatrix> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement) + */ +interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/in1) */ + readonly in1: SVGAnimatedString; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/type) */ + readonly type: SVGAnimatedEnumeration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/values) */ + readonly values: SVGAnimatedNumberList; + readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0; + readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1; + readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2; + readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3; + readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEColorMatrixElement: { + prototype: SVGFEColorMatrixElement; + new(): SVGFEColorMatrixElement; + readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0; + readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1; + readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2; + readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3; + readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4; +}; + +/** + * Corresponds to the <feComponentTransfer> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEComponentTransferElement) + */ +interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEComponentTransferElement: { + prototype: SVGFEComponentTransferElement; + new(): SVGFEComponentTransferElement; +}; + +/** + * Corresponds to the <feComposite> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement) + */ +interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + readonly in2: SVGAnimatedString; + readonly k1: SVGAnimatedNumber; + readonly k2: SVGAnimatedNumber; + readonly k3: SVGAnimatedNumber; + readonly k4: SVGAnimatedNumber; + readonly operator: SVGAnimatedEnumeration; + readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0; + readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1; + readonly SVG_FECOMPOSITE_OPERATOR_IN: 2; + readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3; + readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4; + readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5; + readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFECompositeElement: { + prototype: SVGFECompositeElement; + new(): SVGFECompositeElement; + readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0; + readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1; + readonly SVG_FECOMPOSITE_OPERATOR_IN: 2; + readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3; + readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4; + readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5; + readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6; +}; + +/** + * Corresponds to the <feConvolveMatrix> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement) + */ +interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly bias: SVGAnimatedNumber; + readonly divisor: SVGAnimatedNumber; + readonly edgeMode: SVGAnimatedEnumeration; + readonly in1: SVGAnimatedString; + readonly kernelMatrix: SVGAnimatedNumberList; + readonly kernelUnitLengthX: SVGAnimatedNumber; + readonly kernelUnitLengthY: SVGAnimatedNumber; + readonly orderX: SVGAnimatedInteger; + readonly orderY: SVGAnimatedInteger; + readonly preserveAlpha: SVGAnimatedBoolean; + readonly targetX: SVGAnimatedInteger; + readonly targetY: SVGAnimatedInteger; + readonly SVG_EDGEMODE_UNKNOWN: 0; + readonly SVG_EDGEMODE_DUPLICATE: 1; + readonly SVG_EDGEMODE_WRAP: 2; + readonly SVG_EDGEMODE_NONE: 3; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEConvolveMatrixElement: { + prototype: SVGFEConvolveMatrixElement; + new(): SVGFEConvolveMatrixElement; + readonly SVG_EDGEMODE_UNKNOWN: 0; + readonly SVG_EDGEMODE_DUPLICATE: 1; + readonly SVG_EDGEMODE_WRAP: 2; + readonly SVG_EDGEMODE_NONE: 3; +}; + +/** + * Corresponds to the <feDiffuseLighting> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement) + */ +interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly diffuseConstant: SVGAnimatedNumber; + readonly in1: SVGAnimatedString; + readonly kernelUnitLengthX: SVGAnimatedNumber; + readonly kernelUnitLengthY: SVGAnimatedNumber; + readonly surfaceScale: SVGAnimatedNumber; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEDiffuseLightingElement: { + prototype: SVGFEDiffuseLightingElement; + new(): SVGFEDiffuseLightingElement; +}; + +/** + * Corresponds to the <feDisplacementMap> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement) + */ +interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + readonly in2: SVGAnimatedString; + readonly scale: SVGAnimatedNumber; + readonly xChannelSelector: SVGAnimatedEnumeration; + readonly yChannelSelector: SVGAnimatedEnumeration; + readonly SVG_CHANNEL_UNKNOWN: 0; + readonly SVG_CHANNEL_R: 1; + readonly SVG_CHANNEL_G: 2; + readonly SVG_CHANNEL_B: 3; + readonly SVG_CHANNEL_A: 4; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEDisplacementMapElement: { + prototype: SVGFEDisplacementMapElement; + new(): SVGFEDisplacementMapElement; + readonly SVG_CHANNEL_UNKNOWN: 0; + readonly SVG_CHANNEL_R: 1; + readonly SVG_CHANNEL_G: 2; + readonly SVG_CHANNEL_B: 3; + readonly SVG_CHANNEL_A: 4; +}; + +/** + * Corresponds to the <feDistantLight> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement) + */ +interface SVGFEDistantLightElement extends SVGElement { + readonly azimuth: SVGAnimatedNumber; + readonly elevation: SVGAnimatedNumber; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEDistantLightElement: { + prototype: SVGFEDistantLightElement; + new(): SVGFEDistantLightElement; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement) */ +interface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly dx: SVGAnimatedNumber; + readonly dy: SVGAnimatedNumber; + readonly in1: SVGAnimatedString; + readonly stdDeviationX: SVGAnimatedNumber; + readonly stdDeviationY: SVGAnimatedNumber; + setStdDeviation(stdDeviationX: number, stdDeviationY: number): void; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEDropShadowElement: { + prototype: SVGFEDropShadowElement; + new(): SVGFEDropShadowElement; +}; + +/** + * Corresponds to the <feFlood> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFloodElement) + */ +interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEFloodElement: { + prototype: SVGFEFloodElement; + new(): SVGFEFloodElement; +}; + +/** + * Corresponds to the <feFuncA> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncAElement) + */ +interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEFuncAElement: { + prototype: SVGFEFuncAElement; + new(): SVGFEFuncAElement; +}; + +/** + * Corresponds to the <feFuncB> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncBElement) + */ +interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEFuncBElement: { + prototype: SVGFEFuncBElement; + new(): SVGFEFuncBElement; +}; + +/** + * Corresponds to the <feFuncG> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncGElement) + */ +interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEFuncGElement: { + prototype: SVGFEFuncGElement; + new(): SVGFEFuncGElement; +}; + +/** + * Corresponds to the <feFuncR> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncRElement) + */ +interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEFuncRElement: { + prototype: SVGFEFuncRElement; + new(): SVGFEFuncRElement; +}; + +/** + * Corresponds to the <feGaussianBlur> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement) + */ +interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + readonly stdDeviationX: SVGAnimatedNumber; + readonly stdDeviationY: SVGAnimatedNumber; + setStdDeviation(stdDeviationX: number, stdDeviationY: number): void; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEGaussianBlurElement: { + prototype: SVGFEGaussianBlurElement; + new(): SVGFEGaussianBlurElement; +}; + +/** + * Corresponds to the <feImage> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEImageElement) + */ +interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference { + readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEImageElement: { + prototype: SVGFEImageElement; + new(): SVGFEImageElement; +}; + +/** + * Corresponds to the <feMerge> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeElement) + */ +interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEMergeElement: { + prototype: SVGFEMergeElement; + new(): SVGFEMergeElement; +}; + +/** + * Corresponds to the <feMergeNode> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeNodeElement) + */ +interface SVGFEMergeNodeElement extends SVGElement { + readonly in1: SVGAnimatedString; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEMergeNodeElement: { + prototype: SVGFEMergeNodeElement; + new(): SVGFEMergeNodeElement; +}; + +/** + * Corresponds to the <feMorphology> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement) + */ +interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + readonly operator: SVGAnimatedEnumeration; + readonly radiusX: SVGAnimatedNumber; + readonly radiusY: SVGAnimatedNumber; + readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0; + readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1; + readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEMorphologyElement: { + prototype: SVGFEMorphologyElement; + new(): SVGFEMorphologyElement; + readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0; + readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1; + readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2; +}; + +/** + * Corresponds to the <feOffset> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEOffsetElement) + */ +interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly dx: SVGAnimatedNumber; + readonly dy: SVGAnimatedNumber; + readonly in1: SVGAnimatedString; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEOffsetElement: { + prototype: SVGFEOffsetElement; + new(): SVGFEOffsetElement; +}; + +/** + * Corresponds to the <fePointLight> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement) + */ +interface SVGFEPointLightElement extends SVGElement { + readonly x: SVGAnimatedNumber; + readonly y: SVGAnimatedNumber; + readonly z: SVGAnimatedNumber; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEPointLightElement: { + prototype: SVGFEPointLightElement; + new(): SVGFEPointLightElement; +}; + +/** + * Corresponds to the <feSpecularLighting> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement) + */ +interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + readonly kernelUnitLengthX: SVGAnimatedNumber; + readonly kernelUnitLengthY: SVGAnimatedNumber; + readonly specularConstant: SVGAnimatedNumber; + readonly specularExponent: SVGAnimatedNumber; + readonly surfaceScale: SVGAnimatedNumber; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFESpecularLightingElement: { + prototype: SVGFESpecularLightingElement; + new(): SVGFESpecularLightingElement; +}; + +/** + * Corresponds to the <feSpotLight> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement) + */ +interface SVGFESpotLightElement extends SVGElement { + readonly limitingConeAngle: SVGAnimatedNumber; + readonly pointsAtX: SVGAnimatedNumber; + readonly pointsAtY: SVGAnimatedNumber; + readonly pointsAtZ: SVGAnimatedNumber; + readonly specularExponent: SVGAnimatedNumber; + readonly x: SVGAnimatedNumber; + readonly y: SVGAnimatedNumber; + readonly z: SVGAnimatedNumber; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFESpotLightElement: { + prototype: SVGFESpotLightElement; + new(): SVGFESpotLightElement; +}; + +/** + * Corresponds to the <feTile> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETileElement) + */ +interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFETileElement: { + prototype: SVGFETileElement; + new(): SVGFETileElement; +}; + +/** + * Corresponds to the <feTurbulence> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement) + */ +interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly baseFrequencyX: SVGAnimatedNumber; + readonly baseFrequencyY: SVGAnimatedNumber; + readonly numOctaves: SVGAnimatedInteger; + readonly seed: SVGAnimatedNumber; + readonly stitchTiles: SVGAnimatedEnumeration; + readonly type: SVGAnimatedEnumeration; + readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0; + readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1; + readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2; + readonly SVG_STITCHTYPE_UNKNOWN: 0; + readonly SVG_STITCHTYPE_STITCH: 1; + readonly SVG_STITCHTYPE_NOSTITCH: 2; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFETurbulenceElement: { + prototype: SVGFETurbulenceElement; + new(): SVGFETurbulenceElement; + readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0; + readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1; + readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2; + readonly SVG_STITCHTYPE_UNKNOWN: 0; + readonly SVG_STITCHTYPE_STITCH: 1; + readonly SVG_STITCHTYPE_NOSTITCH: 2; +}; + +/** + * Provides access to the properties of <filter> elements, as well as methods to manipulate them. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement) + */ +interface SVGFilterElement extends SVGElement, SVGURIReference { + readonly filterUnits: SVGAnimatedEnumeration; + readonly height: SVGAnimatedLength; + readonly primitiveUnits: SVGAnimatedEnumeration; + readonly width: SVGAnimatedLength; + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFilterElement: { + prototype: SVGFilterElement; + new(): SVGFilterElement; +}; + +interface SVGFilterPrimitiveStandardAttributes { + readonly height: SVGAnimatedLength; + readonly result: SVGAnimatedString; + readonly width: SVGAnimatedLength; + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; +} + +interface SVGFitToViewBox { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/preserveAspectRatio) */ + readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/viewBox) */ + readonly viewBox: SVGAnimatedRect; +} + +/** + * Provides access to the properties of <foreignObject> elements, as well as methods to manipulate them. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGForeignObjectElement) + */ +interface SVGForeignObjectElement extends SVGGraphicsElement { + readonly height: SVGAnimatedLength; + readonly width: SVGAnimatedLength; + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGForeignObjectElement: { + prototype: SVGForeignObjectElement; + new(): SVGForeignObjectElement; +}; + +/** + * Corresponds to the <g> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGElement) + */ +interface SVGGElement extends SVGGraphicsElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGGElement: { + prototype: SVGGElement; + new(): SVGGElement; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement) */ +interface SVGGeometryElement extends SVGGraphicsElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/pathLength) */ + readonly pathLength: SVGAnimatedNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getPointAtLength) */ + getPointAtLength(distance: number): DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getTotalLength) */ + getTotalLength(): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/isPointInFill) */ + isPointInFill(point?: DOMPointInit): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/isPointInStroke) */ + isPointInStroke(point?: DOMPointInit): boolean; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGGeometryElement: { + prototype: SVGGeometryElement; + new(): SVGGeometryElement; +}; + +/** + * The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement) + */ +interface SVGGradientElement extends SVGElement, SVGURIReference { + readonly gradientTransform: SVGAnimatedTransformList; + readonly gradientUnits: SVGAnimatedEnumeration; + readonly spreadMethod: SVGAnimatedEnumeration; + readonly SVG_SPREADMETHOD_UNKNOWN: 0; + readonly SVG_SPREADMETHOD_PAD: 1; + readonly SVG_SPREADMETHOD_REFLECT: 2; + readonly SVG_SPREADMETHOD_REPEAT: 3; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGGradientElement: { + prototype: SVGGradientElement; + new(): SVGGradientElement; + readonly SVG_SPREADMETHOD_UNKNOWN: 0; + readonly SVG_SPREADMETHOD_PAD: 1; + readonly SVG_SPREADMETHOD_REFLECT: 2; + readonly SVG_SPREADMETHOD_REPEAT: 3; +}; + +/** + * SVG elements whose primary purpose is to directly render graphics into a group. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement) + */ +interface SVGGraphicsElement extends SVGElement, SVGTests { + readonly transform: SVGAnimatedTransformList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getBBox) */ + getBBox(options?: SVGBoundingBoxOptions): DOMRect; + getCTM(): DOMMatrix | null; + getScreenCTM(): DOMMatrix | null; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGGraphicsElement: { + prototype: SVGGraphicsElement; + new(): SVGGraphicsElement; +}; + +/** + * Corresponds to the <image> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement) + */ +interface SVGImageElement extends SVGGraphicsElement, SVGURIReference { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/crossorigin) */ + crossOrigin: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/height) */ + readonly height: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/preserveAspectRatio) */ + readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/width) */ + readonly width: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/x) */ + readonly x: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/y) */ + readonly y: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGImageElement: { + prototype: SVGImageElement; + new(): SVGImageElement; +}; + +/** + * Correspond to the <length> basic data type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength) + */ +interface SVGLength { + readonly unitType: number; + value: number; + valueAsString: string; + valueInSpecifiedUnits: number; + convertToSpecifiedUnits(unitType: number): void; + newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void; + readonly SVG_LENGTHTYPE_UNKNOWN: 0; + readonly SVG_LENGTHTYPE_NUMBER: 1; + readonly SVG_LENGTHTYPE_PERCENTAGE: 2; + readonly SVG_LENGTHTYPE_EMS: 3; + readonly SVG_LENGTHTYPE_EXS: 4; + readonly SVG_LENGTHTYPE_PX: 5; + readonly SVG_LENGTHTYPE_CM: 6; + readonly SVG_LENGTHTYPE_MM: 7; + readonly SVG_LENGTHTYPE_IN: 8; + readonly SVG_LENGTHTYPE_PT: 9; + readonly SVG_LENGTHTYPE_PC: 10; +} + +declare var SVGLength: { + prototype: SVGLength; + new(): SVGLength; + readonly SVG_LENGTHTYPE_UNKNOWN: 0; + readonly SVG_LENGTHTYPE_NUMBER: 1; + readonly SVG_LENGTHTYPE_PERCENTAGE: 2; + readonly SVG_LENGTHTYPE_EMS: 3; + readonly SVG_LENGTHTYPE_EXS: 4; + readonly SVG_LENGTHTYPE_PX: 5; + readonly SVG_LENGTHTYPE_CM: 6; + readonly SVG_LENGTHTYPE_MM: 7; + readonly SVG_LENGTHTYPE_IN: 8; + readonly SVG_LENGTHTYPE_PT: 9; + readonly SVG_LENGTHTYPE_PC: 10; +}; + +/** + * The SVGLengthList defines a list of SVGLength objects. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList) + */ +interface SVGLengthList { + readonly length: number; + readonly numberOfItems: number; + appendItem(newItem: SVGLength): SVGLength; + clear(): void; + getItem(index: number): SVGLength; + initialize(newItem: SVGLength): SVGLength; + insertItemBefore(newItem: SVGLength, index: number): SVGLength; + removeItem(index: number): SVGLength; + replaceItem(newItem: SVGLength, index: number): SVGLength; + [index: number]: SVGLength; +} + +declare var SVGLengthList: { + prototype: SVGLengthList; + new(): SVGLengthList; +}; + +/** + * Provides access to the properties of <line> elements, as well as methods to manipulate them. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement) + */ +interface SVGLineElement extends SVGGeometryElement { + readonly x1: SVGAnimatedLength; + readonly x2: SVGAnimatedLength; + readonly y1: SVGAnimatedLength; + readonly y2: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGLineElement: { + prototype: SVGLineElement; + new(): SVGLineElement; +}; + +/** + * Corresponds to the <linearGradient> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement) + */ +interface SVGLinearGradientElement extends SVGGradientElement { + readonly x1: SVGAnimatedLength; + readonly x2: SVGAnimatedLength; + readonly y1: SVGAnimatedLength; + readonly y2: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGLinearGradientElement: { + prototype: SVGLinearGradientElement; + new(): SVGLinearGradientElement; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMPathElement) */ +interface SVGMPathElement extends SVGElement, SVGURIReference { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGMPathElement: { + prototype: SVGMPathElement; + new(): SVGMPathElement; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement) */ +interface SVGMarkerElement extends SVGElement, SVGFitToViewBox { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerHeight) */ + readonly markerHeight: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerUnits) */ + readonly markerUnits: SVGAnimatedEnumeration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerWidth) */ + readonly markerWidth: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/orientAngle) */ + readonly orientAngle: SVGAnimatedAngle; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/orientType) */ + readonly orientType: SVGAnimatedEnumeration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/refX) */ + readonly refX: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/refY) */ + readonly refY: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/setOrientToAngle) */ + setOrientToAngle(angle: SVGAngle): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/setOrientToAuto) */ + setOrientToAuto(): void; + readonly SVG_MARKERUNITS_UNKNOWN: 0; + readonly SVG_MARKERUNITS_USERSPACEONUSE: 1; + readonly SVG_MARKERUNITS_STROKEWIDTH: 2; + readonly SVG_MARKER_ORIENT_UNKNOWN: 0; + readonly SVG_MARKER_ORIENT_AUTO: 1; + readonly SVG_MARKER_ORIENT_ANGLE: 2; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGMarkerElement: { + prototype: SVGMarkerElement; + new(): SVGMarkerElement; + readonly SVG_MARKERUNITS_UNKNOWN: 0; + readonly SVG_MARKERUNITS_USERSPACEONUSE: 1; + readonly SVG_MARKERUNITS_STROKEWIDTH: 2; + readonly SVG_MARKER_ORIENT_UNKNOWN: 0; + readonly SVG_MARKER_ORIENT_AUTO: 1; + readonly SVG_MARKER_ORIENT_ANGLE: 2; +}; + +/** + * Provides access to the properties of <mask> elements, as well as methods to manipulate them. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement) + */ +interface SVGMaskElement extends SVGElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/height) */ + readonly height: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/maskContentUnits) */ + readonly maskContentUnits: SVGAnimatedEnumeration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/maskUnits) */ + readonly maskUnits: SVGAnimatedEnumeration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/width) */ + readonly width: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/x) */ + readonly x: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/y) */ + readonly y: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGMaskElement: { + prototype: SVGMaskElement; + new(): SVGMaskElement; +}; + +/** + * Corresponds to the <metadata> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMetadataElement) + */ +interface SVGMetadataElement extends SVGElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGMetadataElement: { + prototype: SVGMetadataElement; + new(): SVGMetadataElement; +}; + +/** + * Corresponds to the <number> basic data type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumber) + */ +interface SVGNumber { + value: number; +} + +declare var SVGNumber: { + prototype: SVGNumber; + new(): SVGNumber; +}; + +/** + * The SVGNumberList defines a list of SVGNumber objects. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList) + */ +interface SVGNumberList { + readonly length: number; + readonly numberOfItems: number; + appendItem(newItem: SVGNumber): SVGNumber; + clear(): void; + getItem(index: number): SVGNumber; + initialize(newItem: SVGNumber): SVGNumber; + insertItemBefore(newItem: SVGNumber, index: number): SVGNumber; + removeItem(index: number): SVGNumber; + replaceItem(newItem: SVGNumber, index: number): SVGNumber; + [index: number]: SVGNumber; +} + +declare var SVGNumberList: { + prototype: SVGNumberList; + new(): SVGNumberList; +}; + +/** + * Corresponds to the <path> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPathElement) + */ +interface SVGPathElement extends SVGGeometryElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGPathElement: { + prototype: SVGPathElement; + new(): SVGPathElement; +}; + +/** + * Corresponds to the <pattern> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement) + */ +interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference { + readonly height: SVGAnimatedLength; + readonly patternContentUnits: SVGAnimatedEnumeration; + readonly patternTransform: SVGAnimatedTransformList; + readonly patternUnits: SVGAnimatedEnumeration; + readonly width: SVGAnimatedLength; + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGPatternElement: { + prototype: SVGPatternElement; + new(): SVGPatternElement; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList) */ +interface SVGPointList { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/numberOfItems) */ + readonly numberOfItems: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/appendItem) */ + appendItem(newItem: DOMPoint): DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/clear) */ + clear(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/getItem) */ + getItem(index: number): DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/initialize) */ + initialize(newItem: DOMPoint): DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/insertItemBefore) */ + insertItemBefore(newItem: DOMPoint, index: number): DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/removeItem) */ + removeItem(index: number): DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/replaceItem) */ + replaceItem(newItem: DOMPoint, index: number): DOMPoint; + [index: number]: DOMPoint; +} + +declare var SVGPointList: { + prototype: SVGPointList; + new(): SVGPointList; +}; + +/** + * Provides access to the properties of <polygon> elements, as well as methods to manipulate them. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolygonElement) + */ +interface SVGPolygonElement extends SVGGeometryElement, SVGAnimatedPoints { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGPolygonElement: { + prototype: SVGPolygonElement; + new(): SVGPolygonElement; +}; + +/** + * Provides access to the properties of <polyline> elements, as well as methods to manipulate them. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolylineElement) + */ +interface SVGPolylineElement extends SVGGeometryElement, SVGAnimatedPoints { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGPolylineElement: { + prototype: SVGPolylineElement; + new(): SVGPolylineElement; +}; + +/** + * Corresponds to the preserveAspectRatio attribute, which is available for some of SVG's elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPreserveAspectRatio) + */ +interface SVGPreserveAspectRatio { + align: number; + meetOrSlice: number; + readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0; + readonly SVG_PRESERVEASPECTRATIO_NONE: 1; + readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2; + readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3; + readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4; + readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5; + readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6; + readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7; + readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8; + readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9; + readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10; + readonly SVG_MEETORSLICE_UNKNOWN: 0; + readonly SVG_MEETORSLICE_MEET: 1; + readonly SVG_MEETORSLICE_SLICE: 2; +} + +declare var SVGPreserveAspectRatio: { + prototype: SVGPreserveAspectRatio; + new(): SVGPreserveAspectRatio; + readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0; + readonly SVG_PRESERVEASPECTRATIO_NONE: 1; + readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2; + readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3; + readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4; + readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5; + readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6; + readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7; + readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8; + readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9; + readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10; + readonly SVG_MEETORSLICE_UNKNOWN: 0; + readonly SVG_MEETORSLICE_MEET: 1; + readonly SVG_MEETORSLICE_SLICE: 2; +}; + +/** + * Corresponds to the <RadialGradient> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement) + */ +interface SVGRadialGradientElement extends SVGGradientElement { + readonly cx: SVGAnimatedLength; + readonly cy: SVGAnimatedLength; + readonly fr: SVGAnimatedLength; + readonly fx: SVGAnimatedLength; + readonly fy: SVGAnimatedLength; + readonly r: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGRadialGradientElement: { + prototype: SVGRadialGradientElement; + new(): SVGRadialGradientElement; +}; + +/** + * Provides access to the properties of <rect> elements, as well as methods to manipulate them. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement) + */ +interface SVGRectElement extends SVGGeometryElement { + readonly height: SVGAnimatedLength; + readonly rx: SVGAnimatedLength; + readonly ry: SVGAnimatedLength; + readonly width: SVGAnimatedLength; + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGRectElement: { + prototype: SVGRectElement; + new(): SVGRectElement; +}; + +interface SVGSVGElementEventMap extends SVGElementEventMap, WindowEventHandlersEventMap { +} + +/** + * Provides access to the properties of <svg> elements, as well as methods to manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement) + */ +interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers { + currentScale: number; + readonly currentTranslate: DOMPointReadOnly; + readonly height: SVGAnimatedLength; + readonly width: SVGAnimatedLength; + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; + animationsPaused(): boolean; + checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean; + checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean; + createSVGAngle(): SVGAngle; + createSVGLength(): SVGLength; + createSVGMatrix(): DOMMatrix; + createSVGNumber(): SVGNumber; + createSVGPoint(): DOMPoint; + createSVGRect(): DOMRect; + createSVGTransform(): SVGTransform; + createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform; + deselectAll(): void; + /** @deprecated */ + forceRedraw(): void; + getCurrentTime(): number; + getElementById(elementId: string): Element; + getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>; + getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>; + pauseAnimations(): void; + setCurrentTime(seconds: number): void; + /** @deprecated */ + suspendRedraw(maxWaitMilliseconds: number): number; + unpauseAnimations(): void; + /** @deprecated */ + unsuspendRedraw(suspendHandleID: number): void; + /** @deprecated */ + unsuspendRedrawAll(): void; + addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGSVGElement: { + prototype: SVGSVGElement; + new(): SVGSVGElement; +}; + +/** + * Corresponds to the SVG <script> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGScriptElement) + */ +interface SVGScriptElement extends SVGElement, SVGURIReference { + type: string; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGScriptElement: { + prototype: SVGScriptElement; + new(): SVGScriptElement; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSetElement) */ +interface SVGSetElement extends SVGAnimationElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGSetElement: { + prototype: SVGSetElement; + new(): SVGSetElement; +}; + +/** + * Corresponds to the <stop> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStopElement) + */ +interface SVGStopElement extends SVGElement { + readonly offset: SVGAnimatedNumber; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGStopElement: { + prototype: SVGStopElement; + new(): SVGStopElement; +}; + +/** + * The SVGStringList defines a list of DOMString objects. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList) + */ +interface SVGStringList { + readonly length: number; + readonly numberOfItems: number; + appendItem(newItem: string): string; + clear(): void; + getItem(index: number): string; + initialize(newItem: string): string; + insertItemBefore(newItem: string, index: number): string; + removeItem(index: number): string; + replaceItem(newItem: string, index: number): string; + [index: number]: string; +} + +declare var SVGStringList: { + prototype: SVGStringList; + new(): SVGStringList; +}; + +/** + * Corresponds to the SVG <style> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement) + */ +interface SVGStyleElement extends SVGElement, LinkStyle { + disabled: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/media) */ + media: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/title) */ + title: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/type) + */ + type: string; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGStyleElement: { + prototype: SVGStyleElement; + new(): SVGStyleElement; +}; + +/** + * Corresponds to the <switch> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSwitchElement) + */ +interface SVGSwitchElement extends SVGGraphicsElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGSwitchElement: { + prototype: SVGSwitchElement; + new(): SVGSwitchElement; +}; + +/** + * Corresponds to the <symbol> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSymbolElement) + */ +interface SVGSymbolElement extends SVGElement, SVGFitToViewBox { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGSymbolElement: { + prototype: SVGSymbolElement; + new(): SVGSymbolElement; +}; + +/** + * A <tspan> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTSpanElement) + */ +interface SVGTSpanElement extends SVGTextPositioningElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGTSpanElement: { + prototype: SVGTSpanElement; + new(): SVGTSpanElement; +}; + +interface SVGTests { + readonly requiredExtensions: SVGStringList; + readonly systemLanguage: SVGStringList; +} + +/** + * Implemented by elements that support rendering child text content. It is inherited by various text-related interfaces, such as SVGTextElement, SVGTSpanElement, SVGTRefElement, SVGAltGlyphElement and SVGTextPathElement. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement) + */ +interface SVGTextContentElement extends SVGGraphicsElement { + readonly lengthAdjust: SVGAnimatedEnumeration; + readonly textLength: SVGAnimatedLength; + getCharNumAtPosition(point?: DOMPointInit): number; + getComputedTextLength(): number; + getEndPositionOfChar(charnum: number): DOMPoint; + getExtentOfChar(charnum: number): DOMRect; + getNumberOfChars(): number; + getRotationOfChar(charnum: number): number; + getStartPositionOfChar(charnum: number): DOMPoint; + getSubStringLength(charnum: number, nchars: number): number; + /** @deprecated */ + selectSubString(charnum: number, nchars: number): void; + readonly LENGTHADJUST_UNKNOWN: 0; + readonly LENGTHADJUST_SPACING: 1; + readonly LENGTHADJUST_SPACINGANDGLYPHS: 2; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGTextContentElement: { + prototype: SVGTextContentElement; + new(): SVGTextContentElement; + readonly LENGTHADJUST_UNKNOWN: 0; + readonly LENGTHADJUST_SPACING: 1; + readonly LENGTHADJUST_SPACINGANDGLYPHS: 2; +}; + +/** + * Corresponds to the <text> elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextElement) + */ +interface SVGTextElement extends SVGTextPositioningElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGTextElement: { + prototype: SVGTextElement; + new(): SVGTextElement; +}; + +/** + * Corresponds to the <textPath> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement) + */ +interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference { + readonly method: SVGAnimatedEnumeration; + readonly spacing: SVGAnimatedEnumeration; + readonly startOffset: SVGAnimatedLength; + readonly TEXTPATH_METHODTYPE_UNKNOWN: 0; + readonly TEXTPATH_METHODTYPE_ALIGN: 1; + readonly TEXTPATH_METHODTYPE_STRETCH: 2; + readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0; + readonly TEXTPATH_SPACINGTYPE_AUTO: 1; + readonly TEXTPATH_SPACINGTYPE_EXACT: 2; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGTextPathElement: { + prototype: SVGTextPathElement; + new(): SVGTextPathElement; + readonly TEXTPATH_METHODTYPE_UNKNOWN: 0; + readonly TEXTPATH_METHODTYPE_ALIGN: 1; + readonly TEXTPATH_METHODTYPE_STRETCH: 2; + readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0; + readonly TEXTPATH_SPACINGTYPE_AUTO: 1; + readonly TEXTPATH_SPACINGTYPE_EXACT: 2; +}; + +/** + * Implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, SVGTRefElement and SVGAltGlyphElement. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement) + */ +interface SVGTextPositioningElement extends SVGTextContentElement { + readonly dx: SVGAnimatedLengthList; + readonly dy: SVGAnimatedLengthList; + readonly rotate: SVGAnimatedNumberList; + readonly x: SVGAnimatedLengthList; + readonly y: SVGAnimatedLengthList; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGTextPositioningElement: { + prototype: SVGTextPositioningElement; + new(): SVGTextPositioningElement; +}; + +/** + * Corresponds to the <title> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTitleElement) + */ +interface SVGTitleElement extends SVGElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGTitleElement: { + prototype: SVGTitleElement; + new(): SVGTitleElement; +}; + +/** + * SVGTransform is the interface for one of the component transformations within an SVGTransformList; thus, an SVGTransform object corresponds to a single component (e.g., scale(…) or matrix(…)) within a transform attribute. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform) + */ +interface SVGTransform { + readonly angle: number; + readonly matrix: DOMMatrix; + readonly type: number; + setMatrix(matrix?: DOMMatrix2DInit): void; + setRotate(angle: number, cx: number, cy: number): void; + setScale(sx: number, sy: number): void; + setSkewX(angle: number): void; + setSkewY(angle: number): void; + setTranslate(tx: number, ty: number): void; + readonly SVG_TRANSFORM_UNKNOWN: 0; + readonly SVG_TRANSFORM_MATRIX: 1; + readonly SVG_TRANSFORM_TRANSLATE: 2; + readonly SVG_TRANSFORM_SCALE: 3; + readonly SVG_TRANSFORM_ROTATE: 4; + readonly SVG_TRANSFORM_SKEWX: 5; + readonly SVG_TRANSFORM_SKEWY: 6; +} + +declare var SVGTransform: { + prototype: SVGTransform; + new(): SVGTransform; + readonly SVG_TRANSFORM_UNKNOWN: 0; + readonly SVG_TRANSFORM_MATRIX: 1; + readonly SVG_TRANSFORM_TRANSLATE: 2; + readonly SVG_TRANSFORM_SCALE: 3; + readonly SVG_TRANSFORM_ROTATE: 4; + readonly SVG_TRANSFORM_SKEWX: 5; + readonly SVG_TRANSFORM_SKEWY: 6; +}; + +/** + * The SVGTransformList defines a list of SVGTransform objects. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList) + */ +interface SVGTransformList { + readonly length: number; + readonly numberOfItems: number; + appendItem(newItem: SVGTransform): SVGTransform; + clear(): void; + consolidate(): SVGTransform | null; + createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform; + getItem(index: number): SVGTransform; + initialize(newItem: SVGTransform): SVGTransform; + insertItemBefore(newItem: SVGTransform, index: number): SVGTransform; + removeItem(index: number): SVGTransform; + replaceItem(newItem: SVGTransform, index: number): SVGTransform; + [index: number]: SVGTransform; +} + +declare var SVGTransformList: { + prototype: SVGTransformList; + new(): SVGTransformList; +}; + +interface SVGURIReference { + readonly href: SVGAnimatedString; +} + +/** + * A commonly used set of constants used for reflecting gradientUnits, patternContentUnits and other similar attributes. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUnitTypes) + */ +interface SVGUnitTypes { + readonly SVG_UNIT_TYPE_UNKNOWN: 0; + readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1; + readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2; +} + +declare var SVGUnitTypes: { + prototype: SVGUnitTypes; + new(): SVGUnitTypes; + readonly SVG_UNIT_TYPE_UNKNOWN: 0; + readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1; + readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2; +}; + +/** + * Corresponds to the <use> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUseElement) + */ +interface SVGUseElement extends SVGGraphicsElement, SVGURIReference { + readonly height: SVGAnimatedLength; + readonly width: SVGAnimatedLength; + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGUseElement: { + prototype: SVGUseElement; + new(): SVGUseElement; +}; + +/** + * Provides access to the properties of <view> elements, as well as methods to manipulate them. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGViewElement) + */ +interface SVGViewElement extends SVGElement, SVGFitToViewBox { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGViewElement: { + prototype: SVGViewElement; + new(): SVGViewElement; +}; + +/** + * A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen) + */ +interface Screen { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/availHeight) */ + readonly availHeight: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/availWidth) */ + readonly availWidth: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/colorDepth) */ + readonly colorDepth: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/height) */ + readonly height: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/orientation) */ + readonly orientation: ScreenOrientation; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/pixelDepth) */ + readonly pixelDepth: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/width) */ + readonly width: number; +} + +declare var Screen: { + prototype: Screen; + new(): Screen; +}; + +interface ScreenOrientationEventMap { + "change": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation) */ +interface ScreenOrientation extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/angle) */ + readonly angle: number; + onchange: ((this: ScreenOrientation, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type) */ + readonly type: OrientationType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock) */ + unlock(): void; + addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var ScreenOrientation: { + prototype: ScreenOrientation; + new(): ScreenOrientation; +}; + +interface ScriptProcessorNodeEventMap { + "audioprocess": AudioProcessingEvent; +} + +/** + * Allows the generation, processing, or analyzing of audio using JavaScript. + * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and was replaced by AudioWorklet (see AudioWorkletNode). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode) + */ +interface ScriptProcessorNode extends AudioNode { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode/bufferSize) + */ + readonly bufferSize: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode/audioprocess_event) + */ + onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null; + addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +/** @deprecated */ +declare var ScriptProcessorNode: { + prototype: ScriptProcessorNode; + new(): ScriptProcessorNode; +}; + +/** + * Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent) + */ +interface SecurityPolicyViolationEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/blockedURI) */ + readonly blockedURI: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ + readonly columnNumber: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/disposition) */ + readonly disposition: SecurityPolicyViolationEventDisposition; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/documentURI) */ + readonly documentURI: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective) */ + readonly effectiveDirective: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/lineNumber) */ + readonly lineNumber: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy) */ + readonly originalPolicy: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/referrer) */ + readonly referrer: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sample) */ + readonly sample: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sourceFile) */ + readonly sourceFile: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/statusCode) */ + readonly statusCode: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective) */ + readonly violatedDirective: string; +} + +declare var SecurityPolicyViolationEvent: { + prototype: SecurityPolicyViolationEvent; + new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent; +}; + +/** + * A Selection object represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or modification, call Window.getSelection(). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection) + */ +interface Selection { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorNode) */ + readonly anchorNode: Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorOffset) */ + readonly anchorOffset: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusNode) */ + readonly focusNode: Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusOffset) */ + readonly focusOffset: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/isCollapsed) */ + readonly isCollapsed: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/rangeCount) */ + readonly rangeCount: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/type) */ + readonly type: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/addRange) */ + addRange(range: Range): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapse) */ + collapse(node: Node | null, offset?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapseToEnd) */ + collapseToEnd(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapseToStart) */ + collapseToStart(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/containsNode) */ + containsNode(node: Node, allowPartialContainment?: boolean): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/deleteFromDocument) */ + deleteFromDocument(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeAllRanges) */ + empty(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/extend) */ + extend(node: Node, offset?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/getRangeAt) */ + getRangeAt(index: number): Range; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/modify) */ + modify(alter?: string, direction?: string, granularity?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeAllRanges) */ + removeAllRanges(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeRange) */ + removeRange(range: Range): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/selectAllChildren) */ + selectAllChildren(node: Node): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/setBaseAndExtent) */ + setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapse) */ + setPosition(node: Node | null, offset?: number): void; + toString(): string; +} + +declare var Selection: { + prototype: Selection; + new(): Selection; +}; + +interface ServiceWorkerEventMap extends AbstractWorkerEventMap { + "statechange": Event; +} + +/** + * This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker) + */ +interface ServiceWorker extends EventTarget, AbstractWorker { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/statechange_event) */ + onstatechange: ((this: ServiceWorker, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL) */ + readonly scriptURL: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/state) */ + readonly state: ServiceWorkerState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/postMessage) */ + postMessage(message: any, transfer: Transferable[]): void; + postMessage(message: any, options?: StructuredSerializeOptions): void; + addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var ServiceWorker: { + prototype: ServiceWorker; + new(): ServiceWorker; +}; + +interface ServiceWorkerContainerEventMap { + "controllerchange": Event; + "message": MessageEvent; + "messageerror": MessageEvent; +} + +/** + * The ServiceWorkerContainer interface of the ServiceWorker API provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer) + */ +interface ServiceWorkerContainer extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */ + readonly controller: ServiceWorker | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controllerchange_event) */ + oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */ + onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */ + onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */ + readonly ready: Promise<ServiceWorkerRegistration>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration) */ + getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations) */ + getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register) */ + register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/startMessages) */ + startMessages(): void; + addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var ServiceWorkerContainer: { + prototype: ServiceWorkerContainer; + new(): ServiceWorkerContainer; +}; + +interface ServiceWorkerRegistrationEventMap { + "updatefound": Event; +} + +/** + * This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration) + */ +interface ServiceWorkerRegistration extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) */ + readonly active: ServiceWorker | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing) */ + readonly installing: ServiceWorker | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/navigationPreload) */ + readonly navigationPreload: NavigationPreloadManager; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */ + onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */ + readonly pushManager: PushManager; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/scope) */ + readonly scope: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache) */ + readonly updateViaCache: ServiceWorkerUpdateViaCache; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/waiting) */ + readonly waiting: ServiceWorker | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications) */ + getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/showNotification) */ + showNotification(title: string, options?: NotificationOptions): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister) */ + unregister(): Promise<boolean>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update) */ + update(): Promise<void>; + addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var ServiceWorkerRegistration: { + prototype: ServiceWorkerRegistration; + new(): ServiceWorkerRegistration; +}; + +interface ShadowRootEventMap { + "slotchange": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot) */ +interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus) */ + readonly delegatesFocus: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host) */ + readonly host: Element; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/mode) */ + readonly mode: ShadowRootMode; + onslotchange: ((this: ShadowRoot, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment) */ + readonly slotAssignment: SlotAssignmentMode; + /** Throws a "NotSupportedError" DOMException if context object is a shadow root. */ + addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var ShadowRoot: { + prototype: ShadowRoot; + new(): ShadowRoot; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorker) */ +interface SharedWorker extends EventTarget, AbstractWorker { + /** + * Returns sharedWorker's MessagePort object which can be used to communicate with the global environment. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorker/port) + */ + readonly port: MessagePort; + addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SharedWorker: { + prototype: SharedWorker; + new(scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker; +}; + +interface Slottable { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/assignedSlot) */ + readonly assignedSlot: HTMLSlotElement | null; +} + +interface SourceBufferEventMap { + "abort": Event; + "error": Event; + "update": Event; + "updateend": Event; + "updatestart": Event; +} + +/** + * A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource object. This can be made up of one or several media segments. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer) + */ +interface SourceBuffer extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendWindowEnd) */ + appendWindowEnd: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendWindowStart) */ + appendWindowStart: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/buffered) */ + readonly buffered: TimeRanges; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/mode) */ + mode: AppendMode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort_event) */ + onabort: ((this: SourceBuffer, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/error_event) */ + onerror: ((this: SourceBuffer, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/update_event) */ + onupdate: ((this: SourceBuffer, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updateend_event) */ + onupdateend: ((this: SourceBuffer, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updatestart_event) */ + onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/timestampOffset) */ + timestampOffset: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updating) */ + readonly updating: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort) */ + abort(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendBuffer) */ + appendBuffer(data: BufferSource): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/changeType) */ + changeType(type: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/remove) */ + remove(start: number, end: number): void; + addEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SourceBuffer: { + prototype: SourceBuffer; + new(): SourceBuffer; +}; + +interface SourceBufferListEventMap { + "addsourcebuffer": Event; + "removesourcebuffer": Event; +} + +/** + * A simple container list for multiple SourceBuffer objects. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList) + */ +interface SourceBufferList extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/addsourcebuffer_event) */ + onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/removesourcebuffer_event) */ + onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null; + addEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + [index: number]: SourceBuffer; +} + +declare var SourceBufferList: { + prototype: SourceBufferList; + new(): SourceBufferList; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative) */ +interface SpeechRecognitionAlternative { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/confidence) */ + readonly confidence: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/transcript) */ + readonly transcript: string; +} + +declare var SpeechRecognitionAlternative: { + prototype: SpeechRecognitionAlternative; + new(): SpeechRecognitionAlternative; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult) */ +interface SpeechRecognitionResult { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/isFinal) */ + readonly isFinal: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/item) */ + item(index: number): SpeechRecognitionAlternative; + [index: number]: SpeechRecognitionAlternative; +} + +declare var SpeechRecognitionResult: { + prototype: SpeechRecognitionResult; + new(): SpeechRecognitionResult; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList) */ +interface SpeechRecognitionResultList { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/item) */ + item(index: number): SpeechRecognitionResult; + [index: number]: SpeechRecognitionResult; +} + +declare var SpeechRecognitionResultList: { + prototype: SpeechRecognitionResultList; + new(): SpeechRecognitionResultList; +}; + +interface SpeechSynthesisEventMap { + "voiceschanged": Event; +} + +/** + * This Web Speech API interface is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis) + */ +interface SpeechSynthesis extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/voiceschanged_event) */ + onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/paused) */ + readonly paused: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/pending) */ + readonly pending: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/speaking) */ + readonly speaking: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/cancel) */ + cancel(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/getVoices) */ + getVoices(): SpeechSynthesisVoice[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/pause) */ + pause(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/resume) */ + resume(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/speak) */ + speak(utterance: SpeechSynthesisUtterance): void; + addEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SpeechSynthesis: { + prototype: SpeechSynthesis; + new(): SpeechSynthesis; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisErrorEvent) */ +interface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisErrorEvent/error) */ + readonly error: SpeechSynthesisErrorCode; +} + +declare var SpeechSynthesisErrorEvent: { + prototype: SpeechSynthesisErrorEvent; + new(type: string, eventInitDict: SpeechSynthesisErrorEventInit): SpeechSynthesisErrorEvent; +}; + +/** + * This Web Speech API interface contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent) + */ +interface SpeechSynthesisEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/charIndex) */ + readonly charIndex: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/charLength) */ + readonly charLength: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/elapsedTime) */ + readonly elapsedTime: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/utterance) */ + readonly utterance: SpeechSynthesisUtterance; +} + +declare var SpeechSynthesisEvent: { + prototype: SpeechSynthesisEvent; + new(type: string, eventInitDict: SpeechSynthesisEventInit): SpeechSynthesisEvent; +}; + +interface SpeechSynthesisUtteranceEventMap { + "boundary": SpeechSynthesisEvent; + "end": SpeechSynthesisEvent; + "error": SpeechSynthesisErrorEvent; + "mark": SpeechSynthesisEvent; + "pause": SpeechSynthesisEvent; + "resume": SpeechSynthesisEvent; + "start": SpeechSynthesisEvent; +} + +/** + * This Web Speech API interface represents a speech request. It contains the content the speech service should read and information about how to read it (e.g. language, pitch and volume.) + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance) + */ +interface SpeechSynthesisUtterance extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/lang) */ + lang: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/boundary_event) */ + onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/end_event) */ + onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/error_event) */ + onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/mark_event) */ + onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/pause_event) */ + onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/resume_event) */ + onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/start_event) */ + onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/pitch) */ + pitch: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/rate) */ + rate: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/text) */ + text: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/voice) */ + voice: SpeechSynthesisVoice | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/volume) */ + volume: number; + addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SpeechSynthesisUtterance: { + prototype: SpeechSynthesisUtterance; + new(text?: string): SpeechSynthesisUtterance; +}; + +/** + * This Web Speech API interface represents a voice that the system supports. Every SpeechSynthesisVoice has its own relative speech service including information about language, name and URI. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice) + */ +interface SpeechSynthesisVoice { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/default) */ + readonly default: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/lang) */ + readonly lang: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/localService) */ + readonly localService: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/voiceURI) */ + readonly voiceURI: string; +} + +declare var SpeechSynthesisVoice: { + prototype: SpeechSynthesisVoice; + new(): SpeechSynthesisVoice; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StaticRange) */ +interface StaticRange extends AbstractRange { +} + +declare var StaticRange: { + prototype: StaticRange; + new(init: StaticRangeInit): StaticRange; +}; + +/** + * The pan property takes a unitless value between -1 (full left pan) and 1 (full right pan). This interface was introduced as a much simpler way to apply a simple panning effect than having to use a full PannerNode. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StereoPannerNode) + */ +interface StereoPannerNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StereoPannerNode/pan) */ + readonly pan: AudioParam; +} + +declare var StereoPannerNode: { + prototype: StereoPannerNode; + new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode; +}; + +/** + * This Web Storage API interface provides access to a particular domain's session or local storage. It allows, for example, the addition, modification, or deletion of stored data items. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage) + */ +interface Storage { + /** + * Returns the number of key/value pairs. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/length) + */ + readonly length: number; + /** + * Removes all key/value pairs, if there are any. + * + * Dispatches a storage event on Window objects holding an equivalent Storage object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/clear) + */ + clear(): void; + /** + * Returns the current value associated with the given key, or null if the given key does not exist. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/getItem) + */ + getItem(key: string): string | null; + /** + * Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/key) + */ + key(index: number): string | null; + /** + * Removes the key/value pair with the given key, if a key/value pair with the given key exists. + * + * Dispatches a storage event on Window objects holding an equivalent Storage object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/removeItem) + */ + removeItem(key: string): void; + /** + * Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously. + * + * Throws a "QuotaExceededError" DOMException exception if the new value couldn't be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.) + * + * Dispatches a storage event on Window objects holding an equivalent Storage object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/setItem) + */ + setItem(key: string, value: string): void; + [name: string]: any; +} + +declare var Storage: { + prototype: Storage; + new(): Storage; +}; + +/** + * A StorageEvent is sent to a window when a storage area it has access to is changed within the context of another document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent) + */ +interface StorageEvent extends Event { + /** + * Returns the key of the storage item being changed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/key) + */ + readonly key: string | null; + /** + * Returns the new value of the key of the storage item whose value is being changed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/newValue) + */ + readonly newValue: string | null; + /** + * Returns the old value of the key of the storage item whose value is being changed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/oldValue) + */ + readonly oldValue: string | null; + /** + * Returns the Storage object that was affected. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/storageArea) + */ + readonly storageArea: Storage | null; + /** + * Returns the URL of the document whose storage item changed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/url) + */ + readonly url: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/initStorageEvent) + */ + initStorageEvent(type: string, bubbles?: boolean, cancelable?: boolean, key?: string | null, oldValue?: string | null, newValue?: string | null, url?: string | URL, storageArea?: Storage | null): void; +} + +declare var StorageEvent: { + prototype: StorageEvent; + new(type: string, eventInitDict?: StorageEventInit): StorageEvent; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager) + */ +interface StorageManager { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate) */ + estimate(): Promise<StorageEstimate>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/getDirectory) */ + getDirectory(): Promise<FileSystemDirectoryHandle>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persist) */ + persist(): Promise<boolean>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted) */ + persisted(): Promise<boolean>; +} + +declare var StorageManager: { + prototype: StorageManager; + new(): StorageManager; +}; + +/** @deprecated */ +interface StyleMedia { + type: string; + matchMedium(mediaquery: string): boolean; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap) */ +interface StylePropertyMap extends StylePropertyMapReadOnly { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/append) */ + append(property: string, ...values: (CSSStyleValue | string)[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/clear) */ + clear(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/delete) */ + delete(property: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/set) */ + set(property: string, ...values: (CSSStyleValue | string)[]): void; +} + +declare var StylePropertyMap: { + prototype: StylePropertyMap; + new(): StylePropertyMap; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly) */ +interface StylePropertyMapReadOnly { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size) */ + readonly size: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get) */ + get(property: string): undefined | CSSStyleValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll) */ + getAll(property: string): CSSStyleValue[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has) */ + has(property: string): boolean; + forEach(callbackfn: (value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void, thisArg?: any): void; +} + +declare var StylePropertyMapReadOnly: { + prototype: StylePropertyMapReadOnly; + new(): StylePropertyMapReadOnly; +}; + +/** + * A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet) + */ +interface StyleSheet { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/disabled) */ + disabled: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/href) */ + readonly href: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/media) */ + readonly media: MediaList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/ownerNode) */ + readonly ownerNode: Element | ProcessingInstruction | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/parentStyleSheet) */ + readonly parentStyleSheet: CSSStyleSheet | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/title) */ + readonly title: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/type) */ + readonly type: string; +} + +declare var StyleSheet: { + prototype: StyleSheet; + new(): StyleSheet; +}; + +/** + * A list of StyleSheet. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList) + */ +interface StyleSheetList { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList/item) */ + item(index: number): CSSStyleSheet | null; + [index: number]: CSSStyleSheet; +} + +declare var StyleSheetList: { + prototype: StyleSheetList; + new(): StyleSheetList; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubmitEvent) */ +interface SubmitEvent extends Event { + /** + * Returns the element representing the submit button that triggered the form submission, or null if the submission was not triggered by a button. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubmitEvent/submitter) + */ + readonly submitter: HTMLElement | null; +} + +declare var SubmitEvent: { + prototype: SubmitEvent; + new(type: string, eventInitDict?: SubmitEventInit): SubmitEvent; +}; + +/** + * This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto). + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto) + */ +interface SubtleCrypto { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) */ + decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) */ + deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */ + deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) */ + digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt) */ + encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey) */ + exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>; + exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>; + exportKey(format: KeyFormat, key: CryptoKey): Promise<ArrayBuffer | JsonWebKey>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */ + generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>; + generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>; + generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>; + generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */ + importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>; + importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign) */ + sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */ + unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify) */ + verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey) */ + wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>; +} + +declare var SubtleCrypto: { + prototype: SubtleCrypto; + new(): SubtleCrypto; +}; + +/** + * The textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text) + */ +interface Text extends CharacterData, Slottable { + /** + * Returns the combined data of all direct Text node siblings. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text/wholeText) + */ + readonly wholeText: string; + /** + * Splits data at the given offset and returns the remainder as Text node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text/splitText) + */ + splitText(offset: number): Text; +} + +declare var Text: { + prototype: Text; + new(data?: string): Text; +}; + +/** + * A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc. A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder) + */ +interface TextDecoder extends TextDecoderCommon { + /** + * Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments. + * + * \`\`\` + * var string = "", decoder = new TextDecoder(encoding), buffer; + * while(buffer = next_chunk()) { + * string += decoder.decode(buffer, {stream:true}); + * } + * string += decoder.decode(); // end-of-queue + * \`\`\` + * + * If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode) + */ + decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string; +} + +declare var TextDecoder: { + prototype: TextDecoder; + new(label?: string, options?: TextDecoderOptions): TextDecoder; +}; + +interface TextDecoderCommon { + /** + * Returns encoding's name, lowercased. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/encoding) + */ + readonly encoding: string; + /** + * Returns true if error mode is "fatal", otherwise false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/fatal) + */ + readonly fatal: boolean; + /** + * Returns the value of ignore BOM. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/ignoreBOM) + */ + readonly ignoreBOM: boolean; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream) */ +interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon { + readonly readable: ReadableStream<string>; + readonly writable: WritableStream<BufferSource>; +} + +declare var TextDecoderStream: { + prototype: TextDecoderStream; + new(label?: string, options?: TextDecoderOptions): TextDecoderStream; +}; + +/** + * TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder) + */ +interface TextEncoder extends TextEncoderCommon { + /** + * Returns the result of running UTF-8's encoder. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode) + */ + encode(input?: string): Uint8Array; + /** + * Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto) + */ + encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult; +} + +declare var TextEncoder: { + prototype: TextEncoder; + new(): TextEncoder; +}; + +interface TextEncoderCommon { + /** + * Returns "utf-8". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encoding) + */ + readonly encoding: string; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream) */ +interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon { + readonly readable: ReadableStream<Uint8Array>; + readonly writable: WritableStream<string>; +} + +declare var TextEncoderStream: { + prototype: TextEncoderStream; + new(): TextEncoderStream; +}; + +/** + * The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics) + */ +interface TextMetrics { + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxAscent) + */ + readonly actualBoundingBoxAscent: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxDescent) + */ + readonly actualBoundingBoxDescent: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxLeft) + */ + readonly actualBoundingBoxLeft: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight) + */ + readonly actualBoundingBoxRight: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline) + */ + readonly alphabeticBaseline: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent) + */ + readonly emHeightAscent: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent) + */ + readonly emHeightDescent: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxAscent) + */ + readonly fontBoundingBoxAscent: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent) + */ + readonly fontBoundingBoxDescent: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline) + */ + readonly hangingBaseline: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline) + */ + readonly ideographicBaseline: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/width) + */ + readonly width: number; +} + +declare var TextMetrics: { + prototype: TextMetrics; + new(): TextMetrics; +}; + +interface TextTrackEventMap { + "cuechange": Event; +} + +/** + * This interface also inherits properties from EventTarget. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack) + */ +interface TextTrack extends EventTarget { + /** + * Returns the text track cues from the text track list of cues that are currently active (i.e. that start before the current playback position and end after it), as a TextTrackCueList object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/activeCues) + */ + readonly activeCues: TextTrackCueList | null; + /** + * Returns the text track list of cues, as a TextTrackCueList object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/cues) + */ + readonly cues: TextTrackCueList | null; + /** + * Returns the ID of the given track. + * + * For in-band tracks, this is the ID that can be used with a fragment if the format supports media fragment syntax, and that can be used with the getTrackById() method. + * + * For TextTrack objects corresponding to track elements, this is the ID of the track element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/id) + */ + readonly id: string; + /** + * Returns the text track in-band metadata track dispatch type string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/inBandMetadataTrackDispatchType) + */ + readonly inBandMetadataTrackDispatchType: string; + /** + * Returns the text track kind string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/kind) + */ + readonly kind: TextTrackKind; + /** + * Returns the text track label, if there is one, or the empty string otherwise (indicating that a custom label probably needs to be generated from the other attributes of the object if the object is exposed to the user). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/label) + */ + readonly label: string; + /** + * Returns the text track language string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/language) + */ + readonly language: string; + /** + * Returns the text track mode, represented by a string from the following list: + * + * Can be set, to change the mode. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/mode) + */ + mode: TextTrackMode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/cuechange_event) */ + oncuechange: ((this: TextTrack, ev: Event) => any) | null; + /** + * Adds the given cue to textTrack's text track list of cues. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/addCue) + */ + addCue(cue: TextTrackCue): void; + /** + * Removes the given cue from textTrack's text track list of cues. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/removeCue) + */ + removeCue(cue: TextTrackCue): void; + addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var TextTrack: { + prototype: TextTrack; + new(): TextTrack; +}; + +interface TextTrackCueEventMap { + "enter": Event; + "exit": Event; +} + +/** + * TextTrackCues represent a string of text that will be displayed for some duration of time on a TextTrack. This includes the start and end times that the cue will be displayed. A TextTrackCue cannot be used directly, instead one of the derived types (e.g. VTTCue) must be used. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue) + */ +interface TextTrackCue extends EventTarget { + /** + * Returns the text track cue end time, in seconds. + * + * Can be set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/endTime) + */ + endTime: number; + /** + * Returns the text track cue identifier. + * + * Can be set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/id) + */ + id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/enter_event) */ + onenter: ((this: TextTrackCue, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/exit_event) */ + onexit: ((this: TextTrackCue, ev: Event) => any) | null; + /** + * Returns true if the text track cue pause-on-exit flag is set, false otherwise. + * + * Can be set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/pauseOnExit) + */ + pauseOnExit: boolean; + /** + * Returns the text track cue start time, in seconds. + * + * Can be set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/startTime) + */ + startTime: number; + /** + * Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/track) + */ + readonly track: TextTrack | null; + addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var TextTrackCue: { + prototype: TextTrackCue; + new(): TextTrackCue; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList) */ +interface TextTrackCueList { + /** + * Returns the number of cues in the list. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList/length) + */ + readonly length: number; + /** + * Returns the first text track cue (in text track cue order) with text track cue identifier id. + * + * Returns null if none of the cues have the given identifier or if the argument is the empty string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList/getCueById) + */ + getCueById(id: string): TextTrackCue | null; + [index: number]: TextTrackCue; +} + +declare var TextTrackCueList: { + prototype: TextTrackCueList; + new(): TextTrackCueList; +}; + +interface TextTrackListEventMap { + "addtrack": TrackEvent; + "change": Event; + "removetrack": TrackEvent; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList) */ +interface TextTrackList extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/addtrack_event) */ + onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/change_event) */ + onchange: ((this: TextTrackList, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/removetrack_event) */ + onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/getTrackById) */ + getTrackById(id: string): TextTrack | null; + addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + [index: number]: TextTrack; +} + +declare var TextTrackList: { + prototype: TextTrackList; + new(): TextTrackList; +}; + +/** + * Used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the <audio> and <video> elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges) + */ +interface TimeRanges { + /** + * Returns the number of ranges in the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/length) + */ + readonly length: number; + /** + * Returns the time for the end of the range with the given index. + * + * Throws an "IndexSizeError" DOMException if the index is out of range. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/end) + */ + end(index: number): number; + /** + * Returns the time for the start of the range with the given index. + * + * Throws an "IndexSizeError" DOMException if the index is out of range. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/start) + */ + start(index: number): number; +} + +declare var TimeRanges: { + prototype: TimeRanges; + new(): TimeRanges; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */ +interface ToggleEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */ + readonly newState: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */ + readonly oldState: string; +} + +declare var ToggleEvent: { + prototype: ToggleEvent; + new(type: string, eventInitDict?: ToggleEventInit): ToggleEvent; +}; + +/** + * A single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch) + */ +interface Touch { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/clientX) */ + readonly clientX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/clientY) */ + readonly clientY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/force) */ + readonly force: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/identifier) */ + readonly identifier: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/pageX) */ + readonly pageX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/pageY) */ + readonly pageY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/radiusX) */ + readonly radiusX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/radiusY) */ + readonly radiusY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/rotationAngle) */ + readonly rotationAngle: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/screenX) */ + readonly screenX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/screenY) */ + readonly screenY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/target) */ + readonly target: EventTarget; +} + +declare var Touch: { + prototype: Touch; + new(touchInitDict: TouchInit): Touch; +}; + +/** + * An event sent when the state of contacts with a touch-sensitive surface changes. This surface can be a touch screen or trackpad, for example. The event can describe one or more points of contact with the screen and includes support for detecting movement, addition and removal of contact points, and so forth. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent) + */ +interface TouchEvent extends UIEvent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/altKey) */ + readonly altKey: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/changedTouches) */ + readonly changedTouches: TouchList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/ctrlKey) */ + readonly ctrlKey: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/metaKey) */ + readonly metaKey: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/shiftKey) */ + readonly shiftKey: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/targetTouches) */ + readonly targetTouches: TouchList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/touches) */ + readonly touches: TouchList; +} + +declare var TouchEvent: { + prototype: TouchEvent; + new(type: string, eventInitDict?: TouchEventInit): TouchEvent; +}; + +/** + * A list of contact points on a touch surface. For example, if the user has three fingers on the touch surface (such as a screen or trackpad), the corresponding TouchList object would have one Touch object for each finger, for a total of three entries. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList) + */ +interface TouchList { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList/item) */ + item(index: number): Touch | null; + [index: number]: Touch; +} + +declare var TouchList: { + prototype: TouchList; + new(): TouchList; +}; + +/** + * The TrackEvent interface, part of the HTML DOM specification, is used for events which represent changes to the set of available tracks on an HTML media element; these events are addtrack and removetrack. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TrackEvent) + */ +interface TrackEvent extends Event { + /** + * Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TrackEvent/track) + */ + readonly track: TextTrack | null; +} + +declare var TrackEvent: { + prototype: TrackEvent; + new(type: string, eventInitDict?: TrackEventInit): TrackEvent; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream) */ +interface TransformStream<I = any, O = any> { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) */ + readonly readable: ReadableStream<O>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable) */ + readonly writable: WritableStream<I>; +} + +declare var TransformStream: { + prototype: TransformStream; + new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */ +interface TransformStreamDefaultController<O = any> { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */ + readonly desiredSize: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */ + enqueue(chunk?: O): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error) */ + error(reason?: any): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) */ + terminate(): void; +} + +declare var TransformStreamDefaultController: { + prototype: TransformStreamDefaultController; + new(): TransformStreamDefaultController; +}; + +/** + * Events providing information related to transitions. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent) + */ +interface TransitionEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/elapsedTime) */ + readonly elapsedTime: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/propertyName) */ + readonly propertyName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/pseudoElement) */ + readonly pseudoElement: string; +} + +declare var TransitionEvent: { + prototype: TransitionEvent; + new(type: string, transitionEventInitDict?: TransitionEventInit): TransitionEvent; +}; + +/** + * The nodes of a document subtree and a position within them. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker) + */ +interface TreeWalker { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/currentNode) */ + currentNode: Node; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/filter) */ + readonly filter: NodeFilter | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/root) */ + readonly root: Node; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/whatToShow) */ + readonly whatToShow: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/firstChild) */ + firstChild(): Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/lastChild) */ + lastChild(): Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextNode) */ + nextNode(): Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextSibling) */ + nextSibling(): Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/parentNode) */ + parentNode(): Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousNode) */ + previousNode(): Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousSibling) */ + previousSibling(): Node | null; +} + +declare var TreeWalker: { + prototype: TreeWalker; + new(): TreeWalker; +}; + +/** + * Simple user interface events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent) + */ +interface UIEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/detail) */ + readonly detail: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/view) */ + readonly view: Window | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/which) + */ + readonly which: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/initUIEvent) + */ + initUIEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, detailArg?: number): void; +} + +declare var UIEvent: { + prototype: UIEvent; + new(type: string, eventInitDict?: UIEventInit): UIEvent; +}; + +/** + * The URL interface represents an object providing static methods used for creating object URLs. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL) + */ +interface URL { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) */ + hash: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) */ + host: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) */ + hostname: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) */ + href: string; + toString(): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin) */ + readonly origin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) */ + password: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) */ + pathname: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) */ + port: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) */ + protocol: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) */ + search: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams) */ + readonly searchParams: URLSearchParams; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) */ + username: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON) */ + toJSON(): string; +} + +declare var URL: { + prototype: URL; + new(url: string | URL, base?: string | URL): URL; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */ + canParse(url: string | URL, base?: string): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */ + createObjectURL(obj: Blob | MediaSource): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */ + revokeObjectURL(url: string): void; +}; + +type webkitURL = URL; +declare var webkitURL: typeof URL; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */ +interface URLSearchParams { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) */ + readonly size: number; + /** + * Appends a specified key/value pair as a new search parameter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append) + */ + append(name: string, value: string): void; + /** + * Deletes the given search parameter, and its associated value, from the list of all search parameters. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete) + */ + delete(name: string, value?: string): void; + /** + * Returns the first value associated to the given search parameter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get) + */ + get(name: string): string | null; + /** + * Returns all the values association with a given search parameter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll) + */ + getAll(name: string): string[]; + /** + * Returns a Boolean indicating if such a search parameter exists. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has) + */ + has(name: string, value?: string): boolean; + /** + * Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set) + */ + set(name: string, value: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) */ + sort(): void; + /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */ + toString(): string; + forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void; +} + +declare var URLSearchParams: { + prototype: URLSearchParams; + new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation) */ +interface UserActivation { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/hasBeenActive) */ + readonly hasBeenActive: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/hasBeenActive) */ + readonly isActive: boolean; +} + +declare var UserActivation: { + prototype: UserActivation; + new(): UserActivation; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue) */ +interface VTTCue extends TextTrackCue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/align) */ + align: AlignSetting; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/line) */ + line: LineAndPositionSetting; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/lineAlign) */ + lineAlign: LineAlignSetting; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/position) */ + position: LineAndPositionSetting; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/positionAlign) */ + positionAlign: PositionAlignSetting; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/region) */ + region: VTTRegion | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/size) */ + size: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/snapToLines) */ + snapToLines: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/text) */ + text: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/vertical) */ + vertical: DirectionSetting; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/getCueAsHTML) */ + getCueAsHTML(): DocumentFragment; + addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var VTTCue: { + prototype: VTTCue; + new(startTime: number, endTime: number, text: string): VTTCue; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion) */ +interface VTTRegion { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/id) */ + id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/lines) */ + lines: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorX) */ + regionAnchorX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorY) */ + regionAnchorY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/scroll) */ + scroll: ScrollSetting; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorX) */ + viewportAnchorX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorY) */ + viewportAnchorY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/width) */ + width: number; +} + +declare var VTTRegion: { + prototype: VTTRegion; + new(): VTTRegion; +}; + +/** + * The validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element's value fails to validate, if it's not valid. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState) + */ +interface ValidityState { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/badInput) */ + readonly badInput: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/customError) */ + readonly customError: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/patternMismatch) */ + readonly patternMismatch: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeOverflow) */ + readonly rangeOverflow: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeUnderflow) */ + readonly rangeUnderflow: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/stepMismatch) */ + readonly stepMismatch: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/tooLong) */ + readonly tooLong: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/tooShort) */ + readonly tooShort: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/typeMismatch) */ + readonly typeMismatch: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valid) */ + readonly valid: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valueMissing) */ + readonly valueMissing: boolean; +} + +declare var ValidityState: { + prototype: ValidityState; + new(): ValidityState; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace) */ +interface VideoColorSpace { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/fullRange) */ + readonly fullRange: boolean | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/matrix) */ + readonly matrix: VideoMatrixCoefficients | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/primaries) */ + readonly primaries: VideoColorPrimaries | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/transfer) */ + readonly transfer: VideoTransferCharacteristics | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/toJSON) */ + toJSON(): VideoColorSpaceInit; +} + +declare var VideoColorSpace: { + prototype: VideoColorSpace; + new(init?: VideoColorSpaceInit): VideoColorSpace; +}; + +interface VideoDecoderEventMap { + "dequeue": Event; +} + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder) + */ +interface VideoDecoder extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize) */ + readonly decodeQueueSize: number; + ondequeue: ((this: VideoDecoder, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state) */ + readonly state: CodecState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/configure) */ + configure(config: VideoDecoderConfig): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decode) */ + decode(chunk: EncodedVideoChunk): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/flush) */ + flush(): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/reset) */ + reset(): void; + addEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var VideoDecoder: { + prototype: VideoDecoder; + new(init: VideoDecoderInit): VideoDecoder; + isConfigSupported(config: VideoDecoderConfig): Promise<VideoDecoderSupport>; +}; + +interface VideoEncoderEventMap { + "dequeue": Event; +} + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder) + */ +interface VideoEncoder extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize) */ + readonly encodeQueueSize: number; + ondequeue: ((this: VideoEncoder, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state) */ + readonly state: CodecState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/configure) */ + configure(config: VideoEncoderConfig): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode) */ + encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void; + flush(): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset) */ + reset(): void; + addEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var VideoEncoder: { + prototype: VideoEncoder; + new(init: VideoEncoderInit): VideoEncoder; + isConfigSupported(config: VideoEncoderConfig): Promise<VideoEncoderSupport>; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame) */ +interface VideoFrame { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedHeight) */ + readonly codedHeight: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedRect) */ + readonly codedRect: DOMRectReadOnly | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedWidth) */ + readonly codedWidth: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/colorSpace) */ + readonly colorSpace: VideoColorSpace; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayHeight) */ + readonly displayHeight: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayWidth) */ + readonly displayWidth: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/duration) */ + readonly duration: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/format) */ + readonly format: VideoPixelFormat | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/timestamp) */ + readonly timestamp: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/visibleRect) */ + readonly visibleRect: DOMRectReadOnly | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/allocationSize) */ + allocationSize(options?: VideoFrameCopyToOptions): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/clone) */ + clone(): VideoFrame; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) */ + close(): void; + copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>; +} + +declare var VideoFrame: { + prototype: VideoFrame; + new(image: CanvasImageSource, init?: VideoFrameInit): VideoFrame; + new(data: AllowSharedBufferSource, init: VideoFrameBufferInit): VideoFrame; +}; + +/** + * Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality) + */ +interface VideoPlaybackQuality { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/corruptedVideoFrames) + */ + readonly corruptedVideoFrames: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/creationTime) */ + readonly creationTime: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/droppedVideoFrames) */ + readonly droppedVideoFrames: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/totalVideoFrames) */ + readonly totalVideoFrames: number; +} + +declare var VideoPlaybackQuality: { + prototype: VideoPlaybackQuality; + new(): VideoPlaybackQuality; +}; + +interface VisualViewportEventMap { + "resize": Event; + "scroll": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport) */ +interface VisualViewport extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/height) */ + readonly height: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/offsetLeft) */ + readonly offsetLeft: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/offsetTop) */ + readonly offsetTop: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/resize_event) */ + onresize: ((this: VisualViewport, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scroll_event) */ + onscroll: ((this: VisualViewport, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/pageLeft) */ + readonly pageLeft: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/pageTop) */ + readonly pageTop: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scale) */ + readonly scale: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/width) */ + readonly width: number; + addEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var VisualViewport: { + prototype: VisualViewport; + new(): VisualViewport; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_color_buffer_float) */ +interface WEBGL_color_buffer_float { + readonly RGBA32F_EXT: 0x8814; + readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211; + readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc) */ +interface WEBGL_compressed_texture_astc { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles) */ + getSupportedProfiles(): string[]; + readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0; + readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1; + readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2; + readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3; + readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4; + readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5; + readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6; + readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7; + readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8; + readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9; + readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA; + readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB; + readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC; + readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc) */ +interface WEBGL_compressed_texture_etc { + readonly COMPRESSED_R11_EAC: 0x9270; + readonly COMPRESSED_SIGNED_R11_EAC: 0x9271; + readonly COMPRESSED_RG11_EAC: 0x9272; + readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273; + readonly COMPRESSED_RGB8_ETC2: 0x9274; + readonly COMPRESSED_SRGB8_ETC2: 0x9275; + readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276; + readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277; + readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278; + readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc1) */ +interface WEBGL_compressed_texture_etc1 { + readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_pvrtc) */ +interface WEBGL_compressed_texture_pvrtc { + readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: 0x8C00; + readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: 0x8C01; + readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: 0x8C02; + readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: 0x8C03; +} + +/** + * The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc) + */ +interface WEBGL_compressed_texture_s3tc { + readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0; + readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1; + readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2; + readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb) */ +interface WEBGL_compressed_texture_s3tc_srgb { + readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C; + readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D; + readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E; + readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F; +} + +/** + * The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_renderer_info) + */ +interface WEBGL_debug_renderer_info { + readonly UNMASKED_VENDOR_WEBGL: 0x9245; + readonly UNMASKED_RENDERER_WEBGL: 0x9246; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders) */ +interface WEBGL_debug_shaders { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource) */ + getTranslatedShaderSource(shader: WebGLShader): string; +} + +/** + * The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_depth_texture) + */ +interface WEBGL_depth_texture { + readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers) */ +interface WEBGL_draw_buffers { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */ + drawBuffersWEBGL(buffers: GLenum[]): void; + readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0; + readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1; + readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2; + readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3; + readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4; + readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5; + readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6; + readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7; + readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8; + readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9; + readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA; + readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB; + readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC; + readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED; + readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE; + readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF; + readonly DRAW_BUFFER0_WEBGL: 0x8825; + readonly DRAW_BUFFER1_WEBGL: 0x8826; + readonly DRAW_BUFFER2_WEBGL: 0x8827; + readonly DRAW_BUFFER3_WEBGL: 0x8828; + readonly DRAW_BUFFER4_WEBGL: 0x8829; + readonly DRAW_BUFFER5_WEBGL: 0x882A; + readonly DRAW_BUFFER6_WEBGL: 0x882B; + readonly DRAW_BUFFER7_WEBGL: 0x882C; + readonly DRAW_BUFFER8_WEBGL: 0x882D; + readonly DRAW_BUFFER9_WEBGL: 0x882E; + readonly DRAW_BUFFER10_WEBGL: 0x882F; + readonly DRAW_BUFFER11_WEBGL: 0x8830; + readonly DRAW_BUFFER12_WEBGL: 0x8831; + readonly DRAW_BUFFER13_WEBGL: 0x8832; + readonly DRAW_BUFFER14_WEBGL: 0x8833; + readonly DRAW_BUFFER15_WEBGL: 0x8834; + readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF; + readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context) */ +interface WEBGL_lose_context { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */ + loseContext(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */ + restoreContext(): void; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw) */ +interface WEBGL_multi_draw { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */ + multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */ + multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, drawcount: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */ + multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */ + multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; +} + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLock) + */ +interface WakeLock { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLock/request) */ + request(type?: WakeLockType): Promise<WakeLockSentinel>; +} + +declare var WakeLock: { + prototype: WakeLock; + new(): WakeLock; +}; + +interface WakeLockSentinelEventMap { + "release": Event; +} + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel) + */ +interface WakeLockSentinel extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/release_event) */ + onrelease: ((this: WakeLockSentinel, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/released) */ + readonly released: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/type) */ + readonly type: WakeLockType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/release) */ + release(): Promise<void>; + addEventListener<K extends keyof WakeLockSentinelEventMap>(type: K, listener: (this: WakeLockSentinel, ev: WakeLockSentinelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof WakeLockSentinelEventMap>(type: K, listener: (this: WakeLockSentinel, ev: WakeLockSentinelEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var WakeLockSentinel: { + prototype: WakeLockSentinel; + new(): WakeLockSentinel; +}; + +/** + * A WaveShaperNode always has exactly one input and one output. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode) + */ +interface WaveShaperNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode/curve) */ + curve: Float32Array | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode/oversample) */ + oversample: OverSampleType; +} + +declare var WaveShaperNode: { + prototype: WaveShaperNode; + new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext) */ +interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase { +} + +declare var WebGL2RenderingContext: { + prototype: WebGL2RenderingContext; + new(): WebGL2RenderingContext; + readonly READ_BUFFER: 0x0C02; + readonly UNPACK_ROW_LENGTH: 0x0CF2; + readonly UNPACK_SKIP_ROWS: 0x0CF3; + readonly UNPACK_SKIP_PIXELS: 0x0CF4; + readonly PACK_ROW_LENGTH: 0x0D02; + readonly PACK_SKIP_ROWS: 0x0D03; + readonly PACK_SKIP_PIXELS: 0x0D04; + readonly COLOR: 0x1800; + readonly DEPTH: 0x1801; + readonly STENCIL: 0x1802; + readonly RED: 0x1903; + readonly RGB8: 0x8051; + readonly RGB10_A2: 0x8059; + readonly TEXTURE_BINDING_3D: 0x806A; + readonly UNPACK_SKIP_IMAGES: 0x806D; + readonly UNPACK_IMAGE_HEIGHT: 0x806E; + readonly TEXTURE_3D: 0x806F; + readonly TEXTURE_WRAP_R: 0x8072; + readonly MAX_3D_TEXTURE_SIZE: 0x8073; + readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368; + readonly MAX_ELEMENTS_VERTICES: 0x80E8; + readonly MAX_ELEMENTS_INDICES: 0x80E9; + readonly TEXTURE_MIN_LOD: 0x813A; + readonly TEXTURE_MAX_LOD: 0x813B; + readonly TEXTURE_BASE_LEVEL: 0x813C; + readonly TEXTURE_MAX_LEVEL: 0x813D; + readonly MIN: 0x8007; + readonly MAX: 0x8008; + readonly DEPTH_COMPONENT24: 0x81A6; + readonly MAX_TEXTURE_LOD_BIAS: 0x84FD; + readonly TEXTURE_COMPARE_MODE: 0x884C; + readonly TEXTURE_COMPARE_FUNC: 0x884D; + readonly CURRENT_QUERY: 0x8865; + readonly QUERY_RESULT: 0x8866; + readonly QUERY_RESULT_AVAILABLE: 0x8867; + readonly STREAM_READ: 0x88E1; + readonly STREAM_COPY: 0x88E2; + readonly STATIC_READ: 0x88E5; + readonly STATIC_COPY: 0x88E6; + readonly DYNAMIC_READ: 0x88E9; + readonly DYNAMIC_COPY: 0x88EA; + readonly MAX_DRAW_BUFFERS: 0x8824; + readonly DRAW_BUFFER0: 0x8825; + readonly DRAW_BUFFER1: 0x8826; + readonly DRAW_BUFFER2: 0x8827; + readonly DRAW_BUFFER3: 0x8828; + readonly DRAW_BUFFER4: 0x8829; + readonly DRAW_BUFFER5: 0x882A; + readonly DRAW_BUFFER6: 0x882B; + readonly DRAW_BUFFER7: 0x882C; + readonly DRAW_BUFFER8: 0x882D; + readonly DRAW_BUFFER9: 0x882E; + readonly DRAW_BUFFER10: 0x882F; + readonly DRAW_BUFFER11: 0x8830; + readonly DRAW_BUFFER12: 0x8831; + readonly DRAW_BUFFER13: 0x8832; + readonly DRAW_BUFFER14: 0x8833; + readonly DRAW_BUFFER15: 0x8834; + readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49; + readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A; + readonly SAMPLER_3D: 0x8B5F; + readonly SAMPLER_2D_SHADOW: 0x8B62; + readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B; + readonly PIXEL_PACK_BUFFER: 0x88EB; + readonly PIXEL_UNPACK_BUFFER: 0x88EC; + readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED; + readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF; + readonly FLOAT_MAT2x3: 0x8B65; + readonly FLOAT_MAT2x4: 0x8B66; + readonly FLOAT_MAT3x2: 0x8B67; + readonly FLOAT_MAT3x4: 0x8B68; + readonly FLOAT_MAT4x2: 0x8B69; + readonly FLOAT_MAT4x3: 0x8B6A; + readonly SRGB: 0x8C40; + readonly SRGB8: 0x8C41; + readonly SRGB8_ALPHA8: 0x8C43; + readonly COMPARE_REF_TO_TEXTURE: 0x884E; + readonly RGBA32F: 0x8814; + readonly RGB32F: 0x8815; + readonly RGBA16F: 0x881A; + readonly RGB16F: 0x881B; + readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD; + readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF; + readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904; + readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905; + readonly MAX_VARYING_COMPONENTS: 0x8B4B; + readonly TEXTURE_2D_ARRAY: 0x8C1A; + readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D; + readonly R11F_G11F_B10F: 0x8C3A; + readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B; + readonly RGB9_E5: 0x8C3D; + readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E; + readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F; + readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80; + readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83; + readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84; + readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85; + readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88; + readonly RASTERIZER_DISCARD: 0x8C89; + readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A; + readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B; + readonly INTERLEAVED_ATTRIBS: 0x8C8C; + readonly SEPARATE_ATTRIBS: 0x8C8D; + readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E; + readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F; + readonly RGBA32UI: 0x8D70; + readonly RGB32UI: 0x8D71; + readonly RGBA16UI: 0x8D76; + readonly RGB16UI: 0x8D77; + readonly RGBA8UI: 0x8D7C; + readonly RGB8UI: 0x8D7D; + readonly RGBA32I: 0x8D82; + readonly RGB32I: 0x8D83; + readonly RGBA16I: 0x8D88; + readonly RGB16I: 0x8D89; + readonly RGBA8I: 0x8D8E; + readonly RGB8I: 0x8D8F; + readonly RED_INTEGER: 0x8D94; + readonly RGB_INTEGER: 0x8D98; + readonly RGBA_INTEGER: 0x8D99; + readonly SAMPLER_2D_ARRAY: 0x8DC1; + readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4; + readonly SAMPLER_CUBE_SHADOW: 0x8DC5; + readonly UNSIGNED_INT_VEC2: 0x8DC6; + readonly UNSIGNED_INT_VEC3: 0x8DC7; + readonly UNSIGNED_INT_VEC4: 0x8DC8; + readonly INT_SAMPLER_2D: 0x8DCA; + readonly INT_SAMPLER_3D: 0x8DCB; + readonly INT_SAMPLER_CUBE: 0x8DCC; + readonly INT_SAMPLER_2D_ARRAY: 0x8DCF; + readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2; + readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3; + readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4; + readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7; + readonly DEPTH_COMPONENT32F: 0x8CAC; + readonly DEPTH32F_STENCIL8: 0x8CAD; + readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD; + readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210; + readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211; + readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212; + readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213; + readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214; + readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215; + readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216; + readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217; + readonly FRAMEBUFFER_DEFAULT: 0x8218; + readonly UNSIGNED_INT_24_8: 0x84FA; + readonly DEPTH24_STENCIL8: 0x88F0; + readonly UNSIGNED_NORMALIZED: 0x8C17; + readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6; + readonly READ_FRAMEBUFFER: 0x8CA8; + readonly DRAW_FRAMEBUFFER: 0x8CA9; + readonly READ_FRAMEBUFFER_BINDING: 0x8CAA; + readonly RENDERBUFFER_SAMPLES: 0x8CAB; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4; + readonly MAX_COLOR_ATTACHMENTS: 0x8CDF; + readonly COLOR_ATTACHMENT1: 0x8CE1; + readonly COLOR_ATTACHMENT2: 0x8CE2; + readonly COLOR_ATTACHMENT3: 0x8CE3; + readonly COLOR_ATTACHMENT4: 0x8CE4; + readonly COLOR_ATTACHMENT5: 0x8CE5; + readonly COLOR_ATTACHMENT6: 0x8CE6; + readonly COLOR_ATTACHMENT7: 0x8CE7; + readonly COLOR_ATTACHMENT8: 0x8CE8; + readonly COLOR_ATTACHMENT9: 0x8CE9; + readonly COLOR_ATTACHMENT10: 0x8CEA; + readonly COLOR_ATTACHMENT11: 0x8CEB; + readonly COLOR_ATTACHMENT12: 0x8CEC; + readonly COLOR_ATTACHMENT13: 0x8CED; + readonly COLOR_ATTACHMENT14: 0x8CEE; + readonly COLOR_ATTACHMENT15: 0x8CEF; + readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56; + readonly MAX_SAMPLES: 0x8D57; + readonly HALF_FLOAT: 0x140B; + readonly RG: 0x8227; + readonly RG_INTEGER: 0x8228; + readonly R8: 0x8229; + readonly RG8: 0x822B; + readonly R16F: 0x822D; + readonly R32F: 0x822E; + readonly RG16F: 0x822F; + readonly RG32F: 0x8230; + readonly R8I: 0x8231; + readonly R8UI: 0x8232; + readonly R16I: 0x8233; + readonly R16UI: 0x8234; + readonly R32I: 0x8235; + readonly R32UI: 0x8236; + readonly RG8I: 0x8237; + readonly RG8UI: 0x8238; + readonly RG16I: 0x8239; + readonly RG16UI: 0x823A; + readonly RG32I: 0x823B; + readonly RG32UI: 0x823C; + readonly VERTEX_ARRAY_BINDING: 0x85B5; + readonly R8_SNORM: 0x8F94; + readonly RG8_SNORM: 0x8F95; + readonly RGB8_SNORM: 0x8F96; + readonly RGBA8_SNORM: 0x8F97; + readonly SIGNED_NORMALIZED: 0x8F9C; + readonly COPY_READ_BUFFER: 0x8F36; + readonly COPY_WRITE_BUFFER: 0x8F37; + readonly COPY_READ_BUFFER_BINDING: 0x8F36; + readonly COPY_WRITE_BUFFER_BINDING: 0x8F37; + readonly UNIFORM_BUFFER: 0x8A11; + readonly UNIFORM_BUFFER_BINDING: 0x8A28; + readonly UNIFORM_BUFFER_START: 0x8A29; + readonly UNIFORM_BUFFER_SIZE: 0x8A2A; + readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B; + readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D; + readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E; + readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F; + readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30; + readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31; + readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33; + readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34; + readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36; + readonly UNIFORM_TYPE: 0x8A37; + readonly UNIFORM_SIZE: 0x8A38; + readonly UNIFORM_BLOCK_INDEX: 0x8A3A; + readonly UNIFORM_OFFSET: 0x8A3B; + readonly UNIFORM_ARRAY_STRIDE: 0x8A3C; + readonly UNIFORM_MATRIX_STRIDE: 0x8A3D; + readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E; + readonly UNIFORM_BLOCK_BINDING: 0x8A3F; + readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40; + readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42; + readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43; + readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44; + readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46; + readonly INVALID_INDEX: 0xFFFFFFFF; + readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122; + readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125; + readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111; + readonly OBJECT_TYPE: 0x9112; + readonly SYNC_CONDITION: 0x9113; + readonly SYNC_STATUS: 0x9114; + readonly SYNC_FLAGS: 0x9115; + readonly SYNC_FENCE: 0x9116; + readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117; + readonly UNSIGNALED: 0x9118; + readonly SIGNALED: 0x9119; + readonly ALREADY_SIGNALED: 0x911A; + readonly TIMEOUT_EXPIRED: 0x911B; + readonly CONDITION_SATISFIED: 0x911C; + readonly WAIT_FAILED: 0x911D; + readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001; + readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE; + readonly ANY_SAMPLES_PASSED: 0x8C2F; + readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A; + readonly SAMPLER_BINDING: 0x8919; + readonly RGB10_A2UI: 0x906F; + readonly INT_2_10_10_10_REV: 0x8D9F; + readonly TRANSFORM_FEEDBACK: 0x8E22; + readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23; + readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24; + readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25; + readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F; + readonly MAX_ELEMENT_INDEX: 0x8D6B; + readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF; + readonly TIMEOUT_IGNORED: -1; + readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247; + readonly DEPTH_BUFFER_BIT: 0x00000100; + readonly STENCIL_BUFFER_BIT: 0x00000400; + readonly COLOR_BUFFER_BIT: 0x00004000; + readonly POINTS: 0x0000; + readonly LINES: 0x0001; + readonly LINE_LOOP: 0x0002; + readonly LINE_STRIP: 0x0003; + readonly TRIANGLES: 0x0004; + readonly TRIANGLE_STRIP: 0x0005; + readonly TRIANGLE_FAN: 0x0006; + readonly ZERO: 0; + readonly ONE: 1; + readonly SRC_COLOR: 0x0300; + readonly ONE_MINUS_SRC_COLOR: 0x0301; + readonly SRC_ALPHA: 0x0302; + readonly ONE_MINUS_SRC_ALPHA: 0x0303; + readonly DST_ALPHA: 0x0304; + readonly ONE_MINUS_DST_ALPHA: 0x0305; + readonly DST_COLOR: 0x0306; + readonly ONE_MINUS_DST_COLOR: 0x0307; + readonly SRC_ALPHA_SATURATE: 0x0308; + readonly FUNC_ADD: 0x8006; + readonly BLEND_EQUATION: 0x8009; + readonly BLEND_EQUATION_RGB: 0x8009; + readonly BLEND_EQUATION_ALPHA: 0x883D; + readonly FUNC_SUBTRACT: 0x800A; + readonly FUNC_REVERSE_SUBTRACT: 0x800B; + readonly BLEND_DST_RGB: 0x80C8; + readonly BLEND_SRC_RGB: 0x80C9; + readonly BLEND_DST_ALPHA: 0x80CA; + readonly BLEND_SRC_ALPHA: 0x80CB; + readonly CONSTANT_COLOR: 0x8001; + readonly ONE_MINUS_CONSTANT_COLOR: 0x8002; + readonly CONSTANT_ALPHA: 0x8003; + readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004; + readonly BLEND_COLOR: 0x8005; + readonly ARRAY_BUFFER: 0x8892; + readonly ELEMENT_ARRAY_BUFFER: 0x8893; + readonly ARRAY_BUFFER_BINDING: 0x8894; + readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895; + readonly STREAM_DRAW: 0x88E0; + readonly STATIC_DRAW: 0x88E4; + readonly DYNAMIC_DRAW: 0x88E8; + readonly BUFFER_SIZE: 0x8764; + readonly BUFFER_USAGE: 0x8765; + readonly CURRENT_VERTEX_ATTRIB: 0x8626; + readonly FRONT: 0x0404; + readonly BACK: 0x0405; + readonly FRONT_AND_BACK: 0x0408; + readonly CULL_FACE: 0x0B44; + readonly BLEND: 0x0BE2; + readonly DITHER: 0x0BD0; + readonly STENCIL_TEST: 0x0B90; + readonly DEPTH_TEST: 0x0B71; + readonly SCISSOR_TEST: 0x0C11; + readonly POLYGON_OFFSET_FILL: 0x8037; + readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E; + readonly SAMPLE_COVERAGE: 0x80A0; + readonly NO_ERROR: 0; + readonly INVALID_ENUM: 0x0500; + readonly INVALID_VALUE: 0x0501; + readonly INVALID_OPERATION: 0x0502; + readonly OUT_OF_MEMORY: 0x0505; + readonly CW: 0x0900; + readonly CCW: 0x0901; + readonly LINE_WIDTH: 0x0B21; + readonly ALIASED_POINT_SIZE_RANGE: 0x846D; + readonly ALIASED_LINE_WIDTH_RANGE: 0x846E; + readonly CULL_FACE_MODE: 0x0B45; + readonly FRONT_FACE: 0x0B46; + readonly DEPTH_RANGE: 0x0B70; + readonly DEPTH_WRITEMASK: 0x0B72; + readonly DEPTH_CLEAR_VALUE: 0x0B73; + readonly DEPTH_FUNC: 0x0B74; + readonly STENCIL_CLEAR_VALUE: 0x0B91; + readonly STENCIL_FUNC: 0x0B92; + readonly STENCIL_FAIL: 0x0B94; + readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95; + readonly STENCIL_PASS_DEPTH_PASS: 0x0B96; + readonly STENCIL_REF: 0x0B97; + readonly STENCIL_VALUE_MASK: 0x0B93; + readonly STENCIL_WRITEMASK: 0x0B98; + readonly STENCIL_BACK_FUNC: 0x8800; + readonly STENCIL_BACK_FAIL: 0x8801; + readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802; + readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803; + readonly STENCIL_BACK_REF: 0x8CA3; + readonly STENCIL_BACK_VALUE_MASK: 0x8CA4; + readonly STENCIL_BACK_WRITEMASK: 0x8CA5; + readonly VIEWPORT: 0x0BA2; + readonly SCISSOR_BOX: 0x0C10; + readonly COLOR_CLEAR_VALUE: 0x0C22; + readonly COLOR_WRITEMASK: 0x0C23; + readonly UNPACK_ALIGNMENT: 0x0CF5; + readonly PACK_ALIGNMENT: 0x0D05; + readonly MAX_TEXTURE_SIZE: 0x0D33; + readonly MAX_VIEWPORT_DIMS: 0x0D3A; + readonly SUBPIXEL_BITS: 0x0D50; + readonly RED_BITS: 0x0D52; + readonly GREEN_BITS: 0x0D53; + readonly BLUE_BITS: 0x0D54; + readonly ALPHA_BITS: 0x0D55; + readonly DEPTH_BITS: 0x0D56; + readonly STENCIL_BITS: 0x0D57; + readonly POLYGON_OFFSET_UNITS: 0x2A00; + readonly POLYGON_OFFSET_FACTOR: 0x8038; + readonly TEXTURE_BINDING_2D: 0x8069; + readonly SAMPLE_BUFFERS: 0x80A8; + readonly SAMPLES: 0x80A9; + readonly SAMPLE_COVERAGE_VALUE: 0x80AA; + readonly SAMPLE_COVERAGE_INVERT: 0x80AB; + readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3; + readonly DONT_CARE: 0x1100; + readonly FASTEST: 0x1101; + readonly NICEST: 0x1102; + readonly GENERATE_MIPMAP_HINT: 0x8192; + readonly BYTE: 0x1400; + readonly UNSIGNED_BYTE: 0x1401; + readonly SHORT: 0x1402; + readonly UNSIGNED_SHORT: 0x1403; + readonly INT: 0x1404; + readonly UNSIGNED_INT: 0x1405; + readonly FLOAT: 0x1406; + readonly DEPTH_COMPONENT: 0x1902; + readonly ALPHA: 0x1906; + readonly RGB: 0x1907; + readonly RGBA: 0x1908; + readonly LUMINANCE: 0x1909; + readonly LUMINANCE_ALPHA: 0x190A; + readonly UNSIGNED_SHORT_4_4_4_4: 0x8033; + readonly UNSIGNED_SHORT_5_5_5_1: 0x8034; + readonly UNSIGNED_SHORT_5_6_5: 0x8363; + readonly FRAGMENT_SHADER: 0x8B30; + readonly VERTEX_SHADER: 0x8B31; + readonly MAX_VERTEX_ATTRIBS: 0x8869; + readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB; + readonly MAX_VARYING_VECTORS: 0x8DFC; + readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D; + readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C; + readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872; + readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD; + readonly SHADER_TYPE: 0x8B4F; + readonly DELETE_STATUS: 0x8B80; + readonly LINK_STATUS: 0x8B82; + readonly VALIDATE_STATUS: 0x8B83; + readonly ATTACHED_SHADERS: 0x8B85; + readonly ACTIVE_UNIFORMS: 0x8B86; + readonly ACTIVE_ATTRIBUTES: 0x8B89; + readonly SHADING_LANGUAGE_VERSION: 0x8B8C; + readonly CURRENT_PROGRAM: 0x8B8D; + readonly NEVER: 0x0200; + readonly LESS: 0x0201; + readonly EQUAL: 0x0202; + readonly LEQUAL: 0x0203; + readonly GREATER: 0x0204; + readonly NOTEQUAL: 0x0205; + readonly GEQUAL: 0x0206; + readonly ALWAYS: 0x0207; + readonly KEEP: 0x1E00; + readonly REPLACE: 0x1E01; + readonly INCR: 0x1E02; + readonly DECR: 0x1E03; + readonly INVERT: 0x150A; + readonly INCR_WRAP: 0x8507; + readonly DECR_WRAP: 0x8508; + readonly VENDOR: 0x1F00; + readonly RENDERER: 0x1F01; + readonly VERSION: 0x1F02; + readonly NEAREST: 0x2600; + readonly LINEAR: 0x2601; + readonly NEAREST_MIPMAP_NEAREST: 0x2700; + readonly LINEAR_MIPMAP_NEAREST: 0x2701; + readonly NEAREST_MIPMAP_LINEAR: 0x2702; + readonly LINEAR_MIPMAP_LINEAR: 0x2703; + readonly TEXTURE_MAG_FILTER: 0x2800; + readonly TEXTURE_MIN_FILTER: 0x2801; + readonly TEXTURE_WRAP_S: 0x2802; + readonly TEXTURE_WRAP_T: 0x2803; + readonly TEXTURE_2D: 0x0DE1; + readonly TEXTURE: 0x1702; + readonly TEXTURE_CUBE_MAP: 0x8513; + readonly TEXTURE_BINDING_CUBE_MAP: 0x8514; + readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515; + readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516; + readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518; + readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A; + readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C; + readonly TEXTURE0: 0x84C0; + readonly TEXTURE1: 0x84C1; + readonly TEXTURE2: 0x84C2; + readonly TEXTURE3: 0x84C3; + readonly TEXTURE4: 0x84C4; + readonly TEXTURE5: 0x84C5; + readonly TEXTURE6: 0x84C6; + readonly TEXTURE7: 0x84C7; + readonly TEXTURE8: 0x84C8; + readonly TEXTURE9: 0x84C9; + readonly TEXTURE10: 0x84CA; + readonly TEXTURE11: 0x84CB; + readonly TEXTURE12: 0x84CC; + readonly TEXTURE13: 0x84CD; + readonly TEXTURE14: 0x84CE; + readonly TEXTURE15: 0x84CF; + readonly TEXTURE16: 0x84D0; + readonly TEXTURE17: 0x84D1; + readonly TEXTURE18: 0x84D2; + readonly TEXTURE19: 0x84D3; + readonly TEXTURE20: 0x84D4; + readonly TEXTURE21: 0x84D5; + readonly TEXTURE22: 0x84D6; + readonly TEXTURE23: 0x84D7; + readonly TEXTURE24: 0x84D8; + readonly TEXTURE25: 0x84D9; + readonly TEXTURE26: 0x84DA; + readonly TEXTURE27: 0x84DB; + readonly TEXTURE28: 0x84DC; + readonly TEXTURE29: 0x84DD; + readonly TEXTURE30: 0x84DE; + readonly TEXTURE31: 0x84DF; + readonly ACTIVE_TEXTURE: 0x84E0; + readonly REPEAT: 0x2901; + readonly CLAMP_TO_EDGE: 0x812F; + readonly MIRRORED_REPEAT: 0x8370; + readonly FLOAT_VEC2: 0x8B50; + readonly FLOAT_VEC3: 0x8B51; + readonly FLOAT_VEC4: 0x8B52; + readonly INT_VEC2: 0x8B53; + readonly INT_VEC3: 0x8B54; + readonly INT_VEC4: 0x8B55; + readonly BOOL: 0x8B56; + readonly BOOL_VEC2: 0x8B57; + readonly BOOL_VEC3: 0x8B58; + readonly BOOL_VEC4: 0x8B59; + readonly FLOAT_MAT2: 0x8B5A; + readonly FLOAT_MAT3: 0x8B5B; + readonly FLOAT_MAT4: 0x8B5C; + readonly SAMPLER_2D: 0x8B5E; + readonly SAMPLER_CUBE: 0x8B60; + readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622; + readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623; + readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624; + readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625; + readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A; + readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645; + readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F; + readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A; + readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B; + readonly COMPILE_STATUS: 0x8B81; + readonly LOW_FLOAT: 0x8DF0; + readonly MEDIUM_FLOAT: 0x8DF1; + readonly HIGH_FLOAT: 0x8DF2; + readonly LOW_INT: 0x8DF3; + readonly MEDIUM_INT: 0x8DF4; + readonly HIGH_INT: 0x8DF5; + readonly FRAMEBUFFER: 0x8D40; + readonly RENDERBUFFER: 0x8D41; + readonly RGBA4: 0x8056; + readonly RGB5_A1: 0x8057; + readonly RGBA8: 0x8058; + readonly RGB565: 0x8D62; + readonly DEPTH_COMPONENT16: 0x81A5; + readonly STENCIL_INDEX8: 0x8D48; + readonly DEPTH_STENCIL: 0x84F9; + readonly RENDERBUFFER_WIDTH: 0x8D42; + readonly RENDERBUFFER_HEIGHT: 0x8D43; + readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44; + readonly RENDERBUFFER_RED_SIZE: 0x8D50; + readonly RENDERBUFFER_GREEN_SIZE: 0x8D51; + readonly RENDERBUFFER_BLUE_SIZE: 0x8D52; + readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53; + readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54; + readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3; + readonly COLOR_ATTACHMENT0: 0x8CE0; + readonly DEPTH_ATTACHMENT: 0x8D00; + readonly STENCIL_ATTACHMENT: 0x8D20; + readonly DEPTH_STENCIL_ATTACHMENT: 0x821A; + readonly NONE: 0; + readonly FRAMEBUFFER_COMPLETE: 0x8CD5; + readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6; + readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7; + readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9; + readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD; + readonly FRAMEBUFFER_BINDING: 0x8CA6; + readonly RENDERBUFFER_BINDING: 0x8CA7; + readonly MAX_RENDERBUFFER_SIZE: 0x84E8; + readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506; + readonly UNPACK_FLIP_Y_WEBGL: 0x9240; + readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241; + readonly CONTEXT_LOST_WEBGL: 0x9242; + readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243; + readonly BROWSER_DEFAULT_WEBGL: 0x9244; +}; + +interface WebGL2RenderingContextBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginQuery) */ + beginQuery(target: GLenum, query: WebGLQuery): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginTransformFeedback) */ + beginTransformFeedback(primitiveMode: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferBase) */ + bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferRange) */ + bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindSampler) */ + bindSampler(unit: GLuint, sampler: WebGLSampler | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindTransformFeedback) */ + bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindVertexArray) */ + bindVertexArray(array: WebGLVertexArrayObject | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/blitFramebuffer) */ + blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ + clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ + clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ + clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ + clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */ + clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) */ + compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void; + compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) */ + compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void; + compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyBufferSubData) */ + copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D) */ + copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createQuery) */ + createQuery(): WebGLQuery | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) */ + createSampler(): WebGLSampler | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) */ + createTransformFeedback(): WebGLTransformFeedback | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) */ + createVertexArray(): WebGLVertexArrayObject | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteQuery) */ + deleteQuery(query: WebGLQuery | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSampler) */ + deleteSampler(sampler: WebGLSampler | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSync) */ + deleteSync(sync: WebGLSync | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteTransformFeedback) */ + deleteTransformFeedback(tf: WebGLTransformFeedback | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteVertexArray) */ + deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawArraysInstanced) */ + drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */ + drawBuffers(buffers: GLenum[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced) */ + drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawRangeElements) */ + drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endQuery) */ + endQuery(target: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endTransformFeedback) */ + endTransformFeedback(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/fenceSync) */ + fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/framebufferTextureLayer) */ + framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockName) */ + getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockParameter) */ + getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */ + getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getBufferSubData) */ + getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: number, length?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getFragDataLocation) */ + getFragDataLocation(program: WebGLProgram, name: string): GLint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getIndexedParameter) */ + getIndexedParameter(target: GLenum, index: GLuint): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getInternalformatParameter) */ + getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQuery) */ + getQuery(target: GLenum, pname: GLenum): WebGLQuery | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQueryParameter) */ + getQueryParameter(query: WebGLQuery, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSamplerParameter) */ + getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSyncParameter) */ + getSyncParameter(sync: WebGLSync, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getTransformFeedbackVarying) */ + getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformBlockIndex) */ + getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */ + getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */ + invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */ + invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isQuery) */ + isQuery(query: WebGLQuery | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSampler) */ + isSampler(sampler: WebGLSampler | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSync) */ + isSync(sync: WebGLSync | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isTransformFeedback) */ + isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isVertexArray) */ + isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/pauseTransformFeedback) */ + pauseTransformFeedback(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/readBuffer) */ + readBuffer(src: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/renderbufferStorageMultisample) */ + renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/resumeTransformFeedback) */ + resumeTransformFeedback(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */ + samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */ + samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texImage3D) */ + texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void; + texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; + texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void; + texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage2D) */ + texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage3D) */ + texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texSubImage3D) */ + texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void; + texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void; + texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */ + transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding) */ + uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor) */ + vertexAttribDivisor(index: GLuint, divisor: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ + vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ + vertexAttribI4iv(index: GLuint, values: Int32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ + vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ + vertexAttribI4uiv(index: GLuint, values: Uint32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer) */ + vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/waitSync) */ + waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void; + readonly READ_BUFFER: 0x0C02; + readonly UNPACK_ROW_LENGTH: 0x0CF2; + readonly UNPACK_SKIP_ROWS: 0x0CF3; + readonly UNPACK_SKIP_PIXELS: 0x0CF4; + readonly PACK_ROW_LENGTH: 0x0D02; + readonly PACK_SKIP_ROWS: 0x0D03; + readonly PACK_SKIP_PIXELS: 0x0D04; + readonly COLOR: 0x1800; + readonly DEPTH: 0x1801; + readonly STENCIL: 0x1802; + readonly RED: 0x1903; + readonly RGB8: 0x8051; + readonly RGB10_A2: 0x8059; + readonly TEXTURE_BINDING_3D: 0x806A; + readonly UNPACK_SKIP_IMAGES: 0x806D; + readonly UNPACK_IMAGE_HEIGHT: 0x806E; + readonly TEXTURE_3D: 0x806F; + readonly TEXTURE_WRAP_R: 0x8072; + readonly MAX_3D_TEXTURE_SIZE: 0x8073; + readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368; + readonly MAX_ELEMENTS_VERTICES: 0x80E8; + readonly MAX_ELEMENTS_INDICES: 0x80E9; + readonly TEXTURE_MIN_LOD: 0x813A; + readonly TEXTURE_MAX_LOD: 0x813B; + readonly TEXTURE_BASE_LEVEL: 0x813C; + readonly TEXTURE_MAX_LEVEL: 0x813D; + readonly MIN: 0x8007; + readonly MAX: 0x8008; + readonly DEPTH_COMPONENT24: 0x81A6; + readonly MAX_TEXTURE_LOD_BIAS: 0x84FD; + readonly TEXTURE_COMPARE_MODE: 0x884C; + readonly TEXTURE_COMPARE_FUNC: 0x884D; + readonly CURRENT_QUERY: 0x8865; + readonly QUERY_RESULT: 0x8866; + readonly QUERY_RESULT_AVAILABLE: 0x8867; + readonly STREAM_READ: 0x88E1; + readonly STREAM_COPY: 0x88E2; + readonly STATIC_READ: 0x88E5; + readonly STATIC_COPY: 0x88E6; + readonly DYNAMIC_READ: 0x88E9; + readonly DYNAMIC_COPY: 0x88EA; + readonly MAX_DRAW_BUFFERS: 0x8824; + readonly DRAW_BUFFER0: 0x8825; + readonly DRAW_BUFFER1: 0x8826; + readonly DRAW_BUFFER2: 0x8827; + readonly DRAW_BUFFER3: 0x8828; + readonly DRAW_BUFFER4: 0x8829; + readonly DRAW_BUFFER5: 0x882A; + readonly DRAW_BUFFER6: 0x882B; + readonly DRAW_BUFFER7: 0x882C; + readonly DRAW_BUFFER8: 0x882D; + readonly DRAW_BUFFER9: 0x882E; + readonly DRAW_BUFFER10: 0x882F; + readonly DRAW_BUFFER11: 0x8830; + readonly DRAW_BUFFER12: 0x8831; + readonly DRAW_BUFFER13: 0x8832; + readonly DRAW_BUFFER14: 0x8833; + readonly DRAW_BUFFER15: 0x8834; + readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49; + readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A; + readonly SAMPLER_3D: 0x8B5F; + readonly SAMPLER_2D_SHADOW: 0x8B62; + readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B; + readonly PIXEL_PACK_BUFFER: 0x88EB; + readonly PIXEL_UNPACK_BUFFER: 0x88EC; + readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED; + readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF; + readonly FLOAT_MAT2x3: 0x8B65; + readonly FLOAT_MAT2x4: 0x8B66; + readonly FLOAT_MAT3x2: 0x8B67; + readonly FLOAT_MAT3x4: 0x8B68; + readonly FLOAT_MAT4x2: 0x8B69; + readonly FLOAT_MAT4x3: 0x8B6A; + readonly SRGB: 0x8C40; + readonly SRGB8: 0x8C41; + readonly SRGB8_ALPHA8: 0x8C43; + readonly COMPARE_REF_TO_TEXTURE: 0x884E; + readonly RGBA32F: 0x8814; + readonly RGB32F: 0x8815; + readonly RGBA16F: 0x881A; + readonly RGB16F: 0x881B; + readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD; + readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF; + readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904; + readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905; + readonly MAX_VARYING_COMPONENTS: 0x8B4B; + readonly TEXTURE_2D_ARRAY: 0x8C1A; + readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D; + readonly R11F_G11F_B10F: 0x8C3A; + readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B; + readonly RGB9_E5: 0x8C3D; + readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E; + readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F; + readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80; + readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83; + readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84; + readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85; + readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88; + readonly RASTERIZER_DISCARD: 0x8C89; + readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A; + readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B; + readonly INTERLEAVED_ATTRIBS: 0x8C8C; + readonly SEPARATE_ATTRIBS: 0x8C8D; + readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E; + readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F; + readonly RGBA32UI: 0x8D70; + readonly RGB32UI: 0x8D71; + readonly RGBA16UI: 0x8D76; + readonly RGB16UI: 0x8D77; + readonly RGBA8UI: 0x8D7C; + readonly RGB8UI: 0x8D7D; + readonly RGBA32I: 0x8D82; + readonly RGB32I: 0x8D83; + readonly RGBA16I: 0x8D88; + readonly RGB16I: 0x8D89; + readonly RGBA8I: 0x8D8E; + readonly RGB8I: 0x8D8F; + readonly RED_INTEGER: 0x8D94; + readonly RGB_INTEGER: 0x8D98; + readonly RGBA_INTEGER: 0x8D99; + readonly SAMPLER_2D_ARRAY: 0x8DC1; + readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4; + readonly SAMPLER_CUBE_SHADOW: 0x8DC5; + readonly UNSIGNED_INT_VEC2: 0x8DC6; + readonly UNSIGNED_INT_VEC3: 0x8DC7; + readonly UNSIGNED_INT_VEC4: 0x8DC8; + readonly INT_SAMPLER_2D: 0x8DCA; + readonly INT_SAMPLER_3D: 0x8DCB; + readonly INT_SAMPLER_CUBE: 0x8DCC; + readonly INT_SAMPLER_2D_ARRAY: 0x8DCF; + readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2; + readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3; + readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4; + readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7; + readonly DEPTH_COMPONENT32F: 0x8CAC; + readonly DEPTH32F_STENCIL8: 0x8CAD; + readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD; + readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210; + readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211; + readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212; + readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213; + readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214; + readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215; + readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216; + readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217; + readonly FRAMEBUFFER_DEFAULT: 0x8218; + readonly UNSIGNED_INT_24_8: 0x84FA; + readonly DEPTH24_STENCIL8: 0x88F0; + readonly UNSIGNED_NORMALIZED: 0x8C17; + readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6; + readonly READ_FRAMEBUFFER: 0x8CA8; + readonly DRAW_FRAMEBUFFER: 0x8CA9; + readonly READ_FRAMEBUFFER_BINDING: 0x8CAA; + readonly RENDERBUFFER_SAMPLES: 0x8CAB; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4; + readonly MAX_COLOR_ATTACHMENTS: 0x8CDF; + readonly COLOR_ATTACHMENT1: 0x8CE1; + readonly COLOR_ATTACHMENT2: 0x8CE2; + readonly COLOR_ATTACHMENT3: 0x8CE3; + readonly COLOR_ATTACHMENT4: 0x8CE4; + readonly COLOR_ATTACHMENT5: 0x8CE5; + readonly COLOR_ATTACHMENT6: 0x8CE6; + readonly COLOR_ATTACHMENT7: 0x8CE7; + readonly COLOR_ATTACHMENT8: 0x8CE8; + readonly COLOR_ATTACHMENT9: 0x8CE9; + readonly COLOR_ATTACHMENT10: 0x8CEA; + readonly COLOR_ATTACHMENT11: 0x8CEB; + readonly COLOR_ATTACHMENT12: 0x8CEC; + readonly COLOR_ATTACHMENT13: 0x8CED; + readonly COLOR_ATTACHMENT14: 0x8CEE; + readonly COLOR_ATTACHMENT15: 0x8CEF; + readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56; + readonly MAX_SAMPLES: 0x8D57; + readonly HALF_FLOAT: 0x140B; + readonly RG: 0x8227; + readonly RG_INTEGER: 0x8228; + readonly R8: 0x8229; + readonly RG8: 0x822B; + readonly R16F: 0x822D; + readonly R32F: 0x822E; + readonly RG16F: 0x822F; + readonly RG32F: 0x8230; + readonly R8I: 0x8231; + readonly R8UI: 0x8232; + readonly R16I: 0x8233; + readonly R16UI: 0x8234; + readonly R32I: 0x8235; + readonly R32UI: 0x8236; + readonly RG8I: 0x8237; + readonly RG8UI: 0x8238; + readonly RG16I: 0x8239; + readonly RG16UI: 0x823A; + readonly RG32I: 0x823B; + readonly RG32UI: 0x823C; + readonly VERTEX_ARRAY_BINDING: 0x85B5; + readonly R8_SNORM: 0x8F94; + readonly RG8_SNORM: 0x8F95; + readonly RGB8_SNORM: 0x8F96; + readonly RGBA8_SNORM: 0x8F97; + readonly SIGNED_NORMALIZED: 0x8F9C; + readonly COPY_READ_BUFFER: 0x8F36; + readonly COPY_WRITE_BUFFER: 0x8F37; + readonly COPY_READ_BUFFER_BINDING: 0x8F36; + readonly COPY_WRITE_BUFFER_BINDING: 0x8F37; + readonly UNIFORM_BUFFER: 0x8A11; + readonly UNIFORM_BUFFER_BINDING: 0x8A28; + readonly UNIFORM_BUFFER_START: 0x8A29; + readonly UNIFORM_BUFFER_SIZE: 0x8A2A; + readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B; + readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D; + readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E; + readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F; + readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30; + readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31; + readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33; + readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34; + readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36; + readonly UNIFORM_TYPE: 0x8A37; + readonly UNIFORM_SIZE: 0x8A38; + readonly UNIFORM_BLOCK_INDEX: 0x8A3A; + readonly UNIFORM_OFFSET: 0x8A3B; + readonly UNIFORM_ARRAY_STRIDE: 0x8A3C; + readonly UNIFORM_MATRIX_STRIDE: 0x8A3D; + readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E; + readonly UNIFORM_BLOCK_BINDING: 0x8A3F; + readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40; + readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42; + readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43; + readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44; + readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46; + readonly INVALID_INDEX: 0xFFFFFFFF; + readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122; + readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125; + readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111; + readonly OBJECT_TYPE: 0x9112; + readonly SYNC_CONDITION: 0x9113; + readonly SYNC_STATUS: 0x9114; + readonly SYNC_FLAGS: 0x9115; + readonly SYNC_FENCE: 0x9116; + readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117; + readonly UNSIGNALED: 0x9118; + readonly SIGNALED: 0x9119; + readonly ALREADY_SIGNALED: 0x911A; + readonly TIMEOUT_EXPIRED: 0x911B; + readonly CONDITION_SATISFIED: 0x911C; + readonly WAIT_FAILED: 0x911D; + readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001; + readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE; + readonly ANY_SAMPLES_PASSED: 0x8C2F; + readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A; + readonly SAMPLER_BINDING: 0x8919; + readonly RGB10_A2UI: 0x906F; + readonly INT_2_10_10_10_REV: 0x8D9F; + readonly TRANSFORM_FEEDBACK: 0x8E22; + readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23; + readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24; + readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25; + readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F; + readonly MAX_ELEMENT_INDEX: 0x8D6B; + readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF; + readonly TIMEOUT_IGNORED: -1; + readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247; +} + +interface WebGL2RenderingContextOverloads { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */ + bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void; + bufferData(target: GLenum, srcData: AllowSharedBufferSource | null, usage: GLenum): void; + bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: number, length?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */ + bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: AllowSharedBufferSource): void; + bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: number, length?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */ + compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void; + compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */ + compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void; + compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */ + readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void; + readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void; + readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */ + texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; + texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; + texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void; + texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; + texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */ + texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; + texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; + texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void; + texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void; + texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; +} + +/** + * Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo) + */ +interface WebGLActiveInfo { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/size) */ + readonly size: GLint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/type) */ + readonly type: GLenum; +} + +declare var WebGLActiveInfo: { + prototype: WebGLActiveInfo; + new(): WebGLActiveInfo; +}; + +/** + * Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLBuffer) + */ +interface WebGLBuffer { +} + +declare var WebGLBuffer: { + prototype: WebGLBuffer; + new(): WebGLBuffer; +}; + +/** + * The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent) + */ +interface WebGLContextEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent/statusMessage) */ + readonly statusMessage: string; +} + +declare var WebGLContextEvent: { + prototype: WebGLContextEvent; + new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent; +}; + +/** + * Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLFramebuffer) + */ +interface WebGLFramebuffer { +} + +declare var WebGLFramebuffer: { + prototype: WebGLFramebuffer; + new(): WebGLFramebuffer; +}; + +/** + * The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLProgram) + */ +interface WebGLProgram { +} + +declare var WebGLProgram: { + prototype: WebGLProgram; + new(): WebGLProgram; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLQuery) */ +interface WebGLQuery { +} + +declare var WebGLQuery: { + prototype: WebGLQuery; + new(): WebGLQuery; +}; + +/** + * Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderbuffer) + */ +interface WebGLRenderbuffer { +} + +declare var WebGLRenderbuffer: { + prototype: WebGLRenderbuffer; + new(): WebGLRenderbuffer; +}; + +/** + * Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext) + */ +interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads { +} + +declare var WebGLRenderingContext: { + prototype: WebGLRenderingContext; + new(): WebGLRenderingContext; + readonly DEPTH_BUFFER_BIT: 0x00000100; + readonly STENCIL_BUFFER_BIT: 0x00000400; + readonly COLOR_BUFFER_BIT: 0x00004000; + readonly POINTS: 0x0000; + readonly LINES: 0x0001; + readonly LINE_LOOP: 0x0002; + readonly LINE_STRIP: 0x0003; + readonly TRIANGLES: 0x0004; + readonly TRIANGLE_STRIP: 0x0005; + readonly TRIANGLE_FAN: 0x0006; + readonly ZERO: 0; + readonly ONE: 1; + readonly SRC_COLOR: 0x0300; + readonly ONE_MINUS_SRC_COLOR: 0x0301; + readonly SRC_ALPHA: 0x0302; + readonly ONE_MINUS_SRC_ALPHA: 0x0303; + readonly DST_ALPHA: 0x0304; + readonly ONE_MINUS_DST_ALPHA: 0x0305; + readonly DST_COLOR: 0x0306; + readonly ONE_MINUS_DST_COLOR: 0x0307; + readonly SRC_ALPHA_SATURATE: 0x0308; + readonly FUNC_ADD: 0x8006; + readonly BLEND_EQUATION: 0x8009; + readonly BLEND_EQUATION_RGB: 0x8009; + readonly BLEND_EQUATION_ALPHA: 0x883D; + readonly FUNC_SUBTRACT: 0x800A; + readonly FUNC_REVERSE_SUBTRACT: 0x800B; + readonly BLEND_DST_RGB: 0x80C8; + readonly BLEND_SRC_RGB: 0x80C9; + readonly BLEND_DST_ALPHA: 0x80CA; + readonly BLEND_SRC_ALPHA: 0x80CB; + readonly CONSTANT_COLOR: 0x8001; + readonly ONE_MINUS_CONSTANT_COLOR: 0x8002; + readonly CONSTANT_ALPHA: 0x8003; + readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004; + readonly BLEND_COLOR: 0x8005; + readonly ARRAY_BUFFER: 0x8892; + readonly ELEMENT_ARRAY_BUFFER: 0x8893; + readonly ARRAY_BUFFER_BINDING: 0x8894; + readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895; + readonly STREAM_DRAW: 0x88E0; + readonly STATIC_DRAW: 0x88E4; + readonly DYNAMIC_DRAW: 0x88E8; + readonly BUFFER_SIZE: 0x8764; + readonly BUFFER_USAGE: 0x8765; + readonly CURRENT_VERTEX_ATTRIB: 0x8626; + readonly FRONT: 0x0404; + readonly BACK: 0x0405; + readonly FRONT_AND_BACK: 0x0408; + readonly CULL_FACE: 0x0B44; + readonly BLEND: 0x0BE2; + readonly DITHER: 0x0BD0; + readonly STENCIL_TEST: 0x0B90; + readonly DEPTH_TEST: 0x0B71; + readonly SCISSOR_TEST: 0x0C11; + readonly POLYGON_OFFSET_FILL: 0x8037; + readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E; + readonly SAMPLE_COVERAGE: 0x80A0; + readonly NO_ERROR: 0; + readonly INVALID_ENUM: 0x0500; + readonly INVALID_VALUE: 0x0501; + readonly INVALID_OPERATION: 0x0502; + readonly OUT_OF_MEMORY: 0x0505; + readonly CW: 0x0900; + readonly CCW: 0x0901; + readonly LINE_WIDTH: 0x0B21; + readonly ALIASED_POINT_SIZE_RANGE: 0x846D; + readonly ALIASED_LINE_WIDTH_RANGE: 0x846E; + readonly CULL_FACE_MODE: 0x0B45; + readonly FRONT_FACE: 0x0B46; + readonly DEPTH_RANGE: 0x0B70; + readonly DEPTH_WRITEMASK: 0x0B72; + readonly DEPTH_CLEAR_VALUE: 0x0B73; + readonly DEPTH_FUNC: 0x0B74; + readonly STENCIL_CLEAR_VALUE: 0x0B91; + readonly STENCIL_FUNC: 0x0B92; + readonly STENCIL_FAIL: 0x0B94; + readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95; + readonly STENCIL_PASS_DEPTH_PASS: 0x0B96; + readonly STENCIL_REF: 0x0B97; + readonly STENCIL_VALUE_MASK: 0x0B93; + readonly STENCIL_WRITEMASK: 0x0B98; + readonly STENCIL_BACK_FUNC: 0x8800; + readonly STENCIL_BACK_FAIL: 0x8801; + readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802; + readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803; + readonly STENCIL_BACK_REF: 0x8CA3; + readonly STENCIL_BACK_VALUE_MASK: 0x8CA4; + readonly STENCIL_BACK_WRITEMASK: 0x8CA5; + readonly VIEWPORT: 0x0BA2; + readonly SCISSOR_BOX: 0x0C10; + readonly COLOR_CLEAR_VALUE: 0x0C22; + readonly COLOR_WRITEMASK: 0x0C23; + readonly UNPACK_ALIGNMENT: 0x0CF5; + readonly PACK_ALIGNMENT: 0x0D05; + readonly MAX_TEXTURE_SIZE: 0x0D33; + readonly MAX_VIEWPORT_DIMS: 0x0D3A; + readonly SUBPIXEL_BITS: 0x0D50; + readonly RED_BITS: 0x0D52; + readonly GREEN_BITS: 0x0D53; + readonly BLUE_BITS: 0x0D54; + readonly ALPHA_BITS: 0x0D55; + readonly DEPTH_BITS: 0x0D56; + readonly STENCIL_BITS: 0x0D57; + readonly POLYGON_OFFSET_UNITS: 0x2A00; + readonly POLYGON_OFFSET_FACTOR: 0x8038; + readonly TEXTURE_BINDING_2D: 0x8069; + readonly SAMPLE_BUFFERS: 0x80A8; + readonly SAMPLES: 0x80A9; + readonly SAMPLE_COVERAGE_VALUE: 0x80AA; + readonly SAMPLE_COVERAGE_INVERT: 0x80AB; + readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3; + readonly DONT_CARE: 0x1100; + readonly FASTEST: 0x1101; + readonly NICEST: 0x1102; + readonly GENERATE_MIPMAP_HINT: 0x8192; + readonly BYTE: 0x1400; + readonly UNSIGNED_BYTE: 0x1401; + readonly SHORT: 0x1402; + readonly UNSIGNED_SHORT: 0x1403; + readonly INT: 0x1404; + readonly UNSIGNED_INT: 0x1405; + readonly FLOAT: 0x1406; + readonly DEPTH_COMPONENT: 0x1902; + readonly ALPHA: 0x1906; + readonly RGB: 0x1907; + readonly RGBA: 0x1908; + readonly LUMINANCE: 0x1909; + readonly LUMINANCE_ALPHA: 0x190A; + readonly UNSIGNED_SHORT_4_4_4_4: 0x8033; + readonly UNSIGNED_SHORT_5_5_5_1: 0x8034; + readonly UNSIGNED_SHORT_5_6_5: 0x8363; + readonly FRAGMENT_SHADER: 0x8B30; + readonly VERTEX_SHADER: 0x8B31; + readonly MAX_VERTEX_ATTRIBS: 0x8869; + readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB; + readonly MAX_VARYING_VECTORS: 0x8DFC; + readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D; + readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C; + readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872; + readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD; + readonly SHADER_TYPE: 0x8B4F; + readonly DELETE_STATUS: 0x8B80; + readonly LINK_STATUS: 0x8B82; + readonly VALIDATE_STATUS: 0x8B83; + readonly ATTACHED_SHADERS: 0x8B85; + readonly ACTIVE_UNIFORMS: 0x8B86; + readonly ACTIVE_ATTRIBUTES: 0x8B89; + readonly SHADING_LANGUAGE_VERSION: 0x8B8C; + readonly CURRENT_PROGRAM: 0x8B8D; + readonly NEVER: 0x0200; + readonly LESS: 0x0201; + readonly EQUAL: 0x0202; + readonly LEQUAL: 0x0203; + readonly GREATER: 0x0204; + readonly NOTEQUAL: 0x0205; + readonly GEQUAL: 0x0206; + readonly ALWAYS: 0x0207; + readonly KEEP: 0x1E00; + readonly REPLACE: 0x1E01; + readonly INCR: 0x1E02; + readonly DECR: 0x1E03; + readonly INVERT: 0x150A; + readonly INCR_WRAP: 0x8507; + readonly DECR_WRAP: 0x8508; + readonly VENDOR: 0x1F00; + readonly RENDERER: 0x1F01; + readonly VERSION: 0x1F02; + readonly NEAREST: 0x2600; + readonly LINEAR: 0x2601; + readonly NEAREST_MIPMAP_NEAREST: 0x2700; + readonly LINEAR_MIPMAP_NEAREST: 0x2701; + readonly NEAREST_MIPMAP_LINEAR: 0x2702; + readonly LINEAR_MIPMAP_LINEAR: 0x2703; + readonly TEXTURE_MAG_FILTER: 0x2800; + readonly TEXTURE_MIN_FILTER: 0x2801; + readonly TEXTURE_WRAP_S: 0x2802; + readonly TEXTURE_WRAP_T: 0x2803; + readonly TEXTURE_2D: 0x0DE1; + readonly TEXTURE: 0x1702; + readonly TEXTURE_CUBE_MAP: 0x8513; + readonly TEXTURE_BINDING_CUBE_MAP: 0x8514; + readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515; + readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516; + readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518; + readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A; + readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C; + readonly TEXTURE0: 0x84C0; + readonly TEXTURE1: 0x84C1; + readonly TEXTURE2: 0x84C2; + readonly TEXTURE3: 0x84C3; + readonly TEXTURE4: 0x84C4; + readonly TEXTURE5: 0x84C5; + readonly TEXTURE6: 0x84C6; + readonly TEXTURE7: 0x84C7; + readonly TEXTURE8: 0x84C8; + readonly TEXTURE9: 0x84C9; + readonly TEXTURE10: 0x84CA; + readonly TEXTURE11: 0x84CB; + readonly TEXTURE12: 0x84CC; + readonly TEXTURE13: 0x84CD; + readonly TEXTURE14: 0x84CE; + readonly TEXTURE15: 0x84CF; + readonly TEXTURE16: 0x84D0; + readonly TEXTURE17: 0x84D1; + readonly TEXTURE18: 0x84D2; + readonly TEXTURE19: 0x84D3; + readonly TEXTURE20: 0x84D4; + readonly TEXTURE21: 0x84D5; + readonly TEXTURE22: 0x84D6; + readonly TEXTURE23: 0x84D7; + readonly TEXTURE24: 0x84D8; + readonly TEXTURE25: 0x84D9; + readonly TEXTURE26: 0x84DA; + readonly TEXTURE27: 0x84DB; + readonly TEXTURE28: 0x84DC; + readonly TEXTURE29: 0x84DD; + readonly TEXTURE30: 0x84DE; + readonly TEXTURE31: 0x84DF; + readonly ACTIVE_TEXTURE: 0x84E0; + readonly REPEAT: 0x2901; + readonly CLAMP_TO_EDGE: 0x812F; + readonly MIRRORED_REPEAT: 0x8370; + readonly FLOAT_VEC2: 0x8B50; + readonly FLOAT_VEC3: 0x8B51; + readonly FLOAT_VEC4: 0x8B52; + readonly INT_VEC2: 0x8B53; + readonly INT_VEC3: 0x8B54; + readonly INT_VEC4: 0x8B55; + readonly BOOL: 0x8B56; + readonly BOOL_VEC2: 0x8B57; + readonly BOOL_VEC3: 0x8B58; + readonly BOOL_VEC4: 0x8B59; + readonly FLOAT_MAT2: 0x8B5A; + readonly FLOAT_MAT3: 0x8B5B; + readonly FLOAT_MAT4: 0x8B5C; + readonly SAMPLER_2D: 0x8B5E; + readonly SAMPLER_CUBE: 0x8B60; + readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622; + readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623; + readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624; + readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625; + readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A; + readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645; + readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F; + readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A; + readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B; + readonly COMPILE_STATUS: 0x8B81; + readonly LOW_FLOAT: 0x8DF0; + readonly MEDIUM_FLOAT: 0x8DF1; + readonly HIGH_FLOAT: 0x8DF2; + readonly LOW_INT: 0x8DF3; + readonly MEDIUM_INT: 0x8DF4; + readonly HIGH_INT: 0x8DF5; + readonly FRAMEBUFFER: 0x8D40; + readonly RENDERBUFFER: 0x8D41; + readonly RGBA4: 0x8056; + readonly RGB5_A1: 0x8057; + readonly RGBA8: 0x8058; + readonly RGB565: 0x8D62; + readonly DEPTH_COMPONENT16: 0x81A5; + readonly STENCIL_INDEX8: 0x8D48; + readonly DEPTH_STENCIL: 0x84F9; + readonly RENDERBUFFER_WIDTH: 0x8D42; + readonly RENDERBUFFER_HEIGHT: 0x8D43; + readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44; + readonly RENDERBUFFER_RED_SIZE: 0x8D50; + readonly RENDERBUFFER_GREEN_SIZE: 0x8D51; + readonly RENDERBUFFER_BLUE_SIZE: 0x8D52; + readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53; + readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54; + readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3; + readonly COLOR_ATTACHMENT0: 0x8CE0; + readonly DEPTH_ATTACHMENT: 0x8D00; + readonly STENCIL_ATTACHMENT: 0x8D20; + readonly DEPTH_STENCIL_ATTACHMENT: 0x821A; + readonly NONE: 0; + readonly FRAMEBUFFER_COMPLETE: 0x8CD5; + readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6; + readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7; + readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9; + readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD; + readonly FRAMEBUFFER_BINDING: 0x8CA6; + readonly RENDERBUFFER_BINDING: 0x8CA7; + readonly MAX_RENDERBUFFER_SIZE: 0x84E8; + readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506; + readonly UNPACK_FLIP_Y_WEBGL: 0x9240; + readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241; + readonly CONTEXT_LOST_WEBGL: 0x9242; + readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243; + readonly BROWSER_DEFAULT_WEBGL: 0x9244; +}; + +interface WebGLRenderingContextBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/canvas) */ + readonly canvas: HTMLCanvasElement | OffscreenCanvas; + drawingBufferColorSpace: PredefinedColorSpace; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */ + readonly drawingBufferHeight: GLsizei; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth) */ + readonly drawingBufferWidth: GLsizei; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/activeTexture) */ + activeTexture(texture: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/attachShader) */ + attachShader(program: WebGLProgram, shader: WebGLShader): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindAttribLocation) */ + bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindBuffer) */ + bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindFramebuffer) */ + bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindRenderbuffer) */ + bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindTexture) */ + bindTexture(target: GLenum, texture: WebGLTexture | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendColor) */ + blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquation) */ + blendEquation(mode: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquationSeparate) */ + blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFunc) */ + blendFunc(sfactor: GLenum, dfactor: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFuncSeparate) */ + blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus) */ + checkFramebufferStatus(target: GLenum): GLenum; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clear) */ + clear(mask: GLbitfield): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearColor) */ + clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearDepth) */ + clearDepth(depth: GLclampf): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearStencil) */ + clearStencil(s: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/colorMask) */ + colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compileShader) */ + compileShader(shader: WebGLShader): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexImage2D) */ + copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D) */ + copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer) */ + createBuffer(): WebGLBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) */ + createFramebuffer(): WebGLFramebuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) */ + createProgram(): WebGLProgram | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) */ + createRenderbuffer(): WebGLRenderbuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader) */ + createShader(type: GLenum): WebGLShader | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture) */ + createTexture(): WebGLTexture | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/cullFace) */ + cullFace(mode: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteBuffer) */ + deleteBuffer(buffer: WebGLBuffer | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteFramebuffer) */ + deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteProgram) */ + deleteProgram(program: WebGLProgram | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer) */ + deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteShader) */ + deleteShader(shader: WebGLShader | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteTexture) */ + deleteTexture(texture: WebGLTexture | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthFunc) */ + depthFunc(func: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthMask) */ + depthMask(flag: GLboolean): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthRange) */ + depthRange(zNear: GLclampf, zFar: GLclampf): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/detachShader) */ + detachShader(program: WebGLProgram, shader: WebGLShader): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disable) */ + disable(cap: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray) */ + disableVertexAttribArray(index: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawArrays) */ + drawArrays(mode: GLenum, first: GLint, count: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawElements) */ + drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enable) */ + enable(cap: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray) */ + enableVertexAttribArray(index: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/finish) */ + finish(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/flush) */ + flush(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer) */ + framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferTexture2D) */ + framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/frontFace) */ + frontFace(mode: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/generateMipmap) */ + generateMipmap(target: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveAttrib) */ + getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveUniform) */ + getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttachedShaders) */ + getAttachedShaders(program: WebGLProgram): WebGLShader[] | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttribLocation) */ + getAttribLocation(program: WebGLProgram, name: string): GLint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getBufferParameter) */ + getBufferParameter(target: GLenum, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getContextAttributes) */ + getContextAttributes(): WebGLContextAttributes | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */ + getError(): GLenum; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */ + getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; + getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; + getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null; + getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null; + getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null; + getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null; + getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null; + getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null; + getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null; + getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null; + getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null; + getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null; + getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null; + getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null; + getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null; + getExtension(extensionName: "OES_texture_float"): OES_texture_float | null; + getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null; + getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null; + getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null; + getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null; + getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null; + getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null; + getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null; + getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null; + getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null; + getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null; + getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null; + getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null; + getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null; + getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null; + getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null; + getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null; + getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null; + getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null; + getExtension(name: string): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */ + getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */ + getParameter(pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramInfoLog) */ + getProgramInfoLog(program: WebGLProgram): string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramParameter) */ + getProgramParameter(program: WebGLProgram, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter) */ + getRenderbufferParameter(target: GLenum, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderInfoLog) */ + getShaderInfoLog(shader: WebGLShader): string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderParameter) */ + getShaderParameter(shader: WebGLShader, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat) */ + getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderSource) */ + getShaderSource(shader: WebGLShader): string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getSupportedExtensions) */ + getSupportedExtensions(): string[] | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getTexParameter) */ + getTexParameter(target: GLenum, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniform) */ + getUniform(program: WebGLProgram, location: WebGLUniformLocation): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniformLocation) */ + getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttrib) */ + getVertexAttrib(index: GLuint, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset) */ + getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/hint) */ + hint(target: GLenum, mode: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isBuffer) */ + isBuffer(buffer: WebGLBuffer | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isContextLost) */ + isContextLost(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isEnabled) */ + isEnabled(cap: GLenum): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isFramebuffer) */ + isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isProgram) */ + isProgram(program: WebGLProgram | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isRenderbuffer) */ + isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isShader) */ + isShader(shader: WebGLShader | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture) */ + isTexture(texture: WebGLTexture | null): GLboolean; + lineWidth(width: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/linkProgram) */ + linkProgram(program: WebGLProgram): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/pixelStorei) */ + pixelStorei(pname: GLenum, param: GLint | GLboolean): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/polygonOffset) */ + polygonOffset(factor: GLfloat, units: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/renderbufferStorage) */ + renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/sampleCoverage) */ + sampleCoverage(value: GLclampf, invert: GLboolean): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/scissor) */ + scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/shaderSource) */ + shaderSource(shader: WebGLShader, source: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFunc) */ + stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate) */ + stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMask) */ + stencilMask(mask: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate) */ + stencilMaskSeparate(face: GLenum, mask: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOp) */ + stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOpSeparate) */ + stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */ + texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */ + texParameteri(target: GLenum, pname: GLenum, param: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1i(location: WebGLUniformLocation | null, x: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/useProgram) */ + useProgram(program: WebGLProgram | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/validateProgram) */ + validateProgram(program: WebGLProgram): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib1f(index: GLuint, x: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib1fv(index: GLuint, values: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib2fv(index: GLuint, values: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib3fv(index: GLuint, values: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib4fv(index: GLuint, values: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttribPointer) */ + vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/viewport) */ + viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; + readonly DEPTH_BUFFER_BIT: 0x00000100; + readonly STENCIL_BUFFER_BIT: 0x00000400; + readonly COLOR_BUFFER_BIT: 0x00004000; + readonly POINTS: 0x0000; + readonly LINES: 0x0001; + readonly LINE_LOOP: 0x0002; + readonly LINE_STRIP: 0x0003; + readonly TRIANGLES: 0x0004; + readonly TRIANGLE_STRIP: 0x0005; + readonly TRIANGLE_FAN: 0x0006; + readonly ZERO: 0; + readonly ONE: 1; + readonly SRC_COLOR: 0x0300; + readonly ONE_MINUS_SRC_COLOR: 0x0301; + readonly SRC_ALPHA: 0x0302; + readonly ONE_MINUS_SRC_ALPHA: 0x0303; + readonly DST_ALPHA: 0x0304; + readonly ONE_MINUS_DST_ALPHA: 0x0305; + readonly DST_COLOR: 0x0306; + readonly ONE_MINUS_DST_COLOR: 0x0307; + readonly SRC_ALPHA_SATURATE: 0x0308; + readonly FUNC_ADD: 0x8006; + readonly BLEND_EQUATION: 0x8009; + readonly BLEND_EQUATION_RGB: 0x8009; + readonly BLEND_EQUATION_ALPHA: 0x883D; + readonly FUNC_SUBTRACT: 0x800A; + readonly FUNC_REVERSE_SUBTRACT: 0x800B; + readonly BLEND_DST_RGB: 0x80C8; + readonly BLEND_SRC_RGB: 0x80C9; + readonly BLEND_DST_ALPHA: 0x80CA; + readonly BLEND_SRC_ALPHA: 0x80CB; + readonly CONSTANT_COLOR: 0x8001; + readonly ONE_MINUS_CONSTANT_COLOR: 0x8002; + readonly CONSTANT_ALPHA: 0x8003; + readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004; + readonly BLEND_COLOR: 0x8005; + readonly ARRAY_BUFFER: 0x8892; + readonly ELEMENT_ARRAY_BUFFER: 0x8893; + readonly ARRAY_BUFFER_BINDING: 0x8894; + readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895; + readonly STREAM_DRAW: 0x88E0; + readonly STATIC_DRAW: 0x88E4; + readonly DYNAMIC_DRAW: 0x88E8; + readonly BUFFER_SIZE: 0x8764; + readonly BUFFER_USAGE: 0x8765; + readonly CURRENT_VERTEX_ATTRIB: 0x8626; + readonly FRONT: 0x0404; + readonly BACK: 0x0405; + readonly FRONT_AND_BACK: 0x0408; + readonly CULL_FACE: 0x0B44; + readonly BLEND: 0x0BE2; + readonly DITHER: 0x0BD0; + readonly STENCIL_TEST: 0x0B90; + readonly DEPTH_TEST: 0x0B71; + readonly SCISSOR_TEST: 0x0C11; + readonly POLYGON_OFFSET_FILL: 0x8037; + readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E; + readonly SAMPLE_COVERAGE: 0x80A0; + readonly NO_ERROR: 0; + readonly INVALID_ENUM: 0x0500; + readonly INVALID_VALUE: 0x0501; + readonly INVALID_OPERATION: 0x0502; + readonly OUT_OF_MEMORY: 0x0505; + readonly CW: 0x0900; + readonly CCW: 0x0901; + readonly LINE_WIDTH: 0x0B21; + readonly ALIASED_POINT_SIZE_RANGE: 0x846D; + readonly ALIASED_LINE_WIDTH_RANGE: 0x846E; + readonly CULL_FACE_MODE: 0x0B45; + readonly FRONT_FACE: 0x0B46; + readonly DEPTH_RANGE: 0x0B70; + readonly DEPTH_WRITEMASK: 0x0B72; + readonly DEPTH_CLEAR_VALUE: 0x0B73; + readonly DEPTH_FUNC: 0x0B74; + readonly STENCIL_CLEAR_VALUE: 0x0B91; + readonly STENCIL_FUNC: 0x0B92; + readonly STENCIL_FAIL: 0x0B94; + readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95; + readonly STENCIL_PASS_DEPTH_PASS: 0x0B96; + readonly STENCIL_REF: 0x0B97; + readonly STENCIL_VALUE_MASK: 0x0B93; + readonly STENCIL_WRITEMASK: 0x0B98; + readonly STENCIL_BACK_FUNC: 0x8800; + readonly STENCIL_BACK_FAIL: 0x8801; + readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802; + readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803; + readonly STENCIL_BACK_REF: 0x8CA3; + readonly STENCIL_BACK_VALUE_MASK: 0x8CA4; + readonly STENCIL_BACK_WRITEMASK: 0x8CA5; + readonly VIEWPORT: 0x0BA2; + readonly SCISSOR_BOX: 0x0C10; + readonly COLOR_CLEAR_VALUE: 0x0C22; + readonly COLOR_WRITEMASK: 0x0C23; + readonly UNPACK_ALIGNMENT: 0x0CF5; + readonly PACK_ALIGNMENT: 0x0D05; + readonly MAX_TEXTURE_SIZE: 0x0D33; + readonly MAX_VIEWPORT_DIMS: 0x0D3A; + readonly SUBPIXEL_BITS: 0x0D50; + readonly RED_BITS: 0x0D52; + readonly GREEN_BITS: 0x0D53; + readonly BLUE_BITS: 0x0D54; + readonly ALPHA_BITS: 0x0D55; + readonly DEPTH_BITS: 0x0D56; + readonly STENCIL_BITS: 0x0D57; + readonly POLYGON_OFFSET_UNITS: 0x2A00; + readonly POLYGON_OFFSET_FACTOR: 0x8038; + readonly TEXTURE_BINDING_2D: 0x8069; + readonly SAMPLE_BUFFERS: 0x80A8; + readonly SAMPLES: 0x80A9; + readonly SAMPLE_COVERAGE_VALUE: 0x80AA; + readonly SAMPLE_COVERAGE_INVERT: 0x80AB; + readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3; + readonly DONT_CARE: 0x1100; + readonly FASTEST: 0x1101; + readonly NICEST: 0x1102; + readonly GENERATE_MIPMAP_HINT: 0x8192; + readonly BYTE: 0x1400; + readonly UNSIGNED_BYTE: 0x1401; + readonly SHORT: 0x1402; + readonly UNSIGNED_SHORT: 0x1403; + readonly INT: 0x1404; + readonly UNSIGNED_INT: 0x1405; + readonly FLOAT: 0x1406; + readonly DEPTH_COMPONENT: 0x1902; + readonly ALPHA: 0x1906; + readonly RGB: 0x1907; + readonly RGBA: 0x1908; + readonly LUMINANCE: 0x1909; + readonly LUMINANCE_ALPHA: 0x190A; + readonly UNSIGNED_SHORT_4_4_4_4: 0x8033; + readonly UNSIGNED_SHORT_5_5_5_1: 0x8034; + readonly UNSIGNED_SHORT_5_6_5: 0x8363; + readonly FRAGMENT_SHADER: 0x8B30; + readonly VERTEX_SHADER: 0x8B31; + readonly MAX_VERTEX_ATTRIBS: 0x8869; + readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB; + readonly MAX_VARYING_VECTORS: 0x8DFC; + readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D; + readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C; + readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872; + readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD; + readonly SHADER_TYPE: 0x8B4F; + readonly DELETE_STATUS: 0x8B80; + readonly LINK_STATUS: 0x8B82; + readonly VALIDATE_STATUS: 0x8B83; + readonly ATTACHED_SHADERS: 0x8B85; + readonly ACTIVE_UNIFORMS: 0x8B86; + readonly ACTIVE_ATTRIBUTES: 0x8B89; + readonly SHADING_LANGUAGE_VERSION: 0x8B8C; + readonly CURRENT_PROGRAM: 0x8B8D; + readonly NEVER: 0x0200; + readonly LESS: 0x0201; + readonly EQUAL: 0x0202; + readonly LEQUAL: 0x0203; + readonly GREATER: 0x0204; + readonly NOTEQUAL: 0x0205; + readonly GEQUAL: 0x0206; + readonly ALWAYS: 0x0207; + readonly KEEP: 0x1E00; + readonly REPLACE: 0x1E01; + readonly INCR: 0x1E02; + readonly DECR: 0x1E03; + readonly INVERT: 0x150A; + readonly INCR_WRAP: 0x8507; + readonly DECR_WRAP: 0x8508; + readonly VENDOR: 0x1F00; + readonly RENDERER: 0x1F01; + readonly VERSION: 0x1F02; + readonly NEAREST: 0x2600; + readonly LINEAR: 0x2601; + readonly NEAREST_MIPMAP_NEAREST: 0x2700; + readonly LINEAR_MIPMAP_NEAREST: 0x2701; + readonly NEAREST_MIPMAP_LINEAR: 0x2702; + readonly LINEAR_MIPMAP_LINEAR: 0x2703; + readonly TEXTURE_MAG_FILTER: 0x2800; + readonly TEXTURE_MIN_FILTER: 0x2801; + readonly TEXTURE_WRAP_S: 0x2802; + readonly TEXTURE_WRAP_T: 0x2803; + readonly TEXTURE_2D: 0x0DE1; + readonly TEXTURE: 0x1702; + readonly TEXTURE_CUBE_MAP: 0x8513; + readonly TEXTURE_BINDING_CUBE_MAP: 0x8514; + readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515; + readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516; + readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518; + readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A; + readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C; + readonly TEXTURE0: 0x84C0; + readonly TEXTURE1: 0x84C1; + readonly TEXTURE2: 0x84C2; + readonly TEXTURE3: 0x84C3; + readonly TEXTURE4: 0x84C4; + readonly TEXTURE5: 0x84C5; + readonly TEXTURE6: 0x84C6; + readonly TEXTURE7: 0x84C7; + readonly TEXTURE8: 0x84C8; + readonly TEXTURE9: 0x84C9; + readonly TEXTURE10: 0x84CA; + readonly TEXTURE11: 0x84CB; + readonly TEXTURE12: 0x84CC; + readonly TEXTURE13: 0x84CD; + readonly TEXTURE14: 0x84CE; + readonly TEXTURE15: 0x84CF; + readonly TEXTURE16: 0x84D0; + readonly TEXTURE17: 0x84D1; + readonly TEXTURE18: 0x84D2; + readonly TEXTURE19: 0x84D3; + readonly TEXTURE20: 0x84D4; + readonly TEXTURE21: 0x84D5; + readonly TEXTURE22: 0x84D6; + readonly TEXTURE23: 0x84D7; + readonly TEXTURE24: 0x84D8; + readonly TEXTURE25: 0x84D9; + readonly TEXTURE26: 0x84DA; + readonly TEXTURE27: 0x84DB; + readonly TEXTURE28: 0x84DC; + readonly TEXTURE29: 0x84DD; + readonly TEXTURE30: 0x84DE; + readonly TEXTURE31: 0x84DF; + readonly ACTIVE_TEXTURE: 0x84E0; + readonly REPEAT: 0x2901; + readonly CLAMP_TO_EDGE: 0x812F; + readonly MIRRORED_REPEAT: 0x8370; + readonly FLOAT_VEC2: 0x8B50; + readonly FLOAT_VEC3: 0x8B51; + readonly FLOAT_VEC4: 0x8B52; + readonly INT_VEC2: 0x8B53; + readonly INT_VEC3: 0x8B54; + readonly INT_VEC4: 0x8B55; + readonly BOOL: 0x8B56; + readonly BOOL_VEC2: 0x8B57; + readonly BOOL_VEC3: 0x8B58; + readonly BOOL_VEC4: 0x8B59; + readonly FLOAT_MAT2: 0x8B5A; + readonly FLOAT_MAT3: 0x8B5B; + readonly FLOAT_MAT4: 0x8B5C; + readonly SAMPLER_2D: 0x8B5E; + readonly SAMPLER_CUBE: 0x8B60; + readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622; + readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623; + readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624; + readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625; + readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A; + readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645; + readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F; + readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A; + readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B; + readonly COMPILE_STATUS: 0x8B81; + readonly LOW_FLOAT: 0x8DF0; + readonly MEDIUM_FLOAT: 0x8DF1; + readonly HIGH_FLOAT: 0x8DF2; + readonly LOW_INT: 0x8DF3; + readonly MEDIUM_INT: 0x8DF4; + readonly HIGH_INT: 0x8DF5; + readonly FRAMEBUFFER: 0x8D40; + readonly RENDERBUFFER: 0x8D41; + readonly RGBA4: 0x8056; + readonly RGB5_A1: 0x8057; + readonly RGBA8: 0x8058; + readonly RGB565: 0x8D62; + readonly DEPTH_COMPONENT16: 0x81A5; + readonly STENCIL_INDEX8: 0x8D48; + readonly DEPTH_STENCIL: 0x84F9; + readonly RENDERBUFFER_WIDTH: 0x8D42; + readonly RENDERBUFFER_HEIGHT: 0x8D43; + readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44; + readonly RENDERBUFFER_RED_SIZE: 0x8D50; + readonly RENDERBUFFER_GREEN_SIZE: 0x8D51; + readonly RENDERBUFFER_BLUE_SIZE: 0x8D52; + readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53; + readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54; + readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3; + readonly COLOR_ATTACHMENT0: 0x8CE0; + readonly DEPTH_ATTACHMENT: 0x8D00; + readonly STENCIL_ATTACHMENT: 0x8D20; + readonly DEPTH_STENCIL_ATTACHMENT: 0x821A; + readonly NONE: 0; + readonly FRAMEBUFFER_COMPLETE: 0x8CD5; + readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6; + readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7; + readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9; + readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD; + readonly FRAMEBUFFER_BINDING: 0x8CA6; + readonly RENDERBUFFER_BINDING: 0x8CA7; + readonly MAX_RENDERBUFFER_SIZE: 0x84E8; + readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506; + readonly UNPACK_FLIP_Y_WEBGL: 0x9240; + readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241; + readonly CONTEXT_LOST_WEBGL: 0x9242; + readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243; + readonly BROWSER_DEFAULT_WEBGL: 0x9244; +} + +interface WebGLRenderingContextOverloads { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */ + bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void; + bufferData(target: GLenum, data: AllowSharedBufferSource | null, usage: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */ + bufferSubData(target: GLenum, offset: GLintptr, data: AllowSharedBufferSource): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */ + compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */ + compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */ + readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */ + texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; + texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */ + texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; + texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSampler) */ +interface WebGLSampler { +} + +declare var WebGLSampler: { + prototype: WebGLSampler; + new(): WebGLSampler; +}; + +/** + * The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShader) + */ +interface WebGLShader { +} + +declare var WebGLShader: { + prototype: WebGLShader; + new(): WebGLShader; +}; + +/** + * Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat) + */ +interface WebGLShaderPrecisionFormat { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/precision) */ + readonly precision: GLint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax) */ + readonly rangeMax: GLint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin) */ + readonly rangeMin: GLint; +} + +declare var WebGLShaderPrecisionFormat: { + prototype: WebGLShaderPrecisionFormat; + new(): WebGLShaderPrecisionFormat; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSync) */ +interface WebGLSync { +} + +declare var WebGLSync: { + prototype: WebGLSync; + new(): WebGLSync; +}; + +/** + * Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTexture) + */ +interface WebGLTexture { +} + +declare var WebGLTexture: { + prototype: WebGLTexture; + new(): WebGLTexture; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTransformFeedback) */ +interface WebGLTransformFeedback { +} + +declare var WebGLTransformFeedback: { + prototype: WebGLTransformFeedback; + new(): WebGLTransformFeedback; +}; + +/** + * Part of the WebGL API and represents the location of a uniform variable in a shader program. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLUniformLocation) + */ +interface WebGLUniformLocation { +} + +declare var WebGLUniformLocation: { + prototype: WebGLUniformLocation; + new(): WebGLUniformLocation; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) */ +interface WebGLVertexArrayObject { +} + +declare var WebGLVertexArrayObject: { + prototype: WebGLVertexArrayObject; + new(): WebGLVertexArrayObject; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObjectOES) */ +interface WebGLVertexArrayObjectOES { +} + +interface WebSocketEventMap { + "close": CloseEvent; + "error": Event; + "message": MessageEvent; + "open": Event; +} + +/** + * Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket) + */ +interface WebSocket extends EventTarget { + /** + * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts: + * + * Can be set, to change how binary data is returned. The default is "blob". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/binaryType) + */ + binaryType: BinaryType; + /** + * Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network. + * + * If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.) + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/bufferedAmount) + */ + readonly bufferedAmount: number; + /** + * Returns the extensions selected by the server, if any. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions) + */ + readonly extensions: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close_event) */ + onclose: ((this: WebSocket, ev: CloseEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/error_event) */ + onerror: ((this: WebSocket, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/message_event) */ + onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/open_event) */ + onopen: ((this: WebSocket, ev: Event) => any) | null; + /** + * Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol) + */ + readonly protocol: string; + /** + * Returns the state of the WebSocket object's connection. It can have the values described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState) + */ + readonly readyState: number; + /** + * Returns the URL that was used to establish the WebSocket connection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url) + */ + readonly url: string; + /** + * Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close) + */ + close(code?: number, reason?: string): void; + /** + * Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send) + */ + send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void; + readonly CONNECTING: 0; + readonly OPEN: 1; + readonly CLOSING: 2; + readonly CLOSED: 3; + addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var WebSocket: { + prototype: WebSocket; + new(url: string | URL, protocols?: string | string[]): WebSocket; + readonly CONNECTING: 0; + readonly OPEN: 1; + readonly CLOSING: 2; + readonly CLOSED: 3; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport) + */ +interface WebTransport { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */ + readonly closed: Promise<WebTransportCloseInfo>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ + readonly datagrams: WebTransportDatagramDuplexStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams) */ + readonly incomingBidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ + readonly incomingUnidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ + readonly ready: Promise<undefined>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) */ + close(closeInfo?: WebTransportCloseInfo): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ + createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */ + createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>; +} + +declare var WebTransport: { + prototype: WebTransport; + new(url: string | URL, options?: WebTransportOptions): WebTransport; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream) + */ +interface WebTransportBidirectionalStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable) */ + readonly readable: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable) */ + readonly writable: WritableStream; +} + +declare var WebTransportBidirectionalStream: { + prototype: WebTransportBidirectionalStream; + new(): WebTransportBidirectionalStream; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream) + */ +interface WebTransportDatagramDuplexStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) */ + incomingHighWaterMark: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ + incomingMaxAge: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) */ + readonly maxDatagramSize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) */ + outgoingHighWaterMark: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ + outgoingMaxAge: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) */ + readonly readable: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ + readonly writable: WritableStream; +} + +declare var WebTransportDatagramDuplexStream: { + prototype: WebTransportDatagramDuplexStream; + new(): WebTransportDatagramDuplexStream; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError) + */ +interface WebTransportError extends DOMException { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source) */ + readonly source: WebTransportErrorSource; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode) */ + readonly streamErrorCode: number | null; +} + +declare var WebTransportError: { + prototype: WebTransportError; + new(message?: string, options?: WebTransportErrorOptions): WebTransportError; +}; + +/** + * Events that occur due to the user moving a mouse wheel or similar input device. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent) + */ +interface WheelEvent extends MouseEvent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaMode) */ + readonly deltaMode: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaX) */ + readonly deltaX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaY) */ + readonly deltaY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaZ) */ + readonly deltaZ: number; + readonly DOM_DELTA_PIXEL: 0x00; + readonly DOM_DELTA_LINE: 0x01; + readonly DOM_DELTA_PAGE: 0x02; +} + +declare var WheelEvent: { + prototype: WheelEvent; + new(type: string, eventInitDict?: WheelEventInit): WheelEvent; + readonly DOM_DELTA_PIXEL: 0x00; + readonly DOM_DELTA_LINE: 0x01; + readonly DOM_DELTA_PAGE: 0x02; +}; + +interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap { + "DOMContentLoaded": Event; + "devicemotion": DeviceMotionEvent; + "deviceorientation": DeviceOrientationEvent; + "deviceorientationabsolute": DeviceOrientationEvent; + "gamepadconnected": GamepadEvent; + "gamepaddisconnected": GamepadEvent; + "orientationchange": Event; +} + +/** + * A window containing a DOM document; the document property points to the DOM document loaded in that window. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window) + */ +interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage { + /** + * @deprecated This is a legacy alias of \`navigator\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator) + */ + readonly clientInformation: Navigator; + /** + * Returns true if the window has been closed, false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/closed) + */ + readonly closed: boolean; + /** + * Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements) + */ + readonly customElements: CustomElementRegistry; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicePixelRatio) */ + readonly devicePixelRatio: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/document) */ + readonly document: Document; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/event) + */ + readonly event: Event | undefined; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/external) + */ + readonly external: External; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frameElement) */ + readonly frameElement: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frames) */ + readonly frames: WindowProxy; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/history) */ + readonly history: History; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerHeight) */ + readonly innerHeight: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerWidth) */ + readonly innerWidth: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location) */ + get location(): Location; + set location(href: string | Location); + /** + * Returns true if the location bar is visible; otherwise, returns false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/locationbar) + */ + readonly locationbar: BarProp; + /** + * Returns true if the menu bar is visible; otherwise, returns false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/menubar) + */ + readonly menubar: BarProp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name) */ + name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator) */ + readonly navigator: Navigator; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicemotion_event) + */ + ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientation_event) + */ + ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientationabsolute_event) + */ + ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientationchange_event) + */ + onorientationchange: ((this: Window, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/opener) */ + opener: any; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientation) + */ + readonly orientation: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerHeight) */ + readonly outerHeight: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth) */ + readonly outerWidth: number; + /** + * @deprecated This is a legacy alias of \`scrollX\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) + */ + readonly pageXOffset: number; + /** + * @deprecated This is a legacy alias of \`scrollY\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) + */ + readonly pageYOffset: number; + /** + * Refers to either the parent WindowProxy, or itself. + * + * It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/parent) + */ + readonly parent: WindowProxy; + /** + * Returns true if the personal bar is visible; otherwise, returns false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/personalbar) + */ + readonly personalbar: BarProp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screen) */ + readonly screen: Screen; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenLeft) */ + readonly screenLeft: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenTop) */ + readonly screenTop: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenX) */ + readonly screenX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenY) */ + readonly screenY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */ + readonly scrollX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */ + readonly scrollY: number; + /** + * Returns true if the scrollbars are visible; otherwise, returns false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollbars) + */ + readonly scrollbars: BarProp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/self) */ + readonly self: Window & typeof globalThis; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/speechSynthesis) */ + readonly speechSynthesis: SpeechSynthesis; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/status) + */ + status: string; + /** + * Returns true if the status bar is visible; otherwise, returns false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/statusbar) + */ + readonly statusbar: BarProp; + /** + * Returns true if the toolbar is visible; otherwise, returns false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/toolbar) + */ + readonly toolbar: BarProp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */ + readonly top: WindowProxy | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport) */ + readonly visualViewport: VisualViewport | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window) */ + readonly window: Window & typeof globalThis; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */ + alert(message?: any): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) */ + blur(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */ + cancelIdleCallback(handle: number): void; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/captureEvents) + */ + captureEvents(): void; + /** + * Closes the window. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/close) + */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/confirm) */ + confirm(message?: string): boolean; + /** + * Moves the focus to the window's browsing context, if any. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/focus) + */ + focus(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle) */ + getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getSelection) */ + getSelection(): Selection | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/matchMedia) */ + matchMedia(query: string): MediaQueryList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveBy) */ + moveBy(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveTo) */ + moveTo(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/open) */ + open(url?: string | URL, target?: string, features?: string): WindowProxy | null; + /** + * Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects. + * + * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side. + * + * A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only. + * + * If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*". + * + * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/postMessage) + */ + postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void; + postMessage(message: any, options?: WindowPostMessageOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/print) */ + print(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/prompt) */ + prompt(message?: string, _default?: string): string | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/releaseEvents) + */ + releaseEvents(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/requestIdleCallback) */ + requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeBy) */ + resizeBy(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeTo) */ + resizeTo(width: number, height: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll) */ + scroll(options?: ScrollToOptions): void; + scroll(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy) */ + scrollBy(options?: ScrollToOptions): void; + scrollBy(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo) */ + scrollTo(options?: ScrollToOptions): void; + scrollTo(x: number, y: number): void; + /** + * Cancels the document load. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/stop) + */ + stop(): void; + addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + [index: number]: Window; +} + +declare var Window: { + prototype: Window; + new(): Window; +}; + +interface WindowEventHandlersEventMap { + "afterprint": Event; + "beforeprint": Event; + "beforeunload": BeforeUnloadEvent; + "gamepadconnected": GamepadEvent; + "gamepaddisconnected": GamepadEvent; + "hashchange": HashChangeEvent; + "languagechange": Event; + "message": MessageEvent; + "messageerror": MessageEvent; + "offline": Event; + "online": Event; + "pagehide": PageTransitionEvent; + "pageshow": PageTransitionEvent; + "popstate": PopStateEvent; + "rejectionhandled": PromiseRejectionEvent; + "storage": StorageEvent; + "unhandledrejection": PromiseRejectionEvent; + "unload": Event; +} + +interface WindowEventHandlers { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/afterprint_event) */ + onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeprint_event) */ + onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeunload_event) */ + onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepadconnected_event) */ + ongamepadconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepaddisconnected_event) */ + ongamepaddisconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/hashchange_event) */ + onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/languagechange_event) */ + onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/message_event) */ + onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/messageerror_event) */ + onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/offline_event) */ + onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/online_event) */ + ononline: ((this: WindowEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagehide_event) */ + onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event) */ + onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event) */ + onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/rejectionhandled_event) */ + onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/storage_event) */ + onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */ + onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event) + */ + onunload: ((this: WindowEventHandlers, ev: Event) => any) | null; + addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +interface WindowLocalStorage { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/localStorage) */ + readonly localStorage: Storage; +} + +interface WindowOrWorkerGlobalScope { + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches) + */ + readonly caches: CacheStorage; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */ + readonly crossOriginIsolated: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */ + readonly crypto: Crypto; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */ + readonly indexedDB: IDBFactory; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */ + readonly isSecureContext: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */ + readonly origin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */ + readonly performance: Performance; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */ + atob(data: string): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */ + btoa(data: string): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */ + clearInterval(id: number | undefined): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */ + clearTimeout(id: number | undefined): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */ + createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>; + createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */ + fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */ + queueMicrotask(callback: VoidFunction): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */ + reportError(e: any): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */ + setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */ + setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */ + structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T; +} + +interface WindowSessionStorage { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/sessionStorage) */ + readonly sessionStorage: Storage; +} + +interface WorkerEventMap extends AbstractWorkerEventMap { + "message": MessageEvent; + "messageerror": MessageEvent; +} + +/** + * This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker) + */ +interface Worker extends EventTarget, AbstractWorker { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/message_event) */ + onmessage: ((this: Worker, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/messageerror_event) */ + onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null; + /** + * Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/postMessage) + */ + postMessage(message: any, transfer: Transferable[]): void; + postMessage(message: any, options?: StructuredSerializeOptions): void; + /** + * Aborts worker's associated global environment. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/terminate) + */ + terminate(): void; + addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var Worker: { + prototype: Worker; + new(scriptURL: string | URL, options?: WorkerOptions): Worker; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worklet) + */ +interface Worklet { + /** + * Loads and executes the module script given by moduleURL into all of worklet's global scopes. It can also create additional global scopes as part of this process, depending on the worklet type. The returned promise will fulfill once the script has been successfully loaded and run in all global scopes. + * + * The credentials option can be set to a credentials mode to modify the script-fetching process. It defaults to "same-origin". + * + * Any failures in fetching the script or its dependencies will cause the returned promise to be rejected with an "AbortError" DOMException. Any errors in parsing the script or its dependencies will cause the returned promise to be rejected with the exception generated during parsing. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worklet/addModule) + */ + addModule(moduleURL: string | URL, options?: WorkletOptions): Promise<void>; +} + +declare var Worklet: { + prototype: Worklet; + new(): Worklet; +}; + +/** + * This Streams API interface provides a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream) + */ +interface WritableStream<W = any> { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked) */ + readonly locked: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) */ + abort(reason?: any): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close) */ + close(): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) */ + getWriter(): WritableStreamDefaultWriter<W>; +} + +declare var WritableStream: { + prototype: WritableStream; + new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>; +}; + +/** + * This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController) + */ +interface WritableStreamDefaultController { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) */ + readonly signal: AbortSignal; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */ + error(e?: any): void; +} + +declare var WritableStreamDefaultController: { + prototype: WritableStreamDefaultController; + new(): WritableStreamDefaultController; +}; + +/** + * This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter) + */ +interface WritableStreamDefaultWriter<W = any> { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) */ + readonly closed: Promise<undefined>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) */ + readonly desiredSize: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) */ + readonly ready: Promise<undefined>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) */ + abort(reason?: any): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) */ + close(): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock) */ + releaseLock(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write) */ + write(chunk?: W): Promise<void>; +} + +declare var WritableStreamDefaultWriter: { + prototype: WritableStreamDefaultWriter; + new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>; +}; + +/** + * An XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLDocument) + */ +interface XMLDocument extends Document { + addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var XMLDocument: { + prototype: XMLDocument; + new(): XMLDocument; +}; + +interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap { + "readystatechange": Event; +} + +/** + * Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest) + */ +interface XMLHttpRequest extends XMLHttpRequestEventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readystatechange_event) */ + onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null; + /** + * Returns client's state. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState) + */ + readonly readyState: number; + /** + * Returns the response body. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/response) + */ + readonly response: any; + /** + * Returns response as text. + * + * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseText) + */ + readonly responseText: string; + /** + * Returns the response type. + * + * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text". + * + * When set: setting to "document" is ignored if current global object is not a Window object. + * + * When set: throws an "InvalidStateError" DOMException if state is loading or done. + * + * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseType) + */ + responseType: XMLHttpRequestResponseType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseURL) */ + readonly responseURL: string; + /** + * Returns the response as document. + * + * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseXML) + */ + readonly responseXML: Document | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/status) */ + readonly status: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/statusText) */ + readonly statusText: string; + /** + * Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method). + * + * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/timeout) + */ + timeout: number; + /** + * Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/upload) + */ + readonly upload: XMLHttpRequestUpload; + /** + * True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false. + * + * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/withCredentials) + */ + withCredentials: boolean; + /** + * Cancels any network activity. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/abort) + */ + abort(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getAllResponseHeaders) */ + getAllResponseHeaders(): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getResponseHeader) */ + getResponseHeader(name: string): string | null; + /** + * Sets the request method, request URL, and synchronous flag. + * + * Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed. + * + * Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`. + * + * Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open) + */ + open(method: string, url: string | URL): void; + open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void; + /** + * Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.) + * + * Throws an "InvalidStateError" DOMException if state is loading or done. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType) + */ + overrideMimeType(mime: string): void; + /** + * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD. + * + * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/send) + */ + send(body?: Document | XMLHttpRequestBodyInit | null): void; + /** + * Combines a header in author request headers. + * + * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set. + * + * Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/setRequestHeader) + */ + setRequestHeader(name: string, value: string): void; + readonly UNSENT: 0; + readonly OPENED: 1; + readonly HEADERS_RECEIVED: 2; + readonly LOADING: 3; + readonly DONE: 4; + addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var XMLHttpRequest: { + prototype: XMLHttpRequest; + new(): XMLHttpRequest; + readonly UNSENT: 0; + readonly OPENED: 1; + readonly HEADERS_RECEIVED: 2; + readonly LOADING: 3; + readonly DONE: 4; +}; + +interface XMLHttpRequestEventTargetEventMap { + "abort": ProgressEvent<XMLHttpRequestEventTarget>; + "error": ProgressEvent<XMLHttpRequestEventTarget>; + "load": ProgressEvent<XMLHttpRequestEventTarget>; + "loadend": ProgressEvent<XMLHttpRequestEventTarget>; + "loadstart": ProgressEvent<XMLHttpRequestEventTarget>; + "progress": ProgressEvent<XMLHttpRequestEventTarget>; + "timeout": ProgressEvent<XMLHttpRequestEventTarget>; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestEventTarget) */ +interface XMLHttpRequestEventTarget extends EventTarget { + onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; + onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; + onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; + onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; + onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; + onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; + ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; + addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var XMLHttpRequestEventTarget: { + prototype: XMLHttpRequestEventTarget; + new(): XMLHttpRequestEventTarget; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestUpload) */ +interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget { + addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var XMLHttpRequestUpload: { + prototype: XMLHttpRequestUpload; + new(): XMLHttpRequestUpload; +}; + +/** + * Provides the serializeToString() method to construct an XML string representing a DOM tree. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLSerializer) + */ +interface XMLSerializer { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLSerializer/serializeToString) */ + serializeToString(root: Node): string; +} + +declare var XMLSerializer: { + prototype: XMLSerializer; + new(): XMLSerializer; +}; + +/** + * The XPathEvaluator interface allows to compile and evaluate XPath expressions. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathEvaluator) + */ +interface XPathEvaluator extends XPathEvaluatorBase { +} + +declare var XPathEvaluator: { + prototype: XPathEvaluator; + new(): XPathEvaluator; +}; + +interface XPathEvaluatorBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createExpression) */ + createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNSResolver) */ + createNSResolver(nodeResolver: Node): Node; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/evaluate) */ + evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult; +} + +/** + * This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its DOM tree. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathExpression) + */ +interface XPathExpression { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathExpression/evaluate) */ + evaluate(contextNode: Node, type?: number, result?: XPathResult | null): XPathResult; +} + +declare var XPathExpression: { + prototype: XPathExpression; + new(): XPathExpression; +}; + +/** + * The results generated by evaluating an XPath expression within the context of a given node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult) + */ +interface XPathResult { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/booleanValue) */ + readonly booleanValue: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/invalidIteratorState) */ + readonly invalidIteratorState: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/numberValue) */ + readonly numberValue: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/resultType) */ + readonly resultType: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/singleNodeValue) */ + readonly singleNodeValue: Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/snapshotLength) */ + readonly snapshotLength: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/stringValue) */ + readonly stringValue: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/iterateNext) */ + iterateNext(): Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/snapshotItem) */ + snapshotItem(index: number): Node | null; + readonly ANY_TYPE: 0; + readonly NUMBER_TYPE: 1; + readonly STRING_TYPE: 2; + readonly BOOLEAN_TYPE: 3; + readonly UNORDERED_NODE_ITERATOR_TYPE: 4; + readonly ORDERED_NODE_ITERATOR_TYPE: 5; + readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6; + readonly ORDERED_NODE_SNAPSHOT_TYPE: 7; + readonly ANY_UNORDERED_NODE_TYPE: 8; + readonly FIRST_ORDERED_NODE_TYPE: 9; +} + +declare var XPathResult: { + prototype: XPathResult; + new(): XPathResult; + readonly ANY_TYPE: 0; + readonly NUMBER_TYPE: 1; + readonly STRING_TYPE: 2; + readonly BOOLEAN_TYPE: 3; + readonly UNORDERED_NODE_ITERATOR_TYPE: 4; + readonly ORDERED_NODE_ITERATOR_TYPE: 5; + readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6; + readonly ORDERED_NODE_SNAPSHOT_TYPE: 7; + readonly ANY_UNORDERED_NODE_TYPE: 8; + readonly FIRST_ORDERED_NODE_TYPE: 9; +}; + +/** + * An XSLTProcessor applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate <xsl:param> parameter values, and to apply the transformation to documents. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor) + */ +interface XSLTProcessor { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/clearParameters) */ + clearParameters(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/getParameter) */ + getParameter(namespaceURI: string | null, localName: string): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/importStylesheet) */ + importStylesheet(style: Node): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/removeParameter) */ + removeParameter(namespaceURI: string | null, localName: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/reset) */ + reset(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/setParameter) */ + setParameter(namespaceURI: string | null, localName: string, value: any): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToDocument) */ + transformToDocument(source: Node): Document; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToFragment) */ + transformToFragment(source: Node, output: Document): DocumentFragment; +} + +declare var XSLTProcessor: { + prototype: XSLTProcessor; + new(): XSLTProcessor; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) */ +interface Console { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static) */ + assert(condition?: boolean, ...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) */ + clear(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */ + count(label?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */ + countReset(label?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */ + debug(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ + dir(item?: any, options?: any): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) */ + dirxml(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) */ + error(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */ + group(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */ + groupCollapsed(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */ + groupEnd(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */ + info(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) */ + log(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) */ + table(tabularData?: any, properties?: string[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */ + time(label?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */ + timeEnd(label?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */ + timeLog(label?: string, ...data: any[]): void; + timeStamp(label?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */ + trace(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) */ + warn(...data: any[]): void; +} + +declare var console: Console; + +/** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */ +declare namespace CSS { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/highlights_static) */ + var highlights: HighlightRegistry; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function Hz(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function Q(value: number): CSSUnitValue; + function cap(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function ch(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function cm(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function cqb(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function cqh(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function cqi(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function cqmax(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function cqmin(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function cqw(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function deg(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function dpcm(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function dpi(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function dppx(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function dvb(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function dvh(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function dvi(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function dvmax(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function dvmin(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function dvw(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function em(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/escape_static) */ + function escape(ident: string): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function ex(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function fr(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function grad(value: number): CSSUnitValue; + function ic(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function kHz(value: number): CSSUnitValue; + function lh(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function lvb(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function lvh(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function lvi(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function lvmax(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function lvmin(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function lvw(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function mm(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function ms(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function number(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function pc(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function percent(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function pt(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function px(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function rad(value: number): CSSUnitValue; + function rcap(value: number): CSSUnitValue; + function rch(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/registerProperty_static) */ + function registerProperty(definition: PropertyDefinition): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function rem(value: number): CSSUnitValue; + function rex(value: number): CSSUnitValue; + function ric(value: number): CSSUnitValue; + function rlh(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function s(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/supports_static) */ + function supports(property: string, value: string): boolean; + function supports(conditionText: string): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function svb(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function svh(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function svi(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function svmax(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function svmin(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function svw(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function turn(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function vb(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function vh(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function vi(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function vmax(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function vmin(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function vw(value: number): CSSUnitValue; +} + +declare namespace WebAssembly { + interface CompileError extends Error { + } + + var CompileError: { + prototype: CompileError; + new(message?: string): CompileError; + (message?: string): CompileError; + }; + + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global) */ + interface Global<T extends ValueType = ValueType> { + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/value) */ + value: ValueTypeMap[T]; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/valueOf) */ + valueOf(): ValueTypeMap[T]; + } + + var Global: { + prototype: Global; + new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>; + }; + + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance) */ + interface Instance { + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance/exports) */ + readonly exports: Exports; + } + + var Instance: { + prototype: Instance; + new(module: Module, importObject?: Imports): Instance; + }; + + interface LinkError extends Error { + } + + var LinkError: { + prototype: LinkError; + new(message?: string): LinkError; + (message?: string): LinkError; + }; + + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory) */ + interface Memory { + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/buffer) */ + readonly buffer: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/grow) */ + grow(delta: number): number; + } + + var Memory: { + prototype: Memory; + new(descriptor: MemoryDescriptor): Memory; + }; + + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module) */ + interface Module { + } + + var Module: { + prototype: Module; + new(bytes: BufferSource): Module; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/customSections_static) */ + customSections(moduleObject: Module, sectionName: string): ArrayBuffer[]; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/exports_static) */ + exports(moduleObject: Module): ModuleExportDescriptor[]; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/imports_static) */ + imports(moduleObject: Module): ModuleImportDescriptor[]; + }; + + interface RuntimeError extends Error { + } + + var RuntimeError: { + prototype: RuntimeError; + new(message?: string): RuntimeError; + (message?: string): RuntimeError; + }; + + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table) */ + interface Table { + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/get) */ + get(index: number): any; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/grow) */ + grow(delta: number, value?: any): number; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/set) */ + set(index: number, value?: any): void; + } + + var Table: { + prototype: Table; + new(descriptor: TableDescriptor, value?: any): Table; + }; + + interface GlobalDescriptor<T extends ValueType = ValueType> { + mutable?: boolean; + value: T; + } + + interface MemoryDescriptor { + initial: number; + maximum?: number; + shared?: boolean; + } + + interface ModuleExportDescriptor { + kind: ImportExportKind; + name: string; + } + + interface ModuleImportDescriptor { + kind: ImportExportKind; + module: string; + name: string; + } + + interface TableDescriptor { + element: TableKind; + initial: number; + maximum?: number; + } + + interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; + } + + interface WebAssemblyInstantiatedSource { + instance: Instance; + module: Module; + } + + type ImportExportKind = "function" | "global" | "memory" | "table"; + type TableKind = "anyfunc" | "externref"; + type ExportValue = Function | Global | Memory | Table; + type Exports = Record<string, ExportValue>; + type ImportValue = ExportValue | number; + type Imports = Record<string, ModuleImports>; + type ModuleImports = Record<string, ImportValue>; + type ValueType = keyof ValueTypeMap; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compile_static) */ + function compile(bytes: BufferSource): Promise<Module>; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compileStreaming_static) */ + function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiate_static) */ + function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>; + function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiateStreaming_static) */ + function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/validate_static) */ + function validate(bytes: BufferSource): boolean; +} + +interface BlobCallback { + (blob: Blob | null): void; +} + +interface CustomElementConstructor { + new (...params: any[]): HTMLElement; +} + +interface DecodeErrorCallback { + (error: DOMException): void; +} + +interface DecodeSuccessCallback { + (decodedData: AudioBuffer): void; +} + +interface EncodedVideoChunkOutputCallback { + (chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): void; +} + +interface ErrorCallback { + (err: DOMException): void; +} + +interface FileCallback { + (file: File): void; +} + +interface FileSystemEntriesCallback { + (entries: FileSystemEntry[]): void; +} + +interface FileSystemEntryCallback { + (entry: FileSystemEntry): void; +} + +interface FrameRequestCallback { + (time: DOMHighResTimeStamp): void; +} + +interface FunctionStringCallback { + (data: string): void; +} + +interface IdleRequestCallback { + (deadline: IdleDeadline): void; +} + +interface IntersectionObserverCallback { + (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void; +} + +interface LockGrantedCallback { + (lock: Lock | null): any; +} + +interface MediaSessionActionHandler { + (details: MediaSessionActionDetails): void; +} + +interface MutationCallback { + (mutations: MutationRecord[], observer: MutationObserver): void; +} + +interface NotificationPermissionCallback { + (permission: NotificationPermission): void; +} + +interface OnBeforeUnloadEventHandlerNonNull { + (event: Event): string | null; +} + +interface OnErrorEventHandlerNonNull { + (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any; +} + +interface PerformanceObserverCallback { + (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void; +} + +interface PositionCallback { + (position: GeolocationPosition): void; +} + +interface PositionErrorCallback { + (positionError: GeolocationPositionError): void; +} + +interface QueuingStrategySize<T = any> { + (chunk: T): number; +} + +interface RTCPeerConnectionErrorCallback { + (error: DOMException): void; +} + +interface RTCSessionDescriptionCallback { + (description: RTCSessionDescriptionInit): void; +} + +interface RemotePlaybackAvailabilityCallback { + (available: boolean): void; +} + +interface ReportingObserverCallback { + (reports: Report[], observer: ReportingObserver): void; +} + +interface ResizeObserverCallback { + (entries: ResizeObserverEntry[], observer: ResizeObserver): void; +} + +interface TransformerFlushCallback<O> { + (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>; +} + +interface TransformerStartCallback<O> { + (controller: TransformStreamDefaultController<O>): any; +} + +interface TransformerTransformCallback<I, O> { + (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>; +} + +interface UnderlyingSinkAbortCallback { + (reason?: any): void | PromiseLike<void>; +} + +interface UnderlyingSinkCloseCallback { + (): void | PromiseLike<void>; +} + +interface UnderlyingSinkStartCallback { + (controller: WritableStreamDefaultController): any; +} + +interface UnderlyingSinkWriteCallback<W> { + (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>; +} + +interface UnderlyingSourceCancelCallback { + (reason?: any): void | PromiseLike<void>; +} + +interface UnderlyingSourcePullCallback<R> { + (controller: ReadableStreamController<R>): void | PromiseLike<void>; +} + +interface UnderlyingSourceStartCallback<R> { + (controller: ReadableStreamController<R>): any; +} + +interface VideoFrameOutputCallback { + (output: VideoFrame): void; +} + +interface VideoFrameRequestCallback { + (now: DOMHighResTimeStamp, metadata: VideoFrameCallbackMetadata): void; +} + +interface VoidFunction { + (): void; +} + +interface WebCodecsErrorCallback { + (error: DOMException): void; +} + +interface HTMLElementTagNameMap { + "a": HTMLAnchorElement; + "abbr": HTMLElement; + "address": HTMLElement; + "area": HTMLAreaElement; + "article": HTMLElement; + "aside": HTMLElement; + "audio": HTMLAudioElement; + "b": HTMLElement; + "base": HTMLBaseElement; + "bdi": HTMLElement; + "bdo": HTMLElement; + "blockquote": HTMLQuoteElement; + "body": HTMLBodyElement; + "br": HTMLBRElement; + "button": HTMLButtonElement; + "canvas": HTMLCanvasElement; + "caption": HTMLTableCaptionElement; + "cite": HTMLElement; + "code": HTMLElement; + "col": HTMLTableColElement; + "colgroup": HTMLTableColElement; + "data": HTMLDataElement; + "datalist": HTMLDataListElement; + "dd": HTMLElement; + "del": HTMLModElement; + "details": HTMLDetailsElement; + "dfn": HTMLElement; + "dialog": HTMLDialogElement; + "div": HTMLDivElement; + "dl": HTMLDListElement; + "dt": HTMLElement; + "em": HTMLElement; + "embed": HTMLEmbedElement; + "fieldset": HTMLFieldSetElement; + "figcaption": HTMLElement; + "figure": HTMLElement; + "footer": HTMLElement; + "form": HTMLFormElement; + "h1": HTMLHeadingElement; + "h2": HTMLHeadingElement; + "h3": HTMLHeadingElement; + "h4": HTMLHeadingElement; + "h5": HTMLHeadingElement; + "h6": HTMLHeadingElement; + "head": HTMLHeadElement; + "header": HTMLElement; + "hgroup": HTMLElement; + "hr": HTMLHRElement; + "html": HTMLHtmlElement; + "i": HTMLElement; + "iframe": HTMLIFrameElement; + "img": HTMLImageElement; + "input": HTMLInputElement; + "ins": HTMLModElement; + "kbd": HTMLElement; + "label": HTMLLabelElement; + "legend": HTMLLegendElement; + "li": HTMLLIElement; + "link": HTMLLinkElement; + "main": HTMLElement; + "map": HTMLMapElement; + "mark": HTMLElement; + "menu": HTMLMenuElement; + "meta": HTMLMetaElement; + "meter": HTMLMeterElement; + "nav": HTMLElement; + "noscript": HTMLElement; + "object": HTMLObjectElement; + "ol": HTMLOListElement; + "optgroup": HTMLOptGroupElement; + "option": HTMLOptionElement; + "output": HTMLOutputElement; + "p": HTMLParagraphElement; + "picture": HTMLPictureElement; + "pre": HTMLPreElement; + "progress": HTMLProgressElement; + "q": HTMLQuoteElement; + "rp": HTMLElement; + "rt": HTMLElement; + "ruby": HTMLElement; + "s": HTMLElement; + "samp": HTMLElement; + "script": HTMLScriptElement; + "search": HTMLElement; + "section": HTMLElement; + "select": HTMLSelectElement; + "slot": HTMLSlotElement; + "small": HTMLElement; + "source": HTMLSourceElement; + "span": HTMLSpanElement; + "strong": HTMLElement; + "style": HTMLStyleElement; + "sub": HTMLElement; + "summary": HTMLElement; + "sup": HTMLElement; + "table": HTMLTableElement; + "tbody": HTMLTableSectionElement; + "td": HTMLTableCellElement; + "template": HTMLTemplateElement; + "textarea": HTMLTextAreaElement; + "tfoot": HTMLTableSectionElement; + "th": HTMLTableCellElement; + "thead": HTMLTableSectionElement; + "time": HTMLTimeElement; + "title": HTMLTitleElement; + "tr": HTMLTableRowElement; + "track": HTMLTrackElement; + "u": HTMLElement; + "ul": HTMLUListElement; + "var": HTMLElement; + "video": HTMLVideoElement; + "wbr": HTMLElement; +} + +interface HTMLElementDeprecatedTagNameMap { + "acronym": HTMLElement; + "applet": HTMLUnknownElement; + "basefont": HTMLElement; + "bgsound": HTMLUnknownElement; + "big": HTMLElement; + "blink": HTMLUnknownElement; + "center": HTMLElement; + "dir": HTMLDirectoryElement; + "font": HTMLFontElement; + "frame": HTMLFrameElement; + "frameset": HTMLFrameSetElement; + "isindex": HTMLUnknownElement; + "keygen": HTMLUnknownElement; + "listing": HTMLPreElement; + "marquee": HTMLMarqueeElement; + "menuitem": HTMLElement; + "multicol": HTMLUnknownElement; + "nextid": HTMLUnknownElement; + "nobr": HTMLElement; + "noembed": HTMLElement; + "noframes": HTMLElement; + "param": HTMLParamElement; + "plaintext": HTMLElement; + "rb": HTMLElement; + "rtc": HTMLElement; + "spacer": HTMLUnknownElement; + "strike": HTMLElement; + "tt": HTMLElement; + "xmp": HTMLPreElement; +} + +interface SVGElementTagNameMap { + "a": SVGAElement; + "animate": SVGAnimateElement; + "animateMotion": SVGAnimateMotionElement; + "animateTransform": SVGAnimateTransformElement; + "circle": SVGCircleElement; + "clipPath": SVGClipPathElement; + "defs": SVGDefsElement; + "desc": SVGDescElement; + "ellipse": SVGEllipseElement; + "feBlend": SVGFEBlendElement; + "feColorMatrix": SVGFEColorMatrixElement; + "feComponentTransfer": SVGFEComponentTransferElement; + "feComposite": SVGFECompositeElement; + "feConvolveMatrix": SVGFEConvolveMatrixElement; + "feDiffuseLighting": SVGFEDiffuseLightingElement; + "feDisplacementMap": SVGFEDisplacementMapElement; + "feDistantLight": SVGFEDistantLightElement; + "feDropShadow": SVGFEDropShadowElement; + "feFlood": SVGFEFloodElement; + "feFuncA": SVGFEFuncAElement; + "feFuncB": SVGFEFuncBElement; + "feFuncG": SVGFEFuncGElement; + "feFuncR": SVGFEFuncRElement; + "feGaussianBlur": SVGFEGaussianBlurElement; + "feImage": SVGFEImageElement; + "feMerge": SVGFEMergeElement; + "feMergeNode": SVGFEMergeNodeElement; + "feMorphology": SVGFEMorphologyElement; + "feOffset": SVGFEOffsetElement; + "fePointLight": SVGFEPointLightElement; + "feSpecularLighting": SVGFESpecularLightingElement; + "feSpotLight": SVGFESpotLightElement; + "feTile": SVGFETileElement; + "feTurbulence": SVGFETurbulenceElement; + "filter": SVGFilterElement; + "foreignObject": SVGForeignObjectElement; + "g": SVGGElement; + "image": SVGImageElement; + "line": SVGLineElement; + "linearGradient": SVGLinearGradientElement; + "marker": SVGMarkerElement; + "mask": SVGMaskElement; + "metadata": SVGMetadataElement; + "mpath": SVGMPathElement; + "path": SVGPathElement; + "pattern": SVGPatternElement; + "polygon": SVGPolygonElement; + "polyline": SVGPolylineElement; + "radialGradient": SVGRadialGradientElement; + "rect": SVGRectElement; + "script": SVGScriptElement; + "set": SVGSetElement; + "stop": SVGStopElement; + "style": SVGStyleElement; + "svg": SVGSVGElement; + "switch": SVGSwitchElement; + "symbol": SVGSymbolElement; + "text": SVGTextElement; + "textPath": SVGTextPathElement; + "title": SVGTitleElement; + "tspan": SVGTSpanElement; + "use": SVGUseElement; + "view": SVGViewElement; +} + +interface MathMLElementTagNameMap { + "annotation": MathMLElement; + "annotation-xml": MathMLElement; + "maction": MathMLElement; + "math": MathMLElement; + "merror": MathMLElement; + "mfrac": MathMLElement; + "mi": MathMLElement; + "mmultiscripts": MathMLElement; + "mn": MathMLElement; + "mo": MathMLElement; + "mover": MathMLElement; + "mpadded": MathMLElement; + "mphantom": MathMLElement; + "mprescripts": MathMLElement; + "mroot": MathMLElement; + "mrow": MathMLElement; + "ms": MathMLElement; + "mspace": MathMLElement; + "msqrt": MathMLElement; + "mstyle": MathMLElement; + "msub": MathMLElement; + "msubsup": MathMLElement; + "msup": MathMLElement; + "mtable": MathMLElement; + "mtd": MathMLElement; + "mtext": MathMLElement; + "mtr": MathMLElement; + "munder": MathMLElement; + "munderover": MathMLElement; + "semantics": MathMLElement; +} + +/** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */ +type ElementTagNameMap = HTMLElementTagNameMap & Pick<SVGElementTagNameMap, Exclude<keyof SVGElementTagNameMap, keyof HTMLElementTagNameMap>>; + +declare var Audio: { + new(src?: string): HTMLAudioElement; +}; +declare var Image: { + new(width?: number, height?: number): HTMLImageElement; +}; +declare var Option: { + new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement; +}; +/** + * @deprecated This is a legacy alias of \`navigator\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator) + */ +declare var clientInformation: Navigator; +/** + * Returns true if the window has been closed, false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/closed) + */ +declare var closed: boolean; +/** + * Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements) + */ +declare var customElements: CustomElementRegistry; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicePixelRatio) */ +declare var devicePixelRatio: number; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/document) */ +declare var document: Document; +/** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/event) + */ +declare var event: Event | undefined; +/** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/external) + */ +declare var external: External; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frameElement) */ +declare var frameElement: Element | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frames) */ +declare var frames: WindowProxy; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/history) */ +declare var history: History; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerHeight) */ +declare var innerHeight: number; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerWidth) */ +declare var innerWidth: number; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/length) */ +declare var length: number; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location) */ +declare var location: Location; +/** + * Returns true if the location bar is visible; otherwise, returns false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/locationbar) + */ +declare var locationbar: BarProp; +/** + * Returns true if the menu bar is visible; otherwise, returns false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/menubar) + */ +declare var menubar: BarProp; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name) */ +/** @deprecated */ +declare const name: void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator) */ +declare var navigator: Navigator; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicemotion_event) + */ +declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientation_event) + */ +declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientationabsolute_event) + */ +declare var ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null; +/** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientationchange_event) + */ +declare var onorientationchange: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/opener) */ +declare var opener: any; +/** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientation) + */ +declare var orientation: number; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerHeight) */ +declare var outerHeight: number; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth) */ +declare var outerWidth: number; +/** + * @deprecated This is a legacy alias of \`scrollX\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) + */ +declare var pageXOffset: number; +/** + * @deprecated This is a legacy alias of \`scrollY\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) + */ +declare var pageYOffset: number; +/** + * Refers to either the parent WindowProxy, or itself. + * + * It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/parent) + */ +declare var parent: WindowProxy; +/** + * Returns true if the personal bar is visible; otherwise, returns false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/personalbar) + */ +declare var personalbar: BarProp; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screen) */ +declare var screen: Screen; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenLeft) */ +declare var screenLeft: number; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenTop) */ +declare var screenTop: number; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenX) */ +declare var screenX: number; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenY) */ +declare var screenY: number; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */ +declare var scrollX: number; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */ +declare var scrollY: number; +/** + * Returns true if the scrollbars are visible; otherwise, returns false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollbars) + */ +declare var scrollbars: BarProp; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/self) */ +declare var self: Window & typeof globalThis; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/speechSynthesis) */ +declare var speechSynthesis: SpeechSynthesis; +/** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/status) + */ +declare var status: string; +/** + * Returns true if the status bar is visible; otherwise, returns false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/statusbar) + */ +declare var statusbar: BarProp; +/** + * Returns true if the toolbar is visible; otherwise, returns false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/toolbar) + */ +declare var toolbar: BarProp; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */ +declare var top: WindowProxy | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport) */ +declare var visualViewport: VisualViewport | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window) */ +declare var window: Window & typeof globalThis; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */ +declare function alert(message?: any): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) */ +declare function blur(): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */ +declare function cancelIdleCallback(handle: number): void; +/** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/captureEvents) + */ +declare function captureEvents(): void; +/** + * Closes the window. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/close) + */ +declare function close(): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/confirm) */ +declare function confirm(message?: string): boolean; +/** + * Moves the focus to the window's browsing context, if any. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/focus) + */ +declare function focus(): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle) */ +declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getSelection) */ +declare function getSelection(): Selection | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/matchMedia) */ +declare function matchMedia(query: string): MediaQueryList; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveBy) */ +declare function moveBy(x: number, y: number): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveTo) */ +declare function moveTo(x: number, y: number): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/open) */ +declare function open(url?: string | URL, target?: string, features?: string): WindowProxy | null; +/** + * Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects. + * + * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side. + * + * A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only. + * + * If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*". + * + * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/postMessage) + */ +declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void; +declare function postMessage(message: any, options?: WindowPostMessageOptions): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/print) */ +declare function print(): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/prompt) */ +declare function prompt(message?: string, _default?: string): string | null; +/** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/releaseEvents) + */ +declare function releaseEvents(): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/requestIdleCallback) */ +declare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeBy) */ +declare function resizeBy(x: number, y: number): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeTo) */ +declare function resizeTo(width: number, height: number): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll) */ +declare function scroll(options?: ScrollToOptions): void; +declare function scroll(x: number, y: number): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy) */ +declare function scrollBy(options?: ScrollToOptions): void; +declare function scrollBy(x: number, y: number): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo) */ +declare function scrollTo(options?: ScrollToOptions): void; +declare function scrollTo(x: number, y: number): void; +/** + * Cancels the document load. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/stop) + */ +declare function stop(): void; +declare function toString(): string; +/** + * 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) + */ +declare function dispatchEvent(event: Event): boolean; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */ +declare function cancelAnimationFrame(handle: number): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */ +declare function requestAnimationFrame(callback: FrameRequestCallback): number; +/** + * Fires when the user aborts the download. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event) + */ +declare var onabort: ((this: Window, ev: UIEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */ +declare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */ +declare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */ +declare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */ +declare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */ +declare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */ +declare var onbeforeinput: ((this: Window, ev: InputEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */ +declare var onbeforetoggle: ((this: Window, 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) + */ +declare var onblur: ((this: Window, ev: FocusEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ +declare var oncancel: ((this: Window, 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) + */ +declare var oncanplay: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */ +declare var oncanplaythrough: ((this: Window, 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) + */ +declare var onchange: ((this: Window, 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) + */ +declare var onclick: ((this: Window, ev: MouseEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ +declare var onclose: ((this: Window, 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) + */ +declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */ +declare var oncopy: ((this: Window, ev: ClipboardEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */ +declare var oncuechange: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */ +declare var oncut: ((this: Window, 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) + */ +declare var ondblclick: ((this: Window, 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) + */ +declare var ondrag: ((this: Window, 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) + */ +declare var ondragend: ((this: Window, 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) + */ +declare var ondragenter: ((this: Window, 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) + */ +declare var ondragleave: ((this: Window, 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) + */ +declare var ondragover: ((this: Window, 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) + */ +declare var ondragstart: ((this: Window, ev: DragEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */ +declare var ondrop: ((this: Window, 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) + */ +declare var ondurationchange: ((this: Window, 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) + */ +declare var onemptied: ((this: Window, 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) + */ +declare var onended: ((this: Window, 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) + */ +declare var onerror: OnErrorEventHandler; +/** + * Fires when the object receives focus. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) + */ +declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */ +declare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */ +declare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */ +declare var oninput: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */ +declare var oninvalid: ((this: Window, 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) + */ +declare var onkeydown: ((this: Window, 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) + */ +declare var onkeypress: ((this: Window, 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) + */ +declare var onkeyup: ((this: Window, 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) + */ +declare var onload: ((this: Window, 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) + */ +declare var onloadeddata: ((this: Window, 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) + */ +declare var onloadedmetadata: ((this: Window, 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) + */ +declare var onloadstart: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */ +declare var onlostpointercapture: ((this: Window, 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) + */ +declare var onmousedown: ((this: Window, ev: MouseEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */ +declare var onmouseenter: ((this: Window, ev: MouseEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */ +declare var onmouseleave: ((this: Window, 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) + */ +declare var onmousemove: ((this: Window, 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) + */ +declare var onmouseout: ((this: Window, 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) + */ +declare var onmouseover: ((this: Window, 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) + */ +declare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */ +declare var onpaste: ((this: Window, 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) + */ +declare var onpause: ((this: Window, 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) + */ +declare var onplay: ((this: Window, 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) + */ +declare var onplaying: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */ +declare var onpointercancel: ((this: Window, ev: PointerEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */ +declare var onpointerdown: ((this: Window, ev: PointerEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */ +declare var onpointerenter: ((this: Window, ev: PointerEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */ +declare var onpointerleave: ((this: Window, ev: PointerEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */ +declare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */ +declare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */ +declare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */ +declare var onpointerup: ((this: Window, 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) + */ +declare var onprogress: ((this: Window, 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) + */ +declare var onratechange: ((this: Window, 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) + */ +declare var onreset: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */ +declare var onresize: ((this: Window, 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) + */ +declare var onscroll: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */ +declare var onscrollend: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */ +declare var onsecuritypolicyviolation: ((this: Window, 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) + */ +declare var onseeked: ((this: Window, 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) + */ +declare var onseeking: ((this: Window, 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) + */ +declare var onselect: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */ +declare var onselectionchange: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */ +declare var onselectstart: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */ +declare var onslotchange: ((this: Window, 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) + */ +declare var onstalled: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */ +declare var onsubmit: ((this: Window, 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) + */ +declare var onsuspend: ((this: Window, 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) + */ +declare var ontimeupdate: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */ +declare var ontoggle: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */ +declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */ +declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */ +declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */ +declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */ +declare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */ +declare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */ +declare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */ +declare var ontransitionstart: ((this: Window, 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) + */ +declare var onvolumechange: ((this: Window, 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) + */ +declare var onwaiting: ((this: Window, ev: Event) => any) | null; +/** + * @deprecated This is a legacy alias of \`onanimationend\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) + */ +declare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null; +/** + * @deprecated This is a legacy alias of \`onanimationiteration\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) + */ +declare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null; +/** + * @deprecated This is a legacy alias of \`onanimationstart\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) + */ +declare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null; +/** + * @deprecated This is a legacy alias of \`ontransitionend\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) + */ +declare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */ +declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/afterprint_event) */ +declare var onafterprint: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeprint_event) */ +declare var onbeforeprint: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeunload_event) */ +declare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepadconnected_event) */ +declare var ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepaddisconnected_event) */ +declare var ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/hashchange_event) */ +declare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/languagechange_event) */ +declare var onlanguagechange: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/message_event) */ +declare var onmessage: ((this: Window, ev: MessageEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/messageerror_event) */ +declare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/offline_event) */ +declare var onoffline: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/online_event) */ +declare var ononline: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagehide_event) */ +declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event) */ +declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event) */ +declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/rejectionhandled_event) */ +declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/storage_event) */ +declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */ +declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null; +/** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event) + */ +declare var onunload: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/localStorage) */ +declare var localStorage: Storage; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches) + */ +declare var caches: CacheStorage; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */ +declare var crossOriginIsolated: boolean; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */ +declare var crypto: Crypto; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */ +declare var indexedDB: IDBFactory; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */ +declare var isSecureContext: boolean; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */ +declare var origin: string; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */ +declare var performance: Performance; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */ +declare function atob(data: string): string; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */ +declare function btoa(data: string): string; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */ +declare function clearInterval(id: number | undefined): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */ +declare function clearTimeout(id: number | undefined): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */ +declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>; +declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */ +declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */ +declare function queueMicrotask(callback: VoidFunction): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */ +declare function reportError(e: any): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */ +declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */ +declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */ +declare function structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/sessionStorage) */ +declare var sessionStorage: Storage; +declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; +declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; +declare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void; +declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +type AlgorithmIdentifier = Algorithm | string; +type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView; +type AutoFill = AutoFillBase | \`\${OptionalPrefixToken<AutoFillSection>}\${OptionalPrefixToken<AutoFillAddressKind>}\${AutoFillField}\${OptionalPostfixToken<AutoFillCredentialField>}\`; +type AutoFillField = AutoFillNormalField | \`\${OptionalPrefixToken<AutoFillContactKind>}\${AutoFillContactField}\`; +type AutoFillSection = \`section-\${string}\`; +type BigInteger = Uint8Array; +type BinaryData = ArrayBuffer | ArrayBufferView; +type BlobPart = BufferSource | Blob | string; +type BodyInit = ReadableStream | XMLHttpRequestBodyInit; +type BufferSource = ArrayBufferView | ArrayBuffer; +type COSEAlgorithmIdentifier = number; +type CSSKeywordish = string | CSSKeywordValue; +type CSSNumberish = number | CSSNumericValue; +type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish; +type CSSUnparsedSegment = string | CSSVariableReferenceValue; +type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame; +type ClipboardItemData = Promise<string | Blob>; +type ClipboardItems = ClipboardItem[]; +type ConstrainBoolean = boolean | ConstrainBooleanParameters; +type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters; +type ConstrainDouble = number | ConstrainDoubleRange; +type ConstrainULong = number | ConstrainULongRange; +type DOMHighResTimeStamp = number; +type EpochTimeStamp = number; +type EventListenerOrEventListenerObject = EventListener | EventListenerObject; +type FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams; +type Float32List = Float32Array | GLfloat[]; +type FormDataEntryValue = File | string; +type GLbitfield = number; +type GLboolean = boolean; +type GLclampf = number; +type GLenum = number; +type GLfloat = number; +type GLint = number; +type GLint64 = number; +type GLintptr = number; +type GLsizei = number; +type GLsizeiptr = number; +type GLuint = number; +type GLuint64 = number; +type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement; +type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement; +type HashAlgorithmIdentifier = AlgorithmIdentifier; +type HeadersInit = [string, string][] | Record<string, string> | Headers; +type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; +type ImageBitmapSource = CanvasImageSource | Blob | ImageData; +type Int32List = Int32Array | GLint[]; +type LineAndPositionSetting = number | AutoKeyword; +type MediaProvider = MediaStream | MediaSource | Blob; +type MessageEventSource = WindowProxy | MessagePort | ServiceWorker; +type MutationRecordType = "attributes" | "characterData" | "childList"; +type NamedCurve = string; +type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext; +type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null; +type OnErrorEventHandler = OnErrorEventHandlerNonNull | null; +type OptionalPostfixToken<T extends string> = \` \${T}\` | ""; +type OptionalPrefixToken<T extends string> = \`\${T} \` | ""; +type PerformanceEntryList = PerformanceEntry[]; +type RTCRtpTransform = RTCRtpScriptTransform; +type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController; +type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>; +type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader; +type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext; +type ReportList = Report[]; +type RequestInfo = Request | string; +type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame; +type TimerHandler = string | Function; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer; +type Uint32List = Uint32Array | GLuint[]; +type VibratePattern = number | number[]; +type WindowProxy = Window; +type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; +type AlignSetting = "center" | "end" | "left" | "right" | "start"; +type AlphaOption = "discard" | "keep"; +type AnimationPlayState = "finished" | "idle" | "paused" | "running"; +type AnimationReplaceState = "active" | "persisted" | "removed"; +type AppendMode = "segments" | "sequence"; +type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none"; +type AudioContextLatencyCategory = "balanced" | "interactive" | "playback"; +type AudioContextState = "closed" | "running" | "suspended"; +type AuthenticatorAttachment = "cross-platform" | "platform"; +type AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb"; +type AutoFillAddressKind = "billing" | "shipping"; +type AutoFillBase = "" | "off" | "on"; +type AutoFillContactField = "email" | "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-local-prefix" | "tel-local-suffix" | "tel-national"; +type AutoFillContactKind = "home" | "mobile" | "work"; +type AutoFillCredentialField = "webauthn"; +type AutoFillNormalField = "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday-day" | "bday-month" | "bday-year" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name" | "new-password" | "one-time-code" | "organization" | "postal-code" | "street-address" | "transaction-amount" | "transaction-currency" | "username"; +type AutoKeyword = "auto"; +type AutomationRate = "a-rate" | "k-rate"; +type AvcBitstreamFormat = "annexb" | "avc"; +type BinaryType = "arraybuffer" | "blob"; +type BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking"; +type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum"; +type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time"; +type CanPlayTypeResult = "" | "maybe" | "probably"; +type CanvasDirection = "inherit" | "ltr" | "rtl"; +type CanvasFillRule = "evenodd" | "nonzero"; +type CanvasFontKerning = "auto" | "none" | "normal"; +type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded"; +type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase"; +type CanvasLineCap = "butt" | "round" | "square"; +type CanvasLineJoin = "bevel" | "miter" | "round"; +type CanvasTextAlign = "center" | "end" | "left" | "right" | "start"; +type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top"; +type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed"; +type ChannelCountMode = "clamped-max" | "explicit" | "max"; +type ChannelInterpretation = "discrete" | "speakers"; +type ClientTypes = "all" | "sharedworker" | "window" | "worker"; +type CodecState = "closed" | "configured" | "unconfigured"; +type ColorGamut = "p3" | "rec2020" | "srgb"; +type ColorSpaceConversion = "default" | "none"; +type CompositeOperation = "accumulate" | "add" | "replace"; +type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace"; +type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; +type CredentialMediationRequirement = "conditional" | "optional" | "required" | "silent"; +type DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml"; +type DirectionSetting = "" | "lr" | "rl"; +type DisplayCaptureSurfaceType = "browser" | "monitor" | "window"; +type DistanceModelType = "exponential" | "inverse" | "linear"; +type DocumentReadyState = "complete" | "interactive" | "loading"; +type DocumentVisibilityState = "hidden" | "visible"; +type EncodedVideoChunkType = "delta" | "key"; +type EndOfStreamError = "decode" | "network"; +type EndingType = "native" | "transparent"; +type FileSystemHandleKind = "directory" | "file"; +type FillMode = "auto" | "backwards" | "both" | "forwards" | "none"; +type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; +type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; +type FontFaceSetLoadStatus = "loaded" | "loading"; +type FullscreenNavigationUI = "auto" | "hide" | "show"; +type GamepadHapticActuatorType = "vibration"; +type GamepadHapticEffectType = "dual-rumble"; +type GamepadHapticsResult = "complete" | "preempted"; +type GamepadMappingType = "" | "standard" | "xr-standard"; +type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; +type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software"; +type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; +type HighlightType = "grammar-error" | "highlight" | "spelling-error"; +type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; +type IDBRequestReadyState = "done" | "pending"; +type IDBTransactionDurability = "default" | "relaxed" | "strict"; +type IDBTransactionMode = "readonly" | "readwrite" | "versionchange"; +type ImageOrientation = "flipY" | "from-image" | "none"; +type ImageSmoothingQuality = "high" | "low" | "medium"; +type InsertPosition = "afterbegin" | "afterend" | "beforebegin" | "beforeend"; +type IterationCompositeOperation = "accumulate" | "replace"; +type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki"; +type KeyType = "private" | "public" | "secret"; +type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey"; +type LatencyMode = "quality" | "realtime"; +type LineAlignSetting = "center" | "end" | "start"; +type LockMode = "exclusive" | "shared"; +type MIDIPortConnectionState = "closed" | "open" | "pending"; +type MIDIPortDeviceState = "connected" | "disconnected"; +type MIDIPortType = "input" | "output"; +type MediaDecodingType = "file" | "media-source" | "webrtc"; +type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput"; +type MediaEncodingType = "record" | "webrtc"; +type MediaKeyMessageType = "individualization-request" | "license-release" | "license-renewal" | "license-request"; +type MediaKeySessionClosedReason = "closed-by-application" | "hardware-context-reset" | "internal-error" | "release-acknowledged" | "resource-evicted"; +type MediaKeySessionType = "persistent-license" | "temporary"; +type MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future"; +type MediaKeysRequirement = "not-allowed" | "optional" | "required"; +type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop"; +type MediaSessionPlaybackState = "none" | "paused" | "playing"; +type MediaStreamTrackState = "ended" | "live"; +type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload"; +type NotificationDirection = "auto" | "ltr" | "rtl"; +type NotificationPermission = "default" | "denied" | "granted"; +type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu"; +type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary"; +type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle"; +type OverSampleType = "2x" | "4x" | "none"; +type PanningModelType = "HRTF" | "equalpower"; +type PaymentComplete = "fail" | "success" | "unknown"; +type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking"; +type PermissionState = "denied" | "granted" | "prompt"; +type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse"; +type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right"; +type PredefinedColorSpace = "display-p3" | "srgb"; +type PremultiplyAlpha = "default" | "none" | "premultiply"; +type PresentationStyle = "attachment" | "inline" | "unspecified"; +type PublicKeyCredentialType = "public-key"; +type PushEncryptionKeyName = "auth" | "p256dh"; +type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat"; +type RTCDataChannelState = "closed" | "closing" | "connecting" | "open"; +type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution"; +type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new"; +type RTCEncodedVideoFrameType = "delta" | "empty" | "key"; +type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "hardware-encoder-error" | "hardware-encoder-not-available" | "sctp-failure" | "sdp-syntax-error"; +type RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx"; +type RTCIceComponent = "rtcp" | "rtp"; +type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new"; +type RTCIceGathererState = "complete" | "gathering" | "new"; +type RTCIceGatheringState = "complete" | "gathering" | "new"; +type RTCIceProtocol = "tcp" | "udp"; +type RTCIceTcpCandidateType = "active" | "passive" | "so"; +type RTCIceTransportPolicy = "all" | "relay"; +type RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new"; +type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new"; +type RTCPriorityType = "high" | "low" | "medium" | "very-low"; +type RTCRtcpMuxPolicy = "require"; +type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped"; +type RTCSctpTransportState = "closed" | "connected" | "connecting"; +type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback"; +type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable"; +type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting"; +type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-playout" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "transport"; +type ReadableStreamReaderMode = "byob"; +type ReadableStreamType = "bytes"; +type ReadyState = "closed" | "ended" | "open"; +type RecordingState = "inactive" | "paused" | "recording"; +type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url"; +type RemotePlaybackState = "connected" | "connecting" | "disconnected"; +type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload"; +type RequestCredentials = "include" | "omit" | "same-origin"; +type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt"; +type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; +type RequestPriority = "auto" | "high" | "low"; +type RequestRedirect = "error" | "follow" | "manual"; +type ResidentKeyRequirement = "discouraged" | "preferred" | "required"; +type ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box"; +type ResizeQuality = "high" | "low" | "medium" | "pixelated"; +type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type ScrollBehavior = "auto" | "instant" | "smooth"; +type ScrollLogicalPosition = "center" | "end" | "nearest" | "start"; +type ScrollRestoration = "auto" | "manual"; +type ScrollSetting = "" | "up"; +type SecurityPolicyViolationEventDisposition = "enforce" | "report"; +type SelectionMode = "end" | "preserve" | "select" | "start"; +type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; +type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; +type ShadowRootMode = "closed" | "open"; +type SlotAssignmentMode = "manual" | "named"; +type SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "not-allowed" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable"; +type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles"; +type TextTrackMode = "disabled" | "hidden" | "showing"; +type TouchType = "direct" | "stylus"; +type TransferFunction = "hlg" | "pq" | "srgb"; +type UserVerificationRequirement = "discouraged" | "preferred" | "required"; +type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m"; +type VideoEncoderBitrateMode = "constant" | "quantizer" | "variable"; +type VideoFacingModeEnum = "environment" | "left" | "right" | "user"; +type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m"; +type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX"; +type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m"; +type WakeLockType = "screen"; +type WebGLPowerPreference = "default" | "high-performance" | "low-power"; +type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; +type WebTransportErrorSource = "session" | "stream"; +type WorkerType = "classic" | "module"; +type WriteCommandType = "seek" | "truncate" | "write"; +type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; +`,co["lib.dom.iterable.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +///////////////////////////// +/// Window Iterable APIs +///////////////////////////// + +interface AudioParam { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */ + setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam; +} + +interface AudioParamMap extends ReadonlyMap<string, AudioParam> { +} + +interface BaseAudioContext { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */ + createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */ + createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave; +} + +interface CSSKeyframesRule { + [Symbol.iterator](): IterableIterator<CSSKeyframeRule>; +} + +interface CSSNumericArray { + [Symbol.iterator](): IterableIterator<CSSNumericValue>; + entries(): IterableIterator<[number, CSSNumericValue]>; + keys(): IterableIterator<number>; + values(): IterableIterator<CSSNumericValue>; +} + +interface CSSRuleList { + [Symbol.iterator](): IterableIterator<CSSRule>; +} + +interface CSSStyleDeclaration { + [Symbol.iterator](): IterableIterator<string>; +} + +interface CSSTransformValue { + [Symbol.iterator](): IterableIterator<CSSTransformComponent>; + entries(): IterableIterator<[number, CSSTransformComponent]>; + keys(): IterableIterator<number>; + values(): IterableIterator<CSSTransformComponent>; +} + +interface CSSUnparsedValue { + [Symbol.iterator](): IterableIterator<CSSUnparsedSegment>; + entries(): IterableIterator<[number, CSSUnparsedSegment]>; + keys(): IterableIterator<number>; + values(): IterableIterator<CSSUnparsedSegment>; +} + +interface Cache { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */ + addAll(requests: Iterable<RequestInfo>): Promise<void>; +} + +interface CanvasPath { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */ + roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void; +} + +interface CanvasPathDrawingStyles { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */ + setLineDash(segments: Iterable<number>): void; +} + +interface DOMRectList { + [Symbol.iterator](): IterableIterator<DOMRect>; +} + +interface DOMStringList { + [Symbol.iterator](): IterableIterator<string>; +} + +interface DOMTokenList { + [Symbol.iterator](): IterableIterator<string>; + entries(): IterableIterator<[number, string]>; + keys(): IterableIterator<number>; + values(): IterableIterator<string>; +} + +interface DataTransferItemList { + [Symbol.iterator](): IterableIterator<DataTransferItem>; +} + +interface EventCounts extends ReadonlyMap<string, number> { +} + +interface FileList { + [Symbol.iterator](): IterableIterator<File>; +} + +interface FontFaceSet extends Set<FontFace> { +} + +interface FormData { + [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>; + /** Returns an array of key, value pairs for every entry in the list. */ + entries(): IterableIterator<[string, FormDataEntryValue]>; + /** Returns a list of keys in the list. */ + keys(): IterableIterator<string>; + /** Returns a list of values in the list. */ + values(): IterableIterator<FormDataEntryValue>; +} + +interface HTMLAllCollection { + [Symbol.iterator](): IterableIterator<Element>; +} + +interface HTMLCollectionBase { + [Symbol.iterator](): IterableIterator<Element>; +} + +interface HTMLCollectionOf<T extends Element> { + [Symbol.iterator](): IterableIterator<T>; +} + +interface HTMLFormElement { + [Symbol.iterator](): IterableIterator<Element>; +} + +interface HTMLSelectElement { + [Symbol.iterator](): IterableIterator<HTMLOptionElement>; +} + +interface Headers { + [Symbol.iterator](): IterableIterator<[string, string]>; + /** Returns an iterator allowing to go through all key/value pairs contained in this object. */ + entries(): IterableIterator<[string, string]>; + /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */ + keys(): IterableIterator<string>; + /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */ + values(): IterableIterator<string>; +} + +interface Highlight extends Set<AbstractRange> { +} + +interface HighlightRegistry extends Map<string, Highlight> { +} + +interface IDBDatabase { + /** + * Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction) + */ + transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction; +} + +interface IDBObjectStore { + /** + * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException. + * + * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex) + */ + createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex; +} + +interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> { +} + +interface MIDIOutput { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) */ + send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void; +} + +interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> { +} + +interface MediaKeyStatusMap { + [Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>; + entries(): IterableIterator<[BufferSource, MediaKeyStatus]>; + keys(): IterableIterator<BufferSource>; + values(): IterableIterator<MediaKeyStatus>; +} + +interface MediaList { + [Symbol.iterator](): IterableIterator<string>; +} + +interface MessageEvent<T = any> { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent) + */ + initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void; +} + +interface MimeTypeArray { + [Symbol.iterator](): IterableIterator<MimeType>; +} + +interface NamedNodeMap { + [Symbol.iterator](): IterableIterator<Attr>; +} + +interface Navigator { + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess) + */ + requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate) */ + vibrate(pattern: Iterable<number>): boolean; +} + +interface NodeList { + [Symbol.iterator](): IterableIterator<Node>; + /** Returns an array of key, value pairs for every entry in the list. */ + entries(): IterableIterator<[number, Node]>; + /** Returns an list of keys in the list. */ + keys(): IterableIterator<number>; + /** Returns an list of values in the list. */ + values(): IterableIterator<Node>; +} + +interface NodeListOf<TNode extends Node> { + [Symbol.iterator](): IterableIterator<TNode>; + /** Returns an array of key, value pairs for every entry in the list. */ + entries(): IterableIterator<[number, TNode]>; + /** Returns an list of keys in the list. */ + keys(): IterableIterator<number>; + /** Returns an list of values in the list. */ + values(): IterableIterator<TNode>; +} + +interface Plugin { + [Symbol.iterator](): IterableIterator<MimeType>; +} + +interface PluginArray { + [Symbol.iterator](): IterableIterator<Plugin>; +} + +interface RTCRtpTransceiver { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */ + setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void; +} + +interface RTCStatsReport extends ReadonlyMap<string, any> { +} + +interface SVGLengthList { + [Symbol.iterator](): IterableIterator<SVGLength>; +} + +interface SVGNumberList { + [Symbol.iterator](): IterableIterator<SVGNumber>; +} + +interface SVGPointList { + [Symbol.iterator](): IterableIterator<DOMPoint>; +} + +interface SVGStringList { + [Symbol.iterator](): IterableIterator<string>; +} + +interface SVGTransformList { + [Symbol.iterator](): IterableIterator<SVGTransform>; +} + +interface SourceBufferList { + [Symbol.iterator](): IterableIterator<SourceBuffer>; +} + +interface SpeechRecognitionResult { + [Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>; +} + +interface SpeechRecognitionResultList { + [Symbol.iterator](): IterableIterator<SpeechRecognitionResult>; +} + +interface StylePropertyMapReadOnly { + [Symbol.iterator](): IterableIterator<[string, Iterable<CSSStyleValue>]>; + entries(): IterableIterator<[string, Iterable<CSSStyleValue>]>; + keys(): IterableIterator<string>; + values(): IterableIterator<Iterable<CSSStyleValue>>; +} + +interface StyleSheetList { + [Symbol.iterator](): IterableIterator<CSSStyleSheet>; +} + +interface SubtleCrypto { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */ + deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */ + generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>; + generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>; + generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>; + generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */ + importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>; + importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */ + unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>; +} + +interface TextTrackCueList { + [Symbol.iterator](): IterableIterator<TextTrackCue>; +} + +interface TextTrackList { + [Symbol.iterator](): IterableIterator<TextTrack>; +} + +interface TouchList { + [Symbol.iterator](): IterableIterator<Touch>; +} + +interface URLSearchParams { + [Symbol.iterator](): IterableIterator<[string, string]>; + /** Returns an array of key, value pairs for every entry in the search params. */ + entries(): IterableIterator<[string, string]>; + /** Returns a list of keys in the search params. */ + keys(): IterableIterator<string>; + /** Returns a list of values in the search params. */ + values(): IterableIterator<string>; +} + +interface WEBGL_draw_buffers { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */ + drawBuffersWEBGL(buffers: Iterable<GLenum>): void; +} + +interface WEBGL_multi_draw { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */ + multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */ + multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */ + multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */ + multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void; +} + +interface WebGL2RenderingContextBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ + clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ + clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ + clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */ + drawBuffers(buffers: Iterable<GLenum>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */ + getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */ + getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */ + invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */ + invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */ + transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ + vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ + vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void; +} + +interface WebGL2RenderingContextOverloads { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; +} + +interface WebGLRenderingContextBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void; +} + +interface WebGLRenderingContextOverloads { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; +} +`,co["lib.es2015.collection.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface Map<K, V> { + clear(): void; + /** + * @returns true if an element in the Map existed and has been removed, or false if the element does not exist. + */ + delete(key: K): boolean; + /** + * Executes a provided function once per each key/value pair in the Map, in insertion order. + */ + forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void; + /** + * Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map. + * @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned. + */ + get(key: K): V | undefined; + /** + * @returns boolean indicating whether an element with the specified key exists or not. + */ + has(key: K): boolean; + /** + * Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated. + */ + set(key: K, value: V): this; + /** + * @returns the number of elements in the Map. + */ + readonly size: number; +} + +interface MapConstructor { + new (): Map<any, any>; + new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>; + readonly prototype: Map<any, any>; +} +declare var Map: MapConstructor; + +interface ReadonlyMap<K, V> { + forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void; + get(key: K): V | undefined; + has(key: K): boolean; + readonly size: number; +} + +interface WeakMap<K extends WeakKey, V> { + /** + * Removes the specified element from the WeakMap. + * @returns true if the element was successfully removed, or false if it was not present. + */ + delete(key: K): boolean; + /** + * @returns a specified element. + */ + get(key: K): V | undefined; + /** + * @returns a boolean indicating whether an element with the specified key exists or not. + */ + has(key: K): boolean; + /** + * Adds a new element with a specified key and value. + * @param key Must be an object or symbol. + */ + set(key: K, value: V): this; +} + +interface WeakMapConstructor { + new <K extends WeakKey = WeakKey, V = any>(entries?: readonly (readonly [K, V])[] | null): WeakMap<K, V>; + readonly prototype: WeakMap<WeakKey, any>; +} +declare var WeakMap: WeakMapConstructor; + +interface Set<T> { + /** + * Appends a new element with a specified value to the end of the Set. + */ + add(value: T): this; + + clear(): void; + /** + * Removes a specified value from the Set. + * @returns Returns true if an element in the Set existed and has been removed, or false if the element does not exist. + */ + delete(value: T): boolean; + /** + * Executes a provided function once per each value in the Set object, in insertion order. + */ + forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void; + /** + * @returns a boolean indicating whether an element with the specified value exists in the Set or not. + */ + has(value: T): boolean; + /** + * @returns the number of (unique) elements in Set. + */ + readonly size: number; +} + +interface SetConstructor { + new <T = any>(values?: readonly T[] | null): Set<T>; + readonly prototype: Set<any>; +} +declare var Set: SetConstructor; + +interface ReadonlySet<T> { + forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void; + has(value: T): boolean; + readonly size: number; +} + +interface WeakSet<T extends WeakKey> { + /** + * Appends a new value to the end of the WeakSet. + */ + add(value: T): this; + /** + * Removes the specified element from the WeakSet. + * @returns Returns true if the element existed and has been removed, or false if the element does not exist. + */ + delete(value: T): boolean; + /** + * @returns a boolean indicating whether a value exists in the WeakSet or not. + */ + has(value: T): boolean; +} + +interface WeakSetConstructor { + new <T extends WeakKey = WeakKey>(values?: readonly T[] | null): WeakSet<T>; + readonly prototype: WeakSet<WeakKey>; +} +declare var WeakSet: WeakSetConstructor; +`,co["lib.es2015.core.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface Array<T> { + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find<S extends T>(predicate: (value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined; + find(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number; + + /** + * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: T, start?: number, end?: number): this; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; +} + +interface ArrayConstructor { + /** + * Creates an array from an array-like object. + * @param arrayLike An array-like object to convert to an array. + */ + from<T>(arrayLike: ArrayLike<T>): T[]; + + /** + * Creates an array from an iterable object. + * @param arrayLike An array-like object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of<T>(...items: T[]): T[]; +} + +interface DateConstructor { + new (value: number | string | Date): Date; +} + +interface Function { + /** + * Returns the name of the function. Function names are read-only and can not be changed. + */ + readonly name: string; +} + +interface Math { + /** + * Returns the number of leading zero bits in the 32-bit binary representation of a number. + * @param x A numeric expression. + */ + clz32(x: number): number; + + /** + * Returns the result of 32-bit multiplication of two numbers. + * @param x First number + * @param y Second number + */ + imul(x: number, y: number): number; + + /** + * Returns the sign of the x, indicating whether x is positive, negative or zero. + * @param x The numeric expression to test + */ + sign(x: number): number; + + /** + * Returns the base 10 logarithm of a number. + * @param x A numeric expression. + */ + log10(x: number): number; + + /** + * Returns the base 2 logarithm of a number. + * @param x A numeric expression. + */ + log2(x: number): number; + + /** + * Returns the natural logarithm of 1 + x. + * @param x A numeric expression. + */ + log1p(x: number): number; + + /** + * Returns the result of (e^x - 1), which is an implementation-dependent approximation to + * subtracting 1 from the exponential function of x (e raised to the power of x, where e + * is the base of the natural logarithms). + * @param x A numeric expression. + */ + expm1(x: number): number; + + /** + * Returns the hyperbolic cosine of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + cosh(x: number): number; + + /** + * Returns the hyperbolic sine of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + sinh(x: number): number; + + /** + * Returns the hyperbolic tangent of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + tanh(x: number): number; + + /** + * Returns the inverse hyperbolic cosine of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + acosh(x: number): number; + + /** + * Returns the inverse hyperbolic sine of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + asinh(x: number): number; + + /** + * Returns the inverse hyperbolic tangent of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + atanh(x: number): number; + + /** + * Returns the square root of the sum of squares of its arguments. + * @param values Values to compute the square root for. + * If no arguments are passed, the result is +0. + * If there is only one argument, the result is the absolute value. + * If any argument is +Infinity or -Infinity, the result is +Infinity. + * If any argument is NaN, the result is NaN. + * If all arguments are either +0 or −0, the result is +0. + */ + hypot(...values: number[]): number; + + /** + * Returns the integral part of the a numeric expression, x, removing any fractional digits. + * If x is already an integer, the result is x. + * @param x A numeric expression. + */ + trunc(x: number): number; + + /** + * Returns the nearest single precision float representation of a number. + * @param x A numeric expression. + */ + fround(x: number): number; + + /** + * Returns an implementation-dependent approximation to the cube root of number. + * @param x A numeric expression. + */ + cbrt(x: number): number; +} + +interface NumberConstructor { + /** + * The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1 + * that is representable as a Number value, which is approximately: + * 2.2204460492503130808472633361816 x 10‍−‍16. + */ + readonly EPSILON: number; + + /** + * Returns true if passed value is finite. + * Unlike the global isFinite, Number.isFinite doesn't forcibly convert the parameter to a + * number. Only finite values of the type number, result in true. + * @param number A numeric value. + */ + isFinite(number: unknown): boolean; + + /** + * Returns true if the value passed is an integer, false otherwise. + * @param number A numeric value. + */ + isInteger(number: unknown): boolean; + + /** + * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a + * number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter + * to a number. Only values of the type number, that are also NaN, result in true. + * @param number A numeric value. + */ + isNaN(number: unknown): boolean; + + /** + * Returns true if the value passed is a safe integer. + * @param number A numeric value. + */ + isSafeInteger(number: unknown): boolean; + + /** + * The value of the largest integer n such that n and n + 1 are both exactly representable as + * a Number value. + * The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 − 1. + */ + readonly MAX_SAFE_INTEGER: number; + + /** + * The value of the smallest integer n such that n and n − 1 are both exactly representable as + * a Number value. + * The value of Number.MIN_SAFE_INTEGER is −9007199254740991 (−(2^53 − 1)). + */ + readonly MIN_SAFE_INTEGER: number; + + /** + * Converts a string to a floating-point number. + * @param string A string that contains a floating-point number. + */ + parseFloat(string: string): number; + + /** + * Converts A string to an integer. + * @param string A string to convert into a number. + * @param radix A value between 2 and 36 that specifies the base of the number in \`string\`. + * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal. + * All other strings are considered decimal. + */ + parseInt(string: string, radix?: number): number; +} + +interface ObjectConstructor { + /** + * Copy the values of all of the enumerable own properties from one or more source objects to a + * target object. Returns the target object. + * @param target The target object to copy to. + * @param source The source object from which to copy properties. + */ + assign<T extends {}, U>(target: T, source: U): T & U; + + /** + * Copy the values of all of the enumerable own properties from one or more source objects to a + * target object. Returns the target object. + * @param target The target object to copy to. + * @param source1 The first source object from which to copy properties. + * @param source2 The second source object from which to copy properties. + */ + assign<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V; + + /** + * Copy the values of all of the enumerable own properties from one or more source objects to a + * target object. Returns the target object. + * @param target The target object to copy to. + * @param source1 The first source object from which to copy properties. + * @param source2 The second source object from which to copy properties. + * @param source3 The third source object from which to copy properties. + */ + assign<T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W; + + /** + * Copy the values of all of the enumerable own properties from one or more source objects to a + * target object. Returns the target object. + * @param target The target object to copy to. + * @param sources One or more source objects from which to copy properties + */ + assign(target: object, ...sources: any[]): any; + + /** + * Returns an array of all symbol properties found directly on object o. + * @param o Object to retrieve the symbols from. + */ + getOwnPropertySymbols(o: any): symbol[]; + + /** + * Returns the names of the enumerable string properties and methods of an object. + * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. + */ + keys(o: {}): string[]; + + /** + * Returns true if the values are the same value, false otherwise. + * @param value1 The first value. + * @param value2 The second value. + */ + is(value1: any, value2: any): boolean; + + /** + * Sets the prototype of a specified object o to object proto or null. Returns the object o. + * @param o The object to change its prototype. + * @param proto The value of the new prototype or null. + */ + setPrototypeOf(o: any, proto: object | null): any; +} + +interface ReadonlyArray<T> { + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find<S extends T>(predicate: (value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined; + find(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): T | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number; +} + +interface RegExp { + /** + * Returns a string indicating the flags of the regular expression in question. This field is read-only. + * The characters in this string are sequenced and concatenated in the following order: + * + * - "g" for global + * - "i" for ignoreCase + * - "m" for multiline + * - "u" for unicode + * - "y" for sticky + * + * If no flags are set, the value is the empty string. + */ + readonly flags: string; + + /** + * Returns a Boolean value indicating the state of the sticky flag (y) used with a regular + * expression. Default is false. Read-only. + */ + readonly sticky: boolean; + + /** + * Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular + * expression. Default is false. Read-only. + */ + readonly unicode: boolean; +} + +interface RegExpConstructor { + new (pattern: RegExp | string, flags?: string): RegExp; + (pattern: RegExp | string, flags?: string): RegExp; +} + +interface String { + /** + * Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point + * value of the UTF-16 encoded code point starting at the string element at position pos in + * the String resulting from converting this object to a String. + * If there is no element at that position, the result is undefined. + * If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos. + */ + codePointAt(pos: number): number | undefined; + + /** + * Returns true if searchString appears as a substring of the result of converting this + * object to a String, at one or more positions that are + * greater than or equal to position; otherwise, returns false. + * @param searchString search string + * @param position If position is undefined, 0 is assumed, so as to search all of the String. + */ + includes(searchString: string, position?: number): boolean; + + /** + * Returns true if the sequence of elements of searchString converted to a String is the + * same as the corresponding elements of this object (converted to a String) starting at + * endPosition – length(this). Otherwise returns false. + */ + endsWith(searchString: string, endPosition?: number): boolean; + + /** + * Returns the String value result of normalizing the string into the normalization form + * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms. + * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default + * is "NFC" + */ + normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string; + + /** + * Returns the String value result of normalizing the string into the normalization form + * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms. + * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default + * is "NFC" + */ + normalize(form?: string): string; + + /** + * Returns a String value that is made from count copies appended together. If count is 0, + * the empty string is returned. + * @param count number of copies to append + */ + repeat(count: number): string; + + /** + * Returns true if the sequence of elements of searchString converted to a String is the + * same as the corresponding elements of this object (converted to a String) starting at + * position. Otherwise returns false. + */ + startsWith(searchString: string, position?: number): boolean; + + /** + * Returns an \`<a>\` HTML anchor element and sets the name attribute to the text value + * @deprecated A legacy feature for browser compatibility + * @param name + */ + anchor(name: string): string; + + /** + * Returns a \`<big>\` HTML element + * @deprecated A legacy feature for browser compatibility + */ + big(): string; + + /** + * Returns a \`<blink>\` HTML element + * @deprecated A legacy feature for browser compatibility + */ + blink(): string; + + /** + * Returns a \`<b>\` HTML element + * @deprecated A legacy feature for browser compatibility + */ + bold(): string; + + /** + * Returns a \`<tt>\` HTML element + * @deprecated A legacy feature for browser compatibility + */ + fixed(): string; + + /** + * Returns a \`<font>\` HTML element and sets the color attribute value + * @deprecated A legacy feature for browser compatibility + */ + fontcolor(color: string): string; + + /** + * Returns a \`<font>\` HTML element and sets the size attribute value + * @deprecated A legacy feature for browser compatibility + */ + fontsize(size: number): string; + + /** + * Returns a \`<font>\` HTML element and sets the size attribute value + * @deprecated A legacy feature for browser compatibility + */ + fontsize(size: string): string; + + /** + * Returns an \`<i>\` HTML element + * @deprecated A legacy feature for browser compatibility + */ + italics(): string; + + /** + * Returns an \`<a>\` HTML element and sets the href attribute value + * @deprecated A legacy feature for browser compatibility + */ + link(url: string): string; + + /** + * Returns a \`<small>\` HTML element + * @deprecated A legacy feature for browser compatibility + */ + small(): string; + + /** + * Returns a \`<strike>\` HTML element + * @deprecated A legacy feature for browser compatibility + */ + strike(): string; + + /** + * Returns a \`<sub>\` HTML element + * @deprecated A legacy feature for browser compatibility + */ + sub(): string; + + /** + * Returns a \`<sup>\` HTML element + * @deprecated A legacy feature for browser compatibility + */ + sup(): string; +} + +interface StringConstructor { + /** + * Return the String value whose elements are, in order, the elements in the List elements. + * If length is 0, the empty string is returned. + */ + fromCodePoint(...codePoints: number[]): string; + + /** + * String.raw is usually used as a tag function of a Tagged Template String. When called as + * such, the first argument will be a well formed template call site object and the rest + * parameter will contain the substitution values. It can also be called directly, for example, + * to interleave strings and values from your own tag function, and in this case the only thing + * it needs from the first argument is the raw property. + * @param template A well-formed template string call site representation. + * @param substitutions A set of substitution values. + */ + raw(template: { raw: readonly string[] | ArrayLike<string>; }, ...substitutions: any[]): string; +} +`,co["lib.es2015.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es5" /> +/// <reference lib="es2015.core" /> +/// <reference lib="es2015.collection" /> +/// <reference lib="es2015.iterable" /> +/// <reference lib="es2015.generator" /> +/// <reference lib="es2015.promise" /> +/// <reference lib="es2015.proxy" /> +/// <reference lib="es2015.reflect" /> +/// <reference lib="es2015.symbol" /> +/// <reference lib="es2015.symbol.wellknown" /> +`,co["lib.es2015.generator.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2015.iterable" /> + +interface Generator<T = unknown, TReturn = any, TNext = unknown> extends Iterator<T, TReturn, TNext> { + // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places. + next(...args: [] | [TNext]): IteratorResult<T, TReturn>; + return(value: TReturn): IteratorResult<T, TReturn>; + throw(e: any): IteratorResult<T, TReturn>; + [Symbol.iterator](): Generator<T, TReturn, TNext>; +} + +interface GeneratorFunction { + /** + * Creates a new Generator object. + * @param args A list of arguments the function accepts. + */ + new (...args: any[]): Generator; + /** + * Creates a new Generator object. + * @param args A list of arguments the function accepts. + */ + (...args: any[]): Generator; + /** + * The length of the arguments. + */ + readonly length: number; + /** + * Returns the name of the function. + */ + readonly name: string; + /** + * A reference to the prototype. + */ + readonly prototype: Generator; +} + +interface GeneratorFunctionConstructor { + /** + * Creates a new Generator function. + * @param args A list of arguments the function accepts. + */ + new (...args: string[]): GeneratorFunction; + /** + * Creates a new Generator function. + * @param args A list of arguments the function accepts. + */ + (...args: string[]): GeneratorFunction; + /** + * The length of the arguments. + */ + readonly length: number; + /** + * Returns the name of the function. + */ + readonly name: string; + /** + * A reference to the prototype. + */ + readonly prototype: GeneratorFunction; +} +`,co["lib.es2015.iterable.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2015.symbol" /> + +interface SymbolConstructor { + /** + * A method that returns the default iterator for an object. Called by the semantics of the + * for-of statement. + */ + readonly iterator: unique symbol; +} + +interface IteratorYieldResult<TYield> { + done?: false; + value: TYield; +} + +interface IteratorReturnResult<TReturn> { + done: true; + value: TReturn; +} + +type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>; + +interface Iterator<T, TReturn = any, TNext = undefined> { + // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places. + next(...args: [] | [TNext]): IteratorResult<T, TReturn>; + return?(value?: TReturn): IteratorResult<T, TReturn>; + throw?(e?: any): IteratorResult<T, TReturn>; +} + +interface Iterable<T> { + [Symbol.iterator](): Iterator<T>; +} + +interface IterableIterator<T> extends Iterator<T> { + [Symbol.iterator](): IterableIterator<T>; +} + +interface Array<T> { + /** Iterator */ + [Symbol.iterator](): IterableIterator<T>; + + /** + * Returns an iterable of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, T]>; + + /** + * Returns an iterable of keys in the array + */ + keys(): IterableIterator<number>; + + /** + * Returns an iterable of values in the array + */ + values(): IterableIterator<T>; +} + +interface ArrayConstructor { + /** + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. + */ + from<T>(iterable: Iterable<T> | ArrayLike<T>): T[]; + + /** + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; +} + +interface ReadonlyArray<T> { + /** Iterator of values in the array. */ + [Symbol.iterator](): IterableIterator<T>; + + /** + * Returns an iterable of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, T]>; + + /** + * Returns an iterable of keys in the array + */ + keys(): IterableIterator<number>; + + /** + * Returns an iterable of values in the array + */ + values(): IterableIterator<T>; +} + +interface IArguments { + /** Iterator */ + [Symbol.iterator](): IterableIterator<any>; +} + +interface Map<K, V> { + /** Returns an iterable of entries in the map. */ + [Symbol.iterator](): IterableIterator<[K, V]>; + + /** + * Returns an iterable of key, value pairs for every entry in the map. + */ + entries(): IterableIterator<[K, V]>; + + /** + * Returns an iterable of keys in the map + */ + keys(): IterableIterator<K>; + + /** + * Returns an iterable of values in the map + */ + values(): IterableIterator<V>; +} + +interface ReadonlyMap<K, V> { + /** Returns an iterable of entries in the map. */ + [Symbol.iterator](): IterableIterator<[K, V]>; + + /** + * Returns an iterable of key, value pairs for every entry in the map. + */ + entries(): IterableIterator<[K, V]>; + + /** + * Returns an iterable of keys in the map + */ + keys(): IterableIterator<K>; + + /** + * Returns an iterable of values in the map + */ + values(): IterableIterator<V>; +} + +interface MapConstructor { + new (): Map<any, any>; + new <K, V>(iterable?: Iterable<readonly [K, V]> | null): Map<K, V>; +} + +interface WeakMap<K extends WeakKey, V> {} + +interface WeakMapConstructor { + new <K extends WeakKey, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>; +} + +interface Set<T> { + /** Iterates over values in the set. */ + [Symbol.iterator](): IterableIterator<T>; + /** + * Returns an iterable of [v,v] pairs for every value \`v\` in the set. + */ + entries(): IterableIterator<[T, T]>; + /** + * Despite its name, returns an iterable of the values in the set. + */ + keys(): IterableIterator<T>; + + /** + * Returns an iterable of values in the set. + */ + values(): IterableIterator<T>; +} + +interface ReadonlySet<T> { + /** Iterates over values in the set. */ + [Symbol.iterator](): IterableIterator<T>; + + /** + * Returns an iterable of [v,v] pairs for every value \`v\` in the set. + */ + entries(): IterableIterator<[T, T]>; + + /** + * Despite its name, returns an iterable of the values in the set. + */ + keys(): IterableIterator<T>; + + /** + * Returns an iterable of values in the set. + */ + values(): IterableIterator<T>; +} + +interface SetConstructor { + new <T>(iterable?: Iterable<T> | null): Set<T>; +} + +interface WeakSet<T extends WeakKey> {} + +interface WeakSetConstructor { + new <T extends WeakKey = WeakKey>(iterable: Iterable<T>): WeakSet<T>; +} + +interface Promise<T> {} + +interface PromiseConstructor { + /** + * Creates a Promise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any Promise is rejected. + * @param values An iterable of Promises. + * @returns A new Promise. + */ + all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>; + + /** + * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An iterable of Promises. + * @returns A new Promise. + */ + race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>; +} + +interface String { + /** Iterator */ + [Symbol.iterator](): IterableIterator<string>; +} + +interface Int8Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Int8ArrayConstructor { + new (elements: Iterable<number>): Int8Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array; +} + +interface Uint8Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Uint8ArrayConstructor { + new (elements: Iterable<number>): Uint8Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array; +} + +interface Uint8ClampedArray { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Uint8ClampedArrayConstructor { + new (elements: Iterable<number>): Uint8ClampedArray; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray; +} + +interface Int16Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Int16ArrayConstructor { + new (elements: Iterable<number>): Int16Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array; +} + +interface Uint16Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Uint16ArrayConstructor { + new (elements: Iterable<number>): Uint16Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array; +} + +interface Int32Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Int32ArrayConstructor { + new (elements: Iterable<number>): Int32Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array; +} + +interface Uint32Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Uint32ArrayConstructor { + new (elements: Iterable<number>): Uint32Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array; +} + +interface Float32Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Float32ArrayConstructor { + new (elements: Iterable<number>): Float32Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array; +} + +interface Float64Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Float64ArrayConstructor { + new (elements: Iterable<number>): Float64Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array; +} +`,co["lib.es2015.promise.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface PromiseConstructor { + /** + * A reference to the prototype. + */ + readonly prototype: Promise<any>; + + /** + * Creates a new Promise. + * @param executor A callback used to initialize the promise. This callback is passed two arguments: + * a resolve callback used to resolve the promise with a value or the result of another promise, + * and a reject callback used to reject the promise with a provided reason or error. + */ + new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>; + + /** + * Creates a Promise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any Promise is rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]>; }>; + + // see: lib.es2015.iterable.d.ts + // all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>; + + /** + * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + race<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>; + + // see: lib.es2015.iterable.d.ts + // race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>; + + /** + * Creates a new rejected promise for the provided reason. + * @param reason The reason the promise was rejected. + * @returns A new rejected Promise. + */ + reject<T = never>(reason?: any): Promise<T>; + + /** + * Creates a new resolved promise. + * @returns A resolved promise. + */ + resolve(): Promise<void>; + /** + * Creates a new resolved promise for the provided value. + * @param value A promise. + * @returns A promise whose internal state matches the provided promise. + */ + resolve<T>(value: T): Promise<Awaited<T>>; + /** + * Creates a new resolved promise for the provided value. + * @param value A promise. + * @returns A promise whose internal state matches the provided promise. + */ + resolve<T>(value: T | PromiseLike<T>): Promise<Awaited<T>>; +} + +declare var Promise: PromiseConstructor; +`,co["lib.es2015.proxy.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface ProxyHandler<T extends object> { + /** + * A trap method for a function call. + * @param target The original callable object which is being proxied. + */ + apply?(target: T, thisArg: any, argArray: any[]): any; + + /** + * A trap for the \`new\` operator. + * @param target The original object which is being proxied. + * @param newTarget The constructor that was originally called. + */ + construct?(target: T, argArray: any[], newTarget: Function): object; + + /** + * A trap for \`Object.defineProperty()\`. + * @param target The original object which is being proxied. + * @returns A \`Boolean\` indicating whether or not the property has been defined. + */ + defineProperty?(target: T, property: string | symbol, attributes: PropertyDescriptor): boolean; + + /** + * A trap for the \`delete\` operator. + * @param target The original object which is being proxied. + * @param p The name or \`Symbol\` of the property to delete. + * @returns A \`Boolean\` indicating whether or not the property was deleted. + */ + deleteProperty?(target: T, p: string | symbol): boolean; + + /** + * A trap for getting a property value. + * @param target The original object which is being proxied. + * @param p The name or \`Symbol\` of the property to get. + * @param receiver The proxy or an object that inherits from the proxy. + */ + get?(target: T, p: string | symbol, receiver: any): any; + + /** + * A trap for \`Object.getOwnPropertyDescriptor()\`. + * @param target The original object which is being proxied. + * @param p The name of the property whose description should be retrieved. + */ + getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined; + + /** + * A trap for the \`[[GetPrototypeOf]]\` internal method. + * @param target The original object which is being proxied. + */ + getPrototypeOf?(target: T): object | null; + + /** + * A trap for the \`in\` operator. + * @param target The original object which is being proxied. + * @param p The name or \`Symbol\` of the property to check for existence. + */ + has?(target: T, p: string | symbol): boolean; + + /** + * A trap for \`Object.isExtensible()\`. + * @param target The original object which is being proxied. + */ + isExtensible?(target: T): boolean; + + /** + * A trap for \`Reflect.ownKeys()\`. + * @param target The original object which is being proxied. + */ + ownKeys?(target: T): ArrayLike<string | symbol>; + + /** + * A trap for \`Object.preventExtensions()\`. + * @param target The original object which is being proxied. + */ + preventExtensions?(target: T): boolean; + + /** + * A trap for setting a property value. + * @param target The original object which is being proxied. + * @param p The name or \`Symbol\` of the property to set. + * @param receiver The object to which the assignment was originally directed. + * @returns A \`Boolean\` indicating whether or not the property was set. + */ + set?(target: T, p: string | symbol, newValue: any, receiver: any): boolean; + + /** + * A trap for \`Object.setPrototypeOf()\`. + * @param target The original object which is being proxied. + * @param newPrototype The object's new prototype or \`null\`. + */ + setPrototypeOf?(target: T, v: object | null): boolean; +} + +interface ProxyConstructor { + /** + * Creates a revocable Proxy object. + * @param target A target object to wrap with Proxy. + * @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it. + */ + revocable<T extends object>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; }; + + /** + * Creates a Proxy object. The Proxy object allows you to create an object that can be used in place of the + * original object, but which may redefine fundamental Object operations like getting, setting, and defining + * properties. Proxy objects are commonly used to log property accesses, validate, format, or sanitize inputs. + * @param target A target object to wrap with Proxy. + * @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it. + */ + new <T extends object>(target: T, handler: ProxyHandler<T>): T; +} +declare var Proxy: ProxyConstructor; +`,co["lib.es2015.reflect.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +declare namespace Reflect { + /** + * Calls the function with the specified object as the this value + * and the elements of specified array as the arguments. + * @param target The function to call. + * @param thisArgument The object to be used as the this object. + * @param argumentsList An array of argument values to be passed to the function. + */ + function apply<T, A extends readonly any[], R>( + target: (this: T, ...args: A) => R, + thisArgument: T, + argumentsList: Readonly<A>, + ): R; + function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any; + + /** + * Constructs the target with the elements of specified array as the arguments + * and the specified constructor as the \`new.target\` value. + * @param target The constructor to invoke. + * @param argumentsList An array of argument values to be passed to the constructor. + * @param newTarget The constructor to be used as the \`new.target\` object. + */ + function construct<A extends readonly any[], R>( + target: new (...args: A) => R, + argumentsList: Readonly<A>, + newTarget?: new (...args: any) => any, + ): R; + function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any; + + /** + * Adds a property to an object, or modifies attributes of an existing property. + * @param target Object on which to add or modify the property. This can be a native JavaScript object + * (that is, a user-defined object or a built in object) or a DOM object. + * @param propertyKey The property name. + * @param attributes Descriptor for the property. It can be for a data property or an accessor property. + */ + function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): boolean; + + /** + * Removes a property from an object, equivalent to \`delete target[propertyKey]\`, + * except it won't throw if \`target[propertyKey]\` is non-configurable. + * @param target Object from which to remove the own property. + * @param propertyKey The property name. + */ + function deleteProperty(target: object, propertyKey: PropertyKey): boolean; + + /** + * Gets the property of target, equivalent to \`target[propertyKey]\` when \`receiver === target\`. + * @param target Object that contains the property on itself or in its prototype chain. + * @param propertyKey The property name. + * @param receiver The reference to use as the \`this\` value in the getter function, + * if \`target[propertyKey]\` is an accessor property. + */ + function get<T extends object, P extends PropertyKey>( + target: T, + propertyKey: P, + receiver?: unknown, + ): P extends keyof T ? T[P] : any; + + /** + * Gets the own property descriptor of the specified object. + * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype. + * @param target Object that contains the property. + * @param propertyKey The property name. + */ + function getOwnPropertyDescriptor<T extends object, P extends PropertyKey>( + target: T, + propertyKey: P, + ): TypedPropertyDescriptor<P extends keyof T ? T[P] : any> | undefined; + + /** + * Returns the prototype of an object. + * @param target The object that references the prototype. + */ + function getPrototypeOf(target: object): object | null; + + /** + * Equivalent to \`propertyKey in target\`. + * @param target Object that contains the property on itself or in its prototype chain. + * @param propertyKey Name of the property. + */ + function has(target: object, propertyKey: PropertyKey): boolean; + + /** + * Returns a value that indicates whether new properties can be added to an object. + * @param target Object to test. + */ + function isExtensible(target: object): boolean; + + /** + * Returns the string and symbol keys of the own properties of an object. The own properties of an object + * are those that are defined directly on that object, and are not inherited from the object's prototype. + * @param target Object that contains the own properties. + */ + function ownKeys(target: object): (string | symbol)[]; + + /** + * Prevents the addition of new properties to an object. + * @param target Object to make non-extensible. + * @return Whether the object has been made non-extensible. + */ + function preventExtensions(target: object): boolean; + + /** + * Sets the property of target, equivalent to \`target[propertyKey] = value\` when \`receiver === target\`. + * @param target Object that contains the property on itself or in its prototype chain. + * @param propertyKey Name of the property. + * @param receiver The reference to use as the \`this\` value in the setter function, + * if \`target[propertyKey]\` is an accessor property. + */ + function set<T extends object, P extends PropertyKey>( + target: T, + propertyKey: P, + value: P extends keyof T ? T[P] : any, + receiver?: any, + ): boolean; + function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean; + + /** + * Sets the prototype of a specified object o to object proto or null. + * @param target The object to change its prototype. + * @param proto The value of the new prototype or null. + * @return Whether setting the prototype was successful. + */ + function setPrototypeOf(target: object, proto: object | null): boolean; +} +`,co["lib.es2015.symbol.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface SymbolConstructor { + /** + * A reference to the prototype. + */ + readonly prototype: Symbol; + + /** + * Returns a new unique Symbol value. + * @param description Description of the new Symbol object. + */ + (description?: string | number): symbol; + + /** + * Returns a Symbol object from the global symbol registry matching the given key if found. + * Otherwise, returns a new symbol with this key. + * @param key key to search for. + */ + for(key: string): symbol; + + /** + * Returns a key from the global symbol registry matching the given Symbol if found. + * Otherwise, returns a undefined. + * @param sym Symbol to find the key for. + */ + keyFor(sym: symbol): string | undefined; +} + +declare var Symbol: SymbolConstructor; +`,co["lib.es2015.symbol.wellknown.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2015.symbol" /> + +interface SymbolConstructor { + /** + * A method that determines if a constructor object recognizes an object as one of the + * constructor’s instances. Called by the semantics of the instanceof operator. + */ + readonly hasInstance: unique symbol; + + /** + * A Boolean value that if true indicates that an object should flatten to its array elements + * by Array.prototype.concat. + */ + readonly isConcatSpreadable: unique symbol; + + /** + * A regular expression method that matches the regular expression against a string. Called + * by the String.prototype.match method. + */ + readonly match: unique symbol; + + /** + * A regular expression method that replaces matched substrings of a string. Called by the + * String.prototype.replace method. + */ + readonly replace: unique symbol; + + /** + * A regular expression method that returns the index within a string that matches the + * regular expression. Called by the String.prototype.search method. + */ + readonly search: unique symbol; + + /** + * A function valued property that is the constructor function that is used to create + * derived objects. + */ + readonly species: unique symbol; + + /** + * A regular expression method that splits a string at the indices that match the regular + * expression. Called by the String.prototype.split method. + */ + readonly split: unique symbol; + + /** + * A method that converts an object to a corresponding primitive value. + * Called by the ToPrimitive abstract operation. + */ + readonly toPrimitive: unique symbol; + + /** + * A String value that is used in the creation of the default string description of an object. + * Called by the built-in method Object.prototype.toString. + */ + readonly toStringTag: unique symbol; + + /** + * An Object whose truthy properties are properties that are excluded from the 'with' + * environment bindings of the associated objects. + */ + readonly unscopables: unique symbol; +} + +interface Symbol { + /** + * Converts a Symbol object to a symbol. + */ + [Symbol.toPrimitive](hint: string): symbol; + + readonly [Symbol.toStringTag]: string; +} + +interface Array<T> { + /** + * Is an object whose properties have the value 'true' + * when they will be absent when used in a 'with' statement. + */ + readonly [Symbol.unscopables]: { + [K in keyof any[]]?: boolean; + }; +} + +interface ReadonlyArray<T> { + /** + * Is an object whose properties have the value 'true' + * when they will be absent when used in a 'with' statement. + */ + readonly [Symbol.unscopables]: { + [K in keyof readonly any[]]?: boolean; + }; +} + +interface Date { + /** + * Converts a Date object to a string. + */ + [Symbol.toPrimitive](hint: "default"): string; + /** + * Converts a Date object to a string. + */ + [Symbol.toPrimitive](hint: "string"): string; + /** + * Converts a Date object to a number. + */ + [Symbol.toPrimitive](hint: "number"): number; + /** + * Converts a Date object to a string or number. + * + * @param hint The strings "number", "string", or "default" to specify what primitive to return. + * + * @throws {TypeError} If 'hint' was given something other than "number", "string", or "default". + * @returns A number if 'hint' was "number", a string if 'hint' was "string" or "default". + */ + [Symbol.toPrimitive](hint: string): string | number; +} + +interface Map<K, V> { + readonly [Symbol.toStringTag]: string; +} + +interface WeakMap<K extends WeakKey, V> { + readonly [Symbol.toStringTag]: string; +} + +interface Set<T> { + readonly [Symbol.toStringTag]: string; +} + +interface WeakSet<T extends WeakKey> { + readonly [Symbol.toStringTag]: string; +} + +interface JSON { + readonly [Symbol.toStringTag]: string; +} + +interface Function { + /** + * Determines whether the given value inherits from this function if this function was used + * as a constructor function. + * + * A constructor function can control which objects are recognized as its instances by + * 'instanceof' by overriding this method. + */ + [Symbol.hasInstance](value: any): boolean; +} + +interface GeneratorFunction { + readonly [Symbol.toStringTag]: string; +} + +interface Math { + readonly [Symbol.toStringTag]: string; +} + +interface Promise<T> { + readonly [Symbol.toStringTag]: string; +} + +interface PromiseConstructor { + readonly [Symbol.species]: PromiseConstructor; +} + +interface RegExp { + /** + * Matches a string with this regular expression, and returns an array containing the results of + * that search. + * @param string A string to search within. + */ + [Symbol.match](string: string): RegExpMatchArray | null; + + /** + * Replaces text in a string, using this regular expression. + * @param string A String object or string literal whose contents matching against + * this regular expression will be replaced + * @param replaceValue A String object or string literal containing the text to replace for every + * successful match of this regular expression. + */ + [Symbol.replace](string: string, replaceValue: string): string; + + /** + * Replaces text in a string, using this regular expression. + * @param string A String object or string literal whose contents matching against + * this regular expression will be replaced + * @param replacer A function that returns the replacement text. + */ + [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; + + /** + * Finds the position beginning first substring match in a regular expression search + * using this regular expression. + * + * @param string The string to search within. + */ + [Symbol.search](string: string): number; + + /** + * Returns an array of substrings that were delimited by strings in the original input that + * match against this regular expression. + * + * If the regular expression contains capturing parentheses, then each time this + * regular expression matches, the results (including any undefined results) of the + * capturing parentheses are spliced. + * + * @param string string value to split + * @param limit if not undefined, the output array is truncated so that it contains no more + * than 'limit' elements. + */ + [Symbol.split](string: string, limit?: number): string[]; +} + +interface RegExpConstructor { + readonly [Symbol.species]: RegExpConstructor; +} + +interface String { + /** + * Matches a string or an object that supports being matched against, and returns an array + * containing the results of that search, or null if no matches are found. + * @param matcher An object that supports being matched against. + */ + match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null; + + /** + * Passes a string and {@linkcode replaceValue} to the \`[Symbol.replace]\` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm. + * @param searchValue An object that supports searching for and replacing matches within a string. + * @param replaceValue The replacement text. + */ + replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string; + + /** + * Replaces text in a string, using an object that supports replacement within a string. + * @param searchValue A object can search for and replace matches within a string. + * @param replacer A function that returns the replacement text. + */ + replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string; + + /** + * Finds the first substring match in a regular expression search. + * @param searcher An object which supports searching within a string. + */ + search(searcher: { [Symbol.search](string: string): number; }): number; + + /** + * Split a string into substrings using the specified separator and return them as an array. + * @param splitter An object that can split a string. + * @param limit A value used to limit the number of elements returned in the array. + */ + split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[]; +} + +interface ArrayBuffer { + readonly [Symbol.toStringTag]: string; +} + +interface DataView { + readonly [Symbol.toStringTag]: string; +} + +interface Int8Array { + readonly [Symbol.toStringTag]: "Int8Array"; +} + +interface Uint8Array { + readonly [Symbol.toStringTag]: "Uint8Array"; +} + +interface Uint8ClampedArray { + readonly [Symbol.toStringTag]: "Uint8ClampedArray"; +} + +interface Int16Array { + readonly [Symbol.toStringTag]: "Int16Array"; +} + +interface Uint16Array { + readonly [Symbol.toStringTag]: "Uint16Array"; +} + +interface Int32Array { + readonly [Symbol.toStringTag]: "Int32Array"; +} + +interface Uint32Array { + readonly [Symbol.toStringTag]: "Uint32Array"; +} + +interface Float32Array { + readonly [Symbol.toStringTag]: "Float32Array"; +} + +interface Float64Array { + readonly [Symbol.toStringTag]: "Float64Array"; +} + +interface ArrayConstructor { + readonly [Symbol.species]: ArrayConstructor; +} +interface MapConstructor { + readonly [Symbol.species]: MapConstructor; +} +interface SetConstructor { + readonly [Symbol.species]: SetConstructor; +} +interface ArrayBufferConstructor { + readonly [Symbol.species]: ArrayBufferConstructor; +} +`,co["lib.es2016.array.include.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface Array<T> { + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: T, fromIndex?: number): boolean; +} + +interface ReadonlyArray<T> { + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: T, fromIndex?: number): boolean; +} + +interface Int8Array { + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: number, fromIndex?: number): boolean; +} + +interface Uint8Array { + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: number, fromIndex?: number): boolean; +} + +interface Uint8ClampedArray { + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: number, fromIndex?: number): boolean; +} + +interface Int16Array { + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: number, fromIndex?: number): boolean; +} + +interface Uint16Array { + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: number, fromIndex?: number): boolean; +} + +interface Int32Array { + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: number, fromIndex?: number): boolean; +} + +interface Uint32Array { + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: number, fromIndex?: number): boolean; +} + +interface Float32Array { + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: number, fromIndex?: number): boolean; +} + +interface Float64Array { + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: number, fromIndex?: number): boolean; +} +`,co["lib.es2016.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2015" /> +/// <reference lib="es2016.array.include" /> +/// <reference lib="es2016.intl" /> +`,co["lib.es2016.full.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2016" /> +/// <reference lib="dom" /> +/// <reference lib="webworker.importscripts" /> +/// <reference lib="scripthost" /> +/// <reference lib="dom.iterable" /> +`,co["lib.es2016.intl.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +declare namespace Intl { + /** + * The \`Intl.getCanonicalLocales()\` method returns an array containing + * the canonical locale names. Duplicates will be omitted and elements + * will be validated as structurally valid language tags. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales) + * + * @param locale A list of String values for which to get the canonical locale names + * @returns An array containing the canonical and validated locale names. + */ + function getCanonicalLocales(locale?: string | readonly string[]): string[]; +} +`,co["lib.es2017.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2016" /> +/// <reference lib="es2017.object" /> +/// <reference lib="es2017.sharedmemory" /> +/// <reference lib="es2017.string" /> +/// <reference lib="es2017.intl" /> +/// <reference lib="es2017.typedarrays" /> +/// <reference lib="es2017.date" /> +`,co["lib.es2017.date.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface DateConstructor { + /** + * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date. + * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. + * @param monthIndex The month as a number between 0 and 11 (January to December). + * @param date The date as a number between 1 and 31. + * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour. + * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes. + * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds. + * @param ms A number from 0 to 999 that specifies the milliseconds. + */ + UTC(year: number, monthIndex?: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number; +} +`,co["lib.es2017.full.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2017" /> +/// <reference lib="dom" /> +/// <reference lib="webworker.importscripts" /> +/// <reference lib="scripthost" /> +/// <reference lib="dom.iterable" /> +`,co["lib.es2017.intl.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +declare namespace Intl { + interface DateTimeFormatPartTypesRegistry { + day: any; + dayPeriod: any; + era: any; + hour: any; + literal: any; + minute: any; + month: any; + second: any; + timeZoneName: any; + weekday: any; + year: any; + } + + type DateTimeFormatPartTypes = keyof DateTimeFormatPartTypesRegistry; + + interface DateTimeFormatPart { + type: DateTimeFormatPartTypes; + value: string; + } + + interface DateTimeFormat { + formatToParts(date?: Date | number): DateTimeFormatPart[]; + } +} +`,co["lib.es2017.object.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface ObjectConstructor { + /** + * Returns an array of values of the enumerable properties of an object + * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. + */ + values<T>(o: { [s: string]: T; } | ArrayLike<T>): T[]; + + /** + * Returns an array of values of the enumerable properties of an object + * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. + */ + values(o: {}): any[]; + + /** + * Returns an array of key/values of the enumerable properties of an object + * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. + */ + entries<T>(o: { [s: string]: T; } | ArrayLike<T>): [string, T][]; + + /** + * Returns an array of key/values of the enumerable properties of an object + * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. + */ + entries(o: {}): [string, any][]; + + /** + * Returns an object containing all own property descriptors of an object + * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. + */ + getOwnPropertyDescriptors<T>(o: T): { [P in keyof T]: TypedPropertyDescriptor<T[P]>; } & { [x: string]: PropertyDescriptor; }; +} +`,co["lib.es2017.sharedmemory.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2015.symbol" /> +/// <reference lib="es2015.symbol.wellknown" /> + +interface SharedArrayBuffer { + /** + * Read-only. The length of the ArrayBuffer (in bytes). + */ + readonly byteLength: number; + + /** + * Returns a section of an SharedArrayBuffer. + */ + slice(begin: number, end?: number): SharedArrayBuffer; + readonly [Symbol.species]: SharedArrayBuffer; + readonly [Symbol.toStringTag]: "SharedArrayBuffer"; +} + +interface SharedArrayBufferConstructor { + readonly prototype: SharedArrayBuffer; + new (byteLength: number): SharedArrayBuffer; +} +declare var SharedArrayBuffer: SharedArrayBufferConstructor; + +interface ArrayBufferTypes { + SharedArrayBuffer: SharedArrayBuffer; +} + +interface Atomics { + /** + * Adds a value to the value at the given position in the array, returning the original value. + * Until this atomic operation completes, any other read or write operation against the array + * will block. + */ + add(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; + + /** + * Stores the bitwise AND of a value with the value at the given position in the array, + * returning the original value. Until this atomic operation completes, any other read or + * write operation against the array will block. + */ + and(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; + + /** + * Replaces the value at the given position in the array if the original value equals the given + * expected value, returning the original value. Until this atomic operation completes, any + * other read or write operation against the array will block. + */ + compareExchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, expectedValue: number, replacementValue: number): number; + + /** + * Replaces the value at the given position in the array, returning the original value. Until + * this atomic operation completes, any other read or write operation against the array will + * block. + */ + exchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; + + /** + * Returns a value indicating whether high-performance algorithms can use atomic operations + * (\`true\`) or must use locks (\`false\`) for the given number of bytes-per-element of a typed + * array. + */ + isLockFree(size: number): boolean; + + /** + * Returns the value at the given position in the array. Until this atomic operation completes, + * any other read or write operation against the array will block. + */ + load(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number): number; + + /** + * Stores the bitwise OR of a value with the value at the given position in the array, + * returning the original value. Until this atomic operation completes, any other read or write + * operation against the array will block. + */ + or(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; + + /** + * Stores a value at the given position in the array, returning the new value. Until this + * atomic operation completes, any other read or write operation against the array will block. + */ + store(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; + + /** + * Subtracts a value from the value at the given position in the array, returning the original + * value. Until this atomic operation completes, any other read or write operation against the + * array will block. + */ + sub(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; + + /** + * If the value at the given position in the array is equal to the provided value, the current + * agent is put to sleep causing execution to suspend until the timeout expires (returning + * \`"timed-out"\`) or until the agent is awoken (returning \`"ok"\`); otherwise, returns + * \`"not-equal"\`. + */ + wait(typedArray: Int32Array, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out"; + + /** + * Wakes up sleeping agents that are waiting on the given index of the array, returning the + * number of agents that were awoken. + * @param typedArray A shared Int32Array. + * @param index The position in the typedArray to wake up on. + * @param count The number of sleeping agents to notify. Defaults to +Infinity. + */ + notify(typedArray: Int32Array, index: number, count?: number): number; + + /** + * Stores the bitwise XOR of a value with the value at the given position in the array, + * returning the original value. Until this atomic operation completes, any other read or write + * operation against the array will block. + */ + xor(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; + + readonly [Symbol.toStringTag]: "Atomics"; +} + +declare var Atomics: Atomics; +`,co["lib.es2017.string.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface String { + /** + * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length. + * The padding is applied from the start (left) of the current string. + * + * @param maxLength The length of the resulting string once the current string has been padded. + * If this parameter is smaller than the current string's length, the current string will be returned as it is. + * + * @param fillString The string to pad the current string with. + * If this string is too long, it will be truncated and the left-most part will be applied. + * The default value for this parameter is " " (U+0020). + */ + padStart(maxLength: number, fillString?: string): string; + + /** + * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length. + * The padding is applied from the end (right) of the current string. + * + * @param maxLength The length of the resulting string once the current string has been padded. + * If this parameter is smaller than the current string's length, the current string will be returned as it is. + * + * @param fillString The string to pad the current string with. + * If this string is too long, it will be truncated and the left-most part will be applied. + * The default value for this parameter is " " (U+0020). + */ + padEnd(maxLength: number, fillString?: string): string; +} +`,co["lib.es2017.typedarrays.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface Int8ArrayConstructor { + new (): Int8Array; +} + +interface Uint8ArrayConstructor { + new (): Uint8Array; +} + +interface Uint8ClampedArrayConstructor { + new (): Uint8ClampedArray; +} + +interface Int16ArrayConstructor { + new (): Int16Array; +} + +interface Uint16ArrayConstructor { + new (): Uint16Array; +} + +interface Int32ArrayConstructor { + new (): Int32Array; +} + +interface Uint32ArrayConstructor { + new (): Uint32Array; +} + +interface Float32ArrayConstructor { + new (): Float32Array; +} + +interface Float64ArrayConstructor { + new (): Float64Array; +} +`,co["lib.es2018.asyncgenerator.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2018.asynciterable" /> + +interface AsyncGenerator<T = unknown, TReturn = any, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> { + // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places. + next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>; + return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>; + throw(e: any): Promise<IteratorResult<T, TReturn>>; + [Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>; +} + +interface AsyncGeneratorFunction { + /** + * Creates a new AsyncGenerator object. + * @param args A list of arguments the function accepts. + */ + new (...args: any[]): AsyncGenerator; + /** + * Creates a new AsyncGenerator object. + * @param args A list of arguments the function accepts. + */ + (...args: any[]): AsyncGenerator; + /** + * The length of the arguments. + */ + readonly length: number; + /** + * Returns the name of the function. + */ + readonly name: string; + /** + * A reference to the prototype. + */ + readonly prototype: AsyncGenerator; +} + +interface AsyncGeneratorFunctionConstructor { + /** + * Creates a new AsyncGenerator function. + * @param args A list of arguments the function accepts. + */ + new (...args: string[]): AsyncGeneratorFunction; + /** + * Creates a new AsyncGenerator function. + * @param args A list of arguments the function accepts. + */ + (...args: string[]): AsyncGeneratorFunction; + /** + * The length of the arguments. + */ + readonly length: number; + /** + * Returns the name of the function. + */ + readonly name: string; + /** + * A reference to the prototype. + */ + readonly prototype: AsyncGeneratorFunction; +} +`,co["lib.es2018.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2015.symbol" /> +/// <reference lib="es2015.iterable" /> + +interface SymbolConstructor { + /** + * A method that returns the default async iterator for an object. Called by the semantics of + * the for-await-of statement. + */ + readonly asyncIterator: unique symbol; +} + +interface AsyncIterator<T, TReturn = any, TNext = undefined> { + // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places. + next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>; + return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>; + throw?(e?: any): Promise<IteratorResult<T, TReturn>>; +} + +interface AsyncIterable<T> { + [Symbol.asyncIterator](): AsyncIterator<T>; +} + +interface AsyncIterableIterator<T> extends AsyncIterator<T> { + [Symbol.asyncIterator](): AsyncIterableIterator<T>; +} +`,co["lib.es2018.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2017" /> +/// <reference lib="es2018.asynciterable" /> +/// <reference lib="es2018.asyncgenerator" /> +/// <reference lib="es2018.promise" /> +/// <reference lib="es2018.regexp" /> +/// <reference lib="es2018.intl" /> +`,co["lib.es2018.full.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2018" /> +/// <reference lib="dom" /> +/// <reference lib="webworker.importscripts" /> +/// <reference lib="scripthost" /> +/// <reference lib="dom.iterable" /> +/// <reference lib="dom.asynciterable" /> +`,co["lib.es2018.intl.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +declare namespace Intl { + // http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories + type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other"; + type PluralRuleType = "cardinal" | "ordinal"; + + interface PluralRulesOptions { + localeMatcher?: "lookup" | "best fit" | undefined; + type?: PluralRuleType | undefined; + minimumIntegerDigits?: number | undefined; + minimumFractionDigits?: number | undefined; + maximumFractionDigits?: number | undefined; + minimumSignificantDigits?: number | undefined; + maximumSignificantDigits?: number | undefined; + } + + interface ResolvedPluralRulesOptions { + locale: string; + pluralCategories: LDMLPluralRule[]; + type: PluralRuleType; + minimumIntegerDigits: number; + minimumFractionDigits: number; + maximumFractionDigits: number; + minimumSignificantDigits?: number; + maximumSignificantDigits?: number; + } + + interface PluralRules { + resolvedOptions(): ResolvedPluralRulesOptions; + select(n: number): LDMLPluralRule; + } + + interface PluralRulesConstructor { + new (locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules; + (locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules; + supportedLocalesOf(locales: string | readonly string[], options?: { localeMatcher?: "lookup" | "best fit"; }): string[]; + } + + const PluralRules: PluralRulesConstructor; + + // We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here: + type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name"; + type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown"; + type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType; + + interface NumberFormatPart { + type: NumberFormatPartTypes; + value: string; + } + + interface NumberFormat { + formatToParts(number?: number | bigint): NumberFormatPart[]; + } +} +`,co["lib.es2018.promise.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/** + * Represents the completion of an asynchronous operation + */ +interface Promise<T> { + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): Promise<T>; +} +`,co["lib.es2018.regexp.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface RegExpMatchArray { + groups?: { + [key: string]: string; + }; +} + +interface RegExpExecArray { + groups?: { + [key: string]: string; + }; +} + +interface RegExp { + /** + * Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression. + * Default is false. Read-only. + */ + readonly dotAll: boolean; +} +`,co["lib.es2019.array.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +type FlatArray<Arr, Depth extends number> = { + done: Arr; + recur: Arr extends ReadonlyArray<infer InnerArr> ? FlatArray<InnerArr, [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20][Depth]> + : Arr; +}[Depth extends -1 ? "done" : "recur"]; + +interface ReadonlyArray<T> { + /** + * Calls a defined callback function on each element of an array. Then, flattens the result into + * a new array. + * This is identical to a map followed by flat with depth 1. + * + * @param callback A function that accepts up to three arguments. The flatMap method calls the + * callback function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callback function. If + * thisArg is omitted, undefined is used as the this value. + */ + flatMap<U, This = undefined>( + callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>, + thisArg?: This, + ): U[]; + + /** + * Returns a new array with all sub-array elements concatenated into it recursively up to the + * specified depth. + * + * @param depth The maximum recursion depth + */ + flat<A, D extends number = 1>( + this: A, + depth?: D, + ): FlatArray<A, D>[]; +} + +interface Array<T> { + /** + * Calls a defined callback function on each element of an array. Then, flattens the result into + * a new array. + * This is identical to a map followed by flat with depth 1. + * + * @param callback A function that accepts up to three arguments. The flatMap method calls the + * callback function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callback function. If + * thisArg is omitted, undefined is used as the this value. + */ + flatMap<U, This = undefined>( + callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>, + thisArg?: This, + ): U[]; + + /** + * Returns a new array with all sub-array elements concatenated into it recursively up to the + * specified depth. + * + * @param depth The maximum recursion depth + */ + flat<A, D extends number = 1>( + this: A, + depth?: D, + ): FlatArray<A, D>[]; +} +`,co["lib.es2019.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2018" /> +/// <reference lib="es2019.array" /> +/// <reference lib="es2019.object" /> +/// <reference lib="es2019.string" /> +/// <reference lib="es2019.symbol" /> +/// <reference lib="es2019.intl" /> +`,co["lib.es2019.full.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2019" /> +/// <reference lib="dom" /> +/// <reference lib="webworker.importscripts" /> +/// <reference lib="scripthost" /> +/// <reference lib="dom.iterable" /> +/// <reference lib="dom.asynciterable" /> +`,co["lib.es2019.intl.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +declare namespace Intl { + interface DateTimeFormatPartTypesRegistry { + unknown: any; + } +} +`,co["lib.es2019.object.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2015.iterable" /> + +interface ObjectConstructor { + /** + * Returns an object created by key-value entries for properties and methods + * @param entries An iterable object that contains key-value entries for properties and methods. + */ + fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T; }; + + /** + * Returns an object created by key-value entries for properties and methods + * @param entries An iterable object that contains key-value entries for properties and methods. + */ + fromEntries(entries: Iterable<readonly any[]>): any; +} +`,co["lib.es2019.string.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface String { + /** Removes the trailing white space and line terminator characters from a string. */ + trimEnd(): string; + + /** Removes the leading white space and line terminator characters from a string. */ + trimStart(): string; + + /** + * Removes the leading white space and line terminator characters from a string. + * @deprecated A legacy feature for browser compatibility. Use \`trimStart\` instead + */ + trimLeft(): string; + + /** + * Removes the trailing white space and line terminator characters from a string. + * @deprecated A legacy feature for browser compatibility. Use \`trimEnd\` instead + */ + trimRight(): string; +} +`,co["lib.es2019.symbol.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface Symbol { + /** + * Expose the [[Description]] internal slot of a symbol directly. + */ + readonly description: string | undefined; +} +`,co["lib.es2020.bigint.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2020.intl" /> + +interface BigIntToLocaleStringOptions { + /** + * The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}. + */ + localeMatcher?: string; + /** + * The formatting style to use , the default is "decimal". + */ + style?: string; + + numberingSystem?: string; + /** + * The unit to use in unit formatting, Possible values are core unit identifiers, defined in UTS #35, Part 2, Section 6. A subset of units from the full list was selected for use in ECMAScript. Pairs of simple units can be concatenated with "-per-" to make a compound unit. There is no default value; if the style is "unit", the unit property must be provided. + */ + unit?: string; + + /** + * The unit formatting style to use in unit formatting, the defaults is "short". + */ + unitDisplay?: string; + + /** + * The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB — see the Current currency & funds code list. There is no default value; if the style is "currency", the currency property must be provided. It is only used when [[Style]] has the value "currency". + */ + currency?: string; + + /** + * How to display the currency in currency formatting. It is only used when [[Style]] has the value "currency". The default is "symbol". + * + * "symbol" to use a localized currency symbol such as €, + * + * "code" to use the ISO currency code, + * + * "name" to use a localized currency name such as "dollar" + */ + currencyDisplay?: string; + + /** + * Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. The default is true. + */ + useGrouping?: boolean; + + /** + * The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1. + */ + minimumIntegerDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21; + + /** + * The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information). + */ + minimumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20; + + /** + * The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information); the default for percent formatting is the larger of minimumFractionDigits and 0. + */ + maximumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20; + + /** + * The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1. + */ + minimumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21; + + /** + * The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21. + */ + maximumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21; + + /** + * The formatting that should be displayed for the number, the defaults is "standard" + * + * "standard" plain number formatting + * + * "scientific" return the order-of-magnitude for formatted number. + * + * "engineering" return the exponent of ten when divisible by three + * + * "compact" string representing exponent, defaults is using the "short" form + */ + notation?: string; + + /** + * used only when notation is "compact" + */ + compactDisplay?: string; +} + +interface BigInt { + /** + * Returns a string representation of an object. + * @param radix Specifies a radix for converting numeric values to strings. + */ + toString(radix?: number): string; + + /** Returns a string representation appropriate to the host environment's current locale. */ + toLocaleString(locales?: Intl.LocalesArgument, options?: BigIntToLocaleStringOptions): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): bigint; + + readonly [Symbol.toStringTag]: "BigInt"; +} + +interface BigIntConstructor { + (value: bigint | boolean | number | string): bigint; + readonly prototype: BigInt; + + /** + * Interprets the low bits of a BigInt as a 2's-complement signed integer. + * All higher bits are discarded. + * @param bits The number of low bits to use + * @param int The BigInt whose bits to extract + */ + asIntN(bits: number, int: bigint): bigint; + /** + * Interprets the low bits of a BigInt as an unsigned integer. + * All higher bits are discarded. + * @param bits The number of low bits to use + * @param int The BigInt whose bits to extract + */ + asUintN(bits: number, int: bigint): bigint; +} + +declare var BigInt: BigIntConstructor; + +/** + * A typed array of 64-bit signed integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated, an exception is raised. + */ +interface BigInt64Array { + /** The size in bytes of each element in the array. */ + readonly BYTES_PER_ELEMENT: number; + + /** The ArrayBuffer instance referenced by the array. */ + readonly buffer: ArrayBufferLike; + + /** The length in bytes of the array. */ + readonly byteLength: number; + + /** The offset in bytes of the array. */ + readonly byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; + + /** Yields index, value pairs for every entry in the array. */ + entries(): IterableIterator<[number, bigint]>; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param predicate A function that accepts up to three arguments. The every method calls + * the predicate function for each element in the array until the predicate returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean; + + /** + * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: bigint, start?: number, end?: number): this; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param predicate A function that accepts up to three arguments. The filter method calls + * the predicate function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void; + + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: bigint, fromIndex?: number): boolean; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: bigint, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** Yields each index in the array. */ + keys(): IterableIterator<number>; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: bigint, fromIndex?: number): number; + + /** The length of the array. */ + readonly length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U; + + /** Reverses the elements in the array. */ + reverse(): this; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike<bigint>, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): BigInt64Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param predicate A function that accepts up to three arguments. The some method calls the + * predicate function for each element in the array until the predicate returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean; + + /** + * Sorts the array. + * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order. + */ + sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this; + + /** + * Gets a new BigInt64Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin?: number, end?: number): BigInt64Array; + + /** Converts the array to a string by using the current locale. */ + toLocaleString(): string; + + /** Returns a string representation of the array. */ + toString(): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): BigInt64Array; + + /** Yields each value in the array. */ + values(): IterableIterator<bigint>; + + [Symbol.iterator](): IterableIterator<bigint>; + + readonly [Symbol.toStringTag]: "BigInt64Array"; + + [index: number]: bigint; +} + +interface BigInt64ArrayConstructor { + readonly prototype: BigInt64Array; + new (length?: number): BigInt64Array; + new (array: Iterable<bigint>): BigInt64Array; + new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array; + + /** The size in bytes of each element in the array. */ + readonly BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: bigint[]): BigInt64Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: ArrayLike<bigint>): BigInt64Array; + from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array; +} + +declare var BigInt64Array: BigInt64ArrayConstructor; + +/** + * A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated, an exception is raised. + */ +interface BigUint64Array { + /** The size in bytes of each element in the array. */ + readonly BYTES_PER_ELEMENT: number; + + /** The ArrayBuffer instance referenced by the array. */ + readonly buffer: ArrayBufferLike; + + /** The length in bytes of the array. */ + readonly byteLength: number; + + /** The offset in bytes of the array. */ + readonly byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; + + /** Yields index, value pairs for every entry in the array. */ + entries(): IterableIterator<[number, bigint]>; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param predicate A function that accepts up to three arguments. The every method calls + * the predicate function for each element in the array until the predicate returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean; + + /** + * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: bigint, start?: number, end?: number): this; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param predicate A function that accepts up to three arguments. The filter method calls + * the predicate function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void; + + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: bigint, fromIndex?: number): boolean; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: bigint, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** Yields each index in the array. */ + keys(): IterableIterator<number>; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: bigint, fromIndex?: number): number; + + /** The length of the array. */ + readonly length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U; + + /** Reverses the elements in the array. */ + reverse(): this; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike<bigint>, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): BigUint64Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param predicate A function that accepts up to three arguments. The some method calls the + * predicate function for each element in the array until the predicate returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean; + + /** + * Sorts the array. + * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order. + */ + sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this; + + /** + * Gets a new BigUint64Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin?: number, end?: number): BigUint64Array; + + /** Converts the array to a string by using the current locale. */ + toLocaleString(): string; + + /** Returns a string representation of the array. */ + toString(): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): BigUint64Array; + + /** Yields each value in the array. */ + values(): IterableIterator<bigint>; + + [Symbol.iterator](): IterableIterator<bigint>; + + readonly [Symbol.toStringTag]: "BigUint64Array"; + + [index: number]: bigint; +} + +interface BigUint64ArrayConstructor { + readonly prototype: BigUint64Array; + new (length?: number): BigUint64Array; + new (array: Iterable<bigint>): BigUint64Array; + new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array; + + /** The size in bytes of each element in the array. */ + readonly BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: bigint[]): BigUint64Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: ArrayLike<bigint>): BigUint64Array; + from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array; +} + +declare var BigUint64Array: BigUint64ArrayConstructor; + +interface DataView { + /** + * Gets the BigInt64 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + * @param littleEndian If false or undefined, a big-endian value should be read. + */ + getBigInt64(byteOffset: number, littleEndian?: boolean): bigint; + + /** + * Gets the BigUint64 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + * @param littleEndian If false or undefined, a big-endian value should be read. + */ + getBigUint64(byteOffset: number, littleEndian?: boolean): bigint; + + /** + * Stores a BigInt64 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written. + */ + setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void; + + /** + * Stores a BigUint64 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written. + */ + setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void; +} + +declare namespace Intl { + interface NumberFormat { + format(value: number | bigint): string; + resolvedOptions(): ResolvedNumberFormatOptions; + } +} +`,co["lib.es2020.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2019" /> +/// <reference lib="es2020.bigint" /> +/// <reference lib="es2020.date" /> +/// <reference lib="es2020.number" /> +/// <reference lib="es2020.promise" /> +/// <reference lib="es2020.sharedmemory" /> +/// <reference lib="es2020.string" /> +/// <reference lib="es2020.symbol.wellknown" /> +/// <reference lib="es2020.intl" /> +`,co["lib.es2020.date.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2020.intl" /> + +interface Date { + /** + * Converts a date and time to a string by using the current or specified locale. + * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string; + + /** + * Converts a date to a string by using the current or specified locale. + * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + toLocaleDateString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string; + + /** + * Converts a time to a string by using the current or specified locale. + * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + toLocaleTimeString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string; +} +`,co["lib.es2020.full.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2020" /> +/// <reference lib="dom" /> +/// <reference lib="webworker.importscripts" /> +/// <reference lib="scripthost" /> +/// <reference lib="dom.iterable" /> +/// <reference lib="dom.asynciterable" /> +`,co["lib.es2020.intl.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2018.intl" /> +declare namespace Intl { + /** + * A string that is a valid [Unicode BCP 47 Locale Identifier](https://unicode.org/reports/tr35/#Unicode_locale_identifier). + * + * For example: "fa", "es-MX", "zh-Hant-TW". + * + * See [MDN - Intl - locales argument](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). + */ + type UnicodeBCP47LocaleIdentifier = string; + + /** + * Unit to use in the relative time internationalized message. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters). + */ + type RelativeTimeFormatUnit = + | "year" + | "years" + | "quarter" + | "quarters" + | "month" + | "months" + | "week" + | "weeks" + | "day" + | "days" + | "hour" + | "hours" + | "minute" + | "minutes" + | "second" + | "seconds"; + + /** + * Value of the \`unit\` property in objects returned by + * \`Intl.RelativeTimeFormat.prototype.formatToParts()\`. \`formatToParts\` and + * \`format\` methods accept either singular or plural unit names as input, + * but \`formatToParts\` only outputs singular (e.g. "day") not plural (e.g. + * "days"). + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts). + */ + type RelativeTimeFormatUnitSingular = + | "year" + | "quarter" + | "month" + | "week" + | "day" + | "hour" + | "minute" + | "second"; + + /** + * The locale matching algorithm to use. + * + * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). + */ + type RelativeTimeFormatLocaleMatcher = "lookup" | "best fit"; + + /** + * The format of output message. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters). + */ + type RelativeTimeFormatNumeric = "always" | "auto"; + + /** + * The length of the internationalized message. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters). + */ + type RelativeTimeFormatStyle = "long" | "short" | "narrow"; + + /** + * The locale or locales to use + * + * See [MDN - Intl - locales argument](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). + */ + type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | readonly (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined; + + /** + * An object with some or all of properties of \`options\` parameter + * of \`Intl.RelativeTimeFormat\` constructor. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters). + */ + interface RelativeTimeFormatOptions { + /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */ + localeMatcher?: RelativeTimeFormatLocaleMatcher; + /** The format of output message. */ + numeric?: RelativeTimeFormatNumeric; + /** The length of the internationalized message. */ + style?: RelativeTimeFormatStyle; + } + + /** + * An object with properties reflecting the locale + * and formatting options computed during initialization + * of the \`Intl.RelativeTimeFormat\` object + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description). + */ + interface ResolvedRelativeTimeFormatOptions { + locale: UnicodeBCP47LocaleIdentifier; + style: RelativeTimeFormatStyle; + numeric: RelativeTimeFormatNumeric; + numberingSystem: string; + } + + /** + * An object representing the relative time format in parts + * that can be used for custom locale-aware formatting. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts). + */ + type RelativeTimeFormatPart = + | { + type: "literal"; + value: string; + } + | { + type: Exclude<NumberFormatPartTypes, "literal">; + value: string; + unit: RelativeTimeFormatUnitSingular; + }; + + interface RelativeTimeFormat { + /** + * Formats a value and a unit according to the locale + * and formatting options of the given + * [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) + * object. + * + * While this method automatically provides the correct plural forms, + * the grammatical form is otherwise as neutral as possible. + * + * It is the caller's responsibility to handle cut-off logic + * such as deciding between displaying "in 7 days" or "in 1 week". + * This API does not support relative dates involving compound units. + * e.g "in 5 days and 4 hours". + * + * @param value - Numeric value to use in the internationalized relative time message + * + * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message. + * + * @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values + * + * @returns {string} Internationalized relative time message as string + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format). + */ + format(value: number, unit: RelativeTimeFormatUnit): string; + + /** + * Returns an array of objects representing the relative time format in parts that can be used for custom locale-aware formatting. + * + * @param value - Numeric value to use in the internationalized relative time message + * + * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message. + * + * @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts). + */ + formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[]; + + /** + * Provides access to the locale and options computed during initialization of this \`Intl.RelativeTimeFormat\` object. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions). + */ + resolvedOptions(): ResolvedRelativeTimeFormatOptions; + } + + /** + * The [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) + * object is a constructor for objects that enable language-sensitive relative time formatting. + * + * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility). + */ + const RelativeTimeFormat: { + /** + * Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects + * + * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings. + * For the general form and interpretation of the locales argument, + * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). + * + * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters) + * with some or all of options of \`RelativeTimeFormatOptions\`. + * + * @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat). + */ + new ( + locales?: LocalesArgument, + options?: RelativeTimeFormatOptions, + ): RelativeTimeFormat; + + /** + * Returns an array containing those of the provided locales + * that are supported in date and time formatting + * without having to fall back to the runtime's default locale. + * + * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings. + * For the general form and interpretation of the locales argument, + * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). + * + * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters) + * with some or all of options of the formatting. + * + * @returns An array containing those of the provided locales + * that are supported in date and time formatting + * without having to fall back to the runtime's default locale. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf). + */ + supportedLocalesOf( + locales?: LocalesArgument, + options?: RelativeTimeFormatOptions, + ): UnicodeBCP47LocaleIdentifier[]; + }; + + interface NumberFormatOptions { + compactDisplay?: "short" | "long" | undefined; + notation?: "standard" | "scientific" | "engineering" | "compact" | undefined; + signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined; + unit?: string | undefined; + unitDisplay?: "short" | "long" | "narrow" | undefined; + currencyDisplay?: string | undefined; + currencySign?: string | undefined; + } + + interface ResolvedNumberFormatOptions { + compactDisplay?: "short" | "long"; + notation?: "standard" | "scientific" | "engineering" | "compact"; + signDisplay?: "auto" | "never" | "always" | "exceptZero"; + unit?: string; + unitDisplay?: "short" | "long" | "narrow"; + currencyDisplay?: string; + currencySign?: string; + } + + interface DateTimeFormatOptions { + calendar?: string | undefined; + dayPeriod?: "narrow" | "short" | "long" | undefined; + numberingSystem?: string | undefined; + + dateStyle?: "full" | "long" | "medium" | "short" | undefined; + timeStyle?: "full" | "long" | "medium" | "short" | undefined; + hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined; + } + + type LocaleHourCycleKey = "h12" | "h23" | "h11" | "h24"; + type LocaleCollationCaseFirst = "upper" | "lower" | "false"; + + interface LocaleOptions { + /** A string containing the language, and the script and region if available. */ + baseName?: string; + /** The part of the Locale that indicates the locale's calendar era. */ + calendar?: string; + /** Flag that defines whether case is taken into account for the locale's collation rules. */ + caseFirst?: LocaleCollationCaseFirst; + /** The collation type used for sorting */ + collation?: string; + /** The time keeping format convention used by the locale. */ + hourCycle?: LocaleHourCycleKey; + /** The primary language subtag associated with the locale. */ + language?: string; + /** The numeral system used by the locale. */ + numberingSystem?: string; + /** Flag that defines whether the locale has special collation handling for numeric characters. */ + numeric?: boolean; + /** The region of the world (usually a country) associated with the locale. Possible values are region codes as defined by ISO 3166-1. */ + region?: string; + /** The script used for writing the particular language used in the locale. Possible values are script codes as defined by ISO 15924. */ + script?: string; + } + + interface Locale extends LocaleOptions { + /** A string containing the language, and the script and region if available. */ + baseName: string; + /** The primary language subtag associated with the locale. */ + language: string; + /** Gets the most likely values for the language, script, and region of the locale based on existing values. */ + maximize(): Locale; + /** Attempts to remove information about the locale that would be added by calling \`Locale.maximize()\`. */ + minimize(): Locale; + /** Returns the locale's full locale identifier string. */ + toString(): UnicodeBCP47LocaleIdentifier; + } + + /** + * Constructor creates [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) + * objects + * + * @param tag - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646). + * For the general form and interpretation of the locales argument, + * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). + * + * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale. + * + * @returns [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale). + */ + const Locale: { + new (tag: UnicodeBCP47LocaleIdentifier | Locale, options?: LocaleOptions): Locale; + }; + + type DisplayNamesFallback = + | "code" + | "none"; + + type DisplayNamesType = + | "language" + | "region" + | "script" + | "calendar" + | "dateTimeField" + | "currency"; + + type DisplayNamesLanguageDisplay = + | "dialect" + | "standard"; + + interface DisplayNamesOptions { + localeMatcher?: RelativeTimeFormatLocaleMatcher; + style?: RelativeTimeFormatStyle; + type: DisplayNamesType; + languageDisplay?: DisplayNamesLanguageDisplay; + fallback?: DisplayNamesFallback; + } + + interface ResolvedDisplayNamesOptions { + locale: UnicodeBCP47LocaleIdentifier; + style: RelativeTimeFormatStyle; + type: DisplayNamesType; + fallback: DisplayNamesFallback; + languageDisplay?: DisplayNamesLanguageDisplay; + } + + interface DisplayNames { + /** + * Receives a code and returns a string based on the locale and options provided when instantiating + * [\`Intl.DisplayNames()\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) + * + * @param code The \`code\` to provide depends on the \`type\` passed to display name during creation: + * - If the type is \`"region"\`, code should be either an [ISO-3166 two letters region code](https://www.iso.org/iso-3166-country-codes.html), + * or a [three digits UN M49 Geographic Regions](https://unstats.un.org/unsd/methodology/m49/). + * - If the type is \`"script"\`, code should be an [ISO-15924 four letters script code](https://unicode.org/iso15924/iso15924-codes.html). + * - If the type is \`"language"\`, code should be a \`languageCode\` ["-" \`scriptCode\`] ["-" \`regionCode\` ] *("-" \`variant\` ) + * subsequence of the unicode_language_id grammar in [UTS 35's Unicode Language and Locale Identifiers grammar](https://unicode.org/reports/tr35/#Unicode_language_identifier). + * \`languageCode\` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code. + * - If the type is \`"currency"\`, code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html). + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of). + */ + of(code: string): string | undefined; + /** + * Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current + * [\`Intl/DisplayNames\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions). + */ + resolvedOptions(): ResolvedDisplayNamesOptions; + } + + /** + * The [\`Intl.DisplayNames()\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) + * object enables the consistent translation of language, region and script display names. + * + * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility). + */ + const DisplayNames: { + prototype: DisplayNames; + + /** + * @param locales A string with a BCP 47 language tag, or an array of such strings. + * For the general form and interpretation of the \`locales\` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) + * page. + * + * @param options An object for setting up a display name. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames). + */ + new (locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames; + + /** + * Returns an array containing those of the provided locales that are supported in display names without having to fall back to the runtime's default locale. + * + * @param locales A string with a BCP 47 language tag, or an array of such strings. + * For the general form and interpretation of the \`locales\` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) + * page. + * + * @param options An object with a locale matcher. + * + * @returns An array of strings representing a subset of the given locale tags that are supported in display names without having to fall back to the runtime's default locale. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf). + */ + supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher; }): UnicodeBCP47LocaleIdentifier[]; + }; + + interface CollatorConstructor { + new (locales?: LocalesArgument, options?: CollatorOptions): Collator; + (locales?: LocalesArgument, options?: CollatorOptions): Collator; + supportedLocalesOf(locales: LocalesArgument, options?: CollatorOptions): string[]; + } + + interface DateTimeFormatConstructor { + new (locales?: LocalesArgument, options?: DateTimeFormatOptions): DateTimeFormat; + (locales?: LocalesArgument, options?: DateTimeFormatOptions): DateTimeFormat; + supportedLocalesOf(locales: LocalesArgument, options?: DateTimeFormatOptions): string[]; + } + + interface NumberFormatConstructor { + new (locales?: LocalesArgument, options?: NumberFormatOptions): NumberFormat; + (locales?: LocalesArgument, options?: NumberFormatOptions): NumberFormat; + supportedLocalesOf(locales: LocalesArgument, options?: NumberFormatOptions): string[]; + } + + interface PluralRulesConstructor { + new (locales?: LocalesArgument, options?: PluralRulesOptions): PluralRules; + (locales?: LocalesArgument, options?: PluralRulesOptions): PluralRules; + + supportedLocalesOf(locales: LocalesArgument, options?: { localeMatcher?: "lookup" | "best fit"; }): string[]; + } +} +`,co["lib.es2020.number.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2020.intl" /> + +interface Number { + /** + * Converts a number to a string by using the current or specified locale. + * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string; +} +`,co["lib.es2020.promise.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface PromiseFulfilledResult<T> { + status: "fulfilled"; + value: T; +} + +interface PromiseRejectedResult { + status: "rejected"; + reason: any; +} + +type PromiseSettledResult<T> = PromiseFulfilledResult<T> | PromiseRejectedResult; + +interface PromiseConstructor { + /** + * Creates a Promise that is resolved with an array of results when all + * of the provided Promises resolve or reject. + * @param values An array of Promises. + * @returns A new Promise. + */ + allSettled<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>>; }>; + + /** + * Creates a Promise that is resolved with an array of results when all + * of the provided Promises resolve or reject. + * @param values An array of Promises. + * @returns A new Promise. + */ + allSettled<T>(values: Iterable<T | PromiseLike<T>>): Promise<PromiseSettledResult<Awaited<T>>[]>; +} +`,co["lib.es2020.sharedmemory.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface Atomics { + /** + * Adds a value to the value at the given position in the array, returning the original value. + * Until this atomic operation completes, any other read or write operation against the array + * will block. + */ + add(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; + + /** + * Stores the bitwise AND of a value with the value at the given position in the array, + * returning the original value. Until this atomic operation completes, any other read or + * write operation against the array will block. + */ + and(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; + + /** + * Replaces the value at the given position in the array if the original value equals the given + * expected value, returning the original value. Until this atomic operation completes, any + * other read or write operation against the array will block. + */ + compareExchange(typedArray: BigInt64Array | BigUint64Array, index: number, expectedValue: bigint, replacementValue: bigint): bigint; + + /** + * Replaces the value at the given position in the array, returning the original value. Until + * this atomic operation completes, any other read or write operation against the array will + * block. + */ + exchange(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; + + /** + * Returns the value at the given position in the array. Until this atomic operation completes, + * any other read or write operation against the array will block. + */ + load(typedArray: BigInt64Array | BigUint64Array, index: number): bigint; + + /** + * Stores the bitwise OR of a value with the value at the given position in the array, + * returning the original value. Until this atomic operation completes, any other read or write + * operation against the array will block. + */ + or(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; + + /** + * Stores a value at the given position in the array, returning the new value. Until this + * atomic operation completes, any other read or write operation against the array will block. + */ + store(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; + + /** + * Subtracts a value from the value at the given position in the array, returning the original + * value. Until this atomic operation completes, any other read or write operation against the + * array will block. + */ + sub(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; + + /** + * If the value at the given position in the array is equal to the provided value, the current + * agent is put to sleep causing execution to suspend until the timeout expires (returning + * \`"timed-out"\`) or until the agent is awoken (returning \`"ok"\`); otherwise, returns + * \`"not-equal"\`. + */ + wait(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out"; + + /** + * Wakes up sleeping agents that are waiting on the given index of the array, returning the + * number of agents that were awoken. + * @param typedArray A shared BigInt64Array. + * @param index The position in the typedArray to wake up on. + * @param count The number of sleeping agents to notify. Defaults to +Infinity. + */ + notify(typedArray: BigInt64Array, index: number, count?: number): number; + + /** + * Stores the bitwise XOR of a value with the value at the given position in the array, + * returning the original value. Until this atomic operation completes, any other read or write + * operation against the array will block. + */ + xor(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; +} +`,co["lib.es2020.string.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2015.iterable" /> + +interface String { + /** + * Matches a string with a regular expression, and returns an iterable of matches + * containing the results of that search. + * @param regexp A variable name or string literal containing the regular expression pattern and flags. + */ + matchAll(regexp: RegExp): IterableIterator<RegExpExecArray>; + + /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */ + toLocaleLowerCase(locales?: Intl.LocalesArgument): string; + + /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */ + toLocaleUpperCase(locales?: Intl.LocalesArgument): string; + + /** + * Determines whether two strings are equivalent in the current or specified locale. + * @param that String to compare to target string + * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details. + * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details. + */ + localeCompare(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number; +} +`,co["lib.es2020.symbol.wellknown.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2015.iterable" /> +/// <reference lib="es2015.symbol" /> + +interface SymbolConstructor { + /** + * A regular expression method that matches the regular expression against a string. Called + * by the String.prototype.matchAll method. + */ + readonly matchAll: unique symbol; +} + +interface RegExp { + /** + * Matches a string with this regular expression, and returns an iterable of matches + * containing the results of that search. + * @param string A string to search within. + */ + [Symbol.matchAll](str: string): IterableIterator<RegExpMatchArray>; +} +`,co["lib.es2021.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2020" /> +/// <reference lib="es2021.promise" /> +/// <reference lib="es2021.string" /> +/// <reference lib="es2021.weakref" /> +/// <reference lib="es2021.intl" /> +`,co["lib.es2021.full.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2021" /> +/// <reference lib="dom" /> +/// <reference lib="webworker.importscripts" /> +/// <reference lib="scripthost" /> +/// <reference lib="dom.iterable" /> +/// <reference lib="dom.asynciterable" /> +`,co["lib.es2021.intl.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +declare namespace Intl { + interface DateTimeFormatPartTypesRegistry { + fractionalSecond: any; + } + + interface DateTimeFormatOptions { + formatMatcher?: "basic" | "best fit" | "best fit" | undefined; + dateStyle?: "full" | "long" | "medium" | "short" | undefined; + timeStyle?: "full" | "long" | "medium" | "short" | undefined; + dayPeriod?: "narrow" | "short" | "long" | undefined; + fractionalSecondDigits?: 1 | 2 | 3 | undefined; + } + + interface DateTimeRangeFormatPart extends DateTimeFormatPart { + source: "startRange" | "endRange" | "shared"; + } + + interface DateTimeFormat { + formatRange(startDate: Date | number | bigint, endDate: Date | number | bigint): string; + formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeRangeFormatPart[]; + } + + interface ResolvedDateTimeFormatOptions { + formatMatcher?: "basic" | "best fit" | "best fit"; + dateStyle?: "full" | "long" | "medium" | "short"; + timeStyle?: "full" | "long" | "medium" | "short"; + hourCycle?: "h11" | "h12" | "h23" | "h24"; + dayPeriod?: "narrow" | "short" | "long"; + fractionalSecondDigits?: 1 | 2 | 3; + } + + /** + * The locale matching algorithm to use. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters). + */ + type ListFormatLocaleMatcher = "lookup" | "best fit"; + + /** + * The format of output message. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters). + */ + type ListFormatType = "conjunction" | "disjunction" | "unit"; + + /** + * The length of the formatted message. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters). + */ + type ListFormatStyle = "long" | "short" | "narrow"; + + /** + * An object with some or all properties of the \`Intl.ListFormat\` constructor \`options\` parameter. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters). + */ + interface ListFormatOptions { + /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */ + localeMatcher?: ListFormatLocaleMatcher | undefined; + /** The format of output message. */ + type?: ListFormatType | undefined; + /** The length of the internationalized message. */ + style?: ListFormatStyle | undefined; + } + + interface ResolvedListFormatOptions { + locale: string; + style: ListFormatStyle; + type: ListFormatType; + } + + interface ListFormat { + /** + * Returns a string with a language-specific representation of the list. + * + * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array). + * + * @throws \`TypeError\` if \`list\` includes something other than the possible values. + * + * @returns {string} A language-specific formatted string representing the elements of the list. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/format). + */ + format(list: Iterable<string>): string; + + /** + * Returns an Array of objects representing the different components that can be used to format a list of values in a locale-aware fashion. + * + * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array), to be formatted according to a locale. + * + * @throws \`TypeError\` if \`list\` includes something other than the possible values. + * + * @returns {{ type: "element" | "literal", value: string; }[]} An Array of components which contains the formatted parts from the list. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts). + */ + formatToParts(list: Iterable<string>): { type: "element" | "literal"; value: string; }[]; + + /** + * Returns a new object with properties reflecting the locale and style + * formatting options computed during the construction of the current + * \`Intl.ListFormat\` object. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions). + */ + resolvedOptions(): ResolvedListFormatOptions; + } + + const ListFormat: { + prototype: ListFormat; + + /** + * Creates [Intl.ListFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) objects that + * enable language-sensitive list formatting. + * + * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings. + * For the general form and interpretation of the \`locales\` argument, + * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). + * + * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters) + * with some or all options of \`ListFormatOptions\`. + * + * @returns [Intl.ListFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat). + */ + new (locales?: LocalesArgument, options?: ListFormatOptions): ListFormat; + + /** + * Returns an array containing those of the provided locales that are + * supported in list formatting without having to fall back to the runtime's default locale. + * + * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings. + * For the general form and interpretation of the \`locales\` argument, + * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). + * + * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf#parameters). + * with some or all possible options. + * + * @returns An array of strings representing a subset of the given locale tags that are supported in list + * formatting without having to fall back to the runtime's default locale. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf). + */ + supportedLocalesOf(locales: LocalesArgument, options?: Pick<ListFormatOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[]; + }; +} +`,co["lib.es2021.promise.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface AggregateError extends Error { + errors: any[]; +} + +interface AggregateErrorConstructor { + new (errors: Iterable<any>, message?: string): AggregateError; + (errors: Iterable<any>, message?: string): AggregateError; + readonly prototype: AggregateError; +} + +declare var AggregateError: AggregateErrorConstructor; + +/** + * Represents the completion of an asynchronous operation + */ +interface PromiseConstructor { + /** + * The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm. + * @param values An array or iterable of Promises. + * @returns A new Promise. + */ + any<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>; + + /** + * The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm. + * @param values An array or iterable of Promises. + * @returns A new Promise. + */ + any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>; +} +`,co["lib.es2021.string.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface String { + /** + * Replace all instances of a substring in a string, using a regular expression or search string. + * @param searchValue A string to search for. + * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string. + */ + replaceAll(searchValue: string | RegExp, replaceValue: string): string; + + /** + * Replace all instances of a substring in a string, using a regular expression or search string. + * @param searchValue A string to search for. + * @param replacer A function that returns the replacement text. + */ + replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; +} +`,co["lib.es2021.weakref.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface WeakRef<T extends WeakKey> { + readonly [Symbol.toStringTag]: "WeakRef"; + + /** + * Returns the WeakRef instance's target value, or undefined if the target value has been + * reclaimed. + * In es2023 the value can be either a symbol or an object, in previous versions only object is permissible. + */ + deref(): T | undefined; +} + +interface WeakRefConstructor { + readonly prototype: WeakRef<any>; + + /** + * Creates a WeakRef instance for the given target value. + * In es2023 the value can be either a symbol or an object, in previous versions only object is permissible. + * @param target The target value for the WeakRef instance. + */ + new <T extends WeakKey>(target: T): WeakRef<T>; +} + +declare var WeakRef: WeakRefConstructor; + +interface FinalizationRegistry<T> { + readonly [Symbol.toStringTag]: "FinalizationRegistry"; + + /** + * Registers a value with the registry. + * In es2023 the value can be either a symbol or an object, in previous versions only object is permissible. + * @param target The target value to register. + * @param heldValue The value to pass to the finalizer for this value. This cannot be the + * target value. + * @param unregisterToken The token to pass to the unregister method to unregister the target + * value. If not provided, the target cannot be unregistered. + */ + register(target: WeakKey, heldValue: T, unregisterToken?: WeakKey): void; + + /** + * Unregisters a value from the registry. + * In es2023 the value can be either a symbol or an object, in previous versions only object is permissible. + * @param unregisterToken The token that was used as the unregisterToken argument when calling + * register to register the target value. + */ + unregister(unregisterToken: WeakKey): void; +} + +interface FinalizationRegistryConstructor { + readonly prototype: FinalizationRegistry<any>; + + /** + * Creates a finalization registry with an associated cleanup callback + * @param cleanupCallback The callback to call after a value in the registry has been reclaimed. + */ + new <T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>; +} + +declare var FinalizationRegistry: FinalizationRegistryConstructor; +`,co["lib.es2022.array.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface Array<T> { + /** + * Returns the item located at the specified index. + * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. + */ + at(index: number): T | undefined; +} + +interface ReadonlyArray<T> { + /** + * Returns the item located at the specified index. + * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. + */ + at(index: number): T | undefined; +} + +interface Int8Array { + /** + * Returns the item located at the specified index. + * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. + */ + at(index: number): number | undefined; +} + +interface Uint8Array { + /** + * Returns the item located at the specified index. + * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. + */ + at(index: number): number | undefined; +} + +interface Uint8ClampedArray { + /** + * Returns the item located at the specified index. + * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. + */ + at(index: number): number | undefined; +} + +interface Int16Array { + /** + * Returns the item located at the specified index. + * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. + */ + at(index: number): number | undefined; +} + +interface Uint16Array { + /** + * Returns the item located at the specified index. + * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. + */ + at(index: number): number | undefined; +} + +interface Int32Array { + /** + * Returns the item located at the specified index. + * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. + */ + at(index: number): number | undefined; +} + +interface Uint32Array { + /** + * Returns the item located at the specified index. + * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. + */ + at(index: number): number | undefined; +} + +interface Float32Array { + /** + * Returns the item located at the specified index. + * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. + */ + at(index: number): number | undefined; +} + +interface Float64Array { + /** + * Returns the item located at the specified index. + * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. + */ + at(index: number): number | undefined; +} + +interface BigInt64Array { + /** + * Returns the item located at the specified index. + * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. + */ + at(index: number): bigint | undefined; +} + +interface BigUint64Array { + /** + * Returns the item located at the specified index. + * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. + */ + at(index: number): bigint | undefined; +} +`,co["lib.es2022.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2021" /> +/// <reference lib="es2022.array" /> +/// <reference lib="es2022.error" /> +/// <reference lib="es2022.intl" /> +/// <reference lib="es2022.object" /> +/// <reference lib="es2022.sharedmemory" /> +/// <reference lib="es2022.string" /> +/// <reference lib="es2022.regexp" /> +`,co["lib.es2022.error.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface ErrorOptions { + cause?: unknown; +} + +interface Error { + cause?: unknown; +} + +interface ErrorConstructor { + new (message?: string, options?: ErrorOptions): Error; + (message?: string, options?: ErrorOptions): Error; +} + +interface EvalErrorConstructor { + new (message?: string, options?: ErrorOptions): EvalError; + (message?: string, options?: ErrorOptions): EvalError; +} + +interface RangeErrorConstructor { + new (message?: string, options?: ErrorOptions): RangeError; + (message?: string, options?: ErrorOptions): RangeError; +} + +interface ReferenceErrorConstructor { + new (message?: string, options?: ErrorOptions): ReferenceError; + (message?: string, options?: ErrorOptions): ReferenceError; +} + +interface SyntaxErrorConstructor { + new (message?: string, options?: ErrorOptions): SyntaxError; + (message?: string, options?: ErrorOptions): SyntaxError; +} + +interface TypeErrorConstructor { + new (message?: string, options?: ErrorOptions): TypeError; + (message?: string, options?: ErrorOptions): TypeError; +} + +interface URIErrorConstructor { + new (message?: string, options?: ErrorOptions): URIError; + (message?: string, options?: ErrorOptions): URIError; +} + +interface AggregateErrorConstructor { + new ( + errors: Iterable<any>, + message?: string, + options?: ErrorOptions, + ): AggregateError; + ( + errors: Iterable<any>, + message?: string, + options?: ErrorOptions, + ): AggregateError; +} +`,co["lib.es2022.full.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2022" /> +/// <reference lib="dom" /> +/// <reference lib="webworker.importscripts" /> +/// <reference lib="scripthost" /> +/// <reference lib="dom.iterable" /> +/// <reference lib="dom.asynciterable" /> +`,co["lib.es2022.intl.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +declare namespace Intl { + /** + * An object with some or all properties of the \`Intl.Segmenter\` constructor \`options\` parameter. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters) + */ + interface SegmenterOptions { + /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */ + localeMatcher?: "best fit" | "lookup" | undefined; + /** The type of input to be split */ + granularity?: "grapheme" | "word" | "sentence" | undefined; + } + + interface Segmenter { + /** + * Returns \`Segments\` object containing the segments of the input string, using the segmenter's locale and granularity. + * + * @param input - The text to be segmented as a \`string\`. + * + * @returns A new iterable Segments object containing the segments of the input string, using the segmenter's locale and granularity. + */ + segment(input: string): Segments; + resolvedOptions(): ResolvedSegmenterOptions; + } + + interface ResolvedSegmenterOptions { + locale: string; + granularity: "grapheme" | "word" | "sentence"; + } + + interface Segments { + /** + * Returns an object describing the segment in the original string that includes the code unit at a specified index. + * + * @param codeUnitIndex - A number specifying the index of the code unit in the original input string. If the value is omitted, it defaults to \`0\`. + */ + containing(codeUnitIndex?: number): SegmentData; + + /** Returns an iterator to iterate over the segments. */ + [Symbol.iterator](): IterableIterator<SegmentData>; + } + + interface SegmentData { + /** A string containing the segment extracted from the original input string. */ + segment: string; + /** The code unit index in the original input string at which the segment begins. */ + index: number; + /** The complete input string that was segmented. */ + input: string; + /** + * A boolean value only if granularity is "word"; otherwise, undefined. + * If granularity is "word", then isWordLike is true when the segment is word-like (i.e., consists of letters/numbers/ideographs/etc.); otherwise, false. + */ + isWordLike?: boolean; + } + + const Segmenter: { + prototype: Segmenter; + + /** + * Creates a new \`Intl.Segmenter\` object. + * + * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings. + * For the general form and interpretation of the \`locales\` argument, + * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). + * + * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters) + * with some or all options of \`SegmenterOptions\`. + * + * @returns [Intl.Segmenter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter). + */ + new (locales?: LocalesArgument, options?: SegmenterOptions): Segmenter; + + /** + * Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale. + * + * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings. + * For the general form and interpretation of the \`locales\` argument, + * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). + * + * @param options An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters). + * with some or all possible options. + * + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf) + */ + supportedLocalesOf(locales: LocalesArgument, options?: Pick<SegmenterOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[]; + }; + + /** + * Returns a sorted array of the supported collation, calendar, currency, numbering system, timezones, and units by the implementation. + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/supportedValuesOf) + * + * @param key A string indicating the category of values to return. + * @returns A sorted array of the supported values. + */ + function supportedValuesOf(key: "calendar" | "collation" | "currency" | "numberingSystem" | "timeZone" | "unit"): string[]; +} +`,co["lib.es2022.object.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface ObjectConstructor { + /** + * Determines whether an object has a property with the specified name. + * @param o An object. + * @param v A property name. + */ + hasOwn(o: object, v: PropertyKey): boolean; +} +`,co["lib.es2022.regexp.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface RegExpMatchArray { + indices?: RegExpIndicesArray; +} + +interface RegExpExecArray { + indices?: RegExpIndicesArray; +} + +interface RegExpIndicesArray extends Array<[number, number]> { + groups?: { + [key: string]: [number, number]; + }; +} + +interface RegExp { + /** + * Returns a Boolean value indicating the state of the hasIndices flag (d) used with with a regular expression. + * Default is false. Read-only. + */ + readonly hasIndices: boolean; +} +`,co["lib.es2022.sharedmemory.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface Atomics { + /** + * A non-blocking, asynchronous version of wait which is usable on the main thread. + * Waits asynchronously on a shared memory location and returns a Promise + * @param typedArray A shared Int32Array or BigInt64Array. + * @param index The position in the typedArray to wait on. + * @param value The expected value to test. + * @param [timeout] The expected value to test. + */ + waitAsync(typedArray: Int32Array, index: number, value: number, timeout?: number): { async: false; value: "not-equal" | "timed-out"; } | { async: true; value: Promise<"ok" | "timed-out">; }; + + /** + * A non-blocking, asynchronous version of wait which is usable on the main thread. + * Waits asynchronously on a shared memory location and returns a Promise + * @param typedArray A shared Int32Array or BigInt64Array. + * @param index The position in the typedArray to wait on. + * @param value The expected value to test. + * @param [timeout] The expected value to test. + */ + waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false; value: "not-equal" | "timed-out"; } | { async: true; value: Promise<"ok" | "timed-out">; }; +} +`,co["lib.es2022.string.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface String { + /** + * Returns a new String consisting of the single UTF-16 code unit located at the specified index. + * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. + */ + at(index: number): string | undefined; +} +`,co["lib.es2023.array.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface Array<T> { + /** + * Returns the value of the last element in the array where predicate is true, and undefined + * otherwise. + * @param predicate findLast calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, findLast + * immediately returns that element value. Otherwise, findLast returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLast<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S | undefined; + findLast(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T | undefined; + + /** + * Returns the index of the last element in the array where predicate is true, and -1 + * otherwise. + * @param predicate findLastIndex calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, + * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLastIndex(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): number; + + /** + * Returns a copy of an array with its elements reversed. + */ + toReversed(): T[]; + + /** + * Returns a copy of an array with its elements sorted. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * \`\`\`ts + * [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22] + * \`\`\` + */ + toSorted(compareFn?: (a: T, b: T) => number): T[]; + + /** + * Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array. + * @param start The zero-based location in the array from which to start removing elements. + * @param deleteCount The number of elements to remove. + * @param items Elements to insert into the copied array in place of the deleted elements. + * @returns The copied array. + */ + toSpliced(start: number, deleteCount: number, ...items: T[]): T[]; + + /** + * Copies an array and removes elements while returning the remaining elements. + * @param start The zero-based location in the array from which to start removing elements. + * @param deleteCount The number of elements to remove. + * @returns A copy of the original array with the remaining elements. + */ + toSpliced(start: number, deleteCount?: number): T[]; + + /** + * Copies an array, then overwrites the value at the provided index with the + * given value. If the index is negative, then it replaces from the end + * of the array. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to write into the copied array. + * @returns The copied array with the updated value. + */ + with(index: number, value: T): T[]; +} + +interface ReadonlyArray<T> { + /** + * Returns the value of the last element in the array where predicate is true, and undefined + * otherwise. + * @param predicate findLast calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, findLast + * immediately returns that element value. Otherwise, findLast returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLast<S extends T>( + predicate: (value: T, index: number, array: readonly T[]) => value is S, + thisArg?: any, + ): S | undefined; + findLast( + predicate: (value: T, index: number, array: readonly T[]) => unknown, + thisArg?: any, + ): T | undefined; + + /** + * Returns the index of the last element in the array where predicate is true, and -1 + * otherwise. + * @param predicate findLastIndex calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, + * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLastIndex( + predicate: (value: T, index: number, array: readonly T[]) => unknown, + thisArg?: any, + ): number; + + /** + * Copies the array and returns the copied array with all of its elements reversed. + */ + toReversed(): T[]; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * \`\`\`ts + * [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22] + * \`\`\` + */ + toSorted(compareFn?: (a: T, b: T) => number): T[]; + + /** + * Copies an array and removes elements while, if necessary, inserting new elements in their place, returning the remaining elements. + * @param start The zero-based location in the array from which to start removing elements. + * @param deleteCount The number of elements to remove. + * @param items Elements to insert into the copied array in place of the deleted elements. + * @returns A copy of the original array with the remaining elements. + */ + toSpliced(start: number, deleteCount: number, ...items: T[]): T[]; + + /** + * Copies an array and removes elements while returning the remaining elements. + * @param start The zero-based location in the array from which to start removing elements. + * @param deleteCount The number of elements to remove. + * @returns A copy of the original array with the remaining elements. + */ + toSpliced(start: number, deleteCount?: number): T[]; + + /** + * Copies an array, then overwrites the value at the provided index with the + * given value. If the index is negative, then it replaces from the end + * of the array + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: T): T[]; +} + +interface Int8Array { + /** + * Returns the value of the last element in the array where predicate is true, and undefined + * otherwise. + * @param predicate findLast calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, findLast + * immediately returns that element value. Otherwise, findLast returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLast<S extends number>( + predicate: ( + value: number, + index: number, + array: Int8Array, + ) => value is S, + thisArg?: any, + ): S | undefined; + findLast( + predicate: (value: number, index: number, array: Int8Array) => unknown, + thisArg?: any, + ): number | undefined; + + /** + * Returns the index of the last element in the array where predicate is true, and -1 + * otherwise. + * @param predicate findLastIndex calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, + * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLastIndex( + predicate: (value: number, index: number, array: Int8Array) => unknown, + thisArg?: any, + ): number; + + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): Uint8Array; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending order. + * \`\`\`ts + * const myNums = Uint8Array.from([11, 2, 22, 1]); + * myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22] + * \`\`\` + */ + toSorted(compareFn?: (a: number, b: number) => number): Uint8Array; + + /** + * Copies the array and inserts the given number at the provided index. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: number): Uint8Array; +} + +interface Uint8Array { + /** + * Returns the value of the last element in the array where predicate is true, and undefined + * otherwise. + * @param predicate findLast calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, findLast + * immediately returns that element value. Otherwise, findLast returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLast<S extends number>( + predicate: ( + value: number, + index: number, + array: Uint8Array, + ) => value is S, + thisArg?: any, + ): S | undefined; + findLast( + predicate: (value: number, index: number, array: Uint8Array) => unknown, + thisArg?: any, + ): number | undefined; + + /** + * Returns the index of the last element in the array where predicate is true, and -1 + * otherwise. + * @param predicate findLastIndex calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, + * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLastIndex( + predicate: (value: number, index: number, array: Uint8Array) => unknown, + thisArg?: any, + ): number; + + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): Uint8Array; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending order. + * \`\`\`ts + * const myNums = Uint8Array.from([11, 2, 22, 1]); + * myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22] + * \`\`\` + */ + toSorted(compareFn?: (a: number, b: number) => number): Uint8Array; + + /** + * Copies the array and inserts the given number at the provided index. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: number): Uint8Array; +} + +interface Uint8ClampedArray { + /** + * Returns the value of the last element in the array where predicate is true, and undefined + * otherwise. + * @param predicate findLast calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, findLast + * immediately returns that element value. Otherwise, findLast returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLast<S extends number>( + predicate: ( + value: number, + index: number, + array: Uint8ClampedArray, + ) => value is S, + thisArg?: any, + ): S | undefined; + findLast( + predicate: ( + value: number, + index: number, + array: Uint8ClampedArray, + ) => unknown, + thisArg?: any, + ): number | undefined; + + /** + * Returns the index of the last element in the array where predicate is true, and -1 + * otherwise. + * @param predicate findLastIndex calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, + * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLastIndex( + predicate: ( + value: number, + index: number, + array: Uint8ClampedArray, + ) => unknown, + thisArg?: any, + ): number; + + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): Uint8ClampedArray; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending order. + * \`\`\`ts + * const myNums = Uint8ClampedArray.from([11, 2, 22, 1]); + * myNums.toSorted((a, b) => a - b) // Uint8ClampedArray(4) [1, 2, 11, 22] + * \`\`\` + */ + toSorted(compareFn?: (a: number, b: number) => number): Uint8ClampedArray; + + /** + * Copies the array and inserts the given number at the provided index. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: number): Uint8ClampedArray; +} + +interface Int16Array { + /** + * Returns the value of the last element in the array where predicate is true, and undefined + * otherwise. + * @param predicate findLast calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, findLast + * immediately returns that element value. Otherwise, findLast returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLast<S extends number>( + predicate: ( + value: number, + index: number, + array: Int16Array, + ) => value is S, + thisArg?: any, + ): S | undefined; + findLast( + predicate: (value: number, index: number, array: Int16Array) => unknown, + thisArg?: any, + ): number | undefined; + + /** + * Returns the index of the last element in the array where predicate is true, and -1 + * otherwise. + * @param predicate findLastIndex calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, + * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLastIndex( + predicate: (value: number, index: number, array: Int16Array) => unknown, + thisArg?: any, + ): number; + + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): Int16Array; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending order. + * \`\`\`ts + * const myNums = Int16Array.from([11, 2, -22, 1]); + * myNums.toSorted((a, b) => a - b) // Int16Array(4) [-22, 1, 2, 11] + * \`\`\` + */ + toSorted(compareFn?: (a: number, b: number) => number): Int16Array; + + /** + * Copies the array and inserts the given number at the provided index. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: number): Int16Array; +} + +interface Uint16Array { + /** + * Returns the value of the last element in the array where predicate is true, and undefined + * otherwise. + * @param predicate findLast calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, findLast + * immediately returns that element value. Otherwise, findLast returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLast<S extends number>( + predicate: ( + value: number, + index: number, + array: Uint16Array, + ) => value is S, + thisArg?: any, + ): S | undefined; + findLast( + predicate: ( + value: number, + index: number, + array: Uint16Array, + ) => unknown, + thisArg?: any, + ): number | undefined; + + /** + * Returns the index of the last element in the array where predicate is true, and -1 + * otherwise. + * @param predicate findLastIndex calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, + * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLastIndex( + predicate: ( + value: number, + index: number, + array: Uint16Array, + ) => unknown, + thisArg?: any, + ): number; + + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): Uint16Array; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending order. + * \`\`\`ts + * const myNums = Uint16Array.from([11, 2, 22, 1]); + * myNums.toSorted((a, b) => a - b) // Uint16Array(4) [1, 2, 11, 22] + * \`\`\` + */ + toSorted(compareFn?: (a: number, b: number) => number): Uint16Array; + + /** + * Copies the array and inserts the given number at the provided index. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: number): Uint16Array; +} + +interface Int32Array { + /** + * Returns the value of the last element in the array where predicate is true, and undefined + * otherwise. + * @param predicate findLast calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, findLast + * immediately returns that element value. Otherwise, findLast returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLast<S extends number>( + predicate: ( + value: number, + index: number, + array: Int32Array, + ) => value is S, + thisArg?: any, + ): S | undefined; + findLast( + predicate: (value: number, index: number, array: Int32Array) => unknown, + thisArg?: any, + ): number | undefined; + + /** + * Returns the index of the last element in the array where predicate is true, and -1 + * otherwise. + * @param predicate findLastIndex calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, + * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLastIndex( + predicate: (value: number, index: number, array: Int32Array) => unknown, + thisArg?: any, + ): number; + + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): Int32Array; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending order. + * \`\`\`ts + * const myNums = Int32Array.from([11, 2, -22, 1]); + * myNums.toSorted((a, b) => a - b) // Int32Array(4) [-22, 1, 2, 11] + * \`\`\` + */ + toSorted(compareFn?: (a: number, b: number) => number): Int32Array; + + /** + * Copies the array and inserts the given number at the provided index. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: number): Int32Array; +} + +interface Uint32Array { + /** + * Returns the value of the last element in the array where predicate is true, and undefined + * otherwise. + * @param predicate findLast calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, findLast + * immediately returns that element value. Otherwise, findLast returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLast<S extends number>( + predicate: ( + value: number, + index: number, + array: Uint32Array, + ) => value is S, + thisArg?: any, + ): S | undefined; + findLast( + predicate: ( + value: number, + index: number, + array: Uint32Array, + ) => unknown, + thisArg?: any, + ): number | undefined; + + /** + * Returns the index of the last element in the array where predicate is true, and -1 + * otherwise. + * @param predicate findLastIndex calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, + * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLastIndex( + predicate: ( + value: number, + index: number, + array: Uint32Array, + ) => unknown, + thisArg?: any, + ): number; + + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): Uint32Array; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending order. + * \`\`\`ts + * const myNums = Uint32Array.from([11, 2, 22, 1]); + * myNums.toSorted((a, b) => a - b) // Uint32Array(4) [1, 2, 11, 22] + * \`\`\` + */ + toSorted(compareFn?: (a: number, b: number) => number): Uint32Array; + + /** + * Copies the array and inserts the given number at the provided index. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: number): Uint32Array; +} + +interface Float32Array { + /** + * Returns the value of the last element in the array where predicate is true, and undefined + * otherwise. + * @param predicate findLast calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, findLast + * immediately returns that element value. Otherwise, findLast returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLast<S extends number>( + predicate: ( + value: number, + index: number, + array: Float32Array, + ) => value is S, + thisArg?: any, + ): S | undefined; + findLast( + predicate: ( + value: number, + index: number, + array: Float32Array, + ) => unknown, + thisArg?: any, + ): number | undefined; + + /** + * Returns the index of the last element in the array where predicate is true, and -1 + * otherwise. + * @param predicate findLastIndex calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, + * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLastIndex( + predicate: ( + value: number, + index: number, + array: Float32Array, + ) => unknown, + thisArg?: any, + ): number; + + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): Float32Array; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending order. + * \`\`\`ts + * const myNums = Float32Array.from([11.25, 2, -22.5, 1]); + * myNums.toSorted((a, b) => a - b) // Float32Array(4) [-22.5, 1, 2, 11.5] + * \`\`\` + */ + toSorted(compareFn?: (a: number, b: number) => number): Float32Array; + + /** + * Copies the array and inserts the given number at the provided index. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: number): Float32Array; +} + +interface Float64Array { + /** + * Returns the value of the last element in the array where predicate is true, and undefined + * otherwise. + * @param predicate findLast calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, findLast + * immediately returns that element value. Otherwise, findLast returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLast<S extends number>( + predicate: ( + value: number, + index: number, + array: Float64Array, + ) => value is S, + thisArg?: any, + ): S | undefined; + findLast( + predicate: ( + value: number, + index: number, + array: Float64Array, + ) => unknown, + thisArg?: any, + ): number | undefined; + + /** + * Returns the index of the last element in the array where predicate is true, and -1 + * otherwise. + * @param predicate findLastIndex calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, + * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLastIndex( + predicate: ( + value: number, + index: number, + array: Float64Array, + ) => unknown, + thisArg?: any, + ): number; + + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): Float64Array; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending order. + * \`\`\`ts + * const myNums = Float64Array.from([11.25, 2, -22.5, 1]); + * myNums.toSorted((a, b) => a - b) // Float64Array(4) [-22.5, 1, 2, 11.5] + * \`\`\` + */ + toSorted(compareFn?: (a: number, b: number) => number): Float64Array; + + /** + * Copies the array and inserts the given number at the provided index. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: number): Float64Array; +} + +interface BigInt64Array { + /** + * Returns the value of the last element in the array where predicate is true, and undefined + * otherwise. + * @param predicate findLast calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, findLast + * immediately returns that element value. Otherwise, findLast returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLast<S extends bigint>( + predicate: ( + value: bigint, + index: number, + array: BigInt64Array, + ) => value is S, + thisArg?: any, + ): S | undefined; + findLast( + predicate: ( + value: bigint, + index: number, + array: BigInt64Array, + ) => unknown, + thisArg?: any, + ): bigint | undefined; + + /** + * Returns the index of the last element in the array where predicate is true, and -1 + * otherwise. + * @param predicate findLastIndex calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, + * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLastIndex( + predicate: ( + value: bigint, + index: number, + array: BigInt64Array, + ) => unknown, + thisArg?: any, + ): number; + + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): BigInt64Array; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending order. + * \`\`\`ts + * const myNums = BigInt64Array.from([11n, 2n, -22n, 1n]); + * myNums.toSorted((a, b) => Number(a - b)) // BigInt64Array(4) [-22n, 1n, 2n, 11n] + * \`\`\` + */ + toSorted(compareFn?: (a: bigint, b: bigint) => number): BigInt64Array; + + /** + * Copies the array and inserts the given bigint at the provided index. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: bigint): BigInt64Array; +} + +interface BigUint64Array { + /** + * Returns the value of the last element in the array where predicate is true, and undefined + * otherwise. + * @param predicate findLast calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, findLast + * immediately returns that element value. Otherwise, findLast returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLast<S extends bigint>( + predicate: ( + value: bigint, + index: number, + array: BigUint64Array, + ) => value is S, + thisArg?: any, + ): S | undefined; + findLast( + predicate: ( + value: bigint, + index: number, + array: BigUint64Array, + ) => unknown, + thisArg?: any, + ): bigint | undefined; + + /** + * Returns the index of the last element in the array where predicate is true, and -1 + * otherwise. + * @param predicate findLastIndex calls predicate once for each element of the array, in descending + * order, until it finds one where predicate returns true. If such an element is found, + * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findLastIndex( + predicate: ( + value: bigint, + index: number, + array: BigUint64Array, + ) => unknown, + thisArg?: any, + ): number; + + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): BigUint64Array; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending order. + * \`\`\`ts + * const myNums = BigUint64Array.from([11n, 2n, 22n, 1n]); + * myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array(4) [1n, 2n, 11n, 22n] + * \`\`\` + */ + toSorted(compareFn?: (a: bigint, b: bigint) => number): BigUint64Array; + + /** + * Copies the array and inserts the given bigint at the provided index. + * @param index The index of the value to overwrite. If the index is + * negative, then it replaces from the end of the array. + * @param value The value to insert into the copied array. + * @returns A copy of the original array with the inserted value. + */ + with(index: number, value: bigint): BigUint64Array; +} +`,co["lib.es2023.collection.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface WeakKeyTypes { + symbol: symbol; +} +`,co["lib.es2023.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2022" /> +/// <reference lib="es2023.array" /> +/// <reference lib="es2023.collection" /> +`,co["lib.es2023.full.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2023" /> +/// <reference lib="dom" /> +/// <reference lib="webworker.importscripts" /> +/// <reference lib="scripthost" /> +/// <reference lib="dom.iterable" /> +/// <reference lib="dom.asynciterable" /> +`,co["lib.es5.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="decorators" /> +/// <reference lib="decorators.legacy" /> + +///////////////////////////// +/// ECMAScript APIs +///////////////////////////// + +declare var NaN: number; +declare var Infinity: number; + +/** + * Evaluates JavaScript code and executes it. + * @param x A String value that contains valid JavaScript code. + */ +declare function eval(x: string): any; + +/** + * Converts a string to an integer. + * @param string A string to convert into a number. + * @param radix A value between 2 and 36 that specifies the base of the number in \`string\`. + * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal. + * All other strings are considered decimal. + */ +declare function parseInt(string: string, radix?: number): number; + +/** + * Converts a string to a floating-point number. + * @param string A string that contains a floating-point number. + */ +declare function parseFloat(string: string): number; + +/** + * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number). + * @param number A numeric value. + */ +declare function isNaN(number: number): boolean; + +/** + * Determines whether a supplied number is finite. + * @param number Any numeric value. + */ +declare function isFinite(number: number): boolean; + +/** + * Gets the unencoded version of an encoded Uniform Resource Identifier (URI). + * @param encodedURI A value representing an encoded URI. + */ +declare function decodeURI(encodedURI: string): string; + +/** + * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI). + * @param encodedURIComponent A value representing an encoded URI component. + */ +declare function decodeURIComponent(encodedURIComponent: string): string; + +/** + * Encodes a text string as a valid Uniform Resource Identifier (URI) + * @param uri A value representing an unencoded URI. + */ +declare function encodeURI(uri: string): string; + +/** + * Encodes a text string as a valid component of a Uniform Resource Identifier (URI). + * @param uriComponent A value representing an unencoded URI component. + */ +declare function encodeURIComponent(uriComponent: string | number | boolean): string; + +/** + * Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence. + * @deprecated A legacy feature for browser compatibility + * @param string A string value + */ +declare function escape(string: string): string; + +/** + * Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents. + * @deprecated A legacy feature for browser compatibility + * @param string A string value + */ +declare function unescape(string: string): string; + +interface Symbol { + /** Returns a string representation of an object. */ + toString(): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): symbol; +} + +declare type PropertyKey = string | number | symbol; + +interface PropertyDescriptor { + configurable?: boolean; + enumerable?: boolean; + value?: any; + writable?: boolean; + get?(): any; + set?(v: any): void; +} + +interface PropertyDescriptorMap { + [key: PropertyKey]: PropertyDescriptor; +} + +interface Object { + /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */ + constructor: Function; + + /** Returns a string representation of an object. */ + toString(): string; + + /** Returns a date converted to a string using the current locale. */ + toLocaleString(): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): Object; + + /** + * Determines whether an object has a property with the specified name. + * @param v A property name. + */ + hasOwnProperty(v: PropertyKey): boolean; + + /** + * Determines whether an object exists in another object's prototype chain. + * @param v Another object whose prototype chain is to be checked. + */ + isPrototypeOf(v: Object): boolean; + + /** + * Determines whether a specified property is enumerable. + * @param v A property name. + */ + propertyIsEnumerable(v: PropertyKey): boolean; +} + +interface ObjectConstructor { + new (value?: any): Object; + (): any; + (value: any): any; + + /** A reference to the prototype for a class of objects. */ + readonly prototype: Object; + + /** + * Returns the prototype of an object. + * @param o The object that references the prototype. + */ + getPrototypeOf(o: any): any; + + /** + * Gets the own property descriptor of the specified object. + * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype. + * @param o Object that contains the property. + * @param p Name of the property. + */ + getOwnPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined; + + /** + * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly + * on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions. + * @param o Object that contains the own properties. + */ + getOwnPropertyNames(o: any): string[]; + + /** + * Creates an object that has the specified prototype or that has null prototype. + * @param o Object to use as a prototype. May be null. + */ + create(o: object | null): any; + + /** + * Creates an object that has the specified prototype, and that optionally contains specified properties. + * @param o Object to use as a prototype. May be null + * @param properties JavaScript object that contains one or more property descriptors. + */ + create(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any; + + /** + * Adds a property to an object, or modifies attributes of an existing property. + * @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object. + * @param p The property name. + * @param attributes Descriptor for the property. It can be for a data property or an accessor property. + */ + defineProperty<T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): T; + + /** + * Adds one or more properties to an object, and/or modifies attributes of existing properties. + * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object. + * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property. + */ + defineProperties<T>(o: T, properties: PropertyDescriptorMap & ThisType<any>): T; + + /** + * Prevents the modification of attributes of existing properties, and prevents the addition of new properties. + * @param o Object on which to lock the attributes. + */ + seal<T>(o: T): T; + + /** + * Prevents the modification of existing property attributes and values, and prevents the addition of new properties. + * @param f Object on which to lock the attributes. + */ + freeze<T extends Function>(f: T): T; + + /** + * Prevents the modification of existing property attributes and values, and prevents the addition of new properties. + * @param o Object on which to lock the attributes. + */ + freeze<T extends { [idx: string]: U | null | undefined | object; }, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>; + + /** + * Prevents the modification of existing property attributes and values, and prevents the addition of new properties. + * @param o Object on which to lock the attributes. + */ + freeze<T>(o: T): Readonly<T>; + + /** + * Prevents the addition of new properties to an object. + * @param o Object to make non-extensible. + */ + preventExtensions<T>(o: T): T; + + /** + * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object. + * @param o Object to test. + */ + isSealed(o: any): boolean; + + /** + * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object. + * @param o Object to test. + */ + isFrozen(o: any): boolean; + + /** + * Returns a value that indicates whether new properties can be added to an object. + * @param o Object to test. + */ + isExtensible(o: any): boolean; + + /** + * Returns the names of the enumerable string properties and methods of an object. + * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. + */ + keys(o: object): string[]; +} + +/** + * Provides functionality common to all JavaScript objects. + */ +declare var Object: ObjectConstructor; + +/** + * Creates a new function. + */ +interface Function { + /** + * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function. + * @param thisArg The object to be used as the this object. + * @param argArray A set of arguments to be passed to the function. + */ + apply(this: Function, thisArg: any, argArray?: any): any; + + /** + * Calls a method of an object, substituting another object for the current object. + * @param thisArg The object to be used as the current object. + * @param argArray A list of arguments to be passed to the method. + */ + call(this: Function, thisArg: any, ...argArray: any[]): any; + + /** + * For a given function, creates a bound function that has the same body as the original function. + * The this object of the bound function is associated with the specified object, and has the specified initial parameters. + * @param thisArg An object to which the this keyword can refer inside the new function. + * @param argArray A list of arguments to be passed to the new function. + */ + bind(this: Function, thisArg: any, ...argArray: any[]): any; + + /** Returns a string representation of a function. */ + toString(): string; + + prototype: any; + readonly length: number; + + // Non-standard extensions + arguments: any; + caller: Function; +} + +interface FunctionConstructor { + /** + * Creates a new function. + * @param args A list of arguments the function accepts. + */ + new (...args: string[]): Function; + (...args: string[]): Function; + readonly prototype: Function; +} + +declare var Function: FunctionConstructor; + +/** + * Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter. + */ +type ThisParameterType<T> = T extends (this: infer U, ...args: never) => any ? U : unknown; + +/** + * Removes the 'this' parameter from a function type. + */ +type OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T; + +interface CallableFunction extends Function { + /** + * Calls the function with the specified object as the this value and the elements of specified array as the arguments. + * @param thisArg The object to be used as the this object. + */ + apply<T, R>(this: (this: T) => R, thisArg: T): R; + + /** + * Calls the function with the specified object as the this value and the elements of specified array as the arguments. + * @param thisArg The object to be used as the this object. + * @param args An array of argument values to be passed to the function. + */ + apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R; + + /** + * Calls the function with the specified object as the this value and the specified rest arguments as the arguments. + * @param thisArg The object to be used as the this object. + * @param args Argument values to be passed to the function. + */ + call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R; + + /** + * For a given function, creates a bound function that has the same body as the original function. + * The this object of the bound function is associated with the specified object, and has the specified initial parameters. + * @param thisArg The object to be used as the this object. + */ + bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>; + + /** + * For a given function, creates a bound function that has the same body as the original function. + * The this object of the bound function is associated with the specified object, and has the specified initial parameters. + * @param thisArg The object to be used as the this object. + * @param args Arguments to bind to the parameters of the function. + */ + bind<T, A extends any[], B extends any[], R>(this: (this: T, ...args: [...A, ...B]) => R, thisArg: T, ...args: A): (...args: B) => R; +} + +interface NewableFunction extends Function { + /** + * Calls the function with the specified object as the this value and the elements of specified array as the arguments. + * @param thisArg The object to be used as the this object. + */ + apply<T>(this: new () => T, thisArg: T): void; + /** + * Calls the function with the specified object as the this value and the elements of specified array as the arguments. + * @param thisArg The object to be used as the this object. + * @param args An array of argument values to be passed to the function. + */ + apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void; + + /** + * Calls the function with the specified object as the this value and the specified rest arguments as the arguments. + * @param thisArg The object to be used as the this object. + * @param args Argument values to be passed to the function. + */ + call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void; + + /** + * For a given function, creates a bound function that has the same body as the original function. + * The this object of the bound function is associated with the specified object, and has the specified initial parameters. + * @param thisArg The object to be used as the this object. + */ + bind<T>(this: T, thisArg: any): T; + + /** + * For a given function, creates a bound function that has the same body as the original function. + * The this object of the bound function is associated with the specified object, and has the specified initial parameters. + * @param thisArg The object to be used as the this object. + * @param args Arguments to bind to the parameters of the function. + */ + bind<A extends any[], B extends any[], R>(this: new (...args: [...A, ...B]) => R, thisArg: any, ...args: A): new (...args: B) => R; +} + +interface IArguments { + [index: number]: any; + length: number; + callee: Function; +} + +interface String { + /** Returns a string representation of a string. */ + toString(): string; + + /** + * Returns the character at the specified index. + * @param pos The zero-based index of the desired character. + */ + charAt(pos: number): string; + + /** + * Returns the Unicode value of the character at the specified location. + * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned. + */ + charCodeAt(index: number): number; + + /** + * Returns a string that contains the concatenation of two or more strings. + * @param strings The strings to append to the end of the string. + */ + concat(...strings: string[]): string; + + /** + * Returns the position of the first occurrence of a substring. + * @param searchString The substring to search for in the string + * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string. + */ + indexOf(searchString: string, position?: number): number; + + /** + * Returns the last occurrence of a substring in the string. + * @param searchString The substring to search for. + * @param position The index at which to begin searching. If omitted, the search begins at the end of the string. + */ + lastIndexOf(searchString: string, position?: number): number; + + /** + * Determines whether two strings are equivalent in the current locale. + * @param that String to compare to target string + */ + localeCompare(that: string): number; + + /** + * Matches a string with a regular expression, and returns an array containing the results of that search. + * @param regexp A variable name or string literal containing the regular expression pattern and flags. + */ + match(regexp: string | RegExp): RegExpMatchArray | null; + + /** + * Replaces text in a string, using a regular expression or search string. + * @param searchValue A string or regular expression to search for. + * @param replaceValue A string containing the text to replace. When the {@linkcode searchValue} is a \`RegExp\`, all matches are replaced if the \`g\` flag is set (or only those matches at the beginning, if the \`y\` flag is also present). Otherwise, only the first match of {@linkcode searchValue} is replaced. + */ + replace(searchValue: string | RegExp, replaceValue: string): string; + + /** + * Replaces text in a string, using a regular expression or search string. + * @param searchValue A string to search for. + * @param replacer A function that returns the replacement text. + */ + replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; + + /** + * Finds the first substring match in a regular expression search. + * @param regexp The regular expression pattern and applicable flags. + */ + search(regexp: string | RegExp): number; + + /** + * Returns a section of a string. + * @param start The index to the beginning of the specified portion of stringObj. + * @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end. + * If this value is not specified, the substring continues to the end of stringObj. + */ + slice(start?: number, end?: number): string; + + /** + * Split a string into substrings using the specified separator and return them as an array. + * @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned. + * @param limit A value used to limit the number of elements returned in the array. + */ + split(separator: string | RegExp, limit?: number): string[]; + + /** + * Returns the substring at the specified location within a String object. + * @param start The zero-based index number indicating the beginning of the substring. + * @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end. + * If end is omitted, the characters from start through the end of the original string are returned. + */ + substring(start: number, end?: number): string; + + /** Converts all the alphabetic characters in a string to lowercase. */ + toLowerCase(): string; + + /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */ + toLocaleLowerCase(locales?: string | string[]): string; + + /** Converts all the alphabetic characters in a string to uppercase. */ + toUpperCase(): string; + + /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */ + toLocaleUpperCase(locales?: string | string[]): string; + + /** Removes the leading and trailing white space and line terminator characters from a string. */ + trim(): string; + + /** Returns the length of a String object. */ + readonly length: number; + + // IE extensions + /** + * Gets a substring beginning at the specified location and having the specified length. + * @deprecated A legacy feature for browser compatibility + * @param from The starting position of the desired substring. The index of the first character in the string is zero. + * @param length The number of characters to include in the returned substring. + */ + substr(from: number, length?: number): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): string; + + readonly [index: number]: string; +} + +interface StringConstructor { + new (value?: any): String; + (value?: any): string; + readonly prototype: String; + fromCharCode(...codes: number[]): string; +} + +/** + * Allows manipulation and formatting of text strings and determination and location of substrings within strings. + */ +declare var String: StringConstructor; + +interface Boolean { + /** Returns the primitive value of the specified object. */ + valueOf(): boolean; +} + +interface BooleanConstructor { + new (value?: any): Boolean; + <T>(value?: T): boolean; + readonly prototype: Boolean; +} + +declare var Boolean: BooleanConstructor; + +interface Number { + /** + * Returns a string representation of an object. + * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers. + */ + toString(radix?: number): string; + + /** + * Returns a string representing a number in fixed-point notation. + * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive. + */ + toFixed(fractionDigits?: number): string; + + /** + * Returns a string containing a number represented in exponential notation. + * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive. + */ + toExponential(fractionDigits?: number): string; + + /** + * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits. + * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive. + */ + toPrecision(precision?: number): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): number; +} + +interface NumberConstructor { + new (value?: any): Number; + (value?: any): number; + readonly prototype: Number; + + /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */ + readonly MAX_VALUE: number; + + /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */ + readonly MIN_VALUE: number; + + /** + * A value that is not a number. + * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function. + */ + readonly NaN: number; + + /** + * A value that is less than the largest negative number that can be represented in JavaScript. + * JavaScript displays NEGATIVE_INFINITY values as -infinity. + */ + readonly NEGATIVE_INFINITY: number; + + /** + * A value greater than the largest number that can be represented in JavaScript. + * JavaScript displays POSITIVE_INFINITY values as infinity. + */ + readonly POSITIVE_INFINITY: number; +} + +/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */ +declare var Number: NumberConstructor; + +interface TemplateStringsArray extends ReadonlyArray<string> { + readonly raw: readonly string[]; +} + +/** + * The type of \`import.meta\`. + * + * If you need to declare that a given property exists on \`import.meta\`, + * this type may be augmented via interface merging. + */ +interface ImportMeta { +} + +/** + * The type for the optional second argument to \`import()\`. + * + * If your host environment supports additional options, this type may be + * augmented via interface merging. + */ +interface ImportCallOptions { + /** @deprecated*/ assert?: ImportAssertions; + with?: ImportAttributes; +} + +/** + * The type for the \`assert\` property of the optional second argument to \`import()\`. + * @deprecated + */ +interface ImportAssertions { + [key: string]: string; +} + +/** + * The type for the \`with\` property of the optional second argument to \`import()\`. + */ +interface ImportAttributes { + [key: string]: string; +} + +interface Math { + /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */ + readonly E: number; + /** The natural logarithm of 10. */ + readonly LN10: number; + /** The natural logarithm of 2. */ + readonly LN2: number; + /** The base-2 logarithm of e. */ + readonly LOG2E: number; + /** The base-10 logarithm of e. */ + readonly LOG10E: number; + /** Pi. This is the ratio of the circumference of a circle to its diameter. */ + readonly PI: number; + /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */ + readonly SQRT1_2: number; + /** The square root of 2. */ + readonly SQRT2: number; + /** + * Returns the absolute value of a number (the value without regard to whether it is positive or negative). + * For example, the absolute value of -5 is the same as the absolute value of 5. + * @param x A numeric expression for which the absolute value is needed. + */ + abs(x: number): number; + /** + * Returns the arc cosine (or inverse cosine) of a number. + * @param x A numeric expression. + */ + acos(x: number): number; + /** + * Returns the arcsine of a number. + * @param x A numeric expression. + */ + asin(x: number): number; + /** + * Returns the arctangent of a number. + * @param x A numeric expression for which the arctangent is needed. + */ + atan(x: number): number; + /** + * Returns the angle (in radians) from the X axis to a point. + * @param y A numeric expression representing the cartesian y-coordinate. + * @param x A numeric expression representing the cartesian x-coordinate. + */ + atan2(y: number, x: number): number; + /** + * Returns the smallest integer greater than or equal to its numeric argument. + * @param x A numeric expression. + */ + ceil(x: number): number; + /** + * Returns the cosine of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + cos(x: number): number; + /** + * Returns e (the base of natural logarithms) raised to a power. + * @param x A numeric expression representing the power of e. + */ + exp(x: number): number; + /** + * Returns the greatest integer less than or equal to its numeric argument. + * @param x A numeric expression. + */ + floor(x: number): number; + /** + * Returns the natural logarithm (base e) of a number. + * @param x A numeric expression. + */ + log(x: number): number; + /** + * Returns the larger of a set of supplied numeric expressions. + * @param values Numeric expressions to be evaluated. + */ + max(...values: number[]): number; + /** + * Returns the smaller of a set of supplied numeric expressions. + * @param values Numeric expressions to be evaluated. + */ + min(...values: number[]): number; + /** + * Returns the value of a base expression taken to a specified power. + * @param x The base value of the expression. + * @param y The exponent value of the expression. + */ + pow(x: number, y: number): number; + /** Returns a pseudorandom number between 0 and 1. */ + random(): number; + /** + * Returns a supplied numeric expression rounded to the nearest integer. + * @param x The value to be rounded to the nearest integer. + */ + round(x: number): number; + /** + * Returns the sine of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + sin(x: number): number; + /** + * Returns the square root of a number. + * @param x A numeric expression. + */ + sqrt(x: number): number; + /** + * Returns the tangent of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + tan(x: number): number; +} +/** An intrinsic object that provides basic mathematics functionality and constants. */ +declare var Math: Math; + +/** Enables basic storage and retrieval of dates and times. */ +interface Date { + /** Returns a string representation of a date. The format of the string depends on the locale. */ + toString(): string; + /** Returns a date as a string value. */ + toDateString(): string; + /** Returns a time as a string value. */ + toTimeString(): string; + /** Returns a value as a string value appropriate to the host environment's current locale. */ + toLocaleString(): string; + /** Returns a date as a string value appropriate to the host environment's current locale. */ + toLocaleDateString(): string; + /** Returns a time as a string value appropriate to the host environment's current locale. */ + toLocaleTimeString(): string; + /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */ + valueOf(): number; + /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */ + getTime(): number; + /** Gets the year, using local time. */ + getFullYear(): number; + /** Gets the year using Universal Coordinated Time (UTC). */ + getUTCFullYear(): number; + /** Gets the month, using local time. */ + getMonth(): number; + /** Gets the month of a Date object using Universal Coordinated Time (UTC). */ + getUTCMonth(): number; + /** Gets the day-of-the-month, using local time. */ + getDate(): number; + /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */ + getUTCDate(): number; + /** Gets the day of the week, using local time. */ + getDay(): number; + /** Gets the day of the week using Universal Coordinated Time (UTC). */ + getUTCDay(): number; + /** Gets the hours in a date, using local time. */ + getHours(): number; + /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */ + getUTCHours(): number; + /** Gets the minutes of a Date object, using local time. */ + getMinutes(): number; + /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */ + getUTCMinutes(): number; + /** Gets the seconds of a Date object, using local time. */ + getSeconds(): number; + /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */ + getUTCSeconds(): number; + /** Gets the milliseconds of a Date, using local time. */ + getMilliseconds(): number; + /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */ + getUTCMilliseconds(): number; + /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */ + getTimezoneOffset(): number; + /** + * Sets the date and time value in the Date object. + * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT. + */ + setTime(time: number): number; + /** + * Sets the milliseconds value in the Date object using local time. + * @param ms A numeric value equal to the millisecond value. + */ + setMilliseconds(ms: number): number; + /** + * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC). + * @param ms A numeric value equal to the millisecond value. + */ + setUTCMilliseconds(ms: number): number; + + /** + * Sets the seconds value in the Date object using local time. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + setSeconds(sec: number, ms?: number): number; + /** + * Sets the seconds value in the Date object using Universal Coordinated Time (UTC). + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + setUTCSeconds(sec: number, ms?: number): number; + /** + * Sets the minutes value in the Date object using local time. + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + setMinutes(min: number, sec?: number, ms?: number): number; + /** + * Sets the minutes value in the Date object using Universal Coordinated Time (UTC). + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + setUTCMinutes(min: number, sec?: number, ms?: number): number; + /** + * Sets the hour value in the Date object using local time. + * @param hours A numeric value equal to the hours value. + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + setHours(hours: number, min?: number, sec?: number, ms?: number): number; + /** + * Sets the hours value in the Date object using Universal Coordinated Time (UTC). + * @param hours A numeric value equal to the hours value. + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number; + /** + * Sets the numeric day-of-the-month value of the Date object using local time. + * @param date A numeric value equal to the day of the month. + */ + setDate(date: number): number; + /** + * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC). + * @param date A numeric value equal to the day of the month. + */ + setUTCDate(date: number): number; + /** + * Sets the month value in the Date object using local time. + * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. + * @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used. + */ + setMonth(month: number, date?: number): number; + /** + * Sets the month value in the Date object using Universal Coordinated Time (UTC). + * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. + * @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used. + */ + setUTCMonth(month: number, date?: number): number; + /** + * Sets the year of the Date object using local time. + * @param year A numeric value for the year. + * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified. + * @param date A numeric value equal for the day of the month. + */ + setFullYear(year: number, month?: number, date?: number): number; + /** + * Sets the year value in the Date object using Universal Coordinated Time (UTC). + * @param year A numeric value equal to the year. + * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied. + * @param date A numeric value equal to the day of the month. + */ + setUTCFullYear(year: number, month?: number, date?: number): number; + /** Returns a date converted to a string using Universal Coordinated Time (UTC). */ + toUTCString(): string; + /** Returns a date as a string value in ISO format. */ + toISOString(): string; + /** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */ + toJSON(key?: any): string; +} + +interface DateConstructor { + new (): Date; + new (value: number | string): Date; + /** + * Creates a new Date. + * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. + * @param monthIndex The month as a number between 0 and 11 (January to December). + * @param date The date as a number between 1 and 31. + * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour. + * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes. + * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds. + * @param ms A number from 0 to 999 that specifies the milliseconds. + */ + new (year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date; + (): string; + readonly prototype: Date; + /** + * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970. + * @param s A date string + */ + parse(s: string): number; + /** + * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date. + * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. + * @param monthIndex The month as a number between 0 and 11 (January to December). + * @param date The date as a number between 1 and 31. + * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour. + * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes. + * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds. + * @param ms A number from 0 to 999 that specifies the milliseconds. + */ + UTC(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number; + /** Returns the number of milliseconds elapsed since midnight, January 1, 1970 Universal Coordinated Time (UTC). */ + now(): number; +} + +declare var Date: DateConstructor; + +interface RegExpMatchArray extends Array<string> { + /** + * The index of the search at which the result was found. + */ + index?: number; + /** + * A copy of the search string. + */ + input?: string; + /** + * The first match. This will always be present because \`null\` will be returned if there are no matches. + */ + 0: string; +} + +interface RegExpExecArray extends Array<string> { + /** + * The index of the search at which the result was found. + */ + index: number; + /** + * A copy of the search string. + */ + input: string; + /** + * The first match. This will always be present because \`null\` will be returned if there are no matches. + */ + 0: string; +} + +interface RegExp { + /** + * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search. + * @param string The String object or string literal on which to perform the search. + */ + exec(string: string): RegExpExecArray | null; + + /** + * Returns a Boolean value that indicates whether or not a pattern exists in a searched string. + * @param string String on which to perform the search. + */ + test(string: string): boolean; + + /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */ + readonly source: string; + + /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */ + readonly global: boolean; + + /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */ + readonly ignoreCase: boolean; + + /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */ + readonly multiline: boolean; + + lastIndex: number; + + // Non-standard extensions + /** @deprecated A legacy feature for browser compatibility */ + compile(pattern: string, flags?: string): this; +} + +interface RegExpConstructor { + new (pattern: RegExp | string): RegExp; + new (pattern: string, flags?: string): RegExp; + (pattern: RegExp | string): RegExp; + (pattern: string, flags?: string): RegExp; + readonly "prototype": RegExp; + + // Non-standard extensions + /** @deprecated A legacy feature for browser compatibility */ + "$1": string; + /** @deprecated A legacy feature for browser compatibility */ + "$2": string; + /** @deprecated A legacy feature for browser compatibility */ + "$3": string; + /** @deprecated A legacy feature for browser compatibility */ + "$4": string; + /** @deprecated A legacy feature for browser compatibility */ + "$5": string; + /** @deprecated A legacy feature for browser compatibility */ + "$6": string; + /** @deprecated A legacy feature for browser compatibility */ + "$7": string; + /** @deprecated A legacy feature for browser compatibility */ + "$8": string; + /** @deprecated A legacy feature for browser compatibility */ + "$9": string; + /** @deprecated A legacy feature for browser compatibility */ + "input": string; + /** @deprecated A legacy feature for browser compatibility */ + "$_": string; + /** @deprecated A legacy feature for browser compatibility */ + "lastMatch": string; + /** @deprecated A legacy feature for browser compatibility */ + "$&": string; + /** @deprecated A legacy feature for browser compatibility */ + "lastParen": string; + /** @deprecated A legacy feature for browser compatibility */ + "$+": string; + /** @deprecated A legacy feature for browser compatibility */ + "leftContext": string; + /** @deprecated A legacy feature for browser compatibility */ + "$\`": string; + /** @deprecated A legacy feature for browser compatibility */ + "rightContext": string; + /** @deprecated A legacy feature for browser compatibility */ + "$'": string; +} + +declare var RegExp: RegExpConstructor; + +interface Error { + name: string; + message: string; + stack?: string; +} + +interface ErrorConstructor { + new (message?: string): Error; + (message?: string): Error; + readonly prototype: Error; +} + +declare var Error: ErrorConstructor; + +interface EvalError extends Error { +} + +interface EvalErrorConstructor extends ErrorConstructor { + new (message?: string): EvalError; + (message?: string): EvalError; + readonly prototype: EvalError; +} + +declare var EvalError: EvalErrorConstructor; + +interface RangeError extends Error { +} + +interface RangeErrorConstructor extends ErrorConstructor { + new (message?: string): RangeError; + (message?: string): RangeError; + readonly prototype: RangeError; +} + +declare var RangeError: RangeErrorConstructor; + +interface ReferenceError extends Error { +} + +interface ReferenceErrorConstructor extends ErrorConstructor { + new (message?: string): ReferenceError; + (message?: string): ReferenceError; + readonly prototype: ReferenceError; +} + +declare var ReferenceError: ReferenceErrorConstructor; + +interface SyntaxError extends Error { +} + +interface SyntaxErrorConstructor extends ErrorConstructor { + new (message?: string): SyntaxError; + (message?: string): SyntaxError; + readonly prototype: SyntaxError; +} + +declare var SyntaxError: SyntaxErrorConstructor; + +interface TypeError extends Error { +} + +interface TypeErrorConstructor extends ErrorConstructor { + new (message?: string): TypeError; + (message?: string): TypeError; + readonly prototype: TypeError; +} + +declare var TypeError: TypeErrorConstructor; + +interface URIError extends Error { +} + +interface URIErrorConstructor extends ErrorConstructor { + new (message?: string): URIError; + (message?: string): URIError; + readonly prototype: URIError; +} + +declare var URIError: URIErrorConstructor; + +interface JSON { + /** + * Converts a JavaScript Object Notation (JSON) string into an object. + * @param text A valid JSON string. + * @param reviver A function that transforms the results. This function is called for each member of the object. + * If a member contains nested objects, the nested objects are transformed before the parent object is. + */ + parse(text: string, reviver?: (this: any, key: string, value: any) => any): any; + /** + * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. + * @param value A JavaScript value, usually an object or array, to be converted. + * @param replacer A function that transforms the results. + * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read. + */ + stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string; + /** + * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. + * @param value A JavaScript value, usually an object or array, to be converted. + * @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified. + * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read. + */ + stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string; +} + +/** + * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format. + */ +declare var JSON: JSON; + +///////////////////////////// +/// ECMAScript Array API (specially handled by compiler) +///////////////////////////// + +interface ReadonlyArray<T> { + /** + * Gets the length of the array. This is a number one higher than the highest element defined in an array. + */ + readonly length: number; + /** + * Returns a string representation of an array. + */ + toString(): string; + /** + * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods. + */ + toLocaleString(): string; + /** + * Combines two or more arrays. + * @param items Additional items to add to the end of array1. + */ + concat(...items: ConcatArray<T>[]): T[]; + /** + * Combines two or more arrays. + * @param items Additional items to add to the end of array1. + */ + concat(...items: (T | ConcatArray<T>)[]): T[]; + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. + */ + slice(start?: number, end?: number): T[]; + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0. + */ + indexOf(searchElement: T, fromIndex?: number): number; + /** + * Returns the index of the last occurrence of a specified value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array. + */ + lastIndexOf(searchElement: T, fromIndex?: number): number; + /** + * Determines whether all the members of an array satisfy the specified test. + * @param predicate A function that accepts up to three arguments. The every method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value false, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): this is readonly S[]; + /** + * Determines whether all the members of an array satisfy the specified test. + * @param predicate A function that accepts up to three arguments. The every method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value false, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean; + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param predicate A function that accepts up to three arguments. The some method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value true, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean; + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void; + /** + * Calls a defined callback function on each element of an array, and returns an array that contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + map<U>(callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any): U[]; + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value. + */ + filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[]; + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value. + */ + filter(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T[]; + /** + * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T; + reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T; + /** + * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U; + /** + * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T; + reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T; + /** + * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U; + + readonly [n: number]: T; +} + +interface ConcatArray<T> { + readonly length: number; + readonly [n: number]: T; + join(separator?: string): string; + slice(start?: number, end?: number): T[]; +} + +interface Array<T> { + /** + * Gets or sets the length of the array. This is a number one higher than the highest index in the array. + */ + length: number; + /** + * Returns a string representation of an array. + */ + toString(): string; + /** + * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods. + */ + toLocaleString(): string; + /** + * Removes the last element from an array and returns it. + * If the array is empty, undefined is returned and the array is not modified. + */ + pop(): T | undefined; + /** + * Appends new elements to the end of an array, and returns the new length of the array. + * @param items New elements to add to the array. + */ + push(...items: T[]): number; + /** + * Combines two or more arrays. + * This method returns a new array without modifying any existing arrays. + * @param items Additional arrays and/or items to add to the end of the array. + */ + concat(...items: ConcatArray<T>[]): T[]; + /** + * Combines two or more arrays. + * This method returns a new array without modifying any existing arrays. + * @param items Additional arrays and/or items to add to the end of the array. + */ + concat(...items: (T | ConcatArray<T>)[]): T[]; + /** + * Adds all the elements of an array into a string, separated by the specified separator string. + * @param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + /** + * Reverses the elements in an array in place. + * This method mutates the array and returns a reference to the same array. + */ + reverse(): T[]; + /** + * Removes the first element from an array and returns it. + * If the array is empty, undefined is returned and the array is not modified. + */ + shift(): T | undefined; + /** + * Returns a copy of a section of an array. + * For both start and end, a negative index can be used to indicate an offset from the end of the array. + * For example, -2 refers to the second to last element of the array. + * @param start The beginning index of the specified portion of the array. + * If start is undefined, then the slice begins at index 0. + * @param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'. + * If end is undefined, then the slice extends to the end of the array. + */ + slice(start?: number, end?: number): T[]; + /** + * Sorts an array in place. + * This method mutates the array and returns a reference to the same array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive + * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * \`\`\`ts + * [11,2,22,1].sort((a, b) => a - b) + * \`\`\` + */ + sort(compareFn?: (a: T, b: T) => number): this; + /** + * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. + * @param start The zero-based location in the array from which to start removing elements. + * @param deleteCount The number of elements to remove. + * @returns An array containing the elements that were deleted. + */ + splice(start: number, deleteCount?: number): T[]; + /** + * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. + * @param start The zero-based location in the array from which to start removing elements. + * @param deleteCount The number of elements to remove. + * @param items Elements to insert into the array in place of the deleted elements. + * @returns An array containing the elements that were deleted. + */ + splice(start: number, deleteCount: number, ...items: T[]): T[]; + /** + * Inserts new elements at the start of an array, and returns the new length of the array. + * @param items Elements to insert at the start of the array. + */ + unshift(...items: T[]): number; + /** + * Returns the index of the first occurrence of a value in an array, or -1 if it is not present. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0. + */ + indexOf(searchElement: T, fromIndex?: number): number; + /** + * Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array. + */ + lastIndexOf(searchElement: T, fromIndex?: number): number; + /** + * Determines whether all the members of an array satisfy the specified test. + * @param predicate A function that accepts up to three arguments. The every method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value false, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + every<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): this is S[]; + /** + * Determines whether all the members of an array satisfy the specified test. + * @param predicate A function that accepts up to three arguments. The every method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value false, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean; + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param predicate A function that accepts up to three arguments. The some method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value true, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean; + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void; + /** + * Calls a defined callback function on each element of an array, and returns an array that contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[]; + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value. + */ + filter<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[]; + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value. + */ + filter(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[]; + /** + * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T; + reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T; + /** + * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; + /** + * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T; + reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T; + /** + * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; + + [n: number]: T; +} + +interface ArrayConstructor { + new (arrayLength?: number): any[]; + new <T>(arrayLength: number): T[]; + new <T>(...items: T[]): T[]; + (arrayLength?: number): any[]; + <T>(arrayLength: number): T[]; + <T>(...items: T[]): T[]; + isArray(arg: any): arg is any[]; + readonly prototype: any[]; +} + +declare var Array: ArrayConstructor; + +interface TypedPropertyDescriptor<T> { + enumerable?: boolean; + configurable?: boolean; + writable?: boolean; + value?: T; + get?: () => T; + set?: (value: T) => void; +} + +declare type PromiseConstructorLike = new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>; + +interface PromiseLike<T> { + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>; +} + +/** + * Represents the completion of an asynchronous operation + */ +interface Promise<T> { + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>; + + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>; +} + +/** + * Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to \`never\`. This emulates the behavior of \`await\`. + */ +type Awaited<T> = T extends null | undefined ? T : // special case for \`null | undefined\` when not in \`--strictNullChecks\` mode + T extends object & { then(onfulfilled: infer F, ...args: infer _): any; } ? // \`await\` only unwraps object types with a callable \`then\`. Non-object types are not unwrapped + F extends ((value: infer V, ...args: infer _) => any) ? // if the argument to \`then\` is callable, extracts the first argument + Awaited<V> : // recursively unwrap the value + never : // the argument to \`then\` was not callable + T; // non-object or non-thenable + +interface ArrayLike<T> { + readonly length: number; + readonly [n: number]: T; +} + +/** + * Make all properties in T optional + */ +type Partial<T> = { + [P in keyof T]?: T[P]; +}; + +/** + * Make all properties in T required + */ +type Required<T> = { + [P in keyof T]-?: T[P]; +}; + +/** + * Make all properties in T readonly + */ +type Readonly<T> = { + readonly [P in keyof T]: T[P]; +}; + +/** + * From T, pick a set of properties whose keys are in the union K + */ +type Pick<T, K extends keyof T> = { + [P in K]: T[P]; +}; + +/** + * Construct a type with a set of properties K of type T + */ +type Record<K extends keyof any, T> = { + [P in K]: T; +}; + +/** + * Exclude from T those types that are assignable to U + */ +type Exclude<T, U> = T extends U ? never : T; + +/** + * Extract from T those types that are assignable to U + */ +type Extract<T, U> = T extends U ? T : never; + +/** + * Construct a type with the properties of T except for those in type K. + */ +type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>; + +/** + * Exclude null and undefined from T + */ +type NonNullable<T> = T & {}; + +/** + * Obtain the parameters of a function type in a tuple + */ +type Parameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never; + +/** + * Obtain the parameters of a constructor function type in a tuple + */ +type ConstructorParameters<T extends abstract new (...args: any) => any> = T extends abstract new (...args: infer P) => any ? P : never; + +/** + * Obtain the return type of a function type + */ +type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any; + +/** + * Obtain the return type of a constructor function type + */ +type InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any; + +/** + * Convert string literal type to uppercase + */ +type Uppercase<S extends string> = intrinsic; + +/** + * Convert string literal type to lowercase + */ +type Lowercase<S extends string> = intrinsic; + +/** + * Convert first character of string literal type to uppercase + */ +type Capitalize<S extends string> = intrinsic; + +/** + * Convert first character of string literal type to lowercase + */ +type Uncapitalize<S extends string> = intrinsic; + +/** + * Marker for non-inference type position + */ +type NoInfer<T> = intrinsic; + +/** + * Marker for contextual 'this' type + */ +interface ThisType<T> {} + +/** + * Stores types to be used with WeakSet, WeakMap, WeakRef, and FinalizationRegistry + */ +interface WeakKeyTypes { + object: object; +} + +type WeakKey = WeakKeyTypes[keyof WeakKeyTypes]; + +/** + * Represents a raw buffer of binary data, which is used to store data for the + * different typed arrays. ArrayBuffers cannot be read from or written to directly, + * but can be passed to a typed array or DataView Object to interpret the raw + * buffer as needed. + */ +interface ArrayBuffer { + /** + * Read-only. The length of the ArrayBuffer (in bytes). + */ + readonly byteLength: number; + + /** + * Returns a section of an ArrayBuffer. + */ + slice(begin: number, end?: number): ArrayBuffer; +} + +/** + * Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays. + */ +interface ArrayBufferTypes { + ArrayBuffer: ArrayBuffer; +} +type ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes]; + +interface ArrayBufferConstructor { + readonly prototype: ArrayBuffer; + new (byteLength: number): ArrayBuffer; + isView(arg: any): arg is ArrayBufferView; +} +declare var ArrayBuffer: ArrayBufferConstructor; + +interface ArrayBufferView { + /** + * The ArrayBuffer instance referenced by the array. + */ + buffer: ArrayBufferLike; + + /** + * The length in bytes of the array. + */ + byteLength: number; + + /** + * The offset in bytes of the array. + */ + byteOffset: number; +} + +interface DataView { + readonly buffer: ArrayBuffer; + readonly byteLength: number; + readonly byteOffset: number; + /** + * Gets the Float32 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + * @param littleEndian If false or undefined, a big-endian value should be read. + */ + getFloat32(byteOffset: number, littleEndian?: boolean): number; + + /** + * Gets the Float64 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + * @param littleEndian If false or undefined, a big-endian value should be read. + */ + getFloat64(byteOffset: number, littleEndian?: boolean): number; + + /** + * Gets the Int8 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + getInt8(byteOffset: number): number; + + /** + * Gets the Int16 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + * @param littleEndian If false or undefined, a big-endian value should be read. + */ + getInt16(byteOffset: number, littleEndian?: boolean): number; + /** + * Gets the Int32 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + * @param littleEndian If false or undefined, a big-endian value should be read. + */ + getInt32(byteOffset: number, littleEndian?: boolean): number; + + /** + * Gets the Uint8 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + getUint8(byteOffset: number): number; + + /** + * Gets the Uint16 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + * @param littleEndian If false or undefined, a big-endian value should be read. + */ + getUint16(byteOffset: number, littleEndian?: boolean): number; + + /** + * Gets the Uint32 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + * @param littleEndian If false or undefined, a big-endian value should be read. + */ + getUint32(byteOffset: number, littleEndian?: boolean): number; + + /** + * Stores an Float32 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written. + */ + setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void; + + /** + * Stores an Float64 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written. + */ + setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void; + + /** + * Stores an Int8 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + */ + setInt8(byteOffset: number, value: number): void; + + /** + * Stores an Int16 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written. + */ + setInt16(byteOffset: number, value: number, littleEndian?: boolean): void; + + /** + * Stores an Int32 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written. + */ + setInt32(byteOffset: number, value: number, littleEndian?: boolean): void; + + /** + * Stores an Uint8 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + */ + setUint8(byteOffset: number, value: number): void; + + /** + * Stores an Uint16 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written. + */ + setUint16(byteOffset: number, value: number, littleEndian?: boolean): void; + + /** + * Stores an Uint32 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written. + */ + setUint32(byteOffset: number, value: number, littleEndian?: boolean): void; +} + +interface DataViewConstructor { + readonly prototype: DataView; + new (buffer: ArrayBufferLike & { BYTES_PER_ELEMENT?: never; }, byteOffset?: number, byteLength?: number): DataView; +} +declare var DataView: DataViewConstructor; + +/** + * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested + * number of bytes could not be allocated an exception is raised. + */ +interface Int8Array { + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + readonly buffer: ArrayBufferLike; + + /** + * The length in bytes of the array. + */ + readonly byteLength: number; + + /** + * The offset in bytes of the array. + */ + readonly byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param predicate A function that accepts up to three arguments. The every method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value false, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean; + + /** + * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): this; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param predicate A function that accepts up to three arguments. The filter method calls + * the predicate function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(predicate: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + readonly length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Int8Array; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike<number>, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. + */ + slice(start?: number, end?: number): Int8Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param predicate A function that accepts up to three arguments. The some method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value true, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if first argument is less than second argument, zero if they're equal and a positive + * value otherwise. If omitted, the elements are sorted in ascending order. + * \`\`\`ts + * [11,2,22,1].sort((a, b) => a - b) + * \`\`\` + */ + sort(compareFn?: (a: number, b: number) => number): this; + + /** + * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin?: number, end?: number): Int8Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): Int8Array; + + [index: number]: number; +} +interface Int8ArrayConstructor { + readonly prototype: Int8Array; + new (length: number): Int8Array; + new (array: ArrayLike<number> | ArrayBufferLike): Int8Array; + new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array; + + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Int8Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + */ + from(arrayLike: ArrayLike<number>): Int8Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array; +} +declare var Int8Array: Int8ArrayConstructor; + +/** + * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated an exception is raised. + */ +interface Uint8Array { + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + readonly buffer: ArrayBufferLike; + + /** + * The length in bytes of the array. + */ + readonly byteLength: number; + + /** + * The offset in bytes of the array. + */ + readonly byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param predicate A function that accepts up to three arguments. The every method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value false, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean; + + /** + * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): this; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param predicate A function that accepts up to three arguments. The filter method calls + * the predicate function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(predicate: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + readonly length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Uint8Array; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike<number>, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. + */ + slice(start?: number, end?: number): Uint8Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param predicate A function that accepts up to three arguments. The some method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value true, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if first argument is less than second argument, zero if they're equal and a positive + * value otherwise. If omitted, the elements are sorted in ascending order. + * \`\`\`ts + * [11,2,22,1].sort((a, b) => a - b) + * \`\`\` + */ + sort(compareFn?: (a: number, b: number) => number): this; + + /** + * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin?: number, end?: number): Uint8Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): Uint8Array; + + [index: number]: number; +} + +interface Uint8ArrayConstructor { + readonly prototype: Uint8Array; + new (length: number): Uint8Array; + new (array: ArrayLike<number> | ArrayBufferLike): Uint8Array; + new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array; + + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Uint8Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + */ + from(arrayLike: ArrayLike<number>): Uint8Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array; +} +declare var Uint8Array: Uint8ArrayConstructor; + +/** + * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0. + * If the requested number of bytes could not be allocated an exception is raised. + */ +interface Uint8ClampedArray { + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + readonly buffer: ArrayBufferLike; + + /** + * The length in bytes of the array. + */ + readonly byteLength: number; + + /** + * The offset in bytes of the array. + */ + readonly byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param predicate A function that accepts up to three arguments. The every method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value false, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean; + + /** + * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): this; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param predicate A function that accepts up to three arguments. The filter method calls + * the predicate function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(predicate: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + readonly length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Uint8ClampedArray; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike<number>, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. + */ + slice(start?: number, end?: number): Uint8ClampedArray; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param predicate A function that accepts up to three arguments. The some method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value true, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if first argument is less than second argument, zero if they're equal and a positive + * value otherwise. If omitted, the elements are sorted in ascending order. + * \`\`\`ts + * [11,2,22,1].sort((a, b) => a - b) + * \`\`\` + */ + sort(compareFn?: (a: number, b: number) => number): this; + + /** + * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin?: number, end?: number): Uint8ClampedArray; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): Uint8ClampedArray; + + [index: number]: number; +} + +interface Uint8ClampedArrayConstructor { + readonly prototype: Uint8ClampedArray; + new (length: number): Uint8ClampedArray; + new (array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray; + new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray; + + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Uint8ClampedArray; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + */ + from(arrayLike: ArrayLike<number>): Uint8ClampedArray; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray; +} +declare var Uint8ClampedArray: Uint8ClampedArrayConstructor; + +/** + * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated an exception is raised. + */ +interface Int16Array { + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + readonly buffer: ArrayBufferLike; + + /** + * The length in bytes of the array. + */ + readonly byteLength: number; + + /** + * The offset in bytes of the array. + */ + readonly byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param predicate A function that accepts up to three arguments. The every method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value false, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean; + + /** + * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): this; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param predicate A function that accepts up to three arguments. The filter method calls + * the predicate function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(predicate: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void; + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + readonly length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Int16Array; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike<number>, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. + */ + slice(start?: number, end?: number): Int16Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param predicate A function that accepts up to three arguments. The some method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value true, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if first argument is less than second argument, zero if they're equal and a positive + * value otherwise. If omitted, the elements are sorted in ascending order. + * \`\`\`ts + * [11,2,22,1].sort((a, b) => a - b) + * \`\`\` + */ + sort(compareFn?: (a: number, b: number) => number): this; + + /** + * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin?: number, end?: number): Int16Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): Int16Array; + + [index: number]: number; +} + +interface Int16ArrayConstructor { + readonly prototype: Int16Array; + new (length: number): Int16Array; + new (array: ArrayLike<number> | ArrayBufferLike): Int16Array; + new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array; + + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Int16Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + */ + from(arrayLike: ArrayLike<number>): Int16Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array; +} +declare var Int16Array: Int16ArrayConstructor; + +/** + * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated an exception is raised. + */ +interface Uint16Array { + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + readonly buffer: ArrayBufferLike; + + /** + * The length in bytes of the array. + */ + readonly byteLength: number; + + /** + * The offset in bytes of the array. + */ + readonly byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param predicate A function that accepts up to three arguments. The every method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value false, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean; + + /** + * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): this; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param predicate A function that accepts up to three arguments. The filter method calls + * the predicate function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(predicate: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + readonly length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Uint16Array; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike<number>, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. + */ + slice(start?: number, end?: number): Uint16Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param predicate A function that accepts up to three arguments. The some method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value true, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if first argument is less than second argument, zero if they're equal and a positive + * value otherwise. If omitted, the elements are sorted in ascending order. + * \`\`\`ts + * [11,2,22,1].sort((a, b) => a - b) + * \`\`\` + */ + sort(compareFn?: (a: number, b: number) => number): this; + + /** + * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin?: number, end?: number): Uint16Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): Uint16Array; + + [index: number]: number; +} + +interface Uint16ArrayConstructor { + readonly prototype: Uint16Array; + new (length: number): Uint16Array; + new (array: ArrayLike<number> | ArrayBufferLike): Uint16Array; + new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array; + + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Uint16Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + */ + from(arrayLike: ArrayLike<number>): Uint16Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array; +} +declare var Uint16Array: Uint16ArrayConstructor; +/** + * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated an exception is raised. + */ +interface Int32Array { + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + readonly buffer: ArrayBufferLike; + + /** + * The length in bytes of the array. + */ + readonly byteLength: number; + + /** + * The offset in bytes of the array. + */ + readonly byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param predicate A function that accepts up to three arguments. The every method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value false, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean; + + /** + * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): this; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param predicate A function that accepts up to three arguments. The filter method calls + * the predicate function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(predicate: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + readonly length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Int32Array; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike<number>, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. + */ + slice(start?: number, end?: number): Int32Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param predicate A function that accepts up to three arguments. The some method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value true, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if first argument is less than second argument, zero if they're equal and a positive + * value otherwise. If omitted, the elements are sorted in ascending order. + * \`\`\`ts + * [11,2,22,1].sort((a, b) => a - b) + * \`\`\` + */ + sort(compareFn?: (a: number, b: number) => number): this; + + /** + * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin?: number, end?: number): Int32Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): Int32Array; + + [index: number]: number; +} + +interface Int32ArrayConstructor { + readonly prototype: Int32Array; + new (length: number): Int32Array; + new (array: ArrayLike<number> | ArrayBufferLike): Int32Array; + new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array; + + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Int32Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + */ + from(arrayLike: ArrayLike<number>): Int32Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array; +} +declare var Int32Array: Int32ArrayConstructor; + +/** + * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated an exception is raised. + */ +interface Uint32Array { + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + readonly buffer: ArrayBufferLike; + + /** + * The length in bytes of the array. + */ + readonly byteLength: number; + + /** + * The offset in bytes of the array. + */ + readonly byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param predicate A function that accepts up to three arguments. The every method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value false, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean; + + /** + * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): this; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param predicate A function that accepts up to three arguments. The filter method calls + * the predicate function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(predicate: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void; + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + readonly length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Uint32Array; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike<number>, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. + */ + slice(start?: number, end?: number): Uint32Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param predicate A function that accepts up to three arguments. The some method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value true, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if first argument is less than second argument, zero if they're equal and a positive + * value otherwise. If omitted, the elements are sorted in ascending order. + * \`\`\`ts + * [11,2,22,1].sort((a, b) => a - b) + * \`\`\` + */ + sort(compareFn?: (a: number, b: number) => number): this; + + /** + * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin?: number, end?: number): Uint32Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): Uint32Array; + + [index: number]: number; +} + +interface Uint32ArrayConstructor { + readonly prototype: Uint32Array; + new (length: number): Uint32Array; + new (array: ArrayLike<number> | ArrayBufferLike): Uint32Array; + new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array; + + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Uint32Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + */ + from(arrayLike: ArrayLike<number>): Uint32Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array; +} +declare var Uint32Array: Uint32ArrayConstructor; + +/** + * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number + * of bytes could not be allocated an exception is raised. + */ +interface Float32Array { + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + readonly buffer: ArrayBufferLike; + + /** + * The length in bytes of the array. + */ + readonly byteLength: number; + + /** + * The offset in bytes of the array. + */ + readonly byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param predicate A function that accepts up to three arguments. The every method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value false, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean; + + /** + * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): this; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param predicate A function that accepts up to three arguments. The filter method calls + * the predicate function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(predicate: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + readonly length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Float32Array; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike<number>, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. + */ + slice(start?: number, end?: number): Float32Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param predicate A function that accepts up to three arguments. The some method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value true, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if first argument is less than second argument, zero if they're equal and a positive + * value otherwise. If omitted, the elements are sorted in ascending order. + * \`\`\`ts + * [11,2,22,1].sort((a, b) => a - b) + * \`\`\` + */ + sort(compareFn?: (a: number, b: number) => number): this; + + /** + * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin?: number, end?: number): Float32Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): Float32Array; + + [index: number]: number; +} + +interface Float32ArrayConstructor { + readonly prototype: Float32Array; + new (length: number): Float32Array; + new (array: ArrayLike<number> | ArrayBufferLike): Float32Array; + new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array; + + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Float32Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + */ + from(arrayLike: ArrayLike<number>): Float32Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array; +} +declare var Float32Array: Float32ArrayConstructor; + +/** + * A typed array of 64-bit float values. The contents are initialized to 0. If the requested + * number of bytes could not be allocated an exception is raised. + */ +interface Float64Array { + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + readonly buffer: ArrayBufferLike; + + /** + * The length in bytes of the array. + */ + readonly byteLength: number; + + /** + * The offset in bytes of the array. + */ + readonly byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param predicate A function that accepts up to three arguments. The every method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value false, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean; + + /** + * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): this; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param predicate A function that accepts up to three arguments. The filter method calls + * the predicate function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(predicate: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + readonly length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Float64Array; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike<number>, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. + */ + slice(start?: number, end?: number): Float64Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param predicate A function that accepts up to three arguments. The some method calls + * the predicate function for each element in the array until the predicate returns a value + * which is coercible to the Boolean value true, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the predicate function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if first argument is less than second argument, zero if they're equal and a positive + * value otherwise. If omitted, the elements are sorted in ascending order. + * \`\`\`ts + * [11,2,22,1].sort((a, b) => a - b) + * \`\`\` + */ + sort(compareFn?: (a: number, b: number) => number): this; + + /** + * Gets a new Float64Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin?: number, end?: number): Float64Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): Float64Array; + + [index: number]: number; +} + +interface Float64ArrayConstructor { + readonly prototype: Float64Array; + new (length: number): Float64Array; + new (array: ArrayLike<number> | ArrayBufferLike): Float64Array; + new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array; + + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Float64Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + */ + from(arrayLike: ArrayLike<number>): Float64Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array; +} +declare var Float64Array: Float64ArrayConstructor; + +///////////////////////////// +/// ECMAScript Internationalization API +///////////////////////////// + +declare namespace Intl { + interface CollatorOptions { + usage?: "sort" | "search" | undefined; + localeMatcher?: "lookup" | "best fit" | undefined; + numeric?: boolean | undefined; + caseFirst?: "upper" | "lower" | "false" | undefined; + sensitivity?: "base" | "accent" | "case" | "variant" | undefined; + collation?: "big5han" | "compat" | "dict" | "direct" | "ducet" | "emoji" | "eor" | "gb2312" | "phonebk" | "phonetic" | "pinyin" | "reformed" | "searchjl" | "stroke" | "trad" | "unihan" | "zhuyin" | undefined; + ignorePunctuation?: boolean | undefined; + } + + interface ResolvedCollatorOptions { + locale: string; + usage: string; + sensitivity: string; + ignorePunctuation: boolean; + collation: string; + caseFirst: string; + numeric: boolean; + } + + interface Collator { + compare(x: string, y: string): number; + resolvedOptions(): ResolvedCollatorOptions; + } + + interface CollatorConstructor { + new (locales?: string | string[], options?: CollatorOptions): Collator; + (locales?: string | string[], options?: CollatorOptions): Collator; + supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[]; + } + + var Collator: CollatorConstructor; + + interface NumberFormatOptions { + localeMatcher?: string | undefined; + style?: string | undefined; + currency?: string | undefined; + currencySign?: string | undefined; + useGrouping?: boolean | undefined; + minimumIntegerDigits?: number | undefined; + minimumFractionDigits?: number | undefined; + maximumFractionDigits?: number | undefined; + minimumSignificantDigits?: number | undefined; + maximumSignificantDigits?: number | undefined; + } + + interface ResolvedNumberFormatOptions { + locale: string; + numberingSystem: string; + style: string; + currency?: string; + minimumIntegerDigits: number; + minimumFractionDigits: number; + maximumFractionDigits: number; + minimumSignificantDigits?: number; + maximumSignificantDigits?: number; + useGrouping: boolean; + } + + interface NumberFormat { + format(value: number): string; + resolvedOptions(): ResolvedNumberFormatOptions; + } + + interface NumberFormatConstructor { + new (locales?: string | string[], options?: NumberFormatOptions): NumberFormat; + (locales?: string | string[], options?: NumberFormatOptions): NumberFormat; + supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[]; + readonly prototype: NumberFormat; + } + + var NumberFormat: NumberFormatConstructor; + + interface DateTimeFormatOptions { + localeMatcher?: "best fit" | "lookup" | undefined; + weekday?: "long" | "short" | "narrow" | undefined; + era?: "long" | "short" | "narrow" | undefined; + year?: "numeric" | "2-digit" | undefined; + month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined; + day?: "numeric" | "2-digit" | undefined; + hour?: "numeric" | "2-digit" | undefined; + minute?: "numeric" | "2-digit" | undefined; + second?: "numeric" | "2-digit" | undefined; + timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined; + formatMatcher?: "best fit" | "basic" | undefined; + hour12?: boolean | undefined; + timeZone?: string | undefined; + } + + interface ResolvedDateTimeFormatOptions { + locale: string; + calendar: string; + numberingSystem: string; + timeZone: string; + hour12?: boolean; + weekday?: string; + era?: string; + year?: string; + month?: string; + day?: string; + hour?: string; + minute?: string; + second?: string; + timeZoneName?: string; + } + + interface DateTimeFormat { + format(date?: Date | number): string; + resolvedOptions(): ResolvedDateTimeFormatOptions; + } + + interface DateTimeFormatConstructor { + new (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat; + (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat; + supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[]; + readonly prototype: DateTimeFormat; + } + + var DateTimeFormat: DateTimeFormatConstructor; +} + +interface String { + /** + * Determines whether two strings are equivalent in the current or specified locale. + * @param that String to compare to target string + * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details. + * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details. + */ + localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number; +} + +interface Number { + /** + * Converts a number to a string by using the current or specified locale. + * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string; +} + +interface Date { + /** + * Converts a date and time to a string by using the current or specified locale. + * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string; + /** + * Converts a date to a string by using the current or specified locale. + * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + toLocaleDateString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string; + + /** + * Converts a time to a string by using the current or specified locale. + * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string; +} +`,co["lib.es6.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2015" /> +/// <reference lib="dom" /> +/// <reference lib="dom.iterable" /> +/// <reference lib="webworker.importscripts" /> +/// <reference lib="scripthost" /> +`,co["lib.esnext.collection.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface MapConstructor { + /** + * Groups members of an iterable according to the return value of the passed callback. + * @param items An iterable. + * @param keySelector A callback which will be invoked for each item in items. + */ + groupBy<K, T>( + items: Iterable<T>, + keySelector: (item: T, index: number) => K, + ): Map<K, T[]>; +} +`,co["lib.esnext.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2023" /> +/// <reference lib="esnext.intl" /> +/// <reference lib="esnext.decorators" /> +/// <reference lib="esnext.disposable" /> +/// <reference lib="esnext.promise" /> +/// <reference lib="esnext.object" /> +/// <reference lib="esnext.collection" /> +`,co["lib.esnext.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2015.symbol" /> +/// <reference lib="decorators" /> + +interface SymbolConstructor { + readonly metadata: unique symbol; +} + +interface Function { + [Symbol.metadata]: DecoratorMetadata | null; +} +`,co["lib.esnext.disposable.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="es2015.symbol" /> + +interface SymbolConstructor { + /** + * A method that is used to release resources held by an object. Called by the semantics of the \`using\` statement. + */ + readonly dispose: unique symbol; + + /** + * A method that is used to asynchronously release resources held by an object. Called by the semantics of the \`await using\` statement. + */ + readonly asyncDispose: unique symbol; +} + +interface Disposable { + [Symbol.dispose](): void; +} + +interface AsyncDisposable { + [Symbol.asyncDispose](): PromiseLike<void>; +} + +interface SuppressedError extends Error { + error: any; + suppressed: any; +} + +interface SuppressedErrorConstructor { + new (error: any, suppressed: any, message?: string): SuppressedError; + (error: any, suppressed: any, message?: string): SuppressedError; + readonly prototype: SuppressedError; +} +declare var SuppressedError: SuppressedErrorConstructor; + +interface DisposableStack { + /** + * Returns a value indicating whether this stack has been disposed. + */ + readonly disposed: boolean; + /** + * Disposes each resource in the stack in the reverse order that they were added. + */ + dispose(): void; + /** + * Adds a disposable resource to the stack, returning the resource. + * @param value The resource to add. \`null\` and \`undefined\` will not be added, but will be returned. + * @returns The provided {@link value}. + */ + use<T extends Disposable | null | undefined>(value: T): T; + /** + * Adds a value and associated disposal callback as a resource to the stack. + * @param value The value to add. + * @param onDispose The callback to use in place of a \`[Symbol.dispose]()\` method. Will be invoked with \`value\` + * as the first parameter. + * @returns The provided {@link value}. + */ + adopt<T>(value: T, onDispose: (value: T) => void): T; + /** + * Adds a callback to be invoked when the stack is disposed. + */ + defer(onDispose: () => void): void; + /** + * Move all resources out of this stack and into a new \`DisposableStack\`, and marks this stack as disposed. + * @example + * \`\`\`ts + * class C { + * #res1: Disposable; + * #res2: Disposable; + * #disposables: DisposableStack; + * constructor() { + * // stack will be disposed when exiting constructor for any reason + * using stack = new DisposableStack(); + * + * // get first resource + * this.#res1 = stack.use(getResource1()); + * + * // get second resource. If this fails, both \`stack\` and \`#res1\` will be disposed. + * this.#res2 = stack.use(getResource2()); + * + * // all operations succeeded, move resources out of \`stack\` so that they aren't disposed + * // when constructor exits + * this.#disposables = stack.move(); + * } + * + * [Symbol.dispose]() { + * this.#disposables.dispose(); + * } + * } + * \`\`\` + */ + move(): DisposableStack; + [Symbol.dispose](): void; + readonly [Symbol.toStringTag]: string; +} + +interface DisposableStackConstructor { + new (): DisposableStack; + readonly prototype: DisposableStack; +} +declare var DisposableStack: DisposableStackConstructor; + +interface AsyncDisposableStack { + /** + * Returns a value indicating whether this stack has been disposed. + */ + readonly disposed: boolean; + /** + * Disposes each resource in the stack in the reverse order that they were added. + */ + disposeAsync(): Promise<void>; + /** + * Adds a disposable resource to the stack, returning the resource. + * @param value The resource to add. \`null\` and \`undefined\` will not be added, but will be returned. + * @returns The provided {@link value}. + */ + use<T extends AsyncDisposable | Disposable | null | undefined>(value: T): T; + /** + * Adds a value and associated disposal callback as a resource to the stack. + * @param value The value to add. + * @param onDisposeAsync The callback to use in place of a \`[Symbol.asyncDispose]()\` method. Will be invoked with \`value\` + * as the first parameter. + * @returns The provided {@link value}. + */ + adopt<T>(value: T, onDisposeAsync: (value: T) => PromiseLike<void> | void): T; + /** + * Adds a callback to be invoked when the stack is disposed. + */ + defer(onDisposeAsync: () => PromiseLike<void> | void): void; + /** + * Move all resources out of this stack and into a new \`DisposableStack\`, and marks this stack as disposed. + * @example + * \`\`\`ts + * class C { + * #res1: Disposable; + * #res2: Disposable; + * #disposables: DisposableStack; + * constructor() { + * // stack will be disposed when exiting constructor for any reason + * using stack = new DisposableStack(); + * + * // get first resource + * this.#res1 = stack.use(getResource1()); + * + * // get second resource. If this fails, both \`stack\` and \`#res1\` will be disposed. + * this.#res2 = stack.use(getResource2()); + * + * // all operations succeeded, move resources out of \`stack\` so that they aren't disposed + * // when constructor exits + * this.#disposables = stack.move(); + * } + * + * [Symbol.dispose]() { + * this.#disposables.dispose(); + * } + * } + * \`\`\` + */ + move(): AsyncDisposableStack; + [Symbol.asyncDispose](): Promise<void>; + readonly [Symbol.toStringTag]: string; +} + +interface AsyncDisposableStackConstructor { + new (): AsyncDisposableStack; + readonly prototype: AsyncDisposableStack; +} +declare var AsyncDisposableStack: AsyncDisposableStackConstructor; +`,co["lib.esnext.full.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +/// <reference lib="esnext" /> +/// <reference lib="dom" /> +/// <reference lib="webworker.importscripts" /> +/// <reference lib="scripthost" /> +/// <reference lib="dom.iterable" /> +/// <reference lib="dom.asynciterable" /> +`,co["lib.esnext.intl.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +declare namespace Intl { + interface NumberRangeFormatPart extends NumberFormatPart { + source: "startRange" | "endRange" | "shared"; + } + + interface NumberFormat { + formatRange(start: number | bigint, end: number | bigint): string; + formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[]; + } +} +`,co["lib.esnext.object.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface ObjectConstructor { + /** + * Groups members of an iterable according to the return value of the passed callback. + * @param items An iterable. + * @param keySelector A callback which will be invoked for each item in items. + */ + groupBy<K extends PropertyKey, T>( + items: Iterable<T>, + keySelector: (item: T, index: number) => K, + ): Partial<Record<K, T[]>>; +} +`,co["lib.esnext.promise.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface PromiseWithResolvers<T> { + promise: Promise<T>; + resolve: (value: T | PromiseLike<T>) => void; + reject: (reason?: any) => void; +} + +interface PromiseConstructor { + /** + * Creates a new Promise and returns it in an object, along with its resolve and reject functions. + * @returns An object with the properties \`promise\`, \`resolve\`, and \`reject\`. + * + * \`\`\`ts + * const { promise, resolve, reject } = Promise.withResolvers<T>(); + * \`\`\` + */ + withResolvers<T>(): PromiseWithResolvers<T>; +} +`,co["lib.scripthost.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +///////////////////////////// +/// Windows Script Host APIS +///////////////////////////// + +interface ActiveXObject { + new (s: string): any; +} +declare var ActiveXObject: ActiveXObject; + +interface ITextWriter { + Write(s: string): void; + WriteLine(s: string): void; + Close(): void; +} + +interface TextStreamBase { + /** + * The column number of the current character position in an input stream. + */ + Column: number; + + /** + * The current line number in an input stream. + */ + Line: number; + + /** + * Closes a text stream. + * It is not necessary to close standard streams; they close automatically when the process ends. If + * you close a standard stream, be aware that any other pointers to that standard stream become invalid. + */ + Close(): void; +} + +interface TextStreamWriter extends TextStreamBase { + /** + * Sends a string to an output stream. + */ + Write(s: string): void; + + /** + * Sends a specified number of blank lines (newline characters) to an output stream. + */ + WriteBlankLines(intLines: number): void; + + /** + * Sends a string followed by a newline character to an output stream. + */ + WriteLine(s: string): void; +} + +interface TextStreamReader extends TextStreamBase { + /** + * Returns a specified number of characters from an input stream, starting at the current pointer position. + * Does not return until the ENTER key is pressed. + * Can only be used on a stream in reading mode; causes an error in writing or appending mode. + */ + Read(characters: number): string; + + /** + * Returns all characters from an input stream. + * Can only be used on a stream in reading mode; causes an error in writing or appending mode. + */ + ReadAll(): string; + + /** + * Returns an entire line from an input stream. + * Although this method extracts the newline character, it does not add it to the returned string. + * Can only be used on a stream in reading mode; causes an error in writing or appending mode. + */ + ReadLine(): string; + + /** + * Skips a specified number of characters when reading from an input text stream. + * Can only be used on a stream in reading mode; causes an error in writing or appending mode. + * @param characters Positive number of characters to skip forward. (Backward skipping is not supported.) + */ + Skip(characters: number): void; + + /** + * Skips the next line when reading from an input text stream. + * Can only be used on a stream in reading mode, not writing or appending mode. + */ + SkipLine(): void; + + /** + * Indicates whether the stream pointer position is at the end of a line. + */ + AtEndOfLine: boolean; + + /** + * Indicates whether the stream pointer position is at the end of a stream. + */ + AtEndOfStream: boolean; +} + +declare var WScript: { + /** + * Outputs text to either a message box (under WScript.exe) or the command console window followed by + * a newline (under CScript.exe). + */ + Echo(s: any): void; + + /** + * Exposes the write-only error output stream for the current script. + * Can be accessed only while using CScript.exe. + */ + StdErr: TextStreamWriter; + + /** + * Exposes the write-only output stream for the current script. + * Can be accessed only while using CScript.exe. + */ + StdOut: TextStreamWriter; + Arguments: { length: number; Item(n: number): string; }; + + /** + * The full path of the currently running script. + */ + ScriptFullName: string; + + /** + * Forces the script to stop immediately, with an optional exit code. + */ + Quit(exitCode?: number): number; + + /** + * The Windows Script Host build version number. + */ + BuildVersion: number; + + /** + * Fully qualified path of the host executable. + */ + FullName: string; + + /** + * Gets/sets the script mode - interactive(true) or batch(false). + */ + Interactive: boolean; + + /** + * The name of the host executable (WScript.exe or CScript.exe). + */ + Name: string; + + /** + * Path of the directory containing the host executable. + */ + Path: string; + + /** + * The filename of the currently running script. + */ + ScriptName: string; + + /** + * Exposes the read-only input stream for the current script. + * Can be accessed only while using CScript.exe. + */ + StdIn: TextStreamReader; + + /** + * Windows Script Host version + */ + Version: string; + + /** + * Connects a COM object's event sources to functions named with a given prefix, in the form prefix_event. + */ + ConnectObject(objEventSource: any, strPrefix: string): void; + + /** + * Creates a COM object. + * @param strProgiID + * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events. + */ + CreateObject(strProgID: string, strPrefix?: string): any; + + /** + * Disconnects a COM object from its event sources. + */ + DisconnectObject(obj: any): void; + + /** + * Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file. + * @param strPathname Fully qualified path to the file containing the object persisted to disk. + * For objects in memory, pass a zero-length string. + * @param strProgID + * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events. + */ + GetObject(strPathname: string, strProgID?: string, strPrefix?: string): any; + + /** + * Suspends script execution for a specified length of time, then continues execution. + * @param intTime Interval (in milliseconds) to suspend script execution. + */ + Sleep(intTime: number): void; +}; + +/** + * WSH is an alias for WScript under Windows Script Host + */ +declare var WSH: typeof WScript; + +/** + * Represents an Automation SAFEARRAY + */ +declare class SafeArray<T = any> { + private constructor(); + private SafeArray_typekey: SafeArray<T>; +} + +/** + * Allows enumerating over a COM collection, which may not have indexed item access. + */ +interface Enumerator<T = any> { + /** + * Returns true if the current item is the last one in the collection, or the collection is empty, + * or the current item is undefined. + */ + atEnd(): boolean; + + /** + * Returns the current item in the collection + */ + item(): T; + + /** + * Resets the current item in the collection to the first item. If there are no items in the collection, + * the current item is set to undefined. + */ + moveFirst(): void; + + /** + * Moves the current item to the next item in the collection. If the enumerator is at the end of + * the collection or the collection is empty, the current item is set to undefined. + */ + moveNext(): void; +} + +interface EnumeratorConstructor { + new <T = any>(safearray: SafeArray<T>): Enumerator<T>; + new <T = any>(collection: { Item(index: any): T; }): Enumerator<T>; + new <T = any>(collection: any): Enumerator<T>; +} + +declare var Enumerator: EnumeratorConstructor; + +/** + * Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions. + */ +interface VBArray<T = any> { + /** + * Returns the number of dimensions (1-based). + */ + dimensions(): number; + + /** + * Takes an index for each dimension in the array, and returns the item at the corresponding location. + */ + getItem(dimension1Index: number, ...dimensionNIndexes: number[]): T; + + /** + * Returns the smallest available index for a given dimension. + * @param dimension 1-based dimension (defaults to 1) + */ + lbound(dimension?: number): number; + + /** + * Returns the largest available index for a given dimension. + * @param dimension 1-based dimension (defaults to 1) + */ + ubound(dimension?: number): number; + + /** + * Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions, + * each successive dimension is appended to the end of the array. + * Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6] + */ + toArray(): T[]; +} + +interface VBArrayConstructor { + new <T = any>(safeArray: SafeArray<T>): VBArray<T>; +} + +declare var VBArray: VBArrayConstructor; + +/** + * Automation date (VT_DATE) + */ +declare class VarDate { + private constructor(); + private VarDate_typekey: VarDate; +} + +interface DateConstructor { + new (vd: VarDate): Date; +} + +interface Date { + getVarDate: () => VarDate; +} +`,co["lib.webworker.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +///////////////////////////// +/// Worker Async Iterable APIs +///////////////////////////// + +interface FileSystemDirectoryHandle { + [Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>; + entries(): AsyncIterableIterator<[string, FileSystemHandle]>; + keys(): AsyncIterableIterator<string>; + values(): AsyncIterableIterator<FileSystemHandle>; +} +`,co["lib.webworker.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +///////////////////////////// +/// Worker 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 AudioConfiguration { + bitrate?: number; + channels?: string; + contentType: string; + samplerate?: number; + spatialRendering?: boolean; +} + +interface AvcEncoderConfig { + format?: AvcBitstreamFormat; +} + +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 CacheQueryOptions { + ignoreMethod?: boolean; + ignoreSearch?: boolean; + ignoreVary?: boolean; +} + +interface ClientQueryOptions { + includeUncontrolled?: boolean; + type?: ClientTypes; +} + +interface CloseEventInit extends EventInit { + code?: number; + reason?: string; + wasClean?: boolean; +} + +interface CryptoKeyPair { + privateKey: CryptoKey; + publicKey: CryptoKey; +} + +interface CustomEventInit<T = any> 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 EcKeyGenParams extends Algorithm { + namedCurve: NamedCurve; +} + +interface EcKeyImportParams extends Algorithm { + namedCurve: NamedCurve; +} + +interface EcdhKeyDeriveParams extends Algorithm { + public: CryptoKey; +} + +interface EcdsaParams extends Algorithm { + hash: HashAlgorithmIdentifier; +} + +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 EventSourceInit { + withCredentials?: boolean; +} + +interface ExtendableEventInit extends EventInit { +} + +interface ExtendableMessageEventInit extends ExtendableEventInit { + data?: any; + lastEventId?: string; + origin?: string; + ports?: MessagePort[]; + source?: Client | ServiceWorker | MessagePort | null; +} + +interface FetchEventInit extends ExtendableEventInit { + clientId?: string; + handled?: Promise<undefined>; + preloadResponse?: Promise<any>; + replacesClientId?: string; + request: Request; + resultingClientId?: string; +} + +interface FilePropertyBag extends BlobPropertyBag { + lastModified?: number; +} + +interface FileSystemCreateWritableOptions { + keepExistingData?: boolean; +} + +interface FileSystemGetDirectoryOptions { + create?: boolean; +} + +interface FileSystemGetFileOptions { + create?: boolean; +} + +interface FileSystemReadWriteOptions { + at?: number; +} + +interface FileSystemRemoveOptions { + recursive?: 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 GetNotificationOptions { + tag?: string; +} + +interface HkdfParams extends Algorithm { + hash: HashAlgorithmIdentifier; + info: BufferSource; + salt: BufferSource; +} + +interface HmacImportParams extends Algorithm { + hash: HashAlgorithmIdentifier; + 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 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 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 LockInfo { + clientId?: string; + mode?: LockMode; + name?: string; +} + +interface LockManagerSnapshot { + held?: LockInfo[]; + pending?: LockInfo[]; +} + +interface LockOptions { + ifAvailable?: boolean; + mode?: LockMode; + signal?: AbortSignal; + steal?: 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 MediaEncodingConfiguration extends MediaConfiguration { + type: MediaEncodingType; +} + +interface MessageEventInit<T = any> extends EventInit { + data?: T; + lastEventId?: string; + origin?: string; + ports?: MessagePort[]; + source?: MessageEventSource | null; +} + +interface MultiCacheQueryOptions extends CacheQueryOptions { + cacheName?: string; +} + +interface NavigationPreloadState { + enabled?: boolean; + headerValue?: string; +} + +interface NotificationEventInit extends ExtendableEventInit { + action?: string; + notification: Notification; +} + +interface NotificationOptions { + badge?: string; + body?: string; + data?: any; + dir?: NotificationDirection; + icon?: string; + lang?: string; + requireInteraction?: boolean; + silent?: boolean | null; + tag?: string; +} + +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 PermissionDescriptor { + name: PermissionName; +} + +interface PlaneLayout { + offset: number; + stride: number; +} + +interface ProgressEventInit extends EventInit { + lengthComputable?: boolean; + loaded?: number; + total?: number; +} + +interface PromiseRejectionEventInit extends EventInit { + promise: Promise<any>; + reason?: any; +} + +interface PushEventInit extends ExtendableEventInit { + data?: PushMessageDataInit; +} + +interface PushSubscriptionJSON { + endpoint?: string; + expirationTime?: EpochTimeStamp | null; + keys?: Record<string, string>; +} + +interface PushSubscriptionOptionsInit { + applicationServerKey?: BufferSource | string | null; + userVisibleOnly?: boolean; +} + +interface QueuingStrategy<T = any> { + highWaterMark?: number; + size?: QueuingStrategySize<T>; +} + +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 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 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<T> { + done: true; + value?: T; +} + +interface ReadableStreamReadValueResult<T> { + done: false; + value: T; +} + +interface ReadableWritablePair<R = any, W = any> { + readable: ReadableStream<R>; + /** + * 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<W>; +} + +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 ResponseInit { + headers?: HeadersInit; + status?: number; + statusText?: string; +} + +interface RsaHashedImportParams extends Algorithm { + hash: HashAlgorithmIdentifier; +} + +interface RsaHashedKeyGenParams extends RsaKeyGenParams { + hash: HashAlgorithmIdentifier; +} + +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 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 StorageEstimate { + quota?: number; + usage?: number; +} + +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 TextDecodeOptions { + stream?: boolean; +} + +interface TextDecoderOptions { + fatal?: boolean; + ignoreBOM?: boolean; +} + +interface TextEncoderEncodeIntoResult { + read: number; + written: number; +} + +interface Transformer<I = any, O = any> { + flush?: TransformerFlushCallback<O>; + readableType?: undefined; + start?: TransformerStartCallback<O>; + transform?: TransformerTransformCallback<I, O>; + writableType?: undefined; +} + +interface UnderlyingByteSource { + autoAllocateChunkSize?: number; + cancel?: UnderlyingSourceCancelCallback; + pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>; + start?: (controller: ReadableByteStreamController) => any; + type: "bytes"; +} + +interface UnderlyingDefaultSource<R = any> { + cancel?: UnderlyingSourceCancelCallback; + pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>; + start?: (controller: ReadableStreamDefaultController<R>) => any; + type?: undefined; +} + +interface UnderlyingSink<W = any> { + abort?: UnderlyingSinkAbortCallback; + close?: UnderlyingSinkCloseCallback; + start?: UnderlyingSinkStartCallback; + type?: undefined; + write?: UnderlyingSinkWriteCallback<W>; +} + +interface UnderlyingSource<R = any> { + autoAllocateChunkSize?: number; + cancel?: UnderlyingSourceCancelCallback; + pull?: UnderlyingSourcePullCallback<R>; + start?: UnderlyingSourceStartCallback<R>; + type?: ReadableStreamType; +} + +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 VideoFrameCopyToOptions { + layout?: PlaneLayout[]; + rect?: DOMRectInit; +} + +interface VideoFrameInit { + alpha?: AlphaOption; + displayHeight?: number; + displayWidth?: number; + duration?: number; + timestamp?: number; + visibleRect?: DOMRectInit; +} + +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 WorkerOptions { + credentials?: RequestCredentials; + name?: string; + type?: WorkerType; +} + +interface WriteParams { + data?: BufferSource | Blob | string | null; + position?: number | null; + size?: number | null; + type: WriteCommandType; +} + +/** + * 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; +} + +/** + * 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<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AbortSignalEventMap>(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; +}; + +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<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +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; +} + +/** + * 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<ArrayBuffer>; + /** [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<Uint8Array>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */ + text(): Promise<string>; +} + +declare var Blob: { + prototype: Blob; + new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob; +}; + +interface Body { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */ + readonly body: ReadableStream<Uint8Array> | 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<ArrayBuffer>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */ + blob(): Promise<Blob>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */ + formData(): Promise<FormData>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */ + json(): Promise<any>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */ + text(): Promise<string>; +} + +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<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof BroadcastChannelEventMap>(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 a 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<ArrayBufferView> { + /** [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<ArrayBufferView>; +} + +declare var ByteLengthQueuingStrategy: { + prototype: ByteLengthQueuingStrategy; + new(init: QueuingStrategyInit): ByteLengthQueuingStrategy; +}; + +/** [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/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; +}; + +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; +}; + +/** [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/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/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; +}; + +/** [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; +}; + +/** [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/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/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<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */ + addAll(requests: RequestInfo[]): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete) */ + delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys) */ + keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match) */ + match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll) */ + matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put) */ + put(request: RequestInfo | URL, response: Response): Promise<void>; +} + +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<boolean>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) */ + has(cacheName: string): Promise<boolean>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) */ + keys(): Promise<string[]>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) */ + match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */ + open(cacheName: string): Promise<Cache>; +} + +declare var CacheStorage: { + prototype: CacheStorage; + new(): CacheStorage; +}; + +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; +} + +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; +} + +/** + * The Client interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific WindowClient. You can get Client/WindowClient objects from methods such as Clients.matchAll() and Clients.get(). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client) + */ +interface Client { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/frameType) */ + readonly frameType: FrameType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/id) */ + readonly id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/type) */ + readonly type: ClientTypes; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/url) */ + readonly url: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/postMessage) */ + postMessage(message: any, transfer: Transferable[]): void; + postMessage(message: any, options?: StructuredSerializeOptions): void; +} + +declare var Client: { + prototype: Client; + new(): Client; +}; + +/** + * Provides access to Client objects. Access it via self.clients within a service worker. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients) + */ +interface Clients { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/claim) */ + claim(): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/get) */ + get(id: string): Promise<Client | undefined>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/matchAll) */ + matchAll<T extends ClientQueryOptions>(options?: T): Promise<ReadonlyArray<T["type"] extends "window" ? WindowClient : Client>>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/openWindow) */ + openWindow(url: string | URL): Promise<WindowClient | null>; +} + +declare var Clients: { + prototype: Clients; + new(): Clients; +}; + +/** + * 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; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */ +interface CompressionStream extends GenericTransformStream { +} + +declare var CompressionStream: { + prototype: CompressionStream; + new(format: CompressionFormat): CompressionStream; +}; + +/** + * This Streams API interface provides a 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; +}; + +/** + * 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<T extends ArrayBufferView | null>(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/CustomEvent) */ +interface CustomEvent<T = any> 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<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>; +}; + +/** + * 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; +}; + +/** [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; + 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; +}; + +/** [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; +} + +declare var DOMMatrixReadOnly: { + prototype: DOMMatrixReadOnly; + new(init?: string | number[]): DOMMatrixReadOnly; + fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly; + fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly; + fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly; +}; + +/** [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; +}; + +/** [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; +}; + +/** [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; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */ +interface DecompressionStream extends GenericTransformStream { +} + +declare var DecompressionStream: { + prototype: DecompressionStream; + new(format: CompressionFormat): DecompressionStream; +}; + +interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { + "message": MessageEvent; + "messageerror": MessageEvent; + "rtctransform": Event; +} + +/** + * (the Worker global scope) is accessible through the self keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the JavaScript Reference. See also: Functions available to workers. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope) + */ +interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider { + /** + * Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/name) + */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */ + onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */ + onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */ + onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null; + /** + * Aborts dedicatedWorkerGlobal. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/close) + */ + close(): void; + /** + * Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/postMessage) + */ + postMessage(message: any, transfer: Transferable[]): void; + postMessage(message: any, options?: StructuredSerializeOptions): void; + addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var DedicatedWorkerGlobalScope: { + prototype: DedicatedWorkerGlobalScope; + new(): DedicatedWorkerGlobalScope; +}; + +/** [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; +} + +/** [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; +}; + +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<K extends keyof EventSourceEventMap>(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<K extends keyof EventSourceEventMap>(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 § 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; +}; + +/** + * Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent) + */ +interface ExtendableEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil) */ + waitUntil(f: Promise<any>): void; +} + +declare var ExtendableEvent: { + prototype: ExtendableEvent; + new(type: string, eventInitDict?: ExtendableEventInit): ExtendableEvent; +}; + +/** + * This ServiceWorker API interface represents the event object of a message event fired on a service worker (when a channel message is received on the ServiceWorkerGlobalScope from another context) — extends the lifetime of such events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent) + */ +interface ExtendableMessageEvent extends ExtendableEvent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/data) */ + readonly data: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/lastEventId) */ + readonly lastEventId: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/origin) */ + readonly origin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/ports) */ + readonly ports: ReadonlyArray<MessagePort>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/source) */ + readonly source: Client | ServiceWorker | MessagePort | null; +} + +declare var ExtendableMessageEvent: { + prototype: ExtendableMessageEvent; + new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMessageEvent; +}; + +/** + * This is the event type for fetch events dispatched on the service worker global scope. It contains information about the fetch, including the request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent) + */ +interface FetchEvent extends ExtendableEvent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/clientId) */ + readonly clientId: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/handled) */ + readonly handled: Promise<undefined>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/preloadResponse) */ + readonly preloadResponse: Promise<any>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/request) */ + readonly request: Request; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/resultingClientId) */ + readonly resultingClientId: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/respondWith) */ + respondWith(r: Response | PromiseLike<Response>): void; +} + +declare var FetchEvent: { + prototype: FetchEvent; + new(type: string, eventInitDict: FetchEventInit): FetchEvent; +}; + +/** + * 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 <input> element; this lets you access the list of files selected with the <input type="file"> 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<FileReader>; + "error": ProgressEvent<FileReader>; + "load": ProgressEvent<FileReader>; + "loadend": ProgressEvent<FileReader>; + "loadstart": ProgressEvent<FileReader>; + "progress": ProgressEvent<FileReader>; +} + +/** + * 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<FileReader>) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */ + onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */ + onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */ + onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */ + onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */ + onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => 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<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof FileReaderEventMap>(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; +}; + +/** + * Allows to read File or Blob objects in a synchronous way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync) + */ +interface FileReaderSync { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsArrayBuffer) */ + readAsArrayBuffer(blob: Blob): ArrayBuffer; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsBinaryString) + */ + readAsBinaryString(blob: Blob): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsDataURL) */ + readAsDataURL(blob: Blob): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsText) */ + readAsText(blob: Blob, encoding?: string): string; +} + +declare var FileReaderSync: { + prototype: FileReaderSync; + new(): FileReaderSync; +}; + +/** + * 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<FileSystemDirectoryHandle>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) */ + getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) */ + removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */ + resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>; +} + +declare var FileSystemDirectoryHandle: { + prototype: FileSystemDirectoryHandle; + new(): FileSystemDirectoryHandle; +}; + +/** + * 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/createSyncAccessHandle) */ + createSyncAccessHandle(): Promise<FileSystemSyncAccessHandle>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) */ + createWritable(options?: FileSystemCreateWritableOptions): Promise<FileSystemWritableFileStream>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) */ + getFile(): Promise<File>; +} + +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<boolean>; +} + +declare var FileSystemHandle: { + prototype: FileSystemHandle; + new(): FileSystemHandle; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle) + */ +interface FileSystemSyncAccessHandle { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/flush) */ + flush(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/getSize) */ + getSize(): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/read) */ + read(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/truncate) */ + truncate(newSize: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/write) */ + write(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number; +} + +declare var FileSystemSyncAccessHandle: { + prototype: FileSystemSyncAccessHandle; + new(): FileSystemSyncAccessHandle; +}; + +/** + * 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<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) */ + truncate(size: number): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) */ + write(data: FileSystemWriteChunkType): Promise<void>; +} + +declare var FileSystemWritableFileStream: { + prototype: FileSystemWritableFileStream; + new(): FileSystemWritableFileStream; +}; + +/** [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<FontFace>; + /** [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<FontFace>; +} + +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<FontFaceSet>; + /** [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<FontFace[]>; + forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void; + addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof FontFaceSetEventMap>(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<FontFace>; +} + +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(): FormData; +}; + +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; +} + +/** + * This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists of zero or more name and value pairs.  You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers) + */ +interface Headers { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append) */ + append(name: string, value: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete) */ + delete(name: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */ + get(name: string): string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) */ + getSetCookie(): string[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) */ + has(name: string): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) */ + set(name: string, value: string): void; + forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void; +} + +declare var Headers: { + prototype: Headers; + new(init?: HeadersInit): Headers; +}; + +/** + * This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor) + */ +interface IDBCursor { + /** + * Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/direction) + */ + readonly direction: IDBCursorDirection; + /** + * Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/key) + */ + readonly key: IDBValidKey; + /** + * Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/primaryKey) + */ + readonly primaryKey: IDBValidKey; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/request) */ + readonly request: IDBRequest; + /** + * Returns the IDBObjectStore or IDBIndex the cursor was opened from. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/source) + */ + readonly source: IDBObjectStore | IDBIndex; + /** + * Advances the cursor through the next count records in range. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/advance) + */ + advance(count: number): void; + /** + * Advances the cursor to the next record in range. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continue) + */ + continue(key?: IDBValidKey): void; + /** + * Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continuePrimaryKey) + */ + continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void; + /** + * Delete the record pointed at by the cursor with a new value. + * + * If successful, request's result will be undefined. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/delete) + */ + delete(): IDBRequest<undefined>; + /** + * Updated the record pointed at by the cursor with a new value. + * + * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed. + * + * If successful, request's result will be the record's key. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/update) + */ + update(value: any): IDBRequest<IDBValidKey>; +} + +declare var IDBCursor: { + prototype: IDBCursor; + new(): IDBCursor; +}; + +/** + * This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue) + */ +interface IDBCursorWithValue extends IDBCursor { + /** + * Returns the cursor's current value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue/value) + */ + readonly value: any; +} + +declare var IDBCursorWithValue: { + prototype: IDBCursorWithValue; + new(): IDBCursorWithValue; +}; + +interface IDBDatabaseEventMap { + "abort": Event; + "close": Event; + "error": Event; + "versionchange": IDBVersionChangeEvent; +} + +/** + * This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase) + */ +interface IDBDatabase extends EventTarget { + /** + * Returns the name of the database. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name) + */ + readonly name: string; + /** + * Returns a list of the names of object stores in the database. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames) + */ + readonly objectStoreNames: DOMStringList; + onabort: ((this: IDBDatabase, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */ + onclose: ((this: IDBDatabase, ev: Event) => any) | null; + onerror: ((this: IDBDatabase, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/versionchange_event) */ + onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null; + /** + * Returns the version of the database. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/version) + */ + readonly version: number; + /** + * Closes the connection once all running transactions have finished. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close) + */ + close(): void; + /** + * Creates a new object store with the given name and options and returns a new IDBObjectStore. + * + * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/createObjectStore) + */ + createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore; + /** + * Deletes the object store with the given name. + * + * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/deleteObjectStore) + */ + deleteObjectStore(name: string): void; + /** + * Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction) + */ + transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction; + addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var IDBDatabase: { + prototype: IDBDatabase; + new(): IDBDatabase; +}; + +/** + * In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory) + */ +interface IDBFactory { + /** + * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal. + * + * Throws a "DataError" DOMException if either input is not a valid key. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/cmp) + */ + cmp(first: any, second: any): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/databases) */ + databases(): Promise<IDBDatabaseInfo[]>; + /** + * Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/deleteDatabase) + */ + deleteDatabase(name: string): IDBOpenDBRequest; + /** + * Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/open) + */ + open(name: string, version?: number): IDBOpenDBRequest; +} + +declare var IDBFactory: { + prototype: IDBFactory; + new(): IDBFactory; +}; + +/** + * IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex) + */ +interface IDBIndex { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/keyPath) */ + readonly keyPath: string | string[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/multiEntry) */ + readonly multiEntry: boolean; + /** + * Returns the name of the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/name) + */ + name: string; + /** + * Returns the IDBObjectStore the index belongs to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/objectStore) + */ + readonly objectStore: IDBObjectStore; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/unique) */ + readonly unique: boolean; + /** + * Retrieves the number of records matching the given key or key range in query. + * + * If successful, request's result will be the count. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/count) + */ + count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>; + /** + * Retrieves the value of the first record matching the given key or key range in query. + * + * If successful, request's result will be the value, or undefined if there was no matching record. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/get) + */ + get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>; + /** + * Retrieves the values of the records matching the given key or key range in query (up to count if given). + * + * If successful, request's result will be an Array of the values. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll) + */ + getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>; + /** + * Retrieves the keys of records matching the given key or key range in query (up to count if given). + * + * If successful, request's result will be an Array of the keys. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) + */ + getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>; + /** + * Retrieves the key of the first record matching the given key or key range in query. + * + * If successful, request's result will be the key, or undefined if there was no matching record. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getKey) + */ + getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>; + /** + * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched. + * + * If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openCursor) + */ + openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>; + /** + * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched. + * + * If successful, request's result will be an IDBCursor, or null if there were no matching records. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openKeyCursor) + */ + openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>; +} + +declare var IDBIndex: { + prototype: IDBIndex; + new(): IDBIndex; +}; + +/** + * A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange) + */ +interface IDBKeyRange { + /** + * Returns lower bound, or undefined if none. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lower) + */ + readonly lower: any; + /** + * Returns true if the lower open flag is set, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerOpen) + */ + readonly lowerOpen: boolean; + /** + * Returns upper bound, or undefined if none. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upper) + */ + readonly upper: any; + /** + * Returns true if the upper open flag is set, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperOpen) + */ + readonly upperOpen: boolean; + /** + * Returns true if key is included in the range, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/includes) + */ + includes(key: any): boolean; +} + +declare var IDBKeyRange: { + prototype: IDBKeyRange; + new(): IDBKeyRange; + /** + * Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static) + */ + bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange; + /** + * Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static) + */ + lowerBound(lower: any, open?: boolean): IDBKeyRange; + /** + * Returns a new IDBKeyRange spanning only key. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static) + */ + only(value: any): IDBKeyRange; + /** + * Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static) + */ + upperBound(upper: any, open?: boolean): IDBKeyRange; +}; + +/** + * This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our To-do Notifications app (view example live.) + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore) + */ +interface IDBObjectStore { + /** + * Returns true if the store has a key generator, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/autoIncrement) + */ + readonly autoIncrement: boolean; + /** + * Returns a list of the names of indexes in the store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/indexNames) + */ + readonly indexNames: DOMStringList; + /** + * Returns the key path of the store, or null if none. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath) + */ + readonly keyPath: string | string[]; + /** + * Returns the name of the store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/name) + */ + name: string; + /** + * Returns the associated transaction. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/transaction) + */ + readonly transaction: IDBTransaction; + /** + * Adds or updates a record in store with the given value and key. + * + * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown. + * + * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException. + * + * If successful, request's result will be the record's key. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/add) + */ + add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>; + /** + * Deletes all records in store. + * + * If successful, request's result will be undefined. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/clear) + */ + clear(): IDBRequest<undefined>; + /** + * Retrieves the number of records matching the given key or key range in query. + * + * If successful, request's result will be the count. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/count) + */ + count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>; + /** + * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException. + * + * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex) + */ + createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex; + /** + * Deletes records in store with the given key or in the given key range in query. + * + * If successful, request's result will be undefined. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/delete) + */ + delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>; + /** + * Deletes the index in store with the given name. + * + * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/deleteIndex) + */ + deleteIndex(name: string): void; + /** + * Retrieves the value of the first record matching the given key or key range in query. + * + * If successful, request's result will be the value, or undefined if there was no matching record. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/get) + */ + get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>; + /** + * Retrieves the values of the records matching the given key or key range in query (up to count if given). + * + * If successful, request's result will be an Array of the values. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll) + */ + getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>; + /** + * Retrieves the keys of records matching the given key or key range in query (up to count if given). + * + * If successful, request's result will be an Array of the keys. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) + */ + getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>; + /** + * Retrieves the key of the first record matching the given key or key range in query. + * + * If successful, request's result will be the key, or undefined if there was no matching record. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getKey) + */ + getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/index) */ + index(name: string): IDBIndex; + /** + * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched. + * + * If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openCursor) + */ + openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>; + /** + * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched. + * + * If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openKeyCursor) + */ + openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>; + /** + * Adds or updates a record in store with the given value and key. + * + * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown. + * + * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException. + * + * If successful, request's result will be the record's key. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/put) + */ + put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>; +} + +declare var IDBObjectStore: { + prototype: IDBObjectStore; + new(): IDBObjectStore; +}; + +interface IDBOpenDBRequestEventMap extends IDBRequestEventMap { + "blocked": IDBVersionChangeEvent; + "upgradeneeded": IDBVersionChangeEvent; +} + +/** + * Also inherits methods from its parents IDBRequest and EventTarget. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest) + */ +interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/blocked_event) */ + onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/upgradeneeded_event) */ + onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null; + addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var IDBOpenDBRequest: { + prototype: IDBOpenDBRequest; + new(): IDBOpenDBRequest; +}; + +interface IDBRequestEventMap { + "error": Event; + "success": Event; +} + +/** + * The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest) + */ +interface IDBRequest<T = any> extends EventTarget { + /** + * When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error) + */ + readonly error: DOMException | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error_event) */ + onerror: ((this: IDBRequest<T>, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/success_event) */ + onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null; + /** + * Returns "pending" until a request is complete, then returns "done". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/readyState) + */ + readonly readyState: IDBRequestReadyState; + /** + * When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/result) + */ + readonly result: T; + /** + * Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/source) + */ + readonly source: IDBObjectStore | IDBIndex | IDBCursor; + /** + * Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/transaction) + */ + readonly transaction: IDBTransaction | null; + addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var IDBRequest: { + prototype: IDBRequest; + new(): IDBRequest; +}; + +interface IDBTransactionEventMap { + "abort": Event; + "complete": Event; + "error": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction) */ +interface IDBTransaction extends EventTarget { + /** + * Returns the transaction's connection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/db) + */ + readonly db: IDBDatabase; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/durability) */ + readonly durability: IDBTransactionDurability; + /** + * If the transaction was aborted, returns the error (a DOMException) providing the reason. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error) + */ + readonly error: DOMException | null; + /** + * Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/mode) + */ + readonly mode: IDBTransactionMode; + /** + * Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStoreNames) + */ + readonly objectStoreNames: DOMStringList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */ + onabort: ((this: IDBTransaction, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/complete_event) */ + oncomplete: ((this: IDBTransaction, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error_event) */ + onerror: ((this: IDBTransaction, ev: Event) => any) | null; + /** + * Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort) + */ + abort(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/commit) */ + commit(): void; + /** + * Returns an IDBObjectStore in the transaction's scope. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStore) + */ + objectStore(name: string): IDBObjectStore; + addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var IDBTransaction: { + prototype: IDBTransaction; + new(): IDBTransaction; +}; + +/** + * This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent) + */ +interface IDBVersionChangeEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/newVersion) */ + readonly newVersion: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/oldVersion) */ + readonly oldVersion: number; +} + +declare var IDBVersionChangeEvent: { + prototype: IDBVersionChangeEvent; + new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap) */ +interface ImageBitmap { + /** + * Returns the intrinsic height of the image, in CSS pixels. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/height) + */ + readonly height: number; + /** + * Returns the intrinsic width of the image, in CSS pixels. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/width) + */ + readonly width: number; + /** + * Releases imageBitmap's underlying bitmap data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close) + */ + close(): void; +} + +declare var ImageBitmap: { + prototype: ImageBitmap; + new(): ImageBitmap; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext) */ +interface ImageBitmapRenderingContext { + /** + * Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap) + */ + transferFromImageBitmap(bitmap: ImageBitmap | null): void; +} + +declare var ImageBitmapRenderingContext: { + prototype: ImageBitmapRenderingContext; + new(): ImageBitmapRenderingContext; +}; + +/** + * The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData) + */ +interface ImageData { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace) */ + readonly colorSpace: PredefinedColorSpace; + /** + * Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data) + */ + readonly data: Uint8ClampedArray; + /** + * Returns the actual dimensions of the data in the ImageData object, in pixels. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/height) + */ + readonly height: number; + /** + * Returns the actual dimensions of the data in the ImageData object, in pixels. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/width) + */ + readonly width: number; +} + +declare var ImageData: { + prototype: ImageData; + new(sw: number, sh: number, settings?: ImageDataSettings): ImageData; + new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile) */ +interface KHR_parallel_shader_compile { + readonly COMPLETION_STATUS_KHR: 0x91B1; +} + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock) + */ +interface Lock { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/mode) */ + readonly mode: LockMode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/name) */ + readonly name: string; +} + +declare var Lock: { + prototype: Lock; + new(): Lock; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager) + */ +interface LockManager { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */ + query(): Promise<LockManagerSnapshot>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */ + request(name: string, callback: LockGrantedCallback): Promise<any>; + request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>; +} + +declare var LockManager: { + prototype: LockManager; + new(): LockManager; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities) */ +interface MediaCapabilities { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/decodingInfo) */ + decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/encodingInfo) */ + encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>; +} + +declare var MediaCapabilities: { + prototype: MediaCapabilities; + new(): MediaCapabilities; +}; + +/** + * This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel) + */ +interface MessageChannel { + /** + * Returns the first MessagePort object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1) + */ + readonly port1: MessagePort; + /** + * Returns the second MessagePort object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2) + */ + readonly port2: MessagePort; +} + +declare var MessageChannel: { + prototype: MessageChannel; + new(): MessageChannel; +}; + +/** + * A message received by a target object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent) + */ +interface MessageEvent<T = any> extends Event { + /** + * Returns the data of the message. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data) + */ + readonly data: T; + /** + * Returns the last event ID string, for server-sent events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId) + */ + readonly lastEventId: string; + /** + * Returns the origin of the message, for server-sent events and cross-document messaging. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin) + */ + readonly origin: string; + /** + * Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports) + */ + readonly ports: ReadonlyArray<MessagePort>; + /** + * Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source) + */ + readonly source: MessageEventSource | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent) + */ + initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void; +} + +declare var MessageEvent: { + prototype: MessageEvent; + new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>; +}; + +interface MessagePortEventMap { + "message": MessageEvent; + "messageerror": MessageEvent; +} + +/** + * This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort) + */ +interface MessagePort extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/message_event) */ + onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/messageerror_event) */ + onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null; + /** + * Disconnects the port, so that it is no longer active. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close) + */ + close(): void; + /** + * Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side. + * + * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage) + */ + postMessage(message: any, transfer: Transferable[]): void; + postMessage(message: any, options?: StructuredSerializeOptions): void; + /** + * Begins dispatching messages received on the port. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start) + */ + start(): void; + addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MessagePort: { + prototype: MessagePort; + new(): MessagePort; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager) + */ +interface NavigationPreloadManager { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable) */ + disable(): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable) */ + enable(): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/getState) */ + getState(): Promise<NavigationPreloadState>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/setHeaderValue) */ + setHeaderValue(value: string): Promise<void>; +} + +declare var NavigationPreloadManager: { + prototype: NavigationPreloadManager; + new(): NavigationPreloadManager; +}; + +/** Available only in secure contexts. */ +interface NavigatorBadge { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clearAppBadge) */ + clearAppBadge(): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/setAppBadge) */ + setAppBadge(contents?: number): Promise<void>; +} + +interface NavigatorConcurrentHardware { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/hardwareConcurrency) */ + readonly hardwareConcurrency: number; +} + +interface NavigatorID { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) + */ + readonly appCodeName: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName) + */ + readonly appName: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion) + */ + readonly appVersion: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform) + */ + readonly platform: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product) + */ + readonly product: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */ + readonly userAgent: string; +} + +interface NavigatorLanguage { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/language) */ + readonly language: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/languages) */ + readonly languages: ReadonlyArray<string>; +} + +/** Available only in secure contexts. */ +interface NavigatorLocks { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/locks) */ + readonly locks: LockManager; +} + +interface NavigatorOnLine { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/onLine) */ + readonly onLine: boolean; +} + +/** Available only in secure contexts. */ +interface NavigatorStorage { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/storage) */ + readonly storage: StorageManager; +} + +interface NotificationEventMap { + "click": Event; + "close": Event; + "error": Event; + "show": Event; +} + +/** + * This Notifications API interface is used to configure and display desktop notifications to the user. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification) + */ +interface Notification extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge) */ + readonly badge: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body) */ + readonly body: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data) */ + readonly data: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/dir) */ + readonly dir: NotificationDirection; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/icon) */ + readonly icon: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/lang) */ + readonly lang: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/click_event) */ + onclick: ((this: Notification, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close_event) */ + onclose: ((this: Notification, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/error_event) */ + onerror: ((this: Notification, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */ + onshow: ((this: Notification, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */ + readonly requireInteraction: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */ + readonly silent: boolean | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */ + readonly tag: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) */ + readonly title: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close) */ + close(): void; + addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var Notification: { + prototype: Notification; + new(title: string, options?: NotificationOptions): Notification; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static) */ + readonly permission: NotificationPermission; +}; + +/** + * The parameter passed into the onnotificationclick handler, the NotificationEvent interface represents a notification click event that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent) + */ +interface NotificationEvent extends ExtendableEvent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/action) */ + readonly action: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/notification) */ + readonly notification: Notification; +} + +declare var NotificationEvent: { + prototype: NotificationEvent; + new(type: string, eventInitDict: NotificationEventInit): NotificationEvent; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed) */ +interface OES_draw_buffers_indexed { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationSeparateiOES) */ + blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES) */ + blendEquationiOES(buf: GLuint, mode: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFuncSeparateiOES) */ + blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES) */ + blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/colorMaskiOES) */ + colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES) */ + disableiOES(target: GLenum, index: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/enableiOES) */ + enableiOES(target: GLenum, index: GLuint): void; +} + +/** + * The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_element_index_uint) + */ +interface OES_element_index_uint { +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_fbo_render_mipmap) */ +interface OES_fbo_render_mipmap { +} + +/** + * The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_standard_derivatives) + */ +interface OES_standard_derivatives { + readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B; +} + +/** + * The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float) + */ +interface OES_texture_float { +} + +/** + * The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float_linear) + */ +interface OES_texture_float_linear { +} + +/** + * The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float) + */ +interface OES_texture_half_float { + readonly HALF_FLOAT_OES: 0x8D61; +} + +/** + * The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float_linear) + */ +interface OES_texture_half_float_linear { +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object) */ +interface OES_vertex_array_object { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES) */ + bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES) */ + createVertexArrayOES(): WebGLVertexArrayObjectOES | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES) */ + deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES) */ + isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean; + readonly VERTEX_ARRAY_BINDING_OES: 0x85B5; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2) */ +interface OVR_multiview2 { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2/framebufferTextureMultiviewOVR) */ + framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632; + readonly MAX_VIEWS_OVR: 0x9631; + readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633; +} + +interface OffscreenCanvasEventMap { + "contextlost": Event; + "contextrestored": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas) */ +interface OffscreenCanvas extends EventTarget { + /** + * These attributes return the dimensions of the OffscreenCanvas object's bitmap. + * + * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height) + */ + height: number; + oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null; + oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null; + /** + * These attributes return the dimensions of the OffscreenCanvas object's bitmap. + * + * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/width) + */ + width: number; + /** + * Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object. + * + * The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob) + */ + convertToBlob(options?: ImageEncodeOptions): Promise<Blob>; + /** + * Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API. + * + * This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL] + * + * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext) + */ + getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null; + getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null; + getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null; + getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; + getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; + /** + * Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) + */ + transferToImageBitmap(): ImageBitmap; + addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var OffscreenCanvas: { + prototype: OffscreenCanvas; + new(width: number, height: number): OffscreenCanvas; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */ +interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform { + readonly canvas: OffscreenCanvas; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */ + commit(): void; +} + +declare var OffscreenCanvasRenderingContext2D: { + prototype: OffscreenCanvasRenderingContext2D; + new(): OffscreenCanvasRenderingContext2D; +}; + +/** + * This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D) + */ +interface Path2D extends CanvasPath { + /** + * Adds to the path the path given by the argument. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D/addPath) + */ + addPath(path: Path2D, transform?: DOMMatrix2DInit): void; +} + +declare var Path2D: { + prototype: Path2D; + new(path?: Path2D | string): Path2D; +}; + +interface PerformanceEventMap { + "resourcetimingbufferfull": Event; +} + +/** + * Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance) + */ +interface Performance extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/resourcetimingbufferfull_event) */ + onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timeOrigin) */ + readonly timeOrigin: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMarks) */ + clearMarks(markName?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMeasures) */ + clearMeasures(measureName?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings) */ + clearResourceTimings(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntries) */ + getEntries(): PerformanceEntryList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */ + getEntriesByName(name: string, type?: string): PerformanceEntryList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */ + getEntriesByType(type: string): PerformanceEntryList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/mark) */ + mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/measure) */ + measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/now) */ + now(): DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize) */ + setResourceTimingBufferSize(maxSize: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */ + toJSON(): any; + addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var Performance: { + prototype: Performance; + new(): Performance; +}; + +/** + * Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry) + */ +interface PerformanceEntry { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration) */ + readonly duration: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/entryType) */ + readonly entryType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime) */ + readonly startTime: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */ + toJSON(): any; +} + +declare var PerformanceEntry: { + prototype: PerformanceEntry; + new(): PerformanceEntry; +}; + +/** + * PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark) + */ +interface PerformanceMark extends PerformanceEntry { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark/detail) */ + readonly detail: any; +} + +declare var PerformanceMark: { + prototype: PerformanceMark; + new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark; +}; + +/** + * PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure) + */ +interface PerformanceMeasure extends PerformanceEntry { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure/detail) */ + readonly detail: any; +} + +declare var PerformanceMeasure: { + prototype: PerformanceMeasure; + new(): PerformanceMeasure; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver) */ +interface PerformanceObserver { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect) */ + disconnect(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe) */ + observe(options?: PerformanceObserverInit): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/takeRecords) */ + takeRecords(): PerformanceEntryList; +} + +declare var PerformanceObserver: { + prototype: PerformanceObserver; + new(callback: PerformanceObserverCallback): PerformanceObserver; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static) */ + readonly supportedEntryTypes: ReadonlyArray<string>; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList) */ +interface PerformanceObserverEntryList { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries) */ + getEntries(): PerformanceEntryList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */ + getEntriesByName(name: string, type?: string): PerformanceEntryList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */ + getEntriesByType(type: string): PerformanceEntryList; +} + +declare var PerformanceObserverEntryList: { + prototype: PerformanceObserverEntryList; + new(): PerformanceObserverEntryList; +}; + +/** + * Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming) + */ +interface PerformanceResourceTiming extends PerformanceEntry { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd) */ + readonly connectEnd: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ + readonly connectStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */ + readonly decodedBodySize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd) */ + readonly domainLookupEnd: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart) */ + readonly domainLookupStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize) */ + readonly encodedBodySize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */ + readonly fetchStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/initiatorType) */ + readonly initiatorType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/nextHopProtocol) */ + readonly nextHopProtocol: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd) */ + readonly redirectEnd: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart) */ + readonly redirectStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart) */ + readonly requestStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd) */ + readonly responseEnd: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart) */ + readonly responseStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart) */ + readonly secureConnectionStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming) */ + readonly serverTiming: ReadonlyArray<PerformanceServerTiming>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ + readonly transferSize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart) */ + readonly workerStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */ + toJSON(): any; +} + +declare var PerformanceResourceTiming: { + prototype: PerformanceResourceTiming; + new(): PerformanceResourceTiming; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming) */ +interface PerformanceServerTiming { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/description) */ + readonly description: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration) */ + readonly duration: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */ + toJSON(): any; +} + +declare var PerformanceServerTiming: { + prototype: PerformanceServerTiming; + new(): PerformanceServerTiming; +}; + +interface PermissionStatusEventMap { + "change": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus) */ +interface PermissionStatus extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/change_event) */ + onchange: ((this: PermissionStatus, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/state) */ + readonly state: PermissionState; + addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var PermissionStatus: { + prototype: PermissionStatus; + new(): PermissionStatus; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions) */ +interface Permissions { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions/query) */ + query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>; +} + +declare var Permissions: { + prototype: Permissions; + new(): Permissions; +}; + +/** + * Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent) + */ +interface ProgressEvent<T extends EventTarget = EventTarget> extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/lengthComputable) */ + readonly lengthComputable: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */ + readonly loaded: number; + readonly target: T | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */ + readonly total: number; +} + +declare var ProgressEvent: { + prototype: ProgressEvent; + new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent) */ +interface PromiseRejectionEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise) */ + readonly promise: Promise<any>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) */ + readonly reason: any; +} + +declare var PromiseRejectionEvent: { + prototype: PromiseRejectionEvent; + new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent; +}; + +/** + * This Push API interface represents a push message that has been received. This event is sent to the global scope of a ServiceWorker. It contains the information sent from an application server to a PushSubscription. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent) + */ +interface PushEvent extends ExtendableEvent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent/data) */ + readonly data: PushMessageData | null; +} + +declare var PushEvent: { + prototype: PushEvent; + new(type: string, eventInitDict?: PushEventInit): PushEvent; +}; + +/** + * This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager) + */ +interface PushManager { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/getSubscription) */ + getSubscription(): Promise<PushSubscription | null>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/permissionState) */ + permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/subscribe) */ + subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>; +} + +declare var PushManager: { + prototype: PushManager; + new(): PushManager; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static) */ + readonly supportedContentEncodings: ReadonlyArray<string>; +}; + +/** + * This Push API interface provides methods which let you retrieve the push data sent by a server in various formats. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData) + */ +interface PushMessageData { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/arrayBuffer) */ + arrayBuffer(): ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/blob) */ + blob(): Blob; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/json) */ + json(): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/text) */ + text(): string; +} + +declare var PushMessageData: { + prototype: PushMessageData; + new(): PushMessageData; +}; + +/** + * This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription) + */ +interface PushSubscription { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/endpoint) */ + readonly endpoint: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/expirationTime) */ + readonly expirationTime: EpochTimeStamp | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/options) */ + readonly options: PushSubscriptionOptions; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey) */ + getKey(name: PushEncryptionKeyName): ArrayBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/toJSON) */ + toJSON(): PushSubscriptionJSON; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/unsubscribe) */ + unsubscribe(): Promise<boolean>; +} + +declare var PushSubscription: { + prototype: PushSubscription; + new(): PushSubscription; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions) + */ +interface PushSubscriptionOptions { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/applicationServerKey) */ + readonly applicationServerKey: ArrayBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/userVisibleOnly) */ + readonly userVisibleOnly: boolean; +} + +declare var PushSubscriptionOptions: { + prototype: PushSubscriptionOptions; + new(): PushSubscriptionOptions; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame) */ +interface RTCEncodedAudioFrame { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data) */ + data: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) */ + readonly timestamp: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata) */ + getMetadata(): RTCEncodedAudioFrameMetadata; +} + +declare var RTCEncodedAudioFrame: { + prototype: RTCEncodedAudioFrame; + new(): RTCEncodedAudioFrame; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame) */ +interface RTCEncodedVideoFrame { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data) */ + data: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp) */ + readonly timestamp: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */ + readonly type: RTCEncodedVideoFrameType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata) */ + getMetadata(): RTCEncodedVideoFrameMetadata; +} + +declare var RTCEncodedVideoFrame: { + prototype: RTCEncodedVideoFrame; + new(): RTCEncodedVideoFrame; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer) */ +interface RTCRtpScriptTransformer extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/options) */ + readonly options: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/readable) */ + readonly readable: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/writable) */ + readonly writable: WritableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/generateKeyFrame) */ + generateKeyFrame(rid?: string): Promise<number>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/sendKeyFrameRequest) */ + sendKeyFrameRequest(): Promise<void>; +} + +declare var RTCRtpScriptTransformer: { + prototype: RTCRtpScriptTransformer; + new(): RTCRtpScriptTransformer; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent) */ +interface RTCTransformEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent/transformer) */ + readonly transformer: RTCRtpScriptTransformer; +} + +declare var RTCTransformEvent: { + prototype: RTCTransformEvent; + new(): RTCTransformEvent; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) */ +interface ReadableByteStreamController { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */ + readonly byobRequest: ReadableStreamBYOBRequest | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) */ + readonly desiredSize: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue) */ + enqueue(chunk: ArrayBufferView): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error) */ + error(e?: any): void; +} + +declare var ReadableByteStreamController: { + prototype: ReadableByteStreamController; + new(): ReadableByteStreamController; +}; + +/** + * This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream) + */ +interface ReadableStream<R = any> { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) */ + readonly locked: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) */ + cancel(reason?: any): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) */ + getReader(options: { mode: "byob" }): ReadableStreamBYOBReader; + getReader(): ReadableStreamDefaultReader<R>; + getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) */ + pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) */ + pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) */ + tee(): [ReadableStream<R>, ReadableStream<R>]; +} + +declare var ReadableStream: { + prototype: ReadableStream; + new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>; + new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>; + new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */ +interface ReadableStreamBYOBReader extends ReadableStreamGenericReader { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */ + read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */ + releaseLock(): void; +} + +declare var ReadableStreamBYOBReader: { + prototype: ReadableStreamBYOBReader; + new(stream: ReadableStream): ReadableStreamBYOBReader; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */ +interface ReadableStreamBYOBRequest { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */ + readonly view: ArrayBufferView | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */ + respond(bytesWritten: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */ + respondWithNewView(view: ArrayBufferView): void; +} + +declare var ReadableStreamBYOBRequest: { + prototype: ReadableStreamBYOBRequest; + new(): ReadableStreamBYOBRequest; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController) */ +interface ReadableStreamDefaultController<R = any> { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) */ + readonly desiredSize: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) */ + enqueue(chunk?: R): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error) */ + error(e?: any): void; +} + +declare var ReadableStreamDefaultController: { + prototype: ReadableStreamDefaultController; + new(): ReadableStreamDefaultController; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader) */ +interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) */ + read(): Promise<ReadableStreamReadResult<R>>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock) */ + releaseLock(): void; +} + +declare var ReadableStreamDefaultReader: { + prototype: ReadableStreamDefaultReader; + new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>; +}; + +interface ReadableStreamGenericReader { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) */ + readonly closed: Promise<undefined>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */ + cancel(reason?: any): Promise<void>; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) */ +interface Report { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) */ + readonly body: ReportBody | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) */ + readonly type: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) */ + readonly url: string; + toJSON(): any; +} + +declare var Report: { + prototype: Report; + new(): Report; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) */ +interface ReportBody { + toJSON(): any; +} + +declare var ReportBody: { + prototype: ReportBody; + new(): ReportBody; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver) */ +interface ReportingObserver { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/disconnect) */ + disconnect(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/observe) */ + observe(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/takeRecords) */ + takeRecords(): ReportList; +} + +declare var ReportingObserver: { + prototype: ReportingObserver; + new(callback: ReportingObserverCallback, options?: ReportingObserverOptions): ReportingObserver; +}; + +/** + * This Fetch API interface represents a resource request. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request) + */ +interface Request extends Body { + /** + * Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache) + */ + readonly cache: RequestCache; + /** + * Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/credentials) + */ + readonly credentials: RequestCredentials; + /** + * Returns the kind of resource requested by request, e.g., "document" or "script". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/destination) + */ + readonly destination: RequestDestination; + /** + * Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers) + */ + readonly headers: Headers; + /** + * Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity) + */ + readonly integrity: string; + /** + * Returns a boolean indicating whether or not request can outlive the global in which it was created. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive) + */ + readonly keepalive: boolean; + /** + * Returns request's HTTP method, which is "GET" by default. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method) + */ + readonly method: string; + /** + * Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/mode) + */ + readonly mode: RequestMode; + /** + * Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect) + */ + readonly redirect: RequestRedirect; + /** + * Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the \`Referer\` header of the request being made. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrer) + */ + readonly referrer: string; + /** + * Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy) + */ + readonly referrerPolicy: ReferrerPolicy; + /** + * Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal) + */ + readonly signal: AbortSignal; + /** + * Returns the URL of request as a string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url) + */ + readonly url: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone) */ + clone(): Request; +} + +declare var Request: { + prototype: Request; + new(input: RequestInfo | URL, init?: RequestInit): Request; +}; + +/** + * This Fetch API interface represents the response to a request. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response) + */ +interface Response extends Body { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers) */ + readonly headers: Headers; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok) */ + readonly ok: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected) */ + readonly redirected: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status) */ + readonly status: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText) */ + readonly statusText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type) */ + readonly type: ResponseType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url) */ + readonly url: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone) */ + clone(): Response; +} + +declare var Response: { + prototype: Response; + new(body?: BodyInit | null, init?: ResponseInit): Response; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */ + error(): Response; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static) */ + json(data: any, init?: ResponseInit): Response; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */ + redirect(url: string | URL, status?: number): Response; +}; + +/** + * Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent) + */ +interface SecurityPolicyViolationEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/blockedURI) */ + readonly blockedURI: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ + readonly columnNumber: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/disposition) */ + readonly disposition: SecurityPolicyViolationEventDisposition; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/documentURI) */ + readonly documentURI: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective) */ + readonly effectiveDirective: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/lineNumber) */ + readonly lineNumber: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy) */ + readonly originalPolicy: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/referrer) */ + readonly referrer: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sample) */ + readonly sample: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sourceFile) */ + readonly sourceFile: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/statusCode) */ + readonly statusCode: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective) */ + readonly violatedDirective: string; +} + +declare var SecurityPolicyViolationEvent: { + prototype: SecurityPolicyViolationEvent; + new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent; +}; + +interface ServiceWorkerEventMap extends AbstractWorkerEventMap { + "statechange": Event; +} + +/** + * This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker) + */ +interface ServiceWorker extends EventTarget, AbstractWorker { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/statechange_event) */ + onstatechange: ((this: ServiceWorker, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL) */ + readonly scriptURL: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/state) */ + readonly state: ServiceWorkerState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/postMessage) */ + postMessage(message: any, transfer: Transferable[]): void; + postMessage(message: any, options?: StructuredSerializeOptions): void; + addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var ServiceWorker: { + prototype: ServiceWorker; + new(): ServiceWorker; +}; + +interface ServiceWorkerContainerEventMap { + "controllerchange": Event; + "message": MessageEvent; + "messageerror": MessageEvent; +} + +/** + * The ServiceWorkerContainer interface of the ServiceWorker API provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer) + */ +interface ServiceWorkerContainer extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */ + readonly controller: ServiceWorker | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controllerchange_event) */ + oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */ + onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */ + onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */ + readonly ready: Promise<ServiceWorkerRegistration>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration) */ + getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations) */ + getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register) */ + register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/startMessages) */ + startMessages(): void; + addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var ServiceWorkerContainer: { + prototype: ServiceWorkerContainer; + new(): ServiceWorkerContainer; +}; + +interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { + "activate": ExtendableEvent; + "fetch": FetchEvent; + "install": ExtendableEvent; + "message": ExtendableMessageEvent; + "messageerror": MessageEvent; + "notificationclick": NotificationEvent; + "notificationclose": NotificationEvent; + "push": PushEvent; + "pushsubscriptionchange": Event; +} + +/** + * This ServiceWorker API interface represents the global execution context of a service worker. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope) + */ +interface ServiceWorkerGlobalScope extends WorkerGlobalScope { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/clients) */ + readonly clients: Clients; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */ + onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */ + onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */ + oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */ + onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */ + onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */ + onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */ + onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/push_event) */ + onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/pushsubscriptionchange_event) */ + onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/registration) */ + readonly registration: ServiceWorkerRegistration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/serviceWorker) */ + readonly serviceWorker: ServiceWorker; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting) */ + skipWaiting(): Promise<void>; + addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var ServiceWorkerGlobalScope: { + prototype: ServiceWorkerGlobalScope; + new(): ServiceWorkerGlobalScope; +}; + +interface ServiceWorkerRegistrationEventMap { + "updatefound": Event; +} + +/** + * This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration) + */ +interface ServiceWorkerRegistration extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) */ + readonly active: ServiceWorker | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing) */ + readonly installing: ServiceWorker | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/navigationPreload) */ + readonly navigationPreload: NavigationPreloadManager; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */ + onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */ + readonly pushManager: PushManager; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/scope) */ + readonly scope: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache) */ + readonly updateViaCache: ServiceWorkerUpdateViaCache; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/waiting) */ + readonly waiting: ServiceWorker | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications) */ + getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/showNotification) */ + showNotification(title: string, options?: NotificationOptions): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister) */ + unregister(): Promise<boolean>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update) */ + update(): Promise<void>; + addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var ServiceWorkerRegistration: { + prototype: ServiceWorkerRegistration; + new(): ServiceWorkerRegistration; +}; + +interface SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { + "connect": MessageEvent; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope) */ +interface SharedWorkerGlobalScope extends WorkerGlobalScope { + /** + * Returns sharedWorkerGlobal's name, i.e. the value given to the SharedWorker constructor. Multiple SharedWorker objects can correspond to the same shared worker (and SharedWorkerGlobalScope), by reusing the same name. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/name) + */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/connect_event) */ + onconnect: ((this: SharedWorkerGlobalScope, ev: MessageEvent) => any) | null; + /** + * Aborts sharedWorkerGlobal. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/close) + */ + close(): void; + addEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SharedWorkerGlobalScope: { + prototype: SharedWorkerGlobalScope; + new(): SharedWorkerGlobalScope; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager) + */ +interface StorageManager { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate) */ + estimate(): Promise<StorageEstimate>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/getDirectory) */ + getDirectory(): Promise<FileSystemDirectoryHandle>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted) */ + persisted(): Promise<boolean>; +} + +declare var StorageManager: { + prototype: StorageManager; + new(): StorageManager; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly) */ +interface StylePropertyMapReadOnly { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size) */ + readonly size: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get) */ + get(property: string): undefined | CSSStyleValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll) */ + getAll(property: string): CSSStyleValue[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has) */ + has(property: string): boolean; + forEach(callbackfn: (value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void, thisArg?: any): void; +} + +declare var StylePropertyMapReadOnly: { + prototype: StylePropertyMapReadOnly; + new(): StylePropertyMapReadOnly; +}; + +/** + * This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto). + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto) + */ +interface SubtleCrypto { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) */ + decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) */ + deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */ + deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) */ + digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt) */ + encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey) */ + exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>; + exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>; + exportKey(format: KeyFormat, key: CryptoKey): Promise<ArrayBuffer | JsonWebKey>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */ + generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>; + generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>; + generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>; + generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */ + importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>; + importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign) */ + sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */ + unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify) */ + verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey) */ + wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>; +} + +declare var SubtleCrypto: { + prototype: SubtleCrypto; + new(): SubtleCrypto; +}; + +/** + * A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc. A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder) + */ +interface TextDecoder extends TextDecoderCommon { + /** + * Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments. + * + * \`\`\` + * var string = "", decoder = new TextDecoder(encoding), buffer; + * while(buffer = next_chunk()) { + * string += decoder.decode(buffer, {stream:true}); + * } + * string += decoder.decode(); // end-of-queue + * \`\`\` + * + * If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode) + */ + decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string; +} + +declare var TextDecoder: { + prototype: TextDecoder; + new(label?: string, options?: TextDecoderOptions): TextDecoder; +}; + +interface TextDecoderCommon { + /** + * Returns encoding's name, lowercased. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/encoding) + */ + readonly encoding: string; + /** + * Returns true if error mode is "fatal", otherwise false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/fatal) + */ + readonly fatal: boolean; + /** + * Returns the value of ignore BOM. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/ignoreBOM) + */ + readonly ignoreBOM: boolean; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream) */ +interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon { + readonly readable: ReadableStream<string>; + readonly writable: WritableStream<BufferSource>; +} + +declare var TextDecoderStream: { + prototype: TextDecoderStream; + new(label?: string, options?: TextDecoderOptions): TextDecoderStream; +}; + +/** + * TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder) + */ +interface TextEncoder extends TextEncoderCommon { + /** + * Returns the result of running UTF-8's encoder. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode) + */ + encode(input?: string): Uint8Array; + /** + * Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto) + */ + encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult; +} + +declare var TextEncoder: { + prototype: TextEncoder; + new(): TextEncoder; +}; + +interface TextEncoderCommon { + /** + * Returns "utf-8". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encoding) + */ + readonly encoding: string; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream) */ +interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon { + readonly readable: ReadableStream<Uint8Array>; + readonly writable: WritableStream<string>; +} + +declare var TextEncoderStream: { + prototype: TextEncoderStream; + new(): TextEncoderStream; +}; + +/** + * The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics) + */ +interface TextMetrics { + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxAscent) + */ + readonly actualBoundingBoxAscent: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxDescent) + */ + readonly actualBoundingBoxDescent: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxLeft) + */ + readonly actualBoundingBoxLeft: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight) + */ + readonly actualBoundingBoxRight: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline) + */ + readonly alphabeticBaseline: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent) + */ + readonly emHeightAscent: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent) + */ + readonly emHeightDescent: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxAscent) + */ + readonly fontBoundingBoxAscent: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent) + */ + readonly fontBoundingBoxDescent: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline) + */ + readonly hangingBaseline: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline) + */ + readonly ideographicBaseline: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/width) + */ + readonly width: number; +} + +declare var TextMetrics: { + prototype: TextMetrics; + new(): TextMetrics; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream) */ +interface TransformStream<I = any, O = any> { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) */ + readonly readable: ReadableStream<O>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable) */ + readonly writable: WritableStream<I>; +} + +declare var TransformStream: { + prototype: TransformStream; + new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */ +interface TransformStreamDefaultController<O = any> { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */ + readonly desiredSize: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */ + enqueue(chunk?: O): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error) */ + error(reason?: any): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) */ + terminate(): void; +} + +declare var TransformStreamDefaultController: { + prototype: TransformStreamDefaultController; + new(): TransformStreamDefaultController; +}; + +/** + * The URL interface represents an object providing static methods used for creating object URLs. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL) + */ +interface URL { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) */ + hash: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) */ + host: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) */ + hostname: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) */ + href: string; + toString(): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin) */ + readonly origin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) */ + password: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) */ + pathname: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) */ + port: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) */ + protocol: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) */ + search: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams) */ + readonly searchParams: URLSearchParams; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) */ + username: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON) */ + toJSON(): string; +} + +declare var URL: { + prototype: URL; + new(url: string | URL, base?: string | URL): URL; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */ + canParse(url: string | URL, base?: string): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */ + createObjectURL(obj: Blob): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */ + revokeObjectURL(url: string): void; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */ +interface URLSearchParams { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) */ + readonly size: number; + /** + * Appends a specified key/value pair as a new search parameter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append) + */ + append(name: string, value: string): void; + /** + * Deletes the given search parameter, and its associated value, from the list of all search parameters. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete) + */ + delete(name: string, value?: string): void; + /** + * Returns the first value associated to the given search parameter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get) + */ + get(name: string): string | null; + /** + * Returns all the values association with a given search parameter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll) + */ + getAll(name: string): string[]; + /** + * Returns a Boolean indicating if such a search parameter exists. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has) + */ + has(name: string, value?: string): boolean; + /** + * Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set) + */ + set(name: string, value: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) */ + sort(): void; + /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */ + toString(): string; + forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void; +} + +declare var URLSearchParams: { + prototype: URLSearchParams; + new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace) */ +interface VideoColorSpace { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/fullRange) */ + readonly fullRange: boolean | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/matrix) */ + readonly matrix: VideoMatrixCoefficients | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/primaries) */ + readonly primaries: VideoColorPrimaries | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/transfer) */ + readonly transfer: VideoTransferCharacteristics | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/toJSON) */ + toJSON(): VideoColorSpaceInit; +} + +declare var VideoColorSpace: { + prototype: VideoColorSpace; + new(init?: VideoColorSpaceInit): VideoColorSpace; +}; + +interface VideoDecoderEventMap { + "dequeue": Event; +} + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder) + */ +interface VideoDecoder extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize) */ + readonly decodeQueueSize: number; + ondequeue: ((this: VideoDecoder, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state) */ + readonly state: CodecState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/configure) */ + configure(config: VideoDecoderConfig): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decode) */ + decode(chunk: EncodedVideoChunk): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/flush) */ + flush(): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/reset) */ + reset(): void; + addEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var VideoDecoder: { + prototype: VideoDecoder; + new(init: VideoDecoderInit): VideoDecoder; + isConfigSupported(config: VideoDecoderConfig): Promise<VideoDecoderSupport>; +}; + +interface VideoEncoderEventMap { + "dequeue": Event; +} + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder) + */ +interface VideoEncoder extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize) */ + readonly encodeQueueSize: number; + ondequeue: ((this: VideoEncoder, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state) */ + readonly state: CodecState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/configure) */ + configure(config: VideoEncoderConfig): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode) */ + encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void; + flush(): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset) */ + reset(): void; + addEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var VideoEncoder: { + prototype: VideoEncoder; + new(init: VideoEncoderInit): VideoEncoder; + isConfigSupported(config: VideoEncoderConfig): Promise<VideoEncoderSupport>; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame) */ +interface VideoFrame { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedHeight) */ + readonly codedHeight: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedRect) */ + readonly codedRect: DOMRectReadOnly | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedWidth) */ + readonly codedWidth: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/colorSpace) */ + readonly colorSpace: VideoColorSpace; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayHeight) */ + readonly displayHeight: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayWidth) */ + readonly displayWidth: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/duration) */ + readonly duration: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/format) */ + readonly format: VideoPixelFormat | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/timestamp) */ + readonly timestamp: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/visibleRect) */ + readonly visibleRect: DOMRectReadOnly | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/allocationSize) */ + allocationSize(options?: VideoFrameCopyToOptions): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/clone) */ + clone(): VideoFrame; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) */ + close(): void; + copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>; +} + +declare var VideoFrame: { + prototype: VideoFrame; + new(image: CanvasImageSource, init?: VideoFrameInit): VideoFrame; + new(data: AllowSharedBufferSource, init: VideoFrameBufferInit): VideoFrame; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_color_buffer_float) */ +interface WEBGL_color_buffer_float { + readonly RGBA32F_EXT: 0x8814; + readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211; + readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc) */ +interface WEBGL_compressed_texture_astc { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles) */ + getSupportedProfiles(): string[]; + readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0; + readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1; + readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2; + readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3; + readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4; + readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5; + readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6; + readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7; + readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8; + readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9; + readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA; + readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB; + readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC; + readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc) */ +interface WEBGL_compressed_texture_etc { + readonly COMPRESSED_R11_EAC: 0x9270; + readonly COMPRESSED_SIGNED_R11_EAC: 0x9271; + readonly COMPRESSED_RG11_EAC: 0x9272; + readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273; + readonly COMPRESSED_RGB8_ETC2: 0x9274; + readonly COMPRESSED_SRGB8_ETC2: 0x9275; + readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276; + readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277; + readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278; + readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc1) */ +interface WEBGL_compressed_texture_etc1 { + readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_pvrtc) */ +interface WEBGL_compressed_texture_pvrtc { + readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: 0x8C00; + readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: 0x8C01; + readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: 0x8C02; + readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: 0x8C03; +} + +/** + * The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc) + */ +interface WEBGL_compressed_texture_s3tc { + readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0; + readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1; + readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2; + readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb) */ +interface WEBGL_compressed_texture_s3tc_srgb { + readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C; + readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D; + readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E; + readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F; +} + +/** + * The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_renderer_info) + */ +interface WEBGL_debug_renderer_info { + readonly UNMASKED_VENDOR_WEBGL: 0x9245; + readonly UNMASKED_RENDERER_WEBGL: 0x9246; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders) */ +interface WEBGL_debug_shaders { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource) */ + getTranslatedShaderSource(shader: WebGLShader): string; +} + +/** + * The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_depth_texture) + */ +interface WEBGL_depth_texture { + readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers) */ +interface WEBGL_draw_buffers { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */ + drawBuffersWEBGL(buffers: GLenum[]): void; + readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0; + readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1; + readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2; + readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3; + readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4; + readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5; + readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6; + readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7; + readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8; + readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9; + readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA; + readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB; + readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC; + readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED; + readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE; + readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF; + readonly DRAW_BUFFER0_WEBGL: 0x8825; + readonly DRAW_BUFFER1_WEBGL: 0x8826; + readonly DRAW_BUFFER2_WEBGL: 0x8827; + readonly DRAW_BUFFER3_WEBGL: 0x8828; + readonly DRAW_BUFFER4_WEBGL: 0x8829; + readonly DRAW_BUFFER5_WEBGL: 0x882A; + readonly DRAW_BUFFER6_WEBGL: 0x882B; + readonly DRAW_BUFFER7_WEBGL: 0x882C; + readonly DRAW_BUFFER8_WEBGL: 0x882D; + readonly DRAW_BUFFER9_WEBGL: 0x882E; + readonly DRAW_BUFFER10_WEBGL: 0x882F; + readonly DRAW_BUFFER11_WEBGL: 0x8830; + readonly DRAW_BUFFER12_WEBGL: 0x8831; + readonly DRAW_BUFFER13_WEBGL: 0x8832; + readonly DRAW_BUFFER14_WEBGL: 0x8833; + readonly DRAW_BUFFER15_WEBGL: 0x8834; + readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF; + readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context) */ +interface WEBGL_lose_context { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */ + loseContext(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */ + restoreContext(): void; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw) */ +interface WEBGL_multi_draw { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */ + multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */ + multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, drawcount: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */ + multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */ + multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext) */ +interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase { +} + +declare var WebGL2RenderingContext: { + prototype: WebGL2RenderingContext; + new(): WebGL2RenderingContext; + readonly READ_BUFFER: 0x0C02; + readonly UNPACK_ROW_LENGTH: 0x0CF2; + readonly UNPACK_SKIP_ROWS: 0x0CF3; + readonly UNPACK_SKIP_PIXELS: 0x0CF4; + readonly PACK_ROW_LENGTH: 0x0D02; + readonly PACK_SKIP_ROWS: 0x0D03; + readonly PACK_SKIP_PIXELS: 0x0D04; + readonly COLOR: 0x1800; + readonly DEPTH: 0x1801; + readonly STENCIL: 0x1802; + readonly RED: 0x1903; + readonly RGB8: 0x8051; + readonly RGB10_A2: 0x8059; + readonly TEXTURE_BINDING_3D: 0x806A; + readonly UNPACK_SKIP_IMAGES: 0x806D; + readonly UNPACK_IMAGE_HEIGHT: 0x806E; + readonly TEXTURE_3D: 0x806F; + readonly TEXTURE_WRAP_R: 0x8072; + readonly MAX_3D_TEXTURE_SIZE: 0x8073; + readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368; + readonly MAX_ELEMENTS_VERTICES: 0x80E8; + readonly MAX_ELEMENTS_INDICES: 0x80E9; + readonly TEXTURE_MIN_LOD: 0x813A; + readonly TEXTURE_MAX_LOD: 0x813B; + readonly TEXTURE_BASE_LEVEL: 0x813C; + readonly TEXTURE_MAX_LEVEL: 0x813D; + readonly MIN: 0x8007; + readonly MAX: 0x8008; + readonly DEPTH_COMPONENT24: 0x81A6; + readonly MAX_TEXTURE_LOD_BIAS: 0x84FD; + readonly TEXTURE_COMPARE_MODE: 0x884C; + readonly TEXTURE_COMPARE_FUNC: 0x884D; + readonly CURRENT_QUERY: 0x8865; + readonly QUERY_RESULT: 0x8866; + readonly QUERY_RESULT_AVAILABLE: 0x8867; + readonly STREAM_READ: 0x88E1; + readonly STREAM_COPY: 0x88E2; + readonly STATIC_READ: 0x88E5; + readonly STATIC_COPY: 0x88E6; + readonly DYNAMIC_READ: 0x88E9; + readonly DYNAMIC_COPY: 0x88EA; + readonly MAX_DRAW_BUFFERS: 0x8824; + readonly DRAW_BUFFER0: 0x8825; + readonly DRAW_BUFFER1: 0x8826; + readonly DRAW_BUFFER2: 0x8827; + readonly DRAW_BUFFER3: 0x8828; + readonly DRAW_BUFFER4: 0x8829; + readonly DRAW_BUFFER5: 0x882A; + readonly DRAW_BUFFER6: 0x882B; + readonly DRAW_BUFFER7: 0x882C; + readonly DRAW_BUFFER8: 0x882D; + readonly DRAW_BUFFER9: 0x882E; + readonly DRAW_BUFFER10: 0x882F; + readonly DRAW_BUFFER11: 0x8830; + readonly DRAW_BUFFER12: 0x8831; + readonly DRAW_BUFFER13: 0x8832; + readonly DRAW_BUFFER14: 0x8833; + readonly DRAW_BUFFER15: 0x8834; + readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49; + readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A; + readonly SAMPLER_3D: 0x8B5F; + readonly SAMPLER_2D_SHADOW: 0x8B62; + readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B; + readonly PIXEL_PACK_BUFFER: 0x88EB; + readonly PIXEL_UNPACK_BUFFER: 0x88EC; + readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED; + readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF; + readonly FLOAT_MAT2x3: 0x8B65; + readonly FLOAT_MAT2x4: 0x8B66; + readonly FLOAT_MAT3x2: 0x8B67; + readonly FLOAT_MAT3x4: 0x8B68; + readonly FLOAT_MAT4x2: 0x8B69; + readonly FLOAT_MAT4x3: 0x8B6A; + readonly SRGB: 0x8C40; + readonly SRGB8: 0x8C41; + readonly SRGB8_ALPHA8: 0x8C43; + readonly COMPARE_REF_TO_TEXTURE: 0x884E; + readonly RGBA32F: 0x8814; + readonly RGB32F: 0x8815; + readonly RGBA16F: 0x881A; + readonly RGB16F: 0x881B; + readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD; + readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF; + readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904; + readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905; + readonly MAX_VARYING_COMPONENTS: 0x8B4B; + readonly TEXTURE_2D_ARRAY: 0x8C1A; + readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D; + readonly R11F_G11F_B10F: 0x8C3A; + readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B; + readonly RGB9_E5: 0x8C3D; + readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E; + readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F; + readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80; + readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83; + readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84; + readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85; + readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88; + readonly RASTERIZER_DISCARD: 0x8C89; + readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A; + readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B; + readonly INTERLEAVED_ATTRIBS: 0x8C8C; + readonly SEPARATE_ATTRIBS: 0x8C8D; + readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E; + readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F; + readonly RGBA32UI: 0x8D70; + readonly RGB32UI: 0x8D71; + readonly RGBA16UI: 0x8D76; + readonly RGB16UI: 0x8D77; + readonly RGBA8UI: 0x8D7C; + readonly RGB8UI: 0x8D7D; + readonly RGBA32I: 0x8D82; + readonly RGB32I: 0x8D83; + readonly RGBA16I: 0x8D88; + readonly RGB16I: 0x8D89; + readonly RGBA8I: 0x8D8E; + readonly RGB8I: 0x8D8F; + readonly RED_INTEGER: 0x8D94; + readonly RGB_INTEGER: 0x8D98; + readonly RGBA_INTEGER: 0x8D99; + readonly SAMPLER_2D_ARRAY: 0x8DC1; + readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4; + readonly SAMPLER_CUBE_SHADOW: 0x8DC5; + readonly UNSIGNED_INT_VEC2: 0x8DC6; + readonly UNSIGNED_INT_VEC3: 0x8DC7; + readonly UNSIGNED_INT_VEC4: 0x8DC8; + readonly INT_SAMPLER_2D: 0x8DCA; + readonly INT_SAMPLER_3D: 0x8DCB; + readonly INT_SAMPLER_CUBE: 0x8DCC; + readonly INT_SAMPLER_2D_ARRAY: 0x8DCF; + readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2; + readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3; + readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4; + readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7; + readonly DEPTH_COMPONENT32F: 0x8CAC; + readonly DEPTH32F_STENCIL8: 0x8CAD; + readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD; + readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210; + readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211; + readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212; + readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213; + readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214; + readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215; + readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216; + readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217; + readonly FRAMEBUFFER_DEFAULT: 0x8218; + readonly UNSIGNED_INT_24_8: 0x84FA; + readonly DEPTH24_STENCIL8: 0x88F0; + readonly UNSIGNED_NORMALIZED: 0x8C17; + readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6; + readonly READ_FRAMEBUFFER: 0x8CA8; + readonly DRAW_FRAMEBUFFER: 0x8CA9; + readonly READ_FRAMEBUFFER_BINDING: 0x8CAA; + readonly RENDERBUFFER_SAMPLES: 0x8CAB; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4; + readonly MAX_COLOR_ATTACHMENTS: 0x8CDF; + readonly COLOR_ATTACHMENT1: 0x8CE1; + readonly COLOR_ATTACHMENT2: 0x8CE2; + readonly COLOR_ATTACHMENT3: 0x8CE3; + readonly COLOR_ATTACHMENT4: 0x8CE4; + readonly COLOR_ATTACHMENT5: 0x8CE5; + readonly COLOR_ATTACHMENT6: 0x8CE6; + readonly COLOR_ATTACHMENT7: 0x8CE7; + readonly COLOR_ATTACHMENT8: 0x8CE8; + readonly COLOR_ATTACHMENT9: 0x8CE9; + readonly COLOR_ATTACHMENT10: 0x8CEA; + readonly COLOR_ATTACHMENT11: 0x8CEB; + readonly COLOR_ATTACHMENT12: 0x8CEC; + readonly COLOR_ATTACHMENT13: 0x8CED; + readonly COLOR_ATTACHMENT14: 0x8CEE; + readonly COLOR_ATTACHMENT15: 0x8CEF; + readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56; + readonly MAX_SAMPLES: 0x8D57; + readonly HALF_FLOAT: 0x140B; + readonly RG: 0x8227; + readonly RG_INTEGER: 0x8228; + readonly R8: 0x8229; + readonly RG8: 0x822B; + readonly R16F: 0x822D; + readonly R32F: 0x822E; + readonly RG16F: 0x822F; + readonly RG32F: 0x8230; + readonly R8I: 0x8231; + readonly R8UI: 0x8232; + readonly R16I: 0x8233; + readonly R16UI: 0x8234; + readonly R32I: 0x8235; + readonly R32UI: 0x8236; + readonly RG8I: 0x8237; + readonly RG8UI: 0x8238; + readonly RG16I: 0x8239; + readonly RG16UI: 0x823A; + readonly RG32I: 0x823B; + readonly RG32UI: 0x823C; + readonly VERTEX_ARRAY_BINDING: 0x85B5; + readonly R8_SNORM: 0x8F94; + readonly RG8_SNORM: 0x8F95; + readonly RGB8_SNORM: 0x8F96; + readonly RGBA8_SNORM: 0x8F97; + readonly SIGNED_NORMALIZED: 0x8F9C; + readonly COPY_READ_BUFFER: 0x8F36; + readonly COPY_WRITE_BUFFER: 0x8F37; + readonly COPY_READ_BUFFER_BINDING: 0x8F36; + readonly COPY_WRITE_BUFFER_BINDING: 0x8F37; + readonly UNIFORM_BUFFER: 0x8A11; + readonly UNIFORM_BUFFER_BINDING: 0x8A28; + readonly UNIFORM_BUFFER_START: 0x8A29; + readonly UNIFORM_BUFFER_SIZE: 0x8A2A; + readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B; + readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D; + readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E; + readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F; + readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30; + readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31; + readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33; + readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34; + readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36; + readonly UNIFORM_TYPE: 0x8A37; + readonly UNIFORM_SIZE: 0x8A38; + readonly UNIFORM_BLOCK_INDEX: 0x8A3A; + readonly UNIFORM_OFFSET: 0x8A3B; + readonly UNIFORM_ARRAY_STRIDE: 0x8A3C; + readonly UNIFORM_MATRIX_STRIDE: 0x8A3D; + readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E; + readonly UNIFORM_BLOCK_BINDING: 0x8A3F; + readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40; + readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42; + readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43; + readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44; + readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46; + readonly INVALID_INDEX: 0xFFFFFFFF; + readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122; + readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125; + readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111; + readonly OBJECT_TYPE: 0x9112; + readonly SYNC_CONDITION: 0x9113; + readonly SYNC_STATUS: 0x9114; + readonly SYNC_FLAGS: 0x9115; + readonly SYNC_FENCE: 0x9116; + readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117; + readonly UNSIGNALED: 0x9118; + readonly SIGNALED: 0x9119; + readonly ALREADY_SIGNALED: 0x911A; + readonly TIMEOUT_EXPIRED: 0x911B; + readonly CONDITION_SATISFIED: 0x911C; + readonly WAIT_FAILED: 0x911D; + readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001; + readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE; + readonly ANY_SAMPLES_PASSED: 0x8C2F; + readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A; + readonly SAMPLER_BINDING: 0x8919; + readonly RGB10_A2UI: 0x906F; + readonly INT_2_10_10_10_REV: 0x8D9F; + readonly TRANSFORM_FEEDBACK: 0x8E22; + readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23; + readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24; + readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25; + readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F; + readonly MAX_ELEMENT_INDEX: 0x8D6B; + readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF; + readonly TIMEOUT_IGNORED: -1; + readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247; + readonly DEPTH_BUFFER_BIT: 0x00000100; + readonly STENCIL_BUFFER_BIT: 0x00000400; + readonly COLOR_BUFFER_BIT: 0x00004000; + readonly POINTS: 0x0000; + readonly LINES: 0x0001; + readonly LINE_LOOP: 0x0002; + readonly LINE_STRIP: 0x0003; + readonly TRIANGLES: 0x0004; + readonly TRIANGLE_STRIP: 0x0005; + readonly TRIANGLE_FAN: 0x0006; + readonly ZERO: 0; + readonly ONE: 1; + readonly SRC_COLOR: 0x0300; + readonly ONE_MINUS_SRC_COLOR: 0x0301; + readonly SRC_ALPHA: 0x0302; + readonly ONE_MINUS_SRC_ALPHA: 0x0303; + readonly DST_ALPHA: 0x0304; + readonly ONE_MINUS_DST_ALPHA: 0x0305; + readonly DST_COLOR: 0x0306; + readonly ONE_MINUS_DST_COLOR: 0x0307; + readonly SRC_ALPHA_SATURATE: 0x0308; + readonly FUNC_ADD: 0x8006; + readonly BLEND_EQUATION: 0x8009; + readonly BLEND_EQUATION_RGB: 0x8009; + readonly BLEND_EQUATION_ALPHA: 0x883D; + readonly FUNC_SUBTRACT: 0x800A; + readonly FUNC_REVERSE_SUBTRACT: 0x800B; + readonly BLEND_DST_RGB: 0x80C8; + readonly BLEND_SRC_RGB: 0x80C9; + readonly BLEND_DST_ALPHA: 0x80CA; + readonly BLEND_SRC_ALPHA: 0x80CB; + readonly CONSTANT_COLOR: 0x8001; + readonly ONE_MINUS_CONSTANT_COLOR: 0x8002; + readonly CONSTANT_ALPHA: 0x8003; + readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004; + readonly BLEND_COLOR: 0x8005; + readonly ARRAY_BUFFER: 0x8892; + readonly ELEMENT_ARRAY_BUFFER: 0x8893; + readonly ARRAY_BUFFER_BINDING: 0x8894; + readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895; + readonly STREAM_DRAW: 0x88E0; + readonly STATIC_DRAW: 0x88E4; + readonly DYNAMIC_DRAW: 0x88E8; + readonly BUFFER_SIZE: 0x8764; + readonly BUFFER_USAGE: 0x8765; + readonly CURRENT_VERTEX_ATTRIB: 0x8626; + readonly FRONT: 0x0404; + readonly BACK: 0x0405; + readonly FRONT_AND_BACK: 0x0408; + readonly CULL_FACE: 0x0B44; + readonly BLEND: 0x0BE2; + readonly DITHER: 0x0BD0; + readonly STENCIL_TEST: 0x0B90; + readonly DEPTH_TEST: 0x0B71; + readonly SCISSOR_TEST: 0x0C11; + readonly POLYGON_OFFSET_FILL: 0x8037; + readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E; + readonly SAMPLE_COVERAGE: 0x80A0; + readonly NO_ERROR: 0; + readonly INVALID_ENUM: 0x0500; + readonly INVALID_VALUE: 0x0501; + readonly INVALID_OPERATION: 0x0502; + readonly OUT_OF_MEMORY: 0x0505; + readonly CW: 0x0900; + readonly CCW: 0x0901; + readonly LINE_WIDTH: 0x0B21; + readonly ALIASED_POINT_SIZE_RANGE: 0x846D; + readonly ALIASED_LINE_WIDTH_RANGE: 0x846E; + readonly CULL_FACE_MODE: 0x0B45; + readonly FRONT_FACE: 0x0B46; + readonly DEPTH_RANGE: 0x0B70; + readonly DEPTH_WRITEMASK: 0x0B72; + readonly DEPTH_CLEAR_VALUE: 0x0B73; + readonly DEPTH_FUNC: 0x0B74; + readonly STENCIL_CLEAR_VALUE: 0x0B91; + readonly STENCIL_FUNC: 0x0B92; + readonly STENCIL_FAIL: 0x0B94; + readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95; + readonly STENCIL_PASS_DEPTH_PASS: 0x0B96; + readonly STENCIL_REF: 0x0B97; + readonly STENCIL_VALUE_MASK: 0x0B93; + readonly STENCIL_WRITEMASK: 0x0B98; + readonly STENCIL_BACK_FUNC: 0x8800; + readonly STENCIL_BACK_FAIL: 0x8801; + readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802; + readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803; + readonly STENCIL_BACK_REF: 0x8CA3; + readonly STENCIL_BACK_VALUE_MASK: 0x8CA4; + readonly STENCIL_BACK_WRITEMASK: 0x8CA5; + readonly VIEWPORT: 0x0BA2; + readonly SCISSOR_BOX: 0x0C10; + readonly COLOR_CLEAR_VALUE: 0x0C22; + readonly COLOR_WRITEMASK: 0x0C23; + readonly UNPACK_ALIGNMENT: 0x0CF5; + readonly PACK_ALIGNMENT: 0x0D05; + readonly MAX_TEXTURE_SIZE: 0x0D33; + readonly MAX_VIEWPORT_DIMS: 0x0D3A; + readonly SUBPIXEL_BITS: 0x0D50; + readonly RED_BITS: 0x0D52; + readonly GREEN_BITS: 0x0D53; + readonly BLUE_BITS: 0x0D54; + readonly ALPHA_BITS: 0x0D55; + readonly DEPTH_BITS: 0x0D56; + readonly STENCIL_BITS: 0x0D57; + readonly POLYGON_OFFSET_UNITS: 0x2A00; + readonly POLYGON_OFFSET_FACTOR: 0x8038; + readonly TEXTURE_BINDING_2D: 0x8069; + readonly SAMPLE_BUFFERS: 0x80A8; + readonly SAMPLES: 0x80A9; + readonly SAMPLE_COVERAGE_VALUE: 0x80AA; + readonly SAMPLE_COVERAGE_INVERT: 0x80AB; + readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3; + readonly DONT_CARE: 0x1100; + readonly FASTEST: 0x1101; + readonly NICEST: 0x1102; + readonly GENERATE_MIPMAP_HINT: 0x8192; + readonly BYTE: 0x1400; + readonly UNSIGNED_BYTE: 0x1401; + readonly SHORT: 0x1402; + readonly UNSIGNED_SHORT: 0x1403; + readonly INT: 0x1404; + readonly UNSIGNED_INT: 0x1405; + readonly FLOAT: 0x1406; + readonly DEPTH_COMPONENT: 0x1902; + readonly ALPHA: 0x1906; + readonly RGB: 0x1907; + readonly RGBA: 0x1908; + readonly LUMINANCE: 0x1909; + readonly LUMINANCE_ALPHA: 0x190A; + readonly UNSIGNED_SHORT_4_4_4_4: 0x8033; + readonly UNSIGNED_SHORT_5_5_5_1: 0x8034; + readonly UNSIGNED_SHORT_5_6_5: 0x8363; + readonly FRAGMENT_SHADER: 0x8B30; + readonly VERTEX_SHADER: 0x8B31; + readonly MAX_VERTEX_ATTRIBS: 0x8869; + readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB; + readonly MAX_VARYING_VECTORS: 0x8DFC; + readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D; + readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C; + readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872; + readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD; + readonly SHADER_TYPE: 0x8B4F; + readonly DELETE_STATUS: 0x8B80; + readonly LINK_STATUS: 0x8B82; + readonly VALIDATE_STATUS: 0x8B83; + readonly ATTACHED_SHADERS: 0x8B85; + readonly ACTIVE_UNIFORMS: 0x8B86; + readonly ACTIVE_ATTRIBUTES: 0x8B89; + readonly SHADING_LANGUAGE_VERSION: 0x8B8C; + readonly CURRENT_PROGRAM: 0x8B8D; + readonly NEVER: 0x0200; + readonly LESS: 0x0201; + readonly EQUAL: 0x0202; + readonly LEQUAL: 0x0203; + readonly GREATER: 0x0204; + readonly NOTEQUAL: 0x0205; + readonly GEQUAL: 0x0206; + readonly ALWAYS: 0x0207; + readonly KEEP: 0x1E00; + readonly REPLACE: 0x1E01; + readonly INCR: 0x1E02; + readonly DECR: 0x1E03; + readonly INVERT: 0x150A; + readonly INCR_WRAP: 0x8507; + readonly DECR_WRAP: 0x8508; + readonly VENDOR: 0x1F00; + readonly RENDERER: 0x1F01; + readonly VERSION: 0x1F02; + readonly NEAREST: 0x2600; + readonly LINEAR: 0x2601; + readonly NEAREST_MIPMAP_NEAREST: 0x2700; + readonly LINEAR_MIPMAP_NEAREST: 0x2701; + readonly NEAREST_MIPMAP_LINEAR: 0x2702; + readonly LINEAR_MIPMAP_LINEAR: 0x2703; + readonly TEXTURE_MAG_FILTER: 0x2800; + readonly TEXTURE_MIN_FILTER: 0x2801; + readonly TEXTURE_WRAP_S: 0x2802; + readonly TEXTURE_WRAP_T: 0x2803; + readonly TEXTURE_2D: 0x0DE1; + readonly TEXTURE: 0x1702; + readonly TEXTURE_CUBE_MAP: 0x8513; + readonly TEXTURE_BINDING_CUBE_MAP: 0x8514; + readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515; + readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516; + readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518; + readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A; + readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C; + readonly TEXTURE0: 0x84C0; + readonly TEXTURE1: 0x84C1; + readonly TEXTURE2: 0x84C2; + readonly TEXTURE3: 0x84C3; + readonly TEXTURE4: 0x84C4; + readonly TEXTURE5: 0x84C5; + readonly TEXTURE6: 0x84C6; + readonly TEXTURE7: 0x84C7; + readonly TEXTURE8: 0x84C8; + readonly TEXTURE9: 0x84C9; + readonly TEXTURE10: 0x84CA; + readonly TEXTURE11: 0x84CB; + readonly TEXTURE12: 0x84CC; + readonly TEXTURE13: 0x84CD; + readonly TEXTURE14: 0x84CE; + readonly TEXTURE15: 0x84CF; + readonly TEXTURE16: 0x84D0; + readonly TEXTURE17: 0x84D1; + readonly TEXTURE18: 0x84D2; + readonly TEXTURE19: 0x84D3; + readonly TEXTURE20: 0x84D4; + readonly TEXTURE21: 0x84D5; + readonly TEXTURE22: 0x84D6; + readonly TEXTURE23: 0x84D7; + readonly TEXTURE24: 0x84D8; + readonly TEXTURE25: 0x84D9; + readonly TEXTURE26: 0x84DA; + readonly TEXTURE27: 0x84DB; + readonly TEXTURE28: 0x84DC; + readonly TEXTURE29: 0x84DD; + readonly TEXTURE30: 0x84DE; + readonly TEXTURE31: 0x84DF; + readonly ACTIVE_TEXTURE: 0x84E0; + readonly REPEAT: 0x2901; + readonly CLAMP_TO_EDGE: 0x812F; + readonly MIRRORED_REPEAT: 0x8370; + readonly FLOAT_VEC2: 0x8B50; + readonly FLOAT_VEC3: 0x8B51; + readonly FLOAT_VEC4: 0x8B52; + readonly INT_VEC2: 0x8B53; + readonly INT_VEC3: 0x8B54; + readonly INT_VEC4: 0x8B55; + readonly BOOL: 0x8B56; + readonly BOOL_VEC2: 0x8B57; + readonly BOOL_VEC3: 0x8B58; + readonly BOOL_VEC4: 0x8B59; + readonly FLOAT_MAT2: 0x8B5A; + readonly FLOAT_MAT3: 0x8B5B; + readonly FLOAT_MAT4: 0x8B5C; + readonly SAMPLER_2D: 0x8B5E; + readonly SAMPLER_CUBE: 0x8B60; + readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622; + readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623; + readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624; + readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625; + readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A; + readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645; + readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F; + readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A; + readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B; + readonly COMPILE_STATUS: 0x8B81; + readonly LOW_FLOAT: 0x8DF0; + readonly MEDIUM_FLOAT: 0x8DF1; + readonly HIGH_FLOAT: 0x8DF2; + readonly LOW_INT: 0x8DF3; + readonly MEDIUM_INT: 0x8DF4; + readonly HIGH_INT: 0x8DF5; + readonly FRAMEBUFFER: 0x8D40; + readonly RENDERBUFFER: 0x8D41; + readonly RGBA4: 0x8056; + readonly RGB5_A1: 0x8057; + readonly RGBA8: 0x8058; + readonly RGB565: 0x8D62; + readonly DEPTH_COMPONENT16: 0x81A5; + readonly STENCIL_INDEX8: 0x8D48; + readonly DEPTH_STENCIL: 0x84F9; + readonly RENDERBUFFER_WIDTH: 0x8D42; + readonly RENDERBUFFER_HEIGHT: 0x8D43; + readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44; + readonly RENDERBUFFER_RED_SIZE: 0x8D50; + readonly RENDERBUFFER_GREEN_SIZE: 0x8D51; + readonly RENDERBUFFER_BLUE_SIZE: 0x8D52; + readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53; + readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54; + readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3; + readonly COLOR_ATTACHMENT0: 0x8CE0; + readonly DEPTH_ATTACHMENT: 0x8D00; + readonly STENCIL_ATTACHMENT: 0x8D20; + readonly DEPTH_STENCIL_ATTACHMENT: 0x821A; + readonly NONE: 0; + readonly FRAMEBUFFER_COMPLETE: 0x8CD5; + readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6; + readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7; + readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9; + readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD; + readonly FRAMEBUFFER_BINDING: 0x8CA6; + readonly RENDERBUFFER_BINDING: 0x8CA7; + readonly MAX_RENDERBUFFER_SIZE: 0x84E8; + readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506; + readonly UNPACK_FLIP_Y_WEBGL: 0x9240; + readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241; + readonly CONTEXT_LOST_WEBGL: 0x9242; + readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243; + readonly BROWSER_DEFAULT_WEBGL: 0x9244; +}; + +interface WebGL2RenderingContextBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginQuery) */ + beginQuery(target: GLenum, query: WebGLQuery): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginTransformFeedback) */ + beginTransformFeedback(primitiveMode: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferBase) */ + bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferRange) */ + bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindSampler) */ + bindSampler(unit: GLuint, sampler: WebGLSampler | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindTransformFeedback) */ + bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindVertexArray) */ + bindVertexArray(array: WebGLVertexArrayObject | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/blitFramebuffer) */ + blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ + clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ + clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ + clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ + clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */ + clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) */ + compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void; + compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) */ + compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void; + compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyBufferSubData) */ + copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D) */ + copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createQuery) */ + createQuery(): WebGLQuery | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) */ + createSampler(): WebGLSampler | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) */ + createTransformFeedback(): WebGLTransformFeedback | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) */ + createVertexArray(): WebGLVertexArrayObject | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteQuery) */ + deleteQuery(query: WebGLQuery | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSampler) */ + deleteSampler(sampler: WebGLSampler | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSync) */ + deleteSync(sync: WebGLSync | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteTransformFeedback) */ + deleteTransformFeedback(tf: WebGLTransformFeedback | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteVertexArray) */ + deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawArraysInstanced) */ + drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */ + drawBuffers(buffers: GLenum[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced) */ + drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawRangeElements) */ + drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endQuery) */ + endQuery(target: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endTransformFeedback) */ + endTransformFeedback(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/fenceSync) */ + fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/framebufferTextureLayer) */ + framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockName) */ + getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockParameter) */ + getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */ + getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getBufferSubData) */ + getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: number, length?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getFragDataLocation) */ + getFragDataLocation(program: WebGLProgram, name: string): GLint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getIndexedParameter) */ + getIndexedParameter(target: GLenum, index: GLuint): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getInternalformatParameter) */ + getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQuery) */ + getQuery(target: GLenum, pname: GLenum): WebGLQuery | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQueryParameter) */ + getQueryParameter(query: WebGLQuery, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSamplerParameter) */ + getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSyncParameter) */ + getSyncParameter(sync: WebGLSync, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getTransformFeedbackVarying) */ + getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformBlockIndex) */ + getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */ + getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */ + invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */ + invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isQuery) */ + isQuery(query: WebGLQuery | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSampler) */ + isSampler(sampler: WebGLSampler | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSync) */ + isSync(sync: WebGLSync | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isTransformFeedback) */ + isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isVertexArray) */ + isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/pauseTransformFeedback) */ + pauseTransformFeedback(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/readBuffer) */ + readBuffer(src: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/renderbufferStorageMultisample) */ + renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/resumeTransformFeedback) */ + resumeTransformFeedback(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */ + samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */ + samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texImage3D) */ + texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void; + texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; + texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void; + texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage2D) */ + texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage3D) */ + texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texSubImage3D) */ + texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void; + texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void; + texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */ + transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding) */ + uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor) */ + vertexAttribDivisor(index: GLuint, divisor: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ + vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ + vertexAttribI4iv(index: GLuint, values: Int32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ + vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ + vertexAttribI4uiv(index: GLuint, values: Uint32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer) */ + vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/waitSync) */ + waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void; + readonly READ_BUFFER: 0x0C02; + readonly UNPACK_ROW_LENGTH: 0x0CF2; + readonly UNPACK_SKIP_ROWS: 0x0CF3; + readonly UNPACK_SKIP_PIXELS: 0x0CF4; + readonly PACK_ROW_LENGTH: 0x0D02; + readonly PACK_SKIP_ROWS: 0x0D03; + readonly PACK_SKIP_PIXELS: 0x0D04; + readonly COLOR: 0x1800; + readonly DEPTH: 0x1801; + readonly STENCIL: 0x1802; + readonly RED: 0x1903; + readonly RGB8: 0x8051; + readonly RGB10_A2: 0x8059; + readonly TEXTURE_BINDING_3D: 0x806A; + readonly UNPACK_SKIP_IMAGES: 0x806D; + readonly UNPACK_IMAGE_HEIGHT: 0x806E; + readonly TEXTURE_3D: 0x806F; + readonly TEXTURE_WRAP_R: 0x8072; + readonly MAX_3D_TEXTURE_SIZE: 0x8073; + readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368; + readonly MAX_ELEMENTS_VERTICES: 0x80E8; + readonly MAX_ELEMENTS_INDICES: 0x80E9; + readonly TEXTURE_MIN_LOD: 0x813A; + readonly TEXTURE_MAX_LOD: 0x813B; + readonly TEXTURE_BASE_LEVEL: 0x813C; + readonly TEXTURE_MAX_LEVEL: 0x813D; + readonly MIN: 0x8007; + readonly MAX: 0x8008; + readonly DEPTH_COMPONENT24: 0x81A6; + readonly MAX_TEXTURE_LOD_BIAS: 0x84FD; + readonly TEXTURE_COMPARE_MODE: 0x884C; + readonly TEXTURE_COMPARE_FUNC: 0x884D; + readonly CURRENT_QUERY: 0x8865; + readonly QUERY_RESULT: 0x8866; + readonly QUERY_RESULT_AVAILABLE: 0x8867; + readonly STREAM_READ: 0x88E1; + readonly STREAM_COPY: 0x88E2; + readonly STATIC_READ: 0x88E5; + readonly STATIC_COPY: 0x88E6; + readonly DYNAMIC_READ: 0x88E9; + readonly DYNAMIC_COPY: 0x88EA; + readonly MAX_DRAW_BUFFERS: 0x8824; + readonly DRAW_BUFFER0: 0x8825; + readonly DRAW_BUFFER1: 0x8826; + readonly DRAW_BUFFER2: 0x8827; + readonly DRAW_BUFFER3: 0x8828; + readonly DRAW_BUFFER4: 0x8829; + readonly DRAW_BUFFER5: 0x882A; + readonly DRAW_BUFFER6: 0x882B; + readonly DRAW_BUFFER7: 0x882C; + readonly DRAW_BUFFER8: 0x882D; + readonly DRAW_BUFFER9: 0x882E; + readonly DRAW_BUFFER10: 0x882F; + readonly DRAW_BUFFER11: 0x8830; + readonly DRAW_BUFFER12: 0x8831; + readonly DRAW_BUFFER13: 0x8832; + readonly DRAW_BUFFER14: 0x8833; + readonly DRAW_BUFFER15: 0x8834; + readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49; + readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A; + readonly SAMPLER_3D: 0x8B5F; + readonly SAMPLER_2D_SHADOW: 0x8B62; + readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B; + readonly PIXEL_PACK_BUFFER: 0x88EB; + readonly PIXEL_UNPACK_BUFFER: 0x88EC; + readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED; + readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF; + readonly FLOAT_MAT2x3: 0x8B65; + readonly FLOAT_MAT2x4: 0x8B66; + readonly FLOAT_MAT3x2: 0x8B67; + readonly FLOAT_MAT3x4: 0x8B68; + readonly FLOAT_MAT4x2: 0x8B69; + readonly FLOAT_MAT4x3: 0x8B6A; + readonly SRGB: 0x8C40; + readonly SRGB8: 0x8C41; + readonly SRGB8_ALPHA8: 0x8C43; + readonly COMPARE_REF_TO_TEXTURE: 0x884E; + readonly RGBA32F: 0x8814; + readonly RGB32F: 0x8815; + readonly RGBA16F: 0x881A; + readonly RGB16F: 0x881B; + readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD; + readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF; + readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904; + readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905; + readonly MAX_VARYING_COMPONENTS: 0x8B4B; + readonly TEXTURE_2D_ARRAY: 0x8C1A; + readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D; + readonly R11F_G11F_B10F: 0x8C3A; + readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B; + readonly RGB9_E5: 0x8C3D; + readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E; + readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F; + readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80; + readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83; + readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84; + readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85; + readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88; + readonly RASTERIZER_DISCARD: 0x8C89; + readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A; + readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B; + readonly INTERLEAVED_ATTRIBS: 0x8C8C; + readonly SEPARATE_ATTRIBS: 0x8C8D; + readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E; + readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F; + readonly RGBA32UI: 0x8D70; + readonly RGB32UI: 0x8D71; + readonly RGBA16UI: 0x8D76; + readonly RGB16UI: 0x8D77; + readonly RGBA8UI: 0x8D7C; + readonly RGB8UI: 0x8D7D; + readonly RGBA32I: 0x8D82; + readonly RGB32I: 0x8D83; + readonly RGBA16I: 0x8D88; + readonly RGB16I: 0x8D89; + readonly RGBA8I: 0x8D8E; + readonly RGB8I: 0x8D8F; + readonly RED_INTEGER: 0x8D94; + readonly RGB_INTEGER: 0x8D98; + readonly RGBA_INTEGER: 0x8D99; + readonly SAMPLER_2D_ARRAY: 0x8DC1; + readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4; + readonly SAMPLER_CUBE_SHADOW: 0x8DC5; + readonly UNSIGNED_INT_VEC2: 0x8DC6; + readonly UNSIGNED_INT_VEC3: 0x8DC7; + readonly UNSIGNED_INT_VEC4: 0x8DC8; + readonly INT_SAMPLER_2D: 0x8DCA; + readonly INT_SAMPLER_3D: 0x8DCB; + readonly INT_SAMPLER_CUBE: 0x8DCC; + readonly INT_SAMPLER_2D_ARRAY: 0x8DCF; + readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2; + readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3; + readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4; + readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7; + readonly DEPTH_COMPONENT32F: 0x8CAC; + readonly DEPTH32F_STENCIL8: 0x8CAD; + readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD; + readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210; + readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211; + readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212; + readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213; + readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214; + readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215; + readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216; + readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217; + readonly FRAMEBUFFER_DEFAULT: 0x8218; + readonly UNSIGNED_INT_24_8: 0x84FA; + readonly DEPTH24_STENCIL8: 0x88F0; + readonly UNSIGNED_NORMALIZED: 0x8C17; + readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6; + readonly READ_FRAMEBUFFER: 0x8CA8; + readonly DRAW_FRAMEBUFFER: 0x8CA9; + readonly READ_FRAMEBUFFER_BINDING: 0x8CAA; + readonly RENDERBUFFER_SAMPLES: 0x8CAB; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4; + readonly MAX_COLOR_ATTACHMENTS: 0x8CDF; + readonly COLOR_ATTACHMENT1: 0x8CE1; + readonly COLOR_ATTACHMENT2: 0x8CE2; + readonly COLOR_ATTACHMENT3: 0x8CE3; + readonly COLOR_ATTACHMENT4: 0x8CE4; + readonly COLOR_ATTACHMENT5: 0x8CE5; + readonly COLOR_ATTACHMENT6: 0x8CE6; + readonly COLOR_ATTACHMENT7: 0x8CE7; + readonly COLOR_ATTACHMENT8: 0x8CE8; + readonly COLOR_ATTACHMENT9: 0x8CE9; + readonly COLOR_ATTACHMENT10: 0x8CEA; + readonly COLOR_ATTACHMENT11: 0x8CEB; + readonly COLOR_ATTACHMENT12: 0x8CEC; + readonly COLOR_ATTACHMENT13: 0x8CED; + readonly COLOR_ATTACHMENT14: 0x8CEE; + readonly COLOR_ATTACHMENT15: 0x8CEF; + readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56; + readonly MAX_SAMPLES: 0x8D57; + readonly HALF_FLOAT: 0x140B; + readonly RG: 0x8227; + readonly RG_INTEGER: 0x8228; + readonly R8: 0x8229; + readonly RG8: 0x822B; + readonly R16F: 0x822D; + readonly R32F: 0x822E; + readonly RG16F: 0x822F; + readonly RG32F: 0x8230; + readonly R8I: 0x8231; + readonly R8UI: 0x8232; + readonly R16I: 0x8233; + readonly R16UI: 0x8234; + readonly R32I: 0x8235; + readonly R32UI: 0x8236; + readonly RG8I: 0x8237; + readonly RG8UI: 0x8238; + readonly RG16I: 0x8239; + readonly RG16UI: 0x823A; + readonly RG32I: 0x823B; + readonly RG32UI: 0x823C; + readonly VERTEX_ARRAY_BINDING: 0x85B5; + readonly R8_SNORM: 0x8F94; + readonly RG8_SNORM: 0x8F95; + readonly RGB8_SNORM: 0x8F96; + readonly RGBA8_SNORM: 0x8F97; + readonly SIGNED_NORMALIZED: 0x8F9C; + readonly COPY_READ_BUFFER: 0x8F36; + readonly COPY_WRITE_BUFFER: 0x8F37; + readonly COPY_READ_BUFFER_BINDING: 0x8F36; + readonly COPY_WRITE_BUFFER_BINDING: 0x8F37; + readonly UNIFORM_BUFFER: 0x8A11; + readonly UNIFORM_BUFFER_BINDING: 0x8A28; + readonly UNIFORM_BUFFER_START: 0x8A29; + readonly UNIFORM_BUFFER_SIZE: 0x8A2A; + readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B; + readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D; + readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E; + readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F; + readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30; + readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31; + readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33; + readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34; + readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36; + readonly UNIFORM_TYPE: 0x8A37; + readonly UNIFORM_SIZE: 0x8A38; + readonly UNIFORM_BLOCK_INDEX: 0x8A3A; + readonly UNIFORM_OFFSET: 0x8A3B; + readonly UNIFORM_ARRAY_STRIDE: 0x8A3C; + readonly UNIFORM_MATRIX_STRIDE: 0x8A3D; + readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E; + readonly UNIFORM_BLOCK_BINDING: 0x8A3F; + readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40; + readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42; + readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43; + readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44; + readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46; + readonly INVALID_INDEX: 0xFFFFFFFF; + readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122; + readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125; + readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111; + readonly OBJECT_TYPE: 0x9112; + readonly SYNC_CONDITION: 0x9113; + readonly SYNC_STATUS: 0x9114; + readonly SYNC_FLAGS: 0x9115; + readonly SYNC_FENCE: 0x9116; + readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117; + readonly UNSIGNALED: 0x9118; + readonly SIGNALED: 0x9119; + readonly ALREADY_SIGNALED: 0x911A; + readonly TIMEOUT_EXPIRED: 0x911B; + readonly CONDITION_SATISFIED: 0x911C; + readonly WAIT_FAILED: 0x911D; + readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001; + readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE; + readonly ANY_SAMPLES_PASSED: 0x8C2F; + readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A; + readonly SAMPLER_BINDING: 0x8919; + readonly RGB10_A2UI: 0x906F; + readonly INT_2_10_10_10_REV: 0x8D9F; + readonly TRANSFORM_FEEDBACK: 0x8E22; + readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23; + readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24; + readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25; + readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F; + readonly MAX_ELEMENT_INDEX: 0x8D6B; + readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF; + readonly TIMEOUT_IGNORED: -1; + readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247; +} + +interface WebGL2RenderingContextOverloads { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */ + bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void; + bufferData(target: GLenum, srcData: AllowSharedBufferSource | null, usage: GLenum): void; + bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: number, length?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */ + bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: AllowSharedBufferSource): void; + bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: number, length?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */ + compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void; + compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */ + compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void; + compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */ + readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void; + readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void; + readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */ + texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; + texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; + texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void; + texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; + texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */ + texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; + texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; + texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void; + texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void; + texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; +} + +/** + * Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo) + */ +interface WebGLActiveInfo { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/size) */ + readonly size: GLint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/type) */ + readonly type: GLenum; +} + +declare var WebGLActiveInfo: { + prototype: WebGLActiveInfo; + new(): WebGLActiveInfo; +}; + +/** + * Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLBuffer) + */ +interface WebGLBuffer { +} + +declare var WebGLBuffer: { + prototype: WebGLBuffer; + new(): WebGLBuffer; +}; + +/** + * The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent) + */ +interface WebGLContextEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent/statusMessage) */ + readonly statusMessage: string; +} + +declare var WebGLContextEvent: { + prototype: WebGLContextEvent; + new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent; +}; + +/** + * Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLFramebuffer) + */ +interface WebGLFramebuffer { +} + +declare var WebGLFramebuffer: { + prototype: WebGLFramebuffer; + new(): WebGLFramebuffer; +}; + +/** + * The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLProgram) + */ +interface WebGLProgram { +} + +declare var WebGLProgram: { + prototype: WebGLProgram; + new(): WebGLProgram; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLQuery) */ +interface WebGLQuery { +} + +declare var WebGLQuery: { + prototype: WebGLQuery; + new(): WebGLQuery; +}; + +/** + * Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderbuffer) + */ +interface WebGLRenderbuffer { +} + +declare var WebGLRenderbuffer: { + prototype: WebGLRenderbuffer; + new(): WebGLRenderbuffer; +}; + +/** + * Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext) + */ +interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads { +} + +declare var WebGLRenderingContext: { + prototype: WebGLRenderingContext; + new(): WebGLRenderingContext; + readonly DEPTH_BUFFER_BIT: 0x00000100; + readonly STENCIL_BUFFER_BIT: 0x00000400; + readonly COLOR_BUFFER_BIT: 0x00004000; + readonly POINTS: 0x0000; + readonly LINES: 0x0001; + readonly LINE_LOOP: 0x0002; + readonly LINE_STRIP: 0x0003; + readonly TRIANGLES: 0x0004; + readonly TRIANGLE_STRIP: 0x0005; + readonly TRIANGLE_FAN: 0x0006; + readonly ZERO: 0; + readonly ONE: 1; + readonly SRC_COLOR: 0x0300; + readonly ONE_MINUS_SRC_COLOR: 0x0301; + readonly SRC_ALPHA: 0x0302; + readonly ONE_MINUS_SRC_ALPHA: 0x0303; + readonly DST_ALPHA: 0x0304; + readonly ONE_MINUS_DST_ALPHA: 0x0305; + readonly DST_COLOR: 0x0306; + readonly ONE_MINUS_DST_COLOR: 0x0307; + readonly SRC_ALPHA_SATURATE: 0x0308; + readonly FUNC_ADD: 0x8006; + readonly BLEND_EQUATION: 0x8009; + readonly BLEND_EQUATION_RGB: 0x8009; + readonly BLEND_EQUATION_ALPHA: 0x883D; + readonly FUNC_SUBTRACT: 0x800A; + readonly FUNC_REVERSE_SUBTRACT: 0x800B; + readonly BLEND_DST_RGB: 0x80C8; + readonly BLEND_SRC_RGB: 0x80C9; + readonly BLEND_DST_ALPHA: 0x80CA; + readonly BLEND_SRC_ALPHA: 0x80CB; + readonly CONSTANT_COLOR: 0x8001; + readonly ONE_MINUS_CONSTANT_COLOR: 0x8002; + readonly CONSTANT_ALPHA: 0x8003; + readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004; + readonly BLEND_COLOR: 0x8005; + readonly ARRAY_BUFFER: 0x8892; + readonly ELEMENT_ARRAY_BUFFER: 0x8893; + readonly ARRAY_BUFFER_BINDING: 0x8894; + readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895; + readonly STREAM_DRAW: 0x88E0; + readonly STATIC_DRAW: 0x88E4; + readonly DYNAMIC_DRAW: 0x88E8; + readonly BUFFER_SIZE: 0x8764; + readonly BUFFER_USAGE: 0x8765; + readonly CURRENT_VERTEX_ATTRIB: 0x8626; + readonly FRONT: 0x0404; + readonly BACK: 0x0405; + readonly FRONT_AND_BACK: 0x0408; + readonly CULL_FACE: 0x0B44; + readonly BLEND: 0x0BE2; + readonly DITHER: 0x0BD0; + readonly STENCIL_TEST: 0x0B90; + readonly DEPTH_TEST: 0x0B71; + readonly SCISSOR_TEST: 0x0C11; + readonly POLYGON_OFFSET_FILL: 0x8037; + readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E; + readonly SAMPLE_COVERAGE: 0x80A0; + readonly NO_ERROR: 0; + readonly INVALID_ENUM: 0x0500; + readonly INVALID_VALUE: 0x0501; + readonly INVALID_OPERATION: 0x0502; + readonly OUT_OF_MEMORY: 0x0505; + readonly CW: 0x0900; + readonly CCW: 0x0901; + readonly LINE_WIDTH: 0x0B21; + readonly ALIASED_POINT_SIZE_RANGE: 0x846D; + readonly ALIASED_LINE_WIDTH_RANGE: 0x846E; + readonly CULL_FACE_MODE: 0x0B45; + readonly FRONT_FACE: 0x0B46; + readonly DEPTH_RANGE: 0x0B70; + readonly DEPTH_WRITEMASK: 0x0B72; + readonly DEPTH_CLEAR_VALUE: 0x0B73; + readonly DEPTH_FUNC: 0x0B74; + readonly STENCIL_CLEAR_VALUE: 0x0B91; + readonly STENCIL_FUNC: 0x0B92; + readonly STENCIL_FAIL: 0x0B94; + readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95; + readonly STENCIL_PASS_DEPTH_PASS: 0x0B96; + readonly STENCIL_REF: 0x0B97; + readonly STENCIL_VALUE_MASK: 0x0B93; + readonly STENCIL_WRITEMASK: 0x0B98; + readonly STENCIL_BACK_FUNC: 0x8800; + readonly STENCIL_BACK_FAIL: 0x8801; + readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802; + readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803; + readonly STENCIL_BACK_REF: 0x8CA3; + readonly STENCIL_BACK_VALUE_MASK: 0x8CA4; + readonly STENCIL_BACK_WRITEMASK: 0x8CA5; + readonly VIEWPORT: 0x0BA2; + readonly SCISSOR_BOX: 0x0C10; + readonly COLOR_CLEAR_VALUE: 0x0C22; + readonly COLOR_WRITEMASK: 0x0C23; + readonly UNPACK_ALIGNMENT: 0x0CF5; + readonly PACK_ALIGNMENT: 0x0D05; + readonly MAX_TEXTURE_SIZE: 0x0D33; + readonly MAX_VIEWPORT_DIMS: 0x0D3A; + readonly SUBPIXEL_BITS: 0x0D50; + readonly RED_BITS: 0x0D52; + readonly GREEN_BITS: 0x0D53; + readonly BLUE_BITS: 0x0D54; + readonly ALPHA_BITS: 0x0D55; + readonly DEPTH_BITS: 0x0D56; + readonly STENCIL_BITS: 0x0D57; + readonly POLYGON_OFFSET_UNITS: 0x2A00; + readonly POLYGON_OFFSET_FACTOR: 0x8038; + readonly TEXTURE_BINDING_2D: 0x8069; + readonly SAMPLE_BUFFERS: 0x80A8; + readonly SAMPLES: 0x80A9; + readonly SAMPLE_COVERAGE_VALUE: 0x80AA; + readonly SAMPLE_COVERAGE_INVERT: 0x80AB; + readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3; + readonly DONT_CARE: 0x1100; + readonly FASTEST: 0x1101; + readonly NICEST: 0x1102; + readonly GENERATE_MIPMAP_HINT: 0x8192; + readonly BYTE: 0x1400; + readonly UNSIGNED_BYTE: 0x1401; + readonly SHORT: 0x1402; + readonly UNSIGNED_SHORT: 0x1403; + readonly INT: 0x1404; + readonly UNSIGNED_INT: 0x1405; + readonly FLOAT: 0x1406; + readonly DEPTH_COMPONENT: 0x1902; + readonly ALPHA: 0x1906; + readonly RGB: 0x1907; + readonly RGBA: 0x1908; + readonly LUMINANCE: 0x1909; + readonly LUMINANCE_ALPHA: 0x190A; + readonly UNSIGNED_SHORT_4_4_4_4: 0x8033; + readonly UNSIGNED_SHORT_5_5_5_1: 0x8034; + readonly UNSIGNED_SHORT_5_6_5: 0x8363; + readonly FRAGMENT_SHADER: 0x8B30; + readonly VERTEX_SHADER: 0x8B31; + readonly MAX_VERTEX_ATTRIBS: 0x8869; + readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB; + readonly MAX_VARYING_VECTORS: 0x8DFC; + readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D; + readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C; + readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872; + readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD; + readonly SHADER_TYPE: 0x8B4F; + readonly DELETE_STATUS: 0x8B80; + readonly LINK_STATUS: 0x8B82; + readonly VALIDATE_STATUS: 0x8B83; + readonly ATTACHED_SHADERS: 0x8B85; + readonly ACTIVE_UNIFORMS: 0x8B86; + readonly ACTIVE_ATTRIBUTES: 0x8B89; + readonly SHADING_LANGUAGE_VERSION: 0x8B8C; + readonly CURRENT_PROGRAM: 0x8B8D; + readonly NEVER: 0x0200; + readonly LESS: 0x0201; + readonly EQUAL: 0x0202; + readonly LEQUAL: 0x0203; + readonly GREATER: 0x0204; + readonly NOTEQUAL: 0x0205; + readonly GEQUAL: 0x0206; + readonly ALWAYS: 0x0207; + readonly KEEP: 0x1E00; + readonly REPLACE: 0x1E01; + readonly INCR: 0x1E02; + readonly DECR: 0x1E03; + readonly INVERT: 0x150A; + readonly INCR_WRAP: 0x8507; + readonly DECR_WRAP: 0x8508; + readonly VENDOR: 0x1F00; + readonly RENDERER: 0x1F01; + readonly VERSION: 0x1F02; + readonly NEAREST: 0x2600; + readonly LINEAR: 0x2601; + readonly NEAREST_MIPMAP_NEAREST: 0x2700; + readonly LINEAR_MIPMAP_NEAREST: 0x2701; + readonly NEAREST_MIPMAP_LINEAR: 0x2702; + readonly LINEAR_MIPMAP_LINEAR: 0x2703; + readonly TEXTURE_MAG_FILTER: 0x2800; + readonly TEXTURE_MIN_FILTER: 0x2801; + readonly TEXTURE_WRAP_S: 0x2802; + readonly TEXTURE_WRAP_T: 0x2803; + readonly TEXTURE_2D: 0x0DE1; + readonly TEXTURE: 0x1702; + readonly TEXTURE_CUBE_MAP: 0x8513; + readonly TEXTURE_BINDING_CUBE_MAP: 0x8514; + readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515; + readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516; + readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518; + readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A; + readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C; + readonly TEXTURE0: 0x84C0; + readonly TEXTURE1: 0x84C1; + readonly TEXTURE2: 0x84C2; + readonly TEXTURE3: 0x84C3; + readonly TEXTURE4: 0x84C4; + readonly TEXTURE5: 0x84C5; + readonly TEXTURE6: 0x84C6; + readonly TEXTURE7: 0x84C7; + readonly TEXTURE8: 0x84C8; + readonly TEXTURE9: 0x84C9; + readonly TEXTURE10: 0x84CA; + readonly TEXTURE11: 0x84CB; + readonly TEXTURE12: 0x84CC; + readonly TEXTURE13: 0x84CD; + readonly TEXTURE14: 0x84CE; + readonly TEXTURE15: 0x84CF; + readonly TEXTURE16: 0x84D0; + readonly TEXTURE17: 0x84D1; + readonly TEXTURE18: 0x84D2; + readonly TEXTURE19: 0x84D3; + readonly TEXTURE20: 0x84D4; + readonly TEXTURE21: 0x84D5; + readonly TEXTURE22: 0x84D6; + readonly TEXTURE23: 0x84D7; + readonly TEXTURE24: 0x84D8; + readonly TEXTURE25: 0x84D9; + readonly TEXTURE26: 0x84DA; + readonly TEXTURE27: 0x84DB; + readonly TEXTURE28: 0x84DC; + readonly TEXTURE29: 0x84DD; + readonly TEXTURE30: 0x84DE; + readonly TEXTURE31: 0x84DF; + readonly ACTIVE_TEXTURE: 0x84E0; + readonly REPEAT: 0x2901; + readonly CLAMP_TO_EDGE: 0x812F; + readonly MIRRORED_REPEAT: 0x8370; + readonly FLOAT_VEC2: 0x8B50; + readonly FLOAT_VEC3: 0x8B51; + readonly FLOAT_VEC4: 0x8B52; + readonly INT_VEC2: 0x8B53; + readonly INT_VEC3: 0x8B54; + readonly INT_VEC4: 0x8B55; + readonly BOOL: 0x8B56; + readonly BOOL_VEC2: 0x8B57; + readonly BOOL_VEC3: 0x8B58; + readonly BOOL_VEC4: 0x8B59; + readonly FLOAT_MAT2: 0x8B5A; + readonly FLOAT_MAT3: 0x8B5B; + readonly FLOAT_MAT4: 0x8B5C; + readonly SAMPLER_2D: 0x8B5E; + readonly SAMPLER_CUBE: 0x8B60; + readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622; + readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623; + readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624; + readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625; + readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A; + readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645; + readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F; + readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A; + readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B; + readonly COMPILE_STATUS: 0x8B81; + readonly LOW_FLOAT: 0x8DF0; + readonly MEDIUM_FLOAT: 0x8DF1; + readonly HIGH_FLOAT: 0x8DF2; + readonly LOW_INT: 0x8DF3; + readonly MEDIUM_INT: 0x8DF4; + readonly HIGH_INT: 0x8DF5; + readonly FRAMEBUFFER: 0x8D40; + readonly RENDERBUFFER: 0x8D41; + readonly RGBA4: 0x8056; + readonly RGB5_A1: 0x8057; + readonly RGBA8: 0x8058; + readonly RGB565: 0x8D62; + readonly DEPTH_COMPONENT16: 0x81A5; + readonly STENCIL_INDEX8: 0x8D48; + readonly DEPTH_STENCIL: 0x84F9; + readonly RENDERBUFFER_WIDTH: 0x8D42; + readonly RENDERBUFFER_HEIGHT: 0x8D43; + readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44; + readonly RENDERBUFFER_RED_SIZE: 0x8D50; + readonly RENDERBUFFER_GREEN_SIZE: 0x8D51; + readonly RENDERBUFFER_BLUE_SIZE: 0x8D52; + readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53; + readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54; + readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3; + readonly COLOR_ATTACHMENT0: 0x8CE0; + readonly DEPTH_ATTACHMENT: 0x8D00; + readonly STENCIL_ATTACHMENT: 0x8D20; + readonly DEPTH_STENCIL_ATTACHMENT: 0x821A; + readonly NONE: 0; + readonly FRAMEBUFFER_COMPLETE: 0x8CD5; + readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6; + readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7; + readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9; + readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD; + readonly FRAMEBUFFER_BINDING: 0x8CA6; + readonly RENDERBUFFER_BINDING: 0x8CA7; + readonly MAX_RENDERBUFFER_SIZE: 0x84E8; + readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506; + readonly UNPACK_FLIP_Y_WEBGL: 0x9240; + readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241; + readonly CONTEXT_LOST_WEBGL: 0x9242; + readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243; + readonly BROWSER_DEFAULT_WEBGL: 0x9244; +}; + +interface WebGLRenderingContextBase { + drawingBufferColorSpace: PredefinedColorSpace; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */ + readonly drawingBufferHeight: GLsizei; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth) */ + readonly drawingBufferWidth: GLsizei; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/activeTexture) */ + activeTexture(texture: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/attachShader) */ + attachShader(program: WebGLProgram, shader: WebGLShader): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindAttribLocation) */ + bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindBuffer) */ + bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindFramebuffer) */ + bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindRenderbuffer) */ + bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindTexture) */ + bindTexture(target: GLenum, texture: WebGLTexture | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendColor) */ + blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquation) */ + blendEquation(mode: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquationSeparate) */ + blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFunc) */ + blendFunc(sfactor: GLenum, dfactor: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFuncSeparate) */ + blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus) */ + checkFramebufferStatus(target: GLenum): GLenum; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clear) */ + clear(mask: GLbitfield): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearColor) */ + clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearDepth) */ + clearDepth(depth: GLclampf): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearStencil) */ + clearStencil(s: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/colorMask) */ + colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compileShader) */ + compileShader(shader: WebGLShader): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexImage2D) */ + copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D) */ + copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer) */ + createBuffer(): WebGLBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) */ + createFramebuffer(): WebGLFramebuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) */ + createProgram(): WebGLProgram | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) */ + createRenderbuffer(): WebGLRenderbuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader) */ + createShader(type: GLenum): WebGLShader | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture) */ + createTexture(): WebGLTexture | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/cullFace) */ + cullFace(mode: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteBuffer) */ + deleteBuffer(buffer: WebGLBuffer | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteFramebuffer) */ + deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteProgram) */ + deleteProgram(program: WebGLProgram | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer) */ + deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteShader) */ + deleteShader(shader: WebGLShader | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteTexture) */ + deleteTexture(texture: WebGLTexture | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthFunc) */ + depthFunc(func: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthMask) */ + depthMask(flag: GLboolean): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthRange) */ + depthRange(zNear: GLclampf, zFar: GLclampf): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/detachShader) */ + detachShader(program: WebGLProgram, shader: WebGLShader): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disable) */ + disable(cap: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray) */ + disableVertexAttribArray(index: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawArrays) */ + drawArrays(mode: GLenum, first: GLint, count: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawElements) */ + drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enable) */ + enable(cap: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray) */ + enableVertexAttribArray(index: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/finish) */ + finish(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/flush) */ + flush(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer) */ + framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferTexture2D) */ + framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/frontFace) */ + frontFace(mode: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/generateMipmap) */ + generateMipmap(target: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveAttrib) */ + getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveUniform) */ + getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttachedShaders) */ + getAttachedShaders(program: WebGLProgram): WebGLShader[] | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttribLocation) */ + getAttribLocation(program: WebGLProgram, name: string): GLint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getBufferParameter) */ + getBufferParameter(target: GLenum, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getContextAttributes) */ + getContextAttributes(): WebGLContextAttributes | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */ + getError(): GLenum; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */ + getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; + getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; + getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null; + getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null; + getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null; + getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null; + getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null; + getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null; + getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null; + getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null; + getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null; + getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null; + getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null; + getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null; + getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null; + getExtension(extensionName: "OES_texture_float"): OES_texture_float | null; + getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null; + getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null; + getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null; + getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null; + getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null; + getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null; + getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null; + getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null; + getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null; + getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null; + getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null; + getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null; + getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null; + getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null; + getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null; + getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null; + getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null; + getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null; + getExtension(name: string): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */ + getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */ + getParameter(pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramInfoLog) */ + getProgramInfoLog(program: WebGLProgram): string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramParameter) */ + getProgramParameter(program: WebGLProgram, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter) */ + getRenderbufferParameter(target: GLenum, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderInfoLog) */ + getShaderInfoLog(shader: WebGLShader): string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderParameter) */ + getShaderParameter(shader: WebGLShader, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat) */ + getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderSource) */ + getShaderSource(shader: WebGLShader): string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getSupportedExtensions) */ + getSupportedExtensions(): string[] | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getTexParameter) */ + getTexParameter(target: GLenum, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniform) */ + getUniform(program: WebGLProgram, location: WebGLUniformLocation): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniformLocation) */ + getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttrib) */ + getVertexAttrib(index: GLuint, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset) */ + getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/hint) */ + hint(target: GLenum, mode: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isBuffer) */ + isBuffer(buffer: WebGLBuffer | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isContextLost) */ + isContextLost(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isEnabled) */ + isEnabled(cap: GLenum): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isFramebuffer) */ + isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isProgram) */ + isProgram(program: WebGLProgram | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isRenderbuffer) */ + isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isShader) */ + isShader(shader: WebGLShader | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture) */ + isTexture(texture: WebGLTexture | null): GLboolean; + lineWidth(width: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/linkProgram) */ + linkProgram(program: WebGLProgram): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/pixelStorei) */ + pixelStorei(pname: GLenum, param: GLint | GLboolean): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/polygonOffset) */ + polygonOffset(factor: GLfloat, units: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/renderbufferStorage) */ + renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/sampleCoverage) */ + sampleCoverage(value: GLclampf, invert: GLboolean): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/scissor) */ + scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/shaderSource) */ + shaderSource(shader: WebGLShader, source: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFunc) */ + stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate) */ + stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMask) */ + stencilMask(mask: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate) */ + stencilMaskSeparate(face: GLenum, mask: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOp) */ + stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOpSeparate) */ + stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */ + texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */ + texParameteri(target: GLenum, pname: GLenum, param: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1i(location: WebGLUniformLocation | null, x: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/useProgram) */ + useProgram(program: WebGLProgram | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/validateProgram) */ + validateProgram(program: WebGLProgram): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib1f(index: GLuint, x: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib1fv(index: GLuint, values: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib2fv(index: GLuint, values: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib3fv(index: GLuint, values: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib4fv(index: GLuint, values: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttribPointer) */ + vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/viewport) */ + viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; + readonly DEPTH_BUFFER_BIT: 0x00000100; + readonly STENCIL_BUFFER_BIT: 0x00000400; + readonly COLOR_BUFFER_BIT: 0x00004000; + readonly POINTS: 0x0000; + readonly LINES: 0x0001; + readonly LINE_LOOP: 0x0002; + readonly LINE_STRIP: 0x0003; + readonly TRIANGLES: 0x0004; + readonly TRIANGLE_STRIP: 0x0005; + readonly TRIANGLE_FAN: 0x0006; + readonly ZERO: 0; + readonly ONE: 1; + readonly SRC_COLOR: 0x0300; + readonly ONE_MINUS_SRC_COLOR: 0x0301; + readonly SRC_ALPHA: 0x0302; + readonly ONE_MINUS_SRC_ALPHA: 0x0303; + readonly DST_ALPHA: 0x0304; + readonly ONE_MINUS_DST_ALPHA: 0x0305; + readonly DST_COLOR: 0x0306; + readonly ONE_MINUS_DST_COLOR: 0x0307; + readonly SRC_ALPHA_SATURATE: 0x0308; + readonly FUNC_ADD: 0x8006; + readonly BLEND_EQUATION: 0x8009; + readonly BLEND_EQUATION_RGB: 0x8009; + readonly BLEND_EQUATION_ALPHA: 0x883D; + readonly FUNC_SUBTRACT: 0x800A; + readonly FUNC_REVERSE_SUBTRACT: 0x800B; + readonly BLEND_DST_RGB: 0x80C8; + readonly BLEND_SRC_RGB: 0x80C9; + readonly BLEND_DST_ALPHA: 0x80CA; + readonly BLEND_SRC_ALPHA: 0x80CB; + readonly CONSTANT_COLOR: 0x8001; + readonly ONE_MINUS_CONSTANT_COLOR: 0x8002; + readonly CONSTANT_ALPHA: 0x8003; + readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004; + readonly BLEND_COLOR: 0x8005; + readonly ARRAY_BUFFER: 0x8892; + readonly ELEMENT_ARRAY_BUFFER: 0x8893; + readonly ARRAY_BUFFER_BINDING: 0x8894; + readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895; + readonly STREAM_DRAW: 0x88E0; + readonly STATIC_DRAW: 0x88E4; + readonly DYNAMIC_DRAW: 0x88E8; + readonly BUFFER_SIZE: 0x8764; + readonly BUFFER_USAGE: 0x8765; + readonly CURRENT_VERTEX_ATTRIB: 0x8626; + readonly FRONT: 0x0404; + readonly BACK: 0x0405; + readonly FRONT_AND_BACK: 0x0408; + readonly CULL_FACE: 0x0B44; + readonly BLEND: 0x0BE2; + readonly DITHER: 0x0BD0; + readonly STENCIL_TEST: 0x0B90; + readonly DEPTH_TEST: 0x0B71; + readonly SCISSOR_TEST: 0x0C11; + readonly POLYGON_OFFSET_FILL: 0x8037; + readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E; + readonly SAMPLE_COVERAGE: 0x80A0; + readonly NO_ERROR: 0; + readonly INVALID_ENUM: 0x0500; + readonly INVALID_VALUE: 0x0501; + readonly INVALID_OPERATION: 0x0502; + readonly OUT_OF_MEMORY: 0x0505; + readonly CW: 0x0900; + readonly CCW: 0x0901; + readonly LINE_WIDTH: 0x0B21; + readonly ALIASED_POINT_SIZE_RANGE: 0x846D; + readonly ALIASED_LINE_WIDTH_RANGE: 0x846E; + readonly CULL_FACE_MODE: 0x0B45; + readonly FRONT_FACE: 0x0B46; + readonly DEPTH_RANGE: 0x0B70; + readonly DEPTH_WRITEMASK: 0x0B72; + readonly DEPTH_CLEAR_VALUE: 0x0B73; + readonly DEPTH_FUNC: 0x0B74; + readonly STENCIL_CLEAR_VALUE: 0x0B91; + readonly STENCIL_FUNC: 0x0B92; + readonly STENCIL_FAIL: 0x0B94; + readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95; + readonly STENCIL_PASS_DEPTH_PASS: 0x0B96; + readonly STENCIL_REF: 0x0B97; + readonly STENCIL_VALUE_MASK: 0x0B93; + readonly STENCIL_WRITEMASK: 0x0B98; + readonly STENCIL_BACK_FUNC: 0x8800; + readonly STENCIL_BACK_FAIL: 0x8801; + readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802; + readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803; + readonly STENCIL_BACK_REF: 0x8CA3; + readonly STENCIL_BACK_VALUE_MASK: 0x8CA4; + readonly STENCIL_BACK_WRITEMASK: 0x8CA5; + readonly VIEWPORT: 0x0BA2; + readonly SCISSOR_BOX: 0x0C10; + readonly COLOR_CLEAR_VALUE: 0x0C22; + readonly COLOR_WRITEMASK: 0x0C23; + readonly UNPACK_ALIGNMENT: 0x0CF5; + readonly PACK_ALIGNMENT: 0x0D05; + readonly MAX_TEXTURE_SIZE: 0x0D33; + readonly MAX_VIEWPORT_DIMS: 0x0D3A; + readonly SUBPIXEL_BITS: 0x0D50; + readonly RED_BITS: 0x0D52; + readonly GREEN_BITS: 0x0D53; + readonly BLUE_BITS: 0x0D54; + readonly ALPHA_BITS: 0x0D55; + readonly DEPTH_BITS: 0x0D56; + readonly STENCIL_BITS: 0x0D57; + readonly POLYGON_OFFSET_UNITS: 0x2A00; + readonly POLYGON_OFFSET_FACTOR: 0x8038; + readonly TEXTURE_BINDING_2D: 0x8069; + readonly SAMPLE_BUFFERS: 0x80A8; + readonly SAMPLES: 0x80A9; + readonly SAMPLE_COVERAGE_VALUE: 0x80AA; + readonly SAMPLE_COVERAGE_INVERT: 0x80AB; + readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3; + readonly DONT_CARE: 0x1100; + readonly FASTEST: 0x1101; + readonly NICEST: 0x1102; + readonly GENERATE_MIPMAP_HINT: 0x8192; + readonly BYTE: 0x1400; + readonly UNSIGNED_BYTE: 0x1401; + readonly SHORT: 0x1402; + readonly UNSIGNED_SHORT: 0x1403; + readonly INT: 0x1404; + readonly UNSIGNED_INT: 0x1405; + readonly FLOAT: 0x1406; + readonly DEPTH_COMPONENT: 0x1902; + readonly ALPHA: 0x1906; + readonly RGB: 0x1907; + readonly RGBA: 0x1908; + readonly LUMINANCE: 0x1909; + readonly LUMINANCE_ALPHA: 0x190A; + readonly UNSIGNED_SHORT_4_4_4_4: 0x8033; + readonly UNSIGNED_SHORT_5_5_5_1: 0x8034; + readonly UNSIGNED_SHORT_5_6_5: 0x8363; + readonly FRAGMENT_SHADER: 0x8B30; + readonly VERTEX_SHADER: 0x8B31; + readonly MAX_VERTEX_ATTRIBS: 0x8869; + readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB; + readonly MAX_VARYING_VECTORS: 0x8DFC; + readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D; + readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C; + readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872; + readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD; + readonly SHADER_TYPE: 0x8B4F; + readonly DELETE_STATUS: 0x8B80; + readonly LINK_STATUS: 0x8B82; + readonly VALIDATE_STATUS: 0x8B83; + readonly ATTACHED_SHADERS: 0x8B85; + readonly ACTIVE_UNIFORMS: 0x8B86; + readonly ACTIVE_ATTRIBUTES: 0x8B89; + readonly SHADING_LANGUAGE_VERSION: 0x8B8C; + readonly CURRENT_PROGRAM: 0x8B8D; + readonly NEVER: 0x0200; + readonly LESS: 0x0201; + readonly EQUAL: 0x0202; + readonly LEQUAL: 0x0203; + readonly GREATER: 0x0204; + readonly NOTEQUAL: 0x0205; + readonly GEQUAL: 0x0206; + readonly ALWAYS: 0x0207; + readonly KEEP: 0x1E00; + readonly REPLACE: 0x1E01; + readonly INCR: 0x1E02; + readonly DECR: 0x1E03; + readonly INVERT: 0x150A; + readonly INCR_WRAP: 0x8507; + readonly DECR_WRAP: 0x8508; + readonly VENDOR: 0x1F00; + readonly RENDERER: 0x1F01; + readonly VERSION: 0x1F02; + readonly NEAREST: 0x2600; + readonly LINEAR: 0x2601; + readonly NEAREST_MIPMAP_NEAREST: 0x2700; + readonly LINEAR_MIPMAP_NEAREST: 0x2701; + readonly NEAREST_MIPMAP_LINEAR: 0x2702; + readonly LINEAR_MIPMAP_LINEAR: 0x2703; + readonly TEXTURE_MAG_FILTER: 0x2800; + readonly TEXTURE_MIN_FILTER: 0x2801; + readonly TEXTURE_WRAP_S: 0x2802; + readonly TEXTURE_WRAP_T: 0x2803; + readonly TEXTURE_2D: 0x0DE1; + readonly TEXTURE: 0x1702; + readonly TEXTURE_CUBE_MAP: 0x8513; + readonly TEXTURE_BINDING_CUBE_MAP: 0x8514; + readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515; + readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516; + readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518; + readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A; + readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C; + readonly TEXTURE0: 0x84C0; + readonly TEXTURE1: 0x84C1; + readonly TEXTURE2: 0x84C2; + readonly TEXTURE3: 0x84C3; + readonly TEXTURE4: 0x84C4; + readonly TEXTURE5: 0x84C5; + readonly TEXTURE6: 0x84C6; + readonly TEXTURE7: 0x84C7; + readonly TEXTURE8: 0x84C8; + readonly TEXTURE9: 0x84C9; + readonly TEXTURE10: 0x84CA; + readonly TEXTURE11: 0x84CB; + readonly TEXTURE12: 0x84CC; + readonly TEXTURE13: 0x84CD; + readonly TEXTURE14: 0x84CE; + readonly TEXTURE15: 0x84CF; + readonly TEXTURE16: 0x84D0; + readonly TEXTURE17: 0x84D1; + readonly TEXTURE18: 0x84D2; + readonly TEXTURE19: 0x84D3; + readonly TEXTURE20: 0x84D4; + readonly TEXTURE21: 0x84D5; + readonly TEXTURE22: 0x84D6; + readonly TEXTURE23: 0x84D7; + readonly TEXTURE24: 0x84D8; + readonly TEXTURE25: 0x84D9; + readonly TEXTURE26: 0x84DA; + readonly TEXTURE27: 0x84DB; + readonly TEXTURE28: 0x84DC; + readonly TEXTURE29: 0x84DD; + readonly TEXTURE30: 0x84DE; + readonly TEXTURE31: 0x84DF; + readonly ACTIVE_TEXTURE: 0x84E0; + readonly REPEAT: 0x2901; + readonly CLAMP_TO_EDGE: 0x812F; + readonly MIRRORED_REPEAT: 0x8370; + readonly FLOAT_VEC2: 0x8B50; + readonly FLOAT_VEC3: 0x8B51; + readonly FLOAT_VEC4: 0x8B52; + readonly INT_VEC2: 0x8B53; + readonly INT_VEC3: 0x8B54; + readonly INT_VEC4: 0x8B55; + readonly BOOL: 0x8B56; + readonly BOOL_VEC2: 0x8B57; + readonly BOOL_VEC3: 0x8B58; + readonly BOOL_VEC4: 0x8B59; + readonly FLOAT_MAT2: 0x8B5A; + readonly FLOAT_MAT3: 0x8B5B; + readonly FLOAT_MAT4: 0x8B5C; + readonly SAMPLER_2D: 0x8B5E; + readonly SAMPLER_CUBE: 0x8B60; + readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622; + readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623; + readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624; + readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625; + readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A; + readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645; + readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F; + readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A; + readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B; + readonly COMPILE_STATUS: 0x8B81; + readonly LOW_FLOAT: 0x8DF0; + readonly MEDIUM_FLOAT: 0x8DF1; + readonly HIGH_FLOAT: 0x8DF2; + readonly LOW_INT: 0x8DF3; + readonly MEDIUM_INT: 0x8DF4; + readonly HIGH_INT: 0x8DF5; + readonly FRAMEBUFFER: 0x8D40; + readonly RENDERBUFFER: 0x8D41; + readonly RGBA4: 0x8056; + readonly RGB5_A1: 0x8057; + readonly RGBA8: 0x8058; + readonly RGB565: 0x8D62; + readonly DEPTH_COMPONENT16: 0x81A5; + readonly STENCIL_INDEX8: 0x8D48; + readonly DEPTH_STENCIL: 0x84F9; + readonly RENDERBUFFER_WIDTH: 0x8D42; + readonly RENDERBUFFER_HEIGHT: 0x8D43; + readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44; + readonly RENDERBUFFER_RED_SIZE: 0x8D50; + readonly RENDERBUFFER_GREEN_SIZE: 0x8D51; + readonly RENDERBUFFER_BLUE_SIZE: 0x8D52; + readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53; + readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54; + readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3; + readonly COLOR_ATTACHMENT0: 0x8CE0; + readonly DEPTH_ATTACHMENT: 0x8D00; + readonly STENCIL_ATTACHMENT: 0x8D20; + readonly DEPTH_STENCIL_ATTACHMENT: 0x821A; + readonly NONE: 0; + readonly FRAMEBUFFER_COMPLETE: 0x8CD5; + readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6; + readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7; + readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9; + readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD; + readonly FRAMEBUFFER_BINDING: 0x8CA6; + readonly RENDERBUFFER_BINDING: 0x8CA7; + readonly MAX_RENDERBUFFER_SIZE: 0x84E8; + readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506; + readonly UNPACK_FLIP_Y_WEBGL: 0x9240; + readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241; + readonly CONTEXT_LOST_WEBGL: 0x9242; + readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243; + readonly BROWSER_DEFAULT_WEBGL: 0x9244; +} + +interface WebGLRenderingContextOverloads { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */ + bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void; + bufferData(target: GLenum, data: AllowSharedBufferSource | null, usage: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */ + bufferSubData(target: GLenum, offset: GLintptr, data: AllowSharedBufferSource): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */ + compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */ + compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */ + readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */ + texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; + texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */ + texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; + texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSampler) */ +interface WebGLSampler { +} + +declare var WebGLSampler: { + prototype: WebGLSampler; + new(): WebGLSampler; +}; + +/** + * The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShader) + */ +interface WebGLShader { +} + +declare var WebGLShader: { + prototype: WebGLShader; + new(): WebGLShader; +}; + +/** + * Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat) + */ +interface WebGLShaderPrecisionFormat { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/precision) */ + readonly precision: GLint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax) */ + readonly rangeMax: GLint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin) */ + readonly rangeMin: GLint; +} + +declare var WebGLShaderPrecisionFormat: { + prototype: WebGLShaderPrecisionFormat; + new(): WebGLShaderPrecisionFormat; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSync) */ +interface WebGLSync { +} + +declare var WebGLSync: { + prototype: WebGLSync; + new(): WebGLSync; +}; + +/** + * Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTexture) + */ +interface WebGLTexture { +} + +declare var WebGLTexture: { + prototype: WebGLTexture; + new(): WebGLTexture; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTransformFeedback) */ +interface WebGLTransformFeedback { +} + +declare var WebGLTransformFeedback: { + prototype: WebGLTransformFeedback; + new(): WebGLTransformFeedback; +}; + +/** + * Part of the WebGL API and represents the location of a uniform variable in a shader program. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLUniformLocation) + */ +interface WebGLUniformLocation { +} + +declare var WebGLUniformLocation: { + prototype: WebGLUniformLocation; + new(): WebGLUniformLocation; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) */ +interface WebGLVertexArrayObject { +} + +declare var WebGLVertexArrayObject: { + prototype: WebGLVertexArrayObject; + new(): WebGLVertexArrayObject; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObjectOES) */ +interface WebGLVertexArrayObjectOES { +} + +interface WebSocketEventMap { + "close": CloseEvent; + "error": Event; + "message": MessageEvent; + "open": Event; +} + +/** + * Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket) + */ +interface WebSocket extends EventTarget { + /** + * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts: + * + * Can be set, to change how binary data is returned. The default is "blob". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/binaryType) + */ + binaryType: BinaryType; + /** + * Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network. + * + * If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.) + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/bufferedAmount) + */ + readonly bufferedAmount: number; + /** + * Returns the extensions selected by the server, if any. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions) + */ + readonly extensions: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close_event) */ + onclose: ((this: WebSocket, ev: CloseEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/error_event) */ + onerror: ((this: WebSocket, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/message_event) */ + onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/open_event) */ + onopen: ((this: WebSocket, ev: Event) => any) | null; + /** + * Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol) + */ + readonly protocol: string; + /** + * Returns the state of the WebSocket object's connection. It can have the values described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState) + */ + readonly readyState: number; + /** + * Returns the URL that was used to establish the WebSocket connection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url) + */ + readonly url: string; + /** + * Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close) + */ + close(code?: number, reason?: string): void; + /** + * Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send) + */ + send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void; + readonly CONNECTING: 0; + readonly OPEN: 1; + readonly CLOSING: 2; + readonly CLOSED: 3; + addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var WebSocket: { + prototype: WebSocket; + new(url: string | URL, protocols?: string | string[]): WebSocket; + readonly CONNECTING: 0; + readonly OPEN: 1; + readonly CLOSING: 2; + readonly CLOSED: 3; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport) + */ +interface WebTransport { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */ + readonly closed: Promise<WebTransportCloseInfo>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ + readonly datagrams: WebTransportDatagramDuplexStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams) */ + readonly incomingBidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ + readonly incomingUnidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ + readonly ready: Promise<undefined>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) */ + close(closeInfo?: WebTransportCloseInfo): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ + createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */ + createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>; +} + +declare var WebTransport: { + prototype: WebTransport; + new(url: string | URL, options?: WebTransportOptions): WebTransport; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream) + */ +interface WebTransportBidirectionalStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable) */ + readonly readable: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable) */ + readonly writable: WritableStream; +} + +declare var WebTransportBidirectionalStream: { + prototype: WebTransportBidirectionalStream; + new(): WebTransportBidirectionalStream; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream) + */ +interface WebTransportDatagramDuplexStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) */ + incomingHighWaterMark: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ + incomingMaxAge: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) */ + readonly maxDatagramSize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) */ + outgoingHighWaterMark: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ + outgoingMaxAge: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) */ + readonly readable: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ + readonly writable: WritableStream; +} + +declare var WebTransportDatagramDuplexStream: { + prototype: WebTransportDatagramDuplexStream; + new(): WebTransportDatagramDuplexStream; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError) + */ +interface WebTransportError extends DOMException { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source) */ + readonly source: WebTransportErrorSource; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode) */ + readonly streamErrorCode: number | null; +} + +declare var WebTransportError: { + prototype: WebTransportError; + new(message?: string, options?: WebTransportErrorOptions): WebTransportError; +}; + +/** + * This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient) + */ +interface WindowClient extends Client { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/focused) */ + readonly focused: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/visibilityState) */ + readonly visibilityState: DocumentVisibilityState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/focus) */ + focus(): Promise<WindowClient>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/navigate) */ + navigate(url: string | URL): Promise<WindowClient | null>; +} + +declare var WindowClient: { + prototype: WindowClient; + new(): WindowClient; +}; + +interface WindowOrWorkerGlobalScope { + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches) + */ + readonly caches: CacheStorage; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */ + readonly crossOriginIsolated: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */ + readonly crypto: Crypto; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */ + readonly indexedDB: IDBFactory; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */ + readonly isSecureContext: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */ + readonly origin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */ + readonly performance: Performance; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */ + atob(data: string): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */ + btoa(data: string): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */ + clearInterval(id: number | undefined): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */ + clearTimeout(id: number | undefined): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */ + createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>; + createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */ + fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */ + queueMicrotask(callback: VoidFunction): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */ + reportError(e: any): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */ + setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */ + setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */ + structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T; +} + +interface WorkerEventMap extends AbstractWorkerEventMap { + "message": MessageEvent; + "messageerror": MessageEvent; +} + +/** + * This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker) + */ +interface Worker extends EventTarget, AbstractWorker { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/message_event) */ + onmessage: ((this: Worker, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/messageerror_event) */ + onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null; + /** + * Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/postMessage) + */ + postMessage(message: any, transfer: Transferable[]): void; + postMessage(message: any, options?: StructuredSerializeOptions): void; + /** + * Aborts worker's associated global environment. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/terminate) + */ + terminate(): void; + addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var Worker: { + prototype: Worker; + new(scriptURL: string | URL, options?: WorkerOptions): Worker; +}; + +interface WorkerGlobalScopeEventMap { + "error": ErrorEvent; + "languagechange": Event; + "offline": Event; + "online": Event; + "rejectionhandled": PromiseRejectionEvent; + "unhandledrejection": PromiseRejectionEvent; +} + +/** + * This Web Workers API interface is an interface representing the scope of any worker. Workers have no browsing context; this scope contains the information usually conveyed by Window objects — in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope) + */ +interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope { + /** + * Returns workerGlobal's WorkerLocation object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location) + */ + readonly location: WorkerLocation; + /** + * Returns workerGlobal's WorkerNavigator object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/navigator) + */ + readonly navigator: WorkerNavigator; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/error_event) */ + onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/languagechange_event) */ + onlanguagechange: ((this: WorkerGlobalScope, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/offline_event) */ + onoffline: ((this: WorkerGlobalScope, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/online_event) */ + ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null; + onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null; + onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null; + /** + * Returns workerGlobal. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/self) + */ + readonly self: WorkerGlobalScope & typeof globalThis; + /** + * Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts) + */ + importScripts(...urls: (string | URL)[]): void; + addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var WorkerGlobalScope: { + prototype: WorkerGlobalScope; + new(): WorkerGlobalScope; +}; + +/** + * The absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling self.location. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation) + */ +interface WorkerLocation { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hash) */ + readonly hash: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/host) */ + readonly host: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hostname) */ + readonly hostname: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/href) */ + readonly href: string; + toString(): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/origin) */ + readonly origin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/pathname) */ + readonly pathname: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/port) */ + readonly port: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/protocol) */ + readonly protocol: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/search) */ + readonly search: string; +} + +declare var WorkerLocation: { + prototype: WorkerLocation; + new(): WorkerLocation; +}; + +/** + * A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator) + */ +interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/mediaCapabilities) */ + readonly mediaCapabilities: MediaCapabilities; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/permissions) */ + readonly permissions: Permissions; +} + +declare var WorkerNavigator: { + prototype: WorkerNavigator; + new(): WorkerNavigator; +}; + +/** + * This Streams API interface provides a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream) + */ +interface WritableStream<W = any> { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked) */ + readonly locked: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) */ + abort(reason?: any): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close) */ + close(): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) */ + getWriter(): WritableStreamDefaultWriter<W>; +} + +declare var WritableStream: { + prototype: WritableStream; + new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>; +}; + +/** + * This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController) + */ +interface WritableStreamDefaultController { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) */ + readonly signal: AbortSignal; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */ + error(e?: any): void; +} + +declare var WritableStreamDefaultController: { + prototype: WritableStreamDefaultController; + new(): WritableStreamDefaultController; +}; + +/** + * This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter) + */ +interface WritableStreamDefaultWriter<W = any> { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) */ + readonly closed: Promise<undefined>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) */ + readonly desiredSize: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) */ + readonly ready: Promise<undefined>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) */ + abort(reason?: any): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) */ + close(): Promise<void>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock) */ + releaseLock(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write) */ + write(chunk?: W): Promise<void>; +} + +declare var WritableStreamDefaultWriter: { + prototype: WritableStreamDefaultWriter; + new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>; +}; + +interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap { + "readystatechange": Event; +} + +/** + * Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest) + */ +interface XMLHttpRequest extends XMLHttpRequestEventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readystatechange_event) */ + onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null; + /** + * Returns client's state. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState) + */ + readonly readyState: number; + /** + * Returns the response body. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/response) + */ + readonly response: any; + /** + * Returns response as text. + * + * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseText) + */ + readonly responseText: string; + /** + * Returns the response type. + * + * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text". + * + * When set: setting to "document" is ignored if current global object is not a Window object. + * + * When set: throws an "InvalidStateError" DOMException if state is loading or done. + * + * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseType) + */ + responseType: XMLHttpRequestResponseType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseURL) */ + readonly responseURL: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/status) */ + readonly status: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/statusText) */ + readonly statusText: string; + /** + * Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method). + * + * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/timeout) + */ + timeout: number; + /** + * Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/upload) + */ + readonly upload: XMLHttpRequestUpload; + /** + * True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false. + * + * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/withCredentials) + */ + withCredentials: boolean; + /** + * Cancels any network activity. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/abort) + */ + abort(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getAllResponseHeaders) */ + getAllResponseHeaders(): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getResponseHeader) */ + getResponseHeader(name: string): string | null; + /** + * Sets the request method, request URL, and synchronous flag. + * + * Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed. + * + * Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`. + * + * Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open) + */ + open(method: string, url: string | URL): void; + open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void; + /** + * Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.) + * + * Throws an "InvalidStateError" DOMException if state is loading or done. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType) + */ + overrideMimeType(mime: string): void; + /** + * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD. + * + * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/send) + */ + send(body?: XMLHttpRequestBodyInit | null): void; + /** + * Combines a header in author request headers. + * + * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set. + * + * Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/setRequestHeader) + */ + setRequestHeader(name: string, value: string): void; + readonly UNSENT: 0; + readonly OPENED: 1; + readonly HEADERS_RECEIVED: 2; + readonly LOADING: 3; + readonly DONE: 4; + addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var XMLHttpRequest: { + prototype: XMLHttpRequest; + new(): XMLHttpRequest; + readonly UNSENT: 0; + readonly OPENED: 1; + readonly HEADERS_RECEIVED: 2; + readonly LOADING: 3; + readonly DONE: 4; +}; + +interface XMLHttpRequestEventTargetEventMap { + "abort": ProgressEvent<XMLHttpRequestEventTarget>; + "error": ProgressEvent<XMLHttpRequestEventTarget>; + "load": ProgressEvent<XMLHttpRequestEventTarget>; + "loadend": ProgressEvent<XMLHttpRequestEventTarget>; + "loadstart": ProgressEvent<XMLHttpRequestEventTarget>; + "progress": ProgressEvent<XMLHttpRequestEventTarget>; + "timeout": ProgressEvent<XMLHttpRequestEventTarget>; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestEventTarget) */ +interface XMLHttpRequestEventTarget extends EventTarget { + onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; + onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; + onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; + onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; + onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; + onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; + ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; + addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var XMLHttpRequestEventTarget: { + prototype: XMLHttpRequestEventTarget; + new(): XMLHttpRequestEventTarget; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestUpload) */ +interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget { + addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var XMLHttpRequestUpload: { + prototype: XMLHttpRequestUpload; + new(): XMLHttpRequestUpload; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) */ +interface Console { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static) */ + assert(condition?: boolean, ...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) */ + clear(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */ + count(label?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */ + countReset(label?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */ + debug(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ + dir(item?: any, options?: any): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) */ + dirxml(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) */ + error(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */ + group(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */ + groupCollapsed(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */ + groupEnd(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */ + info(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) */ + log(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) */ + table(tabularData?: any, properties?: string[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */ + time(label?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */ + timeEnd(label?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */ + timeLog(label?: string, ...data: any[]): void; + timeStamp(label?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */ + trace(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) */ + warn(...data: any[]): void; +} + +declare var console: Console; + +declare namespace WebAssembly { + interface CompileError extends Error { + } + + var CompileError: { + prototype: CompileError; + new(message?: string): CompileError; + (message?: string): CompileError; + }; + + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global) */ + interface Global<T extends ValueType = ValueType> { + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/value) */ + value: ValueTypeMap[T]; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/valueOf) */ + valueOf(): ValueTypeMap[T]; + } + + var Global: { + prototype: Global; + new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>; + }; + + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance) */ + interface Instance { + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance/exports) */ + readonly exports: Exports; + } + + var Instance: { + prototype: Instance; + new(module: Module, importObject?: Imports): Instance; + }; + + interface LinkError extends Error { + } + + var LinkError: { + prototype: LinkError; + new(message?: string): LinkError; + (message?: string): LinkError; + }; + + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory) */ + interface Memory { + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/buffer) */ + readonly buffer: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/grow) */ + grow(delta: number): number; + } + + var Memory: { + prototype: Memory; + new(descriptor: MemoryDescriptor): Memory; + }; + + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module) */ + interface Module { + } + + var Module: { + prototype: Module; + new(bytes: BufferSource): Module; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/customSections_static) */ + customSections(moduleObject: Module, sectionName: string): ArrayBuffer[]; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/exports_static) */ + exports(moduleObject: Module): ModuleExportDescriptor[]; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/imports_static) */ + imports(moduleObject: Module): ModuleImportDescriptor[]; + }; + + interface RuntimeError extends Error { + } + + var RuntimeError: { + prototype: RuntimeError; + new(message?: string): RuntimeError; + (message?: string): RuntimeError; + }; + + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table) */ + interface Table { + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/get) */ + get(index: number): any; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/grow) */ + grow(delta: number, value?: any): number; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/set) */ + set(index: number, value?: any): void; + } + + var Table: { + prototype: Table; + new(descriptor: TableDescriptor, value?: any): Table; + }; + + interface GlobalDescriptor<T extends ValueType = ValueType> { + mutable?: boolean; + value: T; + } + + interface MemoryDescriptor { + initial: number; + maximum?: number; + shared?: boolean; + } + + interface ModuleExportDescriptor { + kind: ImportExportKind; + name: string; + } + + interface ModuleImportDescriptor { + kind: ImportExportKind; + module: string; + name: string; + } + + interface TableDescriptor { + element: TableKind; + initial: number; + maximum?: number; + } + + interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; + } + + interface WebAssemblyInstantiatedSource { + instance: Instance; + module: Module; + } + + type ImportExportKind = "function" | "global" | "memory" | "table"; + type TableKind = "anyfunc" | "externref"; + type ExportValue = Function | Global | Memory | Table; + type Exports = Record<string, ExportValue>; + type ImportValue = ExportValue | number; + type Imports = Record<string, ModuleImports>; + type ModuleImports = Record<string, ImportValue>; + type ValueType = keyof ValueTypeMap; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compile_static) */ + function compile(bytes: BufferSource): Promise<Module>; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compileStreaming_static) */ + function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiate_static) */ + function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>; + function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiateStreaming_static) */ + function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/validate_static) */ + function validate(bytes: BufferSource): boolean; +} + +interface EncodedVideoChunkOutputCallback { + (chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): void; +} + +interface FrameRequestCallback { + (time: DOMHighResTimeStamp): void; +} + +interface LockGrantedCallback { + (lock: Lock | null): any; +} + +interface OnErrorEventHandlerNonNull { + (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any; +} + +interface PerformanceObserverCallback { + (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void; +} + +interface QueuingStrategySize<T = any> { + (chunk: T): number; +} + +interface ReportingObserverCallback { + (reports: Report[], observer: ReportingObserver): void; +} + +interface TransformerFlushCallback<O> { + (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>; +} + +interface TransformerStartCallback<O> { + (controller: TransformStreamDefaultController<O>): any; +} + +interface TransformerTransformCallback<I, O> { + (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>; +} + +interface UnderlyingSinkAbortCallback { + (reason?: any): void | PromiseLike<void>; +} + +interface UnderlyingSinkCloseCallback { + (): void | PromiseLike<void>; +} + +interface UnderlyingSinkStartCallback { + (controller: WritableStreamDefaultController): any; +} + +interface UnderlyingSinkWriteCallback<W> { + (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>; +} + +interface UnderlyingSourceCancelCallback { + (reason?: any): void | PromiseLike<void>; +} + +interface UnderlyingSourcePullCallback<R> { + (controller: ReadableStreamController<R>): void | PromiseLike<void>; +} + +interface UnderlyingSourceStartCallback<R> { + (controller: ReadableStreamController<R>): any; +} + +interface VideoFrameOutputCallback { + (output: VideoFrame): void; +} + +interface VoidFunction { + (): void; +} + +interface WebCodecsErrorCallback { + (error: DOMException): void; +} + +/** + * Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/name) + */ +declare var name: string; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */ +declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */ +declare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */ +declare var onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null; +/** + * Aborts dedicatedWorkerGlobal. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/close) + */ +declare function close(): void; +/** + * Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/postMessage) + */ +declare function postMessage(message: any, transfer: Transferable[]): void; +declare function postMessage(message: any, options?: StructuredSerializeOptions): 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) + */ +declare function dispatchEvent(event: Event): boolean; +/** + * Returns workerGlobal's WorkerLocation object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location) + */ +declare var location: WorkerLocation; +/** + * Returns workerGlobal's WorkerNavigator object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/navigator) + */ +declare var navigator: WorkerNavigator; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/error_event) */ +declare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/languagechange_event) */ +declare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/offline_event) */ +declare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/online_event) */ +declare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null; +declare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null; +declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null; +/** + * Returns workerGlobal. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/self) + */ +declare var self: WorkerGlobalScope & typeof globalThis; +/** + * Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts) + */ +declare function importScripts(...urls: (string | URL)[]): 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) + */ +declare function dispatchEvent(event: Event): boolean; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */ +declare var fonts: FontFaceSet; +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches) + */ +declare var caches: CacheStorage; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */ +declare var crossOriginIsolated: boolean; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */ +declare var crypto: Crypto; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */ +declare var indexedDB: IDBFactory; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */ +declare var isSecureContext: boolean; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */ +declare var origin: string; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */ +declare var performance: Performance; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */ +declare function atob(data: string): string; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */ +declare function btoa(data: string): string; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */ +declare function clearInterval(id: number | undefined): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */ +declare function clearTimeout(id: number | undefined): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */ +declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>; +declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */ +declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */ +declare function queueMicrotask(callback: VoidFunction): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */ +declare function reportError(e: any): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */ +declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */ +declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */ +declare function structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */ +declare function cancelAnimationFrame(handle: number): void; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */ +declare function requestAnimationFrame(callback: FrameRequestCallback): number; +declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; +declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; +declare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; +declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +type AlgorithmIdentifier = Algorithm | string; +type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView; +type BigInteger = Uint8Array; +type BinaryData = ArrayBuffer | ArrayBufferView; +type BlobPart = BufferSource | Blob | string; +type BodyInit = ReadableStream | XMLHttpRequestBodyInit; +type BufferSource = ArrayBufferView | ArrayBuffer; +type CSSKeywordish = string | CSSKeywordValue; +type CSSNumberish = number | CSSNumericValue; +type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish; +type CSSUnparsedSegment = string | CSSVariableReferenceValue; +type CanvasImageSource = ImageBitmap | OffscreenCanvas | VideoFrame; +type DOMHighResTimeStamp = number; +type EpochTimeStamp = number; +type EventListenerOrEventListenerObject = EventListener | EventListenerObject; +type FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams; +type Float32List = Float32Array | GLfloat[]; +type FormDataEntryValue = File | string; +type GLbitfield = number; +type GLboolean = boolean; +type GLclampf = number; +type GLenum = number; +type GLfloat = number; +type GLint = number; +type GLint64 = number; +type GLintptr = number; +type GLsizei = number; +type GLsizeiptr = number; +type GLuint = number; +type GLuint64 = number; +type HashAlgorithmIdentifier = AlgorithmIdentifier; +type HeadersInit = [string, string][] | Record<string, string> | Headers; +type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; +type ImageBitmapSource = CanvasImageSource | Blob | ImageData; +type Int32List = Int32Array | GLint[]; +type MessageEventSource = MessagePort | ServiceWorker; +type NamedCurve = string; +type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext; +type OnErrorEventHandler = OnErrorEventHandlerNonNull | null; +type PerformanceEntryList = PerformanceEntry[]; +type PushMessageDataInit = BufferSource | string; +type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController; +type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>; +type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader; +type ReportList = Report[]; +type RequestInfo = Request | string; +type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame; +type TimerHandler = string | Function; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer; +type Uint32List = Uint32Array | GLuint[]; +type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; +type AlphaOption = "discard" | "keep"; +type AvcBitstreamFormat = "annexb" | "avc"; +type BinaryType = "arraybuffer" | "blob"; +type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum"; +type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time"; +type CanvasDirection = "inherit" | "ltr" | "rtl"; +type CanvasFillRule = "evenodd" | "nonzero"; +type CanvasFontKerning = "auto" | "none" | "normal"; +type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded"; +type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase"; +type CanvasLineCap = "butt" | "round" | "square"; +type CanvasLineJoin = "bevel" | "miter" | "round"; +type CanvasTextAlign = "center" | "end" | "left" | "right" | "start"; +type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top"; +type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed"; +type ClientTypes = "all" | "sharedworker" | "window" | "worker"; +type CodecState = "closed" | "configured" | "unconfigured"; +type ColorGamut = "p3" | "rec2020" | "srgb"; +type ColorSpaceConversion = "default" | "none"; +type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; +type DocumentVisibilityState = "hidden" | "visible"; +type EncodedVideoChunkType = "delta" | "key"; +type EndingType = "native" | "transparent"; +type FileSystemHandleKind = "directory" | "file"; +type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; +type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; +type FontFaceSetLoadStatus = "loaded" | "loading"; +type FrameType = "auxiliary" | "nested" | "none" | "top-level"; +type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; +type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software"; +type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; +type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; +type IDBRequestReadyState = "done" | "pending"; +type IDBTransactionDurability = "default" | "relaxed" | "strict"; +type IDBTransactionMode = "readonly" | "readwrite" | "versionchange"; +type ImageOrientation = "flipY" | "from-image" | "none"; +type ImageSmoothingQuality = "high" | "low" | "medium"; +type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki"; +type KeyType = "private" | "public" | "secret"; +type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey"; +type LatencyMode = "quality" | "realtime"; +type LockMode = "exclusive" | "shared"; +type MediaDecodingType = "file" | "media-source" | "webrtc"; +type MediaEncodingType = "record" | "webrtc"; +type NotificationDirection = "auto" | "ltr" | "rtl"; +type NotificationPermission = "default" | "denied" | "granted"; +type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu"; +type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking"; +type PermissionState = "denied" | "granted" | "prompt"; +type PredefinedColorSpace = "display-p3" | "srgb"; +type PremultiplyAlpha = "default" | "none" | "premultiply"; +type PushEncryptionKeyName = "auth" | "p256dh"; +type RTCEncodedVideoFrameType = "delta" | "empty" | "key"; +type ReadableStreamReaderMode = "byob"; +type ReadableStreamType = "bytes"; +type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url"; +type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload"; +type RequestCredentials = "include" | "omit" | "same-origin"; +type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt"; +type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; +type RequestPriority = "auto" | "high" | "low"; +type RequestRedirect = "error" | "follow" | "manual"; +type ResizeQuality = "high" | "low" | "medium" | "pixelated"; +type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type SecurityPolicyViolationEventDisposition = "enforce" | "report"; +type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; +type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; +type TransferFunction = "hlg" | "pq" | "srgb"; +type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m"; +type VideoEncoderBitrateMode = "constant" | "quantizer" | "variable"; +type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m"; +type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX"; +type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m"; +type WebGLPowerPreference = "default" | "high-performance" | "low-power"; +type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; +type WebTransportErrorSource = "session" | "stream"; +type WorkerType = "classic" | "module"; +type WriteCommandType = "seek" | "truncate" | "write"; +type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; +`,co["lib.webworker.importscripts.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +///////////////////////////// +/// WorkerGlobalScope APIs +///////////////////////////// +// These are only available in a Web Worker +declare function importScripts(...urls: string[]): void; +`,co["lib.webworker.iterable.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. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +///////////////////////////// +/// Worker Iterable APIs +///////////////////////////// + +interface CSSNumericArray { + [Symbol.iterator](): IterableIterator<CSSNumericValue>; + entries(): IterableIterator<[number, CSSNumericValue]>; + keys(): IterableIterator<number>; + values(): IterableIterator<CSSNumericValue>; +} + +interface CSSTransformValue { + [Symbol.iterator](): IterableIterator<CSSTransformComponent>; + entries(): IterableIterator<[number, CSSTransformComponent]>; + keys(): IterableIterator<number>; + values(): IterableIterator<CSSTransformComponent>; +} + +interface CSSUnparsedValue { + [Symbol.iterator](): IterableIterator<CSSUnparsedSegment>; + entries(): IterableIterator<[number, CSSUnparsedSegment]>; + keys(): IterableIterator<number>; + values(): IterableIterator<CSSUnparsedSegment>; +} + +interface Cache { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */ + addAll(requests: Iterable<RequestInfo>): Promise<void>; +} + +interface CanvasPath { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */ + roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void; +} + +interface CanvasPathDrawingStyles { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */ + setLineDash(segments: Iterable<number>): void; +} + +interface DOMStringList { + [Symbol.iterator](): IterableIterator<string>; +} + +interface FileList { + [Symbol.iterator](): IterableIterator<File>; +} + +interface FontFaceSet extends Set<FontFace> { +} + +interface FormData { + [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>; + /** Returns an array of key, value pairs for every entry in the list. */ + entries(): IterableIterator<[string, FormDataEntryValue]>; + /** Returns a list of keys in the list. */ + keys(): IterableIterator<string>; + /** Returns a list of values in the list. */ + values(): IterableIterator<FormDataEntryValue>; +} + +interface Headers { + [Symbol.iterator](): IterableIterator<[string, string]>; + /** Returns an iterator allowing to go through all key/value pairs contained in this object. */ + entries(): IterableIterator<[string, string]>; + /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */ + keys(): IterableIterator<string>; + /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */ + values(): IterableIterator<string>; +} + +interface IDBDatabase { + /** + * Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction) + */ + transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction; +} + +interface IDBObjectStore { + /** + * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException. + * + * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex) + */ + createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex; +} + +interface MessageEvent<T = any> { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent) + */ + initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void; +} + +interface StylePropertyMapReadOnly { + [Symbol.iterator](): IterableIterator<[string, Iterable<CSSStyleValue>]>; + entries(): IterableIterator<[string, Iterable<CSSStyleValue>]>; + keys(): IterableIterator<string>; + values(): IterableIterator<Iterable<CSSStyleValue>>; +} + +interface SubtleCrypto { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */ + deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */ + generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>; + generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>; + generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>; + generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */ + importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>; + importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */ + unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>; +} + +interface URLSearchParams { + [Symbol.iterator](): IterableIterator<[string, string]>; + /** Returns an array of key, value pairs for every entry in the search params. */ + entries(): IterableIterator<[string, string]>; + /** Returns a list of keys in the search params. */ + keys(): IterableIterator<string>; + /** Returns a list of values in the search params. */ + values(): IterableIterator<string>; +} + +interface WEBGL_draw_buffers { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */ + drawBuffersWEBGL(buffers: Iterable<GLenum>): void; +} + +interface WEBGL_multi_draw { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */ + multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */ + multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */ + multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */ + multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void; +} + +interface WebGL2RenderingContextBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ + clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ + clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ + clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */ + drawBuffers(buffers: Iterable<GLenum>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */ + getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */ + getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */ + invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */ + invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */ + transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ + vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ + vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void; +} + +interface WebGL2RenderingContextOverloads { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void; +} + +interface WebGLRenderingContextBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void; +} + +interface WebGLRenderingContextOverloads { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; +} +`;function _m(g){return typeof g=="string"?/^file:\/\/\//.test(g)?!!co[g.substr(8)]:!1:g.path.indexOf("/lib.")===0?!!co[g.path.slice(1)]:!1}var SEe=class l6{constructor(b,I){this._extraLibs=Object.create(null),this._languageService=bEe(this),this._ctx=b,this._compilerOptions=I.compilerOptions,this._extraLibs=I.extraLibs,this._inlayHintsOptions=I.inlayHintsOptions}getCompilationSettings(){return this._compilerOptions}getLanguageService(){return this._languageService}getExtraLibs(){return this._extraLibs}getScriptFileNames(){return this._ctx.getMirrorModels().map(z=>z.uri).filter(z=>!_m(z)).map(z=>z.toString()).concat(Object.keys(this._extraLibs))}_getModel(b){let I=this._ctx.getMirrorModels();for(let z=0;z<I.length;z++){const ee=I[z].uri;if(ee.toString()===b||ee.toString(!0)===b)return I[z]}return null}getScriptVersion(b){let I=this._getModel(b);return I?I.version.toString():this.isDefaultLibFileName(b)?"1":b in this._extraLibs?String(this._extraLibs[b].version):""}async getScriptText(b){return this._getScriptText(b)}_getScriptText(b){let I,z=this._getModel(b);const ee="lib."+b+".d.ts";if(z)I=z.getValue();else if(b in co)I=co[b];else if(ee in co)I=co[ee];else if(b in this._extraLibs)I=this._extraLibs[b].content;else return;return I}getScriptSnapshot(b){const I=this._getScriptText(b);if(I!==void 0)return{getText:(z,ee)=>I.substring(z,ee),getLength:()=>I.length,getChangeRange:()=>{}}}getScriptKind(b){switch(b.substr(b.lastIndexOf(".")+1)){case"ts":return UN.TS;case"tsx":return UN.TSX;case"js":return UN.JS;case"jsx":return UN.JSX;default:return this.getCompilationSettings().allowJs?UN.JS:UN.TS}}getCurrentDirectory(){return""}getDefaultLibFileName(b){switch(b.target){case 99:const I="lib.esnext.full.d.ts";if(I in co||I in this._extraLibs)return I;case 7:case 6:case 5:case 4:case 3:case 2:default:const z=`lib.es${2013+(b.target||99)}.full.d.ts`;return z in co||z in this._extraLibs?z:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}}isDefaultLibFileName(b){return b===this.getDefaultLibFileName(this._compilerOptions)}readFile(b){return this._getScriptText(b)}fileExists(b){return this._getScriptText(b)!==void 0}async getLibFiles(){return co}static clearFiles(b){const I=[];for(const z of b){const ee={...z};if(ee.file=ee.file?{fileName:ee.file.fileName}:void 0,z.relatedInformation){ee.relatedInformation=[];for(const _e of z.relatedInformation){const Re={..._e};Re.file=Re.file?{fileName:Re.file.fileName}:void 0,ee.relatedInformation.push(Re)}}I.push(ee)}return I}async getSyntacticDiagnostics(b){if(_m(b))return[];const I=this._languageService.getSyntacticDiagnostics(b);return l6.clearFiles(I)}async getSemanticDiagnostics(b){if(_m(b))return[];const I=this._languageService.getSemanticDiagnostics(b);return l6.clearFiles(I)}async getSuggestionDiagnostics(b){if(_m(b))return[];const I=this._languageService.getSuggestionDiagnostics(b);return l6.clearFiles(I)}async getCompilerOptionsDiagnostics(b){if(_m(b))return[];const I=this._languageService.getCompilerOptionsDiagnostics();return l6.clearFiles(I)}async getCompletionsAtPosition(b,I){if(!_m(b))return this._languageService.getCompletionsAtPosition(b,I,void 0)}async getCompletionEntryDetails(b,I,z){return this._languageService.getCompletionEntryDetails(b,I,z,void 0,void 0,void 0,void 0)}async getSignatureHelpItems(b,I,z){if(!_m(b))return this._languageService.getSignatureHelpItems(b,I,z)}async getQuickInfoAtPosition(b,I){if(!_m(b))return this._languageService.getQuickInfoAtPosition(b,I)}async getDocumentHighlights(b,I,z){if(!_m(b))return this._languageService.getDocumentHighlights(b,I,z)}async getDefinitionAtPosition(b,I){if(!_m(b))return this._languageService.getDefinitionAtPosition(b,I)}async getReferencesAtPosition(b,I){if(!_m(b))return this._languageService.getReferencesAtPosition(b,I)}async getNavigationTree(b){if(!_m(b))return this._languageService.getNavigationTree(b)}async getFormattingEditsForDocument(b,I){return _m(b)?[]:this._languageService.getFormattingEditsForDocument(b,I)}async getFormattingEditsForRange(b,I,z,ee){return _m(b)?[]:this._languageService.getFormattingEditsForRange(b,I,z,ee)}async getFormattingEditsAfterKeystroke(b,I,z,ee){return _m(b)?[]:this._languageService.getFormattingEditsAfterKeystroke(b,I,z,ee)}async findRenameLocations(b,I,z,ee,_e){if(!_m(b))return this._languageService.findRenameLocations(b,I,z,ee,_e)}async getRenameInfo(b,I,z){return _m(b)?{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}:this._languageService.getRenameInfo(b,I,z)}async getEmitOutput(b,I,z){if(_m(b))return{outputFiles:[],emitSkipped:!0};const ee=this._languageService.getEmitOutput(b,I,z),_e=ee.diagnostics?l6.clearFiles(ee.diagnostics):void 0;return{...ee,diagnostics:_e}}async getCodeFixesAtPosition(b,I,z,ee,_e){if(_m(b))return[];const Re={};try{return this._languageService.getCodeFixesAtPosition(b,I,z,ee,_e,Re)}catch{return[]}}async updateExtraLibs(b){this._extraLibs=b}async provideInlayHints(b,I,z){if(_m(b))return[];const ee=this._inlayHintsOptions??{},_e={start:I,length:z-I};try{return this._languageService.provideInlayHints(b,_e,ee)}catch{return[]}}};function Sze(g,b){let I=SEe;if(b.customWorkerPath)if(typeof importScripts>"u")console.warn("Monaco is not using webworkers for background tasks, and that is needed to support the customWorkerPath flag");else{self.importScripts(b.customWorkerPath);const z=self.customTSWorkerFactory;if(!z)throw new Error(`The script at ${b.customWorkerPath} does not add customTSWorkerFactory to self`);I=z(SEe,yEe,co)}return new I(g,b)}globalThis.ts=EEe,self.onmessage=()=>{vEe((g,b)=>Sze(g,b))};/*! ***************************************************************************** + 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. + ***************************************************************************** */})(); diff --git a/ui/assets/local/_app/version.json b/ui/assets/local/_app/version.json index c8c5076f4c..8ba9dbd225 100644 --- a/ui/assets/local/_app/version.json +++ b/ui/assets/local/_app/version.json @@ -1 +1 @@ -{"version":"1723228857415"} \ No newline at end of file +{"version":"1723477491049"} \ No newline at end of file diff --git a/ui/assets/local/index.html b/ui/assets/local/index.html index 4ab57f3225..b1c23ab2ee 100644 --- a/ui/assets/local/index.html +++ b/ui/assets/local/index.html @@ -3,29 +3,30 @@ <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> - <meta http-equiv="content-security-policy" content="script-src 'strict-dynamic' 'sha256-34xIqxjIPDRiT5xtsnHQlK9b46ljemWToT5prtw+Dtw='"> - <link rel="modulepreload" href="/_app/immutable/entry/start.3v9k_UXP.js"> - <link rel="modulepreload" href="/_app/immutable/chunks/entry.1BQh90wu.js"> - <link rel="modulepreload" href="/_app/immutable/chunks/scheduler.1T9hOnFr.js"> - <link rel="modulepreload" href="/_app/immutable/chunks/paths.uI-MwgM_.js"> + <meta http-equiv="content-security-policy" content="script-src 'strict-dynamic' 'sha256-BWu03BvNwyClVKYYbb1vi+QCTOAP2NV1VTadIfDPLaQ='"> + <link rel="modulepreload" href="/_app/immutable/entry/start.KYgq3pMc.js"> + <link rel="modulepreload" href="/_app/immutable/chunks/entry.6mxJxwSM.js"> + <link rel="modulepreload" href="/_app/immutable/chunks/scheduler.pPC3woXQ.js"> + <link rel="modulepreload" href="/_app/immutable/chunks/paths.yvZ-Br9O.js"> <link rel="modulepreload" href="/_app/immutable/chunks/control.pJ1mnnAb.js"> - <link rel="modulepreload" href="/_app/immutable/entry/app.Og_zVOIW.js"> - <link rel="modulepreload" href="/_app/immutable/chunks/index.cVovwi_s.js"> + <link rel="modulepreload" href="/_app/immutable/entry/app.eDE0SmoN.js"> + <link rel="modulepreload" href="/_app/immutable/chunks/preload-helper.0HuHagjb.js"> + <link rel="modulepreload" href="/_app/immutable/chunks/index.Z3Qqxacm.js"> </head> <body> <div id="svelte"> <script> { - __sveltekit_1pafwk0 = { + __sveltekit_k7frrr = { base: "" }; const element = document.currentScript.parentElement; Promise.all([ - import("/_app/immutable/entry/start.3v9k_UXP.js"), - import("/_app/immutable/entry/app.Og_zVOIW.js") + import("/_app/immutable/entry/start.KYgq3pMc.js"), + import("/_app/immutable/entry/app.eDE0SmoN.js") ]).then(([kit, app]) => { kit.start(app, element); });